@colijnit/product 262.1.6 → 262.1.8
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/fesm2022/colijnit-product.mjs +183 -45
- package/fesm2022/colijnit-product.mjs.map +1 -1
- package/index.d.ts +23 -8
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnDestroy, OnInit, EventEmitter, ElementRef, ChangeDetectorRef, PipeTransform, OnChanges, Renderer2 } from '@angular/core';
|
|
2
|
+
import { OnDestroy, OnInit, TemplateRef, EventEmitter, ElementRef, ChangeDetectorRef, PipeTransform, OnChanges, Renderer2 } from '@angular/core';
|
|
3
3
|
import { Subject, BehaviorSubject } from 'rxjs';
|
|
4
4
|
import { ArticleFullObject } from '@colijnit/articleapi/build/model/article-full-object';
|
|
5
5
|
import { SuperArticle } from '@colijnit/articleapi/build/model/super-article';
|
|
6
6
|
import { ConfiguratorStatisticsEnvironment } from '@colijnit/articleapi/build/model/configurator-statistics-environment';
|
|
7
7
|
import { Articles } from '@colijnit/articleapi/build/articles';
|
|
8
8
|
import { Options } from '@colijnit/ioneconnector/build/model/options';
|
|
9
|
+
import { DataServiceResponseData } from '@colijnit/ioneconnector/build/model/data-service-response-data';
|
|
9
10
|
import { DeliveryPrognosis } from '@colijnit/articleapi/build/model/delivery-prognosis';
|
|
10
11
|
import { DocumentContent } from '@colijnit/articleapi/build/model/document-content';
|
|
11
12
|
import { Transaction } from '@colijnit/transactionapi/build/transaction';
|
|
@@ -17,11 +18,11 @@ import { ArticleQuickSel } from '@colijnit/articleapi/build/model/article-quick-
|
|
|
17
18
|
import { ValidationMessage } from '@colijnit/ioneconnector/build/model/validation-message';
|
|
18
19
|
import { CoDocument } from '@colijnit/mainapi/build/model/co-document.bo';
|
|
19
20
|
import { ImageContent } from '@colijnit/mainapi/build/model/image-content.bo';
|
|
21
|
+
import * as i17 from '@colijnit/configurator';
|
|
22
|
+
import { ConfiguratorConnectorService, ConfiguratorEventService, ConfiguringService, ConfigurationResultObject } from '@colijnit/configurator';
|
|
20
23
|
import * as i2 from '@angular/common';
|
|
21
24
|
import { SafeHtml, DomSanitizer, SafeUrl, SafeResourceUrl } from '@angular/platform-browser';
|
|
22
25
|
import { ExternalSource } from '@colijnit/articleapi/build/model/external-source.bo';
|
|
23
|
-
import * as i17 from '@colijnit/configurator';
|
|
24
|
-
import { ConfiguratorEventService, ConfiguratorConnectorService, ConfiguringService, ConfigurationResultObject } from '@colijnit/configurator';
|
|
25
26
|
import * as i3 from '@colijnit/corecomponents_v12';
|
|
26
27
|
import * as i4 from '@angular/cdk/overlay';
|
|
27
28
|
import * as i5 from '@colijnit/sharedcomponents';
|
|
@@ -63,13 +64,14 @@ declare class ProductEventService {
|
|
|
63
64
|
|
|
64
65
|
declare class ProductConnectorAdapterService implements OnDestroy {
|
|
65
66
|
private _eventService;
|
|
67
|
+
private _configuratorConnectorService;
|
|
66
68
|
readonly showLoader: Subject<boolean>;
|
|
67
69
|
articleConnector?: Articles;
|
|
68
70
|
transactionConnector: Transaction;
|
|
69
71
|
mainConnector: MainApi;
|
|
70
72
|
private _boFactory;
|
|
71
73
|
private _subs;
|
|
72
|
-
constructor(_eventService: ProductEventService);
|
|
74
|
+
constructor(_eventService: ProductEventService, _configuratorConnectorService: ConfiguratorConnectorService);
|
|
73
75
|
ngOnDestroy(): void;
|
|
74
76
|
initConnector(options: Options): Promise<void>;
|
|
75
77
|
setInstance(instanceId: string): void;
|
|
@@ -90,6 +92,7 @@ declare class ProductConnectorAdapterService implements OnDestroy {
|
|
|
90
92
|
getImageForCoDocument(document: CoDocument, thumb: boolean): Promise<ImageContent>;
|
|
91
93
|
savePreset(): Promise<boolean>;
|
|
92
94
|
getDefaultLanguage(upId: number): Promise<string>;
|
|
95
|
+
storeConfiguratorPreset(): Promise<DataServiceResponseData>;
|
|
93
96
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductConnectorAdapterService, never>;
|
|
94
97
|
static ɵprov: i0.ɵɵInjectableDeclaration<ProductConnectorAdapterService>;
|
|
95
98
|
}
|
|
@@ -238,6 +241,7 @@ declare class IoneProductComponent implements OnInit, OnDestroy {
|
|
|
238
241
|
private _settingsService;
|
|
239
242
|
private _productConnectorService;
|
|
240
243
|
private _localStorageService;
|
|
244
|
+
externalButtonsTpl: TemplateRef<any>;
|
|
241
245
|
sku: string;
|
|
242
246
|
isReturn: boolean;
|
|
243
247
|
showRelatedProductsPopup: boolean;
|
|
@@ -246,6 +250,7 @@ declare class IoneProductComponent implements OnInit, OnDestroy {
|
|
|
246
250
|
get settings(): any;
|
|
247
251
|
handleAddArticleInternally: boolean;
|
|
248
252
|
handleAddToCartInternally: boolean;
|
|
253
|
+
externalButtonTemplate: TemplateRef<any>;
|
|
249
254
|
onAddToCart: EventEmitter<{
|
|
250
255
|
article: string | ArticleListObjectExtended;
|
|
251
256
|
quantity: number;
|
|
@@ -271,7 +276,7 @@ declare class IoneProductComponent implements OnInit, OnDestroy {
|
|
|
271
276
|
private _handleAddToCart;
|
|
272
277
|
openStock(): void;
|
|
273
278
|
static ɵfac: i0.ɵɵFactoryDeclaration<IoneProductComponent, never>;
|
|
274
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IoneProductComponent, "app-ione-product", never, { "sku": { "alias": "sku"; "required": false; }; "isReturn": { "alias": "isReturn"; "required": false; }; "showRelatedProductsPopup": { "alias": "showRelatedProductsPopup"; "required": false; }; "enableRenderCarousel": { "alias": "enableRenderCarousel"; "required": false; }; "settings": { "alias": "settings"; "required": false; }; "handleAddArticleInternally": { "alias": "handleAddArticleInternally"; "required": false; }; "handleAddToCartInternally": { "alias": "handleAddToCartInternally"; "required": false; }; }, { "onAddToCart": "onAddToCart"; "forceRenderImage": "forceRenderImage"; "getRenderForRenderCarousel": "getRenderForRenderCarousel"; "onAlternativeClick": "onAlternativeClick"; "onArticleInfoReceived": "onArticleInfoReceived"; "onArticleReceived": "onArticleReceived"; "onSelectionsReceived": "onSelectionsReceived"; "onAddToQuote": "onAddToQuote"; "openStockEvent": "openStockEvent"; "onAnswersAvailable": "onAnswersAvailable"; },
|
|
279
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IoneProductComponent, "app-ione-product", never, { "sku": { "alias": "sku"; "required": false; }; "isReturn": { "alias": "isReturn"; "required": false; }; "showRelatedProductsPopup": { "alias": "showRelatedProductsPopup"; "required": false; }; "enableRenderCarousel": { "alias": "enableRenderCarousel"; "required": false; }; "settings": { "alias": "settings"; "required": false; }; "handleAddArticleInternally": { "alias": "handleAddArticleInternally"; "required": false; }; "handleAddToCartInternally": { "alias": "handleAddToCartInternally"; "required": false; }; "externalButtonTemplate": { "alias": "externalButtonTemplate"; "required": false; }; }, { "onAddToCart": "onAddToCart"; "forceRenderImage": "forceRenderImage"; "getRenderForRenderCarousel": "getRenderForRenderCarousel"; "onAlternativeClick": "onAlternativeClick"; "onArticleInfoReceived": "onArticleInfoReceived"; "onArticleReceived": "onArticleReceived"; "onSelectionsReceived": "onSelectionsReceived"; "onAddToQuote": "onAddToQuote"; "openStockEvent": "openStockEvent"; "onAnswersAvailable": "onAnswersAvailable"; }, ["externalButtonsTpl"], ["[externalButtons]"], false, never>;
|
|
275
280
|
}
|
|
276
281
|
|
|
277
282
|
declare class StockAndDelivery {
|
|
@@ -348,6 +353,7 @@ declare class ProductPageComponent implements OnInit, OnDestroy {
|
|
|
348
353
|
isReturn: boolean;
|
|
349
354
|
showRelatedProductsPopup: boolean;
|
|
350
355
|
enableRenderCarousel: boolean;
|
|
356
|
+
externalButtonTemplate: TemplateRef<any>;
|
|
351
357
|
openStockEvent: EventEmitter<void>;
|
|
352
358
|
get settings(): any;
|
|
353
359
|
set fullScreen(value: boolean);
|
|
@@ -386,7 +392,7 @@ declare class ProductPageComponent implements OnInit, OnDestroy {
|
|
|
386
392
|
handleObjectAddedToScene(build: ConfigurationResultObject): void;
|
|
387
393
|
private _createRenderForCarousel;
|
|
388
394
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductPageComponent, never>;
|
|
389
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProductPageComponent, "app-product-page", never, { "sku": { "alias": "sku"; "required": false; }; "settings": { "alias": "settings"; "required": false; }; "externalSource": { "alias": "externalSource"; "required": false; }; "createFrozenArticle": { "alias": "createFrozenArticle"; "required": false; }; "isReturn": { "alias": "isReturn"; "required": false; }; "showRelatedProductsPopup": { "alias": "showRelatedProductsPopup"; "required": false; }; "enableRenderCarousel": { "alias": "enableRenderCarousel"; "required": false; }; }, { "openStockEvent": "openStockEvent"; }, never, never, false, never>;
|
|
395
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductPageComponent, "app-product-page", never, { "sku": { "alias": "sku"; "required": false; }; "settings": { "alias": "settings"; "required": false; }; "externalSource": { "alias": "externalSource"; "required": false; }; "createFrozenArticle": { "alias": "createFrozenArticle"; "required": false; }; "isReturn": { "alias": "isReturn"; "required": false; }; "showRelatedProductsPopup": { "alias": "showRelatedProductsPopup"; "required": false; }; "enableRenderCarousel": { "alias": "enableRenderCarousel"; "required": false; }; "externalButtonTemplate": { "alias": "externalButtonTemplate"; "required": false; }; }, { "openStockEvent": "openStockEvent"; }, never, never, false, never>;
|
|
390
396
|
}
|
|
391
397
|
|
|
392
398
|
declare class ProductSelectorTypeComponent implements OnInit {
|
|
@@ -446,10 +452,14 @@ declare class ImageCarouselComponent implements OnDestroy {
|
|
|
446
452
|
private _appEventService;
|
|
447
453
|
private _changeDetector;
|
|
448
454
|
private _domSanitizer;
|
|
455
|
+
iconCache: IconCacheService;
|
|
449
456
|
readonly icons: typeof IconEnum;
|
|
450
457
|
carousel: ElementRef;
|
|
458
|
+
thumbScroller?: ElementRef<HTMLElement>;
|
|
451
459
|
isPopupOpen: boolean;
|
|
452
460
|
selectedImage?: ImageViewModel;
|
|
461
|
+
canScrollThumbsLeft: boolean;
|
|
462
|
+
canScrollThumbsRight: boolean;
|
|
453
463
|
onEsc(): void;
|
|
454
464
|
showRefresh: boolean;
|
|
455
465
|
set images(value: (CoDocument | string)[]);
|
|
@@ -468,17 +478,21 @@ declare class ImageCarouselComponent implements OnDestroy {
|
|
|
468
478
|
private _images;
|
|
469
479
|
private _subs;
|
|
470
480
|
private _resizeCanvasHeight;
|
|
471
|
-
constructor(iconCacheService: IconCacheService, _ione: ProductConnectorService, _appEventService: ProductEventService, _changeDetector: ChangeDetectorRef, _domSanitizer: DomSanitizer);
|
|
481
|
+
constructor(iconCacheService: IconCacheService, _ione: ProductConnectorService, _appEventService: ProductEventService, _changeDetector: ChangeDetectorRef, _domSanitizer: DomSanitizer, iconCache: IconCacheService);
|
|
472
482
|
ngOnDestroy(): void;
|
|
473
483
|
handleThumbClick(index: number): void;
|
|
474
484
|
onForceRenderImage(): void;
|
|
475
485
|
handleShowImage(imageViewModel: ImageViewModel): void;
|
|
476
486
|
closePopup(): void;
|
|
487
|
+
scrollThumbs(direction: -1 | 1): void;
|
|
488
|
+
private scrollActiveThumbIntoView;
|
|
489
|
+
updateThumbScrollState(): void;
|
|
477
490
|
private _filterValidImages;
|
|
478
491
|
private _loadAndRescaleImages;
|
|
479
492
|
private _resizeAndSanitizeSource;
|
|
480
493
|
private _handleMimeTypes;
|
|
481
494
|
private _scrollCarouselToIndex;
|
|
495
|
+
protected readonly icon: typeof IconEnum;
|
|
482
496
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageCarouselComponent, never>;
|
|
483
497
|
static ɵcmp: i0.ɵɵComponentDeclaration<ImageCarouselComponent, "app-image-carousel", never, { "showRefresh": { "alias": "showRefresh"; "required": false; }; "images": { "alias": "images"; "required": false; }; }, {}, never, never, false, never>;
|
|
484
498
|
}
|
|
@@ -909,6 +923,7 @@ declare class ProductExternalSourceComponent implements OnInit, OnDestroy {
|
|
|
909
923
|
private _sanitizer;
|
|
910
924
|
private _productConnectorService;
|
|
911
925
|
private _appEventService;
|
|
926
|
+
externalButtonsTpl: TemplateRef<any>;
|
|
912
927
|
sku: string;
|
|
913
928
|
catalogDefinition: CatalogDefinition;
|
|
914
929
|
ownSettings: any;
|
|
@@ -947,7 +962,7 @@ declare class ProductExternalSourceComponent implements OnInit, OnDestroy {
|
|
|
947
962
|
private switchToConfigurator;
|
|
948
963
|
private switchToSource;
|
|
949
964
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductExternalSourceComponent, never>;
|
|
950
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProductExternalSourceComponent, "co-product-external-source", never, { "sku": { "alias": "sku"; "required": false; }; "catalogDefinition": { "alias": "catalogDefinition"; "required": false; }; "ownSettings": { "alias": "ownSettings"; "required": false; }; "externalSource": { "alias": "externalSource"; "required": false; }; "externalCatalogStartupInfo": { "alias": "externalCatalogStartupInfo"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, { "addToCart": "addToCart"; "addToQuote": "addToQuote"; "alternativeClick": "alternativeClick"; "configuratorFinished": "configuratorFinished"; },
|
|
965
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductExternalSourceComponent, "co-product-external-source", never, { "sku": { "alias": "sku"; "required": false; }; "catalogDefinition": { "alias": "catalogDefinition"; "required": false; }; "ownSettings": { "alias": "ownSettings"; "required": false; }; "externalSource": { "alias": "externalSource"; "required": false; }; "externalCatalogStartupInfo": { "alias": "externalCatalogStartupInfo"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, { "addToCart": "addToCart"; "addToQuote": "addToQuote"; "alternativeClick": "alternativeClick"; "configuratorFinished": "configuratorFinished"; }, ["externalButtonsTpl"], ["[externalButtons]"], false, never>;
|
|
951
966
|
}
|
|
952
967
|
|
|
953
968
|
declare class ProductExternalSourceModule {
|