@colijnit/product 260.1.2 → 260.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/image-carousel/image-carousel.component.d.ts +6 -2
- package/app/components/product-related/product-related.component.d.ts +1 -0
- package/bundles/colijnit-product.umd.js +70 -48
- 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 +100 -86
- package/esm2015/app/components/image-carousel/image-carousel.module.js +6 -2
- package/esm2015/app/components/product-related/product-related.component.js +7 -2
- package/esm2015/app/product-version.js +3 -3
- package/fesm2015/colijnit-product.js +111 -91
- package/fesm2015/colijnit-product.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,17 +2,21 @@ import { ChangeDetectorRef, ElementRef, OnDestroy } from '@angular/core';
|
|
|
2
2
|
import { CoDocument } from '@colijnit/mainapi/build/model/co-document.bo';
|
|
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';
|
|
5
6
|
import { DomSanitizer, SafeUrl } from '@angular/platform-browser';
|
|
7
|
+
import { IconCacheService } from '../../service/icon-cache.service';
|
|
6
8
|
export declare class ImageViewModel {
|
|
7
9
|
image: CoDocument | string;
|
|
8
10
|
source: SafeUrl;
|
|
9
11
|
originalSource: string;
|
|
10
12
|
}
|
|
11
13
|
export declare class ImageCarouselComponent implements OnDestroy {
|
|
14
|
+
iconCacheService: IconCacheService;
|
|
12
15
|
private _ione;
|
|
13
16
|
private _appEventService;
|
|
14
17
|
private _changeDetector;
|
|
15
18
|
private _domSanitizer;
|
|
19
|
+
readonly icons: typeof IconEnum;
|
|
16
20
|
carousel: ElementRef;
|
|
17
21
|
isPopupOpen: boolean;
|
|
18
22
|
selectedImage?: ImageViewModel;
|
|
@@ -34,7 +38,7 @@ export declare class ImageCarouselComponent implements OnDestroy {
|
|
|
34
38
|
private _images;
|
|
35
39
|
private _subs;
|
|
36
40
|
private _resizeCanvasHeight;
|
|
37
|
-
constructor(_ione: ProductConnectorService, _appEventService: ProductEventService, _changeDetector: ChangeDetectorRef, _domSanitizer: DomSanitizer);
|
|
41
|
+
constructor(iconCacheService: IconCacheService, _ione: ProductConnectorService, _appEventService: ProductEventService, _changeDetector: ChangeDetectorRef, _domSanitizer: DomSanitizer);
|
|
38
42
|
ngOnDestroy(): void;
|
|
39
43
|
handleThumbClick(index: number): void;
|
|
40
44
|
onForceRenderImage(): void;
|
|
@@ -43,6 +47,6 @@ export declare class ImageCarouselComponent implements OnDestroy {
|
|
|
43
47
|
private _filterValidImages;
|
|
44
48
|
private _loadAndRescaleImages;
|
|
45
49
|
private _resizeAndSanitizeSource;
|
|
46
|
-
private
|
|
50
|
+
private _handleMimeTypes;
|
|
47
51
|
private _scrollCarouselToIndex;
|
|
48
52
|
}
|
|
@@ -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-list-object-extended.bo'), require('@colijnit/mainapi/build/model/image-content.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.bo'), require('@colijnit/articleapi/build/model/configurator-statistics-environment')
|
|
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', '@colijnit/mainapi/build/model/image-content.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.bo', '@colijnit/articleapi/build/model/configurator-statistics-environment'
|
|
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.imageContent_bo, global.ng.common.http, global.stringUtils, global.ng.common, global.ng.animations, global.ng.platformBrowser, global.corecomponents, global.coDocument_bo, global.
|
|
5
|
-
})(this, (function (exports, i0, rxjs, options, articleFullObject, superArticle, articles, deliveryPrognosis, documentContent, businessObjectFactory, transaction, mainapi, transactionInfoResponse_bo, articleListObjectExtended_bo, imageContent_bo, i1, stringUtils, common, animations, i1$1, corecomponents, coDocument_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('@colijnit/mainapi/build/model/image-content.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.bo'), require('@angular/cdk/overlay'), require('@colijnit/corecomponents_v12'), require('@colijnit/articleapi/build/model/configurator-statistics-environment')) :
|
|
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', '@colijnit/mainapi/build/model/image-content.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.bo', '@angular/cdk/overlay', '@colijnit/corecomponents_v12', '@colijnit/articleapi/build/model/configurator-statistics-environment'], 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.imageContent_bo, global.ng.common.http, global.stringUtils, global.ng.common, global.ng.animations, global.ng.platformBrowser, global.corecomponents, global.coDocument_bo, global.ng.cdk.overlay, global.corecomponents_v12, global.configuratorStatisticsEnvironment));
|
|
5
|
+
})(this, (function (exports, i0, rxjs, options, articleFullObject, superArticle, articles, deliveryPrognosis, documentContent, businessObjectFactory, transaction, mainapi, transactionInfoResponse_bo, articleListObjectExtended_bo, imageContent_bo, i1, stringUtils, common, animations, i1$1, corecomponents, coDocument_bo, overlay, corecomponents_v12, configuratorStatisticsEnvironment) { '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 = "260.1.
|
|
35
|
-
this.publishDate = "
|
|
34
|
+
this.symVer = "260.1.3";
|
|
35
|
+
this.publishDate = "24-3-2026 16:21:40";
|
|
36
36
|
}
|
|
37
37
|
return Version;
|
|
38
38
|
}());
|
|
@@ -2078,12 +2078,14 @@
|
|
|
2078
2078
|
return ImageViewModel;
|
|
2079
2079
|
}());
|
|
2080
2080
|
var ImageCarouselComponent = /** @class */ (function () {
|
|
2081
|
-
function ImageCarouselComponent(_ione, _appEventService, _changeDetector, _domSanitizer) {
|
|
2081
|
+
function ImageCarouselComponent(iconCacheService, _ione, _appEventService, _changeDetector, _domSanitizer) {
|
|
2082
2082
|
var _this = this;
|
|
2083
|
+
this.iconCacheService = iconCacheService;
|
|
2083
2084
|
this._ione = _ione;
|
|
2084
2085
|
this._appEventService = _appEventService;
|
|
2085
2086
|
this._changeDetector = _changeDetector;
|
|
2086
2087
|
this._domSanitizer = _domSanitizer;
|
|
2088
|
+
this.icons = IconEnum;
|
|
2087
2089
|
this.isPopupOpen = false;
|
|
2088
2090
|
this.showRefresh = false;
|
|
2089
2091
|
this.resizing = false;
|
|
@@ -2232,51 +2234,63 @@
|
|
|
2232
2234
|
var ctx = resizeCanvas.getContext('2d');
|
|
2233
2235
|
var img = document.createElement('img');
|
|
2234
2236
|
img.crossOrigin = 'anonymous';
|
|
2237
|
+
var handleFallback = function () {
|
|
2238
|
+
// When a CDN does not accept our tainted canvas, we fallback to the original source.
|
|
2239
|
+
imageViewModel.source = _this._domSanitizer.bypassSecurityTrustUrl(source);
|
|
2240
|
+
imageViewModel.originalSource = source;
|
|
2241
|
+
_this._changeDetector.detectChanges();
|
|
2242
|
+
};
|
|
2243
|
+
img.onerror = function () {
|
|
2244
|
+
handleFallback();
|
|
2245
|
+
};
|
|
2235
2246
|
img.onload = function () {
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2247
|
+
try {
|
|
2248
|
+
ctx.imageSmoothingEnabled = true;
|
|
2249
|
+
ctx.imageSmoothingQuality = 'high';
|
|
2250
|
+
var aspect = img.width / img.height;
|
|
2251
|
+
var newW = _this._resizeCanvasHeight;
|
|
2252
|
+
var newH = _this._resizeCanvasHeight;
|
|
2253
|
+
if (img.width > img.height) {
|
|
2254
|
+
newH = _this._resizeCanvasHeight / aspect;
|
|
2255
|
+
}
|
|
2256
|
+
else {
|
|
2257
|
+
newW = _this._resizeCanvasHeight * aspect;
|
|
2258
|
+
}
|
|
2259
|
+
resizeCanvas.width = Math.round(newW);
|
|
2260
|
+
resizeCanvas.height = Math.round(newH);
|
|
2261
|
+
ctx.clearRect(0, 0, resizeCanvas.width, resizeCanvas.height);
|
|
2262
|
+
ctx.drawImage(img, 0, 0, resizeCanvas.width, resizeCanvas.height);
|
|
2263
|
+
var mime = _this._handleMimeTypes(source);
|
|
2264
|
+
var resizedSource = resizeCanvas.toDataURL(mime);
|
|
2265
|
+
imageViewModel.source = _this._domSanitizer.bypassSecurityTrustUrl(resizedSource);
|
|
2266
|
+
imageViewModel.originalSource = source;
|
|
2267
|
+
_this._changeDetector.detectChanges();
|
|
2245
2268
|
}
|
|
2246
|
-
|
|
2247
|
-
|
|
2269
|
+
catch (error) {
|
|
2270
|
+
handleFallback();
|
|
2248
2271
|
}
|
|
2249
|
-
resizeCanvas.width = Math.round(newW);
|
|
2250
|
-
resizeCanvas.height = Math.round(newH);
|
|
2251
|
-
// Ensure transparent background before drawing
|
|
2252
|
-
ctx.clearRect(0, 0, resizeCanvas.width, resizeCanvas.height);
|
|
2253
|
-
ctx.drawImage(img, 0, 0, resizeCanvas.width, resizeCanvas.height);
|
|
2254
|
-
var mime = _this._detectPreferredMime(source);
|
|
2255
|
-
var resizedSource = mime === 'image/jpeg'
|
|
2256
|
-
? resizeCanvas.toDataURL('image/jpeg', 0.92) // only if original was JPEG
|
|
2257
|
-
: resizeCanvas.toDataURL(mime); // PNG/WebP keep alpha
|
|
2258
|
-
imageViewModel.source = _this._domSanitizer.bypassSecurityTrustUrl(resizedSource);
|
|
2259
|
-
imageViewModel.originalSource = source;
|
|
2260
|
-
_this._changeDetector.detectChanges();
|
|
2261
2272
|
};
|
|
2262
2273
|
img.src = source;
|
|
2263
2274
|
};
|
|
2264
|
-
ImageCarouselComponent.prototype.
|
|
2265
|
-
//
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2275
|
+
ImageCarouselComponent.prototype._handleMimeTypes = function (imageSource) {
|
|
2276
|
+
// When we got base64 data
|
|
2277
|
+
if (imageSource.startsWith('data:')) {
|
|
2278
|
+
var match = imageSource.match(/^data:(image\/(png|webp|jpeg|jpg))/i);
|
|
2279
|
+
return match ? match[1].toLowerCase() : 'image/png';
|
|
2280
|
+
}
|
|
2281
|
+
// when we got an URL.
|
|
2282
|
+
var extension = imageSource.substring(imageSource.lastIndexOf('.') + 1).toLowerCase();
|
|
2283
|
+
switch (extension) {
|
|
2284
|
+
case 'png':
|
|
2285
|
+
return 'image/png';
|
|
2286
|
+
case 'webp':
|
|
2287
|
+
return 'image/webp';
|
|
2288
|
+
case 'jpg':
|
|
2289
|
+
case 'jpeg':
|
|
2290
|
+
return 'image/jpeg';
|
|
2291
|
+
default:
|
|
2292
|
+
return 'image/png';
|
|
2271
2293
|
}
|
|
2272
|
-
var lower = source.toLowerCase();
|
|
2273
|
-
if (lower.endsWith('.png'))
|
|
2274
|
-
return 'image/png';
|
|
2275
|
-
if (lower.endsWith('.webp'))
|
|
2276
|
-
return 'image/webp';
|
|
2277
|
-
if (lower.endsWith('.jpg') || lower.endsWith('.jpeg'))
|
|
2278
|
-
return 'image/jpeg';
|
|
2279
|
-
return 'image/png';
|
|
2280
2294
|
};
|
|
2281
2295
|
ImageCarouselComponent.prototype._scrollCarouselToIndex = function () {
|
|
2282
2296
|
if (this.currentIndex > -1 && this.currentIndex <= this.images.length) {
|
|
@@ -2295,12 +2309,13 @@
|
|
|
2295
2309
|
ImageCarouselComponent.decorators = [
|
|
2296
2310
|
{ type: i0.Component, args: [{
|
|
2297
2311
|
selector: 'app-image-carousel',
|
|
2298
|
-
template: "\n
|
|
2312
|
+
template: "\n <div id=\"product_page_carousel\">\n <div id=\"product_page_carousel_items\">\n <co-loader [isShown]=\"true\" *ngIf=\"showLoader\"></co-loader>\n <div #carousel class=\"inner-carousel\">\n <!-- This has been taken out of the for loop to prevent flashing images when updating. -->\n <div *ngIf=\"imageViewModels[0]\" class=\"carousel-item\" [id]=\"'slide-0'\" [class.active]=\"isCurrentIndex(0)\"\n (click)=\"handleShowImage(imageViewModels[0])\">\n <img [src]=\"imageViewModels[0].source\">\n </div>\n <div *ngFor=\"let imageViewModel of imageViewModels.slice(1); let index = index\" class=\"carousel-item\"\n [id]=\"'slide-' + (index + 1)\" [class.active]=\"isCurrentIndex((index + 1))\" (click)=\"handleShowImage(imageViewModel)\">\n <img [src]=\"imageViewModel.source\">\n </div>\n <div class=\"carousel-scroller-layer\" *ngIf=\"imageViewModels && imageViewModels.length > 1\">\n <div class=\"carousel-item-scroller prev\" (click)=\"gotoPrevSlide()\" *ngIf=\"currentIndex > 0\"></div>\n <div class=\"carousel-item-scroller next\" (click)=\"gotoNextSlide()\" *ngIf=\"currentIndex < images.length - 1\"></div>\n </div>\n </div>\n <!--\n <co-icon class=\"selector-type-icon refresh-button\" [iconData]=\"iconCache.getIcon(icons.Refresh)\" (click)=\"onForceRenderImage()\" [class.loading]=\"showLoader\" *ngIf=\"showRefresh\"></co-icon>\n -->\n </div>\n\n <div id=\"product_page_carousel_thumbs\">\n <co-scroll-container class=\"scroll-container\" *ngIf=\"imageViewModels && imageViewModels.length > 1\">\n <div *ngFor=\"let imageViewModel of imageViewModels; let index = index\" class=\"carousel-thumb\"\n [class.active]=\"index === currentIndex\">\n <img [src]=\"imageViewModel.source\" (click)=\"handleThumbClick(index)\"/>\n </div>\n </co-scroll-container>\n </div>\n </div>\n\n <div cdkOverlayOrigin #trigger=\"cdkOverlayOrigin\"></div>\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"trigger\"\n [cdkConnectedOverlayOpen]=\"isPopupOpen\"\n [cdkConnectedOverlayHasBackdrop]=\"true\"\n (backdropClick)=\"closePopup()\">\n <div class=\"image-modal\" role=\"dialog\" aria-modal=\"true\" aria-label=\"Image preview\">\n <div class=\"image-modal__content\">\n <button class=\"image-modal__close\" type=\"button\" aria-label=\"Close\" (click)=\"closePopup()\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.CrossSkinny)\"></co-icon>\n </button>\n <img [src]=\"selectedImage?.originalSource\" alt=\"Image preview\"/>\n </div>\n </div>\n </ng-template>\n\n ",
|
|
2299
2313
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
2300
2314
|
styles: [":host{max-height:540px;height:100%;position:relative}:host:not(.resizing) .inner-carousel{scroll-behavior:smooth;-webkit-overflow-scrolling:touch;scroll-snap-type:x mandatory}#product_page_carousel{position:relative}#product_page_carousel .refresh-button{position:absolute;bottom:10px;right:10px;background:#fff}#product_page_carousel .refresh-button.loading{animation:spin 1s linear infinite}#product_page_carousel .refresh-button:hover{box-shadow:none;background:#74B77F;transition:all .2s ease-in-out}#product_page_carousel .refresh-button:hover ::ng-deep svg path{fill:#fff!important}#product_page_carousel #product_page_carousel_items{position:relative;margin-bottom:10px}#product_page_carousel #product_page_carousel_items ::ng-deep co-loader{position:absolute}#product_page_carousel .inner-carousel{display:flex;flex-direction:row;align-items:center;overflow:hidden;max-height:500px;border:1px solid #efefef}#product_page_carousel .carousel-item{max-height:500px;width:100%;display:flex;cursor:zoom-in;flex-shrink:0;flex-grow:0}#product_page_carousel .carousel-item img{width:100%;height:auto;-o-object-fit:contain;object-fit:contain}#product_page_carousel .carousel-scroller-layer{height:100%;width:100%;position:absolute;pointer-events:none;top:0;left:0}#product_page_carousel #product_page_carousel_thumbs{display:flex;justify-content:flex-start;height:80px;margin-left:auto;margin-right:auto}#product_page_carousel #product_page_carousel_thumbs ::ng-deep co-scroll-container{padding:0 22px}#product_page_carousel #product_page_carousel_thumbs ::ng-deep co-scroll-container .content-wrapper{padding:0}#product_page_carousel #product_page_carousel_thumbs .carousel-thumb{opacity:1;cursor:pointer;transition:all .2s ease;padding:4px;border:1px solid #f6f5f4}#product_page_carousel #product_page_carousel_thumbs .carousel-thumb.active,#product_page_carousel #product_page_carousel_thumbs .carousel-thumb:hover{border-color:#22313c}#product_page_carousel #product_page_carousel_thumbs .carousel-thumb:not(:last-child){margin-right:10px}#product_page_carousel #product_page_carousel_thumbs .carousel-thumb img{height:68px}.image-modal{position:fixed;inset:0;background:rgba(0,0,0,.8);display:flex;align-items:center;justify-content:center;z-index:1000}.image-modal__content{position:relative;max-width:90vw;max-height:90vh}.image-modal__content img{max-width:90vw;max-height:90vh;-o-object-fit:contain;object-fit:contain;display:block}.image-modal__close{position:fixed;top:15px;right:30px;background:transparent;border:none;color:#fff;font-size:60px;line-height:1;cursor:pointer}@media screen and (max-width: 650px){#product_page_carousel_thumbs{height:57px!important}#product_page_carousel_thumbs .carousel-thumb img{height:50px!important}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"]
|
|
2301
2315
|
},] }
|
|
2302
2316
|
];
|
|
2303
2317
|
ImageCarouselComponent.ctorParameters = function () { return [
|
|
2318
|
+
{ type: IconCacheService },
|
|
2304
2319
|
{ type: ProductConnectorService },
|
|
2305
2320
|
{ type: ProductEventService },
|
|
2306
2321
|
{ type: i0.ChangeDetectorRef },
|
|
@@ -2328,7 +2343,9 @@
|
|
|
2328
2343
|
common.CommonModule,
|
|
2329
2344
|
corecomponents.LoaderModule,
|
|
2330
2345
|
// IconModule,
|
|
2331
|
-
corecomponents.ScrollContainerModule
|
|
2346
|
+
corecomponents.ScrollContainerModule,
|
|
2347
|
+
overlay.OverlayModule,
|
|
2348
|
+
corecomponents_v12.IconModule
|
|
2332
2349
|
],
|
|
2333
2350
|
declarations: [
|
|
2334
2351
|
ImageCarouselComponent
|
|
@@ -2890,13 +2907,18 @@
|
|
|
2890
2907
|
return __generator(this, function (_a) {
|
|
2891
2908
|
this.articleViewModels.forEach(function (avm) {
|
|
2892
2909
|
if (avm.article.image) {
|
|
2893
|
-
_this._iOne.getImageForCoDocument(avm.article.image, false).then(function (imageContent) { return avm
|
|
2910
|
+
_this._iOne.getImageForCoDocument(avm.article.image, false).then(function (imageContent) { return _this._handleImageData(avm, imageContent); });
|
|
2894
2911
|
}
|
|
2895
2912
|
});
|
|
2896
2913
|
return [2 /*return*/];
|
|
2897
2914
|
});
|
|
2898
2915
|
});
|
|
2899
2916
|
};
|
|
2917
|
+
ProductRelatedComponent.prototype._handleImageData = function (avm, imageContent) {
|
|
2918
|
+
if (imageContent && imageContent.image) {
|
|
2919
|
+
avm.imageData = imageContent.image;
|
|
2920
|
+
}
|
|
2921
|
+
};
|
|
2900
2922
|
return ProductRelatedComponent;
|
|
2901
2923
|
}());
|
|
2902
2924
|
ProductRelatedComponent.decorators = [
|