simpo-component-library 1.4.144 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. package/esm2022/lib/directive/background-directive.mjs +1 -1
  2. package/esm2022/lib/directive/border-directive.mjs +11 -23
  3. package/esm2022/lib/directive/removeCarousel-directive.mjs +73 -0
  4. package/esm2022/lib/ecommerce/json/user-cart.json +40 -0
  5. package/esm2022/lib/ecommerce/json/user-details.json +15 -0
  6. package/esm2022/lib/ecommerce/json/user-favourite.json +32 -0
  7. package/esm2022/lib/ecommerce/sections/address/address.component.mjs +17 -49
  8. package/esm2022/lib/ecommerce/sections/authenticate-user/authenticate-user.component.mjs +36 -69
  9. package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +49 -202
  10. package/esm2022/lib/ecommerce/sections/cart/cart.modal.mjs +1 -1
  11. package/esm2022/lib/ecommerce/sections/checkout/checkout.component.mjs +3 -7
  12. package/esm2022/lib/ecommerce/sections/featured-category/featured-category.component.mjs +4 -4
  13. package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +34 -77
  14. package/esm2022/lib/ecommerce/sections/featured-products/featured-products.modal.mjs +2 -11
  15. package/esm2022/lib/ecommerce/sections/order-details/order-details.component.mjs +10 -74
  16. package/esm2022/lib/ecommerce/sections/pagnination/pagnination.component.mjs +7 -13
  17. package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +30 -88
  18. package/esm2022/lib/ecommerce/sections/product-desc/product-desc.modal.mjs +1 -1
  19. package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +30 -106
  20. package/esm2022/lib/ecommerce/sections/product-list/product-list.modal.mjs +1 -1
  21. package/esm2022/lib/ecommerce/sections/user-basic-info/user-basic-info.component.mjs +17 -43
  22. package/esm2022/lib/ecommerce/sections/user-profile/user-profile.component.mjs +24 -156
  23. package/esm2022/lib/ecommerce/sections/user-profile/user-profile.modal.mjs +1 -1
  24. package/esm2022/lib/ecommerce/sections/whislist/whislist.component.mjs +17 -147
  25. package/esm2022/lib/ecommerce/styles/OrderedItems.modal.mjs +2 -3
  26. package/esm2022/lib/ecommerce/styles/cart.modal.mjs +1 -2
  27. package/esm2022/lib/sections/banner-section/banner-section.component.mjs +2 -1
  28. package/esm2022/lib/sections/carousel-banner/carousel-banner.component.mjs +166 -0
  29. package/esm2022/lib/sections/carousel-banner/carousel-banner.model.mjs +2 -0
  30. package/esm2022/lib/sections/choose-us-section/choose-us-section.component.mjs +3 -3
  31. package/esm2022/lib/sections/contact-us/contact-us.component.mjs +3 -5
  32. package/esm2022/lib/sections/navbar-section/navbar-section.component.mjs +8 -14
  33. package/esm2022/lib/sections/navbar-section/navbar-section.model.mjs +1 -1
  34. package/esm2022/lib/services/cart.service.mjs +109 -40
  35. package/esm2022/lib/services/events.service.mjs +2 -3
  36. package/esm2022/lib/services/rest.service.mjs +2 -17
  37. package/esm2022/lib/services/storage.service.mjs +30 -83
  38. package/esm2022/lib/styles/index.mjs +1 -8
  39. package/esm2022/lib/styles/style.model.mjs +1 -1
  40. package/esm2022/lib/styles/types.mjs +1 -1
  41. package/esm2022/public-api.mjs +3 -3
  42. package/fesm2022/simpo-component-library.mjs +816 -1459
  43. package/fesm2022/simpo-component-library.mjs.map +1 -1
  44. package/lib/directive/removeCarousel-directive.d.ts +35 -0
  45. package/lib/ecommerce/sections/address/address.component.d.ts +7 -12
  46. package/lib/ecommerce/sections/authenticate-user/authenticate-user.component.d.ts +6 -22
  47. package/lib/ecommerce/sections/cart/cart.component.d.ts +6 -14
  48. package/lib/ecommerce/sections/cart/cart.modal.d.ts +1 -10
  49. package/lib/ecommerce/sections/checkout/checkout.component.d.ts +0 -1
  50. package/lib/ecommerce/sections/featured-products/featured-products.component.d.ts +7 -14
  51. package/lib/ecommerce/sections/featured-products/featured-products.modal.d.ts +1 -4
  52. package/lib/ecommerce/sections/order-details/order-details.component.d.ts +2 -15
  53. package/lib/ecommerce/sections/pagnination/pagnination.component.d.ts +2 -3
  54. package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +3 -17
  55. package/lib/ecommerce/sections/product-desc/product-desc.modal.d.ts +1 -2
  56. package/lib/ecommerce/sections/product-list/product-list.component.d.ts +2 -21
  57. package/lib/ecommerce/sections/product-list/product-list.modal.d.ts +0 -2
  58. package/lib/ecommerce/sections/user-basic-info/user-basic-info.component.d.ts +1 -11
  59. package/lib/ecommerce/sections/user-profile/user-profile.component.d.ts +10 -36
  60. package/lib/ecommerce/sections/user-profile/user-profile.modal.d.ts +8 -5
  61. package/lib/ecommerce/sections/whislist/whislist.component.d.ts +6 -20
  62. package/lib/ecommerce/styles/OrderedItems.modal.d.ts +1 -2
  63. package/lib/ecommerce/styles/cart.modal.d.ts +0 -1
  64. package/lib/sections/carousel-banner/carousel-banner.component.d.ts +28 -0
  65. package/lib/sections/carousel-banner/carousel-banner.model.d.ts +42 -0
  66. package/lib/sections/navbar-section/navbar-section.component.d.ts +0 -1
  67. package/lib/sections/navbar-section/navbar-section.model.d.ts +1 -1
  68. package/lib/services/cart.service.d.ts +5 -8
  69. package/lib/services/events.service.d.ts +3 -4
  70. package/lib/services/rest.service.d.ts +0 -3
  71. package/lib/services/storage.service.d.ts +44 -11
  72. package/lib/styles/index.d.ts +0 -6
  73. package/lib/styles/style.model.d.ts +1 -4
  74. package/lib/styles/types.d.ts +0 -1
  75. package/package.json +1 -1
  76. package/public-api.d.ts +2 -2
  77. package/simpo-component-library-1.5.0.tgz +0 -0
  78. package/esm2022/lib/constants/business.constant.mjs +0 -5
  79. package/esm2022/lib/directive/spacing-horizontal.directive.mjs +0 -48
  80. package/esm2022/lib/ecommerce/sections/verify-payment/verify-payment.component.mjs +0 -97
  81. package/esm2022/lib/ecommerce/sections/verify-payment/verify-payment.model.mjs +0 -2
  82. package/esm2022/lib/pipes/amount.pipe.mjs +0 -35
  83. package/esm2022/lib/services/endUser.service.mjs +0 -28
  84. package/lib/constants/business.constant.d.ts +0 -3
  85. package/lib/directive/spacing-horizontal.directive.d.ts +0 -18
  86. package/lib/ecommerce/sections/verify-payment/verify-payment.component.d.ts +0 -27
  87. package/lib/ecommerce/sections/verify-payment/verify-payment.model.d.ts +0 -23
  88. package/lib/pipes/amount.pipe.d.ts +0 -7
  89. package/lib/services/endUser.service.d.ts +0 -13
  90. package/simpo-component-library-1.4.144.tgz +0 -0
@@ -1,36 +1,22 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { CartService } from '../../../services/cart.service';
3
3
  import { EventsService } from '../../../services/events.service';
4
- import { StorageServiceService } from '../../../services/storage.service';
5
- import { RestService } from '../../../services/rest.service';
6
- import { OrderedItems } from '../../styles/OrderedItems.modal';
7
- import BaseSection from '../../../sections/BaseSection';
8
- import { MessageService } from 'primeng/api';
9
- import { Cart } from '../../styles/cart.modal';
10
4
  import * as i0 from "@angular/core";
11
- export declare class WhislistComponent extends BaseSection implements OnInit {
5
+ export declare class WhislistComponent implements OnInit {
12
6
  private readonly cartService;
13
7
  private readonly _eventService;
14
- private readonly storageService;
15
- private readonly restService;
16
- private readonly messageService;
17
- responseData?: Cart;
8
+ responseData?: any;
18
9
  data?: any;
19
10
  index?: number;
20
11
  edit?: boolean;
21
12
  delete?: boolean;
22
13
  isLoading: boolean;
23
14
  styles: any;
24
- constructor(cartService: CartService, _eventService: EventsService, storageService: StorageServiceService, restService: RestService, messageService: MessageService);
25
- private userDetails;
26
- private USER_WISHLIST_ITEMS;
27
- wishlistInfo: any;
15
+ constructor(cartService: CartService, _eventService: EventsService);
28
16
  ngOnInit(): void;
29
- moveToCart(product: OrderedItems): void;
30
- getWishlistIndexDBData(): void;
31
- deleteFromWhislist(product: OrderedItems): void;
32
- addToFav(item: OrderedItems, type: 'ADD' | 'SUBSTRACT'): void;
33
- get currency(): string;
17
+ moveToCart(item: any): void;
18
+ deleteFromWhislist(item: any): void;
19
+ addToFav(item: any, type: 'ADD' | 'SUBSTRACT'): void;
34
20
  static ɵfac: i0.ɵɵFactoryDeclaration<WhislistComponent, never>;
35
21
  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>;
36
22
  }
@@ -2,10 +2,9 @@ export declare class OrderedItems {
2
2
  itemId: string;
3
3
  businessId: string;
4
4
  itemName: string;
5
- businessName: string;
5
+ brandName: string;
6
6
  imgUrl: string;
7
7
  price: number;
8
- sellingPrice: number;
9
8
  itemTax: number;
10
9
  quantity: number;
11
10
  discountedPrice: number;
@@ -1,7 +1,6 @@
1
1
  import { OrderedItems } from "./OrderedItems.modal";
2
2
  export declare class Cart {
3
3
  cartId?: string;
4
- businessId: string;
5
4
  pgOrderId: string;
6
5
  orderedItems: OrderedItems[];
7
6
  billdetails: Billdetails;
@@ -0,0 +1,28 @@
1
+ import { OnInit, ElementRef } from '@angular/core';
2
+ import { LayOutModel, PositionLayoutModal } from '../../styles/style.model';
3
+ import BaseSection from '../BaseSection';
4
+ import { EventsService } from './../../services/events.service';
5
+ import { BannerSectionModel } from './carousel-banner.model';
6
+ import { OverlayValue } from "../../styles/index";
7
+ import * as i0 from "@angular/core";
8
+ export declare class CarouselBannerComponent extends BaseSection implements OnInit {
9
+ private _eventService;
10
+ carouselElement1: ElementRef;
11
+ data?: BannerSectionModel;
12
+ index?: number;
13
+ edit?: boolean;
14
+ delete?: boolean;
15
+ currentIndex: number;
16
+ selectSlide(index: number): void;
17
+ constructor(_eventService: EventsService);
18
+ ngOnInit(): void;
19
+ stylesLayout(item: any): LayOutModel;
20
+ get getJustifyContent(): string;
21
+ canMergeNavbar(item: any): any;
22
+ isBorderlessImage(item: any): any;
23
+ getPositionLayout(item: any): PositionLayoutModal;
24
+ opacityValue(value: OverlayValue): "0" | "0.2" | "0.3" | "0.5" | "0.7";
25
+ editSection(): void;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<CarouselBannerComponent, never>;
27
+ 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; }; }, {}, never, never, true, never>;
28
+ }
@@ -0,0 +1,42 @@
1
+ import { ActionModel, BannerStylesModel, Image, InputTextModel, ListItemModal } from './../../styles/style.model';
2
+ export interface BannerSectionModel {
3
+ id: string;
4
+ sectionType: string;
5
+ sectionName: string;
6
+ listBanners: [singleBannerModel];
7
+ styles: stylesModel;
8
+ }
9
+ export interface ImageModel extends Image {
10
+ showImage: boolean;
11
+ }
12
+ export interface stylesModel {
13
+ bannerAnimation: {
14
+ label: string;
15
+ value: string;
16
+ types: [];
17
+ };
18
+ }
19
+ export interface textModel {
20
+ value: string;
21
+ }
22
+ export interface BannerContentModel {
23
+ inputText: InputTextModel[];
24
+ image: ImageModel;
25
+ listItem: ListItemModal<BannerListItem>;
26
+ }
27
+ export interface BannerListItem {
28
+ inputText: InputTextModel[];
29
+ }
30
+ export interface singleBannerModel {
31
+ sectionName: string;
32
+ sectionType: string;
33
+ id: string;
34
+ content: BannerContentModel;
35
+ styles: BannerStylesModel;
36
+ action: ActionModel;
37
+ }
38
+ export interface actionsModel {
39
+ label: string;
40
+ value: string;
41
+ types: ["Horizontal", "Animated"];
42
+ }
@@ -53,7 +53,6 @@ export declare class NavbarSectionComponent implements OnInit {
53
53
  get getCartItemsCount(): number;
54
54
  getKeys(object: any): string[];
55
55
  getValues(object: any): unknown[];
56
- get profileImageUrl(): string | false;
57
56
  static ɵfac: i0.ɵɵFactoryDeclaration<NavbarSectionComponent, never>;
58
57
  static ɵcmp: i0.ɵɵComponentDeclaration<NavbarSectionComponent, "simpo-navbar-section", never, { "data": { "alias": "data"; "required": false; }; "nextComponent": { "alias": "nextComponent"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; }, {}, never, never, true, never>;
59
58
  }
@@ -16,7 +16,7 @@ export interface HeaderContentModel {
16
16
  logo: FooterLogoModel;
17
17
  socialLinks: FooterSocialLinkModel;
18
18
  navbarButtons: NavbarButton[];
19
- ecomlinks: {
19
+ ecomLinks: {
20
20
  [key: string]: string[];
21
21
  };
22
22
  }
@@ -2,25 +2,22 @@ import { OrderedItems } from '../ecommerce/styles/OrderedItems.modal';
2
2
  import { Product } from '../ecommerce/styles/product.modal';
3
3
  import { RestService } from './rest.service';
4
4
  import { StorageServiceService } from './storage.service';
5
- import { Cart } from '../ecommerce/styles/cart.modal';
6
5
  import * as i0 from "@angular/core";
7
6
  export declare class CartService {
8
7
  private readonly storageService;
9
8
  private readonly restService;
10
9
  constructor(storageService: StorageServiceService, restService: RestService);
11
- addItemFromCartPage(product: OrderedItems, userCart: any): import("rxjs").Observable<Object>;
12
- addItemToCart(product: Product | OrderedItems): void | IDBRequest<IDBValidKey>;
10
+ addItemFromCartPage(product: OrderedItems): import("rxjs").Observable<Object>;
11
+ addItemToCart(product: Product | OrderedItems, isFromCart?: boolean): void;
13
12
  addItemToFavourite(product: Product): void;
14
- addOrderedItemToFavourite(orderedItem: OrderedItems): void;
15
13
  removeItemFromFavourite(product: Product): void;
16
14
  removeItemFromCart(product: Product | OrderedItems): void;
17
- getItemIdxJSON(id: string, type: 'FAVOURITE' | 'CART'): Promise<IDBRequest<any>>;
18
15
  storeItemToDB(product: Product, type: 'CART' | 'WISHLIST'): void;
16
+ getItemIdxJSON(itemId: string, type: 'FAVOURITE' | 'CART'): number;
19
17
  getItemByIdx(itemId: string, type: 'FAVOURITE' | 'CART'): OrderedItems | null;
20
18
  private objectMapper;
21
- storeCartDataToServer(cart: Cart): void;
22
- clearCartItems(): void;
23
- storeDataToServer(): void;
19
+ storeDataToServer(): import("rxjs").Observable<[Object, Object]>;
20
+ storeDBToJSON(): void;
24
21
  static ɵfac: i0.ɵɵFactoryDeclaration<CartService, never>;
25
22
  static ɵprov: i0.ɵɵInjectableDeclaration<CartService>;
26
23
  }
@@ -1,8 +1,7 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
1
+ import { EventEmitter } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
- export declare class EventsService implements OnInit {
3
+ export declare class EventsService {
4
4
  constructor();
5
- ngOnInit(): void;
6
5
  editSection: EventEmitter<unknown>;
7
6
  duplicate: EventEmitter<unknown>;
8
7
  delete: EventEmitter<unknown>;
@@ -34,6 +33,7 @@ export declare class EventsService implements OnInit {
34
33
  openBlogListEvent: EventEmitter<unknown>;
35
34
  toggleEditorEvent: EventEmitter<boolean>;
36
35
  closeEditorEvent: EventEmitter<false>;
36
+ stopCarouselEvent: EventEmitter<any>;
37
37
  redirectToPage: EventEmitter<unknown>;
38
38
  addToCart: EventEmitter<unknown>;
39
39
  placeOrder: EventEmitter<unknown>;
@@ -41,7 +41,6 @@ export declare class EventsService implements OnInit {
41
41
  environmentType: EventEmitter<string>;
42
42
  showLoadingScreen: EventEmitter<boolean>;
43
43
  cashFreeEvent: EventEmitter<unknown>;
44
- addressAddedIdx: EventEmitter<number>;
45
44
  static ɵfac: i0.ɵɵFactoryDeclaration<EventsService, never>;
46
45
  static ɵprov: i0.ɵɵInjectableDeclaration<EventsService>;
47
46
  }
@@ -16,7 +16,6 @@ export declare class RestService implements OnDestroy {
16
16
  getAllCollections(): Observable<any>;
17
17
  getFilteredProduct(collectionIds: string[], categoryIds: string[], searchText: string, minPrice: number, maxPrice: number, sortBy: string, pageNo: number, size: number): Observable<Object>;
18
18
  getProductByCategoryId(categoryId: string): Observable<Object>;
19
- getProductByCollectionId(collectionId: string): Observable<Object>;
20
19
  generateOTP(mobile: string, countryCode: string): Observable<Object>;
21
20
  verifyOTP(mobile: string, otp: string): Observable<Object>;
22
21
  resendOTP(mobile: string, countryCode: string): Observable<Object>;
@@ -26,9 +25,7 @@ export declare class RestService implements OnDestroy {
26
25
  getUserInfo(userId: string): Observable<Object>;
27
26
  addUserAddress(user: any): Observable<Object>;
28
27
  updateProfile(payload: any): Observable<Object>;
29
- getUserOrders(payload: any): Observable<Object>;
30
28
  toggleItemCartToFav(): void;
31
- moveWishlistToCart(): Observable<Object>;
32
29
  createPaymentToken(payload: any): Observable<Object>;
33
30
  refundPayment(orderId: string, payload: any): Observable<Object>;
34
31
  checkPaymentStatus(payload: any): Observable<Object>;
@@ -9,8 +9,6 @@ export declare class StorageServiceService {
9
9
  private readonly cookieService;
10
10
  private readonly restService;
11
11
  constructor(eventService: EventsService, cookieService: CookieService, restService: RestService);
12
- private totalCartItems;
13
- get getTotalCartItems(): number;
14
12
  databaseName: string;
15
13
  databaseVersion: number;
16
14
  cartCollectionName: string;
@@ -22,22 +20,57 @@ export declare class StorageServiceService {
22
20
  userCollectionRef: IDBObjectStore | null;
23
21
  createDataBase(): Promise<void>;
24
22
  storeDataToJSON(): Promise<void>;
25
- calculateBillingDetails(): void;
23
+ calculateBillingDetails(): {
24
+ orderedItems: never[];
25
+ cartType: string;
26
+ billdetails: {
27
+ totalNetValue: number;
28
+ totalGrossValue: number;
29
+ totalTax: number;
30
+ totalOfferedValue: number;
31
+ deliveryCharges: number;
32
+ couponId: string;
33
+ discountAmount: number;
34
+ afterDiscountAmount: number;
35
+ taxBreakup: {
36
+ cgstValue: number;
37
+ sgstValue: number;
38
+ igstValue: number;
39
+ };
40
+ };
41
+ userDetails: {
42
+ userId: string;
43
+ userName: string;
44
+ mobile: string;
45
+ email: string;
46
+ pinCode: string;
47
+ };
48
+ locationDetails: {
49
+ countryId: string;
50
+ cityId: string;
51
+ stateId: string;
52
+ localityId: string;
53
+ countryName: string;
54
+ cityName: string;
55
+ stateName: string;
56
+ localityName: string;
57
+ pinCode: string;
58
+ };
59
+ platform: string;
60
+ totalAmount: number;
61
+ cartId: string;
62
+ };
26
63
  updateAllData(): void;
27
- getUserCart(): Promise<IDBRequest<OrderedItems[]>>;
64
+ getUserCart(): Promise<IDBRequest<any[]>>;
28
65
  addProductToCart(product: OrderedItems): IDBRequest<IDBValidKey>;
29
- addAllProductToWishlist(products: OrderedItems[]): IDBTransaction;
30
- addAllProductsToCart(products: OrderedItems[]): IDBTransaction;
31
66
  removeProductFromCart(productId: string): IDBRequest<undefined>;
32
67
  getProductFromCart(productId: string): Promise<IDBRequest<any>>;
33
- getUserWhishlist(): Promise<IDBRequest<OrderedItems[]>>;
68
+ getUserWhishlist(): Promise<IDBRequest<any[]>>;
34
69
  addProductToWishlist(product: OrderedItems): IDBRequest<IDBValidKey>;
35
70
  removeProductFromWishlist(productId: string): IDBRequest<undefined>;
36
71
  getProductFromWishlist(productId: string): Promise<IDBRequest<any>>;
37
- clearUserCart(): IDBRequest<undefined>;
38
- clearUserWishlist(): IDBRequest<undefined>;
39
- setUser(user: User): User;
40
- getUser(): User | null;
72
+ addUser(user: User): User;
73
+ getUser(): any;
41
74
  storePaymentFor(paymentFor: string): void;
42
75
  static ɵfac: i0.ɵɵFactoryDeclaration<StorageServiceService, never>;
43
76
  static ɵprov: i0.ɵɵInjectableDeclaration<StorageServiceService>;
@@ -27,12 +27,6 @@ export declare enum BANNERALIGNMENT {
27
27
  top = "flex-lg-column",
28
28
  bottom = "flex-lg-column-reverse"
29
29
  }
30
- export declare enum SPACINGALIGN {
31
- large = "8rem",
32
- medium = "6rem",
33
- small = "2rem",
34
- none = "0rem"
35
- }
36
30
  export declare enum BANNERHALIGN {
37
31
  left = "justify-content-start text-start",
38
32
  center = "justify-content-center text-center",
@@ -1,5 +1,5 @@
1
1
  import { AlignContent, Corners, ImageFit, ImageRatio, OverlayValue, RedirectionLinkType, SPACING, TEXT_SIZE, TextPosition } from '.';
2
- import { ALIGN, ANIMATION_DIRECTION, ANIMATION_SPEED, BUTTON_SHAPE, BUTTON_TYPE, CARD_SIZE, FIT, LAYOUTPOSITION, LINK_TYPE, SPACING_TYPE, CONTENTPOSITION, BORDER_DIRECTION } from './types';
2
+ import { ALIGN, ANIMATION_DIRECTION, ANIMATION_SPEED, BUTTON_SHAPE, BUTTON_TYPE, CARD_SIZE, FIT, LAYOUTPOSITION, LINK_TYPE, SPACING_TYPE, CONTENTPOSITION } from './types';
3
3
  export interface SpacingModel {
4
4
  top: SPACING_TYPE;
5
5
  bottom: SPACING_TYPE;
@@ -13,8 +13,6 @@ export interface BorderModel {
13
13
  color: string;
14
14
  type: string;
15
15
  thickness: string;
16
- direction?: BORDER_DIRECTION[];
17
- radius?: number;
18
16
  }
19
17
  export interface DeviderModel {
20
18
  display: boolean;
@@ -24,7 +22,6 @@ export interface LayOutModel {
24
22
  fit: FIT;
25
23
  headingSpacing?: SPACING;
26
24
  spacing: SpacingModel;
27
- spacingHorizontal?: SPACING_TYPE;
28
25
  }
29
26
  export interface BannerLayOutModel {
30
27
  layoutAlignment: PositionLayoutModal;
@@ -5,7 +5,6 @@ export type CONTENTPOSITION = 'image center' | 'image top' | 'image bottom';
5
5
  export type FIT = 'content' | 'screen';
6
6
  export type CARD_SIZE = 'Small' | 'Medium' | 'Large';
7
7
  export type ANIMATION_DIRECTION = 'left' | 'top' | 'bottom' | 'right' | 'fadeIn' | 'zoom' | 'none';
8
- export type BORDER_DIRECTION = "ALL" | "LEFT" | "RIGHT" | "TOP" | "BOTTOM";
9
8
  export type ANIMATION_SPEED = 'slow' | 'medium' | 'fast';
10
9
  export type LINK_TYPE = 'Button' | 'List Item';
11
10
  export type BUTTON_TYPE = 'Solid' | 'Outline';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "1.4.144",
3
+ "version": "1.5.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
package/public-api.d.ts CHANGED
@@ -28,6 +28,7 @@ export * from './lib/sections/features-section/features-section.component';
28
28
  export * from './lib/sections/testimonial-fullwidth/testimonial-fullwidth.component';
29
29
  export * from './lib/sections/logo-showcase/logo-showcase.component';
30
30
  export * from './lib/sections/banner-carousel/banner-carousel.component';
31
+ export * from './lib/sections/carousel-banner/carousel-banner.component';
31
32
  export * from './lib/ecommerce/sections/featured-products/featured-products.component';
32
33
  export * from './lib/ecommerce/sections/featured-category/featured-category.component';
33
34
  export * from './lib/ecommerce/sections/product-desc/product-desc.component';
@@ -37,9 +38,7 @@ export * from './lib/ecommerce/sections/checkout/checkout.component';
37
38
  export * from './lib/ecommerce/sections/whislist/whislist.component';
38
39
  export * from './lib/ecommerce/sections/user-profile/user-profile.component';
39
40
  export * from './lib/ecommerce/sections/authenticate-user/authenticate-user.component';
40
- export * from './lib/ecommerce/sections/verify-payment/verify-payment.component';
41
41
  export * from './lib/services/events.service';
42
- export * from './lib/services/endUser.service';
43
42
  export * from './lib/directive/animation-directive';
44
43
  export * from './lib/directive/background-directive';
45
44
  export * from './lib/directive/banner-content-fit-directive';
@@ -60,6 +59,7 @@ export * from './lib/directive/color.directive';
60
59
  export * from './lib/directive/image-position.directive';
61
60
  export * from './lib/directive/container-alignment.directive';
62
61
  export * from './lib/directive/sticky-directive';
62
+ export * from './lib/directive/removeCarousel-directive';
63
63
  export * from './lib/styles/index';
64
64
  export * from './lib/styles/style.model';
65
65
  export * from './lib/styles/types';
@@ -1,5 +0,0 @@
1
- export var BUSINESS_CONSTANTS;
2
- (function (BUSINESS_CONSTANTS) {
3
- BUSINESS_CONSTANTS["CURRENCY"] = "&#8377;";
4
- })(BUSINESS_CONSTANTS || (BUSINESS_CONSTANTS = {}));
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnVzaW5lc3MuY29uc3RhbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9zaW1wby11aS9zcmMvbGliL2NvbnN0YW50cy9idXNpbmVzcy5jb25zdGFudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQU4sSUFBWSxrQkFFWDtBQUZELFdBQVksa0JBQWtCO0lBQzFCLDBDQUFvQixDQUFBO0FBQ3hCLENBQUMsRUFGVyxrQkFBa0IsS0FBbEIsa0JBQWtCLFFBRTdCIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGVudW0gQlVTSU5FU1NfQ09OU1RBTlRTIHtcclxuICAgIENVUlJFTkNZID0gXCImIzgzNzc7XCJcclxufSJdfQ==
@@ -1,48 +0,0 @@
1
- import { Directive, Input } from '@angular/core';
2
- import { SPACINGALIGN } from '../styles';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "../services/events.service";
5
- export class SpacingHorizontalDirective {
6
- constructor(el, eventService) {
7
- this.el = el;
8
- this.eventService = eventService;
9
- this.positionLayoutChangeCheck();
10
- }
11
- ngOnChanges() {
12
- this.changeHorizontalSpacing();
13
- }
14
- ngOnDestroy() {
15
- if (this.positionLayoutSubscription) {
16
- this.positionLayoutSubscription.unsubscribe();
17
- }
18
- }
19
- changeHorizontalSpacing() {
20
- this.el.nativeElement.style.setProperty("padding-left", window.innerWidth <= 475 ? '1rem' : SPACINGALIGN[this.layout?.spacingHorizontal]);
21
- this.el.nativeElement.style.setProperty("padding-right", window.innerWidth <= 475 ? '1rem' : SPACINGALIGN[this.layout?.spacingHorizontal]);
22
- if (window.innerWidth <= 475) {
23
- this.el.nativeElement.style.setProperty("padding-top", '0rem');
24
- this.el.nativeElement.style.setProperty("padding-bottom", '0rem');
25
- }
26
- }
27
- positionLayoutChangeCheck() {
28
- this.positionLayoutSubscription = this.eventService.postionLayoutChangeChecks.subscribe((res) => {
29
- if (this.el.nativeElement.id === res.id) {
30
- this.layout = res.data;
31
- this.changeHorizontalSpacing();
32
- }
33
- });
34
- }
35
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: SpacingHorizontalDirective, deps: [{ token: i0.ElementRef }, { token: i1.EventsService }], target: i0.ɵɵFactoryTarget.Directive }); }
36
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.4", type: SpacingHorizontalDirective, isStandalone: true, selector: "[spacingHorizontal]", inputs: { layout: ["spacingHorizontal", "layout"] }, usesOnChanges: true, ngImport: i0 }); }
37
- }
38
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: SpacingHorizontalDirective, decorators: [{
39
- type: Directive,
40
- args: [{
41
- selector: '[spacingHorizontal]',
42
- standalone: true
43
- }]
44
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.EventsService }], propDecorators: { layout: [{
45
- type: Input,
46
- args: ['spacingHorizontal']
47
- }] } });
48
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3BhY2luZy1ob3Jpem9udGFsLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3NpbXBvLXVpL3NyYy9saWIvZGlyZWN0aXZlL3NwYWNpbmctaG9yaXpvbnRhbC5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBYyxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFN0QsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLFdBQVcsQ0FBQzs7O0FBUXpDLE1BQU0sT0FBTywwQkFBMEI7SUFHckMsWUFBb0IsRUFBYyxFQUN4QixZQUEyQjtRQURqQixPQUFFLEdBQUYsRUFBRSxDQUFZO1FBQ3hCLGlCQUFZLEdBQVosWUFBWSxDQUFlO1FBQ2pDLElBQUksQ0FBQyx5QkFBeUIsRUFBRSxDQUFDO0lBQ25DLENBQUM7SUFFSCxXQUFXO1FBQ1QsSUFBSSxDQUFDLHVCQUF1QixFQUFFLENBQUM7SUFDakMsQ0FBQztJQUVELFdBQVc7UUFDVCxJQUFHLElBQUksQ0FBQywwQkFBMEIsRUFBQyxDQUFDO1lBQ2xDLElBQUksQ0FBQywwQkFBM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5zZXRQcm9wZXJ0eShcInBhZGRpbmctdG9wXCIsICcwcmVtJyk7XHJcbiAgICAgIHRoaXMuZWwubmF0aXZlRWxlbWVudC5zdHlsZS5zZXRQcm9wZXJ0eShcInBhZGRpbmctYm90dG9tXCIsICcwcmVtJyk7XHJcbiAgICB9XHJcbiAgfVxyXG5cclxuICBwb3NpdGlvbkxheW91dFN1YnNjcmlwdGlvbj86IFN1YnNjcmlwdGlvbjtcclxuICBwb3NpdGlvbkxheW91dENoYW5nZUNoZWNrKCl7XHJcbiAgICB0aGlzLnBvc2l0aW9uTGF5b3V0U3Vic2NyaXB0aW9uID0gdGhpcy5ldmVudFNlcnZpY2UucG9zdGlvbkxheW91dENoYW5nZUNoZWNrcy5zdWJzY3JpYmUoKHJlczphbnkpID0+IHtcclxuICAgICAgaWYodGhpcy5lbC5uYXRpdmVFbGVtZW50LmlkID09PSByZXMuaWQpe1xyXG4gICAgICAgIHRoaXMubGF5b3V0ID0gcmVzLmRhdGE7XHJcbiAgICAgICAgdGhpcy5jaGFuZ2VIb3Jpem9udGFsU3BhY2luZygpO1xyXG4gICAgICB9XHJcbiAgICB9KVxyXG4gIH1cclxufVxyXG4iXX0=
@@ -1,97 +0,0 @@
1
- import { Component, Input } from '@angular/core';
2
- import Swal from 'sweetalert2';
3
- import { MessageService } from 'primeng/api';
4
- import { ToastModule } from 'primeng/toast';
5
- import * as i0 from "@angular/core";
6
- import * as i1 from "../../../services/rest.service";
7
- import * as i2 from "@angular/router";
8
- import * as i3 from "../../../services/storage.service";
9
- import * as i4 from "primeng/api";
10
- import * as i5 from "primeng/toast";
11
- export class VerifyComponent {
12
- constructor(restService, router, storageService, messageService) {
13
- this.restService = restService;
14
- this.router = router;
15
- this.storageService = storageService;
16
- this.messageService = messageService;
17
- this.userDetails = null;
18
- this.loadingText = "Please wait...";
19
- this.API_COUNT = 0;
20
- this.MAX_API_COUNT = 20;
21
- }
22
- ngOnInit() {
23
- console.log(this.data);
24
- this.content = this.data?.content;
25
- this.styles = this.data?.styles;
26
- this.userDetails = this.storageService.getUser();
27
- if (!this.userDetails) {
28
- this.messageService.add({ severity: 'error', summary: 'Error', detail: 'Please login to access profile' });
29
- this.router.navigate(['/']);
30
- }
31
- setTimeout(() => {
32
- this.loadingText = this.content?.inputText?.[0]?.value ?? 'Thanks for choosing us';
33
- setTimeout(() => {
34
- this.loadingText = this.content?.inputText?.[1]?.value ?? 'We are processing your payments';
35
- setTimeout(() => {
36
- this.loadingText = this.content?.inputText?.[2]?.value ?? 'Hold On...';
37
- this.checkPaymentStatus();
38
- }, 3000);
39
- }, 3000);
40
- }, 3000);
41
- }
42
- get getImageUrl() {
43
- return this.content?.image?.url;
44
- }
45
- checkPaymentStatus() {
46
- const payload = {
47
- "orderId": localStorage.getItem("orderId")
48
- };
49
- this.API_COUNT++;
50
- this.restService.checkPaymentStatus(payload).subscribe((response) => {
51
- localStorage.removeItem("orderId");
52
- localStorage.removeItem("cartId");
53
- localStorage.removeItem("paymentFor");
54
- this.storageService.clearUserCart();
55
- Swal.fire({
56
- icon: "success",
57
- title: "Hurray",
58
- text: "Order placed successfully",
59
- confirmButtonText: "See Details"
60
- }).then((response) => {
61
- if (response.isConfirmed) {
62
- this.router.navigate(['/profile']);
63
- }
64
- });
65
- }, (error) => {
66
- if (this.API_COUNT >= this.MAX_API_COUNT) {
67
- Swal.fire({
68
- icon: "error",
69
- title: "Sorry",
70
- text: "We encountered some issue while placing your order",
71
- confirmButtonText: "Go To Home"
72
- }).then((response) => {
73
- if (response.isConfirmed) {
74
- this.router.navigate(['/']);
75
- }
76
- });
77
- console.log("Failed to get Status");
78
- }
79
- else {
80
- this.checkPaymentStatus();
81
- }
82
- });
83
- }
84
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: VerifyComponent, deps: [{ token: i1.RestService }, { token: i2.Router }, { token: i3.StorageServiceService }, { token: i4.MessageService }], target: i0.ɵɵFactoryTarget.Component }); }
85
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.4", type: VerifyComponent, isStandalone: true, selector: "simpo-verify-payment", inputs: { data: "data", responseData: "responseData" }, providers: [MessageService], ngImport: i0, template: "<p-toast position=\"bottom-right\" [baseZIndex]=\"10000000000\" [autoZIndex]=\"true\"></p-toast>\r\n<section class=\"d-flex flex-column align-items-center justify-content-center\" style=\"height: 100vh;\">\r\n <img [src]=\"getImageUrl\" style=\"height: 200px; width: 200px;\" [alt]=\"content?.image?.altText\">\r\n <span class=\"font-bold\">{{loadingText}}</span>\r\n</section>", styles: ["span{color:#000;font-weight:600;font-size:larger}\n"], dependencies: [{ kind: "ngmodule", type: ToastModule }, { kind: "component", type: i5.Toast, selector: "p-toast", inputs: ["key", "autoZIndex", "baseZIndex", "life", "style", "styleClass", "position", "preventOpenDuplicates", "preventDuplicates", "showTransformOptions", "hideTransformOptions", "showTransitionOptions", "hideTransitionOptions", "breakpoints"], outputs: ["onClose"] }] }); }
86
- }
87
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: VerifyComponent, decorators: [{
88
- type: Component,
89
- args: [{ selector: 'simpo-verify-payment', standalone: true, imports: [
90
- ToastModule
91
- ], providers: [MessageService], template: "<p-toast position=\"bottom-right\" [baseZIndex]=\"10000000000\" [autoZIndex]=\"true\"></p-toast>\r\n<section class=\"d-flex flex-column align-items-center justify-content-center\" style=\"height: 100vh;\">\r\n <img [src]=\"getImageUrl\" style=\"height: 200px; width: 200px;\" [alt]=\"content?.image?.altText\">\r\n <span class=\"font-bold\">{{loadingText}}</span>\r\n</section>", styles: ["span{color:#000;font-weight:600;font-size:larger}\n"] }]
92
- }], ctorParameters: () => [{ type: i1.RestService }, { type: i2.Router }, { type: i3.StorageServiceService }, { type: i4.MessageService }], propDecorators: { data: [{
93
- type: Input
94
- }], responseData: [{
95
- type: Input
96
- }] } });
97
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJz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9kYWwge1xyXG4gIGlkOiBzdHJpbmc7XHJcbiAgc2VjdGlvblR5cGU6IHN0cmluZztcclxuICBzZWN0aW9uTmFtZTogc3RyaW5nO1xyXG4gIHN0eWxlczogVmVyaWZ5UGF5bWVudFN0eWxlc01vZGVsO1xyXG4gIGNvbnRlbnQ6IFZlcmlmeVBheW1lbnRDb250ZW50TW9kZWw7XHJcbiAgYWN0aW9uOiBBY3Rpb25Nb2RlbFxyXG59XHJcblxyXG5leHBvcnQgaW50ZXJmYWNlIFZlcmlmeVBheW1lbnRTdHlsZXNNb2RlbCB7XHJcbiAgbGF5b3V0OiBMYXlPdXRNb2RlbDtcclxuICBiYWNrZ3JvdW5kOiBCYWNrZ3JvdW5kTW9kZWw7XHJcbiAgYW5pbWF0aW9uOiBBbmltYXRpb25Nb2RlbDtcclxufVxyXG5leHBvcnQgaW50ZXJmYWNlIFZlcmlmeVBheW1lbnRDb250ZW50TW9kZWwge1xyXG4gICAgaW5wdXRUZXh0OiBJbnB1dFRleHRNb2RlbFtdXHJcbiAgICBpbWFnZTogSW1hZ2VNb2RlbDtcclxufVxyXG5leHBvcnQgaW50ZXJmYWNlIEltYWdlTW9kZWwgZXh0ZW5kcyBJbWFnZXtcclxuICAgIHNob3dJbWFnZTpib29sZWFuXHJcbn0iXX0=
@@ -1,35 +0,0 @@
1
- import { Pipe } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class FormateAmount {
4
- transform(value, system = "IND") {
5
- if (system == "IND") {
6
- if (Number(value) >= 10000000 /* AMOUNT.CRORE */) {
7
- return (Number(value) / 10000000 /* AMOUNT.CRORE */) + 'cr';
8
- }
9
- else if (Number(value) >= 100000 /* AMOUNT.LAKHS */) {
10
- return (Number(value) / 100000 /* AMOUNT.LAKHS */) + 'lk';
11
- }
12
- else {
13
- return value.toString();
14
- }
15
- }
16
- else {
17
- if (Number(value) >= 1000000 /* AMOUNT.MILLION */) {
18
- return (Number(value) / 1000000 /* AMOUNT.MILLION */) + 'mn';
19
- }
20
- else {
21
- return value.toString();
22
- }
23
- }
24
- }
25
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: FormateAmount, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
26
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.1.4", ngImport: i0, type: FormateAmount, isStandalone: true, name: "formateAmount" }); }
27
- }
28
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: FormateAmount, decorators: [{
29
- type: Pipe,
30
- args: [{
31
- standalone: true,
32
- name: 'formateAmount',
33
- }]
34
- }] });
35
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW1vdW50LnBpcGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9zaW1wby11aS9zcmMvbGliL3BpcGVzL2Ftb3VudC5waXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxJQUFJLEVBQWdCLE1BQU0sZUFBZSxDQUFDOztBQWFsRCxNQUFNLE9BQU8sYUFBYTtJQUV0QixTQUFTLENBQUMsS0FBc0IsRUFBRSxTQUF3QixLQUFLO1FBRTNELElBQUksTUFBTSxJQUFJLEtBQUssRUFBRSxDQUFDO1lBQ2xCLElBQUksTUFBTSxDQUFDLEtBQUssQ0FBQywrQkFBZ0IsRUFBRSxDQUFDO2dCQUNoQyxPQUFPLENBQUMsTUFBTSxDQUFDLEtBQUssQ0FBQyw4QkFBZSxDQUFDLEdBQUcsSUFBSSxDQUFDO1lBQ2pELENBQUM7aUJBQU0sSUFBSSxNQUFNLENBQUMsS0FBSyxDQUFDLDZCQUFnQixFQUFFLENBQUM7Z0JBQ3ZDLE9BQU8sQ0FBQyxNQUFNLENBQUMsS0FBSyxDQUFDLDRCQUF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