@kms-ngx-ui/presentational 0.0.19 → 0.0.21

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.
Files changed (98) hide show
  1. package/bundles/kms-ngx-ui-presentational.umd.js +1645 -1270
  2. package/bundles/kms-ngx-ui-presentational.umd.js.map +1 -1
  3. package/esm2015/kms-ngx-ui-presentational.js +1 -37
  4. package/esm2015/lib/directives/directives.module.js +29 -18
  5. package/esm2015/lib/directives/mousewheel.directive.js +21 -11
  6. package/esm2015/lib/directives/sum-of-height.directive.js +18 -15
  7. package/esm2015/lib/directives/swipe.directive.js +38 -14
  8. package/esm2015/lib/directives/tooltip.directive.js +44 -24
  9. package/esm2015/lib/kms-ngx-ui-presentational.component.js +17 -9
  10. package/esm2015/lib/kms-ngx-ui-presentational.module.js +169 -80
  11. package/esm2015/lib/kms-ngx-ui-presentational.service.js +9 -8
  12. package/esm2015/lib/parent-components/actions.component.js +23 -15
  13. package/esm2015/lib/parent-components/form-control.component.js +20 -18
  14. package/esm2015/lib/parent-components/form.component.js +16 -15
  15. package/esm2015/lib/pipes/custom-pipes.module.js +54 -31
  16. package/esm2015/lib/pipes/decode-uri.pipe.js +10 -6
  17. package/esm2015/lib/pipes/encode-uri.pipe.js +10 -6
  18. package/esm2015/lib/pipes/integer-currency.pipe.js +11 -13
  19. package/esm2015/lib/pipes/safe-html.pipe.js +11 -10
  20. package/esm2015/lib/pipes/safe-resource-url.pipe.js +11 -10
  21. package/esm2015/lib/pipes/safe-style.pipe.js +11 -10
  22. package/esm2015/lib/pipes/safe-url.pipe.js +11 -10
  23. package/esm2015/lib/pipes/to-number.pipe.js +11 -7
  24. package/esm2015/lib/pipes/trim.pipe.js +8 -4
  25. package/esm2015/lib/pipes/typeof.pipe.js +10 -6
  26. package/esm2015/lib/services/viewport.service.js +10 -7
  27. package/esm2015/lib/ui/back-to-top/back-to-top.component.js +19 -13
  28. package/esm2015/lib/ui/button-with-confirm-dialog/button-with-confirm-dialog.component.js +26 -20
  29. package/esm2015/lib/ui/checkbox/checkbox.component.js +34 -21
  30. package/esm2015/lib/ui/color-input/color-input.component.js +38 -26
  31. package/esm2015/lib/ui/dropdown-from-data/dropdown-from-data.component.js +53 -33
  32. package/esm2015/lib/ui/enum-radiogroup/enum-radiogroup.component.js +36 -25
  33. package/esm2015/lib/ui/file-input/file-input.component.js +61 -39
  34. package/esm2015/lib/ui/flyout/flyout.component.js +83 -43
  35. package/esm2015/lib/ui/generic-dialog/generic-dialog.component.js +19 -15
  36. package/esm2015/lib/ui/icon/icon.component.js +24 -19
  37. package/esm2015/lib/ui/image-slider/image-slider.component.js +37 -22
  38. package/esm2015/lib/ui/kms-accordion-item/kms-accordion-item.component.js +25 -17
  39. package/esm2015/lib/ui/loader/loader.component.js +16 -12
  40. package/esm2015/lib/ui/map/map.component.js +17 -15
  41. package/esm2015/lib/ui/radiobutton/radiobutton.component.js +33 -21
  42. package/esm2015/lib/ui/salutation-dropdown/salutation-dropdown.component.js +33 -23
  43. package/esm2015/lib/ui/salutation-radiogroup/salutation-radiogroup.component.js +29 -20
  44. package/esm2015/lib/ui/time-input/time-input.component.js +27 -19
  45. package/esm2015/lib/ui/tooltip/tooltip.component.js +14 -11
  46. package/esm2015/lib/ui/tooltip-icon/tooltip-icon.component.js +26 -16
  47. package/esm2015/lib/ui/yes-no-radiogroup/yes-no-radiogroup.component.js +39 -27
  48. package/esm2015/public-api.js +36 -3
  49. package/fesm2015/kms-ngx-ui-presentational.js +1592 -1222
  50. package/fesm2015/kms-ngx-ui-presentational.js.map +1 -1
  51. package/kms-ngx-ui-presentational.d.ts +1 -37
  52. package/lib/directives/directives.module.d.ts +9 -3
  53. package/lib/directives/mousewheel.directive.d.ts +3 -0
  54. package/lib/directives/sum-of-height.directive.d.ts +3 -0
  55. package/lib/directives/swipe.directive.d.ts +3 -0
  56. package/lib/directives/tooltip.directive.d.ts +3 -0
  57. package/lib/kms-ngx-ui-presentational.component.d.ts +3 -0
  58. package/lib/kms-ngx-ui-presentational.module.d.ts +44 -0
  59. package/lib/kms-ngx-ui-presentational.service.d.ts +3 -0
  60. package/lib/parent-components/actions.component.d.ts +3 -0
  61. package/lib/parent-components/form-control.component.d.ts +3 -0
  62. package/lib/parent-components/form.component.d.ts +3 -0
  63. package/lib/pipes/custom-pipes.module.d.ts +15 -3
  64. package/lib/pipes/decode-uri.pipe.d.ts +3 -0
  65. package/lib/pipes/encode-uri.pipe.d.ts +3 -0
  66. package/lib/pipes/integer-currency.pipe.d.ts +3 -0
  67. package/lib/pipes/safe-html.pipe.d.ts +3 -0
  68. package/lib/pipes/safe-resource-url.pipe.d.ts +3 -0
  69. package/lib/pipes/safe-style.pipe.d.ts +3 -0
  70. package/lib/pipes/safe-url.pipe.d.ts +3 -0
  71. package/lib/pipes/to-number.pipe.d.ts +3 -0
  72. package/lib/pipes/trim.pipe.d.ts +3 -0
  73. package/lib/pipes/typeof.pipe.d.ts +3 -0
  74. package/lib/services/viewport.service.d.ts +3 -3
  75. package/lib/ui/back-to-top/back-to-top.component.d.ts +3 -3
  76. package/lib/ui/button-with-confirm-dialog/button-with-confirm-dialog.component.d.ts +3 -0
  77. package/lib/ui/checkbox/checkbox.component.d.ts +3 -0
  78. package/lib/ui/color-input/color-input.component.d.ts +3 -0
  79. package/lib/ui/dropdown-from-data/dropdown-from-data.component.d.ts +3 -0
  80. package/lib/ui/enum-radiogroup/enum-radiogroup.component.d.ts +3 -0
  81. package/lib/ui/file-input/file-input.component.d.ts +3 -0
  82. package/lib/ui/flyout/flyout.component.d.ts +3 -3
  83. package/lib/ui/generic-dialog/generic-dialog.component.d.ts +3 -0
  84. package/lib/ui/icon/icon.component.d.ts +3 -0
  85. package/lib/ui/image-slider/image-slider.component.d.ts +3 -0
  86. package/lib/ui/kms-accordion-item/kms-accordion-item.component.d.ts +4 -0
  87. package/lib/ui/loader/loader.component.d.ts +3 -0
  88. package/lib/ui/map/map.component.d.ts +3 -0
  89. package/lib/ui/radiobutton/radiobutton.component.d.ts +3 -0
  90. package/lib/ui/salutation-dropdown/salutation-dropdown.component.d.ts +3 -0
  91. package/lib/ui/salutation-radiogroup/salutation-radiogroup.component.d.ts +3 -0
  92. package/lib/ui/time-input/time-input.component.d.ts +3 -0
  93. package/lib/ui/tooltip/tooltip.component.d.ts +3 -0
  94. package/lib/ui/tooltip-icon/tooltip-icon.component.d.ts +3 -0
  95. package/lib/ui/yes-no-radiogroup/yes-no-radiogroup.component.d.ts +3 -0
  96. package/package.json +1 -2
  97. package/public-api.d.ts +35 -0
  98. package/kms-ngx-ui-presentational.metadata.json +0 -1
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@angular/material/checkbox'), require('@angular/material/radio'), require('@angular/animations'), require('@angular/platform-browser'), require('rxjs'), require('@angular/material/dialog'), require('subsink'), require('@angular/google-maps'), require('@angular/material/button'), require('@angular/material/expansion'), require('@angular/material/select'), require('@angular/material/menu'), require('enum-values/src/enumValues'), require('@angular/cdk/drag-drop'), require('@ngx-translate/core'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/material/progress-spinner'), require('ngx-useful-swiper')) :
3
- typeof define === 'function' && define.amd ? define('@kms-ngx-ui/presentational', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/material/checkbox', '@angular/material/radio', '@angular/animations', '@angular/platform-browser', 'rxjs', '@angular/material/dialog', 'subsink', '@angular/google-maps', '@angular/material/button', '@angular/material/expansion', '@angular/material/select', '@angular/material/menu', 'enum-values/src/enumValues', '@angular/cdk/drag-drop', '@ngx-translate/core', '@angular/material/form-field', '@angular/material/input', '@angular/material/progress-spinner', 'ngx-useful-swiper'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["kms-ngx-ui"] = global["kms-ngx-ui"] || {}, global["kms-ngx-ui"].presentational = {}), global.ng.core, global.ng.common, global.ng.forms, global.ng.material.checkbox, global.ng.material.radio, global.ng.animations, global.ng.platformBrowser, global.rxjs, global.ng.material.dialog, global.subsink, global.ng.googleMaps, global.ng.material.button, global.ng.material.expansion, global.ng.material.select, global.ng.material.menu, global.enumValues, global.ng.cdk.dragDrop, global.core, global.ng.material.formField, global.ng.material.input, global.ng.material.progressSpinner, global.ngxUsefulSwiper));
5
- })(this, (function (exports, i0, common, forms, checkbox, radio, animations, platformBrowser, rxjs, dialog, subsink, googleMaps, button, expansion, select, menu, enumValues, dragDrop, core, formField, input, progressSpinner, ngxUsefulSwiper) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@angular/material/checkbox'), require('@angular/material/radio'), require('@angular/material/form-field'), require('@angular/platform-browser'), require('@angular/material/input'), require('@angular/material/button'), require('@ngx-translate/core'), require('@angular/material/progress-spinner'), require('@angular/animations'), require('@angular/material/expansion'), require('rxjs'), require('@angular/google-maps'), require('@angular/material/select'), require('@angular/material/core'), require('subsink'), require('@angular/material/dialog'), require('@angular/material/menu'), require('enum-values/src/enumValues'), require('@angular/cdk/drag-drop'), require('ngx-useful-swiper')) :
3
+ typeof define === 'function' && define.amd ? define('@kms-ngx-ui/presentational', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/material/checkbox', '@angular/material/radio', '@angular/material/form-field', '@angular/platform-browser', '@angular/material/input', '@angular/material/button', '@ngx-translate/core', '@angular/material/progress-spinner', '@angular/animations', '@angular/material/expansion', 'rxjs', '@angular/google-maps', '@angular/material/select', '@angular/material/core', 'subsink', '@angular/material/dialog', '@angular/material/menu', 'enum-values/src/enumValues', '@angular/cdk/drag-drop', 'ngx-useful-swiper'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["kms-ngx-ui"] = global["kms-ngx-ui"] || {}, global["kms-ngx-ui"].presentational = {}), global.ng.core, global.ng.common, global.ng.forms, global.ng.material.checkbox, global.ng.material.radio, global.ng.material.formField, global.ng.platformBrowser, global.ng.material.input, global.ng.material.button, global.i5$1, global.ng.material.progressSpinner, global.ng.animations, global.ng.material.expansion, global.rxjs, global.ng.googleMaps, global.ng.material.select, global.ng.material.core, global.subsink, global.ng.material.dialog, global.ng.material.menu, global.enumValues, global.ng.cdk.dragDrop, global.i2$6));
5
+ })(this, (function (exports, i0, i2, i1, i1$1, i2$2, i2$1, i1$2, i5, i2$3, i5$1, i1$3, animations, i2$4, rxjs, i2$5, i3, i4, subsink, i1$4, i3$1, enumValues, dragDrop, i2$6) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -23,19 +23,37 @@
23
23
  }
24
24
 
25
25
  var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
+ var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
27
+ var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1);
28
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1$1);
29
+ var i2__namespace$2 = /*#__PURE__*/_interopNamespace(i2$2);
30
+ var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
31
+ var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
32
+ var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
33
+ var i2__namespace$3 = /*#__PURE__*/_interopNamespace(i2$3);
34
+ var i5__namespace$1 = /*#__PURE__*/_interopNamespace(i5$1);
35
+ var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$3);
36
+ var i2__namespace$4 = /*#__PURE__*/_interopNamespace(i2$4);
37
+ var i2__namespace$5 = /*#__PURE__*/_interopNamespace(i2$5);
38
+ var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
39
+ var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
40
+ var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
41
+ var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
42
+ var i2__namespace$6 = /*#__PURE__*/_interopNamespace(i2$6);
26
43
 
27
44
  var KmsUiPresentationalService = /** @class */ (function () {
28
45
  function KmsUiPresentationalService() {
29
46
  }
30
47
  return KmsUiPresentationalService;
31
48
  }());
32
- KmsUiPresentationalService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function KmsUiPresentationalService_Factory() { return new KmsUiPresentationalService(); }, token: KmsUiPresentationalService, providedIn: "root" });
33
- KmsUiPresentationalService.decorators = [
34
- { type: i0.Injectable, args: [{
35
- providedIn: 'root'
36
- },] }
37
- ];
38
- KmsUiPresentationalService.ctorParameters = function () { return []; };
49
+ KmsUiPresentationalService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KmsUiPresentationalService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
50
+ KmsUiPresentationalService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KmsUiPresentationalService, providedIn: 'root' });
51
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KmsUiPresentationalService, decorators: [{
52
+ type: i0.Injectable,
53
+ args: [{
54
+ providedIn: 'root'
55
+ }]
56
+ }], ctorParameters: function () { return []; } });
39
57
 
40
58
  var KmsUiPresentationalComponent = /** @class */ (function () {
41
59
  function KmsUiPresentationalComponent() {
@@ -44,13 +62,16 @@
44
62
  };
45
63
  return KmsUiPresentationalComponent;
46
64
  }());
47
- KmsUiPresentationalComponent.decorators = [
48
- { type: i0.Component, args: [{
49
- selector: 'lib-kms-ngx-ui-presentational',
50
- template: "\n <p>\n kms-ngx-ui-presentational works!\n </p>\n "
51
- },] }
52
- ];
53
- KmsUiPresentationalComponent.ctorParameters = function () { return []; };
65
+ KmsUiPresentationalComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KmsUiPresentationalComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
66
+ KmsUiPresentationalComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: KmsUiPresentationalComponent, selector: "lib-kms-ngx-ui-presentational", ngImport: i0__namespace, template: "\n <p>\n kms-ngx-ui-presentational works!\n </p>\n ", isInline: true });
67
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KmsUiPresentationalComponent, decorators: [{
68
+ type: i0.Component,
69
+ args: [{
70
+ selector: 'lib-kms-ngx-ui-presentational',
71
+ template: "\n <p>\n kms-ngx-ui-presentational works!\n </p>\n ",
72
+ styles: []
73
+ }]
74
+ }], ctorParameters: function () { return []; } });
54
75
 
55
76
  /*!
56
77
  * @copyright FLYACTS GmbH 2019
@@ -85,20 +106,27 @@
85
106
  };
86
107
  return ActionsParentComponent;
87
108
  }());
88
- ActionsParentComponent.decorators = [
89
- { type: i0.Component, args: [{
90
- selector: 'kms-actions',
91
- template: ''
92
- },] }
93
- ];
94
- ActionsParentComponent.propDecorators = {
95
- disabled: [{ type: i0.Input }],
96
- checked: [{ type: i0.Input }],
97
- label: [{ type: i0.Input }],
98
- link: [{ type: i0.Input }],
99
- initialValue: [{ type: i0.Input }],
100
- select: [{ type: i0.Output }]
101
- };
109
+ ActionsParentComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ActionsParentComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
110
+ ActionsParentComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ActionsParentComponent, selector: "kms-actions", inputs: { disabled: "disabled", checked: "checked", label: "label", link: "link", initialValue: "initialValue" }, outputs: { select: "select" }, ngImport: i0__namespace, template: '', isInline: true });
111
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ActionsParentComponent, decorators: [{
112
+ type: i0.Component,
113
+ args: [{
114
+ selector: 'kms-actions',
115
+ template: '',
116
+ }]
117
+ }], propDecorators: { disabled: [{
118
+ type: i0.Input
119
+ }], checked: [{
120
+ type: i0.Input
121
+ }], label: [{
122
+ type: i0.Input
123
+ }], link: [{
124
+ type: i0.Input
125
+ }], initialValue: [{
126
+ type: i0.Input
127
+ }], select: [{
128
+ type: i0.Output
129
+ }] } });
102
130
 
103
131
  /******************************************************************************
104
132
  Copyright (c) Microsoft Corporation.
@@ -470,26 +498,35 @@
470
498
  };
471
499
  return CheckboxComponent;
472
500
  }(ActionsParentComponent));
473
- CheckboxComponent.decorators = [
474
- { type: i0.Component, args: [{
475
- selector: 'kms-checkbox',
476
- template: "<!-- <label class=\"wrapper ui-copy-text\"\r\n [ngClass]=\"{'disabled' : disabled}\">{{label}}\r\n <input type=\"checkbox\" \r\n [checked]=\"checked\"\r\n [value]=\"value\"\r\n [name]=\"name\"\r\n [disabled]=\"disabled\"\r\n (change)=\"selectAction($event)\">\r\n\r\n</label> -->\r\n<mat-checkbox class=\"example-margin\" [disabled]=\"disabled\" [name]=\"name\" [(ngModel)]=\"checked\"></mat-checkbox>\r\n<span *ngIf=\"infoText && infoText.length > 0\" \r\n class=\"\"\r\n [ngClass]=\"{'disabled' : disabled}\">{{infoText}}\r\n</span>",
477
- providers: [
478
- {
479
- provide: forms.NG_VALUE_ACCESSOR,
480
- useExisting: i0.forwardRef(function () { return CheckboxComponent; }),
481
- multi: true,
482
- },
483
- ],
484
- styles: [""]
485
- },] }
486
- ];
487
- CheckboxComponent.ctorParameters = function () { return []; };
488
- CheckboxComponent.propDecorators = {
489
- infoText: [{ type: i0.Input }],
490
- name: [{ type: i0.Input }],
491
- select: [{ type: i0.Output }]
492
- };
501
+ CheckboxComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CheckboxComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
502
+ CheckboxComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: CheckboxComponent, selector: "kms-checkbox", inputs: { infoText: "infoText", name: "name" }, outputs: { select: "select" }, providers: [
503
+ {
504
+ provide: i1.NG_VALUE_ACCESSOR,
505
+ useExisting: i0.forwardRef(function () { return CheckboxComponent; }),
506
+ multi: true,
507
+ },
508
+ ], usesInheritance: true, ngImport: i0__namespace, template: "<!-- <label class=\"wrapper ui-copy-text\"\r\n [ngClass]=\"{'disabled' : disabled}\">{{label}}\r\n <input type=\"checkbox\" \r\n [checked]=\"checked\"\r\n [value]=\"value\"\r\n [name]=\"name\"\r\n [disabled]=\"disabled\"\r\n (change)=\"selectAction($event)\">\r\n\r\n</label> -->\r\n<mat-checkbox class=\"example-margin\" [disabled]=\"disabled\" [name]=\"name\" [(ngModel)]=\"checked\"></mat-checkbox>\r\n<span *ngIf=\"infoText && infoText.length > 0\" \r\n class=\"\"\r\n [ngClass]=\"{'disabled' : disabled}\">{{infoText}}\r\n</span>", styles: [""], components: [{ type: i1__namespace.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex", "aria-label", "aria-labelledby", "id", "labelPosition", "name", "required", "checked", "disabled", "indeterminate", "aria-describedby", "value"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }], directives: [{ type: i1__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
509
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CheckboxComponent, decorators: [{
510
+ type: i0.Component,
511
+ args: [{
512
+ selector: 'kms-checkbox',
513
+ templateUrl: './checkbox.component.html',
514
+ styleUrls: ['./checkbox.component.scss'],
515
+ providers: [
516
+ {
517
+ provide: i1.NG_VALUE_ACCESSOR,
518
+ useExisting: i0.forwardRef(function () { return CheckboxComponent; }),
519
+ multi: true,
520
+ },
521
+ ],
522
+ }]
523
+ }], ctorParameters: function () { return []; }, propDecorators: { infoText: [{
524
+ type: i0.Input
525
+ }], name: [{
526
+ type: i0.Input
527
+ }], select: [{
528
+ type: i0.Output
529
+ }] } });
493
530
 
494
531
  /*!
495
532
  * @copyright FLYACTS GmbH 2019
@@ -557,19 +594,19 @@
557
594
  };
558
595
  return FormParentComponent;
559
596
  }());
560
- FormParentComponent.decorators = [
561
- { type: i0.Component, args: [{
562
- selector: 'kms-form',
563
- template: ''
564
- },] }
565
- ];
566
- FormParentComponent.ctorParameters = function () { return [
567
- { type: forms.FormBuilder }
568
- ]; };
569
- FormParentComponent.propDecorators = {
570
- formDataChanged: [{ type: i0.Output }],
571
- disabled: [{ type: i0.Input }]
572
- };
597
+ FormParentComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FormParentComponent, deps: [{ token: i1__namespace$1.FormBuilder }], target: i0__namespace.ɵɵFactoryTarget.Component });
598
+ FormParentComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FormParentComponent, selector: "kms-form", inputs: { disabled: "disabled" }, outputs: { formDataChanged: "formDataChanged" }, ngImport: i0__namespace, template: '', isInline: true });
599
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FormParentComponent, decorators: [{
600
+ type: i0.Component,
601
+ args: [{
602
+ selector: 'kms-form',
603
+ template: '',
604
+ }]
605
+ }], ctorParameters: function () { return [{ type: i1__namespace$1.FormBuilder }]; }, propDecorators: { formDataChanged: [{
606
+ type: i0.Output
607
+ }], disabled: [{
608
+ type: i0.Input
609
+ }] } });
573
610
 
574
611
  var FormControlParentComponent = /** @class */ (function (_super) {
575
612
  __extends(FormControlParentComponent, _super);
@@ -632,21 +669,308 @@
632
669
  };
633
670
  return FormControlParentComponent;
634
671
  }(FormParentComponent));
635
- FormControlParentComponent.decorators = [
636
- { type: i0.Component, args: [{
637
- selector: 'kms-formControlParent',
638
- template: ''
639
- },] }
640
- ];
641
- FormControlParentComponent.ctorParameters = function () { return [
642
- { type: forms.FormBuilder },
643
- { type: i0.Renderer2 }
644
- ]; };
645
- FormControlParentComponent.propDecorators = {
646
- defaultDataOverride: [{ type: i0.Input }],
647
- onSelectItemEmitter: [{ type: i0.Output }],
648
- child: [{ type: i0.ViewChild, args: ['child',] }]
649
- };
672
+ FormControlParentComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FormControlParentComponent, deps: [{ token: i1__namespace$1.FormBuilder }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Component });
673
+ FormControlParentComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FormControlParentComponent, selector: "kms-formControlParent", inputs: { defaultDataOverride: "defaultDataOverride" }, outputs: { onSelectItemEmitter: "onSelectItemEmitter" }, viewQueries: [{ propertyName: "child", first: true, predicate: ["child"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: '', isInline: true });
674
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FormControlParentComponent, decorators: [{
675
+ type: i0.Component,
676
+ args: [{
677
+ selector: 'kms-formControlParent',
678
+ template: '',
679
+ }]
680
+ }], ctorParameters: function () { return [{ type: i1__namespace$1.FormBuilder }, { type: i0__namespace.Renderer2 }]; }, propDecorators: { defaultDataOverride: [{
681
+ type: i0.Input
682
+ }], onSelectItemEmitter: [{
683
+ type: i0.Output
684
+ }], child: [{
685
+ type: i0.ViewChild,
686
+ args: ['child']
687
+ }] } });
688
+
689
+ /**
690
+ * Attached File DTO
691
+ */
692
+ var AttachedFileDTO = /** @class */ (function () {
693
+ function AttachedFileDTO() {
694
+ }
695
+ return AttachedFileDTO;
696
+ }());
697
+
698
+ /*!
699
+ * @copyright FLYACTS GmbH 2019
700
+ */
701
+ exports.IconSize = void 0;
702
+ (function (IconSize) {
703
+ IconSize["FULLSIZE"] = "size-full";
704
+ IconSize["TINY"] = "size-16";
705
+ IconSize["SMALLER"] = "size-20";
706
+ IconSize["SMALL"] = "size-32";
707
+ IconSize["MEDIUM"] = "size-64";
708
+ IconSize["LARGE"] = "size-128";
709
+ IconSize["XL"] = "size-256";
710
+ IconSize["XXL"] = "size-512";
711
+ IconSize["XXXL"] = "size-1024";
712
+ IconSize["NONE"] = "NONE";
713
+ })(exports.IconSize || (exports.IconSize = {}));
714
+
715
+ /**
716
+ * @copyright FLYACTS GmbH 2019
717
+ */
718
+ /**
719
+ * Check if null or undefined
720
+ * @param value value that is being checked
721
+ */
722
+ function isValue(value) {
723
+ if (value === null) {
724
+ return false;
725
+ }
726
+ if (typeof value === 'undefined') {
727
+ return false;
728
+ }
729
+ return true;
730
+ }
731
+
732
+ /*!
733
+ * @copyright FLYACTS GmbH 2019
734
+ */
735
+ var IconSize;
736
+ (function (IconSize) {
737
+ IconSize["FULLSIZE"] = "size-full";
738
+ IconSize["TINY"] = "size-16";
739
+ IconSize["SMALLER"] = "size-20";
740
+ IconSize["SMALL"] = "size-32";
741
+ IconSize["MEDIUM"] = "size-64";
742
+ IconSize["LARGE"] = "size-128";
743
+ IconSize["XL"] = "size-256";
744
+ IconSize["XXL"] = "size-512";
745
+ IconSize["XXXL"] = "size-1024";
746
+ IconSize["NONE"] = "NONE";
747
+ })(IconSize || (IconSize = {}));
748
+
749
+ /**
750
+ * @copyright KMS GmbH
751
+ */
752
+ var IconComponent = /** @class */ (function () {
753
+ function IconComponent(sanitizer) {
754
+ this.sanitizer = sanitizer;
755
+ /**
756
+ * Optional: Different size via CSS inline style.
757
+ */
758
+ this.iconSize = IconSize.FULLSIZE;
759
+ /**
760
+ * Dont use icon sprite
761
+ */
762
+ this.dontUseSprite = false;
763
+ this.IconSize = IconSize;
764
+ this.Version = i0.VERSION.full;
765
+ this.timestamp = 0;
766
+ this.iconToShow = this.icon;
767
+ }
768
+ IconComponent.prototype.ngOnInit = function () {
769
+ this.iconToShow = this.icon;
770
+ var d = new Date();
771
+ var n = d.getTime();
772
+ this.timestamp = n;
773
+ };
774
+ return IconComponent;
775
+ }());
776
+ IconComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IconComponent, deps: [{ token: i1__namespace$2.DomSanitizer }], target: i0__namespace.ɵɵFactoryTarget.Component });
777
+ IconComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: IconComponent, selector: "kms-icon", inputs: { icon: "icon", iconClass: "iconClass", iconStyle: "iconStyle", iconSize: "iconSize", dontUseSprite: "dontUseSprite" }, ngImport: i0__namespace, template: "<ng-container *ngIf=\"icon !== 'none' && dontUseSprite === false\">\r\n <span class=\"icon {{ iconSize }}\" [ngClass]=\"iconClass\" [ngStyle]=\"iconStyle\">\r\n <svg>\r\n <use\r\n [attr.xlink:href]=\"\r\n 'assets/sprite.svg?Version=' + Version + '#' + iconToShow\r\n \"\r\n ></use>\r\n </svg>\r\n </span>\r\n</ng-container>\r\n<ng-container *ngIf=\"icon !== 'none' && dontUseSprite === true\">\r\n <object\r\n [data]=\"\r\n sanitizer.bypassSecurityTrustResourceUrl('assets/icons/' + icon + '')\r\n \"\r\n type=\"image/svg+xml\"\r\n class=\"icon {{ iconSize }}\"\r\n [ngClass]=\"iconClass\"\r\n [ngStyle]=\"iconStyle\"\r\n ></object>\r\n</ng-container>\r\n", styles: [""], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
778
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IconComponent, decorators: [{
779
+ type: i0.Component,
780
+ args: [{
781
+ selector: 'kms-icon',
782
+ templateUrl: './icon.component.html',
783
+ styleUrls: ['./icon.component.scss'],
784
+ }]
785
+ }], ctorParameters: function () { return [{ type: i1__namespace$2.DomSanitizer }]; }, propDecorators: { icon: [{
786
+ type: i0.Input
787
+ }], iconClass: [{
788
+ type: i0.Input
789
+ }], iconStyle: [{
790
+ type: i0.Input
791
+ }], iconSize: [{
792
+ type: i0.Input
793
+ }], dontUseSprite: [{
794
+ type: i0.Input
795
+ }] } });
796
+
797
+ var TooltipDirective = /** @class */ (function () {
798
+ function TooltipDirective(el, renderer) {
799
+ this.el = el;
800
+ this.renderer = renderer;
801
+ this.tooltipTitle = "";
802
+ this.tooltipText = "";
803
+ this.tooltipLinkText = "";
804
+ this.tooltipLinkUrl = "";
805
+ this.tooltipPlacement = "bottom";
806
+ this.tooltipDelay = 1000;
807
+ this.tooltipPlaceIntoHost = false;
808
+ this.tooltipOnlyonclick = false;
809
+ this.offset = 0;
810
+ }
811
+ TooltipDirective.prototype.onMouseEnter = function () {
812
+ if (!this.tooltipOnlyonclick) {
813
+ this.show();
814
+ }
815
+ };
816
+ TooltipDirective.prototype.onClick = function () {
817
+ if (this.tooltipOnlyonclick) {
818
+ this.show();
819
+ }
820
+ };
821
+ TooltipDirective.prototype.onMouseLeave = function () {
822
+ if (this.tooltipElem) {
823
+ this.hide();
824
+ }
825
+ };
826
+ TooltipDirective.prototype.show = function () {
827
+ if (!this.tooltipElem) {
828
+ this.create();
829
+ this.setPosition();
830
+ }
831
+ this.renderer.addClass(this.tooltipElem, 'tooltip-show');
832
+ };
833
+ TooltipDirective.prototype.hide = function () {
834
+ this.renderer.removeClass(this.tooltipElem, 'tooltip-show');
835
+ window.setTimeout(function () {
836
+ }, this.tooltipDelay);
837
+ };
838
+ TooltipDirective.prototype.create = function () {
839
+ this.tooltipElem = this.renderer.createElement('kms-tooltip-element');
840
+ this.tooltipTitleElem = this.renderer.createElement('b');
841
+ this.renderer.appendChild(this.tooltipTitleElem, this.renderer.createText(this.tooltipTitle));
842
+ this.renderer.appendChild(this.tooltipElem, this.tooltipTitleElem);
843
+ this.tooltipTextElem = this.renderer.createElement('div');
844
+ this.renderer.appendChild(this.tooltipTextElem, this.renderer.createText(this.tooltipText));
845
+ this.renderer.appendChild(this.tooltipElem, this.tooltipTextElem);
846
+ this.tooltipLinkElem = this.renderer.createElement('a');
847
+ this.renderer.setAttribute(this.tooltipLinkElem, 'href', this.tooltipLinkUrl);
848
+ this.renderer.appendChild(this.tooltipLinkElem, this.renderer.createText(this.tooltipLinkText));
849
+ this.renderer.appendChild(this.tooltipElem, this.tooltipLinkElem);
850
+ if (this.tooltipPlaceIntoHost) {
851
+ this.renderer.appendChild(this.el.nativeElement, this.tooltipElem);
852
+ }
853
+ else {
854
+ this.renderer.appendChild(document.body, this.tooltipElem);
855
+ }
856
+ this.renderer.addClass(this.tooltipElem, 'tooltip');
857
+ this.renderer.addClass(this.tooltipElem, "tooltip-" + this.tooltipPlacement);
858
+ this.renderer.setStyle(this.tooltipElem, '-webkit-transition', "opacity " + this.tooltipDelay + "ms");
859
+ this.renderer.setStyle(this.tooltipElem, '-moz-transition', "opacity " + this.tooltipDelay + "ms");
860
+ this.renderer.setStyle(this.tooltipElem, '-o-transition', "opacity " + this.tooltipDelay + "ms");
861
+ this.renderer.setStyle(this.tooltipElem, 'transition', "opacity " + this.tooltipDelay + "ms");
862
+ };
863
+ TooltipDirective.prototype.setPosition = function () {
864
+ if (this.tooltipElem) {
865
+ var hostPos = this.el.nativeElement.getBoundingClientRect();
866
+ var tooltipPos = this.tooltipElem.getBoundingClientRect();
867
+ var top = void 0, left = void 0;
868
+ if (this.tooltipPlaceIntoHost) {
869
+ left = 0;
870
+ top = hostPos.height;
871
+ }
872
+ else {
873
+ var scrollPos = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
874
+ if (this.tooltipPlacement === 'top') {
875
+ top = hostPos.top - tooltipPos.height - this.offset;
876
+ left = hostPos.left + (hostPos.width - tooltipPos.width) / 2;
877
+ }
878
+ if (!this.tooltipPlacement || this.tooltipPlacement === 'bottom') {
879
+ top = hostPos.bottom + this.offset;
880
+ left = hostPos.left + (hostPos.width - tooltipPos.width) / 2;
881
+ }
882
+ if (this.tooltipPlacement === 'left') {
883
+ top = hostPos.top + (hostPos.height - tooltipPos.height) / 2;
884
+ left = hostPos.left - tooltipPos.width - this.offset;
885
+ }
886
+ if (this.tooltipPlacement === 'right') {
887
+ top = hostPos.top + (hostPos.height - tooltipPos.height) / 2;
888
+ left = hostPos.right + this.offset;
889
+ }
890
+ top += scrollPos;
891
+ }
892
+ this.renderer.setStyle(this.tooltipElem, 'top', top + "px");
893
+ this.renderer.setStyle(this.tooltipElem, 'left', left + "px");
894
+ }
895
+ };
896
+ return TooltipDirective;
897
+ }());
898
+ TooltipDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TooltipDirective, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Directive });
899
+ TooltipDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TooltipDirective, selector: "[kmsTooltip]", inputs: { tooltipTitle: "tooltipTitle", tooltipText: "tooltipText", tooltipLinkText: "tooltipLinkText", tooltipLinkUrl: "tooltipLinkUrl", tooltipPlacement: "tooltipPlacement", tooltipDelay: "tooltipDelay", tooltipPlaceIntoHost: "tooltipPlaceIntoHost", tooltipOnlyonclick: "tooltipOnlyonclick" }, host: { listeners: { "mouseenter": "onMouseEnter()", "click": "onClick()", "mouseleave": "onMouseLeave()" } }, ngImport: i0__namespace });
900
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TooltipDirective, decorators: [{
901
+ type: i0.Directive,
902
+ args: [{
903
+ selector: '[kmsTooltip]'
904
+ }]
905
+ }], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.Renderer2 }]; }, propDecorators: { tooltipTitle: [{
906
+ type: i0.Input,
907
+ args: ['tooltipTitle']
908
+ }], tooltipText: [{
909
+ type: i0.Input,
910
+ args: ['tooltipText']
911
+ }], tooltipLinkText: [{
912
+ type: i0.Input,
913
+ args: ['tooltipLinkText']
914
+ }], tooltipLinkUrl: [{
915
+ type: i0.Input,
916
+ args: ['tooltipLinkUrl']
917
+ }], tooltipPlacement: [{
918
+ type: i0.Input,
919
+ args: ['tooltipPlacement']
920
+ }], tooltipDelay: [{
921
+ type: i0.Input,
922
+ args: ['tooltipDelay']
923
+ }], tooltipPlaceIntoHost: [{
924
+ type: i0.Input,
925
+ args: ['tooltipPlaceIntoHost']
926
+ }], tooltipOnlyonclick: [{
927
+ type: i0.Input,
928
+ args: ['tooltipOnlyonclick']
929
+ }], onMouseEnter: [{
930
+ type: i0.HostListener,
931
+ args: ['mouseenter']
932
+ }], onClick: [{
933
+ type: i0.HostListener,
934
+ args: ['click']
935
+ }], onMouseLeave: [{
936
+ type: i0.HostListener,
937
+ args: ['mouseleave']
938
+ }] } });
939
+
940
+ var TooltipIconComponent = /** @class */ (function () {
941
+ function TooltipIconComponent() {
942
+ this.tooltipTitle = "";
943
+ this.tooltipText = "";
944
+ this.tooltipLinkText = "";
945
+ this.tooltipLinkUrl = "";
946
+ this.placement = "";
947
+ this.delay = 1000;
948
+ this.IconSize = exports.IconSize;
949
+ }
950
+ return TooltipIconComponent;
951
+ }());
952
+ TooltipIconComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TooltipIconComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
953
+ TooltipIconComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TooltipIconComponent, selector: "kms-tooltip-icon", inputs: { tooltipTitle: "tooltipTitle", tooltipText: "tooltipText", tooltipLinkText: "tooltipLinkText", tooltipLinkUrl: "tooltipLinkUrl", placement: "placement", delay: "delay" }, ngImport: i0__namespace, template: "<span\r\n kmsTooltip\r\n [tooltipTitle]=\"tooltipTitle\"\r\n [tooltipText]=\"tooltipText\"\r\n [tooltipPlacement]=\"placement\"\r\n [tooltipDelay]=\"delay\"\r\n [tooltipLinkText]=\"tooltipLinkText\"\r\n [tooltipLinkUrl]=\"tooltipLinkUrl\"\r\n>\r\n <kms-icon icon=\"ic_info\" [iconSize]=\"IconSize.SMALLER\" [iconClass]=\"'color-primary'\"></kms-icon>\r\n</span>\r\n", styles: [""], components: [{ type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "iconStyle", "iconSize", "dontUseSprite"] }], directives: [{ type: TooltipDirective, selector: "[kmsTooltip]", inputs: ["tooltipTitle", "tooltipText", "tooltipLinkText", "tooltipLinkUrl", "tooltipPlacement", "tooltipDelay", "tooltipPlaceIntoHost", "tooltipOnlyonclick"] }] });
954
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TooltipIconComponent, decorators: [{
955
+ type: i0.Component,
956
+ args: [{
957
+ selector: 'kms-tooltip-icon',
958
+ templateUrl: './tooltip-icon.component.html',
959
+ styleUrls: ['./tooltip-icon.component.scss']
960
+ }]
961
+ }], propDecorators: { tooltipTitle: [{
962
+ type: i0.Input
963
+ }], tooltipText: [{
964
+ type: i0.Input
965
+ }], tooltipLinkText: [{
966
+ type: i0.Input
967
+ }], tooltipLinkUrl: [{
968
+ type: i0.Input
969
+ }], placement: [{
970
+ type: i0.Input
971
+ }], delay: [{
972
+ type: i0.Input
973
+ }] } });
650
974
 
651
975
  var ColorInputComponent = /** @class */ (function (_super) {
652
976
  __extends(ColorInputComponent, _super);
@@ -694,29 +1018,35 @@
694
1018
  };
695
1019
  return ColorInputComponent;
696
1020
  }(FormControlParentComponent));
697
- ColorInputComponent.decorators = [
698
- { type: i0.Component, args: [{
699
- selector: 'kms-color-input',
700
- template: "\r\n<form [formGroup]=\"form\" *ngIf=\"formInitialized\">\r\n <div>\r\n <mat-form-field class=\"colorInput\">\r\n <kms-tooltip-icon [tooltipText]=\"tooltipText\" *ngIf=\"tooltipText\"></kms-tooltip-icon>\r\n <mat-label>{{ label }}</mat-label>\r\n <input type=\"text\" [(ngModel)]=\"value\" matInput formControlName=\"color\" [placeholder]=\"placeholder\" [ngClass]=\"{'my-inValid': !matchesHex(value)}\" />\r\n <input type=\"color\" [value]=\"value && matchesHex(value) ? value : '#ffffff'\" (change)=\"updateSelectedColor($event)\" [ngClass]=\"{'my-inValid': !matchesHex(value)}\" />\r\n </mat-form-field>\r\n </div>\r\n</form>",
701
- providers: [
702
- {
703
- provide: forms.NG_VALUE_ACCESSOR,
704
- useExisting: i0.forwardRef(function () { return ColorInputComponent; }),
705
- multi: true,
706
- },
707
- ],
708
- styles: [""]
709
- },] }
710
- ];
711
- ColorInputComponent.ctorParameters = function () { return [
712
- { type: forms.FormBuilder },
713
- { type: i0.Renderer2 }
714
- ]; };
715
- ColorInputComponent.propDecorators = {
716
- label: [{ type: i0.Input }],
717
- tooltipText: [{ type: i0.Input }],
718
- placeholder: [{ type: i0.Input }]
719
- };
1021
+ ColorInputComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ColorInputComponent, deps: [{ token: i1__namespace$1.FormBuilder }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Component });
1022
+ ColorInputComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ColorInputComponent, selector: "kms-color-input", inputs: { label: "label", tooltipText: "tooltipText", placeholder: "placeholder" }, providers: [
1023
+ {
1024
+ provide: i1.NG_VALUE_ACCESSOR,
1025
+ useExisting: i0.forwardRef(function () { return ColorInputComponent; }),
1026
+ multi: true,
1027
+ },
1028
+ ], usesInheritance: true, ngImport: i0__namespace, template: "\r\n<form [formGroup]=\"form\" *ngIf=\"formInitialized\">\r\n <div>\r\n <mat-form-field class=\"colorInput\">\r\n <kms-tooltip-icon [tooltipText]=\"tooltipText\" *ngIf=\"tooltipText\"></kms-tooltip-icon>\r\n <mat-label>{{ label }}</mat-label>\r\n <input type=\"text\" [(ngModel)]=\"value\" matInput formControlName=\"color\" [placeholder]=\"placeholder\" [ngClass]=\"{'my-inValid': !matchesHex(value)}\" />\r\n <input type=\"color\" [value]=\"value && matchesHex(value) ? value : '#ffffff'\" (change)=\"updateSelectedColor($event)\" [ngClass]=\"{'my-inValid': !matchesHex(value)}\" />\r\n </mat-form-field>\r\n </div>\r\n</form>", styles: [""], components: [{ type: i2__namespace$1.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: TooltipIconComponent, selector: "kms-tooltip-icon", inputs: ["tooltipTitle", "tooltipText", "tooltipLinkText", "tooltipLinkUrl", "placement", "delay"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2__namespace$1.MatLabel, selector: "mat-label" }, { type: i5__namespace.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["id", "disabled", "required", "type", "value", "readonly", "placeholder", "errorStateMatcher", "aria-describedby"], exportAs: ["matInput"] }, { type: i1__namespace$1.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: i1__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$1.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
1029
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ColorInputComponent, decorators: [{
1030
+ type: i0.Component,
1031
+ args: [{
1032
+ selector: 'kms-color-input',
1033
+ templateUrl: './color-input.component.html',
1034
+ styleUrls: ['./color-input.component.scss'],
1035
+ providers: [
1036
+ {
1037
+ provide: i1.NG_VALUE_ACCESSOR,
1038
+ useExisting: i0.forwardRef(function () { return ColorInputComponent; }),
1039
+ multi: true,
1040
+ },
1041
+ ],
1042
+ }]
1043
+ }], ctorParameters: function () { return [{ type: i1__namespace$1.FormBuilder }, { type: i0__namespace.Renderer2 }]; }, propDecorators: { label: [{
1044
+ type: i0.Input
1045
+ }], tooltipText: [{
1046
+ type: i0.Input
1047
+ }], placeholder: [{
1048
+ type: i0.Input
1049
+ }] } });
720
1050
 
721
1051
  var RadioButtonComponent = /** @class */ (function (_super) {
722
1052
  __extends(RadioButtonComponent, _super);
@@ -764,26 +1094,35 @@
764
1094
  };
765
1095
  return RadioButtonComponent;
766
1096
  }(ActionsParentComponent));
767
- RadioButtonComponent.decorators = [
768
- { type: i0.Component, args: [{
769
- selector: 'kms-radiobutton',
770
- template: "<label class=\"wrapper ui-small-text\"\r\n [ngClass]=\"{'disabled' : disabled}\">\r\n <input type=\"radio\"\r\n [name]=\"name\"\r\n [value]=\"value\"\r\n [checked]=\"checked\"\r\n [disabled]=\"disabled\"\r\n [id]=\"id\"\r\n (change)=\"selectAction($event)\">{{label}}\r\n\r\n <kms-icon\r\n class=\"checkmark\" \r\n aria-hidden=\"true\"\r\n *ngIf=\"checked\"\r\n [ngClass]=\"{\r\n 'disabled' : disabled\r\n }\"\r\n [iconClass]=\"{\r\n 'disabled' : disabled, \r\n 'color-primary': true,\r\n 'size-16': true\r\n }\"\r\n [icon]=\"'ic_radiobutton_active'\"\r\n >\r\n </kms-icon>\r\n <kms-icon\r\n class=\"checkmark\" \r\n aria-hidden=\"true\"\r\n *ngIf=\"!checked\"\r\n [ngClass]=\"{\r\n 'disabled' : disabled\r\n }\"\r\n [iconClass]=\"{\r\n 'disabled' : disabled, \r\n 'color-primary': true,\r\n 'size-16': true\r\n }\"\r\n [icon]=\"'ic_radiobutton_inactive'\"\r\n >\r\n </kms-icon>\r\n <ng-content></ng-content>\r\n</label>\r\n",
771
- providers: [
772
- {
773
- provide: forms.NG_VALUE_ACCESSOR,
774
- useExisting: i0.forwardRef(function () { return RadioButtonComponent; }),
775
- multi: true,
776
- },
777
- ],
778
- styles: [""]
779
- },] }
780
- ];
781
- RadioButtonComponent.ctorParameters = function () { return []; };
782
- RadioButtonComponent.propDecorators = {
783
- name: [{ type: i0.Input }],
784
- id: [{ type: i0.Input }],
785
- formControl: [{ type: i0.Input }]
786
- };
1097
+ RadioButtonComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RadioButtonComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
1098
+ RadioButtonComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: RadioButtonComponent, selector: "kms-radiobutton", inputs: { name: "name", id: "id", formControl: "formControl" }, providers: [
1099
+ {
1100
+ provide: i1.NG_VALUE_ACCESSOR,
1101
+ useExisting: i0.forwardRef(function () { return RadioButtonComponent; }),
1102
+ multi: true,
1103
+ },
1104
+ ], usesInheritance: true, ngImport: i0__namespace, template: "<label class=\"wrapper ui-small-text\"\r\n [ngClass]=\"{'disabled' : disabled}\">\r\n <input type=\"radio\"\r\n [name]=\"name\"\r\n [value]=\"value\"\r\n [checked]=\"checked\"\r\n [disabled]=\"disabled\"\r\n [id]=\"id\"\r\n (change)=\"selectAction($event)\">{{label}}\r\n\r\n <kms-icon\r\n class=\"checkmark\" \r\n aria-hidden=\"true\"\r\n *ngIf=\"checked\"\r\n [ngClass]=\"{\r\n 'disabled' : disabled\r\n }\"\r\n [iconClass]=\"{\r\n 'disabled' : disabled, \r\n 'color-primary': true,\r\n 'size-16': true\r\n }\"\r\n [icon]=\"'ic_radiobutton_active'\"\r\n >\r\n </kms-icon>\r\n <kms-icon\r\n class=\"checkmark\" \r\n aria-hidden=\"true\"\r\n *ngIf=\"!checked\"\r\n [ngClass]=\"{\r\n 'disabled' : disabled\r\n }\"\r\n [iconClass]=\"{\r\n 'disabled' : disabled, \r\n 'color-primary': true,\r\n 'size-16': true\r\n }\"\r\n [icon]=\"'ic_radiobutton_inactive'\"\r\n >\r\n </kms-icon>\r\n <ng-content></ng-content>\r\n</label>\r\n", styles: [""], components: [{ type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "iconStyle", "iconSize", "dontUseSprite"] }], directives: [{ type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
1105
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RadioButtonComponent, decorators: [{
1106
+ type: i0.Component,
1107
+ args: [{
1108
+ selector: 'kms-radiobutton',
1109
+ templateUrl: './radiobutton.component.html',
1110
+ styleUrls: ['./radiobutton.component.scss'],
1111
+ providers: [
1112
+ {
1113
+ provide: i1.NG_VALUE_ACCESSOR,
1114
+ useExisting: i0.forwardRef(function () { return RadioButtonComponent; }),
1115
+ multi: true,
1116
+ },
1117
+ ],
1118
+ }]
1119
+ }], ctorParameters: function () { return []; }, propDecorators: { name: [{
1120
+ type: i0.Input
1121
+ }], id: [{
1122
+ type: i0.Input
1123
+ }], formControl: [{
1124
+ type: i0.Input
1125
+ }] } });
787
1126
 
788
1127
  var TimeInputComponent = /** @class */ (function () {
789
1128
  function TimeInputComponent(formBuilder) {
@@ -851,23 +1190,29 @@
851
1190
  };
852
1191
  return TimeInputComponent;
853
1192
  }());
854
- TimeInputComponent.decorators = [
855
- { type: i0.Component, args: [{
856
- selector: 'kms-time-input',
857
- template: "<form [formGroup]=\"form\" class=\"timeInput\">\r\n <input type=\"number\" formControlName=\"h\" [value]=\"h\" maxlength=\"2\" min=\"0\" max=\"23\" />\r\n <span>:</span>\r\n <input type=\"number\" formControlName=\"m\" [value]=\"m\" maxlength=\"2\" min=\"0\" max=\"59\"/>\r\n</form>",
858
- providers: [
859
- {
860
- provide: forms.NG_VALUE_ACCESSOR,
861
- useExisting: i0.forwardRef(function () { return TimeInputComponent; }),
862
- multi: true,
863
- },
864
- ],
865
- styles: [""]
866
- },] }
867
- ];
868
- TimeInputComponent.ctorParameters = function () { return [
869
- { type: forms.FormBuilder }
870
- ]; };
1193
+ TimeInputComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TimeInputComponent, deps: [{ token: i1__namespace$1.FormBuilder }], target: i0__namespace.ɵɵFactoryTarget.Component });
1194
+ TimeInputComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TimeInputComponent, selector: "kms-time-input", providers: [
1195
+ {
1196
+ provide: i1.NG_VALUE_ACCESSOR,
1197
+ useExisting: i0.forwardRef(function () { return TimeInputComponent; }),
1198
+ multi: true,
1199
+ },
1200
+ ], ngImport: i0__namespace, template: "<form [formGroup]=\"form\" class=\"timeInput\">\r\n <input type=\"text\" formControlName=\"h\" [value]=\"h\" maxlength=\"2\" pattern=\"(0?[0-9]|1[0-9]|2[0-3])\"/>\r\n <span>:</span>\r\n <input type=\"text\" formControlName=\"m\" [value]=\"m\" maxlength=\"2\" pattern=\"(0?[0-9]|[1-5][0-9])\"/>\r\n</form>", styles: [""], directives: [{ type: i1__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i1__namespace$1.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: i1__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$1.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i1__namespace$1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { type: i1__namespace$1.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }] });
1201
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TimeInputComponent, decorators: [{
1202
+ type: i0.Component,
1203
+ args: [{
1204
+ selector: 'kms-time-input',
1205
+ templateUrl: './time-input.component.html',
1206
+ styleUrls: ['./time-input.component.scss'],
1207
+ providers: [
1208
+ {
1209
+ provide: i1.NG_VALUE_ACCESSOR,
1210
+ useExisting: i0.forwardRef(function () { return TimeInputComponent; }),
1211
+ multi: true,
1212
+ },
1213
+ ],
1214
+ }]
1215
+ }], ctorParameters: function () { return [{ type: i1__namespace$1.FormBuilder }]; } });
871
1216
 
872
1217
  var YesNoRadiogroupComponent = /** @class */ (function () {
873
1218
  function YesNoRadiogroupComponent(formBuilder, renderer) {
@@ -922,64 +1267,39 @@
922
1267
  };
923
1268
  return YesNoRadiogroupComponent;
924
1269
  }());
925
- YesNoRadiogroupComponent.decorators = [
926
- { type: i0.Component, args: [{
927
- selector: 'kms-yesno-radiogroup',
928
- template: "<form [formGroup]=\"form\">\r\n <div>{{ header }}</div>\r\n <mat-radio-group [formControl]=\"form.controls['yesno']\" [disabled]=\"disabled\" #child>\r\n <mat-radio-button [value]=\"true\" [checked]=\"internalValue === true\"> {{ textYes }}</mat-radio-button>\r\n <mat-radio-button [value]=\"false\" [checked]=\"internalValue === false\"> {{ textNo }}</mat-radio-button>\r\n </mat-radio-group>\r\n</form>\r\n",
929
- providers: [
930
- {
931
- provide: forms.NG_VALUE_ACCESSOR,
932
- useExisting: i0.forwardRef(function () { return YesNoRadiogroupComponent; }),
933
- multi: true,
934
- },
935
- ]
936
- },] }
937
- ];
938
- YesNoRadiogroupComponent.ctorParameters = function () { return [
939
- { type: forms.FormBuilder },
940
- { type: i0.Renderer2 }
941
- ]; };
942
- YesNoRadiogroupComponent.propDecorators = {
943
- header: [{ type: i0.Input }],
944
- disabled: [{ type: i0.Input }],
945
- textYes: [{ type: i0.Input }],
946
- textNo: [{ type: i0.Input }],
947
- child: [{ type: i0.ViewChild, args: ['child',] }]
948
- };
949
-
950
- /*!
951
- * @copyright FLYACTS GmbH 2019
952
- */
953
- exports.IconSize = void 0;
954
- (function (IconSize) {
955
- IconSize["FULLSIZE"] = "size-full";
956
- IconSize["TINY"] = "size-16";
957
- IconSize["SMALLER"] = "size-20";
958
- IconSize["SMALL"] = "size-32";
959
- IconSize["MEDIUM"] = "size-64";
960
- IconSize["LARGE"] = "size-128";
961
- IconSize["XL"] = "size-256";
962
- IconSize["XXL"] = "size-512";
963
- IconSize["XXXL"] = "size-1024";
964
- IconSize["NONE"] = "NONE";
965
- })(exports.IconSize || (exports.IconSize = {}));
966
-
967
- /**
968
- * @copyright FLYACTS GmbH 2019
969
- */
970
- /**
971
- * Check if null or undefined
972
- * @param value value that is being checked
973
- */
974
- function isValue(value) {
975
- if (value === null) {
976
- return false;
977
- }
978
- if (typeof value === 'undefined') {
979
- return false;
980
- }
981
- return true;
982
- }
1270
+ YesNoRadiogroupComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: YesNoRadiogroupComponent, deps: [{ token: i1__namespace$1.FormBuilder }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Component });
1271
+ YesNoRadiogroupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: YesNoRadiogroupComponent, selector: "kms-yesno-radiogroup", inputs: { header: "header", disabled: "disabled", textYes: "textYes", textNo: "textNo" }, providers: [
1272
+ {
1273
+ provide: i1.NG_VALUE_ACCESSOR,
1274
+ useExisting: i0.forwardRef(function () { return YesNoRadiogroupComponent; }),
1275
+ multi: true,
1276
+ },
1277
+ ], viewQueries: [{ propertyName: "child", first: true, predicate: ["child"], descendants: true }], ngImport: i0__namespace, template: "<form [formGroup]=\"form\">\r\n <div>{{ header }}</div>\r\n <mat-radio-group [formControl]=\"form.controls['yesno']\" [disabled]=\"disabled\" #child>\r\n <mat-radio-button [value]=\"true\" [checked]=\"internalValue === true\"> {{ textYes }}</mat-radio-button>\r\n <mat-radio-button [value]=\"false\" [checked]=\"internalValue === false\"> {{ textNo }}</mat-radio-button>\r\n </mat-radio-group>\r\n</form>\r\n", components: [{ type: i2__namespace$2.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }], directives: [{ type: i1__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2__namespace$2.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { type: i1__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
1278
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: YesNoRadiogroupComponent, decorators: [{
1279
+ type: i0.Component,
1280
+ args: [{
1281
+ selector: 'kms-yesno-radiogroup',
1282
+ templateUrl: './yes-no-radiogroup.component.html',
1283
+ providers: [
1284
+ {
1285
+ provide: i1.NG_VALUE_ACCESSOR,
1286
+ useExisting: i0.forwardRef(function () { return YesNoRadiogroupComponent; }),
1287
+ multi: true,
1288
+ },
1289
+ ],
1290
+ }]
1291
+ }], ctorParameters: function () { return [{ type: i1__namespace$1.FormBuilder }, { type: i0__namespace.Renderer2 }]; }, propDecorators: { header: [{
1292
+ type: i0.Input
1293
+ }], disabled: [{
1294
+ type: i0.Input
1295
+ }], textYes: [{
1296
+ type: i0.Input
1297
+ }], textNo: [{
1298
+ type: i0.Input
1299
+ }], child: [{
1300
+ type: i0.ViewChild,
1301
+ args: ['child']
1302
+ }] } });
983
1303
 
984
1304
  // Max size in bytes of uploaded image
985
1305
  var MAX_SIZE_BYTES = 2097152;
@@ -1007,11 +1327,11 @@
1007
1327
  this.resizePixels = 0;
1008
1328
  this.acceptedFileMimetypes = 'image/jpeg, image/jpg, image/png';
1009
1329
  this.form = this.formBuilder.group({
1010
- ImageIdent: new forms.FormControl(''),
1011
- ImageLink: new forms.FormControl(''),
1012
- Filename: new forms.FormControl(''),
1013
- ImageAsDataURL: new forms.FormControl(''),
1014
- Text: new forms.FormControl(''),
1330
+ ImageIdent: new i1.FormControl(''),
1331
+ ImageLink: new i1.FormControl(''),
1332
+ Filename: new i1.FormControl(''),
1333
+ ImageAsDataURL: new i1.FormControl(''),
1334
+ Text: new i1.FormControl(''),
1015
1335
  });
1016
1336
  this.subscriptions = [];
1017
1337
  this.newImageLoading = false;
@@ -1160,42 +1480,58 @@
1160
1480
  };
1161
1481
  return FileInputComponent;
1162
1482
  }());
1163
- FileInputComponent.decorators = [
1164
- { type: i0.Component, args: [{
1165
- selector: 'kms-file-input',
1166
- template: "<form [formGroup]=\"form\" (change)=\"newImageLoading=true\" class=\"fileInput\"> \r\n\r\n <div *ngIf=\"form.value.Filename && previewImage\">\r\n <div *ngIf=\"newImageLoading\">\r\n {{ 'file-input.loading' | translate }}\r\n </div>\r\n <div *ngIf=\"!newImageLoading\">\r\n <div class=\"\">\r\n <div class=\"\">\r\n <img *ngIf=\"form.value.ImageLink && form.value.ImageLink !== '' && !(form.value.ImageAsDataURL && form.value.ImageAsDataURL !== '')\" [src]=\"form.value.ImageAsDataURL\" [src]=\"form.value.ImageLink\" style=\"height: 40px; width: fit-content;\" />\r\n <img *ngIf=\"form.value.ImageAsDataURL && form.value.ImageAsDataURL !== ''\" [src]=\"form.value.ImageAsDataURL\" style=\"height: 40px; width: fit-content;\" />\r\n </div>\r\n <div class=\"\">{{form.value.Filename}}</div>\r\n <div class=\"\">\r\n <div (click)=\"removeFromList()\" *ngIf=\"allowRemove\">\r\n <kms-icon icon=\"trash\" [iconSize]=\"IconSize.TINY\" iconClass=\"color-black\"></kms-icon> \r\n {{ 'file-input.remove' }}\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"!previewImage\">\r\n <div class=\"\">{{form.value.Filename}}</div>\r\n </div>\r\n\r\n <button (click)=\"selectImageOverlay()\" class=\"button-primary-font-color\" mat-stroked-button>\r\n <span>{{ label }}</span>\r\n </button>\r\n <input\r\n type=\"file\"\r\n [accept]=\"acceptedFileMimetypes\"\r\n style=\"display: none\"\r\n #fileInput\r\n (click)=\"clearInputValue($event)\"\r\n (change)=\"selectImage($event)\"\r\n />\r\n\r\n <input type=\"hidden\" [formControl]=\"form.controls['ImageIdent']\" />\r\n <input type=\"hidden\" [formControl]=\"form.controls['ImageLink']\" />\r\n <input type=\"hidden\" [formControl]=\"form.controls['Filename']\" />\r\n <input type=\"hidden\" [formControl]=\"form.controls['ImageAsDataURL']\" />\r\n <input type=\"hidden\" [formControl]=\"form.controls['Text']\" />\r\n\r\n</form>",
1167
- providers: [
1168
- {
1169
- provide: forms.NG_VALUE_ACCESSOR,
1170
- useExisting: i0.forwardRef(function () { return FileInputComponent; }),
1171
- multi: true,
1172
- },
1173
- {
1174
- provide: forms.NG_VALIDATORS,
1175
- useExisting: i0.forwardRef(function () { return FileInputComponent; }),
1176
- multi: true,
1177
- },
1178
- ],
1179
- styles: [""]
1180
- },] }
1181
- ];
1182
- FileInputComponent.ctorParameters = function () { return [
1183
- { type: forms.FormBuilder },
1184
- { type: i0.ApplicationRef },
1185
- { type: i0.ChangeDetectorRef },
1186
- { type: i0.Renderer2 }
1187
- ]; };
1188
- FileInputComponent.propDecorators = {
1189
- fileInput: [{ type: i0.ViewChild, args: ['fileInput',] }],
1190
- label: [{ type: i0.Input }],
1191
- previewImage: [{ type: i0.Input }],
1192
- allowRemove: [{ type: i0.Input }],
1193
- previewImageText: [{ type: i0.Input }],
1194
- maxSizeBytes: [{ type: i0.Input }],
1195
- resizePixels: [{ type: i0.Input }],
1196
- acceptedFileMimetypes: [{ type: i0.Input }],
1197
- formDataChanged: [{ type: i0.Output }]
1198
- };
1483
+ FileInputComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FileInputComponent, deps: [{ token: i1__namespace$1.FormBuilder }, { token: i0__namespace.ApplicationRef }, { token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Component });
1484
+ FileInputComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FileInputComponent, selector: "kms-file-input", inputs: { label: "label", previewImage: "previewImage", allowRemove: "allowRemove", previewImageText: "previewImageText", maxSizeBytes: "maxSizeBytes", resizePixels: "resizePixels", acceptedFileMimetypes: "acceptedFileMimetypes" }, outputs: { formDataChanged: "formDataChanged" }, providers: [
1485
+ {
1486
+ provide: i1.NG_VALUE_ACCESSOR,
1487
+ useExisting: i0.forwardRef(function () { return FileInputComponent; }),
1488
+ multi: true,
1489
+ },
1490
+ {
1491
+ provide: i1.NG_VALIDATORS,
1492
+ useExisting: i0.forwardRef(function () { return FileInputComponent; }),
1493
+ multi: true,
1494
+ },
1495
+ ], viewQueries: [{ propertyName: "fileInput", first: true, predicate: ["fileInput"], descendants: true }], ngImport: i0__namespace, template: "<form [formGroup]=\"form\" (change)=\"newImageLoading=true\" class=\"fileInput\"> \r\n\r\n <div *ngIf=\"form.value.Filename && previewImage\">\r\n <div *ngIf=\"newImageLoading\">\r\n {{ 'file-input.loading' | translate }}\r\n </div>\r\n <div *ngIf=\"!newImageLoading\">\r\n <div class=\"\">\r\n <div class=\"\">\r\n <img *ngIf=\"form.value.ImageLink && form.value.ImageLink !== '' && !(form.value.ImageAsDataURL && form.value.ImageAsDataURL !== '')\" [src]=\"form.value.ImageAsDataURL\" [src]=\"form.value.ImageLink\" style=\"height: 40px; width: fit-content;\" />\r\n <img *ngIf=\"form.value.ImageAsDataURL && form.value.ImageAsDataURL !== ''\" [src]=\"form.value.ImageAsDataURL\" style=\"height: 40px; width: fit-content;\" />\r\n </div>\r\n <div class=\"\">{{form.value.Filename}}</div>\r\n <div class=\"\">\r\n <div (click)=\"removeFromList()\" *ngIf=\"allowRemove\">\r\n <kms-icon icon=\"trash\" [iconSize]=\"IconSize.TINY\" iconClass=\"color-black\"></kms-icon> \r\n {{ 'file-input.remove' }}\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"!previewImage\">\r\n <div class=\"\">{{form.value.Filename}}</div>\r\n </div>\r\n\r\n <button (click)=\"selectImageOverlay()\" class=\"button-primary-font-color\" mat-stroked-button>\r\n <span>{{ label }}</span>\r\n </button>\r\n <input\r\n type=\"file\"\r\n [accept]=\"acceptedFileMimetypes\"\r\n style=\"display: none\"\r\n #fileInput\r\n (click)=\"clearInputValue($event)\"\r\n (change)=\"selectImage($event)\"\r\n />\r\n\r\n <input type=\"hidden\" [formControl]=\"form.controls['ImageIdent']\" />\r\n <input type=\"hidden\" [formControl]=\"form.controls['ImageLink']\" />\r\n <input type=\"hidden\" [formControl]=\"form.controls['Filename']\" />\r\n <input type=\"hidden\" [formControl]=\"form.controls['ImageAsDataURL']\" />\r\n <input type=\"hidden\" [formControl]=\"form.controls['Text']\" />\r\n\r\n</form>", styles: [""], components: [{ type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "iconStyle", "iconSize", "dontUseSprite"] }, { type: i2__namespace$3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i1__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$1.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: i1__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "translate": i5__namespace$1.TranslatePipe } });
1496
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FileInputComponent, decorators: [{
1497
+ type: i0.Component,
1498
+ args: [{
1499
+ selector: 'kms-file-input',
1500
+ templateUrl: './file-input.component.html',
1501
+ styleUrls: ['./file-input.component.scss'],
1502
+ providers: [
1503
+ {
1504
+ provide: i1.NG_VALUE_ACCESSOR,
1505
+ useExisting: i0.forwardRef(function () { return FileInputComponent; }),
1506
+ multi: true,
1507
+ },
1508
+ {
1509
+ provide: i1.NG_VALIDATORS,
1510
+ useExisting: i0.forwardRef(function () { return FileInputComponent; }),
1511
+ multi: true,
1512
+ },
1513
+ ],
1514
+ }]
1515
+ }], ctorParameters: function () { return [{ type: i1__namespace$1.FormBuilder }, { type: i0__namespace.ApplicationRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i0__namespace.Renderer2 }]; }, propDecorators: { fileInput: [{
1516
+ type: i0.ViewChild,
1517
+ args: ['fileInput']
1518
+ }], label: [{
1519
+ type: i0.Input
1520
+ }], previewImage: [{
1521
+ type: i0.Input
1522
+ }], allowRemove: [{
1523
+ type: i0.Input
1524
+ }], previewImageText: [{
1525
+ type: i0.Input
1526
+ }], maxSizeBytes: [{
1527
+ type: i0.Input
1528
+ }], resizePixels: [{
1529
+ type: i0.Input
1530
+ }], acceptedFileMimetypes: [{
1531
+ type: i0.Input
1532
+ }], formDataChanged: [{
1533
+ type: i0.Output
1534
+ }] } });
1199
1535
 
1200
1536
  var LoaderComponent = /** @class */ (function () {
1201
1537
  // eslint-disable-next-line @typescript-eslint/no-empty-function
@@ -1206,33 +1542,127 @@
1206
1542
  LoaderComponent.prototype.ngOnInit = function () { };
1207
1543
  return LoaderComponent;
1208
1544
  }());
1209
- LoaderComponent.decorators = [
1210
- { type: i0.Component, args: [{
1211
- selector: 'kms-loader',
1212
- template: "<div class=\"loading-spinner-shade\" *ngIf=\"loading\">\r\n <mat-spinner class=\"spinnerMargin\" color=\"accent\" diameter=\"44\"></mat-spinner>\r\n</div>\r\n",
1213
- styles: [""]
1214
- },] }
1215
- ];
1216
- LoaderComponent.ctorParameters = function () { return []; };
1217
- LoaderComponent.propDecorators = {
1218
- loading: [{ type: i0.Input }]
1219
- };
1545
+ LoaderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LoaderComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
1546
+ LoaderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: LoaderComponent, selector: "kms-loader", inputs: { loading: "loading" }, ngImport: i0__namespace, template: "<div class=\"loading-spinner-shade\" *ngIf=\"loading\">\r\n <mat-spinner class=\"spinnerMargin\" color=\"accent\" diameter=\"44\"></mat-spinner>\r\n</div>\r\n", styles: [""], components: [{ type: i1__namespace$3.MatSpinner, selector: "mat-spinner", inputs: ["color"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
1547
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LoaderComponent, decorators: [{
1548
+ type: i0.Component,
1549
+ args: [{
1550
+ selector: 'kms-loader',
1551
+ templateUrl: './loader.component.html',
1552
+ styleUrls: ['./loader.component.scss'],
1553
+ }]
1554
+ }], ctorParameters: function () { return []; }, propDecorators: { loading: [{
1555
+ type: i0.Input
1556
+ }] } });
1220
1557
 
1221
1558
  /*!
1222
1559
  * @copyright FLYACTS GmbH 2019
1223
1560
  */
1224
- var FlyoutComponent = /** @class */ (function () {
1225
- function FlyoutComponent() {
1226
- this.icon = 'filter';
1227
- this.isDropdownOpened = false;
1228
- this.targetHeight = '0';
1229
- this.animationTime = 5000;
1230
- this.headerCssClass = '';
1231
- this.bodyCssClass = '';
1232
- this.headerTitle = '';
1233
- this.headerText = '';
1234
- this.hasButtonForMore = false;
1235
- this.moreText = '';
1561
+ /**
1562
+ * Directive to calc the height of all inner elements
1563
+ */
1564
+ var GetMaxHeightDirective = /** @class */ (function () {
1565
+ function GetMaxHeightDirective(el) {
1566
+ this.el = el;
1567
+ /**
1568
+ * CSS class name of the child items (markup elements) that should be checked for their height.
1569
+ * This is mandatory.
1570
+ */
1571
+ this.cssClassName = '';
1572
+ /**
1573
+ * Event that will pass the height of the tallest child inside the container.
1574
+ * Useful to calculate the target height of containers with different content (like accordion) for animations.
1575
+ */
1576
+ this.maxHeightChanged = new i0.EventEmitter();
1577
+ /**
1578
+ * Event that will pass the complete sum of all height values from each child.
1579
+ * Useful to calculate the full target height of a container (like dropdown) for animations.
1580
+ */
1581
+ this.sumOfHeight = new i0.EventEmitter();
1582
+ }
1583
+ GetMaxHeightDirective.prototype.ngAfterContentChecked = function () {
1584
+ this.checkHeightOfChildren(this.el.nativeElement, this.cssClassName);
1585
+ };
1586
+ GetMaxHeightDirective.prototype.checkHeightOfChildren = function (parent, cssClassName) {
1587
+ if (!parent) {
1588
+ return;
1589
+ }
1590
+ // find all the child elements with the selected class name
1591
+ var children = parent.getElementsByClassName(cssClassName);
1592
+ // failsafe
1593
+ if (!children) {
1594
+ return;
1595
+ }
1596
+ // get all the child elements heights
1597
+ var itemHeights = Array.from(children).map(function (x) { return x.getBoundingClientRect().height; });
1598
+ // failsafe
1599
+ if (itemHeights.length === 0) {
1600
+ return;
1601
+ }
1602
+ // find out the tallest element
1603
+ var maxHeight = itemHeights.reduce(function (prev, curr) {
1604
+ return curr > prev ? curr : prev;
1605
+ }, 0);
1606
+ // get sum of heights
1607
+ var sumOfHeight = itemHeights.reduce(function (pv, cv) { return pv + cv; }, 0);
1608
+ // inform
1609
+ this.maxHeightChanged.emit(maxHeight);
1610
+ this.sumOfHeight.emit(sumOfHeight);
1611
+ };
1612
+ return GetMaxHeightDirective;
1613
+ }());
1614
+ GetMaxHeightDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: GetMaxHeightDirective, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
1615
+ GetMaxHeightDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: GetMaxHeightDirective, selector: "[getMaxHeight]", inputs: { cssClassName: ["getMaxHeight", "cssClassName"] }, outputs: { maxHeightChanged: "maxHeightChanged", sumOfHeight: "sumOfHeight" }, ngImport: i0__namespace });
1616
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: GetMaxHeightDirective, decorators: [{
1617
+ type: i0.Directive,
1618
+ args: [{
1619
+ selector: '[getMaxHeight]',
1620
+ }]
1621
+ }], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }]; }, propDecorators: { cssClassName: [{
1622
+ type: i0.Input,
1623
+ args: ['getMaxHeight']
1624
+ }], maxHeightChanged: [{
1625
+ type: i0.Output
1626
+ }], sumOfHeight: [{
1627
+ type: i0.Output
1628
+ }] } });
1629
+
1630
+ /*!
1631
+ * @copyright FLYACTS GmbH 2019
1632
+ */
1633
+ var SafeHtmlPipe = /** @class */ (function () {
1634
+ function SafeHtmlPipe(sanitizer) {
1635
+ this.sanitizer = sanitizer;
1636
+ }
1637
+ SafeHtmlPipe.prototype.transform = function (html) {
1638
+ return this.sanitizer.bypassSecurityTrustHtml(html);
1639
+ };
1640
+ return SafeHtmlPipe;
1641
+ }());
1642
+ SafeHtmlPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SafeHtmlPipe, deps: [{ token: i1__namespace$2.DomSanitizer }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
1643
+ SafeHtmlPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SafeHtmlPipe, name: "kmsSafeHtml" });
1644
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SafeHtmlPipe, decorators: [{
1645
+ type: i0.Pipe,
1646
+ args: [{
1647
+ name: 'kmsSafeHtml',
1648
+ }]
1649
+ }], ctorParameters: function () { return [{ type: i1__namespace$2.DomSanitizer }]; } });
1650
+
1651
+ /*!
1652
+ * @copyright FLYACTS GmbH 2019
1653
+ */
1654
+ var FlyoutComponent = /** @class */ (function () {
1655
+ function FlyoutComponent() {
1656
+ this.icon = 'filter';
1657
+ this.isDropdownOpened = false;
1658
+ this.targetHeight = '0';
1659
+ this.animationTime = 5000;
1660
+ this.headerCssClass = '';
1661
+ this.bodyCssClass = '';
1662
+ this.headerTitle = '';
1663
+ this.headerText = '';
1664
+ this.hasButtonForMore = false;
1665
+ this.moreText = '';
1236
1666
  this.lessText = '';
1237
1667
  }
1238
1668
  /**
@@ -1258,52 +1688,84 @@
1258
1688
  };
1259
1689
  return FlyoutComponent;
1260
1690
  }());
1261
- FlyoutComponent.decorators = [
1262
- { type: i0.Component, args: [{
1263
- selector: 'kms-flyout',
1264
- template: "<div class=\"flyout\"\r\n [ngClass]=\"{'is-active': isDropdownOpened}\"\r\n>\r\n <div class=\"flyout-header\" (click)=\"toggleDropdownHeader()\" [ngClass]=\"headerCssClass\">\r\n <span [innerHtml]=\"headerTitle | kmsSafeHtml\"></span>\r\n <span [innerHtml]=\"headerText | kmsSafeHtml\"></span>\r\n\r\n <ng-content select=\"[header]\"></ng-content>\r\n\r\n <div *ngIf=\"hasButtonForMore\" (click)=\"toggleDropdown()\" class=\"flyout-header-more\">\r\n <span *ngIf=\"!isDropdownOpened\">\r\n {{ moreText }}\r\n </span>\r\n <span *ngIf=\"isDropdownOpened\">\r\n {{ lessText }}\r\n </span>\r\n <kms-icon [icon]=\"'chevron-down'\"\r\n [iconClass]=\"{'size-16': true, 'is-rotating180': isDropdownOpened}\" >\r\n </kms-icon>\r\n </div>\r\n </div>\r\n <div \r\n class=\"flyout-body\"\r\n [ngClass]=\"bodyCssClass\"\r\n tabindex=\"0\"\r\n [@dropdownAnimation]=\"{value: isDropdownOpened, params: {targetHeight: targetHeight, animationTime: '500'}}\"\r\n getMaxHeight=\"inner\"\r\n (sumOfHeight)=\"setDropdownListHeight($event)\"\r\n #flyoutHeader>\r\n <div class=\"inner\" #content>\r\n <ng-content ></ng-content>\r\n </div>\r\n </div>\r\n\r\n</div>\r\n",
1265
- animations: [
1266
- animations.trigger('dropdownAnimation', [
1267
- animations.state('true', animations.style({
1268
- height: '{{targetHeight}}',
1269
- transition: 'height {{animationTime}}ms ease-in-out',
1270
- }), {
1271
- params: {
1272
- targetHeight: '300px',
1273
- animationTime: 3000,
1274
- },
1275
- }),
1276
- animations.state('false', animations.style({
1277
- height: 0,
1278
- transition: 'height {{animationTime}}ms ease-in-out',
1279
- }), {
1280
- params: {
1281
- targetHeight: '300px',
1282
- opacity: 0,
1283
- animationTime: 3000,
1284
- },
1285
- }),
1286
- ]),
1287
- ],
1288
- styles: [""]
1289
- },] }
1290
- ];
1291
- FlyoutComponent.propDecorators = {
1292
- icon: [{ type: i0.Input }],
1293
- headerCssClass: [{ type: i0.Input }],
1294
- bodyCssClass: [{ type: i0.Input }],
1295
- headerTitle: [{ type: i0.Input }],
1296
- headerText: [{ type: i0.Input }],
1297
- hasButtonForMore: [{ type: i0.Input }],
1298
- moreText: [{ type: i0.Input }],
1299
- lessText: [{ type: i0.Input }],
1300
- content: [{ type: i0.ViewChild, args: ['content',] }],
1301
- flyoutHeader: [{ type: i0.ViewChild, args: ['flyoutHeader',] }]
1302
- };
1691
+ FlyoutComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FlyoutComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
1692
+ FlyoutComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FlyoutComponent, selector: "kms-flyout", inputs: { icon: "icon", headerCssClass: "headerCssClass", bodyCssClass: "bodyCssClass", headerTitle: "headerTitle", headerText: "headerText", hasButtonForMore: "hasButtonForMore", moreText: "moreText", lessText: "lessText" }, viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true }, { propertyName: "flyoutHeader", first: true, predicate: ["flyoutHeader"], descendants: true }], ngImport: i0__namespace, template: "<div class=\"flyout\"\r\n [ngClass]=\"{'is-active': isDropdownOpened}\"\r\n>\r\n <div class=\"flyout-header\" (click)=\"toggleDropdownHeader()\" [ngClass]=\"headerCssClass\">\r\n <span [innerHtml]=\"headerTitle | kmsSafeHtml\"></span>\r\n <span [innerHtml]=\"headerText | kmsSafeHtml\"></span>\r\n\r\n <ng-content select=\"[header]\"></ng-content>\r\n\r\n <div *ngIf=\"hasButtonForMore\" (click)=\"toggleDropdown()\" class=\"flyout-header-more\">\r\n <span *ngIf=\"!isDropdownOpened\">\r\n {{ moreText }}\r\n </span>\r\n <span *ngIf=\"isDropdownOpened\">\r\n {{ lessText }}\r\n </span>\r\n <kms-icon [icon]=\"'chevron-down'\"\r\n [iconClass]=\"{'size-16': true, 'is-rotating180': isDropdownOpened}\" >\r\n </kms-icon>\r\n </div>\r\n </div>\r\n <div \r\n class=\"flyout-body\"\r\n [ngClass]=\"bodyCssClass\"\r\n tabindex=\"0\"\r\n [@dropdownAnimation]=\"{value: isDropdownOpened, params: {targetHeight: targetHeight, animationTime: '500'}}\"\r\n getMaxHeight=\"inner\"\r\n (sumOfHeight)=\"setDropdownListHeight($event)\"\r\n #flyoutHeader>\r\n <div class=\"inner\" #content>\r\n <ng-content ></ng-content>\r\n </div>\r\n </div>\r\n\r\n</div>\r\n", styles: [""], components: [{ type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "iconStyle", "iconSize", "dontUseSprite"] }], directives: [{ type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: GetMaxHeightDirective, selector: "[getMaxHeight]", inputs: ["getMaxHeight"], outputs: ["maxHeightChanged", "sumOfHeight"] }], pipes: { "kmsSafeHtml": SafeHtmlPipe }, animations: [
1693
+ animations.trigger('dropdownAnimation', [
1694
+ animations.state('true', animations.style({
1695
+ height: '{{targetHeight}}',
1696
+ transition: 'height {{animationTime}}ms ease-in-out',
1697
+ }), {
1698
+ params: {
1699
+ targetHeight: '300px',
1700
+ animationTime: 3000,
1701
+ },
1702
+ }),
1703
+ animations.state('false', animations.style({
1704
+ height: 0,
1705
+ transition: 'height {{animationTime}}ms ease-in-out',
1706
+ }), {
1707
+ params: {
1708
+ targetHeight: '300px',
1709
+ opacity: 0,
1710
+ animationTime: 3000,
1711
+ },
1712
+ }),
1713
+ ]),
1714
+ ] });
1715
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FlyoutComponent, decorators: [{
1716
+ type: i0.Component,
1717
+ args: [{
1718
+ selector: 'kms-flyout',
1719
+ templateUrl: './flyout.component.html',
1720
+ styleUrls: ['./flyout.component.scss'],
1721
+ animations: [
1722
+ animations.trigger('dropdownAnimation', [
1723
+ animations.state('true', animations.style({
1724
+ height: '{{targetHeight}}',
1725
+ transition: 'height {{animationTime}}ms ease-in-out',
1726
+ }), {
1727
+ params: {
1728
+ targetHeight: '300px',
1729
+ animationTime: 3000,
1730
+ },
1731
+ }),
1732
+ animations.state('false', animations.style({
1733
+ height: 0,
1734
+ transition: 'height {{animationTime}}ms ease-in-out',
1735
+ }), {
1736
+ params: {
1737
+ targetHeight: '300px',
1738
+ opacity: 0,
1739
+ animationTime: 3000,
1740
+ },
1741
+ }),
1742
+ ]),
1743
+ ],
1744
+ }]
1745
+ }], propDecorators: { icon: [{
1746
+ type: i0.Input
1747
+ }], headerCssClass: [{
1748
+ type: i0.Input
1749
+ }], bodyCssClass: [{
1750
+ type: i0.Input
1751
+ }], headerTitle: [{
1752
+ type: i0.Input
1753
+ }], headerText: [{
1754
+ type: i0.Input
1755
+ }], hasButtonForMore: [{
1756
+ type: i0.Input
1757
+ }], moreText: [{
1758
+ type: i0.Input
1759
+ }], lessText: [{
1760
+ type: i0.Input
1761
+ }], content: [{
1762
+ type: i0.ViewChild,
1763
+ args: ['content']
1764
+ }], flyoutHeader: [{
1765
+ type: i0.ViewChild,
1766
+ args: ['flyoutHeader']
1767
+ }] } });
1303
1768
 
1304
- /**
1305
- * @copyright KMS GmbH
1306
- */
1307
1769
  var IntegerCurrency = /** @class */ (function () {
1308
1770
  function IntegerCurrency(cp) {
1309
1771
  this.cp = cp;
@@ -1320,14 +1782,14 @@
1320
1782
  };
1321
1783
  return IntegerCurrency;
1322
1784
  }());
1323
- IntegerCurrency.decorators = [
1324
- { type: i0.Pipe, args: [{
1325
- name: 'kmsIntegerCurrency',
1326
- },] }
1327
- ];
1328
- IntegerCurrency.ctorParameters = function () { return [
1329
- { type: common.CurrencyPipe }
1330
- ]; };
1785
+ IntegerCurrency.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IntegerCurrency, deps: [{ token: i2__namespace.CurrencyPipe }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
1786
+ IntegerCurrency.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IntegerCurrency, name: "kmsIntegerCurrency" });
1787
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IntegerCurrency, decorators: [{
1788
+ type: i0.Pipe,
1789
+ args: [{
1790
+ name: 'kmsIntegerCurrency',
1791
+ }]
1792
+ }], ctorParameters: function () { return [{ type: i2__namespace.CurrencyPipe }]; } });
1331
1793
 
1332
1794
  /*!
1333
1795
  * @copyright FLYACTS GmbH 2019
@@ -1340,11 +1802,14 @@
1340
1802
  };
1341
1803
  return DecodeUriPipe;
1342
1804
  }());
1343
- DecodeUriPipe.decorators = [
1344
- { type: i0.Pipe, args: [{
1345
- name: 'kmsDecodeUri',
1346
- },] }
1347
- ];
1805
+ DecodeUriPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DecodeUriPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
1806
+ DecodeUriPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DecodeUriPipe, name: "kmsDecodeUri" });
1807
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DecodeUriPipe, decorators: [{
1808
+ type: i0.Pipe,
1809
+ args: [{
1810
+ name: 'kmsDecodeUri',
1811
+ }]
1812
+ }] });
1348
1813
 
1349
1814
  /*!
1350
1815
  * @copyright FLYACTS GmbH 2019
@@ -1357,32 +1822,14 @@
1357
1822
  };
1358
1823
  return EncodeUriPipe;
1359
1824
  }());
1360
- EncodeUriPipe.decorators = [
1361
- { type: i0.Pipe, args: [{
1362
- name: 'kmsEncodeUri',
1363
- },] }
1364
- ];
1365
-
1366
- /*!
1367
- * @copyright FLYACTS GmbH 2019
1368
- */
1369
- var SafeHtmlPipe = /** @class */ (function () {
1370
- function SafeHtmlPipe(sanitizer) {
1371
- this.sanitizer = sanitizer;
1372
- }
1373
- SafeHtmlPipe.prototype.transform = function (html) {
1374
- return this.sanitizer.bypassSecurityTrustHtml(html);
1375
- };
1376
- return SafeHtmlPipe;
1377
- }());
1378
- SafeHtmlPipe.decorators = [
1379
- { type: i0.Pipe, args: [{
1380
- name: 'kmsSafeHtml',
1381
- },] }
1382
- ];
1383
- SafeHtmlPipe.ctorParameters = function () { return [
1384
- { type: platformBrowser.DomSanitizer }
1385
- ]; };
1825
+ EncodeUriPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EncodeUriPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
1826
+ EncodeUriPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EncodeUriPipe, name: "kmsEncodeUri" });
1827
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EncodeUriPipe, decorators: [{
1828
+ type: i0.Pipe,
1829
+ args: [{
1830
+ name: 'kmsEncodeUri',
1831
+ }]
1832
+ }] });
1386
1833
 
1387
1834
  /**
1388
1835
  * @copyright KMS GmbH
@@ -1396,14 +1843,14 @@
1396
1843
  };
1397
1844
  return SafeStylePipe;
1398
1845
  }());
1399
- SafeStylePipe.decorators = [
1400
- { type: i0.Pipe, args: [{
1401
- name: 'kmsSafeStyle',
1402
- },] }
1403
- ];
1404
- SafeStylePipe.ctorParameters = function () { return [
1405
- { type: platformBrowser.DomSanitizer }
1406
- ]; };
1846
+ SafeStylePipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SafeStylePipe, deps: [{ token: i1__namespace$2.DomSanitizer }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
1847
+ SafeStylePipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SafeStylePipe, name: "kmsSafeStyle" });
1848
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SafeStylePipe, decorators: [{
1849
+ type: i0.Pipe,
1850
+ args: [{
1851
+ name: 'kmsSafeStyle',
1852
+ }]
1853
+ }], ctorParameters: function () { return [{ type: i1__namespace$2.DomSanitizer }]; } });
1407
1854
 
1408
1855
  /**
1409
1856
  * @copyright KMS GmbH
@@ -1417,14 +1864,14 @@
1417
1864
  };
1418
1865
  return SafeUrlPipe;
1419
1866
  }());
1420
- SafeUrlPipe.decorators = [
1421
- { type: i0.Pipe, args: [{
1422
- name: 'kmsSafeSUrl',
1423
- },] }
1424
- ];
1425
- SafeUrlPipe.ctorParameters = function () { return [
1426
- { type: platformBrowser.DomSanitizer }
1427
- ]; };
1867
+ SafeUrlPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SafeUrlPipe, deps: [{ token: i1__namespace$2.DomSanitizer }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
1868
+ SafeUrlPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SafeUrlPipe, name: "kmsSafeSUrl" });
1869
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SafeUrlPipe, decorators: [{
1870
+ type: i0.Pipe,
1871
+ args: [{
1872
+ name: 'kmsSafeSUrl',
1873
+ }]
1874
+ }], ctorParameters: function () { return [{ type: i1__namespace$2.DomSanitizer }]; } });
1428
1875
 
1429
1876
  /**
1430
1877
  * @copyright KMS GmbH
@@ -1438,14 +1885,14 @@
1438
1885
  };
1439
1886
  return SafeResourceUrlPipe;
1440
1887
  }());
1441
- SafeResourceUrlPipe.decorators = [
1442
- { type: i0.Pipe, args: [{
1443
- name: 'kmsSafeResourceSUrl',
1444
- },] }
1445
- ];
1446
- SafeResourceUrlPipe.ctorParameters = function () { return [
1447
- { type: platformBrowser.DomSanitizer }
1448
- ]; };
1888
+ SafeResourceUrlPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SafeResourceUrlPipe, deps: [{ token: i1__namespace$2.DomSanitizer }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
1889
+ SafeResourceUrlPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SafeResourceUrlPipe, name: "kmsSafeResourceSUrl" });
1890
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SafeResourceUrlPipe, decorators: [{
1891
+ type: i0.Pipe,
1892
+ args: [{
1893
+ name: 'kmsSafeResourceSUrl',
1894
+ }]
1895
+ }], ctorParameters: function () { return [{ type: i1__namespace$2.DomSanitizer }]; } });
1449
1896
 
1450
1897
  var TypeofPipe = /** @class */ (function () {
1451
1898
  function TypeofPipe() {
@@ -1455,11 +1902,14 @@
1455
1902
  };
1456
1903
  return TypeofPipe;
1457
1904
  }());
1458
- TypeofPipe.decorators = [
1459
- { type: i0.Pipe, args: [{
1460
- name: 'kmsTypeOf',
1461
- },] }
1462
- ];
1905
+ TypeofPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TypeofPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
1906
+ TypeofPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TypeofPipe, name: "kmsTypeOf" });
1907
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TypeofPipe, decorators: [{
1908
+ type: i0.Pipe,
1909
+ args: [{
1910
+ name: 'kmsTypeOf',
1911
+ }]
1912
+ }] });
1463
1913
 
1464
1914
  /**
1465
1915
  * @copyright KMS GmbH
@@ -1475,9 +1925,12 @@
1475
1925
  };
1476
1926
  return TrimPipe;
1477
1927
  }());
1478
- TrimPipe.decorators = [
1479
- { type: i0.Pipe, args: [{ name: 'kmsTrim' },] }
1480
- ];
1928
+ TrimPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TrimPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
1929
+ TrimPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TrimPipe, name: "kmsTrim" });
1930
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TrimPipe, decorators: [{
1931
+ type: i0.Pipe,
1932
+ args: [{ name: 'kmsTrim' }]
1933
+ }] });
1481
1934
 
1482
1935
  /**
1483
1936
  * @copyright KMS GmbH
@@ -1493,12 +1946,15 @@
1493
1946
  };
1494
1947
  return ToNumberPipe;
1495
1948
  }());
1496
- ToNumberPipe.decorators = [
1497
- { type: i0.Pipe, args: [{
1498
- name: 'kmsToNumber',
1499
- pure: false
1500
- },] }
1501
- ];
1949
+ ToNumberPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ToNumberPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
1950
+ ToNumberPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ToNumberPipe, name: "kmsToNumber", pure: false });
1951
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ToNumberPipe, decorators: [{
1952
+ type: i0.Pipe,
1953
+ args: [{
1954
+ name: 'kmsToNumber',
1955
+ pure: false
1956
+ }]
1957
+ }] });
1502
1958
 
1503
1959
  /**
1504
1960
  * @copyright KMS GmbH
@@ -1508,98 +1964,58 @@
1508
1964
  }
1509
1965
  return CustomPipesModule;
1510
1966
  }());
1511
- CustomPipesModule.decorators = [
1512
- { type: i0.NgModule, args: [{
1513
- declarations: [
1514
- IntegerCurrency,
1515
- SafeHtmlPipe,
1516
- SafeStylePipe,
1517
- SafeResourceUrlPipe,
1518
- SafeUrlPipe,
1519
- EncodeUriPipe,
1520
- DecodeUriPipe,
1521
- TypeofPipe,
1522
- TrimPipe,
1523
- ToNumberPipe,
1524
- ],
1525
- imports: [common.CommonModule],
1526
- exports: [
1527
- IntegerCurrency,
1528
- SafeHtmlPipe,
1529
- SafeStylePipe,
1530
- SafeResourceUrlPipe,
1531
- SafeUrlPipe,
1532
- EncodeUriPipe,
1533
- DecodeUriPipe,
1534
- TypeofPipe,
1535
- TrimPipe,
1536
- ToNumberPipe,
1537
- ],
1538
- providers: [common.CurrencyPipe],
1539
- },] }
1540
- ];
1541
-
1542
- /*!
1543
- * @copyright FLYACTS GmbH 2019
1544
- */
1545
- var IconSize;
1546
- (function (IconSize) {
1547
- IconSize["FULLSIZE"] = "size-full";
1548
- IconSize["TINY"] = "size-16";
1549
- IconSize["SMALLER"] = "size-20";
1550
- IconSize["SMALL"] = "size-32";
1551
- IconSize["MEDIUM"] = "size-64";
1552
- IconSize["LARGE"] = "size-128";
1553
- IconSize["XL"] = "size-256";
1554
- IconSize["XXL"] = "size-512";
1555
- IconSize["XXXL"] = "size-1024";
1556
- IconSize["NONE"] = "NONE";
1557
- })(IconSize || (IconSize = {}));
1558
-
1559
- /**
1560
- * @copyright KMS GmbH
1561
- */
1562
- var IconComponent = /** @class */ (function () {
1563
- function IconComponent(sanitizer) {
1564
- this.sanitizer = sanitizer;
1565
- /**
1566
- * Optional: Different size via CSS inline style.
1567
- */
1568
- this.iconSize = IconSize.FULLSIZE;
1569
- /**
1570
- * Dont use icon sprite
1571
- */
1572
- this.dontUseSprite = false;
1573
- this.IconSize = IconSize;
1574
- this.Version = i0.VERSION.full;
1575
- this.timestamp = 0;
1576
- this.iconToShow = this.icon;
1577
- }
1578
- IconComponent.prototype.ngOnInit = function () {
1579
- this.iconToShow = this.icon;
1580
- var d = new Date();
1581
- var n = d.getTime();
1582
- this.timestamp = n;
1583
- };
1584
- return IconComponent;
1585
- }());
1586
- IconComponent.decorators = [
1587
- { type: i0.Component, args: [{
1588
- selector: 'kms-icon',
1589
- template: "<ng-container *ngIf=\"icon !== 'none' && dontUseSprite === false\">\r\n <span class=\"icon {{ iconSize }}\" [ngClass]=\"iconClass\" [ngStyle]=\"iconStyle\">\r\n <svg>\r\n <use\r\n [attr.xlink:href]=\"\r\n 'assets/sprite.svg?Version=' + Version + '#' + iconToShow\r\n \"\r\n ></use>\r\n </svg>\r\n </span>\r\n</ng-container>\r\n<ng-container *ngIf=\"icon !== 'none' && dontUseSprite === true\">\r\n <object\r\n [data]=\"\r\n sanitizer.bypassSecurityTrustResourceUrl('assets/icons/' + icon + '')\r\n \"\r\n type=\"image/svg+xml\"\r\n class=\"icon {{ iconSize }}\"\r\n [ngClass]=\"iconClass\"\r\n [ngStyle]=\"iconStyle\"\r\n ></object>\r\n</ng-container>\r\n",
1590
- styles: [""]
1591
- },] }
1592
- ];
1593
- IconComponent.ctorParameters = function () { return [
1594
- { type: platformBrowser.DomSanitizer }
1595
- ]; };
1596
- IconComponent.propDecorators = {
1597
- icon: [{ type: i0.Input }],
1598
- iconClass: [{ type: i0.Input }],
1599
- iconStyle: [{ type: i0.Input }],
1600
- iconSize: [{ type: i0.Input }],
1601
- dontUseSprite: [{ type: i0.Input }]
1602
- };
1967
+ CustomPipesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CustomPipesModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1968
+ CustomPipesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CustomPipesModule, declarations: [IntegerCurrency,
1969
+ SafeHtmlPipe,
1970
+ SafeStylePipe,
1971
+ SafeResourceUrlPipe,
1972
+ SafeUrlPipe,
1973
+ EncodeUriPipe,
1974
+ DecodeUriPipe,
1975
+ TypeofPipe,
1976
+ TrimPipe,
1977
+ ToNumberPipe], imports: [i2.CommonModule], exports: [IntegerCurrency,
1978
+ SafeHtmlPipe,
1979
+ SafeStylePipe,
1980
+ SafeResourceUrlPipe,
1981
+ SafeUrlPipe,
1982
+ EncodeUriPipe,
1983
+ DecodeUriPipe,
1984
+ TypeofPipe,
1985
+ TrimPipe,
1986
+ ToNumberPipe] });
1987
+ CustomPipesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CustomPipesModule, providers: [i2.CurrencyPipe], imports: [[i2.CommonModule]] });
1988
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CustomPipesModule, decorators: [{
1989
+ type: i0.NgModule,
1990
+ args: [{
1991
+ declarations: [
1992
+ IntegerCurrency,
1993
+ SafeHtmlPipe,
1994
+ SafeStylePipe,
1995
+ SafeResourceUrlPipe,
1996
+ SafeUrlPipe,
1997
+ EncodeUriPipe,
1998
+ DecodeUriPipe,
1999
+ TypeofPipe,
2000
+ TrimPipe,
2001
+ ToNumberPipe,
2002
+ ],
2003
+ imports: [i2.CommonModule],
2004
+ exports: [
2005
+ IntegerCurrency,
2006
+ SafeHtmlPipe,
2007
+ SafeStylePipe,
2008
+ SafeResourceUrlPipe,
2009
+ SafeUrlPipe,
2010
+ EncodeUriPipe,
2011
+ DecodeUriPipe,
2012
+ TypeofPipe,
2013
+ TrimPipe,
2014
+ ToNumberPipe,
2015
+ ],
2016
+ providers: [i2.CurrencyPipe],
2017
+ }]
2018
+ }] });
1603
2019
 
1604
2020
  var EnumRadiogroupComponent = /** @class */ (function (_super) {
1605
2021
  __extends(EnumRadiogroupComponent, _super);
@@ -1625,28 +2041,34 @@
1625
2041
  };
1626
2042
  return EnumRadiogroupComponent;
1627
2043
  }(FormControlParentComponent));
1628
- EnumRadiogroupComponent.decorators = [
1629
- { type: i0.Component, args: [{
1630
- selector: 'kms-enum-radiogroup',
1631
- template: "<form [formGroup]=\"form\">\r\n <div>{{ header }}</div>\r\n <mat-radio-group [formControl]=\"form.controls['enumData']\" [disabled]=\"disabled\" #child>\r\n <mat-radio-button [value]=\"choice\" [checked]=\"value === choice\" *ngFor=\"let choice of optionValues\">{{ translationPrefix + '.' + choice | translate }}</mat-radio-button>\r\n </mat-radio-group>\r\n</form>",
1632
- providers: [
1633
- {
1634
- provide: forms.NG_VALUE_ACCESSOR,
1635
- useExisting: i0.forwardRef(function () { return EnumRadiogroupComponent; }),
1636
- multi: true,
1637
- },
1638
- ]
1639
- },] }
1640
- ];
1641
- EnumRadiogroupComponent.ctorParameters = function () { return [
1642
- { type: forms.FormBuilder },
1643
- { type: i0.Renderer2 }
1644
- ]; };
1645
- EnumRadiogroupComponent.propDecorators = {
1646
- header: [{ type: i0.Input }],
1647
- optionsEnum: [{ type: i0.Input }],
1648
- translationPrefix: [{ type: i0.Input }]
1649
- };
2044
+ EnumRadiogroupComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EnumRadiogroupComponent, deps: [{ token: i1__namespace$1.FormBuilder }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Component });
2045
+ EnumRadiogroupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: EnumRadiogroupComponent, selector: "kms-enum-radiogroup", inputs: { header: "header", optionsEnum: "optionsEnum", translationPrefix: "translationPrefix" }, providers: [
2046
+ {
2047
+ provide: i1.NG_VALUE_ACCESSOR,
2048
+ useExisting: i0.forwardRef(function () { return EnumRadiogroupComponent; }),
2049
+ multi: true,
2050
+ },
2051
+ ], usesInheritance: true, ngImport: i0__namespace, template: "<form [formGroup]=\"form\">\r\n <div>{{ header }}</div>\r\n <mat-radio-group [formControl]=\"form.controls['enumData']\" [disabled]=\"disabled\" #child>\r\n <mat-radio-button [value]=\"choice\" [checked]=\"value === choice\" *ngFor=\"let choice of optionValues\">{{ translationPrefix + '.' + choice | translate }}</mat-radio-button>\r\n </mat-radio-group>\r\n</form>", components: [{ type: i2__namespace$2.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }], directives: [{ type: i1__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2__namespace$2.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { type: i1__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "translate": i5__namespace$1.TranslatePipe } });
2052
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EnumRadiogroupComponent, decorators: [{
2053
+ type: i0.Component,
2054
+ args: [{
2055
+ selector: 'kms-enum-radiogroup',
2056
+ templateUrl: './enum-radiogroup.component.html',
2057
+ providers: [
2058
+ {
2059
+ provide: i1.NG_VALUE_ACCESSOR,
2060
+ useExisting: i0.forwardRef(function () { return EnumRadiogroupComponent; }),
2061
+ multi: true,
2062
+ },
2063
+ ],
2064
+ }]
2065
+ }], ctorParameters: function () { return [{ type: i1__namespace$1.FormBuilder }, { type: i0__namespace.Renderer2 }]; }, propDecorators: { header: [{
2066
+ type: i0.Input
2067
+ }], optionsEnum: [{
2068
+ type: i0.Input
2069
+ }], translationPrefix: [{
2070
+ type: i0.Input
2071
+ }] } });
1650
2072
 
1651
2073
  /*!
1652
2074
  * @copyright FLYACTS GmbH 2019
@@ -1660,6 +2082,7 @@
1660
2082
  this.itemTitle = '';
1661
2083
  this.showAsCard = false;
1662
2084
  this.isSmall = false;
2085
+ this.expanded = false;
1663
2086
  this.panelOpenState = false;
1664
2087
  }
1665
2088
  KMSAccordionItemComponent.prototype.ngOnInit = function () {
@@ -1667,21 +2090,24 @@
1667
2090
  };
1668
2091
  return KMSAccordionItemComponent;
1669
2092
  }());
1670
- KMSAccordionItemComponent.decorators = [
1671
- { type: i0.Component, args: [{
1672
- selector: 'kms-accordion-item',
1673
- template: "<mat-expansion-panel\r\n class=\"accordion-item\" \r\n [ngClass]=\"{showAsCard: showAsCard, showFlat: !showAsCard, isSmall: isSmall}\"\r\n (opened)=\"panelOpenState = true\" \r\n (closed)=\"panelOpenState = false\"\r\n hideToggle=\"true\">\r\n <mat-expansion-panel-header class=\"accordion-item-header\">\r\n <mat-panel-title class=\"mat-subheading-2 accordion-item-title\">\r\n <div [innerHtml]=\"itemTitleTrustHtml\"></div>\r\n <ng-content select=\"[itemTitleElement]\"></ng-content> \r\n </mat-panel-title>\r\n <div class=\"accordion-item-header-icon-wrapper\">\r\n <kms-icon *ngIf=\"!panelOpenState\" icon=\"ic_plus\" iconClass=\"color-red\" class=\"accordion-item-header-icon-wrapper-desktop\"></kms-icon>\r\n <kms-icon *ngIf=\"panelOpenState\" icon=\"ic_minus\" iconClass=\"color-red\" class=\"accordion-item-header-icon-wrapper-desktop\"></kms-icon>\r\n\r\n <kms-icon *ngIf=\"!panelOpenState\" icon=\"chevron-down\" iconClass=\"color-red\" class=\"accordion-item-header-icon-wrapper-mobile\"></kms-icon>\r\n <kms-icon *ngIf=\"panelOpenState\" icon=\"chevron-top\" iconClass=\"color-red\" class=\"accordion-item-header-icon-wrapper-mobile\"></kms-icon>\r\n </div>\r\n </mat-expansion-panel-header>\r\n <ng-content></ng-content>\r\n</mat-expansion-panel>",
1674
- styles: [""]
1675
- },] }
1676
- ];
1677
- KMSAccordionItemComponent.ctorParameters = function () { return [
1678
- { type: platformBrowser.DomSanitizer }
1679
- ]; };
1680
- KMSAccordionItemComponent.propDecorators = {
1681
- itemTitle: [{ type: i0.Input }],
1682
- showAsCard: [{ type: i0.Input }],
1683
- isSmall: [{ type: i0.Input }]
1684
- };
2093
+ KMSAccordionItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KMSAccordionItemComponent, deps: [{ token: i1__namespace$2.DomSanitizer }], target: i0__namespace.ɵɵFactoryTarget.Component });
2094
+ KMSAccordionItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: KMSAccordionItemComponent, selector: "kms-accordion-item", inputs: { itemTitle: "itemTitle", showAsCard: "showAsCard", isSmall: "isSmall", expanded: "expanded" }, ngImport: i0__namespace, template: "<mat-expansion-panel\r\n class=\"accordion-item\"\r\n [ngClass]=\"{showAsCard: showAsCard, showFlat: !showAsCard, isSmall: isSmall}\"\r\n (opened)=\"panelOpenState = true\"\r\n (closed)=\"panelOpenState = false\"\r\n [expanded] = \"expanded\"\r\n hideToggle=\"true\">\r\n <mat-expansion-panel-header class=\"accordion-item-header\">\r\n <mat-panel-title class=\"mat-subheading-2 accordion-item-title\">\r\n <div [innerHtml]=\"itemTitleTrustHtml\"></div>\r\n <ng-content select=\"[itemTitleElement]\"></ng-content>\r\n </mat-panel-title>\r\n <div class=\"accordion-item-header-icon-wrapper\">\r\n <kms-icon *ngIf=\"!panelOpenState\" icon=\"ic_plus\" iconClass=\"color-red\" class=\"accordion-item-header-icon-wrapper-desktop\"></kms-icon>\r\n <kms-icon *ngIf=\"panelOpenState\" icon=\"ic_minus\" iconClass=\"color-red\" class=\"accordion-item-header-icon-wrapper-desktop\"></kms-icon>\r\n\r\n <kms-icon *ngIf=\"!panelOpenState\" icon=\"chevron-down\" iconClass=\"color-red\" class=\"accordion-item-header-icon-wrapper-mobile\"></kms-icon>\r\n <kms-icon *ngIf=\"panelOpenState\" icon=\"chevron-top\" iconClass=\"color-red\" class=\"accordion-item-header-icon-wrapper-mobile\"></kms-icon>\r\n </div>\r\n </mat-expansion-panel-header>\r\n <ng-content></ng-content>\r\n</mat-expansion-panel>\r\n", styles: [""], components: [{ type: i2__namespace$4.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { type: i2__namespace$4.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["tabIndex", "expandedHeight", "collapsedHeight"] }, { type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "iconStyle", "iconSize", "dontUseSprite"] }], directives: [{ type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2__namespace$4.MatExpansionPanelTitle, selector: "mat-panel-title" }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
2095
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KMSAccordionItemComponent, decorators: [{
2096
+ type: i0.Component,
2097
+ args: [{
2098
+ selector: 'kms-accordion-item',
2099
+ templateUrl: './kms-accordion-item.component.html',
2100
+ styleUrls: ['./kms-accordion-item.component.scss'],
2101
+ }]
2102
+ }], ctorParameters: function () { return [{ type: i1__namespace$2.DomSanitizer }]; }, propDecorators: { itemTitle: [{
2103
+ type: i0.Input
2104
+ }], showAsCard: [{
2105
+ type: i0.Input
2106
+ }], isSmall: [{
2107
+ type: i0.Input
2108
+ }], expanded: [{
2109
+ type: i0.Input
2110
+ }] } });
1685
2111
 
1686
2112
  /**
1687
2113
  * Service to get viewport
@@ -1728,7 +2154,7 @@
1728
2154
  ];
1729
2155
  this.viewportChangedSubscriber = new rxjs.Subject();
1730
2156
  this.viewportResizedSubscriber = new rxjs.Subject();
1731
- if (common.isPlatformBrowser(this.platformId)) {
2157
+ if (i2.isPlatformBrowser(this.platformId)) {
1732
2158
  window.addEventListener('resize', this.documentSizeChanged.bind(this), { passive: true });
1733
2159
  }
1734
2160
  }
@@ -1736,25 +2162,25 @@
1736
2162
  * Get window height
1737
2163
  */
1738
2164
  ViewportService.prototype.getDocumentHeight = function () {
1739
- return common.isPlatformBrowser(this.platformId) ? document.body.clientHeight : 1200;
2165
+ return i2.isPlatformBrowser(this.platformId) ? document.body.clientHeight : 1200;
1740
2166
  };
1741
2167
  /**
1742
2168
  * Get window width
1743
2169
  */
1744
2170
  ViewportService.prototype.getDocumentWidth = function () {
1745
- return common.isPlatformBrowser(this.platformId) ? document.body.clientWidth : 1200;
2171
+ return i2.isPlatformBrowser(this.platformId) ? document.body.clientWidth : 1200;
1746
2172
  };
1747
2173
  /**
1748
2174
  * Get window height
1749
2175
  */
1750
2176
  ViewportService.prototype.getWindowHeight = function () {
1751
- return common.isPlatformBrowser(this.platformId) ? window.innerHeight : 1200;
2177
+ return i2.isPlatformBrowser(this.platformId) ? window.innerHeight : 1200;
1752
2178
  };
1753
2179
  /**
1754
2180
  * Get window width
1755
2181
  */
1756
2182
  ViewportService.prototype.getWindowWidth = function () {
1757
- return common.isPlatformBrowser(this.platformId) ? window.innerWidth : 1200;
2183
+ return i2.isPlatformBrowser(this.platformId) ? window.innerWidth : 1200;
1758
2184
  };
1759
2185
  /**
1760
2186
  * Returns the current viewport MQ as string
@@ -1762,7 +2188,7 @@
1762
2188
  */
1763
2189
  ViewportService.prototype.getCurrentViewPort = function () {
1764
2190
  if (!this.currentViewport) {
1765
- var currentWidth = common.isPlatformBrowser(this.platformId) ? document.body.clientWidth : 1200;
2191
+ var currentWidth = i2.isPlatformBrowser(this.platformId) ? document.body.clientWidth : 1200;
1766
2192
  this.currentViewport = this.convertWidthToMediaQuery(currentWidth);
1767
2193
  }
1768
2194
  return this.currentViewport;
@@ -1781,7 +2207,7 @@
1781
2207
  };
1782
2208
  ViewportService.prototype.scrollToElementId = function (el, alignCenter) {
1783
2209
  if (alignCenter === void 0) { alignCenter = false; }
1784
- if (common.isPlatformBrowser(this.platformId)) {
2210
+ if (i2.isPlatformBrowser(this.platformId)) {
1785
2211
  this.scrollToElement(document.querySelector('#' + el), alignCenter);
1786
2212
  }
1787
2213
  };
@@ -1792,7 +2218,7 @@
1792
2218
  */
1793
2219
  ViewportService.prototype.scrollToElement = function (el, alignCenter) {
1794
2220
  if (alignCenter === void 0) { alignCenter = false; }
1795
- if (common.isPlatformBrowser(this.platformId)) {
2221
+ if (i2.isPlatformBrowser(this.platformId)) {
1796
2222
  var extraScrollTop = 0;
1797
2223
  if (alignCenter) {
1798
2224
  extraScrollTop = (window.innerHeight - el.clientHeight) / 2;
@@ -1817,12 +2243,12 @@
1817
2243
  * @param top - top position value
1818
2244
  */
1819
2245
  ViewportService.prototype.scrollTop = function (top) {
1820
- if (common.isPlatformBrowser(this.platformId)) {
2246
+ if (i2.isPlatformBrowser(this.platformId)) {
1821
2247
  window.scrollTo({ left: 0, top: top, behavior: 'smooth' });
1822
2248
  }
1823
2249
  };
1824
2250
  ViewportService.prototype.ngOnDestroy = function () {
1825
- if (common.isPlatformBrowser(this.platformId)) {
2251
+ if (i2.isPlatformBrowser(this.platformId)) {
1826
2252
  window.removeEventListener('resize', this.documentSizeChanged);
1827
2253
  }
1828
2254
  };
@@ -1892,13 +2318,13 @@
1892
2318
  return currentViewport;
1893
2319
  };
1894
2320
  ViewportService.prototype.isPortrait = function () {
1895
- if (common.isPlatformBrowser(this.platformId))
2321
+ if (i2.isPlatformBrowser(this.platformId))
1896
2322
  return window.innerHeight > window.innerWidth;
1897
2323
  else
1898
2324
  return;
1899
2325
  };
1900
2326
  ViewportService.prototype.isLandscape = function () {
1901
- if (common.isPlatformBrowser(this.platformId)) {
2327
+ if (i2.isPlatformBrowser(this.platformId)) {
1902
2328
  var isLandscape = window.orientation === 90 || window.orientation === -90;
1903
2329
  return isLandscape;
1904
2330
  }
@@ -1908,12 +2334,16 @@
1908
2334
  };
1909
2335
  return ViewportService;
1910
2336
  }());
1911
- ViewportService.decorators = [
1912
- { type: i0.Injectable }
1913
- ];
1914
- ViewportService.ctorParameters = function () { return [
1915
- { type: Object, decorators: [{ type: i0.Inject, args: [i0.PLATFORM_ID,] }] }
1916
- ]; };
2337
+ ViewportService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ViewportService, deps: [{ token: i0.PLATFORM_ID }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
2338
+ ViewportService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ViewportService });
2339
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ViewportService, decorators: [{
2340
+ type: i0.Injectable
2341
+ }], ctorParameters: function () {
2342
+ return [{ type: Object, decorators: [{
2343
+ type: i0.Inject,
2344
+ args: [i0.PLATFORM_ID]
2345
+ }] }];
2346
+ } });
1917
2347
 
1918
2348
  /*!
1919
2349
  * @copyright FLYACTS GmbH 2019
@@ -2047,19 +2477,18 @@
2047
2477
  };
2048
2478
  return MapComponent;
2049
2479
  }());
2050
- MapComponent.decorators = [
2051
- { type: i0.Component, args: [{
2052
- selector: 'kms-map',
2053
- template: "<div *ngIf=\"geoDataFoundForAddress && widthSet\">\r\n <google-map\r\n height=\"415px\"\r\n [width]=\"width\"\r\n [zoom]=\"zoom\"\r\n [center]=\"center\"\r\n [options]=\"options\"\r\n >\r\n <map-marker\r\n *ngFor=\"let marker of markers\"\r\n [position]=\"marker.position\"\r\n [label]=\"marker.label\"\r\n [title]=\"marker.title\"\r\n [options]=\"marker.options\"\r\n >\r\n </map-marker>\r\n </google-map>\r\n</div>",
2054
- styles: [""]
2055
- },] }
2056
- ];
2057
- MapComponent.ctorParameters = function () { return [
2058
- { type: ViewportService }
2059
- ]; };
2060
- MapComponent.propDecorators = {
2061
- data: [{ type: i0.Input }]
2062
- };
2480
+ MapComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MapComponent, deps: [{ token: ViewportService }], target: i0__namespace.ɵɵFactoryTarget.Component });
2481
+ MapComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: MapComponent, selector: "kms-map", inputs: { data: "data" }, ngImport: i0__namespace, template: "<div *ngIf=\"geoDataFoundForAddress && widthSet\">\r\n <google-map\r\n height=\"415px\"\r\n [width]=\"width\"\r\n [zoom]=\"zoom\"\r\n [center]=\"center\"\r\n [options]=\"options\"\r\n >\r\n <map-marker\r\n *ngFor=\"let marker of markers\"\r\n [position]=\"marker.position\"\r\n [label]=\"marker.label\"\r\n [title]=\"marker.title\"\r\n [options]=\"marker.options\"\r\n >\r\n </map-marker>\r\n </google-map>\r\n</div>", styles: [""], components: [{ type: i2__namespace$5.GoogleMap, selector: "google-map", inputs: ["height", "width", "center", "zoom", "options", "mapTypeId"], outputs: ["authFailure", "boundsChanged", "centerChanged", "mapClick", "mapDblclick", "mapDrag", "mapDragend", "mapDragstart", "headingChanged", "idle", "maptypeidChanged", "mapMousemove", "mapMouseout", "mapMouseover", "projectionChanged", "mapRightclick", "tilesloaded", "tiltChanged", "zoomChanged"], exportAs: ["googleMap"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace$5.MapMarker, selector: "map-marker", inputs: ["title", "position", "label", "clickable", "options", "icon", "visible"], outputs: ["animationChanged", "mapClick", "clickableChanged", "cursorChanged", "mapDblclick", "mapDrag", "mapDragend", "draggableChanged", "mapDragstart", "flatChanged", "iconChanged", "mapMousedown", "mapMouseout", "mapMouseover", "mapMouseup", "positionChanged", "mapRightclick", "shapeChanged", "titleChanged", "visibleChanged", "zindexChanged"], exportAs: ["mapMarker"] }] });
2482
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MapComponent, decorators: [{
2483
+ type: i0.Component,
2484
+ args: [{
2485
+ selector: 'kms-map',
2486
+ templateUrl: './map.component.html',
2487
+ styleUrls: ['./map.component.scss']
2488
+ }]
2489
+ }], ctorParameters: function () { return [{ type: ViewportService }]; }, propDecorators: { data: [{
2490
+ type: i0.Input
2491
+ }] } });
2063
2492
 
2064
2493
  // TODO change values after cleaned up database
2065
2494
  exports.SalutationEnum = void 0;
@@ -2097,26 +2526,30 @@
2097
2526
  };
2098
2527
  return SalutationDropdownComponent;
2099
2528
  }(FormControlParentComponent));
2100
- SalutationDropdownComponent.decorators = [
2101
- { type: i0.Component, args: [{
2102
- selector: 'kms-salutation-dropdown',
2103
- template: "<form [formGroup]=\"form\" class=\"row\">\r\n <mat-form-field class=\"col\">\r\n <mat-select disableOptionCentering [formControl]=\"form.controls['salut']\" [placeholder]=\"placeholder\" [value]=\"value\" #child>\r\n <mat-option [value]=\"SalutationEnum.NOT_SPECIFIED\">{{ 'general.salutation.' + Object.keys(SalutationEnum)[0]?.toLowerCase() | translate }}</mat-option>\r\n <mat-option [value]=\"SalutationEnum.MALE\">{{ 'general.salutation.' + Object.keys(SalutationEnum)[1]?.toLowerCase() | translate }}</mat-option>\r\n <mat-option [value]=\"SalutationEnum.FEMALE\">{{ 'general.salutation.' + Object.keys(SalutationEnum)[2]?.toLowerCase() | translate }}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n</form>",
2104
- providers: [
2105
- {
2106
- provide: forms.NG_VALUE_ACCESSOR,
2107
- useExisting: i0.forwardRef(function () { return SalutationDropdownComponent; }),
2108
- multi: true,
2109
- },
2110
- ]
2111
- },] }
2112
- ];
2113
- SalutationDropdownComponent.ctorParameters = function () { return [
2114
- { type: forms.FormBuilder },
2115
- { type: i0.Renderer2 }
2116
- ]; };
2117
- SalutationDropdownComponent.propDecorators = {
2118
- placeholder: [{ type: i0.Input }]
2119
- };
2529
+ SalutationDropdownComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SalutationDropdownComponent, deps: [{ token: i1__namespace$1.FormBuilder }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Component });
2530
+ SalutationDropdownComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SalutationDropdownComponent, selector: "kms-salutation-dropdown", inputs: { placeholder: "placeholder" }, providers: [
2531
+ {
2532
+ provide: i1.NG_VALUE_ACCESSOR,
2533
+ useExisting: i0.forwardRef(function () { return SalutationDropdownComponent; }),
2534
+ multi: true,
2535
+ },
2536
+ ], usesInheritance: true, ngImport: i0__namespace, template: "<form [formGroup]=\"form\" class=\"row\">\r\n <mat-form-field class=\"col\">\r\n <mat-select disableOptionCentering [formControl]=\"form.controls['salut']\" [placeholder]=\"placeholder\" [value]=\"value\" #child>\r\n <mat-option [value]=\"SalutationEnum.NOT_SPECIFIED\">{{ 'general.salutation.' + Object.keys(SalutationEnum)[0]?.toLowerCase() | translate }}</mat-option>\r\n <mat-option [value]=\"SalutationEnum.MALE\">{{ 'general.salutation.' + Object.keys(SalutationEnum)[1]?.toLowerCase() | translate }}</mat-option>\r\n <mat-option [value]=\"SalutationEnum.FEMALE\">{{ 'general.salutation.' + Object.keys(SalutationEnum)[2]?.toLowerCase() | translate }}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n</form>", components: [{ type: i2__namespace$1.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i3__namespace.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { type: i4__namespace.MatOption, selector: "mat-option", exportAs: ["matOption"] }], directives: [{ type: i1__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i1__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "translate": i5__namespace$1.TranslatePipe } });
2537
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SalutationDropdownComponent, decorators: [{
2538
+ type: i0.Component,
2539
+ args: [{
2540
+ selector: 'kms-salutation-dropdown',
2541
+ templateUrl: './salutation-dropdown.component.html',
2542
+ providers: [
2543
+ {
2544
+ provide: i1.NG_VALUE_ACCESSOR,
2545
+ useExisting: i0.forwardRef(function () { return SalutationDropdownComponent; }),
2546
+ multi: true,
2547
+ },
2548
+ ],
2549
+ }]
2550
+ }], ctorParameters: function () { return [{ type: i1__namespace$1.FormBuilder }, { type: i0__namespace.Renderer2 }]; }, propDecorators: { placeholder: [{
2551
+ type: i0.Input
2552
+ }] } });
2120
2553
 
2121
2554
  var TooltipComponent = /** @class */ (function () {
2122
2555
  function TooltipComponent() {
@@ -2124,53 +2557,18 @@
2124
2557
  }
2125
2558
  return TooltipComponent;
2126
2559
  }());
2127
- TooltipComponent.decorators = [
2128
- { type: i0.Component, args: [{
2129
- selector: 'kms-tooltip-element',
2130
- template: "<ng-content></ng-content>",
2131
- styles: ["[kmsTooltip]{position:relative}\n"]
2132
- },] }
2133
- ];
2134
- TooltipComponent.propDecorators = {
2135
- tooltipTitle: [{ type: i0.Input }]
2136
- };
2137
-
2138
- /**
2139
- * Attached File DTO
2140
- */
2141
- var AttachedFileDTO = /** @class */ (function () {
2142
- function AttachedFileDTO() {
2143
- }
2144
- return AttachedFileDTO;
2145
- }());
2146
-
2147
- var TooltipIconComponent = /** @class */ (function () {
2148
- function TooltipIconComponent() {
2149
- this.tooltipTitle = "";
2150
- this.tooltipText = "";
2151
- this.tooltipLinkText = "";
2152
- this.tooltipLinkUrl = "";
2153
- this.placement = "";
2154
- this.delay = 1000;
2155
- this.IconSize = exports.IconSize;
2156
- }
2157
- return TooltipIconComponent;
2158
- }());
2159
- TooltipIconComponent.decorators = [
2160
- { type: i0.Component, args: [{
2161
- selector: 'kms-tooltip-icon',
2162
- template: "<span\r\n kmsTooltip\r\n [tooltipTitle]=\"tooltipTitle\"\r\n [tooltipText]=\"tooltipText\"\r\n [tooltipPlacement]=\"placement\"\r\n [tooltipDelay]=\"delay\"\r\n [tooltipLinkText]=\"tooltipLinkText\"\r\n [tooltipLinkUrl]=\"tooltipLinkUrl\"\r\n>\r\n <kms-icon icon=\"ic_info\" [iconSize]=\"IconSize.SMALLER\" [iconClass]=\"'color-primary'\"></kms-icon>\r\n</span>\r\n",
2163
- styles: [""]
2164
- },] }
2165
- ];
2166
- TooltipIconComponent.propDecorators = {
2167
- tooltipTitle: [{ type: i0.Input }],
2168
- tooltipText: [{ type: i0.Input }],
2169
- tooltipLinkText: [{ type: i0.Input }],
2170
- tooltipLinkUrl: [{ type: i0.Input }],
2171
- placement: [{ type: i0.Input }],
2172
- delay: [{ type: i0.Input }]
2173
- };
2560
+ TooltipComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TooltipComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
2561
+ TooltipComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TooltipComponent, selector: "kms-tooltip-element", inputs: { tooltipTitle: "tooltipTitle" }, ngImport: i0__namespace, template: "<ng-content></ng-content>", styles: ["[kmsTooltip]{position:relative}\n"] });
2562
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TooltipComponent, decorators: [{
2563
+ type: i0.Component,
2564
+ args: [{
2565
+ selector: 'kms-tooltip-element',
2566
+ templateUrl: './tooltip.component.html',
2567
+ styleUrls: ['./tooltip.component.scss']
2568
+ }]
2569
+ }], propDecorators: { tooltipTitle: [{
2570
+ type: i0.Input
2571
+ }] } });
2174
2572
 
2175
2573
  var SalutationRadiogroupComponent = /** @class */ (function (_super) {
2176
2574
  __extends(SalutationRadiogroupComponent, _super);
@@ -2197,23 +2595,28 @@
2197
2595
  };
2198
2596
  return SalutationRadiogroupComponent;
2199
2597
  }(FormControlParentComponent));
2200
- SalutationRadiogroupComponent.decorators = [
2201
- { type: i0.Component, args: [{
2202
- selector: 'kms-salutation-radiogroup',
2203
- template: "<form [formGroup]=\"form\" >\r\n <mat-radio-group [formControl]=\"form.controls['salut']\" [disabled]=\"disabled\" #radioGroup>\r\n <mat-radio-button color=\"primary\" [value]=\"SalutationEnum.NOT_SPECIFIED\" [checked]=\"value === SalutationEnum.NOT_SPECIFIED\">\r\n {{ 'general.salutation.' + Object.keys(SalutationEnum)[0]?.toLowerCase() | translate }}\r\n </mat-radio-button>\r\n <mat-radio-button color=\"primary\" [value]=\"SalutationEnum.MALE\" [checked]=\"value === SalutationEnum.MALE\">\r\n {{ 'general.salutation.' + Object.keys(SalutationEnum)[1]?.toLowerCase() | translate }}\r\n </mat-radio-button>\r\n <mat-radio-button color=\"primary\" [value]=\"SalutationEnum.FEMALE\" [checked]=\"value === SalutationEnum.FEMALE\">\r\n {{ 'general.salutation.' + Object.keys(SalutationEnum)[2]?.toLowerCase() | translate }}\r\n </mat-radio-button>\r\n </mat-radio-group>\r\n</form>",
2204
- providers: [
2205
- {
2206
- provide: forms.NG_VALUE_ACCESSOR,
2207
- useExisting: i0.forwardRef(function () { return SalutationRadiogroupComponent; }),
2208
- multi: true,
2209
- },
2210
- ]
2211
- },] }
2212
- ];
2213
- SalutationRadiogroupComponent.ctorParameters = function () { return [
2214
- { type: forms.FormBuilder },
2215
- { type: i0.Renderer2 }
2216
- ]; };
2598
+ SalutationRadiogroupComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SalutationRadiogroupComponent, deps: [{ token: i1__namespace$1.FormBuilder }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Component });
2599
+ SalutationRadiogroupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SalutationRadiogroupComponent, selector: "kms-salutation-radiogroup", providers: [
2600
+ {
2601
+ provide: i1.NG_VALUE_ACCESSOR,
2602
+ useExisting: i0.forwardRef(function () { return SalutationRadiogroupComponent; }),
2603
+ multi: true,
2604
+ },
2605
+ ], usesInheritance: true, ngImport: i0__namespace, template: "<form [formGroup]=\"form\" >\r\n <mat-radio-group [formControl]=\"form.controls['salut']\" [disabled]=\"disabled\" #radioGroup>\r\n <mat-radio-button color=\"primary\" [value]=\"SalutationEnum.NOT_SPECIFIED\" [checked]=\"value === SalutationEnum.NOT_SPECIFIED\">\r\n {{ 'general.salutation.' + Object.keys(SalutationEnum)[0]?.toLowerCase() | translate }}\r\n </mat-radio-button>\r\n <mat-radio-button color=\"primary\" [value]=\"SalutationEnum.MALE\" [checked]=\"value === SalutationEnum.MALE\">\r\n {{ 'general.salutation.' + Object.keys(SalutationEnum)[1]?.toLowerCase() | translate }}\r\n </mat-radio-button>\r\n <mat-radio-button color=\"primary\" [value]=\"SalutationEnum.FEMALE\" [checked]=\"value === SalutationEnum.FEMALE\">\r\n {{ 'general.salutation.' + Object.keys(SalutationEnum)[2]?.toLowerCase() | translate }}\r\n </mat-radio-button>\r\n </mat-radio-group>\r\n</form>", components: [{ type: i2__namespace$2.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }], directives: [{ type: i1__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2__namespace$2.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { type: i1__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "translate": i5__namespace$1.TranslatePipe } });
2606
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SalutationRadiogroupComponent, decorators: [{
2607
+ type: i0.Component,
2608
+ args: [{
2609
+ selector: 'kms-salutation-radiogroup',
2610
+ templateUrl: './salutation-radiogroup.component.html',
2611
+ providers: [
2612
+ {
2613
+ provide: i1.NG_VALUE_ACCESSOR,
2614
+ useExisting: i0.forwardRef(function () { return SalutationRadiogroupComponent; }),
2615
+ multi: true,
2616
+ },
2617
+ ],
2618
+ }]
2619
+ }], ctorParameters: function () { return [{ type: i1__namespace$1.FormBuilder }, { type: i0__namespace.Renderer2 }]; } });
2217
2620
 
2218
2621
  /**
2219
2622
  * @copyright KMS GmbH
@@ -2223,7 +2626,7 @@
2223
2626
  this.platformId = platformId;
2224
2627
  }
2225
2628
  BackToTopComponent.prototype.onWindowScroll = function () {
2226
- if (common.isPlatformBrowser(this.platformId)) {
2629
+ if (i2.isPlatformBrowser(this.platformId)) {
2227
2630
  if (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop > 100) {
2228
2631
  this.windowScrolled = true;
2229
2632
  }
@@ -2235,7 +2638,7 @@
2235
2638
  }
2236
2639
  };
2237
2640
  BackToTopComponent.prototype.scrollToTop = function () {
2238
- if (common.isPlatformBrowser(this.platformId)) {
2641
+ if (i2.isPlatformBrowser(this.platformId)) {
2239
2642
  (function smoothscroll() {
2240
2643
  var currentScroll = document.documentElement.scrollTop || document.body.scrollTop;
2241
2644
  if (currentScroll > 0) {
@@ -2247,18 +2650,23 @@
2247
2650
  };
2248
2651
  return BackToTopComponent;
2249
2652
  }());
2250
- BackToTopComponent.decorators = [
2251
- { type: i0.Component, args: [{
2252
- selector: 'kms-back-to-top',
2253
- template: "<div class=\"scrollToTop\"\r\n [ngClass]=\"{'show': windowScrolled}\"\r\n (click)=\"scrollToTop()\">\r\n <div class=\"scrollToTop-inner\">\r\n <kms-icon icon=\"floating_button_clear\" iconClass=\"color-white\"></kms-icon>\r\n </div>\r\n</div>"
2254
- },] }
2255
- ];
2256
- BackToTopComponent.ctorParameters = function () { return [
2257
- { type: Object, decorators: [{ type: i0.Inject, args: [i0.PLATFORM_ID,] }] }
2258
- ]; };
2259
- BackToTopComponent.propDecorators = {
2260
- onWindowScroll: [{ type: i0.HostListener, args: ['window:scroll', [],] }]
2261
- };
2653
+ BackToTopComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BackToTopComponent, deps: [{ token: i0.PLATFORM_ID }], target: i0__namespace.ɵɵFactoryTarget.Component });
2654
+ BackToTopComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: BackToTopComponent, selector: "kms-back-to-top", host: { listeners: { "window:scroll": "onWindowScroll()" } }, ngImport: i0__namespace, template: "<div class=\"scrollToTop\"\r\n [ngClass]=\"{'show': windowScrolled}\"\r\n (click)=\"scrollToTop()\">\r\n <div class=\"scrollToTop-inner\">\r\n <kms-icon icon=\"floating_button_clear\" iconClass=\"color-white\"></kms-icon>\r\n </div>\r\n</div>", components: [{ type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "iconStyle", "iconSize", "dontUseSprite"] }], directives: [{ type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
2655
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BackToTopComponent, decorators: [{
2656
+ type: i0.Component,
2657
+ args: [{
2658
+ selector: 'kms-back-to-top',
2659
+ templateUrl: './back-to-top.component.html',
2660
+ }]
2661
+ }], ctorParameters: function () {
2662
+ return [{ type: Object, decorators: [{
2663
+ type: i0.Inject,
2664
+ args: [i0.PLATFORM_ID]
2665
+ }] }];
2666
+ }, propDecorators: { onWindowScroll: [{
2667
+ type: i0.HostListener,
2668
+ args: ['window:scroll', []]
2669
+ }] } });
2262
2670
 
2263
2671
  var ButtonResponseType;
2264
2672
  (function (ButtonResponseType) {
@@ -2305,18 +2713,21 @@
2305
2713
  };
2306
2714
  return GenericDialogComponent;
2307
2715
  }());
2308
- GenericDialogComponent.decorators = [
2309
- { type: i0.Component, args: [{
2310
- selector: 'kms-generic-dialog',
2311
- template: "<div mat-dialog-title class=\"mat-dialog-title\">\r\n <h3>{{ data.title }}</h3>\r\n</div>\r\n<div mat-dialog-content class=\"mat-dialog-content\">\r\n {{ data.message }}\r\n</div>\r\n<div mat-dialog-actions class=\"custom-dialog-actions\">\r\n <button\r\n mat-flat-button\r\n class=\"test_secondary_button\"\r\n color=\"accent\"\r\n (click)=\"onClickAction(ButtonResponseType.secondary)\"\r\n >\r\n {{ buttons.secondary }}\r\n </button>\r\n <button\r\n mat-flat-button\r\n class=\"test_primary_button\"\r\n color=\"primary\"\r\n (click)=\"onClickAction(ButtonResponseType.primary)\"\r\n >\r\n {{ buttons.primary }}\r\n </button>\r\n</div>\r\n",
2312
- styles: [""]
2313
- },] }
2314
- ];
2315
- GenericDialogComponent.ctorParameters = function () { return [
2316
- { type: dialog.MatDialogRef },
2317
- { type: i0.NgZone },
2318
- { type: undefined, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
2319
- ]; };
2716
+ GenericDialogComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: GenericDialogComponent, deps: [{ token: i1__namespace$4.MatDialogRef }, { token: i0__namespace.NgZone }, { token: i1$4.MAT_DIALOG_DATA }], target: i0__namespace.ɵɵFactoryTarget.Component });
2717
+ GenericDialogComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: GenericDialogComponent, selector: "kms-generic-dialog", ngImport: i0__namespace, template: "<div mat-dialog-title class=\"mat-dialog-title\">\r\n <h3>{{ data.title }}</h3>\r\n</div>\r\n<div mat-dialog-content class=\"mat-dialog-content\">\r\n {{ data.message }}\r\n</div>\r\n<div mat-dialog-actions class=\"custom-dialog-actions\">\r\n <button\r\n mat-flat-button\r\n class=\"test_secondary_button\"\r\n color=\"accent\"\r\n (click)=\"onClickAction(ButtonResponseType.secondary)\"\r\n >\r\n {{ buttons.secondary }}\r\n </button>\r\n <button\r\n mat-flat-button\r\n class=\"test_primary_button\"\r\n color=\"primary\"\r\n (click)=\"onClickAction(ButtonResponseType.primary)\"\r\n >\r\n {{ buttons.primary }}\r\n </button>\r\n</div>\r\n", styles: [""], components: [{ type: i2__namespace$3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i1__namespace$4.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace$4.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i1__namespace$4.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }] });
2718
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: GenericDialogComponent, decorators: [{
2719
+ type: i0.Component,
2720
+ args: [{
2721
+ selector: 'kms-generic-dialog',
2722
+ templateUrl: './generic-dialog.component.html',
2723
+ styleUrls: ['./generic-dialog.component.scss'],
2724
+ }]
2725
+ }], ctorParameters: function () {
2726
+ return [{ type: i1__namespace$4.MatDialogRef }, { type: i0__namespace.NgZone }, { type: undefined, decorators: [{
2727
+ type: i0.Inject,
2728
+ args: [i1$4.MAT_DIALOG_DATA]
2729
+ }] }];
2730
+ } });
2320
2731
 
2321
2732
  var ButtonWithConfirmDialogComponent = /** @class */ (function () {
2322
2733
  // eslint-disable-next-line @typescript-eslint/no-empty-function
@@ -2352,24 +2763,28 @@
2352
2763
  };
2353
2764
  return ButtonWithConfirmDialogComponent;
2354
2765
  }());
2355
- ButtonWithConfirmDialogComponent.decorators = [
2356
- { type: i0.Component, args: [{
2357
- selector: 'kms-button-with-confirm-dialog',
2358
- template: "<button\r\n type=\"button\"\r\n (click)=\"start()\"\r\n mat-stroked-button\r\n [disabled]=\"disabled\"\r\n>\r\n {{ buttonText }}\r\n</button>\r\n",
2359
- styles: [""]
2360
- },] }
2361
- ];
2362
- ButtonWithConfirmDialogComponent.ctorParameters = function () { return [
2363
- { type: dialog.MatDialog }
2364
- ]; };
2365
- ButtonWithConfirmDialogComponent.propDecorators = {
2366
- disabled: [{ type: i0.Input }],
2367
- buttonText: [{ type: i0.Input }],
2368
- confirmTitle: [{ type: i0.Input }],
2369
- confirmTextYes: [{ type: i0.Input }],
2370
- confirmTextNo: [{ type: i0.Input }],
2371
- onConfirmClosed: [{ type: i0.Output }]
2372
- };
2766
+ ButtonWithConfirmDialogComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ButtonWithConfirmDialogComponent, deps: [{ token: i1__namespace$4.MatDialog }], target: i0__namespace.ɵɵFactoryTarget.Component });
2767
+ ButtonWithConfirmDialogComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ButtonWithConfirmDialogComponent, selector: "kms-button-with-confirm-dialog", inputs: { disabled: "disabled", buttonText: "buttonText", confirmTitle: "confirmTitle", confirmTextYes: "confirmTextYes", confirmTextNo: "confirmTextNo" }, outputs: { onConfirmClosed: "onConfirmClosed" }, ngImport: i0__namespace, template: "<button\r\n type=\"button\"\r\n (click)=\"start()\"\r\n mat-stroked-button\r\n [disabled]=\"disabled\"\r\n>\r\n {{ buttonText }}\r\n</button>\r\n", styles: [""], components: [{ type: i2__namespace$3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }] });
2768
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ButtonWithConfirmDialogComponent, decorators: [{
2769
+ type: i0.Component,
2770
+ args: [{
2771
+ selector: 'kms-button-with-confirm-dialog',
2772
+ templateUrl: './button-with-confirm-dialog.component.html',
2773
+ styleUrls: ['./button-with-confirm-dialog.component.scss'],
2774
+ }]
2775
+ }], ctorParameters: function () { return [{ type: i1__namespace$4.MatDialog }]; }, propDecorators: { disabled: [{
2776
+ type: i0.Input
2777
+ }], buttonText: [{
2778
+ type: i0.Input
2779
+ }], confirmTitle: [{
2780
+ type: i0.Input
2781
+ }], confirmTextYes: [{
2782
+ type: i0.Input
2783
+ }], confirmTextNo: [{
2784
+ type: i0.Input
2785
+ }], onConfirmClosed: [{
2786
+ type: i0.Output
2787
+ }] } });
2373
2788
 
2374
2789
  /**
2375
2790
  * Dropdown from data component {@link https://leaseplan-dev.rentoffice.de/styleguide#ui-elements}
@@ -2485,95 +2900,295 @@
2485
2900
  };
2486
2901
  return DropdownFromDataComponent;
2487
2902
  }(FormControlParentComponent));
2488
- DropdownFromDataComponent.decorators = [
2489
- { type: i0.Component, args: [{
2490
- selector: 'kms-dropdown-from-data',
2491
- template: "<form [formGroup]=\"form\">\r\n <mat-form-field [attr.required]=\"required\" [floatLabel]=\"placeholder ? 'always' : 'auto'\">\r\n <mat-label>{{ label }}</mat-label>\r\n <mat-select\r\n placeholder=\"{{ placeholder }}\"\r\n disableOptionCentering\r\n [(value)]=\"value\"\r\n (selectionChange)=\"valueChanged($event?.value)\"\r\n #child\r\n [disabled]=\"disabled\"\r\n >\r\n <mat-option *ngFor=\"let key of keys; let i = index\" [value]=\"values[i]\">\r\n <span>{{ setDisplayKey(key) }}</span>\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n</form>\r\n",
2492
- providers: [
2493
- {
2494
- provide: forms.NG_VALUE_ACCESSOR,
2495
- useExisting: i0.forwardRef(function () { return DropdownFromDataComponent; }),
2496
- multi: true,
2497
- },
2498
- ]
2499
- },] }
2500
- ];
2501
- DropdownFromDataComponent.ctorParameters = function () { return [
2502
- { type: forms.FormBuilder },
2503
- { type: i0.Renderer2 }
2504
- ]; };
2505
- DropdownFromDataComponent.propDecorators = {
2506
- optionsEnum: [{ type: i0.Input }],
2507
- optionsPlainArray: [{ type: i0.Input }],
2508
- optionsObjArray: [{ type: i0.Input }],
2509
- mapKey: [{ type: i0.Input }],
2510
- mapValue: [{ type: i0.Input }],
2511
- hasNullOption: [{ type: i0.Input }],
2512
- translation: [{ type: i0.Input }],
2513
- placeholder: [{ type: i0.Input }],
2514
- label: [{ type: i0.Input }],
2515
- required: [{ type: i0.Input }],
2516
- useEnumIndexAsValue: [{ type: i0.Input }]
2517
- };
2903
+ DropdownFromDataComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DropdownFromDataComponent, deps: [{ token: i1__namespace$1.FormBuilder }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Component });
2904
+ DropdownFromDataComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DropdownFromDataComponent, selector: "kms-dropdown-from-data", inputs: { optionsEnum: "optionsEnum", optionsPlainArray: "optionsPlainArray", optionsObjArray: "optionsObjArray", mapKey: "mapKey", mapValue: "mapValue", hasNullOption: "hasNullOption", translation: "translation", placeholder: "placeholder", label: "label", required: "required", useEnumIndexAsValue: "useEnumIndexAsValue" }, providers: [
2905
+ {
2906
+ provide: i1.NG_VALUE_ACCESSOR,
2907
+ useExisting: i0.forwardRef(function () { return DropdownFromDataComponent; }),
2908
+ multi: true,
2909
+ },
2910
+ ], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace, template: "<form [formGroup]=\"form\">\r\n <mat-form-field [attr.required]=\"required\" [floatLabel]=\"placeholder ? 'always' : 'auto'\">\r\n <mat-label>{{ label }}</mat-label>\r\n <mat-select\r\n placeholder=\"{{ placeholder }}\"\r\n disableOptionCentering\r\n [(value)]=\"value\"\r\n (selectionChange)=\"valueChanged($event?.value)\"\r\n #child\r\n [disabled]=\"disabled\"\r\n >\r\n <mat-option *ngFor=\"let key of keys; let i = index\" [value]=\"values[i]\">\r\n <span>{{ setDisplayKey(key) }}</span>\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n</form>\r\n", components: [{ type: i2__namespace$1.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i3__namespace.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { type: i4__namespace.MatOption, selector: "mat-option", exportAs: ["matOption"] }], directives: [{ type: i1__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2__namespace$1.MatLabel, selector: "mat-label" }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
2911
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DropdownFromDataComponent, decorators: [{
2912
+ type: i0.Component,
2913
+ args: [{
2914
+ selector: 'kms-dropdown-from-data',
2915
+ templateUrl: './dropdown-from-data.component.html',
2916
+ providers: [
2917
+ {
2918
+ provide: i1.NG_VALUE_ACCESSOR,
2919
+ useExisting: i0.forwardRef(function () { return DropdownFromDataComponent; }),
2920
+ multi: true,
2921
+ },
2922
+ ],
2923
+ }]
2924
+ }], ctorParameters: function () { return [{ type: i1__namespace$1.FormBuilder }, { type: i0__namespace.Renderer2 }]; }, propDecorators: { optionsEnum: [{
2925
+ type: i0.Input
2926
+ }], optionsPlainArray: [{
2927
+ type: i0.Input
2928
+ }], optionsObjArray: [{
2929
+ type: i0.Input
2930
+ }], mapKey: [{
2931
+ type: i0.Input
2932
+ }], mapValue: [{
2933
+ type: i0.Input
2934
+ }], hasNullOption: [{
2935
+ type: i0.Input
2936
+ }], translation: [{
2937
+ type: i0.Input
2938
+ }], placeholder: [{
2939
+ type: i0.Input
2940
+ }], label: [{
2941
+ type: i0.Input
2942
+ }], required: [{
2943
+ type: i0.Input
2944
+ }], useEnumIndexAsValue: [{
2945
+ type: i0.Input
2946
+ }] } });
2518
2947
 
2519
2948
  /*!
2520
2949
  * @copyright FLYACTS GmbH 2019
2521
2950
  */
2522
- var ImageSliderComponent = /** @class */ (function () {
2523
- function ImageSliderComponent(sanitizer) {
2524
- this.sanitizer = sanitizer;
2525
- this.editMode = false;
2526
- this.orderChanged = new i0.EventEmitter();
2527
- this.deleteImageEvent = new i0.EventEmitter();
2951
+ var SwipeDirective = /** @class */ (function () {
2952
+ function SwipeDirective() {
2528
2953
  /**
2529
- * Optional: Define Swipe behaviour configuration.
2530
- * Default is 10% for the threshold definition until a swipe triggers next/previous slide.
2954
+ * Output Event that is emitted during swipe process (mouse move or touch move event).
2955
+ * Can be used for calculation purposes.
2531
2956
  */
2532
- this.swipeConfig = {
2533
- swipeThreshold: 5,
2534
- swipeThresholdType: '%',
2535
- swipeLocalPosition: true,
2536
- };
2537
- this.selectedSlide = 0;
2538
- this.isLastClickedInSliderImage = false;
2539
- this.config = {
2540
- initialSlide: 0,
2541
- slidesPerView: 3,
2542
- navigation: {
2543
- nextEl: '.swiper-button-next',
2544
- prevEl: '.swiper-button-prev',
2545
- },
2546
- watchOverflow: true,
2547
- autoHeight: true,
2548
- allowTouchMove: false,
2549
- spaceBetween: 30,
2550
- on: {
2551
- slideChange: function () {
2552
- // do something
2553
- },
2554
- slideChangeTransitionEnd: function () {
2555
- // do something
2556
- },
2557
- },
2558
- };
2957
+ this.moveEvent = new i0.EventEmitter();
2958
+ /**
2959
+ * Output Event that is emitted when swipe process end (mouse up or touch end event).
2960
+ * Can be used for calculation purposes.
2961
+ */
2962
+ this.releaseEvent = new i0.EventEmitter();
2963
+ this._startPosition = -1;
2964
+ this._lastPosX = 0;
2965
+ this._thresholdWasReached = false;
2966
+ this._timeStart = 0;
2559
2967
  }
2560
- ImageSliderComponent.prototype.ngOnInit = function () {
2561
- if (this.slides) {
2562
- // TODO use Pipe safeStyle
2563
- this.selectedSlideImage = this.sanitizer.bypassSecurityTrustStyle('url(' + this.slides[0] + ')');
2564
- }
2968
+ Object.defineProperty(SwipeDirective.prototype, "config", {
2969
+ /**
2970
+ * Needed config that defines swipe behaviour.
2971
+ * @param options SwipeOptions
2972
+ */
2973
+ set: function (options) {
2974
+ if (options) {
2975
+ this._swipeOptions = options;
2976
+ }
2977
+ },
2978
+ enumerable: false,
2979
+ configurable: true
2980
+ });
2981
+ SwipeDirective.prototype.onMouseDown = function (event) {
2982
+ this.calculateStartPosition(event);
2565
2983
  };
2566
- // !TODO
2567
- ImageSliderComponent.prototype.onKeydownHandler = function (event) {
2568
- if (event.key === 'ArrowRight') {
2569
- this.nextSlide();
2570
- }
2571
- if (event.key === 'ArrowLeft') {
2572
- this.previousSlide();
2573
- }
2984
+ SwipeDirective.prototype.onMove = function (event) {
2985
+ this.move(event);
2986
+ };
2987
+ SwipeDirective.prototype.onRelease = function (event) {
2988
+ this.release(event);
2989
+ this.reset();
2574
2990
  };
2991
+ // ** PRIVATE ** //
2575
2992
  /**
2576
- * Slide follows the finger or mouse according to it´s move delta.
2993
+ * Function checks if the current moving delta is inside the defined threshold.
2994
+ * Sets the flag to true if the threshold was reached once.
2995
+ */
2996
+ SwipeDirective.prototype.checkThreshold = function (moveEvent) {
2997
+ var percentage = this._swipeOptions && this._swipeOptions.swipeThresholdType === '%';
2998
+ if (!percentage && this._swipeOptions && moveEvent.swipeDistanceTotal < this._swipeOptions.swipeThreshold) {
2999
+ return;
3000
+ }
3001
+ else if (percentage &&
3002
+ this._swipeOptions &&
3003
+ moveEvent.swipeDistancePercentage < this._swipeOptions.swipeThreshold / 100) {
3004
+ return;
3005
+ }
3006
+ else {
3007
+ this._thresholdWasReached = true;
3008
+ }
3009
+ };
3010
+ SwipeDirective.prototype.calculateStartPosition = function (event) {
3011
+ // detect if touch or click
3012
+ this._isMobile = event.type === 'touchstart';
3013
+ // save start position
3014
+ if (this._swipeOptions && this._swipeOptions.swipeLocalPosition) {
3015
+ if (this._isMobile) {
3016
+ var touch = event.touches[0];
3017
+ this._startPosition = this._swipeOptions.swipeLocalPosition ? touch.clientX : touch.pageX;
3018
+ }
3019
+ else {
3020
+ this._startPosition = this._swipeOptions.swipeLocalPosition ? event.offsetX : event.pageX;
3021
+ }
3022
+ }
3023
+ this._lastPosX = this._startPosition;
3024
+ this._timeStart = event.timeStamp;
3025
+ this._thresholdWasReached = false;
3026
+ };
3027
+ SwipeDirective.prototype.move = function (event) {
3028
+ // failsafe
3029
+ if (typeof event === 'undefined') {
3030
+ return;
3031
+ }
3032
+ var posX = 0;
3033
+ if (this._swipeOptions) {
3034
+ if (this._isMobile && event.type === 'touchmove') {
3035
+ var touch = event.touches[0];
3036
+ posX = this._swipeOptions.swipeLocalPosition ? touch.clientX : touch.pageX;
3037
+ }
3038
+ else {
3039
+ posX = this._swipeOptions.swipeLocalPosition ? event.offsetX : event.pageX;
3040
+ }
3041
+ }
3042
+ var offsetPerFrame = posX - this._lastPosX;
3043
+ var swipeDistanceTotal = Math.abs(posX - this._startPosition);
3044
+ var swipeDistancePercentage = Math.abs(swipeDistanceTotal / event.target.clientWidth);
3045
+ var timeDuration = Math.abs(event.timeStamp - this._timeStart);
3046
+ var direction;
3047
+ var speed = 1 - swipeDistanceTotal / timeDuration;
3048
+ speed = Math.max(0.1, speed);
3049
+ if (posX - this._startPosition > 0) {
3050
+ direction = 1; // a.k.a LTR
3051
+ }
3052
+ else {
3053
+ direction = -1; // a.k.a RTL
3054
+ }
3055
+ this._moveEventData = {
3056
+ position: posX,
3057
+ offsetPerFrame: offsetPerFrame,
3058
+ swipeDistanceTotal: swipeDistanceTotal,
3059
+ swipeDistancePercentage: swipeDistancePercentage,
3060
+ direction: direction,
3061
+ speed: speed,
3062
+ thresholdWasReached: this._thresholdWasReached,
3063
+ };
3064
+ this.checkThreshold(this._moveEventData);
3065
+ // update move delta
3066
+ this._lastPosX = posX;
3067
+ // inform
3068
+ this.moveEvent.emit(this._moveEventData);
3069
+ };
3070
+ SwipeDirective.prototype.release = function (event) {
3071
+ // case: just a click/touch
3072
+ if (!this._moveEventData) {
3073
+ return;
3074
+ }
3075
+ var releaseEventData = {
3076
+ thresholdWasReached: this._thresholdWasReached,
3077
+ direction: this._moveEventData.direction,
3078
+ speed: this._moveEventData.speed,
3079
+ easingType: this.getEasingCurve(this._moveEventData.speed),
3080
+ target: event.currentTarget,
3081
+ };
3082
+ // inform
3083
+ this.releaseEvent.emit(releaseEventData);
3084
+ };
3085
+ SwipeDirective.prototype.getEasingCurve = function (speed) {
3086
+ return speed > 0.5 ? 'ease-in' : 'ease-out';
3087
+ };
3088
+ SwipeDirective.prototype.reset = function () {
3089
+ this._startPosition = -1;
3090
+ this._thresholdWasReached = false;
3091
+ if (this._moveEventData) {
3092
+ this._moveEventData = undefined;
3093
+ }
3094
+ };
3095
+ return SwipeDirective;
3096
+ }());
3097
+ SwipeDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SwipeDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
3098
+ SwipeDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: SwipeDirective, selector: "[swipeDirective]", inputs: { config: ["swipeDirective", "config"] }, outputs: { moveEvent: "moveEvent", releaseEvent: "releaseEvent" }, host: { listeners: { "mousedown": "onMouseDown($event)", "touchstart": "onMouseDown($event)", "mousemove": "onMove($event)", "touchmove": "onMove($event)", "mouseup": "onRelease($event)", "mouseleave": "onRelease($event)", "touchend": "onRelease($event)" } }, ngImport: i0__namespace });
3099
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SwipeDirective, decorators: [{
3100
+ type: i0.Directive,
3101
+ args: [{
3102
+ selector: '[swipeDirective]',
3103
+ }]
3104
+ }], propDecorators: { moveEvent: [{
3105
+ type: i0.Output
3106
+ }], releaseEvent: [{
3107
+ type: i0.Output
3108
+ }], config: [{
3109
+ type: i0.Input,
3110
+ args: ['swipeDirective']
3111
+ }], onMouseDown: [{
3112
+ type: i0.HostListener,
3113
+ args: ['mousedown', ['$event']]
3114
+ }, {
3115
+ type: i0.HostListener,
3116
+ args: ['touchstart', ['$event']]
3117
+ }], onMove: [{
3118
+ type: i0.HostListener,
3119
+ args: ['mousemove', ['$event']]
3120
+ }, {
3121
+ type: i0.HostListener,
3122
+ args: ['touchmove', ['$event']]
3123
+ }], onRelease: [{
3124
+ type: i0.HostListener,
3125
+ args: ['mouseup', ['$event']]
3126
+ }, {
3127
+ type: i0.HostListener,
3128
+ args: ['mouseleave', ['$event']]
3129
+ }, {
3130
+ type: i0.HostListener,
3131
+ args: ['touchend', ['$event']]
3132
+ }] } });
3133
+
3134
+ /*!
3135
+ * @copyright FLYACTS GmbH 2019
3136
+ */
3137
+ var ImageSliderComponent = /** @class */ (function () {
3138
+ function ImageSliderComponent(sanitizer) {
3139
+ this.sanitizer = sanitizer;
3140
+ this.editMode = false;
3141
+ this.orderChanged = new i0.EventEmitter();
3142
+ this.deleteImageEvent = new i0.EventEmitter();
3143
+ /**
3144
+ * Optional: Define Swipe behaviour configuration.
3145
+ * Default is 10% for the threshold definition until a swipe triggers next/previous slide.
3146
+ */
3147
+ this.swipeConfig = {
3148
+ swipeThreshold: 5,
3149
+ swipeThresholdType: '%',
3150
+ swipeLocalPosition: true,
3151
+ };
3152
+ this.selectedSlide = 0;
3153
+ this.isLastClickedInSliderImage = false;
3154
+ this.config = {
3155
+ initialSlide: 0,
3156
+ slidesPerView: 3,
3157
+ navigation: {
3158
+ nextEl: '.swiper-button-next',
3159
+ prevEl: '.swiper-button-prev',
3160
+ },
3161
+ watchOverflow: true,
3162
+ autoHeight: true,
3163
+ allowTouchMove: false,
3164
+ spaceBetween: 30,
3165
+ on: {
3166
+ slideChange: function () {
3167
+ // do something
3168
+ },
3169
+ slideChangeTransitionEnd: function () {
3170
+ // do something
3171
+ },
3172
+ },
3173
+ };
3174
+ }
3175
+ ImageSliderComponent.prototype.ngOnInit = function () {
3176
+ if (this.slides) {
3177
+ // TODO use Pipe safeStyle
3178
+ this.selectedSlideImage = this.sanitizer.bypassSecurityTrustStyle('url(' + this.slides[0] + ')');
3179
+ }
3180
+ };
3181
+ // !TODO
3182
+ ImageSliderComponent.prototype.onKeydownHandler = function (event) {
3183
+ if (event.key === 'ArrowRight') {
3184
+ this.nextSlide();
3185
+ }
3186
+ if (event.key === 'ArrowLeft') {
3187
+ this.previousSlide();
3188
+ }
3189
+ };
3190
+ /**
3191
+ * Slide follows the finger or mouse according to it´s move delta.
2577
3192
  * @param event SwipeMoveEvent
2578
3193
  */
2579
3194
  ImageSliderComponent.prototype.handleMoveEvent = function (event) {
@@ -2670,26 +3285,34 @@
2670
3285
  };
2671
3286
  return ImageSliderComponent;
2672
3287
  }());
2673
- ImageSliderComponent.decorators = [
2674
- { type: i0.Component, args: [{
2675
- selector: 'kms-image-slider',
2676
- template: "<div class=\"all-wrapper\">\r\n <!--(swiperight)=\"previousSlide()\" (swipeleft)=\"nextSlide()\"-->\r\n <div \r\n class=\"swiper-bigImage\"\r\n [style.backgroundImage]=\"selectedSlideImage\"\r\n [swipeDirective]=\"swipeConfig\"\r\n (moveEvent)=\"handleMoveEvent($event)\"\r\n (releaseEvent)=\"handleReleaseEvent($event)\"\r\n (mouseup)=\"lastClicked()\"\r\n (mouseout)=\"noLastClicked()\" >\r\n </div>\r\n\r\n <ng-content select=\"[description]\"></ng-content>\r\n\r\n <div class=\"swiper-holder\">\r\n <!--\r\n (mouseWheelUp)=\"scrollLeft($event)\"\r\n (mouseWheelDown)=\"scrollRight($event)\"\r\n -->\r\n\r\n <swiper [config]=\"config\" #usefulSwiper>\r\n <div class=\"swiper-wrapper\" \r\n cdkDropList (cdkDropListDropped)=\"drop($event)\" \r\n cdkDropListOrientation=\"horizontal\"> \r\n <div class=\"swiper-slide\" \r\n *ngFor=\"let slide of slides; let index = index\" \r\n cdkDrag [cdkDragDisabled]=\"!editMode\">\r\n <button mat-menu-item *ngIf=\"editMode\" (click)=\"deleteImage(index)\"> \r\n <kms-icon icon=\"trash\"></kms-icon>\r\n </button>\r\n <div class=\"img\" (click)=\"openSlide(index)\"\r\n [style.backgroundImage]=\"sanitizer.bypassSecurityTrustStyle('url(' + slide + ')')\"\r\n [ngClass]=\"{'active': index === selectedSlide}\">\r\n </div>\r\n \r\n <div class=\"default-image\">{{\"common.defaultImage\" | translate}} </div>\r\n </div>\r\n </div>\r\n </swiper>\r\n\r\n <div class=\"swiper-button-next\" *ngIf=\"slides?.length > 3\"></div>\r\n <div class=\"swiper-button-prev\" *ngIf=\"slides?.length > 3\"></div>\r\n\r\n <div class=\"swiper-button-next2\" *ngIf=\"slides?.length > 1\" (click)=\"nextSlide()\">\r\n <kms-icon icon=\"chevron-right\" [iconClass]=\"{'color-disabled': selectedSlide == slides?.length - 1, 'color-primary': true}\"></kms-icon>\r\n </div>\r\n <div class=\"swiper-button-prev2\" *ngIf=\"slides?.length > 1\" (click)=\"previousSlide()\">\r\n <kms-icon icon=\"chevron-left\" [iconClass]=\"{'color-disabled': selectedSlide == 0, 'color-primary': true}\"></kms-icon>\r\n </div>\r\n\r\n </div>\r\n\r\n <ng-content></ng-content>\r\n</div>",
2677
- styles: [""]
2678
- },] }
2679
- ];
2680
- ImageSliderComponent.ctorParameters = function () { return [
2681
- { type: platformBrowser.DomSanitizer }
2682
- ]; };
2683
- ImageSliderComponent.propDecorators = {
2684
- slides: [{ type: i0.Input }],
2685
- editMode: [{ type: i0.Input }],
2686
- imagesTOSave: [{ type: i0.Input }],
2687
- orderChanged: [{ type: i0.Output }],
2688
- deleteImageEvent: [{ type: i0.Output }],
2689
- swipeConfig: [{ type: i0.Input }],
2690
- usefulSwiper: [{ type: i0.ViewChild, args: ['usefulSwiper',] }],
2691
- onKeydownHandler: [{ type: i0.HostListener, args: ['document:keydown', ['$event'],] }]
2692
- };
3288
+ ImageSliderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ImageSliderComponent, deps: [{ token: i1__namespace$2.DomSanitizer }], target: i0__namespace.ɵɵFactoryTarget.Component });
3289
+ ImageSliderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ImageSliderComponent, selector: "kms-image-slider", inputs: { slides: "slides", editMode: "editMode", imagesTOSave: "imagesTOSave", swipeConfig: "swipeConfig" }, outputs: { orderChanged: "orderChanged", deleteImageEvent: "deleteImageEvent" }, host: { listeners: { "document:keydown": "onKeydownHandler($event)" } }, viewQueries: [{ propertyName: "usefulSwiper", first: true, predicate: ["usefulSwiper"], descendants: true }], usesOnChanges: true, ngImport: i0__namespace, template: "<div class=\"all-wrapper\">\r\n <!--(swiperight)=\"previousSlide()\" (swipeleft)=\"nextSlide()\"-->\r\n <div \r\n class=\"swiper-bigImage\"\r\n [style.backgroundImage]=\"selectedSlideImage\"\r\n [swipeDirective]=\"swipeConfig\"\r\n (moveEvent)=\"handleMoveEvent($event)\"\r\n (releaseEvent)=\"handleReleaseEvent($event)\"\r\n (mouseup)=\"lastClicked()\"\r\n (mouseout)=\"noLastClicked()\" >\r\n </div>\r\n\r\n <ng-content select=\"[description]\"></ng-content>\r\n\r\n <div class=\"swiper-holder\">\r\n <!--\r\n (mouseWheelUp)=\"scrollLeft($event)\"\r\n (mouseWheelDown)=\"scrollRight($event)\"\r\n -->\r\n\r\n <swiper [config]=\"config\" #usefulSwiper>\r\n <div class=\"swiper-wrapper\" \r\n cdkDropList (cdkDropListDropped)=\"drop($event)\" \r\n cdkDropListOrientation=\"horizontal\"> \r\n <div class=\"swiper-slide\" \r\n *ngFor=\"let slide of slides; let index = index\" \r\n cdkDrag [cdkDragDisabled]=\"!editMode\">\r\n <button mat-menu-item *ngIf=\"editMode\" (click)=\"deleteImage(index)\"> \r\n <kms-icon icon=\"trash\"></kms-icon>\r\n </button>\r\n <div class=\"img\" (click)=\"openSlide(index)\"\r\n [style.backgroundImage]=\"sanitizer.bypassSecurityTrustStyle('url(' + slide + ')')\"\r\n [ngClass]=\"{'active': index === selectedSlide}\">\r\n </div>\r\n \r\n <div class=\"default-image\">{{\"common.defaultImage\" | translate}} </div>\r\n </div>\r\n </div>\r\n </swiper>\r\n\r\n <div class=\"swiper-button-next\" *ngIf=\"slides?.length > 3\"></div>\r\n <div class=\"swiper-button-prev\" *ngIf=\"slides?.length > 3\"></div>\r\n\r\n <div class=\"swiper-button-next2\" *ngIf=\"slides?.length > 1\" (click)=\"nextSlide()\">\r\n <kms-icon icon=\"chevron-right\" [iconClass]=\"{'color-disabled': selectedSlide == slides?.length - 1, 'color-primary': true}\"></kms-icon>\r\n </div>\r\n <div class=\"swiper-button-prev2\" *ngIf=\"slides?.length > 1\" (click)=\"previousSlide()\">\r\n <kms-icon icon=\"chevron-left\" [iconClass]=\"{'color-disabled': selectedSlide == 0, 'color-primary': true}\"></kms-icon>\r\n </div>\r\n\r\n </div>\r\n\r\n <ng-content></ng-content>\r\n</div>", styles: [""], components: [{ type: i2__namespace$6.SwiperComponent, selector: "swiper", inputs: ["initialize", "config"] }, { type: i3__namespace$1.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "iconStyle", "iconSize", "dontUseSprite"] }], directives: [{ type: SwipeDirective, selector: "[swipeDirective]", inputs: ["swipeDirective"], outputs: ["moveEvent", "releaseEvent"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "translate": i5__namespace$1.TranslatePipe } });
3290
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ImageSliderComponent, decorators: [{
3291
+ type: i0.Component,
3292
+ args: [{
3293
+ selector: 'kms-image-slider',
3294
+ templateUrl: './image-slider.component.html',
3295
+ styleUrls: ['./image-slider.component.scss'],
3296
+ }]
3297
+ }], ctorParameters: function () { return [{ type: i1__namespace$2.DomSanitizer }]; }, propDecorators: { slides: [{
3298
+ type: i0.Input
3299
+ }], editMode: [{
3300
+ type: i0.Input
3301
+ }], imagesTOSave: [{
3302
+ type: i0.Input
3303
+ }], orderChanged: [{
3304
+ type: i0.Output
3305
+ }], deleteImageEvent: [{
3306
+ type: i0.Output
3307
+ }], swipeConfig: [{
3308
+ type: i0.Input
3309
+ }], usefulSwiper: [{
3310
+ type: i0.ViewChild,
3311
+ args: ['usefulSwiper']
3312
+ }], onKeydownHandler: [{
3313
+ type: i0.HostListener,
3314
+ args: ['document:keydown', ['$event']]
3315
+ }] } });
2693
3316
 
2694
3317
  /*!
2695
3318
  * @copyright FLYACTS GmbH 2019
@@ -2726,373 +3349,25 @@
2726
3349
  };
2727
3350
  return MouseWheelDirective;
2728
3351
  }());
2729
- MouseWheelDirective.decorators = [
2730
- { type: i0.Directive, args: [{ selector: '[mouseWheel]' },] }
2731
- ];
2732
- MouseWheelDirective.propDecorators = {
2733
- mouseWheelUp: [{ type: i0.Output }],
2734
- mouseWheelDown: [{ type: i0.Output }],
2735
- onMouseWheelChrome: [{ type: i0.HostListener, args: ['mousewheel', ['$event'],] }],
2736
- onMouseWheelFirefox: [{ type: i0.HostListener, args: ['DOMMouseScroll', ['$event'],] }],
2737
- onMouseWheelIE: [{ type: i0.HostListener, args: ['onmousewheel', ['$event'],] }]
2738
- };
2739
-
2740
- /*!
2741
- * @copyright FLYACTS GmbH 2019
2742
- */
2743
- /**
2744
- * Directive to calc the height of all inner elements
2745
- */
2746
- var GetMaxHeightDirective = /** @class */ (function () {
2747
- function GetMaxHeightDirective(el) {
2748
- this.el = el;
2749
- /**
2750
- * CSS class name of the child items (markup elements) that should be checked for their height.
2751
- * This is mandatory.
2752
- */
2753
- this.cssClassName = '';
2754
- /**
2755
- * Event that will pass the height of the tallest child inside the container.
2756
- * Useful to calculate the target height of containers with different content (like accordion) for animations.
2757
- */
2758
- this.maxHeightChanged = new i0.EventEmitter();
2759
- /**
2760
- * Event that will pass the complete sum of all height values from each child.
2761
- * Useful to calculate the full target height of a container (like dropdown) for animations.
2762
- */
2763
- this.sumOfHeight = new i0.EventEmitter();
2764
- }
2765
- GetMaxHeightDirective.prototype.ngAfterContentChecked = function () {
2766
- this.checkHeightOfChildren(this.el.nativeElement, this.cssClassName);
2767
- };
2768
- GetMaxHeightDirective.prototype.checkHeightOfChildren = function (parent, cssClassName) {
2769
- if (!parent) {
2770
- return;
2771
- }
2772
- // find all the child elements with the selected class name
2773
- var children = parent.getElementsByClassName(cssClassName);
2774
- // failsafe
2775
- if (!children) {
2776
- return;
2777
- }
2778
- // get all the child elements heights
2779
- var itemHeights = Array.from(children).map(function (x) { return x.getBoundingClientRect().height; });
2780
- // failsafe
2781
- if (itemHeights.length === 0) {
2782
- return;
2783
- }
2784
- // find out the tallest element
2785
- var maxHeight = itemHeights.reduce(function (prev, curr) {
2786
- return curr > prev ? curr : prev;
2787
- }, 0);
2788
- // get sum of heights
2789
- var sumOfHeight = itemHeights.reduce(function (pv, cv) { return pv + cv; }, 0);
2790
- // inform
2791
- this.maxHeightChanged.emit(maxHeight);
2792
- this.sumOfHeight.emit(sumOfHeight);
2793
- };
2794
- return GetMaxHeightDirective;
2795
- }());
2796
- GetMaxHeightDirective.decorators = [
2797
- { type: i0.Directive, args: [{
2798
- selector: '[getMaxHeight]',
2799
- },] }
2800
- ];
2801
- GetMaxHeightDirective.ctorParameters = function () { return [
2802
- { type: i0.ElementRef }
2803
- ]; };
2804
- GetMaxHeightDirective.propDecorators = {
2805
- cssClassName: [{ type: i0.Input, args: ['getMaxHeight',] }],
2806
- maxHeightChanged: [{ type: i0.Output }],
2807
- sumOfHeight: [{ type: i0.Output }]
2808
- };
2809
-
2810
- /*!
2811
- * @copyright FLYACTS GmbH 2019
2812
- */
2813
- var SwipeDirective = /** @class */ (function () {
2814
- function SwipeDirective() {
2815
- /**
2816
- * Output Event that is emitted during swipe process (mouse move or touch move event).
2817
- * Can be used for calculation purposes.
2818
- */
2819
- this.moveEvent = new i0.EventEmitter();
2820
- /**
2821
- * Output Event that is emitted when swipe process end (mouse up or touch end event).
2822
- * Can be used for calculation purposes.
2823
- */
2824
- this.releaseEvent = new i0.EventEmitter();
2825
- this._startPosition = -1;
2826
- this._lastPosX = 0;
2827
- this._thresholdWasReached = false;
2828
- this._timeStart = 0;
2829
- }
2830
- Object.defineProperty(SwipeDirective.prototype, "config", {
2831
- /**
2832
- * Needed config that defines swipe behaviour.
2833
- * @param options SwipeOptions
2834
- */
2835
- set: function (options) {
2836
- if (options) {
2837
- this._swipeOptions = options;
2838
- }
2839
- },
2840
- enumerable: false,
2841
- configurable: true
2842
- });
2843
- SwipeDirective.prototype.onMouseDown = function (event) {
2844
- this.calculateStartPosition(event);
2845
- };
2846
- SwipeDirective.prototype.onMove = function (event) {
2847
- this.move(event);
2848
- };
2849
- SwipeDirective.prototype.onRelease = function (event) {
2850
- this.release(event);
2851
- this.reset();
2852
- };
2853
- // ** PRIVATE ** //
2854
- /**
2855
- * Function checks if the current moving delta is inside the defined threshold.
2856
- * Sets the flag to true if the threshold was reached once.
2857
- */
2858
- SwipeDirective.prototype.checkThreshold = function (moveEvent) {
2859
- var percentage = this._swipeOptions && this._swipeOptions.swipeThresholdType === '%';
2860
- if (!percentage && this._swipeOptions && moveEvent.swipeDistanceTotal < this._swipeOptions.swipeThreshold) {
2861
- return;
2862
- }
2863
- else if (percentage &&
2864
- this._swipeOptions &&
2865
- moveEvent.swipeDistancePercentage < this._swipeOptions.swipeThreshold / 100) {
2866
- return;
2867
- }
2868
- else {
2869
- this._thresholdWasReached = true;
2870
- }
2871
- };
2872
- SwipeDirective.prototype.calculateStartPosition = function (event) {
2873
- // detect if touch or click
2874
- this._isMobile = event.type === 'touchstart';
2875
- // save start position
2876
- if (this._swipeOptions && this._swipeOptions.swipeLocalPosition) {
2877
- if (this._isMobile) {
2878
- var touch = event.touches[0];
2879
- this._startPosition = this._swipeOptions.swipeLocalPosition ? touch.clientX : touch.pageX;
2880
- }
2881
- else {
2882
- this._startPosition = this._swipeOptions.swipeLocalPosition ? event.offsetX : event.pageX;
2883
- }
2884
- }
2885
- this._lastPosX = this._startPosition;
2886
- this._timeStart = event.timeStamp;
2887
- this._thresholdWasReached = false;
2888
- };
2889
- SwipeDirective.prototype.move = function (event) {
2890
- // failsafe
2891
- if (typeof event === 'undefined') {
2892
- return;
2893
- }
2894
- var posX = 0;
2895
- if (this._swipeOptions) {
2896
- if (this._isMobile && event.type === 'touchmove') {
2897
- var touch = event.touches[0];
2898
- posX = this._swipeOptions.swipeLocalPosition ? touch.clientX : touch.pageX;
2899
- }
2900
- else {
2901
- posX = this._swipeOptions.swipeLocalPosition ? event.offsetX : event.pageX;
2902
- }
2903
- }
2904
- var offsetPerFrame = posX - this._lastPosX;
2905
- var swipeDistanceTotal = Math.abs(posX - this._startPosition);
2906
- var swipeDistancePercentage = Math.abs(swipeDistanceTotal / event.target.clientWidth);
2907
- var timeDuration = Math.abs(event.timeStamp - this._timeStart);
2908
- var direction;
2909
- var speed = 1 - swipeDistanceTotal / timeDuration;
2910
- speed = Math.max(0.1, speed);
2911
- if (posX - this._startPosition > 0) {
2912
- direction = 1; // a.k.a LTR
2913
- }
2914
- else {
2915
- direction = -1; // a.k.a RTL
2916
- }
2917
- this._moveEventData = {
2918
- position: posX,
2919
- offsetPerFrame: offsetPerFrame,
2920
- swipeDistanceTotal: swipeDistanceTotal,
2921
- swipeDistancePercentage: swipeDistancePercentage,
2922
- direction: direction,
2923
- speed: speed,
2924
- thresholdWasReached: this._thresholdWasReached,
2925
- };
2926
- this.checkThreshold(this._moveEventData);
2927
- // update move delta
2928
- this._lastPosX = posX;
2929
- // inform
2930
- this.moveEvent.emit(this._moveEventData);
2931
- };
2932
- SwipeDirective.prototype.release = function (event) {
2933
- // case: just a click/touch
2934
- if (!this._moveEventData) {
2935
- return;
2936
- }
2937
- var releaseEventData = {
2938
- thresholdWasReached: this._thresholdWasReached,
2939
- direction: this._moveEventData.direction,
2940
- speed: this._moveEventData.speed,
2941
- easingType: this.getEasingCurve(this._moveEventData.speed),
2942
- target: event.currentTarget,
2943
- };
2944
- // inform
2945
- this.releaseEvent.emit(releaseEventData);
2946
- };
2947
- SwipeDirective.prototype.getEasingCurve = function (speed) {
2948
- return speed > 0.5 ? 'ease-in' : 'ease-out';
2949
- };
2950
- SwipeDirective.prototype.reset = function () {
2951
- this._startPosition = -1;
2952
- this._thresholdWasReached = false;
2953
- if (this._moveEventData) {
2954
- this._moveEventData = undefined;
2955
- }
2956
- };
2957
- return SwipeDirective;
2958
- }());
2959
- SwipeDirective.decorators = [
2960
- { type: i0.Directive, args: [{
2961
- selector: '[swipeDirective]',
2962
- },] }
2963
- ];
2964
- SwipeDirective.propDecorators = {
2965
- moveEvent: [{ type: i0.Output }],
2966
- releaseEvent: [{ type: i0.Output }],
2967
- config: [{ type: i0.Input, args: ['swipeDirective',] }],
2968
- onMouseDown: [{ type: i0.HostListener, args: ['mousedown', ['$event'],] }, { type: i0.HostListener, args: ['touchstart', ['$event'],] }],
2969
- onMove: [{ type: i0.HostListener, args: ['mousemove', ['$event'],] }, { type: i0.HostListener, args: ['touchmove', ['$event'],] }],
2970
- onRelease: [{ type: i0.HostListener, args: ['mouseup', ['$event'],] }, { type: i0.HostListener, args: ['mouseleave', ['$event'],] }, { type: i0.HostListener, args: ['touchend', ['$event'],] }]
2971
- };
2972
-
2973
- var TooltipDirective = /** @class */ (function () {
2974
- function TooltipDirective(el, renderer) {
2975
- this.el = el;
2976
- this.renderer = renderer;
2977
- this.tooltipTitle = "";
2978
- this.tooltipText = "";
2979
- this.tooltipLinkText = "";
2980
- this.tooltipLinkUrl = "";
2981
- this.tooltipPlacement = "bottom";
2982
- this.tooltipDelay = 1000;
2983
- this.tooltipPlaceIntoHost = false;
2984
- this.tooltipOnlyonclick = false;
2985
- this.offset = 0;
2986
- }
2987
- TooltipDirective.prototype.onMouseEnter = function () {
2988
- if (!this.tooltipOnlyonclick) {
2989
- this.show();
2990
- }
2991
- };
2992
- TooltipDirective.prototype.onClick = function () {
2993
- if (this.tooltipOnlyonclick) {
2994
- this.show();
2995
- }
2996
- };
2997
- TooltipDirective.prototype.onMouseLeave = function () {
2998
- if (this.tooltipElem) {
2999
- this.hide();
3000
- }
3001
- };
3002
- TooltipDirective.prototype.show = function () {
3003
- if (!this.tooltipElem) {
3004
- this.create();
3005
- this.setPosition();
3006
- }
3007
- this.renderer.addClass(this.tooltipElem, 'tooltip-show');
3008
- };
3009
- TooltipDirective.prototype.hide = function () {
3010
- this.renderer.removeClass(this.tooltipElem, 'tooltip-show');
3011
- window.setTimeout(function () {
3012
- }, this.tooltipDelay);
3013
- };
3014
- TooltipDirective.prototype.create = function () {
3015
- this.tooltipElem = this.renderer.createElement('kms-tooltip-element');
3016
- this.tooltipTitleElem = this.renderer.createElement('b');
3017
- this.renderer.appendChild(this.tooltipTitleElem, this.renderer.createText(this.tooltipTitle));
3018
- this.renderer.appendChild(this.tooltipElem, this.tooltipTitleElem);
3019
- this.tooltipTextElem = this.renderer.createElement('div');
3020
- this.renderer.appendChild(this.tooltipTextElem, this.renderer.createText(this.tooltipText));
3021
- this.renderer.appendChild(this.tooltipElem, this.tooltipTextElem);
3022
- this.tooltipLinkElem = this.renderer.createElement('a');
3023
- this.renderer.setAttribute(this.tooltipLinkElem, 'href', this.tooltipLinkUrl);
3024
- this.renderer.appendChild(this.tooltipLinkElem, this.renderer.createText(this.tooltipLinkText));
3025
- this.renderer.appendChild(this.tooltipElem, this.tooltipLinkElem);
3026
- if (this.tooltipPlaceIntoHost) {
3027
- this.renderer.appendChild(this.el.nativeElement, this.tooltipElem);
3028
- }
3029
- else {
3030
- this.renderer.appendChild(document.body, this.tooltipElem);
3031
- }
3032
- this.renderer.addClass(this.tooltipElem, 'tooltip');
3033
- this.renderer.addClass(this.tooltipElem, "tooltip-" + this.tooltipPlacement);
3034
- this.renderer.setStyle(this.tooltipElem, '-webkit-transition', "opacity " + this.tooltipDelay + "ms");
3035
- this.renderer.setStyle(this.tooltipElem, '-moz-transition', "opacity " + this.tooltipDelay + "ms");
3036
- this.renderer.setStyle(this.tooltipElem, '-o-transition', "opacity " + this.tooltipDelay + "ms");
3037
- this.renderer.setStyle(this.tooltipElem, 'transition', "opacity " + this.tooltipDelay + "ms");
3038
- };
3039
- TooltipDirective.prototype.setPosition = function () {
3040
- if (this.tooltipElem) {
3041
- var hostPos = this.el.nativeElement.getBoundingClientRect();
3042
- var tooltipPos = this.tooltipElem.getBoundingClientRect();
3043
- var top = void 0, left = void 0;
3044
- if (this.tooltipPlaceIntoHost) {
3045
- left = 0;
3046
- top = hostPos.height;
3047
- }
3048
- else {
3049
- var scrollPos = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
3050
- if (this.tooltipPlacement === 'top') {
3051
- top = hostPos.top - tooltipPos.height - this.offset;
3052
- left = hostPos.left + (hostPos.width - tooltipPos.width) / 2;
3053
- }
3054
- if (!this.tooltipPlacement || this.tooltipPlacement === 'bottom') {
3055
- top = hostPos.bottom + this.offset;
3056
- left = hostPos.left + (hostPos.width - tooltipPos.width) / 2;
3057
- }
3058
- if (this.tooltipPlacement === 'left') {
3059
- top = hostPos.top + (hostPos.height - tooltipPos.height) / 2;
3060
- left = hostPos.left - tooltipPos.width - this.offset;
3061
- }
3062
- if (this.tooltipPlacement === 'right') {
3063
- top = hostPos.top + (hostPos.height - tooltipPos.height) / 2;
3064
- left = hostPos.right + this.offset;
3065
- }
3066
- top += scrollPos;
3067
- }
3068
- this.renderer.setStyle(this.tooltipElem, 'top', top + "px");
3069
- this.renderer.setStyle(this.tooltipElem, 'left', left + "px");
3070
- }
3071
- };
3072
- return TooltipDirective;
3073
- }());
3074
- TooltipDirective.decorators = [
3075
- { type: i0.Directive, args: [{
3076
- selector: '[kmsTooltip]'
3077
- },] }
3078
- ];
3079
- TooltipDirective.ctorParameters = function () { return [
3080
- { type: i0.ElementRef },
3081
- { type: i0.Renderer2 }
3082
- ]; };
3083
- TooltipDirective.propDecorators = {
3084
- tooltipTitle: [{ type: i0.Input, args: ['tooltipTitle',] }],
3085
- tooltipText: [{ type: i0.Input, args: ['tooltipText',] }],
3086
- tooltipLinkText: [{ type: i0.Input, args: ['tooltipLinkText',] }],
3087
- tooltipLinkUrl: [{ type: i0.Input, args: ['tooltipLinkUrl',] }],
3088
- tooltipPlacement: [{ type: i0.Input, args: ['tooltipPlacement',] }],
3089
- tooltipDelay: [{ type: i0.Input, args: ['tooltipDelay',] }],
3090
- tooltipPlaceIntoHost: [{ type: i0.Input, args: ['tooltipPlaceIntoHost',] }],
3091
- tooltipOnlyonclick: [{ type: i0.Input, args: ['tooltipOnlyonclick',] }],
3092
- onMouseEnter: [{ type: i0.HostListener, args: ['mouseenter',] }],
3093
- onClick: [{ type: i0.HostListener, args: ['click',] }],
3094
- onMouseLeave: [{ type: i0.HostListener, args: ['mouseleave',] }]
3095
- };
3352
+ MouseWheelDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MouseWheelDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
3353
+ MouseWheelDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: MouseWheelDirective, selector: "[mouseWheel]", outputs: { mouseWheelUp: "mouseWheelUp", mouseWheelDown: "mouseWheelDown" }, host: { listeners: { "mousewheel": "onMouseWheelChrome($event)", "DOMMouseScroll": "onMouseWheelFirefox($event)", "onmousewheel": "onMouseWheelIE($event)" } }, ngImport: i0__namespace });
3354
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MouseWheelDirective, decorators: [{
3355
+ type: i0.Directive,
3356
+ args: [{ selector: '[mouseWheel]' }]
3357
+ }], propDecorators: { mouseWheelUp: [{
3358
+ type: i0.Output
3359
+ }], mouseWheelDown: [{
3360
+ type: i0.Output
3361
+ }], onMouseWheelChrome: [{
3362
+ type: i0.HostListener,
3363
+ args: ['mousewheel', ['$event']]
3364
+ }], onMouseWheelFirefox: [{
3365
+ type: i0.HostListener,
3366
+ args: ['DOMMouseScroll', ['$event']]
3367
+ }], onMouseWheelIE: [{
3368
+ type: i0.HostListener,
3369
+ args: ['onmousewheel', ['$event']]
3370
+ }] } });
3096
3371
 
3097
3372
  /**
3098
3373
  * @copyright KMS GmbH
@@ -3102,108 +3377,206 @@
3102
3377
  }
3103
3378
  return DirectivesModule;
3104
3379
  }());
3105
- DirectivesModule.decorators = [
3106
- { type: i0.NgModule, args: [{
3107
- declarations: [
3108
- SwipeDirective,
3109
- MouseWheelDirective,
3110
- GetMaxHeightDirective,
3111
- TooltipDirective,
3112
- ],
3113
- imports: [common.CommonModule],
3114
- exports: [
3115
- SwipeDirective,
3116
- MouseWheelDirective,
3117
- GetMaxHeightDirective,
3118
- TooltipDirective,
3119
- ],
3120
- },] }
3121
- ];
3380
+ DirectivesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DirectivesModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
3381
+ DirectivesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DirectivesModule, declarations: [SwipeDirective,
3382
+ MouseWheelDirective,
3383
+ GetMaxHeightDirective,
3384
+ TooltipDirective], imports: [i2.CommonModule], exports: [SwipeDirective,
3385
+ MouseWheelDirective,
3386
+ GetMaxHeightDirective,
3387
+ TooltipDirective] });
3388
+ DirectivesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DirectivesModule, imports: [[i2.CommonModule]] });
3389
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DirectivesModule, decorators: [{
3390
+ type: i0.NgModule,
3391
+ args: [{
3392
+ declarations: [
3393
+ SwipeDirective,
3394
+ MouseWheelDirective,
3395
+ GetMaxHeightDirective,
3396
+ TooltipDirective,
3397
+ ],
3398
+ imports: [i2.CommonModule],
3399
+ exports: [
3400
+ SwipeDirective,
3401
+ MouseWheelDirective,
3402
+ GetMaxHeightDirective,
3403
+ TooltipDirective,
3404
+ ],
3405
+ }]
3406
+ }] });
3122
3407
 
3123
3408
  var KmsUiPresentationalModule = /** @class */ (function () {
3124
3409
  function KmsUiPresentationalModule() {
3125
3410
  }
3126
3411
  return KmsUiPresentationalModule;
3127
3412
  }());
3128
- KmsUiPresentationalModule.decorators = [
3129
- { type: i0.NgModule, args: [{
3130
- declarations: [
3131
- ActionsParentComponent,
3132
- BackToTopComponent,
3133
- ButtonWithConfirmDialogComponent,
3134
- CheckboxComponent,
3135
- ColorInputComponent,
3136
- DropdownFromDataComponent,
3137
- EnumRadiogroupComponent,
3138
- EnumRadiogroupComponent,
3139
- FileInputComponent,
3140
- FlyoutComponent,
3141
- GenericDialogComponent,
3142
- IconComponent,
3143
- ImageSliderComponent,
3144
- KMSAccordionItemComponent,
3145
- KmsUiPresentationalComponent,
3146
- LoaderComponent,
3147
- MapComponent,
3148
- RadioButtonComponent,
3149
- SalutationDropdownComponent,
3150
- SalutationRadiogroupComponent,
3151
- TimeInputComponent,
3152
- TooltipComponent,
3153
- TooltipIconComponent,
3154
- YesNoRadiogroupComponent
3155
- ],
3156
- imports: [
3157
- common.CommonModule,
3158
- checkbox.MatCheckboxModule,
3159
- button.MatButtonModule,
3160
- radio.MatRadioModule,
3161
- dialog.MatDialogModule,
3162
- forms.FormsModule,
3163
- forms.ReactiveFormsModule,
3164
- formField.MatFormFieldModule,
3165
- input.MatInputModule,
3166
- menu.MatMenuModule,
3167
- CustomPipesModule,
3168
- googleMaps.GoogleMapsModule,
3169
- expansion.MatExpansionModule,
3170
- select.MatSelectModule,
3171
- progressSpinner.MatProgressSpinnerModule,
3172
- DirectivesModule,
3173
- core.TranslateModule,
3174
- ngxUsefulSwiper.NgxUsefulSwiperModule,
3175
- ],
3176
- exports: [
3177
- ActionsParentComponent,
3178
- BackToTopComponent,
3179
- ButtonWithConfirmDialogComponent,
3180
- CheckboxComponent,
3181
- ColorInputComponent,
3182
- DropdownFromDataComponent,
3183
- EnumRadiogroupComponent,
3184
- EnumRadiogroupComponent,
3185
- FileInputComponent,
3186
- FlyoutComponent,
3187
- GenericDialogComponent,
3188
- IconComponent,
3189
- ImageSliderComponent,
3190
- KMSAccordionItemComponent,
3191
- KmsUiPresentationalComponent,
3192
- LoaderComponent,
3193
- MapComponent,
3194
- RadioButtonComponent,
3195
- SalutationDropdownComponent,
3196
- SalutationRadiogroupComponent,
3197
- TimeInputComponent,
3198
- TooltipComponent,
3199
- TooltipIconComponent,
3200
- YesNoRadiogroupComponent,
3201
- ],
3202
- providers: [
3203
- ViewportService
3204
- ]
3205
- },] }
3206
- ];
3413
+ KmsUiPresentationalModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KmsUiPresentationalModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
3414
+ KmsUiPresentationalModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KmsUiPresentationalModule, declarations: [ActionsParentComponent,
3415
+ BackToTopComponent,
3416
+ ButtonWithConfirmDialogComponent,
3417
+ CheckboxComponent,
3418
+ ColorInputComponent,
3419
+ DropdownFromDataComponent,
3420
+ EnumRadiogroupComponent,
3421
+ EnumRadiogroupComponent,
3422
+ FileInputComponent,
3423
+ FlyoutComponent,
3424
+ GenericDialogComponent,
3425
+ IconComponent,
3426
+ ImageSliderComponent,
3427
+ KMSAccordionItemComponent,
3428
+ KmsUiPresentationalComponent,
3429
+ LoaderComponent,
3430
+ MapComponent,
3431
+ RadioButtonComponent,
3432
+ SalutationDropdownComponent,
3433
+ SalutationRadiogroupComponent,
3434
+ TimeInputComponent,
3435
+ TooltipComponent,
3436
+ TooltipIconComponent,
3437
+ YesNoRadiogroupComponent], imports: [i2.CommonModule,
3438
+ i1$1.MatCheckboxModule,
3439
+ i2$3.MatButtonModule,
3440
+ i2$2.MatRadioModule,
3441
+ i1$4.MatDialogModule,
3442
+ i1.FormsModule,
3443
+ i1.ReactiveFormsModule,
3444
+ i2$1.MatFormFieldModule,
3445
+ i5.MatInputModule,
3446
+ i3$1.MatMenuModule,
3447
+ CustomPipesModule,
3448
+ i2$5.GoogleMapsModule,
3449
+ i2$4.MatExpansionModule,
3450
+ i3.MatSelectModule,
3451
+ i1$3.MatProgressSpinnerModule,
3452
+ DirectivesModule,
3453
+ i5$1.TranslateModule,
3454
+ i2$6.NgxUsefulSwiperModule], exports: [ActionsParentComponent,
3455
+ BackToTopComponent,
3456
+ ButtonWithConfirmDialogComponent,
3457
+ CheckboxComponent,
3458
+ ColorInputComponent,
3459
+ DropdownFromDataComponent,
3460
+ EnumRadiogroupComponent,
3461
+ EnumRadiogroupComponent,
3462
+ FileInputComponent,
3463
+ FlyoutComponent,
3464
+ GenericDialogComponent,
3465
+ IconComponent,
3466
+ ImageSliderComponent,
3467
+ KMSAccordionItemComponent,
3468
+ KmsUiPresentationalComponent,
3469
+ LoaderComponent,
3470
+ MapComponent,
3471
+ RadioButtonComponent,
3472
+ SalutationDropdownComponent,
3473
+ SalutationRadiogroupComponent,
3474
+ TimeInputComponent,
3475
+ TooltipComponent,
3476
+ TooltipIconComponent,
3477
+ YesNoRadiogroupComponent] });
3478
+ KmsUiPresentationalModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KmsUiPresentationalModule, providers: [
3479
+ ViewportService
3480
+ ], imports: [[
3481
+ i2.CommonModule,
3482
+ i1$1.MatCheckboxModule,
3483
+ i2$3.MatButtonModule,
3484
+ i2$2.MatRadioModule,
3485
+ i1$4.MatDialogModule,
3486
+ i1.FormsModule,
3487
+ i1.ReactiveFormsModule,
3488
+ i2$1.MatFormFieldModule,
3489
+ i5.MatInputModule,
3490
+ i3$1.MatMenuModule,
3491
+ CustomPipesModule,
3492
+ i2$5.GoogleMapsModule,
3493
+ i2$4.MatExpansionModule,
3494
+ i3.MatSelectModule,
3495
+ i1$3.MatProgressSpinnerModule,
3496
+ DirectivesModule,
3497
+ i5$1.TranslateModule,
3498
+ i2$6.NgxUsefulSwiperModule,
3499
+ ]] });
3500
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KmsUiPresentationalModule, decorators: [{
3501
+ type: i0.NgModule,
3502
+ args: [{
3503
+ declarations: [
3504
+ ActionsParentComponent,
3505
+ BackToTopComponent,
3506
+ ButtonWithConfirmDialogComponent,
3507
+ CheckboxComponent,
3508
+ ColorInputComponent,
3509
+ DropdownFromDataComponent,
3510
+ EnumRadiogroupComponent,
3511
+ EnumRadiogroupComponent,
3512
+ FileInputComponent,
3513
+ FlyoutComponent,
3514
+ GenericDialogComponent,
3515
+ IconComponent,
3516
+ ImageSliderComponent,
3517
+ KMSAccordionItemComponent,
3518
+ KmsUiPresentationalComponent,
3519
+ LoaderComponent,
3520
+ MapComponent,
3521
+ RadioButtonComponent,
3522
+ SalutationDropdownComponent,
3523
+ SalutationRadiogroupComponent,
3524
+ TimeInputComponent,
3525
+ TooltipComponent,
3526
+ TooltipIconComponent,
3527
+ YesNoRadiogroupComponent
3528
+ ],
3529
+ imports: [
3530
+ i2.CommonModule,
3531
+ i1$1.MatCheckboxModule,
3532
+ i2$3.MatButtonModule,
3533
+ i2$2.MatRadioModule,
3534
+ i1$4.MatDialogModule,
3535
+ i1.FormsModule,
3536
+ i1.ReactiveFormsModule,
3537
+ i2$1.MatFormFieldModule,
3538
+ i5.MatInputModule,
3539
+ i3$1.MatMenuModule,
3540
+ CustomPipesModule,
3541
+ i2$5.GoogleMapsModule,
3542
+ i2$4.MatExpansionModule,
3543
+ i3.MatSelectModule,
3544
+ i1$3.MatProgressSpinnerModule,
3545
+ DirectivesModule,
3546
+ i5$1.TranslateModule,
3547
+ i2$6.NgxUsefulSwiperModule,
3548
+ ],
3549
+ exports: [
3550
+ ActionsParentComponent,
3551
+ BackToTopComponent,
3552
+ ButtonWithConfirmDialogComponent,
3553
+ CheckboxComponent,
3554
+ ColorInputComponent,
3555
+ DropdownFromDataComponent,
3556
+ EnumRadiogroupComponent,
3557
+ EnumRadiogroupComponent,
3558
+ FileInputComponent,
3559
+ FlyoutComponent,
3560
+ GenericDialogComponent,
3561
+ IconComponent,
3562
+ ImageSliderComponent,
3563
+ KMSAccordionItemComponent,
3564
+ KmsUiPresentationalComponent,
3565
+ LoaderComponent,
3566
+ MapComponent,
3567
+ RadioButtonComponent,
3568
+ SalutationDropdownComponent,
3569
+ SalutationRadiogroupComponent,
3570
+ TimeInputComponent,
3571
+ TooltipComponent,
3572
+ TooltipIconComponent,
3573
+ YesNoRadiogroupComponent,
3574
+ ],
3575
+ providers: [
3576
+ ViewportService
3577
+ ]
3578
+ }]
3579
+ }] });
3207
3580
 
3208
3581
  /*
3209
3582
  * Public API Surface of kms-ngx-ui-presentational
@@ -3213,50 +3586,52 @@
3213
3586
  * Generated bundle index. Do not edit.
3214
3587
  */
3215
3588
 
3589
+ exports.ActionsParentComponent = ActionsParentComponent;
3590
+ exports.BackToTopComponent = BackToTopComponent;
3591
+ exports.ButtonWithConfirmDialogComponent = ButtonWithConfirmDialogComponent;
3592
+ exports.CheckboxComponent = CheckboxComponent;
3593
+ exports.ColorInputComponent = ColorInputComponent;
3216
3594
  exports.CustomPipesModule = CustomPipesModule;
3595
+ exports.DecodeUriPipe = DecodeUriPipe;
3217
3596
  exports.DirectivesModule = DirectivesModule;
3597
+ exports.DropdownFromDataComponent = DropdownFromDataComponent;
3598
+ exports.EncodeUriPipe = EncodeUriPipe;
3599
+ exports.EnumRadiogroupComponent = EnumRadiogroupComponent;
3600
+ exports.FileInputComponent = FileInputComponent;
3601
+ exports.FlyoutComponent = FlyoutComponent;
3218
3602
  exports.FormParentComponent = FormParentComponent;
3219
3603
  exports.GenericDialogComponent = GenericDialogComponent;
3604
+ exports.GetMaxHeightDirective = GetMaxHeightDirective;
3605
+ exports.IconComponent = IconComponent;
3606
+ exports.ImageSliderComponent = ImageSliderComponent;
3607
+ exports.IntegerCurrency = IntegerCurrency;
3608
+ exports.KMSAccordionItemComponent = KMSAccordionItemComponent;
3220
3609
  exports.KmsUiPresentationalComponent = KmsUiPresentationalComponent;
3221
3610
  exports.KmsUiPresentationalModule = KmsUiPresentationalModule;
3222
3611
  exports.KmsUiPresentationalService = KmsUiPresentationalService;
3612
+ exports.LoaderComponent = LoaderComponent;
3613
+ exports.MapComponent = MapComponent;
3614
+ exports.Marker = Marker;
3615
+ exports.MarkerLabel = MarkerLabel;
3616
+ exports.MarkerOptions = MarkerOptions;
3617
+ exports.MouseWheelDirective = MouseWheelDirective;
3618
+ exports.RadioButtonComponent = RadioButtonComponent;
3619
+ exports.SafeHtmlPipe = SafeHtmlPipe;
3620
+ exports.SafeResourceUrlPipe = SafeResourceUrlPipe;
3621
+ exports.SafeStylePipe = SafeStylePipe;
3622
+ exports.SafeUrlPipe = SafeUrlPipe;
3623
+ exports.SalutationDropdownComponent = SalutationDropdownComponent;
3624
+ exports.SalutationRadiogroupComponent = SalutationRadiogroupComponent;
3625
+ exports.SwipeDirective = SwipeDirective;
3626
+ exports.TimeInputComponent = TimeInputComponent;
3627
+ exports.ToNumberPipe = ToNumberPipe;
3628
+ exports.TooltipComponent = TooltipComponent;
3629
+ exports.TooltipDirective = TooltipDirective;
3630
+ exports.TooltipIconComponent = TooltipIconComponent;
3631
+ exports.TrimPipe = TrimPipe;
3632
+ exports.TypeofPipe = TypeofPipe;
3223
3633
  exports.ViewportService = ViewportService;
3224
- exports["ɵa"] = ActionsParentComponent;
3225
- exports["ɵb"] = BackToTopComponent;
3226
- exports["ɵba"] = SafeResourceUrlPipe;
3227
- exports["ɵbb"] = SafeUrlPipe;
3228
- exports["ɵbc"] = EncodeUriPipe;
3229
- exports["ɵbd"] = DecodeUriPipe;
3230
- exports["ɵbe"] = TypeofPipe;
3231
- exports["ɵbf"] = TrimPipe;
3232
- exports["ɵbg"] = ToNumberPipe;
3233
- exports["ɵbh"] = SwipeDirective;
3234
- exports["ɵbi"] = MouseWheelDirective;
3235
- exports["ɵbj"] = GetMaxHeightDirective;
3236
- exports["ɵbk"] = TooltipDirective;
3237
- exports["ɵc"] = ButtonWithConfirmDialogComponent;
3238
- exports["ɵd"] = CheckboxComponent;
3239
- exports["ɵe"] = ColorInputComponent;
3240
- exports["ɵf"] = FormControlParentComponent;
3241
- exports["ɵg"] = DropdownFromDataComponent;
3242
- exports["ɵh"] = EnumRadiogroupComponent;
3243
- exports["ɵi"] = FileInputComponent;
3244
- exports["ɵj"] = FlyoutComponent;
3245
- exports["ɵl"] = IconComponent;
3246
- exports["ɵm"] = ImageSliderComponent;
3247
- exports["ɵn"] = KMSAccordionItemComponent;
3248
- exports["ɵo"] = LoaderComponent;
3249
- exports["ɵp"] = MapComponent;
3250
- exports["ɵq"] = RadioButtonComponent;
3251
- exports["ɵr"] = SalutationDropdownComponent;
3252
- exports["ɵs"] = SalutationRadiogroupComponent;
3253
- exports["ɵt"] = TimeInputComponent;
3254
- exports["ɵu"] = TooltipComponent;
3255
- exports["ɵv"] = TooltipIconComponent;
3256
- exports["ɵw"] = YesNoRadiogroupComponent;
3257
- exports["ɵx"] = IntegerCurrency;
3258
- exports["ɵy"] = SafeHtmlPipe;
3259
- exports["ɵz"] = SafeStylePipe;
3634
+ exports.YesNoRadiogroupComponent = YesNoRadiogroupComponent;
3260
3635
 
3261
3636
  Object.defineProperty(exports, '__esModule', { value: true });
3262
3637