simpo-component-library 1.4.107 → 1.4.111

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 (35) hide show
  1. package/esm2022/lib/constants/business.constant.mjs +5 -0
  2. package/esm2022/lib/ecommerce/sections/address/address.component.mjs +8 -10
  3. package/esm2022/lib/ecommerce/sections/authenticate-user/authenticate-user.component.mjs +2 -2
  4. package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +48 -36
  5. package/esm2022/lib/ecommerce/sections/checkout/checkout.component.mjs +7 -3
  6. package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +7 -3
  7. package/esm2022/lib/ecommerce/sections/featured-products/featured-products.modal.mjs +1 -1
  8. package/esm2022/lib/ecommerce/sections/order-details/order-details.component.mjs +3 -3
  9. package/esm2022/lib/ecommerce/sections/pagnination/pagnination.component.mjs +6 -6
  10. package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +28 -16
  11. package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +19 -9
  12. package/esm2022/lib/ecommerce/sections/user-profile/user-profile.component.mjs +21 -4
  13. package/esm2022/lib/ecommerce/sections/verify-payment/verify-payment.component.mjs +22 -3
  14. package/esm2022/lib/ecommerce/sections/whislist/whislist.component.mjs +45 -24
  15. package/esm2022/lib/ecommerce/styles/OrderedItems.modal.mjs +2 -1
  16. package/esm2022/lib/pipes/amount.pipe.mjs +35 -0
  17. package/esm2022/lib/services/cart.service.mjs +1 -1
  18. package/esm2022/lib/services/storage.service.mjs +1 -1
  19. package/fesm2022/simpo-component-library.mjs +256 -132
  20. package/fesm2022/simpo-component-library.mjs.map +1 -1
  21. package/lib/constants/business.constant.d.ts +3 -0
  22. package/lib/ecommerce/sections/address/address.component.d.ts +2 -4
  23. package/lib/ecommerce/sections/cart/cart.component.d.ts +7 -5
  24. package/lib/ecommerce/sections/checkout/checkout.component.d.ts +1 -0
  25. package/lib/ecommerce/sections/featured-products/featured-products.component.d.ts +1 -0
  26. package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +5 -1
  27. package/lib/ecommerce/sections/product-list/product-list.component.d.ts +1 -0
  28. package/lib/ecommerce/sections/user-profile/user-profile.component.d.ts +1 -0
  29. package/lib/ecommerce/sections/whislist/whislist.component.d.ts +5 -2
  30. package/lib/ecommerce/styles/OrderedItems.modal.d.ts +1 -0
  31. package/lib/pipes/amount.pipe.d.ts +7 -0
  32. package/package.json +1 -1
  33. package/simpo-component-library-1.4.111.tgz +0 -0
  34. package/simpo-component-library-1.4.105.tgz +0 -0
  35. package/simpo-component-library-1.4.107.tgz +0 -0
@@ -0,0 +1,3 @@
1
+ export declare enum BUSINESS_CONSTANTS {
2
+ CURRENCY = "₹"
3
+ }
@@ -3,7 +3,6 @@ import { RestService } from '../../../services/rest.service';
3
3
  import { MatDialog, MatDialogRef } from '@angular/material/dialog';
4
4
  import { Router } from '@angular/router';
5
5
  import { StorageServiceService } from '../../../services/storage.service';
6
- import { EventsService } from '../../../services/events.service';
7
6
  import * as i0 from "@angular/core";
8
7
  export declare class AddressComponent implements OnInit, OnChanges {
9
8
  private readonly ngZone;
@@ -11,13 +10,12 @@ export declare class AddressComponent implements OnInit, OnChanges {
11
10
  private readonly matDialog;
12
11
  private readonly router;
13
12
  private readonly storageService;
14
- private readonly eventService;
15
13
  matData: any;
16
14
  matDialogRef: MatDialogRef<AddressComponent>;
17
15
  responseData: any;
18
16
  data: any;
19
17
  selectedAddressIdx: number;
20
- constructor(ngZone: NgZone, restService: RestService, matDialog: MatDialog, router: Router, storageService: StorageServiceService, eventService: EventsService, matData: any, matDialogRef: MatDialogRef<AddressComponent>);
18
+ constructor(ngZone: NgZone, restService: RestService, matDialog: MatDialog, router: Router, storageService: StorageServiceService, matData: any, matDialogRef: MatDialogRef<AddressComponent>);
21
19
  addressList: any[];
22
20
  address: any;
23
21
  isCart: boolean;
@@ -44,6 +42,6 @@ export declare class AddressComponent implements OnInit, OnChanges {
44
42
  onLocationSelected(location: any): void;
45
43
  onAutocompleteSelected(result: any): void;
46
44
  updateAddress(): void;
47
- static ɵfac: i0.ɵɵFactoryDeclaration<AddressComponent, [null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
45
+ static ɵfac: i0.ɵɵFactoryDeclaration<AddressComponent, [null, null, null, null, null, { optional: true; }, { optional: true; }]>;
48
46
  static ɵcmp: i0.ɵɵComponentDeclaration<AddressComponent, "simpo-address", never, { "responseData": { "alias": "responseData"; "required": false; }; "data": { "alias": "data"; "required": false; }; "isCart": { "alias": "isCart"; "required": false; }; }, {}, never, never, true, never>;
49
47
  }
@@ -1,3 +1,4 @@
1
+ import { OnInit } from '@angular/core';
1
2
  import { CartSectionModal, CartSectionStylesModel } from './cart.modal';
2
3
  import BaseSection from '../../../sections/BaseSection';
3
4
  import { EventsService } from '.././../../services/events.service';
@@ -6,16 +7,16 @@ import { Router } from '@angular/router';
6
7
  import { MatDialog } from '@angular/material/dialog';
7
8
  import { RestService } from "../../../services/rest.service";
8
9
  import { StorageServiceService } from '../../../services/storage.service';
9
- import { CookieService } from 'ngx-cookie-service';
10
+ import { MessageService } from 'primeng/api';
10
11
  import * as i0 from "@angular/core";
11
- export declare class CartComponent extends BaseSection {
12
+ export declare class CartComponent extends BaseSection implements OnInit {
12
13
  private readonly _eventService;
13
14
  private readonly cartService;
14
15
  private readonly router;
15
16
  private readonly restService;
16
17
  private readonly matDialog;
17
18
  private readonly storageService;
18
- private readonly cookieService;
19
+ private readonly messageService;
19
20
  data?: CartSectionModal;
20
21
  responseData?: any;
21
22
  index?: number;
@@ -25,13 +26,13 @@ export declare class CartComponent extends BaseSection {
25
26
  selectedAddress: any;
26
27
  styles?: CartSectionStylesModel;
27
28
  currentTab: 'BAG' | 'ADDRESS' | 'PAYMENT';
28
- constructor(_eventService: EventsService, cartService: CartService, router: Router, restService: RestService, matDialog: MatDialog, storageService: StorageServiceService, cookieService: CookieService);
29
+ constructor(_eventService: EventsService, cartService: CartService, router: Router, restService: RestService, matDialog: MatDialog, storageService: StorageServiceService, messageService: MessageService);
29
30
  private loadingItems;
30
31
  private userDetails;
31
- private userCart;
32
32
  private USER_CART_ITEMS;
33
33
  cartInfo: any;
34
34
  ngOnInit(): void;
35
+ getIndexDBData(): void;
35
36
  proceedToCheckout(): void;
36
37
  proceedToListPage(): void;
37
38
  removeItem(item: any): void;
@@ -40,6 +41,7 @@ export declare class CartComponent extends BaseSection {
40
41
  isItemLoading(itemId: string): boolean;
41
42
  get getAddressList(): import("../../styles/user.modal").AddressDetails[];
42
43
  get isMobile(): boolean;
44
+ get currency(): string;
43
45
  static ɵfac: i0.ɵɵFactoryDeclaration<CartComponent, never>;
44
46
  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>;
45
47
  }
@@ -18,6 +18,7 @@ export declare class CheckoutComponent extends BaseSection {
18
18
  button?: ButtonModel;
19
19
  ngOnInit(): void;
20
20
  placeOrder(): void;
21
+ get currency(): string;
21
22
  static ɵfac: i0.ɵɵFactoryDeclaration<CheckoutComponent, never>;
22
23
  static ɵcmp: i0.ɵɵComponentDeclaration<CheckoutComponent, "simpo-checkout", 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
24
  }
@@ -41,6 +41,7 @@ export declare class FeaturedProductsComponent extends BaseSection implements On
41
41
  toggleItemToFav(product: Product, type: 'ADD' | 'REMOVE'): void;
42
42
  proceedToProductDesc(productId: any): void;
43
43
  togglePreviewImage(product: Product, idx: number): void;
44
+ get currency(): string;
44
45
  static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedProductsComponent, never>;
45
46
  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; }; }, {}, never, never, true, never>;
46
47
  }
@@ -8,6 +8,7 @@ import { RestService } from '../../../services/rest.service';
8
8
  import { CartService } from '../../../services/cart.service';
9
9
  import { FeaturedProductModal } from '../featured-products/featured-products.modal';
10
10
  import { StorageServiceService } from '../../../services/storage.service';
11
+ import { MessageService } from 'primeng/api';
11
12
  import * as i0 from "@angular/core";
12
13
  export declare class ProductDescComponent extends BaseSection {
13
14
  private platformId;
@@ -17,6 +18,7 @@ export declare class ProductDescComponent extends BaseSection {
17
18
  private readonly restService;
18
19
  private readonly cartService;
19
20
  private readonly storageService;
21
+ private readonly messageService;
20
22
  data?: ProductDescModal;
21
23
  responseData: Product;
22
24
  index?: number;
@@ -24,7 +26,7 @@ export declare class ProductDescComponent extends BaseSection {
24
26
  delete?: boolean;
25
27
  isLoading: boolean;
26
28
  relatedProductData: Product[];
27
- constructor(platformId: Object, _eventService: EventsService, router: Router, activatedRoute: ActivatedRoute, restService: RestService, cartService: CartService, storageService: StorageServiceService);
29
+ constructor(platformId: Object, _eventService: EventsService, router: Router, activatedRoute: ActivatedRoute, restService: RestService, cartService: CartService, storageService: StorageServiceService, messageService: MessageService);
28
30
  buttonId?: string;
29
31
  button?: ButtonModel;
30
32
  styles?: ProductDescStylesModal;
@@ -37,12 +39,14 @@ export declare class ProductDescComponent extends BaseSection {
37
39
  getScreenSize(): void;
38
40
  currentImg: any;
39
41
  changeImg(url: any): void;
42
+ goToCart(): void;
40
43
  addToCart(type?: 'ADD' | 'SUBSTRACT'): void;
41
44
  goToFilter(category: string): void;
42
45
  addToFavourite(): void;
43
46
  removeToFavourite(): void;
44
47
  get getFeatureProductData(): FeaturedProductModal;
45
48
  getProductByCategory(): void;
49
+ get currency(): string;
46
50
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductDescComponent, never>;
47
51
  static ɵcmp: i0.ɵɵComponentDeclaration<ProductDescComponent, "simpo-product-desc", 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>;
48
52
  }
@@ -68,6 +68,7 @@ export declare class ProductListComponent extends BaseSection {
68
68
  openSorting(SortingSection: any): void;
69
69
  closeDialog(): void;
70
70
  get getTotalPage(): number;
71
+ get currency(): string;
71
72
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductListComponent, never>;
72
73
  static ɵcmp: i0.ɵɵComponentDeclaration<ProductListComponent, "simpo-product-list", 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>;
73
74
  }
@@ -43,6 +43,7 @@ export declare class UserProfileComponent extends BaseSection implements OnInit
43
43
  goToHome(): void;
44
44
  editAddress(index: number): void;
45
45
  deleteAddress(index: number): void;
46
+ logout(): void;
46
47
  private saveProfile;
47
48
  selectTab(tab: Tabs): void;
48
49
  toggleSidepanelTab(tab: Tabs): void;
@@ -3,6 +3,7 @@ import { CartService } from '../../../services/cart.service';
3
3
  import { EventsService } from '../../../services/events.service';
4
4
  import { StorageServiceService } from '../../../services/storage.service';
5
5
  import { RestService } from '../../../services/rest.service';
6
+ import { OrderedItems } from '../../styles/OrderedItems.modal';
6
7
  import BaseSection from '../../../sections/BaseSection';
7
8
  import * as i0 from "@angular/core";
8
9
  export declare class WhislistComponent extends BaseSection implements OnInit {
@@ -22,9 +23,11 @@ export declare class WhislistComponent extends BaseSection implements OnInit {
22
23
  private USER_WISHLIST_ITEMS;
23
24
  wishlistInfo: any;
24
25
  ngOnInit(): void;
25
- moveToCart(item: any): void;
26
- deleteFromWhislist(item: any): void;
26
+ moveToFavourite(product: OrderedItems): void;
27
+ getWishlistIndexDBData(): void;
28
+ deleteFromWhislist(product: OrderedItems): void;
27
29
  addToFav(item: any, type: 'ADD' | 'SUBSTRACT'): void;
30
+ get currency(): string;
28
31
  static ɵfac: i0.ɵɵFactoryDeclaration<WhislistComponent, never>;
29
32
  static ɵcmp: i0.ɵɵComponentDeclaration<WhislistComponent, "simpo-whislist", 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>;
30
33
  }
@@ -5,6 +5,7 @@ export declare class OrderedItems {
5
5
  businessName: string;
6
6
  imgUrl: string;
7
7
  price: number;
8
+ sellingPrice: number;
8
9
  itemTax: number;
9
10
  quantity: number;
10
11
  discountedPrice: number;
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class FormateAmount implements PipeTransform {
4
+ transform(value: string | number, system?: "IND" | "INT"): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormateAmount, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<FormateAmount, "formateAmount", true>;
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "1.4.107",
3
+ "version": "1.4.111",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file
Binary file