simpo-component-library 1.6.2 → 1.6.4
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/lib/ecommerce/sections/category-product/category-product.component.mjs +16 -16
- package/esm2022/lib/ecommerce/sections/featured-category/featured-category.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/featured-category/featured-collection.component.mjs +6 -3
- package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +45 -5
- package/esm2022/lib/ecommerce/sections/product-category-list/product-category-list.component.mjs +7 -5
- package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/small-product-listing/small-product-listing.component.mjs +15 -7
- package/fesm2022/simpo-component-library.mjs +84 -32
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/ecommerce/sections/category-product/category-product.component.d.ts +1 -1
- package/lib/ecommerce/sections/featured-category/featured-collection.component.d.ts +1 -0
- package/lib/ecommerce/sections/featured-products/featured-products.component.d.ts +7 -1
- package/lib/ecommerce/sections/small-product-listing/small-product-listing.component.d.ts +6 -2
- package/package.json +1 -1
- package/simpo-component-library-1.6.4.tgz +0 -0
- package/simpo-component-library-1.6.1.tgz +0 -0
- package/simpo-component-library-1.6.2.tgz +0 -0
@@ -32,11 +32,11 @@ export declare class CategoryProductComponent extends BaseSection implements OnI
|
|
32
32
|
getAllCategoriesById(): void;
|
33
33
|
dataList: Product[];
|
34
34
|
selectCategory(categoryId: string): void;
|
35
|
-
scrollRight(): void;
|
36
35
|
addItemToCart(product: Product, type: 'ADD' | 'SUBSTRACT'): void;
|
37
36
|
getItemVarient(product: Product, varientId: string): ItemVariant | null;
|
38
37
|
getPercentage(product: Product): string;
|
39
38
|
getSupportingColor(color: string): string;
|
39
|
+
scrollRight(): void;
|
40
40
|
scrollLeft(): void;
|
41
41
|
showRightArrow: boolean;
|
42
42
|
showLeftArrow: boolean;
|
@@ -24,6 +24,7 @@ export declare class FeaturedCollectionComponent extends BaseSection {
|
|
24
24
|
getCollectionsIds(): void;
|
25
25
|
redirectToListPage(collection: any): void;
|
26
26
|
get stylesLayout(): LayOutModel;
|
27
|
+
get isMobile(): boolean;
|
27
28
|
editSection(): void;
|
28
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedCollectionComponent, never>;
|
29
30
|
static ɵcmp: i0.ɵɵComponentDeclaration<FeaturedCollectionComponent, "simpo-featured-collection", 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>;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
1
|
+
import { ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
2
2
|
import { FeaturedProductContentModal, FeaturedProductModal, FeaturedProductStylesModel } from './featured-products.modal';
|
3
3
|
import { Product, ItemVariant } from '../../styles/product.modal';
|
4
4
|
import { EventsService } from '.././../../services/events.service';
|
@@ -33,6 +33,7 @@ export declare class FeaturedProductsComponent extends BaseSection implements On
|
|
33
33
|
content?: FeaturedProductContentModal;
|
34
34
|
styles?: FeaturedProductStylesModel;
|
35
35
|
button?: ButtonModel;
|
36
|
+
containerRef: ElementRef<HTMLDivElement> | undefined;
|
36
37
|
private _eventSubscriber;
|
37
38
|
constructor(platformId: Object, _eventService: EventsService, restService: RestService, router: Router, cartService: CartService, bottomSheet: MatBottomSheet, storageService: StorageServiceService, messageService: MessageService);
|
38
39
|
screenWidth: number;
|
@@ -54,6 +55,11 @@ export declare class FeaturedProductsComponent extends BaseSection implements On
|
|
54
55
|
isItemOutOfStock(product: Product): boolean;
|
55
56
|
getItemVarient(product: Product, varientId: string): ItemVariant | null;
|
56
57
|
selectVarient(product: Product, varient: ItemVariant): void;
|
58
|
+
scrollRight(): void;
|
59
|
+
scrollLeft(): void;
|
60
|
+
showRightArrow: boolean;
|
61
|
+
showLeftArrow: boolean;
|
62
|
+
updateArrows(): void;
|
57
63
|
get currency(): string;
|
58
64
|
get isMobile(): boolean;
|
59
65
|
private getVarientQuantity;
|
@@ -1,20 +1,24 @@
|
|
1
1
|
import { OnInit } from '@angular/core';
|
2
2
|
import { ItemVariant, Product } from '../../styles/product.modal';
|
3
3
|
import { CartService } from '../../../services/cart.service';
|
4
|
+
import { Router } from '@angular/router';
|
4
5
|
import * as i0 from "@angular/core";
|
5
6
|
export declare class SmallProductListingComponent implements OnInit {
|
6
7
|
private readonly cartService;
|
7
|
-
|
8
|
+
private readonly router;
|
9
|
+
constructor(cartService: CartService, router: Router);
|
8
10
|
private USER_CART;
|
9
11
|
product: Product;
|
10
12
|
data?: any;
|
11
13
|
isScrollable?: boolean;
|
14
|
+
isCategoryProductList: boolean;
|
12
15
|
ngOnInit(): void;
|
13
16
|
addItemToCart(product: Product, type: 'ADD' | 'SUBSTRACT'): void;
|
14
17
|
getItemVarient(product: Product, varientId: string): ItemVariant | null;
|
15
18
|
getPercentage(product: Product): string;
|
19
|
+
goToProductDetail(product: Product): void;
|
16
20
|
getSupportingColor(color: string): string;
|
17
21
|
get currency(): string;
|
18
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmallProductListingComponent, never>;
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SmallProductListingComponent, "simpo-small-product-listing", never, { "product": { "alias": "product"; "required": false; }; "data": { "alias": "data"; "required": false; }; "isScrollable": { "alias": "isScrollable"; "required": false; }; }, {}, never, never, true, never>;
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SmallProductListingComponent, "simpo-small-product-listing", never, { "product": { "alias": "product"; "required": false; }; "data": { "alias": "data"; "required": false; }; "isScrollable": { "alias": "isScrollable"; "required": false; }; "isCategoryProductList": { "alias": "isCategoryProductList"; "required": false; }; }, {}, never, never, true, never>;
|
20
24
|
}
|
package/package.json
CHANGED
Binary file
|
Binary file
|
Binary file
|