@kms-ngx-ui/presentational 0.0.24 → 14.0.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/README.md +28 -28
- package/{esm2015/kms-ngx-ui-presentational.js → esm2020/kms-ngx-ui-presentational.mjs} +4 -4
- package/esm2020/lib/directives/directives.module.mjs +40 -0
- package/{esm2015/lib/directives/mousewheel.directive.js → esm2020/lib/directives/mousewheel.directive.mjs} +56 -56
- package/{esm2015/lib/directives/sum-of-height.directive.js → esm2020/lib/directives/sum-of-height.directive.mjs} +74 -74
- package/{esm2015/lib/directives/swipe.directive.js → esm2020/lib/directives/swipe.directive.mjs} +183 -183
- package/esm2020/lib/directives/swipe.model.mjs +5 -0
- package/{esm2015/lib/directives/tooltip.directive.js → esm2020/lib/directives/tooltip.directive.mjs} +144 -144
- package/esm2020/lib/kms-ngx-ui-presentational.component.mjs +22 -0
- package/{esm2015/lib/kms-ngx-ui-presentational.module.js → esm2020/lib/kms-ngx-ui-presentational.module.mjs} +215 -217
- package/{esm2015/lib/kms-ngx-ui-presentational.service.js → esm2020/lib/kms-ngx-ui-presentational.service.mjs} +14 -14
- package/esm2020/lib/models/address.model.mjs +6 -0
- package/{esm2015/lib/models/iconSize.enum.js → esm2020/lib/models/iconSize.enum.mjs} +17 -17
- package/{esm2015/lib/models/image-snippet.model.js → esm2020/lib/models/image-snippet.model.mjs} +18 -18
- package/{esm2015/lib/models/index.js → esm2020/lib/models/index.mjs} +5 -5
- package/{esm2015/lib/models/is-value.function.js → esm2020/lib/models/is-value.function.mjs} +17 -17
- package/{esm2015/lib/models/salutation.enum.js → esm2020/lib/models/salutation.enum.mjs} +8 -8
- package/{esm2015/lib/models/types/attached-file-dto.model.js → esm2020/lib/models/types/attached-file-dto.model.mjs} +6 -6
- package/{esm2015/lib/models/types/nullable.type.js → esm2020/lib/models/types/nullable.type.mjs} +5 -5
- package/{esm2015/lib/parent-components/actions.component.js → esm2020/lib/parent-components/actions.component.mjs} +56 -56
- package/esm2020/lib/parent-components/form-control.component.mjs +75 -0
- package/esm2020/lib/parent-components/form.component.mjs +78 -0
- package/{esm2015/lib/pipes/custom-pipes.module.js → esm2020/lib/pipes/custom-pipes.module.mjs} +71 -71
- package/esm2020/lib/pipes/decode-uri.pipe.mjs +19 -0
- package/esm2020/lib/pipes/encode-uri.pipe.mjs +19 -0
- package/{esm2015/lib/pipes/integer-currency.pipe.js → esm2020/lib/pipes/integer-currency.pipe.mjs} +27 -27
- package/{esm2015/lib/pipes/safe-html.pipe.js → esm2020/lib/pipes/safe-html.pipe.mjs} +23 -23
- package/{esm2015/lib/pipes/safe-resource-url.pipe.js → esm2020/lib/pipes/safe-resource-url.pipe.mjs} +23 -23
- package/{esm2015/lib/pipes/safe-style.pipe.js → esm2020/lib/pipes/safe-style.pipe.mjs} +23 -23
- package/{esm2015/lib/pipes/safe-url.pipe.js → esm2020/lib/pipes/safe-url.pipe.mjs} +23 -23
- package/{esm2015/lib/pipes/to-number.pipe.js → esm2020/lib/pipes/to-number.pipe.mjs} +23 -23
- package/{esm2015/lib/pipes/trim.pipe.js → esm2020/lib/pipes/trim.pipe.mjs} +20 -20
- package/{esm2015/lib/pipes/typeof.pipe.js → esm2020/lib/pipes/typeof.pipe.mjs} +16 -16
- package/esm2020/lib/services/viewport.service.mjs +216 -0
- package/esm2020/lib/ui/back-to-top/back-to-top.component.mjs +49 -0
- package/{esm2015/lib/ui/button-with-confirm-dialog/button-response-types.enum.js → esm2020/lib/ui/button-with-confirm-dialog/button-response-types.enum.mjs} +6 -6
- package/esm2020/lib/ui/button-with-confirm-dialog/button-with-confirm-dialog.component.mjs +58 -0
- package/{esm2015/lib/ui/button-with-confirm-dialog/dialog-data.model.js → esm2020/lib/ui/button-with-confirm-dialog/dialog-data.model.mjs} +2 -2
- package/esm2020/lib/ui/checkbox/checkbox.component.mjs +71 -0
- package/esm2020/lib/ui/color-input/color-input.component.mjs +76 -0
- package/esm2020/lib/ui/dropdown-from-data/dropdown-from-data.component.mjs +165 -0
- package/esm2020/lib/ui/enum-radiogroup/enum-radiogroup.component.mjs +53 -0
- package/esm2020/lib/ui/file-input/file-input.component.mjs +232 -0
- package/esm2020/lib/ui/flyout/flyout.component.mjs +119 -0
- package/esm2020/lib/ui/generic-dialog/generic-dialog.component.mjs +54 -0
- package/esm2020/lib/ui/icon/icon.component.mjs +48 -0
- package/esm2020/lib/ui/icon/iconSize.enum.mjs +17 -0
- package/esm2020/lib/ui/image-slider/image-slider.component.mjs +189 -0
- package/esm2020/lib/ui/kms-accordion-item/kms-accordion-item.component.mjs +40 -0
- package/esm2020/lib/ui/loader/loader.component.mjs +21 -0
- package/esm2020/lib/ui/map/map.component.mjs +116 -0
- package/esm2020/lib/ui/radiobutton/radiobutton.component.mjs +73 -0
- package/esm2020/lib/ui/salutation-dropdown/salutation-dropdown.component.mjs +55 -0
- package/esm2020/lib/ui/salutation-radiogroup/salutation-radiogroup.component.mjs +49 -0
- package/esm2020/lib/ui/time-input/time-input.component.mjs +83 -0
- package/esm2020/lib/ui/tooltip/tooltip.component.mjs +16 -0
- package/esm2020/lib/ui/tooltip-icon/tooltip-icon.component.mjs +35 -0
- package/esm2020/lib/ui/yes-no-radiogroup/yes-no-radiogroup.component.mjs +82 -0
- package/esm2020/public-api.mjs +49 -0
- package/fesm2015/kms-ngx-ui-presentational.mjs +3013 -0
- package/fesm2015/kms-ngx-ui-presentational.mjs.map +1 -0
- package/{fesm2015/kms-ngx-ui-presentational.js → fesm2020/kms-ngx-ui-presentational.mjs} +2894 -3108
- package/fesm2020/kms-ngx-ui-presentational.mjs.map +1 -0
- package/{kms-ngx-ui-presentational.d.ts → index.d.ts} +5 -5
- package/lib/directives/directives.module.d.ts +11 -13
- package/lib/directives/mousewheel.directive.d.ts +15 -15
- package/lib/directives/sum-of-height.directive.d.ts +31 -31
- package/lib/directives/swipe.directive.d.ts +45 -45
- package/lib/directives/swipe.model.d.ts +49 -49
- package/lib/directives/tooltip.directive.d.ts +29 -29
- package/lib/kms-ngx-ui-presentational.component.d.ts +8 -8
- package/lib/kms-ngx-ui-presentational.module.d.ts +47 -47
- package/lib/kms-ngx-ui-presentational.service.d.ts +6 -6
- package/lib/models/address.model.d.ts +14 -14
- package/lib/models/iconSize.enum.d.ts +15 -15
- package/lib/models/image-snippet.model.d.ts +15 -15
- package/lib/models/index.d.ts +4 -4
- package/lib/models/is-value.function.d.ts +9 -9
- package/lib/models/salutation.enum.d.ts +5 -5
- package/lib/models/types/attached-file-dto.model.d.ts +11 -11
- package/lib/models/types/nullable.type.d.ts +4 -4
- package/lib/parent-components/actions.component.d.ts +31 -31
- package/lib/parent-components/form-control.component.d.ts +27 -27
- package/lib/parent-components/form.component.d.ts +34 -40
- package/lib/pipes/custom-pipes.module.d.ts +17 -17
- package/lib/pipes/decode-uri.pipe.d.ts +10 -10
- package/lib/pipes/encode-uri.pipe.d.ts +10 -10
- package/lib/pipes/integer-currency.pipe.d.ts +13 -13
- package/lib/pipes/safe-html.pipe.d.ts +13 -13
- package/lib/pipes/safe-resource-url.pipe.d.ts +13 -13
- package/lib/pipes/safe-style.pipe.d.ts +13 -13
- package/lib/pipes/safe-url.pipe.d.ts +13 -13
- package/lib/pipes/to-number.pipe.d.ts +10 -10
- package/lib/pipes/trim.pipe.d.ts +10 -10
- package/lib/pipes/typeof.pipe.d.ts +7 -7
- package/lib/services/viewport.service.d.ts +74 -83
- package/lib/ui/back-to-top/back-to-top.component.d.ts +10 -10
- package/lib/ui/button-with-confirm-dialog/button-response-types.enum.d.ts +4 -4
- package/lib/ui/button-with-confirm-dialog/button-with-confirm-dialog.component.d.ts +19 -19
- package/lib/ui/button-with-confirm-dialog/dialog-data.model.d.ts +9 -9
- package/lib/ui/checkbox/checkbox.component.d.ts +31 -31
- package/lib/ui/color-input/color-input.component.d.ts +19 -19
- package/lib/ui/dropdown-from-data/dropdown-from-data.component.d.ts +55 -55
- package/lib/ui/enum-radiogroup/enum-radiogroup.component.d.ts +17 -17
- package/lib/ui/file-input/file-input.component.d.ts +89 -89
- package/lib/ui/flyout/flyout.component.d.ts +32 -32
- package/lib/ui/generic-dialog/generic-dialog.component.d.ts +26 -26
- package/lib/ui/icon/icon.component.d.ts +42 -48
- package/lib/ui/icon/iconSize.enum.d.ts +15 -25
- package/lib/ui/image-slider/image-slider.component.d.ts +62 -62
- package/lib/ui/kms-accordion-item/kms-accordion-item.component.d.ts +22 -22
- package/lib/ui/loader/loader.component.d.ts +9 -9
- package/lib/ui/map/map.component.d.ts +70 -69
- package/lib/ui/radiobutton/radiobutton.component.d.ts +26 -27
- package/lib/ui/salutation-dropdown/salutation-dropdown.component.d.ts +17 -17
- package/lib/ui/salutation-radiogroup/salutation-radiogroup.component.d.ts +15 -15
- package/lib/ui/time-input/time-input.component.d.ts +22 -22
- package/lib/ui/tooltip/tooltip.component.d.ts +6 -6
- package/lib/ui/tooltip-icon/tooltip-icon.component.d.ts +13 -13
- package/lib/ui/yes-no-radiogroup/yes-no-radiogroup.component.d.ts +27 -27
- package/package.json +27 -14
- package/public-api.d.ts +45 -46
- package/src/lib/ui/back-to-top/back-to-top.component.scss +46 -45
- package/src/lib/ui/button-with-confirm-dialog/button-with-confirm-dialog.component.scss +2 -2
- package/src/lib/ui/checkbox/checkbox.component.scss +48 -48
- package/src/lib/ui/color-input/color-input.component.scss +38 -38
- package/src/lib/ui/file-input/file-input.component.scss +2 -2
- package/src/lib/ui/flyout/flyout.component.scss +34 -34
- package/src/lib/ui/generic-dialog/generic-dialog.component.scss +59 -59
- package/src/lib/ui/icon/icon.component.scss +148 -114
- package/src/lib/ui/image-slider/image-slider.component.scss +219 -219
- package/src/lib/ui/kms-accordion-item/kms-accordion-item.component.scss +95 -95
- package/src/lib/ui/radiobutton/radiobutton.component.scss +31 -31
- package/src/lib/ui/time-input/time-input.component.scss +10 -10
- package/src/lib/ui/tooltip/tooltip.component.scss +26 -26
- package/src/lib/ui/tooltip-icon/tooltip-icon.component.scss +2 -2
- package/src/styles/mixins.scss +8 -8
- package/src/styles/styles.scss +30 -31
- package/bundles/kms-ngx-ui-presentational.umd.js +0 -3751
- package/bundles/kms-ngx-ui-presentational.umd.js.map +0 -1
- package/esm2015/lib/directives/directives.module.js +0 -45
- package/esm2015/lib/directives/size.directive.js +0 -21
- package/esm2015/lib/directives/swipe.model.js +0 -5
- package/esm2015/lib/kms-ngx-ui-presentational.component.js +0 -26
- package/esm2015/lib/models/address.model.js +0 -6
- package/esm2015/lib/parent-components/colorable.component.js +0 -35
- package/esm2015/lib/parent-components/form-control.component.js +0 -76
- package/esm2015/lib/parent-components/form.component.js +0 -99
- package/esm2015/lib/pipes/decode-uri.pipe.js +0 -19
- package/esm2015/lib/pipes/encode-uri.pipe.js +0 -19
- package/esm2015/lib/services/viewport.service.js +0 -242
- package/esm2015/lib/ui/back-to-top/back-to-top.component.js +0 -52
- package/esm2015/lib/ui/button-with-confirm-dialog/button-with-confirm-dialog.component.js +0 -62
- package/esm2015/lib/ui/checkbox/checkbox.component.js +0 -76
- package/esm2015/lib/ui/color-input/color-input.component.js +0 -81
- package/esm2015/lib/ui/dropdown-from-data/dropdown-from-data.component.js +0 -169
- package/esm2015/lib/ui/enum-radiogroup/enum-radiogroup.component.js +0 -57
- package/esm2015/lib/ui/file-input/file-input.component.js +0 -237
- package/esm2015/lib/ui/flyout/flyout.component.js +0 -125
- package/esm2015/lib/ui/generic-dialog/generic-dialog.component.js +0 -58
- package/esm2015/lib/ui/icon/icon.component.js +0 -55
- package/esm2015/lib/ui/icon/iconSize.enum.js +0 -28
- package/esm2015/lib/ui/image-slider/image-slider.component.js +0 -193
- package/esm2015/lib/ui/kms-accordion-item/kms-accordion-item.component.js +0 -44
- package/esm2015/lib/ui/loader/loader.component.js +0 -25
- package/esm2015/lib/ui/map/map.component.js +0 -120
- package/esm2015/lib/ui/radiobutton/radiobutton.component.js +0 -82
- package/esm2015/lib/ui/salutation-dropdown/salutation-dropdown.component.js +0 -59
- package/esm2015/lib/ui/salutation-radiogroup/salutation-radiogroup.component.js +0 -53
- package/esm2015/lib/ui/time-input/time-input.component.js +0 -88
- package/esm2015/lib/ui/tooltip/tooltip.component.js +0 -20
- package/esm2015/lib/ui/tooltip-icon/tooltip-icon.component.js +0 -40
- package/esm2015/lib/ui/yes-no-radiogroup/yes-no-radiogroup.component.js +0 -86
- package/esm2015/public-api.js +0 -50
- package/fesm2015/kms-ngx-ui-presentational.js.map +0 -1
- package/lib/directives/size.directive.d.ts +0 -10
- package/lib/parent-components/colorable.component.d.ts +0 -10
- package/src/styles/animations.scss +0 -47
|
@@ -1,3751 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@angular/material/checkbox'), require('@angular/material/radio'), require('subsink'), require('@angular/material/form-field'), require('@angular/platform-browser'), require('@angular/material/input'), require('@angular/material/button'), require('@ngx-translate/core'), require('@angular/material/progress-spinner'), require('@angular/animations'), require('@angular/material/expansion'), require('rxjs'), require('@angular/google-maps'), require('@angular/material/select'), require('@angular/material/core'), require('@angular/material/dialog'), require('@angular/material/menu'), require('enum-values/src/enumValues'), require('@angular/cdk/drag-drop'), require('ngx-useful-swiper')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@kms-ngx-ui/presentational', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/material/checkbox', '@angular/material/radio', 'subsink', '@angular/material/form-field', '@angular/platform-browser', '@angular/material/input', '@angular/material/button', '@ngx-translate/core', '@angular/material/progress-spinner', '@angular/animations', '@angular/material/expansion', 'rxjs', '@angular/google-maps', '@angular/material/select', '@angular/material/core', '@angular/material/dialog', '@angular/material/menu', 'enum-values/src/enumValues', '@angular/cdk/drag-drop', 'ngx-useful-swiper'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["kms-ngx-ui"] = global["kms-ngx-ui"] || {}, global["kms-ngx-ui"].presentational = {}), global.ng.core, global.ng.common, global.ng.forms, global.ng.material.checkbox, global.ng.material.radio, global.subsink, global.ng.material.formField, global.ng.platformBrowser, global.ng.material.input, global.ng.material.button, global.i6, global.ng.material.progressSpinner, global.ng.animations, global.ng.material.expansion, global.rxjs, global.ng.googleMaps, global.ng.material.select, global.ng.material.core, global.ng.material.dialog, global.ng.material.menu, global.enumValues, global.ng.cdk.dragDrop, global.i2$6));
|
|
5
|
-
})(this, (function (exports, i0, i2, i1, i1$1, i2$2, subsink, i2$1, i1$2, i5, i2$3, i6, i1$3, animations, i2$4, rxjs, i2$5, i3, i4, i1$4, i3$1, enumValues, i6$1, i2$6) { 'use strict';
|
|
6
|
-
|
|
7
|
-
function _interopNamespace(e) {
|
|
8
|
-
if (e && e.__esModule) return e;
|
|
9
|
-
var n = Object.create(null);
|
|
10
|
-
if (e) {
|
|
11
|
-
Object.keys(e).forEach(function (k) {
|
|
12
|
-
if (k !== 'default') {
|
|
13
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function () { return e[k]; }
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
n["default"] = e;
|
|
22
|
-
return Object.freeze(n);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
-
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
27
|
-
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1);
|
|
28
|
-
var i1__namespace = /*#__PURE__*/_interopNamespace(i1$1);
|
|
29
|
-
var i2__namespace$2 = /*#__PURE__*/_interopNamespace(i2$2);
|
|
30
|
-
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
31
|
-
var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
|
|
32
|
-
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
33
|
-
var i2__namespace$3 = /*#__PURE__*/_interopNamespace(i2$3);
|
|
34
|
-
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
35
|
-
var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$3);
|
|
36
|
-
var i2__namespace$4 = /*#__PURE__*/_interopNamespace(i2$4);
|
|
37
|
-
var i2__namespace$5 = /*#__PURE__*/_interopNamespace(i2$5);
|
|
38
|
-
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
39
|
-
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
40
|
-
var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
|
|
41
|
-
var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
|
|
42
|
-
var i6__namespace$1 = /*#__PURE__*/_interopNamespace(i6$1);
|
|
43
|
-
var i2__namespace$6 = /*#__PURE__*/_interopNamespace(i2$6);
|
|
44
|
-
|
|
45
|
-
var KmsUiPresentationalService = /** @class */ (function () {
|
|
46
|
-
function KmsUiPresentationalService() {
|
|
47
|
-
}
|
|
48
|
-
return KmsUiPresentationalService;
|
|
49
|
-
}());
|
|
50
|
-
KmsUiPresentationalService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KmsUiPresentationalService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
51
|
-
KmsUiPresentationalService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KmsUiPresentationalService, providedIn: 'root' });
|
|
52
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KmsUiPresentationalService, decorators: [{
|
|
53
|
-
type: i0.Injectable,
|
|
54
|
-
args: [{
|
|
55
|
-
providedIn: 'root'
|
|
56
|
-
}]
|
|
57
|
-
}], ctorParameters: function () { return []; } });
|
|
58
|
-
|
|
59
|
-
var KmsUiPresentationalComponent = /** @class */ (function () {
|
|
60
|
-
function KmsUiPresentationalComponent() {
|
|
61
|
-
}
|
|
62
|
-
KmsUiPresentationalComponent.prototype.ngOnInit = function () {
|
|
63
|
-
};
|
|
64
|
-
return KmsUiPresentationalComponent;
|
|
65
|
-
}());
|
|
66
|
-
KmsUiPresentationalComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KmsUiPresentationalComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
67
|
-
KmsUiPresentationalComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: KmsUiPresentationalComponent, selector: "lib-kms-ngx-ui-presentational", ngImport: i0__namespace, template: "\n <p>\n kms-ngx-ui-presentational works!\n </p>\n ", isInline: true });
|
|
68
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KmsUiPresentationalComponent, decorators: [{
|
|
69
|
-
type: i0.Component,
|
|
70
|
-
args: [{
|
|
71
|
-
selector: 'lib-kms-ngx-ui-presentational',
|
|
72
|
-
template: "\n <p>\n kms-ngx-ui-presentational works!\n </p>\n ",
|
|
73
|
-
styles: []
|
|
74
|
-
}]
|
|
75
|
-
}], ctorParameters: function () { return []; } });
|
|
76
|
-
|
|
77
|
-
/*!
|
|
78
|
-
* @copyright FLYACTS GmbH 2019
|
|
79
|
-
*/
|
|
80
|
-
var ActionsParentComponent = /** @class */ (function () {
|
|
81
|
-
function ActionsParentComponent() {
|
|
82
|
-
/**
|
|
83
|
-
* Defines the disabled property
|
|
84
|
-
*/
|
|
85
|
-
this.disabled = false;
|
|
86
|
-
/**
|
|
87
|
-
* Set button as selected. F.e. in multiselect component
|
|
88
|
-
*/
|
|
89
|
-
this.checked = false;
|
|
90
|
-
/**
|
|
91
|
-
* Displayed label.
|
|
92
|
-
*/
|
|
93
|
-
this.label = '';
|
|
94
|
-
/**
|
|
95
|
-
* Link
|
|
96
|
-
*/
|
|
97
|
-
this.link = '';
|
|
98
|
-
/**
|
|
99
|
-
* Internal value that will be send if a form is submitted.
|
|
100
|
-
*/
|
|
101
|
-
this.initialValue = '';
|
|
102
|
-
this.select = new i0.EventEmitter();
|
|
103
|
-
}
|
|
104
|
-
ActionsParentComponent.prototype.selectAction = function (id) {
|
|
105
|
-
this.checked = !this.checked;
|
|
106
|
-
this.select.emit(id);
|
|
107
|
-
};
|
|
108
|
-
return ActionsParentComponent;
|
|
109
|
-
}());
|
|
110
|
-
ActionsParentComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ActionsParentComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
111
|
-
ActionsParentComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ActionsParentComponent, selector: "kms-actions", inputs: { disabled: "disabled", checked: "checked", label: "label", link: "link", initialValue: "initialValue" }, outputs: { select: "select" }, ngImport: i0__namespace, template: '', isInline: true });
|
|
112
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ActionsParentComponent, decorators: [{
|
|
113
|
-
type: i0.Component,
|
|
114
|
-
args: [{
|
|
115
|
-
selector: 'kms-actions',
|
|
116
|
-
template: '',
|
|
117
|
-
}]
|
|
118
|
-
}], propDecorators: { disabled: [{
|
|
119
|
-
type: i0.Input
|
|
120
|
-
}], checked: [{
|
|
121
|
-
type: i0.Input
|
|
122
|
-
}], label: [{
|
|
123
|
-
type: i0.Input
|
|
124
|
-
}], link: [{
|
|
125
|
-
type: i0.Input
|
|
126
|
-
}], initialValue: [{
|
|
127
|
-
type: i0.Input
|
|
128
|
-
}], select: [{
|
|
129
|
-
type: i0.Output
|
|
130
|
-
}] } });
|
|
131
|
-
|
|
132
|
-
/******************************************************************************
|
|
133
|
-
Copyright (c) Microsoft Corporation.
|
|
134
|
-
|
|
135
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
136
|
-
purpose with or without fee is hereby granted.
|
|
137
|
-
|
|
138
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
139
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
140
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
141
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
142
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
143
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
144
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
145
|
-
***************************************************************************** */
|
|
146
|
-
/* global Reflect, Promise */
|
|
147
|
-
var extendStatics = function (d, b) {
|
|
148
|
-
extendStatics = Object.setPrototypeOf ||
|
|
149
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
150
|
-
function (d, b) { for (var p in b)
|
|
151
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
152
|
-
d[p] = b[p]; };
|
|
153
|
-
return extendStatics(d, b);
|
|
154
|
-
};
|
|
155
|
-
function __extends(d, b) {
|
|
156
|
-
if (typeof b !== "function" && b !== null)
|
|
157
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
158
|
-
extendStatics(d, b);
|
|
159
|
-
function __() { this.constructor = d; }
|
|
160
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
161
|
-
}
|
|
162
|
-
var __assign = function () {
|
|
163
|
-
__assign = Object.assign || function __assign(t) {
|
|
164
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
165
|
-
s = arguments[i];
|
|
166
|
-
for (var p in s)
|
|
167
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
168
|
-
t[p] = s[p];
|
|
169
|
-
}
|
|
170
|
-
return t;
|
|
171
|
-
};
|
|
172
|
-
return __assign.apply(this, arguments);
|
|
173
|
-
};
|
|
174
|
-
function __rest(s, e) {
|
|
175
|
-
var t = {};
|
|
176
|
-
for (var p in s)
|
|
177
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
178
|
-
t[p] = s[p];
|
|
179
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
180
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
181
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
182
|
-
t[p[i]] = s[p[i]];
|
|
183
|
-
}
|
|
184
|
-
return t;
|
|
185
|
-
}
|
|
186
|
-
function __decorate(decorators, target, key, desc) {
|
|
187
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
188
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
189
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
190
|
-
else
|
|
191
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
192
|
-
if (d = decorators[i])
|
|
193
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
194
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
195
|
-
}
|
|
196
|
-
function __param(paramIndex, decorator) {
|
|
197
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
198
|
-
}
|
|
199
|
-
function __metadata(metadataKey, metadataValue) {
|
|
200
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
201
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
202
|
-
}
|
|
203
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
204
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
205
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
206
|
-
function fulfilled(value) { try {
|
|
207
|
-
step(generator.next(value));
|
|
208
|
-
}
|
|
209
|
-
catch (e) {
|
|
210
|
-
reject(e);
|
|
211
|
-
} }
|
|
212
|
-
function rejected(value) { try {
|
|
213
|
-
step(generator["throw"](value));
|
|
214
|
-
}
|
|
215
|
-
catch (e) {
|
|
216
|
-
reject(e);
|
|
217
|
-
} }
|
|
218
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
219
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
220
|
-
});
|
|
221
|
-
}
|
|
222
|
-
function __generator(thisArg, body) {
|
|
223
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
224
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
225
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
226
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
227
|
-
function step(op) {
|
|
228
|
-
if (f)
|
|
229
|
-
throw new TypeError("Generator is already executing.");
|
|
230
|
-
while (g && (g = 0, op[0] && (_ = 0)), _)
|
|
231
|
-
try {
|
|
232
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
233
|
-
return t;
|
|
234
|
-
if (y = 0, t)
|
|
235
|
-
op = [op[0] & 2, t.value];
|
|
236
|
-
switch (op[0]) {
|
|
237
|
-
case 0:
|
|
238
|
-
case 1:
|
|
239
|
-
t = op;
|
|
240
|
-
break;
|
|
241
|
-
case 4:
|
|
242
|
-
_.label++;
|
|
243
|
-
return { value: op[1], done: false };
|
|
244
|
-
case 5:
|
|
245
|
-
_.label++;
|
|
246
|
-
y = op[1];
|
|
247
|
-
op = [0];
|
|
248
|
-
continue;
|
|
249
|
-
case 7:
|
|
250
|
-
op = _.ops.pop();
|
|
251
|
-
_.trys.pop();
|
|
252
|
-
continue;
|
|
253
|
-
default:
|
|
254
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
255
|
-
_ = 0;
|
|
256
|
-
continue;
|
|
257
|
-
}
|
|
258
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
259
|
-
_.label = op[1];
|
|
260
|
-
break;
|
|
261
|
-
}
|
|
262
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
263
|
-
_.label = t[1];
|
|
264
|
-
t = op;
|
|
265
|
-
break;
|
|
266
|
-
}
|
|
267
|
-
if (t && _.label < t[2]) {
|
|
268
|
-
_.label = t[2];
|
|
269
|
-
_.ops.push(op);
|
|
270
|
-
break;
|
|
271
|
-
}
|
|
272
|
-
if (t[2])
|
|
273
|
-
_.ops.pop();
|
|
274
|
-
_.trys.pop();
|
|
275
|
-
continue;
|
|
276
|
-
}
|
|
277
|
-
op = body.call(thisArg, _);
|
|
278
|
-
}
|
|
279
|
-
catch (e) {
|
|
280
|
-
op = [6, e];
|
|
281
|
-
y = 0;
|
|
282
|
-
}
|
|
283
|
-
finally {
|
|
284
|
-
f = t = 0;
|
|
285
|
-
}
|
|
286
|
-
if (op[0] & 5)
|
|
287
|
-
throw op[1];
|
|
288
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
292
|
-
if (k2 === undefined)
|
|
293
|
-
k2 = k;
|
|
294
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
295
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
296
|
-
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
297
|
-
}
|
|
298
|
-
Object.defineProperty(o, k2, desc);
|
|
299
|
-
}) : (function (o, m, k, k2) {
|
|
300
|
-
if (k2 === undefined)
|
|
301
|
-
k2 = k;
|
|
302
|
-
o[k2] = m[k];
|
|
303
|
-
});
|
|
304
|
-
function __exportStar(m, o) {
|
|
305
|
-
for (var p in m)
|
|
306
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
307
|
-
__createBinding(o, m, p);
|
|
308
|
-
}
|
|
309
|
-
function __values(o) {
|
|
310
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
311
|
-
if (m)
|
|
312
|
-
return m.call(o);
|
|
313
|
-
if (o && typeof o.length === "number")
|
|
314
|
-
return {
|
|
315
|
-
next: function () {
|
|
316
|
-
if (o && i >= o.length)
|
|
317
|
-
o = void 0;
|
|
318
|
-
return { value: o && o[i++], done: !o };
|
|
319
|
-
}
|
|
320
|
-
};
|
|
321
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
322
|
-
}
|
|
323
|
-
function __read(o, n) {
|
|
324
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
325
|
-
if (!m)
|
|
326
|
-
return o;
|
|
327
|
-
var i = m.call(o), r, ar = [], e;
|
|
328
|
-
try {
|
|
329
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
330
|
-
ar.push(r.value);
|
|
331
|
-
}
|
|
332
|
-
catch (error) {
|
|
333
|
-
e = { error: error };
|
|
334
|
-
}
|
|
335
|
-
finally {
|
|
336
|
-
try {
|
|
337
|
-
if (r && !r.done && (m = i["return"]))
|
|
338
|
-
m.call(i);
|
|
339
|
-
}
|
|
340
|
-
finally {
|
|
341
|
-
if (e)
|
|
342
|
-
throw e.error;
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
return ar;
|
|
346
|
-
}
|
|
347
|
-
/** @deprecated */
|
|
348
|
-
function __spread() {
|
|
349
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
350
|
-
ar = ar.concat(__read(arguments[i]));
|
|
351
|
-
return ar;
|
|
352
|
-
}
|
|
353
|
-
/** @deprecated */
|
|
354
|
-
function __spreadArrays() {
|
|
355
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
356
|
-
s += arguments[i].length;
|
|
357
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
358
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
359
|
-
r[k] = a[j];
|
|
360
|
-
return r;
|
|
361
|
-
}
|
|
362
|
-
function __spreadArray(to, from, pack) {
|
|
363
|
-
if (pack || arguments.length === 2)
|
|
364
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
365
|
-
if (ar || !(i in from)) {
|
|
366
|
-
if (!ar)
|
|
367
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
368
|
-
ar[i] = from[i];
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
372
|
-
}
|
|
373
|
-
function __await(v) {
|
|
374
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
375
|
-
}
|
|
376
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
377
|
-
if (!Symbol.asyncIterator)
|
|
378
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
379
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
380
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
381
|
-
function verb(n) { if (g[n])
|
|
382
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
383
|
-
function resume(n, v) { try {
|
|
384
|
-
step(g[n](v));
|
|
385
|
-
}
|
|
386
|
-
catch (e) {
|
|
387
|
-
settle(q[0][3], e);
|
|
388
|
-
} }
|
|
389
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
390
|
-
function fulfill(value) { resume("next", value); }
|
|
391
|
-
function reject(value) { resume("throw", value); }
|
|
392
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
393
|
-
resume(q[0][0], q[0][1]); }
|
|
394
|
-
}
|
|
395
|
-
function __asyncDelegator(o) {
|
|
396
|
-
var i, p;
|
|
397
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
398
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
399
|
-
}
|
|
400
|
-
function __asyncValues(o) {
|
|
401
|
-
if (!Symbol.asyncIterator)
|
|
402
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
403
|
-
var m = o[Symbol.asyncIterator], i;
|
|
404
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
405
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
406
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
407
|
-
}
|
|
408
|
-
function __makeTemplateObject(cooked, raw) {
|
|
409
|
-
if (Object.defineProperty) {
|
|
410
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
411
|
-
}
|
|
412
|
-
else {
|
|
413
|
-
cooked.raw = raw;
|
|
414
|
-
}
|
|
415
|
-
return cooked;
|
|
416
|
-
}
|
|
417
|
-
;
|
|
418
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
419
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
420
|
-
}) : function (o, v) {
|
|
421
|
-
o["default"] = v;
|
|
422
|
-
};
|
|
423
|
-
function __importStar(mod) {
|
|
424
|
-
if (mod && mod.__esModule)
|
|
425
|
-
return mod;
|
|
426
|
-
var result = {};
|
|
427
|
-
if (mod != null)
|
|
428
|
-
for (var k in mod)
|
|
429
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
430
|
-
__createBinding(result, mod, k);
|
|
431
|
-
__setModuleDefault(result, mod);
|
|
432
|
-
return result;
|
|
433
|
-
}
|
|
434
|
-
function __importDefault(mod) {
|
|
435
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
436
|
-
}
|
|
437
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
438
|
-
if (kind === "a" && !f)
|
|
439
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
440
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
441
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
442
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
443
|
-
}
|
|
444
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
445
|
-
if (kind === "m")
|
|
446
|
-
throw new TypeError("Private method is not writable");
|
|
447
|
-
if (kind === "a" && !f)
|
|
448
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
449
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
450
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
451
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
452
|
-
}
|
|
453
|
-
function __classPrivateFieldIn(state, receiver) {
|
|
454
|
-
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
|
|
455
|
-
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
456
|
-
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
var CheckboxComponent = /** @class */ (function (_super) {
|
|
460
|
-
__extends(CheckboxComponent, _super);
|
|
461
|
-
function CheckboxComponent() {
|
|
462
|
-
var _this = _super.call(this) || this;
|
|
463
|
-
/**
|
|
464
|
-
* Internal description name. All checkboxes with the same name belong to the same group.
|
|
465
|
-
* User can select none, one or all checkboxes with the same name.
|
|
466
|
-
*/
|
|
467
|
-
_this.name = '';
|
|
468
|
-
_this.select = new i0.EventEmitter();
|
|
469
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
470
|
-
_this.onChange = function () { };
|
|
471
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
472
|
-
_this.onTouch = function () { };
|
|
473
|
-
return _this;
|
|
474
|
-
}
|
|
475
|
-
CheckboxComponent.prototype.selectAction = function (id) {
|
|
476
|
-
this.select.emit(id);
|
|
477
|
-
this.checked = !this.checked;
|
|
478
|
-
};
|
|
479
|
-
Object.defineProperty(CheckboxComponent.prototype, "value", {
|
|
480
|
-
get: function () {
|
|
481
|
-
return this.checked;
|
|
482
|
-
},
|
|
483
|
-
set: function (value) {
|
|
484
|
-
this.checked = value;
|
|
485
|
-
this.onChange(value);
|
|
486
|
-
this.onTouch(value);
|
|
487
|
-
},
|
|
488
|
-
enumerable: false,
|
|
489
|
-
configurable: true
|
|
490
|
-
});
|
|
491
|
-
CheckboxComponent.prototype.writeValue = function (value) {
|
|
492
|
-
this.value = value;
|
|
493
|
-
};
|
|
494
|
-
CheckboxComponent.prototype.registerOnChange = function (fn) {
|
|
495
|
-
this.onChange = fn;
|
|
496
|
-
};
|
|
497
|
-
CheckboxComponent.prototype.registerOnTouched = function (fn) {
|
|
498
|
-
this.onTouch = fn;
|
|
499
|
-
};
|
|
500
|
-
return CheckboxComponent;
|
|
501
|
-
}(ActionsParentComponent));
|
|
502
|
-
CheckboxComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CheckboxComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
503
|
-
CheckboxComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: CheckboxComponent, selector: "kms-checkbox", inputs: { infoText: "infoText", name: "name" }, outputs: { select: "select" }, providers: [
|
|
504
|
-
{
|
|
505
|
-
provide: i1.NG_VALUE_ACCESSOR,
|
|
506
|
-
useExisting: i0.forwardRef(function () { return CheckboxComponent; }),
|
|
507
|
-
multi: true,
|
|
508
|
-
},
|
|
509
|
-
], usesInheritance: true, ngImport: i0__namespace, template: "<!-- <label class=\"wrapper ui-copy-text\"\r\n [ngClass]=\"{'disabled' : disabled}\">{{label}}\r\n <input type=\"checkbox\" \r\n [checked]=\"checked\"\r\n [value]=\"value\"\r\n [name]=\"name\"\r\n [disabled]=\"disabled\"\r\n (change)=\"selectAction($event)\">\r\n\r\n</label> -->\r\n<mat-checkbox class=\"example-margin\" [disabled]=\"disabled\" [name]=\"name\" [(ngModel)]=\"checked\"></mat-checkbox>\r\n<span *ngIf=\"infoText && infoText.length > 0\" \r\n class=\"\"\r\n [ngClass]=\"{'disabled' : disabled}\">{{infoText}}\r\n</span>", styles: [""], components: [{ type: i1__namespace.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex", "aria-label", "aria-labelledby", "id", "labelPosition", "name", "required", "checked", "disabled", "indeterminate", "aria-describedby", "value"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }], directives: [{ type: i1__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
510
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CheckboxComponent, decorators: [{
|
|
511
|
-
type: i0.Component,
|
|
512
|
-
args: [{
|
|
513
|
-
selector: 'kms-checkbox',
|
|
514
|
-
templateUrl: './checkbox.component.html',
|
|
515
|
-
styleUrls: ['./checkbox.component.scss'],
|
|
516
|
-
providers: [
|
|
517
|
-
{
|
|
518
|
-
provide: i1.NG_VALUE_ACCESSOR,
|
|
519
|
-
useExisting: i0.forwardRef(function () { return CheckboxComponent; }),
|
|
520
|
-
multi: true,
|
|
521
|
-
},
|
|
522
|
-
],
|
|
523
|
-
}]
|
|
524
|
-
}], ctorParameters: function () { return []; }, propDecorators: { infoText: [{
|
|
525
|
-
type: i0.Input
|
|
526
|
-
}], name: [{
|
|
527
|
-
type: i0.Input
|
|
528
|
-
}], select: [{
|
|
529
|
-
type: i0.Output
|
|
530
|
-
}] } });
|
|
531
|
-
|
|
532
|
-
/*!
|
|
533
|
-
* @copyright FLYACTS GmbH 2019
|
|
534
|
-
*/
|
|
535
|
-
var ColorableParentComponent = /** @class */ (function () {
|
|
536
|
-
function ColorableParentComponent() {
|
|
537
|
-
}
|
|
538
|
-
ColorableParentComponent.prototype.setupColors = function (elementRef) {
|
|
539
|
-
if (this.color) {
|
|
540
|
-
var color1 = void 0;
|
|
541
|
-
var color2 = void 0;
|
|
542
|
-
if (this.color === 'primary' || this.color === 'accent') {
|
|
543
|
-
color1 = 'var(--' + this.color + 'Color)';
|
|
544
|
-
color2 = 'var(--' + this.color + 'ColorHover)';
|
|
545
|
-
}
|
|
546
|
-
else {
|
|
547
|
-
color1 = this.color;
|
|
548
|
-
color2 = this.color;
|
|
549
|
-
}
|
|
550
|
-
elementRef.style.setProperty('--componentColor', color1);
|
|
551
|
-
elementRef.style.setProperty('--componentColorHover', color2);
|
|
552
|
-
}
|
|
553
|
-
};
|
|
554
|
-
return ColorableParentComponent;
|
|
555
|
-
}());
|
|
556
|
-
ColorableParentComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ColorableParentComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
557
|
-
ColorableParentComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ColorableParentComponent, selector: "ng-component", inputs: { color: "color" }, ngImport: i0__namespace, template: '', isInline: true });
|
|
558
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ColorableParentComponent, decorators: [{
|
|
559
|
-
type: i0.Component,
|
|
560
|
-
args: [{
|
|
561
|
-
selector: '',
|
|
562
|
-
template: '',
|
|
563
|
-
}]
|
|
564
|
-
}], propDecorators: { color: [{
|
|
565
|
-
type: i0.Input
|
|
566
|
-
}] } });
|
|
567
|
-
|
|
568
|
-
var FormParentComponent = /** @class */ (function (_super) {
|
|
569
|
-
__extends(FormParentComponent, _super);
|
|
570
|
-
function FormParentComponent(formBuilder) {
|
|
571
|
-
var _this = _super.call(this) || this;
|
|
572
|
-
_this.formBuilder = formBuilder;
|
|
573
|
-
_this.disabled = false;
|
|
574
|
-
_this.showRequired = false;
|
|
575
|
-
_this.formInitialized = false;
|
|
576
|
-
_this.allowedCharsOnlyNumbers = new Set('0123456789'.split('').map(function (c) { return c.charCodeAt(0); }));
|
|
577
|
-
_this.subs = new subsink.SubSink();
|
|
578
|
-
_this.formDataChanged = new i0.EventEmitter();
|
|
579
|
-
return _this;
|
|
580
|
-
}
|
|
581
|
-
// TODO make a service or make own component etc.
|
|
582
|
-
/**
|
|
583
|
-
* Returns if a number was pressed
|
|
584
|
-
* @param e
|
|
585
|
-
* @returns
|
|
586
|
-
*/
|
|
587
|
-
FormParentComponent.prototype.checkIfKeyWasNumber = function (e, allowDelete, allowArrows, allowCutCopyPaste) {
|
|
588
|
-
if (allowDelete === void 0) { allowDelete = true; }
|
|
589
|
-
if (allowArrows === void 0) { allowArrows = true; }
|
|
590
|
-
if (allowCutCopyPaste === void 0) { allowCutCopyPaste = true; }
|
|
591
|
-
// returns if keycode of numbers-row or numberpad. Or if parameter set, allow delete/backspace key
|
|
592
|
-
var isNumberRow = e.keyCode >= 48 && e.keyCode <= 57;
|
|
593
|
-
var isNumberPad = e.keyCode >= 96 && e.keyCode <= 105;
|
|
594
|
-
var isArrows = e.keyCode >= 37 && e.keyCode <= 40;
|
|
595
|
-
var isDelete = e.keyCode == 8 || e.keyCode == 46;
|
|
596
|
-
var isCutCopyOrPaste = (e.ctrlKey || e.metaKey) && (e.keyCode == 86 || e.keyCode == 88 || e.keyCode == 67);
|
|
597
|
-
var isTab = 9;
|
|
598
|
-
return (isNumberRow ||
|
|
599
|
-
isNumberPad ||
|
|
600
|
-
isTab ||
|
|
601
|
-
(allowDelete && isDelete) ||
|
|
602
|
-
(allowArrows && isArrows) ||
|
|
603
|
-
(allowCutCopyPaste && isCutCopyOrPaste));
|
|
604
|
-
};
|
|
605
|
-
// TODO make a service or make own component etc.
|
|
606
|
-
/**
|
|
607
|
-
* Prevents to input other chars than numbers in input
|
|
608
|
-
* @param event
|
|
609
|
-
*/
|
|
610
|
-
FormParentComponent.prototype.removeNumbersOnType = function (event) {
|
|
611
|
-
// only allow keydown from numbers-row or numberpad of keybard and block other chars than numbers
|
|
612
|
-
if (!this.checkIfKeyWasNumber(event) && !this.allowedCharsOnlyNumbers.has(event.keyCode)) {
|
|
613
|
-
event.preventDefault();
|
|
614
|
-
}
|
|
615
|
-
};
|
|
616
|
-
// TODO make a service or make own component etc.
|
|
617
|
-
/**
|
|
618
|
-
* Prevents input when pasting which is not number
|
|
619
|
-
* @param event
|
|
620
|
-
*/
|
|
621
|
-
FormParentComponent.prototype.removeNumbersOnPaste = function (event) {
|
|
622
|
-
var clipboardData = event.clipboardData;
|
|
623
|
-
if (clipboardData) {
|
|
624
|
-
var pastedText = clipboardData.getData('text');
|
|
625
|
-
if (pastedText) {
|
|
626
|
-
var isnum = /^\d+$/.test(pastedText);
|
|
627
|
-
if (!isnum) {
|
|
628
|
-
event.preventDefault();
|
|
629
|
-
}
|
|
630
|
-
}
|
|
631
|
-
}
|
|
632
|
-
};
|
|
633
|
-
FormParentComponent.prototype.ngOnInit = function () {
|
|
634
|
-
this.initFormEvent();
|
|
635
|
-
};
|
|
636
|
-
FormParentComponent.prototype.ngOnDestroy = function () {
|
|
637
|
-
this.subs.unsubscribe();
|
|
638
|
-
};
|
|
639
|
-
FormParentComponent.prototype.initFormEvent = function () {
|
|
640
|
-
var _this = this;
|
|
641
|
-
if (this.form) {
|
|
642
|
-
this.formDataChanged.emit(this.form);
|
|
643
|
-
this.form.valueChanges.subscribe(function () {
|
|
644
|
-
_this.formDataChanged.emit(_this.form);
|
|
645
|
-
});
|
|
646
|
-
}
|
|
647
|
-
};
|
|
648
|
-
return FormParentComponent;
|
|
649
|
-
}(ColorableParentComponent));
|
|
650
|
-
FormParentComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FormParentComponent, deps: [{ token: i1__namespace$1.FormBuilder }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
651
|
-
FormParentComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FormParentComponent, selector: "kms-form", inputs: { disabled: "disabled", showRequired: "showRequired" }, outputs: { formDataChanged: "formDataChanged" }, usesInheritance: true, ngImport: i0__namespace, template: '', isInline: true });
|
|
652
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FormParentComponent, decorators: [{
|
|
653
|
-
type: i0.Component,
|
|
654
|
-
args: [{
|
|
655
|
-
selector: 'kms-form',
|
|
656
|
-
template: '',
|
|
657
|
-
}]
|
|
658
|
-
}], ctorParameters: function () { return [{ type: i1__namespace$1.FormBuilder }]; }, propDecorators: { disabled: [{
|
|
659
|
-
type: i0.Input
|
|
660
|
-
}], showRequired: [{
|
|
661
|
-
type: i0.Input
|
|
662
|
-
}], formDataChanged: [{
|
|
663
|
-
type: i0.Output
|
|
664
|
-
}] } });
|
|
665
|
-
|
|
666
|
-
var FormControlParentComponent = /** @class */ (function (_super) {
|
|
667
|
-
__extends(FormControlParentComponent, _super);
|
|
668
|
-
function FormControlParentComponent(formBuilder, renderer) {
|
|
669
|
-
var _this = _super.call(this, formBuilder) || this;
|
|
670
|
-
_this.formBuilder = formBuilder;
|
|
671
|
-
_this.renderer = renderer;
|
|
672
|
-
_this.defaultDataOverride = ''; // when we have NO form around, get default via input to set it manually
|
|
673
|
-
_this.onSelectItemEmitter = new i0.EventEmitter();
|
|
674
|
-
_this.internalValue = '';
|
|
675
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
676
|
-
_this.onChange = function () { };
|
|
677
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
678
|
-
_this.onTouch = function () { };
|
|
679
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
680
|
-
_this.onTouched = function () { };
|
|
681
|
-
return _this;
|
|
682
|
-
}
|
|
683
|
-
FormControlParentComponent.prototype.ngOnInit = function () {
|
|
684
|
-
_super.prototype.ngOnInit.call(this);
|
|
685
|
-
};
|
|
686
|
-
FormControlParentComponent.prototype.change = function (value) {
|
|
687
|
-
this.onChange(value);
|
|
688
|
-
this.onTouched();
|
|
689
|
-
};
|
|
690
|
-
Object.defineProperty(FormControlParentComponent.prototype, "value", {
|
|
691
|
-
get: function () {
|
|
692
|
-
return this.internalValue;
|
|
693
|
-
},
|
|
694
|
-
set: function (value) {
|
|
695
|
-
this.internalValue = value;
|
|
696
|
-
if (value !== undefined && this.internalValue !== value) {
|
|
697
|
-
if (!this.internalValue && this.defaultDataOverride) {
|
|
698
|
-
this.internalValue = this.defaultDataOverride;
|
|
699
|
-
}
|
|
700
|
-
this.onChange(value);
|
|
701
|
-
this.onTouch(value);
|
|
702
|
-
}
|
|
703
|
-
},
|
|
704
|
-
enumerable: false,
|
|
705
|
-
configurable: true
|
|
706
|
-
});
|
|
707
|
-
FormControlParentComponent.prototype.writeValue = function (value) {
|
|
708
|
-
this.internalValue = value;
|
|
709
|
-
this.value = value;
|
|
710
|
-
};
|
|
711
|
-
FormControlParentComponent.prototype.registerOnChange = function (fn) {
|
|
712
|
-
this.onChange = fn;
|
|
713
|
-
};
|
|
714
|
-
FormControlParentComponent.prototype.registerOnTouched = function (fn) {
|
|
715
|
-
this.onTouch = fn;
|
|
716
|
-
};
|
|
717
|
-
FormControlParentComponent.prototype.setDisabledState = function (isDisabled) {
|
|
718
|
-
var _a;
|
|
719
|
-
if ((_a = this.child) === null || _a === void 0 ? void 0 : _a.nativeElement) {
|
|
720
|
-
this.renderer.setProperty(this.child.nativeElement, 'disabled', isDisabled);
|
|
721
|
-
}
|
|
722
|
-
};
|
|
723
|
-
FormControlParentComponent.prototype.validate = function (_) {
|
|
724
|
-
return this.form.valid ? null : false;
|
|
725
|
-
};
|
|
726
|
-
return FormControlParentComponent;
|
|
727
|
-
}(FormParentComponent));
|
|
728
|
-
FormControlParentComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FormControlParentComponent, deps: [{ token: i1__namespace$1.FormBuilder }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
729
|
-
FormControlParentComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FormControlParentComponent, selector: "kms-formControlParent", inputs: { defaultDataOverride: "defaultDataOverride" }, outputs: { onSelectItemEmitter: "onSelectItemEmitter" }, viewQueries: [{ propertyName: "child", first: true, predicate: ["child"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: '', isInline: true });
|
|
730
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FormControlParentComponent, decorators: [{
|
|
731
|
-
type: i0.Component,
|
|
732
|
-
args: [{
|
|
733
|
-
selector: 'kms-formControlParent',
|
|
734
|
-
template: '',
|
|
735
|
-
}]
|
|
736
|
-
}], ctorParameters: function () { return [{ type: i1__namespace$1.FormBuilder }, { type: i0__namespace.Renderer2 }]; }, propDecorators: { defaultDataOverride: [{
|
|
737
|
-
type: i0.Input
|
|
738
|
-
}], onSelectItemEmitter: [{
|
|
739
|
-
type: i0.Output
|
|
740
|
-
}], child: [{
|
|
741
|
-
type: i0.ViewChild,
|
|
742
|
-
args: ['child']
|
|
743
|
-
}] } });
|
|
744
|
-
|
|
745
|
-
/*!
|
|
746
|
-
* @copyright FLYACTS GmbH 2019
|
|
747
|
-
*/
|
|
748
|
-
var IconSize;
|
|
749
|
-
(function (IconSize) {
|
|
750
|
-
IconSize["FULLSIZE"] = "size-full";
|
|
751
|
-
IconSize["TINY"] = "size-16";
|
|
752
|
-
IconSize["SMALLER"] = "size-20";
|
|
753
|
-
IconSize["SMALL"] = "size-32";
|
|
754
|
-
IconSize["MEDIUM"] = "size-64";
|
|
755
|
-
IconSize["LARGE"] = "size-128";
|
|
756
|
-
IconSize["XL"] = "size-256";
|
|
757
|
-
IconSize["XXL"] = "size-512";
|
|
758
|
-
IconSize["XXXL"] = "size-1024";
|
|
759
|
-
IconSize["NONE"] = "NONE";
|
|
760
|
-
})(IconSize || (IconSize = {}));
|
|
761
|
-
var IconSizePx;
|
|
762
|
-
(function (IconSizePx) {
|
|
763
|
-
IconSizePx[IconSizePx["TINY"] = 16] = "TINY";
|
|
764
|
-
IconSizePx[IconSizePx["SMALLER"] = 20] = "SMALLER";
|
|
765
|
-
IconSizePx[IconSizePx["SMALL"] = 32] = "SMALL";
|
|
766
|
-
IconSizePx[IconSizePx["MEDIUM"] = 64] = "MEDIUM";
|
|
767
|
-
IconSizePx[IconSizePx["LARGE"] = 128] = "LARGE";
|
|
768
|
-
IconSizePx[IconSizePx["XL"] = 256] = "XL";
|
|
769
|
-
IconSizePx[IconSizePx["XXL"] = 512] = "XXL";
|
|
770
|
-
IconSizePx[IconSizePx["XXXL"] = 1024] = "XXXL";
|
|
771
|
-
})(IconSizePx || (IconSizePx = {}));
|
|
772
|
-
|
|
773
|
-
/**
|
|
774
|
-
* @copyright KMS GmbH
|
|
775
|
-
*/
|
|
776
|
-
var IconComponent = /** @class */ (function () {
|
|
777
|
-
function IconComponent(sanitizer) {
|
|
778
|
-
this.sanitizer = sanitizer;
|
|
779
|
-
/**
|
|
780
|
-
* Optional: Different size via CSS inline style.
|
|
781
|
-
* @deprecated. Please use size instead
|
|
782
|
-
*/
|
|
783
|
-
this.iconSize = IconSize.FULLSIZE;
|
|
784
|
-
/**
|
|
785
|
-
* Dont use icon sprite
|
|
786
|
-
*/
|
|
787
|
-
this.dontUseSprite = false;
|
|
788
|
-
this.IconSize = IconSize;
|
|
789
|
-
this.Version = i0.VERSION.full;
|
|
790
|
-
this.timestamp = 0;
|
|
791
|
-
this.iconToShow = this.icon;
|
|
792
|
-
}
|
|
793
|
-
IconComponent.prototype.ngOnInit = function () {
|
|
794
|
-
this.iconToShow = this.icon;
|
|
795
|
-
var d = new Date();
|
|
796
|
-
var n = d.getTime();
|
|
797
|
-
this.timestamp = n;
|
|
798
|
-
};
|
|
799
|
-
return IconComponent;
|
|
800
|
-
}());
|
|
801
|
-
IconComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IconComponent, deps: [{ token: i1__namespace$2.DomSanitizer }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
802
|
-
IconComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: IconComponent, selector: "kms-icon", inputs: { icon: "icon", iconClass: "iconClass", iconStyle: "iconStyle", iconSize: "iconSize", size: "size", dontUseSprite: "dontUseSprite" }, ngImport: i0__namespace, template: "<ng-container *ngIf=\"icon !== 'none' && dontUseSprite === false\">\r\n <span class=\"icon {{ iconSize }}\" [ngClass]=\"iconClass\" [ngStyle]=\"iconStyle\" [style.width.px]=\"size ? size : undefined\" [style.height.px]=\"size ? size : undefined\">\r\n <svg>\r\n <use\r\n [attr.xlink:href]=\"\r\n 'assets/sprite.svg?Version=' + Version + '#' + iconToShow\r\n \"\r\n ></use>\r\n </svg>\r\n </span>\r\n</ng-container>\r\n<ng-container *ngIf=\"icon !== 'none' && dontUseSprite === true\">\r\n <object\r\n [data]=\"\r\n sanitizer.bypassSecurityTrustResourceUrl('assets/icons/' + icon + '')\r\n \"\r\n type=\"image/svg+xml\"\r\n class=\"icon {{ iconSize }}\"\r\n [ngClass]=\"iconClass\"\r\n [ngStyle]=\"iconStyle\"\r\n ></object>\r\n</ng-container>\r\n", styles: [""], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
803
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IconComponent, decorators: [{
|
|
804
|
-
type: i0.Component,
|
|
805
|
-
args: [{
|
|
806
|
-
selector: 'kms-icon',
|
|
807
|
-
templateUrl: './icon.component.html',
|
|
808
|
-
styleUrls: ['./icon.component.scss'],
|
|
809
|
-
}]
|
|
810
|
-
}], ctorParameters: function () { return [{ type: i1__namespace$2.DomSanitizer }]; }, propDecorators: { icon: [{
|
|
811
|
-
type: i0.Input
|
|
812
|
-
}], iconClass: [{
|
|
813
|
-
type: i0.Input
|
|
814
|
-
}], iconStyle: [{
|
|
815
|
-
type: i0.Input
|
|
816
|
-
}], iconSize: [{
|
|
817
|
-
type: i0.Input
|
|
818
|
-
}], size: [{
|
|
819
|
-
type: i0.Input
|
|
820
|
-
}], dontUseSprite: [{
|
|
821
|
-
type: i0.Input
|
|
822
|
-
}] } });
|
|
823
|
-
|
|
824
|
-
var TooltipDirective = /** @class */ (function () {
|
|
825
|
-
function TooltipDirective(el, renderer) {
|
|
826
|
-
this.el = el;
|
|
827
|
-
this.renderer = renderer;
|
|
828
|
-
this.tooltipTitle = "";
|
|
829
|
-
this.tooltipText = "";
|
|
830
|
-
this.tooltipLinkText = "";
|
|
831
|
-
this.tooltipLinkUrl = "";
|
|
832
|
-
this.tooltipPlacement = "bottom";
|
|
833
|
-
this.tooltipDelay = 1000;
|
|
834
|
-
this.tooltipPlaceIntoHost = false;
|
|
835
|
-
this.tooltipOnlyonclick = false;
|
|
836
|
-
this.offset = 0;
|
|
837
|
-
}
|
|
838
|
-
TooltipDirective.prototype.onMouseEnter = function () {
|
|
839
|
-
if (!this.tooltipOnlyonclick) {
|
|
840
|
-
this.show();
|
|
841
|
-
}
|
|
842
|
-
};
|
|
843
|
-
TooltipDirective.prototype.onClick = function () {
|
|
844
|
-
if (this.tooltipOnlyonclick) {
|
|
845
|
-
this.show();
|
|
846
|
-
}
|
|
847
|
-
};
|
|
848
|
-
TooltipDirective.prototype.onMouseLeave = function () {
|
|
849
|
-
if (this.tooltipElem) {
|
|
850
|
-
this.hide();
|
|
851
|
-
}
|
|
852
|
-
};
|
|
853
|
-
TooltipDirective.prototype.show = function () {
|
|
854
|
-
if (!this.tooltipElem) {
|
|
855
|
-
this.create();
|
|
856
|
-
this.setPosition();
|
|
857
|
-
}
|
|
858
|
-
this.renderer.addClass(this.tooltipElem, 'tooltip-show');
|
|
859
|
-
};
|
|
860
|
-
TooltipDirective.prototype.hide = function () {
|
|
861
|
-
this.renderer.removeClass(this.tooltipElem, 'tooltip-show');
|
|
862
|
-
window.setTimeout(function () {
|
|
863
|
-
}, this.tooltipDelay);
|
|
864
|
-
};
|
|
865
|
-
TooltipDirective.prototype.create = function () {
|
|
866
|
-
this.tooltipElem = this.renderer.createElement('kms-tooltip-element');
|
|
867
|
-
this.tooltipTitleElem = this.renderer.createElement('b');
|
|
868
|
-
this.renderer.appendChild(this.tooltipTitleElem, this.renderer.createText(this.tooltipTitle));
|
|
869
|
-
this.renderer.appendChild(this.tooltipElem, this.tooltipTitleElem);
|
|
870
|
-
this.tooltipTextElem = this.renderer.createElement('div');
|
|
871
|
-
this.renderer.appendChild(this.tooltipTextElem, this.renderer.createText(this.tooltipText));
|
|
872
|
-
this.renderer.appendChild(this.tooltipElem, this.tooltipTextElem);
|
|
873
|
-
this.tooltipLinkElem = this.renderer.createElement('a');
|
|
874
|
-
this.renderer.setAttribute(this.tooltipLinkElem, 'href', this.tooltipLinkUrl);
|
|
875
|
-
this.renderer.appendChild(this.tooltipLinkElem, this.renderer.createText(this.tooltipLinkText));
|
|
876
|
-
this.renderer.appendChild(this.tooltipElem, this.tooltipLinkElem);
|
|
877
|
-
if (this.tooltipPlaceIntoHost) {
|
|
878
|
-
this.renderer.appendChild(this.el.nativeElement, this.tooltipElem);
|
|
879
|
-
}
|
|
880
|
-
else {
|
|
881
|
-
this.renderer.appendChild(document.body, this.tooltipElem);
|
|
882
|
-
}
|
|
883
|
-
this.renderer.addClass(this.tooltipElem, 'tooltip');
|
|
884
|
-
this.renderer.addClass(this.tooltipElem, "tooltip-" + this.tooltipPlacement);
|
|
885
|
-
this.renderer.setStyle(this.tooltipElem, '-webkit-transition', "opacity " + this.tooltipDelay + "ms");
|
|
886
|
-
this.renderer.setStyle(this.tooltipElem, '-moz-transition', "opacity " + this.tooltipDelay + "ms");
|
|
887
|
-
this.renderer.setStyle(this.tooltipElem, '-o-transition', "opacity " + this.tooltipDelay + "ms");
|
|
888
|
-
this.renderer.setStyle(this.tooltipElem, 'transition', "opacity " + this.tooltipDelay + "ms");
|
|
889
|
-
};
|
|
890
|
-
TooltipDirective.prototype.setPosition = function () {
|
|
891
|
-
if (this.tooltipElem) {
|
|
892
|
-
var hostPos = this.el.nativeElement.getBoundingClientRect();
|
|
893
|
-
var tooltipPos = this.tooltipElem.getBoundingClientRect();
|
|
894
|
-
var top = void 0, left = void 0;
|
|
895
|
-
if (this.tooltipPlaceIntoHost) {
|
|
896
|
-
left = 0;
|
|
897
|
-
top = hostPos.height;
|
|
898
|
-
}
|
|
899
|
-
else {
|
|
900
|
-
var scrollPos = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
|
|
901
|
-
if (this.tooltipPlacement === 'top') {
|
|
902
|
-
top = hostPos.top - tooltipPos.height - this.offset;
|
|
903
|
-
left = hostPos.left + (hostPos.width - tooltipPos.width) / 2;
|
|
904
|
-
}
|
|
905
|
-
if (!this.tooltipPlacement || this.tooltipPlacement === 'bottom') {
|
|
906
|
-
top = hostPos.bottom + this.offset;
|
|
907
|
-
left = hostPos.left + (hostPos.width - tooltipPos.width) / 2;
|
|
908
|
-
}
|
|
909
|
-
if (this.tooltipPlacement === 'left') {
|
|
910
|
-
top = hostPos.top + (hostPos.height - tooltipPos.height) / 2;
|
|
911
|
-
left = hostPos.left - tooltipPos.width - this.offset;
|
|
912
|
-
}
|
|
913
|
-
if (this.tooltipPlacement === 'right') {
|
|
914
|
-
top = hostPos.top + (hostPos.height - tooltipPos.height) / 2;
|
|
915
|
-
left = hostPos.right + this.offset;
|
|
916
|
-
}
|
|
917
|
-
top += scrollPos;
|
|
918
|
-
}
|
|
919
|
-
this.renderer.setStyle(this.tooltipElem, 'top', top + "px");
|
|
920
|
-
this.renderer.setStyle(this.tooltipElem, 'left', left + "px");
|
|
921
|
-
}
|
|
922
|
-
};
|
|
923
|
-
return TooltipDirective;
|
|
924
|
-
}());
|
|
925
|
-
TooltipDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TooltipDirective, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
926
|
-
TooltipDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TooltipDirective, selector: "[kmsTooltip]", inputs: { tooltipTitle: "tooltipTitle", tooltipText: "tooltipText", tooltipLinkText: "tooltipLinkText", tooltipLinkUrl: "tooltipLinkUrl", tooltipPlacement: "tooltipPlacement", tooltipDelay: "tooltipDelay", tooltipPlaceIntoHost: "tooltipPlaceIntoHost", tooltipOnlyonclick: "tooltipOnlyonclick" }, host: { listeners: { "mouseenter": "onMouseEnter()", "click": "onClick()", "mouseleave": "onMouseLeave()" } }, ngImport: i0__namespace });
|
|
927
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TooltipDirective, decorators: [{
|
|
928
|
-
type: i0.Directive,
|
|
929
|
-
args: [{
|
|
930
|
-
selector: '[kmsTooltip]'
|
|
931
|
-
}]
|
|
932
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.Renderer2 }]; }, propDecorators: { tooltipTitle: [{
|
|
933
|
-
type: i0.Input,
|
|
934
|
-
args: ['tooltipTitle']
|
|
935
|
-
}], tooltipText: [{
|
|
936
|
-
type: i0.Input,
|
|
937
|
-
args: ['tooltipText']
|
|
938
|
-
}], tooltipLinkText: [{
|
|
939
|
-
type: i0.Input,
|
|
940
|
-
args: ['tooltipLinkText']
|
|
941
|
-
}], tooltipLinkUrl: [{
|
|
942
|
-
type: i0.Input,
|
|
943
|
-
args: ['tooltipLinkUrl']
|
|
944
|
-
}], tooltipPlacement: [{
|
|
945
|
-
type: i0.Input,
|
|
946
|
-
args: ['tooltipPlacement']
|
|
947
|
-
}], tooltipDelay: [{
|
|
948
|
-
type: i0.Input,
|
|
949
|
-
args: ['tooltipDelay']
|
|
950
|
-
}], tooltipPlaceIntoHost: [{
|
|
951
|
-
type: i0.Input,
|
|
952
|
-
args: ['tooltipPlaceIntoHost']
|
|
953
|
-
}], tooltipOnlyonclick: [{
|
|
954
|
-
type: i0.Input,
|
|
955
|
-
args: ['tooltipOnlyonclick']
|
|
956
|
-
}], onMouseEnter: [{
|
|
957
|
-
type: i0.HostListener,
|
|
958
|
-
args: ['mouseenter']
|
|
959
|
-
}], onClick: [{
|
|
960
|
-
type: i0.HostListener,
|
|
961
|
-
args: ['click']
|
|
962
|
-
}], onMouseLeave: [{
|
|
963
|
-
type: i0.HostListener,
|
|
964
|
-
args: ['mouseleave']
|
|
965
|
-
}] } });
|
|
966
|
-
|
|
967
|
-
var SizeDirective = /** @class */ (function () {
|
|
968
|
-
function SizeDirective(elementRef) {
|
|
969
|
-
this.elementRef = elementRef;
|
|
970
|
-
this.size = '';
|
|
971
|
-
}
|
|
972
|
-
SizeDirective.prototype.ngOnInit = function () {
|
|
973
|
-
this.elementRef.nativeElement.style.width(this.size + 'px');
|
|
974
|
-
this.elementRef.nativeElement.style.height(this.size + 'px');
|
|
975
|
-
};
|
|
976
|
-
return SizeDirective;
|
|
977
|
-
}());
|
|
978
|
-
SizeDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SizeDirective, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
979
|
-
SizeDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: SizeDirective, selector: "[size]", inputs: { size: "size" }, ngImport: i0__namespace });
|
|
980
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SizeDirective, decorators: [{
|
|
981
|
-
type: i0.Directive,
|
|
982
|
-
args: [{ selector: '[size]' }]
|
|
983
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }]; }, propDecorators: { size: [{
|
|
984
|
-
type: i0.Input
|
|
985
|
-
}] } });
|
|
986
|
-
|
|
987
|
-
var TooltipIconComponent = /** @class */ (function () {
|
|
988
|
-
function TooltipIconComponent() {
|
|
989
|
-
this.tooltipTitle = "";
|
|
990
|
-
this.tooltipText = "";
|
|
991
|
-
this.tooltipLinkText = "";
|
|
992
|
-
this.tooltipLinkUrl = "";
|
|
993
|
-
this.placement = "";
|
|
994
|
-
this.delay = 1000;
|
|
995
|
-
this.IconSizePx = IconSizePx;
|
|
996
|
-
}
|
|
997
|
-
return TooltipIconComponent;
|
|
998
|
-
}());
|
|
999
|
-
TooltipIconComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TooltipIconComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1000
|
-
TooltipIconComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TooltipIconComponent, selector: "kms-tooltip-icon", inputs: { tooltipTitle: "tooltipTitle", tooltipText: "tooltipText", tooltipLinkText: "tooltipLinkText", tooltipLinkUrl: "tooltipLinkUrl", placement: "placement", delay: "delay" }, ngImport: i0__namespace, template: "<span\r\n kmsTooltip\r\n [tooltipTitle]=\"tooltipTitle\"\r\n [tooltipText]=\"tooltipText\"\r\n [tooltipPlacement]=\"placement\"\r\n [tooltipDelay]=\"delay\"\r\n [tooltipLinkText]=\"tooltipLinkText\"\r\n [tooltipLinkUrl]=\"tooltipLinkUrl\"\r\n>\r\n <kms-icon icon=\"ic_info\" [size]=\"IconSizePx.SMALLER\" [iconClass]=\"'color-primary'\"></kms-icon>\r\n</span>\r\n", styles: [""], components: [{ type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "iconStyle", "iconSize", "size", "dontUseSprite"] }], directives: [{ type: TooltipDirective, selector: "[kmsTooltip]", inputs: ["tooltipTitle", "tooltipText", "tooltipLinkText", "tooltipLinkUrl", "tooltipPlacement", "tooltipDelay", "tooltipPlaceIntoHost", "tooltipOnlyonclick"] }, { type: SizeDirective, selector: "[size]", inputs: ["size"] }] });
|
|
1001
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TooltipIconComponent, decorators: [{
|
|
1002
|
-
type: i0.Component,
|
|
1003
|
-
args: [{
|
|
1004
|
-
selector: 'kms-tooltip-icon',
|
|
1005
|
-
templateUrl: './tooltip-icon.component.html',
|
|
1006
|
-
styleUrls: ['./tooltip-icon.component.scss']
|
|
1007
|
-
}]
|
|
1008
|
-
}], propDecorators: { tooltipTitle: [{
|
|
1009
|
-
type: i0.Input
|
|
1010
|
-
}], tooltipText: [{
|
|
1011
|
-
type: i0.Input
|
|
1012
|
-
}], tooltipLinkText: [{
|
|
1013
|
-
type: i0.Input
|
|
1014
|
-
}], tooltipLinkUrl: [{
|
|
1015
|
-
type: i0.Input
|
|
1016
|
-
}], placement: [{
|
|
1017
|
-
type: i0.Input
|
|
1018
|
-
}], delay: [{
|
|
1019
|
-
type: i0.Input
|
|
1020
|
-
}] } });
|
|
1021
|
-
|
|
1022
|
-
var ColorInputComponent = /** @class */ (function (_super) {
|
|
1023
|
-
__extends(ColorInputComponent, _super);
|
|
1024
|
-
function ColorInputComponent(formBuilder, renderer) {
|
|
1025
|
-
var _this = _super.call(this, formBuilder, renderer) || this;
|
|
1026
|
-
_this.formBuilder = formBuilder;
|
|
1027
|
-
_this.renderer = renderer;
|
|
1028
|
-
_this.label = '';
|
|
1029
|
-
_this.tooltipText = '';
|
|
1030
|
-
_this.placeholder = '';
|
|
1031
|
-
return _this;
|
|
1032
|
-
}
|
|
1033
|
-
ColorInputComponent.prototype.ngOnInit = function () {
|
|
1034
|
-
var _this = this;
|
|
1035
|
-
this.form = this.formBuilder.group({
|
|
1036
|
-
color: '',
|
|
1037
|
-
});
|
|
1038
|
-
_super.prototype.ngOnInit.call(this);
|
|
1039
|
-
this.formInitialized = true;
|
|
1040
|
-
this.form.valueChanges.subscribe(function (value) {
|
|
1041
|
-
_this.internalValue = value.color;
|
|
1042
|
-
_this.onChange(value.color);
|
|
1043
|
-
});
|
|
1044
|
-
};
|
|
1045
|
-
ColorInputComponent.prototype.validate = function (_) {
|
|
1046
|
-
// TODO fix to validate complete form
|
|
1047
|
-
this.valid = this.matchesHex(this.form.value) ? null : false;
|
|
1048
|
-
return this.valid && {
|
|
1049
|
-
invalid: !this.valid
|
|
1050
|
-
};
|
|
1051
|
-
};
|
|
1052
|
-
ColorInputComponent.prototype.matchesHex = function (match) {
|
|
1053
|
-
if (match) {
|
|
1054
|
-
var ret = match.match(/^#[0-9a-f]{6}$/i);
|
|
1055
|
-
this.valid = ret && ret.length > 0;
|
|
1056
|
-
return ret;
|
|
1057
|
-
}
|
|
1058
|
-
return false;
|
|
1059
|
-
};
|
|
1060
|
-
ColorInputComponent.prototype.updateSelectedColor = function (value) {
|
|
1061
|
-
var color = value.target.value;
|
|
1062
|
-
this.value = color;
|
|
1063
|
-
this.internalValue = color;
|
|
1064
|
-
this.change(color);
|
|
1065
|
-
};
|
|
1066
|
-
return ColorInputComponent;
|
|
1067
|
-
}(FormControlParentComponent));
|
|
1068
|
-
ColorInputComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ColorInputComponent, deps: [{ token: i1__namespace$1.FormBuilder }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1069
|
-
ColorInputComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ColorInputComponent, selector: "kms-color-input", inputs: { label: "label", tooltipText: "tooltipText", placeholder: "placeholder" }, providers: [
|
|
1070
|
-
{
|
|
1071
|
-
provide: i1.NG_VALUE_ACCESSOR,
|
|
1072
|
-
useExisting: i0.forwardRef(function () { return ColorInputComponent; }),
|
|
1073
|
-
multi: true,
|
|
1074
|
-
},
|
|
1075
|
-
], usesInheritance: true, ngImport: i0__namespace, template: "\r\n<form [formGroup]=\"form\" *ngIf=\"formInitialized\">\r\n <div>\r\n <mat-form-field class=\"colorInput\">\r\n <kms-tooltip-icon [tooltipText]=\"tooltipText\" *ngIf=\"tooltipText\"></kms-tooltip-icon>\r\n <mat-label>{{ label }}</mat-label>\r\n <input type=\"text\" [(ngModel)]=\"value\" matInput formControlName=\"color\" [placeholder]=\"placeholder\" [ngClass]=\"{'my-inValid': !matchesHex(value)}\" />\r\n <input type=\"color\" [value]=\"value && matchesHex(value) ? value : '#ffffff'\" (change)=\"updateSelectedColor($event)\" [ngClass]=\"{'my-inValid': !matchesHex(value)}\" />\r\n </mat-form-field>\r\n </div>\r\n</form>", styles: [""], components: [{ type: i2__namespace$1.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: TooltipIconComponent, selector: "kms-tooltip-icon", inputs: ["tooltipTitle", "tooltipText", "tooltipLinkText", "tooltipLinkUrl", "placement", "delay"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2__namespace$1.MatLabel, selector: "mat-label" }, { type: i5__namespace.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["id", "disabled", "required", "type", "value", "readonly", "placeholder", "errorStateMatcher", "aria-describedby"], exportAs: ["matInput"] }, { type: i1__namespace$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$1.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
1076
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ColorInputComponent, decorators: [{
|
|
1077
|
-
type: i0.Component,
|
|
1078
|
-
args: [{
|
|
1079
|
-
selector: 'kms-color-input',
|
|
1080
|
-
templateUrl: './color-input.component.html',
|
|
1081
|
-
styleUrls: ['./color-input.component.scss'],
|
|
1082
|
-
providers: [
|
|
1083
|
-
{
|
|
1084
|
-
provide: i1.NG_VALUE_ACCESSOR,
|
|
1085
|
-
useExisting: i0.forwardRef(function () { return ColorInputComponent; }),
|
|
1086
|
-
multi: true,
|
|
1087
|
-
},
|
|
1088
|
-
],
|
|
1089
|
-
}]
|
|
1090
|
-
}], ctorParameters: function () { return [{ type: i1__namespace$1.FormBuilder }, { type: i0__namespace.Renderer2 }]; }, propDecorators: { label: [{
|
|
1091
|
-
type: i0.Input
|
|
1092
|
-
}], tooltipText: [{
|
|
1093
|
-
type: i0.Input
|
|
1094
|
-
}], placeholder: [{
|
|
1095
|
-
type: i0.Input
|
|
1096
|
-
}] } });
|
|
1097
|
-
|
|
1098
|
-
var RadioButtonComponent = /** @class */ (function (_super) {
|
|
1099
|
-
__extends(RadioButtonComponent, _super);
|
|
1100
|
-
function RadioButtonComponent() {
|
|
1101
|
-
var _this = _super.call(this) || this;
|
|
1102
|
-
/**
|
|
1103
|
-
* Internal description name. All radio buttons with the same name belong to the same group.
|
|
1104
|
-
* User can select exactly one of the radio buttons from the same group.
|
|
1105
|
-
*/
|
|
1106
|
-
_this.name = '';
|
|
1107
|
-
/**
|
|
1108
|
-
* Internal description id. Will be send in the output event when the radio button is selected.
|
|
1109
|
-
*/
|
|
1110
|
-
_this.id = '';
|
|
1111
|
-
_this.radioButtonSize = 16;
|
|
1112
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1113
|
-
_this.onChange = function () { };
|
|
1114
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1115
|
-
_this.onTouch = function () { };
|
|
1116
|
-
return _this;
|
|
1117
|
-
}
|
|
1118
|
-
RadioButtonComponent.prototype.selectAction = function (id) {
|
|
1119
|
-
this.select.emit(id);
|
|
1120
|
-
this.checked = !this.checked;
|
|
1121
|
-
};
|
|
1122
|
-
Object.defineProperty(RadioButtonComponent.prototype, "value", {
|
|
1123
|
-
get: function () {
|
|
1124
|
-
return this.checked;
|
|
1125
|
-
},
|
|
1126
|
-
set: function (value) {
|
|
1127
|
-
this.checked = value;
|
|
1128
|
-
this.onChange(value);
|
|
1129
|
-
this.onTouch(value);
|
|
1130
|
-
},
|
|
1131
|
-
enumerable: false,
|
|
1132
|
-
configurable: true
|
|
1133
|
-
});
|
|
1134
|
-
RadioButtonComponent.prototype.writeValue = function (value) {
|
|
1135
|
-
this.value = value;
|
|
1136
|
-
};
|
|
1137
|
-
RadioButtonComponent.prototype.registerOnChange = function (fn) {
|
|
1138
|
-
this.onChange = fn;
|
|
1139
|
-
};
|
|
1140
|
-
RadioButtonComponent.prototype.registerOnTouched = function (fn) {
|
|
1141
|
-
this.onTouch = fn;
|
|
1142
|
-
};
|
|
1143
|
-
return RadioButtonComponent;
|
|
1144
|
-
}(ActionsParentComponent));
|
|
1145
|
-
RadioButtonComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RadioButtonComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1146
|
-
RadioButtonComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: RadioButtonComponent, selector: "kms-radiobutton", inputs: { name: "name", id: "id", radioButtonSize: "radioButtonSize", formControl: "formControl" }, providers: [
|
|
1147
|
-
{
|
|
1148
|
-
provide: i1.NG_VALUE_ACCESSOR,
|
|
1149
|
-
useExisting: i0.forwardRef(function () { return RadioButtonComponent; }),
|
|
1150
|
-
multi: true,
|
|
1151
|
-
},
|
|
1152
|
-
], usesInheritance: true, ngImport: i0__namespace, template: "<label class=\"wrapper ui-small-text\"\r\n [ngClass]=\"{'disabled' : disabled}\">\r\n <input type=\"radio\"\r\n [name]=\"name\"\r\n [value]=\"value\"\r\n [checked]=\"checked\"\r\n [disabled]=\"disabled\"\r\n [id]=\"id\"\r\n (change)=\"selectAction($event)\">{{label}}\r\n\r\n <kms-icon\r\n class=\"checkmark\" \r\n aria-hidden=\"true\"\r\n *ngIf=\"checked\"\r\n [ngClass]=\"{\r\n 'disabled' : disabled\r\n }\"\r\n [iconClass]=\"{\r\n 'disabled' : disabled, \r\n 'color-primary': true\r\n }\"\r\n [icon]=\"'ic_radiobutton_active'\"\r\n [size]=\"radioButtonSize\"\r\n >\r\n </kms-icon>\r\n <kms-icon\r\n class=\"checkmark\" \r\n aria-hidden=\"true\"\r\n *ngIf=\"!checked\"\r\n [ngClass]=\"{\r\n 'disabled' : disabled\r\n }\"\r\n [iconClass]=\"{\r\n 'disabled' : disabled, \r\n 'color-primary': true\r\n }\"\r\n [icon]=\"'ic_radiobutton_inactive'\"\r\n [size]=\"radioButtonSize\"\r\n >\r\n </kms-icon>\r\n <ng-content></ng-content>\r\n</label>\r\n", styles: [""], components: [{ type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "iconStyle", "iconSize", "size", "dontUseSprite"] }], directives: [{ type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: SizeDirective, selector: "[size]", inputs: ["size"] }] });
|
|
1153
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RadioButtonComponent, decorators: [{
|
|
1154
|
-
type: i0.Component,
|
|
1155
|
-
args: [{
|
|
1156
|
-
selector: 'kms-radiobutton',
|
|
1157
|
-
templateUrl: './radiobutton.component.html',
|
|
1158
|
-
styleUrls: ['./radiobutton.component.scss'],
|
|
1159
|
-
providers: [
|
|
1160
|
-
{
|
|
1161
|
-
provide: i1.NG_VALUE_ACCESSOR,
|
|
1162
|
-
useExisting: i0.forwardRef(function () { return RadioButtonComponent; }),
|
|
1163
|
-
multi: true,
|
|
1164
|
-
},
|
|
1165
|
-
],
|
|
1166
|
-
}]
|
|
1167
|
-
}], ctorParameters: function () { return []; }, propDecorators: { name: [{
|
|
1168
|
-
type: i0.Input
|
|
1169
|
-
}], id: [{
|
|
1170
|
-
type: i0.Input
|
|
1171
|
-
}], radioButtonSize: [{
|
|
1172
|
-
type: i0.Input
|
|
1173
|
-
}], formControl: [{
|
|
1174
|
-
type: i0.Input
|
|
1175
|
-
}] } });
|
|
1176
|
-
|
|
1177
|
-
var TimeInputComponent = /** @class */ (function () {
|
|
1178
|
-
function TimeInputComponent(formBuilder) {
|
|
1179
|
-
this.formBuilder = formBuilder;
|
|
1180
|
-
this.h = '';
|
|
1181
|
-
this.m = '';
|
|
1182
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1183
|
-
this.onChange = function () { };
|
|
1184
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1185
|
-
this.onTouch = function () { };
|
|
1186
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1187
|
-
this.onTouched = function () { };
|
|
1188
|
-
}
|
|
1189
|
-
Object.defineProperty(TimeInputComponent.prototype, "value", {
|
|
1190
|
-
get: function () {
|
|
1191
|
-
return this.value;
|
|
1192
|
-
},
|
|
1193
|
-
set: function (value) {
|
|
1194
|
-
this.onChange(value);
|
|
1195
|
-
this.onTouch(value);
|
|
1196
|
-
},
|
|
1197
|
-
enumerable: false,
|
|
1198
|
-
configurable: true
|
|
1199
|
-
});
|
|
1200
|
-
TimeInputComponent.prototype.writeValue = function (value) {
|
|
1201
|
-
var _this = this;
|
|
1202
|
-
if (value && value.length === 8) {
|
|
1203
|
-
this.h = value.substr(0, 2);
|
|
1204
|
-
this.m = value.substr(3, 2);
|
|
1205
|
-
}
|
|
1206
|
-
else if (value && value.length === 5) {
|
|
1207
|
-
this.h = value.substr(0, 2);
|
|
1208
|
-
this.m = value.substr(-2);
|
|
1209
|
-
}
|
|
1210
|
-
//we need to also update the form value because angular has a problem reading it from first time when valuechanges subscription was fired.
|
|
1211
|
-
this.form.controls['h'].setValue(this.h);
|
|
1212
|
-
this.form.controls['m'].setValue(this.m);
|
|
1213
|
-
this.form.valueChanges.subscribe(function (value) {
|
|
1214
|
-
_this.h = value.h;
|
|
1215
|
-
_this.m = value.m;
|
|
1216
|
-
value = _this.getNewOrDefault();
|
|
1217
|
-
_this.value = value;
|
|
1218
|
-
_this.onChange(value);
|
|
1219
|
-
});
|
|
1220
|
-
};
|
|
1221
|
-
TimeInputComponent.prototype.ngOnInit = function () {
|
|
1222
|
-
this.form = this.formBuilder.group({
|
|
1223
|
-
h: '',
|
|
1224
|
-
m: '',
|
|
1225
|
-
});
|
|
1226
|
-
};
|
|
1227
|
-
TimeInputComponent.prototype.getNewOrDefault = function () {
|
|
1228
|
-
//reset if user deletes everything
|
|
1229
|
-
if (this.h === '' && this.m === '') {
|
|
1230
|
-
return '';
|
|
1231
|
-
}
|
|
1232
|
-
var ret = this.h.padStart(2, '0') + ':' + this.m.padStart(2, '0');
|
|
1233
|
-
return ret;
|
|
1234
|
-
};
|
|
1235
|
-
TimeInputComponent.prototype.registerOnChange = function (fn) {
|
|
1236
|
-
this.onChange = fn;
|
|
1237
|
-
};
|
|
1238
|
-
TimeInputComponent.prototype.registerOnTouched = function (fn) {
|
|
1239
|
-
this.onTouch = fn;
|
|
1240
|
-
};
|
|
1241
|
-
return TimeInputComponent;
|
|
1242
|
-
}());
|
|
1243
|
-
TimeInputComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TimeInputComponent, deps: [{ token: i1__namespace$1.FormBuilder }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1244
|
-
TimeInputComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TimeInputComponent, selector: "kms-time-input", providers: [
|
|
1245
|
-
{
|
|
1246
|
-
provide: i1.NG_VALUE_ACCESSOR,
|
|
1247
|
-
useExisting: i0.forwardRef(function () { return TimeInputComponent; }),
|
|
1248
|
-
multi: true,
|
|
1249
|
-
},
|
|
1250
|
-
], ngImport: i0__namespace, template: "<form [formGroup]=\"form\" class=\"timeInput\">\r\n <input type=\"text\" formControlName=\"h\" [value]=\"h\" maxlength=\"2\" pattern=\"(0?[0-9]|1[0-9]|2[0-3])\"/>\r\n <span>:</span>\r\n <input type=\"text\" formControlName=\"m\" [value]=\"m\" maxlength=\"2\" pattern=\"(0?[0-9]|[1-5][0-9])\"/>\r\n</form>", styles: [""], directives: [{ type: i1__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i1__namespace$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$1.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i1__namespace$1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { type: i1__namespace$1.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }] });
|
|
1251
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TimeInputComponent, decorators: [{
|
|
1252
|
-
type: i0.Component,
|
|
1253
|
-
args: [{
|
|
1254
|
-
selector: 'kms-time-input',
|
|
1255
|
-
templateUrl: './time-input.component.html',
|
|
1256
|
-
styleUrls: ['./time-input.component.scss'],
|
|
1257
|
-
providers: [
|
|
1258
|
-
{
|
|
1259
|
-
provide: i1.NG_VALUE_ACCESSOR,
|
|
1260
|
-
useExisting: i0.forwardRef(function () { return TimeInputComponent; }),
|
|
1261
|
-
multi: true,
|
|
1262
|
-
},
|
|
1263
|
-
],
|
|
1264
|
-
}]
|
|
1265
|
-
}], ctorParameters: function () { return [{ type: i1__namespace$1.FormBuilder }]; } });
|
|
1266
|
-
|
|
1267
|
-
var YesNoRadiogroupComponent = /** @class */ (function () {
|
|
1268
|
-
function YesNoRadiogroupComponent(formBuilder, renderer) {
|
|
1269
|
-
this.formBuilder = formBuilder;
|
|
1270
|
-
this.renderer = renderer;
|
|
1271
|
-
this.disabled = false;
|
|
1272
|
-
this.textYes = '';
|
|
1273
|
-
this.textNo = '';
|
|
1274
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1275
|
-
this.onChange = function () { };
|
|
1276
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1277
|
-
this.onTouch = function () { };
|
|
1278
|
-
}
|
|
1279
|
-
Object.defineProperty(YesNoRadiogroupComponent.prototype, "value", {
|
|
1280
|
-
get: function () {
|
|
1281
|
-
return this.internalValue;
|
|
1282
|
-
},
|
|
1283
|
-
set: function (value) {
|
|
1284
|
-
this.internalValue = value;
|
|
1285
|
-
if (value !== undefined && this.internalValue !== value) {
|
|
1286
|
-
this.onChange(value);
|
|
1287
|
-
this.onTouch(value);
|
|
1288
|
-
}
|
|
1289
|
-
},
|
|
1290
|
-
enumerable: false,
|
|
1291
|
-
configurable: true
|
|
1292
|
-
});
|
|
1293
|
-
YesNoRadiogroupComponent.prototype.writeValue = function (value) {
|
|
1294
|
-
this.internalValue = value;
|
|
1295
|
-
this.value = value;
|
|
1296
|
-
};
|
|
1297
|
-
YesNoRadiogroupComponent.prototype.registerOnChange = function (fn) {
|
|
1298
|
-
this.onChange = fn;
|
|
1299
|
-
};
|
|
1300
|
-
YesNoRadiogroupComponent.prototype.registerOnTouched = function (fn) {
|
|
1301
|
-
this.onTouch = fn;
|
|
1302
|
-
};
|
|
1303
|
-
YesNoRadiogroupComponent.prototype.setDisabledState = function (isDisabled) {
|
|
1304
|
-
if (this.child) {
|
|
1305
|
-
this.renderer.setProperty(this.child.nativeElement, 'disabled', isDisabled);
|
|
1306
|
-
}
|
|
1307
|
-
};
|
|
1308
|
-
YesNoRadiogroupComponent.prototype.ngOnInit = function () {
|
|
1309
|
-
var _this = this;
|
|
1310
|
-
this.form = this.formBuilder.group({
|
|
1311
|
-
yesno: [],
|
|
1312
|
-
});
|
|
1313
|
-
this.form.valueChanges.subscribe(function (value) {
|
|
1314
|
-
_this.internalValue = value.yesno;
|
|
1315
|
-
_this.onChange(value.yesno);
|
|
1316
|
-
});
|
|
1317
|
-
};
|
|
1318
|
-
return YesNoRadiogroupComponent;
|
|
1319
|
-
}());
|
|
1320
|
-
YesNoRadiogroupComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: YesNoRadiogroupComponent, deps: [{ token: i1__namespace$1.FormBuilder }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1321
|
-
YesNoRadiogroupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: YesNoRadiogroupComponent, selector: "kms-yesno-radiogroup", inputs: { header: "header", disabled: "disabled", textYes: "textYes", textNo: "textNo" }, providers: [
|
|
1322
|
-
{
|
|
1323
|
-
provide: i1.NG_VALUE_ACCESSOR,
|
|
1324
|
-
useExisting: i0.forwardRef(function () { return YesNoRadiogroupComponent; }),
|
|
1325
|
-
multi: true,
|
|
1326
|
-
},
|
|
1327
|
-
], viewQueries: [{ propertyName: "child", first: true, predicate: ["child"], descendants: true }], ngImport: i0__namespace, template: "<form [formGroup]=\"form\">\r\n <div>{{ header }}</div>\r\n <mat-radio-group [formControl]=\"form.controls['yesno']\" [disabled]=\"disabled\" #child>\r\n <mat-radio-button [value]=\"true\" [checked]=\"internalValue === true\"> {{ textYes }}</mat-radio-button>\r\n <mat-radio-button [value]=\"false\" [checked]=\"internalValue === false\"> {{ textNo }}</mat-radio-button>\r\n </mat-radio-group>\r\n</form>\r\n", components: [{ type: i2__namespace$2.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }], directives: [{ type: i1__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2__namespace$2.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { type: i1__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
|
|
1328
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: YesNoRadiogroupComponent, decorators: [{
|
|
1329
|
-
type: i0.Component,
|
|
1330
|
-
args: [{
|
|
1331
|
-
selector: 'kms-yesno-radiogroup',
|
|
1332
|
-
templateUrl: './yes-no-radiogroup.component.html',
|
|
1333
|
-
providers: [
|
|
1334
|
-
{
|
|
1335
|
-
provide: i1.NG_VALUE_ACCESSOR,
|
|
1336
|
-
useExisting: i0.forwardRef(function () { return YesNoRadiogroupComponent; }),
|
|
1337
|
-
multi: true,
|
|
1338
|
-
},
|
|
1339
|
-
],
|
|
1340
|
-
}]
|
|
1341
|
-
}], ctorParameters: function () { return [{ type: i1__namespace$1.FormBuilder }, { type: i0__namespace.Renderer2 }]; }, propDecorators: { header: [{
|
|
1342
|
-
type: i0.Input
|
|
1343
|
-
}], disabled: [{
|
|
1344
|
-
type: i0.Input
|
|
1345
|
-
}], textYes: [{
|
|
1346
|
-
type: i0.Input
|
|
1347
|
-
}], textNo: [{
|
|
1348
|
-
type: i0.Input
|
|
1349
|
-
}], child: [{
|
|
1350
|
-
type: i0.ViewChild,
|
|
1351
|
-
args: ['child']
|
|
1352
|
-
}] } });
|
|
1353
|
-
|
|
1354
|
-
/**
|
|
1355
|
-
* @copyright FLYACTS GmbH 2019
|
|
1356
|
-
*/
|
|
1357
|
-
/**
|
|
1358
|
-
* Check if null or undefined
|
|
1359
|
-
* @param value value that is being checked
|
|
1360
|
-
*/
|
|
1361
|
-
function isValue(value) {
|
|
1362
|
-
if (value === null) {
|
|
1363
|
-
return false;
|
|
1364
|
-
}
|
|
1365
|
-
if (typeof value === 'undefined') {
|
|
1366
|
-
return false;
|
|
1367
|
-
}
|
|
1368
|
-
return true;
|
|
1369
|
-
}
|
|
1370
|
-
|
|
1371
|
-
// Max size in bytes of uploaded image
|
|
1372
|
-
var MAX_SIZE_BYTES = 2097152;
|
|
1373
|
-
var FileInputComponent = /** @class */ (function () {
|
|
1374
|
-
/**
|
|
1375
|
-
* Constructor
|
|
1376
|
-
* @param formBuilder
|
|
1377
|
-
* @param appRef
|
|
1378
|
-
* @param cd
|
|
1379
|
-
* @param translateService
|
|
1380
|
-
* @param renderer
|
|
1381
|
-
*/
|
|
1382
|
-
function FileInputComponent(formBuilder, appRef, cd,
|
|
1383
|
-
//private translateService: TranslateService,
|
|
1384
|
-
renderer) {
|
|
1385
|
-
this.formBuilder = formBuilder;
|
|
1386
|
-
this.appRef = appRef;
|
|
1387
|
-
this.cd = cd;
|
|
1388
|
-
this.renderer = renderer;
|
|
1389
|
-
this.label = '';
|
|
1390
|
-
this.previewImage = true;
|
|
1391
|
-
this.allowRemove = true;
|
|
1392
|
-
this.previewImageText = '';
|
|
1393
|
-
this.maxSizeBytes = MAX_SIZE_BYTES;
|
|
1394
|
-
this.resizePixels = 0;
|
|
1395
|
-
this.acceptedFileMimetypes = 'image/jpeg, image/jpg, image/png';
|
|
1396
|
-
this.form = this.formBuilder.group({
|
|
1397
|
-
ImageIdent: new i1.FormControl(''),
|
|
1398
|
-
ImageLink: new i1.FormControl(''),
|
|
1399
|
-
Filename: new i1.FormControl(''),
|
|
1400
|
-
ImageAsDataURL: new i1.FormControl(''),
|
|
1401
|
-
Text: new i1.FormControl(''),
|
|
1402
|
-
});
|
|
1403
|
-
this.subscriptions = [];
|
|
1404
|
-
this.newImageLoading = false;
|
|
1405
|
-
this.IconSizePx = IconSizePx;
|
|
1406
|
-
this.formDataChanged = new i0.EventEmitter();
|
|
1407
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1408
|
-
this.onChange = function () { };
|
|
1409
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1410
|
-
this.onTouch = function () { };
|
|
1411
|
-
}
|
|
1412
|
-
/**
|
|
1413
|
-
* Click on button triggers file-input to open OS file dialog
|
|
1414
|
-
*/
|
|
1415
|
-
FileInputComponent.prototype.selectImageOverlay = function () {
|
|
1416
|
-
this.fileInput.nativeElement.click();
|
|
1417
|
-
};
|
|
1418
|
-
/**
|
|
1419
|
-
* Function to manage the input image
|
|
1420
|
-
* Returns an error if the file exceeds maximum wanted filesize (Mb).
|
|
1421
|
-
* @param ev
|
|
1422
|
-
* @returns
|
|
1423
|
-
*/
|
|
1424
|
-
FileInputComponent.prototype.selectImage = function (ev) {
|
|
1425
|
-
var _this = this;
|
|
1426
|
-
if (ev.target.files && ev.target.files[0]) {
|
|
1427
|
-
var file_1 = ev.target.files[0];
|
|
1428
|
-
if (file_1.size > this.maxSizeBytes) {
|
|
1429
|
-
this.clearInputValue(ev);
|
|
1430
|
-
//alert(this.translateService.instant('errors.fileTooBig'));
|
|
1431
|
-
return;
|
|
1432
|
-
}
|
|
1433
|
-
else {
|
|
1434
|
-
this.newImageLoading = true;
|
|
1435
|
-
if (this.resizePixels > 0) {
|
|
1436
|
-
var logoUrl = URL.createObjectURL(file_1);
|
|
1437
|
-
var imgEl_1 = document.createElement('img');
|
|
1438
|
-
imgEl_1.addEventListener('load', function () {
|
|
1439
|
-
var resizedLogo = _this.resizeImage(imgEl_1, _this.resizePixels);
|
|
1440
|
-
var newFile = _this.generateModel(file_1.name, resizedLogo, _this.value.ImageIdent, _this.value.ImageLink, _this.value.Text);
|
|
1441
|
-
_this.value = newFile;
|
|
1442
|
-
_this.newImageLoading = false;
|
|
1443
|
-
_this.cd.markForCheck();
|
|
1444
|
-
});
|
|
1445
|
-
imgEl_1.src = logoUrl;
|
|
1446
|
-
}
|
|
1447
|
-
else {
|
|
1448
|
-
var reader = new FileReader();
|
|
1449
|
-
reader.readAsDataURL(file_1);
|
|
1450
|
-
reader.onload = function (e) {
|
|
1451
|
-
var newFile = _this.generateModel(file_1.name, e.target.result, _this.value.ImageIdent, _this.value.ImageLink, _this.value.Text);
|
|
1452
|
-
_this.value = newFile;
|
|
1453
|
-
_this.newImageLoading = false;
|
|
1454
|
-
_this.cd.markForCheck();
|
|
1455
|
-
};
|
|
1456
|
-
}
|
|
1457
|
-
}
|
|
1458
|
-
}
|
|
1459
|
-
else {
|
|
1460
|
-
console.warn("No file selected");
|
|
1461
|
-
}
|
|
1462
|
-
};
|
|
1463
|
-
/**
|
|
1464
|
-
* Resize an image
|
|
1465
|
-
* @param imgEl
|
|
1466
|
-
* @param wantedWidth as number
|
|
1467
|
-
* @returns string
|
|
1468
|
-
*/
|
|
1469
|
-
FileInputComponent.prototype.resizeImage = function (imgEl, wantedWidth) {
|
|
1470
|
-
var canvas = document.createElement('canvas');
|
|
1471
|
-
var ctx = canvas.getContext('2d');
|
|
1472
|
-
var aspect = imgEl.width / imgEl.height;
|
|
1473
|
-
canvas.width = wantedWidth;
|
|
1474
|
-
canvas.height = wantedWidth / aspect;
|
|
1475
|
-
if (isValue(ctx))
|
|
1476
|
-
ctx.drawImage(imgEl, 0, 0, canvas.width, canvas.height);
|
|
1477
|
-
return canvas.toDataURL();
|
|
1478
|
-
};
|
|
1479
|
-
/**
|
|
1480
|
-
* Generate default object
|
|
1481
|
-
* @param name as string
|
|
1482
|
-
* @param content as string
|
|
1483
|
-
* @returns AttachedFileDTO
|
|
1484
|
-
*/
|
|
1485
|
-
FileInputComponent.prototype.generateModel = function (name, content, ident, imageLink, text) {
|
|
1486
|
-
return {
|
|
1487
|
-
ImageIdent: ident ? ident : '',
|
|
1488
|
-
Filename: name ? name : '',
|
|
1489
|
-
ImageAsDataURL: content ? content : '',
|
|
1490
|
-
ImageLink: imageLink ? imageLink : '',
|
|
1491
|
-
Text: text ? text : ''
|
|
1492
|
-
};
|
|
1493
|
-
};
|
|
1494
|
-
/**
|
|
1495
|
-
* Remove image
|
|
1496
|
-
*/
|
|
1497
|
-
FileInputComponent.prototype.removeFromList = function () {
|
|
1498
|
-
this.value = this.generateModel('', '', '', '');
|
|
1499
|
-
};
|
|
1500
|
-
Object.defineProperty(FileInputComponent.prototype, "value", {
|
|
1501
|
-
/**
|
|
1502
|
-
* get value
|
|
1503
|
-
*/
|
|
1504
|
-
get: function () {
|
|
1505
|
-
return this.form.value;
|
|
1506
|
-
},
|
|
1507
|
-
/**
|
|
1508
|
-
* set value
|
|
1509
|
-
*/
|
|
1510
|
-
set: function (value) {
|
|
1511
|
-
this.form.setValue(value);
|
|
1512
|
-
this.onChange(value);
|
|
1513
|
-
this.formDataChanged.emit(this.form);
|
|
1514
|
-
},
|
|
1515
|
-
enumerable: false,
|
|
1516
|
-
configurable: true
|
|
1517
|
-
});
|
|
1518
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1519
|
-
FileInputComponent.prototype.ngOnInit = function () { };
|
|
1520
|
-
FileInputComponent.prototype.ngOnDestroy = function () {
|
|
1521
|
-
this.subscriptions.forEach(function (s) { return s.unsubscribe(); });
|
|
1522
|
-
};
|
|
1523
|
-
FileInputComponent.prototype.registerOnChange = function (fn) {
|
|
1524
|
-
this.onChange = fn;
|
|
1525
|
-
};
|
|
1526
|
-
FileInputComponent.prototype.registerOnTouched = function (fn) {
|
|
1527
|
-
this.onTouch = fn;
|
|
1528
|
-
};
|
|
1529
|
-
FileInputComponent.prototype.writeValue = function (value) {
|
|
1530
|
-
if (value) {
|
|
1531
|
-
this.value = value;
|
|
1532
|
-
}
|
|
1533
|
-
if (value === null) {
|
|
1534
|
-
this.form.reset();
|
|
1535
|
-
}
|
|
1536
|
-
};
|
|
1537
|
-
// eslint-disable-next-line @typescript-eslint/adjacent-overload-signatures
|
|
1538
|
-
FileInputComponent.prototype.validate = function (_) {
|
|
1539
|
-
return this.form.valid ? null : { styles: { valid: false } };
|
|
1540
|
-
};
|
|
1541
|
-
/**
|
|
1542
|
-
* OnClick event listener of input#fileInput to clear his input value
|
|
1543
|
-
*/
|
|
1544
|
-
FileInputComponent.prototype.clearInputValue = function (ev) {
|
|
1545
|
-
var element = ev.target;
|
|
1546
|
-
element.value = '';
|
|
1547
|
-
};
|
|
1548
|
-
return FileInputComponent;
|
|
1549
|
-
}());
|
|
1550
|
-
FileInputComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FileInputComponent, deps: [{ token: i1__namespace$1.FormBuilder }, { token: i0__namespace.ApplicationRef }, { token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1551
|
-
FileInputComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FileInputComponent, selector: "kms-file-input", inputs: { label: "label", previewImage: "previewImage", allowRemove: "allowRemove", previewImageText: "previewImageText", maxSizeBytes: "maxSizeBytes", resizePixels: "resizePixels", acceptedFileMimetypes: "acceptedFileMimetypes" }, outputs: { formDataChanged: "formDataChanged" }, providers: [
|
|
1552
|
-
{
|
|
1553
|
-
provide: i1.NG_VALUE_ACCESSOR,
|
|
1554
|
-
useExisting: i0.forwardRef(function () { return FileInputComponent; }),
|
|
1555
|
-
multi: true,
|
|
1556
|
-
},
|
|
1557
|
-
{
|
|
1558
|
-
provide: i1.NG_VALIDATORS,
|
|
1559
|
-
useExisting: i0.forwardRef(function () { return FileInputComponent; }),
|
|
1560
|
-
multi: true,
|
|
1561
|
-
},
|
|
1562
|
-
], viewQueries: [{ propertyName: "fileInput", first: true, predicate: ["fileInput"], descendants: true }], ngImport: i0__namespace, template: "<form [formGroup]=\"form\" (change)=\"newImageLoading=true\" class=\"fileInput\"> \r\n\r\n <div *ngIf=\"form.value.Filename && previewImage\">\r\n <div *ngIf=\"newImageLoading\">\r\n {{ 'file-input.loading' | translate }}\r\n </div>\r\n <div *ngIf=\"!newImageLoading\">\r\n <div class=\"\">\r\n <div class=\"\">\r\n <img *ngIf=\"form.value.ImageLink && form.value.ImageLink !== '' && !(form.value.ImageAsDataURL && form.value.ImageAsDataURL !== '')\" [src]=\"form.value.ImageAsDataURL\" [src]=\"form.value.ImageLink\" style=\"height: 40px; width: fit-content;\" />\r\n <img *ngIf=\"form.value.ImageAsDataURL && form.value.ImageAsDataURL !== ''\" [src]=\"form.value.ImageAsDataURL\" style=\"height: 40px; width: fit-content;\" />\r\n </div>\r\n <div class=\"\">{{form.value.Filename}}</div>\r\n <div class=\"\">\r\n <div (click)=\"removeFromList()\" *ngIf=\"allowRemove\">\r\n <kms-icon icon=\"trash\" [size]=\"IconSizePx.TINY\" iconClass=\"color-black\"></kms-icon> \r\n {{ 'file-input.remove' }}\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"!previewImage\">\r\n <div class=\"\">{{form.value.Filename}}</div>\r\n </div>\r\n\r\n <button (click)=\"selectImageOverlay()\" class=\"button-primary-font-color\" mat-stroked-button>\r\n <span>{{ label }}</span>\r\n </button>\r\n <input\r\n type=\"file\"\r\n [accept]=\"acceptedFileMimetypes\"\r\n style=\"display: none\"\r\n #fileInput\r\n (click)=\"clearInputValue($event)\"\r\n (change)=\"selectImage($event)\"\r\n />\r\n\r\n <input type=\"hidden\" [formControl]=\"form.controls['ImageIdent']\" />\r\n <input type=\"hidden\" [formControl]=\"form.controls['ImageLink']\" />\r\n <input type=\"hidden\" [formControl]=\"form.controls['Filename']\" />\r\n <input type=\"hidden\" [formControl]=\"form.controls['ImageAsDataURL']\" />\r\n <input type=\"hidden\" [formControl]=\"form.controls['Text']\" />\r\n\r\n</form>", styles: [""], components: [{ type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "iconStyle", "iconSize", "size", "dontUseSprite"] }, { type: i2__namespace$3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i1__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: SizeDirective, selector: "[size]", inputs: ["size"] }, { type: i1__namespace$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "translate": i6__namespace.TranslatePipe } });
|
|
1563
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FileInputComponent, decorators: [{
|
|
1564
|
-
type: i0.Component,
|
|
1565
|
-
args: [{
|
|
1566
|
-
selector: 'kms-file-input',
|
|
1567
|
-
templateUrl: './file-input.component.html',
|
|
1568
|
-
styleUrls: ['./file-input.component.scss'],
|
|
1569
|
-
providers: [
|
|
1570
|
-
{
|
|
1571
|
-
provide: i1.NG_VALUE_ACCESSOR,
|
|
1572
|
-
useExisting: i0.forwardRef(function () { return FileInputComponent; }),
|
|
1573
|
-
multi: true,
|
|
1574
|
-
},
|
|
1575
|
-
{
|
|
1576
|
-
provide: i1.NG_VALIDATORS,
|
|
1577
|
-
useExisting: i0.forwardRef(function () { return FileInputComponent; }),
|
|
1578
|
-
multi: true,
|
|
1579
|
-
},
|
|
1580
|
-
],
|
|
1581
|
-
}]
|
|
1582
|
-
}], ctorParameters: function () { return [{ type: i1__namespace$1.FormBuilder }, { type: i0__namespace.ApplicationRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i0__namespace.Renderer2 }]; }, propDecorators: { fileInput: [{
|
|
1583
|
-
type: i0.ViewChild,
|
|
1584
|
-
args: ['fileInput']
|
|
1585
|
-
}], label: [{
|
|
1586
|
-
type: i0.Input
|
|
1587
|
-
}], previewImage: [{
|
|
1588
|
-
type: i0.Input
|
|
1589
|
-
}], allowRemove: [{
|
|
1590
|
-
type: i0.Input
|
|
1591
|
-
}], previewImageText: [{
|
|
1592
|
-
type: i0.Input
|
|
1593
|
-
}], maxSizeBytes: [{
|
|
1594
|
-
type: i0.Input
|
|
1595
|
-
}], resizePixels: [{
|
|
1596
|
-
type: i0.Input
|
|
1597
|
-
}], acceptedFileMimetypes: [{
|
|
1598
|
-
type: i0.Input
|
|
1599
|
-
}], formDataChanged: [{
|
|
1600
|
-
type: i0.Output
|
|
1601
|
-
}] } });
|
|
1602
|
-
|
|
1603
|
-
var LoaderComponent = /** @class */ (function () {
|
|
1604
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1605
|
-
function LoaderComponent() {
|
|
1606
|
-
this.loading = false;
|
|
1607
|
-
}
|
|
1608
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1609
|
-
LoaderComponent.prototype.ngOnInit = function () { };
|
|
1610
|
-
return LoaderComponent;
|
|
1611
|
-
}());
|
|
1612
|
-
LoaderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LoaderComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1613
|
-
LoaderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: LoaderComponent, selector: "kms-loader", inputs: { loading: "loading" }, ngImport: i0__namespace, template: "<div class=\"loading-spinner-shade\" *ngIf=\"loading\">\r\n <mat-spinner class=\"spinnerMargin\" color=\"accent\" diameter=\"44\"></mat-spinner>\r\n</div>\r\n", styles: [""], components: [{ type: i1__namespace$3.MatSpinner, selector: "mat-spinner", inputs: ["color"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1614
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LoaderComponent, decorators: [{
|
|
1615
|
-
type: i0.Component,
|
|
1616
|
-
args: [{
|
|
1617
|
-
selector: 'kms-loader',
|
|
1618
|
-
templateUrl: './loader.component.html',
|
|
1619
|
-
styleUrls: ['./loader.component.scss'],
|
|
1620
|
-
}]
|
|
1621
|
-
}], ctorParameters: function () { return []; }, propDecorators: { loading: [{
|
|
1622
|
-
type: i0.Input
|
|
1623
|
-
}] } });
|
|
1624
|
-
|
|
1625
|
-
/*!
|
|
1626
|
-
* @copyright FLYACTS GmbH 2019
|
|
1627
|
-
*/
|
|
1628
|
-
/**
|
|
1629
|
-
* Directive to calc the height of all inner elements
|
|
1630
|
-
*/
|
|
1631
|
-
var GetMaxHeightDirective = /** @class */ (function () {
|
|
1632
|
-
function GetMaxHeightDirective(el) {
|
|
1633
|
-
this.el = el;
|
|
1634
|
-
/**
|
|
1635
|
-
* CSS class name of the child items (markup elements) that should be checked for their height.
|
|
1636
|
-
* This is mandatory.
|
|
1637
|
-
*/
|
|
1638
|
-
this.cssClassName = '';
|
|
1639
|
-
/**
|
|
1640
|
-
* Event that will pass the height of the tallest child inside the container.
|
|
1641
|
-
* Useful to calculate the target height of containers with different content (like accordion) for animations.
|
|
1642
|
-
*/
|
|
1643
|
-
this.maxHeightChanged = new i0.EventEmitter();
|
|
1644
|
-
/**
|
|
1645
|
-
* Event that will pass the complete sum of all height values from each child.
|
|
1646
|
-
* Useful to calculate the full target height of a container (like dropdown) for animations.
|
|
1647
|
-
*/
|
|
1648
|
-
this.sumOfHeight = new i0.EventEmitter();
|
|
1649
|
-
}
|
|
1650
|
-
GetMaxHeightDirective.prototype.ngAfterContentChecked = function () {
|
|
1651
|
-
this.checkHeightOfChildren(this.el.nativeElement, this.cssClassName);
|
|
1652
|
-
};
|
|
1653
|
-
GetMaxHeightDirective.prototype.checkHeightOfChildren = function (parent, cssClassName) {
|
|
1654
|
-
if (!parent) {
|
|
1655
|
-
return;
|
|
1656
|
-
}
|
|
1657
|
-
// find all the child elements with the selected class name
|
|
1658
|
-
var children = parent.getElementsByClassName(cssClassName);
|
|
1659
|
-
// failsafe
|
|
1660
|
-
if (!children) {
|
|
1661
|
-
return;
|
|
1662
|
-
}
|
|
1663
|
-
// get all the child elements heights
|
|
1664
|
-
var itemHeights = Array.from(children).map(function (x) { return x.getBoundingClientRect().height; });
|
|
1665
|
-
// failsafe
|
|
1666
|
-
if (itemHeights.length === 0) {
|
|
1667
|
-
return;
|
|
1668
|
-
}
|
|
1669
|
-
// find out the tallest element
|
|
1670
|
-
var maxHeight = itemHeights.reduce(function (prev, curr) {
|
|
1671
|
-
return curr > prev ? curr : prev;
|
|
1672
|
-
}, 0);
|
|
1673
|
-
// get sum of heights
|
|
1674
|
-
var sumOfHeight = itemHeights.reduce(function (pv, cv) { return pv + cv; }, 0);
|
|
1675
|
-
// inform
|
|
1676
|
-
this.maxHeightChanged.emit(maxHeight);
|
|
1677
|
-
this.sumOfHeight.emit(sumOfHeight);
|
|
1678
|
-
};
|
|
1679
|
-
return GetMaxHeightDirective;
|
|
1680
|
-
}());
|
|
1681
|
-
GetMaxHeightDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: GetMaxHeightDirective, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
1682
|
-
GetMaxHeightDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: GetMaxHeightDirective, selector: "[getMaxHeight]", inputs: { cssClassName: ["getMaxHeight", "cssClassName"] }, outputs: { maxHeightChanged: "maxHeightChanged", sumOfHeight: "sumOfHeight" }, ngImport: i0__namespace });
|
|
1683
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: GetMaxHeightDirective, decorators: [{
|
|
1684
|
-
type: i0.Directive,
|
|
1685
|
-
args: [{
|
|
1686
|
-
selector: '[getMaxHeight]',
|
|
1687
|
-
}]
|
|
1688
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }]; }, propDecorators: { cssClassName: [{
|
|
1689
|
-
type: i0.Input,
|
|
1690
|
-
args: ['getMaxHeight']
|
|
1691
|
-
}], maxHeightChanged: [{
|
|
1692
|
-
type: i0.Output
|
|
1693
|
-
}], sumOfHeight: [{
|
|
1694
|
-
type: i0.Output
|
|
1695
|
-
}] } });
|
|
1696
|
-
|
|
1697
|
-
/*!
|
|
1698
|
-
* @copyright FLYACTS GmbH 2019
|
|
1699
|
-
*/
|
|
1700
|
-
var SafeHtmlPipe = /** @class */ (function () {
|
|
1701
|
-
function SafeHtmlPipe(sanitizer) {
|
|
1702
|
-
this.sanitizer = sanitizer;
|
|
1703
|
-
}
|
|
1704
|
-
SafeHtmlPipe.prototype.transform = function (html) {
|
|
1705
|
-
return this.sanitizer.bypassSecurityTrustHtml(html);
|
|
1706
|
-
};
|
|
1707
|
-
return SafeHtmlPipe;
|
|
1708
|
-
}());
|
|
1709
|
-
SafeHtmlPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SafeHtmlPipe, deps: [{ token: i1__namespace$2.DomSanitizer }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
1710
|
-
SafeHtmlPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SafeHtmlPipe, name: "kmsSafeHtml" });
|
|
1711
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SafeHtmlPipe, decorators: [{
|
|
1712
|
-
type: i0.Pipe,
|
|
1713
|
-
args: [{
|
|
1714
|
-
name: 'kmsSafeHtml',
|
|
1715
|
-
}]
|
|
1716
|
-
}], ctorParameters: function () { return [{ type: i1__namespace$2.DomSanitizer }]; } });
|
|
1717
|
-
|
|
1718
|
-
/*!
|
|
1719
|
-
* @copyright FLYACTS GmbH 2019
|
|
1720
|
-
*/
|
|
1721
|
-
var FlyoutComponent = /** @class */ (function () {
|
|
1722
|
-
function FlyoutComponent() {
|
|
1723
|
-
this.icon = 'filter';
|
|
1724
|
-
this.isDropdownOpened = false;
|
|
1725
|
-
this.targetHeight = '0';
|
|
1726
|
-
this.animationTime = 5000;
|
|
1727
|
-
this.headerCssClass = '';
|
|
1728
|
-
this.bodyCssClass = '';
|
|
1729
|
-
this.headerTitle = '';
|
|
1730
|
-
this.headerText = '';
|
|
1731
|
-
this.hasButtonForMore = false;
|
|
1732
|
-
this.moreText = '';
|
|
1733
|
-
this.lessText = '';
|
|
1734
|
-
}
|
|
1735
|
-
/**
|
|
1736
|
-
* Open/close dropdown if click on header.
|
|
1737
|
-
* Except, if mode is set to hasButtonForMore. When there is a extra button to open/close
|
|
1738
|
-
*/
|
|
1739
|
-
FlyoutComponent.prototype.toggleDropdownHeader = function () {
|
|
1740
|
-
if (!this.hasButtonForMore) {
|
|
1741
|
-
this.toggleDropdown();
|
|
1742
|
-
}
|
|
1743
|
-
};
|
|
1744
|
-
/**
|
|
1745
|
-
* Open or close the dropdown
|
|
1746
|
-
*/
|
|
1747
|
-
FlyoutComponent.prototype.toggleDropdown = function () {
|
|
1748
|
-
this.isDropdownOpened = !this.isDropdownOpened;
|
|
1749
|
-
};
|
|
1750
|
-
/**
|
|
1751
|
-
* Set the height of the dropdown list items dynamic - needed for the animation
|
|
1752
|
-
*/
|
|
1753
|
-
FlyoutComponent.prototype.setDropdownListHeight = function (contentHeight) {
|
|
1754
|
-
this.targetHeight = contentHeight + "px";
|
|
1755
|
-
};
|
|
1756
|
-
return FlyoutComponent;
|
|
1757
|
-
}());
|
|
1758
|
-
FlyoutComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FlyoutComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1759
|
-
FlyoutComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FlyoutComponent, selector: "kms-flyout", inputs: { icon: "icon", headerCssClass: "headerCssClass", bodyCssClass: "bodyCssClass", headerTitle: "headerTitle", headerText: "headerText", hasButtonForMore: "hasButtonForMore", moreText: "moreText", lessText: "lessText" }, viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true }, { propertyName: "flyoutHeader", first: true, predicate: ["flyoutHeader"], descendants: true }], ngImport: i0__namespace, template: "<div class=\"flyout\"\r\n [ngClass]=\"{'is-active': isDropdownOpened}\"\r\n>\r\n <div class=\"flyout-header\" (click)=\"toggleDropdownHeader()\" [ngClass]=\"headerCssClass\">\r\n <span [innerHtml]=\"headerTitle | kmsSafeHtml\"></span>\r\n <span [innerHtml]=\"headerText | kmsSafeHtml\"></span>\r\n\r\n <ng-content select=\"[header]\"></ng-content>\r\n\r\n <div *ngIf=\"hasButtonForMore\" (click)=\"toggleDropdown()\" class=\"flyout-header-more\">\r\n <span *ngIf=\"!isDropdownOpened\">\r\n {{ moreText }}\r\n </span>\r\n <span *ngIf=\"isDropdownOpened\">\r\n {{ lessText }}\r\n </span>\r\n <kms-icon [icon]=\"'chevron-down'\" [ngClass]=\"{'is-rotating180':isDropdownOpened}\" [size]=\"16\">\r\n </kms-icon>\r\n </div>\r\n </div>\r\n <div \r\n class=\"flyout-body\"\r\n [ngClass]=\"bodyCssClass\"\r\n tabindex=\"0\"\r\n [@dropdownAnimation]=\"{value: isDropdownOpened, params: {targetHeight: targetHeight, animationTime: '500'}}\"\r\n getMaxHeight=\"inner\"\r\n (sumOfHeight)=\"setDropdownListHeight($event)\"\r\n #flyoutHeader>\r\n <div class=\"inner\" #content>\r\n <ng-content ></ng-content>\r\n </div>\r\n </div>\r\n\r\n</div>\r\n", styles: [""], components: [{ type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "iconStyle", "iconSize", "size", "dontUseSprite"] }], directives: [{ type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: SizeDirective, selector: "[size]", inputs: ["size"] }, { type: GetMaxHeightDirective, selector: "[getMaxHeight]", inputs: ["getMaxHeight"], outputs: ["maxHeightChanged", "sumOfHeight"] }], pipes: { "kmsSafeHtml": SafeHtmlPipe }, animations: [
|
|
1760
|
-
animations.trigger('dropdownAnimation', [
|
|
1761
|
-
animations.state('true', animations.style({
|
|
1762
|
-
height: '{{targetHeight}}',
|
|
1763
|
-
transition: 'height {{animationTime}}ms ease-in-out',
|
|
1764
|
-
}), {
|
|
1765
|
-
params: {
|
|
1766
|
-
targetHeight: '300px',
|
|
1767
|
-
animationTime: 3000,
|
|
1768
|
-
},
|
|
1769
|
-
}),
|
|
1770
|
-
animations.state('false', animations.style({
|
|
1771
|
-
height: 0,
|
|
1772
|
-
transition: 'height {{animationTime}}ms ease-in-out',
|
|
1773
|
-
}), {
|
|
1774
|
-
params: {
|
|
1775
|
-
targetHeight: '300px',
|
|
1776
|
-
opacity: 0,
|
|
1777
|
-
animationTime: 3000,
|
|
1778
|
-
},
|
|
1779
|
-
}),
|
|
1780
|
-
]),
|
|
1781
|
-
] });
|
|
1782
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FlyoutComponent, decorators: [{
|
|
1783
|
-
type: i0.Component,
|
|
1784
|
-
args: [{
|
|
1785
|
-
selector: 'kms-flyout',
|
|
1786
|
-
templateUrl: './flyout.component.html',
|
|
1787
|
-
styleUrls: ['./flyout.component.scss'],
|
|
1788
|
-
animations: [
|
|
1789
|
-
animations.trigger('dropdownAnimation', [
|
|
1790
|
-
animations.state('true', animations.style({
|
|
1791
|
-
height: '{{targetHeight}}',
|
|
1792
|
-
transition: 'height {{animationTime}}ms ease-in-out',
|
|
1793
|
-
}), {
|
|
1794
|
-
params: {
|
|
1795
|
-
targetHeight: '300px',
|
|
1796
|
-
animationTime: 3000,
|
|
1797
|
-
},
|
|
1798
|
-
}),
|
|
1799
|
-
animations.state('false', animations.style({
|
|
1800
|
-
height: 0,
|
|
1801
|
-
transition: 'height {{animationTime}}ms ease-in-out',
|
|
1802
|
-
}), {
|
|
1803
|
-
params: {
|
|
1804
|
-
targetHeight: '300px',
|
|
1805
|
-
opacity: 0,
|
|
1806
|
-
animationTime: 3000,
|
|
1807
|
-
},
|
|
1808
|
-
}),
|
|
1809
|
-
]),
|
|
1810
|
-
],
|
|
1811
|
-
}]
|
|
1812
|
-
}], propDecorators: { icon: [{
|
|
1813
|
-
type: i0.Input
|
|
1814
|
-
}], headerCssClass: [{
|
|
1815
|
-
type: i0.Input
|
|
1816
|
-
}], bodyCssClass: [{
|
|
1817
|
-
type: i0.Input
|
|
1818
|
-
}], headerTitle: [{
|
|
1819
|
-
type: i0.Input
|
|
1820
|
-
}], headerText: [{
|
|
1821
|
-
type: i0.Input
|
|
1822
|
-
}], hasButtonForMore: [{
|
|
1823
|
-
type: i0.Input
|
|
1824
|
-
}], moreText: [{
|
|
1825
|
-
type: i0.Input
|
|
1826
|
-
}], lessText: [{
|
|
1827
|
-
type: i0.Input
|
|
1828
|
-
}], content: [{
|
|
1829
|
-
type: i0.ViewChild,
|
|
1830
|
-
args: ['content']
|
|
1831
|
-
}], flyoutHeader: [{
|
|
1832
|
-
type: i0.ViewChild,
|
|
1833
|
-
args: ['flyoutHeader']
|
|
1834
|
-
}] } });
|
|
1835
|
-
|
|
1836
|
-
var IntegerCurrency = /** @class */ (function () {
|
|
1837
|
-
function IntegerCurrency(cp) {
|
|
1838
|
-
this.cp = cp;
|
|
1839
|
-
}
|
|
1840
|
-
IntegerCurrency.prototype.transform = function (value, currencyCode, display, digitsInfo) {
|
|
1841
|
-
var currencyPipeValue = this.cp.transform(value, currencyCode, display, digitsInfo);
|
|
1842
|
-
if (currencyPipeValue) {
|
|
1843
|
-
var convertedValue = currencyPipeValue.split(',')[0] + ' ' + currencyPipeValue.slice(-1);
|
|
1844
|
-
return convertedValue;
|
|
1845
|
-
}
|
|
1846
|
-
else {
|
|
1847
|
-
throw new Error("No value provided");
|
|
1848
|
-
}
|
|
1849
|
-
};
|
|
1850
|
-
return IntegerCurrency;
|
|
1851
|
-
}());
|
|
1852
|
-
IntegerCurrency.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IntegerCurrency, deps: [{ token: i2__namespace.CurrencyPipe }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
1853
|
-
IntegerCurrency.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IntegerCurrency, name: "kmsIntegerCurrency" });
|
|
1854
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: IntegerCurrency, decorators: [{
|
|
1855
|
-
type: i0.Pipe,
|
|
1856
|
-
args: [{
|
|
1857
|
-
name: 'kmsIntegerCurrency',
|
|
1858
|
-
}]
|
|
1859
|
-
}], ctorParameters: function () { return [{ type: i2__namespace.CurrencyPipe }]; } });
|
|
1860
|
-
|
|
1861
|
-
/*!
|
|
1862
|
-
* @copyright FLYACTS GmbH 2019
|
|
1863
|
-
*/
|
|
1864
|
-
var DecodeUriPipe = /** @class */ (function () {
|
|
1865
|
-
function DecodeUriPipe() {
|
|
1866
|
-
}
|
|
1867
|
-
DecodeUriPipe.prototype.transform = function (value, _args) {
|
|
1868
|
-
return decodeURI(value);
|
|
1869
|
-
};
|
|
1870
|
-
return DecodeUriPipe;
|
|
1871
|
-
}());
|
|
1872
|
-
DecodeUriPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DecodeUriPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
1873
|
-
DecodeUriPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DecodeUriPipe, name: "kmsDecodeUri" });
|
|
1874
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DecodeUriPipe, decorators: [{
|
|
1875
|
-
type: i0.Pipe,
|
|
1876
|
-
args: [{
|
|
1877
|
-
name: 'kmsDecodeUri',
|
|
1878
|
-
}]
|
|
1879
|
-
}] });
|
|
1880
|
-
|
|
1881
|
-
/*!
|
|
1882
|
-
* @copyright FLYACTS GmbH 2019
|
|
1883
|
-
*/
|
|
1884
|
-
var EncodeUriPipe = /** @class */ (function () {
|
|
1885
|
-
function EncodeUriPipe() {
|
|
1886
|
-
}
|
|
1887
|
-
EncodeUriPipe.prototype.transform = function (value, _args) {
|
|
1888
|
-
return encodeURI(value);
|
|
1889
|
-
};
|
|
1890
|
-
return EncodeUriPipe;
|
|
1891
|
-
}());
|
|
1892
|
-
EncodeUriPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EncodeUriPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
1893
|
-
EncodeUriPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EncodeUriPipe, name: "kmsEncodeUri" });
|
|
1894
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EncodeUriPipe, decorators: [{
|
|
1895
|
-
type: i0.Pipe,
|
|
1896
|
-
args: [{
|
|
1897
|
-
name: 'kmsEncodeUri',
|
|
1898
|
-
}]
|
|
1899
|
-
}] });
|
|
1900
|
-
|
|
1901
|
-
/**
|
|
1902
|
-
* @copyright KMS GmbH
|
|
1903
|
-
*/
|
|
1904
|
-
var SafeStylePipe = /** @class */ (function () {
|
|
1905
|
-
function SafeStylePipe(sanitizer) {
|
|
1906
|
-
this.sanitizer = sanitizer;
|
|
1907
|
-
}
|
|
1908
|
-
SafeStylePipe.prototype.transform = function (style) {
|
|
1909
|
-
return this.sanitizer.bypassSecurityTrustStyle(style);
|
|
1910
|
-
};
|
|
1911
|
-
return SafeStylePipe;
|
|
1912
|
-
}());
|
|
1913
|
-
SafeStylePipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SafeStylePipe, deps: [{ token: i1__namespace$2.DomSanitizer }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
1914
|
-
SafeStylePipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SafeStylePipe, name: "kmsSafeStyle" });
|
|
1915
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SafeStylePipe, decorators: [{
|
|
1916
|
-
type: i0.Pipe,
|
|
1917
|
-
args: [{
|
|
1918
|
-
name: 'kmsSafeStyle',
|
|
1919
|
-
}]
|
|
1920
|
-
}], ctorParameters: function () { return [{ type: i1__namespace$2.DomSanitizer }]; } });
|
|
1921
|
-
|
|
1922
|
-
/**
|
|
1923
|
-
* @copyright KMS GmbH
|
|
1924
|
-
*/
|
|
1925
|
-
var SafeUrlPipe = /** @class */ (function () {
|
|
1926
|
-
function SafeUrlPipe(sanitizer) {
|
|
1927
|
-
this.sanitizer = sanitizer;
|
|
1928
|
-
}
|
|
1929
|
-
SafeUrlPipe.prototype.transform = function (url) {
|
|
1930
|
-
return this.sanitizer.bypassSecurityTrustUrl(url);
|
|
1931
|
-
};
|
|
1932
|
-
return SafeUrlPipe;
|
|
1933
|
-
}());
|
|
1934
|
-
SafeUrlPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SafeUrlPipe, deps: [{ token: i1__namespace$2.DomSanitizer }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
1935
|
-
SafeUrlPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SafeUrlPipe, name: "kmsSafeSUrl" });
|
|
1936
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SafeUrlPipe, decorators: [{
|
|
1937
|
-
type: i0.Pipe,
|
|
1938
|
-
args: [{
|
|
1939
|
-
name: 'kmsSafeSUrl',
|
|
1940
|
-
}]
|
|
1941
|
-
}], ctorParameters: function () { return [{ type: i1__namespace$2.DomSanitizer }]; } });
|
|
1942
|
-
|
|
1943
|
-
/**
|
|
1944
|
-
* @copyright KMS GmbH
|
|
1945
|
-
*/
|
|
1946
|
-
var SafeResourceUrlPipe = /** @class */ (function () {
|
|
1947
|
-
function SafeResourceUrlPipe(sanitizer) {
|
|
1948
|
-
this.sanitizer = sanitizer;
|
|
1949
|
-
}
|
|
1950
|
-
SafeResourceUrlPipe.prototype.transform = function (url) {
|
|
1951
|
-
return this.sanitizer.bypassSecurityTrustResourceUrl(url);
|
|
1952
|
-
};
|
|
1953
|
-
return SafeResourceUrlPipe;
|
|
1954
|
-
}());
|
|
1955
|
-
SafeResourceUrlPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SafeResourceUrlPipe, deps: [{ token: i1__namespace$2.DomSanitizer }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
1956
|
-
SafeResourceUrlPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SafeResourceUrlPipe, name: "kmsSafeResourceSUrl" });
|
|
1957
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SafeResourceUrlPipe, decorators: [{
|
|
1958
|
-
type: i0.Pipe,
|
|
1959
|
-
args: [{
|
|
1960
|
-
name: 'kmsSafeResourceSUrl',
|
|
1961
|
-
}]
|
|
1962
|
-
}], ctorParameters: function () { return [{ type: i1__namespace$2.DomSanitizer }]; } });
|
|
1963
|
-
|
|
1964
|
-
var TypeofPipe = /** @class */ (function () {
|
|
1965
|
-
function TypeofPipe() {
|
|
1966
|
-
}
|
|
1967
|
-
TypeofPipe.prototype.transform = function (value) {
|
|
1968
|
-
return typeof value;
|
|
1969
|
-
};
|
|
1970
|
-
return TypeofPipe;
|
|
1971
|
-
}());
|
|
1972
|
-
TypeofPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TypeofPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
1973
|
-
TypeofPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TypeofPipe, name: "kmsTypeOf" });
|
|
1974
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TypeofPipe, decorators: [{
|
|
1975
|
-
type: i0.Pipe,
|
|
1976
|
-
args: [{
|
|
1977
|
-
name: 'kmsTypeOf',
|
|
1978
|
-
}]
|
|
1979
|
-
}] });
|
|
1980
|
-
|
|
1981
|
-
/**
|
|
1982
|
-
* @copyright KMS GmbH
|
|
1983
|
-
*/
|
|
1984
|
-
var TrimPipe = /** @class */ (function () {
|
|
1985
|
-
function TrimPipe() {
|
|
1986
|
-
}
|
|
1987
|
-
TrimPipe.prototype.transform = function (value) {
|
|
1988
|
-
if (!value) {
|
|
1989
|
-
return '';
|
|
1990
|
-
}
|
|
1991
|
-
return value.trim();
|
|
1992
|
-
};
|
|
1993
|
-
return TrimPipe;
|
|
1994
|
-
}());
|
|
1995
|
-
TrimPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TrimPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
1996
|
-
TrimPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TrimPipe, name: "kmsTrim" });
|
|
1997
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TrimPipe, decorators: [{
|
|
1998
|
-
type: i0.Pipe,
|
|
1999
|
-
args: [{ name: 'kmsTrim' }]
|
|
2000
|
-
}] });
|
|
2001
|
-
|
|
2002
|
-
/**
|
|
2003
|
-
* @copyright KMS GmbH
|
|
2004
|
-
*/
|
|
2005
|
-
var ToNumberPipe = /** @class */ (function () {
|
|
2006
|
-
function ToNumberPipe() {
|
|
2007
|
-
}
|
|
2008
|
-
ToNumberPipe.prototype.transform = function (items) {
|
|
2009
|
-
if (!items) {
|
|
2010
|
-
return 0;
|
|
2011
|
-
}
|
|
2012
|
-
return parseInt(items, 10);
|
|
2013
|
-
};
|
|
2014
|
-
return ToNumberPipe;
|
|
2015
|
-
}());
|
|
2016
|
-
ToNumberPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ToNumberPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
2017
|
-
ToNumberPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ToNumberPipe, name: "kmsToNumber", pure: false });
|
|
2018
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ToNumberPipe, decorators: [{
|
|
2019
|
-
type: i0.Pipe,
|
|
2020
|
-
args: [{
|
|
2021
|
-
name: 'kmsToNumber',
|
|
2022
|
-
pure: false
|
|
2023
|
-
}]
|
|
2024
|
-
}] });
|
|
2025
|
-
|
|
2026
|
-
/**
|
|
2027
|
-
* @copyright KMS GmbH
|
|
2028
|
-
*/
|
|
2029
|
-
var CustomPipesModule = /** @class */ (function () {
|
|
2030
|
-
function CustomPipesModule() {
|
|
2031
|
-
}
|
|
2032
|
-
return CustomPipesModule;
|
|
2033
|
-
}());
|
|
2034
|
-
CustomPipesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CustomPipesModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2035
|
-
CustomPipesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CustomPipesModule, declarations: [IntegerCurrency,
|
|
2036
|
-
SafeHtmlPipe,
|
|
2037
|
-
SafeStylePipe,
|
|
2038
|
-
SafeResourceUrlPipe,
|
|
2039
|
-
SafeUrlPipe,
|
|
2040
|
-
EncodeUriPipe,
|
|
2041
|
-
DecodeUriPipe,
|
|
2042
|
-
TypeofPipe,
|
|
2043
|
-
TrimPipe,
|
|
2044
|
-
ToNumberPipe], imports: [i2.CommonModule], exports: [IntegerCurrency,
|
|
2045
|
-
SafeHtmlPipe,
|
|
2046
|
-
SafeStylePipe,
|
|
2047
|
-
SafeResourceUrlPipe,
|
|
2048
|
-
SafeUrlPipe,
|
|
2049
|
-
EncodeUriPipe,
|
|
2050
|
-
DecodeUriPipe,
|
|
2051
|
-
TypeofPipe,
|
|
2052
|
-
TrimPipe,
|
|
2053
|
-
ToNumberPipe] });
|
|
2054
|
-
CustomPipesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CustomPipesModule, providers: [i2.CurrencyPipe], imports: [[i2.CommonModule]] });
|
|
2055
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CustomPipesModule, decorators: [{
|
|
2056
|
-
type: i0.NgModule,
|
|
2057
|
-
args: [{
|
|
2058
|
-
declarations: [
|
|
2059
|
-
IntegerCurrency,
|
|
2060
|
-
SafeHtmlPipe,
|
|
2061
|
-
SafeStylePipe,
|
|
2062
|
-
SafeResourceUrlPipe,
|
|
2063
|
-
SafeUrlPipe,
|
|
2064
|
-
EncodeUriPipe,
|
|
2065
|
-
DecodeUriPipe,
|
|
2066
|
-
TypeofPipe,
|
|
2067
|
-
TrimPipe,
|
|
2068
|
-
ToNumberPipe,
|
|
2069
|
-
],
|
|
2070
|
-
imports: [i2.CommonModule],
|
|
2071
|
-
exports: [
|
|
2072
|
-
IntegerCurrency,
|
|
2073
|
-
SafeHtmlPipe,
|
|
2074
|
-
SafeStylePipe,
|
|
2075
|
-
SafeResourceUrlPipe,
|
|
2076
|
-
SafeUrlPipe,
|
|
2077
|
-
EncodeUriPipe,
|
|
2078
|
-
DecodeUriPipe,
|
|
2079
|
-
TypeofPipe,
|
|
2080
|
-
TrimPipe,
|
|
2081
|
-
ToNumberPipe,
|
|
2082
|
-
],
|
|
2083
|
-
providers: [i2.CurrencyPipe],
|
|
2084
|
-
}]
|
|
2085
|
-
}] });
|
|
2086
|
-
|
|
2087
|
-
var EnumRadiogroupComponent = /** @class */ (function (_super) {
|
|
2088
|
-
__extends(EnumRadiogroupComponent, _super);
|
|
2089
|
-
function EnumRadiogroupComponent(formBuilder, renderer) {
|
|
2090
|
-
var _this = _super.call(this, formBuilder, renderer) || this;
|
|
2091
|
-
_this.formBuilder = formBuilder;
|
|
2092
|
-
_this.renderer = renderer;
|
|
2093
|
-
_this.translationPrefix = '';
|
|
2094
|
-
return _this;
|
|
2095
|
-
}
|
|
2096
|
-
EnumRadiogroupComponent.prototype.ngOnInit = function () {
|
|
2097
|
-
var _this = this;
|
|
2098
|
-
this.optionValues = Object.keys(this.optionsEnum).filter(function (x) { return !(parseInt(x) >= 0); });
|
|
2099
|
-
this.form = this.formBuilder.group({
|
|
2100
|
-
enumData: [],
|
|
2101
|
-
});
|
|
2102
|
-
this.formInitialized = true;
|
|
2103
|
-
this.form.valueChanges.subscribe(function (value) {
|
|
2104
|
-
_this.internalValue = value.enumData;
|
|
2105
|
-
_this.onChange(value.enumData);
|
|
2106
|
-
});
|
|
2107
|
-
_super.prototype.ngOnInit.call(this);
|
|
2108
|
-
};
|
|
2109
|
-
return EnumRadiogroupComponent;
|
|
2110
|
-
}(FormControlParentComponent));
|
|
2111
|
-
EnumRadiogroupComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EnumRadiogroupComponent, deps: [{ token: i1__namespace$1.FormBuilder }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2112
|
-
EnumRadiogroupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: EnumRadiogroupComponent, selector: "kms-enum-radiogroup", inputs: { header: "header", optionsEnum: "optionsEnum", translationPrefix: "translationPrefix" }, providers: [
|
|
2113
|
-
{
|
|
2114
|
-
provide: i1.NG_VALUE_ACCESSOR,
|
|
2115
|
-
useExisting: i0.forwardRef(function () { return EnumRadiogroupComponent; }),
|
|
2116
|
-
multi: true,
|
|
2117
|
-
},
|
|
2118
|
-
], usesInheritance: true, ngImport: i0__namespace, template: "<form [formGroup]=\"form\">\r\n <div>{{ header }}</div>\r\n <mat-radio-group [formControl]=\"form.controls['enumData']\" [disabled]=\"disabled\" #child>\r\n <mat-radio-button [value]=\"choice\" [checked]=\"value === choice\" *ngFor=\"let choice of optionValues\">{{ translationPrefix + '.' + choice | translate }}</mat-radio-button>\r\n </mat-radio-group>\r\n</form>", components: [{ type: i2__namespace$2.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }], directives: [{ type: i1__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2__namespace$2.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { type: i1__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "translate": i6__namespace.TranslatePipe } });
|
|
2119
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EnumRadiogroupComponent, decorators: [{
|
|
2120
|
-
type: i0.Component,
|
|
2121
|
-
args: [{
|
|
2122
|
-
selector: 'kms-enum-radiogroup',
|
|
2123
|
-
templateUrl: './enum-radiogroup.component.html',
|
|
2124
|
-
providers: [
|
|
2125
|
-
{
|
|
2126
|
-
provide: i1.NG_VALUE_ACCESSOR,
|
|
2127
|
-
useExisting: i0.forwardRef(function () { return EnumRadiogroupComponent; }),
|
|
2128
|
-
multi: true,
|
|
2129
|
-
},
|
|
2130
|
-
],
|
|
2131
|
-
}]
|
|
2132
|
-
}], ctorParameters: function () { return [{ type: i1__namespace$1.FormBuilder }, { type: i0__namespace.Renderer2 }]; }, propDecorators: { header: [{
|
|
2133
|
-
type: i0.Input
|
|
2134
|
-
}], optionsEnum: [{
|
|
2135
|
-
type: i0.Input
|
|
2136
|
-
}], translationPrefix: [{
|
|
2137
|
-
type: i0.Input
|
|
2138
|
-
}] } });
|
|
2139
|
-
|
|
2140
|
-
/*!
|
|
2141
|
-
* @copyright FLYACTS GmbH 2019
|
|
2142
|
-
*/
|
|
2143
|
-
/**
|
|
2144
|
-
* A generic dialog component
|
|
2145
|
-
*/
|
|
2146
|
-
var KMSAccordionItemComponent = /** @class */ (function () {
|
|
2147
|
-
function KMSAccordionItemComponent(sanitizer) {
|
|
2148
|
-
this.sanitizer = sanitizer;
|
|
2149
|
-
this.itemTitle = '';
|
|
2150
|
-
this.showAsCard = false;
|
|
2151
|
-
this.isSmall = false;
|
|
2152
|
-
this.expanded = false;
|
|
2153
|
-
this.panelOpenState = false;
|
|
2154
|
-
}
|
|
2155
|
-
KMSAccordionItemComponent.prototype.ngOnInit = function () {
|
|
2156
|
-
this.itemTitleTrustHtml = this.sanitizer.bypassSecurityTrustHtml(this.itemTitle);
|
|
2157
|
-
};
|
|
2158
|
-
return KMSAccordionItemComponent;
|
|
2159
|
-
}());
|
|
2160
|
-
KMSAccordionItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KMSAccordionItemComponent, deps: [{ token: i1__namespace$2.DomSanitizer }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2161
|
-
KMSAccordionItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: KMSAccordionItemComponent, selector: "kms-accordion-item", inputs: { itemTitle: "itemTitle", showAsCard: "showAsCard", isSmall: "isSmall", expanded: "expanded" }, ngImport: i0__namespace, template: "<mat-expansion-panel\r\n class=\"accordion-item\"\r\n [ngClass]=\"{showAsCard: showAsCard, showFlat: !showAsCard, isSmall: isSmall}\"\r\n (opened)=\"panelOpenState = true\"\r\n (closed)=\"panelOpenState = false\"\r\n [expanded] = \"expanded\"\r\n hideToggle=\"true\">\r\n <mat-expansion-panel-header class=\"accordion-item-header\">\r\n <mat-panel-title class=\"mat-subheading-2 accordion-item-title\">\r\n <div [innerHtml]=\"itemTitleTrustHtml\"></div>\r\n <ng-content select=\"[itemTitleElement]\"></ng-content>\r\n </mat-panel-title>\r\n <div class=\"accordion-item-header-icon-wrapper\">\r\n <kms-icon *ngIf=\"!panelOpenState\" icon=\"ic_plus\" iconClass=\"color-red\" class=\"accordion-item-header-icon-wrapper-desktop\"></kms-icon>\r\n <kms-icon *ngIf=\"panelOpenState\" icon=\"ic_minus\" iconClass=\"color-red\" class=\"accordion-item-header-icon-wrapper-desktop\"></kms-icon>\r\n\r\n <kms-icon *ngIf=\"!panelOpenState\" icon=\"chevron-down\" iconClass=\"color-red\" class=\"accordion-item-header-icon-wrapper-mobile\"></kms-icon>\r\n <kms-icon *ngIf=\"panelOpenState\" icon=\"chevron-top\" iconClass=\"color-red\" class=\"accordion-item-header-icon-wrapper-mobile\"></kms-icon>\r\n </div>\r\n </mat-expansion-panel-header>\r\n <ng-content></ng-content>\r\n</mat-expansion-panel>\r\n", styles: [""], components: [{ type: i2__namespace$4.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { type: i2__namespace$4.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["tabIndex", "expandedHeight", "collapsedHeight"] }, { type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "iconStyle", "iconSize", "size", "dontUseSprite"] }], directives: [{ type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2__namespace$4.MatExpansionPanelTitle, selector: "mat-panel-title" }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2162
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KMSAccordionItemComponent, decorators: [{
|
|
2163
|
-
type: i0.Component,
|
|
2164
|
-
args: [{
|
|
2165
|
-
selector: 'kms-accordion-item',
|
|
2166
|
-
templateUrl: './kms-accordion-item.component.html',
|
|
2167
|
-
styleUrls: ['./kms-accordion-item.component.scss'],
|
|
2168
|
-
}]
|
|
2169
|
-
}], ctorParameters: function () { return [{ type: i1__namespace$2.DomSanitizer }]; }, propDecorators: { itemTitle: [{
|
|
2170
|
-
type: i0.Input
|
|
2171
|
-
}], showAsCard: [{
|
|
2172
|
-
type: i0.Input
|
|
2173
|
-
}], isSmall: [{
|
|
2174
|
-
type: i0.Input
|
|
2175
|
-
}], expanded: [{
|
|
2176
|
-
type: i0.Input
|
|
2177
|
-
}] } });
|
|
2178
|
-
|
|
2179
|
-
/**
|
|
2180
|
-
* Service to get viewport
|
|
2181
|
-
*/
|
|
2182
|
-
var ViewportService = /** @class */ (function () {
|
|
2183
|
-
function ViewportService(platformId, document) {
|
|
2184
|
-
this.platformId = platformId;
|
|
2185
|
-
this.document = document;
|
|
2186
|
-
this.viewports = [
|
|
2187
|
-
{
|
|
2188
|
-
name: 'xs',
|
|
2189
|
-
low: 360,
|
|
2190
|
-
high: 990,
|
|
2191
|
-
},
|
|
2192
|
-
{
|
|
2193
|
-
name: 's',
|
|
2194
|
-
low: 991,
|
|
2195
|
-
high: 1024,
|
|
2196
|
-
},
|
|
2197
|
-
{
|
|
2198
|
-
name: 'm',
|
|
2199
|
-
low: 1025,
|
|
2200
|
-
high: 1200,
|
|
2201
|
-
},
|
|
2202
|
-
{
|
|
2203
|
-
name: 'l',
|
|
2204
|
-
low: 1201,
|
|
2205
|
-
high: 1400,
|
|
2206
|
-
},
|
|
2207
|
-
{
|
|
2208
|
-
name: 'xl',
|
|
2209
|
-
low: 1401,
|
|
2210
|
-
high: 1600,
|
|
2211
|
-
},
|
|
2212
|
-
{
|
|
2213
|
-
name: 'xxl',
|
|
2214
|
-
low: 1601,
|
|
2215
|
-
high: 1920,
|
|
2216
|
-
},
|
|
2217
|
-
{
|
|
2218
|
-
name: 'xxxl',
|
|
2219
|
-
low: 1921,
|
|
2220
|
-
high: 99999,
|
|
2221
|
-
},
|
|
2222
|
-
];
|
|
2223
|
-
this.viewportChangedSubscriber = new rxjs.Subject();
|
|
2224
|
-
this.viewportResizedSubscriber = new rxjs.Subject();
|
|
2225
|
-
this.isBrowser = false;
|
|
2226
|
-
if (i2.isPlatformBrowser(this.platformId)) {
|
|
2227
|
-
window.addEventListener('resize', this.documentSizeChanged.bind(this), { passive: true });
|
|
2228
|
-
this.isBrowser = true;
|
|
2229
|
-
}
|
|
2230
|
-
}
|
|
2231
|
-
/**
|
|
2232
|
-
* Get window height
|
|
2233
|
-
*/
|
|
2234
|
-
ViewportService.prototype.getDocumentHeight = function () {
|
|
2235
|
-
return this.isBrowser ? document.body.clientHeight : 1200;
|
|
2236
|
-
};
|
|
2237
|
-
/**
|
|
2238
|
-
* Get window width
|
|
2239
|
-
*/
|
|
2240
|
-
ViewportService.prototype.getDocumentWidth = function () {
|
|
2241
|
-
return this.isBrowser ? document.body.clientWidth : 1200;
|
|
2242
|
-
};
|
|
2243
|
-
/**
|
|
2244
|
-
* Get window height
|
|
2245
|
-
*/
|
|
2246
|
-
ViewportService.prototype.getWindowHeight = function () {
|
|
2247
|
-
return this.isBrowser ? window.innerHeight : 1200;
|
|
2248
|
-
};
|
|
2249
|
-
/**
|
|
2250
|
-
* Get window width
|
|
2251
|
-
*/
|
|
2252
|
-
ViewportService.prototype.getWindowWidth = function () {
|
|
2253
|
-
return this.isBrowser ? window.innerWidth : 1200;
|
|
2254
|
-
};
|
|
2255
|
-
/**
|
|
2256
|
-
* Returns the current viewport MQ as string
|
|
2257
|
-
* @returns string
|
|
2258
|
-
*/
|
|
2259
|
-
ViewportService.prototype.getCurrentViewPort = function () {
|
|
2260
|
-
var currentWidth = this.isBrowser ? document.body.clientWidth : 1200;
|
|
2261
|
-
this.currentViewport = this.convertWidthToMediaQuery(currentWidth);
|
|
2262
|
-
return this.currentViewport;
|
|
2263
|
-
};
|
|
2264
|
-
/**
|
|
2265
|
-
* Returns the current viewport MQ as string
|
|
2266
|
-
* @returns string
|
|
2267
|
-
*/
|
|
2268
|
-
ViewportService.prototype.getCurrentViewPortNumber = function () {
|
|
2269
|
-
return this.isBrowser ? document.body.clientWidth : 1200;
|
|
2270
|
-
};
|
|
2271
|
-
/**
|
|
2272
|
-
* Provides mq´s as string
|
|
2273
|
-
*/
|
|
2274
|
-
ViewportService.prototype.getViewportChangedObserver = function () {
|
|
2275
|
-
return this.viewportChangedSubscriber.asObservable();
|
|
2276
|
-
};
|
|
2277
|
-
/**
|
|
2278
|
-
* Provides the current window width as number
|
|
2279
|
-
*/
|
|
2280
|
-
ViewportService.prototype.getViewportResizedObserver = function () {
|
|
2281
|
-
return this.viewportResizedSubscriber.asObservable();
|
|
2282
|
-
};
|
|
2283
|
-
ViewportService.prototype.scrollToElementId = function (el, alignCenter) {
|
|
2284
|
-
if (alignCenter === void 0) { alignCenter = false; }
|
|
2285
|
-
if (this.isBrowser) {
|
|
2286
|
-
this.scrollToElement(document.querySelector('#' + el), alignCenter);
|
|
2287
|
-
}
|
|
2288
|
-
};
|
|
2289
|
-
/**
|
|
2290
|
-
* Helper function that scrolls to the given markup element.
|
|
2291
|
-
* @param el - nativeElement from markup
|
|
2292
|
-
* @param alignCenter - defines if the element needs to be centered on window
|
|
2293
|
-
*/
|
|
2294
|
-
ViewportService.prototype.scrollToElement = function (el, alignCenter) {
|
|
2295
|
-
if (alignCenter === void 0) { alignCenter = false; }
|
|
2296
|
-
if (this.isBrowser) {
|
|
2297
|
-
var extraScrollTop = 0;
|
|
2298
|
-
if (alignCenter) {
|
|
2299
|
-
extraScrollTop = (window.innerHeight - el.clientHeight) / 2;
|
|
2300
|
-
}
|
|
2301
|
-
var offsetLeft = 0;
|
|
2302
|
-
var offsetTop = 0;
|
|
2303
|
-
var elTemp = el;
|
|
2304
|
-
while (elTemp) {
|
|
2305
|
-
offsetLeft += elTemp.offsetLeft;
|
|
2306
|
-
offsetTop += elTemp.offsetTop;
|
|
2307
|
-
elTemp = elTemp.parentElement ? elTemp.parentElement : null;
|
|
2308
|
-
}
|
|
2309
|
-
window.scrollTo({ left: offsetLeft, top: offsetTop - extraScrollTop, behavior: 'smooth' });
|
|
2310
|
-
}
|
|
2311
|
-
};
|
|
2312
|
-
/**
|
|
2313
|
-
* Scroll to the top position
|
|
2314
|
-
* @param top - top position value
|
|
2315
|
-
*/
|
|
2316
|
-
ViewportService.prototype.scrollTop = function (top) {
|
|
2317
|
-
if (this.isBrowser) {
|
|
2318
|
-
window.scrollTo({ left: 0, top: top, behavior: 'smooth' });
|
|
2319
|
-
}
|
|
2320
|
-
};
|
|
2321
|
-
ViewportService.prototype.isPortrait = function () {
|
|
2322
|
-
if (this.isBrowser)
|
|
2323
|
-
return window.innerHeight > window.innerWidth;
|
|
2324
|
-
else
|
|
2325
|
-
return;
|
|
2326
|
-
};
|
|
2327
|
-
ViewportService.prototype.isLandscape = function () {
|
|
2328
|
-
if (this.isBrowser) {
|
|
2329
|
-
var isLandscape = window.orientation === 90 || window.orientation === -90;
|
|
2330
|
-
return isLandscape;
|
|
2331
|
-
}
|
|
2332
|
-
else {
|
|
2333
|
-
return;
|
|
2334
|
-
}
|
|
2335
|
-
};
|
|
2336
|
-
ViewportService.prototype.isMobile = function () {
|
|
2337
|
-
return this.getCurrentViewPortNumber() < this.viewports[2].low;
|
|
2338
|
-
};
|
|
2339
|
-
ViewportService.prototype.calculateFullscreenElementsheight = function (id, defaultheight, extra) {
|
|
2340
|
-
if (!this.isBrowser || this.isMobile()) {
|
|
2341
|
-
return defaultheight;
|
|
2342
|
-
}
|
|
2343
|
-
else {
|
|
2344
|
-
var map = this.document.getElementById(id);
|
|
2345
|
-
var footer = this.document.getElementsByTagName('footer')[0];
|
|
2346
|
-
if (map && footer) {
|
|
2347
|
-
return window.innerHeight - map.offsetTop - footer.offsetHeight - extra + "px";
|
|
2348
|
-
}
|
|
2349
|
-
else {
|
|
2350
|
-
console.warn('could not calculate map height');
|
|
2351
|
-
return defaultheight;
|
|
2352
|
-
}
|
|
2353
|
-
}
|
|
2354
|
-
};
|
|
2355
|
-
/**
|
|
2356
|
-
* If viewport changed
|
|
2357
|
-
* @event
|
|
2358
|
-
*/
|
|
2359
|
-
ViewportService.prototype.documentSizeChanged = function (event) {
|
|
2360
|
-
var e_1, _a;
|
|
2361
|
-
var currentWindowWidth = event.target.innerWidth;
|
|
2362
|
-
// inform who´s interested
|
|
2363
|
-
this.viewportResizedSubscriber.next(currentWindowWidth);
|
|
2364
|
-
if (currentWindowWidth > 0) {
|
|
2365
|
-
try {
|
|
2366
|
-
for (var _b = __values(this.viewports), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
2367
|
-
var mqs = _c.value;
|
|
2368
|
-
if (currentWindowWidth > mqs.high) {
|
|
2369
|
-
continue;
|
|
2370
|
-
}
|
|
2371
|
-
else if ((currentWindowWidth >= mqs.low || currentWindowWidth <= mqs.high) &&
|
|
2372
|
-
this.currentViewport !== mqs.name) {
|
|
2373
|
-
this.currentViewport = mqs.name;
|
|
2374
|
-
// inform who´s interested
|
|
2375
|
-
this.viewportChangedSubscriber.next(mqs.name);
|
|
2376
|
-
break;
|
|
2377
|
-
}
|
|
2378
|
-
else if (this.currentViewport === mqs.name) {
|
|
2379
|
-
break;
|
|
2380
|
-
}
|
|
2381
|
-
else {
|
|
2382
|
-
console.error('ERROR');
|
|
2383
|
-
}
|
|
2384
|
-
}
|
|
2385
|
-
}
|
|
2386
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2387
|
-
finally {
|
|
2388
|
-
try {
|
|
2389
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2390
|
-
}
|
|
2391
|
-
finally { if (e_1) throw e_1.error; }
|
|
2392
|
-
}
|
|
2393
|
-
}
|
|
2394
|
-
};
|
|
2395
|
-
/**
|
|
2396
|
-
* Get the Media Query for the given width
|
|
2397
|
-
* @param width Width to get the according MQ for
|
|
2398
|
-
*/
|
|
2399
|
-
ViewportService.prototype.convertWidthToMediaQuery = function (width) {
|
|
2400
|
-
var e_2, _a;
|
|
2401
|
-
var currentViewport = '';
|
|
2402
|
-
try {
|
|
2403
|
-
for (var _b = __values(this.viewports), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
2404
|
-
var mqs = _c.value;
|
|
2405
|
-
if (width <= mqs.high && width >= mqs.low) {
|
|
2406
|
-
currentViewport = mqs.name;
|
|
2407
|
-
break;
|
|
2408
|
-
}
|
|
2409
|
-
}
|
|
2410
|
-
}
|
|
2411
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
2412
|
-
finally {
|
|
2413
|
-
try {
|
|
2414
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2415
|
-
}
|
|
2416
|
-
finally { if (e_2) throw e_2.error; }
|
|
2417
|
-
}
|
|
2418
|
-
return currentViewport;
|
|
2419
|
-
};
|
|
2420
|
-
ViewportService.prototype.ngOnDestroy = function () {
|
|
2421
|
-
if (this.isBrowser) {
|
|
2422
|
-
window.removeEventListener('resize', this.documentSizeChanged);
|
|
2423
|
-
}
|
|
2424
|
-
};
|
|
2425
|
-
return ViewportService;
|
|
2426
|
-
}());
|
|
2427
|
-
ViewportService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ViewportService, deps: [{ token: i0.PLATFORM_ID }, { token: i2.DOCUMENT }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
2428
|
-
ViewportService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ViewportService });
|
|
2429
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ViewportService, decorators: [{
|
|
2430
|
-
type: i0.Injectable
|
|
2431
|
-
}], ctorParameters: function () {
|
|
2432
|
-
return [{ type: Object, decorators: [{
|
|
2433
|
-
type: i0.Inject,
|
|
2434
|
-
args: [i0.PLATFORM_ID]
|
|
2435
|
-
}] }, { type: Document, decorators: [{
|
|
2436
|
-
type: i0.Inject,
|
|
2437
|
-
args: [i2.DOCUMENT]
|
|
2438
|
-
}] }];
|
|
2439
|
-
} });
|
|
2440
|
-
|
|
2441
|
-
/*!
|
|
2442
|
-
* @copyright FLYACTS GmbH 2019
|
|
2443
|
-
*/
|
|
2444
|
-
/**
|
|
2445
|
-
* MarkerOptions class for Marker
|
|
2446
|
-
*/
|
|
2447
|
-
var MarkerOptions = /** @class */ (function () {
|
|
2448
|
-
function MarkerOptions() {
|
|
2449
|
-
}
|
|
2450
|
-
return MarkerOptions;
|
|
2451
|
-
}());
|
|
2452
|
-
/**
|
|
2453
|
-
* MarkerLabel class for Marker
|
|
2454
|
-
*/
|
|
2455
|
-
var MarkerLabel = /** @class */ (function () {
|
|
2456
|
-
function MarkerLabel() {
|
|
2457
|
-
}
|
|
2458
|
-
return MarkerLabel;
|
|
2459
|
-
}());
|
|
2460
|
-
/**
|
|
2461
|
-
* Marker class
|
|
2462
|
-
*/
|
|
2463
|
-
var Marker = /** @class */ (function () {
|
|
2464
|
-
function Marker() {
|
|
2465
|
-
}
|
|
2466
|
-
return Marker;
|
|
2467
|
-
}());
|
|
2468
|
-
/**
|
|
2469
|
-
* Component to show marker on google map for specific address
|
|
2470
|
-
*/
|
|
2471
|
-
var MapComponent = /** @class */ (function () {
|
|
2472
|
-
//
|
|
2473
|
-
function MapComponent(viewPortService) {
|
|
2474
|
-
this.viewPortService = viewPortService;
|
|
2475
|
-
this.markers = [];
|
|
2476
|
-
this.geoDataFoundForAddress = false;
|
|
2477
|
-
this.widthSet = false;
|
|
2478
|
-
this.width = '100%';
|
|
2479
|
-
this.zoom = 15;
|
|
2480
|
-
this.center = {
|
|
2481
|
-
lat: 52.097449,
|
|
2482
|
-
lng: 12.7436911,
|
|
2483
|
-
};
|
|
2484
|
-
this.options = {
|
|
2485
|
-
mapTypeId: 'roadmap',
|
|
2486
|
-
zoomControl: false,
|
|
2487
|
-
scrollwheel: false,
|
|
2488
|
-
disableDoubleClickZoom: true,
|
|
2489
|
-
maxZoom: 15,
|
|
2490
|
-
minZoom: 8,
|
|
2491
|
-
};
|
|
2492
|
-
}
|
|
2493
|
-
MapComponent.prototype.ngOnInit = function () {
|
|
2494
|
-
this.findLocation(this.data.Street + ' ' + this.data.Zip + ' ' + this.data.City);
|
|
2495
|
-
};
|
|
2496
|
-
/**
|
|
2497
|
-
* Asks google for geocoordinates of a given address string
|
|
2498
|
-
* @input address as string
|
|
2499
|
-
*/
|
|
2500
|
-
MapComponent.prototype.findLocation = function (address) {
|
|
2501
|
-
var _this = this;
|
|
2502
|
-
if (!this.geocoder) {
|
|
2503
|
-
this.geocoder = new google.maps.Geocoder();
|
|
2504
|
-
}
|
|
2505
|
-
this.geocoder.geocode({
|
|
2506
|
-
'address': address,
|
|
2507
|
-
}, function (results, status) {
|
|
2508
|
-
if (status === google.maps.GeocoderStatus.OK) {
|
|
2509
|
-
_this.center.lat = results[0].geometry.location.lat();
|
|
2510
|
-
_this.center.lng = results[0].geometry.location.lng();
|
|
2511
|
-
_this.addMarker();
|
|
2512
|
-
_this.geoDataFoundForAddress = true;
|
|
2513
|
-
}
|
|
2514
|
-
else {
|
|
2515
|
-
console.error('Sorry, this search of map address produced no results.');
|
|
2516
|
-
}
|
|
2517
|
-
});
|
|
2518
|
-
};
|
|
2519
|
-
/**
|
|
2520
|
-
* Adds a marker to the map
|
|
2521
|
-
*/
|
|
2522
|
-
MapComponent.prototype.addMarker = function () {
|
|
2523
|
-
this.markers.push({
|
|
2524
|
-
position: {
|
|
2525
|
-
lat: this.center.lat,
|
|
2526
|
-
lng: this.center.lng,
|
|
2527
|
-
},
|
|
2528
|
-
label: {
|
|
2529
|
-
color: 'blue',
|
|
2530
|
-
text: this.data.Name1 || '',
|
|
2531
|
-
},
|
|
2532
|
-
title: this.data.Name1 + ' ' + this.data.Street + ' ' + this.data.Zip,
|
|
2533
|
-
options: { animation: google.maps.Animation.DROP },
|
|
2534
|
-
});
|
|
2535
|
-
};
|
|
2536
|
-
/**
|
|
2537
|
-
* Zooms in into map
|
|
2538
|
-
*/
|
|
2539
|
-
MapComponent.prototype.zoomIn = function () {
|
|
2540
|
-
if (this.options.maxZoom && this.zoom < this.options.maxZoom) {
|
|
2541
|
-
this.zoom++;
|
|
2542
|
-
}
|
|
2543
|
-
};
|
|
2544
|
-
/**
|
|
2545
|
-
* Zooms out from map
|
|
2546
|
-
*/
|
|
2547
|
-
MapComponent.prototype.zoomOut = function () {
|
|
2548
|
-
if (this.options.minZoom && this.zoom > this.options.minZoom) {
|
|
2549
|
-
this.zoom--;
|
|
2550
|
-
}
|
|
2551
|
-
};
|
|
2552
|
-
return MapComponent;
|
|
2553
|
-
}());
|
|
2554
|
-
MapComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MapComponent, deps: [{ token: ViewportService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2555
|
-
MapComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: MapComponent, selector: "kms-map", inputs: { data: "data" }, ngImport: i0__namespace, template: "<div *ngIf=\"geoDataFoundForAddress\">\r\n <google-map\r\n height=\"415px\"\r\n [width]=\"width\"\r\n [zoom]=\"zoom\"\r\n [center]=\"center\"\r\n [options]=\"options\"\r\n >\r\n <map-marker\r\n *ngFor=\"let marker of markers\"\r\n [position]=\"marker.position\"\r\n [label]=\"marker.label\"\r\n [title]=\"marker.title\"\r\n [options]=\"marker.options\"\r\n >\r\n </map-marker>\r\n </google-map>\r\n</div>", styles: [""], components: [{ type: i2__namespace$5.GoogleMap, selector: "google-map", inputs: ["height", "width", "center", "zoom", "options", "mapTypeId"], outputs: ["authFailure", "boundsChanged", "centerChanged", "mapClick", "mapDblclick", "mapDrag", "mapDragend", "mapDragstart", "headingChanged", "idle", "maptypeidChanged", "mapMousemove", "mapMouseout", "mapMouseover", "projectionChanged", "mapRightclick", "tilesloaded", "tiltChanged", "zoomChanged"], exportAs: ["googleMap"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace$5.MapMarker, selector: "map-marker", inputs: ["title", "position", "label", "clickable", "options", "icon", "visible"], outputs: ["animationChanged", "mapClick", "clickableChanged", "cursorChanged", "mapDblclick", "mapDrag", "mapDragend", "draggableChanged", "mapDragstart", "flatChanged", "iconChanged", "mapMousedown", "mapMouseout", "mapMouseover", "mapMouseup", "positionChanged", "mapRightclick", "shapeChanged", "titleChanged", "visibleChanged", "zindexChanged"], exportAs: ["mapMarker"] }] });
|
|
2556
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MapComponent, decorators: [{
|
|
2557
|
-
type: i0.Component,
|
|
2558
|
-
args: [{
|
|
2559
|
-
selector: 'kms-map',
|
|
2560
|
-
templateUrl: './map.component.html',
|
|
2561
|
-
styleUrls: ['./map.component.scss']
|
|
2562
|
-
}]
|
|
2563
|
-
}], ctorParameters: function () { return [{ type: ViewportService }]; }, propDecorators: { data: [{
|
|
2564
|
-
type: i0.Input
|
|
2565
|
-
}] } });
|
|
2566
|
-
|
|
2567
|
-
// TODO change values after cleaned up database
|
|
2568
|
-
exports.SalutationEnum = void 0;
|
|
2569
|
-
(function (SalutationEnum) {
|
|
2570
|
-
SalutationEnum["NOT_SPECIFIED"] = "Keine Anrede";
|
|
2571
|
-
SalutationEnum["MALE"] = "Herr";
|
|
2572
|
-
SalutationEnum["FEMALE"] = "Frau";
|
|
2573
|
-
})(exports.SalutationEnum || (exports.SalutationEnum = {}));
|
|
2574
|
-
|
|
2575
|
-
var SalutationDropdownComponent = /** @class */ (function (_super) {
|
|
2576
|
-
__extends(SalutationDropdownComponent, _super);
|
|
2577
|
-
function SalutationDropdownComponent(formBuilder, renderer) {
|
|
2578
|
-
var _this = _super.call(this, formBuilder, renderer) || this;
|
|
2579
|
-
_this.formBuilder = formBuilder;
|
|
2580
|
-
_this.renderer = renderer;
|
|
2581
|
-
//For view
|
|
2582
|
-
_this.SalutationEnum = exports.SalutationEnum;
|
|
2583
|
-
_this.Object = Object;
|
|
2584
|
-
return _this;
|
|
2585
|
-
}
|
|
2586
|
-
SalutationDropdownComponent.prototype.ngOnInit = function () {
|
|
2587
|
-
var _this = this;
|
|
2588
|
-
this.form = this.formBuilder.group({
|
|
2589
|
-
salut: [],
|
|
2590
|
-
});
|
|
2591
|
-
this.formInitialized = true;
|
|
2592
|
-
//somehow for dropowns we have to set value manually with timeout for default value
|
|
2593
|
-
setTimeout(function () {
|
|
2594
|
-
_this.form.controls['salut'].setValue(_this.value ? _this.value : '');
|
|
2595
|
-
}, 1000);
|
|
2596
|
-
this.form.valueChanges.subscribe(function (value) {
|
|
2597
|
-
_this.onChange(value.salut);
|
|
2598
|
-
});
|
|
2599
|
-
_super.prototype.ngOnInit.call(this);
|
|
2600
|
-
};
|
|
2601
|
-
return SalutationDropdownComponent;
|
|
2602
|
-
}(FormControlParentComponent));
|
|
2603
|
-
SalutationDropdownComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SalutationDropdownComponent, deps: [{ token: i1__namespace$1.FormBuilder }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2604
|
-
SalutationDropdownComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SalutationDropdownComponent, selector: "kms-salutation-dropdown", inputs: { placeholder: "placeholder" }, providers: [
|
|
2605
|
-
{
|
|
2606
|
-
provide: i1.NG_VALUE_ACCESSOR,
|
|
2607
|
-
useExisting: i0.forwardRef(function () { return SalutationDropdownComponent; }),
|
|
2608
|
-
multi: true,
|
|
2609
|
-
},
|
|
2610
|
-
], usesInheritance: true, ngImport: i0__namespace, template: "<form [formGroup]=\"form\" class=\"row\">\r\n <mat-form-field class=\"col\">\r\n <mat-select disableOptionCentering [formControl]=\"form.controls['salut']\" [placeholder]=\"placeholder\" [value]=\"value\" #child>\r\n <mat-option [value]=\"SalutationEnum.NOT_SPECIFIED\">{{ 'general.salutation.' + Object.keys(SalutationEnum)[0]?.toLowerCase() | translate }}</mat-option>\r\n <mat-option [value]=\"SalutationEnum.MALE\">{{ 'general.salutation.' + Object.keys(SalutationEnum)[1]?.toLowerCase() | translate }}</mat-option>\r\n <mat-option [value]=\"SalutationEnum.FEMALE\">{{ 'general.salutation.' + Object.keys(SalutationEnum)[2]?.toLowerCase() | translate }}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n</form>", components: [{ type: i2__namespace$1.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i3__namespace.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { type: i4__namespace.MatOption, selector: "mat-option", exportAs: ["matOption"] }], directives: [{ type: i1__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i1__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "translate": i6__namespace.TranslatePipe } });
|
|
2611
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SalutationDropdownComponent, decorators: [{
|
|
2612
|
-
type: i0.Component,
|
|
2613
|
-
args: [{
|
|
2614
|
-
selector: 'kms-salutation-dropdown',
|
|
2615
|
-
templateUrl: './salutation-dropdown.component.html',
|
|
2616
|
-
providers: [
|
|
2617
|
-
{
|
|
2618
|
-
provide: i1.NG_VALUE_ACCESSOR,
|
|
2619
|
-
useExisting: i0.forwardRef(function () { return SalutationDropdownComponent; }),
|
|
2620
|
-
multi: true,
|
|
2621
|
-
},
|
|
2622
|
-
],
|
|
2623
|
-
}]
|
|
2624
|
-
}], ctorParameters: function () { return [{ type: i1__namespace$1.FormBuilder }, { type: i0__namespace.Renderer2 }]; }, propDecorators: { placeholder: [{
|
|
2625
|
-
type: i0.Input
|
|
2626
|
-
}] } });
|
|
2627
|
-
|
|
2628
|
-
var TooltipComponent = /** @class */ (function () {
|
|
2629
|
-
function TooltipComponent() {
|
|
2630
|
-
this.tooltipTitle = "";
|
|
2631
|
-
}
|
|
2632
|
-
return TooltipComponent;
|
|
2633
|
-
}());
|
|
2634
|
-
TooltipComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TooltipComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2635
|
-
TooltipComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TooltipComponent, selector: "kms-tooltip-element", inputs: { tooltipTitle: "tooltipTitle" }, ngImport: i0__namespace, template: "<ng-content></ng-content>", styles: ["[kmsTooltip]{position:relative}\n"] });
|
|
2636
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TooltipComponent, decorators: [{
|
|
2637
|
-
type: i0.Component,
|
|
2638
|
-
args: [{
|
|
2639
|
-
selector: 'kms-tooltip-element',
|
|
2640
|
-
templateUrl: './tooltip.component.html',
|
|
2641
|
-
styleUrls: ['./tooltip.component.scss']
|
|
2642
|
-
}]
|
|
2643
|
-
}], propDecorators: { tooltipTitle: [{
|
|
2644
|
-
type: i0.Input
|
|
2645
|
-
}] } });
|
|
2646
|
-
|
|
2647
|
-
/**
|
|
2648
|
-
* Attached File DTO
|
|
2649
|
-
*/
|
|
2650
|
-
var AttachedFileDTO = /** @class */ (function () {
|
|
2651
|
-
function AttachedFileDTO() {
|
|
2652
|
-
}
|
|
2653
|
-
return AttachedFileDTO;
|
|
2654
|
-
}());
|
|
2655
|
-
|
|
2656
|
-
/*!
|
|
2657
|
-
* @copyright FLYACTS GmbH 2019
|
|
2658
|
-
*/
|
|
2659
|
-
exports.IconSize = void 0;
|
|
2660
|
-
(function (IconSize) {
|
|
2661
|
-
IconSize["FULLSIZE"] = "size-full";
|
|
2662
|
-
IconSize["TINY"] = "size-16";
|
|
2663
|
-
IconSize["SMALLER"] = "size-20";
|
|
2664
|
-
IconSize["SMALL"] = "size-32";
|
|
2665
|
-
IconSize["MEDIUM"] = "size-64";
|
|
2666
|
-
IconSize["LARGE"] = "size-128";
|
|
2667
|
-
IconSize["XL"] = "size-256";
|
|
2668
|
-
IconSize["XXL"] = "size-512";
|
|
2669
|
-
IconSize["XXXL"] = "size-1024";
|
|
2670
|
-
IconSize["NONE"] = "NONE";
|
|
2671
|
-
})(exports.IconSize || (exports.IconSize = {}));
|
|
2672
|
-
|
|
2673
|
-
var SalutationRadiogroupComponent = /** @class */ (function (_super) {
|
|
2674
|
-
__extends(SalutationRadiogroupComponent, _super);
|
|
2675
|
-
function SalutationRadiogroupComponent(formBuilder, renderer) {
|
|
2676
|
-
var _this = _super.call(this, formBuilder, renderer) || this;
|
|
2677
|
-
_this.formBuilder = formBuilder;
|
|
2678
|
-
_this.renderer = renderer;
|
|
2679
|
-
//For view
|
|
2680
|
-
_this.SalutationEnum = exports.SalutationEnum;
|
|
2681
|
-
_this.Object = Object;
|
|
2682
|
-
return _this;
|
|
2683
|
-
}
|
|
2684
|
-
SalutationRadiogroupComponent.prototype.ngOnInit = function () {
|
|
2685
|
-
var _this = this;
|
|
2686
|
-
this.form = this.formBuilder.group({
|
|
2687
|
-
salut: [isValue(this.value) ? this.value : '', null],
|
|
2688
|
-
});
|
|
2689
|
-
this.formInitialized = true;
|
|
2690
|
-
this.form.valueChanges.subscribe(function (value) {
|
|
2691
|
-
_this.internalValue = value.salut;
|
|
2692
|
-
_this.onChange(value.salut);
|
|
2693
|
-
});
|
|
2694
|
-
_super.prototype.ngOnInit.call(this);
|
|
2695
|
-
};
|
|
2696
|
-
return SalutationRadiogroupComponent;
|
|
2697
|
-
}(FormControlParentComponent));
|
|
2698
|
-
SalutationRadiogroupComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SalutationRadiogroupComponent, deps: [{ token: i1__namespace$1.FormBuilder }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2699
|
-
SalutationRadiogroupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SalutationRadiogroupComponent, selector: "kms-salutation-radiogroup", providers: [
|
|
2700
|
-
{
|
|
2701
|
-
provide: i1.NG_VALUE_ACCESSOR,
|
|
2702
|
-
useExisting: i0.forwardRef(function () { return SalutationRadiogroupComponent; }),
|
|
2703
|
-
multi: true,
|
|
2704
|
-
},
|
|
2705
|
-
], usesInheritance: true, ngImport: i0__namespace, template: "<form [formGroup]=\"form\" >\r\n <mat-radio-group [formControl]=\"form.controls['salut']\" [disabled]=\"disabled\" #radioGroup>\r\n <mat-radio-button color=\"primary\" [value]=\"SalutationEnum.NOT_SPECIFIED\" [checked]=\"value === SalutationEnum.NOT_SPECIFIED\">\r\n {{ 'general.salutation.' + Object.keys(SalutationEnum)[0]?.toLowerCase() | translate }}\r\n </mat-radio-button>\r\n <mat-radio-button color=\"primary\" [value]=\"SalutationEnum.MALE\" [checked]=\"value === SalutationEnum.MALE\">\r\n {{ 'general.salutation.' + Object.keys(SalutationEnum)[1]?.toLowerCase() | translate }}\r\n </mat-radio-button>\r\n <mat-radio-button color=\"primary\" [value]=\"SalutationEnum.FEMALE\" [checked]=\"value === SalutationEnum.FEMALE\">\r\n {{ 'general.salutation.' + Object.keys(SalutationEnum)[2]?.toLowerCase() | translate }}\r\n </mat-radio-button>\r\n </mat-radio-group>\r\n</form>", components: [{ type: i2__namespace$2.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }], directives: [{ type: i1__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2__namespace$2.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { type: i1__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "translate": i6__namespace.TranslatePipe } });
|
|
2706
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SalutationRadiogroupComponent, decorators: [{
|
|
2707
|
-
type: i0.Component,
|
|
2708
|
-
args: [{
|
|
2709
|
-
selector: 'kms-salutation-radiogroup',
|
|
2710
|
-
templateUrl: './salutation-radiogroup.component.html',
|
|
2711
|
-
providers: [
|
|
2712
|
-
{
|
|
2713
|
-
provide: i1.NG_VALUE_ACCESSOR,
|
|
2714
|
-
useExisting: i0.forwardRef(function () { return SalutationRadiogroupComponent; }),
|
|
2715
|
-
multi: true,
|
|
2716
|
-
},
|
|
2717
|
-
],
|
|
2718
|
-
}]
|
|
2719
|
-
}], ctorParameters: function () { return [{ type: i1__namespace$1.FormBuilder }, { type: i0__namespace.Renderer2 }]; } });
|
|
2720
|
-
|
|
2721
|
-
/**
|
|
2722
|
-
* @copyright KMS GmbH
|
|
2723
|
-
*/
|
|
2724
|
-
var BackToTopComponent = /** @class */ (function () {
|
|
2725
|
-
function BackToTopComponent(platformId) {
|
|
2726
|
-
this.platformId = platformId;
|
|
2727
|
-
}
|
|
2728
|
-
BackToTopComponent.prototype.onWindowScroll = function () {
|
|
2729
|
-
if (i2.isPlatformBrowser(this.platformId)) {
|
|
2730
|
-
if (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop > 100) {
|
|
2731
|
-
this.windowScrolled = true;
|
|
2732
|
-
}
|
|
2733
|
-
else if ((this.windowScrolled && window.pageYOffset) ||
|
|
2734
|
-
document.documentElement.scrollTop ||
|
|
2735
|
-
document.body.scrollTop < 10) {
|
|
2736
|
-
this.windowScrolled = false;
|
|
2737
|
-
}
|
|
2738
|
-
}
|
|
2739
|
-
};
|
|
2740
|
-
BackToTopComponent.prototype.scrollToTop = function () {
|
|
2741
|
-
if (i2.isPlatformBrowser(this.platformId)) {
|
|
2742
|
-
(function smoothscroll() {
|
|
2743
|
-
var currentScroll = document.documentElement.scrollTop || document.body.scrollTop;
|
|
2744
|
-
if (currentScroll > 0) {
|
|
2745
|
-
window.requestAnimationFrame(smoothscroll);
|
|
2746
|
-
window.scrollTo(0, currentScroll - currentScroll / 8);
|
|
2747
|
-
}
|
|
2748
|
-
})();
|
|
2749
|
-
}
|
|
2750
|
-
};
|
|
2751
|
-
return BackToTopComponent;
|
|
2752
|
-
}());
|
|
2753
|
-
BackToTopComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BackToTopComponent, deps: [{ token: i0.PLATFORM_ID }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2754
|
-
BackToTopComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: BackToTopComponent, selector: "kms-back-to-top", host: { listeners: { "window:scroll": "onWindowScroll()" } }, ngImport: i0__namespace, template: "<div class=\"scrollToTop\"\r\n [ngClass]=\"{'show': windowScrolled}\"\r\n (click)=\"scrollToTop()\">\r\n <div class=\"scrollToTop-inner\">\r\n <kms-icon icon=\"floating_button_clear\" iconClass=\"color-white\"></kms-icon>\r\n </div>\r\n</div>", components: [{ type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "iconStyle", "iconSize", "size", "dontUseSprite"] }], directives: [{ type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
2755
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: BackToTopComponent, decorators: [{
|
|
2756
|
-
type: i0.Component,
|
|
2757
|
-
args: [{
|
|
2758
|
-
selector: 'kms-back-to-top',
|
|
2759
|
-
templateUrl: './back-to-top.component.html',
|
|
2760
|
-
}]
|
|
2761
|
-
}], ctorParameters: function () {
|
|
2762
|
-
return [{ type: Object, decorators: [{
|
|
2763
|
-
type: i0.Inject,
|
|
2764
|
-
args: [i0.PLATFORM_ID]
|
|
2765
|
-
}] }];
|
|
2766
|
-
}, propDecorators: { onWindowScroll: [{
|
|
2767
|
-
type: i0.HostListener,
|
|
2768
|
-
args: ['window:scroll', []]
|
|
2769
|
-
}] } });
|
|
2770
|
-
|
|
2771
|
-
var ButtonResponseType;
|
|
2772
|
-
(function (ButtonResponseType) {
|
|
2773
|
-
ButtonResponseType["primary"] = "primary";
|
|
2774
|
-
ButtonResponseType["secondary"] = "secondary";
|
|
2775
|
-
})(ButtonResponseType || (ButtonResponseType = {}));
|
|
2776
|
-
|
|
2777
|
-
/**
|
|
2778
|
-
* @copyright KMS GmbH
|
|
2779
|
-
*/
|
|
2780
|
-
/**
|
|
2781
|
-
* A generic dialog component
|
|
2782
|
-
*/
|
|
2783
|
-
var GenericDialogComponent = /** @class */ (function () {
|
|
2784
|
-
function GenericDialogComponent(dialogRef, zone, data) {
|
|
2785
|
-
this.dialogRef = dialogRef;
|
|
2786
|
-
this.zone = zone;
|
|
2787
|
-
this.data = data;
|
|
2788
|
-
this.ButtonResponseType = ButtonResponseType;
|
|
2789
|
-
if (isValue(data.buttons)) {
|
|
2790
|
-
this.buttons = data.buttons;
|
|
2791
|
-
}
|
|
2792
|
-
else {
|
|
2793
|
-
this.buttons = { primary: 'Yes', secondary: 'No' };
|
|
2794
|
-
}
|
|
2795
|
-
}
|
|
2796
|
-
/**
|
|
2797
|
-
* Action called when clicked
|
|
2798
|
-
* @param clickedButton Whether the primary or secondary button was clicked
|
|
2799
|
-
*/
|
|
2800
|
-
GenericDialogComponent.prototype.onClickAction = function (clickedButton) {
|
|
2801
|
-
var _this = this;
|
|
2802
|
-
this.zone.run(function () {
|
|
2803
|
-
_this.dialogRef.close(clickedButton);
|
|
2804
|
-
_this.dialogRef.afterClosed().subscribe(function () {
|
|
2805
|
-
var buttonList = document.querySelectorAll('.mat-flat-button, .mat-button');
|
|
2806
|
-
var i = 0;
|
|
2807
|
-
for (i; i < buttonList.length; i++) {
|
|
2808
|
-
buttonList[i].classList.remove('cdk-focused');
|
|
2809
|
-
buttonList[i].classList.remove('cdk-program-focused');
|
|
2810
|
-
}
|
|
2811
|
-
});
|
|
2812
|
-
});
|
|
2813
|
-
};
|
|
2814
|
-
return GenericDialogComponent;
|
|
2815
|
-
}());
|
|
2816
|
-
GenericDialogComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: GenericDialogComponent, deps: [{ token: i1__namespace$4.MatDialogRef }, { token: i0__namespace.NgZone }, { token: i1$4.MAT_DIALOG_DATA }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2817
|
-
GenericDialogComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: GenericDialogComponent, selector: "kms-generic-dialog", ngImport: i0__namespace, template: "<div mat-dialog-title class=\"mat-dialog-title\">\r\n <h3>{{ data.title }}</h3>\r\n</div>\r\n<div mat-dialog-content class=\"mat-dialog-content\">\r\n {{ data.message }}\r\n</div>\r\n<div mat-dialog-actions class=\"custom-dialog-actions\">\r\n <button\r\n mat-flat-button\r\n class=\"test_secondary_button\"\r\n color=\"accent\"\r\n (click)=\"onClickAction(ButtonResponseType.secondary)\"\r\n >\r\n {{ buttons.secondary }}\r\n </button>\r\n <button\r\n mat-flat-button\r\n class=\"test_primary_button\"\r\n color=\"primary\"\r\n (click)=\"onClickAction(ButtonResponseType.primary)\"\r\n >\r\n {{ buttons.primary }}\r\n </button>\r\n</div>\r\n", styles: [""], components: [{ type: i2__namespace$3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i1__namespace$4.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace$4.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i1__namespace$4.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }] });
|
|
2818
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: GenericDialogComponent, decorators: [{
|
|
2819
|
-
type: i0.Component,
|
|
2820
|
-
args: [{
|
|
2821
|
-
selector: 'kms-generic-dialog',
|
|
2822
|
-
templateUrl: './generic-dialog.component.html',
|
|
2823
|
-
styleUrls: ['./generic-dialog.component.scss'],
|
|
2824
|
-
}]
|
|
2825
|
-
}], ctorParameters: function () {
|
|
2826
|
-
return [{ type: i1__namespace$4.MatDialogRef }, { type: i0__namespace.NgZone }, { type: undefined, decorators: [{
|
|
2827
|
-
type: i0.Inject,
|
|
2828
|
-
args: [i1$4.MAT_DIALOG_DATA]
|
|
2829
|
-
}] }];
|
|
2830
|
-
} });
|
|
2831
|
-
|
|
2832
|
-
var ButtonWithConfirmDialogComponent = /** @class */ (function () {
|
|
2833
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
2834
|
-
function ButtonWithConfirmDialogComponent(dialog) {
|
|
2835
|
-
this.dialog = dialog;
|
|
2836
|
-
// Outputs when dialogue was closed. Returns true, if yes was clicked, false otherwise
|
|
2837
|
-
this.onConfirmClosed = new i0.EventEmitter();
|
|
2838
|
-
this.subs = new subsink.SubSink();
|
|
2839
|
-
}
|
|
2840
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
2841
|
-
ButtonWithConfirmDialogComponent.prototype.ngOnInit = function () { };
|
|
2842
|
-
ButtonWithConfirmDialogComponent.prototype.start = function () {
|
|
2843
|
-
var _this = this;
|
|
2844
|
-
var data = {
|
|
2845
|
-
title: this.confirmTitle,
|
|
2846
|
-
buttons: {
|
|
2847
|
-
primary: this.confirmTextYes,
|
|
2848
|
-
secondary: this.confirmTextNo,
|
|
2849
|
-
}
|
|
2850
|
-
};
|
|
2851
|
-
var dialogRef = this.dialog.open(GenericDialogComponent, {
|
|
2852
|
-
data: data,
|
|
2853
|
-
});
|
|
2854
|
-
this.subs.sink = dialogRef.afterClosed().subscribe(function (result) {
|
|
2855
|
-
if (result === ButtonResponseType.primary) {
|
|
2856
|
-
_this.onConfirmClosed.emit(true);
|
|
2857
|
-
}
|
|
2858
|
-
else {
|
|
2859
|
-
_this.onConfirmClosed.emit(false);
|
|
2860
|
-
}
|
|
2861
|
-
dialogRef.close();
|
|
2862
|
-
});
|
|
2863
|
-
};
|
|
2864
|
-
return ButtonWithConfirmDialogComponent;
|
|
2865
|
-
}());
|
|
2866
|
-
ButtonWithConfirmDialogComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ButtonWithConfirmDialogComponent, deps: [{ token: i1__namespace$4.MatDialog }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2867
|
-
ButtonWithConfirmDialogComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ButtonWithConfirmDialogComponent, selector: "kms-button-with-confirm-dialog", inputs: { disabled: "disabled", buttonText: "buttonText", confirmTitle: "confirmTitle", confirmTextYes: "confirmTextYes", confirmTextNo: "confirmTextNo" }, outputs: { onConfirmClosed: "onConfirmClosed" }, ngImport: i0__namespace, template: "<button\r\n type=\"button\"\r\n (click)=\"start()\"\r\n mat-stroked-button\r\n [disabled]=\"disabled\"\r\n>\r\n {{ buttonText }}\r\n</button>\r\n", styles: [""], components: [{ type: i2__namespace$3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }] });
|
|
2868
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ButtonWithConfirmDialogComponent, decorators: [{
|
|
2869
|
-
type: i0.Component,
|
|
2870
|
-
args: [{
|
|
2871
|
-
selector: 'kms-button-with-confirm-dialog',
|
|
2872
|
-
templateUrl: './button-with-confirm-dialog.component.html',
|
|
2873
|
-
styleUrls: ['./button-with-confirm-dialog.component.scss'],
|
|
2874
|
-
}]
|
|
2875
|
-
}], ctorParameters: function () { return [{ type: i1__namespace$4.MatDialog }]; }, propDecorators: { disabled: [{
|
|
2876
|
-
type: i0.Input
|
|
2877
|
-
}], buttonText: [{
|
|
2878
|
-
type: i0.Input
|
|
2879
|
-
}], confirmTitle: [{
|
|
2880
|
-
type: i0.Input
|
|
2881
|
-
}], confirmTextYes: [{
|
|
2882
|
-
type: i0.Input
|
|
2883
|
-
}], confirmTextNo: [{
|
|
2884
|
-
type: i0.Input
|
|
2885
|
-
}], onConfirmClosed: [{
|
|
2886
|
-
type: i0.Output
|
|
2887
|
-
}] } });
|
|
2888
|
-
|
|
2889
|
-
/**
|
|
2890
|
-
* Dropdown from data component {@link https://leaseplan-dev.rentoffice.de/styleguide#ui-elements}
|
|
2891
|
-
*/
|
|
2892
|
-
var DropdownFromDataComponent = /** @class */ (function (_super) {
|
|
2893
|
-
__extends(DropdownFromDataComponent, _super);
|
|
2894
|
-
function DropdownFromDataComponent(formBuilder, renderer) {
|
|
2895
|
-
var _this = _super.call(this, formBuilder, renderer) || this;
|
|
2896
|
-
_this.formBuilder = formBuilder;
|
|
2897
|
-
_this.renderer = renderer;
|
|
2898
|
-
// options for the dropdown have a null value at the beginning of the array
|
|
2899
|
-
_this.hasNullOption = false;
|
|
2900
|
-
_this.placeholder = '';
|
|
2901
|
-
_this.label = '';
|
|
2902
|
-
_this.required = false;
|
|
2903
|
-
_this.useEnumIndexAsValue = false;
|
|
2904
|
-
// multiple selection
|
|
2905
|
-
_this.multiple = false;
|
|
2906
|
-
_this.keys = [];
|
|
2907
|
-
_this.values = [];
|
|
2908
|
-
_this.Object = Object;
|
|
2909
|
-
return _this;
|
|
2910
|
-
}
|
|
2911
|
-
/**
|
|
2912
|
-
* Hook used to sync changes on set Label and Type
|
|
2913
|
-
* @param changes
|
|
2914
|
-
*/
|
|
2915
|
-
DropdownFromDataComponent.prototype.ngOnChanges = function (changes) {
|
|
2916
|
-
if (changes.optionsPlainArray) {
|
|
2917
|
-
this.keys = this.optionsPlainArray;
|
|
2918
|
-
this.values = this.optionsPlainArray;
|
|
2919
|
-
}
|
|
2920
|
-
this.setKeyValues();
|
|
2921
|
-
};
|
|
2922
|
-
DropdownFromDataComponent.prototype.ngOnInit = function () {
|
|
2923
|
-
var _this = this;
|
|
2924
|
-
this.form = this.formBuilder.group({
|
|
2925
|
-
dropdownData: [],
|
|
2926
|
-
});
|
|
2927
|
-
this.formInitialized = true;
|
|
2928
|
-
this.form.valueChanges.subscribe(function (value) {
|
|
2929
|
-
_this.internalValue = value.dropdownData;
|
|
2930
|
-
_this.onChange(value.dropdownData);
|
|
2931
|
-
});
|
|
2932
|
-
_super.prototype.ngOnInit.call(this);
|
|
2933
|
-
};
|
|
2934
|
-
/**
|
|
2935
|
-
* transofrms the data values to the correct format for be used by the template
|
|
2936
|
-
* @param value
|
|
2937
|
-
*/
|
|
2938
|
-
DropdownFromDataComponent.prototype.setKeyValues = function () {
|
|
2939
|
-
var _this = this;
|
|
2940
|
-
if (this.optionsObjArray && this.mapKey && this.mapValue) {
|
|
2941
|
-
this.keys = this.optionsObjArray.map(function (obj) { return obj["" + _this.mapKey]; });
|
|
2942
|
-
this.values = this.optionsObjArray.map(function (obj) { return obj["" + _this.mapValue]; });
|
|
2943
|
-
}
|
|
2944
|
-
else if (this.optionsObjArray && this.mapKey) {
|
|
2945
|
-
this.keys = this.optionsObjArray.map(function (obj) { return obj["" + _this.mapKey]; });
|
|
2946
|
-
this.values = this.optionsObjArray.map(function (obj) { return obj["" + _this.mapKey]; });
|
|
2947
|
-
}
|
|
2948
|
-
if (this.optionsEnum) {
|
|
2949
|
-
this.keys = enumValues.EnumValues.getNames(this.optionsEnum);
|
|
2950
|
-
if (this.optionsPlainArray) {
|
|
2951
|
-
this.values = this.optionsPlainArray;
|
|
2952
|
-
}
|
|
2953
|
-
else {
|
|
2954
|
-
var values = enumValues.EnumValues.getValues(this.optionsEnum);
|
|
2955
|
-
// var who defines if enum is componed just with keys or keyValues. E.g enum KeyEnum { VALUE1, VALUE2 } or enum KeyValueEnum { VALUE4 = 'V4', VALUE5 = 'V5' }
|
|
2956
|
-
var keyValueEnum = false;
|
|
2957
|
-
for (var i = 0; i < this.keys.length; i++) {
|
|
2958
|
-
if (i !== values[i]) {
|
|
2959
|
-
keyValueEnum = true;
|
|
2960
|
-
}
|
|
2961
|
-
}
|
|
2962
|
-
if (keyValueEnum || this.useEnumIndexAsValue) {
|
|
2963
|
-
this.values = values;
|
|
2964
|
-
}
|
|
2965
|
-
else {
|
|
2966
|
-
this.values = enumValues.EnumValues.getNames(this.optionsEnum);
|
|
2967
|
-
}
|
|
2968
|
-
}
|
|
2969
|
-
}
|
|
2970
|
-
if (this.hasNullOption === true)
|
|
2971
|
-
this.keys.unshift(null);
|
|
2972
|
-
if (this.hasNullOption === true)
|
|
2973
|
-
this.values.unshift(null);
|
|
2974
|
-
};
|
|
2975
|
-
/**
|
|
2976
|
-
* set the value of the dropdown based if translation is set
|
|
2977
|
-
* @param key
|
|
2978
|
-
*/
|
|
2979
|
-
DropdownFromDataComponent.prototype.setDisplayKey = function (key) {
|
|
2980
|
-
/*
|
|
2981
|
-
if (this.translation && key !== null) {
|
|
2982
|
-
if (this.translation.isPrefix) {
|
|
2983
|
-
return this.translationService.instant(this.translation.path + '.' + key);
|
|
2984
|
-
} else if (this.translation.useKey) {
|
|
2985
|
-
return this.translationService.instant(this.translation.path, { key: key });
|
|
2986
|
-
} else if (!this.translation?.useKey && !this.translation?.isPrefix) {
|
|
2987
|
-
return this.translationService.instant(this.translation.path);
|
|
2988
|
-
}
|
|
2989
|
-
} else if (key == null) {
|
|
2990
|
-
return '';
|
|
2991
|
-
} else if (!this.translation) {
|
|
2992
|
-
return key;
|
|
2993
|
-
}
|
|
2994
|
-
*/
|
|
2995
|
-
return key;
|
|
2996
|
-
};
|
|
2997
|
-
DropdownFromDataComponent.prototype.valueChanged = function (value) {
|
|
2998
|
-
this.form.patchValue({
|
|
2999
|
-
dropdownData: value,
|
|
3000
|
-
});
|
|
3001
|
-
this.onSelectItemEmitter.emit(value);
|
|
3002
|
-
};
|
|
3003
|
-
return DropdownFromDataComponent;
|
|
3004
|
-
}(FormControlParentComponent));
|
|
3005
|
-
DropdownFromDataComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DropdownFromDataComponent, deps: [{ token: i1__namespace$1.FormBuilder }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3006
|
-
DropdownFromDataComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DropdownFromDataComponent, selector: "kms-dropdown-from-data", inputs: { optionsEnum: "optionsEnum", optionsPlainArray: "optionsPlainArray", optionsObjArray: "optionsObjArray", mapKey: "mapKey", mapValue: "mapValue", hasNullOption: "hasNullOption", translation: "translation", placeholder: "placeholder", label: "label", required: "required", useEnumIndexAsValue: "useEnumIndexAsValue", multiple: "multiple" }, providers: [
|
|
3007
|
-
{
|
|
3008
|
-
provide: i1.NG_VALUE_ACCESSOR,
|
|
3009
|
-
useExisting: i0.forwardRef(function () { return DropdownFromDataComponent; }),
|
|
3010
|
-
multi: true,
|
|
3011
|
-
},
|
|
3012
|
-
], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace, template: "<form [formGroup]=\"form\">\r\n <mat-form-field [attr.required]=\"required\" [floatLabel]=\"placeholder ? 'always' : 'auto'\">\r\n <mat-label>{{ label }}</mat-label>\r\n <mat-select\r\n placeholder=\"{{ placeholder }}\"\r\n disableOptionCentering\r\n [(value)]=\"value\"\r\n (selectionChange)=\"valueChanged($event?.value)\"\r\n #child\r\n [disabled]=\"disabled\"\r\n [multiple]=\"multiple\"\r\n >\r\n <mat-option *ngFor=\"let key of keys; let i = index\" [value]=\"values[i]\">\r\n <span>{{ setDisplayKey(key) }}</span>\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n</form>\r\n", components: [{ type: i2__namespace$1.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i3__namespace.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { type: i4__namespace.MatOption, selector: "mat-option", exportAs: ["matOption"] }], directives: [{ type: i1__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2__namespace$1.MatLabel, selector: "mat-label" }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
3013
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DropdownFromDataComponent, decorators: [{
|
|
3014
|
-
type: i0.Component,
|
|
3015
|
-
args: [{
|
|
3016
|
-
selector: 'kms-dropdown-from-data',
|
|
3017
|
-
templateUrl: './dropdown-from-data.component.html',
|
|
3018
|
-
providers: [
|
|
3019
|
-
{
|
|
3020
|
-
provide: i1.NG_VALUE_ACCESSOR,
|
|
3021
|
-
useExisting: i0.forwardRef(function () { return DropdownFromDataComponent; }),
|
|
3022
|
-
multi: true,
|
|
3023
|
-
},
|
|
3024
|
-
],
|
|
3025
|
-
}]
|
|
3026
|
-
}], ctorParameters: function () { return [{ type: i1__namespace$1.FormBuilder }, { type: i0__namespace.Renderer2 }]; }, propDecorators: { optionsEnum: [{
|
|
3027
|
-
type: i0.Input
|
|
3028
|
-
}], optionsPlainArray: [{
|
|
3029
|
-
type: i0.Input
|
|
3030
|
-
}], optionsObjArray: [{
|
|
3031
|
-
type: i0.Input
|
|
3032
|
-
}], mapKey: [{
|
|
3033
|
-
type: i0.Input
|
|
3034
|
-
}], mapValue: [{
|
|
3035
|
-
type: i0.Input
|
|
3036
|
-
}], hasNullOption: [{
|
|
3037
|
-
type: i0.Input
|
|
3038
|
-
}], translation: [{
|
|
3039
|
-
type: i0.Input
|
|
3040
|
-
}], placeholder: [{
|
|
3041
|
-
type: i0.Input
|
|
3042
|
-
}], label: [{
|
|
3043
|
-
type: i0.Input
|
|
3044
|
-
}], required: [{
|
|
3045
|
-
type: i0.Input
|
|
3046
|
-
}], useEnumIndexAsValue: [{
|
|
3047
|
-
type: i0.Input
|
|
3048
|
-
}], multiple: [{
|
|
3049
|
-
type: i0.Input
|
|
3050
|
-
}] } });
|
|
3051
|
-
|
|
3052
|
-
/*!
|
|
3053
|
-
* @copyright FLYACTS GmbH 2019
|
|
3054
|
-
*/
|
|
3055
|
-
var SwipeDirective = /** @class */ (function () {
|
|
3056
|
-
function SwipeDirective() {
|
|
3057
|
-
/**
|
|
3058
|
-
* Output Event that is emitted during swipe process (mouse move or touch move event).
|
|
3059
|
-
* Can be used for calculation purposes.
|
|
3060
|
-
*/
|
|
3061
|
-
this.moveEvent = new i0.EventEmitter();
|
|
3062
|
-
/**
|
|
3063
|
-
* Output Event that is emitted when swipe process end (mouse up or touch end event).
|
|
3064
|
-
* Can be used for calculation purposes.
|
|
3065
|
-
*/
|
|
3066
|
-
this.releaseEvent = new i0.EventEmitter();
|
|
3067
|
-
this._startPosition = -1;
|
|
3068
|
-
this._lastPosX = 0;
|
|
3069
|
-
this._thresholdWasReached = false;
|
|
3070
|
-
this._timeStart = 0;
|
|
3071
|
-
}
|
|
3072
|
-
Object.defineProperty(SwipeDirective.prototype, "config", {
|
|
3073
|
-
/**
|
|
3074
|
-
* Needed config that defines swipe behaviour.
|
|
3075
|
-
* @param options SwipeOptions
|
|
3076
|
-
*/
|
|
3077
|
-
set: function (options) {
|
|
3078
|
-
if (options) {
|
|
3079
|
-
this._swipeOptions = options;
|
|
3080
|
-
}
|
|
3081
|
-
},
|
|
3082
|
-
enumerable: false,
|
|
3083
|
-
configurable: true
|
|
3084
|
-
});
|
|
3085
|
-
SwipeDirective.prototype.onMouseDown = function (event) {
|
|
3086
|
-
this.calculateStartPosition(event);
|
|
3087
|
-
};
|
|
3088
|
-
SwipeDirective.prototype.onMove = function (event) {
|
|
3089
|
-
this.move(event);
|
|
3090
|
-
};
|
|
3091
|
-
SwipeDirective.prototype.onRelease = function (event) {
|
|
3092
|
-
this.release(event);
|
|
3093
|
-
this.reset();
|
|
3094
|
-
};
|
|
3095
|
-
// ** PRIVATE ** //
|
|
3096
|
-
/**
|
|
3097
|
-
* Function checks if the current moving delta is inside the defined threshold.
|
|
3098
|
-
* Sets the flag to true if the threshold was reached once.
|
|
3099
|
-
*/
|
|
3100
|
-
SwipeDirective.prototype.checkThreshold = function (moveEvent) {
|
|
3101
|
-
var percentage = this._swipeOptions && this._swipeOptions.swipeThresholdType === '%';
|
|
3102
|
-
if (!percentage && this._swipeOptions && moveEvent.swipeDistanceTotal < this._swipeOptions.swipeThreshold) {
|
|
3103
|
-
return;
|
|
3104
|
-
}
|
|
3105
|
-
else if (percentage &&
|
|
3106
|
-
this._swipeOptions &&
|
|
3107
|
-
moveEvent.swipeDistancePercentage < this._swipeOptions.swipeThreshold / 100) {
|
|
3108
|
-
return;
|
|
3109
|
-
}
|
|
3110
|
-
else {
|
|
3111
|
-
this._thresholdWasReached = true;
|
|
3112
|
-
}
|
|
3113
|
-
};
|
|
3114
|
-
SwipeDirective.prototype.calculateStartPosition = function (event) {
|
|
3115
|
-
// detect if touch or click
|
|
3116
|
-
this._isMobile = event.type === 'touchstart';
|
|
3117
|
-
// save start position
|
|
3118
|
-
if (this._swipeOptions && this._swipeOptions.swipeLocalPosition) {
|
|
3119
|
-
if (this._isMobile) {
|
|
3120
|
-
var touch = event.touches[0];
|
|
3121
|
-
this._startPosition = this._swipeOptions.swipeLocalPosition ? touch.clientX : touch.pageX;
|
|
3122
|
-
}
|
|
3123
|
-
else {
|
|
3124
|
-
this._startPosition = this._swipeOptions.swipeLocalPosition ? event.offsetX : event.pageX;
|
|
3125
|
-
}
|
|
3126
|
-
}
|
|
3127
|
-
this._lastPosX = this._startPosition;
|
|
3128
|
-
this._timeStart = event.timeStamp;
|
|
3129
|
-
this._thresholdWasReached = false;
|
|
3130
|
-
};
|
|
3131
|
-
SwipeDirective.prototype.move = function (event) {
|
|
3132
|
-
// failsafe
|
|
3133
|
-
if (typeof event === 'undefined') {
|
|
3134
|
-
return;
|
|
3135
|
-
}
|
|
3136
|
-
var posX = 0;
|
|
3137
|
-
if (this._swipeOptions) {
|
|
3138
|
-
if (this._isMobile && event.type === 'touchmove') {
|
|
3139
|
-
var touch = event.touches[0];
|
|
3140
|
-
posX = this._swipeOptions.swipeLocalPosition ? touch.clientX : touch.pageX;
|
|
3141
|
-
}
|
|
3142
|
-
else {
|
|
3143
|
-
posX = this._swipeOptions.swipeLocalPosition ? event.offsetX : event.pageX;
|
|
3144
|
-
}
|
|
3145
|
-
}
|
|
3146
|
-
var offsetPerFrame = posX - this._lastPosX;
|
|
3147
|
-
var swipeDistanceTotal = Math.abs(posX - this._startPosition);
|
|
3148
|
-
var swipeDistancePercentage = Math.abs(swipeDistanceTotal / event.target.clientWidth);
|
|
3149
|
-
var timeDuration = Math.abs(event.timeStamp - this._timeStart);
|
|
3150
|
-
var direction;
|
|
3151
|
-
var speed = 1 - swipeDistanceTotal / timeDuration;
|
|
3152
|
-
speed = Math.max(0.1, speed);
|
|
3153
|
-
if (posX - this._startPosition > 0) {
|
|
3154
|
-
direction = 1; // a.k.a LTR
|
|
3155
|
-
}
|
|
3156
|
-
else {
|
|
3157
|
-
direction = -1; // a.k.a RTL
|
|
3158
|
-
}
|
|
3159
|
-
this._moveEventData = {
|
|
3160
|
-
position: posX,
|
|
3161
|
-
offsetPerFrame: offsetPerFrame,
|
|
3162
|
-
swipeDistanceTotal: swipeDistanceTotal,
|
|
3163
|
-
swipeDistancePercentage: swipeDistancePercentage,
|
|
3164
|
-
direction: direction,
|
|
3165
|
-
speed: speed,
|
|
3166
|
-
thresholdWasReached: this._thresholdWasReached,
|
|
3167
|
-
};
|
|
3168
|
-
this.checkThreshold(this._moveEventData);
|
|
3169
|
-
// update move delta
|
|
3170
|
-
this._lastPosX = posX;
|
|
3171
|
-
// inform
|
|
3172
|
-
this.moveEvent.emit(this._moveEventData);
|
|
3173
|
-
};
|
|
3174
|
-
SwipeDirective.prototype.release = function (event) {
|
|
3175
|
-
// case: just a click/touch
|
|
3176
|
-
if (!this._moveEventData) {
|
|
3177
|
-
return;
|
|
3178
|
-
}
|
|
3179
|
-
var releaseEventData = {
|
|
3180
|
-
thresholdWasReached: this._thresholdWasReached,
|
|
3181
|
-
direction: this._moveEventData.direction,
|
|
3182
|
-
speed: this._moveEventData.speed,
|
|
3183
|
-
easingType: this.getEasingCurve(this._moveEventData.speed),
|
|
3184
|
-
target: event.currentTarget,
|
|
3185
|
-
};
|
|
3186
|
-
// inform
|
|
3187
|
-
this.releaseEvent.emit(releaseEventData);
|
|
3188
|
-
};
|
|
3189
|
-
SwipeDirective.prototype.getEasingCurve = function (speed) {
|
|
3190
|
-
return speed > 0.5 ? 'ease-in' : 'ease-out';
|
|
3191
|
-
};
|
|
3192
|
-
SwipeDirective.prototype.reset = function () {
|
|
3193
|
-
this._startPosition = -1;
|
|
3194
|
-
this._thresholdWasReached = false;
|
|
3195
|
-
if (this._moveEventData) {
|
|
3196
|
-
this._moveEventData = undefined;
|
|
3197
|
-
}
|
|
3198
|
-
};
|
|
3199
|
-
return SwipeDirective;
|
|
3200
|
-
}());
|
|
3201
|
-
SwipeDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SwipeDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
3202
|
-
SwipeDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: SwipeDirective, selector: "[swipeDirective]", inputs: { config: ["swipeDirective", "config"] }, outputs: { moveEvent: "moveEvent", releaseEvent: "releaseEvent" }, host: { listeners: { "mousedown": "onMouseDown($event)", "touchstart": "onMouseDown($event)", "mousemove": "onMove($event)", "touchmove": "onMove($event)", "mouseup": "onRelease($event)", "mouseleave": "onRelease($event)", "touchend": "onRelease($event)" } }, ngImport: i0__namespace });
|
|
3203
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SwipeDirective, decorators: [{
|
|
3204
|
-
type: i0.Directive,
|
|
3205
|
-
args: [{
|
|
3206
|
-
selector: '[swipeDirective]',
|
|
3207
|
-
}]
|
|
3208
|
-
}], propDecorators: { moveEvent: [{
|
|
3209
|
-
type: i0.Output
|
|
3210
|
-
}], releaseEvent: [{
|
|
3211
|
-
type: i0.Output
|
|
3212
|
-
}], config: [{
|
|
3213
|
-
type: i0.Input,
|
|
3214
|
-
args: ['swipeDirective']
|
|
3215
|
-
}], onMouseDown: [{
|
|
3216
|
-
type: i0.HostListener,
|
|
3217
|
-
args: ['mousedown', ['$event']]
|
|
3218
|
-
}, {
|
|
3219
|
-
type: i0.HostListener,
|
|
3220
|
-
args: ['touchstart', ['$event']]
|
|
3221
|
-
}], onMove: [{
|
|
3222
|
-
type: i0.HostListener,
|
|
3223
|
-
args: ['mousemove', ['$event']]
|
|
3224
|
-
}, {
|
|
3225
|
-
type: i0.HostListener,
|
|
3226
|
-
args: ['touchmove', ['$event']]
|
|
3227
|
-
}], onRelease: [{
|
|
3228
|
-
type: i0.HostListener,
|
|
3229
|
-
args: ['mouseup', ['$event']]
|
|
3230
|
-
}, {
|
|
3231
|
-
type: i0.HostListener,
|
|
3232
|
-
args: ['mouseleave', ['$event']]
|
|
3233
|
-
}, {
|
|
3234
|
-
type: i0.HostListener,
|
|
3235
|
-
args: ['touchend', ['$event']]
|
|
3236
|
-
}] } });
|
|
3237
|
-
|
|
3238
|
-
/*!
|
|
3239
|
-
* @copyright FLYACTS GmbH 2019
|
|
3240
|
-
*/
|
|
3241
|
-
var ImageSliderComponent = /** @class */ (function () {
|
|
3242
|
-
function ImageSliderComponent(sanitizer) {
|
|
3243
|
-
this.sanitizer = sanitizer;
|
|
3244
|
-
this.editMode = false;
|
|
3245
|
-
this.orderChanged = new i0.EventEmitter();
|
|
3246
|
-
this.deleteImageEvent = new i0.EventEmitter();
|
|
3247
|
-
/**
|
|
3248
|
-
* Optional: Define Swipe behaviour configuration.
|
|
3249
|
-
* Default is 10% for the threshold definition until a swipe triggers next/previous slide.
|
|
3250
|
-
*/
|
|
3251
|
-
this.swipeConfig = {
|
|
3252
|
-
swipeThreshold: 5,
|
|
3253
|
-
swipeThresholdType: '%',
|
|
3254
|
-
swipeLocalPosition: true,
|
|
3255
|
-
};
|
|
3256
|
-
this.selectedSlide = 0;
|
|
3257
|
-
this.isLastClickedInSliderImage = false;
|
|
3258
|
-
this.config = {
|
|
3259
|
-
initialSlide: 0,
|
|
3260
|
-
slidesPerView: 3,
|
|
3261
|
-
navigation: {
|
|
3262
|
-
nextEl: '.swiper-button-next',
|
|
3263
|
-
prevEl: '.swiper-button-prev',
|
|
3264
|
-
},
|
|
3265
|
-
watchOverflow: true,
|
|
3266
|
-
autoHeight: true,
|
|
3267
|
-
allowTouchMove: false,
|
|
3268
|
-
spaceBetween: 30,
|
|
3269
|
-
on: {
|
|
3270
|
-
slideChange: function () {
|
|
3271
|
-
// do something
|
|
3272
|
-
},
|
|
3273
|
-
slideChangeTransitionEnd: function () {
|
|
3274
|
-
// do something
|
|
3275
|
-
},
|
|
3276
|
-
},
|
|
3277
|
-
};
|
|
3278
|
-
}
|
|
3279
|
-
ImageSliderComponent.prototype.ngOnInit = function () {
|
|
3280
|
-
if (this.slides) {
|
|
3281
|
-
// TODO use Pipe safeStyle
|
|
3282
|
-
this.selectedSlideImage = this.sanitizer.bypassSecurityTrustStyle('url(' + this.slides[0] + ')');
|
|
3283
|
-
}
|
|
3284
|
-
};
|
|
3285
|
-
// !TODO
|
|
3286
|
-
ImageSliderComponent.prototype.onKeydownHandler = function (event) {
|
|
3287
|
-
if (event.key === 'ArrowRight') {
|
|
3288
|
-
this.nextSlide();
|
|
3289
|
-
}
|
|
3290
|
-
if (event.key === 'ArrowLeft') {
|
|
3291
|
-
this.previousSlide();
|
|
3292
|
-
}
|
|
3293
|
-
};
|
|
3294
|
-
/**
|
|
3295
|
-
* Slide follows the finger or mouse according to it´s move delta.
|
|
3296
|
-
* @param event SwipeMoveEvent
|
|
3297
|
-
*/
|
|
3298
|
-
ImageSliderComponent.prototype.handleMoveEvent = function (event) {
|
|
3299
|
-
// certain move threshold needs to be reached
|
|
3300
|
-
if (!event.thresholdWasReached) {
|
|
3301
|
-
return;
|
|
3302
|
-
}
|
|
3303
|
-
this.config.direction = event.direction === 1 ? 'horizontal' : 'vertical';
|
|
3304
|
-
};
|
|
3305
|
-
/**
|
|
3306
|
-
* Mouse up or slide container was left.
|
|
3307
|
-
* @param event SwipeReleaseEvent
|
|
3308
|
-
*/
|
|
3309
|
-
ImageSliderComponent.prototype.handleReleaseEvent = function (event) {
|
|
3310
|
-
if (!event.thresholdWasReached) {
|
|
3311
|
-
return;
|
|
3312
|
-
}
|
|
3313
|
-
// Just do if user clicked to slide on image and not on arrow or other element
|
|
3314
|
-
if (!this.isLastClickedInSliderImage) {
|
|
3315
|
-
return;
|
|
3316
|
-
}
|
|
3317
|
-
if (event.direction === 1) {
|
|
3318
|
-
this.previousSlide();
|
|
3319
|
-
}
|
|
3320
|
-
else {
|
|
3321
|
-
this.nextSlide();
|
|
3322
|
-
}
|
|
3323
|
-
};
|
|
3324
|
-
ImageSliderComponent.prototype.lastClicked = function () {
|
|
3325
|
-
this.isLastClickedInSliderImage = true;
|
|
3326
|
-
};
|
|
3327
|
-
ImageSliderComponent.prototype.noLastClicked = function () {
|
|
3328
|
-
this.isLastClickedInSliderImage = false;
|
|
3329
|
-
};
|
|
3330
|
-
ImageSliderComponent.prototype.scrollLeft = function () {
|
|
3331
|
-
this.previousSlide();
|
|
3332
|
-
};
|
|
3333
|
-
ImageSliderComponent.prototype.scrollRight = function () {
|
|
3334
|
-
this.nextSlide();
|
|
3335
|
-
};
|
|
3336
|
-
ImageSliderComponent.prototype.nextSlide = function () {
|
|
3337
|
-
if (this.slides && this.selectedSlide < this.slides.length - 1) {
|
|
3338
|
-
if (this.usefulSwiper) {
|
|
3339
|
-
this.usefulSwiper.swiper.slideNext();
|
|
3340
|
-
}
|
|
3341
|
-
this.openSlide(this.selectedSlide + 1);
|
|
3342
|
-
}
|
|
3343
|
-
this.isLastClickedInSliderImage = false;
|
|
3344
|
-
};
|
|
3345
|
-
ImageSliderComponent.prototype.previousSlide = function () {
|
|
3346
|
-
if (this.selectedSlide > 0) {
|
|
3347
|
-
if (this.usefulSwiper) {
|
|
3348
|
-
this.usefulSwiper.swiper.slidePrev();
|
|
3349
|
-
}
|
|
3350
|
-
this.openSlide(this.selectedSlide - 1);
|
|
3351
|
-
}
|
|
3352
|
-
this.isLastClickedInSliderImage = false;
|
|
3353
|
-
};
|
|
3354
|
-
ImageSliderComponent.prototype.slideTo = function (index) {
|
|
3355
|
-
if (this.usefulSwiper) {
|
|
3356
|
-
this.usefulSwiper.swiper.slideTo(index);
|
|
3357
|
-
}
|
|
3358
|
-
};
|
|
3359
|
-
ImageSliderComponent.prototype.openSlide = function (number) {
|
|
3360
|
-
if (this.slides && number < this.slides.length && number >= 0) {
|
|
3361
|
-
this.selectedSlide = number;
|
|
3362
|
-
// TODO use Pipe safeStyle
|
|
3363
|
-
this.selectedSlideImage = this.sanitizer.bypassSecurityTrustStyle('url(' + this.slides[number] || ')');
|
|
3364
|
-
}
|
|
3365
|
-
};
|
|
3366
|
-
ImageSliderComponent.prototype.ngOnChanges = function (_changes) {
|
|
3367
|
-
if (_changes.slides) {
|
|
3368
|
-
if (this.slides) {
|
|
3369
|
-
// TODO use Pipe safeStyle
|
|
3370
|
-
this.selectedSlideImage = this.sanitizer.bypassSecurityTrustStyle('url(' + this.slides[0] + ')');
|
|
3371
|
-
}
|
|
3372
|
-
}
|
|
3373
|
-
};
|
|
3374
|
-
/**
|
|
3375
|
-
* Re-order slides and notify parent component
|
|
3376
|
-
*/
|
|
3377
|
-
ImageSliderComponent.prototype.drop = function (event) {
|
|
3378
|
-
if (this.slides && this.imagesTOSave) {
|
|
3379
|
-
i6$1.moveItemInArray(this.slides, event.previousIndex, event.currentIndex);
|
|
3380
|
-
i6$1.moveItemInArray(this.imagesTOSave, event.previousIndex, event.currentIndex);
|
|
3381
|
-
this.orderChanged.emit(this.imagesTOSave);
|
|
3382
|
-
}
|
|
3383
|
-
};
|
|
3384
|
-
/**
|
|
3385
|
-
* Send image index to parent to perform delete
|
|
3386
|
-
*/
|
|
3387
|
-
ImageSliderComponent.prototype.deleteImage = function (index) {
|
|
3388
|
-
this.deleteImageEvent.emit(index);
|
|
3389
|
-
};
|
|
3390
|
-
return ImageSliderComponent;
|
|
3391
|
-
}());
|
|
3392
|
-
ImageSliderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ImageSliderComponent, deps: [{ token: i1__namespace$2.DomSanitizer }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3393
|
-
ImageSliderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ImageSliderComponent, selector: "kms-image-slider", inputs: { slides: "slides", editMode: "editMode", imagesTOSave: "imagesTOSave", swipeConfig: "swipeConfig" }, outputs: { orderChanged: "orderChanged", deleteImageEvent: "deleteImageEvent" }, host: { listeners: { "document:keydown": "onKeydownHandler($event)" } }, viewQueries: [{ propertyName: "usefulSwiper", first: true, predicate: ["usefulSwiper"], descendants: true }], usesOnChanges: true, ngImport: i0__namespace, template: "<div class=\"all-wrapper\">\r\n <!--(swiperight)=\"previousSlide()\" (swipeleft)=\"nextSlide()\"-->\r\n <div \r\n class=\"swiper-bigImage\"\r\n [style.backgroundImage]=\"selectedSlideImage\"\r\n [swipeDirective]=\"swipeConfig\"\r\n (moveEvent)=\"handleMoveEvent($event)\"\r\n (releaseEvent)=\"handleReleaseEvent($event)\"\r\n (mouseup)=\"lastClicked()\"\r\n (mouseout)=\"noLastClicked()\" >\r\n </div>\r\n\r\n <ng-content select=\"[description]\"></ng-content>\r\n\r\n <div class=\"swiper-holder\">\r\n <!--\r\n (mouseWheelUp)=\"scrollLeft($event)\"\r\n (mouseWheelDown)=\"scrollRight($event)\"\r\n -->\r\n\r\n <swiper [config]=\"config\" #usefulSwiper>\r\n <div class=\"swiper-wrapper\" \r\n cdkDropList (cdkDropListDropped)=\"drop($event)\" \r\n cdkDropListOrientation=\"horizontal\"> \r\n <div class=\"swiper-slide\" \r\n *ngFor=\"let slide of slides; let index = index\" \r\n cdkDrag [cdkDragDisabled]=\"!editMode\">\r\n <button mat-menu-item *ngIf=\"editMode\" (click)=\"deleteImage(index)\"> \r\n <kms-icon icon=\"trash\"></kms-icon>\r\n </button>\r\n <div class=\"img\" (click)=\"openSlide(index)\"\r\n [style.backgroundImage]=\"sanitizer.bypassSecurityTrustStyle('url(' + slide + ')')\"\r\n [ngClass]=\"{'active': index === selectedSlide}\">\r\n </div>\r\n \r\n <div class=\"default-image\">{{\"common.defaultImage\" | translate}} </div>\r\n </div>\r\n </div>\r\n </swiper>\r\n\r\n <div class=\"swiper-button-next\" *ngIf=\"slides?.length > 3\"></div>\r\n <div class=\"swiper-button-prev\" *ngIf=\"slides?.length > 3\"></div>\r\n\r\n <div class=\"swiper-button-next2\" *ngIf=\"slides?.length > 1\" (click)=\"nextSlide()\">\r\n <kms-icon icon=\"chevron-right\" [iconClass]=\"{'color-disabled': selectedSlide == slides?.length - 1, 'color-primary': true}\"></kms-icon>\r\n </div>\r\n <div class=\"swiper-button-prev2\" *ngIf=\"slides?.length > 1\" (click)=\"previousSlide()\">\r\n <kms-icon icon=\"chevron-left\" [iconClass]=\"{'color-disabled': selectedSlide == 0, 'color-primary': true}\"></kms-icon>\r\n </div>\r\n\r\n </div>\r\n\r\n <ng-content></ng-content>\r\n</div>", styles: [""], components: [{ type: i2__namespace$6.SwiperComponent, selector: "swiper", inputs: ["initialize", "config"] }, { type: i3__namespace$1.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { type: IconComponent, selector: "kms-icon", inputs: ["icon", "iconClass", "iconStyle", "iconSize", "size", "dontUseSprite"] }], directives: [{ type: SwipeDirective, selector: "[swipeDirective]", inputs: ["swipeDirective"], outputs: ["moveEvent", "releaseEvent"] }, { type: i6__namespace$1.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "id", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListAutoScrollDisabled", "cdkDropListOrientation", "cdkDropListLockAxis", "cdkDropListData", "cdkDropListAutoScrollStep"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6__namespace$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragDisabled", "cdkDragStartDelay", "cdkDragLockAxis", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragBoundary", "cdkDragRootElement", "cdkDragPreviewContainer", "cdkDragData", "cdkDragFreeDragPosition"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "translate": i6__namespace.TranslatePipe } });
|
|
3394
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ImageSliderComponent, decorators: [{
|
|
3395
|
-
type: i0.Component,
|
|
3396
|
-
args: [{
|
|
3397
|
-
selector: 'kms-image-slider',
|
|
3398
|
-
templateUrl: './image-slider.component.html',
|
|
3399
|
-
styleUrls: ['./image-slider.component.scss'],
|
|
3400
|
-
}]
|
|
3401
|
-
}], ctorParameters: function () { return [{ type: i1__namespace$2.DomSanitizer }]; }, propDecorators: { slides: [{
|
|
3402
|
-
type: i0.Input
|
|
3403
|
-
}], editMode: [{
|
|
3404
|
-
type: i0.Input
|
|
3405
|
-
}], imagesTOSave: [{
|
|
3406
|
-
type: i0.Input
|
|
3407
|
-
}], orderChanged: [{
|
|
3408
|
-
type: i0.Output
|
|
3409
|
-
}], deleteImageEvent: [{
|
|
3410
|
-
type: i0.Output
|
|
3411
|
-
}], swipeConfig: [{
|
|
3412
|
-
type: i0.Input
|
|
3413
|
-
}], usefulSwiper: [{
|
|
3414
|
-
type: i0.ViewChild,
|
|
3415
|
-
args: ['usefulSwiper']
|
|
3416
|
-
}], onKeydownHandler: [{
|
|
3417
|
-
type: i0.HostListener,
|
|
3418
|
-
args: ['document:keydown', ['$event']]
|
|
3419
|
-
}] } });
|
|
3420
|
-
|
|
3421
|
-
/*!
|
|
3422
|
-
* @copyright FLYACTS GmbH 2019
|
|
3423
|
-
*/
|
|
3424
|
-
var MouseWheelDirective = /** @class */ (function () {
|
|
3425
|
-
function MouseWheelDirective() {
|
|
3426
|
-
this.mouseWheelUp = new i0.EventEmitter();
|
|
3427
|
-
this.mouseWheelDown = new i0.EventEmitter();
|
|
3428
|
-
}
|
|
3429
|
-
MouseWheelDirective.prototype.onMouseWheelChrome = function (event) {
|
|
3430
|
-
this.mouseWheelFunc(event);
|
|
3431
|
-
};
|
|
3432
|
-
MouseWheelDirective.prototype.onMouseWheelFirefox = function (event) {
|
|
3433
|
-
this.mouseWheelFunc(event);
|
|
3434
|
-
};
|
|
3435
|
-
MouseWheelDirective.prototype.onMouseWheelIE = function (event) {
|
|
3436
|
-
this.mouseWheelFunc(event);
|
|
3437
|
-
};
|
|
3438
|
-
MouseWheelDirective.prototype.mouseWheelFunc = function (event) {
|
|
3439
|
-
event = window.event || event; // old IE support
|
|
3440
|
-
var delta = Math.max(-1, Math.min(1, (event.wheelDelta || -event.detail)));
|
|
3441
|
-
if (delta > 0) {
|
|
3442
|
-
this.mouseWheelUp.emit(event);
|
|
3443
|
-
}
|
|
3444
|
-
else if (delta < 0) {
|
|
3445
|
-
this.mouseWheelDown.emit(event);
|
|
3446
|
-
}
|
|
3447
|
-
// for IE
|
|
3448
|
-
event.returnValue = false;
|
|
3449
|
-
// for Chrome and Firefox
|
|
3450
|
-
if (event.preventDefault) {
|
|
3451
|
-
event.preventDefault();
|
|
3452
|
-
}
|
|
3453
|
-
};
|
|
3454
|
-
return MouseWheelDirective;
|
|
3455
|
-
}());
|
|
3456
|
-
MouseWheelDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MouseWheelDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
3457
|
-
MouseWheelDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: MouseWheelDirective, selector: "[mouseWheel]", outputs: { mouseWheelUp: "mouseWheelUp", mouseWheelDown: "mouseWheelDown" }, host: { listeners: { "mousewheel": "onMouseWheelChrome($event)", "DOMMouseScroll": "onMouseWheelFirefox($event)", "onmousewheel": "onMouseWheelIE($event)" } }, ngImport: i0__namespace });
|
|
3458
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MouseWheelDirective, decorators: [{
|
|
3459
|
-
type: i0.Directive,
|
|
3460
|
-
args: [{ selector: '[mouseWheel]' }]
|
|
3461
|
-
}], propDecorators: { mouseWheelUp: [{
|
|
3462
|
-
type: i0.Output
|
|
3463
|
-
}], mouseWheelDown: [{
|
|
3464
|
-
type: i0.Output
|
|
3465
|
-
}], onMouseWheelChrome: [{
|
|
3466
|
-
type: i0.HostListener,
|
|
3467
|
-
args: ['mousewheel', ['$event']]
|
|
3468
|
-
}], onMouseWheelFirefox: [{
|
|
3469
|
-
type: i0.HostListener,
|
|
3470
|
-
args: ['DOMMouseScroll', ['$event']]
|
|
3471
|
-
}], onMouseWheelIE: [{
|
|
3472
|
-
type: i0.HostListener,
|
|
3473
|
-
args: ['onmousewheel', ['$event']]
|
|
3474
|
-
}] } });
|
|
3475
|
-
|
|
3476
|
-
/**
|
|
3477
|
-
* @copyright KMS GmbH
|
|
3478
|
-
*/
|
|
3479
|
-
var DirectivesModule = /** @class */ (function () {
|
|
3480
|
-
function DirectivesModule() {
|
|
3481
|
-
}
|
|
3482
|
-
return DirectivesModule;
|
|
3483
|
-
}());
|
|
3484
|
-
DirectivesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DirectivesModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
3485
|
-
DirectivesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DirectivesModule, declarations: [SwipeDirective,
|
|
3486
|
-
MouseWheelDirective,
|
|
3487
|
-
GetMaxHeightDirective,
|
|
3488
|
-
TooltipDirective,
|
|
3489
|
-
SizeDirective], imports: [i2.CommonModule], exports: [SwipeDirective,
|
|
3490
|
-
MouseWheelDirective,
|
|
3491
|
-
GetMaxHeightDirective,
|
|
3492
|
-
TooltipDirective,
|
|
3493
|
-
SizeDirective] });
|
|
3494
|
-
DirectivesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DirectivesModule, imports: [[i2.CommonModule]] });
|
|
3495
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DirectivesModule, decorators: [{
|
|
3496
|
-
type: i0.NgModule,
|
|
3497
|
-
args: [{
|
|
3498
|
-
declarations: [
|
|
3499
|
-
SwipeDirective,
|
|
3500
|
-
MouseWheelDirective,
|
|
3501
|
-
GetMaxHeightDirective,
|
|
3502
|
-
TooltipDirective,
|
|
3503
|
-
SizeDirective,
|
|
3504
|
-
],
|
|
3505
|
-
imports: [i2.CommonModule],
|
|
3506
|
-
exports: [
|
|
3507
|
-
SwipeDirective,
|
|
3508
|
-
MouseWheelDirective,
|
|
3509
|
-
GetMaxHeightDirective,
|
|
3510
|
-
TooltipDirective,
|
|
3511
|
-
SizeDirective,
|
|
3512
|
-
],
|
|
3513
|
-
}]
|
|
3514
|
-
}] });
|
|
3515
|
-
|
|
3516
|
-
var KmsUiPresentationalModule = /** @class */ (function () {
|
|
3517
|
-
function KmsUiPresentationalModule() {
|
|
3518
|
-
}
|
|
3519
|
-
return KmsUiPresentationalModule;
|
|
3520
|
-
}());
|
|
3521
|
-
KmsUiPresentationalModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KmsUiPresentationalModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
3522
|
-
KmsUiPresentationalModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KmsUiPresentationalModule, declarations: [ActionsParentComponent,
|
|
3523
|
-
BackToTopComponent,
|
|
3524
|
-
ButtonWithConfirmDialogComponent,
|
|
3525
|
-
CheckboxComponent,
|
|
3526
|
-
ColorInputComponent,
|
|
3527
|
-
DropdownFromDataComponent,
|
|
3528
|
-
EnumRadiogroupComponent,
|
|
3529
|
-
EnumRadiogroupComponent,
|
|
3530
|
-
FileInputComponent,
|
|
3531
|
-
FlyoutComponent,
|
|
3532
|
-
GenericDialogComponent,
|
|
3533
|
-
IconComponent,
|
|
3534
|
-
ImageSliderComponent,
|
|
3535
|
-
KMSAccordionItemComponent,
|
|
3536
|
-
KmsUiPresentationalComponent,
|
|
3537
|
-
LoaderComponent,
|
|
3538
|
-
MapComponent,
|
|
3539
|
-
RadioButtonComponent,
|
|
3540
|
-
SalutationDropdownComponent,
|
|
3541
|
-
SalutationRadiogroupComponent,
|
|
3542
|
-
TimeInputComponent,
|
|
3543
|
-
TooltipComponent,
|
|
3544
|
-
TooltipIconComponent,
|
|
3545
|
-
YesNoRadiogroupComponent], imports: [i2.CommonModule,
|
|
3546
|
-
i6$1.DragDropModule,
|
|
3547
|
-
i1$1.MatCheckboxModule,
|
|
3548
|
-
i2$3.MatButtonModule,
|
|
3549
|
-
i2$2.MatRadioModule,
|
|
3550
|
-
i1$4.MatDialogModule,
|
|
3551
|
-
i1.FormsModule,
|
|
3552
|
-
i1.ReactiveFormsModule,
|
|
3553
|
-
i2$1.MatFormFieldModule,
|
|
3554
|
-
i5.MatInputModule,
|
|
3555
|
-
i3$1.MatMenuModule,
|
|
3556
|
-
CustomPipesModule,
|
|
3557
|
-
i2$5.GoogleMapsModule,
|
|
3558
|
-
i2$4.MatExpansionModule,
|
|
3559
|
-
i3.MatSelectModule,
|
|
3560
|
-
i1$3.MatProgressSpinnerModule,
|
|
3561
|
-
DirectivesModule,
|
|
3562
|
-
i6.TranslateModule,
|
|
3563
|
-
i2$6.NgxUsefulSwiperModule], exports: [ActionsParentComponent,
|
|
3564
|
-
BackToTopComponent,
|
|
3565
|
-
ButtonWithConfirmDialogComponent,
|
|
3566
|
-
CheckboxComponent,
|
|
3567
|
-
ColorInputComponent,
|
|
3568
|
-
DropdownFromDataComponent,
|
|
3569
|
-
EnumRadiogroupComponent,
|
|
3570
|
-
EnumRadiogroupComponent,
|
|
3571
|
-
FileInputComponent,
|
|
3572
|
-
FlyoutComponent,
|
|
3573
|
-
GenericDialogComponent,
|
|
3574
|
-
IconComponent,
|
|
3575
|
-
ImageSliderComponent,
|
|
3576
|
-
KMSAccordionItemComponent,
|
|
3577
|
-
KmsUiPresentationalComponent,
|
|
3578
|
-
LoaderComponent,
|
|
3579
|
-
MapComponent,
|
|
3580
|
-
RadioButtonComponent,
|
|
3581
|
-
SalutationDropdownComponent,
|
|
3582
|
-
SalutationRadiogroupComponent,
|
|
3583
|
-
TimeInputComponent,
|
|
3584
|
-
TooltipComponent,
|
|
3585
|
-
TooltipIconComponent,
|
|
3586
|
-
YesNoRadiogroupComponent] });
|
|
3587
|
-
KmsUiPresentationalModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KmsUiPresentationalModule, providers: [
|
|
3588
|
-
ViewportService
|
|
3589
|
-
], imports: [[
|
|
3590
|
-
i2.CommonModule,
|
|
3591
|
-
i6$1.DragDropModule,
|
|
3592
|
-
i1$1.MatCheckboxModule,
|
|
3593
|
-
i2$3.MatButtonModule,
|
|
3594
|
-
i2$2.MatRadioModule,
|
|
3595
|
-
i1$4.MatDialogModule,
|
|
3596
|
-
i1.FormsModule,
|
|
3597
|
-
i1.ReactiveFormsModule,
|
|
3598
|
-
i2$1.MatFormFieldModule,
|
|
3599
|
-
i5.MatInputModule,
|
|
3600
|
-
i3$1.MatMenuModule,
|
|
3601
|
-
CustomPipesModule,
|
|
3602
|
-
i2$5.GoogleMapsModule,
|
|
3603
|
-
i2$4.MatExpansionModule,
|
|
3604
|
-
i3.MatSelectModule,
|
|
3605
|
-
i1$3.MatProgressSpinnerModule,
|
|
3606
|
-
DirectivesModule,
|
|
3607
|
-
i6.TranslateModule,
|
|
3608
|
-
i2$6.NgxUsefulSwiperModule,
|
|
3609
|
-
]] });
|
|
3610
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KmsUiPresentationalModule, decorators: [{
|
|
3611
|
-
type: i0.NgModule,
|
|
3612
|
-
args: [{
|
|
3613
|
-
declarations: [
|
|
3614
|
-
ActionsParentComponent,
|
|
3615
|
-
BackToTopComponent,
|
|
3616
|
-
ButtonWithConfirmDialogComponent,
|
|
3617
|
-
CheckboxComponent,
|
|
3618
|
-
ColorInputComponent,
|
|
3619
|
-
DropdownFromDataComponent,
|
|
3620
|
-
EnumRadiogroupComponent,
|
|
3621
|
-
EnumRadiogroupComponent,
|
|
3622
|
-
FileInputComponent,
|
|
3623
|
-
FlyoutComponent,
|
|
3624
|
-
GenericDialogComponent,
|
|
3625
|
-
IconComponent,
|
|
3626
|
-
ImageSliderComponent,
|
|
3627
|
-
KMSAccordionItemComponent,
|
|
3628
|
-
KmsUiPresentationalComponent,
|
|
3629
|
-
LoaderComponent,
|
|
3630
|
-
MapComponent,
|
|
3631
|
-
RadioButtonComponent,
|
|
3632
|
-
SalutationDropdownComponent,
|
|
3633
|
-
SalutationRadiogroupComponent,
|
|
3634
|
-
TimeInputComponent,
|
|
3635
|
-
TooltipComponent,
|
|
3636
|
-
TooltipIconComponent,
|
|
3637
|
-
YesNoRadiogroupComponent,
|
|
3638
|
-
],
|
|
3639
|
-
imports: [
|
|
3640
|
-
i2.CommonModule,
|
|
3641
|
-
i6$1.DragDropModule,
|
|
3642
|
-
i1$1.MatCheckboxModule,
|
|
3643
|
-
i2$3.MatButtonModule,
|
|
3644
|
-
i2$2.MatRadioModule,
|
|
3645
|
-
i1$4.MatDialogModule,
|
|
3646
|
-
i1.FormsModule,
|
|
3647
|
-
i1.ReactiveFormsModule,
|
|
3648
|
-
i2$1.MatFormFieldModule,
|
|
3649
|
-
i5.MatInputModule,
|
|
3650
|
-
i3$1.MatMenuModule,
|
|
3651
|
-
CustomPipesModule,
|
|
3652
|
-
i2$5.GoogleMapsModule,
|
|
3653
|
-
i2$4.MatExpansionModule,
|
|
3654
|
-
i3.MatSelectModule,
|
|
3655
|
-
i1$3.MatProgressSpinnerModule,
|
|
3656
|
-
DirectivesModule,
|
|
3657
|
-
i6.TranslateModule,
|
|
3658
|
-
i2$6.NgxUsefulSwiperModule,
|
|
3659
|
-
],
|
|
3660
|
-
exports: [
|
|
3661
|
-
ActionsParentComponent,
|
|
3662
|
-
BackToTopComponent,
|
|
3663
|
-
ButtonWithConfirmDialogComponent,
|
|
3664
|
-
CheckboxComponent,
|
|
3665
|
-
ColorInputComponent,
|
|
3666
|
-
DropdownFromDataComponent,
|
|
3667
|
-
EnumRadiogroupComponent,
|
|
3668
|
-
EnumRadiogroupComponent,
|
|
3669
|
-
FileInputComponent,
|
|
3670
|
-
FlyoutComponent,
|
|
3671
|
-
GenericDialogComponent,
|
|
3672
|
-
IconComponent,
|
|
3673
|
-
ImageSliderComponent,
|
|
3674
|
-
KMSAccordionItemComponent,
|
|
3675
|
-
KmsUiPresentationalComponent,
|
|
3676
|
-
LoaderComponent,
|
|
3677
|
-
MapComponent,
|
|
3678
|
-
RadioButtonComponent,
|
|
3679
|
-
SalutationDropdownComponent,
|
|
3680
|
-
SalutationRadiogroupComponent,
|
|
3681
|
-
TimeInputComponent,
|
|
3682
|
-
TooltipComponent,
|
|
3683
|
-
TooltipIconComponent,
|
|
3684
|
-
YesNoRadiogroupComponent,
|
|
3685
|
-
],
|
|
3686
|
-
providers: [
|
|
3687
|
-
ViewportService
|
|
3688
|
-
]
|
|
3689
|
-
}]
|
|
3690
|
-
}] });
|
|
3691
|
-
|
|
3692
|
-
/*
|
|
3693
|
-
* Public API Surface of kms-ngx-ui-presentational
|
|
3694
|
-
*/
|
|
3695
|
-
|
|
3696
|
-
/**
|
|
3697
|
-
* Generated bundle index. Do not edit.
|
|
3698
|
-
*/
|
|
3699
|
-
|
|
3700
|
-
exports.ActionsParentComponent = ActionsParentComponent;
|
|
3701
|
-
exports.BackToTopComponent = BackToTopComponent;
|
|
3702
|
-
exports.ButtonWithConfirmDialogComponent = ButtonWithConfirmDialogComponent;
|
|
3703
|
-
exports.CheckboxComponent = CheckboxComponent;
|
|
3704
|
-
exports.ColorInputComponent = ColorInputComponent;
|
|
3705
|
-
exports.CustomPipesModule = CustomPipesModule;
|
|
3706
|
-
exports.DecodeUriPipe = DecodeUriPipe;
|
|
3707
|
-
exports.DirectivesModule = DirectivesModule;
|
|
3708
|
-
exports.DropdownFromDataComponent = DropdownFromDataComponent;
|
|
3709
|
-
exports.EncodeUriPipe = EncodeUriPipe;
|
|
3710
|
-
exports.EnumRadiogroupComponent = EnumRadiogroupComponent;
|
|
3711
|
-
exports.FileInputComponent = FileInputComponent;
|
|
3712
|
-
exports.FlyoutComponent = FlyoutComponent;
|
|
3713
|
-
exports.FormParentComponent = FormParentComponent;
|
|
3714
|
-
exports.GenericDialogComponent = GenericDialogComponent;
|
|
3715
|
-
exports.GetMaxHeightDirective = GetMaxHeightDirective;
|
|
3716
|
-
exports.IconComponent = IconComponent;
|
|
3717
|
-
exports.ImageSliderComponent = ImageSliderComponent;
|
|
3718
|
-
exports.IntegerCurrency = IntegerCurrency;
|
|
3719
|
-
exports.KMSAccordionItemComponent = KMSAccordionItemComponent;
|
|
3720
|
-
exports.KmsUiPresentationalComponent = KmsUiPresentationalComponent;
|
|
3721
|
-
exports.KmsUiPresentationalModule = KmsUiPresentationalModule;
|
|
3722
|
-
exports.KmsUiPresentationalService = KmsUiPresentationalService;
|
|
3723
|
-
exports.LoaderComponent = LoaderComponent;
|
|
3724
|
-
exports.MapComponent = MapComponent;
|
|
3725
|
-
exports.Marker = Marker;
|
|
3726
|
-
exports.MarkerLabel = MarkerLabel;
|
|
3727
|
-
exports.MarkerOptions = MarkerOptions;
|
|
3728
|
-
exports.MouseWheelDirective = MouseWheelDirective;
|
|
3729
|
-
exports.RadioButtonComponent = RadioButtonComponent;
|
|
3730
|
-
exports.SafeHtmlPipe = SafeHtmlPipe;
|
|
3731
|
-
exports.SafeResourceUrlPipe = SafeResourceUrlPipe;
|
|
3732
|
-
exports.SafeStylePipe = SafeStylePipe;
|
|
3733
|
-
exports.SafeUrlPipe = SafeUrlPipe;
|
|
3734
|
-
exports.SalutationDropdownComponent = SalutationDropdownComponent;
|
|
3735
|
-
exports.SalutationRadiogroupComponent = SalutationRadiogroupComponent;
|
|
3736
|
-
exports.SizeDirective = SizeDirective;
|
|
3737
|
-
exports.SwipeDirective = SwipeDirective;
|
|
3738
|
-
exports.TimeInputComponent = TimeInputComponent;
|
|
3739
|
-
exports.ToNumberPipe = ToNumberPipe;
|
|
3740
|
-
exports.TooltipComponent = TooltipComponent;
|
|
3741
|
-
exports.TooltipDirective = TooltipDirective;
|
|
3742
|
-
exports.TooltipIconComponent = TooltipIconComponent;
|
|
3743
|
-
exports.TrimPipe = TrimPipe;
|
|
3744
|
-
exports.TypeofPipe = TypeofPipe;
|
|
3745
|
-
exports.ViewportService = ViewportService;
|
|
3746
|
-
exports.YesNoRadiogroupComponent = YesNoRadiogroupComponent;
|
|
3747
|
-
|
|
3748
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3749
|
-
|
|
3750
|
-
}));
|
|
3751
|
-
//# sourceMappingURL=kms-ngx-ui-presentational.umd.js.map
|