simpo-component-library 3.7.8 → 3.8.0
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/cart/cart.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/checkout/checkout.component.mjs +55 -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 +33 -3
- package/esm2022/lib/services/rest.service.mjs +10 -1
- package/fesm2022/simpo-component-library.mjs +123 -12
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/ecommerce/sections/checkout/checkout.component.d.ts +19 -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 +10 -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.8.0.tgz +0 -0
- package/simpo-component-library-3.7.8.tgz +0 -0
|
@@ -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,31 @@ 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
|
+
/** Runs once at init (in case a saved address with a pincode was already passed in), and again
|
|
31
|
+
* from the pincode input's (ngModelChange) - at init time there's usually no pincode yet, since
|
|
32
|
+
* the shopper hasn't typed their address into this page's own form. */
|
|
33
|
+
onDeliveryPincodeChange(): void;
|
|
34
|
+
fetchLiveDeliveryEstimate(): void;
|
|
23
35
|
placeOrder(): void;
|
|
24
36
|
editSection(): void;
|
|
25
37
|
get currency(): string;
|
|
38
|
+
/** responseData.totalAmount was computed upstream using the cart's stale (pincode-less)
|
|
39
|
+
* deliveryCharges - swap that component out for the live estimate for display, so the total
|
|
40
|
+
* shown here doesn't contradict the Delivery line directly above it. Does not touch the actual
|
|
41
|
+
* order payload/billdetails - display only, per this feature's scoped-out payment-correctness
|
|
42
|
+
* follow-up. */
|
|
43
|
+
get displayTotalAmount(): number;
|
|
26
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckoutComponent, never>;
|
|
27
45
|
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
46
|
}
|
|
@@ -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,21 @@ 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
|
+
checkingDeliveryEstimate: boolean;
|
|
141
|
+
deliveryEstimateChecked: boolean;
|
|
142
|
+
deliveryEstimate: {
|
|
143
|
+
charge: number;
|
|
144
|
+
note: string | null;
|
|
145
|
+
eta: string | null;
|
|
146
|
+
} | null;
|
|
147
|
+
deliveryNotServiceable: boolean;
|
|
148
|
+
checkDeliveryEstimate(): void;
|
|
140
149
|
getStoreDetails(): void;
|
|
141
150
|
brandPromises: any[];
|
|
142
151
|
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
|