diff --git a/.eslintrc.json b/.eslintrc.json index 3fe025e9509..864271ccd61 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -15,7 +15,6 @@ ], "plugins": ["deprecation", "@typescript-eslint", "@nx", "@stylistic/ts"], "rules": { - "@angular-eslint/no-host-metadata-property": "off", "deprecation/deprecation": "warn", "prefer-arrow/prefer-arrow-functions": "off", "space-before-function-paren": "off", @@ -30,6 +29,7 @@ "no-fallthrough": "off", "prefer-const": "off", "@angular-eslint/use-lifecycle-interface": "error", + "@angular-eslint/prefer-standalone": "off", "@stylistic/ts/quotes": "off", "@stylistic/ts/member-delimiter-style": [ "error", diff --git a/core-libs/setup/jest.config.js b/core-libs/setup/jest.config.js index 139055562b9..9559c0ad544 100644 --- a/core-libs/setup/jest.config.js +++ b/core-libs/setup/jest.config.js @@ -5,9 +5,18 @@ const { defaultTransformerOptions } = require('jest-preset-angular/presets'); /** @type {import('ts-jest/dist/types').JestConfigWithTsJest} */ module.exports = { preset: 'jest-preset-angular', - moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths || {}, { - prefix: '/', - }), + moduleNameMapper: { + ...pathsToModuleNameMapper(compilerOptions.paths || {}, { + prefix: '/', + }), + // mapping required to use `beasties` from node modules that has proper ES module format + // instead of the version internalized by the Angular Team which file format is not supported + // by Jest. + // for more, see: https://github.com/angular/angular-cli/pull/28228 + // and: https://github.com/angular/angular-cli/pull/28726 + '^../third_party/beasties/index.js$': + '/../../node_modules/beasties', + }, setupFilesAfterEnv: ['/setup-jest.ts'], transform: { '^.+\\.(ts|js|mjs|html|svg)$': [ diff --git a/core-libs/setup/package.json b/core-libs/setup/package.json index 91f388e3a9f..124bc87418c 100644 --- a/core-libs/setup/package.json +++ b/core-libs/setup/package.json @@ -19,15 +19,15 @@ "tslib": "^2.8.1" }, "peerDependencies": { - "@angular/core": "^18.2.9", - "@angular/ssr": "^18.2.9", + "@angular/core": "^19.0.3", + "@angular/ssr": "^19.0.4", "@spartacus/cart": "2211.32.0", "@spartacus/core": "2211.32.0", "@spartacus/order": "2211.32.0", "@spartacus/user": "2211.32.0" }, "optionalDependencies": { - "@angular/platform-server": "^18.2.9", + "@angular/platform-server": "^19.0.3", "express": "^4.21.2" }, "publishConfig": { diff --git a/core-libs/setup/ssr/engine-decorator/ng-express-engine-decorator.ts b/core-libs/setup/ssr/engine-decorator/ng-express-engine-decorator.ts index ec06b414e53..09085c14050 100644 --- a/core-libs/setup/ssr/engine-decorator/ng-express-engine-decorator.ts +++ b/core-libs/setup/ssr/engine-decorator/ng-express-engine-decorator.ts @@ -4,7 +4,10 @@ * SPDX-License-Identifier: Apache-2.0 */ -import { CommonEngineOptions, CommonEngineRenderOptions } from '@angular/ssr'; +import { + CommonEngineOptions, + CommonEngineRenderOptions, +} from '@angular/ssr/node'; import { NgSetupOptions } from '../engine/ng-express-engine'; import { OptimizedSsrEngine, diff --git a/core-libs/setup/ssr/engine/__snapshots__/cx-common-engine.spec.ts.snap b/core-libs/setup/ssr/engine/__snapshots__/cx-common-engine.spec.ts.snap index 8d434144589..b793968c910 100644 --- a/core-libs/setup/ssr/engine/__snapshots__/cx-common-engine.spec.ts.snap +++ b/core-libs/setup/ssr/engine/__snapshots__/cx-common-engine.spec.ts.snap @@ -7,6 +7,6 @@ exports[`CxCommonEngine should handle APP_INITIALIZER errors the standard Angula exports[`CxCommonEngine should handle errors propagated from SSR 1`] = `"test error"`; -exports[`CxCommonEngine should not override providers passed to options 1`] = `"message:test"`; +exports[`CxCommonEngine should not override providers passed to options 1`] = `"message:test"`; -exports[`CxCommonEngine should return html if no errors 1`] = `"some template"`; +exports[`CxCommonEngine should return html if no errors 1`] = `"some template"`; diff --git a/core-libs/setup/ssr/engine/cx-common-engine.spec.ts b/core-libs/setup/ssr/engine/cx-common-engine.spec.ts index 4a37596fe60..acc547dd0f0 100644 --- a/core-libs/setup/ssr/engine/cx-common-engine.spec.ts +++ b/core-libs/setup/ssr/engine/cx-common-engine.spec.ts @@ -8,7 +8,11 @@ import { PROPAGATE_ERROR_TO_SERVER } from '../error-handling/error-response/prop import { CxCommonEngine } from './cx-common-engine'; // Test how the CxCommonEngine handles successful server-side rendering -@Component({ selector: 'cx-mock', template: 'some template' }) +@Component({ + selector: 'cx-mock', + template: 'some template', + standalone: false, +}) export class SuccessComponent {} @NgModule({ @@ -22,6 +26,7 @@ export class SuccessServerModule {} @Component({ selector: 'cx-response', template: ``, + standalone: false, }) export class WithPropagatedErrorComponent { constructor() { @@ -43,6 +48,7 @@ export const SOME_TOKEN = new InjectionToken('SOME_TOKEN'); @Component({ selector: 'cx-token', template: `message:{{ someToken }}`, + standalone: false, }) export class TokenComponent { someToken = inject(SOME_TOKEN); diff --git a/core-libs/setup/ssr/engine/cx-common-engine.ts b/core-libs/setup/ssr/engine/cx-common-engine.ts index a40f94c37ed..14962f87436 100644 --- a/core-libs/setup/ssr/engine/cx-common-engine.ts +++ b/core-libs/setup/ssr/engine/cx-common-engine.ts @@ -8,7 +8,7 @@ import { CommonEngine, CommonEngineOptions, CommonEngineRenderOptions, -} from '@angular/ssr'; +} from '@angular/ssr/node'; import { PROPAGATE_ERROR_TO_SERVER } from '../error-handling/error-response/propagate-error-to-server'; /** diff --git a/core-libs/setup/ssr/engine/ng-express-engine.spec.ts b/core-libs/setup/ssr/engine/ng-express-engine.spec.ts index 648360d56bd..c213b3726ec 100644 --- a/core-libs/setup/ssr/engine/ng-express-engine.spec.ts +++ b/core-libs/setup/ssr/engine/ng-express-engine.spec.ts @@ -25,7 +25,11 @@ import { ngExpressEngine } from './ng-express-engine'; * - https://github.com/angular/universal/blob/e798d256de5e4377b704e63d993dc56ea35df97d/modules/express-engine/spec/mock.server.module.ts * */ -@Component({ selector: 'cx-mock', template: 'some template' }) +@Component({ + selector: 'cx-mock', + template: 'some template', + standalone: false, +}) export class MockComponent {} /** @@ -57,7 +61,11 @@ export class MockServerModule {} * - https://github.com/angular/universal/blob/e798d256de5e4377b704e63d993dc56ea35df97d/modules/express-engine/spec/mock.server.module.ts * */ -@Component({ selector: 'cx-request', template: `url:{{ _req.url }}` }) +@Component({ + selector: 'cx-request', + template: `url:{{ _req.url }}`, + standalone: false, +}) export class RequestComponent { constructor(@Inject(REQUEST) public readonly _req: any) {} } @@ -94,6 +102,7 @@ export class RequestServerModule {} @Component({ selector: 'cx-response', template: `statusCode:{{ _res.statusCode }}`, + standalone: false, }) export class ResponseComponent { constructor(@Inject(RESPONSE) public readonly _res: any) {} @@ -144,6 +153,7 @@ export const SOME_TOKEN = new InjectionToken('SOME_TOKEN'); @Component({ selector: 'cx-token', template: `message:{{ _someToken.message }}`, + standalone: false, }) export class TokenComponent { constructor(@Inject(SOME_TOKEN) public readonly _someToken: any) {} diff --git a/core-libs/setup/ssr/engine/ng-express-engine.ts b/core-libs/setup/ssr/engine/ng-express-engine.ts index 1dfe1bb2533..faaaeeb58c8 100644 --- a/core-libs/setup/ssr/engine/ng-express-engine.ts +++ b/core-libs/setup/ssr/engine/ng-express-engine.ts @@ -5,7 +5,10 @@ */ import { StaticProvider } from '@angular/core'; -import { CommonEngineOptions, CommonEngineRenderOptions } from '@angular/ssr'; +import { + CommonEngineOptions, + CommonEngineRenderOptions, +} from '@angular/ssr/node'; import { Request, Response } from 'express'; import { REQUEST, RESPONSE } from '../tokens/express.tokens'; import { CxCommonEngine } from './cx-common-engine'; diff --git a/core-libs/setup/ssr/optimized-engine/rendering-cache.ts b/core-libs/setup/ssr/optimized-engine/rendering-cache.ts index 11f87612262..8dd11c68920 100644 --- a/core-libs/setup/ssr/optimized-engine/rendering-cache.ts +++ b/core-libs/setup/ssr/optimized-engine/rendering-cache.ts @@ -28,7 +28,10 @@ export class RenderingCache { if (this.options?.cacheSize) { this.renders.delete(key); if (this.renders.size >= this.options.cacheSize) { - this.renders.delete(this.renders.keys().next().value); + const oldestKey = this.renders.keys().next().value; + if (oldestKey !== undefined) { + this.renders.delete(oldestKey); + } } } // cache only if shouldCacheRenderingResult return true diff --git a/docs/migration/2211_ng18/migration.md b/docs/migration/2211_ng18/migration.md deleted file mode 100644 index 57c9ba61cce..00000000000 --- a/docs/migration/2211_ng18/migration.md +++ /dev/null @@ -1,38 +0,0 @@ -# (EARLY NOTES) Migrating a custom app to use Spartacus with Angular v18 - -Before upgrading Spartacus to the new version with Angular 18, you need to first: -- upgrade to the latest 2211.x of Spartacus -- upgrade Angular to version v18 - -## Update Angular to 17 and 18 - -### Update Angular to 17 and 3rd party deps to be compatible with Angular 18 - -Follow the [Angular guidelines for upgrading from v17 to v18](https://angular.dev/update-guide?v=17.0-18.0&l=3) and bump the Angular version locally, and update other 3rd party dependencies from Angular ecosystem to versions compatible with Angular 18 (e.g. `@ng-select/ng-select@13`, `@ngrx/store@18`, `ngx-infinite-scroll@18`): - -```bash -ng update @angular/core@18 @angular/cli@18 @ng-select/ng-select@13 @ngrx/store@18 ngx-infinite-scroll@18 --force -git add . -git commit -m "update angular 18 and 3rd party deps angular 18 compatible" -``` -Note: Do not select `use-application-builder` migration when migrating to Angular 18. Applications created before SPA 2211.19 doesn't support this builder. Applications created starting from 2211.19 already supports it. - -### Run Spartacus update - -After successfully updating the application to Angular 18, execute this command to initiate the Spartacus update process. - -```bash -ng update @spartacus/schematics@latest -``` - -### Adjust Angular configuration - -Due to changes in Angular's application builder, for applications created starting from SPA 2211.19, you need to adjust the `angular.json` file to generate the `index.html` file in the `dist` folder. This is required for CCv2 to map `OCC_BACKEND_BASE_URL_VALUE` and `MEDIA_BACKEND_BASE_URL_VALUE` meta tags to the correct values. Unfortunately, this will contribute to pre-rendering to not work properly (which is a known issue) - -```diff -- "index": "src/index.html" -+ "index": { -+ "input": "src/index.html", -+ "output": "index.html" -+ } -``` diff --git a/docs/migration/2211_ng18/bootstrap.md b/docs/migration/2211_ng19/bootstrap.md similarity index 100% rename from docs/migration/2211_ng18/bootstrap.md rename to docs/migration/2211_ng19/bootstrap.md diff --git a/docs/migration/2211_ng19/migration.md b/docs/migration/2211_ng19/migration.md new file mode 100644 index 00000000000..5ba4f7278b2 --- /dev/null +++ b/docs/migration/2211_ng19/migration.md @@ -0,0 +1,67 @@ +# (EARLY NOTES) Migrating a custom app to use Spartacus with Angular v18 + +Before upgrading Spartacus to the new version with Angular 18, you need to first: + +- upgrade Spartacus to version 2211.32.1 +- install Node 22 version +- upgrade `@types/node` to version 22 + ```bash + npm i @types/node@22 + ``` +- upgrade Angular to version v18 and then to v19 + +## Update Angular to 18 and 19 + +### Update Angular to 18 and 3rd party deps to be compatible with Angular 18 + +> **Warning** +> +> Do not select `use-application-builder` migration when migrating to Angular 18. Applications created before SPA 2211.19 doesn't support this builder. Applications created starting from 2211.19 already support it. + +Follow the [Angular guidelines for upgrading from v17 to v18](https://angular.dev/update-guide?v=17.0-18.0&l=3) and bump the Angular version locally, and update other 3rd party dependencies from Angular ecosystem to versions compatible with Angular 18 (e.g. `@ng-select/ng-select@13`, `@ngrx/store@18`, `ngx-infinite-scroll@18`): + +```bash +ng update @angular/core@18 @angular/cli@18 @ng-select/ng-select@13 @ngrx/store@18 ngx-infinite-scroll@18 --force +git add . +git commit -m "update angular 18 and 3rd party deps angular 18 compatible" +``` + + +### Update Angular to 19 and 3rd party deps to be compatible with Angular 19 + +> **Warning** +> +> Hit SPACE to unselect `use-application-builder` migration when migrating to Angular 19. Applications created before SPA 2211.19 doesn't support this builder. Applications created starting from 2211.19 already support it. + +Follow the [Angular guidelines for upgrading from v18 to v19](https://angular.dev/update-guide?v=18.0-19.0&l=3) and bump the Angular version locally, and update other 3rd party dependencies from Angular ecosystem to versions compatible with Angular 19 (e.g. `@ng-select/ng-select@14`, `@ngrx/store@19`, `ngx-infinite-scroll@19`): + +```bash +ng update @angular/cli@19 @angular/core@19 ngx-infinite-scroll@19 @ng-select/ng-select@14 @ngrx/store@19 angular-oauth2-oidc@19 --force +git add . +git commit -m "update angular 19 and 3rd party deps angular 19 compatible" +``` + + + +## Run Spartacus update + +After successfully updating the application to Angular 19, execute this command to initiate the Spartacus update process. + +```bash +ng update @spartacus/schematics@latest +``` + +### If using Server Side Rendering (SSR) and `application` builder + +For applications with SSR support that use the Angular's `application` builder (i.e. having in `angular.json` the following value: `... "architect": { "build": { "builder": "@angular-devkit/build-angular:application", ...`), you need to adjust the `server.ts` file to be compatible with the output generated by this builder. + +```diff +/* ... */ +- const indexHtml = join(browserDistFolder, 'index.html'); ++ const indexHtml = join(serverDistFolder, 'index.server.html'); +``` + + + + + diff --git a/docs/migration/2211_ng18/typescript-manual.doc.md b/docs/migration/2211_ng19/typescript-manual.doc.md similarity index 100% rename from docs/migration/2211_ng18/typescript-manual.doc.md rename to docs/migration/2211_ng19/typescript-manual.doc.md diff --git a/feature-libs/asm/.eslintrc.json b/feature-libs/asm/.eslintrc.json index 862b5a870b0..9895500871d 100644 --- a/feature-libs/asm/.eslintrc.json +++ b/feature-libs/asm/.eslintrc.json @@ -1,4 +1,9 @@ { "extends": "../../.eslintrc.json", - "ignorePatterns": ["schematics/**/*.d.ts"] + "ignorePatterns": ["schematics/**/*.d.ts"], + "overrides": [ + { + "files": ["*.ts"] + } + ] } diff --git a/feature-libs/asm/components/asm-bind-cart-dialog/asm-bind-cart-dialog.component.spec.ts b/feature-libs/asm/components/asm-bind-cart-dialog/asm-bind-cart-dialog.component.spec.ts index de16eefe7c5..cfc8f12349c 100644 --- a/feature-libs/asm/components/asm-bind-cart-dialog/asm-bind-cart-dialog.component.spec.ts +++ b/feature-libs/asm/components/asm-bind-cart-dialog/asm-bind-cart-dialog.component.spec.ts @@ -9,6 +9,7 @@ import { @Pipe({ name: 'cxTranslate', + standalone: false, }) class MockTranslatePipe implements PipeTransform { transform(): any {} diff --git a/feature-libs/asm/components/asm-bind-cart-dialog/asm-bind-cart-dialog.component.ts b/feature-libs/asm/components/asm-bind-cart-dialog/asm-bind-cart-dialog.component.ts index f65eebcbafb..bf70da30dad 100644 --- a/feature-libs/asm/components/asm-bind-cart-dialog/asm-bind-cart-dialog.component.ts +++ b/feature-libs/asm/components/asm-bind-cart-dialog/asm-bind-cart-dialog.component.ts @@ -15,6 +15,7 @@ export enum BIND_CART_DIALOG_ACTION { @Component({ selector: 'cx-asm-bind-cart-dialog', templateUrl: './asm-bind-cart-dialog.component.html', + standalone: false, }) export class AsmBindCartDialogComponent { BIND_CART_ACTION = BIND_CART_DIALOG_ACTION; diff --git a/feature-libs/asm/components/asm-bind-cart/asm-bind-cart.component.spec.ts b/feature-libs/asm/components/asm-bind-cart/asm-bind-cart.component.spec.ts index 797e40c9092..b6a51f42121 100644 --- a/feature-libs/asm/components/asm-bind-cart/asm-bind-cart.component.spec.ts +++ b/feature-libs/asm/components/asm-bind-cart/asm-bind-cart.component.spec.ts @@ -49,6 +49,7 @@ import createSpy = jasmine.createSpy; @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; @@ -85,6 +86,7 @@ class MockActiveCartService implements Partial { @Pipe({ name: 'cxTranslate', + standalone: false, }) class MockTranslatePipe implements PipeTransform { transform(): any {} diff --git a/feature-libs/asm/components/asm-bind-cart/asm-bind-cart.component.ts b/feature-libs/asm/components/asm-bind-cart/asm-bind-cart.component.ts index f40504b1340..3eccd96dbef 100644 --- a/feature-libs/asm/components/asm-bind-cart/asm-bind-cart.component.ts +++ b/feature-libs/asm/components/asm-bind-cart/asm-bind-cart.component.ts @@ -56,6 +56,7 @@ import { AsmComponentService } from '../services/asm-component.service'; selector: 'cx-asm-bind-cart', templateUrl: './asm-bind-cart.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class AsmBindCartComponent implements OnInit, OnDestroy { activeCartValidator: ValidatorFn = (control) => { diff --git a/feature-libs/asm/components/asm-create-customer-form/asm-create-customer-form.component.spec.ts b/feature-libs/asm/components/asm-create-customer-form/asm-create-customer-form.component.spec.ts index 37a7be58576..7e59c2742fa 100644 --- a/feature-libs/asm/components/asm-create-customer-form/asm-create-customer-form.component.spec.ts +++ b/feature-libs/asm/components/asm-create-customer-form/asm-create-customer-form.component.spec.ts @@ -80,6 +80,7 @@ const duplicatedUidErrorResponse: HttpErrorModel = { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; @@ -99,6 +100,7 @@ class MockAsmCreateCustomerFacade implements Partial { @Directive({ selector: '[cxFocus]', + standalone: false, }) export class MockKeyboadFocusDirective { @Input('cxFocus') config: FocusConfig = {}; diff --git a/feature-libs/asm/components/asm-create-customer-form/asm-create-customer-form.component.ts b/feature-libs/asm/components/asm-create-customer-form/asm-create-customer-form.component.ts index 404f4a32072..b6db2a1e127 100644 --- a/feature-libs/asm/components/asm-create-customer-form/asm-create-customer-form.component.ts +++ b/feature-libs/asm/components/asm-create-customer-form/asm-create-customer-form.component.ts @@ -29,6 +29,7 @@ import { CreatedCustomer } from './asm-create-customer-form.model'; @Component({ selector: 'cx-asm-create-customer-form', templateUrl: './asm-create-customer-form.component.html', + standalone: false, }) export class AsmCreateCustomerFormComponent { createdCustomer: CreatedCustomer; diff --git a/feature-libs/asm/components/asm-main-ui/asm-main-ui.component.spec.ts b/feature-libs/asm/components/asm-main-ui/asm-main-ui.component.spec.ts index a9639e9f823..72e4a81a1d3 100644 --- a/feature-libs/asm/components/asm-main-ui/asm-main-ui.component.spec.ts +++ b/feature-libs/asm/components/asm-main-ui/asm-main-ui.component.spec.ts @@ -48,6 +48,7 @@ class MockAuthService implements Partial { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; @@ -103,18 +104,21 @@ class MockLaunchDialogService implements Partial { @Component({ selector: 'cx-asm-toggle-ui', template: '', + standalone: false, }) class MockAsmToggleUiComponent {} @Component({ selector: 'cx-asm-session-timer', template: '', + standalone: false, }) class MockAsmSessionTimerComponent {} @Component({ selector: 'cx-customer-selection', template: '', + standalone: false, }) class MockCustomerSelectionComponent { @Output() @@ -123,6 +127,7 @@ class MockCustomerSelectionComponent { @Component({ selector: 'cx-csagent-login-form', template: '', + standalone: false, }) class MockCSAgentLoginFormComponent { @Output() @@ -133,6 +138,7 @@ class MockCSAgentLoginFormComponent { @Component({ template: '', selector: 'cx-customer-emulation', + standalone: false, }) class MockCustomerEmulationComponent {} diff --git a/feature-libs/asm/components/asm-main-ui/asm-main-ui.component.ts b/feature-libs/asm/components/asm-main-ui/asm-main-ui.component.ts index 28a1a6ada46..a61573b2385 100644 --- a/feature-libs/asm/components/asm-main-ui/asm-main-ui.component.ts +++ b/feature-libs/asm/components/asm-main-ui/asm-main-ui.component.ts @@ -56,6 +56,7 @@ export const CART_TYPE_KEY: CartTypeKey = { @Component({ selector: 'cx-asm-main-ui', templateUrl: './asm-main-ui.component.html', + standalone: false, }) export class AsmMainUiComponent implements OnInit, OnDestroy { customerSupportAgentLoggedIn$: Observable; diff --git a/feature-libs/asm/components/asm-save-cart-dialog/asm-save-cart-dialog.component.spec.ts b/feature-libs/asm/components/asm-save-cart-dialog/asm-save-cart-dialog.component.spec.ts index c95ac9e59d9..3ae696898a7 100644 --- a/feature-libs/asm/components/asm-save-cart-dialog/asm-save-cart-dialog.component.spec.ts +++ b/feature-libs/asm/components/asm-save-cart-dialog/asm-save-cart-dialog.component.spec.ts @@ -21,6 +21,7 @@ import { GlobalMessageType } from '@spartacus/core'; @Pipe({ name: 'cxTranslate', + standalone: false, }) class MockTranslatePipe implements PipeTransform { transform(): any {} @@ -47,6 +48,7 @@ class MockLaunchDialogService implements Partial { @Component({ selector: 'cx-message', template: '', + standalone: false, }) class MockCxMessageComponent { @Input() text: string; diff --git a/feature-libs/asm/components/asm-save-cart-dialog/asm-save-cart-dialog.component.ts b/feature-libs/asm/components/asm-save-cart-dialog/asm-save-cart-dialog.component.ts index 6353c22a663..519621137cc 100644 --- a/feature-libs/asm/components/asm-save-cart-dialog/asm-save-cart-dialog.component.ts +++ b/feature-libs/asm/components/asm-save-cart-dialog/asm-save-cart-dialog.component.ts @@ -20,6 +20,7 @@ export enum SAVE_CART_DIALOG_ACTION { @Component({ selector: 'cx-asm-save-cart-dialog', templateUrl: './asm-save-cart-dialog.component.html', + standalone: false, }) export class AsmSaveCartDialogComponent implements OnInit { BIND_CART_ACTION = SAVE_CART_DIALOG_ACTION; diff --git a/feature-libs/asm/components/asm-session-timer/asm-session-timer.component.spec.ts b/feature-libs/asm/components/asm-session-timer/asm-session-timer.component.spec.ts index f12b3ccf8df..d5998c4d909 100644 --- a/feature-libs/asm/components/asm-session-timer/asm-session-timer.component.spec.ts +++ b/feature-libs/asm/components/asm-session-timer/asm-session-timer.component.spec.ts @@ -49,6 +49,7 @@ class MockRoutingService implements Partial { @Pipe({ name: 'formatTimer', + standalone: false, }) class MockFormatTimerPipe implements PipeTransform { transform() {} diff --git a/feature-libs/asm/components/asm-session-timer/asm-session-timer.component.ts b/feature-libs/asm/components/asm-session-timer/asm-session-timer.component.ts index edb076e131f..81c4e5f24a6 100644 --- a/feature-libs/asm/components/asm-session-timer/asm-session-timer.component.ts +++ b/feature-libs/asm/components/asm-session-timer/asm-session-timer.component.ts @@ -14,6 +14,7 @@ import { AsmComponentService } from '../services/asm-component.service'; @Component({ selector: 'cx-asm-session-timer', templateUrl: './asm-session-timer.component.html', + standalone: false, }) export class AsmSessionTimerComponent implements OnInit, OnDestroy { protected subscriptions = new Subscription(); diff --git a/feature-libs/asm/components/asm-session-timer/format-timer.pipe.ts b/feature-libs/asm/components/asm-session-timer/format-timer.pipe.ts index 37024dc3fb1..1166e4196e1 100644 --- a/feature-libs/asm/components/asm-session-timer/format-timer.pipe.ts +++ b/feature-libs/asm/components/asm-session-timer/format-timer.pipe.ts @@ -8,6 +8,7 @@ import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ name: 'formatTimer', + standalone: false, }) export class FormatTimerPipe implements PipeTransform { transform(totalSeconds: number): string { diff --git a/feature-libs/asm/components/asm-switch-customer-dialog/asm-switch-customer-dialog.component.spec.ts b/feature-libs/asm/components/asm-switch-customer-dialog/asm-switch-customer-dialog.component.spec.ts index 76ae7a06bdd..56d475aab4a 100644 --- a/feature-libs/asm/components/asm-switch-customer-dialog/asm-switch-customer-dialog.component.spec.ts +++ b/feature-libs/asm/components/asm-switch-customer-dialog/asm-switch-customer-dialog.component.spec.ts @@ -24,6 +24,7 @@ import { @Pipe({ name: 'cxTranslate', + standalone: false, }) class MockTranslatePipe implements PipeTransform { transform(): any {} @@ -46,6 +47,7 @@ class MockAsmComponentService extends AsmComponentService { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; diff --git a/feature-libs/asm/components/asm-switch-customer-dialog/asm-switch-customer-dialog.component.ts b/feature-libs/asm/components/asm-switch-customer-dialog/asm-switch-customer-dialog.component.ts index 54d612b2acd..6f3138c26cc 100644 --- a/feature-libs/asm/components/asm-switch-customer-dialog/asm-switch-customer-dialog.component.ts +++ b/feature-libs/asm/components/asm-switch-customer-dialog/asm-switch-customer-dialog.component.ts @@ -23,6 +23,7 @@ export interface SwitchCustomerData { @Component({ selector: 'cx-asm-switch-customer-dialog', templateUrl: './asm-switch-customer-dialog.component.html', + standalone: false, }) export class AsmSwitchCustomerDialogComponent implements OnInit { SWITCH_CUSTOMER_DIALOG_ACTION = SWITCH_CUSTOMER_DIALOG_ACTION; diff --git a/feature-libs/asm/components/asm-toggle-ui/asm-toggle-ui.component.ts b/feature-libs/asm/components/asm-toggle-ui/asm-toggle-ui.component.ts index 3a77533f624..e467e3b6df7 100644 --- a/feature-libs/asm/components/asm-toggle-ui/asm-toggle-ui.component.ts +++ b/feature-libs/asm/components/asm-toggle-ui/asm-toggle-ui.component.ts @@ -12,6 +12,7 @@ import { Subscription } from 'rxjs'; @Component({ selector: 'cx-asm-toggle-ui', templateUrl: './asm-toggle-ui.component.html', + standalone: false, }) export class AsmToggleUiComponent implements OnInit, OnDestroy { protected subscription = new Subscription(); diff --git a/feature-libs/asm/components/csagent-login-form/csagent-login-form.component.ts b/feature-libs/asm/components/csagent-login-form/csagent-login-form.component.ts index 2a2f4b9beeb..f885fe1151f 100644 --- a/feature-libs/asm/components/csagent-login-form/csagent-login-form.component.ts +++ b/feature-libs/asm/components/csagent-login-form/csagent-login-form.component.ts @@ -15,6 +15,7 @@ import { useFeatureStyles } from '@spartacus/core'; @Component({ selector: 'cx-csagent-login-form', templateUrl: './csagent-login-form.component.html', + standalone: false, }) export class CSAgentLoginFormComponent implements OnInit { csAgentLoginForm: UntypedFormGroup; diff --git a/feature-libs/asm/components/customer-emulation/customer-emulation.component.spec.ts b/feature-libs/asm/components/customer-emulation/customer-emulation.component.spec.ts index df8228944fa..392c7d03a79 100644 --- a/feature-libs/asm/components/customer-emulation/customer-emulation.component.spec.ts +++ b/feature-libs/asm/components/customer-emulation/customer-emulation.component.spec.ts @@ -32,6 +32,7 @@ describe('CustomerEmulationComponent', () => { @Component({ selector: 'cx-asm-bind-cart', template: '', + standalone: false, }) class MockAsmBindCartComponent {} diff --git a/feature-libs/asm/components/customer-emulation/customer-emulation.component.ts b/feature-libs/asm/components/customer-emulation/customer-emulation.component.ts index 52c17b517f3..b5b63ac5b38 100644 --- a/feature-libs/asm/components/customer-emulation/customer-emulation.component.ts +++ b/feature-libs/asm/components/customer-emulation/customer-emulation.component.ts @@ -27,6 +27,7 @@ import { AsmComponentService } from '../services/asm-component.service'; @Component({ selector: 'cx-customer-emulation', templateUrl: './customer-emulation.component.html', + standalone: false, }) export class CustomerEmulationComponent implements OnInit, OnDestroy { customer: User; diff --git a/feature-libs/asm/components/customer-list/customer-list.component.spec.ts b/feature-libs/asm/components/customer-list/customer-list.component.spec.ts index 52e769fa5b5..f6e84a9d102 100644 --- a/feature-libs/asm/components/customer-list/customer-list.component.spec.ts +++ b/feature-libs/asm/components/customer-list/customer-list.component.spec.ts @@ -167,6 +167,7 @@ class MockLaunchDialogService implements Partial { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; @@ -202,6 +203,7 @@ class MockAsmCustomerListFacade implements Partial { @Directive({ selector: '[cxFocus]', + standalone: false, }) export class MockKeyboadFocusDirective { @Input('cxFocus') config: FocusConfig = {}; diff --git a/feature-libs/asm/components/customer-list/customer-list.component.ts b/feature-libs/asm/components/customer-list/customer-list.component.ts index 5331e601c55..1307df74785 100644 --- a/feature-libs/asm/components/customer-list/customer-list.component.ts +++ b/feature-libs/asm/components/customer-list/customer-list.component.ts @@ -41,6 +41,7 @@ import { CustomerListAction } from './customer-list.model'; @Component({ selector: 'cx-customer-list', templateUrl: './customer-list.component.html', + standalone: false, }) export class CustomerListComponent implements OnInit, OnDestroy { protected DEFAULT_PAGE_SIZE = 5; diff --git a/feature-libs/asm/components/customer-selection/customer-selection.component.ts b/feature-libs/asm/components/customer-selection/customer-selection.component.ts index 9b3400928f2..21c9c609c21 100644 --- a/feature-libs/asm/components/customer-selection/customer-selection.component.ts +++ b/feature-libs/asm/components/customer-selection/customer-selection.component.ts @@ -44,6 +44,7 @@ import { debounceTime } from 'rxjs/operators'; host: { '(document:click)': 'onDocumentClick($event)', }, + standalone: false, }) export class CustomerSelectionComponent implements OnInit, OnDestroy { customerSelectionForm: UntypedFormGroup; diff --git a/feature-libs/asm/components/dot-spinner/dot-spinner.component.ts b/feature-libs/asm/components/dot-spinner/dot-spinner.component.ts index ebec0caaaba..f9a0e709d49 100644 --- a/feature-libs/asm/components/dot-spinner/dot-spinner.component.ts +++ b/feature-libs/asm/components/dot-spinner/dot-spinner.component.ts @@ -10,5 +10,6 @@ import { ChangeDetectionStrategy, Component } from '@angular/core'; selector: 'cx-dot-spinner', templateUrl: './dot-spinner.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class DotSpinnerComponent {} diff --git a/feature-libs/asm/core/utils/args/args.pipe.ts b/feature-libs/asm/core/utils/args/args.pipe.ts index 67512604896..9842a0d2afc 100644 --- a/feature-libs/asm/core/utils/args/args.pipe.ts +++ b/feature-libs/asm/core/utils/args/args.pipe.ts @@ -30,7 +30,10 @@ import { Pipe, PipeTransform } from '@angular/core'; * * ``` */ -@Pipe({ name: 'cxArgs' }) +@Pipe({ + name: 'cxArgs', + standalone: false, +}) export class ArgsPipe implements PipeTransform { transform, R>( projectionFunction: (...arglist: A) => R, diff --git a/feature-libs/asm/customer-360/components/asm-customer-360-product-item/asm-customer-360-product-item.component.spec.ts b/feature-libs/asm/customer-360/components/asm-customer-360-product-item/asm-customer-360-product-item.component.spec.ts index e4993183da1..890278c5989 100644 --- a/feature-libs/asm/customer-360/components/asm-customer-360-product-item/asm-customer-360-product-item.component.spec.ts +++ b/feature-libs/asm/customer-360/components/asm-customer-360-product-item/asm-customer-360-product-item.component.spec.ts @@ -16,6 +16,7 @@ import { AsmCustomer360ProductItemComponent } from './asm-customer-360-product-i @Component({ template: '', selector: 'cx-media', + standalone: false, }) class MockMediaComponent { @Input() container: any; @@ -25,6 +26,7 @@ class MockMediaComponent { @Directive({ selector: '[cxFocus]', + standalone: false, }) export class MockKeyboadFocusDirective { @Input('cxFocus') config: FocusConfig = {}; @@ -55,6 +57,7 @@ describe('AsmCustomer360ProductItemComponent', () => { @Pipe({ name: 'cxTranslate', + standalone: false, }) class MockTranslatePipe implements PipeTransform { transform(): any {} @@ -62,6 +65,7 @@ describe('AsmCustomer360ProductItemComponent', () => { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; diff --git a/feature-libs/asm/customer-360/components/asm-customer-360-product-item/asm-customer-360-product-item.component.ts b/feature-libs/asm/customer-360/components/asm-customer-360-product-item/asm-customer-360-product-item.component.ts index f16164063bd..40b335b35de 100644 --- a/feature-libs/asm/customer-360/components/asm-customer-360-product-item/asm-customer-360-product-item.component.ts +++ b/feature-libs/asm/customer-360/components/asm-customer-360-product-item/asm-customer-360-product-item.component.ts @@ -18,6 +18,7 @@ import { ProductItem } from '../asm-customer-360-product-listing/product-item.mo selector: 'cx-asm-customer-360-product-item', templateUrl: './asm-customer-360-product-item.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class AsmCustomer360ProductItemComponent { @Input() product: ProductItem; diff --git a/feature-libs/asm/customer-360/components/asm-customer-360-product-listing/asm-customer-360-product-listing.component.spec.ts b/feature-libs/asm/customer-360/components/asm-customer-360-product-listing/asm-customer-360-product-listing.component.spec.ts index a9f3b7f89b5..aef6b18bd95 100644 --- a/feature-libs/asm/customer-360/components/asm-customer-360-product-listing/asm-customer-360-product-listing.component.spec.ts +++ b/feature-libs/asm/customer-360/components/asm-customer-360-product-listing/asm-customer-360-product-listing.component.spec.ts @@ -30,6 +30,7 @@ describe('AsmCustomer360ProductListingComponent', () => { template: '', selector: '[cx-asm-customer-360-product-item], cx-asm-customer-360-product-item', + standalone: false, }) class MockAsmProductItemComponent { @Input() product: Product; @@ -56,6 +57,7 @@ describe('AsmCustomer360ProductListingComponent', () => {
`, + standalone: false, }) // eslint-disable-next-line @angular-eslint/component-class-suffix class AsmCustomerProductListingComponentTest { diff --git a/feature-libs/asm/customer-360/components/asm-customer-360-product-listing/asm-customer-360-product-listing.component.ts b/feature-libs/asm/customer-360/components/asm-customer-360-product-listing/asm-customer-360-product-listing.component.ts index 41972359ace..4c28f4be33a 100644 --- a/feature-libs/asm/customer-360/components/asm-customer-360-product-listing/asm-customer-360-product-listing.component.ts +++ b/feature-libs/asm/customer-360/components/asm-customer-360-product-listing/asm-customer-360-product-listing.component.ts @@ -24,6 +24,7 @@ import { ProductItem } from './product-item.model'; selector: 'cx-asm-customer-360-product-listing', templateUrl: './asm-customer-360-product-listing.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class AsmCustomer360ProductListingComponent implements OnInit { @Input() diff --git a/feature-libs/asm/customer-360/components/asm-customer-360-promotion-listing/asm-customer-360-promotion-listing.component.spec.ts b/feature-libs/asm/customer-360/components/asm-customer-360-promotion-listing/asm-customer-360-promotion-listing.component.spec.ts index cc59ee8869a..3dc94c6378d 100644 --- a/feature-libs/asm/customer-360/components/asm-customer-360-promotion-listing/asm-customer-360-promotion-listing.component.spec.ts +++ b/feature-libs/asm/customer-360/components/asm-customer-360-promotion-listing/asm-customer-360-promotion-listing.component.spec.ts @@ -16,6 +16,7 @@ describe('AsmCustomer360PromotionListingComponent', () => { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; @@ -24,6 +25,7 @@ describe('AsmCustomer360PromotionListingComponent', () => { @Component({ selector: 'cx-message', template: '', + standalone: false, }) class MockCxMessageComponent { @Input() text: string; @@ -73,6 +75,7 @@ describe('AsmCustomer360PromotionListingComponent', () => { > `, + standalone: false, }) class TestHostComponent { @Input() headerText: string; diff --git a/feature-libs/asm/customer-360/components/asm-customer-360-promotion-listing/asm-customer-360-promotion-listing.component.ts b/feature-libs/asm/customer-360/components/asm-customer-360-promotion-listing/asm-customer-360-promotion-listing.component.ts index d5555d44eab..f4e9f45feef 100644 --- a/feature-libs/asm/customer-360/components/asm-customer-360-promotion-listing/asm-customer-360-promotion-listing.component.ts +++ b/feature-libs/asm/customer-360/components/asm-customer-360-promotion-listing/asm-customer-360-promotion-listing.component.ts @@ -17,6 +17,7 @@ import { PromotionListEntry } from './asm-customer-360-promotion-listing.model'; changeDetection: ChangeDetectionStrategy.OnPush, selector: 'cx-asm-customer-360-promotion-listing', templateUrl: './asm-customer-360-promotion-listing.component.html', + standalone: false, }) export class AsmCustomer360PromotionListingComponent { @Input() headerText: string; diff --git a/feature-libs/asm/customer-360/components/asm-customer-360-table/asm-customer-360-table.component.spec.ts b/feature-libs/asm/customer-360/components/asm-customer-360-table/asm-customer-360-table.component.spec.ts index e386b53cdc4..5660098ff14 100644 --- a/feature-libs/asm/customer-360/components/asm-customer-360-table/asm-customer-360-table.component.spec.ts +++ b/feature-libs/asm/customer-360/components/asm-customer-360-table/asm-customer-360-table.component.spec.ts @@ -40,6 +40,7 @@ import { @Directive({ selector: '[cxFocus]', + standalone: false, }) export class MockKeyboadFocusDirective { @Input('cxFocus') config: FocusConfig = {}; @@ -83,6 +84,7 @@ describe('AsmCustomer360TableComponent', () => { }; @Pipe({ name: 'cxTranslate', + standalone: false, }) class MockTranslatePipe implements PipeTransform { transform(): any {} @@ -90,6 +92,7 @@ describe('AsmCustomer360TableComponent', () => { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; @@ -217,6 +220,7 @@ describe('AsmCustomer360TableComponent', () => { (selectItem)="itemSelected($event)" > `, + standalone: false, }) class TestHostComponent { @Input() columns: Array; diff --git a/feature-libs/asm/customer-360/components/asm-customer-360-table/asm-customer-360-table.component.ts b/feature-libs/asm/customer-360/components/asm-customer-360-table/asm-customer-360-table.component.ts index 45776a74268..c6060cbc331 100644 --- a/feature-libs/asm/customer-360/components/asm-customer-360-table/asm-customer-360-table.component.ts +++ b/feature-libs/asm/customer-360/components/asm-customer-360-table/asm-customer-360-table.component.ts @@ -43,6 +43,7 @@ import { KeyBoardEventCode } from '@spartacus/asm/customer-360/root'; changeDetection: ChangeDetectionStrategy.OnPush, selector: 'cx-asm-customer-360-table', templateUrl: './asm-customer-360-table.component.html', + standalone: false, }) export class AsmCustomer360TableComponent implements OnChanges, AfterViewChecked diff --git a/feature-libs/asm/customer-360/components/asm-customer-360/asm-customer-360.component.spec.ts b/feature-libs/asm/customer-360/components/asm-customer-360/asm-customer-360.component.spec.ts index 2db999173f6..f89bc0f39c5 100644 --- a/feature-libs/asm/customer-360/components/asm-customer-360/asm-customer-360.component.spec.ts +++ b/feature-libs/asm/customer-360/components/asm-customer-360/asm-customer-360.component.spec.ts @@ -112,6 +112,7 @@ describe('AsmCustomer360Component', () => { @Component({ selector: 'cx-asm-customer-360-section', template: '', + standalone: false, }) class MockAsmCustomer360SectionComponent {} diff --git a/feature-libs/asm/customer-360/components/asm-customer-360/asm-customer-360.component.ts b/feature-libs/asm/customer-360/components/asm-customer-360/asm-customer-360.component.ts index cfc0be1d8cd..cbdf3d2865b 100644 --- a/feature-libs/asm/customer-360/components/asm-customer-360/asm-customer-360.component.ts +++ b/feature-libs/asm/customer-360/components/asm-customer-360/asm-customer-360.component.ts @@ -49,6 +49,7 @@ import { AsmCustomer360Config } from '../config/asm-customer-360-config'; changeDetection: ChangeDetectionStrategy.OnPush, selector: 'cx-asm-customer-360', templateUrl: './asm-customer-360.component.html', + standalone: false, }) export class AsmCustomer360Component implements OnDestroy, OnInit { @HostBinding('attr.role') role = 'dialog'; diff --git a/feature-libs/asm/customer-360/components/sections/asm-customer-360-active-cart/asm-customer-360-active-cart.component.spec.ts b/feature-libs/asm/customer-360/components/sections/asm-customer-360-active-cart/asm-customer-360-active-cart.component.spec.ts index eb3accbc8a7..fd0813aa86e 100644 --- a/feature-libs/asm/customer-360/components/sections/asm-customer-360-active-cart/asm-customer-360-active-cart.component.spec.ts +++ b/feature-libs/asm/customer-360/components/sections/asm-customer-360-active-cart/asm-customer-360-active-cart.component.spec.ts @@ -122,6 +122,7 @@ describe('AsmCustomer360ActiveCartComponent', () => { @Component({ template: '', selector: 'cx-media', + standalone: false, }) class MockMediaComponent { @Input() container: any; diff --git a/feature-libs/asm/customer-360/components/sections/asm-customer-360-active-cart/asm-customer-360-active-cart.component.ts b/feature-libs/asm/customer-360/components/sections/asm-customer-360-active-cart/asm-customer-360-active-cart.component.ts index bd943302f23..74ef7670c54 100644 --- a/feature-libs/asm/customer-360/components/sections/asm-customer-360-active-cart/asm-customer-360-active-cart.component.ts +++ b/feature-libs/asm/customer-360/components/sections/asm-customer-360-active-cart/asm-customer-360-active-cart.component.ts @@ -19,6 +19,7 @@ import { changeDetection: ChangeDetectionStrategy.OnPush, selector: 'cx-asm-customer-360-active-cart', templateUrl: './asm-customer-360-active-cart.component.html', + standalone: false, }) export class AsmCustomer360ActiveCartComponent { productItems$: Observable>; diff --git a/feature-libs/asm/customer-360/components/sections/asm-customer-360-activity/asm-customer-360-activity.component.spec.ts b/feature-libs/asm/customer-360/components/sections/asm-customer-360-activity/asm-customer-360-activity.component.spec.ts index cc6a4eadc87..c14621d5413 100644 --- a/feature-libs/asm/customer-360/components/sections/asm-customer-360-activity/asm-customer-360-activity.component.spec.ts +++ b/feature-libs/asm/customer-360/components/sections/asm-customer-360-activity/asm-customer-360-activity.component.spec.ts @@ -28,6 +28,7 @@ import { AsmCustomer360ActivityComponent } from './asm-customer-360-activity.com @Directive({ selector: '[cxFocus]', + standalone: false, }) export class MockKeyboadFocusDirective { @Input('cxFocus') config: FocusConfig = {}; @@ -36,6 +37,7 @@ export class MockKeyboadFocusDirective { describe('AsmCustomer360ActivityComponent', () => { @Pipe({ name: 'cxTranslate', + standalone: false, }) class MockTranslatePipe implements PipeTransform { transform(): any {} @@ -43,6 +45,7 @@ describe('AsmCustomer360ActivityComponent', () => { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; diff --git a/feature-libs/asm/customer-360/components/sections/asm-customer-360-activity/asm-customer-360-activity.component.ts b/feature-libs/asm/customer-360/components/sections/asm-customer-360-activity/asm-customer-360-activity.component.ts index 6bf19fc1af5..3aa3268df1c 100644 --- a/feature-libs/asm/customer-360/components/sections/asm-customer-360-activity/asm-customer-360-activity.component.ts +++ b/feature-libs/asm/customer-360/components/sections/asm-customer-360-activity/asm-customer-360-activity.component.ts @@ -20,6 +20,7 @@ import { ActivityEntry, TypeCodes } from './asm-customer-360-activity.model'; changeDetection: ChangeDetectionStrategy.OnPush, selector: 'cx-asm-customer-360-activity', templateUrl: './asm-customer-360-activity.component.html', + standalone: false, }) export class AsmCustomer360ActivityComponent implements OnInit { entries$: Observable>; diff --git a/feature-libs/asm/customer-360/components/sections/asm-customer-360-coupon/asm-customer-360-coupon.component.ts b/feature-libs/asm/customer-360/components/sections/asm-customer-360-coupon/asm-customer-360-coupon.component.ts index 9dbdbd8624f..601c2f3ea2c 100644 --- a/feature-libs/asm/customer-360/components/sections/asm-customer-360-coupon/asm-customer-360-coupon.component.ts +++ b/feature-libs/asm/customer-360/components/sections/asm-customer-360-coupon/asm-customer-360-coupon.component.ts @@ -26,6 +26,7 @@ import { AsmCustomer360SectionContext } from '../asm-customer-360-section-contex changeDetection: ChangeDetectionStrategy.OnPush, selector: 'cx-asm-customer-360-coupon', templateUrl: './asm-customer-360-coupon.component.html', + standalone: false, }) export class AsmCustomer360CouponComponent implements OnInit, OnDestroy { showErrorAlert$ = new BehaviorSubject(false); diff --git a/feature-libs/asm/customer-360/components/sections/asm-customer-360-customer-coupon/asm-customer-360-customer-coupon.component.html b/feature-libs/asm/customer-360/components/sections/asm-customer-360-customer-coupon/asm-customer-360-customer-coupon.component.html index 69d5230a641..878cdf9dd51 100644 --- a/feature-libs/asm/customer-360/components/sections/asm-customer-360-customer-coupon/asm-customer-360-customer-coupon.component.html +++ b/feature-libs/asm/customer-360/components/sections/asm-customer-360-customer-coupon/asm-customer-360-customer-coupon.component.html @@ -56,7 +56,7 @@ [type]="iconTypes.CLOSE" role="button" title="{{ 'common.close' | cxTranslate }}" - (click)="this.searchBox.value = ''" + (click)="searchBox.value = ''" > { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; diff --git a/feature-libs/asm/customer-360/components/sections/asm-customer-360-customer-coupon/asm-customer-360-customer-coupon.component.ts b/feature-libs/asm/customer-360/components/sections/asm-customer-360-customer-coupon/asm-customer-360-customer-coupon.component.ts index 52097632544..613ef3e2414 100644 --- a/feature-libs/asm/customer-360/components/sections/asm-customer-360-customer-coupon/asm-customer-360-customer-coupon.component.ts +++ b/feature-libs/asm/customer-360/components/sections/asm-customer-360-customer-coupon/asm-customer-360-customer-coupon.component.ts @@ -27,6 +27,7 @@ import { ICON_TYPE } from '@spartacus/storefront'; changeDetection: ChangeDetectionStrategy.OnPush, selector: 'cx-asm-customer-360-customer-coupon', templateUrl: './asm-customer-360-customer-coupon.component.html', + standalone: false, }) export class AsmCustomer360CustomerCouponComponent implements OnInit, OnDestroy diff --git a/feature-libs/asm/customer-360/components/sections/asm-customer-360-map/asm-customer-360-map.component.ts b/feature-libs/asm/customer-360/components/sections/asm-customer-360-map/asm-customer-360-map.component.ts index e8a118ac9d0..9bba34d79af 100644 --- a/feature-libs/asm/customer-360/components/sections/asm-customer-360-map/asm-customer-360-map.component.ts +++ b/feature-libs/asm/customer-360/components/sections/asm-customer-360-map/asm-customer-360-map.component.ts @@ -34,6 +34,7 @@ import { AsmCustomer360SectionContext } from '../asm-customer-360-section-contex changeDetection: ChangeDetectionStrategy.OnPush, selector: 'cx-asm-customer-360-map', templateUrl: './asm-customer-360-map.component.html', + standalone: false, }) export class AsmCustomer360MapComponent implements OnDestroy, OnInit { storeData: StoreFinderSearchPage; diff --git a/feature-libs/asm/customer-360/components/sections/asm-customer-360-product-interests/asm-customer-360-product-interests.component.spec.ts b/feature-libs/asm/customer-360/components/sections/asm-customer-360-product-interests/asm-customer-360-product-interests.component.spec.ts index 42e72fbca6a..9d129f1d247 100644 --- a/feature-libs/asm/customer-360/components/sections/asm-customer-360-product-interests/asm-customer-360-product-interests.component.spec.ts +++ b/feature-libs/asm/customer-360/components/sections/asm-customer-360-product-interests/asm-customer-360-product-interests.component.spec.ts @@ -97,6 +97,7 @@ describe('AsmCustomer360ProductInterestsComponent', () => { @Component({ template: '', selector: 'cx-media', + standalone: false, }) class MockMediaComponent { @Input() container: any; diff --git a/feature-libs/asm/customer-360/components/sections/asm-customer-360-product-interests/asm-customer-360-product-interests.component.ts b/feature-libs/asm/customer-360/components/sections/asm-customer-360-product-interests/asm-customer-360-product-interests.component.ts index d3777c9afbc..53872dba975 100644 --- a/feature-libs/asm/customer-360/components/sections/asm-customer-360-product-interests/asm-customer-360-product-interests.component.ts +++ b/feature-libs/asm/customer-360/components/sections/asm-customer-360-product-interests/asm-customer-360-product-interests.component.ts @@ -16,6 +16,7 @@ import { AsmCustomer360SectionContext } from '../asm-customer-360-section-contex changeDetection: ChangeDetectionStrategy.OnPush, selector: 'cx-asm-customer-360-product-interests', templateUrl: './asm-customer-360-product-interests.component.html', + standalone: false, }) export class AsmCustomer360ProductInterestsComponent { products$: Observable>; diff --git a/feature-libs/asm/customer-360/components/sections/asm-customer-360-product-reviews/asm-customer-360-product-reviews.component.spec.ts b/feature-libs/asm/customer-360/components/sections/asm-customer-360-product-reviews/asm-customer-360-product-reviews.component.spec.ts index b57f4911690..e049e170303 100644 --- a/feature-libs/asm/customer-360/components/sections/asm-customer-360-product-reviews/asm-customer-360-product-reviews.component.spec.ts +++ b/feature-libs/asm/customer-360/components/sections/asm-customer-360-product-reviews/asm-customer-360-product-reviews.component.spec.ts @@ -39,6 +39,7 @@ describe('AsmCustomer360ProductReviewsComponent', () => { } @Pipe({ name: 'cxTranslate', + standalone: false, }) class MockTranslatePipe implements PipeTransform { transform(): any {} @@ -47,6 +48,7 @@ describe('AsmCustomer360ProductReviewsComponent', () => { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; @@ -55,6 +57,7 @@ describe('AsmCustomer360ProductReviewsComponent', () => { @Component({ selector: 'cx-star-rating', template: '', + standalone: false, }) class MockCxStarRatingnComponent { @Input() rating: number; diff --git a/feature-libs/asm/customer-360/components/sections/asm-customer-360-product-reviews/asm-customer-360-product-reviews.component.ts b/feature-libs/asm/customer-360/components/sections/asm-customer-360-product-reviews/asm-customer-360-product-reviews.component.ts index fad968cac87..2b620880006 100644 --- a/feature-libs/asm/customer-360/components/sections/asm-customer-360-product-reviews/asm-customer-360-product-reviews.component.ts +++ b/feature-libs/asm/customer-360/components/sections/asm-customer-360-product-reviews/asm-customer-360-product-reviews.component.ts @@ -24,6 +24,7 @@ import { AsmCustomer360Config } from '../../config/asm-customer-360-config'; selector: 'cx-asm-customer-360-product-reviews', templateUrl: './asm-customer-360-product-reviews.component.html', providers: [CxDatePipe], + standalone: false, }) export class AsmCustomer360ProductReviewsComponent implements OnInit { reviewColumns: Array = [ diff --git a/feature-libs/asm/customer-360/components/sections/asm-customer-360-profile/asm-customer-360-profile.component.spec.ts b/feature-libs/asm/customer-360/components/sections/asm-customer-360-profile/asm-customer-360-profile.component.spec.ts index deb9b554f1a..f112283874b 100644 --- a/feature-libs/asm/customer-360/components/sections/asm-customer-360-profile/asm-customer-360-profile.component.spec.ts +++ b/feature-libs/asm/customer-360/components/sections/asm-customer-360-profile/asm-customer-360-profile.component.spec.ts @@ -23,6 +23,7 @@ import { By } from '@angular/platform-browser'; @Directive({ selector: '[cxFocus]', + standalone: false, }) export class MockKeyboadFocusDirective { @Input('cxFocus') config: FocusConfig = {}; @@ -80,6 +81,7 @@ describe('AsmCustomer360ProfileComponent', () => { }; @Pipe({ name: 'cxTranslate', + standalone: false, }) class MockTranslatePipe implements PipeTransform { transform(): any {} @@ -87,6 +89,7 @@ describe('AsmCustomer360ProfileComponent', () => { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; diff --git a/feature-libs/asm/customer-360/components/sections/asm-customer-360-profile/asm-customer-360-profile.component.ts b/feature-libs/asm/customer-360/components/sections/asm-customer-360-profile/asm-customer-360-profile.component.ts index 1c6e0d48c8e..3ebb497acec 100644 --- a/feature-libs/asm/customer-360/components/sections/asm-customer-360-profile/asm-customer-360-profile.component.ts +++ b/feature-libs/asm/customer-360/components/sections/asm-customer-360-profile/asm-customer-360-profile.component.ts @@ -21,6 +21,7 @@ import { AsmCustomer360SectionContext } from '../asm-customer-360-section-contex @Component({ selector: 'cx-asm-customer-360-profile', templateUrl: './asm-customer-360-profile.component.html', + standalone: false, }) export class AsmCustomer360ProfileComponent implements OnInit { focusConfig: FocusConfig = { diff --git a/feature-libs/asm/customer-360/components/sections/asm-customer-360-promotion/asm-customer-360-promotion.component.spec.ts b/feature-libs/asm/customer-360/components/sections/asm-customer-360-promotion/asm-customer-360-promotion.component.spec.ts index 5bf7d1da78a..e833dae401c 100644 --- a/feature-libs/asm/customer-360/components/sections/asm-customer-360-promotion/asm-customer-360-promotion.component.spec.ts +++ b/feature-libs/asm/customer-360/components/sections/asm-customer-360-promotion/asm-customer-360-promotion.component.spec.ts @@ -19,6 +19,7 @@ describe('AsmCustomer360PromotionComponent', () => { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; diff --git a/feature-libs/asm/customer-360/components/sections/asm-customer-360-promotion/asm-customer-360-promotion.component.ts b/feature-libs/asm/customer-360/components/sections/asm-customer-360-promotion/asm-customer-360-promotion.component.ts index ee649cefe38..2eec73fff0e 100644 --- a/feature-libs/asm/customer-360/components/sections/asm-customer-360-promotion/asm-customer-360-promotion.component.ts +++ b/feature-libs/asm/customer-360/components/sections/asm-customer-360-promotion/asm-customer-360-promotion.component.ts @@ -25,6 +25,7 @@ import { ActiveCartFacade } from '@spartacus/cart/base/root'; changeDetection: ChangeDetectionStrategy.OnPush, selector: 'cx-asm-customer-360-promotion', templateUrl: './asm-customer-360-promotion.component.html', + standalone: false, }) export class AsmCustomer360PromotionComponent implements OnInit, OnDestroy { showErrorAlert$ = new BehaviorSubject(false); diff --git a/feature-libs/asm/customer-360/components/sections/asm-customer-360-saved-cart/asm-customer-360-saved-cart.component.spec.ts b/feature-libs/asm/customer-360/components/sections/asm-customer-360-saved-cart/asm-customer-360-saved-cart.component.spec.ts index 32e2e892e9f..555dc9bc420 100644 --- a/feature-libs/asm/customer-360/components/sections/asm-customer-360-saved-cart/asm-customer-360-saved-cart.component.spec.ts +++ b/feature-libs/asm/customer-360/components/sections/asm-customer-360-saved-cart/asm-customer-360-saved-cart.component.spec.ts @@ -122,6 +122,7 @@ describe('AsmCustomer360SavedCartComponent', () => { @Component({ template: '', selector: 'cx-media', + standalone: false, }) class MockMediaComponent { @Input() container: any; diff --git a/feature-libs/asm/customer-360/components/sections/asm-customer-360-saved-cart/asm-customer-360-saved-cart.component.ts b/feature-libs/asm/customer-360/components/sections/asm-customer-360-saved-cart/asm-customer-360-saved-cart.component.ts index 4a4feca7654..34af60a84bd 100644 --- a/feature-libs/asm/customer-360/components/sections/asm-customer-360-saved-cart/asm-customer-360-saved-cart.component.ts +++ b/feature-libs/asm/customer-360/components/sections/asm-customer-360-saved-cart/asm-customer-360-saved-cart.component.ts @@ -20,6 +20,7 @@ import { Product, ProductScope, ProductService } from '@spartacus/core'; selector: 'cx-asm-customer-360-saved-cart', changeDetection: ChangeDetectionStrategy.OnPush, templateUrl: './asm-customer-360-saved-cart.component.html', + standalone: false, }) export class AsmCustomer360SavedCartComponent { savedCart$: Observable; diff --git a/feature-libs/asm/customer-360/components/sections/asm-customer-360-section/asm-customer-360-section.component.ts b/feature-libs/asm/customer-360/components/sections/asm-customer-360-section/asm-customer-360-section.component.ts index fb31fd9cea3..0d60f6944c8 100644 --- a/feature-libs/asm/customer-360/components/sections/asm-customer-360-section/asm-customer-360-section.component.ts +++ b/feature-libs/asm/customer-360/components/sections/asm-customer-360-section/asm-customer-360-section.component.ts @@ -29,6 +29,7 @@ import { AsmCustomer360SectionContext } from '../asm-customer-360-section-contex useExisting: AsmCustomer360SectionContextSource, }, ], + standalone: false, }) export class AsmCustomer360SectionComponent implements OnDestroy { @Input() diff --git a/feature-libs/asm/customer-360/components/sections/asm-customer-360-support-tickets/asm-customer-360-support-tickets.component.spec.ts b/feature-libs/asm/customer-360/components/sections/asm-customer-360-support-tickets/asm-customer-360-support-tickets.component.spec.ts index 8aa63f8940b..1c9cfce610a 100644 --- a/feature-libs/asm/customer-360/components/sections/asm-customer-360-support-tickets/asm-customer-360-support-tickets.component.spec.ts +++ b/feature-libs/asm/customer-360/components/sections/asm-customer-360-support-tickets/asm-customer-360-support-tickets.component.spec.ts @@ -39,6 +39,7 @@ describe('AsmCustomer360SupportTicketsComponent', () => { } @Pipe({ name: 'cxTranslate', + standalone: false, }) class MockTranslatePipe implements PipeTransform { transform(): any {} @@ -47,6 +48,7 @@ describe('AsmCustomer360SupportTicketsComponent', () => { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; diff --git a/feature-libs/asm/customer-360/components/sections/asm-customer-360-support-tickets/asm-customer-360-support-tickets.component.ts b/feature-libs/asm/customer-360/components/sections/asm-customer-360-support-tickets/asm-customer-360-support-tickets.component.ts index b106ad89a9b..730e3a6270b 100644 --- a/feature-libs/asm/customer-360/components/sections/asm-customer-360-support-tickets/asm-customer-360-support-tickets.component.ts +++ b/feature-libs/asm/customer-360/components/sections/asm-customer-360-support-tickets/asm-customer-360-support-tickets.component.ts @@ -20,6 +20,7 @@ import { SupportTicketEntry } from './asm-customer-360-support-tickets.model'; changeDetection: ChangeDetectionStrategy.OnPush, selector: 'cx-asm-customer-360-support-tickets', templateUrl: './asm-customer-360-support-tickets.component.html', + standalone: false, }) export class AsmCustomer360SupportTicketsComponent implements OnInit { supportTicketsColumns: Array = [ diff --git a/feature-libs/asm/customer-360/core/services/asm-customer-360.service.spec.ts b/feature-libs/asm/customer-360/core/services/asm-customer-360.service.spec.ts index be66d764b2f..cdd3905d30a 100644 --- a/feature-libs/asm/customer-360/core/services/asm-customer-360.service.spec.ts +++ b/feature-libs/asm/customer-360/core/services/asm-customer-360.service.spec.ts @@ -16,6 +16,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'cx-dummy', template: '
This is a dummy component
', + standalone: false, }) export class DummyComponent {} diff --git a/feature-libs/asm/package.json b/feature-libs/asm/package.json index 90dccf51338..910a8c4636a 100644 --- a/feature-libs/asm/package.json +++ b/feature-libs/asm/package.json @@ -25,13 +25,13 @@ "tslib": "^2.8.1" }, "peerDependencies": { - "@angular-devkit/schematics": "^18.2.9", - "@angular/common": "^18.2.9", - "@angular/core": "^18.2.9", - "@angular/forms": "^18.2.9", - "@ng-select/ng-select": "^13.9.1", - "@ngrx/effects": "^18.1.1", - "@ngrx/store": "^18.1.1", + "@angular-devkit/schematics": "^19.0.4", + "@angular/common": "^19.0.3", + "@angular/core": "^19.0.3", + "@angular/forms": "^19.0.3", + "@ng-select/ng-select": "^14.1.0", + "@ngrx/effects": "^19.0.0", + "@ngrx/store": "^19.0.0", "@spartacus/cart": "2211.32.0", "@spartacus/core": "2211.32.0", "@spartacus/order": "2211.32.0", diff --git a/feature-libs/asm/root/services/csagent-auth.service.spec.ts b/feature-libs/asm/root/services/csagent-auth.service.spec.ts index 846706340e8..49914c8ba96 100644 --- a/feature-libs/asm/root/services/csagent-auth.service.spec.ts +++ b/feature-libs/asm/root/services/csagent-auth.service.spec.ts @@ -10,17 +10,17 @@ import { OCC_USER_ID_CURRENT, UserIdService, } from '@spartacus/core'; +import { UserAccountFacade } from '@spartacus/user/account/root'; import { TokenResponse } from 'angular-oauth2-oidc'; import { of } from 'rxjs'; import { take } from 'rxjs/operators'; -import { AsmState, ASM_FEATURE } from '../../core/store/asm-state'; +import { ASM_FEATURE, AsmState } from '../../core/store/asm-state'; import * as fromReducers from '../../core/store/reducers/index'; import { AsmAuthStorageService, TokenTarget, } from '../services/asm-auth-storage.service'; import { CsAgentAuthService } from './csagent-auth.service'; -import { UserAccountFacade } from '@spartacus/user/account/root'; class MockAuthService implements Partial { logout() {} @@ -89,7 +89,7 @@ describe('CsAgentAuthService', () => { oAuthLibWrapperService, 'authorizeWithPasswordFlow' ).and.callThrough(); - spyOn(store, 'dispatch').and.callFake(() => {}); + spyOn(store, 'dispatch').and.callFake(() => null); spyOn(userIdService, 'setUserId').and.callThrough(); spyOn(asmAuthStorageService, 'clearEmulatedUserToken').and.callThrough(); @@ -113,7 +113,7 @@ describe('CsAgentAuthService', () => { }); it('when there was logged in user, should login CS agent and start emulation for that user', async () => { - const dispatch = spyOn(store, 'dispatch').and.callFake(() => {}); + const dispatch = spyOn(store, 'dispatch').and.callFake(() => null); spyOn( oAuthLibWrapperService, 'authorizeWithPasswordFlow' @@ -148,7 +148,7 @@ describe('CsAgentAuthService', () => { }); it('should not changed storage state, when authorization failed', async () => { - spyOn(store, 'dispatch').and.callFake(() => {}); + spyOn(store, 'dispatch').and.callFake(() => null); spyOn(oAuthLibWrapperService, 'authorizeWithPasswordFlow').and.callFake( () => { return Promise.reject(); @@ -181,7 +181,7 @@ describe('CsAgentAuthService', () => { describe('startCustomerEmulationSession()', () => { it('should start emulation of a customer', () => { - const dispatch = spyOn(store, 'dispatch').and.callFake(() => {}); + const dispatch = spyOn(store, 'dispatch').and.callFake(() => null); spyOn(asmAuthStorageService, 'clearEmulatedUserToken').and.callThrough(); spyOn(userIdService, 'setUserId').and.callThrough(); @@ -264,7 +264,7 @@ describe('CsAgentAuthService', () => { describe('logoutCustomerSupportAgent()', () => { it('should logout CS agent', async () => { - const dispatch = spyOn(store, 'dispatch').and.callFake(() => {}); + const dispatch = spyOn(store, 'dispatch').and.callFake(() => null); spyOn(oAuthLibWrapperService, 'revokeAndLogout').and.callThrough(); await service.logoutCustomerSupportAgent(); @@ -283,7 +283,7 @@ describe('CsAgentAuthService', () => { }); it('should restore previous session when there is old session token', async () => { - const dispatch = spyOn(store, 'dispatch').and.callFake(() => {}); + const dispatch = spyOn(store, 'dispatch').and.callFake(() => null); spyOn(asmAuthStorageService, 'setToken').and.callThrough(); spyOn(asmAuthStorageService, 'clearEmulatedUserToken').and.callThrough(); spyOn(userIdService, 'setUserId').and.callThrough(); diff --git a/feature-libs/asm/schematics/add-asm/__snapshots__/index_spec.ts.snap b/feature-libs/asm/schematics/add-asm/__snapshots__/index_spec.ts.snap index 3ad8bad30a3..01f5ca994ee 100644 --- a/feature-libs/asm/schematics/add-asm/__snapshots__/index_spec.ts.snap +++ b/feature-libs/asm/schematics/add-asm/__snapshots__/index_spec.ts.snap @@ -110,7 +110,12 @@ exports[`Spartacus Asm schematics: ng-add Asm feature general setup styling shou "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } }, "configurations": { @@ -123,8 +128,8 @@ exports[`Spartacus Asm schematics: ng-add Asm feature general setup styling shou }, { "type": "anyComponentStyle", - "maximumWarning": "2kB", - "maximumError": "4kB" + "maximumWarning": "4kB", + "maximumError": "8kB" } ], "outputHashing": "all" @@ -175,7 +180,12 @@ exports[`Spartacus Asm schematics: ng-add Asm feature general setup styling shou "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } } } diff --git a/feature-libs/cart/.eslintrc.json b/feature-libs/cart/.eslintrc.json index 862b5a870b0..9895500871d 100644 --- a/feature-libs/cart/.eslintrc.json +++ b/feature-libs/cart/.eslintrc.json @@ -1,4 +1,9 @@ { "extends": "../../.eslintrc.json", - "ignorePatterns": ["schematics/**/*.d.ts"] + "ignorePatterns": ["schematics/**/*.d.ts"], + "overrides": [ + { + "files": ["*.ts"] + } + ] } diff --git a/feature-libs/cart/base/components/abstract-order-context/abstract-order-context.directive.spec.ts b/feature-libs/cart/base/components/abstract-order-context/abstract-order-context.directive.spec.ts index a06d5161d24..8d4bc44ec9c 100644 --- a/feature-libs/cart/base/components/abstract-order-context/abstract-order-context.directive.spec.ts +++ b/feature-libs/cart/base/components/abstract-order-context/abstract-order-context.directive.spec.ts @@ -15,6 +15,7 @@ let emissionCounterKey = 0; template: ` `, + standalone: false, }) class TestComponent { abstractOrderKey: AbstractOrderKeyInput = { @@ -31,6 +32,7 @@ class TestComponent { {{ key.type }} `, + standalone: false, }) class TestInnerComponent { abstractOrderContext = inject(AbstractOrderContext, { optional: true }); diff --git a/feature-libs/cart/base/components/abstract-order-context/abstract-order-context.directive.ts b/feature-libs/cart/base/components/abstract-order-context/abstract-order-context.directive.ts index 2d6c0795060..5978af629f8 100644 --- a/feature-libs/cart/base/components/abstract-order-context/abstract-order-context.directive.ts +++ b/feature-libs/cart/base/components/abstract-order-context/abstract-order-context.directive.ts @@ -32,6 +32,7 @@ export interface AbstractOrderKeyInput { AbstractOrderContextSource, { provide: AbstractOrderContext, useExisting: AbstractOrderContextSource }, ], + standalone: false, }) export class AbstractOrderContextDirective implements OnChanges { @Input() cxAbstractOrderContext: AbstractOrderKeyInput; diff --git a/feature-libs/cart/base/components/add-to-cart/add-to-cart.component.spec.ts b/feature-libs/cart/base/components/add-to-cart/add-to-cart.component.spec.ts index 5c320f5d9d0..7984b4a1b7d 100644 --- a/feature-libs/cart/base/components/add-to-cart/add-to-cart.component.spec.ts +++ b/feature-libs/cart/base/components/add-to-cart/add-to-cart.component.spec.ts @@ -105,6 +105,7 @@ class MockProductAvailabilityAdapter {} @Component({ template: '', selector: 'cx-item-counter', + standalone: false, }) class MockItemCounterComponent { @Input() min; diff --git a/feature-libs/cart/base/components/add-to-cart/add-to-cart.component.ts b/feature-libs/cart/base/components/add-to-cart/add-to-cart.component.ts index 49a6269dbc2..b2b1e9bf50c 100644 --- a/feature-libs/cart/base/components/add-to-cart/add-to-cart.component.ts +++ b/feature-libs/cart/base/components/add-to-cart/add-to-cart.component.ts @@ -49,6 +49,7 @@ import { filter, map, take } from 'rxjs/operators'; selector: 'cx-add-to-cart', templateUrl: './add-to-cart.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class AddToCartComponent implements OnInit, OnDestroy { @Input() productCode: string; diff --git a/feature-libs/cart/base/components/added-to-cart-dialog/added-to-cart-dialog.component.spec.ts b/feature-libs/cart/base/components/added-to-cart-dialog/added-to-cart-dialog.component.spec.ts index 47952a1cdef..02383d32f2b 100644 --- a/feature-libs/cart/base/components/added-to-cart-dialog/added-to-cart-dialog.component.spec.ts +++ b/feature-libs/cart/base/components/added-to-cart-dialog/added-to-cart-dialog.component.spec.ts @@ -100,6 +100,7 @@ const mockOrderEntries: OrderEntry[] = [ @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; @@ -117,6 +118,7 @@ class MockRoutingService implements Partial { @Component({ selector: 'cx-cart-item', template: '', + standalone: false, }) class MockCartItemComponent { @Input() compact = false; @@ -128,6 +130,7 @@ class MockCartItemComponent { @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform(): any {} diff --git a/feature-libs/cart/base/components/added-to-cart-dialog/added-to-cart-dialog.component.ts b/feature-libs/cart/base/components/added-to-cart-dialog/added-to-cart-dialog.component.ts index b8395030695..8b527bcda3d 100644 --- a/feature-libs/cart/base/components/added-to-cart-dialog/added-to-cart-dialog.component.ts +++ b/feature-libs/cart/base/components/added-to-cart-dialog/added-to-cart-dialog.component.ts @@ -54,6 +54,7 @@ export interface AddedToCartDialogComponentData { selector: 'cx-added-to-cart-dialog', templateUrl: './added-to-cart-dialog.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class AddedToCartDialogComponent implements OnInit, OnDestroy { iconTypes = ICON_TYPE; diff --git a/feature-libs/cart/base/components/cart-coupon/applied-coupons/applied-coupons.component.spec.ts b/feature-libs/cart/base/components/cart-coupon/applied-coupons/applied-coupons.component.spec.ts index 3edb006efb3..20758c21155 100644 --- a/feature-libs/cart/base/components/cart-coupon/applied-coupons/applied-coupons.component.spec.ts +++ b/feature-libs/cart/base/components/cart-coupon/applied-coupons/applied-coupons.component.spec.ts @@ -12,6 +12,7 @@ const coupon2: Voucher = { code: 'coupon2', voucherCode: 'coupon2' }; @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; @@ -26,6 +27,7 @@ class MockCxIconComponent { > `, + standalone: false, }) class MockedCartCouponComponent { coupons = [coupon2, coupon1]; diff --git a/feature-libs/cart/base/components/cart-coupon/applied-coupons/applied-coupons.component.ts b/feature-libs/cart/base/components/cart-coupon/applied-coupons/applied-coupons.component.ts index 84b29b15b18..f07503e64a8 100644 --- a/feature-libs/cart/base/components/cart-coupon/applied-coupons/applied-coupons.component.ts +++ b/feature-libs/cart/base/components/cart-coupon/applied-coupons/applied-coupons.component.ts @@ -12,6 +12,7 @@ import { ICON_TYPE } from '@spartacus/storefront'; selector: 'cx-applied-coupons', templateUrl: './applied-coupons.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class AppliedCouponsComponent { @Input() diff --git a/feature-libs/cart/base/components/cart-coupon/cart-coupon.component.spec.ts b/feature-libs/cart/base/components/cart-coupon/cart-coupon.component.spec.ts index d8030b4275b..f600767357e 100644 --- a/feature-libs/cart/base/components/cart-coupon/cart-coupon.component.spec.ts +++ b/feature-libs/cart/base/components/cart-coupon/cart-coupon.component.spec.ts @@ -22,6 +22,7 @@ import { CartCouponComponent } from './cart-coupon.component'; @Component({ selector: 'cx-applied-coupons', template: '', + standalone: false, }) class MockAppliedCouponsComponent { @Input() diff --git a/feature-libs/cart/base/components/cart-coupon/cart-coupon.component.ts b/feature-libs/cart/base/components/cart-coupon/cart-coupon.component.ts index 74e5dbebea8..02203fcb72f 100644 --- a/feature-libs/cart/base/components/cart-coupon/cart-coupon.component.ts +++ b/feature-libs/cart/base/components/cart-coupon/cart-coupon.component.ts @@ -27,6 +27,7 @@ import { map, tap } from 'rxjs/operators'; @Component({ selector: 'cx-cart-coupon', templateUrl: './cart-coupon.component.html', + standalone: false, }) export class CartCouponComponent implements OnInit, OnDestroy { MAX_CUSTOMER_COUPON_PAGE = 100; diff --git a/feature-libs/cart/base/components/cart-details/cart-details.component.spec.ts b/feature-libs/cart/base/components/cart-details/cart-details.component.spec.ts index ed2cbf13a69..4fb7f6e4f40 100644 --- a/feature-libs/cart/base/components/cart-details/cart-details.component.spec.ts +++ b/feature-libs/cart/base/components/cart-details/cart-details.component.spec.ts @@ -41,6 +41,7 @@ interface CartItemComponentOptions { @Component({ template: '', selector: 'cx-cart-item-list', + standalone: false, }) class MockCartItemListComponent { @Input() @@ -59,6 +60,7 @@ class MockCartItemListComponent { @Component({ template: '', selector: 'cx-cart-coupon', + standalone: false, }) class MockCartCouponComponent { cartIsLoading = false; @@ -67,6 +69,7 @@ class MockCartCouponComponent { @Component({ selector: 'cx-cart-validation-warnings', template: '', + standalone: false, }) class MockCartValidationWarningsComponent {} diff --git a/feature-libs/cart/base/components/cart-details/cart-details.component.ts b/feature-libs/cart/base/components/cart-details/cart-details.component.ts index f6348055613..3946adc2900 100644 --- a/feature-libs/cart/base/components/cart-details/cart-details.component.ts +++ b/feature-libs/cart/base/components/cart-details/cart-details.component.ts @@ -21,6 +21,7 @@ import { filter, map, tap } from 'rxjs/operators'; selector: 'cx-cart-details', templateUrl: './cart-details.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class CartDetailsComponent implements OnInit { cart$: Observable; diff --git a/feature-libs/cart/base/components/cart-proceed-to-checkout/cart-proceed-to-checkout.component.spec.ts b/feature-libs/cart/base/components/cart-proceed-to-checkout/cart-proceed-to-checkout.component.spec.ts index 054aadd4cc0..e348e056c3e 100644 --- a/feature-libs/cart/base/components/cart-proceed-to-checkout/cart-proceed-to-checkout.component.spec.ts +++ b/feature-libs/cart/base/components/cart-proceed-to-checkout/cart-proceed-to-checkout.component.spec.ts @@ -9,6 +9,7 @@ import createSpy = jasmine.createSpy; @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform() {} diff --git a/feature-libs/cart/base/components/cart-proceed-to-checkout/cart-proceed-to-checkout.component.ts b/feature-libs/cart/base/components/cart-proceed-to-checkout/cart-proceed-to-checkout.component.ts index 6f9496b24da..9c8522f50fc 100644 --- a/feature-libs/cart/base/components/cart-proceed-to-checkout/cart-proceed-to-checkout.component.ts +++ b/feature-libs/cart/base/components/cart-proceed-to-checkout/cart-proceed-to-checkout.component.ts @@ -23,6 +23,7 @@ import { Subscription } from 'rxjs'; selector: 'cx-cart-proceed-to-checkout', templateUrl: './cart-proceed-to-checkout.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class CartProceedToCheckoutComponent implements OnInit, OnDestroy { cartValidationInProgress = false; diff --git a/feature-libs/cart/base/components/cart-shared/cart-item-list-row/cart-item-list-row.component.ts b/feature-libs/cart/base/components/cart-shared/cart-item-list-row/cart-item-list-row.component.ts index 66e3fe7b75c..8234a937c3f 100644 --- a/feature-libs/cart/base/components/cart-shared/cart-item-list-row/cart-item-list-row.component.ts +++ b/feature-libs/cart/base/components/cart-shared/cart-item-list-row/cart-item-list-row.component.ts @@ -18,6 +18,7 @@ import { CartItemListComponentService } from './cart-item-list-row.component.ser CartItemContextSource, { provide: CartItemContext, useExisting: CartItemContextSource }, ], + standalone: false, }) export class CartItemListRowComponent extends CartItemComponent { protected componentService = inject(CartItemListComponentService); diff --git a/feature-libs/cart/base/components/cart-shared/cart-item-list/cart-item-list.component.spec.ts b/feature-libs/cart/base/components/cart-shared/cart-item-list/cart-item-list.component.spec.ts index 53f7a577c28..1f1b9063d64 100644 --- a/feature-libs/cart/base/components/cart-shared/cart-item-list/cart-item-list.component.spec.ts +++ b/feature-libs/cart/base/components/cart-shared/cart-item-list/cart-item-list.component.spec.ts @@ -87,6 +87,7 @@ const mockUserId = 'test-user'; @Component({ template: '', selector: '[cx-cart-item-list-row], cx-cart-item-list-row', + standalone: false, }) class MockCartItemComponent { @Input() item; diff --git a/feature-libs/cart/base/components/cart-shared/cart-item-list/cart-item-list.component.ts b/feature-libs/cart/base/components/cart-shared/cart-item-list/cart-item-list.component.ts index 66200ff76c1..f336829e26b 100644 --- a/feature-libs/cart/base/components/cart-shared/cart-item-list/cart-item-list.component.ts +++ b/feature-libs/cart/base/components/cart-shared/cart-item-list/cart-item-list.component.ts @@ -48,6 +48,7 @@ interface ItemListContext { selector: 'cx-cart-item-list', templateUrl: './cart-item-list.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class CartItemListComponent implements OnInit, OnDestroy { protected subscription = new Subscription(); diff --git a/feature-libs/cart/base/components/cart-shared/cart-item/cart-item.component.spec.ts b/feature-libs/cart/base/components/cart-shared/cart-item/cart-item.component.spec.ts index 1d914c665ef..d6e5dd1faf2 100644 --- a/feature-libs/cart/base/components/cart-shared/cart-item/cart-item.component.spec.ts +++ b/feature-libs/cart/base/components/cart-shared/cart-item/cart-item.component.spec.ts @@ -25,12 +25,14 @@ import { CartItemContextSource } from './model/cart-item-context-source.model'; @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform() {} } @Directive({ selector: '[cxOutlet]', + standalone: false, }) class MockOutletDirective implements Partial { @Input() cxOutlet: string; @@ -39,6 +41,7 @@ class MockOutletDirective implements Partial { @Component({ template: '', selector: 'cx-media', + standalone: false, }) class MockMediaComponent { @Input() container; @@ -48,6 +51,7 @@ class MockMediaComponent { @Component({ template: '', selector: 'cx-item-counter', + standalone: false, }) class MockItemCounterComponent { @Input() control; @@ -59,6 +63,7 @@ class MockItemCounterComponent { @Component({ template: '', selector: 'cx-promotions', + standalone: false, }) class MockPromotionsComponent { @Input() promotions; @@ -89,6 +94,7 @@ const mockProduct = { @Component({ selector: 'cx-cart-item-validation-warning', template: '', + standalone: false, }) class MockCartItemValidationWarningComponent { @Input() code: string; @@ -96,6 +102,7 @@ class MockCartItemValidationWarningComponent { @Directive({ selector: '[cxAtMessage]', + standalone: false, }) class MockAtMessageDirective { @Input() cxAtMessage: string | string[] | undefined; diff --git a/feature-libs/cart/base/components/cart-shared/cart-item/cart-item.component.ts b/feature-libs/cart/base/components/cart-shared/cart-item/cart-item.component.ts index 0f299334e0a..02ad2e0dd0b 100644 --- a/feature-libs/cart/base/components/cart-shared/cart-item/cart-item.component.ts +++ b/feature-libs/cart/base/components/cart-shared/cart-item/cart-item.component.ts @@ -24,6 +24,7 @@ import { CartItemContextSource } from './model/cart-item-context-source.model'; CartItemContextSource, { provide: CartItemContext, useExisting: CartItemContextSource }, ], + standalone: false, }) export class CartItemComponent implements OnChanges { @Input() compact = false; diff --git a/feature-libs/cart/base/components/cart-shared/order-summary/order-summary.component.spec.ts b/feature-libs/cart/base/components/cart-shared/order-summary/order-summary.component.spec.ts index 0d62fa2353d..3b410321ea1 100644 --- a/feature-libs/cart/base/components/cart-shared/order-summary/order-summary.component.spec.ts +++ b/feature-libs/cart/base/components/cart-shared/order-summary/order-summary.component.spec.ts @@ -10,6 +10,7 @@ import { OrderSummaryComponent } from './order-summary.component'; @Component({ selector: 'cx-applied-coupons', template: '', + standalone: false, }) class MockAppliedCouponsComponent { @Input() diff --git a/feature-libs/cart/base/components/cart-shared/order-summary/order-summary.component.ts b/feature-libs/cart/base/components/cart-shared/order-summary/order-summary.component.ts index 9041e5635e4..b200294bdff 100644 --- a/feature-libs/cart/base/components/cart-shared/order-summary/order-summary.component.ts +++ b/feature-libs/cart/base/components/cart-shared/order-summary/order-summary.component.ts @@ -12,6 +12,7 @@ import { Subscription } from 'rxjs'; @Component({ selector: 'cx-order-summary', templateUrl: './order-summary.component.html', + standalone: false, }) export class OrderSummaryComponent implements OnInit, OnDestroy { @Input() diff --git a/feature-libs/cart/base/components/cart-totals/cart-totals.component.spec.ts b/feature-libs/cart/base/components/cart-totals/cart-totals.component.spec.ts index 71bdf9fb237..b4ac1ee71e2 100644 --- a/feature-libs/cart/base/components/cart-totals/cart-totals.component.spec.ts +++ b/feature-libs/cart/base/components/cart-totals/cart-totals.component.spec.ts @@ -17,6 +17,7 @@ class MockActiveCartService { @Component({ selector: 'cx-order-summary', template: '', + standalone: false, }) class MockOrderSummaryComponent { @Input() cart: Cart; diff --git a/feature-libs/cart/base/components/cart-totals/cart-totals.component.ts b/feature-libs/cart/base/components/cart-totals/cart-totals.component.ts index 11fc7966f78..e1023201120 100644 --- a/feature-libs/cart/base/components/cart-totals/cart-totals.component.ts +++ b/feature-libs/cart/base/components/cart-totals/cart-totals.component.ts @@ -12,6 +12,7 @@ import { Observable } from 'rxjs'; selector: 'cx-cart-totals', templateUrl: './cart-totals.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class CartTotalsComponent implements OnInit { cart$: Observable; diff --git a/feature-libs/cart/base/components/clear-cart/clear-cart-button/clear-cart.component.ts b/feature-libs/cart/base/components/clear-cart/clear-cart-button/clear-cart.component.ts index ef3c920c95c..6a2507d747d 100644 --- a/feature-libs/cart/base/components/clear-cart/clear-cart-button/clear-cart.component.ts +++ b/feature-libs/cart/base/components/clear-cart/clear-cart-button/clear-cart.component.ts @@ -21,6 +21,7 @@ import { take } from 'rxjs/operators'; selector: 'cx-clear-cart', templateUrl: './clear-cart.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ClearCartComponent implements OnDestroy { cart$: Observable = this.activeCartFacade.getActive(); diff --git a/feature-libs/cart/base/components/clear-cart/clear-cart-dialog/clear-cart-dialog.component.ts b/feature-libs/cart/base/components/clear-cart/clear-cart-dialog/clear-cart-dialog.component.ts index 66aab89033d..58f2d776d58 100644 --- a/feature-libs/cart/base/components/clear-cart/clear-cart-dialog/clear-cart-dialog.component.ts +++ b/feature-libs/cart/base/components/clear-cart/clear-cart-dialog/clear-cart-dialog.component.ts @@ -19,6 +19,7 @@ import { ClearCartDialogComponentService } from './clear-cart-dialog-component.s selector: 'cx-clear-cart-dialog', templateUrl: './clear-cart-dialog.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ClearCartDialogComponent implements OnDestroy { focusConfig: FocusConfig = { diff --git a/feature-libs/cart/base/components/mini-cart/mini-cart.component.spec.ts b/feature-libs/cart/base/components/mini-cart/mini-cart.component.spec.ts index f896cf7ed29..f8cae6c9717 100644 --- a/feature-libs/cart/base/components/mini-cart/mini-cart.component.spec.ts +++ b/feature-libs/cart/base/components/mini-cart/mini-cart.component.spec.ts @@ -9,6 +9,7 @@ import { MiniCartComponent } from './mini-cart.component'; @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform(options: UrlCommandRoute): string { @@ -19,6 +20,7 @@ class MockUrlPipe implements PipeTransform { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type; diff --git a/feature-libs/cart/base/components/mini-cart/mini-cart.component.ts b/feature-libs/cart/base/components/mini-cart/mini-cart.component.ts index f5ed0177d50..6b3e3b47939 100644 --- a/feature-libs/cart/base/components/mini-cart/mini-cart.component.ts +++ b/feature-libs/cart/base/components/mini-cart/mini-cart.component.ts @@ -14,6 +14,7 @@ import { MiniCartComponentService } from './mini-cart-component.service'; selector: 'cx-mini-cart', templateUrl: './mini-cart.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class MiniCartComponent { iconTypes = ICON_TYPE; diff --git a/feature-libs/cart/base/components/save-for-later/save-for-later.component.spec.ts b/feature-libs/cart/base/components/save-for-later/save-for-later.component.spec.ts index dfd43d486e3..1ffc8c26e20 100644 --- a/feature-libs/cart/base/components/save-for-later/save-for-later.component.spec.ts +++ b/feature-libs/cart/base/components/save-for-later/save-for-later.component.spec.ts @@ -15,6 +15,7 @@ import { SaveForLaterComponent } from './save-for-later.component'; @Component({ template: '', selector: 'cx-cart-item-list', + standalone: false, }) class MockCartItemListComponent { @Input() readonly = false; diff --git a/feature-libs/cart/base/components/save-for-later/save-for-later.component.ts b/feature-libs/cart/base/components/save-for-later/save-for-later.component.ts index a19ba2464dd..693a7216d1b 100644 --- a/feature-libs/cart/base/components/save-for-later/save-for-later.component.ts +++ b/feature-libs/cart/base/components/save-for-later/save-for-later.component.ts @@ -18,6 +18,7 @@ import { filter, map } from 'rxjs/operators'; @Component({ selector: 'cx-save-for-later', templateUrl: './save-for-later.component.html', + standalone: false, }) export class SaveForLaterComponent implements OnInit { saveForLater$: Observable; diff --git a/feature-libs/cart/base/components/validation/cart-item-warning/cart-item-validation-warning.component.spec.ts b/feature-libs/cart/base/components/validation/cart-item-warning/cart-item-validation-warning.component.spec.ts index 6f5a1111e8c..24b98eaf4f1 100644 --- a/feature-libs/cart/base/components/validation/cart-item-warning/cart-item-validation-warning.component.spec.ts +++ b/feature-libs/cart/base/components/validation/cart-item-warning/cart-item-validation-warning.component.spec.ts @@ -47,6 +47,7 @@ class MockCartValidationFacade { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; @@ -54,6 +55,7 @@ class MockCxIconComponent { @Pipe({ name: 'cxTranslate', + standalone: false, }) class MockTranslatePipe implements PipeTransform { transform(): any {} @@ -61,6 +63,7 @@ class MockTranslatePipe implements PipeTransform { @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform() {} diff --git a/feature-libs/cart/base/components/validation/cart-item-warning/cart-item-validation-warning.component.ts b/feature-libs/cart/base/components/validation/cart-item-warning/cart-item-validation-warning.component.ts index 2faaf9c14e8..6aba067581a 100644 --- a/feature-libs/cart/base/components/validation/cart-item-warning/cart-item-validation-warning.component.ts +++ b/feature-libs/cart/base/components/validation/cart-item-warning/cart-item-validation-warning.component.ts @@ -13,6 +13,7 @@ import { map } from 'rxjs/operators'; selector: 'cx-cart-item-validation-warning', templateUrl: './cart-item-validation-warning.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class CartItemValidationWarningComponent { @Input() diff --git a/feature-libs/cart/base/components/validation/cart-warnings/cart-validation-warnings.component.spec.ts b/feature-libs/cart/base/components/validation/cart-warnings/cart-validation-warnings.component.spec.ts index f4b1bf1cc7e..3aec8a0fa13 100644 --- a/feature-libs/cart/base/components/validation/cart-warnings/cart-validation-warnings.component.spec.ts +++ b/feature-libs/cart/base/components/validation/cart-warnings/cart-validation-warnings.component.spec.ts @@ -54,6 +54,7 @@ class MockCartValidationFacade { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; @@ -61,6 +62,7 @@ class MockCxIconComponent { @Pipe({ name: 'cxTranslate', + standalone: false, }) class MockTranslatePipe implements PipeTransform { transform(): any {} @@ -68,6 +70,7 @@ class MockTranslatePipe implements PipeTransform { @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform() {} diff --git a/feature-libs/cart/base/components/validation/cart-warnings/cart-validation-warnings.component.ts b/feature-libs/cart/base/components/validation/cart-warnings/cart-validation-warnings.component.ts index a16524a126d..54b0b316e63 100644 --- a/feature-libs/cart/base/components/validation/cart-warnings/cart-validation-warnings.component.ts +++ b/feature-libs/cart/base/components/validation/cart-warnings/cart-validation-warnings.component.ts @@ -17,6 +17,7 @@ import { map } from 'rxjs/operators'; selector: 'cx-cart-validation-warnings', templateUrl: './cart-validation-warnings.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class CartValidationWarningsComponent { iconTypes = ICON_TYPE; diff --git a/feature-libs/cart/import-export/components/export-entries/export-order-entries.component.ts b/feature-libs/cart/import-export/components/export-entries/export-order-entries.component.ts index 4f479fa9697..c6d5f135060 100644 --- a/feature-libs/cart/import-export/components/export-entries/export-order-entries.component.ts +++ b/feature-libs/cart/import-export/components/export-entries/export-order-entries.component.ts @@ -19,6 +19,7 @@ import { ExportOrderEntriesToCsvService } from './export-order-entries-to-csv.se selector: 'cx-export-order-entries', templateUrl: './export-order-entries.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ExportOrderEntriesComponent { @HostBinding('class') styles = 'container'; diff --git a/feature-libs/cart/import-export/components/import-export/import-export-order-entries.component.spec.ts b/feature-libs/cart/import-export/components/import-export/import-export-order-entries.component.spec.ts index 0f0d193e40a..bf29bf26945 100644 --- a/feature-libs/cart/import-export/components/import-export/import-export-order-entries.component.spec.ts +++ b/feature-libs/cart/import-export/components/import-export/import-export-order-entries.component.spec.ts @@ -51,6 +51,7 @@ class MockContextService implements Partial { @Component({ selector: 'cx-import-order-entries', template: '', + standalone: false, }) export class MockImportOrderEntriesComponent { @ViewChild('open') element: ElementRef; @@ -62,6 +63,7 @@ export class MockImportOrderEntriesComponent { @Component({ selector: 'cx-export-order-entries', template: '', + standalone: false, }) export class MockExportOrderEntriesComponent { @Input() diff --git a/feature-libs/cart/import-export/components/import-export/import-export-order-entries.component.ts b/feature-libs/cart/import-export/components/import-export/import-export-order-entries.component.ts index e080e25e18e..b2636ea65cc 100644 --- a/feature-libs/cart/import-export/components/import-export/import-export-order-entries.component.ts +++ b/feature-libs/cart/import-export/components/import-export/import-export-order-entries.component.ts @@ -17,6 +17,7 @@ import { map, switchMap } from 'rxjs/operators'; selector: 'cx-import-export-order-entries', templateUrl: './import-export-order-entries.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ImportExportOrderEntriesComponent { constructor(protected contextService: ContextService) {} diff --git a/feature-libs/cart/import-export/components/import-to-cart/import-entries-dialog/import-entries-dialog.component.spec.ts b/feature-libs/cart/import-export/components/import-to-cart/import-entries-dialog/import-entries-dialog.component.spec.ts index 236231b9bff..1065958566d 100644 --- a/feature-libs/cart/import-export/components/import-to-cart/import-entries-dialog/import-entries-dialog.component.spec.ts +++ b/feature-libs/cart/import-export/components/import-to-cart/import-entries-dialog/import-entries-dialog.component.spec.ts @@ -51,6 +51,7 @@ class MockLaunchDialogService implements Partial { @Component({ selector: 'cx-import-entries-form', template: '', + standalone: false, }) class MockImportEntriesFormComponent { @Input() diff --git a/feature-libs/cart/import-export/components/import-to-cart/import-entries-dialog/import-entries-dialog.component.ts b/feature-libs/cart/import-export/components/import-to-cart/import-entries-dialog/import-entries-dialog.component.ts index 33ff1cc2fd1..9112962f69c 100644 --- a/feature-libs/cart/import-export/components/import-to-cart/import-entries-dialog/import-entries-dialog.component.ts +++ b/feature-libs/cart/import-export/components/import-to-cart/import-entries-dialog/import-entries-dialog.component.ts @@ -26,6 +26,7 @@ import { finalize, map } from 'rxjs/operators'; selector: 'cx-import-entries-dialog', templateUrl: './import-entries-dialog.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ImportEntriesDialogComponent { iconTypes = ICON_TYPE; diff --git a/feature-libs/cart/import-export/components/import-to-cart/import-entries-dialog/import-entries-form/import-entries-form.component.ts b/feature-libs/cart/import-export/components/import-to-cart/import-entries-dialog/import-entries-form/import-entries-form.component.ts index 8edd60a518c..f26d3134c6d 100644 --- a/feature-libs/cart/import-export/components/import-to-cart/import-entries-dialog/import-entries-form/import-entries-form.component.ts +++ b/feature-libs/cart/import-export/components/import-to-cart/import-entries-dialog/import-entries-form/import-entries-form.component.ts @@ -34,6 +34,7 @@ import { GlobalMessageType } from '@spartacus/core'; selector: 'cx-import-entries-form', templateUrl: './import-entries-form.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ImportEntriesFormComponent implements OnInit { form: UntypedFormGroup; diff --git a/feature-libs/cart/import-export/components/import-to-cart/import-entries-dialog/import-entries-summary/import-entries-summary.component.ts b/feature-libs/cart/import-export/components/import-to-cart/import-entries-dialog/import-entries-summary/import-entries-summary.component.ts index fa92f606730..bdd34456a15 100644 --- a/feature-libs/cart/import-export/components/import-to-cart/import-entries-dialog/import-entries-summary/import-entries-summary.component.ts +++ b/feature-libs/cart/import-export/components/import-to-cart/import-entries-dialog/import-entries-summary/import-entries-summary.component.ts @@ -21,6 +21,7 @@ import { ICON_TYPE } from '@spartacus/storefront'; selector: 'cx-import-entries-summary', templateUrl: './import-entries-summary.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ImportEntriesSummaryComponent { iconTypes = ICON_TYPE; diff --git a/feature-libs/cart/import-export/components/import-to-cart/import-entries-dialog/import-to-new-saved-cart-form/import-to-new-saved-cart-form.component.ts b/feature-libs/cart/import-export/components/import-to-cart/import-entries-dialog/import-to-new-saved-cart-form/import-to-new-saved-cart-form.component.ts index a140627eb18..c325c53b9b8 100644 --- a/feature-libs/cart/import-export/components/import-to-cart/import-entries-dialog/import-to-new-saved-cart-form/import-to-new-saved-cart-form.component.ts +++ b/feature-libs/cart/import-export/components/import-to-cart/import-entries-dialog/import-to-new-saved-cart-form/import-to-new-saved-cart-form.component.ts @@ -37,6 +37,7 @@ import { ImportEntriesFormComponent } from '../import-entries-form/import-entrie templateUrl: './import-to-new-saved-cart-form.component.html', changeDetection: ChangeDetectionStrategy.OnPush, providers: [CxDatePipe], + standalone: false, }) export class ImportToNewSavedCartFormComponent extends ImportEntriesFormComponent { descriptionMaxLength: number = 250; diff --git a/feature-libs/cart/import-export/components/import-to-cart/import-entries/import-order-entries.component.ts b/feature-libs/cart/import-export/components/import-to-cart/import-entries/import-order-entries.component.ts index 53d153b9898..6913cd7a9bb 100644 --- a/feature-libs/cart/import-export/components/import-to-cart/import-entries/import-order-entries.component.ts +++ b/feature-libs/cart/import-export/components/import-to-cart/import-entries/import-order-entries.component.ts @@ -25,6 +25,7 @@ import { Observable, Subscription } from 'rxjs'; selector: 'cx-import-order-entries', templateUrl: './import-order-entries.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ImportOrderEntriesComponent { protected subscription = new Subscription(); diff --git a/feature-libs/cart/package.json b/feature-libs/cart/package.json index c8ca26c08df..ab561c9fcbf 100644 --- a/feature-libs/cart/package.json +++ b/feature-libs/cart/package.json @@ -29,14 +29,14 @@ "tslib": "^2.8.1" }, "peerDependencies": { - "@angular-devkit/schematics": "^18.2.9", - "@angular/common": "^18.2.9", - "@angular/core": "^18.2.9", - "@angular/forms": "^18.2.9", - "@angular/router": "^18.2.9", - "@ng-select/ng-select": "^13.9.1", - "@ngrx/effects": "^18.1.1", - "@ngrx/store": "^18.1.1", + "@angular-devkit/schematics": "^19.0.4", + "@angular/common": "^19.0.3", + "@angular/core": "^19.0.3", + "@angular/forms": "^19.0.3", + "@angular/router": "^19.0.3", + "@ng-select/ng-select": "^14.1.0", + "@ngrx/effects": "^19.0.0", + "@ngrx/store": "^19.0.0", "@spartacus/core": "2211.32.0", "@spartacus/schematics": "2211.32.0", "@spartacus/storefront": "2211.32.0", diff --git a/feature-libs/cart/quick-order/components/cart-quick-order-form/cart-quick-order-form.component.ts b/feature-libs/cart/quick-order/components/cart-quick-order-form/cart-quick-order-form.component.ts index fc7cc34c8f7..c19fca4b9b2 100644 --- a/feature-libs/cart/quick-order/components/cart-quick-order-form/cart-quick-order-form.component.ts +++ b/feature-libs/cart/quick-order/components/cart-quick-order-form/cart-quick-order-form.component.ts @@ -36,6 +36,7 @@ import { first, map } from 'rxjs/operators'; selector: 'cx-cart-quick-order-form', templateUrl: './cart-quick-order-form.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class CartQuickOrderFormComponent implements OnInit, OnDestroy { private featureConfig = inject(FeatureConfigService); diff --git a/feature-libs/cart/quick-order/components/quick-order/form/quick-order-form.component.spec.ts b/feature-libs/cart/quick-order/components/quick-order/form/quick-order-form.component.spec.ts index a525c31dd52..4ddac437e94 100644 --- a/feature-libs/cart/quick-order/components/quick-order/form/quick-order-form.component.spec.ts +++ b/feature-libs/cart/quick-order/components/quick-order/form/quick-order-form.component.spec.ts @@ -74,6 +74,7 @@ class MockFeatureConfigService { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: any; diff --git a/feature-libs/cart/quick-order/components/quick-order/form/quick-order-form.component.ts b/feature-libs/cart/quick-order/components/quick-order/form/quick-order-form.component.ts index 485e895d860..96b58de6bcc 100644 --- a/feature-libs/cart/quick-order/components/quick-order/form/quick-order-form.component.ts +++ b/feature-libs/cart/quick-order/components/quick-order/form/quick-order-form.component.ts @@ -40,6 +40,7 @@ const SEARCH_BOX_ACTIVE_CLASS = 'quick-order-searchbox-is-active'; selector: 'cx-quick-order-form', templateUrl: './quick-order-form.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class QuickOrderFormComponent implements OnInit, OnDestroy { form: UntypedFormGroup; diff --git a/feature-libs/cart/quick-order/components/quick-order/quick-order.component.spec.ts b/feature-libs/cart/quick-order/components/quick-order/quick-order.component.spec.ts index 5cc77f27110..bb60c018c2d 100644 --- a/feature-libs/cart/quick-order/components/quick-order/quick-order.component.spec.ts +++ b/feature-libs/cart/quick-order/components/quick-order/quick-order.component.spec.ts @@ -128,6 +128,7 @@ const MockCmsComponentData = >{ @Component({ template: '', selector: 'cx-quick-order-form', + standalone: false, }) class MockQuickOrderFormComponent { @Input() isLoading: boolean; @@ -137,6 +138,7 @@ class MockQuickOrderFormComponent { @Component({ template: '', selector: 'cx-quick-order-table', + standalone: false, }) class MockQuickOrderTableComponent { @Input() entries: OrderEntry[]; @@ -146,6 +148,7 @@ class MockQuickOrderTableComponent { @Component({ template: '', selector: 'cx-progress-button', + standalone: false, }) class MockProgressButtonComponent { @Input() loading: boolean; diff --git a/feature-libs/cart/quick-order/components/quick-order/quick-order.component.ts b/feature-libs/cart/quick-order/components/quick-order/quick-order.component.ts index 5b706f85ec0..750ed877f4b 100644 --- a/feature-libs/cart/quick-order/components/quick-order/quick-order.component.ts +++ b/feature-libs/cart/quick-order/components/quick-order/quick-order.component.ts @@ -34,6 +34,7 @@ import { QuickOrderFormComponent } from './form/quick-order-form.component'; selector: 'cx-quick-order', templateUrl: './quick-order.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class QuickOrderComponent implements OnInit, OnDestroy { cartId$: Observable; diff --git a/feature-libs/cart/quick-order/components/quick-order/table/item/quick-order-item.component.spec.ts b/feature-libs/cart/quick-order/components/quick-order/table/item/quick-order-item.component.spec.ts index d23a015d8c8..210cc879119 100644 --- a/feature-libs/cart/quick-order/components/quick-order/table/item/quick-order-item.component.spec.ts +++ b/feature-libs/cart/quick-order/components/quick-order/table/item/quick-order-item.component.spec.ts @@ -27,6 +27,7 @@ class MockQuickOrderFacade implements Partial { @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform() {} @@ -35,6 +36,7 @@ class MockUrlPipe implements PipeTransform { @Component({ template: '', selector: 'cx-item-counter', + standalone: false, }) class MockItemCounterComponent { @Input() max: number; @@ -45,6 +47,7 @@ class MockItemCounterComponent { @Component({ template: '', selector: 'cx-media', + standalone: false, }) class MockMediaComponent { @Input() container; diff --git a/feature-libs/cart/quick-order/components/quick-order/table/item/quick-order-item.component.ts b/feature-libs/cart/quick-order/components/quick-order/table/item/quick-order-item.component.ts index 78bcdb62227..bad8fc7f210 100644 --- a/feature-libs/cart/quick-order/components/quick-order/table/item/quick-order-item.component.ts +++ b/feature-libs/cart/quick-order/components/quick-order/table/item/quick-order-item.component.ts @@ -22,6 +22,7 @@ import { Subscription } from 'rxjs'; selector: '[cx-quick-order-item], cx-quick-order-item', templateUrl: './quick-order-item.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class QuickOrderItemComponent implements OnInit, OnDestroy { quantityControl: UntypedFormControl; diff --git a/feature-libs/cart/quick-order/components/quick-order/table/quick-order-table.component.spec.ts b/feature-libs/cart/quick-order/components/quick-order/table/quick-order-table.component.spec.ts index d2cfbac34a5..9c74b781545 100755 --- a/feature-libs/cart/quick-order/components/quick-order/table/quick-order-table.component.spec.ts +++ b/feature-libs/cart/quick-order/components/quick-order/table/quick-order-table.component.spec.ts @@ -15,6 +15,7 @@ const mockEntries: OrderEntry[] = [ @Component({ template: '', selector: '[cx-quick-order-item], cx-quick-order-item', + standalone: false, }) class MockQuickOrderItemComponent { @Input() entry: OrderEntry; diff --git a/feature-libs/cart/quick-order/components/quick-order/table/quick-order-table.component.ts b/feature-libs/cart/quick-order/components/quick-order/table/quick-order-table.component.ts index 2dd8d3a5699..42b1d5f6828 100644 --- a/feature-libs/cart/quick-order/components/quick-order/table/quick-order-table.component.ts +++ b/feature-libs/cart/quick-order/components/quick-order/table/quick-order-table.component.ts @@ -12,6 +12,7 @@ import { useFeatureStyles } from '@spartacus/core'; selector: 'cx-quick-order-table', templateUrl: './quick-order-table.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class QuickOrderTableComponent { @Input() diff --git a/feature-libs/cart/saved-cart/components/add-to-saved-cart/add-to-saved-cart.component.ts b/feature-libs/cart/saved-cart/components/add-to-saved-cart/add-to-saved-cart.component.ts index b2c30ba3303..33bccded2e8 100644 --- a/feature-libs/cart/saved-cart/components/add-to-saved-cart/add-to-saved-cart.component.ts +++ b/feature-libs/cart/saved-cart/components/add-to-saved-cart/add-to-saved-cart.component.ts @@ -23,6 +23,7 @@ import { map, take, tap } from 'rxjs/operators'; selector: 'cx-add-to-saved-cart', templateUrl: './add-to-saved-cart.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class AddToSavedCartComponent implements OnInit, OnDestroy { protected subscription = new Subscription(); diff --git a/feature-libs/cart/saved-cart/components/details/saved-cart-details-action/saved-cart-details-action.component.ts b/feature-libs/cart/saved-cart/components/details/saved-cart-details-action/saved-cart-details-action.component.ts index 660cf000e7e..5cf930d5ece 100644 --- a/feature-libs/cart/saved-cart/components/details/saved-cart-details-action/saved-cart-details-action.component.ts +++ b/feature-libs/cart/saved-cart/components/details/saved-cart-details-action/saved-cart-details-action.component.ts @@ -21,6 +21,7 @@ import { SavedCartDetailsService } from '../saved-cart-details.service'; @Component({ selector: 'cx-saved-cart-details-action', templateUrl: './saved-cart-details-action.component.html', + standalone: false, }) export class SavedCartDetailsActionComponent implements OnDestroy { private subscription = new Subscription(); diff --git a/feature-libs/cart/saved-cart/components/details/saved-cart-details-items/saved-cart-details-items.component.ts b/feature-libs/cart/saved-cart/components/details/saved-cart-details-items/saved-cart-details-items.component.ts index 622042e5324..adf108a2232 100644 --- a/feature-libs/cart/saved-cart/components/details/saved-cart-details-items/saved-cart-details-items.component.ts +++ b/feature-libs/cart/saved-cart/components/details/saved-cart-details-items/saved-cart-details-items.component.ts @@ -33,6 +33,7 @@ import { SavedCartDetailsService } from '../saved-cart-details.service'; selector: 'cx-saved-cart-details-items', templateUrl: './saved-cart-details-items.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class SavedCartDetailsItemsComponent implements OnInit, OnDestroy { private subscription = new Subscription(); diff --git a/feature-libs/cart/saved-cart/components/details/saved-cart-details-overview/saved-cart-details-overview.component.ts b/feature-libs/cart/saved-cart/components/details/saved-cart-details-overview/saved-cart-details-overview.component.ts index 69532934e6b..e5291329833 100644 --- a/feature-libs/cart/saved-cart/components/details/saved-cart-details-overview/saved-cart-details-overview.component.ts +++ b/feature-libs/cart/saved-cart/components/details/saved-cart-details-overview/saved-cart-details-overview.component.ts @@ -26,6 +26,7 @@ import { SavedCartDetailsService } from '../saved-cart-details.service'; @Component({ selector: 'cx-saved-cart-details-overview', templateUrl: './saved-cart-details-overview.component.html', + standalone: false, }) export class SavedCartDetailsOverviewComponent implements OnDestroy { private subscription = new Subscription(); diff --git a/feature-libs/cart/saved-cart/components/list/saved-cart-list.component.spec.ts b/feature-libs/cart/saved-cart/components/list/saved-cart-list.component.spec.ts index 82c712b4df7..6acc7b60cdf 100644 --- a/feature-libs/cart/saved-cart/components/list/saved-cart-list.component.spec.ts +++ b/feature-libs/cart/saved-cart/components/list/saved-cart-list.component.spec.ts @@ -68,6 +68,7 @@ class MockSavedCartFacade implements Partial { @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform() {} diff --git a/feature-libs/cart/saved-cart/components/list/saved-cart-list.component.ts b/feature-libs/cart/saved-cart/components/list/saved-cart-list.component.ts index e7a9671ccc7..e0e45054fa6 100644 --- a/feature-libs/cart/saved-cart/components/list/saved-cart-list.component.ts +++ b/feature-libs/cart/saved-cart/components/list/saved-cart-list.component.ts @@ -33,6 +33,7 @@ import { map, skip, take } from 'rxjs/operators'; selector: 'cx-saved-cart-list', templateUrl: './saved-cart-list.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class SavedCartListComponent implements OnInit, OnDestroy { private subscription = new Subscription(); diff --git a/feature-libs/cart/saved-cart/components/saved-cart-form-dialog/saved-cart-form-dialog.component.ts b/feature-libs/cart/saved-cart/components/saved-cart-form-dialog/saved-cart-form-dialog.component.ts index 0ed3178f15f..25f70e4758f 100644 --- a/feature-libs/cart/saved-cart/components/saved-cart-form-dialog/saved-cart-form-dialog.component.ts +++ b/feature-libs/cart/saved-cart/components/saved-cart-form-dialog/saved-cart-form-dialog.component.ts @@ -52,6 +52,7 @@ export interface SavedCartFormDialogOptions { selector: 'cx-saved-cart-form-dialog', templateUrl: './saved-cart-form-dialog.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class SavedCartFormDialogComponent implements OnInit, OnDestroy { private subscription = new Subscription(); diff --git a/feature-libs/cart/saved-cart/styles/_saved-cart-list.scss b/feature-libs/cart/saved-cart/styles/_saved-cart-list.scss index f397f0cb08a..0f22244560e 100644 --- a/feature-libs/cart/saved-cart/styles/_saved-cart-list.scss +++ b/feature-libs/cart/saved-cart/styles/_saved-cart-list.scss @@ -151,11 +151,9 @@ cx-saved-cart-list { } @include cx-highContrastTheme { - @include forFeature('a11yHighContrastBorders') { - border-color: var(--cx-color-dark); - tr { - border-bottom-color: var(--cx-color-dark); - } + border-color: var(--cx-color-dark); + tr { + border-bottom-color: var(--cx-color-dark); } } } diff --git a/feature-libs/cart/schematics/add-cart/__snapshots__/index_spec.ts.snap b/feature-libs/cart/schematics/add-cart/__snapshots__/index_spec.ts.snap index d19de75973b..c67d194feef 100644 --- a/feature-libs/cart/schematics/add-cart/__snapshots__/index_spec.ts.snap +++ b/feature-libs/cart/schematics/add-cart/__snapshots__/index_spec.ts.snap @@ -133,7 +133,12 @@ exports[`Spartacus Cart schematics: ng-add Cart Base feature general setup styli "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } }, "configurations": { @@ -146,8 +151,8 @@ exports[`Spartacus Cart schematics: ng-add Cart Base feature general setup styli }, { "type": "anyComponentStyle", - "maximumWarning": "2kB", - "maximumError": "4kB" + "maximumWarning": "4kB", + "maximumError": "8kB" } ], "outputHashing": "all" @@ -198,7 +203,12 @@ exports[`Spartacus Cart schematics: ng-add Cart Base feature general setup styli "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } } } @@ -321,7 +331,12 @@ exports[`Spartacus Cart schematics: ng-add Cart Import Export feature general se "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } }, "configurations": { @@ -334,8 +349,8 @@ exports[`Spartacus Cart schematics: ng-add Cart Import Export feature general se }, { "type": "anyComponentStyle", - "maximumWarning": "2kB", - "maximumError": "4kB" + "maximumWarning": "4kB", + "maximumError": "8kB" } ], "outputHashing": "all" @@ -386,7 +401,12 @@ exports[`Spartacus Cart schematics: ng-add Cart Import Export feature general se "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } } } @@ -509,7 +529,12 @@ exports[`Spartacus Cart schematics: ng-add Quick Order feature general setup sty "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } }, "configurations": { @@ -522,8 +547,8 @@ exports[`Spartacus Cart schematics: ng-add Quick Order feature general setup sty }, { "type": "anyComponentStyle", - "maximumWarning": "2kB", - "maximumError": "4kB" + "maximumWarning": "4kB", + "maximumError": "8kB" } ], "outputHashing": "all" @@ -574,7 +599,12 @@ exports[`Spartacus Cart schematics: ng-add Quick Order feature general setup sty "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } } } @@ -697,7 +727,12 @@ exports[`Spartacus Cart schematics: ng-add Saved Cart feature general setup styl "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } }, "configurations": { @@ -710,8 +745,8 @@ exports[`Spartacus Cart schematics: ng-add Saved Cart feature general setup styl }, { "type": "anyComponentStyle", - "maximumWarning": "2kB", - "maximumError": "4kB" + "maximumWarning": "4kB", + "maximumError": "8kB" } ], "outputHashing": "all" @@ -762,7 +797,12 @@ exports[`Spartacus Cart schematics: ng-add Saved Cart feature general setup styl "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } } } @@ -895,7 +935,12 @@ exports[`Spartacus Cart schematics: ng-add Wish List feature general setup styli "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } }, "configurations": { @@ -908,8 +953,8 @@ exports[`Spartacus Cart schematics: ng-add Wish List feature general setup styli }, { "type": "anyComponentStyle", - "maximumWarning": "2kB", - "maximumError": "4kB" + "maximumWarning": "4kB", + "maximumError": "8kB" } ], "outputHashing": "all" @@ -960,7 +1005,12 @@ exports[`Spartacus Cart schematics: ng-add Wish List feature general setup styli "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } } } diff --git a/feature-libs/cart/wish-list/components/add-to-wishlist/add-to-wish-list.component.spec.ts b/feature-libs/cart/wish-list/components/add-to-wishlist/add-to-wish-list.component.spec.ts index 131ae9c9db1..ca9f37a8fc2 100644 --- a/feature-libs/cart/wish-list/components/add-to-wishlist/add-to-wish-list.component.spec.ts +++ b/feature-libs/cart/wish-list/components/add-to-wishlist/add-to-wish-list.component.spec.ts @@ -85,6 +85,7 @@ class MockCurrentProductService { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockIconComponent { @Input() type; @@ -92,6 +93,7 @@ class MockIconComponent { @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform(): any {} @@ -105,6 +107,7 @@ class MockFeatureConfigService { @Directive({ selector: '[cxAtMessage]', + standalone: false, }) class MockAtMessageDirective { @Input() cxAtMessage: string | string[] | undefined; diff --git a/feature-libs/cart/wish-list/components/add-to-wishlist/add-to-wish-list.component.ts b/feature-libs/cart/wish-list/components/add-to-wishlist/add-to-wish-list.component.ts index e91ab18a1c3..a1891bd2487 100644 --- a/feature-libs/cart/wish-list/components/add-to-wishlist/add-to-wish-list.component.ts +++ b/feature-libs/cart/wish-list/components/add-to-wishlist/add-to-wish-list.component.ts @@ -28,6 +28,7 @@ import { filter, map, take, tap } from 'rxjs/operators'; selector: 'cx-add-to-wishlist', templateUrl: './add-to-wish-list.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class AddToWishListComponent { product$: Observable = this.currentProductService.getProduct().pipe( diff --git a/feature-libs/cart/wish-list/components/wish-list-item/wish-list-item.component.spec.ts b/feature-libs/cart/wish-list/components/wish-list-item/wish-list-item.component.spec.ts index c984536f84d..ad11e01f2ec 100644 --- a/feature-libs/cart/wish-list/components/wish-list-item/wish-list-item.component.spec.ts +++ b/feature-libs/cart/wish-list/components/wish-list-item/wish-list-item.component.spec.ts @@ -22,6 +22,7 @@ import { WishListItemComponent } from './wish-list-item.component'; @Component({ selector: 'cx-add-to-cart', template: '', + standalone: false, }) class MockAddToCartComponent { @Input() product; @@ -31,6 +32,7 @@ class MockAddToCartComponent { @Component({ selector: 'cx-media', template: 'mock picture component', + standalone: false, }) class MockPictureComponent { @Input() container; @@ -39,6 +41,7 @@ class MockPictureComponent { @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform() {} @@ -73,6 +76,7 @@ const mockCartEntry: OrderEntry = { @Directive({ selector: '[cxAtMessage]', + standalone: false, }) class MockAtMessageDirective { @Input() cxAtMessage: string | string[] | undefined; diff --git a/feature-libs/cart/wish-list/components/wish-list-item/wish-list-item.component.ts b/feature-libs/cart/wish-list/components/wish-list-item/wish-list-item.component.ts index 53dd88a22ba..685c563a709 100644 --- a/feature-libs/cart/wish-list/components/wish-list-item/wish-list-item.component.ts +++ b/feature-libs/cart/wish-list/components/wish-list-item/wish-list-item.component.ts @@ -31,6 +31,7 @@ import { useExisting: ProductListItemContextSource, }, ], + standalone: false, }) export class WishListItemComponent implements OnChanges { @Input() diff --git a/feature-libs/cart/wish-list/components/wish-list/wish-list.component.spec.ts b/feature-libs/cart/wish-list/components/wish-list/wish-list.component.spec.ts index b1ba5793722..e200983cd63 100644 --- a/feature-libs/cart/wish-list/components/wish-list/wish-list.component.spec.ts +++ b/feature-libs/cart/wish-list/components/wish-list/wish-list.component.spec.ts @@ -20,6 +20,7 @@ class MockWishListService { @Component({ selector: '[cx-wish-list-item], cx-wish-list-item', template: '', + standalone: false, }) class MockWishListItemComponent { @Input() diff --git a/feature-libs/cart/wish-list/components/wish-list/wish-list.component.ts b/feature-libs/cart/wish-list/components/wish-list/wish-list.component.ts index 98e5baed8de..412fa6c4a3f 100644 --- a/feature-libs/cart/wish-list/components/wish-list/wish-list.component.ts +++ b/feature-libs/cart/wish-list/components/wish-list/wish-list.component.ts @@ -13,6 +13,7 @@ import { Observable } from 'rxjs'; @Component({ selector: 'cx-wish-list', templateUrl: './wish-list.component.html', + standalone: false, }) export class WishListComponent { wishList$: Observable = this.wishListFacade.getWishList(); diff --git a/feature-libs/checkout/b2b/components/checkout-cost-center/checkout-cost-center.component.ts b/feature-libs/checkout/b2b/components/checkout-cost-center/checkout-cost-center.component.ts index 4987ebd2cf1..5fb02d504b2 100644 --- a/feature-libs/checkout/b2b/components/checkout-cost-center/checkout-cost-center.component.ts +++ b/feature-libs/checkout/b2b/components/checkout-cost-center/checkout-cost-center.component.ts @@ -23,6 +23,7 @@ import { distinctUntilChanged, filter, map, take, tap } from 'rxjs/operators'; selector: 'cx-cost-center', templateUrl: './checkout-cost-center.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class CheckoutCostCenterComponent implements OnInit, OnDestroy { protected subscription = new Subscription(); diff --git a/feature-libs/checkout/b2b/components/checkout-delivery-address/checkout-delivery-address.component.spec.ts b/feature-libs/checkout/b2b/components/checkout-delivery-address/checkout-delivery-address.component.spec.ts index 31c8a5923c9..4f5dcf85c0a 100644 --- a/feature-libs/checkout/b2b/components/checkout-delivery-address/checkout-delivery-address.component.spec.ts +++ b/feature-libs/checkout/b2b/components/checkout-delivery-address/checkout-delivery-address.component.spec.ts @@ -129,6 +129,7 @@ const mockActivatedRoute = { @Component({ selector: 'cx-address-form', template: '', + standalone: false, }) class MockAddressFormComponent { @Input() cancelBtnLabel: string; @@ -139,12 +140,14 @@ class MockAddressFormComponent { @Component({ selector: 'cx-spinner', template: '', + standalone: false, }) class MockSpinnerComponent {} @Component({ selector: 'cx-card', template: '', + standalone: false, }) class MockCardComponent { @Input() diff --git a/feature-libs/checkout/b2b/components/checkout-delivery-address/checkout-delivery-address.component.ts b/feature-libs/checkout/b2b/components/checkout-delivery-address/checkout-delivery-address.component.ts index 854c7ced72f..7a076b5d65e 100644 --- a/feature-libs/checkout/b2b/components/checkout-delivery-address/checkout-delivery-address.component.ts +++ b/feature-libs/checkout/b2b/components/checkout-delivery-address/checkout-delivery-address.component.ts @@ -44,6 +44,7 @@ export interface CardWithAddress { selector: 'cx-delivery-address', templateUrl: './checkout-delivery-address.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class B2BCheckoutDeliveryAddressComponent extends CheckoutDeliveryAddressComponent diff --git a/feature-libs/checkout/b2b/components/checkout-payment-type/checkout-payment-type.component.spec.ts b/feature-libs/checkout/b2b/components/checkout-payment-type/checkout-payment-type.component.spec.ts index ecbe36518e5..c14661757fd 100644 --- a/feature-libs/checkout/b2b/components/checkout-payment-type/checkout-payment-type.component.spec.ts +++ b/feature-libs/checkout/b2b/components/checkout-payment-type/checkout-payment-type.component.spec.ts @@ -20,6 +20,7 @@ import createSpy = jasmine.createSpy; @Component({ selector: 'cx-spinner', template: '', + standalone: false, }) class MockSpinnerComponent {} diff --git a/feature-libs/checkout/b2b/components/checkout-payment-type/checkout-payment-type.component.ts b/feature-libs/checkout/b2b/components/checkout-payment-type/checkout-payment-type.component.ts index a4cd94353b1..3ad2fb780b7 100644 --- a/feature-libs/checkout/b2b/components/checkout-payment-type/checkout-payment-type.component.ts +++ b/feature-libs/checkout/b2b/components/checkout-payment-type/checkout-payment-type.component.ts @@ -39,6 +39,7 @@ import { selector: 'cx-payment-type', templateUrl: './checkout-payment-type.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class CheckoutPaymentTypeComponent { @ViewChild('poNumber', { static: false }) diff --git a/feature-libs/checkout/b2b/components/checkout-review-submit/checkout-review-submit.component.spec.ts b/feature-libs/checkout/b2b/components/checkout-review-submit/checkout-review-submit.component.spec.ts index d74eba38032..310f6803579 100644 --- a/feature-libs/checkout/b2b/components/checkout-review-submit/checkout-review-submit.component.spec.ts +++ b/feature-libs/checkout/b2b/components/checkout-review-submit/checkout-review-submit.component.spec.ts @@ -91,6 +91,7 @@ const mockPaymentTypes: PaymentType[] = [ @Component({ selector: 'cx-card', template: '', + standalone: false, }) class MockCardComponent { @Input() @@ -203,6 +204,7 @@ class MockUserCostCenterService implements Partial { @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform(): any {} diff --git a/feature-libs/checkout/b2b/components/checkout-review-submit/checkout-review-submit.component.ts b/feature-libs/checkout/b2b/components/checkout-review-submit/checkout-review-submit.component.ts index ae1bedf2ef1..5068c7397dd 100644 --- a/feature-libs/checkout/b2b/components/checkout-review-submit/checkout-review-submit.component.ts +++ b/feature-libs/checkout/b2b/components/checkout-review-submit/checkout-review-submit.component.ts @@ -33,6 +33,7 @@ import { filter, map } from 'rxjs/operators'; selector: 'cx-review-submit', templateUrl: './checkout-review-submit.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class B2BCheckoutReviewSubmitComponent extends CheckoutReviewSubmitComponent { checkoutStepTypePaymentType = CheckoutStepType.PAYMENT_TYPE; diff --git a/feature-libs/checkout/b2b/styles/components/steps/payment-type/_payment-type.scss b/feature-libs/checkout/b2b/styles/components/steps/payment-type/_payment-type.scss index 85f1b68c6cf..da83b5a646f 100644 --- a/feature-libs/checkout/b2b/styles/components/steps/payment-type/_payment-type.scss +++ b/feature-libs/checkout/b2b/styles/components/steps/payment-type/_payment-type.scss @@ -25,4 +25,8 @@ } } } + + @include cx-highContrastTheme { + border-color: var(--cx-color-dark); + } } diff --git a/feature-libs/checkout/base/components/checkout-billing-address/checkout-billing-address-form.component.spec.ts b/feature-libs/checkout/base/components/checkout-billing-address/checkout-billing-address-form.component.spec.ts index d9e510c69fa..1d4f3217ed7 100644 --- a/feature-libs/checkout/base/components/checkout-billing-address/checkout-billing-address-form.component.spec.ts +++ b/feature-libs/checkout/base/components/checkout-billing-address/checkout-billing-address-form.component.spec.ts @@ -46,6 +46,7 @@ const mockAddress: Address = { @Component({ selector: 'cx-card', template: '', + standalone: false, }) class MockCardComponent { @Input() diff --git a/feature-libs/checkout/base/components/checkout-billing-address/checkout-billing-address-form.component.ts b/feature-libs/checkout/base/components/checkout-billing-address/checkout-billing-address-form.component.ts index 75b927d4277..9ef18e519b8 100644 --- a/feature-libs/checkout/base/components/checkout-billing-address/checkout-billing-address-form.component.ts +++ b/feature-libs/checkout/base/components/checkout-billing-address/checkout-billing-address-form.component.ts @@ -39,6 +39,7 @@ import { CheckoutBillingAddressFormService } from './checkout-billing-address-fo @Component({ selector: 'cx-checkout-billing-address-form', templateUrl: './checkout-billing-address-form.component.html', + standalone: false, }) export class CheckoutBillingAddressFormComponent implements OnInit { showSameAsDeliveryAddressCheckbox$: Observable; diff --git a/feature-libs/checkout/base/components/checkout-delivery-address/checkout-delivery-address.component.spec.ts b/feature-libs/checkout/base/components/checkout-delivery-address/checkout-delivery-address.component.spec.ts index 53a504d2601..07c16358c9a 100644 --- a/feature-libs/checkout/base/components/checkout-delivery-address/checkout-delivery-address.component.spec.ts +++ b/feature-libs/checkout/base/components/checkout-delivery-address/checkout-delivery-address.component.spec.ts @@ -100,6 +100,7 @@ const mockActivatedRoute = { @Component({ selector: 'cx-address-form', template: '', + standalone: false, }) class MockAddressFormComponent { @Input() cancelBtnLabel: string; @@ -111,12 +112,14 @@ class MockAddressFormComponent { @Component({ selector: 'cx-spinner', template: '', + standalone: false, }) class MockSpinnerComponent {} @Component({ selector: 'cx-card', template: '', + standalone: false, }) class MockCardComponent { @Input() diff --git a/feature-libs/checkout/base/components/checkout-delivery-address/checkout-delivery-address.component.ts b/feature-libs/checkout/base/components/checkout-delivery-address/checkout-delivery-address.component.ts index 1cbf8ebf925..993c29f527f 100644 --- a/feature-libs/checkout/base/components/checkout-delivery-address/checkout-delivery-address.component.ts +++ b/feature-libs/checkout/base/components/checkout-delivery-address/checkout-delivery-address.component.ts @@ -53,6 +53,7 @@ export interface CardWithAddress { selector: 'cx-delivery-address', templateUrl: './checkout-delivery-address.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class CheckoutDeliveryAddressComponent implements OnInit { protected checkoutConfigService = inject(CheckoutConfigService); diff --git a/feature-libs/checkout/base/components/checkout-delivery-mode/checkout-delivery-mode.component.spec.ts b/feature-libs/checkout/base/components/checkout-delivery-mode/checkout-delivery-mode.component.spec.ts index d9677557f50..2f05ce6bb78 100644 --- a/feature-libs/checkout/base/components/checkout-delivery-mode/checkout-delivery-mode.component.spec.ts +++ b/feature-libs/checkout/base/components/checkout-delivery-mode/checkout-delivery-mode.component.spec.ts @@ -35,6 +35,7 @@ import createSpy = jasmine.createSpy; @Component({ selector: 'cx-spinner', template: '', + standalone: false, }) class MockSpinnerComponent {} diff --git a/feature-libs/checkout/base/components/checkout-delivery-mode/checkout-delivery-mode.component.ts b/feature-libs/checkout/base/components/checkout-delivery-mode/checkout-delivery-mode.component.ts index 4dd70bde472..349f6041f1a 100644 --- a/feature-libs/checkout/base/components/checkout-delivery-mode/checkout-delivery-mode.component.ts +++ b/feature-libs/checkout/base/components/checkout-delivery-mode/checkout-delivery-mode.component.ts @@ -39,6 +39,7 @@ import { CheckoutStepService } from '../services/checkout-step.service'; selector: 'cx-delivery-mode', templateUrl: './checkout-delivery-mode.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class CheckoutDeliveryModeComponent { protected globalMessageService = inject(GlobalMessageService); diff --git a/feature-libs/checkout/base/components/checkout-login/checkout-login.component.ts b/feature-libs/checkout/base/components/checkout-login/checkout-login.component.ts index e0e7e4684b2..f93fb8e0da2 100644 --- a/feature-libs/checkout/base/components/checkout-login/checkout-login.component.ts +++ b/feature-libs/checkout/base/components/checkout-login/checkout-login.component.ts @@ -18,6 +18,7 @@ import { Subscription } from 'rxjs'; @Component({ selector: 'cx-checkout-login', templateUrl: './checkout-login.component.html', + standalone: false, }) export class CheckoutLoginComponent implements OnDestroy { checkoutLoginForm: UntypedFormGroup = this.formBuilder.group( diff --git a/feature-libs/checkout/base/components/checkout-orchestrator/checkout-orchestrator.component.ts b/feature-libs/checkout/base/components/checkout-orchestrator/checkout-orchestrator.component.ts index 2383855c7d1..6300b01328d 100644 --- a/feature-libs/checkout/base/components/checkout-orchestrator/checkout-orchestrator.component.ts +++ b/feature-libs/checkout/base/components/checkout-orchestrator/checkout-orchestrator.component.ts @@ -10,6 +10,7 @@ import { Component, ChangeDetectionStrategy } from '@angular/core'; selector: 'cx-checkout-orchestrator', template: '', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class CheckoutOrchestratorComponent { constructor() { diff --git a/feature-libs/checkout/base/components/checkout-order-summary/checkout-order-summary.component.ts b/feature-libs/checkout/base/components/checkout-order-summary/checkout-order-summary.component.ts index 241341d3a07..4fcb331f08d 100644 --- a/feature-libs/checkout/base/components/checkout-order-summary/checkout-order-summary.component.ts +++ b/feature-libs/checkout/base/components/checkout-order-summary/checkout-order-summary.component.ts @@ -12,6 +12,7 @@ import { Observable } from 'rxjs'; selector: 'cx-checkout-order-summary', templateUrl: './checkout-order-summary.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class CheckoutOrderSummaryComponent { cart$: Observable; diff --git a/feature-libs/checkout/base/components/checkout-payment-method/checkout-payment-form/checkout-payment-form.component.spec.ts b/feature-libs/checkout/base/components/checkout-payment-method/checkout-payment-form/checkout-payment-form.component.spec.ts index 77f54afb976..41dcc66465f 100644 --- a/feature-libs/checkout/base/components/checkout-payment-method/checkout-payment-form/checkout-payment-form.component.spec.ts +++ b/feature-libs/checkout/base/components/checkout-payment-method/checkout-payment-form/checkout-payment-form.component.spec.ts @@ -34,6 +34,7 @@ import createSpy = jasmine.createSpy; @Component({ selector: 'cx-spinner', template: '', + standalone: false, }) class MockSpinnerComponent {} @@ -95,6 +96,7 @@ const mockPayment: any = { @Component({ selector: 'cx-billing-address-form', template: '', + standalone: false, }) class MockBillingAddressFormComponent { @Input() @@ -106,6 +108,7 @@ class MockBillingAddressFormComponent { @Component({ selector: 'cx-card', template: '', + standalone: false, }) class MockCardComponent { @Input() @@ -115,6 +118,7 @@ class MockCardComponent { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; diff --git a/feature-libs/checkout/base/components/checkout-payment-method/checkout-payment-form/checkout-payment-form.component.ts b/feature-libs/checkout/base/components/checkout-payment-method/checkout-payment-form/checkout-payment-form.component.ts index 96d843997cf..441ac9aa4cc 100644 --- a/feature-libs/checkout/base/components/checkout-payment-method/checkout-payment-form/checkout-payment-form.component.ts +++ b/feature-libs/checkout/base/components/checkout-payment-method/checkout-payment-form/checkout-payment-form.component.ts @@ -51,6 +51,7 @@ import { CheckoutBillingAddressFormService } from '../../checkout-billing-addres selector: 'cx-payment-form', templateUrl: './checkout-payment-form.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class CheckoutPaymentFormComponent implements OnInit { iconTypes = ICON_TYPE; diff --git a/feature-libs/checkout/base/components/checkout-payment-method/checkout-payment-method.component.spec.ts b/feature-libs/checkout/base/components/checkout-payment-method/checkout-payment-method.component.spec.ts index 1d0270d368c..fbd0b2751a6 100644 --- a/feature-libs/checkout/base/components/checkout-payment-method/checkout-payment-method.component.spec.ts +++ b/feature-libs/checkout/base/components/checkout-payment-method/checkout-payment-method.component.spec.ts @@ -33,6 +33,7 @@ import createSpy = jasmine.createSpy; @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; @@ -152,6 +153,7 @@ const mockAddress: Address = { @Component({ selector: 'cx-payment-form', template: '', + standalone: false, }) class MockPaymentFormComponent { @Input() @@ -167,6 +169,7 @@ class MockPaymentFormComponent { @Component({ selector: 'cx-spinner', template: '', + standalone: false, }) class MockSpinnerComponent {} diff --git a/feature-libs/checkout/base/components/checkout-payment-method/checkout-payment-method.component.ts b/feature-libs/checkout/base/components/checkout-payment-method/checkout-payment-method.component.ts index 958383bc586..2234c7b310f 100644 --- a/feature-libs/checkout/base/components/checkout-payment-method/checkout-payment-method.component.ts +++ b/feature-libs/checkout/base/components/checkout-payment-method/checkout-payment-method.component.ts @@ -51,6 +51,7 @@ import { CheckoutStepService } from '../services/checkout-step.service'; selector: 'cx-payment-method', templateUrl: './checkout-payment-method.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class CheckoutPaymentMethodComponent implements OnInit, OnDestroy { protected subscriptions = new Subscription(); diff --git a/feature-libs/checkout/base/components/checkout-place-order/checkout-place-order.component.spec.ts b/feature-libs/checkout/base/components/checkout-place-order/checkout-place-order.component.spec.ts index b91301fefa9..b383ea54b2a 100644 --- a/feature-libs/checkout/base/components/checkout-place-order/checkout-place-order.component.spec.ts +++ b/feature-libs/checkout/base/components/checkout-place-order/checkout-place-order.component.spec.ts @@ -33,6 +33,7 @@ class MockLaunchDialogService implements Partial { @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform(): any {} diff --git a/feature-libs/checkout/base/components/checkout-place-order/checkout-place-order.component.ts b/feature-libs/checkout/base/components/checkout-place-order/checkout-place-order.component.ts index ff9f62de630..68d52847f8d 100644 --- a/feature-libs/checkout/base/components/checkout-place-order/checkout-place-order.component.ts +++ b/feature-libs/checkout/base/components/checkout-place-order/checkout-place-order.component.ts @@ -25,6 +25,7 @@ import { Observable } from 'rxjs'; selector: 'cx-place-order', templateUrl: './checkout-place-order.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class CheckoutPlaceOrderComponent implements OnDestroy { placedOrder: void | Observable | undefined>; diff --git a/feature-libs/checkout/base/components/checkout-progress/checkout-progress-mobile-bottom/checkout-progress-mobile-bottom.component.spec.ts b/feature-libs/checkout/base/components/checkout-progress/checkout-progress-mobile-bottom/checkout-progress-mobile-bottom.component.spec.ts index 937821bf7e2..33c12c3ee5d 100644 --- a/feature-libs/checkout/base/components/checkout-progress/checkout-progress-mobile-bottom/checkout-progress-mobile-bottom.component.spec.ts +++ b/feature-libs/checkout/base/components/checkout-progress/checkout-progress-mobile-bottom/checkout-progress-mobile-bottom.component.spec.ts @@ -37,6 +37,7 @@ class MockCheckoutStepService implements Partial { @Pipe({ name: 'cxUrl', + standalone: false, }) class MockTranslateUrlPipe implements PipeTransform { transform(): any {} diff --git a/feature-libs/checkout/base/components/checkout-progress/checkout-progress-mobile-bottom/checkout-progress-mobile-bottom.component.ts b/feature-libs/checkout/base/components/checkout-progress/checkout-progress-mobile-bottom/checkout-progress-mobile-bottom.component.ts index ba548cd3655..63b1f87743b 100644 --- a/feature-libs/checkout/base/components/checkout-progress/checkout-progress-mobile-bottom/checkout-progress-mobile-bottom.component.ts +++ b/feature-libs/checkout/base/components/checkout-progress/checkout-progress-mobile-bottom/checkout-progress-mobile-bottom.component.ts @@ -14,6 +14,7 @@ import { CheckoutStepService } from '../../services/checkout-step.service'; selector: 'cx-checkout-progress-mobile-bottom', templateUrl: './checkout-progress-mobile-bottom.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class CheckoutProgressMobileBottomComponent { private _steps$: BehaviorSubject = diff --git a/feature-libs/checkout/base/components/checkout-progress/checkout-progress-mobile-top/checkout-progress-mobile-top.component.spec.ts b/feature-libs/checkout/base/components/checkout-progress/checkout-progress-mobile-top/checkout-progress-mobile-top.component.spec.ts index ed41f0edd12..155d8e8a0bc 100644 --- a/feature-libs/checkout/base/components/checkout-progress/checkout-progress-mobile-top/checkout-progress-mobile-top.component.spec.ts +++ b/feature-libs/checkout/base/components/checkout-progress/checkout-progress-mobile-top/checkout-progress-mobile-top.component.spec.ts @@ -50,6 +50,7 @@ class MockActiveCartService implements Partial { @Pipe({ name: 'cxUrl', + standalone: false, }) class MockTranslateUrlPipe implements PipeTransform { transform(): any {} diff --git a/feature-libs/checkout/base/components/checkout-progress/checkout-progress-mobile-top/checkout-progress-mobile-top.component.ts b/feature-libs/checkout/base/components/checkout-progress/checkout-progress-mobile-top/checkout-progress-mobile-top.component.ts index e6f750bb2d0..d8f3a1e5bbc 100644 --- a/feature-libs/checkout/base/components/checkout-progress/checkout-progress-mobile-top/checkout-progress-mobile-top.component.ts +++ b/feature-libs/checkout/base/components/checkout-progress/checkout-progress-mobile-top/checkout-progress-mobile-top.component.ts @@ -16,6 +16,7 @@ import { useFeatureStyles } from '@spartacus/core'; selector: 'cx-checkout-progress-mobile-top', templateUrl: './checkout-progress-mobile-top.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class CheckoutProgressMobileTopComponent { private _steps$: BehaviorSubject = diff --git a/feature-libs/checkout/base/components/checkout-progress/checkout-progress.component.spec.ts b/feature-libs/checkout/base/components/checkout-progress/checkout-progress.component.spec.ts index 83fa230cf18..a21878d6df5 100644 --- a/feature-libs/checkout/base/components/checkout-progress/checkout-progress.component.spec.ts +++ b/feature-libs/checkout/base/components/checkout-progress/checkout-progress.component.spec.ts @@ -37,6 +37,7 @@ class MockCheckoutStepService implements Partial { @Pipe({ name: 'cxUrl', + standalone: false, }) class MockTranslateUrlPipe implements PipeTransform { transform(): any {} @@ -44,6 +45,7 @@ class MockTranslateUrlPipe implements PipeTransform { @Pipe({ name: 'cxMultiLine', + standalone: false, }) class MockMultiLinePipe implements PipeTransform { transform(value: string): string { diff --git a/feature-libs/checkout/base/components/checkout-progress/checkout-progress.component.ts b/feature-libs/checkout/base/components/checkout-progress/checkout-progress.component.ts index c3f174ab703..62d0ffc968e 100644 --- a/feature-libs/checkout/base/components/checkout-progress/checkout-progress.component.ts +++ b/feature-libs/checkout/base/components/checkout-progress/checkout-progress.component.ts @@ -14,6 +14,7 @@ import { CheckoutStepService } from '../services/checkout-step.service'; selector: 'cx-checkout-progress', templateUrl: './checkout-progress.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class CheckoutProgressComponent { private _steps$: BehaviorSubject = diff --git a/feature-libs/checkout/base/components/checkout-progress/multiline-titles.pipe.ts b/feature-libs/checkout/base/components/checkout-progress/multiline-titles.pipe.ts index 6f7403707bf..1df7d06fc8c 100644 --- a/feature-libs/checkout/base/components/checkout-progress/multiline-titles.pipe.ts +++ b/feature-libs/checkout/base/components/checkout-progress/multiline-titles.pipe.ts @@ -8,6 +8,7 @@ import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ name: 'cxMultiLine', + standalone: false, }) export class MultiLinePipe implements PipeTransform { transform(value: string): string { diff --git a/feature-libs/checkout/base/components/checkout-review-submit/checkout-review-submit.component.spec.ts b/feature-libs/checkout/base/components/checkout-review-submit/checkout-review-submit.component.spec.ts index 5037c8d5fed..1a682c2c3be 100644 --- a/feature-libs/checkout/base/components/checkout-review-submit/checkout-review-submit.component.spec.ts +++ b/feature-libs/checkout/base/components/checkout-review-submit/checkout-review-submit.component.spec.ts @@ -68,6 +68,7 @@ const mockEntries: OrderEntry[] = [{ entryNumber: 123 }, { entryNumber: 456 }]; @Component({ selector: 'cx-card', template: '', + standalone: false, }) class MockCardComponent { @Input() @@ -135,6 +136,7 @@ class MockCheckoutStepService { @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform(): any {} diff --git a/feature-libs/checkout/base/components/checkout-review-submit/checkout-review-submit.component.ts b/feature-libs/checkout/base/components/checkout-review-submit/checkout-review-submit.component.ts index 9e8cd9ba547..ac181fe3e01 100644 --- a/feature-libs/checkout/base/components/checkout-review-submit/checkout-review-submit.component.ts +++ b/feature-libs/checkout/base/components/checkout-review-submit/checkout-review-submit.component.ts @@ -31,6 +31,7 @@ import { CheckoutStepService } from '../services/checkout-step.service'; selector: 'cx-review-submit', templateUrl: './checkout-review-submit.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class CheckoutReviewSubmitComponent { readonly cartOutlets = CartOutlets; diff --git a/feature-libs/checkout/base/components/checkout-review/checkout-review-overview/checkout-review-overview.component.ts b/feature-libs/checkout/base/components/checkout-review/checkout-review-overview/checkout-review-overview.component.ts index 0518e0b4974..fefd987d16f 100644 --- a/feature-libs/checkout/base/components/checkout-review/checkout-review-overview/checkout-review-overview.component.ts +++ b/feature-libs/checkout/base/components/checkout-review/checkout-review-overview/checkout-review-overview.component.ts @@ -19,6 +19,7 @@ import { Observable, take } from 'rxjs'; selector: 'cx-checkout-review-overview', templateUrl: './checkout-review-overview.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class CheckoutReviewOverviewComponent implements AfterViewInit { protected document = inject(DOCUMENT, { optional: true }); diff --git a/feature-libs/checkout/base/components/checkout-review/checkout-review-payment/checkout-review-payment.component.spec.ts b/feature-libs/checkout/base/components/checkout-review/checkout-review-payment/checkout-review-payment.component.spec.ts index 75574cd2da0..faed99ee45f 100644 --- a/feature-libs/checkout/base/components/checkout-review/checkout-review-payment/checkout-review-payment.component.spec.ts +++ b/feature-libs/checkout/base/components/checkout-review/checkout-review-payment/checkout-review-payment.component.spec.ts @@ -65,6 +65,7 @@ class MockCheckoutStepService { @Component({ selector: 'cx-card', template: '', + standalone: false, }) class MockCardComponent { @Input() @@ -73,6 +74,7 @@ class MockCardComponent { @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform(): any {} diff --git a/feature-libs/checkout/base/components/checkout-review/checkout-review-payment/checkout-review-payment.component.ts b/feature-libs/checkout/base/components/checkout-review/checkout-review-payment/checkout-review-payment.component.ts index 5289b2ca582..ff09639425a 100644 --- a/feature-libs/checkout/base/components/checkout-review/checkout-review-payment/checkout-review-payment.component.ts +++ b/feature-libs/checkout/base/components/checkout-review/checkout-review-payment/checkout-review-payment.component.ts @@ -24,6 +24,7 @@ import { CheckoutStepService } from '../../services/checkout-step.service'; selector: 'cx-checkout-review-payment', templateUrl: './checkout-review-payment.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class CheckoutReviewPaymentComponent { iconTypes = ICON_TYPE; diff --git a/feature-libs/checkout/base/components/checkout-review/checkout-review-shipping/checkout-review-shipping.component.spec.ts b/feature-libs/checkout/base/components/checkout-review/checkout-review-shipping/checkout-review-shipping.component.spec.ts index 3fd7b807d46..933e7c300b2 100644 --- a/feature-libs/checkout/base/components/checkout-review/checkout-review-shipping/checkout-review-shipping.component.spec.ts +++ b/feature-libs/checkout/base/components/checkout-review/checkout-review-shipping/checkout-review-shipping.component.spec.ts @@ -108,6 +108,7 @@ class MockActiveCartService implements Partial { @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform(): any {} @@ -116,6 +117,7 @@ class MockUrlPipe implements PipeTransform { @Component({ selector: 'cx-card', template: '', + standalone: false, }) class MockCardComponent { @Input() diff --git a/feature-libs/checkout/base/components/checkout-review/checkout-review-shipping/checkout-review-shipping.component.ts b/feature-libs/checkout/base/components/checkout-review/checkout-review-shipping/checkout-review-shipping.component.ts index c53b1cc2b58..e1958139dab 100644 --- a/feature-libs/checkout/base/components/checkout-review/checkout-review-shipping/checkout-review-shipping.component.ts +++ b/feature-libs/checkout/base/components/checkout-review/checkout-review-shipping/checkout-review-shipping.component.ts @@ -31,6 +31,7 @@ import { CheckoutStepService } from '../../services/checkout-step.service'; selector: 'cx-checkout-review-shipping', templateUrl: './checkout-review-shipping.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class CheckoutReviewShippingComponent { protected featureConfig = inject(FeatureConfigService); diff --git a/feature-libs/checkout/base/styles/components/steps/_progress.scss b/feature-libs/checkout/base/styles/components/steps/_progress.scss index 683bb2e7559..89a1dc38900 100644 --- a/feature-libs/checkout/base/styles/components/steps/_progress.scss +++ b/feature-libs/checkout/base/styles/components/steps/_progress.scss @@ -41,6 +41,9 @@ &.disabled { border-color: var(--cx-color-medium); + @include cx-highContrastTheme { + border-color: var(--cx-color-secondary); + } } &:first-child ::before { diff --git a/feature-libs/checkout/base/styles/components/steps/delivery-address/_delivery-address.scss b/feature-libs/checkout/base/styles/components/steps/delivery-address/_delivery-address.scss index a7304c64914..30dd7b384b4 100644 --- a/feature-libs/checkout/base/styles/components/steps/delivery-address/_delivery-address.scss +++ b/feature-libs/checkout/base/styles/components/steps/delivery-address/_delivery-address.scss @@ -71,4 +71,8 @@ margin-bottom: 0; } } + + @include cx-highContrastTheme { + border-color: var(--cx-color-dark); + } } diff --git a/feature-libs/checkout/base/styles/components/steps/payment/_payment-method.scss b/feature-libs/checkout/base/styles/components/steps/payment/_payment-method.scss index 485dc96bf97..eb6f1323ec3 100644 --- a/feature-libs/checkout/base/styles/components/steps/payment/_payment-method.scss +++ b/feature-libs/checkout/base/styles/components/steps/payment/_payment-method.scss @@ -110,4 +110,8 @@ } } } + + @include cx-highContrastTheme { + border-color: var(--cx-color-dark); + } } diff --git a/feature-libs/checkout/base/styles/components/steps/review/_review.scss b/feature-libs/checkout/base/styles/components/steps/review/_review.scss index c3b1fe39cdf..286a96dfde3 100644 --- a/feature-libs/checkout/base/styles/components/steps/review/_review.scss +++ b/feature-libs/checkout/base/styles/components/steps/review/_review.scss @@ -152,9 +152,7 @@ background-color: var(--cx-color-background); .cx-review-summary-payment-card { background-color: var(--cx-color-background); - @include forFeature('a11yHighContrastBorders') { - border-color: var(--cx-color-dark); - } + border-color: var(--cx-color-dark); } .cx-review-summary { background-color: var(--cx-color-background); diff --git a/feature-libs/checkout/package.json b/feature-libs/checkout/package.json index cd4c8fc691a..0af0dad04b6 100644 --- a/feature-libs/checkout/package.json +++ b/feature-libs/checkout/package.json @@ -25,13 +25,13 @@ "tslib": "^2.8.1" }, "peerDependencies": { - "@angular-devkit/schematics": "^18.2.9", - "@angular/common": "^18.2.9", - "@angular/core": "^18.2.9", - "@angular/forms": "^18.2.9", - "@angular/router": "^18.2.9", - "@ng-select/ng-select": "^13.9.1", - "@ngrx/store": "^18.1.1", + "@angular-devkit/schematics": "^19.0.4", + "@angular/common": "^19.0.3", + "@angular/core": "^19.0.3", + "@angular/forms": "^19.0.3", + "@angular/router": "^19.0.3", + "@ng-select/ng-select": "^14.1.0", + "@ngrx/store": "^19.0.0", "@spartacus/cart": "2211.32.0", "@spartacus/core": "2211.32.0", "@spartacus/order": "2211.32.0", diff --git a/feature-libs/checkout/scheduled-replenishment/components/checkout-place-order/checkout-place-order.component.spec.ts b/feature-libs/checkout/scheduled-replenishment/components/checkout-place-order/checkout-place-order.component.spec.ts index 1ed16377598..5460708a17b 100644 --- a/feature-libs/checkout/scheduled-replenishment/components/checkout-place-order/checkout-place-order.component.spec.ts +++ b/feature-libs/checkout/scheduled-replenishment/components/checkout-place-order/checkout-place-order.component.spec.ts @@ -73,6 +73,7 @@ class MockLaunchDialogService implements Partial { @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform = createSpy(); diff --git a/feature-libs/checkout/scheduled-replenishment/components/checkout-place-order/checkout-place-order.component.ts b/feature-libs/checkout/scheduled-replenishment/components/checkout-place-order/checkout-place-order.component.ts index 51f45bd16b0..7dee3f64c75 100644 --- a/feature-libs/checkout/scheduled-replenishment/components/checkout-place-order/checkout-place-order.component.ts +++ b/feature-libs/checkout/scheduled-replenishment/components/checkout-place-order/checkout-place-order.component.ts @@ -29,6 +29,7 @@ import { CheckoutReplenishmentFormService } from '../services/checkout-replenish selector: 'cx-place-order', templateUrl: './checkout-place-order.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class CheckoutScheduledReplenishmentPlaceOrderComponent extends CheckoutPlaceOrderComponent diff --git a/feature-libs/checkout/scheduled-replenishment/components/checkout-schedule-replenishment-order/checkout-schedule-replenishment-order.component.ts b/feature-libs/checkout/scheduled-replenishment/components/checkout-schedule-replenishment-order/checkout-schedule-replenishment-order.component.ts index e03cdba443d..af5a9fc3f12 100644 --- a/feature-libs/checkout/scheduled-replenishment/components/checkout-schedule-replenishment-order/checkout-schedule-replenishment-order.component.ts +++ b/feature-libs/checkout/scheduled-replenishment/components/checkout-schedule-replenishment-order/checkout-schedule-replenishment-order.component.ts @@ -25,6 +25,7 @@ import { CheckoutReplenishmentFormService } from '../services/checkout-replenish selector: 'cx-schedule-replenishment-order', templateUrl: './checkout-schedule-replenishment-order.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class CheckoutScheduleReplenishmentOrderComponent implements OnInit, OnDestroy diff --git a/feature-libs/checkout/schematics/add-checkout/__snapshots__/index_spec.ts.snap b/feature-libs/checkout/schematics/add-checkout/__snapshots__/index_spec.ts.snap index 380436c5fd5..cb457bd1dd3 100644 --- a/feature-libs/checkout/schematics/add-checkout/__snapshots__/index_spec.ts.snap +++ b/feature-libs/checkout/schematics/add-checkout/__snapshots__/index_spec.ts.snap @@ -185,7 +185,12 @@ exports[`Spartacus Checkout schematics: ng-add Checkout feature b2b general setu "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } }, "configurations": { @@ -198,8 +203,8 @@ exports[`Spartacus Checkout schematics: ng-add Checkout feature b2b general setu }, { "type": "anyComponentStyle", - "maximumWarning": "2kB", - "maximumError": "4kB" + "maximumWarning": "4kB", + "maximumError": "8kB" } ], "outputHashing": "all" @@ -250,7 +255,12 @@ exports[`Spartacus Checkout schematics: ng-add Checkout feature b2b general setu "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } } } @@ -373,7 +383,12 @@ exports[`Spartacus Checkout schematics: ng-add Checkout feature base general set "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } }, "configurations": { @@ -386,8 +401,8 @@ exports[`Spartacus Checkout schematics: ng-add Checkout feature base general set }, { "type": "anyComponentStyle", - "maximumWarning": "2kB", - "maximumError": "4kB" + "maximumWarning": "4kB", + "maximumError": "8kB" } ], "outputHashing": "all" @@ -438,7 +453,12 @@ exports[`Spartacus Checkout schematics: ng-add Checkout feature base general set "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } } } @@ -655,7 +675,12 @@ exports[`Spartacus Checkout schematics: ng-add Checkout feature scheduled replen "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } }, "configurations": { @@ -668,8 +693,8 @@ exports[`Spartacus Checkout schematics: ng-add Checkout feature scheduled replen }, { "type": "anyComponentStyle", - "maximumWarning": "2kB", - "maximumError": "4kB" + "maximumWarning": "4kB", + "maximumError": "8kB" } ], "outputHashing": "all" @@ -720,7 +745,12 @@ exports[`Spartacus Checkout schematics: ng-add Checkout feature scheduled replen "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } } } diff --git a/feature-libs/customer-ticketing/.eslintrc.json b/feature-libs/customer-ticketing/.eslintrc.json index 862b5a870b0..9895500871d 100644 --- a/feature-libs/customer-ticketing/.eslintrc.json +++ b/feature-libs/customer-ticketing/.eslintrc.json @@ -1,4 +1,9 @@ { "extends": "../../.eslintrc.json", - "ignorePatterns": ["schematics/**/*.d.ts"] + "ignorePatterns": ["schematics/**/*.d.ts"], + "overrides": [ + { + "files": ["*.ts"] + } + ] } diff --git a/feature-libs/customer-ticketing/components/details/customer-ticketing-close/customer-ticketing-close-dialog/customer-ticketing-close-dialog.component.spec.ts b/feature-libs/customer-ticketing/components/details/customer-ticketing-close/customer-ticketing-close-dialog/customer-ticketing-close-dialog.component.spec.ts index ff5a04e5e9a..cedc8c1187e 100644 --- a/feature-libs/customer-ticketing/components/details/customer-ticketing-close/customer-ticketing-close-dialog/customer-ticketing-close-dialog.component.spec.ts +++ b/feature-libs/customer-ticketing/components/details/customer-ticketing-close/customer-ticketing-close-dialog/customer-ticketing-close-dialog.component.spec.ts @@ -33,6 +33,7 @@ class MockRoutingService implements Partial { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; @@ -40,6 +41,7 @@ class MockCxIconComponent { @Component({ selector: 'cx-messaging', + standalone: false, }) class MockCxMessagingComponent { @Input() messageEvents$: Observable>; @@ -49,6 +51,7 @@ class MockCxMessagingComponent { @Directive({ selector: '[cxFocus]', + standalone: false, }) export class MockKeyboadFocusDirective { @Input('cxFocus') config: FocusConfig = {}; diff --git a/feature-libs/customer-ticketing/components/details/customer-ticketing-close/customer-ticketing-close-dialog/customer-ticketing-close-dialog.component.ts b/feature-libs/customer-ticketing/components/details/customer-ticketing-close/customer-ticketing-close-dialog/customer-ticketing-close-dialog.component.ts index d7d1233da60..eeae140d586 100644 --- a/feature-libs/customer-ticketing/components/details/customer-ticketing-close/customer-ticketing-close-dialog/customer-ticketing-close-dialog.component.ts +++ b/feature-libs/customer-ticketing/components/details/customer-ticketing-close/customer-ticketing-close-dialog/customer-ticketing-close-dialog.component.ts @@ -17,6 +17,7 @@ import { CustomerTicketingDialogComponent } from '../../../shared/customer-ticke @Component({ selector: 'cx-customer-ticketing-close-dialog', templateUrl: './customer-ticketing-close-dialog.component.html', + standalone: false, }) export class CustomerTicketingCloseDialogComponent extends CustomerTicketingDialogComponent diff --git a/feature-libs/customer-ticketing/components/details/customer-ticketing-close/customer-ticketing-close.component.spec.ts b/feature-libs/customer-ticketing/components/details/customer-ticketing-close/customer-ticketing-close.component.spec.ts index 0b7d0407b4f..34bf69057a2 100644 --- a/feature-libs/customer-ticketing/components/details/customer-ticketing-close/customer-ticketing-close.component.spec.ts +++ b/feature-libs/customer-ticketing/components/details/customer-ticketing-close/customer-ticketing-close.component.spec.ts @@ -49,6 +49,7 @@ class MockCustomerTicketingFacade implements Partial { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; diff --git a/feature-libs/customer-ticketing/components/details/customer-ticketing-close/customer-ticketing-close.component.ts b/feature-libs/customer-ticketing/components/details/customer-ticketing-close/customer-ticketing-close.component.ts index 84c55e2e15d..3cfaa59808a 100644 --- a/feature-libs/customer-ticketing/components/details/customer-ticketing-close/customer-ticketing-close.component.ts +++ b/feature-libs/customer-ticketing/components/details/customer-ticketing-close/customer-ticketing-close.component.ts @@ -21,6 +21,7 @@ import { CustomerTicketingCloseComponentService } from './customer-ticketing-clo @Component({ selector: 'cx-customer-ticketing-close', templateUrl: './customer-ticketing-close.component.html', + standalone: false, }) export class CustomerTicketingCloseComponent implements OnDestroy { protected subscription = new Subscription(); diff --git a/feature-libs/customer-ticketing/components/details/customer-ticketing-details/customer-ticketing-details.component.ts b/feature-libs/customer-ticketing/components/details/customer-ticketing-details/customer-ticketing-details.component.ts index 8098ed46e93..ff636a00c32 100644 --- a/feature-libs/customer-ticketing/components/details/customer-ticketing-details/customer-ticketing-details.component.ts +++ b/feature-libs/customer-ticketing/components/details/customer-ticketing-details/customer-ticketing-details.component.ts @@ -26,6 +26,7 @@ import { filter, map, take, tap } from 'rxjs/operators'; selector: 'cx-customer-ticketing-details', templateUrl: './customer-ticketing-details.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class CustomerTicketingDetailsComponent implements OnDestroy { dateFormat = DATE_FORMAT; diff --git a/feature-libs/customer-ticketing/components/details/customer-ticketing-messages/customer-ticketing-messages.component.spec.ts b/feature-libs/customer-ticketing/components/details/customer-ticketing-messages/customer-ticketing-messages.component.spec.ts index aae3f23bcb8..f82a6afe27e 100644 --- a/feature-libs/customer-ticketing/components/details/customer-ticketing-messages/customer-ticketing-messages.component.spec.ts +++ b/feature-libs/customer-ticketing/components/details/customer-ticketing-messages/customer-ticketing-messages.component.spec.ts @@ -45,6 +45,7 @@ describe('CustomerTicketMessagesComponent', () => { @Component({ selector: 'cx-messaging', template: '', + standalone: false, }) class MockCxMessagingComponent { @Input() messageEvents$: Observable>; diff --git a/feature-libs/customer-ticketing/components/details/customer-ticketing-messages/customer-ticketing-messages.component.ts b/feature-libs/customer-ticketing/components/details/customer-ticketing-messages/customer-ticketing-messages.component.ts index 07c93393e3b..a91ac80bd23 100644 --- a/feature-libs/customer-ticketing/components/details/customer-ticketing-messages/customer-ticketing-messages.component.ts +++ b/feature-libs/customer-ticketing/components/details/customer-ticketing-messages/customer-ticketing-messages.component.ts @@ -23,6 +23,7 @@ import { CustomerTicketingMessagesComponentService } from './customer-ticketing- @Component({ selector: 'cx-customer-ticketing-messages', templateUrl: './customer-ticketing-messages.component.html', + standalone: false, }) export class CustomerTicketingMessagesComponent implements OnDestroy { @ViewChild(MessagingComponent) messagingComponent: MessagingComponent; diff --git a/feature-libs/customer-ticketing/components/details/customer-ticketing-reopen/customer-ticketing-reopen-dialog/customer-ticketing-reopen-dialog.component.spec.ts b/feature-libs/customer-ticketing/components/details/customer-ticketing-reopen/customer-ticketing-reopen-dialog/customer-ticketing-reopen-dialog.component.spec.ts index df9ef3eda8d..6a0640e75b6 100644 --- a/feature-libs/customer-ticketing/components/details/customer-ticketing-reopen/customer-ticketing-reopen-dialog/customer-ticketing-reopen-dialog.component.spec.ts +++ b/feature-libs/customer-ticketing/components/details/customer-ticketing-reopen/customer-ticketing-reopen-dialog/customer-ticketing-reopen-dialog.component.spec.ts @@ -34,6 +34,7 @@ class MockRoutingService implements Partial { @Directive({ selector: '[cxFocus]', + standalone: false, }) export class MockKeyboadFocusDirective { @Input('cxFocus') config: FocusConfig = {}; @@ -42,6 +43,7 @@ export class MockKeyboadFocusDirective { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; diff --git a/feature-libs/customer-ticketing/components/details/customer-ticketing-reopen/customer-ticketing-reopen-dialog/customer-ticketing-reopen-dialog.component.ts b/feature-libs/customer-ticketing/components/details/customer-ticketing-reopen/customer-ticketing-reopen-dialog/customer-ticketing-reopen-dialog.component.ts index 6d7be42a366..6ebc1b9af08 100644 --- a/feature-libs/customer-ticketing/components/details/customer-ticketing-reopen/customer-ticketing-reopen-dialog/customer-ticketing-reopen-dialog.component.ts +++ b/feature-libs/customer-ticketing/components/details/customer-ticketing-reopen/customer-ticketing-reopen-dialog/customer-ticketing-reopen-dialog.component.ts @@ -17,6 +17,7 @@ import { CustomerTicketingDialogComponent } from '../../../shared/customer-ticke @Component({ selector: 'cx-customer-ticketing-reopen-dialog', templateUrl: './customer-ticketing-reopen-dialog.component.html', + standalone: false, }) export class CustomerTicketingReopenDialogComponent extends CustomerTicketingDialogComponent @@ -33,8 +34,7 @@ export class CustomerTicketingReopenDialogComponent this.form.markAllAsTouched(); FormUtils.deepUpdateValueAndValidity(this.form); } else { - const mustWaitForAttachment = - this.form.get('file')?.value?.length > 0 ?? false; + const mustWaitForAttachment = this.form.get('file')?.value?.length > 0; this.isDataLoading$.next(true); this.subscription = this.customerTicketingFacade .createTicketEvent(this.prepareTicketEvent(), mustWaitForAttachment) diff --git a/feature-libs/customer-ticketing/components/details/customer-ticketing-reopen/customer-ticketing-reopen.component.ts b/feature-libs/customer-ticketing/components/details/customer-ticketing-reopen/customer-ticketing-reopen.component.ts index ac865ad1d9b..d51d1fffbf0 100644 --- a/feature-libs/customer-ticketing/components/details/customer-ticketing-reopen/customer-ticketing-reopen.component.ts +++ b/feature-libs/customer-ticketing/components/details/customer-ticketing-reopen/customer-ticketing-reopen.component.ts @@ -21,6 +21,7 @@ import { CustomerTicketingReopenComponentService } from './customer-ticketing-re @Component({ selector: 'cx-customer-ticketing-reopen', templateUrl: './customer-ticketing-reopen.component.html', + standalone: false, }) export class CustomerTicketingReopenComponent implements OnDestroy { protected subscription = new Subscription(); diff --git a/feature-libs/customer-ticketing/components/list/customer-ticketing-create/customer-ticketing-create-dialog/customer-ticketing-create-dialog.component.spec.ts b/feature-libs/customer-ticketing/components/list/customer-ticketing-create/customer-ticketing-create-dialog/customer-ticketing-create-dialog.component.spec.ts index e08c1f1bcb4..9fdab828a76 100644 --- a/feature-libs/customer-ticketing/components/list/customer-ticketing-create/customer-ticketing-create-dialog/customer-ticketing-create-dialog.component.spec.ts +++ b/feature-libs/customer-ticketing/components/list/customer-ticketing-create/customer-ticketing-create-dialog/customer-ticketing-create-dialog.component.spec.ts @@ -94,6 +94,7 @@ class MockTranslationService { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; @@ -101,6 +102,7 @@ class MockCxIconComponent { @Directive({ selector: '[cxFocus]', + standalone: false, }) export class MockKeyboadFocusDirective { @Input('cxFocus') config: FocusConfig = {}; diff --git a/feature-libs/customer-ticketing/components/list/customer-ticketing-create/customer-ticketing-create-dialog/customer-ticketing-create-dialog.component.ts b/feature-libs/customer-ticketing/components/list/customer-ticketing-create/customer-ticketing-create-dialog/customer-ticketing-create-dialog.component.ts index 1b1a79e144a..acf531932cb 100644 --- a/feature-libs/customer-ticketing/components/list/customer-ticketing-create/customer-ticketing-create-dialog/customer-ticketing-create-dialog.component.ts +++ b/feature-libs/customer-ticketing/components/list/customer-ticketing-create/customer-ticketing-create-dialog/customer-ticketing-create-dialog.component.ts @@ -27,6 +27,7 @@ import { catchError, first, tap } from 'rxjs/operators'; @Component({ selector: 'cx-customer-ticketing-create-dialog', templateUrl: './customer-ticketing-create-dialog.component.html', + standalone: false, }) export class CustomerTicketingCreateDialogComponent extends CustomerTicketingDialogComponent diff --git a/feature-libs/customer-ticketing/components/list/customer-ticketing-create/customer-ticketing-create.component.ts b/feature-libs/customer-ticketing/components/list/customer-ticketing-create/customer-ticketing-create.component.ts index a922fb96edb..d020b76f3e5 100644 --- a/feature-libs/customer-ticketing/components/list/customer-ticketing-create/customer-ticketing-create.component.ts +++ b/feature-libs/customer-ticketing/components/list/customer-ticketing-create/customer-ticketing-create.component.ts @@ -18,6 +18,7 @@ import { take } from 'rxjs/operators'; @Component({ selector: 'cx-customer-ticketing-create', templateUrl: './customer-ticketing-create.component.html', + standalone: false, }) export class CustomerTicketingCreateComponent implements OnDestroy { protected subscription = new Subscription(); diff --git a/feature-libs/customer-ticketing/components/list/customer-ticketing-list/customer-ticketing-list.component.spec.ts b/feature-libs/customer-ticketing/components/list/customer-ticketing-list/customer-ticketing-list.component.spec.ts index 4470096e1c1..93605a9a634 100644 --- a/feature-libs/customer-ticketing/components/list/customer-ticketing-list/customer-ticketing-list.component.spec.ts +++ b/feature-libs/customer-ticketing/components/list/customer-ticketing-list/customer-ticketing-list.component.spec.ts @@ -149,6 +149,7 @@ const mockTicketList2: TicketList = { @Component({ template: '', selector: 'cx-pagination', + standalone: false, }) class MockPaginationComponent { @Input() pagination: any; @@ -157,6 +158,7 @@ class MockPaginationComponent { @Component({ template: '', selector: 'cx-sorting', + standalone: false, }) class MockSortingComponent { @Input() sortOptions: any; @@ -168,6 +170,7 @@ class MockSortingComponent { @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform() {} @@ -196,6 +199,7 @@ class MockCustomerTicketingFacade { } @Component({ selector: 'cx-customer-ticketing-create', + standalone: false, }) class MockCustomerTicketingCreateComponent {} diff --git a/feature-libs/customer-ticketing/components/list/customer-ticketing-list/customer-ticketing-list.component.ts b/feature-libs/customer-ticketing/components/list/customer-ticketing-list/customer-ticketing-list.component.ts index 10f4b1acb43..7ec41a63580 100644 --- a/feature-libs/customer-ticketing/components/list/customer-ticketing-list/customer-ticketing-list.component.ts +++ b/feature-libs/customer-ticketing/components/list/customer-ticketing-list/customer-ticketing-list.component.ts @@ -24,6 +24,7 @@ import { map, tap } from 'rxjs/operators'; @Component({ selector: 'cx-customer-ticketing-list', templateUrl: './customer-ticketing-list.component.html', + standalone: false, }) export class CustomerTicketingListComponent { constructor( diff --git a/feature-libs/customer-ticketing/components/my-account-v2/my-account-v2-customer-ticketing.component.spec.ts b/feature-libs/customer-ticketing/components/my-account-v2/my-account-v2-customer-ticketing.component.spec.ts index 93970e4d51e..efdc245c1fb 100644 --- a/feature-libs/customer-ticketing/components/my-account-v2/my-account-v2-customer-ticketing.component.spec.ts +++ b/feature-libs/customer-ticketing/components/my-account-v2/my-account-v2-customer-ticketing.component.spec.ts @@ -28,12 +28,14 @@ const mockTicketList: TicketList = { @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform() {} } @Pipe({ name: 'cxTranslate', + standalone: false, }) class MockTranslatePipe implements PipeTransform { transform(): any {} diff --git a/feature-libs/customer-ticketing/components/my-account-v2/my-account-v2-customer-ticketing.component.ts b/feature-libs/customer-ticketing/components/my-account-v2/my-account-v2-customer-ticketing.component.ts index e881da7e582..674ede03b92 100644 --- a/feature-libs/customer-ticketing/components/my-account-v2/my-account-v2-customer-ticketing.component.ts +++ b/feature-libs/customer-ticketing/components/my-account-v2/my-account-v2-customer-ticketing.component.ts @@ -14,6 +14,7 @@ import { Observable } from 'rxjs'; @Component({ selector: 'cx-my-account-v2-customer-ticketing', templateUrl: './my-account-v2-customer-ticketing.component.html', + standalone: false, }) export class MyAccountV2CustomerTicketingComponent { protected readonly PAGE_SIZE = 1; diff --git a/feature-libs/customer-ticketing/components/shared/customer-ticketing-dialog/customer-ticketing-dialog.component.spec.ts b/feature-libs/customer-ticketing/components/shared/customer-ticketing-dialog/customer-ticketing-dialog.component.spec.ts index 49c78b15edd..7b650128981 100644 --- a/feature-libs/customer-ticketing/components/shared/customer-ticketing-dialog/customer-ticketing-dialog.component.spec.ts +++ b/feature-libs/customer-ticketing/components/shared/customer-ticketing-dialog/customer-ticketing-dialog.component.spec.ts @@ -6,6 +6,7 @@ import { CustomerTicketingDialogComponent } from './customer-ticketing-dialog.co @Component({ template: '', + standalone: false, }) class DialogComponent extends CustomerTicketingDialogComponent {} diff --git a/feature-libs/customer-ticketing/package.json b/feature-libs/customer-ticketing/package.json index cd4cb566b6b..150629f701d 100644 --- a/feature-libs/customer-ticketing/package.json +++ b/feature-libs/customer-ticketing/package.json @@ -25,11 +25,11 @@ "tslib": "^2.8.1" }, "peerDependencies": { - "@angular-devkit/schematics": "^18.2.9", - "@angular/common": "^18.2.9", - "@angular/core": "^18.2.9", - "@angular/forms": "^18.2.9", - "@angular/router": "^18.2.9", + "@angular-devkit/schematics": "^19.0.4", + "@angular/common": "^19.0.3", + "@angular/core": "^19.0.3", + "@angular/forms": "^19.0.3", + "@angular/router": "^19.0.3", "@spartacus/cart": "2211.32.0", "@spartacus/core": "2211.32.0", "@spartacus/schematics": "2211.32.0", diff --git a/feature-libs/customer-ticketing/schematics/add-customer-ticketing/__snapshots__/index_spec.ts.snap b/feature-libs/customer-ticketing/schematics/add-customer-ticketing/__snapshots__/index_spec.ts.snap index 6f7bc9ac7b8..fe59739e446 100644 --- a/feature-libs/customer-ticketing/schematics/add-customer-ticketing/__snapshots__/index_spec.ts.snap +++ b/feature-libs/customer-ticketing/schematics/add-customer-ticketing/__snapshots__/index_spec.ts.snap @@ -110,7 +110,12 @@ exports[`Spartacus Customer Ticketing schematics: ng-add Customer Ticketing feat "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } }, "configurations": { @@ -123,8 +128,8 @@ exports[`Spartacus Customer Ticketing schematics: ng-add Customer Ticketing feat }, { "type": "anyComponentStyle", - "maximumWarning": "2kB", - "maximumError": "4kB" + "maximumWarning": "4kB", + "maximumError": "8kB" } ], "outputHashing": "all" @@ -175,7 +180,12 @@ exports[`Spartacus Customer Ticketing schematics: ng-add Customer Ticketing feat "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } } } diff --git a/feature-libs/customer-ticketing/styles/components/_customer-ticketing-list.scss b/feature-libs/customer-ticketing/styles/components/_customer-ticketing-list.scss index 87c6e08c7ac..54559463d10 100644 --- a/feature-libs/customer-ticketing/styles/components/_customer-ticketing-list.scss +++ b/feature-libs/customer-ticketing/styles/components/_customer-ticketing-list.scss @@ -71,11 +71,9 @@ } @include cx-highContrastTheme { - @include forFeature('a11yHighContrastBorders') { - border-top-color: var(--cx-color-dark); - tr { - border-bottom-color: var(--cx-color-dark); - } + border-top-color: var(--cx-color-dark); + tr { + border-bottom-color: var(--cx-color-dark); } } } diff --git a/feature-libs/estimated-delivery-date/.eslintrc.json b/feature-libs/estimated-delivery-date/.eslintrc.json index 862b5a870b0..9895500871d 100644 --- a/feature-libs/estimated-delivery-date/.eslintrc.json +++ b/feature-libs/estimated-delivery-date/.eslintrc.json @@ -1,4 +1,9 @@ { "extends": "../../.eslintrc.json", - "ignorePatterns": ["schematics/**/*.d.ts"] + "ignorePatterns": ["schematics/**/*.d.ts"], + "overrides": [ + { + "files": ["*.ts"] + } + ] } diff --git a/feature-libs/estimated-delivery-date/package.json b/feature-libs/estimated-delivery-date/package.json index 846a3d4fe84..5bf3186ab68 100644 --- a/feature-libs/estimated-delivery-date/package.json +++ b/feature-libs/estimated-delivery-date/package.json @@ -25,9 +25,9 @@ "tslib": "^2.8.1" }, "peerDependencies": { - "@angular-devkit/schematics": "^18.2.9", - "@angular/common": "^18.2.9", - "@angular/core": "^18.2.9", + "@angular-devkit/schematics": "^19.0.4", + "@angular/common": "^19.0.3", + "@angular/core": "^19.0.3", "@spartacus/cart": "2211.32.0", "@spartacus/core": "2211.32.0", "@spartacus/order": "2211.32.0", diff --git a/feature-libs/estimated-delivery-date/schematics/add-estimated-delivery-date/__snapshots__/index_spec.ts.snap b/feature-libs/estimated-delivery-date/schematics/add-estimated-delivery-date/__snapshots__/index_spec.ts.snap index 693450c53b8..28f5bdbf7cf 100644 --- a/feature-libs/estimated-delivery-date/schematics/add-estimated-delivery-date/__snapshots__/index_spec.ts.snap +++ b/feature-libs/estimated-delivery-date/schematics/add-estimated-delivery-date/__snapshots__/index_spec.ts.snap @@ -95,7 +95,12 @@ exports[`Spartacus Estimated-Delivery-Date schematics: ng-add Estimated-Delivery "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } }, "configurations": { @@ -108,8 +113,8 @@ exports[`Spartacus Estimated-Delivery-Date schematics: ng-add Estimated-Delivery }, { "type": "anyComponentStyle", - "maximumWarning": "2kB", - "maximumError": "4kB" + "maximumWarning": "4kB", + "maximumError": "8kB" } ], "outputHashing": "all" @@ -161,7 +166,12 @@ exports[`Spartacus Estimated-Delivery-Date schematics: ng-add Estimated-Delivery "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } } } diff --git a/feature-libs/estimated-delivery-date/show-estimated-delivery-date/components/estimated-delivery-date.component.spec.ts b/feature-libs/estimated-delivery-date/show-estimated-delivery-date/components/estimated-delivery-date.component.spec.ts index 7a6204ed77a..3cb4b8e9ac8 100644 --- a/feature-libs/estimated-delivery-date/show-estimated-delivery-date/components/estimated-delivery-date.component.spec.ts +++ b/feature-libs/estimated-delivery-date/show-estimated-delivery-date/components/estimated-delivery-date.component.spec.ts @@ -40,6 +40,7 @@ class MockLanguageService { @Component({ selector: 'cx-estimated-delivery-date', template: '', + standalone: false, }) class MockConfigureEstimatedDeliveryDateComponent { @Input() cartEntry: Partial>; diff --git a/feature-libs/estimated-delivery-date/show-estimated-delivery-date/components/estimated-delivery-date.component.ts b/feature-libs/estimated-delivery-date/show-estimated-delivery-date/components/estimated-delivery-date.component.ts index 5fec08bc30d..7b5e8e901fb 100644 --- a/feature-libs/estimated-delivery-date/show-estimated-delivery-date/components/estimated-delivery-date.component.ts +++ b/feature-libs/estimated-delivery-date/show-estimated-delivery-date/components/estimated-delivery-date.component.ts @@ -23,6 +23,7 @@ import { map, switchMap } from 'rxjs/operators'; selector: 'cx-estimated-delivery-date', templateUrl: './estimated-delivery-date.component.html', providers: [CxDatePipe], + standalone: false, }) export class EstimatedDeliveryDateComponent { @Optional() protected cartItemContext = inject(CartItemContext); diff --git a/feature-libs/order/components/amend-order/amend-order-actions/amend-order-actions.component.spec.ts b/feature-libs/order/components/amend-order/amend-order-actions/amend-order-actions.component.spec.ts index 5ad52d5c864..839a904b199 100644 --- a/feature-libs/order/components/amend-order/amend-order-actions/amend-order-actions.component.spec.ts +++ b/feature-libs/order/components/amend-order/amend-order-actions/amend-order-actions.component.spec.ts @@ -11,6 +11,7 @@ import { AmendOrderActionsComponent } from './amend-order-actions.component'; @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform(): any {} diff --git a/feature-libs/order/components/amend-order/amend-order-actions/amend-order-actions.component.ts b/feature-libs/order/components/amend-order/amend-order-actions/amend-order-actions.component.ts index 59186220912..d82c1bda63a 100644 --- a/feature-libs/order/components/amend-order/amend-order-actions/amend-order-actions.component.ts +++ b/feature-libs/order/components/amend-order/amend-order-actions/amend-order-actions.component.ts @@ -17,6 +17,7 @@ import { UntypedFormGroup } from '@angular/forms'; selector: 'cx-amend-order-actions', templateUrl: './amend-order-actions.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class AmendOrderActionsComponent { @Input() orderCode: string; diff --git a/feature-libs/order/components/amend-order/amend-order-items/amend-order-items.component.spec.ts b/feature-libs/order/components/amend-order/amend-order-items/amend-order-items.component.spec.ts index 680d894c1c5..4693771f97a 100644 --- a/feature-libs/order/components/amend-order/amend-order-items/amend-order-items.component.spec.ts +++ b/feature-libs/order/components/amend-order/amend-order-items/amend-order-items.component.spec.ts @@ -35,6 +35,7 @@ mockEntries.forEach((entry) => { @Component({ template: '', selector: 'cx-media', + standalone: false, }) class MockMediaComponent { @Input() container; @@ -44,6 +45,7 @@ class MockMediaComponent { @Component({ template: '', selector: 'cx-item-counter', + standalone: false, }) class MockItemCounterComponent { @Input() min; diff --git a/feature-libs/order/components/amend-order/amend-order-items/amend-order-items.component.ts b/feature-libs/order/components/amend-order/amend-order-items/amend-order-items.component.ts index fe87531720a..94345f0d1f9 100644 --- a/feature-libs/order/components/amend-order/amend-order-items/amend-order-items.component.ts +++ b/feature-libs/order/components/amend-order/amend-order-items/amend-order-items.component.ts @@ -15,6 +15,7 @@ import { OrderAmendService } from '../amend-order.service'; selector: 'cx-amend-order-items', templateUrl: './amend-order-items.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class CancelOrReturnItemsComponent { @Input() entries: OrderEntry[]; diff --git a/feature-libs/order/components/amend-order/cancellations/cancel-order-confirmation/cancel-order-confirmation.component.spec.ts b/feature-libs/order/components/amend-order/cancellations/cancel-order-confirmation/cancel-order-confirmation.component.spec.ts index 046281a6729..9113c567d64 100644 --- a/feature-libs/order/components/amend-order/cancellations/cancel-order-confirmation/cancel-order-confirmation.component.spec.ts +++ b/feature-libs/order/components/amend-order/cancellations/cancel-order-confirmation/cancel-order-confirmation.component.spec.ts @@ -18,6 +18,7 @@ import createSpy = jasmine.createSpy; @Component({ template: '', selector: 'cx-amend-order-actions', + standalone: false, }) class MockAmendOrderActionComponent { @Input() orderCode: string; @@ -29,6 +30,7 @@ class MockAmendOrderActionComponent { @Component({ template: '', selector: 'cx-amend-order-items', + standalone: false, }) class MockCancelOrReturnItemsComponent { @Input() entries: OrderEntry[]; diff --git a/feature-libs/order/components/amend-order/cancellations/cancel-order-confirmation/cancel-order-confirmation.component.ts b/feature-libs/order/components/amend-order/cancellations/cancel-order-confirmation/cancel-order-confirmation.component.ts index 7f61debe17b..c428bc5cf57 100644 --- a/feature-libs/order/components/amend-order/cancellations/cancel-order-confirmation/cancel-order-confirmation.component.ts +++ b/feature-libs/order/components/amend-order/cancellations/cancel-order-confirmation/cancel-order-confirmation.component.ts @@ -15,6 +15,7 @@ import { OrderAmendService } from '../../amend-order.service'; selector: 'cx-cancel-order-confirmation', templateUrl: './cancel-order-confirmation.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class CancelOrderConfirmationComponent { orderCode: string; diff --git a/feature-libs/order/components/amend-order/cancellations/cancel-order/cancel-order.component.spec.ts b/feature-libs/order/components/amend-order/cancellations/cancel-order/cancel-order.component.spec.ts index fba3b130e87..63cc8b1cba6 100644 --- a/feature-libs/order/components/amend-order/cancellations/cancel-order/cancel-order.component.spec.ts +++ b/feature-libs/order/components/amend-order/cancellations/cancel-order/cancel-order.component.spec.ts @@ -23,6 +23,7 @@ class MockOrderAmendService { @Component({ template: '', selector: 'cx-amend-order-items', + standalone: false, }) class MockCancelOrReturnItemsComponent { @Input() entries: OrderEntry[]; @@ -31,6 +32,7 @@ class MockCancelOrReturnItemsComponent { @Component({ template: '', selector: 'cx-amend-order-actions', + standalone: false, }) class MockAmendOrderActionComponent { @Input() orderCode: string; diff --git a/feature-libs/order/components/amend-order/cancellations/cancel-order/cancel-order.component.ts b/feature-libs/order/components/amend-order/cancellations/cancel-order/cancel-order.component.ts index ba9bdd00948..7b937527b0e 100644 --- a/feature-libs/order/components/amend-order/cancellations/cancel-order/cancel-order.component.ts +++ b/feature-libs/order/components/amend-order/cancellations/cancel-order/cancel-order.component.ts @@ -16,6 +16,7 @@ import { OrderAmendService } from '../../amend-order.service'; selector: 'cx-cancel-order', templateUrl: './cancel-order.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class CancelOrderComponent { orderCode: string; diff --git a/feature-libs/order/components/amend-order/returns/return-order-confirmation/return-order-confirmation.component.spec.ts b/feature-libs/order/components/amend-order/returns/return-order-confirmation/return-order-confirmation.component.spec.ts index dc01d170f71..eb838d598c4 100644 --- a/feature-libs/order/components/amend-order/returns/return-order-confirmation/return-order-confirmation.component.spec.ts +++ b/feature-libs/order/components/amend-order/returns/return-order-confirmation/return-order-confirmation.component.spec.ts @@ -17,6 +17,7 @@ import createSpy = jasmine.createSpy; @Component({ template: '', selector: 'cx-amend-order-actions', + standalone: false, }) class MockAmendOrderActionComponent { @Input() orderCode: string; @@ -28,6 +29,7 @@ class MockAmendOrderActionComponent { @Component({ template: '', selector: 'cx-amend-order-items', + standalone: false, }) class MockCancelOrReturnItemsComponent { @Input() entries: OrderEntry[]; diff --git a/feature-libs/order/components/amend-order/returns/return-order-confirmation/return-order-confirmation.component.ts b/feature-libs/order/components/amend-order/returns/return-order-confirmation/return-order-confirmation.component.ts index b1dd042cdf9..7b300ad46c2 100644 --- a/feature-libs/order/components/amend-order/returns/return-order-confirmation/return-order-confirmation.component.ts +++ b/feature-libs/order/components/amend-order/returns/return-order-confirmation/return-order-confirmation.component.ts @@ -15,6 +15,7 @@ import { OrderAmendService } from '../../amend-order.service'; selector: 'cx-return-order-confirmation', templateUrl: './return-order-confirmation.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ReturnOrderConfirmationComponent { orderCode: string; diff --git a/feature-libs/order/components/amend-order/returns/return-order/return-order.component.spec.ts b/feature-libs/order/components/amend-order/returns/return-order/return-order.component.spec.ts index daf8f0958f6..253c2656011 100644 --- a/feature-libs/order/components/amend-order/returns/return-order/return-order.component.spec.ts +++ b/feature-libs/order/components/amend-order/returns/return-order/return-order.component.spec.ts @@ -23,6 +23,7 @@ class MockOrderAmendService { @Component({ template: '', selector: 'cx-amend-order-items', + standalone: false, }) class MockCancelOrReturnItemsComponent { @Input() entries: OrderEntry[]; @@ -31,6 +32,7 @@ class MockCancelOrReturnItemsComponent { @Component({ template: '', selector: 'cx-amend-order-actions', + standalone: false, }) class MockAmendOrderActionComponent { @Input() orderCode: string; diff --git a/feature-libs/order/components/amend-order/returns/return-order/return-order.component.ts b/feature-libs/order/components/amend-order/returns/return-order/return-order.component.ts index 9fd8e3ad53a..c27f78c24ca 100644 --- a/feature-libs/order/components/amend-order/returns/return-order/return-order.component.ts +++ b/feature-libs/order/components/amend-order/returns/return-order/return-order.component.ts @@ -15,6 +15,7 @@ import { OrderAmendService } from '../../amend-order.service'; selector: 'cx-return-order', templateUrl: './return-order.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ReturnOrderComponent { orderCode: string; diff --git a/feature-libs/order/components/my-account-v2/my-account-v2-orders.component.spec.ts b/feature-libs/order/components/my-account-v2/my-account-v2-orders.component.spec.ts index 9aaab2ab1f7..c4439829503 100644 --- a/feature-libs/order/components/my-account-v2/my-account-v2-orders.component.spec.ts +++ b/feature-libs/order/components/my-account-v2/my-account-v2-orders.component.spec.ts @@ -42,6 +42,7 @@ const mockEmptyOrderList: OrderHistoryListView = { @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform() {} @@ -75,6 +76,7 @@ class MockTranslationService { @Component({ template: '', selector: 'cx-media', + standalone: false, }) class MockMediaComponent { @Input() container: any; @@ -85,6 +87,7 @@ class MockMediaComponent { @Component({ selector: 'cx-spinner', template: '', + standalone: false, }) class MockSpinnerComponent {} diff --git a/feature-libs/order/components/my-account-v2/my-account-v2-orders.component.ts b/feature-libs/order/components/my-account-v2/my-account-v2-orders.component.ts index 5929e12a9a3..b08dccda418 100644 --- a/feature-libs/order/components/my-account-v2/my-account-v2-orders.component.ts +++ b/feature-libs/order/components/my-account-v2/my-account-v2-orders.component.ts @@ -14,6 +14,7 @@ import { tap } from 'rxjs/operators'; @Component({ selector: 'cx-my-account-v2-orders', templateUrl: './my-account-v2-orders.component.html', + standalone: false, }) export class MyAccountV2OrdersComponent implements OnDestroy { protected service = inject(MyAccountV2OrderHistoryService); diff --git a/feature-libs/order/components/order-confirmation/order-confirmation-items/order-confirmation-items.component.ts b/feature-libs/order/components/order-confirmation/order-confirmation-items/order-confirmation-items.component.ts index 1935541e88b..5c6e62a4c49 100644 --- a/feature-libs/order/components/order-confirmation/order-confirmation-items/order-confirmation-items.component.ts +++ b/feature-libs/order/components/order-confirmation/order-confirmation-items/order-confirmation-items.component.ts @@ -17,6 +17,7 @@ import { Observable } from 'rxjs'; selector: 'cx-order-confirmation-items', templateUrl: './order-confirmation-items.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class OrderConfirmationItemsComponent implements OnDestroy { readonly cartOutlets = CartOutlets; diff --git a/feature-libs/order/components/order-confirmation/order-confirmation-shipping/order-confirmation-shipping.component.spec.ts b/feature-libs/order/components/order-confirmation/order-confirmation-shipping/order-confirmation-shipping.component.spec.ts index 65469eafcca..0a30ba34e9a 100644 --- a/feature-libs/order/components/order-confirmation/order-confirmation-shipping/order-confirmation-shipping.component.spec.ts +++ b/feature-libs/order/components/order-confirmation/order-confirmation-shipping/order-confirmation-shipping.component.spec.ts @@ -47,6 +47,7 @@ class MockOrderFacade implements Partial { @Component({ selector: 'cx-card', template: '', + standalone: false, }) class MockCardComponent { @Input() diff --git a/feature-libs/order/components/order-confirmation/order-confirmation-shipping/order-confirmation-shipping.component.ts b/feature-libs/order/components/order-confirmation/order-confirmation-shipping/order-confirmation-shipping.component.ts index dca544e630a..24e6e21e3b1 100644 --- a/feature-libs/order/components/order-confirmation/order-confirmation-shipping/order-confirmation-shipping.component.ts +++ b/feature-libs/order/components/order-confirmation/order-confirmation-shipping/order-confirmation-shipping.component.ts @@ -34,6 +34,7 @@ import { map, tap } from 'rxjs/operators'; selector: 'cx-order-confirmation-shipping', templateUrl: './order-confirmation-shipping.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class OrderConfirmationShippingComponent implements OnInit, OnDestroy { @Input() showItemList: boolean = true; diff --git a/feature-libs/order/components/order-confirmation/order-confirmation-thank-you-message/order-confirmation-thank-you-message.component.spec.ts b/feature-libs/order/components/order-confirmation/order-confirmation-thank-you-message/order-confirmation-thank-you-message.component.spec.ts index 4008f63f948..d8f65206526 100644 --- a/feature-libs/order/components/order-confirmation/order-confirmation-thank-you-message/order-confirmation-thank-you-message.component.spec.ts +++ b/feature-libs/order/components/order-confirmation/order-confirmation-thank-you-message/order-confirmation-thank-you-message.component.spec.ts @@ -21,10 +21,18 @@ const mockOrder = { paymentInfo: { billingAddress: { email: 'test@test.com' } }, }; -@Component({ selector: 'cx-add-to-home-screen-banner', template: '' }) +@Component({ + selector: 'cx-add-to-home-screen-banner', + template: '', + standalone: false, +}) class MockAddtoHomeScreenBannerComponent {} -@Component({ selector: 'cx-guest-register-form', template: '' }) +@Component({ + selector: 'cx-guest-register-form', + template: '', + standalone: false, +}) class MockGuestRegisterFormComponent { @Input() guid: string; @Input() email: string; diff --git a/feature-libs/order/components/order-confirmation/order-confirmation-thank-you-message/order-confirmation-thank-you-message.component.ts b/feature-libs/order/components/order-confirmation/order-confirmation-thank-you-message/order-confirmation-thank-you-message.component.ts index 2de27dde125..bb98fb5aff2 100644 --- a/feature-libs/order/components/order-confirmation/order-confirmation-thank-you-message/order-confirmation-thank-you-message.component.ts +++ b/feature-libs/order/components/order-confirmation/order-confirmation-thank-you-message/order-confirmation-thank-you-message.component.ts @@ -24,6 +24,7 @@ import { filter, take, tap, withLatestFrom } from 'rxjs/operators'; selector: 'cx-order-confirmation-thank-you-message', templateUrl: './order-confirmation-thank-you-message.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class OrderConfirmationThankYouMessageComponent implements OnInit, AfterViewInit, OnDestroy diff --git a/feature-libs/order/components/order-confirmation/order-confirmation-totals/order-confirmation-totals.component.ts b/feature-libs/order/components/order-confirmation/order-confirmation-totals/order-confirmation-totals.component.ts index 2118c1c14ea..1eb92772546 100644 --- a/feature-libs/order/components/order-confirmation/order-confirmation-totals/order-confirmation-totals.component.ts +++ b/feature-libs/order/components/order-confirmation/order-confirmation-totals/order-confirmation-totals.component.ts @@ -13,6 +13,7 @@ import { Observable } from 'rxjs'; selector: 'cx-order-confirmation-totals', templateUrl: './order-confirmation-totals.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class OrderConfirmationTotalsComponent implements OnDestroy { readonly cartOutlets = CartOutlets; diff --git a/feature-libs/order/components/order-confirmation/order-guest-register-form/order-guest-register-form.component.ts b/feature-libs/order/components/order-confirmation/order-guest-register-form/order-guest-register-form.component.ts index 9b88f12f628..95a91e29ec6 100644 --- a/feature-libs/order/components/order-confirmation/order-guest-register-form/order-guest-register-form.component.ts +++ b/feature-libs/order/components/order-confirmation/order-guest-register-form/order-guest-register-form.component.ts @@ -23,6 +23,7 @@ import { Subscription } from 'rxjs'; @Component({ selector: 'cx-guest-register-form', templateUrl: './order-guest-register-form.component.html', + standalone: false, }) export class OrderGuestRegisterFormComponent implements OnDestroy { // TODO: (CXSPA-7315) Remove feature toggle in the next major diff --git a/feature-libs/order/components/order-details/my-account-v2/consignment-tracking/my-account-v2-consignment-tracking.component.ts b/feature-libs/order/components/order-details/my-account-v2/consignment-tracking/my-account-v2-consignment-tracking.component.ts index 86d41792d99..b2d7f151a46 100644 --- a/feature-libs/order/components/order-details/my-account-v2/consignment-tracking/my-account-v2-consignment-tracking.component.ts +++ b/feature-libs/order/components/order-details/my-account-v2/consignment-tracking/my-account-v2-consignment-tracking.component.ts @@ -12,6 +12,7 @@ type ConsignmentOutletContextData = { item: Consignment; order?: Order }; @Component({ selector: 'cx-my-account-v2-consignment-tracking', templateUrl: './my-account-v2-consignment-tracking.component.html', + standalone: false, }) export class MyAccountV2ConsignmentTrackingComponent extends ConsignmentTrackingComponent diff --git a/feature-libs/order/components/order-details/my-account-v2/download-invoices/my-account-v2-download-invoices.component.spec.ts b/feature-libs/order/components/order-details/my-account-v2/download-invoices/my-account-v2-download-invoices.component.spec.ts index 84e0a28bd26..f3b071adf82 100644 --- a/feature-libs/order/components/order-details/my-account-v2/download-invoices/my-account-v2-download-invoices.component.spec.ts +++ b/feature-libs/order/components/order-details/my-account-v2/download-invoices/my-account-v2-download-invoices.component.spec.ts @@ -77,6 +77,7 @@ class MockGlobalMessageService implements Partial { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; @@ -85,6 +86,7 @@ class MockCxIconComponent { @Component({ selector: 'cx-spinner', template: '', + standalone: false, }) class MockSpinnerComponent {} diff --git a/feature-libs/order/components/order-details/my-account-v2/download-invoices/my-account-v2-download-invoices.component.ts b/feature-libs/order/components/order-details/my-account-v2/download-invoices/my-account-v2-download-invoices.component.ts index 096d1d67b99..cd34be7a133 100644 --- a/feature-libs/order/components/order-details/my-account-v2/download-invoices/my-account-v2-download-invoices.component.ts +++ b/feature-libs/order/components/order-details/my-account-v2/download-invoices/my-account-v2-download-invoices.component.ts @@ -24,6 +24,7 @@ import { selector: 'cx-my-account-v2-download-invoices', templateUrl: './my-account-v2-download-invoices.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class MyAccountV2DownloadInvoicesComponent implements AfterViewChecked { @ViewChild(InvoicesListComponent, { static: false }) diff --git a/feature-libs/order/components/order-details/my-account-v2/order-details-actions/my-account-v2-order-details-actions.component.spec.ts b/feature-libs/order/components/order-details/my-account-v2/order-details-actions/my-account-v2-order-details-actions.component.spec.ts index 430b412a5a8..5a35fad1b01 100644 --- a/feature-libs/order/components/order-details/my-account-v2/order-details-actions/my-account-v2-order-details-actions.component.spec.ts +++ b/feature-libs/order/components/order-details/my-account-v2/order-details-actions/my-account-v2-order-details-actions.component.spec.ts @@ -22,6 +22,7 @@ const mockOrder2 = { @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform() {} @@ -41,6 +42,7 @@ class MockOrderDetailsService { @Component({ template: '', selector: 'cx-order-details-actions', + standalone: false, }) class MockOrderDetailActionsComponent {} diff --git a/feature-libs/order/components/order-details/my-account-v2/order-details-actions/my-account-v2-order-details-actions.component.ts b/feature-libs/order/components/order-details/my-account-v2/order-details-actions/my-account-v2-order-details-actions.component.ts index a93db9bfa5e..db8093f5c88 100644 --- a/feature-libs/order/components/order-details/my-account-v2/order-details-actions/my-account-v2-order-details-actions.component.ts +++ b/feature-libs/order/components/order-details/my-account-v2/order-details-actions/my-account-v2-order-details-actions.component.ts @@ -12,6 +12,7 @@ import { OrderDetailActionsComponent } from '../../order-detail-actions/order-de @Component({ selector: 'cx-my-account-v2-order-details-actions', templateUrl: './my-account-v2-order-details-actions.component.html', + standalone: false, }) export class MyAccountV2OrderDetailsActionsComponent extends OrderDetailActionsComponent diff --git a/feature-libs/order/components/order-details/order-detail-actions/order-detail-actions.component.spec.ts b/feature-libs/order/components/order-details/order-detail-actions/order-detail-actions.component.spec.ts index a58e4eb1d9c..13b061d8d73 100644 --- a/feature-libs/order/components/order-details/order-detail-actions/order-detail-actions.component.spec.ts +++ b/feature-libs/order/components/order-details/order-detail-actions/order-detail-actions.component.spec.ts @@ -16,6 +16,7 @@ const mockOrder: Order = { @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform() {} diff --git a/feature-libs/order/components/order-details/order-detail-actions/order-detail-actions.component.ts b/feature-libs/order/components/order-details/order-detail-actions/order-detail-actions.component.ts index 12ff53f9734..53e80a86b20 100644 --- a/feature-libs/order/components/order-details/order-detail-actions/order-detail-actions.component.ts +++ b/feature-libs/order/components/order-details/order-detail-actions/order-detail-actions.component.ts @@ -11,6 +11,7 @@ import { OrderDetailsService } from '../order-details.service'; @Component({ selector: 'cx-order-details-actions', templateUrl: './order-detail-actions.component.html', + standalone: false, }) export class OrderDetailActionsComponent { constructor(protected orderDetailsService: OrderDetailsService) {} diff --git a/feature-libs/order/components/order-details/order-detail-billing/order-detail-billing.component.ts b/feature-libs/order/components/order-details/order-detail-billing/order-detail-billing.component.ts index b937ef5baca..68cb70750b1 100644 --- a/feature-libs/order/components/order-details/order-detail-billing/order-detail-billing.component.ts +++ b/feature-libs/order/components/order-details/order-detail-billing/order-detail-billing.component.ts @@ -20,6 +20,7 @@ import { OrderDetailsService } from '../order-details.service'; selector: 'cx-order-detail-billing', templateUrl: './order-detail-billing.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class OrderDetailBillingComponent { order$: Observable = diff --git a/feature-libs/order/components/order-details/order-detail-items/consignment-tracking/consignment-tracking.component.spec.ts b/feature-libs/order/components/order-details/order-detail-items/consignment-tracking/consignment-tracking.component.spec.ts index f7d9b348ffe..f623fdf51f7 100644 --- a/feature-libs/order/components/order-details/order-detail-items/consignment-tracking/consignment-tracking.component.spec.ts +++ b/feature-libs/order/components/order-details/order-detail-items/consignment-tracking/consignment-tracking.component.spec.ts @@ -33,6 +33,7 @@ const mockConsignment: Consignment = { @Pipe({ name: 'cxTranslateUrl', + standalone: false, }) class MockTranslateUrlPipe implements PipeTransform { transform(): any {} diff --git a/feature-libs/order/components/order-details/order-detail-items/consignment-tracking/consignment-tracking.component.ts b/feature-libs/order/components/order-details/order-detail-items/consignment-tracking/consignment-tracking.component.ts index 51f80649ddb..9ca72af6869 100644 --- a/feature-libs/order/components/order-details/order-detail-items/consignment-tracking/consignment-tracking.component.ts +++ b/feature-libs/order/components/order-details/order-detail-items/consignment-tracking/consignment-tracking.component.ts @@ -27,6 +27,7 @@ import { take } from 'rxjs/operators'; selector: 'cx-consignment-tracking', templateUrl: './consignment-tracking.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ConsignmentTrackingComponent implements OnInit, OnDestroy { consignmentStatus: string[] = [ diff --git a/feature-libs/order/components/order-details/order-detail-items/consignment-tracking/tracking-events/tracking-events.component.spec.ts b/feature-libs/order/components/order-details/order-detail-items/consignment-tracking/tracking-events/tracking-events.component.spec.ts index de9b97bd9c9..292bf51632b 100644 --- a/feature-libs/order/components/order-details/order-detail-items/consignment-tracking/tracking-events/tracking-events.component.spec.ts +++ b/feature-libs/order/components/order-details/order-detail-items/consignment-tracking/tracking-events/tracking-events.component.spec.ts @@ -16,6 +16,7 @@ const shipDate = new Date('2019-02-11T13:05:12+0000'); @Pipe({ name: 'cxTranslateUrl', + standalone: false, }) class MockTranslateUrlPipe implements PipeTransform { transform(): any {} diff --git a/feature-libs/order/components/order-details/order-detail-items/consignment-tracking/tracking-events/tracking-events.component.ts b/feature-libs/order/components/order-details/order-detail-items/consignment-tracking/tracking-events/tracking-events.component.ts index cebc825d59d..e989e097ff4 100644 --- a/feature-libs/order/components/order-details/order-detail-items/consignment-tracking/tracking-events/tracking-events.component.ts +++ b/feature-libs/order/components/order-details/order-detail-items/consignment-tracking/tracking-events/tracking-events.component.ts @@ -20,6 +20,7 @@ import { Observable, Subscription } from 'rxjs'; selector: 'cx-tracking-events', templateUrl: './tracking-events.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class TrackingEventsComponent implements OnDestroy, OnInit { private subscription = new Subscription(); diff --git a/feature-libs/order/components/order-details/order-detail-items/order-consigned-entries/order-consigned-entries.component.spec.ts b/feature-libs/order/components/order-details/order-detail-items/order-consigned-entries/order-consigned-entries.component.spec.ts index 139f8e84668..8310a614849 100644 --- a/feature-libs/order/components/order-details/order-detail-items/order-consigned-entries/order-consigned-entries.component.spec.ts +++ b/feature-libs/order/components/order-details/order-detail-items/order-consigned-entries/order-consigned-entries.component.spec.ts @@ -69,6 +69,7 @@ const mockOrder: Order = { @Component({ selector: 'cx-consignment-tracking', template: '', + standalone: false, }) class MockConsignmentTrackingComponent { @Input() consignment: Consignment; diff --git a/feature-libs/order/components/order-details/order-detail-items/order-consigned-entries/order-consigned-entries.component.ts b/feature-libs/order/components/order-details/order-detail-items/order-consigned-entries/order-consigned-entries.component.ts index 704b93b86eb..9706d584f5e 100644 --- a/feature-libs/order/components/order-details/order-detail-items/order-consigned-entries/order-consigned-entries.component.ts +++ b/feature-libs/order/components/order-details/order-detail-items/order-consigned-entries/order-consigned-entries.component.ts @@ -15,6 +15,7 @@ import { Consignment, Order, OrderOutlets } from '@spartacus/order/root'; @Component({ selector: 'cx-order-consigned-entries', templateUrl: './order-consigned-entries.component.html', + standalone: false, }) export class OrderConsignedEntriesComponent { @Input() consignments: Consignment[]; diff --git a/feature-libs/order/components/order-details/order-detail-items/order-detail-items.component.spec.ts b/feature-libs/order/components/order-details/order-detail-items/order-detail-items.component.spec.ts index 3ad912d9f20..17e0102282c 100644 --- a/feature-libs/order/components/order-details/order-detail-items/order-detail-items.component.spec.ts +++ b/feature-libs/order/components/order-details/order-detail-items/order-detail-items.component.spec.ts @@ -134,6 +134,7 @@ const MockCmsComponentData = >{ @Component({ selector: 'cx-consignment-tracking', template: '', + standalone: false, }) class MockConsignmentTrackingComponent { @Input() diff --git a/feature-libs/order/components/order-details/order-detail-items/order-detail-items.component.ts b/feature-libs/order/components/order-details/order-detail-items/order-detail-items.component.ts index 4053fa9419f..d84145d94b5 100644 --- a/feature-libs/order/components/order-details/order-detail-items/order-detail-items.component.ts +++ b/feature-libs/order/components/order-details/order-detail-items/order-detail-items.component.ts @@ -22,6 +22,7 @@ import { OrderDetailsService } from '../order-details.service'; @Component({ selector: 'cx-order-details-items', templateUrl: './order-detail-items.component.html', + standalone: false, }) export class OrderDetailItemsComponent { protected orderConsignmentsService = inject( diff --git a/feature-libs/order/components/order-details/order-detail-reorder/order-detail-reorder.component.ts b/feature-libs/order/components/order-details/order-detail-reorder/order-detail-reorder.component.ts index 2ade11d40c5..164488ac114 100644 --- a/feature-libs/order/components/order-details/order-detail-reorder/order-detail-reorder.component.ts +++ b/feature-libs/order/components/order-details/order-detail-reorder/order-detail-reorder.component.ts @@ -22,6 +22,7 @@ import { OrderDetailsService } from '../order-details.service'; selector: 'cx-order-details-reorder', templateUrl: './order-detail-reorder.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class OrderDetailReorderComponent implements OnInit, OnDestroy { constructor( diff --git a/feature-libs/order/components/order-details/order-detail-reorder/reorder-dialog/reorder-dialog.component.spec.ts b/feature-libs/order/components/order-details/order-detail-reorder/reorder-dialog/reorder-dialog.component.spec.ts index b5fb9d84c4f..2f148523414 100644 --- a/feature-libs/order/components/order-details/order-detail-reorder/reorder-dialog/reorder-dialog.component.spec.ts +++ b/feature-libs/order/components/order-details/order-detail-reorder/reorder-dialog/reorder-dialog.component.spec.ts @@ -88,6 +88,7 @@ class MockLaunchDialogService implements Partial { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; @@ -96,11 +97,13 @@ class MockCxIconComponent { @Component({ selector: 'cx-spinner', template: '', + standalone: false, }) class MockSpinnerComponent {} @Directive({ selector: '[cxFocus]', + standalone: false, }) export class MockFocusDirective { @Input('cxFocus') protected config: any; diff --git a/feature-libs/order/components/order-details/order-detail-reorder/reorder-dialog/reorder-dialog.component.ts b/feature-libs/order/components/order-details/order-detail-reorder/reorder-dialog/reorder-dialog.component.ts index ea1a4f41c17..8c57e7b44e8 100644 --- a/feature-libs/order/components/order-details/order-detail-reorder/reorder-dialog/reorder-dialog.component.ts +++ b/feature-libs/order/components/order-details/order-detail-reorder/reorder-dialog/reorder-dialog.component.ts @@ -35,6 +35,7 @@ import { BehaviorSubject } from 'rxjs'; selector: 'cx-reorder-dialog', templateUrl: './reorder-dialog.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ReorderDialogComponent { iconTypes = ICON_TYPE; diff --git a/feature-libs/order/components/order-details/order-detail-totals/order-detail-totals.component.ts b/feature-libs/order/components/order-details/order-detail-totals/order-detail-totals.component.ts index b74f6ab07ee..5defa0d941b 100644 --- a/feature-libs/order/components/order-details/order-detail-totals/order-detail-totals.component.ts +++ b/feature-libs/order/components/order-details/order-detail-totals/order-detail-totals.component.ts @@ -12,6 +12,7 @@ import { OrderDetailsService } from '../order-details.service'; @Component({ selector: 'cx-order-details-totals', templateUrl: './order-detail-totals.component.html', + standalone: false, }) export class OrderDetailTotalsComponent implements OnInit { constructor(protected orderDetailsService: OrderDetailsService) {} diff --git a/feature-libs/order/components/order-details/order-overview/order-overview.component.spec.ts b/feature-libs/order/components/order-details/order-overview/order-overview.component.spec.ts index ca7fbc25ce9..25c5e13d7fb 100644 --- a/feature-libs/order/components/order-details/order-overview/order-overview.component.spec.ts +++ b/feature-libs/order/components/order-details/order-overview/order-overview.component.spec.ts @@ -15,7 +15,11 @@ import { OrderDetailsService } from '../order-details.service'; import { OrderOverviewComponent } from './order-overview.component'; import { OrderOverviewComponentService } from './order-overview-component.service'; -@Component({ selector: 'cx-card', template: '' }) +@Component({ + selector: 'cx-card', + template: '', + standalone: false, +}) class MockCardComponent { @Input() content: Card; diff --git a/feature-libs/order/components/order-details/order-overview/order-overview.component.ts b/feature-libs/order/components/order-details/order-overview/order-overview.component.ts index a4f5a616986..026d0ddec5e 100644 --- a/feature-libs/order/components/order-details/order-overview/order-overview.component.ts +++ b/feature-libs/order/components/order-details/order-overview/order-overview.component.ts @@ -24,6 +24,7 @@ import { OrderOverviewComponentService } from './order-overview-component.servic selector: 'cx-order-overview', templateUrl: './order-overview.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class OrderOverviewComponent { protected orderOverviewComponentService = inject( diff --git a/feature-libs/order/components/order-history/my-account-v2/consignment-entries/my-account-v2-consignment-entries.component.spec.ts b/feature-libs/order/components/order-history/my-account-v2/consignment-entries/my-account-v2-consignment-entries.component.spec.ts index 1c18ce9b129..7743ffbaac0 100644 --- a/feature-libs/order/components/order-history/my-account-v2/consignment-entries/my-account-v2-consignment-entries.component.spec.ts +++ b/feature-libs/order/components/order-history/my-account-v2/consignment-entries/my-account-v2-consignment-entries.component.spec.ts @@ -45,6 +45,7 @@ const mockConsignments: ConsignmentView[] = [ ]; @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform() {} diff --git a/feature-libs/order/components/order-history/my-account-v2/consignment-entries/my-account-v2-consignment-entries.component.ts b/feature-libs/order/components/order-history/my-account-v2/consignment-entries/my-account-v2-consignment-entries.component.ts index 712ae517fb8..80b601e1ad9 100644 --- a/feature-libs/order/components/order-history/my-account-v2/consignment-entries/my-account-v2-consignment-entries.component.ts +++ b/feature-libs/order/components/order-history/my-account-v2/consignment-entries/my-account-v2-consignment-entries.component.ts @@ -11,6 +11,7 @@ import { ConsignmentView } from '@spartacus/order/root'; selector: 'cx-my-account-v2-consignment-entries', templateUrl: './my-account-v2-consignment-entries.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class MyAccountV2ConsignmentEntriesComponent { @Input() diff --git a/feature-libs/order/components/order-history/my-account-v2/consolidated-information/my-account-v2-order-consolidated-information.component.spec.ts b/feature-libs/order/components/order-history/my-account-v2/consolidated-information/my-account-v2-order-consolidated-information.component.spec.ts index 5305afb289c..0cc1d614719 100644 --- a/feature-libs/order/components/order-history/my-account-v2/consolidated-information/my-account-v2-order-consolidated-information.component.spec.ts +++ b/feature-libs/order/components/order-history/my-account-v2/consolidated-information/my-account-v2-order-consolidated-information.component.spec.ts @@ -36,6 +36,7 @@ const mock_images: Images[] = [ @Component({ template: '', selector: 'cx-media', + standalone: false, }) class MockMediaComponent { @Input() container: MediaContainer; @@ -43,6 +44,7 @@ class MockMediaComponent { @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform() {} diff --git a/feature-libs/order/components/order-history/my-account-v2/consolidated-information/my-account-v2-order-consolidated-information.component.ts b/feature-libs/order/components/order-history/my-account-v2/consolidated-information/my-account-v2-order-consolidated-information.component.ts index e45498cf0af..3236626394e 100644 --- a/feature-libs/order/components/order-history/my-account-v2/consolidated-information/my-account-v2-order-consolidated-information.component.ts +++ b/feature-libs/order/components/order-history/my-account-v2/consolidated-information/my-account-v2-order-consolidated-information.component.ts @@ -24,6 +24,7 @@ import { OrderCriticalStatus } from '../my-account-v2-order-history.model'; selector: 'cx-my-account-v2-order-consolidated-information', templateUrl: './my-account-v2-order-consolidated-information.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class MyAccountV2OrderConsolidatedInformationComponent { protected orderConsignmentsService = inject( diff --git a/feature-libs/order/components/order-history/my-account-v2/my-account-v2-order-history.component.spec.ts b/feature-libs/order/components/order-history/my-account-v2/my-account-v2-order-history.component.spec.ts index 9582df3f1d2..5f860e7af8d 100644 --- a/feature-libs/order/components/order-history/my-account-v2/my-account-v2-order-history.component.spec.ts +++ b/feature-libs/order/components/order-history/my-account-v2/my-account-v2-order-history.component.spec.ts @@ -50,6 +50,7 @@ const mockEmptyOrderList: OrderHistoryList = { @Component({ template: '', selector: 'cx-pagination', + standalone: false, }) class MockPaginationComponent { @Input() pagination: any; @@ -58,6 +59,7 @@ class MockPaginationComponent { @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform() {} @@ -112,6 +114,7 @@ class MockReplenishmentOrderHistoryFacade @Component({ selector: 'cx-my-account-v2-order-consolidated-information', template: '', + standalone: false, }) export class MockMyAccountV2OrderConsolidatedInformationComponent { @Input() order?: OrderHistoryView; @@ -120,6 +123,7 @@ export class MockMyAccountV2OrderConsolidatedInformationComponent { @Component({ selector: 'cx-spinner', template: '', + standalone: false, }) class MockSpinnerComponent {} diff --git a/feature-libs/order/components/order-history/my-account-v2/my-account-v2-order-history.component.ts b/feature-libs/order/components/order-history/my-account-v2/my-account-v2-order-history.component.ts index 1dfa1e07e18..9923e17793e 100644 --- a/feature-libs/order/components/order-history/my-account-v2/my-account-v2-order-history.component.ts +++ b/feature-libs/order/components/order-history/my-account-v2/my-account-v2-order-history.component.ts @@ -14,6 +14,7 @@ import { OrderHistoryComponent } from '../order-history.component'; @Component({ selector: 'cx-my-account-v2-order-history', templateUrl: './my-account-v2-order-history.component.html', + standalone: false, }) export class MyAccountV2OrderHistoryComponent extends OrderHistoryComponent { protected service = inject(MyAccountV2OrderHistoryService); diff --git a/feature-libs/order/components/order-history/order-history.component.spec.ts b/feature-libs/order/components/order-history/order-history.component.spec.ts index c6511063823..b2b4eef7012 100644 --- a/feature-libs/order/components/order-history/order-history.component.spec.ts +++ b/feature-libs/order/components/order-history/order-history.component.spec.ts @@ -89,6 +89,7 @@ const mockReplenishmentOrder$ = new BehaviorSubject( @Component({ template: '', selector: 'cx-pagination', + standalone: false, }) class MockPaginationComponent { @Input() pagination; @@ -97,6 +98,7 @@ class MockPaginationComponent { @Component({ template: '', selector: 'cx-sorting', + standalone: false, }) class MockSortingComponent { @Input() sortOptions; @@ -108,6 +110,7 @@ class MockSortingComponent { @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform() {} diff --git a/feature-libs/order/components/order-history/order-history.component.ts b/feature-libs/order/components/order-history/order-history.component.ts index 8baf1f4cfe7..5c14ac27de7 100644 --- a/feature-libs/order/components/order-history/order-history.component.ts +++ b/feature-libs/order/components/order-history/order-history.component.ts @@ -25,6 +25,7 @@ import { filter, map, take, tap } from 'rxjs/operators'; selector: 'cx-order-history', templateUrl: './order-history.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class OrderHistoryComponent implements OnDestroy { constructor( diff --git a/feature-libs/order/components/replenishment-order-cancellation-dialog/replenishment-order-cancellation-dialog.component.spec.ts b/feature-libs/order/components/replenishment-order-cancellation-dialog/replenishment-order-cancellation-dialog.component.spec.ts index 5ae344e48da..35aa082f8ec 100644 --- a/feature-libs/order/components/replenishment-order-cancellation-dialog/replenishment-order-cancellation-dialog.component.spec.ts +++ b/feature-libs/order/components/replenishment-order-cancellation-dialog/replenishment-order-cancellation-dialog.component.spec.ts @@ -27,6 +27,7 @@ const mockReplenishmentOrder: ReplenishmentOrder = { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; diff --git a/feature-libs/order/components/replenishment-order-cancellation-dialog/replenishment-order-cancellation-dialog.component.ts b/feature-libs/order/components/replenishment-order-cancellation-dialog/replenishment-order-cancellation-dialog.component.ts index 7c296966f8d..6b386782a38 100644 --- a/feature-libs/order/components/replenishment-order-cancellation-dialog/replenishment-order-cancellation-dialog.component.ts +++ b/feature-libs/order/components/replenishment-order-cancellation-dialog/replenishment-order-cancellation-dialog.component.ts @@ -26,6 +26,7 @@ import { startWith } from 'rxjs/operators'; selector: 'cx-replenishment-order-cancellation-dialog', templateUrl: './replenishment-order-cancellation-dialog.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ReplenishmentOrderCancellationDialogComponent implements OnInit, OnDestroy diff --git a/feature-libs/order/components/replenishment-order-details/replenishment-order-cancellation/replenishment-order-cancellation.component.spec.ts b/feature-libs/order/components/replenishment-order-details/replenishment-order-cancellation/replenishment-order-cancellation.component.spec.ts index 7ceb5f86d0d..ea9a4cd2eaa 100644 --- a/feature-libs/order/components/replenishment-order-details/replenishment-order-cancellation/replenishment-order-cancellation.component.spec.ts +++ b/feature-libs/order/components/replenishment-order-details/replenishment-order-cancellation/replenishment-order-cancellation.component.spec.ts @@ -38,6 +38,7 @@ class MockReplenishmentOrderHistoryFacade @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform() {} diff --git a/feature-libs/order/components/replenishment-order-details/replenishment-order-cancellation/replenishment-order-cancellation.component.ts b/feature-libs/order/components/replenishment-order-details/replenishment-order-cancellation/replenishment-order-cancellation.component.ts index 059a083849b..9bd3c0a0c86 100644 --- a/feature-libs/order/components/replenishment-order-details/replenishment-order-cancellation/replenishment-order-cancellation.component.ts +++ b/feature-libs/order/components/replenishment-order-details/replenishment-order-cancellation/replenishment-order-cancellation.component.ts @@ -22,6 +22,7 @@ import { take } from 'rxjs/operators'; @Component({ selector: 'cx-replenishment-order-cancellation', templateUrl: './replenishment-order-cancellation.component.html', + standalone: false, }) export class ReplenishmentOrderCancellationComponent implements OnDestroy { @ViewChild('element') element: ElementRef; diff --git a/feature-libs/order/components/replenishment-order-history/replenishment-order-history.component.spec.ts b/feature-libs/order/components/replenishment-order-history/replenishment-order-history.component.spec.ts index 8513dc2621c..5e3e61b5243 100644 --- a/feature-libs/order/components/replenishment-order-history/replenishment-order-history.component.spec.ts +++ b/feature-libs/order/components/replenishment-order-history/replenishment-order-history.component.spec.ts @@ -58,6 +58,7 @@ const replenishmentOrderHistory = new BehaviorSubject( @Component({ template: '', selector: 'cx-pagination', + standalone: false, }) class MockPaginationComponent { @Input() pagination; @@ -66,6 +67,7 @@ class MockPaginationComponent { @Component({ template: '', selector: 'cx-sorting', + standalone: false, }) class MockSortingComponent { @Input() sortOptions; @@ -77,6 +79,7 @@ class MockSortingComponent { @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform() {} diff --git a/feature-libs/order/components/replenishment-order-history/replenishment-order-history.component.ts b/feature-libs/order/components/replenishment-order-history/replenishment-order-history.component.ts index 09515cdbf80..129caf86f28 100644 --- a/feature-libs/order/components/replenishment-order-history/replenishment-order-history.component.ts +++ b/feature-libs/order/components/replenishment-order-history/replenishment-order-history.component.ts @@ -26,6 +26,7 @@ import { map, take, tap } from 'rxjs/operators'; selector: 'cx-replenishment-order-history', templateUrl: './replenishment-order-history.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ReplenishmentOrderHistoryComponent implements OnDestroy { @ViewChild('element') element: ElementRef; diff --git a/feature-libs/order/components/return-request-detail/return-request-items/return-request-items.component.spec.ts b/feature-libs/order/components/return-request-detail/return-request-items/return-request-items.component.spec.ts index f7731462c4a..bd72cd3ce36 100644 --- a/feature-libs/order/components/return-request-detail/return-request-items/return-request-items.component.spec.ts +++ b/feature-libs/order/components/return-request-detail/return-request-items/return-request-items.component.spec.ts @@ -20,6 +20,7 @@ class MockCheckoutService { @Component({ template: '', selector: 'cx-media', + standalone: false, }) class MockMediaComponent { @Input() container; diff --git a/feature-libs/order/components/return-request-detail/return-request-items/return-request-items.component.ts b/feature-libs/order/components/return-request-detail/return-request-items/return-request-items.component.ts index 115e9ef11a6..e7fb94f5af3 100644 --- a/feature-libs/order/components/return-request-detail/return-request-items/return-request-items.component.ts +++ b/feature-libs/order/components/return-request-detail/return-request-items/return-request-items.component.ts @@ -13,6 +13,7 @@ import { ReturnRequestService } from '../return-request.service'; selector: 'cx-return-request-items', templateUrl: './return-request-items.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ReturnRequestItemsComponent { constructor(protected returnRequestService: ReturnRequestService) {} diff --git a/feature-libs/order/components/return-request-detail/return-request-overview/return-request-overview.component.ts b/feature-libs/order/components/return-request-detail/return-request-overview/return-request-overview.component.ts index 400daec7856..43a12ff159e 100644 --- a/feature-libs/order/components/return-request-detail/return-request-overview/return-request-overview.component.ts +++ b/feature-libs/order/components/return-request-detail/return-request-overview/return-request-overview.component.ts @@ -19,6 +19,7 @@ import { ReturnRequestService } from '../return-request.service'; selector: 'cx-return-request-overview', templateUrl: './return-request-overview.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ReturnRequestOverviewComponent implements OnInit, OnDestroy { constructor(protected returnRequestService: ReturnRequestService) {} diff --git a/feature-libs/order/components/return-request-detail/return-request-totals/return-request-totals.component.ts b/feature-libs/order/components/return-request-detail/return-request-totals/return-request-totals.component.ts index 35082064767..adaa960d555 100644 --- a/feature-libs/order/components/return-request-detail/return-request-totals/return-request-totals.component.ts +++ b/feature-libs/order/components/return-request-detail/return-request-totals/return-request-totals.component.ts @@ -13,6 +13,7 @@ import { ReturnRequestService } from '../return-request.service'; selector: 'cx-return-request-totals', templateUrl: './return-request-totals.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ReturnRequestTotalsComponent implements OnDestroy { constructor(protected returnRequestService: ReturnRequestService) {} diff --git a/feature-libs/order/components/return-request-list/order-return-request-list.component.spec.ts b/feature-libs/order/components/return-request-list/order-return-request-list.component.spec.ts index e05fd9a9045..cb42ce1a19c 100644 --- a/feature-libs/order/components/return-request-list/order-return-request-list.component.spec.ts +++ b/feature-libs/order/components/return-request-list/order-return-request-list.component.spec.ts @@ -34,6 +34,7 @@ class ActivatedRouteMock { @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform() {} diff --git a/feature-libs/order/components/return-request-list/order-return-request-list.component.ts b/feature-libs/order/components/return-request-list/order-return-request-list.component.ts index 7256aab70d6..ebe1512792d 100644 --- a/feature-libs/order/components/return-request-list/order-return-request-list.component.ts +++ b/feature-libs/order/components/return-request-list/order-return-request-list.component.ts @@ -17,6 +17,7 @@ import { filter, map, take, tap } from 'rxjs/operators'; selector: 'cx-order-return-request-list', templateUrl: './order-return-request-list.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class OrderReturnRequestListComponent implements OnDestroy { constructor( diff --git a/feature-libs/order/package.json b/feature-libs/order/package.json index 1b974abe30c..81fe6600092 100644 --- a/feature-libs/order/package.json +++ b/feature-libs/order/package.json @@ -25,14 +25,14 @@ "tslib": "^2.8.1" }, "peerDependencies": { - "@angular-devkit/schematics": "^18.2.9", - "@angular/common": "^18.2.9", - "@angular/core": "^18.2.9", - "@angular/forms": "^18.2.9", - "@angular/router": "^18.2.9", - "@ng-select/ng-select": "^13.9.1", - "@ngrx/effects": "^18.1.1", - "@ngrx/store": "^18.1.1", + "@angular-devkit/schematics": "^19.0.4", + "@angular/common": "^19.0.3", + "@angular/core": "^19.0.3", + "@angular/forms": "^19.0.3", + "@angular/router": "^19.0.3", + "@ng-select/ng-select": "^14.1.0", + "@ngrx/effects": "^19.0.0", + "@ngrx/store": "^19.0.0", "@spartacus/cart": "2211.32.0", "@spartacus/core": "2211.32.0", "@spartacus/pdf-invoices": "2211.32.0", diff --git a/feature-libs/order/schematics/add-order/__snapshots__/index_spec.ts.snap b/feature-libs/order/schematics/add-order/__snapshots__/index_spec.ts.snap index c5665a9371a..0edcd37d7c4 100644 --- a/feature-libs/order/schematics/add-order/__snapshots__/index_spec.ts.snap +++ b/feature-libs/order/schematics/add-order/__snapshots__/index_spec.ts.snap @@ -110,7 +110,12 @@ exports[`Spartacus Order schematics: ng-add Order feature general setup styling "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } }, "configurations": { @@ -123,8 +128,8 @@ exports[`Spartacus Order schematics: ng-add Order feature general setup styling }, { "type": "anyComponentStyle", - "maximumWarning": "2kB", - "maximumError": "4kB" + "maximumWarning": "4kB", + "maximumError": "8kB" } ], "outputHashing": "all" @@ -175,7 +180,12 @@ exports[`Spartacus Order schematics: ng-add Order feature general setup styling "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } } } diff --git a/feature-libs/organization/.eslintrc.json b/feature-libs/organization/.eslintrc.json index 862b5a870b0..9895500871d 100644 --- a/feature-libs/organization/.eslintrc.json +++ b/feature-libs/organization/.eslintrc.json @@ -1,4 +1,9 @@ { "extends": "../../.eslintrc.json", - "ignorePatterns": ["schematics/**/*.d.ts"] + "ignorePatterns": ["schematics/**/*.d.ts"], + "overrides": [ + { + "files": ["*.ts"] + } + ] } diff --git a/feature-libs/organization/account-summary/components/details/document/account-summary-document.component.spec.ts b/feature-libs/organization/account-summary/components/details/document/account-summary-document.component.spec.ts index e2c1001cca8..596a897c201 100644 --- a/feature-libs/organization/account-summary/components/details/document/account-summary-document.component.spec.ts +++ b/feature-libs/organization/account-summary/components/details/document/account-summary-document.component.spec.ts @@ -33,6 +33,7 @@ const blob = new Blob(); @Component({ template: '', selector: 'cx-pagination', + standalone: false, }) class MockPaginationComponent { @Input() pagination: any; @@ -41,6 +42,7 @@ class MockPaginationComponent { @Component({ template: '', selector: 'cx-sorting', + standalone: false, }) class MockSortingComponent { @Input() sortOptions: any; @@ -53,6 +55,7 @@ class MockSortingComponent { @Component({ template: '', selector: 'cx-account-summary-document-filter', + standalone: false, }) class MockAccountSummaryDocumentFilterComponent { @Input() documentTypeOptions: any; diff --git a/feature-libs/organization/account-summary/components/details/document/account-summary-document.component.ts b/feature-libs/organization/account-summary/components/details/document/account-summary-document.component.ts index f8d2e82c5d0..f2dbec06d19 100644 --- a/feature-libs/organization/account-summary/components/details/document/account-summary-document.component.ts +++ b/feature-libs/organization/account-summary/components/details/document/account-summary-document.component.ts @@ -32,6 +32,7 @@ import { skip, switchMap, take, tap } from 'rxjs/operators'; selector: 'cx-account-summary-document', templateUrl: './account-summary-document.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class AccountSummaryDocumentComponent implements OnInit, OnDestroy { /* For Enum use in HTML */ diff --git a/feature-libs/organization/account-summary/components/details/document/filter/account-summary-document-filter.component.spec.ts b/feature-libs/organization/account-summary/components/details/document/filter/account-summary-document-filter.component.spec.ts index 8efc17d3438..b0b7757f405 100644 --- a/feature-libs/organization/account-summary/components/details/document/filter/account-summary-document-filter.component.spec.ts +++ b/feature-libs/organization/account-summary/components/details/document/filter/account-summary-document-filter.component.spec.ts @@ -23,6 +23,7 @@ const mockQueryParams: DocumentQueryParams = { @Component({ selector: 'cx-date-picker', template: '', + standalone: false, }) class MockDatePickerComponent { @Input() control: any; diff --git a/feature-libs/organization/account-summary/components/details/document/filter/account-summary-document-filter.component.ts b/feature-libs/organization/account-summary/components/details/document/filter/account-summary-document-filter.component.ts index 265a36947a8..1002588ae6e 100644 --- a/feature-libs/organization/account-summary/components/details/document/filter/account-summary-document-filter.component.ts +++ b/feature-libs/organization/account-summary/components/details/document/filter/account-summary-document-filter.component.ts @@ -47,6 +47,7 @@ interface GroupValidator { selector: 'cx-account-summary-document-filter', templateUrl: './account-summary-document-filter.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class AccountSummaryDocumentFilterComponent implements OnInit, OnDestroy diff --git a/feature-libs/organization/account-summary/components/details/header/account-summary-header.component.spec.ts b/feature-libs/organization/account-summary/components/details/header/account-summary-header.component.spec.ts index df2414ba5b2..98aac3479a1 100644 --- a/feature-libs/organization/account-summary/components/details/header/account-summary-header.component.spec.ts +++ b/feature-libs/organization/account-summary/components/details/header/account-summary-header.component.spec.ts @@ -28,6 +28,7 @@ import { mockAccountSummaryDetails } from '../account-summary-mock-data'; @Component({ selector: 'cx-card', template: '', + standalone: false, }) class MockCardComponent { @Input() content: any; diff --git a/feature-libs/organization/account-summary/components/details/header/account-summary-header.component.ts b/feature-libs/organization/account-summary/components/details/header/account-summary-header.component.ts index 74130d81bbb..79ee5470207 100644 --- a/feature-libs/organization/account-summary/components/details/header/account-summary-header.component.ts +++ b/feature-libs/organization/account-summary/components/details/header/account-summary-header.component.ts @@ -23,6 +23,7 @@ import { map, switchMap } from 'rxjs/operators'; selector: 'cx-account-summary-header', templateUrl: './account-summary-header.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class AccountSummaryHeaderComponent implements OnInit, OnDestroy { notApplicable: string; diff --git a/feature-libs/organization/account-summary/components/list/account-summary-list.component.spec.ts b/feature-libs/organization/account-summary/components/list/account-summary-list.component.spec.ts index 1cbc3b8886d..3280c3d2c6c 100644 --- a/feature-libs/organization/account-summary/components/list/account-summary-list.component.spec.ts +++ b/feature-libs/organization/account-summary/components/list/account-summary-list.component.spec.ts @@ -9,6 +9,7 @@ describe('AccountSummaryListComponent', () => { @Component({ template: '', selector: 'cx-org-list', + standalone: false, }) class MockListComponent { @Input() key: any; diff --git a/feature-libs/organization/account-summary/components/list/account-summary-list.component.ts b/feature-libs/organization/account-summary/components/list/account-summary-list.component.ts index 28a2665f7bb..0cbdbd38625 100644 --- a/feature-libs/organization/account-summary/components/list/account-summary-list.component.ts +++ b/feature-libs/organization/account-summary/components/list/account-summary-list.component.ts @@ -9,5 +9,6 @@ import { UnitListComponent } from '@spartacus/organization/administration/compon @Component({ selector: 'cx-account-summary-list', templateUrl: './account-summary-list.component.html', + standalone: false, }) export class AccountSummaryListComponent extends UnitListComponent {} diff --git a/feature-libs/organization/administration/components/budget/cost-centers/budget-cost-center-list.component.ts b/feature-libs/organization/administration/components/budget/cost-centers/budget-cost-center-list.component.ts index ee7ec4109ae..7511df7ad53 100644 --- a/feature-libs/organization/administration/components/budget/cost-centers/budget-cost-center-list.component.ts +++ b/feature-libs/organization/administration/components/budget/cost-centers/budget-cost-center-list.component.ts @@ -19,5 +19,6 @@ import { BudgetCostCenterListService } from './budget-cost-center-list.service'; useExisting: BudgetCostCenterListService, }, ], + standalone: false, }) export class BudgetCostCenterListComponent {} diff --git a/feature-libs/organization/administration/components/budget/details-cell/budget-details-cell.component.ts b/feature-libs/organization/administration/components/budget/details-cell/budget-details-cell.component.ts index 598b458d6e9..f0b67931de3 100644 --- a/feature-libs/organization/administration/components/budget/details-cell/budget-details-cell.component.ts +++ b/feature-libs/organization/administration/components/budget/details-cell/budget-details-cell.component.ts @@ -11,5 +11,6 @@ import { CellComponent } from '../../shared'; selector: 'cx-org-budget-details-cell', templateUrl: './budget-details-cell.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class BudgetDetailsCellComponent extends CellComponent {} diff --git a/feature-libs/organization/administration/components/budget/details/budget-details.component.ts b/feature-libs/organization/administration/components/budget/details/budget-details.component.ts index 7e3065456a4..4517c8aa570 100644 --- a/feature-libs/organization/administration/components/budget/details/budget-details.component.ts +++ b/feature-libs/organization/administration/components/budget/details/budget-details.component.ts @@ -22,6 +22,7 @@ import { BudgetItemService } from '../services/budget-item.service'; }, ], host: { class: 'content-wrapper' }, + standalone: false, }) export class BudgetDetailsComponent implements OnInit { model$: Observable; diff --git a/feature-libs/organization/administration/components/budget/form/budget-form.component.spec.ts b/feature-libs/organization/administration/components/budget/form/budget-form.component.spec.ts index 49e05e1cfec..aa276da1a90 100644 --- a/feature-libs/organization/administration/components/budget/form/budget-form.component.spec.ts +++ b/feature-libs/organization/administration/components/budget/form/budget-form.component.spec.ts @@ -54,6 +54,7 @@ class MockItemService { // eslint-disable-next-line @angular-eslint/component-selector selector: 'cx-date-picker', template: '', + standalone: false, }) class MockDatePickerComponent { @Input() control: UntypedFormControl; diff --git a/feature-libs/organization/administration/components/budget/form/budget-form.component.ts b/feature-libs/organization/administration/components/budget/form/budget-form.component.ts index d4e406808da..ea71d76c6d3 100644 --- a/feature-libs/organization/administration/components/budget/form/budget-form.component.ts +++ b/feature-libs/organization/administration/components/budget/form/budget-form.component.ts @@ -35,6 +35,7 @@ import { CurrentBudgetService } from '../services/current-budget.service'; useExisting: CurrentBudgetService, }, ], + standalone: false, }) export class BudgetFormComponent implements OnInit { form: UntypedFormGroup | null = this.itemService.getForm(); diff --git a/feature-libs/organization/administration/components/cost-center/budgets/assigned/cost-center-assigned-budget-list.component.ts b/feature-libs/organization/administration/components/cost-center/budgets/assigned/cost-center-assigned-budget-list.component.ts index ae93b83121a..02c45bfe6b8 100644 --- a/feature-libs/organization/administration/components/cost-center/budgets/assigned/cost-center-assigned-budget-list.component.ts +++ b/feature-libs/organization/administration/components/cost-center/budgets/assigned/cost-center-assigned-budget-list.component.ts @@ -19,5 +19,6 @@ import { CostCenterAssignedBudgetListService } from './cost-center-assigned-budg useExisting: CostCenterAssignedBudgetListService, }, ], + standalone: false, }) export class CostCenterAssignedBudgetListComponent {} diff --git a/feature-libs/organization/administration/components/cost-center/budgets/cost-center-budget-list.component.ts b/feature-libs/organization/administration/components/cost-center/budgets/cost-center-budget-list.component.ts index c638e5aad78..00dbe892cb5 100644 --- a/feature-libs/organization/administration/components/cost-center/budgets/cost-center-budget-list.component.ts +++ b/feature-libs/organization/administration/components/cost-center/budgets/cost-center-budget-list.component.ts @@ -19,5 +19,6 @@ import { CostCenterBudgetListService } from './cost-center-budget-list.service'; useExisting: CostCenterBudgetListService, }, ], + standalone: false, }) export class CostCenterBudgetListComponent {} diff --git a/feature-libs/organization/administration/components/cost-center/details-cell/cost-center-details-cell.component.ts b/feature-libs/organization/administration/components/cost-center/details-cell/cost-center-details-cell.component.ts index 3790e0957ec..a630ed01f9f 100644 --- a/feature-libs/organization/administration/components/cost-center/details-cell/cost-center-details-cell.component.ts +++ b/feature-libs/organization/administration/components/cost-center/details-cell/cost-center-details-cell.component.ts @@ -11,5 +11,6 @@ import { CellComponent } from '../../shared'; selector: 'cx-org-cost-center-details-cell', templateUrl: './cost-center-details-cell.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class CostCenterDetailsCellComponent extends CellComponent {} diff --git a/feature-libs/organization/administration/components/cost-center/details/cost-center-details.component.ts b/feature-libs/organization/administration/components/cost-center/details/cost-center-details.component.ts index 8d7447937b4..d03551e36c6 100644 --- a/feature-libs/organization/administration/components/cost-center/details/cost-center-details.component.ts +++ b/feature-libs/organization/administration/components/cost-center/details/cost-center-details.component.ts @@ -22,6 +22,7 @@ import { CostCenterItemService } from '../services/cost-center-item.service'; }, ], host: { class: 'content-wrapper' }, + standalone: false, }) export class CostCenterDetailsComponent { model$: Observable = this.itemService.key$.pipe( diff --git a/feature-libs/organization/administration/components/cost-center/form/cost-center-form.component.ts b/feature-libs/organization/administration/components/cost-center/form/cost-center-form.component.ts index e398734be1c..6aeabd41350 100644 --- a/feature-libs/organization/administration/components/cost-center/form/cost-center-form.component.ts +++ b/feature-libs/organization/administration/components/cost-center/form/cost-center-form.component.ts @@ -34,6 +34,7 @@ import { CurrentCostCenterService } from '../services/current-cost-center.servic useExisting: CurrentCostCenterService, }, ], + standalone: false, }) export class CostCenterFormComponent { form: UntypedFormGroup | null = this.itemService.getForm(); diff --git a/feature-libs/organization/administration/components/permission/details-cell/permission-details-cell.component.ts b/feature-libs/organization/administration/components/permission/details-cell/permission-details-cell.component.ts index ae8e6c799c6..d7747a7c4e8 100644 --- a/feature-libs/organization/administration/components/permission/details-cell/permission-details-cell.component.ts +++ b/feature-libs/organization/administration/components/permission/details-cell/permission-details-cell.component.ts @@ -11,5 +11,6 @@ import { CellComponent } from '../../shared'; selector: 'cx-org-permission-details-cell', templateUrl: './permission-details-cell.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class PermissionDetailsCellComponent extends CellComponent {} diff --git a/feature-libs/organization/administration/components/permission/details/permission-details.component.ts b/feature-libs/organization/administration/components/permission/details/permission-details.component.ts index 4856c595f4a..ccf1128274e 100644 --- a/feature-libs/organization/administration/components/permission/details/permission-details.component.ts +++ b/feature-libs/organization/administration/components/permission/details/permission-details.component.ts @@ -22,6 +22,7 @@ import { PermissionItemService } from '../services/permission-item.service'; }, ], host: { class: 'content-wrapper' }, + standalone: false, }) export class PermissionDetailsComponent { model$: Observable = this.itemService.key$.pipe( diff --git a/feature-libs/organization/administration/components/permission/form/permission-form.component.ts b/feature-libs/organization/administration/components/permission/form/permission-form.component.ts index 37975a15bf2..b8625a5bef3 100644 --- a/feature-libs/organization/administration/components/permission/form/permission-form.component.ts +++ b/feature-libs/organization/administration/components/permission/form/permission-form.component.ts @@ -40,6 +40,7 @@ import { PermissionItemService } from '../services/permission-item.service'; useExisting: CurrentPermissionService, }, ], + standalone: false, }) export class PermissionFormComponent implements OnInit { form: UntypedFormGroup | null = this.itemService.getForm(); diff --git a/feature-libs/organization/administration/components/shared/card/card.component.ts b/feature-libs/organization/administration/components/shared/card/card.component.ts index 34671c72e2d..fdc0a5b31e9 100644 --- a/feature-libs/organization/administration/components/shared/card/card.component.ts +++ b/feature-libs/organization/administration/components/shared/card/card.component.ts @@ -23,6 +23,7 @@ import { BaseItem } from '../organization.model'; changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'content-wrapper' }, providers: [MessageService], + standalone: false, }) export class CardComponent { @Input() i18nRoot: string; diff --git a/feature-libs/organization/administration/components/shared/card/card.testing.module.ts b/feature-libs/organization/administration/components/shared/card/card.testing.module.ts index db41f998a5f..5eb74935db8 100644 --- a/feature-libs/organization/administration/components/shared/card/card.testing.module.ts +++ b/feature-libs/organization/administration/components/shared/card/card.testing.module.ts @@ -9,6 +9,7 @@ import { Component, Input, NgModule } from '@angular/core'; @Component({ selector: 'cx-org-card', template: '', + standalone: false, }) class MockCardComponent { @Input() i18nRoot; diff --git a/feature-libs/organization/administration/components/shared/detail/delete-item-action/delete-item.component.ts b/feature-libs/organization/administration/components/shared/detail/delete-item-action/delete-item.component.ts index 2765a23682c..ae1da6cefd7 100644 --- a/feature-libs/organization/administration/components/shared/detail/delete-item-action/delete-item.component.ts +++ b/feature-libs/organization/administration/components/shared/detail/delete-item-action/delete-item.component.ts @@ -21,6 +21,7 @@ import { BaseItem } from '../../organization.model'; selector: 'cx-org-delete-item', templateUrl: './delete-item.component.html', host: { class: 'content-wrapper' }, + standalone: false, }) export class DeleteItemComponent implements OnDestroy { /** diff --git a/feature-libs/organization/administration/components/shared/detail/disable-info/disable-info.component.ts b/feature-libs/organization/administration/components/shared/detail/disable-info/disable-info.component.ts index 5e9ed458b67..15b92c23879 100644 --- a/feature-libs/organization/administration/components/shared/detail/disable-info/disable-info.component.ts +++ b/feature-libs/organization/administration/components/shared/detail/disable-info/disable-info.component.ts @@ -15,6 +15,7 @@ import { DisableInfoService } from './disable-info.service'; selector: 'cx-org-disable-info', templateUrl: './disable-info.component.html', host: { class: 'content-wrapper' }, + standalone: false, }) export class DisableInfoComponent implements OnInit { /** diff --git a/feature-libs/organization/administration/components/shared/detail/toggle-status-action/toggle-status.component.ts b/feature-libs/organization/administration/components/shared/detail/toggle-status-action/toggle-status.component.ts index 0ba08acb80e..8bbe0fd410c 100644 --- a/feature-libs/organization/administration/components/shared/detail/toggle-status-action/toggle-status.component.ts +++ b/feature-libs/organization/administration/components/shared/detail/toggle-status-action/toggle-status.component.ts @@ -23,6 +23,7 @@ import { DisableInfoService } from '../disable-info/disable-info.service'; selector: 'cx-org-toggle-status', templateUrl: './toggle-status.component.html', host: { class: 'content-wrapper' }, + standalone: false, }) export class ToggleStatusComponent implements OnDestroy { /** diff --git a/feature-libs/organization/administration/components/shared/form/form.component.ts b/feature-libs/organization/administration/components/shared/form/form.component.ts index 0936c8bb890..fcde0c328c6 100644 --- a/feature-libs/organization/administration/components/shared/form/form.component.ts +++ b/feature-libs/organization/administration/components/shared/form/form.component.ts @@ -31,6 +31,7 @@ const DISABLED_STATUS = 'DISABLED'; templateUrl: './form.component.html', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'content-wrapper' }, + standalone: false, }) export class FormComponent implements OnInit, OnDestroy { /** diff --git a/feature-libs/organization/administration/components/shared/form/form.testing.module.ts b/feature-libs/organization/administration/components/shared/form/form.testing.module.ts index 28d4060f44d..3fa72aef6c0 100644 --- a/feature-libs/organization/administration/components/shared/form/form.testing.module.ts +++ b/feature-libs/organization/administration/components/shared/form/form.testing.module.ts @@ -12,6 +12,7 @@ import createSpy = jasmine.createSpy; @Component({ selector: 'cx-org-form', template: '', + standalone: false, }) class MockFormComponent { @Input() i18nRoot; diff --git a/feature-libs/organization/administration/components/shared/item-active.directive.spec.ts b/feature-libs/organization/administration/components/shared/item-active.directive.spec.ts index d040ad49dfc..10e093046ba 100644 --- a/feature-libs/organization/administration/components/shared/item-active.directive.spec.ts +++ b/feature-libs/organization/administration/components/shared/item-active.directive.spec.ts @@ -14,6 +14,7 @@ const mockCode = 'mc1'; // eslint-disable-next-line @angular-eslint/component-selector selector: 'cx-host', template: `
TEST
`, + standalone: false, }) class TestComponent {} diff --git a/feature-libs/organization/administration/components/shared/item-active.directive.ts b/feature-libs/organization/administration/components/shared/item-active.directive.ts index e107c6f1603..ce7223e4eef 100644 --- a/feature-libs/organization/administration/components/shared/item-active.directive.ts +++ b/feature-libs/organization/administration/components/shared/item-active.directive.ts @@ -14,6 +14,7 @@ import { BaseItem } from './organization.model'; @Directive({ selector: '[cxOrgItemActive]', + standalone: false, }) export class ItemActiveDirective implements OnInit, OnDestroy diff --git a/feature-libs/organization/administration/components/shared/item-exists.directive.spec.ts b/feature-libs/organization/administration/components/shared/item-exists.directive.spec.ts index 8ad1fa573c3..e2e470fcf4c 100644 --- a/feature-libs/organization/administration/components/shared/item-exists.directive.spec.ts +++ b/feature-libs/organization/administration/components/shared/item-exists.directive.spec.ts @@ -14,6 +14,7 @@ const mockCode = 'mc1'; // eslint-disable-next-line @angular-eslint/component-selector selector: 'cx-host', template: `
TEST
`, + standalone: false, }) class TestComponent { form: UntypedFormGroup = new UntypedFormGroup({}); diff --git a/feature-libs/organization/administration/components/shared/item-exists.directive.ts b/feature-libs/organization/administration/components/shared/item-exists.directive.ts index 1e0b1646299..f5484365941 100644 --- a/feature-libs/organization/administration/components/shared/item-exists.directive.ts +++ b/feature-libs/organization/administration/components/shared/item-exists.directive.ts @@ -14,6 +14,7 @@ import { BaseItem } from './organization.model'; @Directive({ selector: '[cxOrgItemExists]', + standalone: false, }) export class ItemExistsDirective implements OnInit, OnDestroy { protected subscription: Subscription; diff --git a/feature-libs/organization/administration/components/shared/list/list.component.spec.ts b/feature-libs/organization/administration/components/shared/list/list.component.spec.ts index f7a9a02f3f0..d38721b15d3 100644 --- a/feature-libs/organization/administration/components/shared/list/list.component.spec.ts +++ b/feature-libs/organization/administration/components/shared/list/list.component.spec.ts @@ -92,6 +92,7 @@ class ActivatedRouteMock { // eslint-disable-next-line @angular-eslint/component-selector selector: 'cx-table', template: '', + standalone: false, }) class MockTableComponent { @Input() data; @@ -104,6 +105,7 @@ class MockTableComponent { @Component({ templateUrl: './list.component.html', + standalone: false, }) class MockListComponent extends ListComponent { constructor( diff --git a/feature-libs/organization/administration/components/shared/list/list.component.ts b/feature-libs/organization/administration/components/shared/list/list.component.ts index d6b6ae64a8c..20771a023ae 100644 --- a/feature-libs/organization/administration/components/shared/list/list.component.ts +++ b/feature-libs/organization/administration/components/shared/list/list.component.ts @@ -32,6 +32,7 @@ import { CreateButtonType, ListService } from './list.service'; selector: 'cx-org-list', templateUrl: './list.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ListComponent { readonly trapFocus = TrapFocus; diff --git a/feature-libs/organization/administration/components/shared/message/base-message.component.spec.ts b/feature-libs/organization/administration/components/shared/message/base-message.component.spec.ts index 6d08ddc8200..6363ef96efb 100644 --- a/feature-libs/organization/administration/components/shared/message/base-message.component.spec.ts +++ b/feature-libs/organization/administration/components/shared/message/base-message.component.spec.ts @@ -20,6 +20,7 @@ const MockMessageData: Partial = { @Component({ template: '', + standalone: false, }) class MessageComponent extends BaseMessageComponent {} diff --git a/feature-libs/organization/administration/components/shared/message/confirmation/confirmation-message.component.ts b/feature-libs/organization/administration/components/shared/message/confirmation/confirmation-message.component.ts index a46f55c03f9..b4d3ce9b07c 100644 --- a/feature-libs/organization/administration/components/shared/message/confirmation/confirmation-message.component.ts +++ b/feature-libs/organization/administration/components/shared/message/confirmation/confirmation-message.component.ts @@ -24,6 +24,7 @@ import { ConfirmationMessageData } from './confirmation-message.model'; selector: 'cx-org-confirmation', templateUrl: './confirmation-message.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ConfirmationMessageComponent extends BaseMessageComponent diff --git a/feature-libs/organization/administration/components/shared/message/message.component.ts b/feature-libs/organization/administration/components/shared/message/message.component.ts index dabda4a282b..a050a9a1646 100644 --- a/feature-libs/organization/administration/components/shared/message/message.component.ts +++ b/feature-libs/organization/administration/components/shared/message/message.component.ts @@ -25,6 +25,7 @@ import { MessageService } from './services/message.service'; selector: 'cx-org-message', templateUrl: './message.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class MessageComponent implements AfterViewInit, OnDestroy { // We use a child view container ref, as creating components will become siblings. diff --git a/feature-libs/organization/administration/components/shared/message/message.testing.module.ts b/feature-libs/organization/administration/components/shared/message/message.testing.module.ts index 3d435632abd..068414cc0e8 100644 --- a/feature-libs/organization/administration/components/shared/message/message.testing.module.ts +++ b/feature-libs/organization/administration/components/shared/message/message.testing.module.ts @@ -9,6 +9,7 @@ import { Component, NgModule } from '@angular/core'; @Component({ selector: 'cx-org-message', template: '', + standalone: false, }) class MessageComponent {} diff --git a/feature-libs/organization/administration/components/shared/message/notification/notification-message.component.ts b/feature-libs/organization/administration/components/shared/message/notification/notification-message.component.ts index 581581ca136..67228e47c20 100644 --- a/feature-libs/organization/administration/components/shared/message/notification/notification-message.component.ts +++ b/feature-libs/organization/administration/components/shared/message/notification/notification-message.component.ts @@ -12,6 +12,7 @@ import { BaseMessageComponent } from '../base-message.component'; selector: 'cx-org-notification', templateUrl: './notification-message.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class NotificationMessageComponent extends BaseMessageComponent { closeIcon = ICON_TYPE.CLOSE; diff --git a/feature-libs/organization/administration/components/shared/message/services/message-render.service.spec.ts b/feature-libs/organization/administration/components/shared/message/services/message-render.service.spec.ts index 2252fadc244..ea149f21044 100644 --- a/feature-libs/organization/administration/components/shared/message/services/message-render.service.spec.ts +++ b/feature-libs/organization/administration/components/shared/message/services/message-render.service.spec.ts @@ -5,7 +5,10 @@ import { MessageData } from '../message.model'; import { NotificationMessageComponent } from '../notification/notification-message.component'; import { MessageRenderService } from './message-render.service'; -@Component({ template: '' }) +@Component({ + template: '', + standalone: false, +}) class MockComponent extends BaseMessageComponent {} describe('MessageRenderService', () => { diff --git a/feature-libs/organization/administration/components/shared/sub-list/assign-cell.component.ts b/feature-libs/organization/administration/components/shared/sub-list/assign-cell.component.ts index 9a1f0549001..3d57d06d35a 100644 --- a/feature-libs/organization/administration/components/shared/sub-list/assign-cell.component.ts +++ b/feature-libs/organization/administration/components/shared/sub-list/assign-cell.component.ts @@ -30,6 +30,7 @@ import { SubListService } from './sub-list.service'; `, changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class AssignCellComponent extends CellComponent { constructor( diff --git a/feature-libs/organization/administration/components/shared/sub-list/sub-list.component.spec.ts b/feature-libs/organization/administration/components/shared/sub-list/sub-list.component.spec.ts index 79a3d1ecd6d..06acb7a1575 100644 --- a/feature-libs/organization/administration/components/shared/sub-list/sub-list.component.spec.ts +++ b/feature-libs/organization/administration/components/shared/sub-list/sub-list.component.spec.ts @@ -40,6 +40,7 @@ const mockEmptyList: EntitiesModel = { // eslint-disable-next-line @angular-eslint/component-selector selector: 'cx-table', template: '', + standalone: false, }) class MockTableComponent { @Input() data; @@ -80,6 +81,7 @@ class ActivatedRouteMock { @Directive({ // eslint-disable-next-line @angular-eslint/directive-selector selector: '[cxFocus]', + standalone: false, }) export class MockKeyboadFocusDirective { @Input('cxFocus') config: FocusConfig = {}; diff --git a/feature-libs/organization/administration/components/shared/sub-list/sub-list.component.ts b/feature-libs/organization/administration/components/shared/sub-list/sub-list.component.ts index cf95bfa06d1..0ef29bea7d0 100644 --- a/feature-libs/organization/administration/components/shared/sub-list/sub-list.component.ts +++ b/feature-libs/organization/administration/components/shared/sub-list/sub-list.component.ts @@ -23,6 +23,7 @@ import { MessageService } from '../message/services/message.service'; templateUrl: './sub-list.component.html', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'content-wrapper' }, + standalone: false, }) export class SubListComponent extends ListComponent { hostClass = ''; diff --git a/feature-libs/organization/administration/components/shared/sub-list/sub-list.testing.module.ts b/feature-libs/organization/administration/components/shared/sub-list/sub-list.testing.module.ts index 198028f9f43..c69c7657e4e 100644 --- a/feature-libs/organization/administration/components/shared/sub-list/sub-list.testing.module.ts +++ b/feature-libs/organization/administration/components/shared/sub-list/sub-list.testing.module.ts @@ -10,6 +10,7 @@ import { ListService } from '../list/list.service'; @Component({ selector: 'cx-org-sub-list', template: '', + standalone: false, }) class MockSubListComponent { @Input() i18nRoot; diff --git a/feature-libs/organization/administration/components/shared/table/active-link/active-link-cell.component.ts b/feature-libs/organization/administration/components/shared/table/active-link/active-link-cell.component.ts index 662384135f0..654835f39f7 100644 --- a/feature-libs/organization/administration/components/shared/table/active-link/active-link-cell.component.ts +++ b/feature-libs/organization/administration/components/shared/table/active-link/active-link-cell.component.ts @@ -11,6 +11,7 @@ import { CellComponent } from '../cell.component'; selector: 'cx-org-active-link-cell', templateUrl: '../cell.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ActiveLinkCellComponent extends CellComponent { get tabIndex() { diff --git a/feature-libs/organization/administration/components/shared/table/amount/amount-cell.component.ts b/feature-libs/organization/administration/components/shared/table/amount/amount-cell.component.ts index 0ed84dff190..6dca3082674 100644 --- a/feature-libs/organization/administration/components/shared/table/amount/amount-cell.component.ts +++ b/feature-libs/organization/administration/components/shared/table/amount/amount-cell.component.ts @@ -11,6 +11,7 @@ import { CellComponent } from '../cell.component'; selector: 'cx-org-amount-cell', templateUrl: '../cell.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class AmountCellComponent extends CellComponent { get property(): string | undefined { diff --git a/feature-libs/organization/administration/components/shared/table/cell.component.ts b/feature-libs/organization/administration/components/shared/table/cell.component.ts index 34e1ee27a4f..0006fb33719 100644 --- a/feature-libs/organization/administration/components/shared/table/cell.component.ts +++ b/feature-libs/organization/administration/components/shared/table/cell.component.ts @@ -21,6 +21,7 @@ import { selector: 'cx-org-cell', templateUrl: './cell.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class CellComponent { @Optional() featuteConfigService = inject(FeatureConfigService, { diff --git a/feature-libs/organization/administration/components/shared/table/date-range/date-range-cell.component.ts b/feature-libs/organization/administration/components/shared/table/date-range/date-range-cell.component.ts index e2eb48ab451..b9d473d7d85 100644 --- a/feature-libs/organization/administration/components/shared/table/date-range/date-range-cell.component.ts +++ b/feature-libs/organization/administration/components/shared/table/date-range/date-range-cell.component.ts @@ -17,6 +17,7 @@ import { CellComponent } from '../cell.component'; selector: 'cx-org-date-range-cell', templateUrl: './date-range-cell.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class DateRangeCellComponent extends CellComponent { @Optional() featuteConfigService = inject(FeatureConfigService, { diff --git a/feature-libs/organization/administration/components/shared/table/limit/limit-cell.component.ts b/feature-libs/organization/administration/components/shared/table/limit/limit-cell.component.ts index 74725c8d45d..be6cda3d770 100644 --- a/feature-libs/organization/administration/components/shared/table/limit/limit-cell.component.ts +++ b/feature-libs/organization/administration/components/shared/table/limit/limit-cell.component.ts @@ -12,6 +12,7 @@ import { CellComponent } from '../cell.component'; selector: 'cx-org-limit-cell', templateUrl: './limit-cell.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class LimitCellComponent extends CellComponent { get isTimeSpanThreshold(): boolean { diff --git a/feature-libs/organization/administration/components/shared/table/roles/roles-cell.component.ts b/feature-libs/organization/administration/components/shared/table/roles/roles-cell.component.ts index c19f4f795cf..4afe53612c2 100644 --- a/feature-libs/organization/administration/components/shared/table/roles/roles-cell.component.ts +++ b/feature-libs/organization/administration/components/shared/table/roles/roles-cell.component.ts @@ -11,5 +11,6 @@ import { CellComponent } from '../cell.component'; selector: 'cx-org-roles-cell', templateUrl: './roles-cell.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class RolesCellComponent extends CellComponent {} diff --git a/feature-libs/organization/administration/components/shared/table/status/status-cell.component.ts b/feature-libs/organization/administration/components/shared/table/status/status-cell.component.ts index 5276dc05174..bce741e7d09 100644 --- a/feature-libs/organization/administration/components/shared/table/status/status-cell.component.ts +++ b/feature-libs/organization/administration/components/shared/table/status/status-cell.component.ts @@ -11,6 +11,7 @@ import { CellComponent } from '../cell.component'; selector: 'cx-org-status-cell', templateUrl: './status-cell.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class StatusCellComponent extends CellComponent { get label() { diff --git a/feature-libs/organization/administration/components/shared/table/unit/unit-cell.component.ts b/feature-libs/organization/administration/components/shared/table/unit/unit-cell.component.ts index be8d2ba6551..b3b2fb56bab 100644 --- a/feature-libs/organization/administration/components/shared/table/unit/unit-cell.component.ts +++ b/feature-libs/organization/administration/components/shared/table/unit/unit-cell.component.ts @@ -11,6 +11,7 @@ import { CellComponent } from '../cell.component'; selector: 'cx-org-unit-cell', templateUrl: '../cell.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class UnitCellComponent extends CellComponent { get property() { diff --git a/feature-libs/organization/administration/components/unit/details-cell/unit-details-cell.component.ts b/feature-libs/organization/administration/components/unit/details-cell/unit-details-cell.component.ts index bd5391a94d2..c1816e355b2 100644 --- a/feature-libs/organization/administration/components/unit/details-cell/unit-details-cell.component.ts +++ b/feature-libs/organization/administration/components/unit/details-cell/unit-details-cell.component.ts @@ -11,5 +11,6 @@ import { CellComponent } from '../../shared'; selector: 'cx-org-unit-details-cell', templateUrl: './unit-details-cell.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class UnitDetailsCellComponent extends CellComponent {} diff --git a/feature-libs/organization/administration/components/unit/details/unit-details.component.ts b/feature-libs/organization/administration/components/unit/details/unit-details.component.ts index 2b5176b3863..4007b496345 100644 --- a/feature-libs/organization/administration/components/unit/details/unit-details.component.ts +++ b/feature-libs/organization/administration/components/unit/details/unit-details.component.ts @@ -23,6 +23,7 @@ import { UnitItemService } from '../services/unit-item.service'; }, ], host: { class: 'content-wrapper' }, + standalone: false, }) export class UnitDetailsComponent { model$: Observable = this.itemService.key$.pipe( diff --git a/feature-libs/organization/administration/components/unit/form/unit-form.component.ts b/feature-libs/organization/administration/components/unit/form/unit-form.component.ts index 5ada9090cc0..3830fc75394 100644 --- a/feature-libs/organization/administration/components/unit/form/unit-form.component.ts +++ b/feature-libs/organization/administration/components/unit/form/unit-form.component.ts @@ -39,6 +39,7 @@ import { UnitItemService } from '../services/unit-item.service'; useExisting: CurrentUnitService, }, ], + standalone: false, }) export class UnitFormComponent implements OnInit { @Input() i18nRoot = 'orgUnit'; diff --git a/feature-libs/organization/administration/components/unit/links/addresses/details/unit-address-details.component.ts b/feature-libs/organization/administration/components/unit/links/addresses/details/unit-address-details.component.ts index 5a427260dda..301711d6c2a 100644 --- a/feature-libs/organization/administration/components/unit/links/addresses/details/unit-address-details.component.ts +++ b/feature-libs/organization/administration/components/unit/links/addresses/details/unit-address-details.component.ts @@ -29,6 +29,7 @@ import { UnitAddressItemService } from '../services/unit-address-item.service'; useExisting: UnitAddressItemService, }, ], + standalone: false, }) export class UnitAddressDetailsComponent { unit$: Observable = this.currentUnitService.item$; diff --git a/feature-libs/organization/administration/components/unit/links/addresses/form/unit-address-form.component.ts b/feature-libs/organization/administration/components/unit/links/addresses/form/unit-address-form.component.ts index c266ce19922..b4079479cb4 100644 --- a/feature-libs/organization/administration/components/unit/links/addresses/form/unit-address-form.component.ts +++ b/feature-libs/organization/administration/components/unit/links/addresses/form/unit-address-form.component.ts @@ -24,6 +24,7 @@ import { UnitAddressFormService } from './unit-address-form.service'; useExisting: UnitAddressItemService, }, ], + standalone: false, }) export class UnitAddressFormComponent implements OnInit { form: UntypedFormGroup | null = this.itemService.getForm(); diff --git a/feature-libs/organization/administration/components/unit/links/addresses/list/link-cell.component.ts b/feature-libs/organization/administration/components/unit/links/addresses/list/link-cell.component.ts index 2aaf4c7638c..de03fd843c1 100644 --- a/feature-libs/organization/administration/components/unit/links/addresses/list/link-cell.component.ts +++ b/feature-libs/organization/administration/components/unit/links/addresses/list/link-cell.component.ts @@ -32,6 +32,7 @@ import { CellComponent } from '../../../../shared/table/cell.component'; `, changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class LinkCellComponent extends CellComponent { unitKey$: Observable = this.itemService.key$; diff --git a/feature-libs/organization/administration/components/unit/links/addresses/list/unit-address-list.component.ts b/feature-libs/organization/administration/components/unit/links/addresses/list/unit-address-list.component.ts index 400c89f4c47..d654ae3bf11 100644 --- a/feature-libs/organization/administration/components/unit/links/addresses/list/unit-address-list.component.ts +++ b/feature-libs/organization/administration/components/unit/links/addresses/list/unit-address-list.component.ts @@ -20,6 +20,7 @@ import { UnitAddressListService } from './unit-address-list.service'; useExisting: UnitAddressListService, }, ], + standalone: false, }) export class UnitAddressListComponent { routerKey = ROUTE_PARAMS.addressCode; diff --git a/feature-libs/organization/administration/components/unit/links/approvers/assigned/unit-assigned-approver-list.component.ts b/feature-libs/organization/administration/components/unit/links/approvers/assigned/unit-assigned-approver-list.component.ts index 0e781e372dd..3ff5177d672 100644 --- a/feature-libs/organization/administration/components/unit/links/approvers/assigned/unit-assigned-approver-list.component.ts +++ b/feature-libs/organization/administration/components/unit/links/approvers/assigned/unit-assigned-approver-list.component.ts @@ -19,5 +19,6 @@ import { UnitAssignedApproverListService } from './unit-assigned-approver-list.s useExisting: UnitAssignedApproverListService, }, ], + standalone: false, }) export class UnitAssignedApproverListComponent {} diff --git a/feature-libs/organization/administration/components/unit/links/approvers/unit-approver-list.component.ts b/feature-libs/organization/administration/components/unit/links/approvers/unit-approver-list.component.ts index 1bbd0bf85b1..e4d37e62492 100644 --- a/feature-libs/organization/administration/components/unit/links/approvers/unit-approver-list.component.ts +++ b/feature-libs/organization/administration/components/unit/links/approvers/unit-approver-list.component.ts @@ -19,5 +19,6 @@ import { UnitApproverListService } from './unit-approver-list.service'; useExisting: UnitApproverListService, }, ], + standalone: false, }) export class UnitApproverListComponent {} diff --git a/feature-libs/organization/administration/components/unit/links/children/create/unit-child-create.component.ts b/feature-libs/organization/administration/components/unit/links/children/create/unit-child-create.component.ts index 010d69d9027..b41330c2f2d 100644 --- a/feature-libs/organization/administration/components/unit/links/children/create/unit-child-create.component.ts +++ b/feature-libs/organization/administration/components/unit/links/children/create/unit-child-create.component.ts @@ -23,6 +23,7 @@ import { UnitChildItemService } from './unit-child-item.service'; useExisting: UnitChildItemService, }, ], + standalone: false, }) export class UnitChildCreateComponent { unitKey$: Observable = this.unitService.key$; diff --git a/feature-libs/organization/administration/components/unit/links/children/unit-children.component.ts b/feature-libs/organization/administration/components/unit/links/children/unit-children.component.ts index bf0ff8150b1..bd86adf5d76 100644 --- a/feature-libs/organization/administration/components/unit/links/children/unit-children.component.ts +++ b/feature-libs/organization/administration/components/unit/links/children/unit-children.component.ts @@ -22,6 +22,7 @@ import { UnitChildrenService } from './unit-children.service'; useExisting: UnitChildrenService, }, ], + standalone: false, }) export class UnitChildrenComponent { unit$: Observable = this.currentUnitService diff --git a/feature-libs/organization/administration/components/unit/links/cost-centers/create/unit-cost-center-create.component.ts b/feature-libs/organization/administration/components/unit/links/cost-centers/create/unit-cost-center-create.component.ts index 06081be9306..bedc4e228c0 100644 --- a/feature-libs/organization/administration/components/unit/links/cost-centers/create/unit-cost-center-create.component.ts +++ b/feature-libs/organization/administration/components/unit/links/cost-centers/create/unit-cost-center-create.component.ts @@ -23,6 +23,7 @@ import { UnitCostCenterItemService } from './unit-cost-center-item.service'; useExisting: UnitCostCenterItemService, }, ], + standalone: false, }) export class UnitCostCenterCreateComponent { unitKey$: Observable = this.unitService.key$; diff --git a/feature-libs/organization/administration/components/unit/links/cost-centers/unit-cost-centers.component.ts b/feature-libs/organization/administration/components/unit/links/cost-centers/unit-cost-centers.component.ts index da50dad250e..0840ca84b95 100644 --- a/feature-libs/organization/administration/components/unit/links/cost-centers/unit-cost-centers.component.ts +++ b/feature-libs/organization/administration/components/unit/links/cost-centers/unit-cost-centers.component.ts @@ -22,6 +22,7 @@ import { UnitCostCenterListService } from './unit-cost-centers.service'; useExisting: UnitCostCenterListService, }, ], + standalone: false, }) export class UnitCostCenterListComponent { unit$: Observable = this.currentUnitService diff --git a/feature-libs/organization/administration/components/unit/links/users/create/unit-user-create.component.ts b/feature-libs/organization/administration/components/unit/links/users/create/unit-user-create.component.ts index cea89df00ac..09c31044cd6 100644 --- a/feature-libs/organization/administration/components/unit/links/users/create/unit-user-create.component.ts +++ b/feature-libs/organization/administration/components/unit/links/users/create/unit-user-create.component.ts @@ -23,6 +23,7 @@ import { UnitUserItemService } from './unit-user-item.service'; useExisting: UnitUserItemService, }, ], + standalone: false, }) export class UnitUserCreateComponent { unitKey$: Observable = this.unitService.key$; diff --git a/feature-libs/organization/administration/components/unit/links/users/list/unit-user-link-cell.component.ts b/feature-libs/organization/administration/components/unit/links/users/list/unit-user-link-cell.component.ts index 99ca35b0aca..82c726d9112 100644 --- a/feature-libs/organization/administration/components/unit/links/users/list/unit-user-link-cell.component.ts +++ b/feature-libs/organization/administration/components/unit/links/users/list/unit-user-link-cell.component.ts @@ -42,6 +42,7 @@ import { CellComponent } from '../../../../shared/table/cell.component'; `, changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class UnitUserRolesCellComponent extends CellComponent { unitKey$: Observable = this.itemService.key$; diff --git a/feature-libs/organization/administration/components/unit/links/users/list/unit-user-list.component.ts b/feature-libs/organization/administration/components/unit/links/users/list/unit-user-list.component.ts index c5d3da8cc86..aa0d9223660 100644 --- a/feature-libs/organization/administration/components/unit/links/users/list/unit-user-list.component.ts +++ b/feature-libs/organization/administration/components/unit/links/users/list/unit-user-list.component.ts @@ -24,6 +24,7 @@ import { B2BUserService } from '@spartacus/organization/administration/core'; useExisting: UnitUserListService, }, ], + standalone: false, }) export class UnitUserListComponent { routerKey = ROUTE_PARAMS.userCode; diff --git a/feature-libs/organization/administration/components/unit/links/users/roles/unit-user-roles.component.ts b/feature-libs/organization/administration/components/unit/links/users/roles/unit-user-roles.component.ts index ff420d19330..16611c1fbb4 100644 --- a/feature-libs/organization/administration/components/unit/links/users/roles/unit-user-roles.component.ts +++ b/feature-libs/organization/administration/components/unit/links/users/roles/unit-user-roles.component.ts @@ -30,6 +30,7 @@ import { UnitUserRolesItemService } from './unit-user-roles-item.service'; useExisting: UnitUserRolesItemService, }, ], + standalone: false, }) export class UnitUserRolesFormComponent { protected item: B2BUser | undefined; diff --git a/feature-libs/organization/administration/components/unit/list/toggle-link/toggle-link-cell.component.ts b/feature-libs/organization/administration/components/unit/list/toggle-link/toggle-link-cell.component.ts index 099ba42da97..af85ef9c53e 100644 --- a/feature-libs/organization/administration/components/unit/list/toggle-link/toggle-link-cell.component.ts +++ b/feature-libs/organization/administration/components/unit/list/toggle-link/toggle-link-cell.component.ts @@ -31,6 +31,7 @@ import { UnitTreeService } from '../../services/unit-tree.service'; selector: 'cx-org-toggle-link-cell', templateUrl: './toggle-link-cell.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ToggleLinkCellComponent extends CellComponent { @HostBinding('style.--cx-depth-level') diff --git a/feature-libs/organization/administration/components/unit/list/unit-list.component.spec.ts b/feature-libs/organization/administration/components/unit/list/unit-list.component.spec.ts index 33d55df2771..201f512a33c 100644 --- a/feature-libs/organization/administration/components/unit/list/unit-list.component.spec.ts +++ b/feature-libs/organization/administration/components/unit/list/unit-list.component.spec.ts @@ -11,6 +11,7 @@ import createSpy = jasmine.createSpy; @Component({ template: '', selector: 'cx-org-list', + standalone: false, }) class MockListComponent { @Input() key: any; diff --git a/feature-libs/organization/administration/components/unit/list/unit-list.component.ts b/feature-libs/organization/administration/components/unit/list/unit-list.component.ts index e85266affeb..c73ac83698c 100644 --- a/feature-libs/organization/administration/components/unit/list/unit-list.component.ts +++ b/feature-libs/organization/administration/components/unit/list/unit-list.component.ts @@ -12,6 +12,7 @@ import { UnitTreeService } from '../services/unit-tree.service'; selector: 'cx-org-unit-list', templateUrl: './unit-list.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class UnitListComponent { constructor( diff --git a/feature-libs/organization/administration/components/user-group/details-cell/user-group-details-cell.component.ts b/feature-libs/organization/administration/components/user-group/details-cell/user-group-details-cell.component.ts index 2717ef8ea7d..0ac46d7b218 100644 --- a/feature-libs/organization/administration/components/user-group/details-cell/user-group-details-cell.component.ts +++ b/feature-libs/organization/administration/components/user-group/details-cell/user-group-details-cell.component.ts @@ -11,5 +11,6 @@ import { CellComponent } from '../../shared'; selector: 'cx-org-user-group-details-cell', templateUrl: './user-group-details-cell.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class UserGroupDetailsCellComponent extends CellComponent {} diff --git a/feature-libs/organization/administration/components/user-group/details/user-group-details.component.spec.ts b/feature-libs/organization/administration/components/user-group/details/user-group-details.component.spec.ts index 08cb880beab..d83f061df74 100644 --- a/feature-libs/organization/administration/components/user-group/details/user-group-details.component.spec.ts +++ b/feature-libs/organization/administration/components/user-group/details/user-group-details.component.spec.ts @@ -31,6 +31,7 @@ class MockMessageService { @Directive({ // eslint-disable-next-line @angular-eslint/directive-selector selector: '[cxFocus]', + standalone: false, }) export class MockKeyboadFocusDirective { @Input('cxFocus') config: FocusConfig = {}; diff --git a/feature-libs/organization/administration/components/user-group/details/user-group-details.component.ts b/feature-libs/organization/administration/components/user-group/details/user-group-details.component.ts index 684b256e6fa..582538cde9f 100644 --- a/feature-libs/organization/administration/components/user-group/details/user-group-details.component.ts +++ b/feature-libs/organization/administration/components/user-group/details/user-group-details.component.ts @@ -22,6 +22,7 @@ import { UserGroupItemService } from '../services/user-group-item.service'; }, ], host: { class: 'content-wrapper' }, + standalone: false, }) export class UserGroupDetailsComponent { model$: Observable = this.itemService.key$.pipe( diff --git a/feature-libs/organization/administration/components/user-group/form/user-group-form.component.ts b/feature-libs/organization/administration/components/user-group/form/user-group-form.component.ts index 3409b6305f9..431a99a10b3 100644 --- a/feature-libs/organization/administration/components/user-group/form/user-group-form.component.ts +++ b/feature-libs/organization/administration/components/user-group/form/user-group-form.component.ts @@ -28,6 +28,7 @@ import { UserGroupItemService } from '../services/user-group-item.service'; useExisting: UserGroupItemService, }, ], + standalone: false, }) export class UserGroupFormComponent implements OnInit { form: UntypedFormGroup | null = this.itemService.getForm(); diff --git a/feature-libs/organization/administration/components/user-group/permissions/assigned/user-group-assigned-permission-list.component.ts b/feature-libs/organization/administration/components/user-group/permissions/assigned/user-group-assigned-permission-list.component.ts index 8d897c3b474..182969033aa 100644 --- a/feature-libs/organization/administration/components/user-group/permissions/assigned/user-group-assigned-permission-list.component.ts +++ b/feature-libs/organization/administration/components/user-group/permissions/assigned/user-group-assigned-permission-list.component.ts @@ -19,5 +19,6 @@ import { UserGroupAssignedPermissionsListService } from './user-group-assigned-p useExisting: UserGroupAssignedPermissionsListService, }, ], + standalone: false, }) export class UserGroupAssignedPermissionListComponent {} diff --git a/feature-libs/organization/administration/components/user-group/permissions/user-group-permission-list.component.ts b/feature-libs/organization/administration/components/user-group/permissions/user-group-permission-list.component.ts index e869517a013..eba539ae67d 100644 --- a/feature-libs/organization/administration/components/user-group/permissions/user-group-permission-list.component.ts +++ b/feature-libs/organization/administration/components/user-group/permissions/user-group-permission-list.component.ts @@ -19,5 +19,6 @@ import { UserGroupPermissionListService } from './user-group-permission-list.ser useExisting: UserGroupPermissionListService, }, ], + standalone: false, }) export class UserGroupPermissionListComponent {} diff --git a/feature-libs/organization/administration/components/user-group/users/assigned/user-group-assigned-user-list.component.ts b/feature-libs/organization/administration/components/user-group/users/assigned/user-group-assigned-user-list.component.ts index 1aed0833112..bcce92c6162 100644 --- a/feature-libs/organization/administration/components/user-group/users/assigned/user-group-assigned-user-list.component.ts +++ b/feature-libs/organization/administration/components/user-group/users/assigned/user-group-assigned-user-list.component.ts @@ -19,5 +19,6 @@ import { UserGroupAssignedUserListService } from './user-group-assigned-user-lis useExisting: UserGroupAssignedUserListService, }, ], + standalone: false, }) export class UserGroupAssignedUserListComponent {} diff --git a/feature-libs/organization/administration/components/user-group/users/user-group-user-list.component.spec.ts b/feature-libs/organization/administration/components/user-group/users/user-group-user-list.component.spec.ts index 837bed0c461..f72c49e2988 100644 --- a/feature-libs/organization/administration/components/user-group/users/user-group-user-list.component.spec.ts +++ b/feature-libs/organization/administration/components/user-group/users/user-group-user-list.component.spec.ts @@ -19,7 +19,11 @@ class MockCurrentUserGroupService { key$ = of(mockKey); } -@Component({ selector: 'cx-org-sub-list', template: '' }) +@Component({ + selector: 'cx-org-sub-list', + template: '', + standalone: false, +}) class MockSubListComponent { messageService = { add(_message) {}, diff --git a/feature-libs/organization/administration/components/user-group/users/user-group-user-list.component.ts b/feature-libs/organization/administration/components/user-group/users/user-group-user-list.component.ts index 33983e7a722..61c380efca9 100644 --- a/feature-libs/organization/administration/components/user-group/users/user-group-user-list.component.ts +++ b/feature-libs/organization/administration/components/user-group/users/user-group-user-list.component.ts @@ -26,6 +26,7 @@ import { UserGroupUserListService } from './user-group-user-list.service'; useExisting: UserGroupUserListService, }, ], + standalone: false, }) export class UserGroupUserListComponent { constructor( diff --git a/feature-libs/organization/administration/components/user/approvers/assigned/user-assigned-approver-list.component.ts b/feature-libs/organization/administration/components/user/approvers/assigned/user-assigned-approver-list.component.ts index f64c19806eb..44d4eb21e6d 100644 --- a/feature-libs/organization/administration/components/user/approvers/assigned/user-assigned-approver-list.component.ts +++ b/feature-libs/organization/administration/components/user/approvers/assigned/user-assigned-approver-list.component.ts @@ -19,5 +19,6 @@ import { UserAssignedApproverListService } from './user-assigned-approver-list.s useExisting: UserAssignedApproverListService, }, ], + standalone: false, }) export class UserAssignedApproverListComponent {} diff --git a/feature-libs/organization/administration/components/user/approvers/user-approver-list.component.ts b/feature-libs/organization/administration/components/user/approvers/user-approver-list.component.ts index cb5de2f0122..8cfc2491ed4 100644 --- a/feature-libs/organization/administration/components/user/approvers/user-approver-list.component.ts +++ b/feature-libs/organization/administration/components/user/approvers/user-approver-list.component.ts @@ -19,5 +19,6 @@ import { UserApproverListService } from './user-approver-list.service'; useExisting: UserApproverListService, }, ], + standalone: false, }) export class UserApproverListComponent {} diff --git a/feature-libs/organization/administration/components/user/change-password-form/user-change-password-form.component.spec.ts b/feature-libs/organization/administration/components/user/change-password-form/user-change-password-form.component.spec.ts index 607b962055e..84a45957c3a 100644 --- a/feature-libs/organization/administration/components/user/change-password-form/user-change-password-form.component.spec.ts +++ b/feature-libs/organization/administration/components/user/change-password-form/user-change-password-form.component.spec.ts @@ -33,6 +33,7 @@ class MockUserChangePasswordFormService { @Directive({ // eslint-disable-next-line @angular-eslint/directive-selector selector: '[cxFocus]', + standalone: false, }) export class MockKeyboadFocusDirective { @Input('cxFocus') config: FocusConfig = {}; diff --git a/feature-libs/organization/administration/components/user/change-password-form/user-change-password-form.component.ts b/feature-libs/organization/administration/components/user/change-password-form/user-change-password-form.component.ts index af235ce430e..7381e22731a 100644 --- a/feature-libs/organization/administration/components/user/change-password-form/user-change-password-form.component.ts +++ b/feature-libs/organization/administration/components/user/change-password-form/user-change-password-form.component.ts @@ -19,6 +19,7 @@ import { UserChangePasswordFormService } from './user-change-password-form.servi templateUrl: './user-change-password-form.component.html', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'content-wrapper' }, + standalone: false, }) export class UserChangePasswordFormComponent { form$: Observable = this.itemService.current$.pipe( diff --git a/feature-libs/organization/administration/components/user/details-cell/user-details-cell.component.ts b/feature-libs/organization/administration/components/user/details-cell/user-details-cell.component.ts index ad14f7536dd..61f8bb9edeb 100644 --- a/feature-libs/organization/administration/components/user/details-cell/user-details-cell.component.ts +++ b/feature-libs/organization/administration/components/user/details-cell/user-details-cell.component.ts @@ -17,6 +17,7 @@ import { selector: 'cx-org-user-details-cell', templateUrl: './user-details-cell.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class UserDetailsCellComponent extends CellComponent { b2bUserModel: B2BUser; diff --git a/feature-libs/organization/administration/components/user/details/user-details.component.spec.ts b/feature-libs/organization/administration/components/user/details/user-details.component.spec.ts index c55a54debc6..a46394dbc06 100644 --- a/feature-libs/organization/administration/components/user/details/user-details.component.spec.ts +++ b/feature-libs/organization/administration/components/user/details/user-details.component.spec.ts @@ -68,6 +68,7 @@ class MockB2BUserService implements Partial { @Directive({ // eslint-disable-next-line @angular-eslint/directive-selector selector: '[cxFocus]', + standalone: false, }) export class MockKeyboadFocusDirective { @Input('cxFocus') config: FocusConfig = {}; diff --git a/feature-libs/organization/administration/components/user/details/user-details.component.ts b/feature-libs/organization/administration/components/user/details/user-details.component.ts index 2845b25eb2e..42eec1e64a2 100644 --- a/feature-libs/organization/administration/components/user/details/user-details.component.ts +++ b/feature-libs/organization/administration/components/user/details/user-details.component.ts @@ -23,6 +23,7 @@ import { B2BUserService } from '@spartacus/organization/administration/core'; }, ], host: { class: 'content-wrapper' }, + standalone: false, }) export class UserDetailsComponent { userGuardSubscription: Subscription; diff --git a/feature-libs/organization/administration/components/user/form/user-form.component.ts b/feature-libs/organization/administration/components/user/form/user-form.component.ts index 64ce86be88b..ace083e1286 100644 --- a/feature-libs/organization/administration/components/user/form/user-form.component.ts +++ b/feature-libs/organization/administration/components/user/form/user-form.component.ts @@ -44,6 +44,7 @@ import { UserItemService } from '../services/user-item.service'; useExisting: CurrentUserService, }, ], + standalone: false, }) export class UserFormComponent implements OnInit { form: UntypedFormGroup | null = this.itemService.getForm(); diff --git a/feature-libs/organization/administration/components/user/permissions/assigned/user-assigned-permission-list.component.ts b/feature-libs/organization/administration/components/user/permissions/assigned/user-assigned-permission-list.component.ts index 23da1933d69..eae3434a7bf 100644 --- a/feature-libs/organization/administration/components/user/permissions/assigned/user-assigned-permission-list.component.ts +++ b/feature-libs/organization/administration/components/user/permissions/assigned/user-assigned-permission-list.component.ts @@ -19,5 +19,6 @@ import { UserAssignedPermissionListService } from './user-assigned-permission-li useExisting: UserAssignedPermissionListService, }, ], + standalone: false, }) export class UserAssignedPermissionListComponent {} diff --git a/feature-libs/organization/administration/components/user/permissions/user-permission-list.component.ts b/feature-libs/organization/administration/components/user/permissions/user-permission-list.component.ts index 02787eda9d1..18ce1c8fb29 100644 --- a/feature-libs/organization/administration/components/user/permissions/user-permission-list.component.ts +++ b/feature-libs/organization/administration/components/user/permissions/user-permission-list.component.ts @@ -19,5 +19,6 @@ import { UserPermissionListService } from './user-permission-list.service'; useExisting: UserPermissionListService, }, ], + standalone: false, }) export class UserPermissionListComponent {} diff --git a/feature-libs/organization/administration/components/user/user-groups/assigned/user-assigned-user-group-list.component.ts b/feature-libs/organization/administration/components/user/user-groups/assigned/user-assigned-user-group-list.component.ts index f39a378d6da..c868359962c 100644 --- a/feature-libs/organization/administration/components/user/user-groups/assigned/user-assigned-user-group-list.component.ts +++ b/feature-libs/organization/administration/components/user/user-groups/assigned/user-assigned-user-group-list.component.ts @@ -19,5 +19,6 @@ import { UserAssignedUserGroupListService } from './user-assigned-user-group-lis useExisting: UserAssignedUserGroupListService, }, ], + standalone: false, }) export class UserAssignedUserGroupListComponent {} diff --git a/feature-libs/organization/administration/components/user/user-groups/user-user-group-list.component.ts b/feature-libs/organization/administration/components/user/user-groups/user-user-group-list.component.ts index fabcc689870..23038d89300 100644 --- a/feature-libs/organization/administration/components/user/user-groups/user-user-group-list.component.ts +++ b/feature-libs/organization/administration/components/user/user-groups/user-user-group-list.component.ts @@ -19,5 +19,6 @@ import { UserUserGroupListService } from './user-user-group-list.service'; useExisting: UserUserGroupListService, }, ], + standalone: false, }) export class UserUserGroupListComponent {} diff --git a/feature-libs/organization/order-approval/components/details/order-approval-detail-form/order-approval-detail-form.component.spec.ts b/feature-libs/organization/order-approval/components/details/order-approval-detail-form/order-approval-detail-form.component.spec.ts index f3a870d8b16..d2d833e5fd3 100644 --- a/feature-libs/organization/order-approval/components/details/order-approval-detail-form/order-approval-detail-form.component.spec.ts +++ b/feature-libs/organization/order-approval/components/details/order-approval-detail-form/order-approval-detail-form.component.spec.ts @@ -46,6 +46,7 @@ class MockOrderApprovalDetailService { @Component({ selector: 'cx-form-errors', template: '', + standalone: false, }) class MockFormErrorsComponent { @Input() control: UntypedFormControl; @@ -56,11 +57,13 @@ class MockFormErrorsComponent { @Component({ selector: 'cx-spinner', template: '', + standalone: false, }) class MockSpinnerComponent {} @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform() {} diff --git a/feature-libs/organization/order-approval/components/details/order-approval-detail-form/order-approval-detail-form.component.ts b/feature-libs/organization/order-approval/components/details/order-approval-detail-form/order-approval-detail-form.component.ts index fbee00ef851..2e475d63876 100644 --- a/feature-libs/organization/order-approval/components/details/order-approval-detail-form/order-approval-detail-form.component.ts +++ b/feature-libs/organization/order-approval/components/details/order-approval-detail-form/order-approval-detail-form.component.ts @@ -23,6 +23,7 @@ import { OrderApprovalDetailService } from '../order-approval-detail.service'; selector: 'cx-order-approval-detail-form', templateUrl: './order-approval-detail-form.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class OrderApprovalDetailFormComponent implements OnDestroy { approvalDecisionValue = OrderApprovalDecisionValue; diff --git a/feature-libs/organization/order-approval/components/details/order-detail-permission-results/order-detail-permission-results.component.ts b/feature-libs/organization/order-approval/components/details/order-detail-permission-results/order-detail-permission-results.component.ts index 49918d7e764..4d49593ce3c 100644 --- a/feature-libs/organization/order-approval/components/details/order-detail-permission-results/order-detail-permission-results.component.ts +++ b/feature-libs/organization/order-approval/components/details/order-detail-permission-results/order-detail-permission-results.component.ts @@ -14,6 +14,7 @@ import { Observable } from 'rxjs'; selector: 'cx-order-detail-permission-results', templateUrl: './order-detail-permission-results.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class OrderDetailPermissionResultsComponent { order$: Observable = this.orderDetailsService.getOrderDetails(); diff --git a/feature-libs/organization/order-approval/components/list/order-approval-list.component.spec.ts b/feature-libs/organization/order-approval/components/list/order-approval-list.component.spec.ts index c514324b82b..5172c007ade 100644 --- a/feature-libs/organization/order-approval/components/list/order-approval-list.component.spec.ts +++ b/feature-libs/organization/order-approval/components/list/order-approval-list.component.spec.ts @@ -77,6 +77,7 @@ class MockActivatedRoute { @Component({ template: '', selector: 'cx-sorting', + standalone: false, }) class MockSortingComponent { @Input() sortOptions; diff --git a/feature-libs/organization/order-approval/components/list/order-approval-list.component.ts b/feature-libs/organization/order-approval/components/list/order-approval-list.component.ts index 62c25b0442e..ffbd17559ba 100644 --- a/feature-libs/organization/order-approval/components/list/order-approval-list.component.ts +++ b/feature-libs/organization/order-approval/components/list/order-approval-list.component.ts @@ -21,6 +21,7 @@ import { OrderApprovalService } from '../../core/services/order-approval.service selector: 'cx-order-approval-list', templateUrl: './order-approval-list.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class OrderApprovalListComponent implements OnInit { constructor( diff --git a/feature-libs/organization/package.json b/feature-libs/organization/package.json index 526513e61b8..59db5ab299b 100644 --- a/feature-libs/organization/package.json +++ b/feature-libs/organization/package.json @@ -25,14 +25,14 @@ "tslib": "^2.8.1" }, "peerDependencies": { - "@angular-devkit/schematics": "^18.2.9", - "@angular/common": "^18.2.9", - "@angular/core": "^18.2.9", - "@angular/forms": "^18.2.9", - "@angular/router": "^18.2.9", - "@ng-select/ng-select": "^13.9.1", - "@ngrx/effects": "^18.1.1", - "@ngrx/store": "^18.1.1", + "@angular-devkit/schematics": "^19.0.4", + "@angular/common": "^19.0.3", + "@angular/core": "^19.0.3", + "@angular/forms": "^19.0.3", + "@angular/router": "^19.0.3", + "@ng-select/ng-select": "^14.1.0", + "@ngrx/effects": "^19.0.0", + "@ngrx/store": "^19.0.0", "@spartacus/cart": "2211.32.0", "@spartacus/core": "2211.32.0", "@spartacus/order": "2211.32.0", diff --git a/feature-libs/organization/schematics/add-organization/__snapshots__/index_spec.ts.snap b/feature-libs/organization/schematics/add-organization/__snapshots__/index_spec.ts.snap index b944e03229a..eec83f0b0fb 100644 --- a/feature-libs/organization/schematics/add-organization/__snapshots__/index_spec.ts.snap +++ b/feature-libs/organization/schematics/add-organization/__snapshots__/index_spec.ts.snap @@ -148,7 +148,12 @@ exports[`Spartacus Organization schematics: ng-add Account summary feature gener "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } }, "configurations": { @@ -161,8 +166,8 @@ exports[`Spartacus Organization schematics: ng-add Account summary feature gener }, { "type": "anyComponentStyle", - "maximumWarning": "2kB", - "maximumError": "4kB" + "maximumWarning": "4kB", + "maximumError": "8kB" } ], "outputHashing": "all" @@ -213,7 +218,12 @@ exports[`Spartacus Organization schematics: ng-add Account summary feature gener "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } } } @@ -371,7 +381,12 @@ exports[`Spartacus Organization schematics: ng-add Administration feature genera "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } }, "configurations": { @@ -384,8 +399,8 @@ exports[`Spartacus Organization schematics: ng-add Administration feature genera }, { "type": "anyComponentStyle", - "maximumWarning": "2kB", - "maximumError": "4kB" + "maximumWarning": "4kB", + "maximumError": "8kB" } ], "outputHashing": "all" @@ -436,7 +451,12 @@ exports[`Spartacus Organization schematics: ng-add Administration feature genera "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } } } @@ -594,7 +614,12 @@ exports[`Spartacus Organization schematics: ng-add Order approval feature genera "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } }, "configurations": { @@ -607,8 +632,8 @@ exports[`Spartacus Organization schematics: ng-add Order approval feature genera }, { "type": "anyComponentStyle", - "maximumWarning": "2kB", - "maximumError": "4kB" + "maximumWarning": "4kB", + "maximumError": "8kB" } ], "outputHashing": "all" @@ -659,7 +684,12 @@ exports[`Spartacus Organization schematics: ng-add Order approval feature genera "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } } } @@ -817,7 +847,12 @@ exports[`Spartacus Organization schematics: ng-add Unit order feature general se "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } }, "configurations": { @@ -830,8 +865,8 @@ exports[`Spartacus Organization schematics: ng-add Unit order feature general se }, { "type": "anyComponentStyle", - "maximumWarning": "2kB", - "maximumError": "4kB" + "maximumWarning": "4kB", + "maximumError": "8kB" } ], "outputHashing": "all" @@ -882,7 +917,12 @@ exports[`Spartacus Organization schematics: ng-add Unit order feature general se "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } } } @@ -1040,7 +1080,12 @@ exports[`Spartacus Organization schematics: ng-add User registration feature gen "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } }, "configurations": { @@ -1053,8 +1098,8 @@ exports[`Spartacus Organization schematics: ng-add User registration feature gen }, { "type": "anyComponentStyle", - "maximumWarning": "2kB", - "maximumError": "4kB" + "maximumWarning": "4kB", + "maximumError": "8kB" } ], "outputHashing": "all" @@ -1105,7 +1150,12 @@ exports[`Spartacus Organization schematics: ng-add User registration feature gen "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } } } diff --git a/feature-libs/organization/unit-order/components/unit-level-order-detail/unit-level-order-overview/unit-level-order-overview.component.spec.ts b/feature-libs/organization/unit-order/components/unit-level-order-detail/unit-level-order-overview/unit-level-order-overview.component.spec.ts index f28086fef1e..932aeb1145c 100644 --- a/feature-libs/organization/unit-order/components/unit-level-order-detail/unit-level-order-overview/unit-level-order-overview.component.spec.ts +++ b/feature-libs/organization/unit-order/components/unit-level-order-detail/unit-level-order-overview/unit-level-order-overview.component.spec.ts @@ -14,7 +14,11 @@ import { EMPTY, Observable, of } from 'rxjs'; import { UnitLevelOrderDetailService } from '../unit-level-order-detail.service'; import { UnitLevelOrderOverviewComponent } from './unit-level-order-overview.component'; -@Component({ selector: 'cx-card', template: '' }) +@Component({ + selector: 'cx-card', + template: '', + standalone: false, +}) class MockCardComponent { @Input() content: Card; diff --git a/feature-libs/organization/unit-order/components/unit-level-order-detail/unit-level-order-overview/unit-level-order-overview.component.ts b/feature-libs/organization/unit-order/components/unit-level-order-detail/unit-level-order-overview/unit-level-order-overview.component.ts index 837c065270d..d32e7281ffd 100644 --- a/feature-libs/organization/unit-order/components/unit-level-order-detail/unit-level-order-overview/unit-level-order-overview.component.ts +++ b/feature-libs/organization/unit-order/components/unit-level-order-detail/unit-level-order-overview/unit-level-order-overview.component.ts @@ -23,6 +23,7 @@ import { UnitLevelOrderDetailService } from '../unit-level-order-detail.service' selector: 'cx-unit-level-order-overview', templateUrl: './unit-level-order-overview.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class UnitLevelOrderOverviewComponent implements OnInit { constructor( diff --git a/feature-libs/organization/unit-order/components/unit-level-order-history/filter/unit-level-order-history-filter.component.spec.ts b/feature-libs/organization/unit-order/components/unit-level-order-history/filter/unit-level-order-history-filter.component.spec.ts index cac533417be..60b5b5693c9 100644 --- a/feature-libs/organization/unit-order/components/unit-level-order-history/filter/unit-level-order-history-filter.component.spec.ts +++ b/feature-libs/organization/unit-order/components/unit-level-order-history/filter/unit-level-order-history-filter.component.spec.ts @@ -21,6 +21,7 @@ import { UnitLevelOrderHistoryFilterComponent } from './unit-level-order-history @Pipe({ name: 'cxTranslate', + standalone: false, }) class MockTranslatePipe implements PipeTransform { transform(): any {} @@ -29,6 +30,7 @@ class MockTranslatePipe implements PipeTransform { @Component({ template: '', selector: 'cx-pagination', + standalone: false, }) class MockPaginationComponent { @Input() pagination: PaginationModel; @@ -38,6 +40,7 @@ class MockPaginationComponent { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; diff --git a/feature-libs/organization/unit-order/components/unit-level-order-history/filter/unit-level-order-history-filter.component.ts b/feature-libs/organization/unit-order/components/unit-level-order-history/filter/unit-level-order-history-filter.component.ts index 98217106a02..2fafe5aa42d 100644 --- a/feature-libs/organization/unit-order/components/unit-level-order-history/filter/unit-level-order-history-filter.component.ts +++ b/feature-libs/organization/unit-order/components/unit-level-order-history/filter/unit-level-order-history-filter.component.ts @@ -19,6 +19,7 @@ import { ICON_TYPE } from '@spartacus/storefront'; @Component({ selector: 'cx-unit-level-order-history-filter', templateUrl: './unit-level-order-history-filter.component.html', + standalone: false, }) export class UnitLevelOrderHistoryFilterComponent { iconTypes = ICON_TYPE; diff --git a/feature-libs/organization/unit-order/components/unit-level-order-history/unit-level-order-history.component.spec.ts b/feature-libs/organization/unit-order/components/unit-level-order-history/unit-level-order-history.component.spec.ts index a457724aba4..49919b77d44 100644 --- a/feature-libs/organization/unit-order/components/unit-level-order-history/unit-level-order-history.component.spec.ts +++ b/feature-libs/organization/unit-order/components/unit-level-order-history/unit-level-order-history.component.spec.ts @@ -66,6 +66,7 @@ const mockEmptyOrderList: OrderHistoryList = { @Component({ template: '', selector: 'cx-pagination', + standalone: false, }) class MockPaginationComponent { @Input() pagination: PaginationModel; @@ -75,6 +76,7 @@ class MockPaginationComponent { @Component({ template: '', selector: 'cx-sorting', + standalone: false, }) class MockSortingComponent { @Input() sortOptions: SortModel; @@ -86,6 +88,7 @@ class MockSortingComponent { @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform() {} @@ -139,6 +142,7 @@ class MockTranslationService { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; @@ -147,6 +151,7 @@ class MockCxIconComponent { @Component({ selector: 'cx-total', template: '', + standalone: false, }) class MockTotalComponent { @Input() pagination: any; diff --git a/feature-libs/organization/unit-order/components/unit-level-order-history/unit-level-order-history.component.ts b/feature-libs/organization/unit-order/components/unit-level-order-history/unit-level-order-history.component.ts index 9020ccfef5f..6b3ce470f77 100644 --- a/feature-libs/organization/unit-order/components/unit-level-order-history/unit-level-order-history.component.ts +++ b/feature-libs/organization/unit-order/components/unit-level-order-history/unit-level-order-history.component.ts @@ -20,6 +20,7 @@ import { map, tap } from 'rxjs/operators'; selector: 'cx-unit-level-order-history', templateUrl: './unit-level-order-history.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class UnitLevelOrderHistoryComponent implements OnDestroy { private PAGE_SIZE = 5; diff --git a/feature-libs/organization/user-registration/components/form/user-registration-form.component.spec.ts b/feature-libs/organization/user-registration/components/form/user-registration-form.component.spec.ts index 57270471156..aa64011e4bf 100644 --- a/feature-libs/organization/user-registration/components/form/user-registration-form.component.spec.ts +++ b/feature-libs/organization/user-registration/components/form/user-registration-form.component.spec.ts @@ -115,6 +115,7 @@ class MockUserRegistrationFormService @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform() {} diff --git a/feature-libs/organization/user-registration/components/form/user-registration-form.component.ts b/feature-libs/organization/user-registration/components/form/user-registration-form.component.ts index 5d784ea1f45..4cafd74636f 100644 --- a/feature-libs/organization/user-registration/components/form/user-registration-form.component.ts +++ b/feature-libs/organization/user-registration/components/form/user-registration-form.component.ts @@ -25,6 +25,7 @@ import { UserRegistrationFormService } from './user-registration-form.service'; selector: 'cx-user-registration-form', templateUrl: './user-registration-form.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class UserRegistrationFormComponent implements OnDestroy { titles$: Observable = this.userRegistrationFormService.getTitles(); diff --git a/feature-libs/pdf-invoices/.eslintrc.json b/feature-libs/pdf-invoices/.eslintrc.json index 862b5a870b0..9895500871d 100644 --- a/feature-libs/pdf-invoices/.eslintrc.json +++ b/feature-libs/pdf-invoices/.eslintrc.json @@ -1,4 +1,9 @@ { "extends": "../../.eslintrc.json", - "ignorePatterns": ["schematics/**/*.d.ts"] + "ignorePatterns": ["schematics/**/*.d.ts"], + "overrides": [ + { + "files": ["*.ts"] + } + ] } diff --git a/feature-libs/pdf-invoices/components/invoices-list/invoices-list.component.spec.ts b/feature-libs/pdf-invoices/components/invoices-list/invoices-list.component.spec.ts index e70b8e5c133..6159441e6d7 100644 --- a/feature-libs/pdf-invoices/components/invoices-list/invoices-list.component.spec.ts +++ b/feature-libs/pdf-invoices/components/invoices-list/invoices-list.component.spec.ts @@ -109,6 +109,7 @@ const mockOrderInvoiceList: OrderInvoiceList = { @Component({ template: '', selector: 'cx-pagination', + standalone: false, }) class MockPaginationComponent { @Input() pagination: any; @@ -117,6 +118,7 @@ class MockPaginationComponent { @Component({ template: '', selector: 'cx-sorting', + standalone: false, }) class MockSortingComponent { @Input() sortOptions: any; diff --git a/feature-libs/pdf-invoices/components/invoices-list/invoices-list.component.ts b/feature-libs/pdf-invoices/components/invoices-list/invoices-list.component.ts index 2744bdfa8b2..84495f443f1 100644 --- a/feature-libs/pdf-invoices/components/invoices-list/invoices-list.component.ts +++ b/feature-libs/pdf-invoices/components/invoices-list/invoices-list.component.ts @@ -42,6 +42,7 @@ import { catchError, skip, switchMap, take, tap } from 'rxjs/operators'; selector: 'cx-invoices-list', templateUrl: './invoices-list.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class InvoicesListComponent implements OnInit, OnDestroy { /* For Enum use in HTML */ diff --git a/feature-libs/pdf-invoices/package.json b/feature-libs/pdf-invoices/package.json index b745240ae4b..9ec5db00139 100644 --- a/feature-libs/pdf-invoices/package.json +++ b/feature-libs/pdf-invoices/package.json @@ -25,10 +25,10 @@ "tslib": "^2.8.1" }, "peerDependencies": { - "@angular-devkit/schematics": "^18.2.9", - "@angular/common": "^18.2.9", - "@angular/core": "^18.2.9", - "@angular/forms": "^18.2.9", + "@angular-devkit/schematics": "^19.0.4", + "@angular/common": "^19.0.3", + "@angular/core": "^19.0.3", + "@angular/forms": "^19.0.3", "@spartacus/core": "2211.32.0", "@spartacus/schematics": "2211.32.0", "@spartacus/storefront": "2211.32.0", diff --git a/feature-libs/pdf-invoices/schematics/add-pdf-invoices/__snapshots__/index_spec.ts.snap b/feature-libs/pdf-invoices/schematics/add-pdf-invoices/__snapshots__/index_spec.ts.snap index 952484cfea8..882ed8aac0d 100644 --- a/feature-libs/pdf-invoices/schematics/add-pdf-invoices/__snapshots__/index_spec.ts.snap +++ b/feature-libs/pdf-invoices/schematics/add-pdf-invoices/__snapshots__/index_spec.ts.snap @@ -59,7 +59,12 @@ exports[`Spartacus PDF Invoices schematics: ng-add PDF Invoices feature general "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } }, "configurations": { @@ -72,8 +77,8 @@ exports[`Spartacus PDF Invoices schematics: ng-add PDF Invoices feature general }, { "type": "anyComponentStyle", - "maximumWarning": "2kB", - "maximumError": "4kB" + "maximumWarning": "4kB", + "maximumError": "8kB" } ], "outputHashing": "all" @@ -124,7 +129,12 @@ exports[`Spartacus PDF Invoices schematics: ng-add PDF Invoices feature general "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } } } diff --git a/feature-libs/pickup-in-store/.eslintrc.json b/feature-libs/pickup-in-store/.eslintrc.json index 862b5a870b0..9895500871d 100644 --- a/feature-libs/pickup-in-store/.eslintrc.json +++ b/feature-libs/pickup-in-store/.eslintrc.json @@ -1,4 +1,9 @@ { "extends": "../../.eslintrc.json", - "ignorePatterns": ["schematics/**/*.d.ts"] + "ignorePatterns": ["schematics/**/*.d.ts"], + "overrides": [ + { + "files": ["*.ts"] + } + ] } diff --git a/feature-libs/pickup-in-store/components/container/cart-pickup-options-container/cart-pickup-options-container.component.ts b/feature-libs/pickup-in-store/components/container/cart-pickup-options-container/cart-pickup-options-container.component.ts index 2b13c8cffa9..0274f0774ab 100644 --- a/feature-libs/pickup-in-store/components/container/cart-pickup-options-container/cart-pickup-options-container.component.ts +++ b/feature-libs/pickup-in-store/components/container/cart-pickup-options-container/cart-pickup-options-container.component.ts @@ -78,6 +78,7 @@ export function orderEntryWithRequiredFields( @Component({ selector: 'cx-cart-pickup-options-container', templateUrl: 'cart-pickup-options-container.component.html', + standalone: false, }) export class CartPickupOptionsContainerComponent implements OnInit, OnDestroy { // TODO: Remove element reference once 'a11yDialogTriggerRefocus' feature flag is removed. diff --git a/feature-libs/pickup-in-store/components/container/my-preferred-store/my-preferred-store.component.ts b/feature-libs/pickup-in-store/components/container/my-preferred-store/my-preferred-store.component.ts index 401fcdab1e5..00994192350 100644 --- a/feature-libs/pickup-in-store/components/container/my-preferred-store/my-preferred-store.component.ts +++ b/feature-libs/pickup-in-store/components/container/my-preferred-store/my-preferred-store.component.ts @@ -44,6 +44,7 @@ interface PreferredStoreContent { selector: 'cx-my-preferred-store', templateUrl: 'my-preferred-store.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class MyPreferredStoreComponent implements OnInit { preferredStore$: Observable; diff --git a/feature-libs/pickup-in-store/components/container/pdp-pickup-options-container/pdp-pickup-options-container.component.spec.ts b/feature-libs/pickup-in-store/components/container/pdp-pickup-options-container/pdp-pickup-options-container.component.spec.ts index 4acea335894..21c75cbf315 100644 --- a/feature-libs/pickup-in-store/components/container/pdp-pickup-options-container/pdp-pickup-options-container.component.spec.ts +++ b/feature-libs/pickup-in-store/components/container/pdp-pickup-options-container/pdp-pickup-options-container.component.spec.ts @@ -78,9 +78,11 @@ class MockCurrentLocationService { altitudeAccuracy: 0, heading: 0, speed: 0, + toJSON: () => {}, }, timestamp: 0, - }); + toJSON: () => {}, + } as GeolocationPosition); } } diff --git a/feature-libs/pickup-in-store/components/container/pdp-pickup-options-container/pdp-pickup-options-container.component.ts b/feature-libs/pickup-in-store/components/container/pdp-pickup-options-container/pdp-pickup-options-container.component.ts index b416ba30bf1..90d95fca4f8 100644 --- a/feature-libs/pickup-in-store/components/container/pdp-pickup-options-container/pdp-pickup-options-container.component.ts +++ b/feature-libs/pickup-in-store/components/container/pdp-pickup-options-container/pdp-pickup-options-container.component.ts @@ -56,6 +56,7 @@ function isProductWithCode( @Component({ selector: 'cx-cart-pickup-options-container', templateUrl: 'pdp-pickup-options-container.component.html', + standalone: false, }) export class PdpPickupOptionsContainerComponent implements OnInit, OnDestroy { // TODO: Remove element reference once 'a11yDialogTriggerRefocus' feature flag is removed. diff --git a/feature-libs/pickup-in-store/components/container/pickup-in-store-order-consignment/pickup-in-store-order-consignment-container.component.ts b/feature-libs/pickup-in-store/components/container/pickup-in-store-order-consignment/pickup-in-store-order-consignment-container.component.ts index e48bbc0bbf8..ddd2f9a5651 100644 --- a/feature-libs/pickup-in-store/components/container/pickup-in-store-order-consignment/pickup-in-store-order-consignment-container.component.ts +++ b/feature-libs/pickup-in-store/components/container/pickup-in-store-order-consignment/pickup-in-store-order-consignment-container.component.ts @@ -19,6 +19,7 @@ export type IOutletContextData = { item: Consignment }; @Component({ selector: 'cx-pickup-in-store-order-consignment', templateUrl: './pickup-in-store-order-consignment-container.component.html', + standalone: false, }) export class PickupInStoreOrderConsignmentContainerComponent implements OnInit { constructor( diff --git a/feature-libs/pickup-in-store/components/container/pickup-info-container/pickup-info-container.component.ts b/feature-libs/pickup-in-store/components/container/pickup-info-container/pickup-info-container.component.ts index fafcd4d0cf2..6d1536e7ed9 100644 --- a/feature-libs/pickup-in-store/components/container/pickup-info-container/pickup-info-container.component.ts +++ b/feature-libs/pickup-in-store/components/container/pickup-info-container/pickup-info-container.component.ts @@ -14,6 +14,7 @@ import { filter, map, mergeMap, take, tap } from 'rxjs/operators'; @Component({ selector: 'cx-pickup-info-container', templateUrl: './pickup-info-container.component.html', + standalone: false, }) export class PickupInfoContainerComponent implements OnInit { storesDetailsData: Partial[]; diff --git a/feature-libs/pickup-in-store/components/container/pickup-items-details/pickup-items-details.component.ts b/feature-libs/pickup-in-store/components/container/pickup-items-details/pickup-items-details.component.ts index 2b715eb072e..9d6310dba66 100644 --- a/feature-libs/pickup-in-store/components/container/pickup-items-details/pickup-items-details.component.ts +++ b/feature-libs/pickup-in-store/components/container/pickup-items-details/pickup-items-details.component.ts @@ -21,6 +21,7 @@ import { DeliveryPointsService } from '../../services/delivery-points.service'; selector: 'cx-pick-up-in-store-items-details', templateUrl: './pickup-items-details.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class PickUpItemsDetailsComponent implements OnInit { @Input() showEdit: boolean; diff --git a/feature-libs/pickup-in-store/components/container/pickup-option-dialog/pickup-option-dialog.component.ts b/feature-libs/pickup-in-store/components/container/pickup-option-dialog/pickup-option-dialog.component.ts index 0a04caa8e7e..92c132e9c18 100644 --- a/feature-libs/pickup-in-store/components/container/pickup-option-dialog/pickup-option-dialog.component.ts +++ b/feature-libs/pickup-in-store/components/container/pickup-option-dialog/pickup-option-dialog.component.ts @@ -37,6 +37,7 @@ import { filter, map, take, tap } from 'rxjs/operators'; @Component({ selector: 'cx-pickup-option-dialog', templateUrl: './pickup-option-dialog.component.html', + standalone: false, }) export class PickupOptionDialogComponent implements OnInit, OnDestroy { productCode: string; diff --git a/feature-libs/pickup-in-store/components/container/set-preferred-store/set-preferred-store.component.spec.ts b/feature-libs/pickup-in-store/components/container/set-preferred-store/set-preferred-store.component.spec.ts index 2fe0be79102..42b0276ff43 100644 --- a/feature-libs/pickup-in-store/components/container/set-preferred-store/set-preferred-store.component.spec.ts +++ b/feature-libs/pickup-in-store/components/container/set-preferred-store/set-preferred-store.component.spec.ts @@ -121,6 +121,7 @@ describe('SetPreferredStoreComponent with outlet.context$', () => { @Component({ selector: 'cx-set-preferred-store', template: '', + standalone: false, }) export class SetPreferredStoreStubComponent { @Input() pointOfServiceName: PointOfServiceNames; diff --git a/feature-libs/pickup-in-store/components/container/set-preferred-store/set-preferred-store.component.ts b/feature-libs/pickup-in-store/components/container/set-preferred-store/set-preferred-store.component.ts index 77a03fdf887..de1dd58eef7 100644 --- a/feature-libs/pickup-in-store/components/container/set-preferred-store/set-preferred-store.component.ts +++ b/feature-libs/pickup-in-store/components/container/set-preferred-store/set-preferred-store.component.ts @@ -17,6 +17,7 @@ import { Observable, Subscription } from 'rxjs'; @Component({ selector: 'cx-set-preferred-store', templateUrl: './set-preferred-store.component.html', + standalone: false, }) export class SetPreferredStoreComponent implements OnInit, OnDestroy { readonly ICON_TYPE = ICON_TYPE; diff --git a/feature-libs/pickup-in-store/components/container/store-list/store-list.component.spec.ts b/feature-libs/pickup-in-store/components/container/store-list/store-list.component.spec.ts index 60ddd7048e0..b83d9cbca36 100644 --- a/feature-libs/pickup-in-store/components/container/store-list/store-list.component.spec.ts +++ b/feature-libs/pickup-in-store/components/container/store-list/store-list.component.spec.ts @@ -112,6 +112,7 @@ describe('StoreListComponent', () => { @Component({ selector: 'cx-store-list', template: '', + standalone: false, }) export class StoreListStubComponent { @Input() productCode: string; diff --git a/feature-libs/pickup-in-store/components/container/store-list/store-list.component.ts b/feature-libs/pickup-in-store/components/container/store-list/store-list.component.ts index eb2354958a0..2bcfbeabc21 100644 --- a/feature-libs/pickup-in-store/components/container/store-list/store-list.component.ts +++ b/feature-libs/pickup-in-store/components/container/store-list/store-list.component.ts @@ -19,6 +19,7 @@ import { Observable } from 'rxjs'; @Component({ selector: 'cx-store-list', templateUrl: 'store-list.component.html', + standalone: false, }) export class StoreListComponent implements OnInit { /** The product code for the stock levels at each location */ diff --git a/feature-libs/pickup-in-store/components/container/store-search/store-search.component.spec.ts b/feature-libs/pickup-in-store/components/container/store-search/store-search.component.spec.ts index 2f41d534350..8bb80199686 100644 --- a/feature-libs/pickup-in-store/components/container/store-search/store-search.component.spec.ts +++ b/feature-libs/pickup-in-store/components/container/store-search/store-search.component.spec.ts @@ -81,6 +81,7 @@ describe('StoreSearchComponent', () => { @Component({ selector: 'cx-store-search', template: '', + standalone: false, }) export class StoreSearchStubComponent { @Input() hideOutOfStock = false; diff --git a/feature-libs/pickup-in-store/components/container/store-search/store-search.component.ts b/feature-libs/pickup-in-store/components/container/store-search/store-search.component.ts index d44d35adfc9..f6b0266fdce 100644 --- a/feature-libs/pickup-in-store/components/container/store-search/store-search.component.ts +++ b/feature-libs/pickup-in-store/components/container/store-search/store-search.component.ts @@ -16,6 +16,7 @@ import { CurrentLocationService } from '../../services/current-location.service' @Component({ selector: 'cx-store-search', templateUrl: './store-search.component.html', + standalone: false, }) export class StoreSearchComponent { /** Whether the hide out of stock checkbox appears checked */ diff --git a/feature-libs/pickup-in-store/components/presentational/pickup-info/pickup-info.component.spec.ts b/feature-libs/pickup-in-store/components/presentational/pickup-info/pickup-info.component.spec.ts index 791f07bf07b..5221f79c527 100644 --- a/feature-libs/pickup-in-store/components/presentational/pickup-info/pickup-info.component.spec.ts +++ b/feature-libs/pickup-in-store/components/presentational/pickup-info/pickup-info.component.spec.ts @@ -38,6 +38,7 @@ describe('PickupInfoComponent', () => { @Component({ selector: 'cx-pickup-info', template: '', + standalone: false, }) export class PickupInfoStubComponent { @Input() storeDetails: PointOfService; diff --git a/feature-libs/pickup-in-store/components/presentational/pickup-info/pickup-info.component.ts b/feature-libs/pickup-in-store/components/presentational/pickup-info/pickup-info.component.ts index 692d148486c..a56c7b1e985 100644 --- a/feature-libs/pickup-in-store/components/presentational/pickup-info/pickup-info.component.ts +++ b/feature-libs/pickup-in-store/components/presentational/pickup-info/pickup-info.component.ts @@ -10,6 +10,7 @@ import { PointOfService } from '@spartacus/core'; @Component({ selector: 'cx-pickup-info', templateUrl: './pickup-info.component.html', + standalone: false, }) export class PickupInfoComponent { @Input() storeDetails: PointOfService; diff --git a/feature-libs/pickup-in-store/components/presentational/pickup-options/pickup-options.component.spec.ts b/feature-libs/pickup-in-store/components/presentational/pickup-options/pickup-options.component.spec.ts index a996aada2d7..4d9fa935bf4 100644 --- a/feature-libs/pickup-in-store/components/presentational/pickup-options/pickup-options.component.spec.ts +++ b/feature-libs/pickup-in-store/components/presentational/pickup-options/pickup-options.component.spec.ts @@ -20,6 +20,7 @@ import { PickupOptionsTabs } from './pickup-options.model'; @Component({ selector: 'cx-tab', template: `
`, + standalone: false, }) class MockTabComponent { @Input() disabled: boolean; @@ -31,6 +32,7 @@ class MockTabComponent { // if the feature flag is disabled. @Directive({ selector: '[cxFeature]', + standalone: false, }) export class MockRevertedFeatureDirective { constructor( @@ -362,6 +364,7 @@ describe('PickupOptionsComponent', () => { @Component({ selector: 'cx-pickup-options', template: '', + standalone: false, }) export class PickupOptionsStubComponent { @Input() selectedOption: PickupOption; diff --git a/feature-libs/pickup-in-store/components/presentational/pickup-options/pickup-options.component.ts b/feature-libs/pickup-in-store/components/presentational/pickup-options/pickup-options.component.ts index 9ca1ec5fb60..2c97b6a6f7d 100644 --- a/feature-libs/pickup-in-store/components/presentational/pickup-options/pickup-options.component.ts +++ b/feature-libs/pickup-in-store/components/presentational/pickup-options/pickup-options.component.ts @@ -6,6 +6,7 @@ import { AfterViewInit, + ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, @@ -14,16 +15,15 @@ import { Input, OnChanges, OnDestroy, + Optional, Output, - ViewChild, TemplateRef, - Optional, - ChangeDetectionStrategy, + ViewChild, } from '@angular/core'; import { FormControl, FormGroup } from '@angular/forms'; import { FeatureConfigService, useFeatureStyles } from '@spartacus/core'; import { PickupOption } from '@spartacus/pickup-in-store/root'; -import { TAB_MODE, Tab, TabComponent, TabConfig } from '@spartacus/storefront'; +import { Tab, TAB_MODE, TabComponent, TabConfig } from '@spartacus/storefront'; import { Subscription, take } from 'rxjs'; import { PickupOptionsTabs } from './pickup-options.model'; @@ -33,6 +33,7 @@ import { PickupOptionsTabs } from './pickup-options.model'; @Component({ selector: 'cx-pickup-options', templateUrl: './pickup-options.component.html', + standalone: false, changeDetection: ChangeDetectionStrategy.OnPush, }) export class PickupOptionsComponent @@ -153,6 +154,7 @@ export class PickupOptionsComponent headerKey: 'pickupOptions.pickup', content: this.pickupTabPanel, id: PickupOptionsTabs.PICKUP, + disableBorderFocus: true, }, ]; this.tabConfig = { diff --git a/feature-libs/pickup-in-store/components/presentational/store/store-address/store-address.component.spec.ts b/feature-libs/pickup-in-store/components/presentational/store/store-address/store-address.component.spec.ts index f75691dfb23..4927f87a98f 100644 --- a/feature-libs/pickup-in-store/components/presentational/store/store-address/store-address.component.spec.ts +++ b/feature-libs/pickup-in-store/components/presentational/store/store-address/store-address.component.spec.ts @@ -32,6 +32,7 @@ describe('StoreAddressComponent', () => { @Component({ selector: 'cx-store-address', template: '', + standalone: false, }) export class StoreAddressStubComponent { @Input() storeDetails: PointOfService; diff --git a/feature-libs/pickup-in-store/components/presentational/store/store-address/store-address.component.ts b/feature-libs/pickup-in-store/components/presentational/store/store-address/store-address.component.ts index 8b88ea93edc..9471b8a4833 100644 --- a/feature-libs/pickup-in-store/components/presentational/store/store-address/store-address.component.ts +++ b/feature-libs/pickup-in-store/components/presentational/store/store-address/store-address.component.ts @@ -13,6 +13,7 @@ import { PointOfService } from '@spartacus/core'; @Component({ selector: 'cx-store-address', templateUrl: 'store-address.component.html', + standalone: false, }) export class StoreAddressComponent { /** The details of the store */ diff --git a/feature-libs/pickup-in-store/components/presentational/store/store-schedule/store-schedule.component.spec.ts b/feature-libs/pickup-in-store/components/presentational/store/store-schedule/store-schedule.component.spec.ts index 54871420160..1018941edad 100644 --- a/feature-libs/pickup-in-store/components/presentational/store/store-schedule/store-schedule.component.spec.ts +++ b/feature-libs/pickup-in-store/components/presentational/store/store-schedule/store-schedule.component.spec.ts @@ -80,6 +80,7 @@ describe('StoreScheduleComponent', () => { @Component({ selector: 'cx-store-schedule', template: '', + standalone: false, }) export class StoreScheduleStubComponent { @Input() storeDetails: PointOfService; diff --git a/feature-libs/pickup-in-store/components/presentational/store/store-schedule/store-schedule.component.ts b/feature-libs/pickup-in-store/components/presentational/store/store-schedule/store-schedule.component.ts index 3473f2225bf..c57f06eb94a 100644 --- a/feature-libs/pickup-in-store/components/presentational/store/store-schedule/store-schedule.component.ts +++ b/feature-libs/pickup-in-store/components/presentational/store/store-schedule/store-schedule.component.ts @@ -19,6 +19,7 @@ type OpeningTime = { @Component({ selector: 'cx-store-schedule', templateUrl: 'store-schedule.component.html', + standalone: false, }) export class StoreScheduleComponent implements OnChanges { /** The details of the store */ diff --git a/feature-libs/pickup-in-store/components/presentational/store/store.component.ts b/feature-libs/pickup-in-store/components/presentational/store/store.component.ts index 757e7d20f8f..5f10ec9b636 100644 --- a/feature-libs/pickup-in-store/components/presentational/store/store.component.ts +++ b/feature-libs/pickup-in-store/components/presentational/store/store.component.ts @@ -16,6 +16,7 @@ import { ICON_TYPE } from '@spartacus/storefront'; @Component({ selector: 'cx-store', templateUrl: './store.component.html', + standalone: false, }) export class StoreComponent implements OnInit { /** The details of the store to be displayed */ diff --git a/feature-libs/pickup-in-store/components/services/current-location.service.spec.ts b/feature-libs/pickup-in-store/components/services/current-location.service.spec.ts index 49d81b96ef0..0db0dc60b36 100644 --- a/feature-libs/pickup-in-store/components/services/current-location.service.spec.ts +++ b/feature-libs/pickup-in-store/components/services/current-location.service.spec.ts @@ -20,9 +20,11 @@ export const MockWindowRef = { altitudeAccuracy: 0, heading: 0, speed: 0, - }, + toJSON: () => {}, + } as GeolocationCoordinates, timestamp: 0, - }), + toJSON: () => {}, + } as GeolocationPosition), }, }, }, diff --git a/feature-libs/pickup-in-store/package.json b/feature-libs/pickup-in-store/package.json index 7df6819a9ae..8775018c213 100644 --- a/feature-libs/pickup-in-store/package.json +++ b/feature-libs/pickup-in-store/package.json @@ -25,13 +25,13 @@ "tslib": "^2.8.1" }, "peerDependencies": { - "@angular-devkit/schematics": "^18.2.9", - "@angular/common": "^18.2.9", - "@angular/core": "^18.2.9", - "@angular/forms": "^18.2.9", - "@angular/router": "^18.2.9", - "@ngrx/effects": "^18.1.1", - "@ngrx/store": "^18.1.1", + "@angular-devkit/schematics": "^19.0.4", + "@angular/common": "^19.0.3", + "@angular/core": "^19.0.3", + "@angular/forms": "^19.0.3", + "@angular/router": "^19.0.3", + "@ngrx/effects": "^19.0.0", + "@ngrx/store": "^19.0.0", "@spartacus/cart": "2211.32.0", "@spartacus/core": "2211.32.0", "@spartacus/order": "2211.32.0", diff --git a/feature-libs/pickup-in-store/schematics/add-pickup-in-store/__snapshots__/index_spec.ts.snap b/feature-libs/pickup-in-store/schematics/add-pickup-in-store/__snapshots__/index_spec.ts.snap index e7a143cfc17..bba802ecf28 100644 --- a/feature-libs/pickup-in-store/schematics/add-pickup-in-store/__snapshots__/index_spec.ts.snap +++ b/feature-libs/pickup-in-store/schematics/add-pickup-in-store/__snapshots__/index_spec.ts.snap @@ -113,7 +113,12 @@ exports[`Spartacus Pickup in Store schematics: ng-add Pick Up In Store feature g "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } }, "configurations": { @@ -126,8 +131,8 @@ exports[`Spartacus Pickup in Store schematics: ng-add Pick Up In Store feature g }, { "type": "anyComponentStyle", - "maximumWarning": "2kB", - "maximumError": "4kB" + "maximumWarning": "4kB", + "maximumError": "8kB" } ], "outputHashing": "all" @@ -178,7 +183,12 @@ exports[`Spartacus Pickup in Store schematics: ng-add Pick Up In Store feature g "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } } } diff --git a/feature-libs/pickup-in-store/tsconfig.schematics.json b/feature-libs/pickup-in-store/tsconfig.schematics.json index 8646e4b6950..20993f2bfd7 100644 --- a/feature-libs/pickup-in-store/tsconfig.schematics.json +++ b/feature-libs/pickup-in-store/tsconfig.schematics.json @@ -2,7 +2,6 @@ "compilerOptions": { "baseUrl": ".", "lib": ["es2018", "dom"], - "declaration": true, "module": "commonjs", "moduleResolution": "node", "noEmitOnError": true, diff --git a/feature-libs/product-configurator/.eslintrc.json b/feature-libs/product-configurator/.eslintrc.json index 862b5a870b0..9895500871d 100644 --- a/feature-libs/product-configurator/.eslintrc.json +++ b/feature-libs/product-configurator/.eslintrc.json @@ -1,4 +1,9 @@ { "extends": "../../.eslintrc.json", - "ignorePatterns": ["schematics/**/*.d.ts"] + "ignorePatterns": ["schematics/**/*.d.ts"], + "overrides": [ + { + "files": ["*.ts"] + } + ] } diff --git a/feature-libs/product-configurator/common/components/configurator-cart-entry-bundle-info/configurator-cart-entry-bundle-info.component.spec.ts b/feature-libs/product-configurator/common/components/configurator-cart-entry-bundle-info/configurator-cart-entry-bundle-info.component.spec.ts index a40e505ab9b..3cdc4483bf6 100644 --- a/feature-libs/product-configurator/common/components/configurator-cart-entry-bundle-info/configurator-cart-entry-bundle-info.component.spec.ts +++ b/feature-libs/product-configurator/common/components/configurator-cart-entry-bundle-info/configurator-cart-entry-bundle-info.component.spec.ts @@ -29,6 +29,7 @@ import { ConfiguratorCartEntryBundleInfoComponent } from './configurator-cart-en @Pipe({ name: 'cxNumeric', + standalone: false, }) class MockNumericPipe implements PipeTransform { transform(value: string): string { @@ -39,6 +40,7 @@ class MockNumericPipe implements PipeTransform { @Component({ selector: 'cx-configure-cart-entry', template: '', + standalone: false, }) class MockConfigureCartEntryComponent { @Input() cartEntry: OrderEntry; diff --git a/feature-libs/product-configurator/common/components/configurator-cart-entry-bundle-info/configurator-cart-entry-bundle-info.component.ts b/feature-libs/product-configurator/common/components/configurator-cart-entry-bundle-info/configurator-cart-entry-bundle-info.component.ts index 66d65dc5323..a6d2a76dfbf 100644 --- a/feature-libs/product-configurator/common/components/configurator-cart-entry-bundle-info/configurator-cart-entry-bundle-info.component.ts +++ b/feature-libs/product-configurator/common/components/configurator-cart-entry-bundle-info/configurator-cart-entry-bundle-info.component.ts @@ -22,6 +22,7 @@ import { ConfiguratorCartEntryBundleInfoService } from './configurator-cart-entr @Component({ selector: 'cx-configurator-cart-entry-bundle-info', templateUrl: './configurator-cart-entry-bundle-info.component.html', + standalone: false, }) export class ConfiguratorCartEntryBundleInfoComponent { constructor( diff --git a/feature-libs/product-configurator/common/components/configurator-cart-entry-info/configurator-cart-entry-info.component.spec.ts b/feature-libs/product-configurator/common/components/configurator-cart-entry-info/configurator-cart-entry-info.component.spec.ts index f7d2dab7220..7b900059ac2 100644 --- a/feature-libs/product-configurator/common/components/configurator-cart-entry-info/configurator-cart-entry-info.component.spec.ts +++ b/feature-libs/product-configurator/common/components/configurator-cart-entry-info/configurator-cart-entry-info.component.spec.ts @@ -29,6 +29,7 @@ class MockCartItemContext implements Partial { @Component({ selector: 'cx-configure-cart-entry', template: '', + standalone: false, }) class MockConfigureCartEntryComponent { @Input() cartEntry: OrderEntry; diff --git a/feature-libs/product-configurator/common/components/configurator-cart-entry-info/configurator-cart-entry-info.component.ts b/feature-libs/product-configurator/common/components/configurator-cart-entry-info/configurator-cart-entry-info.component.ts index 2d367c9623a..d04f3a4dcf6 100644 --- a/feature-libs/product-configurator/common/components/configurator-cart-entry-info/configurator-cart-entry-info.component.ts +++ b/feature-libs/product-configurator/common/components/configurator-cart-entry-info/configurator-cart-entry-info.component.ts @@ -13,6 +13,7 @@ import { CommonConfiguratorUtilsService } from '../../shared/utils/common-config @Component({ selector: 'cx-configurator-cart-entry-info', templateUrl: './configurator-cart-entry-info.component.html', + standalone: false, }) export class ConfiguratorCartEntryInfoComponent { constructor( diff --git a/feature-libs/product-configurator/common/components/configurator-issues-notification/configurator-issues-notification.component.spec.ts b/feature-libs/product-configurator/common/components/configurator-issues-notification/configurator-issues-notification.component.spec.ts index dbff6c3677d..9b83c496829 100644 --- a/feature-libs/product-configurator/common/components/configurator-issues-notification/configurator-issues-notification.component.spec.ts +++ b/feature-libs/product-configurator/common/components/configurator-issues-notification/configurator-issues-notification.component.spec.ts @@ -19,6 +19,7 @@ import { ConfiguratorIssuesNotificationComponent } from './configurator-issues-n @Pipe({ name: 'cxTranslate', + standalone: false, }) class MockTranslatePipe implements PipeTransform { transform(): any {} @@ -27,6 +28,7 @@ class MockTranslatePipe implements PipeTransform { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: any; @@ -35,6 +37,7 @@ class MockCxIconComponent { @Component({ selector: 'cx-configure-cart-entry', template: '', + standalone: false, }) class MockConfigureCartEntryComponent { @Input() cartEntry: OrderEntry; diff --git a/feature-libs/product-configurator/common/components/configurator-issues-notification/configurator-issues-notification.component.ts b/feature-libs/product-configurator/common/components/configurator-issues-notification/configurator-issues-notification.component.ts index 0f067e7c0a0..ee71fab7bd4 100644 --- a/feature-libs/product-configurator/common/components/configurator-issues-notification/configurator-issues-notification.component.ts +++ b/feature-libs/product-configurator/common/components/configurator-issues-notification/configurator-issues-notification.component.ts @@ -14,6 +14,7 @@ import { CommonConfiguratorUtilsService } from '../../shared/utils/common-config @Component({ selector: 'cx-configurator-issues-notification', templateUrl: './configurator-issues-notification.component.html', + standalone: false, }) export class ConfiguratorIssuesNotificationComponent { iconTypes = ICON_TYPE; diff --git a/feature-libs/product-configurator/common/components/configure-cart-entry/configure-cart-entry.component.spec.ts b/feature-libs/product-configurator/common/components/configure-cart-entry/configure-cart-entry.component.spec.ts index ee8ab1f336e..1e36a473ad9 100644 --- a/feature-libs/product-configurator/common/components/configure-cart-entry/configure-cart-entry.component.spec.ts +++ b/feature-libs/product-configurator/common/components/configure-cart-entry/configure-cart-entry.component.spec.ts @@ -35,6 +35,7 @@ class MockAbstractOrderContext { @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform(): any {} diff --git a/feature-libs/product-configurator/common/components/configure-cart-entry/configure-cart-entry.component.ts b/feature-libs/product-configurator/common/components/configure-cart-entry/configure-cart-entry.component.ts index c7a33c48ce6..404cf6c3c28 100644 --- a/feature-libs/product-configurator/common/components/configure-cart-entry/configure-cart-entry.component.ts +++ b/feature-libs/product-configurator/common/components/configure-cart-entry/configure-cart-entry.component.ts @@ -30,6 +30,7 @@ import { CommonConfiguratorUtilsService } from '../../shared/utils/common-config selector: 'cx-configure-cart-entry', templateUrl: './configure-cart-entry.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ConfigureCartEntryComponent { protected routingService = inject(RoutingService); diff --git a/feature-libs/product-configurator/common/components/configure-product/configure-product.component.spec.ts b/feature-libs/product-configurator/common/components/configure-product/configure-product.component.spec.ts index fcb9bebc21b..7df32c52abb 100644 --- a/feature-libs/product-configurator/common/components/configure-product/configure-product.component.spec.ts +++ b/feature-libs/product-configurator/common/components/configure-product/configure-product.component.spec.ts @@ -63,6 +63,7 @@ class MockProductListItemContext implements Partial { @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform(): any {} diff --git a/feature-libs/product-configurator/common/components/configure-product/configure-product.component.ts b/feature-libs/product-configurator/common/components/configure-product/configure-product.component.ts index 074f0b3a0d7..96f1aed1200 100644 --- a/feature-libs/product-configurator/common/components/configure-product/configure-product.component.ts +++ b/feature-libs/product-configurator/common/components/configure-product/configure-product.component.ts @@ -27,6 +27,7 @@ import { ConfiguratorProductScope } from '../../core/model/configurator-product- selector: 'cx-configure-product', templateUrl: './configure-product.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ConfigureProductComponent { nonConfigurable: Product = { configurable: false }; diff --git a/feature-libs/product-configurator/package.json b/feature-libs/product-configurator/package.json index e22b08a04a6..c16b88920a0 100644 --- a/feature-libs/product-configurator/package.json +++ b/feature-libs/product-configurator/package.json @@ -25,14 +25,14 @@ "tslib": "^2.8.1" }, "peerDependencies": { - "@angular-devkit/schematics": "^18.2.9", - "@angular/common": "^18.2.9", - "@angular/core": "^18.2.9", - "@angular/forms": "^18.2.9", - "@angular/router": "^18.2.9", - "@ng-select/ng-select": "^13.9.1", - "@ngrx/effects": "^18.1.1", - "@ngrx/store": "^18.1.1", + "@angular-devkit/schematics": "^19.0.4", + "@angular/common": "^19.0.3", + "@angular/core": "^19.0.3", + "@angular/forms": "^19.0.3", + "@angular/router": "^19.0.3", + "@ng-select/ng-select": "^14.1.0", + "@ngrx/effects": "^19.0.0", + "@ngrx/store": "^19.0.0", "@spartacus/cart": "2211.32.0", "@spartacus/checkout": "2211.32.0", "@spartacus/core": "2211.32.0", diff --git a/feature-libs/product-configurator/rulebased/components/add-to-cart-button/configurator-add-to-cart-button.component.spec.ts b/feature-libs/product-configurator/rulebased/components/add-to-cart-button/configurator-add-to-cart-button.component.spec.ts index 00dfe29f96e..3ea71d14a2e 100644 --- a/feature-libs/product-configurator/rulebased/components/add-to-cart-button/configurator-add-to-cart-button.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/add-to-cart-button/configurator-add-to-cart-button.component.spec.ts @@ -92,6 +92,7 @@ const mockOrder: Order = { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; @@ -100,6 +101,7 @@ class MockCxIconComponent { @Component({ template: '', selector: 'cx-item-counter', + standalone: false, }) class MockItemCounterComponent { @Input() min: number; diff --git a/feature-libs/product-configurator/rulebased/components/add-to-cart-button/configurator-add-to-cart-button.component.ts b/feature-libs/product-configurator/rulebased/components/add-to-cart-button/configurator-add-to-cart-button.component.ts index 0c0d9011443..70f3a9ab1c5 100644 --- a/feature-libs/product-configurator/rulebased/components/add-to-cart-button/configurator-add-to-cart-button.component.ts +++ b/feature-libs/product-configurator/rulebased/components/add-to-cart-button/configurator-add-to-cart-button.component.ts @@ -54,6 +54,7 @@ const CX_SELECTOR = 'cx-configurator-add-to-cart-button'; selector: CX_SELECTOR, templateUrl: './configurator-add-to-cart-button.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ConfiguratorAddToCartButtonComponent implements OnInit, OnDestroy { protected subscription = new Subscription(); diff --git a/feature-libs/product-configurator/rulebased/components/attribute/composition/configurator-attribute-composition.directive.ts b/feature-libs/product-configurator/rulebased/components/attribute/composition/configurator-attribute-composition.directive.ts index 77b330c3571..efe78437f54 100644 --- a/feature-libs/product-configurator/rulebased/components/attribute/composition/configurator-attribute-composition.directive.ts +++ b/feature-libs/product-configurator/rulebased/components/attribute/composition/configurator-attribute-composition.directive.ts @@ -28,6 +28,7 @@ import { Configurator } from '../../../core/model/configurator.model'; @Directive({ selector: '[cxConfiguratorAttributeComponent]', + standalone: false, }) export class ConfiguratorAttributeCompositionDirective implements OnInit, OnChanges diff --git a/feature-libs/product-configurator/rulebased/components/attribute/footer/configurator-attribute-footer.component.ts b/feature-libs/product-configurator/rulebased/components/attribute/footer/configurator-attribute-footer.component.ts index b3364429efc..1d3acbd8737 100644 --- a/feature-libs/product-configurator/rulebased/components/attribute/footer/configurator-attribute-footer.component.ts +++ b/feature-libs/product-configurator/rulebased/components/attribute/footer/configurator-attribute-footer.component.ts @@ -18,6 +18,7 @@ import { ConfiguratorAttributeBaseComponent } from '../types/base/configurator-a selector: 'cx-configurator-attribute-footer', templateUrl: './configurator-attribute-footer.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ConfiguratorAttributeFooterComponent extends ConfiguratorAttributeBaseComponent diff --git a/feature-libs/product-configurator/rulebased/components/attribute/header/configurator-attribute-header.component.spec.ts b/feature-libs/product-configurator/rulebased/components/attribute/header/configurator-attribute-header.component.spec.ts index 6e56fd74059..eac1551f9fa 100644 --- a/feature-libs/product-configurator/rulebased/components/attribute/header/configurator-attribute-header.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/attribute/header/configurator-attribute-header.component.spec.ts @@ -26,6 +26,7 @@ import { ConfiguratorAttributeHeaderComponent } from './configurator-attribute-h @Component({ selector: 'cx-configurator-show-more', template: '', + standalone: false, }) class MockConfiguratorShowMoreComponent { @Input() text: string; diff --git a/feature-libs/product-configurator/rulebased/components/attribute/header/configurator-attribute-header.component.ts b/feature-libs/product-configurator/rulebased/components/attribute/header/configurator-attribute-header.component.ts index 65e9d3130e4..be77141c3a2 100644 --- a/feature-libs/product-configurator/rulebased/components/attribute/header/configurator-attribute-header.component.ts +++ b/feature-libs/product-configurator/rulebased/components/attribute/header/configurator-attribute-header.component.ts @@ -28,6 +28,7 @@ import { ConfiguratorAttributeBaseComponent } from '../types/base/configurator-a selector: 'cx-configurator-attribute-header', templateUrl: './configurator-attribute-header.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ConfiguratorAttributeHeaderComponent extends ConfiguratorAttributeBaseComponent diff --git a/feature-libs/product-configurator/rulebased/components/attribute/product-card/configurator-attribute-product-card.component.spec.ts b/feature-libs/product-configurator/rulebased/components/attribute/product-card/configurator-attribute-product-card.component.spec.ts index a53395dd4af..b57611902ef 100644 --- a/feature-libs/product-configurator/rulebased/components/attribute/product-card/configurator-attribute-product-card.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/attribute/product-card/configurator-attribute-product-card.component.spec.ts @@ -70,6 +70,7 @@ let focusService: KeyboardFocusService; @Component({ selector: 'cx-configurator-price', template: '', + standalone: false, }) class MockConfiguratorPriceComponent { @Input() formula: ConfiguratorPriceComponentOptions; @@ -78,6 +79,7 @@ class MockConfiguratorPriceComponent { @Component({ selector: 'cx-configurator-attribute-quantity', template: '', + standalone: false, }) class MockConfiguratorAttributeQuantityComponent { @Input() quantityOptions: ConfiguratorAttributeQuantityComponentOptions; @@ -86,6 +88,7 @@ class MockConfiguratorAttributeQuantityComponent { @Directive({ selector: '[cxFocus]', + standalone: false, }) export class MockFocusDirective { @Input('cxFocus') protected config: any; diff --git a/feature-libs/product-configurator/rulebased/components/attribute/product-card/configurator-attribute-product-card.component.ts b/feature-libs/product-configurator/rulebased/components/attribute/product-card/configurator-attribute-product-card.component.ts index 65e65fbebd8..a5ed5eafcbd 100644 --- a/feature-libs/product-configurator/rulebased/components/attribute/product-card/configurator-attribute-product-card.component.ts +++ b/feature-libs/product-configurator/rulebased/components/attribute/product-card/configurator-attribute-product-card.component.ts @@ -55,6 +55,7 @@ export interface ConfiguratorAttributeProductCardComponentOptions { selector: 'cx-configurator-attribute-product-card', templateUrl: './configurator-attribute-product-card.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ConfiguratorAttributeProductCardComponent extends ConfiguratorAttributeBaseComponent diff --git a/feature-libs/product-configurator/rulebased/components/attribute/quantity/configurator-attribute-quantity.component.spec.ts b/feature-libs/product-configurator/rulebased/components/attribute/quantity/configurator-attribute-quantity.component.spec.ts index e43c17b66ed..03a7e7207cf 100644 --- a/feature-libs/product-configurator/rulebased/components/attribute/quantity/configurator-attribute-quantity.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/attribute/quantity/configurator-attribute-quantity.component.spec.ts @@ -47,6 +47,7 @@ function initializeWithObs(disableObs: Observable) { @Component({ template: '', selector: 'cx-item-counter', + standalone: false, }) class MockItemCounterComponent { @Input() min: number; diff --git a/feature-libs/product-configurator/rulebased/components/attribute/quantity/configurator-attribute-quantity.component.ts b/feature-libs/product-configurator/rulebased/components/attribute/quantity/configurator-attribute-quantity.component.ts index cbbc8bb0e2d..9de183277a4 100644 --- a/feature-libs/product-configurator/rulebased/components/attribute/quantity/configurator-attribute-quantity.component.ts +++ b/feature-libs/product-configurator/rulebased/components/attribute/quantity/configurator-attribute-quantity.component.ts @@ -28,6 +28,7 @@ export interface ConfiguratorAttributeQuantityComponentOptions { selector: 'cx-configurator-attribute-quantity', templateUrl: './configurator-attribute-quantity.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ConfiguratorAttributeQuantityComponent implements OnDestroy, OnInit diff --git a/feature-libs/product-configurator/rulebased/components/attribute/types/base/configurator-attribute-multi-selection-base.component.spec.ts b/feature-libs/product-configurator/rulebased/components/attribute/types/base/configurator-attribute-multi-selection-base.component.spec.ts index 384c1c9deb3..4a91ec36436 100644 --- a/feature-libs/product-configurator/rulebased/components/attribute/types/base/configurator-attribute-multi-selection-base.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/attribute/types/base/configurator-attribute-multi-selection-base.component.spec.ts @@ -31,6 +31,7 @@ const createTestValue = ( @Component({ selector: 'cx-configurator-attribute-multi-selection', + standalone: false, }) class ExampleConfiguratorAttributeMultiSelectionComponent extends ConfiguratorAttributeMultiSelectionBaseComponent { constructor( diff --git a/feature-libs/product-configurator/rulebased/components/attribute/types/base/configurator-attribute-single-selection-base.component.spec.ts b/feature-libs/product-configurator/rulebased/components/attribute/types/base/configurator-attribute-single-selection-base.component.spec.ts index 08314497b29..f71206a40ce 100644 --- a/feature-libs/product-configurator/rulebased/components/attribute/types/base/configurator-attribute-single-selection-base.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/attribute/types/base/configurator-attribute-single-selection-base.component.spec.ts @@ -67,6 +67,7 @@ class MockConfiguratorCommonsService { selector: 'cx-configurator-attribute-single-selection', template: 'test-configurator-attribute-single-selection', providers: [ConfiguratorAttributePriceChangeService], + standalone: false, }) class ExampleConfiguratorAttributeSingleSelectionComponent extends ConfiguratorAttributeSingleSelectionBaseComponent { constructor( diff --git a/feature-libs/product-configurator/rulebased/components/attribute/types/checkbox-list/configurator-attribute-checkbox-list.component.spec.ts b/feature-libs/product-configurator/rulebased/components/attribute/types/checkbox-list/configurator-attribute-checkbox-list.component.spec.ts index c27af830823..48290f39d22 100644 --- a/feature-libs/product-configurator/rulebased/components/attribute/types/checkbox-list/configurator-attribute-checkbox-list.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/attribute/types/checkbox-list/configurator-attribute-checkbox-list.component.spec.ts @@ -29,6 +29,7 @@ class MockGroupService {} @Directive({ selector: '[cxFocus]', + standalone: false, }) export class MockFocusDirective { @Input('cxFocus') protected config: any; @@ -37,6 +38,7 @@ export class MockFocusDirective { @Component({ selector: 'cx-configurator-attribute-quantity', template: '', + standalone: false, }) class MockConfiguratorAttributeQuantityComponent { @Input() quantityOptions: ConfiguratorAttributeQuantityComponentOptions; @@ -46,6 +48,7 @@ class MockConfiguratorAttributeQuantityComponent { @Component({ selector: 'cx-configurator-price', template: '', + standalone: false, }) class MockConfiguratorPriceComponent { @Input() formula: ConfiguratorPriceComponentOptions; @@ -54,6 +57,7 @@ class MockConfiguratorPriceComponent { @Component({ selector: 'cx-configurator-show-more', template: '', + standalone: false, }) class MockConfiguratorShowMoreComponent { @Input() text: string; diff --git a/feature-libs/product-configurator/rulebased/components/attribute/types/checkbox-list/configurator-attribute-checkbox-list.component.ts b/feature-libs/product-configurator/rulebased/components/attribute/types/checkbox-list/configurator-attribute-checkbox-list.component.ts index ba4ed488691..e33e1b9f2ef 100644 --- a/feature-libs/product-configurator/rulebased/components/attribute/types/checkbox-list/configurator-attribute-checkbox-list.component.ts +++ b/feature-libs/product-configurator/rulebased/components/attribute/types/checkbox-list/configurator-attribute-checkbox-list.component.ts @@ -26,6 +26,7 @@ import { ConfiguratorAttributeMultiSelectionBaseComponent } from '../base/config templateUrl: './configurator-attribute-checkbox-list.component.html', changeDetection: ChangeDetectionStrategy.OnPush, providers: [ConfiguratorAttributePriceChangeService], + standalone: false, }) export class ConfiguratorAttributeCheckBoxListComponent extends ConfiguratorAttributeMultiSelectionBaseComponent diff --git a/feature-libs/product-configurator/rulebased/components/attribute/types/checkbox/configurator-attribute-checkbox.component.spec.ts b/feature-libs/product-configurator/rulebased/components/attribute/types/checkbox/configurator-attribute-checkbox.component.spec.ts index ea6267c014a..422741d7c6c 100644 --- a/feature-libs/product-configurator/rulebased/components/attribute/types/checkbox/configurator-attribute-checkbox.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/attribute/types/checkbox/configurator-attribute-checkbox.component.spec.ts @@ -22,6 +22,7 @@ import { ConfiguratorAttributeCheckBoxComponent } from './configurator-attribute @Directive({ selector: '[cxFocus]', + standalone: false, }) export class MockFocusDirective { @Input('cxFocus') protected config: string; @@ -30,6 +31,7 @@ export class MockFocusDirective { @Component({ selector: 'cx-configurator-price', template: '', + standalone: false, }) class MockConfiguratorPriceComponent { @Input() formula: ConfiguratorPriceComponentOptions; @@ -38,6 +40,7 @@ class MockConfiguratorPriceComponent { @Component({ selector: 'cx-configurator-show-more', template: '', + standalone: false, }) class MockConfiguratorShowMoreComponent { @Input() text: string; diff --git a/feature-libs/product-configurator/rulebased/components/attribute/types/checkbox/configurator-attribute-checkbox.component.ts b/feature-libs/product-configurator/rulebased/components/attribute/types/checkbox/configurator-attribute-checkbox.component.ts index d055c1accb3..10b67e66f18 100644 --- a/feature-libs/product-configurator/rulebased/components/attribute/types/checkbox/configurator-attribute-checkbox.component.ts +++ b/feature-libs/product-configurator/rulebased/components/attribute/types/checkbox/configurator-attribute-checkbox.component.ts @@ -17,6 +17,7 @@ import { ConfiguratorAttributeBaseComponent } from '../base/configurator-attribu templateUrl: './configurator-attribute-checkbox.component.html', changeDetection: ChangeDetectionStrategy.OnPush, providers: [ConfiguratorAttributePriceChangeService], + standalone: false, }) export class ConfiguratorAttributeCheckBoxComponent extends ConfiguratorAttributeBaseComponent diff --git a/feature-libs/product-configurator/rulebased/components/attribute/types/drop-down/configurator-attribute-drop-down.component.spec.ts b/feature-libs/product-configurator/rulebased/components/attribute/types/drop-down/configurator-attribute-drop-down.component.spec.ts index 3045a7c66a3..f5bfb012599 100644 --- a/feature-libs/product-configurator/rulebased/components/attribute/types/drop-down/configurator-attribute-drop-down.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/attribute/types/drop-down/configurator-attribute-drop-down.component.spec.ts @@ -51,6 +51,7 @@ function createValue( @Directive({ selector: '[cxFocus]', + standalone: false, }) export class MockFocusDirective { @Input('cxFocus') protected config: any; @@ -59,6 +60,7 @@ export class MockFocusDirective { @Component({ selector: 'cx-configurator-attribute-quantity', template: '', + standalone: false, }) class MockConfiguratorAttributeQuantityComponent { @Input() quantityOptions: ConfiguratorAttributeQuantityComponentOptions; @@ -68,6 +70,7 @@ class MockConfiguratorAttributeQuantityComponent { @Component({ selector: 'cx-configurator-price', template: '', + standalone: false, }) class MockConfiguratorPriceComponent { @Input() formula: ConfiguratorPriceComponentOptions; @@ -76,6 +79,7 @@ class MockConfiguratorPriceComponent { @Component({ selector: 'cx-configurator-show-more', template: '', + standalone: false, }) class MockConfiguratorShowMoreComponent { @Input() text: string; diff --git a/feature-libs/product-configurator/rulebased/components/attribute/types/drop-down/configurator-attribute-drop-down.component.ts b/feature-libs/product-configurator/rulebased/components/attribute/types/drop-down/configurator-attribute-drop-down.component.ts index ace71f4d645..e21494c4efa 100644 --- a/feature-libs/product-configurator/rulebased/components/attribute/types/drop-down/configurator-attribute-drop-down.component.ts +++ b/feature-libs/product-configurator/rulebased/components/attribute/types/drop-down/configurator-attribute-drop-down.component.ts @@ -27,6 +27,7 @@ import { ConfiguratorAttributePriceChangeService } from '../../price-change/conf templateUrl: './configurator-attribute-drop-down.component.html', changeDetection: ChangeDetectionStrategy.OnPush, providers: [ConfiguratorAttributePriceChangeService], + standalone: false, }) export class ConfiguratorAttributeDropDownComponent extends ConfiguratorAttributeSingleSelectionBaseComponent diff --git a/feature-libs/product-configurator/rulebased/components/attribute/types/input-field/configurator-attribute-input-field.component.spec.ts b/feature-libs/product-configurator/rulebased/components/attribute/types/input-field/configurator-attribute-input-field.component.spec.ts index 0f220fee155..76a2440b104 100644 --- a/feature-libs/product-configurator/rulebased/components/attribute/types/input-field/configurator-attribute-input-field.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/attribute/types/input-field/configurator-attribute-input-field.component.spec.ts @@ -24,6 +24,7 @@ import { ConfiguratorAttributeInputFieldComponent } from './configurator-attribu @Directive({ selector: '[cxFocus]', + standalone: false, }) export class MockFocusDirective { @Input('cxFocus') protected config: any; diff --git a/feature-libs/product-configurator/rulebased/components/attribute/types/input-field/configurator-attribute-input-field.component.ts b/feature-libs/product-configurator/rulebased/components/attribute/types/input-field/configurator-attribute-input-field.component.ts index 0ac3987aefe..b987893427b 100644 --- a/feature-libs/product-configurator/rulebased/components/attribute/types/input-field/configurator-attribute-input-field.component.ts +++ b/feature-libs/product-configurator/rulebased/components/attribute/types/input-field/configurator-attribute-input-field.component.ts @@ -25,6 +25,7 @@ import { ConfiguratorAttributeBaseComponent } from '../base/configurator-attribu selector: 'cx-configurator-attribute-input-field', templateUrl: './configurator-attribute-input-field.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ConfiguratorAttributeInputFieldComponent extends ConfiguratorAttributeBaseComponent diff --git a/feature-libs/product-configurator/rulebased/components/attribute/types/multi-selection-bundle/configurator-attribute-multi-selection-bundle.component.spec.ts b/feature-libs/product-configurator/rulebased/components/attribute/types/multi-selection-bundle/configurator-attribute-multi-selection-bundle.component.spec.ts index 27b668cd4d8..7a1898163af 100644 --- a/feature-libs/product-configurator/rulebased/components/attribute/types/multi-selection-bundle/configurator-attribute-multi-selection-bundle.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/attribute/types/multi-selection-bundle/configurator-attribute-multi-selection-bundle.component.spec.ts @@ -30,6 +30,7 @@ import { ConfiguratorAttributeMultiSelectionBundleComponent } from './configurat @Component({ selector: 'cx-configurator-attribute-product-card', template: '', + standalone: false, }) class MockProductCardComponent { @Input() @@ -39,6 +40,7 @@ class MockProductCardComponent { @Component({ selector: 'cx-configurator-attribute-quantity', template: '', + standalone: false, }) class MockConfiguratorAttributeQuantityComponent { @Input() quantityOptions: ConfiguratorAttributeQuantityComponentOptions; @@ -48,6 +50,7 @@ class MockConfiguratorAttributeQuantityComponent { @Component({ selector: 'cx-configurator-price', template: '', + standalone: false, }) class MockConfiguratorPriceComponent { @Input() formula: ConfiguratorPriceComponentOptions; diff --git a/feature-libs/product-configurator/rulebased/components/attribute/types/multi-selection-bundle/configurator-attribute-multi-selection-bundle.component.ts b/feature-libs/product-configurator/rulebased/components/attribute/types/multi-selection-bundle/configurator-attribute-multi-selection-bundle.component.ts index 30cd4cd0896..29b8ab27aeb 100644 --- a/feature-libs/product-configurator/rulebased/components/attribute/types/multi-selection-bundle/configurator-attribute-multi-selection-bundle.component.ts +++ b/feature-libs/product-configurator/rulebased/components/attribute/types/multi-selection-bundle/configurator-attribute-multi-selection-bundle.component.ts @@ -23,6 +23,7 @@ interface SelectionValue { selector: 'cx-configurator-attribute-multi-selection-bundle', templateUrl: './configurator-attribute-multi-selection-bundle.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ConfiguratorAttributeMultiSelectionBundleComponent extends ConfiguratorAttributeMultiSelectionBaseComponent diff --git a/feature-libs/product-configurator/rulebased/components/attribute/types/multi-selection-image/configurator-attribute-multi-selection-image.component.spec.ts b/feature-libs/product-configurator/rulebased/components/attribute/types/multi-selection-image/configurator-attribute-multi-selection-image.component.spec.ts index 1149e729423..8efa4ec1ca0 100644 --- a/feature-libs/product-configurator/rulebased/components/attribute/types/multi-selection-image/configurator-attribute-multi-selection-image.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/attribute/types/multi-selection-image/configurator-attribute-multi-selection-image.component.spec.ts @@ -28,6 +28,7 @@ const VALUE_NAME_3 = 'val3'; @Directive({ selector: '[cxFocus]', + standalone: false, }) export class MockFocusDirective { @Input('cxFocus') protected config: any; @@ -36,6 +37,7 @@ export class MockFocusDirective { @Component({ selector: 'cx-configurator-price', template: '', + standalone: false, }) class MockConfiguratorPriceComponent { @Input() formula: ConfiguratorPriceComponentOptions; diff --git a/feature-libs/product-configurator/rulebased/components/attribute/types/multi-selection-image/configurator-attribute-multi-selection-image.component.ts b/feature-libs/product-configurator/rulebased/components/attribute/types/multi-selection-image/configurator-attribute-multi-selection-image.component.ts index ecac363e22c..763dfce385d 100644 --- a/feature-libs/product-configurator/rulebased/components/attribute/types/multi-selection-image/configurator-attribute-multi-selection-image.component.ts +++ b/feature-libs/product-configurator/rulebased/components/attribute/types/multi-selection-image/configurator-attribute-multi-selection-image.component.ts @@ -25,6 +25,7 @@ import { ConfiguratorAttributeBaseComponent } from '../base/configurator-attribu templateUrl: './configurator-attribute-multi-selection-image.component.html', changeDetection: ChangeDetectionStrategy.OnPush, providers: [ConfiguratorAttributePriceChangeService], + standalone: false, }) export class ConfiguratorAttributeMultiSelectionImageComponent extends ConfiguratorAttributeBaseComponent diff --git a/feature-libs/product-configurator/rulebased/components/attribute/types/not-supported/configurator-attribute-not-supported.component.ts b/feature-libs/product-configurator/rulebased/components/attribute/types/not-supported/configurator-attribute-not-supported.component.ts index 31ce981dfae..9bc17490ded 100644 --- a/feature-libs/product-configurator/rulebased/components/attribute/types/not-supported/configurator-attribute-not-supported.component.ts +++ b/feature-libs/product-configurator/rulebased/components/attribute/types/not-supported/configurator-attribute-not-supported.component.ts @@ -10,5 +10,6 @@ import { ChangeDetectionStrategy, Component } from '@angular/core'; selector: 'cx-configurator-attribute-not-supported', templateUrl: './configurator-attribute-not-supported.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ConfiguratorAttributeNotSupportedComponent {} diff --git a/feature-libs/product-configurator/rulebased/components/attribute/types/numeric-input-field/configurator-attribute-numeric-input-field.component.spec.ts b/feature-libs/product-configurator/rulebased/components/attribute/types/numeric-input-field/configurator-attribute-numeric-input-field.component.spec.ts index 6ed344c60bd..1eff0c0c61f 100644 --- a/feature-libs/product-configurator/rulebased/components/attribute/types/numeric-input-field/configurator-attribute-numeric-input-field.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/attribute/types/numeric-input-field/configurator-attribute-numeric-input-field.component.spec.ts @@ -35,6 +35,7 @@ import { @Directive({ selector: '[cxFocus]', + standalone: false, }) export class MockFocusDirective { @Input('cxFocus') protected config: any; @@ -43,6 +44,7 @@ export class MockFocusDirective { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: any; diff --git a/feature-libs/product-configurator/rulebased/components/attribute/types/numeric-input-field/configurator-attribute-numeric-input-field.component.ts b/feature-libs/product-configurator/rulebased/components/attribute/types/numeric-input-field/configurator-attribute-numeric-input-field.component.ts index fc3353baa0b..d415f820258 100644 --- a/feature-libs/product-configurator/rulebased/components/attribute/types/numeric-input-field/configurator-attribute-numeric-input-field.component.ts +++ b/feature-libs/product-configurator/rulebased/components/attribute/types/numeric-input-field/configurator-attribute-numeric-input-field.component.ts @@ -39,6 +39,7 @@ class DefaultSettings { selector: 'cx-configurator-attribute-numeric-input-field', templateUrl: './configurator-attribute-numeric-input-field.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ConfiguratorAttributeNumericInputFieldComponent extends ConfiguratorAttributeInputFieldComponent diff --git a/feature-libs/product-configurator/rulebased/components/attribute/types/radio-button/configurator-attribute-radio-button.component.spec.ts b/feature-libs/product-configurator/rulebased/components/attribute/types/radio-button/configurator-attribute-radio-button.component.spec.ts index a3b7b16c922..5355df13b33 100644 --- a/feature-libs/product-configurator/rulebased/components/attribute/types/radio-button/configurator-attribute-radio-button.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/attribute/types/radio-button/configurator-attribute-radio-button.component.spec.ts @@ -42,6 +42,7 @@ class MockGroupService {} @Directive({ selector: '[cxFocus]', + standalone: false, }) export class MockFocusDirective { @Input('cxFocus') protected config: any; @@ -50,6 +51,7 @@ export class MockFocusDirective { @Component({ selector: 'cx-configurator-attribute-quantity', template: '', + standalone: false, }) class MockConfiguratorAttributeQuantityComponent { @Input() quantityOptions: ConfiguratorAttributeQuantityComponentOptions; @@ -58,6 +60,7 @@ class MockConfiguratorAttributeQuantityComponent { @Component({ selector: 'cx-configurator-price', template: '', + standalone: false, }) class MockConfiguratorPriceComponent { @Input() formula: ConfiguratorPriceComponentOptions; @@ -66,6 +69,7 @@ class MockConfiguratorPriceComponent { @Component({ selector: 'cx-configurator-show-more', template: '', + standalone: false, }) class MockConfiguratorShowMoreComponent { @Input() text: string; diff --git a/feature-libs/product-configurator/rulebased/components/attribute/types/radio-button/configurator-attribute-radio-button.component.ts b/feature-libs/product-configurator/rulebased/components/attribute/types/radio-button/configurator-attribute-radio-button.component.ts index 796e3f9e778..08fe143a7a0 100644 --- a/feature-libs/product-configurator/rulebased/components/attribute/types/radio-button/configurator-attribute-radio-button.component.ts +++ b/feature-libs/product-configurator/rulebased/components/attribute/types/radio-button/configurator-attribute-radio-button.component.ts @@ -20,6 +20,7 @@ import { ConfiguratorAttributePriceChangeService } from '../../price-change/conf templateUrl: './configurator-attribute-radio-button.component.html', changeDetection: ChangeDetectionStrategy.OnPush, providers: [ConfiguratorAttributePriceChangeService], + standalone: false, }) export class ConfiguratorAttributeRadioButtonComponent extends ConfiguratorAttributeSingleSelectionBaseComponent diff --git a/feature-libs/product-configurator/rulebased/components/attribute/types/read-only/configurator-attribute-read-only.component.spec.ts b/feature-libs/product-configurator/rulebased/components/attribute/types/read-only/configurator-attribute-read-only.component.spec.ts index 12bced07b54..fe4fae1e21e 100644 --- a/feature-libs/product-configurator/rulebased/components/attribute/types/read-only/configurator-attribute-read-only.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/attribute/types/read-only/configurator-attribute-read-only.component.spec.ts @@ -15,6 +15,7 @@ import { ConfiguratorStorefrontUtilsService } from '../../../service/configurato @Component({ selector: 'cx-configurator-price', template: '', + standalone: false, }) class MockConfiguratorPriceComponent { @Input() formula: ConfiguratorPriceComponentOptions; @@ -23,6 +24,7 @@ class MockConfiguratorPriceComponent { @Component({ selector: 'cx-configurator-show-more', template: '', + standalone: false, }) class MockConfiguratorShowMoreComponent { @Input() text: string; diff --git a/feature-libs/product-configurator/rulebased/components/attribute/types/read-only/configurator-attribute-read-only.component.ts b/feature-libs/product-configurator/rulebased/components/attribute/types/read-only/configurator-attribute-read-only.component.ts index a0dd8fe8597..ca47caebad3 100644 --- a/feature-libs/product-configurator/rulebased/components/attribute/types/read-only/configurator-attribute-read-only.component.ts +++ b/feature-libs/product-configurator/rulebased/components/attribute/types/read-only/configurator-attribute-read-only.component.ts @@ -17,6 +17,7 @@ import { ConfiguratorAttributeBaseComponent } from '../base/configurator-attribu templateUrl: './configurator-attribute-read-only.component.html', changeDetection: ChangeDetectionStrategy.OnPush, providers: [ConfiguratorAttributePriceChangeService], + standalone: false, }) export class ConfiguratorAttributeReadOnlyComponent extends ConfiguratorAttributeBaseComponent { attribute: Configurator.Attribute; diff --git a/feature-libs/product-configurator/rulebased/components/attribute/types/single-selection-bundle-dropdown/configurator-attribute-single-selection-bundle-dropdown.component.spec.ts b/feature-libs/product-configurator/rulebased/components/attribute/types/single-selection-bundle-dropdown/configurator-attribute-single-selection-bundle-dropdown.component.spec.ts index 7d2228f1109..1cf152fc527 100644 --- a/feature-libs/product-configurator/rulebased/components/attribute/types/single-selection-bundle-dropdown/configurator-attribute-single-selection-bundle-dropdown.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/attribute/types/single-selection-bundle-dropdown/configurator-attribute-single-selection-bundle-dropdown.component.spec.ts @@ -36,6 +36,7 @@ const VALUE_DISPLAY_NAME = 'Lorem Ipsum Dolor'; @Component({ selector: 'cx-configurator-attribute-product-card', template: '', + standalone: false, }) class MockProductCardComponent { @Input() productCardOptions: ConfiguratorAttributeProductCardComponentOptions; @@ -44,6 +45,7 @@ class MockProductCardComponent { @Component({ selector: 'cx-configurator-attribute-quantity', template: '', + standalone: false, }) class MockConfiguratorAttributeQuantityComponent { @Input() quantityOptions: ConfiguratorAttributeQuantityComponentOptions; @@ -52,6 +54,7 @@ class MockConfiguratorAttributeQuantityComponent { @Component({ selector: 'cx-configurator-price', template: '', + standalone: false, }) class MockConfiguratorPriceComponent { @Input() formula: ConfiguratorPriceComponentOptions; @@ -59,6 +62,7 @@ class MockConfiguratorPriceComponent { @Directive({ selector: '[cxFocus]', + standalone: false, }) export class MockFocusDirective { @Input('cxFocus') protected config: any; diff --git a/feature-libs/product-configurator/rulebased/components/attribute/types/single-selection-bundle-dropdown/configurator-attribute-single-selection-bundle-dropdown.component.ts b/feature-libs/product-configurator/rulebased/components/attribute/types/single-selection-bundle-dropdown/configurator-attribute-single-selection-bundle-dropdown.component.ts index 4bd03dbdd49..ec50f76ae59 100644 --- a/feature-libs/product-configurator/rulebased/components/attribute/types/single-selection-bundle-dropdown/configurator-attribute-single-selection-bundle-dropdown.component.ts +++ b/feature-libs/product-configurator/rulebased/components/attribute/types/single-selection-bundle-dropdown/configurator-attribute-single-selection-bundle-dropdown.component.ts @@ -20,6 +20,7 @@ import { ConfiguratorAttributeSingleSelectionBaseComponent } from '../base/confi templateUrl: './configurator-attribute-single-selection-bundle-dropdown.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ConfiguratorAttributeSingleSelectionBundleDropdownComponent extends ConfiguratorAttributeSingleSelectionBaseComponent diff --git a/feature-libs/product-configurator/rulebased/components/attribute/types/single-selection-bundle/configurator-attribute-single-selection-bundle.component.spec.ts b/feature-libs/product-configurator/rulebased/components/attribute/types/single-selection-bundle/configurator-attribute-single-selection-bundle.component.spec.ts index cd18901bacf..7b31881c523 100644 --- a/feature-libs/product-configurator/rulebased/components/attribute/types/single-selection-bundle/configurator-attribute-single-selection-bundle.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/attribute/types/single-selection-bundle/configurator-attribute-single-selection-bundle.component.spec.ts @@ -24,6 +24,7 @@ import { ConfiguratorAttributeSingleSelectionBundleComponent } from './configura @Component({ selector: 'cx-configurator-attribute-product-card', template: '', + standalone: false, }) class MockProductCardComponent { @Input() productCardOptions: ConfiguratorAttributeProductCardComponentOptions; @@ -32,6 +33,7 @@ class MockProductCardComponent { @Component({ selector: 'cx-configurator-price', template: '', + standalone: false, }) class MockConfiguratorPriceComponent { @Input() formula: ConfiguratorPriceComponentOptions; @@ -40,6 +42,7 @@ class MockConfiguratorPriceComponent { @Component({ selector: 'cx-configurator-attribute-quantity', template: '', + standalone: false, }) class MockConfiguratorAttributeQuantityComponent { @Input() quantityOptions: ConfiguratorAttributeQuantityComponentOptions; diff --git a/feature-libs/product-configurator/rulebased/components/attribute/types/single-selection-bundle/configurator-attribute-single-selection-bundle.component.ts b/feature-libs/product-configurator/rulebased/components/attribute/types/single-selection-bundle/configurator-attribute-single-selection-bundle.component.ts index 10aeb76e16e..16c16925af3 100644 --- a/feature-libs/product-configurator/rulebased/components/attribute/types/single-selection-bundle/configurator-attribute-single-selection-bundle.component.ts +++ b/feature-libs/product-configurator/rulebased/components/attribute/types/single-selection-bundle/configurator-attribute-single-selection-bundle.component.ts @@ -14,6 +14,7 @@ import { ConfiguratorAttributeSingleSelectionBaseComponent } from '../base/confi templateUrl: './configurator-attribute-single-selection-bundle.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ConfiguratorAttributeSingleSelectionBundleComponent extends ConfiguratorAttributeSingleSelectionBaseComponent { /** diff --git a/feature-libs/product-configurator/rulebased/components/attribute/types/single-selection-image/configurator-attribute-single-selection-image.component.spec.ts b/feature-libs/product-configurator/rulebased/components/attribute/types/single-selection-image/configurator-attribute-single-selection-image.component.spec.ts index 5d4e6954fcb..5230f4df090 100644 --- a/feature-libs/product-configurator/rulebased/components/attribute/types/single-selection-image/configurator-attribute-single-selection-image.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/attribute/types/single-selection-image/configurator-attribute-single-selection-image.component.spec.ts @@ -32,6 +32,7 @@ class MockGroupService {} @Directive({ selector: '[cxFocus]', + standalone: false, }) export class MockFocusDirective { @Input('cxFocus') protected config: string; @@ -40,6 +41,7 @@ export class MockFocusDirective { @Component({ selector: 'cx-configurator-price', template: '', + standalone: false, }) class MockConfiguratorPriceComponent { @Input() formula: ConfiguratorPriceComponentOptions; diff --git a/feature-libs/product-configurator/rulebased/components/attribute/types/single-selection-image/configurator-attribute-single-selection-image.component.ts b/feature-libs/product-configurator/rulebased/components/attribute/types/single-selection-image/configurator-attribute-single-selection-image.component.ts index 0f89f709e4c..a7358499e15 100644 --- a/feature-libs/product-configurator/rulebased/components/attribute/types/single-selection-image/configurator-attribute-single-selection-image.component.ts +++ b/feature-libs/product-configurator/rulebased/components/attribute/types/single-selection-image/configurator-attribute-single-selection-image.component.ts @@ -29,6 +29,7 @@ import { ConfiguratorAttributeBaseComponent } from '../base/configurator-attribu templateUrl: './configurator-attribute-single-selection-image.component.html', changeDetection: ChangeDetectionStrategy.OnPush, providers: [ConfiguratorAttributePriceChangeService], + standalone: false, }) export class ConfiguratorAttributeSingleSelectionImageComponent extends ConfiguratorAttributeBaseComponent diff --git a/feature-libs/product-configurator/rulebased/components/configurator-conflict-and-error-messages/configurator-conflict-and-error-messages.component.spec.ts b/feature-libs/product-configurator/rulebased/components/configurator-conflict-and-error-messages/configurator-conflict-and-error-messages.component.spec.ts index 715cc969db4..a63b466f9b5 100644 --- a/feature-libs/product-configurator/rulebased/components/configurator-conflict-and-error-messages/configurator-conflict-and-error-messages.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/configurator-conflict-and-error-messages/configurator-conflict-and-error-messages.component.spec.ts @@ -99,6 +99,7 @@ export class MockIconFontLoaderService { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: any; diff --git a/feature-libs/product-configurator/rulebased/components/configurator-conflict-and-error-messages/configurator-conflict-and-error-messages.component.ts b/feature-libs/product-configurator/rulebased/components/configurator-conflict-and-error-messages/configurator-conflict-and-error-messages.component.ts index ee673dc0719..0ea4cf4ffac 100644 --- a/feature-libs/product-configurator/rulebased/components/configurator-conflict-and-error-messages/configurator-conflict-and-error-messages.component.ts +++ b/feature-libs/product-configurator/rulebased/components/configurator-conflict-and-error-messages/configurator-conflict-and-error-messages.component.ts @@ -16,6 +16,7 @@ import { Configurator } from '../../core/model/configurator.model'; selector: 'cx-configuration-conflict-and-error-messages', templateUrl: './configurator-conflict-and-error-messages.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ConfiguratorConflictAndErrorMessagesComponent { iconTypes = ICON_TYPE; diff --git a/feature-libs/product-configurator/rulebased/components/conflict-description/configurator-conflict-description.component.spec.ts b/feature-libs/product-configurator/rulebased/components/conflict-description/configurator-conflict-description.component.spec.ts index c4596276c22..3d1aa106c9d 100644 --- a/feature-libs/product-configurator/rulebased/components/conflict-description/configurator-conflict-description.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/conflict-description/configurator-conflict-description.component.spec.ts @@ -9,6 +9,7 @@ import { ConfiguratorConflictDescriptionComponent } from './configurator-conflic @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; diff --git a/feature-libs/product-configurator/rulebased/components/conflict-description/configurator-conflict-description.component.ts b/feature-libs/product-configurator/rulebased/components/conflict-description/configurator-conflict-description.component.ts index c99747ebbd7..03c6c179280 100644 --- a/feature-libs/product-configurator/rulebased/components/conflict-description/configurator-conflict-description.component.ts +++ b/feature-libs/product-configurator/rulebased/components/conflict-description/configurator-conflict-description.component.ts @@ -17,6 +17,7 @@ import { Configurator } from '../../core/model/configurator.model'; selector: 'cx-configurator-conflict-description', templateUrl: './configurator-conflict-description.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ConfiguratorConflictDescriptionComponent { @Input() currentGroup: Configurator.Group; diff --git a/feature-libs/product-configurator/rulebased/components/conflict-solver-dialog/configurator-conflict-solver-dialog.component.spec.ts b/feature-libs/product-configurator/rulebased/components/conflict-solver-dialog/configurator-conflict-solver-dialog.component.spec.ts index 595c4f0db2b..bb1d6c4c865 100644 --- a/feature-libs/product-configurator/rulebased/components/conflict-solver-dialog/configurator-conflict-solver-dialog.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/conflict-solver-dialog/configurator-conflict-solver-dialog.component.spec.ts @@ -61,6 +61,7 @@ class MockLaunchDialogService implements Partial { @Directive({ selector: '[cxFocus]', + standalone: false, }) export class MockKeyboardFocusDirective { @Input('cxFocus') config: FocusConfig = {}; @@ -69,6 +70,7 @@ export class MockKeyboardFocusDirective { @Component({ selector: 'cx-configurator-group', template: '', + standalone: false, }) class MockConfiguratorDefaultFormComponent { @Input() group: Configurator.Group; diff --git a/feature-libs/product-configurator/rulebased/components/conflict-solver-dialog/configurator-conflict-solver-dialog.component.ts b/feature-libs/product-configurator/rulebased/components/conflict-solver-dialog/configurator-conflict-solver-dialog.component.ts index 0b3f0438810..8707df9b731 100644 --- a/feature-libs/product-configurator/rulebased/components/conflict-solver-dialog/configurator-conflict-solver-dialog.component.ts +++ b/feature-libs/product-configurator/rulebased/components/conflict-solver-dialog/configurator-conflict-solver-dialog.component.ts @@ -27,6 +27,7 @@ import { ConfiguratorStorefrontUtilsService } from '../service/configurator-stor selector: 'cx-configurator-conflict-solver-dialog', templateUrl: './configurator-conflict-solver-dialog.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ConfiguratorConflictSolverDialogComponent implements OnInit, OnDestroy diff --git a/feature-libs/product-configurator/rulebased/components/conflict-suggestion/configurator-conflict-suggestion.component.ts b/feature-libs/product-configurator/rulebased/components/conflict-suggestion/configurator-conflict-suggestion.component.ts index c53823d966b..2d2e44fadcc 100644 --- a/feature-libs/product-configurator/rulebased/components/conflict-suggestion/configurator-conflict-suggestion.component.ts +++ b/feature-libs/product-configurator/rulebased/components/conflict-suggestion/configurator-conflict-suggestion.component.ts @@ -16,6 +16,7 @@ import { Configurator } from '../../core/model/configurator.model'; selector: 'cx-configurator-conflict-suggestion', templateUrl: './configurator-conflict-suggestion.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ConfiguratorConflictSuggestionComponent { @Input() currentGroup: Configurator.Group; diff --git a/feature-libs/product-configurator/rulebased/components/exit-button/configurator-exit-button.component.ts b/feature-libs/product-configurator/rulebased/components/exit-button/configurator-exit-button.component.ts index 55e00f7b2fc..8f67a63204a 100644 --- a/feature-libs/product-configurator/rulebased/components/exit-button/configurator-exit-button.component.ts +++ b/feature-libs/product-configurator/rulebased/components/exit-button/configurator-exit-button.component.ts @@ -26,6 +26,7 @@ import { Configurator } from '../../core/model/configurator.model'; @Component({ selector: 'cx-configurator-exit-button', templateUrl: './configurator-exit-button.component.html', + standalone: false, }) export class ConfiguratorExitButtonComponent { container$: Observable<{ diff --git a/feature-libs/product-configurator/rulebased/components/form/configurator-form.component.spec.ts b/feature-libs/product-configurator/rulebased/components/form/configurator-form.component.spec.ts index 6aff97ee2eb..cc020edea01 100644 --- a/feature-libs/product-configurator/rulebased/components/form/configurator-form.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/form/configurator-form.component.spec.ts @@ -36,6 +36,7 @@ import { KeyboardFocusService } from '@spartacus/storefront'; @Component({ selector: 'cx-configurator-group', template: '', + standalone: false, }) class MockConfiguratorGroupComponent { @Input() group: Configurator.Group; diff --git a/feature-libs/product-configurator/rulebased/components/form/configurator-form.component.ts b/feature-libs/product-configurator/rulebased/components/form/configurator-form.component.ts index 5b0d773e69a..e96550d2c4f 100644 --- a/feature-libs/product-configurator/rulebased/components/form/configurator-form.component.ts +++ b/feature-libs/product-configurator/rulebased/components/form/configurator-form.component.ts @@ -39,6 +39,7 @@ import { ConfiguratorExpertModeService } from '../../core/services/configurator- selector: 'cx-configurator-form', templateUrl: './configurator-form.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ConfiguratorFormComponent implements OnInit, OnDestroy { protected subscription = new Subscription(); diff --git a/feature-libs/product-configurator/rulebased/components/group-menu/configurator-group-menu.component.spec.ts b/feature-libs/product-configurator/rulebased/components/group-menu/configurator-group-menu.component.spec.ts index b8334350b5c..7f931dd63f9 100644 --- a/feature-libs/product-configurator/rulebased/components/group-menu/configurator-group-menu.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/group-menu/configurator-group-menu.component.spec.ts @@ -199,6 +199,7 @@ class MockBreakpointService { @Directive({ selector: '[cxFocus]', + standalone: false, }) export class MockFocusDirective { @Input('cxFocus') protected config: string; @@ -207,6 +208,7 @@ export class MockFocusDirective { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; diff --git a/feature-libs/product-configurator/rulebased/components/group-menu/configurator-group-menu.component.ts b/feature-libs/product-configurator/rulebased/components/group-menu/configurator-group-menu.component.ts index adab5066da0..17bc7cb58ab 100644 --- a/feature-libs/product-configurator/rulebased/components/group-menu/configurator-group-menu.component.ts +++ b/feature-libs/product-configurator/rulebased/components/group-menu/configurator-group-menu.component.ts @@ -38,6 +38,7 @@ import { ConfiguratorGroupMenuService } from './configurator-group-menu.componen selector: 'cx-configurator-group-menu', templateUrl: './configurator-group-menu.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ConfiguratorGroupMenuComponent { @ViewChildren('groupItem') groups: QueryList>; diff --git a/feature-libs/product-configurator/rulebased/components/group-title/configurator-group-title.component.spec.ts b/feature-libs/product-configurator/rulebased/components/group-title/configurator-group-title.component.spec.ts index 81a1c08fb42..fca045ab1e6 100644 --- a/feature-libs/product-configurator/rulebased/components/group-title/configurator-group-title.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/group-title/configurator-group-title.component.spec.ts @@ -72,6 +72,7 @@ class MockBreakpointService { @Component({ selector: 'cx-hamburger-menu', template: '', + standalone: false, }) class MockHamburgerMenuComponent {} diff --git a/feature-libs/product-configurator/rulebased/components/group-title/configurator-group-title.component.ts b/feature-libs/product-configurator/rulebased/components/group-title/configurator-group-title.component.ts index 67e37a1043f..28faf91f223 100644 --- a/feature-libs/product-configurator/rulebased/components/group-title/configurator-group-title.component.ts +++ b/feature-libs/product-configurator/rulebased/components/group-title/configurator-group-title.component.ts @@ -31,6 +31,7 @@ import { ConfiguratorStorefrontUtilsService } from '../service/configurator-stor selector: 'cx-configurator-group-title', templateUrl: './configurator-group-title.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ConfiguratorGroupTitleComponent implements OnInit, OnDestroy, AfterContentChecked diff --git a/feature-libs/product-configurator/rulebased/components/group/configurator-group.component.spec.ts b/feature-libs/product-configurator/rulebased/components/group/configurator-group.component.spec.ts index 8760c283eb9..53604ad9400 100644 --- a/feature-libs/product-configurator/rulebased/components/group/configurator-group.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/group/configurator-group.component.spec.ts @@ -81,6 +81,7 @@ let conflictGroup: Configurator.Group; @Component({ selector: 'cx-configurator-conflict-description', template: '', + standalone: false, }) class MockConfiguratorConflictDescriptionComponent { @Input() ownerType: CommonConfigurator.OwnerType; @@ -90,6 +91,7 @@ class MockConfiguratorConflictDescriptionComponent { @Component({ selector: 'cx-configurator-price', template: '', + standalone: false, }) class MockConfiguratorPriceComponent { @Input() formula: ConfiguratorPriceComponentOptions; @@ -98,6 +100,7 @@ class MockConfiguratorPriceComponent { @Component({ selector: 'cx-configurator-attribute-product-card', template: '', + standalone: false, }) class MockProductCardComponent { @Input() productCardOptions: ConfiguratorAttributeProductCardComponentOptions; @@ -106,6 +109,7 @@ class MockProductCardComponent { @Component({ selector: 'cx-configurator-attribute-input-field', template: '', + standalone: false, }) class MockConfiguratorAttributeInputFieldComponent { @Input() ownerType: CommonConfigurator.OwnerType; @@ -119,6 +123,7 @@ class MockConfiguratorAttributeInputFieldComponent { @Component({ selector: 'cx-configurator-attribute-numeric-input-field', template: '', + standalone: false, }) class MockConfiguratorAttributeNumericInputFieldComponent { @Input() ownerType: CommonConfigurator.OwnerType; @@ -133,6 +138,7 @@ class MockConfiguratorAttributeNumericInputFieldComponent { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; @@ -140,6 +146,7 @@ class MockCxIconComponent { @Directive({ selector: '[cxFocus]', + standalone: false, }) export class MockFocusDirective { @Input('cxFocus') protected config: string; diff --git a/feature-libs/product-configurator/rulebased/components/group/configurator-group.component.ts b/feature-libs/product-configurator/rulebased/components/group/configurator-group.component.ts index fb5979161cb..67568d1fd2c 100644 --- a/feature-libs/product-configurator/rulebased/components/group/configurator-group.component.ts +++ b/feature-libs/product-configurator/rulebased/components/group/configurator-group.component.ts @@ -24,6 +24,7 @@ import { ConfiguratorExpertModeService } from '../../core/services/configurator- selector: 'cx-configurator-group', templateUrl: './configurator-group.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ConfiguratorGroupComponent { protected readonly typePrefix = 'AttributeType_'; diff --git a/feature-libs/product-configurator/rulebased/components/overview-attribute/configurator-overview-attribute.component.spec.ts b/feature-libs/product-configurator/rulebased/components/overview-attribute/configurator-overview-attribute.component.spec.ts index 72467af2f17..0fea1b89f46 100644 --- a/feature-libs/product-configurator/rulebased/components/overview-attribute/configurator-overview-attribute.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/overview-attribute/configurator-overview-attribute.component.spec.ts @@ -12,6 +12,7 @@ import { ConfiguratorOverviewAttributeComponent } from './configurator-overview- @Component({ selector: 'cx-configurator-price', template: '', + standalone: false, }) class MockConfiguratorPriceComponent { @Input() formula: ConfiguratorPriceComponentOptions; diff --git a/feature-libs/product-configurator/rulebased/components/overview-attribute/configurator-overview-attribute.component.ts b/feature-libs/product-configurator/rulebased/components/overview-attribute/configurator-overview-attribute.component.ts index 8dc755f39bc..acf660c7814 100644 --- a/feature-libs/product-configurator/rulebased/components/overview-attribute/configurator-overview-attribute.component.ts +++ b/feature-libs/product-configurator/rulebased/components/overview-attribute/configurator-overview-attribute.component.ts @@ -14,6 +14,7 @@ import { Observable } from 'rxjs'; selector: 'cx-configurator-overview-attribute', templateUrl: './configurator-overview-attribute.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ConfiguratorOverviewAttributeComponent { @Input() attributeOverview: Configurator.AttributeOverview; diff --git a/feature-libs/product-configurator/rulebased/components/overview-bundle-attribute/configurator-overview-bundle-attribute.component.spec.ts b/feature-libs/product-configurator/rulebased/components/overview-bundle-attribute/configurator-overview-bundle-attribute.component.spec.ts index d3837e89a25..5ed790d4827 100644 --- a/feature-libs/product-configurator/rulebased/components/overview-bundle-attribute/configurator-overview-bundle-attribute.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/overview-bundle-attribute/configurator-overview-bundle-attribute.component.spec.ts @@ -18,6 +18,7 @@ import { ConfiguratorOverviewBundleAttributeComponent } from './configurator-ove @Pipe({ name: 'cxNumeric', + standalone: false, }) class MockNumericPipe implements PipeTransform { transform(): any {} @@ -56,6 +57,7 @@ class MockProductService { // tslint:disable-next-line: component-selector selector: 'cx-configurator-price', template: '', + standalone: false, }) class MockConfiguratorPriceComponent { @Input() formula: ConfiguratorPriceComponentOptions; diff --git a/feature-libs/product-configurator/rulebased/components/overview-bundle-attribute/configurator-overview-bundle-attribute.component.ts b/feature-libs/product-configurator/rulebased/components/overview-bundle-attribute/configurator-overview-bundle-attribute.component.ts index 7199bc33d42..b0dedaa0ca2 100644 --- a/feature-libs/product-configurator/rulebased/components/overview-bundle-attribute/configurator-overview-bundle-attribute.component.ts +++ b/feature-libs/product-configurator/rulebased/components/overview-bundle-attribute/configurator-overview-bundle-attribute.component.ts @@ -26,6 +26,7 @@ import { ConfiguratorPriceComponentOptions } from '../price/configurator-price.c selector: 'cx-configurator-cpq-overview-attribute', templateUrl: './configurator-overview-bundle-attribute.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ConfiguratorOverviewBundleAttributeComponent implements OnInit { product$: Observable; diff --git a/feature-libs/product-configurator/rulebased/components/overview-filter-bar/configurator-overview-filter-bar.component.spec.ts b/feature-libs/product-configurator/rulebased/components/overview-filter-bar/configurator-overview-filter-bar.component.spec.ts index b4fd8cf4d8d..747d46682cc 100644 --- a/feature-libs/product-configurator/rulebased/components/overview-filter-bar/configurator-overview-filter-bar.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/overview-filter-bar/configurator-overview-filter-bar.component.spec.ts @@ -59,6 +59,7 @@ function initMocks() { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; diff --git a/feature-libs/product-configurator/rulebased/components/overview-filter-bar/configurator-overview-filter-bar.component.ts b/feature-libs/product-configurator/rulebased/components/overview-filter-bar/configurator-overview-filter-bar.component.ts index 3440591bc6d..51dd017d8a6 100644 --- a/feature-libs/product-configurator/rulebased/components/overview-filter-bar/configurator-overview-filter-bar.component.ts +++ b/feature-libs/product-configurator/rulebased/components/overview-filter-bar/configurator-overview-filter-bar.component.ts @@ -13,6 +13,7 @@ import { ConfiguratorStorefrontUtilsService } from '../service/configurator-stor @Component({ selector: 'cx-configurator-overview-filter-bar', templateUrl: './configurator-overview-filter-bar.component.html', + standalone: false, }) export class ConfiguratorOverviewFilterBarComponent { readonly PREFIX_ID = 'cx-overview-filter-applied-'; diff --git a/feature-libs/product-configurator/rulebased/components/overview-filter-button/configurator-overview-filter-button.component.spec.ts b/feature-libs/product-configurator/rulebased/components/overview-filter-button/configurator-overview-filter-button.component.spec.ts index b43b711d2ae..a9b6dff3a0b 100644 --- a/feature-libs/product-configurator/rulebased/components/overview-filter-button/configurator-overview-filter-button.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/overview-filter-button/configurator-overview-filter-button.component.spec.ts @@ -71,6 +71,7 @@ function initMocks() { @Component({ selector: 'cx-configurator-overview-filter-bar', template: '', + standalone: false, }) class MockConfiguratorOverviewFilterBarComponent { @Input() config: Configurator.ConfigurationWithOverview; diff --git a/feature-libs/product-configurator/rulebased/components/overview-filter-button/configurator-overview-filter-button.component.ts b/feature-libs/product-configurator/rulebased/components/overview-filter-button/configurator-overview-filter-button.component.ts index fc7f5ee2d61..288cdbea0ad 100644 --- a/feature-libs/product-configurator/rulebased/components/overview-filter-button/configurator-overview-filter-button.component.ts +++ b/feature-libs/product-configurator/rulebased/components/overview-filter-button/configurator-overview-filter-button.component.ts @@ -22,6 +22,7 @@ import { ConfiguratorStorefrontUtilsService } from '../service/configurator-stor @Component({ selector: 'cx-configurator-overview-filter-button', templateUrl: './configurator-overview-filter-button.component.html', + standalone: false, }) export class ConfiguratorOverviewFilterButtonComponent { protected configuratorStorefrontUtilsService = inject( diff --git a/feature-libs/product-configurator/rulebased/components/overview-filter-dialog/configurator-overview-filter-dialog.component.spec.ts b/feature-libs/product-configurator/rulebased/components/overview-filter-dialog/configurator-overview-filter-dialog.component.spec.ts index 63333c89f73..4fcc6de7408 100644 --- a/feature-libs/product-configurator/rulebased/components/overview-filter-dialog/configurator-overview-filter-dialog.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/overview-filter-dialog/configurator-overview-filter-dialog.component.spec.ts @@ -39,6 +39,7 @@ function initializeMocks() { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; @@ -47,6 +48,7 @@ class MockCxIconComponent { @Component({ selector: 'cx-configurator-overview-filter', template: '', + standalone: false, }) class MockConfiguratorOverviewFilterComponent { @Input() showFilterBar: boolean = true; @@ -54,6 +56,7 @@ class MockConfiguratorOverviewFilterComponent { } @Directive({ selector: '[cxFocus]', + standalone: false, }) export class MockKeyboadFocusDirective { @Input('cxFocus') config: FocusConfig = {}; diff --git a/feature-libs/product-configurator/rulebased/components/overview-filter-dialog/configurator-overview-filter-dialog.component.ts b/feature-libs/product-configurator/rulebased/components/overview-filter-dialog/configurator-overview-filter-dialog.component.ts index 77f014f5efa..3a9cc262d32 100644 --- a/feature-libs/product-configurator/rulebased/components/overview-filter-dialog/configurator-overview-filter-dialog.component.ts +++ b/feature-libs/product-configurator/rulebased/components/overview-filter-dialog/configurator-overview-filter-dialog.component.ts @@ -14,6 +14,7 @@ import { @Component({ selector: 'cx-configurator-overview-filter-dialog', templateUrl: './configurator-overview-filter-dialog.component.html', + standalone: false, }) export class ConfiguratorOverviewFilterDialogComponent { constructor(protected launchDialogService: LaunchDialogService) {} diff --git a/feature-libs/product-configurator/rulebased/components/overview-filter/configurator-overview-filter.component.spec.ts b/feature-libs/product-configurator/rulebased/components/overview-filter/configurator-overview-filter.component.spec.ts index cb2c34e7103..19cf60d728d 100644 --- a/feature-libs/product-configurator/rulebased/components/overview-filter/configurator-overview-filter.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/overview-filter/configurator-overview-filter.component.spec.ts @@ -63,6 +63,7 @@ function initTestComponent() { @Component({ selector: 'cx-configurator-overview-filter-bar', template: '', + standalone: false, }) class MockConfiguratorOverviewFilterBarComponent { @Input() config: Configurator.ConfigurationWithOverview; diff --git a/feature-libs/product-configurator/rulebased/components/overview-filter/configurator-overview-filter.component.ts b/feature-libs/product-configurator/rulebased/components/overview-filter/configurator-overview-filter.component.ts index 84cd33bc625..a9ae15c7ef1 100644 --- a/feature-libs/product-configurator/rulebased/components/overview-filter/configurator-overview-filter.component.ts +++ b/feature-libs/product-configurator/rulebased/components/overview-filter/configurator-overview-filter.component.ts @@ -14,6 +14,7 @@ import { ConfiguratorStorefrontUtilsService } from '../service/configurator-stor @Component({ selector: 'cx-configurator-overview-filter', templateUrl: './configurator-overview-filter.component.html', + standalone: false, }) export class ConfiguratorOverviewFilterComponent implements OnChanges { protected configuratorStorefrontUtilsService = inject( diff --git a/feature-libs/product-configurator/rulebased/components/overview-form/configurator-overview-form.component.spec.ts b/feature-libs/product-configurator/rulebased/components/overview-form/configurator-overview-form.component.spec.ts index 9a089a2d687..df5250d847d 100644 --- a/feature-libs/product-configurator/rulebased/components/overview-form/configurator-overview-form.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/overview-form/configurator-overview-form.component.spec.ts @@ -129,6 +129,7 @@ function checkConfigurationOverviewObs( @Component({ selector: 'cx-configurator-price', template: '', + standalone: false, }) class MockConfiguratorPriceComponent { @Input() formula: ConfiguratorPriceComponentOptions; diff --git a/feature-libs/product-configurator/rulebased/components/overview-form/configurator-overview-form.component.ts b/feature-libs/product-configurator/rulebased/components/overview-form/configurator-overview-form.component.ts index d298d57affc..531f976993c 100644 --- a/feature-libs/product-configurator/rulebased/components/overview-form/configurator-overview-form.component.ts +++ b/feature-libs/product-configurator/rulebased/components/overview-form/configurator-overview-form.component.ts @@ -23,6 +23,7 @@ import { ConfiguratorStorefrontUtilsService } from '../service/configurator-stor templateUrl: './configurator-overview-form.component.html', //here we cannot go with OnPush, as we otherwise do not take the change to host binding into account changeDetection: ChangeDetectionStrategy.Default, + standalone: false, }) export class ConfiguratorOverviewFormComponent { @HostBinding('class.ghost') ghostStyle = true; diff --git a/feature-libs/product-configurator/rulebased/components/overview-menu/configurator-overview-menu.component.spec.ts b/feature-libs/product-configurator/rulebased/components/overview-menu/configurator-overview-menu.component.spec.ts index f9f4ef3483a..11c5db9a65f 100644 --- a/feature-libs/product-configurator/rulebased/components/overview-menu/configurator-overview-menu.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/overview-menu/configurator-overview-menu.component.spec.ts @@ -57,6 +57,7 @@ class MockConfiguratorStorefrontUtilsService { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; diff --git a/feature-libs/product-configurator/rulebased/components/overview-menu/configurator-overview-menu.component.ts b/feature-libs/product-configurator/rulebased/components/overview-menu/configurator-overview-menu.component.ts index 0ec4f50e380..d5bf93429bd 100644 --- a/feature-libs/product-configurator/rulebased/components/overview-menu/configurator-overview-menu.component.ts +++ b/feature-libs/product-configurator/rulebased/components/overview-menu/configurator-overview-menu.component.ts @@ -20,6 +20,7 @@ import { ConfiguratorStorefrontUtilsService } from '../service/configurator-stor selector: 'cx-configurator-overview-menu', templateUrl: './configurator-overview-menu.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ConfiguratorOverviewMenuComponent implements AfterViewInit { @HostBinding('style.height') height = this.getHeight(); diff --git a/feature-libs/product-configurator/rulebased/components/overview-notification-banner/configurator-overview-notification-banner.component.spec.ts b/feature-libs/product-configurator/rulebased/components/overview-notification-banner/configurator-overview-notification-banner.component.spec.ts index f9c26191ede..f36793e796f 100644 --- a/feature-libs/product-configurator/rulebased/components/overview-notification-banner/configurator-overview-notification-banner.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/overview-notification-banner/configurator-overview-notification-banner.component.spec.ts @@ -23,6 +23,7 @@ import { ConfiguratorOverviewNotificationBannerComponent } from './configurator- @Pipe({ name: 'cxTranslate', + standalone: false, }) class MockTranslatePipe implements PipeTransform { transform(): any {} @@ -30,6 +31,7 @@ class MockTranslatePipe implements PipeTransform { @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform(): any {} @@ -117,6 +119,7 @@ function initialize(router: ConfiguratorRouter.Data) { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: any; diff --git a/feature-libs/product-configurator/rulebased/components/overview-notification-banner/configurator-overview-notification-banner.component.ts b/feature-libs/product-configurator/rulebased/components/overview-notification-banner/configurator-overview-notification-banner.component.ts index 8a0126a8929..2ec3e8a5f11 100644 --- a/feature-libs/product-configurator/rulebased/components/overview-notification-banner/configurator-overview-notification-banner.component.ts +++ b/feature-libs/product-configurator/rulebased/components/overview-notification-banner/configurator-overview-notification-banner.component.ts @@ -21,6 +21,7 @@ import { Configurator } from '../../core/model/configurator.model'; selector: 'cx-configurator-overview-notification-banner', templateUrl: './configurator-overview-notification-banner.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ConfiguratorOverviewNotificationBannerComponent { routerData$: Observable = diff --git a/feature-libs/product-configurator/rulebased/components/overview-sidebar/configurator-overview-sidebar.component.spec.ts b/feature-libs/product-configurator/rulebased/components/overview-sidebar/configurator-overview-sidebar.component.spec.ts index 8de8c31edbc..208c55e0f36 100644 --- a/feature-libs/product-configurator/rulebased/components/overview-sidebar/configurator-overview-sidebar.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/overview-sidebar/configurator-overview-sidebar.component.spec.ts @@ -96,6 +96,7 @@ class MockProductService { @Component({ selector: 'cx-configurator-overview-filter', template: '', + standalone: false, }) class MockConfiguratorOverviewFilterComponent { @Input() showFilterBar: boolean = true; @@ -105,6 +106,7 @@ class MockConfiguratorOverviewFilterComponent { @Component({ selector: 'cx-configurator-overview-menu', template: '', + standalone: false, }) class MockConfiguratorOverviewMenuComponent { @Input() config: Configurator.ConfigurationWithOverview; diff --git a/feature-libs/product-configurator/rulebased/components/overview-sidebar/configurator-overview-sidebar.component.ts b/feature-libs/product-configurator/rulebased/components/overview-sidebar/configurator-overview-sidebar.component.ts index 102bf096bb3..f89d66a687f 100644 --- a/feature-libs/product-configurator/rulebased/components/overview-sidebar/configurator-overview-sidebar.component.ts +++ b/feature-libs/product-configurator/rulebased/components/overview-sidebar/configurator-overview-sidebar.component.ts @@ -15,6 +15,7 @@ import { ConfiguratorStorefrontUtilsService } from '../service/configurator-stor @Component({ selector: 'cx-configurator-overview-sidebar', templateUrl: './configurator-overview-sidebar.component.html', + standalone: false, }) export class ConfiguratorOverviewSidebarComponent { @HostBinding('class.ghost') ghostStyle = true; diff --git a/feature-libs/product-configurator/rulebased/components/previous-next-buttons/configurator-previous-next-buttons.component.spec.ts b/feature-libs/product-configurator/rulebased/components/previous-next-buttons/configurator-previous-next-buttons.component.spec.ts index 1e1d95e56dc..a10f315b9ac 100644 --- a/feature-libs/product-configurator/rulebased/components/previous-next-buttons/configurator-previous-next-buttons.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/previous-next-buttons/configurator-previous-next-buttons.component.spec.ts @@ -97,6 +97,7 @@ class MockConfigUtilsService { @Directive({ selector: '[cxFocus]', + standalone: false, }) export class MockFocusDirective { @Input('cxFocus') protected config: any; diff --git a/feature-libs/product-configurator/rulebased/components/previous-next-buttons/configurator-previous-next-buttons.component.ts b/feature-libs/product-configurator/rulebased/components/previous-next-buttons/configurator-previous-next-buttons.component.ts index bc22b0ef9de..2ce78f3fc74 100644 --- a/feature-libs/product-configurator/rulebased/components/previous-next-buttons/configurator-previous-next-buttons.component.ts +++ b/feature-libs/product-configurator/rulebased/components/previous-next-buttons/configurator-previous-next-buttons.component.ts @@ -20,6 +20,7 @@ import { ConfiguratorStorefrontUtilsService } from '../service/configurator-stor selector: 'cx-configurator-previous-next-buttons', templateUrl: './configurator-previous-next-buttons.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ConfiguratorPreviousNextButtonsComponent { configuration$: Observable = diff --git a/feature-libs/product-configurator/rulebased/components/price-summary/configurator-price-summary.component.ts b/feature-libs/product-configurator/rulebased/components/price-summary/configurator-price-summary.component.ts index 1f2c3ee2552..5fd812e6e4c 100644 --- a/feature-libs/product-configurator/rulebased/components/price-summary/configurator-price-summary.component.ts +++ b/feature-libs/product-configurator/rulebased/components/price-summary/configurator-price-summary.component.ts @@ -15,6 +15,7 @@ import { Configurator } from '../../core/model/configurator.model'; selector: 'cx-configurator-price-summary', templateUrl: './configurator-price-summary.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ConfiguratorPriceSummaryComponent { configuration$: Observable = diff --git a/feature-libs/product-configurator/rulebased/components/price/configurator-price.component.spec.ts b/feature-libs/product-configurator/rulebased/components/price/configurator-price.component.spec.ts index 4a70c1ea6ab..2d8117629a8 100644 --- a/feature-libs/product-configurator/rulebased/components/price/configurator-price.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/price/configurator-price.component.spec.ts @@ -8,6 +8,7 @@ import { ConfiguratorTestUtils } from '../../testing/configurator-test-utils'; @Pipe({ name: 'cxNumeric', + standalone: false, }) class MockNumericPipe implements PipeTransform { transform(value: string): string { diff --git a/feature-libs/product-configurator/rulebased/components/price/configurator-price.component.ts b/feature-libs/product-configurator/rulebased/components/price/configurator-price.component.ts index 54fb6332143..2686192e454 100644 --- a/feature-libs/product-configurator/rulebased/components/price/configurator-price.component.ts +++ b/feature-libs/product-configurator/rulebased/components/price/configurator-price.component.ts @@ -20,6 +20,7 @@ export interface ConfiguratorPriceComponentOptions { selector: 'cx-configurator-price', templateUrl: './configurator-price.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ConfiguratorPriceComponent { @Input() formula: ConfiguratorPriceComponentOptions; diff --git a/feature-libs/product-configurator/rulebased/components/product-title/configurator-product-title.component.spec.ts b/feature-libs/product-configurator/rulebased/components/product-title/configurator-product-title.component.spec.ts index a7fcd42d0fe..cffcec2f82a 100644 --- a/feature-libs/product-configurator/rulebased/components/product-title/configurator-product-title.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/product-title/configurator-product-title.component.spec.ts @@ -146,6 +146,7 @@ export class MockIconFontLoaderService { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: any; @@ -154,6 +155,7 @@ class MockCxIconComponent { @Component({ template: '', selector: 'cx-media', + standalone: false, }) class MockMediaComponent { @Input() container: any; diff --git a/feature-libs/product-configurator/rulebased/components/product-title/configurator-product-title.component.ts b/feature-libs/product-configurator/rulebased/components/product-title/configurator-product-title.component.ts index 95bb3ce47c4..c8f62da86f8 100644 --- a/feature-libs/product-configurator/rulebased/components/product-title/configurator-product-title.component.ts +++ b/feature-libs/product-configurator/rulebased/components/product-title/configurator-product-title.component.ts @@ -21,6 +21,7 @@ import { Configurator } from '../../core/model/configurator.model'; selector: 'cx-configurator-product-title', templateUrl: './configurator-product-title.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ConfiguratorProductTitleComponent { @HostBinding('class.ghost') ghostStyle = true; diff --git a/feature-libs/product-configurator/rulebased/components/restart-dialog/configurator-restart-dialog.component.spec.ts b/feature-libs/product-configurator/rulebased/components/restart-dialog/configurator-restart-dialog.component.spec.ts index 4d65ecac975..ddab6c277c7 100644 --- a/feature-libs/product-configurator/rulebased/components/restart-dialog/configurator-restart-dialog.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/restart-dialog/configurator-restart-dialog.component.spec.ts @@ -28,6 +28,7 @@ const product: Product = { code: 'pCode' }; @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; @@ -35,6 +36,7 @@ class MockCxIconComponent { @Directive({ selector: '[cxFocus]', + standalone: false, }) export class MockKeyboadFocusDirective { @Input('cxFocus') config: FocusConfig = {}; diff --git a/feature-libs/product-configurator/rulebased/components/restart-dialog/configurator-restart-dialog.component.ts b/feature-libs/product-configurator/rulebased/components/restart-dialog/configurator-restart-dialog.component.ts index 464257ef7d3..7e235cddfe7 100644 --- a/feature-libs/product-configurator/rulebased/components/restart-dialog/configurator-restart-dialog.component.ts +++ b/feature-libs/product-configurator/rulebased/components/restart-dialog/configurator-restart-dialog.component.ts @@ -19,6 +19,7 @@ import { ConfiguratorCommonsService } from '../../core/facade/configurator-commo @Component({ selector: 'cx-configurator-restart-dialog', templateUrl: './configurator-restart-dialog.component.html', + standalone: false, }) export class ConfiguratorRestartDialogComponent { constructor( diff --git a/feature-libs/product-configurator/rulebased/components/service/configurator-storefront-utils.service.spec.ts b/feature-libs/product-configurator/rulebased/components/service/configurator-storefront-utils.service.spec.ts index 7e3f90494bb..9d423c7ab45 100644 --- a/feature-libs/product-configurator/rulebased/components/service/configurator-storefront-utils.service.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/service/configurator-storefront-utils.service.spec.ts @@ -102,6 +102,7 @@ function createFocusedElements( `, + standalone: false, }) class MockComponent {} diff --git a/feature-libs/product-configurator/rulebased/components/show-more/configurator-show-more.component.ts b/feature-libs/product-configurator/rulebased/components/show-more/configurator-show-more.component.ts index 86c2aa57ffe..3b639285242 100644 --- a/feature-libs/product-configurator/rulebased/components/show-more/configurator-show-more.component.ts +++ b/feature-libs/product-configurator/rulebased/components/show-more/configurator-show-more.component.ts @@ -18,6 +18,7 @@ import { Config, useFeatureStyles } from '@spartacus/core'; selector: 'cx-configurator-show-more', templateUrl: './configurator-show-more.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ConfiguratorShowMoreComponent implements AfterViewInit { showMore = false; diff --git a/feature-libs/product-configurator/rulebased/components/tab-bar/configurator-tab-bar.component.spec.ts b/feature-libs/product-configurator/rulebased/components/tab-bar/configurator-tab-bar.component.spec.ts index ca8b3b3d11d..f8120e700b5 100644 --- a/feature-libs/product-configurator/rulebased/components/tab-bar/configurator-tab-bar.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/tab-bar/configurator-tab-bar.component.spec.ts @@ -91,6 +91,7 @@ class MockConfiguratorGroupsService {} @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform(): any {} diff --git a/feature-libs/product-configurator/rulebased/components/tab-bar/configurator-tab-bar.component.ts b/feature-libs/product-configurator/rulebased/components/tab-bar/configurator-tab-bar.component.ts index 093d8ea322f..d4fbe589c06 100644 --- a/feature-libs/product-configurator/rulebased/components/tab-bar/configurator-tab-bar.component.ts +++ b/feature-libs/product-configurator/rulebased/components/tab-bar/configurator-tab-bar.component.ts @@ -29,6 +29,7 @@ import { KeyboardFocusService } from '@spartacus/storefront'; templateUrl: './configurator-tab-bar.component.html', //here we cannot go with OnPush, as we otherwise do not take the change to host binding into account changeDetection: ChangeDetectionStrategy.Default, + standalone: false, }) export class ConfiguratorTabBarComponent { @HostBinding('class.ghost') ghostStyle = true; diff --git a/feature-libs/product-configurator/rulebased/components/update-message/configurator-update-message.component.spec.ts b/feature-libs/product-configurator/rulebased/components/update-message/configurator-update-message.component.spec.ts index e2c10fe6856..8a7ef75fae9 100644 --- a/feature-libs/product-configurator/rulebased/components/update-message/configurator-update-message.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/update-message/configurator-update-message.component.spec.ts @@ -49,6 +49,7 @@ class MockMessageConfig { @Component({ selector: 'cx-spinner', template: '', + standalone: false, }) class MockCxSpinnerComponent {} describe('ConfigurationUpdateMessageComponent', () => { diff --git a/feature-libs/product-configurator/rulebased/components/update-message/configurator-update-message.component.ts b/feature-libs/product-configurator/rulebased/components/update-message/configurator-update-message.component.ts index 1c3b524c123..4bc0cd488e1 100644 --- a/feature-libs/product-configurator/rulebased/components/update-message/configurator-update-message.component.ts +++ b/feature-libs/product-configurator/rulebased/components/update-message/configurator-update-message.component.ts @@ -15,6 +15,7 @@ import { ConfiguratorMessageConfig } from '../config/configurator-message.config selector: 'cx-configurator-update-message', templateUrl: './configurator-update-message.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ConfiguratorUpdateMessageComponent { hasPendingChanges$: Observable = this.configRouterExtractorService diff --git a/feature-libs/product-configurator/rulebased/components/variant-carousel/configurator-variant-carousel.component.spec.ts b/feature-libs/product-configurator/rulebased/components/variant-carousel/configurator-variant-carousel.component.spec.ts index 6228b1899f3..e8fcf7aba2c 100644 --- a/feature-libs/product-configurator/rulebased/components/variant-carousel/configurator-variant-carousel.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/variant-carousel/configurator-variant-carousel.component.spec.ts @@ -50,6 +50,7 @@ const product: Product = { @Component({ selector: 'cx-carousel', template: '', + standalone: false, }) class MockCarouselComponent { @Input() items; @@ -60,6 +61,7 @@ class MockCarouselComponent { @Pipe({ name: 'cxTranslate', + standalone: false, }) class MockTranslatePipe implements PipeTransform { transform(): any {} diff --git a/feature-libs/product-configurator/rulebased/components/variant-carousel/configurator-variant-carousel.component.ts b/feature-libs/product-configurator/rulebased/components/variant-carousel/configurator-variant-carousel.component.ts index 5e7c4aa6e5e..88d6d866e89 100644 --- a/feature-libs/product-configurator/rulebased/components/variant-carousel/configurator-variant-carousel.component.ts +++ b/feature-libs/product-configurator/rulebased/components/variant-carousel/configurator-variant-carousel.component.ts @@ -16,6 +16,7 @@ import { Configurator } from '../../core/model/configurator.model'; selector: 'cx-configurator-variant-carousel', templateUrl: './configurator-variant-carousel.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ConfiguratorVariantCarouselComponent { configuration$: Observable = diff --git a/feature-libs/product-configurator/schematics/add-product-configurator/__snapshots__/index_spec.ts.snap b/feature-libs/product-configurator/schematics/add-product-configurator/__snapshots__/index_spec.ts.snap index a80c5470e88..96e810a01e9 100644 --- a/feature-libs/product-configurator/schematics/add-product-configurator/__snapshots__/index_spec.ts.snap +++ b/feature-libs/product-configurator/schematics/add-product-configurator/__snapshots__/index_spec.ts.snap @@ -179,7 +179,12 @@ exports[`Spartacus product configurator schematics: ng-add Product config featur "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } }, "configurations": { @@ -192,8 +197,8 @@ exports[`Spartacus product configurator schematics: ng-add Product config featur }, { "type": "anyComponentStyle", - "maximumWarning": "2kB", - "maximumError": "4kB" + "maximumWarning": "4kB", + "maximumError": "8kB" } ], "outputHashing": "all" @@ -244,7 +249,12 @@ exports[`Spartacus product configurator schematics: ng-add Product config featur "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } } } @@ -419,7 +429,12 @@ exports[`Spartacus product configurator schematics: ng-add Product config featur "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } }, "configurations": { @@ -432,8 +447,8 @@ exports[`Spartacus product configurator schematics: ng-add Product config featur }, { "type": "anyComponentStyle", - "maximumWarning": "2kB", - "maximumError": "4kB" + "maximumWarning": "4kB", + "maximumError": "8kB" } ], "outputHashing": "all" @@ -484,7 +499,12 @@ exports[`Spartacus product configurator schematics: ng-add Product config featur "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } } } @@ -638,7 +658,12 @@ exports[`Spartacus product configurator schematics: ng-add Product config featur "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } }, "configurations": { @@ -651,8 +676,8 @@ exports[`Spartacus product configurator schematics: ng-add Product config featur }, { "type": "anyComponentStyle", - "maximumWarning": "2kB", - "maximumError": "4kB" + "maximumWarning": "4kB", + "maximumError": "8kB" } ], "outputHashing": "all" @@ -703,7 +728,12 @@ exports[`Spartacus product configurator schematics: ng-add Product config featur "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } } } @@ -823,7 +853,12 @@ exports[`Spartacus product configurator schematics: ng-add Product config featur "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } }, "configurations": { @@ -836,8 +871,8 @@ exports[`Spartacus product configurator schematics: ng-add Product config featur }, { "type": "anyComponentStyle", - "maximumWarning": "2kB", - "maximumError": "4kB" + "maximumWarning": "4kB", + "maximumError": "8kB" } ], "outputHashing": "all" @@ -888,7 +923,12 @@ exports[`Spartacus product configurator schematics: ng-add Product config featur "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } } } diff --git a/feature-libs/product-configurator/textfield/components/add-to-cart-button/configurator-textfield-add-to-cart-button.component.spec.ts b/feature-libs/product-configurator/textfield/components/add-to-cart-button/configurator-textfield-add-to-cart-button.component.spec.ts index 13121744cce..c9d7b0bd867 100644 --- a/feature-libs/product-configurator/textfield/components/add-to-cart-button/configurator-textfield-add-to-cart-button.component.spec.ts +++ b/feature-libs/product-configurator/textfield/components/add-to-cart-button/configurator-textfield-add-to-cart-button.component.spec.ts @@ -56,6 +56,7 @@ class MockConfiguratorTextfieldService { @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform(): any {} diff --git a/feature-libs/product-configurator/textfield/components/add-to-cart-button/configurator-textfield-add-to-cart-button.component.ts b/feature-libs/product-configurator/textfield/components/add-to-cart-button/configurator-textfield-add-to-cart-button.component.ts index 26e6d1c123c..168a10fbb70 100644 --- a/feature-libs/product-configurator/textfield/components/add-to-cart-button/configurator-textfield-add-to-cart-button.component.ts +++ b/feature-libs/product-configurator/textfield/components/add-to-cart-button/configurator-textfield-add-to-cart-button.component.ts @@ -13,6 +13,7 @@ import { ConfiguratorTextfield } from '../../core/model/configurator-textfield.m selector: 'cx-configurator-textfield-add-to-cart-button', templateUrl: './configurator-textfield-add-to-cart-button.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ConfiguratorTextfieldAddToCartButtonComponent { @Input() configuration: ConfiguratorTextfield.Configuration; diff --git a/feature-libs/product-configurator/textfield/components/form/configurator-textfield-form.component.ts b/feature-libs/product-configurator/textfield/components/form/configurator-textfield-form.component.ts index 34ba6bde9f0..6b31260519b 100644 --- a/feature-libs/product-configurator/textfield/components/form/configurator-textfield-form.component.ts +++ b/feature-libs/product-configurator/textfield/components/form/configurator-textfield-form.component.ts @@ -18,6 +18,7 @@ import { ConfiguratorTextfield } from '../../core/model/configurator-textfield.m @Component({ selector: 'cx-configurator-textfield-form', templateUrl: './configurator-textfield-form.component.html', + standalone: false, }) export class ConfiguratorTextfieldFormComponent { configuration$: Observable = diff --git a/feature-libs/product-configurator/textfield/components/input-field-readonly/configurator-textfield-input-field-readonly.component.ts b/feature-libs/product-configurator/textfield/components/input-field-readonly/configurator-textfield-input-field-readonly.component.ts index 5671bc45b84..17f994d3d1b 100644 --- a/feature-libs/product-configurator/textfield/components/input-field-readonly/configurator-textfield-input-field-readonly.component.ts +++ b/feature-libs/product-configurator/textfield/components/input-field-readonly/configurator-textfield-input-field-readonly.component.ts @@ -12,6 +12,7 @@ import { ConfiguratorTextfield } from '../../core/model/configurator-textfield.m selector: 'cx-configurator-textfield-input-field-readonly', templateUrl: './configurator-textfield-input-field-readonly.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ConfiguratorTextfieldInputFieldReadonlyComponent { PREFIX_TEXTFIELD = 'cx-configurator-textfield'; diff --git a/feature-libs/product-configurator/textfield/components/input-field/configurator-textfield-input-field.component.ts b/feature-libs/product-configurator/textfield/components/input-field/configurator-textfield-input-field.component.ts index bcf010a8132..ae8be038aec 100644 --- a/feature-libs/product-configurator/textfield/components/input-field/configurator-textfield-input-field.component.ts +++ b/feature-libs/product-configurator/textfield/components/input-field/configurator-textfield-input-field.component.ts @@ -19,6 +19,7 @@ import { ConfiguratorTextfield } from '../../core/model/configurator-textfield.m selector: 'cx-configurator-textfield-input-field', templateUrl: './configurator-textfield-input-field.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ConfiguratorTextfieldInputFieldComponent implements OnInit { PREFIX_TEXTFIELD = 'cx-configurator-textfield'; diff --git a/feature-libs/product-multi-dimensional/list/root/components/product-item-details/product-multi-dimensional-list-item-details.component.ts b/feature-libs/product-multi-dimensional/list/root/components/product-item-details/product-multi-dimensional-list-item-details.component.ts index 2d054199a5e..87e6b37bb3f 100644 --- a/feature-libs/product-multi-dimensional/list/root/components/product-item-details/product-multi-dimensional-list-item-details.component.ts +++ b/feature-libs/product-multi-dimensional/list/root/components/product-item-details/product-multi-dimensional-list-item-details.component.ts @@ -13,6 +13,7 @@ import { ProductListItemContext } from '@spartacus/storefront'; selector: 'cx-product-multi-dimensional-list-item-details', templateUrl: './product-multi-dimensional-list-item-details.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ProductMultiDimensionalListItemDetailsComponent { productListItemContext?: ProductListItemContext = inject( diff --git a/feature-libs/product-multi-dimensional/package.json b/feature-libs/product-multi-dimensional/package.json index 40fe1a768dc..88c0b5682f2 100644 --- a/feature-libs/product-multi-dimensional/package.json +++ b/feature-libs/product-multi-dimensional/package.json @@ -25,12 +25,12 @@ "tslib": "^2.8.1" }, "peerDependencies": { - "@angular-devkit/schematics": "^18.2.9", - "@angular/common": "^18.2.9", - "@angular/core": "^18.2.9", - "@angular/forms": "^18.2.9", - "@angular/router": "^18.2.9", - "@ng-select/ng-select": "^13.9.1", + "@angular-devkit/schematics": "^19.0.4", + "@angular/common": "^19.0.3", + "@angular/core": "^19.0.3", + "@angular/forms": "^19.0.3", + "@angular/router": "^19.0.3", + "@ng-select/ng-select": "^14.1.0", "@spartacus/core": "2211.32.0", "@spartacus/schematics": "2211.32.0", "@spartacus/storefront": "2211.32.0", diff --git a/feature-libs/product-multi-dimensional/schematics/add-product-multi-dimensional/__snapshots__/index_spec.ts.snap b/feature-libs/product-multi-dimensional/schematics/add-product-multi-dimensional/__snapshots__/index_spec.ts.snap index ad146131409..e6bcafed603 100644 --- a/feature-libs/product-multi-dimensional/schematics/add-product-multi-dimensional/__snapshots__/index_spec.ts.snap +++ b/feature-libs/product-multi-dimensional/schematics/add-product-multi-dimensional/__snapshots__/index_spec.ts.snap @@ -62,7 +62,12 @@ exports[`Spartacus Product Multi-Dimensional schematics: ng-add list feature gen "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } }, "configurations": { @@ -75,8 +80,8 @@ exports[`Spartacus Product Multi-Dimensional schematics: ng-add list feature gen }, { "type": "anyComponentStyle", - "maximumWarning": "2kB", - "maximumError": "4kB" + "maximumWarning": "4kB", + "maximumError": "8kB" } ], "outputHashing": "all" @@ -126,7 +131,12 @@ exports[`Spartacus Product Multi-Dimensional schematics: ng-add list feature gen "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } } } @@ -249,7 +259,12 @@ exports[`Spartacus Product Multi-Dimensional schematics: ng-add selector feature "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } }, "configurations": { @@ -262,8 +277,8 @@ exports[`Spartacus Product Multi-Dimensional schematics: ng-add selector feature }, { "type": "anyComponentStyle", - "maximumWarning": "2kB", - "maximumError": "4kB" + "maximumWarning": "4kB", + "maximumError": "8kB" } ], "outputHashing": "all" @@ -314,7 +329,12 @@ exports[`Spartacus Product Multi-Dimensional schematics: ng-add selector feature "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } } } diff --git a/feature-libs/product-multi-dimensional/selector/components/selector/product-multi-dimensional-selector.component.ts b/feature-libs/product-multi-dimensional/selector/components/selector/product-multi-dimensional-selector.component.ts index 2bcbe127d78..cb34af31607 100644 --- a/feature-libs/product-multi-dimensional/selector/components/selector/product-multi-dimensional-selector.component.ts +++ b/feature-libs/product-multi-dimensional/selector/components/selector/product-multi-dimensional-selector.component.ts @@ -34,6 +34,7 @@ import { Observable } from 'rxjs'; selector: 'cx-product-multi-dimensional-selector', templateUrl: './product-multi-dimensional-selector.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ProductMultiDimensionalSelectorComponent { protected multiDimensionalService: ProductMultiDimensionalSelectorService = diff --git a/feature-libs/product/bulk-pricing/components/bulk-pricing-table/bulk-pricing-table.component.ts b/feature-libs/product/bulk-pricing/components/bulk-pricing-table/bulk-pricing-table.component.ts index 26594ae0994..af8a499a302 100644 --- a/feature-libs/product/bulk-pricing/components/bulk-pricing-table/bulk-pricing-table.component.ts +++ b/feature-libs/product/bulk-pricing/components/bulk-pricing-table/bulk-pricing-table.component.ts @@ -14,6 +14,7 @@ import { switchMap } from 'rxjs/operators'; @Component({ selector: 'cx-bulk-pricing-table', templateUrl: './bulk-pricing-table.component.html', + standalone: false, }) export class BulkPricingTableComponent implements OnInit { protected readonly PRODUCT_KEY = 'productCode'; diff --git a/feature-libs/product/future-stock/components/future-stock-accordion/future-stock-accordion.component.spec.ts b/feature-libs/product/future-stock/components/future-stock-accordion/future-stock-accordion.component.spec.ts index c20ff771a5d..34be05234e5 100644 --- a/feature-libs/product/future-stock/components/future-stock-accordion/future-stock-accordion.component.spec.ts +++ b/feature-libs/product/future-stock/components/future-stock-accordion/future-stock-accordion.component.spec.ts @@ -11,6 +11,7 @@ import { FutureStockAccordionComponent } from './future-stock-accordion.componen @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; diff --git a/feature-libs/product/future-stock/components/future-stock-accordion/future-stock-accordion.component.ts b/feature-libs/product/future-stock/components/future-stock-accordion/future-stock-accordion.component.ts index 5c8a567c69b..ac6ce82f750 100644 --- a/feature-libs/product/future-stock/components/future-stock-accordion/future-stock-accordion.component.ts +++ b/feature-libs/product/future-stock/components/future-stock-accordion/future-stock-accordion.component.ts @@ -12,6 +12,7 @@ import { ICON_TYPE } from '@spartacus/storefront'; @Component({ selector: 'cx-future-stock-accordion', templateUrl: './future-stock-accordion.component.html', + standalone: false, }) export class FutureStockAccordionComponent { futureStocks$ = this.futureStockService.getFutureStock(); diff --git a/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-dialog/product-image-zoom-dialog.component.spec.ts b/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-dialog/product-image-zoom-dialog.component.spec.ts index 2c4f74fa23c..953418562e0 100644 --- a/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-dialog/product-image-zoom-dialog.component.spec.ts +++ b/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-dialog/product-image-zoom-dialog.component.spec.ts @@ -15,6 +15,7 @@ class MockLaunchDialogService { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; @@ -23,6 +24,7 @@ class MockCxIconComponent { @Component({ selector: 'cx-product-image-zoom-view', template: '', + standalone: false, }) class MockProductImageZoomViewComponent { @Input() galleryIndex: number; diff --git a/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-dialog/product-image-zoom-dialog.component.ts b/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-dialog/product-image-zoom-dialog.component.ts index 33bd68fbf8d..c318e618e39 100644 --- a/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-dialog/product-image-zoom-dialog.component.ts +++ b/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-dialog/product-image-zoom-dialog.component.ts @@ -22,6 +22,7 @@ import { selector: 'cx-product-image-zoom-dialog', templateUrl: 'product-image-zoom-dialog.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ProductImageZoomDialogComponent { iconType = ICON_TYPE; diff --git a/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-product-images/product-image-zoom-product-images.component.spec.ts b/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-product-images/product-image-zoom-product-images.component.spec.ts index 36ebd8feeac..a1475611bbf 100644 --- a/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-product-images/product-image-zoom-product-images.component.spec.ts +++ b/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-product-images/product-image-zoom-product-images.component.spec.ts @@ -67,6 +67,7 @@ class MockCurrentProductService { @Component({ selector: 'cx-media', template: '', + standalone: false, }) class MockMediaComponent { @Input() container: any; @@ -81,6 +82,7 @@ class MockMediaComponent { > `, + standalone: false, }) class MockCarouselComponent { @Input() items: any; @@ -92,6 +94,7 @@ class MockCarouselComponent { @Component({ selector: 'cx-product-image-zoom-trigger', template: ``, + standalone: false, }) class MockProductImageZoomTriggerComponent { @Input() expandImage: any; diff --git a/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-product-images/product-image-zoom-product-images.component.ts b/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-product-images/product-image-zoom-product-images.component.ts index 55c15085888..df46f8d1410 100644 --- a/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-product-images/product-image-zoom-product-images.component.ts +++ b/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-product-images/product-image-zoom-product-images.component.ts @@ -16,6 +16,7 @@ import { Product } from '@spartacus/core'; selector: 'cx-product-images', templateUrl: './product-image-zoom-product-images.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ProductImageZoomProductImagesComponent extends ProductImagesComponent { expandImage = new BehaviorSubject(false); diff --git a/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-thumbnails/product-image-zoom-thumbnails.component.spec.ts b/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-thumbnails/product-image-zoom-thumbnails.component.spec.ts index 3412f17f273..86f8c257b7a 100644 --- a/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-thumbnails/product-image-zoom-thumbnails.component.spec.ts +++ b/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-thumbnails/product-image-zoom-thumbnails.component.spec.ts @@ -33,6 +33,7 @@ const secondImage = { > `, + standalone: false, }) class MockCarouselComponent { @Input() items; diff --git a/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-thumbnails/product-image-zoom-thumbnails.component.ts b/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-thumbnails/product-image-zoom-thumbnails.component.ts index 2682874fdfd..4e302f71668 100644 --- a/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-thumbnails/product-image-zoom-thumbnails.component.ts +++ b/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-thumbnails/product-image-zoom-thumbnails.component.ts @@ -22,6 +22,7 @@ import { filter, map } from 'rxjs/operators'; selector: 'cx-product-image-zoom-thumbnails', templateUrl: './product-image-zoom-thumbnails.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ProductImageZoomThumbnailsComponent implements OnInit, OnDestroy { private mainMediaContainer = new BehaviorSubject({}); diff --git a/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-trigger/product-image-zoom-trigger.component.spec.ts b/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-trigger/product-image-zoom-trigger.component.spec.ts index a7903687a7f..6c4d371acc7 100644 --- a/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-trigger/product-image-zoom-trigger.component.spec.ts +++ b/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-trigger/product-image-zoom-trigger.component.spec.ts @@ -14,6 +14,7 @@ import { ProductImageZoomTriggerComponent } from './product-image-zoom-trigger.c @Component({ template: '', + standalone: false, }) class TestDialogComponent { @Input() galleryItem: number; diff --git a/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-trigger/product-image-zoom-trigger.component.ts b/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-trigger/product-image-zoom-trigger.component.ts index 0def972a31a..9be438fed51 100644 --- a/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-trigger/product-image-zoom-trigger.component.ts +++ b/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-trigger/product-image-zoom-trigger.component.ts @@ -30,6 +30,7 @@ import { ProductImageZoomDialogComponent } from '../product-image-zoom-dialog/pr selector: 'cx-product-image-zoom-trigger', templateUrl: 'product-image-zoom-trigger.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ProductImageZoomTriggerComponent implements OnDestroy { iconType = ICON_TYPE; diff --git a/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-view/product-image-zoom-view.component.spec.ts b/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-view/product-image-zoom-view.component.spec.ts index 89848c31683..6a13aec6d22 100644 --- a/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-view/product-image-zoom-view.component.spec.ts +++ b/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-view/product-image-zoom-view.component.spec.ts @@ -92,6 +92,7 @@ class MockBreakpointService { @Component({ selector: 'cx-media', template: '', + standalone: false, }) class MockMediaComponent { @Input() container; @@ -100,6 +101,7 @@ class MockMediaComponent { @Component({ selector: 'cx-product-thumbnails', template: '', + standalone: false, }) class MockProductThumbnailsComponent { @Input() thumbs$; @@ -108,6 +110,7 @@ class MockProductThumbnailsComponent { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockIconComponent { @Input() type; @@ -116,6 +119,7 @@ class MockIconComponent { @Component({ selector: 'cx-product-image-zoom-thumbnails', template: '', + standalone: false, }) export class MockProductImageZoomThumbnailsComponent { @Output() productImage = new EventEmitter<{ image: any; index: number }>(); diff --git a/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-view/product-image-zoom-view.component.ts b/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-view/product-image-zoom-view.component.ts index 3b43067bbc2..3384d63e423 100644 --- a/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-view/product-image-zoom-view.component.ts +++ b/feature-libs/product/image-zoom/components/product-image-zoom/product-image-zoom-view/product-image-zoom-view.component.ts @@ -54,6 +54,7 @@ import { selector: 'cx-product-image-zoom-view', templateUrl: './product-image-zoom-view.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ProductImageZoomViewComponent implements OnInit, OnDestroy { iconType = ICON_TYPE; diff --git a/feature-libs/product/package.json b/feature-libs/product/package.json index db36451cadb..19067d03c80 100644 --- a/feature-libs/product/package.json +++ b/feature-libs/product/package.json @@ -25,10 +25,10 @@ "tslib": "^2.8.1" }, "peerDependencies": { - "@angular-devkit/schematics": "^18.2.9", - "@angular/common": "^18.2.9", - "@angular/core": "^18.2.9", - "@angular/router": "^18.2.9", + "@angular-devkit/schematics": "^19.0.4", + "@angular/common": "^19.0.3", + "@angular/core": "^19.0.3", + "@angular/router": "^19.0.3", "@spartacus/core": "2211.32.0", "@spartacus/schematics": "2211.32.0", "@spartacus/storefront": "2211.32.0", diff --git a/feature-libs/product/schematics/add-product/__snapshots__/index_spec.ts.snap b/feature-libs/product/schematics/add-product/__snapshots__/index_spec.ts.snap index b89edd9fdd3..3ae4e6caee8 100644 --- a/feature-libs/product/schematics/add-product/__snapshots__/index_spec.ts.snap +++ b/feature-libs/product/schematics/add-product/__snapshots__/index_spec.ts.snap @@ -148,7 +148,12 @@ exports[`Spartacus Product schematics: ng-add BulkPricing feature general setup "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } }, "configurations": { @@ -161,8 +166,8 @@ exports[`Spartacus Product schematics: ng-add BulkPricing feature general setup }, { "type": "anyComponentStyle", - "maximumWarning": "2kB", - "maximumError": "4kB" + "maximumWarning": "4kB", + "maximumError": "8kB" } ], "outputHashing": "all" @@ -213,7 +218,12 @@ exports[`Spartacus Product schematics: ng-add BulkPricing feature general setup "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } } } @@ -371,7 +381,12 @@ exports[`Spartacus Product schematics: ng-add FutureStock feature general setup "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } }, "configurations": { @@ -384,8 +399,8 @@ exports[`Spartacus Product schematics: ng-add FutureStock feature general setup }, { "type": "anyComponentStyle", - "maximumWarning": "2kB", - "maximumError": "4kB" + "maximumWarning": "4kB", + "maximumError": "8kB" } ], "outputHashing": "all" @@ -436,7 +451,12 @@ exports[`Spartacus Product schematics: ng-add FutureStock feature general setup "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } } } @@ -559,7 +579,12 @@ exports[`Spartacus Product schematics: ng-add ImageZoom feature general setup st "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } }, "configurations": { @@ -572,8 +597,8 @@ exports[`Spartacus Product schematics: ng-add ImageZoom feature general setup st }, { "type": "anyComponentStyle", - "maximumWarning": "2kB", - "maximumError": "4kB" + "maximumWarning": "4kB", + "maximumError": "8kB" } ], "outputHashing": "all" @@ -624,7 +649,12 @@ exports[`Spartacus Product schematics: ng-add ImageZoom feature general setup st "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } } } @@ -747,7 +777,12 @@ exports[`Spartacus Product schematics: ng-add Variants feature general setup sty "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } }, "configurations": { @@ -760,8 +795,8 @@ exports[`Spartacus Product schematics: ng-add Variants feature general setup sty }, { "type": "anyComponentStyle", - "maximumWarning": "2kB", - "maximumError": "4kB" + "maximumWarning": "4kB", + "maximumError": "8kB" } ], "outputHashing": "all" @@ -812,7 +847,12 @@ exports[`Spartacus Product schematics: ng-add Variants feature general setup sty "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } } } diff --git a/feature-libs/product/variants/components/product-variants-container/product-variants-container.component.spec.ts b/feature-libs/product/variants/components/product-variants-container/product-variants-container.component.spec.ts index dd48d6a8464..d48571a689e 100644 --- a/feature-libs/product/variants/components/product-variants-container/product-variants-container.component.spec.ts +++ b/feature-libs/product/variants/components/product-variants-container/product-variants-container.component.spec.ts @@ -43,6 +43,7 @@ class MockRoutingService { @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform(options: UrlCommandRoute): string { @@ -59,6 +60,7 @@ class MockCurrentProductService { @Component({ selector: 'cx-product-variant-style-selector', template: '', + standalone: false, }) class MockCxProductStyleSelectorComponent { @Input() product: Product; @@ -68,6 +70,7 @@ class MockCxProductStyleSelectorComponent { @Component({ selector: 'cx-product-variant-size-selector', template: '', + standalone: false, }) class MockCxProductSizeSelectorComponent { @Input() product: Product; @@ -77,6 +80,7 @@ class MockCxProductSizeSelectorComponent { @Component({ selector: 'cx-product-variant-color-selector', template: '', + standalone: false, }) class MockCxProductColorSelectorComponent { @Input() product: Product; diff --git a/feature-libs/product/variants/components/product-variants-container/product-variants-container.component.ts b/feature-libs/product/variants/components/product-variants-container/product-variants-container.component.ts index 273f80493db..0954eb5e491 100644 --- a/feature-libs/product/variants/components/product-variants-container/product-variants-container.component.ts +++ b/feature-libs/product/variants/components/product-variants-container/product-variants-container.component.ts @@ -20,6 +20,7 @@ import { distinctUntilChanged, filter, tap } from 'rxjs/operators'; selector: 'cx-product-variants-container', templateUrl: './product-variants-container.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ProductVariantsContainerComponent implements OnInit { constructor(private currentProductService: CurrentProductService) {} diff --git a/feature-libs/product/variants/components/variant-color-selector/product-variant-color-selector.component.ts b/feature-libs/product/variants/components/variant-color-selector/product-variant-color-selector.component.ts index dccebb4fb16..73191731cfd 100644 --- a/feature-libs/product/variants/components/variant-color-selector/product-variant-color-selector.component.ts +++ b/feature-libs/product/variants/components/variant-color-selector/product-variant-color-selector.component.ts @@ -17,6 +17,7 @@ import { selector: 'cx-product-variant-color-selector', templateUrl: './product-variant-color-selector.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ProductVariantColorSelectorComponent { constructor(private routingService: RoutingService) {} diff --git a/feature-libs/product/variants/components/variant-size-selector/product-variant-size-selector.component.ts b/feature-libs/product/variants/components/variant-size-selector/product-variant-size-selector.component.ts index 567360db6ea..97eaa9ab9e3 100644 --- a/feature-libs/product/variants/components/variant-size-selector/product-variant-size-selector.component.ts +++ b/feature-libs/product/variants/components/variant-size-selector/product-variant-size-selector.component.ts @@ -21,6 +21,7 @@ import { filter, take } from 'rxjs/operators'; selector: 'cx-product-variant-size-selector', templateUrl: './product-variant-size-selector.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ProductVariantSizeSelectorComponent { constructor( diff --git a/feature-libs/product/variants/components/variant-style-selector/product-variant-style-selector.component.spec.ts b/feature-libs/product/variants/components/variant-style-selector/product-variant-style-selector.component.spec.ts index 5c42cc7f618..4df2c5621da 100644 --- a/feature-libs/product/variants/components/variant-style-selector/product-variant-style-selector.component.spec.ts +++ b/feature-libs/product/variants/components/variant-style-selector/product-variant-style-selector.component.spec.ts @@ -56,6 +56,7 @@ const mockQualifiers2 = {} as VariantOptionQualifier; @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform(options: UrlCommandRoute): string { diff --git a/feature-libs/product/variants/components/variant-style-selector/product-variant-style-selector.component.ts b/feature-libs/product/variants/components/variant-style-selector/product-variant-style-selector.component.ts index 7588c45aa35..44d241159da 100644 --- a/feature-libs/product/variants/components/variant-style-selector/product-variant-style-selector.component.ts +++ b/feature-libs/product/variants/components/variant-style-selector/product-variant-style-selector.component.ts @@ -22,6 +22,7 @@ import { filter, take } from 'rxjs/operators'; selector: 'cx-product-variant-style-selector', templateUrl: './product-variant-style-selector.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ProductVariantStyleSelectorComponent { constructor( diff --git a/feature-libs/product/variants/root/components/variant-style-icons/product-variant-style-icons.component.ts b/feature-libs/product/variants/root/components/variant-style-icons/product-variant-style-icons.component.ts index b1c0da1465c..70bcd99d64b 100644 --- a/feature-libs/product/variants/root/components/variant-style-icons/product-variant-style-icons.component.ts +++ b/feature-libs/product/variants/root/components/variant-style-icons/product-variant-style-icons.component.ts @@ -30,6 +30,7 @@ import { EMPTY, Observable, Subscription } from 'rxjs'; templateUrl: './product-variant-style-icons.component.html', styleUrls: ['./product-variant-style-icons.component.scss'], changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class ProductVariantStyleIconsComponent implements OnInit, OnDestroy { constructor( diff --git a/feature-libs/qualtrics/.eslintrc.json b/feature-libs/qualtrics/.eslintrc.json index 862b5a870b0..9895500871d 100644 --- a/feature-libs/qualtrics/.eslintrc.json +++ b/feature-libs/qualtrics/.eslintrc.json @@ -1,4 +1,9 @@ { "extends": "../../.eslintrc.json", - "ignorePatterns": ["schematics/**/*.d.ts"] + "ignorePatterns": ["schematics/**/*.d.ts"], + "overrides": [ + { + "files": ["*.ts"] + } + ] } diff --git a/feature-libs/qualtrics/components/qualtrics-embedded-feedback/qualtrics-embedded-feedback.component.ts b/feature-libs/qualtrics/components/qualtrics-embedded-feedback/qualtrics-embedded-feedback.component.ts index adaa868fcc5..4dc9bc07202 100644 --- a/feature-libs/qualtrics/components/qualtrics-embedded-feedback/qualtrics-embedded-feedback.component.ts +++ b/feature-libs/qualtrics/components/qualtrics-embedded-feedback/qualtrics-embedded-feedback.component.ts @@ -9,5 +9,6 @@ import { Component } from '@angular/core'; @Component({ selector: 'cx-qualtrics-embedded-feedback', template: '', + standalone: false, }) export class QualtricsEmbeddedFeedbackComponent {} diff --git a/feature-libs/qualtrics/components/qualtrics-loader/qualtrics.component.ts b/feature-libs/qualtrics/components/qualtrics-loader/qualtrics.component.ts index 0bd319b211a..b5a1b3262a0 100644 --- a/feature-libs/qualtrics/components/qualtrics-loader/qualtrics.component.ts +++ b/feature-libs/qualtrics/components/qualtrics-loader/qualtrics.component.ts @@ -15,6 +15,7 @@ import { QualtricsLoaderService } from './qualtrics-loader.service'; @Component({ selector: 'cx-qualtrics', template: '', + standalone: false, }) export class QualtricsComponent { protected logger = inject(LoggerService); diff --git a/feature-libs/qualtrics/package.json b/feature-libs/qualtrics/package.json index 6840fa0aacb..f1ae4709bc0 100644 --- a/feature-libs/qualtrics/package.json +++ b/feature-libs/qualtrics/package.json @@ -27,9 +27,9 @@ "tslib": "^2.8.1" }, "peerDependencies": { - "@angular-devkit/schematics": "^18.2.9", - "@angular/common": "^18.2.9", - "@angular/core": "^18.2.9", + "@angular-devkit/schematics": "^19.0.4", + "@angular/common": "^19.0.3", + "@angular/core": "^19.0.3", "@spartacus/core": "2211.32.0", "@spartacus/schematics": "2211.32.0", "@spartacus/styles": "2211.32.0", diff --git a/feature-libs/qualtrics/schematics/add-qualtrics/__snapshots__/index_spec.ts.snap b/feature-libs/qualtrics/schematics/add-qualtrics/__snapshots__/index_spec.ts.snap index 7236efa46c9..8f69d21e4f3 100644 --- a/feature-libs/qualtrics/schematics/add-qualtrics/__snapshots__/index_spec.ts.snap +++ b/feature-libs/qualtrics/schematics/add-qualtrics/__snapshots__/index_spec.ts.snap @@ -97,7 +97,12 @@ exports[`Spartacus Qualtrics schematics: ng-add Qualtrics feature general setup "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } }, "configurations": { @@ -110,8 +115,8 @@ exports[`Spartacus Qualtrics schematics: ng-add Qualtrics feature general setup }, { "type": "anyComponentStyle", - "maximumWarning": "2kB", - "maximumError": "4kB" + "maximumWarning": "4kB", + "maximumError": "8kB" } ], "outputHashing": "all" @@ -162,7 +167,12 @@ exports[`Spartacus Qualtrics schematics: ng-add Qualtrics feature general setup "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } } } diff --git a/feature-libs/quote/.eslintrc.json b/feature-libs/quote/.eslintrc.json index 862b5a870b0..9895500871d 100644 --- a/feature-libs/quote/.eslintrc.json +++ b/feature-libs/quote/.eslintrc.json @@ -1,4 +1,9 @@ { "extends": "../../.eslintrc.json", - "ignorePatterns": ["schematics/**/*.d.ts"] + "ignorePatterns": ["schematics/**/*.d.ts"], + "overrides": [ + { + "files": ["*.ts"] + } + ] } diff --git a/feature-libs/quote/components/cart-guard/quote-cart-guard.component.ts b/feature-libs/quote/components/cart-guard/quote-cart-guard.component.ts index cc6957a8794..e180dcc58df 100644 --- a/feature-libs/quote/components/cart-guard/quote-cart-guard.component.ts +++ b/feature-libs/quote/components/cart-guard/quote-cart-guard.component.ts @@ -15,5 +15,6 @@ import { QuoteCartGuard } from './quote-cart.guard'; */ @Component({ templateUrl: './quote-cart-guard.component.html', + standalone: false, }) export class QuoteCartGuardComponent {} diff --git a/feature-libs/quote/components/comments/quote-comments.component.spec.ts b/feature-libs/quote/components/comments/quote-comments.component.spec.ts index f6f1ad4783a..61f58d7ad09 100644 --- a/feature-libs/quote/components/comments/quote-comments.component.spec.ts +++ b/feature-libs/quote/components/comments/quote-comments.component.spec.ts @@ -33,6 +33,7 @@ const ALL_PRODUCTS_ID = ''; providers: [ { provide: MessagingComponent, useClass: MockCxMessagingComponent }, ], + standalone: false, }) class MockCxMessagingComponent { @Input() messageEvents$: Observable>; @@ -43,6 +44,7 @@ class MockCxMessagingComponent { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; diff --git a/feature-libs/quote/components/comments/quote-comments.component.ts b/feature-libs/quote/components/comments/quote-comments.component.ts index 4ee74a89adf..89e90616f61 100644 --- a/feature-libs/quote/components/comments/quote-comments.component.ts +++ b/feature-libs/quote/components/comments/quote-comments.component.ts @@ -28,6 +28,7 @@ const ALL_PRODUCTS_ID = ''; @Component({ selector: 'cx-quote-comments', templateUrl: './quote-comments.component.html', + standalone: false, }) export class QuoteCommentsComponent { protected quoteFacade = inject(QuoteFacade); diff --git a/feature-libs/quote/components/confirm-dialog/quote-confirm-dialog.component.spec.ts b/feature-libs/quote/components/confirm-dialog/quote-confirm-dialog.component.spec.ts index e8b4ca1e29c..75bb59afac4 100644 --- a/feature-libs/quote/components/confirm-dialog/quote-confirm-dialog.component.spec.ts +++ b/feature-libs/quote/components/confirm-dialog/quote-confirm-dialog.component.spec.ts @@ -43,6 +43,7 @@ const confirmationContext: ConfirmationContext = { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; @@ -50,6 +51,7 @@ class MockCxIconComponent { @Directive({ selector: '[cxFocus]', + standalone: false, }) export class MockKeyboardFocusDirective { @Input('cxFocus') config: FocusConfig = {}; diff --git a/feature-libs/quote/components/confirm-dialog/quote-confirm-dialog.component.ts b/feature-libs/quote/components/confirm-dialog/quote-confirm-dialog.component.ts index 467ddebc3ff..418056f74ce 100644 --- a/feature-libs/quote/components/confirm-dialog/quote-confirm-dialog.component.ts +++ b/feature-libs/quote/components/confirm-dialog/quote-confirm-dialog.component.ts @@ -30,6 +30,7 @@ import { ConfirmationContext } from './quote-confirm-dialog.model'; templateUrl: './quote-confirm-dialog.component.html', changeDetection: ChangeDetectionStrategy.OnPush, providers: [CxDatePipe], + standalone: false, }) export class QuoteConfirmDialogComponent implements OnInit { protected launchDialogService = inject(LaunchDialogService); diff --git a/feature-libs/quote/components/header/buyer-edit/quote-header-buyer-edit.component.spec.ts b/feature-libs/quote/components/header/buyer-edit/quote-header-buyer-edit.component.spec.ts index 5cf9276b43b..d4e84bcfa15 100644 --- a/feature-libs/quote/components/header/buyer-edit/quote-header-buyer-edit.component.spec.ts +++ b/feature-libs/quote/components/header/buyer-edit/quote-header-buyer-edit.component.spec.ts @@ -18,6 +18,7 @@ const mockCard: EditCard = { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; diff --git a/feature-libs/quote/components/header/buyer-edit/quote-header-buyer-edit.component.ts b/feature-libs/quote/components/header/buyer-edit/quote-header-buyer-edit.component.ts index b4975304451..10fc43d69bf 100644 --- a/feature-libs/quote/components/header/buyer-edit/quote-header-buyer-edit.component.ts +++ b/feature-libs/quote/components/header/buyer-edit/quote-header-buyer-edit.component.ts @@ -22,6 +22,7 @@ export interface EditCard { @Component({ selector: 'cx-quote-header-buyer-edit', templateUrl: './quote-header-buyer-edit.component.html', + standalone: false, }) export class QuoteHeaderBuyerEditComponent implements OnInit { iconTypes = ICON_TYPE; diff --git a/feature-libs/quote/components/header/overview/quote-header-overview.component.spec.ts b/feature-libs/quote/components/header/overview/quote-header-overview.component.spec.ts index 65af38d8e05..2e367ca6b97 100644 --- a/feature-libs/quote/components/header/overview/quote-header-overview.component.spec.ts +++ b/feature-libs/quote/components/header/overview/quote-header-overview.component.spec.ts @@ -50,12 +50,14 @@ const mockQuote: Quote = { @Component({ selector: 'cx-quote-actions-link', template: '', + standalone: false, }) export class MockQuoteActionsLinkComponent {} @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; @@ -64,6 +66,7 @@ class MockCxIconComponent { @Component({ selector: 'cx-quote-header-buyer-edit', template: '', + standalone: false, }) class MockQuoteHeaderBuyerEditComponent { @Input() content: EditCard | null; diff --git a/feature-libs/quote/components/header/overview/quote-header-overview.component.ts b/feature-libs/quote/components/header/overview/quote-header-overview.component.ts index 510fdd832bc..75adc479874 100644 --- a/feature-libs/quote/components/header/overview/quote-header-overview.component.ts +++ b/feature-libs/quote/components/header/overview/quote-header-overview.component.ts @@ -26,6 +26,7 @@ import { @Component({ selector: 'cx-quote-header-overview', templateUrl: './quote-header-overview.component.html', + standalone: false, }) export class QuoteHeaderOverviewComponent { protected quoteFacade = inject(QuoteFacade); diff --git a/feature-libs/quote/components/items/quote-items.component.spec.ts b/feature-libs/quote/components/items/quote-items.component.spec.ts index 5d659763842..3bff08ef36c 100644 --- a/feature-libs/quote/components/items/quote-items.component.spec.ts +++ b/feature-libs/quote/components/items/quote-items.component.spec.ts @@ -13,6 +13,7 @@ import { QuoteItemsComponentService } from './quote-items.component.service'; @Directive({ selector: '[cxOutlet]', + standalone: false, }) class MockOutletDirective implements Partial { @Input() cxOutlet: string; diff --git a/feature-libs/quote/components/items/quote-items.component.ts b/feature-libs/quote/components/items/quote-items.component.ts index a145a3de60c..c58b1bfb6fd 100644 --- a/feature-libs/quote/components/items/quote-items.component.ts +++ b/feature-libs/quote/components/items/quote-items.component.ts @@ -29,6 +29,7 @@ import { @Component({ selector: 'cx-quote-items', templateUrl: './quote-items.component.html', + standalone: false, }) export class QuoteItemsComponent { protected quoteItemsComponentService = inject(QuoteItemsComponentService); diff --git a/feature-libs/quote/components/links/quote-links.component.ts b/feature-libs/quote/components/links/quote-links.component.ts index f217f8f1df1..ff251d95364 100644 --- a/feature-libs/quote/components/links/quote-links.component.ts +++ b/feature-libs/quote/components/links/quote-links.component.ts @@ -23,6 +23,7 @@ import { Observable } from 'rxjs'; selector: 'cx-quote-links', templateUrl: './quote-links.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class QuoteLinksComponent { protected quoteFacade = inject(QuoteFacade); diff --git a/feature-libs/quote/components/list/quote-list.component.spec.ts b/feature-libs/quote/components/list/quote-list.component.spec.ts index 5c510280c6c..82f564d94ca 100644 --- a/feature-libs/quote/components/list/quote-list.component.spec.ts +++ b/feature-libs/quote/components/list/quote-list.component.spec.ts @@ -67,6 +67,7 @@ const mockQuoteListState$ = new BehaviorSubject(mockQuoteListState); @Component({ template: '', selector: 'cx-pagination', + standalone: false, }) class MockPaginationComponent { @Input() pagination: PaginationModel; @@ -76,6 +77,7 @@ class MockPaginationComponent { @Component({ template: '', selector: 'cx-sorting', + standalone: false, }) class MockSortingComponent { @Input() sortOptions: SortModel[]; @@ -87,6 +89,7 @@ class MockSortingComponent { @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform() {} @@ -95,6 +98,7 @@ class MockUrlPipe implements PipeTransform { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; diff --git a/feature-libs/quote/components/list/quote-list.component.ts b/feature-libs/quote/components/list/quote-list.component.ts index 283d5bb54d1..62aae1df1a0 100644 --- a/feature-libs/quote/components/list/quote-list.component.ts +++ b/feature-libs/quote/components/list/quote-list.component.ts @@ -24,6 +24,7 @@ import { ICON_TYPE } from '@spartacus/storefront'; templateUrl: './quote-list.component.html', changeDetection: ChangeDetectionStrategy.OnPush, providers: [CxDatePipe], + standalone: false, }) export class QuoteListComponent implements OnInit { protected quoteListComponentService = inject(QuoteListComponentService); diff --git a/feature-libs/quote/components/request-button/quote-request-button.component.spec.ts b/feature-libs/quote/components/request-button/quote-request-button.component.spec.ts index 2e64d5888cd..4691949d59a 100644 --- a/feature-libs/quote/components/request-button/quote-request-button.component.spec.ts +++ b/feature-libs/quote/components/request-button/quote-request-button.component.spec.ts @@ -13,6 +13,7 @@ import createSpy = jasmine.createSpy; @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform() {} diff --git a/feature-libs/quote/components/request-button/quote-request-button.component.ts b/feature-libs/quote/components/request-button/quote-request-button.component.ts index 4ffea07c59a..7a32c0876cb 100644 --- a/feature-libs/quote/components/request-button/quote-request-button.component.ts +++ b/feature-libs/quote/components/request-button/quote-request-button.component.ts @@ -19,6 +19,7 @@ import { tap } from 'rxjs/operators'; selector: 'cx-quote-request-button', templateUrl: './quote-request-button.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class QuoteRequestButtonComponent implements OnDestroy { protected quoteFacade = inject(QuoteFacade); diff --git a/feature-libs/quote/components/summary/actions/quote-summary-actions.component.ts b/feature-libs/quote/components/summary/actions/quote-summary-actions.component.ts index 5b97a599545..65fd9da7927 100644 --- a/feature-libs/quote/components/summary/actions/quote-summary-actions.component.ts +++ b/feature-libs/quote/components/summary/actions/quote-summary-actions.component.ts @@ -43,6 +43,7 @@ import { ConfirmationContext } from '../../confirm-dialog/quote-confirm-dialog.m @Component({ selector: 'cx-quote-summary-actions', templateUrl: './quote-summary-actions.component.html', + standalone: false, }) export class QuoteSummaryActionsComponent implements AfterViewInit, OnInit, OnDestroy diff --git a/feature-libs/quote/components/summary/prices/quote-summary-prices.component.ts b/feature-libs/quote/components/summary/prices/quote-summary-prices.component.ts index 8006cbce93a..a57fcdd41c1 100644 --- a/feature-libs/quote/components/summary/prices/quote-summary-prices.component.ts +++ b/feature-libs/quote/components/summary/prices/quote-summary-prices.component.ts @@ -11,6 +11,7 @@ import { QuoteFacade } from '@spartacus/quote/root'; @Component({ selector: 'cx-quote-summary-prices', templateUrl: 'quote-summary-prices.component.html', + standalone: false, }) export class QuoteSummaryPricesComponent { protected quoteFacade = inject(QuoteFacade); diff --git a/feature-libs/quote/components/summary/quote-summary.component.spec.ts b/feature-libs/quote/components/summary/quote-summary.component.spec.ts index a47a24bbc63..990f05bc0f0 100644 --- a/feature-libs/quote/components/summary/quote-summary.component.spec.ts +++ b/feature-libs/quote/components/summary/quote-summary.component.spec.ts @@ -10,18 +10,21 @@ import { QuoteSummaryComponent } from './quote-summary.component'; @Component({ selector: 'cx-quote-summary-prices', template: '', + standalone: false, }) class MockQuoteSummaryPricesComponent {} @Component({ selector: 'cx-quote-summary-actions', template: '', + standalone: false, }) class MockQuoteSummaryActionsComponent {} @Component({ selector: 'cx-quote-summary-seller-edit', template: '', + standalone: false, }) class MockQuoteSummarySellerEditComponent {} diff --git a/feature-libs/quote/components/summary/quote-summary.component.ts b/feature-libs/quote/components/summary/quote-summary.component.ts index bc0be88785b..90a8cd005b6 100644 --- a/feature-libs/quote/components/summary/quote-summary.component.ts +++ b/feature-libs/quote/components/summary/quote-summary.component.ts @@ -10,6 +10,7 @@ import { QuoteFacade } from '@spartacus/quote/root'; @Component({ selector: 'cx-quote-summary', templateUrl: 'quote-summary.component.html', + standalone: false, }) export class QuoteSummaryComponent { protected quoteFacade = inject(QuoteFacade); diff --git a/feature-libs/quote/components/summary/seller-edit/quote-summary-seller-edit.component.spec.ts b/feature-libs/quote/components/summary/seller-edit/quote-summary-seller-edit.component.spec.ts index 24ac86beb95..35b9ef7583f 100644 --- a/feature-libs/quote/components/summary/seller-edit/quote-summary-seller-edit.component.spec.ts +++ b/feature-libs/quote/components/summary/seller-edit/quote-summary-seller-edit.component.spec.ts @@ -111,6 +111,7 @@ class MockQuoteHeaderSellerEditComponentService { // eslint-disable-next-line @angular-eslint/component-selector selector: 'cx-date-picker', template: '', + standalone: false, }) class MockDatePickerComponent { @Input() control: FormControl; @@ -122,6 +123,7 @@ class MockDatePickerComponent { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; diff --git a/feature-libs/quote/components/summary/seller-edit/quote-summary-seller-edit.component.ts b/feature-libs/quote/components/summary/seller-edit/quote-summary-seller-edit.component.ts index 2bf7f7e0f55..db04a83f42e 100644 --- a/feature-libs/quote/components/summary/seller-edit/quote-summary-seller-edit.component.ts +++ b/feature-libs/quote/components/summary/seller-edit/quote-summary-seller-edit.component.ts @@ -38,6 +38,7 @@ import { @Component({ selector: 'cx-quote-summary-seller-edit', templateUrl: './quote-summary-seller-edit.component.html', + standalone: false, }) export class QuoteSummarySellerEditComponent implements OnInit, OnDestroy { protected quoteFacade = inject(QuoteFacade); diff --git a/feature-libs/quote/core/services/quote-storefront-utils.service.spec.ts b/feature-libs/quote/core/services/quote-storefront-utils.service.spec.ts index dbeb4c399ba..f697154ee53 100644 --- a/feature-libs/quote/core/services/quote-storefront-utils.service.spec.ts +++ b/feature-libs/quote/core/services/quote-storefront-utils.service.spec.ts @@ -24,6 +24,7 @@ class MockedWindowRef extends WindowRef { `, + standalone: false, }) class MockQuoteComponent {} diff --git a/feature-libs/quote/package.json b/feature-libs/quote/package.json index e19071b1e6e..f7a18f699fd 100644 --- a/feature-libs/quote/package.json +++ b/feature-libs/quote/package.json @@ -27,11 +27,11 @@ "tslib": "^2.8.1" }, "peerDependencies": { - "@angular-devkit/schematics": "^18.2.9", - "@angular/common": "^18.2.9", - "@angular/core": "^18.2.9", - "@angular/forms": "^18.2.9", - "@angular/router": "^18.2.9", + "@angular-devkit/schematics": "^19.0.4", + "@angular/common": "^19.0.3", + "@angular/core": "^19.0.3", + "@angular/forms": "^19.0.3", + "@angular/router": "^19.0.3", "@spartacus/cart": "2211.32.0", "@spartacus/core": "2211.32.0", "@spartacus/schematics": "2211.32.0", diff --git a/feature-libs/quote/schematics/add-quote/__snapshots__/index_spec.ts.snap b/feature-libs/quote/schematics/add-quote/__snapshots__/index_spec.ts.snap index 250bbd4f607..4a2ff3b124b 100644 --- a/feature-libs/quote/schematics/add-quote/__snapshots__/index_spec.ts.snap +++ b/feature-libs/quote/schematics/add-quote/__snapshots__/index_spec.ts.snap @@ -168,7 +168,12 @@ exports[`Spartacus Quote schematics: ng-add Quote feature general setup styling "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } }, "configurations": { @@ -181,8 +186,8 @@ exports[`Spartacus Quote schematics: ng-add Quote feature general setup styling }, { "type": "anyComponentStyle", - "maximumWarning": "2kB", - "maximumError": "4kB" + "maximumWarning": "4kB", + "maximumError": "8kB" } ], "outputHashing": "all" @@ -233,7 +238,12 @@ exports[`Spartacus Quote schematics: ng-add Quote feature general setup styling "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } } } diff --git a/feature-libs/quote/tsconfig.schematics.json b/feature-libs/quote/tsconfig.schematics.json index 8646e4b6950..20993f2bfd7 100644 --- a/feature-libs/quote/tsconfig.schematics.json +++ b/feature-libs/quote/tsconfig.schematics.json @@ -2,7 +2,6 @@ "compilerOptions": { "baseUrl": ".", "lib": ["es2018", "dom"], - "declaration": true, "module": "commonjs", "moduleResolution": "node", "noEmitOnError": true, diff --git a/feature-libs/requested-delivery-date/.eslintrc.json b/feature-libs/requested-delivery-date/.eslintrc.json index 862b5a870b0..9895500871d 100644 --- a/feature-libs/requested-delivery-date/.eslintrc.json +++ b/feature-libs/requested-delivery-date/.eslintrc.json @@ -1,4 +1,9 @@ { "extends": "../../.eslintrc.json", - "ignorePatterns": ["schematics/**/*.d.ts"] + "ignorePatterns": ["schematics/**/*.d.ts"], + "overrides": [ + { + "files": ["*.ts"] + } + ] } diff --git a/feature-libs/requested-delivery-date/package.json b/feature-libs/requested-delivery-date/package.json index 4dd3e21b20f..14290df13d5 100644 --- a/feature-libs/requested-delivery-date/package.json +++ b/feature-libs/requested-delivery-date/package.json @@ -25,10 +25,10 @@ "tslib": "^2.8.1" }, "peerDependencies": { - "@angular-devkit/schematics": "^18.2.9", - "@angular/common": "^18.2.9", - "@angular/core": "^18.2.9", - "@angular/forms": "^18.2.9", + "@angular-devkit/schematics": "^19.0.4", + "@angular/common": "^19.0.3", + "@angular/core": "^19.0.3", + "@angular/forms": "^19.0.3", "@spartacus/cart": "2211.32.0", "@spartacus/checkout": "2211.32.0", "@spartacus/core": "2211.32.0", diff --git a/feature-libs/requested-delivery-date/root/components/delivery-mode-date-picker/delivery-mode-date-picker.component.ts b/feature-libs/requested-delivery-date/root/components/delivery-mode-date-picker/delivery-mode-date-picker.component.ts index 1ed6b42b980..6070ed9d5e5 100644 --- a/feature-libs/requested-delivery-date/root/components/delivery-mode-date-picker/delivery-mode-date-picker.component.ts +++ b/feature-libs/requested-delivery-date/root/components/delivery-mode-date-picker/delivery-mode-date-picker.component.ts @@ -27,6 +27,7 @@ import { DateValidationService } from '../shared/date-validation.service'; selector: 'cx-request-delivery-date', templateUrl: './delivery-mode-date-picker.component.html', providers: [CxDatePipe], + standalone: false, }) export class DeliveryModeDatePickerComponent implements OnInit, OnDestroy { constructor( diff --git a/feature-libs/requested-delivery-date/root/components/order-overview-delivery-date/order-overview-delivery-date.component.ts b/feature-libs/requested-delivery-date/root/components/order-overview-delivery-date/order-overview-delivery-date.component.ts index 7a3e8cf3e19..a414b287191 100644 --- a/feature-libs/requested-delivery-date/root/components/order-overview-delivery-date/order-overview-delivery-date.component.ts +++ b/feature-libs/requested-delivery-date/root/components/order-overview-delivery-date/order-overview-delivery-date.component.ts @@ -15,6 +15,7 @@ import { DateValidationService } from '../shared/date-validation.service'; @Component({ selector: 'cx-order-overview-delivery-date', templateUrl: './order-overview-delivery-date.component.html', + standalone: false, }) export class OrderOverviewDeliveryDateComponent implements OnInit, OnDestroy { constructor( diff --git a/feature-libs/requested-delivery-date/schematics/add-requested-delivery-date/__snapshots__/index_spec.ts.snap b/feature-libs/requested-delivery-date/schematics/add-requested-delivery-date/__snapshots__/index_spec.ts.snap index 9da6154f284..c32179fd04c 100644 --- a/feature-libs/requested-delivery-date/schematics/add-requested-delivery-date/__snapshots__/index_spec.ts.snap +++ b/feature-libs/requested-delivery-date/schematics/add-requested-delivery-date/__snapshots__/index_spec.ts.snap @@ -59,7 +59,12 @@ exports[`Spartacus Requested Delivery Date schematics: ng-add Requested Delivery "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } }, "configurations": { @@ -72,8 +77,8 @@ exports[`Spartacus Requested Delivery Date schematics: ng-add Requested Delivery }, { "type": "anyComponentStyle", - "maximumWarning": "2kB", - "maximumError": "4kB" + "maximumWarning": "4kB", + "maximumError": "8kB" } ], "outputHashing": "all" @@ -124,7 +129,12 @@ exports[`Spartacus Requested Delivery Date schematics: ng-add Requested Delivery "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } } } diff --git a/feature-libs/smartedit/.eslintrc.json b/feature-libs/smartedit/.eslintrc.json index 862b5a870b0..9895500871d 100644 --- a/feature-libs/smartedit/.eslintrc.json +++ b/feature-libs/smartedit/.eslintrc.json @@ -1,4 +1,9 @@ { "extends": "../../.eslintrc.json", - "ignorePatterns": ["schematics/**/*.d.ts"] + "ignorePatterns": ["schematics/**/*.d.ts"], + "overrides": [ + { + "files": ["*.ts"] + } + ] } diff --git a/feature-libs/smartedit/package.json b/feature-libs/smartedit/package.json index a911ee2e3d0..586fe8552ae 100644 --- a/feature-libs/smartedit/package.json +++ b/feature-libs/smartedit/package.json @@ -20,9 +20,9 @@ "tslib": "^2.8.1" }, "peerDependencies": { - "@angular-devkit/schematics": "^18.2.9", - "@angular/common": "^18.2.9", - "@angular/core": "^18.2.9", + "@angular-devkit/schematics": "^19.0.4", + "@angular/common": "^19.0.3", + "@angular/core": "^19.0.3", "@spartacus/core": "2211.32.0", "@spartacus/schematics": "2211.32.0", "rxjs": "^7.8.0" diff --git a/feature-libs/smartedit/schematics/add-smartedit/__snapshots__/index_spec.ts.snap b/feature-libs/smartedit/schematics/add-smartedit/__snapshots__/index_spec.ts.snap index e4375c7f084..92e9fd6df7e 100644 --- a/feature-libs/smartedit/schematics/add-smartedit/__snapshots__/index_spec.ts.snap +++ b/feature-libs/smartedit/schematics/add-smartedit/__snapshots__/index_spec.ts.snap @@ -76,7 +76,12 @@ exports[`Spartacus SmartEdit schematics: ng-add SmartEdit feature general setup "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } }, "configurations": { @@ -89,8 +94,8 @@ exports[`Spartacus SmartEdit schematics: ng-add SmartEdit feature general setup }, { "type": "anyComponentStyle", - "maximumWarning": "2kB", - "maximumError": "4kB" + "maximumWarning": "4kB", + "maximumError": "8kB" } ], "outputHashing": "all" @@ -145,7 +150,12 @@ exports[`Spartacus SmartEdit schematics: ng-add SmartEdit feature general setup "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } } } diff --git a/feature-libs/storefinder/.eslintrc.json b/feature-libs/storefinder/.eslintrc.json index 862b5a870b0..9895500871d 100644 --- a/feature-libs/storefinder/.eslintrc.json +++ b/feature-libs/storefinder/.eslintrc.json @@ -1,4 +1,9 @@ { "extends": "../../.eslintrc.json", - "ignorePatterns": ["schematics/**/*.d.ts"] + "ignorePatterns": ["schematics/**/*.d.ts"], + "overrides": [ + { + "files": ["*.ts"] + } + ] } diff --git a/feature-libs/storefinder/components/schedule-component/schedule.component.ts b/feature-libs/storefinder/components/schedule-component/schedule.component.ts index 2095b182668..8c52b5f085f 100644 --- a/feature-libs/storefinder/components/schedule-component/schedule.component.ts +++ b/feature-libs/storefinder/components/schedule-component/schedule.component.ts @@ -10,6 +10,7 @@ import { PointOfService, WeekdayOpeningDay } from '@spartacus/core'; @Component({ selector: 'cx-schedule', templateUrl: './schedule.component.html', + standalone: false, }) export class ScheduleComponent implements OnInit { @Input() diff --git a/feature-libs/storefinder/components/store-finder-grid/store-finder-grid.component.spec.ts b/feature-libs/storefinder/components/store-finder-grid/store-finder-grid.component.spec.ts index 1d5bb9bb162..6b3bb060865 100644 --- a/feature-libs/storefinder/components/store-finder-grid/store-finder-grid.component.spec.ts +++ b/feature-libs/storefinder/components/store-finder-grid/store-finder-grid.component.spec.ts @@ -15,6 +15,7 @@ const regionIsoCode = 'CA-QC'; @Component({ selector: 'cx-store-finder-list-item', template: '', + standalone: false, }) class MockStoreFinderListItemComponent { @Input() diff --git a/feature-libs/storefinder/components/store-finder-grid/store-finder-grid.component.ts b/feature-libs/storefinder/components/store-finder-grid/store-finder-grid.component.ts index 959a681e772..0ec6ac9f5e4 100644 --- a/feature-libs/storefinder/components/store-finder-grid/store-finder-grid.component.ts +++ b/feature-libs/storefinder/components/store-finder-grid/store-finder-grid.component.ts @@ -14,6 +14,7 @@ import { Observable } from 'rxjs'; selector: 'cx-store-finder-grid', templateUrl: './store-finder-grid.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class StoreFinderGridComponent implements OnInit { defaultLocation: GeoPoint; diff --git a/feature-libs/storefinder/components/store-finder-header/store-finder-header.component.spec.ts b/feature-libs/storefinder/components/store-finder-header/store-finder-header.component.spec.ts index 26497e4db46..7be8fd8aa31 100644 --- a/feature-libs/storefinder/components/store-finder-header/store-finder-header.component.spec.ts +++ b/feature-libs/storefinder/components/store-finder-header/store-finder-header.component.spec.ts @@ -6,6 +6,7 @@ import { I18nTestingModule } from '@spartacus/core'; @Component({ template: '', selector: 'cx-store-finder-search', + standalone: false, }) class MockStoreFinderSearchComponent {} diff --git a/feature-libs/storefinder/components/store-finder-header/store-finder-header.component.ts b/feature-libs/storefinder/components/store-finder-header/store-finder-header.component.ts index dc24ed8af22..e99e38a1210 100644 --- a/feature-libs/storefinder/components/store-finder-header/store-finder-header.component.ts +++ b/feature-libs/storefinder/components/store-finder-header/store-finder-header.component.ts @@ -9,5 +9,6 @@ import { Component } from '@angular/core'; @Component({ selector: 'cx-store-finder-header', templateUrl: './store-finder-header.component.html', + standalone: false, }) export class StoreFinderHeaderComponent {} diff --git a/feature-libs/storefinder/components/store-finder-list-item/store-finder-list-item.component.ts b/feature-libs/storefinder/components/store-finder-list-item/store-finder-list-item.component.ts index 720a02b64a3..c3514f0c33f 100644 --- a/feature-libs/storefinder/components/store-finder-list-item/store-finder-list-item.component.ts +++ b/feature-libs/storefinder/components/store-finder-list-item/store-finder-list-item.component.ts @@ -13,6 +13,7 @@ import { AbstractStoreItemComponent } from '../abstract-store-item/abstract-stor @Component({ selector: 'cx-store-finder-list-item', templateUrl: './store-finder-list-item.component.html', + standalone: false, }) export class StoreFinderListItemComponent extends AbstractStoreItemComponent { @Input() diff --git a/feature-libs/storefinder/components/store-finder-map/store-finder-map.component.ts b/feature-libs/storefinder/components/store-finder-map/store-finder-map.component.ts index fc7b5a3d67d..195d9961dff 100644 --- a/feature-libs/storefinder/components/store-finder-map/store-finder-map.component.ts +++ b/feature-libs/storefinder/components/store-finder-map/store-finder-map.component.ts @@ -20,6 +20,7 @@ import { GoogleMapRendererService } from '@spartacus/storefinder/core'; @Component({ selector: 'cx-store-finder-map', templateUrl: './store-finder-map.component.html', + standalone: false, }) export class StoreFinderMapComponent implements OnChanges { @ViewChild('mapElement', { static: true }) diff --git a/feature-libs/storefinder/components/store-finder-pagination-details/store-finder-pagination-details.component.ts b/feature-libs/storefinder/components/store-finder-pagination-details/store-finder-pagination-details.component.ts index b78521825db..cec80a3d490 100644 --- a/feature-libs/storefinder/components/store-finder-pagination-details/store-finder-pagination-details.component.ts +++ b/feature-libs/storefinder/components/store-finder-pagination-details/store-finder-pagination-details.component.ts @@ -10,6 +10,7 @@ import { PaginationModel } from '@spartacus/core'; @Component({ selector: 'cx-store-finder-pagination-details', templateUrl: './store-finder-pagination-details.component.html', + standalone: false, }) export class StoreFinderPaginationDetailsComponent { @Input() diff --git a/feature-libs/storefinder/components/store-finder-search-result/store-finder-list/store-finder-list.component.ts b/feature-libs/storefinder/components/store-finder-search-result/store-finder-list/store-finder-list.component.ts index c2beffac4b5..0ff13a4c86b 100644 --- a/feature-libs/storefinder/components/store-finder-search-result/store-finder-list/store-finder-list.component.ts +++ b/feature-libs/storefinder/components/store-finder-search-result/store-finder-list/store-finder-list.component.ts @@ -15,6 +15,7 @@ import { LocationDisplayMode } from './store-finder-list.model'; @Component({ selector: 'cx-store-finder-list', templateUrl: './store-finder-list.component.html', + standalone: false, }) export class StoreFinderListComponent { @Input() diff --git a/feature-libs/storefinder/components/store-finder-search-result/store-finder-search-result.component.ts b/feature-libs/storefinder/components/store-finder-search-result/store-finder-search-result.component.ts index 34f1856da1a..5d8ee2ba5fa 100644 --- a/feature-libs/storefinder/components/store-finder-search-result/store-finder-search-result.component.ts +++ b/feature-libs/storefinder/components/store-finder-search-result/store-finder-search-result.component.ts @@ -17,6 +17,7 @@ import { @Component({ selector: 'cx-store-finder-search-result', templateUrl: './store-finder-search-result.component.html', + standalone: false, }) export class StoreFinderSearchResultComponent implements OnInit, OnDestroy { locations: any; diff --git a/feature-libs/storefinder/components/store-finder-search/store-finder-search.component.spec.ts b/feature-libs/storefinder/components/store-finder-search/store-finder-search.component.spec.ts index 2792dc13736..55c17c254f0 100644 --- a/feature-libs/storefinder/components/store-finder-search/store-finder-search.component.spec.ts +++ b/feature-libs/storefinder/components/store-finder-search/store-finder-search.component.spec.ts @@ -29,6 +29,7 @@ const mockActivatedRoute = { @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform() {} @@ -37,6 +38,7 @@ class MockUrlPipe implements PipeTransform { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; diff --git a/feature-libs/storefinder/components/store-finder-search/store-finder-search.component.ts b/feature-libs/storefinder/components/store-finder-search/store-finder-search.component.ts index d07d8ba4046..cb566e1bb5e 100644 --- a/feature-libs/storefinder/components/store-finder-search/store-finder-search.component.ts +++ b/feature-libs/storefinder/components/store-finder-search/store-finder-search.component.ts @@ -12,6 +12,7 @@ import { ICON_TYPE } from '@spartacus/storefront'; @Component({ selector: 'cx-store-finder-search', templateUrl: './store-finder-search.component.html', + standalone: false, }) export class StoreFinderSearchComponent { searchBox: UntypedFormControl = new UntypedFormControl(); diff --git a/feature-libs/storefinder/components/store-finder-store-description/store-finder-store-description.component.spec.ts b/feature-libs/storefinder/components/store-finder-store-description/store-finder-store-description.component.spec.ts index df477b56f61..4d5e13906ec 100644 --- a/feature-libs/storefinder/components/store-finder-store-description/store-finder-store-description.component.spec.ts +++ b/feature-libs/storefinder/components/store-finder-store-description/store-finder-store-description.component.spec.ts @@ -9,12 +9,20 @@ class StoreFinderServiceMock { getStoreLongitude() {} } -@Component({ selector: 'cx-schedule', template: '' }) +@Component({ + selector: 'cx-schedule', + template: '', + standalone: false, +}) class MockScheduleComponent { @Input() location; } -@Component({ selector: 'cx-store-finder-map', template: '' }) +@Component({ + selector: 'cx-store-finder-map', + template: '', + standalone: false, +}) class MockStoreFinderMapComponent { @Input() locations; } diff --git a/feature-libs/storefinder/components/store-finder-store-description/store-finder-store-description.component.ts b/feature-libs/storefinder/components/store-finder-store-description/store-finder-store-description.component.ts index 349fe8f691e..e77f1400f23 100644 --- a/feature-libs/storefinder/components/store-finder-store-description/store-finder-store-description.component.ts +++ b/feature-libs/storefinder/components/store-finder-store-description/store-finder-store-description.component.ts @@ -12,6 +12,7 @@ import { AbstractStoreItemComponent } from '../abstract-store-item/abstract-stor @Component({ selector: 'cx-store-finder-store-description', templateUrl: './store-finder-store-description.component.html', + standalone: false, }) export class StoreFinderStoreDescriptionComponent extends AbstractStoreItemComponent { @Input() location: PointOfService; diff --git a/feature-libs/storefinder/components/store-finder-store/store-finder-store.component.spec.ts b/feature-libs/storefinder/components/store-finder-store/store-finder-store.component.spec.ts index 832be6aa8a2..48cfd4ccb95 100644 --- a/feature-libs/storefinder/components/store-finder-store/store-finder-store.component.spec.ts +++ b/feature-libs/storefinder/components/store-finder-store/store-finder-store.component.spec.ts @@ -24,6 +24,7 @@ class MockStoreFinderService implements Partial { @Component({ selector: 'cx-icon', template: '', + standalone: false, }) class MockCxIconComponent { @Input() type: ICON_TYPE; @@ -32,6 +33,7 @@ class MockCxIconComponent { @Component({ selector: 'cx-store-finder-store-description', template: '', + standalone: false, }) class MockStoreFinderStoreDescriptionComponent { @Input() location: PointOfService; diff --git a/feature-libs/storefinder/components/store-finder-store/store-finder-store.component.ts b/feature-libs/storefinder/components/store-finder-store/store-finder-store.component.ts index e2db70957cc..3d8ff60c029 100644 --- a/feature-libs/storefinder/components/store-finder-store/store-finder-store.component.ts +++ b/feature-libs/storefinder/components/store-finder-store/store-finder-store.component.ts @@ -14,6 +14,7 @@ import { StoreFinderService } from '@spartacus/storefinder/core'; @Component({ selector: 'cx-store-finder-store', templateUrl: './store-finder-store.component.html', + standalone: false, }) export class StoreFinderStoreComponent implements OnInit { location$: Observable; diff --git a/feature-libs/storefinder/components/store-finder-stores-count/store-finder-stores-count.component.ts b/feature-libs/storefinder/components/store-finder-stores-count/store-finder-stores-count.component.ts index f462a21d044..eff2077177e 100644 --- a/feature-libs/storefinder/components/store-finder-stores-count/store-finder-stores-count.component.ts +++ b/feature-libs/storefinder/components/store-finder-stores-count/store-finder-stores-count.component.ts @@ -12,6 +12,7 @@ import { Observable } from 'rxjs'; @Component({ selector: 'cx-store-finder-stores-count', templateUrl: './store-finder-stores-count.component.html', + standalone: false, }) export class StoreFinderStoresCountComponent implements OnInit { // TODO: CXSPA-6884 Make service required in next major. diff --git a/feature-libs/storefinder/components/store-finder/store-finder.component.spec.ts b/feature-libs/storefinder/components/store-finder/store-finder.component.spec.ts index 819c862b3bd..2977e6bfa50 100644 --- a/feature-libs/storefinder/components/store-finder/store-finder.component.spec.ts +++ b/feature-libs/storefinder/components/store-finder/store-finder.component.spec.ts @@ -5,6 +5,7 @@ import { StoreFinderComponent } from './store-finder.component'; @Component({ selector: 'cx-store-finder-header', template: '', + standalone: false, }) class MockStoreFinderHeaderComponent {} diff --git a/feature-libs/storefinder/components/store-finder/store-finder.component.ts b/feature-libs/storefinder/components/store-finder/store-finder.component.ts index ac3982fce7f..7b4082f8c40 100644 --- a/feature-libs/storefinder/components/store-finder/store-finder.component.ts +++ b/feature-libs/storefinder/components/store-finder/store-finder.component.ts @@ -9,5 +9,6 @@ import { Component } from '@angular/core'; @Component({ selector: 'cx-store-finder', templateUrl: './store-finder.component.html', + standalone: false, }) export class StoreFinderComponent {} diff --git a/feature-libs/storefinder/package.json b/feature-libs/storefinder/package.json index fe6d9d31fed..efbd1abf06d 100644 --- a/feature-libs/storefinder/package.json +++ b/feature-libs/storefinder/package.json @@ -25,13 +25,13 @@ "tslib": "^2.8.1" }, "peerDependencies": { - "@angular-devkit/schematics": "^18.2.9", - "@angular/common": "^18.2.9", - "@angular/core": "^18.2.9", - "@angular/forms": "^18.2.9", - "@angular/router": "^18.2.9", - "@ngrx/effects": "^18.1.1", - "@ngrx/store": "^18.1.1", + "@angular-devkit/schematics": "^19.0.4", + "@angular/common": "^19.0.3", + "@angular/core": "^19.0.3", + "@angular/forms": "^19.0.3", + "@angular/router": "^19.0.3", + "@ngrx/effects": "^19.0.0", + "@ngrx/store": "^19.0.0", "@spartacus/core": "2211.32.0", "@spartacus/schematics": "2211.32.0", "@spartacus/storefront": "2211.32.0", diff --git a/feature-libs/storefinder/schematics/add-storefinder/__snapshots__/index_spec.ts.snap b/feature-libs/storefinder/schematics/add-storefinder/__snapshots__/index_spec.ts.snap index e182def4e3b..78e2018f76e 100644 --- a/feature-libs/storefinder/schematics/add-storefinder/__snapshots__/index_spec.ts.snap +++ b/feature-libs/storefinder/schematics/add-storefinder/__snapshots__/index_spec.ts.snap @@ -113,7 +113,12 @@ exports[`Spartacus Storefinder schematics: ng-add Storefinder feature general se "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } }, "configurations": { @@ -126,8 +131,8 @@ exports[`Spartacus Storefinder schematics: ng-add Storefinder feature general se }, { "type": "anyComponentStyle", - "maximumWarning": "2kB", - "maximumError": "4kB" + "maximumWarning": "4kB", + "maximumError": "8kB" } ], "outputHashing": "all" @@ -178,7 +183,12 @@ exports[`Spartacus Storefinder schematics: ng-add Storefinder feature general se "stylePreprocessorOptions": { "includePaths": [ "node_modules/" - ] + ], + "sass": { + "silenceDeprecations": [ + "import" + ] + } } } } diff --git a/feature-libs/tracking/package.json b/feature-libs/tracking/package.json index 61dc4892712..0c79c7227ca 100644 --- a/feature-libs/tracking/package.json +++ b/feature-libs/tracking/package.json @@ -24,9 +24,9 @@ "tslib": "^2.8.1" }, "peerDependencies": { - "@angular-devkit/schematics": "^18.2.9", - "@angular/common": "^18.2.9", - "@angular/core": "^18.2.9", + "@angular-devkit/schematics": "^19.0.4", + "@angular/common": "^19.0.3", + "@angular/core": "^19.0.3", "@spartacus/core": "2211.32.0", "@spartacus/schematics": "2211.32.0", "rxjs": "^7.8.0" diff --git a/feature-libs/user/account/components/login-form/login-form.component.spec.ts b/feature-libs/user/account/components/login-form/login-form.component.spec.ts index cc8d094b471..cf19294b238 100644 --- a/feature-libs/user/account/components/login-form/login-form.component.spec.ts +++ b/feature-libs/user/account/components/login-form/login-form.component.spec.ts @@ -27,6 +27,7 @@ class MockLoginFormComponentService } @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform() {} diff --git a/feature-libs/user/account/components/login-form/login-form.component.ts b/feature-libs/user/account/components/login-form/login-form.component.ts index b67adc197b0..a012b84d4d5 100644 --- a/feature-libs/user/account/components/login-form/login-form.component.ts +++ b/feature-libs/user/account/components/login-form/login-form.component.ts @@ -14,6 +14,7 @@ import { LoginFormComponentService } from './login-form-component.service'; selector: 'cx-login-form', templateUrl: './login-form.component.html', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: false, }) export class LoginFormComponent { constructor(protected service: LoginFormComponentService) { diff --git a/feature-libs/user/account/components/login-register/login-register.component.spec.ts b/feature-libs/user/account/components/login-register/login-register.component.spec.ts index b0054a3e0ae..f97223e127b 100644 --- a/feature-libs/user/account/components/login-register/login-register.component.spec.ts +++ b/feature-libs/user/account/components/login-register/login-register.component.spec.ts @@ -16,6 +16,7 @@ describe('LoginRegisterComponent', () => { @Pipe({ name: 'cxUrl', + standalone: false, }) class MockUrlPipe implements PipeTransform { transform() {} diff --git a/feature-libs/user/account/components/login-register/login-register.component.ts b/feature-libs/user/account/components/login-register/login-register.component.ts index ebc23bbcd97..9ff16ddad3b 100644 --- a/feature-libs/user/account/components/login-register/login-register.component.ts +++ b/feature-libs/user/account/components/login-register/login-register.component.ts @@ -11,6 +11,7 @@ import { RoutingService } from '@spartacus/core'; @Component({ selector: 'cx-login-register', templateUrl: './login-register.component.html', + standalone: false, }) export class LoginRegisterComponent implements OnInit { loginAsGuest = false; diff --git a/feature-libs/user/account/components/login/login.component.spec.ts b/feature-libs/user/account/components/login/login.component.spec.ts index 81aff86ace9..13d58d562a8 100644 --- a/feature-libs/user/account/components/login/login.component.spec.ts +++ b/feature-libs/user/account/components/login/login.component.spec.ts @@ -39,6 +39,7 @@ class MockUserAccountFacade { @Component({ selector: 'cx-page-slot', + standalone: false, template: `