simpo-component-library 1.4.80 → 1.4.83
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/authenticate-user/authenticate-user.component.mjs +5 -3
- package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +6 -3
- package/esm2022/lib/ecommerce/sections/featured-category/featured-category.component.mjs +4 -4
- package/esm2022/lib/ecommerce/sections/featured-products/featured-products.modal.mjs +11 -2
- package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +10 -6
- package/esm2022/lib/ecommerce/sections/product-desc/product-desc.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +41 -21
- package/esm2022/lib/ecommerce/sections/user-profile/user-profile.component.mjs +7 -5
- package/esm2022/lib/ecommerce/sections/whislist/whislist.component.mjs +6 -4
- package/esm2022/lib/services/rest.service.mjs +2 -2
- package/fesm2022/simpo-component-library.mjs +76 -37
- 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/authenticate-user/authenticate-user.component.d.ts +2 -1
- package/lib/ecommerce/sections/cart/cart.component.d.ts +1 -0
- package/lib/ecommerce/sections/featured-products/featured-products.modal.d.ts +4 -1
- package/lib/ecommerce/sections/product-desc/product-desc.modal.d.ts +2 -1
- package/lib/ecommerce/sections/product-list/product-list.component.d.ts +10 -3
- package/lib/ecommerce/sections/user-profile/user-profile.component.d.ts +2 -1
- package/lib/ecommerce/sections/whislist/whislist.component.d.ts +2 -1
- package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
- package/package.json +1 -1
- package/simpo-component-library-1.4.83.tgz +0 -0
- package/simpo-component-library-1.4.80.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): "#000000" | "#ffffff" | "#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): "#000000" | "#ffffff" | "#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(): "#000000" | "#ffffff" | "#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,7 @@ import { StorageServiceService } from '../../../services/storage.service';
|
|
|
6
6
|
import { EventsService } from '../../../services/events.service';
|
|
7
7
|
import { InputTextModel, StylesModel } from '../../../styles/style.model';
|
|
8
8
|
import { ActionModel } from "../../../styles/style.model";
|
|
9
|
+
import BaseSection from '../../../sections/BaseSection';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
interface AuthenticateSectionModel {
|
|
11
12
|
content: AuthenticateContentModel;
|
|
@@ -16,7 +17,7 @@ interface AuthenticateSectionModel {
|
|
|
16
17
|
interface AuthenticateContentModel {
|
|
17
18
|
siteName: InputTextModel;
|
|
18
19
|
}
|
|
19
|
-
export declare class AuthenticateUserComponent implements OnInit {
|
|
20
|
+
export declare class AuthenticateUserComponent extends BaseSection implements OnInit {
|
|
20
21
|
matData: any;
|
|
21
22
|
private readonly restService;
|
|
22
23
|
private readonly router;
|
|
@@ -39,6 +39,7 @@ export declare class CartComponent extends BaseSection {
|
|
|
39
39
|
proceedToPayment(): void;
|
|
40
40
|
isItemLoading(itemId: string): boolean;
|
|
41
41
|
get getAddressList(): import("../../styles/user.modal").AddressDetails[];
|
|
42
|
+
get isMobile(): boolean;
|
|
42
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<CartComponent, never>;
|
|
43
44
|
static ɵcmp: i0.ɵɵComponentDeclaration<CartComponent, "simpo-cart", 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>;
|
|
44
45
|
}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { InputTextModel, StylesModel, ImageStyle, ActionModel } from "../../../styles/style.model";
|
|
2
2
|
import { Corners } from "../../.././styles/index";
|
|
3
|
-
export
|
|
3
|
+
export declare class FeaturedProductModal {
|
|
4
4
|
id: string;
|
|
5
5
|
sectionType: string;
|
|
6
6
|
sectionName: string;
|
|
7
7
|
content: FeaturedProductContentModal;
|
|
8
8
|
styles: FeaturedProductStylesModel;
|
|
9
9
|
action: ActionModel;
|
|
10
|
+
constructor(json?: {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
});
|
|
10
13
|
}
|
|
11
14
|
export interface FeaturedProductContentModal {
|
|
12
15
|
inputText: InputTextModel[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnimationModel, BackgroundModel, LayOutModel } from "../../../styles/style.model";
|
|
1
|
+
import { AnimationModel, BackgroundModel, InputTextModel, LayOutModel } from "../../../styles/style.model";
|
|
2
2
|
import { ActionModel } from '../../../styles/style.model';
|
|
3
3
|
export interface ProductDescModal {
|
|
4
4
|
id: string;
|
|
@@ -15,4 +15,5 @@ export interface ProductDescStylesModal {
|
|
|
15
15
|
}
|
|
16
16
|
export interface ProductDescContentModal {
|
|
17
17
|
button: string;
|
|
18
|
+
inputText: InputTextModel[];
|
|
18
19
|
}
|
|
@@ -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;
|
|
@@ -58,8 +64,9 @@ export declare class ProductListComponent extends BaseSection {
|
|
|
58
64
|
applyFilter(category?: any, type?: 'SORT' | 'FILTER'): void;
|
|
59
65
|
navigateFilter(sorting: string): void;
|
|
60
66
|
filterItemList(): void;
|
|
61
|
-
openFilter(): void;
|
|
62
|
-
openSorting(): void;
|
|
67
|
+
openFilter(FilterSection: any): void;
|
|
68
|
+
openSorting(SortingSection: any): void;
|
|
69
|
+
closeDialog(): void;
|
|
63
70
|
get getTotalPage(): number;
|
|
64
71
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductListComponent, never>;
|
|
65
72
|
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>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
+
import BaseSection from '../../../sections/BaseSection';
|
|
2
3
|
import { EventsService } from '.././../../services/events.service';
|
|
3
4
|
import { ProfileContentModal, ProfileStylesModal, Tabs, UserProfileModal } from './user-profile.modal';
|
|
4
5
|
import { OrderItem } from '../../styles/order.modal';
|
|
@@ -8,7 +9,7 @@ import { StorageServiceService } from '../../../services/storage.service';
|
|
|
8
9
|
import { User } from '../../styles/user.modal';
|
|
9
10
|
import { MatDialog } from '@angular/material/dialog';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
|
-
export declare class UserProfileComponent implements OnInit {
|
|
12
|
+
export declare class UserProfileComponent extends BaseSection implements OnInit {
|
|
12
13
|
private readonly router;
|
|
13
14
|
private readonly _eventService;
|
|
14
15
|
private readonly restService;
|
|
@@ -3,8 +3,9 @@ import { CartService } from '../../../services/cart.service';
|
|
|
3
3
|
import { EventsService } from '../../../services/events.service';
|
|
4
4
|
import { StorageServiceService } from '../../../services/storage.service';
|
|
5
5
|
import { RestService } from '../../../services/rest.service';
|
|
6
|
+
import BaseSection from '../../../sections/BaseSection';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class WhislistComponent implements OnInit {
|
|
8
|
+
export declare class WhislistComponent extends BaseSection implements OnInit {
|
|
8
9
|
private readonly cartService;
|
|
9
10
|
private readonly _eventService;
|
|
10
11
|
private readonly storageService;
|
|
@@ -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(): "#000000" | "#ffffff";
|
|
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
|