simpo-component-library 1.2.2 → 1.2.3
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 +4 -4
- package/esm2022/lib/ecommerce/sections/pagnination/pagnination.component.mjs +32 -0
- package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +60 -18
- package/esm2022/lib/ecommerce/sections/product-list/product-list.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/styles/cart.modal.mjs +1 -1
- package/esm2022/lib/sections/navbar-section/navbar-section.component.mjs +22 -7
- package/fesm2022/simpo-component-library.mjs +109 -30
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/ecommerce/sections/pagnination/pagnination.component.d.ts +13 -0
- package/lib/ecommerce/sections/product-list/product-list.component.d.ts +12 -1
- package/lib/ecommerce/styles/cart.modal.d.ts +1 -0
- package/lib/sections/banner-carousel/banner-carousel.component.d.ts +2 -2
- package/lib/sections/navbar-section/navbar-section.component.d.ts +7 -1
- package/package.json +1 -1
- package/simpo-component-library-1.2.3.tgz +0 -0
- package/simpo-component-library-1.2.2.tgz +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Router } from '@angular/router';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class PagninationComponent {
|
|
4
|
+
private readonly router;
|
|
5
|
+
constructor(router: Router);
|
|
6
|
+
totalPages: number;
|
|
7
|
+
currentPage: number;
|
|
8
|
+
bound: number;
|
|
9
|
+
goToNext(): void;
|
|
10
|
+
goToPrev(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PagninationComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PagninationComponent, "simpo-pagnination", never, { "totalPages": { "alias": "totalPages"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -3,10 +3,12 @@ import BaseSection from '../../../sections/BaseSection';
|
|
|
3
3
|
import { ProductListContentModal, ProductListModal, ProductListStylesModal } from './product-list.modal';
|
|
4
4
|
import { EventsService } from '.././../../services/events.service';
|
|
5
5
|
import { ButtonModel } from '../../../styles/style.model';
|
|
6
|
+
import { Router } from '@angular/router';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class ProductListComponent extends BaseSection {
|
|
8
9
|
private platformId;
|
|
9
10
|
private _eventService;
|
|
11
|
+
router: Router;
|
|
10
12
|
responseData?: Product[];
|
|
11
13
|
data?: ProductListModal;
|
|
12
14
|
index?: number;
|
|
@@ -14,16 +16,25 @@ export declare class ProductListComponent extends BaseSection {
|
|
|
14
16
|
delete?: boolean;
|
|
15
17
|
content?: ProductListContentModal;
|
|
16
18
|
button?: ButtonModel;
|
|
17
|
-
constructor(platformId: Object, _eventService: EventsService);
|
|
19
|
+
constructor(platformId: Object, _eventService: EventsService, router: Router);
|
|
20
|
+
pricingMin: number;
|
|
21
|
+
pricingMax: number;
|
|
22
|
+
filteringArray: {
|
|
23
|
+
name: string;
|
|
24
|
+
value: string;
|
|
25
|
+
}[];
|
|
18
26
|
screenWidth: number;
|
|
19
27
|
getScreenSize(): void;
|
|
20
28
|
styles?: ProductListStylesModal;
|
|
21
29
|
ngOnInit(): void;
|
|
22
30
|
getProductWidth(): string;
|
|
23
31
|
proceedToProductDesc(productId: any): void;
|
|
32
|
+
clearFilter(): void;
|
|
24
33
|
categories: {
|
|
25
34
|
option: string;
|
|
35
|
+
status: boolean;
|
|
26
36
|
}[];
|
|
37
|
+
applyFilter(category?: any, type?: 'SORT' | 'FILTER'): void;
|
|
27
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductListComponent, never>;
|
|
28
39
|
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>;
|
|
29
40
|
}
|
|
@@ -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,9 +2,11 @@ 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
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class NavbarSectionComponent implements OnInit {
|
|
7
8
|
private _eventService;
|
|
9
|
+
private router;
|
|
8
10
|
data?: HeaderSectionModel;
|
|
9
11
|
nextComponent: any;
|
|
10
12
|
index?: number;
|
|
@@ -15,7 +17,11 @@ export declare class NavbarSectionComponent implements OnInit {
|
|
|
15
17
|
style?: HeaderStyleModel;
|
|
16
18
|
action?: ActionModel;
|
|
17
19
|
color: string;
|
|
18
|
-
|
|
20
|
+
searchText: string;
|
|
21
|
+
constructor(_eventService: EventsService, router: Router);
|
|
22
|
+
searchProducts(): void;
|
|
23
|
+
goToAccount(): void;
|
|
24
|
+
goToCart(): void;
|
|
19
25
|
onScroll(event: any): void;
|
|
20
26
|
ngOnInit(): void;
|
|
21
27
|
screenWidth: number;
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|