@colijnit/product 12.0.3 → 12.0.5
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 +1 -0
- package/app/components/product-external-source/product-external-source.component.d.ts +5 -1
- package/app/components/product-page/product-page.component.d.ts +1 -0
- package/app/components/product-stock/product-stock.component.d.ts +9 -7
- package/app/ione-product.component.d.ts +6 -1
- package/app/service/product-connector-adapter.service.d.ts +4 -3
- package/app/service/product-connector.service.d.ts +4 -3
- package/app/service/product-event.service.d.ts +5 -1
- package/bundles/colijnit-product.umd.js +113 -102
- 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 +10 -2
- package/esm2015/app/components/product-external-source/product-external-source.component.js +1 -1
- package/esm2015/app/components/product-page/product-page.component.js +4 -2
- package/esm2015/app/components/product-stock/product-stock.component.js +30 -10
- package/esm2015/app/ione-product.component.js +11 -36
- package/esm2015/app/ione-product.module.js +7 -3
- package/esm2015/app/product-version.js +3 -3
- package/esm2015/app/service/product-connector-adapter.service.js +26 -8
- package/esm2015/app/service/product-connector.service.js +9 -8
- package/esm2015/app/service/product-event.service.js +1 -1
- package/esm2015/assets/dictionary/text.properties.js +3 -1
- package/fesm2015/colijnit-product.js +92 -63
- package/fesm2015/colijnit-product.js.map +1 -1
- package/package.json +3 -3
|
@@ -13,6 +13,7 @@ export declare class ProductAddtocartComponent implements OnInit, OnDestroy {
|
|
|
13
13
|
readonly icon: typeof IconEnum;
|
|
14
14
|
addToCartButton: ElementRef;
|
|
15
15
|
article: ArticleFullObject;
|
|
16
|
+
createFrozenArticle: boolean;
|
|
16
17
|
configurable: boolean;
|
|
17
18
|
configuring: boolean;
|
|
18
19
|
fullscreen: boolean;
|
|
@@ -4,6 +4,7 @@ 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 { ArticleExtended } from '@colijnit/articleapi/build/model/article-extended.bo';
|
|
7
8
|
export declare class ProductExternalSourceComponent implements OnInit, OnDestroy {
|
|
8
9
|
private _sanitizer;
|
|
9
10
|
private _productConnectorService;
|
|
@@ -12,7 +13,10 @@ export declare class ProductExternalSourceComponent implements OnInit, OnDestroy
|
|
|
12
13
|
set externalSource(value: ExternalSource);
|
|
13
14
|
get externalSource(): ExternalSource;
|
|
14
15
|
options: {};
|
|
15
|
-
addToCart: EventEmitter<
|
|
16
|
+
addToCart: EventEmitter<{
|
|
17
|
+
article: string | ArticleExtended;
|
|
18
|
+
quantity: number;
|
|
19
|
+
}>;
|
|
16
20
|
addToQuote: EventEmitter<string>;
|
|
17
21
|
alternativeClick: EventEmitter<ArticleListObject>;
|
|
18
22
|
showClass(): boolean;
|
|
@@ -21,6 +21,7 @@ export declare class ProductPageComponent implements OnInit, OnDestroy, AfterVie
|
|
|
21
21
|
set sku(value: string);
|
|
22
22
|
get sku(): string;
|
|
23
23
|
set settings(value: any);
|
|
24
|
+
createFrozenArticle: boolean;
|
|
24
25
|
openStockEvent: EventEmitter<void>;
|
|
25
26
|
get settings(): any;
|
|
26
27
|
set fullScreen(value: boolean);
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import { EventEmitter
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { SafeHtml } from '@angular/platform-browser';
|
|
3
3
|
import { ProductConnectorService } from '../../service/product-connector.service';
|
|
4
4
|
import { IconCacheService } from '../../service/icon-cache.service';
|
|
5
5
|
import { IconEnum } from '../../enum/icon.enum';
|
|
6
|
-
|
|
7
|
-
export declare class ProductStockComponent implements OnInit {
|
|
6
|
+
export declare class ProductStockComponent {
|
|
8
7
|
private _iOne;
|
|
9
8
|
private _iconCache;
|
|
10
9
|
readonly icon: typeof IconEnum;
|
|
11
|
-
set
|
|
12
|
-
|
|
13
|
-
iconData: SafeHtml;
|
|
10
|
+
set goodId(value: number);
|
|
11
|
+
get goodId(): number;
|
|
14
12
|
openStockEvent: EventEmitter<void>;
|
|
13
|
+
inStock: boolean;
|
|
14
|
+
stockLabel: string;
|
|
15
|
+
iconData: SafeHtml;
|
|
16
|
+
private _goodId;
|
|
15
17
|
constructor(_iOne: ProductConnectorService, _iconCache: IconCacheService);
|
|
16
|
-
ngOnInit(): void;
|
|
17
18
|
openStock(): void;
|
|
19
|
+
private _getStockStatus;
|
|
18
20
|
}
|
|
@@ -7,6 +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 { ArticleExtended } from '@colijnit/articleapi/build/model/article-extended.bo';
|
|
10
11
|
export declare class IoneProductComponent implements OnInit, OnChanges, OnDestroy {
|
|
11
12
|
private _dictionary;
|
|
12
13
|
private _jsonUtils;
|
|
@@ -17,7 +18,11 @@ export declare class IoneProductComponent implements OnInit, OnChanges, OnDestro
|
|
|
17
18
|
sku: string;
|
|
18
19
|
set settings(value: any);
|
|
19
20
|
get settings(): any;
|
|
20
|
-
|
|
21
|
+
handleAddArticleInternally: boolean;
|
|
22
|
+
onAddToCart: EventEmitter<{
|
|
23
|
+
article: string | ArticleExtended;
|
|
24
|
+
quantity: number;
|
|
25
|
+
}>;
|
|
21
26
|
forceRenderImage: EventEmitter<void>;
|
|
22
27
|
onAlternativeClick: EventEmitter<ArticleListObject>;
|
|
23
28
|
onArticleInfoReceived: EventEmitter<string>;
|
|
@@ -5,10 +5,10 @@ import { SuperArticle } from '@colijnit/articleapi/build/model/super-article';
|
|
|
5
5
|
import { ConfiguratorStatisticsEnvironment } from '@colijnit/articleapi/build/model/configurator-statistics-environment';
|
|
6
6
|
import { Articles } from '@colijnit/articleapi/build/articles';
|
|
7
7
|
import { Options } from '@colijnit/ioneconnector/build/model/options';
|
|
8
|
-
import { DataServiceResponseData } from '@colijnit/ioneconnector/build/model/data-service-response-data';
|
|
9
8
|
import { DeliveryPrognosis } from '@colijnit/articleapi/build/model/delivery-prognosis';
|
|
10
9
|
import { DocumentContent } from '@colijnit/articleapi/build/model/document-content';
|
|
11
10
|
import { Transaction } from '@colijnit/transactionapi/build/transaction';
|
|
11
|
+
import { ArticleExtended } from '@colijnit/articleapi/build/model/article-extended.bo';
|
|
12
12
|
export declare class ProductConnectorAdapterService implements OnDestroy {
|
|
13
13
|
readonly showLoader: Subject<boolean>;
|
|
14
14
|
articleConnector?: Articles;
|
|
@@ -19,8 +19,10 @@ 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): ArticleExtended;
|
|
22
23
|
getDeliveryPrognosis(goodId: number, branchNr?: string): Promise<any>;
|
|
23
24
|
getSelectorDeliveryDate(): Promise<DeliveryPrognosis>;
|
|
25
|
+
getArtStockStatus(goodId: number): Promise<number>;
|
|
24
26
|
getDeliveryDate2(goodId: number): Promise<DeliveryPrognosis>;
|
|
25
27
|
getJsonConfiguredArticles(configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
|
|
26
28
|
getJsonArticleFlatTree(goodId: number, goodType: string, quantity: number, showLoader?: boolean, instanceId?: any, configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
|
|
@@ -28,6 +30,5 @@ export declare class ProductConnectorAdapterService implements OnDestroy {
|
|
|
28
30
|
getArticleFullObject(goodId: number): Promise<ArticleFullObject>;
|
|
29
31
|
getSuperArticle(id: string, branch?: string): Promise<SuperArticle>;
|
|
30
32
|
getDocumentContent(docId: number, thumbnail?: boolean): Promise<DocumentContent>;
|
|
31
|
-
addWebSessionTransactionLine(sku: string, quantity: number): Promise<
|
|
32
|
-
getWebTransaction(): Promise<DataServiceResponseData>;
|
|
33
|
+
addWebSessionTransactionLine(transactionUuid: string, sku: string, quantity: number): Promise<string>;
|
|
33
34
|
}
|
|
@@ -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 { ArticleExtended } from '@colijnit/articleapi/build/model/article-extended.bo';
|
|
11
11
|
export declare class ProductConnectorService implements OnDestroy {
|
|
12
12
|
private _adapterService;
|
|
13
13
|
private _settingsService;
|
|
@@ -24,14 +24,15 @@ 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): ArticleExtended;
|
|
27
28
|
getFullArticle(sku: string): Promise<ArticleFullObject>;
|
|
28
29
|
getDocumentContent(docId: number, thumbnail?: boolean): Promise<DocumentContent>;
|
|
29
30
|
getDeliveryPrognosis(goodId: number): Promise<DeliveryPrognosis>;
|
|
30
31
|
getSelectorDeliveryDate(): Promise<DeliveryPrognosis>;
|
|
32
|
+
getArtStockStatus(goodId: number): Promise<number>;
|
|
31
33
|
getDeliveryDate2(goodId: number): Promise<DeliveryPrognosis>;
|
|
32
34
|
getSuperArticle(id: string): Promise<SuperArticle>;
|
|
33
35
|
getJsonArticleFlatTree(goodId: number, goodType: string, quantity: number, showLoader?: boolean, configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
|
|
34
|
-
addWebSessionTransactionLine(sku: string, quantity: number): Promise<
|
|
35
|
-
getWebTransaction(): void;
|
|
36
|
+
addWebSessionTransactionLine(transactionUuid: string, sku: string, quantity: number): Promise<string>;
|
|
36
37
|
onShowLoaderChange(showLoader: boolean): void;
|
|
37
38
|
}
|
|
@@ -2,8 +2,12 @@ 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 { ArticleExtended } from '@colijnit/articleapi/build/model/article-extended.bo';
|
|
5
6
|
export declare class ProductEventService {
|
|
6
|
-
onAddToCart: Subject<
|
|
7
|
+
onAddToCart: Subject<{
|
|
8
|
+
article: string | ArticleExtended;
|
|
9
|
+
quantity: number;
|
|
10
|
+
}>;
|
|
7
11
|
onAlternativeClick: Subject<ArticleListObject>;
|
|
8
12
|
onAddToQuote: Subject<string>;
|
|
9
13
|
onForceRenderImage: Subject<void>;
|