diff --git a/packages/modules/product/src/lib/components/forms/product-creation-form.component.ts b/packages/modules/product/src/lib/components/forms/product-creation-form.component.ts deleted file mode 100644 index 254e1add..00000000 --- a/packages/modules/product/src/lib/components/forms/product-creation-form.component.ts +++ /dev/null @@ -1,211 +0,0 @@ -import { ChangeDetectionStrategy, Component } from '@angular/core'; -import { FormControl, FormGroup } from '@angular/forms'; - -import { ModeType } from '@console-core/graphql'; -import { ProductFacade } from '@console-core/state'; -@Component({ - template: ` -
- `, - selector: 'app-module-product-creation-form', - changeDetection: ChangeDetectionStrategy.OnPush, -}) -export class ProductCreationFormComponent { - productForm = new FormGroup({ - name: new FormControl('Juju toys bello'), - description: new FormControl( - 'A simple toy that you can say to what you want' - ), - manufacturerId: new FormControl('manu-b'), - originCountryId: new FormControl('germany'), - taricCode: new FormControl('12345678901'), - prototypeId: new FormControl('proto-b'), - categoryId: new FormControl('cat-b'), - gtin: new FormControl('01234567890123'), - // taxIds: new FormControl('germany-standard-rate'), // TODO This would eventually be an array. - }); - - constructor(private readonly productFacade: ProductFacade) {} - - onSubmit() { - if (this.productForm.valid) { - this.productFacade.create({ - mode: ModeType.Create, - items: [ - { - product: this.productForm.value, - meta: { - owners: [ - { - id: 'urn:restorecommerce:acs:names:ownerIndicatoryEntity', - value: - 'urn:restorecommerce:acs:model:organization.Organization', - attributes: [ - { - id: 'urn:restorecommerce:acs:names:ownerInstance', - value: 'nfuse-shop-000-organization', - }, - ], - }, - ], - }, - }, - ], - }); - } - } -} diff --git a/packages/modules/product/src/lib/components/forms/product-price-form.component.ts b/packages/modules/product/src/lib/components/forms/product-price-form.component.ts deleted file mode 100644 index 25b2caa3..00000000 --- a/packages/modules/product/src/lib/components/forms/product-price-form.component.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { ChangeDetectionStrategy, Component, HostBinding } from '@angular/core'; - -@Component({ - template: ` -