@kms-ngx-ui/presentational 0.0.23 → 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.
- package/bundles/kms-ngx-ui-presentational.umd.js +257 -134
- package/bundles/kms-ngx-ui-presentational.umd.js.map +1 -1
- package/esm2015/lib/directives/directives.module.js +8 -3
- package/esm2015/lib/directives/size.directive.js +21 -0
- package/esm2015/lib/parent-components/colorable.component.js +35 -0
- package/esm2015/lib/parent-components/form-control.component.js +4 -3
- package/esm2015/lib/parent-components/form.component.js +36 -15
- package/esm2015/lib/services/viewport.service.js +66 -40
- package/esm2015/lib/ui/back-to-top/back-to-top.component.js +1 -1
- package/esm2015/lib/ui/file-input/file-input.component.js +6 -6
- package/esm2015/lib/ui/flyout/flyout.component.js +5 -4
- package/esm2015/lib/ui/icon/icon.component.js +5 -2
- package/esm2015/lib/ui/icon/iconSize.enum.js +12 -1
- package/esm2015/lib/ui/image-slider/image-slider.component.js +1 -1
- package/esm2015/lib/ui/kms-accordion-item/kms-accordion-item.component.js +1 -1
- package/esm2015/lib/ui/map/map.component.js +2 -2
- package/esm2015/lib/ui/radiobutton/radiobutton.component.js +7 -3
- package/esm2015/lib/ui/tooltip-icon/tooltip-icon.component.js +5 -4
- package/esm2015/public-api.js +2 -1
- package/fesm2015/kms-ngx-ui-presentational.js +242 -123
- package/fesm2015/kms-ngx-ui-presentational.js.map +1 -1
- package/lib/directives/directives.module.d.ts +4 -2
- package/lib/directives/size.directive.d.ts +10 -0
- package/lib/parent-components/colorable.component.d.ts +10 -0
- package/lib/parent-components/form.component.d.ts +11 -5
- package/lib/services/viewport.service.d.ts +13 -4
- package/lib/ui/file-input/file-input.component.d.ts +2 -2
- package/lib/ui/icon/icon.component.d.ts +7 -1
- package/lib/ui/icon/iconSize.enum.d.ts +10 -0
- package/lib/ui/radiobutton/radiobutton.component.d.ts +2 -1
- package/lib/ui/tooltip-icon/tooltip-icon.component.d.ts +2 -2
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/src/lib/ui/back-to-top/back-to-top.component.scss +2 -3
- package/src/lib/ui/icon/icon.component.scss +2 -36
- package/src/styles/animations.scss +47 -0
- 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('
|
|
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', '
|
|
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.
|
|
5
|
-
})(this, (function (exports, i0, i2, i1, i1$1, i2$2, i2$1, i1$2, i5, i2$3,
|
|
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
|
|
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 () {
|
|
@@ -532,15 +532,53 @@
|
|
|
532
532
|
/*!
|
|
533
533
|
* @copyright FLYACTS GmbH 2019
|
|
534
534
|
*/
|
|
535
|
-
var
|
|
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
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
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
|
|
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
|
-
|
|
560
|
-
|
|
561
|
-
|
|
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
|
|
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
|
-
|
|
592
|
-
|
|
593
|
-
|
|
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: {
|
|
607
|
-
type: i0.Output
|
|
608
|
-
}], disabled: [{
|
|
658
|
+
}], ctorParameters: function () { return [{ type: i1__namespace$1.FormBuilder }]; }, propDecorators: { disabled: [{
|
|
609
659
|
type: i0.Input
|
|
660
|
+
}], showRequired: [{
|
|
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
|
-
|
|
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\">\r\n <span class=\"icon {{ iconSize }}\" [ngClass]=\"iconClass\" [ngStyle]=\"iconStyle\">\r\n <svg>\r\n <use\r\n [attr.xlink:href]=\"\r\n 'assets/sprite.svg?Version=' + Version + '#' + iconToShow\r\n \"\r\n ></use>\r\n </svg>\r\n </span>\r\n</ng-container>\r\n<ng-container *ngIf=\"icon !== 'none' && dontUseSprite === true\">\r\n <object\r\n [data]=\"\r\n sanitizer.bypassSecurityTrustResourceUrl('assets/icons/' + icon + '')\r\n \"\r\n type=\"image/svg+xml\"\r\n class=\"icon {{ iconSize }}\"\r\n [ngClass]=\"iconClass\"\r\n [ngStyle]=\"iconStyle\"\r\n ></object>\r\n</ng-container>\r\n", styles: [""], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
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.
|
|
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\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\" [
|
|
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\"\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
|
|
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
|
}] } });
|
|
@@ -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.
|
|
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\"> \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\" [
|
|
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: [{
|
|
@@ -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\"\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'\"
|
|
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\">\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":
|
|
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:
|
|
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:
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
2192
|
-
|
|
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 (
|
|
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 (
|
|
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
|
-
|
|
2305
|
+
offsetLeft += elTemp.offsetLeft;
|
|
2236
2306
|
offsetTop += elTemp.offsetTop;
|
|
2237
2307
|
elTemp = elTemp.parentElement ? elTemp.parentElement : null;
|
|
2238
2308
|
}
|
|
2239
|
-
window.scrollTo({ left:
|
|
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 (
|
|
2317
|
+
if (this.isBrowser) {
|
|
2248
2318
|
window.scrollTo({ left: 0, top: top, behavior: 'smooth' });
|
|
2249
2319
|
}
|
|
2250
2320
|
};
|
|
2251
|
-
ViewportService.prototype.
|
|
2252
|
-
if (
|
|
2253
|
-
window.
|
|
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.
|
|
2322
|
-
if (
|
|
2323
|
-
|
|
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
|
|
|
@@ -2460,7 +2552,7 @@
|
|
|
2460
2552
|
return MapComponent;
|
|
2461
2553
|
}());
|
|
2462
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 });
|
|
2463
|
-
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
|
|
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"] }] });
|
|
2464
2556
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MapComponent, decorators: [{
|
|
2465
2557
|
type: i0.Component,
|
|
2466
2558
|
args: [{
|
|
@@ -2515,7 +2607,7 @@
|
|
|
2515
2607
|
useExisting: i0.forwardRef(function () { return SalutationDropdownComponent; }),
|
|
2516
2608
|
multi: true,
|
|
2517
2609
|
},
|
|
2518
|
-
], 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":
|
|
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 } });
|
|
2519
2611
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SalutationDropdownComponent, decorators: [{
|
|
2520
2612
|
type: i0.Component,
|
|
2521
2613
|
args: [{
|
|
@@ -2552,6 +2644,32 @@
|
|
|
2552
2644
|
type: i0.Input
|
|
2553
2645
|
}] } });
|
|
2554
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
|
+
|
|
2555
2673
|
var SalutationRadiogroupComponent = /** @class */ (function (_super) {
|
|
2556
2674
|
__extends(SalutationRadiogroupComponent, _super);
|
|
2557
2675
|
function SalutationRadiogroupComponent(formBuilder, renderer) {
|
|
@@ -2584,7 +2702,7 @@
|
|
|
2584
2702
|
useExisting: i0.forwardRef(function () { return SalutationRadiogroupComponent; }),
|
|
2585
2703
|
multi: true,
|
|
2586
2704
|
},
|
|
2587
|
-
], 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":
|
|
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 } });
|
|
2588
2706
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SalutationRadiogroupComponent, decorators: [{
|
|
2589
2707
|
type: i0.Component,
|
|
2590
2708
|
args: [{
|
|
@@ -2633,7 +2751,7 @@
|
|
|
2633
2751
|
return BackToTopComponent;
|
|
2634
2752
|
}());
|
|
2635
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 });
|
|
2636
|
-
BackToTopComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: BackToTopComponent, selector: "kms-back-to-top", host: { listeners: { "window:scroll": "onWindowScroll()" } }, ngImport: i0__namespace, template: "<div class=\"scrollToTop\"\r\n [ngClass]=\"{'show': windowScrolled}\"\r\n (click)=\"scrollToTop()\">\r\n <div class=\"scrollToTop-inner\">\r\n <kms-icon icon=\"floating_button_clear\" iconClass=\"color-white\"></kms-icon>\r\n </div>\r\n</div>", components: [{ type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "iconStyle", "iconSize", "dontUseSprite"] }], directives: [{ type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
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"] }] });
|
|
2637
2755
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BackToTopComponent, decorators: [{
|
|
2638
2756
|
type: i0.Component,
|
|
2639
2757
|
args: [{
|
|
@@ -3258,8 +3376,8 @@
|
|
|
3258
3376
|
*/
|
|
3259
3377
|
ImageSliderComponent.prototype.drop = function (event) {
|
|
3260
3378
|
if (this.slides && this.imagesTOSave) {
|
|
3261
|
-
i6.moveItemInArray(this.slides, event.previousIndex, event.currentIndex);
|
|
3262
|
-
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);
|
|
3263
3381
|
this.orderChanged.emit(this.imagesTOSave);
|
|
3264
3382
|
}
|
|
3265
3383
|
};
|
|
@@ -3272,7 +3390,7 @@
|
|
|
3272
3390
|
return ImageSliderComponent;
|
|
3273
3391
|
}());
|
|
3274
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 });
|
|
3275
|
-
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":
|
|
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 } });
|
|
3276
3394
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ImageSliderComponent, decorators: [{
|
|
3277
3395
|
type: i0.Component,
|
|
3278
3396
|
args: [{
|
|
@@ -3367,10 +3485,12 @@
|
|
|
3367
3485
|
DirectivesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DirectivesModule, declarations: [SwipeDirective,
|
|
3368
3486
|
MouseWheelDirective,
|
|
3369
3487
|
GetMaxHeightDirective,
|
|
3370
|
-
TooltipDirective
|
|
3488
|
+
TooltipDirective,
|
|
3489
|
+
SizeDirective], imports: [i2.CommonModule], exports: [SwipeDirective,
|
|
3371
3490
|
MouseWheelDirective,
|
|
3372
3491
|
GetMaxHeightDirective,
|
|
3373
|
-
TooltipDirective
|
|
3492
|
+
TooltipDirective,
|
|
3493
|
+
SizeDirective] });
|
|
3374
3494
|
DirectivesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DirectivesModule, imports: [[i2.CommonModule]] });
|
|
3375
3495
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DirectivesModule, decorators: [{
|
|
3376
3496
|
type: i0.NgModule,
|
|
@@ -3380,6 +3500,7 @@
|
|
|
3380
3500
|
MouseWheelDirective,
|
|
3381
3501
|
GetMaxHeightDirective,
|
|
3382
3502
|
TooltipDirective,
|
|
3503
|
+
SizeDirective,
|
|
3383
3504
|
],
|
|
3384
3505
|
imports: [i2.CommonModule],
|
|
3385
3506
|
exports: [
|
|
@@ -3387,6 +3508,7 @@
|
|
|
3387
3508
|
MouseWheelDirective,
|
|
3388
3509
|
GetMaxHeightDirective,
|
|
3389
3510
|
TooltipDirective,
|
|
3511
|
+
SizeDirective,
|
|
3390
3512
|
],
|
|
3391
3513
|
}]
|
|
3392
3514
|
}] });
|
|
@@ -3421,7 +3543,7 @@
|
|
|
3421
3543
|
TooltipComponent,
|
|
3422
3544
|
TooltipIconComponent,
|
|
3423
3545
|
YesNoRadiogroupComponent], imports: [i2.CommonModule,
|
|
3424
|
-
i6.DragDropModule,
|
|
3546
|
+
i6$1.DragDropModule,
|
|
3425
3547
|
i1$1.MatCheckboxModule,
|
|
3426
3548
|
i2$3.MatButtonModule,
|
|
3427
3549
|
i2$2.MatRadioModule,
|
|
@@ -3437,7 +3559,7 @@
|
|
|
3437
3559
|
i3.MatSelectModule,
|
|
3438
3560
|
i1$3.MatProgressSpinnerModule,
|
|
3439
3561
|
DirectivesModule,
|
|
3440
|
-
|
|
3562
|
+
i6.TranslateModule,
|
|
3441
3563
|
i2$6.NgxUsefulSwiperModule], exports: [ActionsParentComponent,
|
|
3442
3564
|
BackToTopComponent,
|
|
3443
3565
|
ButtonWithConfirmDialogComponent,
|
|
@@ -3466,7 +3588,7 @@
|
|
|
3466
3588
|
ViewportService
|
|
3467
3589
|
], imports: [[
|
|
3468
3590
|
i2.CommonModule,
|
|
3469
|
-
i6.DragDropModule,
|
|
3591
|
+
i6$1.DragDropModule,
|
|
3470
3592
|
i1$1.MatCheckboxModule,
|
|
3471
3593
|
i2$3.MatButtonModule,
|
|
3472
3594
|
i2$2.MatRadioModule,
|
|
@@ -3482,7 +3604,7 @@
|
|
|
3482
3604
|
i3.MatSelectModule,
|
|
3483
3605
|
i1$3.MatProgressSpinnerModule,
|
|
3484
3606
|
DirectivesModule,
|
|
3485
|
-
|
|
3607
|
+
i6.TranslateModule,
|
|
3486
3608
|
i2$6.NgxUsefulSwiperModule,
|
|
3487
3609
|
]] });
|
|
3488
3610
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KmsUiPresentationalModule, decorators: [{
|
|
@@ -3516,7 +3638,7 @@
|
|
|
3516
3638
|
],
|
|
3517
3639
|
imports: [
|
|
3518
3640
|
i2.CommonModule,
|
|
3519
|
-
i6.DragDropModule,
|
|
3641
|
+
i6$1.DragDropModule,
|
|
3520
3642
|
i1$1.MatCheckboxModule,
|
|
3521
3643
|
i2$3.MatButtonModule,
|
|
3522
3644
|
i2$2.MatRadioModule,
|
|
@@ -3532,7 +3654,7 @@
|
|
|
3532
3654
|
i3.MatSelectModule,
|
|
3533
3655
|
i1$3.MatProgressSpinnerModule,
|
|
3534
3656
|
DirectivesModule,
|
|
3535
|
-
|
|
3657
|
+
i6.TranslateModule,
|
|
3536
3658
|
i2$6.NgxUsefulSwiperModule,
|
|
3537
3659
|
],
|
|
3538
3660
|
exports: [
|
|
@@ -3611,6 +3733,7 @@
|
|
|
3611
3733
|
exports.SafeUrlPipe = SafeUrlPipe;
|
|
3612
3734
|
exports.SalutationDropdownComponent = SalutationDropdownComponent;
|
|
3613
3735
|
exports.SalutationRadiogroupComponent = SalutationRadiogroupComponent;
|
|
3736
|
+
exports.SizeDirective = SizeDirective;
|
|
3614
3737
|
exports.SwipeDirective = SwipeDirective;
|
|
3615
3738
|
exports.TimeInputComponent = TimeInputComponent;
|
|
3616
3739
|
exports.ToNumberPipe = ToNumberPipe;
|