simpo-component-library 3.8.20 → 3.8.21
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/authentication-required/authentication-required.component.mjs +6 -3
- package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +44 -5
- package/esm2022/lib/ecommerce/sections/passbook-redemption/passbook-redemption.component.mjs +86 -0
- package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +3 -3
- package/esm2022/lib/services/rest.service.mjs +25 -1
- package/fesm2022/simpo-component-library.mjs +149 -8
- 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 +2 -1
- package/lib/ecommerce/sections/cart/cart.component.d.ts +6 -0
- package/lib/ecommerce/sections/featured-brand/featured-brand.component.d.ts +1 -1
- package/lib/ecommerce/sections/featured-category/featured-category.component.d.ts +1 -1
- package/lib/ecommerce/sections/featured-category/featured-collection.component.d.ts +1 -1
- package/lib/ecommerce/sections/new-collection/new-collection.component.d.ts +1 -1
- package/lib/ecommerce/sections/passbook-redemption/passbook-redemption.component.d.ts +35 -0
- package/lib/sections/banner-carousel/banner-carousel.component.d.ts +1 -1
- package/lib/sections/image-grid-hotspot/image-grid-hotspot.component.d.ts +1 -1
- package/lib/sections/image-grid-section/image-grid-section.component.d.ts +1 -1
- package/lib/services/rest.service.d.ts +5 -0
- package/package.json +1 -1
- package/simpo-component-library-3.8.21.tgz +0 -0
- package/simpo-component-library-3.8.20.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
|
@@ -97,7 +97,7 @@ export declare class AuthenticationRequiredComponent extends BaseSection {
|
|
|
97
97
|
validateNumber(event: KeyboardEvent): void;
|
|
98
98
|
validateOTP(event: KeyboardEvent): void;
|
|
99
99
|
checkStrength(): void;
|
|
100
|
-
getStrengthColor(index: number): "
|
|
100
|
+
getStrengthColor(index: number): "tomato" | "#d3d3d3ba" | "orange" | "yellow" | "lightgreen";
|
|
101
101
|
emailDebounceTimer: any;
|
|
102
102
|
onEmailChange(): void;
|
|
103
103
|
emailCheck: boolean;
|
|
@@ -115,6 +115,7 @@ export declare class AuthenticationRequiredComponent extends BaseSection {
|
|
|
115
115
|
isEmailOrNumberValid(): boolean;
|
|
116
116
|
emailOrNumberDebounceTimer: any;
|
|
117
117
|
onEmailOrNumberChange(): void;
|
|
118
|
+
get currentYear(): number;
|
|
118
119
|
get isMobile(): boolean;
|
|
119
120
|
get stylesLayout(): LayOutModel;
|
|
120
121
|
get accentColor(): string;
|
|
@@ -169,10 +169,16 @@ export declare class CartComponent extends BaseSection implements OnInit, OnDest
|
|
|
169
169
|
viewPendingVideoCart(): void;
|
|
170
170
|
getButtonId(index: number): string;
|
|
171
171
|
getButtonStyle(index: number): import("../../../styles/style.model").ButtonStyleModel | undefined;
|
|
172
|
+
/** "Continue shopping" uses the 2nd button; legacy data with a single button falls back to the first. */
|
|
173
|
+
get continueShoppingIdx(): number;
|
|
174
|
+
/** "Place order" uses the 3rd button; legacy data with fewer buttons falls back to the first. */
|
|
175
|
+
get placeOrderIdx(): number;
|
|
172
176
|
changeQuantity(quantity: any, item: OrderedItems): void;
|
|
173
177
|
showReedemError: boolean;
|
|
174
178
|
vaildAmount: number;
|
|
175
179
|
redeemScheme(scheme: any, action: boolean): void;
|
|
180
|
+
selectPassbookScheme(): void;
|
|
181
|
+
removePassbookRedemption(): void;
|
|
176
182
|
getUrl(): boolean;
|
|
177
183
|
get fontColor(): string;
|
|
178
184
|
get accentBackground(): string;
|
|
@@ -36,7 +36,7 @@ export declare class FeaturedBrandComponent extends BaseSection {
|
|
|
36
36
|
get getDirection(): "ROW" | "COLUMN" | undefined;
|
|
37
37
|
get stylesLayout(): LayOutModel;
|
|
38
38
|
get isMobile(): boolean;
|
|
39
|
-
getJustifyContent():
|
|
39
|
+
getJustifyContent(): import("simpo-component-library").ALIGN | "" | "flex-start";
|
|
40
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedBrandComponent, never>;
|
|
41
41
|
static ɵcmp: i0.ɵɵComponentDeclaration<FeaturedBrandComponent, "simpo-featured-brand", 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>;
|
|
42
42
|
}
|
|
@@ -37,7 +37,7 @@ export declare class FeaturedCategoryComponent extends BaseSection {
|
|
|
37
37
|
get getDirection(): "ROW" | "COLUMN" | undefined;
|
|
38
38
|
get stylesLayout(): LayOutModel;
|
|
39
39
|
get isMobile(): boolean;
|
|
40
|
-
getJustifyContent():
|
|
40
|
+
getJustifyContent(): import("simpo-component-library").ALIGN | "" | "flex-start";
|
|
41
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedCategoryComponent, never>;
|
|
42
42
|
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; }; "customClass": { "alias": "customClass"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
|
|
43
43
|
}
|
|
@@ -32,7 +32,7 @@ export declare class FeaturedCollectionComponent extends BaseSection {
|
|
|
32
32
|
get getDirection(): "ROW" | "COLUMN" | undefined;
|
|
33
33
|
get isMobile(): boolean;
|
|
34
34
|
editSection(): void;
|
|
35
|
-
getJustifyContent():
|
|
35
|
+
getJustifyContent(): import("simpo-component-library").ALIGN | "" | "flex-start";
|
|
36
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedCollectionComponent, never>;
|
|
37
37
|
static ɵcmp: i0.ɵɵComponentDeclaration<FeaturedCollectionComponent, "simpo-featured-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>;
|
|
38
38
|
}
|
|
@@ -33,7 +33,7 @@ export declare class NewCollectionComponent extends BaseSection {
|
|
|
33
33
|
get isMobile(): boolean;
|
|
34
34
|
editSection(): void;
|
|
35
35
|
getColor(color: any): "#000000" | "#ffffff";
|
|
36
|
-
getJustifyContent():
|
|
36
|
+
getJustifyContent(): import("simpo-component-library").ALIGN | "" | "flex-start";
|
|
37
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<NewCollectionComponent, never>;
|
|
38
38
|
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>;
|
|
39
39
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { RestService } from '../../../services/rest.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class PassbookRedemptionComponent implements OnInit {
|
|
6
|
+
dialogRef: MatDialogRef<PassbookRedemptionComponent>;
|
|
7
|
+
data: {
|
|
8
|
+
businessId: string;
|
|
9
|
+
userId: string;
|
|
10
|
+
cartTotal: number;
|
|
11
|
+
};
|
|
12
|
+
private readonly restService;
|
|
13
|
+
step: 'list' | 'otp';
|
|
14
|
+
loading: boolean;
|
|
15
|
+
schemes: any[];
|
|
16
|
+
selectedScheme: any;
|
|
17
|
+
quote: any;
|
|
18
|
+
otp: string;
|
|
19
|
+
error: string;
|
|
20
|
+
constructor(dialogRef: MatDialogRef<PassbookRedemptionComponent>, data: {
|
|
21
|
+
businessId: string;
|
|
22
|
+
userId: string;
|
|
23
|
+
cartTotal: number;
|
|
24
|
+
}, restService: RestService);
|
|
25
|
+
ngOnInit(): void;
|
|
26
|
+
loadEligibleSchemes(): void;
|
|
27
|
+
selectScheme(scheme: any): void;
|
|
28
|
+
get appliedAmount(): number;
|
|
29
|
+
sendOtp(): void;
|
|
30
|
+
goBackToList(): void;
|
|
31
|
+
close(): void;
|
|
32
|
+
confirm(): void;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PassbookRedemptionComponent, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PassbookRedemptionComponent, "simpo-passbook-redemption", never, {}, {}, never, never, true, never>;
|
|
35
|
+
}
|
|
@@ -32,7 +32,7 @@ export declare class BannerCarouselComponent extends BaseSection implements OnIn
|
|
|
32
32
|
get stylesLayout(): LayOutModel;
|
|
33
33
|
get getBlurValue(): "NONE" | "LIGHT" | "MODERATE" | "STRONG" | "VERY_STRONG" | undefined;
|
|
34
34
|
get getBackgroundColor(): BackgroundModel;
|
|
35
|
-
get getBackgroundOpacity(): "
|
|
35
|
+
get getBackgroundOpacity(): "0" | "1" | "0.7" | "0.5" | "0.6" | "0.8";
|
|
36
36
|
opacityValue(value: OverlayValue): "1" | "0.7" | "0.5" | "0.6" | "0.8";
|
|
37
37
|
editSection(): void;
|
|
38
38
|
getScreenSize(): number;
|
|
@@ -23,7 +23,7 @@ export declare class ImageGridHotspotComponent extends BaseSection {
|
|
|
23
23
|
get headingSpace(): SPACING;
|
|
24
24
|
editSection(): void;
|
|
25
25
|
getLength(): number;
|
|
26
|
-
getJustifyContent():
|
|
26
|
+
getJustifyContent(): import("simpo-component-library").ALIGN | "" | "flex-start";
|
|
27
27
|
private get scrollStep();
|
|
28
28
|
scrollRight(): void;
|
|
29
29
|
isOverflowing: boolean;
|
|
@@ -23,7 +23,7 @@ export declare class ImageGridSectionComponent extends BaseSection {
|
|
|
23
23
|
get headingSpace(): SPACING;
|
|
24
24
|
editSection(): void;
|
|
25
25
|
getLength(): number;
|
|
26
|
-
getJustifyContent():
|
|
26
|
+
getJustifyContent(): import("simpo-component-library").ALIGN | "" | "flex-start";
|
|
27
27
|
private get scrollStep();
|
|
28
28
|
scrollRight(): void;
|
|
29
29
|
isOverflowing: boolean;
|
|
@@ -174,6 +174,11 @@ export declare class RestService implements OnDestroy {
|
|
|
174
174
|
getAllTransactions(payload: any): Observable<Object>;
|
|
175
175
|
getSchemeDetails(schemeId: any): Observable<Object>;
|
|
176
176
|
getMetalPrice(storeId: any): Observable<Object>;
|
|
177
|
+
getCheckoutRedemptionEligibleSchemes(businessId: any, userId: any): Observable<Object>;
|
|
178
|
+
getCheckoutRedemptionQuote(passbookId: any): Observable<Object>;
|
|
179
|
+
requestCheckoutRedemptionOtp(passbookId: any): Observable<Object>;
|
|
180
|
+
applyPassbookRedemption(cartId: any, passbookId: any, otp: any): Observable<Object>;
|
|
181
|
+
removePassbookRedemption(cartId: any): Observable<Object>;
|
|
177
182
|
createLead(payload: any): Observable<Object>;
|
|
178
183
|
getAppointmentPaymentStatus(orderId: any): Observable<Object>;
|
|
179
184
|
getOtpForLogin(payload: any): Observable<Object>;
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|