simpo-component-library 3.2.78 → 3.2.80

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 (37) hide show
  1. package/esm2022/lib/ecommerce/sections/address/address.component.mjs +3 -3
  2. package/esm2022/lib/ecommerce/sections/authentication-required/authentication-required.component.mjs +87 -34
  3. package/esm2022/lib/ecommerce/sections/authentication-required/authentication-required.model.mjs +2 -0
  4. package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +25 -20
  5. package/esm2022/lib/ecommerce/sections/category-product/category-product.component.mjs +2 -2
  6. package/esm2022/lib/ecommerce/sections/whislist/whislist.component.mjs +3 -3
  7. package/esm2022/lib/elements/below-image-card/below-image-card.component.mjs +3 -3
  8. package/esm2022/lib/elements/covering-image-card/covering-image-card.component.mjs +3 -3
  9. package/esm2022/lib/elements/top-of-image-card/top-of-image-card.component.mjs +3 -3
  10. package/esm2022/lib/sections/appointment-form/appointment-form.component.mjs +3 -3
  11. package/esm2022/lib/sections/banner-carousel/banner-carousel.component.mjs +3 -3
  12. package/esm2022/lib/sections/banner-grid-section/banner-grid-section.component.mjs +3 -3
  13. package/esm2022/lib/sections/carousel-banner/carousel-banner.component.mjs +7 -8
  14. package/esm2022/lib/sections/footer-section/footer-section.component.mjs +3 -3
  15. package/esm2022/lib/sections/header-section/header-section.component.mjs +24 -7
  16. package/esm2022/lib/sections/header-text/header-text.component.mjs +3 -3
  17. package/esm2022/lib/sections/image-section/image-section.component.mjs +3 -3
  18. package/esm2022/lib/sections/logo-showcase/logo-showcase.component.mjs +3 -3
  19. package/esm2022/lib/sections/navbar-section/navbar-section.component.mjs +3 -3
  20. package/esm2022/lib/sections/text-image-section/text-image-section.component.mjs +3 -3
  21. package/esm2022/lib/sections/text-section/text-section.component.mjs +3 -3
  22. package/esm2022/lib/services/rest.service.mjs +4 -1
  23. package/fesm2022/simpo-component-library.mjs +679 -607
  24. package/fesm2022/simpo-component-library.mjs.map +1 -1
  25. package/lib/components/input-fields/input-fields.component.d.ts +1 -1
  26. package/lib/ecommerce/sections/authentication-required/authentication-required.component.d.ts +21 -6
  27. package/lib/ecommerce/sections/authentication-required/authentication-required.model.d.ts +15 -0
  28. package/lib/ecommerce/sections/cart/cart.component.d.ts +4 -3
  29. package/lib/sections/banner-carousel/banner-carousel.component.d.ts +2 -2
  30. package/lib/sections/carousel-banner/carousel-banner.component.d.ts +1 -1
  31. package/lib/sections/header-section/header-section.component.d.ts +1 -0
  32. package/lib/sections/image-section/image-section.component.d.ts +2 -2
  33. package/lib/sections/logo-showcase/logo-showcase.component.d.ts +1 -1
  34. package/lib/services/rest.service.d.ts +1 -0
  35. package/package.json +1 -1
  36. package/simpo-component-library-3.2.80.tgz +0 -0
  37. package/simpo-component-library-3.2.78.tgz +0 -0
@@ -13,7 +13,7 @@ export declare class InputFieldsComponent implements OnChanges {
13
13
  constructor(elementRef: ElementRef);
14
14
  ngOnChanges(changes: SimpleChanges): void;
15
15
  handleMoneyInput(event: any): void;
16
- get getTextColor(): "#FFF" | "#000";
16
+ get getTextColor(): "#000" | "#FFF";
17
17
  interpolateColor(color1: string, color2: string, factor: number): string;
18
18
  padZero(str: string, length: number): string;
19
19
  generateColorBasedOnNumber(number: number): string;
@@ -1,18 +1,30 @@
1
1
  import { RestService } from '../../../services/rest.service';
2
- import { Router } from '@angular/router';
2
+ import { ActivatedRoute, Router } from '@angular/router';
3
3
  import { MessageService } from 'primeng/api';
4
4
  import { StorageServiceService } from '../../../services/storage.service';
5
5
  import { MatBottomSheetRef } from '@angular/material/bottom-sheet';
6
6
  import { MatDialog, MatDialogRef } from '@angular/material/dialog';
7
+ import { AuthenticationModel, AuthenticationStylesModel } from './authentication-required.model';
8
+ import BaseSection from '../../../sections/BaseSection';
9
+ import { ButtonModel, LayOutModel } from '../../../styles/style.model';
7
10
  import * as i0 from "@angular/core";
8
- export declare class AuthenticationRequiredComponent {
11
+ export declare class AuthenticationRequiredComponent extends BaseSection {
9
12
  private readonly restService;
10
13
  private readonly router;
11
14
  private readonly messageService;
12
15
  private readonly storageService;
13
16
  private readonly matDialog;
17
+ private readonly activatedRoute;
14
18
  private readonly dialogRef;
15
19
  private readonly bottomsheetRef;
20
+ data?: AuthenticationModel;
21
+ index?: number;
22
+ edit?: boolean;
23
+ delete?: boolean;
24
+ styles?: AuthenticationStylesModel;
25
+ button?: ButtonModel;
26
+ buttonId: string;
27
+ currentPage: 'LOGIN' | 'SIGNUP';
16
28
  private mobileTimer;
17
29
  email: string;
18
30
  mobile: string;
@@ -29,8 +41,9 @@ export declare class AuthenticationRequiredComponent {
29
41
  type: string;
30
42
  active: boolean;
31
43
  }[];
32
- constructor(restService: RestService, router: Router, messageService: MessageService, storageService: StorageServiceService, matDialog: MatDialog, dialogRef: MatDialogRef<AuthenticationRequiredComponent>, bottomsheetRef: MatBottomSheetRef<AuthenticationRequiredComponent>);
44
+ constructor(restService: RestService, router: Router, messageService: MessageService, storageService: StorageServiceService, matDialog: MatDialog, activatedRoute: ActivatedRoute, dialogRef: MatDialogRef<AuthenticationRequiredComponent>, bottomsheetRef: MatBottomSheetRef<AuthenticationRequiredComponent>);
33
45
  signUpEnabled: any;
46
+ proceedToCheckout: boolean;
34
47
  ngOnInit(): void;
35
48
  loginType: "PASSWORD" | "OTP";
36
49
  close(): void;
@@ -45,10 +58,12 @@ export declare class AuthenticationRequiredComponent {
45
58
  validateNumber(event: KeyboardEvent): void;
46
59
  validateOTP(event: KeyboardEvent): void;
47
60
  checkStrength(): void;
48
- getStrengthColor(index: number): "yellow" | "tomato" | "#d3d3d3ba" | "orange" | "lightgreen";
61
+ getStrengthColor(index: number): "tomato" | "#d3d3d3ba" | "orange" | "yellow" | "lightgreen";
49
62
  get isEmailValid(): boolean;
50
63
  get isPasswordValid(): boolean;
51
64
  get isMobile(): boolean;
52
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthenticationRequiredComponent, [null, null, null, null, null, { optional: true; }, { optional: true; }]>;
53
- static ɵcmp: i0.ɵɵComponentDeclaration<AuthenticationRequiredComponent, "simpo-authentication-required", never, {}, {}, never, never, true, never>;
65
+ get stylesLayout(): LayOutModel;
66
+ get accentColor(): string;
67
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuthenticationRequiredComponent, [null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
68
+ static ɵcmp: i0.ɵɵComponentDeclaration<AuthenticationRequiredComponent, "simpo-authentication-required", 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>;
54
69
  }
@@ -0,0 +1,15 @@
1
+ import { Corners } from '../../../styles/index';
2
+ import { ActionModel, AnimationModel, BackgroundModel, BannerStylesModel, LayOutModel } from '../../../styles/style.model';
3
+ export interface AuthenticationModel {
4
+ id: string;
5
+ sectionType: string;
6
+ sectionName: string;
7
+ styles: BannerStylesModel;
8
+ action: ActionModel;
9
+ }
10
+ export interface AuthenticationStylesModel {
11
+ layout: LayOutModel;
12
+ background: BackgroundModel;
13
+ animation: AnimationModel;
14
+ corners: Corners;
15
+ }
@@ -3,7 +3,7 @@ import { CartSectionModal, CartSectionStylesModel } from './cart.modal';
3
3
  import BaseSection from '../../../sections/BaseSection';
4
4
  import { EventsService } from '.././../../services/events.service';
5
5
  import { CartService } from '../../../services/cart.service';
6
- import { Router } from '@angular/router';
6
+ import { ActivatedRoute, Router } from '@angular/router';
7
7
  import { MatDialog, MatDialogRef } from '@angular/material/dialog';
8
8
  import { RestService } from "../../../services/rest.service";
9
9
  import { StorageServiceService } from '../../../services/storage.service';
@@ -32,6 +32,7 @@ export declare class CartComponent extends BaseSection implements OnInit, OnDest
32
32
  private readonly storageService;
33
33
  private readonly messageService;
34
34
  private readonly bottomSheet;
35
+ private readonly activatedRoute;
35
36
  matDialogData: any;
36
37
  dialogRef: MatDialogRef<CartComponent>;
37
38
  data?: CartSectionModal;
@@ -43,7 +44,7 @@ export declare class CartComponent extends BaseSection implements OnInit, OnDest
43
44
  isLoading: boolean;
44
45
  styles?: CartSectionStylesModel;
45
46
  currentTab: 'BAG' | 'ADDRESS' | 'PAYMENT';
46
- constructor(_eventService: EventsService, cartService: CartService, router: Router, restService: RestService, matDialog: MatDialog, storageService: StorageServiceService, messageService: MessageService, bottomSheet: MatBottomSheet, matDialogData: any, dialogRef: MatDialogRef<CartComponent>);
47
+ constructor(_eventService: EventsService, cartService: CartService, router: Router, restService: RestService, matDialog: MatDialog, storageService: StorageServiceService, messageService: MessageService, bottomSheet: MatBottomSheet, activatedRoute: ActivatedRoute, matDialogData: any, dialogRef: MatDialogRef<CartComponent>);
47
48
  private userDetails;
48
49
  private USER_CART_ITEMS;
49
50
  selectedAddressIdx: number;
@@ -81,7 +82,7 @@ export declare class CartComponent extends BaseSection implements OnInit, OnDest
81
82
  get getAddressList(): import("../../styles/user.modal").AddressDetails[];
82
83
  get isMobile(): boolean;
83
84
  get currency(): string;
84
- static ɵfac: i0.ɵɵFactoryDeclaration<CartComponent, [null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
85
+ static ɵfac: i0.ɵɵFactoryDeclaration<CartComponent, [null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
85
86
  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; }; "customClass": { "alias": "customClass"; "required": false; }; }, {}, never, never, true, never>;
86
87
  }
87
88
  export {};
@@ -25,8 +25,8 @@ export declare class BannerCarouselComponent extends BaseSection implements OnIn
25
25
  get stylesLayout(): LayOutModel;
26
26
  get getBlurValue(): "NONE" | "LIGHT" | "MODERATE" | "STRONG" | "VERY_STRONG" | undefined;
27
27
  get getBackgroundColor(): BackgroundModel;
28
- get getBackgroundOpacity(): "0.2" | "0.3" | "0.5" | "0.7" | "0";
29
- opacityValue(value: OverlayValue): "0.2" | "0.3" | "0.5" | "0.7" | "0";
28
+ get getBackgroundOpacity(): "0" | "0.7" | "0.5" | "0.3" | "0.2";
29
+ opacityValue(value: OverlayValue): "0" | "0.7" | "0.5" | "0.3" | "0.2";
30
30
  editSection(): void;
31
31
  static ɵfac: i0.ɵɵFactoryDeclaration<BannerCarouselComponent, never>;
32
32
  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; }; "customClass": { "alias": "customClass"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
@@ -25,7 +25,7 @@ export declare class CarouselBannerComponent extends BaseSection implements OnIn
25
25
  get canMergeNavbar(): boolean | undefined;
26
26
  get isBorderlessImage(): boolean | undefined;
27
27
  get getPositionLayout(): PositionLayoutModal;
28
- opacityValue(value: OverlayValue): "0.2" | "0.3" | "0.5" | "0.7" | "0";
28
+ opacityValue(value: OverlayValue): "0" | "0.7" | "0.5" | "0.3" | "0.2";
29
29
  editSection(): void;
30
30
  static ɵfac: i0.ɵɵFactoryDeclaration<CarouselBannerComponent, never>;
31
31
  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; }; "customClass": { "alias": "customClass"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
@@ -27,6 +27,7 @@ export declare class HeaderSectionComponent implements OnInit {
27
27
  searchText: string;
28
28
  theme: typeof ProductCardTheme;
29
29
  HeaderStyling: typeof Header_Type;
30
+ parentHeight: number;
30
31
  constructor(_eventService: EventsService, router: Router, activatedRoute: ActivatedRoute, matDialog: MatDialog, storageService: StorageServiceService);
31
32
  searchProducts(): void;
32
33
  goToFav(): void;
@@ -20,8 +20,8 @@ export declare class ImageSectionComponent extends BaseSection {
20
20
  constructor(_eventService: EventsService);
21
21
  ngOnInit(): void;
22
22
  get canMergeNavbar(): boolean | undefined;
23
- get getBackgroundOpacity(): "0.2" | "0.3" | "0.5" | "0.7" | "1";
24
- opacityValue(value: OverlayValue): "0.2" | "0.3" | "0.5" | "0.7" | "1";
23
+ get getBackgroundOpacity(): "1" | "0.7" | "0.5" | "0.3" | "0.2";
24
+ opacityValue(value: OverlayValue): "1" | "0.7" | "0.5" | "0.3" | "0.2";
25
25
  editSection(): void;
26
26
  redirectTo(): void;
27
27
  static ɵfac: i0.ɵɵFactoryDeclaration<ImageSectionComponent, never>;
@@ -23,7 +23,7 @@ export declare class LogoShowcaseComponent extends BaseSection implements OnInit
23
23
  constructor(_eventService: EventsService);
24
24
  ngOnInit(): void;
25
25
  get animationDuration(): logoSpeed;
26
- get animationDirection(): "reverse" | "normal" | logoDirection.Left;
26
+ get animationDirection(): logoDirection.Left | "reverse" | "normal";
27
27
  screenWidth: number;
28
28
  getScreenSize(event?: number): void;
29
29
  editSection(): void;
@@ -17,6 +17,7 @@ export declare class RestService implements OnDestroy {
17
17
  ngOnDestroy(): void;
18
18
  getFeaturedProduct(collectionId: string | undefined | null): Observable<any>;
19
19
  getCategoriesByCollectionId(collectionId: string): Observable<any>;
20
+ getProductBySelectedCategory(categoryId: string): Observable<Object>;
20
21
  getProductDetails(productId?: string | null): Observable<any>;
21
22
  getCollectionByIds(collectionIds: string[]): Observable<any>;
22
23
  getAllCategories(): Observable<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "3.2.78",
3
+ "version": "3.2.80",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file