simpo-component-library 1.4.113 → 1.4.116

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 (32) hide show
  1. package/esm2022/lib/ecommerce/sections/address/address.component.mjs +23 -8
  2. package/esm2022/lib/ecommerce/sections/authenticate-user/authenticate-user.component.mjs +35 -16
  3. package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +19 -18
  4. package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +14 -8
  5. package/esm2022/lib/ecommerce/sections/order-details/order-details.component.mjs +24 -6
  6. package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +12 -8
  7. package/esm2022/lib/ecommerce/sections/product-list/product-list.modal.mjs +1 -1
  8. package/esm2022/lib/ecommerce/sections/user-profile/user-profile.component.mjs +35 -21
  9. package/esm2022/lib/ecommerce/sections/verify-payment/verify-payment.component.mjs +19 -6
  10. package/esm2022/lib/ecommerce/sections/whislist/whislist.component.mjs +2 -1
  11. package/esm2022/lib/sections/navbar-section/navbar-section.component.mjs +2 -2
  12. package/esm2022/lib/services/cart.service.mjs +1 -3
  13. package/esm2022/lib/services/storage.service.mjs +8 -1
  14. package/fesm2022/simpo-component-library.mjs +205 -122
  15. package/fesm2022/simpo-component-library.mjs.map +1 -1
  16. package/lib/directive/background-directive.d.ts +1 -1
  17. package/lib/directive/button-directive.directive.d.ts +1 -1
  18. package/lib/directive/color.directive.d.ts +1 -1
  19. package/lib/ecommerce/sections/address/address.component.d.ts +6 -3
  20. package/lib/ecommerce/sections/authenticate-user/authenticate-user.component.d.ts +6 -2
  21. package/lib/ecommerce/sections/cart/cart.component.d.ts +2 -1
  22. package/lib/ecommerce/sections/featured-products/featured-products.component.d.ts +3 -2
  23. package/lib/ecommerce/sections/order-details/order-details.component.d.ts +1 -0
  24. package/lib/ecommerce/sections/product-list/product-list.component.d.ts +2 -0
  25. package/lib/ecommerce/sections/product-list/product-list.modal.d.ts +2 -0
  26. package/lib/ecommerce/sections/user-profile/user-profile.component.d.ts +6 -1
  27. package/lib/ecommerce/sections/verify-payment/verify-payment.component.d.ts +4 -1
  28. package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
  29. package/lib/services/cart.service.d.ts +0 -1
  30. package/package.json +1 -1
  31. package/simpo-component-library-1.4.116.tgz +0 -0
  32. package/simpo-component-library-1.4.113.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
  }
@@ -1,4 +1,4 @@
1
- import { OnInit, NgZone, OnChanges, SimpleChanges } from '@angular/core';
1
+ import { OnInit, NgZone, OnChanges, SimpleChanges, EventEmitter } from '@angular/core';
2
2
  import { RestService } from '../../../services/rest.service';
3
3
  import { MatDialog, MatDialogRef } from '@angular/material/dialog';
4
4
  import { Router } from '@angular/router';
@@ -14,14 +14,16 @@ export declare class AddressComponent implements OnInit, OnChanges {
14
14
  matDialogRef: MatDialogRef<AddressComponent>;
15
15
  responseData: any;
16
16
  data: any;
17
+ addressList: any;
17
18
  selectedAddressIdx: number;
19
+ selectedAddress: EventEmitter<number>;
18
20
  constructor(ngZone: NgZone, restService: RestService, matDialog: MatDialog, router: Router, storageService: StorageServiceService, matData: any, matDialogRef: MatDialogRef<AddressComponent>);
19
- addressList: any[];
20
21
  address: any;
21
22
  isCart: boolean;
22
23
  private latitute;
23
24
  private longitute;
24
25
  addNewAddress: boolean;
26
+ isLoading: boolean;
25
27
  mapCenter: google.maps.LatLngLiteral;
26
28
  markerPosition: google.maps.LatLngLiteral;
27
29
  markerOptions: google.maps.MarkerOptions;
@@ -41,7 +43,8 @@ export declare class AddressComponent implements OnInit, OnChanges {
41
43
  getAddress(): void;
42
44
  onLocationSelected(location: any): void;
43
45
  onAutocompleteSelected(result: any): void;
46
+ addressSelected(index: number): void;
44
47
  updateAddress(): void;
45
48
  static ɵfac: i0.ɵɵFactoryDeclaration<AddressComponent, [null, null, null, null, null, { optional: true; }, { optional: true; }]>;
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
+ static ɵcmp: i0.ɵɵComponentDeclaration<AddressComponent, "simpo-address", never, { "responseData": { "alias": "responseData"; "required": false; }; "data": { "alias": "data"; "required": false; }; "isCart": { "alias": "isCart"; "required": false; }; }, { "selectedAddress": "selectedAddress"; }, never, never, true, never>;
47
50
  }
@@ -7,6 +7,7 @@ import { EventsService } from '../../../services/events.service';
7
7
  import { InputTextModel, StylesModel } from '../../../styles/style.model';
8
8
  import { ActionModel } from "../../../styles/style.model";
9
9
  import BaseSection from '../../../sections/BaseSection';
10
+ import { MessageService } from 'primeng/api';
10
11
  import * as i0 from "@angular/core";
11
12
  interface AuthenticateSectionModel {
12
13
  content: AuthenticateContentModel;
@@ -25,23 +26,26 @@ export declare class AuthenticateUserComponent extends BaseSection implements On
25
26
  private readonly storageService;
26
27
  private readonly dialogRef;
27
28
  private readonly _eventService;
29
+ private readonly messageService;
28
30
  data?: AuthenticateSectionModel;
29
31
  isLoading: boolean;
32
+ otpData: undefined[];
30
33
  otpString: string;
31
34
  screen: 'LOGIN' | 'OTP';
32
35
  mobile: string | null;
33
36
  countryCode: string | null;
34
- constructor(matData: any, restService: RestService, router: Router, matDialog: MatDialog, storageService: StorageServiceService, dialogRef: MatDialogRef<AuthenticateUserComponent>, _eventService: EventsService);
37
+ constructor(matData: any, restService: RestService, router: Router, matDialog: MatDialog, storageService: StorageServiceService, dialogRef: MatDialogRef<AuthenticateUserComponent>, _eventService: EventsService, messageService: MessageService);
35
38
  styles: any;
36
39
  ngOnInit(): void;
37
40
  move(event: any, idx: number): void;
38
41
  close(): void;
39
42
  goBack(): void;
43
+ private resetValue;
40
44
  generateOTP(): void;
41
45
  verifyOTP(): void;
42
46
  resendOTP(): void;
43
47
  get isMobile(): boolean;
44
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthenticateUserComponent, [{ optional: true; }, null, null, null, null, { optional: true; }, null]>;
48
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuthenticateUserComponent, [{ optional: true; }, null, null, null, null, { optional: true; }, null, null]>;
45
49
  static ɵcmp: i0.ɵɵComponentDeclaration<AuthenticateUserComponent, "simpo-authenticate-user", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
46
50
  }
47
51
  export {};
@@ -23,13 +23,13 @@ export declare class CartComponent extends BaseSection implements OnInit {
23
23
  edit?: boolean;
24
24
  delete?: boolean;
25
25
  isLoading: boolean;
26
- selectedAddress: any;
27
26
  styles?: CartSectionStylesModel;
28
27
  currentTab: 'BAG' | 'ADDRESS' | 'PAYMENT';
29
28
  constructor(_eventService: EventsService, cartService: CartService, router: Router, restService: RestService, matDialog: MatDialog, storageService: StorageServiceService, messageService: MessageService);
30
29
  private loadingItems;
31
30
  private userDetails;
32
31
  private USER_CART_ITEMS;
32
+ selectedAddressIdx: number;
33
33
  cartInfo: any;
34
34
  ngOnInit(): void;
35
35
  getIndexDBData(): void;
@@ -39,6 +39,7 @@ export declare class CartComponent extends BaseSection implements OnInit {
39
39
  addToCart(item: any, type: 'ADD' | 'SUBSTRACT'): void;
40
40
  proceedToPayment(): void;
41
41
  isItemLoading(itemId: string): boolean;
42
+ addressSelected(index: number): void;
42
43
  get getAddressList(): import("../../styles/user.modal").AddressDetails[];
43
44
  get isMobile(): boolean;
44
45
  get currency(): string;
@@ -1,4 +1,4 @@
1
- import { OnDestroy } from '@angular/core';
1
+ import { OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { FeaturedProductContentModal, FeaturedProductModal, FeaturedProductStylesModel } from './featured-products.modal';
3
3
  import { Product } from '../../styles/product.modal';
4
4
  import { EventsService } from '.././../../services/events.service';
@@ -9,7 +9,7 @@ import { Router } from '@angular/router';
9
9
  import { CartService } from '../../../services/cart.service';
10
10
  import { StorageServiceService } from '../../../services/storage.service';
11
11
  import * as i0 from "@angular/core";
12
- export declare class FeaturedProductsComponent extends BaseSection implements OnDestroy {
12
+ export declare class FeaturedProductsComponent extends BaseSection implements OnInit, OnDestroy, OnChanges {
13
13
  private platformId;
14
14
  private readonly _eventService;
15
15
  private readonly restService;
@@ -33,6 +33,7 @@ export declare class FeaturedProductsComponent extends BaseSection implements On
33
33
  private USER_WISHLIST;
34
34
  getScreenSize(): void;
35
35
  ngOnInit(): void;
36
+ ngOnChanges(changes: SimpleChanges): void;
36
37
  ngOnDestroy(): void;
37
38
  getProductWidth(): string;
38
39
  getSliceParameters(): number[];
@@ -15,6 +15,7 @@ export declare class OrderDetailsComponent implements OnInit {
15
15
  constructor(_eventService: EventsService);
16
16
  orderTimiline: any;
17
17
  ngOnInit(): void;
18
+ private getIcon;
18
19
  get getCardBGColor(): string;
19
20
  get isMobile(): boolean;
20
21
  getSupportingColor(bgColor: string): string;
@@ -39,6 +39,8 @@ export declare class ProductListComponent extends BaseSection {
39
39
  sortBy: string | null;
40
40
  private USER_CART;
41
41
  private USER_WISHLIST;
42
+ minProductPrice: number;
43
+ maxProductPrice: number;
42
44
  filteringArray: {
43
45
  name: string;
44
46
  value: string;
@@ -12,6 +12,8 @@ export interface ProductListStylesModal {
12
12
  background: BackgroundModel;
13
13
  elementInRow: number;
14
14
  mobileColumn: number;
15
+ maxPrice: number;
16
+ minPrice: number;
15
17
  animation: AnimationModel;
16
18
  }
17
19
  export interface ProductListContentModal {
@@ -8,6 +8,8 @@ import { RestService } from "../../../services/rest.service";
8
8
  import { StorageServiceService } from '../../../services/storage.service';
9
9
  import { User } from '../../styles/user.modal';
10
10
  import { MatDialog } from '@angular/material/dialog';
11
+ import { CookieService } from 'ngx-cookie-service';
12
+ import { MessageService } from 'primeng/api';
11
13
  import * as i0 from "@angular/core";
12
14
  export declare class UserProfileComponent extends BaseSection implements OnInit {
13
15
  private readonly router;
@@ -15,7 +17,9 @@ export declare class UserProfileComponent extends BaseSection implements OnInit
15
17
  private readonly restService;
16
18
  private readonly storageService;
17
19
  private readonly matDialog;
18
- constructor(router: Router, _eventService: EventsService, restService: RestService, storageService: StorageServiceService, matDialog: MatDialog);
20
+ private readonly cookieService;
21
+ private readonly messageService;
22
+ constructor(router: Router, _eventService: EventsService, restService: RestService, storageService: StorageServiceService, matDialog: MatDialog, cookieService: CookieService, messageService: MessageService);
19
23
  data?: UserProfileModal;
20
24
  index?: number;
21
25
  edit?: boolean;
@@ -53,6 +57,7 @@ export declare class UserProfileComponent extends BaseSection implements OnInit
53
57
  get getCardBGColor(): string;
54
58
  private getComplementColor;
55
59
  private convertHEX;
60
+ get currency(): string;
56
61
  static ɵfac: i0.ɵɵFactoryDeclaration<UserProfileComponent, never>;
57
62
  static ɵcmp: i0.ɵɵComponentDeclaration<UserProfileComponent, "simpo-user-profile", 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>;
58
63
  }
@@ -3,16 +3,19 @@ import { RestService } from '../../../services/rest.service';
3
3
  import { Router } from '@angular/router';
4
4
  import { StorageServiceService } from '../../../services/storage.service';
5
5
  import { VerifyPaymentContentModel, VerifyPaymentSectionModal, VerifyPaymentStylesModel } from './verify-payment.model';
6
+ import { MessageService } from 'primeng/api';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class VerifyComponent implements OnInit {
8
9
  private readonly restService;
9
10
  private readonly router;
10
11
  private readonly storageService;
12
+ private readonly messageService;
11
13
  data?: VerifyPaymentSectionModal;
12
14
  responseData: any;
13
15
  styles?: VerifyPaymentStylesModel;
14
16
  content?: VerifyPaymentContentModel;
15
- constructor(restService: RestService, router: Router, storageService: StorageServiceService);
17
+ private userDetails;
18
+ constructor(restService: RestService, router: Router, storageService: StorageServiceService, messageService: MessageService);
16
19
  loadingText: string;
17
20
  private API_COUNT;
18
21
  private MAX_API_COUNT;
@@ -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>;
@@ -8,7 +8,6 @@ export declare class CartService {
8
8
  private readonly storageService;
9
9
  private readonly restService;
10
10
  constructor(storageService: StorageServiceService, restService: RestService);
11
- ngOnInit(): void;
12
11
  addItemFromCartPage(product: OrderedItems, userCart: any): import("rxjs").Observable<Object>;
13
12
  addItemToCart(product: Product | OrderedItems): void | IDBRequest<IDBValidKey>;
14
13
  addItemToFavourite(product: Product): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "1.4.113",
3
+ "version": "1.4.116",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file