@daffodil/product-composite 0.64.2 → 0.66.1
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2020/testing/factories/composite-product-item-option.factory.mjs +7 -6
- package/esm2020/testing/factories/composite-product.factory.mjs +9 -8
- package/fesm2015/daffodil-product-composite-testing.mjs +11 -10
- package/fesm2015/daffodil-product-composite-testing.mjs.map +1 -1
- package/fesm2020/daffodil-product-composite-testing.mjs +11 -10
- package/fesm2020/daffodil-product-composite-testing.mjs.map +1 -1
- package/package.json +1 -1
- package/testing/factories/composite-product-item-option.factory.d.ts +2 -2
- package/testing/factories/composite-product.factory.d.ts +3 -3
@@ -1,8 +1,9 @@
|
|
1
1
|
import { Injectable } from '@angular/core';
|
2
2
|
import { faker } from '@faker-js/faker/locale/en_US';
|
3
3
|
import { DaffModelFactory } from '@daffodil/core/testing';
|
4
|
-
import { MockProduct } from '@daffodil/product/testing';
|
4
|
+
import { DaffProductImageFactory, MockProduct, } from '@daffodil/product/testing';
|
5
5
|
import * as i0 from "@angular/core";
|
6
|
+
import * as i1 from "@daffodil/product/testing";
|
6
7
|
/**
|
7
8
|
* Mocked DaffCompositeProductItemOption object.
|
8
9
|
*/
|
@@ -17,16 +18,16 @@ export class MockCompositeProductItemOption extends MockProduct {
|
|
17
18
|
* Factory for creating DaffCompositeProductItemOptions.
|
18
19
|
*/
|
19
20
|
export class DaffCompositeProductItemOptionFactory extends DaffModelFactory {
|
20
|
-
constructor() {
|
21
|
-
super(MockCompositeProductItemOption);
|
21
|
+
constructor(imageFactory) {
|
22
|
+
super(MockCompositeProductItemOption, imageFactory);
|
22
23
|
}
|
23
24
|
}
|
24
|
-
/** @nocollapse */ DaffCompositeProductItemOptionFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCompositeProductItemOptionFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
25
|
+
/** @nocollapse */ DaffCompositeProductItemOptionFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCompositeProductItemOptionFactory, deps: [{ token: i1.DaffProductImageFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
25
26
|
/** @nocollapse */ DaffCompositeProductItemOptionFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCompositeProductItemOptionFactory, providedIn: 'root' });
|
26
27
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCompositeProductItemOptionFactory, decorators: [{
|
27
28
|
type: Injectable,
|
28
29
|
args: [{
|
29
30
|
providedIn: 'root',
|
30
31
|
}]
|
31
|
-
}], ctorParameters: function () { return []; } });
|
32
|
-
//# sourceMappingURL=data:application/json;base64,
|
32
|
+
}], ctorParameters: function () { return [{ type: i1.DaffProductImageFactory }]; } });
|
33
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9zaXRlLXByb2R1Y3QtaXRlbS1vcHRpb24uZmFjdG9yeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvcHJvZHVjdC1jb21wb3NpdGUvdGVzdGluZy9zcmMvZmFjdG9yaWVzL2NvbXBvc2l0ZS1wcm9kdWN0LWl0ZW0tb3B0aW9uLmZhY3RvcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0sOEJBQThCLENBQUM7QUFFckQsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDMUQsT0FBTyxFQUNMLHVCQUF1QixFQUN2QixXQUFXLEdBQ1osTUFBTSwyQkFBMkIsQ0FBQzs7O0FBR25DOztHQU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lxuICogTW9ja2VkIERhZmZDb21wb3NpdGVQcm9kdWN0SXRlbU9wdGlvbiBvYmplY3QuXG4gKi9cbmV4cG9ydCBjbGFzcyBNb2NrQ29tcG9zaXRlUHJvZHVjdEl0ZW1PcHRpb24gZXh0ZW5kcyBNb2NrUHJvZHVjdCBpbXBsZW1lbnRzIERhZmZDb21wb3NpdGVQcm9kdWN0SXRlbU9wdGlvbiB7XG4gIHF1YW50aXR5ID0gZmFrZXIuZGF0YXR5cGUubnVtYmVyKHsgbWluOiAxLCBtYXg6IDkgfSk7XG4gIGlzX2RlZmF1bHQgPSBmYWtlci5kYXRhdHlwZS5ib29sZWFuKCk7XG59XG5cbi8qKlxuICogRmFjdG9yeSBmb3IgY3JlYXRpbmcgRGFmZkNvbXBvc2l0ZVByb2R1Y3RJdGVtT3B0aW9ucy5cbiAqL1xuQEluamVjdGFibGUoe1xuICBwcm92aWRlZEluOiAncm9vdCcsXG59KVxuZXhwb3J0IGNsYXNzIERhZmZDb21wb3NpdGVQcm9kdWN0SXRlbU9wdGlvbkZhY3RvcnkgZXh0ZW5kcyBEYWZmTW9kZWxGYWN0b3J5PERhZmZDb21wb3NpdGVQcm9kdWN0SXRlbU9wdGlvbj57XG4gIGNvbnN0cnVjdG9yKFxuICAgIGltYWdlRmFjdG9yeTogRGFmZlByb2R1Y3RJbWFnZUZhY3RvcnksXG4gICkge1xuICAgIHN1cGVyKE1vY2tDb21wb3NpdGVQcm9kdWN0SXRlbU9wdGlvbiwgaW1hZ2VGYWN0b3J5KTtcbiAgfVxufVxuIl19
|
@@ -1,16 +1,17 @@
|
|
1
1
|
import { Injectable } from '@angular/core';
|
2
2
|
import { DaffModelFactory } from '@daffodil/core/testing';
|
3
3
|
import { DaffProductTypeEnum } from '@daffodil/product';
|
4
|
-
import { MockProduct } from '@daffodil/product/testing';
|
4
|
+
import { DaffProductImageFactory, MockProduct, } from '@daffodil/product/testing';
|
5
5
|
import { DaffCompositeProductItemFactory } from './composite-product-item.factory';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
import * as i1 from "./composite-product-item.factory";
|
8
|
+
import * as i2 from "@daffodil/product/testing";
|
8
9
|
/**
|
9
10
|
* Mocked DaffCompositeProduct object.
|
10
11
|
*/
|
11
12
|
export class MockCompositeProduct extends MockProduct {
|
12
|
-
constructor(itemFactory) {
|
13
|
-
super();
|
13
|
+
constructor(itemFactory, imageFactory) {
|
14
|
+
super(imageFactory);
|
14
15
|
this.itemFactory = itemFactory;
|
15
16
|
this.type = DaffProductTypeEnum.Composite;
|
16
17
|
this.items = this.itemFactory.createMany(2);
|
@@ -20,16 +21,16 @@ export class MockCompositeProduct extends MockProduct {
|
|
20
21
|
* Factory for creating DaffCompositeProducts.
|
21
22
|
*/
|
22
23
|
export class DaffCompositeProductFactory extends DaffModelFactory {
|
23
|
-
constructor(itemFactory) {
|
24
|
-
super(MockCompositeProduct, itemFactory);
|
24
|
+
constructor(itemFactory, imageFactory) {
|
25
|
+
super(MockCompositeProduct, itemFactory, imageFactory);
|
25
26
|
}
|
26
27
|
}
|
27
|
-
/** @nocollapse */ DaffCompositeProductFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCompositeProductFactory, deps: [{ token: i1.DaffCompositeProductItemFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
28
|
+
/** @nocollapse */ DaffCompositeProductFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCompositeProductFactory, deps: [{ token: i1.DaffCompositeProductItemFactory }, { token: i2.DaffProductImageFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
28
29
|
/** @nocollapse */ DaffCompositeProductFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCompositeProductFactory, providedIn: 'root' });
|
29
30
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCompositeProductFactory, decorators: [{
|
30
31
|
type: Injectable,
|
31
32
|
args: [{
|
32
33
|
providedIn: 'root',
|
33
34
|
}]
|
34
|
-
}], ctorParameters: function () { return [{ type: i1.DaffCompositeProductItemFactory }]; } });
|
35
|
-
//# sourceMappingURL=data:application/json;base64,
|
35
|
+
}], ctorParameters: function () { return [{ type: i1.DaffCompositeProductItemFactory }, { type: i2.DaffProductImageFactory }]; } });
|
36
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9zaXRlLXByb2R1Y3QuZmFjdG9yeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvcHJvZHVjdC1jb21wb3NpdGUvdGVzdGluZy9zcmMvZmFjdG9yaWVzL2NvbXBvc2l0ZS1wcm9kdWN0LmZhY3RvcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUczQyxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUMxRCxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUN4RCxPQUFPLEVBQ0wsdUJBQXVCLEVBQ3ZCLFdBQVcsR0FDWixNQUFNLDJCQUEyQixDQUFDO0FBR25DLE9BQU8sRUFBRSwrQkFBK0IsRUFBRSxNQUFNLGtDQUFrQyxDQUFDOzs7O0FBRW5GOztHQUVHO0FBQ0gsTUFBTSxPQUFPLG9CQUFxQixTQUFRLFdBQVc7SUFJbkQsWUFDWSxXQUE0QyxFQUN0RCxZQUFxQztRQUVyQyxLQUFLLENBQUMsWUFBWSxDQUFDLENBQUM7UUFIVixnQkFBVyxHQUFYLFdBQVcsQ0FBaUM7UUFKeEQsU0FBSSxHQUFHLG1CQUFtQ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IH1cbn1cbiJdfQ==
|
@@ -2,6 +2,7 @@ import * as i0 from '@angular/core';
|
|
2
2
|
import { Injectable } from '@angular/core';
|
3
3
|
import { DaffModelFactory } from '@daffodil/core/testing';
|
4
4
|
import { DaffProductTypeEnum } from '@daffodil/product';
|
5
|
+
import * as i1 from '@daffodil/product/testing';
|
5
6
|
import { MockProduct } from '@daffodil/product/testing';
|
6
7
|
import { faker } from '@faker-js/faker/locale/en_US';
|
7
8
|
import { DaffCompositeProductItemInputEnum } from '@daffodil/product-composite';
|
@@ -20,18 +21,18 @@ class MockCompositeProductItemOption extends MockProduct {
|
|
20
21
|
* Factory for creating DaffCompositeProductItemOptions.
|
21
22
|
*/
|
22
23
|
class DaffCompositeProductItemOptionFactory extends DaffModelFactory {
|
23
|
-
constructor() {
|
24
|
-
super(MockCompositeProductItemOption);
|
24
|
+
constructor(imageFactory) {
|
25
|
+
super(MockCompositeProductItemOption, imageFactory);
|
25
26
|
}
|
26
27
|
}
|
27
|
-
/** @nocollapse */ DaffCompositeProductItemOptionFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCompositeProductItemOptionFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
28
|
+
/** @nocollapse */ DaffCompositeProductItemOptionFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCompositeProductItemOptionFactory, deps: [{ token: i1.DaffProductImageFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
28
29
|
/** @nocollapse */ DaffCompositeProductItemOptionFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCompositeProductItemOptionFactory, providedIn: 'root' });
|
29
30
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCompositeProductItemOptionFactory, decorators: [{
|
30
31
|
type: Injectable,
|
31
32
|
args: [{
|
32
33
|
providedIn: 'root',
|
33
34
|
}]
|
34
|
-
}], ctorParameters: function () { return []; } });
|
35
|
+
}], ctorParameters: function () { return [{ type: i1.DaffProductImageFactory }]; } });
|
35
36
|
|
36
37
|
/**
|
37
38
|
* Mocked DaffCompositeProductItem object.
|
@@ -75,8 +76,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
75
76
|
* Mocked DaffCompositeProduct object.
|
76
77
|
*/
|
77
78
|
class MockCompositeProduct extends MockProduct {
|
78
|
-
constructor(itemFactory) {
|
79
|
-
super();
|
79
|
+
constructor(itemFactory, imageFactory) {
|
80
|
+
super(imageFactory);
|
80
81
|
this.itemFactory = itemFactory;
|
81
82
|
this.type = DaffProductTypeEnum.Composite;
|
82
83
|
this.items = this.itemFactory.createMany(2);
|
@@ -86,18 +87,18 @@ class MockCompositeProduct extends MockProduct {
|
|
86
87
|
* Factory for creating DaffCompositeProducts.
|
87
88
|
*/
|
88
89
|
class DaffCompositeProductFactory extends DaffModelFactory {
|
89
|
-
constructor(itemFactory) {
|
90
|
-
super(MockCompositeProduct, itemFactory);
|
90
|
+
constructor(itemFactory, imageFactory) {
|
91
|
+
super(MockCompositeProduct, itemFactory, imageFactory);
|
91
92
|
}
|
92
93
|
}
|
93
|
-
/** @nocollapse */ DaffCompositeProductFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCompositeProductFactory, deps: [{ token: DaffCompositeProductItemFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
94
|
+
/** @nocollapse */ DaffCompositeProductFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCompositeProductFactory, deps: [{ token: DaffCompositeProductItemFactory }, { token: i1.DaffProductImageFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
94
95
|
/** @nocollapse */ DaffCompositeProductFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCompositeProductFactory, providedIn: 'root' });
|
95
96
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCompositeProductFactory, decorators: [{
|
96
97
|
type: Injectable,
|
97
98
|
args: [{
|
98
99
|
providedIn: 'root',
|
99
100
|
}]
|
100
|
-
}], ctorParameters: function () { return [{ type: DaffCompositeProductItemFactory }]; } });
|
101
|
+
}], ctorParameters: function () { return [{ type: DaffCompositeProductItemFactory }, { type: i1.DaffProductImageFactory }]; } });
|
101
102
|
|
102
103
|
/**
|
103
104
|
* Generated bundle index. Do not edit.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"daffodil-product-composite-testing.mjs","sources":["../../../libs/product-composite/testing/src/factories/composite-product-item-option.factory.ts","../../../libs/product-composite/testing/src/factories/composite-product-item.factory.ts","../../../libs/product-composite/testing/src/factories/composite-product.factory.ts","../../../libs/product-composite/testing/src/daffodil-product-composite-testing.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { faker } from '@faker-js/faker/locale/en_US';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport {
|
1
|
+
{"version":3,"file":"daffodil-product-composite-testing.mjs","sources":["../../../libs/product-composite/testing/src/factories/composite-product-item-option.factory.ts","../../../libs/product-composite/testing/src/factories/composite-product-item.factory.ts","../../../libs/product-composite/testing/src/factories/composite-product.factory.ts","../../../libs/product-composite/testing/src/daffodil-product-composite-testing.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { faker } from '@faker-js/faker/locale/en_US';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport {\n DaffProductImageFactory,\n MockProduct,\n} from '@daffodil/product/testing';\nimport { DaffCompositeProductItemOption } from '@daffodil/product-composite';\n\n/**\n * Mocked DaffCompositeProductItemOption object.\n */\nexport class MockCompositeProductItemOption extends MockProduct implements DaffCompositeProductItemOption {\n quantity = faker.datatype.number({ min: 1, max: 9 });\n is_default = faker.datatype.boolean();\n}\n\n/**\n * Factory for creating DaffCompositeProductItemOptions.\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffCompositeProductItemOptionFactory extends DaffModelFactory<DaffCompositeProductItemOption>{\n constructor(\n imageFactory: DaffProductImageFactory,\n ) {\n super(MockCompositeProductItemOption, imageFactory);\n }\n}\n","import { Injectable } from '@angular/core';\nimport { faker } from '@faker-js/faker/locale/en_US';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport {\n DaffCompositeProductItem,\n DaffCompositeProductItemInputEnum,\n} from '@daffodil/product-composite';\n\nimport { DaffCompositeProductItemOptionFactory } from './composite-product-item-option.factory';\n\n/**\n * Mocked DaffCompositeProductItem object.\n */\nexport class MockCompositeProductItem implements DaffCompositeProductItem {\n id = faker.datatype.uuid();\n url = `/${faker.internet.domainWord()}.html`;\n required = faker.datatype.boolean();\n title = faker.commerce.productName();\n input_type = DaffCompositeProductItemInputEnum.select;\n options = [\n this.optionFactory.create({\n is_default: true,\n }),\n this.optionFactory.create({\n is_default: false,\n }),\n ];\n\n constructor(\n protected optionFactory: DaffCompositeProductItemOptionFactory,\n ) {}\n}\n\n/**\n * Factory for creating DaffCompositeProductItems.\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffCompositeProductItemFactory extends DaffModelFactory<DaffCompositeProductItem>{\n constructor(\n optionFactory: DaffCompositeProductItemOptionFactory,\n ) {\n super(MockCompositeProductItem, optionFactory);\n }\n}\n","import { Injectable } from '@angular/core';\nimport { faker } from '@faker-js/faker/locale/en_US';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport { DaffProductTypeEnum } from '@daffodil/product';\nimport {\n DaffProductImageFactory,\n MockProduct,\n} from '@daffodil/product/testing';\nimport { DaffCompositeProduct } from '@daffodil/product-composite';\n\nimport { DaffCompositeProductItemFactory } from './composite-product-item.factory';\n\n/**\n * Mocked DaffCompositeProduct object.\n */\nexport class MockCompositeProduct extends MockProduct implements DaffCompositeProduct {\n type = DaffProductTypeEnum.Composite;\n items = this.itemFactory.createMany(2);\n\n constructor(\n protected itemFactory: DaffCompositeProductItemFactory,\n imageFactory: DaffProductImageFactory,\n ) {\n super(imageFactory);\n }\n}\n\n/**\n * Factory for creating DaffCompositeProducts.\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffCompositeProductFactory extends DaffModelFactory<DaffCompositeProduct>{\n constructor(\n itemFactory: DaffCompositeProductItemFactory,\n imageFactory: DaffProductImageFactory,\n ) {\n super(MockCompositeProduct, itemFactory, imageFactory);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.DaffCompositeProductItemOptionFactory","i1.DaffCompositeProductItemFactory","i2"],"mappings":";;;;;;;;;AAUA;;AAEG;AACG,MAAO,8BAA+B,SAAQ,WAAW,CAAA;AAA/D,IAAA,WAAA,GAAA;;AACE,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;QACrD,IAAA,CAAA,UAAU,GAAG,KAAK,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;KACvC;AAAA,CAAA;AAED;;AAEG;AAIG,MAAO,qCAAsC,SAAQ,gBAAgD,CAAA;AACzG,IAAA,WAAA,CACE,YAAqC,EAAA;AAErC,QAAA,KAAK,CAAC,8BAA8B,EAAE,YAAY,CAAC,CAAC;KACrD;;qJALU,qCAAqC,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,uBAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAArC,mBAAA,qCAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA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AA2B,cAF1B,MAAM,EAAA,CAAA,CAAA;2FAEP,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAHvC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;iBACnB,CAAA;;;ACjCD;;AAEG;;;;"}
|
@@ -2,6 +2,7 @@ import * as i0 from '@angular/core';
|
|
2
2
|
import { Injectable } from '@angular/core';
|
3
3
|
import { DaffModelFactory } from '@daffodil/core/testing';
|
4
4
|
import { DaffProductTypeEnum } from '@daffodil/product';
|
5
|
+
import * as i1 from '@daffodil/product/testing';
|
5
6
|
import { MockProduct } from '@daffodil/product/testing';
|
6
7
|
import { faker } from '@faker-js/faker/locale/en_US';
|
7
8
|
import { DaffCompositeProductItemInputEnum } from '@daffodil/product-composite';
|
@@ -20,18 +21,18 @@ class MockCompositeProductItemOption extends MockProduct {
|
|
20
21
|
* Factory for creating DaffCompositeProductItemOptions.
|
21
22
|
*/
|
22
23
|
class DaffCompositeProductItemOptionFactory extends DaffModelFactory {
|
23
|
-
constructor() {
|
24
|
-
super(MockCompositeProductItemOption);
|
24
|
+
constructor(imageFactory) {
|
25
|
+
super(MockCompositeProductItemOption, imageFactory);
|
25
26
|
}
|
26
27
|
}
|
27
|
-
/** @nocollapse */ DaffCompositeProductItemOptionFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCompositeProductItemOptionFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
28
|
+
/** @nocollapse */ DaffCompositeProductItemOptionFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCompositeProductItemOptionFactory, deps: [{ token: i1.DaffProductImageFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
28
29
|
/** @nocollapse */ DaffCompositeProductItemOptionFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCompositeProductItemOptionFactory, providedIn: 'root' });
|
29
30
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCompositeProductItemOptionFactory, decorators: [{
|
30
31
|
type: Injectable,
|
31
32
|
args: [{
|
32
33
|
providedIn: 'root',
|
33
34
|
}]
|
34
|
-
}], ctorParameters: function () { return []; } });
|
35
|
+
}], ctorParameters: function () { return [{ type: i1.DaffProductImageFactory }]; } });
|
35
36
|
|
36
37
|
/**
|
37
38
|
* Mocked DaffCompositeProductItem object.
|
@@ -75,8 +76,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
75
76
|
* Mocked DaffCompositeProduct object.
|
76
77
|
*/
|
77
78
|
class MockCompositeProduct extends MockProduct {
|
78
|
-
constructor(itemFactory) {
|
79
|
-
super();
|
79
|
+
constructor(itemFactory, imageFactory) {
|
80
|
+
super(imageFactory);
|
80
81
|
this.itemFactory = itemFactory;
|
81
82
|
this.type = DaffProductTypeEnum.Composite;
|
82
83
|
this.items = this.itemFactory.createMany(2);
|
@@ -86,18 +87,18 @@ class MockCompositeProduct extends MockProduct {
|
|
86
87
|
* Factory for creating DaffCompositeProducts.
|
87
88
|
*/
|
88
89
|
class DaffCompositeProductFactory extends DaffModelFactory {
|
89
|
-
constructor(itemFactory) {
|
90
|
-
super(MockCompositeProduct, itemFactory);
|
90
|
+
constructor(itemFactory, imageFactory) {
|
91
|
+
super(MockCompositeProduct, itemFactory, imageFactory);
|
91
92
|
}
|
92
93
|
}
|
93
|
-
/** @nocollapse */ DaffCompositeProductFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCompositeProductFactory, deps: [{ token: DaffCompositeProductItemFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
94
|
+
/** @nocollapse */ DaffCompositeProductFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCompositeProductFactory, deps: [{ token: DaffCompositeProductItemFactory }, { token: i1.DaffProductImageFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
94
95
|
/** @nocollapse */ DaffCompositeProductFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCompositeProductFactory, providedIn: 'root' });
|
95
96
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCompositeProductFactory, decorators: [{
|
96
97
|
type: Injectable,
|
97
98
|
args: [{
|
98
99
|
providedIn: 'root',
|
99
100
|
}]
|
100
|
-
}], ctorParameters: function () { return [{ type: DaffCompositeProductItemFactory }]; } });
|
101
|
+
}], ctorParameters: function () { return [{ type: DaffCompositeProductItemFactory }, { type: i1.DaffProductImageFactory }]; } });
|
101
102
|
|
102
103
|
/**
|
103
104
|
* Generated bundle index. Do not edit.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"daffodil-product-composite-testing.mjs","sources":["../../../libs/product-composite/testing/src/factories/composite-product-item-option.factory.ts","../../../libs/product-composite/testing/src/factories/composite-product-item.factory.ts","../../../libs/product-composite/testing/src/factories/composite-product.factory.ts","../../../libs/product-composite/testing/src/daffodil-product-composite-testing.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { faker } from '@faker-js/faker/locale/en_US';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport {
|
1
|
+
{"version":3,"file":"daffodil-product-composite-testing.mjs","sources":["../../../libs/product-composite/testing/src/factories/composite-product-item-option.factory.ts","../../../libs/product-composite/testing/src/factories/composite-product-item.factory.ts","../../../libs/product-composite/testing/src/factories/composite-product.factory.ts","../../../libs/product-composite/testing/src/daffodil-product-composite-testing.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { faker } from '@faker-js/faker/locale/en_US';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport {\n DaffProductImageFactory,\n MockProduct,\n} from '@daffodil/product/testing';\nimport { DaffCompositeProductItemOption } from '@daffodil/product-composite';\n\n/**\n * Mocked DaffCompositeProductItemOption object.\n */\nexport class MockCompositeProductItemOption extends MockProduct implements DaffCompositeProductItemOption {\n quantity = faker.datatype.number({ min: 1, max: 9 });\n is_default = faker.datatype.boolean();\n}\n\n/**\n * Factory for creating DaffCompositeProductItemOptions.\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffCompositeProductItemOptionFactory extends DaffModelFactory<DaffCompositeProductItemOption>{\n constructor(\n imageFactory: DaffProductImageFactory,\n ) {\n super(MockCompositeProductItemOption, imageFactory);\n }\n}\n","import { Injectable } from '@angular/core';\nimport { faker } from '@faker-js/faker/locale/en_US';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport {\n DaffCompositeProductItem,\n DaffCompositeProductItemInputEnum,\n} from '@daffodil/product-composite';\n\nimport { DaffCompositeProductItemOptionFactory } from './composite-product-item-option.factory';\n\n/**\n * Mocked DaffCompositeProductItem object.\n */\nexport class MockCompositeProductItem implements DaffCompositeProductItem {\n id = faker.datatype.uuid();\n url = `/${faker.internet.domainWord()}.html`;\n required = faker.datatype.boolean();\n title = faker.commerce.productName();\n input_type = DaffCompositeProductItemInputEnum.select;\n options = [\n this.optionFactory.create({\n is_default: true,\n }),\n this.optionFactory.create({\n is_default: false,\n }),\n ];\n\n constructor(\n protected optionFactory: DaffCompositeProductItemOptionFactory,\n ) {}\n}\n\n/**\n * Factory for creating DaffCompositeProductItems.\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffCompositeProductItemFactory extends DaffModelFactory<DaffCompositeProductItem>{\n constructor(\n optionFactory: DaffCompositeProductItemOptionFactory,\n ) {\n super(MockCompositeProductItem, optionFactory);\n }\n}\n","import { Injectable } from '@angular/core';\nimport { faker } from '@faker-js/faker/locale/en_US';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport { DaffProductTypeEnum } from '@daffodil/product';\nimport {\n DaffProductImageFactory,\n MockProduct,\n} from '@daffodil/product/testing';\nimport { DaffCompositeProduct } from '@daffodil/product-composite';\n\nimport { DaffCompositeProductItemFactory } from './composite-product-item.factory';\n\n/**\n * Mocked DaffCompositeProduct object.\n */\nexport class MockCompositeProduct extends MockProduct implements DaffCompositeProduct {\n type = DaffProductTypeEnum.Composite;\n items = this.itemFactory.createMany(2);\n\n constructor(\n protected itemFactory: DaffCompositeProductItemFactory,\n imageFactory: DaffProductImageFactory,\n ) {\n super(imageFactory);\n }\n}\n\n/**\n * Factory for creating DaffCompositeProducts.\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffCompositeProductFactory extends DaffModelFactory<DaffCompositeProduct>{\n constructor(\n itemFactory: DaffCompositeProductItemFactory,\n imageFactory: DaffProductImageFactory,\n ) {\n super(MockCompositeProduct, itemFactory, imageFactory);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.DaffCompositeProductItemOptionFactory","i1.DaffCompositeProductItemFactory","i2"],"mappings":";;;;;;;;;AAUA;;AAEG;AACG,MAAO,8BAA+B,SAAQ,WAAW,CAAA;AAA/D,IAAA,WAAA,GAAA;;AACE,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;AACrD,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;KACvC;AAAA,CAAA;AAED;;AAEG;AAIG,MAAO,qCAAsC,SAAQ,gBAAgD,CAAA;AACzG,IAAA,WAAA,CACE,YAAqC,EAAA;AAErC,QAAA,KAAK,CAAC,8BAA8B,EAAE,YAAY,CAAC,CAAC;KACrD;;qJALU,qCAAqC,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,uBAAA,EAAA,CAAA,EA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AAA,UAAA,EAAA,CAAA,CAAA;AAA3B,mBAAA,2BAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,2BAA2B,cAF1B,MAAM,EAAA,CAAA,CAAA;2FAEP,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAHvC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA,CAAA;;;ACjCD;;AAEG;;;;"}
|
package/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"@daffodil/product-composite","nx":{"targets":{"build":{"outputs":["{workspaceRoot}/dist/product-composite"]}}},"version":"0.
|
1
|
+
{"name":"@daffodil/product-composite","nx":{"targets":{"build":{"outputs":["{workspaceRoot}/dist/product-composite"]}}},"version":"0.66.1","description":"Interfaces built for daffodil/state","repository":{"type":"git","url":"https://github.com/graycoreio/daffodil"},"author":"Graycore LLC","license":"MIT","bugs":{"url":"https://github.com/graycoreio/daffodil/issues"},"publishConfig":{"directory":"../../dist/product-composite"},"homepage":"https://github.com/graycoreio/daffodil","peerDependencies":{"@angular/common":"^15.0.0","@angular/core":"^15.0.0","@daffodil/core":"0.66.1","@daffodil/product":"0.66.1","@ngrx/effects":"^15.0.0","@ngrx/entity":"^15.0.0","@ngrx/store":"^15.0.0","rxjs":"7.8.1"},"optionalDependencies":{"@apollo/client":"^3.0.0","@daffodil/driver":"0.66.1","@daffodil/product":"0.66.1","angular-in-memory-web-api":"^0.15.0","apollo-angular":"^5.0.2","@faker-js/faker":"^7.6.0"},"module":"fesm2015/daffodil-product-composite.mjs","es2020":"fesm2020/daffodil-product-composite.mjs","esm2020":"esm2020/daffodil-product-composite.mjs","fesm2020":"fesm2020/daffodil-product-composite.mjs","fesm2015":"fesm2015/daffodil-product-composite.mjs","typings":"index.d.ts","exports":{"./package.json":{"default":"./package.json"},".":{"types":"./index.d.ts","esm2020":"./esm2020/daffodil-product-composite.mjs","es2020":"./fesm2020/daffodil-product-composite.mjs","es2015":"./fesm2015/daffodil-product-composite.mjs","node":"./fesm2015/daffodil-product-composite.mjs","default":"./fesm2020/daffodil-product-composite.mjs"},"./driver/in-memory":{"types":"./driver/in-memory/index.d.ts","esm2020":"./esm2020/driver/in-memory/daffodil-product-composite-driver-in-memory.mjs","es2020":"./fesm2020/daffodil-product-composite-driver-in-memory.mjs","es2015":"./fesm2015/daffodil-product-composite-driver-in-memory.mjs","node":"./fesm2015/daffodil-product-composite-driver-in-memory.mjs","default":"./fesm2020/daffodil-product-composite-driver-in-memory.mjs"},"./driver/magento":{"types":"./driver/magento/index.d.ts","esm2020":"./esm2020/driver/magento/daffodil-product-composite-driver-magento.mjs","es2020":"./fesm2020/daffodil-product-composite-driver-magento.mjs","es2015":"./fesm2015/daffodil-product-composite-driver-magento.mjs","node":"./fesm2015/daffodil-product-composite-driver-magento.mjs","default":"./fesm2020/daffodil-product-composite-driver-magento.mjs"},"./driver/magento/testing":{"types":"./driver/magento/testing/index.d.ts","esm2020":"./esm2020/driver/magento/testing/daffodil-product-composite-driver-magento-testing.mjs","es2020":"./fesm2020/daffodil-product-composite-driver-magento-testing.mjs","es2015":"./fesm2015/daffodil-product-composite-driver-magento-testing.mjs","node":"./fesm2015/daffodil-product-composite-driver-magento-testing.mjs","default":"./fesm2020/daffodil-product-composite-driver-magento-testing.mjs"},"./driver/testing":{"types":"./driver/testing/index.d.ts","esm2020":"./esm2020/driver/testing/daffodil-product-composite-driver-testing.mjs","es2020":"./fesm2020/daffodil-product-composite-driver-testing.mjs","es2015":"./fesm2015/daffodil-product-composite-driver-testing.mjs","node":"./fesm2015/daffodil-product-composite-driver-testing.mjs","default":"./fesm2020/daffodil-product-composite-driver-testing.mjs"},"./routing":{"types":"./routing/index.d.ts","esm2020":"./esm2020/routing/daffodil-product-composite-routing.mjs","es2020":"./fesm2020/daffodil-product-composite-routing.mjs","es2015":"./fesm2015/daffodil-product-composite-routing.mjs","node":"./fesm2015/daffodil-product-composite-routing.mjs","default":"./fesm2020/daffodil-product-composite-routing.mjs"},"./state":{"types":"./state/index.d.ts","esm2020":"./esm2020/state/daffodil-product-composite-state.mjs","es2020":"./fesm2020/daffodil-product-composite-state.mjs","es2015":"./fesm2015/daffodil-product-composite-state.mjs","node":"./fesm2015/daffodil-product-composite-state.mjs","default":"./fesm2020/daffodil-product-composite-state.mjs"},"./state/testing":{"types":"./state/testing/index.d.ts","esm2020":"./esm2020/state/testing/daffodil-product-composite-state-testing.mjs","es2020":"./fesm2020/daffodil-product-composite-state-testing.mjs","es2015":"./fesm2015/daffodil-product-composite-state-testing.mjs","node":"./fesm2015/daffodil-product-composite-state-testing.mjs","default":"./fesm2020/daffodil-product-composite-state-testing.mjs"},"./testing":{"types":"./testing/index.d.ts","esm2020":"./esm2020/testing/daffodil-product-composite-testing.mjs","es2020":"./fesm2020/daffodil-product-composite-testing.mjs","es2015":"./fesm2015/daffodil-product-composite-testing.mjs","node":"./fesm2015/daffodil-product-composite-testing.mjs","default":"./fesm2020/daffodil-product-composite-testing.mjs"}},"sideEffects":false,"dependencies":{"tslib":"^2.3.0"}}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { DaffModelFactory } from '@daffodil/core/testing';
|
2
|
-
import { MockProduct } from '@daffodil/product/testing';
|
2
|
+
import { DaffProductImageFactory, MockProduct } from '@daffodil/product/testing';
|
3
3
|
import { DaffCompositeProductItemOption } from '@daffodil/product-composite';
|
4
4
|
import * as i0 from "@angular/core";
|
5
5
|
/**
|
@@ -13,7 +13,7 @@ export declare class MockCompositeProductItemOption extends MockProduct implemen
|
|
13
13
|
* Factory for creating DaffCompositeProductItemOptions.
|
14
14
|
*/
|
15
15
|
export declare class DaffCompositeProductItemOptionFactory extends DaffModelFactory<DaffCompositeProductItemOption> {
|
16
|
-
constructor();
|
16
|
+
constructor(imageFactory: DaffProductImageFactory);
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffCompositeProductItemOptionFactory, never>;
|
18
18
|
static ɵprov: i0.ɵɵInjectableDeclaration<DaffCompositeProductItemOptionFactory>;
|
19
19
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { DaffModelFactory } from '@daffodil/core/testing';
|
2
2
|
import { DaffProductTypeEnum } from '@daffodil/product';
|
3
|
-
import { MockProduct } from '@daffodil/product/testing';
|
3
|
+
import { DaffProductImageFactory, MockProduct } from '@daffodil/product/testing';
|
4
4
|
import { DaffCompositeProduct } from '@daffodil/product-composite';
|
5
5
|
import { DaffCompositeProductItemFactory } from './composite-product-item.factory';
|
6
6
|
import * as i0 from "@angular/core";
|
@@ -11,13 +11,13 @@ export declare class MockCompositeProduct extends MockProduct implements DaffCom
|
|
11
11
|
protected itemFactory: DaffCompositeProductItemFactory;
|
12
12
|
type: DaffProductTypeEnum;
|
13
13
|
items: import("@daffodil/product-composite").DaffCompositeProductItem[];
|
14
|
-
constructor(itemFactory: DaffCompositeProductItemFactory);
|
14
|
+
constructor(itemFactory: DaffCompositeProductItemFactory, imageFactory: DaffProductImageFactory);
|
15
15
|
}
|
16
16
|
/**
|
17
17
|
* Factory for creating DaffCompositeProducts.
|
18
18
|
*/
|
19
19
|
export declare class DaffCompositeProductFactory extends DaffModelFactory<DaffCompositeProduct> {
|
20
|
-
constructor(itemFactory: DaffCompositeProductItemFactory);
|
20
|
+
constructor(itemFactory: DaffCompositeProductItemFactory, imageFactory: DaffProductImageFactory);
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffCompositeProductFactory, never>;
|
22
22
|
static ɵprov: i0.ɵɵInjectableDeclaration<DaffCompositeProductFactory>;
|
23
23
|
}
|