simpo-component-library 1.5.43 → 1.5.46

Sign up to get free protection for your applications and to get access to all the features.
Files changed (24) hide show
  1. package/esm2022/lib/ecommerce/sections/featured-category/featured-category.component.mjs +10 -5
  2. package/esm2022/lib/ecommerce/sections/featured-category/featured-category.modal.mjs +1 -1
  3. package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +3 -3
  4. package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +3 -3
  5. package/esm2022/lib/ecommerce/sections/small-product-listing/small-product-listing.component.mjs +5 -3
  6. package/esm2022/lib/services/events.service.mjs +2 -1
  7. package/fesm2022/simpo-component-library.mjs +18 -10
  8. package/fesm2022/simpo-component-library.mjs.map +1 -1
  9. package/lib/directive/background-directive.d.ts +1 -1
  10. package/lib/directive/button-directive.directive.d.ts +1 -1
  11. package/lib/directive/color.directive.d.ts +1 -1
  12. package/lib/ecommerce/sections/featured-category/featured-category.component.d.ts +1 -1
  13. package/lib/ecommerce/sections/featured-category/featured-category.modal.d.ts +1 -0
  14. package/lib/ecommerce/sections/small-product-listing/small-product-listing.component.d.ts +3 -1
  15. package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
  16. package/lib/services/events.service.d.ts +1 -0
  17. package/package.json +1 -1
  18. package/simpo-component-library-1.5.46.tgz +0 -0
  19. package/simpo-component-library-1.5.38.tgz +0 -0
  20. package/simpo-component-library-1.5.39.tgz +0 -0
  21. package/simpo-component-library-1.5.40.tgz +0 -0
  22. package/simpo-component-library-1.5.41.tgz +0 -0
  23. package/simpo-component-library-1.5.42.tgz +0 -0
  24. package/simpo-component-library-1.5.43.tgz +0 -0
@@ -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): "#ffffff" | "#000000" | "#ffffff;";
14
+ getTextColor(bgColor: string): "#000000" | "#ffffff" | "#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): "#ffffff" | "#000000" | "#ffffff;";
18
+ getTextColor(bgColor: string): "#000000" | "#ffffff" | "#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(): "#ffffff" | "#000000" | "#ffffff;";
15
+ getTextColor(): "#000000" | "#ffffff" | "#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
  }
@@ -23,7 +23,7 @@ export declare class FeaturedCategoryComponent extends BaseSection {
23
23
  ngOnInit(): void;
24
24
  getSliceParameters(): number[];
25
25
  redirectToListPage(category: string): void;
26
- getAllCategories(): void;
26
+ getAllCategoriesByCollectionId(): void;
27
27
  editSection(): void;
28
28
  get stylesLayout(): LayOutModel;
29
29
  get isMobile(): boolean;
@@ -8,6 +8,7 @@ export interface FeaturedCategoryModal {
8
8
  }
9
9
  export interface FeaturedCategoryContentModal {
10
10
  inputText: InputTextModel[];
11
+ collectionId?: string;
11
12
  collectionIds?: string[];
12
13
  }
13
14
  export interface FeaturedCategoryStylesModel extends StylesModel {
@@ -1,12 +1,14 @@
1
+ import { OnInit } from '@angular/core';
1
2
  import { ItemVariant, Product } from '../../styles/product.modal';
2
3
  import { CartService } from '../../../services/cart.service';
3
4
  import * as i0 from "@angular/core";
4
- export declare class SmallProductListingComponent {
5
+ export declare class SmallProductListingComponent implements OnInit {
5
6
  private readonly cartService;
6
7
  constructor(cartService: CartService);
7
8
  private USER_CART;
8
9
  product: Product;
9
10
  data?: any;
11
+ ngOnInit(): void;
10
12
  addItemToCart(product: Product, type: 'ADD' | 'SUBSTRACT'): void;
11
13
  getItemVarient(product: Product, varientId: string): ItemVariant | null;
12
14
  getPercentage(product: Product): string;
@@ -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(): "#ffffff" | "#000000";
18
+ getTextColor(): "#000000" | "#ffffff";
19
19
  get headingSpace(): SPACING;
20
20
  editSection(): void;
21
21
  static ɵfac: i0.ɵɵFactoryDeclaration<PricingSectionComponent, never>;
@@ -43,6 +43,7 @@ export declare class EventsService implements OnInit {
43
43
  environmentType: EventEmitter<string>;
44
44
  categoryProductList: EventEmitter<string>;
45
45
  collectionsListEvent: EventEmitter<string[]>;
46
+ categoryListEvent: EventEmitter<string>;
46
47
  showLoadingScreen: EventEmitter<boolean>;
47
48
  cashFreeEvent: EventEmitter<unknown>;
48
49
  addressAddedIdx: EventEmitter<number>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "1.5.43",
3
+ "version": "1.5.46",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file