@colijnit/product 1.9.5 → 2.9.1
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-additional-info/product-additional-info.component.d.ts +4 -3
- package/app/components/product-external-source/product-external-source.component.d.ts +30 -0
- package/app/components/product-external-source/product-external-source.module.d.ts +2 -0
- package/app/components/product-page/product-page.component.d.ts +4 -0
- package/app/components/product-page/product-page.module.d.ts +2 -0
- package/app/ione-product.component.d.ts +5 -5
- package/app/ione-product.module.d.ts +0 -2
- package/app/model/{settings.d.ts → productSettings.d.ts} +3 -2
- package/app/pipe/pipe.module.d.ts +2 -0
- package/app/service/product-connector-adapter.service.d.ts +8 -2
- package/app/service/product-connector.service.d.ts +10 -5
- package/app/service/product-settings.service.d.ts +3 -3
- package/bundles/colijnit-product.umd.js +1469 -1258
- package/bundles/colijnit-product.umd.js.map +1 -1
- package/bundles/colijnit-product.umd.min.js +2 -2
- package/bundles/colijnit-product.umd.min.js.map +1 -1
- package/colijnit-product.d.ts +28 -28
- package/colijnit-product.metadata.json +1 -1
- package/esm2015/app/components/product-additional-info/product-additional-info.component.js +23 -16
- package/esm2015/app/components/product-addtocart/product-addtocart.component.js +2 -2
- package/esm2015/app/components/product-delivery/product-delivery.component.js +1 -2
- package/esm2015/app/components/product-external-source/product-external-source.component.js +123 -0
- package/esm2015/app/components/product-external-source/product-external-source.module.js +23 -0
- package/esm2015/app/components/product-page/product-page.component.js +45 -15
- package/esm2015/app/components/product-page/product-page.module.js +66 -0
- package/esm2015/app/ione-product.component.js +53 -20
- package/esm2015/app/ione-product.module.js +9 -74
- package/esm2015/app/model/productSettings.js +16 -0
- package/esm2015/app/pipe/pipe.module.js +20 -0
- package/esm2015/app/product-version.js +3 -3
- package/esm2015/app/service/dictionary.service.js +1 -1
- package/esm2015/app/service/product-connector-adapter.service.js +34 -9
- package/esm2015/app/service/product-connector.service.js +33 -35
- package/esm2015/app/service/product-event.service.js +2 -6
- package/esm2015/app/service/product-settings.service.js +13 -74
- package/esm2015/colijnit-product.js +29 -29
- package/esm2015/public_api.js +3 -1
- package/esm5/app/components/product-additional-info/product-additional-info.component.js +43 -24
- package/esm5/app/components/product-addtocart/product-addtocart.component.js +2 -2
- package/esm5/app/components/product-delivery/product-delivery.component.js +1 -2
- package/esm5/app/components/product-external-source/product-external-source.component.js +126 -0
- package/esm5/app/components/product-external-source/product-external-source.module.js +26 -0
- package/esm5/app/components/product-page/product-page.component.js +49 -15
- package/esm5/app/components/product-page/product-page.module.js +69 -0
- package/esm5/app/ione-product.component.js +81 -21
- package/esm5/app/ione-product.module.js +9 -74
- package/esm5/app/model/productSettings.js +18 -0
- package/esm5/app/pipe/pipe.module.js +23 -0
- package/esm5/app/product-version.js +3 -3
- package/esm5/app/service/dictionary.service.js +1 -1
- package/esm5/app/service/product-connector-adapter.service.js +61 -10
- package/esm5/app/service/product-connector.service.js +65 -52
- package/esm5/app/service/product-event.service.js +2 -6
- package/esm5/app/service/product-settings.service.js +14 -74
- package/esm5/colijnit-product.js +29 -29
- package/esm5/public_api.js +3 -1
- package/fesm2015/colijnit-product.js +1185 -1056
- package/fesm2015/colijnit-product.js.map +1 -1
- package/fesm5/colijnit-product.js +1442 -1230
- package/fesm5/colijnit-product.js.map +1 -1
- package/package.json +5 -4
- package/public_api.d.ts +2 -0
- package/app/service/product-initializer.service.d.ts +0 -6
- package/app/service/product-module.service.d.ts +0 -9
- package/esm2015/app/model/settings.js +0 -15
- package/esm2015/app/service/product-initializer.service.js +0 -26
- package/esm2015/app/service/product-module.service.js +0 -39
- package/esm5/app/model/settings.js +0 -17
- package/esm5/app/service/product-initializer.service.js +0 -29
- package/esm5/app/service/product-module.service.js +0 -50
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
2
|
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
3
3
|
import { ArticleFullObject } from '@colijnit/articleapi/build/model/article-full-object';
|
|
4
|
-
import {
|
|
4
|
+
import { ProductConnectorService } from '../../service/product-connector.service';
|
|
5
5
|
export declare class ProductAdditionalInfoComponent implements OnInit {
|
|
6
6
|
private _sanitizer;
|
|
7
|
-
private
|
|
7
|
+
private _connectorService;
|
|
8
8
|
private _changeDetector;
|
|
9
9
|
set article(value: ArticleFullObject);
|
|
10
10
|
get article(): ArticleFullObject;
|
|
@@ -12,7 +12,8 @@ export declare class ProductAdditionalInfoComponent implements OnInit {
|
|
|
12
12
|
textParts: SafeHtml[];
|
|
13
13
|
info: string;
|
|
14
14
|
private _article;
|
|
15
|
-
|
|
15
|
+
private _superArticles;
|
|
16
|
+
constructor(_sanitizer: DomSanitizer, _connectorService: ProductConnectorService, _changeDetector: ChangeDetectorRef);
|
|
16
17
|
ngOnInit(): void;
|
|
17
18
|
private _getTextsSuperArticle;
|
|
18
19
|
private _prepareArticleTexts;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
|
|
3
|
+
import { ExternalSource } from '@colijnit/articleapi/build/model/external-source.bo';
|
|
4
|
+
import { ProductConnectorService } from '../../service/product-connector.service';
|
|
5
|
+
import { ArticleListObject } from '@colijnit/articleapi/build/model/article-list-object';
|
|
6
|
+
import { ProductEventService } from '../../service/product-event.service';
|
|
7
|
+
export declare class ProductExternalSourceComponent implements OnInit, OnDestroy {
|
|
8
|
+
private _sanitizer;
|
|
9
|
+
private _productConnectorService;
|
|
10
|
+
private _appEventService;
|
|
11
|
+
sku: string;
|
|
12
|
+
set externalSource(value: ExternalSource);
|
|
13
|
+
get externalSource(): ExternalSource;
|
|
14
|
+
options: {};
|
|
15
|
+
addToCart: EventEmitter<string>;
|
|
16
|
+
addToQuote: EventEmitter<string>;
|
|
17
|
+
alternativeClick: EventEmitter<ArticleListObject>;
|
|
18
|
+
showClass(): boolean;
|
|
19
|
+
showProduct: boolean;
|
|
20
|
+
safeUrl: SafeResourceUrl;
|
|
21
|
+
loaded: boolean;
|
|
22
|
+
externalUrl: string;
|
|
23
|
+
externalSettings: any;
|
|
24
|
+
private _externalSource;
|
|
25
|
+
private _subs;
|
|
26
|
+
constructor(_sanitizer: DomSanitizer, _productConnectorService: ProductConnectorService, _appEventService: ProductEventService);
|
|
27
|
+
ngOnInit(): void;
|
|
28
|
+
ngOnDestroy(): void;
|
|
29
|
+
private _prepareExternalSource;
|
|
30
|
+
}
|
|
@@ -20,6 +20,8 @@ export declare class ProductPageComponent implements OnInit, OnDestroy, AfterVie
|
|
|
20
20
|
fullscreenbutton: ElementRef;
|
|
21
21
|
set sku(value: string);
|
|
22
22
|
get sku(): string;
|
|
23
|
+
set settings(value: any);
|
|
24
|
+
get settings(): any;
|
|
23
25
|
set fullScreen(value: boolean);
|
|
24
26
|
get fullScreen(): boolean;
|
|
25
27
|
get fullScreenIcon(): IconEnum;
|
|
@@ -40,6 +42,7 @@ export declare class ProductPageComponent implements OnInit, OnDestroy, AfterVie
|
|
|
40
42
|
private _fullScreen;
|
|
41
43
|
private _currentView;
|
|
42
44
|
private _subs;
|
|
45
|
+
private _settings;
|
|
43
46
|
constructor(_ione: ProductConnectorService, _renderer: Renderer2, _changeDetector: ChangeDetectorRef, iconCache: IconCacheService, settingsService: ProductSettingsService, appEventService: ProductEventService);
|
|
44
47
|
ngOnInit(): void;
|
|
45
48
|
ngAfterViewInit(): void;
|
|
@@ -47,5 +50,6 @@ export declare class ProductPageComponent implements OnInit, OnDestroy, AfterVie
|
|
|
47
50
|
setInstance(event: CustomEvent): void;
|
|
48
51
|
handleStartConfiguration(): void;
|
|
49
52
|
showFullScreen(): void;
|
|
53
|
+
private _handleSettingsLoaded;
|
|
50
54
|
private _getArticle;
|
|
51
55
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { JsonUtilsService } from './utils/json-utils.service';
|
|
3
3
|
import { ProductConnectorService } from './service/product-connector.service';
|
|
4
4
|
import { DictionaryService } from './service/dictionary.service';
|
|
@@ -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
|
-
export declare class IoneProductComponent implements OnChanges, OnDestroy {
|
|
10
|
+
export declare class IoneProductComponent implements OnInit, OnChanges, OnDestroy {
|
|
11
11
|
private _dictionary;
|
|
12
12
|
private _jsonUtils;
|
|
13
13
|
private _ione;
|
|
@@ -24,13 +24,13 @@ export declare class IoneProductComponent implements OnChanges, OnDestroy {
|
|
|
24
24
|
onArticleReceived: EventEmitter<ArticleQuickSel>;
|
|
25
25
|
onSelectionsReceived: EventEmitter<Selection[]>;
|
|
26
26
|
onAddToQuote: EventEmitter<string>;
|
|
27
|
-
|
|
27
|
+
settingsLoaded: boolean;
|
|
28
28
|
private _settings;
|
|
29
29
|
private _subs;
|
|
30
30
|
constructor(_dictionary: DictionaryService, _jsonUtils: JsonUtilsService, _ione: ProductConnectorService, _changeDetector: ChangeDetectorRef, _appEventService: ProductEventService, _settingsService: ProductSettingsService);
|
|
31
|
+
ngOnInit(): Promise<void>;
|
|
31
32
|
ngOnChanges(changes: SimpleChanges): void;
|
|
32
33
|
ngOnDestroy(): void;
|
|
33
|
-
private _handleSettingsLoaded;
|
|
34
34
|
private _handleAnswerInfoReceived;
|
|
35
|
-
private
|
|
35
|
+
private _handleAddToCart;
|
|
36
36
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SettingsOptions } from './settings-options';
|
|
2
2
|
import { RenderParameters } from './render-parameters';
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class ProductSettings {
|
|
4
4
|
url: string;
|
|
5
5
|
schema: string;
|
|
6
6
|
version: string;
|
|
@@ -11,7 +11,8 @@ export declare class Settings {
|
|
|
11
11
|
session: any;
|
|
12
12
|
useGroups: boolean;
|
|
13
13
|
useRenders: boolean;
|
|
14
|
-
|
|
14
|
+
useLoginEncryption: boolean;
|
|
15
|
+
createWebOrder: boolean;
|
|
15
16
|
useMatch: boolean;
|
|
16
17
|
assetPath: string;
|
|
17
18
|
assetIndex: string;
|
|
@@ -5,23 +5,29 @@ 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';
|
|
8
9
|
import { DeliveryPrognosis } from '@colijnit/articleapi/build/model/delivery-prognosis';
|
|
9
10
|
import { DocumentContent } from '@colijnit/articleapi/build/model/document-content';
|
|
11
|
+
import { Transaction } from '@colijnit/transactionapi/build/transaction';
|
|
10
12
|
export declare class ProductConnectorAdapterService implements OnDestroy {
|
|
11
13
|
readonly showLoader: Subject<boolean>;
|
|
12
14
|
articleConnector?: Articles;
|
|
15
|
+
transactionConnector: Transaction;
|
|
13
16
|
private _boFactory;
|
|
14
17
|
constructor();
|
|
15
18
|
ngOnDestroy(): void;
|
|
16
|
-
initConnector(options: Options): void
|
|
19
|
+
initConnector(options: Options): Promise<void>;
|
|
17
20
|
setInstance(instanceId: string): void;
|
|
21
|
+
getProductBundleSettings(url: string, upId: number): Promise<string>;
|
|
18
22
|
getDeliveryPrognosis(goodId: number, branchNr?: string): Promise<any>;
|
|
19
23
|
getSelectorDeliveryDate(): Promise<DeliveryPrognosis>;
|
|
20
24
|
getDeliveryDate2(goodId: number): Promise<DeliveryPrognosis>;
|
|
21
25
|
getJsonConfiguredArticles(configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
|
|
22
|
-
getJsonArticleFlatTree(goodId: number, goodType: string, quantity: number, showLoader?: boolean, instanceId?:
|
|
26
|
+
getJsonArticleFlatTree(goodId: number, goodType: string, quantity: number, showLoader?: boolean, instanceId?: any, configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
|
|
23
27
|
getGoodIdFromArticleNr(sku: string): Promise<number>;
|
|
24
28
|
getArticleFullObject(goodId: number): Promise<ArticleFullObject>;
|
|
25
29
|
getSuperArticle(id: string, branch?: string): Promise<SuperArticle>;
|
|
26
30
|
getDocumentContent(docId: number, thumbnail?: boolean): Promise<DocumentContent>;
|
|
31
|
+
addWebSessionTransactionLine(sku: string, quantity: number): Promise<DataServiceResponseData>;
|
|
32
|
+
getWebTransaction(): Promise<DataServiceResponseData>;
|
|
27
33
|
}
|
|
@@ -7,19 +7,22 @@ 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 { DataServiceResponseData } from '@colijnit/ioneconnector/build/model/data-service-response-data';
|
|
10
11
|
export declare class ProductConnectorService implements OnDestroy {
|
|
11
|
-
|
|
12
|
+
private _adapterService;
|
|
12
13
|
private _settingsService;
|
|
13
14
|
get shouldShowLoader(): boolean;
|
|
14
15
|
controllerInitialized: BehaviorSubject<boolean>;
|
|
15
16
|
private _shouldShowLoader;
|
|
16
17
|
private _initializing;
|
|
17
18
|
private _initialized;
|
|
18
|
-
private
|
|
19
|
+
private _instanceId;
|
|
20
|
+
private connectorOptions;
|
|
19
21
|
private readonly subs;
|
|
20
|
-
constructor(
|
|
22
|
+
constructor(_adapterService: ProductConnectorAdapterService, _settingsService: ProductSettingsService);
|
|
21
23
|
ngOnDestroy(): void;
|
|
22
|
-
|
|
24
|
+
initConnection(): Promise<void>;
|
|
25
|
+
getProductBundleSettings(url: string, upId: number): Promise<string>;
|
|
23
26
|
setInstance(instanceId: string): void;
|
|
24
27
|
getFullArticle(sku: string): Promise<ArticleFullObject>;
|
|
25
28
|
getDocumentContent(docId: number, thumbnail?: boolean): Promise<DocumentContent>;
|
|
@@ -27,6 +30,8 @@ export declare class ProductConnectorService implements OnDestroy {
|
|
|
27
30
|
getSelectorDeliveryDate(): Promise<DeliveryPrognosis>;
|
|
28
31
|
getDeliveryDate2(goodId: number): Promise<DeliveryPrognosis>;
|
|
29
32
|
getSuperArticle(id: string): Promise<SuperArticle>;
|
|
30
|
-
getJsonArticleFlatTree(goodId: number, goodType: string, quantity: number, showLoader?: boolean,
|
|
33
|
+
getJsonArticleFlatTree(goodId: number, goodType: string, quantity: number, showLoader?: boolean, configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
|
|
34
|
+
addWebSessionTransactionLine(sku: string, quantity: number): Promise<DataServiceResponseData>;
|
|
35
|
+
getWebTransaction(): void;
|
|
31
36
|
onShowLoaderChange(showLoader: boolean): void;
|
|
32
37
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { BehaviorSubject } from 'rxjs';
|
|
2
2
|
import { JsonUtilsService } from '../utils/json-utils.service';
|
|
3
3
|
import { DictionaryService } from './dictionary.service';
|
|
4
|
-
import {
|
|
4
|
+
import { ProductSettings } from '../model/productSettings';
|
|
5
5
|
export declare class ProductSettingsService {
|
|
6
6
|
private _jsonUtilsService;
|
|
7
7
|
private _dictionaryService;
|
|
8
|
-
set settings(value:
|
|
9
|
-
get settings():
|
|
8
|
+
set settings(value: ProductSettings);
|
|
9
|
+
get settings(): ProductSettings;
|
|
10
10
|
settingsLoaded: BehaviorSubject<boolean>;
|
|
11
11
|
private _settings;
|
|
12
12
|
constructor(_jsonUtilsService: JsonUtilsService, _dictionaryService: DictionaryService);
|