@colijnit/product 262.1.2 → 262.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/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { OnDestroy, OnInit, EventEmitter, ElementRef, ChangeDetectorRef, PipeTransform, OnChanges, Renderer2 } from '@angular/core';
3
- import { Subject, BehaviorSubject, Observable } from 'rxjs';
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';
@@ -20,8 +20,8 @@ import { ImageContent } from '@colijnit/mainapi/build/model/image-content.bo';
20
20
  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
- import * as i18 from '@colijnit/configurator';
24
- import { ConfiguringService, SceneService, ConfigurationResultObject } from '@colijnit/configurator';
23
+ import * as i17 from '@colijnit/configurator';
24
+ import { ConfiguratorEventService, ConfiguratorConnectorService, ConfiguringService, ConfigurationResultObject } from '@colijnit/configurator';
25
25
  import * as i3 from '@colijnit/corecomponents_v12';
26
26
  import * as i4 from '@angular/cdk/overlay';
27
27
  import * as i5 from '@colijnit/sharedcomponents';
@@ -89,8 +89,6 @@ declare class ProductConnectorAdapterService implements OnDestroy {
89
89
  addWebSessionTransactionLine(transactionUuid: string, sku: string, quantity: number): Promise<string>;
90
90
  getImageForCoDocument(document: CoDocument, thumb: boolean): Promise<ImageContent>;
91
91
  savePreset(): Promise<boolean>;
92
- getGoogleTranslation(sourceLang: string, targetLang: string, list: string[]): Promise<string>;
93
- googleTranslateEnabled(): Promise<boolean>;
94
92
  getDefaultLanguage(upId: number): Promise<string>;
95
93
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductConnectorAdapterService, never>;
96
94
  static ɵprov: i0.ɵɵInjectableDeclaration<ProductConnectorAdapterService>;
@@ -212,8 +210,6 @@ declare class ProductConnectorService implements OnDestroy {
212
210
  addWebSessionTransactionLine(transactionUuid: string, sku: string, quantity: number): Promise<string>;
213
211
  getImageForCoDocument(document: CoDocument, thumb?: boolean): Promise<ImageContent>;
214
212
  savePreset(): Promise<boolean>;
215
- getGoogleTranslation(sourceLang: string, targetLang: string, list: string[]): Promise<string>;
216
- googleTranslateEnabled(): Promise<boolean>;
217
213
  getDefaultLanguage(upId: number): Promise<string>;
218
214
  onShowLoaderChange(showLoader: boolean): void;
219
215
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductConnectorService, never>;
@@ -332,20 +328,15 @@ declare class IconCacheService {
332
328
  static ɵprov: i0.ɵɵInjectableDeclaration<IconCacheService>;
333
329
  }
334
330
 
335
- declare enum PresetDialogType {
336
- info = 0,
337
- warning = 1,
338
- success = 2
339
- }
340
-
341
331
  declare class ProductPageComponent implements OnInit, OnDestroy {
342
332
  iconCache: IconCacheService;
343
333
  settingsService: ProductSettingsService;
344
334
  appEventService: ProductEventService;
345
335
  private _changeDetector;
346
336
  private _ione;
337
+ private _configuratorEventService;
338
+ private _configuratorConnectorService;
347
339
  private _configuringService;
348
- private _configuratorSceneService;
349
340
  readonly icon: typeof IconEnum;
350
341
  showClass(): boolean;
351
342
  fullscreenbutton: ElementRef;
@@ -375,18 +366,14 @@ declare class ProductPageComponent implements OnInit, OnDestroy {
375
366
  showAddToCart: boolean;
376
367
  fullscreenAnimationEnd: boolean;
377
368
  settingsLoaded: boolean;
378
- showPresetDialog: boolean;
379
- configPresetId: string;
380
- presetDialogType: PresetDialogType;
381
369
  private _sku;
382
370
  private _initializedSub;
383
371
  private _fullScreen;
384
372
  private _currentView;
385
373
  private _subs;
386
374
  private _settings;
387
- private _pageLoadedSubscription;
388
375
  private _buildResult;
389
- constructor(iconCache: IconCacheService, settingsService: ProductSettingsService, appEventService: ProductEventService, _changeDetector: ChangeDetectorRef, _ione: ProductConnectorService, _configuringService: ConfiguringService, _configuratorSceneService: SceneService);
376
+ constructor(iconCache: IconCacheService, settingsService: ProductSettingsService, appEventService: ProductEventService, _changeDetector: ChangeDetectorRef, _ione: ProductConnectorService, _configuratorEventService: ConfiguratorEventService, _configuratorConnectorService: ConfiguratorConnectorService, _configuringService: ConfiguringService);
390
377
  ngOnInit(): void;
391
378
  ngOnDestroy(): void;
392
379
  setInstance(event: CustomEvent): void;
@@ -396,15 +383,7 @@ declare class ProductPageComponent implements OnInit, OnDestroy {
396
383
  private _getArticle;
397
384
  openStock(): void;
398
385
  handlePopUpChange(event: boolean): void;
399
- setConfigPresetId(presetId: string): void;
400
- handleSavePreset(): void;
401
- handleCancelSavePreset(event: boolean): void;
402
- handleOverwritePreset(event: boolean): void;
403
- handleBuildFinished(build: ConfigurationResultObject): void;
404
- private _savePreset;
405
- private _initConfigurator;
406
- private _startConfigurator;
407
- private _startSceneInit;
386
+ handleObjectAddedToScene(build: ConfigurationResultObject): void;
408
387
  private _createRenderForCarousel;
409
388
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductPageComponent, never>;
410
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>;
@@ -444,34 +423,9 @@ declare class PriceDisplayPipe implements PipeTransform {
444
423
  static ɵpipe: i0.ɵɵPipeDeclaration<PriceDisplayPipe, "priceDisplay", false>;
445
424
  }
446
425
 
447
- declare class GoogleTranslateService implements OnDestroy {
448
- private _settingsService;
449
- private _connectorService;
450
- private _clientLanguage;
451
- private _defaultLanguage;
452
- private _translations;
453
- private _initialized;
454
- private _initializedSubject;
455
- private _connectionSubject;
456
- protected googleApiEnabled: boolean;
457
- constructor(_settingsService: ProductSettingsService, _connectorService: ProductConnectorService);
458
- ngOnDestroy(): void;
459
- getTranslation(input: string): Promise<string>;
460
- static ɵfac: i0.ɵɵFactoryDeclaration<GoogleTranslateService, never>;
461
- static ɵprov: i0.ɵɵInjectableDeclaration<GoogleTranslateService>;
462
- }
463
-
464
- declare class GoogleTranslatePipe implements PipeTransform {
465
- private _googleTranslateService;
466
- constructor(_googleTranslateService: GoogleTranslateService);
467
- transform(value: string): Observable<string>;
468
- static ɵfac: i0.ɵɵFactoryDeclaration<GoogleTranslatePipe, never>;
469
- static ɵpipe: i0.ɵɵPipeDeclaration<GoogleTranslatePipe, "googleTranslate", false>;
470
- }
471
-
472
426
  declare class PipeModule {
473
427
  static ɵfac: i0.ɵɵFactoryDeclaration<PipeModule, never>;
474
- static ɵmod: i0.ɵɵNgModuleDeclaration<PipeModule, [typeof LocalizePipe, typeof PriceDisplayPipe, typeof GoogleTranslatePipe], never, [typeof LocalizePipe, typeof PriceDisplayPipe, typeof GoogleTranslatePipe]>;
428
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PipeModule, [typeof LocalizePipe, typeof PriceDisplayPipe], never, [typeof LocalizePipe, typeof PriceDisplayPipe]>;
475
429
  static ɵinj: i0.ɵɵInjectorDeclaration<PipeModule>;
476
430
  }
477
431
 
@@ -537,15 +491,16 @@ declare class ImageCarouselModule {
537
491
 
538
492
  declare class ProductDescriptionComponent implements OnInit {
539
493
  article: ArticleFullObject;
494
+ configuring: boolean;
540
495
  constructor();
541
496
  ngOnInit(): void;
542
497
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductDescriptionComponent, never>;
543
- static ɵcmp: i0.ɵɵComponentDeclaration<ProductDescriptionComponent, "app-product-description", never, { "article": { "alias": "article"; "required": false; }; }, {}, never, never, false, never>;
498
+ static ɵcmp: i0.ɵɵComponentDeclaration<ProductDescriptionComponent, "app-product-description", never, { "article": { "alias": "article"; "required": false; }; "configuring": { "alias": "configuring"; "required": false; }; }, {}, never, never, false, never>;
544
499
  }
545
500
 
546
501
  declare class ProductDescriptionModule {
547
502
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductDescriptionModule, never>;
548
- static ɵmod: i0.ɵɵNgModuleDeclaration<ProductDescriptionModule, [typeof ProductDescriptionComponent], [typeof i2.CommonModule, typeof PipeModule], [typeof ProductDescriptionComponent]>;
503
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ProductDescriptionModule, [typeof ProductDescriptionComponent], [typeof i2.CommonModule, typeof PipeModule, typeof i17.ConfigurationPresetModule], [typeof ProductDescriptionComponent]>;
549
504
  static ɵinj: i0.ɵɵInjectorDeclaration<ProductDescriptionModule>;
550
505
  }
551
506
 
@@ -902,31 +857,9 @@ declare class RenderCarouselModule {
902
857
  static ɵinj: i0.ɵɵInjectorDeclaration<RenderCarouselModule>;
903
858
  }
904
859
 
905
- declare class PresetDialogComponent {
906
- iconCache: IconCacheService;
907
- readonly icon: typeof IconEnum;
908
- showClass(): boolean;
909
- type: PresetDialogType;
910
- presetId: string;
911
- cancelSavePreset: EventEmitter<boolean>;
912
- overwritePreset: EventEmitter<boolean>;
913
- constructor(iconCache: IconCacheService);
914
- closeAndCancelPreset(): void;
915
- closeAndOverwritePreset(): void;
916
- protected readonly PresetDialogType: typeof PresetDialogType;
917
- static ɵfac: i0.ɵɵFactoryDeclaration<PresetDialogComponent, never>;
918
- 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>;
919
- }
920
-
921
- declare class PresetDialogModule {
922
- static ɵfac: i0.ɵɵFactoryDeclaration<PresetDialogModule, never>;
923
- static ɵmod: i0.ɵɵNgModuleDeclaration<PresetDialogModule, [typeof PresetDialogComponent], [typeof i3.IconModule, typeof PipeModule, typeof ProductRelatedModule], [typeof PresetDialogComponent]>;
924
- static ɵinj: i0.ɵɵInjectorDeclaration<PresetDialogModule>;
925
- }
926
-
927
860
  declare class ProductPageModule {
928
861
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductPageModule, never>;
929
- 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 i18.ConfiguratorModule, typeof i18.ConfiguratorSceneModule], [typeof ProductPageComponent]>;
862
+ 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 i17.ConfiguratorModule, typeof i17.ConfiguratorSceneModule], [typeof ProductPageComponent]>;
930
863
  static ɵinj: i0.ɵɵInjectorDeclaration<ProductPageModule>;
931
864
  }
932
865
 
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@colijnit/product",
3
- "version": "262.1.2",
3
+ "version": "262.1.5",
4
4
  "description": "Product detail page project for iOne",
5
5
  "private": false,
6
6
  "peerDependencies": {
7
7
  "@colijnit/articleapi": ">=262.1.0",
8
8
  "@colijnit/corecomponents_v12": ">=262.1.0",
9
- "@colijnit/configurator": ">=262.1.2",
9
+ "@colijnit/configurator": ">=262.1.4",
10
10
  "@colijnit/sharedcomponents": ">=262.1.0",
11
11
  "@colijnit/ioneconnector": ">=262.1.0",
12
12
  "@colijnit/mainapi": ">=262.1.1",
13
- "@colijnit/transactionapi": ">=262.1.0"
13
+ "@colijnit/transactionapi": ">=262.1.2"
14
14
  },
15
15
  "dependencies": {
16
16
  "@angular/animations": "20.3.16",
Binary file