verben-authentication-ui 0.0.1
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/README.md +25 -0
- package/esm2022/lib/components/button/button.component.mjs +46 -0
- package/esm2022/lib/components/button/button.module.mjs +20 -0
- package/esm2022/lib/components/mail-validation/mail-validation.component.mjs +108 -0
- package/esm2022/lib/components/mail-validation/mail-validation.module.mjs +34 -0
- package/esm2022/lib/components/o-auth/o-auth.component.mjs +25 -0
- package/esm2022/lib/components/o-auth/o-auth.module.mjs +19 -0
- package/esm2022/lib/components/reset-password/ResetPasswordData.mjs +2 -0
- package/esm2022/lib/components/reset-password/reset-password.component.mjs +79 -0
- package/esm2022/lib/components/reset-password/reset-password.module.mjs +34 -0
- package/esm2022/lib/components/sign-up/sign-up.component.mjs +133 -0
- package/esm2022/lib/components/sign-up/sign-up.module.mjs +24 -0
- package/esm2022/lib/components/user-request/user-request.component.mjs +102 -0
- package/esm2022/lib/components/user-request/user-request.module.mjs +34 -0
- package/esm2022/lib/models/sign-up.mjs +2 -0
- package/esm2022/public-api.mjs +18 -0
- package/esm2022/verben-authentication-ui.mjs +5 -0
- package/fesm2022/verben-authentication-ui.mjs +613 -0
- package/fesm2022/verben-authentication-ui.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components/button/button.component.d.ts +17 -0
- package/lib/components/button/button.module.d.ts +10 -0
- package/lib/components/mail-validation/mail-validation.component.d.ts +42 -0
- package/lib/components/mail-validation/mail-validation.module.d.ts +10 -0
- package/lib/components/o-auth/o-auth.component.d.ts +10 -0
- package/lib/components/o-auth/o-auth.module.d.ts +9 -0
- package/lib/components/reset-password/ResetPasswordData.d.ts +5 -0
- package/lib/components/reset-password/reset-password.component.d.ts +22 -0
- package/lib/components/reset-password/reset-password.module.d.ts +10 -0
- package/lib/components/sign-up/sign-up.component.d.ts +47 -0
- package/lib/components/sign-up/sign-up.module.d.ts +13 -0
- package/lib/components/user-request/user-request.component.d.ts +46 -0
- package/lib/components/user-request/user-request.module.d.ts +10 -0
- package/lib/models/sign-up.d.ts +7 -0
- package/package.json +26 -0
- package/public-api.d.ts +9 -0
|
@@ -0,0 +1,613 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter, Component, Input, Output, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/forms';
|
|
4
|
+
import { FormControl, Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
5
|
+
import * as i1$1 from 'verben-ng-ui';
|
|
6
|
+
import { VerbenaInputModule, VerbenaButtonModule } from 'verben-ng-ui';
|
|
7
|
+
import * as i2 from '@angular/common';
|
|
8
|
+
import { CommonModule } from '@angular/common';
|
|
9
|
+
import * as i4 from '@angular/router';
|
|
10
|
+
import { RouterLink } from '@angular/router';
|
|
11
|
+
|
|
12
|
+
class ResetPasswordComponent {
|
|
13
|
+
fb;
|
|
14
|
+
title = 'Reset Password';
|
|
15
|
+
subTitle = 'Create a New Password';
|
|
16
|
+
buttonCaption = 'Submit';
|
|
17
|
+
buttonTextColor;
|
|
18
|
+
buttonBackgroundColor;
|
|
19
|
+
showOldPassword = false;
|
|
20
|
+
onSubmit = new EventEmitter();
|
|
21
|
+
resetPasswordForm;
|
|
22
|
+
constructor(fb) {
|
|
23
|
+
this.fb = fb;
|
|
24
|
+
this.resetPasswordForm = this.fb.group({
|
|
25
|
+
OldPassword: new FormControl(null, this.oldPasswordValidator.bind(this)),
|
|
26
|
+
Password: new FormControl(null, Validators.required),
|
|
27
|
+
ConfirmPassword: new FormControl(null, [
|
|
28
|
+
Validators.required,
|
|
29
|
+
this.confirmPasswordValidator.bind(this),
|
|
30
|
+
]),
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
checkForm() {
|
|
34
|
+
return this.resetPasswordForm.valid;
|
|
35
|
+
}
|
|
36
|
+
oldPasswordValidator(control) {
|
|
37
|
+
if (this.showOldPassword && control.value == null) {
|
|
38
|
+
return { customValidation: true };
|
|
39
|
+
}
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
confirmPasswordValidator(control) {
|
|
43
|
+
if (this.resetPasswordForm &&
|
|
44
|
+
this.resetPasswordForm.controls['Password'] &&
|
|
45
|
+
this.resetPasswordForm.controls['Password'].value !== control.value) {
|
|
46
|
+
return { customValidation: true };
|
|
47
|
+
}
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
submit() {
|
|
51
|
+
if (!this.checkForm()) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
var data = {
|
|
55
|
+
OldPassword: this.showOldPassword
|
|
56
|
+
? this.resetPasswordForm.controls['OldPassword'].value
|
|
57
|
+
: undefined,
|
|
58
|
+
Password: this.resetPasswordForm.controls['Password'].value,
|
|
59
|
+
ConfirmPassword: this.resetPasswordForm.controls['ConfirmPassword'].value,
|
|
60
|
+
};
|
|
61
|
+
this.onSubmit.emit(data);
|
|
62
|
+
}
|
|
63
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: ResetPasswordComponent, deps: [{ token: i1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
64
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.9", type: ResetPasswordComponent, selector: "verben-reset-password", inputs: { title: "title", subTitle: "subTitle", buttonCaption: "buttonCaption", buttonTextColor: "buttonTextColor", buttonBackgroundColor: "buttonBackgroundColor", showOldPassword: "showOldPassword" }, outputs: { onSubmit: "onSubmit" }, ngImport: i0, template: "<div [formGroup]=\"this.resetPasswordForm\" class=\"reset-password-container flex flex-col\">\n <div class=\"reset-password-header flex flex-col\">\n <div class=\"reset-password-title\">{{title}}</div>\n <div class=\"reset-password-subtitle\">{{subTitle}}</div>\n </div>\n <div *ngIf=\"showOldPassword\" class=\"form-field flex flex-col\">\n <div class=\"form-field-caption\">Old Password</div>\n <verbena-input borderRadius=\"12px\" formControlName=\"OldPassword\" type=\"password\"></verbena-input>\n </div>\n <div class=\"form-field flex flex-col\">\n <div class=\"form-field-caption\">New Password</div>\n <verbena-input borderRadius=\"12px\" formControlName=\"Password\" type=\"password\"></verbena-input>\n </div>\n <div class=\"form-field flex flex-col\">\n <div class=\"form-field-caption\">Confirm Password</div>\n <verbena-input borderRadius=\"12px\" formControlName=\"ConfirmPassword\" type=\"password\"></verbena-input>\n </div>\n <verbena-button fontWeight=\"700\" (click)=\"submit()\" [text]=\"buttonCaption\" width=\"100%\" [textColor]=\"buttonTextColor\"\n [bgColor]=\"buttonBackgroundColor\" borderRadius=\"25px\" [disable]=\"!this.checkForm()\"></verbena-button>\n\n</div>", styles: ["*{font-family:sans-serif;font-size:16px}.flex{display:flex}.flex-col{flex-direction:column}.font-bold{font-weight:700}.justify-center{justify-content:center}.justify-end{justify-content:end}.align-items-center{align-items:center}.grid{display:grid}.verben-error-message{font-size:.8rem;color:red}.verben-input{border:1px solid #cbd5e1;outline:none;border-radius:5px;color:#334155;transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s,outline-color .2s}.verben-input::placeholder{color:#64748b}.verben-input:hover{border:1px solid #697e97}.verben-input.disabled{opacity:1;background-color:light-dark(rgba(239,239,239,.3),rgba(59,59,59,.3));pointer-events:none;color:#64748b}.verben-input:disabled{opacity:1;background-color:light-dark(rgba(239,239,239,.3),rgba(59,59,59,.3));pointer-events:none;color:#64748b}.verben-input.focused{border-color:#3b82f6;outline:none}.verben-input:focus{border-color:#3b82f6;outline:none}.verben-input.ng-invalid{border-color:red}.verben-button{padding:8px 15px;border-radius:4px;border:none;text-align:center}.verben-button.primary{background-color:#ffe681}.verben-button.secondary{background-color:#d9d9d940}.reset-password-container{gap:25px;padding:50px;border:1px solid rgba(102,102,102,.5);box-shadow:4px 4px 4px #00000040;border-radius:24px}.reset-password-title{font-size:30px;font-weight:700}.reset-password-subtitle{font-size:14px;font-weight:500;color:#666}.form-field{gap:5px}.form-field-caption{color:#666}\n"], dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i1$1.VerbenaInputComponent, selector: "verbena-input", inputs: ["label", "placeHolder", "required", "svgPosition", "minLength", "maxLength", "type", "bgColor", "border", "borderRadius", "textColor", "value", "labelPosition", "labelColor", "disable", "min", "max", "showBorder", "showErrorMessage", "errorMessageColor", "errorBorderColor", "errorPosition", "svg", "svgWidth", "svgHeight", "svgColor", "capitalization", "inputContainerClass", "inputFieldClass", "inputWrapperClass", "customErrorMessages"], outputs: ["valueChange"] }, { kind: "component", type: i1$1.VerbenaButtonComponent, selector: "verbena-button", inputs: ["text", "icon", "svgPosition", "bgColor", "textColor", "border", "borderRadius", "pd", "width", "height", "fontSize", "fontWeight", "disable", "styleType", "svg", "svgWidth", "svgHeight", "svgColor", "buttonClass", "buttonTextClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
65
|
+
}
|
|
66
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: ResetPasswordComponent, decorators: [{
|
|
67
|
+
type: Component,
|
|
68
|
+
args: [{ selector: 'verben-reset-password', template: "<div [formGroup]=\"this.resetPasswordForm\" class=\"reset-password-container flex flex-col\">\n <div class=\"reset-password-header flex flex-col\">\n <div class=\"reset-password-title\">{{title}}</div>\n <div class=\"reset-password-subtitle\">{{subTitle}}</div>\n </div>\n <div *ngIf=\"showOldPassword\" class=\"form-field flex flex-col\">\n <div class=\"form-field-caption\">Old Password</div>\n <verbena-input borderRadius=\"12px\" formControlName=\"OldPassword\" type=\"password\"></verbena-input>\n </div>\n <div class=\"form-field flex flex-col\">\n <div class=\"form-field-caption\">New Password</div>\n <verbena-input borderRadius=\"12px\" formControlName=\"Password\" type=\"password\"></verbena-input>\n </div>\n <div class=\"form-field flex flex-col\">\n <div class=\"form-field-caption\">Confirm Password</div>\n <verbena-input borderRadius=\"12px\" formControlName=\"ConfirmPassword\" type=\"password\"></verbena-input>\n </div>\n <verbena-button fontWeight=\"700\" (click)=\"submit()\" [text]=\"buttonCaption\" width=\"100%\" [textColor]=\"buttonTextColor\"\n [bgColor]=\"buttonBackgroundColor\" borderRadius=\"25px\" [disable]=\"!this.checkForm()\"></verbena-button>\n\n</div>", styles: ["*{font-family:sans-serif;font-size:16px}.flex{display:flex}.flex-col{flex-direction:column}.font-bold{font-weight:700}.justify-center{justify-content:center}.justify-end{justify-content:end}.align-items-center{align-items:center}.grid{display:grid}.verben-error-message{font-size:.8rem;color:red}.verben-input{border:1px solid #cbd5e1;outline:none;border-radius:5px;color:#334155;transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s,outline-color .2s}.verben-input::placeholder{color:#64748b}.verben-input:hover{border:1px solid #697e97}.verben-input.disabled{opacity:1;background-color:light-dark(rgba(239,239,239,.3),rgba(59,59,59,.3));pointer-events:none;color:#64748b}.verben-input:disabled{opacity:1;background-color:light-dark(rgba(239,239,239,.3),rgba(59,59,59,.3));pointer-events:none;color:#64748b}.verben-input.focused{border-color:#3b82f6;outline:none}.verben-input:focus{border-color:#3b82f6;outline:none}.verben-input.ng-invalid{border-color:red}.verben-button{padding:8px 15px;border-radius:4px;border:none;text-align:center}.verben-button.primary{background-color:#ffe681}.verben-button.secondary{background-color:#d9d9d940}.reset-password-container{gap:25px;padding:50px;border:1px solid rgba(102,102,102,.5);box-shadow:4px 4px 4px #00000040;border-radius:24px}.reset-password-title{font-size:30px;font-weight:700}.reset-password-subtitle{font-size:14px;font-weight:500;color:#666}.form-field{gap:5px}.form-field-caption{color:#666}\n"] }]
|
|
69
|
+
}], ctorParameters: () => [{ type: i1.FormBuilder }], propDecorators: { title: [{
|
|
70
|
+
type: Input
|
|
71
|
+
}], subTitle: [{
|
|
72
|
+
type: Input
|
|
73
|
+
}], buttonCaption: [{
|
|
74
|
+
type: Input
|
|
75
|
+
}], buttonTextColor: [{
|
|
76
|
+
type: Input
|
|
77
|
+
}], buttonBackgroundColor: [{
|
|
78
|
+
type: Input
|
|
79
|
+
}], showOldPassword: [{
|
|
80
|
+
type: Input
|
|
81
|
+
}], onSubmit: [{
|
|
82
|
+
type: Output
|
|
83
|
+
}] } });
|
|
84
|
+
|
|
85
|
+
class ResetPasswordModule {
|
|
86
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: ResetPasswordModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
87
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.9", ngImport: i0, type: ResetPasswordModule, declarations: [ResetPasswordComponent], imports: [FormsModule,
|
|
88
|
+
ReactiveFormsModule,
|
|
89
|
+
VerbenaInputModule,
|
|
90
|
+
VerbenaButtonModule,
|
|
91
|
+
CommonModule], exports: [ResetPasswordComponent] });
|
|
92
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: ResetPasswordModule, imports: [FormsModule,
|
|
93
|
+
ReactiveFormsModule,
|
|
94
|
+
VerbenaInputModule,
|
|
95
|
+
VerbenaButtonModule,
|
|
96
|
+
CommonModule] });
|
|
97
|
+
}
|
|
98
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: ResetPasswordModule, decorators: [{
|
|
99
|
+
type: NgModule,
|
|
100
|
+
args: [{
|
|
101
|
+
declarations: [ResetPasswordComponent],
|
|
102
|
+
imports: [
|
|
103
|
+
FormsModule,
|
|
104
|
+
ReactiveFormsModule,
|
|
105
|
+
VerbenaInputModule,
|
|
106
|
+
VerbenaButtonModule,
|
|
107
|
+
CommonModule,
|
|
108
|
+
],
|
|
109
|
+
exports: [ResetPasswordComponent],
|
|
110
|
+
}]
|
|
111
|
+
}] });
|
|
112
|
+
|
|
113
|
+
class UserRequestComponent {
|
|
114
|
+
width = '500px';
|
|
115
|
+
fName = '';
|
|
116
|
+
lName = '';
|
|
117
|
+
email = '';
|
|
118
|
+
pwd = '';
|
|
119
|
+
cPwd = '';
|
|
120
|
+
customClass = '';
|
|
121
|
+
bgColor = '#fff';
|
|
122
|
+
boxShadow = '4px 4px 4px rgba(0, 0, 0, 0.25)';
|
|
123
|
+
border = '1px solid #66666680';
|
|
124
|
+
borderRadius = '24px';
|
|
125
|
+
textColor = '#333';
|
|
126
|
+
height = 'auto';
|
|
127
|
+
pd = '32px 48px';
|
|
128
|
+
// Button Inputs
|
|
129
|
+
text = 'Send Request';
|
|
130
|
+
color = 'black';
|
|
131
|
+
btnBorder = '1px solid #FFE681';
|
|
132
|
+
btnBorderRadius = "40px";
|
|
133
|
+
btnBgColor = '#FFE681';
|
|
134
|
+
btnWidth = '100%';
|
|
135
|
+
btnPd = '10px 20px';
|
|
136
|
+
formSubmit = new EventEmitter();
|
|
137
|
+
get styles() {
|
|
138
|
+
return {
|
|
139
|
+
'background-color': this.bgColor,
|
|
140
|
+
'box-shadow': this.boxShadow,
|
|
141
|
+
'border': this.border,
|
|
142
|
+
'border-radius': this.borderRadius,
|
|
143
|
+
'color': this.textColor,
|
|
144
|
+
'max-width': this.width,
|
|
145
|
+
'margin': '0 auto',
|
|
146
|
+
'height': this.height,
|
|
147
|
+
'padding': this.pd,
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
submitForm() {
|
|
151
|
+
this.formSubmit.emit({
|
|
152
|
+
FirstName: this.fName,
|
|
153
|
+
LastName: this.lName,
|
|
154
|
+
MailAddress: this.email,
|
|
155
|
+
Password: this.pwd,
|
|
156
|
+
ConfirmPassword: this.cPwd
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: UserRequestComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
160
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.9", type: UserRequestComponent, selector: "lib-user-request", inputs: { width: "width", fName: "fName", lName: "lName", email: "email", pwd: "pwd", cPwd: "cPwd", customClass: "customClass", bgColor: "bgColor", boxShadow: "boxShadow", border: "border", borderRadius: "borderRadius", textColor: "textColor", height: "height", pd: "pd", text: "text", color: "color", btnBorder: "btnBorder", btnBorderRadius: "btnBorderRadius", btnBgColor: "btnBgColor", btnWidth: "btnWidth", btnPd: "btnPd" }, outputs: { formSubmit: "formSubmit" }, ngImport: i0, template: "<section [ngStyle]=\"styles\" class=\"{{ customClass }}\">\n <h2 class=\"font-medium text-[2rem] leading-[48px] text-[#333]\">\n Request An Account\n </h2>\n <div class=\"flex flex-col gap-5 mt-3\">\n <verbena-input\n [label]=\"'First Name'\"\n [labelColor]=\"'#666'\"\n [placeHolder]=\"''\"\n [required]=\"true\"\n [type]=\"'text'\"\n [(value)]=\"fName\"\n [showBorder]=\"true\"\n [bgColor]=\"'white'\"\n [border]=\"'1px solid #66666659'\"\n [borderRadius]=\"'12px'\"\n [showErrorMessage]=\"true\"\n [errorMessageColor]=\"'red'\"\n [errorBorderColor]=\"'red'\"\n [errorPosition]=\"'bottom'\"\n class=\"outline-none focus-none\"\n ></verbena-input>\n <verbena-input\n [label]=\"'Last Name'\"\n [labelColor]=\"'#666'\"\n [placeHolder]=\"''\"\n [required]=\"true\"\n [type]=\"'text'\"\n [(value)]=\"lName\"\n [showBorder]=\"true\"\n [bgColor]=\"'white'\"\n [border]=\"'1px solid #66666659'\"\n [borderRadius]=\"'12px'\"\n [showErrorMessage]=\"true\"\n [errorMessageColor]=\"'red'\"\n [errorBorderColor]=\"'red'\"\n [errorPosition]=\"'bottom'\"\n class=\"outline-none focus-none\"\n ></verbena-input>\n <verbena-input\n [label]=\"'E-mail Address'\"\n [labelColor]=\"'#666'\"\n [placeHolder]=\"''\"\n [required]=\"true\"\n [type]=\"'email'\"\n [(value)]=\"email\"\n [showBorder]=\"true\"\n [bgColor]=\"'white'\"\n [border]=\"'1px solid #66666659'\"\n [borderRadius]=\"'12px'\"\n [showErrorMessage]=\"true\"\n [errorMessageColor]=\"'red'\"\n [errorBorderColor]=\"'red'\"\n [errorPosition]=\"'bottom'\"\n class=\"outline-none focus-none\"\n ></verbena-input>\n\n <verbena-input\n [label]=\"'Password'\"\n [labelColor]=\"'#666'\"\n [placeHolder]=\"''\"\n [required]=\"true\"\n [type]=\"'password'\"\n [(value)]=\"pwd\"\n [showBorder]=\"true\"\n [bgColor]=\"'white'\"\n [border]=\"'1px solid #66666659'\"\n [borderRadius]=\"'12px'\"\n [showErrorMessage]=\"true\"\n [errorMessageColor]=\"'red'\"\n [errorBorderColor]=\"'red'\"\n [errorPosition]=\"'bottom'\"\n class=\"outline-none focus-none\"\n ></verbena-input>\n\n <verbena-input\n [label]=\"'Confirm Password'\"\n [labelColor]=\"'#666'\"\n [placeHolder]=\"''\"\n [required]=\"true\"\n [type]=\"'password'\"\n [(value)]=\"cPwd\"\n [showBorder]=\"true\"\n [bgColor]=\"'white'\"\n [border]=\"'1px solid #66666659'\"\n [borderRadius]=\"'12px'\"\n [showErrorMessage]=\"true\"\n [errorMessageColor]=\"'red'\"\n [errorBorderColor]=\"'red'\"\n [errorPosition]=\"'bottom'\"\n class=\"outline-none focus-none\"\n ></verbena-input>\n\n <p class=\"text-[#666666] text-sm\">\n <input class=\"accent\" type=\"checkbox\" />\n By creating an account, I agree to our<br />\n <a href=\"#\" class=\"text-black text-sm font-[500] underline\"\n >Terms of use</a\n >\n and\n <a href=\"#\" class=\"text-black font-[500] text-sm underline\"\n >Privacy Policy\n </a>\n </p>\n <verbena-button\n [text]=\"text\"\n [bgColor]=\"btnBgColor\"\n [textColor]=\"color\"\n [border]=\"btnBorder\"\n [borderRadius]=\"btnBorderRadius\"\n [pd]=\"btnPd\"\n (click)=\"submitForm()\"\n [width]=\"btnWidth\"\n buttonClass=\"font-medium text-[22px] leading-[33px]\"\n ></verbena-button>\n <div class=\"flex flex-col gap-4\">\n <div class=\"flex items-center gap-2\">\n <hr class=\"flex-1 border-r border-[#66666640]\" />\n <span class=\"mx-2 text-[#666666]\">OR</span>\n <hr class=\"flex-1 border-r border-[#66666640]\" />\n </div>\n </div>\n\n <verbena-button\n svg=\"google-logo\"\n [svgHeight]=\"24\"\n [svgWidth]=\"24\"\n text=\"Continue with Google\"\n bgColor=\"white\"\n textColor=\"black\"\n border=\"1px solid #333\"\n borderRadius=\"40px\"\n pd=\"10px 20px\"\n width=\"100%\"\n svgPosition=\"left\"\n buttonClass=\"font-normal text-[24px] leading-[29.05px] text-[#333]\"\n ></verbena-button>\n\n <verbena-button\n svg=\"apple-logo\"\n [svgHeight]=\"24\"\n [svgWidth]=\"24\"\n text=\"Continue with Apple\"\n bgColor=\"white\"\n textColor=\"black\"\n border=\"1px solid #333\"\n borderRadius=\"40px\"\n pd=\"10px 20px\"\n width=\"100%\"\n svgPosition=\"left\"\n buttonClass=\"font-normal text-[24px] leading-[29.05px] text-[#333] mt-2\"\n ></verbena-button>\n </div>\n</section>\n", styles: [".flex{display:flex}.overflow-hidden{overflow:hidden}.h-full{height:100%}.underline{text-decoration:underline}.mt-4{margin-top:1rem}.space-y-4>:not([hidden])~:not([hidden]){margin-top:1rem}.gap-1>:not([hidden])~:not([hidden]){gap:.25rem}.pt-3{padding-top:.75rem}.mt-5{margin-top:1.25rem}.border{border-width:1px}.rounded-xl{border-radius:.75rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.flex-col{flex-direction:column}.object-cover{object-fit:cover}.w-full{width:100%}.accent{accent-color:#34A853}\n"], dependencies: [{ kind: "component", type: i1$1.VerbenaInputComponent, selector: "verbena-input", inputs: ["label", "placeHolder", "required", "svgPosition", "minLength", "maxLength", "type", "bgColor", "border", "borderRadius", "textColor", "value", "labelPosition", "labelColor", "disable", "min", "max", "showBorder", "showErrorMessage", "errorMessageColor", "errorBorderColor", "errorPosition", "svg", "svgWidth", "svgHeight", "svgColor", "capitalization", "inputContainerClass", "inputFieldClass", "inputWrapperClass", "customErrorMessages"], outputs: ["valueChange"] }, { kind: "component", type: i1$1.VerbenaButtonComponent, selector: "verbena-button", inputs: ["text", "icon", "svgPosition", "bgColor", "textColor", "border", "borderRadius", "pd", "width", "height", "fontSize", "fontWeight", "disable", "styleType", "svg", "svgWidth", "svgHeight", "svgColor", "buttonClass", "buttonTextClass"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
161
|
+
}
|
|
162
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: UserRequestComponent, decorators: [{
|
|
163
|
+
type: Component,
|
|
164
|
+
args: [{ selector: 'lib-user-request', template: "<section [ngStyle]=\"styles\" class=\"{{ customClass }}\">\n <h2 class=\"font-medium text-[2rem] leading-[48px] text-[#333]\">\n Request An Account\n </h2>\n <div class=\"flex flex-col gap-5 mt-3\">\n <verbena-input\n [label]=\"'First Name'\"\n [labelColor]=\"'#666'\"\n [placeHolder]=\"''\"\n [required]=\"true\"\n [type]=\"'text'\"\n [(value)]=\"fName\"\n [showBorder]=\"true\"\n [bgColor]=\"'white'\"\n [border]=\"'1px solid #66666659'\"\n [borderRadius]=\"'12px'\"\n [showErrorMessage]=\"true\"\n [errorMessageColor]=\"'red'\"\n [errorBorderColor]=\"'red'\"\n [errorPosition]=\"'bottom'\"\n class=\"outline-none focus-none\"\n ></verbena-input>\n <verbena-input\n [label]=\"'Last Name'\"\n [labelColor]=\"'#666'\"\n [placeHolder]=\"''\"\n [required]=\"true\"\n [type]=\"'text'\"\n [(value)]=\"lName\"\n [showBorder]=\"true\"\n [bgColor]=\"'white'\"\n [border]=\"'1px solid #66666659'\"\n [borderRadius]=\"'12px'\"\n [showErrorMessage]=\"true\"\n [errorMessageColor]=\"'red'\"\n [errorBorderColor]=\"'red'\"\n [errorPosition]=\"'bottom'\"\n class=\"outline-none focus-none\"\n ></verbena-input>\n <verbena-input\n [label]=\"'E-mail Address'\"\n [labelColor]=\"'#666'\"\n [placeHolder]=\"''\"\n [required]=\"true\"\n [type]=\"'email'\"\n [(value)]=\"email\"\n [showBorder]=\"true\"\n [bgColor]=\"'white'\"\n [border]=\"'1px solid #66666659'\"\n [borderRadius]=\"'12px'\"\n [showErrorMessage]=\"true\"\n [errorMessageColor]=\"'red'\"\n [errorBorderColor]=\"'red'\"\n [errorPosition]=\"'bottom'\"\n class=\"outline-none focus-none\"\n ></verbena-input>\n\n <verbena-input\n [label]=\"'Password'\"\n [labelColor]=\"'#666'\"\n [placeHolder]=\"''\"\n [required]=\"true\"\n [type]=\"'password'\"\n [(value)]=\"pwd\"\n [showBorder]=\"true\"\n [bgColor]=\"'white'\"\n [border]=\"'1px solid #66666659'\"\n [borderRadius]=\"'12px'\"\n [showErrorMessage]=\"true\"\n [errorMessageColor]=\"'red'\"\n [errorBorderColor]=\"'red'\"\n [errorPosition]=\"'bottom'\"\n class=\"outline-none focus-none\"\n ></verbena-input>\n\n <verbena-input\n [label]=\"'Confirm Password'\"\n [labelColor]=\"'#666'\"\n [placeHolder]=\"''\"\n [required]=\"true\"\n [type]=\"'password'\"\n [(value)]=\"cPwd\"\n [showBorder]=\"true\"\n [bgColor]=\"'white'\"\n [border]=\"'1px solid #66666659'\"\n [borderRadius]=\"'12px'\"\n [showErrorMessage]=\"true\"\n [errorMessageColor]=\"'red'\"\n [errorBorderColor]=\"'red'\"\n [errorPosition]=\"'bottom'\"\n class=\"outline-none focus-none\"\n ></verbena-input>\n\n <p class=\"text-[#666666] text-sm\">\n <input class=\"accent\" type=\"checkbox\" />\n By creating an account, I agree to our<br />\n <a href=\"#\" class=\"text-black text-sm font-[500] underline\"\n >Terms of use</a\n >\n and\n <a href=\"#\" class=\"text-black font-[500] text-sm underline\"\n >Privacy Policy\n </a>\n </p>\n <verbena-button\n [text]=\"text\"\n [bgColor]=\"btnBgColor\"\n [textColor]=\"color\"\n [border]=\"btnBorder\"\n [borderRadius]=\"btnBorderRadius\"\n [pd]=\"btnPd\"\n (click)=\"submitForm()\"\n [width]=\"btnWidth\"\n buttonClass=\"font-medium text-[22px] leading-[33px]\"\n ></verbena-button>\n <div class=\"flex flex-col gap-4\">\n <div class=\"flex items-center gap-2\">\n <hr class=\"flex-1 border-r border-[#66666640]\" />\n <span class=\"mx-2 text-[#666666]\">OR</span>\n <hr class=\"flex-1 border-r border-[#66666640]\" />\n </div>\n </div>\n\n <verbena-button\n svg=\"google-logo\"\n [svgHeight]=\"24\"\n [svgWidth]=\"24\"\n text=\"Continue with Google\"\n bgColor=\"white\"\n textColor=\"black\"\n border=\"1px solid #333\"\n borderRadius=\"40px\"\n pd=\"10px 20px\"\n width=\"100%\"\n svgPosition=\"left\"\n buttonClass=\"font-normal text-[24px] leading-[29.05px] text-[#333]\"\n ></verbena-button>\n\n <verbena-button\n svg=\"apple-logo\"\n [svgHeight]=\"24\"\n [svgWidth]=\"24\"\n text=\"Continue with Apple\"\n bgColor=\"white\"\n textColor=\"black\"\n border=\"1px solid #333\"\n borderRadius=\"40px\"\n pd=\"10px 20px\"\n width=\"100%\"\n svgPosition=\"left\"\n buttonClass=\"font-normal text-[24px] leading-[29.05px] text-[#333] mt-2\"\n ></verbena-button>\n </div>\n</section>\n", styles: [".flex{display:flex}.overflow-hidden{overflow:hidden}.h-full{height:100%}.underline{text-decoration:underline}.mt-4{margin-top:1rem}.space-y-4>:not([hidden])~:not([hidden]){margin-top:1rem}.gap-1>:not([hidden])~:not([hidden]){gap:.25rem}.pt-3{padding-top:.75rem}.mt-5{margin-top:1.25rem}.border{border-width:1px}.rounded-xl{border-radius:.75rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.flex-col{flex-direction:column}.object-cover{object-fit:cover}.w-full{width:100%}.accent{accent-color:#34A853}\n"] }]
|
|
165
|
+
}], propDecorators: { width: [{
|
|
166
|
+
type: Input
|
|
167
|
+
}], fName: [{
|
|
168
|
+
type: Input
|
|
169
|
+
}], lName: [{
|
|
170
|
+
type: Input
|
|
171
|
+
}], email: [{
|
|
172
|
+
type: Input
|
|
173
|
+
}], pwd: [{
|
|
174
|
+
type: Input
|
|
175
|
+
}], cPwd: [{
|
|
176
|
+
type: Input
|
|
177
|
+
}], customClass: [{
|
|
178
|
+
type: Input
|
|
179
|
+
}], bgColor: [{
|
|
180
|
+
type: Input
|
|
181
|
+
}], boxShadow: [{
|
|
182
|
+
type: Input
|
|
183
|
+
}], border: [{
|
|
184
|
+
type: Input
|
|
185
|
+
}], borderRadius: [{
|
|
186
|
+
type: Input
|
|
187
|
+
}], textColor: [{
|
|
188
|
+
type: Input
|
|
189
|
+
}], height: [{
|
|
190
|
+
type: Input
|
|
191
|
+
}], pd: [{
|
|
192
|
+
type: Input
|
|
193
|
+
}], text: [{
|
|
194
|
+
type: Input
|
|
195
|
+
}], color: [{
|
|
196
|
+
type: Input
|
|
197
|
+
}], btnBorder: [{
|
|
198
|
+
type: Input
|
|
199
|
+
}], btnBorderRadius: [{
|
|
200
|
+
type: Input
|
|
201
|
+
}], btnBgColor: [{
|
|
202
|
+
type: Input
|
|
203
|
+
}], btnWidth: [{
|
|
204
|
+
type: Input
|
|
205
|
+
}], btnPd: [{
|
|
206
|
+
type: Input
|
|
207
|
+
}], formSubmit: [{
|
|
208
|
+
type: Output
|
|
209
|
+
}] } });
|
|
210
|
+
|
|
211
|
+
class UserRequestModule {
|
|
212
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: UserRequestModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
213
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.9", ngImport: i0, type: UserRequestModule, declarations: [UserRequestComponent], imports: [FormsModule,
|
|
214
|
+
ReactiveFormsModule,
|
|
215
|
+
VerbenaInputModule,
|
|
216
|
+
VerbenaButtonModule,
|
|
217
|
+
CommonModule], exports: [UserRequestComponent] });
|
|
218
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: UserRequestModule, imports: [FormsModule,
|
|
219
|
+
ReactiveFormsModule,
|
|
220
|
+
VerbenaInputModule,
|
|
221
|
+
VerbenaButtonModule,
|
|
222
|
+
CommonModule] });
|
|
223
|
+
}
|
|
224
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: UserRequestModule, decorators: [{
|
|
225
|
+
type: NgModule,
|
|
226
|
+
args: [{
|
|
227
|
+
declarations: [UserRequestComponent],
|
|
228
|
+
imports: [
|
|
229
|
+
FormsModule,
|
|
230
|
+
ReactiveFormsModule,
|
|
231
|
+
VerbenaInputModule,
|
|
232
|
+
VerbenaButtonModule,
|
|
233
|
+
CommonModule,
|
|
234
|
+
],
|
|
235
|
+
exports: [UserRequestComponent],
|
|
236
|
+
}]
|
|
237
|
+
}] });
|
|
238
|
+
|
|
239
|
+
class MailValidationComponent {
|
|
240
|
+
customClass = '';
|
|
241
|
+
bgColor = '#fff';
|
|
242
|
+
boxShadow = '4px 4px 4px rgba(0, 0, 0, 0.25)';
|
|
243
|
+
border = '1px solid #66666680';
|
|
244
|
+
borderRadius = '24px';
|
|
245
|
+
textColor = '#666666';
|
|
246
|
+
height = 'auto';
|
|
247
|
+
pd = '32px 48px';
|
|
248
|
+
width = '600px';
|
|
249
|
+
text = 'Login';
|
|
250
|
+
textAlign = 'center';
|
|
251
|
+
color = 'black';
|
|
252
|
+
textSize = '32px';
|
|
253
|
+
btnBorder = '1px solid #FFE681';
|
|
254
|
+
btnBorderRadius = "40px";
|
|
255
|
+
btnBgColor = '#FFE681';
|
|
256
|
+
btnWidth = '100%';
|
|
257
|
+
btnPd = '7px 10px';
|
|
258
|
+
resendOtp = new EventEmitter();
|
|
259
|
+
proceedToNextStep = new EventEmitter();
|
|
260
|
+
login = new EventEmitter();
|
|
261
|
+
currentStep = 'linkSent';
|
|
262
|
+
handleResendOtp() {
|
|
263
|
+
this.resendOtp.emit();
|
|
264
|
+
}
|
|
265
|
+
goToNextStep() {
|
|
266
|
+
switch (this.currentStep) {
|
|
267
|
+
case 'linkSent':
|
|
268
|
+
this.currentStep = 'verified';
|
|
269
|
+
this.proceedToNextStep.emit(this.currentStep);
|
|
270
|
+
break;
|
|
271
|
+
case 'verified':
|
|
272
|
+
this.currentStep = 'accessGranted';
|
|
273
|
+
this.proceedToNextStep.emit(this.currentStep);
|
|
274
|
+
break;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
get styles() {
|
|
278
|
+
return {
|
|
279
|
+
'background-color': this.bgColor,
|
|
280
|
+
'box-shadow': this.boxShadow,
|
|
281
|
+
'border': this.border,
|
|
282
|
+
'border-radius': this.borderRadius,
|
|
283
|
+
'color': this.textColor,
|
|
284
|
+
'max-width': this.width,
|
|
285
|
+
'margin': '0 auto',
|
|
286
|
+
'height': this.height,
|
|
287
|
+
'padding': this.pd,
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
handleLogin() {
|
|
291
|
+
this.login.emit();
|
|
292
|
+
}
|
|
293
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: MailValidationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
294
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.9", type: MailValidationComponent, selector: "lib-mail-validation", inputs: { customClass: "customClass", bgColor: "bgColor", boxShadow: "boxShadow", border: "border", borderRadius: "borderRadius", textColor: "textColor", height: "height", pd: "pd", width: "width", text: "text", textAlign: "textAlign", color: "color", textSize: "textSize", btnBorder: "btnBorder", btnBorderRadius: "btnBorderRadius", btnBgColor: "btnBgColor", btnWidth: "btnWidth", btnPd: "btnPd" }, outputs: { resendOtp: "resendOtp", proceedToNextStep: "proceedToNextStep", login: "login" }, ngImport: i0, template: "<section [ngStyle]=\"styles\" class=\"{{ customClass }}\">\n <div *ngIf=\"currentStep === 'linkSent'\">\n <p [style.color]=\"textColor\" [style.font-size]=\"textSize\">\n Follow the link sent to your e-mail to verify your e-mail address\n </p>\n <p class=\"mt-4\" (click)=\"handleResendOtp()\">\n Didn't get a link? <a href=\"#\" class=\"underline resend\">Resend</a>\n </p>\n </div>\n\n <div *ngIf=\"currentStep === 'verified'\">\n <p [style.color]=\"textColor\" [style.font-size]=\"textSize\">\n Your e-mail has been verified! You will be notified when your access has\n been authorized\n </p>\n </div>\n\n <div *ngIf=\"currentStep === 'accessGranted'\">\n <p [style.color]=\"textColor\" [style.font-size]=\"textSize\">\n Your e-mail has been verified!\n </p>\n <div class=\"mt-4\">\n <verbena-button\n [text]=\"text\"\n [bgColor]=\"btnBgColor\"\n [textColor]=\"color\"\n [border]=\"btnBorder\"\n [borderRadius]=\"btnBorderRadius\"\n [pd]=\"btnPd\"\n (click)=\"handleLogin()\"\n [width]=\"btnWidth\"\n textSize=\"'22px'\"\n buttonClass=\"font-medium text-[22px] leading-[33px]\"\n ></verbena-button>\n </div>\n </div>\n</section>\n", styles: [".flex{display:flex}.overflow-hidden{overflow:hidden}.h-full{height:100%}.underline{text-decoration:underline}.mt-4{margin-top:1rem}.resend{color:#00f}.space-y-4>:not([hidden])~:not([hidden]){margin-top:1rem}.gap-1>:not([hidden])~:not([hidden]){gap:.25rem}.pt-3{padding-top:.75rem}.mt-5{margin-top:1.25rem}.border{border-width:1px}.rounded-xl{border-radius:.75rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.flex-col{flex-direction:column}.w-full{width:100%}\n"], dependencies: [{ kind: "component", type: i1$1.VerbenaButtonComponent, selector: "verbena-button", inputs: ["text", "icon", "svgPosition", "bgColor", "textColor", "border", "borderRadius", "pd", "width", "height", "fontSize", "fontWeight", "disable", "styleType", "svg", "svgWidth", "svgHeight", "svgColor", "buttonClass", "buttonTextClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
295
|
+
}
|
|
296
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: MailValidationComponent, decorators: [{
|
|
297
|
+
type: Component,
|
|
298
|
+
args: [{ selector: 'lib-mail-validation', template: "<section [ngStyle]=\"styles\" class=\"{{ customClass }}\">\n <div *ngIf=\"currentStep === 'linkSent'\">\n <p [style.color]=\"textColor\" [style.font-size]=\"textSize\">\n Follow the link sent to your e-mail to verify your e-mail address\n </p>\n <p class=\"mt-4\" (click)=\"handleResendOtp()\">\n Didn't get a link? <a href=\"#\" class=\"underline resend\">Resend</a>\n </p>\n </div>\n\n <div *ngIf=\"currentStep === 'verified'\">\n <p [style.color]=\"textColor\" [style.font-size]=\"textSize\">\n Your e-mail has been verified! You will be notified when your access has\n been authorized\n </p>\n </div>\n\n <div *ngIf=\"currentStep === 'accessGranted'\">\n <p [style.color]=\"textColor\" [style.font-size]=\"textSize\">\n Your e-mail has been verified!\n </p>\n <div class=\"mt-4\">\n <verbena-button\n [text]=\"text\"\n [bgColor]=\"btnBgColor\"\n [textColor]=\"color\"\n [border]=\"btnBorder\"\n [borderRadius]=\"btnBorderRadius\"\n [pd]=\"btnPd\"\n (click)=\"handleLogin()\"\n [width]=\"btnWidth\"\n textSize=\"'22px'\"\n buttonClass=\"font-medium text-[22px] leading-[33px]\"\n ></verbena-button>\n </div>\n </div>\n</section>\n", styles: [".flex{display:flex}.overflow-hidden{overflow:hidden}.h-full{height:100%}.underline{text-decoration:underline}.mt-4{margin-top:1rem}.resend{color:#00f}.space-y-4>:not([hidden])~:not([hidden]){margin-top:1rem}.gap-1>:not([hidden])~:not([hidden]){gap:.25rem}.pt-3{padding-top:.75rem}.mt-5{margin-top:1.25rem}.border{border-width:1px}.rounded-xl{border-radius:.75rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.flex-col{flex-direction:column}.w-full{width:100%}\n"] }]
|
|
299
|
+
}], propDecorators: { customClass: [{
|
|
300
|
+
type: Input
|
|
301
|
+
}], bgColor: [{
|
|
302
|
+
type: Input
|
|
303
|
+
}], boxShadow: [{
|
|
304
|
+
type: Input
|
|
305
|
+
}], border: [{
|
|
306
|
+
type: Input
|
|
307
|
+
}], borderRadius: [{
|
|
308
|
+
type: Input
|
|
309
|
+
}], textColor: [{
|
|
310
|
+
type: Input
|
|
311
|
+
}], height: [{
|
|
312
|
+
type: Input
|
|
313
|
+
}], pd: [{
|
|
314
|
+
type: Input
|
|
315
|
+
}], width: [{
|
|
316
|
+
type: Input
|
|
317
|
+
}], text: [{
|
|
318
|
+
type: Input
|
|
319
|
+
}], textAlign: [{
|
|
320
|
+
type: Input
|
|
321
|
+
}], color: [{
|
|
322
|
+
type: Input
|
|
323
|
+
}], textSize: [{
|
|
324
|
+
type: Input
|
|
325
|
+
}], btnBorder: [{
|
|
326
|
+
type: Input
|
|
327
|
+
}], btnBorderRadius: [{
|
|
328
|
+
type: Input
|
|
329
|
+
}], btnBgColor: [{
|
|
330
|
+
type: Input
|
|
331
|
+
}], btnWidth: [{
|
|
332
|
+
type: Input
|
|
333
|
+
}], btnPd: [{
|
|
334
|
+
type: Input
|
|
335
|
+
}], resendOtp: [{
|
|
336
|
+
type: Output
|
|
337
|
+
}], proceedToNextStep: [{
|
|
338
|
+
type: Output
|
|
339
|
+
}], login: [{
|
|
340
|
+
type: Output
|
|
341
|
+
}] } });
|
|
342
|
+
|
|
343
|
+
class MailValidationModule {
|
|
344
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: MailValidationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
345
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.9", ngImport: i0, type: MailValidationModule, declarations: [MailValidationComponent], imports: [FormsModule,
|
|
346
|
+
ReactiveFormsModule,
|
|
347
|
+
VerbenaInputModule,
|
|
348
|
+
VerbenaButtonModule,
|
|
349
|
+
CommonModule], exports: [MailValidationComponent] });
|
|
350
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: MailValidationModule, imports: [FormsModule,
|
|
351
|
+
ReactiveFormsModule,
|
|
352
|
+
VerbenaInputModule,
|
|
353
|
+
VerbenaButtonModule,
|
|
354
|
+
CommonModule] });
|
|
355
|
+
}
|
|
356
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: MailValidationModule, decorators: [{
|
|
357
|
+
type: NgModule,
|
|
358
|
+
args: [{
|
|
359
|
+
declarations: [MailValidationComponent],
|
|
360
|
+
imports: [
|
|
361
|
+
FormsModule,
|
|
362
|
+
ReactiveFormsModule,
|
|
363
|
+
VerbenaInputModule,
|
|
364
|
+
VerbenaButtonModule,
|
|
365
|
+
CommonModule,
|
|
366
|
+
],
|
|
367
|
+
exports: [MailValidationComponent],
|
|
368
|
+
}]
|
|
369
|
+
}] });
|
|
370
|
+
|
|
371
|
+
class ButtonComponent {
|
|
372
|
+
text = '';
|
|
373
|
+
color = 'black';
|
|
374
|
+
border = '1px solid #FFE681';
|
|
375
|
+
borderRadius = "40px";
|
|
376
|
+
bgColor = '#FFE681';
|
|
377
|
+
width = '100%';
|
|
378
|
+
pd = '10px 20px';
|
|
379
|
+
buttonClass = '';
|
|
380
|
+
disabled = false;
|
|
381
|
+
buttonClick = new EventEmitter();
|
|
382
|
+
handleClick() {
|
|
383
|
+
this.buttonClick.emit();
|
|
384
|
+
}
|
|
385
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
386
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.9", type: ButtonComponent, selector: "lib-button", inputs: { text: "text", color: "color", border: "border", borderRadius: "borderRadius", bgColor: "bgColor", width: "width", pd: "pd", buttonClass: "buttonClass", disabled: "disabled" }, outputs: { buttonClick: "buttonClick" }, ngImport: i0, template: "<verbena-button\n[text]=\"text\"\n[bgColor]=\"bgColor\"\n[textColor]=\"color\"\n[border]=\"border\"\n[borderRadius]=\"borderRadius\"\n[pd]=\"pd\"\n[width]=\"width\"\n[disable]=\"disabled\"\n[ngStyle]=\"{'cursor': disabled ? 'not-allowed' : 'pointer' }\"\nbuttonClass=\"font-medium text-[22px] leading-[33px] {{buttonClass}}\"\n(click)=\"handleClick()\"\n></verbena-button>\n", styles: [".disable-btn{cursor:not-allowed}\n"], dependencies: [{ kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i1$1.VerbenaButtonComponent, selector: "verbena-button", inputs: ["text", "icon", "svgPosition", "bgColor", "textColor", "border", "borderRadius", "pd", "width", "height", "fontSize", "fontWeight", "disable", "styleType", "svg", "svgWidth", "svgHeight", "svgColor", "buttonClass", "buttonTextClass"] }] });
|
|
387
|
+
}
|
|
388
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
389
|
+
type: Component,
|
|
390
|
+
args: [{ selector: 'lib-button', template: "<verbena-button\n[text]=\"text\"\n[bgColor]=\"bgColor\"\n[textColor]=\"color\"\n[border]=\"border\"\n[borderRadius]=\"borderRadius\"\n[pd]=\"pd\"\n[width]=\"width\"\n[disable]=\"disabled\"\n[ngStyle]=\"{'cursor': disabled ? 'not-allowed' : 'pointer' }\"\nbuttonClass=\"font-medium text-[22px] leading-[33px] {{buttonClass}}\"\n(click)=\"handleClick()\"\n></verbena-button>\n", styles: [".disable-btn{cursor:not-allowed}\n"] }]
|
|
391
|
+
}], propDecorators: { text: [{
|
|
392
|
+
type: Input
|
|
393
|
+
}], color: [{
|
|
394
|
+
type: Input
|
|
395
|
+
}], border: [{
|
|
396
|
+
type: Input
|
|
397
|
+
}], borderRadius: [{
|
|
398
|
+
type: Input
|
|
399
|
+
}], bgColor: [{
|
|
400
|
+
type: Input
|
|
401
|
+
}], width: [{
|
|
402
|
+
type: Input
|
|
403
|
+
}], pd: [{
|
|
404
|
+
type: Input
|
|
405
|
+
}], buttonClass: [{
|
|
406
|
+
type: Input
|
|
407
|
+
}], disabled: [{
|
|
408
|
+
type: Input
|
|
409
|
+
}], buttonClick: [{
|
|
410
|
+
type: Output
|
|
411
|
+
}] } });
|
|
412
|
+
|
|
413
|
+
class OAuthComponent {
|
|
414
|
+
googleClick = new EventEmitter();
|
|
415
|
+
appleClick = new EventEmitter();
|
|
416
|
+
oAuthWithGoogle() {
|
|
417
|
+
this.googleClick.emit();
|
|
418
|
+
}
|
|
419
|
+
;
|
|
420
|
+
oAuthWithApple() {
|
|
421
|
+
this.appleClick.emit();
|
|
422
|
+
}
|
|
423
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: OAuthComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
424
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.9", type: OAuthComponent, selector: "verben-o-auth", outputs: { googleClick: "googleClick", appleClick: "appleClick" }, ngImport: i0, template: "<section class=\"oauthWrapper\"> \n <div class=\"OrFlexWrapper\">\n <hr/>\n <span>OR</span>\n <hr/>\n </div>\n <verbena-button\n svg=\"google-logo\"\n [svgHeight]=\"24\"\n [svgWidth]=\"24\"\n text=\"Continue with Google\"\n bgColor=\"white\"\n textColor=\"black\"\n border=\"1px solid #333\"\n borderRadius=\"40px\"\n pd=\"10px 20px\"\n width=\"100%\"\n svgPosition=\"left\"\n buttonClass=\"font-normal text-[24px] leading-[29.05px] text-[#333]\"\n (click)=\"oAuthWithGoogle()\"\n ></verbena-button>\n \n <verbena-button\n svg=\"apple-logo\"\n [svgHeight]=\"24\"\n [svgWidth]=\"24\"\n text=\"Continue with Apple\"\n bgColor=\"white\"\n textColor=\"black\"\n border=\"1px solid #333\"\n borderRadius=\"40px\"\n pd=\"10px 20px\"\n width=\"100%\"\n svgPosition=\"left\"\n buttonClass=\"font-normal text-[24px] leading-[29.05px] text-[#333] mt-2\"\n (click)=\"oAuthWithApple()\"\n ></verbena-button>\n</section>\n", styles: ["hr{height:1px;margin:0;border:1px solid #66666640;flex:1}.OR{margin:0 2px;color:#666}.oauthWrapper{display:flex;flex-direction:column;gap:12px}.OrFlexWrapper{display:flex;align-items:center;gap:8px}\n"], dependencies: [{ kind: "component", type: i1$1.VerbenaButtonComponent, selector: "verbena-button", inputs: ["text", "icon", "svgPosition", "bgColor", "textColor", "border", "borderRadius", "pd", "width", "height", "fontSize", "fontWeight", "disable", "styleType", "svg", "svgWidth", "svgHeight", "svgColor", "buttonClass", "buttonTextClass"] }] });
|
|
425
|
+
}
|
|
426
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: OAuthComponent, decorators: [{
|
|
427
|
+
type: Component,
|
|
428
|
+
args: [{ selector: 'verben-o-auth', template: "<section class=\"oauthWrapper\"> \n <div class=\"OrFlexWrapper\">\n <hr/>\n <span>OR</span>\n <hr/>\n </div>\n <verbena-button\n svg=\"google-logo\"\n [svgHeight]=\"24\"\n [svgWidth]=\"24\"\n text=\"Continue with Google\"\n bgColor=\"white\"\n textColor=\"black\"\n border=\"1px solid #333\"\n borderRadius=\"40px\"\n pd=\"10px 20px\"\n width=\"100%\"\n svgPosition=\"left\"\n buttonClass=\"font-normal text-[24px] leading-[29.05px] text-[#333]\"\n (click)=\"oAuthWithGoogle()\"\n ></verbena-button>\n \n <verbena-button\n svg=\"apple-logo\"\n [svgHeight]=\"24\"\n [svgWidth]=\"24\"\n text=\"Continue with Apple\"\n bgColor=\"white\"\n textColor=\"black\"\n border=\"1px solid #333\"\n borderRadius=\"40px\"\n pd=\"10px 20px\"\n width=\"100%\"\n svgPosition=\"left\"\n buttonClass=\"font-normal text-[24px] leading-[29.05px] text-[#333] mt-2\"\n (click)=\"oAuthWithApple()\"\n ></verbena-button>\n</section>\n", styles: ["hr{height:1px;margin:0;border:1px solid #66666640;flex:1}.OR{margin:0 2px;color:#666}.oauthWrapper{display:flex;flex-direction:column;gap:12px}.OrFlexWrapper{display:flex;align-items:center;gap:8px}\n"] }]
|
|
429
|
+
}], propDecorators: { googleClick: [{
|
|
430
|
+
type: Output
|
|
431
|
+
}], appleClick: [{
|
|
432
|
+
type: Output
|
|
433
|
+
}] } });
|
|
434
|
+
|
|
435
|
+
class SignUpComponent {
|
|
436
|
+
fb;
|
|
437
|
+
width = '';
|
|
438
|
+
maxWidth = '';
|
|
439
|
+
margin = '';
|
|
440
|
+
pd = '';
|
|
441
|
+
customClass = '';
|
|
442
|
+
headlingClass = '';
|
|
443
|
+
bgColor = '#fff';
|
|
444
|
+
boxShadow = '4px 4px 4px rgba(0, 0, 0, 0.25)';
|
|
445
|
+
border = '1px solid #66666680';
|
|
446
|
+
borderRadius = '24px';
|
|
447
|
+
height = 'auto';
|
|
448
|
+
priColor = '#FFE681';
|
|
449
|
+
textColor = '#333';
|
|
450
|
+
disabled = false;
|
|
451
|
+
// links
|
|
452
|
+
termsLink = '';
|
|
453
|
+
privacyLink = '';
|
|
454
|
+
routerLink = '';
|
|
455
|
+
formSubmit = new EventEmitter();
|
|
456
|
+
googleClick = new EventEmitter();
|
|
457
|
+
appleClick = new EventEmitter();
|
|
458
|
+
signUpForm;
|
|
459
|
+
constructor(fb) {
|
|
460
|
+
this.fb = fb;
|
|
461
|
+
this.signUpForm = this.fb.group({
|
|
462
|
+
Firstname: new FormControl(null, Validators.required),
|
|
463
|
+
Lastname: new FormControl(null, Validators.required),
|
|
464
|
+
Email: new FormControl(null, [
|
|
465
|
+
Validators.required,
|
|
466
|
+
Validators.email,
|
|
467
|
+
]),
|
|
468
|
+
Password: new FormControl(null, [
|
|
469
|
+
Validators.required,
|
|
470
|
+
Validators.minLength(8),
|
|
471
|
+
]),
|
|
472
|
+
Terms: new FormControl(false, [Validators.requiredTrue]),
|
|
473
|
+
});
|
|
474
|
+
}
|
|
475
|
+
checkForm() {
|
|
476
|
+
return this.signUpForm.valid;
|
|
477
|
+
}
|
|
478
|
+
submit() {
|
|
479
|
+
if (!this.checkForm()) {
|
|
480
|
+
return;
|
|
481
|
+
}
|
|
482
|
+
const data = {
|
|
483
|
+
Firstname: this.signUpForm.controls['Firstname'].value,
|
|
484
|
+
Lastname: this.signUpForm.controls['Lastname'].value,
|
|
485
|
+
Email: this.signUpForm.controls['Email'].value,
|
|
486
|
+
Password: this.signUpForm.controls['Password'].value,
|
|
487
|
+
Terms: this.signUpForm.controls['Terms'].value,
|
|
488
|
+
};
|
|
489
|
+
this.formSubmit.emit(data);
|
|
490
|
+
}
|
|
491
|
+
handleGoogleAuth() {
|
|
492
|
+
this.googleClick.emit();
|
|
493
|
+
}
|
|
494
|
+
handleAppleAuth() {
|
|
495
|
+
this.appleClick.emit();
|
|
496
|
+
}
|
|
497
|
+
get styles() {
|
|
498
|
+
return {
|
|
499
|
+
'background-color': this.bgColor,
|
|
500
|
+
'box-shadow': this.boxShadow,
|
|
501
|
+
'border': this.border,
|
|
502
|
+
'border-radius': this.borderRadius,
|
|
503
|
+
'color': this.textColor,
|
|
504
|
+
'width': this.width,
|
|
505
|
+
'max-width': this.maxWidth,
|
|
506
|
+
'margin': this.margin,
|
|
507
|
+
'height': this.height,
|
|
508
|
+
'padding': this.pd
|
|
509
|
+
};
|
|
510
|
+
}
|
|
511
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: SignUpComponent, deps: [{ token: i1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
512
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.9", type: SignUpComponent, selector: "verben-sign-up", inputs: { width: "width", maxWidth: "maxWidth", margin: "margin", pd: "pd", customClass: "customClass", headlingClass: "headlingClass", bgColor: "bgColor", boxShadow: "boxShadow", border: "border", borderRadius: "borderRadius", height: "height", priColor: "priColor", textColor: "textColor", disabled: "disabled", termsLink: "termsLink", privacyLink: "privacyLink", routerLink: "routerLink" }, outputs: { formSubmit: "formSubmit", googleClick: "googleClick", appleClick: "appleClick" }, ngImport: i0, template: "<section [ngStyle]=\"styles\" class=\"{{ customClass }}\">\n <h2 class=\"{{headlingClass}}\">\n Create an account\n </h2>\n <form [formGroup]=\"signUpForm\" (ngSubmit)=\"submit()\" class=\"flexWrapper\">\n <verbena-input\n [label]=\"'First name'\"\n [labelColor]=\"'#666'\"\n [placeHolder]=\"''\"\n [required]=\"true\"\n [type]=\"'text'\"\n formControlName=\"Firstname\"\n [showBorder]=\"true\"\n [bgColor]=\"'white'\"\n [border]=\"'1px solid #66666659'\"\n [borderRadius]=\"'12px'\"\n [showErrorMessage]=\"true\"\n [errorMessageColor]=\"'red'\"\n [errorBorderColor]=\"'red'\"\n [errorPosition]=\"'bottom'\"\n class=\"outline-none focus-none\"\n ></verbena-input>\n <verbena-input\n [label]=\"'Last name'\"\n [labelColor]=\"'#666'\"\n [placeHolder]=\"''\"\n [required]=\"true\"\n [type]=\"'text'\"\n formControlName=\"Lastname\"\n [showBorder]=\"true\"\n [bgColor]=\"'white'\"\n [border]=\"'1px solid #66666659'\"\n [borderRadius]=\"'12px'\"\n [showErrorMessage]=\"true\"\n [errorMessageColor]=\"'red'\"\n [errorBorderColor]=\"'red'\"\n [errorPosition]=\"'bottom'\"\n class=\"outline-none focus-none\"\n ></verbena-input>\n <verbena-input\n [label]=\"'Email'\"\n [labelColor]=\"'#666'\"\n [placeHolder]=\"''\"\n [required]=\"true\"\n [type]=\"'email'\"\n formControlName=\"Email\"\n [showBorder]=\"true\"\n [bgColor]=\"'white'\"\n [border]=\"'1px solid #66666659'\"\n [borderRadius]=\"'12px'\"\n [showErrorMessage]=\"true\"\n [errorMessageColor]=\"'red'\"\n [errorBorderColor]=\"'red'\"\n [errorPosition]=\"'bottom'\"\n class=\"outline-none focus-none\"\n ></verbena-input>\n <verbena-input\n [label]=\"'Password'\"\n [labelColor]=\"'#666'\"\n [placeHolder]=\"''\"\n [required]=\"true\"\n [type]=\"'password'\"\n formControlName=\"Password\"\n [showBorder]=\"true\"\n [bgColor]=\"'white'\"\n [border]=\"'1px solid #66666659'\"\n [borderRadius]=\"'12px'\"\n [showErrorMessage]=\"true\"\n [errorMessageColor]=\"'red'\"\n [errorBorderColor]=\"'red'\"\n [errorPosition]=\"'bottom'\"\n class=\"outline-none focus-none\"\n ></verbena-input>\n <div> \n <div class=\"checkBoxWrapper\">\n <input type=\"checkbox\" id=\"terms\" formControlName=\"Terms\" class=\"checBoxInput\" />\n <label for=\"terms\" class=\"break-all font-normal leading-6\"\n >By creating an account, I agree to our <a [attr.href]=\"termsLink\">Terms of use</a> and\n <a [attr.href]=\"privacyLink\">Privacy Policy</a></label\n >\n </div>\n <p *ngIf=\"signUpForm.controls['Terms'].invalid && signUpForm.controls['Terms'].touched\">\n <small class=\"error-text\">You must agree to the terms.</small>\n </p>\n </div>\n <p [ngStyle]=\"{'margin-bottom':'5px'}\"></p>\n <lib-button \n text=\"Create an account\" \n type=\"submit\"\n [disabled]=\"!this.checkForm()\"\n ></lib-button>\n <verben-o-auth \n (googleClick)=\"handleGoogleAuth()\"\n (appleClick)=\"handleAppleAuth()\"\n ></verben-o-auth>\n <p>\n Already have an account?\n <a [routerLink]=\"routerLink\" class=\"\">Log in</a>\n </p>\n </form>\n </section>\n \n", styles: ["a{text-decoration:underline;cursor:pointer}input[type=checkbox]:checked{accent-color:#111}.flexWrapper{display:flex;flex-direction:column;gap:10px}.checkBoxWrapper{display:flex;align-items:start;gap:2px}.checBoxInput{margin-top:6px}.bigcheckboxWrapper{margin-top:.5rem;margin-bottom:1.5rem}.error-text{color:red}.disable-btn{cursor:not-allowed}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "component", type: i1$1.VerbenaInputComponent, selector: "verbena-input", inputs: ["label", "placeHolder", "required", "svgPosition", "minLength", "maxLength", "type", "bgColor", "border", "borderRadius", "textColor", "value", "labelPosition", "labelColor", "disable", "min", "max", "showBorder", "showErrorMessage", "errorMessageColor", "errorBorderColor", "errorPosition", "svg", "svgWidth", "svgHeight", "svgColor", "capitalization", "inputContainerClass", "inputFieldClass", "inputWrapperClass", "customErrorMessages"], outputs: ["valueChange"] }, { kind: "directive", type: i4.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: ButtonComponent, selector: "lib-button", inputs: ["text", "color", "border", "borderRadius", "bgColor", "width", "pd", "buttonClass", "disabled"], outputs: ["buttonClick"] }, { kind: "component", type: OAuthComponent, selector: "verben-o-auth", outputs: ["googleClick", "appleClick"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }] });
|
|
513
|
+
}
|
|
514
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: SignUpComponent, decorators: [{
|
|
515
|
+
type: Component,
|
|
516
|
+
args: [{ selector: 'verben-sign-up', template: "<section [ngStyle]=\"styles\" class=\"{{ customClass }}\">\n <h2 class=\"{{headlingClass}}\">\n Create an account\n </h2>\n <form [formGroup]=\"signUpForm\" (ngSubmit)=\"submit()\" class=\"flexWrapper\">\n <verbena-input\n [label]=\"'First name'\"\n [labelColor]=\"'#666'\"\n [placeHolder]=\"''\"\n [required]=\"true\"\n [type]=\"'text'\"\n formControlName=\"Firstname\"\n [showBorder]=\"true\"\n [bgColor]=\"'white'\"\n [border]=\"'1px solid #66666659'\"\n [borderRadius]=\"'12px'\"\n [showErrorMessage]=\"true\"\n [errorMessageColor]=\"'red'\"\n [errorBorderColor]=\"'red'\"\n [errorPosition]=\"'bottom'\"\n class=\"outline-none focus-none\"\n ></verbena-input>\n <verbena-input\n [label]=\"'Last name'\"\n [labelColor]=\"'#666'\"\n [placeHolder]=\"''\"\n [required]=\"true\"\n [type]=\"'text'\"\n formControlName=\"Lastname\"\n [showBorder]=\"true\"\n [bgColor]=\"'white'\"\n [border]=\"'1px solid #66666659'\"\n [borderRadius]=\"'12px'\"\n [showErrorMessage]=\"true\"\n [errorMessageColor]=\"'red'\"\n [errorBorderColor]=\"'red'\"\n [errorPosition]=\"'bottom'\"\n class=\"outline-none focus-none\"\n ></verbena-input>\n <verbena-input\n [label]=\"'Email'\"\n [labelColor]=\"'#666'\"\n [placeHolder]=\"''\"\n [required]=\"true\"\n [type]=\"'email'\"\n formControlName=\"Email\"\n [showBorder]=\"true\"\n [bgColor]=\"'white'\"\n [border]=\"'1px solid #66666659'\"\n [borderRadius]=\"'12px'\"\n [showErrorMessage]=\"true\"\n [errorMessageColor]=\"'red'\"\n [errorBorderColor]=\"'red'\"\n [errorPosition]=\"'bottom'\"\n class=\"outline-none focus-none\"\n ></verbena-input>\n <verbena-input\n [label]=\"'Password'\"\n [labelColor]=\"'#666'\"\n [placeHolder]=\"''\"\n [required]=\"true\"\n [type]=\"'password'\"\n formControlName=\"Password\"\n [showBorder]=\"true\"\n [bgColor]=\"'white'\"\n [border]=\"'1px solid #66666659'\"\n [borderRadius]=\"'12px'\"\n [showErrorMessage]=\"true\"\n [errorMessageColor]=\"'red'\"\n [errorBorderColor]=\"'red'\"\n [errorPosition]=\"'bottom'\"\n class=\"outline-none focus-none\"\n ></verbena-input>\n <div> \n <div class=\"checkBoxWrapper\">\n <input type=\"checkbox\" id=\"terms\" formControlName=\"Terms\" class=\"checBoxInput\" />\n <label for=\"terms\" class=\"break-all font-normal leading-6\"\n >By creating an account, I agree to our <a [attr.href]=\"termsLink\">Terms of use</a> and\n <a [attr.href]=\"privacyLink\">Privacy Policy</a></label\n >\n </div>\n <p *ngIf=\"signUpForm.controls['Terms'].invalid && signUpForm.controls['Terms'].touched\">\n <small class=\"error-text\">You must agree to the terms.</small>\n </p>\n </div>\n <p [ngStyle]=\"{'margin-bottom':'5px'}\"></p>\n <lib-button \n text=\"Create an account\" \n type=\"submit\"\n [disabled]=\"!this.checkForm()\"\n ></lib-button>\n <verben-o-auth \n (googleClick)=\"handleGoogleAuth()\"\n (appleClick)=\"handleAppleAuth()\"\n ></verben-o-auth>\n <p>\n Already have an account?\n <a [routerLink]=\"routerLink\" class=\"\">Log in</a>\n </p>\n </form>\n </section>\n \n", styles: ["a{text-decoration:underline;cursor:pointer}input[type=checkbox]:checked{accent-color:#111}.flexWrapper{display:flex;flex-direction:column;gap:10px}.checkBoxWrapper{display:flex;align-items:start;gap:2px}.checBoxInput{margin-top:6px}.bigcheckboxWrapper{margin-top:.5rem;margin-bottom:1.5rem}.error-text{color:red}.disable-btn{cursor:not-allowed}\n"] }]
|
|
517
|
+
}], ctorParameters: () => [{ type: i1.FormBuilder }], propDecorators: { width: [{
|
|
518
|
+
type: Input
|
|
519
|
+
}], maxWidth: [{
|
|
520
|
+
type: Input
|
|
521
|
+
}], margin: [{
|
|
522
|
+
type: Input
|
|
523
|
+
}], pd: [{
|
|
524
|
+
type: Input
|
|
525
|
+
}], customClass: [{
|
|
526
|
+
type: Input
|
|
527
|
+
}], headlingClass: [{
|
|
528
|
+
type: Input
|
|
529
|
+
}], bgColor: [{
|
|
530
|
+
type: Input
|
|
531
|
+
}], boxShadow: [{
|
|
532
|
+
type: Input
|
|
533
|
+
}], border: [{
|
|
534
|
+
type: Input
|
|
535
|
+
}], borderRadius: [{
|
|
536
|
+
type: Input
|
|
537
|
+
}], height: [{
|
|
538
|
+
type: Input
|
|
539
|
+
}], priColor: [{
|
|
540
|
+
type: Input
|
|
541
|
+
}], textColor: [{
|
|
542
|
+
type: Input
|
|
543
|
+
}], disabled: [{
|
|
544
|
+
type: Input
|
|
545
|
+
}], termsLink: [{
|
|
546
|
+
type: Input
|
|
547
|
+
}], privacyLink: [{
|
|
548
|
+
type: Input
|
|
549
|
+
}], routerLink: [{
|
|
550
|
+
type: Input
|
|
551
|
+
}], formSubmit: [{
|
|
552
|
+
type: Output
|
|
553
|
+
}], googleClick: [{
|
|
554
|
+
type: Output
|
|
555
|
+
}], appleClick: [{
|
|
556
|
+
type: Output
|
|
557
|
+
}] } });
|
|
558
|
+
|
|
559
|
+
class OAuthModule {
|
|
560
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: OAuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
561
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.9", ngImport: i0, type: OAuthModule, declarations: [OAuthComponent], imports: [CommonModule, VerbenaInputModule, VerbenaButtonModule], exports: [OAuthComponent] });
|
|
562
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: OAuthModule, imports: [CommonModule, VerbenaInputModule, VerbenaButtonModule] });
|
|
563
|
+
}
|
|
564
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: OAuthModule, decorators: [{
|
|
565
|
+
type: NgModule,
|
|
566
|
+
args: [{
|
|
567
|
+
declarations: [OAuthComponent],
|
|
568
|
+
imports: [CommonModule, VerbenaInputModule, VerbenaButtonModule],
|
|
569
|
+
exports: [OAuthComponent]
|
|
570
|
+
}]
|
|
571
|
+
}] });
|
|
572
|
+
|
|
573
|
+
class ButtonModule {
|
|
574
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: ButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
575
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.9", ngImport: i0, type: ButtonModule, declarations: [ButtonComponent], imports: [CommonModule, VerbenaButtonModule, FormsModule], exports: [ButtonComponent] });
|
|
576
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: ButtonModule, imports: [CommonModule, VerbenaButtonModule, FormsModule] });
|
|
577
|
+
}
|
|
578
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: ButtonModule, decorators: [{
|
|
579
|
+
type: NgModule,
|
|
580
|
+
args: [{
|
|
581
|
+
declarations: [ButtonComponent],
|
|
582
|
+
imports: [CommonModule, VerbenaButtonModule, FormsModule],
|
|
583
|
+
exports: [ButtonComponent]
|
|
584
|
+
}]
|
|
585
|
+
}] });
|
|
586
|
+
|
|
587
|
+
class SignUpModule {
|
|
588
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: SignUpModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
589
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.9", ngImport: i0, type: SignUpModule, declarations: [SignUpComponent], imports: [CommonModule, FormsModule, VerbenaInputModule, RouterLink, ButtonModule, OAuthModule, ReactiveFormsModule], exports: [SignUpComponent] });
|
|
590
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: SignUpModule, imports: [CommonModule, FormsModule, VerbenaInputModule, ButtonModule, OAuthModule, ReactiveFormsModule] });
|
|
591
|
+
}
|
|
592
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: SignUpModule, decorators: [{
|
|
593
|
+
type: NgModule,
|
|
594
|
+
args: [{
|
|
595
|
+
declarations: [SignUpComponent],
|
|
596
|
+
imports: [CommonModule, FormsModule, VerbenaInputModule, RouterLink, ButtonModule, OAuthModule, ReactiveFormsModule],
|
|
597
|
+
exports: [SignUpComponent]
|
|
598
|
+
}]
|
|
599
|
+
}] });
|
|
600
|
+
|
|
601
|
+
/*
|
|
602
|
+
* Public API Surface of verben-ng-ui
|
|
603
|
+
*/
|
|
604
|
+
// export * from './lib/verben-ng-ui.service';
|
|
605
|
+
// export * from './lib/verben-ng-ui.component';
|
|
606
|
+
// Exporting modules
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* Generated bundle index. Do not edit.
|
|
610
|
+
*/
|
|
611
|
+
|
|
612
|
+
export { MailValidationComponent, MailValidationModule, ResetPasswordComponent, ResetPasswordModule, SignUpComponent, SignUpModule, UserRequestComponent, UserRequestModule };
|
|
613
|
+
//# sourceMappingURL=verben-authentication-ui.mjs.map
|