simpo-component-library 3.6.261 → 3.6.263
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/merge-header.directive.mjs +3 -7
- package/esm2022/lib/ecommerce/sections/authentication-required/authentication-required.component.mjs +11 -1
- package/esm2022/lib/ecommerce/sections/returns-calculator/returns-calculator.component.mjs +178 -19
- package/esm2022/lib/ecommerce/sections/scheme-details/scheme-details.component.mjs +125 -11
- package/esm2022/lib/ecommerce/sections/user-profile/user-profile.component.mjs +49 -18
- package/esm2022/lib/ecommerce/sections/verify-payment/verify-payment.component.mjs +43 -2
- package/esm2022/lib/sections/banner-section/banner-section.component.mjs +3 -3
- package/esm2022/lib/sections/header-section/header-section.component.mjs +15 -4
- package/esm2022/lib/sections/logo-showcase/logo-showcase.component.mjs +3 -3
- package/esm2022/lib/services/rest.service.mjs +58 -6
- package/esm2022/lib/services/storage.service.mjs +8 -1
- package/fesm2022/simpo-component-library.mjs +468 -58
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/ecommerce/sections/authentication-required/authentication-required.component.d.ts +1 -1
- package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +1 -1
- package/lib/ecommerce/sections/returns-calculator/returns-calculator.component.d.ts +31 -3
- package/lib/ecommerce/sections/scheme-details/scheme-details.component.d.ts +21 -2
- package/lib/ecommerce/sections/user-profile/user-profile.component.d.ts +7 -1
- package/lib/ecommerce/sections/verify-payment/verify-payment.component.d.ts +3 -0
- package/lib/elements/link-editor/link-editor.component.d.ts +1 -1
- package/lib/elements/pricing-s1/pricing-s1.component.d.ts +1 -1
- package/lib/sections/header-section/header-section.component.d.ts +3 -0
- package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
- package/lib/services/rest.service.d.ts +14 -2
- package/lib/services/storage.service.d.ts +2 -0
- package/package.json +1 -1
- package/simpo-component-library-3.6.263.tgz +0 -0
- package/simpo-component-library-3.6.261.tgz +0 -0
package/lib/ecommerce/sections/authentication-required/authentication-required.component.d.ts
CHANGED
@@ -63,7 +63,7 @@ export declare class AuthenticationRequiredComponent extends BaseSection {
|
|
63
63
|
validateNumber(event: KeyboardEvent): void;
|
64
64
|
validateOTP(event: KeyboardEvent): void;
|
65
65
|
checkStrength(): void;
|
66
|
-
getStrengthColor(index: number): "
|
66
|
+
getStrengthColor(index: number): "tomato" | "#d3d3d3ba" | "orange" | "yellow" | "lightgreen";
|
67
67
|
emailDebounceTimer: any;
|
68
68
|
onEmailChange(): void;
|
69
69
|
emailCheck: boolean;
|
@@ -112,7 +112,7 @@ export declare class ProductDescComponent extends BaseSection {
|
|
112
112
|
getTextColor(color: any): "#000000" | "#ffffff";
|
113
113
|
languages: string[];
|
114
114
|
selectedLang: string;
|
115
|
-
getClass(map: any): "col-
|
115
|
+
getClass(map: any): "col-6" | "col-4" | "col-3" | "width-max";
|
116
116
|
onFindInStore(id: string): void;
|
117
117
|
onBookAppointment(): void;
|
118
118
|
isDetails: boolean;
|
@@ -1,10 +1,20 @@
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
1
2
|
import BaseSection from '../../../sections/BaseSection';
|
2
3
|
import { ReturnsCalculatorModel, ReturnsCalculatorStyleModel } from './returns-calculator.model';
|
3
4
|
import { LayOutModel } from '../../../styles/style.model';
|
4
5
|
import { EventsService } from '.././../../services/events.service';
|
6
|
+
import { RestService } from '../../../services/rest.service';
|
7
|
+
import { StorageServiceService } from '../../../services/storage.service';
|
8
|
+
import { MatDialog } from '@angular/material/dialog';
|
9
|
+
import { Router } from '@angular/router';
|
5
10
|
import * as i0 from "@angular/core";
|
6
11
|
export declare class ReturnsCalculatorComponent extends BaseSection {
|
7
12
|
private readonly _eventService;
|
13
|
+
private restService;
|
14
|
+
private matDialog;
|
15
|
+
private storageService;
|
16
|
+
private readonly router;
|
17
|
+
showChargesTemplate: TemplateRef<HTMLDivElement>;
|
8
18
|
data?: ReturnsCalculatorModel;
|
9
19
|
edit?: boolean;
|
10
20
|
customClass?: string;
|
@@ -15,10 +25,19 @@ export declare class ReturnsCalculatorComponent extends BaseSection {
|
|
15
25
|
monthlyAmount: number;
|
16
26
|
maxAmount: number;
|
17
27
|
minAmount: number;
|
18
|
-
constructor(_eventService: EventsService);
|
28
|
+
constructor(_eventService: EventsService, restService: RestService, matDialog: MatDialog, storageService: StorageServiceService, router: Router);
|
19
29
|
ngOnInit(): void;
|
20
|
-
|
30
|
+
maturityCount: number;
|
31
|
+
enrolledScheme: any;
|
32
|
+
selectedStore: any;
|
33
|
+
selectedStaff: any;
|
34
|
+
stores: any[];
|
35
|
+
staffMembers: any[];
|
36
|
+
onSchemeChange(scheme: any): void;
|
37
|
+
benefitAmount: number;
|
21
38
|
onAmountChange(): void;
|
39
|
+
getStaffList(): void;
|
40
|
+
setMonthlyAmount(amount: number): void;
|
22
41
|
get individualContribution(): number;
|
23
42
|
get orraBonus(): number;
|
24
43
|
get totalRedemptionValue(): number;
|
@@ -28,7 +47,16 @@ export declare class ReturnsCalculatorComponent extends BaseSection {
|
|
28
47
|
getButtonId(index: number): string;
|
29
48
|
getButtonStyle(index: number): import("../../../styles/style.model").ButtonStyleModel | undefined;
|
30
49
|
getButtonData(index: number): import("../../../styles/style.model").Button | undefined;
|
31
|
-
redirectTo(
|
50
|
+
redirectTo(scheme: any): void;
|
51
|
+
closeDialog(): void;
|
52
|
+
storeCharges: any;
|
53
|
+
enrollButtonLoader: boolean;
|
54
|
+
enrollScheme(scheme: any): void;
|
55
|
+
continuePayment(payload: any): void;
|
56
|
+
allSchemes: any[];
|
57
|
+
getEnrolledSchemes(): void;
|
58
|
+
installmentOptions: number[];
|
59
|
+
openCashfreeSdk(sessionId: string): void;
|
32
60
|
static ɵfac: i0.ɵɵFactoryDeclaration<ReturnsCalculatorComponent, never>;
|
33
61
|
static ɵcmp: i0.ɵɵComponentDeclaration<ReturnsCalculatorComponent, "simpo-returns-calculator", 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>;
|
34
62
|
}
|
@@ -1,15 +1,34 @@
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
1
|
+
import { EventEmitter, OnInit, TemplateRef } from '@angular/core';
|
2
|
+
import { StorageServiceService } from '.././../../services/storage.service';
|
3
|
+
import { RestService } from '.././../../services/rest.service';
|
4
|
+
import { MatDialog } from '@angular/material/dialog';
|
5
|
+
import { EventsService } from '.././../../services/events.service';
|
2
6
|
import * as i0 from "@angular/core";
|
3
7
|
export declare class SchemeDetailsComponent implements OnInit {
|
8
|
+
private storageService;
|
9
|
+
private restService;
|
10
|
+
private matDialog;
|
11
|
+
private readonly _eventService;
|
4
12
|
schemeDetails: any;
|
5
13
|
gotoSchemeOverview: EventEmitter<void>;
|
6
|
-
|
14
|
+
showChargesTemplate: TemplateRef<HTMLDivElement>;
|
15
|
+
slabListTemplate: TemplateRef<HTMLDivElement>;
|
16
|
+
constructor(storageService: StorageServiceService, restService: RestService, matDialog: MatDialog, _eventService: EventsService);
|
7
17
|
ngOnInit(): void;
|
8
18
|
screenWidth: any;
|
9
19
|
getScreenSize(event?: any): void;
|
10
20
|
paymentData: any[];
|
11
21
|
getPaymentScheme(): void;
|
12
22
|
getDueDate(paymentDate: string | Date): number | null;
|
23
|
+
storeCharges: any;
|
24
|
+
closeDialog(): void;
|
25
|
+
payDuePayment(passBook: any): void;
|
26
|
+
continuePayment(payload: any): void;
|
27
|
+
openCashfreeSdk(sessionId: string): void;
|
28
|
+
showBenefitSlab(): void;
|
29
|
+
confirmRequest(): void;
|
30
|
+
slabDetails: any[];
|
31
|
+
getvalidSlabList(): void;
|
13
32
|
goBack(): void;
|
14
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<SchemeDetailsComponent, never>;
|
15
34
|
static ɵcmp: i0.ɵɵComponentDeclaration<SchemeDetailsComponent, "simpo-scheme-details", never, { "schemeDetails": { "alias": "schemeDetails"; "required": false; }; }, { "gotoSchemeOverview": "gotoSchemeOverview"; }, never, never, true, never>;
|
@@ -39,17 +39,22 @@ export declare class UserProfileComponent extends BaseSection implements OnInit
|
|
39
39
|
addressList: any;
|
40
40
|
orderDetailsData: any;
|
41
41
|
schemeDetails: any;
|
42
|
+
storeListing: any[];
|
42
43
|
sidePanelList: Tabs[];
|
43
44
|
tabs: Tabs[];
|
44
45
|
orderList: OrderedItems[];
|
45
46
|
wishlistData: OrderedItems[];
|
47
|
+
storeId: any;
|
46
48
|
ngOnInit(): void;
|
49
|
+
checkPassbookApp(): void;
|
50
|
+
getAllStores(): void;
|
47
51
|
ecomConfigs: any;
|
48
52
|
getEcommerceConfigs(): void;
|
49
53
|
getUserOrderDetails(): void;
|
50
|
-
|
54
|
+
totalSavings: number;
|
51
55
|
userEnrollments: any[];
|
52
56
|
paymentData: any[];
|
57
|
+
totalSchemes: any[];
|
53
58
|
getAllSchemes(): void;
|
54
59
|
getUserWislistDetails(): void;
|
55
60
|
deleteFromWhislist(product: OrderedItems): void;
|
@@ -83,6 +88,7 @@ export declare class UserProfileComponent extends BaseSection implements OnInit
|
|
83
88
|
private convertHEX;
|
84
89
|
get currency(): string;
|
85
90
|
getOrderedItems(order: any): any;
|
91
|
+
changeStore(ev: any): void;
|
86
92
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserProfileComponent, never>;
|
87
93
|
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; }; "customClass": { "alias": "customClass"; "required": false; }; }, {}, never, never, true, never>;
|
88
94
|
}
|
@@ -26,10 +26,13 @@ export declare class VerifyComponent extends BaseSection implements OnInit {
|
|
26
26
|
loadingText: string;
|
27
27
|
private API_COUNT;
|
28
28
|
private MAX_API_COUNT;
|
29
|
+
private PASSBOOK_API_COUNT;
|
30
|
+
private MAX_PASSBOOK_API_COUNT;
|
29
31
|
ngOnInit(): void;
|
30
32
|
get getImageUrl(): string | undefined;
|
31
33
|
get isMobile(): boolean;
|
32
34
|
checkPaymentStatus(): void;
|
35
|
+
checkPassbookPaymentStatus(): void;
|
33
36
|
editSection(): void;
|
34
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<VerifyComponent, never>;
|
35
38
|
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; }; "customClass": { "alias": "customClass"; "required": false; }; }, {}, never, never, true, never>;
|
@@ -29,7 +29,7 @@ export declare class LinkEditorComponent {
|
|
29
29
|
changeButtonStyle(): void;
|
30
30
|
getContrastTextColor(backgroundHex: any): void;
|
31
31
|
backgroundType: string[];
|
32
|
-
setBorderRadius(): "0px" | "
|
32
|
+
setBorderRadius(): "0px" | "7px" | "99px";
|
33
33
|
setBorder(): string;
|
34
34
|
setColor(): any;
|
35
35
|
setBackground(): any;
|
@@ -15,7 +15,7 @@ export declare class PricingS1Component extends BaseSection {
|
|
15
15
|
editSection(): void;
|
16
16
|
getButtonId(): string;
|
17
17
|
redirectTo(): void;
|
18
|
-
getClass(): "col-4" | "col-
|
18
|
+
getClass(): "col-4" | "col-3" | "col-12" | "col-5";
|
19
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<PricingS1Component, never>;
|
20
20
|
static ɵcmp: i0.ɵɵComponentDeclaration<PricingS1Component, "simpo-pricing-s1", never, { "data": { "alias": "data"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; }, {}, never, never, true, never>;
|
21
21
|
}
|
@@ -51,6 +51,8 @@ export declare class HeaderSectionComponent implements OnInit {
|
|
51
51
|
differ: any;
|
52
52
|
ngOnInit(): void;
|
53
53
|
ngAfterViewInit(): void;
|
54
|
+
passbookAppStatus: boolean;
|
55
|
+
checkPassbookApp(): void;
|
54
56
|
showSearchBarMobile: boolean;
|
55
57
|
isNavbarOpen: boolean;
|
56
58
|
screenWidth: number;
|
@@ -105,6 +107,7 @@ export declare class HeaderSectionComponent implements OnInit {
|
|
105
107
|
getRGBA(bgColor: any, opacity: number): any;
|
106
108
|
showCategoryMobileHeader(): boolean;
|
107
109
|
byMetalAndStone: any;
|
110
|
+
navigateLogin(): void;
|
108
111
|
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderSectionComponent, never>;
|
109
112
|
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>;
|
110
113
|
}
|
@@ -23,7 +23,7 @@ export declare class PricingSectionComponent extends BaseSection {
|
|
23
23
|
getButtonId(): string;
|
24
24
|
editSection(): void;
|
25
25
|
redirectTo(): void;
|
26
|
-
getClass(): "col-
|
26
|
+
getClass(): "col-6" | "col-4" | "col-3" | "col-12";
|
27
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<PricingSectionComponent, never>;
|
28
28
|
static ɵcmp: i0.ɵɵComponentDeclaration<PricingSectionComponent, "simpo-pricing-section", never, { "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
|
29
29
|
}
|
@@ -4,24 +4,28 @@ import { Observable } from "rxjs";
|
|
4
4
|
import { Review } from "../ecommerce/styles/review.modal";
|
5
5
|
import { DeviceInfo } from "../ecommerce/styles/user.modal";
|
6
6
|
import { checkItemAlreadyAdded, syncItemToServerDBRequest } from "../ecommerce/styles/product.modal";
|
7
|
+
import { CookieService } from "ngx-cookie-service";
|
7
8
|
import * as i0 from "@angular/core";
|
8
9
|
export declare class RestService implements OnDestroy {
|
9
10
|
private readonly http;
|
10
11
|
private BASE_URL;
|
11
12
|
private ECOMMERCE_URL;
|
12
13
|
private CMIS_URL;
|
14
|
+
private readonly cookieService;
|
13
15
|
private environmentTypeSubscriber;
|
14
16
|
businessDetails: any;
|
15
17
|
subIndustryName: any;
|
16
18
|
isJewellery: boolean;
|
17
|
-
constructor(http: HttpClient, BASE_URL: string, ECOMMERCE_URL: string, CMIS_URL: string);
|
19
|
+
constructor(http: HttpClient, BASE_URL: string, ECOMMERCE_URL: string, CMIS_URL: string, cookieService: CookieService);
|
18
20
|
orraBaseUrl: string;
|
21
|
+
passBookUrl: string;
|
19
22
|
getBusinessDetails(): void;
|
20
23
|
ngOnDestroy(): void;
|
21
24
|
getFeaturedProduct(collectionId: string | undefined | null): Observable<any>;
|
22
25
|
getCategoriesByCollectionId(collectionId: string): Observable<any>;
|
26
|
+
getPassbookOrderStatus(orderId: any): Observable<Object>;
|
23
27
|
getProductBySelectedCategory(categoryId: string): Observable<Object>;
|
24
|
-
getAllSchemes(
|
28
|
+
getAllSchemes(userId?: any, storeId?: any): any;
|
25
29
|
getAllRedemptionSchemes(): Observable<Object>;
|
26
30
|
getProductDetails(productId?: string | null): Observable<any>;
|
27
31
|
getCollectionByIds(collectionIds: string[]): Observable<any>;
|
@@ -104,6 +108,14 @@ export declare class RestService implements OnDestroy {
|
|
104
108
|
redeemScheme(scheme: string, cartId: any, action: boolean): Observable<Object>;
|
105
109
|
getReviewsByProductId(productId: string, pageNumber: number): Observable<Object>;
|
106
110
|
getFieldsToDisplay(fieldsList: any[]): any;
|
111
|
+
generateToken(bId: any): Observable<Object>;
|
112
|
+
getAllEnrolledSchemes(payload: any): Observable<Object>;
|
113
|
+
enrollScheme(payload: any, checkCharges: boolean): Observable<Object>;
|
114
|
+
getBenefitSlab(passbookId?: any): Observable<Object>;
|
115
|
+
getAllStaffList(): Observable<Object>;
|
116
|
+
requestRedeemption(passbookId: any): Observable<Object>;
|
117
|
+
PassbookAppStatus(bId: any): Observable<Object>;
|
118
|
+
getToken(): void;
|
107
119
|
static ɵfac: i0.ɵɵFactoryDeclaration<RestService, never>;
|
108
120
|
static ɵprov: i0.ɵɵInjectableDeclaration<RestService>;
|
109
121
|
}
|
@@ -25,6 +25,8 @@ export declare class StorageServiceService {
|
|
25
25
|
userCollectionRef: IDBObjectStore | null;
|
26
26
|
trialCartCollectionRef: IDBObjectStore | null;
|
27
27
|
createDataBase(): Promise<void>;
|
28
|
+
setToken(token: any): void;
|
29
|
+
getToken(): void;
|
28
30
|
updateAllData(): void;
|
29
31
|
mergeAllItems(unSyncedItem: any[], syncedItem: any[]): any[];
|
30
32
|
getUserCart(): Promise<IDBRequest<OrderedItems[]>>;
|
package/package.json
CHANGED
Binary file
|
Binary file
|