@kms-ngx-ui/presentational 18.6.2 → 20.0.0-next-angular20.0
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/fesm2022/kms-ngx-ui-presentational.mjs +329 -315
- package/fesm2022/kms-ngx-ui-presentational.mjs.map +1 -1
- package/index.d.ts +1313 -3
- package/package.json +2 -4
- package/esm2022/assets/icons.json +0 -1
- package/esm2022/kms-ngx-ui-presentational.mjs +0 -5
- package/esm2022/lib/directives/directives.module.mjs +0 -40
- package/esm2022/lib/directives/sum-of-height.directive.mjs +0 -74
- package/esm2022/lib/directives/swipe.directive.mjs +0 -194
- package/esm2022/lib/directives/swipe.model.mjs +0 -5
- package/esm2022/lib/directives/time.directive.mjs +0 -46
- package/esm2022/lib/directives/tooltip.directive.mjs +0 -118
- package/esm2022/lib/enums/buttonAppearance.enum.mjs +0 -7
- package/esm2022/lib/enums/colors.enum.mjs +0 -19
- package/esm2022/lib/enums/iconSize.enum.mjs +0 -23
- package/esm2022/lib/enums/radioButtonSize.enum.mjs +0 -7
- package/esm2022/lib/kms-ngx-ui-presentational.component.mjs +0 -21
- package/esm2022/lib/kms-ngx-ui-presentational.module.mjs +0 -248
- package/esm2022/lib/kms-ngx-ui-presentational.service.mjs +0 -14
- package/esm2022/lib/models/address.model.mjs +0 -6
- package/esm2022/lib/models/button-response-types.enum.mjs +0 -9
- package/esm2022/lib/models/image-snippet.mjs +0 -18
- package/esm2022/lib/models/image-snippet.model.mjs +0 -18
- package/esm2022/lib/models/index.mjs +0 -6
- package/esm2022/lib/models/is-value.function.mjs +0 -17
- package/esm2022/lib/models/salutation.enum.mjs +0 -7
- package/esm2022/lib/models/text-value-pair.model.mjs +0 -21
- package/esm2022/lib/models/types/attached-file-dto.model.mjs +0 -6
- package/esm2022/lib/models/types/nullable.type.mjs +0 -5
- package/esm2022/lib/parent-components/form-control.component.mjs +0 -75
- package/esm2022/lib/parent-components/form.component.mjs +0 -84
- package/esm2022/lib/pipes/custom-pipes.module.mjs +0 -56
- package/esm2022/lib/pipes/integer-currency.pipe.mjs +0 -27
- package/esm2022/lib/pipes/safe-html.pipe.mjs +0 -23
- package/esm2022/lib/pipes/safe-resource-url.pipe.mjs +0 -23
- package/esm2022/lib/pipes/safe-url.pipe.mjs +0 -23
- package/esm2022/lib/pipes/sanitaze-null.pipe.mjs +0 -14
- package/esm2022/lib/pipes/trim.pipe.mjs +0 -20
- package/esm2022/lib/pipes/typeof.pipe.mjs +0 -16
- package/esm2022/lib/services/viewport.service.mjs +0 -355
- package/esm2022/lib/ui/atoms/back-to-top/back-to-top.component.mjs +0 -49
- package/esm2022/lib/ui/atoms/card/card.component.mjs +0 -16
- package/esm2022/lib/ui/atoms/checkbox/checkbox.component.mjs +0 -67
- package/esm2022/lib/ui/atoms/dropdown-from-data/dropdown-from-data.component.mjs +0 -202
- package/esm2022/lib/ui/atoms/icon/icon.component.mjs +0 -34
- package/esm2022/lib/ui/atoms/loader/loader.component.mjs +0 -18
- package/esm2022/lib/ui/atoms/map/map.component.mjs +0 -113
- package/esm2022/lib/ui/atoms/radiobutton/radiobutton.component.mjs +0 -70
- package/esm2022/lib/ui/atoms/slide-toggle/slide-toggle.component.mjs +0 -74
- package/esm2022/lib/ui/atoms/slider/slider.component.mjs +0 -74
- package/esm2022/lib/ui/atoms/slider/slider.model.mjs +0 -3
- package/esm2022/lib/ui/molecules/button/button.component.mjs +0 -51
- package/esm2022/lib/ui/molecules/color-input/color-input.component.mjs +0 -76
- package/esm2022/lib/ui/molecules/confirmation-dialog/confirmation-dialog.component.mjs +0 -50
- package/esm2022/lib/ui/molecules/confirmation-dialog/dialog-data.enum.mjs +0 -6
- package/esm2022/lib/ui/molecules/confirmation-dialog/dialog-data.model.mjs +0 -2
- package/esm2022/lib/ui/molecules/enum-radiogroup/enum-radiogroup.component.mjs +0 -53
- package/esm2022/lib/ui/molecules/file-input/file-input.component.mjs +0 -231
- package/esm2022/lib/ui/molecules/flyout/flyout.component.mjs +0 -119
- package/esm2022/lib/ui/molecules/image-slider/image-slider.component.mjs +0 -91
- package/esm2022/lib/ui/molecules/kms-accordion-item/kms-accordion-item.component.mjs +0 -42
- package/esm2022/lib/ui/molecules/numeric-input/numeric-input.component.mjs +0 -83
- package/esm2022/lib/ui/molecules/password/password.component.mjs +0 -146
- package/esm2022/lib/ui/molecules/radiogroup/radiogroup.component.mjs +0 -70
- package/esm2022/lib/ui/molecules/salutation-dropdown/salutation-dropdown.component.mjs +0 -55
- package/esm2022/lib/ui/molecules/salutation-radiogroup/salutation-radiogroup.component.mjs +0 -49
- package/esm2022/lib/ui/molecules/time-input/time-input.component.mjs +0 -118
- package/esm2022/lib/ui/molecules/tooltip-icon/tooltip-icon.component.mjs +0 -28
- package/esm2022/lib/ui/molecules/yes-no-radiogroup/yes-no-radiogroup.component.mjs +0 -82
- package/esm2022/public-api.mjs +0 -67
- package/lib/directives/directives.module.d.ts +0 -11
- package/lib/directives/sum-of-height.directive.d.ts +0 -31
- package/lib/directives/swipe.directive.d.ts +0 -45
- package/lib/directives/swipe.model.d.ts +0 -49
- package/lib/directives/time.directive.d.ts +0 -11
- package/lib/directives/tooltip.directive.d.ts +0 -25
- package/lib/enums/buttonAppearance.enum.d.ts +0 -5
- package/lib/enums/colors.enum.d.ts +0 -16
- package/lib/enums/iconSize.enum.d.ts +0 -13
- package/lib/enums/radioButtonSize.enum.d.ts +0 -5
- package/lib/kms-ngx-ui-presentational.component.d.ts +0 -8
- package/lib/kms-ngx-ui-presentational.module.d.ts +0 -56
- package/lib/kms-ngx-ui-presentational.service.d.ts +0 -6
- package/lib/models/address.model.d.ts +0 -14
- package/lib/models/button-response-types.enum.d.ts +0 -7
- package/lib/models/image-snippet.d.ts +0 -15
- package/lib/models/image-snippet.model.d.ts +0 -15
- package/lib/models/index.d.ts +0 -5
- package/lib/models/is-value.function.d.ts +0 -9
- package/lib/models/salutation.enum.d.ts +0 -5
- package/lib/models/text-value-pair.model.d.ts +0 -19
- package/lib/models/types/attached-file-dto.model.d.ts +0 -11
- package/lib/models/types/nullable.type.d.ts +0 -4
- package/lib/parent-components/form-control.component.d.ts +0 -27
- package/lib/parent-components/form.component.d.ts +0 -34
- package/lib/pipes/custom-pipes.module.d.ts +0 -14
- package/lib/pipes/integer-currency.pipe.d.ts +0 -13
- package/lib/pipes/safe-html.pipe.d.ts +0 -13
- package/lib/pipes/safe-resource-url.pipe.d.ts +0 -13
- package/lib/pipes/safe-url.pipe.d.ts +0 -13
- package/lib/pipes/sanitaze-null.pipe.d.ts +0 -7
- package/lib/pipes/trim.pipe.d.ts +0 -10
- package/lib/pipes/typeof.pipe.d.ts +0 -7
- package/lib/services/viewport.service.d.ts +0 -149
- package/lib/ui/atoms/back-to-top/back-to-top.component.d.ts +0 -14
- package/lib/ui/atoms/card/card.component.d.ts +0 -7
- package/lib/ui/atoms/checkbox/checkbox.component.d.ts +0 -25
- package/lib/ui/atoms/dropdown-from-data/dropdown-from-data.component.d.ts +0 -66
- package/lib/ui/atoms/icon/icon.component.d.ts +0 -27
- package/lib/ui/atoms/loader/loader.component.d.ts +0 -6
- package/lib/ui/atoms/map/map.component.d.ts +0 -66
- package/lib/ui/atoms/radiobutton/radiobutton.component.d.ts +0 -25
- package/lib/ui/atoms/slide-toggle/slide-toggle.component.d.ts +0 -26
- package/lib/ui/atoms/slider/slider.component.d.ts +0 -27
- package/lib/ui/atoms/slider/slider.model.d.ts +0 -2
- package/lib/ui/molecules/button/button.component.d.ts +0 -25
- package/lib/ui/molecules/color-input/color-input.component.d.ts +0 -19
- package/lib/ui/molecules/confirmation-dialog/confirmation-dialog.component.d.ts +0 -25
- package/lib/ui/molecules/confirmation-dialog/dialog-data.enum.d.ts +0 -4
- package/lib/ui/molecules/confirmation-dialog/dialog-data.model.d.ts +0 -14
- package/lib/ui/molecules/enum-radiogroup/enum-radiogroup.component.d.ts +0 -17
- package/lib/ui/molecules/file-input/file-input.component.d.ts +0 -89
- package/lib/ui/molecules/flyout/flyout.component.d.ts +0 -32
- package/lib/ui/molecules/image-slider/image-slider.component.d.ts +0 -24
- package/lib/ui/molecules/kms-accordion-item/kms-accordion-item.component.d.ts +0 -24
- package/lib/ui/molecules/numeric-input/numeric-input.component.d.ts +0 -30
- package/lib/ui/molecules/password/password.component.d.ts +0 -43
- package/lib/ui/molecules/radiogroup/radiogroup.component.d.ts +0 -26
- package/lib/ui/molecules/salutation-dropdown/salutation-dropdown.component.d.ts +0 -17
- package/lib/ui/molecules/salutation-radiogroup/salutation-radiogroup.component.d.ts +0 -15
- package/lib/ui/molecules/time-input/time-input.component.d.ts +0 -30
- package/lib/ui/molecules/tooltip-icon/tooltip-icon.component.d.ts +0 -15
- package/lib/ui/molecules/yes-no-radiogroup/yes-no-radiogroup.component.d.ts +0 -27
- package/public-api.d.ts +0 -55
|
@@ -1,51 +1,50 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, Pipe, NgModule, EventEmitter,
|
|
2
|
+
import { Component, Pipe, NgModule, EventEmitter, Output, Input, Directive, HostListener, PLATFORM_ID, DOCUMENT, Inject, Injectable, input, VERSION, forwardRef, ViewChild, HostBinding, output, computed, model, signal, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
|
-
import { CommonModule, CurrencyPipe, isPlatformBrowser
|
|
5
|
-
import * as
|
|
6
|
-
import { NG_VALUE_ACCESSOR, UntypedFormControl, NG_VALIDATORS, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
4
|
+
import { CommonModule, CurrencyPipe, isPlatformBrowser } from '@angular/common';
|
|
5
|
+
import * as i2 from '@angular/forms';
|
|
6
|
+
import { NG_VALUE_ACCESSOR, UntypedFormGroup, UntypedFormControl, NG_VALIDATORS, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
7
7
|
import * as i1$2 from '@angular/material/checkbox';
|
|
8
8
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
9
|
-
import * as
|
|
9
|
+
import * as i1$6 from '@angular/material/radio';
|
|
10
10
|
import { MatRadioModule } from '@angular/material/radio';
|
|
11
|
-
import * as
|
|
11
|
+
import * as i3$1 from '@angular/material/slide-toggle';
|
|
12
12
|
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
13
13
|
import * as i1$1 from '@angular/platform-browser';
|
|
14
|
-
import * as i1$
|
|
14
|
+
import * as i1$7 from '@angular-slider/ngx-slider';
|
|
15
15
|
import { NgxSliderModule } from '@angular-slider/ngx-slider';
|
|
16
16
|
export { ChangeContext as KmsSliderChange, Options as KmsSliderOptions } from '@angular-slider/ngx-slider';
|
|
17
|
-
import * as
|
|
17
|
+
import * as i1$9 from '@angular/cdk/drag-drop';
|
|
18
18
|
import { moveItemInArray, DragDropModule } from '@angular/cdk/drag-drop';
|
|
19
|
-
import * as
|
|
19
|
+
import * as i1$5 from '@angular/google-maps';
|
|
20
20
|
import { GoogleMapsModule } from '@angular/google-maps';
|
|
21
|
-
import * as
|
|
21
|
+
import * as i5 from '@angular/material/autocomplete';
|
|
22
22
|
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
23
|
-
import * as i2$
|
|
23
|
+
import * as i2$1 from '@angular/material/button';
|
|
24
24
|
import { MatButtonModule } from '@angular/material/button';
|
|
25
|
-
import * as i4$
|
|
25
|
+
import * as i4$1 from '@angular/material/card';
|
|
26
26
|
import { MatCardModule } from '@angular/material/card';
|
|
27
|
-
import * as i1$
|
|
27
|
+
import * as i1$8 from '@angular/material/dialog';
|
|
28
28
|
import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
|
29
|
-
import * as i3$
|
|
29
|
+
import * as i3$2 from '@angular/material/expansion';
|
|
30
30
|
import { MatExpansionModule } from '@angular/material/expansion';
|
|
31
|
-
import * as
|
|
31
|
+
import * as i1$3 from '@angular/material/form-field';
|
|
32
32
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
33
|
-
import * as
|
|
33
|
+
import * as i2$2 from '@angular/material/input';
|
|
34
34
|
import { MatInputModule } from '@angular/material/input';
|
|
35
|
-
import * as i3$
|
|
35
|
+
import * as i3$3 from '@angular/material/list';
|
|
36
36
|
import { MatListModule } from '@angular/material/list';
|
|
37
|
-
import * as
|
|
37
|
+
import * as i2$3 from '@angular/material/menu';
|
|
38
38
|
import { MatMenuModule } from '@angular/material/menu';
|
|
39
|
-
import * as
|
|
39
|
+
import * as i1$4 from '@angular/material/progress-spinner';
|
|
40
40
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
41
|
-
import * as
|
|
41
|
+
import * as i3 from '@angular/material/select';
|
|
42
42
|
import { MatSelectModule } from '@angular/material/select';
|
|
43
43
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
44
|
-
import * as
|
|
44
|
+
import * as i4 from '@ngx-translate/core';
|
|
45
45
|
import { TranslateModule } from '@ngx-translate/core';
|
|
46
46
|
import { autoUpdate, computePosition, shift, offset, arrow, flip } from '@floating-ui/dom';
|
|
47
47
|
import { Subject } from 'rxjs';
|
|
48
|
-
import * as i4 from '@angular/material/core';
|
|
49
48
|
import { trigger, state, style } from '@angular/animations';
|
|
50
49
|
import { register } from 'swiper/element/bundle';
|
|
51
50
|
import { isEmpty } from 'lodash';
|
|
@@ -54,22 +53,25 @@ import moment from 'moment';
|
|
|
54
53
|
class KmsUiPresentationalComponent {
|
|
55
54
|
constructor() { }
|
|
56
55
|
ngOnInit() { }
|
|
57
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
58
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
56
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: KmsUiPresentationalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
57
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: KmsUiPresentationalComponent, isStandalone: false, selector: "lib-kms-ngx-ui-presentational", ngImport: i0, template: `
|
|
59
58
|
<p>
|
|
60
59
|
kms-ngx-ui-presentational works!
|
|
61
60
|
</p>
|
|
62
61
|
`, isInline: true }); }
|
|
63
62
|
}
|
|
64
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
63
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: KmsUiPresentationalComponent, decorators: [{
|
|
65
64
|
type: Component,
|
|
66
|
-
args: [{ selector: 'lib-kms-ngx-ui-presentational', template: `
|
|
65
|
+
args: [{ standalone: false, selector: 'lib-kms-ngx-ui-presentational', template: `
|
|
67
66
|
<p>
|
|
68
67
|
kms-ngx-ui-presentational works!
|
|
69
68
|
</p>
|
|
70
69
|
` }]
|
|
71
70
|
}], ctorParameters: () => [] });
|
|
72
71
|
|
|
72
|
+
/**
|
|
73
|
+
* @copyright KMS GmbH
|
|
74
|
+
*/
|
|
73
75
|
class IntegerCurrency {
|
|
74
76
|
constructor(cp) {
|
|
75
77
|
this.cp = cp;
|
|
@@ -81,16 +83,17 @@ class IntegerCurrency {
|
|
|
81
83
|
return convertedValue;
|
|
82
84
|
}
|
|
83
85
|
else {
|
|
84
|
-
throw new Error(
|
|
86
|
+
throw new Error('No value provided');
|
|
85
87
|
}
|
|
86
88
|
}
|
|
87
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
88
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
89
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: IntegerCurrency, deps: [{ token: i1.CurrencyPipe }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
90
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: IntegerCurrency, isStandalone: false, name: "kmsIntegerCurrency" }); }
|
|
89
91
|
}
|
|
90
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
92
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: IntegerCurrency, decorators: [{
|
|
91
93
|
type: Pipe,
|
|
92
94
|
args: [{
|
|
93
95
|
name: 'kmsIntegerCurrency',
|
|
96
|
+
standalone: false,
|
|
94
97
|
}]
|
|
95
98
|
}], ctorParameters: () => [{ type: i1.CurrencyPipe }] });
|
|
96
99
|
|
|
@@ -104,13 +107,14 @@ class SafeHtmlPipe {
|
|
|
104
107
|
transform(html) {
|
|
105
108
|
return this.sanitizer.bypassSecurityTrustHtml(html);
|
|
106
109
|
}
|
|
107
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
108
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
110
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SafeHtmlPipe, deps: [{ token: i1$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
111
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: SafeHtmlPipe, isStandalone: false, name: "kmsSafeHtml" }); }
|
|
109
112
|
}
|
|
110
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
113
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SafeHtmlPipe, decorators: [{
|
|
111
114
|
type: Pipe,
|
|
112
115
|
args: [{
|
|
113
116
|
name: 'kmsSafeHtml',
|
|
117
|
+
standalone: false,
|
|
114
118
|
}]
|
|
115
119
|
}], ctorParameters: () => [{ type: i1$1.DomSanitizer }] });
|
|
116
120
|
|
|
@@ -124,13 +128,14 @@ class SafeResourceUrlPipe {
|
|
|
124
128
|
transform(url) {
|
|
125
129
|
return this.sanitizer.bypassSecurityTrustResourceUrl(url);
|
|
126
130
|
}
|
|
127
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
128
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
131
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SafeResourceUrlPipe, deps: [{ token: i1$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
132
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: SafeResourceUrlPipe, isStandalone: false, name: "kmsSafeResourceSUrl" }); }
|
|
129
133
|
}
|
|
130
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
134
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SafeResourceUrlPipe, decorators: [{
|
|
131
135
|
type: Pipe,
|
|
132
136
|
args: [{
|
|
133
137
|
name: 'kmsSafeResourceSUrl',
|
|
138
|
+
standalone: false,
|
|
134
139
|
}]
|
|
135
140
|
}], ctorParameters: () => [{ type: i1$1.DomSanitizer }] });
|
|
136
141
|
|
|
@@ -144,13 +149,14 @@ class SafeUrlPipe {
|
|
|
144
149
|
transform(url) {
|
|
145
150
|
return this.sanitizer.bypassSecurityTrustUrl(url);
|
|
146
151
|
}
|
|
147
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
148
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
152
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SafeUrlPipe, deps: [{ token: i1$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
153
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: SafeUrlPipe, isStandalone: false, name: "kmsSafeSUrl" }); }
|
|
149
154
|
}
|
|
150
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
155
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SafeUrlPipe, decorators: [{
|
|
151
156
|
type: Pipe,
|
|
152
157
|
args: [{
|
|
153
158
|
name: 'kmsSafeSUrl',
|
|
159
|
+
standalone: false,
|
|
154
160
|
}]
|
|
155
161
|
}], ctorParameters: () => [{ type: i1$1.DomSanitizer }] });
|
|
156
162
|
|
|
@@ -158,12 +164,12 @@ class SanitizeNullPipe {
|
|
|
158
164
|
transform(value) {
|
|
159
165
|
return value === 'null' || value == null ? '' : value;
|
|
160
166
|
}
|
|
161
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
162
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
167
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SanitizeNullPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
168
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: SanitizeNullPipe, isStandalone: false, name: "sanitizeNull" }); }
|
|
163
169
|
}
|
|
164
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
170
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SanitizeNullPipe, decorators: [{
|
|
165
171
|
type: Pipe,
|
|
166
|
-
args: [{ name: 'sanitizeNull' }]
|
|
172
|
+
args: [{ name: 'sanitizeNull', standalone: false }]
|
|
167
173
|
}] });
|
|
168
174
|
|
|
169
175
|
/**
|
|
@@ -176,25 +182,26 @@ class TrimPipe {
|
|
|
176
182
|
}
|
|
177
183
|
return value.trim();
|
|
178
184
|
}
|
|
179
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
180
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
185
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: TrimPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
186
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: TrimPipe, isStandalone: false, name: "kmsTrim" }); }
|
|
181
187
|
}
|
|
182
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
188
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: TrimPipe, decorators: [{
|
|
183
189
|
type: Pipe,
|
|
184
|
-
args: [{ name: 'kmsTrim' }]
|
|
190
|
+
args: [{ name: 'kmsTrim', standalone: false }]
|
|
185
191
|
}] });
|
|
186
192
|
|
|
187
193
|
class TypeofPipe {
|
|
188
194
|
transform(value) {
|
|
189
195
|
return typeof value;
|
|
190
196
|
}
|
|
191
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
192
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
197
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: TypeofPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
198
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: TypeofPipe, isStandalone: false, name: "kmsTypeOf" }); }
|
|
193
199
|
}
|
|
194
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
200
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: TypeofPipe, decorators: [{
|
|
195
201
|
type: Pipe,
|
|
196
202
|
args: [{
|
|
197
203
|
name: 'kmsTypeOf',
|
|
204
|
+
standalone: false,
|
|
198
205
|
}]
|
|
199
206
|
}] });
|
|
200
207
|
|
|
@@ -202,8 +209,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
202
209
|
* @copyright KMS GmbH
|
|
203
210
|
*/
|
|
204
211
|
class CustomPipesModule {
|
|
205
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
206
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
212
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CustomPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
213
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: CustomPipesModule, declarations: [IntegerCurrency,
|
|
207
214
|
SafeHtmlPipe,
|
|
208
215
|
SanitizeNullPipe,
|
|
209
216
|
SafeUrlPipe,
|
|
@@ -216,9 +223,9 @@ class CustomPipesModule {
|
|
|
216
223
|
TrimPipe,
|
|
217
224
|
SafeResourceUrlPipe,
|
|
218
225
|
TypeofPipe] }); }
|
|
219
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
226
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CustomPipesModule, providers: [CurrencyPipe], imports: [CommonModule] }); }
|
|
220
227
|
}
|
|
221
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
228
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CustomPipesModule, decorators: [{
|
|
222
229
|
type: NgModule,
|
|
223
230
|
args: [{
|
|
224
231
|
declarations: [
|
|
@@ -299,13 +306,14 @@ class GetMaxHeightDirective {
|
|
|
299
306
|
this.maxHeightChanged.emit(maxHeight);
|
|
300
307
|
this.sumOfHeight.emit(sumOfHeight);
|
|
301
308
|
}
|
|
302
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
303
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
309
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: GetMaxHeightDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
310
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: GetMaxHeightDirective, isStandalone: false, selector: "[getMaxHeight]", inputs: { cssClassName: ["getMaxHeight", "cssClassName"] }, outputs: { maxHeightChanged: "maxHeightChanged", sumOfHeight: "sumOfHeight" }, ngImport: i0 }); }
|
|
304
311
|
}
|
|
305
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
312
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: GetMaxHeightDirective, decorators: [{
|
|
306
313
|
type: Directive,
|
|
307
314
|
args: [{
|
|
308
315
|
selector: '[getMaxHeight]',
|
|
316
|
+
standalone: false,
|
|
309
317
|
}]
|
|
310
318
|
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { cssClassName: [{
|
|
311
319
|
type: Input,
|
|
@@ -470,13 +478,14 @@ class SwipeDirective {
|
|
|
470
478
|
this._moveEventData = undefined;
|
|
471
479
|
}
|
|
472
480
|
}
|
|
473
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
474
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
481
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SwipeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
482
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: SwipeDirective, isStandalone: false, selector: "[swipeDirective]", inputs: { config: ["swipeDirective", "config"] }, outputs: { moveEvent: "moveEvent", releaseEvent: "releaseEvent" }, host: { listeners: { "mousedown": "onMouseDown($event)", "touchstart": "onMouseDown($event)", "mousemove": "onMove($event)", "touchmove": "onMove($event)", "mouseup": "onRelease($event)", "mouseleave": "onRelease($event)", "touchend": "onRelease($event)" } }, ngImport: i0 }); }
|
|
475
483
|
}
|
|
476
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
484
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SwipeDirective, decorators: [{
|
|
477
485
|
type: Directive,
|
|
478
486
|
args: [{
|
|
479
487
|
selector: '[swipeDirective]',
|
|
488
|
+
standalone: false,
|
|
480
489
|
}]
|
|
481
490
|
}], propDecorators: { moveEvent: [{
|
|
482
491
|
type: Output
|
|
@@ -536,13 +545,14 @@ class TimeDirective {
|
|
|
536
545
|
inputElement.dispatchEvent(new Event('input'));
|
|
537
546
|
}
|
|
538
547
|
}
|
|
539
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
540
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
548
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: TimeDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
549
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: TimeDirective, isStandalone: false, selector: "[kmsTime]", host: { listeners: { "input": "onInputChange($event)", "beforeinput": "onBeforeInput($event)" } }, ngImport: i0 }); }
|
|
541
550
|
}
|
|
542
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
551
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: TimeDirective, decorators: [{
|
|
543
552
|
type: Directive,
|
|
544
553
|
args: [{
|
|
545
554
|
selector: '[kmsTime]',
|
|
555
|
+
standalone: false,
|
|
546
556
|
}]
|
|
547
557
|
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { onInputChange: [{
|
|
548
558
|
type: HostListener,
|
|
@@ -645,12 +655,12 @@ class TooltipDirective {
|
|
|
645
655
|
this.renderer.removeClass(this.arrow, 'kms-tooltip__arrow--top');
|
|
646
656
|
this.renderer.addClass(this.arrow, 'kms-tooltip__arrow--' + side);
|
|
647
657
|
}
|
|
648
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
649
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
658
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: TooltipDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
659
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: TooltipDirective, isStandalone: false, selector: "[kmsTooltip]", inputs: { kmsTooltip: "kmsTooltip", placement: "placement", delay: "delay", alwaysVisible: "alwaysVisible" }, host: { listeners: { "mouseover": "onMouseOver()", "mouseout": "onMouseOut()" } }, usesOnChanges: true, ngImport: i0 }); }
|
|
650
660
|
}
|
|
651
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
661
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: TooltipDirective, decorators: [{
|
|
652
662
|
type: Directive,
|
|
653
|
-
args: [{ selector: '[kmsTooltip]' }]
|
|
663
|
+
args: [{ selector: '[kmsTooltip]', standalone: false }]
|
|
654
664
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { kmsTooltip: [{
|
|
655
665
|
type: Input
|
|
656
666
|
}], placement: [{
|
|
@@ -671,17 +681,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
671
681
|
* @copyright KMS GmbH
|
|
672
682
|
*/
|
|
673
683
|
class DirectivesModule {
|
|
674
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
675
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
684
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: DirectivesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
685
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: DirectivesModule, declarations: [SwipeDirective,
|
|
676
686
|
GetMaxHeightDirective,
|
|
677
687
|
TooltipDirective,
|
|
678
|
-
TimeDirective],
|
|
688
|
+
TimeDirective], exports: [SwipeDirective,
|
|
679
689
|
GetMaxHeightDirective,
|
|
680
690
|
TooltipDirective,
|
|
681
691
|
TimeDirective] }); }
|
|
682
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
692
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: DirectivesModule }); }
|
|
683
693
|
}
|
|
684
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
694
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: DirectivesModule, decorators: [{
|
|
685
695
|
type: NgModule,
|
|
686
696
|
args: [{
|
|
687
697
|
declarations: [
|
|
@@ -690,7 +700,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
690
700
|
TooltipDirective,
|
|
691
701
|
TimeDirective,
|
|
692
702
|
],
|
|
693
|
-
imports: [CommonModule],
|
|
694
703
|
exports: [
|
|
695
704
|
SwipeDirective,
|
|
696
705
|
GetMaxHeightDirective,
|
|
@@ -1038,10 +1047,10 @@ class ViewportService {
|
|
|
1038
1047
|
window.removeEventListener('resize', this.documentSizeChanged);
|
|
1039
1048
|
}
|
|
1040
1049
|
}
|
|
1041
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1042
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1050
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ViewportService, deps: [{ token: PLATFORM_ID }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1051
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ViewportService }); }
|
|
1043
1052
|
}
|
|
1044
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1053
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ViewportService, decorators: [{
|
|
1045
1054
|
type: Injectable
|
|
1046
1055
|
}], ctorParameters: () => [{ type: Object, decorators: [{
|
|
1047
1056
|
type: Inject,
|
|
@@ -1103,23 +1112,23 @@ class IconComponent {
|
|
|
1103
1112
|
* Required: Name of the SVG icon inside your sprite sheet file with name 'icons.svg'.
|
|
1104
1113
|
* Pass 'none' if no icon should be rendered.
|
|
1105
1114
|
*/
|
|
1106
|
-
this.icon = input();
|
|
1115
|
+
this.icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
|
|
1107
1116
|
/**
|
|
1108
1117
|
* Optional: Different appearance via CSS class defined in this component´s style sheet.
|
|
1109
1118
|
*/
|
|
1110
|
-
this.iconClass = input('');
|
|
1111
|
-
this.size = input(IconSizePx.XS);
|
|
1112
|
-
this.dontUseSprite = input(false);
|
|
1113
|
-
this.color = input(Color.BLACK);
|
|
1119
|
+
this.iconClass = input('', ...(ngDevMode ? [{ debugName: "iconClass" }] : []));
|
|
1120
|
+
this.size = input(IconSizePx.XS, ...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
1121
|
+
this.dontUseSprite = input(false, ...(ngDevMode ? [{ debugName: "dontUseSprite" }] : []));
|
|
1122
|
+
this.color = input(Color.BLACK, ...(ngDevMode ? [{ debugName: "color" }] : []));
|
|
1114
1123
|
this.Version = VERSION.full;
|
|
1115
1124
|
}
|
|
1116
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1117
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.
|
|
1125
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: IconComponent, deps: [{ token: i1$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1126
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: IconComponent, isStandalone: false, selector: "kms-icon", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, iconClass: { classPropertyName: "iconClass", publicName: "iconClass", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, dontUseSprite: { classPropertyName: "dontUseSprite", publicName: "dontUseSprite", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (icon() !== 'none' && dontUseSprite() === false) {\n <span\n class=\"icon\"\n [ngClass]=\"iconClass()\"\n [ngStyle]=\"{\n color: 'var(' + color() + ')'\n }\"\n [style.width.px]=\"size()\"\n [style.height.px]=\"size()\"\n >\n <svg [style.width.px]=\"size()\" [style.height.px]=\"size()\">\n <use\n [attr.xlink:href]=\"\n 'assets/sprite.svg?Version=' + Version + '#' + icon()\n \"\n ></use>\n </svg>\n </span>\n}\n@if (icon() !== 'none' && dontUseSprite() === true) {\n <object\n [data]=\"\n sanitizer.bypassSecurityTrustResourceUrl('assets/icons/' + icon() + '')\n \"\n type=\"image/svg+xml\"\n class=\"icon\"\n [ngClass]=\"iconClass()\"\n ></object>\n}\n", styles: [":root{--kms-primary: #162f43;--kms-primary-50: #0f2334;--kms-primary-100: #162f43;--kms-primary-200: #26415e;--kms-primary-300: #375e79;--kms-primary-400: #4b7a94;--kms-primary-500: #5f97af;--kms-primary-600: #7cb3ca;--kms-primary-700: #9acfe5;--kms-primary-800: #b8ebff;--kms-primary-900: #d6f7ff;--kms-secondary: #48acd1;--kms-tertiary: #43403e;--kms-tertiary-50: #1e1d1c;--kms-tertiary-100: #43403e;--kms-tertiary-200: #54524f;--kms-tertiary-300: #6c6a67;--kms-tertiary-400: #97938f;--kms-tertiary-500: #c2beb9;--kms-tertiary-600: #e3e1df;--kms-tertiary-700: #eeedec;--kms-tertiary-800: #f4f3f2;--kms-tertiary-900: #ffffff;--kms-success: #39b948;--kms-alert: #e5c936;--kms-error: #c3293b;--kms-disabled: #a6a6a6;--kms-background: #fafafa;--kms-white: #ffffff;--kms-black: #000000;--kms-border-grey: #101423;--kms-green: #008000;--kms-light-green: #00c800;--kms-font-green: #27ae60}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
1118
1127
|
}
|
|
1119
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1128
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: IconComponent, decorators: [{
|
|
1120
1129
|
type: Component,
|
|
1121
|
-
args: [{ selector: 'kms-icon', template: "
|
|
1122
|
-
}], ctorParameters: () => [{ type: i1$1.DomSanitizer }] });
|
|
1130
|
+
args: [{ selector: 'kms-icon', standalone: false, template: "@if (icon() !== 'none' && dontUseSprite() === false) {\n <span\n class=\"icon\"\n [ngClass]=\"iconClass()\"\n [ngStyle]=\"{\n color: 'var(' + color() + ')'\n }\"\n [style.width.px]=\"size()\"\n [style.height.px]=\"size()\"\n >\n <svg [style.width.px]=\"size()\" [style.height.px]=\"size()\">\n <use\n [attr.xlink:href]=\"\n 'assets/sprite.svg?Version=' + Version + '#' + icon()\n \"\n ></use>\n </svg>\n </span>\n}\n@if (icon() !== 'none' && dontUseSprite() === true) {\n <object\n [data]=\"\n sanitizer.bypassSecurityTrustResourceUrl('assets/icons/' + icon() + '')\n \"\n type=\"image/svg+xml\"\n class=\"icon\"\n [ngClass]=\"iconClass()\"\n ></object>\n}\n", styles: [":root{--kms-primary: #162f43;--kms-primary-50: #0f2334;--kms-primary-100: #162f43;--kms-primary-200: #26415e;--kms-primary-300: #375e79;--kms-primary-400: #4b7a94;--kms-primary-500: #5f97af;--kms-primary-600: #7cb3ca;--kms-primary-700: #9acfe5;--kms-primary-800: #b8ebff;--kms-primary-900: #d6f7ff;--kms-secondary: #48acd1;--kms-tertiary: #43403e;--kms-tertiary-50: #1e1d1c;--kms-tertiary-100: #43403e;--kms-tertiary-200: #54524f;--kms-tertiary-300: #6c6a67;--kms-tertiary-400: #97938f;--kms-tertiary-500: #c2beb9;--kms-tertiary-600: #e3e1df;--kms-tertiary-700: #eeedec;--kms-tertiary-800: #f4f3f2;--kms-tertiary-900: #ffffff;--kms-success: #39b948;--kms-alert: #e5c936;--kms-error: #c3293b;--kms-disabled: #a6a6a6;--kms-background: #fafafa;--kms-white: #ffffff;--kms-black: #000000;--kms-border-grey: #101423;--kms-green: #008000;--kms-light-green: #00c800;--kms-font-green: #27ae60}\n"] }]
|
|
1131
|
+
}], ctorParameters: () => [{ type: i1$1.DomSanitizer }], propDecorators: { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], iconClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconClass", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], dontUseSprite: [{ type: i0.Input, args: [{ isSignal: true, alias: "dontUseSprite", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }] } });
|
|
1123
1132
|
|
|
1124
1133
|
/**
|
|
1125
1134
|
* @copyright KMS GmbH
|
|
@@ -1149,12 +1158,12 @@ class BackToTopComponent {
|
|
|
1149
1158
|
window.scrollTo({ top: 0, behavior: 'smooth' });
|
|
1150
1159
|
}
|
|
1151
1160
|
}
|
|
1152
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1153
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1161
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: BackToTopComponent, deps: [{ token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1162
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: BackToTopComponent, isStandalone: false, selector: "kms-back-to-top", host: { listeners: { "window:scroll": "onWindowScroll()" } }, ngImport: i0, template: "<div\n class=\"scrollToTop\"\n [ngClass]=\"{ show: windowScrolled }\"\n (click)=\"scrollToTop()\"\n>\n <div class=\"scrollToTop-inner\">\n <kms-icon\n icon=\"floating_button_clear\"\n [color]=\"Color.WHITE\"\n [size]=\"IconSizePx.SM\"\n ></kms-icon>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "size", "dontUseSprite", "color"] }] }); }
|
|
1154
1163
|
}
|
|
1155
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1164
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: BackToTopComponent, decorators: [{
|
|
1156
1165
|
type: Component,
|
|
1157
|
-
args: [{ selector: 'kms-back-to-top', template: "<div\n class=\"scrollToTop\"\n [ngClass]=\"{ show: windowScrolled }\"\n (click)=\"scrollToTop()\"\n>\n <div class=\"scrollToTop-inner\">\n <kms-icon\n icon=\"floating_button_clear\"\n [color]=\"Color.WHITE\"\n [size]=\"IconSizePx.SM\"\n ></kms-icon>\n </div>\n</div>\n" }]
|
|
1166
|
+
args: [{ selector: 'kms-back-to-top', standalone: false, template: "<div\n class=\"scrollToTop\"\n [ngClass]=\"{ show: windowScrolled }\"\n (click)=\"scrollToTop()\"\n>\n <div class=\"scrollToTop-inner\">\n <kms-icon\n icon=\"floating_button_clear\"\n [color]=\"Color.WHITE\"\n [size]=\"IconSizePx.SM\"\n ></kms-icon>\n </div>\n</div>\n" }]
|
|
1158
1167
|
}], ctorParameters: () => [{ type: Object, decorators: [{
|
|
1159
1168
|
type: Inject,
|
|
1160
1169
|
args: [PLATFORM_ID]
|
|
@@ -1165,16 +1174,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
1165
1174
|
|
|
1166
1175
|
class CardComponent {
|
|
1167
1176
|
constructor() {
|
|
1168
|
-
this.imageUrl = input('');
|
|
1169
|
-
this.hoverEffect = input(false);
|
|
1177
|
+
this.imageUrl = input('', ...(ngDevMode ? [{ debugName: "imageUrl" }] : []));
|
|
1178
|
+
this.hoverEffect = input(false, ...(ngDevMode ? [{ debugName: "hoverEffect" }] : []));
|
|
1170
1179
|
}
|
|
1171
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1172
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1180
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1181
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: CardComponent, isStandalone: false, selector: "kms-card", inputs: { imageUrl: { classPropertyName: "imageUrl", publicName: "imageUrl", isSignal: true, isRequired: false, transformFunction: null }, hoverEffect: { classPropertyName: "hoverEffect", publicName: "hoverEffect", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"card\" [ngClass]=\"{ hoverEffect: hoverEffect() }\">\n @if(imageUrl() !== '') {\n <div\n class=\"card-image\"\n [ngStyle]=\"{ 'background-image': 'url(' + imageUrl() + ')' }\"\n ></div>\n }\n <div class=\"card-content\">\n <ng-content></ng-content>\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
1173
1182
|
}
|
|
1174
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1183
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CardComponent, decorators: [{
|
|
1175
1184
|
type: Component,
|
|
1176
|
-
args: [{ selector: 'kms-card', template: "<div class=\"card\" [ngClass]=\"{ hoverEffect: hoverEffect() }\">\n @if(imageUrl() !== '') {\n <div\n class=\"card-image\"\n [ngStyle]=\"{ 'background-image': 'url(' + imageUrl() + ')' }\"\n ></div>\n }\n <div class=\"card-content\">\n <ng-content></ng-content>\n </div>\n</div>\n" }]
|
|
1177
|
-
}] });
|
|
1185
|
+
args: [{ selector: 'kms-card', standalone: false, template: "<div class=\"card\" [ngClass]=\"{ hoverEffect: hoverEffect() }\">\n @if(imageUrl() !== '') {\n <div\n class=\"card-image\"\n [ngStyle]=\"{ 'background-image': 'url(' + imageUrl() + ')' }\"\n ></div>\n }\n <div class=\"card-content\">\n <ng-content></ng-content>\n </div>\n</div>\n" }]
|
|
1186
|
+
}], propDecorators: { imageUrl: [{ type: i0.Input, args: [{ isSignal: true, alias: "imageUrl", required: false }] }], hoverEffect: [{ type: i0.Input, args: [{ isSignal: true, alias: "hoverEffect", required: false }] }] } });
|
|
1178
1187
|
|
|
1179
1188
|
/**
|
|
1180
1189
|
* @copyright KMS GmbH
|
|
@@ -1208,16 +1217,16 @@ class CheckboxComponent {
|
|
|
1208
1217
|
registerOnTouched(fn) {
|
|
1209
1218
|
this.onTouched = fn;
|
|
1210
1219
|
}
|
|
1211
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1212
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1220
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1221
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: CheckboxComponent, isStandalone: false, selector: "kms-checkbox", inputs: { infoText: "infoText", checked: "checked", disabled: "disabled", name: "name" }, outputs: { change: "change" }, providers: [
|
|
1213
1222
|
{
|
|
1214
1223
|
provide: NG_VALUE_ACCESSOR,
|
|
1215
1224
|
useExisting: forwardRef(() => CheckboxComponent),
|
|
1216
1225
|
multi: true,
|
|
1217
1226
|
},
|
|
1218
|
-
], ngImport: i0, template: "<div class=\"checkbox-container\" [class.disabled]=\"disabled\">\n <mat-checkbox\n [disabled]=\"disabled\"\n [name]=\"name\"\n [(ngModel)]=\"checked\"\n (change)=\"valueChanged($event.checked)\"\n color=\"primary\"\n >\n {{ infoText }}\n </mat-checkbox>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: i1$2.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "directive", type:
|
|
1227
|
+
], ngImport: i0, template: "<div class=\"checkbox-container\" [class.disabled]=\"disabled\">\n <mat-checkbox\n [disabled]=\"disabled\"\n [name]=\"name\"\n [(ngModel)]=\"checked\"\n (change)=\"valueChanged($event.checked)\"\n color=\"primary\"\n >\n {{ infoText }}\n </mat-checkbox>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: i1$2.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); }
|
|
1219
1228
|
}
|
|
1220
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1229
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CheckboxComponent, decorators: [{
|
|
1221
1230
|
type: Component,
|
|
1222
1231
|
args: [{ selector: 'kms-checkbox', providers: [
|
|
1223
1232
|
{
|
|
@@ -1225,7 +1234,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
1225
1234
|
useExisting: forwardRef(() => CheckboxComponent),
|
|
1226
1235
|
multi: true,
|
|
1227
1236
|
},
|
|
1228
|
-
], template: "<div class=\"checkbox-container\" [class.disabled]=\"disabled\">\n <mat-checkbox\n [disabled]=\"disabled\"\n [name]=\"name\"\n [(ngModel)]=\"checked\"\n (change)=\"valueChanged($event.checked)\"\n color=\"primary\"\n >\n {{ infoText }}\n </mat-checkbox>\n</div>\n" }]
|
|
1237
|
+
], standalone: false, template: "<div class=\"checkbox-container\" [class.disabled]=\"disabled\">\n <mat-checkbox\n [disabled]=\"disabled\"\n [name]=\"name\"\n [(ngModel)]=\"checked\"\n (change)=\"valueChanged($event.checked)\"\n color=\"primary\"\n >\n {{ infoText }}\n </mat-checkbox>\n</div>\n" }]
|
|
1229
1238
|
}], propDecorators: { infoText: [{
|
|
1230
1239
|
type: Input
|
|
1231
1240
|
}], checked: [{
|
|
@@ -1242,8 +1251,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
1242
1251
|
* @copyright KMS GmbH
|
|
1243
1252
|
*/
|
|
1244
1253
|
class FormParentComponent {
|
|
1245
|
-
constructor(
|
|
1246
|
-
this.formBuilder = formBuilder;
|
|
1254
|
+
constructor() {
|
|
1247
1255
|
this.formInitialized = false;
|
|
1248
1256
|
this.allowedCharsOnlyNumbers = new Set('0123456789'.split('').map((c) => c.charCodeAt(0)));
|
|
1249
1257
|
this.formDataChanged = new EventEmitter();
|
|
@@ -1304,25 +1312,25 @@ class FormParentComponent {
|
|
|
1304
1312
|
this.formDataChanged.emit(this.form);
|
|
1305
1313
|
});
|
|
1306
1314
|
}
|
|
1307
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1308
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1315
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: FormParentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1316
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: FormParentComponent, isStandalone: false, selector: "kms-form", inputs: { disabled: "disabled" }, outputs: { formDataChanged: "formDataChanged" }, ngImport: i0, template: '', isInline: true }); }
|
|
1309
1317
|
}
|
|
1310
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1318
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: FormParentComponent, decorators: [{
|
|
1311
1319
|
type: Component,
|
|
1312
1320
|
args: [{
|
|
1321
|
+
standalone: false,
|
|
1313
1322
|
selector: 'kms-form',
|
|
1314
1323
|
template: '',
|
|
1315
1324
|
}]
|
|
1316
|
-
}],
|
|
1325
|
+
}], propDecorators: { formDataChanged: [{
|
|
1317
1326
|
type: Output
|
|
1318
1327
|
}], disabled: [{
|
|
1319
1328
|
type: Input
|
|
1320
1329
|
}] } });
|
|
1321
1330
|
|
|
1322
1331
|
class FormControlParentComponent extends FormParentComponent {
|
|
1323
|
-
constructor(
|
|
1324
|
-
super(
|
|
1325
|
-
this.formBuilder = formBuilder;
|
|
1332
|
+
constructor(renderer) {
|
|
1333
|
+
super();
|
|
1326
1334
|
this.renderer = renderer;
|
|
1327
1335
|
this.defaultDataOverride = ''; // when we have NO form around, get default via input to set it manually
|
|
1328
1336
|
this.onSelectItemEmitter = new EventEmitter();
|
|
@@ -1368,20 +1376,28 @@ class FormControlParentComponent extends FormParentComponent {
|
|
|
1368
1376
|
if (this.child?.nativeElement) {
|
|
1369
1377
|
this.renderer.setProperty(this.child.nativeElement, 'disabled', isDisabled);
|
|
1370
1378
|
}
|
|
1379
|
+
this.disabled = isDisabled;
|
|
1380
|
+
if (isDisabled) {
|
|
1381
|
+
this.form.disable();
|
|
1382
|
+
}
|
|
1383
|
+
else {
|
|
1384
|
+
this.form.enable();
|
|
1385
|
+
}
|
|
1371
1386
|
}
|
|
1372
1387
|
validate(_) {
|
|
1373
1388
|
return this.form.valid ? null : false;
|
|
1374
1389
|
}
|
|
1375
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1376
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1390
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: FormControlParentComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1391
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: FormControlParentComponent, isStandalone: false, selector: "kms-formControlParent", inputs: { defaultDataOverride: "defaultDataOverride" }, outputs: { onSelectItemEmitter: "onSelectItemEmitter" }, viewQueries: [{ propertyName: "child", first: true, predicate: ["child"], descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
|
|
1377
1392
|
}
|
|
1378
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1393
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: FormControlParentComponent, decorators: [{
|
|
1379
1394
|
type: Component,
|
|
1380
1395
|
args: [{
|
|
1396
|
+
standalone: false,
|
|
1381
1397
|
selector: 'kms-formControlParent',
|
|
1382
1398
|
template: '',
|
|
1383
1399
|
}]
|
|
1384
|
-
}], ctorParameters: () => [{ type:
|
|
1400
|
+
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { defaultDataOverride: [{
|
|
1385
1401
|
type: Input
|
|
1386
1402
|
}], onSelectItemEmitter: [{
|
|
1387
1403
|
type: Output
|
|
@@ -1394,9 +1410,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
1394
1410
|
* Dropdown from data component {@link https://leaseplan-dev.rentoffice.de/styleguide#ui-elements}
|
|
1395
1411
|
*/
|
|
1396
1412
|
class DropdownFromDataComponent extends FormControlParentComponent {
|
|
1397
|
-
constructor(
|
|
1398
|
-
super(
|
|
1399
|
-
this.formBuilder = formBuilder;
|
|
1413
|
+
constructor(renderer) {
|
|
1414
|
+
super(renderer);
|
|
1400
1415
|
this.renderer = renderer;
|
|
1401
1416
|
// options for the dropdown have a null value at the beginning of the array
|
|
1402
1417
|
this.hasNullOption = false;
|
|
@@ -1423,8 +1438,8 @@ class DropdownFromDataComponent extends FormControlParentComponent {
|
|
|
1423
1438
|
this.setKeyValues();
|
|
1424
1439
|
}
|
|
1425
1440
|
ngOnInit() {
|
|
1426
|
-
this.form =
|
|
1427
|
-
dropdownData: [],
|
|
1441
|
+
this.form = new UntypedFormGroup({
|
|
1442
|
+
dropdownData: new UntypedFormControl([]),
|
|
1428
1443
|
});
|
|
1429
1444
|
this.formInitialized = true;
|
|
1430
1445
|
this.form.valueChanges.subscribe((value) => {
|
|
@@ -1532,16 +1547,16 @@ class DropdownFromDataComponent extends FormControlParentComponent {
|
|
|
1532
1547
|
this.form.controls.dropdownData.setValue(this.values);
|
|
1533
1548
|
}
|
|
1534
1549
|
}
|
|
1535
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1536
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
1550
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: DropdownFromDataComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1551
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: DropdownFromDataComponent, isStandalone: false, selector: "kms-dropdown-from-data", inputs: { optionsEnum: "optionsEnum", optionsPlainArray: "optionsPlainArray", optionsObjArray: "optionsObjArray", mapKey: "mapKey", mapValue: "mapValue", hasNullOption: "hasNullOption", preselectedKeys: "preselectedKeys", translation: "translation", placeholder: "placeholder", label: "label", required: "required", useEnumIndexAsValue: "useEnumIndexAsValue", multiple: "multiple", selectAllText: "selectAllText", disableOptions: "disableOptions" }, providers: [
|
|
1537
1552
|
{
|
|
1538
1553
|
provide: NG_VALUE_ACCESSOR,
|
|
1539
1554
|
useExisting: forwardRef(() => DropdownFromDataComponent),
|
|
1540
1555
|
multi: true,
|
|
1541
1556
|
},
|
|
1542
|
-
], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<form [formGroup]=\"form\">\n <mat-form-field\n [attr.required]=\"required\"\n [floatLabel]=\"placeholder ? 'always' : 'auto'\"\n
|
|
1557
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<form [formGroup]=\"form\">\n <mat-form-field\n [attr.required]=\"required\"\n [floatLabel]=\"placeholder ? 'always' : 'auto'\"\n >\n <mat-label>{{ label }}</mat-label>\n <mat-select\n [placeholder]=\"placeholder\"\n disableOptionCentering\n (selectionChange)=\"valueChanged($event?.value)\"\n [value]=\"value\"\n #child\n [disabled]=\"disabled\"\n [multiple]=\"multiple\"\n >\n @if (selectAllText && !disableOptions) {\n <mat-checkbox\n color=\"accent\"\n class=\"dropdown-from-data__checkbox\"\n [indeterminate]=\"isCheckboxIndeterminate()\"\n [checked]=\"allElementsChecked()\"\n (click)=\"$event.stopPropagation()\"\n (change)=\"toggleAllSelection($event)\"\n >\n {{ selectAllText }}\n </mat-checkbox>\n }\n @for (key of keys; track key; let i = $index) {\n <mat-option\n [value]=\"values[i]\"\n [disabled]=\"disableOptions\"\n >\n {{ setDisplayKey(key) || '\u2014' }}\n </mat-option>\n }\n </mat-select>\n </mat-form-field>\n</form>\n", dependencies: [{ kind: "component", type: i1$2.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i1$3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i1$3.MatLabel, selector: "mat-label" }, { kind: "component", type: i3.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i3.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }] }); }
|
|
1543
1558
|
}
|
|
1544
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1559
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: DropdownFromDataComponent, decorators: [{
|
|
1545
1560
|
type: Component,
|
|
1546
1561
|
args: [{ selector: 'kms-dropdown-from-data', providers: [
|
|
1547
1562
|
{
|
|
@@ -1549,8 +1564,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
1549
1564
|
useExisting: forwardRef(() => DropdownFromDataComponent),
|
|
1550
1565
|
multi: true,
|
|
1551
1566
|
},
|
|
1552
|
-
], template: "<form [formGroup]=\"form\">\n <mat-form-field\n [attr.required]=\"required\"\n [floatLabel]=\"placeholder ? 'always' : 'auto'\"\n
|
|
1553
|
-
}], ctorParameters: () => [{ type:
|
|
1567
|
+
], standalone: false, template: "<form [formGroup]=\"form\">\n <mat-form-field\n [attr.required]=\"required\"\n [floatLabel]=\"placeholder ? 'always' : 'auto'\"\n >\n <mat-label>{{ label }}</mat-label>\n <mat-select\n [placeholder]=\"placeholder\"\n disableOptionCentering\n (selectionChange)=\"valueChanged($event?.value)\"\n [value]=\"value\"\n #child\n [disabled]=\"disabled\"\n [multiple]=\"multiple\"\n >\n @if (selectAllText && !disableOptions) {\n <mat-checkbox\n color=\"accent\"\n class=\"dropdown-from-data__checkbox\"\n [indeterminate]=\"isCheckboxIndeterminate()\"\n [checked]=\"allElementsChecked()\"\n (click)=\"$event.stopPropagation()\"\n (change)=\"toggleAllSelection($event)\"\n >\n {{ selectAllText }}\n </mat-checkbox>\n }\n @for (key of keys; track key; let i = $index) {\n <mat-option\n [value]=\"values[i]\"\n [disabled]=\"disableOptions\"\n >\n {{ setDisplayKey(key) || '\u2014' }}\n </mat-option>\n }\n </mat-select>\n </mat-form-field>\n</form>\n" }]
|
|
1568
|
+
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { optionsEnum: [{
|
|
1554
1569
|
type: Input
|
|
1555
1570
|
}], optionsPlainArray: [{
|
|
1556
1571
|
type: Input
|
|
@@ -1586,16 +1601,22 @@ class LoaderComponent {
|
|
|
1586
1601
|
constructor() {
|
|
1587
1602
|
this.loading = false;
|
|
1588
1603
|
}
|
|
1589
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1590
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
1604
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: LoaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1605
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: LoaderComponent, isStandalone: false, selector: "kms-loader", inputs: { loading: "loading" }, ngImport: i0, template: "@if (loading) {\n <div class=\"loading-spinner-shade\">\n <mat-spinner class=\"spinnerMargin\" color=\"accent\" diameter=\"44\"></mat-spinner>\n </div>\n}\n", styles: [""], dependencies: [{ kind: "component", type: i1$4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }] }); }
|
|
1591
1606
|
}
|
|
1592
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1607
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: LoaderComponent, decorators: [{
|
|
1593
1608
|
type: Component,
|
|
1594
|
-
args: [{ selector: 'kms-loader', template: "<div class=\"loading-spinner-shade\"
|
|
1609
|
+
args: [{ selector: 'kms-loader', standalone: false, template: "@if (loading) {\n <div class=\"loading-spinner-shade\">\n <mat-spinner class=\"spinnerMargin\" color=\"accent\" diameter=\"44\"></mat-spinner>\n </div>\n}\n" }]
|
|
1595
1610
|
}], propDecorators: { loading: [{
|
|
1596
1611
|
type: Input
|
|
1597
1612
|
}] } });
|
|
1598
1613
|
|
|
1614
|
+
/**
|
|
1615
|
+
* Typical basic address data
|
|
1616
|
+
*/
|
|
1617
|
+
class Address {
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1599
1620
|
/**
|
|
1600
1621
|
* @copyright KMS GmbH
|
|
1601
1622
|
*/
|
|
@@ -1695,12 +1716,12 @@ class MapComponent {
|
|
|
1695
1716
|
this.zoom--;
|
|
1696
1717
|
}
|
|
1697
1718
|
}
|
|
1698
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1699
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
1719
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MapComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1720
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: MapComponent, isStandalone: false, selector: "kms-map", inputs: { data: "data" }, ngImport: i0, template: "@if (geoDataFoundForAddress) {\n <div>\n <google-map\n height=\"415px\"\n [width]=\"width\"\n [zoom]=\"zoom\"\n [center]=\"center\"\n [options]=\"options\"\n >\n @for (marker of markers; track marker) {\n <map-marker\n [position]=\"marker.position\"\n [label]=\"marker.label\"\n [title]=\"marker.title\"\n [options]=\"marker.options\"\n >\n </map-marker>\n }\n </google-map>\n </div>\n}", styles: [""], dependencies: [{ kind: "component", type: i1$5.GoogleMap, selector: "google-map", inputs: ["height", "width", "mapId", "mapTypeId", "center", "zoom", "options"], outputs: ["mapInitialized", "authFailure", "boundsChanged", "centerChanged", "mapClick", "mapDblclick", "mapDrag", "mapDragend", "mapDragstart", "headingChanged", "idle", "maptypeidChanged", "mapMousemove", "mapMouseout", "mapMouseover", "projectionChanged", "mapRightclick", "tilesloaded", "tiltChanged", "zoomChanged"], exportAs: ["googleMap"] }, { kind: "directive", type: i1$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", "markerInitialized"], exportAs: ["mapMarker"] }] }); }
|
|
1700
1721
|
}
|
|
1701
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1722
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: MapComponent, decorators: [{
|
|
1702
1723
|
type: Component,
|
|
1703
|
-
args: [{ selector: 'kms-map', template: "
|
|
1724
|
+
args: [{ selector: 'kms-map', standalone: false, template: "@if (geoDataFoundForAddress) {\n <div>\n <google-map\n height=\"415px\"\n [width]=\"width\"\n [zoom]=\"zoom\"\n [center]=\"center\"\n [options]=\"options\"\n >\n @for (marker of markers; track marker) {\n <map-marker\n [position]=\"marker.position\"\n [label]=\"marker.label\"\n [title]=\"marker.title\"\n [options]=\"marker.options\"\n >\n </map-marker>\n }\n </google-map>\n </div>\n}" }]
|
|
1704
1725
|
}], ctorParameters: () => [], propDecorators: { data: [{
|
|
1705
1726
|
type: Input
|
|
1706
1727
|
}] } });
|
|
@@ -1740,16 +1761,16 @@ class RadioButtonComponent {
|
|
|
1740
1761
|
setDisabledState(isDisabled) {
|
|
1741
1762
|
this.disabled = isDisabled;
|
|
1742
1763
|
}
|
|
1743
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1744
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1764
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: RadioButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1765
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: RadioButtonComponent, isStandalone: false, selector: "kms-radiobutton", inputs: { label: "label", checked: "checked", disabled: "disabled", value: "value", size: "size", color: "color" }, outputs: { onChange: "onChange" }, providers: [
|
|
1745
1766
|
{
|
|
1746
1767
|
provide: NG_VALUE_ACCESSOR,
|
|
1747
1768
|
useExisting: forwardRef(() => RadioButtonComponent),
|
|
1748
1769
|
multi: true,
|
|
1749
1770
|
},
|
|
1750
|
-
], ngImport: i0, template: "<mat-radio-button\n [disabled]=\"disabled\"\n [checked]=\"checked\"\n [ngClass]=\"size\"\n [color]=\"color\"\n [value]=\"value\"\n (change)=\"onChange.emit()\"\n ngDefaultControl\n>\n {{ label }}\n</mat-radio-button>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type:
|
|
1771
|
+
], ngImport: i0, template: "<mat-radio-button\n [disabled]=\"disabled\"\n [checked]=\"checked\"\n [ngClass]=\"size\"\n [color]=\"color\"\n [value]=\"value\"\n (change)=\"onChange.emit()\"\n ngDefaultControl\n>\n {{ label }}\n</mat-radio-button>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i1$6.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }] }); }
|
|
1751
1772
|
}
|
|
1752
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1773
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: RadioButtonComponent, decorators: [{
|
|
1753
1774
|
type: Component,
|
|
1754
1775
|
args: [{ selector: 'kms-radiobutton', providers: [
|
|
1755
1776
|
{
|
|
@@ -1757,7 +1778,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
1757
1778
|
useExisting: forwardRef(() => RadioButtonComponent),
|
|
1758
1779
|
multi: true,
|
|
1759
1780
|
},
|
|
1760
|
-
], template: "<mat-radio-button\n [disabled]=\"disabled\"\n [checked]=\"checked\"\n [ngClass]=\"size\"\n [color]=\"color\"\n [value]=\"value\"\n (change)=\"onChange.emit()\"\n ngDefaultControl\n>\n {{ label }}\n</mat-radio-button>\n" }]
|
|
1781
|
+
], standalone: false, template: "<mat-radio-button\n [disabled]=\"disabled\"\n [checked]=\"checked\"\n [ngClass]=\"size\"\n [color]=\"color\"\n [value]=\"value\"\n (change)=\"onChange.emit()\"\n ngDefaultControl\n>\n {{ label }}\n</mat-radio-button>\n" }]
|
|
1761
1782
|
}], propDecorators: { label: [{
|
|
1762
1783
|
type: Input
|
|
1763
1784
|
}], checked: [{
|
|
@@ -1809,16 +1830,16 @@ class SlideToggleComponent {
|
|
|
1809
1830
|
setDisabledState(isDisabled) {
|
|
1810
1831
|
this.disabled = isDisabled;
|
|
1811
1832
|
}
|
|
1812
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1813
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
1833
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SlideToggleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1834
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: SlideToggleComponent, isStandalone: false, selector: "kms-slide-toggle", inputs: { leftLabel: "leftLabel", rightLabel: "rightLabel", checked: "checked", disabled: "disabled", name: "name" }, outputs: { change: "change" }, providers: [
|
|
1814
1835
|
{
|
|
1815
1836
|
provide: NG_VALUE_ACCESSOR,
|
|
1816
1837
|
useExisting: forwardRef(() => SlideToggleComponent),
|
|
1817
1838
|
multi: true,
|
|
1818
1839
|
},
|
|
1819
|
-
], ngImport: i0, template: "<div class=\"kms-slide-toggle\">\n <mat-label\n
|
|
1840
|
+
], ngImport: i0, template: "<div class=\"kms-slide-toggle\">\n @if (leftLabel) {\n <mat-label\n class=\"kms-slide-toggle__label\"\n [class.kms-slide-toggle__label--bold]=\"rightLabel && !checked\"\n >{{ leftLabel }}</mat-label\n >\n }\n <mat-slide-toggle\n [name]=\"name\"\n [(ngModel)]=\"value\"\n [disabled]=\"disabled\"\n [hideIcon]=\"true\"\n (change)=\"emitOnChange($event)\"\n />\n @if (rightLabel) {\n <mat-label\n class=\"kms-slide-toggle__label\"\n [class.kms-slide-toggle__label--bold]=\"leftLabel && checked\"\n >{{ rightLabel }}</mat-label\n >\n }\n </div>\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1$3.MatLabel, selector: "mat-label" }, { kind: "component", type: i3$1.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }] }); }
|
|
1820
1841
|
}
|
|
1821
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1842
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SlideToggleComponent, decorators: [{
|
|
1822
1843
|
type: Component,
|
|
1823
1844
|
args: [{ selector: 'kms-slide-toggle', providers: [
|
|
1824
1845
|
{
|
|
@@ -1826,7 +1847,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
1826
1847
|
useExisting: forwardRef(() => SlideToggleComponent),
|
|
1827
1848
|
multi: true,
|
|
1828
1849
|
},
|
|
1829
|
-
], template: "<div class=\"kms-slide-toggle\">\n <mat-label\n
|
|
1850
|
+
], standalone: false, template: "<div class=\"kms-slide-toggle\">\n @if (leftLabel) {\n <mat-label\n class=\"kms-slide-toggle__label\"\n [class.kms-slide-toggle__label--bold]=\"rightLabel && !checked\"\n >{{ leftLabel }}</mat-label\n >\n }\n <mat-slide-toggle\n [name]=\"name\"\n [(ngModel)]=\"value\"\n [disabled]=\"disabled\"\n [hideIcon]=\"true\"\n (change)=\"emitOnChange($event)\"\n />\n @if (rightLabel) {\n <mat-label\n class=\"kms-slide-toggle__label\"\n [class.kms-slide-toggle__label--bold]=\"leftLabel && checked\"\n >{{ rightLabel }}</mat-label\n >\n }\n </div>\n" }]
|
|
1830
1851
|
}], propDecorators: { leftLabel: [{
|
|
1831
1852
|
type: Input
|
|
1832
1853
|
}], rightLabel: [{
|
|
@@ -1841,6 +1862,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
1841
1862
|
type: Output
|
|
1842
1863
|
}] } });
|
|
1843
1864
|
|
|
1865
|
+
/**
|
|
1866
|
+
* @copyright KMS GmbH
|
|
1867
|
+
*/
|
|
1844
1868
|
class SliderComponent {
|
|
1845
1869
|
constructor() {
|
|
1846
1870
|
this.kmsSliderClass = true;
|
|
@@ -1877,16 +1901,16 @@ class SliderComponent {
|
|
|
1877
1901
|
setDisabledState(isDisabled) {
|
|
1878
1902
|
this.disabled = isDisabled;
|
|
1879
1903
|
}
|
|
1880
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1881
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1904
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SliderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1905
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: SliderComponent, isStandalone: false, selector: "kms-slider", inputs: { disabled: "disabled", options: "options", max: "max" }, outputs: { change: "change" }, host: { properties: { "class.kms-slider": "this.kmsSliderClass", "class.kms-slider--disabled": "this.disabledClass" } }, providers: [
|
|
1882
1906
|
{
|
|
1883
1907
|
provide: NG_VALUE_ACCESSOR,
|
|
1884
1908
|
useExisting: forwardRef(() => SliderComponent),
|
|
1885
1909
|
multi: true,
|
|
1886
1910
|
},
|
|
1887
|
-
], ngImport: i0, template: "<ngx-slider\n [(value)]=\"value\"\n [options]=\"options\"\n [highValue]=\"max\"\n (userChangeEnd)=\"change.emit($event)\"\n></ngx-slider>\n", styles: [""], dependencies: [{ kind: "component", type: i1$
|
|
1911
|
+
], ngImport: i0, template: "<ngx-slider\n [(value)]=\"value\"\n [options]=\"options\"\n [highValue]=\"max\"\n (userChangeEnd)=\"change.emit($event)\"\n></ngx-slider>\n", styles: [""], dependencies: [{ kind: "component", type: i1$7.SliderComponent, selector: "ngx-slider", inputs: ["value", "highValue", "options", "manualRefresh", "triggerFocus", "cancelUserChange"], outputs: ["valueChange", "highValueChange", "userChangeStart", "userChange", "userChangeEnd"] }] }); }
|
|
1888
1912
|
}
|
|
1889
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1913
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SliderComponent, decorators: [{
|
|
1890
1914
|
type: Component,
|
|
1891
1915
|
args: [{ selector: 'kms-slider', providers: [
|
|
1892
1916
|
{
|
|
@@ -1894,7 +1918,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
1894
1918
|
useExisting: forwardRef(() => SliderComponent),
|
|
1895
1919
|
multi: true,
|
|
1896
1920
|
},
|
|
1897
|
-
], template: "<ngx-slider\n [(value)]=\"value\"\n [options]=\"options\"\n [highValue]=\"max\"\n (userChangeEnd)=\"change.emit($event)\"\n></ngx-slider>\n" }]
|
|
1921
|
+
], standalone: false, template: "<ngx-slider\n [(value)]=\"value\"\n [options]=\"options\"\n [highValue]=\"max\"\n (userChangeEnd)=\"change.emit($event)\"\n></ngx-slider>\n" }]
|
|
1898
1922
|
}], propDecorators: { kmsSliderClass: [{
|
|
1899
1923
|
type: HostBinding,
|
|
1900
1924
|
args: ['class.kms-slider']
|
|
@@ -1923,15 +1947,15 @@ var ButtonAppearance;
|
|
|
1923
1947
|
*/
|
|
1924
1948
|
class ButtonComponent {
|
|
1925
1949
|
constructor() {
|
|
1926
|
-
this.color = input(StylingTheme.PRIMARY);
|
|
1927
|
-
this.type = input('button');
|
|
1928
|
-
this.appearance = input(ButtonAppearance.FLAT);
|
|
1929
|
-
this.loading = input(false);
|
|
1930
|
-
this.label = input('');
|
|
1931
|
-
this.icon = input();
|
|
1932
|
-
this.disabled = input(false);
|
|
1950
|
+
this.color = input(StylingTheme.PRIMARY, ...(ngDevMode ? [{ debugName: "color" }] : []));
|
|
1951
|
+
this.type = input('button', ...(ngDevMode ? [{ debugName: "type" }] : []));
|
|
1952
|
+
this.appearance = input(ButtonAppearance.FLAT, ...(ngDevMode ? [{ debugName: "appearance" }] : []));
|
|
1953
|
+
this.loading = input(false, ...(ngDevMode ? [{ debugName: "loading" }] : []));
|
|
1954
|
+
this.label = input('', ...(ngDevMode ? [{ debugName: "label" }] : []));
|
|
1955
|
+
this.icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
|
|
1956
|
+
this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
1933
1957
|
this.buttonClick = output();
|
|
1934
|
-
this.rounded = input(false);
|
|
1958
|
+
this.rounded = input(false, ...(ngDevMode ? [{ debugName: "rounded" }] : []));
|
|
1935
1959
|
this.StylingTheme = StylingTheme;
|
|
1936
1960
|
this.IconSize = IconSizePx;
|
|
1937
1961
|
this.ButtonAppearance = ButtonAppearance;
|
|
@@ -1950,50 +1974,49 @@ class ButtonComponent {
|
|
|
1950
1974
|
case StylingTheme.WARN:
|
|
1951
1975
|
return Color.ERROR;
|
|
1952
1976
|
}
|
|
1953
|
-
});
|
|
1977
|
+
}, ...(ngDevMode ? [{ debugName: "iconColor" }] : []));
|
|
1954
1978
|
}
|
|
1955
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1956
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1979
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1980
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: ButtonComponent, isStandalone: false, selector: "kms-button", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { buttonClick: "buttonClick" }, ngImport: i0, template: "<!-- Basic -->\n@if (appearance() == ButtonAppearance.BASIC) {\n<button\n mat-button\n [color]=\"color()\"\n class=\"kms-button\"\n [ngClass]=\"{\n 'kms-button--loading': loading(),\n 'kms-button--basic-primary': color() === StylingTheme.PRIMARY,\n 'kms-button--basic-accent': color() === StylingTheme.SECONDARY,\n 'kms-button--basic-warn': color() === StylingTheme.WARN,\n 'kms-button--rounded': rounded()\n }\"\n [disabled]=\"disabled() || loading()\"\n (click)=\"buttonClick.emit($event)\"\n [type]=\"type()\"\n (keyup)=\"\n ($event.key === 'Enter' || $event.key === 'Space') &&\n buttonClick.emit($event)\n \"\n>\n <ng-container *ngTemplateOutlet=\"buttonTemplate\"></ng-container>\n</button>\n}\n\n<!-- Flat -->\n@else if (appearance() == ButtonAppearance.FLAT) {\n<button\n mat-flat-button\n [color]=\"color()\"\n class=\"kms-button\"\n [ngClass]=\"{\n 'kms-button--loading': loading(),\n 'kms-button--flat-primary': color() === StylingTheme.PRIMARY,\n 'kms-button--flat-accent': color() === StylingTheme.SECONDARY,\n 'kms-button--flat-warn': color() === StylingTheme.WARN,\n 'kms-button--rounded': rounded()\n }\"\n [disabled]=\"disabled() || loading()\"\n (click)=\"buttonClick.emit($event)\"\n [type]=\"type()\"\n (keyup)=\"\n ($event.key === 'Enter' || $event.key === 'Space') &&\n buttonClick.emit($event)\n \"\n>\n <ng-container *ngTemplateOutlet=\"buttonTemplate\"></ng-container>\n</button>\n}\n\n<!-- Raised -->\n@else if (appearance() == ButtonAppearance.RAISED) {\n<button\n mat-raised-button\n [color]=\"color()\"\n class=\"kms-button\"\n [ngClass]=\"{\n 'kms-button--loading': loading(),\n 'kms-button--raised-primary': color() === StylingTheme.PRIMARY,\n 'kms-button--raised-accent': color() === StylingTheme.SECONDARY,\n 'kms-button--raised-warn': color() === StylingTheme.WARN,\n 'kms-button--rounded': rounded()\n }\"\n [disabled]=\"disabled() || loading()\"\n (click)=\"buttonClick.emit($event)\"\n [type]=\"type()\"\n (keyup)=\"\n ($event.key === 'Enter' || $event.key === 'Space') &&\n buttonClick.emit($event)\n \"\n>\n <ng-container *ngTemplateOutlet=\"buttonTemplate\"></ng-container>\n</button>\n}\n\n<ng-template #buttonTemplate>\n @if (loading()) {\n <mat-spinner class=\"kms-button__spinner\" diameter=\"22\"></mat-spinner>\n } @if (icon()) {\n <kms-icon\n class=\"kms-button__icon\"\n [color]=\"iconColor()\"\n [size]=\"IconSize.XXS\"\n [icon]=\"icon()\"\n ></kms-icon>\n }\n {{ label() }}\n</ng-template>\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2$1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i1$4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "size", "dontUseSprite", "color"] }] }); }
|
|
1957
1981
|
}
|
|
1958
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1982
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
1959
1983
|
type: Component,
|
|
1960
|
-
args: [{ selector: 'kms-button', template: "<!-- Basic -->\n@if (appearance() == ButtonAppearance.BASIC) {\n<button\n mat-button\n [color]=\"color()\"\n class=\"kms-button\"\n [ngClass]=\"{\n 'kms-button--loading': loading(),\n 'kms-button--basic-primary': color() === StylingTheme.PRIMARY,\n 'kms-button--basic-accent': color() === StylingTheme.SECONDARY,\n 'kms-button--basic-warn': color() === StylingTheme.WARN,\n 'kms-button--rounded': rounded()\n }\"\n [disabled]=\"disabled() || loading()\"\n (click)=\"buttonClick.emit($event)\"\n [type]=\"type()\"\n (keyup)=\"\n ($event.key === 'Enter' || $event.key === 'Space') &&\n buttonClick.emit($event)\n \"\n>\n <ng-container *ngTemplateOutlet=\"buttonTemplate\"></ng-container>\n</button>\n}\n\n<!-- Flat -->\n@else if (appearance() == ButtonAppearance.FLAT) {\n<button\n mat-flat-button\n [color]=\"color()\"\n class=\"kms-button\"\n [ngClass]=\"{\n 'kms-button--loading': loading(),\n 'kms-button--flat-primary': color() === StylingTheme.PRIMARY,\n 'kms-button--flat-accent': color() === StylingTheme.SECONDARY,\n 'kms-button--flat-warn': color() === StylingTheme.WARN,\n 'kms-button--rounded': rounded()\n }\"\n [disabled]=\"disabled() || loading()\"\n (click)=\"buttonClick.emit($event)\"\n [type]=\"type()\"\n (keyup)=\"\n ($event.key === 'Enter' || $event.key === 'Space') &&\n buttonClick.emit($event)\n \"\n>\n <ng-container *ngTemplateOutlet=\"buttonTemplate\"></ng-container>\n</button>\n}\n\n<!-- Raised -->\n@else if (appearance() == ButtonAppearance.RAISED) {\n<button\n mat-raised-button\n [color]=\"color()\"\n class=\"kms-button\"\n [ngClass]=\"{\n 'kms-button--loading': loading(),\n 'kms-button--raised-primary': color() === StylingTheme.PRIMARY,\n 'kms-button--raised-accent': color() === StylingTheme.SECONDARY,\n 'kms-button--raised-warn': color() === StylingTheme.WARN,\n 'kms-button--rounded': rounded()\n }\"\n [disabled]=\"disabled() || loading()\"\n (click)=\"buttonClick.emit($event)\"\n [type]=\"type()\"\n (keyup)=\"\n ($event.key === 'Enter' || $event.key === 'Space') &&\n buttonClick.emit($event)\n \"\n>\n <ng-container *ngTemplateOutlet=\"buttonTemplate\"></ng-container>\n</button>\n}\n\n<ng-template #buttonTemplate>\n @if (loading()) {\n <mat-spinner class=\"kms-button__spinner\" diameter=\"22\"></mat-spinner>\n } @if (icon()) {\n <kms-icon\n class=\"kms-button__icon\"\n [color]=\"iconColor()\"\n [size]=\"IconSize.XXS\"\n [icon]=\"icon()\"\n ></kms-icon>\n }\n {{ label() }}\n</ng-template>\n" }]
|
|
1961
|
-
}] });
|
|
1984
|
+
args: [{ selector: 'kms-button', standalone: false, template: "<!-- Basic -->\n@if (appearance() == ButtonAppearance.BASIC) {\n<button\n mat-button\n [color]=\"color()\"\n class=\"kms-button\"\n [ngClass]=\"{\n 'kms-button--loading': loading(),\n 'kms-button--basic-primary': color() === StylingTheme.PRIMARY,\n 'kms-button--basic-accent': color() === StylingTheme.SECONDARY,\n 'kms-button--basic-warn': color() === StylingTheme.WARN,\n 'kms-button--rounded': rounded()\n }\"\n [disabled]=\"disabled() || loading()\"\n (click)=\"buttonClick.emit($event)\"\n [type]=\"type()\"\n (keyup)=\"\n ($event.key === 'Enter' || $event.key === 'Space') &&\n buttonClick.emit($event)\n \"\n>\n <ng-container *ngTemplateOutlet=\"buttonTemplate\"></ng-container>\n</button>\n}\n\n<!-- Flat -->\n@else if (appearance() == ButtonAppearance.FLAT) {\n<button\n mat-flat-button\n [color]=\"color()\"\n class=\"kms-button\"\n [ngClass]=\"{\n 'kms-button--loading': loading(),\n 'kms-button--flat-primary': color() === StylingTheme.PRIMARY,\n 'kms-button--flat-accent': color() === StylingTheme.SECONDARY,\n 'kms-button--flat-warn': color() === StylingTheme.WARN,\n 'kms-button--rounded': rounded()\n }\"\n [disabled]=\"disabled() || loading()\"\n (click)=\"buttonClick.emit($event)\"\n [type]=\"type()\"\n (keyup)=\"\n ($event.key === 'Enter' || $event.key === 'Space') &&\n buttonClick.emit($event)\n \"\n>\n <ng-container *ngTemplateOutlet=\"buttonTemplate\"></ng-container>\n</button>\n}\n\n<!-- Raised -->\n@else if (appearance() == ButtonAppearance.RAISED) {\n<button\n mat-raised-button\n [color]=\"color()\"\n class=\"kms-button\"\n [ngClass]=\"{\n 'kms-button--loading': loading(),\n 'kms-button--raised-primary': color() === StylingTheme.PRIMARY,\n 'kms-button--raised-accent': color() === StylingTheme.SECONDARY,\n 'kms-button--raised-warn': color() === StylingTheme.WARN,\n 'kms-button--rounded': rounded()\n }\"\n [disabled]=\"disabled() || loading()\"\n (click)=\"buttonClick.emit($event)\"\n [type]=\"type()\"\n (keyup)=\"\n ($event.key === 'Enter' || $event.key === 'Space') &&\n buttonClick.emit($event)\n \"\n>\n <ng-container *ngTemplateOutlet=\"buttonTemplate\"></ng-container>\n</button>\n}\n\n<ng-template #buttonTemplate>\n @if (loading()) {\n <mat-spinner class=\"kms-button__spinner\" diameter=\"22\"></mat-spinner>\n } @if (icon()) {\n <kms-icon\n class=\"kms-button__icon\"\n [color]=\"iconColor()\"\n [size]=\"IconSize.XXS\"\n [icon]=\"icon()\"\n ></kms-icon>\n }\n {{ label() }}\n</ng-template>\n" }]
|
|
1985
|
+
}], propDecorators: { color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], buttonClick: [{ type: i0.Output, args: ["buttonClick"] }], rounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "rounded", required: false }] }] } });
|
|
1962
1986
|
|
|
1963
1987
|
class TooltipIconComponent {
|
|
1964
1988
|
constructor() {
|
|
1965
|
-
this.tooltipText = input('');
|
|
1966
|
-
this.placement = input();
|
|
1967
|
-
this.delay = input(1000);
|
|
1968
|
-
this.iconSize = input(IconSizePx.XS);
|
|
1969
|
-
this.tooltipAlwaysVisible = input(false);
|
|
1970
|
-
}
|
|
1971
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1972
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.
|
|
1989
|
+
this.tooltipText = input('', ...(ngDevMode ? [{ debugName: "tooltipText" }] : []));
|
|
1990
|
+
this.placement = input(...(ngDevMode ? [undefined, { debugName: "placement" }] : []));
|
|
1991
|
+
this.delay = input(1000, ...(ngDevMode ? [{ debugName: "delay" }] : []));
|
|
1992
|
+
this.iconSize = input(IconSizePx.XS, ...(ngDevMode ? [{ debugName: "iconSize" }] : []));
|
|
1993
|
+
this.tooltipAlwaysVisible = input(false, ...(ngDevMode ? [{ debugName: "tooltipAlwaysVisible" }] : []));
|
|
1994
|
+
}
|
|
1995
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: TooltipIconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1996
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: TooltipIconComponent, isStandalone: false, selector: "kms-tooltip-icon", inputs: { tooltipText: { classPropertyName: "tooltipText", publicName: "tooltipText", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, delay: { classPropertyName: "delay", publicName: "delay", isSignal: true, isRequired: false, transformFunction: null }, iconSize: { classPropertyName: "iconSize", publicName: "iconSize", isSignal: true, isRequired: false, transformFunction: null }, tooltipAlwaysVisible: { classPropertyName: "tooltipAlwaysVisible", publicName: "tooltipAlwaysVisible", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "button", first: true, predicate: ["button"], descendants: true }, { propertyName: "tooltip", first: true, predicate: ["tooltip"], descendants: true }], ngImport: i0, template: "<div #tooltipContent>\n @if (tooltipText()) {\n {{ tooltipText() }}\n } @else {\n <ng-content></ng-content>\n }\n</div>\n\n<kms-icon\n icon=\"ic_info\"\n [size]=\"iconSize()\"\n [kmsTooltip]=\"tooltipContent\"\n [placement]=\"placement()\"\n [delay]=\"delay()\"\n [alwaysVisible]=\"tooltipAlwaysVisible()\"\n></kms-icon>\n", styles: [""], dependencies: [{ kind: "directive", type: TooltipDirective, selector: "[kmsTooltip]", inputs: ["kmsTooltip", "placement", "delay", "alwaysVisible"] }, { kind: "component", type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "size", "dontUseSprite", "color"] }] }); }
|
|
1973
1997
|
}
|
|
1974
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1998
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: TooltipIconComponent, decorators: [{
|
|
1975
1999
|
type: Component,
|
|
1976
|
-
args: [{ selector: 'kms-tooltip-icon', template: "<div #tooltipContent>\n
|
|
2000
|
+
args: [{ standalone: false, selector: 'kms-tooltip-icon', template: "<div #tooltipContent>\n @if (tooltipText()) {\n {{ tooltipText() }}\n } @else {\n <ng-content></ng-content>\n }\n</div>\n\n<kms-icon\n icon=\"ic_info\"\n [size]=\"iconSize()\"\n [kmsTooltip]=\"tooltipContent\"\n [placement]=\"placement()\"\n [delay]=\"delay()\"\n [alwaysVisible]=\"tooltipAlwaysVisible()\"\n></kms-icon>\n" }]
|
|
1977
2001
|
}], propDecorators: { button: [{
|
|
1978
2002
|
type: ViewChild,
|
|
1979
2003
|
args: ['button']
|
|
1980
2004
|
}], tooltip: [{
|
|
1981
2005
|
type: ViewChild,
|
|
1982
2006
|
args: ['tooltip']
|
|
1983
|
-
}] } });
|
|
2007
|
+
}], tooltipText: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipText", required: false }] }], placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: false }] }], delay: [{ type: i0.Input, args: [{ isSignal: true, alias: "delay", required: false }] }], iconSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconSize", required: false }] }], tooltipAlwaysVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipAlwaysVisible", required: false }] }] } });
|
|
1984
2008
|
|
|
1985
2009
|
class ColorInputComponent extends FormControlParentComponent {
|
|
1986
|
-
constructor(
|
|
1987
|
-
super(
|
|
1988
|
-
this.formBuilder = formBuilder;
|
|
2010
|
+
constructor(renderer) {
|
|
2011
|
+
super(renderer);
|
|
1989
2012
|
this.renderer = renderer;
|
|
1990
2013
|
this.label = '';
|
|
1991
2014
|
this.tooltipText = '';
|
|
1992
2015
|
this.placeholder = '';
|
|
1993
2016
|
}
|
|
1994
2017
|
ngOnInit() {
|
|
1995
|
-
this.form =
|
|
1996
|
-
color: '',
|
|
2018
|
+
this.form = new UntypedFormGroup({
|
|
2019
|
+
color: new UntypedFormControl(''),
|
|
1997
2020
|
});
|
|
1998
2021
|
super.ngOnInit();
|
|
1999
2022
|
this.formInitialized = true;
|
|
@@ -2023,25 +2046,25 @@ class ColorInputComponent extends FormControlParentComponent {
|
|
|
2023
2046
|
this.internalValue = color;
|
|
2024
2047
|
this.change(color);
|
|
2025
2048
|
}
|
|
2026
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2027
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
2049
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ColorInputComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2050
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: ColorInputComponent, isStandalone: false, selector: "kms-color-input", inputs: { label: "label", tooltipText: "tooltipText", placeholder: "placeholder" }, providers: [
|
|
2028
2051
|
{
|
|
2029
2052
|
provide: NG_VALUE_ACCESSOR,
|
|
2030
2053
|
useExisting: forwardRef(() => ColorInputComponent),
|
|
2031
2054
|
multi: true,
|
|
2032
2055
|
},
|
|
2033
|
-
], usesInheritance: true, ngImport: i0, template: "\n<form [formGroup]=\"form\"
|
|
2056
|
+
], usesInheritance: true, ngImport: i0, template: "\n@if (formInitialized) {\n <form [formGroup]=\"form\">\n <div>\n <mat-form-field class=\"colorInput\">\n @if (tooltipText) {\n <kms-tooltip-icon [tooltipText]=\"tooltipText\"></kms-tooltip-icon>\n }\n <mat-label>{{ label }}</mat-label>\n <input type=\"text\" [(ngModel)]=\"value\" matInput formControlName=\"color\" [placeholder]=\"placeholder\" [ngClass]=\"{'my-inValid': !matchesHex(value)}\" />\n <input type=\"color\" [value]=\"value && matchesHex(value) ? value : '#ffffff'\" (change)=\"updateSelectedColor($event)\" [ngClass]=\"{'my-inValid': !matchesHex(value)}\" />\n </mat-form-field>\n </div>\n </form>\n}", styles: [""], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i1$3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i1$3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2$2.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: TooltipIconComponent, selector: "kms-tooltip-icon", inputs: ["tooltipText", "placement", "delay", "iconSize", "tooltipAlwaysVisible"] }] }); }
|
|
2034
2057
|
}
|
|
2035
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2058
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ColorInputComponent, decorators: [{
|
|
2036
2059
|
type: Component,
|
|
2037
|
-
args: [{ selector: 'kms-color-input', providers: [
|
|
2060
|
+
args: [{ standalone: false, selector: 'kms-color-input', providers: [
|
|
2038
2061
|
{
|
|
2039
2062
|
provide: NG_VALUE_ACCESSOR,
|
|
2040
2063
|
useExisting: forwardRef(() => ColorInputComponent),
|
|
2041
2064
|
multi: true,
|
|
2042
2065
|
},
|
|
2043
|
-
], template: "\n<form [formGroup]=\"form\"
|
|
2044
|
-
}], ctorParameters: () => [{ type:
|
|
2066
|
+
], template: "\n@if (formInitialized) {\n <form [formGroup]=\"form\">\n <div>\n <mat-form-field class=\"colorInput\">\n @if (tooltipText) {\n <kms-tooltip-icon [tooltipText]=\"tooltipText\"></kms-tooltip-icon>\n }\n <mat-label>{{ label }}</mat-label>\n <input type=\"text\" [(ngModel)]=\"value\" matInput formControlName=\"color\" [placeholder]=\"placeholder\" [ngClass]=\"{'my-inValid': !matchesHex(value)}\" />\n <input type=\"color\" [value]=\"value && matchesHex(value) ? value : '#ffffff'\" (change)=\"updateSelectedColor($event)\" [ngClass]=\"{'my-inValid': !matchesHex(value)}\" />\n </mat-form-field>\n </div>\n </form>\n}" }]
|
|
2067
|
+
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { label: [{
|
|
2045
2068
|
type: Input
|
|
2046
2069
|
}], tooltipText: [{
|
|
2047
2070
|
type: Input
|
|
@@ -2088,28 +2111,27 @@ class ConfirmationDialogComponent {
|
|
|
2088
2111
|
});
|
|
2089
2112
|
});
|
|
2090
2113
|
}
|
|
2091
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2092
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2114
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ConfirmationDialogComponent, deps: [{ token: i1$8.MatDialogRef }, { token: i0.NgZone }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2115
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: ConfirmationDialogComponent, isStandalone: false, selector: "kms-confirmation-dialog", ngImport: i0, template: "<div class=\"dialog-container\">\n <div class=\"dialog-header\">\n <h4>{{ data.title }}</h4>\n </div>\n <div class=\"dialog-content\">\n {{ data.message }}\n </div>\n <div class=\"dialog-footer\">\n <button\n mat-flat-button\n color=\"accent\"\n (click)=\"onClickAction(ButtonDialogType.secondary)\"\n >\n {{ data.buttons.secondary }}\n </button>\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"onClickAction(ButtonDialogType.primary)\"\n >\n {{ data.buttons.primary }}\n </button>\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: i2$1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }] }); }
|
|
2093
2116
|
}
|
|
2094
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2117
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ConfirmationDialogComponent, decorators: [{
|
|
2095
2118
|
type: Component,
|
|
2096
|
-
args: [{ selector: 'kms-confirmation-dialog', template: "<div class=\"dialog-container\">\n <div class=\"dialog-header\">\n <h4>{{ data.title }}</h4>\n </div>\n <div class=\"dialog-content\">\n {{ data.message }}\n </div>\n <div class=\"dialog-footer\">\n <button\n mat-flat-button\n color=\"accent\"\n (click)=\"onClickAction(ButtonDialogType.secondary)\"\n >\n {{ data.buttons.secondary }}\n </button>\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"onClickAction(ButtonDialogType.primary)\"\n >\n {{ data.buttons.primary }}\n </button>\n </div>\n</div>\n" }]
|
|
2097
|
-
}], ctorParameters: () => [{ type: i1$
|
|
2119
|
+
args: [{ standalone: false, selector: 'kms-confirmation-dialog', template: "<div class=\"dialog-container\">\n <div class=\"dialog-header\">\n <h4>{{ data.title }}</h4>\n </div>\n <div class=\"dialog-content\">\n {{ data.message }}\n </div>\n <div class=\"dialog-footer\">\n <button\n mat-flat-button\n color=\"accent\"\n (click)=\"onClickAction(ButtonDialogType.secondary)\"\n >\n {{ data.buttons.secondary }}\n </button>\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"onClickAction(ButtonDialogType.primary)\"\n >\n {{ data.buttons.primary }}\n </button>\n </div>\n</div>\n" }]
|
|
2120
|
+
}], ctorParameters: () => [{ type: i1$8.MatDialogRef }, { type: i0.NgZone }, { type: undefined, decorators: [{
|
|
2098
2121
|
type: Inject,
|
|
2099
2122
|
args: [MAT_DIALOG_DATA]
|
|
2100
2123
|
}] }] });
|
|
2101
2124
|
|
|
2102
2125
|
class EnumRadiogroupComponent extends FormControlParentComponent {
|
|
2103
|
-
constructor(
|
|
2104
|
-
super(
|
|
2105
|
-
this.formBuilder = formBuilder;
|
|
2126
|
+
constructor(renderer) {
|
|
2127
|
+
super(renderer);
|
|
2106
2128
|
this.renderer = renderer;
|
|
2107
2129
|
this.translationPrefix = '';
|
|
2108
2130
|
}
|
|
2109
2131
|
ngOnInit() {
|
|
2110
2132
|
this.optionValues = Object.keys(this.optionsEnum).filter((x) => !(parseInt(x) >= 0));
|
|
2111
|
-
this.form =
|
|
2112
|
-
enumData: [],
|
|
2133
|
+
this.form = new UntypedFormGroup({
|
|
2134
|
+
enumData: new UntypedFormControl([]),
|
|
2113
2135
|
});
|
|
2114
2136
|
this.formInitialized = true;
|
|
2115
2137
|
this.form.valueChanges.subscribe((value) => {
|
|
@@ -2118,25 +2140,25 @@ class EnumRadiogroupComponent extends FormControlParentComponent {
|
|
|
2118
2140
|
});
|
|
2119
2141
|
super.ngOnInit();
|
|
2120
2142
|
}
|
|
2121
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2122
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
2143
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: EnumRadiogroupComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2144
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: EnumRadiogroupComponent, isStandalone: false, selector: "kms-enum-radiogroup", inputs: { header: "header", optionsEnum: "optionsEnum", translationPrefix: "translationPrefix" }, providers: [
|
|
2123
2145
|
{
|
|
2124
2146
|
provide: NG_VALUE_ACCESSOR,
|
|
2125
2147
|
useExisting: forwardRef(() => EnumRadiogroupComponent),
|
|
2126
2148
|
multi: true,
|
|
2127
2149
|
},
|
|
2128
|
-
], usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"form\">\n <div>{{ header }}</div>\n <mat-radio-group formControlName=\"enumData\" [disabled]=\"disabled\" #child>\n <mat-radio-button\n
|
|
2150
|
+
], usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"form\">\n <div>{{ header }}</div>\n <mat-radio-group formControlName=\"enumData\" [disabled]=\"disabled\" #child>\n @for (choice of optionValues; track choice) {\n <mat-radio-button\n [value]=\"choice\"\n [checked]=\"value === choice\"\n >{{ translationPrefix + '.' + choice | translate }}</mat-radio-button\n >\n }\n </mat-radio-group>\n </form>\n", dependencies: [{ kind: "directive", type: i1$6.MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioGroup"] }, { kind: "component", type: i1$6.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }] }); }
|
|
2129
2151
|
}
|
|
2130
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2152
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: EnumRadiogroupComponent, decorators: [{
|
|
2131
2153
|
type: Component,
|
|
2132
|
-
args: [{ selector: 'kms-enum-radiogroup', providers: [
|
|
2154
|
+
args: [{ standalone: false, selector: 'kms-enum-radiogroup', providers: [
|
|
2133
2155
|
{
|
|
2134
2156
|
provide: NG_VALUE_ACCESSOR,
|
|
2135
2157
|
useExisting: forwardRef(() => EnumRadiogroupComponent),
|
|
2136
2158
|
multi: true,
|
|
2137
2159
|
},
|
|
2138
|
-
], template: "<form [formGroup]=\"form\">\n <div>{{ header }}</div>\n <mat-radio-group formControlName=\"enumData\" [disabled]=\"disabled\" #child>\n <mat-radio-button\n
|
|
2139
|
-
}], ctorParameters: () => [{ type:
|
|
2160
|
+
], template: "<form [formGroup]=\"form\">\n <div>{{ header }}</div>\n <mat-radio-group formControlName=\"enumData\" [disabled]=\"disabled\" #child>\n @for (choice of optionValues; track choice) {\n <mat-radio-button\n [value]=\"choice\"\n [checked]=\"value === choice\"\n >{{ translationPrefix + '.' + choice | translate }}</mat-radio-button\n >\n }\n </mat-radio-group>\n </form>\n" }]
|
|
2161
|
+
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { header: [{
|
|
2140
2162
|
type: Input
|
|
2141
2163
|
}], optionsEnum: [{
|
|
2142
2164
|
type: Input
|
|
@@ -2166,16 +2188,12 @@ const MAX_SIZE_BYTES = 2097152;
|
|
|
2166
2188
|
class FileInputComponent {
|
|
2167
2189
|
/**
|
|
2168
2190
|
* Constructor
|
|
2169
|
-
* @param formBuilder
|
|
2170
2191
|
* @param appRef
|
|
2171
2192
|
* @param cd
|
|
2172
2193
|
* @param translateService
|
|
2173
2194
|
* @param renderer
|
|
2174
2195
|
*/
|
|
2175
|
-
constructor(
|
|
2176
|
-
//private translateService: TranslateService,
|
|
2177
|
-
renderer) {
|
|
2178
|
-
this.formBuilder = formBuilder;
|
|
2196
|
+
constructor(appRef, cd, renderer) {
|
|
2179
2197
|
this.appRef = appRef;
|
|
2180
2198
|
this.cd = cd;
|
|
2181
2199
|
this.renderer = renderer;
|
|
@@ -2186,7 +2204,7 @@ class FileInputComponent {
|
|
|
2186
2204
|
this.maxSizeBytes = MAX_SIZE_BYTES;
|
|
2187
2205
|
this.resizePixels = 0;
|
|
2188
2206
|
this.acceptedFileMimetypes = 'image/jpeg, image/jpg, image/png';
|
|
2189
|
-
this.form =
|
|
2207
|
+
this.form = new UntypedFormGroup({
|
|
2190
2208
|
ImageIdent: new UntypedFormControl(''),
|
|
2191
2209
|
ImageLink: new UntypedFormControl(''),
|
|
2192
2210
|
Filename: new UntypedFormControl(''),
|
|
@@ -2219,7 +2237,6 @@ class FileInputComponent {
|
|
|
2219
2237
|
const file = ev.target.files[0];
|
|
2220
2238
|
if (file.size > this.maxSizeBytes) {
|
|
2221
2239
|
this.clearInputValue(ev);
|
|
2222
|
-
//alert(this.translateService.instant('errors.fileTooBig'));
|
|
2223
2240
|
return;
|
|
2224
2241
|
}
|
|
2225
2242
|
else {
|
|
@@ -2333,8 +2350,8 @@ class FileInputComponent {
|
|
|
2333
2350
|
const element = ev.target;
|
|
2334
2351
|
element.value = '';
|
|
2335
2352
|
}
|
|
2336
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2337
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
2353
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: FileInputComponent, deps: [{ token: i0.ApplicationRef }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2354
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: FileInputComponent, isStandalone: false, selector: "kms-file-input", inputs: { label: "label", previewImage: "previewImage", allowRemove: "allowRemove", previewImageText: "previewImageText", maxSizeBytes: "maxSizeBytes", resizePixels: "resizePixels", acceptedFileMimetypes: "acceptedFileMimetypes" }, outputs: { formDataChanged: "formDataChanged" }, providers: [
|
|
2338
2355
|
{
|
|
2339
2356
|
provide: NG_VALUE_ACCESSOR,
|
|
2340
2357
|
useExisting: forwardRef(() => FileInputComponent),
|
|
@@ -2345,11 +2362,11 @@ class FileInputComponent {
|
|
|
2345
2362
|
useExisting: forwardRef(() => FileInputComponent),
|
|
2346
2363
|
multi: true,
|
|
2347
2364
|
},
|
|
2348
|
-
], viewQueries: [{ propertyName: "fileInput", first: true, predicate: ["fileInput"], descendants: true }], ngImport: i0, template: "<form [formGroup]=\"form\" (change)=\"newImageLoading = true\" class=\"fileInput\">\n
|
|
2365
|
+
], viewQueries: [{ propertyName: "fileInput", first: true, predicate: ["fileInput"], descendants: true }], ngImport: i0, template: "<form [formGroup]=\"form\" (change)=\"newImageLoading = true\" class=\"fileInput\">\n @if (form.value.Filename && previewImage) {\n <div>\n @if (newImageLoading) {\n <div>\n {{ 'file-input.loading' | translate }}\n </div>\n }\n @if (!newImageLoading) {\n <div>\n <div class=\"\">\n <div class=\"\">\n @if (\n form.value.ImageLink &&\n form.value.ImageLink !== '' &&\n !(form.value.ImageAsDataURL && form.value.ImageAsDataURL !== '')\n ) {\n <img\n [src]=\"form.value.ImageAsDataURL\"\n [src]=\"form.value.ImageLink\"\n style=\"height: 40px; width: fit-content\"\n />\n }\n @if (\n form.value.ImageAsDataURL && form.value.ImageAsDataURL !== ''\n ) {\n <img\n [src]=\"form.value.ImageAsDataURL\"\n style=\"height: 40px; width: fit-content\"\n />\n }\n </div>\n <div class=\"\">{{ form.value.Filename }}</div>\n <div class=\"\">\n @if (allowRemove) {\n <div (click)=\"removeFromList()\">\n <kms-icon\n icon=\"trash\"\n [size]=\"IconSizePx.XS\"\n iconClass=\"color-black\"\n ></kms-icon>\n {{ 'file-input.remove' }}\n </div>\n }\n </div>\n </div>\n </div>\n }\n </div>\n }\n @if (!previewImage) {\n <div>\n <div class=\"\">{{ form.value.Filename }}</div>\n </div>\n }\n\n <button\n (click)=\"selectImageOverlay()\"\n class=\"button-primary-font-color\"\n mat-stroked-button\n >\n <span>{{ label }}</span>\n </button>\n <input\n type=\"file\"\n [accept]=\"acceptedFileMimetypes\"\n style=\"display: none\"\n #fileInput\n (click)=\"clearInputValue($event)\"\n (change)=\"selectImage($event)\"\n />\n\n <input type=\"hidden\" formControlName=\"ImageIdent\" />\n <input type=\"hidden\" formControlName=\"ImageLink\" />\n <input type=\"hidden\" formControlName=\"Filename\" />\n <input type=\"hidden\" formControlName=\"ImageAsDataURL\" />\n <input type=\"hidden\" formControlName=\"Text\" />\n</form>\n", styles: [""], dependencies: [{ kind: "component", type: i2$1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "size", "dontUseSprite", "color"] }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }] }); }
|
|
2349
2366
|
}
|
|
2350
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2367
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: FileInputComponent, decorators: [{
|
|
2351
2368
|
type: Component,
|
|
2352
|
-
args: [{ selector: 'kms-file-input', providers: [
|
|
2369
|
+
args: [{ standalone: false, selector: 'kms-file-input', providers: [
|
|
2353
2370
|
{
|
|
2354
2371
|
provide: NG_VALUE_ACCESSOR,
|
|
2355
2372
|
useExisting: forwardRef(() => FileInputComponent),
|
|
@@ -2360,8 +2377,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
2360
2377
|
useExisting: forwardRef(() => FileInputComponent),
|
|
2361
2378
|
multi: true,
|
|
2362
2379
|
},
|
|
2363
|
-
], template: "<form [formGroup]=\"form\" (change)=\"newImageLoading = true\" class=\"fileInput\">\n
|
|
2364
|
-
}], ctorParameters: () => [{ type:
|
|
2380
|
+
], template: "<form [formGroup]=\"form\" (change)=\"newImageLoading = true\" class=\"fileInput\">\n @if (form.value.Filename && previewImage) {\n <div>\n @if (newImageLoading) {\n <div>\n {{ 'file-input.loading' | translate }}\n </div>\n }\n @if (!newImageLoading) {\n <div>\n <div class=\"\">\n <div class=\"\">\n @if (\n form.value.ImageLink &&\n form.value.ImageLink !== '' &&\n !(form.value.ImageAsDataURL && form.value.ImageAsDataURL !== '')\n ) {\n <img\n [src]=\"form.value.ImageAsDataURL\"\n [src]=\"form.value.ImageLink\"\n style=\"height: 40px; width: fit-content\"\n />\n }\n @if (\n form.value.ImageAsDataURL && form.value.ImageAsDataURL !== ''\n ) {\n <img\n [src]=\"form.value.ImageAsDataURL\"\n style=\"height: 40px; width: fit-content\"\n />\n }\n </div>\n <div class=\"\">{{ form.value.Filename }}</div>\n <div class=\"\">\n @if (allowRemove) {\n <div (click)=\"removeFromList()\">\n <kms-icon\n icon=\"trash\"\n [size]=\"IconSizePx.XS\"\n iconClass=\"color-black\"\n ></kms-icon>\n {{ 'file-input.remove' }}\n </div>\n }\n </div>\n </div>\n </div>\n }\n </div>\n }\n @if (!previewImage) {\n <div>\n <div class=\"\">{{ form.value.Filename }}</div>\n </div>\n }\n\n <button\n (click)=\"selectImageOverlay()\"\n class=\"button-primary-font-color\"\n mat-stroked-button\n >\n <span>{{ label }}</span>\n </button>\n <input\n type=\"file\"\n [accept]=\"acceptedFileMimetypes\"\n style=\"display: none\"\n #fileInput\n (click)=\"clearInputValue($event)\"\n (change)=\"selectImage($event)\"\n />\n\n <input type=\"hidden\" formControlName=\"ImageIdent\" />\n <input type=\"hidden\" formControlName=\"ImageLink\" />\n <input type=\"hidden\" formControlName=\"Filename\" />\n <input type=\"hidden\" formControlName=\"ImageAsDataURL\" />\n <input type=\"hidden\" formControlName=\"Text\" />\n</form>\n" }]
|
|
2381
|
+
}], ctorParameters: () => [{ type: i0.ApplicationRef }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }], propDecorators: { fileInput: [{
|
|
2365
2382
|
type: ViewChild,
|
|
2366
2383
|
args: ['fileInput']
|
|
2367
2384
|
}], label: [{
|
|
@@ -2420,8 +2437,8 @@ class FlyoutComponent {
|
|
|
2420
2437
|
setDropdownListHeight(contentHeight) {
|
|
2421
2438
|
this.targetHeight = `${contentHeight}px`;
|
|
2422
2439
|
}
|
|
2423
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2424
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
2440
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: FlyoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2441
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: FlyoutComponent, isStandalone: false, selector: "kms-flyout", inputs: { icon: "icon", headerCssClass: "headerCssClass", bodyCssClass: "bodyCssClass", headerTitle: "headerTitle", headerText: "headerText", hasButtonForMore: "hasButtonForMore", moreText: "moreText", lessText: "lessText" }, viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true }, { propertyName: "flyoutHeader", first: true, predicate: ["flyoutHeader"], descendants: true }], ngImport: i0, template: "<div class=\"flyout\" [ngClass]=\"{ 'is-active': isDropdownOpened }\">\n <div\n class=\"flyout-header\"\n (click)=\"toggleDropdownHeader()\"\n [ngClass]=\"headerCssClass\"\n >\n <span [innerHtml]=\"headerTitle | kmsSafeHtml\"></span>\n <span [innerHtml]=\"headerText | kmsSafeHtml\"></span>\n\n <ng-content select=\"[header]\"></ng-content>\n\n @if (hasButtonForMore) {\n <div\n (click)=\"toggleDropdown()\"\n class=\"flyout-header-more\"\n >\n @if (!isDropdownOpened) {\n <span>\n {{ moreText }}\n <kms-icon [icon]=\"'chevron-down'\" [size]=\"16\"> </kms-icon>\n </span>\n }\n @if (isDropdownOpened) {\n <span>\n {{ lessText }}\n <kms-icon [icon]=\"'chevron-top'\" [size]=\"16\"> </kms-icon>\n </span>\n }\n </div>\n }\n </div>\n <div\n class=\"flyout-body\"\n [ngClass]=\"bodyCssClass\"\n tabindex=\"0\"\n [@dropdownAnimation]=\"{\n value: isDropdownOpened,\n params: { targetHeight: targetHeight, animationTime: '500' }\n }\"\n getMaxHeight=\"inner\"\n (sumOfHeight)=\"setDropdownListHeight($event)\"\n #flyoutHeader\n >\n @if (isDropdownOpened || !hasButtonForMore) {\n <div class=\"inner\" #content>\n <ng-content></ng-content>\n </div>\n }\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: GetMaxHeightDirective, selector: "[getMaxHeight]", inputs: ["getMaxHeight"], outputs: ["maxHeightChanged", "sumOfHeight"] }, { kind: "component", type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "size", "dontUseSprite", "color"] }, { kind: "pipe", type: SafeHtmlPipe, name: "kmsSafeHtml" }], animations: [
|
|
2425
2442
|
trigger('dropdownAnimation', [
|
|
2426
2443
|
state('true', style({
|
|
2427
2444
|
height: '{{targetHeight}}',
|
|
@@ -2445,9 +2462,9 @@ class FlyoutComponent {
|
|
|
2445
2462
|
]),
|
|
2446
2463
|
] }); }
|
|
2447
2464
|
}
|
|
2448
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2465
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: FlyoutComponent, decorators: [{
|
|
2449
2466
|
type: Component,
|
|
2450
|
-
args: [{ selector: 'kms-flyout', animations: [
|
|
2467
|
+
args: [{ standalone: false, selector: 'kms-flyout', animations: [
|
|
2451
2468
|
trigger('dropdownAnimation', [
|
|
2452
2469
|
state('true', style({
|
|
2453
2470
|
height: '{{targetHeight}}',
|
|
@@ -2469,7 +2486,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
2469
2486
|
},
|
|
2470
2487
|
}),
|
|
2471
2488
|
]),
|
|
2472
|
-
], template: "<div class=\"flyout\" [ngClass]=\"{ 'is-active': isDropdownOpened }\">\n <div\n class=\"flyout-header\"\n (click)=\"toggleDropdownHeader()\"\n [ngClass]=\"headerCssClass\"\n
|
|
2489
|
+
], template: "<div class=\"flyout\" [ngClass]=\"{ 'is-active': isDropdownOpened }\">\n <div\n class=\"flyout-header\"\n (click)=\"toggleDropdownHeader()\"\n [ngClass]=\"headerCssClass\"\n >\n <span [innerHtml]=\"headerTitle | kmsSafeHtml\"></span>\n <span [innerHtml]=\"headerText | kmsSafeHtml\"></span>\n\n <ng-content select=\"[header]\"></ng-content>\n\n @if (hasButtonForMore) {\n <div\n (click)=\"toggleDropdown()\"\n class=\"flyout-header-more\"\n >\n @if (!isDropdownOpened) {\n <span>\n {{ moreText }}\n <kms-icon [icon]=\"'chevron-down'\" [size]=\"16\"> </kms-icon>\n </span>\n }\n @if (isDropdownOpened) {\n <span>\n {{ lessText }}\n <kms-icon [icon]=\"'chevron-top'\" [size]=\"16\"> </kms-icon>\n </span>\n }\n </div>\n }\n </div>\n <div\n class=\"flyout-body\"\n [ngClass]=\"bodyCssClass\"\n tabindex=\"0\"\n [@dropdownAnimation]=\"{\n value: isDropdownOpened,\n params: { targetHeight: targetHeight, animationTime: '500' }\n }\"\n getMaxHeight=\"inner\"\n (sumOfHeight)=\"setDropdownListHeight($event)\"\n #flyoutHeader\n >\n @if (isDropdownOpened || !hasButtonForMore) {\n <div class=\"inner\" #content>\n <ng-content></ng-content>\n </div>\n }\n </div>\n</div>\n" }]
|
|
2473
2490
|
}], propDecorators: { icon: [{
|
|
2474
2491
|
type: Input
|
|
2475
2492
|
}], headerCssClass: [{
|
|
@@ -2558,12 +2575,12 @@ class ImageSliderComponent {
|
|
|
2558
2575
|
this.updateSwipers();
|
|
2559
2576
|
}
|
|
2560
2577
|
}
|
|
2561
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2562
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
2578
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ImageSliderComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2579
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: ImageSliderComponent, isStandalone: false, selector: "kms-image-slider", inputs: { slides: "slides", editMode: "editMode", imagesToSave: "imagesToSave" }, outputs: { deleteImageEvent: "deleteImageEvent", orderChanged: "orderChanged" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"image-slider-container\">\n <swiper-container\n class=\"swiper-main-view-container\"\n thumbs-swiper=\".swiper-carousel-container\"\n >\n @for (slide of slides; track slide) {\n <swiper-slide>\n <img [src]=\"slide\" loading=\"lazy\" />\n </swiper-slide>\n }\n </swiper-container>\n\n <swiper-container\n class=\"swiper-carousel-container\"\n thumbsSlider=\"\"\n cdkDropList\n cdkDropListOrientation=\"horizontal\"\n (cdkDropListDropped)=\"onOrderChanged($event)\"\n >\n @for (slide of slides; track slide; let index = $index) {\n <swiper-slide\n [class.swiper-slide-default]=\"index === 0 && editMode\"\n >\n @if (editMode) {\n <div>\n <button cdkDrag class=\"drag-button\" mat-menu-item></button>\n <button\n class=\"delete-button\"\n mat-menu-item\n (click)=\"deleteImage(index)\"\n >\n <kms-icon icon=\"trash\" [size]=\"15\"></kms-icon>\n </button>\n </div>\n }\n <img [src]=\"slide\" loading=\"lazy\" />\n @if (index === 0 && editMode) {\n <div class=\"swiper-slide-default-text\">\n {{ 'common.defaultImage' | translate }}\n </div>\n }\n </swiper-slide>\n }\n </swiper-container>\n</div>\n", dependencies: [{ kind: "directive", type: i1$9.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i1$9.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "component", type: i2$3.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "component", type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "size", "dontUseSprite", "color"] }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }] }); }
|
|
2563
2580
|
}
|
|
2564
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2581
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ImageSliderComponent, decorators: [{
|
|
2565
2582
|
type: Component,
|
|
2566
|
-
args: [{ selector: 'kms-image-slider', template: "<div class=\"image-slider-container\">\n <swiper-container\n class=\"swiper-main-view-container\"\n thumbs-swiper=\".swiper-carousel-container\"\n
|
|
2583
|
+
args: [{ standalone: false, selector: 'kms-image-slider', template: "<div class=\"image-slider-container\">\n <swiper-container\n class=\"swiper-main-view-container\"\n thumbs-swiper=\".swiper-carousel-container\"\n >\n @for (slide of slides; track slide) {\n <swiper-slide>\n <img [src]=\"slide\" loading=\"lazy\" />\n </swiper-slide>\n }\n </swiper-container>\n\n <swiper-container\n class=\"swiper-carousel-container\"\n thumbsSlider=\"\"\n cdkDropList\n cdkDropListOrientation=\"horizontal\"\n (cdkDropListDropped)=\"onOrderChanged($event)\"\n >\n @for (slide of slides; track slide; let index = $index) {\n <swiper-slide\n [class.swiper-slide-default]=\"index === 0 && editMode\"\n >\n @if (editMode) {\n <div>\n <button cdkDrag class=\"drag-button\" mat-menu-item></button>\n <button\n class=\"delete-button\"\n mat-menu-item\n (click)=\"deleteImage(index)\"\n >\n <kms-icon icon=\"trash\" [size]=\"15\"></kms-icon>\n </button>\n </div>\n }\n <img [src]=\"slide\" loading=\"lazy\" />\n @if (index === 0 && editMode) {\n <div class=\"swiper-slide-default-text\">\n {{ 'common.defaultImage' | translate }}\n </div>\n }\n </swiper-slide>\n }\n </swiper-container>\n</div>\n" }]
|
|
2567
2584
|
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { slides: [{
|
|
2568
2585
|
type: Input
|
|
2569
2586
|
}], editMode: [{
|
|
@@ -2595,12 +2612,12 @@ class KMSAccordionItemComponent {
|
|
|
2595
2612
|
this.panelOpenState = false;
|
|
2596
2613
|
}
|
|
2597
2614
|
ngOnInit() { }
|
|
2598
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2599
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
2615
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: KMSAccordionItemComponent, deps: [{ token: i1$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2616
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: KMSAccordionItemComponent, isStandalone: false, selector: "kms-accordion-item", inputs: { showAsCard: "showAsCard", isSmall: "isSmall", expanded: "expanded", itemTitle: "itemTitle" }, ngImport: i0, template: "<mat-expansion-panel\n class=\"kms-accordion\"\n [ngClass]=\"{\n 'kms-accordion--flat': !showAsCard,\n 'kms-accordion--small': isSmall\n }\"\n (opened)=\"panelOpenState = true\"\n (closed)=\"panelOpenState = false\"\n [expanded]=\"expanded\"\n hideToggle=\"true\"\n >\n <mat-expansion-panel-header class=\"kms-accordion__header\">\n <mat-panel-title class=\"mat-subheading-2 kms-accordion__title\">\n <div [innerHtml]=\"itemTitleTrustHtml\"></div>\n <ng-content select=\"[itemTitleElement]\"></ng-content>\n </mat-panel-title>\n <div class=\"kms-accordion__header-icon-wrapper\">\n @if (!panelOpenState) {\n <kms-icon\n icon=\"ic_plus\"\n [color]=\"Color.PRIMARY\"\n [size]=\"isSmall ? 16 : 22\"\n ></kms-icon>\n }\n @if (panelOpenState) {\n <kms-icon\n icon=\"ic_minus\"\n [color]=\"Color.PRIMARY\"\n [size]=\"isSmall ? 16 : 22\"\n ></kms-icon>\n }\n </div>\n </mat-expansion-panel-header>\n <ng-content></ng-content>\n</mat-expansion-panel>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i3$2.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i3$2.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: i3$2.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "component", type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "size", "dontUseSprite", "color"] }] }); }
|
|
2600
2617
|
}
|
|
2601
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2618
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: KMSAccordionItemComponent, decorators: [{
|
|
2602
2619
|
type: Component,
|
|
2603
|
-
args: [{ selector: 'kms-accordion-item', template: "<mat-expansion-panel\n class=\"kms-accordion\"\n [ngClass]=\"{\n 'kms-accordion--flat': !showAsCard,\n 'kms-accordion--small': isSmall\n }\"\n (opened)=\"panelOpenState = true\"\n (closed)=\"panelOpenState = false\"\n [expanded]=\"expanded\"\n hideToggle=\"true\"\n>\n <mat-expansion-panel-header class=\"kms-accordion__header\">\n <mat-panel-title class=\"mat-subheading-2 kms-accordion__title\">\n <div [innerHtml]=\"itemTitleTrustHtml\"></div>\n <ng-content select=\"[itemTitleElement]\"></ng-content>\n </mat-panel-title>\n <div class=\"kms-accordion__header-icon-wrapper\">\n <kms-icon\n
|
|
2620
|
+
args: [{ standalone: false, selector: 'kms-accordion-item', template: "<mat-expansion-panel\n class=\"kms-accordion\"\n [ngClass]=\"{\n 'kms-accordion--flat': !showAsCard,\n 'kms-accordion--small': isSmall\n }\"\n (opened)=\"panelOpenState = true\"\n (closed)=\"panelOpenState = false\"\n [expanded]=\"expanded\"\n hideToggle=\"true\"\n >\n <mat-expansion-panel-header class=\"kms-accordion__header\">\n <mat-panel-title class=\"mat-subheading-2 kms-accordion__title\">\n <div [innerHtml]=\"itemTitleTrustHtml\"></div>\n <ng-content select=\"[itemTitleElement]\"></ng-content>\n </mat-panel-title>\n <div class=\"kms-accordion__header-icon-wrapper\">\n @if (!panelOpenState) {\n <kms-icon\n icon=\"ic_plus\"\n [color]=\"Color.PRIMARY\"\n [size]=\"isSmall ? 16 : 22\"\n ></kms-icon>\n }\n @if (panelOpenState) {\n <kms-icon\n icon=\"ic_minus\"\n [color]=\"Color.PRIMARY\"\n [size]=\"isSmall ? 16 : 22\"\n ></kms-icon>\n }\n </div>\n </mat-expansion-panel-header>\n <ng-content></ng-content>\n</mat-expansion-panel>\n" }]
|
|
2604
2621
|
}], ctorParameters: () => [{ type: i1$1.DomSanitizer }], propDecorators: { showAsCard: [{
|
|
2605
2622
|
type: Input
|
|
2606
2623
|
}], isSmall: [{
|
|
@@ -2616,10 +2633,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
2616
2633
|
*/
|
|
2617
2634
|
class NumericInputComponent {
|
|
2618
2635
|
constructor() {
|
|
2619
|
-
this.disabled = model(false);
|
|
2620
|
-
this.min = input(0);
|
|
2621
|
-
this.numericValue = signal(0);
|
|
2622
|
-
this.touched = signal(false);
|
|
2636
|
+
this.disabled = model(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
2637
|
+
this.min = input(0, ...(ngDevMode ? [{ debugName: "min" }] : []));
|
|
2638
|
+
this.numericValue = signal(0, ...(ngDevMode ? [{ debugName: "numericValue" }] : []));
|
|
2639
|
+
this.touched = signal(false, ...(ngDevMode ? [{ debugName: "touched" }] : []));
|
|
2623
2640
|
this.Color = Color;
|
|
2624
2641
|
this.IconSizePx = IconSizePx;
|
|
2625
2642
|
this.onChange = () => {
|
|
@@ -2667,8 +2684,8 @@ class NumericInputComponent {
|
|
|
2667
2684
|
registerOnTouched(onTouched) {
|
|
2668
2685
|
this.onTouched = onTouched;
|
|
2669
2686
|
}
|
|
2670
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2671
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
2687
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: NumericInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2688
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.15", type: NumericInputComponent, isStandalone: false, selector: "kms-numeric-input", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { disabled: "disabledChange" }, providers: [
|
|
2672
2689
|
{
|
|
2673
2690
|
provide: NG_VALUE_ACCESSOR,
|
|
2674
2691
|
useExisting: forwardRef(() => NumericInputComponent),
|
|
@@ -2676,16 +2693,16 @@ class NumericInputComponent {
|
|
|
2676
2693
|
},
|
|
2677
2694
|
], ngImport: i0, template: "<div class=\"numeric-input\" [ngClass]=\"{ disabled: disabled() }\">\n <kms-icon\n id=\"numeric-input-minus\"\n class=\"numeric-input__icon\"\n aria-hidden=\"true\"\n icon=\"ic_minus\"\n [color]=\"disabled() ? Color.DISABLED : Color.SECONDARY\"\n [size]=\"10\"\n (click)=\"minus()\"\n (keyup)=\"($event.key === 'Enter' || $event.key === 'Space') && minus()\"\n >\n </kms-icon>\n <strong>{{ numericValue() }}</strong>\n <kms-icon\n id=\"numeric-input-plus\"\n class=\"numeric-input__icon\"\n aria-hidden=\"true\"\n icon=\"ic_plus\"\n [color]=\"disabled() ? Color.DISABLED : Color.SECONDARY\"\n [size]=\"10\"\n (click)=\"add()\"\n (keyup)=\"($event.key === 'Enter' || $event.key === 'Space') && add()\"\n >\n </kms-icon>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "size", "dontUseSprite", "color"] }] }); }
|
|
2678
2695
|
}
|
|
2679
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2696
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: NumericInputComponent, decorators: [{
|
|
2680
2697
|
type: Component,
|
|
2681
|
-
args: [{ selector: 'kms-numeric-input', providers: [
|
|
2698
|
+
args: [{ standalone: false, selector: 'kms-numeric-input', providers: [
|
|
2682
2699
|
{
|
|
2683
2700
|
provide: NG_VALUE_ACCESSOR,
|
|
2684
2701
|
useExisting: forwardRef(() => NumericInputComponent),
|
|
2685
2702
|
multi: true,
|
|
2686
2703
|
},
|
|
2687
2704
|
], template: "<div class=\"numeric-input\" [ngClass]=\"{ disabled: disabled() }\">\n <kms-icon\n id=\"numeric-input-minus\"\n class=\"numeric-input__icon\"\n aria-hidden=\"true\"\n icon=\"ic_minus\"\n [color]=\"disabled() ? Color.DISABLED : Color.SECONDARY\"\n [size]=\"10\"\n (click)=\"minus()\"\n (keyup)=\"($event.key === 'Enter' || $event.key === 'Space') && minus()\"\n >\n </kms-icon>\n <strong>{{ numericValue() }}</strong>\n <kms-icon\n id=\"numeric-input-plus\"\n class=\"numeric-input__icon\"\n aria-hidden=\"true\"\n icon=\"ic_plus\"\n [color]=\"disabled() ? Color.DISABLED : Color.SECONDARY\"\n [size]=\"10\"\n (click)=\"add()\"\n (keyup)=\"($event.key === 'Enter' || $event.key === 'Space') && add()\"\n >\n </kms-icon>\n</div>\n" }]
|
|
2688
|
-
}], ctorParameters: () => [] });
|
|
2705
|
+
}], ctorParameters: () => [], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }] } });
|
|
2689
2706
|
|
|
2690
2707
|
/**
|
|
2691
2708
|
* @copyright KMS GmbH
|
|
@@ -2694,37 +2711,37 @@ class PasswordComponent {
|
|
|
2694
2711
|
constructor() {
|
|
2695
2712
|
this.change = new EventEmitter();
|
|
2696
2713
|
this.submit = new EventEmitter();
|
|
2697
|
-
this.disabled = input(false);
|
|
2698
|
-
this.label = input('Password');
|
|
2699
|
-
this.withStrength = input(false);
|
|
2700
|
-
this.lowerCaseCriteriaMsg = input('At least one lowercase letter');
|
|
2701
|
-
this.upperCaseCriteriaMsg = input('At least one uppercase letter');
|
|
2702
|
-
this.numberCriteriaMsg = input('At least one number');
|
|
2703
|
-
this.specialCharCriteriaMsg = input('At least one special character (-.!.?,$,&,*,+,#,%)');
|
|
2704
|
-
this.minCharsCriteriaMsg = input('At least 10 characters');
|
|
2714
|
+
this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
2715
|
+
this.label = input('Password', ...(ngDevMode ? [{ debugName: "label" }] : []));
|
|
2716
|
+
this.withStrength = input(false, ...(ngDevMode ? [{ debugName: "withStrength" }] : []));
|
|
2717
|
+
this.lowerCaseCriteriaMsg = input('At least one lowercase letter', ...(ngDevMode ? [{ debugName: "lowerCaseCriteriaMsg" }] : []));
|
|
2718
|
+
this.upperCaseCriteriaMsg = input('At least one uppercase letter', ...(ngDevMode ? [{ debugName: "upperCaseCriteriaMsg" }] : []));
|
|
2719
|
+
this.numberCriteriaMsg = input('At least one number', ...(ngDevMode ? [{ debugName: "numberCriteriaMsg" }] : []));
|
|
2720
|
+
this.specialCharCriteriaMsg = input('At least one special character (-.!.?,$,&,*,+,#,%)', ...(ngDevMode ? [{ debugName: "specialCharCriteriaMsg" }] : []));
|
|
2721
|
+
this.minCharsCriteriaMsg = input('At least 10 characters', ...(ngDevMode ? [{ debugName: "minCharsCriteriaMsg" }] : []));
|
|
2705
2722
|
this.IconSizePx = IconSizePx;
|
|
2706
|
-
this.value = signal('');
|
|
2707
|
-
this.showPassword = signal(false);
|
|
2708
|
-
this.eyeIconIsBeingPressed = signal(false);
|
|
2723
|
+
this.value = signal('', ...(ngDevMode ? [{ debugName: "value" }] : []));
|
|
2724
|
+
this.showPassword = signal(false, ...(ngDevMode ? [{ debugName: "showPassword" }] : []));
|
|
2725
|
+
this.eyeIconIsBeingPressed = signal(false, ...(ngDevMode ? [{ debugName: "eyeIconIsBeingPressed" }] : []));
|
|
2709
2726
|
this.validateUppercase = computed(() => {
|
|
2710
2727
|
const regex = /^(?=.*?[A-Z]).{1,}$/;
|
|
2711
2728
|
return regex.test(this.value());
|
|
2712
|
-
});
|
|
2729
|
+
}, ...(ngDevMode ? [{ debugName: "validateUppercase" }] : []));
|
|
2713
2730
|
this.validateLowercase = computed(() => {
|
|
2714
2731
|
const regex = /^(?=.*?[a-z]).{1,}$/;
|
|
2715
2732
|
return regex.test(this.value());
|
|
2716
|
-
});
|
|
2733
|
+
}, ...(ngDevMode ? [{ debugName: "validateLowercase" }] : []));
|
|
2717
2734
|
this.validateSpecialChar = computed(() => {
|
|
2718
2735
|
const regex = /^(?=.*?[-!?$&*+#%]).{1,}$/;
|
|
2719
2736
|
return regex.test(this.value());
|
|
2720
|
-
});
|
|
2737
|
+
}, ...(ngDevMode ? [{ debugName: "validateSpecialChar" }] : []));
|
|
2721
2738
|
this.validateNumber = computed(() => {
|
|
2722
2739
|
const regex = /^(?=.*?[0-9]).{1,}$/;
|
|
2723
2740
|
return regex.test(this.value());
|
|
2724
|
-
});
|
|
2741
|
+
}, ...(ngDevMode ? [{ debugName: "validateNumber" }] : []));
|
|
2725
2742
|
this.validateMinimumChar = computed(() => {
|
|
2726
2743
|
return this.value().length >= 10;
|
|
2727
|
-
});
|
|
2744
|
+
}, ...(ngDevMode ? [{ debugName: "validateMinimumChar" }] : []));
|
|
2728
2745
|
this.validations = computed(() => {
|
|
2729
2746
|
return [
|
|
2730
2747
|
{
|
|
@@ -2753,7 +2770,7 @@ class PasswordComponent {
|
|
|
2753
2770
|
error: 'minChars',
|
|
2754
2771
|
},
|
|
2755
2772
|
];
|
|
2756
|
-
});
|
|
2773
|
+
}, ...(ngDevMode ? [{ debugName: "validations" }] : []));
|
|
2757
2774
|
this.onChange = () => { };
|
|
2758
2775
|
this.onTouch = () => { };
|
|
2759
2776
|
}
|
|
@@ -2789,8 +2806,8 @@ class PasswordComponent {
|
|
|
2789
2806
|
}
|
|
2790
2807
|
return isEmpty(result) ? null : result;
|
|
2791
2808
|
}
|
|
2792
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2793
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2809
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: PasswordComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2810
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: PasswordComponent, isStandalone: false, selector: "kms-password", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, withStrength: { classPropertyName: "withStrength", publicName: "withStrength", isSignal: true, isRequired: false, transformFunction: null }, lowerCaseCriteriaMsg: { classPropertyName: "lowerCaseCriteriaMsg", publicName: "lowerCaseCriteriaMsg", isSignal: true, isRequired: false, transformFunction: null }, upperCaseCriteriaMsg: { classPropertyName: "upperCaseCriteriaMsg", publicName: "upperCaseCriteriaMsg", isSignal: true, isRequired: false, transformFunction: null }, numberCriteriaMsg: { classPropertyName: "numberCriteriaMsg", publicName: "numberCriteriaMsg", isSignal: true, isRequired: false, transformFunction: null }, specialCharCriteriaMsg: { classPropertyName: "specialCharCriteriaMsg", publicName: "specialCharCriteriaMsg", isSignal: true, isRequired: false, transformFunction: null }, minCharsCriteriaMsg: { classPropertyName: "minCharsCriteriaMsg", publicName: "minCharsCriteriaMsg", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { change: "change", submit: "submit" }, providers: [
|
|
2794
2811
|
{
|
|
2795
2812
|
provide: NG_VALUE_ACCESSOR,
|
|
2796
2813
|
useExisting: forwardRef(() => PasswordComponent),
|
|
@@ -2801,11 +2818,11 @@ class PasswordComponent {
|
|
|
2801
2818
|
useExisting: forwardRef(() => PasswordComponent),
|
|
2802
2819
|
multi: true,
|
|
2803
2820
|
},
|
|
2804
|
-
], ngImport: i0, template: "<mat-form-field class=\"kms-password__form-field\">\n <mat-label>{{ label() }}</mat-label>\n <input\n [type]=\"showPassword() ? 'text' : 'password'\"\n matInput\n (input)=\"valueChanged($event)\"\n [disabled]=\"disabled()\"\n (keypress)=\"keypress($event)\"\n #password=\"matInput\"\n />\n @if (showPassword()) {\n <kms-icon\n class=\"kms-time-input__suffix\"\n matSuffix\n icon=\"ic_eye\"\n [size]=\"IconSizePx.XS\"\n (click)=\"showPassword.set(false)\"\n (mousedown)=\"eyeIconIsBeingPressed.set(true)\"\n (mouseup)=\"eyeIconIsBeingPressed.set(false)\"\n ></kms-icon>\n } @else {\n <kms-icon\n class=\"kms-time-input__suffix\"\n matSuffix\n icon=\"ic_eye_active\"\n [size]=\"IconSizePx.XS\"\n (click)=\"showPassword.set(true)\"\n (mousedown)=\"eyeIconIsBeingPressed.set(true)\"\n (mouseup)=\"eyeIconIsBeingPressed.set(false)\"\n ></kms-icon>\n }\n</mat-form-field>\n\n@if ((eyeIconIsBeingPressed() || password.focused) && withStrength()) {\n<mat-card appearance=\"outlined\">\n <mat-card-content class=\"kms-password__card\">\n <mat-list role=\"list\">\n @for (validation of validations(); track validation) {\n <mat-list-item role=\"listitem\">\n <div class=\"kms-password__strength-item\">\n @if(validation.isValid()) {\n <kms-icon\n [size]=\"IconSizePx.XS\"\n icon=\"ic_check\"\n iconClass=\"color-success\"\n ></kms-icon>\n }@else {\n <kms-icon\n [size]=\"IconSizePx.XS\"\n icon=\"ic_abbrechen\"\n iconClass=\"color-warn\"\n ></kms-icon>\n } {{ validation.text() }}\n </div></mat-list-item\n >\n }\n </mat-list>\n </mat-card-content>\n</mat-card>\n}\n", dependencies: [{ kind: "component", type:
|
|
2821
|
+
], ngImport: i0, template: "<mat-form-field class=\"kms-password__form-field\">\n <mat-label>{{ label() }}</mat-label>\n <input\n [type]=\"showPassword() ? 'text' : 'password'\"\n matInput\n (input)=\"valueChanged($event)\"\n [disabled]=\"disabled()\"\n (keypress)=\"keypress($event)\"\n #password=\"matInput\"\n />\n @if (showPassword()) {\n <kms-icon\n class=\"kms-time-input__suffix\"\n matSuffix\n icon=\"ic_eye\"\n [size]=\"IconSizePx.XS\"\n (click)=\"showPassword.set(false)\"\n (mousedown)=\"eyeIconIsBeingPressed.set(true)\"\n (mouseup)=\"eyeIconIsBeingPressed.set(false)\"\n ></kms-icon>\n } @else {\n <kms-icon\n class=\"kms-time-input__suffix\"\n matSuffix\n icon=\"ic_eye_active\"\n [size]=\"IconSizePx.XS\"\n (click)=\"showPassword.set(true)\"\n (mousedown)=\"eyeIconIsBeingPressed.set(true)\"\n (mouseup)=\"eyeIconIsBeingPressed.set(false)\"\n ></kms-icon>\n }\n</mat-form-field>\n\n@if ((eyeIconIsBeingPressed() || password.focused) && withStrength()) {\n<mat-card appearance=\"outlined\">\n <mat-card-content class=\"kms-password__card\">\n <mat-list role=\"list\">\n @for (validation of validations(); track validation) {\n <mat-list-item role=\"listitem\">\n <div class=\"kms-password__strength-item\">\n @if(validation.isValid()) {\n <kms-icon\n [size]=\"IconSizePx.XS\"\n icon=\"ic_check\"\n iconClass=\"color-success\"\n ></kms-icon>\n }@else {\n <kms-icon\n [size]=\"IconSizePx.XS\"\n icon=\"ic_abbrechen\"\n iconClass=\"color-warn\"\n ></kms-icon>\n } {{ validation.text() }}\n </div></mat-list-item\n >\n }\n </mat-list>\n </mat-card-content>\n</mat-card>\n}\n", dependencies: [{ kind: "component", type: i1$3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i1$3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i1$3.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: i2$2.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i3$3.MatList, selector: "mat-list", exportAs: ["matList"] }, { kind: "component", type: i3$3.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "component", type: i4$1.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i4$1.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "size", "dontUseSprite", "color"] }] }); }
|
|
2805
2822
|
}
|
|
2806
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2823
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: PasswordComponent, decorators: [{
|
|
2807
2824
|
type: Component,
|
|
2808
|
-
args: [{ selector: 'kms-password', providers: [
|
|
2825
|
+
args: [{ standalone: false, selector: 'kms-password', providers: [
|
|
2809
2826
|
{
|
|
2810
2827
|
provide: NG_VALUE_ACCESSOR,
|
|
2811
2828
|
useExisting: forwardRef(() => PasswordComponent),
|
|
@@ -2821,7 +2838,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
2821
2838
|
type: Output
|
|
2822
2839
|
}], submit: [{
|
|
2823
2840
|
type: Output
|
|
2824
|
-
}] } });
|
|
2841
|
+
}], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], withStrength: [{ type: i0.Input, args: [{ isSignal: true, alias: "withStrength", required: false }] }], lowerCaseCriteriaMsg: [{ type: i0.Input, args: [{ isSignal: true, alias: "lowerCaseCriteriaMsg", required: false }] }], upperCaseCriteriaMsg: [{ type: i0.Input, args: [{ isSignal: true, alias: "upperCaseCriteriaMsg", required: false }] }], numberCriteriaMsg: [{ type: i0.Input, args: [{ isSignal: true, alias: "numberCriteriaMsg", required: false }] }], specialCharCriteriaMsg: [{ type: i0.Input, args: [{ isSignal: true, alias: "specialCharCriteriaMsg", required: false }] }], minCharsCriteriaMsg: [{ type: i0.Input, args: [{ isSignal: true, alias: "minCharsCriteriaMsg", required: false }] }] } });
|
|
2825
2842
|
|
|
2826
2843
|
class RadioGroupComponent {
|
|
2827
2844
|
constructor() {
|
|
@@ -2850,18 +2867,18 @@ class RadioGroupComponent {
|
|
|
2850
2867
|
this.onChange(value);
|
|
2851
2868
|
this.onTouched();
|
|
2852
2869
|
}
|
|
2853
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2854
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2870
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: RadioGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2871
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: RadioGroupComponent, isStandalone: false, selector: "kms-radiogroup", inputs: { options: "options", disabled: "disabled", value: "value", infoText: "infoText", color: "color", size: "size", direction: "direction" }, providers: [
|
|
2855
2872
|
{
|
|
2856
2873
|
provide: NG_VALUE_ACCESSOR,
|
|
2857
2874
|
useExisting: forwardRef(() => RadioGroupComponent),
|
|
2858
2875
|
multi: true,
|
|
2859
2876
|
},
|
|
2860
|
-
], ngImport: i0, template: "@if (options && options.length > 0) {\n<mat-radio-group\n class=\"radiogroup\"\n [value]=\"value\"\n (change)=\"handleChange($event.value)\"\n [disabled]=\"disabled\"\n [ngStyle]=\"{ 'flex-direction': direction }\"\n>\n @if (infoText) {\n <kms-tooltip-icon\n [class.margin-left]=\"direction == 'column'\"\n [tooltipText]=\"infoText\"\n ></kms-tooltip-icon>\n } @for (option of options; track $index) {\n <div class=\"radiobutton-container\">\n <kms-radiobutton\n [label]=\"option.Text\"\n [value]=\"option.Value\"\n [checked]=\"value === option.Value\"\n [disabled]=\"disabled || option.Disabled\"\n [size]=\"size\"\n [color]=\"color\"\n ></kms-radiobutton>\n @if (option.InfoText) {\n <kms-tooltip-icon [tooltipText]=\"option.InfoText\"></kms-tooltip-icon>\n }\n </div>\n }\n</mat-radio-group>\n}\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type:
|
|
2877
|
+
], ngImport: i0, template: "@if (options && options.length > 0) {\n<mat-radio-group\n class=\"radiogroup\"\n [value]=\"value\"\n (change)=\"handleChange($event.value)\"\n [disabled]=\"disabled\"\n [ngStyle]=\"{ 'flex-direction': direction }\"\n>\n @if (infoText) {\n <kms-tooltip-icon\n [class.margin-left]=\"direction == 'column'\"\n [tooltipText]=\"infoText\"\n ></kms-tooltip-icon>\n } @for (option of options; track $index) {\n <div class=\"radiobutton-container\">\n <kms-radiobutton\n [label]=\"option.Text\"\n [value]=\"option.Value\"\n [checked]=\"value === option.Value\"\n [disabled]=\"disabled || option.Disabled\"\n [size]=\"size\"\n [color]=\"color\"\n ></kms-radiobutton>\n @if (option.InfoText) {\n <kms-tooltip-icon [tooltipText]=\"option.InfoText\"></kms-tooltip-icon>\n }\n </div>\n }\n</mat-radio-group>\n}\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i1$6.MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioGroup"] }, { kind: "component", type: RadioButtonComponent, selector: "kms-radiobutton", inputs: ["label", "checked", "disabled", "value", "size", "color"], outputs: ["onChange"] }, { kind: "component", type: TooltipIconComponent, selector: "kms-tooltip-icon", inputs: ["tooltipText", "placement", "delay", "iconSize", "tooltipAlwaysVisible"] }] }); }
|
|
2861
2878
|
}
|
|
2862
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2879
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: RadioGroupComponent, decorators: [{
|
|
2863
2880
|
type: Component,
|
|
2864
|
-
args: [{ selector: 'kms-radiogroup', providers: [
|
|
2881
|
+
args: [{ standalone: false, selector: 'kms-radiogroup', providers: [
|
|
2865
2882
|
{
|
|
2866
2883
|
provide: NG_VALUE_ACCESSOR,
|
|
2867
2884
|
useExisting: forwardRef(() => RadioGroupComponent),
|
|
@@ -2892,17 +2909,16 @@ var SalutationEnum;
|
|
|
2892
2909
|
})(SalutationEnum || (SalutationEnum = {}));
|
|
2893
2910
|
|
|
2894
2911
|
class SalutationDropdownComponent extends FormControlParentComponent {
|
|
2895
|
-
constructor(
|
|
2896
|
-
super(
|
|
2897
|
-
this.formBuilder = formBuilder;
|
|
2912
|
+
constructor(renderer) {
|
|
2913
|
+
super(renderer);
|
|
2898
2914
|
this.renderer = renderer;
|
|
2899
2915
|
//For view
|
|
2900
2916
|
this.SalutationEnum = SalutationEnum;
|
|
2901
2917
|
this.Object = Object;
|
|
2902
2918
|
}
|
|
2903
2919
|
ngOnInit() {
|
|
2904
|
-
this.form =
|
|
2905
|
-
salut:
|
|
2920
|
+
this.form = new UntypedFormGroup({
|
|
2921
|
+
salut: new UntypedFormControl(''),
|
|
2906
2922
|
});
|
|
2907
2923
|
this.formInitialized = true;
|
|
2908
2924
|
//somehow for dropowns we have to set value manually with timeout for default value
|
|
@@ -2914,25 +2930,25 @@ class SalutationDropdownComponent extends FormControlParentComponent {
|
|
|
2914
2930
|
});
|
|
2915
2931
|
super.ngOnInit();
|
|
2916
2932
|
}
|
|
2917
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2918
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2933
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SalutationDropdownComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2934
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: SalutationDropdownComponent, isStandalone: false, selector: "kms-salutation-dropdown", inputs: { placeholder: "placeholder" }, providers: [
|
|
2919
2935
|
{
|
|
2920
2936
|
provide: NG_VALUE_ACCESSOR,
|
|
2921
2937
|
useExisting: forwardRef(() => SalutationDropdownComponent),
|
|
2922
2938
|
multi: true,
|
|
2923
2939
|
},
|
|
2924
|
-
], usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"form\" class=\"row\">\n <mat-form-field class=\"col\">\n <mat-select\n disableOptionCentering\n formControlName=\"salut\"\n [placeholder]=\"placeholder\"\n [value]=\"value\"\n #child\n >\n <mat-option [value]=\"SalutationEnum.NOT_SPECIFIED\">{{\n 'general.salutation.' + Object.keys(SalutationEnum)[0]?.toLowerCase()\n | translate\n }}</mat-option>\n <mat-option [value]=\"SalutationEnum.MALE\">{{\n 'general.salutation.' + Object.keys(SalutationEnum)[1]?.toLowerCase()\n | translate\n }}</mat-option>\n <mat-option [value]=\"SalutationEnum.FEMALE\">{{\n 'general.salutation.' + Object.keys(SalutationEnum)[2]?.toLowerCase()\n | translate\n }}</mat-option>\n </mat-select>\n </mat-form-field>\n</form>\n", dependencies: [{ kind: "directive", type:
|
|
2940
|
+
], usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"form\" class=\"row\">\n <mat-form-field class=\"col\">\n <mat-select\n disableOptionCentering\n formControlName=\"salut\"\n [placeholder]=\"placeholder\"\n [value]=\"value\"\n #child\n >\n <mat-option [value]=\"SalutationEnum.NOT_SPECIFIED\">{{\n 'general.salutation.' + Object.keys(SalutationEnum)[0]?.toLowerCase()\n | translate\n }}</mat-option>\n <mat-option [value]=\"SalutationEnum.MALE\">{{\n 'general.salutation.' + Object.keys(SalutationEnum)[1]?.toLowerCase()\n | translate\n }}</mat-option>\n <mat-option [value]=\"SalutationEnum.FEMALE\">{{\n 'general.salutation.' + Object.keys(SalutationEnum)[2]?.toLowerCase()\n | translate\n }}</mat-option>\n </mat-select>\n </mat-form-field>\n</form>\n", dependencies: [{ kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i1$3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "component", type: i3.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i3.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }] }); }
|
|
2925
2941
|
}
|
|
2926
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2942
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SalutationDropdownComponent, decorators: [{
|
|
2927
2943
|
type: Component,
|
|
2928
|
-
args: [{ selector: 'kms-salutation-dropdown', providers: [
|
|
2944
|
+
args: [{ standalone: false, selector: 'kms-salutation-dropdown', providers: [
|
|
2929
2945
|
{
|
|
2930
2946
|
provide: NG_VALUE_ACCESSOR,
|
|
2931
2947
|
useExisting: forwardRef(() => SalutationDropdownComponent),
|
|
2932
2948
|
multi: true,
|
|
2933
2949
|
},
|
|
2934
2950
|
], template: "<form [formGroup]=\"form\" class=\"row\">\n <mat-form-field class=\"col\">\n <mat-select\n disableOptionCentering\n formControlName=\"salut\"\n [placeholder]=\"placeholder\"\n [value]=\"value\"\n #child\n >\n <mat-option [value]=\"SalutationEnum.NOT_SPECIFIED\">{{\n 'general.salutation.' + Object.keys(SalutationEnum)[0]?.toLowerCase()\n | translate\n }}</mat-option>\n <mat-option [value]=\"SalutationEnum.MALE\">{{\n 'general.salutation.' + Object.keys(SalutationEnum)[1]?.toLowerCase()\n | translate\n }}</mat-option>\n <mat-option [value]=\"SalutationEnum.FEMALE\">{{\n 'general.salutation.' + Object.keys(SalutationEnum)[2]?.toLowerCase()\n | translate\n }}</mat-option>\n </mat-select>\n </mat-form-field>\n</form>\n" }]
|
|
2935
|
-
}], ctorParameters: () => [{ type:
|
|
2951
|
+
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { placeholder: [{
|
|
2936
2952
|
type: Input
|
|
2937
2953
|
}] } });
|
|
2938
2954
|
|
|
@@ -2986,17 +3002,16 @@ class AttachedFileDTO {
|
|
|
2986
3002
|
*/
|
|
2987
3003
|
|
|
2988
3004
|
class SalutationRadiogroupComponent extends FormControlParentComponent {
|
|
2989
|
-
constructor(
|
|
2990
|
-
super(
|
|
2991
|
-
this.formBuilder = formBuilder;
|
|
3005
|
+
constructor(renderer) {
|
|
3006
|
+
super(renderer);
|
|
2992
3007
|
this.renderer = renderer;
|
|
2993
3008
|
//For view
|
|
2994
3009
|
this.SalutationEnum = SalutationEnum;
|
|
2995
3010
|
this.Object = Object;
|
|
2996
3011
|
}
|
|
2997
3012
|
ngOnInit() {
|
|
2998
|
-
this.form =
|
|
2999
|
-
salut:
|
|
3013
|
+
this.form = new UntypedFormGroup({
|
|
3014
|
+
salut: new UntypedFormControl(isValue(this.value) ? this.value : ''),
|
|
3000
3015
|
});
|
|
3001
3016
|
this.formInitialized = true;
|
|
3002
3017
|
this.form.valueChanges.subscribe((value) => {
|
|
@@ -3005,25 +3020,25 @@ class SalutationRadiogroupComponent extends FormControlParentComponent {
|
|
|
3005
3020
|
});
|
|
3006
3021
|
super.ngOnInit();
|
|
3007
3022
|
}
|
|
3008
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3009
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
3023
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SalutationRadiogroupComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3024
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: SalutationRadiogroupComponent, isStandalone: false, selector: "kms-salutation-radiogroup", providers: [
|
|
3010
3025
|
{
|
|
3011
3026
|
provide: NG_VALUE_ACCESSOR,
|
|
3012
3027
|
useExisting: forwardRef(() => SalutationRadiogroupComponent),
|
|
3013
3028
|
multi: true,
|
|
3014
3029
|
},
|
|
3015
|
-
], usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"form\">\n <mat-radio-group formControlName=\"salut\" [disabled]=\"disabled\" #radioGroup>\n <mat-radio-button\n color=\"primary\"\n [value]=\"SalutationEnum.NOT_SPECIFIED\"\n [checked]=\"value === SalutationEnum.NOT_SPECIFIED\"\n >\n {{\n 'general.salutation.' + Object.keys(SalutationEnum)[0]?.toLowerCase()\n | translate\n }}\n </mat-radio-button>\n <mat-radio-button\n color=\"primary\"\n [value]=\"SalutationEnum.MALE\"\n [checked]=\"value === SalutationEnum.MALE\"\n >\n {{\n 'general.salutation.' + Object.keys(SalutationEnum)[1]?.toLowerCase()\n | translate\n }}\n </mat-radio-button>\n <mat-radio-button\n color=\"primary\"\n [value]=\"SalutationEnum.FEMALE\"\n [checked]=\"value === SalutationEnum.FEMALE\"\n >\n {{\n 'general.salutation.' + Object.keys(SalutationEnum)[2]?.toLowerCase()\n | translate\n }}\n </mat-radio-button>\n </mat-radio-group>\n</form>\n", dependencies: [{ kind: "directive", type:
|
|
3030
|
+
], usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"form\">\n <mat-radio-group formControlName=\"salut\" [disabled]=\"disabled\" #radioGroup>\n <mat-radio-button\n color=\"primary\"\n [value]=\"SalutationEnum.NOT_SPECIFIED\"\n [checked]=\"value === SalutationEnum.NOT_SPECIFIED\"\n >\n {{\n 'general.salutation.' + Object.keys(SalutationEnum)[0]?.toLowerCase()\n | translate\n }}\n </mat-radio-button>\n <mat-radio-button\n color=\"primary\"\n [value]=\"SalutationEnum.MALE\"\n [checked]=\"value === SalutationEnum.MALE\"\n >\n {{\n 'general.salutation.' + Object.keys(SalutationEnum)[1]?.toLowerCase()\n | translate\n }}\n </mat-radio-button>\n <mat-radio-button\n color=\"primary\"\n [value]=\"SalutationEnum.FEMALE\"\n [checked]=\"value === SalutationEnum.FEMALE\"\n >\n {{\n 'general.salutation.' + Object.keys(SalutationEnum)[2]?.toLowerCase()\n | translate\n }}\n </mat-radio-button>\n </mat-radio-group>\n</form>\n", dependencies: [{ kind: "directive", type: i1$6.MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioGroup"] }, { kind: "component", type: i1$6.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }] }); }
|
|
3016
3031
|
}
|
|
3017
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3032
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SalutationRadiogroupComponent, decorators: [{
|
|
3018
3033
|
type: Component,
|
|
3019
|
-
args: [{ selector: 'kms-salutation-radiogroup', providers: [
|
|
3034
|
+
args: [{ standalone: false, selector: 'kms-salutation-radiogroup', providers: [
|
|
3020
3035
|
{
|
|
3021
3036
|
provide: NG_VALUE_ACCESSOR,
|
|
3022
3037
|
useExisting: forwardRef(() => SalutationRadiogroupComponent),
|
|
3023
3038
|
multi: true,
|
|
3024
3039
|
},
|
|
3025
3040
|
], template: "<form [formGroup]=\"form\">\n <mat-radio-group formControlName=\"salut\" [disabled]=\"disabled\" #radioGroup>\n <mat-radio-button\n color=\"primary\"\n [value]=\"SalutationEnum.NOT_SPECIFIED\"\n [checked]=\"value === SalutationEnum.NOT_SPECIFIED\"\n >\n {{\n 'general.salutation.' + Object.keys(SalutationEnum)[0]?.toLowerCase()\n | translate\n }}\n </mat-radio-button>\n <mat-radio-button\n color=\"primary\"\n [value]=\"SalutationEnum.MALE\"\n [checked]=\"value === SalutationEnum.MALE\"\n >\n {{\n 'general.salutation.' + Object.keys(SalutationEnum)[1]?.toLowerCase()\n | translate\n }}\n </mat-radio-button>\n <mat-radio-button\n color=\"primary\"\n [value]=\"SalutationEnum.FEMALE\"\n [checked]=\"value === SalutationEnum.FEMALE\"\n >\n {{\n 'general.salutation.' + Object.keys(SalutationEnum)[2]?.toLowerCase()\n | translate\n }}\n </mat-radio-button>\n </mat-radio-group>\n</form>\n" }]
|
|
3026
|
-
}], ctorParameters: () => [{ type:
|
|
3041
|
+
}], ctorParameters: () => [{ type: i0.Renderer2 }] });
|
|
3027
3042
|
|
|
3028
3043
|
class TimeInputComponent {
|
|
3029
3044
|
constructor() {
|
|
@@ -3032,11 +3047,11 @@ class TimeInputComponent {
|
|
|
3032
3047
|
this.interval = 15;
|
|
3033
3048
|
this.allowEmpty = false;
|
|
3034
3049
|
this.IconSizePx = IconSizePx;
|
|
3035
|
-
this._value = signal('');
|
|
3036
|
-
this.options = signal([]);
|
|
3050
|
+
this._value = signal('', ...(ngDevMode ? [{ debugName: "_value" }] : []));
|
|
3051
|
+
this.options = signal([], ...(ngDevMode ? [{ debugName: "options" }] : []));
|
|
3037
3052
|
this.filteredOptions = computed(() => {
|
|
3038
3053
|
return this.options().filter((option) => option.startsWith(this._value()));
|
|
3039
|
-
});
|
|
3054
|
+
}, ...(ngDevMode ? [{ debugName: "filteredOptions" }] : []));
|
|
3040
3055
|
this.onChange = () => { };
|
|
3041
3056
|
this.onTouch = () => { };
|
|
3042
3057
|
}
|
|
@@ -3093,8 +3108,8 @@ class TimeInputComponent {
|
|
|
3093
3108
|
invalid: true,
|
|
3094
3109
|
};
|
|
3095
3110
|
}
|
|
3096
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3097
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
3111
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: TimeInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3112
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: TimeInputComponent, isStandalone: false, selector: "kms-time-input", inputs: { label: "label", value: "value", interval: "interval", allowEmpty: "allowEmpty" }, providers: [
|
|
3098
3113
|
{
|
|
3099
3114
|
provide: NG_VALUE_ACCESSOR,
|
|
3100
3115
|
useExisting: forwardRef(() => TimeInputComponent),
|
|
@@ -3105,11 +3120,11 @@ class TimeInputComponent {
|
|
|
3105
3120
|
useExisting: TimeInputComponent,
|
|
3106
3121
|
multi: true,
|
|
3107
3122
|
},
|
|
3108
|
-
], usesOnChanges: true, ngImport: i0, template: "<mat-form-field class=\"kms-time-input\">\n <mat-label>{{ label }}</mat-label>\n <input\n type=\"text\"\n aria-label=\"time\"\n matInput\n kmsTime\n [matAutocomplete]=\"auto\"\n [value]=\"_value()\"\n (input)=\"inputValueChanged($event)\"\n
|
|
3123
|
+
], usesOnChanges: true, ngImport: i0, template: "<mat-form-field class=\"kms-time-input\">\n <mat-label>{{ label }}</mat-label>\n <input\n type=\"text\"\n aria-label=\"time\"\n matInput\n kmsTime\n [matAutocomplete]=\"auto\"\n [value]=\"_value()\"\n (input)=\"inputValueChanged($event)\"\n />\n <mat-autocomplete\n #auto=\"matAutocomplete\"\n (optionSelected)=\"valueChanged($event.option.value)\"\n (closed)=\"autocompleteClosed()\"\n >\n @for (option of filteredOptions(); track option) {\n <mat-option [value]=\"option\">\n {{ option }}\n </mat-option>\n }\n </mat-autocomplete>\n <kms-icon\n class=\"kms-time-input__suffix\"\n matSuffix\n icon=\"clock\"\n [size]=\"IconSizePx.XS\"\n ></kms-icon>\n</mat-form-field>\n", styles: [""], dependencies: [{ kind: "component", type: i1$3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i1$3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i1$3.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: i2$2.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i3.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "directive", type: TimeDirective, selector: "[kmsTime]" }, { kind: "component", type: i5.MatAutocomplete, selector: "mat-autocomplete", inputs: ["aria-label", "aria-labelledby", "displayWith", "autoActiveFirstOption", "autoSelectActiveOption", "requireSelection", "panelWidth", "disableRipple", "class", "hideSingleSelectionIndicator"], outputs: ["optionSelected", "opened", "closed", "optionActivated"], exportAs: ["matAutocomplete"] }, { kind: "directive", type: i5.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", inputs: ["matAutocomplete", "matAutocompletePosition", "matAutocompleteConnectedTo", "autocomplete", "matAutocompleteDisabled"], exportAs: ["matAutocompleteTrigger"] }, { kind: "component", type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "size", "dontUseSprite", "color"] }] }); }
|
|
3109
3124
|
}
|
|
3110
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3125
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: TimeInputComponent, decorators: [{
|
|
3111
3126
|
type: Component,
|
|
3112
|
-
args: [{ selector: 'kms-time-input', providers: [
|
|
3127
|
+
args: [{ standalone: false, selector: 'kms-time-input', providers: [
|
|
3113
3128
|
{
|
|
3114
3129
|
provide: NG_VALUE_ACCESSOR,
|
|
3115
3130
|
useExisting: forwardRef(() => TimeInputComponent),
|
|
@@ -3120,7 +3135,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
3120
3135
|
useExisting: TimeInputComponent,
|
|
3121
3136
|
multi: true,
|
|
3122
3137
|
},
|
|
3123
|
-
], template: "<mat-form-field class=\"kms-time-input\">\n <mat-label>{{ label }}</mat-label>\n <input\n type=\"text\"\n aria-label=\"time\"\n matInput\n kmsTime\n [matAutocomplete]=\"auto\"\n [value]=\"_value()\"\n (input)=\"inputValueChanged($event)\"\n
|
|
3138
|
+
], template: "<mat-form-field class=\"kms-time-input\">\n <mat-label>{{ label }}</mat-label>\n <input\n type=\"text\"\n aria-label=\"time\"\n matInput\n kmsTime\n [matAutocomplete]=\"auto\"\n [value]=\"_value()\"\n (input)=\"inputValueChanged($event)\"\n />\n <mat-autocomplete\n #auto=\"matAutocomplete\"\n (optionSelected)=\"valueChanged($event.option.value)\"\n (closed)=\"autocompleteClosed()\"\n >\n @for (option of filteredOptions(); track option) {\n <mat-option [value]=\"option\">\n {{ option }}\n </mat-option>\n }\n </mat-autocomplete>\n <kms-icon\n class=\"kms-time-input__suffix\"\n matSuffix\n icon=\"clock\"\n [size]=\"IconSizePx.XS\"\n ></kms-icon>\n</mat-form-field>\n" }]
|
|
3124
3139
|
}], propDecorators: { label: [{
|
|
3125
3140
|
type: Input
|
|
3126
3141
|
}], value: [{
|
|
@@ -3157,8 +3172,7 @@ class YesNoRadiogroupComponent {
|
|
|
3157
3172
|
this.renderer.setProperty(this.child.nativeElement, 'disabled', isDisabled);
|
|
3158
3173
|
}
|
|
3159
3174
|
}
|
|
3160
|
-
constructor(
|
|
3161
|
-
this.formBuilder = formBuilder;
|
|
3175
|
+
constructor(renderer) {
|
|
3162
3176
|
this.renderer = renderer;
|
|
3163
3177
|
this.disabled = false;
|
|
3164
3178
|
this.textYes = '';
|
|
@@ -3169,33 +3183,33 @@ class YesNoRadiogroupComponent {
|
|
|
3169
3183
|
this.onTouch = () => { };
|
|
3170
3184
|
}
|
|
3171
3185
|
ngOnInit() {
|
|
3172
|
-
this.form =
|
|
3173
|
-
yesno:
|
|
3186
|
+
this.form = new UntypedFormGroup({
|
|
3187
|
+
yesno: new UntypedFormControl(this.value ?? null),
|
|
3174
3188
|
});
|
|
3175
3189
|
this.form.valueChanges.subscribe((value) => {
|
|
3176
3190
|
this.internalValue = value.yesno;
|
|
3177
3191
|
this.onChange(value.yesno);
|
|
3178
3192
|
});
|
|
3179
3193
|
}
|
|
3180
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3181
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
3194
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: YesNoRadiogroupComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3195
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: YesNoRadiogroupComponent, isStandalone: false, selector: "kms-yesno-radiogroup", inputs: { header: "header", disabled: "disabled", textYes: "textYes", textNo: "textNo" }, providers: [
|
|
3182
3196
|
{
|
|
3183
3197
|
provide: NG_VALUE_ACCESSOR,
|
|
3184
3198
|
useExisting: forwardRef(() => YesNoRadiogroupComponent),
|
|
3185
3199
|
multi: true,
|
|
3186
3200
|
},
|
|
3187
|
-
], viewQueries: [{ propertyName: "child", first: true, predicate: ["child"], descendants: true }], ngImport: i0, template: "<form [formGroup]=\"form\">\n <div>{{ header }}</div>\n <mat-radio-group formControlName=\"yesno\" [disabled]=\"disabled\" #child>\n <mat-radio-button [value]=\"true\" [checked]=\"internalValue === true\">\n {{ textYes }}</mat-radio-button\n >\n <mat-radio-button [value]=\"false\" [checked]=\"internalValue === false\">\n {{ textNo }}</mat-radio-button\n >\n </mat-radio-group>\n</form>\n", dependencies: [{ kind: "directive", type:
|
|
3201
|
+
], viewQueries: [{ propertyName: "child", first: true, predicate: ["child"], descendants: true }], ngImport: i0, template: "<form [formGroup]=\"form\">\n <div>{{ header }}</div>\n <mat-radio-group formControlName=\"yesno\" [disabled]=\"disabled\" #child>\n <mat-radio-button [value]=\"true\" [checked]=\"internalValue === true\">\n {{ textYes }}</mat-radio-button\n >\n <mat-radio-button [value]=\"false\" [checked]=\"internalValue === false\">\n {{ textNo }}</mat-radio-button\n >\n </mat-radio-group>\n</form>\n", dependencies: [{ kind: "directive", type: i1$6.MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioGroup"] }, { kind: "component", type: i1$6.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }] }); }
|
|
3188
3202
|
}
|
|
3189
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3203
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: YesNoRadiogroupComponent, decorators: [{
|
|
3190
3204
|
type: Component,
|
|
3191
|
-
args: [{ selector: 'kms-yesno-radiogroup', providers: [
|
|
3205
|
+
args: [{ standalone: false, selector: 'kms-yesno-radiogroup', providers: [
|
|
3192
3206
|
{
|
|
3193
3207
|
provide: NG_VALUE_ACCESSOR,
|
|
3194
3208
|
useExisting: forwardRef(() => YesNoRadiogroupComponent),
|
|
3195
3209
|
multi: true,
|
|
3196
3210
|
},
|
|
3197
3211
|
], template: "<form [formGroup]=\"form\">\n <div>{{ header }}</div>\n <mat-radio-group formControlName=\"yesno\" [disabled]=\"disabled\" #child>\n <mat-radio-button [value]=\"true\" [checked]=\"internalValue === true\">\n {{ textYes }}</mat-radio-button\n >\n <mat-radio-button [value]=\"false\" [checked]=\"internalValue === false\">\n {{ textNo }}</mat-radio-button\n >\n </mat-radio-group>\n</form>\n" }]
|
|
3198
|
-
}], ctorParameters: () => [{ type:
|
|
3212
|
+
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { header: [{
|
|
3199
3213
|
type: Input
|
|
3200
3214
|
}], disabled: [{
|
|
3201
3215
|
type: Input
|
|
@@ -3209,8 +3223,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
3209
3223
|
}] } });
|
|
3210
3224
|
|
|
3211
3225
|
class KmsUiPresentationalModule {
|
|
3212
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3213
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3226
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: KmsUiPresentationalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3227
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: KmsUiPresentationalModule, declarations: [BackToTopComponent,
|
|
3214
3228
|
CheckboxComponent,
|
|
3215
3229
|
ColorInputComponent,
|
|
3216
3230
|
DropdownFromDataComponent,
|
|
@@ -3286,7 +3300,7 @@ class KmsUiPresentationalModule {
|
|
|
3286
3300
|
CardComponent,
|
|
3287
3301
|
ButtonComponent,
|
|
3288
3302
|
NumericInputComponent] }); }
|
|
3289
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3303
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: KmsUiPresentationalModule, providers: [ViewportService], imports: [CommonModule,
|
|
3290
3304
|
DragDropModule,
|
|
3291
3305
|
MatCheckboxModule,
|
|
3292
3306
|
MatButtonModule,
|
|
@@ -3311,7 +3325,7 @@ class KmsUiPresentationalModule {
|
|
|
3311
3325
|
MatListModule,
|
|
3312
3326
|
MatCardModule] }); }
|
|
3313
3327
|
}
|
|
3314
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3328
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: KmsUiPresentationalModule, decorators: [{
|
|
3315
3329
|
type: NgModule,
|
|
3316
3330
|
args: [{
|
|
3317
3331
|
declarations: [
|
|
@@ -3405,10 +3419,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
3405
3419
|
|
|
3406
3420
|
class KmsUiPresentationalService {
|
|
3407
3421
|
constructor() { }
|
|
3408
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3409
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3422
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: KmsUiPresentationalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3423
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: KmsUiPresentationalService, providedIn: 'root' }); }
|
|
3410
3424
|
}
|
|
3411
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3425
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: KmsUiPresentationalService, decorators: [{
|
|
3412
3426
|
type: Injectable,
|
|
3413
3427
|
args: [{
|
|
3414
3428
|
providedIn: 'root'
|