simpo-component-library 1.5.48 → 1.5.51

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.
Files changed (34) hide show
  1. package/esm2022/lib/components/hover-elements/hover-elements.component.mjs +3 -3
  2. package/esm2022/lib/directive/content-fit-directive.mjs +1 -1
  3. package/esm2022/lib/directive/content-title-spacing.directive.mjs +4 -1
  4. package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +13 -7
  5. package/esm2022/lib/ecommerce/sections/category-product/category-product.component.mjs +6 -3
  6. package/esm2022/lib/ecommerce/sections/featured-category/featured-category.component.mjs +4 -4
  7. package/esm2022/lib/ecommerce/sections/featured-category/featured-collection.component.mjs +4 -4
  8. package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +9 -4
  9. package/esm2022/lib/ecommerce/sections/small-product-listing/small-product-listing.component.mjs +6 -4
  10. package/esm2022/lib/sections/navbar-section/navbar-section.component.mjs +11 -2
  11. package/esm2022/lib/sections/navbar-section/navbar-section.model.mjs +1 -1
  12. package/esm2022/lib/sections/text-section/text-section.component.mjs +3 -3
  13. package/esm2022/lib/styles/index.mjs +4 -3
  14. package/esm2022/lib/styles/types.mjs +1 -1
  15. package/fesm2022/simpo-component-library.mjs +2499 -2474
  16. package/fesm2022/simpo-component-library.mjs.map +1 -1
  17. package/lib/directive/background-directive.d.ts +1 -1
  18. package/lib/directive/button-directive.directive.d.ts +1 -1
  19. package/lib/directive/color.directive.d.ts +1 -1
  20. package/lib/directive/content-title-spacing.directive.d.ts +2 -1
  21. package/lib/ecommerce/sections/cart/cart.component.d.ts +5 -3
  22. package/lib/ecommerce/sections/featured-category/featured-category.component.d.ts +1 -1
  23. package/lib/ecommerce/sections/featured-category/featured-collection.component.d.ts +1 -1
  24. package/lib/ecommerce/sections/featured-products/featured-products.component.d.ts +2 -1
  25. package/lib/sections/banner-carousel/banner-carousel.component.d.ts +2 -2
  26. package/lib/sections/carousel-banner/carousel-banner.component.d.ts +1 -1
  27. package/lib/sections/navbar-section/navbar-section.component.d.ts +2 -0
  28. package/lib/sections/navbar-section/navbar-section.model.d.ts +2 -1
  29. package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
  30. package/lib/styles/index.d.ts +2 -1
  31. package/lib/styles/types.d.ts +1 -1
  32. package/package.json +1 -1
  33. package/simpo-component-library-1.5.51.tgz +0 -0
  34. package/simpo-component-library-1.5.48.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
  }
@@ -5,7 +5,8 @@ export declare enum SPACING {
5
5
  none = "1.5rem",
6
6
  small = "3rem",
7
7
  medium = "5rem",
8
- large = "6rem"
8
+ large = "6rem",
9
+ remove = "0rem"
9
10
  }
10
11
  export declare class ContentTitleDirective implements OnChanges {
11
12
  private el;
@@ -4,7 +4,7 @@ import BaseSection from '../../../sections/BaseSection';
4
4
  import { EventsService } from '.././../../services/events.service';
5
5
  import { CartService } from '../../../services/cart.service';
6
6
  import { Router } from '@angular/router';
7
- import { MatDialog } from '@angular/material/dialog';
7
+ import { MatDialog, MatDialogRef } from '@angular/material/dialog';
8
8
  import { RestService } from "../../../services/rest.service";
9
9
  import { StorageServiceService } from '../../../services/storage.service';
10
10
  import { OrderedItems } from '../../styles/OrderedItems.modal';
@@ -20,6 +20,7 @@ export declare class CartComponent extends BaseSection implements OnInit {
20
20
  private readonly storageService;
21
21
  private readonly messageService;
22
22
  private readonly bottomSheet;
23
+ dialogRef: MatDialogRef<CartComponent>;
23
24
  data?: CartSectionModal;
24
25
  responseData?: any;
25
26
  index?: number;
@@ -28,7 +29,7 @@ export declare class CartComponent extends BaseSection implements OnInit {
28
29
  isLoading: boolean;
29
30
  styles?: CartSectionStylesModel;
30
31
  currentTab: 'BAG' | 'ADDRESS' | 'PAYMENT';
31
- constructor(_eventService: EventsService, cartService: CartService, router: Router, restService: RestService, matDialog: MatDialog, storageService: StorageServiceService, messageService: MessageService, bottomSheet: MatBottomSheet);
32
+ constructor(_eventService: EventsService, cartService: CartService, router: Router, restService: RestService, matDialog: MatDialog, storageService: StorageServiceService, messageService: MessageService, bottomSheet: MatBottomSheet, dialogRef: MatDialogRef<CartComponent>);
32
33
  private userDetails;
33
34
  private USER_CART_ITEMS;
34
35
  selectedAddressIdx: number;
@@ -47,9 +48,10 @@ export declare class CartComponent extends BaseSection implements OnInit {
47
48
  isItemOutOfStock(product: OrderedItems): boolean;
48
49
  getKeys(object: Object): string[];
49
50
  editSection(): void;
51
+ closeWindow(): void;
50
52
  get getAddressList(): import("../../styles/user.modal").AddressDetails[];
51
53
  get isMobile(): boolean;
52
54
  get currency(): string;
53
- static ɵfac: i0.ɵɵFactoryDeclaration<CartComponent, never>;
55
+ static ɵfac: i0.ɵɵFactoryDeclaration<CartComponent, [null, null, null, null, null, null, null, null, { optional: true; }]>;
54
56
  static ɵcmp: i0.ɵɵComponentDeclaration<CartComponent, "simpo-cart", never, { "data": { "alias": "data"; "required": false; }; "responseData": { "alias": "responseData"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
55
57
  }
@@ -22,7 +22,7 @@ export declare class FeaturedCategoryComponent extends BaseSection {
22
22
  constructor(platformId: Object, router: Router, restService: RestService, _eventService: EventsService);
23
23
  ngOnInit(): void;
24
24
  getSliceParameters(): number[];
25
- redirectToListPage(category: string): void;
25
+ redirectToListPage(category: any): void;
26
26
  getAllCategoriesByCollectionId(): void;
27
27
  editSection(): void;
28
28
  get stylesLayout(): LayOutModel;
@@ -22,7 +22,7 @@ export declare class FeaturedCollectionComponent extends BaseSection {
22
22
  ngOnInit(): void;
23
23
  getSliceParameters(): number[];
24
24
  getCollectionsIds(): void;
25
- redirectToListPage(collection: string): void;
25
+ redirectToListPage(collection: any): void;
26
26
  get stylesLayout(): LayOutModel;
27
27
  editSection(): void;
28
28
  static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedCollectionComponent, never>;
@@ -3,7 +3,7 @@ import { FeaturedProductContentModal, FeaturedProductModal, FeaturedProductStyle
3
3
  import { Product, ItemVariant } from '../../styles/product.modal';
4
4
  import { EventsService } from '.././../../services/events.service';
5
5
  import BaseSection from '../../../sections/BaseSection';
6
- import { ButtonModel } from '../../../styles/style.model';
6
+ import { ButtonModel, LayOutModel } from '../../../styles/style.model';
7
7
  import { RestService } from '../../../services/rest.service';
8
8
  import { Router } from '@angular/router';
9
9
  import { CartService } from '../../../services/cart.service';
@@ -57,6 +57,7 @@ export declare class FeaturedProductsComponent extends BaseSection implements On
57
57
  get isMobile(): boolean;
58
58
  private getVarientQuantity;
59
59
  private isVarientPresentInWishtlist;
60
+ get stylesLayout(): LayOutModel;
60
61
  editSection(): void;
61
62
  static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedProductsComponent, never>;
62
63
  static ɵcmp: i0.ɵɵComponentDeclaration<FeaturedProductsComponent, "simpo-featured-products", never, { "data": { "alias": "data"; "required": false; }; "responseData": { "alias": "responseData"; "required": false; }; "index": { "alias": "index"; "required": false; }; "isRelatedProduct": { "alias": "isRelatedProduct"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, { "changeDetailProduct": "changeDetailProduct"; }, never, never, true, never>;
@@ -23,8 +23,8 @@ export declare class BannerCarouselComponent extends BaseSection implements OnIn
23
23
  get stylesLayout(): LayOutModel;
24
24
  get getBlurValue(): OverlayValue | undefined;
25
25
  get getBackgroundColor(): BackgroundModel;
26
- get getBackgroundOpacity(): "0" | "0.2" | "0.3" | "0.5" | "0.7";
27
- opacityValue(value: OverlayValue): "0" | "0.2" | "0.3" | "0.5" | "0.7";
26
+ get getBackgroundOpacity(): "0.2" | "0.3" | "0.5" | "0.7" | "0";
27
+ opacityValue(value: OverlayValue): "0.2" | "0.3" | "0.5" | "0.7" | "0";
28
28
  editSection(): void;
29
29
  static ɵfac: i0.ɵɵFactoryDeclaration<BannerCarouselComponent, never>;
30
30
  static ɵcmp: i0.ɵɵComponentDeclaration<BannerCarouselComponent, "simpo-banner-carousel", never, { "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
@@ -23,7 +23,7 @@ export declare class CarouselBannerComponent extends BaseSection implements OnIn
23
23
  get canMergeNavbar(): boolean | undefined;
24
24
  get isBorderlessImage(): boolean | undefined;
25
25
  get getPositionLayout(): PositionLayoutModal;
26
- opacityValue(value: OverlayValue): "0" | "0.2" | "0.3" | "0.5" | "0.7";
26
+ opacityValue(value: OverlayValue): "0.2" | "0.3" | "0.5" | "0.7" | "0";
27
27
  editSection(): void;
28
28
  static ɵfac: i0.ɵɵFactoryDeclaration<CarouselBannerComponent, never>;
29
29
  static ɵcmp: i0.ɵɵComponentDeclaration<CarouselBannerComponent, "simpo-carousel-banner", never, { "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
@@ -7,6 +7,7 @@ import { MatDialog } from '@angular/material/dialog';
7
7
  import { CookieService } from 'ngx-cookie-service';
8
8
  import { StorageServiceService } from '../../services/storage.service';
9
9
  import { MatBottomSheet } from '@angular/material/bottom-sheet';
10
+ import { ProductCardTheme } from '../../styles/index';
10
11
  import * as i0 from "@angular/core";
11
12
  export declare class NavbarSectionComponent implements OnInit {
12
13
  private readonly _eventService;
@@ -27,6 +28,7 @@ export declare class NavbarSectionComponent implements OnInit {
27
28
  action?: ActionModel;
28
29
  color: string;
29
30
  searchText: string;
31
+ theme: typeof ProductCardTheme;
30
32
  constructor(_eventService: EventsService, router: Router, activatedRoute: ActivatedRoute, matDialog: MatDialog, bottomSheet: MatBottomSheet, cookieService: CookieService, storageService: StorageServiceService);
31
33
  searchProducts(): void;
32
34
  goToFav(): void;
@@ -1,4 +1,4 @@
1
- import { HeaderButtonStyle } from "./../../styles/index";
1
+ import { HeaderButtonStyle, ProductCardTheme } from "./../../styles/index";
2
2
  import { BackgroundModel, HeaderButtonStyleModel, InputTextModel, NavbarButton } from "../../styles/style.model";
3
3
  import { FooterLayoutModel, FooterLogoModel, FooterSocialLinkModel } from "../footer-section/footer-section.modal";
4
4
  import { ActionModel } from "../../styles/style.model";
@@ -26,4 +26,5 @@ export interface HeaderStyleModel {
26
26
  sticky?: boolean;
27
27
  navigationStyle: HeaderButtonStyle;
28
28
  navbarButtonStyle: HeaderButtonStyleModel;
29
+ theme: ProductCardTheme;
29
30
  }
@@ -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>;
@@ -7,7 +7,8 @@ export declare enum SPACING {
7
7
  none = "1.5rem",
8
8
  small = "3rem",
9
9
  medium = "5rem",
10
- large = "6rem"
10
+ large = "6rem",
11
+ remove = "0rem"
11
12
  }
12
13
  export interface Contet {
13
14
  display: 'flex';
@@ -1,4 +1,4 @@
1
- export type SPACING_TYPE = 'none' | 'small' | 'medium' | 'large';
1
+ export type SPACING_TYPE = 'none' | 'small' | 'medium' | 'large' | 'remove';
2
2
  export type ALIGN = 'left' | 'center' | 'right';
3
3
  export type LAYOUTPOSITION = 'left' | 'right' | 'top' | 'bottom';
4
4
  export type CONTENTPOSITION = 'image center' | 'image top' | 'image bottom';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "1.5.48",
3
+ "version": "1.5.51",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file