simpo-component-library 3.6.124 → 3.6.126
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 +28 -10
- package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +2 -2
- package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/order-details/order-details.component.mjs +29 -11
- package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +17 -6
- package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +4 -4
- package/esm2022/lib/ecommerce/sections/small-product-listing/small-product-listing.component.mjs +27 -4
- package/esm2022/lib/ecommerce/sections/store-list/store-list.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/store-page/store-page.component.mjs +10 -5
- package/esm2022/lib/ecommerce/sections/user-profile/user-profile.component.mjs +2 -2
- package/esm2022/lib/ecommerce/styles/product.modal.mjs +3 -1
- package/esm2022/lib/sections/header-section/header-section.component.mjs +5 -5
- package/esm2022/lib/services/rest.service.mjs +4 -1
- package/fesm2022/simpo-component-library.mjs +137 -66
- 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 +5 -2
- package/lib/ecommerce/sections/new-collection/new-collection.component.d.ts +1 -1
- package/lib/ecommerce/sections/order-details/order-details.component.d.ts +5 -1
- package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +4 -3
- package/lib/ecommerce/sections/small-product-listing/small-product-listing.component.d.ts +1 -0
- package/lib/ecommerce/sections/store-list/store-list.component.d.ts +1 -1
- package/lib/ecommerce/sections/store-page/store-page.component.d.ts +1 -1
- package/lib/ecommerce/styles/product.modal.d.ts +2 -0
- package/lib/sections/banner-grid-section/banner-grid-section.component.d.ts +1 -1
- package/lib/sections/contact-us/contact-us.component.d.ts +1 -1
- package/lib/sections/header-section/header-section.component.d.ts +1 -1
- package/lib/sections/moving-text/moving-text.component.d.ts +1 -1
- package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
- package/lib/services/rest.service.d.ts +1 -0
- package/package.json +1 -1
- package/simpo-component-library-3.6.126.tgz +0 -0
- package/src/lib/styles/global-styles.css +3 -0
- package/simpo-component-library-3.6.124.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): "#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
|
}
|
@@ -16,7 +16,7 @@ export declare class ButtonDirectiveDirective implements OnChanges {
|
|
16
16
|
applyButtonStyleChanges(): void;
|
17
17
|
applyButtonType(style: ButtonStyleModel, backgroundInfo?: BackgroundModel): void;
|
18
18
|
applyButtonShape(style: ButtonStyleModel): void;
|
19
|
-
getTextColor(bgColor: string): "#
|
19
|
+
getTextColor(bgColor: string): "#000000" | "#ffffff" | "#ffffff;";
|
20
20
|
buttonStyleSubscription?: Subscription;
|
21
21
|
buttonStyleChangeCheck(): void;
|
22
22
|
changeButtonStyle(id: any, style: ButtonStyleModel, backgroundInfo: BackgroundModel): 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(): "#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
|
}
|
@@ -7,6 +7,7 @@ import { AddressDetails } from '../../styles/user.modal';
|
|
7
7
|
import { EventsService } from '../../../services/events.service';
|
8
8
|
import BaseSection from '../../../sections/BaseSection';
|
9
9
|
import { MatBottomSheet } from '@angular/material/bottom-sheet';
|
10
|
+
import { MatSnackBar } from '@angular/material/snack-bar';
|
10
11
|
import * as i0 from "@angular/core";
|
11
12
|
export declare class AddressComponent extends BaseSection implements OnInit, OnChanges {
|
12
13
|
private readonly ngZone;
|
@@ -16,6 +17,7 @@ export declare class AddressComponent extends BaseSection implements OnInit, OnC
|
|
16
17
|
private readonly router;
|
17
18
|
private readonly storageService;
|
18
19
|
private readonly _eventService;
|
20
|
+
private snackBar;
|
19
21
|
matData: any;
|
20
22
|
matDialogRef: MatDialogRef<AddressComponent>;
|
21
23
|
responseData: any;
|
@@ -28,7 +30,7 @@ export declare class AddressComponent extends BaseSection implements OnInit, OnC
|
|
28
30
|
selectedAddressIdx: number;
|
29
31
|
styles: any;
|
30
32
|
selectedAddress: EventEmitter<number>;
|
31
|
-
constructor(ngZone: NgZone, restService: RestService, matDialog: MatDialog, matBottomsheet: MatBottomSheet, router: Router, storageService: StorageServiceService, _eventService: EventsService, matData: any, matDialogRef: MatDialogRef<AddressComponent>);
|
33
|
+
constructor(ngZone: NgZone, restService: RestService, matDialog: MatDialog, matBottomsheet: MatBottomSheet, router: Router, storageService: StorageServiceService, _eventService: EventsService, snackBar: MatSnackBar, matData: any, matDialogRef: MatDialogRef<AddressComponent>);
|
32
34
|
address: AddressDetails;
|
33
35
|
isCart: boolean;
|
34
36
|
editIndex: number;
|
@@ -60,9 +62,10 @@ export declare class AddressComponent extends BaseSection implements OnInit, OnC
|
|
60
62
|
updateAddress(): void;
|
61
63
|
validateMobile(event: KeyboardEvent): void;
|
62
64
|
validateName(event: KeyboardEvent): void;
|
65
|
+
validatePincode(): boolean;
|
63
66
|
editSection(): void;
|
64
67
|
get isEmailValid(): boolean;
|
65
68
|
get isMobile(): boolean;
|
66
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AddressComponent, [null, null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
|
69
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AddressComponent, [null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
|
67
70
|
static ɵcmp: i0.ɵɵComponentDeclaration<AddressComponent, "simpo-address", never, { "responseData": { "alias": "responseData"; "required": false; }; "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "isCart": { "alias": "isCart"; "required": false; }; }, { "selectedAddress": "selectedAddress"; }, never, never, true, never>;
|
68
71
|
}
|
@@ -30,7 +30,7 @@ export declare class NewCollectionComponent extends BaseSection {
|
|
30
30
|
get getDirection(): "ROW" | "COLUMN" | undefined;
|
31
31
|
get isMobile(): boolean;
|
32
32
|
editSection(): void;
|
33
|
-
getColor(color: any): "#
|
33
|
+
getColor(color: any): "#000000" | "#ffffff";
|
34
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<NewCollectionComponent, never>;
|
35
35
|
static ɵcmp: i0.ɵɵComponentDeclaration<NewCollectionComponent, "simpo-new-collection", 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; }; "customClass": { "alias": "customClass"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
|
36
36
|
}
|
@@ -2,10 +2,14 @@ import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { EventsService } from '../../../services/events.service';
|
3
3
|
import { ProfileStylesModal } from '../user-profile/user-profile.modal';
|
4
4
|
import { StorageServiceService } from '../../../services/storage.service';
|
5
|
+
import { RestService } from '../../../services/rest.service';
|
6
|
+
import { MessageService } from 'primeng/api';
|
5
7
|
import * as i0 from "@angular/core";
|
6
8
|
export declare class OrderDetailsComponent implements OnInit {
|
7
9
|
private readonly _eventService;
|
8
10
|
private storageService;
|
11
|
+
private restService;
|
12
|
+
private messageService;
|
9
13
|
responseData?: any;
|
10
14
|
data?: any;
|
11
15
|
index?: number;
|
@@ -16,7 +20,7 @@ export declare class OrderDetailsComponent implements OnInit {
|
|
16
20
|
goBackEmitter: EventEmitter<void>;
|
17
21
|
isLoading: boolean;
|
18
22
|
styles?: ProfileStylesModal;
|
19
|
-
constructor(_eventService: EventsService, storageService: StorageServiceService);
|
23
|
+
constructor(_eventService: EventsService, storageService: StorageServiceService, restService: RestService, messageService: MessageService);
|
20
24
|
orderTimiline: any;
|
21
25
|
ngOnInit(): void;
|
22
26
|
private getIcon;
|
@@ -101,11 +101,11 @@ export declare class ProductDescComponent extends BaseSection {
|
|
101
101
|
getDifference(sellingPrice: any, mrp: any): number;
|
102
102
|
getBackgroundColor(type: string): "#FFF4D1" | "#EFE1F4" | "linear-gradient(180deg, #FAFAFA 0%, #FFFFFF 100%)" | "#e2f6ff";
|
103
103
|
getHeaderColor(type: string): "#FDCD33" | "#9D43B8" | "linear-gradient(180deg, #BDBDBD 0%, #E2E2E2 100%)" | "linear-gradient(159deg, rgba(65,105,225,1) 0%, rgba(137,207,240,1) 100%)";
|
104
|
-
getTextColor(color: any): "#
|
104
|
+
getTextColor(color: any): "#000000" | "#ffffff";
|
105
105
|
languages: string[];
|
106
106
|
selectedLang: string;
|
107
|
-
getClass(map: any): "col-
|
108
|
-
onFindInStore(): void;
|
107
|
+
getClass(map: any): "col-6" | "col-4" | "col-3" | "width-max";
|
108
|
+
onFindInStore(id: string): void;
|
109
109
|
onBookAppointment(): void;
|
110
110
|
isDetails: boolean;
|
111
111
|
pincode: any;
|
@@ -129,6 +129,7 @@ export declare class ProductDescComponent extends BaseSection {
|
|
129
129
|
getButtonStyle(index: number): import("../../../styles/style.model").ButtonStyleModel | undefined;
|
130
130
|
opendailogbox(template: TemplateRef<HTMLDivElement>): void;
|
131
131
|
closeDialog(): void;
|
132
|
+
getRatings(noofratings: any): any;
|
132
133
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductDescComponent, never>;
|
133
134
|
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; }; "customClass": { "alias": "customClass"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
|
134
135
|
}
|
@@ -25,6 +25,7 @@ export declare class SmallProductListingComponent implements OnInit {
|
|
25
25
|
getProductImages(product: any): any;
|
26
26
|
imageIndex: number;
|
27
27
|
changeImage(product: any, action: 'PREV' | 'NEXT'): Promise<void>;
|
28
|
+
getRatings(noofratings: any): any;
|
28
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmallProductListingComponent, never>;
|
29
30
|
static ɵcmp: i0.ɵɵComponentDeclaration<SmallProductListingComponent, "simpo-small-product-listing", never, { "product": { "alias": "product"; "required": false; }; "data": { "alias": "data"; "required": false; }; "isScrollable": { "alias": "isScrollable"; "required": false; }; "isCategoryProductList": { "alias": "isCategoryProductList"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "index": { "alias": "index"; "required": false; }; }, {}, never, never, true, never>;
|
30
31
|
}
|
@@ -27,7 +27,7 @@ export declare class StoreListComponent extends BaseSection {
|
|
27
27
|
loader: boolean;
|
28
28
|
error: boolean;
|
29
29
|
getStoreDetails(): void;
|
30
|
-
getTextColor(bgColor: any): "#
|
30
|
+
getTextColor(bgColor: any): "#000000" | "#ffffff" | "#ffffff;";
|
31
31
|
openWhatsapp(phone: string): void;
|
32
32
|
viewStore(storeId: string): void;
|
33
33
|
getTime(storeHours: any, type: string): any;
|
@@ -16,7 +16,7 @@ export declare class StorePageComponent extends BaseSection {
|
|
16
16
|
ngOnInit(): void;
|
17
17
|
storeData: any;
|
18
18
|
getStoreDetails(storeId: string): void;
|
19
|
-
getTextColor(bgColor: any): "#
|
19
|
+
getTextColor(bgColor: any): "#000000" | "#ffffff" | "#ffffff;";
|
20
20
|
getTime(storeHours: any, type: string): any;
|
21
21
|
removeUnderScore(text: string): string;
|
22
22
|
openWhatsapp(phone: string): void;
|
@@ -27,7 +27,7 @@ export declare class BannerGridSectionComponent extends BaseSection implements O
|
|
27
27
|
get spacingLayout(): SpacingModel;
|
28
28
|
get alignmentLayout(): import("simpo-component-library").ALIGN | undefined;
|
29
29
|
get fitLayout(): import("simpo-component-library").FIT | undefined;
|
30
|
-
getTextColor(bgColor: string): "#
|
30
|
+
getTextColor(bgColor: string): "#000000" | "#ffffff" | "#ffffff;";
|
31
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<BannerGridSectionComponent, never>;
|
32
32
|
static ɵcmp: i0.ɵɵComponentDeclaration<BannerGridSectionComponent, "simpo-banner-grid-section", never, { "data": { "alias": "data"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "index": { "alias": "index"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
|
33
33
|
}
|
@@ -28,7 +28,7 @@ export declare class ContactUsComponent extends BaseSection implements OnInit {
|
|
28
28
|
editSection(): void;
|
29
29
|
canShowContactField(field: any): any;
|
30
30
|
getCardStyle(): {};
|
31
|
-
getTextColor(bgColor: string): "#
|
31
|
+
getTextColor(bgColor: string): "#000000" | "#ffffff" | "#ffffff;";
|
32
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<ContactUsComponent, never>;
|
33
33
|
static ɵcmp: i0.ɵɵComponentDeclaration<ContactUsComponent, "simpo-contact-us", never, { "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
|
34
34
|
}
|
@@ -73,7 +73,7 @@ export declare class HeaderSectionComponent implements OnInit {
|
|
73
73
|
get userGender(): import("../../ecommerce/styles/user.modal").GENDER | null;
|
74
74
|
get getNavbarButton(): any[];
|
75
75
|
isScrolled: boolean;
|
76
|
-
setColor(): "#
|
76
|
+
setColor(): "#000000" | "#ffffff";
|
77
77
|
showList: boolean;
|
78
78
|
showCollections: boolean;
|
79
79
|
categoryList: any;
|
@@ -22,7 +22,7 @@ export declare class MovingTextComponent extends BaseSection {
|
|
22
22
|
private transitionToNext;
|
23
23
|
isItemVisible(index: number): boolean;
|
24
24
|
getItemClass(index: number): string;
|
25
|
-
getTextColor(bgColor: string): "#
|
25
|
+
getTextColor(bgColor: string): "#000000" | "#ffffff";
|
26
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<MovingTextComponent, never>;
|
27
27
|
static ɵcmp: i0.ɵɵComponentDeclaration<MovingTextComponent, "simpo-moving-text", never, { "data": { "alias": "data"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "index": { "alias": "index"; "required": false; }; }, {}, never, never, true, never>;
|
28
28
|
}
|
@@ -18,7 +18,7 @@ export declare class PricingSectionComponent extends BaseSection {
|
|
18
18
|
constructor(_eventService: EventsService);
|
19
19
|
ngOnInit(): void;
|
20
20
|
get stylesLayout(): LayOutModel;
|
21
|
-
getTextColor(): "#
|
21
|
+
getTextColor(): "#000000" | "#ffffff";
|
22
22
|
get headingSpace(): SPACING;
|
23
23
|
getButtonId(): string;
|
24
24
|
editSection(): void;
|
@@ -97,6 +97,7 @@ export declare class RestService implements OnDestroy {
|
|
97
97
|
getAllStores(payload: any): Observable<Object>;
|
98
98
|
getStoreById(storeId: string): Observable<Object>;
|
99
99
|
postNewsLetter(email: any): Observable<Object>;
|
100
|
+
addReviewToProduct(payload: any): Observable<Object>;
|
100
101
|
getFieldsToDisplay(fieldsList: any[]): any;
|
101
102
|
static ɵfac: i0.ɵɵFactoryDeclaration<RestService, never>;
|
102
103
|
static ɵprov: i0.ɵɵInjectableDeclaration<RestService>;
|
package/package.json
CHANGED
Binary file
|
Binary file
|