simpo-component-library 1.3.0 → 1.3.2
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/featured-products/featured-products.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/pagnination/pagnination.component.mjs +5 -3
- package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +25 -26
- package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +65 -29
- package/esm2022/lib/ecommerce/styles/BaseCollection.modal.mjs +18 -0
- package/esm2022/lib/ecommerce/styles/Collection.modal.mjs +10 -0
- package/esm2022/lib/ecommerce/styles/category.modal.mjs +10 -2
- package/esm2022/lib/sections/navbar-section/navbar-section.component.mjs +32 -10
- package/esm2022/lib/services/rest.service.mjs +35 -4
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/simpo-component-library.mjs +240 -117
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/ecommerce/sections/pagnination/pagnination.component.d.ts +3 -1
- package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +0 -3
- package/lib/ecommerce/sections/product-list/product-list.component.d.ts +21 -7
- package/lib/ecommerce/styles/BaseCollection.modal.d.ts +14 -0
- package/lib/ecommerce/styles/Collection.modal.d.ts +9 -0
- package/lib/ecommerce/styles/category.modal.d.ts +5 -10
- package/lib/sections/banner-carousel/banner-carousel.component.d.ts +2 -2
- package/lib/sections/navbar-section/navbar-section.component.d.ts +8 -3
- package/lib/services/rest.service.d.ts +3 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/simpo-component-library-1.2.14.tgz +0 -0
- package/simpo-component-library-1.3.0.tgz +0 -0
- package/simpo-component-library-1.3.1.tgz +0 -0
- package/simpo-component-library-1.3.2.tgz +0 -0
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
1
2
|
import { Router } from '@angular/router';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class PagninationComponent {
|
|
4
|
+
export declare class PagninationComponent implements OnInit {
|
|
4
5
|
private readonly router;
|
|
5
6
|
constructor(router: Router);
|
|
6
7
|
totalPages: number;
|
|
7
8
|
currentPage: number;
|
|
8
9
|
bound: number;
|
|
10
|
+
ngOnInit(): void;
|
|
9
11
|
goToNext(): void;
|
|
10
12
|
goToPrev(): void;
|
|
11
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<PagninationComponent, never>;
|
|
@@ -29,9 +29,6 @@ export declare class ProductDescComponent extends BaseSection {
|
|
|
29
29
|
getScreenSize(): void;
|
|
30
30
|
currentImg: any;
|
|
31
31
|
changeImg(url: any): void;
|
|
32
|
-
addedQuantity: number;
|
|
33
|
-
changeQuantity(quantity: any): void;
|
|
34
|
-
addOrSubtractQuantity(type: 'ADD' | 'SUBSTRACT'): void;
|
|
35
32
|
addToCart(type?: 'ADD' | 'SUBSTRACT'): void;
|
|
36
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductDescComponent, never>;
|
|
37
34
|
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>;
|
|
@@ -2,12 +2,19 @@ import { Product } from '../../styles/product.modal';
|
|
|
2
2
|
import BaseSection from '../../../sections/BaseSection';
|
|
3
3
|
import { ProductListContentModal, ProductListModal, ProductListStylesModal } from './product-list.modal';
|
|
4
4
|
import { EventsService } from '.././../../services/events.service';
|
|
5
|
+
import { RestService } from '.././../../services/rest.service';
|
|
5
6
|
import { ButtonModel } from '../../../styles/style.model';
|
|
6
7
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
9
|
+
interface BaseModel {
|
|
10
|
+
option: string;
|
|
11
|
+
id: string;
|
|
12
|
+
status: boolean;
|
|
13
|
+
}
|
|
8
14
|
export declare class ProductListComponent extends BaseSection {
|
|
9
15
|
private platformId;
|
|
10
16
|
private readonly _eventService;
|
|
17
|
+
private readonly restService;
|
|
11
18
|
private readonly router;
|
|
12
19
|
private readonly activatedRoute;
|
|
13
20
|
responseData?: Product[];
|
|
@@ -17,7 +24,7 @@ export declare class ProductListComponent extends BaseSection {
|
|
|
17
24
|
delete?: boolean;
|
|
18
25
|
content?: ProductListContentModal;
|
|
19
26
|
button?: ButtonModel;
|
|
20
|
-
constructor(platformId: Object, _eventService: EventsService, router: Router, activatedRoute: ActivatedRoute);
|
|
27
|
+
constructor(platformId: Object, _eventService: EventsService, restService: RestService, router: Router, activatedRoute: ActivatedRoute);
|
|
21
28
|
pricingMin: number;
|
|
22
29
|
pricingMax: number;
|
|
23
30
|
filteringArray: {
|
|
@@ -26,19 +33,26 @@ export declare class ProductListComponent extends BaseSection {
|
|
|
26
33
|
}[];
|
|
27
34
|
screenWidth: number;
|
|
28
35
|
getScreenSize(): void;
|
|
29
|
-
filterList:
|
|
36
|
+
filterList: any[];
|
|
30
37
|
styles?: ProductListStylesModal;
|
|
38
|
+
totalCount: number;
|
|
39
|
+
pageNo: number;
|
|
40
|
+
size: number;
|
|
41
|
+
searchTxt: string;
|
|
31
42
|
ngOnInit(): void;
|
|
32
|
-
|
|
43
|
+
getAllCategories(): void;
|
|
44
|
+
getAllCategory(): void;
|
|
45
|
+
removeFilter(filter: any): void;
|
|
33
46
|
getProductWidth(): string;
|
|
34
47
|
proceedToProductDesc(productId: any): void;
|
|
35
48
|
clearFilter(): void;
|
|
36
|
-
categories:
|
|
37
|
-
|
|
38
|
-
status: boolean;
|
|
39
|
-
}[];
|
|
49
|
+
categories: BaseModel[];
|
|
50
|
+
collections: BaseModel[];
|
|
40
51
|
applyFilter(category?: any, type?: 'SORT' | 'FILTER'): void;
|
|
41
52
|
navigateFilter(sorting: string): void;
|
|
53
|
+
filterItemList(): void;
|
|
54
|
+
get getTotalPage(): number;
|
|
42
55
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductListComponent, never>;
|
|
43
56
|
static ɵcmp: i0.ɵɵComponentDeclaration<ProductListComponent, "simpo-product-list", 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; }; }, {}, never, never, true, never>;
|
|
44
57
|
}
|
|
58
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CreatedDetails } from "./product.modal";
|
|
2
|
+
export declare class BaseCollection {
|
|
3
|
+
storeId: string[];
|
|
4
|
+
businessId: string;
|
|
5
|
+
description: string;
|
|
6
|
+
imgUrl: string[];
|
|
7
|
+
showInWebsite: boolean;
|
|
8
|
+
otherDetails: any;
|
|
9
|
+
createdDetails: CreatedDetails;
|
|
10
|
+
active: boolean;
|
|
11
|
+
constructor(json?: {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
});
|
|
14
|
+
}
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
1
|
+
import { BaseCollection } from "./BaseCollection.modal";
|
|
2
|
+
export declare class Category extends BaseCollection {
|
|
3
3
|
categoryId: string;
|
|
4
|
-
storeId: string[];
|
|
5
|
-
businessId: string;
|
|
6
4
|
categoryName: string;
|
|
7
|
-
description: string;
|
|
8
|
-
imgUrl: string[];
|
|
9
|
-
showInWebsite: boolean;
|
|
10
5
|
featuredCategory: boolean;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
constructor(json?: {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
});
|
|
14
9
|
}
|
|
@@ -23,8 +23,8 @@ export declare class BannerCarouselComponent extends BaseSection implements OnIn
|
|
|
23
23
|
get stylesLayout(): LayOutModel;
|
|
24
24
|
get getBlurValue(): OverlayValue | undefined;
|
|
25
25
|
get getBackgroundColor(): BackgroundModel;
|
|
26
|
-
get getBackgroundOpacity(): "0
|
|
27
|
-
opacityValue(value: OverlayValue): "0
|
|
26
|
+
get getBackgroundOpacity(): "0" | "0.2" | "0.3" | "0.5" | "0.7";
|
|
27
|
+
opacityValue(value: OverlayValue): "0" | "0.2" | "0.3" | "0.5" | "0.7";
|
|
28
28
|
editSection(): void;
|
|
29
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<BannerCarouselComponent, never>;
|
|
30
30
|
static ɵcmp: i0.ɵɵComponentDeclaration<BannerCarouselComponent, "simpo-banner-carousel", never, { "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
|
|
@@ -2,11 +2,12 @@ import { OnInit } from '@angular/core';
|
|
|
2
2
|
import { HeaderContentModel, HeaderSectionModel, HeaderStyleModel } from './navbar-section.model';
|
|
3
3
|
import { EventsService } from './../../services/events.service';
|
|
4
4
|
import { ActionModel } from '../../styles/style.model';
|
|
5
|
-
import { Router } from '@angular/router';
|
|
5
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class NavbarSectionComponent implements OnInit {
|
|
8
8
|
private readonly _eventService;
|
|
9
9
|
private readonly router;
|
|
10
|
+
private readonly activatedRoute;
|
|
10
11
|
data?: HeaderSectionModel;
|
|
11
12
|
nextComponent: any;
|
|
12
13
|
index?: number;
|
|
@@ -18,11 +19,11 @@ export declare class NavbarSectionComponent implements OnInit {
|
|
|
18
19
|
action?: ActionModel;
|
|
19
20
|
color: string;
|
|
20
21
|
searchText: string;
|
|
21
|
-
constructor(_eventService: EventsService, router: Router);
|
|
22
|
+
constructor(_eventService: EventsService, router: Router, activatedRoute: ActivatedRoute);
|
|
22
23
|
searchProducts(): void;
|
|
23
24
|
goToAccount(): void;
|
|
24
25
|
goToCart(): void;
|
|
25
|
-
applyFilter(value: string): void;
|
|
26
|
+
applyFilter(value: any, type: string): void;
|
|
26
27
|
onScroll(event: any): void;
|
|
27
28
|
ngOnInit(): void;
|
|
28
29
|
screenWidth: number;
|
|
@@ -33,6 +34,7 @@ export declare class NavbarSectionComponent implements OnInit {
|
|
|
33
34
|
close(): void;
|
|
34
35
|
showEditors: boolean;
|
|
35
36
|
showEditTabs(isShow: boolean): void;
|
|
37
|
+
goToHome(): void;
|
|
36
38
|
get isHeaderSticky(): boolean | undefined;
|
|
37
39
|
get backgroundInfo(): any;
|
|
38
40
|
get simpoColor(): any;
|
|
@@ -41,6 +43,9 @@ export declare class NavbarSectionComponent implements OnInit {
|
|
|
41
43
|
redirectTo(content: any): void;
|
|
42
44
|
get isComponentMerged(): any;
|
|
43
45
|
editSection(): void;
|
|
46
|
+
get getCartItemsCount(): number;
|
|
47
|
+
getKeys(object: any): string[];
|
|
48
|
+
getValues(object: any): unknown[];
|
|
44
49
|
static ɵfac: i0.ɵɵFactoryDeclaration<NavbarSectionComponent, never>;
|
|
45
50
|
static ɵcmp: i0.ɵɵComponentDeclaration<NavbarSectionComponent, "simpo-navbar-section", never, { "data": { "alias": "data"; "required": false; }; "nextComponent": { "alias": "nextComponent"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; }, {}, never, never, true, never>;
|
|
46
51
|
}
|
|
@@ -12,6 +12,9 @@ export declare class RestService implements OnDestroy {
|
|
|
12
12
|
ngOnDestroy(): void;
|
|
13
13
|
getFeaturedProduct(collectionId: string | undefined | null): Observable<any>;
|
|
14
14
|
getProductDetails(productId?: string | null): Observable<any>;
|
|
15
|
+
getAllCategories(): Observable<any>;
|
|
16
|
+
getAllCollections(): Observable<any>;
|
|
17
|
+
getFilteredProduct(collectionIds: string[], categoryIds: string[], searchText: string, minPrice: number, maxPrice: number, pageNo: number, size: number): Observable<Object>;
|
|
15
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<RestService, never>;
|
|
16
19
|
static ɵprov: i0.ɵɵInjectableDeclaration<RestService>;
|
|
17
20
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -60,4 +60,5 @@ export * from './lib/styles/style.model';
|
|
|
60
60
|
export * from './lib/styles/types';
|
|
61
61
|
export * from './lib/ecommerce/styles/cart.modal';
|
|
62
62
|
export * from './lib/ecommerce/styles/category.modal';
|
|
63
|
+
export * from './lib/ecommerce/styles/Collection.modal';
|
|
63
64
|
export * from './lib/ecommerce/styles/product.modal';
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|