simpo-component-library 1.3.14 → 1.4.0
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-list/product-list.component.mjs +5 -4
- package/esm2022/lib/ecommerce/sections/user-profile/user-profile.component.mjs +58 -0
- package/esm2022/lib/ecommerce/sections/user-profile/user-profile.modal.mjs +2 -0
- package/esm2022/lib/ecommerce/sections/whislist/whislist.component.mjs +60 -0
- package/esm2022/lib/ecommerce/styles/order.modal.mjs +11 -0
- package/esm2022/lib/sections/navbar-section/navbar-section.component.mjs +3 -6
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/simpo-component-library.mjs +117 -18
- 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/user-profile/user-profile.component.d.ts +23 -0
- package/lib/ecommerce/sections/user-profile/user-profile.modal.d.ts +36 -0
- package/lib/ecommerce/sections/whislist/whislist.component.d.ts +19 -0
- package/lib/ecommerce/styles/order.modal.d.ts +12 -0
- package/lib/sections/navbar-section/navbar-section.component.d.ts +0 -1
- package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/simpo-component-library-1.4.0.tgz +0 -0
- package/simpo-component-library-1.3.14.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
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { ResponseData, Tabs } from './user-profile.modal';
|
|
3
|
+
import { UserDetails } from '@simpo-ui/ecommerce/styles/cart.modal';
|
|
4
|
+
import { OrderItem } from '@simpo-ui/ecommerce/styles/order.modal';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class UserProfileComponent implements OnInit {
|
|
7
|
+
responseData?: ResponseData;
|
|
8
|
+
data?: any;
|
|
9
|
+
index?: number;
|
|
10
|
+
edit?: boolean;
|
|
11
|
+
delete?: boolean;
|
|
12
|
+
selectedSidePanelTab: string | null;
|
|
13
|
+
userDetails: UserDetails | null;
|
|
14
|
+
sidePanelList: Tabs[];
|
|
15
|
+
tabs: Tabs[];
|
|
16
|
+
orderList: OrderItem[];
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
selectTab(tab: Tabs): void;
|
|
19
|
+
toggleSidepanelTab(tab: Tabs): void;
|
|
20
|
+
get getUserDetails(): UserDetails | null;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserProfileComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UserProfileComponent, "simpo-user-profile", 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>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { UserDetails } from "@simpo-ui/ecommerce/styles/cart.modal";
|
|
2
|
+
import { ActionModel, AnimationModel, BackgroundModel, LayOutModel } from "../../../styles/style.model";
|
|
3
|
+
import { OrderItem } from "@simpo-ui/ecommerce/styles/order.modal";
|
|
4
|
+
export interface Tabs {
|
|
5
|
+
icon: string | null;
|
|
6
|
+
value: string;
|
|
7
|
+
label: string;
|
|
8
|
+
status: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface UserProfileModal {
|
|
11
|
+
id: string;
|
|
12
|
+
sectionType: string;
|
|
13
|
+
sectionName: string;
|
|
14
|
+
content: ProfileContentModal;
|
|
15
|
+
styles: ProfileStylesModal;
|
|
16
|
+
action: ActionModel;
|
|
17
|
+
}
|
|
18
|
+
export interface ProfileStylesModal {
|
|
19
|
+
layout: LayOutModel;
|
|
20
|
+
background: BackgroundModel;
|
|
21
|
+
elementInRow: number;
|
|
22
|
+
mobileColumn: number;
|
|
23
|
+
animation: AnimationModel;
|
|
24
|
+
}
|
|
25
|
+
export interface ProfileContentModal {
|
|
26
|
+
display: Display;
|
|
27
|
+
button: string;
|
|
28
|
+
}
|
|
29
|
+
export interface Display {
|
|
30
|
+
showButton: boolean;
|
|
31
|
+
}
|
|
32
|
+
export interface ResponseData {
|
|
33
|
+
userDetails: UserDetails;
|
|
34
|
+
tabs: Tabs[];
|
|
35
|
+
orders: OrderItem[];
|
|
36
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { CartService } from '../../../services/cart.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class WhislistComponent implements OnInit {
|
|
5
|
+
private readonly cartService;
|
|
6
|
+
responseData?: any;
|
|
7
|
+
data?: any;
|
|
8
|
+
index?: number;
|
|
9
|
+
edit?: boolean;
|
|
10
|
+
delete?: boolean;
|
|
11
|
+
styles: any;
|
|
12
|
+
constructor(cartService: CartService);
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
moveToCart(item: any): void;
|
|
15
|
+
deleteFromWhislist(item: any): void;
|
|
16
|
+
addToFav(item: any, type: 'ADD' | 'SUBSTRACT'): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WhislistComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WhislistComponent, "simpo-whislist", 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>;
|
|
19
|
+
}
|
|
@@ -23,7 +23,6 @@ export declare class NavbarSectionComponent implements OnInit {
|
|
|
23
23
|
searchText: string;
|
|
24
24
|
constructor(_eventService: EventsService, router: Router, activatedRoute: ActivatedRoute, matDialog: MatDialog);
|
|
25
25
|
searchProducts(): void;
|
|
26
|
-
goToFav(): void;
|
|
27
26
|
goToAccount(): void;
|
|
28
27
|
goToCart(): void;
|
|
29
28
|
applyFilter(value: any, type: string): void;
|
|
@@ -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
package/public-api.d.ts
CHANGED
|
@@ -34,6 +34,8 @@ export * from './lib/ecommerce/sections/product-desc/product-desc.component';
|
|
|
34
34
|
export * from './lib/ecommerce/sections/product-list/product-list.component';
|
|
35
35
|
export * from './lib/ecommerce/sections/cart/cart.component';
|
|
36
36
|
export * from './lib/ecommerce/sections/checkout/checkout.component';
|
|
37
|
+
export * from './lib/ecommerce/sections/whislist/whislist.component';
|
|
38
|
+
export * from './lib/ecommerce/sections/user-profile/user-profile.component';
|
|
37
39
|
export * from './lib/services/events.service';
|
|
38
40
|
export * from './lib/directive/animation-directive';
|
|
39
41
|
export * from './lib/directive/background-directive';
|
|
Binary file
|
|
Binary file
|