simpo-component-library 1.4.292 → 1.4.295
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/components/hover-elements/hover-elements.component.mjs +4 -5
- package/esm2022/lib/ecommerce/sections/address/address.component.mjs +32 -10
- package/esm2022/lib/ecommerce/sections/authenticate-user/authenticate-user.component.mjs +12 -4
- package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +10 -4
- package/esm2022/lib/ecommerce/sections/checkout/checkout.component.mjs +9 -3
- package/esm2022/lib/ecommerce/sections/featured-category/featured-category.component.mjs +9 -3
- package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +9 -3
- package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +9 -3
- package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +18 -10
- package/esm2022/lib/ecommerce/sections/user-profile/user-profile.component.mjs +9 -3
- package/esm2022/lib/ecommerce/sections/verify-payment/verify-payment.component.mjs +34 -9
- package/esm2022/lib/ecommerce/sections/whislist/whislist.component.mjs +9 -3
- package/esm2022/lib/sections/BaseSection.mjs +1 -1
- package/fesm2022/simpo-component-library.mjs +136 -45
- 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 +11 -4
- package/lib/ecommerce/sections/authenticate-user/authenticate-user.component.d.ts +1 -0
- package/lib/ecommerce/sections/cart/cart.component.d.ts +1 -0
- package/lib/ecommerce/sections/checkout/checkout.component.d.ts +1 -0
- package/lib/ecommerce/sections/featured-category/featured-category.component.d.ts +1 -0
- package/lib/ecommerce/sections/featured-products/featured-products.component.d.ts +1 -0
- package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +1 -0
- package/lib/ecommerce/sections/product-list/product-list.component.d.ts +2 -0
- package/lib/ecommerce/sections/user-profile/user-profile.component.d.ts +1 -0
- package/lib/ecommerce/sections/verify-payment/verify-payment.component.d.ts +10 -3
- package/lib/ecommerce/sections/whislist/whislist.component.d.ts +1 -0
- package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
- package/package.json +1 -1
- package/simpo-component-library-1.4.292.tgz +0 -0
- package/simpo-component-library-1.4.295.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,21 +3,27 @@ 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 { EventsService } from '../../../services/events.service';
|
7
|
+
import BaseSection from '../../../sections/BaseSection';
|
6
8
|
import * as i0 from "@angular/core";
|
7
|
-
export declare class AddressComponent implements OnInit, OnChanges {
|
9
|
+
export declare class AddressComponent extends BaseSection implements OnInit, OnChanges {
|
8
10
|
private readonly ngZone;
|
9
11
|
private readonly restService;
|
10
12
|
private readonly matDialog;
|
11
13
|
private readonly router;
|
12
14
|
private readonly storageService;
|
15
|
+
private readonly _eventService;
|
13
16
|
matData: any;
|
14
17
|
matDialogRef: MatDialogRef<AddressComponent>;
|
15
18
|
responseData: any;
|
16
19
|
data: any;
|
20
|
+
index?: number;
|
21
|
+
edit?: boolean;
|
22
|
+
delete?: boolean;
|
17
23
|
addressList: any;
|
18
24
|
selectedAddressIdx: number;
|
19
25
|
selectedAddress: EventEmitter<number>;
|
20
|
-
constructor(ngZone: NgZone, restService: RestService, matDialog: MatDialog, router: Router, storageService: StorageServiceService, matData: any, matDialogRef: MatDialogRef<AddressComponent>);
|
26
|
+
constructor(ngZone: NgZone, restService: RestService, matDialog: MatDialog, router: Router, storageService: StorageServiceService, _eventService: EventsService, matData: any, matDialogRef: MatDialogRef<AddressComponent>);
|
21
27
|
address: any;
|
22
28
|
isCart: boolean;
|
23
29
|
private editIndex;
|
@@ -49,7 +55,8 @@ export declare class AddressComponent implements OnInit, OnChanges {
|
|
49
55
|
updateAddress(): void;
|
50
56
|
validateMobile(event: KeyboardEvent): void;
|
51
57
|
validateName(event: KeyboardEvent): void;
|
58
|
+
editSection(): void;
|
52
59
|
get isEmailValid(): boolean;
|
53
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AddressComponent, [null, null, null, null, null, { optional: true; }, { optional: true; }]>;
|
54
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AddressComponent, "simpo-address", never, { "responseData": { "alias": "responseData"; "required": false; }; "data": { "alias": "data"; "required": false; }; "isCart": { "alias": "isCart"; "required": false; }; }, { "selectedAddress": "selectedAddress"; }, never, never, true, never>;
|
60
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AddressComponent, [null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
|
61
|
+
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>;
|
55
62
|
}
|
@@ -45,6 +45,7 @@ export declare class CartComponent extends BaseSection implements OnInit {
|
|
45
45
|
addressSelected(index: number): void;
|
46
46
|
isItemOutOfStock(product: OrderedItems): boolean;
|
47
47
|
getKeys(object: Object): string[];
|
48
|
+
editSection(): void;
|
48
49
|
get getAddressList(): import("../../styles/user.modal").AddressDetails[];
|
49
50
|
get isMobile(): boolean;
|
50
51
|
get currency(): string;
|
@@ -18,6 +18,7 @@ export declare class CheckoutComponent extends BaseSection {
|
|
18
18
|
button?: ButtonModel;
|
19
19
|
ngOnInit(): void;
|
20
20
|
placeOrder(): void;
|
21
|
+
editSection(): void;
|
21
22
|
get currency(): string;
|
22
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckoutComponent, never>;
|
23
24
|
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>;
|
@@ -23,6 +23,7 @@ export declare class FeaturedCategoryComponent extends BaseSection {
|
|
23
23
|
getSliceParameters(): number[];
|
24
24
|
redirectToListPage(category: string): void;
|
25
25
|
getAllCategories(): void;
|
26
|
+
editSection(): void;
|
26
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedCategoryComponent, never>;
|
27
28
|
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>;
|
28
29
|
}
|
@@ -55,6 +55,7 @@ export declare class FeaturedProductsComponent extends BaseSection implements On
|
|
55
55
|
get isMobile(): boolean;
|
56
56
|
private getVarientQuantity;
|
57
57
|
private isVarientPresentInWishtlist;
|
58
|
+
editSection(): void;
|
58
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedProductsComponent, never>;
|
59
60
|
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; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, { "changeDetailProduct": "changeDetailProduct"; }, never, never, true, never>;
|
60
61
|
}
|
@@ -63,6 +63,7 @@ export declare class ProductDescComponent extends BaseSection {
|
|
63
63
|
isVarientAvailable(): boolean;
|
64
64
|
private getVarientQuantity;
|
65
65
|
private isVarientPresentInWishtlist;
|
66
|
+
editSection(): void;
|
66
67
|
get isItemOutOfStock(): boolean;
|
67
68
|
get currency(): string;
|
68
69
|
get isItemLowStock(): boolean;
|
@@ -74,6 +74,7 @@ export declare class ProductListComponent extends BaseSection {
|
|
74
74
|
selectVarient(product: Product, varient: ItemVariant): void;
|
75
75
|
private getVarientQuantity;
|
76
76
|
private isVarientPresentInWishtlist;
|
77
|
+
goToHome(): void;
|
77
78
|
categories: BaseModel[];
|
78
79
|
collections: BaseModel[];
|
79
80
|
applyFilter(category?: any, type?: 'SORT' | 'FILTER'): void;
|
@@ -85,6 +86,7 @@ export declare class ProductListComponent extends BaseSection {
|
|
85
86
|
closeDialog(): void;
|
86
87
|
isItemOutOfStock(product: Product): boolean;
|
87
88
|
getItemVarient(product: Product, varientId: string): ItemVariant | null;
|
89
|
+
editSection(): void;
|
88
90
|
get isMobile(): boolean;
|
89
91
|
get currency(): string;
|
90
92
|
get minSize(): number;
|
@@ -63,6 +63,7 @@ export declare class UserProfileComponent extends BaseSection implements OnInit
|
|
63
63
|
private saveProfile;
|
64
64
|
selectTab(tab: Tabs): void;
|
65
65
|
toggleSidepanelTab(tab: Tabs): void;
|
66
|
+
editSection(): void;
|
66
67
|
get getUserDetails(): User | null;
|
67
68
|
get isMobile(): boolean;
|
68
69
|
get userGender(): import("../../styles/user.modal").GENDER | null;
|
@@ -4,24 +4,31 @@ import { Router } from '@angular/router';
|
|
4
4
|
import { StorageServiceService } from '../../../services/storage.service';
|
5
5
|
import { VerifyPaymentContentModel, VerifyPaymentSectionModal, VerifyPaymentStylesModel } from './verify-payment.model';
|
6
6
|
import { MessageService } from 'primeng/api';
|
7
|
+
import { EventsService } from '../../../services/events.service';
|
8
|
+
import BaseSection from '../../../sections/BaseSection';
|
7
9
|
import * as i0 from "@angular/core";
|
8
|
-
export declare class VerifyComponent implements OnInit {
|
10
|
+
export declare class VerifyComponent extends BaseSection implements OnInit {
|
9
11
|
private readonly restService;
|
10
12
|
private readonly router;
|
11
13
|
private readonly storageService;
|
12
14
|
private readonly messageService;
|
15
|
+
private readonly _eventService;
|
13
16
|
data?: VerifyPaymentSectionModal;
|
14
17
|
responseData: any;
|
18
|
+
edit?: boolean;
|
19
|
+
index?: number;
|
20
|
+
delete?: boolean;
|
15
21
|
styles?: VerifyPaymentStylesModel;
|
16
22
|
content?: VerifyPaymentContentModel;
|
17
23
|
private userDetails;
|
18
|
-
constructor(restService: RestService, router: Router, storageService: StorageServiceService, messageService: MessageService);
|
24
|
+
constructor(restService: RestService, router: Router, storageService: StorageServiceService, messageService: MessageService, _eventService: EventsService);
|
19
25
|
loadingText: string;
|
20
26
|
private API_COUNT;
|
21
27
|
private MAX_API_COUNT;
|
22
28
|
ngOnInit(): void;
|
23
29
|
get getImageUrl(): string | undefined;
|
24
30
|
checkPaymentStatus(): void;
|
31
|
+
editSection(): void;
|
25
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<VerifyComponent, never>;
|
26
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<VerifyComponent, "simpo-verify-payment", never, { "data": { "alias": "data"; "required": false; }; "responseData": { "alias": "responseData"; "required": false; }; }, {}, never, never, true, never>;
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VerifyComponent, "simpo-verify-payment", never, { "data": { "alias": "data"; "required": false; }; "responseData": { "alias": "responseData"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "index": { "alias": "index"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
|
27
34
|
}
|
@@ -31,6 +31,7 @@ export declare class WhislistComponent extends BaseSection implements OnInit {
|
|
31
31
|
deleteFromWhislist(product: OrderedItems): void;
|
32
32
|
addToFav(item: OrderedItems, type: 'ADD' | 'SUBSTRACT'): void;
|
33
33
|
getKeys(object: Object): string[];
|
34
|
+
editSection(): void;
|
34
35
|
get currency(): string;
|
35
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<WhislistComponent, never>;
|
36
37
|
static ɵcmp: i0.ɵɵComponentDeclaration<WhislistComponent, "simpo-whislist", 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>;
|
@@ -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
|