@kms-ngx-ui/presentational 0.0.20 → 0.0.22

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 (109) hide show
  1. package/bundles/kms-ngx-ui-presentational.umd.js +1651 -1272
  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 +20 -12
  10. package/esm2015/lib/kms-ngx-ui-presentational.module.js +173 -80
  11. package/esm2015/lib/kms-ngx-ui-presentational.service.js +9 -8
  12. package/esm2015/lib/models/address.model.js +1 -1
  13. package/esm2015/lib/models/iconSize.enum.js +1 -1
  14. package/esm2015/lib/models/index.js +1 -1
  15. package/esm2015/lib/models/is-value.function.js +1 -1
  16. package/esm2015/lib/models/salutation.enum.js +1 -1
  17. package/esm2015/lib/models/types/attached-file-dto.model.js +1 -1
  18. package/esm2015/lib/models/types/nullable.type.js +1 -1
  19. package/esm2015/lib/parent-components/actions.component.js +23 -15
  20. package/esm2015/lib/parent-components/form-control.component.js +20 -18
  21. package/esm2015/lib/parent-components/form.component.js +16 -15
  22. package/esm2015/lib/pipes/custom-pipes.module.js +54 -31
  23. package/esm2015/lib/pipes/decode-uri.pipe.js +10 -6
  24. package/esm2015/lib/pipes/encode-uri.pipe.js +10 -6
  25. package/esm2015/lib/pipes/integer-currency.pipe.js +11 -13
  26. package/esm2015/lib/pipes/safe-html.pipe.js +11 -10
  27. package/esm2015/lib/pipes/safe-resource-url.pipe.js +11 -10
  28. package/esm2015/lib/pipes/safe-style.pipe.js +11 -10
  29. package/esm2015/lib/pipes/safe-url.pipe.js +11 -10
  30. package/esm2015/lib/pipes/to-number.pipe.js +11 -7
  31. package/esm2015/lib/pipes/trim.pipe.js +8 -4
  32. package/esm2015/lib/pipes/typeof.pipe.js +10 -6
  33. package/esm2015/lib/services/viewport.service.js +10 -7
  34. package/esm2015/lib/ui/back-to-top/back-to-top.component.js +19 -13
  35. package/esm2015/lib/ui/button-with-confirm-dialog/button-response-types.enum.js +1 -1
  36. package/esm2015/lib/ui/button-with-confirm-dialog/button-with-confirm-dialog.component.js +26 -20
  37. package/esm2015/lib/ui/button-with-confirm-dialog/dialog-data.model.js +1 -1
  38. package/esm2015/lib/ui/checkbox/checkbox.component.js +34 -21
  39. package/esm2015/lib/ui/color-input/color-input.component.js +38 -26
  40. package/esm2015/lib/ui/dropdown-from-data/dropdown-from-data.component.js +53 -33
  41. package/esm2015/lib/ui/enum-radiogroup/enum-radiogroup.component.js +36 -25
  42. package/esm2015/lib/ui/file-input/file-input.component.js +61 -39
  43. package/esm2015/lib/ui/flyout/flyout.component.js +83 -43
  44. package/esm2015/lib/ui/generic-dialog/generic-dialog.component.js +19 -15
  45. package/esm2015/lib/ui/icon/icon.component.js +24 -19
  46. package/esm2015/lib/ui/icon/iconSize.enum.js +1 -1
  47. package/esm2015/lib/ui/image-slider/image-slider.component.js +38 -22
  48. package/esm2015/lib/ui/kms-accordion-item/kms-accordion-item.component.js +25 -17
  49. package/esm2015/lib/ui/loader/loader.component.js +16 -12
  50. package/esm2015/lib/ui/map/map.component.js +17 -15
  51. package/esm2015/lib/ui/radiobutton/radiobutton.component.js +33 -21
  52. package/esm2015/lib/ui/salutation-dropdown/salutation-dropdown.component.js +33 -23
  53. package/esm2015/lib/ui/salutation-radiogroup/salutation-radiogroup.component.js +29 -20
  54. package/esm2015/lib/ui/time-input/time-input.component.js +27 -19
  55. package/esm2015/lib/ui/tooltip/tooltip.component.js +14 -11
  56. package/esm2015/lib/ui/tooltip-icon/tooltip-icon.component.js +26 -16
  57. package/esm2015/lib/ui/yes-no-radiogroup/yes-no-radiogroup.component.js +39 -27
  58. package/esm2015/public-api.js +36 -3
  59. package/fesm2015/kms-ngx-ui-presentational.js +1601 -1227
  60. package/fesm2015/kms-ngx-ui-presentational.js.map +1 -1
  61. package/kms-ngx-ui-presentational.d.ts +1 -37
  62. package/lib/directives/directives.module.d.ts +9 -3
  63. package/lib/directives/mousewheel.directive.d.ts +3 -0
  64. package/lib/directives/sum-of-height.directive.d.ts +3 -0
  65. package/lib/directives/swipe.directive.d.ts +3 -0
  66. package/lib/directives/tooltip.directive.d.ts +3 -0
  67. package/lib/kms-ngx-ui-presentational.component.d.ts +3 -0
  68. package/lib/kms-ngx-ui-presentational.module.d.ts +45 -0
  69. package/lib/kms-ngx-ui-presentational.service.d.ts +3 -0
  70. package/lib/parent-components/actions.component.d.ts +3 -0
  71. package/lib/parent-components/form-control.component.d.ts +3 -0
  72. package/lib/parent-components/form.component.d.ts +3 -0
  73. package/lib/pipes/custom-pipes.module.d.ts +15 -3
  74. package/lib/pipes/decode-uri.pipe.d.ts +3 -0
  75. package/lib/pipes/encode-uri.pipe.d.ts +3 -0
  76. package/lib/pipes/integer-currency.pipe.d.ts +3 -0
  77. package/lib/pipes/safe-html.pipe.d.ts +3 -0
  78. package/lib/pipes/safe-resource-url.pipe.d.ts +3 -0
  79. package/lib/pipes/safe-style.pipe.d.ts +3 -0
  80. package/lib/pipes/safe-url.pipe.d.ts +3 -0
  81. package/lib/pipes/to-number.pipe.d.ts +3 -0
  82. package/lib/pipes/trim.pipe.d.ts +3 -0
  83. package/lib/pipes/typeof.pipe.d.ts +3 -0
  84. package/lib/services/viewport.service.d.ts +3 -3
  85. package/lib/ui/back-to-top/back-to-top.component.d.ts +3 -3
  86. package/lib/ui/button-with-confirm-dialog/button-with-confirm-dialog.component.d.ts +3 -0
  87. package/lib/ui/checkbox/checkbox.component.d.ts +3 -0
  88. package/lib/ui/color-input/color-input.component.d.ts +3 -0
  89. package/lib/ui/dropdown-from-data/dropdown-from-data.component.d.ts +3 -0
  90. package/lib/ui/enum-radiogroup/enum-radiogroup.component.d.ts +3 -0
  91. package/lib/ui/file-input/file-input.component.d.ts +3 -0
  92. package/lib/ui/flyout/flyout.component.d.ts +3 -3
  93. package/lib/ui/generic-dialog/generic-dialog.component.d.ts +3 -0
  94. package/lib/ui/icon/icon.component.d.ts +3 -0
  95. package/lib/ui/image-slider/image-slider.component.d.ts +3 -0
  96. package/lib/ui/kms-accordion-item/kms-accordion-item.component.d.ts +4 -0
  97. package/lib/ui/loader/loader.component.d.ts +3 -0
  98. package/lib/ui/map/map.component.d.ts +3 -0
  99. package/lib/ui/radiobutton/radiobutton.component.d.ts +3 -0
  100. package/lib/ui/salutation-dropdown/salutation-dropdown.component.d.ts +3 -0
  101. package/lib/ui/salutation-radiogroup/salutation-radiogroup.component.d.ts +3 -0
  102. package/lib/ui/time-input/time-input.component.d.ts +3 -0
  103. package/lib/ui/tooltip/tooltip.component.d.ts +3 -0
  104. package/lib/ui/tooltip-icon/tooltip-icon.component.d.ts +3 -0
  105. package/lib/ui/yes-no-radiogroup/yes-no-radiogroup.component.d.ts +3 -0
  106. package/package.json +1 -2
  107. package/public-api.d.ts +35 -0
  108. package/src/styles/mixins.scss +8 -8
  109. package/kms-ngx-ui-presentational.metadata.json +0 -1
@@ -1,54 +1,79 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, Component, EventEmitter, Input, Output, forwardRef, Renderer2, ViewChild, ApplicationRef, ChangeDetectorRef, Pipe, NgModule, VERSION, Inject, PLATFORM_ID, HostListener, NgZone, Directive, ElementRef } from '@angular/core';
3
- import { CurrencyPipe, CommonModule, isPlatformBrowser } from '@angular/common';
4
- import { NG_VALUE_ACCESSOR, FormBuilder, FormControl, NG_VALIDATORS, FormsModule, ReactiveFormsModule } from '@angular/forms';
2
+ import { Injectable, Component, EventEmitter, Input, Output, forwardRef, ViewChild, VERSION, Directive, HostListener, Pipe, NgModule, PLATFORM_ID, Inject } from '@angular/core';
3
+ import * as i2 from '@angular/common';
4
+ import { CommonModule, CurrencyPipe, isPlatformBrowser } from '@angular/common';
5
+ import * as i1$1 from '@angular/forms';
6
+ import { NG_VALUE_ACCESSOR, FormControl, NG_VALIDATORS, FormsModule, ReactiveFormsModule } from '@angular/forms';
7
+ import * as i1 from '@angular/material/checkbox';
5
8
  import { MatCheckboxModule } from '@angular/material/checkbox';
9
+ import * as i2$2 from '@angular/material/radio';
6
10
  import { MatRadioModule } from '@angular/material/radio';
11
+ import * as i2$1 from '@angular/material/form-field';
12
+ import { MatFormFieldModule } from '@angular/material/form-field';
13
+ import * as i1$2 from '@angular/platform-browser';
14
+ import * as i5 from '@angular/material/input';
15
+ import { MatInputModule } from '@angular/material/input';
16
+ import * as i2$3 from '@angular/material/button';
17
+ import { MatButtonModule } from '@angular/material/button';
18
+ import * as i5$1 from '@ngx-translate/core';
19
+ import { TranslateModule } from '@ngx-translate/core';
20
+ import * as i1$3 from '@angular/material/progress-spinner';
21
+ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
7
22
  import { trigger, state, style } from '@angular/animations';
8
- import { DomSanitizer } from '@angular/platform-browser';
23
+ import * as i2$4 from '@angular/material/expansion';
24
+ import { MatExpansionModule } from '@angular/material/expansion';
9
25
  import { Subject } from 'rxjs';
10
- import { MatDialogRef, MAT_DIALOG_DATA, MatDialog, MatDialogModule } from '@angular/material/dialog';
11
- import { SubSink } from 'subsink';
26
+ import * as i2$5 from '@angular/google-maps';
12
27
  import { GoogleMapsModule } from '@angular/google-maps';
13
- import { MatButtonModule } from '@angular/material/button';
14
- import { MatExpansionModule } from '@angular/material/expansion';
28
+ import * as i3 from '@angular/material/select';
15
29
  import { MatSelectModule } from '@angular/material/select';
30
+ import * as i4 from '@angular/material/core';
31
+ import { SubSink } from 'subsink';
32
+ import * as i1$4 from '@angular/material/dialog';
33
+ import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
34
+ import * as i3$1 from '@angular/material/menu';
16
35
  import { MatMenuModule } from '@angular/material/menu';
17
36
  import { EnumValues } from 'enum-values/src/enumValues';
18
- import { moveItemInArray } from '@angular/cdk/drag-drop';
19
- import { TranslateModule } from '@ngx-translate/core';
20
- import { MatFormFieldModule } from '@angular/material/form-field';
21
- import { MatInputModule } from '@angular/material/input';
22
- import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
37
+ import * as i6 from '@angular/cdk/drag-drop';
38
+ import { moveItemInArray, DragDropModule } from '@angular/cdk/drag-drop';
39
+ import * as i2$6 from 'ngx-useful-swiper';
23
40
  import { NgxUsefulSwiperModule } from 'ngx-useful-swiper';
24
41
 
25
42
  class KmsUiPresentationalService {
26
43
  constructor() { }
27
44
  }
28
- KmsUiPresentationalService.ɵprov = i0.ɵɵdefineInjectable({ factory: function KmsUiPresentationalService_Factory() { return new KmsUiPresentationalService(); }, token: KmsUiPresentationalService, providedIn: "root" });
29
- KmsUiPresentationalService.decorators = [
30
- { type: Injectable, args: [{
31
- providedIn: 'root'
32
- },] }
33
- ];
34
- KmsUiPresentationalService.ctorParameters = () => [];
45
+ KmsUiPresentationalService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KmsUiPresentationalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
46
+ KmsUiPresentationalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KmsUiPresentationalService, providedIn: 'root' });
47
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KmsUiPresentationalService, decorators: [{
48
+ type: Injectable,
49
+ args: [{
50
+ providedIn: 'root'
51
+ }]
52
+ }], ctorParameters: function () { return []; } });
35
53
 
36
54
  class KmsUiPresentationalComponent {
37
55
  constructor() { }
38
56
  ngOnInit() {
39
57
  }
40
58
  }
41
- KmsUiPresentationalComponent.decorators = [
42
- { type: Component, args: [{
43
- selector: 'lib-kms-ngx-ui-presentational',
44
- template: `
45
- <p>
46
- kms-ngx-ui-presentational works!
47
- </p>
48
- `
49
- },] }
50
- ];
51
- KmsUiPresentationalComponent.ctorParameters = () => [];
59
+ KmsUiPresentationalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KmsUiPresentationalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
60
+ KmsUiPresentationalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: KmsUiPresentationalComponent, selector: "lib-kms-ngx-ui-presentational", ngImport: i0, template: `
61
+ <p>
62
+ kms-ngx-ui-presentational works!
63
+ </p>
64
+ `, isInline: true });
65
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KmsUiPresentationalComponent, decorators: [{
66
+ type: Component,
67
+ args: [{
68
+ selector: 'lib-kms-ngx-ui-presentational',
69
+ template: `
70
+ <p>
71
+ kms-ngx-ui-presentational works!
72
+ </p>
73
+ `,
74
+ styles: []
75
+ }]
76
+ }], ctorParameters: function () { return []; } });
52
77
 
53
78
  /*!
54
79
  * @copyright FLYACTS GmbH 2019
@@ -82,20 +107,27 @@ class ActionsParentComponent {
82
107
  this.select.emit(id);
83
108
  }
84
109
  }
85
- ActionsParentComponent.decorators = [
86
- { type: Component, args: [{
87
- selector: 'kms-actions',
88
- template: ''
89
- },] }
90
- ];
91
- ActionsParentComponent.propDecorators = {
92
- disabled: [{ type: Input }],
93
- checked: [{ type: Input }],
94
- label: [{ type: Input }],
95
- link: [{ type: Input }],
96
- initialValue: [{ type: Input }],
97
- select: [{ type: Output }]
98
- };
110
+ ActionsParentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ActionsParentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
111
+ ActionsParentComponent.ɵcmp = i0.ɵɵ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, template: '', isInline: true });
112
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ActionsParentComponent, decorators: [{
113
+ type: Component,
114
+ args: [{
115
+ selector: 'kms-actions',
116
+ template: '',
117
+ }]
118
+ }], propDecorators: { disabled: [{
119
+ type: Input
120
+ }], checked: [{
121
+ type: Input
122
+ }], label: [{
123
+ type: Input
124
+ }], link: [{
125
+ type: Input
126
+ }], initialValue: [{
127
+ type: Input
128
+ }], select: [{
129
+ type: Output
130
+ }] } });
99
131
 
100
132
  /*!
101
133
  * @copyright FLYACTS GmbH 2019
@@ -136,26 +168,35 @@ class CheckboxComponent extends ActionsParentComponent {
136
168
  this.onTouch = fn;
137
169
  }
138
170
  }
139
- CheckboxComponent.decorators = [
140
- { type: Component, args: [{
141
- selector: 'kms-checkbox',
142
- 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>",
143
- providers: [
144
- {
145
- provide: NG_VALUE_ACCESSOR,
146
- useExisting: forwardRef(() => CheckboxComponent),
147
- multi: true,
148
- },
149
- ],
150
- styles: [""]
151
- },] }
152
- ];
153
- CheckboxComponent.ctorParameters = () => [];
154
- CheckboxComponent.propDecorators = {
155
- infoText: [{ type: Input }],
156
- name: [{ type: Input }],
157
- select: [{ type: Output }]
158
- };
171
+ CheckboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
172
+ CheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: CheckboxComponent, selector: "kms-checkbox", inputs: { infoText: "infoText", name: "name" }, outputs: { select: "select" }, providers: [
173
+ {
174
+ provide: NG_VALUE_ACCESSOR,
175
+ useExisting: forwardRef(() => CheckboxComponent),
176
+ multi: true,
177
+ },
178
+ ], usesInheritance: true, ngImport: i0, template: "<!-- <label class=\"wrapper ui-copy-text\"\n [ngClass]=\"{'disabled' : disabled}\">{{label}}\n <input type=\"checkbox\" \n [checked]=\"checked\"\n [value]=\"value\"\n [name]=\"name\"\n [disabled]=\"disabled\"\n (change)=\"selectAction($event)\">\n\n</label> -->\n<mat-checkbox class=\"example-margin\" [disabled]=\"disabled\" [name]=\"name\" [(ngModel)]=\"checked\"></mat-checkbox>\n<span *ngIf=\"infoText && infoText.length > 0\" \n class=\"\"\n [ngClass]=\"{'disabled' : disabled}\">{{infoText}}\n</span>", styles: [""], components: [{ type: i1.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$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
179
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CheckboxComponent, decorators: [{
180
+ type: Component,
181
+ args: [{
182
+ selector: 'kms-checkbox',
183
+ templateUrl: './checkbox.component.html',
184
+ styleUrls: ['./checkbox.component.scss'],
185
+ providers: [
186
+ {
187
+ provide: NG_VALUE_ACCESSOR,
188
+ useExisting: forwardRef(() => CheckboxComponent),
189
+ multi: true,
190
+ },
191
+ ],
192
+ }]
193
+ }], ctorParameters: function () { return []; }, propDecorators: { infoText: [{
194
+ type: Input
195
+ }], name: [{
196
+ type: Input
197
+ }], select: [{
198
+ type: Output
199
+ }] } });
159
200
 
160
201
  /*!
161
202
  * @copyright FLYACTS GmbH 2019
@@ -218,19 +259,19 @@ class FormParentComponent {
218
259
  });
219
260
  }
220
261
  }
221
- FormParentComponent.decorators = [
222
- { type: Component, args: [{
223
- selector: 'kms-form',
224
- template: ''
225
- },] }
226
- ];
227
- FormParentComponent.ctorParameters = () => [
228
- { type: FormBuilder }
229
- ];
230
- FormParentComponent.propDecorators = {
231
- formDataChanged: [{ type: Output }],
232
- disabled: [{ type: Input }]
233
- };
262
+ FormParentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormParentComponent, deps: [{ token: i1$1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
263
+ FormParentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FormParentComponent, selector: "kms-form", inputs: { disabled: "disabled" }, outputs: { formDataChanged: "formDataChanged" }, ngImport: i0, template: '', isInline: true });
264
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormParentComponent, decorators: [{
265
+ type: Component,
266
+ args: [{
267
+ selector: 'kms-form',
268
+ template: '',
269
+ }]
270
+ }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }]; }, propDecorators: { formDataChanged: [{
271
+ type: Output
272
+ }], disabled: [{
273
+ type: Input
274
+ }] } });
234
275
 
235
276
  class FormControlParentComponent extends FormParentComponent {
236
277
  constructor(formBuilder, renderer) {
@@ -286,21 +327,306 @@ class FormControlParentComponent extends FormParentComponent {
286
327
  return this.form.valid ? null : false;
287
328
  }
288
329
  }
289
- FormControlParentComponent.decorators = [
290
- { type: Component, args: [{
291
- selector: 'kms-formControlParent',
292
- template: ''
293
- },] }
294
- ];
295
- FormControlParentComponent.ctorParameters = () => [
296
- { type: FormBuilder },
297
- { type: Renderer2 }
298
- ];
299
- FormControlParentComponent.propDecorators = {
300
- defaultDataOverride: [{ type: Input }],
301
- onSelectItemEmitter: [{ type: Output }],
302
- child: [{ type: ViewChild, args: ['child',] }]
303
- };
330
+ FormControlParentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormControlParentComponent, deps: [{ token: i1$1.FormBuilder }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
331
+ FormControlParentComponent.ɵcmp = i0.ɵɵ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, template: '', isInline: true });
332
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormControlParentComponent, decorators: [{
333
+ type: Component,
334
+ args: [{
335
+ selector: 'kms-formControlParent',
336
+ template: '',
337
+ }]
338
+ }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }, { type: i0.Renderer2 }]; }, propDecorators: { defaultDataOverride: [{
339
+ type: Input
340
+ }], onSelectItemEmitter: [{
341
+ type: Output
342
+ }], child: [{
343
+ type: ViewChild,
344
+ args: ['child']
345
+ }] } });
346
+
347
+ /*!
348
+ * @copyright FLYACTS GmbH 2019
349
+ */
350
+
351
+ /**
352
+ * Attached File DTO
353
+ */
354
+ class AttachedFileDTO {
355
+ }
356
+
357
+ /*!
358
+ * @copyright FLYACTS GmbH 2019
359
+ */
360
+ var IconSize$1;
361
+ (function (IconSize) {
362
+ IconSize["FULLSIZE"] = "size-full";
363
+ IconSize["TINY"] = "size-16";
364
+ IconSize["SMALLER"] = "size-20";
365
+ IconSize["SMALL"] = "size-32";
366
+ IconSize["MEDIUM"] = "size-64";
367
+ IconSize["LARGE"] = "size-128";
368
+ IconSize["XL"] = "size-256";
369
+ IconSize["XXL"] = "size-512";
370
+ IconSize["XXXL"] = "size-1024";
371
+ IconSize["NONE"] = "NONE";
372
+ })(IconSize$1 || (IconSize$1 = {}));
373
+
374
+ /**
375
+ * @copyright FLYACTS GmbH 2019
376
+ */
377
+ /**
378
+ * Check if null or undefined
379
+ * @param value value that is being checked
380
+ */
381
+ function isValue(value) {
382
+ if (value === null) {
383
+ return false;
384
+ }
385
+ if (typeof value === 'undefined') {
386
+ return false;
387
+ }
388
+ return true;
389
+ }
390
+
391
+ /*!
392
+ * @copyright FLYACTS GmbH 2019
393
+ */
394
+ var IconSize;
395
+ (function (IconSize) {
396
+ IconSize["FULLSIZE"] = "size-full";
397
+ IconSize["TINY"] = "size-16";
398
+ IconSize["SMALLER"] = "size-20";
399
+ IconSize["SMALL"] = "size-32";
400
+ IconSize["MEDIUM"] = "size-64";
401
+ IconSize["LARGE"] = "size-128";
402
+ IconSize["XL"] = "size-256";
403
+ IconSize["XXL"] = "size-512";
404
+ IconSize["XXXL"] = "size-1024";
405
+ IconSize["NONE"] = "NONE";
406
+ })(IconSize || (IconSize = {}));
407
+
408
+ /**
409
+ * @copyright KMS GmbH
410
+ */
411
+ class IconComponent {
412
+ constructor(sanitizer) {
413
+ this.sanitizer = sanitizer;
414
+ /**
415
+ * Optional: Different size via CSS inline style.
416
+ */
417
+ this.iconSize = IconSize.FULLSIZE;
418
+ /**
419
+ * Dont use icon sprite
420
+ */
421
+ this.dontUseSprite = false;
422
+ this.IconSize = IconSize;
423
+ this.Version = VERSION.full;
424
+ this.timestamp = 0;
425
+ this.iconToShow = this.icon;
426
+ }
427
+ ngOnInit() {
428
+ this.iconToShow = this.icon;
429
+ const d = new Date();
430
+ const n = d.getTime();
431
+ this.timestamp = n;
432
+ }
433
+ }
434
+ IconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IconComponent, deps: [{ token: i1$2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
435
+ IconComponent.ɵcmp = i0.ɵɵ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, template: "<ng-container *ngIf=\"icon !== 'none' && dontUseSprite === false\">\n <span class=\"icon {{ iconSize }}\" [ngClass]=\"iconClass\" [ngStyle]=\"iconStyle\">\n <svg>\n <use\n [attr.xlink:href]=\"\n 'assets/sprite.svg?Version=' + Version + '#' + iconToShow\n \"\n ></use>\n </svg>\n </span>\n</ng-container>\n<ng-container *ngIf=\"icon !== 'none' && dontUseSprite === true\">\n <object\n [data]=\"\n sanitizer.bypassSecurityTrustResourceUrl('assets/icons/' + icon + '')\n \"\n type=\"image/svg+xml\"\n class=\"icon {{ iconSize }}\"\n [ngClass]=\"iconClass\"\n [ngStyle]=\"iconStyle\"\n ></object>\n</ng-container>\n", styles: [""], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
436
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IconComponent, decorators: [{
437
+ type: Component,
438
+ args: [{
439
+ selector: 'kms-icon',
440
+ templateUrl: './icon.component.html',
441
+ styleUrls: ['./icon.component.scss'],
442
+ }]
443
+ }], ctorParameters: function () { return [{ type: i1$2.DomSanitizer }]; }, propDecorators: { icon: [{
444
+ type: Input
445
+ }], iconClass: [{
446
+ type: Input
447
+ }], iconStyle: [{
448
+ type: Input
449
+ }], iconSize: [{
450
+ type: Input
451
+ }], dontUseSprite: [{
452
+ type: Input
453
+ }] } });
454
+
455
+ class TooltipDirective {
456
+ constructor(el, renderer) {
457
+ this.el = el;
458
+ this.renderer = renderer;
459
+ this.tooltipTitle = "";
460
+ this.tooltipText = "";
461
+ this.tooltipLinkText = "";
462
+ this.tooltipLinkUrl = "";
463
+ this.tooltipPlacement = "bottom";
464
+ this.tooltipDelay = 1000;
465
+ this.tooltipPlaceIntoHost = false;
466
+ this.tooltipOnlyonclick = false;
467
+ this.offset = 0;
468
+ }
469
+ onMouseEnter() {
470
+ if (!this.tooltipOnlyonclick) {
471
+ this.show();
472
+ }
473
+ }
474
+ onClick() {
475
+ if (this.tooltipOnlyonclick) {
476
+ this.show();
477
+ }
478
+ }
479
+ onMouseLeave() {
480
+ if (this.tooltipElem) {
481
+ this.hide();
482
+ }
483
+ }
484
+ show() {
485
+ if (!this.tooltipElem) {
486
+ this.create();
487
+ this.setPosition();
488
+ }
489
+ this.renderer.addClass(this.tooltipElem, 'tooltip-show');
490
+ }
491
+ hide() {
492
+ this.renderer.removeClass(this.tooltipElem, 'tooltip-show');
493
+ window.setTimeout(() => {
494
+ }, this.tooltipDelay);
495
+ }
496
+ create() {
497
+ this.tooltipElem = this.renderer.createElement('kms-tooltip-element');
498
+ this.tooltipTitleElem = this.renderer.createElement('b');
499
+ this.renderer.appendChild(this.tooltipTitleElem, this.renderer.createText(this.tooltipTitle));
500
+ this.renderer.appendChild(this.tooltipElem, this.tooltipTitleElem);
501
+ this.tooltipTextElem = this.renderer.createElement('div');
502
+ this.renderer.appendChild(this.tooltipTextElem, this.renderer.createText(this.tooltipText));
503
+ this.renderer.appendChild(this.tooltipElem, this.tooltipTextElem);
504
+ this.tooltipLinkElem = this.renderer.createElement('a');
505
+ this.renderer.setAttribute(this.tooltipLinkElem, 'href', this.tooltipLinkUrl);
506
+ this.renderer.appendChild(this.tooltipLinkElem, this.renderer.createText(this.tooltipLinkText));
507
+ this.renderer.appendChild(this.tooltipElem, this.tooltipLinkElem);
508
+ if (this.tooltipPlaceIntoHost) {
509
+ this.renderer.appendChild(this.el.nativeElement, this.tooltipElem);
510
+ }
511
+ else {
512
+ this.renderer.appendChild(document.body, this.tooltipElem);
513
+ }
514
+ this.renderer.addClass(this.tooltipElem, 'tooltip');
515
+ this.renderer.addClass(this.tooltipElem, `tooltip-${this.tooltipPlacement}`);
516
+ this.renderer.setStyle(this.tooltipElem, '-webkit-transition', `opacity ${this.tooltipDelay}ms`);
517
+ this.renderer.setStyle(this.tooltipElem, '-moz-transition', `opacity ${this.tooltipDelay}ms`);
518
+ this.renderer.setStyle(this.tooltipElem, '-o-transition', `opacity ${this.tooltipDelay}ms`);
519
+ this.renderer.setStyle(this.tooltipElem, 'transition', `opacity ${this.tooltipDelay}ms`);
520
+ }
521
+ setPosition() {
522
+ if (this.tooltipElem) {
523
+ const hostPos = this.el.nativeElement.getBoundingClientRect();
524
+ const tooltipPos = this.tooltipElem.getBoundingClientRect();
525
+ let top, left;
526
+ if (this.tooltipPlaceIntoHost) {
527
+ left = 0;
528
+ top = hostPos.height;
529
+ }
530
+ else {
531
+ const scrollPos = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
532
+ if (this.tooltipPlacement === 'top') {
533
+ top = hostPos.top - tooltipPos.height - this.offset;
534
+ left = hostPos.left + (hostPos.width - tooltipPos.width) / 2;
535
+ }
536
+ if (!this.tooltipPlacement || this.tooltipPlacement === 'bottom') {
537
+ top = hostPos.bottom + this.offset;
538
+ left = hostPos.left + (hostPos.width - tooltipPos.width) / 2;
539
+ }
540
+ if (this.tooltipPlacement === 'left') {
541
+ top = hostPos.top + (hostPos.height - tooltipPos.height) / 2;
542
+ left = hostPos.left - tooltipPos.width - this.offset;
543
+ }
544
+ if (this.tooltipPlacement === 'right') {
545
+ top = hostPos.top + (hostPos.height - tooltipPos.height) / 2;
546
+ left = hostPos.right + this.offset;
547
+ }
548
+ top += scrollPos;
549
+ }
550
+ this.renderer.setStyle(this.tooltipElem, 'top', `${top}px`);
551
+ this.renderer.setStyle(this.tooltipElem, 'left', `${left}px`);
552
+ }
553
+ }
554
+ }
555
+ TooltipDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
556
+ TooltipDirective.ɵdir = i0.ɵɵ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 });
557
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipDirective, decorators: [{
558
+ type: Directive,
559
+ args: [{
560
+ selector: '[kmsTooltip]'
561
+ }]
562
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { tooltipTitle: [{
563
+ type: Input,
564
+ args: ['tooltipTitle']
565
+ }], tooltipText: [{
566
+ type: Input,
567
+ args: ['tooltipText']
568
+ }], tooltipLinkText: [{
569
+ type: Input,
570
+ args: ['tooltipLinkText']
571
+ }], tooltipLinkUrl: [{
572
+ type: Input,
573
+ args: ['tooltipLinkUrl']
574
+ }], tooltipPlacement: [{
575
+ type: Input,
576
+ args: ['tooltipPlacement']
577
+ }], tooltipDelay: [{
578
+ type: Input,
579
+ args: ['tooltipDelay']
580
+ }], tooltipPlaceIntoHost: [{
581
+ type: Input,
582
+ args: ['tooltipPlaceIntoHost']
583
+ }], tooltipOnlyonclick: [{
584
+ type: Input,
585
+ args: ['tooltipOnlyonclick']
586
+ }], onMouseEnter: [{
587
+ type: HostListener,
588
+ args: ['mouseenter']
589
+ }], onClick: [{
590
+ type: HostListener,
591
+ args: ['click']
592
+ }], onMouseLeave: [{
593
+ type: HostListener,
594
+ args: ['mouseleave']
595
+ }] } });
596
+
597
+ class TooltipIconComponent {
598
+ constructor() {
599
+ this.tooltipTitle = "";
600
+ this.tooltipText = "";
601
+ this.tooltipLinkText = "";
602
+ this.tooltipLinkUrl = "";
603
+ this.placement = "";
604
+ this.delay = 1000;
605
+ this.IconSize = IconSize$1;
606
+ }
607
+ }
608
+ TooltipIconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipIconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
609
+ TooltipIconComponent.ɵcmp = i0.ɵɵ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, template: "<span\n kmsTooltip\n [tooltipTitle]=\"tooltipTitle\"\n [tooltipText]=\"tooltipText\"\n [tooltipPlacement]=\"placement\"\n [tooltipDelay]=\"delay\"\n [tooltipLinkText]=\"tooltipLinkText\"\n [tooltipLinkUrl]=\"tooltipLinkUrl\"\n>\n <kms-icon icon=\"ic_info\" [iconSize]=\"IconSize.SMALLER\" [iconClass]=\"'color-primary'\"></kms-icon>\n</span>\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"] }] });
610
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipIconComponent, decorators: [{
611
+ type: Component,
612
+ args: [{
613
+ selector: 'kms-tooltip-icon',
614
+ templateUrl: './tooltip-icon.component.html',
615
+ styleUrls: ['./tooltip-icon.component.scss']
616
+ }]
617
+ }], propDecorators: { tooltipTitle: [{
618
+ type: Input
619
+ }], tooltipText: [{
620
+ type: Input
621
+ }], tooltipLinkText: [{
622
+ type: Input
623
+ }], tooltipLinkUrl: [{
624
+ type: Input
625
+ }], placement: [{
626
+ type: Input
627
+ }], delay: [{
628
+ type: Input
629
+ }] } });
304
630
 
305
631
  class ColorInputComponent extends FormControlParentComponent {
306
632
  constructor(formBuilder, renderer) {
@@ -344,29 +670,35 @@ class ColorInputComponent extends FormControlParentComponent {
344
670
  this.change(color);
345
671
  }
346
672
  }
347
- ColorInputComponent.decorators = [
348
- { type: Component, args: [{
349
- selector: 'kms-color-input',
350
- 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>",
351
- providers: [
352
- {
353
- provide: NG_VALUE_ACCESSOR,
354
- useExisting: forwardRef(() => ColorInputComponent),
355
- multi: true,
356
- },
357
- ],
358
- styles: [""]
359
- },] }
360
- ];
361
- ColorInputComponent.ctorParameters = () => [
362
- { type: FormBuilder },
363
- { type: Renderer2 }
364
- ];
365
- ColorInputComponent.propDecorators = {
366
- label: [{ type: Input }],
367
- tooltipText: [{ type: Input }],
368
- placeholder: [{ type: Input }]
369
- };
673
+ ColorInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ColorInputComponent, deps: [{ token: i1$1.FormBuilder }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
674
+ ColorInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ColorInputComponent, selector: "kms-color-input", inputs: { label: "label", tooltipText: "tooltipText", placeholder: "placeholder" }, providers: [
675
+ {
676
+ provide: NG_VALUE_ACCESSOR,
677
+ useExisting: forwardRef(() => ColorInputComponent),
678
+ multi: true,
679
+ },
680
+ ], usesInheritance: true, ngImport: i0, 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$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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2$1.MatLabel, selector: "mat-label" }, { type: i5.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$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$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
681
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ColorInputComponent, decorators: [{
682
+ type: Component,
683
+ args: [{
684
+ selector: 'kms-color-input',
685
+ templateUrl: './color-input.component.html',
686
+ styleUrls: ['./color-input.component.scss'],
687
+ providers: [
688
+ {
689
+ provide: NG_VALUE_ACCESSOR,
690
+ useExisting: forwardRef(() => ColorInputComponent),
691
+ multi: true,
692
+ },
693
+ ],
694
+ }]
695
+ }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }, { type: i0.Renderer2 }]; }, propDecorators: { label: [{
696
+ type: Input
697
+ }], tooltipText: [{
698
+ type: Input
699
+ }], placeholder: [{
700
+ type: Input
701
+ }] } });
370
702
 
371
703
  /*!
372
704
  * @copyright FLYACTS GmbH 2019
@@ -410,26 +742,35 @@ class RadioButtonComponent extends ActionsParentComponent {
410
742
  this.onTouch = fn;
411
743
  }
412
744
  }
413
- RadioButtonComponent.decorators = [
414
- { type: Component, args: [{
415
- selector: 'kms-radiobutton',
416
- 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",
417
- providers: [
418
- {
419
- provide: NG_VALUE_ACCESSOR,
420
- useExisting: forwardRef(() => RadioButtonComponent),
421
- multi: true,
422
- },
423
- ],
424
- styles: [""]
425
- },] }
426
- ];
427
- RadioButtonComponent.ctorParameters = () => [];
428
- RadioButtonComponent.propDecorators = {
429
- name: [{ type: Input }],
430
- id: [{ type: Input }],
431
- formControl: [{ type: Input }]
432
- };
745
+ RadioButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RadioButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
746
+ RadioButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: RadioButtonComponent, selector: "kms-radiobutton", inputs: { name: "name", id: "id", formControl: "formControl" }, providers: [
747
+ {
748
+ provide: NG_VALUE_ACCESSOR,
749
+ useExisting: forwardRef(() => RadioButtonComponent),
750
+ multi: true,
751
+ },
752
+ ], usesInheritance: true, ngImport: i0, template: "<label class=\"wrapper ui-small-text\"\n [ngClass]=\"{'disabled' : disabled}\">\n <input type=\"radio\"\n [name]=\"name\"\n [value]=\"value\"\n [checked]=\"checked\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n (change)=\"selectAction($event)\">{{label}}\n\n <kms-icon\n class=\"checkmark\" \n aria-hidden=\"true\"\n *ngIf=\"checked\"\n [ngClass]=\"{\n 'disabled' : disabled\n }\"\n [iconClass]=\"{\n 'disabled' : disabled, \n 'color-primary': true,\n 'size-16': true\n }\"\n [icon]=\"'ic_radiobutton_active'\"\n >\n </kms-icon>\n <kms-icon\n class=\"checkmark\" \n aria-hidden=\"true\"\n *ngIf=\"!checked\"\n [ngClass]=\"{\n 'disabled' : disabled\n }\"\n [iconClass]=\"{\n 'disabled' : disabled, \n 'color-primary': true,\n 'size-16': true\n }\"\n [icon]=\"'ic_radiobutton_inactive'\"\n >\n </kms-icon>\n <ng-content></ng-content>\n</label>\n", styles: [""], components: [{ type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "iconStyle", "iconSize", "dontUseSprite"] }], directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
753
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RadioButtonComponent, decorators: [{
754
+ type: Component,
755
+ args: [{
756
+ selector: 'kms-radiobutton',
757
+ templateUrl: './radiobutton.component.html',
758
+ styleUrls: ['./radiobutton.component.scss'],
759
+ providers: [
760
+ {
761
+ provide: NG_VALUE_ACCESSOR,
762
+ useExisting: forwardRef(() => RadioButtonComponent),
763
+ multi: true,
764
+ },
765
+ ],
766
+ }]
767
+ }], ctorParameters: function () { return []; }, propDecorators: { name: [{
768
+ type: Input
769
+ }], id: [{
770
+ type: Input
771
+ }], formControl: [{
772
+ type: Input
773
+ }] } });
433
774
 
434
775
  class TimeInputComponent {
435
776
  constructor(formBuilder) {
@@ -491,23 +832,29 @@ class TimeInputComponent {
491
832
  this.onTouch = fn;
492
833
  }
493
834
  }
494
- TimeInputComponent.decorators = [
495
- { type: Component, args: [{
496
- selector: 'kms-time-input',
497
- 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>",
498
- providers: [
499
- {
500
- provide: NG_VALUE_ACCESSOR,
501
- useExisting: forwardRef(() => TimeInputComponent),
502
- multi: true,
503
- },
504
- ],
505
- styles: [""]
506
- },] }
507
- ];
508
- TimeInputComponent.ctorParameters = () => [
509
- { type: FormBuilder }
510
- ];
835
+ TimeInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TimeInputComponent, deps: [{ token: i1$1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
836
+ TimeInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TimeInputComponent, selector: "kms-time-input", providers: [
837
+ {
838
+ provide: NG_VALUE_ACCESSOR,
839
+ useExisting: forwardRef(() => TimeInputComponent),
840
+ multi: true,
841
+ },
842
+ ], ngImport: i0, 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$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i1$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$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i1$1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { type: i1$1.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }] });
843
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TimeInputComponent, decorators: [{
844
+ type: Component,
845
+ args: [{
846
+ selector: 'kms-time-input',
847
+ templateUrl: './time-input.component.html',
848
+ styleUrls: ['./time-input.component.scss'],
849
+ providers: [
850
+ {
851
+ provide: NG_VALUE_ACCESSOR,
852
+ useExisting: forwardRef(() => TimeInputComponent),
853
+ multi: true,
854
+ },
855
+ ],
856
+ }]
857
+ }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }]; } });
511
858
 
512
859
  class YesNoRadiogroupComponent {
513
860
  constructor(formBuilder, renderer) {
@@ -556,64 +903,39 @@ class YesNoRadiogroupComponent {
556
903
  });
557
904
  }
558
905
  }
559
- YesNoRadiogroupComponent.decorators = [
560
- { type: Component, args: [{
561
- selector: 'kms-yesno-radiogroup',
562
- 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",
563
- providers: [
564
- {
565
- provide: NG_VALUE_ACCESSOR,
566
- useExisting: forwardRef(() => YesNoRadiogroupComponent),
567
- multi: true,
568
- },
569
- ]
570
- },] }
571
- ];
572
- YesNoRadiogroupComponent.ctorParameters = () => [
573
- { type: FormBuilder },
574
- { type: Renderer2 }
575
- ];
576
- YesNoRadiogroupComponent.propDecorators = {
577
- header: [{ type: Input }],
578
- disabled: [{ type: Input }],
579
- textYes: [{ type: Input }],
580
- textNo: [{ type: Input }],
581
- child: [{ type: ViewChild, args: ['child',] }]
582
- };
583
-
584
- /*!
585
- * @copyright FLYACTS GmbH 2019
586
- */
587
- var IconSize$1;
588
- (function (IconSize) {
589
- IconSize["FULLSIZE"] = "size-full";
590
- IconSize["TINY"] = "size-16";
591
- IconSize["SMALLER"] = "size-20";
592
- IconSize["SMALL"] = "size-32";
593
- IconSize["MEDIUM"] = "size-64";
594
- IconSize["LARGE"] = "size-128";
595
- IconSize["XL"] = "size-256";
596
- IconSize["XXL"] = "size-512";
597
- IconSize["XXXL"] = "size-1024";
598
- IconSize["NONE"] = "NONE";
599
- })(IconSize$1 || (IconSize$1 = {}));
600
-
601
- /**
602
- * @copyright FLYACTS GmbH 2019
603
- */
604
- /**
605
- * Check if null or undefined
606
- * @param value value that is being checked
607
- */
608
- function isValue(value) {
609
- if (value === null) {
610
- return false;
611
- }
612
- if (typeof value === 'undefined') {
613
- return false;
614
- }
615
- return true;
616
- }
906
+ YesNoRadiogroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: YesNoRadiogroupComponent, deps: [{ token: i1$1.FormBuilder }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
907
+ YesNoRadiogroupComponent.ɵcmp = i0.ɵɵ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: [
908
+ {
909
+ provide: NG_VALUE_ACCESSOR,
910
+ useExisting: forwardRef(() => YesNoRadiogroupComponent),
911
+ multi: true,
912
+ },
913
+ ], viewQueries: [{ propertyName: "child", first: true, predicate: ["child"], descendants: true }], ngImport: i0, template: "<form [formGroup]=\"form\">\n <div>{{ header }}</div>\n <mat-radio-group [formControl]=\"form.controls['yesno']\" [disabled]=\"disabled\" #child>\n <mat-radio-button [value]=\"true\" [checked]=\"internalValue === true\"> {{ textYes }}</mat-radio-button>\n <mat-radio-button [value]=\"false\" [checked]=\"internalValue === false\"> {{ textNo }}</mat-radio-button>\n </mat-radio-group>\n</form>\n", components: [{ type: i2$2.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }], directives: [{ type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2$2.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
914
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: YesNoRadiogroupComponent, decorators: [{
915
+ type: Component,
916
+ args: [{
917
+ selector: 'kms-yesno-radiogroup',
918
+ templateUrl: './yes-no-radiogroup.component.html',
919
+ providers: [
920
+ {
921
+ provide: NG_VALUE_ACCESSOR,
922
+ useExisting: forwardRef(() => YesNoRadiogroupComponent),
923
+ multi: true,
924
+ },
925
+ ],
926
+ }]
927
+ }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }, { type: i0.Renderer2 }]; }, propDecorators: { header: [{
928
+ type: Input
929
+ }], disabled: [{
930
+ type: Input
931
+ }], textYes: [{
932
+ type: Input
933
+ }], textNo: [{
934
+ type: Input
935
+ }], child: [{
936
+ type: ViewChild,
937
+ args: ['child']
938
+ }] } });
617
939
 
618
940
  // Max size in bytes of uploaded image
619
941
  const MAX_SIZE_BYTES = 2097152;
@@ -788,42 +1110,58 @@ class FileInputComponent {
788
1110
  element.value = '';
789
1111
  }
790
1112
  }
791
- FileInputComponent.decorators = [
792
- { type: Component, args: [{
793
- selector: 'kms-file-input',
794
- 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>",
795
- providers: [
796
- {
797
- provide: NG_VALUE_ACCESSOR,
798
- useExisting: forwardRef(() => FileInputComponent),
799
- multi: true,
800
- },
801
- {
802
- provide: NG_VALIDATORS,
803
- useExisting: forwardRef(() => FileInputComponent),
804
- multi: true,
805
- },
806
- ],
807
- styles: [""]
808
- },] }
809
- ];
810
- FileInputComponent.ctorParameters = () => [
811
- { type: FormBuilder },
812
- { type: ApplicationRef },
813
- { type: ChangeDetectorRef },
814
- { type: Renderer2 }
815
- ];
816
- FileInputComponent.propDecorators = {
817
- fileInput: [{ type: ViewChild, args: ['fileInput',] }],
818
- label: [{ type: Input }],
819
- previewImage: [{ type: Input }],
820
- allowRemove: [{ type: Input }],
821
- previewImageText: [{ type: Input }],
822
- maxSizeBytes: [{ type: Input }],
823
- resizePixels: [{ type: Input }],
824
- acceptedFileMimetypes: [{ type: Input }],
825
- formDataChanged: [{ type: Output }]
826
- };
1113
+ FileInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FileInputComponent, deps: [{ token: i1$1.FormBuilder }, { token: i0.ApplicationRef }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
1114
+ FileInputComponent.ɵcmp = i0.ɵɵ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: [
1115
+ {
1116
+ provide: NG_VALUE_ACCESSOR,
1117
+ useExisting: forwardRef(() => FileInputComponent),
1118
+ multi: true,
1119
+ },
1120
+ {
1121
+ provide: NG_VALIDATORS,
1122
+ useExisting: forwardRef(() => FileInputComponent),
1123
+ multi: true,
1124
+ },
1125
+ ], viewQueries: [{ propertyName: "fileInput", first: true, predicate: ["fileInput"], descendants: true }], ngImport: i0, template: "<form [formGroup]=\"form\" (change)=\"newImageLoading=true\" class=\"fileInput\"> \n\n <div *ngIf=\"form.value.Filename && previewImage\">\n <div *ngIf=\"newImageLoading\">\n {{ 'file-input.loading' | translate }}\n </div>\n <div *ngIf=\"!newImageLoading\">\n <div class=\"\">\n <div class=\"\">\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;\" />\n <img *ngIf=\"form.value.ImageAsDataURL && form.value.ImageAsDataURL !== ''\" [src]=\"form.value.ImageAsDataURL\" style=\"height: 40px; width: fit-content;\" />\n </div>\n <div class=\"\">{{form.value.Filename}}</div>\n <div class=\"\">\n <div (click)=\"removeFromList()\" *ngIf=\"allowRemove\">\n <kms-icon icon=\"trash\" [iconSize]=\"IconSize.TINY\" iconClass=\"color-black\"></kms-icon> \n {{ 'file-input.remove' }}\n </div>\n </div>\n </div>\n </div>\n </div>\n <div *ngIf=\"!previewImage\">\n <div class=\"\">{{form.value.Filename}}</div>\n </div>\n\n <button (click)=\"selectImageOverlay()\" class=\"button-primary-font-color\" mat-stroked-button>\n <span>{{ label }}</span>\n </button>\n <input\n type=\"file\"\n [accept]=\"acceptedFileMimetypes\"\n style=\"display: none\"\n #fileInput\n (click)=\"clearInputValue($event)\"\n (change)=\"selectImage($event)\"\n />\n\n <input type=\"hidden\" [formControl]=\"form.controls['ImageIdent']\" />\n <input type=\"hidden\" [formControl]=\"form.controls['ImageLink']\" />\n <input type=\"hidden\" [formControl]=\"form.controls['Filename']\" />\n <input type=\"hidden\" [formControl]=\"form.controls['ImageAsDataURL']\" />\n <input type=\"hidden\" [formControl]=\"form.controls['Text']\" />\n\n</form>", styles: [""], components: [{ type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "iconStyle", "iconSize", "dontUseSprite"] }, { type: i2$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$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$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$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "translate": i5$1.TranslatePipe } });
1126
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FileInputComponent, decorators: [{
1127
+ type: Component,
1128
+ args: [{
1129
+ selector: 'kms-file-input',
1130
+ templateUrl: './file-input.component.html',
1131
+ styleUrls: ['./file-input.component.scss'],
1132
+ providers: [
1133
+ {
1134
+ provide: NG_VALUE_ACCESSOR,
1135
+ useExisting: forwardRef(() => FileInputComponent),
1136
+ multi: true,
1137
+ },
1138
+ {
1139
+ provide: NG_VALIDATORS,
1140
+ useExisting: forwardRef(() => FileInputComponent),
1141
+ multi: true,
1142
+ },
1143
+ ],
1144
+ }]
1145
+ }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }, { type: i0.ApplicationRef }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }]; }, propDecorators: { fileInput: [{
1146
+ type: ViewChild,
1147
+ args: ['fileInput']
1148
+ }], label: [{
1149
+ type: Input
1150
+ }], previewImage: [{
1151
+ type: Input
1152
+ }], allowRemove: [{
1153
+ type: Input
1154
+ }], previewImageText: [{
1155
+ type: Input
1156
+ }], maxSizeBytes: [{
1157
+ type: Input
1158
+ }], resizePixels: [{
1159
+ type: Input
1160
+ }], acceptedFileMimetypes: [{
1161
+ type: Input
1162
+ }], formDataChanged: [{
1163
+ type: Output
1164
+ }] } });
827
1165
 
828
1166
  class LoaderComponent {
829
1167
  // eslint-disable-next-line @typescript-eslint/no-empty-function
@@ -833,28 +1171,120 @@ class LoaderComponent {
833
1171
  // eslint-disable-next-line @typescript-eslint/no-empty-function
834
1172
  ngOnInit() { }
835
1173
  }
836
- LoaderComponent.decorators = [
837
- { type: Component, args: [{
838
- selector: 'kms-loader',
839
- 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",
840
- styles: [""]
841
- },] }
842
- ];
843
- LoaderComponent.ctorParameters = () => [];
844
- LoaderComponent.propDecorators = {
845
- loading: [{ type: Input }]
846
- };
1174
+ LoaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LoaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1175
+ LoaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: LoaderComponent, selector: "kms-loader", inputs: { loading: "loading" }, ngImport: i0, template: "<div class=\"loading-spinner-shade\" *ngIf=\"loading\">\n <mat-spinner class=\"spinnerMargin\" color=\"accent\" diameter=\"44\"></mat-spinner>\n</div>\n", styles: [""], components: [{ type: i1$3.MatSpinner, selector: "mat-spinner", inputs: ["color"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
1176
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LoaderComponent, decorators: [{
1177
+ type: Component,
1178
+ args: [{
1179
+ selector: 'kms-loader',
1180
+ templateUrl: './loader.component.html',
1181
+ styleUrls: ['./loader.component.scss'],
1182
+ }]
1183
+ }], ctorParameters: function () { return []; }, propDecorators: { loading: [{
1184
+ type: Input
1185
+ }] } });
847
1186
 
848
1187
  /*!
849
1188
  * @copyright FLYACTS GmbH 2019
850
1189
  */
851
- class FlyoutComponent {
852
- constructor() {
853
- this.icon = 'filter';
854
- this.isDropdownOpened = false;
855
- this.targetHeight = '0';
856
- this.animationTime = 5000;
857
- this.headerCssClass = '';
1190
+ /**
1191
+ * Directive to calc the height of all inner elements
1192
+ */
1193
+ class GetMaxHeightDirective {
1194
+ constructor(el) {
1195
+ this.el = el;
1196
+ /**
1197
+ * CSS class name of the child items (markup elements) that should be checked for their height.
1198
+ * This is mandatory.
1199
+ */
1200
+ this.cssClassName = '';
1201
+ /**
1202
+ * Event that will pass the height of the tallest child inside the container.
1203
+ * Useful to calculate the target height of containers with different content (like accordion) for animations.
1204
+ */
1205
+ this.maxHeightChanged = new EventEmitter();
1206
+ /**
1207
+ * Event that will pass the complete sum of all height values from each child.
1208
+ * Useful to calculate the full target height of a container (like dropdown) for animations.
1209
+ */
1210
+ this.sumOfHeight = new EventEmitter();
1211
+ }
1212
+ ngAfterContentChecked() {
1213
+ this.checkHeightOfChildren(this.el.nativeElement, this.cssClassName);
1214
+ }
1215
+ checkHeightOfChildren(parent, cssClassName) {
1216
+ if (!parent) {
1217
+ return;
1218
+ }
1219
+ // find all the child elements with the selected class name
1220
+ const children = parent.getElementsByClassName(cssClassName);
1221
+ // failsafe
1222
+ if (!children) {
1223
+ return;
1224
+ }
1225
+ // get all the child elements heights
1226
+ const itemHeights = Array.from(children).map((x) => x.getBoundingClientRect().height);
1227
+ // failsafe
1228
+ if (itemHeights.length === 0) {
1229
+ return;
1230
+ }
1231
+ // find out the tallest element
1232
+ const maxHeight = itemHeights.reduce((prev, curr) => {
1233
+ return curr > prev ? curr : prev;
1234
+ }, 0);
1235
+ // get sum of heights
1236
+ const sumOfHeight = itemHeights.reduce((pv, cv) => pv + cv, 0);
1237
+ // inform
1238
+ this.maxHeightChanged.emit(maxHeight);
1239
+ this.sumOfHeight.emit(sumOfHeight);
1240
+ }
1241
+ }
1242
+ GetMaxHeightDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: GetMaxHeightDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
1243
+ GetMaxHeightDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: GetMaxHeightDirective, selector: "[getMaxHeight]", inputs: { cssClassName: ["getMaxHeight", "cssClassName"] }, outputs: { maxHeightChanged: "maxHeightChanged", sumOfHeight: "sumOfHeight" }, ngImport: i0 });
1244
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: GetMaxHeightDirective, decorators: [{
1245
+ type: Directive,
1246
+ args: [{
1247
+ selector: '[getMaxHeight]',
1248
+ }]
1249
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { cssClassName: [{
1250
+ type: Input,
1251
+ args: ['getMaxHeight']
1252
+ }], maxHeightChanged: [{
1253
+ type: Output
1254
+ }], sumOfHeight: [{
1255
+ type: Output
1256
+ }] } });
1257
+
1258
+ /*!
1259
+ * @copyright FLYACTS GmbH 2019
1260
+ */
1261
+ class SafeHtmlPipe {
1262
+ constructor(sanitizer) {
1263
+ this.sanitizer = sanitizer;
1264
+ }
1265
+ transform(html) {
1266
+ return this.sanitizer.bypassSecurityTrustHtml(html);
1267
+ }
1268
+ }
1269
+ SafeHtmlPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SafeHtmlPipe, deps: [{ token: i1$2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
1270
+ SafeHtmlPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SafeHtmlPipe, name: "kmsSafeHtml" });
1271
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SafeHtmlPipe, decorators: [{
1272
+ type: Pipe,
1273
+ args: [{
1274
+ name: 'kmsSafeHtml',
1275
+ }]
1276
+ }], ctorParameters: function () { return [{ type: i1$2.DomSanitizer }]; } });
1277
+
1278
+ /*!
1279
+ * @copyright FLYACTS GmbH 2019
1280
+ */
1281
+ class FlyoutComponent {
1282
+ constructor() {
1283
+ this.icon = 'filter';
1284
+ this.isDropdownOpened = false;
1285
+ this.targetHeight = '0';
1286
+ this.animationTime = 5000;
1287
+ this.headerCssClass = '';
858
1288
  this.bodyCssClass = '';
859
1289
  this.headerTitle = '';
860
1290
  this.headerText = '';
@@ -884,52 +1314,84 @@ class FlyoutComponent {
884
1314
  this.targetHeight = `${contentHeight}px`;
885
1315
  }
886
1316
  }
887
- FlyoutComponent.decorators = [
888
- { type: Component, args: [{
889
- selector: 'kms-flyout',
890
- 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",
891
- animations: [
892
- trigger('dropdownAnimation', [
893
- state('true', style({
894
- height: '{{targetHeight}}',
895
- transition: 'height {{animationTime}}ms ease-in-out',
896
- }), {
897
- params: {
898
- targetHeight: '300px',
899
- animationTime: 3000,
900
- },
901
- }),
902
- state('false', style({
903
- height: 0,
904
- transition: 'height {{animationTime}}ms ease-in-out',
905
- }), {
906
- params: {
907
- targetHeight: '300px',
908
- opacity: 0,
909
- animationTime: 3000,
910
- },
911
- }),
912
- ]),
913
- ],
914
- styles: [""]
915
- },] }
916
- ];
917
- FlyoutComponent.propDecorators = {
918
- icon: [{ type: Input }],
919
- headerCssClass: [{ type: Input }],
920
- bodyCssClass: [{ type: Input }],
921
- headerTitle: [{ type: Input }],
922
- headerText: [{ type: Input }],
923
- hasButtonForMore: [{ type: Input }],
924
- moreText: [{ type: Input }],
925
- lessText: [{ type: Input }],
926
- content: [{ type: ViewChild, args: ['content',] }],
927
- flyoutHeader: [{ type: ViewChild, args: ['flyoutHeader',] }]
928
- };
1317
+ FlyoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FlyoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1318
+ FlyoutComponent.ɵcmp = i0.ɵɵ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, template: "<div class=\"flyout\"\n [ngClass]=\"{'is-active': isDropdownOpened}\"\n>\n <div class=\"flyout-header\" (click)=\"toggleDropdownHeader()\" [ngClass]=\"headerCssClass\">\n <span [innerHtml]=\"headerTitle | kmsSafeHtml\"></span>\n <span [innerHtml]=\"headerText | kmsSafeHtml\"></span>\n\n <ng-content select=\"[header]\"></ng-content>\n\n <div *ngIf=\"hasButtonForMore\" (click)=\"toggleDropdown()\" class=\"flyout-header-more\">\n <span *ngIf=\"!isDropdownOpened\">\n {{ moreText }}\n </span>\n <span *ngIf=\"isDropdownOpened\">\n {{ lessText }}\n </span>\n <kms-icon [icon]=\"'chevron-down'\"\n [iconClass]=\"{'size-16': true, 'is-rotating180': isDropdownOpened}\" >\n </kms-icon>\n </div>\n </div>\n <div \n class=\"flyout-body\"\n [ngClass]=\"bodyCssClass\"\n tabindex=\"0\"\n [@dropdownAnimation]=\"{value: isDropdownOpened, params: {targetHeight: targetHeight, animationTime: '500'}}\"\n getMaxHeight=\"inner\"\n (sumOfHeight)=\"setDropdownListHeight($event)\"\n #flyoutHeader>\n <div class=\"inner\" #content>\n <ng-content ></ng-content>\n </div>\n </div>\n\n</div>\n", styles: [""], components: [{ type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "iconStyle", "iconSize", "dontUseSprite"] }], directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: GetMaxHeightDirective, selector: "[getMaxHeight]", inputs: ["getMaxHeight"], outputs: ["maxHeightChanged", "sumOfHeight"] }], pipes: { "kmsSafeHtml": SafeHtmlPipe }, animations: [
1319
+ trigger('dropdownAnimation', [
1320
+ state('true', style({
1321
+ height: '{{targetHeight}}',
1322
+ transition: 'height {{animationTime}}ms ease-in-out',
1323
+ }), {
1324
+ params: {
1325
+ targetHeight: '300px',
1326
+ animationTime: 3000,
1327
+ },
1328
+ }),
1329
+ state('false', style({
1330
+ height: 0,
1331
+ transition: 'height {{animationTime}}ms ease-in-out',
1332
+ }), {
1333
+ params: {
1334
+ targetHeight: '300px',
1335
+ opacity: 0,
1336
+ animationTime: 3000,
1337
+ },
1338
+ }),
1339
+ ]),
1340
+ ] });
1341
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FlyoutComponent, decorators: [{
1342
+ type: Component,
1343
+ args: [{
1344
+ selector: 'kms-flyout',
1345
+ templateUrl: './flyout.component.html',
1346
+ styleUrls: ['./flyout.component.scss'],
1347
+ animations: [
1348
+ trigger('dropdownAnimation', [
1349
+ state('true', style({
1350
+ height: '{{targetHeight}}',
1351
+ transition: 'height {{animationTime}}ms ease-in-out',
1352
+ }), {
1353
+ params: {
1354
+ targetHeight: '300px',
1355
+ animationTime: 3000,
1356
+ },
1357
+ }),
1358
+ state('false', style({
1359
+ height: 0,
1360
+ transition: 'height {{animationTime}}ms ease-in-out',
1361
+ }), {
1362
+ params: {
1363
+ targetHeight: '300px',
1364
+ opacity: 0,
1365
+ animationTime: 3000,
1366
+ },
1367
+ }),
1368
+ ]),
1369
+ ],
1370
+ }]
1371
+ }], propDecorators: { icon: [{
1372
+ type: Input
1373
+ }], headerCssClass: [{
1374
+ type: Input
1375
+ }], bodyCssClass: [{
1376
+ type: Input
1377
+ }], headerTitle: [{
1378
+ type: Input
1379
+ }], headerText: [{
1380
+ type: Input
1381
+ }], hasButtonForMore: [{
1382
+ type: Input
1383
+ }], moreText: [{
1384
+ type: Input
1385
+ }], lessText: [{
1386
+ type: Input
1387
+ }], content: [{
1388
+ type: ViewChild,
1389
+ args: ['content']
1390
+ }], flyoutHeader: [{
1391
+ type: ViewChild,
1392
+ args: ['flyoutHeader']
1393
+ }] } });
929
1394
 
930
- /**
931
- * @copyright KMS GmbH
932
- */
933
1395
  class IntegerCurrency {
934
1396
  constructor(cp) {
935
1397
  this.cp = cp;
@@ -945,14 +1407,14 @@ class IntegerCurrency {
945
1407
  }
946
1408
  }
947
1409
  }
948
- IntegerCurrency.decorators = [
949
- { type: Pipe, args: [{
950
- name: 'kmsIntegerCurrency',
951
- },] }
952
- ];
953
- IntegerCurrency.ctorParameters = () => [
954
- { type: CurrencyPipe }
955
- ];
1410
+ IntegerCurrency.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IntegerCurrency, deps: [{ token: i2.CurrencyPipe }], target: i0.ɵɵFactoryTarget.Pipe });
1411
+ IntegerCurrency.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IntegerCurrency, name: "kmsIntegerCurrency" });
1412
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IntegerCurrency, decorators: [{
1413
+ type: Pipe,
1414
+ args: [{
1415
+ name: 'kmsIntegerCurrency',
1416
+ }]
1417
+ }], ctorParameters: function () { return [{ type: i2.CurrencyPipe }]; } });
956
1418
 
957
1419
  /*!
958
1420
  * @copyright FLYACTS GmbH 2019
@@ -962,11 +1424,14 @@ class DecodeUriPipe {
962
1424
  return decodeURI(value);
963
1425
  }
964
1426
  }
965
- DecodeUriPipe.decorators = [
966
- { type: Pipe, args: [{
967
- name: 'kmsDecodeUri',
968
- },] }
969
- ];
1427
+ DecodeUriPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DecodeUriPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1428
+ DecodeUriPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DecodeUriPipe, name: "kmsDecodeUri" });
1429
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DecodeUriPipe, decorators: [{
1430
+ type: Pipe,
1431
+ args: [{
1432
+ name: 'kmsDecodeUri',
1433
+ }]
1434
+ }] });
970
1435
 
971
1436
  /*!
972
1437
  * @copyright FLYACTS GmbH 2019
@@ -976,31 +1441,14 @@ class EncodeUriPipe {
976
1441
  return encodeURI(value);
977
1442
  }
978
1443
  }
979
- EncodeUriPipe.decorators = [
980
- { type: Pipe, args: [{
981
- name: 'kmsEncodeUri',
982
- },] }
983
- ];
984
-
985
- /*!
986
- * @copyright FLYACTS GmbH 2019
987
- */
988
- class SafeHtmlPipe {
989
- constructor(sanitizer) {
990
- this.sanitizer = sanitizer;
991
- }
992
- transform(html) {
993
- return this.sanitizer.bypassSecurityTrustHtml(html);
994
- }
995
- }
996
- SafeHtmlPipe.decorators = [
997
- { type: Pipe, args: [{
998
- name: 'kmsSafeHtml',
999
- },] }
1000
- ];
1001
- SafeHtmlPipe.ctorParameters = () => [
1002
- { type: DomSanitizer }
1003
- ];
1444
+ EncodeUriPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EncodeUriPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1445
+ EncodeUriPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EncodeUriPipe, name: "kmsEncodeUri" });
1446
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EncodeUriPipe, decorators: [{
1447
+ type: Pipe,
1448
+ args: [{
1449
+ name: 'kmsEncodeUri',
1450
+ }]
1451
+ }] });
1004
1452
 
1005
1453
  /**
1006
1454
  * @copyright KMS GmbH
@@ -1013,14 +1461,14 @@ class SafeStylePipe {
1013
1461
  return this.sanitizer.bypassSecurityTrustStyle(style);
1014
1462
  }
1015
1463
  }
1016
- SafeStylePipe.decorators = [
1017
- { type: Pipe, args: [{
1018
- name: 'kmsSafeStyle',
1019
- },] }
1020
- ];
1021
- SafeStylePipe.ctorParameters = () => [
1022
- { type: DomSanitizer }
1023
- ];
1464
+ SafeStylePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SafeStylePipe, deps: [{ token: i1$2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
1465
+ SafeStylePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SafeStylePipe, name: "kmsSafeStyle" });
1466
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SafeStylePipe, decorators: [{
1467
+ type: Pipe,
1468
+ args: [{
1469
+ name: 'kmsSafeStyle',
1470
+ }]
1471
+ }], ctorParameters: function () { return [{ type: i1$2.DomSanitizer }]; } });
1024
1472
 
1025
1473
  /**
1026
1474
  * @copyright KMS GmbH
@@ -1033,14 +1481,14 @@ class SafeUrlPipe {
1033
1481
  return this.sanitizer.bypassSecurityTrustUrl(url);
1034
1482
  }
1035
1483
  }
1036
- SafeUrlPipe.decorators = [
1037
- { type: Pipe, args: [{
1038
- name: 'kmsSafeSUrl',
1039
- },] }
1040
- ];
1041
- SafeUrlPipe.ctorParameters = () => [
1042
- { type: DomSanitizer }
1043
- ];
1484
+ SafeUrlPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SafeUrlPipe, deps: [{ token: i1$2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
1485
+ SafeUrlPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SafeUrlPipe, name: "kmsSafeSUrl" });
1486
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SafeUrlPipe, decorators: [{
1487
+ type: Pipe,
1488
+ args: [{
1489
+ name: 'kmsSafeSUrl',
1490
+ }]
1491
+ }], ctorParameters: function () { return [{ type: i1$2.DomSanitizer }]; } });
1044
1492
 
1045
1493
  /**
1046
1494
  * @copyright KMS GmbH
@@ -1053,25 +1501,28 @@ class SafeResourceUrlPipe {
1053
1501
  return this.sanitizer.bypassSecurityTrustResourceUrl(url);
1054
1502
  }
1055
1503
  }
1056
- SafeResourceUrlPipe.decorators = [
1057
- { type: Pipe, args: [{
1058
- name: 'kmsSafeResourceSUrl',
1059
- },] }
1060
- ];
1061
- SafeResourceUrlPipe.ctorParameters = () => [
1062
- { type: DomSanitizer }
1063
- ];
1504
+ SafeResourceUrlPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SafeResourceUrlPipe, deps: [{ token: i1$2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
1505
+ SafeResourceUrlPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SafeResourceUrlPipe, name: "kmsSafeResourceSUrl" });
1506
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SafeResourceUrlPipe, decorators: [{
1507
+ type: Pipe,
1508
+ args: [{
1509
+ name: 'kmsSafeResourceSUrl',
1510
+ }]
1511
+ }], ctorParameters: function () { return [{ type: i1$2.DomSanitizer }]; } });
1064
1512
 
1065
1513
  class TypeofPipe {
1066
1514
  transform(value) {
1067
1515
  return typeof value;
1068
1516
  }
1069
1517
  }
1070
- TypeofPipe.decorators = [
1071
- { type: Pipe, args: [{
1072
- name: 'kmsTypeOf',
1073
- },] }
1074
- ];
1518
+ TypeofPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TypeofPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1519
+ TypeofPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TypeofPipe, name: "kmsTypeOf" });
1520
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TypeofPipe, decorators: [{
1521
+ type: Pipe,
1522
+ args: [{
1523
+ name: 'kmsTypeOf',
1524
+ }]
1525
+ }] });
1075
1526
 
1076
1527
  /**
1077
1528
  * @copyright KMS GmbH
@@ -1084,9 +1535,12 @@ class TrimPipe {
1084
1535
  return value.trim();
1085
1536
  }
1086
1537
  }
1087
- TrimPipe.decorators = [
1088
- { type: Pipe, args: [{ name: 'kmsTrim' },] }
1089
- ];
1538
+ TrimPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TrimPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1539
+ TrimPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TrimPipe, name: "kmsTrim" });
1540
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TrimPipe, decorators: [{
1541
+ type: Pipe,
1542
+ args: [{ name: 'kmsTrim' }]
1543
+ }] });
1090
1544
 
1091
1545
  /**
1092
1546
  * @copyright KMS GmbH
@@ -1099,109 +1553,73 @@ class ToNumberPipe {
1099
1553
  return parseInt(items, 10);
1100
1554
  }
1101
1555
  }
1102
- ToNumberPipe.decorators = [
1103
- { type: Pipe, args: [{
1104
- name: 'kmsToNumber',
1105
- pure: false
1106
- },] }
1107
- ];
1556
+ ToNumberPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToNumberPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1557
+ ToNumberPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToNumberPipe, name: "kmsToNumber", pure: false });
1558
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToNumberPipe, decorators: [{
1559
+ type: Pipe,
1560
+ args: [{
1561
+ name: 'kmsToNumber',
1562
+ pure: false
1563
+ }]
1564
+ }] });
1108
1565
 
1109
1566
  /**
1110
1567
  * @copyright KMS GmbH
1111
1568
  */
1112
1569
  class CustomPipesModule {
1113
1570
  }
1114
- CustomPipesModule.decorators = [
1115
- { type: NgModule, args: [{
1116
- declarations: [
1117
- IntegerCurrency,
1118
- SafeHtmlPipe,
1119
- SafeStylePipe,
1120
- SafeResourceUrlPipe,
1121
- SafeUrlPipe,
1122
- EncodeUriPipe,
1123
- DecodeUriPipe,
1124
- TypeofPipe,
1125
- TrimPipe,
1126
- ToNumberPipe,
1127
- ],
1128
- imports: [CommonModule],
1129
- exports: [
1130
- IntegerCurrency,
1131
- SafeHtmlPipe,
1132
- SafeStylePipe,
1133
- SafeResourceUrlPipe,
1134
- SafeUrlPipe,
1135
- EncodeUriPipe,
1136
- DecodeUriPipe,
1137
- TypeofPipe,
1138
- TrimPipe,
1139
- ToNumberPipe,
1140
- ],
1141
- providers: [CurrencyPipe],
1142
- },] }
1143
- ];
1144
-
1145
- /*!
1146
- * @copyright FLYACTS GmbH 2019
1147
- */
1148
- var IconSize;
1149
- (function (IconSize) {
1150
- IconSize["FULLSIZE"] = "size-full";
1151
- IconSize["TINY"] = "size-16";
1152
- IconSize["SMALLER"] = "size-20";
1153
- IconSize["SMALL"] = "size-32";
1154
- IconSize["MEDIUM"] = "size-64";
1155
- IconSize["LARGE"] = "size-128";
1156
- IconSize["XL"] = "size-256";
1157
- IconSize["XXL"] = "size-512";
1158
- IconSize["XXXL"] = "size-1024";
1159
- IconSize["NONE"] = "NONE";
1160
- })(IconSize || (IconSize = {}));
1161
-
1162
- /**
1163
- * @copyright KMS GmbH
1164
- */
1165
- class IconComponent {
1166
- constructor(sanitizer) {
1167
- this.sanitizer = sanitizer;
1168
- /**
1169
- * Optional: Different size via CSS inline style.
1170
- */
1171
- this.iconSize = IconSize.FULLSIZE;
1172
- /**
1173
- * Dont use icon sprite
1174
- */
1175
- this.dontUseSprite = false;
1176
- this.IconSize = IconSize;
1177
- this.Version = VERSION.full;
1178
- this.timestamp = 0;
1179
- this.iconToShow = this.icon;
1180
- }
1181
- ngOnInit() {
1182
- this.iconToShow = this.icon;
1183
- const d = new Date();
1184
- const n = d.getTime();
1185
- this.timestamp = n;
1186
- }
1187
- }
1188
- IconComponent.decorators = [
1189
- { type: Component, args: [{
1190
- selector: 'kms-icon',
1191
- 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",
1192
- styles: [""]
1193
- },] }
1194
- ];
1195
- IconComponent.ctorParameters = () => [
1196
- { type: DomSanitizer }
1197
- ];
1198
- IconComponent.propDecorators = {
1199
- icon: [{ type: Input }],
1200
- iconClass: [{ type: Input }],
1201
- iconStyle: [{ type: Input }],
1202
- iconSize: [{ type: Input }],
1203
- dontUseSprite: [{ type: Input }]
1204
- };
1571
+ CustomPipesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CustomPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1572
+ CustomPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CustomPipesModule, declarations: [IntegerCurrency,
1573
+ SafeHtmlPipe,
1574
+ SafeStylePipe,
1575
+ SafeResourceUrlPipe,
1576
+ SafeUrlPipe,
1577
+ EncodeUriPipe,
1578
+ DecodeUriPipe,
1579
+ TypeofPipe,
1580
+ TrimPipe,
1581
+ ToNumberPipe], imports: [CommonModule], exports: [IntegerCurrency,
1582
+ SafeHtmlPipe,
1583
+ SafeStylePipe,
1584
+ SafeResourceUrlPipe,
1585
+ SafeUrlPipe,
1586
+ EncodeUriPipe,
1587
+ DecodeUriPipe,
1588
+ TypeofPipe,
1589
+ TrimPipe,
1590
+ ToNumberPipe] });
1591
+ CustomPipesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CustomPipesModule, providers: [CurrencyPipe], imports: [[CommonModule]] });
1592
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CustomPipesModule, decorators: [{
1593
+ type: NgModule,
1594
+ args: [{
1595
+ declarations: [
1596
+ IntegerCurrency,
1597
+ SafeHtmlPipe,
1598
+ SafeStylePipe,
1599
+ SafeResourceUrlPipe,
1600
+ SafeUrlPipe,
1601
+ EncodeUriPipe,
1602
+ DecodeUriPipe,
1603
+ TypeofPipe,
1604
+ TrimPipe,
1605
+ ToNumberPipe,
1606
+ ],
1607
+ imports: [CommonModule],
1608
+ exports: [
1609
+ IntegerCurrency,
1610
+ SafeHtmlPipe,
1611
+ SafeStylePipe,
1612
+ SafeResourceUrlPipe,
1613
+ SafeUrlPipe,
1614
+ EncodeUriPipe,
1615
+ DecodeUriPipe,
1616
+ TypeofPipe,
1617
+ TrimPipe,
1618
+ ToNumberPipe,
1619
+ ],
1620
+ providers: [CurrencyPipe],
1621
+ }]
1622
+ }] });
1205
1623
 
1206
1624
  class EnumRadiogroupComponent extends FormControlParentComponent {
1207
1625
  constructor(formBuilder, renderer) {
@@ -1223,28 +1641,34 @@ class EnumRadiogroupComponent extends FormControlParentComponent {
1223
1641
  super.ngOnInit();
1224
1642
  }
1225
1643
  }
1226
- EnumRadiogroupComponent.decorators = [
1227
- { type: Component, args: [{
1228
- selector: 'kms-enum-radiogroup',
1229
- 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>",
1230
- providers: [
1231
- {
1232
- provide: NG_VALUE_ACCESSOR,
1233
- useExisting: forwardRef(() => EnumRadiogroupComponent),
1234
- multi: true,
1235
- },
1236
- ]
1237
- },] }
1238
- ];
1239
- EnumRadiogroupComponent.ctorParameters = () => [
1240
- { type: FormBuilder },
1241
- { type: Renderer2 }
1242
- ];
1243
- EnumRadiogroupComponent.propDecorators = {
1244
- header: [{ type: Input }],
1245
- optionsEnum: [{ type: Input }],
1246
- translationPrefix: [{ type: Input }]
1247
- };
1644
+ EnumRadiogroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EnumRadiogroupComponent, deps: [{ token: i1$1.FormBuilder }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
1645
+ EnumRadiogroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: EnumRadiogroupComponent, selector: "kms-enum-radiogroup", inputs: { header: "header", optionsEnum: "optionsEnum", translationPrefix: "translationPrefix" }, providers: [
1646
+ {
1647
+ provide: NG_VALUE_ACCESSOR,
1648
+ useExisting: forwardRef(() => EnumRadiogroupComponent),
1649
+ multi: true,
1650
+ },
1651
+ ], usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"form\">\n <div>{{ header }}</div>\n <mat-radio-group [formControl]=\"form.controls['enumData']\" [disabled]=\"disabled\" #child>\n <mat-radio-button [value]=\"choice\" [checked]=\"value === choice\" *ngFor=\"let choice of optionValues\">{{ translationPrefix + '.' + choice | translate }}</mat-radio-button>\n </mat-radio-group>\n</form>", components: [{ type: i2$2.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }], directives: [{ type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2$2.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "translate": i5$1.TranslatePipe } });
1652
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EnumRadiogroupComponent, decorators: [{
1653
+ type: Component,
1654
+ args: [{
1655
+ selector: 'kms-enum-radiogroup',
1656
+ templateUrl: './enum-radiogroup.component.html',
1657
+ providers: [
1658
+ {
1659
+ provide: NG_VALUE_ACCESSOR,
1660
+ useExisting: forwardRef(() => EnumRadiogroupComponent),
1661
+ multi: true,
1662
+ },
1663
+ ],
1664
+ }]
1665
+ }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }, { type: i0.Renderer2 }]; }, propDecorators: { header: [{
1666
+ type: Input
1667
+ }], optionsEnum: [{
1668
+ type: Input
1669
+ }], translationPrefix: [{
1670
+ type: Input
1671
+ }] } });
1248
1672
 
1249
1673
  /*!
1250
1674
  * @copyright FLYACTS GmbH 2019
@@ -1258,27 +1682,31 @@ class KMSAccordionItemComponent {
1258
1682
  this.itemTitle = '';
1259
1683
  this.showAsCard = false;
1260
1684
  this.isSmall = false;
1685
+ this.expanded = false;
1261
1686
  this.panelOpenState = false;
1262
1687
  }
1263
1688
  ngOnInit() {
1264
1689
  this.itemTitleTrustHtml = this.sanitizer.bypassSecurityTrustHtml(this.itemTitle);
1265
1690
  }
1266
1691
  }
1267
- KMSAccordionItemComponent.decorators = [
1268
- { type: Component, args: [{
1269
- selector: 'kms-accordion-item',
1270
- 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>",
1271
- styles: [""]
1272
- },] }
1273
- ];
1274
- KMSAccordionItemComponent.ctorParameters = () => [
1275
- { type: DomSanitizer }
1276
- ];
1277
- KMSAccordionItemComponent.propDecorators = {
1278
- itemTitle: [{ type: Input }],
1279
- showAsCard: [{ type: Input }],
1280
- isSmall: [{ type: Input }]
1281
- };
1692
+ KMSAccordionItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KMSAccordionItemComponent, deps: [{ token: i1$2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
1693
+ KMSAccordionItemComponent.ɵcmp = i0.ɵɵ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, 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$4.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { type: i2$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.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2$4.MatExpansionPanelTitle, selector: "mat-panel-title" }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
1694
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KMSAccordionItemComponent, decorators: [{
1695
+ type: Component,
1696
+ args: [{
1697
+ selector: 'kms-accordion-item',
1698
+ templateUrl: './kms-accordion-item.component.html',
1699
+ styleUrls: ['./kms-accordion-item.component.scss'],
1700
+ }]
1701
+ }], ctorParameters: function () { return [{ type: i1$2.DomSanitizer }]; }, propDecorators: { itemTitle: [{
1702
+ type: Input
1703
+ }], showAsCard: [{
1704
+ type: Input
1705
+ }], isSmall: [{
1706
+ type: Input
1707
+ }], expanded: [{
1708
+ type: Input
1709
+ }] } });
1282
1710
 
1283
1711
  /**
1284
1712
  * @copyright KMS GmbH
@@ -1483,12 +1911,14 @@ class ViewportService {
1483
1911
  }
1484
1912
  }
1485
1913
  }
1486
- ViewportService.decorators = [
1487
- { type: Injectable }
1488
- ];
1489
- ViewportService.ctorParameters = () => [
1490
- { type: Object, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] }
1491
- ];
1914
+ ViewportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ViewportService, deps: [{ token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });
1915
+ ViewportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ViewportService });
1916
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ViewportService, decorators: [{
1917
+ type: Injectable
1918
+ }], ctorParameters: function () { return [{ type: Object, decorators: [{
1919
+ type: Inject,
1920
+ args: [PLATFORM_ID]
1921
+ }] }]; } });
1492
1922
 
1493
1923
  /*!
1494
1924
  * @copyright FLYACTS GmbH 2019
@@ -1611,19 +2041,18 @@ class MapComponent {
1611
2041
  }
1612
2042
  }
1613
2043
  }
1614
- MapComponent.decorators = [
1615
- { type: Component, args: [{
1616
- selector: 'kms-map',
1617
- 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>",
1618
- styles: [""]
1619
- },] }
1620
- ];
1621
- MapComponent.ctorParameters = () => [
1622
- { type: ViewportService }
1623
- ];
1624
- MapComponent.propDecorators = {
1625
- data: [{ type: Input }]
1626
- };
2044
+ MapComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MapComponent, deps: [{ token: ViewportService }], target: i0.ɵɵFactoryTarget.Component });
2045
+ MapComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: MapComponent, selector: "kms-map", inputs: { data: "data" }, ngImport: i0, template: "<div *ngIf=\"geoDataFoundForAddress && widthSet\">\n <google-map\n height=\"415px\"\n [width]=\"width\"\n [zoom]=\"zoom\"\n [center]=\"center\"\n [options]=\"options\"\n >\n <map-marker\n *ngFor=\"let marker of markers\"\n [position]=\"marker.position\"\n [label]=\"marker.label\"\n [title]=\"marker.title\"\n [options]=\"marker.options\"\n >\n </map-marker>\n </google-map>\n</div>", styles: [""], components: [{ type: i2$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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2$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"] }] });
2046
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MapComponent, decorators: [{
2047
+ type: Component,
2048
+ args: [{
2049
+ selector: 'kms-map',
2050
+ templateUrl: './map.component.html',
2051
+ styleUrls: ['./map.component.scss']
2052
+ }]
2053
+ }], ctorParameters: function () { return [{ type: ViewportService }]; }, propDecorators: { data: [{
2054
+ type: Input
2055
+ }] } });
1627
2056
 
1628
2057
  // TODO change values after cleaned up database
1629
2058
  var SalutationEnum;
@@ -1657,79 +2086,48 @@ class SalutationDropdownComponent extends FormControlParentComponent {
1657
2086
  super.ngOnInit();
1658
2087
  }
1659
2088
  }
1660
- SalutationDropdownComponent.decorators = [
1661
- { type: Component, args: [{
1662
- selector: 'kms-salutation-dropdown',
1663
- 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>",
1664
- providers: [
1665
- {
1666
- provide: NG_VALUE_ACCESSOR,
1667
- useExisting: forwardRef(() => SalutationDropdownComponent),
1668
- multi: true,
1669
- },
1670
- ]
1671
- },] }
1672
- ];
1673
- SalutationDropdownComponent.ctorParameters = () => [
1674
- { type: FormBuilder },
1675
- { type: Renderer2 }
1676
- ];
1677
- SalutationDropdownComponent.propDecorators = {
1678
- placeholder: [{ type: Input }]
1679
- };
2089
+ SalutationDropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SalutationDropdownComponent, deps: [{ token: i1$1.FormBuilder }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
2090
+ SalutationDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SalutationDropdownComponent, selector: "kms-salutation-dropdown", inputs: { placeholder: "placeholder" }, providers: [
2091
+ {
2092
+ provide: NG_VALUE_ACCESSOR,
2093
+ useExisting: forwardRef(() => SalutationDropdownComponent),
2094
+ multi: true,
2095
+ },
2096
+ ], usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"form\" class=\"row\">\n <mat-form-field class=\"col\">\n <mat-select disableOptionCentering [formControl]=\"form.controls['salut']\" [placeholder]=\"placeholder\" [value]=\"value\" #child>\n <mat-option [value]=\"SalutationEnum.NOT_SPECIFIED\">{{ 'general.salutation.' + Object.keys(SalutationEnum)[0]?.toLowerCase() | translate }}</mat-option>\n <mat-option [value]=\"SalutationEnum.MALE\">{{ 'general.salutation.' + Object.keys(SalutationEnum)[1]?.toLowerCase() | translate }}</mat-option>\n <mat-option [value]=\"SalutationEnum.FEMALE\">{{ 'general.salutation.' + Object.keys(SalutationEnum)[2]?.toLowerCase() | translate }}</mat-option>\n </mat-select>\n </mat-form-field>\n</form>", components: [{ type: i2$1.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i3.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { type: i4.MatOption, selector: "mat-option", exportAs: ["matOption"] }], directives: [{ type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "translate": i5$1.TranslatePipe } });
2097
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SalutationDropdownComponent, decorators: [{
2098
+ type: Component,
2099
+ args: [{
2100
+ selector: 'kms-salutation-dropdown',
2101
+ templateUrl: './salutation-dropdown.component.html',
2102
+ providers: [
2103
+ {
2104
+ provide: NG_VALUE_ACCESSOR,
2105
+ useExisting: forwardRef(() => SalutationDropdownComponent),
2106
+ multi: true,
2107
+ },
2108
+ ],
2109
+ }]
2110
+ }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }, { type: i0.Renderer2 }]; }, propDecorators: { placeholder: [{
2111
+ type: Input
2112
+ }] } });
1680
2113
 
1681
2114
  class TooltipComponent {
1682
2115
  constructor() {
1683
2116
  this.tooltipTitle = "";
1684
2117
  }
1685
2118
  }
1686
- TooltipComponent.decorators = [
1687
- { type: Component, args: [{
1688
- selector: 'kms-tooltip-element',
1689
- template: "<ng-content></ng-content>",
1690
- styles: ["[kmsTooltip]{position:relative}\n"]
1691
- },] }
1692
- ];
1693
- TooltipComponent.propDecorators = {
1694
- tooltipTitle: [{ type: Input }]
1695
- };
1696
-
1697
- /*!
1698
- * @copyright FLYACTS GmbH 2019
1699
- */
1700
-
1701
- /**
1702
- * Attached File DTO
1703
- */
1704
- class AttachedFileDTO {
1705
- }
1706
-
1707
- class TooltipIconComponent {
1708
- constructor() {
1709
- this.tooltipTitle = "";
1710
- this.tooltipText = "";
1711
- this.tooltipLinkText = "";
1712
- this.tooltipLinkUrl = "";
1713
- this.placement = "";
1714
- this.delay = 1000;
1715
- this.IconSize = IconSize$1;
1716
- }
1717
- }
1718
- TooltipIconComponent.decorators = [
1719
- { type: Component, args: [{
1720
- selector: 'kms-tooltip-icon',
1721
- 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",
1722
- styles: [""]
1723
- },] }
1724
- ];
1725
- TooltipIconComponent.propDecorators = {
1726
- tooltipTitle: [{ type: Input }],
1727
- tooltipText: [{ type: Input }],
1728
- tooltipLinkText: [{ type: Input }],
1729
- tooltipLinkUrl: [{ type: Input }],
1730
- placement: [{ type: Input }],
1731
- delay: [{ type: Input }]
1732
- };
2119
+ TooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2120
+ TooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TooltipComponent, selector: "kms-tooltip-element", inputs: { tooltipTitle: "tooltipTitle" }, ngImport: i0, template: "<ng-content></ng-content>", styles: ["[kmsTooltip]{position:relative}\n"] });
2121
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TooltipComponent, decorators: [{
2122
+ type: Component,
2123
+ args: [{
2124
+ selector: 'kms-tooltip-element',
2125
+ templateUrl: './tooltip.component.html',
2126
+ styleUrls: ['./tooltip.component.scss']
2127
+ }]
2128
+ }], propDecorators: { tooltipTitle: [{
2129
+ type: Input
2130
+ }] } });
1733
2131
 
1734
2132
  class SalutationRadiogroupComponent extends FormControlParentComponent {
1735
2133
  constructor(formBuilder, renderer) {
@@ -1752,23 +2150,28 @@ class SalutationRadiogroupComponent extends FormControlParentComponent {
1752
2150
  super.ngOnInit();
1753
2151
  }
1754
2152
  }
1755
- SalutationRadiogroupComponent.decorators = [
1756
- { type: Component, args: [{
1757
- selector: 'kms-salutation-radiogroup',
1758
- 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>",
1759
- providers: [
1760
- {
1761
- provide: NG_VALUE_ACCESSOR,
1762
- useExisting: forwardRef(() => SalutationRadiogroupComponent),
1763
- multi: true,
1764
- },
1765
- ]
1766
- },] }
1767
- ];
1768
- SalutationRadiogroupComponent.ctorParameters = () => [
1769
- { type: FormBuilder },
1770
- { type: Renderer2 }
1771
- ];
2153
+ SalutationRadiogroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SalutationRadiogroupComponent, deps: [{ token: i1$1.FormBuilder }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
2154
+ SalutationRadiogroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SalutationRadiogroupComponent, selector: "kms-salutation-radiogroup", providers: [
2155
+ {
2156
+ provide: NG_VALUE_ACCESSOR,
2157
+ useExisting: forwardRef(() => SalutationRadiogroupComponent),
2158
+ multi: true,
2159
+ },
2160
+ ], usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"form\" >\n <mat-radio-group [formControl]=\"form.controls['salut']\" [disabled]=\"disabled\" #radioGroup>\n <mat-radio-button color=\"primary\" [value]=\"SalutationEnum.NOT_SPECIFIED\" [checked]=\"value === SalutationEnum.NOT_SPECIFIED\">\n {{ 'general.salutation.' + Object.keys(SalutationEnum)[0]?.toLowerCase() | translate }}\n </mat-radio-button>\n <mat-radio-button color=\"primary\" [value]=\"SalutationEnum.MALE\" [checked]=\"value === SalutationEnum.MALE\">\n {{ 'general.salutation.' + Object.keys(SalutationEnum)[1]?.toLowerCase() | translate }}\n </mat-radio-button>\n <mat-radio-button color=\"primary\" [value]=\"SalutationEnum.FEMALE\" [checked]=\"value === SalutationEnum.FEMALE\">\n {{ 'general.salutation.' + Object.keys(SalutationEnum)[2]?.toLowerCase() | translate }}\n </mat-radio-button>\n </mat-radio-group>\n</form>", components: [{ type: i2$2.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }], directives: [{ type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2$2.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "translate": i5$1.TranslatePipe } });
2161
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SalutationRadiogroupComponent, decorators: [{
2162
+ type: Component,
2163
+ args: [{
2164
+ selector: 'kms-salutation-radiogroup',
2165
+ templateUrl: './salutation-radiogroup.component.html',
2166
+ providers: [
2167
+ {
2168
+ provide: NG_VALUE_ACCESSOR,
2169
+ useExisting: forwardRef(() => SalutationRadiogroupComponent),
2170
+ multi: true,
2171
+ },
2172
+ ],
2173
+ }]
2174
+ }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }, { type: i0.Renderer2 }]; } });
1772
2175
 
1773
2176
  /**
1774
2177
  * @copyright KMS GmbH
@@ -1801,18 +2204,21 @@ class BackToTopComponent {
1801
2204
  }
1802
2205
  }
1803
2206
  }
1804
- BackToTopComponent.decorators = [
1805
- { type: Component, args: [{
1806
- selector: 'kms-back-to-top',
1807
- 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>"
1808
- },] }
1809
- ];
1810
- BackToTopComponent.ctorParameters = () => [
1811
- { type: Object, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] }
1812
- ];
1813
- BackToTopComponent.propDecorators = {
1814
- onWindowScroll: [{ type: HostListener, args: ['window:scroll', [],] }]
1815
- };
2207
+ BackToTopComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BackToTopComponent, deps: [{ token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Component });
2208
+ BackToTopComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: BackToTopComponent, selector: "kms-back-to-top", host: { listeners: { "window:scroll": "onWindowScroll()" } }, ngImport: i0, template: "<div class=\"scrollToTop\"\n [ngClass]=\"{'show': windowScrolled}\"\n (click)=\"scrollToTop()\">\n <div class=\"scrollToTop-inner\">\n <kms-icon icon=\"floating_button_clear\" iconClass=\"color-white\"></kms-icon>\n </div>\n</div>", components: [{ type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "iconStyle", "iconSize", "dontUseSprite"] }], directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
2209
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BackToTopComponent, decorators: [{
2210
+ type: Component,
2211
+ args: [{
2212
+ selector: 'kms-back-to-top',
2213
+ templateUrl: './back-to-top.component.html',
2214
+ }]
2215
+ }], ctorParameters: function () { return [{ type: Object, decorators: [{
2216
+ type: Inject,
2217
+ args: [PLATFORM_ID]
2218
+ }] }]; }, propDecorators: { onWindowScroll: [{
2219
+ type: HostListener,
2220
+ args: ['window:scroll', []]
2221
+ }] } });
1816
2222
 
1817
2223
  var ButtonResponseType;
1818
2224
  (function (ButtonResponseType) {
@@ -1857,18 +2263,19 @@ class GenericDialogComponent {
1857
2263
  });
1858
2264
  }
1859
2265
  }
1860
- GenericDialogComponent.decorators = [
1861
- { type: Component, args: [{
1862
- selector: 'kms-generic-dialog',
1863
- 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",
1864
- styles: [""]
1865
- },] }
1866
- ];
1867
- GenericDialogComponent.ctorParameters = () => [
1868
- { type: MatDialogRef },
1869
- { type: NgZone },
1870
- { type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
1871
- ];
2266
+ GenericDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: GenericDialogComponent, deps: [{ token: i1$4.MatDialogRef }, { token: i0.NgZone }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
2267
+ GenericDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: GenericDialogComponent, selector: "kms-generic-dialog", ngImport: i0, template: "<div mat-dialog-title class=\"mat-dialog-title\">\n <h3>{{ data.title }}</h3>\n</div>\n<div mat-dialog-content class=\"mat-dialog-content\">\n {{ data.message }}\n</div>\n<div mat-dialog-actions class=\"custom-dialog-actions\">\n <button\n mat-flat-button\n class=\"test_secondary_button\"\n color=\"accent\"\n (click)=\"onClickAction(ButtonResponseType.secondary)\"\n >\n {{ buttons.secondary }}\n </button>\n <button\n mat-flat-button\n class=\"test_primary_button\"\n color=\"primary\"\n (click)=\"onClickAction(ButtonResponseType.primary)\"\n >\n {{ buttons.primary }}\n </button>\n</div>\n", styles: [""], components: [{ type: i2$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$4.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1$4.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i1$4.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }] });
2268
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: GenericDialogComponent, decorators: [{
2269
+ type: Component,
2270
+ args: [{
2271
+ selector: 'kms-generic-dialog',
2272
+ templateUrl: './generic-dialog.component.html',
2273
+ styleUrls: ['./generic-dialog.component.scss'],
2274
+ }]
2275
+ }], ctorParameters: function () { return [{ type: i1$4.MatDialogRef }, { type: i0.NgZone }, { type: undefined, decorators: [{
2276
+ type: Inject,
2277
+ args: [MAT_DIALOG_DATA]
2278
+ }] }]; } });
1872
2279
 
1873
2280
  class ButtonWithConfirmDialogComponent {
1874
2281
  // eslint-disable-next-line @typescript-eslint/no-empty-function
@@ -1902,24 +2309,28 @@ class ButtonWithConfirmDialogComponent {
1902
2309
  });
1903
2310
  }
1904
2311
  }
1905
- ButtonWithConfirmDialogComponent.decorators = [
1906
- { type: Component, args: [{
1907
- selector: 'kms-button-with-confirm-dialog',
1908
- 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",
1909
- styles: [""]
1910
- },] }
1911
- ];
1912
- ButtonWithConfirmDialogComponent.ctorParameters = () => [
1913
- { type: MatDialog }
1914
- ];
1915
- ButtonWithConfirmDialogComponent.propDecorators = {
1916
- disabled: [{ type: Input }],
1917
- buttonText: [{ type: Input }],
1918
- confirmTitle: [{ type: Input }],
1919
- confirmTextYes: [{ type: Input }],
1920
- confirmTextNo: [{ type: Input }],
1921
- onConfirmClosed: [{ type: Output }]
1922
- };
2312
+ ButtonWithConfirmDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonWithConfirmDialogComponent, deps: [{ token: i1$4.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
2313
+ ButtonWithConfirmDialogComponent.ɵcmp = i0.ɵɵ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, template: "<button\n type=\"button\"\n (click)=\"start()\"\n mat-stroked-button\n [disabled]=\"disabled\"\n>\n {{ buttonText }}\n</button>\n", styles: [""], components: [{ type: i2$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"] }] });
2314
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ButtonWithConfirmDialogComponent, decorators: [{
2315
+ type: Component,
2316
+ args: [{
2317
+ selector: 'kms-button-with-confirm-dialog',
2318
+ templateUrl: './button-with-confirm-dialog.component.html',
2319
+ styleUrls: ['./button-with-confirm-dialog.component.scss'],
2320
+ }]
2321
+ }], ctorParameters: function () { return [{ type: i1$4.MatDialog }]; }, propDecorators: { disabled: [{
2322
+ type: Input
2323
+ }], buttonText: [{
2324
+ type: Input
2325
+ }], confirmTitle: [{
2326
+ type: Input
2327
+ }], confirmTextYes: [{
2328
+ type: Input
2329
+ }], confirmTextNo: [{
2330
+ type: Input
2331
+ }], onConfirmClosed: [{
2332
+ type: Output
2333
+ }] } });
1923
2334
 
1924
2335
  /**
1925
2336
  * Dropdown from data component {@link https://leaseplan-dev.rentoffice.de/styleguide#ui-elements}
@@ -2030,372 +2441,98 @@ class DropdownFromDataComponent extends FormControlParentComponent {
2030
2441
  this.onSelectItemEmitter.emit(value);
2031
2442
  }
2032
2443
  }
2033
- DropdownFromDataComponent.decorators = [
2034
- { type: Component, args: [{
2035
- selector: 'kms-dropdown-from-data',
2036
- 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",
2037
- providers: [
2038
- {
2039
- provide: NG_VALUE_ACCESSOR,
2040
- useExisting: forwardRef(() => DropdownFromDataComponent),
2041
- multi: true,
2042
- },
2043
- ]
2044
- },] }
2045
- ];
2046
- DropdownFromDataComponent.ctorParameters = () => [
2047
- { type: FormBuilder },
2048
- { type: Renderer2 }
2049
- ];
2050
- DropdownFromDataComponent.propDecorators = {
2051
- optionsEnum: [{ type: Input }],
2052
- optionsPlainArray: [{ type: Input }],
2053
- optionsObjArray: [{ type: Input }],
2054
- mapKey: [{ type: Input }],
2055
- mapValue: [{ type: Input }],
2056
- hasNullOption: [{ type: Input }],
2057
- translation: [{ type: Input }],
2058
- placeholder: [{ type: Input }],
2059
- label: [{ type: Input }],
2060
- required: [{ type: Input }],
2061
- useEnumIndexAsValue: [{ type: Input }]
2062
- };
2444
+ DropdownFromDataComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropdownFromDataComponent, deps: [{ token: i1$1.FormBuilder }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
2445
+ DropdownFromDataComponent.ɵcmp = i0.ɵɵ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: [
2446
+ {
2447
+ provide: NG_VALUE_ACCESSOR,
2448
+ useExisting: forwardRef(() => DropdownFromDataComponent),
2449
+ multi: true,
2450
+ },
2451
+ ], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<form [formGroup]=\"form\">\n <mat-form-field [attr.required]=\"required\" [floatLabel]=\"placeholder ? 'always' : 'auto'\">\n <mat-label>{{ label }}</mat-label>\n <mat-select\n placeholder=\"{{ placeholder }}\"\n disableOptionCentering\n [(value)]=\"value\"\n (selectionChange)=\"valueChanged($event?.value)\"\n #child\n [disabled]=\"disabled\"\n >\n <mat-option *ngFor=\"let key of keys; let i = index\" [value]=\"values[i]\">\n <span>{{ setDisplayKey(key) }}</span>\n </mat-option>\n </mat-select>\n </mat-form-field>\n</form>\n", components: [{ type: i2$1.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i3.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { type: i4.MatOption, selector: "mat-option", exportAs: ["matOption"] }], directives: [{ type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2$1.MatLabel, selector: "mat-label" }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
2452
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropdownFromDataComponent, decorators: [{
2453
+ type: Component,
2454
+ args: [{
2455
+ selector: 'kms-dropdown-from-data',
2456
+ templateUrl: './dropdown-from-data.component.html',
2457
+ providers: [
2458
+ {
2459
+ provide: NG_VALUE_ACCESSOR,
2460
+ useExisting: forwardRef(() => DropdownFromDataComponent),
2461
+ multi: true,
2462
+ },
2463
+ ],
2464
+ }]
2465
+ }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }, { type: i0.Renderer2 }]; }, propDecorators: { optionsEnum: [{
2466
+ type: Input
2467
+ }], optionsPlainArray: [{
2468
+ type: Input
2469
+ }], optionsObjArray: [{
2470
+ type: Input
2471
+ }], mapKey: [{
2472
+ type: Input
2473
+ }], mapValue: [{
2474
+ type: Input
2475
+ }], hasNullOption: [{
2476
+ type: Input
2477
+ }], translation: [{
2478
+ type: Input
2479
+ }], placeholder: [{
2480
+ type: Input
2481
+ }], label: [{
2482
+ type: Input
2483
+ }], required: [{
2484
+ type: Input
2485
+ }], useEnumIndexAsValue: [{
2486
+ type: Input
2487
+ }] } });
2063
2488
 
2064
2489
  /*!
2065
2490
  * @copyright FLYACTS GmbH 2019
2066
2491
  */
2067
- class ImageSliderComponent {
2068
- constructor(sanitizer) {
2069
- this.sanitizer = sanitizer;
2070
- this.editMode = false;
2071
- this.orderChanged = new EventEmitter();
2072
- this.deleteImageEvent = new EventEmitter();
2492
+ class SwipeDirective {
2493
+ constructor() {
2073
2494
  /**
2074
- * Optional: Define Swipe behaviour configuration.
2075
- * Default is 10% for the threshold definition until a swipe triggers next/previous slide.
2495
+ * Output Event that is emitted during swipe process (mouse move or touch move event).
2496
+ * Can be used for calculation purposes.
2076
2497
  */
2077
- this.swipeConfig = {
2078
- swipeThreshold: 5,
2079
- swipeThresholdType: '%',
2080
- swipeLocalPosition: true,
2081
- };
2082
- this.selectedSlide = 0;
2083
- this.isLastClickedInSliderImage = false;
2084
- this.config = {
2085
- initialSlide: 0,
2086
- slidesPerView: 3,
2087
- navigation: {
2088
- nextEl: '.swiper-button-next',
2089
- prevEl: '.swiper-button-prev',
2090
- },
2091
- watchOverflow: true,
2092
- autoHeight: true,
2093
- allowTouchMove: false,
2094
- spaceBetween: 30,
2095
- on: {
2096
- slideChange: () => {
2097
- // do something
2098
- },
2099
- slideChangeTransitionEnd: () => {
2100
- // do something
2101
- },
2102
- },
2103
- };
2104
- }
2105
- ngOnInit() {
2106
- if (this.slides) {
2107
- // TODO use Pipe safeStyle
2108
- this.selectedSlideImage = this.sanitizer.bypassSecurityTrustStyle('url(' + this.slides[0] + ')');
2109
- }
2110
- }
2111
- // !TODO
2112
- onKeydownHandler(event) {
2113
- if (event.key === 'ArrowRight') {
2114
- this.nextSlide();
2115
- }
2116
- if (event.key === 'ArrowLeft') {
2117
- this.previousSlide();
2118
- }
2498
+ this.moveEvent = new EventEmitter();
2499
+ /**
2500
+ * Output Event that is emitted when swipe process end (mouse up or touch end event).
2501
+ * Can be used for calculation purposes.
2502
+ */
2503
+ this.releaseEvent = new EventEmitter();
2504
+ this._startPosition = -1;
2505
+ this._lastPosX = 0;
2506
+ this._thresholdWasReached = false;
2507
+ this._timeStart = 0;
2119
2508
  }
2120
2509
  /**
2121
- * Slide follows the finger or mouse according to it´s move delta.
2122
- * @param event SwipeMoveEvent
2510
+ * Needed config that defines swipe behaviour.
2511
+ * @param options SwipeOptions
2123
2512
  */
2124
- handleMoveEvent(event) {
2125
- // certain move threshold needs to be reached
2126
- if (!event.thresholdWasReached) {
2127
- return;
2513
+ set config(options) {
2514
+ if (options) {
2515
+ this._swipeOptions = options;
2128
2516
  }
2129
- this.config.direction = event.direction === 1 ? 'horizontal' : 'vertical';
2130
2517
  }
2518
+ onMouseDown(event) {
2519
+ this.calculateStartPosition(event);
2520
+ }
2521
+ onMove(event) {
2522
+ this.move(event);
2523
+ }
2524
+ onRelease(event) {
2525
+ this.release(event);
2526
+ this.reset();
2527
+ }
2528
+ // ** PRIVATE ** //
2131
2529
  /**
2132
- * Mouse up or slide container was left.
2133
- * @param event SwipeReleaseEvent
2530
+ * Function checks if the current moving delta is inside the defined threshold.
2531
+ * Sets the flag to true if the threshold was reached once.
2134
2532
  */
2135
- handleReleaseEvent(event) {
2136
- if (!event.thresholdWasReached) {
2137
- return;
2138
- }
2139
- // Just do if user clicked to slide on image and not on arrow or other element
2140
- if (!this.isLastClickedInSliderImage) {
2141
- return;
2142
- }
2143
- if (event.direction === 1) {
2144
- this.previousSlide();
2145
- }
2146
- else {
2147
- this.nextSlide();
2148
- }
2149
- }
2150
- lastClicked() {
2151
- this.isLastClickedInSliderImage = true;
2152
- }
2153
- noLastClicked() {
2154
- this.isLastClickedInSliderImage = false;
2155
- }
2156
- scrollLeft() {
2157
- this.previousSlide();
2158
- }
2159
- scrollRight() {
2160
- this.nextSlide();
2161
- }
2162
- nextSlide() {
2163
- if (this.slides && this.selectedSlide < this.slides.length - 1) {
2164
- if (this.usefulSwiper) {
2165
- this.usefulSwiper.swiper.slideNext();
2166
- }
2167
- this.openSlide(this.selectedSlide + 1);
2168
- }
2169
- this.isLastClickedInSliderImage = false;
2170
- }
2171
- previousSlide() {
2172
- if (this.selectedSlide > 0) {
2173
- if (this.usefulSwiper) {
2174
- this.usefulSwiper.swiper.slidePrev();
2175
- }
2176
- this.openSlide(this.selectedSlide - 1);
2177
- }
2178
- this.isLastClickedInSliderImage = false;
2179
- }
2180
- slideTo(index) {
2181
- if (this.usefulSwiper) {
2182
- this.usefulSwiper.swiper.slideTo(index);
2183
- }
2184
- }
2185
- openSlide(number) {
2186
- if (this.slides && number < this.slides.length && number >= 0) {
2187
- this.selectedSlide = number;
2188
- // TODO use Pipe safeStyle
2189
- this.selectedSlideImage = this.sanitizer.bypassSecurityTrustStyle('url(' + this.slides[number] || ')');
2190
- }
2191
- }
2192
- ngOnChanges(_changes) {
2193
- if (_changes.slides) {
2194
- if (this.slides) {
2195
- // TODO use Pipe safeStyle
2196
- this.selectedSlideImage = this.sanitizer.bypassSecurityTrustStyle('url(' + this.slides[0] + ')');
2197
- }
2198
- }
2199
- }
2200
- /**
2201
- * Re-order slides and notify parent component
2202
- */
2203
- drop(event) {
2204
- if (this.slides && this.imagesTOSave) {
2205
- moveItemInArray(this.slides, event.previousIndex, event.currentIndex);
2206
- moveItemInArray(this.imagesTOSave, event.previousIndex, event.currentIndex);
2207
- this.orderChanged.emit(this.imagesTOSave);
2208
- }
2209
- }
2210
- /**
2211
- * Send image index to parent to perform delete
2212
- */
2213
- deleteImage(index) {
2214
- this.deleteImageEvent.emit(index);
2215
- }
2216
- }
2217
- ImageSliderComponent.decorators = [
2218
- { type: Component, args: [{
2219
- selector: 'kms-image-slider',
2220
- 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>",
2221
- styles: [""]
2222
- },] }
2223
- ];
2224
- ImageSliderComponent.ctorParameters = () => [
2225
- { type: DomSanitizer }
2226
- ];
2227
- ImageSliderComponent.propDecorators = {
2228
- slides: [{ type: Input }],
2229
- editMode: [{ type: Input }],
2230
- imagesTOSave: [{ type: Input }],
2231
- orderChanged: [{ type: Output }],
2232
- deleteImageEvent: [{ type: Output }],
2233
- swipeConfig: [{ type: Input }],
2234
- usefulSwiper: [{ type: ViewChild, args: ['usefulSwiper',] }],
2235
- onKeydownHandler: [{ type: HostListener, args: ['document:keydown', ['$event'],] }]
2236
- };
2237
-
2238
- /*!
2239
- * @copyright FLYACTS GmbH 2019
2240
- */
2241
- class MouseWheelDirective {
2242
- constructor() {
2243
- this.mouseWheelUp = new EventEmitter();
2244
- this.mouseWheelDown = new EventEmitter();
2245
- }
2246
- onMouseWheelChrome(event) {
2247
- this.mouseWheelFunc(event);
2248
- }
2249
- onMouseWheelFirefox(event) {
2250
- this.mouseWheelFunc(event);
2251
- }
2252
- onMouseWheelIE(event) {
2253
- this.mouseWheelFunc(event);
2254
- }
2255
- mouseWheelFunc(event) {
2256
- event = window.event || event; // old IE support
2257
- const delta = Math.max(-1, Math.min(1, (event.wheelDelta || -event.detail)));
2258
- if (delta > 0) {
2259
- this.mouseWheelUp.emit(event);
2260
- }
2261
- else if (delta < 0) {
2262
- this.mouseWheelDown.emit(event);
2263
- }
2264
- // for IE
2265
- event.returnValue = false;
2266
- // for Chrome and Firefox
2267
- if (event.preventDefault) {
2268
- event.preventDefault();
2269
- }
2270
- }
2271
- }
2272
- MouseWheelDirective.decorators = [
2273
- { type: Directive, args: [{ selector: '[mouseWheel]' },] }
2274
- ];
2275
- MouseWheelDirective.propDecorators = {
2276
- mouseWheelUp: [{ type: Output }],
2277
- mouseWheelDown: [{ type: Output }],
2278
- onMouseWheelChrome: [{ type: HostListener, args: ['mousewheel', ['$event'],] }],
2279
- onMouseWheelFirefox: [{ type: HostListener, args: ['DOMMouseScroll', ['$event'],] }],
2280
- onMouseWheelIE: [{ type: HostListener, args: ['onmousewheel', ['$event'],] }]
2281
- };
2282
-
2283
- /*!
2284
- * @copyright FLYACTS GmbH 2019
2285
- */
2286
- /**
2287
- * Directive to calc the height of all inner elements
2288
- */
2289
- class GetMaxHeightDirective {
2290
- constructor(el) {
2291
- this.el = el;
2292
- /**
2293
- * CSS class name of the child items (markup elements) that should be checked for their height.
2294
- * This is mandatory.
2295
- */
2296
- this.cssClassName = '';
2297
- /**
2298
- * Event that will pass the height of the tallest child inside the container.
2299
- * Useful to calculate the target height of containers with different content (like accordion) for animations.
2300
- */
2301
- this.maxHeightChanged = new EventEmitter();
2302
- /**
2303
- * Event that will pass the complete sum of all height values from each child.
2304
- * Useful to calculate the full target height of a container (like dropdown) for animations.
2305
- */
2306
- this.sumOfHeight = new EventEmitter();
2307
- }
2308
- ngAfterContentChecked() {
2309
- this.checkHeightOfChildren(this.el.nativeElement, this.cssClassName);
2310
- }
2311
- checkHeightOfChildren(parent, cssClassName) {
2312
- if (!parent) {
2313
- return;
2314
- }
2315
- // find all the child elements with the selected class name
2316
- const children = parent.getElementsByClassName(cssClassName);
2317
- // failsafe
2318
- if (!children) {
2319
- return;
2320
- }
2321
- // get all the child elements heights
2322
- const itemHeights = Array.from(children).map((x) => x.getBoundingClientRect().height);
2323
- // failsafe
2324
- if (itemHeights.length === 0) {
2325
- return;
2326
- }
2327
- // find out the tallest element
2328
- const maxHeight = itemHeights.reduce((prev, curr) => {
2329
- return curr > prev ? curr : prev;
2330
- }, 0);
2331
- // get sum of heights
2332
- const sumOfHeight = itemHeights.reduce((pv, cv) => pv + cv, 0);
2333
- // inform
2334
- this.maxHeightChanged.emit(maxHeight);
2335
- this.sumOfHeight.emit(sumOfHeight);
2336
- }
2337
- }
2338
- GetMaxHeightDirective.decorators = [
2339
- { type: Directive, args: [{
2340
- selector: '[getMaxHeight]',
2341
- },] }
2342
- ];
2343
- GetMaxHeightDirective.ctorParameters = () => [
2344
- { type: ElementRef }
2345
- ];
2346
- GetMaxHeightDirective.propDecorators = {
2347
- cssClassName: [{ type: Input, args: ['getMaxHeight',] }],
2348
- maxHeightChanged: [{ type: Output }],
2349
- sumOfHeight: [{ type: Output }]
2350
- };
2351
-
2352
- /*!
2353
- * @copyright FLYACTS GmbH 2019
2354
- */
2355
- class SwipeDirective {
2356
- constructor() {
2357
- /**
2358
- * Output Event that is emitted during swipe process (mouse move or touch move event).
2359
- * Can be used for calculation purposes.
2360
- */
2361
- this.moveEvent = new EventEmitter();
2362
- /**
2363
- * Output Event that is emitted when swipe process end (mouse up or touch end event).
2364
- * Can be used for calculation purposes.
2365
- */
2366
- this.releaseEvent = new EventEmitter();
2367
- this._startPosition = -1;
2368
- this._lastPosX = 0;
2369
- this._thresholdWasReached = false;
2370
- this._timeStart = 0;
2371
- }
2372
- /**
2373
- * Needed config that defines swipe behaviour.
2374
- * @param options SwipeOptions
2375
- */
2376
- set config(options) {
2377
- if (options) {
2378
- this._swipeOptions = options;
2379
- }
2380
- }
2381
- onMouseDown(event) {
2382
- this.calculateStartPosition(event);
2383
- }
2384
- onMove(event) {
2385
- this.move(event);
2386
- }
2387
- onRelease(event) {
2388
- this.release(event);
2389
- this.reset();
2390
- }
2391
- // ** PRIVATE ** //
2392
- /**
2393
- * Function checks if the current moving delta is inside the defined threshold.
2394
- * Sets the flag to true if the threshold was reached once.
2395
- */
2396
- checkThreshold(moveEvent) {
2397
- const percentage = this._swipeOptions && this._swipeOptions.swipeThresholdType === '%';
2398
- if (!percentage && this._swipeOptions && moveEvent.swipeDistanceTotal < this._swipeOptions.swipeThreshold) {
2533
+ checkThreshold(moveEvent) {
2534
+ const percentage = this._swipeOptions && this._swipeOptions.swipeThresholdType === '%';
2535
+ if (!percentage && this._swipeOptions && moveEvent.swipeDistanceTotal < this._swipeOptions.swipeThreshold) {
2399
2536
  return;
2400
2537
  }
2401
2538
  else if (percentage &&
@@ -2493,247 +2630,484 @@ class SwipeDirective {
2493
2630
  }
2494
2631
  }
2495
2632
  }
2496
- SwipeDirective.decorators = [
2497
- { type: Directive, args: [{
2498
- selector: '[swipeDirective]',
2499
- },] }
2500
- ];
2501
- SwipeDirective.propDecorators = {
2502
- moveEvent: [{ type: Output }],
2503
- releaseEvent: [{ type: Output }],
2504
- config: [{ type: Input, args: ['swipeDirective',] }],
2505
- onMouseDown: [{ type: HostListener, args: ['mousedown', ['$event'],] }, { type: HostListener, args: ['touchstart', ['$event'],] }],
2506
- onMove: [{ type: HostListener, args: ['mousemove', ['$event'],] }, { type: HostListener, args: ['touchmove', ['$event'],] }],
2507
- onRelease: [{ type: HostListener, args: ['mouseup', ['$event'],] }, { type: HostListener, args: ['mouseleave', ['$event'],] }, { type: HostListener, args: ['touchend', ['$event'],] }]
2508
- };
2633
+ SwipeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SwipeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2634
+ SwipeDirective.ɵdir = i0.ɵɵ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 });
2635
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SwipeDirective, decorators: [{
2636
+ type: Directive,
2637
+ args: [{
2638
+ selector: '[swipeDirective]',
2639
+ }]
2640
+ }], propDecorators: { moveEvent: [{
2641
+ type: Output
2642
+ }], releaseEvent: [{
2643
+ type: Output
2644
+ }], config: [{
2645
+ type: Input,
2646
+ args: ['swipeDirective']
2647
+ }], onMouseDown: [{
2648
+ type: HostListener,
2649
+ args: ['mousedown', ['$event']]
2650
+ }, {
2651
+ type: HostListener,
2652
+ args: ['touchstart', ['$event']]
2653
+ }], onMove: [{
2654
+ type: HostListener,
2655
+ args: ['mousemove', ['$event']]
2656
+ }, {
2657
+ type: HostListener,
2658
+ args: ['touchmove', ['$event']]
2659
+ }], onRelease: [{
2660
+ type: HostListener,
2661
+ args: ['mouseup', ['$event']]
2662
+ }, {
2663
+ type: HostListener,
2664
+ args: ['mouseleave', ['$event']]
2665
+ }, {
2666
+ type: HostListener,
2667
+ args: ['touchend', ['$event']]
2668
+ }] } });
2509
2669
 
2510
- class TooltipDirective {
2511
- constructor(el, renderer) {
2512
- this.el = el;
2513
- this.renderer = renderer;
2514
- this.tooltipTitle = "";
2515
- this.tooltipText = "";
2516
- this.tooltipLinkText = "";
2517
- this.tooltipLinkUrl = "";
2518
- this.tooltipPlacement = "bottom";
2519
- this.tooltipDelay = 1000;
2520
- this.tooltipPlaceIntoHost = false;
2521
- this.tooltipOnlyonclick = false;
2522
- this.offset = 0;
2670
+ /*!
2671
+ * @copyright FLYACTS GmbH 2019
2672
+ */
2673
+ class ImageSliderComponent {
2674
+ constructor(sanitizer) {
2675
+ this.sanitizer = sanitizer;
2676
+ this.editMode = false;
2677
+ this.orderChanged = new EventEmitter();
2678
+ this.deleteImageEvent = new EventEmitter();
2679
+ /**
2680
+ * Optional: Define Swipe behaviour configuration.
2681
+ * Default is 10% for the threshold definition until a swipe triggers next/previous slide.
2682
+ */
2683
+ this.swipeConfig = {
2684
+ swipeThreshold: 5,
2685
+ swipeThresholdType: '%',
2686
+ swipeLocalPosition: true,
2687
+ };
2688
+ this.selectedSlide = 0;
2689
+ this.isLastClickedInSliderImage = false;
2690
+ this.config = {
2691
+ initialSlide: 0,
2692
+ slidesPerView: 3,
2693
+ navigation: {
2694
+ nextEl: '.swiper-button-next',
2695
+ prevEl: '.swiper-button-prev',
2696
+ },
2697
+ watchOverflow: true,
2698
+ autoHeight: true,
2699
+ allowTouchMove: false,
2700
+ spaceBetween: 30,
2701
+ on: {
2702
+ slideChange: () => {
2703
+ // do something
2704
+ },
2705
+ slideChangeTransitionEnd: () => {
2706
+ // do something
2707
+ },
2708
+ },
2709
+ };
2523
2710
  }
2524
- onMouseEnter() {
2525
- if (!this.tooltipOnlyonclick) {
2526
- this.show();
2711
+ ngOnInit() {
2712
+ if (this.slides) {
2713
+ // TODO use Pipe safeStyle
2714
+ this.selectedSlideImage = this.sanitizer.bypassSecurityTrustStyle('url(' + this.slides[0] + ')');
2527
2715
  }
2528
2716
  }
2529
- onClick() {
2530
- if (this.tooltipOnlyonclick) {
2531
- this.show();
2717
+ // !TODO
2718
+ onKeydownHandler(event) {
2719
+ if (event.key === 'ArrowRight') {
2720
+ this.nextSlide();
2532
2721
  }
2533
- }
2534
- onMouseLeave() {
2535
- if (this.tooltipElem) {
2536
- this.hide();
2722
+ if (event.key === 'ArrowLeft') {
2723
+ this.previousSlide();
2537
2724
  }
2538
2725
  }
2539
- show() {
2540
- if (!this.tooltipElem) {
2541
- this.create();
2542
- this.setPosition();
2726
+ /**
2727
+ * Slide follows the finger or mouse according to it´s move delta.
2728
+ * @param event SwipeMoveEvent
2729
+ */
2730
+ handleMoveEvent(event) {
2731
+ // certain move threshold needs to be reached
2732
+ if (!event.thresholdWasReached) {
2733
+ return;
2543
2734
  }
2544
- this.renderer.addClass(this.tooltipElem, 'tooltip-show');
2545
- }
2546
- hide() {
2547
- this.renderer.removeClass(this.tooltipElem, 'tooltip-show');
2548
- window.setTimeout(() => {
2549
- }, this.tooltipDelay);
2735
+ this.config.direction = event.direction === 1 ? 'horizontal' : 'vertical';
2550
2736
  }
2551
- create() {
2552
- this.tooltipElem = this.renderer.createElement('kms-tooltip-element');
2553
- this.tooltipTitleElem = this.renderer.createElement('b');
2554
- this.renderer.appendChild(this.tooltipTitleElem, this.renderer.createText(this.tooltipTitle));
2555
- this.renderer.appendChild(this.tooltipElem, this.tooltipTitleElem);
2556
- this.tooltipTextElem = this.renderer.createElement('div');
2557
- this.renderer.appendChild(this.tooltipTextElem, this.renderer.createText(this.tooltipText));
2558
- this.renderer.appendChild(this.tooltipElem, this.tooltipTextElem);
2559
- this.tooltipLinkElem = this.renderer.createElement('a');
2560
- this.renderer.setAttribute(this.tooltipLinkElem, 'href', this.tooltipLinkUrl);
2561
- this.renderer.appendChild(this.tooltipLinkElem, this.renderer.createText(this.tooltipLinkText));
2562
- this.renderer.appendChild(this.tooltipElem, this.tooltipLinkElem);
2563
- if (this.tooltipPlaceIntoHost) {
2564
- this.renderer.appendChild(this.el.nativeElement, this.tooltipElem);
2737
+ /**
2738
+ * Mouse up or slide container was left.
2739
+ * @param event SwipeReleaseEvent
2740
+ */
2741
+ handleReleaseEvent(event) {
2742
+ if (!event.thresholdWasReached) {
2743
+ return;
2744
+ }
2745
+ // Just do if user clicked to slide on image and not on arrow or other element
2746
+ if (!this.isLastClickedInSliderImage) {
2747
+ return;
2748
+ }
2749
+ if (event.direction === 1) {
2750
+ this.previousSlide();
2565
2751
  }
2566
2752
  else {
2567
- this.renderer.appendChild(document.body, this.tooltipElem);
2753
+ this.nextSlide();
2568
2754
  }
2569
- this.renderer.addClass(this.tooltipElem, 'tooltip');
2570
- this.renderer.addClass(this.tooltipElem, `tooltip-${this.tooltipPlacement}`);
2571
- this.renderer.setStyle(this.tooltipElem, '-webkit-transition', `opacity ${this.tooltipDelay}ms`);
2572
- this.renderer.setStyle(this.tooltipElem, '-moz-transition', `opacity ${this.tooltipDelay}ms`);
2573
- this.renderer.setStyle(this.tooltipElem, '-o-transition', `opacity ${this.tooltipDelay}ms`);
2574
- this.renderer.setStyle(this.tooltipElem, 'transition', `opacity ${this.tooltipDelay}ms`);
2575
2755
  }
2576
- setPosition() {
2577
- if (this.tooltipElem) {
2578
- const hostPos = this.el.nativeElement.getBoundingClientRect();
2579
- const tooltipPos = this.tooltipElem.getBoundingClientRect();
2580
- let top, left;
2581
- if (this.tooltipPlaceIntoHost) {
2582
- left = 0;
2583
- top = hostPos.height;
2756
+ lastClicked() {
2757
+ this.isLastClickedInSliderImage = true;
2758
+ }
2759
+ noLastClicked() {
2760
+ this.isLastClickedInSliderImage = false;
2761
+ }
2762
+ scrollLeft() {
2763
+ this.previousSlide();
2764
+ }
2765
+ scrollRight() {
2766
+ this.nextSlide();
2767
+ }
2768
+ nextSlide() {
2769
+ if (this.slides && this.selectedSlide < this.slides.length - 1) {
2770
+ if (this.usefulSwiper) {
2771
+ this.usefulSwiper.swiper.slideNext();
2584
2772
  }
2585
- else {
2586
- const scrollPos = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
2587
- if (this.tooltipPlacement === 'top') {
2588
- top = hostPos.top - tooltipPos.height - this.offset;
2589
- left = hostPos.left + (hostPos.width - tooltipPos.width) / 2;
2590
- }
2591
- if (!this.tooltipPlacement || this.tooltipPlacement === 'bottom') {
2592
- top = hostPos.bottom + this.offset;
2593
- left = hostPos.left + (hostPos.width - tooltipPos.width) / 2;
2594
- }
2595
- if (this.tooltipPlacement === 'left') {
2596
- top = hostPos.top + (hostPos.height - tooltipPos.height) / 2;
2597
- left = hostPos.left - tooltipPos.width - this.offset;
2598
- }
2599
- if (this.tooltipPlacement === 'right') {
2600
- top = hostPos.top + (hostPos.height - tooltipPos.height) / 2;
2601
- left = hostPos.right + this.offset;
2602
- }
2603
- top += scrollPos;
2773
+ this.openSlide(this.selectedSlide + 1);
2774
+ }
2775
+ this.isLastClickedInSliderImage = false;
2776
+ }
2777
+ previousSlide() {
2778
+ if (this.selectedSlide > 0) {
2779
+ if (this.usefulSwiper) {
2780
+ this.usefulSwiper.swiper.slidePrev();
2604
2781
  }
2605
- this.renderer.setStyle(this.tooltipElem, 'top', `${top}px`);
2606
- this.renderer.setStyle(this.tooltipElem, 'left', `${left}px`);
2782
+ this.openSlide(this.selectedSlide - 1);
2783
+ }
2784
+ this.isLastClickedInSliderImage = false;
2785
+ }
2786
+ slideTo(index) {
2787
+ if (this.usefulSwiper) {
2788
+ this.usefulSwiper.swiper.slideTo(index);
2789
+ }
2790
+ }
2791
+ openSlide(number) {
2792
+ if (this.slides && number < this.slides.length && number >= 0) {
2793
+ this.selectedSlide = number;
2794
+ // TODO use Pipe safeStyle
2795
+ this.selectedSlideImage = this.sanitizer.bypassSecurityTrustStyle('url(' + this.slides[number] || ')');
2796
+ }
2797
+ }
2798
+ ngOnChanges(_changes) {
2799
+ if (_changes.slides) {
2800
+ if (this.slides) {
2801
+ // TODO use Pipe safeStyle
2802
+ this.selectedSlideImage = this.sanitizer.bypassSecurityTrustStyle('url(' + this.slides[0] + ')');
2803
+ }
2804
+ }
2805
+ }
2806
+ /**
2807
+ * Re-order slides and notify parent component
2808
+ */
2809
+ drop(event) {
2810
+ if (this.slides && this.imagesTOSave) {
2811
+ moveItemInArray(this.slides, event.previousIndex, event.currentIndex);
2812
+ moveItemInArray(this.imagesTOSave, event.previousIndex, event.currentIndex);
2813
+ this.orderChanged.emit(this.imagesTOSave);
2814
+ }
2815
+ }
2816
+ /**
2817
+ * Send image index to parent to perform delete
2818
+ */
2819
+ deleteImage(index) {
2820
+ this.deleteImageEvent.emit(index);
2821
+ }
2822
+ }
2823
+ ImageSliderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ImageSliderComponent, deps: [{ token: i1$2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
2824
+ ImageSliderComponent.ɵcmp = i0.ɵɵ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, 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$6.SwiperComponent, selector: "swiper", inputs: ["initialize", "config"] }, { type: i3$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: i6.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "id", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListAutoScrollDisabled", "cdkDropListOrientation", "cdkDropListLockAxis", "cdkDropListData", "cdkDropListAutoScrollStep"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragDisabled", "cdkDragStartDelay", "cdkDragLockAxis", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragBoundary", "cdkDragRootElement", "cdkDragPreviewContainer", "cdkDragData", "cdkDragFreeDragPosition"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "translate": i5$1.TranslatePipe } });
2825
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ImageSliderComponent, decorators: [{
2826
+ type: Component,
2827
+ args: [{
2828
+ selector: 'kms-image-slider',
2829
+ templateUrl: './image-slider.component.html',
2830
+ styleUrls: ['./image-slider.component.scss'],
2831
+ }]
2832
+ }], ctorParameters: function () { return [{ type: i1$2.DomSanitizer }]; }, propDecorators: { slides: [{
2833
+ type: Input
2834
+ }], editMode: [{
2835
+ type: Input
2836
+ }], imagesTOSave: [{
2837
+ type: Input
2838
+ }], orderChanged: [{
2839
+ type: Output
2840
+ }], deleteImageEvent: [{
2841
+ type: Output
2842
+ }], swipeConfig: [{
2843
+ type: Input
2844
+ }], usefulSwiper: [{
2845
+ type: ViewChild,
2846
+ args: ['usefulSwiper']
2847
+ }], onKeydownHandler: [{
2848
+ type: HostListener,
2849
+ args: ['document:keydown', ['$event']]
2850
+ }] } });
2851
+
2852
+ /*!
2853
+ * @copyright FLYACTS GmbH 2019
2854
+ */
2855
+ class MouseWheelDirective {
2856
+ constructor() {
2857
+ this.mouseWheelUp = new EventEmitter();
2858
+ this.mouseWheelDown = new EventEmitter();
2859
+ }
2860
+ onMouseWheelChrome(event) {
2861
+ this.mouseWheelFunc(event);
2862
+ }
2863
+ onMouseWheelFirefox(event) {
2864
+ this.mouseWheelFunc(event);
2865
+ }
2866
+ onMouseWheelIE(event) {
2867
+ this.mouseWheelFunc(event);
2868
+ }
2869
+ mouseWheelFunc(event) {
2870
+ event = window.event || event; // old IE support
2871
+ const delta = Math.max(-1, Math.min(1, (event.wheelDelta || -event.detail)));
2872
+ if (delta > 0) {
2873
+ this.mouseWheelUp.emit(event);
2874
+ }
2875
+ else if (delta < 0) {
2876
+ this.mouseWheelDown.emit(event);
2877
+ }
2878
+ // for IE
2879
+ event.returnValue = false;
2880
+ // for Chrome and Firefox
2881
+ if (event.preventDefault) {
2882
+ event.preventDefault();
2607
2883
  }
2608
2884
  }
2609
2885
  }
2610
- TooltipDirective.decorators = [
2611
- { type: Directive, args: [{
2612
- selector: '[kmsTooltip]'
2613
- },] }
2614
- ];
2615
- TooltipDirective.ctorParameters = () => [
2616
- { type: ElementRef },
2617
- { type: Renderer2 }
2618
- ];
2619
- TooltipDirective.propDecorators = {
2620
- tooltipTitle: [{ type: Input, args: ['tooltipTitle',] }],
2621
- tooltipText: [{ type: Input, args: ['tooltipText',] }],
2622
- tooltipLinkText: [{ type: Input, args: ['tooltipLinkText',] }],
2623
- tooltipLinkUrl: [{ type: Input, args: ['tooltipLinkUrl',] }],
2624
- tooltipPlacement: [{ type: Input, args: ['tooltipPlacement',] }],
2625
- tooltipDelay: [{ type: Input, args: ['tooltipDelay',] }],
2626
- tooltipPlaceIntoHost: [{ type: Input, args: ['tooltipPlaceIntoHost',] }],
2627
- tooltipOnlyonclick: [{ type: Input, args: ['tooltipOnlyonclick',] }],
2628
- onMouseEnter: [{ type: HostListener, args: ['mouseenter',] }],
2629
- onClick: [{ type: HostListener, args: ['click',] }],
2630
- onMouseLeave: [{ type: HostListener, args: ['mouseleave',] }]
2631
- };
2886
+ MouseWheelDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MouseWheelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2887
+ MouseWheelDirective.ɵdir = i0.ɵɵ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 });
2888
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MouseWheelDirective, decorators: [{
2889
+ type: Directive,
2890
+ args: [{ selector: '[mouseWheel]' }]
2891
+ }], propDecorators: { mouseWheelUp: [{
2892
+ type: Output
2893
+ }], mouseWheelDown: [{
2894
+ type: Output
2895
+ }], onMouseWheelChrome: [{
2896
+ type: HostListener,
2897
+ args: ['mousewheel', ['$event']]
2898
+ }], onMouseWheelFirefox: [{
2899
+ type: HostListener,
2900
+ args: ['DOMMouseScroll', ['$event']]
2901
+ }], onMouseWheelIE: [{
2902
+ type: HostListener,
2903
+ args: ['onmousewheel', ['$event']]
2904
+ }] } });
2632
2905
 
2633
2906
  /**
2634
2907
  * @copyright KMS GmbH
2635
2908
  */
2636
2909
  class DirectivesModule {
2637
2910
  }
2638
- DirectivesModule.decorators = [
2639
- { type: NgModule, args: [{
2640
- declarations: [
2641
- SwipeDirective,
2642
- MouseWheelDirective,
2643
- GetMaxHeightDirective,
2644
- TooltipDirective,
2645
- ],
2646
- imports: [CommonModule],
2647
- exports: [
2648
- SwipeDirective,
2649
- MouseWheelDirective,
2650
- GetMaxHeightDirective,
2651
- TooltipDirective,
2652
- ],
2653
- },] }
2654
- ];
2911
+ DirectivesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DirectivesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2912
+ DirectivesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DirectivesModule, declarations: [SwipeDirective,
2913
+ MouseWheelDirective,
2914
+ GetMaxHeightDirective,
2915
+ TooltipDirective], imports: [CommonModule], exports: [SwipeDirective,
2916
+ MouseWheelDirective,
2917
+ GetMaxHeightDirective,
2918
+ TooltipDirective] });
2919
+ DirectivesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DirectivesModule, imports: [[CommonModule]] });
2920
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DirectivesModule, decorators: [{
2921
+ type: NgModule,
2922
+ args: [{
2923
+ declarations: [
2924
+ SwipeDirective,
2925
+ MouseWheelDirective,
2926
+ GetMaxHeightDirective,
2927
+ TooltipDirective,
2928
+ ],
2929
+ imports: [CommonModule],
2930
+ exports: [
2931
+ SwipeDirective,
2932
+ MouseWheelDirective,
2933
+ GetMaxHeightDirective,
2934
+ TooltipDirective,
2935
+ ],
2936
+ }]
2937
+ }] });
2655
2938
 
2656
2939
  class KmsUiPresentationalModule {
2657
2940
  }
2658
- KmsUiPresentationalModule.decorators = [
2659
- { type: NgModule, args: [{
2660
- declarations: [
2661
- ActionsParentComponent,
2662
- BackToTopComponent,
2663
- ButtonWithConfirmDialogComponent,
2664
- CheckboxComponent,
2665
- ColorInputComponent,
2666
- DropdownFromDataComponent,
2667
- EnumRadiogroupComponent,
2668
- EnumRadiogroupComponent,
2669
- FileInputComponent,
2670
- FlyoutComponent,
2671
- GenericDialogComponent,
2672
- IconComponent,
2673
- ImageSliderComponent,
2674
- KMSAccordionItemComponent,
2675
- KmsUiPresentationalComponent,
2676
- LoaderComponent,
2677
- MapComponent,
2678
- RadioButtonComponent,
2679
- SalutationDropdownComponent,
2680
- SalutationRadiogroupComponent,
2681
- TimeInputComponent,
2682
- TooltipComponent,
2683
- TooltipIconComponent,
2684
- YesNoRadiogroupComponent
2685
- ],
2686
- imports: [
2687
- CommonModule,
2688
- MatCheckboxModule,
2689
- MatButtonModule,
2690
- MatRadioModule,
2691
- MatDialogModule,
2692
- FormsModule,
2693
- ReactiveFormsModule,
2694
- MatFormFieldModule,
2695
- MatInputModule,
2696
- MatMenuModule,
2697
- CustomPipesModule,
2698
- GoogleMapsModule,
2699
- MatExpansionModule,
2700
- MatSelectModule,
2701
- MatProgressSpinnerModule,
2702
- DirectivesModule,
2703
- TranslateModule,
2704
- NgxUsefulSwiperModule,
2705
- ],
2706
- exports: [
2707
- ActionsParentComponent,
2708
- BackToTopComponent,
2709
- ButtonWithConfirmDialogComponent,
2710
- CheckboxComponent,
2711
- ColorInputComponent,
2712
- DropdownFromDataComponent,
2713
- EnumRadiogroupComponent,
2714
- EnumRadiogroupComponent,
2715
- FileInputComponent,
2716
- FlyoutComponent,
2717
- GenericDialogComponent,
2718
- IconComponent,
2719
- ImageSliderComponent,
2720
- KMSAccordionItemComponent,
2721
- KmsUiPresentationalComponent,
2722
- LoaderComponent,
2723
- MapComponent,
2724
- RadioButtonComponent,
2725
- SalutationDropdownComponent,
2726
- SalutationRadiogroupComponent,
2727
- TimeInputComponent,
2728
- TooltipComponent,
2729
- TooltipIconComponent,
2730
- YesNoRadiogroupComponent,
2731
- ],
2732
- providers: [
2733
- ViewportService
2734
- ]
2735
- },] }
2736
- ];
2941
+ KmsUiPresentationalModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KmsUiPresentationalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2942
+ KmsUiPresentationalModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KmsUiPresentationalModule, declarations: [ActionsParentComponent,
2943
+ BackToTopComponent,
2944
+ ButtonWithConfirmDialogComponent,
2945
+ CheckboxComponent,
2946
+ ColorInputComponent,
2947
+ DropdownFromDataComponent,
2948
+ EnumRadiogroupComponent,
2949
+ EnumRadiogroupComponent,
2950
+ FileInputComponent,
2951
+ FlyoutComponent,
2952
+ GenericDialogComponent,
2953
+ IconComponent,
2954
+ ImageSliderComponent,
2955
+ KMSAccordionItemComponent,
2956
+ KmsUiPresentationalComponent,
2957
+ LoaderComponent,
2958
+ MapComponent,
2959
+ RadioButtonComponent,
2960
+ SalutationDropdownComponent,
2961
+ SalutationRadiogroupComponent,
2962
+ TimeInputComponent,
2963
+ TooltipComponent,
2964
+ TooltipIconComponent,
2965
+ YesNoRadiogroupComponent], imports: [CommonModule,
2966
+ DragDropModule,
2967
+ MatCheckboxModule,
2968
+ MatButtonModule,
2969
+ MatRadioModule,
2970
+ MatDialogModule,
2971
+ FormsModule,
2972
+ ReactiveFormsModule,
2973
+ MatFormFieldModule,
2974
+ MatInputModule,
2975
+ MatMenuModule,
2976
+ CustomPipesModule,
2977
+ GoogleMapsModule,
2978
+ MatExpansionModule,
2979
+ MatSelectModule,
2980
+ MatProgressSpinnerModule,
2981
+ DirectivesModule,
2982
+ TranslateModule,
2983
+ NgxUsefulSwiperModule], exports: [ActionsParentComponent,
2984
+ BackToTopComponent,
2985
+ ButtonWithConfirmDialogComponent,
2986
+ CheckboxComponent,
2987
+ ColorInputComponent,
2988
+ DropdownFromDataComponent,
2989
+ EnumRadiogroupComponent,
2990
+ EnumRadiogroupComponent,
2991
+ FileInputComponent,
2992
+ FlyoutComponent,
2993
+ GenericDialogComponent,
2994
+ IconComponent,
2995
+ ImageSliderComponent,
2996
+ KMSAccordionItemComponent,
2997
+ KmsUiPresentationalComponent,
2998
+ LoaderComponent,
2999
+ MapComponent,
3000
+ RadioButtonComponent,
3001
+ SalutationDropdownComponent,
3002
+ SalutationRadiogroupComponent,
3003
+ TimeInputComponent,
3004
+ TooltipComponent,
3005
+ TooltipIconComponent,
3006
+ YesNoRadiogroupComponent] });
3007
+ KmsUiPresentationalModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KmsUiPresentationalModule, providers: [
3008
+ ViewportService
3009
+ ], imports: [[
3010
+ CommonModule,
3011
+ DragDropModule,
3012
+ MatCheckboxModule,
3013
+ MatButtonModule,
3014
+ MatRadioModule,
3015
+ MatDialogModule,
3016
+ FormsModule,
3017
+ ReactiveFormsModule,
3018
+ MatFormFieldModule,
3019
+ MatInputModule,
3020
+ MatMenuModule,
3021
+ CustomPipesModule,
3022
+ GoogleMapsModule,
3023
+ MatExpansionModule,
3024
+ MatSelectModule,
3025
+ MatProgressSpinnerModule,
3026
+ DirectivesModule,
3027
+ TranslateModule,
3028
+ NgxUsefulSwiperModule,
3029
+ ]] });
3030
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KmsUiPresentationalModule, decorators: [{
3031
+ type: NgModule,
3032
+ args: [{
3033
+ declarations: [
3034
+ ActionsParentComponent,
3035
+ BackToTopComponent,
3036
+ ButtonWithConfirmDialogComponent,
3037
+ CheckboxComponent,
3038
+ ColorInputComponent,
3039
+ DropdownFromDataComponent,
3040
+ EnumRadiogroupComponent,
3041
+ EnumRadiogroupComponent,
3042
+ FileInputComponent,
3043
+ FlyoutComponent,
3044
+ GenericDialogComponent,
3045
+ IconComponent,
3046
+ ImageSliderComponent,
3047
+ KMSAccordionItemComponent,
3048
+ KmsUiPresentationalComponent,
3049
+ LoaderComponent,
3050
+ MapComponent,
3051
+ RadioButtonComponent,
3052
+ SalutationDropdownComponent,
3053
+ SalutationRadiogroupComponent,
3054
+ TimeInputComponent,
3055
+ TooltipComponent,
3056
+ TooltipIconComponent,
3057
+ YesNoRadiogroupComponent,
3058
+ ],
3059
+ imports: [
3060
+ CommonModule,
3061
+ DragDropModule,
3062
+ MatCheckboxModule,
3063
+ MatButtonModule,
3064
+ MatRadioModule,
3065
+ MatDialogModule,
3066
+ FormsModule,
3067
+ ReactiveFormsModule,
3068
+ MatFormFieldModule,
3069
+ MatInputModule,
3070
+ MatMenuModule,
3071
+ CustomPipesModule,
3072
+ GoogleMapsModule,
3073
+ MatExpansionModule,
3074
+ MatSelectModule,
3075
+ MatProgressSpinnerModule,
3076
+ DirectivesModule,
3077
+ TranslateModule,
3078
+ NgxUsefulSwiperModule,
3079
+ ],
3080
+ exports: [
3081
+ ActionsParentComponent,
3082
+ BackToTopComponent,
3083
+ ButtonWithConfirmDialogComponent,
3084
+ CheckboxComponent,
3085
+ ColorInputComponent,
3086
+ DropdownFromDataComponent,
3087
+ EnumRadiogroupComponent,
3088
+ EnumRadiogroupComponent,
3089
+ FileInputComponent,
3090
+ FlyoutComponent,
3091
+ GenericDialogComponent,
3092
+ IconComponent,
3093
+ ImageSliderComponent,
3094
+ KMSAccordionItemComponent,
3095
+ KmsUiPresentationalComponent,
3096
+ LoaderComponent,
3097
+ MapComponent,
3098
+ RadioButtonComponent,
3099
+ SalutationDropdownComponent,
3100
+ SalutationRadiogroupComponent,
3101
+ TimeInputComponent,
3102
+ TooltipComponent,
3103
+ TooltipIconComponent,
3104
+ YesNoRadiogroupComponent,
3105
+ ],
3106
+ providers: [
3107
+ ViewportService
3108
+ ]
3109
+ }]
3110
+ }] });
2737
3111
 
2738
3112
  /*
2739
3113
  * Public API Surface of kms-ngx-ui-presentational
@@ -2743,5 +3117,5 @@ KmsUiPresentationalModule.decorators = [
2743
3117
  * Generated bundle index. Do not edit.
2744
3118
  */
2745
3119
 
2746
- export { CustomPipesModule, DirectivesModule, FormParentComponent, GenericDialogComponent, IconSize$1 as IconSize, KmsUiPresentationalComponent, KmsUiPresentationalModule, KmsUiPresentationalService, SalutationEnum, ViewportService, ActionsParentComponent as ɵa, BackToTopComponent as ɵb, SafeResourceUrlPipe as ɵba, SafeUrlPipe as ɵbb, EncodeUriPipe as ɵbc, DecodeUriPipe as ɵbd, TypeofPipe as ɵbe, TrimPipe as ɵbf, ToNumberPipe as ɵbg, SwipeDirective as ɵbh, MouseWheelDirective as ɵbi, GetMaxHeightDirective as ɵbj, TooltipDirective as ɵbk, ButtonWithConfirmDialogComponent as ɵc, CheckboxComponent as ɵd, ColorInputComponent as ɵe, FormControlParentComponent as ɵf, DropdownFromDataComponent as ɵg, EnumRadiogroupComponent as ɵh, FileInputComponent as ɵi, FlyoutComponent as ɵj, IconComponent as ɵl, ImageSliderComponent as ɵm, KMSAccordionItemComponent as ɵn, LoaderComponent as ɵo, MapComponent as ɵp, RadioButtonComponent as ɵq, SalutationDropdownComponent as ɵr, SalutationRadiogroupComponent as ɵs, TimeInputComponent as ɵt, TooltipComponent as ɵu, TooltipIconComponent as ɵv, YesNoRadiogroupComponent as ɵw, IntegerCurrency as ɵx, SafeHtmlPipe as ɵy, SafeStylePipe as ɵz };
3120
+ export { ActionsParentComponent, BackToTopComponent, ButtonWithConfirmDialogComponent, CheckboxComponent, ColorInputComponent, CustomPipesModule, DecodeUriPipe, DirectivesModule, DropdownFromDataComponent, EncodeUriPipe, EnumRadiogroupComponent, FileInputComponent, FlyoutComponent, FormParentComponent, GenericDialogComponent, GetMaxHeightDirective, IconComponent, IconSize$1 as IconSize, ImageSliderComponent, IntegerCurrency, KMSAccordionItemComponent, KmsUiPresentationalComponent, KmsUiPresentationalModule, KmsUiPresentationalService, LoaderComponent, MapComponent, Marker, MarkerLabel, MarkerOptions, MouseWheelDirective, RadioButtonComponent, SafeHtmlPipe, SafeResourceUrlPipe, SafeStylePipe, SafeUrlPipe, SalutationDropdownComponent, SalutationEnum, SalutationRadiogroupComponent, SwipeDirective, TimeInputComponent, ToNumberPipe, TooltipComponent, TooltipDirective, TooltipIconComponent, TrimPipe, TypeofPipe, ViewportService, YesNoRadiogroupComponent };
2747
3121
  //# sourceMappingURL=kms-ngx-ui-presentational.js.map