simpo-component-library 1.4.78 → 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/directive/background-directive.d.ts +1 -1
- package/lib/directive/button-directive.directive.d.ts +1 -1
- package/lib/directive/color.directive.d.ts +1 -1
- package/lib/ecommerce/sections/product-list/product-list.component.d.ts +11 -3
- package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
- package/package.json +1 -1
- package/simpo-component-library-1.4.81.tgz +0 -0
- package/simpo-component-library-1.4.78.tgz +0 -0
|
@@ -11,7 +11,7 @@ export declare class BackgroundDirective implements OnChanges {
|
|
|
11
11
|
constructor(el: ElementRef, eventService: EventsService);
|
|
12
12
|
ngOnDestroy(): void;
|
|
13
13
|
ngOnChanges(change: SimpleChanges): void;
|
|
14
|
-
getTextColor(bgColor: string): "#
|
|
14
|
+
getTextColor(bgColor: string): "#ffffff" | "#000000" | "#ffffff;";
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<BackgroundDirective, never>;
|
|
16
16
|
static ɵdir: i0.ɵɵDirectiveDeclaration<BackgroundDirective, "[simpoBackground]", never, { "simpoBackground": { "alias": "simpoBackground"; "required": false; }; "scrollValue": { "alias": "scrollValue"; "required": false; }; }, {}, never, never, true, never>;
|
|
17
17
|
}
|
|
@@ -15,7 +15,7 @@ export declare class ButtonDirectiveDirective implements OnChanges {
|
|
|
15
15
|
applyButtonStyleChanges(): void;
|
|
16
16
|
applyButtonType(style: ButtonStyleModel, color: string): void;
|
|
17
17
|
applyButtonShape(style: ButtonStyleModel): void;
|
|
18
|
-
getTextColor(bgColor: string): "#
|
|
18
|
+
getTextColor(bgColor: string): "#ffffff" | "#000000" | "#ffffff;";
|
|
19
19
|
buttonStyleSubscription?: Subscription;
|
|
20
20
|
buttonStyleChangeCheck(): void;
|
|
21
21
|
changeButtonStyle(id: any, style: ButtonStyleModel, bgColor: string): void;
|
|
@@ -12,7 +12,7 @@ export declare class ColorDirective implements OnChanges {
|
|
|
12
12
|
ngOnDestroy(): void;
|
|
13
13
|
applyColor(): void;
|
|
14
14
|
bgColorChangeCheck(): void;
|
|
15
|
-
getTextColor(): "#
|
|
15
|
+
getTextColor(): "#ffffff" | "#000000" | "#ffffff;";
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColorDirective, never>;
|
|
17
17
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ColorDirective, "[simpoColor]", never, { "bgColor": { "alias": "simpoColor"; "required": false; }; }, {}, never, never, true, never>;
|
|
18
18
|
}
|
|
@@ -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>;
|
|
@@ -15,7 +15,7 @@ export declare class PricingSectionComponent extends BaseSection {
|
|
|
15
15
|
style?: PricingSectionStylesModel;
|
|
16
16
|
constructor(_eventService: EventsService);
|
|
17
17
|
ngOnInit(): void;
|
|
18
|
-
getTextColor(): "#
|
|
18
|
+
getTextColor(): "#ffffff" | "#000000";
|
|
19
19
|
get headingSpace(): SPACING;
|
|
20
20
|
editSection(): void;
|
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<PricingSectionComponent, never>;
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|