simpo-component-library 3.7.8 → 3.7.9
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/checkout/checkout.component.mjs +45 -11
- package/esm2022/lib/ecommerce/sections/order-details/order-details.component.mjs +33 -4
- package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +35 -3
- package/esm2022/lib/services/rest.service.mjs +10 -1
- package/fesm2022/simpo-component-library.mjs +113 -10
- 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/checkout/checkout.component.d.ts +15 -1
- package/lib/ecommerce/sections/order-details/order-details.component.d.ts +6 -0
- package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +12 -1
- package/lib/ecommerce/sections/schemes/schemes.component.d.ts +1 -1
- package/lib/sections/banner-carousel/banner-carousel.component.d.ts +1 -1
- package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
- package/lib/services/rest.service.d.ts +2 -0
- package/package.json +1 -1
- package/simpo-component-library-3.7.9.tgz +0 -0
- package/simpo-component-library-3.7.8.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;
|
|
@@ -2,9 +2,11 @@ import { CheckoutContentModal, CheckoutModal, CheckoutStylesModal } from './chec
|
|
|
2
2
|
import BaseSection from '../../../sections/BaseSection';
|
|
3
3
|
import { BackgroundModel, BannerStylesModel, ButtonModel } from '../../../styles/style.model';
|
|
4
4
|
import { EventsService } from '.././../../services/events.service';
|
|
5
|
+
import { RestService } from '../../../services/rest.service';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class CheckoutComponent extends BaseSection {
|
|
7
8
|
private _eventService;
|
|
9
|
+
private restService;
|
|
8
10
|
data?: CheckoutModal;
|
|
9
11
|
responseData?: any;
|
|
10
12
|
index?: number;
|
|
@@ -14,15 +16,27 @@ export declare class CheckoutComponent extends BaseSection {
|
|
|
14
16
|
nextComponentColor?: BackgroundModel;
|
|
15
17
|
style?: BannerStylesModel;
|
|
16
18
|
isLoading: boolean;
|
|
17
|
-
constructor(_eventService: EventsService);
|
|
19
|
+
constructor(_eventService: EventsService, restService: RestService);
|
|
18
20
|
editDeliveryAddress: boolean;
|
|
19
21
|
content?: CheckoutContentModal;
|
|
20
22
|
styles?: CheckoutStylesModal;
|
|
21
23
|
button?: ButtonModel;
|
|
24
|
+
liveDeliveryEstimate: {
|
|
25
|
+
charge: number;
|
|
26
|
+
note: string | null;
|
|
27
|
+
eta: string | null;
|
|
28
|
+
} | null;
|
|
22
29
|
ngOnInit(): void;
|
|
30
|
+
fetchLiveDeliveryEstimate(): void;
|
|
23
31
|
placeOrder(): void;
|
|
24
32
|
editSection(): void;
|
|
25
33
|
get currency(): string;
|
|
34
|
+
/** responseData.totalAmount was computed upstream using the cart's stale (pincode-less)
|
|
35
|
+
* deliveryCharges - swap that component out for the live estimate for display, so the total
|
|
36
|
+
* shown here doesn't contradict the Delivery line directly above it. Does not touch the actual
|
|
37
|
+
* order payload/billdetails - display only, per this feature's scoped-out payment-correctness
|
|
38
|
+
* follow-up. */
|
|
39
|
+
get displayTotalAmount(): number;
|
|
26
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckoutComponent, never>;
|
|
27
41
|
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; }; "customClass": { "alias": "customClass"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
|
|
28
42
|
}
|
|
@@ -38,6 +38,12 @@ export declare class OrderDetailsComponent implements OnInit {
|
|
|
38
38
|
get canCancelOrder(): boolean;
|
|
39
39
|
get orderAddress(): string;
|
|
40
40
|
trackOrder(): void;
|
|
41
|
+
get isNdr(): boolean;
|
|
42
|
+
/** No structured NDR-reason field exists on the backend - this reuses the free-text body already
|
|
43
|
+
* recorded on the NDR timeline entry (populated from the Shiprocket webhook), same as every other
|
|
44
|
+
* timeline entry's text. */
|
|
45
|
+
get ndrReasonText(): string | null;
|
|
46
|
+
get ndrActionTaken(): string | null;
|
|
41
47
|
downloadReceipt(): void;
|
|
42
48
|
productReview: number;
|
|
43
49
|
submitReview(item: any): Promise<void>;
|
|
@@ -131,12 +131,23 @@ export declare class ProductDescComponent extends BaseSection {
|
|
|
131
131
|
getHeaderColor(type: string): string;
|
|
132
132
|
formatItemCode(code: any): string | null;
|
|
133
133
|
getTextColor(color: any): "#000000" | "#ffffff";
|
|
134
|
-
getClass(map: any): "col-
|
|
134
|
+
getClass(map: any): "col-6" | "col-4" | "col-3" | "width-max";
|
|
135
135
|
onFindInStore(id: string): void;
|
|
136
136
|
onBookAppointment(): void;
|
|
137
137
|
isDetails: boolean;
|
|
138
138
|
pincode: any;
|
|
139
139
|
storeDetails: any;
|
|
140
|
+
deliveryPincode: any;
|
|
141
|
+
isDeliveryPinCode: boolean;
|
|
142
|
+
checkingDeliveryEstimate: boolean;
|
|
143
|
+
deliveryEstimateChecked: boolean;
|
|
144
|
+
deliveryEstimate: {
|
|
145
|
+
charge: number;
|
|
146
|
+
note: string | null;
|
|
147
|
+
eta: string | null;
|
|
148
|
+
} | null;
|
|
149
|
+
deliveryNotServiceable: boolean;
|
|
150
|
+
checkDeliveryEstimate(): void;
|
|
140
151
|
getStoreDetails(): void;
|
|
141
152
|
brandPromises: any[];
|
|
142
153
|
ecomConfigs: any;
|
|
@@ -21,7 +21,7 @@ export declare class SchemesComponent extends BaseSection {
|
|
|
21
21
|
get stylesLayout(): LayOutModel;
|
|
22
22
|
get spacingLayout(): SpacingModel;
|
|
23
23
|
getParentClass(): "" | "overflow-scroll flex-nowrap";
|
|
24
|
-
getClass(index: number): "col-
|
|
24
|
+
getClass(index: number): "col-6" | "col-12" | "col-6 mb-2" | "col-12 mb-2";
|
|
25
25
|
showSchemeDetails(scheme: any): void;
|
|
26
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<SchemesComponent, never>;
|
|
27
27
|
static ɵcmp: i0.ɵɵComponentDeclaration<SchemesComponent, "simpo-schemes", never, { "data": { "alias": "data"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "index": { "alias": "index"; "required": false; }; }, {}, never, never, true, never>;
|
|
@@ -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 PricingSectionComponent extends BaseSection {
|
|
|
23
23
|
getButtonId(): string;
|
|
24
24
|
editSection(): void;
|
|
25
25
|
redirectTo(data: any): void;
|
|
26
|
-
getClass(): "col-
|
|
26
|
+
getClass(): "col-6" | "col-4" | "col-3" | "col-12";
|
|
27
27
|
getAlignment(): "justify-content-start" | "justify-content-center" | "justify-content-end";
|
|
28
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<PricingSectionComponent, never>;
|
|
29
29
|
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>;
|
|
@@ -111,6 +111,8 @@ export declare class RestService implements OnDestroy {
|
|
|
111
111
|
getEcommerceConfigs(): Observable<Object>;
|
|
112
112
|
postVideoCallDetails(payload: any): Observable<Object>;
|
|
113
113
|
getStoreLocatorDetails(pincode: any): Observable<Object>;
|
|
114
|
+
getDeliveryEstimate(deliveryPincode: string, weightKg: number, cod: boolean, orderGrossValue?: number): Observable<Object>;
|
|
115
|
+
getCustomerOrderDetail(userOrderId: string, userId: string): Observable<Object>;
|
|
114
116
|
saveImagesToBusinessLibrary(mediaRequest: any): Observable<Object>;
|
|
115
117
|
regenerateText(request: any): Observable<Object>;
|
|
116
118
|
getCategoriesHeaderData(): Observable<Object>;
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|