simpo-component-library 1.5.32 → 1.5.35

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. package/esm2022/lib/ecommerce/sections/category-product/category-product.component.mjs +60 -7
  2. package/esm2022/lib/ecommerce/sections/featured-category/featured-category.component.mjs +1 -1
  3. package/esm2022/lib/ecommerce/sections/featured-category/featured-collection.component.mjs +1 -1
  4. package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +7 -5
  5. package/esm2022/lib/ecommerce/sections/product-category-list/product-category-list.component.mjs +4 -2
  6. package/esm2022/lib/sections/banner-grid-section/banner-grid-section.component.mjs +6 -4
  7. package/esm2022/lib/sections/carousel-banner/carousel-banner.component.mjs +6 -4
  8. package/esm2022/lib/sections/choose-us-section/choose-us-section.component.mjs +6 -4
  9. package/esm2022/lib/sections/contact-us/contact-us.component.mjs +7 -5
  10. package/esm2022/lib/sections/features-section/features-section.component.mjs +6 -4
  11. package/esm2022/lib/sections/header-text/header-text.component.mjs +6 -4
  12. package/esm2022/lib/sections/location-section/location-section.component.mjs +7 -5
  13. package/esm2022/lib/sections/logo-showcase/logo-showcase.component.mjs +4 -3
  14. package/esm2022/lib/sections/pricing-section/pricing-section.component.mjs +5 -3
  15. package/esm2022/lib/sections/process-modern/process-modern.component.mjs +6 -4
  16. package/esm2022/lib/sections/process-section/process-section.component.mjs +5 -3
  17. package/esm2022/lib/sections/recent-blog-post-section/recent-blog-post-section.component.mjs +6 -4
  18. package/esm2022/lib/sections/service-section/service-section.component.mjs +7 -5
  19. package/esm2022/lib/sections/team-member-section/team-member-section.component.mjs +7 -5
  20. package/esm2022/lib/sections/testimonial-fullwidth/testimonial-fullwidth.component.mjs +7 -5
  21. package/esm2022/lib/sections/testimonial-section/testimonial-section.component.mjs +7 -5
  22. package/esm2022/lib/sections/text-image-section/text-image-section.component.mjs +7 -5
  23. package/fesm2022/simpo-component-library.mjs +134 -66
  24. package/fesm2022/simpo-component-library.mjs.map +1 -1
  25. package/lib/directive/background-directive.d.ts +1 -1
  26. package/lib/directive/button-directive.directive.d.ts +1 -1
  27. package/lib/directive/color.directive.d.ts +1 -1
  28. package/lib/ecommerce/sections/category-product/category-product.component.d.ts +4 -1
  29. package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
  30. package/package.json +1 -1
  31. package/simpo-component-library-1.5.34.tgz +0 -0
  32. package/simpo-component-library-1.5.35.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): "#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,7 +3,7 @@ import { CategoryProductContentModal, CategoryProductModal, CategoryProductStyle
3
3
  import { RestService } from '../../../services/rest.service';
4
4
  import { EventsService } from '../../../services/events.service';
5
5
  import { Category } from '../../styles/category.modal';
6
- import { Product } from '../../styles/product.modal';
6
+ import { ItemVariant, Product } from '../../styles/product.modal';
7
7
  import { FeaturedProductModal } from '../featured-products/featured-products.modal';
8
8
  import { CartService } from '../../../services/cart.service';
9
9
  import BaseSection from '../../../sections/BaseSection';
@@ -33,6 +33,9 @@ export declare class CategoryProductComponent extends BaseSection implements OnI
33
33
  dataList: Product[];
34
34
  selectCategory(categoryId: string): void;
35
35
  scrollRight(): void;
36
+ addItemToCart(product: Product, type: 'ADD' | 'SUBSTRACT'): void;
37
+ getItemVarient(product: Product, varientId: string): ItemVariant | null;
38
+ getPercentage(product: Product): string;
36
39
  scrollLeft(): void;
37
40
  showRightArrow: boolean;
38
41
  showLeftArrow: boolean;
@@ -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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "1.5.32",
3
+ "version": "1.5.35",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",