@colijnit/product 258.1.4 → 258.1.6

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.
@@ -0,0 +1,14 @@
1
+ export declare class RootStorageObject {
2
+ id: string;
3
+ }
4
+ export declare class LocalStorageService {
5
+ readonly storage: Storage;
6
+ protected _appRoot: string;
7
+ protected _storageObj: RootStorageObject;
8
+ constructor();
9
+ save(): void;
10
+ clear(): void;
11
+ set id(id: string);
12
+ get id(): string;
13
+ protected _initLocalStorageObj(): void;
14
+ }
@@ -14,6 +14,9 @@ export declare class ImageCarouselComponent implements OnDestroy {
14
14
  private _changeDetector;
15
15
  private _domSanitizer;
16
16
  carousel: ElementRef;
17
+ isPopupOpen: boolean;
18
+ selectedImage?: ImageViewModel;
19
+ onEsc(): void;
17
20
  showRefresh: boolean;
18
21
  set images(value: (CoDocument | string)[]);
19
22
  get images(): (CoDocument | string)[];
@@ -36,8 +39,10 @@ export declare class ImageCarouselComponent implements OnDestroy {
36
39
  handleThumbClick(index: number): void;
37
40
  onForceRenderImage(): void;
38
41
  handleShowImage(imageViewModel: ImageViewModel): void;
42
+ closePopup(): void;
39
43
  private _filterValidImages;
40
44
  private _loadAndRescaleImages;
41
45
  private _resizeAndSanitizeSource;
46
+ private _detectPreferredMime;
42
47
  private _scrollCarouselToIndex;
43
48
  }
@@ -36,6 +36,7 @@ export declare class ProductAddtocartComponent implements OnInit, OnDestroy {
36
36
  ngOnDestroy(): void;
37
37
  handleAddToCartClick(quantity: number): Promise<void>;
38
38
  handleAddToQuoteClick(quantity: number): Promise<void>;
39
- private _getJSONFromArticleObject;
39
+ private _handleGeneratedArticleDirectly;
40
40
  private _getGeneratedArtDirectly;
41
+ private _getJSONFromArticleObject;
41
42
  }
@@ -51,6 +51,7 @@ export declare class ProductPageComponent implements OnInit, OnDestroy, AfterVie
51
51
  private _currentView;
52
52
  private _subs;
53
53
  private _settings;
54
+ private _pageLoadedSubscription;
54
55
  constructor(_ione: ProductConnectorService, _renderer: Renderer2, _changeDetector: ChangeDetectorRef, iconCache: IconCacheService, settingsService: ProductSettingsService, appEventService: ProductEventService);
55
56
  ngOnInit(): void;
56
57
  ngAfterViewInit(): void;
@@ -1,13 +1,17 @@
1
1
  import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
+ import { ProductConnectorService } from './service/product-connector.service';
2
3
  import { ProductEventService } from './service/product-event.service';
3
4
  import { ArticleListObject } from '@colijnit/articleapi/build/model/article-list-object';
4
5
  import { ProductSettingsService } from './service/product-settings.service';
5
6
  import { Selection } from '@colijnit/articleapi/build/model/selection';
6
7
  import { ArticleQuickSel } from '@colijnit/articleapi/build/model/article-quick-sel';
7
8
  import { ArticleListObjectExtended } from '@colijnit/articleapi/build/model/article-list-object-extended.bo';
9
+ import { LocalStorageService } from "./bundle/service/local-storage.service";
8
10
  export declare class IoneProductComponent implements OnInit, OnDestroy {
9
11
  private _appEventService;
10
12
  private _settingsService;
13
+ private _productConnectorService;
14
+ private _localStorageService;
11
15
  sku: string;
12
16
  isReturn: boolean;
13
17
  showRelatedProductsPopup: boolean;
@@ -15,6 +19,7 @@ export declare class IoneProductComponent implements OnInit, OnDestroy {
15
19
  set settings(value: any);
16
20
  get settings(): any;
17
21
  handleAddArticleInternally: boolean;
22
+ handleAddToCartInternally: boolean;
18
23
  onAddToCart: EventEmitter<{
19
24
  article: string | ArticleListObjectExtended;
20
25
  quantity: number;
@@ -32,7 +37,7 @@ export declare class IoneProductComponent implements OnInit, OnDestroy {
32
37
  showHD: boolean;
33
38
  private _settings;
34
39
  private _subs;
35
- constructor(_appEventService: ProductEventService, _settingsService: ProductSettingsService);
40
+ constructor(_appEventService: ProductEventService, _settingsService: ProductSettingsService, _productConnectorService: ProductConnectorService, _localStorageService: LocalStorageService);
36
41
  ngOnInit(): Promise<void>;
37
42
  ngOnDestroy(): void;
38
43
  private _handleAnswerInfoReceived;
@@ -13,6 +13,7 @@ export declare class ProductConnectorService implements OnDestroy {
13
13
  private _settingsService;
14
14
  get shouldShowLoader(): boolean;
15
15
  controllerInitialized: BehaviorSubject<boolean>;
16
+ articleLoaded: BehaviorSubject<boolean>;
16
17
  private _shouldShowLoader;
17
18
  private _initializing;
18
19
  private _initialized;