From 186153b63be3dd94d158273ae86367aac4c619df Mon Sep 17 00:00:00 2001 From: Stefan Hauke Date: Tue, 26 May 2020 12:45:19 +0200 Subject: [PATCH] order templates update to angular 9 - probably not intended changes from false additional merge - should be ommited? --- .../lazy-create-order-template.component.html | 5 +++++ .../lazy-create-order-template.component.ts | 18 +++++++++++++++++ ...oduct-add-to-order-template.component.html | 5 +++++ ...product-add-to-order-template.component.ts | 20 +++++++++++++++++++ src/app/shell/shell.module.ts | 1 + 5 files changed, 49 insertions(+) create mode 100644 src/app/extensions/order-templates/exports/basket/lazy-create-order-template/lazy-create-order-template.component.html create mode 100644 src/app/extensions/order-templates/exports/basket/lazy-create-order-template/lazy-create-order-template.component.ts create mode 100644 src/app/extensions/order-templates/exports/products/lazy-product-add-to-order-template/lazy-product-add-to-order-template.component.html create mode 100644 src/app/extensions/order-templates/exports/products/lazy-product-add-to-order-template/lazy-product-add-to-order-template.component.ts diff --git a/src/app/extensions/order-templates/exports/basket/lazy-create-order-template/lazy-create-order-template.component.html b/src/app/extensions/order-templates/exports/basket/lazy-create-order-template/lazy-create-order-template.component.html new file mode 100644 index 00000000000..447ac3a82b3 --- /dev/null +++ b/src/app/extensions/order-templates/exports/basket/lazy-create-order-template/lazy-create-order-template.component.html @@ -0,0 +1,5 @@ + diff --git a/src/app/extensions/order-templates/exports/basket/lazy-create-order-template/lazy-create-order-template.component.ts b/src/app/extensions/order-templates/exports/basket/lazy-create-order-template/lazy-create-order-template.component.ts new file mode 100644 index 00000000000..82845f246c8 --- /dev/null +++ b/src/app/extensions/order-templates/exports/basket/lazy-create-order-template/lazy-create-order-template.component.ts @@ -0,0 +1,18 @@ +import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; + +import { Product } from 'ish-core/models/product/product.model'; + +@Component({ + selector: 'ish-lazy-create-order-template', + templateUrl: './lazy-create-order-template.component.html', + changeDetection: ChangeDetectionStrategy.OnPush, +}) +// tslint:disable-next-line:component-creation-test +export class LazyCreateOrderTemplateComponent { + @Input() products: Product[]; + @Input() class?: string; + componentLocation = { + moduleId: 'ish-extensions-order-templates', + selector: 'ish-basket-create-order-template', + }; +} diff --git a/src/app/extensions/order-templates/exports/products/lazy-product-add-to-order-template/lazy-product-add-to-order-template.component.html b/src/app/extensions/order-templates/exports/products/lazy-product-add-to-order-template/lazy-product-add-to-order-template.component.html new file mode 100644 index 00000000000..9826819971d --- /dev/null +++ b/src/app/extensions/order-templates/exports/products/lazy-product-add-to-order-template/lazy-product-add-to-order-template.component.html @@ -0,0 +1,5 @@ + diff --git a/src/app/extensions/order-templates/exports/products/lazy-product-add-to-order-template/lazy-product-add-to-order-template.component.ts b/src/app/extensions/order-templates/exports/products/lazy-product-add-to-order-template/lazy-product-add-to-order-template.component.ts new file mode 100644 index 00000000000..05440426a26 --- /dev/null +++ b/src/app/extensions/order-templates/exports/products/lazy-product-add-to-order-template/lazy-product-add-to-order-template.component.ts @@ -0,0 +1,20 @@ +import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; + +import { Product } from 'ish-core/models/product/product.model'; + +@Component({ + selector: 'ish-lazy-product-add-to-order-template', + templateUrl: './lazy-product-add-to-order-template.component.html', + changeDetection: ChangeDetectionStrategy.OnPush, +}) +// tslint:disable-next-line:component-creation-test +export class LazyProductAddToOrderTemplateComponent { + @Input() product: Product; + @Input() displayType?: string; + @Input() quantity: number; + @Input() class?: string; + componentLocation = { + moduleId: 'ish-extensions-order-templates', + selector: 'ish-product-add-to-order-template', + }; +} diff --git a/src/app/shell/shell.module.ts b/src/app/shell/shell.module.ts index 3ed30e3dd8b..aa6c1d976e9 100644 --- a/src/app/shell/shell.module.ts +++ b/src/app/shell/shell.module.ts @@ -58,6 +58,7 @@ const exportedComponents = [ NgbCollapseModule, NgbDropdownModule, NgbModalModule, + OrderTemplatesExportsModule, PipesModule.forRoot(), RouterModule, TranslateModule,