simpo-component-library 1.4.2 → 1.4.4
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/authenticate-user/authenticate-user.component.mjs +23 -21
- package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +27 -10
- package/esm2022/lib/ecommerce/sections/pagnination/pagnination.component.mjs +7 -3
- package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +8 -7
- package/esm2022/lib/ecommerce/sections/user-profile/user-profile.component.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/whislist/whislist.component.mjs +3 -3
- package/esm2022/lib/ecommerce/styles/product.modal.mjs +2 -1
- package/esm2022/lib/sections/navbar-section/navbar-section.component.mjs +6 -3
- package/esm2022/lib/services/rest.service.mjs +4 -3
- package/fesm2022/simpo-component-library.mjs +205 -176
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/ecommerce/sections/authenticate-user/authenticate-user.component.d.ts +4 -5
- package/lib/ecommerce/sections/featured-products/featured-products.component.d.ts +6 -1
- package/lib/ecommerce/sections/pagnination/pagnination.component.d.ts +1 -0
- package/lib/ecommerce/sections/product-list/product-list.component.d.ts +1 -0
- package/lib/ecommerce/sections/user-profile/user-profile.component.d.ts +2 -2
- package/lib/ecommerce/styles/product.modal.d.ts +1 -0
- package/lib/sections/navbar-section/navbar-section.component.d.ts +1 -0
- package/lib/services/rest.service.d.ts +1 -1
- package/package.json +1 -1
- package/simpo-component-library-1.3.15.tgz +0 -0
- package/simpo-component-library-1.4.3.tgz +0 -0
- package/simpo-component-library-1.4.4.tgz +0 -0
- package/simpo-component-library-1.4.2.tgz +0 -0
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
2
|
import { RestService } from '../../../services/rest.service';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class AuthenticateUserComponent implements OnInit {
|
|
6
|
-
matData: any;
|
|
7
5
|
private readonly restService;
|
|
8
|
-
private readonly dialogRef;
|
|
9
6
|
data?: any;
|
|
7
|
+
responseData?: any;
|
|
10
8
|
otpString: string;
|
|
11
9
|
screen: 'LOGIN' | 'OTP';
|
|
12
10
|
mobile: string | null;
|
|
13
11
|
countryCode: string | null;
|
|
14
|
-
constructor(
|
|
12
|
+
constructor(restService: RestService);
|
|
15
13
|
styles: any;
|
|
16
14
|
ngOnInit(): void;
|
|
17
15
|
move(event: any, idx: number): void;
|
|
@@ -20,6 +18,7 @@ export declare class AuthenticateUserComponent implements OnInit {
|
|
|
20
18
|
generateOTP(): void;
|
|
21
19
|
verifyOTP(): void;
|
|
22
20
|
resendOTP(): void;
|
|
21
|
+
get isMobile(): boolean;
|
|
23
22
|
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>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AuthenticateUserComponent, "simpo-authenticate-user", never, { "data": { "alias": "data"; "required": false; }; "responseData": { "alias": "responseData"; "required": false; }; }, {}, never, never, true, never>;
|
|
25
24
|
}
|
|
@@ -6,12 +6,14 @@ import BaseSection from '../../../sections/BaseSection';
|
|
|
6
6
|
import { ButtonModel } from '../../../styles/style.model';
|
|
7
7
|
import { RestService } from '../../../services/rest.service';
|
|
8
8
|
import { Router } from '@angular/router';
|
|
9
|
+
import { CartService } from '../../../services/cart.service';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
export declare class FeaturedProductsComponent extends BaseSection implements OnDestroy {
|
|
11
12
|
private platformId;
|
|
12
13
|
private readonly _eventService;
|
|
13
14
|
private readonly restService;
|
|
14
15
|
private readonly router;
|
|
16
|
+
private readonly cartService;
|
|
15
17
|
data?: FeaturedProductModal;
|
|
16
18
|
responseData?: Product[];
|
|
17
19
|
index?: number;
|
|
@@ -21,7 +23,7 @@ export declare class FeaturedProductsComponent extends BaseSection implements On
|
|
|
21
23
|
styles?: FeaturedProductStylesModel;
|
|
22
24
|
button?: ButtonModel;
|
|
23
25
|
private _eventSubscriber;
|
|
24
|
-
constructor(platformId: Object, _eventService: EventsService, restService: RestService, router: Router);
|
|
26
|
+
constructor(platformId: Object, _eventService: EventsService, restService: RestService, router: Router, cartService: CartService);
|
|
25
27
|
screenWidth: number;
|
|
26
28
|
getScreenSize(): void;
|
|
27
29
|
ngOnInit(): void;
|
|
@@ -29,7 +31,10 @@ export declare class FeaturedProductsComponent extends BaseSection implements On
|
|
|
29
31
|
getProductWidth(): string;
|
|
30
32
|
getSliceParameters(): number[];
|
|
31
33
|
getFeatureProduct(): void;
|
|
34
|
+
addItemToCart(product: Product, type: 'ADD' | 'SUBSTRACT'): void;
|
|
35
|
+
toggleItemToFav(product: Product, type: 'ADD' | 'REMOVE'): void;
|
|
32
36
|
proceedToProductDesc(productId: any): void;
|
|
37
|
+
isItemFav(product: Product): boolean;
|
|
33
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedProductsComponent, never>;
|
|
34
39
|
static ɵcmp: i0.ɵɵComponentDeclaration<FeaturedProductsComponent, "simpo-featured-products", never, { "data": { "alias": "data"; "required": false; }; "responseData": { "alias": "responseData"; "required": false; }; "index": { "alias": "index"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
|
|
35
40
|
}
|
|
@@ -10,6 +10,7 @@ export declare class PagninationComponent implements OnInit {
|
|
|
10
10
|
ngOnInit(): void;
|
|
11
11
|
goToNext(): void;
|
|
12
12
|
goToPrev(): void;
|
|
13
|
+
goToSelection(index: number): void;
|
|
13
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<PagninationComponent, never>;
|
|
14
15
|
static ɵcmp: i0.ɵɵComponentDeclaration<PagninationComponent, "simpo-pagnination", never, { "totalPages": { "alias": "totalPages"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; }, {}, never, never, true, never>;
|
|
15
16
|
}
|
|
@@ -27,6 +27,7 @@ export declare class ProductListComponent extends BaseSection {
|
|
|
27
27
|
constructor(platformId: Object, _eventService: EventsService, restService: RestService, router: Router, activatedRoute: ActivatedRoute);
|
|
28
28
|
pricingMin: number;
|
|
29
29
|
pricingMax: number;
|
|
30
|
+
sortBy: string | null;
|
|
30
31
|
filteringArray: {
|
|
31
32
|
name: string;
|
|
32
33
|
value: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { ResponseData, Tabs } from './user-profile.modal';
|
|
3
|
-
import { UserDetails } from '
|
|
4
|
-
import { OrderItem } from '
|
|
3
|
+
import { UserDetails } from '../../styles/cart.modal';
|
|
4
|
+
import { OrderItem } from '../../styles/order.modal';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class UserProfileComponent implements OnInit {
|
|
7
7
|
responseData?: ResponseData;
|
|
@@ -23,6 +23,7 @@ export declare class NavbarSectionComponent implements OnInit {
|
|
|
23
23
|
searchText: string;
|
|
24
24
|
constructor(_eventService: EventsService, router: Router, activatedRoute: ActivatedRoute, matDialog: MatDialog);
|
|
25
25
|
searchProducts(): void;
|
|
26
|
+
goToFav(): void;
|
|
26
27
|
goToAccount(): void;
|
|
27
28
|
goToCart(): void;
|
|
28
29
|
applyFilter(value: any, type: string): void;
|
|
@@ -14,7 +14,7 @@ export declare class RestService implements OnDestroy {
|
|
|
14
14
|
getProductDetails(productId?: string | null): Observable<any>;
|
|
15
15
|
getAllCategories(): Observable<any>;
|
|
16
16
|
getAllCollections(): Observable<any>;
|
|
17
|
-
getFilteredProduct(collectionIds: string[], categoryIds: string[], searchText: string, minPrice: number, maxPrice: number, pageNo: number, size: number): Observable<Object>;
|
|
17
|
+
getFilteredProduct(collectionIds: string[], categoryIds: string[], searchText: string, minPrice: number, maxPrice: number, sortBy: string, pageNo: number, size: number): Observable<Object>;
|
|
18
18
|
generateOTP(mobile: string, countryCode: string): Observable<Object>;
|
|
19
19
|
verifyOTP(mobile: string, otp: string): Observable<Object>;
|
|
20
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<RestService, never>;
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|