@acpaas-ui/ngx-forms 5.3.0 → 6.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/README.md +0 -2
  2. package/esm2020/acpaas-ui-ngx-forms.mjs +5 -0
  3. package/esm2020/lib/auto-complete/auto-complete.module.mjs +25 -0
  4. package/esm2020/lib/auto-complete/components/auto-complete/auto-complete.component.mjs +370 -0
  5. package/esm2020/lib/auto-complete/public-api.mjs +3 -0
  6. package/esm2020/lib/datepicker/components/datepicker/datepicker.component.mjs +274 -0
  7. package/esm2020/lib/datepicker/datepicker.conf.mjs +9 -0
  8. package/esm2020/lib/datepicker/datepicker.module.mjs +55 -0
  9. package/esm2020/lib/datepicker/public-api.mjs +4 -0
  10. package/esm2020/lib/datepicker/types/datepicker.types.mjs +2 -0
  11. package/esm2020/lib/mask/directives/mask.directive.mjs +25 -0
  12. package/esm2020/lib/mask/mask.module.mjs +20 -0
  13. package/esm2020/lib/mask/public-api.mjs +3 -0
  14. package/esm2020/lib/range-slider/components/range-slider/range-slider.component.mjs +349 -0
  15. package/esm2020/lib/range-slider/public-api.mjs +3 -0
  16. package/esm2020/lib/range-slider/range-slider.module.mjs +20 -0
  17. package/esm2020/lib/range-slider/types/range-slider.types.mjs +2 -0
  18. package/esm2020/lib/search-filter/components/search-filter/search-filter.component.mjs +259 -0
  19. package/esm2020/lib/search-filter/public-api.mjs +3 -0
  20. package/esm2020/lib/search-filter/search-filter.module.mjs +22 -0
  21. package/esm2020/lib/search-filter/types/search-filter.types.mjs +2 -0
  22. package/esm2020/lib/shared/services/search.service.mjs +32 -0
  23. package/esm2020/lib/shared/types/search.types.mjs +2 -0
  24. package/esm2020/lib/timepicker/classes/timepicker.validators.mjs +49 -0
  25. package/esm2020/lib/timepicker/components/timepicker/timepicker.component.mjs +229 -0
  26. package/esm2020/lib/timepicker/public-api.mjs +5 -0
  27. package/esm2020/lib/timepicker/timepicker.module.mjs +22 -0
  28. package/esm2020/lib/timepicker/types/timepicker.types.mjs +7 -0
  29. package/esm2020/lib/upload/classes/uploader.class.mjs +112 -0
  30. package/esm2020/lib/upload/components/upload/upload.component.mjs +97 -0
  31. package/esm2020/lib/upload/components/upload-input/upload-input.component.mjs +56 -0
  32. package/esm2020/lib/upload/components/upload-queue/upload-queue.component.mjs +78 -0
  33. package/esm2020/lib/upload/components/upload-zone/upload-zone.component.mjs +252 -0
  34. package/esm2020/lib/upload/components/validation-list/validation-list.component.mjs +64 -0
  35. package/esm2020/lib/upload/public-api.mjs +10 -0
  36. package/esm2020/lib/upload/services/validation-messages.service.mjs +29 -0
  37. package/esm2020/lib/upload/types/upload.types.mjs +2 -0
  38. package/esm2020/lib/upload/upload.conf.mjs +12 -0
  39. package/esm2020/lib/upload/upload.module.mjs +45 -0
  40. package/esm2020/public-api.mjs +8 -0
  41. package/fesm2015/acpaas-ui-ngx-forms.mjs +2591 -0
  42. package/fesm2015/acpaas-ui-ngx-forms.mjs.map +1 -0
  43. package/fesm2020/acpaas-ui-ngx-forms.mjs +2402 -0
  44. package/fesm2020/acpaas-ui-ngx-forms.mjs.map +1 -0
  45. package/{acpaas-ui-ngx-forms.d.ts → index.d.ts} +1 -1
  46. package/lib/auto-complete/auto-complete.module.d.ts +10 -0
  47. package/lib/auto-complete/components/auto-complete/auto-complete.component.d.ts +5 -0
  48. package/lib/datepicker/components/datepicker/datepicker.component.d.ts +15 -8
  49. package/lib/datepicker/datepicker.module.d.ts +11 -1
  50. package/lib/datepicker/public-api.d.ts +1 -1
  51. package/lib/mask/directives/mask.directive.d.ts +3 -0
  52. package/lib/mask/mask.module.d.ts +6 -0
  53. package/lib/range-slider/components/range-slider/range-slider.component.d.ts +8 -2
  54. package/lib/range-slider/range-slider.module.d.ts +7 -0
  55. package/lib/search-filter/components/search-filter/search-filter.component.d.ts +10 -4
  56. package/lib/search-filter/search-filter.module.d.ts +9 -0
  57. package/lib/shared/services/search.service.d.ts +3 -0
  58. package/lib/timepicker/components/timepicker/timepicker.component.d.ts +9 -4
  59. package/lib/timepicker/timepicker.module.d.ts +8 -0
  60. package/lib/upload/components/upload/upload.component.d.ts +5 -0
  61. package/lib/upload/components/upload-input/upload-input.component.d.ts +3 -0
  62. package/lib/upload/components/upload-queue/upload-queue.component.d.ts +3 -0
  63. package/lib/upload/components/upload-zone/upload-zone.component.d.ts +7 -0
  64. package/lib/upload/components/validation-list/validation-list.component.d.ts +3 -0
  65. package/lib/upload/services/validation-messages.service.d.ts +3 -0
  66. package/lib/upload/upload.module.d.ts +14 -1
  67. package/package.json +37 -24
  68. package/public-api.d.ts +0 -1
  69. package/acpaas-ui-ngx-forms.metadata.json +0 -1
  70. package/bundles/acpaas-ui-ngx-forms.umd.js +0 -3854
  71. package/bundles/acpaas-ui-ngx-forms.umd.js.map +0 -1
  72. package/bundles/acpaas-ui-ngx-forms.umd.min.js +0 -2
  73. package/bundles/acpaas-ui-ngx-forms.umd.min.js.map +0 -1
  74. package/esm2015/acpaas-ui-ngx-forms.js +0 -11
  75. package/esm2015/lib/auto-complete/auto-complete.module.js +0 -36
  76. package/esm2015/lib/auto-complete/components/auto-complete/auto-complete.component.js +0 -416
  77. package/esm2015/lib/auto-complete/public-api.js +0 -8
  78. package/esm2015/lib/datepicker/components/datepicker/datepicker.component.js +0 -335
  79. package/esm2015/lib/datepicker/datepicker.conf.js +0 -18
  80. package/esm2015/lib/datepicker/datepicker.module.js +0 -59
  81. package/esm2015/lib/datepicker/public-api.js +0 -9
  82. package/esm2015/lib/datepicker/types/datepicker.types.js +0 -20
  83. package/esm2015/lib/mask/directives/mask.directive.js +0 -51
  84. package/esm2015/lib/mask/mask.module.js +0 -25
  85. package/esm2015/lib/mask/public-api.js +0 -8
  86. package/esm2015/lib/range-slider/components/range-slider/range-slider.component.js +0 -424
  87. package/esm2015/lib/range-slider/public-api.js +0 -8
  88. package/esm2015/lib/range-slider/range-slider.module.js +0 -26
  89. package/esm2015/lib/range-slider/types/range-slider.types.js +0 -16
  90. package/esm2015/lib/search-filter/components/search-filter/search-filter.component.js +0 -219
  91. package/esm2015/lib/search-filter/public-api.js +0 -8
  92. package/esm2015/lib/search-filter/search-filter.module.js +0 -30
  93. package/esm2015/lib/search-filter/types/search-filter.types.js +0 -16
  94. package/esm2015/lib/shared/services/search.service.js +0 -58
  95. package/esm2015/lib/shared/types/search.types.js +0 -20
  96. package/esm2015/lib/timepicker/classes/timepicker.validators.js +0 -84
  97. package/esm2015/lib/timepicker/components/timepicker/timepicker.component.js +0 -227
  98. package/esm2015/lib/timepicker/public-api.js +0 -10
  99. package/esm2015/lib/timepicker/timepicker.module.js +0 -29
  100. package/esm2015/lib/timepicker/types/timepicker.types.js +0 -13
  101. package/esm2015/lib/upload/classes/uploader.class.js +0 -189
  102. package/esm2015/lib/upload/components/upload/upload.component.js +0 -100
  103. package/esm2015/lib/upload/components/upload-input/upload-input.component.js +0 -67
  104. package/esm2015/lib/upload/components/upload-queue/upload-queue.component.js +0 -68
  105. package/esm2015/lib/upload/components/upload-zone/upload-zone.component.js +0 -219
  106. package/esm2015/lib/upload/components/validation-list/validation-list.component.js +0 -62
  107. package/esm2015/lib/upload/public-api.js +0 -15
  108. package/esm2015/lib/upload/services/validation-messages.service.js +0 -48
  109. package/esm2015/lib/upload/types/upload.types.js +0 -48
  110. package/esm2015/lib/upload/upload.conf.js +0 -21
  111. package/esm2015/lib/upload/upload.module.js +0 -62
  112. package/esm2015/lib/wysiwyg/components/wysiwyg/wysiwyg.component.js +0 -158
  113. package/esm2015/lib/wysiwyg/public-api.js +0 -9
  114. package/esm2015/lib/wysiwyg/wysiwyg.conf.js +0 -24
  115. package/esm2015/lib/wysiwyg/wysiwyg.module.js +0 -29
  116. package/esm2015/public-api.js +0 -14
  117. package/esm5/acpaas-ui-ngx-forms.js +0 -11
  118. package/esm5/lib/auto-complete/auto-complete.module.js +0 -40
  119. package/esm5/lib/auto-complete/components/auto-complete/auto-complete.component.js +0 -506
  120. package/esm5/lib/auto-complete/public-api.js +0 -8
  121. package/esm5/lib/datepicker/components/datepicker/datepicker.component.js +0 -384
  122. package/esm5/lib/datepicker/datepicker.conf.js +0 -18
  123. package/esm5/lib/datepicker/datepicker.module.js +0 -69
  124. package/esm5/lib/datepicker/public-api.js +0 -9
  125. package/esm5/lib/datepicker/types/datepicker.types.js +0 -20
  126. package/esm5/lib/mask/directives/mask.directive.js +0 -58
  127. package/esm5/lib/mask/mask.module.js +0 -29
  128. package/esm5/lib/mask/public-api.js +0 -8
  129. package/esm5/lib/range-slider/components/range-slider/range-slider.component.js +0 -514
  130. package/esm5/lib/range-slider/public-api.js +0 -8
  131. package/esm5/lib/range-slider/range-slider.module.js +0 -30
  132. package/esm5/lib/range-slider/types/range-slider.types.js +0 -16
  133. package/esm5/lib/search-filter/components/search-filter/search-filter.component.js +0 -256
  134. package/esm5/lib/search-filter/public-api.js +0 -8
  135. package/esm5/lib/search-filter/search-filter.module.js +0 -34
  136. package/esm5/lib/search-filter/types/search-filter.types.js +0 -16
  137. package/esm5/lib/shared/services/search.service.js +0 -68
  138. package/esm5/lib/shared/types/search.types.js +0 -20
  139. package/esm5/lib/timepicker/classes/timepicker.validators.js +0 -102
  140. package/esm5/lib/timepicker/components/timepicker/timepicker.component.js +0 -259
  141. package/esm5/lib/timepicker/public-api.js +0 -10
  142. package/esm5/lib/timepicker/timepicker.module.js +0 -33
  143. package/esm5/lib/timepicker/types/timepicker.types.js +0 -13
  144. package/esm5/lib/upload/classes/uploader.class.js +0 -249
  145. package/esm5/lib/upload/components/upload/upload.component.js +0 -117
  146. package/esm5/lib/upload/components/upload-input/upload-input.component.js +0 -84
  147. package/esm5/lib/upload/components/upload-queue/upload-queue.component.js +0 -78
  148. package/esm5/lib/upload/components/upload-zone/upload-zone.component.js +0 -264
  149. package/esm5/lib/upload/components/validation-list/validation-list.component.js +0 -81
  150. package/esm5/lib/upload/public-api.js +0 -15
  151. package/esm5/lib/upload/services/validation-messages.service.js +0 -47
  152. package/esm5/lib/upload/types/upload.types.js +0 -48
  153. package/esm5/lib/upload/upload.conf.js +0 -21
  154. package/esm5/lib/upload/upload.module.js +0 -71
  155. package/esm5/lib/wysiwyg/components/wysiwyg/wysiwyg.component.js +0 -199
  156. package/esm5/lib/wysiwyg/public-api.js +0 -9
  157. package/esm5/lib/wysiwyg/wysiwyg.conf.js +0 -24
  158. package/esm5/lib/wysiwyg/wysiwyg.module.js +0 -33
  159. package/esm5/public-api.js +0 -14
  160. package/fesm2015/acpaas-ui-ngx-forms.js +0 -3071
  161. package/fesm2015/acpaas-ui-ngx-forms.js.map +0 -1
  162. package/fesm5/acpaas-ui-ngx-forms.js +0 -3627
  163. package/fesm5/acpaas-ui-ngx-forms.js.map +0 -1
  164. package/lib/wysiwyg/components/wysiwyg/wysiwyg.component.d.ts +0 -43
  165. package/lib/wysiwyg/public-api.d.ts +0 -3
  166. package/lib/wysiwyg/wysiwyg.conf.d.ts +0 -18
  167. package/lib/wysiwyg/wysiwyg.module.d.ts +0 -2
@@ -1,3854 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@acpaas-ui/ngx-flyout'), require('@acpaas-ui/ngx-selectable-list'), require('inputmask'), require('lodash-es'), require('rxjs'), require('rxjs/operators'), require('@acpaas-ui/js-date-utils'), require('@acpaas-ui/ngx-calendar'), require('@acpaas-ui/ngx-utils'), require('@acpaas-ui/ngx-icon'), require('@acpaas-ui/ngx-progress-bar'), require('ng2-ckeditor')) :
3
- typeof define === 'function' && define.amd ? define('@acpaas-ui/ngx-forms', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@acpaas-ui/ngx-flyout', '@acpaas-ui/ngx-selectable-list', 'inputmask', 'lodash-es', 'rxjs', 'rxjs/operators', '@acpaas-ui/js-date-utils', '@acpaas-ui/ngx-calendar', '@acpaas-ui/ngx-utils', '@acpaas-ui/ngx-icon', '@acpaas-ui/ngx-progress-bar', 'ng2-ckeditor'], factory) :
4
- (global = global || self, factory((global['acpaas-ui'] = global['acpaas-ui'] || {}, global['acpaas-ui']['ngx-forms'] = {}), global.ng.core, global.ng.common, global.ng.forms, global.ngxFlyout, global.ngxSelectableList, global.Inputmask, global.lodashEs, global.rxjs, global.rxjs.operators, global.jsDateUtils, global.ngxCalendar, global.ngxUtils, global.ngxIcon, global.ngxProgressBar, global.ng2Ckeditor));
5
- }(this, (function (exports, core, common, forms, ngxFlyout, ngxSelectableList, Inputmask, lodashEs, rxjs, operators, jsDateUtils, ngxCalendar, ngxUtils, ngxIcon, ngxProgressBar, ng2Ckeditor) { 'use strict';
6
-
7
- Inputmask = Inputmask && Inputmask.hasOwnProperty('default') ? Inputmask['default'] : Inputmask;
8
-
9
- /*! *****************************************************************************
10
- Copyright (c) Microsoft Corporation.
11
-
12
- Permission to use, copy, modify, and/or distribute this software for any
13
- purpose with or without fee is hereby granted.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
16
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
17
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
18
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
19
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
20
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
21
- PERFORMANCE OF THIS SOFTWARE.
22
- ***************************************************************************** */
23
- /* global Reflect, Promise */
24
-
25
- var extendStatics = function(d, b) {
26
- extendStatics = Object.setPrototypeOf ||
27
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
28
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
29
- return extendStatics(d, b);
30
- };
31
-
32
- function __extends(d, b) {
33
- extendStatics(d, b);
34
- function __() { this.constructor = d; }
35
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
36
- }
37
-
38
- var __assign = function() {
39
- __assign = Object.assign || function __assign(t) {
40
- for (var s, i = 1, n = arguments.length; i < n; i++) {
41
- s = arguments[i];
42
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
43
- }
44
- return t;
45
- };
46
- return __assign.apply(this, arguments);
47
- };
48
-
49
- function __rest(s, e) {
50
- var t = {};
51
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
52
- t[p] = s[p];
53
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
54
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
55
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
56
- t[p[i]] = s[p[i]];
57
- }
58
- return t;
59
- }
60
-
61
- function __decorate(decorators, target, key, desc) {
62
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
63
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
64
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
65
- return c > 3 && r && Object.defineProperty(target, key, r), r;
66
- }
67
-
68
- function __param(paramIndex, decorator) {
69
- return function (target, key) { decorator(target, key, paramIndex); }
70
- }
71
-
72
- function __metadata(metadataKey, metadataValue) {
73
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
74
- }
75
-
76
- function __awaiter(thisArg, _arguments, P, generator) {
77
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
78
- return new (P || (P = Promise))(function (resolve, reject) {
79
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
80
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
81
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
82
- step((generator = generator.apply(thisArg, _arguments || [])).next());
83
- });
84
- }
85
-
86
- function __generator(thisArg, body) {
87
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
88
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
89
- function verb(n) { return function (v) { return step([n, v]); }; }
90
- function step(op) {
91
- if (f) throw new TypeError("Generator is already executing.");
92
- while (_) try {
93
- 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) return t;
94
- if (y = 0, t) op = [op[0] & 2, t.value];
95
- switch (op[0]) {
96
- case 0: case 1: t = op; break;
97
- case 4: _.label++; return { value: op[1], done: false };
98
- case 5: _.label++; y = op[1]; op = [0]; continue;
99
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
100
- default:
101
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
102
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
103
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
104
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
105
- if (t[2]) _.ops.pop();
106
- _.trys.pop(); continue;
107
- }
108
- op = body.call(thisArg, _);
109
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
110
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
111
- }
112
- }
113
-
114
- function __createBinding(o, m, k, k2) {
115
- if (k2 === undefined) k2 = k;
116
- o[k2] = m[k];
117
- }
118
-
119
- function __exportStar(m, exports) {
120
- for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p];
121
- }
122
-
123
- function __values(o) {
124
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
125
- if (m) return m.call(o);
126
- if (o && typeof o.length === "number") return {
127
- next: function () {
128
- if (o && i >= o.length) o = void 0;
129
- return { value: o && o[i++], done: !o };
130
- }
131
- };
132
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
133
- }
134
-
135
- function __read(o, n) {
136
- var m = typeof Symbol === "function" && o[Symbol.iterator];
137
- if (!m) return o;
138
- var i = m.call(o), r, ar = [], e;
139
- try {
140
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
141
- }
142
- catch (error) { e = { error: error }; }
143
- finally {
144
- try {
145
- if (r && !r.done && (m = i["return"])) m.call(i);
146
- }
147
- finally { if (e) throw e.error; }
148
- }
149
- return ar;
150
- }
151
-
152
- function __spread() {
153
- for (var ar = [], i = 0; i < arguments.length; i++)
154
- ar = ar.concat(__read(arguments[i]));
155
- return ar;
156
- }
157
-
158
- function __spreadArrays() {
159
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
160
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
161
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
162
- r[k] = a[j];
163
- return r;
164
- };
165
-
166
- function __await(v) {
167
- return this instanceof __await ? (this.v = v, this) : new __await(v);
168
- }
169
-
170
- function __asyncGenerator(thisArg, _arguments, generator) {
171
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
172
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
173
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
174
- function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
175
- function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
176
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
177
- function fulfill(value) { resume("next", value); }
178
- function reject(value) { resume("throw", value); }
179
- function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
180
- }
181
-
182
- function __asyncDelegator(o) {
183
- var i, p;
184
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
185
- 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; }
186
- }
187
-
188
- function __asyncValues(o) {
189
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
190
- var m = o[Symbol.asyncIterator], i;
191
- 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);
192
- 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); }); }; }
193
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
194
- }
195
-
196
- function __makeTemplateObject(cooked, raw) {
197
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
198
- return cooked;
199
- };
200
-
201
- function __importStar(mod) {
202
- if (mod && mod.__esModule) return mod;
203
- var result = {};
204
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
205
- result.default = mod;
206
- return result;
207
- }
208
-
209
- function __importDefault(mod) {
210
- return (mod && mod.__esModule) ? mod : { default: mod };
211
- }
212
-
213
- function __classPrivateFieldGet(receiver, privateMap) {
214
- if (!privateMap.has(receiver)) {
215
- throw new TypeError("attempted to get private field on non-instance");
216
- }
217
- return privateMap.get(receiver);
218
- }
219
-
220
- function __classPrivateFieldSet(receiver, privateMap, value) {
221
- if (!privateMap.has(receiver)) {
222
- throw new TypeError("attempted to set private field on non-instance");
223
- }
224
- privateMap.set(receiver, value);
225
- return value;
226
- }
227
-
228
- /**
229
- * @fileoverview added by tsickle
230
- * Generated from: lib/mask/directives/mask.directive.ts
231
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
232
- */
233
- var MaskDirective = /** @class */ (function () {
234
- function MaskDirective(ref) {
235
- this.ref = ref;
236
- }
237
- /**
238
- * @return {?}
239
- */
240
- MaskDirective.prototype.ngOnChanges = /**
241
- * @return {?}
242
- */
243
- function () {
244
- this.setMask(this.auiMask);
245
- };
246
- /**
247
- * @private
248
- * @param {?} mask
249
- * @return {?}
250
- */
251
- MaskDirective.prototype.setMask = /**
252
- * @private
253
- * @param {?} mask
254
- * @return {?}
255
- */
256
- function (mask) {
257
- Inputmask(mask).mask(this.ref.nativeElement);
258
- };
259
- MaskDirective.decorators = [
260
- { type: core.Directive, args: [{
261
- selector: '[auiMask]',
262
- },] }
263
- ];
264
- /** @nocollapse */
265
- MaskDirective.ctorParameters = function () { return [
266
- { type: core.ElementRef }
267
- ]; };
268
- MaskDirective.propDecorators = {
269
- auiMask: [{ type: core.Input }]
270
- };
271
- return MaskDirective;
272
- }());
273
- if (false) {
274
- /** @type {?} */
275
- MaskDirective.prototype.auiMask;
276
- /**
277
- * @type {?}
278
- * @private
279
- */
280
- MaskDirective.prototype.ref;
281
- }
282
-
283
- /**
284
- * @fileoverview added by tsickle
285
- * Generated from: lib/mask/mask.module.ts
286
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
287
- */
288
- var MaskModule = /** @class */ (function () {
289
- function MaskModule() {
290
- }
291
- MaskModule.decorators = [
292
- { type: core.NgModule, args: [{
293
- imports: [
294
- common.CommonModule,
295
- ],
296
- declarations: [
297
- MaskDirective,
298
- ],
299
- exports: [
300
- MaskDirective,
301
- ],
302
- providers: [],
303
- },] }
304
- ];
305
- return MaskModule;
306
- }());
307
-
308
- /**
309
- * @fileoverview added by tsickle
310
- * Generated from: lib/shared/services/search.service.ts
311
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
312
- */
313
- var SearchService = /** @class */ (function () {
314
- function SearchService() {
315
- this.matchItemWithSearchString = (/**
316
- * @param {?} item
317
- * @param {?} searchString
318
- * @return {?}
319
- */
320
- function (item, searchString) {
321
- return String(item).toLowerCase().indexOf(searchString.toLowerCase()) > -1;
322
- });
323
- }
324
- /**
325
- * @param {?} data
326
- * @param {?=} options
327
- * @return {?}
328
- */
329
- SearchService.prototype.search = /**
330
- * @param {?} data
331
- * @param {?=} options
332
- * @return {?}
333
- */
334
- function (data, options) {
335
- var _this = this;
336
- if (options === void 0) { options = {}; }
337
- /** @type {?} */
338
- var query = options.hasOwnProperty('query') ? options.query : '';
339
- /** @type {?} */
340
- var minLength = options.hasOwnProperty('minLength') ? options.minLength : 0;
341
- /** @type {?} */
342
- var key = options.hasOwnProperty('key') ? options.key : '';
343
- if ((!query && options.showAllByDefault) || query.length < minLength) {
344
- return __spread(data);
345
- }
346
- return __spread(data).filter((/**
347
- * @param {?} item
348
- * @return {?}
349
- */
350
- function (item) {
351
- if (key && !item.hasOwnProperty(key)) {
352
- return console.error("\"" + key + "\" does not exist in item " + JSON.stringify(item, null, 2));
353
- }
354
- if (key) {
355
- return _this.matchItemWithSearchString(item[key], query);
356
- }
357
- return _this.matchItemWithSearchString(item, query);
358
- }));
359
- };
360
- SearchService.decorators = [
361
- { type: core.Injectable }
362
- ];
363
- return SearchService;
364
- }());
365
- if (false) {
366
- /**
367
- * @type {?}
368
- * @private
369
- */
370
- SearchService.prototype.matchItemWithSearchString;
371
- }
372
-
373
- /**
374
- * @fileoverview added by tsickle
375
- * Generated from: lib/auto-complete/components/auto-complete/auto-complete.component.ts
376
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
377
- */
378
- var AutoCompleteComponent = /** @class */ (function () {
379
- function AutoCompleteComponent(ref, searchService) {
380
- this.ref = ref;
381
- this.searchService = searchService;
382
- this.results = []; // The values for the selectable list
383
- // The values for the selectable list
384
- this.data = []; // The values to search in when remote search is disabled
385
- // The values to search in when remote search is disabled
386
- this.remote = false; // Disable or enamble remote search
387
- // Disable or enamble remote search
388
- this.minCharacters = 0;
389
- this.mask = null;
390
- this.clearInvalid = false;
391
- this.showAllByDefault = false;
392
- this.autoComplete = 'off';
393
- // Eventemitter for searchvalue (parent object should update the results with this param)
394
- this.search = new core.EventEmitter();
395
- this.select = new core.EventEmitter();
396
- this.query = '';
397
- this.index = -1; // index for active element in selectable list, by default -1 (so it starts in the input field)
398
- // index for active element in selectable list, by default -1 (so it starts in the input field)
399
- this.selectedItem = null; // keep a backup of the selectedItem
400
- // keep a backup of the selectedItem
401
- this.searching = false; // track remote search state
402
- // track remote search state
403
- this.focused = false;
404
- this.isDisabled = false;
405
- this.remoteValue = false;
406
- this.updateModel = (/**
407
- * @param {?} _
408
- * @return {?}
409
- */
410
- function (_) {
411
- });
412
- }
413
- // CONTROL_VALUE_ACCESSOR interface
414
- // CONTROL_VALUE_ACCESSOR interface
415
- /**
416
- * @param {?=} value
417
- * @return {?}
418
- */
419
- AutoCompleteComponent.prototype.writeValue =
420
- // CONTROL_VALUE_ACCESSOR interface
421
- /**
422
- * @param {?=} value
423
- * @return {?}
424
- */
425
- function (value) {
426
- var _this = this;
427
- if (value === void 0) { value = ''; }
428
- if (this.value) {
429
- /** @type {?} */
430
- var selected = this.data.find((/**
431
- * @param {?} item
432
- * @return {?}
433
- */
434
- function (item) { return item[_this.value] === value; }));
435
- if (selected) {
436
- return this.query = selected[this.label];
437
- }
438
- if (this.remote && !!value) {
439
- this.remoteValue = true;
440
- }
441
- }
442
- this.query = value;
443
- };
444
- // CONTROL_VALUE_ACCESSOR interface
445
- // CONTROL_VALUE_ACCESSOR interface
446
- /**
447
- * @param {?} fn
448
- * @return {?}
449
- */
450
- AutoCompleteComponent.prototype.registerOnChange =
451
- // CONTROL_VALUE_ACCESSOR interface
452
- /**
453
- * @param {?} fn
454
- * @return {?}
455
- */
456
- function (fn) {
457
- this.updateModel = fn;
458
- };
459
- // CONTROL_VALUE_ACCESSOR interface
460
- // CONTROL_VALUE_ACCESSOR interface
461
- /**
462
- * @return {?}
463
- */
464
- AutoCompleteComponent.prototype.registerOnTouched =
465
- // CONTROL_VALUE_ACCESSOR interface
466
- /**
467
- * @return {?}
468
- */
469
- function () {
470
- };
471
- /**
472
- * @param {?} isDisabled
473
- * @return {?}
474
- */
475
- AutoCompleteComponent.prototype.setDisabledState = /**
476
- * @param {?} isDisabled
477
- * @return {?}
478
- */
479
- function (isDisabled) {
480
- this.isDisabled = isDisabled;
481
- };
482
- /**
483
- * @return {?}
484
- */
485
- AutoCompleteComponent.prototype.ngOnInit = /**
486
- * @return {?}
487
- */
488
- function () {
489
- if ((Array.isArray(this.data) && this.data.length > 0) && !this.query && this.showAllByDefault) {
490
- this.results = __spread(this.data);
491
- }
492
- };
493
- // OnChanges interface
494
- // OnChanges interface
495
- /**
496
- * @param {?} changes
497
- * @return {?}
498
- */
499
- AutoCompleteComponent.prototype.ngOnChanges =
500
- // OnChanges interface
501
- /**
502
- * @param {?} changes
503
- * @return {?}
504
- */
505
- function (changes) {
506
- if (!changes) {
507
- return;
508
- }
509
- /** @type {?} */
510
- var newData = lodashEs.get(changes, 'data.currentValue', []);
511
- if (!lodashEs.isEqual(newData, lodashEs.get(changes, 'data.previousValue', []))) {
512
- if (this.remote) {
513
- this.remoteSearch();
514
- }
515
- else {
516
- this.localSearch();
517
- }
518
- }
519
- if (changes.results && changes.results.currentValue) {
520
- this.searching = false;
521
- }
522
- };
523
- /**
524
- * @param {?} item
525
- * @return {?}
526
- */
527
- AutoCompleteComponent.prototype.propagateChange = /**
528
- * @param {?} item
529
- * @return {?}
530
- */
531
- function (item) {
532
- this.query = item !== null ? (this.label ? item[this.label] : item) : '';
533
- this.select.emit(item);
534
- if (!item) {
535
- return;
536
- }
537
- /** @type {?} */
538
- var key = this.value ? this.value : this.label ? this.label : null;
539
- this.updateModel(key ? item[key] || '' : item);
540
- this.selectedItem = item;
541
- };
542
- /**
543
- * triggers on input value change
544
- */
545
- /**
546
- * triggers on input value change
547
- * @return {?}
548
- */
549
- AutoCompleteComponent.prototype.doSearch = /**
550
- * triggers on input value change
551
- * @return {?}
552
- */
553
- function () {
554
- this.index = -1; // reset index
555
- this.searching = true;
556
- if (this.remote) {
557
- this.search.emit(this.query); // ask for new remote data
558
- }
559
- else {
560
- this.localSearch();
561
- }
562
- this.openFlyout(); // open the flyout when there is a change
563
- };
564
- /**
565
- * triggers on selectable-list:select -> onClick event in selectable-list
566
- */
567
- /**
568
- * triggers on selectable-list:select -> onClick event in selectable-list
569
- * @param {?} item
570
- * @return {?}
571
- */
572
- AutoCompleteComponent.prototype.onSelect = /**
573
- * triggers on selectable-list:select -> onClick event in selectable-list
574
- * @param {?} item
575
- * @return {?}
576
- */
577
- function (item) {
578
- this.propagateChange(item);
579
- this.closeFlyout(); // Close the flyout manually
580
- };
581
- /**
582
- * @return {?}
583
- */
584
- AutoCompleteComponent.prototype.onFlyoutClosed = /**
585
- * @return {?}
586
- */
587
- function () {
588
- // there is only 1 result, select it
589
- if (this.index >= 0 && this.results.length === 1) {
590
- return this.onSelect(this.results[0]);
591
- }
592
- // there is no query nor selected item, clear the selected item
593
- if (!this.query && this.index < 0) {
594
- return this.onSelect(null);
595
- }
596
- // reset the query for an invalid query if clearInvalid is true
597
- if (this.clearInvalid && this.query && !this.results.length && this.index < 0) {
598
- this.query = this.selectedItem ? this.label ? this.selectedItem[this.label] : this.selectedItem : '';
599
- }
600
- };
601
- /**
602
- * @return {?}
603
- */
604
- AutoCompleteComponent.prototype.onKeyArrowDown = /**
605
- * @return {?}
606
- */
607
- function () {
608
- if (this.index < this.results.length - 1) {
609
- this.scrollList(1);
610
- }
611
- this.openFlyout();
612
- };
613
- /**
614
- * @return {?}
615
- */
616
- AutoCompleteComponent.prototype.onKeyArrowUp = /**
617
- * @return {?}
618
- */
619
- function () {
620
- if (this.index >= 0) {
621
- this.scrollList(-1);
622
- }
623
- };
624
- /**
625
- * @param {?} event
626
- * @return {?}
627
- */
628
- AutoCompleteComponent.prototype.onKeyEnter = /**
629
- * @param {?} event
630
- * @return {?}
631
- */
632
- function (event) {
633
- event.preventDefault(); // Do not submit form when selecting an item.
634
- // Do not submit form when selecting an item.
635
- /** @type {?} */
636
- var query = this.index >= 0 ? this.results[this.index] : this.query;
637
- this.propagateChange(query);
638
- this.closeFlyout();
639
- };
640
- /**
641
- * @return {?}
642
- */
643
- AutoCompleteComponent.prototype.onKeyEscape = /**
644
- * @return {?}
645
- */
646
- function () {
647
- this.closeFlyout();
648
- };
649
- /**
650
- * @return {?}
651
- */
652
- AutoCompleteComponent.prototype.onFocus = /**
653
- * @return {?}
654
- */
655
- function () {
656
- this.focused = true;
657
- this.openFlyout();
658
- };
659
- /**
660
- * @return {?}
661
- */
662
- AutoCompleteComponent.prototype.openFlyout = /**
663
- * @return {?}
664
- */
665
- function () {
666
- if (this.flyout) {
667
- this.flyout.open();
668
- }
669
- };
670
- /**
671
- * @return {?}
672
- */
673
- AutoCompleteComponent.prototype.closeFlyout = /**
674
- * @return {?}
675
- */
676
- function () {
677
- if (this.flyout) {
678
- this.flyout.close();
679
- }
680
- this.focused = false;
681
- };
682
- /**
683
- * @return {?}
684
- */
685
- AutoCompleteComponent.prototype.localSearch = /**
686
- * @return {?}
687
- */
688
- function () {
689
- this.results = this.searchService.search(this.data, {
690
- minLength: this.minCharacters,
691
- key: this.label,
692
- query: this.query,
693
- showAllByDefault: this.showAllByDefault,
694
- });
695
- if (this.results.length === 1 && this.query === this.results[0][this.label]) {
696
- this.index = 0;
697
- }
698
- this.searching = false;
699
- };
700
- /**
701
- * @return {?}
702
- */
703
- AutoCompleteComponent.prototype.remoteSearch = /**
704
- * @return {?}
705
- */
706
- function () {
707
- var _this = this;
708
- if (!this.remoteValue || !this.data) {
709
- return;
710
- }
711
- /** @type {?} */
712
- var selected = this.data.find((/**
713
- * @param {?} item
714
- * @return {?}
715
- */
716
- function (item) {
717
- if (_this.value) {
718
- return item[_this.value] === _this.query;
719
- }
720
- return item === _this.query;
721
- }));
722
- if (selected) {
723
- this.query = this.label ? selected[this.label] : selected;
724
- }
725
- else {
726
- this.query = '';
727
- }
728
- this.remoteValue = false;
729
- };
730
- /**
731
- * @param {?} factor
732
- * @return {?}
733
- */
734
- AutoCompleteComponent.prototype.scrollList = /**
735
- * @param {?} factor
736
- * @return {?}
737
- */
738
- function (factor) {
739
- this.index += factor;
740
- if (!this.flyoutZone) {
741
- return;
742
- }
743
- /** @type {?} */
744
- var liItems = this.flyoutZone.element.getElementsByTagName('li');
745
- /** @type {?} */
746
- var liHeight = (liItems[1] ? liItems[1].offsetHeight : liItems[0].offsetHeight);
747
- /** @type {?} */
748
- var zoneHeight = this.flyoutZone.element.offsetHeight;
749
- /** @type {?} */
750
- var offset = (zoneHeight / liHeight) / 2;
751
- this.flyoutZone.element.scrollTop = (this.index * liHeight) - (offset * liHeight);
752
- };
753
- AutoCompleteComponent.decorators = [
754
- { type: core.Component, args: [{
755
- selector: 'aui-auto-complete',
756
- template: "<div (closed)=\"onFlyoutClosed()\" [toggleClick]=\"false\" aria-haspopup=\"listbox\"\n auiFlyout class=\"m-flyout--scrollable m-flyout--full o-auto-complete\">\n <input (focus)=\"onFocus()\"\n (keyArrowDown)=\"onKeyArrowDown()\"\n (keyArrowUp)=\"onKeyArrowUp()\"\n (keyEnter)=\"onKeyEnter($event)\"\n (keyEscape)=\"onKeyEscape()\"\n [(ngModel)]=\"query\"\n (ngModelChange)=\"doSearch()\"\n *ngIf=\"!mask\"\n [disabled]=\"isDisabled ? true : null\"\n [id]=\"id\"\n [placeholder]=\"placeholder\"\n aria-autocomplete=\"list\"\n auiFlyoutAction\n auiSelectableActions\n [autocomplete]=\"autoComplete\"\n type=\"text\"\n />\n <input (focus)=\"onFocus()\"\n (keyArrowDown)=\"onKeyArrowDown()\"\n (keyArrowUp)=\"onKeyArrowUp()\"\n (keyEnter)=\"onKeyEnter($event)\"\n (keyEscape)=\"onKeyEscape()\"\n [(ngModel)]=\"query\"\n (ngModelChange)=\"doSearch()\"\n *ngIf=\"mask\"\n [auiMask]=\"mask\"\n [disabled]=\"isDisabled ? true : null\"\n [id]=\"id\"\n [placeholder]=\"placeholder\"\n aria-autocomplete=\"list\"\n auiFlyoutAction\n auiSelectableActions\n [autocomplete]=\"autoComplete\"\n type=\"text\"\n />\n\n <div *ngIf=\"!isDisabled\" auiFlyoutZone>\n\t\t<span *ngIf=\"focused && loadingText && searching\" class=\"o-auto-complete__info u-text-light u-margin-xs\">\n\t\t\t<span class=\"a-spinner a-spinner--inline a-spinner--sm u-margin-right-xs\"></span>\n {{ loadingText }}\n\t\t</span>\n <span *ngIf=\"focused && searchIncentiveText && !searching && !query && !results.length\"\n class=\"o-auto-complete__info u-text-light u-margin-xs\">{{ searchIncentiveText }}</span>\n <span *ngIf=\"focused && noResultsText && !searching && query && !results.length\"\n class=\"o-auto-complete__info u-text-light u-margin-xs\">{{ noResultsText }}</span>\n\n <aui-selectable-list (selected)=\"onSelect($event)\" *ngIf=\"results.length > 0 && !(focused && loadingText && searching)\" [index]=\"index\" [itemTemplate]=\"template\"\n [items]=\"results\" [label]=\"label\"\n [search]=\"query\"></aui-selectable-list>\n </div>\n</div>\n",
757
- providers: [
758
- {
759
- provide: forms.NG_VALUE_ACCESSOR,
760
- useExisting: core.forwardRef((/**
761
- * @return {?}
762
- */
763
- function () { return AutoCompleteComponent; })),
764
- // tslint:disable-line
765
- multi: true,
766
- },
767
- ],
768
- styles: [".o-auto-complete,.o-auto-complete__info{display:block}"]
769
- }] }
770
- ];
771
- /** @nocollapse */
772
- AutoCompleteComponent.ctorParameters = function () { return [
773
- { type: core.ElementRef },
774
- { type: SearchService }
775
- ]; };
776
- AutoCompleteComponent.propDecorators = {
777
- id: [{ type: core.Input }],
778
- placeholder: [{ type: core.Input }],
779
- results: [{ type: core.Input }],
780
- data: [{ type: core.Input }],
781
- remote: [{ type: core.Input }],
782
- minCharacters: [{ type: core.Input }],
783
- mask: [{ type: core.Input }],
784
- clearInvalid: [{ type: core.Input }],
785
- searchIncentiveText: [{ type: core.Input }],
786
- loadingText: [{ type: core.Input }],
787
- noResultsText: [{ type: core.Input }],
788
- showAllByDefault: [{ type: core.Input }],
789
- autoComplete: [{ type: core.Input }],
790
- label: [{ type: core.Input }],
791
- value: [{ type: core.Input }],
792
- search: [{ type: core.Output }],
793
- select: [{ type: core.Output }],
794
- flyout: [{ type: core.ViewChild, args: [ngxFlyout.FlyoutDirective, { static: true },] }],
795
- flyoutZone: [{ type: core.ViewChild, args: [ngxFlyout.FlyoutZoneDirective, { static: true },] }],
796
- template: [{ type: core.ContentChild, args: [core.TemplateRef, { static: true },] }]
797
- };
798
- return AutoCompleteComponent;
799
- }());
800
- if (false) {
801
- /** @type {?} */
802
- AutoCompleteComponent.prototype.id;
803
- /** @type {?} */
804
- AutoCompleteComponent.prototype.placeholder;
805
- /** @type {?} */
806
- AutoCompleteComponent.prototype.results;
807
- /** @type {?} */
808
- AutoCompleteComponent.prototype.data;
809
- /** @type {?} */
810
- AutoCompleteComponent.prototype.remote;
811
- /** @type {?} */
812
- AutoCompleteComponent.prototype.minCharacters;
813
- /** @type {?} */
814
- AutoCompleteComponent.prototype.mask;
815
- /** @type {?} */
816
- AutoCompleteComponent.prototype.clearInvalid;
817
- /** @type {?} */
818
- AutoCompleteComponent.prototype.searchIncentiveText;
819
- /** @type {?} */
820
- AutoCompleteComponent.prototype.loadingText;
821
- /** @type {?} */
822
- AutoCompleteComponent.prototype.noResultsText;
823
- /** @type {?} */
824
- AutoCompleteComponent.prototype.showAllByDefault;
825
- /** @type {?} */
826
- AutoCompleteComponent.prototype.autoComplete;
827
- /** @type {?} */
828
- AutoCompleteComponent.prototype.label;
829
- /** @type {?} */
830
- AutoCompleteComponent.prototype.value;
831
- /** @type {?} */
832
- AutoCompleteComponent.prototype.search;
833
- /** @type {?} */
834
- AutoCompleteComponent.prototype.select;
835
- /** @type {?} */
836
- AutoCompleteComponent.prototype.flyout;
837
- /** @type {?} */
838
- AutoCompleteComponent.prototype.flyoutZone;
839
- /** @type {?} */
840
- AutoCompleteComponent.prototype.template;
841
- /** @type {?} */
842
- AutoCompleteComponent.prototype.query;
843
- /** @type {?} */
844
- AutoCompleteComponent.prototype.index;
845
- /** @type {?} */
846
- AutoCompleteComponent.prototype.selectedItem;
847
- /** @type {?} */
848
- AutoCompleteComponent.prototype.searching;
849
- /** @type {?} */
850
- AutoCompleteComponent.prototype.focused;
851
- /** @type {?} */
852
- AutoCompleteComponent.prototype.isDisabled;
853
- /**
854
- * @type {?}
855
- * @private
856
- */
857
- AutoCompleteComponent.prototype.remoteValue;
858
- /** @type {?} */
859
- AutoCompleteComponent.prototype.updateModel;
860
- /**
861
- * @type {?}
862
- * @private
863
- */
864
- AutoCompleteComponent.prototype.ref;
865
- /**
866
- * @type {?}
867
- * @private
868
- */
869
- AutoCompleteComponent.prototype.searchService;
870
- }
871
-
872
- /**
873
- * @fileoverview added by tsickle
874
- * Generated from: lib/auto-complete/auto-complete.module.ts
875
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
876
- */
877
- var AutoCompleteModule = /** @class */ (function () {
878
- function AutoCompleteModule() {
879
- }
880
- AutoCompleteModule.decorators = [
881
- { type: core.NgModule, args: [{
882
- imports: [
883
- common.CommonModule,
884
- forms.FormsModule,
885
- ngxFlyout.FlyoutModule,
886
- ngxSelectableList.SelectableListModule,
887
- MaskModule,
888
- ],
889
- declarations: [
890
- AutoCompleteComponent,
891
- ],
892
- exports: [
893
- AutoCompleteComponent,
894
- ],
895
- providers: [
896
- SearchService,
897
- ],
898
- },] }
899
- ];
900
- return AutoCompleteModule;
901
- }());
902
-
903
- /**
904
- * @fileoverview added by tsickle
905
- * Generated from: lib/auto-complete/public-api.ts
906
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
907
- */
908
-
909
- /**
910
- * @fileoverview added by tsickle
911
- * Generated from: lib/datepicker/datepicker.conf.ts
912
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
913
- */
914
- /** @type {?} */
915
- var DATEPICKER_ERROR_LABELS = new core.InjectionToken('errorLabels');
916
- /** @type {?} */
917
- var DATEPICKER_DEFAULT_ERROR_LABELS = {
918
- ERRORS_INVALID_DATE: 'INVALID_DATE',
919
- ERRORS_INVALID_RANGE: 'INVALID_RANGE',
920
- };
921
- /** @type {?} */
922
- var DATEPICKER_SEPARATOR_CHAR = '/';
923
- /** @type {?} */
924
- var DATEPICKER_DATE_MASK = "99" + DATEPICKER_SEPARATOR_CHAR + "99" + DATEPICKER_SEPARATOR_CHAR + "9999";
925
-
926
- /**
927
- * @fileoverview added by tsickle
928
- * Generated from: lib/datepicker/components/datepicker/datepicker.component.ts
929
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
930
- */
931
- var DatepickerComponent = /** @class */ (function () {
932
- function DatepickerComponent(monthLabels, weekdayLabels, errorLabels, calendarService, formBuilder, ref) {
933
- if (monthLabels === void 0) { monthLabels = ngxCalendar.CALENDAR_DEFAULT_MONTH_LABELS; }
934
- if (weekdayLabels === void 0) { weekdayLabels = ngxCalendar.CALENDAR_DEFAULT_WEEKDAY_LABELS; }
935
- if (errorLabels === void 0) { errorLabels = DATEPICKER_DEFAULT_ERROR_LABELS; }
936
- this.monthLabels = monthLabels;
937
- this.weekdayLabels = weekdayLabels;
938
- this.errorLabels = errorLabels;
939
- this.calendarService = calendarService;
940
- this.formBuilder = formBuilder;
941
- this.ref = ref;
942
- this.placeholder = 'dd/mm/yyyy';
943
- this.blur = new core.EventEmitter();
944
- this.dateMask = { mask: DATEPICKER_DATE_MASK, showMaskOnHover: false };
945
- this.isDisabled = false;
946
- this.componentDestroyed$ = new rxjs.Subject();
947
- this.onChange = (/**
948
- * @return {?}
949
- */
950
- function () { return undefined; });
951
- this.onTouched = (/**
952
- * @return {?}
953
- */
954
- function () { return undefined; });
955
- }
956
- /**
957
- * @return {?}
958
- */
959
- DatepickerComponent.prototype.ngOnInit = /**
960
- * @return {?}
961
- */
962
- function () {
963
- var _this = this;
964
- this.createInterval();
965
- this.formControl = this.formBuilder.control({ value: '', disabled: this.isDisabled });
966
- this.formControl.valueChanges
967
- .pipe(operators.takeUntil(this.componentDestroyed$))
968
- .subscribe((/**
969
- * @param {?} value
970
- * @return {?}
971
- */
972
- function (value) {
973
- if (value) {
974
- /** @type {?} */
975
- var format = value.split(DATEPICKER_SEPARATOR_CHAR).reverse().join('-');
976
- /** @type {?} */
977
- var date = jsDateUtils.DateHelper.parseDate(format, 'yyyy-MM-dd');
978
- if (date) {
979
- _this.selectedDate = date;
980
- _this.onChange(date.toISOString());
981
- }
982
- else {
983
- // Change value with original value (and not null or '') so we can add an error in the validate function
984
- _this.onChange(value);
985
- }
986
- }
987
- else {
988
- _this.selectedDate = null;
989
- _this.onChange('');
990
- }
991
- }));
992
- };
993
- /**
994
- * @param {?} changes
995
- * @return {?}
996
- */
997
- DatepickerComponent.prototype.ngOnChanges = /**
998
- * @param {?} changes
999
- * @return {?}
1000
- */
1001
- function (changes) {
1002
- if (changes.min || changes.max) {
1003
- this.createInterval();
1004
- }
1005
- };
1006
- /**
1007
- * @return {?}
1008
- */
1009
- DatepickerComponent.prototype.ngOnDestroy = /**
1010
- * @return {?}
1011
- */
1012
- function () {
1013
- this.componentDestroyed$.next(true);
1014
- this.componentDestroyed$.complete();
1015
- };
1016
- /**
1017
- * @private
1018
- * @return {?}
1019
- */
1020
- DatepickerComponent.prototype.createInterval = /**
1021
- * @private
1022
- * @return {?}
1023
- */
1024
- function () {
1025
- if (!this.min && !this.max) {
1026
- return;
1027
- }
1028
- // Create an interval if min/max is filled in
1029
- this.interval = ngxUtils.IntervalBuilder.dateInterval(this.min ? new Date(this.min) : null, this.max ? new Date(this.max) : null)
1030
- .not()
1031
- .build();
1032
- };
1033
- /**
1034
- * @param {?} value
1035
- * @return {?}
1036
- */
1037
- DatepickerComponent.prototype.writeValue = /**
1038
- * @param {?} value
1039
- * @return {?}
1040
- */
1041
- function (value) {
1042
- this.selectedDate = typeof value === 'string'
1043
- ? this.isISODateFormat(value) ? new Date(value) : jsDateUtils.DateHelper.parseDate(value, 'dd/MM/yyyy')
1044
- : value;
1045
- /** @type {?} */
1046
- var dateString = this.selectedDate ? this.formatDate(this.selectedDate) : '';
1047
- this.formControl.setValue(dateString);
1048
- };
1049
- /**
1050
- * @param {?} onChange
1051
- * @return {?}
1052
- */
1053
- DatepickerComponent.prototype.registerOnChange = /**
1054
- * @param {?} onChange
1055
- * @return {?}
1056
- */
1057
- function (onChange) {
1058
- this.onChange = onChange;
1059
- };
1060
- /**
1061
- * @param {?} onTouched
1062
- * @return {?}
1063
- */
1064
- DatepickerComponent.prototype.registerOnTouched = /**
1065
- * @param {?} onTouched
1066
- * @return {?}
1067
- */
1068
- function (onTouched) {
1069
- this.onTouched = onTouched;
1070
- };
1071
- /**
1072
- * @param {?} isDisabled
1073
- * @return {?}
1074
- */
1075
- DatepickerComponent.prototype.setDisabledState = /**
1076
- * @param {?} isDisabled
1077
- * @return {?}
1078
- */
1079
- function (isDisabled) {
1080
- this.isDisabled = isDisabled;
1081
- if (this.formControl) {
1082
- if (isDisabled && this.formControl.enabled) {
1083
- this.formControl.disable();
1084
- }
1085
- else if (!isDisabled && this.formControl.disabled) {
1086
- this.formControl.enable();
1087
- }
1088
- }
1089
- this.ref.markForCheck();
1090
- };
1091
- /**
1092
- * @param {?} result
1093
- * @return {?}
1094
- */
1095
- DatepickerComponent.prototype.selectDateFromCalendar = /**
1096
- * @param {?} result
1097
- * @return {?}
1098
- */
1099
- function (result) {
1100
- if (result.complete) {
1101
- this.formControl.setValue(this.formatDate(result.date));
1102
- this.flyout.close();
1103
- }
1104
- };
1105
- /**
1106
- * @param {?} date
1107
- * @return {?}
1108
- */
1109
- DatepickerComponent.prototype.formatDate = /**
1110
- * @param {?} date
1111
- * @return {?}
1112
- */
1113
- function (date) {
1114
- return jsDateUtils.DateHelper.formatDate(date, 'DD/MM/YYYY', {
1115
- leadingZero: true,
1116
- monthLabels: this.monthLabels,
1117
- weekdayLabels: this.weekdayLabels,
1118
- });
1119
- };
1120
- /**
1121
- * @param {?} ctrl
1122
- * @return {?}
1123
- */
1124
- DatepickerComponent.prototype.validate = /**
1125
- * @param {?} ctrl
1126
- * @return {?}
1127
- */
1128
- function (ctrl) {
1129
- // no error on empty value (add required validator in app)
1130
- if (ctrl.value === '' || ctrl.value === null) {
1131
- return null;
1132
- }
1133
- // throw format error if no valid date was provided
1134
- /** @type {?} */
1135
- var date = jsDateUtils.DateHelper.parseDate(ctrl.value);
1136
- if (!date) {
1137
- return {
1138
- format: this.errorLabels.ERRORS_INVALID_DATE,
1139
- };
1140
- }
1141
- // no error if valid date an no range provided
1142
- if (!this.range || !this.range.length) {
1143
- return null;
1144
- }
1145
- // throw error when out of range
1146
- /** @type {?} */
1147
- var range = this.calendarService.getRangeForDate(date, this.range);
1148
- return range.indexOf(date.getDate()) >= 0 ? {
1149
- range: this.errorLabels.ERRORS_INVALID_RANGE,
1150
- } : null;
1151
- };
1152
- /**
1153
- * @param {?} e
1154
- * @return {?}
1155
- */
1156
- DatepickerComponent.prototype.handleBlur = /**
1157
- * @param {?} e
1158
- * @return {?}
1159
- */
1160
- function (e) {
1161
- this.blur.emit(e);
1162
- this.onTouched(e);
1163
- };
1164
- /**
1165
- * @private
1166
- * @param {?} value
1167
- * @return {?}
1168
- */
1169
- DatepickerComponent.prototype.isISODateFormat = /**
1170
- * @private
1171
- * @param {?} value
1172
- * @return {?}
1173
- */
1174
- function (value) {
1175
- if (typeof value !== 'string') {
1176
- return false;
1177
- }
1178
- return value.match(/\d{4}-\d{2}-\d{2}T.*/);
1179
- };
1180
- DatepickerComponent.decorators = [
1181
- { type: core.Component, args: [{
1182
- selector: 'aui-datepicker',
1183
- template: "<div aria-haspopup=\"grid\" auiFlyout class=\"aui-datepicker a-input__wrapper\">\n <input\n (blur)=\"handleBlur($event)\"\n [attr.disabled]=\"isDisabled ? true : null\"\n [auiMask]=\"dateMask.mask\"\n [autocomplete]=\"autocomplete\"\n [formControl]=\"formControl\"\n id=\"{{ id }}\"\n name=\"{{ name }}\"\n placeholder=\"{{ placeholder }}\"\n type=\"text\"\n >\n <aui-icon *ngIf=\"isDisabled\" name=\"ai-calendar-3\" role=\"button\" tabindex=\"0\"></aui-icon>\n\n <ng-container *ngIf=\"!isDisabled\">\n <aui-icon auiFlyoutAction [openOnFocus]=\"false\" name=\"ai-calendar-3\" className=\"is-clickable\" role=\"button\" tabindex=\"0\"></aui-icon>\n </ng-container>\n\n <ng-container *ngIf=\"!isDisabled\">\n <div auiFlyoutZone class=\"m-datepicker m-datepicker--fixed\" role=\"dialog\">\n <aui-calendar (selectDate)=\"selectDateFromCalendar($event)\" [range]=\"range\"\n [selectedDate]=\"selectedDate\" [interval]=\"interval\"></aui-calendar>\n </div>\n </ng-container>\n</div>\n",
1184
- changeDetection: core.ChangeDetectionStrategy.OnPush,
1185
- providers: [{
1186
- provide: forms.NG_VALUE_ACCESSOR,
1187
- useExisting: core.forwardRef((/**
1188
- * @return {?}
1189
- */
1190
- function () { return DatepickerComponent; })),
1191
- // tslint:disable-line:no-forward-ref
1192
- multi: true,
1193
- }, {
1194
- provide: forms.NG_VALIDATORS,
1195
- useExisting: core.forwardRef((/**
1196
- * @return {?}
1197
- */
1198
- function () { return DatepickerComponent; })),
1199
- // tslint:disable-line:no-forward-ref
1200
- multi: true,
1201
- }],
1202
- styles: [".aui-datepicker,:host{display:block}"]
1203
- }] }
1204
- ];
1205
- /** @nocollapse */
1206
- DatepickerComponent.ctorParameters = function () { return [
1207
- { type: undefined, decorators: [{ type: core.Inject, args: [ngxCalendar.CALENDAR_MONTH_LABELS,] }] },
1208
- { type: undefined, decorators: [{ type: core.Inject, args: [ngxCalendar.CALENDAR_WEEKDAY_LABELS,] }] },
1209
- { type: undefined, decorators: [{ type: core.Inject, args: [DATEPICKER_ERROR_LABELS,] }] },
1210
- { type: ngxCalendar.CalendarService },
1211
- { type: forms.FormBuilder },
1212
- { type: core.ChangeDetectorRef }
1213
- ]; };
1214
- DatepickerComponent.propDecorators = {
1215
- flyout: [{ type: core.ViewChild, args: [ngxFlyout.FlyoutDirective, { static: true },] }],
1216
- id: [{ type: core.Input }],
1217
- name: [{ type: core.Input }],
1218
- placeholder: [{ type: core.Input }],
1219
- range: [{ type: core.Input }],
1220
- min: [{ type: core.Input }],
1221
- max: [{ type: core.Input }],
1222
- autocomplete: [{ type: core.Input }],
1223
- blur: [{ type: core.Output }]
1224
- };
1225
- return DatepickerComponent;
1226
- }());
1227
- if (false) {
1228
- /** @type {?} */
1229
- DatepickerComponent.prototype.flyout;
1230
- /** @type {?} */
1231
- DatepickerComponent.prototype.id;
1232
- /** @type {?} */
1233
- DatepickerComponent.prototype.name;
1234
- /** @type {?} */
1235
- DatepickerComponent.prototype.placeholder;
1236
- /** @type {?} */
1237
- DatepickerComponent.prototype.range;
1238
- /** @type {?} */
1239
- DatepickerComponent.prototype.min;
1240
- /** @type {?} */
1241
- DatepickerComponent.prototype.max;
1242
- /** @type {?} */
1243
- DatepickerComponent.prototype.autocomplete;
1244
- /** @type {?} */
1245
- DatepickerComponent.prototype.blur;
1246
- /** @type {?} */
1247
- DatepickerComponent.prototype.dateMask;
1248
- /** @type {?} */
1249
- DatepickerComponent.prototype.formControl;
1250
- /** @type {?} */
1251
- DatepickerComponent.prototype.selectedDate;
1252
- /** @type {?} */
1253
- DatepickerComponent.prototype.isDisabled;
1254
- /** @type {?} */
1255
- DatepickerComponent.prototype.interval;
1256
- /**
1257
- * @type {?}
1258
- * @private
1259
- */
1260
- DatepickerComponent.prototype.componentDestroyed$;
1261
- /**
1262
- * @type {?}
1263
- * @private
1264
- */
1265
- DatepickerComponent.prototype.onChange;
1266
- /**
1267
- * @type {?}
1268
- * @private
1269
- */
1270
- DatepickerComponent.prototype.onTouched;
1271
- /**
1272
- * @type {?}
1273
- * @private
1274
- */
1275
- DatepickerComponent.prototype.monthLabels;
1276
- /**
1277
- * @type {?}
1278
- * @private
1279
- */
1280
- DatepickerComponent.prototype.weekdayLabels;
1281
- /**
1282
- * @type {?}
1283
- * @private
1284
- */
1285
- DatepickerComponent.prototype.errorLabels;
1286
- /** @type {?} */
1287
- DatepickerComponent.prototype.calendarService;
1288
- /**
1289
- * @type {?}
1290
- * @private
1291
- */
1292
- DatepickerComponent.prototype.formBuilder;
1293
- /**
1294
- * @type {?}
1295
- * @private
1296
- */
1297
- DatepickerComponent.prototype.ref;
1298
- }
1299
-
1300
- /**
1301
- * @fileoverview added by tsickle
1302
- * Generated from: lib/datepicker/datepicker.module.ts
1303
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1304
- */
1305
- var ɵ0 = ngxCalendar.CALENDAR_DEFAULT_WEEKDAY_LABELS, ɵ1 = ngxCalendar.CALENDAR_DEFAULT_MONTH_LABELS, ɵ2 = DATEPICKER_DEFAULT_ERROR_LABELS;
1306
- var DatepickerModule = /** @class */ (function () {
1307
- function DatepickerModule() {
1308
- }
1309
- /**
1310
- * @param {?} weekdayLabels
1311
- * @param {?} monthLabels
1312
- * @param {?} errorLabels
1313
- * @return {?}
1314
- */
1315
- DatepickerModule.forChild = /**
1316
- * @param {?} weekdayLabels
1317
- * @param {?} monthLabels
1318
- * @param {?} errorLabels
1319
- * @return {?}
1320
- */
1321
- function (weekdayLabels, monthLabels, errorLabels) {
1322
- return {
1323
- ngModule: DatepickerModule,
1324
- providers: [
1325
- { provide: ngxCalendar.CALENDAR_WEEKDAY_LABELS, useValue: weekdayLabels },
1326
- { provide: ngxCalendar.CALENDAR_MONTH_LABELS, useValue: monthLabels },
1327
- { provide: DATEPICKER_ERROR_LABELS, useValue: errorLabels },
1328
- ],
1329
- };
1330
- };
1331
- DatepickerModule.decorators = [
1332
- { type: core.NgModule, args: [{
1333
- imports: [
1334
- common.CommonModule,
1335
- forms.FormsModule,
1336
- forms.ReactiveFormsModule,
1337
- ngxCalendar.CalendarModule,
1338
- ngxIcon.IconModule,
1339
- ngxFlyout.FlyoutModule,
1340
- MaskModule,
1341
- ],
1342
- declarations: [
1343
- DatepickerComponent,
1344
- ],
1345
- exports: [
1346
- DatepickerComponent,
1347
- ],
1348
- providers: [
1349
- { provide: ngxCalendar.CALENDAR_WEEKDAY_LABELS, useValue: ɵ0 },
1350
- { provide: ngxCalendar.CALENDAR_MONTH_LABELS, useValue: ɵ1 },
1351
- { provide: DATEPICKER_ERROR_LABELS, useValue: ɵ2 },
1352
- ],
1353
- },] }
1354
- ];
1355
- return DatepickerModule;
1356
- }());
1357
-
1358
- /**
1359
- * @fileoverview added by tsickle
1360
- * Generated from: lib/datepicker/public-api.ts
1361
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1362
- */
1363
-
1364
- /**
1365
- * @fileoverview added by tsickle
1366
- * Generated from: lib/mask/public-api.ts
1367
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1368
- */
1369
-
1370
- /**
1371
- * @fileoverview added by tsickle
1372
- * Generated from: lib/range-slider/components/range-slider/range-slider.component.ts
1373
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1374
- */
1375
- var RangeSliderComponent = /** @class */ (function () {
1376
- function RangeSliderComponent(elRef) {
1377
- this.elRef = elRef;
1378
- this.coreBranding = true;
1379
- this.min = 0;
1380
- this.max = 100;
1381
- this.minimalDistance = 1;
1382
- this.step = 0;
1383
- this.labelBefore = '';
1384
- this.labelAfter = '';
1385
- this.start = 0;
1386
- this.end = false;
1387
- this.steps = [];
1388
- this.active = null;
1389
- this.isDisabled = false;
1390
- this.hasFocus = false;
1391
- this.click = false;
1392
- this.propagateChange = (/**
1393
- * @param {?} value
1394
- * @return {?}
1395
- */
1396
- function (value) {
1397
- });
1398
- }
1399
- Object.defineProperty(RangeSliderComponent.prototype, "disabledClass", {
1400
- get: /**
1401
- * @return {?}
1402
- */
1403
- function () {
1404
- return this.isDisabled;
1405
- },
1406
- enumerable: true,
1407
- configurable: true
1408
- });
1409
- /**
1410
- * @return {?}
1411
- */
1412
- RangeSliderComponent.prototype.ngOnInit = /**
1413
- * @return {?}
1414
- */
1415
- function () {
1416
- if (this.step > 0) {
1417
- for (var i = 0; i <= this.max; i += Number(this.step)) {
1418
- this.steps.push(i);
1419
- }
1420
- }
1421
- this.startPercentage = this.startToPercentage();
1422
- if (this.end) {
1423
- this.endPercentage = this.endToPercentage();
1424
- }
1425
- };
1426
- /**
1427
- * @param {?} value
1428
- * @return {?}
1429
- */
1430
- RangeSliderComponent.prototype.writeValue = /**
1431
- * @param {?} value
1432
- * @return {?}
1433
- */
1434
- function (value) {
1435
- if (value && value.start) {
1436
- this.start = value.start;
1437
- }
1438
- else if (!isNaN(value) && value !== '') {
1439
- this.start = Number(value);
1440
- }
1441
- else {
1442
- this.setStart(Number(this.min));
1443
- }
1444
- this.startPercentage = this.startToPercentage();
1445
- if (value && value.end) {
1446
- this.end = value.end;
1447
- this.endPercentage = this.endToPercentage();
1448
- }
1449
- };
1450
- /**
1451
- * @return {?}
1452
- */
1453
- RangeSliderComponent.prototype.registerOnTouched = /**
1454
- * @return {?}
1455
- */
1456
- function () {
1457
- };
1458
- /**
1459
- * @param {?} fn
1460
- * @return {?}
1461
- */
1462
- RangeSliderComponent.prototype.registerOnChange = /**
1463
- * @param {?} fn
1464
- * @return {?}
1465
- */
1466
- function (fn) {
1467
- this.propagateChange = fn;
1468
- };
1469
- /**
1470
- * @param {?} isDisabled
1471
- * @return {?}
1472
- */
1473
- RangeSliderComponent.prototype.setDisabledState = /**
1474
- * @param {?} isDisabled
1475
- * @return {?}
1476
- */
1477
- function (isDisabled) {
1478
- this.isDisabled = isDisabled;
1479
- };
1480
- /**
1481
- * @param {?} handle
1482
- * @return {?}
1483
- */
1484
- RangeSliderComponent.prototype.onMouseDown = /**
1485
- * @param {?} handle
1486
- * @return {?}
1487
- */
1488
- function (handle) {
1489
- if (this.isDisabled) {
1490
- return;
1491
- }
1492
- this.hasFocus = true;
1493
- this.active = handle;
1494
- };
1495
- /**
1496
- * @param {?} hasFocus
1497
- * @param {?} element
1498
- * @param {?} $event
1499
- * @return {?}
1500
- */
1501
- RangeSliderComponent.prototype.toggleFocus = /**
1502
- * @param {?} hasFocus
1503
- * @param {?} element
1504
- * @param {?} $event
1505
- * @return {?}
1506
- */
1507
- function (hasFocus, element, $event) {
1508
- if (this.isDisabled) {
1509
- return;
1510
- }
1511
- $event.preventDefault();
1512
- this.hasFocus = hasFocus;
1513
- this.active = element;
1514
- };
1515
- /**
1516
- * @param {?} $event
1517
- * @return {?}
1518
- */
1519
- RangeSliderComponent.prototype.onKeyDown = /**
1520
- * @param {?} $event
1521
- * @return {?}
1522
- */
1523
- function ($event) {
1524
- var _this = this;
1525
- if (!this.hasFocus) {
1526
- return;
1527
- }
1528
- /** @type {?} */
1529
- var key = $event.keyCode;
1530
- /** @type {?} */
1531
- var keyCodes = {
1532
- end: 35,
1533
- home: 36,
1534
- left: 37,
1535
- up: 38,
1536
- right: 39,
1537
- down: 40,
1538
- };
1539
- if (Object.keys(keyCodes).map((/**
1540
- * @param {?} e
1541
- * @return {?}
1542
- */
1543
- function (e) { return keyCodes[e]; })).indexOf(key) === -1) {
1544
- return;
1545
- }
1546
- /** @type {?} */
1547
- var increment = this.minimalDistance;
1548
- if (this.step > 0) {
1549
- increment = Number(this.step);
1550
- }
1551
- /** @type {?} */
1552
- var processValue = (/**
1553
- * @param {?} dir
1554
- * @return {?}
1555
- */
1556
- function (dir) {
1557
- /** @type {?} */
1558
- var newValue = (_this.active === 'start' ? _this.start : Number(_this.end));
1559
- if (dir === 'up') {
1560
- newValue += increment;
1561
- }
1562
- else {
1563
- newValue -= increment;
1564
- }
1565
- /** @type {?} */
1566
- var newPercentage = (newValue - _this.min) / (_this.max - _this.min) * 100;
1567
- if (newPercentage > 100) {
1568
- newPercentage = 100;
1569
- }
1570
- if (newPercentage < 0) {
1571
- newPercentage = 0;
1572
- }
1573
- return newPercentage;
1574
- });
1575
- switch (key) {
1576
- case keyCodes.right:
1577
- case keyCodes.up:
1578
- this.updateHandle(processValue('up'));
1579
- $event.preventDefault();
1580
- break;
1581
- case keyCodes.left:
1582
- case keyCodes.down:
1583
- this.updateHandle(processValue('down'));
1584
- $event.preventDefault();
1585
- break;
1586
- case keyCodes.end:
1587
- this.updateHandle(100);
1588
- $event.preventDefault();
1589
- break;
1590
- case keyCodes.home:
1591
- this.updateHandle(0);
1592
- $event.preventDefault();
1593
- break;
1594
- }
1595
- };
1596
- /**
1597
- * @param {?} event
1598
- * @return {?}
1599
- */
1600
- RangeSliderComponent.prototype.onMouseUp = /**
1601
- * @param {?} event
1602
- * @return {?}
1603
- */
1604
- function (event) {
1605
- if (this.active === 'start') {
1606
- this.setStart(this.round(this.start, this.step, 0));
1607
- this.startPercentage = this.startToPercentage();
1608
- }
1609
- if (this.active === 'end') {
1610
- this.setEnd(this.round(this.end, this.step, 0));
1611
- this.endPercentage = this.endToPercentage();
1612
- }
1613
- this.click = false;
1614
- };
1615
- /**
1616
- * @param {?} event
1617
- * @return {?}
1618
- */
1619
- RangeSliderComponent.prototype.mouseDown = /**
1620
- * @param {?} event
1621
- * @return {?}
1622
- */
1623
- function (event) {
1624
- this.click = true;
1625
- };
1626
- /**
1627
- * @param {?} event
1628
- * @return {?}
1629
- */
1630
- RangeSliderComponent.prototype.onMouseMove = /**
1631
- * @param {?} event
1632
- * @return {?}
1633
- */
1634
- function (event) {
1635
- if (!this.active || !this.click) {
1636
- return;
1637
- }
1638
- event.preventDefault(); // Do not select text while sliding
1639
- // Do not select text while sliding
1640
- /** @type {?} */
1641
- var x = ((/** @type {?} */ (event))).x !== undefined ? ((/** @type {?} */ (event))).x : ((/** @type {?} */ (event))).targetTouches[0].pageX;
1642
- /** @type {?} */
1643
- var rect = this.elRef.nativeElement.getBoundingClientRect();
1644
- /** @type {?} */
1645
- var newPercentage = this.calcPercentage(x, rect.width, rect.left);
1646
- this.updateHandle(newPercentage);
1647
- };
1648
- /**
1649
- * @param {?} newPercentage
1650
- * @return {?}
1651
- */
1652
- RangeSliderComponent.prototype.updateHandle = /**
1653
- * @param {?} newPercentage
1654
- * @return {?}
1655
- */
1656
- function (newPercentage) {
1657
- if (this.active === 'start') {
1658
- this.startPercentage = newPercentage;
1659
- this.setStart(this.percentageToStart());
1660
- if (this.minimalDistanceNotRespected()) {
1661
- this.setStart(Number(this.end) - Number(this.minimalDistance));
1662
- this.startPercentage = this.startToPercentage();
1663
- }
1664
- }
1665
- if (this.active === 'end' && this.endPercentage) {
1666
- this.endPercentage = newPercentage;
1667
- this.setEnd(this.percentageToEnd());
1668
- if (this.minimalDistanceNotRespected()) {
1669
- this.setEnd(Number(this.start) + Number(this.minimalDistance));
1670
- this.endPercentage = this.endToPercentage();
1671
- }
1672
- }
1673
- };
1674
- // ---------- HELPERS ---------- //
1675
- // ---------- HELPERS ---------- //
1676
- /**
1677
- * @param {?} value
1678
- * @return {?}
1679
- */
1680
- RangeSliderComponent.prototype.setStart =
1681
- // ---------- HELPERS ---------- //
1682
- /**
1683
- * @param {?} value
1684
- * @return {?}
1685
- */
1686
- function (value) {
1687
- this.start = value;
1688
- if (this.end) {
1689
- this.propagateChange((/** @type {?} */ ({
1690
- start: this.start,
1691
- end: this.end,
1692
- })));
1693
- }
1694
- else {
1695
- this.propagateChange(this.start);
1696
- }
1697
- };
1698
- /**
1699
- * @param {?} value
1700
- * @return {?}
1701
- */
1702
- RangeSliderComponent.prototype.setEnd = /**
1703
- * @param {?} value
1704
- * @return {?}
1705
- */
1706
- function (value) {
1707
- this.end = value;
1708
- this.propagateChange((/** @type {?} */ ({
1709
- start: this.start,
1710
- end: this.end,
1711
- })));
1712
- };
1713
- /**
1714
- * @param {?} n
1715
- * @param {?} increment
1716
- * @param {?} offset
1717
- * @return {?}
1718
- */
1719
- RangeSliderComponent.prototype.round = /**
1720
- * @param {?} n
1721
- * @param {?} increment
1722
- * @param {?} offset
1723
- * @return {?}
1724
- */
1725
- function (n, increment, offset) {
1726
- if (increment > 0) {
1727
- return Math.round((n - offset) / increment) * increment + offset;
1728
- }
1729
- return n;
1730
- };
1731
- /**
1732
- * @return {?}
1733
- */
1734
- RangeSliderComponent.prototype.startToPercentage = /**
1735
- * @return {?}
1736
- */
1737
- function () {
1738
- return Math.round((this.start - this.min) / (this.max - this.min) * 100);
1739
- };
1740
- /**
1741
- * @return {?}
1742
- */
1743
- RangeSliderComponent.prototype.percentageToStart = /**
1744
- * @return {?}
1745
- */
1746
- function () {
1747
- return Math.round((this.startPercentage / 100) * (this.max - this.min) + Number(this.min));
1748
- };
1749
- /**
1750
- * @return {?}
1751
- */
1752
- RangeSliderComponent.prototype.endToPercentage = /**
1753
- * @return {?}
1754
- */
1755
- function () {
1756
- return Math.round((Number(this.end) - this.min) / (this.max - this.min) * 100);
1757
- };
1758
- /**
1759
- * @return {?}
1760
- */
1761
- RangeSliderComponent.prototype.percentageToEnd = /**
1762
- * @return {?}
1763
- */
1764
- function () {
1765
- return Math.round((this.endPercentage / 100) * (this.max - this.min) + Number(this.min));
1766
- };
1767
- /**
1768
- * @return {?}
1769
- */
1770
- RangeSliderComponent.prototype.minimalDistanceNotRespected = /**
1771
- * @return {?}
1772
- */
1773
- function () {
1774
- return this.minimalDistance >= 0 && this.end && this.start > Number(this.end) - this.minimalDistance;
1775
- };
1776
- /**
1777
- * @param {?} mouseX
1778
- * @param {?} width
1779
- * @param {?} offsetLeft
1780
- * @return {?}
1781
- */
1782
- RangeSliderComponent.prototype.calcPercentage = /**
1783
- * @param {?} mouseX
1784
- * @param {?} width
1785
- * @param {?} offsetLeft
1786
- * @return {?}
1787
- */
1788
- function (mouseX, width, offsetLeft) {
1789
- /** @type {?} */
1790
- var mousePos = mouseX - offsetLeft;
1791
- /** @type {?} */
1792
- var newPercentage = Math.round((mousePos / width) * 100);
1793
- if (newPercentage > 100) {
1794
- newPercentage = 100;
1795
- }
1796
- if (newPercentage < 0) {
1797
- newPercentage = 0;
1798
- }
1799
- return newPercentage;
1800
- };
1801
- RangeSliderComponent.decorators = [
1802
- { type: core.Component, args: [{
1803
- selector: 'aui-range-slider',
1804
- template: "<div class=\"m-range-slider__inner\">\n <div\n [style.left]=\"endPercentage ? startPercentage + '%' : false\"\n [style.width]=\"endPercentage ? endPercentage - startPercentage + '%' : startPercentage + '%'\"\n class=\"m-range-slider__bar\"\n ></div>\n <span\n (blur)=\"toggleFocus(false, null, $event)\"\n (dragexit)=\"onMouseUp($event)\"\n (focus)=\"toggleFocus(true, 'start', $event)\"\n (mousedown)=\"onMouseDown('start')\"\n (touchstart)=\"onMouseDown('start')\"\n [style.left]=\"startPercentage + '%'\"\n class=\"m-range-slider__handle\"\n tabindex=\"0\"\n >\n\t\t<div class=\"m-range-slider__tooltip a-tooltip a-tooltip--primary a-tooltip--top\">\n\t\t\t<p>{{ labelBefore }}{{ start }}{{ labelAfter }}</p>\n\t\t</div>\n\t</span>\n\n <span\n (blur)=\"toggleFocus(false, null, $event)\"\n (dragexit)=\"onMouseUp($event)\"\n (focus)=\"toggleFocus(true, 'end', $event)\"\n (mousedown)=\"onMouseDown('end')\"\n (touchstart)=\"onMouseDown('end')\"\n *ngIf=\"end\"\n [style.left]=\"endPercentage + '%'\"\n class=\"m-range-slider__handle\"\n name=\"m-range-slider__handle__end\"\n tabindex=\"0\"\n >\n\t\t<div class=\"m-range-slider__tooltip a-tooltip a-tooltip--primary a-tooltip--top\">\n\t\t\t<p>{{ labelBefore }}{{ end }}{{ labelAfter }}</p>\n\t\t</div>\n\t</span>\n</div>\n\n<div class=\"m-range-slider__steps\">\n <div *ngFor=\"let step of steps; let i = index\" class=\"m-range-slider__step\"></div>\n</div>\n\n<div class=\"m-range-slider__step-labels\">\n <div *ngFor=\"let step of steps; let i = index\" class=\"m-range-slider__step\">{{ step }}</div>\n</div>\n",
1805
- providers: [
1806
- {
1807
- provide: forms.NG_VALUE_ACCESSOR,
1808
- useExisting: core.forwardRef((/**
1809
- * @return {?}
1810
- */
1811
- function () { return RangeSliderComponent; })),
1812
- // tslint:disable-line
1813
- multi: true,
1814
- },
1815
- ],
1816
- styles: [":host{display:block;position:relative}:host.is-disabled{cursor:not-allowed}:host.is-disabled .m-range-slider__handle:hover{cursor:not-allowed}"]
1817
- }] }
1818
- ];
1819
- /** @nocollapse */
1820
- RangeSliderComponent.ctorParameters = function () { return [
1821
- { type: core.ElementRef }
1822
- ]; };
1823
- RangeSliderComponent.propDecorators = {
1824
- coreBranding: [{ type: core.HostBinding, args: ['class.m-range-slider',] }],
1825
- min: [{ type: core.Input }],
1826
- max: [{ type: core.Input }],
1827
- minimalDistance: [{ type: core.Input }],
1828
- step: [{ type: core.Input }],
1829
- labelBefore: [{ type: core.Input }],
1830
- labelAfter: [{ type: core.Input }],
1831
- disabledClass: [{ type: core.HostBinding, args: ['class.is-disabled',] }],
1832
- onKeyDown: [{ type: core.HostListener, args: ['document:keydown', ['$event'],] }],
1833
- onMouseUp: [{ type: core.HostListener, args: ['touchend', ['$event'],] }, { type: core.HostListener, args: ['mouseup', ['$event'],] }],
1834
- mouseDown: [{ type: core.HostListener, args: ['touchstart', ['$event'],] }, { type: core.HostListener, args: ['mousedown', ['$event'],] }],
1835
- onMouseMove: [{ type: core.HostListener, args: ['touchmove', ['$event'],] }, { type: core.HostListener, args: ['mousemove', ['$event'],] }]
1836
- };
1837
- return RangeSliderComponent;
1838
- }());
1839
- if (false) {
1840
- /** @type {?} */
1841
- RangeSliderComponent.prototype.coreBranding;
1842
- /** @type {?} */
1843
- RangeSliderComponent.prototype.min;
1844
- /** @type {?} */
1845
- RangeSliderComponent.prototype.max;
1846
- /** @type {?} */
1847
- RangeSliderComponent.prototype.minimalDistance;
1848
- /** @type {?} */
1849
- RangeSliderComponent.prototype.step;
1850
- /** @type {?} */
1851
- RangeSliderComponent.prototype.labelBefore;
1852
- /** @type {?} */
1853
- RangeSliderComponent.prototype.labelAfter;
1854
- /** @type {?} */
1855
- RangeSliderComponent.prototype.start;
1856
- /** @type {?} */
1857
- RangeSliderComponent.prototype.end;
1858
- /** @type {?} */
1859
- RangeSliderComponent.prototype.steps;
1860
- /** @type {?} */
1861
- RangeSliderComponent.prototype.startPercentage;
1862
- /** @type {?} */
1863
- RangeSliderComponent.prototype.endPercentage;
1864
- /** @type {?} */
1865
- RangeSliderComponent.prototype.active;
1866
- /** @type {?} */
1867
- RangeSliderComponent.prototype.isDisabled;
1868
- /** @type {?} */
1869
- RangeSliderComponent.prototype.hasFocus;
1870
- /** @type {?} */
1871
- RangeSliderComponent.prototype.click;
1872
- /** @type {?} */
1873
- RangeSliderComponent.prototype.propagateChange;
1874
- /**
1875
- * @type {?}
1876
- * @private
1877
- */
1878
- RangeSliderComponent.prototype.elRef;
1879
- }
1880
-
1881
- /**
1882
- * @fileoverview added by tsickle
1883
- * Generated from: lib/range-slider/range-slider.module.ts
1884
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1885
- */
1886
- var RangeSliderModule = /** @class */ (function () {
1887
- function RangeSliderModule() {
1888
- }
1889
- RangeSliderModule.decorators = [
1890
- { type: core.NgModule, args: [{
1891
- imports: [
1892
- common.CommonModule,
1893
- forms.FormsModule,
1894
- ],
1895
- declarations: [
1896
- RangeSliderComponent,
1897
- ],
1898
- exports: [
1899
- RangeSliderComponent,
1900
- ],
1901
- },] }
1902
- ];
1903
- return RangeSliderModule;
1904
- }());
1905
-
1906
- /**
1907
- * @fileoverview added by tsickle
1908
- * Generated from: lib/range-slider/public-api.ts
1909
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1910
- */
1911
-
1912
- /**
1913
- * @fileoverview added by tsickle
1914
- * Generated from: lib/search-filter/components/search-filter/search-filter.component.ts
1915
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1916
- */
1917
- var SearchFilterComponent = /** @class */ (function () {
1918
- function SearchFilterComponent() {
1919
- this.flyoutSize = ngxFlyout.FlyoutSize.Small;
1920
- this.label = 'Filter';
1921
- this.labelDeselect = 'Alles deselecteren';
1922
- this.labelResults = 'Resultaten';
1923
- this.labelNoResults = 'Geen resultaten gevonden.';
1924
- this.choices = [];
1925
- this.placeholder = 'Zoeken';
1926
- this.inputDelay = 150;
1927
- this.showAllByDefault = false;
1928
- this.size = 'default';
1929
- this.search = new core.EventEmitter();
1930
- this.query = '';
1931
- this.selectedItems = [];
1932
- this.filteredChoices = [];
1933
- this.loading = false;
1934
- this.isDisabled = false;
1935
- this.updateModel = (/**
1936
- * @return {?}
1937
- */
1938
- function () {
1939
- });
1940
- this.filterDataFromSearch = lodashEs.debounce(this.filterData.bind(this), this.inputDelay);
1941
- }
1942
- /**
1943
- * @param {?} value
1944
- * @return {?}
1945
- */
1946
- SearchFilterComponent.prototype.writeValue = /**
1947
- * @param {?} value
1948
- * @return {?}
1949
- */
1950
- function (value) {
1951
- this.selectedItems = Array.isArray(value) ? value : [];
1952
- };
1953
- /**
1954
- * @param {?} onChange
1955
- * @return {?}
1956
- */
1957
- SearchFilterComponent.prototype.registerOnChange = /**
1958
- * @param {?} onChange
1959
- * @return {?}
1960
- */
1961
- function (onChange) {
1962
- this.updateModel = onChange;
1963
- };
1964
- /**
1965
- * @return {?}
1966
- */
1967
- SearchFilterComponent.prototype.registerOnTouched = /**
1968
- * @return {?}
1969
- */
1970
- function () {
1971
- };
1972
- /**
1973
- * @param {?} isDisabled
1974
- * @return {?}
1975
- */
1976
- SearchFilterComponent.prototype.setDisabledState = /**
1977
- * @param {?} isDisabled
1978
- * @return {?}
1979
- */
1980
- function (isDisabled) {
1981
- this.isDisabled = isDisabled;
1982
- };
1983
- /**
1984
- * @return {?}
1985
- */
1986
- SearchFilterComponent.prototype.ngOnInit = /**
1987
- * @return {?}
1988
- */
1989
- function () {
1990
- if (this.showAllByDefault) {
1991
- this.filterData();
1992
- }
1993
- };
1994
- /**
1995
- * @param {?} changes
1996
- * @return {?}
1997
- */
1998
- SearchFilterComponent.prototype.ngOnChanges = /**
1999
- * @param {?} changes
2000
- * @return {?}
2001
- */
2002
- function (changes) {
2003
- /** @type {?} */
2004
- var choices = lodashEs.get(changes, 'choices.currentValue', null);
2005
- if (!choices) {
2006
- return;
2007
- }
2008
- if (this.remote) {
2009
- this.filteredChoices = __spread(choices);
2010
- this.loading = false;
2011
- }
2012
- else {
2013
- this.filterData();
2014
- }
2015
- };
2016
- /**
2017
- * @return {?}
2018
- */
2019
- SearchFilterComponent.prototype.filterData = /**
2020
- * @return {?}
2021
- */
2022
- function () {
2023
- if (this.remote) {
2024
- this.loading = true;
2025
- return this.search.emit(this.query);
2026
- }
2027
- this.filterChoices();
2028
- };
2029
- /**
2030
- * @return {?}
2031
- */
2032
- SearchFilterComponent.prototype.clear = /**
2033
- * @return {?}
2034
- */
2035
- function () {
2036
- this.selectedItems = [];
2037
- this.query = '';
2038
- this.filterData();
2039
- this.updateModel(this.selectedItems);
2040
- };
2041
- /**
2042
- * @param {?} choice
2043
- * @return {?}
2044
- */
2045
- SearchFilterComponent.prototype.toggleSelected = /**
2046
- * @param {?} choice
2047
- * @return {?}
2048
- */
2049
- function (choice) {
2050
- /** @type {?} */
2051
- var selected = this.selectedItems.indexOf(choice);
2052
- if (selected < 0) {
2053
- this.selectedItems = this.selectedItems.concat(choice);
2054
- }
2055
- else {
2056
- this.selectedItems = __spread(this.selectedItems.slice(0, selected), this.selectedItems.slice(selected + 1));
2057
- }
2058
- this.updateModel(this.selectedItems);
2059
- };
2060
- /**
2061
- * @private
2062
- * @return {?}
2063
- */
2064
- SearchFilterComponent.prototype.filterChoices = /**
2065
- * @private
2066
- * @return {?}
2067
- */
2068
- function () {
2069
- var _this = this;
2070
- this.filteredChoices = this.choices.filter((/**
2071
- * @param {?} choice
2072
- * @return {?}
2073
- */
2074
- function (choice) {
2075
- return (_this.selectedItems.indexOf(choice.value) < 0 &&
2076
- choice.label.toLowerCase().indexOf(_this.query.toLowerCase()) >= 0);
2077
- }));
2078
- };
2079
- SearchFilterComponent.decorators = [
2080
- { type: core.Component, args: [{
2081
- selector: 'aui-search-filter',
2082
- template: "<div [align]=\"flyoutAlign\" [size]=\"flyoutSize\" auiFlyout class=\"m-search-filter\">\n <button class=\"has-icon-right a-button--default\" [attr.disabled]=\"isDisabled ? 'true' : null\" aria-haspopup=\u201Dtrue\u201D\n auiFlyoutAction\n [ngClass]=\"{\n 'a-button' : selectedItems.length,\n 'a-button-outline' : !selectedItems.length,\n 'a-button--large' : size === 'large',\n 'a-button--small': size === 'small',\n 'a-button--tiny' : size === 'tiny'\n }\">\n <span id=\"{{ id + '-label' }}\">{{ label }}</span>\n <span *ngIf=\"selectedItems.length\"> ({{ selectedItems.length }})</span>\n <aui-icon name=\"ai-arrow-down-1\"></aui-icon>\n </button>\n\n <div auiFlyoutZone class=\"m-search-filter__search m-search-filter__search--scroll\">\n <div *ngIf=\"!isDisabled\" class=\"m-search-filter__input a-input has-icon-right\">\n <div class=\"a-input__wrapper\">\n <input (input)=\"filterDataFromSearch()\" [(ngModel)]=\"query\" [attr.aria-labelledby]=\"id + '-label'\"\n [attr.placeholder]=\"placeholder\"\n aria-autocomplete=\"list\" id=\"{{ id + '-search' }}\" name=\"{{ name + '-search' }}\"\n type=\"text\">\n <aui-icon name=\"ai-search\"></aui-icon>\n </div>\n </div>\n\n <div *ngIf=\"!isDisabled && selectedItems.length > 0\" class=\"m-search-filter__clear\">\n <button (click)=\"clear()\" class=\"a-button-outline a-button--small a-button--danger has-icon-left\" type=\"button\">\n <aui-icon name=\"ai-close\"></aui-icon>\n {{ labelDeselect }}\n </button>\n </div>\n\n <p *ngIf=\"labelResults\" class=\"h6 m-search-filter__results-title u-margin-bottom-xs\">{{ labelResults }}</p>\n <div *ngIf=\"loading\" class=\"u-text-center u-padding a-spinner\"></div>\n <ul *ngIf=\"!loading\" class=\"a-list a-list--lined a-list--unstyled\">\n <li *ngIf=\"!filteredChoices.length\" class=\"m-search-filter__results-item a-list__item\">\n <p class=\"u-margin-xs\">{{ labelNoResults }}</p>\n </li>\n <li *ngFor=\"let choice of filteredChoices; index as i\" class=\"m-search-filter__results-item a-list__item\">\n <div class=\"a-input__checkbox\">\n <input\n (change)=\"toggleSelected(choice.value)\"\n [attr.disabled]=\"isDisabled ? true : null\"\n [checked]=\"selectedItems.indexOf(choice.value) >= 0\"\n id=\"{{ 'checkbox--' + i + '--' + id }}\"\n name=\"{{ 'checkbox--' + i + '--' + id }}\"\n type=\"checkbox\"\n />\n <label for=\"{{ 'checkbox--' + i + '--' + id }}\">{{ choice.label }}</label>\n </div>\n </li>\n </ul>\n </div>\n</div>\n",
2083
- providers: [{
2084
- provide: forms.NG_VALUE_ACCESSOR,
2085
- useExisting: core.forwardRef((/**
2086
- * @return {?}
2087
- */
2088
- function () { return SearchFilterComponent; })),
2089
- // tslint:disable-line:no-forward-ref
2090
- multi: true,
2091
- }]
2092
- }] }
2093
- ];
2094
- /** @nocollapse */
2095
- SearchFilterComponent.ctorParameters = function () { return []; };
2096
- SearchFilterComponent.propDecorators = {
2097
- id: [{ type: core.Input }],
2098
- name: [{ type: core.Input }],
2099
- flyoutSize: [{ type: core.Input }],
2100
- flyoutAlign: [{ type: core.Input }],
2101
- label: [{ type: core.Input }],
2102
- labelDeselect: [{ type: core.Input }],
2103
- labelResults: [{ type: core.Input }],
2104
- labelNoResults: [{ type: core.Input }],
2105
- choices: [{ type: core.Input }],
2106
- remote: [{ type: core.Input }],
2107
- placeholder: [{ type: core.Input }],
2108
- inputDelay: [{ type: core.Input }],
2109
- showAllByDefault: [{ type: core.Input }],
2110
- size: [{ type: core.Input }],
2111
- search: [{ type: core.Output }]
2112
- };
2113
- return SearchFilterComponent;
2114
- }());
2115
- if (false) {
2116
- /** @type {?} */
2117
- SearchFilterComponent.prototype.id;
2118
- /** @type {?} */
2119
- SearchFilterComponent.prototype.name;
2120
- /** @type {?} */
2121
- SearchFilterComponent.prototype.flyoutSize;
2122
- /** @type {?} */
2123
- SearchFilterComponent.prototype.flyoutAlign;
2124
- /** @type {?} */
2125
- SearchFilterComponent.prototype.label;
2126
- /** @type {?} */
2127
- SearchFilterComponent.prototype.labelDeselect;
2128
- /** @type {?} */
2129
- SearchFilterComponent.prototype.labelResults;
2130
- /** @type {?} */
2131
- SearchFilterComponent.prototype.labelNoResults;
2132
- /** @type {?} */
2133
- SearchFilterComponent.prototype.choices;
2134
- /** @type {?} */
2135
- SearchFilterComponent.prototype.remote;
2136
- /** @type {?} */
2137
- SearchFilterComponent.prototype.placeholder;
2138
- /** @type {?} */
2139
- SearchFilterComponent.prototype.inputDelay;
2140
- /** @type {?} */
2141
- SearchFilterComponent.prototype.showAllByDefault;
2142
- /** @type {?} */
2143
- SearchFilterComponent.prototype.size;
2144
- /** @type {?} */
2145
- SearchFilterComponent.prototype.search;
2146
- /** @type {?} */
2147
- SearchFilterComponent.prototype.query;
2148
- /** @type {?} */
2149
- SearchFilterComponent.prototype.selectedItems;
2150
- /** @type {?} */
2151
- SearchFilterComponent.prototype.filteredChoices;
2152
- /** @type {?} */
2153
- SearchFilterComponent.prototype.loading;
2154
- /** @type {?} */
2155
- SearchFilterComponent.prototype.isDisabled;
2156
- /** @type {?} */
2157
- SearchFilterComponent.prototype.filterDataFromSearch;
2158
- /** @type {?} */
2159
- SearchFilterComponent.prototype.updateModel;
2160
- }
2161
-
2162
- /**
2163
- * @fileoverview added by tsickle
2164
- * Generated from: lib/search-filter/search-filter.module.ts
2165
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2166
- */
2167
- var SearchFilterModule = /** @class */ (function () {
2168
- function SearchFilterModule() {
2169
- }
2170
- SearchFilterModule.decorators = [
2171
- { type: core.NgModule, args: [{
2172
- imports: [
2173
- common.CommonModule,
2174
- ngxFlyout.FlyoutModule,
2175
- forms.FormsModule,
2176
- ngxIcon.IconModule,
2177
- ],
2178
- declarations: [
2179
- SearchFilterComponent,
2180
- ],
2181
- exports: [
2182
- SearchFilterComponent,
2183
- ],
2184
- },] }
2185
- ];
2186
- return SearchFilterModule;
2187
- }());
2188
-
2189
- /**
2190
- * @fileoverview added by tsickle
2191
- * Generated from: lib/search-filter/public-api.ts
2192
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2193
- */
2194
-
2195
- /**
2196
- * @fileoverview added by tsickle
2197
- * Generated from: lib/timepicker/classes/timepicker.validators.ts
2198
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2199
- */
2200
- var TimePickerValidators = /** @class */ (function () {
2201
- function TimePickerValidators() {
2202
- }
2203
- // time `hh:mm` 24h format
2204
- // time `hh:mm` 24h format
2205
- /**
2206
- * @param {?} time
2207
- * @return {?}
2208
- */
2209
- TimePickerValidators.minTime =
2210
- // time `hh:mm` 24h format
2211
- /**
2212
- * @param {?} time
2213
- * @return {?}
2214
- */
2215
- function (time) {
2216
- /** @type {?} */
2217
- var validator = (/**
2218
- * @param {?} control
2219
- * @return {?}
2220
- */
2221
- function (control) {
2222
- /** @type {?} */
2223
- var splittedControlValue = control.value.split(':');
2224
- /** @type {?} */
2225
- var controlHours = parseInt(splittedControlValue[0], 10);
2226
- /** @type {?} */
2227
- var controlMinutes = parseInt(splittedControlValue[1], 10);
2228
- /** @type {?} */
2229
- var splittedMinTime = time.split(':');
2230
- /** @type {?} */
2231
- var minHours = parseInt(splittedMinTime[0], 10);
2232
- /** @type {?} */
2233
- var minMinutes = parseInt(splittedMinTime[1], 10);
2234
- // Don't throw error --> use Validator.required
2235
- if (isNaN(controlHours) || isNaN(controlMinutes) || isNaN(minHours) || isNaN(minMinutes)) {
2236
- return null;
2237
- }
2238
- if (minHours < controlHours) {
2239
- return null;
2240
- }
2241
- if (minHours === controlHours && minMinutes <= controlMinutes) {
2242
- return null;
2243
- }
2244
- return { minTime: { value: control.value } };
2245
- });
2246
- return validator;
2247
- };
2248
- // time `hh:mm` 24h format
2249
- // time `hh:mm` 24h format
2250
- /**
2251
- * @param {?} time
2252
- * @return {?}
2253
- */
2254
- TimePickerValidators.maxTime =
2255
- // time `hh:mm` 24h format
2256
- /**
2257
- * @param {?} time
2258
- * @return {?}
2259
- */
2260
- function (time) {
2261
- /** @type {?} */
2262
- var validator = (/**
2263
- * @param {?} control
2264
- * @return {?}
2265
- */
2266
- function (control) {
2267
- /** @type {?} */
2268
- var splittedControlValue = control.value.split(':');
2269
- /** @type {?} */
2270
- var controlHours = parseInt(splittedControlValue[0], 10);
2271
- /** @type {?} */
2272
- var controlMinutes = parseInt(splittedControlValue[1], 10);
2273
- /** @type {?} */
2274
- var splittedMinTime = time.split(':');
2275
- /** @type {?} */
2276
- var maxHours = parseInt(splittedMinTime[0], 10);
2277
- /** @type {?} */
2278
- var maxMinutes = parseInt(splittedMinTime[1], 10);
2279
- // Don't throw error --> use Validator.required
2280
- if (isNaN(controlHours) || isNaN(controlMinutes) || isNaN(maxHours) || isNaN(maxMinutes)) {
2281
- return null;
2282
- }
2283
- if (maxHours > controlHours) {
2284
- return null;
2285
- }
2286
- if (maxHours === controlHours && maxMinutes >= controlMinutes) {
2287
- return null;
2288
- }
2289
- return { maxTime: { value: control.value } };
2290
- });
2291
- return validator;
2292
- };
2293
- return TimePickerValidators;
2294
- }());
2295
-
2296
- /**
2297
- * @fileoverview added by tsickle
2298
- * Generated from: lib/timepicker/types/timepicker.types.ts
2299
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2300
- */
2301
- /** @enum {string} */
2302
- var TimepickerInputSize = {
2303
- Auto: "auto",
2304
- Small: "small",
2305
- Large: "large",
2306
- };
2307
-
2308
- /**
2309
- * @fileoverview added by tsickle
2310
- * Generated from: lib/timepicker/components/timepicker/timepicker.component.ts
2311
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2312
- */
2313
- var TimepickerComponent = /** @class */ (function () {
2314
- function TimepickerComponent(formBuilder, renderer) {
2315
- this.formBuilder = formBuilder;
2316
- this.renderer = renderer;
2317
- this.id = 'aui-timepicker-' + Math.random().toString(36).substring(2);
2318
- this.hoursPlaceholder = 'uu';
2319
- this.minutesPlaceholder = 'mm';
2320
- this.hasError = false;
2321
- this.size = TimepickerInputSize.Auto;
2322
- this.ariaLabelHours = 'Uur';
2323
- this.ariaLabelMinutes = 'Minuten';
2324
- this.shouldUseFallback = false;
2325
- this.minutes = [];
2326
- this.hours = [];
2327
- this.timeControl = new forms.FormControl();
2328
- this.componentDestroyed$ = new rxjs.Subject();
2329
- }
2330
- /**
2331
- * @return {?}
2332
- */
2333
- TimepickerComponent.prototype.ngOnInit = /**
2334
- * @return {?}
2335
- */
2336
- function () {
2337
- var _this = this;
2338
- this.shouldUseFallback = this.supportsNativeTimepicker();
2339
- this.minutes = this.getMinutes();
2340
- this.hours = this.getHours();
2341
- this.fallbackForm = this.formBuilder.group({
2342
- hours: null,
2343
- minutes: null,
2344
- });
2345
- this.fallbackForm.valueChanges
2346
- .pipe(operators.takeUntil(this.componentDestroyed$))
2347
- .subscribe((/**
2348
- * @param {?} formData
2349
- * @return {?}
2350
- */
2351
- function (formData) {
2352
- if (formData.hours && formData.minutes) {
2353
- _this.updateModel(formData.hours + ":" + formData.minutes);
2354
- }
2355
- else {
2356
- _this.updateModel('');
2357
- }
2358
- }));
2359
- this.timeControl.valueChanges
2360
- .pipe(operators.takeUntil(this.componentDestroyed$))
2361
- .subscribe((/**
2362
- * @param {?} time
2363
- * @return {?}
2364
- */
2365
- function (time) {
2366
- _this.updateModel(time);
2367
- }));
2368
- };
2369
- /**
2370
- * @return {?}
2371
- */
2372
- TimepickerComponent.prototype.ngOnDestroy = /**
2373
- * @return {?}
2374
- */
2375
- function () {
2376
- this.componentDestroyed$.next(true);
2377
- this.componentDestroyed$.complete();
2378
- };
2379
- /**
2380
- * @param {?} value
2381
- * @return {?}
2382
- */
2383
- TimepickerComponent.prototype.writeValue = /**
2384
- * @param {?} value
2385
- * @return {?}
2386
- */
2387
- function (value) {
2388
- this.timeControl.setValue(value, { emitEvent: false });
2389
- if (value) {
2390
- /** @type {?} */
2391
- var splitted = value.split(':');
2392
- this.fallbackForm.get('hours').setValue(splitted[0], { emitEvent: false });
2393
- this.fallbackForm.get('minutes').setValue(splitted[1], { emitEvent: false });
2394
- }
2395
- };
2396
- /**
2397
- * @param {?} onChange
2398
- * @return {?}
2399
- */
2400
- TimepickerComponent.prototype.registerOnChange = /**
2401
- * @param {?} onChange
2402
- * @return {?}
2403
- */
2404
- function (onChange) {
2405
- this.updateModel = onChange;
2406
- };
2407
- /**
2408
- * @return {?}
2409
- */
2410
- TimepickerComponent.prototype.registerOnTouched = /**
2411
- * @return {?}
2412
- */
2413
- function () {
2414
- };
2415
- /**
2416
- * @param {?} isDisabled
2417
- * @return {?}
2418
- */
2419
- TimepickerComponent.prototype.setDisabledState = /**
2420
- * @param {?} isDisabled
2421
- * @return {?}
2422
- */
2423
- function (isDisabled) {
2424
- if (isDisabled) {
2425
- this.timeControl.disable({ emitEvent: false });
2426
- this.fallbackForm.disable({ emitEvent: false });
2427
- }
2428
- else {
2429
- this.timeControl.enable({ emitEvent: false });
2430
- this.fallbackForm.enable({ emitEvent: false });
2431
- }
2432
- };
2433
- /**
2434
- * @private
2435
- * @return {?}
2436
- */
2437
- TimepickerComponent.prototype.supportsNativeTimepicker = /**
2438
- * @private
2439
- * @return {?}
2440
- */
2441
- function () {
2442
- /** @type {?} */
2443
- var element = this.renderer.createElement('input');
2444
- element.type = 'time';
2445
- return element.type === 'text';
2446
- };
2447
- /**
2448
- * @private
2449
- * @return {?}
2450
- */
2451
- TimepickerComponent.prototype.getMinutes = /**
2452
- * @private
2453
- * @return {?}
2454
- */
2455
- function () {
2456
- return Array(60).fill('').map((/**
2457
- * @param {?} value
2458
- * @param {?} index
2459
- * @return {?}
2460
- */
2461
- function (value, index) {
2462
- return jsDateUtils.DateHelper.addLeadingZero(index);
2463
- }));
2464
- };
2465
- /**
2466
- * @private
2467
- * @return {?}
2468
- */
2469
- TimepickerComponent.prototype.getHours = /**
2470
- * @private
2471
- * @return {?}
2472
- */
2473
- function () {
2474
- return Array(24).fill('').map((/**
2475
- * @param {?} value
2476
- * @param {?} index
2477
- * @return {?}
2478
- */
2479
- function (value, index) {
2480
- return jsDateUtils.DateHelper.addLeadingZero(index);
2481
- }));
2482
- };
2483
- TimepickerComponent.decorators = [
2484
- { type: core.Component, args: [{
2485
- selector: 'aui-timepicker',
2486
- template: "<div class=\"m-timepicker\">\n <div *ngIf=\"!shouldUseFallback\" [class]=\"'a-input--' + size\" [ngClass]=\"{ 'has-error': hasError }\" class=\"a-input\">\n <input [attr.aria-label]=\"ariaLabelHours + ':' + ariaLabelMinutes\" [formControl]=\"timeControl\" [id]=\"id\"\n type=\"time\">\n </div>\n\n <div *ngIf=\"shouldUseFallback\" [formGroup]=\"fallbackForm\">\n <div [class]=\"'a-input--' + size\" [ngClass]=\"{ 'has-error': hasError }\" class=\"a-input has-icon-right\">\n <div class=\"a-input__wrapper\">\n <select [attr.aria-label]=\"ariaLabelHours\" [id]=\"id\" formControlName=\"hours\">\n <option disabled value=\"null\">{{ hoursPlaceholder }}</option>\n <option *ngFor=\"let hour of hours\" [value]=\"hour\">{{ hour }}</option>\n </select>\n <aui-icon name=\"ai-arrow-down-1\"></aui-icon>\n </div>\n </div>\n\n <div [class]=\"'a-input--' + size\" [ngClass]=\"{ 'has-error': hasError }\" class=\"a-input has-icon-right\">\n <div class=\"a-input__wrapper\">\n <select [attr.aria-label]=\"ariaLabelMinutes\" formControlName=\"minutes\">\n <option disabled value=\"null\">{{ minutesPlaceholder }}</option>\n <option *ngFor=\"let minute of minutes\" [value]=\"minute\">{{ minute }}</option>\n </select>\n <aui-icon name=\"ai-arrow-down-1\"></aui-icon>\n </div>\n </div>\n </div>\n</div>\n",
2487
- changeDetection: core.ChangeDetectionStrategy.OnPush,
2488
- providers: [{
2489
- provide: forms.NG_VALUE_ACCESSOR,
2490
- useExisting: core.forwardRef((/**
2491
- * @return {?}
2492
- */
2493
- function () { return TimepickerComponent; })),
2494
- // tslint:disable-line:no-forward-ref
2495
- multi: true,
2496
- }],
2497
- styles: [":host{display:block}"]
2498
- }] }
2499
- ];
2500
- /** @nocollapse */
2501
- TimepickerComponent.ctorParameters = function () { return [
2502
- { type: forms.FormBuilder },
2503
- { type: core.Renderer2 }
2504
- ]; };
2505
- TimepickerComponent.propDecorators = {
2506
- id: [{ type: core.Input }],
2507
- hoursPlaceholder: [{ type: core.Input }],
2508
- minutesPlaceholder: [{ type: core.Input }],
2509
- hasError: [{ type: core.Input }],
2510
- size: [{ type: core.Input }],
2511
- ariaLabelHours: [{ type: core.Input }],
2512
- ariaLabelMinutes: [{ type: core.Input }]
2513
- };
2514
- return TimepickerComponent;
2515
- }());
2516
- if (false) {
2517
- /** @type {?} */
2518
- TimepickerComponent.prototype.id;
2519
- /** @type {?} */
2520
- TimepickerComponent.prototype.hoursPlaceholder;
2521
- /** @type {?} */
2522
- TimepickerComponent.prototype.minutesPlaceholder;
2523
- /** @type {?} */
2524
- TimepickerComponent.prototype.hasError;
2525
- /** @type {?} */
2526
- TimepickerComponent.prototype.size;
2527
- /** @type {?} */
2528
- TimepickerComponent.prototype.ariaLabelHours;
2529
- /** @type {?} */
2530
- TimepickerComponent.prototype.ariaLabelMinutes;
2531
- /** @type {?} */
2532
- TimepickerComponent.prototype.shouldUseFallback;
2533
- /** @type {?} */
2534
- TimepickerComponent.prototype.minutes;
2535
- /** @type {?} */
2536
- TimepickerComponent.prototype.hours;
2537
- /** @type {?} */
2538
- TimepickerComponent.prototype.updateModel;
2539
- /** @type {?} */
2540
- TimepickerComponent.prototype.timeControl;
2541
- /** @type {?} */
2542
- TimepickerComponent.prototype.fallbackForm;
2543
- /**
2544
- * @type {?}
2545
- * @private
2546
- */
2547
- TimepickerComponent.prototype.componentDestroyed$;
2548
- /**
2549
- * @type {?}
2550
- * @private
2551
- */
2552
- TimepickerComponent.prototype.formBuilder;
2553
- /**
2554
- * @type {?}
2555
- * @private
2556
- */
2557
- TimepickerComponent.prototype.renderer;
2558
- }
2559
-
2560
- /**
2561
- * @fileoverview added by tsickle
2562
- * Generated from: lib/timepicker/timepicker.module.ts
2563
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2564
- */
2565
- var TimepickerModule = /** @class */ (function () {
2566
- function TimepickerModule() {
2567
- }
2568
- TimepickerModule.decorators = [
2569
- { type: core.NgModule, args: [{
2570
- imports: [
2571
- forms.ReactiveFormsModule,
2572
- common.CommonModule,
2573
- ngxIcon.IconModule,
2574
- ],
2575
- declarations: [
2576
- TimepickerComponent,
2577
- ],
2578
- exports: [
2579
- TimepickerComponent,
2580
- ],
2581
- providers: [],
2582
- },] }
2583
- ];
2584
- return TimepickerModule;
2585
- }());
2586
-
2587
- /**
2588
- * @fileoverview added by tsickle
2589
- * Generated from: lib/timepicker/public-api.ts
2590
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2591
- */
2592
-
2593
- /**
2594
- * @fileoverview added by tsickle
2595
- * Generated from: lib/upload/upload.conf.ts
2596
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2597
- */
2598
- /** @type {?} */
2599
- var UPLOAD_OPTIONS_DEFAULT = {
2600
- allowedMimeTypes: [],
2601
- allowedFileTypes: [],
2602
- autoUpload: false,
2603
- maxFileSize: 0,
2604
- // 0 is infinite
2605
- queueLimit: 0,
2606
- // 0 is infinite
2607
- type: 'drop',
2608
- url: '',
2609
- };
2610
- /** @type {?} */
2611
- var UPLOAD_VALIDATION_MESSAGES = new core.InjectionToken('uploadValidationMessages');
2612
-
2613
- /**
2614
- * @fileoverview added by tsickle
2615
- * Generated from: lib/upload/classes/uploader.class.ts
2616
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2617
- */
2618
- var Uploader = /** @class */ (function () {
2619
- function Uploader(options) {
2620
- this.options = UPLOAD_OPTIONS_DEFAULT;
2621
- this.setOptions(options);
2622
- }
2623
- /**
2624
- * @param {?} options
2625
- * @return {?}
2626
- */
2627
- Uploader.prototype.setOptions = /**
2628
- * @param {?} options
2629
- * @return {?}
2630
- */
2631
- function (options) {
2632
- this.options = Object.assign({}, this.options, options);
2633
- };
2634
- /**
2635
- * @param {?} files
2636
- * @return {?}
2637
- */
2638
- Uploader.prototype.uploadFiles = /**
2639
- * @param {?} files
2640
- * @return {?}
2641
- */
2642
- function (files) {
2643
- var _this = this;
2644
- /** @type {?} */
2645
- var formData = this.filesToFormData(files);
2646
- return new rxjs.Observable((/**
2647
- * @param {?} observer
2648
- * @return {?}
2649
- */
2650
- function (observer) {
2651
- /** @type {?} */
2652
- var xhr = new XMLHttpRequest();
2653
- // Progress callback
2654
- xhr.upload.addEventListener('progress', (/**
2655
- * @param {?} e
2656
- * @return {?}
2657
- */
2658
- function (e) {
2659
- if (e.lengthComputable) {
2660
- /** @type {?} */
2661
- var percentComplete = e.loaded / e.total;
2662
- observer.next({
2663
- progress: percentComplete,
2664
- data: null,
2665
- });
2666
- }
2667
- }));
2668
- // Complete callback
2669
- xhr.onload = (/**
2670
- * @return {?}
2671
- */
2672
- function () {
2673
- observer.next({
2674
- progress: 1,
2675
- data: xhr.response,
2676
- });
2677
- // observer.complete();
2678
- });
2679
- // Do request
2680
- xhr.responseType = 'json';
2681
- xhr.open('post', _this.options.url);
2682
- xhr.send(formData);
2683
- }));
2684
- };
2685
- /**
2686
- * @param {?} files
2687
- * @return {?}
2688
- */
2689
- Uploader.prototype.validateFiles = /**
2690
- * @param {?} files
2691
- * @return {?}
2692
- */
2693
- function (files) {
2694
- var e_1, _a;
2695
- /** @type {?} */
2696
- var validFiles = [];
2697
- /** @type {?} */
2698
- var invalidFiles = [];
2699
- if (files.length > 0) {
2700
- try {
2701
- for (var files_1 = __values(files), files_1_1 = files_1.next(); !files_1_1.done; files_1_1 = files_1.next()) {
2702
- var file = files_1_1.value;
2703
- /** @type {?} */
2704
- var errors = [];
2705
- if (!this.validateFileType(file)) {
2706
- errors.push('INVALID_FILE_TYPE');
2707
- }
2708
- if (!this.validateFileSize(file)) {
2709
- errors.push('INVALID_FILE_SIZE');
2710
- }
2711
- if (!this.validateMimeType(file)) {
2712
- errors.push('INVALID_MIME_TYPE');
2713
- }
2714
- if (errors.length === 0) {
2715
- validFiles.push(file);
2716
- }
2717
- else {
2718
- invalidFiles.push({
2719
- reasons: errors,
2720
- file: file,
2721
- });
2722
- }
2723
- }
2724
- }
2725
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2726
- finally {
2727
- try {
2728
- if (files_1_1 && !files_1_1.done && (_a = files_1.return)) _a.call(files_1);
2729
- }
2730
- finally { if (e_1) throw e_1.error; }
2731
- }
2732
- }
2733
- return {
2734
- validFiles: validFiles,
2735
- invalidFiles: invalidFiles,
2736
- };
2737
- };
2738
- /**
2739
- * @protected
2740
- * @param {?} files
2741
- * @return {?}
2742
- */
2743
- Uploader.prototype.filesToFormData = /**
2744
- * @protected
2745
- * @param {?} files
2746
- * @return {?}
2747
- */
2748
- function (files) {
2749
- var e_2, _a;
2750
- /** @type {?} */
2751
- var formData = new FormData();
2752
- if (!this.options.url || this.options.url === '') {
2753
- throw new Error('Define the upload url.');
2754
- }
2755
- try {
2756
- for (var files_2 = __values(files), files_2_1 = files_2.next(); !files_2_1.done; files_2_1 = files_2.next()) {
2757
- var file = files_2_1.value;
2758
- formData.append('file', file);
2759
- }
2760
- }
2761
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
2762
- finally {
2763
- try {
2764
- if (files_2_1 && !files_2_1.done && (_a = files_2.return)) _a.call(files_2);
2765
- }
2766
- finally { if (e_2) throw e_2.error; }
2767
- }
2768
- return formData;
2769
- };
2770
- /**
2771
- * @protected
2772
- * @param {?} file
2773
- * @return {?}
2774
- */
2775
- Uploader.prototype.getFileExtension = /**
2776
- * @protected
2777
- * @param {?} file
2778
- * @return {?}
2779
- */
2780
- function (file) {
2781
- return file.name.split('.')[file.name.split('.').length - 1];
2782
- };
2783
- /**
2784
- * @protected
2785
- * @param {?} file
2786
- * @return {?}
2787
- */
2788
- Uploader.prototype.validateFileType = /**
2789
- * @protected
2790
- * @param {?} file
2791
- * @return {?}
2792
- */
2793
- function (file) {
2794
- /** @type {?} */
2795
- var allowedFileTypes = this.options.allowedFileTypes;
2796
- /** @type {?} */
2797
- var ext = this.getFileExtension(file);
2798
- // Filter defined?
2799
- if (!Array.isArray(allowedFileTypes) || allowedFileTypes.length === 0) {
2800
- return true;
2801
- }
2802
- // Make allowedFileTypes case insensitive
2803
- /** @type {?} */
2804
- var toUpper = (/**
2805
- * @param {?} x
2806
- * @return {?}
2807
- */
2808
- function (x) { return x.toUpperCase(); });
2809
- /** @type {?} */
2810
- var allowedFileTypesToUpper = allowedFileTypes.map(toUpper);
2811
- return allowedFileTypesToUpper.lastIndexOf(ext.toUpperCase()) !== -1;
2812
- };
2813
- /**
2814
- * @protected
2815
- * @param {?} file
2816
- * @return {?}
2817
- */
2818
- Uploader.prototype.validateFileSize = /**
2819
- * @protected
2820
- * @param {?} file
2821
- * @return {?}
2822
- */
2823
- function (file) {
2824
- /** @type {?} */
2825
- var maxFileSize = this.options.maxFileSize;
2826
- // Filter defined?
2827
- if (!maxFileSize || maxFileSize === 0) {
2828
- return true;
2829
- }
2830
- return maxFileSize > file.size;
2831
- };
2832
- /**
2833
- * @protected
2834
- * @param {?} file
2835
- * @return {?}
2836
- */
2837
- Uploader.prototype.validateMimeType = /**
2838
- * @protected
2839
- * @param {?} file
2840
- * @return {?}
2841
- */
2842
- function (file) {
2843
- /** @type {?} */
2844
- var allowedMimeTypes = this.options.allowedMimeTypes;
2845
- // Filter defined?
2846
- if (!Array.isArray(allowedMimeTypes) || allowedMimeTypes.length === 0) {
2847
- return true;
2848
- }
2849
- return allowedMimeTypes.lastIndexOf(file.type) !== -1;
2850
- };
2851
- return Uploader;
2852
- }());
2853
- if (false) {
2854
- /** @type {?} */
2855
- Uploader.prototype.options;
2856
- }
2857
-
2858
- /**
2859
- * @fileoverview added by tsickle
2860
- * Generated from: lib/upload/components/upload/upload.component.ts
2861
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2862
- */
2863
- var UploadComponent = /** @class */ (function () {
2864
- function UploadComponent() {
2865
- this.id = '';
2866
- this.accept = [];
2867
- this.capture = '';
2868
- this.ariaLabelRemove = 'Verwijder';
2869
- this.disabled = false;
2870
- this.multiple = true;
2871
- this.options = UPLOAD_OPTIONS_DEFAULT;
2872
- this.selectUploadedFiles = new core.EventEmitter();
2873
- this.uploadedFiles = [];
2874
- this.invalidFiles = [];
2875
- this.queuedFiles = [];
2876
- }
2877
- /**
2878
- * @return {?}
2879
- */
2880
- UploadComponent.prototype.ngOnInit = /**
2881
- * @return {?}
2882
- */
2883
- function () {
2884
- if (!this.id) {
2885
- this.ariaId = 'aui-upload-' + Math.random().toString(36).substring(2);
2886
- }
2887
- this.uploader = new Uploader(this.options);
2888
- };
2889
- /**
2890
- * @param {?} files
2891
- * @return {?}
2892
- */
2893
- UploadComponent.prototype.onUploadedFiles = /**
2894
- * @param {?} files
2895
- * @return {?}
2896
- */
2897
- function (files) {
2898
- this.uploadedFiles = this.uploadedFiles.concat(files);
2899
- this.selectUploadedFiles.emit(this.uploadedFiles);
2900
- };
2901
- /**
2902
- * @param {?} files
2903
- * @return {?}
2904
- */
2905
- UploadComponent.prototype.onInvalidFiles = /**
2906
- * @param {?} files
2907
- * @return {?}
2908
- */
2909
- function (files) {
2910
- this.invalidFiles = files;
2911
- };
2912
- /**
2913
- * @param {?} files
2914
- * @return {?}
2915
- */
2916
- UploadComponent.prototype.onQueuedFiles = /**
2917
- * @param {?} files
2918
- * @return {?}
2919
- */
2920
- function (files) {
2921
- this.queuedFiles = this.queuedFiles.concat(files);
2922
- };
2923
- UploadComponent.decorators = [
2924
- { type: core.Component, args: [{
2925
- selector: 'aui-upload',
2926
- template: "<div class=\"m-upload aui-upload\">\n <aui-upload-zone\n [id]=\"id\"\n [accept]=\"accept\"\n [capture]=\"capture\"\n [ariaId]=\"ariaId\"\n [disabled]=\"disabled\"\n [multiple]=\"multiple\"\n [uploader]=\"uploader\"\n (invalidFiles)=\"onInvalidFiles($event)\"\n (queuedFiles)=\"onQueuedFiles($event)\"\n (uploadedFiles)=\"onUploadedFiles($event)\">\n <div class=\"m-upload__message\">\n <ng-content select=\".m-upload__message\"></ng-content>\n </div>\n <div class=\"m-upload__description\">\n <ng-content select=\".m-upload__description\"></ng-content>\n </div>\n <div class=\"m-upload__button\">\n <ng-content select=\".m-upload__button\"></ng-content>\n </div>\n </aui-upload-zone>\n <aui-validation-list [ariaLabelRemove]=\"ariaLabelRemove\" [invalidFiles]=\"invalidFiles\"></aui-validation-list>\n <aui-upload-queue (uploadedFiles)=\"onUploadedFiles($event)\" *ngIf=\"!options?.autoUpload\" [ariaLabelRemove]=\"ariaLabelRemove\"\n [files]=\"queuedFiles\" [uploader]=\"uploader\"></aui-upload-queue>\n</div>\n",
2927
- styles: [".m-upload__button>.m-upload__input{display:none}"]
2928
- }] }
2929
- ];
2930
- UploadComponent.propDecorators = {
2931
- id: [{ type: core.Input }],
2932
- accept: [{ type: core.Input }],
2933
- capture: [{ type: core.Input }],
2934
- ariaLabelRemove: [{ type: core.Input }],
2935
- disabled: [{ type: core.Input }],
2936
- multiple: [{ type: core.Input }],
2937
- options: [{ type: core.Input }],
2938
- selectUploadedFiles: [{ type: core.Output }]
2939
- };
2940
- return UploadComponent;
2941
- }());
2942
- if (false) {
2943
- /** @type {?} */
2944
- UploadComponent.prototype.id;
2945
- /** @type {?} */
2946
- UploadComponent.prototype.accept;
2947
- /** @type {?} */
2948
- UploadComponent.prototype.capture;
2949
- /** @type {?} */
2950
- UploadComponent.prototype.ariaLabelRemove;
2951
- /** @type {?} */
2952
- UploadComponent.prototype.disabled;
2953
- /** @type {?} */
2954
- UploadComponent.prototype.multiple;
2955
- /** @type {?} */
2956
- UploadComponent.prototype.options;
2957
- /** @type {?} */
2958
- UploadComponent.prototype.selectUploadedFiles;
2959
- /** @type {?} */
2960
- UploadComponent.prototype.uploader;
2961
- /** @type {?} */
2962
- UploadComponent.prototype.ariaId;
2963
- /** @type {?} */
2964
- UploadComponent.prototype.uploadedFiles;
2965
- /** @type {?} */
2966
- UploadComponent.prototype.invalidFiles;
2967
- /** @type {?} */
2968
- UploadComponent.prototype.queuedFiles;
2969
- }
2970
-
2971
- /**
2972
- * @fileoverview added by tsickle
2973
- * Generated from: lib/upload/components/upload-input/upload-input.component.ts
2974
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2975
- */
2976
- var UploadInputComponent = /** @class */ (function () {
2977
- function UploadInputComponent() {
2978
- this.propagateChange = (/**
2979
- * @param {?} _
2980
- * @return {?}
2981
- */
2982
- function (_) { return undefined; });
2983
- }
2984
- /**
2985
- * @param {?} value
2986
- * @return {?}
2987
- */
2988
- UploadInputComponent.prototype.writeValue = /**
2989
- * @param {?} value
2990
- * @return {?}
2991
- */
2992
- function (value) {
2993
- };
2994
- /**
2995
- * @param {?} fn
2996
- * @return {?}
2997
- */
2998
- UploadInputComponent.prototype.registerOnChange = /**
2999
- * @param {?} fn
3000
- * @return {?}
3001
- */
3002
- function (fn) {
3003
- this.propagateChange = fn;
3004
- };
3005
- /**
3006
- * @return {?}
3007
- */
3008
- UploadInputComponent.prototype.registerOnTouched = /**
3009
- * @return {?}
3010
- */
3011
- function () {
3012
- };
3013
- /**
3014
- * @param {?} files
3015
- * @return {?}
3016
- */
3017
- UploadInputComponent.prototype.onUpload = /**
3018
- * @param {?} files
3019
- * @return {?}
3020
- */
3021
- function (files) {
3022
- /** @type {?} */
3023
- var data = (this.format ? this.format(files) : files);
3024
- this.propagateChange(data);
3025
- };
3026
- UploadInputComponent.decorators = [
3027
- { type: core.Component, args: [{
3028
- selector: 'aui-upload-input',
3029
- template: "<aui-upload (selectUploadedFiles)=\"onUpload($event)\" [options]=\"options\">\n <div class=\"m-upload__message\">\n <ng-content select=\".m-upload__message\"></ng-content>\n </div>\n <div class=\"m-upload__description\">\n <ng-content select=\".m-upload__description\"></ng-content>\n </div>\n <div class=\"m-upload__button\">\n <ng-content select=\".m-upload__button\"></ng-content>\n </div>\n</aui-upload>\n",
3030
- providers: [{
3031
- provide: forms.NG_VALUE_ACCESSOR,
3032
- useExisting: UploadInputComponent,
3033
- multi: true,
3034
- }]
3035
- }] }
3036
- ];
3037
- UploadInputComponent.propDecorators = {
3038
- options: [{ type: core.Input }],
3039
- format: [{ type: core.Input }]
3040
- };
3041
- return UploadInputComponent;
3042
- }());
3043
- if (false) {
3044
- /** @type {?} */
3045
- UploadInputComponent.prototype.options;
3046
- /** @type {?} */
3047
- UploadInputComponent.prototype.format;
3048
- /** @type {?} */
3049
- UploadInputComponent.prototype.propagateChange;
3050
- }
3051
-
3052
- /**
3053
- * @fileoverview added by tsickle
3054
- * Generated from: lib/upload/components/upload-queue/upload-queue.component.ts
3055
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3056
- */
3057
- var UploadQueueComponent = /** @class */ (function () {
3058
- function UploadQueueComponent() {
3059
- this.ariaLabelRemove = 'Verwijder';
3060
- this.uploadedFiles = new core.EventEmitter();
3061
- this.uploadProgress = 0;
3062
- }
3063
- /**
3064
- * @param {?} index
3065
- * @return {?}
3066
- */
3067
- UploadQueueComponent.prototype.remove = /**
3068
- * @param {?} index
3069
- * @return {?}
3070
- */
3071
- function (index) {
3072
- this.files.splice(index, 1);
3073
- };
3074
- /**
3075
- * @return {?}
3076
- */
3077
- UploadQueueComponent.prototype.uploadFiles = /**
3078
- * @return {?}
3079
- */
3080
- function () {
3081
- var _this = this;
3082
- /** @type {?} */
3083
- var progress = undefined;
3084
- /** @type {?} */
3085
- var data = undefined;
3086
- this.uploader.uploadFiles(this.files).subscribe((/**
3087
- * @param {?} response
3088
- * @return {?}
3089
- */
3090
- function (response) {
3091
- if (response.progress) {
3092
- _this.uploadProgress = Math.floor(response.progress * 100);
3093
- }
3094
- if (response.data) {
3095
- _this.uploadedFiles.emit(response.data);
3096
- _this.files = [];
3097
- }
3098
- }));
3099
- };
3100
- UploadQueueComponent.decorators = [
3101
- { type: core.Component, args: [{
3102
- selector: 'aui-upload-queue',
3103
- template: "<ul class=\"m-upload__files u-margin-bottom-xs\">\n <li *ngFor=\"let file of files; let i = index\">\n <aui-icon name=\"ai-common-file-empty\"></aui-icon>\n <span class=\"m-upload__filename\">{{ file.name }}</span>\n\n <button (click)=\"remove(i)\" class=\"m-upload__delete a-button-transparent a-button--default a-button--small has-icon\" type=\"button\">\n <aui-icon name=\"ai-close\" [ariaLabel]=\"ariaLabelRemove\"></aui-icon>\n </button>\n </li>\n</ul>\n\n<button (click)=\"uploadFiles()\" *ngIf=\"files.length > 0\" class=\"a-button\" type=\"button\">Upload</button>\n"
3104
- }] }
3105
- ];
3106
- UploadQueueComponent.propDecorators = {
3107
- files: [{ type: core.Input }],
3108
- uploader: [{ type: core.Input }],
3109
- ariaLabelRemove: [{ type: core.Input }],
3110
- uploadedFiles: [{ type: core.Output }]
3111
- };
3112
- return UploadQueueComponent;
3113
- }());
3114
- if (false) {
3115
- /** @type {?} */
3116
- UploadQueueComponent.prototype.files;
3117
- /** @type {?} */
3118
- UploadQueueComponent.prototype.uploader;
3119
- /** @type {?} */
3120
- UploadQueueComponent.prototype.ariaLabelRemove;
3121
- /** @type {?} */
3122
- UploadQueueComponent.prototype.uploadedFiles;
3123
- /** @type {?} */
3124
- UploadQueueComponent.prototype.uploadProgress;
3125
- }
3126
-
3127
- /**
3128
- * @fileoverview added by tsickle
3129
- * Generated from: lib/upload/components/upload-zone/upload-zone.component.ts
3130
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3131
- */
3132
- var UploadZoneComponent = /** @class */ (function () {
3133
- function UploadZoneComponent(renderer) {
3134
- this.renderer = renderer;
3135
- this.id = '';
3136
- this.accept = [];
3137
- this.capture = '';
3138
- this.ariaId = '';
3139
- this.disabled = false;
3140
- this.multiple = true;
3141
- this.uploadedFiles = new core.EventEmitter();
3142
- this.queuedFiles = new core.EventEmitter();
3143
- this.invalidFiles = new core.EventEmitter();
3144
- this.hasDragOver = false;
3145
- this.uploadProgress = 0;
3146
- }
3147
- /**
3148
- * @param {?} event
3149
- * @return {?}
3150
- */
3151
- UploadZoneComponent.prototype.onDragOver = /**
3152
- * @param {?} event
3153
- * @return {?}
3154
- */
3155
- function (event) {
3156
- this.preventAndStop(event);
3157
- this.hasDragOver = true;
3158
- };
3159
- /**
3160
- * @param {?} event
3161
- * @return {?}
3162
- */
3163
- UploadZoneComponent.prototype.onDragLeave = /**
3164
- * @param {?} event
3165
- * @return {?}
3166
- */
3167
- function (event) {
3168
- this.preventAndStop(event);
3169
- this.hasDragOver = false;
3170
- };
3171
- /**
3172
- * @param {?} event
3173
- * @return {?}
3174
- */
3175
- UploadZoneComponent.prototype.onDrop = /**
3176
- * @param {?} event
3177
- * @return {?}
3178
- */
3179
- function (event) {
3180
- this.preventAndStop(event);
3181
- this.hasDragOver = false;
3182
- /** @type {?} */
3183
- var files = this.fileListToArray(event.dataTransfer.files);
3184
- this.handleFiles(files);
3185
- };
3186
- /**
3187
- * @return {?}
3188
- */
3189
- UploadZoneComponent.prototype.triggerFile = /**
3190
- * @return {?}
3191
- */
3192
- function () {
3193
- this.fileInput.nativeElement.click();
3194
- };
3195
- /**
3196
- * @return {?}
3197
- */
3198
- UploadZoneComponent.prototype.updateFiles = /**
3199
- * @return {?}
3200
- */
3201
- function () {
3202
- /** @type {?} */
3203
- var files = this.fileListToArray(this.fileInput.nativeElement.files);
3204
- this.handleFiles(files);
3205
- };
3206
- /**
3207
- * @param {?} event
3208
- * @return {?}
3209
- */
3210
- UploadZoneComponent.prototype.onFileClick = /**
3211
- * @param {?} event
3212
- * @return {?}
3213
- */
3214
- function (event) {
3215
- // When removing a file make sure you can add it again later
3216
- // See: https://stackoverflow.com/questions/59870335/ng2-file-upload-not-allowing-me-to-add-same-doc-after-ive-removed-it-from-que
3217
- event.target.value = '';
3218
- };
3219
- /**
3220
- * @return {?}
3221
- */
3222
- UploadZoneComponent.prototype.ngAfterViewInit = /**
3223
- * @return {?}
3224
- */
3225
- function () {
3226
- if (this.multiple !== false) {
3227
- this.renderer.setProperty(this.fileInput.nativeElement, 'multiple', 'multiple');
3228
- }
3229
- if (!!this.accept.length) {
3230
- this.renderer.setProperty(this.fileInput.nativeElement, 'accept', this.accept.join());
3231
- }
3232
- if (this.disabled) {
3233
- this.renderer.setProperty(this.fileInput.nativeElement, 'disabled', 'disabled');
3234
- }
3235
- if (this.capture !== '') {
3236
- this.renderer.setAttribute(this.fileInput.nativeElement, 'capture', this.capture);
3237
- }
3238
- };
3239
- /**
3240
- * @protected
3241
- * @param {?} files
3242
- * @return {?}
3243
- */
3244
- UploadZoneComponent.prototype.handleFiles = /**
3245
- * @protected
3246
- * @param {?} files
3247
- * @return {?}
3248
- */
3249
- function (files) {
3250
- /** @type {?} */
3251
- var response = this.uploader.validateFiles(files);
3252
- this.invalidFiles.emit(response.invalidFiles);
3253
- if (this.uploader.options.autoUpload && response.validFiles.length > 0) {
3254
- this.uploadFiles(response.validFiles);
3255
- }
3256
- else {
3257
- this.queuedFiles.emit(response.validFiles);
3258
- }
3259
- };
3260
- /**
3261
- * @protected
3262
- * @param {?} files
3263
- * @return {?}
3264
- */
3265
- UploadZoneComponent.prototype.uploadFiles = /**
3266
- * @protected
3267
- * @param {?} files
3268
- * @return {?}
3269
- */
3270
- function (files) {
3271
- var _this = this;
3272
- // Reset progress
3273
- this.uploadProgress = 0;
3274
- this.uploadingFiles = files;
3275
- // upload
3276
- this.uploader.uploadFiles(files).subscribe((/**
3277
- * @param {?} response
3278
- * @return {?}
3279
- */
3280
- function (response) {
3281
- if (response.progress) {
3282
- _this.uploadProgress = Math.floor(response.progress * 100);
3283
- }
3284
- if (response.data) {
3285
- _this.uploadedFiles.emit(response.data);
3286
- }
3287
- }), (/**
3288
- * @param {?} err
3289
- * @return {?}
3290
- */
3291
- function (err) {
3292
- console.log(err);
3293
- }));
3294
- };
3295
- /**
3296
- * @protected
3297
- * @param {?} list
3298
- * @return {?}
3299
- */
3300
- UploadZoneComponent.prototype.fileListToArray = /**
3301
- * @protected
3302
- * @param {?} list
3303
- * @return {?}
3304
- */
3305
- function (list) {
3306
- return Array.from(list);
3307
- };
3308
- /**
3309
- * @protected
3310
- * @param {?} event
3311
- * @return {?}
3312
- */
3313
- UploadZoneComponent.prototype.preventAndStop = /**
3314
- * @protected
3315
- * @param {?} event
3316
- * @return {?}
3317
- */
3318
- function (event) {
3319
- event.preventDefault();
3320
- event.stopPropagation();
3321
- };
3322
- UploadZoneComponent.decorators = [
3323
- { type: core.Component, args: [{
3324
- selector: 'aui-upload-zone',
3325
- template: "<div *ngIf=\"uploader.options.type === 'drop'\" [class.is-disabled]=\"disabled\" class=\"m-upload\">\n <div class=\"m-upload__inner\">\n <div class=\"m-upload__dropzone\">\n <input\n #fileInput\n type=\"file\"\n class=\"m-upload__input\"\n [id]=\"id\"\n [attr.aria-labelledby]=\"ariaId\"\n (click)=\"onFileClick($event)\"\n (change)=\"updateFiles()\">\n\n <div *ngIf=\"!uploadProgress || uploadProgress === 0\" class=\"m-upload__content\">\n <p [id]=\"ariaId\" class=\"m-upload__message\">\n <ng-content select=\".m-upload__message\"></ng-content>\n </p>\n </div>\n\n <ng-container *ngIf=\"uploadProgress > 0\">\n <p class=\"m-upload__uploads u-text-bold u-margin-bottom-xs\">\n <ng-container *ngFor=\"let file of uploadingFiles; let last = last\">\n {{ file.name }}\n <ng-container *ngIf=\"!last\">,</ng-container>\n </ng-container>\n </p>\n <aui-progress-bar [value]=\"uploadProgress\" max=\"100\"></aui-progress-bar>\n </ng-container>\n </div>\n </div>\n\n <small class=\"m-upload__description\">\n <ng-content select=\".m-upload__description\"></ng-content>\n </small>\n</div>\n\n<button (click)=\"triggerFile()\" *ngIf=\"uploader.options.type === 'button'\" [disabled]=\"disabled\" class=\"a-button m-upload__button\"\n type=\"button\">\n <span [id]=\"ariaId\"><ng-content select=\".m-upload__button\"></ng-content></span>\n <input\n #fileInput\n type=\"file\"\n class=\"m-upload__input\"\n [id]=\"id\"\n [attr.aria-labelledby]=\"ariaId\"\n (click)=\"onFileClick($event)\"\n (change)=\"updateFiles()\">\n</button>\n"
3326
- }] }
3327
- ];
3328
- /** @nocollapse */
3329
- UploadZoneComponent.ctorParameters = function () { return [
3330
- { type: core.Renderer2 }
3331
- ]; };
3332
- UploadZoneComponent.propDecorators = {
3333
- fileInput: [{ type: core.ViewChild, args: ['fileInput', { static: false },] }],
3334
- uploader: [{ type: core.Input }],
3335
- id: [{ type: core.Input }],
3336
- accept: [{ type: core.Input }],
3337
- capture: [{ type: core.Input }],
3338
- ariaId: [{ type: core.Input }],
3339
- disabled: [{ type: core.Input }],
3340
- multiple: [{ type: core.Input }],
3341
- uploadedFiles: [{ type: core.Output }],
3342
- queuedFiles: [{ type: core.Output }],
3343
- invalidFiles: [{ type: core.Output }],
3344
- onDragOver: [{ type: core.HostListener, args: ['dragover', ['$event'],] }],
3345
- onDragLeave: [{ type: core.HostListener, args: ['dragleave', ['$event'],] }],
3346
- onDrop: [{ type: core.HostListener, args: ['drop', ['$event'],] }]
3347
- };
3348
- return UploadZoneComponent;
3349
- }());
3350
- if (false) {
3351
- /** @type {?} */
3352
- UploadZoneComponent.prototype.fileInput;
3353
- /** @type {?} */
3354
- UploadZoneComponent.prototype.uploader;
3355
- /** @type {?} */
3356
- UploadZoneComponent.prototype.id;
3357
- /** @type {?} */
3358
- UploadZoneComponent.prototype.accept;
3359
- /** @type {?} */
3360
- UploadZoneComponent.prototype.capture;
3361
- /** @type {?} */
3362
- UploadZoneComponent.prototype.ariaId;
3363
- /** @type {?} */
3364
- UploadZoneComponent.prototype.disabled;
3365
- /** @type {?} */
3366
- UploadZoneComponent.prototype.multiple;
3367
- /** @type {?} */
3368
- UploadZoneComponent.prototype.uploadedFiles;
3369
- /** @type {?} */
3370
- UploadZoneComponent.prototype.queuedFiles;
3371
- /** @type {?} */
3372
- UploadZoneComponent.prototype.invalidFiles;
3373
- /** @type {?} */
3374
- UploadZoneComponent.prototype.hasDragOver;
3375
- /** @type {?} */
3376
- UploadZoneComponent.prototype.classNames;
3377
- /** @type {?} */
3378
- UploadZoneComponent.prototype.uploadProgress;
3379
- /** @type {?} */
3380
- UploadZoneComponent.prototype.uploadingFiles;
3381
- /**
3382
- * @type {?}
3383
- * @private
3384
- */
3385
- UploadZoneComponent.prototype.renderer;
3386
- }
3387
-
3388
- /**
3389
- * @fileoverview added by tsickle
3390
- * Generated from: lib/upload/services/validation-messages.service.ts
3391
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3392
- */
3393
- var ValidationMessagesService = /** @class */ (function () {
3394
- function ValidationMessagesService(initValues) {
3395
- this.initValues = initValues;
3396
- this.INVALID_FILE_TYPE = 'INVALID_FILE_TYPE';
3397
- this.INVALID_FILE_SIZE = 'INVALID_FILE_SIZE';
3398
- this.INVALID_MIME_TYPE = 'INVALID_MIME_TYPE';
3399
- if (initValues.INVALID_FILE_TYPE) {
3400
- this.INVALID_FILE_TYPE = initValues.INVALID_FILE_TYPE;
3401
- }
3402
- if (initValues.INVALID_FILE_SIZE) {
3403
- this.INVALID_FILE_SIZE = initValues.INVALID_FILE_SIZE;
3404
- }
3405
- if (initValues.INVALID_MIME_TYPE) {
3406
- this.INVALID_MIME_TYPE = initValues.INVALID_MIME_TYPE;
3407
- }
3408
- }
3409
- ValidationMessagesService.decorators = [
3410
- { type: core.Injectable }
3411
- ];
3412
- /** @nocollapse */
3413
- ValidationMessagesService.ctorParameters = function () { return [
3414
- { type: undefined, decorators: [{ type: core.Inject, args: [UPLOAD_VALIDATION_MESSAGES,] }] }
3415
- ]; };
3416
- return ValidationMessagesService;
3417
- }());
3418
- if (false) {
3419
- /** @type {?} */
3420
- ValidationMessagesService.prototype.INVALID_FILE_TYPE;
3421
- /** @type {?} */
3422
- ValidationMessagesService.prototype.INVALID_FILE_SIZE;
3423
- /** @type {?} */
3424
- ValidationMessagesService.prototype.INVALID_MIME_TYPE;
3425
- /**
3426
- * @type {?}
3427
- * @private
3428
- */
3429
- ValidationMessagesService.prototype.initValues;
3430
- }
3431
-
3432
- /**
3433
- * @fileoverview added by tsickle
3434
- * Generated from: lib/upload/components/validation-list/validation-list.component.ts
3435
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3436
- */
3437
- var ValidationListComponent = /** @class */ (function () {
3438
- function ValidationListComponent(messagesService) {
3439
- this.messagesService = messagesService;
3440
- this.invalidFiles = [];
3441
- this.ariaLabelRemove = 'Verwijder';
3442
- }
3443
- /**
3444
- * @param {?} index
3445
- * @return {?}
3446
- */
3447
- ValidationListComponent.prototype.remove = /**
3448
- * @param {?} index
3449
- * @return {?}
3450
- */
3451
- function (index) {
3452
- this.invalidFiles.splice(index, 1);
3453
- };
3454
- /**
3455
- * @param {?} reasons
3456
- * @return {?}
3457
- */
3458
- ValidationListComponent.prototype.formatReasons = /**
3459
- * @param {?} reasons
3460
- * @return {?}
3461
- */
3462
- function (reasons) {
3463
- var e_1, _a;
3464
- /** @type {?} */
3465
- var result = [];
3466
- try {
3467
- for (var reasons_1 = __values(reasons), reasons_1_1 = reasons_1.next(); !reasons_1_1.done; reasons_1_1 = reasons_1.next()) {
3468
- var reason = reasons_1_1.value;
3469
- result.push(this.messagesService[reason]);
3470
- }
3471
- }
3472
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
3473
- finally {
3474
- try {
3475
- if (reasons_1_1 && !reasons_1_1.done && (_a = reasons_1.return)) _a.call(reasons_1);
3476
- }
3477
- finally { if (e_1) throw e_1.error; }
3478
- }
3479
- return result.join(', ');
3480
- };
3481
- ValidationListComponent.decorators = [
3482
- { type: core.Component, args: [{
3483
- selector: 'aui-validation-list',
3484
- template: "<ul class=\"m-upload__files\">\n <li *ngFor=\"let invalidFile of invalidFiles; let i = index\" class=\"is-error\">\n <aui-icon name=\"ai-alert-triangle\"></aui-icon>\n <span class=\"m-upload__filename\">{{ invalidFile.file.name }}</span>\n <span class=\"m-upload__error\">{{ formatReasons(invalidFile.reasons) }}</span>\n\n <button (click)=\"remove(i)\" class=\"m-upload__delete a-button-transparent a-button--danger a-button--small has-icon\"\n type=\"button\">\n <aui-icon name=\"ai-close\" [ariaLabel]=\"ariaLabelRemove\"></aui-icon>\n </button>\n </li>\n</ul>\n"
3485
- }] }
3486
- ];
3487
- /** @nocollapse */
3488
- ValidationListComponent.ctorParameters = function () { return [
3489
- { type: ValidationMessagesService }
3490
- ]; };
3491
- ValidationListComponent.propDecorators = {
3492
- invalidFiles: [{ type: core.Input }],
3493
- ariaLabelRemove: [{ type: core.Input }]
3494
- };
3495
- return ValidationListComponent;
3496
- }());
3497
- if (false) {
3498
- /** @type {?} */
3499
- ValidationListComponent.prototype.invalidFiles;
3500
- /** @type {?} */
3501
- ValidationListComponent.prototype.ariaLabelRemove;
3502
- /**
3503
- * @type {?}
3504
- * @private
3505
- */
3506
- ValidationListComponent.prototype.messagesService;
3507
- }
3508
-
3509
- /**
3510
- * @fileoverview added by tsickle
3511
- * Generated from: lib/upload/upload.module.ts
3512
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3513
- */
3514
- var ɵ0$1 = {};
3515
- var UploadModule = /** @class */ (function () {
3516
- function UploadModule() {
3517
- }
3518
- /**
3519
- * @param {?=} validationMessages
3520
- * @return {?}
3521
- */
3522
- UploadModule.forChild = /**
3523
- * @param {?=} validationMessages
3524
- * @return {?}
3525
- */
3526
- function (validationMessages) {
3527
- if (validationMessages === void 0) { validationMessages = {}; }
3528
- return {
3529
- ngModule: UploadModule,
3530
- providers: [
3531
- { provide: UPLOAD_VALIDATION_MESSAGES, useValue: validationMessages },
3532
- ],
3533
- };
3534
- };
3535
- UploadModule.decorators = [
3536
- { type: core.NgModule, args: [{
3537
- imports: [
3538
- common.CommonModule,
3539
- ngxProgressBar.ProgressBarModule,
3540
- forms.FormsModule,
3541
- ngxIcon.IconModule,
3542
- ],
3543
- declarations: [
3544
- UploadComponent,
3545
- UploadInputComponent,
3546
- UploadQueueComponent,
3547
- UploadZoneComponent,
3548
- ValidationListComponent,
3549
- ],
3550
- exports: [
3551
- UploadComponent,
3552
- UploadInputComponent,
3553
- UploadQueueComponent,
3554
- UploadZoneComponent,
3555
- ValidationListComponent,
3556
- ],
3557
- providers: [
3558
- ValidationMessagesService,
3559
- { provide: UPLOAD_VALIDATION_MESSAGES, useValue: ɵ0$1 },
3560
- ],
3561
- },] }
3562
- ];
3563
- return UploadModule;
3564
- }());
3565
-
3566
- /**
3567
- * @fileoverview added by tsickle
3568
- * Generated from: lib/upload/public-api.ts
3569
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3570
- */
3571
-
3572
- /**
3573
- * @fileoverview added by tsickle
3574
- * Generated from: lib/wysiwyg/wysiwyg.conf.ts
3575
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3576
- */
3577
- /** @type {?} */
3578
- var WYSIWYG_DEFAULT_CONFIG = {
3579
- bodyClass: 'a-input ckeditor-editable-body',
3580
- contentsCss: ['https://cdn.antwerpen.be/core_branding_scss/5.0.0/main.min.css'],
3581
- extraPlugins: 'divarea',
3582
- find_highlight: {
3583
- element: 'span',
3584
- styles: { 'background-color': '#fffc00', color: '#0064b4' },
3585
- },
3586
- format_tags: 'p;h1;h2;h3;h4;h5;h6',
3587
- toolbar_Basic: [
3588
- ['Bold', 'Italic', 'Underline', '-', 'Format', '-', 'Source'],
3589
- ],
3590
- removeButtons: 'Styles',
3591
- removePlugins: 'about',
3592
- toolbar: null,
3593
- uiColor: '#d8d8d8',
3594
- };
3595
-
3596
- /**
3597
- * @fileoverview added by tsickle
3598
- * Generated from: lib/wysiwyg/components/wysiwyg/wysiwyg.component.ts
3599
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3600
- */
3601
- var WysiwygComponent = /** @class */ (function () {
3602
- function WysiwygComponent() {
3603
- this.setClass = true;
3604
- this.basic = false;
3605
- this.emitContent = new core.EventEmitter();
3606
- this.focus = new core.EventEmitter();
3607
- this.blur = new core.EventEmitter();
3608
- this.ckeditorConfig = WYSIWYG_DEFAULT_CONFIG;
3609
- this.isDisabled = false;
3610
- this.updateModel = (/**
3611
- * @param {...?} args
3612
- * @return {?}
3613
- */
3614
- function () {
3615
- var args = [];
3616
- for (var _i = 0; _i < arguments.length; _i++) {
3617
- args[_i] = arguments[_i];
3618
- }
3619
- return undefined;
3620
- });
3621
- }
3622
- // NG_VALUE_ACCESSOR_INTERFACE
3623
- // NG_VALUE_ACCESSOR_INTERFACE
3624
- /**
3625
- * @param {?} value
3626
- * @return {?}
3627
- */
3628
- WysiwygComponent.prototype.writeValue =
3629
- // NG_VALUE_ACCESSOR_INTERFACE
3630
- /**
3631
- * @param {?} value
3632
- * @return {?}
3633
- */
3634
- function (value) {
3635
- this.ckeditorContent = value;
3636
- this.updateModel(value);
3637
- this.emitContent.emit(this.ckeditorContent);
3638
- };
3639
- /**
3640
- * @param {?} value
3641
- * @return {?}
3642
- */
3643
- WysiwygComponent.prototype.onFocus = /**
3644
- * @param {?} value
3645
- * @return {?}
3646
- */
3647
- function (value) {
3648
- this.focus.emit(value);
3649
- };
3650
- /**
3651
- * @param {?} value
3652
- * @return {?}
3653
- */
3654
- WysiwygComponent.prototype.onBlur = /**
3655
- * @param {?} value
3656
- * @return {?}
3657
- */
3658
- function (value) {
3659
- this.blur.emit(value);
3660
- };
3661
- /**
3662
- * @param {?} onChange
3663
- * @return {?}
3664
- */
3665
- WysiwygComponent.prototype.registerOnChange = /**
3666
- * @param {?} onChange
3667
- * @return {?}
3668
- */
3669
- function (onChange) {
3670
- this.updateModel = onChange;
3671
- };
3672
- /**
3673
- * @return {?}
3674
- */
3675
- WysiwygComponent.prototype.registerOnTouched = /**
3676
- * @return {?}
3677
- */
3678
- function () {
3679
- };
3680
- /**
3681
- * @param {?} isDisabled
3682
- * @return {?}
3683
- */
3684
- WysiwygComponent.prototype.setDisabledState = /**
3685
- * @param {?} isDisabled
3686
- * @return {?}
3687
- */
3688
- function (isDisabled) {
3689
- this.isDisabled = isDisabled;
3690
- };
3691
- /**
3692
- * @return {?}
3693
- */
3694
- WysiwygComponent.prototype.ngOnInit = /**
3695
- * @return {?}
3696
- */
3697
- function () {
3698
- this.setConfig();
3699
- };
3700
- /**
3701
- * @private
3702
- * @return {?}
3703
- */
3704
- WysiwygComponent.prototype.setConfig = /**
3705
- * @private
3706
- * @return {?}
3707
- */
3708
- function () {
3709
- if (this.customConfig) {
3710
- this.ckeditorConfig = this.customConfig;
3711
- }
3712
- else {
3713
- if (this.basic) {
3714
- this.ckeditorConfig.toolbar = 'Basic';
3715
- }
3716
- if (this.availableTags) {
3717
- this.ckeditorConfig.format_tags = this.availableTags;
3718
- }
3719
- if (this.uiColour) {
3720
- this.ckeditorConfig.uiColor = this.uiColour;
3721
- }
3722
- if (this.additionalStyling) {
3723
- this.ckeditorConfig.contentsCss.concat(this.additionalStyling);
3724
- }
3725
- }
3726
- };
3727
- WysiwygComponent.decorators = [
3728
- { type: core.Component, args: [{
3729
- selector: 'aui-wysiwyg',
3730
- template: "<div class=\"aui-wysiwyg__inner\">\n <ckeditor\n (blur)=\"onBlur($event)\"\n (change)=\"writeValue($event)\"\n (focus)=\"onFocus($event)\"\n [(ngModel)]=\"ckeditorContent\"\n [config]=\"ckeditorConfig\"\n [debounce]=\"debounce\"\n [readonly]=\"isDisabled\"\n ></ckeditor>\n</div>\n",
3731
- providers: [{
3732
- provide: forms.NG_VALUE_ACCESSOR,
3733
- useExisting: core.forwardRef((/**
3734
- * @return {?}
3735
- */
3736
- function () { return WysiwygComponent; })),
3737
- // tslint:disable-line:no-forward-ref
3738
- multi: true,
3739
- }],
3740
- styles: [":host ::ng-deep .cke .cke_chrome{border:1px solid #6f6f6f}:host ::ng-deep .cke .cke_top{border-color:#6f6f6f}:host ::ng-deep .cke .cke_bottom,:host ::ng-deep .cke .cke_top{background-color:#f3f3f3}:host ::ng-deep .cke .cke_wysiwyg_div{padding:.25rem}:host ::ng-deep .cke.cke_focus .cke_contents{box-shadow:0 0 0 1px #6f6f6f,0 0 0 4px #c0dffe;position:relative;z-index:1}"]
3741
- }] }
3742
- ];
3743
- WysiwygComponent.propDecorators = {
3744
- setClass: [{ type: core.HostBinding, args: ['class.aui-wysiwyg',] }],
3745
- additionalStyling: [{ type: core.Input }],
3746
- availableTags: [{ type: core.Input }],
3747
- basic: [{ type: core.Input }],
3748
- uiColour: [{ type: core.Input }],
3749
- customConfig: [{ type: core.Input }],
3750
- debounce: [{ type: core.Input }],
3751
- emitContent: [{ type: core.Output }],
3752
- focus: [{ type: core.Output }],
3753
- blur: [{ type: core.Output }]
3754
- };
3755
- return WysiwygComponent;
3756
- }());
3757
- if (false) {
3758
- /** @type {?} */
3759
- WysiwygComponent.prototype.setClass;
3760
- /** @type {?} */
3761
- WysiwygComponent.prototype.additionalStyling;
3762
- /** @type {?} */
3763
- WysiwygComponent.prototype.availableTags;
3764
- /** @type {?} */
3765
- WysiwygComponent.prototype.basic;
3766
- /** @type {?} */
3767
- WysiwygComponent.prototype.uiColour;
3768
- /** @type {?} */
3769
- WysiwygComponent.prototype.customConfig;
3770
- /** @type {?} */
3771
- WysiwygComponent.prototype.debounce;
3772
- /** @type {?} */
3773
- WysiwygComponent.prototype.emitContent;
3774
- /** @type {?} */
3775
- WysiwygComponent.prototype.focus;
3776
- /** @type {?} */
3777
- WysiwygComponent.prototype.blur;
3778
- /** @type {?} */
3779
- WysiwygComponent.prototype.ckeditorContent;
3780
- /** @type {?} */
3781
- WysiwygComponent.prototype.ckeditorConfig;
3782
- /** @type {?} */
3783
- WysiwygComponent.prototype.isDisabled;
3784
- /**
3785
- * @type {?}
3786
- * @private
3787
- */
3788
- WysiwygComponent.prototype.updateModel;
3789
- }
3790
-
3791
- /**
3792
- * @fileoverview added by tsickle
3793
- * Generated from: lib/wysiwyg/wysiwyg.module.ts
3794
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3795
- */
3796
- var WysiwygModule = /** @class */ (function () {
3797
- function WysiwygModule() {
3798
- }
3799
- WysiwygModule.decorators = [
3800
- { type: core.NgModule, args: [{
3801
- imports: [
3802
- common.CommonModule,
3803
- forms.FormsModule,
3804
- forms.ReactiveFormsModule,
3805
- ng2Ckeditor.CKEditorModule,
3806
- ],
3807
- declarations: [
3808
- WysiwygComponent,
3809
- ],
3810
- exports: [
3811
- WysiwygComponent,
3812
- ],
3813
- },] }
3814
- ];
3815
- return WysiwygModule;
3816
- }());
3817
-
3818
- exports.AutoCompleteComponent = AutoCompleteComponent;
3819
- exports.AutoCompleteModule = AutoCompleteModule;
3820
- exports.DATEPICKER_DATE_MASK = DATEPICKER_DATE_MASK;
3821
- exports.DATEPICKER_DEFAULT_ERROR_LABELS = DATEPICKER_DEFAULT_ERROR_LABELS;
3822
- exports.DATEPICKER_ERROR_LABELS = DATEPICKER_ERROR_LABELS;
3823
- exports.DATEPICKER_SEPARATOR_CHAR = DATEPICKER_SEPARATOR_CHAR;
3824
- exports.DatepickerComponent = DatepickerComponent;
3825
- exports.DatepickerModule = DatepickerModule;
3826
- exports.MaskDirective = MaskDirective;
3827
- exports.MaskModule = MaskModule;
3828
- exports.RangeSliderComponent = RangeSliderComponent;
3829
- exports.RangeSliderModule = RangeSliderModule;
3830
- exports.SearchFilterComponent = SearchFilterComponent;
3831
- exports.SearchFilterModule = SearchFilterModule;
3832
- exports.TimePickerValidators = TimePickerValidators;
3833
- exports.TimepickerComponent = TimepickerComponent;
3834
- exports.TimepickerInputSize = TimepickerInputSize;
3835
- exports.TimepickerModule = TimepickerModule;
3836
- exports.UPLOAD_OPTIONS_DEFAULT = UPLOAD_OPTIONS_DEFAULT;
3837
- exports.UPLOAD_VALIDATION_MESSAGES = UPLOAD_VALIDATION_MESSAGES;
3838
- exports.UploadComponent = UploadComponent;
3839
- exports.UploadInputComponent = UploadInputComponent;
3840
- exports.UploadModule = UploadModule;
3841
- exports.UploadQueueComponent = UploadQueueComponent;
3842
- exports.UploadZoneComponent = UploadZoneComponent;
3843
- exports.Uploader = Uploader;
3844
- exports.ValidationListComponent = ValidationListComponent;
3845
- exports.ValidationMessagesService = ValidationMessagesService;
3846
- exports.WYSIWYG_DEFAULT_CONFIG = WYSIWYG_DEFAULT_CONFIG;
3847
- exports.WysiwygComponent = WysiwygComponent;
3848
- exports.WysiwygModule = WysiwygModule;
3849
- exports.ɵa = SearchService;
3850
-
3851
- Object.defineProperty(exports, '__esModule', { value: true });
3852
-
3853
- })));
3854
- //# sourceMappingURL=acpaas-ui-ngx-forms.umd.js.map