simpo-component-library 1.9.0 → 1.9.2
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +5 -2
- package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/order-details/order-details.component.mjs +6 -3
- package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/user-profile/user-profile.component.mjs +3 -2
- package/esm2022/lib/sections/faq-section/faq-section.component.mjs +9 -7
- package/esm2022/lib/services/rest.service.mjs +3 -3
- package/fesm2022/simpo-component-library.mjs +25 -16
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/directive/background-directive.d.ts +1 -1
- package/lib/directive/button-directive.directive.d.ts +1 -1
- package/lib/directive/color.directive.d.ts +1 -1
- package/lib/ecommerce/sections/cart/cart.component.d.ts +5 -2
- package/lib/ecommerce/sections/order-details/order-details.component.d.ts +1 -0
- package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
- package/package.json +1 -1
- package/simpo-component-library-1.9.2.tgz +0 -0
- package/simpo-component-library-1.9.0.tgz +0 -0
@@ -11,7 +11,7 @@ export declare class BackgroundDirective implements OnChanges {
|
|
11
11
|
constructor(el: ElementRef, eventService: EventsService);
|
12
12
|
ngOnDestroy(): void;
|
13
13
|
ngOnChanges(change: SimpleChanges): void;
|
14
|
-
getTextColor(bgColor: string): "#
|
14
|
+
getTextColor(bgColor: string): "#000000" | "#ffffff" | "#ffffff;";
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<BackgroundDirective, never>;
|
16
16
|
static ɵdir: i0.ɵɵDirectiveDeclaration<BackgroundDirective, "[simpoBackground]", never, { "simpoBackground": { "alias": "simpoBackground"; "required": false; }; "scrollValue": { "alias": "scrollValue"; "required": false; }; }, {}, never, never, true, never>;
|
17
17
|
}
|
@@ -15,7 +15,7 @@ export declare class ButtonDirectiveDirective implements OnChanges {
|
|
15
15
|
applyButtonStyleChanges(): void;
|
16
16
|
applyButtonType(style: ButtonStyleModel, color: string): void;
|
17
17
|
applyButtonShape(style: ButtonStyleModel): void;
|
18
|
-
getTextColor(bgColor: string): "#
|
18
|
+
getTextColor(bgColor: string): "#000000" | "#ffffff" | "#ffffff;";
|
19
19
|
buttonStyleSubscription?: Subscription;
|
20
20
|
buttonStyleChangeCheck(): void;
|
21
21
|
changeButtonStyle(id: any, style: ButtonStyleModel, bgColor: string): void;
|
@@ -12,7 +12,7 @@ export declare class ColorDirective implements OnChanges {
|
|
12
12
|
ngOnDestroy(): void;
|
13
13
|
applyColor(): void;
|
14
14
|
bgColorChangeCheck(): void;
|
15
|
-
getTextColor(): "#
|
15
|
+
getTextColor(): "#000000" | "#ffffff" | "#ffffff;";
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColorDirective, never>;
|
17
17
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ColorDirective, "[simpoColor]", never, { "bgColor": { "alias": "simpoColor"; "required": false; }; }, {}, never, never, true, never>;
|
18
18
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { OnInit } from '@angular/core';
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
2
2
|
import { CartSectionModal, CartSectionStylesModel } from './cart.modal';
|
3
3
|
import BaseSection from '../../../sections/BaseSection';
|
4
4
|
import { EventsService } from '.././../../services/events.service';
|
@@ -10,6 +10,7 @@ import { StorageServiceService } from '../../../services/storage.service';
|
|
10
10
|
import { OrderedItems } from '../../styles/OrderedItems.modal';
|
11
11
|
import { MessageService } from 'primeng/api';
|
12
12
|
import { MatBottomSheet } from '@angular/material/bottom-sheet';
|
13
|
+
import { Subscription } from 'rxjs';
|
13
14
|
import * as i0 from "@angular/core";
|
14
15
|
interface Coupon {
|
15
16
|
discountType: string;
|
@@ -22,7 +23,7 @@ interface Coupon {
|
|
22
23
|
validFrom: Date;
|
23
24
|
validTo: Date;
|
24
25
|
}
|
25
|
-
export declare class CartComponent extends BaseSection implements OnInit {
|
26
|
+
export declare class CartComponent extends BaseSection implements OnInit, OnDestroy {
|
26
27
|
private readonly _eventService;
|
27
28
|
private readonly cartService;
|
28
29
|
private readonly router;
|
@@ -49,7 +50,9 @@ export declare class CartComponent extends BaseSection implements OnInit {
|
|
49
50
|
enteredCouponCode: string;
|
50
51
|
couponList: Coupon[];
|
51
52
|
cartInfo: any;
|
53
|
+
loadingSubscription?: Subscription;
|
52
54
|
ngOnInit(): void;
|
55
|
+
ngOnDestroy(): void;
|
53
56
|
updateUserCart(): void;
|
54
57
|
getCouponList(): void;
|
55
58
|
removeCoupon(event: MouseEvent): void;
|
@@ -27,6 +27,7 @@ export declare class OrderDetailsComponent implements OnInit {
|
|
27
27
|
get currency(): string;
|
28
28
|
get canCancelOrder(): boolean;
|
29
29
|
get orderAddress(): string;
|
30
|
+
trackOrder(): void;
|
30
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<OrderDetailsComponent, never>;
|
31
32
|
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>;
|
32
33
|
}
|
@@ -16,7 +16,7 @@ export declare class PricingSectionComponent extends BaseSection {
|
|
16
16
|
style?: PricingSectionStylesModel;
|
17
17
|
constructor(_eventService: EventsService);
|
18
18
|
ngOnInit(): void;
|
19
|
-
getTextColor(): "#
|
19
|
+
getTextColor(): "#000000" | "#ffffff";
|
20
20
|
get headingSpace(): SPACING;
|
21
21
|
editSection(): void;
|
22
22
|
redirectTo(): void;
|
package/package.json
CHANGED
Binary file
|
Binary file
|