simpo-component-library 1.4.301 → 1.4.304
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.
- package/esm2022/lib/ecommerce/sections/address/address.component.mjs +36 -21
- package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +10 -3
- package/esm2022/lib/ecommerce/sections/featured-category/featured-category.component.mjs +6 -3
- package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/user-basic-info/user-basic-info.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/user-profile/user-profile.component.mjs +9 -7
- package/esm2022/lib/ecommerce/sections/whislist/whislist.component.mjs +3 -3
- package/esm2022/lib/ecommerce/styles/user.modal.mjs +1 -1
- package/esm2022/lib/sections/navbar-section/navbar-section.component.mjs +2 -2
- package/fesm2022/simpo-component-library.mjs +92 -67
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/directive/background-directive.d.ts +1 -1
- package/lib/directive/button-directive.directive.d.ts +1 -1
- package/lib/directive/color.directive.d.ts +1 -1
- package/lib/ecommerce/sections/address/address.component.d.ts +7 -3
- package/lib/ecommerce/sections/cart/cart.component.d.ts +1 -0
- package/lib/ecommerce/sections/featured-category/featured-category.component.d.ts +1 -0
- package/lib/ecommerce/styles/user.modal.d.ts +2 -2
- package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
- package/package.json +1 -1
- package/simpo-component-library-1.4.304.tgz +0 -0
- package/simpo-component-library-1.4.301.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): "#
|
14
|
+
getTextColor(bgColor: string): "#ffffff" | "#000000" | "#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): "#
|
18
|
+
getTextColor(bgColor: string): "#ffffff" | "#000000" | "#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(): "#
|
15
|
+
getTextColor(): "#ffffff" | "#000000" | "#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:
|
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
|
-
|
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 {};
|
@@ -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(): "#
|
18
|
+
getTextColor(): "#ffffff" | "#000000";
|
19
19
|
get headingSpace(): SPACING;
|
20
20
|
editSection(): void;
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<PricingSectionComponent, never>;
|
package/package.json
CHANGED
Binary file
|
Binary file
|