simpo-component-library 1.4.117 → 1.4.121
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/cart/cart.component.mjs +8 -8
- package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +15 -6
- package/esm2022/lib/ecommerce/sections/order-details/order-details.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/pagnination/pagnination.component.mjs +12 -6
- package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +11 -4
- package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +9 -5
- package/fesm2022/simpo-component-library.mjs +50 -24
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/ecommerce/sections/featured-products/featured-products.component.d.ts +4 -3
- package/lib/ecommerce/sections/pagnination/pagnination.component.d.ts +3 -2
- package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +1 -0
- package/lib/ecommerce/sections/product-list/product-list.component.d.ts +1 -0
- package/package.json +1 -1
- package/simpo-component-library-1.4.121.tgz +0 -0
- package/simpo-component-library-1.4.117.tgz +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { FeaturedProductContentModal, FeaturedProductModal, FeaturedProductStylesModel } from './featured-products.modal';
|
|
3
3
|
import { Product } from '../../styles/product.modal';
|
|
4
4
|
import { EventsService } from '.././../../services/events.service';
|
|
@@ -23,6 +23,7 @@ export declare class FeaturedProductsComponent extends BaseSection implements On
|
|
|
23
23
|
isLoading: boolean;
|
|
24
24
|
edit?: boolean;
|
|
25
25
|
delete?: boolean;
|
|
26
|
+
changeDetailProduct: EventEmitter<Product>;
|
|
26
27
|
content?: FeaturedProductContentModal;
|
|
27
28
|
styles?: FeaturedProductStylesModel;
|
|
28
29
|
button?: ButtonModel;
|
|
@@ -40,9 +41,9 @@ export declare class FeaturedProductsComponent extends BaseSection implements On
|
|
|
40
41
|
getFeatureProduct(): void;
|
|
41
42
|
addItemToCart(product: Product, type: 'ADD' | 'SUBSTRACT'): void;
|
|
42
43
|
toggleItemToFav(product: Product, type: 'ADD' | 'REMOVE'): void;
|
|
43
|
-
proceedToProductDesc(
|
|
44
|
+
proceedToProductDesc(product: Product): void;
|
|
44
45
|
togglePreviewImage(product: Product, idx: number): void;
|
|
45
46
|
get currency(): string;
|
|
46
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedProductsComponent, never>;
|
|
47
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FeaturedProductsComponent, "simpo-featured-products", never, { "data": { "alias": "data"; "required": false; }; "responseData": { "alias": "responseData"; "required": false; }; "index": { "alias": "index"; "required": false; }; "isRelatedProduct": { "alias": "isRelatedProduct"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
|
|
48
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FeaturedProductsComponent, "simpo-featured-products", never, { "data": { "alias": "data"; "required": false; }; "responseData": { "alias": "responseData"; "required": false; }; "index": { "alias": "index"; "required": false; }; "isRelatedProduct": { "alias": "isRelatedProduct"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, { "changeDetailProduct": "changeDetailProduct"; }, never, never, true, never>;
|
|
48
49
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { Router } from '@angular/router';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class PagninationComponent implements OnInit {
|
|
@@ -6,11 +6,12 @@ export declare class PagninationComponent implements OnInit {
|
|
|
6
6
|
constructor(router: Router);
|
|
7
7
|
totalPages: number;
|
|
8
8
|
currentPage: number;
|
|
9
|
+
paginationChange: EventEmitter<number>;
|
|
9
10
|
bound: number;
|
|
10
11
|
ngOnInit(): void;
|
|
11
12
|
goToNext(): void;
|
|
12
13
|
goToPrev(): void;
|
|
13
14
|
goToSelection(index: number): void;
|
|
14
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<PagninationComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PagninationComponent, "simpo-pagnination", never, { "totalPages": { "alias": "totalPages"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; }, {}, never, never, true, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PagninationComponent, "simpo-pagnination", never, { "totalPages": { "alias": "totalPages"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; }, { "paginationChange": "paginationChange"; }, never, never, true, never>;
|
|
16
17
|
}
|
|
@@ -47,6 +47,7 @@ export declare class ProductDescComponent extends BaseSection {
|
|
|
47
47
|
get getFeatureProductData(): FeaturedProductModal;
|
|
48
48
|
getProductByCategory(): void;
|
|
49
49
|
getProductByCollection(): void;
|
|
50
|
+
changeProduct(product: Product): void;
|
|
50
51
|
get currency(): string;
|
|
51
52
|
get isItemLowStock(): boolean;
|
|
52
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductDescComponent, never>;
|
|
@@ -68,6 +68,7 @@ export declare class ProductListComponent extends BaseSection {
|
|
|
68
68
|
filterItemList(): void;
|
|
69
69
|
openFilter(FilterSection: any): void;
|
|
70
70
|
openSorting(SortingSection: any): void;
|
|
71
|
+
paginationChange(page: number): void;
|
|
71
72
|
closeDialog(): void;
|
|
72
73
|
get getTotalPage(): number;
|
|
73
74
|
get currency(): string;
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|