@colijnit/product 261.20.0 → 261.20.2
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 +791 -530
- package/fesm2022/colijnit-product.mjs.map +1 -1
- package/index.d.ts +52 -10
- package/package.json +13 -13
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnDestroy, OnInit, EventEmitter,
|
|
2
|
+
import { OnDestroy, OnInit, 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';
|
|
@@ -21,6 +21,7 @@ import * as i2 from '@angular/common';
|
|
|
21
21
|
import { SafeHtml, DomSanitizer, SafeUrl, SafeResourceUrl } from '@angular/platform-browser';
|
|
22
22
|
import { ExternalSource } from '@colijnit/articleapi/build/model/external-source.bo';
|
|
23
23
|
import * as i3 from '@colijnit/corecomponents_v12';
|
|
24
|
+
import * as i4 from '@angular/cdk/overlay';
|
|
24
25
|
import * as i5 from '@colijnit/sharedcomponents';
|
|
25
26
|
import { ExternalSourceParameter } from '@colijnit/articleapi/build/model/external-source-parameter.bo';
|
|
26
27
|
import { CatalogDefinition } from '@colijnit/articleapi/build/model/catalog-definition.bo';
|
|
@@ -85,6 +86,7 @@ declare class ProductConnectorAdapterService implements OnDestroy {
|
|
|
85
86
|
getDocumentContent(docId: number, thumbnail?: boolean): Promise<DocumentContent>;
|
|
86
87
|
addWebSessionTransactionLine(transactionUuid: string, sku: string, quantity: number): Promise<string>;
|
|
87
88
|
getImageForCoDocument(document: CoDocument, thumb: boolean): Promise<ImageContent>;
|
|
89
|
+
savePreset(): Promise<boolean>;
|
|
88
90
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductConnectorAdapterService, never>;
|
|
89
91
|
static ɵprov: i0.ɵɵInjectableDeclaration<ProductConnectorAdapterService>;
|
|
90
92
|
}
|
|
@@ -128,6 +130,7 @@ declare class SettingsOptions {
|
|
|
128
130
|
showArButton: boolean;
|
|
129
131
|
arEnabled: boolean;
|
|
130
132
|
vrEnabled: boolean;
|
|
133
|
+
showSaveAsPresetButton: boolean;
|
|
131
134
|
}
|
|
132
135
|
|
|
133
136
|
declare enum RenderModes {
|
|
@@ -203,6 +206,7 @@ declare class ProductConnectorService implements OnDestroy {
|
|
|
203
206
|
getGeneratedArtDirectly(goodId: number, showLoader?: boolean): Promise<number>;
|
|
204
207
|
addWebSessionTransactionLine(transactionUuid: string, sku: string, quantity: number): Promise<string>;
|
|
205
208
|
getImageForCoDocument(document: CoDocument, thumb?: boolean): Promise<ImageContent>;
|
|
209
|
+
savePreset(): Promise<boolean>;
|
|
206
210
|
onShowLoaderChange(showLoader: boolean): void;
|
|
207
211
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductConnectorService, never>;
|
|
208
212
|
static ɵprov: i0.ɵɵInjectableDeclaration<ProductConnectorService>;
|
|
@@ -294,6 +298,7 @@ declare enum IconEnum {
|
|
|
294
298
|
NormalScreen = "normal_screen",
|
|
295
299
|
Quote = "quote",
|
|
296
300
|
Refresh = "refresh",
|
|
301
|
+
SaveDisk = "save_disk",
|
|
297
302
|
SaveSkinny = "save_skinny",
|
|
298
303
|
ThreeD = "three_d",
|
|
299
304
|
Truck = "truck",
|
|
@@ -319,13 +324,18 @@ declare class IconCacheService {
|
|
|
319
324
|
static ɵprov: i0.ɵɵInjectableDeclaration<IconCacheService>;
|
|
320
325
|
}
|
|
321
326
|
|
|
322
|
-
declare
|
|
327
|
+
declare enum PresetDialogType {
|
|
328
|
+
info = 0,
|
|
329
|
+
warning = 1,
|
|
330
|
+
success = 2
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
declare class ProductPageComponent implements OnInit, OnDestroy {
|
|
323
334
|
private _ione;
|
|
324
|
-
private _renderer;
|
|
325
|
-
private _changeDetector;
|
|
326
335
|
iconCache: IconCacheService;
|
|
327
336
|
settingsService: ProductSettingsService;
|
|
328
337
|
appEventService: ProductEventService;
|
|
338
|
+
private _changeDetector;
|
|
329
339
|
readonly icon: typeof IconEnum;
|
|
330
340
|
configurator: ElementRef;
|
|
331
341
|
selections: ElementRef;
|
|
@@ -356,6 +366,9 @@ declare class ProductPageComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
|
356
366
|
showAddToCart: boolean;
|
|
357
367
|
fullscreenAnimationEnd: boolean;
|
|
358
368
|
settingsLoaded: boolean;
|
|
369
|
+
showPresetDialog: boolean;
|
|
370
|
+
configPresetId: string;
|
|
371
|
+
presetDialogType: PresetDialogType;
|
|
359
372
|
private _sku;
|
|
360
373
|
private _initializedSub;
|
|
361
374
|
private _fullScreen;
|
|
@@ -363,9 +376,8 @@ declare class ProductPageComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
|
363
376
|
private _subs;
|
|
364
377
|
private _settings;
|
|
365
378
|
private _pageLoadedSubscription;
|
|
366
|
-
constructor(_ione: ProductConnectorService,
|
|
379
|
+
constructor(_ione: ProductConnectorService, iconCache: IconCacheService, settingsService: ProductSettingsService, appEventService: ProductEventService, _changeDetector: ChangeDetectorRef);
|
|
367
380
|
ngOnInit(): void;
|
|
368
|
-
ngAfterViewInit(): void;
|
|
369
381
|
ngOnDestroy(): void;
|
|
370
382
|
setInstance(event: CustomEvent): void;
|
|
371
383
|
handleStartConfiguration(): void;
|
|
@@ -374,6 +386,11 @@ declare class ProductPageComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
|
374
386
|
private _getArticle;
|
|
375
387
|
openStock(): void;
|
|
376
388
|
handlePopUpChange(event: boolean): void;
|
|
389
|
+
setConfigPresetId(presetId: string): void;
|
|
390
|
+
handleSavePreset(): void;
|
|
391
|
+
handleCancelSavePreset(event: boolean): void;
|
|
392
|
+
handleOverwritePreset(event: boolean): void;
|
|
393
|
+
private _savePreset;
|
|
377
394
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductPageComponent, never>;
|
|
378
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; }; }, { "openStockEvent": "openStockEvent"; }, never, never, false, never>;
|
|
379
396
|
}
|
|
@@ -430,10 +447,12 @@ declare class ImageViewModel {
|
|
|
430
447
|
originalSource: string;
|
|
431
448
|
}
|
|
432
449
|
declare class ImageCarouselComponent implements OnDestroy {
|
|
450
|
+
iconCacheService: IconCacheService;
|
|
433
451
|
private _ione;
|
|
434
452
|
private _appEventService;
|
|
435
453
|
private _changeDetector;
|
|
436
454
|
private _domSanitizer;
|
|
455
|
+
readonly icons: typeof IconEnum;
|
|
437
456
|
carousel: ElementRef;
|
|
438
457
|
isPopupOpen: boolean;
|
|
439
458
|
selectedImage?: ImageViewModel;
|
|
@@ -455,7 +474,7 @@ declare class ImageCarouselComponent implements OnDestroy {
|
|
|
455
474
|
private _images;
|
|
456
475
|
private _subs;
|
|
457
476
|
private _resizeCanvasHeight;
|
|
458
|
-
constructor(_ione: ProductConnectorService, _appEventService: ProductEventService, _changeDetector: ChangeDetectorRef, _domSanitizer: DomSanitizer);
|
|
477
|
+
constructor(iconCacheService: IconCacheService, _ione: ProductConnectorService, _appEventService: ProductEventService, _changeDetector: ChangeDetectorRef, _domSanitizer: DomSanitizer);
|
|
459
478
|
ngOnDestroy(): void;
|
|
460
479
|
handleThumbClick(index: number): void;
|
|
461
480
|
onForceRenderImage(): void;
|
|
@@ -464,7 +483,7 @@ declare class ImageCarouselComponent implements OnDestroy {
|
|
|
464
483
|
private _filterValidImages;
|
|
465
484
|
private _loadAndRescaleImages;
|
|
466
485
|
private _resizeAndSanitizeSource;
|
|
467
|
-
private
|
|
486
|
+
private _handleMimeTypes;
|
|
468
487
|
private _scrollCarouselToIndex;
|
|
469
488
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageCarouselComponent, never>;
|
|
470
489
|
static ɵcmp: i0.ɵɵComponentDeclaration<ImageCarouselComponent, "app-image-carousel", never, { "showRefresh": { "alias": "showRefresh"; "required": false; }; "images": { "alias": "images"; "required": false; }; }, {}, never, never, false, never>;
|
|
@@ -472,7 +491,7 @@ declare class ImageCarouselComponent implements OnDestroy {
|
|
|
472
491
|
|
|
473
492
|
declare class ImageCarouselModule {
|
|
474
493
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageCarouselModule, never>;
|
|
475
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ImageCarouselModule, [typeof ImageCarouselComponent], [typeof i2.CommonModule, typeof i3.LoaderModule, typeof i3.ScrollContainerModule], [typeof ImageCarouselComponent]>;
|
|
494
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ImageCarouselModule, [typeof ImageCarouselComponent], [typeof i2.CommonModule, typeof i3.LoaderModule, typeof i3.ScrollContainerModule, typeof i4.CdkConnectedOverlay, typeof i4.CdkOverlayOrigin, typeof i3.IconModule], [typeof ImageCarouselComponent]>;
|
|
476
495
|
static ɵinj: i0.ɵɵInjectorDeclaration<ImageCarouselModule>;
|
|
477
496
|
}
|
|
478
497
|
|
|
@@ -605,6 +624,7 @@ declare class ProductRelatedComponent {
|
|
|
605
624
|
handleThreeDButtonClick(article: ArticleListObject): void;
|
|
606
625
|
private _getJSONFromArticleObject;
|
|
607
626
|
private _loadImages;
|
|
627
|
+
private _handleImageData;
|
|
608
628
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductRelatedComponent, never>;
|
|
609
629
|
static ɵcmp: i0.ɵɵComponentDeclaration<ProductRelatedComponent, "app-product-related", never, { "refType": { "alias": "refType"; "required": false; }; "label": { "alias": "label"; "required": false; }; "externalSource": { "alias": "externalSource"; "required": false; }; "isSmallModus": { "alias": "isSmallModus"; "required": false; }; "createFrozenArticle": { "alias": "createFrozenArticle"; "required": false; }; "articles": { "alias": "articles"; "required": false; }; }, {}, never, never, false, never>;
|
|
610
630
|
}
|
|
@@ -841,9 +861,31 @@ declare class RenderCarouselModule {
|
|
|
841
861
|
static ɵinj: i0.ɵɵInjectorDeclaration<RenderCarouselModule>;
|
|
842
862
|
}
|
|
843
863
|
|
|
864
|
+
declare class PresetDialogComponent {
|
|
865
|
+
iconCache: IconCacheService;
|
|
866
|
+
readonly icon: typeof IconEnum;
|
|
867
|
+
showClass(): boolean;
|
|
868
|
+
type: PresetDialogType;
|
|
869
|
+
presetId: string;
|
|
870
|
+
cancelSavePreset: EventEmitter<boolean>;
|
|
871
|
+
overwritePreset: EventEmitter<boolean>;
|
|
872
|
+
constructor(iconCache: IconCacheService);
|
|
873
|
+
closeAndCancelPreset(): void;
|
|
874
|
+
closeAndOverwritePreset(): void;
|
|
875
|
+
protected readonly PresetDialogType: typeof PresetDialogType;
|
|
876
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PresetDialogComponent, never>;
|
|
877
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PresetDialogComponent, "co-preset-dialog", never, { "type": { "alias": "type"; "required": false; }; "presetId": { "alias": "presetId"; "required": false; }; }, { "cancelSavePreset": "cancelSavePreset"; "overwritePreset": "overwritePreset"; }, never, never, false, never>;
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
declare class PresetDialogModule {
|
|
881
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PresetDialogModule, never>;
|
|
882
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PresetDialogModule, [typeof PresetDialogComponent], [typeof i3.IconModule, typeof PipeModule, typeof ProductRelatedModule], [typeof PresetDialogComponent]>;
|
|
883
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PresetDialogModule>;
|
|
884
|
+
}
|
|
885
|
+
|
|
844
886
|
declare class ProductPageModule {
|
|
845
887
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductPageModule, never>;
|
|
846
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ProductPageModule, [typeof ProductPageComponent], [typeof i2.CommonModule, typeof ProductSelectorTypeModule, typeof ImageCarouselModule, typeof i3.IconModule, typeof ProductDescriptionModule, typeof ProductAdditionalDescriptionModule, typeof ProductPriceModule, typeof ProductAddtocartModule, typeof ProductRelatedModule, typeof ProductStockModule, typeof ProductDeliveryModule, typeof ProductInfoTabsModule, typeof PipeModule, typeof ProductDialogModule, typeof i3.LoaderModule, typeof RenderCarouselModule], [typeof ProductPageComponent]>;
|
|
888
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ProductPageModule, [typeof ProductPageComponent], [typeof i2.CommonModule, typeof ProductSelectorTypeModule, typeof ImageCarouselModule, typeof i3.IconModule, typeof ProductDescriptionModule, typeof ProductAdditionalDescriptionModule, typeof ProductPriceModule, typeof ProductAddtocartModule, typeof ProductRelatedModule, typeof ProductStockModule, typeof ProductDeliveryModule, typeof ProductInfoTabsModule, typeof PipeModule, typeof ProductDialogModule, typeof i3.LoaderModule, typeof RenderCarouselModule, typeof i3.ButtonModule, typeof PresetDialogModule], [typeof ProductPageComponent]>;
|
|
847
889
|
static ɵinj: i0.ɵɵInjectorDeclaration<ProductPageModule>;
|
|
848
890
|
}
|
|
849
891
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colijnit/product",
|
|
3
|
-
"version": "261.20.
|
|
3
|
+
"version": "261.20.2",
|
|
4
4
|
"description": "Product detail page project for iOne",
|
|
5
5
|
"private": false,
|
|
6
6
|
"peerDependencies": {
|
|
@@ -12,19 +12,19 @@
|
|
|
12
12
|
"@colijnit/transactionapi": ">=261.1.0"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@angular/animations": "
|
|
16
|
-
"@angular/cdk": "
|
|
17
|
-
"@angular/common": "
|
|
18
|
-
"@angular/compiler": "
|
|
19
|
-
"@angular/core": "
|
|
20
|
-
"@angular/elements": "
|
|
21
|
-
"@angular/forms": "
|
|
22
|
-
"@angular/platform-browser": "
|
|
23
|
-
"@angular/platform-browser-dynamic": "
|
|
24
|
-
"@angular/router": "
|
|
25
|
-
"core-js": "
|
|
15
|
+
"@angular/animations": "20.3.16",
|
|
16
|
+
"@angular/cdk": "20.2.14",
|
|
17
|
+
"@angular/common": "20.3.16",
|
|
18
|
+
"@angular/compiler": "20.3.16",
|
|
19
|
+
"@angular/core": "20.3.16",
|
|
20
|
+
"@angular/elements": "20.3.16",
|
|
21
|
+
"@angular/forms": "20.3.16",
|
|
22
|
+
"@angular/platform-browser": "20.3.16",
|
|
23
|
+
"@angular/platform-browser-dynamic": "20.3.16",
|
|
24
|
+
"@angular/router": "20.3.16",
|
|
25
|
+
"core-js": "3.47.0",
|
|
26
26
|
"rxjs": "~7.4.0",
|
|
27
|
-
"tslib": "
|
|
27
|
+
"tslib": "2.8.1",
|
|
28
28
|
"zone.js": "~0.15.1"
|
|
29
29
|
},
|
|
30
30
|
"module": "fesm2022/colijnit-product.mjs",
|