@lenne.tech/ng-base 13.1.0 → 13.2.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 +12 -0
- package/base-components/components/checkbox/checkbox.component.d.ts +11 -0
- package/base-components/components/input/input.component.d.ts +14 -0
- package/base-components/components/select/select.component.d.ts +19 -0
- package/base-components/components/textarea/textarea.component.d.ts +13 -0
- package/base-components/lenne.tech-ng-base-base-components.d.ts +5 -0
- package/base-components/package.json +10 -0
- package/base-components/public-api.d.ts +8 -0
- package/base-prototype/base-prototype.module.d.ts +12 -0
- package/{src/lib/base/lenne.tech-ng-base-src-lib-base.d.ts → base-prototype/lenne.tech-ng-base-base-prototype.d.ts} +1 -1
- package/base-prototype/package.json +10 -0
- package/base-prototype/pages/login/login.component.d.ts +20 -0
- package/base-prototype/pages/register/register.component.d.ts +20 -0
- package/base-prototype/public-api.d.ts +6 -0
- package/esm2020/base-components/base-components.module.mjs +42 -0
- package/esm2020/base-components/components/checkbox/checkbox.component.mjs +28 -0
- package/esm2020/base-components/components/input/input.component.mjs +36 -0
- package/esm2020/base-components/components/select/select.component.mjs +37 -0
- package/esm2020/base-components/components/textarea/textarea.component.mjs +35 -0
- package/esm2020/base-components/lenne.tech-ng-base-base-components.mjs +5 -0
- package/esm2020/base-components/public-api.mjs +11 -0
- package/esm2020/base-prototype/base-prototype.module.mjs +36 -0
- package/esm2020/base-prototype/lenne.tech-ng-base-base-prototype.mjs +5 -0
- package/esm2020/base-prototype/pages/login/login.component.mjs +39 -0
- package/esm2020/base-prototype/pages/register/register.component.mjs +45 -0
- package/esm2020/base-prototype/public-api.mjs +9 -0
- package/esm2020/lenne.tech-ng-base.mjs +1 -1
- package/esm2020/public-api.mjs +66 -3
- package/esm2020/src/base.module.mjs +101 -0
- package/esm2020/src/classes/basic-user.class.mjs +51 -0
- package/esm2020/src/classes/graphql-enum.class.mjs +9 -0
- package/esm2020/src/classes/graphql-meta.class.mjs +171 -0
- package/esm2020/src/classes/graphql-type.class.mjs +13 -0
- package/esm2020/src/classes/helper.class.mjs +304 -0
- package/esm2020/src/classes/standard.class.mjs +40 -0
- package/esm2020/src/directives/context-menu.directive.mjs +109 -0
- package/esm2020/src/directives/lazy-load.directive.mjs +45 -0
- package/esm2020/src/directives/match-height.directive.mjs +79 -0
- package/esm2020/src/directives/resizable.directive.mjs +90 -0
- package/esm2020/src/enums/comparison-operator.enum.mjs +16 -0
- package/esm2020/src/enums/graphql-request-type.enum.mjs +10 -0
- package/esm2020/src/enums/logical-operator.enum.mjs +10 -0
- package/esm2020/src/enums/sort-order.enum.mjs +6 -0
- package/esm2020/src/factories/apollo-options.factory.mjs +61 -0
- package/esm2020/src/guards/auth.guard.mjs +61 -0
- package/esm2020/src/guards/can-deactivate.guard.mjs +16 -0
- package/esm2020/src/guards/logout.guard.mjs +32 -0
- package/esm2020/src/interfaces/base-module-config.interface.mjs +3 -0
- package/esm2020/src/interfaces/can-component-deactivate.interface.mjs +2 -0
- package/esm2020/src/interfaces/combined-filter-input.interface.mjs +2 -0
- package/esm2020/src/interfaces/field-object.interface.mjs +2 -0
- package/esm2020/src/interfaces/field.interface.mjs +2 -0
- package/esm2020/src/interfaces/filter-input.interface.mjs +2 -0
- package/esm2020/src/interfaces/find-args.interface.mjs +2 -0
- package/esm2020/src/interfaces/graphql-fields-object.interface.mjs +2 -0
- package/esm2020/src/interfaces/graphql-options.interface.mjs +2 -0
- package/esm2020/src/interfaces/graphql-plus-options.interfacen.mjs +2 -0
- package/esm2020/src/interfaces/graphql-type-collection.interface.mjs +2 -0
- package/esm2020/src/interfaces/single-filter-input.interface.mjs +2 -0
- package/esm2020/src/interfaces/sort-input.interface.mjs +2 -0
- package/esm2020/src/pipes/date-ago.pipe.mjs +65 -0
- package/esm2020/src/pipes/ellipses.pipe.mjs +22 -0
- package/esm2020/src/pipes/safe-html.pipe.mjs +21 -0
- package/esm2020/src/services/auth.service.mjs +71 -0
- package/esm2020/src/services/forms.service.mjs +26 -0
- package/esm2020/src/services/fullscreen.service.mjs +51 -0
- package/esm2020/src/services/graphql-meta.service.mjs +123 -0
- package/esm2020/src/services/graphql-plus.service.mjs +84 -0
- package/esm2020/src/services/graphql.service.mjs +441 -0
- package/esm2020/src/services/image.service.mjs +102 -0
- package/esm2020/src/services/loader.service.mjs +29 -0
- package/esm2020/src/services/scroll.service.mjs +179 -0
- package/esm2020/src/services/seo.service.mjs +97 -0
- package/esm2020/src/services/storage.service.mjs +132 -0
- package/esm2020/src/services/theme.service.mjs +43 -0
- package/esm2020/src/services/ws.service.mjs +17 -0
- package/esm2020/src/types/graphql-fields.type.mjs +2 -0
- package/esm2020/src/types/storage.type.mjs +2 -0
- package/esm2020/src/validators/must-match.validator.mjs +22 -0
- package/fesm2015/lenne.tech-ng-base-base-components.mjs +173 -0
- package/fesm2015/lenne.tech-ng-base-base-components.mjs.map +1 -0
- package/fesm2015/lenne.tech-ng-base-base-prototype.mjs +122 -0
- package/fesm2015/lenne.tech-ng-base-base-prototype.mjs.map +1 -0
- package/fesm2015/lenne.tech-ng-base.mjs +213 -77
- package/fesm2015/lenne.tech-ng-base.mjs.map +1 -1
- package/fesm2020/lenne.tech-ng-base-base-components.mjs +171 -0
- package/fesm2020/lenne.tech-ng-base-base-components.mjs.map +1 -0
- package/fesm2020/lenne.tech-ng-base-base-prototype.mjs +120 -0
- package/fesm2020/lenne.tech-ng-base-base-prototype.mjs.map +1 -0
- package/fesm2020/lenne.tech-ng-base.mjs +213 -77
- package/fesm2020/lenne.tech-ng-base.mjs.map +1 -1
- package/package.json +24 -15
- package/public-api.d.ts +54 -1
- package/{lib/base → src}/base.module.d.ts +2 -1
- package/{lib/base → src}/classes/basic-user.class.d.ts +0 -0
- package/{lib/base → src}/classes/graphql-enum.class.d.ts +0 -0
- package/{lib/base → src}/classes/graphql-meta.class.d.ts +0 -0
- package/{lib/base → src}/classes/graphql-type.class.d.ts +0 -0
- package/{lib/base → src}/classes/helper.class.d.ts +1 -0
- package/{lib/base → src}/classes/standard.class.d.ts +0 -0
- package/{lib/base → src}/directives/context-menu.directive.d.ts +0 -0
- package/{lib/base → src}/directives/lazy-load.directive.d.ts +0 -0
- package/{lib/base → src}/directives/match-height.directive.d.ts +0 -0
- package/{lib/base → src}/directives/resizable.directive.d.ts +0 -0
- package/{lib/base → src}/enums/comparison-operator.enum.d.ts +0 -0
- package/{lib/base → src}/enums/graphql-request-type.enum.d.ts +0 -0
- package/{lib/base → src}/enums/logical-operator.enum.d.ts +0 -0
- package/{lib/base → src}/enums/sort-order.enum.d.ts +0 -0
- package/{lib/base → src}/factories/apollo-options.factory.d.ts +0 -0
- package/{lib/base → src}/guards/auth.guard.d.ts +0 -0
- package/{lib/base → src}/guards/can-deactivate.guard.d.ts +0 -0
- package/{lib/base → src}/guards/logout.guard.d.ts +0 -0
- package/{lib/base → src}/interfaces/base-module-config.interface.d.ts +0 -0
- package/{lib/base → src}/interfaces/can-component-deactivate.interface.d.ts +0 -0
- package/{lib/base → src}/interfaces/combined-filter-input.interface.d.ts +0 -0
- package/{lib/base → src}/interfaces/field-object.interface.d.ts +0 -0
- package/{lib/base → src}/interfaces/field.interface.d.ts +0 -0
- package/{lib/base → src}/interfaces/filter-input.interface.d.ts +0 -0
- package/{lib/base → src}/interfaces/find-args.interface.d.ts +0 -0
- package/src/interfaces/graphql-fields-object.interface.d.ts +6 -0
- package/{lib/base → src}/interfaces/graphql-options.interface.d.ts +0 -0
- package/{lib/base → src}/interfaces/graphql-plus-options.interfacen.d.ts +0 -0
- package/{lib/base → src}/interfaces/graphql-type-collection.interface.d.ts +0 -0
- package/{lib/base → src}/interfaces/single-filter-input.interface.d.ts +0 -0
- package/{lib/base → src}/interfaces/sort-input.interface.d.ts +0 -0
- package/src/pipes/date-ago.pipe.d.ts +34 -0
- package/{lib/base → src}/pipes/ellipses.pipe.d.ts +0 -0
- package/{lib/base → src}/pipes/safe-html.pipe.d.ts +0 -0
- package/{lib/base → src}/services/auth.service.d.ts +0 -0
- package/src/services/forms.service.d.ts +8 -0
- package/{lib/base → src}/services/fullscreen.service.d.ts +0 -0
- package/{lib/base → src}/services/graphql-meta.service.d.ts +0 -0
- package/{lib/base → src}/services/graphql-plus.service.d.ts +0 -0
- package/{lib/base → src}/services/graphql.service.d.ts +0 -0
- package/{lib/base → src}/services/image.service.d.ts +0 -0
- package/{lib/base → src}/services/loader.service.d.ts +0 -0
- package/{lib/base → src}/services/scroll.service.d.ts +0 -0
- package/{lib/base → src}/services/seo.service.d.ts +0 -0
- package/{lib/base → src}/services/storage.service.d.ts +0 -0
- package/src/services/theme.service.d.ts +17 -0
- package/{lib/base → src}/services/ws.service.d.ts +0 -0
- package/src/types/graphql-fields.type.d.ts +5 -0
- package/{lib/base → src}/types/storage.type.d.ts +0 -0
- package/{lib/base → src}/validators/must-match.validator.d.ts +2 -2
- package/esm2020/lib/base/base.module.mjs +0 -97
- package/esm2020/lib/base/classes/basic-user.class.mjs +0 -51
- package/esm2020/lib/base/classes/graphql-enum.class.mjs +0 -9
- package/esm2020/lib/base/classes/graphql-meta.class.mjs +0 -171
- package/esm2020/lib/base/classes/graphql-type.class.mjs +0 -13
- package/esm2020/lib/base/classes/helper.class.mjs +0 -295
- package/esm2020/lib/base/classes/standard.class.mjs +0 -40
- package/esm2020/lib/base/directives/context-menu.directive.mjs +0 -109
- package/esm2020/lib/base/directives/lazy-load.directive.mjs +0 -45
- package/esm2020/lib/base/directives/match-height.directive.mjs +0 -79
- package/esm2020/lib/base/directives/resizable.directive.mjs +0 -90
- package/esm2020/lib/base/enums/comparison-operator.enum.mjs +0 -16
- package/esm2020/lib/base/enums/graphql-request-type.enum.mjs +0 -10
- package/esm2020/lib/base/enums/logical-operator.enum.mjs +0 -10
- package/esm2020/lib/base/enums/sort-order.enum.mjs +0 -6
- package/esm2020/lib/base/factories/apollo-options.factory.mjs +0 -61
- package/esm2020/lib/base/guards/auth.guard.mjs +0 -61
- package/esm2020/lib/base/guards/can-deactivate.guard.mjs +0 -16
- package/esm2020/lib/base/guards/logout.guard.mjs +0 -32
- package/esm2020/lib/base/index.mjs +0 -2
- package/esm2020/lib/base/interfaces/base-module-config.interface.mjs +0 -3
- package/esm2020/lib/base/interfaces/can-component-deactivate.interface.mjs +0 -2
- package/esm2020/lib/base/interfaces/combined-filter-input.interface.mjs +0 -2
- package/esm2020/lib/base/interfaces/field-object.interface.mjs +0 -2
- package/esm2020/lib/base/interfaces/field.interface.mjs +0 -2
- package/esm2020/lib/base/interfaces/filter-input.interface.mjs +0 -2
- package/esm2020/lib/base/interfaces/find-args.interface.mjs +0 -2
- package/esm2020/lib/base/interfaces/graphql-options.interface.mjs +0 -2
- package/esm2020/lib/base/interfaces/graphql-plus-options.interfacen.mjs +0 -2
- package/esm2020/lib/base/interfaces/graphql-type-collection.interface.mjs +0 -2
- package/esm2020/lib/base/interfaces/single-filter-input.interface.mjs +0 -2
- package/esm2020/lib/base/interfaces/sort-input.interface.mjs +0 -2
- package/esm2020/lib/base/pipes/ellipses.pipe.mjs +0 -22
- package/esm2020/lib/base/pipes/safe-html.pipe.mjs +0 -21
- package/esm2020/lib/base/public-api.mjs +0 -61
- package/esm2020/lib/base/services/auth.service.mjs +0 -71
- package/esm2020/lib/base/services/fullscreen.service.mjs +0 -51
- package/esm2020/lib/base/services/graphql-meta.service.mjs +0 -123
- package/esm2020/lib/base/services/graphql-plus.service.mjs +0 -84
- package/esm2020/lib/base/services/graphql.service.mjs +0 -441
- package/esm2020/lib/base/services/image.service.mjs +0 -102
- package/esm2020/lib/base/services/loader.service.mjs +0 -29
- package/esm2020/lib/base/services/scroll.service.mjs +0 -179
- package/esm2020/lib/base/services/seo.service.mjs +0 -97
- package/esm2020/lib/base/services/storage.service.mjs +0 -132
- package/esm2020/lib/base/services/ws.service.mjs +0 -17
- package/esm2020/lib/base/types/storage.type.mjs +0 -2
- package/esm2020/lib/base/validators/must-match.validator.mjs +0 -22
- package/esm2020/src/lib/base/base.module.mjs +0 -97
- package/esm2020/src/lib/base/classes/basic-user.class.mjs +0 -51
- package/esm2020/src/lib/base/classes/graphql-enum.class.mjs +0 -9
- package/esm2020/src/lib/base/classes/graphql-meta.class.mjs +0 -171
- package/esm2020/src/lib/base/classes/graphql-type.class.mjs +0 -13
- package/esm2020/src/lib/base/classes/helper.class.mjs +0 -295
- package/esm2020/src/lib/base/classes/standard.class.mjs +0 -40
- package/esm2020/src/lib/base/directives/context-menu.directive.mjs +0 -109
- package/esm2020/src/lib/base/directives/lazy-load.directive.mjs +0 -45
- package/esm2020/src/lib/base/directives/match-height.directive.mjs +0 -79
- package/esm2020/src/lib/base/directives/resizable.directive.mjs +0 -90
- package/esm2020/src/lib/base/enums/comparison-operator.enum.mjs +0 -16
- package/esm2020/src/lib/base/enums/graphql-request-type.enum.mjs +0 -10
- package/esm2020/src/lib/base/enums/logical-operator.enum.mjs +0 -10
- package/esm2020/src/lib/base/enums/sort-order.enum.mjs +0 -6
- package/esm2020/src/lib/base/factories/apollo-options.factory.mjs +0 -61
- package/esm2020/src/lib/base/guards/auth.guard.mjs +0 -61
- package/esm2020/src/lib/base/guards/can-deactivate.guard.mjs +0 -16
- package/esm2020/src/lib/base/guards/logout.guard.mjs +0 -32
- package/esm2020/src/lib/base/interfaces/base-module-config.interface.mjs +0 -3
- package/esm2020/src/lib/base/interfaces/can-component-deactivate.interface.mjs +0 -2
- package/esm2020/src/lib/base/interfaces/combined-filter-input.interface.mjs +0 -2
- package/esm2020/src/lib/base/interfaces/field-object.interface.mjs +0 -2
- package/esm2020/src/lib/base/interfaces/field.interface.mjs +0 -2
- package/esm2020/src/lib/base/interfaces/filter-input.interface.mjs +0 -2
- package/esm2020/src/lib/base/interfaces/find-args.interface.mjs +0 -2
- package/esm2020/src/lib/base/interfaces/graphql-options.interface.mjs +0 -2
- package/esm2020/src/lib/base/interfaces/graphql-plus-options.interfacen.mjs +0 -2
- package/esm2020/src/lib/base/interfaces/graphql-type-collection.interface.mjs +0 -2
- package/esm2020/src/lib/base/interfaces/single-filter-input.interface.mjs +0 -2
- package/esm2020/src/lib/base/interfaces/sort-input.interface.mjs +0 -2
- package/esm2020/src/lib/base/lenne.tech-ng-base-src-lib-base.mjs +0 -5
- package/esm2020/src/lib/base/pipes/ellipses.pipe.mjs +0 -22
- package/esm2020/src/lib/base/pipes/safe-html.pipe.mjs +0 -21
- package/esm2020/src/lib/base/public-api.mjs +0 -61
- package/esm2020/src/lib/base/services/auth.service.mjs +0 -71
- package/esm2020/src/lib/base/services/fullscreen.service.mjs +0 -51
- package/esm2020/src/lib/base/services/graphql-meta.service.mjs +0 -123
- package/esm2020/src/lib/base/services/graphql-plus.service.mjs +0 -84
- package/esm2020/src/lib/base/services/graphql.service.mjs +0 -441
- package/esm2020/src/lib/base/services/image.service.mjs +0 -102
- package/esm2020/src/lib/base/services/loader.service.mjs +0 -29
- package/esm2020/src/lib/base/services/scroll.service.mjs +0 -179
- package/esm2020/src/lib/base/services/seo.service.mjs +0 -97
- package/esm2020/src/lib/base/services/storage.service.mjs +0 -132
- package/esm2020/src/lib/base/services/ws.service.mjs +0 -17
- package/esm2020/src/lib/base/types/storage.type.mjs +0 -2
- package/esm2020/src/lib/base/validators/must-match.validator.mjs +0 -22
- package/fesm2015/lenne.tech-ng-base-src-lib-base.mjs +0 -2470
- package/fesm2015/lenne.tech-ng-base-src-lib-base.mjs.map +0 -1
- package/fesm2020/lenne.tech-ng-base-src-lib-base.mjs +0 -2524
- package/fesm2020/lenne.tech-ng-base-src-lib-base.mjs.map +0 -1
- package/lib/base/index.d.ts +0 -1
- package/lib/base/public-api.d.ts +0 -49
- package/src/lib/base/base.module.d.ts +0 -21
- package/src/lib/base/classes/basic-user.class.d.ts +0 -26
- package/src/lib/base/classes/graphql-enum.class.d.ts +0 -7
- package/src/lib/base/classes/graphql-meta.class.d.ts +0 -46
- package/src/lib/base/classes/graphql-type.class.d.ts +0 -9
- package/src/lib/base/classes/helper.class.d.ts +0 -98
- package/src/lib/base/classes/standard.class.d.ts +0 -32
- package/src/lib/base/directives/context-menu.directive.d.ts +0 -22
- package/src/lib/base/directives/lazy-load.directive.d.ts +0 -17
- package/src/lib/base/directives/match-height.directive.d.ts +0 -19
- package/src/lib/base/directives/resizable.directive.d.ts +0 -26
- package/src/lib/base/enums/comparison-operator.enum.d.ts +0 -14
- package/src/lib/base/enums/graphql-request-type.enum.d.ts +0 -8
- package/src/lib/base/enums/logical-operator.enum.d.ts +0 -8
- package/src/lib/base/enums/sort-order.enum.d.ts +0 -4
- package/src/lib/base/factories/apollo-options.factory.d.ts +0 -18
- package/src/lib/base/guards/auth.guard.d.ts +0 -27
- package/src/lib/base/guards/can-deactivate.guard.d.ts +0 -11
- package/src/lib/base/guards/logout.guard.d.ts +0 -16
- package/src/lib/base/interfaces/base-module-config.interface.d.ts +0 -57
- package/src/lib/base/interfaces/can-component-deactivate.interface.d.ts +0 -7
- package/src/lib/base/interfaces/combined-filter-input.interface.d.ts +0 -9
- package/src/lib/base/interfaces/field-object.interface.d.ts +0 -6
- package/src/lib/base/interfaces/field.interface.d.ts +0 -5
- package/src/lib/base/interfaces/filter-input.interface.d.ts +0 -9
- package/src/lib/base/interfaces/find-args.interface.d.ts +0 -10
- package/src/lib/base/interfaces/graphql-options.interface.d.ts +0 -11
- package/src/lib/base/interfaces/graphql-plus-options.interfacen.d.ts +0 -9
- package/src/lib/base/interfaces/graphql-type-collection.interface.d.ts +0 -7
- package/src/lib/base/interfaces/single-filter-input.interface.d.ts +0 -11
- package/src/lib/base/interfaces/sort-input.interface.d.ts +0 -5
- package/src/lib/base/package.json +0 -10
- package/src/lib/base/pipes/ellipses.pipe.d.ts +0 -10
- package/src/lib/base/pipes/safe-html.pipe.d.ts +0 -13
- package/src/lib/base/public-api.d.ts +0 -49
- package/src/lib/base/services/auth.service.d.ts +0 -32
- package/src/lib/base/services/fullscreen.service.d.ts +0 -18
- package/src/lib/base/services/graphql-meta.service.d.ts +0 -45
- package/src/lib/base/services/graphql-plus.service.d.ts +0 -25
- package/src/lib/base/services/graphql.service.d.ts +0 -56
- package/src/lib/base/services/image.service.d.ts +0 -27
- package/src/lib/base/services/loader.service.d.ts +0 -13
- package/src/lib/base/services/scroll.service.d.ts +0 -85
- package/src/lib/base/services/seo.service.d.ts +0 -49
- package/src/lib/base/services/storage.service.d.ts +0 -48
- package/src/lib/base/services/ws.service.d.ts +0 -8
- package/src/lib/base/types/storage.type.d.ts +0 -4
- package/src/lib/base/validators/must-match.validator.d.ts +0 -6
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./components/input/input.component";
|
|
3
|
+
import * as i2 from "./components/select/select.component";
|
|
4
|
+
import * as i3 from "./components/checkbox/checkbox.component";
|
|
5
|
+
import * as i4 from "./components/textarea/textarea.component";
|
|
6
|
+
import * as i5 from "@angular/forms";
|
|
7
|
+
import * as i6 from "@angular/common";
|
|
8
|
+
export declare class BaseComponentsModule {
|
|
9
|
+
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 i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.CommonModule], [typeof i1.InputComponent, typeof i2.SelectComponent, typeof i3.CheckboxComponent, typeof i4.TextareaComponent]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<BaseComponentsModule>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class CheckboxComponent {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
value: string | number;
|
|
7
|
+
control: any;
|
|
8
|
+
required: boolean;
|
|
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, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class InputComponent {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
autocomplete?: string;
|
|
8
|
+
tabIndex?: number;
|
|
9
|
+
control: any;
|
|
10
|
+
type: string;
|
|
11
|
+
required: boolean;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "base-input", never, { "id": "id"; "name": "name"; "label": "label"; "placeholder": "placeholder"; "autocomplete": "autocomplete"; "tabIndex": "tabIndex"; "control": "control"; "type": "type"; "required": "required"; }, {}, never, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
interface Option {
|
|
3
|
+
text: string;
|
|
4
|
+
value: string | number;
|
|
5
|
+
}
|
|
6
|
+
export declare class SelectComponent {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
control: any;
|
|
12
|
+
tabIndex?: number;
|
|
13
|
+
required: boolean;
|
|
14
|
+
multiple: boolean;
|
|
15
|
+
options: Option[];
|
|
16
|
+
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
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class TextareaComponent {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
control: any;
|
|
8
|
+
rows: number;
|
|
9
|
+
required: boolean;
|
|
10
|
+
tabIndex?: number;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextareaComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextareaComponent, "base-textarea", never, { "id": "id"; "name": "name"; "label": "label"; "placeholder": "placeholder"; "control": "control"; "rows": "rows"; "required": "required"; "tabIndex": "tabIndex"; }, {}, never, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"module": "../fesm2015/lenne.tech-ng-base-base-components.mjs",
|
|
3
|
+
"es2020": "../fesm2020/lenne.tech-ng-base-base-components.mjs",
|
|
4
|
+
"esm2020": "../esm2020/base-components/lenne.tech-ng-base-base-components.mjs",
|
|
5
|
+
"fesm2020": "../fesm2020/lenne.tech-ng-base-base-components.mjs",
|
|
6
|
+
"fesm2015": "../fesm2015/lenne.tech-ng-base-base-components.mjs",
|
|
7
|
+
"typings": "lenne.tech-ng-base-base-components.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"name": "@lenne.tech/ng-base/base-components"
|
|
10
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Exports for public API
|
|
3
|
+
*/
|
|
4
|
+
export * from './base-components.module';
|
|
5
|
+
export * from './components/input/input.component';
|
|
6
|
+
export * from './components/select/select.component';
|
|
7
|
+
export * from './components/checkbox/checkbox.component';
|
|
8
|
+
export * from './components/textarea/textarea.component';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./pages/login/login.component";
|
|
3
|
+
import * as i2 from "./pages/register/register.component";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
import * as i4 from "@angular/router";
|
|
6
|
+
import * as i5 from "@angular/common";
|
|
7
|
+
import * as i6 from "@lenne.tech/ng-base/base-components";
|
|
8
|
+
export declare class BasePrototypeModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BasePrototypeModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<BasePrototypeModule, [typeof i1.LoginComponent, typeof i2.RegisterComponent], [typeof i3.FormsModule, typeof i4.RouterModule, typeof i3.ReactiveFormsModule, typeof i5.CommonModule, typeof i6.BaseComponentsModule], [typeof i1.LoginComponent, typeof i2.RegisterComponent]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<BasePrototypeModule>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"module": "../fesm2015/lenne.tech-ng-base-base-prototype.mjs",
|
|
3
|
+
"es2020": "../fesm2020/lenne.tech-ng-base-base-prototype.mjs",
|
|
4
|
+
"esm2020": "../esm2020/base-prototype/lenne.tech-ng-base-base-prototype.mjs",
|
|
5
|
+
"fesm2020": "../fesm2020/lenne.tech-ng-base-base-prototype.mjs",
|
|
6
|
+
"fesm2015": "../fesm2015/lenne.tech-ng-base-base-prototype.mjs",
|
|
7
|
+
"typings": "lenne.tech-ng-base-base-prototype.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"name": "@lenne.tech/ng-base/base-prototype"
|
|
10
|
+
}
|
|
@@ -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 LoginComponent 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 login form
|
|
16
|
+
*/
|
|
17
|
+
submit(): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoginComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LoginComponent, "base-login", never, {}, {}, never, never>;
|
|
20
|
+
}
|
|
@@ -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 RegisterComponent 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 login form
|
|
16
|
+
*/
|
|
17
|
+
submit(): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RegisterComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RegisterComponent, "base-register", never, {}, {}, never, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
import { InputComponent } from './components/input/input.component';
|
|
5
|
+
import { SelectComponent } from './components/select/select.component';
|
|
6
|
+
import { CheckboxComponent } from './components/checkbox/checkbox.component';
|
|
7
|
+
import { TextareaComponent } from './components/textarea/textarea.component';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
// Modules
|
|
10
|
+
const imports = [FormsModule, ReactiveFormsModule, CommonModule];
|
|
11
|
+
// Imported and exported elements
|
|
12
|
+
const elements = [
|
|
13
|
+
// Components
|
|
14
|
+
InputComponent,
|
|
15
|
+
SelectComponent,
|
|
16
|
+
CheckboxComponent,
|
|
17
|
+
TextareaComponent,
|
|
18
|
+
];
|
|
19
|
+
export class BaseComponentsModule {
|
|
20
|
+
}
|
|
21
|
+
BaseComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: BaseComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
22
|
+
BaseComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: BaseComponentsModule, declarations: [
|
|
23
|
+
// Components
|
|
24
|
+
InputComponent,
|
|
25
|
+
SelectComponent,
|
|
26
|
+
CheckboxComponent,
|
|
27
|
+
TextareaComponent], imports: [FormsModule, ReactiveFormsModule, CommonModule], exports: [
|
|
28
|
+
// Components
|
|
29
|
+
InputComponent,
|
|
30
|
+
SelectComponent,
|
|
31
|
+
CheckboxComponent,
|
|
32
|
+
TextareaComponent] });
|
|
33
|
+
BaseComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: BaseComponentsModule, imports: [imports] });
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: BaseComponentsModule, decorators: [{
|
|
35
|
+
type: NgModule,
|
|
36
|
+
args: [{
|
|
37
|
+
declarations: elements,
|
|
38
|
+
imports,
|
|
39
|
+
exports: elements,
|
|
40
|
+
}]
|
|
41
|
+
}] });
|
|
42
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS1jb21wb25lbnRzLm1vZHVsZS5qcyIsInNvdXJj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tib3hDb21wb25lbnQsXG4gIFRleHRhcmVhQ29tcG9uZW50LFxuXTtcblxuQE5nTW9kdWxlKHtcbiAgZGVjbGFyYXRpb25zOiBlbGVtZW50cyxcbiAgaW1wb3J0cyxcbiAgZXhwb3J0czogZWxlbWVudHMsXG59KVxuZXhwb3J0IGNsYXNzIEJhc2VDb21wb25lbnRzTW9kdWxlIHt9XG4iXX0=
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/forms";
|
|
4
|
+
import * as i2 from "@angular/common";
|
|
5
|
+
export class CheckboxComponent {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.required = false;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
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\">{{ label }}</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
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: CheckboxComponent, decorators: [{
|
|
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\">{{ label }}</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
|
+
}], propDecorators: { id: [{
|
|
16
|
+
type: Input
|
|
17
|
+
}], name: [{
|
|
18
|
+
type: Input
|
|
19
|
+
}], label: [{
|
|
20
|
+
type: Input
|
|
21
|
+
}], value: [{
|
|
22
|
+
type: Input
|
|
23
|
+
}], control: [{
|
|
24
|
+
type: Input
|
|
25
|
+
}], required: [{
|
|
26
|
+
type: Input
|
|
27
|
+
}] } });
|
|
28
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hl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C48L2Rpdj5cbiAgPC9kaXY+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/common";
|
|
4
|
+
import * as i2 from "@angular/forms";
|
|
5
|
+
export class InputComponent {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.placeholder = '';
|
|
8
|
+
this.type = 'text';
|
|
9
|
+
this.required = false;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
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"] }] });
|
|
14
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: InputComponent, decorators: [{
|
|
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: [""] }]
|
|
17
|
+
}], propDecorators: { id: [{
|
|
18
|
+
type: Input
|
|
19
|
+
}], name: [{
|
|
20
|
+
type: Input
|
|
21
|
+
}], label: [{
|
|
22
|
+
type: Input
|
|
23
|
+
}], placeholder: [{
|
|
24
|
+
type: Input
|
|
25
|
+
}], autocomplete: [{
|
|
26
|
+
type: Input
|
|
27
|
+
}], tabIndex: [{
|
|
28
|
+
type: Input
|
|
29
|
+
}], control: [{
|
|
30
|
+
type: Input
|
|
31
|
+
}], type: [{
|
|
32
|
+
type: Input
|
|
33
|
+
}], required: [{
|
|
34
|
+
type: Input
|
|
35
|
+
}] } });
|
|
36
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmctYmFzZS9iYXNlLWNvbXBvbmVudHMvY29tcG9uZW50cy9pbnB1dC9pbnB1dC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZy1iYXNlL2Jhc2UtY29tcG9uZW50cy9jb21wb25lbnRzL2lucHV0L2lucHV0LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQU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cnJvcnM/LlsnbWlubGVuZ3RoJ11cIj5cbiAgICAgIERpZSBNaW5kZXN0bMOkbmdlIGbDvHIgZGllc2VzIEZlbGQgYmV0csOkZ3RcbiAgICAgIHt7Y29udHJvbC5lcnJvcnM/LlsnbWlubGVuZ3RoJ10/LnJlcXVpcmVkTGVuZ3RofX0gWmVpY2hlbi5cbiAgICA8L2Rpdj5cbiAgICA8ZGl2ICpuZ0lmPVwiY29udHJvbD8uZXJyb3JzPy5bJ21heGxlbmd0aCddXCI+XG4gICAgICBEaWUgbWF4aW1hbGUgTMOkbmdlIGbDvHIgZGllc2VzIEZlbGQgYmV0csOkZ3RcbiAgICAgIHt7Y29udHJvbC5lcnJvcnM/LlsnbWF4bGVuZ3RoJ10/LnJlcXVpcmVkTGVuZ3RofX0gWmVpY2hlbi5cbiAgICA8L2Rpdj5cbiAgICA8ZGl2ICpuZ0lmPVwiY29udHJvbD8uZXJyb3JzPy5bJ2VtYWlsJ11cIj5CaXR0ZSBlaW5lIGfDvGx0aWdlIEUtTWFpbCBBZHJlc3NlIGFuZ2ViZW4uPC9kaXY+XG4gIDwvZGl2PlxuPC9kaXY+XG4iXX0=
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/common";
|
|
4
|
+
import * as i2 from "@angular/forms";
|
|
5
|
+
export class SelectComponent {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.placeholder = '';
|
|
8
|
+
this.required = false;
|
|
9
|
+
this.multiple = false;
|
|
10
|
+
this.options = [];
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
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
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: SelectComponent, decorators: [{
|
|
16
|
+
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
|
+
}], propDecorators: { id: [{
|
|
19
|
+
type: Input
|
|
20
|
+
}], name: [{
|
|
21
|
+
type: Input
|
|
22
|
+
}], label: [{
|
|
23
|
+
type: Input
|
|
24
|
+
}], placeholder: [{
|
|
25
|
+
type: Input
|
|
26
|
+
}], control: [{
|
|
27
|
+
type: Input
|
|
28
|
+
}], tabIndex: [{
|
|
29
|
+
type: Input
|
|
30
|
+
}], required: [{
|
|
31
|
+
type: Input
|
|
32
|
+
}], multiple: [{
|
|
33
|
+
type: Input
|
|
34
|
+
}], options: [{
|
|
35
|
+
type: Input
|
|
36
|
+
}] } });
|
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25nLWJhc2UvYmFzZS1jb21wb25lbnRzL2NvbXBvbmVudHMvc2VsZWN0L3NlbGVjdC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZy1iYXNlL2Jhc2UtY29tcG9uZW50cy9jb21wb25lbnRzL3NlbGVjdC9zZWxlY3QuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7Ozs7QUFZakQsTUFBTSxPQUFPLGVBQWU7SUFMNUI7UUFTVyxnQkFBVyxHQUFZLEVBQUUsQ0FBQztRQUcxQixhQUFRLEdBQUcsS0FBSyxDQUFDO1FBQ2pCLGFBQVEsR0FBRyxLQUFLLENBQUM7UUFDakIsWUFBTyxHQUFhLEVBQUUsQ0FBQztLQUNqQzs7NEdBVlks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Ij5cbiAgICA8ZGl2ICpuZ0lmPVwiY29udHJvbD8uZXJyb3JzPy5bJ3JlcXVpcmVkJ11cIj5EaWVzZXMgRmVsZCBpc3QgZWluIFBmbGljaHRmZWxkLjwvZGl2PlxuICAgIDxkaXYgKm5nSWY9XCJjb250cm9sPy5lcnJvcnM/LlsnbWlubGVuZ3RoJ11cIj5cbiAgICAgIERpZSBNaW5kZXN0bMOkbmdlIGbDvHIgZGllc2VzIEZlbGQgYmV0csOkZ3RcbiAgICAgIHt7Y29udHJvbD8uZXJyb3JzPy5bJ21pbmxlbmd0aCddPy5yZXF1aXJlZExlbmd0aH19IFplaWNoZW4uXG4gICAgPC9kaXY+XG4gICAgPGRpdiAqbmdJZj1cImNvbnRyb2w/LmVycm9ycz8uWydtYXhsZW5ndGgnXVwiPlxuICAgICAgRGllIG1heGltYWxlIEzDpG5nZSBmw7xyIGRpZXNlcyBGZWxkIGJldHLDpGd0XG4gICAgICB7e2NvbnRyb2w/LmVycm9ycz8uWydtYXhsZW5ndGgnXT8ucmVxdWlyZWRMZW5ndGh9fSBaZWljaGVuLlxuICAgIDwvZGl2PlxuICAgIDxkaXYgKm5nSWY9XCJjb250cm9sPy5lcnJvcnM/LlsnZW1haWwnXVwiPkJpdHRlIGVpbmUgZ8O8bHRpZ2UgRS1NYWlsIEFkcmVzc2UgYW5nZWJlbi48L2Rpdj5cbiAgPC9kaXY+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/common";
|
|
4
|
+
import * as i2 from "@angular/forms";
|
|
5
|
+
export class TextareaComponent {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.label = '';
|
|
8
|
+
this.placeholder = '';
|
|
9
|
+
this.rows = 5;
|
|
10
|
+
this.required = false;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
TextareaComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: TextareaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
14
|
+
TextareaComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.3", type: TextareaComponent, selector: "base-textarea", inputs: { id: "id", name: "name", label: "label", placeholder: "placeholder", control: "control", rows: "rows", required: "required", tabIndex: "tabIndex" }, ngImport: i0, template: "<div class=\"form-group mb-3\">\n <label [for]=\"id\" class=\"form-label\" [ngClass]=\"{ required: required }\" *ngIf=\"label\">{{ label }}</label>\n <textarea\n class=\"form-control\"\n [id]=\"id\"\n [name]=\"name\"\n [rows]=\"rows\"\n [placeholder]=\"placeholder\"\n [formControl]=\"control\"\n [tabIndex]=\"tabIndex ?? null\"\n [ngClass]=\"{ 'is-invalid': control?.invalid && control?.touched }\"\n ></textarea>\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>\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"] }] });
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: TextareaComponent, decorators: [{
|
|
16
|
+
type: Component,
|
|
17
|
+
args: [{ selector: 'base-textarea', template: "<div class=\"form-group mb-3\">\n <label [for]=\"id\" class=\"form-label\" [ngClass]=\"{ required: required }\" *ngIf=\"label\">{{ label }}</label>\n <textarea\n class=\"form-control\"\n [id]=\"id\"\n [name]=\"name\"\n [rows]=\"rows\"\n [placeholder]=\"placeholder\"\n [formControl]=\"control\"\n [tabIndex]=\"tabIndex ?? null\"\n [ngClass]=\"{ 'is-invalid': control?.invalid && control?.touched }\"\n ></textarea>\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>\n</div>\n", styles: [""] }]
|
|
18
|
+
}], propDecorators: { id: [{
|
|
19
|
+
type: Input
|
|
20
|
+
}], name: [{
|
|
21
|
+
type: Input
|
|
22
|
+
}], label: [{
|
|
23
|
+
type: Input
|
|
24
|
+
}], placeholder: [{
|
|
25
|
+
type: Input
|
|
26
|
+
}], control: [{
|
|
27
|
+
type: Input
|
|
28
|
+
}], rows: [{
|
|
29
|
+
type: Input
|
|
30
|
+
}], required: [{
|
|
31
|
+
type: Input
|
|
32
|
+
}], tabIndex: [{
|
|
33
|
+
type: Input
|
|
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DbGFzc109XCJ7ICdpcy1pbnZhbGlkJzogY29udHJvbD8uaW52YWxpZCAmJiBjb250cm9sPy50b3VjaGVkIH1cIlxuICA+PC90ZXh0YXJlYT5cblxuICA8ZGl2IGNsYXNzPVwiaW52YWxpZC1mZWVkYmFjayBtLTJcIiAqbmdJZj1cImNvbnRyb2w/LmludmFsaWQgJiYgKGNvbnRyb2w/LmRpcnR5IHx8IGNvbnRyb2w/LnRvdWNoZWQpXCI+XG4gICAgPGRpdiAqbmdJZj1cImNvbnRyb2w/LmVycm9ycz8uWydyZXF1aXJlZCddXCI+RGllc2VzIEZlbGQgaXN0IGVpbiBQZmxpY2h0ZmVsZC48L2Rpdj5cbiAgICA8ZGl2ICpuZ0lmPVwiY29udHJvbD8uZXJyb3JzPy5bJ21pbmxlbmd0aCddXCI+XG4gICAgICBEaWUgTWluZGVzdGzDpG5nZSBmw7xyIGRpZXNlcyBGZWxkIGJldHLDpGd0XG4gICAgICB7e2NvbnRyb2w/LmVycm9ycz8uWydtaW5sZW5ndGgnXT8ucmVxdWlyZWRMZW5ndGh9fSBaZWljaGVuLlxuICAgIDwvZGl2PlxuICAgIDxkaXYgKm5nSWY9XCJjb250cm9sPy5lcnJvcnM/LlsnbWF4bGVuZ3RoJ11cIj5cbiAgICAgIERpZSBtYXhpbWFsZSBMw6RuZ2UgZsO8ciBkaWVzZXMgRmVsZCBiZXRyw6RndFxuICAgICAge3tjb250cm9sPy5lcnJvcnM/LlsnbWF4bGVuZ3RoJ10/LnJlcXVpcmVkTGVuZ3RofX0gWmVpY2hlbi5cbiAgICA8L2Rpdj5cbiAgPC9kaXY+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public-api';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGVubmUudGVjaC1uZy1iYXNlLWJhc2UtY29tcG9uZW50cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25nLWJhc2UvYmFzZS1jb21wb25lbnRzL2xlbm5lLnRlY2gtbmctYmFzZS1iYXNlLWNvbXBvbmVudHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Exports for public API
|
|
3
|
+
*/
|
|
4
|
+
// Module
|
|
5
|
+
export * from './base-components.module';
|
|
6
|
+
// Components
|
|
7
|
+
export * from './components/input/input.component';
|
|
8
|
+
export * from './components/select/select.component';
|
|
9
|
+
export * from './components/checkbox/checkbox.component';
|
|
10
|
+
export * from './components/textarea/textarea.component';
|
|
11
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25nLWJhc2UvYmFzZS1jb21wb25lbnRzL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxTQUFTO0FBQ1QsY0FBYywwQkFBMEIsQ0FBQztBQUV6QyxhQUFhO0FBQ2IsY0FBYyxvQ0FBb0MsQ0FBQztBQUNuRCxjQUFjLHNDQUFzQyxDQUFDO0FBQ3JELGNBQWMsMENBQTBDLENBQUM7QUFDekQsY0FBYywwQ0FBMEMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogRXhwb3J0cyBmb3IgcHVibGljIEFQSVxuICovXG5cbi8vIE1vZHVsZVxuZXhwb3J0ICogZnJvbSAnLi9iYXNlLWNvbXBvbmVudHMubW9kdWxlJztcblxuLy8gQ29tcG9uZW50c1xuZXhwb3J0ICogZnJvbSAnLi9jb21wb25lbnRzL2lucHV0L2lucHV0LmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2NvbXBvbmVudHMvc2VsZWN0L3NlbGVjdC5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9jb21wb25lbnRzL2NoZWNrYm94L2NoZWNrYm94LmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2NvbXBvbmVudHMvdGV4dGFyZWEvdGV4dGFyZWEuY29tcG9uZW50JztcbiJdfQ==
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
import { RouterModule } from '@angular/router';
|
|
5
|
+
import { LoginComponent } from './pages/login/login.component';
|
|
6
|
+
import { RegisterComponent } from './pages/register/register.component';
|
|
7
|
+
import { BaseComponentsModule } from '@lenne.tech/ng-base/base-components';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
// Modules
|
|
10
|
+
const imports = [FormsModule, RouterModule, ReactiveFormsModule, CommonModule, BaseComponentsModule];
|
|
11
|
+
// Imported and exported elements
|
|
12
|
+
const elements = [
|
|
13
|
+
// Components
|
|
14
|
+
LoginComponent,
|
|
15
|
+
RegisterComponent,
|
|
16
|
+
];
|
|
17
|
+
export class BasePrototypeModule {
|
|
18
|
+
}
|
|
19
|
+
BasePrototypeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: BasePrototypeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
20
|
+
BasePrototypeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: BasePrototypeModule, declarations: [
|
|
21
|
+
// Components
|
|
22
|
+
LoginComponent,
|
|
23
|
+
RegisterComponent], imports: [FormsModule, RouterModule, ReactiveFormsModule, CommonModule, BaseComponentsModule], exports: [
|
|
24
|
+
// Components
|
|
25
|
+
LoginComponent,
|
|
26
|
+
RegisterComponent] });
|
|
27
|
+
BasePrototypeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: BasePrototypeModule, imports: [imports] });
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: BasePrototypeModule, decorators: [{
|
|
29
|
+
type: NgModule,
|
|
30
|
+
args: [{
|
|
31
|
+
declarations: elements,
|
|
32
|
+
imports,
|
|
33
|
+
exports: elements,
|
|
34
|
+
}]
|
|
35
|
+
}] });
|
|
36
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS1wcm90b3R5cGUubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvbmctYmFzZS9iYXNlLXByb3RvdHlwZS9iYXNlLXByb3RvdHlwZS5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsV0FBVyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDbEUsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUUvQyxPQUFPLEVBQUUsY0FB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gJ0Bhbmd1bGFyL3JvdXRlcic7XG5cbmltcG9ydCB7IExvZ2luQ29tcG9uZW50IH0gZnJvbSAnLi9wYWdlcy9sb2dpbi9sb2dpbi5jb21wb25lbnQnO1xuaW1wb3J0IHsgUmVnaXN0ZXJDb21wb25lbnQgfSBmcm9tICcuL3BhZ2VzL3JlZ2lzdGVyL3JlZ2lzdGVyLmNvbXBvbmVudCc7XG5pbXBvcnQgeyBCYXNlQ29tcG9uZW50c01vZHVsZSB9IGZyb20gJ0BsZW5uZS50ZWNoL25nLWJhc2UvYmFzZS1jb21wb25lbnRzJztcblxuLy8gTW9kdWxlc1xuY29uc3QgaW1wb3J0cyA9IFtGb3Jtc01vZHVsZSwgUm91dGVyTW9kdWxlLCBSZWFjdGl2ZUZvcm1zTW9kdWxlLCBDb21tb25Nb2R1bGUsIEJhc2VDb21wb25lbnRzTW9kdWxlXTtcblxuLy8gSW1wb3J0ZWQgYW5kIGV4cG9ydGVkIGVsZW1lbnRzXG5jb25zdCBlbGVtZW50cyA9IFtcbiAgLy8gQ29tcG9uZW50c1xuICBMb2dpbkNvbXBvbmVudCxcbiAgUmVnaXN0ZXJDb21wb25lbnQsXG5dO1xuXG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IGVsZW1lbnRzLFxuICBpbXBvcnRzLFxuICBleHBvcnRzOiBlbGVtZW50cyxcbn0pXG5leHBvcnQgY2xhc3MgQmFzZVByb3RvdHlwZU1vZHVsZSB7fVxuIl19
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public-api';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGVubmUudGVjaC1uZy1iYXNlLWJhc2UtcHJvdG90eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvbmctYmFzZS9iYXNlLXByb3RvdHlwZS9sZW5uZS50ZWNoLW5nLWJhc2UtYmFzZS1wcm90b3R5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
|
|
@@ -0,0 +1,39 @@
|
|
|
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 LoginComponent {
|
|
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
|
+
password: new FormControl('', Validators.required),
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Submit login form
|
|
25
|
+
*/
|
|
26
|
+
submit() {
|
|
27
|
+
if (this.form.invalid) {
|
|
28
|
+
this.formsService.validateAllFormFields(this.form);
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
LoginComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: LoginComponent, deps: [{ token: i1.FormsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
34
|
+
LoginComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.3", type: LoginComponent, selector: "base-login", 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 <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", styles: [".login-container{width:100%;padding:20px 0}@media (min-width: 768px){.login-container{max-width:400px}}\n"], 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"] }] });
|
|
35
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: LoginComponent, decorators: [{
|
|
36
|
+
type: Component,
|
|
37
|
+
args: [{ selector: 'base-login', 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 <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", styles: [".login-container{width:100%;padding:20px 0}@media (min-width: 768px){.login-container{max-width:400px}}\n"] }]
|
|
38
|
+
}], ctorParameters: function () { return [{ type: i1.FormsService }]; } });
|
|
39
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9naW4uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmctYmFzZS9iYXNlLXByb3RvdHlwZS9wYWdlcy9sb2dpbi9sb2dpbi5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZy1iYXNlL2Jhc2UtcHJvdG90eXBlL3BhZ2VzL2xvZ2luL2xvZ2luLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFDbEQsT0FBTyxFQUFFLFdBQVcsRUFBRSxTQUFTLEVBQUUsVUFBVSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7Ozs7O0FBUXBFLE1BQU0sT0FBTyxjQUFjO0lBR3pCLFlBQW9CLFlBQTBCO1FBQTFCLGlCQUFZLEdBQVosWUFBWSxDQUFjO0lBQUcsQ0FBQztJQUVsRCxRQUFRO1FBQ04sSUFBSSxDQUFDLFVBQVUsRUFBRSxDQUFDO0lBQ3BCLENBQUM7SUFFRDs7T0FFRztJQUNILFVBQVU7UUFDUixJQUFJLENBQUMsSUFBSSxHQUFHLElBQUksU0FBUyxDQUFDO1lBQ3hCLEt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