@colijnit/product 255.1.1 → 255.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/components/product-addtocart/product-addtocart.component.d.ts +2 -0
- package/app/components/product-external-source/product-external-source.component.d.ts +5 -6
- package/app/components/product-page/product-page.component.d.ts +2 -0
- package/app/components/product-related/product-related.component.d.ts +2 -0
- package/app/ione-product.component.d.ts +2 -2
- package/app/service/product-connector-adapter.service.d.ts +3 -3
- package/app/service/product-connector.service.d.ts +3 -3
- package/app/service/product-event.service.d.ts +2 -2
- package/bundles/colijnit-product.umd.js +48 -20
- package/bundles/colijnit-product.umd.js.map +1 -1
- package/colijnit-product.metadata.json +1 -1
- package/esm2015/app/components/product-addtocart/product-addtocart.component.js +13 -3
- package/esm2015/app/components/product-external-source/product-external-source.component.js +18 -2
- package/esm2015/app/components/product-page/product-page.component.js +3 -2
- package/esm2015/app/components/product-related/product-related.component.js +3 -2
- package/esm2015/app/ione-product.component.js +1 -1
- package/esm2015/app/product-version.js +3 -3
- package/esm2015/app/service/product-connector-adapter.service.js +5 -5
- package/esm2015/app/service/product-connector.service.js +3 -3
- package/esm2015/app/service/product-event.service.js +1 -1
- package/fesm2015/colijnit-product.js +41 -13
- package/fesm2015/colijnit-product.js.map +1 -1
- package/package.json +2 -2
|
@@ -5,6 +5,7 @@ import { ProductConnectorService } from '../../service/product-connector.service
|
|
|
5
5
|
import { ProductEventService } from '../../service/product-event.service';
|
|
6
6
|
import { ArticleFullObject } from '@colijnit/articleapi/build/model/article-full-object';
|
|
7
7
|
import { ProductSettingsService } from '../../service/product-settings.service';
|
|
8
|
+
import { ExternalSource } from '@colijnit/articleapi/build/model/external-source.bo';
|
|
8
9
|
export declare class ProductAddtocartComponent implements OnInit, OnDestroy {
|
|
9
10
|
iconCache: IconCacheService;
|
|
10
11
|
private _ioneControllerService;
|
|
@@ -13,6 +14,7 @@ export declare class ProductAddtocartComponent implements OnInit, OnDestroy {
|
|
|
13
14
|
readonly icon: typeof IconEnum;
|
|
14
15
|
addToCartButton: ElementRef;
|
|
15
16
|
article: ArticleFullObject;
|
|
17
|
+
externalSource: ExternalSource;
|
|
16
18
|
createFrozenArticle: boolean;
|
|
17
19
|
configurable: boolean;
|
|
18
20
|
configuring: boolean;
|
|
@@ -4,20 +4,19 @@ import { ExternalSource } from '@colijnit/articleapi/build/model/external-source
|
|
|
4
4
|
import { ProductConnectorService } from '../../service/product-connector.service';
|
|
5
5
|
import { ArticleListObject } from '@colijnit/articleapi/build/model/article-list-object';
|
|
6
6
|
import { ProductEventService } from '../../service/product-event.service';
|
|
7
|
-
import {
|
|
7
|
+
import { CatalogDefinition } from '@colijnit/articleapi/build/model/catalog-definition.bo';
|
|
8
|
+
import { ExternalSourceArticleAddInterface } from '@colijnit/articleapi/build/interface/external-source-article-add.interface';
|
|
8
9
|
export declare class ProductExternalSourceComponent implements OnInit, OnDestroy {
|
|
9
10
|
private _sanitizer;
|
|
10
11
|
private _productConnectorService;
|
|
11
12
|
private _appEventService;
|
|
12
13
|
sku: string;
|
|
14
|
+
catalogDefinition: CatalogDefinition;
|
|
13
15
|
set externalSource(value: ExternalSource);
|
|
14
16
|
get externalSource(): ExternalSource;
|
|
15
17
|
options: {};
|
|
16
|
-
addToCart: EventEmitter<
|
|
17
|
-
|
|
18
|
-
quantity: number;
|
|
19
|
-
}>;
|
|
20
|
-
addToQuote: EventEmitter<string>;
|
|
18
|
+
addToCart: EventEmitter<ExternalSourceArticleAddInterface>;
|
|
19
|
+
addToQuote: EventEmitter<ExternalSourceArticleAddInterface>;
|
|
21
20
|
alternativeClick: EventEmitter<ArticleListObject>;
|
|
22
21
|
showClass(): boolean;
|
|
23
22
|
showProduct: boolean;
|
|
@@ -7,6 +7,7 @@ import { IconEnum } from '../../enum/icon.enum';
|
|
|
7
7
|
import { IconCacheService } from '../../service/icon-cache.service';
|
|
8
8
|
import { ProductSettingsService } from '../../service/product-settings.service';
|
|
9
9
|
import { ProductEventService } from '../../service/product-event.service';
|
|
10
|
+
import { ExternalSource } from '@colijnit/articleapi/build/model/external-source.bo';
|
|
10
11
|
export declare class ProductPageComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
11
12
|
private _ione;
|
|
12
13
|
private _renderer;
|
|
@@ -21,6 +22,7 @@ export declare class ProductPageComponent implements OnInit, OnDestroy, AfterVie
|
|
|
21
22
|
set sku(value: string);
|
|
22
23
|
get sku(): string;
|
|
23
24
|
set settings(value: any);
|
|
25
|
+
externalSource: ExternalSource;
|
|
24
26
|
createFrozenArticle: boolean;
|
|
25
27
|
isReturn: boolean;
|
|
26
28
|
openStockEvent: EventEmitter<void>;
|
|
@@ -3,6 +3,7 @@ import { ProductConnectorService } from '../../service/product-connector.service
|
|
|
3
3
|
import { ProductEventService } from '../../service/product-event.service';
|
|
4
4
|
import { ProductConnectorAdapterService } from "../../service/product-connector-adapter.service";
|
|
5
5
|
import { ProductSettingsService } from "../../service/product-settings.service";
|
|
6
|
+
import { ExternalSource } from '@colijnit/articleapi/build/model/external-source.bo';
|
|
6
7
|
export declare class ProductRelatedComponent {
|
|
7
8
|
private _iOne;
|
|
8
9
|
private _appEventService;
|
|
@@ -10,6 +11,7 @@ export declare class ProductRelatedComponent {
|
|
|
10
11
|
private _settingsService;
|
|
11
12
|
refType: number;
|
|
12
13
|
label: string;
|
|
14
|
+
externalSource: ExternalSource;
|
|
13
15
|
isSmallModus: boolean;
|
|
14
16
|
createFrozenArticle: boolean;
|
|
15
17
|
set articles(value: ArticleListObject[]);
|
|
@@ -7,7 +7,7 @@ import { ArticleListObject } from '@colijnit/articleapi/build/model/article-list
|
|
|
7
7
|
import { ProductSettingsService } from './service/product-settings.service';
|
|
8
8
|
import { Selection } from '@colijnit/articleapi/build/model/selection';
|
|
9
9
|
import { ArticleQuickSel } from '@colijnit/articleapi/build/model/article-quick-sel';
|
|
10
|
-
import {
|
|
10
|
+
import { ArticleListObjectExtended } from '@colijnit/articleapi/build/model/article-list-object-extended.bo';
|
|
11
11
|
export declare class IoneProductComponent implements OnInit, OnChanges, OnDestroy {
|
|
12
12
|
private _dictionary;
|
|
13
13
|
private _jsonUtils;
|
|
@@ -21,7 +21,7 @@ export declare class IoneProductComponent implements OnInit, OnChanges, OnDestro
|
|
|
21
21
|
get settings(): any;
|
|
22
22
|
handleAddArticleInternally: boolean;
|
|
23
23
|
onAddToCart: EventEmitter<{
|
|
24
|
-
article: string |
|
|
24
|
+
article: string | ArticleListObjectExtended;
|
|
25
25
|
quantity: number;
|
|
26
26
|
}>;
|
|
27
27
|
forceRenderImage: EventEmitter<void>;
|
|
@@ -8,7 +8,7 @@ import { Options } from '@colijnit/ioneconnector/build/model/options';
|
|
|
8
8
|
import { DeliveryPrognosis } from '@colijnit/articleapi/build/model/delivery-prognosis';
|
|
9
9
|
import { DocumentContent } from '@colijnit/articleapi/build/model/document-content';
|
|
10
10
|
import { Transaction } from '@colijnit/transactionapi/build/transaction';
|
|
11
|
-
import {
|
|
11
|
+
import { ArticleListObjectExtended } from '@colijnit/articleapi/build/model/article-list-object-extended.bo';
|
|
12
12
|
export declare class ProductConnectorAdapterService implements OnDestroy {
|
|
13
13
|
readonly showLoader: Subject<boolean>;
|
|
14
14
|
articleConnector?: Articles;
|
|
@@ -19,13 +19,13 @@ export declare class ProductConnectorAdapterService implements OnDestroy {
|
|
|
19
19
|
initConnector(options: Options): Promise<void>;
|
|
20
20
|
setInstance(instanceId: string): void;
|
|
21
21
|
getProductBundleSettings(url: string, upId: number): Promise<string>;
|
|
22
|
-
convertArticleFullObjectToArticleExtended(article: ArticleFullObject):
|
|
22
|
+
convertArticleFullObjectToArticleExtended(article: ArticleFullObject): ArticleListObjectExtended;
|
|
23
23
|
getDeliveryPrognosis(goodId: number, branchNr?: string): Promise<any>;
|
|
24
24
|
getSelectorDeliveryDate(): Promise<DeliveryPrognosis>;
|
|
25
25
|
getArtStockStatus(goodId: number): Promise<number>;
|
|
26
26
|
getDeliveryDate2(goodId: number): Promise<DeliveryPrognosis>;
|
|
27
27
|
getJsonConfiguredArticles(configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
|
|
28
|
-
getJsonArticleFlatTree(goodId: number, goodType: string, quantity: number, showLoader?: boolean, instanceId?: any, configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
|
|
28
|
+
getJsonArticleFlatTree(goodId: number, goodType: string, quantity: number, externalSource?: boolean, showLoader?: boolean, instanceId?: any, configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
|
|
29
29
|
getGoodIdFromArticleNr(sku: string): Promise<number>;
|
|
30
30
|
getArticleFullObject(goodId: number): Promise<ArticleFullObject>;
|
|
31
31
|
getSuperArticle(id: string, branch?: string): Promise<SuperArticle>;
|
|
@@ -7,7 +7,7 @@ import { ProductSettingsService } from './product-settings.service';
|
|
|
7
7
|
import { ConfiguratorStatisticsEnvironment } from '@colijnit/articleapi/build/model/configurator-statistics-environment';
|
|
8
8
|
import { DeliveryPrognosis } from '@colijnit/articleapi/build/model/delivery-prognosis';
|
|
9
9
|
import { DocumentContent } from '@colijnit/articleapi/build/model/document-content';
|
|
10
|
-
import {
|
|
10
|
+
import { ArticleListObjectExtended } from '@colijnit/articleapi/build/model/article-list-object-extended.bo';
|
|
11
11
|
export declare class ProductConnectorService implements OnDestroy {
|
|
12
12
|
private _adapterService;
|
|
13
13
|
private _settingsService;
|
|
@@ -24,7 +24,7 @@ export declare class ProductConnectorService implements OnDestroy {
|
|
|
24
24
|
initConnection(): Promise<void>;
|
|
25
25
|
getProductBundleSettings(url: string, upId: number): Promise<string>;
|
|
26
26
|
setInstance(instanceId: string): void;
|
|
27
|
-
convertArticleFullObjectToArticleExtended(article: ArticleFullObject):
|
|
27
|
+
convertArticleFullObjectToArticleExtended(article: ArticleFullObject): ArticleListObjectExtended;
|
|
28
28
|
getFullArticle(sku: string): Promise<ArticleFullObject>;
|
|
29
29
|
getDocumentContent(docId: number, thumbnail?: boolean): Promise<DocumentContent>;
|
|
30
30
|
getDeliveryPrognosis(goodId: number): Promise<DeliveryPrognosis>;
|
|
@@ -32,7 +32,7 @@ export declare class ProductConnectorService implements OnDestroy {
|
|
|
32
32
|
getArtStockStatus(goodId: number): Promise<number>;
|
|
33
33
|
getDeliveryDate2(goodId: number): Promise<DeliveryPrognosis>;
|
|
34
34
|
getSuperArticle(id: string): Promise<SuperArticle>;
|
|
35
|
-
getJsonArticleFlatTree(goodId: number, goodType: string, quantity: number, showLoader?: boolean, configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
|
|
35
|
+
getJsonArticleFlatTree(goodId: number, goodType: string, quantity: number, externalSource?: boolean, showLoader?: boolean, configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
|
|
36
36
|
addWebSessionTransactionLine(transactionUuid: string, sku: string, quantity: number): Promise<string>;
|
|
37
37
|
onShowLoaderChange(showLoader: boolean): void;
|
|
38
38
|
}
|
|
@@ -2,10 +2,10 @@ import { Subject } from 'rxjs';
|
|
|
2
2
|
import { ArticleListObject } from '@colijnit/articleapi/build/model/article-list-object';
|
|
3
3
|
import { Selection } from '@colijnit/articleapi/build/model/selection';
|
|
4
4
|
import { ArticleQuickSel } from '@colijnit/articleapi/build/model/article-quick-sel';
|
|
5
|
-
import {
|
|
5
|
+
import { ArticleListObjectExtended } from '@colijnit/articleapi/build/model/article-list-object-extended.bo';
|
|
6
6
|
export declare class ProductEventService {
|
|
7
7
|
onAddToCart: Subject<{
|
|
8
|
-
article: string |
|
|
8
|
+
article: string | ArticleListObjectExtended;
|
|
9
9
|
quantity: number;
|
|
10
10
|
}>;
|
|
11
11
|
onAlternativeClick: Subject<ArticleListObject>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('@colijnit/ioneconnector/build/model/options'), require('@colijnit/articleapi/build/model/article-full-object'), require('@colijnit/articleapi/build/model/super-article'), require('@colijnit/articleapi/build/articles'), require('@colijnit/articleapi/build/model/delivery-prognosis'), require('@colijnit/articleapi/build/model/document-content'), require('@colijnit/ioneconnector/build/service/business-object-factory'), require('@colijnit/transactionapi/build/transaction'), require('@colijnit/mainapi'), require('@colijnit/transactionapi/build/model/transaction-info-response.bo'), require('@colijnit/articleapi/build/model/article-extended.bo'), require('@angular/common/http'), require('@colijnit/ioneconnector/build/utils/string-utils'), require('@angular/common'), require('@angular/animations'), require('@angular/platform-browser'), require('@colijnit/corecomponents'), require('@colijnit/mainapi/build/model/co-document'), require('@colijnit/articleapi/build/model/configurator-statistics-environment'), require('@colijnit/corecomponents_v12')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@colijnit/product', ['exports', '@angular/core', 'rxjs', '@colijnit/ioneconnector/build/model/options', '@colijnit/articleapi/build/model/article-full-object', '@colijnit/articleapi/build/model/super-article', '@colijnit/articleapi/build/articles', '@colijnit/articleapi/build/model/delivery-prognosis', '@colijnit/articleapi/build/model/document-content', '@colijnit/ioneconnector/build/service/business-object-factory', '@colijnit/transactionapi/build/transaction', '@colijnit/mainapi', '@colijnit/transactionapi/build/model/transaction-info-response.bo', '@colijnit/articleapi/build/model/article-extended.bo', '@angular/common/http', '@colijnit/ioneconnector/build/utils/string-utils', '@angular/common', '@angular/animations', '@angular/platform-browser', '@colijnit/corecomponents', '@colijnit/mainapi/build/model/co-document', '@colijnit/articleapi/build/model/configurator-statistics-environment', '@colijnit/corecomponents_v12'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.product = {}), global.ng.core, global.rxjs, global.options, global.articleFullObject, global.superArticle, global.articles, global.deliveryPrognosis, global.documentContent, global.businessObjectFactory, global.transaction, global.mainapi, global.transactionInfoResponse_bo, global.
|
|
5
|
-
})(this, (function (exports, i0, rxjs, options, articleFullObject, superArticle, articles, deliveryPrognosis, documentContent, businessObjectFactory, transaction, mainapi, transactionInfoResponse_bo,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('@colijnit/ioneconnector/build/model/options'), require('@colijnit/articleapi/build/model/article-full-object'), require('@colijnit/articleapi/build/model/super-article'), require('@colijnit/articleapi/build/articles'), require('@colijnit/articleapi/build/model/delivery-prognosis'), require('@colijnit/articleapi/build/model/document-content'), require('@colijnit/ioneconnector/build/service/business-object-factory'), require('@colijnit/transactionapi/build/transaction'), require('@colijnit/mainapi'), require('@colijnit/transactionapi/build/model/transaction-info-response.bo'), require('@colijnit/articleapi/build/model/article-list-object-extended.bo'), require('@angular/common/http'), require('@colijnit/ioneconnector/build/utils/string-utils'), require('@angular/common'), require('@angular/animations'), require('@angular/platform-browser'), require('@colijnit/corecomponents'), require('@colijnit/mainapi/build/model/co-document'), require('@colijnit/articleapi/build/model/configurator-statistics-environment'), require('@colijnit/corecomponents_v12')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@colijnit/product', ['exports', '@angular/core', 'rxjs', '@colijnit/ioneconnector/build/model/options', '@colijnit/articleapi/build/model/article-full-object', '@colijnit/articleapi/build/model/super-article', '@colijnit/articleapi/build/articles', '@colijnit/articleapi/build/model/delivery-prognosis', '@colijnit/articleapi/build/model/document-content', '@colijnit/ioneconnector/build/service/business-object-factory', '@colijnit/transactionapi/build/transaction', '@colijnit/mainapi', '@colijnit/transactionapi/build/model/transaction-info-response.bo', '@colijnit/articleapi/build/model/article-list-object-extended.bo', '@angular/common/http', '@colijnit/ioneconnector/build/utils/string-utils', '@angular/common', '@angular/animations', '@angular/platform-browser', '@colijnit/corecomponents', '@colijnit/mainapi/build/model/co-document', '@colijnit/articleapi/build/model/configurator-statistics-environment', '@colijnit/corecomponents_v12'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.product = {}), global.ng.core, global.rxjs, global.options, global.articleFullObject, global.superArticle, global.articles, global.deliveryPrognosis, global.documentContent, global.businessObjectFactory, global.transaction, global.mainapi, global.transactionInfoResponse_bo, global.articleListObjectExtended_bo, global.ng.common.http, global.stringUtils, global.ng.common, global.ng.animations, global.ng.platformBrowser, global.corecomponents, global.coDocument, global.configuratorStatisticsEnvironment, global.corecomponents_v12));
|
|
5
|
+
})(this, (function (exports, i0, rxjs, options, articleFullObject, superArticle, articles, deliveryPrognosis, documentContent, businessObjectFactory, transaction, mainapi, transactionInfoResponse_bo, articleListObjectExtended_bo, i1, stringUtils, common, animations, i1$1, corecomponents, coDocument, configuratorStatisticsEnvironment, corecomponents_v12) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
function Version() {
|
|
32
32
|
this.name = "@colijnit/product";
|
|
33
33
|
this.description = "Product detail page project for iOne";
|
|
34
|
-
this.symVer = "255.1.
|
|
35
|
-
this.publishDate = "
|
|
34
|
+
this.symVer = "255.1.3";
|
|
35
|
+
this.publishDate = "25-9-2024 17:21:06";
|
|
36
36
|
}
|
|
37
37
|
return Version;
|
|
38
38
|
}());
|
|
@@ -651,7 +651,7 @@
|
|
|
651
651
|
};
|
|
652
652
|
ProductConnectorAdapterService.prototype.convertArticleFullObjectToArticleExtended = function (article) {
|
|
653
653
|
if (article) {
|
|
654
|
-
return this._boFactory.makeWithRawBackendData(
|
|
654
|
+
return this._boFactory.makeWithRawBackendData(articleListObjectExtended_bo.ArticleListObjectExtended, article);
|
|
655
655
|
}
|
|
656
656
|
};
|
|
657
657
|
ProductConnectorAdapterService.prototype.getDeliveryPrognosis = function (goodId, branchNr) {
|
|
@@ -746,11 +746,12 @@
|
|
|
746
746
|
});
|
|
747
747
|
});
|
|
748
748
|
};
|
|
749
|
-
ProductConnectorAdapterService.prototype.getJsonArticleFlatTree = function (goodId, goodType, quantity, showLoader, instanceId, configuratorStatistics) {
|
|
749
|
+
ProductConnectorAdapterService.prototype.getJsonArticleFlatTree = function (goodId, goodType, quantity, externalSource, showLoader, instanceId, configuratorStatistics) {
|
|
750
|
+
if (externalSource === void 0) { externalSource = false; }
|
|
750
751
|
if (showLoader === void 0) { showLoader = true; }
|
|
751
752
|
return __awaiter(this, void 0, void 0, function () {
|
|
752
753
|
return __generator(this, function (_a) {
|
|
753
|
-
return [2 /*return*/, this.articleConnector.getJsonArticleFlatTree(goodId, goodType, quantity, showLoader, instanceId, configuratorStatistics)];
|
|
754
|
+
return [2 /*return*/, this.articleConnector.getJsonArticleFlatTree(goodId, goodType, quantity, externalSource, showLoader, instanceId, configuratorStatistics)];
|
|
754
755
|
});
|
|
755
756
|
});
|
|
756
757
|
};
|
|
@@ -1227,9 +1228,10 @@
|
|
|
1227
1228
|
ProductConnectorService.prototype.getSuperArticle = function (id) {
|
|
1228
1229
|
return this._adapterService.getSuperArticle(id);
|
|
1229
1230
|
};
|
|
1230
|
-
ProductConnectorService.prototype.getJsonArticleFlatTree = function (goodId, goodType, quantity, showLoader, configuratorStatistics) {
|
|
1231
|
+
ProductConnectorService.prototype.getJsonArticleFlatTree = function (goodId, goodType, quantity, externalSource, showLoader, configuratorStatistics) {
|
|
1232
|
+
if (externalSource === void 0) { externalSource = false; }
|
|
1231
1233
|
if (showLoader === void 0) { showLoader = true; }
|
|
1232
|
-
return this._adapterService.getJsonArticleFlatTree(goodId, goodType, quantity, showLoader, this._instanceId, configuratorStatistics);
|
|
1234
|
+
return this._adapterService.getJsonArticleFlatTree(goodId, goodType, quantity, externalSource, showLoader, this._instanceId, configuratorStatistics);
|
|
1233
1235
|
};
|
|
1234
1236
|
ProductConnectorService.prototype.addWebSessionTransactionLine = function (transactionUuid, sku, quantity) {
|
|
1235
1237
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -1682,7 +1684,7 @@
|
|
|
1682
1684
|
ProductPageComponent.decorators = [
|
|
1683
1685
|
{ type: i0.Component, args: [{
|
|
1684
1686
|
selector: 'app-product-page',
|
|
1685
|
-
template: "<ng-container *ngIf=\"settingsLoaded\">\r\n <div class=\"page-wrapper\">\r\n <div class=\"page-wrapper-content\">\r\n <div class=\"page-wrapper-left\">\r\n <div class=\"product-image-container\">\r\n <div class=\"product-page-block-selector-type\">\r\n <app-product-selector-type class=\"default-padding\"\r\n [(currentType)]=\"currentView\"\r\n [show2D]=\"configurable\"\r\n [show3D]=\"threeD\"\r\n ></app-product-selector-type>\r\n </div>\r\n <div class=\"product-page-block-image default-padding\" [class.full]=\"fullScreen\">\r\n <app-image-carousel [@toggleVisibilityByState]=\"show2D ? 'show' : 'hide'\" [images]=\"article?.images\" [showRefresh]=\"configurable && threeD\"></app-image-carousel>\r\n <ng-container *ngIf=\"settingsLoaded\">\r\n <threed-configurator #configurator class=\"threed-configurator\"\r\n [class.configurator-full-screen]=\"fullScreen\"\r\n [@toggleVisibilityByState]=\"show3D ? 'show' : 'hide'\"\r\n [@toggleFullScreen]=\"fullScreen ? 'fullscreen' : 'halfscreen'\"\r\n ></threed-configurator>\r\n </ng-container>\r\n <co-icon #fullscreenbutton class=\"fullscreen-button\" *ngIf=\"show3D\"\r\n [@toggleTopLeft]=\"fullScreen ? 'fullscreen' : 'halfscreen'\"\r\n [iconData]=\"iconCache.getIcon(fullScreenIcon)\"\r\n (click)=\"showFullScreen()\"></co-icon>\r\n <co-icon class=\"threed-watermark\" *ngIf=\"show3D && fullScreen\"\r\n [iconData]=\"iconCache.getIcon(icon.Logo)\"></co-icon>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"page-wrapper-right\">\r\n <div class=\"product-page-block-description\">\r\n <app-product-description class=\"default-padding\" [article]=\"article\"></app-product-description>\r\n </div>\r\n <div class=\"product-page-block-additional\">\r\n <div class=\"product-page-block-additional-description\">\r\n <app-product-additional-description class=\"default-padding\" [article]=\"article\"></app-product-additional-description>\r\n </div>\r\n <div class=\"product-page-block-price\" [class.full]=\"configuring\">\r\n <app-product-price class=\"s-padding\" *ngIf=\"!configuring\"\r\n [pricing]=\"article?.pricing\"\r\n [configurable]=\"configurable\"\r\n ></app-product-price>\r\n <ng-container *ngIf=\"settingsLoaded\">\r\n <threed-selections #selections class=\"threed-selections\" [class.show-selections]=\"configuring\" [@toggleFullScreenRight]=\"fullScreen ? 'fullscreen' : 'halfscreen'\"\r\n [class.default-padding]=\"!fullScreen\"\r\n [class.show-full-screen]=\"fullScreen\"\r\n [class.mini-scrollbar]=\"fullScreen\"\r\n [sku]=\"sku\"\r\n [settings]=\"settings\"\r\n (onUserActionFromThreeD)=\"configuring = true\"\r\n (instanceSet)=\"setInstance($event)\"\r\n (onImageReceived)=\"appEventService.onImageReceived.next($event)\"\r\n (onRenderStarted)=\"appEventService.onRenderStarted.next()\"\r\n (onDraftRenderImageReceived)=\"appEventService.onDraftRenderImageReceived.next($event)\"\r\n (onArticleReceived)=\"appEventService.onArticleReceived.next($event.detail)\"\r\n (onSelectionsReceived)=\"appEventService.onSelectionsReceived.next($event.detail)\"\r\n (onArticleInfoReceived)=\"appEventService.onArticleInfoReceived.next($event.detail)\"\r\n ></threed-selections>\r\n </ng-container>\r\n </div>\r\n <div class=\"product-page-block-addtocart no-padding product-action-buttons\" *ngIf=\"!configuring\" [@toggleTopRight]=\"fullScreen ? 'fullscreen' : 'halfscreen'\">\r\n <app-product-addtocart\r\n [configurable]=\"configurable\"\r\n [createFrozenArticle]=\"createFrozenArticle\"\r\n [configuring]=\"configuring\"\r\n [article]=\"article\"\r\n [isReturn]=\"isReturn\"\r\n (startConfiguration)=\"handleStartConfiguration()\"\r\n ></app-product-addtocart>\r\n </div>\r\n <div class=\"addtocart-reserved product-action-buttons\" *ngIf=\"configuring\" [class.full-screen]=\"fullScreen\">\r\n <app-product-addtocart class=\"default-padding\"\r\n [configurable]=\"false\"\r\n [fullscreen]=\"fullScreen\"\r\n [configuring]=\"configuring\"\r\n [article]=\"article\"\r\n [isReturn]=\"isReturn\"\r\n (startConfiguration)=\"handleStartConfiguration()\"\r\n ></app-product-addtocart>\r\n </div>\r\n <div class=\"product-page-block-variants\">\r\n <app-product-related class=\"no-padding\" *ngIf=\"article?.relatedArticles && article?.relatedArticles.length > 0\"\r\n [articles]=\"article?.relatedArticles\" [refType]=\"64\" [label]=\"'VARIANTS' | localize\"></app-product-related>\r\n </div>\r\n <div class=\"product-page-block-stock\">\r\n <app-product-stock class=\"no-padding\" [goodId]=\"article?.goodId\" (openStockEvent)=\"openStock()\"></app-product-stock>\r\n </div>\r\n <div class=\"product-page-block-delivery\">\r\n <app-product-delivery class=\"no-padding\" [stockAndDelivery]=\"stockAndDelivery\"></app-product-delivery>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"page-wrapper-content\">\r\n <div class=\"page-wrapper-left\">\r\n <app-product-info-tabs class=\"no-padding\" [article]=\"article\"></app-product-info-tabs>\r\n </div>\r\n <div class=\"page-wrapper-right\">\r\n <div class=\"product-page-block-related s-padding\">\r\n <app-product-related\r\n *ngIf=\"article?.relatedArticles && article?.relatedArticles.length > 0\"\r\n [articles]=\"article?.relatedArticles\"\r\n [refType]=\"1\"\r\n [label]=\"'RELATED_PRODUCTS' | localize\">\r\n </app-product-related>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"page-wrapper-content no-top-margin\">\r\n <div class=\"page-wrapper-full\">\r\n <div class=\"product-page-block-alternatives s-padding\">\r\n <app-product-related\r\n *ngIf=\"article?.relatedArticles && article?.relatedArticles.length > 0\"\r\n [articles]=\"article?.relatedArticles\"\r\n [refType]=\"4\"\r\n [isSmallModus]=\"false\"\r\n [label]=\"'ALTERNATIVE_PRODUCTS' | localize\">\r\n </app-product-related>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</ng-container>\r\n",
|
|
1687
|
+
template: "<ng-container *ngIf=\"settingsLoaded\">\r\n <div class=\"page-wrapper\">\r\n <div class=\"page-wrapper-content\">\r\n <div class=\"page-wrapper-left\">\r\n <div class=\"product-image-container\">\r\n <div class=\"product-page-block-selector-type\">\r\n <app-product-selector-type class=\"default-padding\"\r\n [(currentType)]=\"currentView\"\r\n [show2D]=\"configurable\"\r\n [show3D]=\"threeD\"\r\n ></app-product-selector-type>\r\n </div>\r\n <div class=\"product-page-block-image default-padding\" [class.full]=\"fullScreen\">\r\n <app-image-carousel [@toggleVisibilityByState]=\"show2D ? 'show' : 'hide'\" [images]=\"article?.images\" [showRefresh]=\"configurable && threeD\"></app-image-carousel>\r\n <ng-container *ngIf=\"settingsLoaded\">\r\n <threed-configurator #configurator class=\"threed-configurator\"\r\n [class.configurator-full-screen]=\"fullScreen\"\r\n [@toggleVisibilityByState]=\"show3D ? 'show' : 'hide'\"\r\n [@toggleFullScreen]=\"fullScreen ? 'fullscreen' : 'halfscreen'\"\r\n ></threed-configurator>\r\n </ng-container>\r\n <co-icon #fullscreenbutton class=\"fullscreen-button\" *ngIf=\"show3D\"\r\n [@toggleTopLeft]=\"fullScreen ? 'fullscreen' : 'halfscreen'\"\r\n [iconData]=\"iconCache.getIcon(fullScreenIcon)\"\r\n (click)=\"showFullScreen()\"></co-icon>\r\n <co-icon class=\"threed-watermark\" *ngIf=\"show3D && fullScreen\"\r\n [iconData]=\"iconCache.getIcon(icon.Logo)\"></co-icon>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"page-wrapper-right\">\r\n <div class=\"product-page-block-description\">\r\n <app-product-description class=\"default-padding\" [article]=\"article\"></app-product-description>\r\n </div>\r\n <div class=\"product-page-block-additional\">\r\n <div class=\"product-page-block-additional-description\">\r\n <app-product-additional-description class=\"default-padding\" [article]=\"article\"></app-product-additional-description>\r\n </div>\r\n <div class=\"product-page-block-price\" [class.full]=\"configuring\">\r\n <app-product-price class=\"s-padding\" *ngIf=\"!configuring\"\r\n [pricing]=\"article?.pricing\"\r\n [configurable]=\"configurable\"\r\n ></app-product-price>\r\n <ng-container *ngIf=\"settingsLoaded\">\r\n <threed-selections #selections class=\"threed-selections\" [class.show-selections]=\"configuring\" [@toggleFullScreenRight]=\"fullScreen ? 'fullscreen' : 'halfscreen'\"\r\n [class.default-padding]=\"!fullScreen\"\r\n [class.show-full-screen]=\"fullScreen\"\r\n [class.mini-scrollbar]=\"fullScreen\"\r\n [sku]=\"sku\"\r\n [settings]=\"settings\"\r\n (onUserActionFromThreeD)=\"configuring = true\"\r\n (instanceSet)=\"setInstance($event)\"\r\n (onImageReceived)=\"appEventService.onImageReceived.next($event)\"\r\n (onRenderStarted)=\"appEventService.onRenderStarted.next()\"\r\n (onDraftRenderImageReceived)=\"appEventService.onDraftRenderImageReceived.next($event)\"\r\n (onArticleReceived)=\"appEventService.onArticleReceived.next($event.detail)\"\r\n (onSelectionsReceived)=\"appEventService.onSelectionsReceived.next($event.detail)\"\r\n (onArticleInfoReceived)=\"appEventService.onArticleInfoReceived.next($event.detail)\"\r\n ></threed-selections>\r\n </ng-container>\r\n </div>\r\n <div class=\"product-page-block-addtocart no-padding product-action-buttons\" *ngIf=\"!configuring\" [@toggleTopRight]=\"fullScreen ? 'fullscreen' : 'halfscreen'\">\r\n <app-product-addtocart\r\n [configurable]=\"configurable\"\r\n [createFrozenArticle]=\"createFrozenArticle\"\r\n [configuring]=\"configuring\"\r\n [article]=\"article\"\r\n [externalSource]=\"externalSource\"\r\n [isReturn]=\"isReturn\"\r\n (startConfiguration)=\"handleStartConfiguration()\"\r\n ></app-product-addtocart>\r\n </div>\r\n <div class=\"addtocart-reserved product-action-buttons\" *ngIf=\"configuring\" [class.full-screen]=\"fullScreen\">\r\n <app-product-addtocart class=\"default-padding\"\r\n [configurable]=\"false\"\r\n [fullscreen]=\"fullScreen\"\r\n [configuring]=\"configuring\"\r\n [article]=\"article\"\r\n [externalSource]=\"externalSource\"\r\n [isReturn]=\"isReturn\"\r\n (startConfiguration)=\"handleStartConfiguration()\"\r\n ></app-product-addtocart>\r\n </div>\r\n <div class=\"product-page-block-variants\">\r\n <app-product-related class=\"no-padding\" *ngIf=\"article?.relatedArticles && article?.relatedArticles.length > 0\"\r\n [externalSource]=\"externalSource\"\r\n [articles]=\"article?.relatedArticles\" [refType]=\"64\" [label]=\"'VARIANTS' | localize\"></app-product-related>\r\n </div>\r\n <div class=\"product-page-block-stock\">\r\n <app-product-stock class=\"no-padding\" [goodId]=\"article?.goodId\" (openStockEvent)=\"openStock()\"></app-product-stock>\r\n </div>\r\n <div class=\"product-page-block-delivery\">\r\n <app-product-delivery class=\"no-padding\" [stockAndDelivery]=\"stockAndDelivery\"></app-product-delivery>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"page-wrapper-content\">\r\n <div class=\"page-wrapper-left\">\r\n <app-product-info-tabs class=\"no-padding\" [article]=\"article\"></app-product-info-tabs>\r\n </div>\r\n <div class=\"page-wrapper-right\">\r\n <div class=\"product-page-block-related s-padding\">\r\n <app-product-related\r\n *ngIf=\"article?.relatedArticles && article?.relatedArticles.length > 0\"\r\n [externalSource]=\"externalSource\"\r\n [articles]=\"article?.relatedArticles\"\r\n [refType]=\"1\"\r\n [label]=\"'RELATED_PRODUCTS' | localize\">\r\n </app-product-related>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"page-wrapper-content no-top-margin\">\r\n <div class=\"page-wrapper-full\">\r\n <div class=\"product-page-block-alternatives s-padding\">\r\n <app-product-related\r\n *ngIf=\"article?.relatedArticles && article?.relatedArticles.length > 0\"\r\n [externalSource]=\"externalSource\"\r\n [articles]=\"article?.relatedArticles\"\r\n [refType]=\"4\"\r\n [isSmallModus]=\"false\"\r\n [label]=\"'ALTERNATIVE_PRODUCTS' | localize\">\r\n </app-product-related>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</ng-container>\r\n",
|
|
1686
1688
|
animations: [
|
|
1687
1689
|
animations.trigger('toggleFullScreen', [
|
|
1688
1690
|
animations.state('fullscreen', animations.style({ 'position': 'fixed', 'top': '0', 'left': '0', 'width': '100%', 'height': '100%' })),
|
|
@@ -1732,6 +1734,7 @@
|
|
|
1732
1734
|
fullscreenbutton: [{ type: i0.ViewChild, args: ['fullscreenbutton', { read: i0.ElementRef },] }],
|
|
1733
1735
|
sku: [{ type: i0.Input }],
|
|
1734
1736
|
settings: [{ type: i0.Input }],
|
|
1737
|
+
externalSource: [{ type: i0.Input }],
|
|
1735
1738
|
createFrozenArticle: [{ type: i0.Input }],
|
|
1736
1739
|
isReturn: [{ type: i0.Input }],
|
|
1737
1740
|
openStockEvent: [{ type: i0.Output }]
|
|
@@ -2288,22 +2291,30 @@
|
|
|
2288
2291
|
};
|
|
2289
2292
|
ProductAddtocartComponent.prototype.handleAddToCartClick = function (quantity) {
|
|
2290
2293
|
return __awaiter(this, void 0, void 0, function () {
|
|
2291
|
-
var _a, _b, _c, article;
|
|
2294
|
+
var _a, _b, _c, article, article;
|
|
2292
2295
|
return __generator(this, function (_d) {
|
|
2293
2296
|
switch (_d.label) {
|
|
2294
2297
|
case 0:
|
|
2295
|
-
if (!this.createFrozenArticle) return [3 /*break*/,
|
|
2298
|
+
if (!this.createFrozenArticle) return [3 /*break*/, 4];
|
|
2299
|
+
if (!(this.article.goodType === 'B')) return [3 /*break*/, 2];
|
|
2296
2300
|
_b = (_a = this._appEventService.onAddToCart).next;
|
|
2297
2301
|
_c = {};
|
|
2298
2302
|
return [4 /*yield*/, this._getJSONFromArticleObject({ article: this.article, quantity: quantity })];
|
|
2299
2303
|
case 1:
|
|
2300
|
-
_b.apply(_a, [(_c.article = _d.sent(),
|
|
2304
|
+
_b.apply(_a, [(_c.article = _d.sent(),
|
|
2305
|
+
_c.quantity = quantity,
|
|
2306
|
+
_c)]);
|
|
2301
2307
|
return [3 /*break*/, 3];
|
|
2302
2308
|
case 2:
|
|
2303
2309
|
article = this._ioneControllerService.convertArticleFullObjectToArticleExtended(this.article);
|
|
2304
2310
|
this._appEventService.onAddToCart.next({ article: article, quantity: quantity });
|
|
2305
2311
|
_d.label = 3;
|
|
2306
|
-
case 3: return [
|
|
2312
|
+
case 3: return [3 /*break*/, 5];
|
|
2313
|
+
case 4:
|
|
2314
|
+
article = this._ioneControllerService.convertArticleFullObjectToArticleExtended(this.article);
|
|
2315
|
+
this._appEventService.onAddToCart.next({ article: article, quantity: quantity });
|
|
2316
|
+
_d.label = 5;
|
|
2317
|
+
case 5: return [2 /*return*/];
|
|
2307
2318
|
}
|
|
2308
2319
|
});
|
|
2309
2320
|
});
|
|
@@ -2336,7 +2347,7 @@
|
|
|
2336
2347
|
configuratorStatistics.sessionId = this._settingsService.settings.session ? this._settingsService.settings.session.sessionId : 'unknown';
|
|
2337
2348
|
configuratorStatistics.webHost = window.location.host;
|
|
2338
2349
|
configuratorStatistics.bundleHost = window.location.host;
|
|
2339
|
-
return [4 /*yield*/, this._ioneControllerService.getJsonArticleFlatTree(article.article.goodId, article.article.goodType, article.quantity, true, configuratorStatistics)];
|
|
2350
|
+
return [4 /*yield*/, this._ioneControllerService.getJsonArticleFlatTree(article.article.goodId, article.article.goodType, article.quantity, !!this.externalSource, true, configuratorStatistics)];
|
|
2340
2351
|
case 1: return [2 /*return*/, _a.sent()];
|
|
2341
2352
|
}
|
|
2342
2353
|
});
|
|
@@ -2360,6 +2371,7 @@
|
|
|
2360
2371
|
ProductAddtocartComponent.propDecorators = {
|
|
2361
2372
|
addToCartButton: [{ type: i0.ViewChild, args: ['addtocartbutton', { read: i0.ElementRef },] }],
|
|
2362
2373
|
article: [{ type: i0.Input }],
|
|
2374
|
+
externalSource: [{ type: i0.Input }],
|
|
2363
2375
|
createFrozenArticle: [{ type: i0.Input }],
|
|
2364
2376
|
configurable: [{ type: i0.Input }],
|
|
2365
2377
|
configuring: [{ type: i0.Input }],
|
|
@@ -2475,7 +2487,7 @@
|
|
|
2475
2487
|
configuratorStatistics.sessionId = this._settingsService.settings.session ? this._settingsService.settings.session.sessionId : 'unknown';
|
|
2476
2488
|
configuratorStatistics.webHost = window.location.host;
|
|
2477
2489
|
configuratorStatistics.bundleHost = window.location.host;
|
|
2478
|
-
return [4 /*yield*/, this._iOne.getJsonArticleFlatTree(article.article.goodId, article.article.goodType, article.quantity, true, configuratorStatistics)];
|
|
2490
|
+
return [4 /*yield*/, this._iOne.getJsonArticleFlatTree(article.article.goodId, article.article.goodType, article.quantity, !!this.externalSource, true, configuratorStatistics)];
|
|
2479
2491
|
case 1: return [2 /*return*/, _a.sent()];
|
|
2480
2492
|
}
|
|
2481
2493
|
});
|
|
@@ -2511,6 +2523,7 @@
|
|
|
2511
2523
|
ProductRelatedComponent.propDecorators = {
|
|
2512
2524
|
refType: [{ type: i0.Input }],
|
|
2513
2525
|
label: [{ type: i0.Input }],
|
|
2526
|
+
externalSource: [{ type: i0.Input }],
|
|
2514
2527
|
isSmallModus: [{ type: i0.Input }],
|
|
2515
2528
|
createFrozenArticle: [{ type: i0.Input }],
|
|
2516
2529
|
articles: [{ type: i0.Input }]
|
|
@@ -3236,7 +3249,21 @@
|
|
|
3236
3249
|
};
|
|
3237
3250
|
ProductExternalSourceComponent.prototype.ngOnInit = function () {
|
|
3238
3251
|
var _this = this;
|
|
3239
|
-
this._subs.push(this._appEventService.onAddToCart.subscribe(function (
|
|
3252
|
+
this._subs.push(this._appEventService.onAddToCart.subscribe(function (data) {
|
|
3253
|
+
_this.addToCart.next({
|
|
3254
|
+
article: data.article,
|
|
3255
|
+
quantity: data.quantity,
|
|
3256
|
+
catalogDefinition: _this.catalogDefinition,
|
|
3257
|
+
externalSource: _this._externalSource
|
|
3258
|
+
});
|
|
3259
|
+
}), this._appEventService.onAddToQuote.subscribe(function (json) {
|
|
3260
|
+
_this.addToQuote.next({
|
|
3261
|
+
article: json,
|
|
3262
|
+
quantity: 1,
|
|
3263
|
+
catalogDefinition: _this.catalogDefinition,
|
|
3264
|
+
externalSource: _this._externalSource
|
|
3265
|
+
});
|
|
3266
|
+
}), this._appEventService.onAlternativeClick.subscribe(function (article) { return _this.alternativeClick.next(article); }));
|
|
3240
3267
|
};
|
|
3241
3268
|
ProductExternalSourceComponent.prototype.ngOnDestroy = function () {
|
|
3242
3269
|
this._subs.forEach(function (s) { return s.unsubscribe(); });
|
|
@@ -3287,7 +3314,7 @@
|
|
|
3287
3314
|
ProductExternalSourceComponent.decorators = [
|
|
3288
3315
|
{ type: i0.Component, args: [{
|
|
3289
3316
|
selector: 'co-product-external-source',
|
|
3290
|
-
template: "\n <ng-container *ngIf=\"loaded\">\n <ng-container *ngIf=\"showProduct\">\n <app-product-page\n [sku]=\"sku\"\n [settings]=\"externalSettings\"\n ></app-product-page>\n </ng-container>\n <ng-container *ngIf=\"!showProduct\">\n <iframe width=\"100%\" height=\"100%\" [src]=\"safeUrl\" frameborder=\"0\" allowfullscreen></iframe>\n </ng-container>\n </ng-container>\n ",
|
|
3317
|
+
template: "\n <ng-container *ngIf=\"loaded\">\n <ng-container *ngIf=\"showProduct\">\n <app-product-page\n [sku]=\"sku\"\n [settings]=\"externalSettings\"\n [externalSource]=\"externalSource\"\n ></app-product-page>\n </ng-container>\n <ng-container *ngIf=\"!showProduct\">\n <iframe width=\"100%\" height=\"100%\" [src]=\"safeUrl\" frameborder=\"0\" allowfullscreen></iframe>\n </ng-container>\n </ng-container>\n ",
|
|
3291
3318
|
providers: [
|
|
3292
3319
|
ProductEventService,
|
|
3293
3320
|
ProductSettingsService,
|
|
@@ -3304,6 +3331,7 @@
|
|
|
3304
3331
|
]; };
|
|
3305
3332
|
ProductExternalSourceComponent.propDecorators = {
|
|
3306
3333
|
sku: [{ type: i0.Input }],
|
|
3334
|
+
catalogDefinition: [{ type: i0.Input }],
|
|
3307
3335
|
externalSource: [{ type: i0.Input }],
|
|
3308
3336
|
options: [{ type: i0.Input }],
|
|
3309
3337
|
addToCart: [{ type: i0.Output }],
|