simpo-component-library 3.2.79 → 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 (23) 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/sections/header-section/header-section.component.mjs +24 -7
  8. package/esm2022/lib/services/rest.service.mjs +4 -1
  9. package/fesm2022/simpo-component-library.mjs +651 -579
  10. package/fesm2022/simpo-component-library.mjs.map +1 -1
  11. package/lib/components/input-fields/input-fields.component.d.ts +1 -1
  12. package/lib/directive/background-directive.d.ts +1 -1
  13. package/lib/directive/button-directive.directive.d.ts +1 -1
  14. package/lib/directive/color.directive.d.ts +1 -1
  15. package/lib/ecommerce/sections/authentication-required/authentication-required.component.d.ts +21 -6
  16. package/lib/ecommerce/sections/authentication-required/authentication-required.model.d.ts +15 -0
  17. package/lib/ecommerce/sections/cart/cart.component.d.ts +4 -3
  18. package/lib/sections/header-section/header-section.component.d.ts +1 -0
  19. package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
  20. package/lib/services/rest.service.d.ts +1 -0
  21. package/package.json +1 -1
  22. package/simpo-component-library-3.2.80.tgz +0 -0
  23. package/simpo-component-library-3.2.79.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;
@@ -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
  }
@@ -16,7 +16,7 @@ export declare class ButtonDirectiveDirective implements OnChanges {
16
16
  applyButtonStyleChanges(): void;
17
17
  applyButtonType(style: ButtonStyleModel, backgroundInfo?: BackgroundModel): void;
18
18
  applyButtonShape(style: ButtonStyleModel): void;
19
- getTextColor(bgColor: string): "#ffffff" | "#000000" | "#ffffff;";
19
+ getTextColor(bgColor: string): "#000000" | "#ffffff" | "#ffffff;";
20
20
  buttonStyleSubscription?: Subscription;
21
21
  buttonStyleChangeCheck(): void;
22
22
  changeButtonStyle(id: any, style: ButtonStyleModel, backgroundInfo: BackgroundModel): 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
  }
@@ -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 {};
@@ -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;
@@ -17,7 +17,7 @@ export declare class PricingSectionComponent extends BaseSection {
17
17
  style?: PricingSectionStylesModel;
18
18
  constructor(_eventService: EventsService);
19
19
  ngOnInit(): void;
20
- getTextColor(): "#ffffff" | "#000000";
20
+ getTextColor(): "#000000" | "#ffffff";
21
21
  get headingSpace(): SPACING;
22
22
  editSection(): void;
23
23
  redirectTo(): 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.79",
3
+ "version": "3.2.80",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file