simpo-component-library 3.2.59 → 3.2.62
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/address/address.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/authentication-required/authentication-required.component.mjs +71 -31
- package/esm2022/lib/ecommerce/sections/authentication-required/authentication-required.model.mjs +2 -0
- package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +17 -17
- package/esm2022/lib/sections/header-section/header-section.component.mjs +5 -5
- package/fesm2022/simpo-component-library.mjs +608 -572
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/components/input-fields/input-fields.component.d.ts +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/authentication-required/authentication-required.component.d.ts +16 -3
- package/lib/ecommerce/sections/authentication-required/authentication-required.model.d.ts +15 -0
- package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
- package/package.json +1 -1
- package/simpo-component-library-3.2.62.tgz +0 -0
- package/simpo-component-library-3.2.59.tgz +0 -0
@@ -13,7 +13,7 @@ export declare class InputFieldsComponent implements OnChanges {
|
|
13
13
|
constructor(elementRef: ElementRef);
|
14
14
|
ngOnChanges(changes: SimpleChanges): void;
|
15
15
|
handleMoneyInput(event: any): void;
|
16
|
-
get getTextColor(): "#
|
16
|
+
get getTextColor(): "#000" | "#FFF";
|
17
17
|
interpolateColor(color1: string, color2: string, factor: number): string;
|
18
18
|
padZero(str: string, length: number): string;
|
19
19
|
generateColorBasedOnNumber(number: number): string;
|
@@ -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
|
}
|
package/lib/ecommerce/sections/authentication-required/authentication-required.component.d.ts
CHANGED
@@ -4,8 +4,11 @@ import { MessageService } from 'primeng/api';
|
|
4
4
|
import { StorageServiceService } from '../../../services/storage.service';
|
5
5
|
import { MatBottomSheetRef } from '@angular/material/bottom-sheet';
|
6
6
|
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
7
|
+
import { AuthenticationModel, AuthenticationStylesModel } from './authentication-required.model';
|
8
|
+
import BaseSection from '../../../sections/BaseSection';
|
9
|
+
import { ButtonModel, LayOutModel } from '../../../styles/style.model';
|
7
10
|
import * as i0 from "@angular/core";
|
8
|
-
export declare class AuthenticationRequiredComponent {
|
11
|
+
export declare class AuthenticationRequiredComponent extends BaseSection {
|
9
12
|
private readonly restService;
|
10
13
|
private readonly router;
|
11
14
|
private readonly messageService;
|
@@ -13,6 +16,14 @@ export declare class AuthenticationRequiredComponent {
|
|
13
16
|
private readonly matDialog;
|
14
17
|
private readonly dialogRef;
|
15
18
|
private readonly bottomsheetRef;
|
19
|
+
data?: AuthenticationModel;
|
20
|
+
index?: number;
|
21
|
+
edit?: boolean;
|
22
|
+
delete?: boolean;
|
23
|
+
styles?: AuthenticationStylesModel;
|
24
|
+
button?: ButtonModel;
|
25
|
+
buttonId: string;
|
26
|
+
currentPage: 'LOGIN' | 'SIGNUP';
|
16
27
|
private mobileTimer;
|
17
28
|
email: string;
|
18
29
|
mobile: string;
|
@@ -45,10 +56,12 @@ export declare class AuthenticationRequiredComponent {
|
|
45
56
|
validateNumber(event: KeyboardEvent): void;
|
46
57
|
validateOTP(event: KeyboardEvent): void;
|
47
58
|
checkStrength(): void;
|
48
|
-
getStrengthColor(index: number): "
|
59
|
+
getStrengthColor(index: number): "tomato" | "#d3d3d3ba" | "orange" | "yellow" | "lightgreen";
|
49
60
|
get isEmailValid(): boolean;
|
50
61
|
get isPasswordValid(): boolean;
|
51
62
|
get isMobile(): boolean;
|
63
|
+
get stylesLayout(): LayOutModel;
|
64
|
+
get accentColor(): string;
|
52
65
|
static ɵfac: i0.ɵɵFactoryDeclaration<AuthenticationRequiredComponent, [null, null, null, null, null, { optional: true; }, { optional: true; }]>;
|
53
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AuthenticationRequiredComponent, "simpo-authentication-required", never, {}, {}, never, never, true, never>;
|
66
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AuthenticationRequiredComponent, "simpo-authentication-required", 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>;
|
54
67
|
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { Corners } from '../../../styles/index';
|
2
|
+
import { ActionModel, AnimationModel, BackgroundModel, BannerStylesModel, LayOutModel } from '../../../styles/style.model';
|
3
|
+
export interface AuthenticationModel {
|
4
|
+
id: string;
|
5
|
+
sectionType: string;
|
6
|
+
sectionName: string;
|
7
|
+
styles: BannerStylesModel;
|
8
|
+
action: ActionModel;
|
9
|
+
}
|
10
|
+
export interface AuthenticationStylesModel {
|
11
|
+
layout: LayOutModel;
|
12
|
+
background: BackgroundModel;
|
13
|
+
animation: AnimationModel;
|
14
|
+
corners: Corners;
|
15
|
+
}
|
@@ -17,7 +17,7 @@ export declare class PricingSectionComponent extends BaseSection {
|
|
17
17
|
style?: PricingSectionStylesModel;
|
18
18
|
constructor(_eventService: EventsService);
|
19
19
|
ngOnInit(): void;
|
20
|
-
getTextColor(): "#
|
20
|
+
getTextColor(): "#000000" | "#ffffff";
|
21
21
|
get headingSpace(): SPACING;
|
22
22
|
editSection(): void;
|
23
23
|
redirectTo(): void;
|
package/package.json
CHANGED
Binary file
|
Binary file
|