@apipass/inputs 0.1.4 → 0.1.6-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/apipass-inputs.d.ts +5 -6
  2. package/assets/css/buttons.scss +112 -112
  3. package/assets/css/colors.scss +34 -34
  4. package/assets/css/fonts.scss +24 -24
  5. package/assets/css/inputs.scss +197 -197
  6. package/assets/css/pt_sans.scss +143 -143
  7. package/assets/css/spacing.scss +28 -28
  8. package/assets/css/texts.scss +18 -18
  9. package/bundles/apipass-inputs.umd.js +1855 -1011
  10. package/bundles/apipass-inputs.umd.js.map +1 -1
  11. package/bundles/apipass-inputs.umd.min.js +2 -2
  12. package/bundles/apipass-inputs.umd.min.js.map +1 -1
  13. package/custom-select/custom-select-item.d.ts +5 -5
  14. package/custom-select/custom-select.component.d.ts +41 -38
  15. package/esm2015/apipass-inputs.js +5 -7
  16. package/esm2015/custom-select/custom-select-item.js +7 -7
  17. package/esm2015/custom-select/custom-select.component.js +254 -147
  18. package/esm2015/field/field.component.js +94 -33
  19. package/esm2015/input-avatar/input-avatar.component.js +167 -77
  20. package/esm2015/input-file/input-file.component.js +133 -0
  21. package/esm2015/input-password/input-password.component.js +159 -75
  22. package/esm2015/input-text/input-text.component.js +118 -50
  23. package/esm2015/inputs.module.js +121 -68
  24. package/esm2015/public-api.js +11 -10
  25. package/esm2015/select-box/mat-select-infinite-scroll.directive.js +86 -83
  26. package/esm2015/select-box/select-box.component.js +227 -132
  27. package/esm2015/select-enum/select-enum.component.js +97 -38
  28. package/esm2015/value-acessor-base.js +31 -31
  29. package/fesm2015/apipass-inputs.js +1402 -696
  30. package/fesm2015/apipass-inputs.js.map +1 -1
  31. package/field/field.component.d.ts +15 -12
  32. package/input-avatar/input-avatar.component.d.ts +29 -26
  33. package/input-file/input-file.component.d.ts +31 -0
  34. package/input-password/input-password.component.d.ts +29 -26
  35. package/input-text/input-text.component.d.ts +17 -14
  36. package/inputs.module.d.ts +29 -2
  37. package/package.json +7 -5
  38. package/public-api.d.ts +10 -9
  39. package/select-box/mat-select-infinite-scroll.directive.d.ts +26 -23
  40. package/select-box/select-box.component.d.ts +43 -40
  41. package/select-enum/select-enum.component.d.ts +12 -9
  42. package/value-acessor-base.d.ts +13 -13
  43. package/apipass-inputs.metadata.json +0 -1
@@ -1,1042 +1,1886 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@angular/common'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/material/select'), require('@angular/material/icon'), require('@angular/material/tooltip'), require('lodash'), require('rxjs'), require('rxjs/operators'), require('mat-select-filter'), require('@ng-select/ng-select'), require('ngx-drag-drop'), require('@apipass/icons'), require('@apipass/pipes'), require('@ngx-translate/core'), require('@angular/router'), require('@angular-material-extensions/password-strength')) :
3
- typeof define === 'function' && define.amd ? define('@apipass/inputs', ['exports', '@angular/core', '@angular/forms', '@angular/common', '@angular/material/form-field', '@angular/material/input', '@angular/material/select', '@angular/material/icon', '@angular/material/tooltip', 'lodash', 'rxjs', 'rxjs/operators', 'mat-select-filter', '@ng-select/ng-select', 'ngx-drag-drop', '@apipass/icons', '@apipass/pipes', '@ngx-translate/core', '@angular/router', '@angular-material-extensions/password-strength'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.apipass = global.apipass || {}, global.apipass.inputs = {}), global.ng.core, global.ng.forms, global.ng.common, global.ng.material.formField, global.ng.material.input, global.ng.material.select, global.ng.material.icon, global.ng.material.tooltip, global.lodash, global.rxjs, global.rxjs.operators, global.matSelectFilter, global.ngSelect, global.ngxDragDrop, global.icons, global.pipes, global.core$1, global.ng.router, global.passwordStrength));
5
- }(this, (function (exports, core, forms, common, formField, input, select, icon, tooltip, lodash, rxjs, operators, matSelectFilter, ngSelect, ngxDragDrop, icons, pipes, core$1, router, passwordStrength) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@angular/common'), require('@angular/material/form-field'), require('@angular/material/select'), require('@angular/material/core'), require('@apipass/pipes'), require('@ngx-translate/core'), require('@angular/material/input'), require('@angular/material/icon'), require('@angular/material/tooltip'), require('lodash'), require('@angular-material-extensions/password-strength'), require('@apipass/icons'), require('rxjs'), require('rxjs/operators'), require('@ng-select/ng-select'), require('mat-select-filter'), require('ngx-drag-drop'), require('@angular/router')) :
3
+ typeof define === 'function' && define.amd ? define('@apipass/inputs', ['exports', '@angular/core', '@angular/forms', '@angular/common', '@angular/material/form-field', '@angular/material/select', '@angular/material/core', '@apipass/pipes', '@ngx-translate/core', '@angular/material/input', '@angular/material/icon', '@angular/material/tooltip', 'lodash', '@angular-material-extensions/password-strength', '@apipass/icons', 'rxjs', 'rxjs/operators', '@ng-select/ng-select', 'mat-select-filter', 'ngx-drag-drop', '@angular/router'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.apipass = global.apipass || {}, global.apipass.inputs = {}), global.ng.core, global.ng.forms, global.ng.common, global.ng.material.formField, global.ng.material.select, global.ng.material.core, global.i6, global.i7, global.ng.material.input, global.ng.material.icon, global.ng.material.tooltip, global.lodash, global.i5$1, global.i3$1, global.rxjs, global.rxjs.operators, global.i1$2, global.matSelectFilter, global.i5$3, global.ng.router));
5
+ }(this, (function (exports, i0, i4, i2, i1, i1$1, i5, i6, i7, i3, i5$2, i2$1, lodash, i5$1, i3$1, rxjs, operators, i1$2, matSelectFilter, i5$3, i1$3) { 'use strict';
6
6
 
7
- /*! *****************************************************************************
8
- Copyright (c) Microsoft Corporation.
9
-
10
- Permission to use, copy, modify, and/or distribute this software for any
11
- purpose with or without fee is hereby granted.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
14
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
16
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
17
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
18
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19
- PERFORMANCE OF THIS SOFTWARE.
20
- ***************************************************************************** */
21
- /* global Reflect, Promise */
22
- var extendStatics = function (d, b) {
23
- extendStatics = Object.setPrototypeOf ||
24
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
25
- function (d, b) { for (var p in b)
26
- if (b.hasOwnProperty(p))
27
- d[p] = b[p]; };
28
- return extendStatics(d, b);
29
- };
30
- function __extends(d, b) {
31
- extendStatics(d, b);
32
- function __() { this.constructor = d; }
33
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
34
- }
35
- var __assign = function () {
36
- __assign = Object.assign || function __assign(t) {
37
- for (var s, i = 1, n = arguments.length; i < n; i++) {
38
- s = arguments[i];
39
- for (var p in s)
40
- if (Object.prototype.hasOwnProperty.call(s, p))
41
- t[p] = s[p];
42
- }
43
- return t;
44
- };
45
- return __assign.apply(this, arguments);
46
- };
47
- function __rest(s, e) {
48
- var t = {};
49
- for (var p in s)
50
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
51
- t[p] = s[p];
52
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
53
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
54
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
55
- t[p[i]] = s[p[i]];
56
- }
57
- return t;
58
- }
59
- function __decorate(decorators, target, key, desc) {
60
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
61
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
62
- r = Reflect.decorate(decorators, target, key, desc);
63
- else
64
- for (var i = decorators.length - 1; i >= 0; i--)
65
- if (d = decorators[i])
66
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
67
- return c > 3 && r && Object.defineProperty(target, key, r), r;
68
- }
69
- function __param(paramIndex, decorator) {
70
- return function (target, key) { decorator(target, key, paramIndex); };
71
- }
72
- function __metadata(metadataKey, metadataValue) {
73
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
74
- return Reflect.metadata(metadataKey, metadataValue);
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 {
80
- step(generator.next(value));
81
- }
82
- catch (e) {
83
- reject(e);
84
- } }
85
- function rejected(value) { try {
86
- step(generator["throw"](value));
87
- }
88
- catch (e) {
89
- reject(e);
90
- } }
91
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
92
- step((generator = generator.apply(thisArg, _arguments || [])).next());
93
- });
94
- }
95
- function __generator(thisArg, body) {
96
- var _ = { label: 0, sent: function () { if (t[0] & 1)
97
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
98
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
99
- function verb(n) { return function (v) { return step([n, v]); }; }
100
- function step(op) {
101
- if (f)
102
- throw new TypeError("Generator is already executing.");
103
- while (_)
104
- try {
105
- 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)
106
- return t;
107
- if (y = 0, t)
108
- op = [op[0] & 2, t.value];
109
- switch (op[0]) {
110
- case 0:
111
- case 1:
112
- t = op;
113
- break;
114
- case 4:
115
- _.label++;
116
- return { value: op[1], done: false };
117
- case 5:
118
- _.label++;
119
- y = op[1];
120
- op = [0];
121
- continue;
122
- case 7:
123
- op = _.ops.pop();
124
- _.trys.pop();
125
- continue;
126
- default:
127
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
128
- _ = 0;
129
- continue;
130
- }
131
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
132
- _.label = op[1];
133
- break;
134
- }
135
- if (op[0] === 6 && _.label < t[1]) {
136
- _.label = t[1];
137
- t = op;
138
- break;
139
- }
140
- if (t && _.label < t[2]) {
141
- _.label = t[2];
142
- _.ops.push(op);
143
- break;
144
- }
145
- if (t[2])
146
- _.ops.pop();
147
- _.trys.pop();
148
- continue;
149
- }
150
- op = body.call(thisArg, _);
151
- }
152
- catch (e) {
153
- op = [6, e];
154
- y = 0;
155
- }
156
- finally {
157
- f = t = 0;
158
- }
159
- if (op[0] & 5)
160
- throw op[1];
161
- return { value: op[0] ? op[1] : void 0, done: true };
162
- }
163
- }
164
- var __createBinding = Object.create ? (function (o, m, k, k2) {
165
- if (k2 === undefined)
166
- k2 = k;
167
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
168
- }) : (function (o, m, k, k2) {
169
- if (k2 === undefined)
170
- k2 = k;
171
- o[k2] = m[k];
172
- });
173
- function __exportStar(m, exports) {
174
- for (var p in m)
175
- if (p !== "default" && !exports.hasOwnProperty(p))
176
- __createBinding(exports, m, p);
177
- }
178
- function __values(o) {
179
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
180
- if (m)
181
- return m.call(o);
182
- if (o && typeof o.length === "number")
183
- return {
184
- next: function () {
185
- if (o && i >= o.length)
186
- o = void 0;
187
- return { value: o && o[i++], done: !o };
188
- }
189
- };
190
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
191
- }
192
- function __read(o, n) {
193
- var m = typeof Symbol === "function" && o[Symbol.iterator];
194
- if (!m)
195
- return o;
196
- var i = m.call(o), r, ar = [], e;
197
- try {
198
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
199
- ar.push(r.value);
200
- }
201
- catch (error) {
202
- e = { error: error };
203
- }
204
- finally {
205
- try {
206
- if (r && !r.done && (m = i["return"]))
207
- m.call(i);
208
- }
209
- finally {
210
- if (e)
211
- throw e.error;
212
- }
213
- }
214
- return ar;
215
- }
216
- function __spread() {
217
- for (var ar = [], i = 0; i < arguments.length; i++)
218
- ar = ar.concat(__read(arguments[i]));
219
- return ar;
220
- }
221
- function __spreadArrays() {
222
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
223
- s += arguments[i].length;
224
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
225
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
226
- r[k] = a[j];
227
- return r;
228
- }
229
- ;
230
- function __await(v) {
231
- return this instanceof __await ? (this.v = v, this) : new __await(v);
232
- }
233
- function __asyncGenerator(thisArg, _arguments, generator) {
234
- if (!Symbol.asyncIterator)
235
- throw new TypeError("Symbol.asyncIterator is not defined.");
236
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
237
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
238
- function verb(n) { if (g[n])
239
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
240
- function resume(n, v) { try {
241
- step(g[n](v));
242
- }
243
- catch (e) {
244
- settle(q[0][3], e);
245
- } }
246
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
247
- function fulfill(value) { resume("next", value); }
248
- function reject(value) { resume("throw", value); }
249
- function settle(f, v) { if (f(v), q.shift(), q.length)
250
- resume(q[0][0], q[0][1]); }
251
- }
252
- function __asyncDelegator(o) {
253
- var i, p;
254
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
255
- 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; }
256
- }
257
- function __asyncValues(o) {
258
- if (!Symbol.asyncIterator)
259
- throw new TypeError("Symbol.asyncIterator is not defined.");
260
- var m = o[Symbol.asyncIterator], i;
261
- 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);
262
- 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); }); }; }
263
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
264
- }
265
- function __makeTemplateObject(cooked, raw) {
266
- if (Object.defineProperty) {
267
- Object.defineProperty(cooked, "raw", { value: raw });
268
- }
269
- else {
270
- cooked.raw = raw;
271
- }
272
- return cooked;
273
- }
274
- ;
275
- var __setModuleDefault = Object.create ? (function (o, v) {
276
- Object.defineProperty(o, "default", { enumerable: true, value: v });
277
- }) : function (o, v) {
278
- o["default"] = v;
279
- };
280
- function __importStar(mod) {
281
- if (mod && mod.__esModule)
282
- return mod;
283
- var result = {};
284
- if (mod != null)
285
- for (var k in mod)
286
- if (Object.hasOwnProperty.call(mod, k))
287
- __createBinding(result, mod, k);
288
- __setModuleDefault(result, mod);
289
- return result;
290
- }
291
- function __importDefault(mod) {
292
- return (mod && mod.__esModule) ? mod : { default: mod };
293
- }
294
- function __classPrivateFieldGet(receiver, privateMap) {
295
- if (!privateMap.has(receiver)) {
296
- throw new TypeError("attempted to get private field on non-instance");
297
- }
298
- return privateMap.get(receiver);
299
- }
300
- function __classPrivateFieldSet(receiver, privateMap, value) {
301
- if (!privateMap.has(receiver)) {
302
- throw new TypeError("attempted to set private field on non-instance");
303
- }
304
- privateMap.set(receiver, value);
305
- return value;
7
+ /*! *****************************************************************************
8
+ Copyright (c) Microsoft Corporation.
9
+
10
+ Permission to use, copy, modify, and/or distribute this software for any
11
+ purpose with or without fee is hereby granted.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
14
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
16
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
17
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
18
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19
+ PERFORMANCE OF THIS SOFTWARE.
20
+ ***************************************************************************** */
21
+ /* global Reflect, Promise */
22
+ var extendStatics = function (d, b) {
23
+ extendStatics = Object.setPrototypeOf ||
24
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
25
+ function (d, b) { for (var p in b)
26
+ if (b.hasOwnProperty(p))
27
+ d[p] = b[p]; };
28
+ return extendStatics(d, b);
29
+ };
30
+ function __extends(d, b) {
31
+ extendStatics(d, b);
32
+ function __() { this.constructor = d; }
33
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
34
+ }
35
+ var __assign = function () {
36
+ __assign = Object.assign || function __assign(t) {
37
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
38
+ s = arguments[i];
39
+ for (var p in s)
40
+ if (Object.prototype.hasOwnProperty.call(s, p))
41
+ t[p] = s[p];
42
+ }
43
+ return t;
44
+ };
45
+ return __assign.apply(this, arguments);
46
+ };
47
+ function __rest(s, e) {
48
+ var t = {};
49
+ for (var p in s)
50
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
51
+ t[p] = s[p];
52
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
53
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
54
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
55
+ t[p[i]] = s[p[i]];
56
+ }
57
+ return t;
58
+ }
59
+ function __decorate(decorators, target, key, desc) {
60
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
61
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
62
+ r = Reflect.decorate(decorators, target, key, desc);
63
+ else
64
+ for (var i = decorators.length - 1; i >= 0; i--)
65
+ if (d = decorators[i])
66
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
67
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
68
+ }
69
+ function __param(paramIndex, decorator) {
70
+ return function (target, key) { decorator(target, key, paramIndex); };
71
+ }
72
+ function __metadata(metadataKey, metadataValue) {
73
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
74
+ return Reflect.metadata(metadataKey, metadataValue);
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 {
80
+ step(generator.next(value));
81
+ }
82
+ catch (e) {
83
+ reject(e);
84
+ } }
85
+ function rejected(value) { try {
86
+ step(generator["throw"](value));
87
+ }
88
+ catch (e) {
89
+ reject(e);
90
+ } }
91
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
92
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
93
+ });
94
+ }
95
+ function __generator(thisArg, body) {
96
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
97
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
98
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
99
+ function verb(n) { return function (v) { return step([n, v]); }; }
100
+ function step(op) {
101
+ if (f)
102
+ throw new TypeError("Generator is already executing.");
103
+ while (_)
104
+ try {
105
+ 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)
106
+ return t;
107
+ if (y = 0, t)
108
+ op = [op[0] & 2, t.value];
109
+ switch (op[0]) {
110
+ case 0:
111
+ case 1:
112
+ t = op;
113
+ break;
114
+ case 4:
115
+ _.label++;
116
+ return { value: op[1], done: false };
117
+ case 5:
118
+ _.label++;
119
+ y = op[1];
120
+ op = [0];
121
+ continue;
122
+ case 7:
123
+ op = _.ops.pop();
124
+ _.trys.pop();
125
+ continue;
126
+ default:
127
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
128
+ _ = 0;
129
+ continue;
130
+ }
131
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
132
+ _.label = op[1];
133
+ break;
134
+ }
135
+ if (op[0] === 6 && _.label < t[1]) {
136
+ _.label = t[1];
137
+ t = op;
138
+ break;
139
+ }
140
+ if (t && _.label < t[2]) {
141
+ _.label = t[2];
142
+ _.ops.push(op);
143
+ break;
144
+ }
145
+ if (t[2])
146
+ _.ops.pop();
147
+ _.trys.pop();
148
+ continue;
149
+ }
150
+ op = body.call(thisArg, _);
151
+ }
152
+ catch (e) {
153
+ op = [6, e];
154
+ y = 0;
155
+ }
156
+ finally {
157
+ f = t = 0;
158
+ }
159
+ if (op[0] & 5)
160
+ throw op[1];
161
+ return { value: op[0] ? op[1] : void 0, done: true };
162
+ }
163
+ }
164
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
165
+ if (k2 === undefined)
166
+ k2 = k;
167
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
168
+ }) : (function (o, m, k, k2) {
169
+ if (k2 === undefined)
170
+ k2 = k;
171
+ o[k2] = m[k];
172
+ });
173
+ function __exportStar(m, exports) {
174
+ for (var p in m)
175
+ if (p !== "default" && !exports.hasOwnProperty(p))
176
+ __createBinding(exports, m, p);
177
+ }
178
+ function __values(o) {
179
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
180
+ if (m)
181
+ return m.call(o);
182
+ if (o && typeof o.length === "number")
183
+ return {
184
+ next: function () {
185
+ if (o && i >= o.length)
186
+ o = void 0;
187
+ return { value: o && o[i++], done: !o };
188
+ }
189
+ };
190
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
191
+ }
192
+ function __read(o, n) {
193
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
194
+ if (!m)
195
+ return o;
196
+ var i = m.call(o), r, ar = [], e;
197
+ try {
198
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
199
+ ar.push(r.value);
200
+ }
201
+ catch (error) {
202
+ e = { error: error };
203
+ }
204
+ finally {
205
+ try {
206
+ if (r && !r.done && (m = i["return"]))
207
+ m.call(i);
208
+ }
209
+ finally {
210
+ if (e)
211
+ throw e.error;
212
+ }
213
+ }
214
+ return ar;
215
+ }
216
+ function __spread() {
217
+ for (var ar = [], i = 0; i < arguments.length; i++)
218
+ ar = ar.concat(__read(arguments[i]));
219
+ return ar;
220
+ }
221
+ function __spreadArrays() {
222
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
223
+ s += arguments[i].length;
224
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
225
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
226
+ r[k] = a[j];
227
+ return r;
228
+ }
229
+ ;
230
+ function __await(v) {
231
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
232
+ }
233
+ function __asyncGenerator(thisArg, _arguments, generator) {
234
+ if (!Symbol.asyncIterator)
235
+ throw new TypeError("Symbol.asyncIterator is not defined.");
236
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
237
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
238
+ function verb(n) { if (g[n])
239
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
240
+ function resume(n, v) { try {
241
+ step(g[n](v));
242
+ }
243
+ catch (e) {
244
+ settle(q[0][3], e);
245
+ } }
246
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
247
+ function fulfill(value) { resume("next", value); }
248
+ function reject(value) { resume("throw", value); }
249
+ function settle(f, v) { if (f(v), q.shift(), q.length)
250
+ resume(q[0][0], q[0][1]); }
251
+ }
252
+ function __asyncDelegator(o) {
253
+ var i, p;
254
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
255
+ 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; }
256
+ }
257
+ function __asyncValues(o) {
258
+ if (!Symbol.asyncIterator)
259
+ throw new TypeError("Symbol.asyncIterator is not defined.");
260
+ var m = o[Symbol.asyncIterator], i;
261
+ 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);
262
+ 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); }); }; }
263
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
264
+ }
265
+ function __makeTemplateObject(cooked, raw) {
266
+ if (Object.defineProperty) {
267
+ Object.defineProperty(cooked, "raw", { value: raw });
268
+ }
269
+ else {
270
+ cooked.raw = raw;
271
+ }
272
+ return cooked;
273
+ }
274
+ ;
275
+ var __setModuleDefault = Object.create ? (function (o, v) {
276
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
277
+ }) : function (o, v) {
278
+ o["default"] = v;
279
+ };
280
+ function __importStar(mod) {
281
+ if (mod && mod.__esModule)
282
+ return mod;
283
+ var result = {};
284
+ if (mod != null)
285
+ for (var k in mod)
286
+ if (Object.hasOwnProperty.call(mod, k))
287
+ __createBinding(result, mod, k);
288
+ __setModuleDefault(result, mod);
289
+ return result;
290
+ }
291
+ function __importDefault(mod) {
292
+ return (mod && mod.__esModule) ? mod : { default: mod };
293
+ }
294
+ function __classPrivateFieldGet(receiver, privateMap) {
295
+ if (!privateMap.has(receiver)) {
296
+ throw new TypeError("attempted to get private field on non-instance");
297
+ }
298
+ return privateMap.get(receiver);
299
+ }
300
+ function __classPrivateFieldSet(receiver, privateMap, value) {
301
+ if (!privateMap.has(receiver)) {
302
+ throw new TypeError("attempted to set private field on non-instance");
303
+ }
304
+ privateMap.set(receiver, value);
305
+ return value;
306
306
  }
307
307
 
308
- var ValueAccessorBase = /** @class */ (function () {
309
- function ValueAccessorBase() {
310
- this.onChange = function () { };
311
- this.onTouched = function () { };
312
- }
313
- Object.defineProperty(ValueAccessorBase.prototype, "value", {
314
- get: function () {
315
- return this.innerValue;
316
- },
317
- set: function (value) {
318
- value = this.changeValue(value);
319
- this.innerValue = value;
320
- this.onChange(value);
321
- this.onTouched();
322
- },
323
- enumerable: false,
324
- configurable: true
325
- });
326
- ValueAccessorBase.prototype.changeValue = function (value) {
327
- return value;
328
- };
329
- ValueAccessorBase.prototype.writeValue = function (value) {
330
- this.innerValue = value;
331
- };
332
- ValueAccessorBase.prototype.registerOnChange = function (fn) {
333
- this.onChange = fn;
334
- };
335
- ValueAccessorBase.prototype.registerOnTouched = function (fn) {
336
- this.onTouched = fn;
337
- };
338
- ValueAccessorBase.prototype.touch = function () {
339
- this.onTouched.forEach(function (f) { return f(); });
340
- };
341
- return ValueAccessorBase;
308
+ var ValueAccessorBase = /** @class */ (function () {
309
+ function ValueAccessorBase() {
310
+ this.onChange = function () { };
311
+ this.onTouched = function () { };
312
+ }
313
+ Object.defineProperty(ValueAccessorBase.prototype, "value", {
314
+ get: function () {
315
+ return this.innerValue;
316
+ },
317
+ set: function (value) {
318
+ value = this.changeValue(value);
319
+ this.innerValue = value;
320
+ this.onChange(value);
321
+ this.onTouched();
322
+ },
323
+ enumerable: false,
324
+ configurable: true
325
+ });
326
+ ValueAccessorBase.prototype.changeValue = function (value) {
327
+ return value;
328
+ };
329
+ ValueAccessorBase.prototype.writeValue = function (value) {
330
+ this.innerValue = value;
331
+ };
332
+ ValueAccessorBase.prototype.registerOnChange = function (fn) {
333
+ this.onChange = fn;
334
+ };
335
+ ValueAccessorBase.prototype.registerOnTouched = function (fn) {
336
+ this.onTouched = fn;
337
+ };
338
+ ValueAccessorBase.prototype.touch = function () {
339
+ this.onTouched.forEach(function (f) { return f(); });
340
+ };
341
+ return ValueAccessorBase;
342
342
  }());
343
343
 
344
- var SelectEnumComponent = /** @class */ (function (_super) {
345
- __extends(SelectEnumComponent, _super);
346
- function SelectEnumComponent() {
347
- var _this = _super.apply(this, __spread(arguments)) || this;
348
- _this.placeholder = 'Selecione';
349
- _this.enabledSearch = true;
350
- _this.disabled = false;
351
- _this.search = '';
352
- return _this;
353
- }
354
- SelectEnumComponent.prototype.onKeyDown = function (event) {
355
- if (event.which === 32) {
356
- event.target.value += ' ';
357
- }
358
- event.stopPropagation();
359
- };
360
- return SelectEnumComponent;
361
- }(ValueAccessorBase));
362
- SelectEnumComponent.decorators = [
363
- { type: core.Component, args: [{
364
- selector: 'select-enum',
365
- template: "<mat-form-field class=\"apipass-select apipass-select-enum\" appearance=\"fill\">\r\n <mat-select [(ngModel)]=\"value\" [disabled]=\"disabled\" (click)=\"search = ''\" [placeholder]=\"placeholder\">\r\n <mat-option class=\"mat-select-input\" *ngIf=\"enabledSearch\" (keydown)=\"onKeyDown($event)\" disabled=\"disabled\">\r\n <input class=\"form-control\" type=\"text\" [(ngModel)]=\"search\" />\r\n </mat-option>\r\n <mat-option *ngFor=\"let enumData of data | enum | selectEnumFilter: search\" [value]=\"enumData.key\">{{enumData.value | translate}}</mat-option>\r\n </mat-select>\r\n</mat-form-field>\r\n",
366
- providers: [{
367
- provide: forms.NG_VALUE_ACCESSOR,
368
- useExisting: core.forwardRef(function () { return SelectEnumComponent; }),
369
- multi: true
370
- }],
371
- encapsulation: core.ViewEncapsulation.None,
372
- styles: [":root{--color-body-light:#fff;--color-fonts-tertiary:#777;--color-inputs-background:#fff;--color-inputs-border:#ddd;--color-primary:#222d57;--color-primary-active:#29376a;--color-primary-hover:#18203d;--color-red:red;--color-secondary:#d3d921;--color-secondary-active:#dce13f;--color-secondary-hover:#b3b81c;--color-tertiary:#efefef;--color-tertiary-active:#f1f1f1;--color-tertiary-hover:#cbcbcb;--color_components_light:#fff;--color_disabled:#e0e0e0;--color_graph_error:#eb5757;--color_graph_error_hover:#c91717;--color_graph_primary:#1643ef;--color_graph_primary_hover:#0a2692;--color_icon_remove:var(--color-red);--color_icon_success:#070;--limit-plan-color:#ff6c00}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0ysmIEDQ.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0w8mIEDQ.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0ycmIEDQ.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0x8mI.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydIhUdwzM.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydKxUdwzM.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydIRUdwzM.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydLxUd.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0-ExdGM.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0aExdGM.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0yExdGM.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0KExQ.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OOtLQ0Z.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OqtLQ0Z.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OCtLQ0Z.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0O6tLQ.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}.text-primary{color:var(--color-primary)!important}.text-secondary{color:var(--color-secondary)!important}.text-tertiary{color:var(--color-fonts-tertiary)!important}.text-weight-bold{font-weight:700!important}.text-weight-normal{font-weight:400!important}.mat-form-field-underline,.mat-input-underline{display:none}.mat-form-field-appearance-fill .mat-form-field-flex{align-items:center!important;background:var(--color-inputs-background)!important;border:1px solid var(--color-inputs-border)!important;border-radius:6px!important;display:flex!important}.mat-form-field-infix{align-items:center!important;border-top:none!important;padding:0!important}.mat-form-field-infix,.mat-select-arrow-wrapper{display:flex!important}.mat-icon-button{width:auto!important}.no-border .mat-form-field-flex{border:none!important}.no-border .mat-form-field-flex input{padding:1px}.mat-form-field-label-wrapper{top:-10px}.mat-form-field-should-float .mat-form-field-label-wrapper{font-size:14px}.placeholder-primary .mat-focused .mat-form-field-placeholder,.placeholder-primary .mat-form-field-label-wrapper,.placeholder-primary .mat-form-field-label-wrapper label,.placeholder-primary .mat-form-field-placeholder,.placeholder-primary ::ng-deep .mat-focused .mat-form-field-placeholder,.placeholder-primary ::ng-deep .mat-form-field-placeholder{color:var(--color-primary)!important}.placeholder-primary input ::placeholder{color:var(--color-primary)!important}.placeholder-bold .mat-focused .mat-form-field-placeholder,.placeholder-bold .mat-form-field-label-wrapper,.placeholder-bold .mat-form-field-label-wrapper label,.placeholder-bold .mat-form-field-placeholder,.placeholder-bold ::ng-deep .mat-focused .mat-form-field-placeholder,.placeholder-bold ::ng-deep .mat-form-field-placeholder{font-weight:700!important}.placeholder-bold input ::placeholder{font-weight:700!important}.apipass-input-text{width:100%}.apipass-input-text .mat-form-field-flex{padding:10px!important}.apipass-date-filter .mat-form-field-wrapper,.apipass-input-text .mat-form-field-wrapper,.apipass-search-input-text .mat-form-field-wrapper,.apipass-select .mat-form-field-wrapper,.custom-select-component .mat-form-field-wrapper{padding:0!important}.apipass-date-filter .mat-icon-button,.apipass-input-text .mat-icon-button,.apipass-search-input-text .mat-icon-button,.apipass-select .mat-icon-button,.custom-select-component .mat-icon-button{height:auto!important;width:auto!important}.apipass-date-filter.label-input .mat-form-field-label-wrapper,.apipass-input-text.label-input .mat-form-field-label-wrapper,.apipass-search-input-text.label-input .mat-form-field-label-wrapper,.apipass-select.label-input .mat-form-field-label-wrapper,.custom-select-component.label-input .mat-form-field-label-wrapper{padding-top:0;top:auto!important}.apipass-date-filter.label-input input,.apipass-input-text.label-input input,.apipass-search-input-text.label-input input,.apipass-select.label-input input,.custom-select-component.label-input input{padding-bottom:5px!important;padding-top:10px!important}.apipass-date-filter.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-input-text.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-search-input-text.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-select.mat-form-field-should-float .mat-form-field-label-wrapper,.custom-select-component.mat-form-field-should-float .mat-form-field-label-wrapper{margin-top:-10px!important;padding-top:0!important}.apipass-search-input-text{width:100%}.apipass-search-input-text.small-text{font-size:12px}.apipass-search-input-text .mat-form-field-flex{border-left:none!important;border-radius:0!important;border-right:none!important;border-top:none!important;padding:2px 5px 2px 2px!important}.apipass-search-input-text .search-icon{margin-top:-5px!important}.custom-select-component{width:100%}.custom-select-component .mat-form-field-flex{padding:1px 10px!important}.apipass-select{width:100%}.apipass-select .mat-form-field-flex{padding:10px 5px 10px 10px!important}.apipass-select.label-input .mat-form-field-infix{padding-bottom:7px!important;padding-top:7px!important}.apipass-date-filter{width:100%}.apipass-date-filter .mat-form-field-flex{padding:7px 10px!important}.apipass-date-filter .mat-form-field-suffix span{color:#777;cursor:pointer}.apipass-date-filter .mat-form-field-wrapper{padding-bottom:0!important}"]
373
- },] }
374
- ];
375
- SelectEnumComponent.propDecorators = {
376
- placeholder: [{ type: core.Input }],
377
- enabledSearch: [{ type: core.Input }],
378
- data: [{ type: core.Input }],
379
- disabled: [{ type: core.Input }]
380
- };
344
+ function SelectEnumComponent_mat_option_2_Template(rf, ctx) {
345
+ if (rf & 1) {
346
+ var _r3_1 = i0.ɵɵgetCurrentView();
347
+ i0.ɵɵelementStart(0, "mat-option", 4);
348
+ i0.ɵɵlistener("keydown", function SelectEnumComponent_mat_option_2_Template_mat_option_keydown_0_listener($event) { i0.ɵɵrestoreView(_r3_1); var ctx_r2 = i0.ɵɵnextContext(); return ctx_r2.onKeyDown($event); });
349
+ i0.ɵɵelementStart(1, "input", 5);
350
+ i0.ɵɵlistener("ngModelChange", function SelectEnumComponent_mat_option_2_Template_input_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r3_1); var ctx_r4 = i0.ɵɵnextContext(); return ctx_r4.search = $event; });
351
+ i0.ɵɵelementEnd();
352
+ i0.ɵɵelementEnd();
353
+ }
354
+ if (rf & 2) {
355
+ var ctx_r0 = i0.ɵɵnextContext();
356
+ i0.ɵɵadvance(1);
357
+ i0.ɵɵproperty("ngModel", ctx_r0.search);
358
+ }
359
+ }
360
+ function SelectEnumComponent_mat_option_3_Template(rf, ctx) {
361
+ if (rf & 1) {
362
+ i0.ɵɵelementStart(0, "mat-option", 6);
363
+ i0.ɵɵtext(1);
364
+ i0.ɵɵpipe(2, "translate");
365
+ i0.ɵɵelementEnd();
366
+ }
367
+ if (rf & 2) {
368
+ var enumData_r5 = ctx.$implicit;
369
+ i0.ɵɵproperty("value", enumData_r5.key);
370
+ i0.ɵɵadvance(1);
371
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 2, enumData_r5.value));
372
+ }
373
+ }
374
+ var SelectEnumComponent = /** @class */ (function (_super) {
375
+ __extends(SelectEnumComponent, _super);
376
+ function SelectEnumComponent() {
377
+ var _this = _super.apply(this, __spread(arguments)) || this;
378
+ _this.placeholder = 'Selecione';
379
+ _this.enabledSearch = true;
380
+ _this.disabled = false;
381
+ _this.search = '';
382
+ return _this;
383
+ }
384
+ SelectEnumComponent.prototype.onKeyDown = function (event) {
385
+ if (event.which === 32) {
386
+ event.target.value += ' ';
387
+ }
388
+ event.stopPropagation();
389
+ };
390
+ return SelectEnumComponent;
391
+ }(ValueAccessorBase));
392
+ SelectEnumComponent.ɵfac = function SelectEnumComponent_Factory(t) { return ɵSelectEnumComponent_BaseFactory(t || SelectEnumComponent); };
393
+ SelectEnumComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SelectEnumComponent, selectors: [["select-enum"]], inputs: { placeholder: "placeholder", enabledSearch: "enabledSearch", data: "data", disabled: "disabled" }, features: [i0.ɵɵProvidersFeature([{
394
+ provide: i4.NG_VALUE_ACCESSOR,
395
+ useExisting: i0.forwardRef(function () { return SelectEnumComponent; }),
396
+ multi: true
397
+ }]), i0.ɵɵInheritDefinitionFeature], decls: 6, vars: 10, consts: [["appearance", "fill", 1, "apipass-select", "apipass-select-enum"], [3, "ngModel", "disabled", "placeholder", "ngModelChange", "click"], ["class", "mat-select-input", "disabled", "disabled", 3, "keydown", 4, "ngIf"], [3, "value", 4, "ngFor", "ngForOf"], ["disabled", "disabled", 1, "mat-select-input", 3, "keydown"], ["type", "text", 1, "form-control", 3, "ngModel", "ngModelChange"], [3, "value"]], template: function SelectEnumComponent_Template(rf, ctx) {
398
+ if (rf & 1) {
399
+ i0.ɵɵelementStart(0, "mat-form-field", 0);
400
+ i0.ɵɵelementStart(1, "mat-select", 1);
401
+ i0.ɵɵlistener("ngModelChange", function SelectEnumComponent_Template_mat_select_ngModelChange_1_listener($event) { return ctx.value = $event; })("click", function SelectEnumComponent_Template_mat_select_click_1_listener() { return ctx.search = ""; });
402
+ i0.ɵɵtemplate(2, SelectEnumComponent_mat_option_2_Template, 2, 1, "mat-option", 2);
403
+ i0.ɵɵtemplate(3, SelectEnumComponent_mat_option_3_Template, 3, 4, "mat-option", 3);
404
+ i0.ɵɵpipe(4, "selectEnumFilter");
405
+ i0.ɵɵpipe(5, "enum");
406
+ i0.ɵɵelementEnd();
407
+ i0.ɵɵelementEnd();
408
+ }
409
+ if (rf & 2) {
410
+ i0.ɵɵadvance(1);
411
+ i0.ɵɵproperty("ngModel", ctx.value)("disabled", ctx.disabled)("placeholder", ctx.placeholder);
412
+ i0.ɵɵadvance(1);
413
+ i0.ɵɵproperty("ngIf", ctx.enabledSearch);
414
+ i0.ɵɵadvance(1);
415
+ i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind2(4, 5, i0.ɵɵpipeBind1(5, 8, ctx.data), ctx.search));
416
+ }
417
+ }, directives: [i1.MatFormField, i1$1.MatSelect, i4.NgControlStatus, i4.NgModel, i2.NgIf, i2.NgForOf, i5.MatOption, i4.DefaultValueAccessor], pipes: [i6.SelectEnumFilterPipe, i6.EnumPipe, i7.TranslatePipe], styles: [":root{--color-body-light:#fff;--color-fonts-tertiary:#777;--color-inputs-background:#fff;--color-inputs-border:#ddd;--color-primary:#222d57;--color-primary-active:#29376a;--color-primary-hover:#18203d;--color-red:red;--color-secondary:#d3d921;--color-secondary-active:#dce13f;--color-secondary-hover:#b3b81c;--color-tertiary:#efefef;--color-tertiary-active:#f1f1f1;--color-tertiary-hover:#cbcbcb;--color_components_light:#fff;--color_disabled:#e0e0e0;--color_graph_error:#eb5757;--color_graph_error_hover:#c91717;--color_graph_primary:#1643ef;--color_graph_primary_hover:#0a2692;--color_icon_remove:var(--color-red);--color_icon_success:#070;--limit-plan-color:#ff6c00}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0ysmIEDQ.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0w8mIEDQ.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0ycmIEDQ.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0x8mI.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydIhUdwzM.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydKxUdwzM.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydIRUdwzM.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydLxUd.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0-ExdGM.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0aExdGM.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0yExdGM.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0KExQ.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OOtLQ0Z.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OqtLQ0Z.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OCtLQ0Z.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0O6tLQ.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}.text-primary{color:var(--color-primary)!important}.text-secondary{color:var(--color-secondary)!important}.text-tertiary{color:var(--color-fonts-tertiary)!important}.text-weight-bold{font-weight:700!important}.text-weight-normal{font-weight:400!important}.mat-form-field-underline,.mat-input-underline{display:none}.mat-form-field-appearance-fill .mat-form-field-flex{align-items:center!important;background:var(--color-inputs-background)!important;border:1px solid var(--color-inputs-border)!important;border-radius:6px!important;display:flex!important}.mat-form-field-infix{align-items:center!important;border-top:none!important;padding:0!important}.mat-form-field-infix,.mat-select-arrow-wrapper{display:flex!important}.mat-icon-button{width:auto!important}.no-border .mat-form-field-flex{border:none!important}.no-border .mat-form-field-flex input{padding:1px}.mat-form-field-label-wrapper{top:-10px}.mat-form-field-should-float .mat-form-field-label-wrapper{font-size:14px}.placeholder-primary .mat-focused .mat-form-field-placeholder,.placeholder-primary .mat-form-field-label-wrapper,.placeholder-primary .mat-form-field-label-wrapper label,.placeholder-primary .mat-form-field-placeholder,.placeholder-primary ::ng-deep .mat-focused .mat-form-field-placeholder,.placeholder-primary ::ng-deep .mat-form-field-placeholder{color:var(--color-primary)!important}.placeholder-primary input ::placeholder{color:var(--color-primary)!important}.placeholder-bold .mat-focused .mat-form-field-placeholder,.placeholder-bold .mat-form-field-label-wrapper,.placeholder-bold .mat-form-field-label-wrapper label,.placeholder-bold .mat-form-field-placeholder,.placeholder-bold ::ng-deep .mat-focused .mat-form-field-placeholder,.placeholder-bold ::ng-deep .mat-form-field-placeholder{font-weight:700!important}.placeholder-bold input ::placeholder{font-weight:700!important}.apipass-input-text{width:100%}.apipass-input-text .mat-form-field-flex{padding:10px!important}.apipass-date-filter .mat-form-field-wrapper,.apipass-input-text .mat-form-field-wrapper,.apipass-search-input-text .mat-form-field-wrapper,.apipass-select .mat-form-field-wrapper,.custom-select-component .mat-form-field-wrapper{padding:0!important}.apipass-date-filter .mat-icon-button,.apipass-input-text .mat-icon-button,.apipass-search-input-text .mat-icon-button,.apipass-select .mat-icon-button,.custom-select-component .mat-icon-button{height:auto!important;width:auto!important}.apipass-date-filter.label-input .mat-form-field-label-wrapper,.apipass-input-text.label-input .mat-form-field-label-wrapper,.apipass-search-input-text.label-input .mat-form-field-label-wrapper,.apipass-select.label-input .mat-form-field-label-wrapper,.custom-select-component.label-input .mat-form-field-label-wrapper{padding-top:0;top:auto!important}.apipass-date-filter.label-input input,.apipass-input-text.label-input input,.apipass-search-input-text.label-input input,.apipass-select.label-input input,.custom-select-component.label-input input{padding-bottom:5px!important;padding-top:10px!important}.apipass-date-filter.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-input-text.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-search-input-text.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-select.mat-form-field-should-float .mat-form-field-label-wrapper,.custom-select-component.mat-form-field-should-float .mat-form-field-label-wrapper{margin-top:-10px!important;padding-top:0!important}.apipass-search-input-text{width:100%}.apipass-search-input-text.small-text{font-size:12px}.apipass-search-input-text .mat-form-field-flex{border-left:none!important;border-radius:0!important;border-right:none!important;border-top:none!important;padding:2px 5px 2px 2px!important}.apipass-search-input-text .search-icon{margin-top:-5px!important}.custom-select-component{width:100%}.custom-select-component .mat-form-field-flex{padding:1px 10px!important}.apipass-select{width:100%}.apipass-select .mat-form-field-flex{padding:10px 5px 10px 10px!important}.apipass-select.label-input .mat-form-field-infix{padding-bottom:7px!important;padding-top:7px!important}.apipass-date-filter{width:100%}.apipass-date-filter .mat-form-field-flex{padding:7px 10px!important}.apipass-date-filter .mat-form-field-suffix span{color:#777;cursor:pointer}.apipass-date-filter .mat-form-field-wrapper{padding-bottom:0!important}"], encapsulation: 2 });
418
+ var ɵSelectEnumComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(SelectEnumComponent);
419
+ /*@__PURE__*/ (function () {
420
+ i0.ɵsetClassMetadata(SelectEnumComponent, [{
421
+ type: i0.Component,
422
+ args: [{
423
+ selector: 'select-enum',
424
+ templateUrl: 'select-enum.component.html',
425
+ styleUrls: ['select-enum.component.scss'],
426
+ providers: [{
427
+ provide: i4.NG_VALUE_ACCESSOR,
428
+ useExisting: i0.forwardRef(function () { return SelectEnumComponent; }),
429
+ multi: true
430
+ }],
431
+ encapsulation: i0.ViewEncapsulation.None
432
+ }]
433
+ }], null, { placeholder: [{
434
+ type: i0.Input
435
+ }], enabledSearch: [{
436
+ type: i0.Input
437
+ }], data: [{
438
+ type: i0.Input
439
+ }], disabled: [{
440
+ type: i0.Input
441
+ }] });
442
+ })();
381
443
 
382
- var InputPasswordComponent = /** @class */ (function (_super) {
383
- __extends(InputPasswordComponent, _super);
384
- function InputPasswordComponent() {
385
- var _this = _super.call(this) || this;
386
- _this.label = '';
387
- _this.disabled = false;
388
- _this.showPasswordRuleDetails = false;
389
- _this.showPasswordLengthDetails = false;
390
- _this.enableLengthRule = false;
391
- _this.enableLowerCaseLetterRule = false;
392
- _this.enableUpperCaseLetterRule = false;
393
- _this.enableDigitRule = false;
394
- _this.enableSpecialCharRule = false;
395
- _this.minLength = 0;
396
- _this.maxLength = 200;
397
- _this.strengthToValid = 100;
398
- _this.lowerCaseCriteriaMsg = 'Your password must have a lowercase letter';
399
- _this.upperCaseCriteriaMsg = 'Your password must have an uppercase letter';
400
- _this.digitsCriteriaMsg = 'Your password must have a number';
401
- _this.specialCharsCriteriaMsg = 'Your password must have a special character';
402
- _this.minCharsCriteriaMsg = "Your password must be at least " + _this.minLength + " characters";
403
- _this.onValidPassword = new core.EventEmitter();
404
- return _this;
405
- }
406
- InputPasswordComponent.prototype.onKeyDown = function (event) {
407
- if (event.which === 32) {
408
- event.target.value += ' ';
409
- }
410
- event.stopPropagation();
411
- };
412
- InputPasswordComponent.prototype.onStrengthChanged = function (strength) {
413
- this.onValidPassword.emit(strength >= this.getStrength());
414
- };
415
- InputPasswordComponent.prototype.getStrength = function () {
416
- return lodash.inRange(this.strengthToValid, 0, 100) ? this.strengthToValid : 100;
417
- };
418
- return InputPasswordComponent;
419
- }(ValueAccessorBase));
420
- InputPasswordComponent.decorators = [
421
- { type: core.Component, args: [{
422
- selector: 'input-password',
423
- template: "<mat-form-field\r\n class=\"apipass-input-password apipass-input-text\"\r\n [color]=\"passwordComponent.color\"\r\n [ngClass]=\"{'label-input': label}\"\r\n appearance=\"fill\">\r\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\r\n <input matInput #password\r\n [type]=\"toggle.type\"\r\n [disabled]=\"disabled\"\r\n [maxLength]=\"maxLength\"\r\n [minlength]=\"minLength\"\r\n class=\"apipass-input\"\r\n required\r\n [(ngModel)]=\"value\" />\r\n <mat-pass-toggle-visibility #toggle matSuffix></mat-pass-toggle-visibility>\r\n <mat-hint align=\"end\" aria-live=\"polite\" *ngIf=\"showPasswordLengthDetails\">\r\n {{password.value.length}} / {{passwordComponent.max}}\r\n </mat-hint>\r\n</mat-form-field>\r\n\r\n<mat-password-strength\r\n class=\"green\"\r\n #passwordComponent\r\n (onStrengthChanged)=\"onStrengthChanged($event)\"\r\n [enableLengthRule]=\"enableLengthRule\"\r\n [min]=\"minLength\" [max]=\"maxLength\"\r\n [enableLowerCaseLetterRule]=\"enableLowerCaseLetterRule\"\r\n [enableUpperCaseLetterRule]=\"enableUpperCaseLetterRule\"\r\n [enableDigitRule]=\"enableDigitRule\"\r\n [enableSpecialCharRule]=\"enableSpecialCharRule\"\r\n [password]=\"password.value\">\r\n</mat-password-strength>\r\n\r\n<mat-password-strength-info\r\n *ngIf=\"showPasswordRuleDetails\"\r\n [lowerCaseCriteriaMsg]=\"lowerCaseCriteriaMsg\"\r\n [upperCaseCriteriaMsg]=\"upperCaseCriteriaMsg\"\r\n [digitsCriteriaMsg]=\"digitsCriteriaMsg\"\r\n [specialCharsCriteriaMsg]=\"specialCharsCriteriaMsg\"\r\n [minCharsCriteriaMsg]=\"minCharsCriteriaMsg\"\r\n [passwordComponent]=\"passwordComponent\">\r\n</mat-password-strength-info>\r\n",
424
- providers: [{
425
- provide: forms.NG_VALUE_ACCESSOR,
426
- useExisting: core.forwardRef(function () { return InputPasswordComponent; }),
427
- multi: true
428
- }],
429
- changeDetection: core.ChangeDetectionStrategy.OnPush,
430
- encapsulation: core.ViewEncapsulation.None,
431
- styles: [":root{--color-body-light:#fff;--color-fonts-tertiary:#777;--color-inputs-background:#fff;--color-inputs-border:#ddd;--color-primary:#222d57;--color-primary-active:#29376a;--color-primary-hover:#18203d;--color-red:red;--color-secondary:#d3d921;--color-secondary-active:#dce13f;--color-secondary-hover:#b3b81c;--color-tertiary:#efefef;--color-tertiary-active:#f1f1f1;--color-tertiary-hover:#cbcbcb;--color_components_light:#fff;--color_disabled:#e0e0e0;--color_graph_error:#eb5757;--color_graph_error_hover:#c91717;--color_graph_primary:#1643ef;--color_graph_primary_hover:#0a2692;--color_icon_remove:var(--color-red);--color_icon_success:#070;--limit-plan-color:#ff6c00}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0ysmIEDQ.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0w8mIEDQ.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0ycmIEDQ.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0x8mI.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydIhUdwzM.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydKxUdwzM.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydIRUdwzM.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydLxUd.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0-ExdGM.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0aExdGM.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0yExdGM.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0KExQ.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OOtLQ0Z.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OqtLQ0Z.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OCtLQ0Z.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0O6tLQ.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}.text-primary{color:var(--color-primary)!important}.text-secondary{color:var(--color-secondary)!important}.text-tertiary{color:var(--color-fonts-tertiary)!important}.text-weight-bold{font-weight:700!important}.text-weight-normal{font-weight:400!important}.mat-form-field-underline,.mat-input-underline{display:none}.mat-form-field-appearance-fill .mat-form-field-flex{align-items:center!important;background:var(--color-inputs-background)!important;border:1px solid var(--color-inputs-border)!important;border-radius:6px!important;display:flex!important}.mat-form-field-infix{align-items:center!important;border-top:none!important;padding:0!important}.mat-form-field-infix,.mat-select-arrow-wrapper{display:flex!important}.mat-icon-button{width:auto!important}.no-border .mat-form-field-flex{border:none!important}.no-border .mat-form-field-flex input{padding:1px}.mat-form-field-label-wrapper{top:-10px}.mat-form-field-should-float .mat-form-field-label-wrapper{font-size:14px}.placeholder-primary .mat-focused .mat-form-field-placeholder,.placeholder-primary .mat-form-field-label-wrapper,.placeholder-primary .mat-form-field-label-wrapper label,.placeholder-primary .mat-form-field-placeholder,.placeholder-primary ::ng-deep .mat-focused .mat-form-field-placeholder,.placeholder-primary ::ng-deep .mat-form-field-placeholder{color:var(--color-primary)!important}.placeholder-primary input ::placeholder{color:var(--color-primary)!important}.placeholder-bold .mat-focused .mat-form-field-placeholder,.placeholder-bold .mat-form-field-label-wrapper,.placeholder-bold .mat-form-field-label-wrapper label,.placeholder-bold .mat-form-field-placeholder,.placeholder-bold ::ng-deep .mat-focused .mat-form-field-placeholder,.placeholder-bold ::ng-deep .mat-form-field-placeholder{font-weight:700!important}.placeholder-bold input ::placeholder{font-weight:700!important}.apipass-input-text{width:100%}.apipass-input-text .mat-form-field-flex{padding:10px!important}.apipass-date-filter .mat-form-field-wrapper,.apipass-input-text .mat-form-field-wrapper,.apipass-search-input-text .mat-form-field-wrapper,.apipass-select .mat-form-field-wrapper,.custom-select-component .mat-form-field-wrapper{padding:0!important}.apipass-date-filter .mat-icon-button,.apipass-input-text .mat-icon-button,.apipass-search-input-text .mat-icon-button,.apipass-select .mat-icon-button,.custom-select-component .mat-icon-button{height:auto!important;width:auto!important}.apipass-date-filter.label-input .mat-form-field-label-wrapper,.apipass-input-text.label-input .mat-form-field-label-wrapper,.apipass-search-input-text.label-input .mat-form-field-label-wrapper,.apipass-select.label-input .mat-form-field-label-wrapper,.custom-select-component.label-input .mat-form-field-label-wrapper{padding-top:0;top:auto!important}.apipass-date-filter.label-input input,.apipass-input-text.label-input input,.apipass-search-input-text.label-input input,.apipass-select.label-input input,.custom-select-component.label-input input{padding-bottom:5px!important;padding-top:10px!important}.apipass-date-filter.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-input-text.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-search-input-text.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-select.mat-form-field-should-float .mat-form-field-label-wrapper,.custom-select-component.mat-form-field-should-float .mat-form-field-label-wrapper{margin-top:-10px!important;padding-top:0!important}.apipass-search-input-text{width:100%}.apipass-search-input-text.small-text{font-size:12px}.apipass-search-input-text .mat-form-field-flex{border-left:none!important;border-radius:0!important;border-right:none!important;border-top:none!important;padding:2px 5px 2px 2px!important}.apipass-search-input-text .search-icon{margin-top:-5px!important}.custom-select-component{width:100%}.custom-select-component .mat-form-field-flex{padding:1px 10px!important}.apipass-select{width:100%}.apipass-select .mat-form-field-flex{padding:10px 5px 10px 10px!important}.apipass-select.label-input .mat-form-field-infix{padding-bottom:7px!important;padding-top:7px!important}.apipass-date-filter{width:100%}.apipass-date-filter .mat-form-field-flex{padding:7px 10px!important}.apipass-date-filter .mat-form-field-suffix span{color:#777;cursor:pointer}.apipass-date-filter .mat-form-field-wrapper{padding-bottom:0!important}.apipass-input-password mat-pass-toggle-visibility{color:var(--color-primary);cursor:pointer}"]
432
- },] }
433
- ];
434
- InputPasswordComponent.ctorParameters = function () { return []; };
435
- InputPasswordComponent.propDecorators = {
436
- label: [{ type: core.Input }],
437
- disabled: [{ type: core.Input }],
438
- showPasswordRuleDetails: [{ type: core.Input }],
439
- showPasswordLengthDetails: [{ type: core.Input }],
440
- enableLengthRule: [{ type: core.Input }],
441
- enableLowerCaseLetterRule: [{ type: core.Input }],
442
- enableUpperCaseLetterRule: [{ type: core.Input }],
443
- enableDigitRule: [{ type: core.Input }],
444
- enableSpecialCharRule: [{ type: core.Input }],
445
- minLength: [{ type: core.Input }],
446
- maxLength: [{ type: core.Input }],
447
- strengthToValid: [{ type: core.Input }],
448
- lowerCaseCriteriaMsg: [{ type: core.Input }],
449
- upperCaseCriteriaMsg: [{ type: core.Input }],
450
- digitsCriteriaMsg: [{ type: core.Input }],
451
- specialCharsCriteriaMsg: [{ type: core.Input }],
452
- minCharsCriteriaMsg: [{ type: core.Input }],
453
- onValidPassword: [{ type: core.Output }]
454
- };
444
+ function InputPasswordComponent_mat_label_1_Template(rf, ctx) {
445
+ if (rf & 1) {
446
+ i0.ɵɵelementStart(0, "mat-label");
447
+ i0.ɵɵtext(1);
448
+ i0.ɵɵelementEnd();
449
+ }
450
+ if (rf & 2) {
451
+ var ctx_r0 = i0.ɵɵnextContext();
452
+ i0.ɵɵadvance(1);
453
+ i0.ɵɵtextInterpolate(ctx_r0.label);
454
+ }
455
+ }
456
+ function InputPasswordComponent_mat_hint_6_Template(rf, ctx) {
457
+ if (rf & 1) {
458
+ i0.ɵɵelementStart(0, "mat-hint", 10);
459
+ i0.ɵɵtext(1);
460
+ i0.ɵɵelementEnd();
461
+ }
462
+ if (rf & 2) {
463
+ i0.ɵɵnextContext();
464
+ var _r1 = i0.ɵɵreference(3);
465
+ var _r4 = i0.ɵɵreference(8);
466
+ i0.ɵɵadvance(1);
467
+ i0.ɵɵtextInterpolate2(" ", _r1.value.length, " / ", _r4.max, " ");
468
+ }
469
+ }
470
+ function InputPasswordComponent_mat_password_strength_info_9_Template(rf, ctx) {
471
+ if (rf & 1) {
472
+ i0.ɵɵelement(0, "mat-password-strength-info", 11);
473
+ }
474
+ if (rf & 2) {
475
+ var ctx_r5 = i0.ɵɵnextContext();
476
+ var _r4 = i0.ɵɵreference(8);
477
+ i0.ɵɵproperty("lowerCaseCriteriaMsg", ctx_r5.lowerCaseCriteriaMsg)("upperCaseCriteriaMsg", ctx_r5.upperCaseCriteriaMsg)("digitsCriteriaMsg", ctx_r5.digitsCriteriaMsg)("specialCharsCriteriaMsg", ctx_r5.specialCharsCriteriaMsg)("minCharsCriteriaMsg", ctx_r5.minCharsCriteriaMsg)("passwordComponent", _r4);
478
+ }
479
+ }
480
+ var _c0 = function (a0) { return { "label-input": a0 }; };
481
+ var InputPasswordComponent = /** @class */ (function (_super) {
482
+ __extends(InputPasswordComponent, _super);
483
+ function InputPasswordComponent() {
484
+ var _this = _super.call(this) || this;
485
+ _this.label = '';
486
+ _this.disabled = false;
487
+ _this.showPasswordRuleDetails = false;
488
+ _this.showPasswordLengthDetails = false;
489
+ _this.enableLengthRule = false;
490
+ _this.enableLowerCaseLetterRule = false;
491
+ _this.enableUpperCaseLetterRule = false;
492
+ _this.enableDigitRule = false;
493
+ _this.enableSpecialCharRule = false;
494
+ _this.minLength = 0;
495
+ _this.maxLength = 200;
496
+ _this.strengthToValid = 100;
497
+ _this.lowerCaseCriteriaMsg = 'Your password must have a lowercase letter';
498
+ _this.upperCaseCriteriaMsg = 'Your password must have an uppercase letter';
499
+ _this.digitsCriteriaMsg = 'Your password must have a number';
500
+ _this.specialCharsCriteriaMsg = 'Your password must have a special character';
501
+ _this.minCharsCriteriaMsg = "Your password must be at least " + _this.minLength + " characters";
502
+ _this.onValidPassword = new i0.EventEmitter();
503
+ return _this;
504
+ }
505
+ InputPasswordComponent.prototype.onKeyDown = function (event) {
506
+ if (event.which === 32) {
507
+ event.target.value += ' ';
508
+ }
509
+ event.stopPropagation();
510
+ };
511
+ InputPasswordComponent.prototype.onStrengthChanged = function (strength) {
512
+ this.onValidPassword.emit(strength >= this.getStrength());
513
+ };
514
+ InputPasswordComponent.prototype.getStrength = function () {
515
+ return lodash.inRange(this.strengthToValid, 0, 100) ? this.strengthToValid : 100;
516
+ };
517
+ return InputPasswordComponent;
518
+ }(ValueAccessorBase));
519
+ InputPasswordComponent.ɵfac = function InputPasswordComponent_Factory(t) { return new (t || InputPasswordComponent)(); };
520
+ InputPasswordComponent.ɵcmp = i0.ɵɵdefineComponent({ type: InputPasswordComponent, selectors: [["input-password"]], inputs: { label: "label", disabled: "disabled", showPasswordRuleDetails: "showPasswordRuleDetails", showPasswordLengthDetails: "showPasswordLengthDetails", enableLengthRule: "enableLengthRule", enableLowerCaseLetterRule: "enableLowerCaseLetterRule", enableUpperCaseLetterRule: "enableUpperCaseLetterRule", enableDigitRule: "enableDigitRule", enableSpecialCharRule: "enableSpecialCharRule", minLength: "minLength", maxLength: "maxLength", strengthToValid: "strengthToValid", lowerCaseCriteriaMsg: "lowerCaseCriteriaMsg", upperCaseCriteriaMsg: "upperCaseCriteriaMsg", digitsCriteriaMsg: "digitsCriteriaMsg", specialCharsCriteriaMsg: "specialCharsCriteriaMsg", minCharsCriteriaMsg: "minCharsCriteriaMsg" }, outputs: { onValidPassword: "onValidPassword" }, features: [i0.ɵɵProvidersFeature([{
521
+ provide: i4.NG_VALUE_ACCESSOR,
522
+ useExisting: i0.forwardRef(function () { return InputPasswordComponent; }),
523
+ multi: true
524
+ }]), i0.ɵɵInheritDefinitionFeature], decls: 10, vars: 20, consts: [["appearance", "fill", 1, "apipass-input-password", "apipass-input-text", 3, "color", "ngClass"], [4, "ngIf"], ["matInput", "", "required", "", 1, "apipass-input", 3, "type", "disabled", "maxLength", "minlength", "ngModel", "ngModelChange"], ["password", ""], ["matSuffix", ""], ["toggle", ""], ["align", "end", "aria-live", "polite", 4, "ngIf"], [1, "green", 3, "enableLengthRule", "min", "max", "enableLowerCaseLetterRule", "enableUpperCaseLetterRule", "enableDigitRule", "enableSpecialCharRule", "password", "onStrengthChanged"], ["passwordComponent", ""], [3, "lowerCaseCriteriaMsg", "upperCaseCriteriaMsg", "digitsCriteriaMsg", "specialCharsCriteriaMsg", "minCharsCriteriaMsg", "passwordComponent", 4, "ngIf"], ["align", "end", "aria-live", "polite"], [3, "lowerCaseCriteriaMsg", "upperCaseCriteriaMsg", "digitsCriteriaMsg", "specialCharsCriteriaMsg", "minCharsCriteriaMsg", "passwordComponent"]], template: function InputPasswordComponent_Template(rf, ctx) {
525
+ if (rf & 1) {
526
+ i0.ɵɵelementStart(0, "mat-form-field", 0);
527
+ i0.ɵɵtemplate(1, InputPasswordComponent_mat_label_1_Template, 2, 1, "mat-label", 1);
528
+ i0.ɵɵelementStart(2, "input", 2, 3);
529
+ i0.ɵɵlistener("ngModelChange", function InputPasswordComponent_Template_input_ngModelChange_2_listener($event) { return ctx.value = $event; });
530
+ i0.ɵɵelementEnd();
531
+ i0.ɵɵelement(4, "mat-pass-toggle-visibility", 4, 5);
532
+ i0.ɵɵtemplate(6, InputPasswordComponent_mat_hint_6_Template, 2, 2, "mat-hint", 6);
533
+ i0.ɵɵelementEnd();
534
+ i0.ɵɵelementStart(7, "mat-password-strength", 7, 8);
535
+ i0.ɵɵlistener("onStrengthChanged", function InputPasswordComponent_Template_mat_password_strength_onStrengthChanged_7_listener($event) { return ctx.onStrengthChanged($event); });
536
+ i0.ɵɵelementEnd();
537
+ i0.ɵɵtemplate(9, InputPasswordComponent_mat_password_strength_info_9_Template, 1, 6, "mat-password-strength-info", 9);
538
+ }
539
+ if (rf & 2) {
540
+ var _r1 = i0.ɵɵreference(3);
541
+ var _r2 = i0.ɵɵreference(5);
542
+ var _r4 = i0.ɵɵreference(8);
543
+ i0.ɵɵproperty("color", _r4.color)("ngClass", i0.ɵɵpureFunction1(18, _c0, ctx.label));
544
+ i0.ɵɵadvance(1);
545
+ i0.ɵɵproperty("ngIf", ctx.label);
546
+ i0.ɵɵadvance(1);
547
+ i0.ɵɵproperty("type", _r2.type)("disabled", ctx.disabled)("maxLength", ctx.maxLength)("minlength", ctx.minLength)("ngModel", ctx.value);
548
+ i0.ɵɵadvance(4);
549
+ i0.ɵɵproperty("ngIf", ctx.showPasswordLengthDetails);
550
+ i0.ɵɵadvance(1);
551
+ i0.ɵɵproperty("enableLengthRule", ctx.enableLengthRule)("min", ctx.minLength)("max", ctx.maxLength)("enableLowerCaseLetterRule", ctx.enableLowerCaseLetterRule)("enableUpperCaseLetterRule", ctx.enableUpperCaseLetterRule)("enableDigitRule", ctx.enableDigitRule)("enableSpecialCharRule", ctx.enableSpecialCharRule)("password", _r1.value);
552
+ i0.ɵɵadvance(2);
553
+ i0.ɵɵproperty("ngIf", ctx.showPasswordRuleDetails);
554
+ }
555
+ }, directives: [i1.MatFormField, i2.NgClass, i2.NgIf, i3.MatInput, i4.DefaultValueAccessor, i4.RequiredValidator, i4.MinLengthValidator, i4.NgControlStatus, i4.NgModel, i5$1.MatPassToggleVisibilityComponent, i1.MatSuffix, i5$1.MatPasswordStrengthComponent, i1.MatLabel, i1.MatHint, i5$1.MatPasswordStrengthInfoComponent], styles: [":root{--color-body-light:#fff;--color-fonts-tertiary:#777;--color-inputs-background:#fff;--color-inputs-border:#ddd;--color-primary:#222d57;--color-primary-active:#29376a;--color-primary-hover:#18203d;--color-red:red;--color-secondary:#d3d921;--color-secondary-active:#dce13f;--color-secondary-hover:#b3b81c;--color-tertiary:#efefef;--color-tertiary-active:#f1f1f1;--color-tertiary-hover:#cbcbcb;--color_components_light:#fff;--color_disabled:#e0e0e0;--color_graph_error:#eb5757;--color_graph_error_hover:#c91717;--color_graph_primary:#1643ef;--color_graph_primary_hover:#0a2692;--color_icon_remove:var(--color-red);--color_icon_success:#070;--limit-plan-color:#ff6c00}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0ysmIEDQ.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0w8mIEDQ.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0ycmIEDQ.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0x8mI.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydIhUdwzM.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydKxUdwzM.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydIRUdwzM.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydLxUd.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0-ExdGM.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0aExdGM.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0yExdGM.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0KExQ.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OOtLQ0Z.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OqtLQ0Z.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OCtLQ0Z.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0O6tLQ.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}.text-primary{color:var(--color-primary)!important}.text-secondary{color:var(--color-secondary)!important}.text-tertiary{color:var(--color-fonts-tertiary)!important}.text-weight-bold{font-weight:700!important}.text-weight-normal{font-weight:400!important}.mat-form-field-underline,.mat-input-underline{display:none}.mat-form-field-appearance-fill .mat-form-field-flex{align-items:center!important;background:var(--color-inputs-background)!important;border:1px solid var(--color-inputs-border)!important;border-radius:6px!important;display:flex!important}.mat-form-field-infix{align-items:center!important;border-top:none!important;padding:0!important}.mat-form-field-infix,.mat-select-arrow-wrapper{display:flex!important}.mat-icon-button{width:auto!important}.no-border .mat-form-field-flex{border:none!important}.no-border .mat-form-field-flex input{padding:1px}.mat-form-field-label-wrapper{top:-10px}.mat-form-field-should-float .mat-form-field-label-wrapper{font-size:14px}.placeholder-primary .mat-focused .mat-form-field-placeholder,.placeholder-primary .mat-form-field-label-wrapper,.placeholder-primary .mat-form-field-label-wrapper label,.placeholder-primary .mat-form-field-placeholder,.placeholder-primary ::ng-deep .mat-focused .mat-form-field-placeholder,.placeholder-primary ::ng-deep .mat-form-field-placeholder{color:var(--color-primary)!important}.placeholder-primary input ::placeholder{color:var(--color-primary)!important}.placeholder-bold .mat-focused .mat-form-field-placeholder,.placeholder-bold .mat-form-field-label-wrapper,.placeholder-bold .mat-form-field-label-wrapper label,.placeholder-bold .mat-form-field-placeholder,.placeholder-bold ::ng-deep .mat-focused .mat-form-field-placeholder,.placeholder-bold ::ng-deep .mat-form-field-placeholder{font-weight:700!important}.placeholder-bold input ::placeholder{font-weight:700!important}.apipass-input-text{width:100%}.apipass-input-text .mat-form-field-flex{padding:10px!important}.apipass-date-filter .mat-form-field-wrapper,.apipass-input-text .mat-form-field-wrapper,.apipass-search-input-text .mat-form-field-wrapper,.apipass-select .mat-form-field-wrapper,.custom-select-component .mat-form-field-wrapper{padding:0!important}.apipass-date-filter .mat-icon-button,.apipass-input-text .mat-icon-button,.apipass-search-input-text .mat-icon-button,.apipass-select .mat-icon-button,.custom-select-component .mat-icon-button{height:auto!important;width:auto!important}.apipass-date-filter.label-input .mat-form-field-label-wrapper,.apipass-input-text.label-input .mat-form-field-label-wrapper,.apipass-search-input-text.label-input .mat-form-field-label-wrapper,.apipass-select.label-input .mat-form-field-label-wrapper,.custom-select-component.label-input .mat-form-field-label-wrapper{padding-top:0;top:auto!important}.apipass-date-filter.label-input input,.apipass-input-text.label-input input,.apipass-search-input-text.label-input input,.apipass-select.label-input input,.custom-select-component.label-input input{padding-bottom:5px!important;padding-top:10px!important}.apipass-date-filter.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-input-text.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-search-input-text.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-select.mat-form-field-should-float .mat-form-field-label-wrapper,.custom-select-component.mat-form-field-should-float .mat-form-field-label-wrapper{margin-top:-10px!important;padding-top:0!important}.apipass-search-input-text{width:100%}.apipass-search-input-text.small-text{font-size:12px}.apipass-search-input-text .mat-form-field-flex{border-left:none!important;border-radius:0!important;border-right:none!important;border-top:none!important;padding:2px 5px 2px 2px!important}.apipass-search-input-text .search-icon{margin-top:-5px!important}.custom-select-component{width:100%}.custom-select-component .mat-form-field-flex{padding:1px 10px!important}.apipass-select{width:100%}.apipass-select .mat-form-field-flex{padding:10px 5px 10px 10px!important}.apipass-select.label-input .mat-form-field-infix{padding-bottom:7px!important;padding-top:7px!important}.apipass-date-filter{width:100%}.apipass-date-filter .mat-form-field-flex{padding:7px 10px!important}.apipass-date-filter .mat-form-field-suffix span{color:#777;cursor:pointer}.apipass-date-filter .mat-form-field-wrapper{padding-bottom:0!important}.apipass-input-password mat-pass-toggle-visibility{color:var(--color-primary);cursor:pointer}"], encapsulation: 2, changeDetection: 0 });
556
+ /*@__PURE__*/ (function () {
557
+ i0.ɵsetClassMetadata(InputPasswordComponent, [{
558
+ type: i0.Component,
559
+ args: [{
560
+ selector: 'input-password',
561
+ templateUrl: 'input-password.component.html',
562
+ styleUrls: ['input-password.component.scss'],
563
+ providers: [{
564
+ provide: i4.NG_VALUE_ACCESSOR,
565
+ useExisting: i0.forwardRef(function () { return InputPasswordComponent; }),
566
+ multi: true
567
+ }],
568
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
569
+ encapsulation: i0.ViewEncapsulation.None
570
+ }]
571
+ }], function () { return []; }, { label: [{
572
+ type: i0.Input
573
+ }], disabled: [{
574
+ type: i0.Input
575
+ }], showPasswordRuleDetails: [{
576
+ type: i0.Input
577
+ }], showPasswordLengthDetails: [{
578
+ type: i0.Input
579
+ }], enableLengthRule: [{
580
+ type: i0.Input
581
+ }], enableLowerCaseLetterRule: [{
582
+ type: i0.Input
583
+ }], enableUpperCaseLetterRule: [{
584
+ type: i0.Input
585
+ }], enableDigitRule: [{
586
+ type: i0.Input
587
+ }], enableSpecialCharRule: [{
588
+ type: i0.Input
589
+ }], minLength: [{
590
+ type: i0.Input
591
+ }], maxLength: [{
592
+ type: i0.Input
593
+ }], strengthToValid: [{
594
+ type: i0.Input
595
+ }], lowerCaseCriteriaMsg: [{
596
+ type: i0.Input
597
+ }], upperCaseCriteriaMsg: [{
598
+ type: i0.Input
599
+ }], digitsCriteriaMsg: [{
600
+ type: i0.Input
601
+ }], specialCharsCriteriaMsg: [{
602
+ type: i0.Input
603
+ }], minCharsCriteriaMsg: [{
604
+ type: i0.Input
605
+ }], onValidPassword: [{
606
+ type: i0.Output
607
+ }] });
608
+ })();
455
609
 
456
- var InputTextComponent = /** @class */ (function (_super) {
457
- __extends(InputTextComponent, _super);
458
- function InputTextComponent() {
459
- var _this = _super.apply(this, __spread(arguments)) || this;
460
- _this.label = '';
461
- _this.disabled = false;
462
- _this.iconSuffix = '';
463
- _this.iconPrefix = '';
464
- _this.autoComplete = 'on';
465
- _this.suffixIconClick = new core.EventEmitter();
466
- _this.prefixIconClick = new core.EventEmitter();
467
- return _this;
468
- }
469
- InputTextComponent.prototype.onKeyDown = function (event) {
470
- if (event.which === 32) {
471
- event.target.value += ' ';
472
- }
473
- event.stopPropagation();
474
- };
475
- InputTextComponent.prototype.prefixClick = function () {
476
- this.prefixIconClick.emit(true);
477
- };
478
- InputTextComponent.prototype.suffixClick = function () {
479
- this.suffixIconClick.emit(true);
480
- };
481
- return InputTextComponent;
482
- }(ValueAccessorBase));
483
- InputTextComponent.decorators = [
484
- { type: core.Component, args: [{
485
- selector: 'input-text',
486
- template: "<mat-form-field class=\"apipass-input-text label-input\" appearance=\"fill\">\r\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\r\n <mat-icon class=\"mat-icon-prefix\" matSuffix *ngIf=\"iconPrefix\" (click)=\"prefixClick()\">{{iconPrefix}}</mat-icon>\r\n <input matInput type=\"text\" class=\"input-text\" [(ngModel)]=\"value\" [disabled]=\"disabled\" [autocomplete]=\"autoComplete\" />\r\n <mat-icon class=\"mat-icon-suffix\" matSuffix *ngIf=\"iconSuffix\" (click)=\"suffixClick()\">{{iconSuffix}}</mat-icon>\r\n</mat-form-field>\r\n",
487
- providers: [{
488
- provide: forms.NG_VALUE_ACCESSOR,
489
- useExisting: core.forwardRef(function () { return InputTextComponent; }),
490
- multi: true
491
- }],
492
- encapsulation: core.ViewEncapsulation.None,
493
- styles: [":root{--color-body-light:#fff;--color-fonts-tertiary:#777;--color-inputs-background:#fff;--color-inputs-border:#ddd;--color-primary:#222d57;--color-primary-active:#29376a;--color-primary-hover:#18203d;--color-red:red;--color-secondary:#d3d921;--color-secondary-active:#dce13f;--color-secondary-hover:#b3b81c;--color-tertiary:#efefef;--color-tertiary-active:#f1f1f1;--color-tertiary-hover:#cbcbcb;--color_components_light:#fff;--color_disabled:#e0e0e0;--color_graph_error:#eb5757;--color_graph_error_hover:#c91717;--color_graph_primary:#1643ef;--color_graph_primary_hover:#0a2692;--color_icon_remove:var(--color-red);--color_icon_success:#070;--limit-plan-color:#ff6c00}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0ysmIEDQ.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0w8mIEDQ.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0ycmIEDQ.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0x8mI.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydIhUdwzM.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydKxUdwzM.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydIRUdwzM.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydLxUd.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0-ExdGM.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0aExdGM.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0yExdGM.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0KExQ.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OOtLQ0Z.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OqtLQ0Z.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OCtLQ0Z.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0O6tLQ.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}.text-primary{color:var(--color-primary)!important}.text-secondary{color:var(--color-secondary)!important}.text-tertiary{color:var(--color-fonts-tertiary)!important}.text-weight-bold{font-weight:700!important}.text-weight-normal{font-weight:400!important}.mat-form-field-underline,.mat-input-underline{display:none}.mat-form-field-appearance-fill .mat-form-field-flex{align-items:center!important;background:var(--color-inputs-background)!important;border:1px solid var(--color-inputs-border)!important;border-radius:6px!important;display:flex!important}.mat-form-field-infix{align-items:center!important;border-top:none!important;padding:0!important}.mat-form-field-infix,.mat-select-arrow-wrapper{display:flex!important}.mat-icon-button{width:auto!important}.no-border .mat-form-field-flex{border:none!important}.no-border .mat-form-field-flex input{padding:1px}.mat-form-field-label-wrapper{top:-10px}.mat-form-field-should-float .mat-form-field-label-wrapper{font-size:14px}.placeholder-primary .mat-focused .mat-form-field-placeholder,.placeholder-primary .mat-form-field-label-wrapper,.placeholder-primary .mat-form-field-label-wrapper label,.placeholder-primary .mat-form-field-placeholder,.placeholder-primary ::ng-deep .mat-focused .mat-form-field-placeholder,.placeholder-primary ::ng-deep .mat-form-field-placeholder{color:var(--color-primary)!important}.placeholder-primary input ::placeholder{color:var(--color-primary)!important}.placeholder-bold .mat-focused .mat-form-field-placeholder,.placeholder-bold .mat-form-field-label-wrapper,.placeholder-bold .mat-form-field-label-wrapper label,.placeholder-bold .mat-form-field-placeholder,.placeholder-bold ::ng-deep .mat-focused .mat-form-field-placeholder,.placeholder-bold ::ng-deep .mat-form-field-placeholder{font-weight:700!important}.placeholder-bold input ::placeholder{font-weight:700!important}.apipass-input-text{width:100%}.apipass-input-text .mat-form-field-flex{padding:10px!important}.apipass-date-filter .mat-form-field-wrapper,.apipass-input-text .mat-form-field-wrapper,.apipass-search-input-text .mat-form-field-wrapper,.apipass-select .mat-form-field-wrapper,.custom-select-component .mat-form-field-wrapper{padding:0!important}.apipass-date-filter .mat-icon-button,.apipass-input-text .mat-icon-button,.apipass-search-input-text .mat-icon-button,.apipass-select .mat-icon-button,.custom-select-component .mat-icon-button{height:auto!important;width:auto!important}.apipass-date-filter.label-input .mat-form-field-label-wrapper,.apipass-input-text.label-input .mat-form-field-label-wrapper,.apipass-search-input-text.label-input .mat-form-field-label-wrapper,.apipass-select.label-input .mat-form-field-label-wrapper,.custom-select-component.label-input .mat-form-field-label-wrapper{padding-top:0;top:auto!important}.apipass-date-filter.label-input input,.apipass-input-text.label-input input,.apipass-search-input-text.label-input input,.apipass-select.label-input input,.custom-select-component.label-input input{padding-bottom:5px!important;padding-top:10px!important}.apipass-date-filter.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-input-text.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-search-input-text.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-select.mat-form-field-should-float .mat-form-field-label-wrapper,.custom-select-component.mat-form-field-should-float .mat-form-field-label-wrapper{margin-top:-10px!important;padding-top:0!important}.apipass-search-input-text{width:100%}.apipass-search-input-text.small-text{font-size:12px}.apipass-search-input-text .mat-form-field-flex{border-left:none!important;border-radius:0!important;border-right:none!important;border-top:none!important;padding:2px 5px 2px 2px!important}.apipass-search-input-text .search-icon{margin-top:-5px!important}.custom-select-component{width:100%}.custom-select-component .mat-form-field-flex{padding:1px 10px!important}.apipass-select{width:100%}.apipass-select .mat-form-field-flex{padding:10px 5px 10px 10px!important}.apipass-select.label-input .mat-form-field-infix{padding-bottom:7px!important;padding-top:7px!important}.apipass-date-filter{width:100%}.apipass-date-filter .mat-form-field-flex{padding:7px 10px!important}.apipass-date-filter .mat-form-field-suffix span{color:#777;cursor:pointer}.apipass-date-filter .mat-form-field-wrapper{padding-bottom:0!important}.apipass-input-text .mat-icon-suffix{margin-right:-8px}"]
494
- },] }
495
- ];
496
- InputTextComponent.propDecorators = {
497
- label: [{ type: core.Input }],
498
- disabled: [{ type: core.Input }],
499
- iconSuffix: [{ type: core.Input }],
500
- iconPrefix: [{ type: core.Input }],
501
- autoComplete: [{ type: core.Input }],
502
- suffixIconClick: [{ type: core.Output }],
503
- prefixIconClick: [{ type: core.Output }]
504
- };
610
+ function InputTextComponent_mat_label_1_Template(rf, ctx) {
611
+ if (rf & 1) {
612
+ i0.ɵɵelementStart(0, "mat-label");
613
+ i0.ɵɵtext(1);
614
+ i0.ɵɵelementEnd();
615
+ }
616
+ if (rf & 2) {
617
+ var ctx_r0 = i0.ɵɵnextContext();
618
+ i0.ɵɵadvance(1);
619
+ i0.ɵɵtextInterpolate(ctx_r0.label);
620
+ }
621
+ }
622
+ function InputTextComponent_mat_icon_2_Template(rf, ctx) {
623
+ if (rf & 1) {
624
+ var _r4_1 = i0.ɵɵgetCurrentView();
625
+ i0.ɵɵelementStart(0, "mat-icon", 5);
626
+ i0.ɵɵlistener("click", function InputTextComponent_mat_icon_2_Template_mat_icon_click_0_listener() { i0.ɵɵrestoreView(_r4_1); var ctx_r3 = i0.ɵɵnextContext(); return ctx_r3.prefixClick(); });
627
+ i0.ɵɵtext(1);
628
+ i0.ɵɵelementEnd();
629
+ }
630
+ if (rf & 2) {
631
+ var ctx_r1 = i0.ɵɵnextContext();
632
+ i0.ɵɵadvance(1);
633
+ i0.ɵɵtextInterpolate(ctx_r1.iconPrefix);
634
+ }
635
+ }
636
+ function InputTextComponent_mat_icon_4_Template(rf, ctx) {
637
+ if (rf & 1) {
638
+ var _r6_1 = i0.ɵɵgetCurrentView();
639
+ i0.ɵɵelementStart(0, "mat-icon", 6);
640
+ i0.ɵɵlistener("click", function InputTextComponent_mat_icon_4_Template_mat_icon_click_0_listener() { i0.ɵɵrestoreView(_r6_1); var ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.suffixClick(); });
641
+ i0.ɵɵtext(1);
642
+ i0.ɵɵelementEnd();
643
+ }
644
+ if (rf & 2) {
645
+ var ctx_r2 = i0.ɵɵnextContext();
646
+ i0.ɵɵadvance(1);
647
+ i0.ɵɵtextInterpolate(ctx_r2.iconSuffix);
648
+ }
649
+ }
650
+ var InputTextComponent = /** @class */ (function (_super) {
651
+ __extends(InputTextComponent, _super);
652
+ function InputTextComponent() {
653
+ var _this = _super.apply(this, __spread(arguments)) || this;
654
+ _this.label = '';
655
+ _this.disabled = false;
656
+ _this.iconSuffix = '';
657
+ _this.iconPrefix = '';
658
+ _this.autoComplete = 'on';
659
+ _this.suffixIconClick = new i0.EventEmitter();
660
+ _this.prefixIconClick = new i0.EventEmitter();
661
+ return _this;
662
+ }
663
+ InputTextComponent.prototype.onKeyDown = function (event) {
664
+ if (event.which === 32) {
665
+ event.target.value += ' ';
666
+ }
667
+ event.stopPropagation();
668
+ };
669
+ InputTextComponent.prototype.prefixClick = function () {
670
+ this.prefixIconClick.emit(true);
671
+ };
672
+ InputTextComponent.prototype.suffixClick = function () {
673
+ this.suffixIconClick.emit(true);
674
+ };
675
+ return InputTextComponent;
676
+ }(ValueAccessorBase));
677
+ InputTextComponent.ɵfac = function InputTextComponent_Factory(t) { return ɵInputTextComponent_BaseFactory(t || InputTextComponent); };
678
+ InputTextComponent.ɵcmp = i0.ɵɵdefineComponent({ type: InputTextComponent, selectors: [["input-text"]], inputs: { label: "label", disabled: "disabled", iconSuffix: "iconSuffix", iconPrefix: "iconPrefix", autoComplete: "autoComplete" }, outputs: { suffixIconClick: "suffixIconClick", prefixIconClick: "prefixIconClick" }, features: [i0.ɵɵProvidersFeature([{
679
+ provide: i4.NG_VALUE_ACCESSOR,
680
+ useExisting: i0.forwardRef(function () { return InputTextComponent; }),
681
+ multi: true
682
+ }]), i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 6, consts: [["appearance", "fill", 1, "apipass-input-text", "label-input"], [4, "ngIf"], ["class", "mat-icon-prefix", "matSuffix", "", 3, "click", 4, "ngIf"], ["matInput", "", "type", "text", 1, "input-text", 3, "ngModel", "disabled", "autocomplete", "ngModelChange"], ["class", "mat-icon-suffix", "matSuffix", "", 3, "click", 4, "ngIf"], ["matSuffix", "", 1, "mat-icon-prefix", 3, "click"], ["matSuffix", "", 1, "mat-icon-suffix", 3, "click"]], template: function InputTextComponent_Template(rf, ctx) {
683
+ if (rf & 1) {
684
+ i0.ɵɵelementStart(0, "mat-form-field", 0);
685
+ i0.ɵɵtemplate(1, InputTextComponent_mat_label_1_Template, 2, 1, "mat-label", 1);
686
+ i0.ɵɵtemplate(2, InputTextComponent_mat_icon_2_Template, 2, 1, "mat-icon", 2);
687
+ i0.ɵɵelementStart(3, "input", 3);
688
+ i0.ɵɵlistener("ngModelChange", function InputTextComponent_Template_input_ngModelChange_3_listener($event) { return ctx.value = $event; });
689
+ i0.ɵɵelementEnd();
690
+ i0.ɵɵtemplate(4, InputTextComponent_mat_icon_4_Template, 2, 1, "mat-icon", 4);
691
+ i0.ɵɵelementEnd();
692
+ }
693
+ if (rf & 2) {
694
+ i0.ɵɵadvance(1);
695
+ i0.ɵɵproperty("ngIf", ctx.label);
696
+ i0.ɵɵadvance(1);
697
+ i0.ɵɵproperty("ngIf", ctx.iconPrefix);
698
+ i0.ɵɵadvance(1);
699
+ i0.ɵɵproperty("ngModel", ctx.value)("disabled", ctx.disabled)("autocomplete", ctx.autoComplete);
700
+ i0.ɵɵadvance(1);
701
+ i0.ɵɵproperty("ngIf", ctx.iconSuffix);
702
+ }
703
+ }, directives: [i1.MatFormField, i2.NgIf, i3.MatInput, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgModel, i1.MatLabel, i5$2.MatIcon, i1.MatSuffix], styles: [":root{--color-body-light:#fff;--color-fonts-tertiary:#777;--color-inputs-background:#fff;--color-inputs-border:#ddd;--color-primary:#222d57;--color-primary-active:#29376a;--color-primary-hover:#18203d;--color-red:red;--color-secondary:#d3d921;--color-secondary-active:#dce13f;--color-secondary-hover:#b3b81c;--color-tertiary:#efefef;--color-tertiary-active:#f1f1f1;--color-tertiary-hover:#cbcbcb;--color_components_light:#fff;--color_disabled:#e0e0e0;--color_graph_error:#eb5757;--color_graph_error_hover:#c91717;--color_graph_primary:#1643ef;--color_graph_primary_hover:#0a2692;--color_icon_remove:var(--color-red);--color_icon_success:#070;--limit-plan-color:#ff6c00}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0ysmIEDQ.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0w8mIEDQ.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0ycmIEDQ.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0x8mI.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydIhUdwzM.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydKxUdwzM.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydIRUdwzM.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydLxUd.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0-ExdGM.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0aExdGM.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0yExdGM.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0KExQ.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OOtLQ0Z.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OqtLQ0Z.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OCtLQ0Z.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0O6tLQ.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}.text-primary{color:var(--color-primary)!important}.text-secondary{color:var(--color-secondary)!important}.text-tertiary{color:var(--color-fonts-tertiary)!important}.text-weight-bold{font-weight:700!important}.text-weight-normal{font-weight:400!important}.mat-form-field-underline,.mat-input-underline{display:none}.mat-form-field-appearance-fill .mat-form-field-flex{align-items:center!important;background:var(--color-inputs-background)!important;border:1px solid var(--color-inputs-border)!important;border-radius:6px!important;display:flex!important}.mat-form-field-infix{align-items:center!important;border-top:none!important;padding:0!important}.mat-form-field-infix,.mat-select-arrow-wrapper{display:flex!important}.mat-icon-button{width:auto!important}.no-border .mat-form-field-flex{border:none!important}.no-border .mat-form-field-flex input{padding:1px}.mat-form-field-label-wrapper{top:-10px}.mat-form-field-should-float .mat-form-field-label-wrapper{font-size:14px}.placeholder-primary .mat-focused .mat-form-field-placeholder,.placeholder-primary .mat-form-field-label-wrapper,.placeholder-primary .mat-form-field-label-wrapper label,.placeholder-primary .mat-form-field-placeholder,.placeholder-primary ::ng-deep .mat-focused .mat-form-field-placeholder,.placeholder-primary ::ng-deep .mat-form-field-placeholder{color:var(--color-primary)!important}.placeholder-primary input ::placeholder{color:var(--color-primary)!important}.placeholder-bold .mat-focused .mat-form-field-placeholder,.placeholder-bold .mat-form-field-label-wrapper,.placeholder-bold .mat-form-field-label-wrapper label,.placeholder-bold .mat-form-field-placeholder,.placeholder-bold ::ng-deep .mat-focused .mat-form-field-placeholder,.placeholder-bold ::ng-deep .mat-form-field-placeholder{font-weight:700!important}.placeholder-bold input ::placeholder{font-weight:700!important}.apipass-input-text{width:100%}.apipass-input-text .mat-form-field-flex{padding:10px!important}.apipass-date-filter .mat-form-field-wrapper,.apipass-input-text .mat-form-field-wrapper,.apipass-search-input-text .mat-form-field-wrapper,.apipass-select .mat-form-field-wrapper,.custom-select-component .mat-form-field-wrapper{padding:0!important}.apipass-date-filter .mat-icon-button,.apipass-input-text .mat-icon-button,.apipass-search-input-text .mat-icon-button,.apipass-select .mat-icon-button,.custom-select-component .mat-icon-button{height:auto!important;width:auto!important}.apipass-date-filter.label-input .mat-form-field-label-wrapper,.apipass-input-text.label-input .mat-form-field-label-wrapper,.apipass-search-input-text.label-input .mat-form-field-label-wrapper,.apipass-select.label-input .mat-form-field-label-wrapper,.custom-select-component.label-input .mat-form-field-label-wrapper{padding-top:0;top:auto!important}.apipass-date-filter.label-input input,.apipass-input-text.label-input input,.apipass-search-input-text.label-input input,.apipass-select.label-input input,.custom-select-component.label-input input{padding-bottom:5px!important;padding-top:10px!important}.apipass-date-filter.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-input-text.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-search-input-text.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-select.mat-form-field-should-float .mat-form-field-label-wrapper,.custom-select-component.mat-form-field-should-float .mat-form-field-label-wrapper{margin-top:-10px!important;padding-top:0!important}.apipass-search-input-text{width:100%}.apipass-search-input-text.small-text{font-size:12px}.apipass-search-input-text .mat-form-field-flex{border-left:none!important;border-radius:0!important;border-right:none!important;border-top:none!important;padding:2px 5px 2px 2px!important}.apipass-search-input-text .search-icon{margin-top:-5px!important}.custom-select-component{width:100%}.custom-select-component .mat-form-field-flex{padding:1px 10px!important}.apipass-select{width:100%}.apipass-select .mat-form-field-flex{padding:10px 5px 10px 10px!important}.apipass-select.label-input .mat-form-field-infix{padding-bottom:7px!important;padding-top:7px!important}.apipass-date-filter{width:100%}.apipass-date-filter .mat-form-field-flex{padding:7px 10px!important}.apipass-date-filter .mat-form-field-suffix span{color:#777;cursor:pointer}.apipass-date-filter .mat-form-field-wrapper{padding-bottom:0!important}.apipass-input-text .mat-icon-suffix{margin-right:-8px}"], encapsulation: 2 });
704
+ var ɵInputTextComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(InputTextComponent);
705
+ /*@__PURE__*/ (function () {
706
+ i0.ɵsetClassMetadata(InputTextComponent, [{
707
+ type: i0.Component,
708
+ args: [{
709
+ selector: 'input-text',
710
+ templateUrl: 'input-text.component.html',
711
+ styleUrls: ['input-text.component.scss'],
712
+ providers: [{
713
+ provide: i4.NG_VALUE_ACCESSOR,
714
+ useExisting: i0.forwardRef(function () { return InputTextComponent; }),
715
+ multi: true
716
+ }],
717
+ encapsulation: i0.ViewEncapsulation.None
718
+ }]
719
+ }], null, { label: [{
720
+ type: i0.Input
721
+ }], disabled: [{
722
+ type: i0.Input
723
+ }], iconSuffix: [{
724
+ type: i0.Input
725
+ }], iconPrefix: [{
726
+ type: i0.Input
727
+ }], autoComplete: [{
728
+ type: i0.Input
729
+ }], suffixIconClick: [{
730
+ type: i0.Output
731
+ }], prefixIconClick: [{
732
+ type: i0.Output
733
+ }] });
734
+ })();
505
735
 
506
- var InputAvatarComponent = /** @class */ (function () {
507
- function InputAvatarComponent() {
508
- this.avatarFormData = new FormData();
509
- this.avatarUrl = 'assets/images/no-image.png';
510
- this.imageAlt = 'Avatar';
511
- this.imageTitle = '';
512
- this.canRemove = false;
513
- this.removeTitle = '';
514
- this.canUpload = false;
515
- this.uploadTitle = '';
516
- this.canModify = false;
517
- this.modifyTitle = '';
518
- this.imageBorderRadius = '50%';
519
- this.width = '65px';
520
- this.height = '65px';
521
- this.iconFontSize = '16px';
522
- this.onFileChanged = new core.EventEmitter();
523
- }
524
- InputAvatarComponent.prototype.hasImage = function () {
525
- return this.avatarUrl !== 'assets/images/no-image.png';
526
- };
527
- InputAvatarComponent.prototype.canAction = function () {
528
- return this.canRemove || this.canModify || this.canUpload;
529
- };
530
- InputAvatarComponent.prototype.fileChange = function (event) {
531
- var _this = this;
532
- var fileList = event.target.files;
533
- if (fileList.length > 0) {
534
- var file = fileList[0];
535
- this.avatarFormData = new FormData();
536
- this.avatarFormData.append('file', file, file.name);
537
- if (!file.type.match(/image\/*/)) {
538
- return;
539
- }
540
- var reader_1 = new FileReader();
541
- reader_1.readAsDataURL(fileList[0]);
542
- reader_1.onload = function () {
543
- _this.avatarUrl = reader_1.result;
544
- _this.emitChangeEvent();
545
- };
546
- }
547
- };
548
- InputAvatarComponent.prototype.removeClick = function () {
549
- this.avatarFormData = new FormData();
550
- this.avatarUrl = 'assets/images/no-image.png';
551
- this.emitChangeEvent();
552
- };
553
- InputAvatarComponent.prototype.emitChangeEvent = function () {
554
- this.onFileChanged.emit({ avatarUrl: this.avatarUrl, avatarFormData: this.avatarFormData });
555
- };
556
- return InputAvatarComponent;
557
- }());
558
- InputAvatarComponent.decorators = [
559
- { type: core.Component, args: [{
560
- selector: 'input-avatar',
561
- template: "<div class=\"input-avatar\" [ngStyle]=\"{'width': width, 'height': height}\">\r\n <img loading=\"lazy\" [src]=\"avatarUrl\" [alt]=\"imageAlt\" [matTooltip]=\"imageTitle\"\r\n [ngStyle]=\"{'width': width, 'height': 'auto', 'max-height': '100%', 'border-radius': imageBorderRadius}\"/>\r\n <div class=\"image-backdrop\" *ngIf=\"canAction()\" [ngStyle]=\"{'width': width, 'height': height, 'border-radius': imageBorderRadius}\"></div>\r\n <div class=\"image-actions\" *ngIf=\"canAction()\" [ngStyle]=\"{'width': width, 'height': height, 'border-radius': imageBorderRadius}\">\r\n <icon *ngIf=\"!hasImage() && canUpload\"\r\n [ngStyle]=\"{'font-size': iconFontSize}\"\r\n [title]=\"uploadTitle\"\r\n (click)=\"actionFile.click(); actionFile.value = null;\"\r\n [type]=\"'primary'\"\r\n [name]=\"'fas fa-upload'\"></icon>\r\n <icon *ngIf=\"hasImage() && canModify\"\r\n [ngStyle]=\"{'font-size': iconFontSize}\"\r\n [title]=\"modifyTitle\"\r\n (click)=\"actionFile.click(); actionFile.value = '';\"\r\n [type]=\"'primary'\"\r\n [name]=\"'fas fa-pencil-alt'\"></icon>\r\n <icon *ngIf=\"hasImage() && canRemove\"\r\n [ngStyle]=\"{'font-size': iconFontSize}\"\r\n [title]=\"removeTitle\"\r\n (click)=\"removeClick(); actionFile.value = '';\"\r\n [type]=\"'remove'\"\r\n [name]=\"'fas fa-trash-alt'\"></icon>\r\n </div>\r\n <input #actionFile id=\"action-icon\" type=\"file\" (change)=\"fileChange($event)\" style=\"display: none;\"/>\r\n</div>\r\n",
562
- encapsulation: core.ViewEncapsulation.None,
563
- styles: [":root{--color-body-light:#fff;--color-fonts-tertiary:#777;--color-inputs-background:#fff;--color-inputs-border:#ddd;--color-primary:#222d57;--color-primary-active:#29376a;--color-primary-hover:#18203d;--color-red:red;--color-secondary:#d3d921;--color-secondary-active:#dce13f;--color-secondary-hover:#b3b81c;--color-tertiary:#efefef;--color-tertiary-active:#f1f1f1;--color-tertiary-hover:#cbcbcb;--color_components_light:#fff;--color_disabled:#e0e0e0;--color_graph_error:#eb5757;--color_graph_error_hover:#c91717;--color_graph_primary:#1643ef;--color_graph_primary_hover:#0a2692;--color_icon_remove:var(--color-red);--color_icon_success:#070;--limit-plan-color:#ff6c00}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0ysmIEDQ.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0w8mIEDQ.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0ycmIEDQ.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0x8mI.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydIhUdwzM.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydKxUdwzM.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydIRUdwzM.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydLxUd.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0-ExdGM.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0aExdGM.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0yExdGM.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0KExQ.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OOtLQ0Z.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OqtLQ0Z.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OCtLQ0Z.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0O6tLQ.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}.text-primary{color:var(--color-primary)!important}.text-secondary{color:var(--color-secondary)!important}.text-tertiary{color:var(--color-fonts-tertiary)!important}.text-weight-bold{font-weight:700!important}.text-weight-normal{font-weight:400!important}.mat-form-field-underline,.mat-input-underline{display:none}.mat-form-field-appearance-fill .mat-form-field-flex{align-items:center!important;background:var(--color-inputs-background)!important;border:1px solid var(--color-inputs-border)!important;border-radius:6px!important;display:flex!important}.mat-form-field-infix{align-items:center!important;border-top:none!important;padding:0!important}.mat-form-field-infix,.mat-select-arrow-wrapper{display:flex!important}.mat-icon-button{width:auto!important}.no-border .mat-form-field-flex{border:none!important}.no-border .mat-form-field-flex input{padding:1px}.mat-form-field-label-wrapper{top:-10px}.mat-form-field-should-float .mat-form-field-label-wrapper{font-size:14px}.placeholder-primary .mat-focused .mat-form-field-placeholder,.placeholder-primary .mat-form-field-label-wrapper,.placeholder-primary .mat-form-field-label-wrapper label,.placeholder-primary .mat-form-field-placeholder,.placeholder-primary ::ng-deep .mat-focused .mat-form-field-placeholder,.placeholder-primary ::ng-deep .mat-form-field-placeholder{color:var(--color-primary)!important}.placeholder-primary input ::placeholder{color:var(--color-primary)!important}.placeholder-bold .mat-focused .mat-form-field-placeholder,.placeholder-bold .mat-form-field-label-wrapper,.placeholder-bold .mat-form-field-label-wrapper label,.placeholder-bold .mat-form-field-placeholder,.placeholder-bold ::ng-deep .mat-focused .mat-form-field-placeholder,.placeholder-bold ::ng-deep .mat-form-field-placeholder{font-weight:700!important}.placeholder-bold input ::placeholder{font-weight:700!important}.apipass-input-text{width:100%}.apipass-input-text .mat-form-field-flex{padding:10px!important}.apipass-date-filter .mat-form-field-wrapper,.apipass-input-text .mat-form-field-wrapper,.apipass-search-input-text .mat-form-field-wrapper,.apipass-select .mat-form-field-wrapper,.custom-select-component .mat-form-field-wrapper{padding:0!important}.apipass-date-filter .mat-icon-button,.apipass-input-text .mat-icon-button,.apipass-search-input-text .mat-icon-button,.apipass-select .mat-icon-button,.custom-select-component .mat-icon-button{height:auto!important;width:auto!important}.apipass-date-filter.label-input .mat-form-field-label-wrapper,.apipass-input-text.label-input .mat-form-field-label-wrapper,.apipass-search-input-text.label-input .mat-form-field-label-wrapper,.apipass-select.label-input .mat-form-field-label-wrapper,.custom-select-component.label-input .mat-form-field-label-wrapper{padding-top:0;top:auto!important}.apipass-date-filter.label-input input,.apipass-input-text.label-input input,.apipass-search-input-text.label-input input,.apipass-select.label-input input,.custom-select-component.label-input input{padding-bottom:5px!important;padding-top:10px!important}.apipass-date-filter.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-input-text.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-search-input-text.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-select.mat-form-field-should-float .mat-form-field-label-wrapper,.custom-select-component.mat-form-field-should-float .mat-form-field-label-wrapper{margin-top:-10px!important;padding-top:0!important}.apipass-search-input-text{width:100%}.apipass-search-input-text.small-text{font-size:12px}.apipass-search-input-text .mat-form-field-flex{border-left:none!important;border-radius:0!important;border-right:none!important;border-top:none!important;padding:2px 5px 2px 2px!important}.apipass-search-input-text .search-icon{margin-top:-5px!important}.custom-select-component{width:100%}.custom-select-component .mat-form-field-flex{padding:1px 10px!important}.apipass-select{width:100%}.apipass-select .mat-form-field-flex{padding:10px 5px 10px 10px!important}.apipass-select.label-input .mat-form-field-infix{padding-bottom:7px!important;padding-top:7px!important}.apipass-date-filter{width:100%}.apipass-date-filter .mat-form-field-flex{padding:7px 10px!important}.apipass-date-filter .mat-form-field-suffix span{color:#777;cursor:pointer}.apipass-date-filter .mat-form-field-wrapper{padding-bottom:0!important}.input-avatar{align-items:center;display:flex}.input-avatar .image-backdrop{background:#fff;display:none;opacity:.6;position:absolute}.input-avatar .image-actions{align-items:center;display:none;justify-content:space-evenly;position:absolute}.input-avatar .image-actions icon{cursor:pointer}.input-avatar:hover .image-actions,.input-avatar:hover .image-backdrop{display:flex}"]
564
- },] }
565
- ];
566
- InputAvatarComponent.propDecorators = {
567
- avatarFormData: [{ type: core.Input }],
568
- avatarUrl: [{ type: core.Input }],
569
- imageAlt: [{ type: core.Input }],
570
- imageTitle: [{ type: core.Input }],
571
- canRemove: [{ type: core.Input }],
572
- removeTitle: [{ type: core.Input }],
573
- canUpload: [{ type: core.Input }],
574
- uploadTitle: [{ type: core.Input }],
575
- canModify: [{ type: core.Input }],
576
- modifyTitle: [{ type: core.Input }],
577
- imageBorderRadius: [{ type: core.Input }],
578
- width: [{ type: core.Input }],
579
- height: [{ type: core.Input }],
580
- iconFontSize: [{ type: core.Input }],
581
- onFileChanged: [{ type: core.Output }]
582
- };
736
+ var _c0$1 = function (a0, a1, a2) { return { "width": a0, "height": a1, "border-radius": a2 }; };
737
+ function InputAvatarComponent_div_2_Template(rf, ctx) {
738
+ if (rf & 1) {
739
+ i0.ɵɵelement(0, "div", 6);
740
+ }
741
+ if (rf & 2) {
742
+ var ctx_r0 = i0.ɵɵnextContext();
743
+ i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction3(1, _c0$1, ctx_r0.width, ctx_r0.height, ctx_r0.imageBorderRadius));
744
+ }
745
+ }
746
+ var _c1 = function (a0) { return { "font-size": a0 }; };
747
+ function InputAvatarComponent_div_3_icon_1_Template(rf, ctx) {
748
+ if (rf & 1) {
749
+ var _r7_1 = i0.ɵɵgetCurrentView();
750
+ i0.ɵɵelementStart(0, "icon", 9);
751
+ i0.ɵɵlistener("click", function InputAvatarComponent_div_3_icon_1_Template_icon_click_0_listener() { i0.ɵɵrestoreView(_r7_1); i0.ɵɵnextContext(2); var _r2 = i0.ɵɵreference(5); _r2.click(); return _r2.value = null; });
752
+ i0.ɵɵelementEnd();
753
+ }
754
+ if (rf & 2) {
755
+ var ctx_r3 = i0.ɵɵnextContext(2);
756
+ i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(4, _c1, ctx_r3.iconFontSize))("title", ctx_r3.uploadTitle)("type", "primary")("name", "fas fa-upload");
757
+ }
758
+ }
759
+ function InputAvatarComponent_div_3_icon_2_Template(rf, ctx) {
760
+ if (rf & 1) {
761
+ var _r9_1 = i0.ɵɵgetCurrentView();
762
+ i0.ɵɵelementStart(0, "icon", 9);
763
+ i0.ɵɵlistener("click", function InputAvatarComponent_div_3_icon_2_Template_icon_click_0_listener() { i0.ɵɵrestoreView(_r9_1); i0.ɵɵnextContext(2); var _r2 = i0.ɵɵreference(5); _r2.click(); return _r2.value = ""; });
764
+ i0.ɵɵelementEnd();
765
+ }
766
+ if (rf & 2) {
767
+ var ctx_r4 = i0.ɵɵnextContext(2);
768
+ i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(4, _c1, ctx_r4.iconFontSize))("title", ctx_r4.modifyTitle)("type", "primary")("name", "fas fa-pencil-alt");
769
+ }
770
+ }
771
+ function InputAvatarComponent_div_3_icon_3_Template(rf, ctx) {
772
+ if (rf & 1) {
773
+ var _r11_1 = i0.ɵɵgetCurrentView();
774
+ i0.ɵɵelementStart(0, "icon", 9);
775
+ i0.ɵɵlistener("click", function InputAvatarComponent_div_3_icon_3_Template_icon_click_0_listener() { i0.ɵɵrestoreView(_r11_1); var ctx_r10 = i0.ɵɵnextContext(2); var _r2 = i0.ɵɵreference(5); ctx_r10.removeClick(); return _r2.value = ""; });
776
+ i0.ɵɵelementEnd();
777
+ }
778
+ if (rf & 2) {
779
+ var ctx_r5 = i0.ɵɵnextContext(2);
780
+ i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(4, _c1, ctx_r5.iconFontSize))("title", ctx_r5.removeTitle)("type", "remove")("name", "fas fa-trash-alt");
781
+ }
782
+ }
783
+ function InputAvatarComponent_div_3_Template(rf, ctx) {
784
+ if (rf & 1) {
785
+ i0.ɵɵelementStart(0, "div", 7);
786
+ i0.ɵɵtemplate(1, InputAvatarComponent_div_3_icon_1_Template, 1, 6, "icon", 8);
787
+ i0.ɵɵtemplate(2, InputAvatarComponent_div_3_icon_2_Template, 1, 6, "icon", 8);
788
+ i0.ɵɵtemplate(3, InputAvatarComponent_div_3_icon_3_Template, 1, 6, "icon", 8);
789
+ i0.ɵɵelementEnd();
790
+ }
791
+ if (rf & 2) {
792
+ var ctx_r1 = i0.ɵɵnextContext();
793
+ i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction3(4, _c0$1, ctx_r1.width, ctx_r1.height, ctx_r1.imageBorderRadius));
794
+ i0.ɵɵadvance(1);
795
+ i0.ɵɵproperty("ngIf", !ctx_r1.hasImage() && ctx_r1.canUpload);
796
+ i0.ɵɵadvance(1);
797
+ i0.ɵɵproperty("ngIf", ctx_r1.hasImage() && ctx_r1.canModify);
798
+ i0.ɵɵadvance(1);
799
+ i0.ɵɵproperty("ngIf", ctx_r1.hasImage() && ctx_r1.canRemove);
800
+ }
801
+ }
802
+ var _c2 = function (a0, a1) { return { "width": a0, "height": a1 }; };
803
+ var _c3 = function (a0, a3) { return { "width": a0, "height": "auto", "max-height": "100%", "border-radius": a3 }; };
804
+ var InputAvatarComponent = /** @class */ (function () {
805
+ function InputAvatarComponent() {
806
+ this.avatarFormData = new FormData();
807
+ this.avatarUrl = 'assets/images/no-image.png';
808
+ this.imageAlt = 'Avatar';
809
+ this.imageTitle = '';
810
+ this.canRemove = false;
811
+ this.removeTitle = '';
812
+ this.canUpload = false;
813
+ this.uploadTitle = '';
814
+ this.canModify = false;
815
+ this.modifyTitle = '';
816
+ this.imageBorderRadius = '50%';
817
+ this.width = '65px';
818
+ this.height = '65px';
819
+ this.iconFontSize = '16px';
820
+ this.onFileChanged = new i0.EventEmitter();
821
+ }
822
+ InputAvatarComponent.prototype.hasImage = function () {
823
+ return this.avatarUrl !== 'assets/images/no-image.png';
824
+ };
825
+ InputAvatarComponent.prototype.canAction = function () {
826
+ return this.canRemove || this.canModify || this.canUpload;
827
+ };
828
+ InputAvatarComponent.prototype.fileChange = function (event) {
829
+ var _this = this;
830
+ var fileList = event.target.files;
831
+ if (fileList.length > 0) {
832
+ var file = fileList[0];
833
+ this.avatarFormData = new FormData();
834
+ this.avatarFormData.append('file', file, file.name);
835
+ if (!file.type.match(/image\/*/)) {
836
+ return;
837
+ }
838
+ var reader_1 = new FileReader();
839
+ reader_1.readAsDataURL(fileList[0]);
840
+ reader_1.onload = function () {
841
+ _this.avatarUrl = reader_1.result;
842
+ _this.emitChangeEvent();
843
+ };
844
+ }
845
+ };
846
+ InputAvatarComponent.prototype.removeClick = function () {
847
+ this.avatarFormData = new FormData();
848
+ this.avatarUrl = 'assets/images/no-image.png';
849
+ this.emitChangeEvent();
850
+ };
851
+ InputAvatarComponent.prototype.emitChangeEvent = function () {
852
+ this.onFileChanged.emit({ avatarUrl: this.avatarUrl, avatarFormData: this.avatarFormData });
853
+ };
854
+ return InputAvatarComponent;
855
+ }());
856
+ InputAvatarComponent.ɵfac = function InputAvatarComponent_Factory(t) { return new (t || InputAvatarComponent)(); };
857
+ InputAvatarComponent.ɵcmp = i0.ɵɵdefineComponent({ type: InputAvatarComponent, selectors: [["input-avatar"]], inputs: { avatarFormData: "avatarFormData", avatarUrl: "avatarUrl", imageAlt: "imageAlt", imageTitle: "imageTitle", canRemove: "canRemove", removeTitle: "removeTitle", canUpload: "canUpload", uploadTitle: "uploadTitle", canModify: "canModify", modifyTitle: "modifyTitle", imageBorderRadius: "imageBorderRadius", width: "width", height: "height", iconFontSize: "iconFontSize" }, outputs: { onFileChanged: "onFileChanged" }, decls: 6, vars: 13, consts: [[1, "input-avatar", 3, "ngStyle"], ["loading", "lazy", 3, "src", "alt", "matTooltip", "ngStyle"], ["class", "image-backdrop", 3, "ngStyle", 4, "ngIf"], ["class", "image-actions", 3, "ngStyle", 4, "ngIf"], ["id", "action-icon", "type", "file", 2, "display", "none", 3, "change"], ["actionFile", ""], [1, "image-backdrop", 3, "ngStyle"], [1, "image-actions", 3, "ngStyle"], [3, "ngStyle", "title", "type", "name", "click", 4, "ngIf"], [3, "ngStyle", "title", "type", "name", "click"]], template: function InputAvatarComponent_Template(rf, ctx) {
858
+ if (rf & 1) {
859
+ i0.ɵɵelementStart(0, "div", 0);
860
+ i0.ɵɵelement(1, "img", 1);
861
+ i0.ɵɵtemplate(2, InputAvatarComponent_div_2_Template, 1, 5, "div", 2);
862
+ i0.ɵɵtemplate(3, InputAvatarComponent_div_3_Template, 4, 8, "div", 3);
863
+ i0.ɵɵelementStart(4, "input", 4, 5);
864
+ i0.ɵɵlistener("change", function InputAvatarComponent_Template_input_change_4_listener($event) { return ctx.fileChange($event); });
865
+ i0.ɵɵelementEnd();
866
+ i0.ɵɵelementEnd();
867
+ }
868
+ if (rf & 2) {
869
+ i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction2(7, _c2, ctx.width, ctx.height));
870
+ i0.ɵɵadvance(1);
871
+ i0.ɵɵproperty("src", ctx.avatarUrl, i0.ɵɵsanitizeUrl)("alt", ctx.imageAlt)("matTooltip", ctx.imageTitle)("ngStyle", i0.ɵɵpureFunction2(10, _c3, ctx.width, ctx.imageBorderRadius));
872
+ i0.ɵɵadvance(1);
873
+ i0.ɵɵproperty("ngIf", ctx.canAction());
874
+ i0.ɵɵadvance(1);
875
+ i0.ɵɵproperty("ngIf", ctx.canAction());
876
+ }
877
+ }, directives: [i2.NgStyle, i2$1.MatTooltip, i2.NgIf, i3$1.IconComponent], styles: [":root{--color-body-light:#fff;--color-fonts-tertiary:#777;--color-inputs-background:#fff;--color-inputs-border:#ddd;--color-primary:#222d57;--color-primary-active:#29376a;--color-primary-hover:#18203d;--color-red:red;--color-secondary:#d3d921;--color-secondary-active:#dce13f;--color-secondary-hover:#b3b81c;--color-tertiary:#efefef;--color-tertiary-active:#f1f1f1;--color-tertiary-hover:#cbcbcb;--color_components_light:#fff;--color_disabled:#e0e0e0;--color_graph_error:#eb5757;--color_graph_error_hover:#c91717;--color_graph_primary:#1643ef;--color_graph_primary_hover:#0a2692;--color_icon_remove:var(--color-red);--color_icon_success:#070;--limit-plan-color:#ff6c00}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0ysmIEDQ.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0w8mIEDQ.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0ycmIEDQ.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0x8mI.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydIhUdwzM.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydKxUdwzM.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydIRUdwzM.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydLxUd.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0-ExdGM.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0aExdGM.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0yExdGM.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0KExQ.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OOtLQ0Z.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OqtLQ0Z.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OCtLQ0Z.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0O6tLQ.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}.text-primary{color:var(--color-primary)!important}.text-secondary{color:var(--color-secondary)!important}.text-tertiary{color:var(--color-fonts-tertiary)!important}.text-weight-bold{font-weight:700!important}.text-weight-normal{font-weight:400!important}.mat-form-field-underline,.mat-input-underline{display:none}.mat-form-field-appearance-fill .mat-form-field-flex{align-items:center!important;background:var(--color-inputs-background)!important;border:1px solid var(--color-inputs-border)!important;border-radius:6px!important;display:flex!important}.mat-form-field-infix{align-items:center!important;border-top:none!important;padding:0!important}.mat-form-field-infix,.mat-select-arrow-wrapper{display:flex!important}.mat-icon-button{width:auto!important}.no-border .mat-form-field-flex{border:none!important}.no-border .mat-form-field-flex input{padding:1px}.mat-form-field-label-wrapper{top:-10px}.mat-form-field-should-float .mat-form-field-label-wrapper{font-size:14px}.placeholder-primary .mat-focused .mat-form-field-placeholder,.placeholder-primary .mat-form-field-label-wrapper,.placeholder-primary .mat-form-field-label-wrapper label,.placeholder-primary .mat-form-field-placeholder,.placeholder-primary ::ng-deep .mat-focused .mat-form-field-placeholder,.placeholder-primary ::ng-deep .mat-form-field-placeholder{color:var(--color-primary)!important}.placeholder-primary input ::placeholder{color:var(--color-primary)!important}.placeholder-bold .mat-focused .mat-form-field-placeholder,.placeholder-bold .mat-form-field-label-wrapper,.placeholder-bold .mat-form-field-label-wrapper label,.placeholder-bold .mat-form-field-placeholder,.placeholder-bold ::ng-deep .mat-focused .mat-form-field-placeholder,.placeholder-bold ::ng-deep .mat-form-field-placeholder{font-weight:700!important}.placeholder-bold input ::placeholder{font-weight:700!important}.apipass-input-text{width:100%}.apipass-input-text .mat-form-field-flex{padding:10px!important}.apipass-date-filter .mat-form-field-wrapper,.apipass-input-text .mat-form-field-wrapper,.apipass-search-input-text .mat-form-field-wrapper,.apipass-select .mat-form-field-wrapper,.custom-select-component .mat-form-field-wrapper{padding:0!important}.apipass-date-filter .mat-icon-button,.apipass-input-text .mat-icon-button,.apipass-search-input-text .mat-icon-button,.apipass-select .mat-icon-button,.custom-select-component .mat-icon-button{height:auto!important;width:auto!important}.apipass-date-filter.label-input .mat-form-field-label-wrapper,.apipass-input-text.label-input .mat-form-field-label-wrapper,.apipass-search-input-text.label-input .mat-form-field-label-wrapper,.apipass-select.label-input .mat-form-field-label-wrapper,.custom-select-component.label-input .mat-form-field-label-wrapper{padding-top:0;top:auto!important}.apipass-date-filter.label-input input,.apipass-input-text.label-input input,.apipass-search-input-text.label-input input,.apipass-select.label-input input,.custom-select-component.label-input input{padding-bottom:5px!important;padding-top:10px!important}.apipass-date-filter.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-input-text.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-search-input-text.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-select.mat-form-field-should-float .mat-form-field-label-wrapper,.custom-select-component.mat-form-field-should-float .mat-form-field-label-wrapper{margin-top:-10px!important;padding-top:0!important}.apipass-search-input-text{width:100%}.apipass-search-input-text.small-text{font-size:12px}.apipass-search-input-text .mat-form-field-flex{border-left:none!important;border-radius:0!important;border-right:none!important;border-top:none!important;padding:2px 5px 2px 2px!important}.apipass-search-input-text .search-icon{margin-top:-5px!important}.custom-select-component{width:100%}.custom-select-component .mat-form-field-flex{padding:1px 10px!important}.apipass-select{width:100%}.apipass-select .mat-form-field-flex{padding:10px 5px 10px 10px!important}.apipass-select.label-input .mat-form-field-infix{padding-bottom:7px!important;padding-top:7px!important}.apipass-date-filter{width:100%}.apipass-date-filter .mat-form-field-flex{padding:7px 10px!important}.apipass-date-filter .mat-form-field-suffix span{color:#777;cursor:pointer}.apipass-date-filter .mat-form-field-wrapper{padding-bottom:0!important}.input-avatar{align-items:center;display:flex}.input-avatar .image-backdrop{background:#fff;display:none;opacity:.6;position:absolute}.input-avatar .image-actions{align-items:center;display:none;justify-content:space-evenly;position:absolute}.input-avatar .image-actions icon{cursor:pointer}.input-avatar:hover .image-actions,.input-avatar:hover .image-backdrop{display:flex}"], encapsulation: 2 });
878
+ /*@__PURE__*/ (function () {
879
+ i0.ɵsetClassMetadata(InputAvatarComponent, [{
880
+ type: i0.Component,
881
+ args: [{
882
+ selector: 'input-avatar',
883
+ templateUrl: 'input-avatar.component.html',
884
+ styleUrls: ['input-avatar.component.scss'],
885
+ encapsulation: i0.ViewEncapsulation.None
886
+ }]
887
+ }], null, { avatarFormData: [{
888
+ type: i0.Input
889
+ }], avatarUrl: [{
890
+ type: i0.Input
891
+ }], imageAlt: [{
892
+ type: i0.Input
893
+ }], imageTitle: [{
894
+ type: i0.Input
895
+ }], canRemove: [{
896
+ type: i0.Input
897
+ }], removeTitle: [{
898
+ type: i0.Input
899
+ }], canUpload: [{
900
+ type: i0.Input
901
+ }], uploadTitle: [{
902
+ type: i0.Input
903
+ }], canModify: [{
904
+ type: i0.Input
905
+ }], modifyTitle: [{
906
+ type: i0.Input
907
+ }], imageBorderRadius: [{
908
+ type: i0.Input
909
+ }], width: [{
910
+ type: i0.Input
911
+ }], height: [{
912
+ type: i0.Input
913
+ }], iconFontSize: [{
914
+ type: i0.Input
915
+ }], onFileChanged: [{
916
+ type: i0.Output
917
+ }] });
918
+ })();
583
919
 
584
- var FieldComponent = /** @class */ (function () {
585
- function FieldComponent() {
586
- /**
587
- * Texto para label do Input
588
- */
589
- this.label = '';
590
- }
591
- return FieldComponent;
592
- }());
593
- FieldComponent.decorators = [
594
- { type: core.Component, args: [{
595
- selector: 'app-field',
596
- template: "\n <div [ngClass]=\"{'has-error':state && !state.valid && (!state.pristine || state.touched) && state.errors}\">\n <label class=\"label-text\" *ngIf=\"label\">{{ label | translate }}</label>\n\n <!-- Input, textarea or select -->\n <ng-content></ng-content>\n\n <span *ngIf=\"state && !state.valid && !state.pristine && state.touched && state.errors\" class=\"help-block text-danger\">\n <span *ngIf=\"state.hasError('required')\">Este campo \u00E9 obrigat\u00F3rio</span>\n <span *ngIf=\"!state.hasError('required') && state.hasError('validateEmail')\">E-mail inv\u00E1lido</span>\n <span *ngIf=\"!state.hasError('required') && state.hasError('minlength')\">Tamanho m\u00EDnimo inv\u00E1lido</span>\n </span>\n </div>\n "
597
- },] }
598
- ];
599
- FieldComponent.propDecorators = {
600
- label: [{ type: core.Input }],
601
- state: [{ type: core.Input }]
602
- };
920
+ function FieldComponent_label_1_Template(rf, ctx) {
921
+ if (rf & 1) {
922
+ i0.ɵɵelementStart(0, "label", 3);
923
+ i0.ɵɵtext(1);
924
+ i0.ɵɵpipe(2, "translate");
925
+ i0.ɵɵelementEnd();
926
+ }
927
+ if (rf & 2) {
928
+ var ctx_r0 = i0.ɵɵnextContext();
929
+ i0.ɵɵadvance(1);
930
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.label));
931
+ }
932
+ }
933
+ function FieldComponent_span_3_span_1_Template(rf, ctx) {
934
+ if (rf & 1) {
935
+ i0.ɵɵelementStart(0, "span");
936
+ i0.ɵɵtext(1, "Este campo \u00E9 obrigat\u00F3rio");
937
+ i0.ɵɵelementEnd();
938
+ }
939
+ }
940
+ function FieldComponent_span_3_span_2_Template(rf, ctx) {
941
+ if (rf & 1) {
942
+ i0.ɵɵelementStart(0, "span");
943
+ i0.ɵɵtext(1, "E-mail inv\u00E1lido");
944
+ i0.ɵɵelementEnd();
945
+ }
946
+ }
947
+ function FieldComponent_span_3_span_3_Template(rf, ctx) {
948
+ if (rf & 1) {
949
+ i0.ɵɵelementStart(0, "span");
950
+ i0.ɵɵtext(1, "Tamanho m\u00EDnimo inv\u00E1lido");
951
+ i0.ɵɵelementEnd();
952
+ }
953
+ }
954
+ function FieldComponent_span_3_Template(rf, ctx) {
955
+ if (rf & 1) {
956
+ i0.ɵɵelementStart(0, "span", 4);
957
+ i0.ɵɵtemplate(1, FieldComponent_span_3_span_1_Template, 2, 0, "span", 5);
958
+ i0.ɵɵtemplate(2, FieldComponent_span_3_span_2_Template, 2, 0, "span", 5);
959
+ i0.ɵɵtemplate(3, FieldComponent_span_3_span_3_Template, 2, 0, "span", 5);
960
+ i0.ɵɵelementEnd();
961
+ }
962
+ if (rf & 2) {
963
+ var ctx_r1 = i0.ɵɵnextContext();
964
+ i0.ɵɵadvance(1);
965
+ i0.ɵɵproperty("ngIf", ctx_r1.state.hasError("required"));
966
+ i0.ɵɵadvance(1);
967
+ i0.ɵɵproperty("ngIf", !ctx_r1.state.hasError("required") && ctx_r1.state.hasError("validateEmail"));
968
+ i0.ɵɵadvance(1);
969
+ i0.ɵɵproperty("ngIf", !ctx_r1.state.hasError("required") && ctx_r1.state.hasError("minlength"));
970
+ }
971
+ }
972
+ var _c0$2 = function (a0) { return { "has-error": a0 }; };
973
+ var _c1$1 = ["*"];
974
+ var FieldComponent = /** @class */ (function () {
975
+ function FieldComponent() {
976
+ /**
977
+ * Texto para label do Input
978
+ */
979
+ this.label = '';
980
+ }
981
+ return FieldComponent;
982
+ }());
983
+ FieldComponent.ɵfac = function FieldComponent_Factory(t) { return new (t || FieldComponent)(); };
984
+ FieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FieldComponent, selectors: [["app-field"]], inputs: { label: "label", state: "state" }, ngContentSelectors: _c1$1, decls: 4, vars: 5, consts: [[3, "ngClass"], ["class", "label-text", 4, "ngIf"], ["class", "help-block text-danger", 4, "ngIf"], [1, "label-text"], [1, "help-block", "text-danger"], [4, "ngIf"]], template: function FieldComponent_Template(rf, ctx) {
985
+ if (rf & 1) {
986
+ i0.ɵɵprojectionDef();
987
+ i0.ɵɵelementStart(0, "div", 0);
988
+ i0.ɵɵtemplate(1, FieldComponent_label_1_Template, 3, 3, "label", 1);
989
+ i0.ɵɵprojection(2);
990
+ i0.ɵɵtemplate(3, FieldComponent_span_3_Template, 4, 3, "span", 2);
991
+ i0.ɵɵelementEnd();
992
+ }
993
+ if (rf & 2) {
994
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c0$2, ctx.state && !ctx.state.valid && (!ctx.state.pristine || ctx.state.touched) && ctx.state.errors));
995
+ i0.ɵɵadvance(1);
996
+ i0.ɵɵproperty("ngIf", ctx.label);
997
+ i0.ɵɵadvance(2);
998
+ i0.ɵɵproperty("ngIf", ctx.state && !ctx.state.valid && !ctx.state.pristine && ctx.state.touched && ctx.state.errors);
999
+ }
1000
+ }, directives: [i2.NgClass, i2.NgIf], pipes: [i7.TranslatePipe], encapsulation: 2 });
1001
+ /*@__PURE__*/ (function () {
1002
+ i0.ɵsetClassMetadata(FieldComponent, [{
1003
+ type: i0.Component,
1004
+ args: [{
1005
+ selector: 'app-field',
1006
+ template: "\n <div [ngClass]=\"{'has-error':state && !state.valid && (!state.pristine || state.touched) && state.errors}\">\n <label class=\"label-text\" *ngIf=\"label\">{{ label | translate }}</label>\n\n <!-- Input, textarea or select -->\n <ng-content></ng-content>\n\n <span *ngIf=\"state && !state.valid && !state.pristine && state.touched && state.errors\" class=\"help-block text-danger\">\n <span *ngIf=\"state.hasError('required')\">Este campo \u00E9 obrigat\u00F3rio</span>\n <span *ngIf=\"!state.hasError('required') && state.hasError('validateEmail')\">E-mail inv\u00E1lido</span>\n <span *ngIf=\"!state.hasError('required') && state.hasError('minlength')\">Tamanho m\u00EDnimo inv\u00E1lido</span>\n </span>\n </div>\n "
1007
+ }]
1008
+ }], null, { label: [{
1009
+ type: i0.Input
1010
+ }], state: [{
1011
+ type: i0.Input
1012
+ }] });
1013
+ })();
603
1014
 
604
- var SelectBoxComponent = /** @class */ (function (_super) {
605
- __extends(SelectBoxComponent, _super);
606
- function SelectBoxComponent() {
607
- var _this = _super.apply(this, __spread(arguments)) || this;
608
- _this.placeholder = 'Selecione';
609
- _this.searchPlaceHolder = 'Buscar';
610
- _this.clearText = 'Limpar';
611
- _this.notFoundText = 'Nenhum item encontrado';
612
- _this.enabledSearch = true;
613
- _this.data = [];
614
- _this.disabled = false;
615
- _this.bindImageUrl = '';
616
- _this.bindKey = '';
617
- _this.bindValue = '';
618
- _this.limitItens = 30;
619
- _this.onOpenSelectBox = new core.EventEmitter();
620
- _this.onCloseSelectBox = new core.EventEmitter();
621
- _this.onSelectChange = new core.EventEmitter();
622
- _this.onSelectClear = new core.EventEmitter();
623
- _this.visibleItens = [];
624
- _this.loading = false;
625
- _this.inputFilter = new rxjs.Subject();
626
- _this.lastSearchTerm = '';
627
- return _this;
628
- }
629
- SelectBoxComponent.prototype.ngOnInit = function () {
630
- this.onSearch();
631
- };
632
- SelectBoxComponent.prototype.onSearch = function () {
633
- var _this = this;
634
- this.inputFilter.pipe(operators.debounceTime(200), operators.distinctUntilChanged()).subscribe(function (searchString) {
635
- _this.loading = true;
636
- _this.lastSearchTerm = searchString;
637
- if (searchString && _this.data) {
638
- _this.visibleItens = _this.data.filter(function (item) { var _a; return (_a = item[_this.bindValue]) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(searchString.toLowerCase()); }).slice(0, _this.limitItens);
639
- }
640
- else if (_this.data) {
641
- _this.visibleItens = _this.data.slice(0, _this.limitItens);
642
- }
643
- else {
644
- _this.visibleItens = [];
645
- }
646
- setTimeout(function () { return _this.loading = false; }, 300);
647
- });
648
- };
649
- // @ts-ignore
650
- SelectBoxComponent.prototype.onScroll = function (_b) {
651
- var end = _b.end;
652
- if (this.loading || this.data.length <= this.visibleItens.length) {
653
- return;
654
- }
655
- if (end + 5 >= this.visibleItens.length) {
656
- this.fetchMore();
657
- }
658
- };
659
- SelectBoxComponent.prototype.onScrollToEnd = function () {
660
- if (this.loading) {
661
- return;
662
- }
663
- this.fetchMore();
664
- };
665
- SelectBoxComponent.prototype.fetchMore = function () {
666
- var _this = this;
667
- this.loading = true;
668
- var len = this.visibleItens.length;
669
- var more = this.lastSearchTerm ?
670
- this.data.filter(function (item) { var _a; return (_a = item[_this.bindValue]) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(_this.lastSearchTerm.toLowerCase()); }).slice(len, this.limitItens + len) :
671
- this.data.slice(len, this.limitItens + len);
672
- this.visibleItens = this.visibleItens.concat(more);
673
- this.loading = false;
674
- };
675
- SelectBoxComponent.prototype.onKeyDown = function (event) {
676
- if (event.which === 32) {
677
- event.target.value += ' ';
678
- }
679
- event.stopPropagation();
680
- };
681
- SelectBoxComponent.prototype.onSelectionChange = function (event) {
682
- var _this = this;
683
- var _a;
684
- this.selectedItem = (_a = this.data) === null || _a === void 0 ? void 0 : _a.filter(function (el) { return el[_this.bindKey] === _this.value; })[0];
685
- this.onSelectChange.emit(this.selectedItem);
686
- };
687
- SelectBoxComponent.prototype.openSelectBox = function ($event) {
688
- this.visibleItens = [];
689
- if (this.data) {
690
- this.visibleItens = this.data.slice(0, this.limitItens);
691
- }
692
- this.onOpenSelectBox.next();
693
- };
694
- SelectBoxComponent.prototype.compareFn = function (a, b) {
695
- return a[this.bindKey] === b[this.bindKey];
696
- };
697
- SelectBoxComponent.prototype.onClear = function () {
698
- this.onSelectClear.next();
699
- };
700
- SelectBoxComponent.prototype.onClose = function ($event) {
701
- this.onCloseSelectBox.next();
702
- };
703
- return SelectBoxComponent;
704
- }(ValueAccessorBase));
705
- SelectBoxComponent.decorators = [
706
- { type: core.Component, args: [{
707
- selector: 'select-box',
708
- template: "<ng-select #ngSelectComponent\r\n [(ngModel)]=\"value\"\r\n [items]=\"visibleItens\"\r\n [virtualScroll]=\"true\"\r\n [loading]=\"loading\"\r\n [placeholder]=\"placeholder\"\r\n [clearAllText]=\"clearText\"\r\n [searchable]=\"enabledSearch\"\r\n [typeToSearchText]=\"searchPlaceHolder\"\r\n (open)=\"openSelectBox($event)\"\r\n (close)=\"onClose($event)\"\r\n (clear)=\"onClear()\"\r\n [notFoundText]=\"notFoundText\"\r\n [disabled]=\"disabled\"\r\n appendTo=\"body\"\r\n (scroll)=\"onScroll($event)\"\r\n (scrollToEnd)=\"onScrollToEnd()\"\r\n (change)=\"onSelectionChange($event)\"\r\n [typeahead]=\"inputFilter\"\r\n [ngClass]=\"{'apipass-select-image' : bindImageUrl, 'apipass-select': !bindImageUrl}\"\r\n [compareWith]=\"compareFn\"\r\n >\r\n <ng-template ng-label-tmp let-item=\"item\" [ngIf]=\"value && value[bindKey] && value[bindValue]\">\r\n <div class=\"image\" style=\"width: 40px;height: 40px; margin-right: 10px;\" *ngIf=\"value && value[bindKey] && value[bindValue] && bindImageUrl\">\r\n <img loading=\"lazy\"\r\n [src]=\"value[bindImageUrl] || './assets/images/no-image.png'\"\r\n [alt]=\"value[bindValue]\"\r\n [matTooltip]=\"value[bindValue]\"\r\n style=\"width: auto;max-width: 40px;height: 40px;\"\r\n />\r\n </div>\r\n <span class=\"select-text-element\" *ngIf=\"value && value[bindKey] && value[bindValue]\">{{value[bindValue]}}</span>\r\n </ng-template>\r\n <ng-template ng-option-tmp let-item=\"item\" let-index=\"index\">\r\n <div class=\"image\" style=\"width: 40px;height: 40px; margin-right: 10px;\" *ngIf=\"bindImageUrl\">\r\n <img loading=\"lazy\"\r\n [src]=\"item[bindImageUrl] || './assets/images/no-image.png'\"\r\n [alt]=\"item[bindValue]\"\r\n [matTooltip]=\"item[bindValue]\"\r\n style=\"width: auto;max-width: 40px;height: 40px;\"\r\n />\r\n </div>\r\n <span class=\"select-text-element\"\r\n style=\"white-space: nowrap;overflow: hidden;text-overflow: ellipsis;\">{{item[bindValue]}}</span>\r\n </ng-template>\r\n</ng-select>\r\n",
709
- providers: [{
710
- provide: forms.NG_VALUE_ACCESSOR,
711
- useExisting: core.forwardRef(function () { return SelectBoxComponent; }),
712
- multi: true
713
- }],
714
- encapsulation: core.ViewEncapsulation.None,
715
- styles: [":root{--color-body-light:#fff;--color-fonts-tertiary:#777;--color-inputs-background:#fff;--color-inputs-border:#ddd;--color-primary:#222d57;--color-primary-active:#29376a;--color-primary-hover:#18203d;--color-red:red;--color-secondary:#d3d921;--color-secondary-active:#dce13f;--color-secondary-hover:#b3b81c;--color-tertiary:#efefef;--color-tertiary-active:#f1f1f1;--color-tertiary-hover:#cbcbcb;--color_components_light:#fff;--color_disabled:#e0e0e0;--color_graph_error:#eb5757;--color_graph_error_hover:#c91717;--color_graph_primary:#1643ef;--color_graph_primary_hover:#0a2692;--color_icon_remove:var(--color-red);--color_icon_success:#070;--limit-plan-color:#ff6c00}.mat-form-field-underline,.mat-input-underline{display:none}.mat-form-field-appearance-fill .mat-form-field-flex{align-items:center!important;background:var(--color-inputs-background)!important;border:1px solid var(--color-inputs-border)!important;border-radius:6px!important;display:flex!important}.mat-form-field-infix{align-items:center!important;border-top:none!important;padding:0!important}.mat-form-field-infix,.mat-select-arrow-wrapper{display:flex!important}.mat-icon-button{width:auto!important}.no-border .mat-form-field-flex{border:none!important}.no-border .mat-form-field-flex input{padding:1px}.mat-form-field-label-wrapper{top:-10px}.mat-form-field-should-float .mat-form-field-label-wrapper{font-size:14px}.placeholder-primary .mat-focused .mat-form-field-placeholder,.placeholder-primary .mat-form-field-label-wrapper,.placeholder-primary .mat-form-field-label-wrapper label,.placeholder-primary .mat-form-field-placeholder,.placeholder-primary ::ng-deep .mat-focused .mat-form-field-placeholder,.placeholder-primary ::ng-deep .mat-form-field-placeholder{color:var(--color-primary)!important}.placeholder-primary input ::placeholder{color:var(--color-primary)!important}.placeholder-bold .mat-focused .mat-form-field-placeholder,.placeholder-bold .mat-form-field-label-wrapper,.placeholder-bold .mat-form-field-label-wrapper label,.placeholder-bold .mat-form-field-placeholder,.placeholder-bold ::ng-deep .mat-focused .mat-form-field-placeholder,.placeholder-bold ::ng-deep .mat-form-field-placeholder{font-weight:700!important}.placeholder-bold input ::placeholder{font-weight:700!important}.apipass-input-text{width:100%}.apipass-input-text .mat-form-field-flex{padding:10px!important}.apipass-date-filter .mat-form-field-wrapper,.apipass-input-text .mat-form-field-wrapper,.apipass-search-input-text .mat-form-field-wrapper,.apipass-select .mat-form-field-wrapper,.custom-select-component .mat-form-field-wrapper{padding:0!important}.apipass-date-filter .mat-icon-button,.apipass-input-text .mat-icon-button,.apipass-search-input-text .mat-icon-button,.apipass-select .mat-icon-button,.custom-select-component .mat-icon-button{height:auto!important;width:auto!important}.apipass-date-filter.label-input .mat-form-field-label-wrapper,.apipass-input-text.label-input .mat-form-field-label-wrapper,.apipass-search-input-text.label-input .mat-form-field-label-wrapper,.apipass-select.label-input .mat-form-field-label-wrapper,.custom-select-component.label-input .mat-form-field-label-wrapper{padding-top:0;top:auto!important}.apipass-date-filter.label-input input,.apipass-input-text.label-input input,.apipass-search-input-text.label-input input,.apipass-select.label-input input,.custom-select-component.label-input input{padding-bottom:5px!important;padding-top:10px!important}.apipass-date-filter.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-input-text.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-search-input-text.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-select.mat-form-field-should-float .mat-form-field-label-wrapper,.custom-select-component.mat-form-field-should-float .mat-form-field-label-wrapper{margin-top:-10px!important;padding-top:0!important}.apipass-search-input-text{width:100%}.apipass-search-input-text.small-text{font-size:12px}.apipass-search-input-text .mat-form-field-flex{border-left:none!important;border-radius:0!important;border-right:none!important;border-top:none!important;padding:2px 5px 2px 2px!important}.apipass-search-input-text .search-icon{margin-top:-5px!important}.custom-select-component{width:100%}.custom-select-component .mat-form-field-flex{padding:1px 10px!important}.apipass-select{width:100%}.apipass-select .mat-form-field-flex{padding:10px 5px 10px 10px!important}.apipass-select.label-input .mat-form-field-infix{padding-bottom:7px!important;padding-top:7px!important}.apipass-date-filter{width:100%}.apipass-date-filter .mat-form-field-flex{padding:7px 10px!important}.apipass-date-filter .mat-form-field-suffix span{color:#777;cursor:pointer}.apipass-date-filter .mat-form-field-wrapper{padding-bottom:0!important}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0ysmIEDQ.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0w8mIEDQ.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0ycmIEDQ.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0x8mI.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydIhUdwzM.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydKxUdwzM.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydIRUdwzM.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydLxUd.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0-ExdGM.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0aExdGM.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0yExdGM.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0KExQ.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OOtLQ0Z.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OqtLQ0Z.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OCtLQ0Z.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0O6tLQ.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}.text-primary{color:var(--color-primary)!important}.text-secondary{color:var(--color-secondary)!important}.text-tertiary{color:var(--color-fonts-tertiary)!important}.text-weight-bold{font-weight:700!important}.text-weight-normal{font-weight:400!important}.apipass-select-image.ng-select.ng-select-opened>.ng-select-container,.apipass-select.ng-select.ng-select-opened>.ng-select-container{background:#fff;border-color:#b3b3b3 #ccc #d9d9d9;height:51px}.apipass-select-image.ng-select-disabled .ng-select-container,.apipass-select.ng-select-disabled .ng-select-container{background-color:#ccc!important;color:#777!important;cursor:no-drop!important}.apipass-select-image.ng-select-disabled .ng-select-container .ng-arrow-wrapper .ng-arrow,.apipass-select.ng-select-disabled .ng-select-container .ng-arrow-wrapper .ng-arrow{border-color:#777 transparent transparent!important;color:#777!important;cursor:no-drop!important}.apipass-select-image.ng-select-disabled .ng-select-container .ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input,.apipass-select-image.ng-select-disabled .ng-select-container .ng-value,.apipass-select-image.ng-select-disabled .ng-select-container .ng-value-container,.apipass-select.ng-select-disabled .ng-select-container .ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input,.apipass-select.ng-select-disabled .ng-select-container .ng-value,.apipass-select.ng-select-disabled .ng-select-container .ng-value-container{cursor:no-drop!important}.apipass-select-image .select-text-element,.apipass-select .select-text-element{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ng-select.ng-select-opened>.ng-select-container:hover{box-shadow:none}.ng-select.ng-select-opened>.ng-select-container .ng-arrow{border-color:transparent transparent #ddd;border-width:0 5px 5px;top:-2px}.ng-select.ng-select-opened>.ng-select-container .ng-arrow:hover{border-color:transparent transparent #333}.ng-select.ng-select-opened.ng-select-bottom>.ng-select-container{border-bottom-left-radius:0;border-bottom-right-radius:0}.ng-select.ng-select-opened.ng-select-top>.ng-select-container{border-top-left-radius:0;border-top-right-radius:0}.ng-select.ng-select-focused:not(.ng-select-opened)>.ng-select-container{border-color:#007eff;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 0 3px rgba(0,126,255,.1)}.ng-select.ng-select-disabled>.ng-select-container{background-color:#f9f9f9}.ng-select .ng-has-value .ng-placeholder{display:none}.ng-select .ng-select-container{align-items:center!important;background-color:#fff;border:1px solid #ccc;border-radius:4px;color:#333}.apipass-select-image .ng-select-container,.apipass-select .ng-select-container{min-height:51px}.ng-select .ng-select-container:hover{box-shadow:0 1px 0 rgba(0,0,0,.06)}.apipass-select .ng-select-container .ng-value-container{align-items:center!important;padding-left:10px}.apipass-select .ng-select-container .ng-value-container .ng-value{align-items:center!important;display:flex!important}.apipass-select-image .ng-select-container .ng-value-container,.apipass-select .ng-select-container .ng-value-container{align-items:center!important;padding-left:10px}.apipass-select-image .ng-select-container .ng-value-container .ng-value,.apipass-select .ng-select-container .ng-value-container .ng-value{align-items:center!important;display:flex!important}.apipass-select-image .ng-select-container .ng-value-container .ng-input,.apipass-select .ng-select-container .ng-value-container .ng-input{padding-top:0!important;top:auto!important}.apipass-select-image .ng-select-container .ng-value-container .ng-input input,.apipass-select .ng-select-container .ng-value-container .ng-input input{margin-top:-5px!important;padding-bottom:17px!important;padding-top:17px!important}[dir=rtl] .ng-select .ng-select-container .ng-value-container{padding-left:0;padding-right:10px}.ng-select .ng-select-container .ng-value-container .ng-placeholder{color:rgba(0,0,0,.6);font-size:14px}.apipass-select-image .ng-select-container,.apipass-select .ng-select-container{height:51px}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{left:0;padding-left:10px;padding-right:50px;top:5px}[dir=rtl] .ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{padding-left:50px;padding-right:10px}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value{align-items:center!important;background-color:#f9f9f9;border:1px solid #e6e6e6;display:flex!important}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-label{padding:0 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding-left:7px;padding-top:5px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding-left:0;padding-right:7px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{align-items:center!important;background-color:#ebf5ff;border-radius:2px;color:#333;display:flex!important;font-size:.9em;margin-bottom:5px;margin-right:5px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{align-items:center!important;display:flex!important;margin-left:5px;margin-right:0}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled{background-color:#f9f9f9}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:5px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon,.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-label{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon:hover{background-color:#d1e8ff}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left{border-right:1px solid #b8dbff}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left{border-left:1px solid #b8dbff;border-right:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.right{border-left:1px solid #b8dbff}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.right{border-left:0;border-right:1px solid #b8dbff}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{padding:0 0 3px 3px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{padding:0 3px 3px 0}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input>input{color:#000}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{padding-bottom:5px;padding-left:3px;top:5px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{padding-left:0;padding-right:3px}.ng-select .ng-clear-wrapper{color:rgba(0,0,0,.6)}.ng-select .ng-clear-wrapper:hover .ng-clear{color:#d0021b}.ng-select .ng-spinner-zone{padding:5px 5px 0 0}[dir=rtl] .ng-select .ng-spinner-zone{padding:5px 0 0 5px}.ng-select .ng-arrow-wrapper{padding-right:5px;width:25px}[dir=rtl] .ng-select .ng-arrow-wrapper{padding-left:5px;padding-right:0}.ng-select .ng-arrow-wrapper:hover .ng-arrow{border-top-color:#666}.ng-select .ng-arrow-wrapper .ng-arrow{border-color:#ddd transparent transparent;border-style:solid;border-width:5px 5px 2.5px}.ng-dropdown-panel{background-color:#fff;border:1px solid #ddd;box-shadow:0 1px 0 rgba(0,0,0,.06);left:0}.ng-dropdown-panel.ng-select-bottom{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-top-color:#e6e6e6;margin-top:-1px;top:100%}.ng-dropdown-panel.ng-select-bottom .ng-dropdown-panel-items .ng-option:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px}.ng-dropdown-panel.ng-select-top{border-bottom-color:#e6e6e6;border-top-left-radius:4px;border-top-right-radius:4px;bottom:100%;margin-bottom:-1px}.ng-dropdown-panel.ng-select-top .ng-dropdown-panel-items .ng-option:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.ng-dropdown-panel .ng-dropdown-header{border-bottom:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-footer{border-top:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{-webkit-user-select:none;color:rgba(0,0,0,.54);cursor:pointer;font-weight:500;padding:8px 10px;user-select:none}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-disabled{cursor:default}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-marked{background-color:#f5faff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected,.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected.ng-option-marked{background-color:#ebf5ff;font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{align-items:center!important;background-color:#fff;color:rgba(0,0,0,.87);display:flex!important;padding:8px 10px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected,.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked{background-color:#ebf5ff;color:#333}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected .ng-option-label,.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked .ng-option-label{font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background-color:#f5faff;color:#333}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-disabled{color:#ccc}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:22px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:0;padding-right:22px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{font-size:80%;font-weight:400;padding-right:5px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{padding-left:5px;padding-right:0}[dir=rtl] .ng-dropdown-panel{direction:rtl;text-align:right}"]
716
- },] }
717
- ];
718
- SelectBoxComponent.propDecorators = {
719
- placeholder: [{ type: core.Input }],
720
- searchPlaceHolder: [{ type: core.Input }],
721
- clearText: [{ type: core.Input }],
722
- notFoundText: [{ type: core.Input }],
723
- enabledSearch: [{ type: core.Input }],
724
- data: [{ type: core.Input }],
725
- disabled: [{ type: core.Input }],
726
- selectedItem: [{ type: core.Input }],
727
- bindImageUrl: [{ type: core.Input }],
728
- bindKey: [{ type: core.Input }],
729
- bindValue: [{ type: core.Input }],
730
- limitItens: [{ type: core.Input }],
731
- onOpenSelectBox: [{ type: core.Output }],
732
- onCloseSelectBox: [{ type: core.Output }],
733
- onSelectChange: [{ type: core.Output }],
734
- onSelectClear: [{ type: core.Output }],
735
- ngSelectComponent: [{ type: core.ViewChild, args: ['ngSelectComponent',] }]
736
- };
1015
+ var _c0$3 = ["ngSelectComponent"];
1016
+ function SelectBoxComponent_ng_template_2_div_0_Template(rf, ctx) {
1017
+ if (rf & 1) {
1018
+ i0.ɵɵelementStart(0, "div", 6);
1019
+ i0.ɵɵelement(1, "img", 7);
1020
+ i0.ɵɵelementEnd();
1021
+ }
1022
+ if (rf & 2) {
1023
+ var ctx_r4 = i0.ɵɵnextContext(2);
1024
+ i0.ɵɵadvance(1);
1025
+ i0.ɵɵproperty("src", ctx_r4.value[ctx_r4.bindImageUrl] || "./assets/images/no-image.png", i0.ɵɵsanitizeUrl)("alt", ctx_r4.value[ctx_r4.bindValue])("matTooltip", ctx_r4.value[ctx_r4.bindValue]);
1026
+ }
1027
+ }
1028
+ function SelectBoxComponent_ng_template_2_span_1_Template(rf, ctx) {
1029
+ if (rf & 1) {
1030
+ i0.ɵɵelementStart(0, "span", 8);
1031
+ i0.ɵɵtext(1);
1032
+ i0.ɵɵelementEnd();
1033
+ }
1034
+ if (rf & 2) {
1035
+ var ctx_r5 = i0.ɵɵnextContext(2);
1036
+ i0.ɵɵadvance(1);
1037
+ i0.ɵɵtextInterpolate(ctx_r5.value[ctx_r5.bindValue]);
1038
+ }
1039
+ }
1040
+ function SelectBoxComponent_ng_template_2_Template(rf, ctx) {
1041
+ if (rf & 1) {
1042
+ i0.ɵɵtemplate(0, SelectBoxComponent_ng_template_2_div_0_Template, 2, 3, "div", 4);
1043
+ i0.ɵɵtemplate(1, SelectBoxComponent_ng_template_2_span_1_Template, 2, 1, "span", 5);
1044
+ }
1045
+ if (rf & 2) {
1046
+ var ctx_r1 = i0.ɵɵnextContext();
1047
+ i0.ɵɵproperty("ngIf", ctx_r1.value && ctx_r1.value[ctx_r1.bindKey] && ctx_r1.value[ctx_r1.bindValue] && ctx_r1.bindImageUrl);
1048
+ i0.ɵɵadvance(1);
1049
+ i0.ɵɵproperty("ngIf", ctx_r1.value && ctx_r1.value[ctx_r1.bindKey] && ctx_r1.value[ctx_r1.bindValue]);
1050
+ }
1051
+ }
1052
+ function SelectBoxComponent_ng_template_3_div_0_Template(rf, ctx) {
1053
+ if (rf & 1) {
1054
+ i0.ɵɵelementStart(0, "div", 6);
1055
+ i0.ɵɵelement(1, "img", 7);
1056
+ i0.ɵɵelementEnd();
1057
+ }
1058
+ if (rf & 2) {
1059
+ var item_r6 = i0.ɵɵnextContext().item;
1060
+ var ctx_r8 = i0.ɵɵnextContext();
1061
+ i0.ɵɵadvance(1);
1062
+ i0.ɵɵproperty("src", item_r6[ctx_r8.bindImageUrl] || "./assets/images/no-image.png", i0.ɵɵsanitizeUrl)("alt", item_r6[ctx_r8.bindValue])("matTooltip", item_r6[ctx_r8.bindValue]);
1063
+ }
1064
+ }
1065
+ function SelectBoxComponent_ng_template_3_Template(rf, ctx) {
1066
+ if (rf & 1) {
1067
+ i0.ɵɵtemplate(0, SelectBoxComponent_ng_template_3_div_0_Template, 2, 3, "div", 4);
1068
+ i0.ɵɵelementStart(1, "span", 9);
1069
+ i0.ɵɵtext(2);
1070
+ i0.ɵɵelementEnd();
1071
+ }
1072
+ if (rf & 2) {
1073
+ var item_r6 = ctx.item;
1074
+ var ctx_r2 = i0.ɵɵnextContext();
1075
+ i0.ɵɵproperty("ngIf", ctx_r2.bindImageUrl);
1076
+ i0.ɵɵadvance(2);
1077
+ i0.ɵɵtextInterpolate(item_r6[ctx_r2.bindValue]);
1078
+ }
1079
+ }
1080
+ var _c1$2 = function (a0, a1) { return { "apipass-select-image": a0, "apipass-select": a1 }; };
1081
+ var SelectBoxComponent = /** @class */ (function (_super) {
1082
+ __extends(SelectBoxComponent, _super);
1083
+ function SelectBoxComponent() {
1084
+ var _this = _super.apply(this, __spread(arguments)) || this;
1085
+ _this.placeholder = 'Selecione';
1086
+ _this.searchPlaceHolder = 'Buscar';
1087
+ _this.clearText = 'Limpar';
1088
+ _this.notFoundText = 'Nenhum item encontrado';
1089
+ _this.enabledSearch = true;
1090
+ _this.data = [];
1091
+ _this.disabled = false;
1092
+ _this.bindImageUrl = '';
1093
+ _this.bindKey = '';
1094
+ _this.bindValue = '';
1095
+ _this.limitItens = 30;
1096
+ _this.onOpenSelectBox = new i0.EventEmitter();
1097
+ _this.onCloseSelectBox = new i0.EventEmitter();
1098
+ _this.onSelectChange = new i0.EventEmitter();
1099
+ _this.onSelectClear = new i0.EventEmitter();
1100
+ _this.visibleItens = [];
1101
+ _this.loading = false;
1102
+ _this.inputFilter = new rxjs.Subject();
1103
+ _this.lastSearchTerm = '';
1104
+ return _this;
1105
+ }
1106
+ SelectBoxComponent.prototype.ngOnInit = function () {
1107
+ this.onSearch();
1108
+ };
1109
+ SelectBoxComponent.prototype.onSearch = function () {
1110
+ var _this = this;
1111
+ this.inputFilter.pipe(operators.debounceTime(200), operators.distinctUntilChanged()).subscribe(function (searchString) {
1112
+ _this.loading = true;
1113
+ _this.lastSearchTerm = searchString;
1114
+ if (searchString && _this.data) {
1115
+ _this.visibleItens = _this.data.filter(function (item) { var _a; return (_a = item[_this.bindValue]) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(searchString.toLowerCase()); }).slice(0, _this.limitItens);
1116
+ }
1117
+ else if (_this.data) {
1118
+ _this.visibleItens = _this.data.slice(0, _this.limitItens);
1119
+ }
1120
+ else {
1121
+ _this.visibleItens = [];
1122
+ }
1123
+ setTimeout(function () { return _this.loading = false; }, 300);
1124
+ });
1125
+ };
1126
+ // @ts-ignore
1127
+ SelectBoxComponent.prototype.onScroll = function (_b) {
1128
+ var end = _b.end;
1129
+ if (this.loading || this.data.length <= this.visibleItens.length) {
1130
+ return;
1131
+ }
1132
+ if (end + 5 >= this.visibleItens.length) {
1133
+ this.fetchMore();
1134
+ }
1135
+ };
1136
+ SelectBoxComponent.prototype.onScrollToEnd = function () {
1137
+ if (this.loading) {
1138
+ return;
1139
+ }
1140
+ this.fetchMore();
1141
+ };
1142
+ SelectBoxComponent.prototype.fetchMore = function () {
1143
+ var _this = this;
1144
+ this.loading = true;
1145
+ var len = this.visibleItens.length;
1146
+ var more = this.lastSearchTerm ?
1147
+ this.data.filter(function (item) { var _a; return (_a = item[_this.bindValue]) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(_this.lastSearchTerm.toLowerCase()); }).slice(len, this.limitItens + len) :
1148
+ this.data.slice(len, this.limitItens + len);
1149
+ this.visibleItens = this.visibleItens.concat(more);
1150
+ this.loading = false;
1151
+ };
1152
+ SelectBoxComponent.prototype.onKeyDown = function (event) {
1153
+ if (event.which === 32) {
1154
+ event.target.value += ' ';
1155
+ }
1156
+ event.stopPropagation();
1157
+ };
1158
+ SelectBoxComponent.prototype.onSelectionChange = function (event) {
1159
+ var _this = this;
1160
+ var _a;
1161
+ this.selectedItem = (_a = this.data) === null || _a === void 0 ? void 0 : _a.filter(function (el) { return el[_this.bindKey] === _this.value; })[0];
1162
+ this.onSelectChange.emit(this.selectedItem);
1163
+ };
1164
+ SelectBoxComponent.prototype.openSelectBox = function ($event) {
1165
+ this.visibleItens = [];
1166
+ if (this.data) {
1167
+ this.visibleItens = this.data.slice(0, this.limitItens);
1168
+ }
1169
+ this.onOpenSelectBox.next();
1170
+ };
1171
+ SelectBoxComponent.prototype.compareFn = function (a, b) {
1172
+ return a[this.bindKey] === b[this.bindKey];
1173
+ };
1174
+ SelectBoxComponent.prototype.onClear = function () {
1175
+ this.onSelectClear.next();
1176
+ };
1177
+ SelectBoxComponent.prototype.onClose = function ($event) {
1178
+ this.onCloseSelectBox.next();
1179
+ };
1180
+ return SelectBoxComponent;
1181
+ }(ValueAccessorBase));
1182
+ SelectBoxComponent.ɵfac = function SelectBoxComponent_Factory(t) { return ɵSelectBoxComponent_BaseFactory(t || SelectBoxComponent); };
1183
+ SelectBoxComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SelectBoxComponent, selectors: [["select-box"]], viewQuery: function SelectBoxComponent_Query(rf, ctx) {
1184
+ if (rf & 1) {
1185
+ i0.ɵɵviewQuery(_c0$3, true);
1186
+ }
1187
+ if (rf & 2) {
1188
+ var _t;
1189
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.ngSelectComponent = _t.first);
1190
+ }
1191
+ }, inputs: { placeholder: "placeholder", searchPlaceHolder: "searchPlaceHolder", clearText: "clearText", notFoundText: "notFoundText", enabledSearch: "enabledSearch", data: "data", disabled: "disabled", selectedItem: "selectedItem", bindImageUrl: "bindImageUrl", bindKey: "bindKey", bindValue: "bindValue", limitItens: "limitItens" }, outputs: { onOpenSelectBox: "onOpenSelectBox", onCloseSelectBox: "onCloseSelectBox", onSelectChange: "onSelectChange", onSelectClear: "onSelectClear" }, features: [i0.ɵɵProvidersFeature([{
1192
+ provide: i4.NG_VALUE_ACCESSOR,
1193
+ useExisting: i0.forwardRef(function () { return SelectBoxComponent; }),
1194
+ multi: true
1195
+ }]), i0.ɵɵInheritDefinitionFeature], decls: 4, vars: 17, consts: [["appendTo", "body", 3, "ngModel", "items", "virtualScroll", "loading", "placeholder", "clearAllText", "searchable", "typeToSearchText", "notFoundText", "disabled", "typeahead", "ngClass", "compareWith", "ngModelChange", "open", "close", "clear", "scroll", "scrollToEnd", "change"], ["ngSelectComponent", ""], ["ng-label-tmp", "", 3, "ngIf"], ["ng-option-tmp", ""], ["class", "image", "style", "width: 40px;height: 40px; margin-right: 10px;", 4, "ngIf"], ["class", "select-text-element", 4, "ngIf"], [1, "image", 2, "width", "40px", "height", "40px", "margin-right", "10px"], ["loading", "lazy", 2, "width", "auto", "max-width", "40px", "height", "40px", 3, "src", "alt", "matTooltip"], [1, "select-text-element"], [1, "select-text-element", 2, "white-space", "nowrap", "overflow", "hidden", "text-overflow", "ellipsis"]], template: function SelectBoxComponent_Template(rf, ctx) {
1196
+ if (rf & 1) {
1197
+ i0.ɵɵelementStart(0, "ng-select", 0, 1);
1198
+ i0.ɵɵlistener("ngModelChange", function SelectBoxComponent_Template_ng_select_ngModelChange_0_listener($event) { return ctx.value = $event; })("open", function SelectBoxComponent_Template_ng_select_open_0_listener($event) { return ctx.openSelectBox($event); })("close", function SelectBoxComponent_Template_ng_select_close_0_listener($event) { return ctx.onClose($event); })("clear", function SelectBoxComponent_Template_ng_select_clear_0_listener() { return ctx.onClear(); })("scroll", function SelectBoxComponent_Template_ng_select_scroll_0_listener($event) { return ctx.onScroll($event); })("scrollToEnd", function SelectBoxComponent_Template_ng_select_scrollToEnd_0_listener() { return ctx.onScrollToEnd(); })("change", function SelectBoxComponent_Template_ng_select_change_0_listener($event) { return ctx.onSelectionChange($event); });
1199
+ i0.ɵɵtemplate(2, SelectBoxComponent_ng_template_2_Template, 2, 2, "ng-template", 2);
1200
+ i0.ɵɵtemplate(3, SelectBoxComponent_ng_template_3_Template, 3, 2, "ng-template", 3);
1201
+ i0.ɵɵelementEnd();
1202
+ }
1203
+ if (rf & 2) {
1204
+ i0.ɵɵproperty("ngModel", ctx.value)("items", ctx.visibleItens)("virtualScroll", true)("loading", ctx.loading)("placeholder", ctx.placeholder)("clearAllText", ctx.clearText)("searchable", ctx.enabledSearch)("typeToSearchText", ctx.searchPlaceHolder)("notFoundText", ctx.notFoundText)("disabled", ctx.disabled)("typeahead", ctx.inputFilter)("ngClass", i0.ɵɵpureFunction2(14, _c1$2, ctx.bindImageUrl, !ctx.bindImageUrl))("compareWith", ctx.compareFn);
1205
+ i0.ɵɵadvance(2);
1206
+ i0.ɵɵproperty("ngIf", ctx.value && ctx.value[ctx.bindKey] && ctx.value[ctx.bindValue]);
1207
+ }
1208
+ }, directives: [i1$2.NgSelectComponent, i4.NgControlStatus, i4.NgModel, i2.NgClass, i1$2.ɵh, i2.NgIf, i1$2.ɵf, i2$1.MatTooltip], styles: [":root{--color-body-light:#fff;--color-fonts-tertiary:#777;--color-inputs-background:#fff;--color-inputs-border:#ddd;--color-primary:#222d57;--color-primary-active:#29376a;--color-primary-hover:#18203d;--color-red:red;--color-secondary:#d3d921;--color-secondary-active:#dce13f;--color-secondary-hover:#b3b81c;--color-tertiary:#efefef;--color-tertiary-active:#f1f1f1;--color-tertiary-hover:#cbcbcb;--color_components_light:#fff;--color_disabled:#e0e0e0;--color_graph_error:#eb5757;--color_graph_error_hover:#c91717;--color_graph_primary:#1643ef;--color_graph_primary_hover:#0a2692;--color_icon_remove:var(--color-red);--color_icon_success:#070;--limit-plan-color:#ff6c00}.mat-form-field-underline,.mat-input-underline{display:none}.mat-form-field-appearance-fill .mat-form-field-flex{align-items:center!important;background:var(--color-inputs-background)!important;border:1px solid var(--color-inputs-border)!important;border-radius:6px!important;display:flex!important}.mat-form-field-infix{align-items:center!important;border-top:none!important;padding:0!important}.mat-form-field-infix,.mat-select-arrow-wrapper{display:flex!important}.mat-icon-button{width:auto!important}.no-border .mat-form-field-flex{border:none!important}.no-border .mat-form-field-flex input{padding:1px}.mat-form-field-label-wrapper{top:-10px}.mat-form-field-should-float .mat-form-field-label-wrapper{font-size:14px}.placeholder-primary .mat-focused .mat-form-field-placeholder,.placeholder-primary .mat-form-field-label-wrapper,.placeholder-primary .mat-form-field-label-wrapper label,.placeholder-primary .mat-form-field-placeholder,.placeholder-primary ::ng-deep .mat-focused .mat-form-field-placeholder,.placeholder-primary ::ng-deep .mat-form-field-placeholder{color:var(--color-primary)!important}.placeholder-primary input ::placeholder{color:var(--color-primary)!important}.placeholder-bold .mat-focused .mat-form-field-placeholder,.placeholder-bold .mat-form-field-label-wrapper,.placeholder-bold .mat-form-field-label-wrapper label,.placeholder-bold .mat-form-field-placeholder,.placeholder-bold ::ng-deep .mat-focused .mat-form-field-placeholder,.placeholder-bold ::ng-deep .mat-form-field-placeholder{font-weight:700!important}.placeholder-bold input ::placeholder{font-weight:700!important}.apipass-input-text{width:100%}.apipass-input-text .mat-form-field-flex{padding:10px!important}.apipass-date-filter .mat-form-field-wrapper,.apipass-input-text .mat-form-field-wrapper,.apipass-search-input-text .mat-form-field-wrapper,.apipass-select .mat-form-field-wrapper,.custom-select-component .mat-form-field-wrapper{padding:0!important}.apipass-date-filter .mat-icon-button,.apipass-input-text .mat-icon-button,.apipass-search-input-text .mat-icon-button,.apipass-select .mat-icon-button,.custom-select-component .mat-icon-button{height:auto!important;width:auto!important}.apipass-date-filter.label-input .mat-form-field-label-wrapper,.apipass-input-text.label-input .mat-form-field-label-wrapper,.apipass-search-input-text.label-input .mat-form-field-label-wrapper,.apipass-select.label-input .mat-form-field-label-wrapper,.custom-select-component.label-input .mat-form-field-label-wrapper{padding-top:0;top:auto!important}.apipass-date-filter.label-input input,.apipass-input-text.label-input input,.apipass-search-input-text.label-input input,.apipass-select.label-input input,.custom-select-component.label-input input{padding-bottom:5px!important;padding-top:10px!important}.apipass-date-filter.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-input-text.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-search-input-text.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-select.mat-form-field-should-float .mat-form-field-label-wrapper,.custom-select-component.mat-form-field-should-float .mat-form-field-label-wrapper{margin-top:-10px!important;padding-top:0!important}.apipass-search-input-text{width:100%}.apipass-search-input-text.small-text{font-size:12px}.apipass-search-input-text .mat-form-field-flex{border-left:none!important;border-radius:0!important;border-right:none!important;border-top:none!important;padding:2px 5px 2px 2px!important}.apipass-search-input-text .search-icon{margin-top:-5px!important}.custom-select-component{width:100%}.custom-select-component .mat-form-field-flex{padding:1px 10px!important}.apipass-select{width:100%}.apipass-select .mat-form-field-flex{padding:10px 5px 10px 10px!important}.apipass-select.label-input .mat-form-field-infix{padding-bottom:7px!important;padding-top:7px!important}.apipass-date-filter{width:100%}.apipass-date-filter .mat-form-field-flex{padding:7px 10px!important}.apipass-date-filter .mat-form-field-suffix span{color:#777;cursor:pointer}.apipass-date-filter .mat-form-field-wrapper{padding-bottom:0!important}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0ysmIEDQ.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0w8mIEDQ.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0ycmIEDQ.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0x8mI.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydIhUdwzM.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydKxUdwzM.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydIRUdwzM.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydLxUd.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0-ExdGM.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0aExdGM.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0yExdGM.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0KExQ.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OOtLQ0Z.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OqtLQ0Z.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OCtLQ0Z.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0O6tLQ.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}.text-primary{color:var(--color-primary)!important}.text-secondary{color:var(--color-secondary)!important}.text-tertiary{color:var(--color-fonts-tertiary)!important}.text-weight-bold{font-weight:700!important}.text-weight-normal{font-weight:400!important}.apipass-select-image.ng-select.ng-select-opened>.ng-select-container,.apipass-select.ng-select.ng-select-opened>.ng-select-container{background:#fff;border-color:#b3b3b3 #ccc #d9d9d9;height:51px}.apipass-select-image.ng-select-disabled .ng-select-container,.apipass-select.ng-select-disabled .ng-select-container{background-color:#ccc!important;color:#777!important;cursor:no-drop!important}.apipass-select-image.ng-select-disabled .ng-select-container .ng-arrow-wrapper .ng-arrow,.apipass-select.ng-select-disabled .ng-select-container .ng-arrow-wrapper .ng-arrow{border-color:#777 transparent transparent!important;color:#777!important;cursor:no-drop!important}.apipass-select-image.ng-select-disabled .ng-select-container .ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input,.apipass-select-image.ng-select-disabled .ng-select-container .ng-value,.apipass-select-image.ng-select-disabled .ng-select-container .ng-value-container,.apipass-select.ng-select-disabled .ng-select-container .ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input,.apipass-select.ng-select-disabled .ng-select-container .ng-value,.apipass-select.ng-select-disabled .ng-select-container .ng-value-container{cursor:no-drop!important}.apipass-select-image .select-text-element,.apipass-select .select-text-element{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ng-select.ng-select-opened>.ng-select-container:hover{box-shadow:none}.ng-select.ng-select-opened>.ng-select-container .ng-arrow{border-color:transparent transparent #ddd;border-width:0 5px 5px;top:-2px}.ng-select.ng-select-opened>.ng-select-container .ng-arrow:hover{border-color:transparent transparent #333}.ng-select.ng-select-opened.ng-select-bottom>.ng-select-container{border-bottom-left-radius:0;border-bottom-right-radius:0}.ng-select.ng-select-opened.ng-select-top>.ng-select-container{border-top-left-radius:0;border-top-right-radius:0}.ng-select.ng-select-focused:not(.ng-select-opened)>.ng-select-container{border-color:#007eff;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 0 3px rgba(0,126,255,.1)}.ng-select.ng-select-disabled>.ng-select-container{background-color:#f9f9f9}.ng-select .ng-has-value .ng-placeholder{display:none}.ng-select .ng-select-container{align-items:center!important;background-color:#fff;border:1px solid #ccc;border-radius:4px;color:#333}.apipass-select-image .ng-select-container,.apipass-select .ng-select-container{min-height:51px}.ng-select .ng-select-container:hover{box-shadow:0 1px 0 rgba(0,0,0,.06)}.apipass-select .ng-select-container .ng-value-container{align-items:center!important;padding-left:10px}.apipass-select .ng-select-container .ng-value-container .ng-value{align-items:center!important;display:flex!important}.apipass-select-image .ng-select-container .ng-value-container,.apipass-select .ng-select-container .ng-value-container{align-items:center!important;padding-left:10px}.apipass-select-image .ng-select-container .ng-value-container .ng-value,.apipass-select .ng-select-container .ng-value-container .ng-value{align-items:center!important;display:flex!important}.apipass-select-image .ng-select-container .ng-value-container .ng-input,.apipass-select .ng-select-container .ng-value-container .ng-input{padding-top:0!important;top:auto!important}.apipass-select-image .ng-select-container .ng-value-container .ng-input input,.apipass-select .ng-select-container .ng-value-container .ng-input input{margin-top:-5px!important;padding-bottom:17px!important;padding-top:17px!important}[dir=rtl] .ng-select .ng-select-container .ng-value-container{padding-left:0;padding-right:10px}.ng-select .ng-select-container .ng-value-container .ng-placeholder{color:rgba(0,0,0,.6);font-size:14px}.apipass-select-image .ng-select-container,.apipass-select .ng-select-container{height:51px}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{left:0;padding-left:10px;padding-right:50px;top:5px}[dir=rtl] .ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{padding-left:50px;padding-right:10px}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value{align-items:center!important;background-color:#f9f9f9;border:1px solid #e6e6e6;display:flex!important}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-label{padding:0 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding-left:7px;padding-top:5px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding-left:0;padding-right:7px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{align-items:center!important;background-color:#ebf5ff;border-radius:2px;color:#333;display:flex!important;font-size:.9em;margin-bottom:5px;margin-right:5px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{align-items:center!important;display:flex!important;margin-left:5px;margin-right:0}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled{background-color:#f9f9f9}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:5px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon,.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-label{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon:hover{background-color:#d1e8ff}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left{border-right:1px solid #b8dbff}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left{border-left:1px solid #b8dbff;border-right:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.right{border-left:1px solid #b8dbff}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.right{border-left:0;border-right:1px solid #b8dbff}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{padding:0 0 3px 3px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{padding:0 3px 3px 0}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input>input{color:#000}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{padding-bottom:5px;padding-left:3px;top:5px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{padding-left:0;padding-right:3px}.ng-select .ng-clear-wrapper{color:rgba(0,0,0,.6)}.ng-select .ng-clear-wrapper:hover .ng-clear{color:#d0021b}.ng-select .ng-spinner-zone{padding:5px 5px 0 0}[dir=rtl] .ng-select .ng-spinner-zone{padding:5px 0 0 5px}.ng-select .ng-arrow-wrapper{padding-right:5px;width:25px}[dir=rtl] .ng-select .ng-arrow-wrapper{padding-left:5px;padding-right:0}.ng-select .ng-arrow-wrapper:hover .ng-arrow{border-top-color:#666}.ng-select .ng-arrow-wrapper .ng-arrow{border-color:#ddd transparent transparent;border-style:solid;border-width:5px 5px 2.5px}.ng-dropdown-panel{background-color:#fff;border:1px solid #ddd;box-shadow:0 1px 0 rgba(0,0,0,.06);left:0}.ng-dropdown-panel.ng-select-bottom{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-top-color:#e6e6e6;margin-top:-1px;top:100%}.ng-dropdown-panel.ng-select-bottom .ng-dropdown-panel-items .ng-option:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px}.ng-dropdown-panel.ng-select-top{border-bottom-color:#e6e6e6;border-top-left-radius:4px;border-top-right-radius:4px;bottom:100%;margin-bottom:-1px}.ng-dropdown-panel.ng-select-top .ng-dropdown-panel-items .ng-option:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.ng-dropdown-panel .ng-dropdown-header{border-bottom:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-footer{border-top:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{-webkit-user-select:none;color:rgba(0,0,0,.54);cursor:pointer;font-weight:500;padding:8px 10px;user-select:none}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-disabled{cursor:default}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-marked{background-color:#f5faff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected,.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected.ng-option-marked{background-color:#ebf5ff;font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{align-items:center!important;background-color:#fff;color:rgba(0,0,0,.87);display:flex!important;padding:8px 10px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected,.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked{background-color:#ebf5ff;color:#333}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected .ng-option-label,.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked .ng-option-label{font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background-color:#f5faff;color:#333}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-disabled{color:#ccc}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:22px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:0;padding-right:22px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{font-size:80%;font-weight:400;padding-right:5px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{padding-left:5px;padding-right:0}[dir=rtl] .ng-dropdown-panel{direction:rtl;text-align:right}"], encapsulation: 2 });
1209
+ var ɵSelectBoxComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(SelectBoxComponent);
1210
+ /*@__PURE__*/ (function () {
1211
+ i0.ɵsetClassMetadata(SelectBoxComponent, [{
1212
+ type: i0.Component,
1213
+ args: [{
1214
+ selector: 'select-box',
1215
+ templateUrl: 'select-box.component.html',
1216
+ styleUrls: ['select-box.component.scss'],
1217
+ providers: [{
1218
+ provide: i4.NG_VALUE_ACCESSOR,
1219
+ useExisting: i0.forwardRef(function () { return SelectBoxComponent; }),
1220
+ multi: true
1221
+ }],
1222
+ encapsulation: i0.ViewEncapsulation.None
1223
+ }]
1224
+ }], null, { placeholder: [{
1225
+ type: i0.Input
1226
+ }], searchPlaceHolder: [{
1227
+ type: i0.Input
1228
+ }], clearText: [{
1229
+ type: i0.Input
1230
+ }], notFoundText: [{
1231
+ type: i0.Input
1232
+ }], enabledSearch: [{
1233
+ type: i0.Input
1234
+ }], data: [{
1235
+ type: i0.Input
1236
+ }], disabled: [{
1237
+ type: i0.Input
1238
+ }], selectedItem: [{
1239
+ type: i0.Input
1240
+ }], bindImageUrl: [{
1241
+ type: i0.Input
1242
+ }], bindKey: [{
1243
+ type: i0.Input
1244
+ }], bindValue: [{
1245
+ type: i0.Input
1246
+ }], limitItens: [{
1247
+ type: i0.Input
1248
+ }], onOpenSelectBox: [{
1249
+ type: i0.Output
1250
+ }], onCloseSelectBox: [{
1251
+ type: i0.Output
1252
+ }], onSelectChange: [{
1253
+ type: i0.Output
1254
+ }], onSelectClear: [{
1255
+ type: i0.Output
1256
+ }], ngSelectComponent: [{
1257
+ type: i0.ViewChild,
1258
+ args: ['ngSelectComponent']
1259
+ }] });
1260
+ })();
737
1261
 
738
- /** The height of the select items in `em` units. */
739
- var SELECT_ITEM_HEIGHT_EM = 3;
740
- var MatSelectInfiniteScrollDirective = /** @class */ (function () {
741
- function MatSelectInfiniteScrollDirective(matSelect, ngZone) {
742
- this.matSelect = matSelect;
743
- this.ngZone = ngZone;
744
- this.threshold = '15%';
745
- this.debounceTime = 150;
746
- this.infiniteScroll = new core.EventEmitter();
747
- this.thrPx = 0;
748
- this.thrPc = 0;
749
- this.singleOptionHeight = SELECT_ITEM_HEIGHT_EM;
750
- this.destroyed$ = new rxjs.Subject();
751
- }
752
- MatSelectInfiniteScrollDirective.prototype.ngOnInit = function () {
753
- this.evaluateThreshold();
754
- };
755
- MatSelectInfiniteScrollDirective.prototype.ngAfterViewInit = function () {
756
- var _this = this;
757
- this.matSelect.openedChange.pipe(operators.takeUntil(this.destroyed$)).subscribe(function (opened) {
758
- if (opened) {
759
- _this.panel = _this.matSelect.panel.nativeElement;
760
- _this.singleOptionHeight = _this.getSelectItemHeightPx();
761
- _this.registerScrollListener();
762
- }
763
- });
764
- };
765
- MatSelectInfiniteScrollDirective.prototype.ngOnDestroy = function () {
766
- this.destroyed$.next(true);
767
- this.destroyed$.complete();
768
- };
769
- MatSelectInfiniteScrollDirective.prototype.evaluateThreshold = function () {
770
- if (this.threshold.lastIndexOf('%') > -1) {
771
- this.thrPx = 0;
772
- this.thrPc = (parseFloat(this.threshold) / 100);
773
- }
774
- else {
775
- this.thrPx = parseFloat(this.threshold);
776
- this.thrPc = 0;
777
- }
778
- };
779
- MatSelectInfiniteScrollDirective.prototype.registerScrollListener = function () {
780
- var _this = this;
781
- rxjs.fromEvent(this.panel, 'scroll').pipe(operators.takeUntil(this.destroyed$), operators.debounceTime(this.debounceTime), operators.tap(function (event) {
782
- _this.handleScrollEvent(event);
783
- })).subscribe();
784
- };
785
- MatSelectInfiniteScrollDirective.prototype.handleScrollEvent = function (event) {
786
- var _this = this;
787
- this.ngZone.runOutsideAngular(function () {
788
- if (_this.complete) {
789
- return;
790
- }
791
- var countOfRenderedOptions = _this.matSelect.options.length;
792
- var infiniteScrollDistance = _this.singleOptionHeight * countOfRenderedOptions;
793
- var threshold = _this.thrPc !== 0 ? (infiniteScrollDistance * _this.thrPc) : _this.thrPx;
794
- var scrolledDistance = _this.panel.clientHeight + event.target.scrollTop;
795
- if ((scrolledDistance + threshold) >= infiniteScrollDistance) {
796
- _this.ngZone.run(function () { return _this.infiniteScroll.emit(); });
797
- }
798
- });
799
- };
800
- MatSelectInfiniteScrollDirective.prototype.getSelectItemHeightPx = function () {
801
- return parseFloat(getComputedStyle(this.panel).fontSize) * SELECT_ITEM_HEIGHT_EM;
802
- };
803
- return MatSelectInfiniteScrollDirective;
804
- }());
805
- MatSelectInfiniteScrollDirective.decorators = [
806
- { type: core.Directive, args: [{
807
- selector: '[msInfiniteScroll]'
808
- },] }
809
- ];
810
- MatSelectInfiniteScrollDirective.ctorParameters = function () { return [
811
- { type: select.MatSelect },
812
- { type: core.NgZone }
813
- ]; };
814
- MatSelectInfiniteScrollDirective.propDecorators = {
815
- threshold: [{ type: core.Input }],
816
- debounceTime: [{ type: core.Input }],
817
- complete: [{ type: core.Input }],
818
- infiniteScroll: [{ type: core.Output }]
819
- };
1262
+ /** The height of the select items in `em` units. */
1263
+ var SELECT_ITEM_HEIGHT_EM = 3;
1264
+ var MatSelectInfiniteScrollDirective = /** @class */ (function () {
1265
+ function MatSelectInfiniteScrollDirective(matSelect, ngZone) {
1266
+ this.matSelect = matSelect;
1267
+ this.ngZone = ngZone;
1268
+ this.threshold = '15%';
1269
+ this.debounceTime = 150;
1270
+ this.infiniteScroll = new i0.EventEmitter();
1271
+ this.thrPx = 0;
1272
+ this.thrPc = 0;
1273
+ this.singleOptionHeight = SELECT_ITEM_HEIGHT_EM;
1274
+ this.destroyed$ = new rxjs.Subject();
1275
+ }
1276
+ MatSelectInfiniteScrollDirective.prototype.ngOnInit = function () {
1277
+ this.evaluateThreshold();
1278
+ };
1279
+ MatSelectInfiniteScrollDirective.prototype.ngAfterViewInit = function () {
1280
+ var _this = this;
1281
+ this.matSelect.openedChange.pipe(operators.takeUntil(this.destroyed$)).subscribe(function (opened) {
1282
+ if (opened) {
1283
+ _this.panel = _this.matSelect.panel.nativeElement;
1284
+ _this.singleOptionHeight = _this.getSelectItemHeightPx();
1285
+ _this.registerScrollListener();
1286
+ }
1287
+ });
1288
+ };
1289
+ MatSelectInfiniteScrollDirective.prototype.ngOnDestroy = function () {
1290
+ this.destroyed$.next(true);
1291
+ this.destroyed$.complete();
1292
+ };
1293
+ MatSelectInfiniteScrollDirective.prototype.evaluateThreshold = function () {
1294
+ if (this.threshold.lastIndexOf('%') > -1) {
1295
+ this.thrPx = 0;
1296
+ this.thrPc = (parseFloat(this.threshold) / 100);
1297
+ }
1298
+ else {
1299
+ this.thrPx = parseFloat(this.threshold);
1300
+ this.thrPc = 0;
1301
+ }
1302
+ };
1303
+ MatSelectInfiniteScrollDirective.prototype.registerScrollListener = function () {
1304
+ var _this = this;
1305
+ rxjs.fromEvent(this.panel, 'scroll').pipe(operators.takeUntil(this.destroyed$), operators.debounceTime(this.debounceTime), operators.tap(function (event) {
1306
+ _this.handleScrollEvent(event);
1307
+ })).subscribe();
1308
+ };
1309
+ MatSelectInfiniteScrollDirective.prototype.handleScrollEvent = function (event) {
1310
+ var _this = this;
1311
+ this.ngZone.runOutsideAngular(function () {
1312
+ if (_this.complete) {
1313
+ return;
1314
+ }
1315
+ var countOfRenderedOptions = _this.matSelect.options.length;
1316
+ var infiniteScrollDistance = _this.singleOptionHeight * countOfRenderedOptions;
1317
+ var threshold = _this.thrPc !== 0 ? (infiniteScrollDistance * _this.thrPc) : _this.thrPx;
1318
+ var scrolledDistance = _this.panel.clientHeight + event.target.scrollTop;
1319
+ if ((scrolledDistance + threshold) >= infiniteScrollDistance) {
1320
+ _this.ngZone.run(function () { return _this.infiniteScroll.emit(); });
1321
+ }
1322
+ });
1323
+ };
1324
+ MatSelectInfiniteScrollDirective.prototype.getSelectItemHeightPx = function () {
1325
+ return parseFloat(getComputedStyle(this.panel).fontSize) * SELECT_ITEM_HEIGHT_EM;
1326
+ };
1327
+ return MatSelectInfiniteScrollDirective;
1328
+ }());
1329
+ MatSelectInfiniteScrollDirective.ɵfac = function MatSelectInfiniteScrollDirective_Factory(t) { return new (t || MatSelectInfiniteScrollDirective)(i0.ɵɵdirectiveInject(i1$1.MatSelect), i0.ɵɵdirectiveInject(i0.NgZone)); };
1330
+ MatSelectInfiniteScrollDirective.ɵdir = i0.ɵɵdefineDirective({ type: MatSelectInfiniteScrollDirective, selectors: [["", "msInfiniteScroll", ""]], inputs: { threshold: "threshold", debounceTime: "debounceTime", complete: "complete" }, outputs: { infiniteScroll: "infiniteScroll" } });
1331
+ /*@__PURE__*/ (function () {
1332
+ i0.ɵsetClassMetadata(MatSelectInfiniteScrollDirective, [{
1333
+ type: i0.Directive,
1334
+ args: [{
1335
+ selector: '[msInfiniteScroll]'
1336
+ }]
1337
+ }], function () { return [{ type: i1$1.MatSelect }, { type: i0.NgZone }]; }, { threshold: [{
1338
+ type: i0.Input
1339
+ }], debounceTime: [{
1340
+ type: i0.Input
1341
+ }], complete: [{
1342
+ type: i0.Input
1343
+ }], infiniteScroll: [{
1344
+ type: i0.Output
1345
+ }] });
1346
+ })();
820
1347
 
821
- var CustomSelectItem = /** @class */ (function () {
822
- function CustomSelectItem(id, text) {
823
- this.id = id;
824
- this.text = text;
825
- }
826
- return CustomSelectItem;
1348
+ var CustomSelectItem = /** @class */ (function () {
1349
+ function CustomSelectItem(id, text) {
1350
+ this.id = id;
1351
+ this.text = text;
1352
+ }
1353
+ return CustomSelectItem;
827
1354
  }());
828
1355
 
829
- var CustomSelectComponent = /** @class */ (function () {
830
- function CustomSelectComponent() {
831
- this.disabled = false;
832
- this.items = [];
833
- this.allowTyping = false;
834
- this.allowRemove = false;
835
- this.placeHolder = 'Selecione';
836
- this.findPlaceHolder = 'Busque um item';
837
- this.searchText = '';
838
- this.onSelect = new core.EventEmitter();
839
- this.onUnSelect = new core.EventEmitter();
840
- this.onAddItem = new core.EventEmitter();
841
- this.opened = false;
842
- this.edited = false;
843
- this.tabindex = '0';
844
- this.onTouchedCallback = function () {
845
- };
846
- this.onChangeCallback = function () {
847
- };
848
- }
849
- CustomSelectComponent.prototype.onBlur = function (target) {
850
- if (this.allowTyping) {
851
- if (this.value) {
852
- if (this.edited) {
853
- this.writeValue(this.value);
854
- this.selectedItem = new CustomSelectItem(this.value, this.value);
855
- this.onSelect.next(this.selectedItem);
856
- }
857
- }
858
- else {
859
- this.writeValue(undefined);
860
- this.onSelect.next(undefined);
861
- }
862
- }
863
- if (target && target.relatedTarget && target.relatedTarget.classList.contains('search-input-item')) {
864
- return;
865
- }
866
- this.opened = false;
867
- };
868
- CustomSelectComponent.prototype.selectItem = function (item) {
869
- this.opened = false;
870
- this.selectedItem = item;
871
- this.edited = false;
872
- this.selectedModelValue = item.text;
873
- this.value = item.text;
874
- this.searchText = '';
875
- this.onSelect.next(item);
876
- };
877
- CustomSelectComponent.prototype.addItem = function () {
878
- this.opened = false;
879
- this.searchText = '';
880
- this.onAddItem.next();
881
- };
882
- CustomSelectComponent.prototype.keyPress = function () {
883
- if (this.allowTyping) {
884
- this.opened = false;
885
- this.edited = true;
886
- this.selectedModelValue = this.value;
887
- this.searchText = '';
888
- }
889
- else {
890
- this.edited = false;
891
- return false;
892
- }
893
- };
894
- CustomSelectComponent.prototype.clicked = function () {
895
- this.opened = true;
896
- this.searchText = '';
897
- };
898
- Object.defineProperty(CustomSelectComponent.prototype, "value", {
899
- get: function () {
900
- return this.innerValue;
901
- },
902
- set: function (value) {
903
- this.innerValue = value;
904
- this.onChangeCallback(value);
905
- this.onSelect.next(value);
906
- },
907
- enumerable: false,
908
- configurable: true
909
- });
910
- CustomSelectComponent.prototype.writeValue = function (value) {
911
- if (value !== this.innerValue) {
912
- if (!this.selectedItem || !this.selectedItem.text || !value) {
913
- this.selectedItem = new CustomSelectItem(null, value);
914
- }
915
- this.innerValue = value;
916
- this.selectedModelValue = value;
917
- }
918
- };
919
- CustomSelectComponent.prototype.registerOnChange = function (fn) {
920
- this.onChangeCallback = fn;
921
- };
922
- CustomSelectComponent.prototype.registerOnTouched = function (fn) {
923
- this.onTouchedCallback = fn;
924
- };
925
- CustomSelectComponent.prototype.setDisabledState = function (isDisabled) {
926
- this.disabled = isDisabled;
927
- };
928
- CustomSelectComponent.prototype.arrowClick = function () {
929
- var _a;
930
- this.opened = true;
931
- this.searchText = '';
932
- (_a = this.input) === null || _a === void 0 ? void 0 : _a.nativeElement.focus();
933
- };
934
- CustomSelectComponent.prototype.removeClick = function (event) {
935
- event.stopPropagation();
936
- this.opened = false;
937
- this.searchText = '';
938
- this.innerValue = null;
939
- this.onUnSelect.next();
940
- };
941
- CustomSelectComponent.prototype.onDrop = function ($event) {
942
- this.searchText = '';
943
- if (!this.value) {
944
- this.value = '';
945
- }
946
- this.value += "{{" + $event.data + "}}";
947
- };
948
- return CustomSelectComponent;
949
- }());
950
- CustomSelectComponent.decorators = [
951
- { type: core.Component, args: [{
952
- selector: 'custom-select',
953
- template: "<mat-form-field class=\"custom-select-component\" [ngClass]=\"{'select-open' : opened}\" appearance=\"fill\" autocomplete=\"off\">\r\n <input matInput #input\r\n [placeholder]=\"placeHolder\"\r\n (focus)=\"opened = true\"\r\n (blur)=\"onBlur($event)\"\r\n [(ngModel)]=\"value\"\r\n [ngModelOptions]=\"{standalone: true}\"\r\n [disabled]=\"disabled\"\r\n (keyup)=keyPress()\r\n (click)=\"clicked()\"\r\n dndDropzone\r\n (dndDrop)=\"onDrop($event)\"\r\n autocomplete=\"off\"\r\n />\r\n <span *ngIf=\"allowRemove\" title=\"Remover\" class=\"remove-icon\" (click)=\"removeClick($event)\">\r\n <i class=\"fa fa-times\"></i>\r\n </span>\r\n <span class=\"open-icon\" (click)=\"arrowClick()\">\r\n <i class=\"fa fa-caret-down\"></i>\r\n </span>\r\n</mat-form-field>\r\n<div class=\"custom-select-component\">\r\n <ul class=\"ul-ac\" *ngIf=\"opened && ((value && value.length !== 0) || items)\">\r\n <li class=\"li-search search-input-item\">\r\n <mat-form-field class=\"apipass-input-text search-input-item\" appearance=\"fill\">\r\n <input matInput class=\"search-input-item\"\r\n [placeholder]=\"findPlaceHolder\"\r\n [(ngModel)]=\"searchText\"\r\n (blur)=\"onBlur($event)\"\r\n aria-autocomplete=\"none\"\r\n />\r\n </mat-form-field>\r\n </li>\r\n\r\n <li class=\"clickable\" *ngFor=\"let i of items | selectFilter:searchText:'text'\"\r\n (click)=\"selectItem(i)\"\r\n (mousedown)=\"selectItem(i)\">\r\n {{i.text}}\r\n </li>\r\n\r\n <li class=\"li-add\" (mousedown)=\"addItem()\" (click)=\"addItem()\">\r\n <span class=\"fa fa-plus-circle\"></span>\r\n <span>Adicionar novo item</span>\r\n </li>\r\n </ul>\r\n</div>\r\n",
954
- providers: [{
955
- provide: forms.NG_VALUE_ACCESSOR,
956
- useExisting: core.forwardRef(function () { return CustomSelectComponent; }),
957
- multi: true
958
- }],
959
- styles: [":root{--color-body-light:#fff;--color-fonts-tertiary:#777;--color-inputs-background:#fff;--color-inputs-border:#ddd;--color-primary:#222d57;--color-primary-active:#29376a;--color-primary-hover:#18203d;--color-red:red;--color-secondary:#d3d921;--color-secondary-active:#dce13f;--color-secondary-hover:#b3b81c;--color-tertiary:#efefef;--color-tertiary-active:#f1f1f1;--color-tertiary-hover:#cbcbcb;--color_components_light:#fff;--color_disabled:#e0e0e0;--color_graph_error:#eb5757;--color_graph_error_hover:#c91717;--color_graph_primary:#1643ef;--color_graph_primary_hover:#0a2692;--color_icon_remove:var(--color-red);--color_icon_success:#070;--limit-plan-color:#ff6c00}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0ysmIEDQ.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0w8mIEDQ.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0ycmIEDQ.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0x8mI.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydIhUdwzM.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydKxUdwzM.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydIRUdwzM.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydLxUd.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0-ExdGM.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0aExdGM.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0yExdGM.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0KExQ.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OOtLQ0Z.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OqtLQ0Z.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OCtLQ0Z.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0O6tLQ.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}.text-primary{color:var(--color-primary)!important}.text-secondary{color:var(--color-secondary)!important}.text-tertiary{color:var(--color-fonts-tertiary)!important}.text-weight-bold{font-weight:700!important}.text-weight-normal{font-weight:400!important}.mat-form-field-underline,.mat-input-underline{display:none}.mat-form-field-appearance-fill .mat-form-field-flex{align-items:center!important;background:var(--color-inputs-background)!important;border:1px solid var(--color-inputs-border)!important;border-radius:6px!important;display:flex!important}.mat-form-field-infix{align-items:center!important;border-top:none!important;padding:0!important}.mat-form-field-infix,.mat-select-arrow-wrapper{display:flex!important}.mat-icon-button{width:auto!important}.no-border .mat-form-field-flex{border:none!important}.no-border .mat-form-field-flex input{padding:1px}.mat-form-field-label-wrapper{top:-10px}.mat-form-field-should-float .mat-form-field-label-wrapper{font-size:14px}.placeholder-primary .mat-focused .mat-form-field-placeholder,.placeholder-primary .mat-form-field-label-wrapper,.placeholder-primary .mat-form-field-label-wrapper label,.placeholder-primary .mat-form-field-placeholder,.placeholder-primary ::ng-deep .mat-focused .mat-form-field-placeholder,.placeholder-primary ::ng-deep .mat-form-field-placeholder{color:var(--color-primary)!important}.placeholder-primary input ::placeholder{color:var(--color-primary)!important}.placeholder-bold .mat-focused .mat-form-field-placeholder,.placeholder-bold .mat-form-field-label-wrapper,.placeholder-bold .mat-form-field-label-wrapper label,.placeholder-bold .mat-form-field-placeholder,.placeholder-bold ::ng-deep .mat-focused .mat-form-field-placeholder,.placeholder-bold ::ng-deep .mat-form-field-placeholder{font-weight:700!important}.placeholder-bold input ::placeholder{font-weight:700!important}.apipass-input-text{width:100%}.apipass-input-text .mat-form-field-flex{padding:10px!important}.apipass-date-filter .mat-form-field-wrapper,.apipass-input-text .mat-form-field-wrapper,.apipass-search-input-text .mat-form-field-wrapper,.apipass-select .mat-form-field-wrapper,.custom-select-component .mat-form-field-wrapper{padding:0!important}.apipass-date-filter .mat-icon-button,.apipass-input-text .mat-icon-button,.apipass-search-input-text .mat-icon-button,.apipass-select .mat-icon-button,.custom-select-component .mat-icon-button{height:auto!important;width:auto!important}.apipass-date-filter.label-input .mat-form-field-label-wrapper,.apipass-input-text.label-input .mat-form-field-label-wrapper,.apipass-search-input-text.label-input .mat-form-field-label-wrapper,.apipass-select.label-input .mat-form-field-label-wrapper,.custom-select-component.label-input .mat-form-field-label-wrapper{padding-top:0;top:auto!important}.apipass-date-filter.label-input input,.apipass-input-text.label-input input,.apipass-search-input-text.label-input input,.apipass-select.label-input input,.custom-select-component.label-input input{padding-bottom:5px!important;padding-top:10px!important}.apipass-date-filter.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-input-text.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-search-input-text.mat-form-field-should-float .mat-form-field-label-wrapper,.apipass-select.mat-form-field-should-float .mat-form-field-label-wrapper,.custom-select-component.mat-form-field-should-float .mat-form-field-label-wrapper{margin-top:-10px!important;padding-top:0!important}.apipass-search-input-text{width:100%}.apipass-search-input-text.small-text{font-size:12px}.apipass-search-input-text .mat-form-field-flex{border-left:none!important;border-radius:0!important;border-right:none!important;border-top:none!important;padding:2px 5px 2px 2px!important}.apipass-search-input-text .search-icon{margin-top:-5px!important}.custom-select-component{width:100%}.custom-select-component .mat-form-field-flex{padding:1px 10px!important}.apipass-select{width:100%}.apipass-select .mat-form-field-flex{padding:10px 5px 10px 10px!important}.apipass-select.label-input .mat-form-field-infix{padding-bottom:7px!important;padding-top:7px!important}.apipass-date-filter{width:100%}.apipass-date-filter .mat-form-field-flex{padding:7px 10px!important}.apipass-date-filter .mat-form-field-suffix span{color:#777;cursor:pointer}.apipass-date-filter .mat-form-field-wrapper{padding-bottom:0!important}.custom-select-component{cursor:pointer}.custom-select-component input{background:#fff!important;height:37px}.custom-select-component .ul-ac{background:#fff;border:1px solid #ccc;box-sizing:border-box;list-style:none;margin-top:-1px;padding:0;position:absolute;width:calc(100% - 30px);z-index:7!important}.custom-select-component .ul-ac li{cursor:pointer;font-size:12px;overflow:hidden;padding:10px;text-align:left;text-overflow:ellipsis;white-space:nowrap}.custom-select-component .ul-ac li:hover{background:#bbbcbc}.custom-select-component .ul-ac .li-add{border-top:1px solid #d3d3d3}.custom-select-component .ul-ac .li-add .fa{color:#ff8f17;padding-right:5px}.custom-select-component .selected{background-color:#898a8a!important}.custom-select-component .selected .fa{color:#fff!important}.custom-select-component .remove-icon i{color:red;margin-right:10px}.custom-select-component .open-icon i{color:rgba(0,0,0,.54)}.custom-select-component .li-search{border-bottom:1px solid #ccc!important;cursor:default!important}.custom-select-component .li-search:hover{background:#fff!important}.select-open .mat-form-field-flex{border-radius:6px 6px 0 0!important}"]
960
- },] }
961
- ];
962
- CustomSelectComponent.propDecorators = {
963
- disabled: [{ type: core.Input }],
964
- items: [{ type: core.Input }],
965
- allowTyping: [{ type: core.Input }],
966
- allowRemove: [{ type: core.Input }],
967
- placeHolder: [{ type: core.Input }],
968
- findPlaceHolder: [{ type: core.Input }],
969
- searchText: [{ type: core.Input }],
970
- onSelect: [{ type: core.Output }],
971
- onUnSelect: [{ type: core.Output }],
972
- onAddItem: [{ type: core.Output }],
973
- input: [{ type: core.ViewChild, args: ['input', { static: true },] }],
974
- tabindex: [{ type: core.HostBinding, args: ['attr.tabindex',] }],
975
- onBlur: [{ type: core.HostListener, args: ['blur', ['$event.target'],] }]
976
- };
1356
+ var _c0$4 = ["input"];
1357
+ function CustomSelectComponent_span_3_Template(rf, ctx) {
1358
+ if (rf & 1) {
1359
+ var _r4_1 = i0.ɵɵgetCurrentView();
1360
+ i0.ɵɵelementStart(0, "span", 8);
1361
+ i0.ɵɵlistener("click", function CustomSelectComponent_span_3_Template_span_click_0_listener($event) { i0.ɵɵrestoreView(_r4_1); var ctx_r3 = i0.ɵɵnextContext(); return ctx_r3.removeClick($event); });
1362
+ i0.ɵɵelement(1, "i", 9);
1363
+ i0.ɵɵelementEnd();
1364
+ }
1365
+ }
1366
+ function CustomSelectComponent_ul_7_li_4_Template(rf, ctx) {
1367
+ if (rf & 1) {
1368
+ var _r8_1 = i0.ɵɵgetCurrentView();
1369
+ i0.ɵɵelementStart(0, "li", 17);
1370
+ i0.ɵɵlistener("click", function CustomSelectComponent_ul_7_li_4_Template_li_click_0_listener() { i0.ɵɵrestoreView(_r8_1); var i_r6 = ctx.$implicit; var ctx_r7 = i0.ɵɵnextContext(2); return ctx_r7.selectItem(i_r6); })("mousedown", function CustomSelectComponent_ul_7_li_4_Template_li_mousedown_0_listener() { i0.ɵɵrestoreView(_r8_1); var i_r6 = ctx.$implicit; var ctx_r9 = i0.ɵɵnextContext(2); return ctx_r9.selectItem(i_r6); });
1371
+ i0.ɵɵtext(1);
1372
+ i0.ɵɵelementEnd();
1373
+ }
1374
+ if (rf & 2) {
1375
+ var i_r6 = ctx.$implicit;
1376
+ i0.ɵɵadvance(1);
1377
+ i0.ɵɵtextInterpolate1(" ", i_r6.text, " ");
1378
+ }
1379
+ }
1380
+ function CustomSelectComponent_ul_7_Template(rf, ctx) {
1381
+ if (rf & 1) {
1382
+ var _r11_1 = i0.ɵɵgetCurrentView();
1383
+ i0.ɵɵelementStart(0, "ul", 10);
1384
+ i0.ɵɵelementStart(1, "li", 11);
1385
+ i0.ɵɵelementStart(2, "mat-form-field", 12);
1386
+ i0.ɵɵelementStart(3, "input", 13);
1387
+ i0.ɵɵlistener("ngModelChange", function CustomSelectComponent_ul_7_Template_input_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r11_1); var ctx_r10 = i0.ɵɵnextContext(); return ctx_r10.searchText = $event; })("blur", function CustomSelectComponent_ul_7_Template_input_blur_3_listener($event) { i0.ɵɵrestoreView(_r11_1); var ctx_r12 = i0.ɵɵnextContext(); return ctx_r12.onBlur($event); });
1388
+ i0.ɵɵelementEnd();
1389
+ i0.ɵɵelementEnd();
1390
+ i0.ɵɵelementEnd();
1391
+ i0.ɵɵtemplate(4, CustomSelectComponent_ul_7_li_4_Template, 2, 1, "li", 14);
1392
+ i0.ɵɵpipe(5, "selectFilter");
1393
+ i0.ɵɵelementStart(6, "li", 15);
1394
+ i0.ɵɵlistener("mousedown", function CustomSelectComponent_ul_7_Template_li_mousedown_6_listener() { i0.ɵɵrestoreView(_r11_1); var ctx_r13 = i0.ɵɵnextContext(); return ctx_r13.addItem(); })("click", function CustomSelectComponent_ul_7_Template_li_click_6_listener() { i0.ɵɵrestoreView(_r11_1); var ctx_r14 = i0.ɵɵnextContext(); return ctx_r14.addItem(); });
1395
+ i0.ɵɵelement(7, "span", 16);
1396
+ i0.ɵɵelementStart(8, "span");
1397
+ i0.ɵɵtext(9, "Adicionar novo item");
1398
+ i0.ɵɵelementEnd();
1399
+ i0.ɵɵelementEnd();
1400
+ i0.ɵɵelementEnd();
1401
+ }
1402
+ if (rf & 2) {
1403
+ var ctx_r2 = i0.ɵɵnextContext();
1404
+ i0.ɵɵadvance(3);
1405
+ i0.ɵɵproperty("placeholder", ctx_r2.findPlaceHolder)("ngModel", ctx_r2.searchText);
1406
+ i0.ɵɵadvance(1);
1407
+ i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind3(5, 3, ctx_r2.items, ctx_r2.searchText, "text"));
1408
+ }
1409
+ }
1410
+ var _c1$3 = function (a0) { return { "select-open": a0 }; };
1411
+ var _c2$1 = function () { return { standalone: true }; };
1412
+ var CustomSelectComponent = /** @class */ (function () {
1413
+ function CustomSelectComponent() {
1414
+ this.disabled = false;
1415
+ this.items = [];
1416
+ this.allowTyping = false;
1417
+ this.allowRemove = false;
1418
+ this.placeHolder = 'Selecione';
1419
+ this.findPlaceHolder = 'Busque um item';
1420
+ this.searchText = '';
1421
+ this.onSelect = new i0.EventEmitter();
1422
+ this.onUnSelect = new i0.EventEmitter();
1423
+ this.onAddItem = new i0.EventEmitter();
1424
+ this.opened = false;
1425
+ this.edited = false;
1426
+ this.tabindex = '0';
1427
+ this.onTouchedCallback = function () {
1428
+ };
1429
+ this.onChangeCallback = function () {
1430
+ };
1431
+ }
1432
+ CustomSelectComponent.prototype.onBlur = function (target) {
1433
+ if (this.allowTyping) {
1434
+ if (this.value) {
1435
+ if (this.edited) {
1436
+ this.writeValue(this.value);
1437
+ this.selectedItem = new CustomSelectItem(this.value, this.value);
1438
+ this.onSelect.next(this.selectedItem);
1439
+ }
1440
+ }
1441
+ else {
1442
+ this.writeValue(undefined);
1443
+ this.onSelect.next(undefined);
1444
+ }
1445
+ }
1446
+ if (target && target.relatedTarget && target.relatedTarget.classList.contains('search-input-item')) {
1447
+ return;
1448
+ }
1449
+ this.opened = false;
1450
+ };
1451
+ CustomSelectComponent.prototype.selectItem = function (item) {
1452
+ this.opened = false;
1453
+ this.selectedItem = item;
1454
+ this.edited = false;
1455
+ this.selectedModelValue = item.text;
1456
+ this.value = item.text;
1457
+ this.searchText = '';
1458
+ this.onSelect.next(item);
1459
+ };
1460
+ CustomSelectComponent.prototype.addItem = function () {
1461
+ this.opened = false;
1462
+ this.searchText = '';
1463
+ this.onAddItem.next();
1464
+ };
1465
+ CustomSelectComponent.prototype.keyPress = function () {
1466
+ if (this.allowTyping) {
1467
+ this.opened = false;
1468
+ this.edited = true;
1469
+ this.selectedModelValue = this.value;
1470
+ this.searchText = '';
1471
+ }
1472
+ else {
1473
+ this.edited = false;
1474
+ return false;
1475
+ }
1476
+ };
1477
+ CustomSelectComponent.prototype.clicked = function () {
1478
+ this.opened = true;
1479
+ this.searchText = '';
1480
+ };
1481
+ Object.defineProperty(CustomSelectComponent.prototype, "value", {
1482
+ get: function () {
1483
+ return this.innerValue;
1484
+ },
1485
+ set: function (value) {
1486
+ this.innerValue = value;
1487
+ this.onChangeCallback(value);
1488
+ this.onSelect.next(value);
1489
+ },
1490
+ enumerable: false,
1491
+ configurable: true
1492
+ });
1493
+ CustomSelectComponent.prototype.writeValue = function (value) {
1494
+ if (value !== this.innerValue) {
1495
+ if (!this.selectedItem || !this.selectedItem.text || !value) {
1496
+ this.selectedItem = new CustomSelectItem(null, value);
1497
+ }
1498
+ this.innerValue = value;
1499
+ this.selectedModelValue = value;
1500
+ }
1501
+ };
1502
+ CustomSelectComponent.prototype.registerOnChange = function (fn) {
1503
+ this.onChangeCallback = fn;
1504
+ };
1505
+ CustomSelectComponent.prototype.registerOnTouched = function (fn) {
1506
+ this.onTouchedCallback = fn;
1507
+ };
1508
+ CustomSelectComponent.prototype.setDisabledState = function (isDisabled) {
1509
+ this.disabled = isDisabled;
1510
+ };
1511
+ CustomSelectComponent.prototype.arrowClick = function () {
1512
+ var _a;
1513
+ this.opened = true;
1514
+ this.searchText = '';
1515
+ (_a = this.input) === null || _a === void 0 ? void 0 : _a.nativeElement.focus();
1516
+ };
1517
+ CustomSelectComponent.prototype.removeClick = function (event) {
1518
+ event.stopPropagation();
1519
+ this.opened = false;
1520
+ this.searchText = '';
1521
+ this.innerValue = null;
1522
+ this.onUnSelect.next();
1523
+ };
1524
+ CustomSelectComponent.prototype.onDrop = function ($event) {
1525
+ this.searchText = '';
1526
+ if (!this.value) {
1527
+ this.value = '';
1528
+ }
1529
+ this.value += "{{" + $event.data + "}}";
1530
+ };
1531
+ return CustomSelectComponent;
1532
+ }());
1533
+ CustomSelectComponent.ɵfac = function CustomSelectComponent_Factory(t) { return new (t || CustomSelectComponent)(); };
1534
+ CustomSelectComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CustomSelectComponent, selectors: [["custom-select"]], viewQuery: function CustomSelectComponent_Query(rf, ctx) {
1535
+ if (rf & 1) {
1536
+ i0.ɵɵstaticViewQuery(_c0$4, true);
1537
+ }
1538
+ if (rf & 2) {
1539
+ var _t;
1540
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.input = _t.first);
1541
+ }
1542
+ }, hostVars: 1, hostBindings: function CustomSelectComponent_HostBindings(rf, ctx) {
1543
+ if (rf & 1) {
1544
+ i0.ɵɵlistener("blur", function CustomSelectComponent_blur_HostBindingHandler($event) { return ctx.onBlur($event.target); });
1545
+ }
1546
+ if (rf & 2) {
1547
+ i0.ɵɵattribute("tabindex", ctx.tabindex);
1548
+ }
1549
+ }, inputs: { disabled: "disabled", items: "items", allowTyping: "allowTyping", allowRemove: "allowRemove", placeHolder: "placeHolder", findPlaceHolder: "findPlaceHolder", searchText: "searchText" }, outputs: { onSelect: "onSelect", onUnSelect: "onUnSelect", onAddItem: "onAddItem" }, features: [i0.ɵɵProvidersFeature([{
1550
+ provide: i4.NG_VALUE_ACCESSOR,
1551
+ useExisting: i0.forwardRef(function () { return CustomSelectComponent; }),
1552
+ multi: true
1553
+ }])], decls: 8, vars: 10, consts: [["appearance", "fill", "autocomplete", "off", 1, "custom-select-component", 3, "ngClass"], ["matInput", "", "dndDropzone", "", "autocomplete", "off", 3, "placeholder", "ngModel", "ngModelOptions", "disabled", "focus", "blur", "ngModelChange", "keyup", "click", "dndDrop"], ["input", ""], ["title", "Remover", "class", "remove-icon", 3, "click", 4, "ngIf"], [1, "open-icon", 3, "click"], [1, "fa", "fa-caret-down"], [1, "custom-select-component"], ["class", "ul-ac", 4, "ngIf"], ["title", "Remover", 1, "remove-icon", 3, "click"], [1, "fa", "fa-times"], [1, "ul-ac"], [1, "li-search", "search-input-item"], ["appearance", "fill", 1, "apipass-input-text", "search-input-item"], ["matInput", "", "aria-autocomplete", "none", 1, "search-input-item", 3, "placeholder", "ngModel", "ngModelChange", "blur"], ["class", "clickable", 3, "click", "mousedown", 4, "ngFor", "ngForOf"], [1, "li-add", 3, "mousedown", "click"], [1, "fa", "fa-plus-circle"], [1, "clickable", 3, "click", "mousedown"]], template: function CustomSelectComponent_Template(rf, ctx) {
1554
+ if (rf & 1) {
1555
+ i0.ɵɵelementStart(0, "mat-form-field", 0);
1556
+ i0.ɵɵelementStart(1, "input", 1, 2);
1557
+ i0.ɵɵlistener("focus", function CustomSelectComponent_Template_input_focus_1_listener() { return ctx.opened = true; })("blur", function CustomSelectComponent_Template_input_blur_1_listener($event) { return ctx.onBlur($event); })("ngModelChange", function CustomSelectComponent_Template_input_ngModelChange_1_listener($event) { return ctx.value = $event; })("keyup", function CustomSelectComponent_Template_input_keyup_1_listener() { return ctx.keyPress(); })("click", function CustomSelectComponent_Template_input_click_1_listener() { return ctx.clicked(); })("dndDrop", function CustomSelectComponent_Template_input_dndDrop_1_listener($event) { return ctx.onDrop($event); });
1558
+ i0.ɵɵelementEnd();
1559
+ i0.ɵɵtemplate(3, CustomSelectComponent_span_3_Template, 2, 0, "span", 3);
1560
+ i0.ɵɵelementStart(4, "span", 4);
1561
+ i0.ɵɵlistener("click", function CustomSelectComponent_Template_span_click_4_listener() { return ctx.arrowClick(); });
1562
+ i0.ɵɵelement(5, "i", 5);
1563
+ i0.ɵɵelementEnd();
1564
+ i0.ɵɵelementEnd();
1565
+ i0.ɵɵelementStart(6, "div", 6);
1566
+ i0.ɵɵtemplate(7, CustomSelectComponent_ul_7_Template, 10, 7, "ul", 7);
1567
+ i0.ɵɵelementEnd();
1568
+ }
1569
+ if (rf & 2) {
1570
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$3, ctx.opened));
1571
+ i0.ɵɵadvance(1);
1572
+ i0.ɵɵproperty("placeholder", ctx.placeHolder)("ngModel", ctx.value)("ngModelOptions", i0.ɵɵpureFunction0(9, _c2$1))("disabled", ctx.disabled);
1573
+ i0.ɵɵadvance(2);
1574
+ i0.ɵɵproperty("ngIf", ctx.allowRemove);
1575
+ i0.ɵɵadvance(4);
1576
+ i0.ɵɵproperty("ngIf", ctx.opened && (ctx.value && ctx.value.length !== 0 || ctx.items));
1577
+ }
1578
+ }, directives: [i1.MatFormField, i2.NgClass, i3.MatInput, i4.DefaultValueAccessor, i5$3.DndDropzoneDirective, i4.NgControlStatus, i4.NgModel, i2.NgIf, i2.NgForOf], pipes: [i6.SelectFilterPipe], styles: ["[_ngcontent-%COMP%]:root{--color-body-light:#fff;--color-fonts-tertiary:#777;--color-inputs-background:#fff;--color-inputs-border:#ddd;--color-primary:#222d57;--color-primary-active:#29376a;--color-primary-hover:#18203d;--color-red:red;--color-secondary:#d3d921;--color-secondary-active:#dce13f;--color-secondary-hover:#b3b81c;--color-tertiary:#efefef;--color-tertiary-active:#f1f1f1;--color-tertiary-hover:#cbcbcb;--color_components_light:#fff;--color_disabled:#e0e0e0;--color_graph_error:#eb5757;--color_graph_error_hover:#c91717;--color_graph_primary:#1643ef;--color_graph_primary_hover:#0a2692;--color_icon_remove:var(--color-red);--color_icon_success:#070;--limit-plan-color:#ff6c00}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0ysmIEDQ.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0w8mIEDQ.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0ycmIEDQ.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:400;src:local(\"PT Sans Italic\"),local(\"PTSans-Italic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizYRExUiTo99u79D0e0x8mI.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydIhUdwzM.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydKxUdwzM.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydIRUdwzM.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:italic;font-weight:700;src:local(\"PT Sans Bold Italic\"),local(\"PTSans-BoldItalic\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizdRExUiTo99u79D0e8fOydLxUd.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0-ExdGM.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0aExdGM.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0yExdGM.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:400;src:local(\"PT Sans\"),local(\"PTSans-Regular\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizaRExUiTo99u79D0KExQ.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OOtLQ0Z.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OqtLQ0Z.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0OCtLQ0Z.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-display:swap;font-family:PT Sans;font-style:normal;font-weight:700;src:local(\"PT Sans Bold\"),local(\"PTSans-Bold\"),url(https://fonts.gstatic.com/s/ptsans/v11/jizfRExUiTo99u79B_mh0O6tLQ.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}.text-primary[_ngcontent-%COMP%]{color:var(--color-primary)!important}.text-secondary[_ngcontent-%COMP%]{color:var(--color-secondary)!important}.text-tertiary[_ngcontent-%COMP%]{color:var(--color-fonts-tertiary)!important}.text-weight-bold[_ngcontent-%COMP%]{font-weight:700!important}.text-weight-normal[_ngcontent-%COMP%]{font-weight:400!important}.mat-form-field-underline[_ngcontent-%COMP%], .mat-input-underline[_ngcontent-%COMP%]{display:none}.mat-form-field-appearance-fill[_ngcontent-%COMP%] .mat-form-field-flex[_ngcontent-%COMP%]{align-items:center!important;background:var(--color-inputs-background)!important;border:1px solid var(--color-inputs-border)!important;border-radius:6px!important;display:flex!important}.mat-form-field-infix[_ngcontent-%COMP%]{align-items:center!important;border-top:none!important;padding:0!important}.mat-form-field-infix[_ngcontent-%COMP%], .mat-select-arrow-wrapper[_ngcontent-%COMP%]{display:flex!important}.mat-icon-button[_ngcontent-%COMP%]{width:auto!important}.no-border[_ngcontent-%COMP%] .mat-form-field-flex[_ngcontent-%COMP%]{border:none!important}.no-border[_ngcontent-%COMP%] .mat-form-field-flex[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding:1px}.mat-form-field-label-wrapper[_ngcontent-%COMP%]{top:-10px}.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label-wrapper[_ngcontent-%COMP%]{font-size:14px}.placeholder-primary[_ngcontent-%COMP%] .mat-focused[_ngcontent-%COMP%] .mat-form-field-placeholder[_ngcontent-%COMP%], .placeholder-primary[_ngcontent-%COMP%] .mat-form-field-label-wrapper[_ngcontent-%COMP%], .placeholder-primary[_ngcontent-%COMP%] .mat-form-field-label-wrapper[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .placeholder-primary[_ngcontent-%COMP%] .mat-form-field-placeholder[_ngcontent-%COMP%], .placeholder-primary[_ngcontent-%COMP%] .mat-focused .mat-form-field-placeholder, .placeholder-primary[_ngcontent-%COMP%] .mat-form-field-placeholder{color:var(--color-primary)!important}.placeholder-primary[_ngcontent-%COMP%] input[_ngcontent-%COMP%] [_ngcontent-%COMP%]::placeholder{color:var(--color-primary)!important}.placeholder-bold[_ngcontent-%COMP%] .mat-focused[_ngcontent-%COMP%] .mat-form-field-placeholder[_ngcontent-%COMP%], .placeholder-bold[_ngcontent-%COMP%] .mat-form-field-label-wrapper[_ngcontent-%COMP%], .placeholder-bold[_ngcontent-%COMP%] .mat-form-field-label-wrapper[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .placeholder-bold[_ngcontent-%COMP%] .mat-form-field-placeholder[_ngcontent-%COMP%], .placeholder-bold[_ngcontent-%COMP%] .mat-focused .mat-form-field-placeholder, .placeholder-bold[_ngcontent-%COMP%] .mat-form-field-placeholder{font-weight:700!important}.placeholder-bold[_ngcontent-%COMP%] input[_ngcontent-%COMP%] [_ngcontent-%COMP%]::placeholder{font-weight:700!important}.apipass-input-text[_ngcontent-%COMP%]{width:100%}.apipass-input-text[_ngcontent-%COMP%] .mat-form-field-flex[_ngcontent-%COMP%]{padding:10px!important}.apipass-date-filter[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%], .apipass-input-text[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%], .apipass-search-input-text[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%], .apipass-select[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%], .custom-select-component[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding:0!important}.apipass-date-filter[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%], .apipass-input-text[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%], .apipass-search-input-text[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%], .apipass-select[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%], .custom-select-component[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{height:auto!important;width:auto!important}.apipass-date-filter.label-input[_ngcontent-%COMP%] .mat-form-field-label-wrapper[_ngcontent-%COMP%], .apipass-input-text.label-input[_ngcontent-%COMP%] .mat-form-field-label-wrapper[_ngcontent-%COMP%], .apipass-search-input-text.label-input[_ngcontent-%COMP%] .mat-form-field-label-wrapper[_ngcontent-%COMP%], .apipass-select.label-input[_ngcontent-%COMP%] .mat-form-field-label-wrapper[_ngcontent-%COMP%], .custom-select-component.label-input[_ngcontent-%COMP%] .mat-form-field-label-wrapper[_ngcontent-%COMP%]{padding-top:0;top:auto!important}.apipass-date-filter.label-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .apipass-input-text.label-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .apipass-search-input-text.label-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .apipass-select.label-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .custom-select-component.label-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-bottom:5px!important;padding-top:10px!important}.apipass-date-filter.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label-wrapper[_ngcontent-%COMP%], .apipass-input-text.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label-wrapper[_ngcontent-%COMP%], .apipass-search-input-text.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label-wrapper[_ngcontent-%COMP%], .apipass-select.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label-wrapper[_ngcontent-%COMP%], .custom-select-component.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label-wrapper[_ngcontent-%COMP%]{margin-top:-10px!important;padding-top:0!important}.apipass-search-input-text[_ngcontent-%COMP%]{width:100%}.apipass-search-input-text.small-text[_ngcontent-%COMP%]{font-size:12px}.apipass-search-input-text[_ngcontent-%COMP%] .mat-form-field-flex[_ngcontent-%COMP%]{border-left:none!important;border-radius:0!important;border-right:none!important;border-top:none!important;padding:2px 5px 2px 2px!important}.apipass-search-input-text[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{margin-top:-5px!important}.custom-select-component[_ngcontent-%COMP%]{width:100%}.custom-select-component[_ngcontent-%COMP%] .mat-form-field-flex[_ngcontent-%COMP%]{padding:1px 10px!important}.apipass-select[_ngcontent-%COMP%]{width:100%}.apipass-select[_ngcontent-%COMP%] .mat-form-field-flex[_ngcontent-%COMP%]{padding:10px 5px 10px 10px!important}.apipass-select.label-input[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding-bottom:7px!important;padding-top:7px!important}.apipass-date-filter[_ngcontent-%COMP%]{width:100%}.apipass-date-filter[_ngcontent-%COMP%] .mat-form-field-flex[_ngcontent-%COMP%]{padding:7px 10px!important}.apipass-date-filter[_ngcontent-%COMP%] .mat-form-field-suffix[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#777;cursor:pointer}.apipass-date-filter[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0!important}.custom-select-component[_ngcontent-%COMP%]{cursor:pointer}.custom-select-component[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{background:#fff!important;height:37px}.custom-select-component[_ngcontent-%COMP%] .ul-ac[_ngcontent-%COMP%]{background:#fff;border:1px solid #ccc;box-sizing:border-box;list-style:none;margin-top:-1px;padding:0;position:absolute;width:calc(100% - 30px);z-index:7!important}.custom-select-component[_ngcontent-%COMP%] .ul-ac[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{cursor:pointer;font-size:12px;overflow:hidden;padding:10px;text-align:left;text-overflow:ellipsis;white-space:nowrap}.custom-select-component[_ngcontent-%COMP%] .ul-ac[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{background:#bbbcbc}.custom-select-component[_ngcontent-%COMP%] .ul-ac[_ngcontent-%COMP%] .li-add[_ngcontent-%COMP%]{border-top:1px solid #d3d3d3}.custom-select-component[_ngcontent-%COMP%] .ul-ac[_ngcontent-%COMP%] .li-add[_ngcontent-%COMP%] .fa[_ngcontent-%COMP%]{color:#ff8f17;padding-right:5px}.custom-select-component[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%]{background-color:#898a8a!important}.custom-select-component[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%] .fa[_ngcontent-%COMP%]{color:#fff!important}.custom-select-component[_ngcontent-%COMP%] .remove-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:red;margin-right:10px}.custom-select-component[_ngcontent-%COMP%] .open-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:rgba(0,0,0,.54)}.custom-select-component[_ngcontent-%COMP%] .li-search[_ngcontent-%COMP%]{border-bottom:1px solid #ccc!important;cursor:default!important}.custom-select-component[_ngcontent-%COMP%] .li-search[_ngcontent-%COMP%]:hover{background:#fff!important}.select-open[_ngcontent-%COMP%] .mat-form-field-flex[_ngcontent-%COMP%]{border-radius:6px 6px 0 0!important}"] });
1579
+ /*@__PURE__*/ (function () {
1580
+ i0.ɵsetClassMetadata(CustomSelectComponent, [{
1581
+ type: i0.Component,
1582
+ args: [{
1583
+ selector: 'custom-select',
1584
+ templateUrl: 'custom-select.component.html',
1585
+ styleUrls: ['custom-select.component.scss'],
1586
+ providers: [{
1587
+ provide: i4.NG_VALUE_ACCESSOR,
1588
+ useExisting: i0.forwardRef(function () { return CustomSelectComponent; }),
1589
+ multi: true
1590
+ }]
1591
+ }]
1592
+ }], null, { disabled: [{
1593
+ type: i0.Input
1594
+ }], items: [{
1595
+ type: i0.Input
1596
+ }], allowTyping: [{
1597
+ type: i0.Input
1598
+ }], allowRemove: [{
1599
+ type: i0.Input
1600
+ }], placeHolder: [{
1601
+ type: i0.Input
1602
+ }], findPlaceHolder: [{
1603
+ type: i0.Input
1604
+ }], searchText: [{
1605
+ type: i0.Input
1606
+ }], onSelect: [{
1607
+ type: i0.Output
1608
+ }], onUnSelect: [{
1609
+ type: i0.Output
1610
+ }], onAddItem: [{
1611
+ type: i0.Output
1612
+ }], input: [{
1613
+ type: i0.ViewChild,
1614
+ args: ['input', { static: true }]
1615
+ }], tabindex: [{
1616
+ type: i0.HostBinding,
1617
+ args: ['attr.tabindex']
1618
+ }], onBlur: [{
1619
+ type: i0.HostListener,
1620
+ args: ['blur', ['$event.target']]
1621
+ }] });
1622
+ })();
1623
+
1624
+ function InputFileComponent_div_3_Template(rf, ctx) {
1625
+ if (rf & 1) {
1626
+ i0.ɵɵelementStart(0, "div", 6);
1627
+ i0.ɵɵtext(1);
1628
+ i0.ɵɵelementEnd();
1629
+ }
1630
+ if (rf & 2) {
1631
+ var ctx_r1 = i0.ɵɵnextContext();
1632
+ i0.ɵɵadvance(1);
1633
+ i0.ɵɵtextInterpolate1(" ", ctx_r1.fileName || ctx_r1.emptyFileLabel, " ");
1634
+ }
1635
+ }
1636
+ var _c0$5 = function (a0) { return { "font-size": a0 }; };
1637
+ function InputFileComponent_icon_5_Template(rf, ctx) {
1638
+ if (rf & 1) {
1639
+ var _r5_1 = i0.ɵɵgetCurrentView();
1640
+ i0.ɵɵelementStart(0, "icon", 7);
1641
+ i0.ɵɵlistener("click", function InputFileComponent_icon_5_Template_icon_click_0_listener() { i0.ɵɵrestoreView(_r5_1); i0.ɵɵnextContext(); var _r0 = i0.ɵɵreference(1); _r0.click(); return _r0.value = null; });
1642
+ i0.ɵɵelementEnd();
1643
+ }
1644
+ if (rf & 2) {
1645
+ var ctx_r2 = i0.ɵɵnextContext();
1646
+ i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(4, _c0$5, ctx_r2.iconFontSize))("title", ctx_r2.uploadTitle)("type", "primary")("name", "fas fa-upload");
1647
+ }
1648
+ }
1649
+ function InputFileComponent_icon_6_Template(rf, ctx) {
1650
+ if (rf & 1) {
1651
+ var _r7_1 = i0.ɵɵgetCurrentView();
1652
+ i0.ɵɵelementStart(0, "icon", 7);
1653
+ i0.ɵɵlistener("click", function InputFileComponent_icon_6_Template_icon_click_0_listener() { i0.ɵɵrestoreView(_r7_1); i0.ɵɵnextContext(); var _r0 = i0.ɵɵreference(1); _r0.click(); return _r0.value = null; });
1654
+ i0.ɵɵelementEnd();
1655
+ }
1656
+ if (rf & 2) {
1657
+ var ctx_r3 = i0.ɵɵnextContext();
1658
+ i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(4, _c0$5, ctx_r3.iconFontSize))("title", ctx_r3.modifyTitle)("type", "primary")("name", "fas fa-pencil-alt");
1659
+ }
1660
+ }
1661
+ var InputFileComponent = /** @class */ (function () {
1662
+ function InputFileComponent() {
1663
+ this.fileFormData = new FormData();
1664
+ this.canRemove = false;
1665
+ this.canUpload = false;
1666
+ this.uploadTitle = '';
1667
+ this.canModify = false;
1668
+ this.modifyTitle = '';
1669
+ this.iconFontSize = '16px';
1670
+ this.emptyFileLabel = '';
1671
+ this.fileTypes = [];
1672
+ this.onFileChanged = new i0.EventEmitter();
1673
+ this.onInvalidFileType = new i0.EventEmitter();
1674
+ this.fileUrl = false;
1675
+ }
1676
+ InputFileComponent.prototype.hasFile = function () {
1677
+ return this.fileUrl;
1678
+ };
1679
+ InputFileComponent.prototype.canAction = function () {
1680
+ return this.canRemove || this.canModify || this.canUpload;
1681
+ };
1682
+ InputFileComponent.prototype.fileChange = function (event) {
1683
+ var _this = this;
1684
+ var fileList = event.target.files;
1685
+ if (fileList.length > 0) {
1686
+ var file = fileList[0];
1687
+ this.fileName = file.name;
1688
+ if (!this.isFileTypeSupported(file.type)) {
1689
+ this.onInvalidFileType.emit({ fileName: this.fileName, typesSupported: this.fileTypes, typeInvalid: file.type });
1690
+ return;
1691
+ }
1692
+ this.fileFormData = new FormData();
1693
+ this.fileFormData.append('file', file, file.name);
1694
+ var reader = new FileReader();
1695
+ reader.readAsDataURL(fileList[0]);
1696
+ reader.onload = function (loadEvent) {
1697
+ _this.fileUrl = true;
1698
+ _this.emitChangeEvent();
1699
+ };
1700
+ }
1701
+ };
1702
+ InputFileComponent.prototype.isFileTypeSupported = function (fileType) {
1703
+ return !this.fileTypes || this.fileTypes.includes(fileType);
1704
+ };
1705
+ InputFileComponent.prototype.emitChangeEvent = function () {
1706
+ this.onFileChanged.emit({ fileUrl: this.fileUrl, fileFormData: this.fileFormData });
1707
+ };
1708
+ return InputFileComponent;
1709
+ }());
1710
+ InputFileComponent.ɵfac = function InputFileComponent_Factory(t) { return new (t || InputFileComponent)(); };
1711
+ InputFileComponent.ɵcmp = i0.ɵɵdefineComponent({ type: InputFileComponent, selectors: [["input-file"]], inputs: { fileFormData: "fileFormData", fileName: "fileName", canRemove: "canRemove", canUpload: "canUpload", uploadTitle: "uploadTitle", canModify: "canModify", modifyTitle: "modifyTitle", iconFontSize: "iconFontSize", emptyFileLabel: "emptyFileLabel", fileTypes: "fileTypes" }, outputs: { onFileChanged: "onFileChanged", onInvalidFileType: "onInvalidFileType" }, decls: 7, vars: 3, consts: [["id", "action-icon", "type", "file", 2, "display", "none", 3, "change"], ["actionFile", ""], [1, "input-file"], ["class", "file-name", 4, "ngIf"], [1, "file-actions"], [3, "ngStyle", "title", "type", "name", "click", 4, "ngIf"], [1, "file-name"], [3, "ngStyle", "title", "type", "name", "click"]], template: function InputFileComponent_Template(rf, ctx) {
1712
+ if (rf & 1) {
1713
+ i0.ɵɵelementStart(0, "input", 0, 1);
1714
+ i0.ɵɵlistener("change", function InputFileComponent_Template_input_change_0_listener($event) { return ctx.fileChange($event); });
1715
+ i0.ɵɵelementEnd();
1716
+ i0.ɵɵelementStart(2, "div", 2);
1717
+ i0.ɵɵtemplate(3, InputFileComponent_div_3_Template, 2, 1, "div", 3);
1718
+ i0.ɵɵelementStart(4, "div", 4);
1719
+ i0.ɵɵtemplate(5, InputFileComponent_icon_5_Template, 1, 6, "icon", 5);
1720
+ i0.ɵɵtemplate(6, InputFileComponent_icon_6_Template, 1, 6, "icon", 5);
1721
+ i0.ɵɵelementEnd();
1722
+ i0.ɵɵelementEnd();
1723
+ }
1724
+ if (rf & 2) {
1725
+ i0.ɵɵadvance(3);
1726
+ i0.ɵɵproperty("ngIf", ctx.fileName || ctx.emptyFileLabel);
1727
+ i0.ɵɵadvance(2);
1728
+ i0.ɵɵproperty("ngIf", !ctx.hasFile() && ctx.canUpload);
1729
+ i0.ɵɵadvance(1);
1730
+ i0.ɵɵproperty("ngIf", ctx.hasFile() && ctx.canModify);
1731
+ }
1732
+ }, directives: [i2.NgIf, i3$1.IconComponent, i2.NgStyle], styles: [".input-file{align-items:center;display:flex;justify-content:flex-start;width:100%}.input-file .file-name{color:var(--color-primary);white-space:nowrap;width:100%}.input-file .file-actions{align-items:center;display:flex;justify-content:flex-end;padding-left:5px}.input-file .file-actions icon{cursor:pointer;margin-left:5px}"], encapsulation: 2 });
1733
+ /*@__PURE__*/ (function () {
1734
+ i0.ɵsetClassMetadata(InputFileComponent, [{
1735
+ type: i0.Component,
1736
+ args: [{
1737
+ selector: 'input-file',
1738
+ templateUrl: 'input-file.component.html',
1739
+ styleUrls: ['input-file.component.scss'],
1740
+ encapsulation: i0.ViewEncapsulation.None
1741
+ }]
1742
+ }], null, { fileFormData: [{
1743
+ type: i0.Input
1744
+ }], fileName: [{
1745
+ type: i0.Input
1746
+ }], canRemove: [{
1747
+ type: i0.Input
1748
+ }], canUpload: [{
1749
+ type: i0.Input
1750
+ }], uploadTitle: [{
1751
+ type: i0.Input
1752
+ }], canModify: [{
1753
+ type: i0.Input
1754
+ }], modifyTitle: [{
1755
+ type: i0.Input
1756
+ }], iconFontSize: [{
1757
+ type: i0.Input
1758
+ }], emptyFileLabel: [{
1759
+ type: i0.Input
1760
+ }], fileTypes: [{
1761
+ type: i0.Input
1762
+ }], onFileChanged: [{
1763
+ type: i0.Output
1764
+ }], onInvalidFileType: [{
1765
+ type: i0.Output
1766
+ }] });
1767
+ })();
977
1768
 
978
- var InputsModule = /** @class */ (function () {
979
- function InputsModule() {
980
- }
981
- return InputsModule;
982
- }());
983
- InputsModule.decorators = [
984
- { type: core.NgModule, args: [{
985
- imports: [
986
- router.RouterModule.forChild([]),
987
- common.CommonModule,
988
- forms.FormsModule,
989
- formField.MatFormFieldModule,
990
- input.MatInputModule,
991
- passwordStrength.MatPasswordStrengthModule,
992
- select.MatSelectModule,
993
- matSelectFilter.MatSelectFilterModule,
994
- ngSelect.NgSelectModule,
995
- pipes.PipeModule,
996
- icon.MatIconModule,
997
- core$1.TranslateModule,
998
- icons.IconsModule,
999
- tooltip.MatTooltipModule,
1000
- ngxDragDrop.DndModule,
1001
- ],
1002
- declarations: [
1003
- MatSelectInfiniteScrollDirective,
1004
- SelectBoxComponent,
1005
- SelectEnumComponent,
1006
- InputTextComponent,
1007
- InputPasswordComponent,
1008
- InputAvatarComponent,
1009
- CustomSelectComponent,
1010
- FieldComponent
1011
- ],
1012
- exports: [
1013
- SelectBoxComponent,
1014
- SelectEnumComponent,
1015
- InputTextComponent,
1016
- InputPasswordComponent,
1017
- InputAvatarComponent,
1018
- CustomSelectComponent,
1019
- FieldComponent
1020
- ],
1021
- providers: [],
1022
- },] }
1023
- ];
1769
+ var InputsModule = /** @class */ (function () {
1770
+ function InputsModule() {
1771
+ }
1772
+ return InputsModule;
1773
+ }());
1774
+ InputsModule.ɵmod = i0.ɵɵdefineNgModule({ type: InputsModule });
1775
+ InputsModule.ɵinj = i0.ɵɵdefineInjector({ factory: function InputsModule_Factory(t) { return new (t || InputsModule)(); }, providers: [], imports: [[
1776
+ i1$3.RouterModule.forChild([]),
1777
+ i2.CommonModule,
1778
+ i4.FormsModule,
1779
+ i1.MatFormFieldModule,
1780
+ i3.MatInputModule,
1781
+ i5$1.MatPasswordStrengthModule,
1782
+ i1$1.MatSelectModule,
1783
+ matSelectFilter.MatSelectFilterModule,
1784
+ i1$2.NgSelectModule,
1785
+ i6.PipeModule,
1786
+ i5$2.MatIconModule,
1787
+ i7.TranslateModule,
1788
+ i3$1.IconsModule,
1789
+ i2$1.MatTooltipModule,
1790
+ i5$3.DndModule,
1791
+ ]] });
1792
+ (function () {
1793
+ (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(InputsModule, { declarations: [MatSelectInfiniteScrollDirective,
1794
+ SelectBoxComponent,
1795
+ SelectEnumComponent,
1796
+ InputTextComponent,
1797
+ InputPasswordComponent,
1798
+ InputAvatarComponent,
1799
+ InputFileComponent,
1800
+ CustomSelectComponent,
1801
+ FieldComponent], imports: [i1$3.RouterModule, i2.CommonModule,
1802
+ i4.FormsModule,
1803
+ i1.MatFormFieldModule,
1804
+ i3.MatInputModule,
1805
+ i5$1.MatPasswordStrengthModule,
1806
+ i1$1.MatSelectModule,
1807
+ matSelectFilter.MatSelectFilterModule,
1808
+ i1$2.NgSelectModule,
1809
+ i6.PipeModule,
1810
+ i5$2.MatIconModule,
1811
+ i7.TranslateModule,
1812
+ i3$1.IconsModule,
1813
+ i2$1.MatTooltipModule,
1814
+ i5$3.DndModule], exports: [SelectBoxComponent,
1815
+ SelectEnumComponent,
1816
+ InputTextComponent,
1817
+ InputPasswordComponent,
1818
+ InputAvatarComponent,
1819
+ InputFileComponent,
1820
+ CustomSelectComponent,
1821
+ FieldComponent] });
1822
+ })();
1823
+ /*@__PURE__*/ (function () {
1824
+ i0.ɵsetClassMetadata(InputsModule, [{
1825
+ type: i0.NgModule,
1826
+ args: [{
1827
+ imports: [
1828
+ i1$3.RouterModule.forChild([]),
1829
+ i2.CommonModule,
1830
+ i4.FormsModule,
1831
+ i1.MatFormFieldModule,
1832
+ i3.MatInputModule,
1833
+ i5$1.MatPasswordStrengthModule,
1834
+ i1$1.MatSelectModule,
1835
+ matSelectFilter.MatSelectFilterModule,
1836
+ i1$2.NgSelectModule,
1837
+ i6.PipeModule,
1838
+ i5$2.MatIconModule,
1839
+ i7.TranslateModule,
1840
+ i3$1.IconsModule,
1841
+ i2$1.MatTooltipModule,
1842
+ i5$3.DndModule,
1843
+ ],
1844
+ declarations: [
1845
+ MatSelectInfiniteScrollDirective,
1846
+ SelectBoxComponent,
1847
+ SelectEnumComponent,
1848
+ InputTextComponent,
1849
+ InputPasswordComponent,
1850
+ InputAvatarComponent,
1851
+ InputFileComponent,
1852
+ CustomSelectComponent,
1853
+ FieldComponent
1854
+ ],
1855
+ exports: [
1856
+ SelectBoxComponent,
1857
+ SelectEnumComponent,
1858
+ InputTextComponent,
1859
+ InputPasswordComponent,
1860
+ InputAvatarComponent,
1861
+ InputFileComponent,
1862
+ CustomSelectComponent,
1863
+ FieldComponent
1864
+ ],
1865
+ providers: [],
1866
+ }]
1867
+ }], null, null);
1868
+ })();
1024
1869
 
1025
- /**
1026
- * Generated bundle index. Do not edit.
1870
+ /**
1871
+ * Generated bundle index. Do not edit.
1027
1872
  */
1028
1873
 
1029
1874
  exports.CustomSelectComponent = CustomSelectComponent;
1030
1875
  exports.CustomSelectItem = CustomSelectItem;
1031
1876
  exports.FieldComponent = FieldComponent;
1032
1877
  exports.InputAvatarComponent = InputAvatarComponent;
1878
+ exports.InputFileComponent = InputFileComponent;
1033
1879
  exports.InputPasswordComponent = InputPasswordComponent;
1034
1880
  exports.InputTextComponent = InputTextComponent;
1035
1881
  exports.InputsModule = InputsModule;
1036
1882
  exports.SelectBoxComponent = SelectBoxComponent;
1037
1883
  exports.SelectEnumComponent = SelectEnumComponent;
1038
- exports.ɵa = MatSelectInfiniteScrollDirective;
1039
- exports.ɵb = ValueAccessorBase;
1040
1884
 
1041
1885
  Object.defineProperty(exports, '__esModule', { value: true });
1042
1886