simpo-component-library 1.5.35 → 1.5.36
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/category-product/category-product.component.mjs +3 -4
- package/esm2022/lib/ecommerce/sections/featured-category/featured-category.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/featured-category/featured-collection.component.mjs +7 -11
- package/esm2022/lib/ecommerce/sections/product-category-list/product-category-list.component.mjs +23 -6
- package/esm2022/lib/ecommerce/sections/product-category-list/product-category-list.model.mjs +2 -0
- package/esm2022/lib/ecommerce/sections/small-product-listing/small-product-listing.component.mjs +3 -3
- package/esm2022/lib/services/rest.service.mjs +3 -3
- package/fesm2022/simpo-component-library.mjs +33 -23
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/ecommerce/sections/category-product/category-product.component.d.ts +0 -1
- package/lib/ecommerce/sections/featured-category/featured-collection.component.d.ts +1 -2
- package/lib/ecommerce/sections/product-category-list/product-category-list.component.d.ts +6 -4
- package/lib/ecommerce/sections/product-category-list/product-category-list.model.d.ts +21 -0
- package/lib/services/rest.service.d.ts +1 -1
- package/package.json +1 -1
- package/simpo-component-library-1.5.36.tgz +0 -0
@@ -25,7 +25,6 @@ export declare class CategoryProductComponent extends BaseSection implements OnI
|
|
25
25
|
categoryList: Category[];
|
26
26
|
private USER_CART;
|
27
27
|
constructor(restService: RestService, cartService: CartService, _eventService: EventsService, activatedRoute: ActivatedRoute);
|
28
|
-
private collectionId;
|
29
28
|
featureProductData: FeaturedProductModal | null;
|
30
29
|
ngOnInit(): void;
|
31
30
|
ngAfterViewInit(): void;
|
@@ -6,7 +6,6 @@ import { RestService } from '../../../services/rest.service';
|
|
6
6
|
import { Router } from '@angular/router';
|
7
7
|
import * as i0 from "@angular/core";
|
8
8
|
export declare class FeaturedCollectionComponent extends BaseSection {
|
9
|
-
private platformId;
|
10
9
|
private readonly router;
|
11
10
|
private readonly restService;
|
12
11
|
private readonly _eventService;
|
@@ -18,7 +17,7 @@ export declare class FeaturedCollectionComponent extends BaseSection {
|
|
18
17
|
isLoading: boolean;
|
19
18
|
content?: FeaturedCategoryContentModal;
|
20
19
|
styles?: FeaturedCategoryStylesModel;
|
21
|
-
constructor(
|
20
|
+
constructor(router: Router, restService: RestService, _eventService: EventsService);
|
22
21
|
ngOnInit(): void;
|
23
22
|
getSliceParameters(): number[];
|
24
23
|
getCollectionsIds(): void;
|
@@ -5,20 +5,20 @@ import { Category } from '../../styles/category.modal';
|
|
5
5
|
import { ItemVariant, Product } from '../../styles/product.modal';
|
6
6
|
import { OrderedItems } from '../../styles/OrderedItems.modal';
|
7
7
|
import { CartService } from '../../../services/cart.service';
|
8
|
-
import { CategoryProductContentModal, CategoryProductModal, CategoryProductStylesModel } from '../category-product/category-product.model';
|
9
8
|
import { ActivatedRoute } from '@angular/router';
|
9
|
+
import { ProductCategoryListModal, ProductCategoryListStylesModal } from './product-category-list.model';
|
10
|
+
import { SPACING } from '../../../styles/index';
|
10
11
|
import * as i0 from "@angular/core";
|
11
12
|
export declare class ProductCategoryListComponent extends BaseSection implements OnInit, OnDestroy {
|
12
13
|
private readonly restService;
|
13
14
|
private readonly cartService;
|
14
15
|
private readonly activatedRoute;
|
15
16
|
responseData?: any[];
|
16
|
-
data?:
|
17
|
+
data?: ProductCategoryListModal;
|
17
18
|
index?: number;
|
18
19
|
edit?: boolean;
|
19
20
|
delete?: boolean;
|
20
|
-
styles?:
|
21
|
-
content?: CategoryProductContentModal;
|
21
|
+
styles?: ProductCategoryListStylesModal;
|
22
22
|
categories: Category[];
|
23
23
|
productList: Product[];
|
24
24
|
USER_CART: OrderedItems[];
|
@@ -32,6 +32,8 @@ export declare class ProductCategoryListComponent extends BaseSection implements
|
|
32
32
|
addItemToCart(product: Product, type: 'ADD' | 'SUBSTRACT'): void;
|
33
33
|
getItemVarient(product: Product, varientId: string): ItemVariant | null;
|
34
34
|
getPercentage(product: Product): string;
|
35
|
+
getSupportingColor(color: string): string;
|
36
|
+
get headingSpace(): SPACING;
|
35
37
|
get currency(): string;
|
36
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductCategoryListComponent, never>;
|
37
39
|
static ɵcmp: i0.ɵɵComponentDeclaration<ProductCategoryListComponent, "simpo-product-category-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>;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { ActionModel, AnimationModel, BackgroundModel, LayOutModel } from "../../../styles/style.model";
|
2
|
+
export interface ProductCategoryListModal {
|
3
|
+
id: string;
|
4
|
+
sectionType: string;
|
5
|
+
sectionName: string;
|
6
|
+
content: null;
|
7
|
+
styles: ProductCategoryListStylesModal;
|
8
|
+
action: ActionModel;
|
9
|
+
}
|
10
|
+
export interface ProductCategoryListStylesModal {
|
11
|
+
layout: LayOutModel;
|
12
|
+
background: BackgroundModel;
|
13
|
+
animation: AnimationModel;
|
14
|
+
}
|
15
|
+
export interface ProductCategoryListContentModal {
|
16
|
+
display: Display;
|
17
|
+
button: string;
|
18
|
+
}
|
19
|
+
export interface Display {
|
20
|
+
showButton: boolean;
|
21
|
+
}
|
@@ -14,7 +14,7 @@ export declare class RestService implements OnDestroy {
|
|
14
14
|
getFeaturedProduct(collectionId: string | undefined | null): Observable<any>;
|
15
15
|
getCategoriesByCollectionId(collectionId: string): Observable<any>;
|
16
16
|
getProductDetails(productId?: string | null): Observable<any>;
|
17
|
-
getCollectionByIds(collectionIds: string[]): Observable<
|
17
|
+
getCollectionByIds(collectionIds: string[]): Observable<any>;
|
18
18
|
getAllCategories(): Observable<any>;
|
19
19
|
getAllCollections(): Observable<any>;
|
20
20
|
getFilteredProduct(collectionIds: string[], categoryIds: string[], searchText: string, minPrice: number, maxPrice: number, sortBy: string, pageNo: number, size: number): Observable<{
|
package/package.json
CHANGED
Binary file
|