@lenne.tech/ng-base 13.3.1 → 13.4.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/base-prototype/base-prototype.module.d.ts +6 -5
- package/base-prototype/pages/forgot-password/forgot-password.component.d.ts +20 -0
- package/base-prototype/public-api.d.ts +1 -0
- package/esm2020/base-prototype/base-prototype.module.mjs +7 -3
- package/esm2020/base-prototype/pages/forgot-password/forgot-password.component.mjs +38 -0
- package/esm2020/base-prototype/public-api.mjs +2 -1
- package/fesm2015/lenne.tech-ng-base-base-prototype.mjs +38 -3
- package/fesm2015/lenne.tech-ng-base-base-prototype.mjs.map +1 -1
- package/fesm2020/lenne.tech-ng-base-base-prototype.mjs +38 -3
- package/fesm2020/lenne.tech-ng-base-base-prototype.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./pages/login/login.component";
|
|
3
3
|
import * as i2 from "./pages/register/register.component";
|
|
4
|
-
import * as i3 from "
|
|
5
|
-
import * as i4 from "@angular/
|
|
6
|
-
import * as i5 from "@angular/
|
|
7
|
-
import * as i6 from "@
|
|
4
|
+
import * as i3 from "./pages/forgot-password/forgot-password.component";
|
|
5
|
+
import * as i4 from "@angular/forms";
|
|
6
|
+
import * as i5 from "@angular/router";
|
|
7
|
+
import * as i6 from "@angular/common";
|
|
8
|
+
import * as i7 from "@lenne.tech/ng-base/base-components";
|
|
8
9
|
export declare class BasePrototypeModule {
|
|
9
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<BasePrototypeModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<BasePrototypeModule, [typeof i1.LoginComponent, typeof i2.RegisterComponent], [typeof
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<BasePrototypeModule, [typeof i1.LoginComponent, typeof i2.RegisterComponent, typeof i3.ForgotPasswordComponent], [typeof i4.FormsModule, typeof i5.RouterModule, typeof i4.ReactiveFormsModule, typeof i6.CommonModule, typeof i7.BaseComponentsModule], [typeof i1.LoginComponent, typeof i2.RegisterComponent, typeof i3.ForgotPasswordComponent]>;
|
|
11
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<BasePrototypeModule>;
|
|
12
13
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { FormsService } from '@lenne.tech/ng-base';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ForgotPasswordComponent implements OnInit {
|
|
6
|
+
private formsService;
|
|
7
|
+
form: FormGroup;
|
|
8
|
+
constructor(formsService: FormsService);
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
/**
|
|
11
|
+
* Create login form
|
|
12
|
+
*/
|
|
13
|
+
createForm(): void;
|
|
14
|
+
/**
|
|
15
|
+
* Submit form
|
|
16
|
+
*/
|
|
17
|
+
submit(): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ForgotPasswordComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ForgotPasswordComponent, "base-forgot-password", never, {}, {}, never, never>;
|
|
20
|
+
}
|
|
@@ -5,6 +5,7 @@ import { RouterModule } from '@angular/router';
|
|
|
5
5
|
import { LoginComponent } from './pages/login/login.component';
|
|
6
6
|
import { RegisterComponent } from './pages/register/register.component';
|
|
7
7
|
import { BaseComponentsModule } from '@lenne.tech/ng-base/base-components';
|
|
8
|
+
import { ForgotPasswordComponent } from './pages/forgot-password/forgot-password.component';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
// Modules
|
|
10
11
|
const imports = [FormsModule, RouterModule, ReactiveFormsModule, CommonModule, BaseComponentsModule];
|
|
@@ -13,6 +14,7 @@ const elements = [
|
|
|
13
14
|
// Components
|
|
14
15
|
LoginComponent,
|
|
15
16
|
RegisterComponent,
|
|
17
|
+
ForgotPasswordComponent,
|
|
16
18
|
];
|
|
17
19
|
export class BasePrototypeModule {
|
|
18
20
|
}
|
|
@@ -20,10 +22,12 @@ BasePrototypeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", vers
|
|
|
20
22
|
BasePrototypeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: BasePrototypeModule, declarations: [
|
|
21
23
|
// Components
|
|
22
24
|
LoginComponent,
|
|
23
|
-
RegisterComponent
|
|
25
|
+
RegisterComponent,
|
|
26
|
+
ForgotPasswordComponent], imports: [FormsModule, RouterModule, ReactiveFormsModule, CommonModule, BaseComponentsModule], exports: [
|
|
24
27
|
// Components
|
|
25
28
|
LoginComponent,
|
|
26
|
-
RegisterComponent
|
|
29
|
+
RegisterComponent,
|
|
30
|
+
ForgotPasswordComponent] });
|
|
27
31
|
BasePrototypeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: BasePrototypeModule, imports: [imports] });
|
|
28
32
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: BasePrototypeModule, decorators: [{
|
|
29
33
|
type: NgModule,
|
|
@@ -33,4 +37,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImpor
|
|
|
33
37
|
exports: elements,
|
|
34
38
|
}]
|
|
35
39
|
}] });
|
|
36
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS1wcm90b3R5cGUubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvbmctYmFzZS9iYXNlLXByb3RvdHlwZS9iYXNlLXByb3RvdHlwZS5tb2R1bGUudH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W50c1xuY29uc3QgZWxlbWVudHMgPSBbXG4gIC8vIENvbXBvbmVudHNcbiAgTG9naW5Db21wb25lbnQsXG4gIFJlZ2lzdGVyQ29tcG9uZW50LFxuICBGb3Jnb3RQYXNzd29yZENvbXBvbmVudCxcbl07XG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogZWxlbWVudHMsXG4gIGltcG9ydHMsXG4gIGV4cG9ydHM6IGVsZW1lbnRzLFxufSlcbmV4cG9ydCBjbGFzcyBCYXNlUHJvdG90eXBlTW9kdWxlIHt9XG4iXX0=
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { FormControl, FormGroup, Validators } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@lenne.tech/ng-base";
|
|
5
|
+
import * as i2 from "@lenne.tech/ng-base/base-components";
|
|
6
|
+
import * as i3 from "@angular/router";
|
|
7
|
+
export class ForgotPasswordComponent {
|
|
8
|
+
constructor(formsService) {
|
|
9
|
+
this.formsService = formsService;
|
|
10
|
+
}
|
|
11
|
+
ngOnInit() {
|
|
12
|
+
this.createForm();
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Create login form
|
|
16
|
+
*/
|
|
17
|
+
createForm() {
|
|
18
|
+
this.form = new FormGroup({
|
|
19
|
+
email: new FormControl('', [Validators.required, Validators.email]),
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Submit form
|
|
24
|
+
*/
|
|
25
|
+
submit() {
|
|
26
|
+
if (this.form.invalid) {
|
|
27
|
+
this.formsService.validateAllFormFields(this.form);
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
ForgotPasswordComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: ForgotPasswordComponent, deps: [{ token: i1.FormsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
33
|
+
ForgotPasswordComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.3", type: ForgotPasswordComponent, selector: "base-forgot-password", ngImport: i0, template: "<div class=\"d-flex justify-content-center align-items-center vh-100\">\n <div class=\"d-flex flex-column login-container\">\n <div class=\"container\">\n <base-input [id]=\"'email'\" [label]=\"'E-Mail Adresse'\" [type]=\"'email'\" [control]=\"form.get('email')\"></base-input>\n <div class=\"d-grid gap-2 text-center\">\n <button class=\"btn btn-primary\" (click)=\"submit()\">E-Mail senden</button>\n <hr />\n <a routerLink=\"../login\">Bereits ein Konto? Dann logge Dich hier ein!</a>\n <a routerLink=\"../registrieren\">Noch kein Konto? Dann registiere Dich jetzt!</a>\n </div>\n </div>\n </div>\n</div>\n", styles: [""], components: [{ type: i2.InputComponent, selector: "base-input", inputs: ["id", "name", "label", "placeholder", "autocomplete", "tabIndex", "control", "type", "required"] }], directives: [{ type: i3.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }] });
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: ForgotPasswordComponent, decorators: [{
|
|
35
|
+
type: Component,
|
|
36
|
+
args: [{ selector: 'base-forgot-password', template: "<div class=\"d-flex justify-content-center align-items-center vh-100\">\n <div class=\"d-flex flex-column login-container\">\n <div class=\"container\">\n <base-input [id]=\"'email'\" [label]=\"'E-Mail Adresse'\" [type]=\"'email'\" [control]=\"form.get('email')\"></base-input>\n <div class=\"d-grid gap-2 text-center\">\n <button class=\"btn btn-primary\" (click)=\"submit()\">E-Mail senden</button>\n <hr />\n <a routerLink=\"../login\">Bereits ein Konto? Dann logge Dich hier ein!</a>\n <a routerLink=\"../registrieren\">Noch kein Konto? Dann registiere Dich jetzt!</a>\n </div>\n </div>\n </div>\n</div>\n", styles: [""] }]
|
|
37
|
+
}], ctorParameters: function () { return [{ type: i1.FormsService }]; } });
|
|
38
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9yZ290LXBhc3N3b3JkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25nLWJhc2UvYmFzZS1wcm90b3R5cGUvcGFnZXMvZm9yZ290LXBhc3N3b3JkL2ZvcmdvdC1wYXNzd29yZC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZy1iYXNlL2Jhc2UtcHJvdG90eXBlL3BhZ2VzL2ZvcmdvdC1wYXNzd29yZC9mb3Jnb3QtcGFzc3dvcmQuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUNsRCxPQUFPLEVBQUUsV0FBVyxFQUFFLFNBQVMsRUFBRSxVQUFVLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQzs7Ozs7QUFRcEUsTUFBTSxPQUFPLHVCQUF1QjtJQUdsQyxZQUFvQixZQUEwQjtRQUExQixpQkFBWSxHQUFaLFlBQVksQ0FBYztJQUFHLENBQUM7SUFFbEQsUUFBUTtRQUNOLElBQUksQ0FBQyxVQUFVLEVBQUUsQ0FBQztJQUNwQixDQUFDO0lBRUQ7O09BRUc7SUFDSCxVQUFVO1FBQ1IsSUFBSSxDQUFDLElBQUksR0FBRyxJQUFJLFNBQVMsQ0FBQztZQUN4QixLQUFLLEVBQUUsSUFBSSxXQUFXLENBQUMsRUFBRSxFQUFFLENBQUMsVUFBVSxDQUFDLFFBQVEsRUFBRSxVQUFVLENBQUMsS0FBSyxDQUFDLENBQUM7U0FDcEUs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Ij5CZXJlaXRzIGVpbiBLb250bz8gRGFubiBsb2dnZSBEaWNoIGhpZXIgZWluITwvYT5cbiAgICAgICAgPGEgcm91dGVyTGluaz1cIi4uL3JlZ2lzdHJpZXJlblwiPk5vY2gga2VpbiBLb250bz8gRGFubiByZWdpc3RpZXJlIERpY2ggamV0enQhPC9hPlxuICAgICAgPC9kaXY+XG4gICAgPC9kaXY+XG4gIDwvZGl2PlxuPC9kaXY+XG4iXX0=
|
|
@@ -6,4 +6,5 @@ export * from './base-prototype.module';
|
|
|
6
6
|
// Pages
|
|
7
7
|
export * from './pages/login/login.component';
|
|
8
8
|
export * from './pages/register/register.component';
|
|
9
|
-
|
|
9
|
+
export * from './pages/forgot-password/forgot-password.component';
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25nLWJhc2UvYmFzZS1wcm90b3R5cGUvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILFNBQVM7QUFDVCxjQUFjLHlCQUF5QixDQUFDO0FBRXhDLFFBQVE7QUFDUixjQUFjLCtCQUErQixDQUFDO0FBQzlDLGNBQWMscUNBQXFDLENBQUM7QUFDcEQsY0FBYyxtREFBbUQsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogRXhwb3J0cyBmb3IgcHVibGljIEFQSVxuICovXG5cbi8vIE1vZHVsZVxuZXhwb3J0ICogZnJvbSAnLi9iYXNlLXByb3RvdHlwZS5tb2R1bGUnO1xuXG4vLyBQYWdlc1xuZXhwb3J0ICogZnJvbSAnLi9wYWdlcy9sb2dpbi9sb2dpbi5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9wYWdlcy9yZWdpc3Rlci9yZWdpc3Rlci5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9wYWdlcy9mb3Jnb3QtcGFzc3dvcmQvZm9yZ290LXBhc3N3b3JkLmNvbXBvbmVudCc7XG4iXX0=
|
|
@@ -80,6 +80,38 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImpor
|
|
|
80
80
|
args: [{ selector: 'base-register', template: "<div class=\"d-flex justify-content-center align-items-center vh-100\">\n <div class=\"d-flex flex-column register-container\">\n <div class=\"container\">\n <base-input [id]=\"'firstName'\" [label]=\"'Vorname'\" [type]=\"'text'\" [control]=\"form.get('firstName')\"></base-input>\n <base-input [id]=\"'lastName'\" [label]=\"'Nachname'\" [type]=\"'text'\" [control]=\"form.get('lastName')\"></base-input>\n <base-input [id]=\"'email'\" [label]=\"'E-Mail Adresse'\" [type]=\"'email'\" [control]=\"form.get('email')\"></base-input>\n <base-input\n [id]=\"'password'\"\n [label]=\"'Passwort'\"\n [type]=\"'password'\"\n [control]=\"form.get('password')\"\n ></base-input>\n <base-input\n [id]=\"'password-confirm'\"\n [label]=\"'Passwort best\u00E4tigen'\"\n [type]=\"'password'\"\n [control]=\"form.get('passwordConfirm')\"\n ></base-input>\n <div class=\"d-grid gap-2 text-center\">\n <button class=\"btn btn-primary\" (click)=\"submit()\">Registrieren</button>\n <hr />\n <a routerLink=\"../login\">Bereits ein Konto? Dann logge Dich hier ein!</a>\n </div>\n </div>\n </div>\n</div>\n", styles: [".register-container{width:100%;padding:20px 0}@media (min-width: 768px){.register-container{max-width:400px}}\n"] }]
|
|
81
81
|
}], ctorParameters: function () { return [{ type: i1.FormsService }]; } });
|
|
82
82
|
|
|
83
|
+
class ForgotPasswordComponent {
|
|
84
|
+
constructor(formsService) {
|
|
85
|
+
this.formsService = formsService;
|
|
86
|
+
}
|
|
87
|
+
ngOnInit() {
|
|
88
|
+
this.createForm();
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Create login form
|
|
92
|
+
*/
|
|
93
|
+
createForm() {
|
|
94
|
+
this.form = new FormGroup({
|
|
95
|
+
email: new FormControl('', [Validators.required, Validators.email]),
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Submit form
|
|
100
|
+
*/
|
|
101
|
+
submit() {
|
|
102
|
+
if (this.form.invalid) {
|
|
103
|
+
this.formsService.validateAllFormFields(this.form);
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
ForgotPasswordComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: ForgotPasswordComponent, deps: [{ token: i1.FormsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
109
|
+
ForgotPasswordComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.3", type: ForgotPasswordComponent, selector: "base-forgot-password", ngImport: i0, template: "<div class=\"d-flex justify-content-center align-items-center vh-100\">\n <div class=\"d-flex flex-column login-container\">\n <div class=\"container\">\n <base-input [id]=\"'email'\" [label]=\"'E-Mail Adresse'\" [type]=\"'email'\" [control]=\"form.get('email')\"></base-input>\n <div class=\"d-grid gap-2 text-center\">\n <button class=\"btn btn-primary\" (click)=\"submit()\">E-Mail senden</button>\n <hr />\n <a routerLink=\"../login\">Bereits ein Konto? Dann logge Dich hier ein!</a>\n <a routerLink=\"../registrieren\">Noch kein Konto? Dann registiere Dich jetzt!</a>\n </div>\n </div>\n </div>\n</div>\n", styles: [""], components: [{ type: i2.InputComponent, selector: "base-input", inputs: ["id", "name", "label", "placeholder", "autocomplete", "tabIndex", "control", "type", "required"] }], directives: [{ type: i3.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }] });
|
|
110
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: ForgotPasswordComponent, decorators: [{
|
|
111
|
+
type: Component,
|
|
112
|
+
args: [{ selector: 'base-forgot-password', template: "<div class=\"d-flex justify-content-center align-items-center vh-100\">\n <div class=\"d-flex flex-column login-container\">\n <div class=\"container\">\n <base-input [id]=\"'email'\" [label]=\"'E-Mail Adresse'\" [type]=\"'email'\" [control]=\"form.get('email')\"></base-input>\n <div class=\"d-grid gap-2 text-center\">\n <button class=\"btn btn-primary\" (click)=\"submit()\">E-Mail senden</button>\n <hr />\n <a routerLink=\"../login\">Bereits ein Konto? Dann logge Dich hier ein!</a>\n <a routerLink=\"../registrieren\">Noch kein Konto? Dann registiere Dich jetzt!</a>\n </div>\n </div>\n </div>\n</div>\n", styles: [""] }]
|
|
113
|
+
}], ctorParameters: function () { return [{ type: i1.FormsService }]; } });
|
|
114
|
+
|
|
83
115
|
// Modules
|
|
84
116
|
const imports = [FormsModule, RouterModule, ReactiveFormsModule, CommonModule, BaseComponentsModule];
|
|
85
117
|
// Imported and exported elements
|
|
@@ -87,6 +119,7 @@ const elements = [
|
|
|
87
119
|
// Components
|
|
88
120
|
LoginComponent,
|
|
89
121
|
RegisterComponent,
|
|
122
|
+
ForgotPasswordComponent,
|
|
90
123
|
];
|
|
91
124
|
class BasePrototypeModule {
|
|
92
125
|
}
|
|
@@ -94,11 +127,13 @@ BasePrototypeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", vers
|
|
|
94
127
|
BasePrototypeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: BasePrototypeModule, declarations: [
|
|
95
128
|
// Components
|
|
96
129
|
LoginComponent,
|
|
97
|
-
RegisterComponent
|
|
130
|
+
RegisterComponent,
|
|
131
|
+
ForgotPasswordComponent
|
|
98
132
|
], imports: [FormsModule, RouterModule, ReactiveFormsModule, CommonModule, BaseComponentsModule], exports: [
|
|
99
133
|
// Components
|
|
100
134
|
LoginComponent,
|
|
101
|
-
RegisterComponent
|
|
135
|
+
RegisterComponent,
|
|
136
|
+
ForgotPasswordComponent
|
|
102
137
|
] });
|
|
103
138
|
BasePrototypeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: BasePrototypeModule, imports: [imports] });
|
|
104
139
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: BasePrototypeModule, decorators: [{
|
|
@@ -118,5 +153,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImpor
|
|
|
118
153
|
* Generated bundle index. Do not edit.
|
|
119
154
|
*/
|
|
120
155
|
|
|
121
|
-
export { BasePrototypeModule, LoginComponent, RegisterComponent };
|
|
156
|
+
export { BasePrototypeModule, ForgotPasswordComponent, LoginComponent, RegisterComponent };
|
|
122
157
|
//# sourceMappingURL=lenne.tech-ng-base-base-prototype.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lenne.tech-ng-base-base-prototype.mjs","sources":["../../../projects/ng-base/base-prototype/pages/login/login.component.ts","../../../projects/ng-base/base-prototype/pages/login/login.component.html","../../../projects/ng-base/base-prototype/pages/register/register.component.ts","../../../projects/ng-base/base-prototype/pages/register/register.component.html","../../../projects/ng-base/base-prototype/base-prototype.module.ts","../../../projects/ng-base/base-prototype/public-api.ts","../../../projects/ng-base/base-prototype/lenne.tech-ng-base-base-prototype.ts"],"sourcesContent":["import { Component, OnInit } from '@angular/core';\nimport { FormControl, FormGroup, Validators } from '@angular/forms';\nimport { FormsService } from '@lenne.tech/ng-base';\n\n@Component({\n selector: 'base-login',\n templateUrl: './login.component.html',\n styleUrls: ['./login.component.scss'],\n})\nexport class LoginComponent implements OnInit {\n form: FormGroup;\n\n constructor(private formsService: FormsService) {}\n\n ngOnInit(): void {\n this.createForm();\n }\n\n /**\n * Create login form\n */\n createForm() {\n this.form = new FormGroup({\n email: new FormControl('', [Validators.required, Validators.email]),\n password: new FormControl('', Validators.required),\n });\n }\n\n /**\n * Submit login form\n */\n submit() {\n if (this.form.invalid) {\n this.formsService.validateAllFormFields(this.form);\n return;\n }\n }\n}\n","<div class=\"d-flex justify-content-center align-items-center vh-100\">\n <div class=\"d-flex flex-column login-container\">\n <div class=\"container\">\n <base-input [id]=\"'email'\" [label]=\"'E-Mail Adresse'\" [type]=\"'email'\" [control]=\"form.get('email')\"></base-input>\n <base-input\n [id]=\"'password'\"\n [label]=\"'Passwort'\"\n [type]=\"'password'\"\n [control]=\"form.get('password')\"\n ></base-input>\n <div class=\"d-grid gap-2 text-center\">\n <button class=\"btn btn-primary\" (click)=\"submit()\">Einloggen</button>\n <hr />\n <a routerLink=\"../passwort-vergessen\">Passwort vergessen</a>\n <a routerLink=\"../registrieren\">Noch kein Konto? Dann registiere Dich jetzt!</a>\n </div>\n </div>\n </div>\n</div>\n","import { Component, OnInit } from '@angular/core';\nimport { FormControl, FormGroup, Validators } from '@angular/forms';\nimport { FormsService, MustMatch } from '@lenne.tech/ng-base';\n\n@Component({\n selector: 'base-register',\n templateUrl: './register.component.html',\n styleUrls: ['./register.component.scss'],\n})\nexport class RegisterComponent implements OnInit {\n form: FormGroup;\n\n constructor(private formsService: FormsService) {}\n\n ngOnInit(): void {\n this.createForm();\n }\n\n /**\n * Create login form\n */\n createForm() {\n this.form = new FormGroup(\n {\n firstName: new FormControl('', [Validators.required]),\n lastName: new FormControl('', [Validators.required]),\n email: new FormControl('', [Validators.required, Validators.email]),\n password: new FormControl('', Validators.required),\n passwordConfirm: new FormControl('', Validators.required),\n },\n {\n validators: MustMatch,\n }\n );\n }\n\n /**\n * Submit login form\n */\n submit() {\n if (this.form.invalid) {\n this.formsService.validateAllFormFields(this.form);\n return;\n }\n }\n}\n","<div class=\"d-flex justify-content-center align-items-center vh-100\">\n <div class=\"d-flex flex-column register-container\">\n <div class=\"container\">\n <base-input [id]=\"'firstName'\" [label]=\"'Vorname'\" [type]=\"'text'\" [control]=\"form.get('firstName')\"></base-input>\n <base-input [id]=\"'lastName'\" [label]=\"'Nachname'\" [type]=\"'text'\" [control]=\"form.get('lastName')\"></base-input>\n <base-input [id]=\"'email'\" [label]=\"'E-Mail Adresse'\" [type]=\"'email'\" [control]=\"form.get('email')\"></base-input>\n <base-input\n [id]=\"'password'\"\n [label]=\"'Passwort'\"\n [type]=\"'password'\"\n [control]=\"form.get('password')\"\n ></base-input>\n <base-input\n [id]=\"'password-confirm'\"\n [label]=\"'Passwort bestätigen'\"\n [type]=\"'password'\"\n [control]=\"form.get('passwordConfirm')\"\n ></base-input>\n <div class=\"d-grid gap-2 text-center\">\n <button class=\"btn btn-primary\" (click)=\"submit()\">Registrieren</button>\n <hr />\n <a routerLink=\"../login\">Bereits ein Konto? Dann logge Dich hier ein!</a>\n </div>\n </div>\n </div>\n</div>\n","import { NgModule } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\nimport { RouterModule } from '@angular/router';\n\nimport { LoginComponent } from './pages/login/login.component';\nimport { RegisterComponent } from './pages/register/register.component';\nimport { BaseComponentsModule } from '@lenne.tech/ng-base/base-components';\n\n// Modules\nconst imports = [FormsModule, RouterModule, ReactiveFormsModule, CommonModule, BaseComponentsModule];\n\n// Imported and exported elements\nconst elements = [\n // Components\n LoginComponent,\n RegisterComponent,\n];\n\n@NgModule({\n declarations: elements,\n imports,\n exports: elements,\n})\nexport class BasePrototypeModule {}\n","/**\n * Exports for public API\n */\n\n// Module\nexport * from './base-prototype.module';\n\n// Pages\nexport * from './pages/login/login.component';\nexport * from './pages/register/register.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;MASa,cAAc,CAAA;AAGzB,IAAA,WAAA,CAAoB,YAA0B,EAAA;AAA1B,QAAA,IAAY,CAAA,YAAA,GAAZ,YAAY,CAAc;KAAI;IAElD,QAAQ,GAAA;QACN,IAAI,CAAC,UAA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AA,CAAA,CAAA;iHAAnB,mBAAmB,EAAA,YAAA,EAAA;;QAT9B,cAAc;QACd,iBAAiB;AAAA,KAAA,EAAA,OAAA,EAAA,CANF,WAAW,EAAE,YAAY,EAAE,mBAAmB,EAAE,YAAY,EAAE,oBAAoB,CAAA,EAAA,OAAA,EAAA;;QAKjG,cAAc;QACd,iBAAiB;AAAA,KAAA,EAAA,CAAA,CAAA;AAQN,mBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,YAH9B,OAAO,CAAA,EAAA,CAAA,CAAA;2FAGI,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAL/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,QAAQ;oBACtB,OAAO;AACP,oBAAA,OAAO,EAAE,QAAQ;iBAClB,CAAA;;;ACvBD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"lenne.tech-ng-base-base-prototype.mjs","sources":["../../../projects/ng-base/base-prototype/pages/login/login.component.ts","../../../projects/ng-base/base-prototype/pages/login/login.component.html","../../../projects/ng-base/base-prototype/pages/register/register.component.ts","../../../projects/ng-base/base-prototype/pages/register/register.component.html","../../../projects/ng-base/base-prototype/pages/forgot-password/forgot-password.component.ts","../../../projects/ng-base/base-prototype/pages/forgot-password/forgot-password.component.html","../../../projects/ng-base/base-prototype/base-prototype.module.ts","../../../projects/ng-base/base-prototype/public-api.ts","../../../projects/ng-base/base-prototype/lenne.tech-ng-base-base-prototype.ts"],"sourcesContent":["import { Component, OnInit } from '@angular/core';\nimport { FormControl, FormGroup, Validators } from '@angular/forms';\nimport { FormsService } from '@lenne.tech/ng-base';\n\n@Component({\n selector: 'base-login',\n templateUrl: './login.component.html',\n styleUrls: ['./login.component.scss'],\n})\nexport class LoginComponent implements OnInit {\n form: FormGroup;\n\n constructor(private formsService: FormsService) {}\n\n ngOnInit(): void {\n this.createForm();\n }\n\n /**\n * Create login form\n */\n createForm() {\n this.form = new FormGroup({\n email: new FormControl('', [Validators.required, Validators.email]),\n password: new FormControl('', Validators.required),\n });\n }\n\n /**\n * Submit login form\n */\n submit() {\n if (this.form.invalid) {\n this.formsService.validateAllFormFields(this.form);\n return;\n }\n }\n}\n","<div class=\"d-flex justify-content-center align-items-center vh-100\">\n <div class=\"d-flex flex-column login-container\">\n <div class=\"container\">\n <base-input [id]=\"'email'\" [label]=\"'E-Mail Adresse'\" [type]=\"'email'\" [control]=\"form.get('email')\"></base-input>\n <base-input\n [id]=\"'password'\"\n [label]=\"'Passwort'\"\n [type]=\"'password'\"\n [control]=\"form.get('password')\"\n ></base-input>\n <div class=\"d-grid gap-2 text-center\">\n <button class=\"btn btn-primary\" (click)=\"submit()\">Einloggen</button>\n <hr />\n <a routerLink=\"../passwort-vergessen\">Passwort vergessen</a>\n <a routerLink=\"../registrieren\">Noch kein Konto? Dann registiere Dich jetzt!</a>\n </div>\n </div>\n </div>\n</div>\n","import { Component, OnInit } from '@angular/core';\nimport { FormControl, FormGroup, Validators } from '@angular/forms';\nimport { FormsService, MustMatch } from '@lenne.tech/ng-base';\n\n@Component({\n selector: 'base-register',\n templateUrl: './register.component.html',\n styleUrls: ['./register.component.scss'],\n})\nexport class RegisterComponent implements OnInit {\n form: FormGroup;\n\n constructor(private formsService: FormsService) {}\n\n ngOnInit(): void {\n this.createForm();\n }\n\n /**\n * Create login form\n */\n createForm() {\n this.form = new FormGroup(\n {\n firstName: new FormControl('', [Validators.required]),\n lastName: new FormControl('', [Validators.required]),\n email: new FormControl('', [Validators.required, Validators.email]),\n password: new FormControl('', Validators.required),\n passwordConfirm: new FormControl('', Validators.required),\n },\n {\n validators: MustMatch,\n }\n );\n }\n\n /**\n * Submit login form\n */\n submit() {\n if (this.form.invalid) {\n this.formsService.validateAllFormFields(this.form);\n return;\n }\n }\n}\n","<div class=\"d-flex justify-content-center align-items-center vh-100\">\n <div class=\"d-flex flex-column register-container\">\n <div class=\"container\">\n <base-input [id]=\"'firstName'\" [label]=\"'Vorname'\" [type]=\"'text'\" [control]=\"form.get('firstName')\"></base-input>\n <base-input [id]=\"'lastName'\" [label]=\"'Nachname'\" [type]=\"'text'\" [control]=\"form.get('lastName')\"></base-input>\n <base-input [id]=\"'email'\" [label]=\"'E-Mail Adresse'\" [type]=\"'email'\" [control]=\"form.get('email')\"></base-input>\n <base-input\n [id]=\"'password'\"\n [label]=\"'Passwort'\"\n [type]=\"'password'\"\n [control]=\"form.get('password')\"\n ></base-input>\n <base-input\n [id]=\"'password-confirm'\"\n [label]=\"'Passwort bestätigen'\"\n [type]=\"'password'\"\n [control]=\"form.get('passwordConfirm')\"\n ></base-input>\n <div class=\"d-grid gap-2 text-center\">\n <button class=\"btn btn-primary\" (click)=\"submit()\">Registrieren</button>\n <hr />\n <a routerLink=\"../login\">Bereits ein Konto? Dann logge Dich hier ein!</a>\n </div>\n </div>\n </div>\n</div>\n","import { Component, OnInit } from '@angular/core';\nimport { FormControl, FormGroup, Validators } from '@angular/forms';\nimport { FormsService } from '@lenne.tech/ng-base';\n\n@Component({\n selector: 'base-forgot-password',\n templateUrl: './forgot-password.component.html',\n styleUrls: ['./forgot-password.component.scss'],\n})\nexport class ForgotPasswordComponent implements OnInit {\n form: FormGroup;\n\n constructor(private formsService: FormsService) {}\n\n ngOnInit(): void {\n this.createForm();\n }\n\n /**\n * Create login form\n */\n createForm() {\n this.form = new FormGroup({\n email: new FormControl('', [Validators.required, Validators.email]),\n });\n }\n\n /**\n * Submit form\n */\n submit() {\n if (this.form.invalid) {\n this.formsService.validateAllFormFields(this.form);\n return;\n }\n }\n}\n","<div class=\"d-flex justify-content-center align-items-center vh-100\">\n <div class=\"d-flex flex-column login-container\">\n <div class=\"container\">\n <base-input [id]=\"'email'\" [label]=\"'E-Mail Adresse'\" [type]=\"'email'\" [control]=\"form.get('email')\"></base-input>\n <div class=\"d-grid gap-2 text-center\">\n <button class=\"btn btn-primary\" (click)=\"submit()\">E-Mail senden</button>\n <hr />\n <a routerLink=\"../login\">Bereits ein Konto? Dann logge Dich hier ein!</a>\n <a routerLink=\"../registrieren\">Noch kein Konto? Dann registiere Dich jetzt!</a>\n </div>\n </div>\n </div>\n</div>\n","import { NgModule } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\nimport { RouterModule } from '@angular/router';\n\nimport { LoginComponent } from './pages/login/login.component';\nimport { RegisterComponent } from './pages/register/register.component';\nimport { BaseComponentsModule } from '@lenne.tech/ng-base/base-components';\nimport { ForgotPasswordComponent } from './pages/forgot-password/forgot-password.component';\n\n// Modules\nconst imports = [FormsModule, RouterModule, ReactiveFormsModule, CommonModule, BaseComponentsModule];\n\n// Imported and exported elements\nconst elements = [\n // Components\n LoginComponent,\n RegisterComponent,\n ForgotPasswordComponent,\n];\n\n@NgModule({\n declarations: elements,\n imports,\n exports: elements,\n})\nexport class BasePrototypeModule {}\n","/**\n * Exports for public API\n */\n\n// Module\nexport * from './base-prototype.module';\n\n// Pages\nexport * from './pages/login/login.component';\nexport * from './pages/register/register.component';\nexport * from './pages/forgot-password/forgot-password.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;MASa,cAAc,CAAA;AAGzB,IAAA,WAAA,CAAoB,YAA0B,EAAA;AAA1B,QAAA,IAAY,CAAA,YAAA,GAAZ,YAAY,CAAc;KAAI;IAElD,QAAQ,GAAA;QACN,IAAI,CAAC,UAAU,EAAE,CAAC;KACnB;AAED;;AAEG;IACH,UAAU,GAAA;AACR,QAAA,IAAI,CAAC,IAAI,GAAG,IAAI,SAAS,CAAC;AACxB,YAAA,KAAK,EAAE,IAAI,WAAW,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;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AuB;CACxB,CAAC;MAOW,mBAAmB,CAAA;;gHAAnB,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;iHAAnB,mBAAmB,EAAA,YAAA,EAAA;;QAV9B,cAAc;QACd,iBAAiB;QACjB,uBAAuB;AAAA,KAAA,EAAA,OAAA,EAAA,CAPR,WAAW,EAAE,YAAY,EAAE,mBAAmB,EAAE,YAAY,EAAE,oBAAoB,CAAA,EAAA,OAAA,EAAA;;QAKjG,cAAc;QACd,iBAAiB;QACjB,uBAAuB;AAAA,KAAA,EAAA,CAAA,CAAA;AAQZ,mBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,YAH9B,OAAO,CAAA,EAAA,CAAA,CAAA;2FAGI,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAL/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,QAAQ;oBACtB,OAAO;AACP,oBAAA,OAAO,EAAE,QAAQ;iBAClB,CAAA;;;ACzBD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -80,6 +80,38 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImpor
|
|
|
80
80
|
args: [{ selector: 'base-register', template: "<div class=\"d-flex justify-content-center align-items-center vh-100\">\n <div class=\"d-flex flex-column register-container\">\n <div class=\"container\">\n <base-input [id]=\"'firstName'\" [label]=\"'Vorname'\" [type]=\"'text'\" [control]=\"form.get('firstName')\"></base-input>\n <base-input [id]=\"'lastName'\" [label]=\"'Nachname'\" [type]=\"'text'\" [control]=\"form.get('lastName')\"></base-input>\n <base-input [id]=\"'email'\" [label]=\"'E-Mail Adresse'\" [type]=\"'email'\" [control]=\"form.get('email')\"></base-input>\n <base-input\n [id]=\"'password'\"\n [label]=\"'Passwort'\"\n [type]=\"'password'\"\n [control]=\"form.get('password')\"\n ></base-input>\n <base-input\n [id]=\"'password-confirm'\"\n [label]=\"'Passwort best\u00E4tigen'\"\n [type]=\"'password'\"\n [control]=\"form.get('passwordConfirm')\"\n ></base-input>\n <div class=\"d-grid gap-2 text-center\">\n <button class=\"btn btn-primary\" (click)=\"submit()\">Registrieren</button>\n <hr />\n <a routerLink=\"../login\">Bereits ein Konto? Dann logge Dich hier ein!</a>\n </div>\n </div>\n </div>\n</div>\n", styles: [".register-container{width:100%;padding:20px 0}@media (min-width: 768px){.register-container{max-width:400px}}\n"] }]
|
|
81
81
|
}], ctorParameters: function () { return [{ type: i1.FormsService }]; } });
|
|
82
82
|
|
|
83
|
+
class ForgotPasswordComponent {
|
|
84
|
+
constructor(formsService) {
|
|
85
|
+
this.formsService = formsService;
|
|
86
|
+
}
|
|
87
|
+
ngOnInit() {
|
|
88
|
+
this.createForm();
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Create login form
|
|
92
|
+
*/
|
|
93
|
+
createForm() {
|
|
94
|
+
this.form = new FormGroup({
|
|
95
|
+
email: new FormControl('', [Validators.required, Validators.email]),
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Submit form
|
|
100
|
+
*/
|
|
101
|
+
submit() {
|
|
102
|
+
if (this.form.invalid) {
|
|
103
|
+
this.formsService.validateAllFormFields(this.form);
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
ForgotPasswordComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: ForgotPasswordComponent, deps: [{ token: i1.FormsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
109
|
+
ForgotPasswordComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.3", type: ForgotPasswordComponent, selector: "base-forgot-password", ngImport: i0, template: "<div class=\"d-flex justify-content-center align-items-center vh-100\">\n <div class=\"d-flex flex-column login-container\">\n <div class=\"container\">\n <base-input [id]=\"'email'\" [label]=\"'E-Mail Adresse'\" [type]=\"'email'\" [control]=\"form.get('email')\"></base-input>\n <div class=\"d-grid gap-2 text-center\">\n <button class=\"btn btn-primary\" (click)=\"submit()\">E-Mail senden</button>\n <hr />\n <a routerLink=\"../login\">Bereits ein Konto? Dann logge Dich hier ein!</a>\n <a routerLink=\"../registrieren\">Noch kein Konto? Dann registiere Dich jetzt!</a>\n </div>\n </div>\n </div>\n</div>\n", styles: [""], components: [{ type: i2.InputComponent, selector: "base-input", inputs: ["id", "name", "label", "placeholder", "autocomplete", "tabIndex", "control", "type", "required"] }], directives: [{ type: i3.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }] });
|
|
110
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: ForgotPasswordComponent, decorators: [{
|
|
111
|
+
type: Component,
|
|
112
|
+
args: [{ selector: 'base-forgot-password', template: "<div class=\"d-flex justify-content-center align-items-center vh-100\">\n <div class=\"d-flex flex-column login-container\">\n <div class=\"container\">\n <base-input [id]=\"'email'\" [label]=\"'E-Mail Adresse'\" [type]=\"'email'\" [control]=\"form.get('email')\"></base-input>\n <div class=\"d-grid gap-2 text-center\">\n <button class=\"btn btn-primary\" (click)=\"submit()\">E-Mail senden</button>\n <hr />\n <a routerLink=\"../login\">Bereits ein Konto? Dann logge Dich hier ein!</a>\n <a routerLink=\"../registrieren\">Noch kein Konto? Dann registiere Dich jetzt!</a>\n </div>\n </div>\n </div>\n</div>\n", styles: [""] }]
|
|
113
|
+
}], ctorParameters: function () { return [{ type: i1.FormsService }]; } });
|
|
114
|
+
|
|
83
115
|
// Modules
|
|
84
116
|
const imports = [FormsModule, RouterModule, ReactiveFormsModule, CommonModule, BaseComponentsModule];
|
|
85
117
|
// Imported and exported elements
|
|
@@ -87,6 +119,7 @@ const elements = [
|
|
|
87
119
|
// Components
|
|
88
120
|
LoginComponent,
|
|
89
121
|
RegisterComponent,
|
|
122
|
+
ForgotPasswordComponent,
|
|
90
123
|
];
|
|
91
124
|
class BasePrototypeModule {
|
|
92
125
|
}
|
|
@@ -94,10 +127,12 @@ BasePrototypeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", vers
|
|
|
94
127
|
BasePrototypeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: BasePrototypeModule, declarations: [
|
|
95
128
|
// Components
|
|
96
129
|
LoginComponent,
|
|
97
|
-
RegisterComponent
|
|
130
|
+
RegisterComponent,
|
|
131
|
+
ForgotPasswordComponent], imports: [FormsModule, RouterModule, ReactiveFormsModule, CommonModule, BaseComponentsModule], exports: [
|
|
98
132
|
// Components
|
|
99
133
|
LoginComponent,
|
|
100
|
-
RegisterComponent
|
|
134
|
+
RegisterComponent,
|
|
135
|
+
ForgotPasswordComponent] });
|
|
101
136
|
BasePrototypeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: BasePrototypeModule, imports: [imports] });
|
|
102
137
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: BasePrototypeModule, decorators: [{
|
|
103
138
|
type: NgModule,
|
|
@@ -116,5 +151,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImpor
|
|
|
116
151
|
* Generated bundle index. Do not edit.
|
|
117
152
|
*/
|
|
118
153
|
|
|
119
|
-
export { BasePrototypeModule, LoginComponent, RegisterComponent };
|
|
154
|
+
export { BasePrototypeModule, ForgotPasswordComponent, LoginComponent, RegisterComponent };
|
|
120
155
|
//# sourceMappingURL=lenne.tech-ng-base-base-prototype.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lenne.tech-ng-base-base-prototype.mjs","sources":["../../../projects/ng-base/base-prototype/pages/login/login.component.ts","../../../projects/ng-base/base-prototype/pages/login/login.component.html","../../../projects/ng-base/base-prototype/pages/register/register.component.ts","../../../projects/ng-base/base-prototype/pages/register/register.component.html","../../../projects/ng-base/base-prototype/base-prototype.module.ts","../../../projects/ng-base/base-prototype/public-api.ts","../../../projects/ng-base/base-prototype/lenne.tech-ng-base-base-prototype.ts"],"sourcesContent":["import { Component, OnInit } from '@angular/core';\nimport { FormControl, FormGroup, Validators } from '@angular/forms';\nimport { FormsService } from '@lenne.tech/ng-base';\n\n@Component({\n selector: 'base-login',\n templateUrl: './login.component.html',\n styleUrls: ['./login.component.scss'],\n})\nexport class LoginComponent implements OnInit {\n form: FormGroup;\n\n constructor(private formsService: FormsService) {}\n\n ngOnInit(): void {\n this.createForm();\n }\n\n /**\n * Create login form\n */\n createForm() {\n this.form = new FormGroup({\n email: new FormControl('', [Validators.required, Validators.email]),\n password: new FormControl('', Validators.required),\n });\n }\n\n /**\n * Submit login form\n */\n submit() {\n if (this.form.invalid) {\n this.formsService.validateAllFormFields(this.form);\n return;\n }\n }\n}\n","<div class=\"d-flex justify-content-center align-items-center vh-100\">\n <div class=\"d-flex flex-column login-container\">\n <div class=\"container\">\n <base-input [id]=\"'email'\" [label]=\"'E-Mail Adresse'\" [type]=\"'email'\" [control]=\"form.get('email')\"></base-input>\n <base-input\n [id]=\"'password'\"\n [label]=\"'Passwort'\"\n [type]=\"'password'\"\n [control]=\"form.get('password')\"\n ></base-input>\n <div class=\"d-grid gap-2 text-center\">\n <button class=\"btn btn-primary\" (click)=\"submit()\">Einloggen</button>\n <hr />\n <a routerLink=\"../passwort-vergessen\">Passwort vergessen</a>\n <a routerLink=\"../registrieren\">Noch kein Konto? Dann registiere Dich jetzt!</a>\n </div>\n </div>\n </div>\n</div>\n","import { Component, OnInit } from '@angular/core';\nimport { FormControl, FormGroup, Validators } from '@angular/forms';\nimport { FormsService, MustMatch } from '@lenne.tech/ng-base';\n\n@Component({\n selector: 'base-register',\n templateUrl: './register.component.html',\n styleUrls: ['./register.component.scss'],\n})\nexport class RegisterComponent implements OnInit {\n form: FormGroup;\n\n constructor(private formsService: FormsService) {}\n\n ngOnInit(): void {\n this.createForm();\n }\n\n /**\n * Create login form\n */\n createForm() {\n this.form = new FormGroup(\n {\n firstName: new FormControl('', [Validators.required]),\n lastName: new FormControl('', [Validators.required]),\n email: new FormControl('', [Validators.required, Validators.email]),\n password: new FormControl('', Validators.required),\n passwordConfirm: new FormControl('', Validators.required),\n },\n {\n validators: MustMatch,\n }\n );\n }\n\n /**\n * Submit login form\n */\n submit() {\n if (this.form.invalid) {\n this.formsService.validateAllFormFields(this.form);\n return;\n }\n }\n}\n","<div class=\"d-flex justify-content-center align-items-center vh-100\">\n <div class=\"d-flex flex-column register-container\">\n <div class=\"container\">\n <base-input [id]=\"'firstName'\" [label]=\"'Vorname'\" [type]=\"'text'\" [control]=\"form.get('firstName')\"></base-input>\n <base-input [id]=\"'lastName'\" [label]=\"'Nachname'\" [type]=\"'text'\" [control]=\"form.get('lastName')\"></base-input>\n <base-input [id]=\"'email'\" [label]=\"'E-Mail Adresse'\" [type]=\"'email'\" [control]=\"form.get('email')\"></base-input>\n <base-input\n [id]=\"'password'\"\n [label]=\"'Passwort'\"\n [type]=\"'password'\"\n [control]=\"form.get('password')\"\n ></base-input>\n <base-input\n [id]=\"'password-confirm'\"\n [label]=\"'Passwort bestätigen'\"\n [type]=\"'password'\"\n [control]=\"form.get('passwordConfirm')\"\n ></base-input>\n <div class=\"d-grid gap-2 text-center\">\n <button class=\"btn btn-primary\" (click)=\"submit()\">Registrieren</button>\n <hr />\n <a routerLink=\"../login\">Bereits ein Konto? Dann logge Dich hier ein!</a>\n </div>\n </div>\n </div>\n</div>\n","import { NgModule } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\nimport { RouterModule } from '@angular/router';\n\nimport { LoginComponent } from './pages/login/login.component';\nimport { RegisterComponent } from './pages/register/register.component';\nimport { BaseComponentsModule } from '@lenne.tech/ng-base/base-components';\n\n// Modules\nconst imports = [FormsModule, RouterModule, ReactiveFormsModule, CommonModule, BaseComponentsModule];\n\n// Imported and exported elements\nconst elements = [\n // Components\n LoginComponent,\n RegisterComponent,\n];\n\n@NgModule({\n declarations: elements,\n imports,\n exports: elements,\n})\nexport class BasePrototypeModule {}\n","/**\n * Exports for public API\n */\n\n// Module\nexport * from './base-prototype.module';\n\n// Pages\nexport * from './pages/login/login.component';\nexport * from './pages/register/register.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;MASa,cAAc,CAAA;AAGzB,IAAA,WAAA,CAAoB,YAA0B,EAAA;QAA1B,IAAY,CAAA,YAAA,GAAZ,YAAY,CAAc;KAAI;IAElD,QAAQ,GAAA;QACN,IAAI,CAAC,UAAU,EAAE,CAAC;KACnB;AAED;;AAEG;IACH,UAAU,GAAA;AACR,QAAA,IAAI,CAAC,IAAI,GAAG,IAAI,SAAS,CAAC;AACxB,YAAA,KAAK,EAAE,IAAI,WAAW,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;YACnE,QAAQ,EAAE,IAAI,WAAW,CAAC,EAAE,EAAE,UAAU,CAAC,QAAQ,CAAC;AACnD,SAAA,CAAC,CAAC;KACJ;AAED;;AAEG;IACH,MAAM,GAAA;AACJ,QAAA,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACrB,IAAI,CAAC,YAAY,CAAC,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACnD,OAAO;AACR,SAAA;KACF;;2GA3BU,cAAc,EAAA,IAAA,EAAA,CAAA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BACtB,OAAO;AACP,oBAAA,OAAO,EAAE,QAAQ;AAClB,iBAAA,CAAA;;;ACvBD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"lenne.tech-ng-base-base-prototype.mjs","sources":["../../../projects/ng-base/base-prototype/pages/login/login.component.ts","../../../projects/ng-base/base-prototype/pages/login/login.component.html","../../../projects/ng-base/base-prototype/pages/register/register.component.ts","../../../projects/ng-base/base-prototype/pages/register/register.component.html","../../../projects/ng-base/base-prototype/pages/forgot-password/forgot-password.component.ts","../../../projects/ng-base/base-prototype/pages/forgot-password/forgot-password.component.html","../../../projects/ng-base/base-prototype/base-prototype.module.ts","../../../projects/ng-base/base-prototype/public-api.ts","../../../projects/ng-base/base-prototype/lenne.tech-ng-base-base-prototype.ts"],"sourcesContent":["import { Component, OnInit } from '@angular/core';\nimport { FormControl, FormGroup, Validators } from '@angular/forms';\nimport { FormsService } from '@lenne.tech/ng-base';\n\n@Component({\n selector: 'base-login',\n templateUrl: './login.component.html',\n styleUrls: ['./login.component.scss'],\n})\nexport class LoginComponent implements OnInit {\n form: FormGroup;\n\n constructor(private formsService: FormsService) {}\n\n ngOnInit(): void {\n this.createForm();\n }\n\n /**\n * Create login form\n */\n createForm() {\n this.form = new FormGroup({\n email: new FormControl('', [Validators.required, Validators.email]),\n password: new FormControl('', Validators.required),\n });\n }\n\n /**\n * Submit login form\n */\n submit() {\n if (this.form.invalid) {\n this.formsService.validateAllFormFields(this.form);\n return;\n }\n }\n}\n","<div class=\"d-flex justify-content-center align-items-center vh-100\">\n <div class=\"d-flex flex-column login-container\">\n <div class=\"container\">\n <base-input [id]=\"'email'\" [label]=\"'E-Mail Adresse'\" [type]=\"'email'\" [control]=\"form.get('email')\"></base-input>\n <base-input\n [id]=\"'password'\"\n [label]=\"'Passwort'\"\n [type]=\"'password'\"\n [control]=\"form.get('password')\"\n ></base-input>\n <div class=\"d-grid gap-2 text-center\">\n <button class=\"btn btn-primary\" (click)=\"submit()\">Einloggen</button>\n <hr />\n <a routerLink=\"../passwort-vergessen\">Passwort vergessen</a>\n <a routerLink=\"../registrieren\">Noch kein Konto? Dann registiere Dich jetzt!</a>\n </div>\n </div>\n </div>\n</div>\n","import { Component, OnInit } from '@angular/core';\nimport { FormControl, FormGroup, Validators } from '@angular/forms';\nimport { FormsService, MustMatch } from '@lenne.tech/ng-base';\n\n@Component({\n selector: 'base-register',\n templateUrl: './register.component.html',\n styleUrls: ['./register.component.scss'],\n})\nexport class RegisterComponent implements OnInit {\n form: FormGroup;\n\n constructor(private formsService: FormsService) {}\n\n ngOnInit(): void {\n this.createForm();\n }\n\n /**\n * Create login form\n */\n createForm() {\n this.form = new FormGroup(\n {\n firstName: new FormControl('', [Validators.required]),\n lastName: new FormControl('', [Validators.required]),\n email: new FormControl('', [Validators.required, Validators.email]),\n password: new FormControl('', Validators.required),\n passwordConfirm: new FormControl('', Validators.required),\n },\n {\n validators: MustMatch,\n }\n );\n }\n\n /**\n * Submit login form\n */\n submit() {\n if (this.form.invalid) {\n this.formsService.validateAllFormFields(this.form);\n return;\n }\n }\n}\n","<div class=\"d-flex justify-content-center align-items-center vh-100\">\n <div class=\"d-flex flex-column register-container\">\n <div class=\"container\">\n <base-input [id]=\"'firstName'\" [label]=\"'Vorname'\" [type]=\"'text'\" [control]=\"form.get('firstName')\"></base-input>\n <base-input [id]=\"'lastName'\" [label]=\"'Nachname'\" [type]=\"'text'\" [control]=\"form.get('lastName')\"></base-input>\n <base-input [id]=\"'email'\" [label]=\"'E-Mail Adresse'\" [type]=\"'email'\" [control]=\"form.get('email')\"></base-input>\n <base-input\n [id]=\"'password'\"\n [label]=\"'Passwort'\"\n [type]=\"'password'\"\n [control]=\"form.get('password')\"\n ></base-input>\n <base-input\n [id]=\"'password-confirm'\"\n [label]=\"'Passwort bestätigen'\"\n [type]=\"'password'\"\n [control]=\"form.get('passwordConfirm')\"\n ></base-input>\n <div class=\"d-grid gap-2 text-center\">\n <button class=\"btn btn-primary\" (click)=\"submit()\">Registrieren</button>\n <hr />\n <a routerLink=\"../login\">Bereits ein Konto? Dann logge Dich hier ein!</a>\n </div>\n </div>\n </div>\n</div>\n","import { Component, OnInit } from '@angular/core';\nimport { FormControl, FormGroup, Validators } from '@angular/forms';\nimport { FormsService } from '@lenne.tech/ng-base';\n\n@Component({\n selector: 'base-forgot-password',\n templateUrl: './forgot-password.component.html',\n styleUrls: ['./forgot-password.component.scss'],\n})\nexport class ForgotPasswordComponent implements OnInit {\n form: FormGroup;\n\n constructor(private formsService: FormsService) {}\n\n ngOnInit(): void {\n this.createForm();\n }\n\n /**\n * Create login form\n */\n createForm() {\n this.form = new FormGroup({\n email: new FormControl('', [Validators.required, Validators.email]),\n });\n }\n\n /**\n * Submit form\n */\n submit() {\n if (this.form.invalid) {\n this.formsService.validateAllFormFields(this.form);\n return;\n }\n }\n}\n","<div class=\"d-flex justify-content-center align-items-center vh-100\">\n <div class=\"d-flex flex-column login-container\">\n <div class=\"container\">\n <base-input [id]=\"'email'\" [label]=\"'E-Mail Adresse'\" [type]=\"'email'\" [control]=\"form.get('email')\"></base-input>\n <div class=\"d-grid gap-2 text-center\">\n <button class=\"btn btn-primary\" (click)=\"submit()\">E-Mail senden</button>\n <hr />\n <a routerLink=\"../login\">Bereits ein Konto? Dann logge Dich hier ein!</a>\n <a routerLink=\"../registrieren\">Noch kein Konto? Dann registiere Dich jetzt!</a>\n </div>\n </div>\n </div>\n</div>\n","import { NgModule } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\nimport { RouterModule } from '@angular/router';\n\nimport { LoginComponent } from './pages/login/login.component';\nimport { RegisterComponent } from './pages/register/register.component';\nimport { BaseComponentsModule } from '@lenne.tech/ng-base/base-components';\nimport { ForgotPasswordComponent } from './pages/forgot-password/forgot-password.component';\n\n// Modules\nconst imports = [FormsModule, RouterModule, ReactiveFormsModule, CommonModule, BaseComponentsModule];\n\n// Imported and exported elements\nconst elements = [\n // Components\n LoginComponent,\n RegisterComponent,\n ForgotPasswordComponent,\n];\n\n@NgModule({\n declarations: elements,\n imports,\n exports: elements,\n})\nexport class BasePrototypeModule {}\n","/**\n * Exports for public API\n */\n\n// Module\nexport * from './base-prototype.module';\n\n// Pages\nexport * from './pages/login/login.component';\nexport * from './pages/register/register.component';\nexport * from './pages/forgot-password/forgot-password.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;MASa,cAAc,CAAA;AAGzB,IAAA,WAAA,CAAoB,YAA0B,EAAA;QAA1B,IAAY,CAAA,YAAA,GAAZ,YAAY,CAAc;KAAI;IAElD,QAAQ,GAAA;QACN,IAAI,CAAC,UAAU,EAAE,CAAC;KACnB;AAED;;AAEG;IACH,UAAU,GAAA;AACR,QAAA,IAAI,CAAC,IAAI,GAAG,IAAI,SAAS,CAAC;AACxB,YAAA,KAAK,EAAE,IAAI,WAAW,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;YACnE,QAAQ,EAAE,IAAI,WAAW,CAAC,EAAE,EAAE,UAAU,CAAC,QAAQ,CAAC;AACnD,SAAA,CAAC,CAAC;KACJ;AAED;;AAEG;IACH,MAAM,GAAA;AACJ,QAAA,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACrB,IAAI,CAAC,YAAY,CAAC,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACnD,OAAO;AACR,SAAA;KACF;;2GA3BU,cAAc,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,YAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAd,cAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA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