@acpaas-ui/ngx-forms 5.4.0 → 6.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. package/README.md +9 -11
  2. package/esm2020/acpaas-ui-ngx-forms.mjs +5 -0
  3. package/esm2020/lib/auto-complete/auto-complete.module.mjs +24 -0
  4. package/esm2020/lib/auto-complete/components/auto-complete/auto-complete.component.mjs +347 -0
  5. package/esm2020/lib/auto-complete/public-api.mjs +3 -0
  6. package/esm2020/lib/datepicker/components/datepicker/datepicker.component.mjs +273 -0
  7. package/esm2020/lib/datepicker/datepicker.conf.mjs +8 -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/range-slider/components/range-slider/range-slider.component.mjs +349 -0
  12. package/esm2020/lib/range-slider/public-api.mjs +3 -0
  13. package/esm2020/lib/range-slider/range-slider.module.mjs +20 -0
  14. package/esm2020/lib/range-slider/types/range-slider.types.mjs +2 -0
  15. package/esm2020/lib/search-filter/components/search-filter/search-filter.component.mjs +259 -0
  16. package/esm2020/lib/search-filter/public-api.mjs +3 -0
  17. package/esm2020/lib/search-filter/search-filter.module.mjs +22 -0
  18. package/esm2020/lib/search-filter/types/search-filter.types.mjs +2 -0
  19. package/esm2020/lib/shared/services/search.service.mjs +32 -0
  20. package/esm2020/lib/shared/types/search.types.mjs +2 -0
  21. package/esm2020/lib/timepicker/classes/timepicker.validators.mjs +49 -0
  22. package/esm2020/lib/timepicker/components/timepicker/timepicker.component.mjs +229 -0
  23. package/esm2020/lib/timepicker/public-api.mjs +5 -0
  24. package/esm2020/lib/timepicker/timepicker.module.mjs +22 -0
  25. package/esm2020/lib/timepicker/types/timepicker.types.mjs +7 -0
  26. package/esm2020/lib/upload/classes/uploader.class.mjs +112 -0
  27. package/esm2020/lib/upload/components/upload/upload.component.mjs +97 -0
  28. package/esm2020/lib/upload/components/upload-input/upload-input.component.mjs +56 -0
  29. package/esm2020/lib/upload/components/upload-queue/upload-queue.component.mjs +78 -0
  30. package/esm2020/lib/upload/components/upload-zone/upload-zone.component.mjs +252 -0
  31. package/esm2020/lib/upload/components/validation-list/validation-list.component.mjs +64 -0
  32. package/esm2020/lib/upload/public-api.mjs +10 -0
  33. package/esm2020/lib/upload/services/validation-messages.service.mjs +29 -0
  34. package/esm2020/lib/upload/types/upload.types.mjs +2 -0
  35. package/esm2020/lib/upload/upload.conf.mjs +12 -0
  36. package/esm2020/lib/upload/upload.module.mjs +45 -0
  37. package/esm2020/public-api.mjs +7 -0
  38. package/fesm2015/acpaas-ui-ngx-forms.mjs +2518 -0
  39. package/fesm2015/acpaas-ui-ngx-forms.mjs.map +1 -0
  40. package/fesm2020/acpaas-ui-ngx-forms.mjs +2339 -0
  41. package/fesm2020/acpaas-ui-ngx-forms.mjs.map +1 -0
  42. package/{acpaas-ui-ngx-forms.d.ts → index.d.ts} +1 -1
  43. package/lib/auto-complete/auto-complete.module.d.ts +9 -0
  44. package/lib/auto-complete/components/auto-complete/auto-complete.component.d.ts +5 -1
  45. package/lib/datepicker/components/datepicker/datepicker.component.d.ts +9 -8
  46. package/lib/datepicker/datepicker.conf.d.ts +0 -1
  47. package/lib/datepicker/datepicker.module.d.ts +11 -1
  48. package/lib/datepicker/public-api.d.ts +1 -1
  49. package/lib/range-slider/components/range-slider/range-slider.component.d.ts +8 -2
  50. package/lib/range-slider/range-slider.module.d.ts +7 -0
  51. package/lib/search-filter/components/search-filter/search-filter.component.d.ts +10 -4
  52. package/lib/search-filter/search-filter.module.d.ts +9 -0
  53. package/lib/shared/services/search.service.d.ts +3 -0
  54. package/lib/timepicker/components/timepicker/timepicker.component.d.ts +9 -4
  55. package/lib/timepicker/timepicker.module.d.ts +8 -0
  56. package/lib/upload/components/upload/upload.component.d.ts +5 -0
  57. package/lib/upload/components/upload-input/upload-input.component.d.ts +3 -0
  58. package/lib/upload/components/upload-queue/upload-queue.component.d.ts +3 -0
  59. package/lib/upload/components/upload-zone/upload-zone.component.d.ts +7 -0
  60. package/lib/upload/components/validation-list/validation-list.component.d.ts +3 -0
  61. package/lib/upload/services/validation-messages.service.d.ts +3 -0
  62. package/lib/upload/upload.module.d.ts +14 -1
  63. package/package.json +37 -26
  64. package/public-api.d.ts +0 -2
  65. package/acpaas-ui-ngx-forms.metadata.json +0 -1
  66. package/bundles/acpaas-ui-ngx-forms.umd.js +0 -3862
  67. package/bundles/acpaas-ui-ngx-forms.umd.js.map +0 -1
  68. package/bundles/acpaas-ui-ngx-forms.umd.min.js +0 -2
  69. package/bundles/acpaas-ui-ngx-forms.umd.min.js.map +0 -1
  70. package/esm2015/acpaas-ui-ngx-forms.js +0 -11
  71. package/esm2015/lib/auto-complete/auto-complete.module.js +0 -36
  72. package/esm2015/lib/auto-complete/components/auto-complete/auto-complete.component.js +0 -416
  73. package/esm2015/lib/auto-complete/public-api.js +0 -8
  74. package/esm2015/lib/datepicker/components/datepicker/datepicker.component.js +0 -343
  75. package/esm2015/lib/datepicker/datepicker.conf.js +0 -18
  76. package/esm2015/lib/datepicker/datepicker.module.js +0 -59
  77. package/esm2015/lib/datepicker/public-api.js +0 -9
  78. package/esm2015/lib/datepicker/types/datepicker.types.js +0 -20
  79. package/esm2015/lib/mask/directives/mask.directive.js +0 -51
  80. package/esm2015/lib/mask/mask.module.js +0 -25
  81. package/esm2015/lib/mask/public-api.js +0 -8
  82. package/esm2015/lib/range-slider/components/range-slider/range-slider.component.js +0 -424
  83. package/esm2015/lib/range-slider/public-api.js +0 -8
  84. package/esm2015/lib/range-slider/range-slider.module.js +0 -26
  85. package/esm2015/lib/range-slider/types/range-slider.types.js +0 -16
  86. package/esm2015/lib/search-filter/components/search-filter/search-filter.component.js +0 -219
  87. package/esm2015/lib/search-filter/public-api.js +0 -8
  88. package/esm2015/lib/search-filter/search-filter.module.js +0 -30
  89. package/esm2015/lib/search-filter/types/search-filter.types.js +0 -16
  90. package/esm2015/lib/shared/services/search.service.js +0 -58
  91. package/esm2015/lib/shared/types/search.types.js +0 -20
  92. package/esm2015/lib/timepicker/classes/timepicker.validators.js +0 -84
  93. package/esm2015/lib/timepicker/components/timepicker/timepicker.component.js +0 -227
  94. package/esm2015/lib/timepicker/public-api.js +0 -10
  95. package/esm2015/lib/timepicker/timepicker.module.js +0 -29
  96. package/esm2015/lib/timepicker/types/timepicker.types.js +0 -13
  97. package/esm2015/lib/upload/classes/uploader.class.js +0 -189
  98. package/esm2015/lib/upload/components/upload/upload.component.js +0 -100
  99. package/esm2015/lib/upload/components/upload-input/upload-input.component.js +0 -67
  100. package/esm2015/lib/upload/components/upload-queue/upload-queue.component.js +0 -68
  101. package/esm2015/lib/upload/components/upload-zone/upload-zone.component.js +0 -219
  102. package/esm2015/lib/upload/components/validation-list/validation-list.component.js +0 -62
  103. package/esm2015/lib/upload/public-api.js +0 -15
  104. package/esm2015/lib/upload/services/validation-messages.service.js +0 -48
  105. package/esm2015/lib/upload/types/upload.types.js +0 -48
  106. package/esm2015/lib/upload/upload.conf.js +0 -21
  107. package/esm2015/lib/upload/upload.module.js +0 -62
  108. package/esm2015/lib/wysiwyg/components/wysiwyg/wysiwyg.component.js +0 -158
  109. package/esm2015/lib/wysiwyg/public-api.js +0 -9
  110. package/esm2015/lib/wysiwyg/wysiwyg.conf.js +0 -24
  111. package/esm2015/lib/wysiwyg/wysiwyg.module.js +0 -29
  112. package/esm2015/public-api.js +0 -14
  113. package/esm5/acpaas-ui-ngx-forms.js +0 -11
  114. package/esm5/lib/auto-complete/auto-complete.module.js +0 -40
  115. package/esm5/lib/auto-complete/components/auto-complete/auto-complete.component.js +0 -506
  116. package/esm5/lib/auto-complete/public-api.js +0 -8
  117. package/esm5/lib/datepicker/components/datepicker/datepicker.component.js +0 -392
  118. package/esm5/lib/datepicker/datepicker.conf.js +0 -18
  119. package/esm5/lib/datepicker/datepicker.module.js +0 -69
  120. package/esm5/lib/datepicker/public-api.js +0 -9
  121. package/esm5/lib/datepicker/types/datepicker.types.js +0 -20
  122. package/esm5/lib/mask/directives/mask.directive.js +0 -58
  123. package/esm5/lib/mask/mask.module.js +0 -29
  124. package/esm5/lib/mask/public-api.js +0 -8
  125. package/esm5/lib/range-slider/components/range-slider/range-slider.component.js +0 -514
  126. package/esm5/lib/range-slider/public-api.js +0 -8
  127. package/esm5/lib/range-slider/range-slider.module.js +0 -30
  128. package/esm5/lib/range-slider/types/range-slider.types.js +0 -16
  129. package/esm5/lib/search-filter/components/search-filter/search-filter.component.js +0 -256
  130. package/esm5/lib/search-filter/public-api.js +0 -8
  131. package/esm5/lib/search-filter/search-filter.module.js +0 -34
  132. package/esm5/lib/search-filter/types/search-filter.types.js +0 -16
  133. package/esm5/lib/shared/services/search.service.js +0 -68
  134. package/esm5/lib/shared/types/search.types.js +0 -20
  135. package/esm5/lib/timepicker/classes/timepicker.validators.js +0 -102
  136. package/esm5/lib/timepicker/components/timepicker/timepicker.component.js +0 -259
  137. package/esm5/lib/timepicker/public-api.js +0 -10
  138. package/esm5/lib/timepicker/timepicker.module.js +0 -33
  139. package/esm5/lib/timepicker/types/timepicker.types.js +0 -13
  140. package/esm5/lib/upload/classes/uploader.class.js +0 -249
  141. package/esm5/lib/upload/components/upload/upload.component.js +0 -117
  142. package/esm5/lib/upload/components/upload-input/upload-input.component.js +0 -84
  143. package/esm5/lib/upload/components/upload-queue/upload-queue.component.js +0 -78
  144. package/esm5/lib/upload/components/upload-zone/upload-zone.component.js +0 -264
  145. package/esm5/lib/upload/components/validation-list/validation-list.component.js +0 -81
  146. package/esm5/lib/upload/public-api.js +0 -15
  147. package/esm5/lib/upload/services/validation-messages.service.js +0 -47
  148. package/esm5/lib/upload/types/upload.types.js +0 -48
  149. package/esm5/lib/upload/upload.conf.js +0 -21
  150. package/esm5/lib/upload/upload.module.js +0 -71
  151. package/esm5/lib/wysiwyg/components/wysiwyg/wysiwyg.component.js +0 -199
  152. package/esm5/lib/wysiwyg/public-api.js +0 -9
  153. package/esm5/lib/wysiwyg/wysiwyg.conf.js +0 -24
  154. package/esm5/lib/wysiwyg/wysiwyg.module.js +0 -33
  155. package/esm5/public-api.js +0 -14
  156. package/fesm2015/acpaas-ui-ngx-forms.js +0 -3079
  157. package/fesm2015/acpaas-ui-ngx-forms.js.map +0 -1
  158. package/fesm5/acpaas-ui-ngx-forms.js +0 -3635
  159. package/fesm5/acpaas-ui-ngx-forms.js.map +0 -1
  160. package/lib/mask/directives/mask.directive.d.ts +0 -8
  161. package/lib/mask/mask.module.d.ts +0 -2
  162. package/lib/mask/public-api.d.ts +0 -2
  163. package/lib/wysiwyg/components/wysiwyg/wysiwyg.component.d.ts +0 -43
  164. package/lib/wysiwyg/public-api.d.ts +0 -3
  165. package/lib/wysiwyg/wysiwyg.conf.d.ts +0 -18
  166. package/lib/wysiwyg/wysiwyg.module.d.ts +0 -2
@@ -1,3862 +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(moduleMonthLabels, moduleWeekdayLabels, errorLabels, calendarService, formBuilder, ref) {
933
- if (moduleMonthLabels === void 0) { moduleMonthLabels = ngxCalendar.CALENDAR_DEFAULT_MONTH_LABELS; }
934
- if (moduleWeekdayLabels === void 0) { moduleWeekdayLabels = ngxCalendar.CALENDAR_DEFAULT_WEEKDAY_LABELS; }
935
- if (errorLabels === void 0) { errorLabels = DATEPICKER_DEFAULT_ERROR_LABELS; }
936
- this.moduleMonthLabels = moduleMonthLabels;
937
- this.moduleWeekdayLabels = moduleWeekdayLabels;
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.weekdayLabels = this.weekdayLabels || this.moduleWeekdayLabels;
965
- this.monthLabels = this.monthLabels || this.moduleMonthLabels;
966
- this.createInterval();
967
- this.formControl = this.formBuilder.control({ value: '', disabled: this.isDisabled });
968
- this.formControl.valueChanges
969
- .pipe(operators.takeUntil(this.componentDestroyed$))
970
- .subscribe((/**
971
- * @param {?} value
972
- * @return {?}
973
- */
974
- function (value) {
975
- if (value) {
976
- /** @type {?} */
977
- var format = value.split(DATEPICKER_SEPARATOR_CHAR).reverse().join('-');
978
- /** @type {?} */
979
- var date = jsDateUtils.DateHelper.parseDate(format, 'yyyy-MM-dd');
980
- if (date) {
981
- _this.selectedDate = date;
982
- _this.onChange(date.toISOString());
983
- }
984
- else {
985
- // Change value with original value (and not null or '') so we can add an error in the validate function
986
- _this.onChange(value);
987
- }
988
- }
989
- else {
990
- _this.selectedDate = null;
991
- _this.onChange('');
992
- }
993
- }));
994
- };
995
- /**
996
- * @param {?} changes
997
- * @return {?}
998
- */
999
- DatepickerComponent.prototype.ngOnChanges = /**
1000
- * @param {?} changes
1001
- * @return {?}
1002
- */
1003
- function (changes) {
1004
- if (changes.min || changes.max) {
1005
- this.createInterval();
1006
- }
1007
- };
1008
- /**
1009
- * @return {?}
1010
- */
1011
- DatepickerComponent.prototype.ngOnDestroy = /**
1012
- * @return {?}
1013
- */
1014
- function () {
1015
- this.componentDestroyed$.next(true);
1016
- this.componentDestroyed$.complete();
1017
- };
1018
- /**
1019
- * @private
1020
- * @return {?}
1021
- */
1022
- DatepickerComponent.prototype.createInterval = /**
1023
- * @private
1024
- * @return {?}
1025
- */
1026
- function () {
1027
- if (!this.min && !this.max) {
1028
- return;
1029
- }
1030
- // Create an interval if min/max is filled in
1031
- this.interval = ngxUtils.IntervalBuilder.dateInterval(this.min ? new Date(this.min) : null, this.max ? new Date(this.max) : null)
1032
- .not()
1033
- .build();
1034
- };
1035
- /**
1036
- * @param {?} value
1037
- * @return {?}
1038
- */
1039
- DatepickerComponent.prototype.writeValue = /**
1040
- * @param {?} value
1041
- * @return {?}
1042
- */
1043
- function (value) {
1044
- this.selectedDate = typeof value === 'string'
1045
- ? this.isISODateFormat(value) ? new Date(value) : jsDateUtils.DateHelper.parseDate(value, 'dd/MM/yyyy')
1046
- : value;
1047
- /** @type {?} */
1048
- var dateString = this.selectedDate ? this.formatDate(this.selectedDate) : '';
1049
- this.formControl.setValue(dateString);
1050
- };
1051
- /**
1052
- * @param {?} onChange
1053
- * @return {?}
1054
- */
1055
- DatepickerComponent.prototype.registerOnChange = /**
1056
- * @param {?} onChange
1057
- * @return {?}
1058
- */
1059
- function (onChange) {
1060
- this.onChange = onChange;
1061
- };
1062
- /**
1063
- * @param {?} onTouched
1064
- * @return {?}
1065
- */
1066
- DatepickerComponent.prototype.registerOnTouched = /**
1067
- * @param {?} onTouched
1068
- * @return {?}
1069
- */
1070
- function (onTouched) {
1071
- this.onTouched = onTouched;
1072
- };
1073
- /**
1074
- * @param {?} isDisabled
1075
- * @return {?}
1076
- */
1077
- DatepickerComponent.prototype.setDisabledState = /**
1078
- * @param {?} isDisabled
1079
- * @return {?}
1080
- */
1081
- function (isDisabled) {
1082
- this.isDisabled = isDisabled;
1083
- if (this.formControl) {
1084
- if (isDisabled && this.formControl.enabled) {
1085
- this.formControl.disable();
1086
- }
1087
- else if (!isDisabled && this.formControl.disabled) {
1088
- this.formControl.enable();
1089
- }
1090
- }
1091
- this.ref.markForCheck();
1092
- };
1093
- /**
1094
- * @param {?} result
1095
- * @return {?}
1096
- */
1097
- DatepickerComponent.prototype.selectDateFromCalendar = /**
1098
- * @param {?} result
1099
- * @return {?}
1100
- */
1101
- function (result) {
1102
- if (result.complete) {
1103
- this.formControl.setValue(this.formatDate(result.date));
1104
- this.flyout.close();
1105
- }
1106
- };
1107
- /**
1108
- * @param {?} date
1109
- * @return {?}
1110
- */
1111
- DatepickerComponent.prototype.formatDate = /**
1112
- * @param {?} date
1113
- * @return {?}
1114
- */
1115
- function (date) {
1116
- return jsDateUtils.DateHelper.formatDate(date, 'DD/MM/YYYY', {
1117
- leadingZero: true,
1118
- monthLabels: this.monthLabels,
1119
- weekdayLabels: this.weekdayLabels,
1120
- });
1121
- };
1122
- /**
1123
- * @param {?} ctrl
1124
- * @return {?}
1125
- */
1126
- DatepickerComponent.prototype.validate = /**
1127
- * @param {?} ctrl
1128
- * @return {?}
1129
- */
1130
- function (ctrl) {
1131
- // no error on empty value (add required validator in app)
1132
- if (ctrl.value === '' || ctrl.value === null) {
1133
- return null;
1134
- }
1135
- // throw format error if no valid date was provided
1136
- /** @type {?} */
1137
- var date = jsDateUtils.DateHelper.parseDate(ctrl.value);
1138
- if (!date) {
1139
- return {
1140
- format: this.errorLabels.ERRORS_INVALID_DATE,
1141
- };
1142
- }
1143
- // no error if valid date an no range provided
1144
- if (!this.range || !this.range.length) {
1145
- return null;
1146
- }
1147
- // throw error when out of range
1148
- /** @type {?} */
1149
- var range = this.calendarService.getRangeForDate(date, this.range);
1150
- return range.indexOf(date.getDate()) >= 0 ? {
1151
- range: this.errorLabels.ERRORS_INVALID_RANGE,
1152
- } : null;
1153
- };
1154
- /**
1155
- * @param {?} e
1156
- * @return {?}
1157
- */
1158
- DatepickerComponent.prototype.handleBlur = /**
1159
- * @param {?} e
1160
- * @return {?}
1161
- */
1162
- function (e) {
1163
- this.blur.emit(e);
1164
- this.onTouched(e);
1165
- };
1166
- /**
1167
- * @private
1168
- * @param {?} value
1169
- * @return {?}
1170
- */
1171
- DatepickerComponent.prototype.isISODateFormat = /**
1172
- * @private
1173
- * @param {?} value
1174
- * @return {?}
1175
- */
1176
- function (value) {
1177
- if (typeof value !== 'string') {
1178
- return false;
1179
- }
1180
- return value.match(/\d{4}-\d{2}-\d{2}T.*/);
1181
- };
1182
- DatepickerComponent.decorators = [
1183
- { type: core.Component, args: [{
1184
- selector: 'aui-datepicker',
1185
- 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\n (selectDate)=\"selectDateFromCalendar($event)\"\n [range]=\"range\"\n [selectedDate]=\"selectedDate\"\n [interval]=\"interval\"\n [weekdayLabels]=\"weekdayLabels\"\n [monthLabels]=\"monthLabels\"\n ></aui-calendar>\n </div>\n </ng-container>\n</div>\n",
1186
- changeDetection: core.ChangeDetectionStrategy.OnPush,
1187
- providers: [{
1188
- provide: forms.NG_VALUE_ACCESSOR,
1189
- useExisting: core.forwardRef((/**
1190
- * @return {?}
1191
- */
1192
- function () { return DatepickerComponent; })),
1193
- // tslint:disable-line:no-forward-ref
1194
- multi: true,
1195
- }, {
1196
- provide: forms.NG_VALIDATORS,
1197
- useExisting: core.forwardRef((/**
1198
- * @return {?}
1199
- */
1200
- function () { return DatepickerComponent; })),
1201
- // tslint:disable-line:no-forward-ref
1202
- multi: true,
1203
- }],
1204
- styles: [".aui-datepicker,:host{display:block}"]
1205
- }] }
1206
- ];
1207
- /** @nocollapse */
1208
- DatepickerComponent.ctorParameters = function () { return [
1209
- { type: undefined, decorators: [{ type: core.Inject, args: [ngxCalendar.CALENDAR_MONTH_LABELS,] }] },
1210
- { type: undefined, decorators: [{ type: core.Inject, args: [ngxCalendar.CALENDAR_WEEKDAY_LABELS,] }] },
1211
- { type: undefined, decorators: [{ type: core.Inject, args: [DATEPICKER_ERROR_LABELS,] }] },
1212
- { type: ngxCalendar.CalendarService },
1213
- { type: forms.FormBuilder },
1214
- { type: core.ChangeDetectorRef }
1215
- ]; };
1216
- DatepickerComponent.propDecorators = {
1217
- flyout: [{ type: core.ViewChild, args: [ngxFlyout.FlyoutDirective, { static: true },] }],
1218
- id: [{ type: core.Input }],
1219
- name: [{ type: core.Input }],
1220
- placeholder: [{ type: core.Input }],
1221
- range: [{ type: core.Input }],
1222
- min: [{ type: core.Input }],
1223
- max: [{ type: core.Input }],
1224
- autocomplete: [{ type: core.Input }],
1225
- weekdayLabels: [{ type: core.Input }],
1226
- monthLabels: [{ type: core.Input }],
1227
- blur: [{ type: core.Output }]
1228
- };
1229
- return DatepickerComponent;
1230
- }());
1231
- if (false) {
1232
- /** @type {?} */
1233
- DatepickerComponent.prototype.flyout;
1234
- /** @type {?} */
1235
- DatepickerComponent.prototype.id;
1236
- /** @type {?} */
1237
- DatepickerComponent.prototype.name;
1238
- /** @type {?} */
1239
- DatepickerComponent.prototype.placeholder;
1240
- /** @type {?} */
1241
- DatepickerComponent.prototype.range;
1242
- /** @type {?} */
1243
- DatepickerComponent.prototype.min;
1244
- /** @type {?} */
1245
- DatepickerComponent.prototype.max;
1246
- /** @type {?} */
1247
- DatepickerComponent.prototype.autocomplete;
1248
- /** @type {?} */
1249
- DatepickerComponent.prototype.weekdayLabels;
1250
- /** @type {?} */
1251
- DatepickerComponent.prototype.monthLabels;
1252
- /** @type {?} */
1253
- DatepickerComponent.prototype.blur;
1254
- /** @type {?} */
1255
- DatepickerComponent.prototype.dateMask;
1256
- /** @type {?} */
1257
- DatepickerComponent.prototype.formControl;
1258
- /** @type {?} */
1259
- DatepickerComponent.prototype.selectedDate;
1260
- /** @type {?} */
1261
- DatepickerComponent.prototype.isDisabled;
1262
- /** @type {?} */
1263
- DatepickerComponent.prototype.interval;
1264
- /**
1265
- * @type {?}
1266
- * @private
1267
- */
1268
- DatepickerComponent.prototype.componentDestroyed$;
1269
- /**
1270
- * @type {?}
1271
- * @private
1272
- */
1273
- DatepickerComponent.prototype.onChange;
1274
- /**
1275
- * @type {?}
1276
- * @private
1277
- */
1278
- DatepickerComponent.prototype.onTouched;
1279
- /**
1280
- * @type {?}
1281
- * @private
1282
- */
1283
- DatepickerComponent.prototype.moduleMonthLabels;
1284
- /**
1285
- * @type {?}
1286
- * @private
1287
- */
1288
- DatepickerComponent.prototype.moduleWeekdayLabels;
1289
- /**
1290
- * @type {?}
1291
- * @private
1292
- */
1293
- DatepickerComponent.prototype.errorLabels;
1294
- /** @type {?} */
1295
- DatepickerComponent.prototype.calendarService;
1296
- /**
1297
- * @type {?}
1298
- * @private
1299
- */
1300
- DatepickerComponent.prototype.formBuilder;
1301
- /**
1302
- * @type {?}
1303
- * @private
1304
- */
1305
- DatepickerComponent.prototype.ref;
1306
- }
1307
-
1308
- /**
1309
- * @fileoverview added by tsickle
1310
- * Generated from: lib/datepicker/datepicker.module.ts
1311
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1312
- */
1313
- var ɵ0 = ngxCalendar.CALENDAR_DEFAULT_WEEKDAY_LABELS, ɵ1 = ngxCalendar.CALENDAR_DEFAULT_MONTH_LABELS, ɵ2 = DATEPICKER_DEFAULT_ERROR_LABELS;
1314
- var DatepickerModule = /** @class */ (function () {
1315
- function DatepickerModule() {
1316
- }
1317
- /**
1318
- * @param {?} weekdayLabels
1319
- * @param {?} monthLabels
1320
- * @param {?} errorLabels
1321
- * @return {?}
1322
- */
1323
- DatepickerModule.forChild = /**
1324
- * @param {?} weekdayLabels
1325
- * @param {?} monthLabels
1326
- * @param {?} errorLabels
1327
- * @return {?}
1328
- */
1329
- function (weekdayLabels, monthLabels, errorLabels) {
1330
- return {
1331
- ngModule: DatepickerModule,
1332
- providers: [
1333
- { provide: ngxCalendar.CALENDAR_WEEKDAY_LABELS, useValue: weekdayLabels },
1334
- { provide: ngxCalendar.CALENDAR_MONTH_LABELS, useValue: monthLabels },
1335
- { provide: DATEPICKER_ERROR_LABELS, useValue: errorLabels },
1336
- ],
1337
- };
1338
- };
1339
- DatepickerModule.decorators = [
1340
- { type: core.NgModule, args: [{
1341
- imports: [
1342
- common.CommonModule,
1343
- forms.FormsModule,
1344
- forms.ReactiveFormsModule,
1345
- ngxCalendar.CalendarModule,
1346
- ngxIcon.IconModule,
1347
- ngxFlyout.FlyoutModule,
1348
- MaskModule,
1349
- ],
1350
- declarations: [
1351
- DatepickerComponent,
1352
- ],
1353
- exports: [
1354
- DatepickerComponent,
1355
- ],
1356
- providers: [
1357
- { provide: ngxCalendar.CALENDAR_WEEKDAY_LABELS, useValue: ɵ0 },
1358
- { provide: ngxCalendar.CALENDAR_MONTH_LABELS, useValue: ɵ1 },
1359
- { provide: DATEPICKER_ERROR_LABELS, useValue: ɵ2 },
1360
- ],
1361
- },] }
1362
- ];
1363
- return DatepickerModule;
1364
- }());
1365
-
1366
- /**
1367
- * @fileoverview added by tsickle
1368
- * Generated from: lib/datepicker/public-api.ts
1369
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1370
- */
1371
-
1372
- /**
1373
- * @fileoverview added by tsickle
1374
- * Generated from: lib/mask/public-api.ts
1375
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1376
- */
1377
-
1378
- /**
1379
- * @fileoverview added by tsickle
1380
- * Generated from: lib/range-slider/components/range-slider/range-slider.component.ts
1381
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1382
- */
1383
- var RangeSliderComponent = /** @class */ (function () {
1384
- function RangeSliderComponent(elRef) {
1385
- this.elRef = elRef;
1386
- this.coreBranding = true;
1387
- this.min = 0;
1388
- this.max = 100;
1389
- this.minimalDistance = 1;
1390
- this.step = 0;
1391
- this.labelBefore = '';
1392
- this.labelAfter = '';
1393
- this.start = 0;
1394
- this.end = false;
1395
- this.steps = [];
1396
- this.active = null;
1397
- this.isDisabled = false;
1398
- this.hasFocus = false;
1399
- this.click = false;
1400
- this.propagateChange = (/**
1401
- * @param {?} value
1402
- * @return {?}
1403
- */
1404
- function (value) {
1405
- });
1406
- }
1407
- Object.defineProperty(RangeSliderComponent.prototype, "disabledClass", {
1408
- get: /**
1409
- * @return {?}
1410
- */
1411
- function () {
1412
- return this.isDisabled;
1413
- },
1414
- enumerable: true,
1415
- configurable: true
1416
- });
1417
- /**
1418
- * @return {?}
1419
- */
1420
- RangeSliderComponent.prototype.ngOnInit = /**
1421
- * @return {?}
1422
- */
1423
- function () {
1424
- if (this.step > 0) {
1425
- for (var i = 0; i <= this.max; i += Number(this.step)) {
1426
- this.steps.push(i);
1427
- }
1428
- }
1429
- this.startPercentage = this.startToPercentage();
1430
- if (this.end) {
1431
- this.endPercentage = this.endToPercentage();
1432
- }
1433
- };
1434
- /**
1435
- * @param {?} value
1436
- * @return {?}
1437
- */
1438
- RangeSliderComponent.prototype.writeValue = /**
1439
- * @param {?} value
1440
- * @return {?}
1441
- */
1442
- function (value) {
1443
- if (value && value.start) {
1444
- this.start = value.start;
1445
- }
1446
- else if (!isNaN(value) && value !== '') {
1447
- this.start = Number(value);
1448
- }
1449
- else {
1450
- this.setStart(Number(this.min));
1451
- }
1452
- this.startPercentage = this.startToPercentage();
1453
- if (value && value.end) {
1454
- this.end = value.end;
1455
- this.endPercentage = this.endToPercentage();
1456
- }
1457
- };
1458
- /**
1459
- * @return {?}
1460
- */
1461
- RangeSliderComponent.prototype.registerOnTouched = /**
1462
- * @return {?}
1463
- */
1464
- function () {
1465
- };
1466
- /**
1467
- * @param {?} fn
1468
- * @return {?}
1469
- */
1470
- RangeSliderComponent.prototype.registerOnChange = /**
1471
- * @param {?} fn
1472
- * @return {?}
1473
- */
1474
- function (fn) {
1475
- this.propagateChange = fn;
1476
- };
1477
- /**
1478
- * @param {?} isDisabled
1479
- * @return {?}
1480
- */
1481
- RangeSliderComponent.prototype.setDisabledState = /**
1482
- * @param {?} isDisabled
1483
- * @return {?}
1484
- */
1485
- function (isDisabled) {
1486
- this.isDisabled = isDisabled;
1487
- };
1488
- /**
1489
- * @param {?} handle
1490
- * @return {?}
1491
- */
1492
- RangeSliderComponent.prototype.onMouseDown = /**
1493
- * @param {?} handle
1494
- * @return {?}
1495
- */
1496
- function (handle) {
1497
- if (this.isDisabled) {
1498
- return;
1499
- }
1500
- this.hasFocus = true;
1501
- this.active = handle;
1502
- };
1503
- /**
1504
- * @param {?} hasFocus
1505
- * @param {?} element
1506
- * @param {?} $event
1507
- * @return {?}
1508
- */
1509
- RangeSliderComponent.prototype.toggleFocus = /**
1510
- * @param {?} hasFocus
1511
- * @param {?} element
1512
- * @param {?} $event
1513
- * @return {?}
1514
- */
1515
- function (hasFocus, element, $event) {
1516
- if (this.isDisabled) {
1517
- return;
1518
- }
1519
- $event.preventDefault();
1520
- this.hasFocus = hasFocus;
1521
- this.active = element;
1522
- };
1523
- /**
1524
- * @param {?} $event
1525
- * @return {?}
1526
- */
1527
- RangeSliderComponent.prototype.onKeyDown = /**
1528
- * @param {?} $event
1529
- * @return {?}
1530
- */
1531
- function ($event) {
1532
- var _this = this;
1533
- if (!this.hasFocus) {
1534
- return;
1535
- }
1536
- /** @type {?} */
1537
- var key = $event.keyCode;
1538
- /** @type {?} */
1539
- var keyCodes = {
1540
- end: 35,
1541
- home: 36,
1542
- left: 37,
1543
- up: 38,
1544
- right: 39,
1545
- down: 40,
1546
- };
1547
- if (Object.keys(keyCodes).map((/**
1548
- * @param {?} e
1549
- * @return {?}
1550
- */
1551
- function (e) { return keyCodes[e]; })).indexOf(key) === -1) {
1552
- return;
1553
- }
1554
- /** @type {?} */
1555
- var increment = this.minimalDistance;
1556
- if (this.step > 0) {
1557
- increment = Number(this.step);
1558
- }
1559
- /** @type {?} */
1560
- var processValue = (/**
1561
- * @param {?} dir
1562
- * @return {?}
1563
- */
1564
- function (dir) {
1565
- /** @type {?} */
1566
- var newValue = (_this.active === 'start' ? _this.start : Number(_this.end));
1567
- if (dir === 'up') {
1568
- newValue += increment;
1569
- }
1570
- else {
1571
- newValue -= increment;
1572
- }
1573
- /** @type {?} */
1574
- var newPercentage = (newValue - _this.min) / (_this.max - _this.min) * 100;
1575
- if (newPercentage > 100) {
1576
- newPercentage = 100;
1577
- }
1578
- if (newPercentage < 0) {
1579
- newPercentage = 0;
1580
- }
1581
- return newPercentage;
1582
- });
1583
- switch (key) {
1584
- case keyCodes.right:
1585
- case keyCodes.up:
1586
- this.updateHandle(processValue('up'));
1587
- $event.preventDefault();
1588
- break;
1589
- case keyCodes.left:
1590
- case keyCodes.down:
1591
- this.updateHandle(processValue('down'));
1592
- $event.preventDefault();
1593
- break;
1594
- case keyCodes.end:
1595
- this.updateHandle(100);
1596
- $event.preventDefault();
1597
- break;
1598
- case keyCodes.home:
1599
- this.updateHandle(0);
1600
- $event.preventDefault();
1601
- break;
1602
- }
1603
- };
1604
- /**
1605
- * @param {?} event
1606
- * @return {?}
1607
- */
1608
- RangeSliderComponent.prototype.onMouseUp = /**
1609
- * @param {?} event
1610
- * @return {?}
1611
- */
1612
- function (event) {
1613
- if (this.active === 'start') {
1614
- this.setStart(this.round(this.start, this.step, 0));
1615
- this.startPercentage = this.startToPercentage();
1616
- }
1617
- if (this.active === 'end') {
1618
- this.setEnd(this.round(this.end, this.step, 0));
1619
- this.endPercentage = this.endToPercentage();
1620
- }
1621
- this.click = false;
1622
- };
1623
- /**
1624
- * @param {?} event
1625
- * @return {?}
1626
- */
1627
- RangeSliderComponent.prototype.mouseDown = /**
1628
- * @param {?} event
1629
- * @return {?}
1630
- */
1631
- function (event) {
1632
- this.click = true;
1633
- };
1634
- /**
1635
- * @param {?} event
1636
- * @return {?}
1637
- */
1638
- RangeSliderComponent.prototype.onMouseMove = /**
1639
- * @param {?} event
1640
- * @return {?}
1641
- */
1642
- function (event) {
1643
- if (!this.active || !this.click) {
1644
- return;
1645
- }
1646
- event.preventDefault(); // Do not select text while sliding
1647
- // Do not select text while sliding
1648
- /** @type {?} */
1649
- var x = ((/** @type {?} */ (event))).x !== undefined ? ((/** @type {?} */ (event))).x : ((/** @type {?} */ (event))).targetTouches[0].pageX;
1650
- /** @type {?} */
1651
- var rect = this.elRef.nativeElement.getBoundingClientRect();
1652
- /** @type {?} */
1653
- var newPercentage = this.calcPercentage(x, rect.width, rect.left);
1654
- this.updateHandle(newPercentage);
1655
- };
1656
- /**
1657
- * @param {?} newPercentage
1658
- * @return {?}
1659
- */
1660
- RangeSliderComponent.prototype.updateHandle = /**
1661
- * @param {?} newPercentage
1662
- * @return {?}
1663
- */
1664
- function (newPercentage) {
1665
- if (this.active === 'start') {
1666
- this.startPercentage = newPercentage;
1667
- this.setStart(this.percentageToStart());
1668
- if (this.minimalDistanceNotRespected()) {
1669
- this.setStart(Number(this.end) - Number(this.minimalDistance));
1670
- this.startPercentage = this.startToPercentage();
1671
- }
1672
- }
1673
- if (this.active === 'end' && this.endPercentage) {
1674
- this.endPercentage = newPercentage;
1675
- this.setEnd(this.percentageToEnd());
1676
- if (this.minimalDistanceNotRespected()) {
1677
- this.setEnd(Number(this.start) + Number(this.minimalDistance));
1678
- this.endPercentage = this.endToPercentage();
1679
- }
1680
- }
1681
- };
1682
- // ---------- HELPERS ---------- //
1683
- // ---------- HELPERS ---------- //
1684
- /**
1685
- * @param {?} value
1686
- * @return {?}
1687
- */
1688
- RangeSliderComponent.prototype.setStart =
1689
- // ---------- HELPERS ---------- //
1690
- /**
1691
- * @param {?} value
1692
- * @return {?}
1693
- */
1694
- function (value) {
1695
- this.start = value;
1696
- if (this.end) {
1697
- this.propagateChange((/** @type {?} */ ({
1698
- start: this.start,
1699
- end: this.end,
1700
- })));
1701
- }
1702
- else {
1703
- this.propagateChange(this.start);
1704
- }
1705
- };
1706
- /**
1707
- * @param {?} value
1708
- * @return {?}
1709
- */
1710
- RangeSliderComponent.prototype.setEnd = /**
1711
- * @param {?} value
1712
- * @return {?}
1713
- */
1714
- function (value) {
1715
- this.end = value;
1716
- this.propagateChange((/** @type {?} */ ({
1717
- start: this.start,
1718
- end: this.end,
1719
- })));
1720
- };
1721
- /**
1722
- * @param {?} n
1723
- * @param {?} increment
1724
- * @param {?} offset
1725
- * @return {?}
1726
- */
1727
- RangeSliderComponent.prototype.round = /**
1728
- * @param {?} n
1729
- * @param {?} increment
1730
- * @param {?} offset
1731
- * @return {?}
1732
- */
1733
- function (n, increment, offset) {
1734
- if (increment > 0) {
1735
- return Math.round((n - offset) / increment) * increment + offset;
1736
- }
1737
- return n;
1738
- };
1739
- /**
1740
- * @return {?}
1741
- */
1742
- RangeSliderComponent.prototype.startToPercentage = /**
1743
- * @return {?}
1744
- */
1745
- function () {
1746
- return Math.round((this.start - this.min) / (this.max - this.min) * 100);
1747
- };
1748
- /**
1749
- * @return {?}
1750
- */
1751
- RangeSliderComponent.prototype.percentageToStart = /**
1752
- * @return {?}
1753
- */
1754
- function () {
1755
- return Math.round((this.startPercentage / 100) * (this.max - this.min) + Number(this.min));
1756
- };
1757
- /**
1758
- * @return {?}
1759
- */
1760
- RangeSliderComponent.prototype.endToPercentage = /**
1761
- * @return {?}
1762
- */
1763
- function () {
1764
- return Math.round((Number(this.end) - this.min) / (this.max - this.min) * 100);
1765
- };
1766
- /**
1767
- * @return {?}
1768
- */
1769
- RangeSliderComponent.prototype.percentageToEnd = /**
1770
- * @return {?}
1771
- */
1772
- function () {
1773
- return Math.round((this.endPercentage / 100) * (this.max - this.min) + Number(this.min));
1774
- };
1775
- /**
1776
- * @return {?}
1777
- */
1778
- RangeSliderComponent.prototype.minimalDistanceNotRespected = /**
1779
- * @return {?}
1780
- */
1781
- function () {
1782
- return this.minimalDistance >= 0 && this.end && this.start > Number(this.end) - this.minimalDistance;
1783
- };
1784
- /**
1785
- * @param {?} mouseX
1786
- * @param {?} width
1787
- * @param {?} offsetLeft
1788
- * @return {?}
1789
- */
1790
- RangeSliderComponent.prototype.calcPercentage = /**
1791
- * @param {?} mouseX
1792
- * @param {?} width
1793
- * @param {?} offsetLeft
1794
- * @return {?}
1795
- */
1796
- function (mouseX, width, offsetLeft) {
1797
- /** @type {?} */
1798
- var mousePos = mouseX - offsetLeft;
1799
- /** @type {?} */
1800
- var newPercentage = Math.round((mousePos / width) * 100);
1801
- if (newPercentage > 100) {
1802
- newPercentage = 100;
1803
- }
1804
- if (newPercentage < 0) {
1805
- newPercentage = 0;
1806
- }
1807
- return newPercentage;
1808
- };
1809
- RangeSliderComponent.decorators = [
1810
- { type: core.Component, args: [{
1811
- selector: 'aui-range-slider',
1812
- 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",
1813
- providers: [
1814
- {
1815
- provide: forms.NG_VALUE_ACCESSOR,
1816
- useExisting: core.forwardRef((/**
1817
- * @return {?}
1818
- */
1819
- function () { return RangeSliderComponent; })),
1820
- // tslint:disable-line
1821
- multi: true,
1822
- },
1823
- ],
1824
- styles: [":host{display:block;position:relative}:host.is-disabled{cursor:not-allowed}:host.is-disabled .m-range-slider__handle:hover{cursor:not-allowed}"]
1825
- }] }
1826
- ];
1827
- /** @nocollapse */
1828
- RangeSliderComponent.ctorParameters = function () { return [
1829
- { type: core.ElementRef }
1830
- ]; };
1831
- RangeSliderComponent.propDecorators = {
1832
- coreBranding: [{ type: core.HostBinding, args: ['class.m-range-slider',] }],
1833
- min: [{ type: core.Input }],
1834
- max: [{ type: core.Input }],
1835
- minimalDistance: [{ type: core.Input }],
1836
- step: [{ type: core.Input }],
1837
- labelBefore: [{ type: core.Input }],
1838
- labelAfter: [{ type: core.Input }],
1839
- disabledClass: [{ type: core.HostBinding, args: ['class.is-disabled',] }],
1840
- onKeyDown: [{ type: core.HostListener, args: ['document:keydown', ['$event'],] }],
1841
- onMouseUp: [{ type: core.HostListener, args: ['touchend', ['$event'],] }, { type: core.HostListener, args: ['mouseup', ['$event'],] }],
1842
- mouseDown: [{ type: core.HostListener, args: ['touchstart', ['$event'],] }, { type: core.HostListener, args: ['mousedown', ['$event'],] }],
1843
- onMouseMove: [{ type: core.HostListener, args: ['touchmove', ['$event'],] }, { type: core.HostListener, args: ['mousemove', ['$event'],] }]
1844
- };
1845
- return RangeSliderComponent;
1846
- }());
1847
- if (false) {
1848
- /** @type {?} */
1849
- RangeSliderComponent.prototype.coreBranding;
1850
- /** @type {?} */
1851
- RangeSliderComponent.prototype.min;
1852
- /** @type {?} */
1853
- RangeSliderComponent.prototype.max;
1854
- /** @type {?} */
1855
- RangeSliderComponent.prototype.minimalDistance;
1856
- /** @type {?} */
1857
- RangeSliderComponent.prototype.step;
1858
- /** @type {?} */
1859
- RangeSliderComponent.prototype.labelBefore;
1860
- /** @type {?} */
1861
- RangeSliderComponent.prototype.labelAfter;
1862
- /** @type {?} */
1863
- RangeSliderComponent.prototype.start;
1864
- /** @type {?} */
1865
- RangeSliderComponent.prototype.end;
1866
- /** @type {?} */
1867
- RangeSliderComponent.prototype.steps;
1868
- /** @type {?} */
1869
- RangeSliderComponent.prototype.startPercentage;
1870
- /** @type {?} */
1871
- RangeSliderComponent.prototype.endPercentage;
1872
- /** @type {?} */
1873
- RangeSliderComponent.prototype.active;
1874
- /** @type {?} */
1875
- RangeSliderComponent.prototype.isDisabled;
1876
- /** @type {?} */
1877
- RangeSliderComponent.prototype.hasFocus;
1878
- /** @type {?} */
1879
- RangeSliderComponent.prototype.click;
1880
- /** @type {?} */
1881
- RangeSliderComponent.prototype.propagateChange;
1882
- /**
1883
- * @type {?}
1884
- * @private
1885
- */
1886
- RangeSliderComponent.prototype.elRef;
1887
- }
1888
-
1889
- /**
1890
- * @fileoverview added by tsickle
1891
- * Generated from: lib/range-slider/range-slider.module.ts
1892
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1893
- */
1894
- var RangeSliderModule = /** @class */ (function () {
1895
- function RangeSliderModule() {
1896
- }
1897
- RangeSliderModule.decorators = [
1898
- { type: core.NgModule, args: [{
1899
- imports: [
1900
- common.CommonModule,
1901
- forms.FormsModule,
1902
- ],
1903
- declarations: [
1904
- RangeSliderComponent,
1905
- ],
1906
- exports: [
1907
- RangeSliderComponent,
1908
- ],
1909
- },] }
1910
- ];
1911
- return RangeSliderModule;
1912
- }());
1913
-
1914
- /**
1915
- * @fileoverview added by tsickle
1916
- * Generated from: lib/range-slider/public-api.ts
1917
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1918
- */
1919
-
1920
- /**
1921
- * @fileoverview added by tsickle
1922
- * Generated from: lib/search-filter/components/search-filter/search-filter.component.ts
1923
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1924
- */
1925
- var SearchFilterComponent = /** @class */ (function () {
1926
- function SearchFilterComponent() {
1927
- this.flyoutSize = ngxFlyout.FlyoutSize.Small;
1928
- this.label = 'Filter';
1929
- this.labelDeselect = 'Alles deselecteren';
1930
- this.labelResults = 'Resultaten';
1931
- this.labelNoResults = 'Geen resultaten gevonden.';
1932
- this.choices = [];
1933
- this.placeholder = 'Zoeken';
1934
- this.inputDelay = 150;
1935
- this.showAllByDefault = false;
1936
- this.size = 'default';
1937
- this.search = new core.EventEmitter();
1938
- this.query = '';
1939
- this.selectedItems = [];
1940
- this.filteredChoices = [];
1941
- this.loading = false;
1942
- this.isDisabled = false;
1943
- this.updateModel = (/**
1944
- * @return {?}
1945
- */
1946
- function () {
1947
- });
1948
- this.filterDataFromSearch = lodashEs.debounce(this.filterData.bind(this), this.inputDelay);
1949
- }
1950
- /**
1951
- * @param {?} value
1952
- * @return {?}
1953
- */
1954
- SearchFilterComponent.prototype.writeValue = /**
1955
- * @param {?} value
1956
- * @return {?}
1957
- */
1958
- function (value) {
1959
- this.selectedItems = Array.isArray(value) ? value : [];
1960
- };
1961
- /**
1962
- * @param {?} onChange
1963
- * @return {?}
1964
- */
1965
- SearchFilterComponent.prototype.registerOnChange = /**
1966
- * @param {?} onChange
1967
- * @return {?}
1968
- */
1969
- function (onChange) {
1970
- this.updateModel = onChange;
1971
- };
1972
- /**
1973
- * @return {?}
1974
- */
1975
- SearchFilterComponent.prototype.registerOnTouched = /**
1976
- * @return {?}
1977
- */
1978
- function () {
1979
- };
1980
- /**
1981
- * @param {?} isDisabled
1982
- * @return {?}
1983
- */
1984
- SearchFilterComponent.prototype.setDisabledState = /**
1985
- * @param {?} isDisabled
1986
- * @return {?}
1987
- */
1988
- function (isDisabled) {
1989
- this.isDisabled = isDisabled;
1990
- };
1991
- /**
1992
- * @return {?}
1993
- */
1994
- SearchFilterComponent.prototype.ngOnInit = /**
1995
- * @return {?}
1996
- */
1997
- function () {
1998
- if (this.showAllByDefault) {
1999
- this.filterData();
2000
- }
2001
- };
2002
- /**
2003
- * @param {?} changes
2004
- * @return {?}
2005
- */
2006
- SearchFilterComponent.prototype.ngOnChanges = /**
2007
- * @param {?} changes
2008
- * @return {?}
2009
- */
2010
- function (changes) {
2011
- /** @type {?} */
2012
- var choices = lodashEs.get(changes, 'choices.currentValue', null);
2013
- if (!choices) {
2014
- return;
2015
- }
2016
- if (this.remote) {
2017
- this.filteredChoices = __spread(choices);
2018
- this.loading = false;
2019
- }
2020
- else {
2021
- this.filterData();
2022
- }
2023
- };
2024
- /**
2025
- * @return {?}
2026
- */
2027
- SearchFilterComponent.prototype.filterData = /**
2028
- * @return {?}
2029
- */
2030
- function () {
2031
- if (this.remote) {
2032
- this.loading = true;
2033
- return this.search.emit(this.query);
2034
- }
2035
- this.filterChoices();
2036
- };
2037
- /**
2038
- * @return {?}
2039
- */
2040
- SearchFilterComponent.prototype.clear = /**
2041
- * @return {?}
2042
- */
2043
- function () {
2044
- this.selectedItems = [];
2045
- this.query = '';
2046
- this.filterData();
2047
- this.updateModel(this.selectedItems);
2048
- };
2049
- /**
2050
- * @param {?} choice
2051
- * @return {?}
2052
- */
2053
- SearchFilterComponent.prototype.toggleSelected = /**
2054
- * @param {?} choice
2055
- * @return {?}
2056
- */
2057
- function (choice) {
2058
- /** @type {?} */
2059
- var selected = this.selectedItems.indexOf(choice);
2060
- if (selected < 0) {
2061
- this.selectedItems = this.selectedItems.concat(choice);
2062
- }
2063
- else {
2064
- this.selectedItems = __spread(this.selectedItems.slice(0, selected), this.selectedItems.slice(selected + 1));
2065
- }
2066
- this.updateModel(this.selectedItems);
2067
- };
2068
- /**
2069
- * @private
2070
- * @return {?}
2071
- */
2072
- SearchFilterComponent.prototype.filterChoices = /**
2073
- * @private
2074
- * @return {?}
2075
- */
2076
- function () {
2077
- var _this = this;
2078
- this.filteredChoices = this.choices.filter((/**
2079
- * @param {?} choice
2080
- * @return {?}
2081
- */
2082
- function (choice) {
2083
- return (_this.selectedItems.indexOf(choice.value) < 0 &&
2084
- choice.label.toLowerCase().indexOf(_this.query.toLowerCase()) >= 0);
2085
- }));
2086
- };
2087
- SearchFilterComponent.decorators = [
2088
- { type: core.Component, args: [{
2089
- selector: 'aui-search-filter',
2090
- 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",
2091
- providers: [{
2092
- provide: forms.NG_VALUE_ACCESSOR,
2093
- useExisting: core.forwardRef((/**
2094
- * @return {?}
2095
- */
2096
- function () { return SearchFilterComponent; })),
2097
- // tslint:disable-line:no-forward-ref
2098
- multi: true,
2099
- }]
2100
- }] }
2101
- ];
2102
- /** @nocollapse */
2103
- SearchFilterComponent.ctorParameters = function () { return []; };
2104
- SearchFilterComponent.propDecorators = {
2105
- id: [{ type: core.Input }],
2106
- name: [{ type: core.Input }],
2107
- flyoutSize: [{ type: core.Input }],
2108
- flyoutAlign: [{ type: core.Input }],
2109
- label: [{ type: core.Input }],
2110
- labelDeselect: [{ type: core.Input }],
2111
- labelResults: [{ type: core.Input }],
2112
- labelNoResults: [{ type: core.Input }],
2113
- choices: [{ type: core.Input }],
2114
- remote: [{ type: core.Input }],
2115
- placeholder: [{ type: core.Input }],
2116
- inputDelay: [{ type: core.Input }],
2117
- showAllByDefault: [{ type: core.Input }],
2118
- size: [{ type: core.Input }],
2119
- search: [{ type: core.Output }]
2120
- };
2121
- return SearchFilterComponent;
2122
- }());
2123
- if (false) {
2124
- /** @type {?} */
2125
- SearchFilterComponent.prototype.id;
2126
- /** @type {?} */
2127
- SearchFilterComponent.prototype.name;
2128
- /** @type {?} */
2129
- SearchFilterComponent.prototype.flyoutSize;
2130
- /** @type {?} */
2131
- SearchFilterComponent.prototype.flyoutAlign;
2132
- /** @type {?} */
2133
- SearchFilterComponent.prototype.label;
2134
- /** @type {?} */
2135
- SearchFilterComponent.prototype.labelDeselect;
2136
- /** @type {?} */
2137
- SearchFilterComponent.prototype.labelResults;
2138
- /** @type {?} */
2139
- SearchFilterComponent.prototype.labelNoResults;
2140
- /** @type {?} */
2141
- SearchFilterComponent.prototype.choices;
2142
- /** @type {?} */
2143
- SearchFilterComponent.prototype.remote;
2144
- /** @type {?} */
2145
- SearchFilterComponent.prototype.placeholder;
2146
- /** @type {?} */
2147
- SearchFilterComponent.prototype.inputDelay;
2148
- /** @type {?} */
2149
- SearchFilterComponent.prototype.showAllByDefault;
2150
- /** @type {?} */
2151
- SearchFilterComponent.prototype.size;
2152
- /** @type {?} */
2153
- SearchFilterComponent.prototype.search;
2154
- /** @type {?} */
2155
- SearchFilterComponent.prototype.query;
2156
- /** @type {?} */
2157
- SearchFilterComponent.prototype.selectedItems;
2158
- /** @type {?} */
2159
- SearchFilterComponent.prototype.filteredChoices;
2160
- /** @type {?} */
2161
- SearchFilterComponent.prototype.loading;
2162
- /** @type {?} */
2163
- SearchFilterComponent.prototype.isDisabled;
2164
- /** @type {?} */
2165
- SearchFilterComponent.prototype.filterDataFromSearch;
2166
- /** @type {?} */
2167
- SearchFilterComponent.prototype.updateModel;
2168
- }
2169
-
2170
- /**
2171
- * @fileoverview added by tsickle
2172
- * Generated from: lib/search-filter/search-filter.module.ts
2173
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2174
- */
2175
- var SearchFilterModule = /** @class */ (function () {
2176
- function SearchFilterModule() {
2177
- }
2178
- SearchFilterModule.decorators = [
2179
- { type: core.NgModule, args: [{
2180
- imports: [
2181
- common.CommonModule,
2182
- ngxFlyout.FlyoutModule,
2183
- forms.FormsModule,
2184
- ngxIcon.IconModule,
2185
- ],
2186
- declarations: [
2187
- SearchFilterComponent,
2188
- ],
2189
- exports: [
2190
- SearchFilterComponent,
2191
- ],
2192
- },] }
2193
- ];
2194
- return SearchFilterModule;
2195
- }());
2196
-
2197
- /**
2198
- * @fileoverview added by tsickle
2199
- * Generated from: lib/search-filter/public-api.ts
2200
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2201
- */
2202
-
2203
- /**
2204
- * @fileoverview added by tsickle
2205
- * Generated from: lib/timepicker/classes/timepicker.validators.ts
2206
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2207
- */
2208
- var TimePickerValidators = /** @class */ (function () {
2209
- function TimePickerValidators() {
2210
- }
2211
- // time `hh:mm` 24h format
2212
- // time `hh:mm` 24h format
2213
- /**
2214
- * @param {?} time
2215
- * @return {?}
2216
- */
2217
- TimePickerValidators.minTime =
2218
- // time `hh:mm` 24h format
2219
- /**
2220
- * @param {?} time
2221
- * @return {?}
2222
- */
2223
- function (time) {
2224
- /** @type {?} */
2225
- var validator = (/**
2226
- * @param {?} control
2227
- * @return {?}
2228
- */
2229
- function (control) {
2230
- /** @type {?} */
2231
- var splittedControlValue = control.value.split(':');
2232
- /** @type {?} */
2233
- var controlHours = parseInt(splittedControlValue[0], 10);
2234
- /** @type {?} */
2235
- var controlMinutes = parseInt(splittedControlValue[1], 10);
2236
- /** @type {?} */
2237
- var splittedMinTime = time.split(':');
2238
- /** @type {?} */
2239
- var minHours = parseInt(splittedMinTime[0], 10);
2240
- /** @type {?} */
2241
- var minMinutes = parseInt(splittedMinTime[1], 10);
2242
- // Don't throw error --> use Validator.required
2243
- if (isNaN(controlHours) || isNaN(controlMinutes) || isNaN(minHours) || isNaN(minMinutes)) {
2244
- return null;
2245
- }
2246
- if (minHours < controlHours) {
2247
- return null;
2248
- }
2249
- if (minHours === controlHours && minMinutes <= controlMinutes) {
2250
- return null;
2251
- }
2252
- return { minTime: { value: control.value } };
2253
- });
2254
- return validator;
2255
- };
2256
- // time `hh:mm` 24h format
2257
- // time `hh:mm` 24h format
2258
- /**
2259
- * @param {?} time
2260
- * @return {?}
2261
- */
2262
- TimePickerValidators.maxTime =
2263
- // time `hh:mm` 24h format
2264
- /**
2265
- * @param {?} time
2266
- * @return {?}
2267
- */
2268
- function (time) {
2269
- /** @type {?} */
2270
- var validator = (/**
2271
- * @param {?} control
2272
- * @return {?}
2273
- */
2274
- function (control) {
2275
- /** @type {?} */
2276
- var splittedControlValue = control.value.split(':');
2277
- /** @type {?} */
2278
- var controlHours = parseInt(splittedControlValue[0], 10);
2279
- /** @type {?} */
2280
- var controlMinutes = parseInt(splittedControlValue[1], 10);
2281
- /** @type {?} */
2282
- var splittedMinTime = time.split(':');
2283
- /** @type {?} */
2284
- var maxHours = parseInt(splittedMinTime[0], 10);
2285
- /** @type {?} */
2286
- var maxMinutes = parseInt(splittedMinTime[1], 10);
2287
- // Don't throw error --> use Validator.required
2288
- if (isNaN(controlHours) || isNaN(controlMinutes) || isNaN(maxHours) || isNaN(maxMinutes)) {
2289
- return null;
2290
- }
2291
- if (maxHours > controlHours) {
2292
- return null;
2293
- }
2294
- if (maxHours === controlHours && maxMinutes >= controlMinutes) {
2295
- return null;
2296
- }
2297
- return { maxTime: { value: control.value } };
2298
- });
2299
- return validator;
2300
- };
2301
- return TimePickerValidators;
2302
- }());
2303
-
2304
- /**
2305
- * @fileoverview added by tsickle
2306
- * Generated from: lib/timepicker/types/timepicker.types.ts
2307
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2308
- */
2309
- /** @enum {string} */
2310
- var TimepickerInputSize = {
2311
- Auto: "auto",
2312
- Small: "small",
2313
- Large: "large",
2314
- };
2315
-
2316
- /**
2317
- * @fileoverview added by tsickle
2318
- * Generated from: lib/timepicker/components/timepicker/timepicker.component.ts
2319
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2320
- */
2321
- var TimepickerComponent = /** @class */ (function () {
2322
- function TimepickerComponent(formBuilder, renderer) {
2323
- this.formBuilder = formBuilder;
2324
- this.renderer = renderer;
2325
- this.id = 'aui-timepicker-' + Math.random().toString(36).substring(2);
2326
- this.hoursPlaceholder = 'uu';
2327
- this.minutesPlaceholder = 'mm';
2328
- this.hasError = false;
2329
- this.size = TimepickerInputSize.Auto;
2330
- this.ariaLabelHours = 'Uur';
2331
- this.ariaLabelMinutes = 'Minuten';
2332
- this.shouldUseFallback = false;
2333
- this.minutes = [];
2334
- this.hours = [];
2335
- this.timeControl = new forms.FormControl();
2336
- this.componentDestroyed$ = new rxjs.Subject();
2337
- }
2338
- /**
2339
- * @return {?}
2340
- */
2341
- TimepickerComponent.prototype.ngOnInit = /**
2342
- * @return {?}
2343
- */
2344
- function () {
2345
- var _this = this;
2346
- this.shouldUseFallback = this.supportsNativeTimepicker();
2347
- this.minutes = this.getMinutes();
2348
- this.hours = this.getHours();
2349
- this.fallbackForm = this.formBuilder.group({
2350
- hours: null,
2351
- minutes: null,
2352
- });
2353
- this.fallbackForm.valueChanges
2354
- .pipe(operators.takeUntil(this.componentDestroyed$))
2355
- .subscribe((/**
2356
- * @param {?} formData
2357
- * @return {?}
2358
- */
2359
- function (formData) {
2360
- if (formData.hours && formData.minutes) {
2361
- _this.updateModel(formData.hours + ":" + formData.minutes);
2362
- }
2363
- else {
2364
- _this.updateModel('');
2365
- }
2366
- }));
2367
- this.timeControl.valueChanges
2368
- .pipe(operators.takeUntil(this.componentDestroyed$))
2369
- .subscribe((/**
2370
- * @param {?} time
2371
- * @return {?}
2372
- */
2373
- function (time) {
2374
- _this.updateModel(time);
2375
- }));
2376
- };
2377
- /**
2378
- * @return {?}
2379
- */
2380
- TimepickerComponent.prototype.ngOnDestroy = /**
2381
- * @return {?}
2382
- */
2383
- function () {
2384
- this.componentDestroyed$.next(true);
2385
- this.componentDestroyed$.complete();
2386
- };
2387
- /**
2388
- * @param {?} value
2389
- * @return {?}
2390
- */
2391
- TimepickerComponent.prototype.writeValue = /**
2392
- * @param {?} value
2393
- * @return {?}
2394
- */
2395
- function (value) {
2396
- this.timeControl.setValue(value, { emitEvent: false });
2397
- if (value) {
2398
- /** @type {?} */
2399
- var splitted = value.split(':');
2400
- this.fallbackForm.get('hours').setValue(splitted[0], { emitEvent: false });
2401
- this.fallbackForm.get('minutes').setValue(splitted[1], { emitEvent: false });
2402
- }
2403
- };
2404
- /**
2405
- * @param {?} onChange
2406
- * @return {?}
2407
- */
2408
- TimepickerComponent.prototype.registerOnChange = /**
2409
- * @param {?} onChange
2410
- * @return {?}
2411
- */
2412
- function (onChange) {
2413
- this.updateModel = onChange;
2414
- };
2415
- /**
2416
- * @return {?}
2417
- */
2418
- TimepickerComponent.prototype.registerOnTouched = /**
2419
- * @return {?}
2420
- */
2421
- function () {
2422
- };
2423
- /**
2424
- * @param {?} isDisabled
2425
- * @return {?}
2426
- */
2427
- TimepickerComponent.prototype.setDisabledState = /**
2428
- * @param {?} isDisabled
2429
- * @return {?}
2430
- */
2431
- function (isDisabled) {
2432
- if (isDisabled) {
2433
- this.timeControl.disable({ emitEvent: false });
2434
- this.fallbackForm.disable({ emitEvent: false });
2435
- }
2436
- else {
2437
- this.timeControl.enable({ emitEvent: false });
2438
- this.fallbackForm.enable({ emitEvent: false });
2439
- }
2440
- };
2441
- /**
2442
- * @private
2443
- * @return {?}
2444
- */
2445
- TimepickerComponent.prototype.supportsNativeTimepicker = /**
2446
- * @private
2447
- * @return {?}
2448
- */
2449
- function () {
2450
- /** @type {?} */
2451
- var element = this.renderer.createElement('input');
2452
- element.type = 'time';
2453
- return element.type === 'text';
2454
- };
2455
- /**
2456
- * @private
2457
- * @return {?}
2458
- */
2459
- TimepickerComponent.prototype.getMinutes = /**
2460
- * @private
2461
- * @return {?}
2462
- */
2463
- function () {
2464
- return Array(60).fill('').map((/**
2465
- * @param {?} value
2466
- * @param {?} index
2467
- * @return {?}
2468
- */
2469
- function (value, index) {
2470
- return jsDateUtils.DateHelper.addLeadingZero(index);
2471
- }));
2472
- };
2473
- /**
2474
- * @private
2475
- * @return {?}
2476
- */
2477
- TimepickerComponent.prototype.getHours = /**
2478
- * @private
2479
- * @return {?}
2480
- */
2481
- function () {
2482
- return Array(24).fill('').map((/**
2483
- * @param {?} value
2484
- * @param {?} index
2485
- * @return {?}
2486
- */
2487
- function (value, index) {
2488
- return jsDateUtils.DateHelper.addLeadingZero(index);
2489
- }));
2490
- };
2491
- TimepickerComponent.decorators = [
2492
- { type: core.Component, args: [{
2493
- selector: 'aui-timepicker',
2494
- 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",
2495
- changeDetection: core.ChangeDetectionStrategy.OnPush,
2496
- providers: [{
2497
- provide: forms.NG_VALUE_ACCESSOR,
2498
- useExisting: core.forwardRef((/**
2499
- * @return {?}
2500
- */
2501
- function () { return TimepickerComponent; })),
2502
- // tslint:disable-line:no-forward-ref
2503
- multi: true,
2504
- }],
2505
- styles: [":host{display:block}"]
2506
- }] }
2507
- ];
2508
- /** @nocollapse */
2509
- TimepickerComponent.ctorParameters = function () { return [
2510
- { type: forms.FormBuilder },
2511
- { type: core.Renderer2 }
2512
- ]; };
2513
- TimepickerComponent.propDecorators = {
2514
- id: [{ type: core.Input }],
2515
- hoursPlaceholder: [{ type: core.Input }],
2516
- minutesPlaceholder: [{ type: core.Input }],
2517
- hasError: [{ type: core.Input }],
2518
- size: [{ type: core.Input }],
2519
- ariaLabelHours: [{ type: core.Input }],
2520
- ariaLabelMinutes: [{ type: core.Input }]
2521
- };
2522
- return TimepickerComponent;
2523
- }());
2524
- if (false) {
2525
- /** @type {?} */
2526
- TimepickerComponent.prototype.id;
2527
- /** @type {?} */
2528
- TimepickerComponent.prototype.hoursPlaceholder;
2529
- /** @type {?} */
2530
- TimepickerComponent.prototype.minutesPlaceholder;
2531
- /** @type {?} */
2532
- TimepickerComponent.prototype.hasError;
2533
- /** @type {?} */
2534
- TimepickerComponent.prototype.size;
2535
- /** @type {?} */
2536
- TimepickerComponent.prototype.ariaLabelHours;
2537
- /** @type {?} */
2538
- TimepickerComponent.prototype.ariaLabelMinutes;
2539
- /** @type {?} */
2540
- TimepickerComponent.prototype.shouldUseFallback;
2541
- /** @type {?} */
2542
- TimepickerComponent.prototype.minutes;
2543
- /** @type {?} */
2544
- TimepickerComponent.prototype.hours;
2545
- /** @type {?} */
2546
- TimepickerComponent.prototype.updateModel;
2547
- /** @type {?} */
2548
- TimepickerComponent.prototype.timeControl;
2549
- /** @type {?} */
2550
- TimepickerComponent.prototype.fallbackForm;
2551
- /**
2552
- * @type {?}
2553
- * @private
2554
- */
2555
- TimepickerComponent.prototype.componentDestroyed$;
2556
- /**
2557
- * @type {?}
2558
- * @private
2559
- */
2560
- TimepickerComponent.prototype.formBuilder;
2561
- /**
2562
- * @type {?}
2563
- * @private
2564
- */
2565
- TimepickerComponent.prototype.renderer;
2566
- }
2567
-
2568
- /**
2569
- * @fileoverview added by tsickle
2570
- * Generated from: lib/timepicker/timepicker.module.ts
2571
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2572
- */
2573
- var TimepickerModule = /** @class */ (function () {
2574
- function TimepickerModule() {
2575
- }
2576
- TimepickerModule.decorators = [
2577
- { type: core.NgModule, args: [{
2578
- imports: [
2579
- forms.ReactiveFormsModule,
2580
- common.CommonModule,
2581
- ngxIcon.IconModule,
2582
- ],
2583
- declarations: [
2584
- TimepickerComponent,
2585
- ],
2586
- exports: [
2587
- TimepickerComponent,
2588
- ],
2589
- providers: [],
2590
- },] }
2591
- ];
2592
- return TimepickerModule;
2593
- }());
2594
-
2595
- /**
2596
- * @fileoverview added by tsickle
2597
- * Generated from: lib/timepicker/public-api.ts
2598
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2599
- */
2600
-
2601
- /**
2602
- * @fileoverview added by tsickle
2603
- * Generated from: lib/upload/upload.conf.ts
2604
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2605
- */
2606
- /** @type {?} */
2607
- var UPLOAD_OPTIONS_DEFAULT = {
2608
- allowedMimeTypes: [],
2609
- allowedFileTypes: [],
2610
- autoUpload: false,
2611
- maxFileSize: 0,
2612
- // 0 is infinite
2613
- queueLimit: 0,
2614
- // 0 is infinite
2615
- type: 'drop',
2616
- url: '',
2617
- };
2618
- /** @type {?} */
2619
- var UPLOAD_VALIDATION_MESSAGES = new core.InjectionToken('uploadValidationMessages');
2620
-
2621
- /**
2622
- * @fileoverview added by tsickle
2623
- * Generated from: lib/upload/classes/uploader.class.ts
2624
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2625
- */
2626
- var Uploader = /** @class */ (function () {
2627
- function Uploader(options) {
2628
- this.options = UPLOAD_OPTIONS_DEFAULT;
2629
- this.setOptions(options);
2630
- }
2631
- /**
2632
- * @param {?} options
2633
- * @return {?}
2634
- */
2635
- Uploader.prototype.setOptions = /**
2636
- * @param {?} options
2637
- * @return {?}
2638
- */
2639
- function (options) {
2640
- this.options = Object.assign({}, this.options, options);
2641
- };
2642
- /**
2643
- * @param {?} files
2644
- * @return {?}
2645
- */
2646
- Uploader.prototype.uploadFiles = /**
2647
- * @param {?} files
2648
- * @return {?}
2649
- */
2650
- function (files) {
2651
- var _this = this;
2652
- /** @type {?} */
2653
- var formData = this.filesToFormData(files);
2654
- return new rxjs.Observable((/**
2655
- * @param {?} observer
2656
- * @return {?}
2657
- */
2658
- function (observer) {
2659
- /** @type {?} */
2660
- var xhr = new XMLHttpRequest();
2661
- // Progress callback
2662
- xhr.upload.addEventListener('progress', (/**
2663
- * @param {?} e
2664
- * @return {?}
2665
- */
2666
- function (e) {
2667
- if (e.lengthComputable) {
2668
- /** @type {?} */
2669
- var percentComplete = e.loaded / e.total;
2670
- observer.next({
2671
- progress: percentComplete,
2672
- data: null,
2673
- });
2674
- }
2675
- }));
2676
- // Complete callback
2677
- xhr.onload = (/**
2678
- * @return {?}
2679
- */
2680
- function () {
2681
- observer.next({
2682
- progress: 1,
2683
- data: xhr.response,
2684
- });
2685
- // observer.complete();
2686
- });
2687
- // Do request
2688
- xhr.responseType = 'json';
2689
- xhr.open('post', _this.options.url);
2690
- xhr.send(formData);
2691
- }));
2692
- };
2693
- /**
2694
- * @param {?} files
2695
- * @return {?}
2696
- */
2697
- Uploader.prototype.validateFiles = /**
2698
- * @param {?} files
2699
- * @return {?}
2700
- */
2701
- function (files) {
2702
- var e_1, _a;
2703
- /** @type {?} */
2704
- var validFiles = [];
2705
- /** @type {?} */
2706
- var invalidFiles = [];
2707
- if (files.length > 0) {
2708
- try {
2709
- for (var files_1 = __values(files), files_1_1 = files_1.next(); !files_1_1.done; files_1_1 = files_1.next()) {
2710
- var file = files_1_1.value;
2711
- /** @type {?} */
2712
- var errors = [];
2713
- if (!this.validateFileType(file)) {
2714
- errors.push('INVALID_FILE_TYPE');
2715
- }
2716
- if (!this.validateFileSize(file)) {
2717
- errors.push('INVALID_FILE_SIZE');
2718
- }
2719
- if (!this.validateMimeType(file)) {
2720
- errors.push('INVALID_MIME_TYPE');
2721
- }
2722
- if (errors.length === 0) {
2723
- validFiles.push(file);
2724
- }
2725
- else {
2726
- invalidFiles.push({
2727
- reasons: errors,
2728
- file: file,
2729
- });
2730
- }
2731
- }
2732
- }
2733
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2734
- finally {
2735
- try {
2736
- if (files_1_1 && !files_1_1.done && (_a = files_1.return)) _a.call(files_1);
2737
- }
2738
- finally { if (e_1) throw e_1.error; }
2739
- }
2740
- }
2741
- return {
2742
- validFiles: validFiles,
2743
- invalidFiles: invalidFiles,
2744
- };
2745
- };
2746
- /**
2747
- * @protected
2748
- * @param {?} files
2749
- * @return {?}
2750
- */
2751
- Uploader.prototype.filesToFormData = /**
2752
- * @protected
2753
- * @param {?} files
2754
- * @return {?}
2755
- */
2756
- function (files) {
2757
- var e_2, _a;
2758
- /** @type {?} */
2759
- var formData = new FormData();
2760
- if (!this.options.url || this.options.url === '') {
2761
- throw new Error('Define the upload url.');
2762
- }
2763
- try {
2764
- for (var files_2 = __values(files), files_2_1 = files_2.next(); !files_2_1.done; files_2_1 = files_2.next()) {
2765
- var file = files_2_1.value;
2766
- formData.append('file', file);
2767
- }
2768
- }
2769
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
2770
- finally {
2771
- try {
2772
- if (files_2_1 && !files_2_1.done && (_a = files_2.return)) _a.call(files_2);
2773
- }
2774
- finally { if (e_2) throw e_2.error; }
2775
- }
2776
- return formData;
2777
- };
2778
- /**
2779
- * @protected
2780
- * @param {?} file
2781
- * @return {?}
2782
- */
2783
- Uploader.prototype.getFileExtension = /**
2784
- * @protected
2785
- * @param {?} file
2786
- * @return {?}
2787
- */
2788
- function (file) {
2789
- return file.name.split('.')[file.name.split('.').length - 1];
2790
- };
2791
- /**
2792
- * @protected
2793
- * @param {?} file
2794
- * @return {?}
2795
- */
2796
- Uploader.prototype.validateFileType = /**
2797
- * @protected
2798
- * @param {?} file
2799
- * @return {?}
2800
- */
2801
- function (file) {
2802
- /** @type {?} */
2803
- var allowedFileTypes = this.options.allowedFileTypes;
2804
- /** @type {?} */
2805
- var ext = this.getFileExtension(file);
2806
- // Filter defined?
2807
- if (!Array.isArray(allowedFileTypes) || allowedFileTypes.length === 0) {
2808
- return true;
2809
- }
2810
- // Make allowedFileTypes case insensitive
2811
- /** @type {?} */
2812
- var toUpper = (/**
2813
- * @param {?} x
2814
- * @return {?}
2815
- */
2816
- function (x) { return x.toUpperCase(); });
2817
- /** @type {?} */
2818
- var allowedFileTypesToUpper = allowedFileTypes.map(toUpper);
2819
- return allowedFileTypesToUpper.lastIndexOf(ext.toUpperCase()) !== -1;
2820
- };
2821
- /**
2822
- * @protected
2823
- * @param {?} file
2824
- * @return {?}
2825
- */
2826
- Uploader.prototype.validateFileSize = /**
2827
- * @protected
2828
- * @param {?} file
2829
- * @return {?}
2830
- */
2831
- function (file) {
2832
- /** @type {?} */
2833
- var maxFileSize = this.options.maxFileSize;
2834
- // Filter defined?
2835
- if (!maxFileSize || maxFileSize === 0) {
2836
- return true;
2837
- }
2838
- return maxFileSize > file.size;
2839
- };
2840
- /**
2841
- * @protected
2842
- * @param {?} file
2843
- * @return {?}
2844
- */
2845
- Uploader.prototype.validateMimeType = /**
2846
- * @protected
2847
- * @param {?} file
2848
- * @return {?}
2849
- */
2850
- function (file) {
2851
- /** @type {?} */
2852
- var allowedMimeTypes = this.options.allowedMimeTypes;
2853
- // Filter defined?
2854
- if (!Array.isArray(allowedMimeTypes) || allowedMimeTypes.length === 0) {
2855
- return true;
2856
- }
2857
- return allowedMimeTypes.lastIndexOf(file.type) !== -1;
2858
- };
2859
- return Uploader;
2860
- }());
2861
- if (false) {
2862
- /** @type {?} */
2863
- Uploader.prototype.options;
2864
- }
2865
-
2866
- /**
2867
- * @fileoverview added by tsickle
2868
- * Generated from: lib/upload/components/upload/upload.component.ts
2869
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2870
- */
2871
- var UploadComponent = /** @class */ (function () {
2872
- function UploadComponent() {
2873
- this.id = '';
2874
- this.accept = [];
2875
- this.capture = '';
2876
- this.ariaLabelRemove = 'Verwijder';
2877
- this.disabled = false;
2878
- this.multiple = true;
2879
- this.options = UPLOAD_OPTIONS_DEFAULT;
2880
- this.selectUploadedFiles = new core.EventEmitter();
2881
- this.uploadedFiles = [];
2882
- this.invalidFiles = [];
2883
- this.queuedFiles = [];
2884
- }
2885
- /**
2886
- * @return {?}
2887
- */
2888
- UploadComponent.prototype.ngOnInit = /**
2889
- * @return {?}
2890
- */
2891
- function () {
2892
- if (!this.id) {
2893
- this.ariaId = 'aui-upload-' + Math.random().toString(36).substring(2);
2894
- }
2895
- this.uploader = new Uploader(this.options);
2896
- };
2897
- /**
2898
- * @param {?} files
2899
- * @return {?}
2900
- */
2901
- UploadComponent.prototype.onUploadedFiles = /**
2902
- * @param {?} files
2903
- * @return {?}
2904
- */
2905
- function (files) {
2906
- this.uploadedFiles = this.uploadedFiles.concat(files);
2907
- this.selectUploadedFiles.emit(this.uploadedFiles);
2908
- };
2909
- /**
2910
- * @param {?} files
2911
- * @return {?}
2912
- */
2913
- UploadComponent.prototype.onInvalidFiles = /**
2914
- * @param {?} files
2915
- * @return {?}
2916
- */
2917
- function (files) {
2918
- this.invalidFiles = files;
2919
- };
2920
- /**
2921
- * @param {?} files
2922
- * @return {?}
2923
- */
2924
- UploadComponent.prototype.onQueuedFiles = /**
2925
- * @param {?} files
2926
- * @return {?}
2927
- */
2928
- function (files) {
2929
- this.queuedFiles = this.queuedFiles.concat(files);
2930
- };
2931
- UploadComponent.decorators = [
2932
- { type: core.Component, args: [{
2933
- selector: 'aui-upload',
2934
- 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",
2935
- styles: [".m-upload__button>.m-upload__input{display:none}"]
2936
- }] }
2937
- ];
2938
- UploadComponent.propDecorators = {
2939
- id: [{ type: core.Input }],
2940
- accept: [{ type: core.Input }],
2941
- capture: [{ type: core.Input }],
2942
- ariaLabelRemove: [{ type: core.Input }],
2943
- disabled: [{ type: core.Input }],
2944
- multiple: [{ type: core.Input }],
2945
- options: [{ type: core.Input }],
2946
- selectUploadedFiles: [{ type: core.Output }]
2947
- };
2948
- return UploadComponent;
2949
- }());
2950
- if (false) {
2951
- /** @type {?} */
2952
- UploadComponent.prototype.id;
2953
- /** @type {?} */
2954
- UploadComponent.prototype.accept;
2955
- /** @type {?} */
2956
- UploadComponent.prototype.capture;
2957
- /** @type {?} */
2958
- UploadComponent.prototype.ariaLabelRemove;
2959
- /** @type {?} */
2960
- UploadComponent.prototype.disabled;
2961
- /** @type {?} */
2962
- UploadComponent.prototype.multiple;
2963
- /** @type {?} */
2964
- UploadComponent.prototype.options;
2965
- /** @type {?} */
2966
- UploadComponent.prototype.selectUploadedFiles;
2967
- /** @type {?} */
2968
- UploadComponent.prototype.uploader;
2969
- /** @type {?} */
2970
- UploadComponent.prototype.ariaId;
2971
- /** @type {?} */
2972
- UploadComponent.prototype.uploadedFiles;
2973
- /** @type {?} */
2974
- UploadComponent.prototype.invalidFiles;
2975
- /** @type {?} */
2976
- UploadComponent.prototype.queuedFiles;
2977
- }
2978
-
2979
- /**
2980
- * @fileoverview added by tsickle
2981
- * Generated from: lib/upload/components/upload-input/upload-input.component.ts
2982
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2983
- */
2984
- var UploadInputComponent = /** @class */ (function () {
2985
- function UploadInputComponent() {
2986
- this.propagateChange = (/**
2987
- * @param {?} _
2988
- * @return {?}
2989
- */
2990
- function (_) { return undefined; });
2991
- }
2992
- /**
2993
- * @param {?} value
2994
- * @return {?}
2995
- */
2996
- UploadInputComponent.prototype.writeValue = /**
2997
- * @param {?} value
2998
- * @return {?}
2999
- */
3000
- function (value) {
3001
- };
3002
- /**
3003
- * @param {?} fn
3004
- * @return {?}
3005
- */
3006
- UploadInputComponent.prototype.registerOnChange = /**
3007
- * @param {?} fn
3008
- * @return {?}
3009
- */
3010
- function (fn) {
3011
- this.propagateChange = fn;
3012
- };
3013
- /**
3014
- * @return {?}
3015
- */
3016
- UploadInputComponent.prototype.registerOnTouched = /**
3017
- * @return {?}
3018
- */
3019
- function () {
3020
- };
3021
- /**
3022
- * @param {?} files
3023
- * @return {?}
3024
- */
3025
- UploadInputComponent.prototype.onUpload = /**
3026
- * @param {?} files
3027
- * @return {?}
3028
- */
3029
- function (files) {
3030
- /** @type {?} */
3031
- var data = (this.format ? this.format(files) : files);
3032
- this.propagateChange(data);
3033
- };
3034
- UploadInputComponent.decorators = [
3035
- { type: core.Component, args: [{
3036
- selector: 'aui-upload-input',
3037
- 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",
3038
- providers: [{
3039
- provide: forms.NG_VALUE_ACCESSOR,
3040
- useExisting: UploadInputComponent,
3041
- multi: true,
3042
- }]
3043
- }] }
3044
- ];
3045
- UploadInputComponent.propDecorators = {
3046
- options: [{ type: core.Input }],
3047
- format: [{ type: core.Input }]
3048
- };
3049
- return UploadInputComponent;
3050
- }());
3051
- if (false) {
3052
- /** @type {?} */
3053
- UploadInputComponent.prototype.options;
3054
- /** @type {?} */
3055
- UploadInputComponent.prototype.format;
3056
- /** @type {?} */
3057
- UploadInputComponent.prototype.propagateChange;
3058
- }
3059
-
3060
- /**
3061
- * @fileoverview added by tsickle
3062
- * Generated from: lib/upload/components/upload-queue/upload-queue.component.ts
3063
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3064
- */
3065
- var UploadQueueComponent = /** @class */ (function () {
3066
- function UploadQueueComponent() {
3067
- this.ariaLabelRemove = 'Verwijder';
3068
- this.uploadedFiles = new core.EventEmitter();
3069
- this.uploadProgress = 0;
3070
- }
3071
- /**
3072
- * @param {?} index
3073
- * @return {?}
3074
- */
3075
- UploadQueueComponent.prototype.remove = /**
3076
- * @param {?} index
3077
- * @return {?}
3078
- */
3079
- function (index) {
3080
- this.files.splice(index, 1);
3081
- };
3082
- /**
3083
- * @return {?}
3084
- */
3085
- UploadQueueComponent.prototype.uploadFiles = /**
3086
- * @return {?}
3087
- */
3088
- function () {
3089
- var _this = this;
3090
- /** @type {?} */
3091
- var progress = undefined;
3092
- /** @type {?} */
3093
- var data = undefined;
3094
- this.uploader.uploadFiles(this.files).subscribe((/**
3095
- * @param {?} response
3096
- * @return {?}
3097
- */
3098
- function (response) {
3099
- if (response.progress) {
3100
- _this.uploadProgress = Math.floor(response.progress * 100);
3101
- }
3102
- if (response.data) {
3103
- _this.uploadedFiles.emit(response.data);
3104
- _this.files = [];
3105
- }
3106
- }));
3107
- };
3108
- UploadQueueComponent.decorators = [
3109
- { type: core.Component, args: [{
3110
- selector: 'aui-upload-queue',
3111
- 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"
3112
- }] }
3113
- ];
3114
- UploadQueueComponent.propDecorators = {
3115
- files: [{ type: core.Input }],
3116
- uploader: [{ type: core.Input }],
3117
- ariaLabelRemove: [{ type: core.Input }],
3118
- uploadedFiles: [{ type: core.Output }]
3119
- };
3120
- return UploadQueueComponent;
3121
- }());
3122
- if (false) {
3123
- /** @type {?} */
3124
- UploadQueueComponent.prototype.files;
3125
- /** @type {?} */
3126
- UploadQueueComponent.prototype.uploader;
3127
- /** @type {?} */
3128
- UploadQueueComponent.prototype.ariaLabelRemove;
3129
- /** @type {?} */
3130
- UploadQueueComponent.prototype.uploadedFiles;
3131
- /** @type {?} */
3132
- UploadQueueComponent.prototype.uploadProgress;
3133
- }
3134
-
3135
- /**
3136
- * @fileoverview added by tsickle
3137
- * Generated from: lib/upload/components/upload-zone/upload-zone.component.ts
3138
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3139
- */
3140
- var UploadZoneComponent = /** @class */ (function () {
3141
- function UploadZoneComponent(renderer) {
3142
- this.renderer = renderer;
3143
- this.id = '';
3144
- this.accept = [];
3145
- this.capture = '';
3146
- this.ariaId = '';
3147
- this.disabled = false;
3148
- this.multiple = true;
3149
- this.uploadedFiles = new core.EventEmitter();
3150
- this.queuedFiles = new core.EventEmitter();
3151
- this.invalidFiles = new core.EventEmitter();
3152
- this.hasDragOver = false;
3153
- this.uploadProgress = 0;
3154
- }
3155
- /**
3156
- * @param {?} event
3157
- * @return {?}
3158
- */
3159
- UploadZoneComponent.prototype.onDragOver = /**
3160
- * @param {?} event
3161
- * @return {?}
3162
- */
3163
- function (event) {
3164
- this.preventAndStop(event);
3165
- this.hasDragOver = true;
3166
- };
3167
- /**
3168
- * @param {?} event
3169
- * @return {?}
3170
- */
3171
- UploadZoneComponent.prototype.onDragLeave = /**
3172
- * @param {?} event
3173
- * @return {?}
3174
- */
3175
- function (event) {
3176
- this.preventAndStop(event);
3177
- this.hasDragOver = false;
3178
- };
3179
- /**
3180
- * @param {?} event
3181
- * @return {?}
3182
- */
3183
- UploadZoneComponent.prototype.onDrop = /**
3184
- * @param {?} event
3185
- * @return {?}
3186
- */
3187
- function (event) {
3188
- this.preventAndStop(event);
3189
- this.hasDragOver = false;
3190
- /** @type {?} */
3191
- var files = this.fileListToArray(event.dataTransfer.files);
3192
- this.handleFiles(files);
3193
- };
3194
- /**
3195
- * @return {?}
3196
- */
3197
- UploadZoneComponent.prototype.triggerFile = /**
3198
- * @return {?}
3199
- */
3200
- function () {
3201
- this.fileInput.nativeElement.click();
3202
- };
3203
- /**
3204
- * @return {?}
3205
- */
3206
- UploadZoneComponent.prototype.updateFiles = /**
3207
- * @return {?}
3208
- */
3209
- function () {
3210
- /** @type {?} */
3211
- var files = this.fileListToArray(this.fileInput.nativeElement.files);
3212
- this.handleFiles(files);
3213
- };
3214
- /**
3215
- * @param {?} event
3216
- * @return {?}
3217
- */
3218
- UploadZoneComponent.prototype.onFileClick = /**
3219
- * @param {?} event
3220
- * @return {?}
3221
- */
3222
- function (event) {
3223
- // When removing a file make sure you can add it again later
3224
- // See: https://stackoverflow.com/questions/59870335/ng2-file-upload-not-allowing-me-to-add-same-doc-after-ive-removed-it-from-que
3225
- event.target.value = '';
3226
- };
3227
- /**
3228
- * @return {?}
3229
- */
3230
- UploadZoneComponent.prototype.ngAfterViewInit = /**
3231
- * @return {?}
3232
- */
3233
- function () {
3234
- if (this.multiple !== false) {
3235
- this.renderer.setProperty(this.fileInput.nativeElement, 'multiple', 'multiple');
3236
- }
3237
- if (!!this.accept.length) {
3238
- this.renderer.setProperty(this.fileInput.nativeElement, 'accept', this.accept.join());
3239
- }
3240
- if (this.disabled) {
3241
- this.renderer.setProperty(this.fileInput.nativeElement, 'disabled', 'disabled');
3242
- }
3243
- if (this.capture !== '') {
3244
- this.renderer.setAttribute(this.fileInput.nativeElement, 'capture', this.capture);
3245
- }
3246
- };
3247
- /**
3248
- * @protected
3249
- * @param {?} files
3250
- * @return {?}
3251
- */
3252
- UploadZoneComponent.prototype.handleFiles = /**
3253
- * @protected
3254
- * @param {?} files
3255
- * @return {?}
3256
- */
3257
- function (files) {
3258
- /** @type {?} */
3259
- var response = this.uploader.validateFiles(files);
3260
- this.invalidFiles.emit(response.invalidFiles);
3261
- if (this.uploader.options.autoUpload && response.validFiles.length > 0) {
3262
- this.uploadFiles(response.validFiles);
3263
- }
3264
- else {
3265
- this.queuedFiles.emit(response.validFiles);
3266
- }
3267
- };
3268
- /**
3269
- * @protected
3270
- * @param {?} files
3271
- * @return {?}
3272
- */
3273
- UploadZoneComponent.prototype.uploadFiles = /**
3274
- * @protected
3275
- * @param {?} files
3276
- * @return {?}
3277
- */
3278
- function (files) {
3279
- var _this = this;
3280
- // Reset progress
3281
- this.uploadProgress = 0;
3282
- this.uploadingFiles = files;
3283
- // upload
3284
- this.uploader.uploadFiles(files).subscribe((/**
3285
- * @param {?} response
3286
- * @return {?}
3287
- */
3288
- function (response) {
3289
- if (response.progress) {
3290
- _this.uploadProgress = Math.floor(response.progress * 100);
3291
- }
3292
- if (response.data) {
3293
- _this.uploadedFiles.emit(response.data);
3294
- }
3295
- }), (/**
3296
- * @param {?} err
3297
- * @return {?}
3298
- */
3299
- function (err) {
3300
- console.log(err);
3301
- }));
3302
- };
3303
- /**
3304
- * @protected
3305
- * @param {?} list
3306
- * @return {?}
3307
- */
3308
- UploadZoneComponent.prototype.fileListToArray = /**
3309
- * @protected
3310
- * @param {?} list
3311
- * @return {?}
3312
- */
3313
- function (list) {
3314
- return Array.from(list);
3315
- };
3316
- /**
3317
- * @protected
3318
- * @param {?} event
3319
- * @return {?}
3320
- */
3321
- UploadZoneComponent.prototype.preventAndStop = /**
3322
- * @protected
3323
- * @param {?} event
3324
- * @return {?}
3325
- */
3326
- function (event) {
3327
- event.preventDefault();
3328
- event.stopPropagation();
3329
- };
3330
- UploadZoneComponent.decorators = [
3331
- { type: core.Component, args: [{
3332
- selector: 'aui-upload-zone',
3333
- 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"
3334
- }] }
3335
- ];
3336
- /** @nocollapse */
3337
- UploadZoneComponent.ctorParameters = function () { return [
3338
- { type: core.Renderer2 }
3339
- ]; };
3340
- UploadZoneComponent.propDecorators = {
3341
- fileInput: [{ type: core.ViewChild, args: ['fileInput', { static: false },] }],
3342
- uploader: [{ type: core.Input }],
3343
- id: [{ type: core.Input }],
3344
- accept: [{ type: core.Input }],
3345
- capture: [{ type: core.Input }],
3346
- ariaId: [{ type: core.Input }],
3347
- disabled: [{ type: core.Input }],
3348
- multiple: [{ type: core.Input }],
3349
- uploadedFiles: [{ type: core.Output }],
3350
- queuedFiles: [{ type: core.Output }],
3351
- invalidFiles: [{ type: core.Output }],
3352
- onDragOver: [{ type: core.HostListener, args: ['dragover', ['$event'],] }],
3353
- onDragLeave: [{ type: core.HostListener, args: ['dragleave', ['$event'],] }],
3354
- onDrop: [{ type: core.HostListener, args: ['drop', ['$event'],] }]
3355
- };
3356
- return UploadZoneComponent;
3357
- }());
3358
- if (false) {
3359
- /** @type {?} */
3360
- UploadZoneComponent.prototype.fileInput;
3361
- /** @type {?} */
3362
- UploadZoneComponent.prototype.uploader;
3363
- /** @type {?} */
3364
- UploadZoneComponent.prototype.id;
3365
- /** @type {?} */
3366
- UploadZoneComponent.prototype.accept;
3367
- /** @type {?} */
3368
- UploadZoneComponent.prototype.capture;
3369
- /** @type {?} */
3370
- UploadZoneComponent.prototype.ariaId;
3371
- /** @type {?} */
3372
- UploadZoneComponent.prototype.disabled;
3373
- /** @type {?} */
3374
- UploadZoneComponent.prototype.multiple;
3375
- /** @type {?} */
3376
- UploadZoneComponent.prototype.uploadedFiles;
3377
- /** @type {?} */
3378
- UploadZoneComponent.prototype.queuedFiles;
3379
- /** @type {?} */
3380
- UploadZoneComponent.prototype.invalidFiles;
3381
- /** @type {?} */
3382
- UploadZoneComponent.prototype.hasDragOver;
3383
- /** @type {?} */
3384
- UploadZoneComponent.prototype.classNames;
3385
- /** @type {?} */
3386
- UploadZoneComponent.prototype.uploadProgress;
3387
- /** @type {?} */
3388
- UploadZoneComponent.prototype.uploadingFiles;
3389
- /**
3390
- * @type {?}
3391
- * @private
3392
- */
3393
- UploadZoneComponent.prototype.renderer;
3394
- }
3395
-
3396
- /**
3397
- * @fileoverview added by tsickle
3398
- * Generated from: lib/upload/services/validation-messages.service.ts
3399
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3400
- */
3401
- var ValidationMessagesService = /** @class */ (function () {
3402
- function ValidationMessagesService(initValues) {
3403
- this.initValues = initValues;
3404
- this.INVALID_FILE_TYPE = 'INVALID_FILE_TYPE';
3405
- this.INVALID_FILE_SIZE = 'INVALID_FILE_SIZE';
3406
- this.INVALID_MIME_TYPE = 'INVALID_MIME_TYPE';
3407
- if (initValues.INVALID_FILE_TYPE) {
3408
- this.INVALID_FILE_TYPE = initValues.INVALID_FILE_TYPE;
3409
- }
3410
- if (initValues.INVALID_FILE_SIZE) {
3411
- this.INVALID_FILE_SIZE = initValues.INVALID_FILE_SIZE;
3412
- }
3413
- if (initValues.INVALID_MIME_TYPE) {
3414
- this.INVALID_MIME_TYPE = initValues.INVALID_MIME_TYPE;
3415
- }
3416
- }
3417
- ValidationMessagesService.decorators = [
3418
- { type: core.Injectable }
3419
- ];
3420
- /** @nocollapse */
3421
- ValidationMessagesService.ctorParameters = function () { return [
3422
- { type: undefined, decorators: [{ type: core.Inject, args: [UPLOAD_VALIDATION_MESSAGES,] }] }
3423
- ]; };
3424
- return ValidationMessagesService;
3425
- }());
3426
- if (false) {
3427
- /** @type {?} */
3428
- ValidationMessagesService.prototype.INVALID_FILE_TYPE;
3429
- /** @type {?} */
3430
- ValidationMessagesService.prototype.INVALID_FILE_SIZE;
3431
- /** @type {?} */
3432
- ValidationMessagesService.prototype.INVALID_MIME_TYPE;
3433
- /**
3434
- * @type {?}
3435
- * @private
3436
- */
3437
- ValidationMessagesService.prototype.initValues;
3438
- }
3439
-
3440
- /**
3441
- * @fileoverview added by tsickle
3442
- * Generated from: lib/upload/components/validation-list/validation-list.component.ts
3443
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3444
- */
3445
- var ValidationListComponent = /** @class */ (function () {
3446
- function ValidationListComponent(messagesService) {
3447
- this.messagesService = messagesService;
3448
- this.invalidFiles = [];
3449
- this.ariaLabelRemove = 'Verwijder';
3450
- }
3451
- /**
3452
- * @param {?} index
3453
- * @return {?}
3454
- */
3455
- ValidationListComponent.prototype.remove = /**
3456
- * @param {?} index
3457
- * @return {?}
3458
- */
3459
- function (index) {
3460
- this.invalidFiles.splice(index, 1);
3461
- };
3462
- /**
3463
- * @param {?} reasons
3464
- * @return {?}
3465
- */
3466
- ValidationListComponent.prototype.formatReasons = /**
3467
- * @param {?} reasons
3468
- * @return {?}
3469
- */
3470
- function (reasons) {
3471
- var e_1, _a;
3472
- /** @type {?} */
3473
- var result = [];
3474
- try {
3475
- for (var reasons_1 = __values(reasons), reasons_1_1 = reasons_1.next(); !reasons_1_1.done; reasons_1_1 = reasons_1.next()) {
3476
- var reason = reasons_1_1.value;
3477
- result.push(this.messagesService[reason]);
3478
- }
3479
- }
3480
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
3481
- finally {
3482
- try {
3483
- if (reasons_1_1 && !reasons_1_1.done && (_a = reasons_1.return)) _a.call(reasons_1);
3484
- }
3485
- finally { if (e_1) throw e_1.error; }
3486
- }
3487
- return result.join(', ');
3488
- };
3489
- ValidationListComponent.decorators = [
3490
- { type: core.Component, args: [{
3491
- selector: 'aui-validation-list',
3492
- 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"
3493
- }] }
3494
- ];
3495
- /** @nocollapse */
3496
- ValidationListComponent.ctorParameters = function () { return [
3497
- { type: ValidationMessagesService }
3498
- ]; };
3499
- ValidationListComponent.propDecorators = {
3500
- invalidFiles: [{ type: core.Input }],
3501
- ariaLabelRemove: [{ type: core.Input }]
3502
- };
3503
- return ValidationListComponent;
3504
- }());
3505
- if (false) {
3506
- /** @type {?} */
3507
- ValidationListComponent.prototype.invalidFiles;
3508
- /** @type {?} */
3509
- ValidationListComponent.prototype.ariaLabelRemove;
3510
- /**
3511
- * @type {?}
3512
- * @private
3513
- */
3514
- ValidationListComponent.prototype.messagesService;
3515
- }
3516
-
3517
- /**
3518
- * @fileoverview added by tsickle
3519
- * Generated from: lib/upload/upload.module.ts
3520
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3521
- */
3522
- var ɵ0$1 = {};
3523
- var UploadModule = /** @class */ (function () {
3524
- function UploadModule() {
3525
- }
3526
- /**
3527
- * @param {?=} validationMessages
3528
- * @return {?}
3529
- */
3530
- UploadModule.forChild = /**
3531
- * @param {?=} validationMessages
3532
- * @return {?}
3533
- */
3534
- function (validationMessages) {
3535
- if (validationMessages === void 0) { validationMessages = {}; }
3536
- return {
3537
- ngModule: UploadModule,
3538
- providers: [
3539
- { provide: UPLOAD_VALIDATION_MESSAGES, useValue: validationMessages },
3540
- ],
3541
- };
3542
- };
3543
- UploadModule.decorators = [
3544
- { type: core.NgModule, args: [{
3545
- imports: [
3546
- common.CommonModule,
3547
- ngxProgressBar.ProgressBarModule,
3548
- forms.FormsModule,
3549
- ngxIcon.IconModule,
3550
- ],
3551
- declarations: [
3552
- UploadComponent,
3553
- UploadInputComponent,
3554
- UploadQueueComponent,
3555
- UploadZoneComponent,
3556
- ValidationListComponent,
3557
- ],
3558
- exports: [
3559
- UploadComponent,
3560
- UploadInputComponent,
3561
- UploadQueueComponent,
3562
- UploadZoneComponent,
3563
- ValidationListComponent,
3564
- ],
3565
- providers: [
3566
- ValidationMessagesService,
3567
- { provide: UPLOAD_VALIDATION_MESSAGES, useValue: ɵ0$1 },
3568
- ],
3569
- },] }
3570
- ];
3571
- return UploadModule;
3572
- }());
3573
-
3574
- /**
3575
- * @fileoverview added by tsickle
3576
- * Generated from: lib/upload/public-api.ts
3577
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3578
- */
3579
-
3580
- /**
3581
- * @fileoverview added by tsickle
3582
- * Generated from: lib/wysiwyg/wysiwyg.conf.ts
3583
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3584
- */
3585
- /** @type {?} */
3586
- var WYSIWYG_DEFAULT_CONFIG = {
3587
- bodyClass: 'a-input ckeditor-editable-body',
3588
- contentsCss: ['https://cdn.antwerpen.be/core_branding_scss/5.0.0/main.min.css'],
3589
- extraPlugins: 'divarea',
3590
- find_highlight: {
3591
- element: 'span',
3592
- styles: { 'background-color': '#fffc00', color: '#0064b4' },
3593
- },
3594
- format_tags: 'p;h1;h2;h3;h4;h5;h6',
3595
- toolbar_Basic: [
3596
- ['Bold', 'Italic', 'Underline', '-', 'Format', '-', 'Source'],
3597
- ],
3598
- removeButtons: 'Styles',
3599
- removePlugins: 'about',
3600
- toolbar: null,
3601
- uiColor: '#d8d8d8',
3602
- };
3603
-
3604
- /**
3605
- * @fileoverview added by tsickle
3606
- * Generated from: lib/wysiwyg/components/wysiwyg/wysiwyg.component.ts
3607
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3608
- */
3609
- var WysiwygComponent = /** @class */ (function () {
3610
- function WysiwygComponent() {
3611
- this.setClass = true;
3612
- this.basic = false;
3613
- this.emitContent = new core.EventEmitter();
3614
- this.focus = new core.EventEmitter();
3615
- this.blur = new core.EventEmitter();
3616
- this.ckeditorConfig = WYSIWYG_DEFAULT_CONFIG;
3617
- this.isDisabled = false;
3618
- this.updateModel = (/**
3619
- * @param {...?} args
3620
- * @return {?}
3621
- */
3622
- function () {
3623
- var args = [];
3624
- for (var _i = 0; _i < arguments.length; _i++) {
3625
- args[_i] = arguments[_i];
3626
- }
3627
- return undefined;
3628
- });
3629
- }
3630
- // NG_VALUE_ACCESSOR_INTERFACE
3631
- // NG_VALUE_ACCESSOR_INTERFACE
3632
- /**
3633
- * @param {?} value
3634
- * @return {?}
3635
- */
3636
- WysiwygComponent.prototype.writeValue =
3637
- // NG_VALUE_ACCESSOR_INTERFACE
3638
- /**
3639
- * @param {?} value
3640
- * @return {?}
3641
- */
3642
- function (value) {
3643
- this.ckeditorContent = value;
3644
- this.updateModel(value);
3645
- this.emitContent.emit(this.ckeditorContent);
3646
- };
3647
- /**
3648
- * @param {?} value
3649
- * @return {?}
3650
- */
3651
- WysiwygComponent.prototype.onFocus = /**
3652
- * @param {?} value
3653
- * @return {?}
3654
- */
3655
- function (value) {
3656
- this.focus.emit(value);
3657
- };
3658
- /**
3659
- * @param {?} value
3660
- * @return {?}
3661
- */
3662
- WysiwygComponent.prototype.onBlur = /**
3663
- * @param {?} value
3664
- * @return {?}
3665
- */
3666
- function (value) {
3667
- this.blur.emit(value);
3668
- };
3669
- /**
3670
- * @param {?} onChange
3671
- * @return {?}
3672
- */
3673
- WysiwygComponent.prototype.registerOnChange = /**
3674
- * @param {?} onChange
3675
- * @return {?}
3676
- */
3677
- function (onChange) {
3678
- this.updateModel = onChange;
3679
- };
3680
- /**
3681
- * @return {?}
3682
- */
3683
- WysiwygComponent.prototype.registerOnTouched = /**
3684
- * @return {?}
3685
- */
3686
- function () {
3687
- };
3688
- /**
3689
- * @param {?} isDisabled
3690
- * @return {?}
3691
- */
3692
- WysiwygComponent.prototype.setDisabledState = /**
3693
- * @param {?} isDisabled
3694
- * @return {?}
3695
- */
3696
- function (isDisabled) {
3697
- this.isDisabled = isDisabled;
3698
- };
3699
- /**
3700
- * @return {?}
3701
- */
3702
- WysiwygComponent.prototype.ngOnInit = /**
3703
- * @return {?}
3704
- */
3705
- function () {
3706
- this.setConfig();
3707
- };
3708
- /**
3709
- * @private
3710
- * @return {?}
3711
- */
3712
- WysiwygComponent.prototype.setConfig = /**
3713
- * @private
3714
- * @return {?}
3715
- */
3716
- function () {
3717
- if (this.customConfig) {
3718
- this.ckeditorConfig = this.customConfig;
3719
- }
3720
- else {
3721
- if (this.basic) {
3722
- this.ckeditorConfig.toolbar = 'Basic';
3723
- }
3724
- if (this.availableTags) {
3725
- this.ckeditorConfig.format_tags = this.availableTags;
3726
- }
3727
- if (this.uiColour) {
3728
- this.ckeditorConfig.uiColor = this.uiColour;
3729
- }
3730
- if (this.additionalStyling) {
3731
- this.ckeditorConfig.contentsCss.concat(this.additionalStyling);
3732
- }
3733
- }
3734
- };
3735
- WysiwygComponent.decorators = [
3736
- { type: core.Component, args: [{
3737
- selector: 'aui-wysiwyg',
3738
- 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",
3739
- providers: [{
3740
- provide: forms.NG_VALUE_ACCESSOR,
3741
- useExisting: core.forwardRef((/**
3742
- * @return {?}
3743
- */
3744
- function () { return WysiwygComponent; })),
3745
- // tslint:disable-line:no-forward-ref
3746
- multi: true,
3747
- }],
3748
- 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}"]
3749
- }] }
3750
- ];
3751
- WysiwygComponent.propDecorators = {
3752
- setClass: [{ type: core.HostBinding, args: ['class.aui-wysiwyg',] }],
3753
- additionalStyling: [{ type: core.Input }],
3754
- availableTags: [{ type: core.Input }],
3755
- basic: [{ type: core.Input }],
3756
- uiColour: [{ type: core.Input }],
3757
- customConfig: [{ type: core.Input }],
3758
- debounce: [{ type: core.Input }],
3759
- emitContent: [{ type: core.Output }],
3760
- focus: [{ type: core.Output }],
3761
- blur: [{ type: core.Output }]
3762
- };
3763
- return WysiwygComponent;
3764
- }());
3765
- if (false) {
3766
- /** @type {?} */
3767
- WysiwygComponent.prototype.setClass;
3768
- /** @type {?} */
3769
- WysiwygComponent.prototype.additionalStyling;
3770
- /** @type {?} */
3771
- WysiwygComponent.prototype.availableTags;
3772
- /** @type {?} */
3773
- WysiwygComponent.prototype.basic;
3774
- /** @type {?} */
3775
- WysiwygComponent.prototype.uiColour;
3776
- /** @type {?} */
3777
- WysiwygComponent.prototype.customConfig;
3778
- /** @type {?} */
3779
- WysiwygComponent.prototype.debounce;
3780
- /** @type {?} */
3781
- WysiwygComponent.prototype.emitContent;
3782
- /** @type {?} */
3783
- WysiwygComponent.prototype.focus;
3784
- /** @type {?} */
3785
- WysiwygComponent.prototype.blur;
3786
- /** @type {?} */
3787
- WysiwygComponent.prototype.ckeditorContent;
3788
- /** @type {?} */
3789
- WysiwygComponent.prototype.ckeditorConfig;
3790
- /** @type {?} */
3791
- WysiwygComponent.prototype.isDisabled;
3792
- /**
3793
- * @type {?}
3794
- * @private
3795
- */
3796
- WysiwygComponent.prototype.updateModel;
3797
- }
3798
-
3799
- /**
3800
- * @fileoverview added by tsickle
3801
- * Generated from: lib/wysiwyg/wysiwyg.module.ts
3802
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3803
- */
3804
- var WysiwygModule = /** @class */ (function () {
3805
- function WysiwygModule() {
3806
- }
3807
- WysiwygModule.decorators = [
3808
- { type: core.NgModule, args: [{
3809
- imports: [
3810
- common.CommonModule,
3811
- forms.FormsModule,
3812
- forms.ReactiveFormsModule,
3813
- ng2Ckeditor.CKEditorModule,
3814
- ],
3815
- declarations: [
3816
- WysiwygComponent,
3817
- ],
3818
- exports: [
3819
- WysiwygComponent,
3820
- ],
3821
- },] }
3822
- ];
3823
- return WysiwygModule;
3824
- }());
3825
-
3826
- exports.AutoCompleteComponent = AutoCompleteComponent;
3827
- exports.AutoCompleteModule = AutoCompleteModule;
3828
- exports.DATEPICKER_DATE_MASK = DATEPICKER_DATE_MASK;
3829
- exports.DATEPICKER_DEFAULT_ERROR_LABELS = DATEPICKER_DEFAULT_ERROR_LABELS;
3830
- exports.DATEPICKER_ERROR_LABELS = DATEPICKER_ERROR_LABELS;
3831
- exports.DATEPICKER_SEPARATOR_CHAR = DATEPICKER_SEPARATOR_CHAR;
3832
- exports.DatepickerComponent = DatepickerComponent;
3833
- exports.DatepickerModule = DatepickerModule;
3834
- exports.MaskDirective = MaskDirective;
3835
- exports.MaskModule = MaskModule;
3836
- exports.RangeSliderComponent = RangeSliderComponent;
3837
- exports.RangeSliderModule = RangeSliderModule;
3838
- exports.SearchFilterComponent = SearchFilterComponent;
3839
- exports.SearchFilterModule = SearchFilterModule;
3840
- exports.TimePickerValidators = TimePickerValidators;
3841
- exports.TimepickerComponent = TimepickerComponent;
3842
- exports.TimepickerInputSize = TimepickerInputSize;
3843
- exports.TimepickerModule = TimepickerModule;
3844
- exports.UPLOAD_OPTIONS_DEFAULT = UPLOAD_OPTIONS_DEFAULT;
3845
- exports.UPLOAD_VALIDATION_MESSAGES = UPLOAD_VALIDATION_MESSAGES;
3846
- exports.UploadComponent = UploadComponent;
3847
- exports.UploadInputComponent = UploadInputComponent;
3848
- exports.UploadModule = UploadModule;
3849
- exports.UploadQueueComponent = UploadQueueComponent;
3850
- exports.UploadZoneComponent = UploadZoneComponent;
3851
- exports.Uploader = Uploader;
3852
- exports.ValidationListComponent = ValidationListComponent;
3853
- exports.ValidationMessagesService = ValidationMessagesService;
3854
- exports.WYSIWYG_DEFAULT_CONFIG = WYSIWYG_DEFAULT_CONFIG;
3855
- exports.WysiwygComponent = WysiwygComponent;
3856
- exports.WysiwygModule = WysiwygModule;
3857
- exports.ɵa = SearchService;
3858
-
3859
- Object.defineProperty(exports, '__esModule', { value: true });
3860
-
3861
- })));
3862
- //# sourceMappingURL=acpaas-ui-ngx-forms.umd.js.map