simpo-component-library 1.2.4 → 1.2.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.
@@ -11,7 +11,7 @@ export declare class BackgroundDirective implements OnChanges {
11
11
  constructor(el: ElementRef, eventService: EventsService);
12
12
  ngOnDestroy(): void;
13
13
  ngOnChanges(change: SimpleChanges): void;
14
- getTextColor(bgColor: string): "#000000" | "#ffffff" | "#ffffff;";
14
+ getTextColor(bgColor: string): "#ffffff" | "#000000" | "#ffffff;";
15
15
  static ɵfac: i0.ɵɵFactoryDeclaration<BackgroundDirective, never>;
16
16
  static ɵdir: i0.ɵɵDirectiveDeclaration<BackgroundDirective, "[simpoBackground]", never, { "simpoBackground": { "alias": "simpoBackground"; "required": false; }; "scrollValue": { "alias": "scrollValue"; "required": false; }; }, {}, never, never, true, never>;
17
17
  }
@@ -15,7 +15,7 @@ export declare class ButtonDirectiveDirective implements OnChanges {
15
15
  applyButtonStyleChanges(): void;
16
16
  applyButtonType(style: ButtonStyleModel, color: string): void;
17
17
  applyButtonShape(style: ButtonStyleModel): void;
18
- getTextColor(bgColor: string): "#000000" | "#ffffff" | "#ffffff;";
18
+ getTextColor(bgColor: string): "#ffffff" | "#000000" | "#ffffff;";
19
19
  buttonStyleSubscription?: Subscription;
20
20
  buttonStyleChangeCheck(): void;
21
21
  changeButtonStyle(id: any, style: ButtonStyleModel, bgColor: string): void;
@@ -12,7 +12,7 @@ export declare class ColorDirective implements OnChanges {
12
12
  ngOnDestroy(): void;
13
13
  applyColor(): void;
14
14
  bgColorChangeCheck(): void;
15
- getTextColor(): "#000000" | "#ffffff" | "#ffffff;";
15
+ getTextColor(): "#ffffff" | "#000000" | "#ffffff;";
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<ColorDirective, never>;
17
17
  static ɵdir: i0.ɵɵDirectiveDeclaration<ColorDirective, "[simpoColor]", never, { "bgColor": { "alias": "simpoColor"; "required": false; }; }, {}, never, never, true, never>;
18
18
  }
@@ -3,10 +3,14 @@ import { Product } from '../../styles/product.modal';
3
3
  import { EventsService } from '.././../../services/events.service';
4
4
  import BaseSection from '../../../sections/BaseSection';
5
5
  import { ButtonModel } from '../../../styles/style.model';
6
+ import { RestService } from '../../../services/rest.service';
7
+ import { Router } from '@angular/router';
6
8
  import * as i0 from "@angular/core";
7
9
  export declare class FeaturedProductsComponent extends BaseSection {
8
10
  private platformId;
9
- private _eventService;
11
+ private readonly _eventService;
12
+ private readonly restService;
13
+ private readonly router;
10
14
  data?: FeaturedProductModal;
11
15
  responseData?: Product[];
12
16
  index?: number;
@@ -15,7 +19,7 @@ export declare class FeaturedProductsComponent extends BaseSection {
15
19
  content?: FeaturedProductContentModal;
16
20
  styles?: FeaturedProductStylesModel;
17
21
  button?: ButtonModel;
18
- constructor(platformId: Object, _eventService: EventsService);
22
+ constructor(platformId: Object, _eventService: EventsService, restService: RestService, router: Router);
19
23
  screenWidth: number;
20
24
  getScreenSize(): void;
21
25
  ngOnInit(): void;
@@ -3,12 +3,13 @@ import BaseSection from '../../../sections/BaseSection';
3
3
  import { ProductListContentModal, ProductListModal, ProductListStylesModal } from './product-list.modal';
4
4
  import { EventsService } from '.././../../services/events.service';
5
5
  import { ButtonModel } from '../../../styles/style.model';
6
- import { Router } from '@angular/router';
6
+ import { ActivatedRoute, Router } from '@angular/router';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class ProductListComponent extends BaseSection {
9
9
  private platformId;
10
- private _eventService;
11
- router: Router;
10
+ private readonly _eventService;
11
+ private readonly router;
12
+ private readonly activatedRoute;
12
13
  responseData?: Product[];
13
14
  data?: ProductListModal;
14
15
  index?: number;
@@ -16,7 +17,7 @@ export declare class ProductListComponent extends BaseSection {
16
17
  delete?: boolean;
17
18
  content?: ProductListContentModal;
18
19
  button?: ButtonModel;
19
- constructor(platformId: Object, _eventService: EventsService, router: Router);
20
+ constructor(platformId: Object, _eventService: EventsService, router: Router, activatedRoute: ActivatedRoute);
20
21
  pricingMin: number;
21
22
  pricingMax: number;
22
23
  filteringArray: {
@@ -25,8 +26,10 @@ export declare class ProductListComponent extends BaseSection {
25
26
  }[];
26
27
  screenWidth: number;
27
28
  getScreenSize(): void;
29
+ filterList: string[];
28
30
  styles?: ProductListStylesModal;
29
31
  ngOnInit(): void;
32
+ removeFilter(filter: string): void;
30
33
  getProductWidth(): string;
31
34
  proceedToProductDesc(productId: any): void;
32
35
  clearFilter(): void;
@@ -35,6 +38,7 @@ export declare class ProductListComponent extends BaseSection {
35
38
  status: boolean;
36
39
  }[];
37
40
  applyFilter(category?: any, type?: 'SORT' | 'FILTER'): void;
41
+ navigateFilter(sorting: string): void;
38
42
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductListComponent, never>;
39
43
  static ɵcmp: i0.ɵɵComponentDeclaration<ProductListComponent, "simpo-product-list", never, { "responseData": { "alias": "responseData"; "required": false; }; "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
40
44
  }
@@ -1,6 +1,5 @@
1
- export interface Product {
1
+ export declare class Product {
2
2
  itemId: string;
3
- businessId: string;
4
3
  storeId: string[];
5
4
  name: string;
6
5
  itemCategorisation: ItemCategorisation;
@@ -14,26 +13,15 @@ export interface Product {
14
13
  properties: any;
15
14
  unit: Unit;
16
15
  price: Price;
17
- createdDetails: CreatedDetails2;
18
- availableOnline: boolean;
19
16
  categoryId: string;
20
- fulfillmentId: string;
21
- locationId: string;
22
17
  descriptor: Descriptor;
23
18
  rating: number;
24
- returnWindow: number;
25
- timeToShip: number;
26
- rateable: boolean;
27
- matched: boolean;
28
- related: boolean;
29
19
  recommended: boolean;
30
20
  returnable: boolean;
31
- active: boolean;
32
- cancellable: boolean;
33
- sellerReturnPickUp: boolean;
34
21
  availableOnCod: boolean;
35
- createdTimeStamp: string;
36
- updatedTimeStamp: string;
22
+ constructor(json?: {
23
+ [key: string]: any;
24
+ });
37
25
  }
38
26
  export interface ItemCategorisation {
39
27
  itemCategories: ItemCategory[];
@@ -4,7 +4,7 @@ import { EventsService } from '../../services/events.service';
4
4
  import { FeatureContentModel, FeatureStylesModel, FeatureSectionModel, FeatureItemModel } from './features-section.model';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class FeaturesSectionComponent extends BaseSection implements OnInit {
7
- private _eventService;
7
+ private readonly _eventService;
8
8
  data?: FeatureSectionModel;
9
9
  edit?: boolean;
10
10
  content?: FeatureContentModel;
@@ -15,7 +15,7 @@ export declare class PricingSectionComponent extends BaseSection {
15
15
  style?: PricingSectionStylesModel;
16
16
  constructor(_eventService: EventsService);
17
17
  ngOnInit(): void;
18
- getTextColor(): "#000000" | "#ffffff";
18
+ getTextColor(): "#ffffff" | "#000000";
19
19
  get headingSpace(): SPACING;
20
20
  editSection(): void;
21
21
  static ɵfac: i0.ɵɵFactoryDeclaration<PricingSectionComponent, never>;
@@ -0,0 +1,11 @@
1
+ import { HttpClient } from "@angular/common/http";
2
+ import { Observable } from "rxjs";
3
+ import * as i0 from "@angular/core";
4
+ export declare class RestService {
5
+ private readonly http;
6
+ private readonly BASE_URL;
7
+ constructor(http: HttpClient);
8
+ getProductByBusiness(searchTxt?: string): Observable<any>;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<RestService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<RestService>;
11
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "1.2.4",
3
+ "version": "1.2.6",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file