simpo-component-library 1.4.77 → 1.4.78
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/directive/border-directive.mjs +5 -23
- package/esm2022/lib/directive/spacing-horizontal.directive.mjs +7 -4
- package/esm2022/lib/ecommerce/sections/address/address.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/authenticate-user/authenticate-user.component.mjs +3 -6
- package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +63 -61
- package/esm2022/lib/ecommerce/sections/order-details/order-details.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +8 -4
- package/esm2022/lib/ecommerce/sections/user-profile/user-profile.component.mjs +31 -23
- package/esm2022/lib/sections/navbar-section/navbar-section.component.mjs +2 -2
- package/fesm2022/simpo-component-library.mjs +116 -120
- 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 +14 -3
- package/lib/ecommerce/sections/product-list/product-list.component.d.ts +2 -0
- package/lib/ecommerce/sections/user-profile/user-profile.component.d.ts +7 -4
- package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
- package/package.json +1 -1
- package/simpo-component-library-1.4.78.tgz +0 -0
- package/simpo-component-library-1.4.74.tgz +0 -0
- package/simpo-component-library-1.4.75.tgz +0 -0
- package/simpo-component-library-1.4.76.tgz +0 -0
- package/simpo-component-library-1.4.77.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
|
}
|
|
@@ -4,7 +4,18 @@ import { RestService } from '../../../services/rest.service';
|
|
|
4
4
|
import { Router } from '@angular/router';
|
|
5
5
|
import { StorageServiceService } from '../../../services/storage.service';
|
|
6
6
|
import { EventsService } from '../../../services/events.service';
|
|
7
|
+
import { InputTextModel, StylesModel } from '../../../styles/style.model';
|
|
8
|
+
import { ActionModel } from "../../../styles/style.model";
|
|
7
9
|
import * as i0 from "@angular/core";
|
|
10
|
+
interface AuthenticateSectionModel {
|
|
11
|
+
content: AuthenticateContentModel;
|
|
12
|
+
styles: StylesModel;
|
|
13
|
+
action: ActionModel;
|
|
14
|
+
type: 'STATIC' | 'E_COMMERCE';
|
|
15
|
+
}
|
|
16
|
+
interface AuthenticateContentModel {
|
|
17
|
+
siteName: InputTextModel;
|
|
18
|
+
}
|
|
8
19
|
export declare class AuthenticateUserComponent implements OnInit {
|
|
9
20
|
matData: any;
|
|
10
21
|
private readonly restService;
|
|
@@ -13,8 +24,7 @@ export declare class AuthenticateUserComponent implements OnInit {
|
|
|
13
24
|
private readonly storageService;
|
|
14
25
|
private readonly dialogRef;
|
|
15
26
|
private readonly _eventService;
|
|
16
|
-
data?:
|
|
17
|
-
responseData?: any;
|
|
27
|
+
data?: AuthenticateSectionModel;
|
|
18
28
|
isLoading: boolean;
|
|
19
29
|
otpString: string;
|
|
20
30
|
screen: 'LOGIN' | 'OTP';
|
|
@@ -31,5 +41,6 @@ export declare class AuthenticateUserComponent implements OnInit {
|
|
|
31
41
|
resendOTP(): void;
|
|
32
42
|
get isMobile(): boolean;
|
|
33
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<AuthenticateUserComponent, [{ optional: true; }, null, null, null, null, { optional: true; }, null]>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AuthenticateUserComponent, "simpo-authenticate-user", never, { "data": { "alias": "data"; "required": false; };
|
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AuthenticateUserComponent, "simpo-authenticate-user", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
|
|
35
45
|
}
|
|
46
|
+
export {};
|
|
@@ -58,6 +58,8 @@ export declare class ProductListComponent extends BaseSection {
|
|
|
58
58
|
applyFilter(category?: any, type?: 'SORT' | 'FILTER'): void;
|
|
59
59
|
navigateFilter(sorting: string): void;
|
|
60
60
|
filterItemList(): void;
|
|
61
|
+
openFilter(): void;
|
|
62
|
+
openSorting(): void;
|
|
61
63
|
get getTotalPage(): number;
|
|
62
64
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductListComponent, never>;
|
|
63
65
|
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,6 +1,6 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { EventsService } from '.././../../services/events.service';
|
|
3
|
-
import { ProfileContentModal, ProfileStylesModal,
|
|
3
|
+
import { ProfileContentModal, ProfileStylesModal, Tabs, UserProfileModal } from './user-profile.modal';
|
|
4
4
|
import { OrderItem } from '../../styles/order.modal';
|
|
5
5
|
import { Router } from '@angular/router';
|
|
6
6
|
import { RestService } from "../../../services/rest.service";
|
|
@@ -15,8 +15,7 @@ export declare class UserProfileComponent implements OnInit {
|
|
|
15
15
|
private readonly storageService;
|
|
16
16
|
private readonly matDialog;
|
|
17
17
|
constructor(router: Router, _eventService: EventsService, restService: RestService, storageService: StorageServiceService, matDialog: MatDialog);
|
|
18
|
-
|
|
19
|
-
data?: any;
|
|
18
|
+
data?: UserProfileModal;
|
|
20
19
|
index?: number;
|
|
21
20
|
edit?: boolean;
|
|
22
21
|
delete?: boolean;
|
|
@@ -34,11 +33,15 @@ export declare class UserProfileComponent implements OnInit {
|
|
|
34
33
|
ngOnInit(): void;
|
|
35
34
|
getUserOrderDetails(): void;
|
|
36
35
|
get getProductWidth(): string;
|
|
36
|
+
getUserInfo(): void;
|
|
37
37
|
goToPanel(panel: any): void;
|
|
38
38
|
goBack(): void;
|
|
39
39
|
goToOrderDetails(order: any): void;
|
|
40
40
|
addNewAddress(): void;
|
|
41
41
|
goToHome(): void;
|
|
42
|
+
editAddress(index: number): void;
|
|
43
|
+
deleteAddress(index: number): void;
|
|
44
|
+
private saveProfile;
|
|
42
45
|
selectTab(tab: Tabs): void;
|
|
43
46
|
toggleSidepanelTab(tab: Tabs): void;
|
|
44
47
|
get getUserDetails(): User | null;
|
|
@@ -48,5 +51,5 @@ export declare class UserProfileComponent implements OnInit {
|
|
|
48
51
|
private getComplementColor;
|
|
49
52
|
private convertHEX;
|
|
50
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserProfileComponent, never>;
|
|
51
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UserProfileComponent, "simpo-user-profile", never, { "
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UserProfileComponent, "simpo-user-profile", 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>;
|
|
52
55
|
}
|
|
@@ -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
|
|
Binary file
|
|
Binary file
|
|
Binary file
|