@colijnit/product 257.1.3 → 257.1.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/image-carousel/image-carousel.component.d.ts +16 -13
- package/app/components/product-addtocart/product-addtocart.component.d.ts +1 -0
- package/app/components/product-external-source/product-external-source.component.d.ts +2 -0
- package/app/components/product-hd/product-hd.component.d.ts +3 -0
- package/app/components/product-page/product-page.component.d.ts +1 -0
- package/app/ione-product.component.d.ts +2 -0
- package/app/service/product-event.service.d.ts +2 -1
- package/bundles/colijnit-product.umd.js +195 -82
- package/bundles/colijnit-product.umd.js.map +1 -1
- package/colijnit-product.metadata.json +1 -1
- package/esm2015/app/components/image-carousel/image-carousel.component.js +127 -70
- package/esm2015/app/components/product-addtocart/product-addtocart.component.js +9 -5
- package/esm2015/app/components/product-external-source/product-external-source.component.js +10 -5
- package/esm2015/app/components/product-hd/product-hd.component.js +40 -15
- package/esm2015/app/components/product-page/product-page.component.js +15 -3
- package/esm2015/app/ione-product.component.js +23 -17
- package/esm2015/app/ione-product.module.js +3 -3
- package/esm2015/app/product-version.js +3 -3
- package/esm2015/app/service/product-event.service.js +2 -1
- package/esm2015/assets/dictionary/text.properties.js +3 -1
- package/fesm2015/colijnit-product.js +224 -110
- package/fesm2015/colijnit-product.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef, OnDestroy
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, OnDestroy } from '@angular/core';
|
|
2
2
|
import { CoDocument } from '@colijnit/mainapi/build/model/co-document';
|
|
3
3
|
import { ProductConnectorService } from '../../service/product-connector.service';
|
|
4
4
|
import { ProductEventService } from '../../service/product-event.service';
|
|
5
|
-
import { IconEnum } from '../../enum/icon.enum';
|
|
6
|
-
import { IconCacheService } from '../../service/icon-cache.service';
|
|
7
5
|
import { DomSanitizer, SafeUrl } from '@angular/platform-browser';
|
|
8
|
-
export declare class
|
|
6
|
+
export declare class ImageViewModel {
|
|
7
|
+
image: CoDocument | string;
|
|
8
|
+
source: SafeUrl;
|
|
9
|
+
originalSource: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class ImageCarouselComponent implements OnDestroy {
|
|
9
12
|
private _ione;
|
|
10
13
|
private _appEventService;
|
|
11
14
|
private _changeDetector;
|
|
12
15
|
private _domSanitizer;
|
|
13
|
-
iconCache: IconCacheService;
|
|
14
|
-
readonly icons: typeof IconEnum;
|
|
15
|
-
showLoader: boolean;
|
|
16
16
|
carousel: ElementRef;
|
|
17
17
|
showRefresh: boolean;
|
|
18
|
-
set images(value: CoDocument[]);
|
|
18
|
+
set images(value: (CoDocument | string)[]);
|
|
19
|
+
get images(): (CoDocument | string)[];
|
|
19
20
|
handleWindowResize(): void;
|
|
20
21
|
gotoNextSlide(): void;
|
|
21
22
|
gotoPrevSlide(): void;
|
|
@@ -23,18 +24,20 @@ export declare class ImageCarouselComponent implements OnInit, OnDestroy {
|
|
|
23
24
|
get currentIndex(): number;
|
|
24
25
|
set currentIndex(value: number);
|
|
25
26
|
resizing: boolean;
|
|
26
|
-
|
|
27
|
+
imageViewModels: ImageViewModel[];
|
|
28
|
+
showLoader: boolean;
|
|
27
29
|
private _resizeTimer;
|
|
28
30
|
private _currentIndex;
|
|
29
31
|
private _images;
|
|
30
32
|
private _subs;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
private _resizeCanvasHeight;
|
|
34
|
+
constructor(_ione: ProductConnectorService, _appEventService: ProductEventService, _changeDetector: ChangeDetectorRef, _domSanitizer: DomSanitizer);
|
|
33
35
|
ngOnDestroy(): void;
|
|
34
36
|
handleThumbClick(index: number): void;
|
|
35
37
|
onForceRenderImage(): void;
|
|
36
|
-
|
|
38
|
+
handleShowImage(imageViewModel: ImageViewModel): void;
|
|
37
39
|
private _filterValidImages;
|
|
38
|
-
private
|
|
40
|
+
private _loadAndRescaleImages;
|
|
41
|
+
private _resizeAndSanitizeSource;
|
|
39
42
|
private _scrollCarouselToIndex;
|
|
40
43
|
}
|
|
@@ -18,6 +18,7 @@ export declare class ProductAddtocartComponent implements OnInit, OnDestroy {
|
|
|
18
18
|
createFrozenArticle: boolean;
|
|
19
19
|
configurable: boolean;
|
|
20
20
|
configuring: boolean;
|
|
21
|
+
showAddToCart: boolean;
|
|
21
22
|
isReturn: boolean;
|
|
22
23
|
fullscreen: boolean;
|
|
23
24
|
set quantity(value: number);
|
|
@@ -7,6 +7,7 @@ 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
9
|
import { ExternalCatalogStartupInfo } from '@colijnit/articleapi/build/model/external-catalog-startup-info';
|
|
10
|
+
import { ExternalSourceParameter } from '@colijnit/articleapi/build/model/external-source-parameter.bo';
|
|
10
11
|
export declare class ProductExternalSourceComponent implements OnInit, OnDestroy {
|
|
11
12
|
private _sanitizer;
|
|
12
13
|
private _productConnectorService;
|
|
@@ -32,6 +33,7 @@ export declare class ProductExternalSourceComponent implements OnInit, OnDestroy
|
|
|
32
33
|
externalSettings: any;
|
|
33
34
|
token: string;
|
|
34
35
|
variant: string;
|
|
36
|
+
urlParams: ExternalSourceParameter[];
|
|
35
37
|
private _externalSource;
|
|
36
38
|
private _externalCatalogStartupInfo;
|
|
37
39
|
private _subs;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter, OnDestroy, Renderer2 } from '@angular/core';
|
|
2
2
|
import { ProductScriptLoaderService } from '../../service/product-script-loader.service';
|
|
3
|
+
import { ExternalSourceParameter } from '@colijnit/articleapi/build/model/external-source-parameter.bo';
|
|
3
4
|
export declare class ProductHdComponent implements OnDestroy {
|
|
4
5
|
private _scriptLoader;
|
|
5
6
|
private _renderer;
|
|
@@ -8,6 +9,7 @@ export declare class ProductHdComponent implements OnDestroy {
|
|
|
8
9
|
get sku(): string;
|
|
9
10
|
token: string;
|
|
10
11
|
variant: string;
|
|
12
|
+
urlParams: ExternalSourceParameter[];
|
|
11
13
|
configuratorFinished: EventEmitter<string>;
|
|
12
14
|
configurationError: EventEmitter<any>;
|
|
13
15
|
showClass: boolean;
|
|
@@ -18,5 +20,6 @@ export declare class ProductHdComponent implements OnDestroy {
|
|
|
18
20
|
handleConfigurationFinished(event: CustomEvent): void;
|
|
19
21
|
handleError(event: CustomEvent): void;
|
|
20
22
|
private _prepareAttributes;
|
|
23
|
+
private _prepareConfiguratorUrls;
|
|
21
24
|
private _loadTheScripts;
|
|
22
25
|
}
|
|
@@ -32,6 +32,7 @@ export declare class IoneProductComponent implements OnInit, OnChanges, OnDestro
|
|
|
32
32
|
onSelectionsReceived: EventEmitter<Selection[]>;
|
|
33
33
|
onAddToQuote: EventEmitter<string>;
|
|
34
34
|
openStockEvent: EventEmitter<void>;
|
|
35
|
+
onAnswersAvailable: EventEmitter<boolean>;
|
|
35
36
|
settingsLoaded: boolean;
|
|
36
37
|
showHD: boolean;
|
|
37
38
|
private _settings;
|
|
@@ -41,6 +42,7 @@ export declare class IoneProductComponent implements OnInit, OnChanges, OnDestro
|
|
|
41
42
|
ngOnChanges(changes: SimpleChanges): void;
|
|
42
43
|
ngOnDestroy(): void;
|
|
43
44
|
private _handleAnswerInfoReceived;
|
|
45
|
+
private _handleAnswersAvailable;
|
|
44
46
|
private _handleAddToCart;
|
|
45
47
|
openStock(): void;
|
|
46
48
|
}
|
|
@@ -17,8 +17,9 @@ export declare class ProductEventService {
|
|
|
17
17
|
onImageReceived: Subject<string>;
|
|
18
18
|
onRenderStarted: Subject<void>;
|
|
19
19
|
onRenderImageReceived: Subject<string>;
|
|
20
|
-
onDraftRenderImageReceived: Subject<
|
|
20
|
+
onDraftRenderImageReceived: Subject<CustomEvent>;
|
|
21
21
|
onArticleInfoReceived: Subject<string>;
|
|
22
|
+
onAnswersAvailable: Subject<boolean>;
|
|
22
23
|
onUpdateProductInfoTab: Subject<number>;
|
|
23
24
|
errorMessage: Subject<ValidationMessage[]>;
|
|
24
25
|
}
|