simpo-component-library 1.4.115 → 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 (24) hide show
  1. package/esm2022/lib/ecommerce/sections/address/address.component.mjs +13 -4
  2. package/esm2022/lib/ecommerce/sections/authenticate-user/authenticate-user.component.mjs +35 -16
  3. package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +7 -4
  4. package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +10 -6
  5. package/esm2022/lib/ecommerce/sections/order-details/order-details.component.mjs +24 -6
  6. package/esm2022/lib/ecommerce/sections/user-profile/user-profile.component.mjs +22 -12
  7. package/esm2022/lib/ecommerce/sections/verify-payment/verify-payment.component.mjs +19 -6
  8. package/esm2022/lib/sections/navbar-section/navbar-section.component.mjs +2 -2
  9. package/esm2022/lib/services/storage.service.mjs +1 -2
  10. package/fesm2022/simpo-component-library.mjs +154 -90
  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 +2 -0
  16. package/lib/ecommerce/sections/authenticate-user/authenticate-user.component.d.ts +6 -2
  17. package/lib/ecommerce/sections/featured-products/featured-products.component.d.ts +3 -2
  18. package/lib/ecommerce/sections/order-details/order-details.component.d.ts +1 -0
  19. package/lib/ecommerce/sections/user-profile/user-profile.component.d.ts +3 -1
  20. package/lib/ecommerce/sections/verify-payment/verify-payment.component.d.ts +4 -1
  21. package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
  22. package/package.json +1 -1
  23. package/simpo-component-library-1.4.116.tgz +0 -0
  24. package/simpo-component-library-1.4.115.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
  }
@@ -14,6 +14,7 @@ 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;
18
19
  selectedAddress: EventEmitter<number>;
19
20
  constructor(ngZone: NgZone, restService: RestService, matDialog: MatDialog, router: Router, storageService: StorageServiceService, matData: any, matDialogRef: MatDialogRef<AddressComponent>);
@@ -22,6 +23,7 @@ export declare class AddressComponent implements OnInit, OnChanges {
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;
@@ -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 {};
@@ -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;
@@ -9,6 +9,7 @@ import { StorageServiceService } from '../../../services/storage.service';
9
9
  import { User } from '../../styles/user.modal';
10
10
  import { MatDialog } from '@angular/material/dialog';
11
11
  import { CookieService } from 'ngx-cookie-service';
12
+ import { MessageService } from 'primeng/api';
12
13
  import * as i0 from "@angular/core";
13
14
  export declare class UserProfileComponent extends BaseSection implements OnInit {
14
15
  private readonly router;
@@ -17,7 +18,8 @@ export declare class UserProfileComponent extends BaseSection implements OnInit
17
18
  private readonly storageService;
18
19
  private readonly matDialog;
19
20
  private readonly cookieService;
20
- constructor(router: Router, _eventService: EventsService, restService: RestService, storageService: StorageServiceService, matDialog: MatDialog, cookieService: CookieService);
21
+ private readonly messageService;
22
+ constructor(router: Router, _eventService: EventsService, restService: RestService, storageService: StorageServiceService, matDialog: MatDialog, cookieService: CookieService, messageService: MessageService);
21
23
  data?: UserProfileModal;
22
24
  index?: number;
23
25
  edit?: boolean;
@@ -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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "1.4.115",
3
+ "version": "1.4.116",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file