@kms-ngx-ui/presentational 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/README.md +24 -0
  2. package/bundles/kms-ngx-ui-presentational.umd.js +2441 -0
  3. package/bundles/kms-ngx-ui-presentational.umd.js.map +1 -0
  4. package/bundles/kms-ngx-ui-presentational.umd.min.js +38 -0
  5. package/bundles/kms-ngx-ui-presentational.umd.min.js.map +1 -0
  6. package/esm2015/kms-ngx-ui-presentational.js +37 -0
  7. package/esm2015/lib/kms-ngx-ui-presentational.component.js +18 -0
  8. package/esm2015/lib/kms-ngx-ui-presentational.module.js +98 -0
  9. package/esm2015/lib/kms-ngx-ui-presentational.service.js +13 -0
  10. package/esm2015/lib/models/address.model.js +6 -0
  11. package/esm2015/lib/models/iconSize.enum.js +17 -0
  12. package/esm2015/lib/models/index.js +5 -0
  13. package/esm2015/lib/models/is-value.function.js +17 -0
  14. package/esm2015/lib/models/salutation.enum.js +8 -0
  15. package/esm2015/lib/models/types/attached-file-dto.model.js +6 -0
  16. package/esm2015/lib/models/types/nullable.type.js +5 -0
  17. package/esm2015/lib/parent-components/actions.component.js +48 -0
  18. package/esm2015/lib/parent-components/form-control.component.js +73 -0
  19. package/esm2015/lib/parent-components/form.component.js +77 -0
  20. package/esm2015/lib/pipes/custom-pipes.module.js +45 -0
  21. package/esm2015/lib/pipes/decode-uri.pipe.js +15 -0
  22. package/esm2015/lib/pipes/encode-uri.pipe.js +15 -0
  23. package/esm2015/lib/pipes/integer-currency.pipe.js +29 -0
  24. package/esm2015/lib/pipes/safe-html.pipe.js +22 -0
  25. package/esm2015/lib/pipes/safe-style.pipe.js +22 -0
  26. package/esm2015/lib/pipes/safe-url.pipe.js +22 -0
  27. package/esm2015/lib/pipes/to-number.pipe.js +19 -0
  28. package/esm2015/lib/pipes/trim.pipe.js +16 -0
  29. package/esm2015/lib/pipes/typeof.pipe.js +12 -0
  30. package/esm2015/lib/services/viewport.service.js +213 -0
  31. package/esm2015/lib/ui/back-to-top/back-to-top.component.js +46 -0
  32. package/esm2015/lib/ui/button-with-confirm-dialog/button-response-types.enum.js +6 -0
  33. package/esm2015/lib/ui/button-with-confirm-dialog/button-with-confirm-dialog.component.js +56 -0
  34. package/esm2015/lib/ui/button-with-confirm-dialog/dialog-data.model.js +2 -0
  35. package/esm2015/lib/ui/checkbox/checkbox.component.js +63 -0
  36. package/esm2015/lib/ui/color-input/color-input.component.js +63 -0
  37. package/esm2015/lib/ui/enum-radiogroup/enum-radiogroup.component.js +46 -0
  38. package/esm2015/lib/ui/file-input/file-input.component.js +215 -0
  39. package/esm2015/lib/ui/flyout/flyout.component.js +84 -0
  40. package/esm2015/lib/ui/generic-dialog/generic-dialog.component.js +54 -0
  41. package/esm2015/lib/ui/icon/icon.component.js +47 -0
  42. package/esm2015/lib/ui/icon/iconSize.enum.js +17 -0
  43. package/esm2015/lib/ui/kms-accordion-item/kms-accordion-item.component.js +36 -0
  44. package/esm2015/lib/ui/loader/loader.component.js +21 -0
  45. package/esm2015/lib/ui/map/map.component.js +137 -0
  46. package/esm2015/lib/ui/radiobutton/radiobutton.component.js +66 -0
  47. package/esm2015/lib/ui/salutation-dropdown/salutation-dropdown.component.js +49 -0
  48. package/esm2015/lib/ui/salutation-radiogroup/salutation-radiogroup.component.js +44 -0
  49. package/esm2015/lib/ui/time-input/time-input.component.js +80 -0
  50. package/esm2015/lib/ui/tooltip/tooltip.component.js +17 -0
  51. package/esm2015/lib/ui/tooltip-icon/tooltip-icon.component.js +29 -0
  52. package/esm2015/lib/ui/yes-no-radiogroup/yes-no-radiogroup.component.js +74 -0
  53. package/esm2015/public-api.js +12 -0
  54. package/fesm2015/kms-ngx-ui-presentational.js +1962 -0
  55. package/fesm2015/kms-ngx-ui-presentational.js.map +1 -0
  56. package/kms-ngx-ui-presentational.d.ts +37 -0
  57. package/kms-ngx-ui-presentational.metadata.json +1 -0
  58. package/lib/kms-ngx-ui-presentational.component.d.ts +5 -0
  59. package/lib/kms-ngx-ui-presentational.module.d.ts +2 -0
  60. package/lib/kms-ngx-ui-presentational.service.d.ts +3 -0
  61. package/lib/models/address.model.d.ts +14 -0
  62. package/lib/models/iconSize.enum.d.ts +15 -0
  63. package/lib/models/index.d.ts +4 -0
  64. package/lib/models/is-value.function.d.ts +9 -0
  65. package/lib/models/salutation.enum.d.ts +5 -0
  66. package/lib/models/types/attached-file-dto.model.d.ts +11 -0
  67. package/lib/models/types/nullable.type.d.ts +4 -0
  68. package/lib/parent-components/actions.component.d.ts +28 -0
  69. package/lib/parent-components/form-control.component.d.ts +24 -0
  70. package/lib/parent-components/form.component.d.ts +31 -0
  71. package/lib/pipes/custom-pipes.module.d.ts +5 -0
  72. package/lib/pipes/decode-uri.pipe.d.ts +7 -0
  73. package/lib/pipes/encode-uri.pipe.d.ts +7 -0
  74. package/lib/pipes/integer-currency.pipe.d.ts +10 -0
  75. package/lib/pipes/safe-html.pipe.d.ts +10 -0
  76. package/lib/pipes/safe-style.pipe.d.ts +10 -0
  77. package/lib/pipes/safe-url.pipe.d.ts +10 -0
  78. package/lib/pipes/to-number.pipe.d.ts +7 -0
  79. package/lib/pipes/trim.pipe.d.ts +7 -0
  80. package/lib/pipes/typeof.pipe.d.ts +4 -0
  81. package/lib/services/viewport.service.d.ts +74 -0
  82. package/lib/ui/back-to-top/back-to-top.component.d.ts +10 -0
  83. package/lib/ui/button-with-confirm-dialog/button-response-types.enum.d.ts +4 -0
  84. package/lib/ui/button-with-confirm-dialog/button-with-confirm-dialog.component.d.ts +16 -0
  85. package/lib/ui/button-with-confirm-dialog/dialog-data.model.d.ts +9 -0
  86. package/lib/ui/checkbox/checkbox.component.d.ts +28 -0
  87. package/lib/ui/color-input/color-input.component.d.ts +15 -0
  88. package/lib/ui/enum-radiogroup/enum-radiogroup.component.d.ts +14 -0
  89. package/lib/ui/file-input/file-input.component.d.ts +86 -0
  90. package/lib/ui/flyout/flyout.component.d.ts +32 -0
  91. package/lib/ui/generic-dialog/generic-dialog.component.d.ts +23 -0
  92. package/lib/ui/icon/icon.component.d.ts +39 -0
  93. package/lib/ui/icon/iconSize.enum.d.ts +15 -0
  94. package/lib/ui/kms-accordion-item/kms-accordion-item.component.d.ts +18 -0
  95. package/lib/ui/loader/loader.component.d.ts +6 -0
  96. package/lib/ui/map/map.component.d.ts +70 -0
  97. package/lib/ui/radiobutton/radiobutton.component.d.ts +23 -0
  98. package/lib/ui/salutation-dropdown/salutation-dropdown.component.d.ts +14 -0
  99. package/lib/ui/salutation-radiogroup/salutation-radiogroup.component.d.ts +12 -0
  100. package/lib/ui/time-input/time-input.component.d.ts +19 -0
  101. package/lib/ui/tooltip/tooltip.component.d.ts +3 -0
  102. package/lib/ui/tooltip-icon/tooltip-icon.component.d.ts +10 -0
  103. package/lib/ui/yes-no-radiogroup/yes-no-radiogroup.component.d.ts +24 -0
  104. package/package.json +25 -0
  105. package/public-api.d.ts +6 -0
  106. package/src/lib/ui/back-to-top/back-to-top.component.scss +47 -0
  107. package/src/lib/ui/button-with-confirm-dialog/button-with-confirm-dialog.component.scss +0 -0
  108. package/src/lib/ui/checkbox/checkbox.component.scss +57 -0
  109. package/src/lib/ui/color-input/color-input.component.scss +38 -0
  110. package/src/lib/ui/file-input/file-input.component.scss +0 -0
  111. package/src/lib/ui/flyout/flyout.component.scss +34 -0
  112. package/src/lib/ui/generic-dialog/generic-dialog.component.scss +59 -0
  113. package/src/lib/ui/icon/icon.component.scss +149 -0
  114. package/src/lib/ui/kms-accordion-item/kms-accordion-item.component.scss +95 -0
  115. package/src/lib/ui/loader/loader.component.scss +0 -0
  116. package/src/lib/ui/map/map.component.scss +0 -0
  117. package/src/lib/ui/radiobutton/radiobutton.component.scss +30 -0
  118. package/src/lib/ui/time-input/time-input.component.scss +10 -0
  119. package/src/lib/ui/tooltip/tooltip.component.scss +27 -0
  120. package/src/lib/ui/tooltip-icon/tooltip-icon.component.scss +2 -0
  121. package/src/styles/mixins.scss +9 -0
  122. package/src/styles/styles.scss +30 -0
@@ -0,0 +1,2441 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@angular/material/checkbox'), require('@angular/material/radio'), require('@angular/animations'), require('@angular/platform-browser'), require('rxjs'), require('@angular/material/dialog'), require('subsink'), require('@angular/google-maps'), require('@angular/material/button'), require('@angular/material/expansion')) :
3
+ typeof define === 'function' && define.amd ? define('@kms-ngx-ui/presentational', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/material/checkbox', '@angular/material/radio', '@angular/animations', '@angular/platform-browser', 'rxjs', '@angular/material/dialog', 'subsink', '@angular/google-maps', '@angular/material/button', '@angular/material/expansion'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['kms-ngx-ui'] = global['kms-ngx-ui'] || {}, global['kms-ngx-ui'].presentational = {}), global.ng.core, global.ng.common, global.ng.forms, global.ng.material.checkbox, global.ng.material.radio, global.ng.animations, global.ng.platformBrowser, global.rxjs, global.ng.material.dialog, global.subsink, global.ng.googleMaps, global.ng.material.button, global.ng.material.expansion));
5
+ }(this, (function (exports, i0, common, forms, checkbox, radio, animations, platformBrowser, rxjs, dialog, subsink, googleMaps, button, expansion) { 'use strict';
6
+
7
+ var KmsUiPresentationalService = /** @class */ (function () {
8
+ function KmsUiPresentationalService() {
9
+ }
10
+ return KmsUiPresentationalService;
11
+ }());
12
+ KmsUiPresentationalService.ɵprov = i0.ɵɵdefineInjectable({ factory: function KmsUiPresentationalService_Factory() { return new KmsUiPresentationalService(); }, token: KmsUiPresentationalService, providedIn: "root" });
13
+ KmsUiPresentationalService.decorators = [
14
+ { type: i0.Injectable, args: [{
15
+ providedIn: 'root'
16
+ },] }
17
+ ];
18
+ KmsUiPresentationalService.ctorParameters = function () { return []; };
19
+
20
+ var KmsUiPresentationalComponent = /** @class */ (function () {
21
+ function KmsUiPresentationalComponent() {
22
+ }
23
+ KmsUiPresentationalComponent.prototype.ngOnInit = function () {
24
+ };
25
+ return KmsUiPresentationalComponent;
26
+ }());
27
+ KmsUiPresentationalComponent.decorators = [
28
+ { type: i0.Component, args: [{
29
+ selector: 'lib-kms-ngx-ui-presentational',
30
+ template: "\n <p>\n kms-ngx-ui-presentational works!\n </p>\n "
31
+ },] }
32
+ ];
33
+ KmsUiPresentationalComponent.ctorParameters = function () { return []; };
34
+
35
+ /*!
36
+ * @copyright FLYACTS GmbH 2019
37
+ */
38
+ var ActionsParentComponent = /** @class */ (function () {
39
+ function ActionsParentComponent() {
40
+ /**
41
+ * Defines the disabled property
42
+ */
43
+ this.disabled = false;
44
+ /**
45
+ * Set button as selected. F.e. in multiselect component
46
+ */
47
+ this.checked = false;
48
+ /**
49
+ * Displayed label.
50
+ */
51
+ this.label = '';
52
+ /**
53
+ * Link
54
+ */
55
+ this.link = '';
56
+ /**
57
+ * Internal value that will be send if a form is submitted.
58
+ */
59
+ this.initialValue = '';
60
+ this.select = new i0.EventEmitter();
61
+ }
62
+ ActionsParentComponent.prototype.selectAction = function (id) {
63
+ this.checked = !this.checked;
64
+ this.select.emit(id);
65
+ };
66
+ return ActionsParentComponent;
67
+ }());
68
+ ActionsParentComponent.decorators = [
69
+ { type: i0.Component, args: [{
70
+ selector: 'kms-actions',
71
+ template: ''
72
+ },] }
73
+ ];
74
+ ActionsParentComponent.propDecorators = {
75
+ disabled: [{ type: i0.Input }],
76
+ checked: [{ type: i0.Input }],
77
+ label: [{ type: i0.Input }],
78
+ link: [{ type: i0.Input }],
79
+ initialValue: [{ type: i0.Input }],
80
+ select: [{ type: i0.Output }]
81
+ };
82
+
83
+ /******************************************************************************
84
+ Copyright (c) Microsoft Corporation.
85
+
86
+ Permission to use, copy, modify, and/or distribute this software for any
87
+ purpose with or without fee is hereby granted.
88
+
89
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
90
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
91
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
92
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
93
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
94
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
95
+ PERFORMANCE OF THIS SOFTWARE.
96
+ ***************************************************************************** */
97
+ /* global Reflect, Promise */
98
+ var extendStatics = function (d, b) {
99
+ extendStatics = Object.setPrototypeOf ||
100
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
101
+ function (d, b) { for (var p in b)
102
+ if (Object.prototype.hasOwnProperty.call(b, p))
103
+ d[p] = b[p]; };
104
+ return extendStatics(d, b);
105
+ };
106
+ function __extends(d, b) {
107
+ if (typeof b !== "function" && b !== null)
108
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
109
+ extendStatics(d, b);
110
+ function __() { this.constructor = d; }
111
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
112
+ }
113
+ var __assign = function () {
114
+ __assign = Object.assign || function __assign(t) {
115
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
116
+ s = arguments[i];
117
+ for (var p in s)
118
+ if (Object.prototype.hasOwnProperty.call(s, p))
119
+ t[p] = s[p];
120
+ }
121
+ return t;
122
+ };
123
+ return __assign.apply(this, arguments);
124
+ };
125
+ function __rest(s, e) {
126
+ var t = {};
127
+ for (var p in s)
128
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
129
+ t[p] = s[p];
130
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
131
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
132
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
133
+ t[p[i]] = s[p[i]];
134
+ }
135
+ return t;
136
+ }
137
+ function __decorate(decorators, target, key, desc) {
138
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
139
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
140
+ r = Reflect.decorate(decorators, target, key, desc);
141
+ else
142
+ for (var i = decorators.length - 1; i >= 0; i--)
143
+ if (d = decorators[i])
144
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
145
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
146
+ }
147
+ function __param(paramIndex, decorator) {
148
+ return function (target, key) { decorator(target, key, paramIndex); };
149
+ }
150
+ function __metadata(metadataKey, metadataValue) {
151
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
152
+ return Reflect.metadata(metadataKey, metadataValue);
153
+ }
154
+ function __awaiter(thisArg, _arguments, P, generator) {
155
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
156
+ return new (P || (P = Promise))(function (resolve, reject) {
157
+ function fulfilled(value) { try {
158
+ step(generator.next(value));
159
+ }
160
+ catch (e) {
161
+ reject(e);
162
+ } }
163
+ function rejected(value) { try {
164
+ step(generator["throw"](value));
165
+ }
166
+ catch (e) {
167
+ reject(e);
168
+ } }
169
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
170
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
171
+ });
172
+ }
173
+ function __generator(thisArg, body) {
174
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
175
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
176
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
177
+ function verb(n) { return function (v) { return step([n, v]); }; }
178
+ function step(op) {
179
+ if (f)
180
+ throw new TypeError("Generator is already executing.");
181
+ while (_)
182
+ try {
183
+ 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)
184
+ return t;
185
+ if (y = 0, t)
186
+ op = [op[0] & 2, t.value];
187
+ switch (op[0]) {
188
+ case 0:
189
+ case 1:
190
+ t = op;
191
+ break;
192
+ case 4:
193
+ _.label++;
194
+ return { value: op[1], done: false };
195
+ case 5:
196
+ _.label++;
197
+ y = op[1];
198
+ op = [0];
199
+ continue;
200
+ case 7:
201
+ op = _.ops.pop();
202
+ _.trys.pop();
203
+ continue;
204
+ default:
205
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
206
+ _ = 0;
207
+ continue;
208
+ }
209
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
210
+ _.label = op[1];
211
+ break;
212
+ }
213
+ if (op[0] === 6 && _.label < t[1]) {
214
+ _.label = t[1];
215
+ t = op;
216
+ break;
217
+ }
218
+ if (t && _.label < t[2]) {
219
+ _.label = t[2];
220
+ _.ops.push(op);
221
+ break;
222
+ }
223
+ if (t[2])
224
+ _.ops.pop();
225
+ _.trys.pop();
226
+ continue;
227
+ }
228
+ op = body.call(thisArg, _);
229
+ }
230
+ catch (e) {
231
+ op = [6, e];
232
+ y = 0;
233
+ }
234
+ finally {
235
+ f = t = 0;
236
+ }
237
+ if (op[0] & 5)
238
+ throw op[1];
239
+ return { value: op[0] ? op[1] : void 0, done: true };
240
+ }
241
+ }
242
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
243
+ if (k2 === undefined)
244
+ k2 = k;
245
+ var desc = Object.getOwnPropertyDescriptor(m, k);
246
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
247
+ desc = { enumerable: true, get: function () { return m[k]; } };
248
+ }
249
+ Object.defineProperty(o, k2, desc);
250
+ }) : (function (o, m, k, k2) {
251
+ if (k2 === undefined)
252
+ k2 = k;
253
+ o[k2] = m[k];
254
+ });
255
+ function __exportStar(m, o) {
256
+ for (var p in m)
257
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
258
+ __createBinding(o, m, p);
259
+ }
260
+ function __values(o) {
261
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
262
+ if (m)
263
+ return m.call(o);
264
+ if (o && typeof o.length === "number")
265
+ return {
266
+ next: function () {
267
+ if (o && i >= o.length)
268
+ o = void 0;
269
+ return { value: o && o[i++], done: !o };
270
+ }
271
+ };
272
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
273
+ }
274
+ function __read(o, n) {
275
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
276
+ if (!m)
277
+ return o;
278
+ var i = m.call(o), r, ar = [], e;
279
+ try {
280
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
281
+ ar.push(r.value);
282
+ }
283
+ catch (error) {
284
+ e = { error: error };
285
+ }
286
+ finally {
287
+ try {
288
+ if (r && !r.done && (m = i["return"]))
289
+ m.call(i);
290
+ }
291
+ finally {
292
+ if (e)
293
+ throw e.error;
294
+ }
295
+ }
296
+ return ar;
297
+ }
298
+ /** @deprecated */
299
+ function __spread() {
300
+ for (var ar = [], i = 0; i < arguments.length; i++)
301
+ ar = ar.concat(__read(arguments[i]));
302
+ return ar;
303
+ }
304
+ /** @deprecated */
305
+ function __spreadArrays() {
306
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
307
+ s += arguments[i].length;
308
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
309
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
310
+ r[k] = a[j];
311
+ return r;
312
+ }
313
+ function __spreadArray(to, from, pack) {
314
+ if (pack || arguments.length === 2)
315
+ for (var i = 0, l = from.length, ar; i < l; i++) {
316
+ if (ar || !(i in from)) {
317
+ if (!ar)
318
+ ar = Array.prototype.slice.call(from, 0, i);
319
+ ar[i] = from[i];
320
+ }
321
+ }
322
+ return to.concat(ar || Array.prototype.slice.call(from));
323
+ }
324
+ function __await(v) {
325
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
326
+ }
327
+ function __asyncGenerator(thisArg, _arguments, generator) {
328
+ if (!Symbol.asyncIterator)
329
+ throw new TypeError("Symbol.asyncIterator is not defined.");
330
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
331
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
332
+ function verb(n) { if (g[n])
333
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
334
+ function resume(n, v) { try {
335
+ step(g[n](v));
336
+ }
337
+ catch (e) {
338
+ settle(q[0][3], e);
339
+ } }
340
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
341
+ function fulfill(value) { resume("next", value); }
342
+ function reject(value) { resume("throw", value); }
343
+ function settle(f, v) { if (f(v), q.shift(), q.length)
344
+ resume(q[0][0], q[0][1]); }
345
+ }
346
+ function __asyncDelegator(o) {
347
+ var i, p;
348
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
349
+ 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; }
350
+ }
351
+ function __asyncValues(o) {
352
+ if (!Symbol.asyncIterator)
353
+ throw new TypeError("Symbol.asyncIterator is not defined.");
354
+ var m = o[Symbol.asyncIterator], i;
355
+ 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);
356
+ 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); }); }; }
357
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
358
+ }
359
+ function __makeTemplateObject(cooked, raw) {
360
+ if (Object.defineProperty) {
361
+ Object.defineProperty(cooked, "raw", { value: raw });
362
+ }
363
+ else {
364
+ cooked.raw = raw;
365
+ }
366
+ return cooked;
367
+ }
368
+ ;
369
+ var __setModuleDefault = Object.create ? (function (o, v) {
370
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
371
+ }) : function (o, v) {
372
+ o["default"] = v;
373
+ };
374
+ function __importStar(mod) {
375
+ if (mod && mod.__esModule)
376
+ return mod;
377
+ var result = {};
378
+ if (mod != null)
379
+ for (var k in mod)
380
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
381
+ __createBinding(result, mod, k);
382
+ __setModuleDefault(result, mod);
383
+ return result;
384
+ }
385
+ function __importDefault(mod) {
386
+ return (mod && mod.__esModule) ? mod : { default: mod };
387
+ }
388
+ function __classPrivateFieldGet(receiver, state, kind, f) {
389
+ if (kind === "a" && !f)
390
+ throw new TypeError("Private accessor was defined without a getter");
391
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
392
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
393
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
394
+ }
395
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
396
+ if (kind === "m")
397
+ throw new TypeError("Private method is not writable");
398
+ if (kind === "a" && !f)
399
+ throw new TypeError("Private accessor was defined without a setter");
400
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
401
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
402
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
403
+ }
404
+ function __classPrivateFieldIn(state, receiver) {
405
+ if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
406
+ throw new TypeError("Cannot use 'in' operator on non-object");
407
+ return typeof state === "function" ? receiver === state : state.has(receiver);
408
+ }
409
+
410
+ var CheckboxComponent = /** @class */ (function (_super) {
411
+ __extends(CheckboxComponent, _super);
412
+ function CheckboxComponent() {
413
+ var _this = _super.call(this) || this;
414
+ /**
415
+ * Internal description name. All checkboxes with the same name belong to the same group.
416
+ * User can select none, one or all checkboxes with the same name.
417
+ */
418
+ _this.name = '';
419
+ _this.select = new i0.EventEmitter();
420
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
421
+ _this.onChange = function () { };
422
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
423
+ _this.onTouch = function () { };
424
+ return _this;
425
+ }
426
+ CheckboxComponent.prototype.selectAction = function (id) {
427
+ this.select.emit(id);
428
+ this.checked = !this.checked;
429
+ };
430
+ Object.defineProperty(CheckboxComponent.prototype, "value", {
431
+ get: function () {
432
+ return this.checked;
433
+ },
434
+ set: function (value) {
435
+ this.checked = value;
436
+ this.onChange(value);
437
+ this.onTouch(value);
438
+ },
439
+ enumerable: false,
440
+ configurable: true
441
+ });
442
+ CheckboxComponent.prototype.writeValue = function (value) {
443
+ this.value = value;
444
+ };
445
+ CheckboxComponent.prototype.registerOnChange = function (fn) {
446
+ this.onChange = fn;
447
+ };
448
+ CheckboxComponent.prototype.registerOnTouched = function (fn) {
449
+ this.onTouch = fn;
450
+ };
451
+ return CheckboxComponent;
452
+ }(ActionsParentComponent));
453
+ CheckboxComponent.decorators = [
454
+ { type: i0.Component, args: [{
455
+ selector: 'kms-checkbox',
456
+ template: "<!-- <label class=\"wrapper ui-copy-text\"\n [ngClass]=\"{'disabled' : disabled}\">{{label}}\n <input type=\"checkbox\" \n [checked]=\"checked\"\n [value]=\"value\"\n [name]=\"name\"\n [disabled]=\"disabled\"\n (change)=\"selectAction($event)\">\n\n</label> -->\n<mat-checkbox class=\"example-margin\" [disabled]=\"disabled\" [name]=\"name\" [(ngModel)]=\"checked\"></mat-checkbox>\n<span *ngIf=\"infoText && infoText.length > 0\" \n class=\"\"\n [ngClass]=\"{'disabled' : disabled}\">{{infoText}}\n</span>",
457
+ providers: [
458
+ {
459
+ provide: forms.NG_VALUE_ACCESSOR,
460
+ useExisting: i0.forwardRef(function () { return CheckboxComponent; }),
461
+ multi: true,
462
+ },
463
+ ],
464
+ styles: [".test{color:#0000cd}"]
465
+ },] }
466
+ ];
467
+ CheckboxComponent.ctorParameters = function () { return []; };
468
+ CheckboxComponent.propDecorators = {
469
+ infoText: [{ type: i0.Input }],
470
+ name: [{ type: i0.Input }],
471
+ select: [{ type: i0.Output }]
472
+ };
473
+
474
+ /*!
475
+ * @copyright FLYACTS GmbH 2019
476
+ */
477
+ var FormParentComponent = /** @class */ (function () {
478
+ function FormParentComponent(formBuilder) {
479
+ this.formBuilder = formBuilder;
480
+ this.formInitialized = false;
481
+ this.allowedCharsOnlyNumbers = new Set('0123456789'.split('').map(function (c) { return c.charCodeAt(0); }));
482
+ this.formDataChanged = new i0.EventEmitter();
483
+ this.disabled = false;
484
+ }
485
+ // TODO make a service or make own compoennt etc.
486
+ /**
487
+ * Returns if a number was pressed
488
+ * @param e
489
+ * @returns
490
+ */
491
+ FormParentComponent.prototype.checkIfKeyWasNumber = function (e, allowDelete, allowArrows, allowCutCopyPaste) {
492
+ if (allowDelete === void 0) { allowDelete = true; }
493
+ if (allowArrows === void 0) { allowArrows = true; }
494
+ if (allowCutCopyPaste === void 0) { allowCutCopyPaste = true; }
495
+ // returns if keycode of numbers-row or numberpad. Or if parameter set, allow delete/backspace key
496
+ var isNumberRow = e.keyCode >= 48 && e.keyCode <= 57;
497
+ var isNumberPad = e.keyCode >= 96 && e.keyCode <= 105;
498
+ var isArrows = e.keyCode >= 37 && e.keyCode <= 40;
499
+ var isDelete = e.keyCode == 8 || e.keyCode == 46;
500
+ var isCutCopyOrPaste = (e.ctrlKey || e.metaKey) && (e.keyCode == 86 || e.keyCode == 88 || e.keyCode == 67);
501
+ return (isNumberRow) || (isNumberPad) || (allowDelete && isDelete) || (allowArrows && isArrows) || (allowCutCopyPaste && isCutCopyOrPaste);
502
+ };
503
+ // TODO make a service or make own compoennt etc.
504
+ /**
505
+ * Prevents to input other chars than numbers in input
506
+ * @param event
507
+ */
508
+ FormParentComponent.prototype.removeNumbersOnType = function (event) {
509
+ // only allow keydown from numbers-row or numberpad of keybard and block other chars than numbers
510
+ if (!this.checkIfKeyWasNumber(event) && !this.allowedCharsOnlyNumbers.has(event.keyCode)) {
511
+ event.preventDefault();
512
+ }
513
+ };
514
+ // TODO make a service or make own compoennt etc.
515
+ /**
516
+ * Prevents input when pasting which is not number
517
+ * @param event
518
+ */
519
+ FormParentComponent.prototype.removeNumbersOnPaste = function (event) {
520
+ var clipboardData = event.clipboardData;
521
+ if (clipboardData) {
522
+ var pastedText = clipboardData.getData('text');
523
+ if (pastedText) {
524
+ var isnum = /^\d+$/.test(pastedText);
525
+ if (!isnum) {
526
+ event.preventDefault();
527
+ }
528
+ }
529
+ }
530
+ };
531
+ FormParentComponent.prototype.ngOnInit = function () {
532
+ var _this = this;
533
+ this.formDataChanged.emit(this.form);
534
+ this.form.valueChanges.subscribe(function () {
535
+ _this.formDataChanged.emit(_this.form);
536
+ });
537
+ };
538
+ return FormParentComponent;
539
+ }());
540
+ FormParentComponent.decorators = [
541
+ { type: i0.Component, args: [{
542
+ selector: 'kms-form',
543
+ template: ''
544
+ },] }
545
+ ];
546
+ FormParentComponent.ctorParameters = function () { return [
547
+ { type: forms.FormBuilder }
548
+ ]; };
549
+ FormParentComponent.propDecorators = {
550
+ formDataChanged: [{ type: i0.Output }],
551
+ disabled: [{ type: i0.Input }]
552
+ };
553
+
554
+ var FormControlParentComponent = /** @class */ (function (_super) {
555
+ __extends(FormControlParentComponent, _super);
556
+ function FormControlParentComponent(formBuilder, renderer) {
557
+ var _this = _super.call(this, formBuilder) || this;
558
+ _this.formBuilder = formBuilder;
559
+ _this.renderer = renderer;
560
+ _this.defaultDataOverride = ''; // when we have NO form around, get default via input to set it manually
561
+ _this.onSelectItemEmitter = new i0.EventEmitter();
562
+ _this.internalValue = '';
563
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
564
+ _this.onChange = function () { };
565
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
566
+ _this.onTouch = function () { };
567
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
568
+ _this.onTouched = function () { };
569
+ return _this;
570
+ }
571
+ FormControlParentComponent.prototype.ngOnInit = function () {
572
+ _super.prototype.ngOnInit.call(this);
573
+ };
574
+ FormControlParentComponent.prototype.change = function (value) {
575
+ this.onChange(value);
576
+ this.onTouched();
577
+ };
578
+ Object.defineProperty(FormControlParentComponent.prototype, "value", {
579
+ get: function () {
580
+ return this.internalValue;
581
+ },
582
+ set: function (value) {
583
+ this.internalValue = value;
584
+ if (value !== undefined && this.internalValue !== value) {
585
+ if (!this.internalValue && this.defaultDataOverride) {
586
+ this.internalValue = this.defaultDataOverride;
587
+ }
588
+ this.onChange(value);
589
+ this.onTouch(value);
590
+ }
591
+ },
592
+ enumerable: false,
593
+ configurable: true
594
+ });
595
+ FormControlParentComponent.prototype.writeValue = function (value) {
596
+ this.internalValue = value;
597
+ this.value = value;
598
+ };
599
+ FormControlParentComponent.prototype.registerOnChange = function (fn) {
600
+ this.onChange = fn;
601
+ };
602
+ FormControlParentComponent.prototype.registerOnTouched = function (fn) {
603
+ this.onTouch = fn;
604
+ };
605
+ FormControlParentComponent.prototype.setDisabledState = function (isDisabled) {
606
+ if (this.child) {
607
+ this.renderer.setProperty(this.child.nativeElement, 'disabled', isDisabled);
608
+ }
609
+ };
610
+ FormControlParentComponent.prototype.validate = function (_) {
611
+ return this.form.valid ? null : false;
612
+ };
613
+ return FormControlParentComponent;
614
+ }(FormParentComponent));
615
+ FormControlParentComponent.decorators = [
616
+ { type: i0.Component, args: [{
617
+ selector: 'kms-formControlParent',
618
+ template: ''
619
+ },] }
620
+ ];
621
+ FormControlParentComponent.ctorParameters = function () { return [
622
+ { type: forms.FormBuilder },
623
+ { type: i0.Renderer2 }
624
+ ]; };
625
+ FormControlParentComponent.propDecorators = {
626
+ defaultDataOverride: [{ type: i0.Input }],
627
+ onSelectItemEmitter: [{ type: i0.Output }],
628
+ child: [{ type: i0.ViewChild, args: ['child',] }]
629
+ };
630
+
631
+ var ColorInputComponent = /** @class */ (function (_super) {
632
+ __extends(ColorInputComponent, _super);
633
+ function ColorInputComponent(formBuilder, renderer) {
634
+ var _this = _super.call(this, formBuilder, renderer) || this;
635
+ _this.formBuilder = formBuilder;
636
+ _this.renderer = renderer;
637
+ _this.label = '';
638
+ _this.tooltipText = '';
639
+ _this.placeholder = '';
640
+ return _this;
641
+ }
642
+ ColorInputComponent.prototype.ngOnInit = function () {
643
+ var _this = this;
644
+ this.form = this.formBuilder.group({
645
+ color: '',
646
+ });
647
+ this.formInitialized = true;
648
+ this.form.valueChanges.subscribe(function (value) {
649
+ _this.internalValue = value.color;
650
+ _this.onChange(value.color);
651
+ });
652
+ _super.prototype.ngOnInit.call(this);
653
+ };
654
+ ColorInputComponent.prototype.validate = function (_) {
655
+ // TODO fix to validate complete form
656
+ this.valid = this.matchesHex(this.form.value) ? null : false;
657
+ return this.valid && {
658
+ invalid: !this.valid
659
+ };
660
+ };
661
+ ColorInputComponent.prototype.matchesHex = function (match) {
662
+ if (match) {
663
+ var ret = match.match(/^#[0-9a-f]{6}$/i);
664
+ this.valid = ret && ret.length > 0;
665
+ return ret;
666
+ }
667
+ return false;
668
+ };
669
+ return ColorInputComponent;
670
+ }(FormControlParentComponent));
671
+ ColorInputComponent.decorators = [
672
+ { type: i0.Component, args: [{
673
+ selector: 'kms-color-input',
674
+ template: "\n<form [formGroup]=\"form\" *ngIf=\"formInitialized\">\n <div>\n <mat-form-field class=\"colorInput\">\n <kms-tooltip-icon [tooltipText]=\"tooltipText\" *ngIf=\"tooltipText\"></kms-tooltip-icon>\n <mat-label>{{ label }}</mat-label>\n <input type=\"text\" [value]=\"value\" matInput formControlName=\"color\" [placeholder]=\"placeholder\" [ngClass]=\"{'my-inValid': !matchesHex(value)}\" />\n <input type=\"color\" [value]=\"value && matchesHex(value) ? value : '#ffffff'\" formControlName=\"color\" [ngClass]=\"{'my-inValid': !matchesHex(value)}\" />\n </mat-form-field>\n </div>\n</form>",
675
+ providers: [
676
+ {
677
+ provide: forms.NG_VALUE_ACCESSOR,
678
+ useExisting: i0.forwardRef(function () { return ColorInputComponent; }),
679
+ multi: true,
680
+ },
681
+ ],
682
+ styles: [".colorInput{position:relative}.colorInput input[type=color]{display:block;position:absolute;width:20px;height:20px;left:0;bottom:10px;padding:0;margin:0;border:1px solid transparent}.colorInput input.my-inValid[type=color]{border:1px dotted red}.colorInput input[type=text]{padding-left:30px}.colorInput input.my-inValid[type=text]{color:red}.colorInput kms-tooltip-icon{position:absolute;right:0;top:-10px}.colorInput .mat-form-field-label{padding-left:30px}.colorInput .mat-form-field-can-float.mat-focused .mat-form-label{padding-left:0}"]
683
+ },] }
684
+ ];
685
+ ColorInputComponent.ctorParameters = function () { return [
686
+ { type: forms.FormBuilder },
687
+ { type: i0.Renderer2 }
688
+ ]; };
689
+ ColorInputComponent.propDecorators = {
690
+ label: [{ type: i0.Input }],
691
+ tooltipText: [{ type: i0.Input }],
692
+ placeholder: [{ type: i0.Input }]
693
+ };
694
+
695
+ var RadioButtonComponent = /** @class */ (function (_super) {
696
+ __extends(RadioButtonComponent, _super);
697
+ function RadioButtonComponent() {
698
+ var _this = _super.call(this) || this;
699
+ /**
700
+ * Internal description name. All radio buttons with the same name belong to the same group.
701
+ * User can select exactly one of the radio buttons from the same group.
702
+ */
703
+ _this.name = '';
704
+ /**
705
+ * Internal description id. Will be send in the output event when the radio button is selected.
706
+ */
707
+ _this.id = '';
708
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
709
+ _this.onChange = function () { };
710
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
711
+ _this.onTouch = function () { };
712
+ return _this;
713
+ }
714
+ RadioButtonComponent.prototype.selectAction = function (id) {
715
+ this.select.emit(id);
716
+ this.checked = !this.checked;
717
+ };
718
+ Object.defineProperty(RadioButtonComponent.prototype, "value", {
719
+ get: function () {
720
+ return this.checked;
721
+ },
722
+ set: function (value) {
723
+ this.checked = value;
724
+ this.onChange(value);
725
+ this.onTouch(value);
726
+ },
727
+ enumerable: false,
728
+ configurable: true
729
+ });
730
+ RadioButtonComponent.prototype.writeValue = function (value) {
731
+ this.value = value;
732
+ };
733
+ RadioButtonComponent.prototype.registerOnChange = function (fn) {
734
+ this.onChange = fn;
735
+ };
736
+ RadioButtonComponent.prototype.registerOnTouched = function (fn) {
737
+ this.onTouch = fn;
738
+ };
739
+ return RadioButtonComponent;
740
+ }(ActionsParentComponent));
741
+ RadioButtonComponent.decorators = [
742
+ { type: i0.Component, args: [{
743
+ selector: 'kms-radiobutton',
744
+ template: "<label class=\"wrapper ui-small-text\"\n [ngClass]=\"{'disabled' : disabled}\">\n <input type=\"radio\"\n [name]=\"name\"\n [value]=\"value\"\n [checked]=\"checked\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n (change)=\"selectAction($event)\">{{label}}\n\n <kms-icon\n class=\"checkmark\" \n aria-hidden=\"true\"\n *ngIf=\"checked\"\n [ngClass]=\"{\n 'disabled' : disabled\n }\"\n [iconClass]=\"{\n 'disabled' : disabled, \n 'color-primary': true,\n 'size-16': true\n }\"\n [icon]=\"'ic_radiobutton_active'\"\n >\n </kms-icon>\n <kms-icon\n class=\"checkmark\" \n aria-hidden=\"true\"\n *ngIf=\"!checked\"\n [ngClass]=\"{\n 'disabled' : disabled\n }\"\n [iconClass]=\"{\n 'disabled' : disabled, \n 'color-primary': true,\n 'size-16': true\n }\"\n [icon]=\"'ic_radiobutton_inactive'\"\n >\n </kms-icon>\n <ng-content></ng-content>\n</label>\n",
745
+ providers: [
746
+ {
747
+ provide: forms.NG_VALUE_ACCESSOR,
748
+ useExisting: i0.forwardRef(function () { return RadioButtonComponent; }),
749
+ multi: true,
750
+ },
751
+ ],
752
+ styles: [".wrapper{position:relative;display:inline-block;padding-left:35px;cursor:pointer}.wrapper input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.wrapper.disabled{cursor:default}"]
753
+ },] }
754
+ ];
755
+ RadioButtonComponent.ctorParameters = function () { return []; };
756
+ RadioButtonComponent.propDecorators = {
757
+ name: [{ type: i0.Input }],
758
+ id: [{ type: i0.Input }],
759
+ formControl: [{ type: i0.Input }]
760
+ };
761
+
762
+ var TimeInputComponent = /** @class */ (function () {
763
+ function TimeInputComponent(formBuilder) {
764
+ this.formBuilder = formBuilder;
765
+ this.h = '';
766
+ this.m = '';
767
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
768
+ this.onChange = function () { };
769
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
770
+ this.onTouch = function () { };
771
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
772
+ this.onTouched = function () { };
773
+ }
774
+ Object.defineProperty(TimeInputComponent.prototype, "value", {
775
+ get: function () {
776
+ return this.value;
777
+ },
778
+ set: function (value) {
779
+ this.onChange(value);
780
+ this.onTouch(value);
781
+ },
782
+ enumerable: false,
783
+ configurable: true
784
+ });
785
+ TimeInputComponent.prototype.writeValue = function (value) {
786
+ var _this = this;
787
+ if (value && value.length === 8) {
788
+ this.h = value.substr(0, 2);
789
+ this.m = value.substr(3, 2);
790
+ }
791
+ else if (value && value.length === 5) {
792
+ this.h = value.substr(0, 2);
793
+ this.m = value.substr(-2);
794
+ }
795
+ //we need to also update the form value because angular has a problem reading it from first time when valuechanges subscription was fired.
796
+ this.form.controls['h'].setValue(this.h);
797
+ this.form.controls['m'].setValue(this.m);
798
+ this.form.valueChanges.subscribe(function (value) {
799
+ _this.h = value.h;
800
+ _this.m = value.m;
801
+ value = _this.getNewOrDefault();
802
+ _this.value = value;
803
+ _this.onChange(value);
804
+ });
805
+ };
806
+ TimeInputComponent.prototype.ngOnInit = function () {
807
+ this.form = this.formBuilder.group({
808
+ h: '',
809
+ m: '',
810
+ });
811
+ };
812
+ TimeInputComponent.prototype.getNewOrDefault = function () {
813
+ //reset if user deletes everything
814
+ if (this.h === '' && this.m === '') {
815
+ return '';
816
+ }
817
+ var ret = this.h.padStart(2, '0') + ':' + this.m.padStart(2, '0');
818
+ return ret;
819
+ };
820
+ TimeInputComponent.prototype.registerOnChange = function (fn) {
821
+ this.onChange = fn;
822
+ };
823
+ TimeInputComponent.prototype.registerOnTouched = function (fn) {
824
+ this.onTouch = fn;
825
+ };
826
+ return TimeInputComponent;
827
+ }());
828
+ TimeInputComponent.decorators = [
829
+ { type: i0.Component, args: [{
830
+ selector: 'kms-time-input',
831
+ template: "<form [formGroup]=\"form\" class=\"timeInput\">\n <input formControlName=\"h\" [value]=\"h\" maxlength=\"2\" />\n <span>:</span>\n <input formControlName=\"m\" [value]=\"m\" maxlength=\"2\" />\n</form>",
832
+ providers: [
833
+ {
834
+ provide: forms.NG_VALUE_ACCESSOR,
835
+ useExisting: i0.forwardRef(function () { return TimeInputComponent; }),
836
+ multi: true,
837
+ },
838
+ ],
839
+ styles: [".timeInput{display:inline}.timeInput input{width:2em;margin-right:4px;margin-left:4px;font-size:16px}"]
840
+ },] }
841
+ ];
842
+ TimeInputComponent.ctorParameters = function () { return [
843
+ { type: forms.FormBuilder }
844
+ ]; };
845
+
846
+ var YesNoRadiogroupComponent = /** @class */ (function () {
847
+ function YesNoRadiogroupComponent(formBuilder, renderer) {
848
+ this.formBuilder = formBuilder;
849
+ this.renderer = renderer;
850
+ this.disabled = false;
851
+ this.textYes = '';
852
+ this.textNo = '';
853
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
854
+ this.onChange = function () { };
855
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
856
+ this.onTouch = function () { };
857
+ }
858
+ Object.defineProperty(YesNoRadiogroupComponent.prototype, "value", {
859
+ get: function () {
860
+ return this.internalValue;
861
+ },
862
+ set: function (value) {
863
+ this.internalValue = value;
864
+ if (value !== undefined && this.internalValue !== value) {
865
+ this.onChange(value);
866
+ this.onTouch(value);
867
+ }
868
+ },
869
+ enumerable: false,
870
+ configurable: true
871
+ });
872
+ YesNoRadiogroupComponent.prototype.writeValue = function (value) {
873
+ this.internalValue = value;
874
+ this.value = value;
875
+ };
876
+ YesNoRadiogroupComponent.prototype.registerOnChange = function (fn) {
877
+ this.onChange = fn;
878
+ };
879
+ YesNoRadiogroupComponent.prototype.registerOnTouched = function (fn) {
880
+ this.onTouch = fn;
881
+ };
882
+ YesNoRadiogroupComponent.prototype.setDisabledState = function (isDisabled) {
883
+ if (this.child) {
884
+ this.renderer.setProperty(this.child.nativeElement, 'disabled', isDisabled);
885
+ }
886
+ };
887
+ YesNoRadiogroupComponent.prototype.ngOnInit = function () {
888
+ var _this = this;
889
+ this.form = this.formBuilder.group({
890
+ yesno: [],
891
+ });
892
+ this.form.valueChanges.subscribe(function (value) {
893
+ _this.internalValue = value.yesno;
894
+ _this.onChange(value.yesno);
895
+ });
896
+ };
897
+ return YesNoRadiogroupComponent;
898
+ }());
899
+ YesNoRadiogroupComponent.decorators = [
900
+ { type: i0.Component, args: [{
901
+ selector: 'kms-yesno-radiogroup',
902
+ template: "<form [formGroup]=\"form\">\n <div>{{ header }}</div>\n <mat-radio-group [formControl]=\"form.controls['yesno']\" [disabled]=\"disabled\" #child>\n <mat-radio-button [value]=\"true\" [checked]=\"internalValue === true\"> {{ textYes }}</mat-radio-button>\n <mat-radio-button [value]=\"false\" [checked]=\"internalValue === false\"> {{ textNo }}</mat-radio-button>\n </mat-radio-group>\n</form>\n",
903
+ providers: [
904
+ {
905
+ provide: forms.NG_VALUE_ACCESSOR,
906
+ useExisting: i0.forwardRef(function () { return YesNoRadiogroupComponent; }),
907
+ multi: true,
908
+ },
909
+ ]
910
+ },] }
911
+ ];
912
+ YesNoRadiogroupComponent.ctorParameters = function () { return [
913
+ { type: forms.FormBuilder },
914
+ { type: i0.Renderer2 }
915
+ ]; };
916
+ YesNoRadiogroupComponent.propDecorators = {
917
+ header: [{ type: i0.Input }],
918
+ disabled: [{ type: i0.Input }],
919
+ textYes: [{ type: i0.Input }],
920
+ textNo: [{ type: i0.Input }],
921
+ child: [{ type: i0.ViewChild, args: ['child',] }]
922
+ };
923
+
924
+ /*!
925
+ * @copyright FLYACTS GmbH 2019
926
+ */
927
+ (function (IconSize) {
928
+ IconSize["FULLSIZE"] = "size-full";
929
+ IconSize["TINY"] = "size-16";
930
+ IconSize["SMALLER"] = "size-20";
931
+ IconSize["SMALL"] = "size-32";
932
+ IconSize["MEDIUM"] = "size-64";
933
+ IconSize["LARGE"] = "size-128";
934
+ IconSize["XL"] = "size-256";
935
+ IconSize["XXL"] = "size-512";
936
+ IconSize["XXXL"] = "size-1024";
937
+ IconSize["NONE"] = "NONE";
938
+ })(exports.IconSize || (exports.IconSize = {}));
939
+
940
+ /**
941
+ * @copyright FLYACTS GmbH 2019
942
+ */
943
+ /**
944
+ * Check if null or undefined
945
+ * @param value value that is being checked
946
+ */
947
+ function isValue(value) {
948
+ if (value === null) {
949
+ return false;
950
+ }
951
+ if (typeof value === 'undefined') {
952
+ return false;
953
+ }
954
+ return true;
955
+ }
956
+
957
+ // Max size in bytes of uploaded image
958
+ var MAX_SIZE_BYTES = 2097152;
959
+ var FileInputComponent = /** @class */ (function () {
960
+ /**
961
+ * Constructor
962
+ * @param formBuilder
963
+ * @param appRef
964
+ * @param cd
965
+ * @param translateService
966
+ * @param renderer
967
+ */
968
+ function FileInputComponent(formBuilder, appRef, cd,
969
+ //private translateService: TranslateService,
970
+ renderer) {
971
+ this.formBuilder = formBuilder;
972
+ this.appRef = appRef;
973
+ this.cd = cd;
974
+ this.renderer = renderer;
975
+ this.label = '';
976
+ this.previewImage = true;
977
+ this.allowRemove = true;
978
+ this.previewImageText = '';
979
+ this.maxSizeBytes = MAX_SIZE_BYTES;
980
+ this.resizePixels = 0;
981
+ this.acceptedFileMimetypes = 'image/jpeg, image/jpg, image/png';
982
+ this.form = this.formBuilder.group({
983
+ ImageIdent: new forms.FormControl(''),
984
+ ImageLink: new forms.FormControl(''),
985
+ Filename: new forms.FormControl(''),
986
+ ImageAsDataURL: new forms.FormControl(''),
987
+ Text: new forms.FormControl(''),
988
+ });
989
+ this.subscriptions = [];
990
+ this.newImageLoading = false;
991
+ this.IconSize = exports.IconSize;
992
+ this.formDataChanged = new i0.EventEmitter();
993
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
994
+ this.onChange = function () { };
995
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
996
+ this.onTouch = function () { };
997
+ }
998
+ /**
999
+ * Click on button triggers file-input to open OS file dialog
1000
+ */
1001
+ FileInputComponent.prototype.selectImageOverlay = function () {
1002
+ this.fileInput.nativeElement.click();
1003
+ };
1004
+ /**
1005
+ * Function to manage the input image
1006
+ * Returns an error if the file exceeds maximum wanted filesize (Mb).
1007
+ * @param ev
1008
+ * @returns
1009
+ */
1010
+ FileInputComponent.prototype.selectImage = function (ev) {
1011
+ var _this = this;
1012
+ if (ev.target.files && ev.target.files[0]) {
1013
+ var file_1 = ev.target.files[0];
1014
+ if (file_1.size > this.maxSizeBytes) {
1015
+ this.clearInputValue(ev);
1016
+ //alert(this.translateService.instant('errors.fileTooBig'));
1017
+ return;
1018
+ }
1019
+ else {
1020
+ this.newImageLoading = true;
1021
+ if (this.resizePixels > 0) {
1022
+ var logoUrl = URL.createObjectURL(file_1);
1023
+ var imgEl_1 = document.createElement('img');
1024
+ imgEl_1.addEventListener('load', function () {
1025
+ var resizedLogo = _this.resizeImage(imgEl_1, _this.resizePixels);
1026
+ var newFile = _this.generateModel(file_1.name, resizedLogo, _this.value.ImageIdent, _this.value.ImageLink, _this.value.Text);
1027
+ _this.value = newFile;
1028
+ _this.newImageLoading = false;
1029
+ _this.cd.markForCheck();
1030
+ });
1031
+ imgEl_1.src = logoUrl;
1032
+ }
1033
+ else {
1034
+ var reader = new FileReader();
1035
+ reader.readAsDataURL(file_1);
1036
+ reader.onload = function (e) {
1037
+ var newFile = _this.generateModel(file_1.name, e.target.result, _this.value.ImageIdent, _this.value.ImageLink, _this.value.Text);
1038
+ _this.value = newFile;
1039
+ _this.newImageLoading = false;
1040
+ _this.cd.markForCheck();
1041
+ };
1042
+ }
1043
+ }
1044
+ }
1045
+ else {
1046
+ console.warn("No file selected");
1047
+ }
1048
+ };
1049
+ /**
1050
+ * Resize an image
1051
+ * @param imgEl
1052
+ * @param wantedWidth as number
1053
+ * @returns string
1054
+ */
1055
+ FileInputComponent.prototype.resizeImage = function (imgEl, wantedWidth) {
1056
+ var canvas = document.createElement('canvas');
1057
+ var ctx = canvas.getContext('2d');
1058
+ var aspect = imgEl.width / imgEl.height;
1059
+ canvas.width = wantedWidth;
1060
+ canvas.height = wantedWidth / aspect;
1061
+ if (isValue(ctx))
1062
+ ctx.drawImage(imgEl, 0, 0, canvas.width, canvas.height);
1063
+ return canvas.toDataURL();
1064
+ };
1065
+ /**
1066
+ * Generate default object
1067
+ * @param name as string
1068
+ * @param content as string
1069
+ * @returns AttachedFileDTO
1070
+ */
1071
+ FileInputComponent.prototype.generateModel = function (name, content, ident, imageLink, text) {
1072
+ return {
1073
+ ImageIdent: ident ? ident : '',
1074
+ Filename: name ? name : '',
1075
+ ImageAsDataURL: content ? content : '',
1076
+ ImageLink: imageLink ? imageLink : '',
1077
+ Text: text ? text : ''
1078
+ };
1079
+ };
1080
+ /**
1081
+ * Remove image
1082
+ */
1083
+ FileInputComponent.prototype.removeFromList = function () {
1084
+ this.value = this.generateModel('', '', '', '');
1085
+ };
1086
+ Object.defineProperty(FileInputComponent.prototype, "value", {
1087
+ /**
1088
+ * get value
1089
+ */
1090
+ get: function () {
1091
+ return this.form.value;
1092
+ },
1093
+ /**
1094
+ * set value
1095
+ */
1096
+ set: function (value) {
1097
+ this.form.setValue(value);
1098
+ this.onChange(value);
1099
+ this.formDataChanged.emit(this.form);
1100
+ },
1101
+ enumerable: false,
1102
+ configurable: true
1103
+ });
1104
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
1105
+ FileInputComponent.prototype.ngOnInit = function () { };
1106
+ FileInputComponent.prototype.ngOnDestroy = function () {
1107
+ this.subscriptions.forEach(function (s) { return s.unsubscribe(); });
1108
+ };
1109
+ FileInputComponent.prototype.registerOnChange = function (fn) {
1110
+ this.onChange = fn;
1111
+ };
1112
+ FileInputComponent.prototype.registerOnTouched = function (fn) {
1113
+ this.onTouch = fn;
1114
+ };
1115
+ FileInputComponent.prototype.writeValue = function (value) {
1116
+ if (value) {
1117
+ this.value = value;
1118
+ }
1119
+ if (value === null) {
1120
+ this.form.reset();
1121
+ }
1122
+ };
1123
+ // eslint-disable-next-line @typescript-eslint/adjacent-overload-signatures
1124
+ FileInputComponent.prototype.validate = function (_) {
1125
+ return this.form.valid ? null : { styles: { valid: false } };
1126
+ };
1127
+ /**
1128
+ * OnClick event listener of input#fileInput to clear his input value
1129
+ */
1130
+ FileInputComponent.prototype.clearInputValue = function (ev) {
1131
+ var element = ev.target;
1132
+ element.value = '';
1133
+ };
1134
+ return FileInputComponent;
1135
+ }());
1136
+ FileInputComponent.decorators = [
1137
+ { type: i0.Component, args: [{
1138
+ selector: 'kms-file-input',
1139
+ template: "<form [formGroup]=\"form\" (change)=\"newImageLoading=true\" class=\"fileInput\"> \n\n <div *ngIf=\"form.value.Filename && previewImage\">\n <div *ngIf=\"newImageLoading\">\n {{ 'file-input.loading' | translate }}\n </div>\n <div *ngIf=\"!newImageLoading\">\n <div class=\"\">\n <div class=\"\">\n <img *ngIf=\"form.value.ImageLink && form.value.ImageLink !== '' && !(form.value.ImageAsDataURL && form.value.ImageAsDataURL !== '')\" [src]=\"form.value.ImageAsDataURL\" [src]=\"form.value.ImageLink\" style=\"height: 40px; width: fit-content;\" />\n <img *ngIf=\"form.value.ImageAsDataURL && form.value.ImageAsDataURL !== ''\" [src]=\"form.value.ImageAsDataURL\" style=\"height: 40px; width: fit-content;\" />\n </div>\n <div class=\"\">{{form.value.Filename}}</div>\n <div class=\"\">\n <div (click)=\"removeFromList()\" *ngIf=\"allowRemove\">\n <kms-icon icon=\"trash\" [iconSize]=\"IconSize.TINY\" iconClass=\"color-black\"></kms-icon> \n {{ 'file-input.remove' }}\n </div>\n </div>\n </div>\n </div>\n </div>\n <div *ngIf=\"!previewImage\">\n <div class=\"\">{{form.value.Filename}}</div>\n </div>\n\n <button (click)=\"selectImageOverlay()\" class=\"button-primary-font-color\" mat-stroked-button>\n <span>{{ label }}</span>\n </button>\n <input\n type=\"file\"\n [accept]=\"acceptedFileMimetypes\"\n style=\"display: none\"\n #fileInput\n (click)=\"clearInputValue($event)\"\n (change)=\"selectImage($event)\"\n />\n\n <input type=\"hidden\" [formControl]=\"form.controls['ImageIdent']\" />\n <input type=\"hidden\" [formControl]=\"form.controls['ImageLink']\" />\n <input type=\"hidden\" [formControl]=\"form.controls['Filename']\" />\n <input type=\"hidden\" [formControl]=\"form.controls['ImageAsDataURL']\" />\n <input type=\"hidden\" [formControl]=\"form.controls['Text']\" />\n\n</form>",
1140
+ providers: [
1141
+ {
1142
+ provide: forms.NG_VALUE_ACCESSOR,
1143
+ useExisting: i0.forwardRef(function () { return FileInputComponent; }),
1144
+ multi: true,
1145
+ },
1146
+ {
1147
+ provide: forms.NG_VALIDATORS,
1148
+ useExisting: i0.forwardRef(function () { return FileInputComponent; }),
1149
+ multi: true,
1150
+ },
1151
+ ],
1152
+ styles: [""]
1153
+ },] }
1154
+ ];
1155
+ FileInputComponent.ctorParameters = function () { return [
1156
+ { type: forms.FormBuilder },
1157
+ { type: i0.ApplicationRef },
1158
+ { type: i0.ChangeDetectorRef },
1159
+ { type: i0.Renderer2 }
1160
+ ]; };
1161
+ FileInputComponent.propDecorators = {
1162
+ fileInput: [{ type: i0.ViewChild, args: ['fileInput',] }],
1163
+ label: [{ type: i0.Input }],
1164
+ previewImage: [{ type: i0.Input }],
1165
+ allowRemove: [{ type: i0.Input }],
1166
+ previewImageText: [{ type: i0.Input }],
1167
+ maxSizeBytes: [{ type: i0.Input }],
1168
+ resizePixels: [{ type: i0.Input }],
1169
+ acceptedFileMimetypes: [{ type: i0.Input }],
1170
+ formDataChanged: [{ type: i0.Output }]
1171
+ };
1172
+
1173
+ var LoaderComponent = /** @class */ (function () {
1174
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
1175
+ function LoaderComponent() {
1176
+ this.loading = false;
1177
+ }
1178
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
1179
+ LoaderComponent.prototype.ngOnInit = function () { };
1180
+ return LoaderComponent;
1181
+ }());
1182
+ LoaderComponent.decorators = [
1183
+ { type: i0.Component, args: [{
1184
+ selector: 'kms-loader',
1185
+ template: "<div class=\"loading-spinner-shade\" *ngIf=\"loading\">\n <mat-spinner class=\"spinnerMargin\" color=\"accent\" diameter=\"44\"></mat-spinner>\n</div>\n",
1186
+ styles: [""]
1187
+ },] }
1188
+ ];
1189
+ LoaderComponent.ctorParameters = function () { return []; };
1190
+ LoaderComponent.propDecorators = {
1191
+ loading: [{ type: i0.Input }]
1192
+ };
1193
+
1194
+ /*!
1195
+ * @copyright FLYACTS GmbH 2019
1196
+ */
1197
+ var FlyoutComponent = /** @class */ (function () {
1198
+ function FlyoutComponent() {
1199
+ this.icon = 'filter';
1200
+ this.isDropdownOpened = false;
1201
+ this.targetHeight = '0';
1202
+ this.animationTime = 5000;
1203
+ this.headerCssClass = '';
1204
+ this.bodyCssClass = '';
1205
+ this.headerTitle = '';
1206
+ this.headerText = '';
1207
+ this.hasButtonForMore = false;
1208
+ this.moreText = '';
1209
+ this.lessText = '';
1210
+ }
1211
+ /**
1212
+ * Open/close dropdown if click on header.
1213
+ * Except, if mode is set to hasButtonForMore. When there is a extra button to open/close
1214
+ */
1215
+ FlyoutComponent.prototype.toggleDropdownHeader = function () {
1216
+ if (!this.hasButtonForMore) {
1217
+ this.toggleDropdown();
1218
+ }
1219
+ };
1220
+ /**
1221
+ * Open or close the dropdown
1222
+ */
1223
+ FlyoutComponent.prototype.toggleDropdown = function () {
1224
+ this.isDropdownOpened = !this.isDropdownOpened;
1225
+ };
1226
+ /**
1227
+ * Set the height of the dropdown list items dynamic - needed for the animation
1228
+ */
1229
+ FlyoutComponent.prototype.setDropdownListHeight = function (contentHeight) {
1230
+ this.targetHeight = contentHeight + "px";
1231
+ };
1232
+ return FlyoutComponent;
1233
+ }());
1234
+ FlyoutComponent.decorators = [
1235
+ { type: i0.Component, args: [{
1236
+ selector: 'kms-flyout',
1237
+ template: "<div class=\"flyout\"\n [ngClass]=\"{'is-active': isDropdownOpened}\"\n>\n <div class=\"flyout-header\" (click)=\"toggleDropdownHeader()\" [ngClass]=\"headerCssClass\">\n <span [innerHtml]=\"headerTitle | kmsSafeHtml\"></span>\n <span [innerHtml]=\"headerText | kmsSafeHtml\"></span>\n\n <ng-content select=\"[header]\"></ng-content>\n\n <div *ngIf=\"hasButtonForMore\" (click)=\"toggleDropdown()\" class=\"flyout-header-more\">\n <span *ngIf=\"!isDropdownOpened\">\n {{ moreText }}\n </span>\n <span *ngIf=\"isDropdownOpened\">\n {{ lessText }}\n </span>\n <kms-icon [icon]=\"'chevron-down'\"\n [iconClass]=\"{'size-16': true, 'is-rotating180': isDropdownOpened}\" >\n </kms-icon>\n </div>\n </div>\n <div \n class=\"flyout-body\"\n [ngClass]=\"bodyCssClass\"\n tabindex=\"0\"\n [@dropdownAnimation]=\"{value: isDropdownOpened, params: {targetHeight: targetHeight, animationTime: '500'}}\"\n getMaxHeight=\"inner\"\n (sumOfHeight)=\"setDropdownListHeight($event)\"\n #flyoutHeader>\n <div class=\"inner\" #content>\n <ng-content ></ng-content>\n </div>\n </div>\n\n</div>\n",
1238
+ animations: [
1239
+ animations.trigger('dropdownAnimation', [
1240
+ animations.state('true', animations.style({
1241
+ height: '{{targetHeight}}',
1242
+ transition: 'height {{animationTime}}ms ease-in-out',
1243
+ }), {
1244
+ params: {
1245
+ targetHeight: '300px',
1246
+ animationTime: 3000,
1247
+ },
1248
+ }),
1249
+ animations.state('false', animations.style({
1250
+ height: 0,
1251
+ transition: 'height {{animationTime}}ms ease-in-out',
1252
+ }), {
1253
+ params: {
1254
+ targetHeight: '300px',
1255
+ opacity: 0,
1256
+ animationTime: 3000,
1257
+ },
1258
+ }),
1259
+ ]),
1260
+ ],
1261
+ styles: [".flyout{position:relative;display:block;padding:20px 45px}.flyout-header-more{font:normal normal normal 16px/25px var(--fontName-text03);letter-spacing:.26px;color:var(--primaryColor);cursor:pointer}.flyout-header-more kms-icon .icon,.flyout-header-more kms-icon .icon svg{width:16px!important;height:20px!important}.flyout-header-more kms-icon .icon svg use{fill:var(--primaryColor)}.flyout-body{padding:0;margin:0;overflow:hidden;outline:none}"]
1262
+ },] }
1263
+ ];
1264
+ FlyoutComponent.propDecorators = {
1265
+ icon: [{ type: i0.Input }],
1266
+ headerCssClass: [{ type: i0.Input }],
1267
+ bodyCssClass: [{ type: i0.Input }],
1268
+ headerTitle: [{ type: i0.Input }],
1269
+ headerText: [{ type: i0.Input }],
1270
+ hasButtonForMore: [{ type: i0.Input }],
1271
+ moreText: [{ type: i0.Input }],
1272
+ lessText: [{ type: i0.Input }],
1273
+ content: [{ type: i0.ViewChild, args: ['content',] }],
1274
+ flyoutHeader: [{ type: i0.ViewChild, args: ['flyoutHeader',] }]
1275
+ };
1276
+
1277
+ /**
1278
+ * @copyright KMS GmbH
1279
+ */
1280
+ var IntegerCurrency = /** @class */ (function () {
1281
+ function IntegerCurrency(cp) {
1282
+ this.cp = cp;
1283
+ }
1284
+ IntegerCurrency.prototype.transform = function (value, currencyCode, display, digitsInfo) {
1285
+ var currencyPipeValue = this.cp.transform(value, currencyCode, display, digitsInfo);
1286
+ if (currencyPipeValue) {
1287
+ var convertedValue = currencyPipeValue.split(',')[0] + ' ' + currencyPipeValue.slice(-1);
1288
+ return convertedValue;
1289
+ }
1290
+ else {
1291
+ throw new Error("No value provided");
1292
+ }
1293
+ };
1294
+ return IntegerCurrency;
1295
+ }());
1296
+ IntegerCurrency.decorators = [
1297
+ { type: i0.Pipe, args: [{
1298
+ name: 'kmsIntegerCurrency',
1299
+ },] }
1300
+ ];
1301
+ IntegerCurrency.ctorParameters = function () { return [
1302
+ { type: common.CurrencyPipe }
1303
+ ]; };
1304
+
1305
+ /*!
1306
+ * @copyright FLYACTS GmbH 2019
1307
+ */
1308
+ var DecodeUriPipe = /** @class */ (function () {
1309
+ function DecodeUriPipe() {
1310
+ }
1311
+ DecodeUriPipe.prototype.transform = function (value, _args) {
1312
+ return decodeURI(value);
1313
+ };
1314
+ return DecodeUriPipe;
1315
+ }());
1316
+ DecodeUriPipe.decorators = [
1317
+ { type: i0.Pipe, args: [{
1318
+ name: 'kmsDecodeUri',
1319
+ },] }
1320
+ ];
1321
+
1322
+ /*!
1323
+ * @copyright FLYACTS GmbH 2019
1324
+ */
1325
+ var EncodeUriPipe = /** @class */ (function () {
1326
+ function EncodeUriPipe() {
1327
+ }
1328
+ EncodeUriPipe.prototype.transform = function (value, _args) {
1329
+ return encodeURI(value);
1330
+ };
1331
+ return EncodeUriPipe;
1332
+ }());
1333
+ EncodeUriPipe.decorators = [
1334
+ { type: i0.Pipe, args: [{
1335
+ name: 'kmsEncodeUri',
1336
+ },] }
1337
+ ];
1338
+
1339
+ /*!
1340
+ * @copyright FLYACTS GmbH 2019
1341
+ */
1342
+ var SafeHtmlPipe = /** @class */ (function () {
1343
+ function SafeHtmlPipe(sanitizer) {
1344
+ this.sanitizer = sanitizer;
1345
+ }
1346
+ SafeHtmlPipe.prototype.transform = function (html) {
1347
+ return this.sanitizer.bypassSecurityTrustHtml(html);
1348
+ };
1349
+ return SafeHtmlPipe;
1350
+ }());
1351
+ SafeHtmlPipe.decorators = [
1352
+ { type: i0.Pipe, args: [{
1353
+ name: 'kmsSafeHtml',
1354
+ },] }
1355
+ ];
1356
+ SafeHtmlPipe.ctorParameters = function () { return [
1357
+ { type: platformBrowser.DomSanitizer }
1358
+ ]; };
1359
+
1360
+ /**
1361
+ * @copyright KMS GmbH
1362
+ */
1363
+ var SafeStylePipe = /** @class */ (function () {
1364
+ function SafeStylePipe(sanitizer) {
1365
+ this.sanitizer = sanitizer;
1366
+ }
1367
+ SafeStylePipe.prototype.transform = function (style) {
1368
+ return this.sanitizer.bypassSecurityTrustStyle(style);
1369
+ };
1370
+ return SafeStylePipe;
1371
+ }());
1372
+ SafeStylePipe.decorators = [
1373
+ { type: i0.Pipe, args: [{
1374
+ name: 'kmsSafeStyle',
1375
+ },] }
1376
+ ];
1377
+ SafeStylePipe.ctorParameters = function () { return [
1378
+ { type: platformBrowser.DomSanitizer }
1379
+ ]; };
1380
+
1381
+ /**
1382
+ * @copyright KMS GmbH
1383
+ */
1384
+ var SafeUrlPipe = /** @class */ (function () {
1385
+ function SafeUrlPipe(sanitizer) {
1386
+ this.sanitizer = sanitizer;
1387
+ }
1388
+ SafeUrlPipe.prototype.transform = function (style) {
1389
+ return this.sanitizer.bypassSecurityTrustUrl(style);
1390
+ };
1391
+ return SafeUrlPipe;
1392
+ }());
1393
+ SafeUrlPipe.decorators = [
1394
+ { type: i0.Pipe, args: [{
1395
+ name: 'kmsSafeSUrl',
1396
+ },] }
1397
+ ];
1398
+ SafeUrlPipe.ctorParameters = function () { return [
1399
+ { type: platformBrowser.DomSanitizer }
1400
+ ]; };
1401
+
1402
+ var TypeofPipe = /** @class */ (function () {
1403
+ function TypeofPipe() {
1404
+ }
1405
+ TypeofPipe.prototype.transform = function (value) {
1406
+ return typeof value;
1407
+ };
1408
+ return TypeofPipe;
1409
+ }());
1410
+ TypeofPipe.decorators = [
1411
+ { type: i0.Pipe, args: [{
1412
+ name: 'kmsTypeOf',
1413
+ },] }
1414
+ ];
1415
+
1416
+ /**
1417
+ * @copyright KMS GmbH
1418
+ */
1419
+ var TrimPipe = /** @class */ (function () {
1420
+ function TrimPipe() {
1421
+ }
1422
+ TrimPipe.prototype.transform = function (value) {
1423
+ if (!value) {
1424
+ return '';
1425
+ }
1426
+ return value.trim();
1427
+ };
1428
+ return TrimPipe;
1429
+ }());
1430
+ TrimPipe.decorators = [
1431
+ { type: i0.Pipe, args: [{ name: 'kmsTrim' },] }
1432
+ ];
1433
+
1434
+ /**
1435
+ * @copyright KMS GmbH
1436
+ */
1437
+ var ToNumberPipe = /** @class */ (function () {
1438
+ function ToNumberPipe() {
1439
+ }
1440
+ ToNumberPipe.prototype.transform = function (items) {
1441
+ if (!items) {
1442
+ return 0;
1443
+ }
1444
+ return parseInt(items, 10);
1445
+ };
1446
+ return ToNumberPipe;
1447
+ }());
1448
+ ToNumberPipe.decorators = [
1449
+ { type: i0.Pipe, args: [{
1450
+ name: 'kmsToNumber',
1451
+ pure: false
1452
+ },] }
1453
+ ];
1454
+
1455
+ /**
1456
+ * @copyright KMS GmbH
1457
+ */
1458
+ var CustomPipesModule = /** @class */ (function () {
1459
+ function CustomPipesModule() {
1460
+ }
1461
+ return CustomPipesModule;
1462
+ }());
1463
+ CustomPipesModule.decorators = [
1464
+ { type: i0.NgModule, args: [{
1465
+ declarations: [
1466
+ IntegerCurrency,
1467
+ SafeHtmlPipe,
1468
+ SafeStylePipe,
1469
+ SafeUrlPipe,
1470
+ EncodeUriPipe,
1471
+ DecodeUriPipe,
1472
+ TypeofPipe,
1473
+ TrimPipe,
1474
+ ToNumberPipe,
1475
+ ],
1476
+ imports: [common.CommonModule],
1477
+ exports: [
1478
+ IntegerCurrency,
1479
+ SafeHtmlPipe,
1480
+ SafeStylePipe,
1481
+ SafeUrlPipe,
1482
+ EncodeUriPipe,
1483
+ DecodeUriPipe,
1484
+ TypeofPipe,
1485
+ TrimPipe,
1486
+ ToNumberPipe,
1487
+ ],
1488
+ providers: [common.CurrencyPipe],
1489
+ },] }
1490
+ ];
1491
+
1492
+ /*!
1493
+ * @copyright FLYACTS GmbH 2019
1494
+ */
1495
+ var IconSize;
1496
+ (function (IconSize) {
1497
+ IconSize["FULLSIZE"] = "size-full";
1498
+ IconSize["TINY"] = "size-16";
1499
+ IconSize["SMALLER"] = "size-20";
1500
+ IconSize["SMALL"] = "size-32";
1501
+ IconSize["MEDIUM"] = "size-64";
1502
+ IconSize["LARGE"] = "size-128";
1503
+ IconSize["XL"] = "size-256";
1504
+ IconSize["XXL"] = "size-512";
1505
+ IconSize["XXXL"] = "size-1024";
1506
+ IconSize["NONE"] = "NONE";
1507
+ })(IconSize || (IconSize = {}));
1508
+
1509
+ /**
1510
+ * @copyright KMS GmbH
1511
+ */
1512
+ var IconComponent = /** @class */ (function () {
1513
+ function IconComponent(sanitizer) {
1514
+ this.sanitizer = sanitizer;
1515
+ /**
1516
+ * Optional: Different size via CSS inline style.
1517
+ */
1518
+ this.iconSize = IconSize.FULLSIZE;
1519
+ /**
1520
+ * Dont use icon sprite
1521
+ */
1522
+ this.dontUseSprite = false;
1523
+ this.IconSize = IconSize;
1524
+ this.Version = i0.VERSION.full;
1525
+ this.timestamp = 0;
1526
+ this.iconToShow = this.icon;
1527
+ }
1528
+ IconComponent.prototype.ngOnInit = function () {
1529
+ this.iconToShow = this.icon;
1530
+ var d = new Date();
1531
+ var n = d.getTime();
1532
+ this.timestamp = n;
1533
+ };
1534
+ return IconComponent;
1535
+ }());
1536
+ IconComponent.decorators = [
1537
+ { type: i0.Component, args: [{
1538
+ selector: 'kms-icon',
1539
+ template: "<ng-container *ngIf=\"icon !== 'none' && dontUseSprite === false\">\n <span class=\"icon {{ iconSize }}\" [ngClass]=\"iconClass\" [ngStyle]=\"iconStyle\">\n <svg>\n <use\n [attr.xlink:href]=\"\n 'assets/sprite.svg?Version=' + Version + '#' + iconToShow\n \"\n ></use>\n </svg>\n </span>\n</ng-container>\n<ng-container *ngIf=\"icon !== 'none' && dontUseSprite === true\">\n <object\n [data]=\"\n sanitizer.bypassSecurityTrustResourceUrl('assets/icons/' + icon + '')\n \"\n type=\"image/svg+xml\"\n class=\"icon {{ iconSize }}\"\n [ngClass]=\"iconClass\"\n [ngStyle]=\"iconStyle\"\n ></object>\n</ng-container>\n",
1540
+ styles: [""]
1541
+ },] }
1542
+ ];
1543
+ IconComponent.ctorParameters = function () { return [
1544
+ { type: platformBrowser.DomSanitizer }
1545
+ ]; };
1546
+ IconComponent.propDecorators = {
1547
+ icon: [{ type: i0.Input }],
1548
+ iconClass: [{ type: i0.Input }],
1549
+ iconStyle: [{ type: i0.Input }],
1550
+ iconSize: [{ type: i0.Input }],
1551
+ dontUseSprite: [{ type: i0.Input }]
1552
+ };
1553
+
1554
+ var EnumRadiogroupComponent = /** @class */ (function (_super) {
1555
+ __extends(EnumRadiogroupComponent, _super);
1556
+ function EnumRadiogroupComponent(formBuilder, renderer) {
1557
+ var _this = _super.call(this, formBuilder, renderer) || this;
1558
+ _this.formBuilder = formBuilder;
1559
+ _this.renderer = renderer;
1560
+ _this.translationPrefix = '';
1561
+ return _this;
1562
+ }
1563
+ EnumRadiogroupComponent.prototype.ngOnInit = function () {
1564
+ var _this = this;
1565
+ this.optionValues = Object.keys(this.optionsEnum).filter(function (x) { return !(parseInt(x) >= 0); });
1566
+ this.form = this.formBuilder.group({
1567
+ enumData: [],
1568
+ });
1569
+ this.formInitialized = true;
1570
+ this.form.valueChanges.subscribe(function (value) {
1571
+ _this.internalValue = value.enumData;
1572
+ _this.onChange(value.enumData);
1573
+ });
1574
+ _super.prototype.ngOnInit.call(this);
1575
+ };
1576
+ return EnumRadiogroupComponent;
1577
+ }(FormControlParentComponent));
1578
+ EnumRadiogroupComponent.decorators = [
1579
+ { type: i0.Component, args: [{
1580
+ selector: 'kms-enum-radiogroup',
1581
+ template: "<form [formGroup]=\"form\">\n <div>{{ header }}</div>\n <mat-radio-group [formControl]=\"form.controls['enumData']\" [disabled]=\"disabled\" #child>\n <mat-radio-button [value]=\"choice\" [checked]=\"value === choice\" *ngFor=\"let choice of optionValues\">{{ translationPrefix + '.' + choice | translate }}</mat-radio-button>\n </mat-radio-group>\n</form>",
1582
+ providers: [
1583
+ {
1584
+ provide: forms.NG_VALUE_ACCESSOR,
1585
+ useExisting: i0.forwardRef(function () { return EnumRadiogroupComponent; }),
1586
+ multi: true,
1587
+ },
1588
+ ]
1589
+ },] }
1590
+ ];
1591
+ EnumRadiogroupComponent.ctorParameters = function () { return [
1592
+ { type: forms.FormBuilder },
1593
+ { type: i0.Renderer2 }
1594
+ ]; };
1595
+ EnumRadiogroupComponent.propDecorators = {
1596
+ header: [{ type: i0.Input }],
1597
+ optionsEnum: [{ type: i0.Input }],
1598
+ translationPrefix: [{ type: i0.Input }]
1599
+ };
1600
+
1601
+ /*!
1602
+ * @copyright FLYACTS GmbH 2019
1603
+ */
1604
+ /**
1605
+ * A generic dialog component
1606
+ */
1607
+ var KMSAccordionItemComponent = /** @class */ (function () {
1608
+ function KMSAccordionItemComponent(sanitizer) {
1609
+ this.sanitizer = sanitizer;
1610
+ this.itemTitle = '';
1611
+ this.showAsCard = false;
1612
+ this.isSmall = false;
1613
+ this.panelOpenState = false;
1614
+ }
1615
+ KMSAccordionItemComponent.prototype.ngOnInit = function () {
1616
+ this.itemTitleTrustHtml = this.sanitizer.bypassSecurityTrustHtml(this.itemTitle);
1617
+ };
1618
+ return KMSAccordionItemComponent;
1619
+ }());
1620
+ KMSAccordionItemComponent.decorators = [
1621
+ { type: i0.Component, args: [{
1622
+ selector: 'kms-accordion-item',
1623
+ template: "<mat-expansion-panel\n class=\"accordion-item\" \n [ngClass]=\"{showAsCard: showAsCard, showFlat: !showAsCard, isSmall: isSmall}\"\n (opened)=\"panelOpenState = true\" \n (closed)=\"panelOpenState = false\"\n hideToggle=\"true\">\n <mat-expansion-panel-header class=\"accordion-item-header\">\n <mat-panel-title class=\"mat-subheading-2 accordion-item-title\">\n <div [innerHtml]=\"itemTitleTrustHtml\"></div>\n <ng-content select=\"[itemTitleElement]\"></ng-content> \n </mat-panel-title>\n <div class=\"accordion-item-header-icon-wrapper\">\n <kms-icon *ngIf=\"!panelOpenState\" icon=\"ic_plus\" iconClass=\"color-red\" class=\"accordion-item-header-icon-wrapper-desktop\"></kms-icon>\n <kms-icon *ngIf=\"panelOpenState\" icon=\"ic_minus\" iconClass=\"color-red\" class=\"accordion-item-header-icon-wrapper-desktop\"></kms-icon>\n\n <kms-icon *ngIf=\"!panelOpenState\" icon=\"chevron-down\" iconClass=\"color-red\" class=\"accordion-item-header-icon-wrapper-mobile\"></kms-icon>\n <kms-icon *ngIf=\"panelOpenState\" icon=\"chevron-top\" iconClass=\"color-red\" class=\"accordion-item-header-icon-wrapper-mobile\"></kms-icon>\n </div>\n </mat-expansion-panel-header>\n <ng-content></ng-content>\n</mat-expansion-panel>",
1624
+ styles: [""]
1625
+ },] }
1626
+ ];
1627
+ KMSAccordionItemComponent.ctorParameters = function () { return [
1628
+ { type: platformBrowser.DomSanitizer }
1629
+ ]; };
1630
+ KMSAccordionItemComponent.propDecorators = {
1631
+ itemTitle: [{ type: i0.Input }],
1632
+ showAsCard: [{ type: i0.Input }],
1633
+ isSmall: [{ type: i0.Input }]
1634
+ };
1635
+
1636
+ /**
1637
+ * Service to get viewport
1638
+ */
1639
+ var ViewportService = /** @class */ (function () {
1640
+ function ViewportService(platformId) {
1641
+ this.platformId = platformId;
1642
+ this.viewports = [
1643
+ {
1644
+ name: 'xs',
1645
+ low: 420,
1646
+ high: 990,
1647
+ },
1648
+ {
1649
+ name: 's',
1650
+ low: 991,
1651
+ high: 1024,
1652
+ },
1653
+ {
1654
+ name: 'm',
1655
+ low: 1025,
1656
+ high: 1200,
1657
+ },
1658
+ {
1659
+ name: 'l',
1660
+ low: 12001,
1661
+ high: 1400,
1662
+ },
1663
+ {
1664
+ name: 'xl',
1665
+ low: 1401,
1666
+ high: 1600,
1667
+ },
1668
+ {
1669
+ name: 'xxl',
1670
+ low: 1601,
1671
+ high: 1920,
1672
+ },
1673
+ {
1674
+ name: 'xxxl',
1675
+ low: 1921,
1676
+ high: 99999,
1677
+ },
1678
+ ];
1679
+ this.viewportChangedSubscriber = new rxjs.Subject();
1680
+ this.viewportResizedSubscriber = new rxjs.Subject();
1681
+ if (common.isPlatformBrowser(this.platformId)) {
1682
+ window.addEventListener('resize', this.documentSizeChanged.bind(this), { passive: true });
1683
+ }
1684
+ }
1685
+ /**
1686
+ * Get window height
1687
+ */
1688
+ ViewportService.prototype.getDocumentHeight = function () {
1689
+ return common.isPlatformBrowser(this.platformId) ? document.body.clientHeight : 1200;
1690
+ };
1691
+ /**
1692
+ * Get window width
1693
+ */
1694
+ ViewportService.prototype.getDocumentWidth = function () {
1695
+ return common.isPlatformBrowser(this.platformId) ? document.body.clientWidth : 1200;
1696
+ };
1697
+ /**
1698
+ * Get window height
1699
+ */
1700
+ ViewportService.prototype.getWindowHeight = function () {
1701
+ return common.isPlatformBrowser(this.platformId) ? window.innerHeight : 1200;
1702
+ };
1703
+ /**
1704
+ * Get window width
1705
+ */
1706
+ ViewportService.prototype.getWindowWidth = function () {
1707
+ return common.isPlatformBrowser(this.platformId) ? window.innerWidth : 1200;
1708
+ };
1709
+ /**
1710
+ * Returns the current viewport MQ as string
1711
+ * @returns string
1712
+ */
1713
+ ViewportService.prototype.getCurrentViewPort = function () {
1714
+ if (!this.currentViewport) {
1715
+ var currentWidth = common.isPlatformBrowser(this.platformId) ? document.body.clientWidth : 1200;
1716
+ this.currentViewport = this.convertWidthToMediaQuery(currentWidth);
1717
+ }
1718
+ return this.currentViewport;
1719
+ };
1720
+ /**
1721
+ * Provides mq´s as string
1722
+ */
1723
+ ViewportService.prototype.getViewportChangedObserver = function () {
1724
+ return this.viewportChangedSubscriber.asObservable();
1725
+ };
1726
+ /**
1727
+ * Provides the current window width as number
1728
+ */
1729
+ ViewportService.prototype.getViewportResizedObserver = function () {
1730
+ return this.viewportResizedSubscriber.asObservable();
1731
+ };
1732
+ ViewportService.prototype.scrollToElementId = function (el, alignCenter) {
1733
+ if (alignCenter === void 0) { alignCenter = false; }
1734
+ if (common.isPlatformBrowser(this.platformId)) {
1735
+ this.scrollToElement(document.querySelector('#' + el), alignCenter);
1736
+ }
1737
+ };
1738
+ /**
1739
+ * Helper function that scrolls to the given markup element.
1740
+ * @param el - nativeElement from markup
1741
+ * @param alignCenter - defines if the element needs to be centered on window
1742
+ */
1743
+ ViewportService.prototype.scrollToElement = function (el, alignCenter) {
1744
+ if (alignCenter === void 0) { alignCenter = false; }
1745
+ if (common.isPlatformBrowser(this.platformId)) {
1746
+ var extraScrollTop = 0;
1747
+ if (alignCenter) {
1748
+ extraScrollTop = (window.innerHeight - el.clientHeight) / 2;
1749
+ }
1750
+ /*
1751
+ const elementPos: DOMRect = el.getBoundingClientRect();
1752
+ const scrollTopPosition = elementPos.x - extraScrollTop;
1753
+ */
1754
+ //let offsetLeft = 0;
1755
+ var offsetTop = 0;
1756
+ var elTemp = el;
1757
+ while (elTemp) {
1758
+ //offsetLeft += elTemp.offsetLeft;
1759
+ offsetTop += elTemp.offsetTop;
1760
+ elTemp = elTemp.parentElement ? elTemp.parentElement : null;
1761
+ }
1762
+ window.scrollTo({ left: 0, top: offsetTop - extraScrollTop, behavior: 'smooth' });
1763
+ }
1764
+ };
1765
+ /**
1766
+ * Scroll to the top position
1767
+ * @param top - top position value
1768
+ */
1769
+ ViewportService.prototype.scrollTop = function (top) {
1770
+ if (common.isPlatformBrowser(this.platformId)) {
1771
+ window.scrollTo({ left: 0, top: top, behavior: 'smooth' });
1772
+ }
1773
+ };
1774
+ ViewportService.prototype.ngOnDestroy = function () {
1775
+ if (common.isPlatformBrowser(this.platformId)) {
1776
+ window.removeEventListener('resize', this.documentSizeChanged);
1777
+ }
1778
+ };
1779
+ /**
1780
+ * If viewport changed
1781
+ * @event
1782
+ */
1783
+ ViewportService.prototype.documentSizeChanged = function (event) {
1784
+ var e_1, _a;
1785
+ var currentWindowWidth = event.target.innerWidth;
1786
+ // inform who´s interested
1787
+ this.viewportResizedSubscriber.next(currentWindowWidth);
1788
+ if (currentWindowWidth > 0) {
1789
+ try {
1790
+ for (var _b = __values(this.viewports), _c = _b.next(); !_c.done; _c = _b.next()) {
1791
+ var mqs = _c.value;
1792
+ if (currentWindowWidth > mqs.high) {
1793
+ continue;
1794
+ }
1795
+ else if ((currentWindowWidth >= mqs.low || currentWindowWidth <= mqs.high) &&
1796
+ this.currentViewport !== mqs.name) {
1797
+ this.currentViewport = mqs.name;
1798
+ // inform who´s interested
1799
+ this.viewportChangedSubscriber.next(mqs.name);
1800
+ break;
1801
+ }
1802
+ else if (this.currentViewport === mqs.name) {
1803
+ break;
1804
+ }
1805
+ else {
1806
+ console.error('ERROR');
1807
+ }
1808
+ }
1809
+ }
1810
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
1811
+ finally {
1812
+ try {
1813
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1814
+ }
1815
+ finally { if (e_1) throw e_1.error; }
1816
+ }
1817
+ }
1818
+ };
1819
+ /**
1820
+ * Get the Media Query for the given width
1821
+ * @param width Width to get the according MQ for
1822
+ */
1823
+ ViewportService.prototype.convertWidthToMediaQuery = function (width) {
1824
+ var e_2, _a;
1825
+ var currentViewport = '';
1826
+ try {
1827
+ for (var _b = __values(this.viewports), _c = _b.next(); !_c.done; _c = _b.next()) {
1828
+ var mqs = _c.value;
1829
+ if (width <= mqs.high && width >= mqs.low) {
1830
+ currentViewport = mqs.name;
1831
+ break;
1832
+ }
1833
+ }
1834
+ }
1835
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
1836
+ finally {
1837
+ try {
1838
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1839
+ }
1840
+ finally { if (e_2) throw e_2.error; }
1841
+ }
1842
+ return currentViewport;
1843
+ };
1844
+ ViewportService.prototype.isPortrait = function () {
1845
+ if (common.isPlatformBrowser(this.platformId))
1846
+ return window.innerHeight > window.innerWidth;
1847
+ else
1848
+ return;
1849
+ };
1850
+ ViewportService.prototype.isLandscape = function () {
1851
+ if (common.isPlatformBrowser(this.platformId)) {
1852
+ var isLandscape = window.orientation === 90 || window.orientation === -90;
1853
+ return isLandscape;
1854
+ }
1855
+ else {
1856
+ return;
1857
+ }
1858
+ };
1859
+ return ViewportService;
1860
+ }());
1861
+ ViewportService.decorators = [
1862
+ { type: i0.Injectable }
1863
+ ];
1864
+ ViewportService.ctorParameters = function () { return [
1865
+ { type: Object, decorators: [{ type: i0.Inject, args: [i0.PLATFORM_ID,] }] }
1866
+ ]; };
1867
+
1868
+ /*!
1869
+ * @copyright FLYACTS GmbH 2019
1870
+ */
1871
+ /**
1872
+ * MarkerOptions class for Marker
1873
+ */
1874
+ var MarkerOptions = /** @class */ (function () {
1875
+ function MarkerOptions() {
1876
+ }
1877
+ return MarkerOptions;
1878
+ }());
1879
+ /**
1880
+ * MarkerLabel class for Marker
1881
+ */
1882
+ var MarkerLabel = /** @class */ (function () {
1883
+ function MarkerLabel() {
1884
+ }
1885
+ return MarkerLabel;
1886
+ }());
1887
+ /**
1888
+ * Marker class
1889
+ */
1890
+ var Marker = /** @class */ (function () {
1891
+ function Marker() {
1892
+ }
1893
+ return Marker;
1894
+ }());
1895
+ /**
1896
+ * Component to show marker on google map for specific address
1897
+ */
1898
+ var MapComponent = /** @class */ (function () {
1899
+ //
1900
+ function MapComponent(viewPortService) {
1901
+ this.viewPortService = viewPortService;
1902
+ this.markers = [];
1903
+ this.geoDataFoundForAddress = false;
1904
+ this.widthSet = false;
1905
+ this.width = '100%';
1906
+ this.zoom = 15;
1907
+ this.center = {
1908
+ lat: 52.097449,
1909
+ lng: 12.7436911,
1910
+ };
1911
+ this.options = {
1912
+ mapTypeId: 'roadmap',
1913
+ zoomControl: false,
1914
+ scrollwheel: false,
1915
+ disableDoubleClickZoom: true,
1916
+ maxZoom: 15,
1917
+ minZoom: 8,
1918
+ };
1919
+ }
1920
+ MapComponent.prototype.ngOnInit = function () {
1921
+ this.findLocation(this.data.Street + ' ' + this.data.Zip + ' ' + this.data.City);
1922
+ };
1923
+ /**
1924
+ * Asks google for geocoordinates of a given address string
1925
+ * @input address as string
1926
+ */
1927
+ MapComponent.prototype.findLocation = function (address) {
1928
+ var _this = this;
1929
+ if (!this.geocoder) {
1930
+ this.geocoder = new google.maps.Geocoder();
1931
+ }
1932
+ this.geocoder.geocode({
1933
+ 'address': address,
1934
+ }, function (results, status) {
1935
+ if (status === google.maps.GeocoderStatus.OK) {
1936
+ _this.center.lat = results[0].geometry.location.lat();
1937
+ _this.center.lng = results[0].geometry.location.lng();
1938
+ _this.addMarker();
1939
+ _this.geoDataFoundForAddress = true;
1940
+ // react to browser resize
1941
+ _this.setMapWidth(_this.viewPortService.getDocumentWidth());
1942
+ _this.viewportSubscription = _this.viewPortService.getViewportResizedObserver().subscribe(function (val) {
1943
+ _this.setMapWidth(val);
1944
+ }, function (error) {
1945
+ console.error('Get updated ViewPort failed', error);
1946
+ });
1947
+ }
1948
+ else {
1949
+ console.error('Sorry, this search of map address produced no results.');
1950
+ }
1951
+ });
1952
+ };
1953
+ /**
1954
+ * Adds a marker to the map
1955
+ */
1956
+ MapComponent.prototype.addMarker = function () {
1957
+ this.markers.push({
1958
+ position: {
1959
+ lat: this.center.lat,
1960
+ lng: this.center.lng,
1961
+ },
1962
+ label: {
1963
+ color: 'blue',
1964
+ text: this.data.Name1 || '',
1965
+ },
1966
+ title: this.data.Name1 + ' ' + this.data.Street + ' ' + this.data.Zip,
1967
+ options: { animation: google.maps.Animation.DROP },
1968
+ });
1969
+ };
1970
+ /**
1971
+ * sets the width of map accodring to viewport
1972
+ */
1973
+ MapComponent.prototype.setMapWidth = function (val) {
1974
+ if (val < 991) {
1975
+ this.width = (val - 84) + 'px';
1976
+ }
1977
+ else {
1978
+ this.width = '100%';
1979
+ }
1980
+ this.widthSet = true;
1981
+ };
1982
+ /**
1983
+ * Zooms in into map
1984
+ */
1985
+ MapComponent.prototype.zoomIn = function () {
1986
+ if (this.options.maxZoom && this.zoom < this.options.maxZoom) {
1987
+ this.zoom++;
1988
+ }
1989
+ };
1990
+ /**
1991
+ * Zooms out from map
1992
+ */
1993
+ MapComponent.prototype.zoomOut = function () {
1994
+ if (this.options.minZoom && this.zoom > this.options.minZoom) {
1995
+ this.zoom--;
1996
+ }
1997
+ };
1998
+ return MapComponent;
1999
+ }());
2000
+ MapComponent.decorators = [
2001
+ { type: i0.Component, args: [{
2002
+ selector: 'kms-map',
2003
+ template: "<div *ngIf=\"geoDataFoundForAddress && widthSet\">\n <google-map\n height=\"415px\"\n [width]=\"width\"\n [zoom]=\"zoom\"\n [center]=\"center\"\n [options]=\"options\"\n >\n <map-marker\n *ngFor=\"let marker of markers\"\n [position]=\"marker.position\"\n [label]=\"marker.label\"\n [title]=\"marker.title\"\n [options]=\"marker.options\"\n >\n </map-marker>\n </google-map>\n</div>",
2004
+ styles: [""]
2005
+ },] }
2006
+ ];
2007
+ MapComponent.ctorParameters = function () { return [
2008
+ { type: ViewportService }
2009
+ ]; };
2010
+ MapComponent.propDecorators = {
2011
+ data: [{ type: i0.Input }]
2012
+ };
2013
+
2014
+ // TODO change values after cleaned up database
2015
+ (function (SalutationEnum) {
2016
+ SalutationEnum["NOT_SPECIFIED"] = "Keine Anrede";
2017
+ SalutationEnum["MALE"] = "Herr";
2018
+ SalutationEnum["FEMALE"] = "Frau";
2019
+ })(exports.SalutationEnum || (exports.SalutationEnum = {}));
2020
+
2021
+ var SalutationDropdownComponent = /** @class */ (function (_super) {
2022
+ __extends(SalutationDropdownComponent, _super);
2023
+ function SalutationDropdownComponent(formBuilder, renderer) {
2024
+ var _this = _super.call(this, formBuilder, renderer) || this;
2025
+ _this.formBuilder = formBuilder;
2026
+ _this.renderer = renderer;
2027
+ //For view
2028
+ _this.SalutationEnum = exports.SalutationEnum;
2029
+ _this.Object = Object;
2030
+ return _this;
2031
+ }
2032
+ SalutationDropdownComponent.prototype.ngOnInit = function () {
2033
+ var _this = this;
2034
+ this.form = this.formBuilder.group({
2035
+ salut: [],
2036
+ });
2037
+ this.formInitialized = true;
2038
+ //somehow for dropowns we have to set value manually with timeout for default value
2039
+ setTimeout(function () {
2040
+ _this.form.controls['salut'].setValue(_this.value ? _this.value : '');
2041
+ }, 1000);
2042
+ this.form.valueChanges.subscribe(function (value) {
2043
+ _this.onChange(value.salut);
2044
+ });
2045
+ _super.prototype.ngOnInit.call(this);
2046
+ };
2047
+ return SalutationDropdownComponent;
2048
+ }(FormControlParentComponent));
2049
+ SalutationDropdownComponent.decorators = [
2050
+ { type: i0.Component, args: [{
2051
+ selector: 'kms-salutation-dropdown',
2052
+ template: "<form [formGroup]=\"form\" class=\"row\">\n <mat-form-field class=\"col\">\n <mat-select disableOptionCentering [formControl]=\"form.controls['salut']\" [placeholder]=\"placeholder\" [value]=\"value\" #child>\n <mat-option [value]=\"SalutationEnum.NOT_SPECIFIED\">{{ 'general.salutation.' + Object.keys(SalutationEnum)[0]?.toLowerCase() | translate }}</mat-option>\n <mat-option [value]=\"SalutationEnum.MALE\">{{ 'general.salutation.' + Object.keys(SalutationEnum)[1]?.toLowerCase() | translate }}</mat-option>\n <mat-option [value]=\"SalutationEnum.FEMALE\">{{ 'general.salutation.' + Object.keys(SalutationEnum)[2]?.toLowerCase() | translate }}</mat-option>\n </mat-select>\n </mat-form-field>\n</form>",
2053
+ providers: [
2054
+ {
2055
+ provide: forms.NG_VALUE_ACCESSOR,
2056
+ useExisting: i0.forwardRef(function () { return SalutationDropdownComponent; }),
2057
+ multi: true,
2058
+ },
2059
+ ]
2060
+ },] }
2061
+ ];
2062
+ SalutationDropdownComponent.ctorParameters = function () { return [
2063
+ { type: forms.FormBuilder },
2064
+ { type: i0.Renderer2 }
2065
+ ]; };
2066
+ SalutationDropdownComponent.propDecorators = {
2067
+ placeholder: [{ type: i0.Input }]
2068
+ };
2069
+
2070
+ var TooltipComponent = /** @class */ (function () {
2071
+ function TooltipComponent() {
2072
+ this.tooltipTitle = "";
2073
+ }
2074
+ return TooltipComponent;
2075
+ }());
2076
+ TooltipComponent.decorators = [
2077
+ { type: i0.Component, args: [{
2078
+ selector: 'kms-tooltip-element',
2079
+ template: "<ng-content></ng-content>",
2080
+ styles: ["[kmsTooltip]{position:relative}"]
2081
+ },] }
2082
+ ];
2083
+ TooltipComponent.propDecorators = {
2084
+ tooltipTitle: [{ type: i0.Input }]
2085
+ };
2086
+
2087
+ /**
2088
+ * Attached File DTO
2089
+ */
2090
+ var AttachedFileDTO = /** @class */ (function () {
2091
+ function AttachedFileDTO() {
2092
+ }
2093
+ return AttachedFileDTO;
2094
+ }());
2095
+
2096
+ var TooltipIconComponent = /** @class */ (function () {
2097
+ function TooltipIconComponent() {
2098
+ this.tooltipTitle = "";
2099
+ this.tooltipText = "";
2100
+ this.tooltipLinkText = "";
2101
+ this.tooltipLinkUrl = "";
2102
+ this.placement = "";
2103
+ this.delay = 1000;
2104
+ this.IconSize = exports.IconSize;
2105
+ }
2106
+ return TooltipIconComponent;
2107
+ }());
2108
+ TooltipIconComponent.decorators = [
2109
+ { type: i0.Component, args: [{
2110
+ selector: 'kms-tooltip-icon',
2111
+ template: "<span\n kmsTooltip\n [tooltipTitle]=\"tooltipTitle\"\n [tooltipText]=\"tooltipText\"\n [tooltipPlacement]=\"placement\"\n [tooltipDelay]=\"delay\"\n [tooltipLinkText]=\"tooltipLinkText\"\n [tooltipLinkUrl]=\"tooltipLinkUrl\"\n>\n <kms-icon icon=\"ic_info\" [iconSize]=\"IconSize.SMALLER\" [iconClass]=\"'color-primary'\"></kms-icon>\n</span>\n",
2112
+ styles: [""]
2113
+ },] }
2114
+ ];
2115
+ TooltipIconComponent.propDecorators = {
2116
+ tooltipTitle: [{ type: i0.Input }],
2117
+ tooltipText: [{ type: i0.Input }],
2118
+ tooltipLinkText: [{ type: i0.Input }],
2119
+ tooltipLinkUrl: [{ type: i0.Input }],
2120
+ placement: [{ type: i0.Input }],
2121
+ delay: [{ type: i0.Input }]
2122
+ };
2123
+
2124
+ var SalutationRadiogroupComponent = /** @class */ (function (_super) {
2125
+ __extends(SalutationRadiogroupComponent, _super);
2126
+ function SalutationRadiogroupComponent(formBuilder, renderer) {
2127
+ var _this = _super.call(this, formBuilder, renderer) || this;
2128
+ _this.formBuilder = formBuilder;
2129
+ _this.renderer = renderer;
2130
+ //For view
2131
+ _this.SalutationEnum = exports.SalutationEnum;
2132
+ _this.Object = Object;
2133
+ return _this;
2134
+ }
2135
+ SalutationRadiogroupComponent.prototype.ngOnInit = function () {
2136
+ var _this = this;
2137
+ this.form = this.formBuilder.group({
2138
+ salut: [isValue(this.value) ? this.value : '', null],
2139
+ });
2140
+ this.formInitialized = true;
2141
+ this.form.valueChanges.subscribe(function (value) {
2142
+ _this.internalValue = value.salut;
2143
+ _this.onChange(value.salut);
2144
+ });
2145
+ _super.prototype.ngOnInit.call(this);
2146
+ };
2147
+ return SalutationRadiogroupComponent;
2148
+ }(FormControlParentComponent));
2149
+ SalutationRadiogroupComponent.decorators = [
2150
+ { type: i0.Component, args: [{
2151
+ selector: 'kms-salutation-radiogroup',
2152
+ template: "<form [formGroup]=\"form\" >\n <mat-radio-group [formControl]=\"form.controls['salut']\" [disabled]=\"disabled\" #radioGroup>\n <mat-radio-button color=\"primary\" [value]=\"SalutationEnum.NOT_SPECIFIED\" [checked]=\"value === SalutationEnum.NOT_SPECIFIED\">\n {{ 'general.salutation.' + Object.keys(SalutationEnum)[0]?.toLowerCase() | translate }}\n </mat-radio-button>\n <mat-radio-button color=\"primary\" [value]=\"SalutationEnum.MALE\" [checked]=\"value === SalutationEnum.MALE\">\n {{ 'general.salutation.' + Object.keys(SalutationEnum)[1]?.toLowerCase() | translate }}\n </mat-radio-button>\n <mat-radio-button color=\"primary\" [value]=\"SalutationEnum.FEMALE\" [checked]=\"value === SalutationEnum.FEMALE\">\n {{ 'general.salutation.' + Object.keys(SalutationEnum)[2]?.toLowerCase() | translate }}\n </mat-radio-button>\n </mat-radio-group>\n</form>",
2153
+ providers: [
2154
+ {
2155
+ provide: forms.NG_VALUE_ACCESSOR,
2156
+ useExisting: i0.forwardRef(function () { return SalutationRadiogroupComponent; }),
2157
+ multi: true,
2158
+ },
2159
+ ]
2160
+ },] }
2161
+ ];
2162
+ SalutationRadiogroupComponent.ctorParameters = function () { return [
2163
+ { type: forms.FormBuilder },
2164
+ { type: i0.Renderer2 }
2165
+ ]; };
2166
+
2167
+ /**
2168
+ * @copyright KMS GmbH
2169
+ */
2170
+ var BackToTopComponent = /** @class */ (function () {
2171
+ function BackToTopComponent(platformId) {
2172
+ this.platformId = platformId;
2173
+ }
2174
+ BackToTopComponent.prototype.onWindowScroll = function () {
2175
+ if (common.isPlatformBrowser(this.platformId)) {
2176
+ if (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop > 100) {
2177
+ this.windowScrolled = true;
2178
+ }
2179
+ else if ((this.windowScrolled && window.pageYOffset) ||
2180
+ document.documentElement.scrollTop ||
2181
+ document.body.scrollTop < 10) {
2182
+ this.windowScrolled = false;
2183
+ }
2184
+ }
2185
+ };
2186
+ BackToTopComponent.prototype.scrollToTop = function () {
2187
+ if (common.isPlatformBrowser(this.platformId)) {
2188
+ (function smoothscroll() {
2189
+ var currentScroll = document.documentElement.scrollTop || document.body.scrollTop;
2190
+ if (currentScroll > 0) {
2191
+ window.requestAnimationFrame(smoothscroll);
2192
+ window.scrollTo(0, currentScroll - currentScroll / 8);
2193
+ }
2194
+ })();
2195
+ }
2196
+ };
2197
+ return BackToTopComponent;
2198
+ }());
2199
+ BackToTopComponent.decorators = [
2200
+ { type: i0.Component, args: [{
2201
+ selector: 'kms-back-to-top',
2202
+ template: "<div class=\"scrollToTop\"\n [ngClass]=\"{'show': windowScrolled}\"\n (click)=\"scrollToTop()\">\n <div class=\"scrollToTop-inner\">\n <kms-icon icon=\"floating_button_clear\" iconClass=\"color-white\"></kms-icon>\n </div>\n</div>"
2203
+ },] }
2204
+ ];
2205
+ BackToTopComponent.ctorParameters = function () { return [
2206
+ { type: Object, decorators: [{ type: i0.Inject, args: [i0.PLATFORM_ID,] }] }
2207
+ ]; };
2208
+ BackToTopComponent.propDecorators = {
2209
+ onWindowScroll: [{ type: i0.HostListener, args: ['window:scroll', [],] }]
2210
+ };
2211
+
2212
+ var ButtonResponseType;
2213
+ (function (ButtonResponseType) {
2214
+ ButtonResponseType["primary"] = "primary";
2215
+ ButtonResponseType["secondary"] = "secondary";
2216
+ })(ButtonResponseType || (ButtonResponseType = {}));
2217
+
2218
+ /**
2219
+ * @copyright KMS GmbH
2220
+ */
2221
+ /**
2222
+ * A generic dialog component
2223
+ */
2224
+ var GenericDialogComponent = /** @class */ (function () {
2225
+ function GenericDialogComponent(dialogRef, zone, data) {
2226
+ this.dialogRef = dialogRef;
2227
+ this.zone = zone;
2228
+ this.data = data;
2229
+ this.ButtonResponseType = ButtonResponseType;
2230
+ if (isValue(data.buttons)) {
2231
+ this.buttons = data.buttons;
2232
+ }
2233
+ else {
2234
+ this.buttons = { primary: 'Yes', secondary: 'No' };
2235
+ }
2236
+ }
2237
+ /**
2238
+ * Action called when clicked
2239
+ * @param clickedButton Whether the primary or secondary button was clicked
2240
+ */
2241
+ GenericDialogComponent.prototype.onClickAction = function (clickedButton) {
2242
+ var _this = this;
2243
+ this.zone.run(function () {
2244
+ _this.dialogRef.close(clickedButton);
2245
+ _this.dialogRef.afterClosed().subscribe(function () {
2246
+ var buttonList = document.querySelectorAll('.mat-flat-button, .mat-button');
2247
+ var i = 0;
2248
+ for (i; i < buttonList.length; i++) {
2249
+ buttonList[i].classList.remove('cdk-focused');
2250
+ buttonList[i].classList.remove('cdk-program-focused');
2251
+ }
2252
+ });
2253
+ });
2254
+ };
2255
+ return GenericDialogComponent;
2256
+ }());
2257
+ GenericDialogComponent.decorators = [
2258
+ { type: i0.Component, args: [{
2259
+ selector: 'kms-generic-dialog',
2260
+ template: "<div mat-dialog-title class=\"mat-dialog-title\">\n <h3>{{ data.title }}</h3>\n</div>\n<div mat-dialog-content class=\"mat-dialog-content\">\n {{ data.message }}\n</div>\n<div mat-dialog-actions class=\"custom-dialog-actions\">\n <button\n mat-flat-button\n class=\"test_secondary_button\"\n color=\"accent\"\n (click)=\"onClickAction(ButtonResponseType.secondary)\"\n >\n {{ buttons.secondary }}\n </button>\n <button\n mat-flat-button\n class=\"test_primary_button\"\n color=\"primary\"\n (click)=\"onClickAction(ButtonResponseType.primary)\"\n >\n {{ buttons.primary }}\n </button>\n</div>\n",
2261
+ styles: [""]
2262
+ },] }
2263
+ ];
2264
+ GenericDialogComponent.ctorParameters = function () { return [
2265
+ { type: dialog.MatDialogRef },
2266
+ { type: i0.NgZone },
2267
+ { type: undefined, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
2268
+ ]; };
2269
+
2270
+ var ButtonWithConfirmDialogComponent = /** @class */ (function () {
2271
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
2272
+ function ButtonWithConfirmDialogComponent(dialog) {
2273
+ this.dialog = dialog;
2274
+ // Outputs when dialogue was closed. Returns true, if yes was clicked, false otherwise
2275
+ this.onConfirmClosed = new i0.EventEmitter();
2276
+ this.subs = new subsink.SubSink();
2277
+ }
2278
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
2279
+ ButtonWithConfirmDialogComponent.prototype.ngOnInit = function () { };
2280
+ ButtonWithConfirmDialogComponent.prototype.start = function () {
2281
+ var _this = this;
2282
+ var data = {
2283
+ title: this.confirmTitle,
2284
+ buttons: {
2285
+ primary: this.confirmTextYes,
2286
+ secondary: this.confirmTextNo,
2287
+ }
2288
+ };
2289
+ var dialogRef = this.dialog.open(GenericDialogComponent, {
2290
+ data: data,
2291
+ });
2292
+ this.subs.sink = dialogRef.afterClosed().subscribe(function (result) {
2293
+ if (result === ButtonResponseType.primary) {
2294
+ _this.onConfirmClosed.emit(true);
2295
+ }
2296
+ else {
2297
+ _this.onConfirmClosed.emit(false);
2298
+ }
2299
+ dialogRef.close();
2300
+ });
2301
+ };
2302
+ return ButtonWithConfirmDialogComponent;
2303
+ }());
2304
+ ButtonWithConfirmDialogComponent.decorators = [
2305
+ { type: i0.Component, args: [{
2306
+ selector: 'kms-button-with-confirm-dialog',
2307
+ template: "<button\n type=\"button\"\n (click)=\"start()\"\n mat-stroked-button\n [disabled]=\"disabled\"\n>\n {{ buttonText }}\n</button>\n",
2308
+ styles: [""]
2309
+ },] }
2310
+ ];
2311
+ ButtonWithConfirmDialogComponent.ctorParameters = function () { return [
2312
+ { type: dialog.MatDialog }
2313
+ ]; };
2314
+ ButtonWithConfirmDialogComponent.propDecorators = {
2315
+ disabled: [{ type: i0.Input }],
2316
+ buttonText: [{ type: i0.Input }],
2317
+ confirmTitle: [{ type: i0.Input }],
2318
+ confirmTextYes: [{ type: i0.Input }],
2319
+ confirmTextNo: [{ type: i0.Input }],
2320
+ onConfirmClosed: [{ type: i0.Output }]
2321
+ };
2322
+
2323
+ var KmsUiPresentationalModule = /** @class */ (function () {
2324
+ function KmsUiPresentationalModule() {
2325
+ }
2326
+ return KmsUiPresentationalModule;
2327
+ }());
2328
+ KmsUiPresentationalModule.decorators = [
2329
+ { type: i0.NgModule, args: [{
2330
+ declarations: [
2331
+ KmsUiPresentationalComponent,
2332
+ ActionsParentComponent,
2333
+ CheckboxComponent,
2334
+ ColorInputComponent,
2335
+ RadioButtonComponent,
2336
+ TimeInputComponent,
2337
+ YesNoRadiogroupComponent,
2338
+ FileInputComponent,
2339
+ LoaderComponent,
2340
+ FlyoutComponent,
2341
+ IconComponent,
2342
+ EnumRadiogroupComponent,
2343
+ KMSAccordionItemComponent,
2344
+ EnumRadiogroupComponent,
2345
+ MapComponent,
2346
+ SalutationDropdownComponent,
2347
+ SalutationRadiogroupComponent,
2348
+ TooltipComponent,
2349
+ TooltipIconComponent,
2350
+ BackToTopComponent,
2351
+ GenericDialogComponent,
2352
+ ButtonWithConfirmDialogComponent,
2353
+ ],
2354
+ imports: [
2355
+ common.CommonModule,
2356
+ checkbox.MatCheckboxModule,
2357
+ button.MatButtonModule,
2358
+ radio.MatRadioModule,
2359
+ dialog.MatDialogModule,
2360
+ forms.FormsModule,
2361
+ forms.ReactiveFormsModule,
2362
+ CustomPipesModule,
2363
+ googleMaps.GoogleMapsModule,
2364
+ expansion.MatExpansionModule,
2365
+ ],
2366
+ exports: [
2367
+ KmsUiPresentationalComponent,
2368
+ ActionsParentComponent,
2369
+ CheckboxComponent,
2370
+ ColorInputComponent,
2371
+ RadioButtonComponent,
2372
+ TimeInputComponent,
2373
+ YesNoRadiogroupComponent,
2374
+ FileInputComponent,
2375
+ LoaderComponent,
2376
+ FlyoutComponent,
2377
+ IconComponent,
2378
+ EnumRadiogroupComponent,
2379
+ KMSAccordionItemComponent,
2380
+ EnumRadiogroupComponent,
2381
+ MapComponent,
2382
+ SalutationDropdownComponent,
2383
+ SalutationRadiogroupComponent,
2384
+ TooltipComponent,
2385
+ TooltipIconComponent,
2386
+ BackToTopComponent,
2387
+ GenericDialogComponent,
2388
+ ButtonWithConfirmDialogComponent
2389
+ ]
2390
+ },] }
2391
+ ];
2392
+
2393
+ /*
2394
+ * Public API Surface of kms-ngx-ui-presentational
2395
+ */
2396
+
2397
+ /**
2398
+ * Generated bundle index. Do not edit.
2399
+ */
2400
+
2401
+ exports.GenericDialogComponent = GenericDialogComponent;
2402
+ exports.KmsUiPresentationalComponent = KmsUiPresentationalComponent;
2403
+ exports.KmsUiPresentationalModule = KmsUiPresentationalModule;
2404
+ exports.KmsUiPresentationalService = KmsUiPresentationalService;
2405
+ exports.ɵa = ActionsParentComponent;
2406
+ exports.ɵb = CheckboxComponent;
2407
+ exports.ɵba = SafeStylePipe;
2408
+ exports.ɵbb = SafeUrlPipe;
2409
+ exports.ɵbc = EncodeUriPipe;
2410
+ exports.ɵbd = DecodeUriPipe;
2411
+ exports.ɵbe = TypeofPipe;
2412
+ exports.ɵbf = TrimPipe;
2413
+ exports.ɵbg = ToNumberPipe;
2414
+ exports.ɵc = ColorInputComponent;
2415
+ exports.ɵd = FormControlParentComponent;
2416
+ exports.ɵe = FormParentComponent;
2417
+ exports.ɵf = RadioButtonComponent;
2418
+ exports.ɵg = TimeInputComponent;
2419
+ exports.ɵh = YesNoRadiogroupComponent;
2420
+ exports.ɵi = FileInputComponent;
2421
+ exports.ɵj = LoaderComponent;
2422
+ exports.ɵk = FlyoutComponent;
2423
+ exports.ɵl = IconComponent;
2424
+ exports.ɵm = EnumRadiogroupComponent;
2425
+ exports.ɵn = KMSAccordionItemComponent;
2426
+ exports.ɵo = MapComponent;
2427
+ exports.ɵp = ViewportService;
2428
+ exports.ɵq = SalutationDropdownComponent;
2429
+ exports.ɵr = SalutationRadiogroupComponent;
2430
+ exports.ɵs = TooltipComponent;
2431
+ exports.ɵt = TooltipIconComponent;
2432
+ exports.ɵu = BackToTopComponent;
2433
+ exports.ɵw = ButtonWithConfirmDialogComponent;
2434
+ exports.ɵx = CustomPipesModule;
2435
+ exports.ɵy = IntegerCurrency;
2436
+ exports.ɵz = SafeHtmlPipe;
2437
+
2438
+ Object.defineProperty(exports, '__esModule', { value: true });
2439
+
2440
+ })));
2441
+ //# sourceMappingURL=kms-ngx-ui-presentational.umd.js.map