simpo-component-library 1.4.13 → 1.4.14

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/json/user-cart.json +2 -1
  2. package/esm2022/lib/ecommerce/json/user-details.json +1 -1
  3. package/esm2022/lib/ecommerce/sections/address/address.component.mjs +15 -10
  4. package/esm2022/lib/ecommerce/sections/authenticate-user/authenticate-user.component.mjs +19 -8
  5. package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +40 -22
  6. package/esm2022/lib/ecommerce/sections/cart/cart.modal.mjs +1 -1
  7. package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +4 -4
  8. package/esm2022/lib/ecommerce/sections/user-basic-info/user-basic-info.component.mjs +64 -0
  9. package/esm2022/lib/services/rest.service.mjs +4 -1
  10. package/fesm2022/simpo-component-library.mjs +157 -69
  11. package/fesm2022/simpo-component-library.mjs.map +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/address/address.component.d.ts +3 -1
  16. package/lib/ecommerce/sections/authenticate-user/authenticate-user.component.d.ts +4 -3
  17. package/lib/ecommerce/sections/cart/cart.component.d.ts +6 -3
  18. package/lib/ecommerce/sections/cart/cart.modal.d.ts +18 -0
  19. package/lib/ecommerce/sections/user-basic-info/user-basic-info.component.d.ts +22 -0
  20. package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
  21. package/lib/services/rest.service.d.ts +1 -0
  22. package/package.json +1 -1
  23. package/simpo-component-library-1.4.14.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
  }
@@ -11,10 +11,12 @@ export declare class AddressComponent implements OnInit, OnChanges {
11
11
  isCart: boolean;
12
12
  private latitute;
13
13
  private longitute;
14
+ addNewAddress: boolean;
14
15
  mapCenter: google.maps.LatLngLiteral;
15
16
  markerPosition: google.maps.LatLngLiteral;
16
17
  markerOptions: google.maps.MarkerOptions;
17
18
  private geocoder;
19
+ selectedAddressIdx: number;
18
20
  addessType: {
19
21
  key: string;
20
22
  status: boolean;
@@ -32,5 +34,5 @@ export declare class AddressComponent implements OnInit, OnChanges {
32
34
  onAutocompleteSelected(result: any): void;
33
35
  updateAddress(): void;
34
36
  static ɵfac: i0.ɵɵFactoryDeclaration<AddressComponent, never>;
35
- static ɵcmp: i0.ɵɵComponentDeclaration<AddressComponent, "simpo-address", never, { "responseData": { "alias": "responseData"; "required": false; }; "isCart": { "alias": "isCart"; "required": false; }; }, {}, never, never, true, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<AddressComponent, "simpo-address", never, { "responseData": { "alias": "responseData"; "required": false; }; "isCart": { "alias": "isCart"; "required": false; }; "selectedAddressIdx": { "alias": "selectedAddressIdx"; "required": false; }; }, {}, never, never, true, never>;
36
38
  }
@@ -1,5 +1,5 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { MatDialogRef } from '@angular/material/dialog';
2
+ import { MatDialog, MatDialogRef } from '@angular/material/dialog';
3
3
  import { RestService } from '../../../services/rest.service';
4
4
  import { Router } from '@angular/router';
5
5
  import * as i0 from "@angular/core";
@@ -7,6 +7,7 @@ export declare class AuthenticateUserComponent implements OnInit {
7
7
  matData: any;
8
8
  private readonly restService;
9
9
  private readonly router;
10
+ private readonly matDialog;
10
11
  private readonly dialogRef;
11
12
  data?: any;
12
13
  responseData?: any;
@@ -14,7 +15,7 @@ export declare class AuthenticateUserComponent implements OnInit {
14
15
  screen: 'LOGIN' | 'OTP';
15
16
  mobile: string | null;
16
17
  countryCode: string | null;
17
- constructor(matData: any, restService: RestService, router: Router, dialogRef: MatDialogRef<AuthenticateUserComponent>);
18
+ constructor(matData: any, restService: RestService, router: Router, matDialog: MatDialog, dialogRef: MatDialogRef<AuthenticateUserComponent>);
18
19
  styles: any;
19
20
  ngOnInit(): void;
20
21
  move(event: any, idx: number): void;
@@ -24,6 +25,6 @@ export declare class AuthenticateUserComponent implements OnInit {
24
25
  verifyOTP(): void;
25
26
  resendOTP(): void;
26
27
  get isMobile(): boolean;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthenticateUserComponent, [{ optional: true; }, null, null, { optional: true; }]>;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuthenticateUserComponent, [{ optional: true; }, null, null, null, { optional: true; }]>;
28
29
  static ɵcmp: i0.ɵɵComponentDeclaration<AuthenticateUserComponent, "simpo-authenticate-user", never, { "data": { "alias": "data"; "required": false; }; "responseData": { "alias": "responseData"; "required": false; }; }, {}, never, never, true, never>;
29
30
  }
@@ -3,6 +3,7 @@ import BaseSection from '../../../sections/BaseSection';
3
3
  import { EventsService } from '.././../../services/events.service';
4
4
  import { CartService } from '../../../services/cart.service';
5
5
  import { Router } from '@angular/router';
6
+ import { MatDialog } from '@angular/material/dialog';
6
7
  import { RestService } from "../../../services/rest.service";
7
8
  import * as i0 from "@angular/core";
8
9
  export declare class CartComponent extends BaseSection {
@@ -10,21 +11,23 @@ export declare class CartComponent extends BaseSection {
10
11
  private readonly cartService;
11
12
  private readonly router;
12
13
  private readonly restService;
14
+ private readonly matDialog;
13
15
  data?: CartSectionModal;
14
16
  responseData?: any;
15
17
  index?: number;
16
18
  edit?: boolean;
17
19
  delete?: boolean;
20
+ selectedAddressIdx: number;
18
21
  styles?: CartSectionStylesModel;
19
22
  currentTab: 'BAG' | 'ADDRESS' | 'PAYMENT';
20
- constructor(_eventService: EventsService, cartService: CartService, router: Router, restService: RestService);
23
+ constructor(_eventService: EventsService, cartService: CartService, router: Router, restService: RestService, matDialog: MatDialog);
21
24
  ngOnInit(): void;
22
- userDetails: any;
23
25
  proceedToCheckout(): void;
24
26
  proceedToListPage(): void;
25
27
  removeItem(item: any): void;
26
28
  addToCart(item: any, type: 'ADD' | 'SUBSTRACT'): void;
27
- get getAddressList(): any[];
29
+ proceedToPayment(): void;
30
+ get getAddressList(): never[];
28
31
  static ɵfac: i0.ɵɵFactoryDeclaration<CartComponent, never>;
29
32
  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>;
30
33
  }
@@ -12,3 +12,21 @@ export interface CartSectionStylesModel {
12
12
  background: BackgroundModel;
13
13
  animation: AnimationModel;
14
14
  }
15
+ export interface Address {
16
+ receiverName: string;
17
+ receiverPhone: string;
18
+ receiverEmail: string;
19
+ countryName: string;
20
+ stateName: string;
21
+ cityName: string;
22
+ localityName: string;
23
+ addressLine1: string;
24
+ landmark: string;
25
+ zipCode: string;
26
+ stateCode: string;
27
+ addressType: string;
28
+ geolocation: {
29
+ latitude: number;
30
+ longitude: number;
31
+ };
32
+ }
@@ -0,0 +1,22 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { MatDialogRef } from '@angular/material/dialog';
3
+ import { RestService } from "../../../services/rest.service";
4
+ import { Router } from '@angular/router';
5
+ import * as i0 from "@angular/core";
6
+ export declare class UserBasicInfoComponent implements OnInit {
7
+ private readonly restService;
8
+ private readonly router;
9
+ private readonly dialogRef;
10
+ gender: 'MALE' | 'FEMALE' | null;
11
+ firstName: string;
12
+ middleName: string;
13
+ lastName: string;
14
+ email: string;
15
+ profilePic: string;
16
+ constructor(restService: RestService, router: Router, dialogRef: MatDialogRef<UserBasicInfoComponent>);
17
+ ngOnInit(): void;
18
+ close(): void;
19
+ saveProfile(): void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserBasicInfoComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<UserBasicInfoComponent, "simpo-user-basic-info", never, {}, {}, never, never, true, never>;
22
+ }
@@ -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>;
@@ -24,6 +24,7 @@ export declare class RestService implements OnDestroy {
24
24
  placeOrder(cartId: string): Observable<Object>;
25
25
  getUserInfo(userId: string): Observable<Object>;
26
26
  addUserAddress(user: any): Observable<Object>;
27
+ updateProfile(payload: any): Observable<Object>;
27
28
  toggleItemCartToFav(): void;
28
29
  createPaymentToken(payload: any): Observable<Object>;
29
30
  refundPayment(orderId: string, payload: any): Observable<Object>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "1.4.13",
3
+ "version": "1.4.14",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",