@apipass/inputs 0.2.16 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/ace-editor/component.d.ts +52 -52
  2. package/ace-editor/directive.d.ts +39 -39
  3. package/assets/css/colors.scss +34 -34
  4. package/assets/css/fonts.scss +24 -24
  5. package/assets/css/inputs.scss +245 -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/custom-select/custom-select-item.d.ts +5 -5
  10. package/custom-select/custom-select.component.d.ts +51 -51
  11. package/debounce-model-directive/debouceInput.directive.d.ts +14 -14
  12. package/{esm2015/ace-editor/component.js → esm2020/ace-editor/component.mjs} +199 -204
  13. package/{esm2015/ace-editor/directive.js → esm2020/ace-editor/directive.mjs} +150 -150
  14. package/{esm2015/apipass-inputs.js → esm2020/apipass-inputs.mjs} +4 -4
  15. package/{esm2015/custom-select/custom-select-item.js → esm2020/custom-select/custom-select-item.mjs} +7 -7
  16. package/esm2020/custom-select/custom-select.component.mjs +204 -0
  17. package/esm2020/debounce-model-directive/debouceInput.directive.mjs +31 -0
  18. package/esm2020/field/field.component.mjs +51 -0
  19. package/esm2020/input-avatar/input-avatar.component.mjs +92 -0
  20. package/esm2020/input-boolean/input-boolean.component.mjs +56 -0
  21. package/esm2020/input-file/input-file.component.mjs +82 -0
  22. package/esm2020/input-number/input-number.component.mjs +62 -0
  23. package/esm2020/input-password/input-password.component.mjs +96 -0
  24. package/esm2020/input-text/input-text.component.mjs +62 -0
  25. package/esm2020/inputs.module.mjs +149 -0
  26. package/{esm2015/public-api.js → esm2020/public-api.mjs} +17 -17
  27. package/{esm2015/select-box/mat-select-infinite-scroll.directive.js → esm2020/select-box/mat-select-infinite-scroll.directive.mjs} +86 -86
  28. package/esm2020/select-box/select-box.component.mjs +220 -0
  29. package/esm2020/select-enum/select-enum.component.mjs +48 -0
  30. package/esm2020/select-interpolation/select-interpolation.component.mjs +169 -0
  31. package/{esm2015/value-acessor-base.js → esm2020/value-acessor-base.mjs} +31 -31
  32. package/fesm2015/apipass-inputs.mjs +1704 -0
  33. package/fesm2015/apipass-inputs.mjs.map +1 -0
  34. package/fesm2020/apipass-inputs.mjs +1697 -0
  35. package/fesm2020/apipass-inputs.mjs.map +1 -0
  36. package/field/field.component.d.ts +15 -15
  37. package/{apipass-inputs.d.ts → index.d.ts} +5 -5
  38. package/input-avatar/input-avatar.component.d.ts +29 -29
  39. package/input-boolean/input-boolean.component.d.ts +15 -15
  40. package/input-file/input-file.component.d.ts +31 -31
  41. package/input-number/input-number.component.d.ts +17 -17
  42. package/input-password/input-password.component.d.ts +29 -29
  43. package/input-text/input-text.component.d.ts +17 -17
  44. package/inputs.module.d.ts +36 -36
  45. package/package.json +38 -29
  46. package/public-api.d.ts +16 -16
  47. package/select-box/mat-select-infinite-scroll.directive.d.ts +26 -26
  48. package/select-box/select-box.component.d.ts +57 -57
  49. package/select-enum/select-enum.component.d.ts +12 -12
  50. package/select-interpolation/select-interpolation.component.d.ts +44 -44
  51. package/value-acessor-base.d.ts +13 -13
  52. package/assets/css/buttons.scss +0 -118
  53. package/bundles/apipass-inputs.umd.js +0 -3060
  54. package/bundles/apipass-inputs.umd.js.map +0 -1
  55. package/bundles/apipass-inputs.umd.min.js +0 -16
  56. package/bundles/apipass-inputs.umd.min.js.map +0 -1
  57. package/esm2015/custom-select/custom-select.component.js +0 -310
  58. package/esm2015/debounce-model-directive/debouceInput.directive.js +0 -31
  59. package/esm2015/field/field.component.js +0 -92
  60. package/esm2015/input-avatar/input-avatar.component.js +0 -167
  61. package/esm2015/input-boolean/input-boolean.component.js +0 -77
  62. package/esm2015/input-file/input-file.component.js +0 -133
  63. package/esm2015/input-number/input-number.component.js +0 -118
  64. package/esm2015/input-password/input-password.component.js +0 -159
  65. package/esm2015/input-text/input-text.component.js +0 -118
  66. package/esm2015/inputs.module.js +0 -155
  67. package/esm2015/select-box/select-box.component.js +0 -367
  68. package/esm2015/select-enum/select-enum.component.js +0 -95
  69. package/esm2015/select-interpolation/select-interpolation.component.js +0 -248
  70. package/fesm2015/apipass-inputs.js +0 -2434
  71. package/fesm2015/apipass-inputs.js.map +0 -1
@@ -1,3060 +0,0 @@
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/select'), require('@angular/material/core'), require('@apipass/pipes'), 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('@angular/cdk/overlay'), require('ngx-drag-drop'), require('@angular/router'), require('brace'), require('brace/theme/monokai'), require('@apipass/buttons')) :
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', '@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', '@angular/cdk/overlay', 'ngx-drag-drop', '@angular/router', 'brace', 'brace/theme/monokai', '@apipass/buttons'], 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.ng.material.input, global.ng.material.icon, global.ng.material.tooltip, global.lodash, global.i5$1, global.i3$2, global.rxjs, global.rxjs.operators, global.i1$2, global.matSelectFilter, global.ng.cdk.overlay, global.i6$1, global.ng.router, null, null, global.i1$4));
5
- }(this, (function (exports, i0, i4, i3, i1, i1$1, i5, i6, i3$1, i5$2, i2, lodash, i5$1, i3$2, rxjs, operators, i1$2, matSelectFilter, i1$3, i6$1, i1$5, brace, monokai, i1$4) { 'use strict';
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;
306
- }
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;
342
- }());
343
-
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.ɵɵelementEnd();
365
- }
366
- if (rf & 2) {
367
- var enumData_r5 = ctx.$implicit;
368
- i0.ɵɵproperty("value", enumData_r5.key);
369
- i0.ɵɵadvance(1);
370
- i0.ɵɵtextInterpolate(enumData_r5.value);
371
- }
372
- }
373
- var SelectEnumComponent = /** @class */ (function (_super) {
374
- __extends(SelectEnumComponent, _super);
375
- function SelectEnumComponent() {
376
- var _this = _super.apply(this, __spread(arguments)) || this;
377
- _this.placeholder = 'Selecione';
378
- _this.enabledSearch = true;
379
- _this.disabled = false;
380
- _this.search = '';
381
- return _this;
382
- }
383
- SelectEnumComponent.prototype.onKeyDown = function (event) {
384
- if (event.which === 32) {
385
- event.target.value += ' ';
386
- }
387
- event.stopPropagation();
388
- };
389
- return SelectEnumComponent;
390
- }(ValueAccessorBase));
391
- SelectEnumComponent.ɵfac = function SelectEnumComponent_Factory(t) { return ɵSelectEnumComponent_BaseFactory(t || SelectEnumComponent); };
392
- SelectEnumComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SelectEnumComponent, selectors: [["select-enum"]], inputs: { placeholder: "placeholder", enabledSearch: "enabledSearch", data: "data", disabled: "disabled" }, features: [i0.ɵɵProvidersFeature([{
393
- provide: i4.NG_VALUE_ACCESSOR,
394
- useExisting: i0.forwardRef(function () { return SelectEnumComponent; }),
395
- multi: true
396
- }]), 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", "autocomplete", "off", 1, "form-control", 3, "ngModel", "ngModelChange"], [3, "value"]], template: function SelectEnumComponent_Template(rf, ctx) {
397
- if (rf & 1) {
398
- i0.ɵɵelementStart(0, "mat-form-field", 0);
399
- i0.ɵɵelementStart(1, "mat-select", 1);
400
- 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 = ""; });
401
- i0.ɵɵtemplate(2, SelectEnumComponent_mat_option_2_Template, 2, 1, "mat-option", 2);
402
- i0.ɵɵtemplate(3, SelectEnumComponent_mat_option_3_Template, 2, 2, "mat-option", 3);
403
- i0.ɵɵpipe(4, "selectEnumFilter");
404
- i0.ɵɵpipe(5, "enum");
405
- i0.ɵɵelementEnd();
406
- i0.ɵɵelementEnd();
407
- }
408
- if (rf & 2) {
409
- i0.ɵɵadvance(1);
410
- i0.ɵɵproperty("ngModel", ctx.value)("disabled", ctx.disabled)("placeholder", ctx.placeholder);
411
- i0.ɵɵadvance(1);
412
- i0.ɵɵproperty("ngIf", ctx.enabledSearch);
413
- i0.ɵɵadvance(1);
414
- i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind2(4, 5, i0.ɵɵpipeBind1(5, 8, ctx.data), ctx.search));
415
- }
416
- }, directives: [i1.MatFormField, i1$1.MatSelect, i4.NgControlStatus, i4.NgModel, i3.NgIf, i3.NgForOf, i5.MatOption, i4.DefaultValueAccessor], pipes: [i6.SelectEnumFilterPipe, i6.EnumPipe], 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 });
417
- var ɵSelectEnumComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(SelectEnumComponent);
418
- /*@__PURE__*/ (function () {
419
- i0.ɵsetClassMetadata(SelectEnumComponent, [{
420
- type: i0.Component,
421
- args: [{
422
- selector: 'select-enum',
423
- templateUrl: 'select-enum.component.html',
424
- styleUrls: ['select-enum.component.scss'],
425
- providers: [{
426
- provide: i4.NG_VALUE_ACCESSOR,
427
- useExisting: i0.forwardRef(function () { return SelectEnumComponent; }),
428
- multi: true
429
- }],
430
- encapsulation: i0.ViewEncapsulation.None
431
- }]
432
- }], null, { placeholder: [{
433
- type: i0.Input
434
- }], enabledSearch: [{
435
- type: i0.Input
436
- }], data: [{
437
- type: i0.Input
438
- }], disabled: [{
439
- type: i0.Input
440
- }] });
441
- })();
442
-
443
- function InputPasswordComponent_mat_label_1_Template(rf, ctx) {
444
- if (rf & 1) {
445
- i0.ɵɵelementStart(0, "mat-label");
446
- i0.ɵɵtext(1);
447
- i0.ɵɵelementEnd();
448
- }
449
- if (rf & 2) {
450
- var ctx_r0 = i0.ɵɵnextContext();
451
- i0.ɵɵadvance(1);
452
- i0.ɵɵtextInterpolate(ctx_r0.label);
453
- }
454
- }
455
- function InputPasswordComponent_mat_hint_6_Template(rf, ctx) {
456
- if (rf & 1) {
457
- i0.ɵɵelementStart(0, "mat-hint", 10);
458
- i0.ɵɵtext(1);
459
- i0.ɵɵelementEnd();
460
- }
461
- if (rf & 2) {
462
- i0.ɵɵnextContext();
463
- var _r1 = i0.ɵɵreference(3);
464
- var _r4 = i0.ɵɵreference(8);
465
- i0.ɵɵadvance(1);
466
- i0.ɵɵtextInterpolate2(" ", _r1.value.length, " / ", _r4.max, " ");
467
- }
468
- }
469
- function InputPasswordComponent_mat_password_strength_info_9_Template(rf, ctx) {
470
- if (rf & 1) {
471
- i0.ɵɵelement(0, "mat-password-strength-info", 11);
472
- }
473
- if (rf & 2) {
474
- var ctx_r5 = i0.ɵɵnextContext();
475
- var _r4 = i0.ɵɵreference(8);
476
- i0.ɵɵproperty("lowerCaseCriteriaMsg", ctx_r5.lowerCaseCriteriaMsg)("upperCaseCriteriaMsg", ctx_r5.upperCaseCriteriaMsg)("digitsCriteriaMsg", ctx_r5.digitsCriteriaMsg)("specialCharsCriteriaMsg", ctx_r5.specialCharsCriteriaMsg)("minCharsCriteriaMsg", ctx_r5.minCharsCriteriaMsg)("passwordComponent", _r4);
477
- }
478
- }
479
- var _c0 = function (a0) { return { "label-input": a0 }; };
480
- var InputPasswordComponent = /** @class */ (function (_super) {
481
- __extends(InputPasswordComponent, _super);
482
- function InputPasswordComponent() {
483
- var _this = _super.call(this) || this;
484
- _this.label = '';
485
- _this.disabled = false;
486
- _this.showPasswordRuleDetails = false;
487
- _this.showPasswordLengthDetails = false;
488
- _this.enableLengthRule = false;
489
- _this.enableLowerCaseLetterRule = false;
490
- _this.enableUpperCaseLetterRule = false;
491
- _this.enableDigitRule = false;
492
- _this.enableSpecialCharRule = false;
493
- _this.minLength = 0;
494
- _this.maxLength = 200;
495
- _this.strengthToValid = 100;
496
- _this.lowerCaseCriteriaMsg = 'Your password must have a lowercase letter';
497
- _this.upperCaseCriteriaMsg = 'Your password must have an uppercase letter';
498
- _this.digitsCriteriaMsg = 'Your password must have a number';
499
- _this.specialCharsCriteriaMsg = 'Your password must have a special character';
500
- _this.minCharsCriteriaMsg = "Your password must be at least " + _this.minLength + " characters";
501
- _this.onValidPassword = new i0.EventEmitter();
502
- return _this;
503
- }
504
- InputPasswordComponent.prototype.onKeyDown = function (event) {
505
- if (event.which === 32) {
506
- event.target.value += ' ';
507
- }
508
- event.stopPropagation();
509
- };
510
- InputPasswordComponent.prototype.onStrengthChanged = function (strength) {
511
- this.onValidPassword.emit(strength >= this.getStrength());
512
- };
513
- InputPasswordComponent.prototype.getStrength = function () {
514
- return lodash.inRange(this.strengthToValid, 0, 100) ? this.strengthToValid : 100;
515
- };
516
- return InputPasswordComponent;
517
- }(ValueAccessorBase));
518
- InputPasswordComponent.ɵfac = function InputPasswordComponent_Factory(t) { return new (t || InputPasswordComponent)(); };
519
- 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([{
520
- provide: i4.NG_VALUE_ACCESSOR,
521
- useExisting: i0.forwardRef(function () { return InputPasswordComponent; }),
522
- multi: true
523
- }]), 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) {
524
- if (rf & 1) {
525
- i0.ɵɵelementStart(0, "mat-form-field", 0);
526
- i0.ɵɵtemplate(1, InputPasswordComponent_mat_label_1_Template, 2, 1, "mat-label", 1);
527
- i0.ɵɵelementStart(2, "input", 2, 3);
528
- i0.ɵɵlistener("ngModelChange", function InputPasswordComponent_Template_input_ngModelChange_2_listener($event) { return ctx.value = $event; });
529
- i0.ɵɵelementEnd();
530
- i0.ɵɵelement(4, "mat-pass-toggle-visibility", 4, 5);
531
- i0.ɵɵtemplate(6, InputPasswordComponent_mat_hint_6_Template, 2, 2, "mat-hint", 6);
532
- i0.ɵɵelementEnd();
533
- i0.ɵɵelementStart(7, "mat-password-strength", 7, 8);
534
- i0.ɵɵlistener("onStrengthChanged", function InputPasswordComponent_Template_mat_password_strength_onStrengthChanged_7_listener($event) { return ctx.onStrengthChanged($event); });
535
- i0.ɵɵelementEnd();
536
- i0.ɵɵtemplate(9, InputPasswordComponent_mat_password_strength_info_9_Template, 1, 6, "mat-password-strength-info", 9);
537
- }
538
- if (rf & 2) {
539
- var _r1 = i0.ɵɵreference(3);
540
- var _r2 = i0.ɵɵreference(5);
541
- var _r4 = i0.ɵɵreference(8);
542
- i0.ɵɵproperty("color", _r4.color)("ngClass", i0.ɵɵpureFunction1(18, _c0, ctx.label));
543
- i0.ɵɵadvance(1);
544
- i0.ɵɵproperty("ngIf", ctx.label);
545
- i0.ɵɵadvance(1);
546
- i0.ɵɵproperty("type", _r2.type)("disabled", ctx.disabled)("maxLength", ctx.maxLength)("minlength", ctx.minLength)("ngModel", ctx.value);
547
- i0.ɵɵadvance(4);
548
- i0.ɵɵproperty("ngIf", ctx.showPasswordLengthDetails);
549
- i0.ɵɵadvance(1);
550
- 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);
551
- i0.ɵɵadvance(2);
552
- i0.ɵɵproperty("ngIf", ctx.showPasswordRuleDetails);
553
- }
554
- }, directives: [i1.MatFormField, i3.NgClass, i3.NgIf, i3$1.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 });
555
- /*@__PURE__*/ (function () {
556
- i0.ɵsetClassMetadata(InputPasswordComponent, [{
557
- type: i0.Component,
558
- args: [{
559
- selector: 'input-password',
560
- templateUrl: 'input-password.component.html',
561
- styleUrls: ['input-password.component.scss'],
562
- providers: [{
563
- provide: i4.NG_VALUE_ACCESSOR,
564
- useExisting: i0.forwardRef(function () { return InputPasswordComponent; }),
565
- multi: true
566
- }],
567
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
568
- encapsulation: i0.ViewEncapsulation.None
569
- }]
570
- }], function () { return []; }, { label: [{
571
- type: i0.Input
572
- }], disabled: [{
573
- type: i0.Input
574
- }], showPasswordRuleDetails: [{
575
- type: i0.Input
576
- }], showPasswordLengthDetails: [{
577
- type: i0.Input
578
- }], enableLengthRule: [{
579
- type: i0.Input
580
- }], enableLowerCaseLetterRule: [{
581
- type: i0.Input
582
- }], enableUpperCaseLetterRule: [{
583
- type: i0.Input
584
- }], enableDigitRule: [{
585
- type: i0.Input
586
- }], enableSpecialCharRule: [{
587
- type: i0.Input
588
- }], minLength: [{
589
- type: i0.Input
590
- }], maxLength: [{
591
- type: i0.Input
592
- }], strengthToValid: [{
593
- type: i0.Input
594
- }], lowerCaseCriteriaMsg: [{
595
- type: i0.Input
596
- }], upperCaseCriteriaMsg: [{
597
- type: i0.Input
598
- }], digitsCriteriaMsg: [{
599
- type: i0.Input
600
- }], specialCharsCriteriaMsg: [{
601
- type: i0.Input
602
- }], minCharsCriteriaMsg: [{
603
- type: i0.Input
604
- }], onValidPassword: [{
605
- type: i0.Output
606
- }] });
607
- })();
608
-
609
- function InputTextComponent_mat_label_1_Template(rf, ctx) {
610
- if (rf & 1) {
611
- i0.ɵɵelementStart(0, "mat-label");
612
- i0.ɵɵtext(1);
613
- i0.ɵɵelementEnd();
614
- }
615
- if (rf & 2) {
616
- var ctx_r0 = i0.ɵɵnextContext();
617
- i0.ɵɵadvance(1);
618
- i0.ɵɵtextInterpolate(ctx_r0.label);
619
- }
620
- }
621
- function InputTextComponent_mat_icon_2_Template(rf, ctx) {
622
- if (rf & 1) {
623
- var _r4_1 = i0.ɵɵgetCurrentView();
624
- i0.ɵɵelementStart(0, "mat-icon", 5);
625
- 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(); });
626
- i0.ɵɵtext(1);
627
- i0.ɵɵelementEnd();
628
- }
629
- if (rf & 2) {
630
- var ctx_r1 = i0.ɵɵnextContext();
631
- i0.ɵɵadvance(1);
632
- i0.ɵɵtextInterpolate(ctx_r1.iconPrefix);
633
- }
634
- }
635
- function InputTextComponent_mat_icon_4_Template(rf, ctx) {
636
- if (rf & 1) {
637
- var _r6_1 = i0.ɵɵgetCurrentView();
638
- i0.ɵɵelementStart(0, "mat-icon", 6);
639
- 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(); });
640
- i0.ɵɵtext(1);
641
- i0.ɵɵelementEnd();
642
- }
643
- if (rf & 2) {
644
- var ctx_r2 = i0.ɵɵnextContext();
645
- i0.ɵɵadvance(1);
646
- i0.ɵɵtextInterpolate(ctx_r2.iconSuffix);
647
- }
648
- }
649
- var InputTextComponent = /** @class */ (function (_super) {
650
- __extends(InputTextComponent, _super);
651
- function InputTextComponent() {
652
- var _this = _super.apply(this, __spread(arguments)) || this;
653
- _this.label = '';
654
- _this.disabled = false;
655
- _this.iconSuffix = '';
656
- _this.iconPrefix = '';
657
- _this.autoComplete = 'on';
658
- _this.suffixIconClick = new i0.EventEmitter();
659
- _this.prefixIconClick = new i0.EventEmitter();
660
- return _this;
661
- }
662
- InputTextComponent.prototype.onKeyDown = function (event) {
663
- if (event.which === 32) {
664
- event.target.value += ' ';
665
- }
666
- event.stopPropagation();
667
- };
668
- InputTextComponent.prototype.prefixClick = function () {
669
- this.prefixIconClick.emit(true);
670
- };
671
- InputTextComponent.prototype.suffixClick = function () {
672
- this.suffixIconClick.emit(true);
673
- };
674
- return InputTextComponent;
675
- }(ValueAccessorBase));
676
- InputTextComponent.ɵfac = function InputTextComponent_Factory(t) { return ɵInputTextComponent_BaseFactory(t || InputTextComponent); };
677
- 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([{
678
- provide: i4.NG_VALUE_ACCESSOR,
679
- useExisting: i0.forwardRef(function () { return InputTextComponent; }),
680
- multi: true
681
- }]), i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 6, consts: [["appearance", "fill", 1, "apipass-input-text", "label-input"], [4, "ngIf"], ["class", "mat-icon-prefix", "matPrefix", "", 3, "click", 4, "ngIf"], ["matInput", "", "type", "text", 1, "input-text", 3, "ngModel", "disabled", "autocomplete", "ngModelChange"], ["class", "mat-icon-suffix", "matSuffix", "", 3, "click", 4, "ngIf"], ["matPrefix", "", 1, "mat-icon-prefix", 3, "click"], ["matSuffix", "", 1, "mat-icon-suffix", 3, "click"]], template: function InputTextComponent_Template(rf, ctx) {
682
- if (rf & 1) {
683
- i0.ɵɵelementStart(0, "mat-form-field", 0);
684
- i0.ɵɵtemplate(1, InputTextComponent_mat_label_1_Template, 2, 1, "mat-label", 1);
685
- i0.ɵɵtemplate(2, InputTextComponent_mat_icon_2_Template, 2, 1, "mat-icon", 2);
686
- i0.ɵɵelementStart(3, "input", 3);
687
- i0.ɵɵlistener("ngModelChange", function InputTextComponent_Template_input_ngModelChange_3_listener($event) { return ctx.value = $event; });
688
- i0.ɵɵelementEnd();
689
- i0.ɵɵtemplate(4, InputTextComponent_mat_icon_4_Template, 2, 1, "mat-icon", 4);
690
- i0.ɵɵelementEnd();
691
- }
692
- if (rf & 2) {
693
- i0.ɵɵadvance(1);
694
- i0.ɵɵproperty("ngIf", ctx.label);
695
- i0.ɵɵadvance(1);
696
- i0.ɵɵproperty("ngIf", ctx.iconPrefix);
697
- i0.ɵɵadvance(1);
698
- i0.ɵɵproperty("ngModel", ctx.value)("disabled", ctx.disabled)("autocomplete", ctx.autoComplete);
699
- i0.ɵɵadvance(1);
700
- i0.ɵɵproperty("ngIf", ctx.iconSuffix);
701
- }
702
- }, directives: [i1.MatFormField, i3.NgIf, i3$1.MatInput, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgModel, i1.MatLabel, i5$2.MatIcon, i1.MatPrefix, 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:0}"], encapsulation: 2 });
703
- var ɵInputTextComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(InputTextComponent);
704
- /*@__PURE__*/ (function () {
705
- i0.ɵsetClassMetadata(InputTextComponent, [{
706
- type: i0.Component,
707
- args: [{
708
- selector: 'input-text',
709
- templateUrl: 'input-text.component.html',
710
- styleUrls: ['input-text.component.scss'],
711
- providers: [{
712
- provide: i4.NG_VALUE_ACCESSOR,
713
- useExisting: i0.forwardRef(function () { return InputTextComponent; }),
714
- multi: true
715
- }],
716
- encapsulation: i0.ViewEncapsulation.None
717
- }]
718
- }], null, { label: [{
719
- type: i0.Input
720
- }], disabled: [{
721
- type: i0.Input
722
- }], iconSuffix: [{
723
- type: i0.Input
724
- }], iconPrefix: [{
725
- type: i0.Input
726
- }], autoComplete: [{
727
- type: i0.Input
728
- }], suffixIconClick: [{
729
- type: i0.Output
730
- }], prefixIconClick: [{
731
- type: i0.Output
732
- }] });
733
- })();
734
-
735
- var _c0$1 = function (a0, a1, a2) { return { "width": a0, "height": a1, "border-radius": a2 }; };
736
- function InputAvatarComponent_div_2_Template(rf, ctx) {
737
- if (rf & 1) {
738
- i0.ɵɵelement(0, "div", 6);
739
- }
740
- if (rf & 2) {
741
- var ctx_r0 = i0.ɵɵnextContext();
742
- i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction3(1, _c0$1, ctx_r0.width, ctx_r0.height, ctx_r0.imageBorderRadius));
743
- }
744
- }
745
- var _c1 = function (a0) { return { "font-size": a0 }; };
746
- function InputAvatarComponent_div_3_icon_1_Template(rf, ctx) {
747
- if (rf & 1) {
748
- var _r7_1 = i0.ɵɵgetCurrentView();
749
- i0.ɵɵelementStart(0, "icon", 9);
750
- 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; });
751
- i0.ɵɵelementEnd();
752
- }
753
- if (rf & 2) {
754
- var ctx_r3 = i0.ɵɵnextContext(2);
755
- i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(4, _c1, ctx_r3.iconFontSize))("title", ctx_r3.uploadTitle)("type", "primary")("name", "fas fa-upload");
756
- }
757
- }
758
- function InputAvatarComponent_div_3_icon_2_Template(rf, ctx) {
759
- if (rf & 1) {
760
- var _r9_1 = i0.ɵɵgetCurrentView();
761
- i0.ɵɵelementStart(0, "icon", 9);
762
- 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 = ""; });
763
- i0.ɵɵelementEnd();
764
- }
765
- if (rf & 2) {
766
- var ctx_r4 = i0.ɵɵnextContext(2);
767
- i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(4, _c1, ctx_r4.iconFontSize))("title", ctx_r4.modifyTitle)("type", "primary")("name", "fas fa-pencil-alt");
768
- }
769
- }
770
- function InputAvatarComponent_div_3_icon_3_Template(rf, ctx) {
771
- if (rf & 1) {
772
- var _r11_1 = i0.ɵɵgetCurrentView();
773
- i0.ɵɵelementStart(0, "icon", 9);
774
- 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 = ""; });
775
- i0.ɵɵelementEnd();
776
- }
777
- if (rf & 2) {
778
- var ctx_r5 = i0.ɵɵnextContext(2);
779
- i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(4, _c1, ctx_r5.iconFontSize))("title", ctx_r5.removeTitle)("type", "remove")("name", "fas fa-trash-alt");
780
- }
781
- }
782
- function InputAvatarComponent_div_3_Template(rf, ctx) {
783
- if (rf & 1) {
784
- i0.ɵɵelementStart(0, "div", 7);
785
- i0.ɵɵtemplate(1, InputAvatarComponent_div_3_icon_1_Template, 1, 6, "icon", 8);
786
- i0.ɵɵtemplate(2, InputAvatarComponent_div_3_icon_2_Template, 1, 6, "icon", 8);
787
- i0.ɵɵtemplate(3, InputAvatarComponent_div_3_icon_3_Template, 1, 6, "icon", 8);
788
- i0.ɵɵelementEnd();
789
- }
790
- if (rf & 2) {
791
- var ctx_r1 = i0.ɵɵnextContext();
792
- i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction3(4, _c0$1, ctx_r1.width, ctx_r1.height, ctx_r1.imageBorderRadius));
793
- i0.ɵɵadvance(1);
794
- i0.ɵɵproperty("ngIf", !ctx_r1.hasImage() && ctx_r1.canUpload);
795
- i0.ɵɵadvance(1);
796
- i0.ɵɵproperty("ngIf", ctx_r1.hasImage() && ctx_r1.canModify);
797
- i0.ɵɵadvance(1);
798
- i0.ɵɵproperty("ngIf", ctx_r1.hasImage() && ctx_r1.canRemove);
799
- }
800
- }
801
- var _c2 = function (a0, a1) { return { "width": a0, "height": a1 }; };
802
- var _c3 = function (a0, a3) { return { "width": a0, "height": "auto", "max-height": "100%", "border-radius": a3 }; };
803
- var InputAvatarComponent = /** @class */ (function () {
804
- function InputAvatarComponent() {
805
- this.avatarFormData = new FormData();
806
- this.avatarUrl = 'assets/images/no-image.png';
807
- this.imageAlt = 'Avatar';
808
- this.imageTitle = '';
809
- this.canRemove = false;
810
- this.removeTitle = '';
811
- this.canUpload = false;
812
- this.uploadTitle = '';
813
- this.canModify = false;
814
- this.modifyTitle = '';
815
- this.imageBorderRadius = '50%';
816
- this.width = '65px';
817
- this.height = '65px';
818
- this.iconFontSize = '16px';
819
- this.onFileChanged = new i0.EventEmitter();
820
- }
821
- InputAvatarComponent.prototype.hasImage = function () {
822
- return this.avatarUrl !== 'assets/images/no-image.png';
823
- };
824
- InputAvatarComponent.prototype.canAction = function () {
825
- return this.canRemove || this.canModify || this.canUpload;
826
- };
827
- InputAvatarComponent.prototype.fileChange = function (event) {
828
- var _this = this;
829
- var fileList = event.target.files;
830
- if (fileList.length > 0) {
831
- var file = fileList[0];
832
- this.avatarFormData = new FormData();
833
- this.avatarFormData.append('file', file, file.name);
834
- if (!file.type.match(/image\/*/)) {
835
- return;
836
- }
837
- var reader_1 = new FileReader();
838
- reader_1.readAsDataURL(fileList[0]);
839
- reader_1.onload = function () {
840
- _this.avatarUrl = reader_1.result;
841
- _this.emitChangeEvent();
842
- };
843
- }
844
- };
845
- InputAvatarComponent.prototype.removeClick = function () {
846
- this.avatarFormData = new FormData();
847
- this.avatarUrl = 'assets/images/no-image.png';
848
- this.emitChangeEvent();
849
- };
850
- InputAvatarComponent.prototype.emitChangeEvent = function () {
851
- this.onFileChanged.emit({ avatarUrl: this.avatarUrl, avatarFormData: this.avatarFormData });
852
- };
853
- return InputAvatarComponent;
854
- }());
855
- InputAvatarComponent.ɵfac = function InputAvatarComponent_Factory(t) { return new (t || InputAvatarComponent)(); };
856
- 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) {
857
- if (rf & 1) {
858
- i0.ɵɵelementStart(0, "div", 0);
859
- i0.ɵɵelement(1, "img", 1);
860
- i0.ɵɵtemplate(2, InputAvatarComponent_div_2_Template, 1, 5, "div", 2);
861
- i0.ɵɵtemplate(3, InputAvatarComponent_div_3_Template, 4, 8, "div", 3);
862
- i0.ɵɵelementStart(4, "input", 4, 5);
863
- i0.ɵɵlistener("change", function InputAvatarComponent_Template_input_change_4_listener($event) { return ctx.fileChange($event); });
864
- i0.ɵɵelementEnd();
865
- i0.ɵɵelementEnd();
866
- }
867
- if (rf & 2) {
868
- i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction2(7, _c2, ctx.width, ctx.height));
869
- i0.ɵɵadvance(1);
870
- i0.ɵɵproperty("src", ctx.avatarUrl, i0.ɵɵsanitizeUrl)("alt", ctx.imageAlt)("matTooltip", ctx.imageTitle)("ngStyle", i0.ɵɵpureFunction2(10, _c3, ctx.width, ctx.imageBorderRadius));
871
- i0.ɵɵadvance(1);
872
- i0.ɵɵproperty("ngIf", ctx.canAction());
873
- i0.ɵɵadvance(1);
874
- i0.ɵɵproperty("ngIf", ctx.canAction());
875
- }
876
- }, directives: [i3.NgStyle, i2.MatTooltip, i3.NgIf, i3$2.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 });
877
- /*@__PURE__*/ (function () {
878
- i0.ɵsetClassMetadata(InputAvatarComponent, [{
879
- type: i0.Component,
880
- args: [{
881
- selector: 'input-avatar',
882
- templateUrl: 'input-avatar.component.html',
883
- styleUrls: ['input-avatar.component.scss'],
884
- encapsulation: i0.ViewEncapsulation.None
885
- }]
886
- }], null, { avatarFormData: [{
887
- type: i0.Input
888
- }], avatarUrl: [{
889
- type: i0.Input
890
- }], imageAlt: [{
891
- type: i0.Input
892
- }], imageTitle: [{
893
- type: i0.Input
894
- }], canRemove: [{
895
- type: i0.Input
896
- }], removeTitle: [{
897
- type: i0.Input
898
- }], canUpload: [{
899
- type: i0.Input
900
- }], uploadTitle: [{
901
- type: i0.Input
902
- }], canModify: [{
903
- type: i0.Input
904
- }], modifyTitle: [{
905
- type: i0.Input
906
- }], imageBorderRadius: [{
907
- type: i0.Input
908
- }], width: [{
909
- type: i0.Input
910
- }], height: [{
911
- type: i0.Input
912
- }], iconFontSize: [{
913
- type: i0.Input
914
- }], onFileChanged: [{
915
- type: i0.Output
916
- }] });
917
- })();
918
-
919
- function FieldComponent_label_1_Template(rf, ctx) {
920
- if (rf & 1) {
921
- i0.ɵɵelementStart(0, "label", 3);
922
- i0.ɵɵtext(1);
923
- i0.ɵɵelementEnd();
924
- }
925
- if (rf & 2) {
926
- var ctx_r0 = i0.ɵɵnextContext();
927
- i0.ɵɵadvance(1);
928
- i0.ɵɵtextInterpolate(ctx_r0.label);
929
- }
930
- }
931
- function FieldComponent_span_3_span_1_Template(rf, ctx) {
932
- if (rf & 1) {
933
- i0.ɵɵelementStart(0, "span");
934
- i0.ɵɵtext(1, "Este campo \u00E9 obrigat\u00F3rio");
935
- i0.ɵɵelementEnd();
936
- }
937
- }
938
- function FieldComponent_span_3_span_2_Template(rf, ctx) {
939
- if (rf & 1) {
940
- i0.ɵɵelementStart(0, "span");
941
- i0.ɵɵtext(1, "E-mail inv\u00E1lido");
942
- i0.ɵɵelementEnd();
943
- }
944
- }
945
- function FieldComponent_span_3_span_3_Template(rf, ctx) {
946
- if (rf & 1) {
947
- i0.ɵɵelementStart(0, "span");
948
- i0.ɵɵtext(1, "Tamanho m\u00EDnimo inv\u00E1lido");
949
- i0.ɵɵelementEnd();
950
- }
951
- }
952
- function FieldComponent_span_3_Template(rf, ctx) {
953
- if (rf & 1) {
954
- i0.ɵɵelementStart(0, "span", 4);
955
- i0.ɵɵtemplate(1, FieldComponent_span_3_span_1_Template, 2, 0, "span", 5);
956
- i0.ɵɵtemplate(2, FieldComponent_span_3_span_2_Template, 2, 0, "span", 5);
957
- i0.ɵɵtemplate(3, FieldComponent_span_3_span_3_Template, 2, 0, "span", 5);
958
- i0.ɵɵelementEnd();
959
- }
960
- if (rf & 2) {
961
- var ctx_r1 = i0.ɵɵnextContext();
962
- i0.ɵɵadvance(1);
963
- i0.ɵɵproperty("ngIf", ctx_r1.state.hasError("required"));
964
- i0.ɵɵadvance(1);
965
- i0.ɵɵproperty("ngIf", !ctx_r1.state.hasError("required") && ctx_r1.state.hasError("validateEmail"));
966
- i0.ɵɵadvance(1);
967
- i0.ɵɵproperty("ngIf", !ctx_r1.state.hasError("required") && ctx_r1.state.hasError("minlength"));
968
- }
969
- }
970
- var _c0$2 = function (a0) { return { "has-error": a0 }; };
971
- var _c1$1 = ["*"];
972
- var FieldComponent = /** @class */ (function () {
973
- function FieldComponent() {
974
- /**
975
- * Texto para label do Input
976
- */
977
- this.label = '';
978
- }
979
- return FieldComponent;
980
- }());
981
- FieldComponent.ɵfac = function FieldComponent_Factory(t) { return new (t || FieldComponent)(); };
982
- 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) {
983
- if (rf & 1) {
984
- i0.ɵɵprojectionDef();
985
- i0.ɵɵelementStart(0, "div", 0);
986
- i0.ɵɵtemplate(1, FieldComponent_label_1_Template, 2, 1, "label", 1);
987
- i0.ɵɵprojection(2);
988
- i0.ɵɵtemplate(3, FieldComponent_span_3_Template, 4, 3, "span", 2);
989
- i0.ɵɵelementEnd();
990
- }
991
- if (rf & 2) {
992
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c0$2, ctx.state && !ctx.state.valid && (!ctx.state.pristine || ctx.state.touched) && ctx.state.errors));
993
- i0.ɵɵadvance(1);
994
- i0.ɵɵproperty("ngIf", ctx.label);
995
- i0.ɵɵadvance(2);
996
- i0.ɵɵproperty("ngIf", ctx.state && !ctx.state.valid && !ctx.state.pristine && ctx.state.touched && ctx.state.errors);
997
- }
998
- }, directives: [i3.NgClass, i3.NgIf], encapsulation: 2 });
999
- /*@__PURE__*/ (function () {
1000
- i0.ɵsetClassMetadata(FieldComponent, [{
1001
- type: i0.Component,
1002
- args: [{
1003
- selector: 'app-field',
1004
- template: "\n <div [ngClass]=\"{'has-error':state && !state.valid && (!state.pristine || state.touched) && state.errors}\">\n <label class=\"label-text\" *ngIf=\"label\">{{ label }}</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 "
1005
- }]
1006
- }], null, { label: [{
1007
- type: i0.Input
1008
- }], state: [{
1009
- type: i0.Input
1010
- }] });
1011
- })();
1012
-
1013
- var _c0$3 = ["ngSelectComponent"];
1014
- function SelectBoxComponent_2_ng_template_0_div_0_Template(rf, ctx) {
1015
- if (rf & 1) {
1016
- i0.ɵɵelementStart(0, "div", 7);
1017
- i0.ɵɵelement(1, "img", 8);
1018
- i0.ɵɵelementEnd();
1019
- }
1020
- if (rf & 2) {
1021
- var ctx_r7 = i0.ɵɵnextContext(3);
1022
- i0.ɵɵadvance(1);
1023
- i0.ɵɵproperty("src", ctx_r7.selectedItem[ctx_r7.bindImageUrl] || "./assets/images/no-image.png", i0.ɵɵsanitizeUrl)("alt", ctx_r7.selectedItem[ctx_r7.bindValue])("matTooltip", ctx_r7.selectedItem[ctx_r7.bindValue]);
1024
- }
1025
- }
1026
- function SelectBoxComponent_2_ng_template_0_span_1_Template(rf, ctx) {
1027
- if (rf & 1) {
1028
- i0.ɵɵelementStart(0, "span", 9);
1029
- i0.ɵɵtext(1);
1030
- i0.ɵɵelementEnd();
1031
- }
1032
- if (rf & 2) {
1033
- var ctx_r8 = i0.ɵɵnextContext(3);
1034
- i0.ɵɵadvance(1);
1035
- i0.ɵɵtextInterpolate(ctx_r8.selectedItem[ctx_r8.bindValue]);
1036
- }
1037
- }
1038
- function SelectBoxComponent_2_ng_template_0_Template(rf, ctx) {
1039
- if (rf & 1) {
1040
- i0.ɵɵtemplate(0, SelectBoxComponent_2_ng_template_0_div_0_Template, 2, 3, "div", 5);
1041
- i0.ɵɵtemplate(1, SelectBoxComponent_2_ng_template_0_span_1_Template, 2, 1, "span", 6);
1042
- }
1043
- if (rf & 2) {
1044
- var ctx_r5 = i0.ɵɵnextContext(2);
1045
- i0.ɵɵproperty("ngIf", ctx_r5.selectedItem && ctx_r5.selectedItem[ctx_r5.bindKey] && ctx_r5.selectedItem[ctx_r5.bindValue] && ctx_r5.bindImageUrl);
1046
- i0.ɵɵadvance(1);
1047
- i0.ɵɵproperty("ngIf", ctx_r5.selectedItem && ctx_r5.selectedItem[ctx_r5.bindKey] && ctx_r5.selectedItem[ctx_r5.bindValue]);
1048
- }
1049
- }
1050
- function SelectBoxComponent_2_Template(rf, ctx) {
1051
- if (rf & 1) {
1052
- i0.ɵɵtemplate(0, SelectBoxComponent_2_ng_template_0_Template, 2, 2, "ng-template", 4);
1053
- }
1054
- }
1055
- function SelectBoxComponent_3_ng_template_0_div_0_Template(rf, ctx) {
1056
- if (rf & 1) {
1057
- i0.ɵɵelementStart(0, "div", 7);
1058
- i0.ɵɵelement(1, "img", 8);
1059
- i0.ɵɵelementEnd();
1060
- }
1061
- if (rf & 2) {
1062
- var ctx_r11 = i0.ɵɵnextContext(3);
1063
- i0.ɵɵadvance(1);
1064
- i0.ɵɵproperty("src", ctx_r11.value[ctx_r11.bindImageUrl] || "./assets/images/no-image.png", i0.ɵɵsanitizeUrl)("alt", ctx_r11.value[ctx_r11.bindValue])("matTooltip", ctx_r11.value[ctx_r11.bindValue]);
1065
- }
1066
- }
1067
- function SelectBoxComponent_3_ng_template_0_span_1_Template(rf, ctx) {
1068
- if (rf & 1) {
1069
- i0.ɵɵelementStart(0, "span", 9);
1070
- i0.ɵɵtext(1);
1071
- i0.ɵɵelementEnd();
1072
- }
1073
- if (rf & 2) {
1074
- var ctx_r12 = i0.ɵɵnextContext(3);
1075
- i0.ɵɵadvance(1);
1076
- i0.ɵɵtextInterpolate(ctx_r12.value[ctx_r12.bindValue]);
1077
- }
1078
- }
1079
- function SelectBoxComponent_3_ng_template_0_Template(rf, ctx) {
1080
- if (rf & 1) {
1081
- i0.ɵɵtemplate(0, SelectBoxComponent_3_ng_template_0_div_0_Template, 2, 3, "div", 5);
1082
- i0.ɵɵtemplate(1, SelectBoxComponent_3_ng_template_0_span_1_Template, 2, 1, "span", 6);
1083
- }
1084
- if (rf & 2) {
1085
- var ctx_r9 = i0.ɵɵnextContext(2);
1086
- i0.ɵɵproperty("ngIf", ctx_r9.value && ctx_r9.value[ctx_r9.bindKey] && ctx_r9.value[ctx_r9.bindValue] && ctx_r9.bindImageUrl);
1087
- i0.ɵɵadvance(1);
1088
- i0.ɵɵproperty("ngIf", ctx_r9.value && ctx_r9.value[ctx_r9.bindKey] && ctx_r9.value[ctx_r9.bindValue]);
1089
- }
1090
- }
1091
- function SelectBoxComponent_3_Template(rf, ctx) {
1092
- if (rf & 1) {
1093
- i0.ɵɵtemplate(0, SelectBoxComponent_3_ng_template_0_Template, 2, 2, "ng-template", 4);
1094
- }
1095
- }
1096
- function SelectBoxComponent_4_ng_template_0_icon_1_Template(rf, ctx) {
1097
- if (rf & 1) {
1098
- i0.ɵɵelement(0, "icon", 14);
1099
- }
1100
- if (rf & 2) {
1101
- var ctx_r14 = i0.ɵɵnextContext(3);
1102
- i0.ɵɵproperty("title", ctx_r14.addNewItemText)("name", ctx_r14.addNewItemIcon)("size", 20);
1103
- }
1104
- }
1105
- function SelectBoxComponent_4_ng_template_0_span_2_Template(rf, ctx) {
1106
- if (rf & 1) {
1107
- i0.ɵɵelementStart(0, "span", 15);
1108
- i0.ɵɵtext(1);
1109
- i0.ɵɵelementEnd();
1110
- }
1111
- if (rf & 2) {
1112
- var ctx_r15 = i0.ɵɵnextContext(3);
1113
- i0.ɵɵadvance(1);
1114
- i0.ɵɵtextInterpolate(ctx_r15.addNewItemText);
1115
- }
1116
- }
1117
- function SelectBoxComponent_4_ng_template_0_Template(rf, ctx) {
1118
- if (rf & 1) {
1119
- var _r17_1 = i0.ɵɵgetCurrentView();
1120
- i0.ɵɵelementStart(0, "div", 11);
1121
- i0.ɵɵlistener("click", function SelectBoxComponent_4_ng_template_0_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r17_1); var ctx_r16 = i0.ɵɵnextContext(2); return ctx_r16.onAddNewItem(); });
1122
- i0.ɵɵtemplate(1, SelectBoxComponent_4_ng_template_0_icon_1_Template, 1, 3, "icon", 12);
1123
- i0.ɵɵtemplate(2, SelectBoxComponent_4_ng_template_0_span_2_Template, 2, 1, "span", 13);
1124
- i0.ɵɵelementEnd();
1125
- }
1126
- if (rf & 2) {
1127
- var ctx_r13 = i0.ɵɵnextContext(2);
1128
- i0.ɵɵadvance(1);
1129
- i0.ɵɵproperty("ngIf", ctx_r13.addNewItemIcon);
1130
- i0.ɵɵadvance(1);
1131
- i0.ɵɵproperty("ngIf", ctx_r13.addNewItemText);
1132
- }
1133
- }
1134
- function SelectBoxComponent_4_Template(rf, ctx) {
1135
- if (rf & 1) {
1136
- i0.ɵɵtemplate(0, SelectBoxComponent_4_ng_template_0_Template, 3, 2, "ng-template", 10);
1137
- }
1138
- }
1139
- function SelectBoxComponent_ng_template_5_div_0_Template(rf, ctx) {
1140
- if (rf & 1) {
1141
- i0.ɵɵelementStart(0, "div", 7);
1142
- i0.ɵɵelement(1, "img", 8);
1143
- i0.ɵɵelementEnd();
1144
- }
1145
- if (rf & 2) {
1146
- var item_r18 = i0.ɵɵnextContext().item;
1147
- var ctx_r20 = i0.ɵɵnextContext();
1148
- i0.ɵɵadvance(1);
1149
- i0.ɵɵproperty("src", item_r18[ctx_r20.bindImageUrl] || "./assets/images/no-image.png", i0.ɵɵsanitizeUrl)("alt", item_r18[ctx_r20.bindValue])("matTooltip", item_r18[ctx_r20.bindValue]);
1150
- }
1151
- }
1152
- function SelectBoxComponent_ng_template_5_Template(rf, ctx) {
1153
- if (rf & 1) {
1154
- i0.ɵɵtemplate(0, SelectBoxComponent_ng_template_5_div_0_Template, 2, 3, "div", 5);
1155
- i0.ɵɵelementStart(1, "span", 16);
1156
- i0.ɵɵtext(2);
1157
- i0.ɵɵelementEnd();
1158
- }
1159
- if (rf & 2) {
1160
- var item_r18 = ctx.item;
1161
- var ctx_r4 = i0.ɵɵnextContext();
1162
- i0.ɵɵproperty("ngIf", ctx_r4.bindImageUrl);
1163
- i0.ɵɵadvance(2);
1164
- i0.ɵɵtextInterpolate(item_r18[ctx_r4.bindValue]);
1165
- }
1166
- }
1167
- var _c1$2 = function (a0, a1) { return { "apipass-select-image": a0, "apipass-select": a1 }; };
1168
- var SelectBoxComponent = /** @class */ (function (_super) {
1169
- __extends(SelectBoxComponent, _super);
1170
- function SelectBoxComponent() {
1171
- var _this = _super.apply(this, __spread(arguments)) || this;
1172
- _this.placeholder = 'Select Item';
1173
- _this.searchPlaceHolder = 'Search';
1174
- _this.clearText = 'Clear';
1175
- _this.notFoundText = 'No Items Found';
1176
- _this.enabledSearch = true;
1177
- _this.data = [];
1178
- _this.disabled = false;
1179
- _this.bindImageUrl = '';
1180
- _this.bindKey = '';
1181
- _this.bindValue = '';
1182
- _this.limitItens = 30;
1183
- _this.showAddNewItem = false;
1184
- _this.addNewItemText = 'Add New Item';
1185
- _this.addNewItemIcon = '';
1186
- _this.addNewItemClickCloseSelect = false;
1187
- _this.closeOnBodyScroll = false;
1188
- _this.initializing = false;
1189
- _this.loadingText = 'Loading...';
1190
- _this.onOpenSelectBox = new i0.EventEmitter();
1191
- _this.onCloseSelectBox = new i0.EventEmitter();
1192
- _this.onSelectChange = new i0.EventEmitter();
1193
- _this.onSelectClear = new i0.EventEmitter();
1194
- _this.onAddNewItemClick = new i0.EventEmitter();
1195
- _this.visibleItens = [];
1196
- _this.loading = false;
1197
- _this.inputFilter = new rxjs.Subject();
1198
- _this.lastSearchTerm = '';
1199
- _this.onBodyScroll = function (event) {
1200
- var _a, _b;
1201
- if (_this.closeOnBodyScroll && ((_a = _this.ngSelectComponent) === null || _a === void 0 ? void 0 : _a.isOpen)) {
1202
- var isScrollingInScrollHost = ((_b = event.target.className) === null || _b === void 0 ? void 0 : _b.indexOf('ng-dropdown-panel-items')) > -1;
1203
- if (isScrollingInScrollHost) {
1204
- return;
1205
- }
1206
- _this.ngSelectComponent.close();
1207
- }
1208
- };
1209
- return _this;
1210
- }
1211
- SelectBoxComponent.prototype.ngOnInit = function () {
1212
- this.onSearch();
1213
- if (this.closeOnBodyScroll) {
1214
- window.addEventListener('scroll', this.onBodyScroll, true);
1215
- }
1216
- };
1217
- SelectBoxComponent.prototype.ngOnDestroy = function () {
1218
- if (this.closeOnBodyScroll) {
1219
- window.removeEventListener('scroll', this.onBodyScroll, true);
1220
- }
1221
- };
1222
- SelectBoxComponent.prototype.onSearch = function () {
1223
- var _this = this;
1224
- this.inputFilter.pipe(operators.debounceTime(200), operators.distinctUntilChanged()).subscribe(function (searchString) {
1225
- _this.loading = true;
1226
- _this.lastSearchTerm = searchString;
1227
- if (searchString && _this.data) {
1228
- _this.visibleItens = _this.data.filter(function (item) { var _a; return (_a = item[_this.bindValue]) === null || _a === void 0 ? void 0 : _a.toString().toLowerCase().includes(searchString.toLowerCase()); }).slice(0, _this.limitItens);
1229
- }
1230
- else if (_this.data) {
1231
- _this.visibleItens = _this.data.slice(0, _this.limitItens);
1232
- }
1233
- else {
1234
- _this.visibleItens = [];
1235
- }
1236
- setTimeout(function () { return _this.loading = false; }, 300);
1237
- });
1238
- };
1239
- // @ts-ignore
1240
- SelectBoxComponent.prototype.onScroll = function (_c) {
1241
- var _this = this;
1242
- var end = _c.end;
1243
- var data = this.lastSearchTerm ? this.data.filter(function (item) { var _a; return (_a = item[_this.bindValue]) === null || _a === void 0 ? void 0 : _a.toString().toLowerCase().includes(_this.lastSearchTerm.toLowerCase()); }) : this.data;
1244
- if (this.loading || data.length <= this.visibleItens.length) {
1245
- return;
1246
- }
1247
- if (end + 5 >= this.visibleItens.length) {
1248
- this.fetchMore();
1249
- }
1250
- };
1251
- SelectBoxComponent.prototype.onScrollToEnd = function () {
1252
- if (this.loading) {
1253
- return;
1254
- }
1255
- this.fetchMore();
1256
- };
1257
- SelectBoxComponent.prototype.fetchMore = function () {
1258
- var _this = this;
1259
- this.loading = true;
1260
- var len = this.visibleItens.length;
1261
- var more = this.lastSearchTerm ?
1262
- this.data.filter(function (item) { var _a; return (_a = item[_this.bindValue]) === null || _a === void 0 ? void 0 : _a.toString().toLowerCase().includes(_this.lastSearchTerm.toLowerCase()); }).slice(len, this.limitItens + len) : this.data.slice(len, this.limitItens + len);
1263
- this.visibleItens = this.visibleItens.concat(more);
1264
- this.loading = false;
1265
- };
1266
- SelectBoxComponent.prototype.onKeyDown = function (event) {
1267
- if (event.which === 32) {
1268
- event.target.value += ' ';
1269
- }
1270
- event.stopPropagation();
1271
- };
1272
- SelectBoxComponent.prototype.onSelectionChange = function (event) {
1273
- this.findSelectedItem(this.value);
1274
- this.onSelectChange.emit(this.selectedItem);
1275
- };
1276
- SelectBoxComponent.prototype.openSelectBox = function ($event) {
1277
- this.visibleItens = [];
1278
- if (this.data) {
1279
- this.visibleItens = this.data.slice(0, this.limitItens);
1280
- }
1281
- this.onOpenSelectBox.next();
1282
- };
1283
- SelectBoxComponent.prototype.compareFn = function (a, b) {
1284
- return a[this.bindKey] === b[this.bindKey];
1285
- };
1286
- SelectBoxComponent.prototype.onClear = function () {
1287
- this.onSelectClear.next();
1288
- };
1289
- SelectBoxComponent.prototype.onClose = function ($event) {
1290
- this.onCloseSelectBox.next();
1291
- };
1292
- SelectBoxComponent.prototype.onAddNewItem = function () {
1293
- var _a;
1294
- if (this.addNewItemClickCloseSelect) {
1295
- (_a = this.ngSelectComponent) === null || _a === void 0 ? void 0 : _a.close();
1296
- }
1297
- this.onAddNewItemClick.next();
1298
- };
1299
- SelectBoxComponent.prototype.writeValue = function (value) {
1300
- _super.prototype.writeValue.call(this, value);
1301
- if (value) {
1302
- this.findSelectedItem(value);
1303
- }
1304
- };
1305
- SelectBoxComponent.prototype.findSelectedItem = function (value) {
1306
- var _this = this;
1307
- var _a, _b;
1308
- if (this.selectProperty) {
1309
- this.selectedItem = (_a = this.data) === null || _a === void 0 ? void 0 : _a.find(function (el) { return el[_this.bindKey] === value; });
1310
- }
1311
- else if (value) {
1312
- this.selectedItem = (_b = this.data) === null || _b === void 0 ? void 0 : _b.find(function (el) { return el[_this.bindKey] === value[_this.bindKey]; });
1313
- }
1314
- else {
1315
- this.selectedItem = null;
1316
- }
1317
- };
1318
- return SelectBoxComponent;
1319
- }(ValueAccessorBase));
1320
- SelectBoxComponent.ɵfac = function SelectBoxComponent_Factory(t) { return ɵSelectBoxComponent_BaseFactory(t || SelectBoxComponent); };
1321
- SelectBoxComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SelectBoxComponent, selectors: [["select-box"]], viewQuery: function SelectBoxComponent_Query(rf, ctx) {
1322
- if (rf & 1) {
1323
- i0.ɵɵviewQuery(_c0$3, true);
1324
- }
1325
- if (rf & 2) {
1326
- var _t;
1327
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.ngSelectComponent = _t.first);
1328
- }
1329
- }, inputs: { placeholder: "placeholder", searchPlaceHolder: "searchPlaceHolder", clearText: "clearText", notFoundText: "notFoundText", enabledSearch: "enabledSearch", data: "data", disabled: "disabled", selectedItem: "selectedItem", selectProperty: "selectProperty", bindImageUrl: "bindImageUrl", bindKey: "bindKey", bindValue: "bindValue", limitItens: "limitItens", showAddNewItem: "showAddNewItem", addNewItemText: "addNewItemText", addNewItemIcon: "addNewItemIcon", addNewItemClickCloseSelect: "addNewItemClickCloseSelect", closeOnBodyScroll: "closeOnBodyScroll", initializing: "initializing", loadingText: "loadingText" }, outputs: { onOpenSelectBox: "onOpenSelectBox", onCloseSelectBox: "onCloseSelectBox", onSelectChange: "onSelectChange", onSelectClear: "onSelectClear", onAddNewItemClick: "onAddNewItemClick" }, features: [i0.ɵɵProvidersFeature([{
1330
- provide: i4.NG_VALUE_ACCESSOR,
1331
- useExisting: i0.forwardRef(function () { return SelectBoxComponent; }),
1332
- multi: true
1333
- }]), i0.ɵɵInheritDefinitionFeature], decls: 6, vars: 21, consts: [["appendTo", "body", 3, "ngModel", "items", "virtualScroll", "loading", "loadingText", "placeholder", "clearAllText", "searchable", "typeToSearchText", "notFoundText", "disabled", "typeahead", "ngClass", "compareWith", "bindValue", "ngModelChange", "open", "close", "clear", "scroll", "scrollToEnd", "change"], ["ngSelectComponent", ""], [4, "ngIf"], ["ng-option-tmp", ""], ["ng-label-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"], ["ng-header-tmp", ""], [1, "add-new-item-option", 2, "display", "flex", "align-items", "center", "cursor", "pointer", 3, "click"], ["style", "margin-right: 5px", 3, "title", "name", "size", 4, "ngIf"], ["class", "add-new-item-text", "style", "white-space: nowrap;overflow: hidden;text-overflow: ellipsis;", 4, "ngIf"], [2, "margin-right", "5px", 3, "title", "name", "size"], [1, "add-new-item-text", 2, "white-space", "nowrap", "overflow", "hidden", "text-overflow", "ellipsis"], [1, "select-text-element", 2, "white-space", "nowrap", "overflow", "hidden", "text-overflow", "ellipsis"]], template: function SelectBoxComponent_Template(rf, ctx) {
1334
- if (rf & 1) {
1335
- i0.ɵɵelementStart(0, "ng-select", 0, 1);
1336
- 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); });
1337
- i0.ɵɵtemplate(2, SelectBoxComponent_2_Template, 1, 0, undefined, 2);
1338
- i0.ɵɵtemplate(3, SelectBoxComponent_3_Template, 1, 0, undefined, 2);
1339
- i0.ɵɵtemplate(4, SelectBoxComponent_4_Template, 1, 0, undefined, 2);
1340
- i0.ɵɵtemplate(5, SelectBoxComponent_ng_template_5_Template, 3, 2, "ng-template", 3);
1341
- i0.ɵɵelementEnd();
1342
- }
1343
- if (rf & 2) {
1344
- i0.ɵɵproperty("ngModel", ctx.value)("items", ctx.visibleItens)("virtualScroll", true)("loading", ctx.loading || ctx.initializing)("loadingText", ctx.loadingText)("placeholder", ctx.placeholder)("clearAllText", ctx.clearText)("searchable", ctx.enabledSearch)("typeToSearchText", ctx.searchPlaceHolder)("notFoundText", ctx.notFoundText)("disabled", ctx.disabled)("typeahead", ctx.inputFilter)("ngClass", i0.ɵɵpureFunction2(18, _c1$2, ctx.bindImageUrl, !ctx.bindImageUrl))("compareWith", ctx.compareFn)("bindValue", ctx.selectProperty);
1345
- i0.ɵɵadvance(2);
1346
- i0.ɵɵproperty("ngIf", ctx.selectProperty && ctx.selectedItem && ctx.selectedItem[ctx.bindKey] && ctx.selectedItem[ctx.bindValue]);
1347
- i0.ɵɵadvance(1);
1348
- i0.ɵɵproperty("ngIf", !ctx.selectProperty && ctx.value && ctx.value[ctx.bindKey] && ctx.value[ctx.bindValue]);
1349
- i0.ɵɵadvance(1);
1350
- i0.ɵɵproperty("ngIf", ctx.showAddNewItem);
1351
- }
1352
- }, directives: [i1$2.NgSelectComponent, i4.NgControlStatus, i4.NgModel, i3.NgClass, i3.NgIf, i1$2.ɵf, i1$2.ɵh, i2.MatTooltip, i1$2.ɵj, i3$2.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}.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 });
1353
- var ɵSelectBoxComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(SelectBoxComponent);
1354
- /*@__PURE__*/ (function () {
1355
- i0.ɵsetClassMetadata(SelectBoxComponent, [{
1356
- type: i0.Component,
1357
- args: [{
1358
- selector: 'select-box',
1359
- templateUrl: 'select-box.component.html',
1360
- styleUrls: ['select-box.component.scss'],
1361
- providers: [{
1362
- provide: i4.NG_VALUE_ACCESSOR,
1363
- useExisting: i0.forwardRef(function () { return SelectBoxComponent; }),
1364
- multi: true
1365
- }],
1366
- encapsulation: i0.ViewEncapsulation.None
1367
- }]
1368
- }], null, { placeholder: [{
1369
- type: i0.Input
1370
- }], searchPlaceHolder: [{
1371
- type: i0.Input
1372
- }], clearText: [{
1373
- type: i0.Input
1374
- }], notFoundText: [{
1375
- type: i0.Input
1376
- }], enabledSearch: [{
1377
- type: i0.Input
1378
- }], data: [{
1379
- type: i0.Input
1380
- }], disabled: [{
1381
- type: i0.Input
1382
- }], selectedItem: [{
1383
- type: i0.Input
1384
- }], selectProperty: [{
1385
- type: i0.Input
1386
- }], bindImageUrl: [{
1387
- type: i0.Input
1388
- }], bindKey: [{
1389
- type: i0.Input
1390
- }], bindValue: [{
1391
- type: i0.Input
1392
- }], limitItens: [{
1393
- type: i0.Input
1394
- }], showAddNewItem: [{
1395
- type: i0.Input
1396
- }], addNewItemText: [{
1397
- type: i0.Input
1398
- }], addNewItemIcon: [{
1399
- type: i0.Input
1400
- }], addNewItemClickCloseSelect: [{
1401
- type: i0.Input
1402
- }], closeOnBodyScroll: [{
1403
- type: i0.Input
1404
- }], initializing: [{
1405
- type: i0.Input
1406
- }], loadingText: [{
1407
- type: i0.Input
1408
- }], onOpenSelectBox: [{
1409
- type: i0.Output
1410
- }], onCloseSelectBox: [{
1411
- type: i0.Output
1412
- }], onSelectChange: [{
1413
- type: i0.Output
1414
- }], onSelectClear: [{
1415
- type: i0.Output
1416
- }], onAddNewItemClick: [{
1417
- type: i0.Output
1418
- }], ngSelectComponent: [{
1419
- type: i0.ViewChild,
1420
- args: ['ngSelectComponent']
1421
- }] });
1422
- })();
1423
-
1424
- /** The height of the select items in `em` units. */
1425
- var SELECT_ITEM_HEIGHT_EM = 3;
1426
- var MatSelectInfiniteScrollDirective = /** @class */ (function () {
1427
- function MatSelectInfiniteScrollDirective(matSelect, ngZone) {
1428
- this.matSelect = matSelect;
1429
- this.ngZone = ngZone;
1430
- this.threshold = '15%';
1431
- this.debounceTime = 150;
1432
- this.infiniteScroll = new i0.EventEmitter();
1433
- this.thrPx = 0;
1434
- this.thrPc = 0;
1435
- this.singleOptionHeight = SELECT_ITEM_HEIGHT_EM;
1436
- this.destroyed$ = new rxjs.Subject();
1437
- }
1438
- MatSelectInfiniteScrollDirective.prototype.ngOnInit = function () {
1439
- this.evaluateThreshold();
1440
- };
1441
- MatSelectInfiniteScrollDirective.prototype.ngAfterViewInit = function () {
1442
- var _this = this;
1443
- this.matSelect.openedChange.pipe(operators.takeUntil(this.destroyed$)).subscribe(function (opened) {
1444
- if (opened) {
1445
- _this.panel = _this.matSelect.panel.nativeElement;
1446
- _this.singleOptionHeight = _this.getSelectItemHeightPx();
1447
- _this.registerScrollListener();
1448
- }
1449
- });
1450
- };
1451
- MatSelectInfiniteScrollDirective.prototype.ngOnDestroy = function () {
1452
- this.destroyed$.next(true);
1453
- this.destroyed$.complete();
1454
- };
1455
- MatSelectInfiniteScrollDirective.prototype.evaluateThreshold = function () {
1456
- if (this.threshold.lastIndexOf('%') > -1) {
1457
- this.thrPx = 0;
1458
- this.thrPc = (parseFloat(this.threshold) / 100);
1459
- }
1460
- else {
1461
- this.thrPx = parseFloat(this.threshold);
1462
- this.thrPc = 0;
1463
- }
1464
- };
1465
- MatSelectInfiniteScrollDirective.prototype.registerScrollListener = function () {
1466
- var _this = this;
1467
- rxjs.fromEvent(this.panel, 'scroll').pipe(operators.takeUntil(this.destroyed$), operators.debounceTime(this.debounceTime), operators.tap(function (event) {
1468
- _this.handleScrollEvent(event);
1469
- })).subscribe();
1470
- };
1471
- MatSelectInfiniteScrollDirective.prototype.handleScrollEvent = function (event) {
1472
- var _this = this;
1473
- this.ngZone.runOutsideAngular(function () {
1474
- if (_this.complete) {
1475
- return;
1476
- }
1477
- var countOfRenderedOptions = _this.matSelect.options.length;
1478
- var infiniteScrollDistance = _this.singleOptionHeight * countOfRenderedOptions;
1479
- var threshold = _this.thrPc !== 0 ? (infiniteScrollDistance * _this.thrPc) : _this.thrPx;
1480
- var scrolledDistance = _this.panel.clientHeight + event.target.scrollTop;
1481
- if ((scrolledDistance + threshold) >= infiniteScrollDistance) {
1482
- _this.ngZone.run(function () { return _this.infiniteScroll.emit(); });
1483
- }
1484
- });
1485
- };
1486
- MatSelectInfiniteScrollDirective.prototype.getSelectItemHeightPx = function () {
1487
- return parseFloat(getComputedStyle(this.panel).fontSize) * SELECT_ITEM_HEIGHT_EM;
1488
- };
1489
- return MatSelectInfiniteScrollDirective;
1490
- }());
1491
- MatSelectInfiniteScrollDirective.ɵfac = function MatSelectInfiniteScrollDirective_Factory(t) { return new (t || MatSelectInfiniteScrollDirective)(i0.ɵɵdirectiveInject(i1$1.MatSelect), i0.ɵɵdirectiveInject(i0.NgZone)); };
1492
- MatSelectInfiniteScrollDirective.ɵdir = i0.ɵɵdefineDirective({ type: MatSelectInfiniteScrollDirective, selectors: [["", "msInfiniteScroll", ""]], inputs: { threshold: "threshold", debounceTime: "debounceTime", complete: "complete" }, outputs: { infiniteScroll: "infiniteScroll" } });
1493
- /*@__PURE__*/ (function () {
1494
- i0.ɵsetClassMetadata(MatSelectInfiniteScrollDirective, [{
1495
- type: i0.Directive,
1496
- args: [{
1497
- selector: '[msInfiniteScroll]'
1498
- }]
1499
- }], function () { return [{ type: i1$1.MatSelect }, { type: i0.NgZone }]; }, { threshold: [{
1500
- type: i0.Input
1501
- }], debounceTime: [{
1502
- type: i0.Input
1503
- }], complete: [{
1504
- type: i0.Input
1505
- }], infiniteScroll: [{
1506
- type: i0.Output
1507
- }] });
1508
- })();
1509
-
1510
- var CustomSelectItem = /** @class */ (function () {
1511
- function CustomSelectItem(id, text) {
1512
- this.id = id;
1513
- this.text = text;
1514
- }
1515
- return CustomSelectItem;
1516
- }());
1517
-
1518
- var _c0$4 = ["trigger"];
1519
- var _c1$3 = ["input"];
1520
- function CustomSelectComponent_span_6_Template(rf, ctx) {
1521
- if (rf & 1) {
1522
- var _r6_1 = i0.ɵɵgetCurrentView();
1523
- i0.ɵɵelementStart(0, "span", 11);
1524
- i0.ɵɵlistener("click", function CustomSelectComponent_span_6_Template_span_click_0_listener($event) { i0.ɵɵrestoreView(_r6_1); var ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.removeClick($event); });
1525
- i0.ɵɵelement(1, "i", 12);
1526
- i0.ɵɵelementEnd();
1527
- }
1528
- }
1529
- function CustomSelectComponent_ng_template_10_li_4_Template(rf, ctx) {
1530
- if (rf & 1) {
1531
- var _r11_1 = i0.ɵɵgetCurrentView();
1532
- i0.ɵɵelementStart(0, "li", 19);
1533
- i0.ɵɵlistener("click", function CustomSelectComponent_ng_template_10_li_4_Template_li_click_0_listener() { i0.ɵɵrestoreView(_r11_1); var i_r9 = ctx.$implicit; var ctx_r10 = i0.ɵɵnextContext(2); return ctx_r10.selectItem(i_r9); })("mousedown", function CustomSelectComponent_ng_template_10_li_4_Template_li_mousedown_0_listener() { i0.ɵɵrestoreView(_r11_1); var i_r9 = ctx.$implicit; var ctx_r12 = i0.ɵɵnextContext(2); return ctx_r12.selectItem(i_r9); });
1534
- i0.ɵɵtext(1);
1535
- i0.ɵɵelementEnd();
1536
- }
1537
- if (rf & 2) {
1538
- var i_r9 = ctx.$implicit;
1539
- i0.ɵɵadvance(1);
1540
- i0.ɵɵtextInterpolate1(" ", i_r9.text, " ");
1541
- }
1542
- }
1543
- function CustomSelectComponent_ng_template_10_li_6_Template(rf, ctx) {
1544
- if (rf & 1) {
1545
- var _r14_1 = i0.ɵɵgetCurrentView();
1546
- i0.ɵɵelementStart(0, "li", 20);
1547
- i0.ɵɵlistener("mousedown", function CustomSelectComponent_ng_template_10_li_6_Template_li_mousedown_0_listener() { i0.ɵɵrestoreView(_r14_1); var ctx_r13 = i0.ɵɵnextContext(2); return ctx_r13.addItem(); })("click", function CustomSelectComponent_ng_template_10_li_6_Template_li_click_0_listener() { i0.ɵɵrestoreView(_r14_1); var ctx_r15 = i0.ɵɵnextContext(2); return ctx_r15.addItem(); });
1548
- i0.ɵɵelement(1, "span", 21);
1549
- i0.ɵɵelementStart(2, "span");
1550
- i0.ɵɵtext(3);
1551
- i0.ɵɵelementEnd();
1552
- i0.ɵɵelementEnd();
1553
- }
1554
- if (rf & 2) {
1555
- var ctx_r8 = i0.ɵɵnextContext(2);
1556
- i0.ɵɵadvance(3);
1557
- i0.ɵɵtextInterpolate(ctx_r8.addItemLabel);
1558
- }
1559
- }
1560
- function CustomSelectComponent_ng_template_10_Template(rf, ctx) {
1561
- if (rf & 1) {
1562
- var _r17_1 = i0.ɵɵgetCurrentView();
1563
- i0.ɵɵelementStart(0, "ul", 13);
1564
- i0.ɵɵelementStart(1, "li", 14);
1565
- i0.ɵɵelementStart(2, "mat-form-field", 15);
1566
- i0.ɵɵelementStart(3, "input", 16);
1567
- i0.ɵɵlistener("ngModelChange", function CustomSelectComponent_ng_template_10_Template_input_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r17_1); var ctx_r16 = i0.ɵɵnextContext(); return ctx_r16.searchText = $event; })("blur", function CustomSelectComponent_ng_template_10_Template_input_blur_3_listener($event) { i0.ɵɵrestoreView(_r17_1); var ctx_r18 = i0.ɵɵnextContext(); return ctx_r18.onBlur($event); });
1568
- i0.ɵɵelementEnd();
1569
- i0.ɵɵelementEnd();
1570
- i0.ɵɵelementEnd();
1571
- i0.ɵɵtemplate(4, CustomSelectComponent_ng_template_10_li_4_Template, 2, 1, "li", 17);
1572
- i0.ɵɵpipe(5, "selectFilter");
1573
- i0.ɵɵtemplate(6, CustomSelectComponent_ng_template_10_li_6_Template, 4, 1, "li", 18);
1574
- i0.ɵɵelementEnd();
1575
- }
1576
- if (rf & 2) {
1577
- var ctx_r4 = i0.ɵɵnextContext();
1578
- i0.ɵɵadvance(3);
1579
- i0.ɵɵproperty("placeholder", ctx_r4.findPlaceHolder)("ngModel", ctx_r4.searchText);
1580
- i0.ɵɵadvance(1);
1581
- i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind3(5, 4, ctx_r4.items, ctx_r4.searchText, "text"));
1582
- i0.ɵɵadvance(2);
1583
- i0.ɵɵproperty("ngIf", ctx_r4.allowAddItem);
1584
- }
1585
- }
1586
- var _c2$1 = function (a0) { return { "select-open": a0 }; };
1587
- var _c3$1 = function () { return { standalone: true }; };
1588
- var _c4 = function (a0, a1) { return { "fa-caret-down": a0, "fa-caret-up": a1 }; };
1589
- var CustomSelectComponent = /** @class */ (function () {
1590
- function CustomSelectComponent(sso) {
1591
- this.sso = sso;
1592
- this.disabled = false;
1593
- this.items = [];
1594
- this.allowTyping = false;
1595
- this.allowRemove = false;
1596
- this.allowAddItem = true;
1597
- this.addItemLabel = 'Add New Item';
1598
- this.placeHolder = 'Select';
1599
- this.findPlaceHolder = 'Find item';
1600
- this.searchText = '';
1601
- this.onSelect = new i0.EventEmitter();
1602
- this.onUnSelect = new i0.EventEmitter();
1603
- this.onAddItem = new i0.EventEmitter();
1604
- this.opened = false;
1605
- this.edited = false;
1606
- this.tabindex = '0';
1607
- this.onTouchedCallback = function () {
1608
- };
1609
- this.onChangeCallback = function () {
1610
- };
1611
- this.scrollStrategy = this.sso.block();
1612
- }
1613
- CustomSelectComponent.prototype.onBlur = function (target) {
1614
- if (this.allowTyping) {
1615
- if (this.value) {
1616
- if (this.edited) {
1617
- this.writeValue(this.value);
1618
- this.selectedItem = new CustomSelectItem(this.value, this.value);
1619
- this.onSelect.next(this.selectedItem);
1620
- }
1621
- }
1622
- else {
1623
- this.writeValue(undefined);
1624
- this.onSelect.next(undefined);
1625
- }
1626
- }
1627
- if (target && target.relatedTarget && target.relatedTarget.classList.contains('search-input-item')) {
1628
- return;
1629
- }
1630
- this.setTriggerRect();
1631
- this.opened = false;
1632
- };
1633
- CustomSelectComponent.prototype.ngAfterViewInit = function () {
1634
- var _this = this;
1635
- setTimeout(function () {
1636
- _this.setTriggerRect();
1637
- }, 300);
1638
- };
1639
- CustomSelectComponent.prototype.setTriggerRect = function () {
1640
- var _this = this;
1641
- setTimeout(function () {
1642
- var _a;
1643
- _this._triggerRect = (_a = _this.trigger) === null || _a === void 0 ? void 0 : _a.nativeElement.getBoundingClientRect();
1644
- });
1645
- };
1646
- CustomSelectComponent.prototype.selectItem = function (item) {
1647
- this.opened = false;
1648
- this.selectedItem = item;
1649
- this.edited = false;
1650
- this.selectedModelValue = item.text;
1651
- this.value = item.text;
1652
- this.searchText = '';
1653
- this.onSelect.next(item);
1654
- };
1655
- CustomSelectComponent.prototype.addItem = function () {
1656
- this.opened = false;
1657
- this.searchText = '';
1658
- this.onAddItem.next();
1659
- };
1660
- CustomSelectComponent.prototype.keyPress = function () {
1661
- this.setTriggerRect();
1662
- if (this.allowTyping) {
1663
- this.opened = false;
1664
- this.edited = true;
1665
- this.selectedModelValue = this.value;
1666
- this.searchText = '';
1667
- }
1668
- else {
1669
- this.edited = false;
1670
- return false;
1671
- }
1672
- };
1673
- CustomSelectComponent.prototype.clicked = function () {
1674
- this.setTriggerRect();
1675
- this.opened = true;
1676
- this.searchText = '';
1677
- };
1678
- Object.defineProperty(CustomSelectComponent.prototype, "value", {
1679
- get: function () {
1680
- return this.innerValue;
1681
- },
1682
- set: function (value) {
1683
- this.innerValue = value;
1684
- this.onChangeCallback(value);
1685
- this.onSelect.next(value);
1686
- },
1687
- enumerable: false,
1688
- configurable: true
1689
- });
1690
- CustomSelectComponent.prototype.writeValue = function (value) {
1691
- if (value !== this.innerValue) {
1692
- if (!this.selectedItem || !this.selectedItem.text || !value) {
1693
- this.selectedItem = new CustomSelectItem(null, value);
1694
- }
1695
- this.innerValue = value;
1696
- this.selectedModelValue = value;
1697
- }
1698
- };
1699
- CustomSelectComponent.prototype.registerOnChange = function (fn) {
1700
- this.onChangeCallback = fn;
1701
- };
1702
- CustomSelectComponent.prototype.registerOnTouched = function (fn) {
1703
- this.onTouchedCallback = fn;
1704
- };
1705
- CustomSelectComponent.prototype.setDisabledState = function (isDisabled) {
1706
- this.disabled = isDisabled;
1707
- };
1708
- CustomSelectComponent.prototype.arrowClick = function (event) {
1709
- var _a;
1710
- event.stopPropagation();
1711
- this.setTriggerRect();
1712
- if (this.opened) {
1713
- this.opened = false;
1714
- }
1715
- else {
1716
- this.opened = true;
1717
- this.searchText = '';
1718
- (_a = this.input) === null || _a === void 0 ? void 0 : _a.nativeElement.focus();
1719
- }
1720
- };
1721
- CustomSelectComponent.prototype.removeClick = function (event) {
1722
- event.stopPropagation();
1723
- this.opened = false;
1724
- this.searchText = '';
1725
- this.innerValue = null;
1726
- this.onUnSelect.next();
1727
- };
1728
- CustomSelectComponent.prototype.onDrop = function ($event) {
1729
- this.searchText = '';
1730
- if (!this.value) {
1731
- this.value = '';
1732
- }
1733
- this.value += "{{" + $event.data + "}}";
1734
- this.edited = true;
1735
- this.onBlur(undefined);
1736
- };
1737
- return CustomSelectComponent;
1738
- }());
1739
- CustomSelectComponent.ɵfac = function CustomSelectComponent_Factory(t) { return new (t || CustomSelectComponent)(i0.ɵɵdirectiveInject(i1$3.ScrollStrategyOptions)); };
1740
- CustomSelectComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CustomSelectComponent, selectors: [["custom-select"]], viewQuery: function CustomSelectComponent_Query(rf, ctx) {
1741
- if (rf & 1) {
1742
- i0.ɵɵviewQuery(_c0$4, true);
1743
- i0.ɵɵviewQuery(_c1$3, true, i0.ElementRef);
1744
- }
1745
- if (rf & 2) {
1746
- var _t;
1747
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.trigger = _t.first);
1748
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.input = _t.first);
1749
- }
1750
- }, hostVars: 1, hostBindings: function CustomSelectComponent_HostBindings(rf, ctx) {
1751
- if (rf & 1) {
1752
- i0.ɵɵlistener("blur", function CustomSelectComponent_blur_HostBindingHandler($event) { return ctx.onBlur($event.target); });
1753
- }
1754
- if (rf & 2) {
1755
- i0.ɵɵattribute("tabindex", ctx.tabindex);
1756
- }
1757
- }, inputs: { disabled: "disabled", items: "items", allowTyping: "allowTyping", allowRemove: "allowRemove", allowAddItem: "allowAddItem", addItemLabel: "addItemLabel", placeHolder: "placeHolder", findPlaceHolder: "findPlaceHolder", searchText: "searchText" }, outputs: { onSelect: "onSelect", onUnSelect: "onUnSelect", onAddItem: "onAddItem" }, features: [i0.ɵɵProvidersFeature([{
1758
- provide: i4.NG_VALUE_ACCESSOR,
1759
- useExisting: i0.forwardRef(function () { return CustomSelectComponent; }),
1760
- multi: true
1761
- }])], decls: 11, vars: 18, consts: [[1, "custom-select-input"], ["trigger", ""], ["cdkOverlayOrigin", "", "appearance", "fill", "autocomplete", "off", 1, "custom-select-component", 3, "ngClass"], ["origin", "cdkOverlayOrigin"], ["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, "fas", 3, "ngClass"], [1, "custom-select-component"], ["cdkConnectedOverlay", "", 3, "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOrigin", "cdkConnectedOverlayOpen", "cdkConnectedOverlayMinWidth"], ["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", "autocomplete", "off", 1, "search-input-item", 3, "placeholder", "ngModel", "ngModelChange", "blur"], ["class", "clickable", 3, "click", "mousedown", 4, "ngFor", "ngForOf"], ["class", "li-add", 3, "mousedown", "click", 4, "ngIf"], [1, "clickable", 3, "click", "mousedown"], [1, "li-add", 3, "mousedown", "click"], [1, "fa", "fa-plus-circle"]], template: function CustomSelectComponent_Template(rf, ctx) {
1762
- if (rf & 1) {
1763
- i0.ɵɵelementStart(0, "div", 0, 1);
1764
- i0.ɵɵelementStart(2, "mat-form-field", 2, 3);
1765
- i0.ɵɵelementStart(4, "input", 4, 5);
1766
- i0.ɵɵlistener("focus", function CustomSelectComponent_Template_input_focus_4_listener() { return ctx.opened = true; })("blur", function CustomSelectComponent_Template_input_blur_4_listener($event) { return ctx.onBlur($event); })("ngModelChange", function CustomSelectComponent_Template_input_ngModelChange_4_listener($event) { return ctx.value = $event; })("keyup", function CustomSelectComponent_Template_input_keyup_4_listener() { return ctx.keyPress(); })("click", function CustomSelectComponent_Template_input_click_4_listener() { return ctx.clicked(); })("dndDrop", function CustomSelectComponent_Template_input_dndDrop_4_listener($event) { return ctx.onDrop($event); });
1767
- i0.ɵɵelementEnd();
1768
- i0.ɵɵtemplate(6, CustomSelectComponent_span_6_Template, 2, 0, "span", 6);
1769
- i0.ɵɵelementStart(7, "span", 7);
1770
- i0.ɵɵlistener("click", function CustomSelectComponent_Template_span_click_7_listener($event) { return ctx.arrowClick($event); });
1771
- i0.ɵɵelement(8, "i", 8);
1772
- i0.ɵɵelementEnd();
1773
- i0.ɵɵelementEnd();
1774
- i0.ɵɵelementEnd();
1775
- i0.ɵɵelementStart(9, "div", 9);
1776
- i0.ɵɵtemplate(10, CustomSelectComponent_ng_template_10_Template, 7, 8, "ng-template", 10);
1777
- i0.ɵɵelementEnd();
1778
- }
1779
- if (rf & 2) {
1780
- var _r1 = i0.ɵɵreference(3);
1781
- i0.ɵɵadvance(2);
1782
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c2$1, ctx.opened));
1783
- i0.ɵɵadvance(2);
1784
- i0.ɵɵproperty("placeholder", ctx.placeHolder)("ngModel", ctx.value)("ngModelOptions", i0.ɵɵpureFunction0(14, _c3$1))("disabled", ctx.disabled);
1785
- i0.ɵɵadvance(2);
1786
- i0.ɵɵproperty("ngIf", ctx.allowRemove);
1787
- i0.ɵɵadvance(2);
1788
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(15, _c4, !ctx.opened, ctx.opened));
1789
- i0.ɵɵadvance(2);
1790
- i0.ɵɵproperty("cdkConnectedOverlayPanelClass", "custom-select-overlay-panel")("cdkConnectedOverlayScrollStrategy", ctx.scrollStrategy)("cdkConnectedOverlayOrigin", _r1)("cdkConnectedOverlayOpen", ctx.opened)("cdkConnectedOverlayMinWidth", ctx._triggerRect == null ? null : ctx._triggerRect.width);
1791
- }
1792
- }, directives: [i1.MatFormField, i1$3.CdkOverlayOrigin, i3.NgClass, i3$1.MatInput, i4.DefaultValueAccessor, i6$1.DndDropzoneDirective, i4.NgControlStatus, i4.NgModel, i3.NgIf, i1$3.CdkConnectedOverlay, i3.NgForOf], pipes: [i6.SelectFilterPipe], styles: [".custom-select-component[_ngcontent-%COMP%], .custom-select-input[_ngcontent-%COMP%], .custom-select-overlay-panel{cursor:pointer}.custom-select-component[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .custom-select-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .custom-select-overlay-panel input{background:#fff!important;height:37px}.custom-select-component[_ngcontent-%COMP%] .ul-ac[_ngcontent-%COMP%], .custom-select-input[_ngcontent-%COMP%] .ul-ac[_ngcontent-%COMP%], .custom-select-overlay-panel .ul-ac{background:#fff;border:1px solid #ccc;box-sizing:border-box;list-style:none;margin-top:-1px;max-height:16rem;overflow:auto;padding:0;position:relative;width:100%}.custom-select-component[_ngcontent-%COMP%] .ul-ac[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .custom-select-input[_ngcontent-%COMP%] .ul-ac[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .custom-select-overlay-panel .ul-ac li{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, .custom-select-input[_ngcontent-%COMP%] .ul-ac[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover, .custom-select-overlay-panel .ul-ac li:hover{background:#bbbcbc}.custom-select-component[_ngcontent-%COMP%] .ul-ac[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .mat-form-field-flex[_ngcontent-%COMP%], .custom-select-input[_ngcontent-%COMP%] .ul-ac[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .mat-form-field-flex[_ngcontent-%COMP%], .custom-select-overlay-panel .ul-ac li .mat-form-field-flex{height:37px!important}.custom-select-component[_ngcontent-%COMP%] .ul-ac[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .mat-form-field-flex[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .custom-select-input[_ngcontent-%COMP%] .ul-ac[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .mat-form-field-flex[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .custom-select-overlay-panel .ul-ac li .mat-form-field-flex input{height:auto}.custom-select-component[_ngcontent-%COMP%] .ul-ac[_ngcontent-%COMP%] .li-add[_ngcontent-%COMP%], .custom-select-input[_ngcontent-%COMP%] .ul-ac[_ngcontent-%COMP%] .li-add[_ngcontent-%COMP%], .custom-select-overlay-panel .ul-ac .li-add{border-top:1px solid #d3d3d3}.custom-select-component[_ngcontent-%COMP%] .ul-ac[_ngcontent-%COMP%] .li-add[_ngcontent-%COMP%] .fa[_ngcontent-%COMP%], .custom-select-input[_ngcontent-%COMP%] .ul-ac[_ngcontent-%COMP%] .li-add[_ngcontent-%COMP%] .fa[_ngcontent-%COMP%], .custom-select-overlay-panel .ul-ac .li-add .fa{color:#ff8f17;padding-right:5px}.custom-select-component[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%], .custom-select-input[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%], .custom-select-overlay-panel .selected{background-color:#898a8a!important}.custom-select-component[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%] .fa[_ngcontent-%COMP%], .custom-select-input[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%] .fa[_ngcontent-%COMP%], .custom-select-overlay-panel .selected .fa{color:#fff!important}.custom-select-component[_ngcontent-%COMP%] .remove-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .custom-select-input[_ngcontent-%COMP%] .remove-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .custom-select-overlay-panel .remove-icon i{color:red;margin-right:10px}.custom-select-component[_ngcontent-%COMP%] .open-icon[_ngcontent-%COMP%], .custom-select-input[_ngcontent-%COMP%] .open-icon[_ngcontent-%COMP%], .custom-select-overlay-panel .open-icon{cursor:pointer}.custom-select-component[_ngcontent-%COMP%] .open-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .custom-select-input[_ngcontent-%COMP%] .open-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .custom-select-overlay-panel .open-icon i{color:rgba(0,0,0,.54)}.custom-select-component[_ngcontent-%COMP%] .li-search[_ngcontent-%COMP%], .custom-select-input[_ngcontent-%COMP%] .li-search[_ngcontent-%COMP%], .custom-select-overlay-panel .li-search{border-bottom:1px solid #ccc!important;cursor:default!important}.custom-select-component[_ngcontent-%COMP%] .li-search[_ngcontent-%COMP%]:hover, .custom-select-input[_ngcontent-%COMP%] .li-search[_ngcontent-%COMP%]:hover, .custom-select-overlay-panel .li-search:hover{background:#fff!important}.custom-select-component[_ngcontent-%COMP%] .select-open[_ngcontent-%COMP%] .mat-form-field-flex[_ngcontent-%COMP%], .custom-select-input[_ngcontent-%COMP%] .select-open[_ngcontent-%COMP%] .mat-form-field-flex[_ngcontent-%COMP%], .custom-select-overlay-panel .select-open .mat-form-field-flex{border-radius:6px 6px 0 0!important}"] });
1793
- /*@__PURE__*/ (function () {
1794
- i0.ɵsetClassMetadata(CustomSelectComponent, [{
1795
- type: i0.Component,
1796
- args: [{
1797
- selector: 'custom-select',
1798
- templateUrl: 'custom-select.component.html',
1799
- styleUrls: ['custom-select.component.scss'],
1800
- providers: [{
1801
- provide: i4.NG_VALUE_ACCESSOR,
1802
- useExisting: i0.forwardRef(function () { return CustomSelectComponent; }),
1803
- multi: true
1804
- }]
1805
- }]
1806
- }], function () { return [{ type: i1$3.ScrollStrategyOptions }]; }, { disabled: [{
1807
- type: i0.Input
1808
- }], items: [{
1809
- type: i0.Input
1810
- }], allowTyping: [{
1811
- type: i0.Input
1812
- }], allowRemove: [{
1813
- type: i0.Input
1814
- }], allowAddItem: [{
1815
- type: i0.Input
1816
- }], addItemLabel: [{
1817
- type: i0.Input
1818
- }], placeHolder: [{
1819
- type: i0.Input
1820
- }], findPlaceHolder: [{
1821
- type: i0.Input
1822
- }], searchText: [{
1823
- type: i0.Input
1824
- }], onSelect: [{
1825
- type: i0.Output
1826
- }], onUnSelect: [{
1827
- type: i0.Output
1828
- }], onAddItem: [{
1829
- type: i0.Output
1830
- }], trigger: [{
1831
- type: i0.ViewChild,
1832
- args: ['trigger']
1833
- }], input: [{
1834
- type: i0.ViewChild,
1835
- args: ['input', { read: i0.ElementRef }]
1836
- }], tabindex: [{
1837
- type: i0.HostBinding,
1838
- args: ['attr.tabindex']
1839
- }], onBlur: [{
1840
- type: i0.HostListener,
1841
- args: ['blur', ['$event.target']]
1842
- }] });
1843
- })();
1844
-
1845
- function InputFileComponent_div_3_Template(rf, ctx) {
1846
- if (rf & 1) {
1847
- i0.ɵɵelementStart(0, "div", 6);
1848
- i0.ɵɵtext(1);
1849
- i0.ɵɵelementEnd();
1850
- }
1851
- if (rf & 2) {
1852
- var ctx_r1 = i0.ɵɵnextContext();
1853
- i0.ɵɵadvance(1);
1854
- i0.ɵɵtextInterpolate1(" ", ctx_r1.fileName || ctx_r1.emptyFileLabel, " ");
1855
- }
1856
- }
1857
- var _c0$5 = function (a0) { return { "font-size": a0 }; };
1858
- function InputFileComponent_icon_5_Template(rf, ctx) {
1859
- if (rf & 1) {
1860
- var _r5_1 = i0.ɵɵgetCurrentView();
1861
- i0.ɵɵelementStart(0, "icon", 7);
1862
- 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; });
1863
- i0.ɵɵelementEnd();
1864
- }
1865
- if (rf & 2) {
1866
- var ctx_r2 = i0.ɵɵnextContext();
1867
- i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(4, _c0$5, ctx_r2.iconFontSize))("title", ctx_r2.uploadTitle)("type", "primary")("name", "fas fa-upload");
1868
- }
1869
- }
1870
- function InputFileComponent_icon_6_Template(rf, ctx) {
1871
- if (rf & 1) {
1872
- var _r7_1 = i0.ɵɵgetCurrentView();
1873
- i0.ɵɵelementStart(0, "icon", 7);
1874
- 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; });
1875
- i0.ɵɵelementEnd();
1876
- }
1877
- if (rf & 2) {
1878
- var ctx_r3 = i0.ɵɵnextContext();
1879
- i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(4, _c0$5, ctx_r3.iconFontSize))("title", ctx_r3.modifyTitle)("type", "primary")("name", "fas fa-pencil-alt");
1880
- }
1881
- }
1882
- var InputFileComponent = /** @class */ (function () {
1883
- function InputFileComponent() {
1884
- this.fileFormData = new FormData();
1885
- this.canRemove = false;
1886
- this.canUpload = false;
1887
- this.uploadTitle = '';
1888
- this.canModify = false;
1889
- this.modifyTitle = '';
1890
- this.iconFontSize = '16px';
1891
- this.emptyFileLabel = '';
1892
- this.fileTypes = [];
1893
- this.onFileChanged = new i0.EventEmitter();
1894
- this.onInvalidFileType = new i0.EventEmitter();
1895
- this.fileUrl = false;
1896
- }
1897
- InputFileComponent.prototype.hasFile = function () {
1898
- return this.fileUrl;
1899
- };
1900
- InputFileComponent.prototype.canAction = function () {
1901
- return this.canRemove || this.canModify || this.canUpload;
1902
- };
1903
- InputFileComponent.prototype.fileChange = function (event) {
1904
- var _this = this;
1905
- var fileList = event.target.files;
1906
- if (fileList.length > 0) {
1907
- var file = fileList[0];
1908
- this.fileName = file.name;
1909
- if (!this.isFileTypeSupported(file.type)) {
1910
- this.onInvalidFileType.emit({ fileName: this.fileName, typesSupported: this.fileTypes, typeInvalid: file.type });
1911
- return;
1912
- }
1913
- this.fileFormData = new FormData();
1914
- this.fileFormData.append('file', file, file.name);
1915
- var reader = new FileReader();
1916
- reader.readAsDataURL(fileList[0]);
1917
- reader.onload = function (loadEvent) {
1918
- _this.fileUrl = true;
1919
- _this.emitChangeEvent();
1920
- };
1921
- }
1922
- };
1923
- InputFileComponent.prototype.isFileTypeSupported = function (fileType) {
1924
- return !this.fileTypes || this.fileTypes.includes(fileType);
1925
- };
1926
- InputFileComponent.prototype.emitChangeEvent = function () {
1927
- this.onFileChanged.emit({ fileUrl: this.fileUrl, fileFormData: this.fileFormData });
1928
- };
1929
- return InputFileComponent;
1930
- }());
1931
- InputFileComponent.ɵfac = function InputFileComponent_Factory(t) { return new (t || InputFileComponent)(); };
1932
- 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) {
1933
- if (rf & 1) {
1934
- i0.ɵɵelementStart(0, "input", 0, 1);
1935
- i0.ɵɵlistener("change", function InputFileComponent_Template_input_change_0_listener($event) { return ctx.fileChange($event); });
1936
- i0.ɵɵelementEnd();
1937
- i0.ɵɵelementStart(2, "div", 2);
1938
- i0.ɵɵtemplate(3, InputFileComponent_div_3_Template, 2, 1, "div", 3);
1939
- i0.ɵɵelementStart(4, "div", 4);
1940
- i0.ɵɵtemplate(5, InputFileComponent_icon_5_Template, 1, 6, "icon", 5);
1941
- i0.ɵɵtemplate(6, InputFileComponent_icon_6_Template, 1, 6, "icon", 5);
1942
- i0.ɵɵelementEnd();
1943
- i0.ɵɵelementEnd();
1944
- }
1945
- if (rf & 2) {
1946
- i0.ɵɵadvance(3);
1947
- i0.ɵɵproperty("ngIf", ctx.fileName || ctx.emptyFileLabel);
1948
- i0.ɵɵadvance(2);
1949
- i0.ɵɵproperty("ngIf", !ctx.hasFile() && ctx.canUpload);
1950
- i0.ɵɵadvance(1);
1951
- i0.ɵɵproperty("ngIf", ctx.hasFile() && ctx.canModify);
1952
- }
1953
- }, directives: [i3.NgIf, i3$2.IconComponent, i3.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 });
1954
- /*@__PURE__*/ (function () {
1955
- i0.ɵsetClassMetadata(InputFileComponent, [{
1956
- type: i0.Component,
1957
- args: [{
1958
- selector: 'input-file',
1959
- templateUrl: 'input-file.component.html',
1960
- styleUrls: ['input-file.component.scss'],
1961
- encapsulation: i0.ViewEncapsulation.None
1962
- }]
1963
- }], null, { fileFormData: [{
1964
- type: i0.Input
1965
- }], fileName: [{
1966
- type: i0.Input
1967
- }], canRemove: [{
1968
- type: i0.Input
1969
- }], canUpload: [{
1970
- type: i0.Input
1971
- }], uploadTitle: [{
1972
- type: i0.Input
1973
- }], canModify: [{
1974
- type: i0.Input
1975
- }], modifyTitle: [{
1976
- type: i0.Input
1977
- }], iconFontSize: [{
1978
- type: i0.Input
1979
- }], emptyFileLabel: [{
1980
- type: i0.Input
1981
- }], fileTypes: [{
1982
- type: i0.Input
1983
- }], onFileChanged: [{
1984
- type: i0.Output
1985
- }], onInvalidFileType: [{
1986
- type: i0.Output
1987
- }] });
1988
- })();
1989
-
1990
- /* tslint:disable */
1991
- var AceEditorComponent = /** @class */ (function () {
1992
- function AceEditorComponent(elementRef, zone) {
1993
- var _this = this;
1994
- this.zone = zone;
1995
- this.textChanged = new i0.EventEmitter();
1996
- this.textChange = new i0.EventEmitter();
1997
- this.style = {};
1998
- // @ts-ignore
1999
- this._options = {};
2000
- // @ts-ignore
2001
- this._theme = 'monokai';
2002
- // @ts-ignore
2003
- this._mode = 'html';
2004
- // @ts-ignore
2005
- this._autoUpdateContent = true;
2006
- // @ts-ignore
2007
- this._durationBeforeCallback = 0;
2008
- // @ts-ignore
2009
- this._text = '';
2010
- this._onChange = function (_) {
2011
- };
2012
- this._onTouched = function () {
2013
- };
2014
- var el = elementRef.nativeElement;
2015
- this.zone.runOutsideAngular(function () {
2016
- _this._editor = ace['edit'](el);
2017
- });
2018
- this._editor.$blockScrolling = Infinity;
2019
- }
2020
- AceEditorComponent.prototype.ngOnInit = function () {
2021
- this.init();
2022
- this.initEvents();
2023
- };
2024
- AceEditorComponent.prototype.ngOnDestroy = function () {
2025
- this._editor.destroy();
2026
- };
2027
- AceEditorComponent.prototype.init = function () {
2028
- this.setOptions(this._options || {});
2029
- this.setTheme(this._theme);
2030
- this.setMode(this._mode);
2031
- this.setReadOnly(this._readOnly);
2032
- };
2033
- AceEditorComponent.prototype.initEvents = function () {
2034
- var _this = this;
2035
- this._editor.on('change', function () { return _this.updateText(); });
2036
- this._editor.on('paste', function () { return _this.updateText(); });
2037
- };
2038
- AceEditorComponent.prototype.updateText = function () {
2039
- var _this = this;
2040
- var newVal = this._editor.getValue();
2041
- if (newVal === this.oldText) {
2042
- return;
2043
- }
2044
- if (!this._durationBeforeCallback) {
2045
- this._text = newVal;
2046
- this.zone.run(function () {
2047
- _this.textChange.emit(newVal);
2048
- _this.textChanged.emit(newVal);
2049
- });
2050
- this._onChange(newVal);
2051
- }
2052
- else {
2053
- if (this.timeoutSaving) {
2054
- clearTimeout(this.timeoutSaving);
2055
- }
2056
- this.timeoutSaving = setTimeout(function () {
2057
- _this._text = newVal;
2058
- _this.zone.run(function () {
2059
- _this.textChange.emit(newVal);
2060
- _this.textChanged.emit(newVal);
2061
- });
2062
- _this.timeoutSaving = null;
2063
- }, this._durationBeforeCallback);
2064
- }
2065
- this.oldText = newVal;
2066
- };
2067
- Object.defineProperty(AceEditorComponent.prototype, "options", {
2068
- set: function (options) {
2069
- this.setOptions(options);
2070
- },
2071
- enumerable: false,
2072
- configurable: true
2073
- });
2074
- AceEditorComponent.prototype.setOptions = function (options) {
2075
- this._options = options;
2076
- this._editor.setOptions(options || {});
2077
- };
2078
- Object.defineProperty(AceEditorComponent.prototype, "readOnly", {
2079
- set: function (readOnly) {
2080
- this.setReadOnly(readOnly);
2081
- },
2082
- enumerable: false,
2083
- configurable: true
2084
- });
2085
- AceEditorComponent.prototype.setReadOnly = function (readOnly) {
2086
- this._readOnly = readOnly;
2087
- this._editor.setReadOnly(readOnly);
2088
- };
2089
- Object.defineProperty(AceEditorComponent.prototype, "theme", {
2090
- set: function (theme) {
2091
- this.setTheme(theme);
2092
- },
2093
- enumerable: false,
2094
- configurable: true
2095
- });
2096
- AceEditorComponent.prototype.setTheme = function (theme) {
2097
- this._theme = theme;
2098
- this._editor.setTheme("ace/theme/" + theme);
2099
- };
2100
- Object.defineProperty(AceEditorComponent.prototype, "mode", {
2101
- set: function (mode) {
2102
- this.setMode(mode);
2103
- },
2104
- enumerable: false,
2105
- configurable: true
2106
- });
2107
- AceEditorComponent.prototype.setMode = function (mode) {
2108
- this._mode = mode;
2109
- if (typeof this._mode === 'object') {
2110
- this._editor.getSession().setMode(this._mode);
2111
- }
2112
- else {
2113
- this._editor.getSession().setMode("ace/mode/" + this._mode);
2114
- }
2115
- };
2116
- Object.defineProperty(AceEditorComponent.prototype, "value", {
2117
- // @ts-ignore
2118
- get: function () {
2119
- return this.text;
2120
- },
2121
- // @ts-ignore
2122
- set: function (value) {
2123
- this.setText(value);
2124
- },
2125
- enumerable: false,
2126
- configurable: true
2127
- });
2128
- AceEditorComponent.prototype.writeValue = function (value) {
2129
- this.setText(value);
2130
- };
2131
- AceEditorComponent.prototype.registerOnChange = function (fn) {
2132
- this._onChange = fn;
2133
- };
2134
- AceEditorComponent.prototype.registerOnTouched = function (fn) {
2135
- this._onTouched = fn;
2136
- };
2137
- Object.defineProperty(AceEditorComponent.prototype, "text", {
2138
- get: function () {
2139
- return this._text;
2140
- },
2141
- set: function (text) {
2142
- this.setText(text);
2143
- },
2144
- enumerable: false,
2145
- configurable: true
2146
- });
2147
- AceEditorComponent.prototype.setText = function (text) {
2148
- if (text === null || text === undefined) {
2149
- text = '';
2150
- }
2151
- if (this._text !== text && this._autoUpdateContent) {
2152
- this._text = text;
2153
- this._editor.setValue(text);
2154
- this._onChange(text);
2155
- this._editor.clearSelection();
2156
- }
2157
- };
2158
- Object.defineProperty(AceEditorComponent.prototype, "autoUpdateContent", {
2159
- set: function (status) {
2160
- this.setAutoUpdateContent(status);
2161
- },
2162
- enumerable: false,
2163
- configurable: true
2164
- });
2165
- AceEditorComponent.prototype.setAutoUpdateContent = function (status) {
2166
- this._autoUpdateContent = status;
2167
- };
2168
- Object.defineProperty(AceEditorComponent.prototype, "durationBeforeCallback", {
2169
- set: function (num) {
2170
- this.setDurationBeforeCallback(num);
2171
- },
2172
- enumerable: false,
2173
- configurable: true
2174
- });
2175
- AceEditorComponent.prototype.setDurationBeforeCallback = function (num) {
2176
- this._durationBeforeCallback = num;
2177
- };
2178
- AceEditorComponent.prototype.getEditor = function () {
2179
- return this._editor;
2180
- };
2181
- return AceEditorComponent;
2182
- }());
2183
- AceEditorComponent.ɵfac = function AceEditorComponent_Factory(t) { return new (t || AceEditorComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.NgZone)); };
2184
- AceEditorComponent.ɵcmp = i0.ɵɵdefineComponent({ type: AceEditorComponent, selectors: [["ace-editor"]], inputs: { style: "style", options: "options", readOnly: "readOnly", theme: "theme", mode: "mode", value: "value", text: "text", autoUpdateContent: "autoUpdateContent", durationBeforeCallback: "durationBeforeCallback" }, outputs: { textChanged: "textChanged", textChange: "textChange" }, features: [i0.ɵɵProvidersFeature([{
2185
- provide: i4.NG_VALUE_ACCESSOR,
2186
- useExisting: i0.forwardRef(function () { return AceEditorComponent; }),
2187
- multi: true
2188
- }])], decls: 0, vars: 0, template: function AceEditorComponent_Template(rf, ctx) { }, styles: ["[_nghost-%COMP%] { display:block;width:100%; }"] });
2189
- /*@__PURE__*/ (function () {
2190
- i0.ɵsetClassMetadata(AceEditorComponent, [{
2191
- type: i0.Component,
2192
- args: [{
2193
- selector: 'ace-editor',
2194
- template: '',
2195
- styles: [':host { display:block;width:100%; }'],
2196
- providers: [{
2197
- provide: i4.NG_VALUE_ACCESSOR,
2198
- useExisting: i0.forwardRef(function () { return AceEditorComponent; }),
2199
- multi: true
2200
- }]
2201
- }]
2202
- }], function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }]; }, { textChanged: [{
2203
- type: i0.Output
2204
- }], textChange: [{
2205
- type: i0.Output
2206
- }], style: [{
2207
- type: i0.Input
2208
- }], options: [{
2209
- type: i0.Input
2210
- }], readOnly: [{
2211
- type: i0.Input
2212
- }], theme: [{
2213
- type: i0.Input
2214
- }], mode: [{
2215
- type: i0.Input
2216
- }], value: [{
2217
- type: i0.Input
2218
- }], text: [{
2219
- type: i0.Input
2220
- }], autoUpdateContent: [{
2221
- type: i0.Input
2222
- }], durationBeforeCallback: [{
2223
- type: i0.Input
2224
- }] });
2225
- })();
2226
-
2227
- /* tslint:disable */
2228
- var AceEditorDirective = /** @class */ (function () {
2229
- function AceEditorDirective(elementRef, zone) {
2230
- var _this = this;
2231
- this.zone = zone;
2232
- this.textChanged = new i0.EventEmitter();
2233
- this.textChange = new i0.EventEmitter();
2234
- this._options = {};
2235
- this._readOnly = false;
2236
- this._theme = 'monokai';
2237
- this._mode = 'html';
2238
- this._autoUpdateContent = true;
2239
- this._durationBeforeCallback = 0;
2240
- this._text = '';
2241
- var el = elementRef.nativeElement;
2242
- this.zone.runOutsideAngular(function () {
2243
- _this.editor = ace['edit'](el);
2244
- });
2245
- this.editor.$blockScrolling = Infinity;
2246
- }
2247
- AceEditorDirective.prototype.ngOnInit = function () {
2248
- this.init();
2249
- this.initEvents();
2250
- };
2251
- AceEditorDirective.prototype.ngOnDestroy = function () {
2252
- this.editor.destroy();
2253
- };
2254
- AceEditorDirective.prototype.init = function () {
2255
- this.editor.setOptions(this._options || {});
2256
- this.editor.setTheme("ace/theme/" + this._theme);
2257
- this.setMode(this._mode);
2258
- this.editor.setReadOnly(this._readOnly);
2259
- };
2260
- AceEditorDirective.prototype.initEvents = function () {
2261
- var _this = this;
2262
- this.editor.on('change', function () { return _this.updateText(); });
2263
- this.editor.on('paste', function () { return _this.updateText(); });
2264
- };
2265
- AceEditorDirective.prototype.updateText = function () {
2266
- var _this = this;
2267
- var newVal = this.editor.getValue();
2268
- if (newVal === this.oldText) {
2269
- return;
2270
- }
2271
- if (!this._durationBeforeCallback) {
2272
- this._text = newVal;
2273
- this.zone.run(function () {
2274
- _this.textChange.emit(newVal);
2275
- _this.textChanged.emit(newVal);
2276
- });
2277
- }
2278
- else {
2279
- if (this.timeoutSaving != null) {
2280
- clearTimeout(this.timeoutSaving);
2281
- }
2282
- this.timeoutSaving = setTimeout(function () {
2283
- _this._text = newVal;
2284
- _this.zone.run(function () {
2285
- _this.textChange.emit(newVal);
2286
- _this.textChanged.emit(newVal);
2287
- });
2288
- _this.timeoutSaving = null;
2289
- }, this._durationBeforeCallback);
2290
- }
2291
- this.oldText = newVal;
2292
- };
2293
- Object.defineProperty(AceEditorDirective.prototype, "options", {
2294
- set: function (options) {
2295
- this._options = options;
2296
- this.editor.setOptions(options || {});
2297
- },
2298
- enumerable: false,
2299
- configurable: true
2300
- });
2301
- Object.defineProperty(AceEditorDirective.prototype, "readOnly", {
2302
- set: function (readOnly) {
2303
- this._readOnly = readOnly;
2304
- this.editor.setReadOnly(readOnly);
2305
- },
2306
- enumerable: false,
2307
- configurable: true
2308
- });
2309
- Object.defineProperty(AceEditorDirective.prototype, "theme", {
2310
- set: function (theme) {
2311
- this._theme = theme;
2312
- this.editor.setTheme("ace/theme/" + theme);
2313
- },
2314
- enumerable: false,
2315
- configurable: true
2316
- });
2317
- Object.defineProperty(AceEditorDirective.prototype, "mode", {
2318
- set: function (mode) {
2319
- this.setMode(mode);
2320
- },
2321
- enumerable: false,
2322
- configurable: true
2323
- });
2324
- AceEditorDirective.prototype.setMode = function (mode) {
2325
- this._mode = mode;
2326
- if (typeof this._mode === 'object') {
2327
- this.editor.getSession().setMode(this._mode);
2328
- }
2329
- else {
2330
- this.editor.getSession().setMode("ace/mode/" + this._mode);
2331
- }
2332
- };
2333
- Object.defineProperty(AceEditorDirective.prototype, "text", {
2334
- // @ts-ignore
2335
- get: function () {
2336
- return this._text;
2337
- },
2338
- set: function (text) {
2339
- this.setText(text);
2340
- },
2341
- enumerable: false,
2342
- configurable: true
2343
- });
2344
- AceEditorDirective.prototype.setText = function (text) {
2345
- if (this._text !== text) {
2346
- if (text === null || text === undefined) {
2347
- text = '';
2348
- }
2349
- if (this._autoUpdateContent) {
2350
- this._text = text;
2351
- this.editor.setValue(text);
2352
- this.editor.clearSelection();
2353
- }
2354
- }
2355
- };
2356
- Object.defineProperty(AceEditorDirective.prototype, "autoUpdateContent", {
2357
- set: function (status) {
2358
- this._autoUpdateContent = status;
2359
- },
2360
- enumerable: false,
2361
- configurable: true
2362
- });
2363
- Object.defineProperty(AceEditorDirective.prototype, "durationBeforeCallback", {
2364
- set: function (num) {
2365
- this.setDurationBeforeCallback(num);
2366
- },
2367
- enumerable: false,
2368
- configurable: true
2369
- });
2370
- AceEditorDirective.prototype.setDurationBeforeCallback = function (num) {
2371
- this._durationBeforeCallback = num;
2372
- };
2373
- Object.defineProperty(AceEditorDirective.prototype, "aceEditor", {
2374
- get: function () {
2375
- return this.editor;
2376
- },
2377
- enumerable: false,
2378
- configurable: true
2379
- });
2380
- return AceEditorDirective;
2381
- }());
2382
- AceEditorDirective.ɵfac = function AceEditorDirective_Factory(t) { return new (t || AceEditorDirective)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.NgZone)); };
2383
- AceEditorDirective.ɵdir = i0.ɵɵdefineDirective({ type: AceEditorDirective, selectors: [["", "ace-editor", ""]], inputs: { options: "options", readOnly: "readOnly", theme: "theme", mode: "mode", text: "text", autoUpdateContent: "autoUpdateContent", durationBeforeCallback: "durationBeforeCallback" }, outputs: { textChanged: "textChanged", textChange: "textChange" } });
2384
- /*@__PURE__*/ (function () {
2385
- i0.ɵsetClassMetadata(AceEditorDirective, [{
2386
- type: i0.Directive,
2387
- args: [{
2388
- selector: '[ace-editor]'
2389
- }]
2390
- }], function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }]; }, { textChanged: [{
2391
- type: i0.Output
2392
- }], textChange: [{
2393
- type: i0.Output
2394
- }], options: [{
2395
- type: i0.Input
2396
- }], readOnly: [{
2397
- type: i0.Input
2398
- }], theme: [{
2399
- type: i0.Input
2400
- }], mode: [{
2401
- type: i0.Input
2402
- }], text: [{
2403
- type: i0.Input
2404
- }], autoUpdateContent: [{
2405
- type: i0.Input
2406
- }], durationBeforeCallback: [{
2407
- type: i0.Input
2408
- }] });
2409
- })();
2410
-
2411
- function InputNumberComponent_mat_label_1_Template(rf, ctx) {
2412
- if (rf & 1) {
2413
- i0.ɵɵelementStart(0, "mat-label");
2414
- i0.ɵɵtext(1);
2415
- i0.ɵɵelementEnd();
2416
- }
2417
- if (rf & 2) {
2418
- var ctx_r0 = i0.ɵɵnextContext();
2419
- i0.ɵɵadvance(1);
2420
- i0.ɵɵtextInterpolate(ctx_r0.label);
2421
- }
2422
- }
2423
- function InputNumberComponent_mat_icon_2_Template(rf, ctx) {
2424
- if (rf & 1) {
2425
- var _r4_1 = i0.ɵɵgetCurrentView();
2426
- i0.ɵɵelementStart(0, "mat-icon", 5);
2427
- i0.ɵɵlistener("click", function InputNumberComponent_mat_icon_2_Template_mat_icon_click_0_listener() { i0.ɵɵrestoreView(_r4_1); var ctx_r3 = i0.ɵɵnextContext(); return ctx_r3.prefixClick(); });
2428
- i0.ɵɵtext(1);
2429
- i0.ɵɵelementEnd();
2430
- }
2431
- if (rf & 2) {
2432
- var ctx_r1 = i0.ɵɵnextContext();
2433
- i0.ɵɵadvance(1);
2434
- i0.ɵɵtextInterpolate(ctx_r1.iconPrefix);
2435
- }
2436
- }
2437
- function InputNumberComponent_mat_icon_4_Template(rf, ctx) {
2438
- if (rf & 1) {
2439
- var _r6_1 = i0.ɵɵgetCurrentView();
2440
- i0.ɵɵelementStart(0, "mat-icon", 6);
2441
- i0.ɵɵlistener("click", function InputNumberComponent_mat_icon_4_Template_mat_icon_click_0_listener() { i0.ɵɵrestoreView(_r6_1); var ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.suffixClick(); });
2442
- i0.ɵɵtext(1);
2443
- i0.ɵɵelementEnd();
2444
- }
2445
- if (rf & 2) {
2446
- var ctx_r2 = i0.ɵɵnextContext();
2447
- i0.ɵɵadvance(1);
2448
- i0.ɵɵtextInterpolate(ctx_r2.iconSuffix);
2449
- }
2450
- }
2451
- var InputNumberComponent = /** @class */ (function (_super) {
2452
- __extends(InputNumberComponent, _super);
2453
- function InputNumberComponent() {
2454
- var _this = _super.apply(this, __spread(arguments)) || this;
2455
- _this.label = '';
2456
- _this.disabled = false;
2457
- _this.iconSuffix = '';
2458
- _this.iconPrefix = '';
2459
- _this.autoComplete = 'on';
2460
- _this.suffixIconClick = new i0.EventEmitter();
2461
- _this.prefixIconClick = new i0.EventEmitter();
2462
- return _this;
2463
- }
2464
- InputNumberComponent.prototype.onKeyDown = function (event) {
2465
- if (event.which === 32) {
2466
- event.target.value += ' ';
2467
- }
2468
- event.stopPropagation();
2469
- };
2470
- InputNumberComponent.prototype.prefixClick = function () {
2471
- this.prefixIconClick.emit(true);
2472
- };
2473
- InputNumberComponent.prototype.suffixClick = function () {
2474
- this.suffixIconClick.emit(true);
2475
- };
2476
- return InputNumberComponent;
2477
- }(ValueAccessorBase));
2478
- InputNumberComponent.ɵfac = function InputNumberComponent_Factory(t) { return ɵInputNumberComponent_BaseFactory(t || InputNumberComponent); };
2479
- InputNumberComponent.ɵcmp = i0.ɵɵdefineComponent({ type: InputNumberComponent, selectors: [["input-number"]], inputs: { label: "label", disabled: "disabled", iconSuffix: "iconSuffix", iconPrefix: "iconPrefix", autoComplete: "autoComplete" }, outputs: { suffixIconClick: "suffixIconClick", prefixIconClick: "prefixIconClick" }, features: [i0.ɵɵProvidersFeature([{
2480
- provide: i4.NG_VALUE_ACCESSOR,
2481
- useExisting: i0.forwardRef(function () { return InputNumberComponent; }),
2482
- multi: true
2483
- }]), i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 6, consts: [["appearance", "fill", 1, "apipass-input-text", "label-input"], [4, "ngIf"], ["class", "mat-icon-prefix", "matPrefix", "", 3, "click", 4, "ngIf"], ["matInput", "", "type", "number", 1, "input-text", 3, "ngModel", "disabled", "autocomplete", "ngModelChange"], ["class", "mat-icon-suffix", "matSuffix", "", 3, "click", 4, "ngIf"], ["matPrefix", "", 1, "mat-icon-prefix", 3, "click"], ["matSuffix", "", 1, "mat-icon-suffix", 3, "click"]], template: function InputNumberComponent_Template(rf, ctx) {
2484
- if (rf & 1) {
2485
- i0.ɵɵelementStart(0, "mat-form-field", 0);
2486
- i0.ɵɵtemplate(1, InputNumberComponent_mat_label_1_Template, 2, 1, "mat-label", 1);
2487
- i0.ɵɵtemplate(2, InputNumberComponent_mat_icon_2_Template, 2, 1, "mat-icon", 2);
2488
- i0.ɵɵelementStart(3, "input", 3);
2489
- i0.ɵɵlistener("ngModelChange", function InputNumberComponent_Template_input_ngModelChange_3_listener($event) { return ctx.value = $event; });
2490
- i0.ɵɵelementEnd();
2491
- i0.ɵɵtemplate(4, InputNumberComponent_mat_icon_4_Template, 2, 1, "mat-icon", 4);
2492
- i0.ɵɵelementEnd();
2493
- }
2494
- if (rf & 2) {
2495
- i0.ɵɵadvance(1);
2496
- i0.ɵɵproperty("ngIf", ctx.label);
2497
- i0.ɵɵadvance(1);
2498
- i0.ɵɵproperty("ngIf", ctx.iconPrefix);
2499
- i0.ɵɵadvance(1);
2500
- i0.ɵɵproperty("ngModel", ctx.value)("disabled", ctx.disabled)("autocomplete", ctx.autoComplete);
2501
- i0.ɵɵadvance(1);
2502
- i0.ɵɵproperty("ngIf", ctx.iconSuffix);
2503
- }
2504
- }, directives: [i1.MatFormField, i3.NgIf, i3$1.MatInput, i4.NumberValueAccessor, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgModel, i1.MatLabel, i5$2.MatIcon, i1.MatPrefix, 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-left:5px}.apipass-input-text .mat-icon-prefix{margin-right:5px}"], encapsulation: 2 });
2505
- var ɵInputNumberComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(InputNumberComponent);
2506
- /*@__PURE__*/ (function () {
2507
- i0.ɵsetClassMetadata(InputNumberComponent, [{
2508
- type: i0.Component,
2509
- args: [{
2510
- selector: 'input-number',
2511
- templateUrl: 'input-number.component.html',
2512
- styleUrls: ['input-number.component.scss'],
2513
- providers: [{
2514
- provide: i4.NG_VALUE_ACCESSOR,
2515
- useExisting: i0.forwardRef(function () { return InputNumberComponent; }),
2516
- multi: true
2517
- }],
2518
- encapsulation: i0.ViewEncapsulation.None
2519
- }]
2520
- }], null, { label: [{
2521
- type: i0.Input
2522
- }], disabled: [{
2523
- type: i0.Input
2524
- }], iconSuffix: [{
2525
- type: i0.Input
2526
- }], iconPrefix: [{
2527
- type: i0.Input
2528
- }], autoComplete: [{
2529
- type: i0.Input
2530
- }], suffixIconClick: [{
2531
- type: i0.Output
2532
- }], prefixIconClick: [{
2533
- type: i0.Output
2534
- }] });
2535
- })();
2536
-
2537
- var InputBooleanComponent = /** @class */ (function (_super) {
2538
- __extends(InputBooleanComponent, _super);
2539
- function InputBooleanComponent() {
2540
- var _this = _super.apply(this, __spread(arguments)) || this;
2541
- _this.trueLabel = '';
2542
- _this.trueIconPrefix = '';
2543
- _this.trueIconSuffix = '';
2544
- _this.falseLabel = '';
2545
- _this.falseIconPrefix = '';
2546
- _this.falseIconSuffix = '';
2547
- _this.disabled = false;
2548
- return _this;
2549
- }
2550
- InputBooleanComponent.prototype.trueClick = function () {
2551
- if (!this.disabled && !this.value) {
2552
- this.value = true;
2553
- }
2554
- };
2555
- InputBooleanComponent.prototype.falseClick = function () {
2556
- if (!this.disabled && this.value) {
2557
- this.value = false;
2558
- }
2559
- };
2560
- return InputBooleanComponent;
2561
- }(ValueAccessorBase));
2562
- InputBooleanComponent.ɵfac = function InputBooleanComponent_Factory(t) { return ɵInputBooleanComponent_BaseFactory(t || InputBooleanComponent); };
2563
- InputBooleanComponent.ɵcmp = i0.ɵɵdefineComponent({ type: InputBooleanComponent, selectors: [["input-boolean"]], inputs: { trueLabel: "trueLabel", trueIconPrefix: "trueIconPrefix", trueIconSuffix: "trueIconSuffix", falseLabel: "falseLabel", falseIconPrefix: "falseIconPrefix", falseIconSuffix: "falseIconSuffix", disabled: "disabled" }, features: [i0.ɵɵProvidersFeature([{
2564
- provide: i4.NG_VALUE_ACCESSOR,
2565
- useExisting: i0.forwardRef(function () { return InputBooleanComponent; }),
2566
- multi: true
2567
- }]), i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 10, consts: [[1, "input-boolean"], [1, "btn-true", 3, "selected", "label", "icon", "suffixIcon", "btnDisabled", "onClick"], [1, "btn-false", 3, "selected", "label", "icon", "suffixIcon", "btnDisabled", "onClick"]], template: function InputBooleanComponent_Template(rf, ctx) {
2568
- if (rf & 1) {
2569
- i0.ɵɵelementStart(0, "div", 0);
2570
- i0.ɵɵelementStart(1, "primary-button", 1);
2571
- i0.ɵɵlistener("onClick", function InputBooleanComponent_Template_primary_button_onClick_1_listener() { return ctx.trueClick(); });
2572
- i0.ɵɵelementEnd();
2573
- i0.ɵɵelementStart(2, "primary-button", 2);
2574
- i0.ɵɵlistener("onClick", function InputBooleanComponent_Template_primary_button_onClick_2_listener() { return ctx.falseClick(); });
2575
- i0.ɵɵelementEnd();
2576
- i0.ɵɵelementEnd();
2577
- }
2578
- if (rf & 2) {
2579
- i0.ɵɵadvance(1);
2580
- i0.ɵɵproperty("selected", ctx.value === true)("label", ctx.trueLabel)("icon", ctx.trueIconPrefix)("suffixIcon", ctx.trueIconSuffix)("btnDisabled", ctx.disabled);
2581
- i0.ɵɵadvance(1);
2582
- i0.ɵɵproperty("selected", ctx.value === false || ctx.value === undefined)("label", ctx.falseLabel)("icon", ctx.falseIconPrefix)("suffixIcon", ctx.falseIconSuffix)("btnDisabled", ctx.disabled);
2583
- }
2584
- }, directives: [i1$4.PrimaryButtonComponent], styles: [".input-boolean{display:flex;flex-wrap:wrap;width:100%}.input-boolean primary-button:first-child{margin-right:5px}.input-boolean primary-button button:not(.selected){background:#fff;border:1px solid var(--color-fonts-tertiary);color:var(--color-fonts-tertiary);cursor:pointer}.input-boolean primary-button button:not(.selected):hover{color:#fff}.input-boolean primary-button button:not(.selected).mat-button-disabled{color:var(--color-fonts-tertiary)!important;cursor:default!important;pointer-events:none!important}.input-boolean primary-button button.selected{cursor:default;pointer-events:none}.input-boolean primary-button button.selected,.input-boolean primary-button button.selected:hover{background:#fff;border:1px solid var(--color-primary);color:var(--color-primary)}.input-boolean primary-button button.selected.mat-button-disabled{background:var(--color-fonts-tertiary);color:#fff!important;cursor:default!important;pointer-events:none!important}"], encapsulation: 2 });
2585
- var ɵInputBooleanComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(InputBooleanComponent);
2586
- /*@__PURE__*/ (function () {
2587
- i0.ɵsetClassMetadata(InputBooleanComponent, [{
2588
- type: i0.Component,
2589
- args: [{
2590
- selector: 'input-boolean',
2591
- templateUrl: 'input-boolean.component.html',
2592
- styleUrls: ['input-boolean.component.scss'],
2593
- providers: [{
2594
- provide: i4.NG_VALUE_ACCESSOR,
2595
- useExisting: i0.forwardRef(function () { return InputBooleanComponent; }),
2596
- multi: true
2597
- }],
2598
- encapsulation: i0.ViewEncapsulation.None
2599
- }]
2600
- }], null, { trueLabel: [{
2601
- type: i0.Input
2602
- }], trueIconPrefix: [{
2603
- type: i0.Input
2604
- }], trueIconSuffix: [{
2605
- type: i0.Input
2606
- }], falseLabel: [{
2607
- type: i0.Input
2608
- }], falseIconPrefix: [{
2609
- type: i0.Input
2610
- }], falseIconSuffix: [{
2611
- type: i0.Input
2612
- }], disabled: [{
2613
- type: i0.Input
2614
- }] });
2615
- })();
2616
-
2617
- var DebouceInputDirective = /** @class */ (function () {
2618
- function DebouceInputDirective(ngModel) {
2619
- var _this = this;
2620
- this.ngModel = ngModel;
2621
- this.debounceTime = 500;
2622
- this.onDebounceTriggered = new i0.EventEmitter();
2623
- this.subscription = this.ngModel.control.valueChanges.pipe(operators.skip(1), operators.distinctUntilChanged(), operators.debounceTime(this.debounceTime)).subscribe(function (value) { return _this.onDebounceTriggered.emit(value); });
2624
- }
2625
- DebouceInputDirective.prototype.ngOnDestroy = function () {
2626
- if (this.subscription) {
2627
- this.subscription.unsubscribe();
2628
- }
2629
- };
2630
- return DebouceInputDirective;
2631
- }());
2632
- DebouceInputDirective.ɵfac = function DebouceInputDirective_Factory(t) { return new (t || DebouceInputDirective)(i0.ɵɵdirectiveInject(i4.NgModel)); };
2633
- DebouceInputDirective.ɵdir = i0.ɵɵdefineDirective({ type: DebouceInputDirective, selectors: [["", "debounceInput", ""]], inputs: { debounceTime: "debounceTime" }, outputs: { onDebounceTriggered: "onDebounceTriggered" } });
2634
- /*@__PURE__*/ (function () {
2635
- i0.ɵsetClassMetadata(DebouceInputDirective, [{
2636
- type: i0.Directive,
2637
- args: [{
2638
- selector: '[debounceInput]',
2639
- }]
2640
- }], function () { return [{ type: i4.NgModel }]; }, { debounceTime: [{
2641
- type: i0.Input
2642
- }], onDebounceTriggered: [{
2643
- type: i0.Output
2644
- }] });
2645
- })();
2646
-
2647
- var _c0$6 = ["trigger"];
2648
- var _c1$4 = ["input"];
2649
- function SelectInterpolationComponent_ng_template_9_li_4_Template(rf, ctx) {
2650
- if (rf & 1) {
2651
- var _r7_1 = i0.ɵɵgetCurrentView();
2652
- i0.ɵɵelementStart(0, "li", 15);
2653
- i0.ɵɵlistener("click", function SelectInterpolationComponent_ng_template_9_li_4_Template_li_click_0_listener() { i0.ɵɵrestoreView(_r7_1); var i_r5 = ctx.$implicit; var ctx_r6 = i0.ɵɵnextContext(2); return ctx_r6.selectItem(i_r5); })("mousedown", function SelectInterpolationComponent_ng_template_9_li_4_Template_li_mousedown_0_listener() { i0.ɵɵrestoreView(_r7_1); var i_r5 = ctx.$implicit; var ctx_r8 = i0.ɵɵnextContext(2); return ctx_r8.selectItem(i_r5); });
2654
- i0.ɵɵtext(1);
2655
- i0.ɵɵelementEnd();
2656
- }
2657
- if (rf & 2) {
2658
- var i_r5 = ctx.$implicit;
2659
- i0.ɵɵadvance(1);
2660
- i0.ɵɵtextInterpolate1(" ", i_r5.text, " ");
2661
- }
2662
- }
2663
- function SelectInterpolationComponent_ng_template_9_Template(rf, ctx) {
2664
- if (rf & 1) {
2665
- var _r10_1 = i0.ɵɵgetCurrentView();
2666
- i0.ɵɵelementStart(0, "ul", 10);
2667
- i0.ɵɵelementStart(1, "li", 11);
2668
- i0.ɵɵelementStart(2, "mat-form-field", 12);
2669
- i0.ɵɵelementStart(3, "input", 13);
2670
- i0.ɵɵlistener("ngModelChange", function SelectInterpolationComponent_ng_template_9_Template_input_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r10_1); var ctx_r9 = i0.ɵɵnextContext(); return ctx_r9.searchText = $event; })("blur", function SelectInterpolationComponent_ng_template_9_Template_input_blur_3_listener($event) { i0.ɵɵrestoreView(_r10_1); var ctx_r11 = i0.ɵɵnextContext(); return ctx_r11.onBlur($event); });
2671
- i0.ɵɵelementEnd();
2672
- i0.ɵɵelementEnd();
2673
- i0.ɵɵelementEnd();
2674
- i0.ɵɵtemplate(4, SelectInterpolationComponent_ng_template_9_li_4_Template, 2, 1, "li", 14);
2675
- i0.ɵɵpipe(5, "selectFilter");
2676
- i0.ɵɵelementEnd();
2677
- }
2678
- if (rf & 2) {
2679
- var ctx_r3 = i0.ɵɵnextContext();
2680
- i0.ɵɵadvance(3);
2681
- i0.ɵɵproperty("placeholder", ctx_r3.findPlaceHolder)("ngModel", ctx_r3.searchText);
2682
- i0.ɵɵadvance(1);
2683
- i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind3(5, 3, ctx_r3.items, ctx_r3.searchText, "text"));
2684
- }
2685
- }
2686
- var _c2$2 = function (a0) { return { "select-open": a0 }; };
2687
- var _c3$2 = function () { return { standalone: true }; };
2688
- var _c4$1 = function (a0, a1) { return { "fa-caret-down": a0, "fa-caret-up": a1 }; };
2689
- var SelectInterpolationComponent = /** @class */ (function () {
2690
- function SelectInterpolationComponent(sso) {
2691
- this.sso = sso;
2692
- this.edited = false;
2693
- this.selectedItemLabel = '';
2694
- this.searchText = '';
2695
- this.opened = false;
2696
- this.disabled = false;
2697
- this.items = [];
2698
- this.placeHolder = 'Select';
2699
- this.findPlaceHolder = 'Find item';
2700
- this.onSelect = new i0.EventEmitter();
2701
- this.tabindex = '0';
2702
- this.onTouchedCallback = function () {
2703
- };
2704
- this.onChangeCallback = function () {
2705
- };
2706
- this.scrollStrategy = this.sso.block();
2707
- }
2708
- SelectInterpolationComponent.prototype.onBlur = function (target) {
2709
- if (this.selectedItemLabel) {
2710
- if (this.edited) {
2711
- this.writeValue(this.selectedItemLabel);
2712
- this.selectedItem = new CustomSelectItem(this.selectedItemLabel, this.selectedItemLabel);
2713
- this.onSelect.next(this.selectedItem);
2714
- }
2715
- }
2716
- else {
2717
- this.writeValue(undefined);
2718
- this.onSelect.next(undefined);
2719
- }
2720
- if (target && target.relatedTarget && target.relatedTarget.classList.contains('search-input-item')) {
2721
- return;
2722
- }
2723
- this.setTriggerRect();
2724
- this.opened = false;
2725
- };
2726
- SelectInterpolationComponent.prototype.ngAfterViewInit = function () {
2727
- var _this = this;
2728
- setTimeout(function () {
2729
- _this.setInitialState();
2730
- _this.setTriggerRect();
2731
- }, 300);
2732
- };
2733
- SelectInterpolationComponent.prototype.setInitialState = function () {
2734
- var _this = this;
2735
- setTimeout(function () {
2736
- if (_this.value && _this.items) {
2737
- var selectedItem = _this.items.find(function (item) { return item.id === _this.value; });
2738
- _this.selectedItemLabel = (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.text) || _this.value;
2739
- }
2740
- });
2741
- };
2742
- SelectInterpolationComponent.prototype.setTriggerRect = function () {
2743
- var _this = this;
2744
- setTimeout(function () {
2745
- var _a;
2746
- _this._triggerRect = (_a = _this.trigger) === null || _a === void 0 ? void 0 : _a.nativeElement.getBoundingClientRect();
2747
- });
2748
- };
2749
- SelectInterpolationComponent.prototype.selectItem = function (item) {
2750
- this.opened = false;
2751
- this.edited = false;
2752
- this.selectedItem = item;
2753
- this.value = item.id;
2754
- this.selectedItemLabel = item.text;
2755
- this.searchText = '';
2756
- this.onSelect.next(item);
2757
- };
2758
- SelectInterpolationComponent.prototype.keyPress = function () {
2759
- this.setTriggerRect();
2760
- this.opened = false;
2761
- this.edited = true;
2762
- this.searchText = '';
2763
- };
2764
- SelectInterpolationComponent.prototype.clicked = function () {
2765
- this.setTriggerRect();
2766
- this.opened = true;
2767
- this.searchText = '';
2768
- };
2769
- Object.defineProperty(SelectInterpolationComponent.prototype, "value", {
2770
- get: function () {
2771
- return this.innerValue;
2772
- },
2773
- set: function (value) {
2774
- this.innerValue = value;
2775
- this.onChangeCallback(value);
2776
- },
2777
- enumerable: false,
2778
- configurable: true
2779
- });
2780
- SelectInterpolationComponent.prototype.writeValue = function (value) {
2781
- if (value !== this.value) {
2782
- this.value = value;
2783
- }
2784
- };
2785
- SelectInterpolationComponent.prototype.registerOnChange = function (fn) {
2786
- this.onChangeCallback = fn;
2787
- };
2788
- SelectInterpolationComponent.prototype.registerOnTouched = function (fn) {
2789
- this.onTouchedCallback = fn;
2790
- };
2791
- SelectInterpolationComponent.prototype.setDisabledState = function (isDisabled) {
2792
- this.disabled = isDisabled;
2793
- };
2794
- SelectInterpolationComponent.prototype.arrowClick = function (event) {
2795
- var _a;
2796
- event.stopPropagation();
2797
- this.setTriggerRect();
2798
- if (this.opened) {
2799
- this.opened = false;
2800
- }
2801
- else {
2802
- this.opened = true;
2803
- this.searchText = '';
2804
- (_a = this.input) === null || _a === void 0 ? void 0 : _a.nativeElement.focus();
2805
- }
2806
- };
2807
- SelectInterpolationComponent.prototype.onDrop = function ($event) {
2808
- this.searchText = '';
2809
- if (!this.value) {
2810
- this.value = '';
2811
- }
2812
- this.edited = true;
2813
- this.value += "{{" + $event.data + "}}";
2814
- this.selectedItemLabel = this.value;
2815
- this.onBlur(undefined);
2816
- };
2817
- return SelectInterpolationComponent;
2818
- }());
2819
- SelectInterpolationComponent.ɵfac = function SelectInterpolationComponent_Factory(t) { return new (t || SelectInterpolationComponent)(i0.ɵɵdirectiveInject(i1$3.ScrollStrategyOptions)); };
2820
- SelectInterpolationComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SelectInterpolationComponent, selectors: [["select-interpolation"]], viewQuery: function SelectInterpolationComponent_Query(rf, ctx) {
2821
- if (rf & 1) {
2822
- i0.ɵɵviewQuery(_c0$6, true);
2823
- i0.ɵɵviewQuery(_c1$4, true, i0.ElementRef);
2824
- }
2825
- if (rf & 2) {
2826
- var _t;
2827
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.trigger = _t.first);
2828
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.input = _t.first);
2829
- }
2830
- }, hostVars: 1, hostBindings: function SelectInterpolationComponent_HostBindings(rf, ctx) {
2831
- if (rf & 1) {
2832
- i0.ɵɵlistener("blur", function SelectInterpolationComponent_blur_HostBindingHandler($event) { return ctx.onBlur($event.target); });
2833
- }
2834
- if (rf & 2) {
2835
- i0.ɵɵattribute("tabindex", ctx.tabindex);
2836
- }
2837
- }, inputs: { disabled: "disabled", items: "items", placeHolder: "placeHolder", findPlaceHolder: "findPlaceHolder" }, outputs: { onSelect: "onSelect" }, features: [i0.ɵɵProvidersFeature([{
2838
- provide: i4.NG_VALUE_ACCESSOR,
2839
- useExisting: i0.forwardRef(function () { return SelectInterpolationComponent; }),
2840
- multi: true
2841
- }])], decls: 10, vars: 17, consts: [[1, "custom-select-input"], ["trigger", ""], ["cdkOverlayOrigin", "", "appearance", "fill", "autocomplete", "off", 1, "custom-select-component", 3, "ngClass"], ["origin", "cdkOverlayOrigin"], ["matInput", "", "dndDropzone", "", "autocomplete", "off", 3, "placeholder", "ngModel", "ngModelOptions", "disabled", "focus", "blur", "ngModelChange", "keyup", "click", "dndDrop"], ["input", ""], [1, "open-icon", 3, "click"], [1, "fas", 3, "ngClass"], [1, "custom-select-component"], ["cdkConnectedOverlay", "", 3, "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOrigin", "cdkConnectedOverlayOpen", "cdkConnectedOverlayMinWidth"], [1, "ul-ac"], [1, "li-search", "search-input-item"], ["appearance", "fill", 1, "apipass-input-text", "search-input-item"], ["matInput", "", "aria-autocomplete", "none", "autocomplete", "off", 1, "search-input-item", 3, "placeholder", "ngModel", "ngModelChange", "blur"], ["class", "clickable", 3, "click", "mousedown", 4, "ngFor", "ngForOf"], [1, "clickable", 3, "click", "mousedown"]], template: function SelectInterpolationComponent_Template(rf, ctx) {
2842
- if (rf & 1) {
2843
- i0.ɵɵelementStart(0, "div", 0, 1);
2844
- i0.ɵɵelementStart(2, "mat-form-field", 2, 3);
2845
- i0.ɵɵelementStart(4, "input", 4, 5);
2846
- i0.ɵɵlistener("focus", function SelectInterpolationComponent_Template_input_focus_4_listener() { return ctx.opened = true; })("blur", function SelectInterpolationComponent_Template_input_blur_4_listener($event) { return ctx.onBlur($event); })("ngModelChange", function SelectInterpolationComponent_Template_input_ngModelChange_4_listener($event) { return ctx.selectedItemLabel = $event; })("keyup", function SelectInterpolationComponent_Template_input_keyup_4_listener() { return ctx.keyPress(); })("click", function SelectInterpolationComponent_Template_input_click_4_listener() { return ctx.clicked(); })("dndDrop", function SelectInterpolationComponent_Template_input_dndDrop_4_listener($event) { return ctx.onDrop($event); });
2847
- i0.ɵɵelementEnd();
2848
- i0.ɵɵelementStart(6, "span", 6);
2849
- i0.ɵɵlistener("click", function SelectInterpolationComponent_Template_span_click_6_listener($event) { return ctx.arrowClick($event); });
2850
- i0.ɵɵelement(7, "i", 7);
2851
- i0.ɵɵelementEnd();
2852
- i0.ɵɵelementEnd();
2853
- i0.ɵɵelementEnd();
2854
- i0.ɵɵelementStart(8, "div", 8);
2855
- i0.ɵɵtemplate(9, SelectInterpolationComponent_ng_template_9_Template, 6, 7, "ng-template", 9);
2856
- i0.ɵɵelementEnd();
2857
- }
2858
- if (rf & 2) {
2859
- var _r1 = i0.ɵɵreference(3);
2860
- i0.ɵɵadvance(2);
2861
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c2$2, ctx.opened));
2862
- i0.ɵɵadvance(2);
2863
- i0.ɵɵproperty("placeholder", ctx.placeHolder)("ngModel", ctx.selectedItemLabel)("ngModelOptions", i0.ɵɵpureFunction0(13, _c3$2))("disabled", ctx.disabled);
2864
- i0.ɵɵadvance(3);
2865
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(14, _c4$1, !ctx.opened, ctx.opened));
2866
- i0.ɵɵadvance(2);
2867
- i0.ɵɵproperty("cdkConnectedOverlayPanelClass", "custom-select-overlay-panel")("cdkConnectedOverlayScrollStrategy", ctx.scrollStrategy)("cdkConnectedOverlayOrigin", _r1)("cdkConnectedOverlayOpen", ctx.opened)("cdkConnectedOverlayMinWidth", ctx._triggerRect == null ? null : ctx._triggerRect.width);
2868
- }
2869
- }, directives: [i1.MatFormField, i1$3.CdkOverlayOrigin, i3.NgClass, i3$1.MatInput, i4.DefaultValueAccessor, i6$1.DndDropzoneDirective, i4.NgControlStatus, i4.NgModel, i1$3.CdkConnectedOverlay, i3.NgForOf], pipes: [i6.SelectFilterPipe], styles: [".custom-select-component[_ngcontent-%COMP%], .custom-select-input[_ngcontent-%COMP%], .custom-select-overlay-panel{cursor:pointer}.custom-select-component[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .custom-select-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .custom-select-overlay-panel input{background:#fff!important;height:48px}.custom-select-component[_ngcontent-%COMP%] .ul-ac[_ngcontent-%COMP%], .custom-select-input[_ngcontent-%COMP%] .ul-ac[_ngcontent-%COMP%], .custom-select-overlay-panel .ul-ac{background:#fff;border:1px solid #ccc;box-sizing:border-box;list-style:none;margin-top:-1px;max-height:16rem;overflow:auto;padding:0;position:relative;width:100%}.custom-select-component[_ngcontent-%COMP%] .ul-ac[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .custom-select-input[_ngcontent-%COMP%] .ul-ac[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .custom-select-overlay-panel .ul-ac li{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, .custom-select-input[_ngcontent-%COMP%] .ul-ac[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover, .custom-select-overlay-panel .ul-ac li:hover{background:#bbbcbc}.custom-select-component[_ngcontent-%COMP%] .ul-ac[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .mat-form-field-flex[_ngcontent-%COMP%], .custom-select-input[_ngcontent-%COMP%] .ul-ac[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .mat-form-field-flex[_ngcontent-%COMP%], .custom-select-overlay-panel .ul-ac li .mat-form-field-flex{height:37px!important}.custom-select-component[_ngcontent-%COMP%] .ul-ac[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .mat-form-field-flex[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .custom-select-input[_ngcontent-%COMP%] .ul-ac[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .mat-form-field-flex[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .custom-select-overlay-panel .ul-ac li .mat-form-field-flex input{height:auto}.custom-select-component[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%], .custom-select-input[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%], .custom-select-overlay-panel .selected{background-color:#898a8a!important}.custom-select-component[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%] .fa[_ngcontent-%COMP%], .custom-select-input[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%] .fa[_ngcontent-%COMP%], .custom-select-overlay-panel .selected .fa{color:#fff!important}.custom-select-component[_ngcontent-%COMP%] .remove-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .custom-select-input[_ngcontent-%COMP%] .remove-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .custom-select-overlay-panel .remove-icon i{color:red;margin-right:10px}.custom-select-component[_ngcontent-%COMP%] .open-icon[_ngcontent-%COMP%], .custom-select-input[_ngcontent-%COMP%] .open-icon[_ngcontent-%COMP%], .custom-select-overlay-panel .open-icon{cursor:pointer}.custom-select-component[_ngcontent-%COMP%] .open-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .custom-select-input[_ngcontent-%COMP%] .open-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .custom-select-overlay-panel .open-icon i{color:rgba(0,0,0,.54)}.custom-select-component[_ngcontent-%COMP%] .li-search[_ngcontent-%COMP%], .custom-select-input[_ngcontent-%COMP%] .li-search[_ngcontent-%COMP%], .custom-select-overlay-panel .li-search{border-bottom:1px solid #ccc!important;cursor:default!important}.custom-select-component[_ngcontent-%COMP%] .li-search[_ngcontent-%COMP%]:hover, .custom-select-input[_ngcontent-%COMP%] .li-search[_ngcontent-%COMP%]:hover, .custom-select-overlay-panel .li-search:hover{background:#fff!important}.custom-select-component[_ngcontent-%COMP%] .select-open[_ngcontent-%COMP%] .mat-form-field-flex[_ngcontent-%COMP%], .custom-select-input[_ngcontent-%COMP%] .select-open[_ngcontent-%COMP%] .mat-form-field-flex[_ngcontent-%COMP%], .custom-select-overlay-panel .select-open .mat-form-field-flex{border-radius:6px 6px 0 0!important}"] });
2870
- /*@__PURE__*/ (function () {
2871
- i0.ɵsetClassMetadata(SelectInterpolationComponent, [{
2872
- type: i0.Component,
2873
- args: [{
2874
- selector: 'select-interpolation',
2875
- templateUrl: 'select-interpolation.component.html',
2876
- styleUrls: ['select-interpolation.component.scss'],
2877
- providers: [{
2878
- provide: i4.NG_VALUE_ACCESSOR,
2879
- useExisting: i0.forwardRef(function () { return SelectInterpolationComponent; }),
2880
- multi: true
2881
- }]
2882
- }]
2883
- }], function () { return [{ type: i1$3.ScrollStrategyOptions }]; }, { disabled: [{
2884
- type: i0.Input
2885
- }], items: [{
2886
- type: i0.Input
2887
- }], placeHolder: [{
2888
- type: i0.Input
2889
- }], findPlaceHolder: [{
2890
- type: i0.Input
2891
- }], onSelect: [{
2892
- type: i0.Output
2893
- }], trigger: [{
2894
- type: i0.ViewChild,
2895
- args: ['trigger']
2896
- }], input: [{
2897
- type: i0.ViewChild,
2898
- args: ['input', { read: i0.ElementRef }]
2899
- }], tabindex: [{
2900
- type: i0.HostBinding,
2901
- args: ['attr.tabindex']
2902
- }], onBlur: [{
2903
- type: i0.HostListener,
2904
- args: ['blur', ['$event.target']]
2905
- }] });
2906
- })();
2907
-
2908
- var InputsModule = /** @class */ (function () {
2909
- function InputsModule() {
2910
- }
2911
- return InputsModule;
2912
- }());
2913
- InputsModule.ɵmod = i0.ɵɵdefineNgModule({ type: InputsModule });
2914
- InputsModule.ɵinj = i0.ɵɵdefineInjector({ factory: function InputsModule_Factory(t) { return new (t || InputsModule)(); }, providers: [], imports: [[
2915
- i1$5.RouterModule.forChild([]),
2916
- i3.CommonModule,
2917
- i4.FormsModule,
2918
- i1.MatFormFieldModule,
2919
- i3$1.MatInputModule,
2920
- i5$1.MatPasswordStrengthModule,
2921
- i1$1.MatSelectModule,
2922
- matSelectFilter.MatSelectFilterModule,
2923
- i1$2.NgSelectModule,
2924
- i6.PipeModule,
2925
- i5$2.MatIconModule,
2926
- i3$2.IconsModule,
2927
- i2.MatTooltipModule,
2928
- i6$1.DndModule,
2929
- i1$4.ButtonsModule,
2930
- i1$3.OverlayModule,
2931
- ]] });
2932
- (function () {
2933
- (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(InputsModule, { declarations: [MatSelectInfiniteScrollDirective,
2934
- SelectBoxComponent,
2935
- SelectEnumComponent,
2936
- InputTextComponent,
2937
- InputNumberComponent,
2938
- InputBooleanComponent,
2939
- InputPasswordComponent,
2940
- InputAvatarComponent,
2941
- InputFileComponent,
2942
- CustomSelectComponent,
2943
- SelectInterpolationComponent,
2944
- FieldComponent,
2945
- AceEditorComponent,
2946
- AceEditorDirective,
2947
- DebouceInputDirective], imports: [i1$5.RouterModule, i3.CommonModule,
2948
- i4.FormsModule,
2949
- i1.MatFormFieldModule,
2950
- i3$1.MatInputModule,
2951
- i5$1.MatPasswordStrengthModule,
2952
- i1$1.MatSelectModule,
2953
- matSelectFilter.MatSelectFilterModule,
2954
- i1$2.NgSelectModule,
2955
- i6.PipeModule,
2956
- i5$2.MatIconModule,
2957
- i3$2.IconsModule,
2958
- i2.MatTooltipModule,
2959
- i6$1.DndModule,
2960
- i1$4.ButtonsModule,
2961
- i1$3.OverlayModule], exports: [SelectBoxComponent,
2962
- SelectEnumComponent,
2963
- InputTextComponent,
2964
- InputNumberComponent,
2965
- InputBooleanComponent,
2966
- InputPasswordComponent,
2967
- InputAvatarComponent,
2968
- InputFileComponent,
2969
- CustomSelectComponent,
2970
- SelectInterpolationComponent,
2971
- FieldComponent,
2972
- AceEditorComponent,
2973
- AceEditorDirective,
2974
- DebouceInputDirective] });
2975
- })();
2976
- /*@__PURE__*/ (function () {
2977
- i0.ɵsetClassMetadata(InputsModule, [{
2978
- type: i0.NgModule,
2979
- args: [{
2980
- imports: [
2981
- i1$5.RouterModule.forChild([]),
2982
- i3.CommonModule,
2983
- i4.FormsModule,
2984
- i1.MatFormFieldModule,
2985
- i3$1.MatInputModule,
2986
- i5$1.MatPasswordStrengthModule,
2987
- i1$1.MatSelectModule,
2988
- matSelectFilter.MatSelectFilterModule,
2989
- i1$2.NgSelectModule,
2990
- i6.PipeModule,
2991
- i5$2.MatIconModule,
2992
- i3$2.IconsModule,
2993
- i2.MatTooltipModule,
2994
- i6$1.DndModule,
2995
- i1$4.ButtonsModule,
2996
- i1$3.OverlayModule,
2997
- ],
2998
- declarations: [
2999
- MatSelectInfiniteScrollDirective,
3000
- SelectBoxComponent,
3001
- SelectEnumComponent,
3002
- InputTextComponent,
3003
- InputNumberComponent,
3004
- InputBooleanComponent,
3005
- InputPasswordComponent,
3006
- InputAvatarComponent,
3007
- InputFileComponent,
3008
- CustomSelectComponent,
3009
- SelectInterpolationComponent,
3010
- FieldComponent,
3011
- AceEditorComponent,
3012
- AceEditorDirective,
3013
- DebouceInputDirective
3014
- ],
3015
- exports: [
3016
- SelectBoxComponent,
3017
- SelectEnumComponent,
3018
- InputTextComponent,
3019
- InputNumberComponent,
3020
- InputBooleanComponent,
3021
- InputPasswordComponent,
3022
- InputAvatarComponent,
3023
- InputFileComponent,
3024
- CustomSelectComponent,
3025
- SelectInterpolationComponent,
3026
- FieldComponent,
3027
- AceEditorComponent,
3028
- AceEditorDirective,
3029
- DebouceInputDirective
3030
- ],
3031
- providers: [],
3032
- }]
3033
- }], null, null);
3034
- })();
3035
-
3036
- /**
3037
- * Generated bundle index. Do not edit.
3038
- */
3039
-
3040
- exports.AceEditorComponent = AceEditorComponent;
3041
- exports.AceEditorDirective = AceEditorDirective;
3042
- exports.CustomSelectComponent = CustomSelectComponent;
3043
- exports.CustomSelectItem = CustomSelectItem;
3044
- exports.DebouceInputDirective = DebouceInputDirective;
3045
- exports.FieldComponent = FieldComponent;
3046
- exports.InputAvatarComponent = InputAvatarComponent;
3047
- exports.InputBooleanComponent = InputBooleanComponent;
3048
- exports.InputFileComponent = InputFileComponent;
3049
- exports.InputNumberComponent = InputNumberComponent;
3050
- exports.InputPasswordComponent = InputPasswordComponent;
3051
- exports.InputTextComponent = InputTextComponent;
3052
- exports.InputsModule = InputsModule;
3053
- exports.SelectBoxComponent = SelectBoxComponent;
3054
- exports.SelectEnumComponent = SelectEnumComponent;
3055
- exports.SelectInterpolationComponent = SelectInterpolationComponent;
3056
-
3057
- Object.defineProperty(exports, '__esModule', { value: true });
3058
-
3059
- })));
3060
- //# sourceMappingURL=apipass-inputs.umd.js.map