@lenne.tech/ng-base 13.6.5 → 13.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base-components/base-components.module.d.ts +8 -3
- package/base-components/components/breadcrumb/breadcrumb.component.d.ts +10 -0
- package/base-components/components/checkbox/checkbox.component.d.ts +1 -1
- package/base-components/components/loading-bar/loading-bar.component.d.ts +5 -0
- package/base-components/components/select/select.component.d.ts +2 -1
- package/base-components/components/skeleton-loader/skeleton-loader.component.d.ts +10 -0
- package/base-components/components/tags/tags.component.d.ts +33 -0
- package/base-components/components/toast/toast.component.d.ts +18 -0
- package/base-components/public-api.d.ts +5 -0
- package/base-prototype/base-prototype.module.d.ts +6 -5
- package/base-prototype/pages/forgot-password/forgot-password.component.d.ts +7 -2
- package/base-prototype/pages/login/login.component.d.ts +8 -2
- package/base-prototype/pages/register/register.component.d.ts +8 -2
- package/esm2020/base-components/base-components.module.mjs +23 -3
- package/esm2020/base-components/components/breadcrumb/breadcrumb.component.mjs +17 -0
- package/esm2020/base-components/components/checkbox/checkbox.component.mjs +3 -3
- package/esm2020/base-components/components/input/input.component.mjs +3 -3
- package/esm2020/base-components/components/loading-bar/loading-bar.component.mjs +11 -0
- package/esm2020/base-components/components/select/select.component.mjs +6 -3
- package/esm2020/base-components/components/skeleton-loader/skeleton-loader.component.mjs +33 -0
- package/esm2020/base-components/components/tags/tags.component.mjs +85 -0
- package/esm2020/base-components/components/toast/toast.component.mjs +61 -0
- package/esm2020/base-components/public-api.mjs +6 -1
- package/esm2020/base-prototype/base-prototype.module.mjs +5 -4
- package/esm2020/base-prototype/pages/forgot-password/forgot-password.component.mjs +30 -9
- package/esm2020/base-prototype/pages/login/login.component.mjs +46 -9
- package/esm2020/base-prototype/pages/register/register.component.mjs +45 -11
- package/esm2020/public-api.mjs +1 -42
- package/esm2020/shared/classes/auth.class.mjs +16 -0
- package/esm2020/shared/classes/basic-user.class.mjs +51 -0
- package/esm2020/shared/classes/graphql-enum.class.mjs +9 -0
- package/esm2020/shared/classes/graphql-meta.class.mjs +171 -0
- package/esm2020/shared/classes/graphql-type.class.mjs +13 -0
- package/esm2020/shared/classes/helper.class.mjs +304 -0
- package/esm2020/shared/classes/standard.class.mjs +40 -0
- package/esm2020/{src → shared}/enums/comparison-operator.enum.mjs +1 -1
- package/esm2020/shared/enums/graphql-request-type.enum.mjs +10 -0
- package/esm2020/shared/enums/logical-operator.enum.mjs +10 -0
- package/esm2020/shared/enums/skeleton-type.enum.mjs +7 -0
- package/esm2020/shared/enums/sort-order.enum.mjs +6 -0
- package/esm2020/shared/enums/toast-type.enum.mjs +7 -0
- package/esm2020/shared/functions/ws-client.function.mjs +39 -0
- package/esm2020/shared/interfaces/base-module-config.interface.mjs +3 -0
- package/esm2020/shared/interfaces/breadcrumb.interface.mjs +2 -0
- package/esm2020/shared/interfaces/can-component-deactivate.interface.mjs +2 -0
- package/esm2020/shared/interfaces/combined-filter-input.interface.mjs +2 -0
- package/esm2020/shared/interfaces/field-object.interface.mjs +2 -0
- package/esm2020/shared/interfaces/field.interface.mjs +2 -0
- package/esm2020/shared/interfaces/filter-input.interface.mjs +2 -0
- package/esm2020/shared/interfaces/find-args.interface.mjs +2 -0
- package/esm2020/shared/interfaces/graphql-fields-object.interface.mjs +2 -0
- package/esm2020/shared/interfaces/graphql-options.interface.mjs +2 -0
- package/esm2020/shared/interfaces/graphql-plus-options.interfacen.mjs +2 -0
- package/esm2020/shared/interfaces/graphql-type-collection.interface.mjs +2 -0
- package/esm2020/shared/interfaces/single-filter-input.interface.mjs +2 -0
- package/esm2020/shared/interfaces/sort-input.interface.mjs +2 -0
- package/esm2020/shared/interfaces/time-components.interface.mjs +2 -0
- package/esm2020/shared/interfaces/toast.interface.mjs +2 -0
- package/esm2020/shared/lenne.tech-ng-base-shared.mjs +5 -0
- package/esm2020/shared/public-api.mjs +57 -0
- package/esm2020/shared/services/auth.service.mjs +71 -0
- package/esm2020/shared/services/breadcrumb.service.mjs +68 -0
- package/esm2020/shared/services/forms.service.mjs +25 -0
- package/esm2020/shared/services/graphql-meta.service.mjs +123 -0
- package/esm2020/shared/services/graphql-plus.service.mjs +84 -0
- package/esm2020/shared/services/graphql.service.mjs +441 -0
- package/esm2020/shared/services/image.service.mjs +102 -0
- package/esm2020/shared/services/loader.service.mjs +29 -0
- package/esm2020/shared/services/scroll.service.mjs +179 -0
- package/esm2020/shared/services/storage.service.mjs +132 -0
- package/esm2020/shared/services/toast.service.mjs +41 -0
- package/esm2020/shared/services/user.service.mjs +82 -0
- package/esm2020/shared/services/ws.service.mjs +16 -0
- package/esm2020/shared/types/graphql-fields.type.mjs +2 -0
- package/esm2020/shared/types/storage.type.mjs +2 -0
- package/esm2020/shared/validators/match.validator.mjs +19 -0
- package/esm2020/src/base.module.mjs +14 -11
- package/esm2020/src/directives/match-height.directive.mjs +2 -2
- package/esm2020/src/factories/apollo-options.factory.mjs +14 -12
- package/esm2020/src/guards/auth.guard.mjs +3 -3
- package/esm2020/src/guards/can-deactivate.guard.mjs +1 -1
- package/esm2020/src/guards/logout.guard.mjs +2 -2
- package/esm2020/src/services/theme.service.mjs +2 -2
- package/fesm2015/lenne.tech-ng-base-base-components.mjs +218 -9
- package/fesm2015/lenne.tech-ng-base-base-components.mjs.map +1 -1
- package/fesm2015/lenne.tech-ng-base-base-prototype.mjs +113 -22
- package/fesm2015/lenne.tech-ng-base-base-prototype.mjs.map +1 -1
- package/fesm2015/lenne.tech-ng-base-shared.mjs +1995 -0
- package/fesm2015/lenne.tech-ng-base-shared.mjs.map +1 -0
- package/fesm2015/lenne.tech-ng-base.mjs +57 -1799
- package/fesm2015/lenne.tech-ng-base.mjs.map +1 -1
- package/fesm2020/lenne.tech-ng-base-base-components.mjs +218 -9
- package/fesm2020/lenne.tech-ng-base-base-components.mjs.map +1 -1
- package/fesm2020/lenne.tech-ng-base-base-prototype.mjs +111 -22
- package/fesm2020/lenne.tech-ng-base-base-prototype.mjs.map +1 -1
- package/fesm2020/lenne.tech-ng-base-shared.mjs +2055 -0
- package/fesm2020/lenne.tech-ng-base-shared.mjs.map +1 -0
- package/fesm2020/lenne.tech-ng-base.mjs +57 -1854
- package/fesm2020/lenne.tech-ng-base.mjs.map +1 -1
- package/package.json +10 -2
- package/public-api.d.ts +0 -36
- package/shared/classes/auth.class.d.ts +9 -0
- package/{src → shared}/classes/basic-user.class.d.ts +0 -0
- package/{src → shared}/classes/graphql-enum.class.d.ts +0 -0
- package/{src → shared}/classes/graphql-meta.class.d.ts +0 -0
- package/{src → shared}/classes/graphql-type.class.d.ts +0 -0
- package/{src → shared}/classes/helper.class.d.ts +0 -0
- package/{src → shared}/classes/standard.class.d.ts +0 -0
- package/{src → shared}/enums/comparison-operator.enum.d.ts +0 -0
- package/{src → shared}/enums/graphql-request-type.enum.d.ts +0 -0
- package/{src → shared}/enums/logical-operator.enum.d.ts +0 -0
- package/shared/enums/skeleton-type.enum.d.ts +5 -0
- package/{src → shared}/enums/sort-order.enum.d.ts +0 -0
- package/shared/enums/toast-type.enum.d.ts +5 -0
- package/shared/functions/ws-client.function.d.ts +5 -0
- package/{src → shared}/interfaces/base-module-config.interface.d.ts +1 -1
- package/shared/interfaces/breadcrumb.interface.d.ts +4 -0
- package/{src → shared}/interfaces/can-component-deactivate.interface.d.ts +0 -0
- package/{src → shared}/interfaces/combined-filter-input.interface.d.ts +0 -0
- package/{src → shared}/interfaces/field-object.interface.d.ts +0 -0
- package/{src → shared}/interfaces/field.interface.d.ts +0 -0
- package/{src → shared}/interfaces/filter-input.interface.d.ts +0 -0
- package/{src → shared}/interfaces/find-args.interface.d.ts +0 -0
- package/{src → shared}/interfaces/graphql-fields-object.interface.d.ts +0 -0
- package/{src → shared}/interfaces/graphql-options.interface.d.ts +0 -0
- package/{src → shared}/interfaces/graphql-plus-options.interfacen.d.ts +0 -0
- package/{src → shared}/interfaces/graphql-type-collection.interface.d.ts +0 -0
- package/{src → shared}/interfaces/single-filter-input.interface.d.ts +0 -0
- package/{src → shared}/interfaces/sort-input.interface.d.ts +0 -0
- package/shared/interfaces/time-components.interface.d.ts +6 -0
- package/shared/interfaces/toast.interface.d.ts +8 -0
- package/shared/lenne.tech-ng-base-shared.d.ts +5 -0
- package/shared/package.json +10 -0
- package/shared/public-api.d.ts +49 -0
- package/{src → shared}/services/auth.service.d.ts +0 -0
- package/shared/services/breadcrumb.service.d.ts +32 -0
- package/{src → shared}/services/forms.service.d.ts +0 -1
- package/{src → shared}/services/graphql-meta.service.d.ts +0 -0
- package/{src → shared}/services/graphql-plus.service.d.ts +0 -0
- package/{src → shared}/services/graphql.service.d.ts +0 -0
- package/{src → shared}/services/image.service.d.ts +0 -0
- package/{src → shared}/services/loader.service.d.ts +0 -0
- package/{src → shared}/services/scroll.service.d.ts +0 -0
- package/{src → shared}/services/storage.service.d.ts +0 -0
- package/shared/services/toast.service.d.ts +15 -0
- package/shared/services/user.service.d.ts +42 -0
- package/{src → shared}/services/ws.service.d.ts +2 -2
- package/{src → shared}/types/graphql-fields.type.d.ts +0 -0
- package/{src → shared}/types/storage.type.d.ts +0 -0
- package/shared/validators/match.validator.d.ts +4 -0
- package/src/base.module.d.ts +4 -2
- package/src/directives/match-height.directive.d.ts +1 -1
- package/src/factories/apollo-options.factory.d.ts +1 -3
- package/src/guards/auth.guard.d.ts +1 -2
- package/src/guards/can-deactivate.guard.d.ts +1 -1
- package/src/guards/logout.guard.d.ts +1 -1
- package/src/services/theme.service.d.ts +1 -1
- package/esm2020/src/classes/basic-user.class.mjs +0 -51
- package/esm2020/src/classes/graphql-enum.class.mjs +0 -9
- package/esm2020/src/classes/graphql-meta.class.mjs +0 -171
- package/esm2020/src/classes/graphql-type.class.mjs +0 -13
- package/esm2020/src/classes/helper.class.mjs +0 -304
- package/esm2020/src/classes/standard.class.mjs +0 -40
- package/esm2020/src/enums/graphql-request-type.enum.mjs +0 -10
- package/esm2020/src/enums/logical-operator.enum.mjs +0 -10
- package/esm2020/src/enums/sort-order.enum.mjs +0 -6
- package/esm2020/src/interfaces/base-module-config.interface.mjs +0 -3
- package/esm2020/src/interfaces/can-component-deactivate.interface.mjs +0 -2
- package/esm2020/src/interfaces/combined-filter-input.interface.mjs +0 -2
- package/esm2020/src/interfaces/field-object.interface.mjs +0 -2
- package/esm2020/src/interfaces/field.interface.mjs +0 -2
- package/esm2020/src/interfaces/filter-input.interface.mjs +0 -2
- package/esm2020/src/interfaces/find-args.interface.mjs +0 -2
- package/esm2020/src/interfaces/graphql-fields-object.interface.mjs +0 -2
- package/esm2020/src/interfaces/graphql-options.interface.mjs +0 -2
- package/esm2020/src/interfaces/graphql-plus-options.interfacen.mjs +0 -2
- package/esm2020/src/interfaces/graphql-type-collection.interface.mjs +0 -2
- package/esm2020/src/interfaces/single-filter-input.interface.mjs +0 -2
- package/esm2020/src/interfaces/sort-input.interface.mjs +0 -2
- package/esm2020/src/services/auth.service.mjs +0 -71
- package/esm2020/src/services/forms.service.mjs +0 -26
- package/esm2020/src/services/graphql-meta.service.mjs +0 -123
- package/esm2020/src/services/graphql-plus.service.mjs +0 -84
- package/esm2020/src/services/graphql.service.mjs +0 -441
- package/esm2020/src/services/image.service.mjs +0 -102
- package/esm2020/src/services/loader.service.mjs +0 -29
- package/esm2020/src/services/scroll.service.mjs +0 -179
- package/esm2020/src/services/storage.service.mjs +0 -132
- package/esm2020/src/services/ws.service.mjs +0 -17
- package/esm2020/src/types/graphql-fields.type.mjs +0 -2
- package/esm2020/src/types/storage.type.mjs +0 -2
- package/esm2020/src/validators/must-match.validator.mjs +0 -22
- package/src/validators/must-match.validator.d.ts +0 -6
|
@@ -3,10 +3,15 @@ import * as i1 from "./components/input/input.component";
|
|
|
3
3
|
import * as i2 from "./components/select/select.component";
|
|
4
4
|
import * as i3 from "./components/checkbox/checkbox.component";
|
|
5
5
|
import * as i4 from "./components/textarea/textarea.component";
|
|
6
|
-
import * as i5 from "
|
|
7
|
-
import * as i6 from "
|
|
6
|
+
import * as i5 from "./components/toast/toast.component";
|
|
7
|
+
import * as i6 from "./components/tags/tags.component";
|
|
8
|
+
import * as i7 from "./components/loading-bar/loading-bar.component";
|
|
9
|
+
import * as i8 from "./components/skeleton-loader/skeleton-loader.component";
|
|
10
|
+
import * as i9 from "./components/breadcrumb/breadcrumb.component";
|
|
11
|
+
import * as i10 from "@angular/forms";
|
|
12
|
+
import * as i11 from "@angular/common";
|
|
8
13
|
export declare class BaseComponentsModule {
|
|
9
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseComponentsModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<BaseComponentsModule, [typeof i1.InputComponent, typeof i2.SelectComponent, typeof i3.CheckboxComponent, typeof i4.TextareaComponent], [typeof
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<BaseComponentsModule, [typeof i1.InputComponent, typeof i2.SelectComponent, typeof i3.CheckboxComponent, typeof i4.TextareaComponent, typeof i5.ToastComponent, typeof i6.TagsComponent, typeof i7.LoadingBarComponent, typeof i8.SkeletonLoaderComponent, typeof i9.BreadcrumbComponent], [typeof i10.FormsModule, typeof i10.ReactiveFormsModule, typeof i11.CommonModule], [typeof i1.InputComponent, typeof i2.SelectComponent, typeof i3.CheckboxComponent, typeof i4.TextareaComponent, typeof i5.ToastComponent, typeof i6.TagsComponent, typeof i7.LoadingBarComponent, typeof i8.SkeletonLoaderComponent, typeof i9.BreadcrumbComponent]>;
|
|
11
16
|
static ɵinj: i0.ɵɵInjectorDeclaration<BaseComponentsModule>;
|
|
12
17
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Breadcrumb, BreadcrumbService } from '@lenne.tech/ng-base/shared';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class BreadcrumbComponent {
|
|
5
|
+
private readonly breadcrumbService;
|
|
6
|
+
breadcrumbs$: Observable<Breadcrumb[]>;
|
|
7
|
+
constructor(breadcrumbService: BreadcrumbService);
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BreadcrumbComponent, "base-breadcrumb", never, {}, {}, never, never>;
|
|
10
|
+
}
|
|
@@ -7,5 +7,5 @@ export declare class CheckboxComponent {
|
|
|
7
7
|
control: any;
|
|
8
8
|
required: boolean;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "base-checkbox", never, { "id": "id"; "name": "name"; "label": "label"; "value": "value"; "control": "control"; "required": "required"; }, {}, never,
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "base-checkbox", never, { "id": "id"; "name": "name"; "label": "label"; "value": "value"; "control": "control"; "required": "required"; }, {}, never, ["*"]>;
|
|
11
11
|
}
|
|
@@ -12,8 +12,9 @@ export declare class SelectComponent {
|
|
|
12
12
|
tabIndex?: number;
|
|
13
13
|
required: boolean;
|
|
14
14
|
multiple: boolean;
|
|
15
|
+
search: boolean;
|
|
15
16
|
options: Option[];
|
|
16
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "base-select", never, { "id": "id"; "name": "name"; "label": "label"; "placeholder": "placeholder"; "control": "control"; "tabIndex": "tabIndex"; "required": "required"; "multiple": "multiple"; "options": "options"; }, {}, never, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "base-select", never, { "id": "id"; "name": "name"; "label": "label"; "placeholder": "placeholder"; "control": "control"; "tabIndex": "tabIndex"; "required": "required"; "multiple": "multiple"; "search": "search"; "options": "options"; }, {}, never, never>;
|
|
18
19
|
}
|
|
19
20
|
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SkeletonType } from '@lenne.tech/ng-base/shared';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SkeletonLoaderComponent {
|
|
4
|
+
type: SkeletonType;
|
|
5
|
+
count: number;
|
|
6
|
+
size: number;
|
|
7
|
+
convertToArray(value: any): any;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkeletonLoaderComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkeletonLoaderComponent, "base-skeleton-loader", never, { "type": "type"; "count": "count"; "size": "size"; }, {}, never, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { AbstractControl, FormControl } from '@angular/forms';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TagsComponent {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
label?: string;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
autocomplete?: string;
|
|
9
|
+
tabIndex?: number;
|
|
10
|
+
control: FormControl | AbstractControl;
|
|
11
|
+
required: boolean;
|
|
12
|
+
inputValue: string;
|
|
13
|
+
/**
|
|
14
|
+
* Listen to enter keys
|
|
15
|
+
*
|
|
16
|
+
* @param event
|
|
17
|
+
*/
|
|
18
|
+
enterKey(event: KeyboardEvent): void;
|
|
19
|
+
/**
|
|
20
|
+
* Add new tag
|
|
21
|
+
*
|
|
22
|
+
* @param tag
|
|
23
|
+
*/
|
|
24
|
+
addTag(tag: string): void;
|
|
25
|
+
/**
|
|
26
|
+
* Remove tag
|
|
27
|
+
*
|
|
28
|
+
* @param tag
|
|
29
|
+
*/
|
|
30
|
+
removeTag(tag?: string): void;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TagsComponent, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TagsComponent, "base-tags", never, { "id": "id"; "name": "name"; "label": "label"; "placeholder": "placeholder"; "autocomplete": "autocomplete"; "tabIndex": "tabIndex"; "control": "control"; "required": "required"; }, {}, never, never>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { Subscription } from 'rxjs';
|
|
3
|
+
import { Toast, ToastService, ToastType } from '@lenne.tech/ng-base/shared';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ToastComponent implements OnInit, OnDestroy {
|
|
6
|
+
private toastService;
|
|
7
|
+
toasts: Toast[];
|
|
8
|
+
ToastType: typeof ToastType;
|
|
9
|
+
subscriptions: Subscription;
|
|
10
|
+
constructor(toastService: ToastService);
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
ngOnDestroy(): void;
|
|
13
|
+
getDefaultTitle(toast: Toast): string;
|
|
14
|
+
getDefaultDescription(toast: Toast): string;
|
|
15
|
+
reload(): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToastComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToastComponent, "base-toast", never, {}, {}, never, never>;
|
|
18
|
+
}
|
|
@@ -6,3 +6,8 @@ export * from './components/input/input.component';
|
|
|
6
6
|
export * from './components/select/select.component';
|
|
7
7
|
export * from './components/checkbox/checkbox.component';
|
|
8
8
|
export * from './components/textarea/textarea.component';
|
|
9
|
+
export * from './components/tags/tags.component';
|
|
10
|
+
export * from './components/toast/toast.component';
|
|
11
|
+
export * from './components/loading-bar/loading-bar.component';
|
|
12
|
+
export * from './components/skeleton-loader/skeleton-loader.component';
|
|
13
|
+
export * from './components/breadcrumb/breadcrumb.component';
|
|
@@ -2,12 +2,13 @@ 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
4
|
import * as i3 from "./pages/forgot-password/forgot-password.component";
|
|
5
|
-
import * as i4 from "@
|
|
6
|
-
import * as i5 from "@angular/
|
|
7
|
-
import * as i6 from "@angular/
|
|
8
|
-
import * as i7 from "@
|
|
5
|
+
import * as i4 from "@lenne.tech/ng-base";
|
|
6
|
+
import * as i5 from "@angular/forms";
|
|
7
|
+
import * as i6 from "@angular/router";
|
|
8
|
+
import * as i7 from "@angular/common";
|
|
9
|
+
import * as i8 from "@lenne.tech/ng-base/base-components";
|
|
9
10
|
export declare class BasePrototypeModule {
|
|
10
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<BasePrototypeModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<BasePrototypeModule, [typeof i1.LoginComponent, typeof i2.RegisterComponent, typeof i3.ForgotPasswordComponent], [typeof i4.
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<BasePrototypeModule, [typeof i1.LoginComponent, typeof i2.RegisterComponent, typeof i3.ForgotPasswordComponent], [typeof i4.BaseModule, typeof i5.FormsModule, typeof i6.RouterModule, typeof i5.ReactiveFormsModule, typeof i7.CommonModule, typeof i8.BaseComponentsModule], [typeof i1.LoginComponent, typeof i2.RegisterComponent, typeof i3.ForgotPasswordComponent]>;
|
|
12
13
|
static ɵinj: i0.ɵɵInjectorDeclaration<BasePrototypeModule>;
|
|
13
14
|
}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import { FormsService } from '@lenne.tech/ng-base';
|
|
3
|
+
import { FormsService, UserService } from '@lenne.tech/ng-base/shared';
|
|
4
|
+
import { Router } from '@angular/router';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class ForgotPasswordComponent implements OnInit {
|
|
6
7
|
private formsService;
|
|
8
|
+
private userService;
|
|
9
|
+
private router;
|
|
7
10
|
form: FormGroup;
|
|
8
|
-
|
|
11
|
+
error: string;
|
|
12
|
+
loading: boolean;
|
|
13
|
+
constructor(formsService: FormsService, userService: UserService, router: Router);
|
|
9
14
|
ngOnInit(): void;
|
|
10
15
|
/**
|
|
11
16
|
* Create login form
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import {
|
|
3
|
+
import { Router } from '@angular/router';
|
|
4
|
+
import { FormsService, UserService } from '@lenne.tech/ng-base/shared';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class LoginComponent implements OnInit {
|
|
6
7
|
private formsService;
|
|
8
|
+
private userService;
|
|
9
|
+
private router;
|
|
7
10
|
form: FormGroup;
|
|
8
|
-
|
|
11
|
+
error: string;
|
|
12
|
+
loading: boolean;
|
|
13
|
+
constructor(formsService: FormsService, userService: UserService, router: Router);
|
|
9
14
|
ngOnInit(): void;
|
|
10
15
|
/**
|
|
11
16
|
* Create login form
|
|
@@ -15,6 +20,7 @@ export declare class LoginComponent implements OnInit {
|
|
|
15
20
|
* Submit login form
|
|
16
21
|
*/
|
|
17
22
|
submit(): void;
|
|
23
|
+
scrollToTop(): void;
|
|
18
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<LoginComponent, never>;
|
|
19
25
|
static ɵcmp: i0.ɵɵComponentDeclaration<LoginComponent, "base-login", never, {}, {}, never, never>;
|
|
20
26
|
}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import { FormsService } from '@lenne.tech/ng-base';
|
|
3
|
+
import { FormsService, UserService } from '@lenne.tech/ng-base/shared';
|
|
4
|
+
import { Router } from '@angular/router';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class RegisterComponent implements OnInit {
|
|
6
7
|
private formsService;
|
|
8
|
+
private userService;
|
|
9
|
+
private router;
|
|
7
10
|
form: FormGroup;
|
|
8
|
-
|
|
11
|
+
error: string;
|
|
12
|
+
loading: boolean;
|
|
13
|
+
constructor(formsService: FormsService, userService: UserService, router: Router);
|
|
9
14
|
ngOnInit(): void;
|
|
10
15
|
/**
|
|
11
16
|
* Create login form
|
|
@@ -15,6 +20,7 @@ export declare class RegisterComponent implements OnInit {
|
|
|
15
20
|
* Submit login form
|
|
16
21
|
*/
|
|
17
22
|
submit(): void;
|
|
23
|
+
scrollToTop(): void;
|
|
18
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<RegisterComponent, never>;
|
|
19
25
|
static ɵcmp: i0.ɵɵComponentDeclaration<RegisterComponent, "base-register", never, {}, {}, never, never>;
|
|
20
26
|
}
|
|
@@ -5,6 +5,11 @@ import { InputComponent } from './components/input/input.component';
|
|
|
5
5
|
import { SelectComponent } from './components/select/select.component';
|
|
6
6
|
import { CheckboxComponent } from './components/checkbox/checkbox.component';
|
|
7
7
|
import { TextareaComponent } from './components/textarea/textarea.component';
|
|
8
|
+
import { ToastComponent } from './components/toast/toast.component';
|
|
9
|
+
import { TagsComponent } from './components/tags/tags.component';
|
|
10
|
+
import { LoadingBarComponent } from './components/loading-bar/loading-bar.component';
|
|
11
|
+
import { SkeletonLoaderComponent } from './components/skeleton-loader/skeleton-loader.component';
|
|
12
|
+
import { BreadcrumbComponent } from './components/breadcrumb/breadcrumb.component';
|
|
8
13
|
import * as i0 from "@angular/core";
|
|
9
14
|
// Modules
|
|
10
15
|
const imports = [FormsModule, ReactiveFormsModule, CommonModule];
|
|
@@ -15,6 +20,11 @@ const elements = [
|
|
|
15
20
|
SelectComponent,
|
|
16
21
|
CheckboxComponent,
|
|
17
22
|
TextareaComponent,
|
|
23
|
+
ToastComponent,
|
|
24
|
+
TagsComponent,
|
|
25
|
+
LoadingBarComponent,
|
|
26
|
+
SkeletonLoaderComponent,
|
|
27
|
+
BreadcrumbComponent,
|
|
18
28
|
];
|
|
19
29
|
export class BaseComponentsModule {
|
|
20
30
|
}
|
|
@@ -24,12 +34,22 @@ BaseComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ve
|
|
|
24
34
|
InputComponent,
|
|
25
35
|
SelectComponent,
|
|
26
36
|
CheckboxComponent,
|
|
27
|
-
TextareaComponent
|
|
37
|
+
TextareaComponent,
|
|
38
|
+
ToastComponent,
|
|
39
|
+
TagsComponent,
|
|
40
|
+
LoadingBarComponent,
|
|
41
|
+
SkeletonLoaderComponent,
|
|
42
|
+
BreadcrumbComponent], imports: [FormsModule, ReactiveFormsModule, CommonModule], exports: [
|
|
28
43
|
// Components
|
|
29
44
|
InputComponent,
|
|
30
45
|
SelectComponent,
|
|
31
46
|
CheckboxComponent,
|
|
32
|
-
TextareaComponent
|
|
47
|
+
TextareaComponent,
|
|
48
|
+
ToastComponent,
|
|
49
|
+
TagsComponent,
|
|
50
|
+
LoadingBarComponent,
|
|
51
|
+
SkeletonLoaderComponent,
|
|
52
|
+
BreadcrumbComponent] });
|
|
33
53
|
BaseComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: BaseComponentsModule, imports: [imports] });
|
|
34
54
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: BaseComponentsModule, decorators: [{
|
|
35
55
|
type: NgModule,
|
|
@@ -39,4 +59,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImpor
|
|
|
39
59
|
exports: elements,
|
|
40
60
|
}]
|
|
41
61
|
}] });
|
|
42
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
62
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS1jb21wb25lbnRzLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25nLWJhc2UvYmFzZS1jb21wb25lbnRzL2Jhc2UtY29tcG9uZW50cy5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQU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2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IGVsZW1lbnRzLFxuICBpbXBvcnRzLFxuICBleHBvcnRzOiBlbGVtZW50cyxcbn0pXG5leHBvcnQgY2xhc3MgQmFzZUNvbXBvbmVudHNNb2R1bGUge31cbiJdfQ==
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@lenne.tech/ng-base/shared";
|
|
4
|
+
import * as i2 from "@angular/common";
|
|
5
|
+
export class BreadcrumbComponent {
|
|
6
|
+
constructor(breadcrumbService) {
|
|
7
|
+
this.breadcrumbService = breadcrumbService;
|
|
8
|
+
this.breadcrumbs$ = breadcrumbService.breadcrumbsObservable;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
BreadcrumbComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: BreadcrumbComponent, deps: [{ token: i1.BreadcrumbService }], target: i0.ɵɵFactoryTarget.Component });
|
|
12
|
+
BreadcrumbComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.3", type: BreadcrumbComponent, selector: "base-breadcrumb", ngImport: i0, template: "<ul class=\"pt-3\">\n <li *ngFor=\"let breadcrumb of breadcrumbs$ | async\">\n <a [routerLink]=\"breadcrumb.url\">{{ breadcrumb.label }}</a>\n </li>\n</ul>\n", styles: ["ul{list-style:none;margin:0;padding:0}ul li{display:inline}ul li:before{content:\">\";margin:0 6px}ul li:first-child:before{content:\"\";margin:0}\n"], directives: [{ type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i2.AsyncPipe } });
|
|
13
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: BreadcrumbComponent, decorators: [{
|
|
14
|
+
type: Component,
|
|
15
|
+
args: [{ selector: 'base-breadcrumb', template: "<ul class=\"pt-3\">\n <li *ngFor=\"let breadcrumb of breadcrumbs$ | async\">\n <a [routerLink]=\"breadcrumb.url\">{{ breadcrumb.label }}</a>\n </li>\n</ul>\n", styles: ["ul{list-style:none;margin:0;padding:0}ul li{display:inline}ul li:before{content:\">\";margin:0 6px}ul li:first-child:before{content:\"\";margin:0}\n"] }]
|
|
16
|
+
}], ctorParameters: function () { return [{ type: i1.BreadcrumbService }]; } });
|
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJlYWRjcnVtYi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZy1iYXNlL2Jhc2UtY29tcG9uZW50cy9jb21wb25lbnRzL2JyZWFkY3J1bWIvYnJlYWRjcnVtYi5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZy1iYXNlL2Jhc2UtY29tcG9uZW50cy9jb21wb25lbnRzL2JyZWFkY3J1bWIvYnJlYWRjcnVtYi5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDOzs7O0FBVTFDLE1BQU0sT0FBTyxtQkFBbUI7SUFHOUIsWUFBNkIsaUJBQW9DO1FBQXBDLHNCQUFpQixHQUFqQixpQkFBaUIsQ0FBbUI7UUFDL0QsSUFBSSxDQUFDLFlBQVksR0FBRyxpQkFBaUIsQ0FBQyxxQkFBcUIsQ0FBQztJQUM5RCxDQUFDOztnSEFMVSxtQkFBbUI7b0dBQW5CLG1CQUFtQix1RENWaEMsb0tBS0E7MkZES2EsbUJBQW1CO2tCQUwvQixTQUFTOytCQUNFLGlCQUFpQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbXBvbmVudCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgQnJlYWRjcnVtYiwgQnJlYWRjcnVtYlNlcnZpY2UgfSBmcm9tICdAbGVubmUudGVjaC9uZy1iYXNlL3NoYXJlZCc7XG5cbmltcG9ydCB7IE9ic2VydmFibGUgfSBmcm9tICdyeGpzJztcblxuQENvbXBvbmVudCh7XG4gIHNlbGVjdG9yOiAnYmFzZS1icmVhZGNydW1iJyxcbiAgdGVtcGxhdGVVcmw6ICcuL2JyZWFkY3J1bWIuY29tcG9uZW50Lmh0bWwnLFxuICBzdHlsZVVybHM6IFsnLi9icmVhZGNydW1iLmNvbXBvbmVudC5zY3NzJ10sXG59KVxuZXhwb3J0IGNsYXNzIEJyZWFkY3J1bWJDb21wb25lbnQge1xuICBicmVhZGNydW1icyQ6IE9ic2VydmFibGU8QnJlYWRjcnVtYltdPjtcblxuICBjb25zdHJ1Y3Rvcihwcml2YXRlIHJlYWRvbmx5IGJyZWFkY3J1bWJTZXJ2aWNlOiBCcmVhZGNydW1iU2VydmljZSkge1xuICAgIHRoaXMuYnJlYWRjcnVtYnMkID0gYnJlYWRjcnVtYlNlcnZpY2UuYnJlYWRjcnVtYnNPYnNlcnZhYmxlO1xuICB9XG59XG4iLCI8dWwgY2xhc3M9XCJwdC0zXCI+XG4gIDxsaSAqbmdGb3I9XCJsZXQgYnJlYWRjcnVtYiBvZiBicmVhZGNydW1icyQgfCBhc3luY1wiPlxuICAgIDxhIFtyb3V0ZXJMaW5rXT1cImJyZWFkY3J1bWIudXJsXCI+e3sgYnJlYWRjcnVtYi5sYWJlbCB9fTwvYT5cbiAgPC9saT5cbjwvdWw+XG4iXX0=
|
|
@@ -8,10 +8,10 @@ export class CheckboxComponent {
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
CheckboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: CheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
11
|
-
CheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.3", type: CheckboxComponent, selector: "base-checkbox", inputs: { id: "id", name: "name", label: "label", value: "value", control: "control", required: "required" }, ngImport: i0, template: "<div class=\"form-check\">\n <input\n class=\"form-check-input\"\n type=\"checkbox\"\n [formControl]=\"control\"\n [required]=\"required\"\n [value]=\"value\"\n [id]=\"id\"\n [name]=\"name\"\n [ngClass]=\"{ 'is-invalid': control?.invalid && control?.touched }\"\n />\n <label [for]=\"id\" class=\"form-label\" [ngClass]=\"{ required: required }\" *ngIf=\"label\"
|
|
11
|
+
CheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.3", type: CheckboxComponent, selector: "base-checkbox", inputs: { id: "id", name: "name", label: "label", value: "value", control: "control", required: "required" }, ngImport: i0, template: "<div class=\"form-check\">\n <input\n class=\"form-check-input\"\n type=\"checkbox\"\n [formControl]=\"control\"\n [required]=\"required\"\n [value]=\"value\"\n [id]=\"id\"\n [name]=\"name\"\n [ngClass]=\"{ 'is-invalid': control?.invalid && control?.touched }\"\n />\n <label [for]=\"id\" class=\"form-label\" [ngClass]=\"{ required: required }\">\n <ng-container *ngIf=\"label\">\n {{ label }}\n </ng-container>\n <ng-content></ng-content>\n </label>\n\n <div class=\"invalid-feedback ms-0 m-2\" *ngIf=\"control?.invalid && (control?.dirty || control?.touched)\">\n <div *ngIf=\"control?.errors?.['required']\">Dieses Feld ist ein Pflichtfeld.</div>\n </div>\n</div>\n", styles: [""], directives: [{ type: i1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { type: i1.CheckboxRequiredValidator, selector: "input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]" }, { type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
12
12
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: CheckboxComponent, decorators: [{
|
|
13
13
|
type: Component,
|
|
14
|
-
args: [{ selector: 'base-checkbox', template: "<div class=\"form-check\">\n <input\n class=\"form-check-input\"\n type=\"checkbox\"\n [formControl]=\"control\"\n [required]=\"required\"\n [value]=\"value\"\n [id]=\"id\"\n [name]=\"name\"\n [ngClass]=\"{ 'is-invalid': control?.invalid && control?.touched }\"\n />\n <label [for]=\"id\" class=\"form-label\" [ngClass]=\"{ required: required }\" *ngIf=\"label\"
|
|
14
|
+
args: [{ selector: 'base-checkbox', template: "<div class=\"form-check\">\n <input\n class=\"form-check-input\"\n type=\"checkbox\"\n [formControl]=\"control\"\n [required]=\"required\"\n [value]=\"value\"\n [id]=\"id\"\n [name]=\"name\"\n [ngClass]=\"{ 'is-invalid': control?.invalid && control?.touched }\"\n />\n <label [for]=\"id\" class=\"form-label\" [ngClass]=\"{ required: required }\">\n <ng-container *ngIf=\"label\">\n {{ label }}\n </ng-container>\n <ng-content></ng-content>\n </label>\n\n <div class=\"invalid-feedback ms-0 m-2\" *ngIf=\"control?.invalid && (control?.dirty || control?.touched)\">\n <div *ngIf=\"control?.errors?.['required']\">Dieses Feld ist ein Pflichtfeld.</div>\n </div>\n</div>\n", styles: [""] }]
|
|
15
15
|
}], propDecorators: { id: [{
|
|
16
16
|
type: Input
|
|
17
17
|
}], name: [{
|
|
@@ -25,4 +25,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImpor
|
|
|
25
25
|
}], required: [{
|
|
26
26
|
type: Input
|
|
27
27
|
}] } });
|
|
28
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
28
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2tib3guY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmctYmFzZS9iYXNlLWNvbXBvbmVudHMvY29tcG9uZW50cy9jaGVja2JveC9jaGVja2JveC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZy1iYXNlL2Jhc2UtY29tcG9uZW50cy9jb21wb25lbnRzL2NoZWNrYm94L2NoZWNrYm94LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDOzs7O0FBT2pELE1BQU0sT0FBTyxpQkFBaUI7SUFMOUI7UUFXVyxhQUFRLEdBQUcsS0FBSyxDQUFDO0tBQzNCOzs4R0FQWSxpQkFBaUI7a0dBQWpCLGlCQUFpQixtS0NQOUIsOHNCQXNCQTsyRkRmYSxpQkFBaUI7a0JBTDdCLFNBQVM7K0JBQ0UsZUFBZTs4QkFLaEIsRUFBRTtzQkFBVixLQUFLO2dCQUNHLElBQUk7c0JBQVosS0FBSztnQkFDRyxLQUFLO3NCQUFiLEtBQUs7Z0JBQ0csS0FBSztzQkFBYixLQUFLO2dCQUNHLE9BQU87c0JBQWYsS0FBSztnQkFDRyxRQUFRO3NCQUFoQixLQUFLIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50LCBJbnB1dCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICdiYXNlLWNoZWNrYm94JyxcbiAgdGVtcGxhdGVVcmw6ICcuL2No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LTJcIiAqbmdJZj1cImNvbnRyb2w/LmludmFsaWQgJiYgKGNvbnRyb2w/LmRpcnR5IHx8IGNvbnRyb2w/LnRvdWNoZWQpXCI+XG4gICAgPGRpdiAqbmdJZj1cImNvbnRyb2w/LmVycm9ycz8uWydyZXF1aXJlZCddXCI+RGllc2VzIEZlbGQgaXN0IGVpbiBQZmxpY2h0ZmVsZC48L2Rpdj5cbiAgPC9kaXY+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -10,10 +10,10 @@ export class InputComponent {
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
InputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: InputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
13
|
-
InputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.3", type: InputComponent, selector: "base-input", inputs: { id: "id", name: "name", label: "label", placeholder: "placeholder", autocomplete: "autocomplete", tabIndex: "tabIndex", control: "control", type: "type", required: "required" }, ngImport: i0, template: "<div class=\"form-group mb-3\">\n <label [for]=\"id\" class=\"form-label\" [ngClass]=\"{ required: required }\" *ngIf=\"label\">{{ label }}</label>\n <input\n [id]=\"id\"\n [name]=\"name\"\n class=\"form-control\"\n [type]=\"type\"\n [formControl]=\"control\"\n [required]=\"required\"\n [placeholder]=\"placeholder\"\n [autocomplete]=\"autocomplete ?? null\"\n [tabIndex]=\"tabIndex ?? null\"\n [ngClass]=\"{ 'is-invalid': control?.invalid && control?.touched }\"\n />\n\n <div class=\"invalid-feedback m-2\" *ngIf=\"control?.invalid && (control?.dirty || control?.touched)\">\n <div *ngIf=\"control?.errors?.['required']\">Dieses Feld ist ein Pflichtfeld.</div>\n <div *ngIf=\"control?.errors?.['minlength']\">\n Die Mindestl\u00E4nge f\u00FCr dieses Feld betr\u00E4gt\n {{control.errors?.['minlength']?.requiredLength}} Zeichen.\n </div>\n <div *ngIf=\"control?.errors?.['maxlength']\">\n Die maximale L\u00E4nge f\u00FCr dieses Feld betr\u00E4gt\n {{control.errors?.['maxlength']?.requiredLength}} Zeichen.\n </div>\n <div *ngIf=\"control?.errors?.['email']\">Bitte eine g\u00FCltige E-Mail Adresse angeben.</div>\n </div>\n</div>\n", styles: [""], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }] });
|
|
13
|
+
InputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.3", type: InputComponent, selector: "base-input", inputs: { id: "id", name: "name", label: "label", placeholder: "placeholder", autocomplete: "autocomplete", tabIndex: "tabIndex", control: "control", type: "type", required: "required" }, ngImport: i0, template: "<div class=\"form-group mb-3\">\n <label [for]=\"id\" class=\"form-label\" [ngClass]=\"{ required: required }\" *ngIf=\"label\">{{ label }}</label>\n <input\n [id]=\"id\"\n [name]=\"name\"\n class=\"form-control\"\n [type]=\"type\"\n [formControl]=\"control\"\n [required]=\"required\"\n [placeholder]=\"placeholder\"\n [autocomplete]=\"autocomplete ?? null\"\n [tabIndex]=\"tabIndex ?? null\"\n [ngClass]=\"{ 'is-invalid': control?.invalid && control?.touched }\"\n />\n\n <div class=\"invalid-feedback m-2\" *ngIf=\"control?.invalid && (control?.dirty || control?.touched)\">\n <div *ngIf=\"control?.errors?.['required']\">Dieses Feld ist ein Pflichtfeld.</div>\n <div *ngIf=\"control?.errors?.['minlength']\">\n Die Mindestl\u00E4nge f\u00FCr dieses Feld betr\u00E4gt\n {{control.errors?.['minlength']?.requiredLength}} Zeichen.\n </div>\n <div *ngIf=\"control?.errors?.['maxlength']\">\n Die maximale L\u00E4nge f\u00FCr dieses Feld betr\u00E4gt\n {{control.errors?.['maxlength']?.requiredLength}} Zeichen.\n </div>\n <div *ngIf=\"control?.errors?.['email']\">Bitte eine g\u00FCltige E-Mail Adresse angeben.</div>\n <div *ngIf=\"control?.errors?.['matching']\">Die Passw\u00F6rter m\u00FCssen \u00FCberein stimmen.</div>\n </div>\n</div>\n", styles: [""], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }] });
|
|
14
14
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: InputComponent, decorators: [{
|
|
15
15
|
type: Component,
|
|
16
|
-
args: [{ selector: 'base-input', template: "<div class=\"form-group mb-3\">\n <label [for]=\"id\" class=\"form-label\" [ngClass]=\"{ required: required }\" *ngIf=\"label\">{{ label }}</label>\n <input\n [id]=\"id\"\n [name]=\"name\"\n class=\"form-control\"\n [type]=\"type\"\n [formControl]=\"control\"\n [required]=\"required\"\n [placeholder]=\"placeholder\"\n [autocomplete]=\"autocomplete ?? null\"\n [tabIndex]=\"tabIndex ?? null\"\n [ngClass]=\"{ 'is-invalid': control?.invalid && control?.touched }\"\n />\n\n <div class=\"invalid-feedback m-2\" *ngIf=\"control?.invalid && (control?.dirty || control?.touched)\">\n <div *ngIf=\"control?.errors?.['required']\">Dieses Feld ist ein Pflichtfeld.</div>\n <div *ngIf=\"control?.errors?.['minlength']\">\n Die Mindestl\u00E4nge f\u00FCr dieses Feld betr\u00E4gt\n {{control.errors?.['minlength']?.requiredLength}} Zeichen.\n </div>\n <div *ngIf=\"control?.errors?.['maxlength']\">\n Die maximale L\u00E4nge f\u00FCr dieses Feld betr\u00E4gt\n {{control.errors?.['maxlength']?.requiredLength}} Zeichen.\n </div>\n <div *ngIf=\"control?.errors?.['email']\">Bitte eine g\u00FCltige E-Mail Adresse angeben.</div>\n </div>\n</div>\n", styles: [""] }]
|
|
16
|
+
args: [{ selector: 'base-input', template: "<div class=\"form-group mb-3\">\n <label [for]=\"id\" class=\"form-label\" [ngClass]=\"{ required: required }\" *ngIf=\"label\">{{ label }}</label>\n <input\n [id]=\"id\"\n [name]=\"name\"\n class=\"form-control\"\n [type]=\"type\"\n [formControl]=\"control\"\n [required]=\"required\"\n [placeholder]=\"placeholder\"\n [autocomplete]=\"autocomplete ?? null\"\n [tabIndex]=\"tabIndex ?? null\"\n [ngClass]=\"{ 'is-invalid': control?.invalid && control?.touched }\"\n />\n\n <div class=\"invalid-feedback m-2\" *ngIf=\"control?.invalid && (control?.dirty || control?.touched)\">\n <div *ngIf=\"control?.errors?.['required']\">Dieses Feld ist ein Pflichtfeld.</div>\n <div *ngIf=\"control?.errors?.['minlength']\">\n Die Mindestl\u00E4nge f\u00FCr dieses Feld betr\u00E4gt\n {{control.errors?.['minlength']?.requiredLength}} Zeichen.\n </div>\n <div *ngIf=\"control?.errors?.['maxlength']\">\n Die maximale L\u00E4nge f\u00FCr dieses Feld betr\u00E4gt\n {{control.errors?.['maxlength']?.requiredLength}} Zeichen.\n </div>\n <div *ngIf=\"control?.errors?.['email']\">Bitte eine g\u00FCltige E-Mail Adresse angeben.</div>\n <div *ngIf=\"control?.errors?.['matching']\">Die Passw\u00F6rter m\u00FCssen \u00FCberein stimmen.</div>\n </div>\n</div>\n", styles: [""] }]
|
|
17
17
|
}], propDecorators: { id: [{
|
|
18
18
|
type: Input
|
|
19
19
|
}], name: [{
|
|
@@ -33,4 +33,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImpor
|
|
|
33
33
|
}], required: [{
|
|
34
34
|
type: Input
|
|
35
35
|
}] } });
|
|
36
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
36
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmctYmFzZS9iYXNlLWNvbXBvbmVudHMvY29tcG9uZW50cy9pbnB1dC9pbnB1dC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZy1iYXNlL2Jhc2UtY29tcG9uZW50cy9jb21wb25lbnRzL2lucHV0L2lucHV0LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDOzs7O0FBT2pELE1BQU0sT0FBTyxjQUFjO0lBTDNCO1FBU1csZ0JBQVcsR0FBWSxFQUFFLENBQUM7UUFJMUIsU0FBSSxHQUFHLE1BQU0sQ0FBQztRQUNkLGFBQVEsR0FBRyxLQUFLLENBQUM7S0FDM0I7OzJHQVZZLGNBQWM7K0ZBQWQsY0FBYyw4T0NQM0IseXlDQ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5cbiAgICA8ZGl2ICpuZ0lmPVwiY29udHJvbD8uZXJyb3JzPy5bJ21heGxlbmd0aCddXCI+XG4gICAgICBEaWUgbWF4aW1hbGUgTMOkbmdlIGbDvHIgZGllc2VzIEZlbGQgYmV0csOkZ3RcbiAgICAgIHt7Y29udHJvbC5lcnJvcnM/LlsnbWF4bGVuZ3RoJ10/LnJlcXVpcmVkTGVuZ3RofX0gWmVpY2hlbi5cbiAgICA8L2Rpdj5cbiAgICA8ZGl2ICpuZ0lmPVwiY29udHJvbD8uZXJyb3JzPy5bJ2VtYWlsJ11cIj5CaXR0ZSBlaW5lIGfDvGx0aWdlIEUtTWFpbCBBZHJlc3NlIGFuZ2ViZW4uPC9kaXY+XG4gICAgPGRpdiAqbmdJZj1cImNvbnRyb2w/LmVycm9ycz8uWydtYXRjaGluZyddXCI+RGllIFBhc3N3w7ZydGVyIG3DvHNzZW4gw7xiZXJlaW4gc3RpbW1lbi48L2Rpdj5cbiAgPC9kaXY+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class LoadingBarComponent {
|
|
4
|
+
}
|
|
5
|
+
LoadingBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: LoadingBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6
|
+
LoadingBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.3", type: LoadingBarComponent, selector: "base-loading-bar", ngImport: i0, template: "<div class=\"slider\">\n <div class=\"line\"></div>\n <div class=\"subline inc\"></div>\n <div class=\"subline dec\"></div>\n</div>\n", styles: [":host{--lt-loading-bar-color: #f28c18;--lt-loading-bar-height: 5px}.slider{position:absolute;left:0;right:0;height:var(--lt-loading-bar-height);overflow-x:hidden;z-index:999999999;background-color:#fff}.line{position:absolute;opacity:.6;background:var(--lt-loading-bar-color);width:150%;height:var(--lt-loading-bar-height)}.subline{position:absolute;background:var(--lt-loading-bar-color);height:var(--lt-loading-bar-height)}.inc{animation:increase 2s infinite}.dec{animation:decrease 2s .5s infinite}@keyframes increase{0%{left:-5%;width:5%}to{left:130%;width:100%}}@keyframes decrease{0%{left:-80%;width:80%}to{left:110%;width:10%}}\n"] });
|
|
7
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: LoadingBarComponent, decorators: [{
|
|
8
|
+
type: Component,
|
|
9
|
+
args: [{ selector: 'base-loading-bar', template: "<div class=\"slider\">\n <div class=\"line\"></div>\n <div class=\"subline inc\"></div>\n <div class=\"subline dec\"></div>\n</div>\n", styles: [":host{--lt-loading-bar-color: #f28c18;--lt-loading-bar-height: 5px}.slider{position:absolute;left:0;right:0;height:var(--lt-loading-bar-height);overflow-x:hidden;z-index:999999999;background-color:#fff}.line{position:absolute;opacity:.6;background:var(--lt-loading-bar-color);width:150%;height:var(--lt-loading-bar-height)}.subline{position:absolute;background:var(--lt-loading-bar-color);height:var(--lt-loading-bar-height)}.inc{animation:increase 2s infinite}.dec{animation:decrease 2s .5s infinite}@keyframes increase{0%{left:-5%;width:5%}to{left:130%;width:100%}}@keyframes decrease{0%{left:-80%;width:80%}to{left:110%;width:10%}}\n"] }]
|
|
10
|
+
}] });
|
|
11
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9hZGluZy1iYXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmctYmFzZS9iYXNlLWNvbXBvbmVudHMvY29tcG9uZW50cy9sb2FkaW5nLWJhci9sb2FkaW5nLWJhci5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZy1iYXNlL2Jhc2UtY29tcG9uZW50cy9jb21wb25lbnRzL2xvYWRpbmctYmFyL2xvYWRpbmctYmFyLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7O0FBTzFDLE1BQU0sT0FBTyxtQkFBbUI7O2dIQUFuQixtQkFBbUI7b0dBQW5CLG1CQUFtQix3RENQaEMsMElBS0E7MkZERWEsbUJBQW1CO2tCQUwvQixTQUFTOytCQUNFLGtCQUFrQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbXBvbmVudCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICdiYXNlLWxvYWRpbmctYmFyJyxcbiAgdGVtcGxhdGVVcmw6ICcuL2xvYWRpbmctYmFyLmNvbXBvbmVudC5odG1sJyxcbiAgc3R5bGVVcmxzOiBbJy4vbG9hZGluZy1iYXIuY29tcG9uZW50LnNjc3MnXSxcbn0pXG5leHBvcnQgY2xhc3MgTG9hZGluZ0JhckNvbXBvbmVudCB7fVxuIiwiPGRpdiBjbGFzcz1cInNsaWRlclwiPlxuICA8ZGl2IGNsYXNzPVwibGluZVwiPjwvZGl2PlxuICA8ZGl2IGNsYXNzPVwic3VibGluZSBpbmNcIj48L2Rpdj5cbiAgPGRpdiBjbGFzcz1cInN1YmxpbmUgZGVjXCI+PC9kaXY+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -7,14 +7,15 @@ export class SelectComponent {
|
|
|
7
7
|
this.placeholder = '';
|
|
8
8
|
this.required = false;
|
|
9
9
|
this.multiple = false;
|
|
10
|
+
this.search = false;
|
|
10
11
|
this.options = [];
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
14
|
SelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: SelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
14
|
-
SelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.3", type: SelectComponent, selector: "base-select", inputs: { id: "id", name: "name", label: "label", placeholder: "placeholder", control: "control", tabIndex: "tabIndex", required: "required", multiple: "multiple", options: "options" }, ngImport: i0, template: "<div class=\"form-group mb-3\">\n <label [for]=\"id\" class=\"form-label\" [ngClass]=\"{ required: required }\" *ngIf=\"label\">{{ label }}</label>\n <select\n [id]=\"id\"\n [name]=\"name\"\n class=\"form-select\"\n [attr.aria-label]=\"placeholder\"\n [formControl]=\"control\"\n [required]=\"required\"\n [tabIndex]=\"tabIndex ?? null\"\n [multiple]=\"multiple\"\n [ngClass]=\"{ 'is-invalid': control?.invalid && control?.touched }\"\n >\n <option [ngValue]=\"null\" selected>{{ placeholder }}</option>\n <option *ngFor=\"let option of options\" [ngValue]=\"option.value\">\n {{ option.text }}\n </option>\n </select>\n\n <div class=\"invalid-feedback m-2\" *ngIf=\"control?.invalid && (control?.dirty || control?.touched)\">\n <div *ngIf=\"control?.errors?.['required']\">Dieses Feld ist ein Pflichtfeld.</div>\n <div *ngIf=\"control?.errors?.['minlength']\">\n Die Mindestl\u00E4nge f\u00FCr dieses Feld betr\u00E4gt\n {{control?.errors?.['minlength']?.requiredLength}} Zeichen.\n </div>\n <div *ngIf=\"control?.errors?.['maxlength']\">\n Die maximale L\u00E4nge f\u00FCr dieses Feld betr\u00E4gt\n {{control?.errors?.['maxlength']?.requiredLength}} Zeichen.\n </div>\n <div *ngIf=\"control?.errors?.['email']\">Bitte eine g\u00FCltige E-Mail Adresse angeben.</div>\n </div>\n</div>\n", styles: [""], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.SelectMultipleControlValueAccessor, selector: "select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]", inputs: ["compareWith"] }, { type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
15
|
+
SelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.3", type: SelectComponent, selector: "base-select", inputs: { id: "id", name: "name", label: "label", placeholder: "placeholder", control: "control", tabIndex: "tabIndex", required: "required", multiple: "multiple", search: "search", options: "options" }, ngImport: i0, template: "<div class=\"form-group mb-3\">\n <label [for]=\"id\" class=\"form-label\" [ngClass]=\"{ required: required }\" *ngIf=\"label\">{{ label }}</label>\n <select\n [id]=\"id\"\n [name]=\"name\"\n class=\"form-select\"\n [attr.aria-label]=\"placeholder\"\n [attr.data-live-search]=\"search\"\n [formControl]=\"control\"\n [required]=\"required\"\n [tabIndex]=\"tabIndex ?? null\"\n [multiple]=\"multiple\"\n [ngClass]=\"{ 'is-invalid': control?.invalid && control?.touched }\"\n >\n <option [ngValue]=\"null\" selected>{{ placeholder }}</option>\n <option *ngFor=\"let option of options\" [ngValue]=\"option.value\">\n {{ option.text }}\n </option>\n </select>\n\n <div class=\"invalid-feedback m-2\" *ngIf=\"control?.invalid && (control?.dirty || control?.touched)\">\n <div *ngIf=\"control?.errors?.['required']\">Dieses Feld ist ein Pflichtfeld.</div>\n <div *ngIf=\"control?.errors?.['minlength']\">\n Die Mindestl\u00E4nge f\u00FCr dieses Feld betr\u00E4gt\n {{control?.errors?.['minlength']?.requiredLength}} Zeichen.\n </div>\n <div *ngIf=\"control?.errors?.['maxlength']\">\n Die maximale L\u00E4nge f\u00FCr dieses Feld betr\u00E4gt\n {{control?.errors?.['maxlength']?.requiredLength}} Zeichen.\n </div>\n <div *ngIf=\"control?.errors?.['email']\">Bitte eine g\u00FCltige E-Mail Adresse angeben.</div>\n </div>\n</div>\n", styles: [""], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.SelectMultipleControlValueAccessor, selector: "select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]", inputs: ["compareWith"] }, { type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
15
16
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: SelectComponent, decorators: [{
|
|
16
17
|
type: Component,
|
|
17
|
-
args: [{ selector: 'base-select', template: "<div class=\"form-group mb-3\">\n <label [for]=\"id\" class=\"form-label\" [ngClass]=\"{ required: required }\" *ngIf=\"label\">{{ label }}</label>\n <select\n [id]=\"id\"\n [name]=\"name\"\n class=\"form-select\"\n [attr.aria-label]=\"placeholder\"\n [formControl]=\"control\"\n [required]=\"required\"\n [tabIndex]=\"tabIndex ?? null\"\n [multiple]=\"multiple\"\n [ngClass]=\"{ 'is-invalid': control?.invalid && control?.touched }\"\n >\n <option [ngValue]=\"null\" selected>{{ placeholder }}</option>\n <option *ngFor=\"let option of options\" [ngValue]=\"option.value\">\n {{ option.text }}\n </option>\n </select>\n\n <div class=\"invalid-feedback m-2\" *ngIf=\"control?.invalid && (control?.dirty || control?.touched)\">\n <div *ngIf=\"control?.errors?.['required']\">Dieses Feld ist ein Pflichtfeld.</div>\n <div *ngIf=\"control?.errors?.['minlength']\">\n Die Mindestl\u00E4nge f\u00FCr dieses Feld betr\u00E4gt\n {{control?.errors?.['minlength']?.requiredLength}} Zeichen.\n </div>\n <div *ngIf=\"control?.errors?.['maxlength']\">\n Die maximale L\u00E4nge f\u00FCr dieses Feld betr\u00E4gt\n {{control?.errors?.['maxlength']?.requiredLength}} Zeichen.\n </div>\n <div *ngIf=\"control?.errors?.['email']\">Bitte eine g\u00FCltige E-Mail Adresse angeben.</div>\n </div>\n</div>\n", styles: [""] }]
|
|
18
|
+
args: [{ selector: 'base-select', template: "<div class=\"form-group mb-3\">\n <label [for]=\"id\" class=\"form-label\" [ngClass]=\"{ required: required }\" *ngIf=\"label\">{{ label }}</label>\n <select\n [id]=\"id\"\n [name]=\"name\"\n class=\"form-select\"\n [attr.aria-label]=\"placeholder\"\n [attr.data-live-search]=\"search\"\n [formControl]=\"control\"\n [required]=\"required\"\n [tabIndex]=\"tabIndex ?? null\"\n [multiple]=\"multiple\"\n [ngClass]=\"{ 'is-invalid': control?.invalid && control?.touched }\"\n >\n <option [ngValue]=\"null\" selected>{{ placeholder }}</option>\n <option *ngFor=\"let option of options\" [ngValue]=\"option.value\">\n {{ option.text }}\n </option>\n </select>\n\n <div class=\"invalid-feedback m-2\" *ngIf=\"control?.invalid && (control?.dirty || control?.touched)\">\n <div *ngIf=\"control?.errors?.['required']\">Dieses Feld ist ein Pflichtfeld.</div>\n <div *ngIf=\"control?.errors?.['minlength']\">\n Die Mindestl\u00E4nge f\u00FCr dieses Feld betr\u00E4gt\n {{control?.errors?.['minlength']?.requiredLength}} Zeichen.\n </div>\n <div *ngIf=\"control?.errors?.['maxlength']\">\n Die maximale L\u00E4nge f\u00FCr dieses Feld betr\u00E4gt\n {{control?.errors?.['maxlength']?.requiredLength}} Zeichen.\n </div>\n <div *ngIf=\"control?.errors?.['email']\">Bitte eine g\u00FCltige E-Mail Adresse angeben.</div>\n </div>\n</div>\n", styles: [""] }]
|
|
18
19
|
}], propDecorators: { id: [{
|
|
19
20
|
type: Input
|
|
20
21
|
}], name: [{
|
|
@@ -31,7 +32,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImpor
|
|
|
31
32
|
type: Input
|
|
32
33
|
}], multiple: [{
|
|
33
34
|
type: Input
|
|
35
|
+
}], search: [{
|
|
36
|
+
type: Input
|
|
34
37
|
}], options: [{
|
|
35
38
|
type: Input
|
|
36
39
|
}] } });
|
|
37
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25nLWJhc2UvYmFzZS1jb21wb25lbnRzL2NvbXBvbmVudHMvc2VsZWN0L3NlbGVjdC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZy1iYXNlL2Jhc2UtY29tcG9uZW50cy9jb21wb25lbnRzL3NlbGVjdC9zZWxlY3QuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7Ozs7QUFZakQsTUFBTSxPQUFPLGVBQWU7SUFMNUI7UUFTVyxnQkFBVyxHQUFZLEVBQUUsQ0FBQztRQUc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1,33 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/common";
|
|
4
|
+
export class SkeletonLoaderComponent {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.count = 1;
|
|
7
|
+
this.size = 18;
|
|
8
|
+
}
|
|
9
|
+
convertToArray(value) {
|
|
10
|
+
if (!value) {
|
|
11
|
+
return [];
|
|
12
|
+
}
|
|
13
|
+
const res = [];
|
|
14
|
+
for (let i = 0; i < value; i++) {
|
|
15
|
+
res.push(i);
|
|
16
|
+
}
|
|
17
|
+
console.log(res);
|
|
18
|
+
return res;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
SkeletonLoaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: SkeletonLoaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
22
|
+
SkeletonLoaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.3", type: SkeletonLoaderComponent, selector: "base-skeleton-loader", inputs: { type: "type", count: "count", size: "size" }, ngImport: i0, template: "<ng-container *ngIf=\"type\" [ngSwitch]=\"type\">\n <div *ngSwitchCase=\"'LINE'\">\n <div class=\"line-loader-wrapper\">\n <div class=\"line-loader\" *ngFor=\"let key of convertToArray(count)\"></div>\n </div>\n </div>\n\n <div *ngSwitchCase=\"'RECTANGLE'\">\n <div class=\"line-rectangle\" [ngStyle]=\"{ height: size + 'px' }\"></div>\n </div>\n\n <div *ngSwitchCase=\"'AVATAR'\">\n <div class=\"line-avatar\" [ngStyle]=\"{ height: size + 'px', width: size + 'px' }\"></div>\n </div>\n</ng-container>\n", styles: ["@keyframes shine{to{background-position-x:-200%}}.line-loader-wrapper>:not(:first-of-type){margin-top:10px}.line-loader-wrapper .line-loader{background:linear-gradient(110deg,#ececec 8%,#f5f5f5 18%,#ececec 33%);background-size:200% 100%;animation:1.5s shine linear infinite;height:18px;border-radius:5px}.line-rectangle{background:linear-gradient(110deg,#ececec 8%,#f5f5f5 18%,#ececec 33%);background-size:200% 100%;animation:1.5s shine linear infinite;border-radius:5px}.line-avatar{background:linear-gradient(110deg,#ececec 8%,#f5f5f5 18%,#ececec 33%);background-size:200% 100%;animation:1.5s shine linear infinite;border-radius:50%}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: SkeletonLoaderComponent, decorators: [{
|
|
24
|
+
type: Component,
|
|
25
|
+
args: [{ selector: 'base-skeleton-loader', template: "<ng-container *ngIf=\"type\" [ngSwitch]=\"type\">\n <div *ngSwitchCase=\"'LINE'\">\n <div class=\"line-loader-wrapper\">\n <div class=\"line-loader\" *ngFor=\"let key of convertToArray(count)\"></div>\n </div>\n </div>\n\n <div *ngSwitchCase=\"'RECTANGLE'\">\n <div class=\"line-rectangle\" [ngStyle]=\"{ height: size + 'px' }\"></div>\n </div>\n\n <div *ngSwitchCase=\"'AVATAR'\">\n <div class=\"line-avatar\" [ngStyle]=\"{ height: size + 'px', width: size + 'px' }\"></div>\n </div>\n</ng-container>\n", styles: ["@keyframes shine{to{background-position-x:-200%}}.line-loader-wrapper>:not(:first-of-type){margin-top:10px}.line-loader-wrapper .line-loader{background:linear-gradient(110deg,#ececec 8%,#f5f5f5 18%,#ececec 33%);background-size:200% 100%;animation:1.5s shine linear infinite;height:18px;border-radius:5px}.line-rectangle{background:linear-gradient(110deg,#ececec 8%,#f5f5f5 18%,#ececec 33%);background-size:200% 100%;animation:1.5s shine linear infinite;border-radius:5px}.line-avatar{background:linear-gradient(110deg,#ececec 8%,#f5f5f5 18%,#ececec 33%);background-size:200% 100%;animation:1.5s shine linear infinite;border-radius:50%}\n"] }]
|
|
26
|
+
}], propDecorators: { type: [{
|
|
27
|
+
type: Input
|
|
28
|
+
}], count: [{
|
|
29
|
+
type: Input
|
|
30
|
+
}], size: [{
|
|
31
|
+
type: Input
|
|
32
|
+
}] } });
|
|
33
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2tlbGV0b24tbG9hZGVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25nLWJhc2UvYmFzZS1jb21wb25lbnRzL2NvbXBvbmVudHMvc2tlbGV0b24tbG9hZGVyL3NrZWxldG9uLWxvYWRlci5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZy1iYXNlL2Jhc2UtY29tcG9uZW50cy9jb21wb25lbnRzL3NrZWxldG9uLWxvYWRlci9za2VsZXRvbi1sb2FkZXIuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7OztBQVFqRCxNQUFNLE9BQU8sdUJBQXVCO0lBTHBDO1FBT1csVUFBSyxHQUFHLENBQUMsQ0FBQztRQUNWLFNBQUksR0FBRyxFQUFFLENBQUM7S0FlcEI7SUFiQyxjQUFjLENBQUMsS0FBSztRQUNsQixJQUFJLENBQUMsS0FBSyxFQUFFO1lBQ1YsT0FBTyxFQUFFLENBQUM7U0FDWDtRQUNELE1BQU0sR0FBRyxHQUFHLEVBQUUsQ0FBQztRQUVmLE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