simpo-component-library 1.4.11 → 1.4.13

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 (102) hide show
  1. package/esm2022/lib/components/delete-hover-element/delete-hover-element.component.mjs +3 -3
  2. package/esm2022/lib/components/hover-elements/hover-elements.component.mjs +3 -3
  3. package/esm2022/lib/components/index.mjs +4 -4
  4. package/esm2022/lib/components/input-fields/input-fields.component.mjs +3 -3
  5. package/esm2022/lib/directive/animation-directive.mjs +3 -3
  6. package/esm2022/lib/directive/background-directive.mjs +3 -3
  7. package/esm2022/lib/directive/banner-content-fit-directive.mjs +3 -3
  8. package/esm2022/lib/directive/blur-content.directive.mjs +3 -3
  9. package/esm2022/lib/directive/border-directive.mjs +3 -3
  10. package/esm2022/lib/directive/borderlessImage.directive.mjs +3 -3
  11. package/esm2022/lib/directive/button-directive.directive.mjs +3 -3
  12. package/esm2022/lib/directive/color.directive.mjs +3 -3
  13. package/esm2022/lib/directive/column-directive.directive.mjs +3 -3
  14. package/esm2022/lib/directive/container-alignment.directive.mjs +3 -3
  15. package/esm2022/lib/directive/container-fir.directive.mjs +3 -3
  16. package/esm2022/lib/directive/content-alignment-directive.mjs +3 -3
  17. package/esm2022/lib/directive/content-fit-directive.mjs +3 -3
  18. package/esm2022/lib/directive/content-title-spacing.directive.mjs +3 -3
  19. package/esm2022/lib/directive/corner-directive.mjs +3 -3
  20. package/esm2022/lib/directive/footer-layout-directive.mjs +3 -3
  21. package/esm2022/lib/directive/hover-element-directive.mjs +3 -3
  22. package/esm2022/lib/directive/hoverborder.directive.mjs +3 -3
  23. package/esm2022/lib/directive/image-container.directive.mjs +3 -3
  24. package/esm2022/lib/directive/image-directive.directive.mjs +3 -3
  25. package/esm2022/lib/directive/image-position.directive.mjs +3 -3
  26. package/esm2022/lib/directive/overlay-directive.mjs +3 -3
  27. package/esm2022/lib/directive/position-layout-directive.directive.mjs +3 -3
  28. package/esm2022/lib/directive/sticky-directive.mjs +3 -3
  29. package/esm2022/lib/directive/text-background-directive.directive.mjs +3 -3
  30. package/esm2022/lib/directive/text-size.directive.mjs +3 -3
  31. package/esm2022/lib/ecommerce/json/user-cart.json +14 -1
  32. package/esm2022/lib/ecommerce/json/user-details.json +1 -1
  33. package/esm2022/lib/ecommerce/sections/address/address.component.mjs +148 -0
  34. package/esm2022/lib/ecommerce/sections/authenticate-user/authenticate-user.component.mjs +16 -10
  35. package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +50 -14
  36. package/esm2022/lib/ecommerce/sections/checkout/checkout.component.mjs +3 -3
  37. package/esm2022/lib/ecommerce/sections/featured-category/featured-category.component.mjs +3 -3
  38. package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +13 -7
  39. package/esm2022/lib/ecommerce/sections/order-details/order-details.component.mjs +3 -3
  40. package/esm2022/lib/ecommerce/sections/pagnination/pagnination.component.mjs +3 -3
  41. package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +5 -7
  42. package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +3 -3
  43. package/esm2022/lib/ecommerce/sections/user-profile/user-profile.component.mjs +18 -14
  44. package/esm2022/lib/ecommerce/sections/user-profile/user-profile.modal.mjs +1 -1
  45. package/esm2022/lib/ecommerce/sections/whislist/whislist.component.mjs +3 -3
  46. package/esm2022/lib/elements/below-image-card/below-image-card.component.mjs +3 -3
  47. package/esm2022/lib/elements/button/button.component.mjs +3 -3
  48. package/esm2022/lib/elements/covering-image-card/covering-image-card.component.mjs +3 -3
  49. package/esm2022/lib/elements/heading-element/heading-element.component.mjs +3 -3
  50. package/esm2022/lib/elements/index.mjs +4 -4
  51. package/esm2022/lib/elements/navbar-button-element/navbar-button-element.component.mjs +3 -3
  52. package/esm2022/lib/elements/simpo-button/simpo-button.component.mjs +3 -3
  53. package/esm2022/lib/elements/socia-icons/socia-icons.component.mjs +3 -3
  54. package/esm2022/lib/elements/text/text.component.mjs +3 -3
  55. package/esm2022/lib/elements/top-of-image-card/top-of-image-card.component.mjs +3 -3
  56. package/esm2022/lib/sections/add-new-section/add-new-section.component.mjs +3 -3
  57. package/esm2022/lib/sections/banner-carousel/banner-carousel.component.mjs +3 -3
  58. package/esm2022/lib/sections/banner-grid-section/banner-grid-section.component.mjs +3 -3
  59. package/esm2022/lib/sections/banner-section/banner-section.component.mjs +3 -3
  60. package/esm2022/lib/sections/blog-list/blog-list.component.mjs +3 -3
  61. package/esm2022/lib/sections/choose-us-section/choose-us-section.component.mjs +3 -3
  62. package/esm2022/lib/sections/contact-us/contact-us.component.mjs +3 -3
  63. package/esm2022/lib/sections/faq-section/faq-section.component.mjs +3 -3
  64. package/esm2022/lib/sections/features-section/features-section.component.mjs +3 -3
  65. package/esm2022/lib/sections/footer-section/footer-section.component.mjs +3 -3
  66. package/esm2022/lib/sections/header-text/header-text.component.mjs +3 -3
  67. package/esm2022/lib/sections/image-carousel-section/image-carousel-section.component.mjs +3 -3
  68. package/esm2022/lib/sections/image-grid-section/image-grid-section.component.mjs +3 -3
  69. package/esm2022/lib/sections/image-section/image-section.component.mjs +3 -3
  70. package/esm2022/lib/sections/location-section/location-section.component.mjs +3 -3
  71. package/esm2022/lib/sections/logo-showcase/logo-showcase.component.mjs +3 -3
  72. package/esm2022/lib/sections/navbar-section/navbar-section.component.mjs +8 -8
  73. package/esm2022/lib/sections/navbar-section/navbar-section.model.mjs +1 -1
  74. package/esm2022/lib/sections/pricing-section/pricing-section.component.mjs +3 -3
  75. package/esm2022/lib/sections/process-modern/process-modern.component.mjs +3 -3
  76. package/esm2022/lib/sections/process-section/process-section.component.mjs +3 -3
  77. package/esm2022/lib/sections/recent-blog-post-section/recent-blog-post-section.component.mjs +3 -3
  78. package/esm2022/lib/sections/service-section/service-section.component.mjs +3 -3
  79. package/esm2022/lib/sections/skeleton-loader-section/skeleton-loader-section.component.mjs +3 -3
  80. package/esm2022/lib/sections/team-member-section/team-member-section.component.mjs +3 -3
  81. package/esm2022/lib/sections/testimonial-fullwidth/testimonial-fullwidth.component.mjs +3 -3
  82. package/esm2022/lib/sections/testimonial-section/testimonial-section.component.mjs +3 -3
  83. package/esm2022/lib/sections/text-image-section/text-image-section.component.mjs +3 -3
  84. package/esm2022/lib/sections/text-section/text-section.component.mjs +3 -3
  85. package/esm2022/lib/sections/video-section/video-section.component.mjs +3 -3
  86. package/esm2022/lib/sections/view-blog/view-blog.component.mjs +3 -3
  87. package/esm2022/lib/services/cart.service.mjs +7 -5
  88. package/esm2022/lib/services/events.service.mjs +3 -3
  89. package/esm2022/lib/services/rest.service.mjs +24 -4
  90. package/fesm2022/simpo-component-library.mjs +518 -301
  91. package/fesm2022/simpo-component-library.mjs.map +1 -1
  92. package/lib/ecommerce/sections/address/address.component.d.ts +36 -0
  93. package/lib/ecommerce/sections/authenticate-user/authenticate-user.component.d.ts +4 -2
  94. package/lib/ecommerce/sections/cart/cart.component.d.ts +8 -1
  95. package/lib/ecommerce/sections/user-profile/user-profile.component.d.ts +6 -5
  96. package/lib/ecommerce/sections/user-profile/user-profile.modal.d.ts +14 -0
  97. package/lib/sections/navbar-section/navbar-section.model.d.ts +1 -0
  98. package/lib/services/rest.service.d.ts +6 -0
  99. package/package.json +1 -1
  100. package/simpo-component-library-1.4.12.tgz +0 -0
  101. package/simpo-component-library-1.4.13.tgz +0 -0
  102. package/simpo-component-library-1.4.11.tgz +0 -0
@@ -0,0 +1,36 @@
1
+ import { OnInit, NgZone, OnChanges, SimpleChanges } from '@angular/core';
2
+ import { RestService } from '../../../services/rest.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class AddressComponent implements OnInit, OnChanges {
5
+ private readonly ngZone;
6
+ private readonly restService;
7
+ responseData: any;
8
+ constructor(ngZone: NgZone, restService: RestService);
9
+ addressList: any[];
10
+ address: any;
11
+ isCart: boolean;
12
+ private latitute;
13
+ private longitute;
14
+ mapCenter: google.maps.LatLngLiteral;
15
+ markerPosition: google.maps.LatLngLiteral;
16
+ markerOptions: google.maps.MarkerOptions;
17
+ private geocoder;
18
+ addessType: {
19
+ key: string;
20
+ status: boolean;
21
+ }[];
22
+ ngOnInit(): void;
23
+ ngOnChanges(changes: SimpleChanges): void;
24
+ checkAddressType(address: {
25
+ key: string;
26
+ status: boolean;
27
+ }): void;
28
+ close(): void;
29
+ getCurrentLocation(): void;
30
+ getAddress(): void;
31
+ onLocationSelected(location: any): void;
32
+ onAutocompleteSelected(result: any): void;
33
+ updateAddress(): void;
34
+ 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>;
36
+ }
@@ -1,10 +1,12 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { MatDialogRef } from '@angular/material/dialog';
3
3
  import { RestService } from '../../../services/rest.service';
4
+ import { Router } from '@angular/router';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class AuthenticateUserComponent implements OnInit {
6
7
  matData: any;
7
8
  private readonly restService;
9
+ private readonly router;
8
10
  private readonly dialogRef;
9
11
  data?: any;
10
12
  responseData?: any;
@@ -12,7 +14,7 @@ export declare class AuthenticateUserComponent implements OnInit {
12
14
  screen: 'LOGIN' | 'OTP';
13
15
  mobile: string | null;
14
16
  countryCode: string | null;
15
- constructor(matData: any, restService: RestService, dialogRef: MatDialogRef<AuthenticateUserComponent>);
17
+ constructor(matData: any, restService: RestService, router: Router, dialogRef: MatDialogRef<AuthenticateUserComponent>);
16
18
  styles: any;
17
19
  ngOnInit(): void;
18
20
  move(event: any, idx: number): void;
@@ -22,6 +24,6 @@ export declare class AuthenticateUserComponent implements OnInit {
22
24
  verifyOTP(): void;
23
25
  resendOTP(): void;
24
26
  get isMobile(): boolean;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthenticateUserComponent, [{ optional: true; }, null, { optional: true; }]>;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuthenticateUserComponent, [{ optional: true; }, null, null, { optional: true; }]>;
26
28
  static ɵcmp: i0.ɵɵComponentDeclaration<AuthenticateUserComponent, "simpo-authenticate-user", never, { "data": { "alias": "data"; "required": false; }; "responseData": { "alias": "responseData"; "required": false; }; }, {}, never, never, true, never>;
27
29
  }
@@ -2,22 +2,29 @@ import { CartSectionModal, CartSectionStylesModel } from './cart.modal';
2
2
  import BaseSection from '../../../sections/BaseSection';
3
3
  import { EventsService } from '.././../../services/events.service';
4
4
  import { CartService } from '../../../services/cart.service';
5
+ import { Router } from '@angular/router';
6
+ import { RestService } from "../../../services/rest.service";
5
7
  import * as i0 from "@angular/core";
6
8
  export declare class CartComponent extends BaseSection {
7
9
  private readonly _eventService;
8
10
  private readonly cartService;
11
+ private readonly router;
12
+ private readonly restService;
9
13
  data?: CartSectionModal;
10
14
  responseData?: any;
11
15
  index?: number;
12
16
  edit?: boolean;
13
17
  delete?: boolean;
14
18
  styles?: CartSectionStylesModel;
15
- constructor(_eventService: EventsService, cartService: CartService);
19
+ currentTab: 'BAG' | 'ADDRESS' | 'PAYMENT';
20
+ constructor(_eventService: EventsService, cartService: CartService, router: Router, restService: RestService);
16
21
  ngOnInit(): void;
22
+ userDetails: any;
17
23
  proceedToCheckout(): void;
18
24
  proceedToListPage(): void;
19
25
  removeItem(item: any): void;
20
26
  addToCart(item: any, type: 'ADD' | 'SUBSTRACT'): void;
27
+ get getAddressList(): any[];
21
28
  static ɵfac: i0.ɵɵFactoryDeclaration<CartComponent, never>;
22
29
  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>;
23
30
  }
@@ -1,12 +1,13 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { UserDetails } from '../../styles/cart.modal';
3
- import { ResponseData, Tabs } from './user-profile.modal';
2
+ import { ResponseData, Tabs, UserProfile } from './user-profile.modal';
4
3
  import { OrderItem } from '../../styles/order.modal';
5
4
  import { Router } from '@angular/router';
5
+ import { RestService } from "../../../services/rest.service";
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class UserProfileComponent implements OnInit {
8
8
  private readonly router;
9
- constructor(router: Router);
9
+ private readonly restService;
10
+ constructor(router: Router, restService: RestService);
10
11
  responseData?: ResponseData;
11
12
  data?: any;
12
13
  index?: number;
@@ -14,7 +15,7 @@ export declare class UserProfileComponent implements OnInit {
14
15
  delete?: boolean;
15
16
  button: any;
16
17
  selectedSidePanelTab: string | null;
17
- userDetails: UserDetails | null;
18
+ userDetails: UserProfile | null;
18
19
  addressList: any;
19
20
  sidePanelList: Tabs[];
20
21
  tabs: Tabs[];
@@ -26,7 +27,7 @@ export declare class UserProfileComponent implements OnInit {
26
27
  goToHome(): void;
27
28
  selectTab(tab: Tabs): void;
28
29
  toggleSidepanelTab(tab: Tabs): void;
29
- get getUserDetails(): UserDetails | null;
30
+ get getUserDetails(): UserProfile | null;
30
31
  get isMobile(): boolean;
31
32
  static ɵfac: i0.ɵɵFactoryDeclaration<UserProfileComponent, never>;
32
33
  static ɵcmp: i0.ɵɵComponentDeclaration<UserProfileComponent, "simpo-user-profile", never, { "responseData": { "alias": "responseData"; "required": false; }; "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
@@ -35,3 +35,17 @@ export interface ResponseData {
35
35
  tabs: Tabs[];
36
36
  orders: OrderItem[];
37
37
  }
38
+ export interface UserProfile {
39
+ userId: string;
40
+ businessId: string;
41
+ address: any;
42
+ gender: string;
43
+ contact: UserContact;
44
+ }
45
+ export interface UserContact {
46
+ id: string;
47
+ name: string;
48
+ mobile: string;
49
+ countryCode: string;
50
+ email: string;
51
+ }
@@ -9,6 +9,7 @@ export interface HeaderSectionModel {
9
9
  content: HeaderContentModel;
10
10
  styles: HeaderStyleModel;
11
11
  action: ActionModel;
12
+ type: 'STATIC' | 'E_COMMERCE';
12
13
  }
13
14
  export interface HeaderContentModel {
14
15
  siteName: InputTextModel;
@@ -18,10 +18,16 @@ export declare class RestService implements OnDestroy {
18
18
  getProductByCategoryId(categoryId: string): Observable<Object>;
19
19
  generateOTP(mobile: string, countryCode: string): Observable<Object>;
20
20
  verifyOTP(mobile: string, otp: string): Observable<Object>;
21
+ resendOTP(mobile: string, countryCode: string): Observable<Object>;
21
22
  addItemToDB(userCart: any): Observable<Object>;
22
23
  getUserItems(userId: string, cartType: 'CART' | 'WISHLIST'): Observable<Object>;
23
24
  placeOrder(cartId: string): Observable<Object>;
25
+ getUserInfo(userId: string): Observable<Object>;
26
+ addUserAddress(user: any): Observable<Object>;
24
27
  toggleItemCartToFav(): void;
28
+ createPaymentToken(payload: any): Observable<Object>;
29
+ refundPayment(orderId: string, payload: any): Observable<Object>;
30
+ checkPaymentStatus(payload: any): Observable<Object>;
25
31
  static ɵfac: i0.ɵɵFactoryDeclaration<RestService, never>;
26
32
  static ɵprov: i0.ɵɵInjectableDeclaration<RestService>;
27
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "1.4.11",
3
+ "version": "1.4.13",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file