simpo-component-library 3.6.121 → 3.6.122
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/directive/button-directive.directive.mjs +4 -4
- package/esm2022/lib/directive/button-editor.directive.mjs +4 -1
- package/esm2022/lib/ecommerce/sections/order-details/order-details.component.mjs +26 -11
- package/esm2022/lib/ecommerce/sections/store-list/store-list.component.mjs +133 -0
- package/esm2022/lib/ecommerce/sections/store-list/store-list.modal.mjs +2 -0
- package/esm2022/lib/ecommerce/sections/store-page/store-page.component.mjs +109 -0
- package/esm2022/lib/ecommerce/sections/store-page/store-page.model.mjs +2 -0
- package/esm2022/lib/sections/header-section/header-section.component.mjs +34 -9
- package/esm2022/lib/sections/news-letter-component/news-letter-component.component.mjs +106 -0
- package/esm2022/lib/sections/news-letter-component/news-letter.modal.mjs +2 -0
- package/esm2022/lib/services/rest.service.mjs +23 -1
- package/esm2022/public-api.mjs +4 -1
- package/fesm2022/simpo-component-library.mjs +528 -187
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/components/input-fields/input-fields.component.d.ts +1 -1
- package/lib/ecommerce/sections/authentication-required/authentication-required.component.d.ts +1 -1
- package/lib/ecommerce/sections/order-details/order-details.component.d.ts +5 -1
- package/lib/ecommerce/sections/store-list/store-list.component.d.ts +36 -0
- package/lib/ecommerce/sections/store-list/store-list.modal.d.ts +11 -0
- package/lib/ecommerce/sections/store-page/store-page.component.d.ts +26 -0
- package/lib/ecommerce/sections/store-page/store-page.model.d.ts +11 -0
- package/lib/elements/link-editor/link-editor.component.d.ts +1 -1
- package/lib/sections/header-section/header-section.component.d.ts +11 -1
- package/lib/sections/news-letter-component/news-letter-component.component.d.ts +26 -0
- package/lib/sections/news-letter-component/news-letter.modal.d.ts +19 -0
- package/lib/services/rest.service.d.ts +4 -0
- package/package.json +1 -1
- package/public-api.d.ts +3 -0
- package/simpo-component-library-3.6.122.tgz +0 -0
- package/src/lib/styles/global-styles.css +6 -0
- package/simpo-component-library-3.6.121.tgz +0 -0
@@ -13,7 +13,7 @@ export declare class InputFieldsComponent implements OnChanges {
|
|
13
13
|
constructor(elementRef: ElementRef);
|
14
14
|
ngOnChanges(changes: SimpleChanges): void;
|
15
15
|
handleMoneyInput(event: any): void;
|
16
|
-
get getTextColor(): "#
|
16
|
+
get getTextColor(): "#000" | "#FFF";
|
17
17
|
interpolateColor(color1: string, color2: string, factor: number): string;
|
18
18
|
padZero(str: string, length: number): string;
|
19
19
|
generateColorBasedOnNumber(number: number): string;
|
package/lib/ecommerce/sections/authentication-required/authentication-required.component.d.ts
CHANGED
@@ -58,7 +58,7 @@ export declare class AuthenticationRequiredComponent extends BaseSection {
|
|
58
58
|
validateNumber(event: KeyboardEvent): void;
|
59
59
|
validateOTP(event: KeyboardEvent): void;
|
60
60
|
checkStrength(): void;
|
61
|
-
getStrengthColor(index: number): "
|
61
|
+
getStrengthColor(index: number): "tomato" | "#d3d3d3ba" | "orange" | "yellow" | "lightgreen";
|
62
62
|
get isEmailValid(): boolean;
|
63
63
|
get isPasswordValid(): boolean;
|
64
64
|
get isMobile(): boolean;
|
@@ -1,9 +1,11 @@
|
|
1
1
|
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
|
+
import { StorageServiceService } from '../../../services/storage.service';
|
4
5
|
import * as i0 from "@angular/core";
|
5
6
|
export declare class OrderDetailsComponent implements OnInit {
|
6
7
|
private readonly _eventService;
|
8
|
+
private storageService;
|
7
9
|
responseData?: any;
|
8
10
|
data?: any;
|
9
11
|
index?: number;
|
@@ -14,7 +16,7 @@ export declare class OrderDetailsComponent implements OnInit {
|
|
14
16
|
goBackEmitter: EventEmitter<void>;
|
15
17
|
isLoading: boolean;
|
16
18
|
styles?: ProfileStylesModal;
|
17
|
-
constructor(_eventService: EventsService);
|
19
|
+
constructor(_eventService: EventsService, storageService: StorageServiceService);
|
18
20
|
orderTimiline: any;
|
19
21
|
ngOnInit(): void;
|
20
22
|
private getIcon;
|
@@ -28,6 +30,8 @@ export declare class OrderDetailsComponent implements OnInit {
|
|
28
30
|
get canCancelOrder(): boolean;
|
29
31
|
get orderAddress(): string;
|
30
32
|
trackOrder(): void;
|
33
|
+
productReview: number;
|
34
|
+
submitReview(item: any): void;
|
31
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<OrderDetailsComponent, never>;
|
32
36
|
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; }; "customClass": { "alias": "customClass"; "required": false; }; "orderDetailData": { "alias": "orderDetailData"; "required": false; }; }, { "goBackEmitter": "goBackEmitter"; }, never, never, true, never>;
|
33
37
|
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import BaseSection from '../../../sections/BaseSection';
|
2
|
+
import { StoreListModal, StoreListStyleModel } from './store-list.modal';
|
3
|
+
import { RestService } from '../../../services/rest.service';
|
4
|
+
import { Router } from '@angular/router';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
export declare class StoreListComponent extends BaseSection {
|
7
|
+
private restService;
|
8
|
+
private router;
|
9
|
+
data?: StoreListModal;
|
10
|
+
edit?: boolean;
|
11
|
+
customClass?: string;
|
12
|
+
delete?: boolean;
|
13
|
+
index?: number;
|
14
|
+
pageNo: number;
|
15
|
+
isLoading: boolean;
|
16
|
+
cardSize: number;
|
17
|
+
styles?: StoreListStyleModel;
|
18
|
+
constructor(restService: RestService, router: Router);
|
19
|
+
ngOnInit(): void;
|
20
|
+
storesList: any;
|
21
|
+
pincode: any;
|
22
|
+
storePayload: any;
|
23
|
+
getDataWithPincode(): void;
|
24
|
+
showMessage: boolean;
|
25
|
+
totalCount: number;
|
26
|
+
submit: boolean;
|
27
|
+
loader: boolean;
|
28
|
+
error: boolean;
|
29
|
+
getStoreDetails(): void;
|
30
|
+
getTextColor(bgColor: any): "#000000" | "#ffffff" | "#ffffff;";
|
31
|
+
openWhatsapp(phone: string): void;
|
32
|
+
viewStore(storeId: string): void;
|
33
|
+
getTime(storeHours: any, type: string): any;
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StoreListComponent, never>;
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StoreListComponent, "simpo-store-list", never, { "data": { "alias": "data"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "index": { "alias": "index"; "required": false; }; }, {}, never, never, true, never>;
|
36
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { ActionModel, BannerStylesModel } from "../../../styles/style.model";
|
2
|
+
export interface StoreListModal {
|
3
|
+
id: string;
|
4
|
+
sectionType: string;
|
5
|
+
sectionName: string;
|
6
|
+
content: {};
|
7
|
+
styles: StoreListStyleModel;
|
8
|
+
action: ActionModel;
|
9
|
+
}
|
10
|
+
export interface StoreListStyleModel extends BannerStylesModel {
|
11
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import BaseSection from '../../../sections/BaseSection';
|
2
|
+
import { StorePageStyleModel, StorePageModal } from './store-page.model';
|
3
|
+
import { RestService } from '../../../services/rest.service';
|
4
|
+
import { ActivatedRoute } from '@angular/router';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
export declare class StorePageComponent extends BaseSection {
|
7
|
+
private restService;
|
8
|
+
private activeRoute;
|
9
|
+
data?: StorePageModal;
|
10
|
+
edit?: boolean;
|
11
|
+
customClass?: string;
|
12
|
+
delete?: boolean;
|
13
|
+
index?: number;
|
14
|
+
styles?: StorePageStyleModel;
|
15
|
+
constructor(restService: RestService, activeRoute: ActivatedRoute);
|
16
|
+
ngOnInit(): void;
|
17
|
+
storeData: any;
|
18
|
+
getStoreDetails(storeId: string): void;
|
19
|
+
getTextColor(bgColor: any): "#000000" | "#ffffff" | "#ffffff;";
|
20
|
+
getTime(storeHours: any, type: string): any;
|
21
|
+
removeUnderScore(text: string): string;
|
22
|
+
openWhatsapp(phone: string): void;
|
23
|
+
dialNumber(phone: string): void;
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StorePageComponent, never>;
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StorePageComponent, "simpo-store-page", never, { "data": { "alias": "data"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "index": { "alias": "index"; "required": false; }; }, {}, never, never, true, never>;
|
26
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { ActionModel, BannerStylesModel } from "../../../styles/style.model";
|
2
|
+
export interface StorePageModal {
|
3
|
+
id: string;
|
4
|
+
sectionType: string;
|
5
|
+
sectionName: string;
|
6
|
+
content: {};
|
7
|
+
styles: StorePageStyleModel;
|
8
|
+
action: ActionModel;
|
9
|
+
}
|
10
|
+
export interface StorePageStyleModel extends BannerStylesModel {
|
11
|
+
}
|
@@ -28,7 +28,7 @@ export declare class LinkEditorComponent {
|
|
28
28
|
buttonStyles: any;
|
29
29
|
changeButtonStyle(): void;
|
30
30
|
backgroundType: string[];
|
31
|
-
setBorderRadius(): "
|
31
|
+
setBorderRadius(): "99px" | "0px" | "7px";
|
32
32
|
setBorder(): string;
|
33
33
|
setColor(): any;
|
34
34
|
setBackground(): any;
|
@@ -7,6 +7,7 @@ import { MatDialog } from '@angular/material/dialog';
|
|
7
7
|
import { StorageServiceService } from '../../services/storage.service';
|
8
8
|
import { Header_Type, ProductCardTheme } from '../../styles/index';
|
9
9
|
import { MovingTextModal } from '../moving-text/moving-text.modal';
|
10
|
+
import { RestService } from '../../services/rest.service';
|
10
11
|
import * as i0 from "@angular/core";
|
11
12
|
export declare class HeaderSectionComponent implements OnInit {
|
12
13
|
private readonly _eventService;
|
@@ -14,6 +15,7 @@ export declare class HeaderSectionComponent implements OnInit {
|
|
14
15
|
private readonly activatedRoute;
|
15
16
|
private readonly matDialog;
|
16
17
|
private readonly storageService;
|
18
|
+
private restService;
|
17
19
|
data?: HeaderSectionModel;
|
18
20
|
nextComponent: any;
|
19
21
|
index?: number;
|
@@ -29,7 +31,7 @@ export declare class HeaderSectionComponent implements OnInit {
|
|
29
31
|
theme: typeof ProductCardTheme;
|
30
32
|
HeaderStyling: typeof Header_Type;
|
31
33
|
parentHeight: number;
|
32
|
-
constructor(_eventService: EventsService, router: Router, activatedRoute: ActivatedRoute, matDialog: MatDialog, storageService: StorageServiceService);
|
34
|
+
constructor(_eventService: EventsService, router: Router, activatedRoute: ActivatedRoute, matDialog: MatDialog, storageService: StorageServiceService, restService: RestService);
|
33
35
|
searchProducts(): void;
|
34
36
|
goToFav(): void;
|
35
37
|
get stylesLayout(): LayOutModel;
|
@@ -72,6 +74,14 @@ export declare class HeaderSectionComponent implements OnInit {
|
|
72
74
|
get getNavbarButton(): any[];
|
73
75
|
isScrolled: boolean;
|
74
76
|
setColor(): "#000000" | "#ffffff";
|
77
|
+
showList: boolean;
|
78
|
+
showCollections: boolean;
|
79
|
+
categoryList: any;
|
80
|
+
collectionList: any;
|
81
|
+
selectedCategory: any;
|
82
|
+
getCategoriesHeader(): void;
|
83
|
+
Object: ObjectConstructor;
|
84
|
+
applyFilterToList(obj: any, type: any): void;
|
75
85
|
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderSectionComponent, never>;
|
76
86
|
static ɵcmp: i0.ɵɵComponentDeclaration<HeaderSectionComponent, "simpo-header-section", never, { "data": { "alias": "data"; "required": false; }; "nextComponent": { "alias": "nextComponent"; "required": false; }; "index": { "alias": "index"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; }, {}, never, never, true, never>;
|
77
87
|
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import BaseSection from '../BaseSection';
|
2
|
+
import { NewsLetterContentModel, NewsLetterModal, NewsLetterStylesModel } from './news-letter.modal';
|
3
|
+
import { LayOutModel } from '../../styles/style.model';
|
4
|
+
import { RestService } from '../../services/rest.service';
|
5
|
+
import { MatSnackBar } from '@angular/material/snack-bar';
|
6
|
+
import * as i0 from "@angular/core";
|
7
|
+
export declare class NewsLetterComponentComponent extends BaseSection {
|
8
|
+
private restservice;
|
9
|
+
private snackBar;
|
10
|
+
index?: number;
|
11
|
+
edit?: boolean;
|
12
|
+
delete?: boolean;
|
13
|
+
data?: NewsLetterModal;
|
14
|
+
styles?: NewsLetterStylesModel;
|
15
|
+
content?: NewsLetterContentModel;
|
16
|
+
constructor(restservice: RestService, snackBar: MatSnackBar);
|
17
|
+
ngOnInit(): void;
|
18
|
+
email: string;
|
19
|
+
error: boolean;
|
20
|
+
postNewsLetter(): void;
|
21
|
+
get stylesLayout(): LayOutModel;
|
22
|
+
getButtonId(index: number): string;
|
23
|
+
getButtonStyle(index: number): import("../../styles/style.model").ButtonStyleModel | undefined;
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NewsLetterComponentComponent, never>;
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NewsLetterComponentComponent, "simpo-news-letter-component", never, { "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
|
26
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { ActionModel, InputTextModel, Image, BannerStylesModel, DisplaySection } from './../../styles/style.model';
|
2
|
+
export interface NewsLetterModal {
|
3
|
+
id: string;
|
4
|
+
sectionType: string;
|
5
|
+
sectionName: string;
|
6
|
+
content: NewsLetterContentModel;
|
7
|
+
styles: NewsLetterStylesModel;
|
8
|
+
action: ActionModel;
|
9
|
+
}
|
10
|
+
export interface NewsLetterContentModel {
|
11
|
+
inputText: InputTextModel[];
|
12
|
+
image: ImageModel;
|
13
|
+
display: DisplaySection;
|
14
|
+
}
|
15
|
+
export interface ImageModel extends Image {
|
16
|
+
showImage: boolean;
|
17
|
+
}
|
18
|
+
export interface NewsLetterStylesModel extends BannerStylesModel {
|
19
|
+
}
|
@@ -93,6 +93,10 @@ export declare class RestService implements OnDestroy {
|
|
93
93
|
getStoreLocatorDetails(pincode: any): Observable<Object>;
|
94
94
|
saveImagesToBusinessLibrary(mediaRequest: any): Observable<Object>;
|
95
95
|
regenerateText(request: any): Observable<Object>;
|
96
|
+
getCategoriesHeaderData(): Observable<Object>;
|
97
|
+
getAllStores(payload: any): Observable<Object>;
|
98
|
+
getStoreById(storeId: string): Observable<Object>;
|
99
|
+
postNewsLetter(email: any): Observable<Object>;
|
96
100
|
getFieldsToDisplay(fieldsList: any[]): any;
|
97
101
|
static ɵfac: i0.ɵɵFactoryDeclaration<RestService, never>;
|
98
102
|
static ɵprov: i0.ɵɵInjectableDeclaration<RestService>;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
@@ -41,6 +41,7 @@ export * from './lib/sections/header-section/header-section.component';
|
|
41
41
|
export * from './lib/sections/new-testimonials/new-testimonials.component';
|
42
42
|
export * from './lib/sections/new-services/new-services.component';
|
43
43
|
export * from './lib/sections/moving-text/moving-text.component';
|
44
|
+
export * from './lib/sections/news-letter-component/news-letter-component.component';
|
44
45
|
export * from './lib/ecommerce/sections/featured-products/featured-products.component';
|
45
46
|
export * from './lib/ecommerce/sections/featured-category/featured-category.component';
|
46
47
|
export * from './lib/ecommerce/sections/product-desc/product-desc.component';
|
@@ -58,6 +59,8 @@ export * from './lib/ecommerce/sections/featured-category/featured-collection.co
|
|
58
59
|
export * from './lib/ecommerce/sections/customer-review/customer-review.component';
|
59
60
|
export * from './lib/ecommerce/sections/authentication-required/authentication-required.component';
|
60
61
|
export * from './lib/ecommerce/sections/new-collection/new-collection.component';
|
62
|
+
export * from './lib/ecommerce/sections/store-list/store-list.component';
|
63
|
+
export * from './lib/ecommerce/sections/store-page/store-page.component';
|
61
64
|
export * from './lib/services/events.service';
|
62
65
|
export * from './lib/services/endUser.service';
|
63
66
|
export * from './lib/services/sanitizeHtml';
|
Binary file
|
Binary file
|