@colijnit/product 256.1.2 → 256.1.4
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-dialog/product-dialog.component.d.ts +27 -0
- package/app/components/product-dialog/product-dialog.module.d.ts +2 -0
- package/app/components/product-external-source/product-external-source.component.d.ts +16 -0
- package/app/components/product-hd/product-hd.component.d.ts +22 -0
- package/app/components/product-hd/product-hd.module.d.ts +2 -0
- package/app/components/product-page/product-page.component.d.ts +2 -0
- package/app/enum/icon.enum.d.ts +3 -0
- package/app/ione-product.component.d.ts +2 -0
- package/app/service/product-connector-adapter.service.d.ts +1 -1
- package/app/service/product-script-loader.service.d.ts +9 -0
- package/bundles/colijnit-product.umd.js +428 -61
- package/bundles/colijnit-product.umd.js.map +1 -1
- package/colijnit-product-256.1.3.tgz +0 -0
- package/colijnit-product.d.ts +6 -1
- package/colijnit-product.metadata.json +1 -1
- package/esm2015/app/components/product-addtocart/product-addtocart.component.js +4 -2
- package/esm2015/app/components/product-addtocart/product-addtocart.module.js +4 -2
- package/esm2015/app/components/product-dialog/product-dialog.component.js +86 -0
- package/esm2015/app/components/product-dialog/product-dialog.module.js +25 -0
- package/esm2015/app/components/product-external-source/product-external-source.component.js +82 -20
- package/esm2015/app/components/product-external-source/product-external-source.module.js +4 -2
- package/esm2015/app/components/product-hd/product-hd.component.js +99 -0
- package/esm2015/app/components/product-hd/product-hd.module.js +23 -0
- package/esm2015/app/components/product-page/product-page.component.js +8 -2
- package/esm2015/app/components/product-page/product-page.module.js +6 -2
- package/esm2015/app/components/product-related/product-related.component.js +25 -23
- package/esm2015/app/enum/icon.enum.js +4 -1
- package/esm2015/app/ione-product.component.js +8 -2
- package/esm2015/app/ione-product.module.js +15 -5
- package/esm2015/app/model/icon.js +4 -1
- package/esm2015/app/product-version.js +3 -3
- package/esm2015/app/service/product-connector-adapter.service.js +3 -3
- package/esm2015/app/service/product-script-loader.service.js +68 -0
- package/esm2015/assets/dictionary/text.properties.js +5 -3
- package/esm2015/colijnit-product.js +7 -2
- package/fesm2015/colijnit-product.js +448 -73
- package/fesm2015/colijnit-product.js.map +1 -1
- package/package.json +1 -1
|
@@ -25,6 +25,7 @@ export declare class ProductAddtocartComponent implements OnInit, OnDestroy {
|
|
|
25
25
|
startConfiguration: EventEmitter<void>;
|
|
26
26
|
addToCartClick: EventEmitter<number>;
|
|
27
27
|
addToQuoteClick: EventEmitter<number>;
|
|
28
|
+
showRelatedPopup: EventEmitter<boolean>;
|
|
28
29
|
showQuoteButton: boolean;
|
|
29
30
|
private _quantity;
|
|
30
31
|
constructor(iconCache: IconCacheService, _ioneControllerService: ProductConnectorService, _appEventService: ProductEventService, _settingsService: ProductSettingsService);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
3
|
+
import { ProductConnectorService } from '../../service/product-connector.service';
|
|
4
|
+
import { ArticleListObject } from '@colijnit/articleapi/build/model/article-list-object';
|
|
5
|
+
import { ProductEventService } from '../../service/product-event.service';
|
|
6
|
+
import { ProductConnectorAdapterService } from '../../service/product-connector-adapter.service';
|
|
7
|
+
import { ArticleFullObject } from "@colijnit/articleapi/build/model/article-full-object";
|
|
8
|
+
import { IconEnum } from "../../enum/icon.enum";
|
|
9
|
+
import { IconCacheService } from "../../service/icon-cache.service";
|
|
10
|
+
import { SelectorType } from "../../enum/selector-type.enum";
|
|
11
|
+
export declare class ProductDialogComponent implements OnInit {
|
|
12
|
+
iconCache: IconCacheService;
|
|
13
|
+
private _sanitizer;
|
|
14
|
+
private _productConnectorService;
|
|
15
|
+
private _productConnectorAdapterService;
|
|
16
|
+
private _appEventService;
|
|
17
|
+
readonly icon: typeof IconEnum;
|
|
18
|
+
refType: number;
|
|
19
|
+
mainArticle: ArticleFullObject;
|
|
20
|
+
articles: ArticleListObject[];
|
|
21
|
+
closeRelatedPopup: EventEmitter<boolean>;
|
|
22
|
+
showClass(): boolean;
|
|
23
|
+
constructor(iconCache: IconCacheService, _sanitizer: DomSanitizer, _productConnectorService: ProductConnectorService, _productConnectorAdapterService: ProductConnectorAdapterService, _appEventService: ProductEventService);
|
|
24
|
+
ngOnInit(): void;
|
|
25
|
+
closeCatalog(): void;
|
|
26
|
+
protected readonly type: typeof SelectorType;
|
|
27
|
+
}
|
|
@@ -6,6 +6,7 @@ import { ArticleListObject } from '@colijnit/articleapi/build/model/article-list
|
|
|
6
6
|
import { ProductEventService } from '../../service/product-event.service';
|
|
7
7
|
import { CatalogDefinition } from '@colijnit/articleapi/build/model/catalog-definition.bo';
|
|
8
8
|
import { ExternalSourceArticleAddInterface } from '@colijnit/articleapi/build/interface/external-source-article-add.interface';
|
|
9
|
+
import { ExternalCatalogStartupInfo } from '@colijnit/articleapi/build/model/external-catalog-startup-info';
|
|
9
10
|
export declare class ProductExternalSourceComponent implements OnInit, OnDestroy {
|
|
10
11
|
private _sanitizer;
|
|
11
12
|
private _productConnectorService;
|
|
@@ -14,20 +15,35 @@ export declare class ProductExternalSourceComponent implements OnInit, OnDestroy
|
|
|
14
15
|
catalogDefinition: CatalogDefinition;
|
|
15
16
|
set externalSource(value: ExternalSource);
|
|
16
17
|
get externalSource(): ExternalSource;
|
|
18
|
+
set externalCatalogStartupInfo(value: ExternalCatalogStartupInfo);
|
|
19
|
+
get externalCatalogStartupInfo(): ExternalCatalogStartupInfo;
|
|
17
20
|
options: {};
|
|
18
21
|
addToCart: EventEmitter<ExternalSourceArticleAddInterface>;
|
|
19
22
|
addToQuote: EventEmitter<ExternalSourceArticleAddInterface>;
|
|
20
23
|
alternativeClick: EventEmitter<ArticleListObject>;
|
|
24
|
+
configuratorFinished: EventEmitter<string>;
|
|
21
25
|
showClass(): boolean;
|
|
22
26
|
showProduct: boolean;
|
|
27
|
+
showConfigurator: boolean;
|
|
28
|
+
showSource: boolean;
|
|
23
29
|
safeUrl: SafeResourceUrl;
|
|
24
30
|
loaded: boolean;
|
|
25
31
|
externalUrl: string;
|
|
26
32
|
externalSettings: any;
|
|
33
|
+
token: string;
|
|
34
|
+
variant: string;
|
|
27
35
|
private _externalSource;
|
|
36
|
+
private _externalCatalogStartupInfo;
|
|
28
37
|
private _subs;
|
|
29
38
|
constructor(_sanitizer: DomSanitizer, _productConnectorService: ProductConnectorService, _appEventService: ProductEventService);
|
|
30
39
|
ngOnInit(): void;
|
|
31
40
|
ngOnDestroy(): void;
|
|
41
|
+
handleConfigurationFinished(variantString: string): void;
|
|
32
42
|
private _prepareExternalSource;
|
|
43
|
+
private _prepareCatFarm;
|
|
44
|
+
private _prepareConfigurator;
|
|
45
|
+
private _prepareSource;
|
|
46
|
+
private switchToProduct;
|
|
47
|
+
private switchToConfigurator;
|
|
48
|
+
private switchToSource;
|
|
33
49
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnDestroy, Renderer2 } from '@angular/core';
|
|
2
|
+
import { ProductScriptLoaderService } from '../../service/product-script-loader.service';
|
|
3
|
+
export declare class ProductHdComponent implements OnDestroy {
|
|
4
|
+
private _scriptLoader;
|
|
5
|
+
private _renderer;
|
|
6
|
+
set content(child: any);
|
|
7
|
+
set sku(value: string);
|
|
8
|
+
get sku(): string;
|
|
9
|
+
token: string;
|
|
10
|
+
variant: string;
|
|
11
|
+
configuratorFinished: EventEmitter<string>;
|
|
12
|
+
configurationError: EventEmitter<any>;
|
|
13
|
+
showClass: boolean;
|
|
14
|
+
hdeConfigurator: ElementRef;
|
|
15
|
+
private _sku;
|
|
16
|
+
constructor(_scriptLoader: ProductScriptLoaderService, _renderer: Renderer2);
|
|
17
|
+
ngOnDestroy(): void;
|
|
18
|
+
handleConfigurationFinished(event: CustomEvent): void;
|
|
19
|
+
handleError(event: CustomEvent): void;
|
|
20
|
+
private _prepareAttributes;
|
|
21
|
+
private _loadTheScripts;
|
|
22
|
+
}
|
|
@@ -25,6 +25,7 @@ export declare class ProductPageComponent implements OnInit, OnDestroy, AfterVie
|
|
|
25
25
|
externalSource: ExternalSource;
|
|
26
26
|
createFrozenArticle: boolean;
|
|
27
27
|
isReturn: boolean;
|
|
28
|
+
showRelatedProductsPopup: boolean;
|
|
28
29
|
openStockEvent: EventEmitter<void>;
|
|
29
30
|
get settings(): any;
|
|
30
31
|
set fullScreen(value: boolean);
|
|
@@ -58,4 +59,5 @@ export declare class ProductPageComponent implements OnInit, OnDestroy, AfterVie
|
|
|
58
59
|
private _handleSettingsLoaded;
|
|
59
60
|
private _getArticle;
|
|
60
61
|
openStock(): void;
|
|
62
|
+
handlePopUpChange(event: boolean): void;
|
|
61
63
|
}
|
package/app/enum/icon.enum.d.ts
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
/** AUTO GENERATED FILE. DO NOT CHANGE.. **/
|
|
2
2
|
export declare enum IconEnum {
|
|
3
3
|
AddToCartDrop = "add_to_cart_drop",
|
|
4
|
+
CrossSkinny = "cross_skinny",
|
|
4
5
|
DeliveryTruck = "delivery_truck",
|
|
5
6
|
Download = "download",
|
|
6
7
|
FullScreen = "full_screen",
|
|
8
|
+
LinkSimpleRegular = "link_simple_regular",
|
|
7
9
|
Location = "location",
|
|
8
10
|
Logo = "logo",
|
|
9
11
|
MagicWand = "magic_wand",
|
|
10
12
|
NormalScreen = "normal_screen",
|
|
11
13
|
Quote = "quote",
|
|
12
14
|
Refresh = "refresh",
|
|
15
|
+
SaveSkinny = "save_skinny",
|
|
13
16
|
ThreeD = "three_d",
|
|
14
17
|
Truck = "truck",
|
|
15
18
|
TwoD = "two_d",
|
|
@@ -17,6 +17,7 @@ export declare class IoneProductComponent implements OnInit, OnChanges, OnDestro
|
|
|
17
17
|
private _settingsService;
|
|
18
18
|
sku: string;
|
|
19
19
|
isReturn: boolean;
|
|
20
|
+
showRelatedProductsPopup: boolean;
|
|
20
21
|
set settings(value: any);
|
|
21
22
|
get settings(): any;
|
|
22
23
|
handleAddArticleInternally: boolean;
|
|
@@ -32,6 +33,7 @@ export declare class IoneProductComponent implements OnInit, OnChanges, OnDestro
|
|
|
32
33
|
onAddToQuote: EventEmitter<string>;
|
|
33
34
|
openStockEvent: EventEmitter<void>;
|
|
34
35
|
settingsLoaded: boolean;
|
|
36
|
+
showHD: boolean;
|
|
35
37
|
private _settings;
|
|
36
38
|
private _subs;
|
|
37
39
|
constructor(_dictionary: DictionaryService, _jsonUtils: JsonUtilsService, _ione: ProductConnectorService, _changeDetector: ChangeDetectorRef, _appEventService: ProductEventService, _settingsService: ProductSettingsService);
|
|
@@ -30,7 +30,7 @@ export declare class ProductConnectorAdapterService implements OnDestroy {
|
|
|
30
30
|
getJsonConfiguredArticles(configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
|
|
31
31
|
getJsonArticleFlatTree(goodId: number, goodType: string, quantity: number, externalSource?: boolean, showLoader?: boolean, instanceId?: any, configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
|
|
32
32
|
getGoodIdFromArticleNr(sku: string): Promise<number>;
|
|
33
|
-
getArticleFullObject(goodId: number): Promise<ArticleFullObject>;
|
|
33
|
+
getArticleFullObject(goodId: number, showLoader?: boolean): Promise<ArticleFullObject>;
|
|
34
34
|
getSuperArticle(id: string, branch?: string): Promise<SuperArticle>;
|
|
35
35
|
getDocumentContent(docId: number, thumbnail?: boolean): Promise<DocumentContent>;
|
|
36
36
|
addWebSessionTransactionLine(transactionUuid: string, sku: string, quantity: number): Promise<string>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Renderer2 } from '@angular/core';
|
|
2
|
+
export declare class ProductScriptLoaderService {
|
|
3
|
+
private platformId;
|
|
4
|
+
private _scriptsOrLinksElements;
|
|
5
|
+
constructor(platformId: any);
|
|
6
|
+
loadScript(url: string, renderer: Renderer2): Promise<void>;
|
|
7
|
+
unloadScripts(renderer: Renderer2): void;
|
|
8
|
+
addStyleSheet(url: string, renderer: Renderer2): Promise<void>;
|
|
9
|
+
}
|