simpo-component-library 1.5.7 → 1.5.9
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/lib/ecommerce/sections/address/address.component.mjs +7 -4
- package/esm2022/lib/ecommerce/sections/authenticate-user/authenticate-user.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +21 -3
- package/esm2022/lib/ecommerce/sections/featured-category/featured-category.component.mjs +2 -2
- package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +51 -12
- package/esm2022/lib/ecommerce/sections/product-desc/product-desc.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/user-profile/user-profile.component.mjs +4 -6
- package/esm2022/lib/ecommerce/styles/review.modal.mjs +2 -0
- package/esm2022/lib/ecommerce/styles/user.modal.mjs +1 -1
- package/esm2022/lib/sections/navbar-section/navbar-section.component.mjs +6 -3
- package/esm2022/lib/services/rest.service.mjs +10 -7
- package/fesm2022/simpo-component-library.mjs +110 -48
- 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/product-desc/product-desc.component.d.ts +6 -1
- package/lib/ecommerce/sections/product-desc/product-desc.modal.d.ts +2 -0
- package/lib/ecommerce/styles/review.modal.d.ts +8 -0
- package/lib/ecommerce/styles/user.modal.d.ts +1 -1
- package/lib/sections/navbar-section/navbar-section.component.d.ts +1 -0
- 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-1.5.8.tgz +0 -0
- package/simpo-component-library-1.5.9.tgz +0 -0
- package/simpo-component-library-1.5.7.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
|
}
|
@@ -34,6 +34,7 @@ export declare class ProductDescComponent extends BaseSection {
|
|
34
34
|
varients: Map<string, string[]>;
|
35
35
|
selectedVarient: Map<string, string>;
|
36
36
|
relatedProductData: Product[];
|
37
|
+
productReview: number;
|
37
38
|
constructor(platformId: Object, _eventService: EventsService, router: Router, activatedRoute: ActivatedRoute, restService: RestService, cartService: CartService, storageService: StorageServiceService, messageService: MessageService, metaTagService: Meta, titleService: Title, bottomSheet: MatBottomSheet);
|
38
39
|
buttonId?: string;
|
39
40
|
button?: ButtonModel;
|
@@ -43,6 +44,7 @@ export declare class ProductDescComponent extends BaseSection {
|
|
43
44
|
private USER_WISHLIST;
|
44
45
|
itemImages: ItemImage[];
|
45
46
|
ngOnInit(): void;
|
47
|
+
varientLoading: boolean;
|
46
48
|
selectVarient(key: string, value: string): void;
|
47
49
|
getItemVarient(): ItemVariant | null;
|
48
50
|
routeToHome(): void;
|
@@ -60,7 +62,10 @@ export declare class ProductDescComponent extends BaseSection {
|
|
60
62
|
getProductByCollection(): void;
|
61
63
|
changeProduct(product: Product): void;
|
62
64
|
getKeyByIdx(property: any, index: number): string;
|
63
|
-
isVarientAvailable(): boolean;
|
65
|
+
isVarientAvailable(varient: any): boolean;
|
66
|
+
reviewTitle: string;
|
67
|
+
reviewDescription: string;
|
68
|
+
addProductReview(): void;
|
64
69
|
private getVarientQuantity;
|
65
70
|
private isVarientPresentInWishtlist;
|
66
71
|
editSection(): void;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { FooterSocialLinkModel } from "../../../sections/footer-section/footer-section.modal";
|
1
2
|
import { AnimationModel, BackgroundModel, InputTextModel, LayOutModel } from "../../../styles/style.model";
|
2
3
|
import { ActionModel } from '../../../styles/style.model';
|
3
4
|
export interface ProductDescModal {
|
@@ -17,5 +18,6 @@ export interface ProductDescStylesModal {
|
|
17
18
|
}
|
18
19
|
export interface ProductDescContentModal {
|
19
20
|
button: string;
|
21
|
+
socialLinks: FooterSocialLinkModel;
|
20
22
|
inputText: InputTextModel[];
|
21
23
|
}
|
@@ -53,6 +53,7 @@ export declare class NavbarSectionComponent implements OnInit {
|
|
53
53
|
redirectTo(content: any): void;
|
54
54
|
get isComponentMerged(): any;
|
55
55
|
editSection(): void;
|
56
|
+
get canShowMobileFooter(): boolean;
|
56
57
|
get showMobileHomeIcon(): boolean;
|
57
58
|
get getCartItemsCount(): number;
|
58
59
|
getKeys(object: any): string[];
|
@@ -15,7 +15,7 @@ export declare class PricingSectionComponent extends BaseSection {
|
|
15
15
|
style?: PricingSectionStylesModel;
|
16
16
|
constructor(_eventService: EventsService);
|
17
17
|
ngOnInit(): void;
|
18
|
-
getTextColor(): "#
|
18
|
+
getTextColor(): "#000000" | "#ffffff";
|
19
19
|
get headingSpace(): SPACING;
|
20
20
|
editSection(): void;
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<PricingSectionComponent, never>;
|
@@ -2,6 +2,7 @@ import { HttpClient } from "@angular/common/http";
|
|
2
2
|
import { OnDestroy } from "@angular/core";
|
3
3
|
import { Observable } from "rxjs";
|
4
4
|
import { EventsService } from "../../public-api";
|
5
|
+
import { Review } from "../ecommerce/styles/review.modal";
|
5
6
|
import * as i0 from "@angular/core";
|
6
7
|
export declare class RestService implements OnDestroy {
|
7
8
|
private readonly http;
|
@@ -26,6 +27,7 @@ export declare class RestService implements OnDestroy {
|
|
26
27
|
count: any;
|
27
28
|
data: any;
|
28
29
|
}>;
|
30
|
+
addReview(payload: Review): Observable<Object>;
|
29
31
|
generateOTP(mobile: string, countryCode: string): Observable<Object>;
|
30
32
|
verifyOTP(mobile: string, otp: string): Observable<Object>;
|
31
33
|
resendOTP(mobile: string, countryCode: string): Observable<Object>;
|
package/package.json
CHANGED
Binary file
|
Binary file
|
Binary file
|