simpo-component-library 1.4.144 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/lib/directive/background-directive.mjs +1 -1
- package/esm2022/lib/directive/border-directive.mjs +11 -23
- package/esm2022/lib/directive/removeCarousel-directive.mjs +73 -0
- package/esm2022/lib/ecommerce/json/user-cart.json +40 -0
- package/esm2022/lib/ecommerce/json/user-details.json +15 -0
- package/esm2022/lib/ecommerce/json/user-favourite.json +32 -0
- package/esm2022/lib/ecommerce/sections/address/address.component.mjs +17 -49
- package/esm2022/lib/ecommerce/sections/authenticate-user/authenticate-user.component.mjs +36 -69
- package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +49 -202
- package/esm2022/lib/ecommerce/sections/cart/cart.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/checkout/checkout.component.mjs +3 -7
- package/esm2022/lib/ecommerce/sections/featured-category/featured-category.component.mjs +4 -4
- package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +34 -77
- package/esm2022/lib/ecommerce/sections/featured-products/featured-products.modal.mjs +2 -11
- package/esm2022/lib/ecommerce/sections/order-details/order-details.component.mjs +10 -74
- package/esm2022/lib/ecommerce/sections/pagnination/pagnination.component.mjs +7 -13
- package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +30 -88
- package/esm2022/lib/ecommerce/sections/product-desc/product-desc.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +30 -106
- package/esm2022/lib/ecommerce/sections/product-list/product-list.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/user-basic-info/user-basic-info.component.mjs +17 -43
- package/esm2022/lib/ecommerce/sections/user-profile/user-profile.component.mjs +24 -156
- package/esm2022/lib/ecommerce/sections/user-profile/user-profile.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/whislist/whislist.component.mjs +17 -147
- package/esm2022/lib/ecommerce/styles/OrderedItems.modal.mjs +2 -3
- package/esm2022/lib/ecommerce/styles/cart.modal.mjs +1 -2
- package/esm2022/lib/sections/banner-section/banner-section.component.mjs +2 -1
- package/esm2022/lib/sections/carousel-banner/carousel-banner.component.mjs +166 -0
- package/esm2022/lib/sections/carousel-banner/carousel-banner.model.mjs +2 -0
- package/esm2022/lib/sections/choose-us-section/choose-us-section.component.mjs +3 -3
- package/esm2022/lib/sections/contact-us/contact-us.component.mjs +3 -5
- package/esm2022/lib/sections/navbar-section/navbar-section.component.mjs +8 -14
- package/esm2022/lib/sections/navbar-section/navbar-section.model.mjs +1 -1
- package/esm2022/lib/services/cart.service.mjs +109 -40
- package/esm2022/lib/services/events.service.mjs +2 -3
- package/esm2022/lib/services/rest.service.mjs +2 -17
- package/esm2022/lib/services/storage.service.mjs +30 -83
- package/esm2022/lib/styles/index.mjs +1 -8
- package/esm2022/lib/styles/style.model.mjs +1 -1
- package/esm2022/lib/styles/types.mjs +1 -1
- package/esm2022/public-api.mjs +3 -3
- package/fesm2022/simpo-component-library.mjs +816 -1459
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/directive/removeCarousel-directive.d.ts +35 -0
- package/lib/ecommerce/sections/address/address.component.d.ts +7 -12
- package/lib/ecommerce/sections/authenticate-user/authenticate-user.component.d.ts +6 -22
- package/lib/ecommerce/sections/cart/cart.component.d.ts +6 -14
- package/lib/ecommerce/sections/cart/cart.modal.d.ts +1 -10
- package/lib/ecommerce/sections/checkout/checkout.component.d.ts +0 -1
- package/lib/ecommerce/sections/featured-products/featured-products.component.d.ts +7 -14
- package/lib/ecommerce/sections/featured-products/featured-products.modal.d.ts +1 -4
- package/lib/ecommerce/sections/order-details/order-details.component.d.ts +2 -15
- package/lib/ecommerce/sections/pagnination/pagnination.component.d.ts +2 -3
- package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +3 -17
- package/lib/ecommerce/sections/product-desc/product-desc.modal.d.ts +1 -2
- package/lib/ecommerce/sections/product-list/product-list.component.d.ts +2 -21
- package/lib/ecommerce/sections/product-list/product-list.modal.d.ts +0 -2
- package/lib/ecommerce/sections/user-basic-info/user-basic-info.component.d.ts +1 -11
- package/lib/ecommerce/sections/user-profile/user-profile.component.d.ts +10 -36
- package/lib/ecommerce/sections/user-profile/user-profile.modal.d.ts +8 -5
- package/lib/ecommerce/sections/whislist/whislist.component.d.ts +6 -20
- package/lib/ecommerce/styles/OrderedItems.modal.d.ts +1 -2
- package/lib/ecommerce/styles/cart.modal.d.ts +0 -1
- package/lib/sections/carousel-banner/carousel-banner.component.d.ts +28 -0
- package/lib/sections/carousel-banner/carousel-banner.model.d.ts +42 -0
- package/lib/sections/navbar-section/navbar-section.component.d.ts +0 -1
- package/lib/sections/navbar-section/navbar-section.model.d.ts +1 -1
- package/lib/services/cart.service.d.ts +5 -8
- package/lib/services/events.service.d.ts +3 -4
- package/lib/services/rest.service.d.ts +0 -3
- package/lib/services/storage.service.d.ts +44 -11
- package/lib/styles/index.d.ts +0 -6
- package/lib/styles/style.model.d.ts +1 -4
- package/lib/styles/types.d.ts +0 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -2
- package/simpo-component-library-1.5.0.tgz +0 -0
- package/esm2022/lib/constants/business.constant.mjs +0 -5
- package/esm2022/lib/directive/spacing-horizontal.directive.mjs +0 -48
- package/esm2022/lib/ecommerce/sections/verify-payment/verify-payment.component.mjs +0 -97
- package/esm2022/lib/ecommerce/sections/verify-payment/verify-payment.model.mjs +0 -2
- package/esm2022/lib/pipes/amount.pipe.mjs +0 -35
- package/esm2022/lib/services/endUser.service.mjs +0 -28
- package/lib/constants/business.constant.d.ts +0 -3
- package/lib/directive/spacing-horizontal.directive.d.ts +0 -18
- package/lib/ecommerce/sections/verify-payment/verify-payment.component.d.ts +0 -27
- package/lib/ecommerce/sections/verify-payment/verify-payment.model.d.ts +0 -23
- package/lib/pipes/amount.pipe.d.ts +0 -7
- package/lib/services/endUser.service.d.ts +0 -13
- package/simpo-component-library-1.4.144.tgz +0 -0
@@ -0,0 +1,35 @@
|
|
1
|
+
import { ElementRef, OnChanges, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
2
|
+
import { EventsService } from '../services/events.service';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class RemoveCarouselDirective implements OnChanges, OnInit, OnDestroy {
|
5
|
+
private el;
|
6
|
+
private renderer;
|
7
|
+
private eventService;
|
8
|
+
carouselRemove?: any;
|
9
|
+
currentIndex?: number;
|
10
|
+
eventServiceSubscription: any;
|
11
|
+
private observer;
|
12
|
+
animationSpeed: {
|
13
|
+
type: {
|
14
|
+
top: string;
|
15
|
+
bottom: string;
|
16
|
+
left: string;
|
17
|
+
right: string;
|
18
|
+
fadeIn: string;
|
19
|
+
zoom: string;
|
20
|
+
none: string;
|
21
|
+
};
|
22
|
+
speed: {
|
23
|
+
slow: string;
|
24
|
+
medium: string;
|
25
|
+
fast: string;
|
26
|
+
};
|
27
|
+
};
|
28
|
+
constructor(el: ElementRef, renderer: Renderer2, eventService: EventsService);
|
29
|
+
ngOnDestroy(): void;
|
30
|
+
ngOnInit(): void;
|
31
|
+
ngOnChanges(): void;
|
32
|
+
private stopCarousel;
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RemoveCarouselDirective, never>;
|
34
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RemoveCarouselDirective, "[simpoCarouselRemove]", never, { "carouselRemove": { "alias": "simpoCarouselRemove"; "required": false; }; "currentIndex": { "alias": "currentIndex"; "required": false; }; }, {}, never, never, true, never>;
|
35
|
+
}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { OnInit, NgZone, OnChanges, SimpleChanges
|
1
|
+
import { OnInit, NgZone, OnChanges, SimpleChanges } from '@angular/core';
|
2
2
|
import { RestService } from '../../../services/rest.service';
|
3
|
-
import { MatDialog
|
3
|
+
import { MatDialog } 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,24 +10,20 @@ 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>;
|
15
13
|
responseData: any;
|
16
14
|
data: any;
|
17
|
-
|
18
|
-
|
19
|
-
selectedAddress: EventEmitter<number>;
|
20
|
-
constructor(ngZone: NgZone, restService: RestService, matDialog: MatDialog, router: Router, storageService: StorageServiceService, matData: any, matDialogRef: MatDialogRef<AddressComponent>);
|
15
|
+
constructor(ngZone: NgZone, restService: RestService, matDialog: MatDialog, router: Router, storageService: StorageServiceService);
|
16
|
+
addressList: any[];
|
21
17
|
address: any;
|
22
18
|
isCart: boolean;
|
23
19
|
private latitute;
|
24
20
|
private longitute;
|
25
21
|
addNewAddress: boolean;
|
26
|
-
isLoading: boolean;
|
27
22
|
mapCenter: google.maps.LatLngLiteral;
|
28
23
|
markerPosition: google.maps.LatLngLiteral;
|
29
24
|
markerOptions: google.maps.MarkerOptions;
|
30
25
|
private geocoder;
|
26
|
+
selectedAddressIdx: number;
|
31
27
|
addessType: {
|
32
28
|
key: string;
|
33
29
|
status: boolean;
|
@@ -43,8 +39,7 @@ export declare class AddressComponent implements OnInit, OnChanges {
|
|
43
39
|
getAddress(): void;
|
44
40
|
onLocationSelected(location: any): void;
|
45
41
|
onAutocompleteSelected(result: any): void;
|
46
|
-
addressSelected(index: number): void;
|
47
42
|
updateAddress(): void;
|
48
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AddressComponent,
|
49
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AddressComponent, "simpo-address", never, { "responseData": { "alias": "responseData"; "required": false; }; "data": { "alias": "data"; "required": false; }; "isCart": { "alias": "isCart"; "required": false; };
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AddressComponent, never>;
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AddressComponent, "simpo-address", never, { "responseData": { "alias": "responseData"; "required": false; }; "data": { "alias": "data"; "required": false; }; "isCart": { "alias": "isCart"; "required": false; }; "selectedAddressIdx": { "alias": "selectedAddressIdx"; "required": false; }; }, {}, never, never, true, never>;
|
50
45
|
}
|
@@ -4,21 +4,8 @@ import { RestService } from '../../../services/rest.service';
|
|
4
4
|
import { Router } from '@angular/router';
|
5
5
|
import { StorageServiceService } from '../../../services/storage.service';
|
6
6
|
import { EventsService } from '../../../services/events.service';
|
7
|
-
import { InputTextModel, StylesModel } from '../../../styles/style.model';
|
8
|
-
import { ActionModel } from "../../../styles/style.model";
|
9
|
-
import BaseSection from '../../../sections/BaseSection';
|
10
|
-
import { MessageService } from 'primeng/api';
|
11
7
|
import * as i0 from "@angular/core";
|
12
|
-
|
13
|
-
content: AuthenticateContentModel;
|
14
|
-
styles: StylesModel;
|
15
|
-
action: ActionModel;
|
16
|
-
type: 'STATIC' | 'E_COMMERCE';
|
17
|
-
}
|
18
|
-
interface AuthenticateContentModel {
|
19
|
-
siteName: InputTextModel;
|
20
|
-
}
|
21
|
-
export declare class AuthenticateUserComponent extends BaseSection implements OnInit {
|
8
|
+
export declare class AuthenticateUserComponent implements OnInit {
|
22
9
|
matData: any;
|
23
10
|
private readonly restService;
|
24
11
|
private readonly router;
|
@@ -26,26 +13,23 @@ export declare class AuthenticateUserComponent extends BaseSection implements On
|
|
26
13
|
private readonly storageService;
|
27
14
|
private readonly dialogRef;
|
28
15
|
private readonly _eventService;
|
29
|
-
|
30
|
-
|
16
|
+
data?: any;
|
17
|
+
responseData?: any;
|
31
18
|
isLoading: boolean;
|
32
|
-
otpData: undefined[];
|
33
19
|
otpString: string;
|
34
20
|
screen: 'LOGIN' | 'OTP';
|
35
21
|
mobile: string | null;
|
36
22
|
countryCode: string | null;
|
37
|
-
constructor(matData: any, restService: RestService, router: Router, matDialog: MatDialog, storageService: StorageServiceService, dialogRef: MatDialogRef<AuthenticateUserComponent>, _eventService: EventsService
|
23
|
+
constructor(matData: any, restService: RestService, router: Router, matDialog: MatDialog, storageService: StorageServiceService, dialogRef: MatDialogRef<AuthenticateUserComponent>, _eventService: EventsService);
|
38
24
|
styles: any;
|
39
25
|
ngOnInit(): void;
|
40
26
|
move(event: any, idx: number): void;
|
41
27
|
close(): void;
|
42
28
|
goBack(): void;
|
43
|
-
private resetValue;
|
44
29
|
generateOTP(): void;
|
45
30
|
verifyOTP(): void;
|
46
31
|
resendOTP(): void;
|
47
32
|
get isMobile(): boolean;
|
48
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AuthenticateUserComponent, [{ optional: true; }, null, null, null, null, { optional: true; }, null
|
49
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AuthenticateUserComponent, "simpo-authenticate-user", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthenticateUserComponent, [{ optional: true; }, null, null, null, null, { optional: true; }, null]>;
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AuthenticateUserComponent, "simpo-authenticate-user", never, { "data": { "alias": "data"; "required": false; }; "responseData": { "alias": "responseData"; "required": false; }; }, {}, never, never, true, never>;
|
50
35
|
}
|
51
|
-
export {};
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { OnInit } from '@angular/core';
|
2
1
|
import { CartSectionModal, CartSectionStylesModel } from './cart.modal';
|
3
2
|
import BaseSection from '../../../sections/BaseSection';
|
4
3
|
import { EventsService } from '.././../../services/events.service';
|
@@ -7,42 +6,35 @@ import { Router } from '@angular/router';
|
|
7
6
|
import { MatDialog } from '@angular/material/dialog';
|
8
7
|
import { RestService } from "../../../services/rest.service";
|
9
8
|
import { StorageServiceService } from '../../../services/storage.service';
|
10
|
-
import {
|
9
|
+
import { CookieService } from 'ngx-cookie-service';
|
11
10
|
import * as i0 from "@angular/core";
|
12
|
-
export declare class CartComponent extends BaseSection
|
11
|
+
export declare class CartComponent extends BaseSection {
|
13
12
|
private readonly _eventService;
|
14
13
|
private readonly cartService;
|
15
14
|
private readonly router;
|
16
15
|
private readonly restService;
|
17
16
|
private readonly matDialog;
|
18
17
|
private readonly storageService;
|
19
|
-
private readonly
|
18
|
+
private readonly cookieService;
|
20
19
|
data?: CartSectionModal;
|
21
20
|
responseData?: any;
|
22
21
|
index?: number;
|
23
22
|
edit?: boolean;
|
24
23
|
delete?: boolean;
|
25
24
|
isLoading: boolean;
|
25
|
+
selectedAddressIdx: number;
|
26
26
|
styles?: CartSectionStylesModel;
|
27
27
|
currentTab: 'BAG' | 'ADDRESS' | 'PAYMENT';
|
28
|
-
constructor(_eventService: EventsService, cartService: CartService, router: Router, restService: RestService, matDialog: MatDialog, storageService: StorageServiceService,
|
28
|
+
constructor(_eventService: EventsService, cartService: CartService, router: Router, restService: RestService, matDialog: MatDialog, storageService: StorageServiceService, cookieService: CookieService);
|
29
29
|
private loadingItems;
|
30
|
-
private userDetails;
|
31
|
-
private USER_CART_ITEMS;
|
32
|
-
selectedAddressIdx: number;
|
33
|
-
cartInfo: any;
|
34
30
|
ngOnInit(): void;
|
35
|
-
getIndexDBData(): void;
|
36
31
|
proceedToCheckout(): void;
|
37
32
|
proceedToListPage(): void;
|
38
33
|
removeItem(item: any): void;
|
39
34
|
addToCart(item: any, type: 'ADD' | 'SUBSTRACT'): void;
|
40
35
|
proceedToPayment(): void;
|
41
36
|
isItemLoading(itemId: string): boolean;
|
42
|
-
|
43
|
-
get getAddressList(): import("../../styles/user.modal").AddressDetails[];
|
44
|
-
get isMobile(): boolean;
|
45
|
-
get currency(): string;
|
37
|
+
get getAddressList(): never[];
|
46
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<CartComponent, never>;
|
47
39
|
static ɵcmp: i0.ɵɵComponentDeclaration<CartComponent, "simpo-cart", 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>;
|
48
40
|
}
|
@@ -1,21 +1,12 @@
|
|
1
|
-
import { InputTextModel } from "../../../styles/style.model";
|
2
1
|
import { AnimationModel, BackgroundModel, LayOutModel } from "../../../styles/style.model";
|
3
|
-
import { ActionModel
|
2
|
+
import { ActionModel } from '../../../styles/style.model';
|
4
3
|
export interface CartSectionModal {
|
5
4
|
id: string;
|
6
5
|
sectionType: string;
|
7
6
|
sectionName: string;
|
8
7
|
styles: CartSectionStylesModel;
|
9
|
-
content: CartContentSectionModel;
|
10
8
|
action: ActionModel;
|
11
9
|
}
|
12
|
-
export interface CartContentSectionModel {
|
13
|
-
inputText: InputTextModel[];
|
14
|
-
image: ImageModel;
|
15
|
-
}
|
16
|
-
export interface ImageModel extends Image {
|
17
|
-
showImage: boolean;
|
18
|
-
}
|
19
10
|
export interface CartSectionStylesModel {
|
20
11
|
layout: LayOutModel;
|
21
12
|
background: BackgroundModel;
|
@@ -18,7 +18,6 @@ export declare class CheckoutComponent extends BaseSection {
|
|
18
18
|
button?: ButtonModel;
|
19
19
|
ngOnInit(): void;
|
20
20
|
placeOrder(): void;
|
21
|
-
get currency(): string;
|
22
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckoutComponent, never>;
|
23
22
|
static ɵcmp: i0.ɵɵComponentDeclaration<CheckoutComponent, "simpo-checkout", 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>;
|
24
23
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { OnDestroy } 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';
|
@@ -7,44 +7,37 @@ import { ButtonModel } from '../../../styles/style.model';
|
|
7
7
|
import { RestService } from '../../../services/rest.service';
|
8
8
|
import { Router } from '@angular/router';
|
9
9
|
import { CartService } from '../../../services/cart.service';
|
10
|
-
import { StorageServiceService } from '../../../services/storage.service';
|
11
10
|
import * as i0 from "@angular/core";
|
12
|
-
export declare class FeaturedProductsComponent extends BaseSection implements
|
11
|
+
export declare class FeaturedProductsComponent extends BaseSection implements OnDestroy {
|
13
12
|
private platformId;
|
14
13
|
private readonly _eventService;
|
15
14
|
private readonly restService;
|
16
15
|
private readonly router;
|
17
16
|
private readonly cartService;
|
18
|
-
|
19
|
-
data: FeaturedProductModal | null;
|
17
|
+
data?: FeaturedProductModal;
|
20
18
|
responseData?: Product[];
|
21
19
|
index?: number;
|
22
20
|
isRelatedProduct: boolean;
|
23
21
|
isLoading: boolean;
|
24
|
-
filterLoading: boolean;
|
25
22
|
edit?: boolean;
|
26
23
|
delete?: boolean;
|
27
|
-
changeDetailProduct: EventEmitter<Product>;
|
28
24
|
content?: FeaturedProductContentModal;
|
29
25
|
styles?: FeaturedProductStylesModel;
|
30
26
|
button?: ButtonModel;
|
31
27
|
private _eventSubscriber;
|
32
|
-
constructor(platformId: Object, _eventService: EventsService, restService: RestService, router: Router, cartService: CartService
|
28
|
+
constructor(platformId: Object, _eventService: EventsService, restService: RestService, router: Router, cartService: CartService);
|
33
29
|
screenWidth: number;
|
34
|
-
private USER_CART;
|
35
|
-
private USER_WISHLIST;
|
36
30
|
getScreenSize(): void;
|
37
31
|
ngOnInit(): void;
|
38
|
-
ngOnChanges(changes: SimpleChanges): void;
|
39
32
|
ngOnDestroy(): void;
|
40
33
|
getProductWidth(): string;
|
41
34
|
getSliceParameters(): number[];
|
42
35
|
getFeatureProduct(): void;
|
43
36
|
addItemToCart(product: Product, type: 'ADD' | 'SUBSTRACT'): void;
|
44
37
|
toggleItemToFav(product: Product, type: 'ADD' | 'REMOVE'): void;
|
45
|
-
proceedToProductDesc(
|
38
|
+
proceedToProductDesc(productId: any): void;
|
39
|
+
isItemFav(product: Product): boolean;
|
46
40
|
togglePreviewImage(product: Product, idx: number): void;
|
47
|
-
get currency(): string;
|
48
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedProductsComponent, never>;
|
49
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FeaturedProductsComponent, "simpo-featured-products", never, { "data": { "alias": "data"; "required": false; }; "responseData": { "alias": "responseData"; "required": false; }; "index": { "alias": "index"; "required": false; }; "isRelatedProduct": { "alias": "isRelatedProduct"; "required": false; }; "
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FeaturedProductsComponent, "simpo-featured-products", never, { "data": { "alias": "data"; "required": false; }; "responseData": { "alias": "responseData"; "required": false; }; "index": { "alias": "index"; "required": false; }; "isRelatedProduct": { "alias": "isRelatedProduct"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
|
50
43
|
}
|
@@ -1,15 +1,12 @@
|
|
1
1
|
import { InputTextModel, StylesModel, ImageStyle, ActionModel } from "../../../styles/style.model";
|
2
2
|
import { Corners } from "../../.././styles/index";
|
3
|
-
export
|
3
|
+
export interface FeaturedProductModal {
|
4
4
|
id: string;
|
5
5
|
sectionType: string;
|
6
6
|
sectionName: string;
|
7
7
|
content: FeaturedProductContentModal;
|
8
8
|
styles: FeaturedProductStylesModel;
|
9
9
|
action: ActionModel;
|
10
|
-
constructor(json?: {
|
11
|
-
[key: string]: any;
|
12
|
-
});
|
13
10
|
}
|
14
11
|
export interface FeaturedProductContentModal {
|
15
12
|
inputText: InputTextModel[];
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { OnInit } from '@angular/core';
|
2
2
|
import { EventsService } from '../../../services/events.service';
|
3
|
-
import { ProfileStylesModal } from '../user-profile/user-profile.modal';
|
4
3
|
import * as i0 from "@angular/core";
|
5
4
|
export declare class OrderDetailsComponent implements OnInit {
|
6
5
|
private readonly _eventService;
|
@@ -9,22 +8,10 @@ export declare class OrderDetailsComponent implements OnInit {
|
|
9
8
|
index?: number;
|
10
9
|
edit?: boolean;
|
11
10
|
delete?: boolean;
|
12
|
-
orderDetailData: any;
|
13
|
-
goBackEmitter: EventEmitter<void>;
|
14
11
|
isLoading: boolean;
|
15
|
-
styles?: ProfileStylesModal;
|
16
12
|
constructor(_eventService: EventsService);
|
17
13
|
orderTimiline: any;
|
18
14
|
ngOnInit(): void;
|
19
|
-
private getIcon;
|
20
|
-
goBack(): void;
|
21
|
-
get getCardBGColor(): string;
|
22
|
-
get isMobile(): boolean;
|
23
|
-
getSupportingColor(bgColor: string): string;
|
24
|
-
private getComplementColor;
|
25
|
-
private convertHEX;
|
26
|
-
get currency(): string;
|
27
|
-
get canCancelOrder(): boolean;
|
28
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<OrderDetailsComponent, never>;
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OrderDetailsComponent, "simpo-order-details", 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; };
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OrderDetailsComponent, "simpo-order-details", 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>;
|
30
17
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { OnInit } from '@angular/core';
|
2
2
|
import { Router } from '@angular/router';
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
export declare class PagninationComponent implements OnInit {
|
@@ -6,12 +6,11 @@ export declare class PagninationComponent implements OnInit {
|
|
6
6
|
constructor(router: Router);
|
7
7
|
totalPages: number;
|
8
8
|
currentPage: number;
|
9
|
-
paginationChange: EventEmitter<number>;
|
10
9
|
bound: number;
|
11
10
|
ngOnInit(): void;
|
12
11
|
goToNext(): void;
|
13
12
|
goToPrev(): void;
|
14
13
|
goToSelection(index: number): void;
|
15
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<PagninationComponent, never>;
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PagninationComponent, "simpo-pagnination", never, { "totalPages": { "alias": "totalPages"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; }, {
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PagninationComponent, "simpo-pagnination", never, { "totalPages": { "alias": "totalPages"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; }, {}, never, never, true, never>;
|
17
16
|
}
|
@@ -7,9 +7,6 @@ import { ActivatedRoute, Router } from '@angular/router';
|
|
7
7
|
import { RestService } from '../../../services/rest.service';
|
8
8
|
import { CartService } from '../../../services/cart.service';
|
9
9
|
import { FeaturedProductModal } from '../featured-products/featured-products.modal';
|
10
|
-
import { StorageServiceService } from '../../../services/storage.service';
|
11
|
-
import { MessageService } from 'primeng/api';
|
12
|
-
import { Meta, Title } from '@angular/platform-browser';
|
13
10
|
import * as i0 from "@angular/core";
|
14
11
|
export declare class ProductDescComponent extends BaseSection {
|
15
12
|
private platformId;
|
@@ -18,41 +15,30 @@ export declare class ProductDescComponent extends BaseSection {
|
|
18
15
|
private readonly activatedRoute;
|
19
16
|
private readonly restService;
|
20
17
|
private readonly cartService;
|
21
|
-
private readonly storageService;
|
22
|
-
private readonly messageService;
|
23
|
-
private readonly metaTagService;
|
24
|
-
private readonly titleService;
|
25
18
|
data?: ProductDescModal;
|
26
19
|
responseData: Product;
|
27
20
|
index?: number;
|
28
21
|
edit?: boolean;
|
29
22
|
delete?: boolean;
|
30
23
|
isLoading: boolean;
|
31
|
-
featureProductData: FeaturedProductModal | null;
|
32
24
|
relatedProductData: Product[];
|
33
|
-
constructor(platformId: Object, _eventService: EventsService, router: Router, activatedRoute: ActivatedRoute, restService: RestService, cartService: CartService
|
25
|
+
constructor(platformId: Object, _eventService: EventsService, router: Router, activatedRoute: ActivatedRoute, restService: RestService, cartService: CartService);
|
34
26
|
buttonId?: string;
|
35
27
|
button?: ButtonModel;
|
36
28
|
styles?: ProductDescStylesModal;
|
37
|
-
isItemAsFavorite: boolean;
|
38
|
-
private USER_CART;
|
39
|
-
private USER_WISHLIST;
|
40
29
|
ngOnInit(): void;
|
41
30
|
routeToHome(): void;
|
42
31
|
screenWidth: any;
|
43
32
|
getScreenSize(): void;
|
44
33
|
currentImg: any;
|
45
34
|
changeImg(url: any): void;
|
46
|
-
goToCart(): void;
|
47
35
|
addToCart(type?: 'ADD' | 'SUBSTRACT'): void;
|
48
36
|
goToFilter(category: string): void;
|
49
37
|
addToFavourite(): void;
|
50
38
|
removeToFavourite(): void;
|
39
|
+
get isItemAsFavorite(): boolean;
|
40
|
+
get getFeatureProductData(): FeaturedProductModal;
|
51
41
|
getProductByCategory(): void;
|
52
|
-
getProductByCollection(): void;
|
53
|
-
changeProduct(product: Product): void;
|
54
|
-
get currency(): string;
|
55
|
-
get isItemLowStock(): boolean;
|
56
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductDescComponent, never>;
|
57
43
|
static ɵcmp: i0.ɵɵComponentDeclaration<ProductDescComponent, "simpo-product-desc", 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>;
|
58
44
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { AnimationModel, BackgroundModel,
|
1
|
+
import { AnimationModel, BackgroundModel, LayOutModel } from "../../../styles/style.model";
|
2
2
|
import { ActionModel } from '../../../styles/style.model';
|
3
3
|
export interface ProductDescModal {
|
4
4
|
id: string;
|
@@ -15,5 +15,4 @@ export interface ProductDescStylesModal {
|
|
15
15
|
}
|
16
16
|
export interface ProductDescContentModal {
|
17
17
|
button: string;
|
18
|
-
inputText: InputTextModel[];
|
19
18
|
}
|
@@ -5,9 +5,6 @@ import { EventsService } from '.././../../services/events.service';
|
|
5
5
|
import { RestService } from '.././../../services/rest.service';
|
6
6
|
import { ButtonModel } from '../../../styles/style.model';
|
7
7
|
import { ActivatedRoute, Router } from '@angular/router';
|
8
|
-
import { StorageServiceService } from '../../../services/storage.service';
|
9
|
-
import { MatBottomSheet } from '@angular/material/bottom-sheet';
|
10
|
-
import { MatDialog } from '@angular/material/dialog';
|
11
8
|
import * as i0 from "@angular/core";
|
12
9
|
interface BaseModel {
|
13
10
|
option: string;
|
@@ -20,9 +17,6 @@ export declare class ProductListComponent extends BaseSection {
|
|
20
17
|
private readonly restService;
|
21
18
|
private readonly router;
|
22
19
|
private readonly activatedRoute;
|
23
|
-
private readonly storageService;
|
24
|
-
private readonly matBottomSheet;
|
25
|
-
private readonly matDialog;
|
26
20
|
responseData?: Product[];
|
27
21
|
data?: ProductListModal;
|
28
22
|
index?: number;
|
@@ -31,17 +25,10 @@ export declare class ProductListComponent extends BaseSection {
|
|
31
25
|
isLoading: boolean;
|
32
26
|
content?: ProductListContentModal;
|
33
27
|
button?: ButtonModel;
|
34
|
-
|
35
|
-
constructor(platformId: Object, _eventService: EventsService, restService: RestService, router: Router, activatedRoute: ActivatedRoute, storageService: StorageServiceService, matBottomSheet: MatBottomSheet, matDialog: MatDialog);
|
36
|
-
private filterBottomSheetRef;
|
37
|
-
private sortingDialogRef;
|
28
|
+
constructor(platformId: Object, _eventService: EventsService, restService: RestService, router: Router, activatedRoute: ActivatedRoute);
|
38
29
|
pricingMin: number;
|
39
30
|
pricingMax: number;
|
40
31
|
sortBy: string | null;
|
41
|
-
private USER_CART;
|
42
|
-
private USER_WISHLIST;
|
43
|
-
minProductPrice: number;
|
44
|
-
maxProductPrice: number;
|
45
32
|
filteringArray: {
|
46
33
|
name: string;
|
47
34
|
value: string;
|
@@ -54,7 +41,6 @@ export declare class ProductListComponent extends BaseSection {
|
|
54
41
|
pageNo: number;
|
55
42
|
size: number;
|
56
43
|
searchTxt: string;
|
57
|
-
filterLoading: boolean;
|
58
44
|
ngOnInit(): void;
|
59
45
|
filterByCategoryCollectionParam(qCategories: any, qCollections: any): void;
|
60
46
|
getAllCategories(): void;
|
@@ -68,12 +54,7 @@ export declare class ProductListComponent extends BaseSection {
|
|
68
54
|
applyFilter(category?: any, type?: 'SORT' | 'FILTER'): void;
|
69
55
|
navigateFilter(sorting: string): void;
|
70
56
|
filterItemList(): void;
|
71
|
-
|
72
|
-
openSorting(SortingSection: any): void;
|
73
|
-
paginationChange(page: number): void;
|
74
|
-
closeDialog(): void;
|
75
|
-
get currency(): string;
|
76
|
-
get minSize(): number;
|
57
|
+
get getTotalPage(): number;
|
77
58
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductListComponent, never>;
|
78
59
|
static ɵcmp: i0.ɵɵComponentDeclaration<ProductListComponent, "simpo-product-list", 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>;
|
79
60
|
}
|
@@ -2,31 +2,21 @@ 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';
|
7
|
-
import { MessageService } from 'primeng/api';
|
8
5
|
import * as i0 from "@angular/core";
|
9
6
|
export declare class UserBasicInfoComponent implements OnInit {
|
10
7
|
private readonly restService;
|
11
8
|
private readonly router;
|
12
9
|
private readonly dialogRef;
|
13
|
-
private readonly storageService;
|
14
|
-
private readonly messageService;
|
15
10
|
gender: 'MALE' | 'FEMALE' | null;
|
16
11
|
firstName: string;
|
17
12
|
middleName: string;
|
18
13
|
lastName: string;
|
19
|
-
mobile: string;
|
20
14
|
email: string;
|
21
15
|
profilePic: string;
|
22
|
-
|
23
|
-
isEdit: boolean;
|
24
|
-
constructor(restService: RestService, router: Router, dialogRef: MatDialogRef<UserBasicInfoComponent>, storageService: StorageServiceService, messageService: MessageService);
|
16
|
+
constructor(restService: RestService, router: Router, dialogRef: MatDialogRef<UserBasicInfoComponent>);
|
25
17
|
ngOnInit(): void;
|
26
18
|
close(): void;
|
27
19
|
saveProfile(): void;
|
28
|
-
validateName(event: KeyboardEvent): void;
|
29
|
-
get isEmailValid(): boolean;
|
30
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserBasicInfoComponent, never>;
|
31
21
|
static ɵcmp: i0.ɵɵComponentDeclaration<UserBasicInfoComponent, "simpo-user-basic-info", never, {}, {}, never, never, true, never>;
|
32
22
|
}
|
@@ -1,63 +1,37 @@
|
|
1
1
|
import { OnInit } from '@angular/core';
|
2
|
-
import BaseSection from '../../../sections/BaseSection';
|
3
2
|
import { EventsService } from '.././../../services/events.service';
|
4
|
-
import {
|
3
|
+
import { ResponseData, Tabs, UserProfile } from './user-profile.modal';
|
5
4
|
import { OrderItem } from '../../styles/order.modal';
|
6
5
|
import { Router } from '@angular/router';
|
7
6
|
import { RestService } from "../../../services/rest.service";
|
8
|
-
import { StorageServiceService } from '../../../services/storage.service';
|
9
|
-
import { User } from '../../styles/user.modal';
|
10
|
-
import { MatDialog } from '@angular/material/dialog';
|
11
|
-
import { CookieService } from 'ngx-cookie-service';
|
12
|
-
import { MessageService } from 'primeng/api';
|
13
7
|
import * as i0 from "@angular/core";
|
14
|
-
export declare class UserProfileComponent
|
8
|
+
export declare class UserProfileComponent implements OnInit {
|
15
9
|
private readonly router;
|
16
10
|
private readonly _eventService;
|
17
11
|
private readonly restService;
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
private readonly messageService;
|
22
|
-
constructor(router: Router, _eventService: EventsService, restService: RestService, storageService: StorageServiceService, matDialog: MatDialog, cookieService: CookieService, messageService: MessageService);
|
23
|
-
data?: UserProfileModal;
|
12
|
+
constructor(router: Router, _eventService: EventsService, restService: RestService);
|
13
|
+
responseData?: ResponseData;
|
14
|
+
data?: any;
|
24
15
|
index?: number;
|
25
16
|
edit?: boolean;
|
26
17
|
delete?: boolean;
|
27
18
|
isLoading: boolean;
|
28
|
-
|
29
|
-
content?: ProfileContentModal;
|
19
|
+
button: any;
|
30
20
|
selectedSidePanelTab: string | null;
|
31
|
-
userDetails:
|
21
|
+
userDetails: UserProfile | null;
|
32
22
|
addressList: any;
|
33
|
-
orderDetailsData: any;
|
34
23
|
sidePanelList: Tabs[];
|
35
24
|
tabs: Tabs[];
|
36
25
|
orderList: OrderItem[];
|
37
26
|
ngOnInit(): void;
|
38
|
-
getUserOrderDetails(): void;
|
39
|
-
get getProductWidth(): string;
|
40
|
-
getSupportingColor(bgColor: string): string;
|
41
|
-
getUserInfo(): void;
|
42
27
|
goToPanel(panel: any): void;
|
43
28
|
goBack(): void;
|
44
|
-
|
45
|
-
addNewAddress(): void;
|
29
|
+
goToDetails(order: any): void;
|
46
30
|
goToHome(): void;
|
47
|
-
editAddress(index: number): void;
|
48
|
-
deleteAddress(index: number): void;
|
49
|
-
editProfile(): void;
|
50
|
-
logout(): void;
|
51
|
-
private saveProfile;
|
52
31
|
selectTab(tab: Tabs): void;
|
53
32
|
toggleSidepanelTab(tab: Tabs): void;
|
54
|
-
get getUserDetails():
|
33
|
+
get getUserDetails(): UserProfile | null;
|
55
34
|
get isMobile(): boolean;
|
56
|
-
get getUserProfile(): string;
|
57
|
-
get getCardBGColor(): string;
|
58
|
-
private getComplementColor;
|
59
|
-
private convertHEX;
|
60
|
-
get currency(): string;
|
61
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserProfileComponent, never>;
|
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>;
|
36
|
+
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>;
|
63
37
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { UserDetails } from "../../styles/cart.modal";
|
2
|
-
import { ActionModel, AnimationModel, BackgroundModel,
|
2
|
+
import { ActionModel, AnimationModel, BackgroundModel, LayOutModel } from "../../../styles/style.model";
|
3
3
|
import { OrderItem } from "../../styles/order.modal";
|
4
4
|
export interface Tabs {
|
5
5
|
icon: string | null;
|
@@ -22,14 +22,10 @@ export interface ProfileStylesModal {
|
|
22
22
|
elementInRow: number;
|
23
23
|
mobileColumn: number;
|
24
24
|
animation: AnimationModel;
|
25
|
-
border: BorderModel;
|
26
|
-
swap: boolean;
|
27
25
|
}
|
28
26
|
export interface ProfileContentModal {
|
29
27
|
display: Display;
|
30
28
|
button: string;
|
31
|
-
image: Image;
|
32
|
-
inputText: InputTextModel[];
|
33
29
|
}
|
34
30
|
export interface Display {
|
35
31
|
showButton: boolean;
|
@@ -39,6 +35,13 @@ export interface ResponseData {
|
|
39
35
|
tabs: Tabs[];
|
40
36
|
orders: OrderItem[];
|
41
37
|
}
|
38
|
+
export interface UserProfile {
|
39
|
+
userId: string;
|
40
|
+
businessId: string;
|
41
|
+
address: any;
|
42
|
+
gender: string;
|
43
|
+
contact: UserContact;
|
44
|
+
}
|
42
45
|
export interface UserContact {
|
43
46
|
id: string;
|
44
47
|
name: string;
|