simpo-component-library 1.3.12 → 1.3.13
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/json/user-favourite.json +31 -0
- package/esm2022/lib/ecommerce/sections/authenticate-user/authenticate-user.component.mjs +72 -0
- package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +14 -3
- package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +3 -3
- package/esm2022/lib/sections/navbar-section/navbar-section.component.mjs +30 -14
- package/esm2022/lib/services/cart.service.mjs +49 -10
- package/esm2022/lib/services/rest.service.mjs +8 -1
- package/fesm2022/simpo-component-library.mjs +278 -111
- 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/authenticate-user/authenticate-user.component.d.ts +25 -0
- package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +3 -0
- package/lib/sections/navbar-section/navbar-section.component.d.ts +3 -1
- package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
- package/lib/services/cart.service.d.ts +8 -0
- package/lib/services/rest.service.d.ts +2 -0
- package/package.json +1 -1
- package/simpo-component-library-1.3.13.tgz +0 -0
- package/simpo-component-library-1.3.10.tgz +0 -0
- package/simpo-component-library-1.3.11.tgz +0 -0
- package/simpo-component-library-1.3.12.tgz +0 -0
- package/simpo-component-library-1.3.8.tgz +0 -0
- package/simpo-component-library-1.3.9.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
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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 AuthenticateUserComponent implements OnInit {
|
|
6
|
+
matData: any;
|
|
7
|
+
private readonly restService;
|
|
8
|
+
private readonly dialogRef;
|
|
9
|
+
data?: any;
|
|
10
|
+
otpString: string;
|
|
11
|
+
screen: 'LOGIN' | 'OTP';
|
|
12
|
+
mobile: string | null;
|
|
13
|
+
countryCode: string | null;
|
|
14
|
+
constructor(matData: any, restService: RestService, dialogRef: MatDialogRef<AuthenticateUserComponent>);
|
|
15
|
+
styles: any;
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
move(event: any, idx: number): void;
|
|
18
|
+
close(): void;
|
|
19
|
+
goBack(): void;
|
|
20
|
+
generateOTP(): void;
|
|
21
|
+
verifyOTP(): void;
|
|
22
|
+
resendOTP(): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthenticateUserComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AuthenticateUserComponent, "simpo-authenticate-user", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
|
|
25
|
+
}
|
|
@@ -30,6 +30,9 @@ export declare class ProductDescComponent extends BaseSection {
|
|
|
30
30
|
changeImg(url: any): void;
|
|
31
31
|
addToCart(type?: 'ADD' | 'SUBSTRACT'): void;
|
|
32
32
|
goToFilter(category: string): void;
|
|
33
|
+
addToFavourite(): void;
|
|
34
|
+
removeToFavourite(): void;
|
|
35
|
+
get isItemAsFavorite(): boolean;
|
|
33
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductDescComponent, never>;
|
|
34
37
|
static ɵcmp: i0.ɵɵComponentDeclaration<ProductDescComponent, "simpo-product-desc", 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; }; }, {}, never, never, true, never>;
|
|
35
38
|
}
|
|
@@ -3,11 +3,13 @@ import { HeaderContentModel, HeaderSectionModel, HeaderStyleModel } from './navb
|
|
|
3
3
|
import { EventsService } from './../../services/events.service';
|
|
4
4
|
import { ActionModel } from '../../styles/style.model';
|
|
5
5
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
6
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class NavbarSectionComponent implements OnInit {
|
|
8
9
|
private readonly _eventService;
|
|
9
10
|
private readonly router;
|
|
10
11
|
private readonly activatedRoute;
|
|
12
|
+
private readonly matDialog;
|
|
11
13
|
data?: HeaderSectionModel;
|
|
12
14
|
nextComponent: any;
|
|
13
15
|
index?: number;
|
|
@@ -19,7 +21,7 @@ export declare class NavbarSectionComponent implements OnInit {
|
|
|
19
21
|
action?: ActionModel;
|
|
20
22
|
color: string;
|
|
21
23
|
searchText: string;
|
|
22
|
-
constructor(_eventService: EventsService, router: Router, activatedRoute: ActivatedRoute);
|
|
24
|
+
constructor(_eventService: EventsService, router: Router, activatedRoute: ActivatedRoute, matDialog: MatDialog);
|
|
23
25
|
searchProducts(): void;
|
|
24
26
|
goToAccount(): void;
|
|
25
27
|
goToCart(): void;
|
|
@@ -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>;
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { Product } from '../../public-api';
|
|
2
|
+
import { OrderedItems } from '../ecommerce/styles/OrderedItems.modal';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class CartService {
|
|
4
5
|
constructor();
|
|
5
6
|
addItemToCart(product: Product): void;
|
|
7
|
+
addItemToFavourite(product: Product): void;
|
|
8
|
+
removeItemToFavourite(product: Product): void;
|
|
9
|
+
convertFavToCart(product: OrderedItems): void;
|
|
10
|
+
convertCartToFav(product: OrderedItems): void;
|
|
11
|
+
storeItemToJSON(json: any, product: Product): void;
|
|
6
12
|
getItemQuantity(itemId: string): number;
|
|
13
|
+
getIsItemPresent(itemId: string, type: 'FAVOURITE' | 'CART'): boolean;
|
|
14
|
+
private getItemIdxJSON;
|
|
7
15
|
private objectMapper;
|
|
8
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<CartService, never>;
|
|
9
17
|
static ɵprov: i0.ɵɵInjectableDeclaration<CartService>;
|
|
@@ -15,6 +15,8 @@ export declare class RestService implements OnDestroy {
|
|
|
15
15
|
getAllCategories(): Observable<any>;
|
|
16
16
|
getAllCollections(): Observable<any>;
|
|
17
17
|
getFilteredProduct(collectionIds: string[], categoryIds: string[], searchText: string, minPrice: number, maxPrice: number, pageNo: number, size: number): Observable<Object>;
|
|
18
|
+
generateOTP(mobile: string, countryCode: string): Observable<Object>;
|
|
19
|
+
verifyOTP(mobile: string, otp: string): Observable<Object>;
|
|
18
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<RestService, never>;
|
|
19
21
|
static ɵprov: i0.ɵɵInjectableDeclaration<RestService>;
|
|
20
22
|
}
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|