@kms-ngx-ui/presentational 0.0.22 → 0.0.24

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 (71) hide show
  1. package/bundles/kms-ngx-ui-presentational.umd.js +281 -173
  2. package/bundles/kms-ngx-ui-presentational.umd.js.map +1 -1
  3. package/esm2015/lib/directives/directives.module.js +8 -3
  4. package/esm2015/lib/directives/size.directive.js +21 -0
  5. package/esm2015/lib/kms-ngx-ui-presentational.component.js +9 -9
  6. package/esm2015/lib/kms-ngx-ui-presentational.service.js +1 -1
  7. package/esm2015/lib/models/address.model.js +1 -1
  8. package/esm2015/lib/models/iconSize.enum.js +1 -1
  9. package/esm2015/lib/models/index.js +1 -1
  10. package/esm2015/lib/models/is-value.function.js +1 -1
  11. package/esm2015/lib/models/salutation.enum.js +1 -1
  12. package/esm2015/lib/models/types/attached-file-dto.model.js +1 -1
  13. package/esm2015/lib/models/types/nullable.type.js +1 -1
  14. package/esm2015/lib/parent-components/actions.component.js +1 -1
  15. package/esm2015/lib/parent-components/colorable.component.js +35 -0
  16. package/esm2015/lib/parent-components/form-control.component.js +4 -3
  17. package/esm2015/lib/parent-components/form.component.js +36 -15
  18. package/esm2015/lib/pipes/decode-uri.pipe.js +1 -1
  19. package/esm2015/lib/pipes/encode-uri.pipe.js +1 -1
  20. package/esm2015/lib/pipes/integer-currency.pipe.js +1 -1
  21. package/esm2015/lib/pipes/safe-html.pipe.js +1 -1
  22. package/esm2015/lib/pipes/safe-style.pipe.js +1 -1
  23. package/esm2015/lib/pipes/to-number.pipe.js +1 -1
  24. package/esm2015/lib/pipes/trim.pipe.js +1 -1
  25. package/esm2015/lib/pipes/typeof.pipe.js +1 -1
  26. package/esm2015/lib/services/viewport.service.js +66 -40
  27. package/esm2015/lib/ui/back-to-top/back-to-top.component.js +2 -2
  28. package/esm2015/lib/ui/button-with-confirm-dialog/button-response-types.enum.js +1 -1
  29. package/esm2015/lib/ui/button-with-confirm-dialog/button-with-confirm-dialog.component.js +2 -2
  30. package/esm2015/lib/ui/button-with-confirm-dialog/dialog-data.model.js +1 -1
  31. package/esm2015/lib/ui/checkbox/checkbox.component.js +2 -2
  32. package/esm2015/lib/ui/dropdown-from-data/dropdown-from-data.component.js +23 -19
  33. package/esm2015/lib/ui/enum-radiogroup/enum-radiogroup.component.js +2 -2
  34. package/esm2015/lib/ui/file-input/file-input.component.js +6 -6
  35. package/esm2015/lib/ui/flyout/flyout.component.js +5 -4
  36. package/esm2015/lib/ui/generic-dialog/generic-dialog.component.js +2 -2
  37. package/esm2015/lib/ui/icon/icon.component.js +5 -2
  38. package/esm2015/lib/ui/icon/iconSize.enum.js +12 -1
  39. package/esm2015/lib/ui/image-slider/image-slider.component.js +1 -1
  40. package/esm2015/lib/ui/kms-accordion-item/kms-accordion-item.component.js +1 -1
  41. package/esm2015/lib/ui/loader/loader.component.js +2 -2
  42. package/esm2015/lib/ui/map/map.component.js +2 -21
  43. package/esm2015/lib/ui/radiobutton/radiobutton.component.js +7 -3
  44. package/esm2015/lib/ui/salutation-dropdown/salutation-dropdown.component.js +2 -2
  45. package/esm2015/lib/ui/salutation-radiogroup/salutation-radiogroup.component.js +2 -2
  46. package/esm2015/lib/ui/time-input/time-input.component.js +1 -1
  47. package/esm2015/lib/ui/tooltip/tooltip.component.js +1 -1
  48. package/esm2015/lib/ui/tooltip-icon/tooltip-icon.component.js +5 -4
  49. package/esm2015/lib/ui/yes-no-radiogroup/yes-no-radiogroup.component.js +2 -2
  50. package/esm2015/public-api.js +2 -1
  51. package/fesm2015/kms-ngx-ui-presentational.js +275 -171
  52. package/fesm2015/kms-ngx-ui-presentational.js.map +1 -1
  53. package/lib/directives/directives.module.d.ts +4 -2
  54. package/lib/directives/size.directive.d.ts +10 -0
  55. package/lib/parent-components/colorable.component.d.ts +10 -0
  56. package/lib/parent-components/form.component.d.ts +11 -5
  57. package/lib/services/viewport.service.d.ts +13 -4
  58. package/lib/ui/dropdown-from-data/dropdown-from-data.component.d.ts +2 -1
  59. package/lib/ui/file-input/file-input.component.d.ts +2 -2
  60. package/lib/ui/icon/icon.component.d.ts +7 -1
  61. package/lib/ui/icon/iconSize.enum.d.ts +10 -0
  62. package/lib/ui/map/map.component.d.ts +0 -4
  63. package/lib/ui/radiobutton/radiobutton.component.d.ts +2 -1
  64. package/lib/ui/tooltip-icon/tooltip-icon.component.d.ts +2 -2
  65. package/package.json +1 -1
  66. package/public-api.d.ts +1 -0
  67. package/src/lib/ui/back-to-top/back-to-top.component.scss +2 -3
  68. package/src/lib/ui/icon/icon.component.scss +2 -36
  69. package/src/styles/animations.scss +47 -0
  70. package/src/styles/mixins.scss +8 -8
  71. package/src/styles/styles.scss +1 -0
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@angular/material/checkbox'), require('@angular/material/radio'), require('@angular/material/form-field'), require('@angular/platform-browser'), require('@angular/material/input'), require('@angular/material/button'), require('@ngx-translate/core'), require('@angular/material/progress-spinner'), require('@angular/animations'), require('@angular/material/expansion'), require('rxjs'), require('@angular/google-maps'), require('@angular/material/select'), require('@angular/material/core'), require('subsink'), require('@angular/material/dialog'), require('@angular/material/menu'), require('enum-values/src/enumValues'), require('@angular/cdk/drag-drop'), require('ngx-useful-swiper')) :
3
- typeof define === 'function' && define.amd ? define('@kms-ngx-ui/presentational', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/material/checkbox', '@angular/material/radio', '@angular/material/form-field', '@angular/platform-browser', '@angular/material/input', '@angular/material/button', '@ngx-translate/core', '@angular/material/progress-spinner', '@angular/animations', '@angular/material/expansion', 'rxjs', '@angular/google-maps', '@angular/material/select', '@angular/material/core', 'subsink', '@angular/material/dialog', '@angular/material/menu', 'enum-values/src/enumValues', '@angular/cdk/drag-drop', 'ngx-useful-swiper'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["kms-ngx-ui"] = global["kms-ngx-ui"] || {}, global["kms-ngx-ui"].presentational = {}), global.ng.core, global.ng.common, global.ng.forms, global.ng.material.checkbox, global.ng.material.radio, global.ng.material.formField, global.ng.platformBrowser, global.ng.material.input, global.ng.material.button, global.i5$1, global.ng.material.progressSpinner, global.ng.animations, global.ng.material.expansion, global.rxjs, global.ng.googleMaps, global.ng.material.select, global.ng.material.core, global.subsink, global.ng.material.dialog, global.ng.material.menu, global.enumValues, global.ng.cdk.dragDrop, global.i2$6));
5
- })(this, (function (exports, i0, i2, i1, i1$1, i2$2, i2$1, i1$2, i5, i2$3, i5$1, i1$3, animations, i2$4, rxjs, i2$5, i3, i4, subsink, i1$4, i3$1, enumValues, i6, i2$6) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@angular/material/checkbox'), require('@angular/material/radio'), require('subsink'), require('@angular/material/form-field'), require('@angular/platform-browser'), require('@angular/material/input'), require('@angular/material/button'), require('@ngx-translate/core'), require('@angular/material/progress-spinner'), require('@angular/animations'), require('@angular/material/expansion'), require('rxjs'), require('@angular/google-maps'), require('@angular/material/select'), require('@angular/material/core'), require('@angular/material/dialog'), require('@angular/material/menu'), require('enum-values/src/enumValues'), require('@angular/cdk/drag-drop'), require('ngx-useful-swiper')) :
3
+ typeof define === 'function' && define.amd ? define('@kms-ngx-ui/presentational', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/material/checkbox', '@angular/material/radio', 'subsink', '@angular/material/form-field', '@angular/platform-browser', '@angular/material/input', '@angular/material/button', '@ngx-translate/core', '@angular/material/progress-spinner', '@angular/animations', '@angular/material/expansion', 'rxjs', '@angular/google-maps', '@angular/material/select', '@angular/material/core', '@angular/material/dialog', '@angular/material/menu', 'enum-values/src/enumValues', '@angular/cdk/drag-drop', 'ngx-useful-swiper'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["kms-ngx-ui"] = global["kms-ngx-ui"] || {}, global["kms-ngx-ui"].presentational = {}), global.ng.core, global.ng.common, global.ng.forms, global.ng.material.checkbox, global.ng.material.radio, global.subsink, global.ng.material.formField, global.ng.platformBrowser, global.ng.material.input, global.ng.material.button, global.i6, global.ng.material.progressSpinner, global.ng.animations, global.ng.material.expansion, global.rxjs, global.ng.googleMaps, global.ng.material.select, global.ng.material.core, global.ng.material.dialog, global.ng.material.menu, global.enumValues, global.ng.cdk.dragDrop, global.i2$6));
5
+ })(this, (function (exports, i0, i2, i1, i1$1, i2$2, subsink, i2$1, i1$2, i5, i2$3, i6, i1$3, animations, i2$4, rxjs, i2$5, i3, i4, i1$4, i3$1, enumValues, i6$1, i2$6) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -31,7 +31,7 @@
31
31
  var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
32
32
  var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
33
33
  var i2__namespace$3 = /*#__PURE__*/_interopNamespace(i2$3);
34
- var i5__namespace$1 = /*#__PURE__*/_interopNamespace(i5$1);
34
+ var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
35
35
  var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$3);
36
36
  var i2__namespace$4 = /*#__PURE__*/_interopNamespace(i2$4);
37
37
  var i2__namespace$5 = /*#__PURE__*/_interopNamespace(i2$5);
@@ -39,7 +39,7 @@
39
39
  var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
40
40
  var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
41
41
  var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
42
- var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
42
+ var i6__namespace$1 = /*#__PURE__*/_interopNamespace(i6$1);
43
43
  var i2__namespace$6 = /*#__PURE__*/_interopNamespace(i2$6);
44
44
 
45
45
  var KmsUiPresentationalService = /** @class */ (function () {
@@ -506,7 +506,7 @@
506
506
  useExisting: i0.forwardRef(function () { return CheckboxComponent; }),
507
507
  multi: true,
508
508
  },
509
- ], usesInheritance: true, ngImport: i0__namespace, 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__namespace.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex", "aria-label", "aria-labelledby", "id", "labelPosition", "name", "required", "checked", "disabled", "indeterminate", "aria-describedby", "value"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }], directives: [{ type: i1__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
509
+ ], usesInheritance: true, ngImport: i0__namespace, template: "<!-- <label class=\"wrapper ui-copy-text\"\r\n [ngClass]=\"{'disabled' : disabled}\">{{label}}\r\n <input type=\"checkbox\" \r\n [checked]=\"checked\"\r\n [value]=\"value\"\r\n [name]=\"name\"\r\n [disabled]=\"disabled\"\r\n (change)=\"selectAction($event)\">\r\n\r\n</label> -->\r\n<mat-checkbox class=\"example-margin\" [disabled]=\"disabled\" [name]=\"name\" [(ngModel)]=\"checked\"></mat-checkbox>\r\n<span *ngIf=\"infoText && infoText.length > 0\" \r\n class=\"\"\r\n [ngClass]=\"{'disabled' : disabled}\">{{infoText}}\r\n</span>", styles: [""], components: [{ type: i1__namespace.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex", "aria-label", "aria-labelledby", "id", "labelPosition", "name", "required", "checked", "disabled", "indeterminate", "aria-describedby", "value"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }], directives: [{ type: i1__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
510
510
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CheckboxComponent, decorators: [{
511
511
  type: i0.Component,
512
512
  args: [{
@@ -532,15 +532,53 @@
532
532
  /*!
533
533
  * @copyright FLYACTS GmbH 2019
534
534
  */
535
- var FormParentComponent = /** @class */ (function () {
535
+ var ColorableParentComponent = /** @class */ (function () {
536
+ function ColorableParentComponent() {
537
+ }
538
+ ColorableParentComponent.prototype.setupColors = function (elementRef) {
539
+ if (this.color) {
540
+ var color1 = void 0;
541
+ var color2 = void 0;
542
+ if (this.color === 'primary' || this.color === 'accent') {
543
+ color1 = 'var(--' + this.color + 'Color)';
544
+ color2 = 'var(--' + this.color + 'ColorHover)';
545
+ }
546
+ else {
547
+ color1 = this.color;
548
+ color2 = this.color;
549
+ }
550
+ elementRef.style.setProperty('--componentColor', color1);
551
+ elementRef.style.setProperty('--componentColorHover', color2);
552
+ }
553
+ };
554
+ return ColorableParentComponent;
555
+ }());
556
+ ColorableParentComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ColorableParentComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
557
+ ColorableParentComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ColorableParentComponent, selector: "ng-component", inputs: { color: "color" }, ngImport: i0__namespace, template: '', isInline: true });
558
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ColorableParentComponent, decorators: [{
559
+ type: i0.Component,
560
+ args: [{
561
+ selector: '',
562
+ template: '',
563
+ }]
564
+ }], propDecorators: { color: [{
565
+ type: i0.Input
566
+ }] } });
567
+
568
+ var FormParentComponent = /** @class */ (function (_super) {
569
+ __extends(FormParentComponent, _super);
536
570
  function FormParentComponent(formBuilder) {
537
- this.formBuilder = formBuilder;
538
- this.formInitialized = false;
539
- this.allowedCharsOnlyNumbers = new Set('0123456789'.split('').map(function (c) { return c.charCodeAt(0); }));
540
- this.formDataChanged = new i0.EventEmitter();
541
- this.disabled = false;
571
+ var _this = _super.call(this) || this;
572
+ _this.formBuilder = formBuilder;
573
+ _this.disabled = false;
574
+ _this.showRequired = false;
575
+ _this.formInitialized = false;
576
+ _this.allowedCharsOnlyNumbers = new Set('0123456789'.split('').map(function (c) { return c.charCodeAt(0); }));
577
+ _this.subs = new subsink.SubSink();
578
+ _this.formDataChanged = new i0.EventEmitter();
579
+ return _this;
542
580
  }
543
- // TODO make a service or make own compoennt etc.
581
+ // TODO make a service or make own component etc.
544
582
  /**
545
583
  * Returns if a number was pressed
546
584
  * @param e
@@ -556,9 +594,15 @@
556
594
  var isArrows = e.keyCode >= 37 && e.keyCode <= 40;
557
595
  var isDelete = e.keyCode == 8 || e.keyCode == 46;
558
596
  var isCutCopyOrPaste = (e.ctrlKey || e.metaKey) && (e.keyCode == 86 || e.keyCode == 88 || e.keyCode == 67);
559
- return (isNumberRow) || (isNumberPad) || (allowDelete && isDelete) || (allowArrows && isArrows) || (allowCutCopyPaste && isCutCopyOrPaste);
560
- };
561
- // TODO make a service or make own compoennt etc.
597
+ var isTab = 9;
598
+ return (isNumberRow ||
599
+ isNumberPad ||
600
+ isTab ||
601
+ (allowDelete && isDelete) ||
602
+ (allowArrows && isArrows) ||
603
+ (allowCutCopyPaste && isCutCopyOrPaste));
604
+ };
605
+ // TODO make a service or make own component etc.
562
606
  /**
563
607
  * Prevents to input other chars than numbers in input
564
608
  * @param event
@@ -569,7 +613,7 @@
569
613
  event.preventDefault();
570
614
  }
571
615
  };
572
- // TODO make a service or make own compoennt etc.
616
+ // TODO make a service or make own component etc.
573
617
  /**
574
618
  * Prevents input when pasting which is not number
575
619
  * @param event
@@ -587,26 +631,36 @@
587
631
  }
588
632
  };
589
633
  FormParentComponent.prototype.ngOnInit = function () {
634
+ this.initFormEvent();
635
+ };
636
+ FormParentComponent.prototype.ngOnDestroy = function () {
637
+ this.subs.unsubscribe();
638
+ };
639
+ FormParentComponent.prototype.initFormEvent = function () {
590
640
  var _this = this;
591
- this.formDataChanged.emit(this.form);
592
- this.form.valueChanges.subscribe(function () {
593
- _this.formDataChanged.emit(_this.form);
594
- });
641
+ if (this.form) {
642
+ this.formDataChanged.emit(this.form);
643
+ this.form.valueChanges.subscribe(function () {
644
+ _this.formDataChanged.emit(_this.form);
645
+ });
646
+ }
595
647
  };
596
648
  return FormParentComponent;
597
- }());
649
+ }(ColorableParentComponent));
598
650
  FormParentComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FormParentComponent, deps: [{ token: i1__namespace$1.FormBuilder }], target: i0__namespace.ɵɵFactoryTarget.Component });
599
- FormParentComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FormParentComponent, selector: "kms-form", inputs: { disabled: "disabled" }, outputs: { formDataChanged: "formDataChanged" }, ngImport: i0__namespace, template: '', isInline: true });
651
+ FormParentComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FormParentComponent, selector: "kms-form", inputs: { disabled: "disabled", showRequired: "showRequired" }, outputs: { formDataChanged: "formDataChanged" }, usesInheritance: true, ngImport: i0__namespace, template: '', isInline: true });
600
652
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FormParentComponent, decorators: [{
601
653
  type: i0.Component,
602
654
  args: [{
603
655
  selector: 'kms-form',
604
656
  template: '',
605
657
  }]
606
- }], ctorParameters: function () { return [{ type: i1__namespace$1.FormBuilder }]; }, propDecorators: { formDataChanged: [{
607
- type: i0.Output
608
- }], disabled: [{
658
+ }], ctorParameters: function () { return [{ type: i1__namespace$1.FormBuilder }]; }, propDecorators: { disabled: [{
659
+ type: i0.Input
660
+ }], showRequired: [{
609
661
  type: i0.Input
662
+ }], formDataChanged: [{
663
+ type: i0.Output
610
664
  }] } });
611
665
 
612
666
  var FormControlParentComponent = /** @class */ (function (_super) {
@@ -661,7 +715,8 @@
661
715
  this.onTouch = fn;
662
716
  };
663
717
  FormControlParentComponent.prototype.setDisabledState = function (isDisabled) {
664
- if (this.child) {
718
+ var _a;
719
+ if ((_a = this.child) === null || _a === void 0 ? void 0 : _a.nativeElement) {
665
720
  this.renderer.setProperty(this.child.nativeElement, 'disabled', isDisabled);
666
721
  }
667
722
  };
@@ -687,49 +742,6 @@
687
742
  args: ['child']
688
743
  }] } });
689
744
 
690
- /**
691
- * Attached File DTO
692
- */
693
- var AttachedFileDTO = /** @class */ (function () {
694
- function AttachedFileDTO() {
695
- }
696
- return AttachedFileDTO;
697
- }());
698
-
699
- /*!
700
- * @copyright FLYACTS GmbH 2019
701
- */
702
- exports.IconSize = void 0;
703
- (function (IconSize) {
704
- IconSize["FULLSIZE"] = "size-full";
705
- IconSize["TINY"] = "size-16";
706
- IconSize["SMALLER"] = "size-20";
707
- IconSize["SMALL"] = "size-32";
708
- IconSize["MEDIUM"] = "size-64";
709
- IconSize["LARGE"] = "size-128";
710
- IconSize["XL"] = "size-256";
711
- IconSize["XXL"] = "size-512";
712
- IconSize["XXXL"] = "size-1024";
713
- IconSize["NONE"] = "NONE";
714
- })(exports.IconSize || (exports.IconSize = {}));
715
-
716
- /**
717
- * @copyright FLYACTS GmbH 2019
718
- */
719
- /**
720
- * Check if null or undefined
721
- * @param value value that is being checked
722
- */
723
- function isValue(value) {
724
- if (value === null) {
725
- return false;
726
- }
727
- if (typeof value === 'undefined') {
728
- return false;
729
- }
730
- return true;
731
- }
732
-
733
745
  /*!
734
746
  * @copyright FLYACTS GmbH 2019
735
747
  */
@@ -745,7 +757,18 @@
745
757
  IconSize["XXL"] = "size-512";
746
758
  IconSize["XXXL"] = "size-1024";
747
759
  IconSize["NONE"] = "NONE";
748
- })(IconSize || (IconSize = {}));
760
+ })(IconSize || (IconSize = {}));
761
+ var IconSizePx;
762
+ (function (IconSizePx) {
763
+ IconSizePx[IconSizePx["TINY"] = 16] = "TINY";
764
+ IconSizePx[IconSizePx["SMALLER"] = 20] = "SMALLER";
765
+ IconSizePx[IconSizePx["SMALL"] = 32] = "SMALL";
766
+ IconSizePx[IconSizePx["MEDIUM"] = 64] = "MEDIUM";
767
+ IconSizePx[IconSizePx["LARGE"] = 128] = "LARGE";
768
+ IconSizePx[IconSizePx["XL"] = 256] = "XL";
769
+ IconSizePx[IconSizePx["XXL"] = 512] = "XXL";
770
+ IconSizePx[IconSizePx["XXXL"] = 1024] = "XXXL";
771
+ })(IconSizePx || (IconSizePx = {}));
749
772
 
750
773
  /**
751
774
  * @copyright KMS GmbH
@@ -755,6 +778,7 @@
755
778
  this.sanitizer = sanitizer;
756
779
  /**
757
780
  * Optional: Different size via CSS inline style.
781
+ * @deprecated. Please use size instead
758
782
  */
759
783
  this.iconSize = IconSize.FULLSIZE;
760
784
  /**
@@ -775,7 +799,7 @@
775
799
  return IconComponent;
776
800
  }());
777
801
  IconComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IconComponent, deps: [{ token: i1__namespace$2.DomSanitizer }], target: i0__namespace.ɵɵFactoryTarget.Component });
778
- IconComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: IconComponent, selector: "kms-icon", inputs: { icon: "icon", iconClass: "iconClass", iconStyle: "iconStyle", iconSize: "iconSize", dontUseSprite: "dontUseSprite" }, ngImport: i0__namespace, template: "<ng-container *ngIf=\"icon !== 'none' && dontUseSprite === false\">\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__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
802
+ IconComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: IconComponent, selector: "kms-icon", inputs: { icon: "icon", iconClass: "iconClass", iconStyle: "iconStyle", iconSize: "iconSize", size: "size", dontUseSprite: "dontUseSprite" }, ngImport: i0__namespace, template: "<ng-container *ngIf=\"icon !== 'none' && dontUseSprite === false\">\r\n <span class=\"icon {{ iconSize }}\" [ngClass]=\"iconClass\" [ngStyle]=\"iconStyle\" [style.width.px]=\"size ? size : undefined\" [style.height.px]=\"size ? size : undefined\">\r\n <svg>\r\n <use\r\n [attr.xlink:href]=\"\r\n 'assets/sprite.svg?Version=' + Version + '#' + iconToShow\r\n \"\r\n ></use>\r\n </svg>\r\n </span>\r\n</ng-container>\r\n<ng-container *ngIf=\"icon !== 'none' && dontUseSprite === true\">\r\n <object\r\n [data]=\"\r\n sanitizer.bypassSecurityTrustResourceUrl('assets/icons/' + icon + '')\r\n \"\r\n type=\"image/svg+xml\"\r\n class=\"icon {{ iconSize }}\"\r\n [ngClass]=\"iconClass\"\r\n [ngStyle]=\"iconStyle\"\r\n ></object>\r\n</ng-container>\r\n", styles: [""], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
779
803
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IconComponent, decorators: [{
780
804
  type: i0.Component,
781
805
  args: [{
@@ -791,6 +815,8 @@
791
815
  type: i0.Input
792
816
  }], iconSize: [{
793
817
  type: i0.Input
818
+ }], size: [{
819
+ type: i0.Input
794
820
  }], dontUseSprite: [{
795
821
  type: i0.Input
796
822
  }] } });
@@ -938,6 +964,26 @@
938
964
  args: ['mouseleave']
939
965
  }] } });
940
966
 
967
+ var SizeDirective = /** @class */ (function () {
968
+ function SizeDirective(elementRef) {
969
+ this.elementRef = elementRef;
970
+ this.size = '';
971
+ }
972
+ SizeDirective.prototype.ngOnInit = function () {
973
+ this.elementRef.nativeElement.style.width(this.size + 'px');
974
+ this.elementRef.nativeElement.style.height(this.size + 'px');
975
+ };
976
+ return SizeDirective;
977
+ }());
978
+ SizeDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SizeDirective, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
979
+ SizeDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: SizeDirective, selector: "[size]", inputs: { size: "size" }, ngImport: i0__namespace });
980
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SizeDirective, decorators: [{
981
+ type: i0.Directive,
982
+ args: [{ selector: '[size]' }]
983
+ }], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }]; }, propDecorators: { size: [{
984
+ type: i0.Input
985
+ }] } });
986
+
941
987
  var TooltipIconComponent = /** @class */ (function () {
942
988
  function TooltipIconComponent() {
943
989
  this.tooltipTitle = "";
@@ -946,12 +992,12 @@
946
992
  this.tooltipLinkUrl = "";
947
993
  this.placement = "";
948
994
  this.delay = 1000;
949
- this.IconSize = exports.IconSize;
995
+ this.IconSizePx = IconSizePx;
950
996
  }
951
997
  return TooltipIconComponent;
952
998
  }());
953
999
  TooltipIconComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TooltipIconComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
954
- TooltipIconComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TooltipIconComponent, selector: "kms-tooltip-icon", inputs: { tooltipTitle: "tooltipTitle", tooltipText: "tooltipText", tooltipLinkText: "tooltipLinkText", tooltipLinkUrl: "tooltipLinkUrl", placement: "placement", delay: "delay" }, ngImport: i0__namespace, template: "<span\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"] }] });
1000
+ TooltipIconComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TooltipIconComponent, selector: "kms-tooltip-icon", inputs: { tooltipTitle: "tooltipTitle", tooltipText: "tooltipText", tooltipLinkText: "tooltipLinkText", tooltipLinkUrl: "tooltipLinkUrl", placement: "placement", delay: "delay" }, ngImport: i0__namespace, template: "<span\r\n kmsTooltip\r\n [tooltipTitle]=\"tooltipTitle\"\r\n [tooltipText]=\"tooltipText\"\r\n [tooltipPlacement]=\"placement\"\r\n [tooltipDelay]=\"delay\"\r\n [tooltipLinkText]=\"tooltipLinkText\"\r\n [tooltipLinkUrl]=\"tooltipLinkUrl\"\r\n>\r\n <kms-icon icon=\"ic_info\" [size]=\"IconSizePx.SMALLER\" [iconClass]=\"'color-primary'\"></kms-icon>\r\n</span>\r\n", styles: [""], components: [{ type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "iconStyle", "iconSize", "size", "dontUseSprite"] }], directives: [{ type: TooltipDirective, selector: "[kmsTooltip]", inputs: ["tooltipTitle", "tooltipText", "tooltipLinkText", "tooltipLinkUrl", "tooltipPlacement", "tooltipDelay", "tooltipPlaceIntoHost", "tooltipOnlyonclick"] }, { type: SizeDirective, selector: "[size]", inputs: ["size"] }] });
955
1001
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TooltipIconComponent, decorators: [{
956
1002
  type: i0.Component,
957
1003
  args: [{
@@ -1062,6 +1108,7 @@
1062
1108
  * Internal description id. Will be send in the output event when the radio button is selected.
1063
1109
  */
1064
1110
  _this.id = '';
1111
+ _this.radioButtonSize = 16;
1065
1112
  // eslint-disable-next-line @typescript-eslint/no-empty-function
1066
1113
  _this.onChange = function () { };
1067
1114
  // eslint-disable-next-line @typescript-eslint/no-empty-function
@@ -1096,13 +1143,13 @@
1096
1143
  return RadioButtonComponent;
1097
1144
  }(ActionsParentComponent));
1098
1145
  RadioButtonComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RadioButtonComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
1099
- RadioButtonComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: RadioButtonComponent, selector: "kms-radiobutton", inputs: { name: "name", id: "id", formControl: "formControl" }, providers: [
1146
+ RadioButtonComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: RadioButtonComponent, selector: "kms-radiobutton", inputs: { name: "name", id: "id", radioButtonSize: "radioButtonSize", formControl: "formControl" }, providers: [
1100
1147
  {
1101
1148
  provide: i1.NG_VALUE_ACCESSOR,
1102
1149
  useExisting: i0.forwardRef(function () { return RadioButtonComponent; }),
1103
1150
  multi: true,
1104
1151
  },
1105
- ], usesInheritance: true, ngImport: i0__namespace, 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__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
1152
+ ], usesInheritance: true, ngImport: i0__namespace, template: "<label class=\"wrapper ui-small-text\"\r\n [ngClass]=\"{'disabled' : disabled}\">\r\n <input type=\"radio\"\r\n [name]=\"name\"\r\n [value]=\"value\"\r\n [checked]=\"checked\"\r\n [disabled]=\"disabled\"\r\n [id]=\"id\"\r\n (change)=\"selectAction($event)\">{{label}}\r\n\r\n <kms-icon\r\n class=\"checkmark\" \r\n aria-hidden=\"true\"\r\n *ngIf=\"checked\"\r\n [ngClass]=\"{\r\n 'disabled' : disabled\r\n }\"\r\n [iconClass]=\"{\r\n 'disabled' : disabled, \r\n 'color-primary': true\r\n }\"\r\n [icon]=\"'ic_radiobutton_active'\"\r\n [size]=\"radioButtonSize\"\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 }\"\r\n [icon]=\"'ic_radiobutton_inactive'\"\r\n [size]=\"radioButtonSize\"\r\n >\r\n </kms-icon>\r\n <ng-content></ng-content>\r\n</label>\r\n", styles: [""], components: [{ type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "iconStyle", "iconSize", "size", "dontUseSprite"] }], directives: [{ type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: SizeDirective, selector: "[size]", inputs: ["size"] }] });
1106
1153
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RadioButtonComponent, decorators: [{
1107
1154
  type: i0.Component,
1108
1155
  args: [{
@@ -1121,6 +1168,8 @@
1121
1168
  type: i0.Input
1122
1169
  }], id: [{
1123
1170
  type: i0.Input
1171
+ }], radioButtonSize: [{
1172
+ type: i0.Input
1124
1173
  }], formControl: [{
1125
1174
  type: i0.Input
1126
1175
  }] } });
@@ -1275,7 +1324,7 @@
1275
1324
  useExisting: i0.forwardRef(function () { return YesNoRadiogroupComponent; }),
1276
1325
  multi: true,
1277
1326
  },
1278
- ], viewQueries: [{ propertyName: "child", first: true, predicate: ["child"], descendants: true }], ngImport: i0__namespace, 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__namespace$2.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }], directives: [{ type: i1__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2__namespace$2.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { type: i1__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
1327
+ ], viewQueries: [{ propertyName: "child", first: true, predicate: ["child"], descendants: true }], ngImport: i0__namespace, template: "<form [formGroup]=\"form\">\r\n <div>{{ header }}</div>\r\n <mat-radio-group [formControl]=\"form.controls['yesno']\" [disabled]=\"disabled\" #child>\r\n <mat-radio-button [value]=\"true\" [checked]=\"internalValue === true\"> {{ textYes }}</mat-radio-button>\r\n <mat-radio-button [value]=\"false\" [checked]=\"internalValue === false\"> {{ textNo }}</mat-radio-button>\r\n </mat-radio-group>\r\n</form>\r\n", components: [{ type: i2__namespace$2.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }], directives: [{ type: i1__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2__namespace$2.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { type: i1__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
1279
1328
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: YesNoRadiogroupComponent, decorators: [{
1280
1329
  type: i0.Component,
1281
1330
  args: [{
@@ -1302,6 +1351,23 @@
1302
1351
  args: ['child']
1303
1352
  }] } });
1304
1353
 
1354
+ /**
1355
+ * @copyright FLYACTS GmbH 2019
1356
+ */
1357
+ /**
1358
+ * Check if null or undefined
1359
+ * @param value value that is being checked
1360
+ */
1361
+ function isValue(value) {
1362
+ if (value === null) {
1363
+ return false;
1364
+ }
1365
+ if (typeof value === 'undefined') {
1366
+ return false;
1367
+ }
1368
+ return true;
1369
+ }
1370
+
1305
1371
  // Max size in bytes of uploaded image
1306
1372
  var MAX_SIZE_BYTES = 2097152;
1307
1373
  var FileInputComponent = /** @class */ (function () {
@@ -1336,7 +1402,7 @@
1336
1402
  });
1337
1403
  this.subscriptions = [];
1338
1404
  this.newImageLoading = false;
1339
- this.IconSize = exports.IconSize;
1405
+ this.IconSizePx = IconSizePx;
1340
1406
  this.formDataChanged = new i0.EventEmitter();
1341
1407
  // eslint-disable-next-line @typescript-eslint/no-empty-function
1342
1408
  this.onChange = function () { };
@@ -1493,7 +1559,7 @@
1493
1559
  useExisting: i0.forwardRef(function () { return FileInputComponent; }),
1494
1560
  multi: true,
1495
1561
  },
1496
- ], viewQueries: [{ propertyName: "fileInput", first: true, predicate: ["fileInput"], descendants: true }], ngImport: i0__namespace, 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__namespace$3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i1__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "translate": i5__namespace$1.TranslatePipe } });
1562
+ ], viewQueries: [{ propertyName: "fileInput", first: true, predicate: ["fileInput"], descendants: true }], ngImport: i0__namespace, template: "<form [formGroup]=\"form\" (change)=\"newImageLoading=true\" class=\"fileInput\"> \r\n\r\n <div *ngIf=\"form.value.Filename && previewImage\">\r\n <div *ngIf=\"newImageLoading\">\r\n {{ 'file-input.loading' | translate }}\r\n </div>\r\n <div *ngIf=\"!newImageLoading\">\r\n <div class=\"\">\r\n <div class=\"\">\r\n <img *ngIf=\"form.value.ImageLink && form.value.ImageLink !== '' && !(form.value.ImageAsDataURL && form.value.ImageAsDataURL !== '')\" [src]=\"form.value.ImageAsDataURL\" [src]=\"form.value.ImageLink\" style=\"height: 40px; width: fit-content;\" />\r\n <img *ngIf=\"form.value.ImageAsDataURL && form.value.ImageAsDataURL !== ''\" [src]=\"form.value.ImageAsDataURL\" style=\"height: 40px; width: fit-content;\" />\r\n </div>\r\n <div class=\"\">{{form.value.Filename}}</div>\r\n <div class=\"\">\r\n <div (click)=\"removeFromList()\" *ngIf=\"allowRemove\">\r\n <kms-icon icon=\"trash\" [size]=\"IconSizePx.TINY\" iconClass=\"color-black\"></kms-icon> \r\n {{ 'file-input.remove' }}\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"!previewImage\">\r\n <div class=\"\">{{form.value.Filename}}</div>\r\n </div>\r\n\r\n <button (click)=\"selectImageOverlay()\" class=\"button-primary-font-color\" mat-stroked-button>\r\n <span>{{ label }}</span>\r\n </button>\r\n <input\r\n type=\"file\"\r\n [accept]=\"acceptedFileMimetypes\"\r\n style=\"display: none\"\r\n #fileInput\r\n (click)=\"clearInputValue($event)\"\r\n (change)=\"selectImage($event)\"\r\n />\r\n\r\n <input type=\"hidden\" [formControl]=\"form.controls['ImageIdent']\" />\r\n <input type=\"hidden\" [formControl]=\"form.controls['ImageLink']\" />\r\n <input type=\"hidden\" [formControl]=\"form.controls['Filename']\" />\r\n <input type=\"hidden\" [formControl]=\"form.controls['ImageAsDataURL']\" />\r\n <input type=\"hidden\" [formControl]=\"form.controls['Text']\" />\r\n\r\n</form>", styles: [""], components: [{ type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "iconStyle", "iconSize", "size", "dontUseSprite"] }, { type: i2__namespace$3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i1__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: SizeDirective, selector: "[size]", inputs: ["size"] }, { type: i1__namespace$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "translate": i6__namespace.TranslatePipe } });
1497
1563
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FileInputComponent, decorators: [{
1498
1564
  type: i0.Component,
1499
1565
  args: [{
@@ -1544,7 +1610,7 @@
1544
1610
  return LoaderComponent;
1545
1611
  }());
1546
1612
  LoaderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LoaderComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
1547
- LoaderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: LoaderComponent, selector: "kms-loader", inputs: { loading: "loading" }, ngImport: i0__namespace, template: "<div class=\"loading-spinner-shade\" *ngIf=\"loading\">\n <mat-spinner class=\"spinnerMargin\" color=\"accent\" diameter=\"44\"></mat-spinner>\n</div>\n", styles: [""], components: [{ type: i1__namespace$3.MatSpinner, selector: "mat-spinner", inputs: ["color"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
1613
+ LoaderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: LoaderComponent, selector: "kms-loader", inputs: { loading: "loading" }, ngImport: i0__namespace, template: "<div class=\"loading-spinner-shade\" *ngIf=\"loading\">\r\n <mat-spinner class=\"spinnerMargin\" color=\"accent\" diameter=\"44\"></mat-spinner>\r\n</div>\r\n", styles: [""], components: [{ type: i1__namespace$3.MatSpinner, selector: "mat-spinner", inputs: ["color"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
1548
1614
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LoaderComponent, decorators: [{
1549
1615
  type: i0.Component,
1550
1616
  args: [{
@@ -1690,7 +1756,7 @@
1690
1756
  return FlyoutComponent;
1691
1757
  }());
1692
1758
  FlyoutComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FlyoutComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
1693
- FlyoutComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FlyoutComponent, selector: "kms-flyout", inputs: { icon: "icon", headerCssClass: "headerCssClass", bodyCssClass: "bodyCssClass", headerTitle: "headerTitle", headerText: "headerText", hasButtonForMore: "hasButtonForMore", moreText: "moreText", lessText: "lessText" }, viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true }, { propertyName: "flyoutHeader", first: true, predicate: ["flyoutHeader"], descendants: true }], ngImport: i0__namespace, template: "<div class=\"flyout\"\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__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: GetMaxHeightDirective, selector: "[getMaxHeight]", inputs: ["getMaxHeight"], outputs: ["maxHeightChanged", "sumOfHeight"] }], pipes: { "kmsSafeHtml": SafeHtmlPipe }, animations: [
1759
+ FlyoutComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FlyoutComponent, selector: "kms-flyout", inputs: { icon: "icon", headerCssClass: "headerCssClass", bodyCssClass: "bodyCssClass", headerTitle: "headerTitle", headerText: "headerText", hasButtonForMore: "hasButtonForMore", moreText: "moreText", lessText: "lessText" }, viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true }, { propertyName: "flyoutHeader", first: true, predicate: ["flyoutHeader"], descendants: true }], ngImport: i0__namespace, template: "<div class=\"flyout\"\r\n [ngClass]=\"{'is-active': isDropdownOpened}\"\r\n>\r\n <div class=\"flyout-header\" (click)=\"toggleDropdownHeader()\" [ngClass]=\"headerCssClass\">\r\n <span [innerHtml]=\"headerTitle | kmsSafeHtml\"></span>\r\n <span [innerHtml]=\"headerText | kmsSafeHtml\"></span>\r\n\r\n <ng-content select=\"[header]\"></ng-content>\r\n\r\n <div *ngIf=\"hasButtonForMore\" (click)=\"toggleDropdown()\" class=\"flyout-header-more\">\r\n <span *ngIf=\"!isDropdownOpened\">\r\n {{ moreText }}\r\n </span>\r\n <span *ngIf=\"isDropdownOpened\">\r\n {{ lessText }}\r\n </span>\r\n <kms-icon [icon]=\"'chevron-down'\" [ngClass]=\"{'is-rotating180':isDropdownOpened}\" [size]=\"16\">\r\n </kms-icon>\r\n </div>\r\n </div>\r\n <div \r\n class=\"flyout-body\"\r\n [ngClass]=\"bodyCssClass\"\r\n tabindex=\"0\"\r\n [@dropdownAnimation]=\"{value: isDropdownOpened, params: {targetHeight: targetHeight, animationTime: '500'}}\"\r\n getMaxHeight=\"inner\"\r\n (sumOfHeight)=\"setDropdownListHeight($event)\"\r\n #flyoutHeader>\r\n <div class=\"inner\" #content>\r\n <ng-content ></ng-content>\r\n </div>\r\n </div>\r\n\r\n</div>\r\n", styles: [""], components: [{ type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "iconStyle", "iconSize", "size", "dontUseSprite"] }], directives: [{ type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: SizeDirective, selector: "[size]", inputs: ["size"] }, { type: GetMaxHeightDirective, selector: "[getMaxHeight]", inputs: ["getMaxHeight"], outputs: ["maxHeightChanged", "sumOfHeight"] }], pipes: { "kmsSafeHtml": SafeHtmlPipe }, animations: [
1694
1760
  animations.trigger('dropdownAnimation', [
1695
1761
  animations.state('true', animations.style({
1696
1762
  height: '{{targetHeight}}',
@@ -2049,7 +2115,7 @@
2049
2115
  useExisting: i0.forwardRef(function () { return EnumRadiogroupComponent; }),
2050
2116
  multi: true,
2051
2117
  },
2052
- ], usesInheritance: true, ngImport: i0__namespace, 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__namespace$2.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }], directives: [{ type: i1__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2__namespace$2.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { type: i1__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "translate": i5__namespace$1.TranslatePipe } });
2118
+ ], usesInheritance: true, ngImport: i0__namespace, template: "<form [formGroup]=\"form\">\r\n <div>{{ header }}</div>\r\n <mat-radio-group [formControl]=\"form.controls['enumData']\" [disabled]=\"disabled\" #child>\r\n <mat-radio-button [value]=\"choice\" [checked]=\"value === choice\" *ngFor=\"let choice of optionValues\">{{ translationPrefix + '.' + choice | translate }}</mat-radio-button>\r\n </mat-radio-group>\r\n</form>", components: [{ type: i2__namespace$2.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }], directives: [{ type: i1__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2__namespace$2.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { type: i1__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "translate": i6__namespace.TranslatePipe } });
2053
2119
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EnumRadiogroupComponent, decorators: [{
2054
2120
  type: i0.Component,
2055
2121
  args: [{
@@ -2092,7 +2158,7 @@
2092
2158
  return KMSAccordionItemComponent;
2093
2159
  }());
2094
2160
  KMSAccordionItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KMSAccordionItemComponent, deps: [{ token: i1__namespace$2.DomSanitizer }], target: i0__namespace.ɵɵFactoryTarget.Component });
2095
- KMSAccordionItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: KMSAccordionItemComponent, selector: "kms-accordion-item", inputs: { itemTitle: "itemTitle", showAsCard: "showAsCard", isSmall: "isSmall", expanded: "expanded" }, ngImport: i0__namespace, template: "<mat-expansion-panel\r\n class=\"accordion-item\"\r\n [ngClass]=\"{showAsCard: showAsCard, showFlat: !showAsCard, isSmall: isSmall}\"\r\n (opened)=\"panelOpenState = true\"\r\n (closed)=\"panelOpenState = false\"\r\n [expanded] = \"expanded\"\r\n hideToggle=\"true\">\r\n <mat-expansion-panel-header class=\"accordion-item-header\">\r\n <mat-panel-title class=\"mat-subheading-2 accordion-item-title\">\r\n <div [innerHtml]=\"itemTitleTrustHtml\"></div>\r\n <ng-content select=\"[itemTitleElement]\"></ng-content>\r\n </mat-panel-title>\r\n <div class=\"accordion-item-header-icon-wrapper\">\r\n <kms-icon *ngIf=\"!panelOpenState\" icon=\"ic_plus\" iconClass=\"color-red\" class=\"accordion-item-header-icon-wrapper-desktop\"></kms-icon>\r\n <kms-icon *ngIf=\"panelOpenState\" icon=\"ic_minus\" iconClass=\"color-red\" class=\"accordion-item-header-icon-wrapper-desktop\"></kms-icon>\r\n\r\n <kms-icon *ngIf=\"!panelOpenState\" icon=\"chevron-down\" iconClass=\"color-red\" class=\"accordion-item-header-icon-wrapper-mobile\"></kms-icon>\r\n <kms-icon *ngIf=\"panelOpenState\" icon=\"chevron-top\" iconClass=\"color-red\" class=\"accordion-item-header-icon-wrapper-mobile\"></kms-icon>\r\n </div>\r\n </mat-expansion-panel-header>\r\n <ng-content></ng-content>\r\n</mat-expansion-panel>\r\n", styles: [""], components: [{ type: i2__namespace$4.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { type: i2__namespace$4.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["tabIndex", "expandedHeight", "collapsedHeight"] }, { type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "iconStyle", "iconSize", "dontUseSprite"] }], directives: [{ type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2__namespace$4.MatExpansionPanelTitle, selector: "mat-panel-title" }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
2161
+ KMSAccordionItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: KMSAccordionItemComponent, selector: "kms-accordion-item", inputs: { itemTitle: "itemTitle", showAsCard: "showAsCard", isSmall: "isSmall", expanded: "expanded" }, ngImport: i0__namespace, template: "<mat-expansion-panel\r\n class=\"accordion-item\"\r\n [ngClass]=\"{showAsCard: showAsCard, showFlat: !showAsCard, isSmall: isSmall}\"\r\n (opened)=\"panelOpenState = true\"\r\n (closed)=\"panelOpenState = false\"\r\n [expanded] = \"expanded\"\r\n hideToggle=\"true\">\r\n <mat-expansion-panel-header class=\"accordion-item-header\">\r\n <mat-panel-title class=\"mat-subheading-2 accordion-item-title\">\r\n <div [innerHtml]=\"itemTitleTrustHtml\"></div>\r\n <ng-content select=\"[itemTitleElement]\"></ng-content>\r\n </mat-panel-title>\r\n <div class=\"accordion-item-header-icon-wrapper\">\r\n <kms-icon *ngIf=\"!panelOpenState\" icon=\"ic_plus\" iconClass=\"color-red\" class=\"accordion-item-header-icon-wrapper-desktop\"></kms-icon>\r\n <kms-icon *ngIf=\"panelOpenState\" icon=\"ic_minus\" iconClass=\"color-red\" class=\"accordion-item-header-icon-wrapper-desktop\"></kms-icon>\r\n\r\n <kms-icon *ngIf=\"!panelOpenState\" icon=\"chevron-down\" iconClass=\"color-red\" class=\"accordion-item-header-icon-wrapper-mobile\"></kms-icon>\r\n <kms-icon *ngIf=\"panelOpenState\" icon=\"chevron-top\" iconClass=\"color-red\" class=\"accordion-item-header-icon-wrapper-mobile\"></kms-icon>\r\n </div>\r\n </mat-expansion-panel-header>\r\n <ng-content></ng-content>\r\n</mat-expansion-panel>\r\n", styles: [""], components: [{ type: i2__namespace$4.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { type: i2__namespace$4.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["tabIndex", "expandedHeight", "collapsedHeight"] }, { type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "iconStyle", "iconSize", "size", "dontUseSprite"] }], directives: [{ type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2__namespace$4.MatExpansionPanelTitle, selector: "mat-panel-title" }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
2096
2162
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KMSAccordionItemComponent, decorators: [{
2097
2163
  type: i0.Component,
2098
2164
  args: [{
@@ -2114,12 +2180,13 @@
2114
2180
  * Service to get viewport
2115
2181
  */
2116
2182
  var ViewportService = /** @class */ (function () {
2117
- function ViewportService(platformId) {
2183
+ function ViewportService(platformId, document) {
2118
2184
  this.platformId = platformId;
2185
+ this.document = document;
2119
2186
  this.viewports = [
2120
2187
  {
2121
2188
  name: 'xs',
2122
- low: 420,
2189
+ low: 360,
2123
2190
  high: 990,
2124
2191
  },
2125
2192
  {
@@ -2134,7 +2201,7 @@
2134
2201
  },
2135
2202
  {
2136
2203
  name: 'l',
2137
- low: 12001,
2204
+ low: 1201,
2138
2205
  high: 1400,
2139
2206
  },
2140
2207
  {
@@ -2155,45 +2222,52 @@
2155
2222
  ];
2156
2223
  this.viewportChangedSubscriber = new rxjs.Subject();
2157
2224
  this.viewportResizedSubscriber = new rxjs.Subject();
2225
+ this.isBrowser = false;
2158
2226
  if (i2.isPlatformBrowser(this.platformId)) {
2159
2227
  window.addEventListener('resize', this.documentSizeChanged.bind(this), { passive: true });
2228
+ this.isBrowser = true;
2160
2229
  }
2161
2230
  }
2162
2231
  /**
2163
2232
  * Get window height
2164
2233
  */
2165
2234
  ViewportService.prototype.getDocumentHeight = function () {
2166
- return i2.isPlatformBrowser(this.platformId) ? document.body.clientHeight : 1200;
2235
+ return this.isBrowser ? document.body.clientHeight : 1200;
2167
2236
  };
2168
2237
  /**
2169
2238
  * Get window width
2170
2239
  */
2171
2240
  ViewportService.prototype.getDocumentWidth = function () {
2172
- return i2.isPlatformBrowser(this.platformId) ? document.body.clientWidth : 1200;
2241
+ return this.isBrowser ? document.body.clientWidth : 1200;
2173
2242
  };
2174
2243
  /**
2175
2244
  * Get window height
2176
2245
  */
2177
2246
  ViewportService.prototype.getWindowHeight = function () {
2178
- return i2.isPlatformBrowser(this.platformId) ? window.innerHeight : 1200;
2247
+ return this.isBrowser ? window.innerHeight : 1200;
2179
2248
  };
2180
2249
  /**
2181
2250
  * Get window width
2182
2251
  */
2183
2252
  ViewportService.prototype.getWindowWidth = function () {
2184
- return i2.isPlatformBrowser(this.platformId) ? window.innerWidth : 1200;
2253
+ return this.isBrowser ? window.innerWidth : 1200;
2185
2254
  };
2186
2255
  /**
2187
2256
  * Returns the current viewport MQ as string
2188
2257
  * @returns string
2189
2258
  */
2190
2259
  ViewportService.prototype.getCurrentViewPort = function () {
2191
- if (!this.currentViewport) {
2192
- var currentWidth = i2.isPlatformBrowser(this.platformId) ? document.body.clientWidth : 1200;
2193
- this.currentViewport = this.convertWidthToMediaQuery(currentWidth);
2194
- }
2260
+ var currentWidth = this.isBrowser ? document.body.clientWidth : 1200;
2261
+ this.currentViewport = this.convertWidthToMediaQuery(currentWidth);
2195
2262
  return this.currentViewport;
2196
2263
  };
2264
+ /**
2265
+ * Returns the current viewport MQ as string
2266
+ * @returns string
2267
+ */
2268
+ ViewportService.prototype.getCurrentViewPortNumber = function () {
2269
+ return this.isBrowser ? document.body.clientWidth : 1200;
2270
+ };
2197
2271
  /**
2198
2272
  * Provides mq´s as string
2199
2273
  */
@@ -2208,7 +2282,7 @@
2208
2282
  };
2209
2283
  ViewportService.prototype.scrollToElementId = function (el, alignCenter) {
2210
2284
  if (alignCenter === void 0) { alignCenter = false; }
2211
- if (i2.isPlatformBrowser(this.platformId)) {
2285
+ if (this.isBrowser) {
2212
2286
  this.scrollToElement(document.querySelector('#' + el), alignCenter);
2213
2287
  }
2214
2288
  };
@@ -2219,24 +2293,20 @@
2219
2293
  */
2220
2294
  ViewportService.prototype.scrollToElement = function (el, alignCenter) {
2221
2295
  if (alignCenter === void 0) { alignCenter = false; }
2222
- if (i2.isPlatformBrowser(this.platformId)) {
2296
+ if (this.isBrowser) {
2223
2297
  var extraScrollTop = 0;
2224
2298
  if (alignCenter) {
2225
2299
  extraScrollTop = (window.innerHeight - el.clientHeight) / 2;
2226
2300
  }
2227
- /*
2228
- const elementPos: DOMRect = el.getBoundingClientRect();
2229
- const scrollTopPosition = elementPos.x - extraScrollTop;
2230
- */
2231
- //let offsetLeft = 0;
2301
+ var offsetLeft = 0;
2232
2302
  var offsetTop = 0;
2233
2303
  var elTemp = el;
2234
2304
  while (elTemp) {
2235
- //offsetLeft += elTemp.offsetLeft;
2305
+ offsetLeft += elTemp.offsetLeft;
2236
2306
  offsetTop += elTemp.offsetTop;
2237
2307
  elTemp = elTemp.parentElement ? elTemp.parentElement : null;
2238
2308
  }
2239
- window.scrollTo({ left: 0, top: offsetTop - extraScrollTop, behavior: 'smooth' });
2309
+ window.scrollTo({ left: offsetLeft, top: offsetTop - extraScrollTop, behavior: 'smooth' });
2240
2310
  }
2241
2311
  };
2242
2312
  /**
@@ -2244,13 +2314,42 @@
2244
2314
  * @param top - top position value
2245
2315
  */
2246
2316
  ViewportService.prototype.scrollTop = function (top) {
2247
- if (i2.isPlatformBrowser(this.platformId)) {
2317
+ if (this.isBrowser) {
2248
2318
  window.scrollTo({ left: 0, top: top, behavior: 'smooth' });
2249
2319
  }
2250
2320
  };
2251
- ViewportService.prototype.ngOnDestroy = function () {
2252
- if (i2.isPlatformBrowser(this.platformId)) {
2253
- window.removeEventListener('resize', this.documentSizeChanged);
2321
+ ViewportService.prototype.isPortrait = function () {
2322
+ if (this.isBrowser)
2323
+ return window.innerHeight > window.innerWidth;
2324
+ else
2325
+ return;
2326
+ };
2327
+ ViewportService.prototype.isLandscape = function () {
2328
+ if (this.isBrowser) {
2329
+ var isLandscape = window.orientation === 90 || window.orientation === -90;
2330
+ return isLandscape;
2331
+ }
2332
+ else {
2333
+ return;
2334
+ }
2335
+ };
2336
+ ViewportService.prototype.isMobile = function () {
2337
+ return this.getCurrentViewPortNumber() < this.viewports[2].low;
2338
+ };
2339
+ ViewportService.prototype.calculateFullscreenElementsheight = function (id, defaultheight, extra) {
2340
+ if (!this.isBrowser || this.isMobile()) {
2341
+ return defaultheight;
2342
+ }
2343
+ else {
2344
+ var map = this.document.getElementById(id);
2345
+ var footer = this.document.getElementsByTagName('footer')[0];
2346
+ if (map && footer) {
2347
+ return window.innerHeight - map.offsetTop - footer.offsetHeight - extra + "px";
2348
+ }
2349
+ else {
2350
+ console.warn('could not calculate map height');
2351
+ return defaultheight;
2352
+ }
2254
2353
  }
2255
2354
  };
2256
2355
  /**
@@ -2318,24 +2417,14 @@
2318
2417
  }
2319
2418
  return currentViewport;
2320
2419
  };
2321
- ViewportService.prototype.isPortrait = function () {
2322
- if (i2.isPlatformBrowser(this.platformId))
2323
- return window.innerHeight > window.innerWidth;
2324
- else
2325
- return;
2326
- };
2327
- ViewportService.prototype.isLandscape = function () {
2328
- if (i2.isPlatformBrowser(this.platformId)) {
2329
- var isLandscape = window.orientation === 90 || window.orientation === -90;
2330
- return isLandscape;
2331
- }
2332
- else {
2333
- return;
2420
+ ViewportService.prototype.ngOnDestroy = function () {
2421
+ if (this.isBrowser) {
2422
+ window.removeEventListener('resize', this.documentSizeChanged);
2334
2423
  }
2335
2424
  };
2336
2425
  return ViewportService;
2337
2426
  }());
2338
- ViewportService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ViewportService, deps: [{ token: i0.PLATFORM_ID }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
2427
+ ViewportService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ViewportService, deps: [{ token: i0.PLATFORM_ID }, { token: i2.DOCUMENT }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
2339
2428
  ViewportService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ViewportService });
2340
2429
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ViewportService, decorators: [{
2341
2430
  type: i0.Injectable
@@ -2343,6 +2432,9 @@
2343
2432
  return [{ type: Object, decorators: [{
2344
2433
  type: i0.Inject,
2345
2434
  args: [i0.PLATFORM_ID]
2435
+ }] }, { type: Document, decorators: [{
2436
+ type: i0.Inject,
2437
+ args: [i2.DOCUMENT]
2346
2438
  }] }];
2347
2439
  } });
2348
2440
 
@@ -2418,13 +2510,6 @@
2418
2510
  _this.center.lng = results[0].geometry.location.lng();
2419
2511
  _this.addMarker();
2420
2512
  _this.geoDataFoundForAddress = true;
2421
- // react to browser resize
2422
- _this.setMapWidth(_this.viewPortService.getDocumentWidth());
2423
- _this.viewportSubscription = _this.viewPortService.getViewportResizedObserver().subscribe(function (val) {
2424
- _this.setMapWidth(val);
2425
- }, function (error) {
2426
- console.error('Get updated ViewPort failed', error);
2427
- });
2428
2513
  }
2429
2514
  else {
2430
2515
  console.error('Sorry, this search of map address produced no results.');
@@ -2448,18 +2533,6 @@
2448
2533
  options: { animation: google.maps.Animation.DROP },
2449
2534
  });
2450
2535
  };
2451
- /**
2452
- * sets the width of map accodring to viewport
2453
- */
2454
- MapComponent.prototype.setMapWidth = function (val) {
2455
- if (val < 991) {
2456
- this.width = (val - 84) + 'px';
2457
- }
2458
- else {
2459
- this.width = '100%';
2460
- }
2461
- this.widthSet = true;
2462
- };
2463
2536
  /**
2464
2537
  * Zooms in into map
2465
2538
  */
@@ -2479,7 +2552,7 @@
2479
2552
  return MapComponent;
2480
2553
  }());
2481
2554
  MapComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MapComponent, deps: [{ token: ViewportService }], target: i0__namespace.ɵɵFactoryTarget.Component });
2482
- MapComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: MapComponent, selector: "kms-map", inputs: { data: "data" }, ngImport: i0__namespace, template: "<div *ngIf=\"geoDataFoundForAddress && widthSet\">\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__namespace$5.GoogleMap, selector: "google-map", inputs: ["height", "width", "center", "zoom", "options", "mapTypeId"], outputs: ["authFailure", "boundsChanged", "centerChanged", "mapClick", "mapDblclick", "mapDrag", "mapDragend", "mapDragstart", "headingChanged", "idle", "maptypeidChanged", "mapMousemove", "mapMouseout", "mapMouseover", "projectionChanged", "mapRightclick", "tilesloaded", "tiltChanged", "zoomChanged"], exportAs: ["googleMap"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace$5.MapMarker, selector: "map-marker", inputs: ["title", "position", "label", "clickable", "options", "icon", "visible"], outputs: ["animationChanged", "mapClick", "clickableChanged", "cursorChanged", "mapDblclick", "mapDrag", "mapDragend", "draggableChanged", "mapDragstart", "flatChanged", "iconChanged", "mapMousedown", "mapMouseout", "mapMouseover", "mapMouseup", "positionChanged", "mapRightclick", "shapeChanged", "titleChanged", "visibleChanged", "zindexChanged"], exportAs: ["mapMarker"] }] });
2555
+ MapComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: MapComponent, selector: "kms-map", inputs: { data: "data" }, ngImport: i0__namespace, template: "<div *ngIf=\"geoDataFoundForAddress\">\r\n <google-map\r\n height=\"415px\"\r\n [width]=\"width\"\r\n [zoom]=\"zoom\"\r\n [center]=\"center\"\r\n [options]=\"options\"\r\n >\r\n <map-marker\r\n *ngFor=\"let marker of markers\"\r\n [position]=\"marker.position\"\r\n [label]=\"marker.label\"\r\n [title]=\"marker.title\"\r\n [options]=\"marker.options\"\r\n >\r\n </map-marker>\r\n </google-map>\r\n</div>", styles: [""], components: [{ type: i2__namespace$5.GoogleMap, selector: "google-map", inputs: ["height", "width", "center", "zoom", "options", "mapTypeId"], outputs: ["authFailure", "boundsChanged", "centerChanged", "mapClick", "mapDblclick", "mapDrag", "mapDragend", "mapDragstart", "headingChanged", "idle", "maptypeidChanged", "mapMousemove", "mapMouseout", "mapMouseover", "projectionChanged", "mapRightclick", "tilesloaded", "tiltChanged", "zoomChanged"], exportAs: ["googleMap"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace$5.MapMarker, selector: "map-marker", inputs: ["title", "position", "label", "clickable", "options", "icon", "visible"], outputs: ["animationChanged", "mapClick", "clickableChanged", "cursorChanged", "mapDblclick", "mapDrag", "mapDragend", "draggableChanged", "mapDragstart", "flatChanged", "iconChanged", "mapMousedown", "mapMouseout", "mapMouseover", "mapMouseup", "positionChanged", "mapRightclick", "shapeChanged", "titleChanged", "visibleChanged", "zindexChanged"], exportAs: ["mapMarker"] }] });
2483
2556
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MapComponent, decorators: [{
2484
2557
  type: i0.Component,
2485
2558
  args: [{
@@ -2534,7 +2607,7 @@
2534
2607
  useExisting: i0.forwardRef(function () { return SalutationDropdownComponent; }),
2535
2608
  multi: true,
2536
2609
  },
2537
- ], usesInheritance: true, ngImport: i0__namespace, 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__namespace$1.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i3__namespace.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { type: i4__namespace.MatOption, selector: "mat-option", exportAs: ["matOption"] }], directives: [{ type: i1__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i1__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "translate": i5__namespace$1.TranslatePipe } });
2610
+ ], usesInheritance: true, ngImport: i0__namespace, template: "<form [formGroup]=\"form\" class=\"row\">\r\n <mat-form-field class=\"col\">\r\n <mat-select disableOptionCentering [formControl]=\"form.controls['salut']\" [placeholder]=\"placeholder\" [value]=\"value\" #child>\r\n <mat-option [value]=\"SalutationEnum.NOT_SPECIFIED\">{{ 'general.salutation.' + Object.keys(SalutationEnum)[0]?.toLowerCase() | translate }}</mat-option>\r\n <mat-option [value]=\"SalutationEnum.MALE\">{{ 'general.salutation.' + Object.keys(SalutationEnum)[1]?.toLowerCase() | translate }}</mat-option>\r\n <mat-option [value]=\"SalutationEnum.FEMALE\">{{ 'general.salutation.' + Object.keys(SalutationEnum)[2]?.toLowerCase() | translate }}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n</form>", components: [{ type: i2__namespace$1.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i3__namespace.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { type: i4__namespace.MatOption, selector: "mat-option", exportAs: ["matOption"] }], directives: [{ type: i1__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i1__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "translate": i6__namespace.TranslatePipe } });
2538
2611
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SalutationDropdownComponent, decorators: [{
2539
2612
  type: i0.Component,
2540
2613
  args: [{
@@ -2571,6 +2644,32 @@
2571
2644
  type: i0.Input
2572
2645
  }] } });
2573
2646
 
2647
+ /**
2648
+ * Attached File DTO
2649
+ */
2650
+ var AttachedFileDTO = /** @class */ (function () {
2651
+ function AttachedFileDTO() {
2652
+ }
2653
+ return AttachedFileDTO;
2654
+ }());
2655
+
2656
+ /*!
2657
+ * @copyright FLYACTS GmbH 2019
2658
+ */
2659
+ exports.IconSize = void 0;
2660
+ (function (IconSize) {
2661
+ IconSize["FULLSIZE"] = "size-full";
2662
+ IconSize["TINY"] = "size-16";
2663
+ IconSize["SMALLER"] = "size-20";
2664
+ IconSize["SMALL"] = "size-32";
2665
+ IconSize["MEDIUM"] = "size-64";
2666
+ IconSize["LARGE"] = "size-128";
2667
+ IconSize["XL"] = "size-256";
2668
+ IconSize["XXL"] = "size-512";
2669
+ IconSize["XXXL"] = "size-1024";
2670
+ IconSize["NONE"] = "NONE";
2671
+ })(exports.IconSize || (exports.IconSize = {}));
2672
+
2574
2673
  var SalutationRadiogroupComponent = /** @class */ (function (_super) {
2575
2674
  __extends(SalutationRadiogroupComponent, _super);
2576
2675
  function SalutationRadiogroupComponent(formBuilder, renderer) {
@@ -2603,7 +2702,7 @@
2603
2702
  useExisting: i0.forwardRef(function () { return SalutationRadiogroupComponent; }),
2604
2703
  multi: true,
2605
2704
  },
2606
- ], usesInheritance: true, ngImport: i0__namespace, 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__namespace$2.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }], directives: [{ type: i1__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2__namespace$2.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { type: i1__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "translate": i5__namespace$1.TranslatePipe } });
2705
+ ], usesInheritance: true, ngImport: i0__namespace, template: "<form [formGroup]=\"form\" >\r\n <mat-radio-group [formControl]=\"form.controls['salut']\" [disabled]=\"disabled\" #radioGroup>\r\n <mat-radio-button color=\"primary\" [value]=\"SalutationEnum.NOT_SPECIFIED\" [checked]=\"value === SalutationEnum.NOT_SPECIFIED\">\r\n {{ 'general.salutation.' + Object.keys(SalutationEnum)[0]?.toLowerCase() | translate }}\r\n </mat-radio-button>\r\n <mat-radio-button color=\"primary\" [value]=\"SalutationEnum.MALE\" [checked]=\"value === SalutationEnum.MALE\">\r\n {{ 'general.salutation.' + Object.keys(SalutationEnum)[1]?.toLowerCase() | translate }}\r\n </mat-radio-button>\r\n <mat-radio-button color=\"primary\" [value]=\"SalutationEnum.FEMALE\" [checked]=\"value === SalutationEnum.FEMALE\">\r\n {{ 'general.salutation.' + Object.keys(SalutationEnum)[2]?.toLowerCase() | translate }}\r\n </mat-radio-button>\r\n </mat-radio-group>\r\n</form>", components: [{ type: i2__namespace$2.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }], directives: [{ type: i1__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2__namespace$2.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { type: i1__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "translate": i6__namespace.TranslatePipe } });
2607
2706
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SalutationRadiogroupComponent, decorators: [{
2608
2707
  type: i0.Component,
2609
2708
  args: [{
@@ -2652,7 +2751,7 @@
2652
2751
  return BackToTopComponent;
2653
2752
  }());
2654
2753
  BackToTopComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BackToTopComponent, deps: [{ token: i0.PLATFORM_ID }], target: i0__namespace.ɵɵFactoryTarget.Component });
2655
- BackToTopComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: BackToTopComponent, selector: "kms-back-to-top", host: { listeners: { "window:scroll": "onWindowScroll()" } }, ngImport: i0__namespace, template: "<div class=\"scrollToTop\"\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__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
2754
+ BackToTopComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: BackToTopComponent, selector: "kms-back-to-top", host: { listeners: { "window:scroll": "onWindowScroll()" } }, ngImport: i0__namespace, template: "<div class=\"scrollToTop\"\r\n [ngClass]=\"{'show': windowScrolled}\"\r\n (click)=\"scrollToTop()\">\r\n <div class=\"scrollToTop-inner\">\r\n <kms-icon icon=\"floating_button_clear\" iconClass=\"color-white\"></kms-icon>\r\n </div>\r\n</div>", components: [{ type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "iconStyle", "iconSize", "size", "dontUseSprite"] }], directives: [{ type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
2656
2755
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BackToTopComponent, decorators: [{
2657
2756
  type: i0.Component,
2658
2757
  args: [{
@@ -2715,7 +2814,7 @@
2715
2814
  return GenericDialogComponent;
2716
2815
  }());
2717
2816
  GenericDialogComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: GenericDialogComponent, deps: [{ token: i1__namespace$4.MatDialogRef }, { token: i0__namespace.NgZone }, { token: i1$4.MAT_DIALOG_DATA }], target: i0__namespace.ɵɵFactoryTarget.Component });
2718
- GenericDialogComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: GenericDialogComponent, selector: "kms-generic-dialog", ngImport: i0__namespace, template: "<div mat-dialog-title class=\"mat-dialog-title\">\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__namespace$3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i1__namespace$4.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace$4.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i1__namespace$4.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }] });
2817
+ GenericDialogComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: GenericDialogComponent, selector: "kms-generic-dialog", ngImport: i0__namespace, template: "<div mat-dialog-title class=\"mat-dialog-title\">\r\n <h3>{{ data.title }}</h3>\r\n</div>\r\n<div mat-dialog-content class=\"mat-dialog-content\">\r\n {{ data.message }}\r\n</div>\r\n<div mat-dialog-actions class=\"custom-dialog-actions\">\r\n <button\r\n mat-flat-button\r\n class=\"test_secondary_button\"\r\n color=\"accent\"\r\n (click)=\"onClickAction(ButtonResponseType.secondary)\"\r\n >\r\n {{ buttons.secondary }}\r\n </button>\r\n <button\r\n mat-flat-button\r\n class=\"test_primary_button\"\r\n color=\"primary\"\r\n (click)=\"onClickAction(ButtonResponseType.primary)\"\r\n >\r\n {{ buttons.primary }}\r\n </button>\r\n</div>\r\n", styles: [""], components: [{ type: i2__namespace$3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i1__namespace$4.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace$4.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i1__namespace$4.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }] });
2719
2818
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: GenericDialogComponent, decorators: [{
2720
2819
  type: i0.Component,
2721
2820
  args: [{
@@ -2765,7 +2864,7 @@
2765
2864
  return ButtonWithConfirmDialogComponent;
2766
2865
  }());
2767
2866
  ButtonWithConfirmDialogComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ButtonWithConfirmDialogComponent, deps: [{ token: i1__namespace$4.MatDialog }], target: i0__namespace.ɵɵFactoryTarget.Component });
2768
- ButtonWithConfirmDialogComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ButtonWithConfirmDialogComponent, selector: "kms-button-with-confirm-dialog", inputs: { disabled: "disabled", buttonText: "buttonText", confirmTitle: "confirmTitle", confirmTextYes: "confirmTextYes", confirmTextNo: "confirmTextNo" }, outputs: { onConfirmClosed: "onConfirmClosed" }, ngImport: i0__namespace, template: "<button\n type=\"button\"\n (click)=\"start()\"\n mat-stroked-button\n [disabled]=\"disabled\"\n>\n {{ buttonText }}\n</button>\n", styles: [""], components: [{ type: i2__namespace$3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }] });
2867
+ ButtonWithConfirmDialogComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ButtonWithConfirmDialogComponent, selector: "kms-button-with-confirm-dialog", inputs: { disabled: "disabled", buttonText: "buttonText", confirmTitle: "confirmTitle", confirmTextYes: "confirmTextYes", confirmTextNo: "confirmTextNo" }, outputs: { onConfirmClosed: "onConfirmClosed" }, ngImport: i0__namespace, template: "<button\r\n type=\"button\"\r\n (click)=\"start()\"\r\n mat-stroked-button\r\n [disabled]=\"disabled\"\r\n>\r\n {{ buttonText }}\r\n</button>\r\n", styles: [""], components: [{ type: i2__namespace$3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }] });
2769
2868
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ButtonWithConfirmDialogComponent, decorators: [{
2770
2869
  type: i0.Component,
2771
2870
  args: [{
@@ -2802,6 +2901,8 @@
2802
2901
  _this.label = '';
2803
2902
  _this.required = false;
2804
2903
  _this.useEnumIndexAsValue = false;
2904
+ // multiple selection
2905
+ _this.multiple = false;
2805
2906
  _this.keys = [];
2806
2907
  _this.values = [];
2807
2908
  _this.Object = Object;
@@ -2877,20 +2978,20 @@
2877
2978
  */
2878
2979
  DropdownFromDataComponent.prototype.setDisplayKey = function (key) {
2879
2980
  /*
2880
- if (this.translation && key !== null) {
2881
- if (this.translation.isPrefix) {
2882
- return this.translationService.instant(this.translation.path + '.' + key);
2883
- } else if (this.translation.useKey) {
2884
- return this.translationService.instant(this.translation.path, { key: key });
2885
- } else if (!this.translation?.useKey && !this.translation?.isPrefix) {
2886
- return this.translationService.instant(this.translation.path);
2981
+ if (this.translation && key !== null) {
2982
+ if (this.translation.isPrefix) {
2983
+ return this.translationService.instant(this.translation.path + '.' + key);
2984
+ } else if (this.translation.useKey) {
2985
+ return this.translationService.instant(this.translation.path, { key: key });
2986
+ } else if (!this.translation?.useKey && !this.translation?.isPrefix) {
2987
+ return this.translationService.instant(this.translation.path);
2988
+ }
2989
+ } else if (key == null) {
2990
+ return '';
2991
+ } else if (!this.translation) {
2992
+ return key;
2887
2993
  }
2888
- } else if (key == null) {
2889
- return '';
2890
- } else if (!this.translation) {
2891
- return key;
2892
- }
2893
- */
2994
+ */
2894
2995
  return key;
2895
2996
  };
2896
2997
  DropdownFromDataComponent.prototype.valueChanged = function (value) {
@@ -2902,13 +3003,13 @@
2902
3003
  return DropdownFromDataComponent;
2903
3004
  }(FormControlParentComponent));
2904
3005
  DropdownFromDataComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DropdownFromDataComponent, deps: [{ token: i1__namespace$1.FormBuilder }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Component });
2905
- DropdownFromDataComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DropdownFromDataComponent, selector: "kms-dropdown-from-data", inputs: { optionsEnum: "optionsEnum", optionsPlainArray: "optionsPlainArray", optionsObjArray: "optionsObjArray", mapKey: "mapKey", mapValue: "mapValue", hasNullOption: "hasNullOption", translation: "translation", placeholder: "placeholder", label: "label", required: "required", useEnumIndexAsValue: "useEnumIndexAsValue" }, providers: [
3006
+ DropdownFromDataComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DropdownFromDataComponent, selector: "kms-dropdown-from-data", inputs: { optionsEnum: "optionsEnum", optionsPlainArray: "optionsPlainArray", optionsObjArray: "optionsObjArray", mapKey: "mapKey", mapValue: "mapValue", hasNullOption: "hasNullOption", translation: "translation", placeholder: "placeholder", label: "label", required: "required", useEnumIndexAsValue: "useEnumIndexAsValue", multiple: "multiple" }, providers: [
2906
3007
  {
2907
3008
  provide: i1.NG_VALUE_ACCESSOR,
2908
3009
  useExisting: i0.forwardRef(function () { return DropdownFromDataComponent; }),
2909
3010
  multi: true,
2910
3011
  },
2911
- ], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace, 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__namespace$1.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i3__namespace.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { type: i4__namespace.MatOption, selector: "mat-option", exportAs: ["matOption"] }], directives: [{ type: i1__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2__namespace$1.MatLabel, selector: "mat-label" }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
3012
+ ], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace, template: "<form [formGroup]=\"form\">\r\n <mat-form-field [attr.required]=\"required\" [floatLabel]=\"placeholder ? 'always' : 'auto'\">\r\n <mat-label>{{ label }}</mat-label>\r\n <mat-select\r\n placeholder=\"{{ placeholder }}\"\r\n disableOptionCentering\r\n [(value)]=\"value\"\r\n (selectionChange)=\"valueChanged($event?.value)\"\r\n #child\r\n [disabled]=\"disabled\"\r\n [multiple]=\"multiple\"\r\n >\r\n <mat-option *ngFor=\"let key of keys; let i = index\" [value]=\"values[i]\">\r\n <span>{{ setDisplayKey(key) }}</span>\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n</form>\r\n", components: [{ type: i2__namespace$1.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i3__namespace.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { type: i4__namespace.MatOption, selector: "mat-option", exportAs: ["matOption"] }], directives: [{ type: i1__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2__namespace$1.MatLabel, selector: "mat-label" }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
2912
3013
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DropdownFromDataComponent, decorators: [{
2913
3014
  type: i0.Component,
2914
3015
  args: [{
@@ -2944,6 +3045,8 @@
2944
3045
  type: i0.Input
2945
3046
  }], useEnumIndexAsValue: [{
2946
3047
  type: i0.Input
3048
+ }], multiple: [{
3049
+ type: i0.Input
2947
3050
  }] } });
2948
3051
 
2949
3052
  /*!
@@ -3273,8 +3376,8 @@
3273
3376
  */
3274
3377
  ImageSliderComponent.prototype.drop = function (event) {
3275
3378
  if (this.slides && this.imagesTOSave) {
3276
- i6.moveItemInArray(this.slides, event.previousIndex, event.currentIndex);
3277
- i6.moveItemInArray(this.imagesTOSave, event.previousIndex, event.currentIndex);
3379
+ i6$1.moveItemInArray(this.slides, event.previousIndex, event.currentIndex);
3380
+ i6$1.moveItemInArray(this.imagesTOSave, event.previousIndex, event.currentIndex);
3278
3381
  this.orderChanged.emit(this.imagesTOSave);
3279
3382
  }
3280
3383
  };
@@ -3287,7 +3390,7 @@
3287
3390
  return ImageSliderComponent;
3288
3391
  }());
3289
3392
  ImageSliderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ImageSliderComponent, deps: [{ token: i1__namespace$2.DomSanitizer }], target: i0__namespace.ɵɵFactoryTarget.Component });
3290
- ImageSliderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ImageSliderComponent, selector: "kms-image-slider", inputs: { slides: "slides", editMode: "editMode", imagesTOSave: "imagesTOSave", swipeConfig: "swipeConfig" }, outputs: { orderChanged: "orderChanged", deleteImageEvent: "deleteImageEvent" }, host: { listeners: { "document:keydown": "onKeydownHandler($event)" } }, viewQueries: [{ propertyName: "usefulSwiper", first: true, predicate: ["usefulSwiper"], descendants: true }], usesOnChanges: true, ngImport: i0__namespace, template: "<div class=\"all-wrapper\">\r\n <!--(swiperight)=\"previousSlide()\" (swipeleft)=\"nextSlide()\"-->\r\n <div \r\n class=\"swiper-bigImage\"\r\n [style.backgroundImage]=\"selectedSlideImage\"\r\n [swipeDirective]=\"swipeConfig\"\r\n (moveEvent)=\"handleMoveEvent($event)\"\r\n (releaseEvent)=\"handleReleaseEvent($event)\"\r\n (mouseup)=\"lastClicked()\"\r\n (mouseout)=\"noLastClicked()\" >\r\n </div>\r\n\r\n <ng-content select=\"[description]\"></ng-content>\r\n\r\n <div class=\"swiper-holder\">\r\n <!--\r\n (mouseWheelUp)=\"scrollLeft($event)\"\r\n (mouseWheelDown)=\"scrollRight($event)\"\r\n -->\r\n\r\n <swiper [config]=\"config\" #usefulSwiper>\r\n <div class=\"swiper-wrapper\" \r\n cdkDropList (cdkDropListDropped)=\"drop($event)\" \r\n cdkDropListOrientation=\"horizontal\"> \r\n <div class=\"swiper-slide\" \r\n *ngFor=\"let slide of slides; let index = index\" \r\n cdkDrag [cdkDragDisabled]=\"!editMode\">\r\n <button mat-menu-item *ngIf=\"editMode\" (click)=\"deleteImage(index)\"> \r\n <kms-icon icon=\"trash\"></kms-icon>\r\n </button>\r\n <div class=\"img\" (click)=\"openSlide(index)\"\r\n [style.backgroundImage]=\"sanitizer.bypassSecurityTrustStyle('url(' + slide + ')')\"\r\n [ngClass]=\"{'active': index === selectedSlide}\">\r\n </div>\r\n \r\n <div class=\"default-image\">{{\"common.defaultImage\" | translate}} </div>\r\n </div>\r\n </div>\r\n </swiper>\r\n\r\n <div class=\"swiper-button-next\" *ngIf=\"slides?.length > 3\"></div>\r\n <div class=\"swiper-button-prev\" *ngIf=\"slides?.length > 3\"></div>\r\n\r\n <div class=\"swiper-button-next2\" *ngIf=\"slides?.length > 1\" (click)=\"nextSlide()\">\r\n <kms-icon icon=\"chevron-right\" [iconClass]=\"{'color-disabled': selectedSlide == slides?.length - 1, 'color-primary': true}\"></kms-icon>\r\n </div>\r\n <div class=\"swiper-button-prev2\" *ngIf=\"slides?.length > 1\" (click)=\"previousSlide()\">\r\n <kms-icon icon=\"chevron-left\" [iconClass]=\"{'color-disabled': selectedSlide == 0, 'color-primary': true}\"></kms-icon>\r\n </div>\r\n\r\n </div>\r\n\r\n <ng-content></ng-content>\r\n</div>", styles: [""], components: [{ type: i2__namespace$6.SwiperComponent, selector: "swiper", inputs: ["initialize", "config"] }, { type: i3__namespace$1.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "iconStyle", "iconSize", "dontUseSprite"] }], directives: [{ type: SwipeDirective, selector: "[swipeDirective]", inputs: ["swipeDirective"], outputs: ["moveEvent", "releaseEvent"] }, { type: i6__namespace.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__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6__namespace.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__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "translate": i5__namespace$1.TranslatePipe } });
3393
+ ImageSliderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ImageSliderComponent, selector: "kms-image-slider", inputs: { slides: "slides", editMode: "editMode", imagesTOSave: "imagesTOSave", swipeConfig: "swipeConfig" }, outputs: { orderChanged: "orderChanged", deleteImageEvent: "deleteImageEvent" }, host: { listeners: { "document:keydown": "onKeydownHandler($event)" } }, viewQueries: [{ propertyName: "usefulSwiper", first: true, predicate: ["usefulSwiper"], descendants: true }], usesOnChanges: true, ngImport: i0__namespace, template: "<div class=\"all-wrapper\">\r\n <!--(swiperight)=\"previousSlide()\" (swipeleft)=\"nextSlide()\"-->\r\n <div \r\n class=\"swiper-bigImage\"\r\n [style.backgroundImage]=\"selectedSlideImage\"\r\n [swipeDirective]=\"swipeConfig\"\r\n (moveEvent)=\"handleMoveEvent($event)\"\r\n (releaseEvent)=\"handleReleaseEvent($event)\"\r\n (mouseup)=\"lastClicked()\"\r\n (mouseout)=\"noLastClicked()\" >\r\n </div>\r\n\r\n <ng-content select=\"[description]\"></ng-content>\r\n\r\n <div class=\"swiper-holder\">\r\n <!--\r\n (mouseWheelUp)=\"scrollLeft($event)\"\r\n (mouseWheelDown)=\"scrollRight($event)\"\r\n -->\r\n\r\n <swiper [config]=\"config\" #usefulSwiper>\r\n <div class=\"swiper-wrapper\" \r\n cdkDropList (cdkDropListDropped)=\"drop($event)\" \r\n cdkDropListOrientation=\"horizontal\"> \r\n <div class=\"swiper-slide\" \r\n *ngFor=\"let slide of slides; let index = index\" \r\n cdkDrag [cdkDragDisabled]=\"!editMode\">\r\n <button mat-menu-item *ngIf=\"editMode\" (click)=\"deleteImage(index)\"> \r\n <kms-icon icon=\"trash\"></kms-icon>\r\n </button>\r\n <div class=\"img\" (click)=\"openSlide(index)\"\r\n [style.backgroundImage]=\"sanitizer.bypassSecurityTrustStyle('url(' + slide + ')')\"\r\n [ngClass]=\"{'active': index === selectedSlide}\">\r\n </div>\r\n \r\n <div class=\"default-image\">{{\"common.defaultImage\" | translate}} </div>\r\n </div>\r\n </div>\r\n </swiper>\r\n\r\n <div class=\"swiper-button-next\" *ngIf=\"slides?.length > 3\"></div>\r\n <div class=\"swiper-button-prev\" *ngIf=\"slides?.length > 3\"></div>\r\n\r\n <div class=\"swiper-button-next2\" *ngIf=\"slides?.length > 1\" (click)=\"nextSlide()\">\r\n <kms-icon icon=\"chevron-right\" [iconClass]=\"{'color-disabled': selectedSlide == slides?.length - 1, 'color-primary': true}\"></kms-icon>\r\n </div>\r\n <div class=\"swiper-button-prev2\" *ngIf=\"slides?.length > 1\" (click)=\"previousSlide()\">\r\n <kms-icon icon=\"chevron-left\" [iconClass]=\"{'color-disabled': selectedSlide == 0, 'color-primary': true}\"></kms-icon>\r\n </div>\r\n\r\n </div>\r\n\r\n <ng-content></ng-content>\r\n</div>", styles: [""], components: [{ type: i2__namespace$6.SwiperComponent, selector: "swiper", inputs: ["initialize", "config"] }, { type: i3__namespace$1.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "iconStyle", "iconSize", "size", "dontUseSprite"] }], directives: [{ type: SwipeDirective, selector: "[swipeDirective]", inputs: ["swipeDirective"], outputs: ["moveEvent", "releaseEvent"] }, { type: i6__namespace$1.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__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6__namespace$1.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__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "translate": i6__namespace.TranslatePipe } });
3291
3394
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ImageSliderComponent, decorators: [{
3292
3395
  type: i0.Component,
3293
3396
  args: [{
@@ -3382,10 +3485,12 @@
3382
3485
  DirectivesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DirectivesModule, declarations: [SwipeDirective,
3383
3486
  MouseWheelDirective,
3384
3487
  GetMaxHeightDirective,
3385
- TooltipDirective], imports: [i2.CommonModule], exports: [SwipeDirective,
3488
+ TooltipDirective,
3489
+ SizeDirective], imports: [i2.CommonModule], exports: [SwipeDirective,
3386
3490
  MouseWheelDirective,
3387
3491
  GetMaxHeightDirective,
3388
- TooltipDirective] });
3492
+ TooltipDirective,
3493
+ SizeDirective] });
3389
3494
  DirectivesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DirectivesModule, imports: [[i2.CommonModule]] });
3390
3495
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DirectivesModule, decorators: [{
3391
3496
  type: i0.NgModule,
@@ -3395,6 +3500,7 @@
3395
3500
  MouseWheelDirective,
3396
3501
  GetMaxHeightDirective,
3397
3502
  TooltipDirective,
3503
+ SizeDirective,
3398
3504
  ],
3399
3505
  imports: [i2.CommonModule],
3400
3506
  exports: [
@@ -3402,6 +3508,7 @@
3402
3508
  MouseWheelDirective,
3403
3509
  GetMaxHeightDirective,
3404
3510
  TooltipDirective,
3511
+ SizeDirective,
3405
3512
  ],
3406
3513
  }]
3407
3514
  }] });
@@ -3436,7 +3543,7 @@
3436
3543
  TooltipComponent,
3437
3544
  TooltipIconComponent,
3438
3545
  YesNoRadiogroupComponent], imports: [i2.CommonModule,
3439
- i6.DragDropModule,
3546
+ i6$1.DragDropModule,
3440
3547
  i1$1.MatCheckboxModule,
3441
3548
  i2$3.MatButtonModule,
3442
3549
  i2$2.MatRadioModule,
@@ -3452,7 +3559,7 @@
3452
3559
  i3.MatSelectModule,
3453
3560
  i1$3.MatProgressSpinnerModule,
3454
3561
  DirectivesModule,
3455
- i5$1.TranslateModule,
3562
+ i6.TranslateModule,
3456
3563
  i2$6.NgxUsefulSwiperModule], exports: [ActionsParentComponent,
3457
3564
  BackToTopComponent,
3458
3565
  ButtonWithConfirmDialogComponent,
@@ -3481,7 +3588,7 @@
3481
3588
  ViewportService
3482
3589
  ], imports: [[
3483
3590
  i2.CommonModule,
3484
- i6.DragDropModule,
3591
+ i6$1.DragDropModule,
3485
3592
  i1$1.MatCheckboxModule,
3486
3593
  i2$3.MatButtonModule,
3487
3594
  i2$2.MatRadioModule,
@@ -3497,7 +3604,7 @@
3497
3604
  i3.MatSelectModule,
3498
3605
  i1$3.MatProgressSpinnerModule,
3499
3606
  DirectivesModule,
3500
- i5$1.TranslateModule,
3607
+ i6.TranslateModule,
3501
3608
  i2$6.NgxUsefulSwiperModule,
3502
3609
  ]] });
3503
3610
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KmsUiPresentationalModule, decorators: [{
@@ -3531,7 +3638,7 @@
3531
3638
  ],
3532
3639
  imports: [
3533
3640
  i2.CommonModule,
3534
- i6.DragDropModule,
3641
+ i6$1.DragDropModule,
3535
3642
  i1$1.MatCheckboxModule,
3536
3643
  i2$3.MatButtonModule,
3537
3644
  i2$2.MatRadioModule,
@@ -3547,7 +3654,7 @@
3547
3654
  i3.MatSelectModule,
3548
3655
  i1$3.MatProgressSpinnerModule,
3549
3656
  DirectivesModule,
3550
- i5$1.TranslateModule,
3657
+ i6.TranslateModule,
3551
3658
  i2$6.NgxUsefulSwiperModule,
3552
3659
  ],
3553
3660
  exports: [
@@ -3626,6 +3733,7 @@
3626
3733
  exports.SafeUrlPipe = SafeUrlPipe;
3627
3734
  exports.SalutationDropdownComponent = SalutationDropdownComponent;
3628
3735
  exports.SalutationRadiogroupComponent = SalutationRadiogroupComponent;
3736
+ exports.SizeDirective = SizeDirective;
3629
3737
  exports.SwipeDirective = SwipeDirective;
3630
3738
  exports.TimeInputComponent = TimeInputComponent;
3631
3739
  exports.ToNumberPipe = ToNumberPipe;