@kms-ngx-ui/presentational 16.3.3 → 16.3.4
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/esm2022/lib/directives/directives.module.mjs +1 -6
- package/esm2022/lib/kms-ngx-ui-presentational.component.mjs +2 -3
- package/esm2022/lib/kms-ngx-ui-presentational.module.mjs +12 -10
- package/esm2022/lib/pipes/custom-pipes.module.mjs +11 -31
- package/esm2022/lib/pipes/trim.pipe.mjs +1 -1
- package/esm2022/lib/ui/generic-dialog/generic-dialog.component.mjs +6 -7
- package/esm2022/lib/ui/image-slider/image-slider.component.mjs +10 -167
- package/esm2022/lib/ui/tooltip/tooltip.component.mjs +16 -0
- package/esm2022/public-api.mjs +2 -6
- package/fesm2022/kms-ngx-ui-presentational.mjs +65 -353
- package/fesm2022/kms-ngx-ui-presentational.mjs.map +1 -1
- package/lib/directives/directives.module.d.ts +5 -6
- package/lib/kms-ngx-ui-presentational.module.d.ts +19 -19
- package/lib/pipes/custom-pipes.module.d.ts +6 -10
- package/lib/ui/generic-dialog/generic-dialog.component.d.ts +1 -1
- package/lib/ui/image-slider/image-slider.component.d.ts +3 -50
- package/lib/ui/tooltip/tooltip.component.d.ts +6 -0
- package/package.json +2 -3
- package/public-api.d.ts +1 -5
- package/src/lib/ui/image-slider/image-slider.component.scss +42 -209
- package/src/lib/ui/tooltip/tooltip.component.scss +27 -0
- package/esm2022/lib/directives/mousewheel.directive.mjs +0 -56
- package/esm2022/lib/pipes/decode-uri.pipe.mjs +0 -19
- package/esm2022/lib/pipes/encode-uri.pipe.mjs +0 -19
- package/esm2022/lib/pipes/safe-style.pipe.mjs +0 -23
- package/esm2022/lib/pipes/to-number.pipe.mjs +0 -23
- package/lib/directives/mousewheel.directive.d.ts +0 -15
- package/lib/pipes/decode-uri.pipe.d.ts +0 -10
- package/lib/pipes/encode-uri.pipe.d.ts +0 -10
- package/lib/pipes/safe-style.pipe.d.ts +0 -13
- package/lib/pipes/to-number.pipe.d.ts +0 -10
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i2 from '@angular/common';
|
|
2
2
|
import { CommonModule, CurrencyPipe, isPlatformBrowser, DOCUMENT } from '@angular/common';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { EventEmitter, Directive, Output, HostListener,
|
|
4
|
+
import { EventEmitter, Directive, Input, Output, HostListener, NgModule, Component, forwardRef, Pipe, ViewChild, VERSION, PLATFORM_ID, Injectable, Inject, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
|
5
5
|
import * as i1 from '@angular/forms';
|
|
6
6
|
import { NG_VALUE_ACCESSOR, UntypedFormControl, NG_VALIDATORS, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
7
7
|
import * as i2$1 from '@angular/material/checkbox';
|
|
@@ -28,72 +28,14 @@ import { GoogleMapsModule } from '@angular/google-maps';
|
|
|
28
28
|
import * as i3$3 from '@angular/material/select';
|
|
29
29
|
import { MatSelectModule } from '@angular/material/select';
|
|
30
30
|
import * as i4$2 from '@angular/material/core';
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import { MatDialogModule } from '@angular/material/dialog';
|
|
35
|
-
import * as i4$3 from '@angular/material/menu';
|
|
31
|
+
import { DragDropModule } from '@angular/cdk/drag-drop';
|
|
32
|
+
import * as i1$2 from '@angular/material/dialog';
|
|
33
|
+
import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
|
36
34
|
import { MatMenuModule } from '@angular/material/menu';
|
|
37
|
-
import * as i6 from 'ngx-useful-swiper';
|
|
38
|
-
import { NgxUsefulSwiperModule } from 'ngx-useful-swiper';
|
|
39
35
|
import { SubSink } from 'subsink';
|
|
40
|
-
import * as i1$
|
|
41
|
-
import { MAT_LEGACY_DIALOG_DATA } from '@angular/material/legacy-dialog';
|
|
36
|
+
import * as i1$3 from '@angular/material/legacy-dialog';
|
|
42
37
|
import { EnumValues } from 'enum-values/src/enumValues';
|
|
43
|
-
|
|
44
|
-
/*!
|
|
45
|
-
* @copyright FLYACTS GmbH 2019
|
|
46
|
-
*/
|
|
47
|
-
class MouseWheelDirective {
|
|
48
|
-
constructor() {
|
|
49
|
-
this.mouseWheelUp = new EventEmitter();
|
|
50
|
-
this.mouseWheelDown = new EventEmitter();
|
|
51
|
-
}
|
|
52
|
-
onMouseWheelChrome(event) {
|
|
53
|
-
this.mouseWheelFunc(event);
|
|
54
|
-
}
|
|
55
|
-
onMouseWheelFirefox(event) {
|
|
56
|
-
this.mouseWheelFunc(event);
|
|
57
|
-
}
|
|
58
|
-
onMouseWheelIE(event) {
|
|
59
|
-
this.mouseWheelFunc(event);
|
|
60
|
-
}
|
|
61
|
-
mouseWheelFunc(event) {
|
|
62
|
-
event = window.event || event; // old IE support
|
|
63
|
-
const delta = Math.max(-1, Math.min(1, (event.wheelDelta || -event.detail)));
|
|
64
|
-
if (delta > 0) {
|
|
65
|
-
this.mouseWheelUp.emit(event);
|
|
66
|
-
}
|
|
67
|
-
else if (delta < 0) {
|
|
68
|
-
this.mouseWheelDown.emit(event);
|
|
69
|
-
}
|
|
70
|
-
// for IE
|
|
71
|
-
event.returnValue = false;
|
|
72
|
-
// for Chrome and Firefox
|
|
73
|
-
if (event.preventDefault) {
|
|
74
|
-
event.preventDefault();
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MouseWheelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
78
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: MouseWheelDirective, selector: "[mouseWheel]", outputs: { mouseWheelUp: "mouseWheelUp", mouseWheelDown: "mouseWheelDown" }, host: { listeners: { "mousewheel": "onMouseWheelChrome($event)", "DOMMouseScroll": "onMouseWheelFirefox($event)", "onmousewheel": "onMouseWheelIE($event)" } }, ngImport: i0 }); }
|
|
79
|
-
}
|
|
80
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MouseWheelDirective, decorators: [{
|
|
81
|
-
type: Directive,
|
|
82
|
-
args: [{ selector: '[mouseWheel]' }]
|
|
83
|
-
}], propDecorators: { mouseWheelUp: [{
|
|
84
|
-
type: Output
|
|
85
|
-
}], mouseWheelDown: [{
|
|
86
|
-
type: Output
|
|
87
|
-
}], onMouseWheelChrome: [{
|
|
88
|
-
type: HostListener,
|
|
89
|
-
args: ['mousewheel', ['$event']]
|
|
90
|
-
}], onMouseWheelFirefox: [{
|
|
91
|
-
type: HostListener,
|
|
92
|
-
args: ['DOMMouseScroll', ['$event']]
|
|
93
|
-
}], onMouseWheelIE: [{
|
|
94
|
-
type: HostListener,
|
|
95
|
-
args: ['onmousewheel', ['$event']]
|
|
96
|
-
}] } });
|
|
38
|
+
import { register } from 'swiper/element/bundle';
|
|
97
39
|
|
|
98
40
|
/*!
|
|
99
41
|
* @copyright FLYACTS GmbH 2019
|
|
@@ -515,11 +457,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
515
457
|
class DirectivesModule {
|
|
516
458
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DirectivesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
517
459
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: DirectivesModule, declarations: [SwipeDirective,
|
|
518
|
-
MouseWheelDirective,
|
|
519
460
|
GetMaxHeightDirective,
|
|
520
461
|
TooltipDirective,
|
|
521
462
|
SizeDirective], imports: [CommonModule], exports: [SwipeDirective,
|
|
522
|
-
MouseWheelDirective,
|
|
523
463
|
GetMaxHeightDirective,
|
|
524
464
|
TooltipDirective,
|
|
525
465
|
SizeDirective] }); }
|
|
@@ -530,7 +470,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
530
470
|
args: [{
|
|
531
471
|
declarations: [
|
|
532
472
|
SwipeDirective,
|
|
533
|
-
MouseWheelDirective,
|
|
534
473
|
GetMaxHeightDirective,
|
|
535
474
|
TooltipDirective,
|
|
536
475
|
SizeDirective,
|
|
@@ -538,7 +477,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
538
477
|
imports: [CommonModule],
|
|
539
478
|
exports: [
|
|
540
479
|
SwipeDirective,
|
|
541
|
-
MouseWheelDirective,
|
|
542
480
|
GetMaxHeightDirective,
|
|
543
481
|
TooltipDirective,
|
|
544
482
|
SizeDirective,
|
|
@@ -548,8 +486,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
548
486
|
|
|
549
487
|
class KmsUiPresentationalComponent {
|
|
550
488
|
constructor() { }
|
|
551
|
-
ngOnInit() {
|
|
552
|
-
}
|
|
489
|
+
ngOnInit() { }
|
|
553
490
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: KmsUiPresentationalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
554
491
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: KmsUiPresentationalComponent, selector: "lib-kms-ngx-ui-presentational", ngImport: i0, template: `
|
|
555
492
|
<p>
|
|
@@ -708,40 +645,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
708
645
|
}]
|
|
709
646
|
}], ctorParameters: function () { return [{ type: i2.CurrencyPipe }]; } });
|
|
710
647
|
|
|
711
|
-
/*!
|
|
712
|
-
* @copyright FLYACTS GmbH 2019
|
|
713
|
-
*/
|
|
714
|
-
class DecodeUriPipe {
|
|
715
|
-
transform(value, _args) {
|
|
716
|
-
return decodeURI(value);
|
|
717
|
-
}
|
|
718
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DecodeUriPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
719
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: DecodeUriPipe, name: "kmsDecodeUri" }); }
|
|
720
|
-
}
|
|
721
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DecodeUriPipe, decorators: [{
|
|
722
|
-
type: Pipe,
|
|
723
|
-
args: [{
|
|
724
|
-
name: 'kmsDecodeUri',
|
|
725
|
-
}]
|
|
726
|
-
}] });
|
|
727
|
-
|
|
728
|
-
/*!
|
|
729
|
-
* @copyright FLYACTS GmbH 2019
|
|
730
|
-
*/
|
|
731
|
-
class EncodeUriPipe {
|
|
732
|
-
transform(value, _args) {
|
|
733
|
-
return encodeURI(value);
|
|
734
|
-
}
|
|
735
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EncodeUriPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
736
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: EncodeUriPipe, name: "kmsEncodeUri" }); }
|
|
737
|
-
}
|
|
738
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EncodeUriPipe, decorators: [{
|
|
739
|
-
type: Pipe,
|
|
740
|
-
args: [{
|
|
741
|
-
name: 'kmsEncodeUri',
|
|
742
|
-
}]
|
|
743
|
-
}] });
|
|
744
|
-
|
|
745
648
|
/*!
|
|
746
649
|
* @copyright FLYACTS GmbH 2019
|
|
747
650
|
*/
|
|
@@ -765,20 +668,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
765
668
|
/**
|
|
766
669
|
* @copyright KMS GmbH
|
|
767
670
|
*/
|
|
768
|
-
class
|
|
671
|
+
class SafeResourceUrlPipe {
|
|
769
672
|
constructor(sanitizer) {
|
|
770
673
|
this.sanitizer = sanitizer;
|
|
771
674
|
}
|
|
772
|
-
transform(
|
|
773
|
-
return this.sanitizer.
|
|
675
|
+
transform(url) {
|
|
676
|
+
return this.sanitizer.bypassSecurityTrustResourceUrl(url);
|
|
774
677
|
}
|
|
775
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
776
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
678
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SafeResourceUrlPipe, deps: [{ token: i1$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
679
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SafeResourceUrlPipe, name: "kmsSafeResourceSUrl" }); }
|
|
777
680
|
}
|
|
778
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
681
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SafeResourceUrlPipe, decorators: [{
|
|
779
682
|
type: Pipe,
|
|
780
683
|
args: [{
|
|
781
|
-
name: '
|
|
684
|
+
name: 'kmsSafeResourceSUrl',
|
|
782
685
|
}]
|
|
783
686
|
}], ctorParameters: function () { return [{ type: i1$1.DomSanitizer }]; } });
|
|
784
687
|
|
|
@@ -802,40 +705,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
802
705
|
}]
|
|
803
706
|
}], ctorParameters: function () { return [{ type: i1$1.DomSanitizer }]; } });
|
|
804
707
|
|
|
805
|
-
/**
|
|
806
|
-
* @copyright KMS GmbH
|
|
807
|
-
*/
|
|
808
|
-
class SafeResourceUrlPipe {
|
|
809
|
-
constructor(sanitizer) {
|
|
810
|
-
this.sanitizer = sanitizer;
|
|
811
|
-
}
|
|
812
|
-
transform(url) {
|
|
813
|
-
return this.sanitizer.bypassSecurityTrustResourceUrl(url);
|
|
814
|
-
}
|
|
815
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SafeResourceUrlPipe, deps: [{ token: i1$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
816
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SafeResourceUrlPipe, name: "kmsSafeResourceSUrl" }); }
|
|
817
|
-
}
|
|
818
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SafeResourceUrlPipe, decorators: [{
|
|
819
|
-
type: Pipe,
|
|
820
|
-
args: [{
|
|
821
|
-
name: 'kmsSafeResourceSUrl',
|
|
822
|
-
}]
|
|
823
|
-
}], ctorParameters: function () { return [{ type: i1$1.DomSanitizer }]; } });
|
|
824
|
-
|
|
825
|
-
class TypeofPipe {
|
|
826
|
-
transform(value) {
|
|
827
|
-
return typeof value;
|
|
828
|
-
}
|
|
829
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TypeofPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
830
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TypeofPipe, name: "kmsTypeOf" }); }
|
|
831
|
-
}
|
|
832
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TypeofPipe, decorators: [{
|
|
833
|
-
type: Pipe,
|
|
834
|
-
args: [{
|
|
835
|
-
name: 'kmsTypeOf',
|
|
836
|
-
}]
|
|
837
|
-
}] });
|
|
838
|
-
|
|
839
708
|
/**
|
|
840
709
|
* @copyright KMS GmbH
|
|
841
710
|
*/
|
|
@@ -854,24 +723,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
854
723
|
args: [{ name: 'kmsTrim' }]
|
|
855
724
|
}] });
|
|
856
725
|
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
class ToNumberPipe {
|
|
861
|
-
transform(items) {
|
|
862
|
-
if (!items) {
|
|
863
|
-
return 0;
|
|
864
|
-
}
|
|
865
|
-
return parseInt(items, 10);
|
|
726
|
+
class TypeofPipe {
|
|
727
|
+
transform(value) {
|
|
728
|
+
return typeof value;
|
|
866
729
|
}
|
|
867
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
868
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type:
|
|
730
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TypeofPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
731
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TypeofPipe, name: "kmsTypeOf" }); }
|
|
869
732
|
}
|
|
870
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
733
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TypeofPipe, decorators: [{
|
|
871
734
|
type: Pipe,
|
|
872
735
|
args: [{
|
|
873
|
-
name: '
|
|
874
|
-
pure: false
|
|
736
|
+
name: 'kmsTypeOf',
|
|
875
737
|
}]
|
|
876
738
|
}] });
|
|
877
739
|
|
|
@@ -882,23 +744,15 @@ class CustomPipesModule {
|
|
|
882
744
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CustomPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
883
745
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: CustomPipesModule, declarations: [IntegerCurrency,
|
|
884
746
|
SafeHtmlPipe,
|
|
885
|
-
SafeStylePipe,
|
|
886
|
-
SafeResourceUrlPipe,
|
|
887
747
|
SafeUrlPipe,
|
|
888
|
-
EncodeUriPipe,
|
|
889
|
-
DecodeUriPipe,
|
|
890
|
-
TypeofPipe,
|
|
891
748
|
TrimPipe,
|
|
892
|
-
ToNumberPipe], imports: [CommonModule], exports: [IntegerCurrency,
|
|
893
|
-
SafeHtmlPipe,
|
|
894
|
-
SafeStylePipe,
|
|
895
749
|
SafeResourceUrlPipe,
|
|
750
|
+
TypeofPipe], imports: [CommonModule], exports: [IntegerCurrency,
|
|
751
|
+
SafeHtmlPipe,
|
|
896
752
|
SafeUrlPipe,
|
|
897
|
-
EncodeUriPipe,
|
|
898
|
-
DecodeUriPipe,
|
|
899
|
-
TypeofPipe,
|
|
900
753
|
TrimPipe,
|
|
901
|
-
|
|
754
|
+
SafeResourceUrlPipe,
|
|
755
|
+
TypeofPipe] }); }
|
|
902
756
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CustomPipesModule, providers: [CurrencyPipe], imports: [CommonModule] }); }
|
|
903
757
|
}
|
|
904
758
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CustomPipesModule, decorators: [{
|
|
@@ -907,27 +761,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
907
761
|
declarations: [
|
|
908
762
|
IntegerCurrency,
|
|
909
763
|
SafeHtmlPipe,
|
|
910
|
-
SafeStylePipe,
|
|
911
|
-
SafeResourceUrlPipe,
|
|
912
764
|
SafeUrlPipe,
|
|
913
|
-
EncodeUriPipe,
|
|
914
|
-
DecodeUriPipe,
|
|
915
|
-
TypeofPipe,
|
|
916
765
|
TrimPipe,
|
|
917
|
-
|
|
766
|
+
SafeResourceUrlPipe,
|
|
767
|
+
TypeofPipe,
|
|
918
768
|
],
|
|
919
769
|
imports: [CommonModule],
|
|
920
770
|
exports: [
|
|
921
771
|
IntegerCurrency,
|
|
922
772
|
SafeHtmlPipe,
|
|
923
|
-
SafeStylePipe,
|
|
924
|
-
SafeResourceUrlPipe,
|
|
925
773
|
SafeUrlPipe,
|
|
926
|
-
EncodeUriPipe,
|
|
927
|
-
DecodeUriPipe,
|
|
928
|
-
TypeofPipe,
|
|
929
774
|
TrimPipe,
|
|
930
|
-
|
|
775
|
+
SafeResourceUrlPipe,
|
|
776
|
+
TypeofPipe,
|
|
931
777
|
],
|
|
932
778
|
providers: [CurrencyPipe],
|
|
933
779
|
}]
|
|
@@ -2556,15 +2402,15 @@ class GenericDialogComponent {
|
|
|
2556
2402
|
});
|
|
2557
2403
|
});
|
|
2558
2404
|
}
|
|
2559
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GenericDialogComponent, deps: [{ token: i1$2.
|
|
2560
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GenericDialogComponent, selector: "kms-generic-dialog", ngImport: i0, template: "<div mat-dialog-title class=\"mat-dialog-title\">\n <h3>{{ data.title }}</h3>\n</div>\n<div mat-dialog-content class=\"mat-dialog-content\">\n {{ data.message }}\n</div>\n<div mat-dialog-actions class=\"custom-dialog-actions\">\n <button\n mat-flat-button\n class=\"test_secondary_button\"\n color=\"accent\"\n (click)=\"onClickAction(ButtonResponseType.secondary)\"\n >\n {{ buttons.secondary }}\n </button>\n <button\n mat-flat-button\n class=\"test_primary_button\"\n color=\"primary\"\n (click)=\"onClickAction(ButtonResponseType.primary)\"\n >\n {{ buttons.primary }}\n </button>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: i2$3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type:
|
|
2405
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GenericDialogComponent, deps: [{ token: i1$2.MatDialogRef }, { token: i0.NgZone }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2406
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GenericDialogComponent, selector: "kms-generic-dialog", ngImport: i0, template: "<div mat-dialog-title class=\"mat-dialog-title\">\n <h3>{{ data.title }}</h3>\n</div>\n<div mat-dialog-content class=\"mat-dialog-content\">\n {{ data.message }}\n</div>\n<div mat-dialog-actions class=\"custom-dialog-actions\">\n <button\n mat-flat-button\n class=\"test_secondary_button\"\n color=\"accent\"\n (click)=\"onClickAction(ButtonResponseType.secondary)\"\n >\n {{ buttons.secondary }}\n </button>\n <button\n mat-flat-button\n class=\"test_primary_button\"\n color=\"primary\"\n (click)=\"onClickAction(ButtonResponseType.primary)\"\n >\n {{ buttons.primary }}\n </button>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: i2$3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i1$2.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$2.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i1$2.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }] }); }
|
|
2561
2407
|
}
|
|
2562
2408
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GenericDialogComponent, decorators: [{
|
|
2563
2409
|
type: Component,
|
|
2564
2410
|
args: [{ selector: 'kms-generic-dialog', 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" }]
|
|
2565
|
-
}], ctorParameters: function () { return [{ type: i1$2.
|
|
2411
|
+
}], ctorParameters: function () { return [{ type: i1$2.MatDialogRef }, { type: i0.NgZone }, { type: undefined, decorators: [{
|
|
2566
2412
|
type: Inject,
|
|
2567
|
-
args: [
|
|
2413
|
+
args: [MAT_DIALOG_DATA]
|
|
2568
2414
|
}] }]; } });
|
|
2569
2415
|
|
|
2570
2416
|
class ButtonWithConfirmDialogComponent {
|
|
@@ -2598,13 +2444,13 @@ class ButtonWithConfirmDialogComponent {
|
|
|
2598
2444
|
dialogRef.close();
|
|
2599
2445
|
});
|
|
2600
2446
|
}
|
|
2601
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonWithConfirmDialogComponent, deps: [{ token: i1$
|
|
2447
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonWithConfirmDialogComponent, deps: [{ token: i1$3.MatLegacyDialog }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2602
2448
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ButtonWithConfirmDialogComponent, selector: "kms-button-with-confirm-dialog", inputs: { disabled: "disabled", buttonText: "buttonText", confirmTitle: "confirmTitle", confirmTextYes: "confirmTextYes", confirmTextNo: "confirmTextNo" }, outputs: { onConfirmClosed: "onConfirmClosed" }, ngImport: i0, template: "<button\n type=\"button\"\n (click)=\"start()\"\n mat-stroked-button\n [disabled]=\"disabled\"\n>\n {{ buttonText }}\n</button>\n", styles: [""], dependencies: [{ kind: "component", type: i2$3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }] }); }
|
|
2603
2449
|
}
|
|
2604
2450
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonWithConfirmDialogComponent, decorators: [{
|
|
2605
2451
|
type: Component,
|
|
2606
2452
|
args: [{ selector: 'kms-button-with-confirm-dialog', template: "<button\n type=\"button\"\n (click)=\"start()\"\n mat-stroked-button\n [disabled]=\"disabled\"\n>\n {{ buttonText }}\n</button>\n" }]
|
|
2607
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
2453
|
+
}], ctorParameters: function () { return [{ type: i1$3.MatLegacyDialog }]; }, propDecorators: { disabled: [{
|
|
2608
2454
|
type: Input
|
|
2609
2455
|
}], buttonText: [{
|
|
2610
2456
|
type: Input
|
|
@@ -2773,162 +2619,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2773
2619
|
/*!
|
|
2774
2620
|
* @copyright FLYACTS GmbH 2019
|
|
2775
2621
|
*/
|
|
2622
|
+
register();
|
|
2776
2623
|
class ImageSliderComponent {
|
|
2777
|
-
constructor(
|
|
2778
|
-
this.sanitizer = sanitizer;
|
|
2624
|
+
constructor() {
|
|
2779
2625
|
this.editMode = false;
|
|
2780
2626
|
this.orderChanged = new EventEmitter();
|
|
2781
2627
|
this.deleteImageEvent = new EventEmitter();
|
|
2782
|
-
/**
|
|
2783
|
-
* Optional: Define Swipe behaviour configuration.
|
|
2784
|
-
* Default is 10% for the threshold definition until a swipe triggers next/previous slide.
|
|
2785
|
-
*/
|
|
2786
|
-
this.swipeConfig = {
|
|
2787
|
-
swipeThreshold: 5,
|
|
2788
|
-
swipeThresholdType: '%',
|
|
2789
|
-
swipeLocalPosition: true,
|
|
2790
|
-
};
|
|
2791
|
-
this.selectedSlide = 0;
|
|
2792
|
-
this.isLastClickedInSliderImage = false;
|
|
2793
|
-
this.config = {
|
|
2794
|
-
initialSlide: 0,
|
|
2795
|
-
slidesPerView: 3,
|
|
2796
|
-
navigation: {
|
|
2797
|
-
nextEl: '.swiper-button-next',
|
|
2798
|
-
prevEl: '.swiper-button-prev',
|
|
2799
|
-
},
|
|
2800
|
-
watchOverflow: true,
|
|
2801
|
-
autoHeight: true,
|
|
2802
|
-
allowTouchMove: false,
|
|
2803
|
-
spaceBetween: 30,
|
|
2804
|
-
on: {
|
|
2805
|
-
slideChange: () => {
|
|
2806
|
-
// do something
|
|
2807
|
-
},
|
|
2808
|
-
slideChangeTransitionEnd: () => {
|
|
2809
|
-
// do something
|
|
2810
|
-
},
|
|
2811
|
-
},
|
|
2812
|
-
};
|
|
2813
|
-
}
|
|
2814
|
-
ngOnInit() {
|
|
2815
|
-
if (this.slides) {
|
|
2816
|
-
// TODO use Pipe safeStyle
|
|
2817
|
-
this.selectedSlideImage = this.sanitizer.bypassSecurityTrustStyle('url(' + this.slides[0] + ')');
|
|
2818
|
-
}
|
|
2819
2628
|
}
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
if (event.key === 'ArrowRight') {
|
|
2823
|
-
this.nextSlide();
|
|
2824
|
-
}
|
|
2825
|
-
if (event.key === 'ArrowLeft') {
|
|
2826
|
-
this.previousSlide();
|
|
2827
|
-
}
|
|
2828
|
-
}
|
|
2829
|
-
/**
|
|
2830
|
-
* Slide follows the finger or mouse according to it´s move delta.
|
|
2831
|
-
* @param event SwipeMoveEvent
|
|
2832
|
-
*/
|
|
2833
|
-
handleMoveEvent(event) {
|
|
2834
|
-
// certain move threshold needs to be reached
|
|
2835
|
-
if (!event.thresholdWasReached) {
|
|
2836
|
-
return;
|
|
2837
|
-
}
|
|
2838
|
-
this.config.direction = event.direction === 1 ? 'horizontal' : 'vertical';
|
|
2839
|
-
}
|
|
2840
|
-
/**
|
|
2841
|
-
* Mouse up or slide container was left.
|
|
2842
|
-
* @param event SwipeReleaseEvent
|
|
2843
|
-
*/
|
|
2844
|
-
handleReleaseEvent(event) {
|
|
2845
|
-
if (!event.thresholdWasReached) {
|
|
2846
|
-
return;
|
|
2847
|
-
}
|
|
2848
|
-
// Just do if user clicked to slide on image and not on arrow or other element
|
|
2849
|
-
if (!this.isLastClickedInSliderImage) {
|
|
2850
|
-
return;
|
|
2851
|
-
}
|
|
2852
|
-
if (event.direction === 1) {
|
|
2853
|
-
this.previousSlide();
|
|
2854
|
-
}
|
|
2855
|
-
else {
|
|
2856
|
-
this.nextSlide();
|
|
2857
|
-
}
|
|
2858
|
-
}
|
|
2859
|
-
lastClicked() {
|
|
2860
|
-
this.isLastClickedInSliderImage = true;
|
|
2861
|
-
}
|
|
2862
|
-
noLastClicked() {
|
|
2863
|
-
this.isLastClickedInSliderImage = false;
|
|
2864
|
-
}
|
|
2865
|
-
scrollLeft() {
|
|
2866
|
-
this.previousSlide();
|
|
2867
|
-
}
|
|
2868
|
-
scrollRight() {
|
|
2869
|
-
this.nextSlide();
|
|
2870
|
-
}
|
|
2871
|
-
nextSlide() {
|
|
2872
|
-
if (this.slides && this.selectedSlide < this.slides.length - 1) {
|
|
2873
|
-
if (this.usefulSwiper) {
|
|
2874
|
-
this.usefulSwiper.swiper.slideNext();
|
|
2875
|
-
}
|
|
2876
|
-
this.openSlide(this.selectedSlide + 1);
|
|
2877
|
-
}
|
|
2878
|
-
this.isLastClickedInSliderImage = false;
|
|
2879
|
-
}
|
|
2880
|
-
previousSlide() {
|
|
2881
|
-
if (this.selectedSlide > 0) {
|
|
2882
|
-
if (this.usefulSwiper) {
|
|
2883
|
-
this.usefulSwiper.swiper.slidePrev();
|
|
2884
|
-
}
|
|
2885
|
-
this.openSlide(this.selectedSlide - 1);
|
|
2886
|
-
}
|
|
2887
|
-
this.isLastClickedInSliderImage = false;
|
|
2888
|
-
}
|
|
2889
|
-
slideTo(index) {
|
|
2890
|
-
if (this.usefulSwiper) {
|
|
2891
|
-
this.usefulSwiper.swiper.slideTo(index);
|
|
2892
|
-
}
|
|
2893
|
-
}
|
|
2894
|
-
openSlide(number) {
|
|
2895
|
-
if (this.slides && number < this.slides.length && number >= 0) {
|
|
2896
|
-
this.selectedSlide = number;
|
|
2897
|
-
// TODO use Pipe safeStyle
|
|
2898
|
-
this.selectedSlideImage = this.sanitizer.bypassSecurityTrustStyle('url(' + this.slides[number] || ')');
|
|
2899
|
-
}
|
|
2900
|
-
}
|
|
2901
|
-
ngOnChanges(_changes) {
|
|
2902
|
-
if (_changes.slides) {
|
|
2903
|
-
if (this.slides) {
|
|
2904
|
-
// TODO use Pipe safeStyle
|
|
2905
|
-
this.selectedSlideImage = this.sanitizer.bypassSecurityTrustStyle('url(' + this.slides[0] + ')');
|
|
2906
|
-
}
|
|
2907
|
-
}
|
|
2908
|
-
}
|
|
2909
|
-
/**
|
|
2910
|
-
* Re-order slides and notify parent component
|
|
2911
|
-
*/
|
|
2912
|
-
drop(event) {
|
|
2913
|
-
if (this.slides && this.imagesTOSave) {
|
|
2914
|
-
moveItemInArray(this.slides, event.previousIndex, event.currentIndex);
|
|
2915
|
-
moveItemInArray(this.imagesTOSave, event.previousIndex, event.currentIndex);
|
|
2916
|
-
this.orderChanged.emit(this.imagesTOSave);
|
|
2917
|
-
}
|
|
2918
|
-
}
|
|
2919
|
-
/**
|
|
2920
|
-
* Send image index to parent to perform delete
|
|
2921
|
-
*/
|
|
2922
|
-
deleteImage(index) {
|
|
2923
|
-
this.deleteImageEvent.emit(index);
|
|
2924
|
-
}
|
|
2925
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ImageSliderComponent, deps: [{ token: i1$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2926
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ImageSliderComponent, selector: "kms-image-slider", inputs: { slides: "slides", editMode: "editMode", imagesTOSave: "imagesTOSave", swipeConfig: "swipeConfig" }, outputs: { orderChanged: "orderChanged", deleteImageEvent: "deleteImageEvent" }, host: { listeners: { "document:keydown": "onKeydownHandler($event)" } }, viewQueries: [{ propertyName: "usefulSwiper", first: true, predicate: ["usefulSwiper"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"all-wrapper\">\n <!--(swiperight)=\"previousSlide()\" (swipeleft)=\"nextSlide()\"-->\n <div\n class=\"swiper-bigImage\"\n [style.backgroundImage]=\"selectedSlideImage\"\n [swipeDirective]=\"swipeConfig\"\n (moveEvent)=\"handleMoveEvent($event)\"\n (releaseEvent)=\"handleReleaseEvent($event)\"\n (mouseup)=\"lastClicked()\"\n (mouseout)=\"noLastClicked()\"\n ></div>\n\n <ng-content select=\"[description]\"></ng-content>\n\n <div class=\"swiper-holder\">\n <!--\n (mouseWheelUp)=\"scrollLeft($event)\"\n (mouseWheelDown)=\"scrollRight($event)\"\n -->\n\n <swiper [config]=\"config\" #usefulSwiper>\n <div\n class=\"swiper-wrapper\"\n cdkDropList\n (cdkDropListDropped)=\"drop($event)\"\n cdkDropListOrientation=\"horizontal\"\n >\n <div\n class=\"swiper-slide\"\n *ngFor=\"let slide of slides; let index = index\"\n cdkDrag\n [cdkDragDisabled]=\"!editMode\"\n >\n <button mat-menu-item *ngIf=\"editMode\" (click)=\"deleteImage(index)\">\n <kms-icon icon=\"trash\"></kms-icon>\n </button>\n <div\n class=\"img\"\n (click)=\"openSlide(index)\"\n [style.backgroundImage]=\"\n sanitizer.bypassSecurityTrustStyle('url(' + slide + ')')\n \"\n [ngClass]=\"{ active: index === selectedSlide }\"\n ></div>\n\n <div class=\"default-image\">\n {{ \"common.defaultImage\" | translate }}\n </div>\n </div>\n </div>\n </swiper>\n\n <button\n class=\"swiper-button-next\"\n (click)=\"nextSlide()\"\n *ngIf=\"slides?.length > 3\"\n > </button>\n <button\n class=\"swiper-button-prev\"\n (click)=\"previousSlide()\"\n *ngIf=\"slides?.length > 3\"\n > </button>\n\n <div\n class=\"swiper-button-next2\"\n *ngIf=\"slides?.length > 1\"\n (click)=\"nextSlide()\"\n >\n <kms-icon\n icon=\"chevron-right\"\n [iconClass]=\"{\n 'color-disabled': selectedSlide == slides?.length - 1,\n 'color-primary': true\n }\"\n ></kms-icon>\n </div>\n <div\n class=\"swiper-button-prev2\"\n *ngIf=\"slides?.length > 1\"\n (click)=\"previousSlide()\"\n >\n <kms-icon\n icon=\"chevron-left\"\n [iconClass]=\"{\n 'color-disabled': selectedSlide == 0,\n 'color-primary': true\n }\"\n ></kms-icon>\n </div>\n </div>\n\n <ng-content></ng-content>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$5.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i3$5.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "component", type: i4$3.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: SwipeDirective, selector: "[swipeDirective]", inputs: ["swipeDirective"], outputs: ["moveEvent", "releaseEvent"] }, { kind: "component", type: i6.SwiperComponent, selector: "swiper", inputs: ["initialize", "config"] }, { kind: "component", type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "iconStyle", "iconSize", "size", "dontUseSprite"] }, { kind: "pipe", type: i4$1.TranslatePipe, name: "translate" }] }); }
|
|
2629
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ImageSliderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2630
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ImageSliderComponent, selector: "kms-image-slider", inputs: { slides: "slides", editMode: "editMode", imagesTOSave: "imagesTOSave" }, outputs: { orderChanged: "orderChanged", deleteImageEvent: "deleteImageEvent" }, ngImport: i0, template: "<div class=\"image-slider\">\n <swiper-container\n class=\"image-slider__swiper-container\"\n thumbs-swiper=\".image-slider__swiper-preview-container\"\n space-between=\"10\"\n navigation=\"true\"\n >\n <swiper-slide *ngFor=\"let slide of slides; let index = index\">\n <img [src]=\"slide\" />\n </swiper-slide>\n </swiper-container>\n\n <ng-content select=\"[description]\"></ng-content>\n\n <swiper-container\n class=\"image-slider__swiper-preview-container\"\n space-between=\"25\"\n slides-per-view=\"4\"\n free-mode=\"true\"\n watch-slides-progress=\"true\"\n >\n <swiper-slide *ngFor=\"let slide of slides; let index = index\">\n <img [src]=\"slide\" />\n </swiper-slide>\n </swiper-container>\n <ng-content></ng-content>\n</div>\n", dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] }); }
|
|
2927
2631
|
}
|
|
2928
2632
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ImageSliderComponent, decorators: [{
|
|
2929
2633
|
type: Component,
|
|
2930
|
-
args: [{ selector: 'kms-image-slider', template: "<div class=\"
|
|
2931
|
-
}],
|
|
2634
|
+
args: [{ selector: 'kms-image-slider', template: "<div class=\"image-slider\">\n <swiper-container\n class=\"image-slider__swiper-container\"\n thumbs-swiper=\".image-slider__swiper-preview-container\"\n space-between=\"10\"\n navigation=\"true\"\n >\n <swiper-slide *ngFor=\"let slide of slides; let index = index\">\n <img [src]=\"slide\" />\n </swiper-slide>\n </swiper-container>\n\n <ng-content select=\"[description]\"></ng-content>\n\n <swiper-container\n class=\"image-slider__swiper-preview-container\"\n space-between=\"25\"\n slides-per-view=\"4\"\n free-mode=\"true\"\n watch-slides-progress=\"true\"\n >\n <swiper-slide *ngFor=\"let slide of slides; let index = index\">\n <img [src]=\"slide\" />\n </swiper-slide>\n </swiper-container>\n <ng-content></ng-content>\n</div>\n" }]
|
|
2635
|
+
}], propDecorators: { slides: [{
|
|
2932
2636
|
type: Input
|
|
2933
2637
|
}], editMode: [{
|
|
2934
2638
|
type: Input
|
|
@@ -2938,14 +2642,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2938
2642
|
type: Output
|
|
2939
2643
|
}], deleteImageEvent: [{
|
|
2940
2644
|
type: Output
|
|
2941
|
-
}], swipeConfig: [{
|
|
2942
|
-
type: Input
|
|
2943
|
-
}], usefulSwiper: [{
|
|
2944
|
-
type: ViewChild,
|
|
2945
|
-
args: ['usefulSwiper']
|
|
2946
|
-
}], onKeydownHandler: [{
|
|
2947
|
-
type: HostListener,
|
|
2948
|
-
args: ['document:keydown', ['$event']]
|
|
2949
2645
|
}] } });
|
|
2950
2646
|
|
|
2951
2647
|
class SalutationRadiogroupComponent extends FormControlParentComponent {
|
|
@@ -2988,6 +2684,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2988
2684
|
], 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>" }]
|
|
2989
2685
|
}], ctorParameters: function () { return [{ type: i1.UntypedFormBuilder }, { type: i0.Renderer2 }]; } });
|
|
2990
2686
|
|
|
2687
|
+
class TooltipComponent {
|
|
2688
|
+
constructor() {
|
|
2689
|
+
this.tooltipTitle = "";
|
|
2690
|
+
}
|
|
2691
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2692
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TooltipComponent, selector: "kms-tooltip-element", inputs: { tooltipTitle: "tooltipTitle" }, ngImport: i0, template: "<ng-content></ng-content>", styles: ["[kmsTooltip]{position:relative}\n"] }); }
|
|
2693
|
+
}
|
|
2694
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TooltipComponent, decorators: [{
|
|
2695
|
+
type: Component,
|
|
2696
|
+
args: [{ selector: 'kms-tooltip-element', template: "<ng-content></ng-content>", styles: ["[kmsTooltip]{position:relative}\n"] }]
|
|
2697
|
+
}], propDecorators: { tooltipTitle: [{
|
|
2698
|
+
type: Input
|
|
2699
|
+
}] } });
|
|
2700
|
+
|
|
2991
2701
|
class KmsUiPresentationalModule {
|
|
2992
2702
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: KmsUiPresentationalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2993
2703
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: KmsUiPresentationalModule, declarations: [ActionsParentComponent,
|
|
@@ -3012,7 +2722,8 @@ class KmsUiPresentationalModule {
|
|
|
3012
2722
|
SalutationRadiogroupComponent,
|
|
3013
2723
|
TimeInputComponent,
|
|
3014
2724
|
TooltipIconComponent,
|
|
3015
|
-
YesNoRadiogroupComponent
|
|
2725
|
+
YesNoRadiogroupComponent,
|
|
2726
|
+
TooltipComponent], imports: [CommonModule,
|
|
3016
2727
|
DragDropModule,
|
|
3017
2728
|
MatCheckboxModule,
|
|
3018
2729
|
MatButtonModule,
|
|
@@ -3029,8 +2740,7 @@ class KmsUiPresentationalModule {
|
|
|
3029
2740
|
MatSelectModule,
|
|
3030
2741
|
MatProgressSpinnerModule,
|
|
3031
2742
|
DirectivesModule,
|
|
3032
|
-
TranslateModule,
|
|
3033
|
-
NgxUsefulSwiperModule], exports: [ActionsParentComponent,
|
|
2743
|
+
TranslateModule], exports: [ActionsParentComponent,
|
|
3034
2744
|
BackToTopComponent,
|
|
3035
2745
|
ButtonWithConfirmDialogComponent,
|
|
3036
2746
|
CheckboxComponent,
|
|
@@ -3052,7 +2762,8 @@ class KmsUiPresentationalModule {
|
|
|
3052
2762
|
SalutationRadiogroupComponent,
|
|
3053
2763
|
TimeInputComponent,
|
|
3054
2764
|
TooltipIconComponent,
|
|
3055
|
-
YesNoRadiogroupComponent
|
|
2765
|
+
YesNoRadiogroupComponent,
|
|
2766
|
+
TooltipComponent] }); }
|
|
3056
2767
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: KmsUiPresentationalModule, providers: [ViewportService], imports: [CommonModule,
|
|
3057
2768
|
DragDropModule,
|
|
3058
2769
|
MatCheckboxModule,
|
|
@@ -3070,8 +2781,7 @@ class KmsUiPresentationalModule {
|
|
|
3070
2781
|
MatSelectModule,
|
|
3071
2782
|
MatProgressSpinnerModule,
|
|
3072
2783
|
DirectivesModule,
|
|
3073
|
-
TranslateModule
|
|
3074
|
-
NgxUsefulSwiperModule] }); }
|
|
2784
|
+
TranslateModule] }); }
|
|
3075
2785
|
}
|
|
3076
2786
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: KmsUiPresentationalModule, decorators: [{
|
|
3077
2787
|
type: NgModule,
|
|
@@ -3100,6 +2810,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
3100
2810
|
TimeInputComponent,
|
|
3101
2811
|
TooltipIconComponent,
|
|
3102
2812
|
YesNoRadiogroupComponent,
|
|
2813
|
+
TooltipComponent
|
|
3103
2814
|
],
|
|
3104
2815
|
imports: [
|
|
3105
2816
|
CommonModule,
|
|
@@ -3120,7 +2831,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
3120
2831
|
MatProgressSpinnerModule,
|
|
3121
2832
|
DirectivesModule,
|
|
3122
2833
|
TranslateModule,
|
|
3123
|
-
NgxUsefulSwiperModule,
|
|
3124
2834
|
],
|
|
3125
2835
|
exports: [
|
|
3126
2836
|
ActionsParentComponent,
|
|
@@ -3146,8 +2856,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
3146
2856
|
TimeInputComponent,
|
|
3147
2857
|
TooltipIconComponent,
|
|
3148
2858
|
YesNoRadiogroupComponent,
|
|
2859
|
+
TooltipComponent
|
|
3149
2860
|
],
|
|
3150
2861
|
providers: [ViewportService],
|
|
2862
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
3151
2863
|
}]
|
|
3152
2864
|
}] });
|
|
3153
2865
|
|
|
@@ -3171,5 +2883,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
3171
2883
|
* Generated bundle index. Do not edit.
|
|
3172
2884
|
*/
|
|
3173
2885
|
|
|
3174
|
-
export { ActionsParentComponent, BackToTopComponent, Breakpoint, ButtonWithConfirmDialogComponent, CheckboxComponent, ColorInputComponent, CustomPipesModule,
|
|
2886
|
+
export { ActionsParentComponent, BackToTopComponent, Breakpoint, ButtonWithConfirmDialogComponent, CheckboxComponent, ColorInputComponent, CustomPipesModule, DirectivesModule, DropdownFromDataComponent, EnumRadiogroupComponent, FileInputComponent, FlyoutComponent, FormParentComponent, GenericDialogComponent, GetMaxHeightDirective, IconComponent, IconSize, ImageSliderComponent, IntegerCurrency, KMSAccordionItemComponent, KmsUiPresentationalComponent, KmsUiPresentationalModule, KmsUiPresentationalService, LoaderComponent, MapComponent, Marker, MarkerLabel, MarkerOptions, RadioButtonComponent, SafeHtmlPipe, SafeResourceUrlPipe, SafeUrlPipe, SalutationDropdownComponent, SalutationEnum, SalutationRadiogroupComponent, SimpleBreakpoint, SizeDirective, SwipeDirective, TimeInputComponent, TooltipComponent, TooltipDirective, TooltipIconComponent, TrimPipe, TypeofPipe, ViewportService, WindowDimensions, YesNoRadiogroupComponent };
|
|
3175
2887
|
//# sourceMappingURL=kms-ngx-ui-presentational.mjs.map
|