simpo-component-library 1.2.12 → 1.2.14

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.
@@ -1,4 +1,4 @@
1
- import { OnChanges, SimpleChanges } from '@angular/core';
1
+ import { OnDestroy } from '@angular/core';
2
2
  import { FeaturedProductContentModal, FeaturedProductModal, FeaturedProductStylesModel } from './featured-products.modal';
3
3
  import { Product } from '../../styles/product.modal';
4
4
  import { EventsService } from '.././../../services/events.service';
@@ -7,7 +7,7 @@ import { ButtonModel } from '../../../styles/style.model';
7
7
  import { RestService } from '../../../services/rest.service';
8
8
  import { Router } from '@angular/router';
9
9
  import * as i0 from "@angular/core";
10
- export declare class FeaturedProductsComponent extends BaseSection implements OnChanges {
10
+ export declare class FeaturedProductsComponent extends BaseSection implements OnDestroy {
11
11
  private platformId;
12
12
  private readonly _eventService;
13
13
  private readonly restService;
@@ -20,13 +20,15 @@ export declare class FeaturedProductsComponent extends BaseSection implements On
20
20
  content?: FeaturedProductContentModal;
21
21
  styles?: FeaturedProductStylesModel;
22
22
  button?: ButtonModel;
23
+ private _eventSubscriber;
23
24
  constructor(platformId: Object, _eventService: EventsService, restService: RestService, router: Router);
24
25
  screenWidth: number;
25
26
  getScreenSize(): void;
26
- ngOnChanges(changes: SimpleChanges): void;
27
27
  ngOnInit(): void;
28
+ ngOnDestroy(): void;
28
29
  getProductWidth(): string;
29
30
  getSliceParameters(): number[];
31
+ getFeatureProduct(): void;
30
32
  proceedToProductDesc(productId: any): void;
31
33
  static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedProductsComponent, never>;
32
34
  static ɵcmp: i0.ɵɵComponentDeclaration<FeaturedProductsComponent, "simpo-featured-products", never, { "data": { "alias": "data"; "required": false; }; "responseData": { "alias": "responseData"; "required": false; }; "index": { "alias": "index"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
@@ -36,6 +36,8 @@ export declare class EventsService {
36
36
  redirectToPage: EventEmitter<unknown>;
37
37
  addToCart: EventEmitter<unknown>;
38
38
  placeOrder: EventEmitter<unknown>;
39
+ featureCollectionList: EventEmitter<unknown>;
40
+ environmentType: EventEmitter<string>;
39
41
  static ɵfac: i0.ɵɵFactoryDeclaration<EventsService, never>;
40
42
  static ɵprov: i0.ɵɵInjectableDeclaration<EventsService>;
41
43
  }
@@ -1,12 +1,17 @@
1
1
  import { HttpClient } from "@angular/common/http";
2
+ import { OnDestroy } from "@angular/core";
2
3
  import { Observable } from "rxjs";
4
+ import { EventsService } from "../../public-api";
3
5
  import * as i0 from "@angular/core";
4
- export declare class RestService {
6
+ export declare class RestService implements OnDestroy {
5
7
  private readonly http;
6
- private readonly BASE_URL;
7
- constructor(http: HttpClient);
8
- getProductByBusiness(searchTxt?: string, productId?: string | null): Observable<any>;
8
+ private readonly eventService;
9
+ private BASE_URL;
10
+ private environmentTypeSubscriber;
11
+ constructor(http: HttpClient, eventService: EventsService);
12
+ ngOnDestroy(): void;
9
13
  getFeaturedProduct(collectionId: string | undefined | null): Observable<any>;
14
+ getProductDetails(productId?: string | null): Observable<any>;
10
15
  static ɵfac: i0.ɵɵFactoryDeclaration<RestService, never>;
11
16
  static ɵprov: i0.ɵɵInjectableDeclaration<RestService>;
12
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "1.2.12",
3
+ "version": "1.2.14",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file