simpo-component-library 1.4.300 → 1.4.302

Sign up to get free protection for your applications and to get access to all the features.
Files changed (25) hide show
  1. package/esm2022/lib/components/hover-elements/hover-elements.component.mjs +3 -3
  2. package/esm2022/lib/ecommerce/sections/address/address.component.mjs +35 -20
  3. package/esm2022/lib/ecommerce/sections/authenticate-user/authenticate-user.component.mjs +3 -3
  4. package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +10 -3
  5. package/esm2022/lib/ecommerce/sections/featured-category/featured-category.component.mjs +6 -3
  6. package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +3 -3
  7. package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +3 -3
  8. package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +4 -4
  9. package/esm2022/lib/ecommerce/styles/user.modal.mjs +1 -1
  10. package/esm2022/lib/sections/navbar-section/navbar-section.component.mjs +7 -3
  11. package/fesm2022/simpo-component-library.mjs +91 -64
  12. package/fesm2022/simpo-component-library.mjs.map +1 -1
  13. package/lib/directive/background-directive.d.ts +1 -1
  14. package/lib/directive/button-directive.directive.d.ts +1 -1
  15. package/lib/directive/color.directive.d.ts +1 -1
  16. package/lib/ecommerce/sections/address/address.component.d.ts +7 -3
  17. package/lib/ecommerce/sections/cart/cart.component.d.ts +1 -0
  18. package/lib/ecommerce/sections/featured-category/featured-category.component.d.ts +1 -0
  19. package/lib/ecommerce/styles/user.modal.d.ts +2 -2
  20. package/lib/sections/navbar-section/navbar-section.component.d.ts +1 -0
  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.301.tgz +0 -0
  24. package/simpo-component-library-1.4.302.tgz +0 -0
  25. package/simpo-component-library-1.4.300.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
  }
@@ -3,13 +3,16 @@ 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 { AddressDetails } from '../../styles/user.modal';
6
7
  import { EventsService } from '../../../services/events.service';
7
8
  import BaseSection from '../../../sections/BaseSection';
9
+ import { MatBottomSheet } from '@angular/material/bottom-sheet';
8
10
  import * as i0 from "@angular/core";
9
11
  export declare class AddressComponent extends BaseSection implements OnInit, OnChanges {
10
12
  private readonly ngZone;
11
13
  private readonly restService;
12
14
  private readonly matDialog;
15
+ private readonly matBottomsheet;
13
16
  private readonly router;
14
17
  private readonly storageService;
15
18
  private readonly _eventService;
@@ -23,8 +26,8 @@ export declare class AddressComponent extends BaseSection implements OnInit, OnC
23
26
  addressList: any;
24
27
  selectedAddressIdx: number;
25
28
  selectedAddress: EventEmitter<number>;
26
- constructor(ngZone: NgZone, restService: RestService, matDialog: MatDialog, router: Router, storageService: StorageServiceService, _eventService: EventsService, matData: any, matDialogRef: MatDialogRef<AddressComponent>);
27
- address: any;
29
+ constructor(ngZone: NgZone, restService: RestService, matDialog: MatDialog, matBottomsheet: MatBottomSheet, router: Router, storageService: StorageServiceService, _eventService: EventsService, matData: any, matDialogRef: MatDialogRef<AddressComponent>);
30
+ address: AddressDetails;
28
31
  isCart: boolean;
29
32
  private editIndex;
30
33
  private latitute;
@@ -57,6 +60,7 @@ export declare class AddressComponent extends BaseSection implements OnInit, OnC
57
60
  validateName(event: KeyboardEvent): void;
58
61
  editSection(): void;
59
62
  get isEmailValid(): boolean;
60
- static ɵfac: i0.ɵɵFactoryDeclaration<AddressComponent, [null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
63
+ get isMobile(): boolean;
64
+ static ɵfac: i0.ɵɵFactoryDeclaration<AddressComponent, [null, null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
61
65
  static ɵcmp: i0.ɵɵComponentDeclaration<AddressComponent, "simpo-address", 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; }; "isCart": { "alias": "isCart"; "required": false; }; }, { "selectedAddress": "selectedAddress"; }, never, never, true, never>;
62
66
  }
@@ -36,6 +36,7 @@ export declare class CartComponent extends BaseSection implements OnInit {
36
36
  ngOnInit(): void;
37
37
  getIndexDBData(): void;
38
38
  proceedToCheckout(): void;
39
+ goToProductDetails(product: OrderedItems): void;
39
40
  proceedToListPage(): void;
40
41
  removeItem(item: OrderedItems): void;
41
42
  private moveItemToWishlist;
@@ -24,6 +24,7 @@ export declare class FeaturedCategoryComponent extends BaseSection {
24
24
  redirectToListPage(category: string): void;
25
25
  getAllCategories(): void;
26
26
  editSection(): void;
27
+ get isMobile(): boolean;
27
28
  static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedCategoryComponent, never>;
28
29
  static ɵcmp: i0.ɵɵComponentDeclaration<FeaturedCategoryComponent, "simpo-featured-category", 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>;
29
30
  }
@@ -25,6 +25,7 @@ export interface AddressDetails {
25
25
  localityName: string;
26
26
  addressLine1: string;
27
27
  landmark: string;
28
+ stateCode: string;
28
29
  zipCode: string;
29
30
  addressType: ADDRESS_TYPE;
30
31
  geolocation: Geolocation;
@@ -33,6 +34,5 @@ export interface Geolocation {
33
34
  latitude: number;
34
35
  longitude: number;
35
36
  }
36
- declare type ADDRESS_TYPE = "HOME" | "WORK" | "OTHER";
37
+ export declare type ADDRESS_TYPE = "HOME" | "WORK" | "OTHER";
37
38
  export declare type GENDER = "MALE" | "FEMALE" | "OTHERS";
38
- export {};
@@ -53,6 +53,7 @@ export declare class NavbarSectionComponent implements OnInit {
53
53
  redirectTo(content: any): void;
54
54
  get isComponentMerged(): any;
55
55
  editSection(): void;
56
+ get showMobileHomeIcon(): boolean;
56
57
  get getCartItemsCount(): number;
57
58
  getKeys(object: any): string[];
58
59
  getValues(object: any): unknown[];
@@ -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.300",
3
+ "version": "1.4.302",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file