simpo-component-library 1.4.70 → 1.4.71
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 +33 -21
- package/esm2022/lib/ecommerce/sections/authenticate-user/authenticate-user.component.mjs +2 -4
- package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +5 -4
- 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 +18 -15
- package/esm2022/lib/ecommerce/sections/user-profile/user-profile.component.mjs +32 -10
- package/esm2022/lib/ecommerce/sections/user-profile/user-profile.modal.mjs +1 -1
- package/esm2022/lib/sections/navbar-section/navbar-section.component.mjs +1 -1
- package/esm2022/lib/services/storage.service.mjs +2 -2
- package/fesm2022/simpo-component-library.mjs +140 -122
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/ecommerce/sections/address/address.component.d.ts +7 -6
- package/lib/ecommerce/sections/user-basic-info/user-basic-info.component.d.ts +5 -1
- package/lib/ecommerce/sections/user-profile/user-profile.component.d.ts +12 -4
- package/lib/ecommerce/sections/user-profile/user-profile.modal.d.ts +0 -7
- package/lib/sections/banner-carousel/banner-carousel.component.d.ts +2 -2
- package/lib/services/storage.service.d.ts +2 -2
- package/package.json +1 -1
- package/simpo-component-library-1.4.71.tgz +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit, NgZone, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { RestService } from '../../../services/rest.service';
|
|
3
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
+
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
4
4
|
import { Router } from '@angular/router';
|
|
5
5
|
import { StorageServiceService } from '../../../services/storage.service';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
@@ -10,10 +10,12 @@ export declare class AddressComponent implements OnInit, OnChanges {
|
|
|
10
10
|
private readonly matDialog;
|
|
11
11
|
private readonly router;
|
|
12
12
|
private readonly storageService;
|
|
13
|
+
matData: any;
|
|
14
|
+
matDialogRef: MatDialogRef<AddressComponent>;
|
|
13
15
|
responseData: any;
|
|
14
16
|
data: any;
|
|
15
|
-
|
|
16
|
-
constructor(ngZone: NgZone, restService: RestService, matDialog: MatDialog, router: Router, storageService: StorageServiceService);
|
|
17
|
+
selectedAddressIdx: number;
|
|
18
|
+
constructor(ngZone: NgZone, restService: RestService, matDialog: MatDialog, router: Router, storageService: StorageServiceService, matData: any, matDialogRef: MatDialogRef<AddressComponent>);
|
|
17
19
|
addressList: any[];
|
|
18
20
|
address: any;
|
|
19
21
|
isCart: boolean;
|
|
@@ -40,7 +42,6 @@ export declare class AddressComponent implements OnInit, OnChanges {
|
|
|
40
42
|
onLocationSelected(location: any): void;
|
|
41
43
|
onAutocompleteSelected(result: any): void;
|
|
42
44
|
updateAddress(): void;
|
|
43
|
-
|
|
44
|
-
static
|
|
45
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AddressComponent, "simpo-address", never, { "responseData": { "alias": "responseData"; "required": false; }; "data": { "alias": "data"; "required": false; }; "selectedAddress": { "alias": "selectedAddress"; "required": false; }; "isCart": { "alias": "isCart"; "required": false; }; }, {}, never, never, true, never>;
|
|
45
|
+
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>;
|
|
46
47
|
}
|
|
@@ -2,18 +2,22 @@ import { OnInit } from '@angular/core';
|
|
|
2
2
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
3
|
import { RestService } from "../../../services/rest.service";
|
|
4
4
|
import { Router } from '@angular/router';
|
|
5
|
+
import { StorageServiceService } from '../../../services/storage.service';
|
|
6
|
+
import { User } from '../../styles/user.modal';
|
|
5
7
|
import * as i0 from "@angular/core";
|
|
6
8
|
export declare class UserBasicInfoComponent implements OnInit {
|
|
7
9
|
private readonly restService;
|
|
8
10
|
private readonly router;
|
|
9
11
|
private readonly dialogRef;
|
|
12
|
+
private readonly storageService;
|
|
10
13
|
gender: 'MALE' | 'FEMALE' | null;
|
|
11
14
|
firstName: string;
|
|
12
15
|
middleName: string;
|
|
13
16
|
lastName: string;
|
|
14
17
|
email: string;
|
|
15
18
|
profilePic: string;
|
|
16
|
-
|
|
19
|
+
userDetails: User | null;
|
|
20
|
+
constructor(restService: RestService, router: Router, dialogRef: MatDialogRef<UserBasicInfoComponent>, storageService: StorageServiceService);
|
|
17
21
|
ngOnInit(): void;
|
|
18
22
|
close(): void;
|
|
19
23
|
saveProfile(): void;
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { EventsService } from '.././../../services/events.service';
|
|
3
|
-
import { ResponseData, Tabs
|
|
3
|
+
import { ResponseData, Tabs } from './user-profile.modal';
|
|
4
4
|
import { OrderItem } from '../../styles/order.modal';
|
|
5
5
|
import { Router } from '@angular/router';
|
|
6
6
|
import { RestService } from "../../../services/rest.service";
|
|
7
|
+
import { StorageServiceService } from '../../../services/storage.service';
|
|
8
|
+
import { User } from '../../styles/user.modal';
|
|
9
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
7
10
|
import * as i0 from "@angular/core";
|
|
8
11
|
export declare class UserProfileComponent implements OnInit {
|
|
9
12
|
private readonly router;
|
|
10
13
|
private readonly _eventService;
|
|
11
14
|
private readonly restService;
|
|
12
|
-
|
|
15
|
+
private readonly storageService;
|
|
16
|
+
private readonly matDialog;
|
|
17
|
+
constructor(router: Router, _eventService: EventsService, restService: RestService, storageService: StorageServiceService, matDialog: MatDialog);
|
|
13
18
|
responseData?: ResponseData;
|
|
14
19
|
data?: any;
|
|
15
20
|
index?: number;
|
|
@@ -18,20 +23,23 @@ export declare class UserProfileComponent implements OnInit {
|
|
|
18
23
|
isLoading: boolean;
|
|
19
24
|
button: any;
|
|
20
25
|
selectedSidePanelTab: string | null;
|
|
21
|
-
userDetails:
|
|
26
|
+
userDetails: User | null;
|
|
22
27
|
addressList: any;
|
|
23
28
|
sidePanelList: Tabs[];
|
|
24
29
|
tabs: Tabs[];
|
|
25
30
|
orderList: OrderItem[];
|
|
26
31
|
ngOnInit(): void;
|
|
32
|
+
getUserInfo(): void;
|
|
27
33
|
goToPanel(panel: any): void;
|
|
28
34
|
goBack(): void;
|
|
29
35
|
goToDetails(order: any): void;
|
|
36
|
+
addNewAddress(): void;
|
|
30
37
|
goToHome(): void;
|
|
31
38
|
selectTab(tab: Tabs): void;
|
|
32
39
|
toggleSidepanelTab(tab: Tabs): void;
|
|
33
|
-
get getUserDetails():
|
|
40
|
+
get getUserDetails(): User | null;
|
|
34
41
|
get isMobile(): boolean;
|
|
42
|
+
get getUserProfile(): string;
|
|
35
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserProfileComponent, never>;
|
|
36
44
|
static ɵcmp: i0.ɵɵComponentDeclaration<UserProfileComponent, "simpo-user-profile", 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>;
|
|
37
45
|
}
|
|
@@ -35,13 +35,6 @@ export interface ResponseData {
|
|
|
35
35
|
tabs: Tabs[];
|
|
36
36
|
orders: OrderItem[];
|
|
37
37
|
}
|
|
38
|
-
export interface UserProfile {
|
|
39
|
-
userId: string;
|
|
40
|
-
businessId: string;
|
|
41
|
-
address: any;
|
|
42
|
-
gender: string;
|
|
43
|
-
contact: UserContact;
|
|
44
|
-
}
|
|
45
38
|
export interface UserContact {
|
|
46
39
|
id: string;
|
|
47
40
|
name: string;
|
|
@@ -23,8 +23,8 @@ export declare class BannerCarouselComponent extends BaseSection implements OnIn
|
|
|
23
23
|
get stylesLayout(): LayOutModel;
|
|
24
24
|
get getBlurValue(): OverlayValue | undefined;
|
|
25
25
|
get getBackgroundColor(): BackgroundModel;
|
|
26
|
-
get getBackgroundOpacity(): "0
|
|
27
|
-
opacityValue(value: OverlayValue): "0
|
|
26
|
+
get getBackgroundOpacity(): "0" | "0.2" | "0.3" | "0.5" | "0.7";
|
|
27
|
+
opacityValue(value: OverlayValue): "0" | "0.2" | "0.3" | "0.5" | "0.7";
|
|
28
28
|
editSection(): void;
|
|
29
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<BannerCarouselComponent, never>;
|
|
30
30
|
static ɵcmp: i0.ɵɵComponentDeclaration<BannerCarouselComponent, "simpo-banner-carousel", 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>;
|
|
@@ -35,8 +35,8 @@ export declare class StorageServiceService {
|
|
|
35
35
|
getProductFromWishlist(productId: string): Promise<IDBRequest<any>>;
|
|
36
36
|
clearUserCart(): IDBRequest<undefined>;
|
|
37
37
|
clearUserWishlist(): IDBRequest<undefined>;
|
|
38
|
-
|
|
39
|
-
getUser():
|
|
38
|
+
setUser(user: User): User;
|
|
39
|
+
getUser(): User | null;
|
|
40
40
|
storePaymentFor(paymentFor: string): void;
|
|
41
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<StorageServiceService, never>;
|
|
42
42
|
static ɵprov: i0.ɵɵInjectableDeclaration<StorageServiceService>;
|
package/package.json
CHANGED
|
Binary file
|