simpo-component-library 1.4.80 → 1.4.81
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/product-desc/product-desc.component.mjs +7 -4
- package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +41 -20
- package/esm2022/lib/ecommerce/sections/user-profile/user-profile.component.mjs +2 -2
- package/fesm2022/simpo-component-library.mjs +43 -20
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/ecommerce/sections/product-list/product-list.component.d.ts +11 -3
- package/package.json +1 -1
- package/simpo-component-library-1.4.81.tgz +0 -0
- package/simpo-component-library-1.4.80.tgz +0 -0
|
@@ -6,6 +6,8 @@ import { RestService } from '.././../../services/rest.service';
|
|
|
6
6
|
import { ButtonModel } from '../../../styles/style.model';
|
|
7
7
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
8
8
|
import { StorageServiceService } from '../../../services/storage.service';
|
|
9
|
+
import { MatBottomSheet } from '@angular/material/bottom-sheet';
|
|
10
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
9
11
|
import * as i0 from "@angular/core";
|
|
10
12
|
interface BaseModel {
|
|
11
13
|
option: string;
|
|
@@ -19,6 +21,8 @@ export declare class ProductListComponent extends BaseSection {
|
|
|
19
21
|
private readonly router;
|
|
20
22
|
private readonly activatedRoute;
|
|
21
23
|
private readonly storageService;
|
|
24
|
+
private readonly matBottomSheet;
|
|
25
|
+
private readonly matDialog;
|
|
22
26
|
responseData?: Product[];
|
|
23
27
|
data?: ProductListModal;
|
|
24
28
|
index?: number;
|
|
@@ -27,7 +31,9 @@ export declare class ProductListComponent extends BaseSection {
|
|
|
27
31
|
isLoading: boolean;
|
|
28
32
|
content?: ProductListContentModal;
|
|
29
33
|
button?: ButtonModel;
|
|
30
|
-
constructor(platformId: Object, _eventService: EventsService, restService: RestService, router: Router, activatedRoute: ActivatedRoute, storageService: StorageServiceService);
|
|
34
|
+
constructor(platformId: Object, _eventService: EventsService, restService: RestService, router: Router, activatedRoute: ActivatedRoute, storageService: StorageServiceService, matBottomSheet: MatBottomSheet, matDialog: MatDialog);
|
|
35
|
+
private filterBottomSheetRef;
|
|
36
|
+
private sortingDialogRef;
|
|
31
37
|
pricingMin: number;
|
|
32
38
|
pricingMax: number;
|
|
33
39
|
sortBy: string | null;
|
|
@@ -40,6 +46,7 @@ export declare class ProductListComponent extends BaseSection {
|
|
|
40
46
|
screenWidth: number;
|
|
41
47
|
getScreenSize(): void;
|
|
42
48
|
filterList: any[];
|
|
49
|
+
filterListIdx: any[];
|
|
43
50
|
styles?: ProductListStylesModal;
|
|
44
51
|
totalCount: number;
|
|
45
52
|
pageNo: number;
|
|
@@ -58,8 +65,9 @@ export declare class ProductListComponent extends BaseSection {
|
|
|
58
65
|
applyFilter(category?: any, type?: 'SORT' | 'FILTER'): void;
|
|
59
66
|
navigateFilter(sorting: string): void;
|
|
60
67
|
filterItemList(): void;
|
|
61
|
-
openFilter(): void;
|
|
62
|
-
openSorting(): void;
|
|
68
|
+
openFilter(FilterSection: any): void;
|
|
69
|
+
openSorting(SortingSection: any): void;
|
|
70
|
+
closeDialog(): void;
|
|
63
71
|
get getTotalPage(): number;
|
|
64
72
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductListComponent, never>;
|
|
65
73
|
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>;
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|