@adins/ucsearch 2.9.2 → 2.9.4

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.
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common/http'), require('file-saver'), require('xlsx'), require('@angular/animations'), require('ngx-toastr'), require('ngx-cookie'), require('crypto-js'), require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('ngx-currency'), require('@ngx-translate/core'), require('@adins/uc-show-errors'), require('@adins/uc-directive-upper-case')) :
3
- typeof define === 'function' && define.amd ? define('@adins/ucsearch', ['exports', '@angular/common/http', 'file-saver', 'xlsx', '@angular/animations', 'ngx-toastr', 'ngx-cookie', 'crypto-js', '@angular/core', '@angular/common', '@angular/forms', 'ngx-currency', '@ngx-translate/core', '@adins/uc-show-errors', '@adins/uc-directive-upper-case'], factory) :
4
- (factory((global.adins = global.adins || {}, global.adins.ucsearch = {}),global.ng.common.http,global.FileSaver,global.XLSX,global.ng.animations,global.i3,global.i4,global.CryptoJS,global.ng.core,global.ng.common,global.ng.forms,global.i1$1,global.i2,global.i10,global.i8));
5
- }(this, (function (exports,i1,FileSaver,XLSX,animations,i3,i4,CryptoJS,i0,i5,i6,i1$1,i2,i10,i8) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common/http'), require('file-saver'), require('xlsx'), require('@angular/animations'), require('ngx-toastr'), require('ngx-cookie'), require('crypto-js'), require('@angular/common'), require('@angular/forms'), require('ngx-currency'), require('@ngx-translate/core'), require('@adins/uc-show-errors'), require('@adins/uc-directive-upper-case'), require('@angular/core')) :
3
+ typeof define === 'function' && define.amd ? define('@adins/ucsearch', ['exports', '@angular/common/http', 'file-saver', 'xlsx', '@angular/animations', 'ngx-toastr', 'ngx-cookie', 'crypto-js', '@angular/common', '@angular/forms', 'ngx-currency', '@ngx-translate/core', '@adins/uc-show-errors', '@adins/uc-directive-upper-case', '@angular/core'], factory) :
4
+ (factory((global.adins = global.adins || {}, global.adins.ucsearch = {}),global.ng.common.http,global.FileSaver,global.XLSX,global.ng.animations,global.ngxToastr,global.ngxCookie,global.CryptoJS,global.ng.common,global.ng.forms,global.ngxCurrency,global.core,global.ucShowErrors,global.ucDirectiveUpperCase,global.ng.core));
5
+ }(this, (function (exports,http,FileSaver,XLSX,animations,ngxToastr,ngxCookie,CryptoJS,common,forms,ngxCurrency,core,ucShowErrors,ucDirectiveUpperCase,i0) { 'use strict';
6
6
 
7
7
  /**
8
8
  * @fileoverview added by tsickle
@@ -14,22 +14,13 @@
14
14
  UCSearchService.decorators = [
15
15
  { type: i0.Injectable, args: [{
16
16
  providedIn: 'root'
17
- },] },
17
+ },] }
18
18
  ];
19
19
  /** @nocollapse */
20
20
  UCSearchService.ctorParameters = function () { return []; };
21
- /** @nocollapse */ UCSearchService.ɵfac = function UCSearchService_Factory(t) { return new (t || UCSearchService)(); };
22
- /** @nocollapse */ UCSearchService.ɵprov = i0.ɵɵdefineInjectable({ token: UCSearchService, factory: UCSearchService.ɵfac, providedIn: 'root' });
21
+ /** @nocollapse */ UCSearchService.ɵprov = i0.ɵɵdefineInjectable({ factory: function UCSearchService_Factory() { return new UCSearchService(); }, token: UCSearchService, providedIn: "root" });
23
22
  return UCSearchService;
24
- }());
25
- /*@__PURE__*/ (function () {
26
- i0.ɵsetClassMetadata(UCSearchService, [{
27
- type: i0.Injectable,
28
- args: [{
29
- providedIn: 'root'
30
- }]
31
- }], function () { return []; }, null);
32
- })();
23
+ }());
33
24
 
34
25
  /*! *****************************************************************************
35
26
  Copyright (c) Microsoft Corporation.
@@ -286,19 +277,12 @@
286
277
  FileSaver.saveAs(data, fileName + '_export_' + new Date().getTime() + EXCEL_EXTENSION);
287
278
  };
288
279
  ExcelService.decorators = [
289
- { type: i0.Injectable },
280
+ { type: i0.Injectable }
290
281
  ];
291
282
  /** @nocollapse */
292
283
  ExcelService.ctorParameters = function () { return []; };
293
- /** @nocollapse */ ExcelService.ɵfac = function ExcelService_Factory(t) { return new (t || ExcelService)(); };
294
- /** @nocollapse */ ExcelService.ɵprov = i0.ɵɵdefineInjectable({ token: ExcelService, factory: ExcelService.ɵfac });
295
284
  return ExcelService;
296
- }());
297
- /*@__PURE__*/ (function () {
298
- i0.ɵsetClassMetadata(ExcelService, [{
299
- type: i0.Injectable
300
- }], function () { return []; }, null);
301
- })();
285
+ }());
302
286
 
303
287
  /**
304
288
  * @fileoverview added by tsickle
@@ -356,694 +340,9 @@
356
340
  * @fileoverview added by tsickle
357
341
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
358
342
  */
359
- var TextSearchPipe = /** @class */ (function () {
360
- function TextSearchPipe() {
361
- }
362
- /**
363
- * @param {?} items
364
- * @param {?=} text
365
- * @return {?}
366
- */
367
- TextSearchPipe.prototype.transform = /**
368
- * @param {?} items
369
- * @param {?=} text
370
- * @return {?}
371
- */
372
- function (items, text) {
373
- if (!text) {
374
- return items;
375
- }
376
- return items.filter(( /**
377
- * @param {?} item
378
- * @return {?}
379
- */function (item) {
380
- if (item.Value && typeof item.Value === 'string') {
381
- return item.Value.toLowerCase().indexOf(text.toLowerCase()) > -1;
382
- }
383
- return false;
384
- }));
385
- };
386
- TextSearchPipe.decorators = [
387
- { type: i0.Pipe, args: [{
388
- name: 'textSearch'
389
- },] },
390
- ];
391
- /** @nocollapse */ TextSearchPipe.ɵfac = function TextSearchPipe_Factory(t) { return new (t || TextSearchPipe)(); };
392
- /** @nocollapse */ TextSearchPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "textSearch", type: TextSearchPipe, pure: true });
393
- return TextSearchPipe;
394
- }());
395
- /*@__PURE__*/ (function () {
396
- i0.ɵsetClassMetadata(TextSearchPipe, [{
397
- type: i0.Pipe,
398
- args: [{
399
- name: 'textSearch'
400
- }]
401
- }], null, null);
402
- })();
403
-
404
- var _c0 = ["enjiForm"];
405
- var _c1 = ["formIdSearch"];
406
- function UCSearchComponent_div_4_Template(rf, ctx) {
407
- if (rf & 1) {
408
- i0.ɵɵelementStart(0, "div", 28);
409
- i0.ɵɵelementStart(1, "h4", 29);
410
- i0.ɵɵtext(2);
411
- i0.ɵɵelementEnd();
412
- i0.ɵɵelementEnd();
413
- }
414
- if (rf & 2) {
415
- var ctx_r0 = i0.ɵɵnextContext();
416
- i0.ɵɵadvance(2);
417
- i0.ɵɵtextInterpolate(ctx_r0.configuration.title);
418
- }
419
- }
420
- function UCSearchComponent_span_14_Template(rf, ctx) {
421
- if (rf & 1) {
422
- i0.ɵɵelement(0, "span");
423
- }
424
- }
425
- function UCSearchComponent_ng_template_15_Template(rf, ctx) {
426
- if (rf & 1) {
427
- i0.ɵɵtext(0);
428
- }
429
- if (rf & 2) {
430
- var ctx_r5 = i0.ɵɵnextContext();
431
- i0.ɵɵtextInterpolate1(" ", ctx_r5.configuration == null ? null : ctx_r5.configuration.sectionTitle, " ");
432
- }
433
- }
434
- function UCSearchComponent_ng_template_17_Template(rf, ctx) {
435
- if (rf & 1) {
436
- i0.ɵɵtext(0, " Paging ");
437
- }
438
- }
439
- var _c2 = function (a0) { return { "is-invalid": a0 }; };
440
- function UCSearchComponent_div_21_div_6_Template(rf, ctx) {
441
- if (rf & 1) {
442
- var _r27 = i0.ɵɵgetCurrentView();
443
- i0.ɵɵelementStart(0, "div");
444
- i0.ɵɵelementStart(1, "input", 35);
445
- i0.ɵɵlistener("keyup.enter", function UCSearchComponent_div_21_div_6_Template_input_keyup_enter_1_listener() { i0.ɵɵrestoreView(_r27); var ctx_r26 = i0.ɵɵnextContext(2); return ctx_r26.searchClick(); });
446
- i0.ɵɵelementEnd();
447
- i0.ɵɵelementEnd();
448
- }
449
- if (rf & 2) {
450
- var question_r13 = i0.ɵɵnextContext().$implicit;
451
- i0.ɵɵnextContext();
452
- var _r2 = i0.ɵɵreference(9);
453
- i0.ɵɵadvance(1);
454
- i0.ɵɵpropertyInterpolate("id", question_r13.id);
455
- i0.ɵɵpropertyInterpolate("name", question_r13.name);
456
- i0.ɵɵpropertyInterpolate("value", question_r13.value);
457
- i0.ɵɵproperty("ngModel", question_r13.value)("required", question_r13.isRequired)("ngClass", i0.ɵɵpureFunction1(12, _c2, (_r2.submitted || (_r2.form.controls[question_r13.name] == null ? null : _r2.form.controls[question_r13.name].touched) || (_r2.form.controls[question_r13.name] == null ? null : _r2.form.controls[question_r13.name].dirty)) && (_r2.form.controls[question_r13.name] == null ? null : _r2.form.controls[question_r13.name].invalid)));
458
- i0.ɵɵattribute("data-crit-datatable", question_r13.isCriteriaDataTable)("data-required", question_r13.isRequired)("data-type", question_r13.datatype)("data-name", question_r13.name)("data-restriction", question_r13.restriction)("label", question_r13.label);
459
- }
460
- }
461
- function UCSearchComponent_div_21_div_7_Template(rf, ctx) {
462
- if (rf & 1) {
463
- i0.ɵɵelementStart(0, "div");
464
- i0.ɵɵelement(1, "textarea", 36);
465
- i0.ɵɵelementEnd();
466
- }
467
- if (rf & 2) {
468
- var question_r13 = i0.ɵɵnextContext().$implicit;
469
- i0.ɵɵnextContext();
470
- var _r2 = i0.ɵɵreference(9);
471
- i0.ɵɵadvance(1);
472
- i0.ɵɵpropertyInterpolate("id", question_r13.id);
473
- i0.ɵɵpropertyInterpolate("name", question_r13.name);
474
- i0.ɵɵpropertyInterpolate("value", question_r13.value);
475
- i0.ɵɵproperty("ngModel", question_r13.value)("required", question_r13.isRequired)("ngClass", i0.ɵɵpureFunction1(10, _c2, (_r2.submitted || (_r2.form.controls[question_r13.name] == null ? null : _r2.form.controls[question_r13.name].touched) || (_r2.form.controls[question_r13.name] == null ? null : _r2.form.controls[question_r13.name].dirty)) && (_r2.form.controls[question_r13.name] == null ? null : _r2.form.controls[question_r13.name].invalid)));
476
- i0.ɵɵattribute("data-required", question_r13.isRequired)("data-type", question_r13.datatype)("data-name", question_r13.name)("label", question_r13.label);
477
- }
478
- }
479
- var _c3 = function (a0) { return [a0]; };
480
- function UCSearchComponent_div_21_div_8_Template(rf, ctx) {
481
- if (rf & 1) {
482
- var _r31 = i0.ɵɵgetCurrentView();
483
- i0.ɵɵelementStart(0, "div");
484
- i0.ɵɵelementStart(1, "input", 37);
485
- i0.ɵɵlistener("focus", function UCSearchComponent_div_21_div_8_Template_input_focus_1_listener($event) { i0.ɵɵrestoreView(_r31); var ctx_r30 = i0.ɵɵnextContext(2); return ctx_r30.transformToDecimal($event); })("blur", function UCSearchComponent_div_21_div_8_Template_input_blur_1_listener($event) { i0.ɵɵrestoreView(_r31); var ctx_r32 = i0.ɵɵnextContext(2); return ctx_r32.transformAmount($event); })("keyup.enter", function UCSearchComponent_div_21_div_8_Template_input_keyup_enter_1_listener() { i0.ɵɵrestoreView(_r31); var ctx_r33 = i0.ɵɵnextContext(2); return ctx_r33.searchClick(); });
486
- i0.ɵɵelementEnd();
487
- i0.ɵɵelementEnd();
488
- }
489
- if (rf & 2) {
490
- var ctx_r34 = i0.ɵɵnextContext();
491
- var question_r13 = ctx_r34.$implicit;
492
- var i_r14 = ctx_r34.index;
493
- i0.ɵɵnextContext();
494
- var _r2 = i0.ɵɵreference(9);
495
- i0.ɵɵadvance(1);
496
- i0.ɵɵpropertyInterpolate("id", question_r13.id);
497
- i0.ɵɵpropertyInterpolate("name", question_r13.name + i0.ɵɵpureFunction1(13, _c3, i_r14));
498
- i0.ɵɵpropertyInterpolate("value", question_r13.value);
499
- i0.ɵɵproperty("ngModel", question_r13.value)("required", question_r13.isRequired)("ngClass", i0.ɵɵpureFunction1(27, _c2, (_r2.submitted || (_r2.form.controls[question_r13.name + i0.ɵɵpureFunction1(15, _c3, i_r14)] == null ? null : _r2.form.controls[question_r13.name + i0.ɵɵpureFunction1(17, _c3, i_r14)].touched) || (_r2.form.controls[question_r13.name + i0.ɵɵpureFunction1(19, _c3, i_r14)] == null ? null : _r2.form.controls[question_r13.name + i0.ɵɵpureFunction1(21, _c3, i_r14)].dirty)) && (_r2.form.controls[question_r13.name + i0.ɵɵpureFunction1(23, _c3, i_r14)] == null ? null : _r2.form.controls[question_r13.name + i0.ɵɵpureFunction1(25, _c3, i_r14)].invalid)));
500
- i0.ɵɵattribute("data-required", question_r13.isRequired)("data-restriction", question_r13.restriction)("data-type", question_r13.datatype)("data-name", question_r13.name)("data-numericpair", question_r13.numericPair)("data-crit-datatable", question_r13.isCriteriaDataTable)("label", question_r13.label);
501
- }
502
- }
503
- var _c4 = function () { return { standalone: true }; };
504
- var _c5 = function (a0, a1, a2, a3, a4, a5, a6) { return { thousands: a0, decimal: a1, align: a2, allowNegative: a3, allowZero: a4, precision: a5, nullable: a6 }; };
505
- function UCSearchComponent_div_21_div_9_div_1_Template(rf, ctx) {
506
- if (rf & 1) {
507
- var _r38 = i0.ɵɵgetCurrentView();
508
- i0.ɵɵelementStart(0, "div");
509
- i0.ɵɵelementStart(1, "input", 38);
510
- i0.ɵɵlistener("keyup.enter", function UCSearchComponent_div_21_div_9_div_1_Template_input_keyup_enter_1_listener() { i0.ɵɵrestoreView(_r38); var ctx_r37 = i0.ɵɵnextContext(3); return ctx_r37.searchClick(); })("ngModelChange", function UCSearchComponent_div_21_div_9_div_1_Template_input_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r38); var question_r13 = i0.ɵɵnextContext(2).$implicit; return question_r13.value = $event; });
511
- i0.ɵɵelementEnd();
512
- i0.ɵɵelementEnd();
513
- }
514
- if (rf & 2) {
515
- var question_r13 = i0.ɵɵnextContext(2).$implicit;
516
- i0.ɵɵnextContext();
517
- var _r2 = i0.ɵɵreference(9);
518
- i0.ɵɵadvance(1);
519
- i0.ɵɵpropertyInterpolate("id", question_r13.id);
520
- i0.ɵɵpropertyInterpolate("name", question_r13.name);
521
- i0.ɵɵproperty("required", question_r13.isRequired)("ngModel", question_r13.value)("ngModel", question_r13.value)("ngModelOptions", i0.ɵɵpureFunction0(13, _c4))("options", i0.ɵɵpureFunction7(14, _c5, question_r13.thousands, question_r13.decimal, question_r13.align, question_r13.allowNegative, question_r13.allowZero, question_r13.precision, question_r13.nullable))("ngClass", i0.ɵɵpureFunction1(22, _c2, (_r2.submitted || (_r2.form.controls[question_r13.name] == null ? null : _r2.form.controls[question_r13.name].touched) || (_r2.form.controls[question_r13.name] == null ? null : _r2.form.controls[question_r13.name].dirty)) && (_r2.form.controls[question_r13.name] == null ? null : _r2.form.controls[question_r13.name].invalid)));
522
- i0.ɵɵattribute("data-restriction", question_r13.restriction)("data-type", question_r13.datatype)("data-name", question_r13.name)("data-required", question_r13.isRequired)("label", question_r13.label);
523
- }
524
- }
525
- var _c6 = function () { return { thousands: ",", decimal: ".", align: "right", allowNegative: false, allowZero: true, precision: 2, nullable: false }; };
526
- function UCSearchComponent_div_21_div_9_div_2_Template(rf, ctx) {
527
- if (rf & 1) {
528
- var _r43 = i0.ɵɵgetCurrentView();
529
- i0.ɵɵelementStart(0, "div");
530
- i0.ɵɵelementStart(1, "input", 39);
531
- i0.ɵɵlistener("keyup.enter", function UCSearchComponent_div_21_div_9_div_2_Template_input_keyup_enter_1_listener() { i0.ɵɵrestoreView(_r43); var ctx_r42 = i0.ɵɵnextContext(3); return ctx_r42.searchClick(); })("ngModelChange", function UCSearchComponent_div_21_div_9_div_2_Template_input_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r43); var question_r13 = i0.ɵɵnextContext(2).$implicit; return question_r13.value = $event; });
532
- i0.ɵɵelementEnd();
533
- i0.ɵɵelementEnd();
534
- }
535
- if (rf & 2) {
536
- var question_r13 = i0.ɵɵnextContext(2).$implicit;
537
- i0.ɵɵnextContext();
538
- var _r2 = i0.ɵɵreference(9);
539
- i0.ɵɵadvance(1);
540
- i0.ɵɵpropertyInterpolate("id", question_r13.id);
541
- i0.ɵɵpropertyInterpolate("name", question_r13.name);
542
- i0.ɵɵproperty("required", question_r13.isRequired)("ngModel", question_r13.value)("ngModel", question_r13.value)("ngModelOptions", i0.ɵɵpureFunction0(13, _c4))("options", i0.ɵɵpureFunction0(14, _c6))("ngClass", i0.ɵɵpureFunction1(15, _c2, (_r2.submitted || (_r2.form.controls[question_r13.name] == null ? null : _r2.form.controls[question_r13.name].touched) || (_r2.form.controls[question_r13.name] == null ? null : _r2.form.controls[question_r13.name].dirty)) && (_r2.form.controls[question_r13.name] == null ? null : _r2.form.controls[question_r13.name].invalid)));
543
- i0.ɵɵattribute("data-restriction", question_r13.restriction)("data-type", question_r13.datatype)("data-name", question_r13.name)("data-required", question_r13.isRequired)("label", question_r13.label);
544
- }
545
- }
546
- function UCSearchComponent_div_21_div_9_Template(rf, ctx) {
547
- if (rf & 1) {
548
- i0.ɵɵelementStart(0, "div");
549
- i0.ɵɵtemplate(1, UCSearchComponent_div_21_div_9_div_1_Template, 2, 24, "div", 33);
550
- i0.ɵɵtemplate(2, UCSearchComponent_div_21_div_9_div_2_Template, 2, 17, "div", 33);
551
- i0.ɵɵelementEnd();
552
- }
553
- if (rf & 2) {
554
- var question_r13 = i0.ɵɵnextContext().$implicit;
555
- i0.ɵɵadvance(1);
556
- i0.ɵɵproperty("ngIf", (question_r13 == null ? null : question_r13.isCustom) != undefined && (question_r13 == null ? null : question_r13.isCustom));
557
- i0.ɵɵadvance(1);
558
- i0.ɵɵproperty("ngIf", (question_r13 == null ? null : question_r13.isCustom) == undefined || !(question_r13 == null ? null : question_r13.isCustom));
559
- }
560
- }
561
- function UCSearchComponent_div_21_div_10_Template(rf, ctx) {
562
- if (rf & 1) {
563
- var _r49 = i0.ɵɵgetCurrentView();
564
- i0.ɵɵelementStart(0, "div");
565
- i0.ɵɵelementStart(1, "input", 40);
566
- i0.ɵɵlistener("keyup.enter", function UCSearchComponent_div_21_div_10_Template_input_keyup_enter_1_listener() { i0.ɵɵrestoreView(_r49); var ctx_r48 = i0.ɵɵnextContext(2); return ctx_r48.searchClick(); })("focusout", function UCSearchComponent_div_21_div_10_Template_input_focusout_1_listener() { i0.ɵɵrestoreView(_r49); var question_r13 = i0.ɵɵnextContext().$implicit; var ctx_r50 = i0.ɵɵnextContext(); return question_r13.restriction != undefined && ctx_r50.checkInputDate(question_r13); });
567
- i0.ɵɵpipe(2, "date");
568
- i0.ɵɵpipe(3, "date");
569
- i0.ɵɵelementEnd();
570
- i0.ɵɵelementEnd();
571
- }
572
- if (rf & 2) {
573
- var ctx_r52 = i0.ɵɵnextContext();
574
- var question_r13 = ctx_r52.$implicit;
575
- var i_r14 = ctx_r52.index;
576
- i0.ɵɵnextContext();
577
- var _r2 = i0.ɵɵreference(9);
578
- i0.ɵɵadvance(1);
579
- i0.ɵɵpropertyInterpolate("type", question_r13.isTime ? "datetime-local" : "date");
580
- i0.ɵɵpropertyInterpolate("id", question_r13.id);
581
- i0.ɵɵpropertyInterpolate("name", question_r13.name + i0.ɵɵpureFunction1(23, _c3, i_r14));
582
- i0.ɵɵpropertyInterpolate("value", question_r13.value);
583
- i0.ɵɵpropertyInterpolate("min", i0.ɵɵpipeBind2(2, 17, question_r13.minDate, "yyyy-MM-dd"));
584
- i0.ɵɵpropertyInterpolate("max", i0.ɵɵpipeBind2(3, 20, question_r13.maxDate, "yyyy-MM-dd"));
585
- i0.ɵɵproperty("ngModel", question_r13.value)("required", question_r13.isRequired)("readonly", question_r13.readonly)("ngClass", i0.ɵɵpureFunction1(37, _c2, (_r2.submitted || (_r2.form.controls[question_r13.name + i0.ɵɵpureFunction1(25, _c3, i_r14)] == null ? null : _r2.form.controls[question_r13.name + i0.ɵɵpureFunction1(27, _c3, i_r14)].touched) || (_r2.form.controls[question_r13.name + i0.ɵɵpureFunction1(29, _c3, i_r14)] == null ? null : _r2.form.controls[question_r13.name + i0.ɵɵpureFunction1(31, _c3, i_r14)].dirty)) && (_r2.form.controls[question_r13.name + i0.ɵɵpureFunction1(33, _c3, i_r14)] == null ? null : _r2.form.controls[question_r13.name + i0.ɵɵpureFunction1(35, _c3, i_r14)].invalid)));
586
- i0.ɵɵattribute("data-required", question_r13.isRequired)("data-type", question_r13.datatype)("data-name", question_r13.name)("data-datepickerpair", question_r13.datepickerPair)("data-crit-datatable", question_r13.isCriteriaDataTable)("data-restriction", question_r13.restriction)("label", question_r13.label);
587
- }
588
- }
589
- function UCSearchComponent_div_21_div_11_option_2_Template(rf, ctx) {
590
- if (rf & 1) {
591
- i0.ɵɵelementStart(0, "option", 45);
592
- i0.ɵɵtext(1, "Select One");
593
- i0.ɵɵelementEnd();
594
- }
595
- }
596
- function UCSearchComponent_div_21_div_11_option_3_Template(rf, ctx) {
597
- if (rf & 1) {
598
- i0.ɵɵelementStart(0, "option", 46);
599
- i0.ɵɵtext(1, "All");
600
- i0.ɵɵelementEnd();
601
- }
602
- }
603
- function UCSearchComponent_div_21_div_11_option_4_Template(rf, ctx) {
604
- if (rf & 1) {
605
- i0.ɵɵelementStart(0, "option", 47);
606
- i0.ɵɵtext(1);
607
- i0.ɵɵelementEnd();
608
- }
609
- if (rf & 2) {
610
- var item_r57 = ctx.$implicit;
611
- i0.ɵɵpropertyInterpolate("value", item_r57.Key);
612
- i0.ɵɵadvance(1);
613
- i0.ɵɵtextInterpolate1(" ", item_r57.Value, " ");
614
- }
615
- }
616
- function UCSearchComponent_div_21_div_11_label_5_Template(rf, ctx) {
617
- if (rf & 1) {
618
- i0.ɵɵelementStart(0, "label");
619
- i0.ɵɵtext(1);
620
- i0.ɵɵelementEnd();
621
- }
622
- if (rf & 2) {
623
- var question_r13 = i0.ɵɵnextContext(2).$implicit;
624
- i0.ɵɵadvance(1);
625
- i0.ɵɵtextInterpolate(question_r13.itemsUrl[0].Value);
626
- }
627
- }
628
- function UCSearchComponent_div_21_div_11_Template(rf, ctx) {
629
- if (rf & 1) {
630
- var _r61 = i0.ɵɵgetCurrentView();
631
- i0.ɵɵelementStart(0, "div");
632
- i0.ɵɵelementStart(1, "select", 41);
633
- i0.ɵɵlistener("change", function UCSearchComponent_div_21_div_11_Template_select_change_1_listener() { i0.ɵɵrestoreView(_r61); var ctx_r60 = i0.ɵɵnextContext(); var question_r13 = ctx_r60.$implicit; var i_r14 = ctx_r60.index; var ctx_r59 = i0.ɵɵnextContext(); return question_r13.type == "taskDefinitionKey" || question_r13.type == "processKey" ? ctx_r59.SetProcessKey(i_r14, question_r13.wfKeyFilter) : ctx_r59.SetRoleOfficeCodes(i_r14); });
634
- i0.ɵɵtemplate(2, UCSearchComponent_div_21_div_11_option_2_Template, 2, 0, "option", 42);
635
- i0.ɵɵtemplate(3, UCSearchComponent_div_21_div_11_option_3_Template, 2, 0, "option", 43);
636
- i0.ɵɵtemplate(4, UCSearchComponent_div_21_div_11_option_4_Template, 2, 2, "option", 44);
637
- i0.ɵɵelementEnd();
638
- i0.ɵɵtemplate(5, UCSearchComponent_div_21_div_11_label_5_Template, 2, 1, "label", 33);
639
- i0.ɵɵelementEnd();
640
- }
641
- if (rf & 2) {
642
- var question_r13 = i0.ɵɵnextContext().$implicit;
643
- i0.ɵɵnextContext();
644
- var _r2 = i0.ɵɵreference(9);
645
- i0.ɵɵadvance(1);
646
- i0.ɵɵpropertyInterpolate("name", question_r13.name);
647
- i0.ɵɵproperty("required", question_r13.isRequired)("hidden", (question_r13 == null ? null : question_r13.itemsUrl == null ? null : question_r13.itemsUrl.length) == 1)("ngClass", i0.ɵɵpureFunction1(12, _c2, (_r2.submitted || (_r2.form.controls[question_r13.name] == null ? null : _r2.form.controls[question_r13.name].touched) || (_r2.form.controls[question_r13.name] == null ? null : _r2.form.controls[question_r13.name].dirty)) && (_r2.form.controls[question_r13.name] == null ? null : _r2.form.controls[question_r13.name].invalid)));
648
- i0.ɵɵattribute("data-required", question_r13.isRequired)("query-in", question_r13.isQueryIn)("data-type", question_r13.datatype)("label", question_r13.label);
649
- i0.ɵɵadvance(1);
650
- i0.ɵɵproperty("ngIf", question_r13.ddlType == "one" && (question_r13 == null ? null : question_r13.itemsUrl == null ? null : question_r13.itemsUrl.length) != 1);
651
- i0.ɵɵadvance(1);
652
- i0.ɵɵproperty("ngIf", ((question_r13 == null ? null : question_r13.ddlType) == undefined || question_r13.ddlType == "all") && (question_r13 == null ? null : question_r13.itemsUrl == null ? null : question_r13.itemsUrl.length) != 1);
653
- i0.ɵɵadvance(1);
654
- i0.ɵɵproperty("ngForOf", question_r13 == null ? null : question_r13.itemsUrl);
655
- i0.ɵɵadvance(1);
656
- i0.ɵɵproperty("ngIf", (question_r13 == null ? null : question_r13.itemsUrl == null ? null : question_r13.itemsUrl.length) == 1);
657
- }
658
- }
659
- function UCSearchComponent_div_21_div_12_option_2_Template(rf, ctx) {
660
- if (rf & 1) {
661
- i0.ɵɵelementStart(0, "option", 45);
662
- i0.ɵɵtext(1, " Select One");
663
- i0.ɵɵelementEnd();
664
- }
665
- }
666
- function UCSearchComponent_div_21_div_12_option_3_Template(rf, ctx) {
667
- if (rf & 1) {
668
- i0.ɵɵelementStart(0, "option", 46);
669
- i0.ɵɵtext(1, "All");
670
- i0.ɵɵelementEnd();
671
- }
672
- }
673
- function UCSearchComponent_div_21_div_12_option_4_Template(rf, ctx) {
674
- if (rf & 1) {
675
- i0.ɵɵelementStart(0, "option", 47);
676
- i0.ɵɵtext(1);
677
- i0.ɵɵelementEnd();
678
- }
679
- if (rf & 2) {
680
- var item_r67 = ctx.$implicit;
681
- var question_r13 = i0.ɵɵnextContext(2).$implicit;
682
- i0.ɵɵpropertyInterpolate("value", !question_r13.isFromURL ? item_r67.key : item_r67.Key);
683
- i0.ɵɵadvance(1);
684
- i0.ɵɵtextInterpolate1(" ", !question_r13.isFromURL ? item_r67.value : item_r67.Value, " ");
685
- }
686
- }
687
- function UCSearchComponent_div_21_div_12_label_5_Template(rf, ctx) {
688
- if (rf & 1) {
689
- i0.ɵɵelementStart(0, "label");
690
- i0.ɵɵtext(1);
691
- i0.ɵɵelementEnd();
692
- }
693
- if (rf & 2) {
694
- var question_r13 = i0.ɵɵnextContext(2).$implicit;
695
- i0.ɵɵadvance(1);
696
- i0.ɵɵtextInterpolate(!question_r13.isFromURL ? question_r13.items[0].value : question_r13.itemsUrl[0].Value);
697
- }
698
- }
699
- function UCSearchComponent_div_21_div_12_Template(rf, ctx) {
700
- if (rf & 1) {
701
- var _r72 = i0.ɵɵgetCurrentView();
702
- i0.ɵɵelementStart(0, "div");
703
- i0.ɵɵelementStart(1, "select", 48);
704
- i0.ɵɵlistener("ngModelChange", function UCSearchComponent_div_21_div_12_Template_select_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r72); var question_r13 = i0.ɵɵnextContext().$implicit; return question_r13.value = $event; })("change", function UCSearchComponent_div_21_div_12_Template_select_change_1_listener($event) { i0.ɵɵrestoreView(_r72); var question_r13 = i0.ɵɵnextContext().$implicit; var ctx_r73 = i0.ɵɵnextContext(); return question_r13.isEvent ? ctx_r73.onChangeEvent($event.target.value, question_r13) : ""; });
705
- i0.ɵɵtemplate(2, UCSearchComponent_div_21_div_12_option_2_Template, 2, 0, "option", 42);
706
- i0.ɵɵtemplate(3, UCSearchComponent_div_21_div_12_option_3_Template, 2, 0, "option", 43);
707
- i0.ɵɵtemplate(4, UCSearchComponent_div_21_div_12_option_4_Template, 2, 2, "option", 44);
708
- i0.ɵɵelementEnd();
709
- i0.ɵɵtemplate(5, UCSearchComponent_div_21_div_12_label_5_Template, 2, 1, "label", 33);
710
- i0.ɵɵelementEnd();
711
- }
712
- if (rf & 2) {
713
- var question_r13 = i0.ɵɵnextContext().$implicit;
714
- i0.ɵɵnextContext();
715
- var _r2 = i0.ɵɵreference(9);
716
- i0.ɵɵadvance(1);
717
- i0.ɵɵpropertyInterpolate("name", question_r13.name);
718
- i0.ɵɵproperty("ngModel", question_r13.value)("required", question_r13.isRequired)("hidden", !question_r13.isFromURL ? (question_r13 == null ? null : question_r13.items == null ? null : question_r13.items.length) == 1 : (question_r13 == null ? null : question_r13.itemsUrl == null ? null : question_r13.itemsUrl.length) == 1)("ngClass", i0.ɵɵpureFunction1(15, _c2, (_r2.submitted || (_r2.form.controls[question_r13.name] == null ? null : _r2.form.controls[question_r13.name].touched) || (_r2.form.controls[question_r13.name] == null ? null : _r2.form.controls[question_r13.name].dirty)) && (_r2.form.controls[question_r13.name] == null ? null : _r2.form.controls[question_r13.name].invalid)));
719
- i0.ɵɵattribute("data-required", question_r13.isRequired)("query-in", question_r13.isQueryIn)("data-type", question_r13.datatype)("data-name", question_r13.name)("label", question_r13.label)("data-crit-datatable", question_r13.isCriteriaDataTable);
720
- i0.ɵɵadvance(1);
721
- i0.ɵɵproperty("ngIf", question_r13.ddlType == "one" && (!question_r13.isFromURL ? (question_r13 == null ? null : question_r13.items == null ? null : question_r13.items.length) != 1 : (question_r13 == null ? null : question_r13.itemsUrl == null ? null : question_r13.itemsUrl.length) != 1));
722
- i0.ɵɵadvance(1);
723
- i0.ɵɵproperty("ngIf", ((question_r13 == null ? null : question_r13.ddlType) == undefined || question_r13.ddlType == "all") && (!question_r13.isFromURL ? (question_r13 == null ? null : question_r13.items == null ? null : question_r13.items.length) != 1 : (question_r13 == null ? null : question_r13.itemsUrl == null ? null : question_r13.itemsUrl.length) != 1));
724
- i0.ɵɵadvance(1);
725
- i0.ɵɵproperty("ngForOf", !question_r13.isFromURL ? question_r13 == null ? null : question_r13.items : question_r13 == null ? null : question_r13.itemsUrl);
726
- i0.ɵɵadvance(1);
727
- i0.ɵɵproperty("ngIf", !question_r13.isFromURL ? (question_r13 == null ? null : question_r13.items == null ? null : question_r13.items.length) == 1 : (question_r13 == null ? null : question_r13.itemsUrl == null ? null : question_r13.itemsUrl.length) == 1);
728
- }
729
- }
730
- function UCSearchComponent_div_21_div_13_label_3_Template(rf, ctx) {
731
- if (rf & 1) {
732
- i0.ɵɵelementStart(0, "label");
733
- i0.ɵɵtext(1);
734
- i0.ɵɵelementEnd();
735
- }
736
- if (rf & 2) {
737
- var question_r13 = i0.ɵɵnextContext(2).$implicit;
738
- i0.ɵɵadvance(1);
739
- i0.ɵɵtextInterpolate(question_r13.descr);
740
- }
741
- }
742
- function UCSearchComponent_div_21_div_13_option_8_Template(rf, ctx) {
743
- if (rf & 1) {
744
- var _r83 = i0.ɵɵgetCurrentView();
745
- i0.ɵɵelementStart(0, "option", 58);
746
- i0.ɵɵlistener("click", function UCSearchComponent_div_21_div_13_option_8_Template_option_click_0_listener() { i0.ɵɵrestoreView(_r83); var question_r13 = i0.ɵɵnextContext(2).$implicit; var ctx_r81 = i0.ɵɵnextContext(); return ctx_r81.selectedOption({ Key: "one", Value: "Select One" }, question_r13); });
747
- i0.ɵɵtext(1, " Select One");
748
- i0.ɵɵelementEnd();
749
- }
750
- }
751
- function UCSearchComponent_div_21_div_13_option_9_Template(rf, ctx) {
752
- if (rf & 1) {
753
- var _r86 = i0.ɵɵgetCurrentView();
754
- i0.ɵɵelementStart(0, "option", 59);
755
- i0.ɵɵlistener("click", function UCSearchComponent_div_21_div_13_option_9_Template_option_click_0_listener() { i0.ɵɵrestoreView(_r86); var question_r13 = i0.ɵɵnextContext(2).$implicit; var ctx_r84 = i0.ɵɵnextContext(); return ctx_r84.selectedOption({ Key: "all", Value: "All" }, question_r13); });
756
- i0.ɵɵtext(1, "All");
757
- i0.ɵɵelementEnd();
758
- }
759
- }
760
- function UCSearchComponent_div_21_div_13_option_10_Template(rf, ctx) {
761
- if (rf & 1) {
762
- var _r90 = i0.ɵɵgetCurrentView();
763
- i0.ɵɵelementStart(0, "option", 60);
764
- i0.ɵɵlistener("click", function UCSearchComponent_div_21_div_13_option_10_Template_option_click_0_listener() { i0.ɵɵrestoreView(_r90); var item_r87 = ctx.$implicit; var question_r13 = i0.ɵɵnextContext(2).$implicit; var ctx_r88 = i0.ɵɵnextContext(); return ctx_r88.selectedOption(item_r87, question_r13); });
765
- i0.ɵɵtext(1);
766
- i0.ɵɵelementEnd();
767
- }
768
- if (rf & 2) {
769
- var item_r87 = ctx.$implicit;
770
- i0.ɵɵpropertyInterpolate("value", item_r87.Key);
771
- i0.ɵɵadvance(1);
772
- i0.ɵɵtextInterpolate1(" ", item_r87.Value, " ");
773
- }
774
- }
775
- function UCSearchComponent_div_21_div_13_Template(rf, ctx) {
776
- if (rf & 1) {
777
- var _r93 = i0.ɵɵgetCurrentView();
778
- i0.ɵɵelementStart(0, "div");
779
- i0.ɵɵelementStart(1, "div", 49);
780
- i0.ɵɵelementStart(2, "input", 50);
781
- i0.ɵɵlistener("ngModelChange", function UCSearchComponent_div_21_div_13_Template_input_ngModelChange_2_listener($event) { i0.ɵɵrestoreView(_r93); var question_r13 = i0.ɵɵnextContext().$implicit; return question_r13.descr = $event; })("click", function UCSearchComponent_div_21_div_13_Template_input_click_2_listener() { i0.ɵɵrestoreView(_r93); var question_r13 = i0.ɵɵnextContext().$implicit; question_r13.isListHide = !question_r13.isListHide; return question_r13.searchText = ""; });
782
- i0.ɵɵelementEnd();
783
- i0.ɵɵelementEnd();
784
- i0.ɵɵtemplate(3, UCSearchComponent_div_21_div_13_label_3_Template, 2, 1, "label", 33);
785
- i0.ɵɵelementStart(4, "div", 51);
786
- i0.ɵɵelementStart(5, "input", 52);
787
- i0.ɵɵlistener("ngModelChange", function UCSearchComponent_div_21_div_13_Template_input_ngModelChange_5_listener($event) { i0.ɵɵrestoreView(_r93); var question_r13 = i0.ɵɵnextContext().$implicit; return question_r13.searchText = $event; });
788
- i0.ɵɵelementEnd();
789
- i0.ɵɵelementStart(6, "div", 53);
790
- i0.ɵɵelementStart(7, "select", 54);
791
- i0.ɵɵlistener("ngModelChange", function UCSearchComponent_div_21_div_13_Template_select_ngModelChange_7_listener($event) { i0.ɵɵrestoreView(_r93); var question_r13 = i0.ɵɵnextContext().$implicit; return question_r13.value = $event; })("change", function UCSearchComponent_div_21_div_13_Template_select_change_7_listener($event) { i0.ɵɵrestoreView(_r93); var question_r13 = i0.ɵɵnextContext().$implicit; var ctx_r100 = i0.ɵɵnextContext(); return question_r13.isEvent ? ctx_r100.onChangeEvent($event.target.value, question_r13) : ""; });
792
- i0.ɵɵtemplate(8, UCSearchComponent_div_21_div_13_option_8_Template, 2, 0, "option", 55);
793
- i0.ɵɵtemplate(9, UCSearchComponent_div_21_div_13_option_9_Template, 2, 0, "option", 56);
794
- i0.ɵɵtemplate(10, UCSearchComponent_div_21_div_13_option_10_Template, 2, 2, "option", 57);
795
- i0.ɵɵpipe(11, "textSearch");
796
- i0.ɵɵpipe(12, "textSearch");
797
- i0.ɵɵelementEnd();
798
- i0.ɵɵelementEnd();
799
- i0.ɵɵelementEnd();
800
- i0.ɵɵelementEnd();
801
- }
802
- if (rf & 2) {
803
- var question_r13 = i0.ɵɵnextContext().$implicit;
804
- i0.ɵɵnextContext();
805
- var _r2 = i0.ɵɵreference(9);
806
- i0.ɵɵadvance(1);
807
- i0.ɵɵproperty("hidden", !question_r13.isFromURL ? (question_r13 == null ? null : question_r13.items == null ? null : question_r13.items.length) == 1 : (question_r13 == null ? null : question_r13.itemsUrl == null ? null : question_r13.itemsUrl.length) == 1);
808
- i0.ɵɵadvance(1);
809
- i0.ɵɵpropertyInterpolate("name", "ddsValue" + question_r13.name);
810
- i0.ɵɵproperty("ngModel", question_r13.descr);
811
- i0.ɵɵadvance(1);
812
- i0.ɵɵproperty("ngIf", !question_r13.isFromURL ? (question_r13 == null ? null : question_r13.items == null ? null : question_r13.items.length) == 1 : (question_r13 == null ? null : question_r13.itemsUrl == null ? null : question_r13.itemsUrl.length) == 1);
813
- i0.ɵɵadvance(1);
814
- i0.ɵɵproperty("hidden", question_r13.isListHide);
815
- i0.ɵɵadvance(1);
816
- i0.ɵɵpropertyInterpolate("name", "searchText" + question_r13.name);
817
- i0.ɵɵproperty("ngModel", question_r13.searchText)("placeholder", question_r13.placeholder);
818
- i0.ɵɵadvance(2);
819
- i0.ɵɵpropertyInterpolate("name", question_r13.name);
820
- i0.ɵɵpropertyInterpolate("size", (question_r13 == null ? null : question_r13.size) == undefined ? question_r13 == null ? null : question_r13.size : 10);
821
- i0.ɵɵproperty("ngModel", question_r13.value)("required", question_r13.isRequired)("ngClass", i0.ɵɵpureFunction1(28, _c2, (_r2.submitted || (_r2.form.controls[question_r13.name] == null ? null : _r2.form.controls[question_r13.name].touched) || (_r2.form.controls[question_r13.name] == null ? null : _r2.form.controls[question_r13.name].dirty)) && (_r2.form.controls[question_r13.name] == null ? null : _r2.form.controls[question_r13.name].invalid)));
822
- i0.ɵɵattribute("data-required", question_r13.isRequired)("query-in", question_r13.isQueryIn)("data-type", question_r13.datatype)("data-name", question_r13.name)("label", question_r13.label)("data-crit-datatable", question_r13.isCriteriaDataTable);
823
- i0.ɵɵadvance(1);
824
- i0.ɵɵproperty("ngIf", question_r13.ddsType == "one" && (!question_r13.isFromURL ? (question_r13 == null ? null : question_r13.items == null ? null : question_r13.items.length) != 1 : (question_r13 == null ? null : question_r13.itemsUrl == null ? null : question_r13.itemsUrl.length) != 1));
825
- i0.ɵɵadvance(1);
826
- i0.ɵɵproperty("ngIf", ((question_r13 == null ? null : question_r13.ddsType) == undefined || question_r13.ddsType == "all") && (!question_r13.isFromURL ? (question_r13 == null ? null : question_r13.items == null ? null : question_r13.items.length) != 1 : (question_r13 == null ? null : question_r13.itemsUrl == null ? null : question_r13.itemsUrl.length) != 1));
827
- i0.ɵɵadvance(1);
828
- i0.ɵɵproperty("ngForOf", !question_r13.isFromURL ? i0.ɵɵpipeBind2(11, 22, question_r13 == null ? null : question_r13.items, question_r13.searchText) : i0.ɵɵpipeBind2(12, 25, question_r13 == null ? null : question_r13.itemsUrl, question_r13.searchText));
829
- }
830
- }
831
- function UCSearchComponent_div_21_div_14_option_2_Template(rf, ctx) {
832
- if (rf & 1) {
833
- i0.ɵɵelementStart(0, "option", 45);
834
- i0.ɵɵtext(1, "Select One");
835
- i0.ɵɵelementEnd();
836
- }
837
- }
838
- function UCSearchComponent_div_21_div_14_option_3_Template(rf, ctx) {
839
- if (rf & 1) {
840
- i0.ɵɵelementStart(0, "option", 46);
841
- i0.ɵɵtext(1, "All");
842
- i0.ɵɵelementEnd();
843
- }
844
- }
845
- function UCSearchComponent_div_21_div_14_option_4_Template(rf, ctx) {
846
- if (rf & 1) {
847
- i0.ɵɵelementStart(0, "option", 47);
848
- i0.ɵɵtext(1);
849
- i0.ɵɵelementEnd();
850
- }
851
- if (rf & 2) {
852
- var item_r106 = ctx.$implicit;
853
- i0.ɵɵpropertyInterpolate("value", item_r106.Key);
854
- i0.ɵɵadvance(1);
855
- i0.ɵɵtextInterpolate1(" ", item_r106.Value, " ");
856
- }
857
- }
858
- function UCSearchComponent_div_21_div_14_Template(rf, ctx) {
859
- if (rf & 1) {
860
- i0.ɵɵelementStart(0, "div");
861
- i0.ɵɵelementStart(1, "select", 61);
862
- i0.ɵɵtemplate(2, UCSearchComponent_div_21_div_14_option_2_Template, 2, 0, "option", 42);
863
- i0.ɵɵtemplate(3, UCSearchComponent_div_21_div_14_option_3_Template, 2, 0, "option", 43);
864
- i0.ɵɵtemplate(4, UCSearchComponent_div_21_div_14_option_4_Template, 2, 2, "option", 44);
865
- i0.ɵɵelementEnd();
866
- i0.ɵɵelementEnd();
867
- }
868
- if (rf & 2) {
869
- var ctx_r107 = i0.ɵɵnextContext();
870
- var i_r14 = ctx_r107.index;
871
- var question_r13 = ctx_r107.$implicit;
872
- var ctx_r23 = i0.ɵɵnextContext();
873
- var _r2 = i0.ɵɵreference(9);
874
- i0.ɵɵadvance(1);
875
- i0.ɵɵpropertyInterpolate("name", "claim" + i0.ɵɵpureFunction1(9, _c3, i_r14));
876
- i0.ɵɵproperty("hidden", (ctx_r23.ClaimList == null ? null : ctx_r23.ClaimList.length) == 1)("ngClass", i0.ɵɵpureFunction1(23, _c2, (_r2.submitted || (_r2.form.controls["claim" + i0.ɵɵpureFunction1(11, _c3, i_r14)] == null ? null : _r2.form.controls["claim" + i0.ɵɵpureFunction1(13, _c3, i_r14)].touched) || (_r2.form.controls["claim" + i0.ɵɵpureFunction1(15, _c3, i_r14)] == null ? null : _r2.form.controls["claim" + i0.ɵɵpureFunction1(17, _c3, i_r14)].dirty)) && (_r2.form.controls["claim" + i0.ɵɵpureFunction1(19, _c3, i_r14)] == null ? null : _r2.form.controls["claim" + i0.ɵɵpureFunction1(21, _c3, i_r14)].invalid)));
877
- i0.ɵɵattribute("data-type", "text")("data-crit-datatable", question_r13.isCriteriaDataTable)("data-name", "Assignee");
878
- i0.ɵɵadvance(1);
879
- i0.ɵɵproperty("ngIf", question_r13.ddlType == "one" && (ctx_r23.ClaimList == null ? null : ctx_r23.ClaimList.length) != 1);
880
- i0.ɵɵadvance(1);
881
- i0.ɵɵproperty("ngIf", ((question_r13 == null ? null : question_r13.ddlType) == undefined || question_r13.ddlType == "all") && (ctx_r23.ClaimList == null ? null : ctx_r23.ClaimList.length) != 1);
882
- i0.ɵɵadvance(1);
883
- i0.ɵɵproperty("ngForOf", ctx_r23.ClaimList);
884
- }
885
- }
886
- function UCSearchComponent_div_21_lib_uc_show_errors_15_Template(rf, ctx) {
887
- if (rf & 1) {
888
- i0.ɵɵelement(0, "lib-uc-show-errors", 62);
889
- }
890
- if (rf & 2) {
891
- var question_r13 = i0.ɵɵnextContext().$implicit;
892
- i0.ɵɵnextContext();
893
- var _r2 = i0.ɵɵreference(9);
894
- i0.ɵɵproperty("control", _r2.form.controls[question_r13.name])("submit", _r2.submitted);
895
- }
896
- }
897
- function UCSearchComponent_div_21_lib_uc_show_errors_16_Template(rf, ctx) {
898
- if (rf & 1) {
899
- i0.ɵɵelement(0, "lib-uc-show-errors", 62);
900
- }
901
- if (rf & 2) {
902
- var ctx_r109 = i0.ɵɵnextContext();
903
- var question_r13 = ctx_r109.$implicit;
904
- var i_r14 = ctx_r109.index;
905
- i0.ɵɵnextContext();
906
- var _r2 = i0.ɵɵreference(9);
907
- i0.ɵɵproperty("control", _r2.form.controls[question_r13.name + i0.ɵɵpureFunction1(2, _c3, i_r14)])("submit", _r2.submitted);
908
- }
909
- }
910
- var _c7 = function (a0) { return { "adins-required-label": a0 }; };
911
- function UCSearchComponent_div_21_Template(rf, ctx) {
912
- if (rf & 1) {
913
- i0.ɵɵelementStart(0, "div", 30);
914
- i0.ɵɵelementStart(1, "div", 2);
915
- i0.ɵɵelementStart(2, "div", 17);
916
- i0.ɵɵelementStart(3, "label", 31);
917
- i0.ɵɵtext(4);
918
- i0.ɵɵelementEnd();
919
- i0.ɵɵelementStart(5, "div", 32);
920
- i0.ɵɵtemplate(6, UCSearchComponent_div_21_div_6_Template, 2, 14, "div", 33);
921
- i0.ɵɵtemplate(7, UCSearchComponent_div_21_div_7_Template, 2, 12, "div", 33);
922
- i0.ɵɵtemplate(8, UCSearchComponent_div_21_div_8_Template, 2, 29, "div", 33);
923
- i0.ɵɵtemplate(9, UCSearchComponent_div_21_div_9_Template, 3, 2, "div", 33);
924
- i0.ɵɵtemplate(10, UCSearchComponent_div_21_div_10_Template, 4, 39, "div", 33);
925
- i0.ɵɵtemplate(11, UCSearchComponent_div_21_div_11_Template, 6, 14, "div", 33);
926
- i0.ɵɵtemplate(12, UCSearchComponent_div_21_div_12_Template, 6, 17, "div", 33);
927
- i0.ɵɵtemplate(13, UCSearchComponent_div_21_div_13_Template, 13, 30, "div", 33);
928
- i0.ɵɵtemplate(14, UCSearchComponent_div_21_div_14_Template, 5, 25, "div", 33);
929
- i0.ɵɵtemplate(15, UCSearchComponent_div_21_lib_uc_show_errors_15_Template, 1, 2, "lib-uc-show-errors", 34);
930
- i0.ɵɵtemplate(16, UCSearchComponent_div_21_lib_uc_show_errors_16_Template, 1, 4, "lib-uc-show-errors", 34);
931
- i0.ɵɵelementEnd();
932
- i0.ɵɵelementEnd();
933
- i0.ɵɵelementEnd();
934
- i0.ɵɵelementEnd();
935
- }
936
- if (rf & 2) {
937
- var question_r13 = ctx.$implicit;
938
- i0.ɵɵadvance(3);
939
- i0.ɵɵpropertyInterpolate("for", question_r13.id);
940
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(14, _c7, question_r13.isRequired || (question_r13 == null ? null : question_r13.ddlType) != undefined && question_r13.ddlType == "one"));
941
- i0.ɵɵadvance(1);
942
- i0.ɵɵtextInterpolate(question_r13.label);
943
- i0.ɵɵadvance(2);
944
- i0.ɵɵproperty("ngIf", question_r13.type == "textbox");
945
- i0.ɵɵadvance(1);
946
- i0.ɵɵproperty("ngIf", question_r13.type == "textarea");
947
- i0.ɵɵadvance(1);
948
- i0.ɵɵproperty("ngIf", question_r13.type == "numeric");
949
- i0.ɵɵadvance(1);
950
- i0.ɵɵproperty("ngIf", question_r13.type == "currency");
951
- i0.ɵɵadvance(1);
952
- i0.ɵɵproperty("ngIf", question_r13.type == "datepicker");
953
- i0.ɵɵadvance(1);
954
- i0.ɵɵproperty("ngIf", question_r13.type == "taskDefinitionKey" || question_r13.type == "processKey" || question_r13.type == "officeRoleCodes");
955
- i0.ɵɵadvance(1);
956
- i0.ɵɵproperty("ngIf", question_r13.type == "dropdown");
957
- i0.ɵɵadvance(1);
958
- i0.ɵɵproperty("ngIf", question_r13.type == "dropdownSearch");
959
- i0.ɵɵadvance(1);
960
- i0.ɵɵproperty("ngIf", question_r13.type == "claim");
961
- i0.ɵɵadvance(1);
962
- i0.ɵɵproperty("ngIf", question_r13.type != "datepicker");
963
- i0.ɵɵadvance(1);
964
- i0.ɵɵproperty("ngIf", question_r13.type == "datepicker");
965
- }
966
- }
967
- function UCSearchComponent_div_22_option_7_Template(rf, ctx) {
968
- if (rf & 1) {
969
- i0.ɵɵelementStart(0, "option", 47);
970
- i0.ɵɵtext(1);
971
- i0.ɵɵelementEnd();
972
- }
973
- if (rf & 2) {
974
- var item_r111 = ctx.$implicit;
975
- i0.ɵɵproperty("value", item_r111.key);
976
- i0.ɵɵadvance(1);
977
- i0.ɵɵtextInterpolate(item_r111.value);
978
- }
979
- }
980
- function UCSearchComponent_div_22_Template(rf, ctx) {
981
- if (rf & 1) {
982
- var _r113 = i0.ɵɵgetCurrentView();
983
- i0.ɵɵelementStart(0, "div", 30);
984
- i0.ɵɵelementStart(1, "div", 2);
985
- i0.ɵɵelementStart(2, "div", 17);
986
- i0.ɵɵelementStart(3, "label", 63);
987
- i0.ɵɵtext(4, "Report Type");
988
- i0.ɵɵelementEnd();
989
- i0.ɵɵelementStart(5, "div", 32);
990
- i0.ɵɵelementStart(6, "select", 64);
991
- i0.ɵɵlistener("ngModelChange", function UCSearchComponent_div_22_Template_select_ngModelChange_6_listener($event) { i0.ɵɵrestoreView(_r113); var ctx_r112 = i0.ɵɵnextContext(); return ctx_r112.ExportType = $event; });
992
- i0.ɵɵtemplate(7, UCSearchComponent_div_22_option_7_Template, 2, 2, "option", 44);
993
- i0.ɵɵelementEnd();
994
- i0.ɵɵelementEnd();
995
- i0.ɵɵelementEnd();
996
- i0.ɵɵelementEnd();
997
- i0.ɵɵelementEnd();
998
- }
999
- if (rf & 2) {
1000
- var ctx_r9 = i0.ɵɵnextContext();
1001
- i0.ɵɵadvance(6);
1002
- i0.ɵɵproperty("ngModel", ctx_r9.ExportType);
1003
- i0.ɵɵadvance(1);
1004
- i0.ɵɵproperty("ngForOf", ctx_r9.ExportTypeList);
1005
- }
1006
- }
1007
- function UCSearchComponent_button_25_Template(rf, ctx) {
1008
- if (rf & 1) {
1009
- var _r115 = i0.ɵɵgetCurrentView();
1010
- i0.ɵɵelementStart(0, "button", 65);
1011
- i0.ɵɵlistener("click", function UCSearchComponent_button_25_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r115); var ctx_r114 = i0.ɵɵnextContext(); return ctx_r114.exportAsXLSX(); });
1012
- i0.ɵɵelement(1, "i", 66);
1013
- i0.ɵɵtext(2, "\u00A0");
1014
- i0.ɵɵelementStart(3, "span", 25);
1015
- i0.ɵɵtext(4, "Export Excel");
1016
- i0.ɵɵelementEnd();
1017
- i0.ɵɵelementEnd();
1018
- }
1019
- }
1020
- function UCSearchComponent_button_31_Template(rf, ctx) {
1021
- if (rf & 1) {
1022
- i0.ɵɵelementStart(0, "button", 67, 68);
1023
- i0.ɵɵelement(2, "i", 69);
1024
- i0.ɵɵtext(3, "\u00A0");
1025
- i0.ɵɵelementStart(4, "span", 25);
1026
- i0.ɵɵtext(5, "Search");
1027
- i0.ɵɵelementEnd();
1028
- i0.ɵɵelementEnd();
1029
- }
1030
- }
1031
- function UCSearchComponent_button_32_Template(rf, ctx) {
1032
- if (rf & 1) {
1033
- var _r118 = i0.ɵɵgetCurrentView();
1034
- i0.ɵɵelementStart(0, "button", 70);
1035
- i0.ɵɵlistener("click", function UCSearchComponent_button_32_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r118); var ctx_r117 = i0.ɵɵnextContext(); return ctx_r117.GenerateReport(); });
1036
- i0.ɵɵelement(1, "i", 66);
1037
- i0.ɵɵtext(2, "\u00A0");
1038
- i0.ɵɵelementStart(3, "span", 25);
1039
- i0.ɵɵtext(4, "Generate Report");
1040
- i0.ɵɵelementEnd();
1041
- i0.ɵɵelementEnd();
1042
- }
1043
- }
1044
343
  var UCSearchComponent = /** @class */ (function () {
1045
- function UCSearchComponent(http, excelService, _renderer2, _document, toastr, cookieService, datePipe, elemRef) {
1046
- this.http = http;
344
+ function UCSearchComponent(http$$1, excelService, _renderer2, _document, toastr, cookieService, datePipe, elemRef) {
345
+ this.http = http$$1;
1047
346
  this.excelService = excelService;
1048
347
  this._renderer2 = _renderer2;
1049
348
  this._document = _document;
@@ -1304,7 +603,7 @@
1304
603
  }
1305
604
  dateShow = businessDate;
1306
605
  /** @type {?} */
1307
- var dateText = i5.formatDate(dateShow, 'yyyy-MM-dd', 'en-US');
606
+ var dateText = common.formatDate(dateShow, 'yyyy-MM-dd', 'en-US');
1308
607
  data.component[i].value = dateText;
1309
608
  }
1310
609
  if (_this.readonly = false) {
@@ -2276,16 +1575,16 @@
2276
1575
  }
2277
1576
  }
2278
1577
  if (minDateVal != null && maxDateVal == null && new Date(this.myForm.nativeElement[MinComponent.id].value) < minDateVal) {
2279
- this.toastr.warning(label[0] + errorMessage[0] + i5.formatDate(minDateVal, 'dd MMMM yyyy', 'en-US') + ".");
1578
+ this.toastr.warning(label[0] + errorMessage[0] + common.formatDate(minDateVal, 'dd MMMM yyyy', 'en-US') + ".");
2280
1579
  this.dateWrong = true;
2281
1580
  }
2282
1581
  else if (maxDateVal != null && minDateVal == null && new Date(this.myForm.nativeElement[MaxComponent.id].value) > maxDateVal) {
2283
- this.toastr.warning(label[0] + errorMessage[0] + i5.formatDate(maxDateVal, 'dd MMMM yyyy', 'en-US') + ".");
1582
+ this.toastr.warning(label[0] + errorMessage[0] + common.formatDate(maxDateVal, 'dd MMMM yyyy', 'en-US') + ".");
2284
1583
  this.dateWrong = true;
2285
1584
  }
2286
1585
  else if (minDateVal != null && maxDateVal != null) {
2287
1586
  if (new Date(this.myForm.nativeElement[MaxComponent.id].value) > maxDateVal || new Date(this.myForm.nativeElement[MinComponent.id].value) < minDateVal) {
2288
- this.toastr.warning(label[0] + errorMessage[0] + i5.formatDate(minDateVal, 'dd MMMM yyyy', 'en-US') + " and" + errorMessage[1] + i5.formatDate(maxDateVal, 'dd MMMM yyyy', 'en-US') + ".");
1587
+ this.toastr.warning(label[0] + errorMessage[0] + common.formatDate(minDateVal, 'dd MMMM yyyy', 'en-US') + " and" + errorMessage[1] + common.formatDate(maxDateVal, 'dd MMMM yyyy', 'en-US') + ".");
2289
1588
  this.dateWrong = true;
2290
1589
  }
2291
1590
  else {
@@ -2313,9 +1612,8 @@
2313
1612
  UCSearchComponent.decorators = [
2314
1613
  { type: i0.Component, args: [{
2315
1614
  selector: 'lib-UCSearch',
2316
- templateUrl: './ucsearch.component.html',
2317
- styleUrls: ['./ucsearch.component.css'],
2318
- providers: [ExcelService, i5.DatePipe],
1615
+ template: "<!-- Basic form layout section start -->\r\n<section id=\"horizontal-form-layouts\">\r\n <div class=\"row text-left\">\r\n <div class=\"col-md-12\">\r\n <div class=\"card\">\r\n <div class=\"pl-3 mb-2 mt-2\" *ngIf=\"configuration?.title != undefined && configuration?.title != ''\">\r\n <h4 class=\"card-title ucSearch-title\" translate>{{configuration.title}}</h4>\r\n </div>\r\n <div class=\"card-body\">\r\n <div class=\"px-3\">\r\n <form class=\"form form-horizontal\" id=\"formSearch\" #formIdSearch #enjiForm=\"ngForm\"\r\n (ngSubmit)=\"enjiForm.valid && searchClick()\">\r\n <div class=\"form-body\">\r\n <h4 class=\"form-section font-weight-bold\">\r\n <div (click)=\"changeState()\" class=\"btn no-padding cursor-pointer flip\">\r\n <i class=\"fa\" style=\"font-size: 15px; margin: 0px 0px 5px -15px;\"\r\n [ngClass]=\"isHidden ? 'fa-chevron-right' : 'fa-chevron-down'\"></i>\r\n </div>\r\n <span\r\n *ngIf=\"configuration?.sectionTitle != undefined && configuration?.sectionTitle != ''; then inputSectionTitle else defaultSectionTitle\"></span>\r\n <ng-template #inputSectionTitle>\r\n {{configuration?.sectionTitle}}\r\n </ng-template>\r\n <ng-template #defaultSectionTitle>\r\n Paging\r\n </ng-template>\r\n </h4>\r\n <!-- Ini Digunakan untuk Generate Dynamic Component -->\r\n <!-- [hidden]=\"isHidden\" -->\r\n <div class=\"panel-active\" [@changeDivSize]=currentState>\r\n <div class=\"row\">\r\n <div class=\"col-md-6 form-group\" *ngFor=\"let question of configuration?.component; let i = index\">\r\n <div class=\"col-md-12\">\r\n <div class=\"row\">\r\n <label class=\"col-md-5 no-padding\" for=\"{{question.id}}\"\r\n [ngClass]=\"{'adins-required-label': (question.isRequired || (question?.ddlType != undefined && question.ddlType == 'one'))}\"\r\n translate>{{question.label}}</label>\r\n <div class=\"col-md-7 no-padding\">\r\n <div *ngIf=\"question.type=='textbox'\">\r\n <input type=\"text\" id=\"{{question.id}}\" class=\"form-control search-form-control\"\r\n [ngModel]=\"question.value\" [required]=\"question.isRequired\" name=\"{{question.name}}\"\r\n attr.data-crit-datatable=\"{{question.isCriteriaDataTable}}\"\r\n attr.data-required=\"{{question.isRequired}}\" value=\"{{question.value}}\"\r\n (keyup.enter)=\"searchClick()\" attr.data-type=\"{{question.datatype}}\"\r\n attr.data-name=\"{{question.name}}\" attr.data-restriction=\"{{question.restriction}}\"\r\n attr.label=\"{{question.label}}\"\r\n [ngClass]=\"{ 'is-invalid':(enjiForm.submitted || enjiForm.form.controls[question.name]?.touched || enjiForm.form.controls[question.name]?.dirty) && enjiForm.form.controls[question.name]?.invalid }\">\r\n </div>\r\n <div *ngIf=\"question.type=='textarea'\">\r\n <textarea type=\"text\" id=\"{{question.id}}\" class=\"form-control search-form-control\"\r\n [ngModel]=\"question.value\" [required]=\"question.isRequired\" name=\"{{question.name}}\"\r\n attr.data-required=\"{{question.isRequired}}\" attr.data-type=\"{{question.datatype}}\"\r\n attr.data-name=\"{{question.name}}\" value=\"{{question.value}}\"\r\n attr.label=\"{{question.label}}\"\r\n [ngClass]=\"{ 'is-invalid':(enjiForm.submitted || enjiForm.form.controls[question.name]?.touched || enjiForm.form.controls[question.name]?.dirty) && enjiForm.form.controls[question.name]?.invalid }\"></textarea>\r\n </div>\r\n <div *ngIf=\"question.type=='numeric'\">\r\n <input type=\"number\" id=\"{{question.id}}\" (focus)=\"transformToDecimal($event)\"\r\n (blur)=\"transformAmount($event)\" class=\"form-control search-form-control\"\r\n [ngModel]=\"question.value\" [required]=\"question.isRequired\" name=\"{{question.name+[i]}}\"\r\n attr.data-required=\"{{question.isRequired}}\" value=\"{{question.value}}\"\r\n (keyup.enter)=\"searchClick()\" attr.data-restriction=\"{{question.restriction}}\"\r\n attr.data-type=\"{{question.datatype}}\" attr.data-name=\"{{question.name}}\"\r\n attr.data-numericpair=\"{{question.numericPair}}\"\r\n attr.data-crit-datatable=\"{{question.isCriteriaDataTable}}\"\r\n attr.label=\"{{question.label}}\"\r\n [ngClass]=\"{ 'is-invalid':(enjiForm.submitted || enjiForm.form.controls[question.name+[i]]?.touched || enjiForm.form.controls[question.name+[i]]?.dirty) && enjiForm.form.controls[question.name+[i]]?.invalid }\">\r\n </div>\r\n <div *ngIf=\"question.type=='currency'\">\r\n <div *ngIf=\"question?.isCustom != undefined && question?.isCustom\">\r\n <input type=\"\" id=\"{{question.id}}\" class=\"form-control search-form-control\"\r\n [required]=\"question.isRequired\" name=\"{{question.name}}\"\r\n (keyup.enter)=\"searchClick()\" attr.data-restriction=\"{{question.restriction}}\"\r\n attr.data-type=\"{{question.datatype}}\" attr.data-name=\"{{question.name}}\"\r\n attr.data-required=\"{{question.isRequired}}\" currencyMask [ngModel]=\"question.value\"\r\n [(ngModel)]=\"question.value\" [ngModelOptions]=\"{standalone: true}\"\r\n attr.label=\"{{question.label}}\"\r\n [options]=\"{ thousands: question.thousands, decimal: question.decimal, align: question.align, allowNegative: question.allowNegative, allowZero: question.allowZero, precision: question.precision, nullable: question.nullable }\"\r\n [ngClass]=\"{ 'is-invalid':(enjiForm.submitted || enjiForm.form.controls[question.name]?.touched || enjiForm.form.controls[question.name]?.dirty) && enjiForm.form.controls[question.name]?.invalid }\">\r\n </div>\r\n <div *ngIf=\"question?.isCustom == undefined || !question?.isCustom\">\r\n <input type=\"text\" id=\"{{question.id}}\" class=\"form-control search-form-control\"\r\n [required]=\"question.isRequired\" name=\"{{question.name}}\"\r\n (keyup.enter)=\"searchClick()\" attr.data-restriction=\"{{question.restriction}}\"\r\n attr.data-type=\"{{question.datatype}}\" attr.data-name=\"{{question.name}}\"\r\n attr.data-required=\"{{question.isRequired}}\" currencyMask [ngModel]=\"question.value\"\r\n [(ngModel)]=\"question.value\" [ngModelOptions]=\"{standalone: true}\"\r\n attr.label=\"{{question.label}}\"\r\n [options]=\"{ thousands: ',', decimal: '.', align: 'right', allowNegative: false, allowZero:true, precision: 2, nullable: false }\"\r\n [ngClass]=\"{ 'is-invalid':(enjiForm.submitted || enjiForm.form.controls[question.name]?.touched || enjiForm.form.controls[question.name]?.dirty) && enjiForm.form.controls[question.name]?.invalid }\">\r\n </div>\r\n </div>\r\n\r\n <!-- End Hardcode Lookup didalem-->\r\n <div *ngIf=\"question.type=='datepicker'\">\r\n <input type=\"{{question.isTime ? 'datetime-local' : 'date'}}\" id=\"{{question.id}}\"\r\n class=\"form-control search-form-control btn-lookup\" name=\"{{question.name+[i]}}\"\r\n [ngModel]=\"question.value\" [required]=\"question.isRequired\"\r\n attr.data-required=\"{{question.isRequired}}\" value=\"{{question.value}}\"\r\n [readonly]=\"question.readonly\" attr.data-type=\"{{question.datatype}}\"\r\n attr.data-name=\"{{question.name}}\"\r\n attr.data-datepickerpair=\"{{question.datepickerPair}}\"\r\n attr.data-crit-datatable=\"{{question.isCriteriaDataTable}}\"\r\n (keyup.enter)=\"searchClick()\" attr.data-restriction=\"{{question.restriction}}\"\r\n attr.label=\"{{question.label}}\" min=\"{{question.minDate | date:'yyyy-MM-dd'}}\"\r\n max=\"{{question.maxDate | date:'yyyy-MM-dd'}}\"\r\n (focusout)=\"question.restriction != undefined && checkInputDate(question)\"\r\n [ngClass]=\"{ 'is-invalid':(enjiForm.submitted || enjiForm.form.controls[question.name+[i]]?.touched || enjiForm.form.controls[question.name+[i]]?.dirty) && enjiForm.form.controls[question.name+[i]]?.invalid }\">\r\n </div>\r\n <div\r\n *ngIf=\"question.type == 'taskDefinitionKey' || question.type == 'processKey' || question.type == 'officeRoleCodes'\">\r\n <select name=\"{{question.name}}\" attr.data-required=\"{{question.isRequired}}\"\r\n [required]=\"question.isRequired\" class=\"form-control search-form-control\"\r\n attr.query-in=\"{{question.isQueryIn}}\" attr.data-type=\"{{question.datatype}}\"\r\n attr.label=\"{{question.label}}\" [hidden]=\"question?.itemsUrl?.length == 1\"\r\n (change)=\"(question.type == 'taskDefinitionKey' || question.type == 'processKey') ? SetProcessKey(i,question.wfKeyFilter) : SetRoleOfficeCodes(i)\"\r\n [ngClass]=\"{ 'is-invalid':(enjiForm.submitted || enjiForm.form.controls[question.name]?.touched || enjiForm.form.controls[question.name]?.dirty) && enjiForm.form.controls[question.name]?.invalid }\">\r\n <option *ngIf=\"question.ddlType == 'one' && question?.itemsUrl?.length != 1\"\r\n value=\"one\">Select One</option>\r\n <option\r\n *ngIf=\"(question?.ddlType == undefined || question.ddlType == 'all') && question?.itemsUrl?.length != 1\"\r\n value=\"all\">All</option>\r\n <option *ngFor=\"let item of question?.itemsUrl\" value=\"{{item.Key}}\">\r\n {{item.Value}}\r\n </option>\r\n </select>\r\n <label *ngIf=\"question?.itemsUrl?.length == 1\">{{question.itemsUrl[0].Value}}</label>\r\n </div>\r\n <div *ngIf=\"question.type=='dropdown'\">\r\n <select name=\"{{question.name}}\" attr.data-required=\"{{question.isRequired}}\"\r\n [(ngModel)]=\"question.value\" [required]=\"question.isRequired\"\r\n class=\"form-control search-form-control\" attr.query-in=\"{{question.isQueryIn}}\"\r\n attr.data-type=\"{{question.datatype}}\" attr.data-name=\"{{question.name}}\"\r\n attr.label=\"{{question.label}}\"\r\n attr.data-crit-datatable=\"{{question.isCriteriaDataTable}}\"\r\n [hidden]=\"!question.isFromURL ? question?.items?.length == 1 : question?.itemsUrl?.length == 1\"\r\n (change)=\"question.isEvent ? onChangeEvent($event.target.value, question) : ''\"\r\n [ngClass]=\"{ 'is-invalid':(enjiForm.submitted || enjiForm.form.controls[question.name]?.touched || enjiForm.form.controls[question.name]?.dirty) && enjiForm.form.controls[question.name]?.invalid }\">\r\n <option\r\n *ngIf=\"question.ddlType == 'one' && (!question.isFromURL ? question?.items?.length != 1 : question?.itemsUrl?.length != 1)\"\r\n value=\"one\">\r\n Select One</option>\r\n <option\r\n *ngIf=\"(question?.ddlType == undefined || question.ddlType == 'all') && (!question.isFromURL ? question?.items?.length != 1 : question?.itemsUrl?.length != 1)\"\r\n value=\"all\">All</option>\r\n <option *ngFor=\"let item of !question.isFromURL ? question?.items : question?.itemsUrl\"\r\n value=\"{{!question.isFromURL ? item.key : item.Key}}\">\r\n {{!question.isFromURL ? item.value : item.Value}}\r\n </option>\r\n </select>\r\n <label\r\n *ngIf=\"!question.isFromURL ? question?.items?.length == 1 : question?.itemsUrl?.length == 1\">{{!question.isFromURL\r\n ? question.items[0].value :\r\n question.itemsUrl[0].Value}}</label>\r\n </div>\r\n <div *ngIf=\"question.type=='dropdownSearch'\">\r\n <div class=\"dds-display-item\"\r\n [hidden]=\"!question.isFromURL ? question?.items?.length == 1 : question?.itemsUrl?.length == 1\">\r\n <input type=\"text\" class=\"form-control search-form-control dds-input\"\r\n name=\"{{'ddsValue'+question.name}}\" [(ngModel)]=\"question.descr\" readonly\r\n (click)=\"question.isListHide = !question.isListHide; question.searchText=''\">\r\n </div>\r\n <label\r\n *ngIf=\"!question.isFromURL ? question?.items?.length == 1 : question?.itemsUrl?.length == 1\">{{question.descr}}</label>\r\n <div class=\"dds-list-container\" [hidden]=\"question.isListHide\">\r\n <input type=\"text\" class=\"form-control search-form-control\"\r\n name=\"{{'searchText'+question.name}}\" [(ngModel)]=\"question.searchText\"\r\n [placeholder]=\"question.placeholder\">\r\n <div class=\"dds-items-container\">\r\n <select class=\"full-width\" name=\"{{question.name}}\"\r\n attr.data-required=\"{{question.isRequired}}\" [(ngModel)]=\"question.value\"\r\n [required]=\"question.isRequired\" attr.query-in=\"{{question.isQueryIn}}\"\r\n attr.data-type=\"{{question.datatype}}\" attr.data-name=\"{{question.name}}\"\r\n attr.label=\"{{question.label}}\"\r\n attr.data-crit-datatable=\"{{question.isCriteriaDataTable}}\"\r\n (change)=\"question.isEvent ? onChangeEvent($event.target.value, question) : ''\"\r\n [ngClass]=\"{ 'is-invalid':(enjiForm.submitted || enjiForm.form.controls[question.name]?.touched || enjiForm.form.controls[question.name]?.dirty) && enjiForm.form.controls[question.name]?.invalid }\"\r\n size=\"{{question?.size == undefined ? question?.size : 10}}\">\r\n <option (click)=\"selectedOption({Key:'one',Value:'Select One'},question)\"\r\n *ngIf=\"question.ddsType == 'one' && (!question.isFromURL ? question?.items?.length != 1 : question?.itemsUrl?.length != 1)\"\r\n value=\"one\">\r\n Select One</option>\r\n <option (click)=\"selectedOption({Key:'all',Value:'All'},question)\"\r\n *ngIf=\"(question?.ddsType == undefined || question.ddsType == 'all') && (!question.isFromURL ? question?.items?.length != 1 : question?.itemsUrl?.length != 1)\"\r\n value=\"all\">All</option>\r\n <!-- <option *ngFor=\"let item of question?.items | textSearch : question.searchText; let i=index\" [value]=\"item?.key\" (click)=\"selectedOption(item,question)\">\r\n {{item?.value}}\r\n </option> -->\r\n <option\r\n *ngFor=\"let item of !question.isFromURL ? (question?.items | textSearch : question.searchText) : question?.itemsUrl | textSearch : question.searchText\"\r\n (click)=\"selectedOption(item,question)\" value=\"{{item.Key}}\">\r\n {{item.Value}}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"question.type=='claim'\">\r\n <select name=\"{{'claim'+[i]}}\" class=\"form-control search-form-control\"\r\n attr.data-type=\"{{'text'}}\" attr.data-crit-datatable=\"{{question.isCriteriaDataTable}}\"\r\n attr.data-name=\"{{'Assignee'}}\" [hidden]=\"ClaimList?.length == 1\"\r\n [ngClass]=\"{ 'is-invalid':(enjiForm.submitted || enjiForm.form.controls['claim'+[i]]?.touched || enjiForm.form.controls['claim'+[i]]?.dirty) && enjiForm.form.controls['claim'+[i]]?.invalid }\">\r\n <option *ngIf=\"question.ddlType == 'one' && ClaimList?.length != 1\" value=\"one\">Select\r\n One</option>\r\n <option\r\n *ngIf=\"(question?.ddlType == undefined || question.ddlType == 'all') && ClaimList?.length != 1\"\r\n value=\"all\">All</option>\r\n <option *ngFor=\"let item of ClaimList\" value=\"{{item.Key}}\">\r\n {{item.Value}}\r\n </option>\r\n </select>\r\n </div>\r\n <lib-uc-show-errors *ngIf=\"question.type!='datepicker'\"\r\n [control]=\"enjiForm.form.controls[question.name]\" [submit]=\"enjiForm.submitted\">\r\n </lib-uc-show-errors>\r\n <lib-uc-show-errors *ngIf=\"question.type=='datepicker'\"\r\n [control]=\"enjiForm.form.controls[question.name+[i]]\" [submit]=\"enjiForm.submitted\">\r\n </lib-uc-show-errors>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 form-group\" *ngIf=\"(isReport != undefined && isReport)\">\r\n <div class=\"col-md-12\">\r\n <div class=\"row\">\r\n <label class=\"col-md-5 no-padding\" translate>Report Type</label>\r\n <div class=\"col-md-7 no-padding\">\r\n <select name=\"ExportType\" [(ngModel)]=\"ExportType\" class=\"form-control search-form-control\"\r\n attr.data-type=\"text\">\r\n <option *ngFor=\"let item of ExportTypeList\" [value]=\"item.key\">{{item.value}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col-md-12 no-padding\">\r\n <div class=\"form-actions right\">\r\n <button *ngIf=\"exportData == true\" type=\"button\" (click)=\"exportAsXLSX()\"\r\n class=\"btn btn-raised btn-success mr-1\" translate>\r\n <i class=\"fa ft-download\"></i>&nbsp;<span translate>Export Excel</span>\r\n </button>\r\n <button type=\"button\" (click)=\"reset()\" class=\"btn btn-raised btn-warning mr-1\" translate>\r\n <i class=\"fa fa-times\"></i>&nbsp;<span translate>Reset</span>\r\n </button>\r\n <button *ngIf=\"(isReport == undefined || !isReport)\" type=\"submit\"\r\n class=\"btn btn-raised btn-primary\" #UCSearchClick>\r\n <i class=\"fa fa-search\"></i>&nbsp;<span translate>Search</span>\r\n </button>\r\n <button *ngIf=\"(isReport != undefined && isReport)\" type=\"button\" (click)=\"GenerateReport()\"\r\n class=\"btn btn-raised btn-primary\">\r\n <i class=\"fa ft-download\"></i>&nbsp;<span translate>Generate\r\n Report</span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</section>\r\n<br>\r\n<!-- // Basic form layout section end -->",
1616
+ providers: [ExcelService, common.DatePipe],
2319
1617
  animations: [
2320
1618
  animations.trigger('changeDivSize', [
2321
1619
  animations.state('initial', animations.style({
@@ -2330,19 +1628,20 @@
2330
1628
  animations.transition('initial=>final', animations.animate('300ms')),
2331
1629
  animations.transition('final=>initial', animations.animate('300ms'))
2332
1630
  ]),
2333
- ]
2334
- },] },
1631
+ ],
1632
+ styles: [".ucSearch-title{margin:3px}.dds-input{background-color:#fff;text-transform:uppercase}.dds-display-item:after{content:'\\e929';font-family:feather;font-size:1rem;display:inline-block;position:absolute;right:5px;top:5px;transform:rotate(90deg)}.dds-list-container{position:absolute;width:100%;z-index:9}"]
1633
+ }] }
2335
1634
  ];
2336
1635
  /** @nocollapse */
2337
1636
  UCSearchComponent.ctorParameters = function () {
2338
1637
  return [
2339
- { type: i1.HttpClient },
1638
+ { type: http.HttpClient },
2340
1639
  { type: ExcelService },
2341
1640
  { type: i0.Renderer2 },
2342
- { type: undefined, decorators: [{ type: i0.Inject, args: [i5.DOCUMENT,] }] },
2343
- { type: i3.ToastrService },
2344
- { type: i4.CookieService },
2345
- { type: i5.DatePipe },
1641
+ { type: undefined, decorators: [{ type: i0.Inject, args: [common.DOCUMENT,] }] },
1642
+ { type: ngxToastr.ToastrService },
1643
+ { type: ngxCookie.CookieService },
1644
+ { type: common.DatePipe },
2346
1645
  { type: i0.ElementRef }
2347
1646
  ];
2348
1647
  };
@@ -2356,158 +1655,47 @@
2356
1655
  genRpt: [{ type: i0.Output }],
2357
1656
  reqGetAllData: [{ type: i0.Output }]
2358
1657
  };
2359
- /** @nocollapse */ UCSearchComponent.ɵfac = function UCSearchComponent_Factory(t) { return new (t || UCSearchComponent)(i0.ɵɵdirectiveInject(i1.HttpClient), i0.ɵɵdirectiveInject(ExcelService), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i5.DOCUMENT), i0.ɵɵdirectiveInject(i3.ToastrService), i0.ɵɵdirectiveInject(i4.CookieService), i0.ɵɵdirectiveInject(i5.DatePipe), i0.ɵɵdirectiveInject(i0.ElementRef)); };
2360
- /** @nocollapse */ UCSearchComponent.ɵcmp = i0.ɵɵdefineComponent({ type: UCSearchComponent, selectors: [["lib-UCSearch"]], viewQuery: function UCSearchComponent_Query(rf, ctx) {
2361
- if (rf & 1) {
2362
- i0.ɵɵviewQuery(_c0, true);
2363
- i0.ɵɵviewQuery(_c1, true);
2364
- }
2365
- if (rf & 2) {
2366
- var _t;
2367
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.content = _t.first);
2368
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.myForm = _t.first);
2369
- }
2370
- }, inputs: { searchInput: "searchInput", pageSize: "pageSize", isReport: "isReport" }, outputs: { result: "result", genRpt: "genRpt", reqGetAllData: "reqGetAllData" }, features: [i0.ɵɵProvidersFeature([ExcelService, i5.DatePipe])], decls: 34, vars: 11, consts: [["id", "horizontal-form-layouts"], [1, "row", "text-left"], [1, "col-md-12"], [1, "card"], ["class", "pl-3 mb-2 mt-2", 4, "ngIf"], [1, "card-body"], [1, "px-3"], ["id", "formSearch", 1, "form", "form-horizontal", 3, "ngSubmit"], ["formIdSearch", "", "enjiForm", "ngForm"], [1, "form-body"], [1, "form-section", "font-weight-bold"], [1, "btn", "no-padding", "cursor-pointer", "flip", 3, "click"], [1, "fa", 2, "font-size", "15px", "margin", "0px 0px 5px -15px", 3, "ngClass"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["inputSectionTitle", ""], ["defaultSectionTitle", ""], [1, "panel-active"], [1, "row"], ["class", "col-md-6 form-group", 4, "ngFor", "ngForOf"], ["class", "col-md-6 form-group", 4, "ngIf"], [1, "col-md-12", "no-padding"], [1, "form-actions", "right"], ["type", "button", "class", "btn btn-raised btn-success mr-1", "translate", "", 3, "click", 4, "ngIf"], ["type", "button", "translate", "", 1, "btn", "btn-raised", "btn-warning", "mr-1", 3, "click"], [1, "fa", "fa-times"], ["translate", ""], ["type", "submit", "class", "btn btn-raised btn-primary", 4, "ngIf"], ["type", "button", "class", "btn btn-raised btn-primary", 3, "click", 4, "ngIf"], [1, "pl-3", "mb-2", "mt-2"], ["translate", "", 1, "card-title", "ucSearch-title"], [1, "col-md-6", "form-group"], ["translate", "", 1, "col-md-5", "no-padding", 3, "for", "ngClass"], [1, "col-md-7", "no-padding"], [4, "ngIf"], [3, "control", "submit", 4, "ngIf"], ["type", "text", 1, "form-control", "search-form-control", 3, "id", "ngModel", "required", "name", "value", "ngClass", "keyup.enter"], ["type", "text", 1, "form-control", "search-form-control", 3, "id", "ngModel", "required", "name", "value", "ngClass"], ["type", "number", 1, "form-control", "search-form-control", 3, "id", "ngModel", "required", "name", "value", "ngClass", "focus", "blur", "keyup.enter"], ["type", "", "currencyMask", "", 1, "form-control", "search-form-control", 3, "id", "required", "name", "ngModel", "ngModelOptions", "options", "ngClass", "keyup.enter", "ngModelChange"], ["type", "text", "currencyMask", "", 1, "form-control", "search-form-control", 3, "id", "required", "name", "ngModel", "ngModelOptions", "options", "ngClass", "keyup.enter", "ngModelChange"], [1, "form-control", "search-form-control", "btn-lookup", 3, "type", "id", "name", "ngModel", "required", "value", "readonly", "min", "max", "ngClass", "keyup.enter", "focusout"], [1, "form-control", "search-form-control", 3, "name", "required", "hidden", "ngClass", "change"], ["value", "one", 4, "ngIf"], ["value", "all", 4, "ngIf"], [3, "value", 4, "ngFor", "ngForOf"], ["value", "one"], ["value", "all"], [3, "value"], [1, "form-control", "search-form-control", 3, "name", "ngModel", "required", "hidden", "ngClass", "ngModelChange", "change"], [1, "dds-display-item", 3, "hidden"], ["type", "text", "readonly", "", 1, "form-control", "search-form-control", "dds-input", 3, "name", "ngModel", "ngModelChange", "click"], [1, "dds-list-container", 3, "hidden"], ["type", "text", 1, "form-control", "search-form-control", 3, "name", "ngModel", "placeholder", "ngModelChange"], [1, "dds-items-container"], [1, "full-width", 3, "name", "ngModel", "required", "ngClass", "size", "ngModelChange", "change"], ["value", "one", 3, "click", 4, "ngIf"], ["value", "all", 3, "click", 4, "ngIf"], [3, "value", "click", 4, "ngFor", "ngForOf"], ["value", "one", 3, "click"], ["value", "all", 3, "click"], [3, "value", "click"], [1, "form-control", "search-form-control", 3, "name", "hidden", "ngClass"], [3, "control", "submit"], ["translate", "", 1, "col-md-5", "no-padding"], ["name", "ExportType", "attr.data-type", "text", 1, "form-control", "search-form-control", 3, "ngModel", "ngModelChange"], ["type", "button", "translate", "", 1, "btn", "btn-raised", "btn-success", "mr-1", 3, "click"], [1, "fa", "ft-download"], ["type", "submit", 1, "btn", "btn-raised", "btn-primary"], ["UCSearchClick", ""], [1, "fa", "fa-search"], ["type", "button", 1, "btn", "btn-raised", "btn-primary", 3, "click"]], template: function UCSearchComponent_Template(rf, ctx) {
2371
- if (rf & 1) {
2372
- var _r119 = i0.ɵɵgetCurrentView();
2373
- i0.ɵɵelementStart(0, "section", 0);
2374
- i0.ɵɵelementStart(1, "div", 1);
2375
- i0.ɵɵelementStart(2, "div", 2);
2376
- i0.ɵɵelementStart(3, "div", 3);
2377
- i0.ɵɵtemplate(4, UCSearchComponent_div_4_Template, 3, 1, "div", 4);
2378
- i0.ɵɵelementStart(5, "div", 5);
2379
- i0.ɵɵelementStart(6, "div", 6);
2380
- i0.ɵɵelementStart(7, "form", 7, 8);
2381
- i0.ɵɵlistener("ngSubmit", function UCSearchComponent_Template_form_ngSubmit_7_listener() { i0.ɵɵrestoreView(_r119); var _r2 = i0.ɵɵreference(9); return _r2.valid && ctx.searchClick(); });
2382
- i0.ɵɵelementStart(10, "div", 9);
2383
- i0.ɵɵelementStart(11, "h4", 10);
2384
- i0.ɵɵelementStart(12, "div", 11);
2385
- i0.ɵɵlistener("click", function UCSearchComponent_Template_div_click_12_listener() { return ctx.changeState(); });
2386
- i0.ɵɵelement(13, "i", 12);
2387
- i0.ɵɵelementEnd();
2388
- i0.ɵɵtemplate(14, UCSearchComponent_span_14_Template, 1, 0, "span", 13);
2389
- i0.ɵɵtemplate(15, UCSearchComponent_ng_template_15_Template, 1, 1, "ng-template", null, 14, i0.ɵɵtemplateRefExtractor);
2390
- i0.ɵɵtemplate(17, UCSearchComponent_ng_template_17_Template, 1, 0, "ng-template", null, 15, i0.ɵɵtemplateRefExtractor);
2391
- i0.ɵɵelementEnd();
2392
- i0.ɵɵelementStart(19, "div", 16);
2393
- i0.ɵɵelementStart(20, "div", 17);
2394
- i0.ɵɵtemplate(21, UCSearchComponent_div_21_Template, 17, 16, "div", 18);
2395
- i0.ɵɵtemplate(22, UCSearchComponent_div_22_Template, 8, 2, "div", 19);
2396
- i0.ɵɵelementEnd();
2397
- i0.ɵɵelementStart(23, "div", 20);
2398
- i0.ɵɵelementStart(24, "div", 21);
2399
- i0.ɵɵtemplate(25, UCSearchComponent_button_25_Template, 5, 0, "button", 22);
2400
- i0.ɵɵelementStart(26, "button", 23);
2401
- i0.ɵɵlistener("click", function UCSearchComponent_Template_button_click_26_listener() { return ctx.reset(); });
2402
- i0.ɵɵelement(27, "i", 24);
2403
- i0.ɵɵtext(28, "\u00A0");
2404
- i0.ɵɵelementStart(29, "span", 25);
2405
- i0.ɵɵtext(30, "Reset");
2406
- i0.ɵɵelementEnd();
2407
- i0.ɵɵelementEnd();
2408
- i0.ɵɵtemplate(31, UCSearchComponent_button_31_Template, 6, 0, "button", 26);
2409
- i0.ɵɵtemplate(32, UCSearchComponent_button_32_Template, 5, 0, "button", 27);
2410
- i0.ɵɵelementEnd();
2411
- i0.ɵɵelementEnd();
2412
- i0.ɵɵelementEnd();
2413
- i0.ɵɵelementEnd();
2414
- i0.ɵɵelementEnd();
2415
- i0.ɵɵelementEnd();
2416
- i0.ɵɵelementEnd();
2417
- i0.ɵɵelementEnd();
2418
- i0.ɵɵelementEnd();
2419
- i0.ɵɵelementEnd();
2420
- i0.ɵɵelementEnd();
2421
- i0.ɵɵelement(33, "br");
2422
- }
2423
- if (rf & 2) {
2424
- var _r4 = i0.ɵɵreference(16);
2425
- var _r6 = i0.ɵɵreference(18);
2426
- i0.ɵɵadvance(4);
2427
- i0.ɵɵproperty("ngIf", (ctx.configuration == null ? null : ctx.configuration.title) != undefined && (ctx.configuration == null ? null : ctx.configuration.title) != "");
2428
- i0.ɵɵadvance(9);
2429
- i0.ɵɵproperty("ngClass", ctx.isHidden ? "fa-chevron-right" : "fa-chevron-down");
2430
- i0.ɵɵadvance(1);
2431
- i0.ɵɵproperty("ngIf", (ctx.configuration == null ? null : ctx.configuration.sectionTitle) != undefined && (ctx.configuration == null ? null : ctx.configuration.sectionTitle) != "")("ngIfThen", _r4)("ngIfElse", _r6);
2432
- i0.ɵɵadvance(5);
2433
- i0.ɵɵproperty("@changeDivSize", ctx.currentState);
2434
- i0.ɵɵadvance(2);
2435
- i0.ɵɵproperty("ngForOf", ctx.configuration == null ? null : ctx.configuration.component);
2436
- i0.ɵɵadvance(1);
2437
- i0.ɵɵproperty("ngIf", ctx.isReport != undefined && ctx.isReport);
2438
- i0.ɵɵadvance(3);
2439
- i0.ɵɵproperty("ngIf", ctx.exportData == true);
2440
- i0.ɵɵadvance(6);
2441
- i0.ɵɵproperty("ngIf", ctx.isReport == undefined || !ctx.isReport);
2442
- i0.ɵɵadvance(1);
2443
- i0.ɵɵproperty("ngIf", ctx.isReport != undefined && ctx.isReport);
2444
- }
2445
- }, directives: [i5.NgIf, i6.ɵangular_packages_forms_forms_bh, i6.NgControlStatusGroup, i6.NgForm, i5.NgClass, i5.NgForOf, i2.TranslateDirective, i8.UpperCaseDirective, i6.DefaultValueAccessor, i6.NgControlStatus, i6.NgModel, i6.RequiredValidator, i6.ɵangular_packages_forms_forms_be, i1$1.CurrencyMaskDirective, i6.NgSelectOption, i6.ɵangular_packages_forms_forms_s, i6.SelectControlValueAccessor, i10.UcShowErrorsComponent], pipes: [i5.DatePipe, TextSearchPipe], styles: [".ucSearch-title[_ngcontent-%COMP%]{margin:3px}.dds-input[_ngcontent-%COMP%]{background-color:#fff;text-transform:uppercase}.dds-display-item[_ngcontent-%COMP%]:after{content:'\\e929';font-family:feather;font-size:1rem;display:inline-block;position:absolute;right:5px;top:5px;transform:rotate(90deg)}.dds-list-container[_ngcontent-%COMP%]{position:absolute;width:100%;z-index:9}"], data: { animation: [
2446
- animations.trigger('changeDivSize', [
2447
- animations.state('initial', animations.style({
2448
- height: '*',
2449
- opacity: '1',
2450
- })),
2451
- animations.state('final', animations.style({
2452
- height: '0px',
2453
- opacity: '0',
2454
- overflow: 'hidden',
2455
- })),
2456
- animations.transition('initial=>final', animations.animate('300ms')),
2457
- animations.transition('final=>initial', animations.animate('300ms'))
2458
- ]),
2459
- ] } });
2460
1658
  return UCSearchComponent;
2461
- }());
2462
- /*@__PURE__*/ (function () {
2463
- i0.ɵsetClassMetadata(UCSearchComponent, [{
2464
- type: i0.Component,
2465
- args: [{
2466
- selector: 'lib-UCSearch',
2467
- templateUrl: './ucsearch.component.html',
2468
- styleUrls: ['./ucsearch.component.css'],
2469
- providers: [ExcelService, i5.DatePipe],
2470
- animations: [
2471
- animations.trigger('changeDivSize', [
2472
- animations.state('initial', animations.style({
2473
- height: '*',
2474
- opacity: '1',
2475
- })),
2476
- animations.state('final', animations.style({
2477
- height: '0px',
2478
- opacity: '0',
2479
- overflow: 'hidden',
2480
- })),
2481
- animations.transition('initial=>final', animations.animate('300ms')),
2482
- animations.transition('final=>initial', animations.animate('300ms'))
2483
- ]),
2484
- ]
2485
- }]
2486
- }], function () {
2487
- return [{ type: i1.HttpClient }, { type: ExcelService }, { type: i0.Renderer2 }, { type: undefined, decorators: [{
2488
- type: i0.Inject,
2489
- args: [i5.DOCUMENT]
2490
- }] }, { type: i3.ToastrService }, { type: i4.CookieService }, { type: i5.DatePipe }, { type: i0.ElementRef }];
2491
- }, { content: [{
2492
- type: i0.ViewChild,
2493
- args: ['enjiForm']
2494
- }], myForm: [{
2495
- type: i0.ViewChild,
2496
- args: ['formIdSearch', { static: false }]
2497
- }], searchInput: [{
2498
- type: i0.Input
2499
- }], pageSize: [{
2500
- type: i0.Input
2501
- }], isReport: [{
2502
- type: i0.Input
2503
- }], result: [{
2504
- type: i0.Output
2505
- }], genRpt: [{
2506
- type: i0.Output
2507
- }], reqGetAllData: [{
2508
- type: i0.Output
2509
- }] });
2510
- })();
1659
+ }());
1660
+
1661
+ /**
1662
+ * @fileoverview added by tsickle
1663
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1664
+ */
1665
+ var TextSearchPipe = /** @class */ (function () {
1666
+ function TextSearchPipe() {
1667
+ }
1668
+ /**
1669
+ * @param {?} items
1670
+ * @param {?=} text
1671
+ * @return {?}
1672
+ */
1673
+ TextSearchPipe.prototype.transform = /**
1674
+ * @param {?} items
1675
+ * @param {?=} text
1676
+ * @return {?}
1677
+ */
1678
+ function (items, text) {
1679
+ if (!text) {
1680
+ return items;
1681
+ }
1682
+ return items.filter(( /**
1683
+ * @param {?} item
1684
+ * @return {?}
1685
+ */function (item) {
1686
+ if (item.Value && typeof item.Value === 'string') {
1687
+ return item.Value.toLowerCase().indexOf(text.toLowerCase()) > -1;
1688
+ }
1689
+ return false;
1690
+ }));
1691
+ };
1692
+ TextSearchPipe.decorators = [
1693
+ { type: i0.Pipe, args: [{
1694
+ name: 'textSearch'
1695
+ },] }
1696
+ ];
1697
+ return TextSearchPipe;
1698
+ }());
2511
1699
 
2512
1700
  /**
2513
1701
  * @fileoverview added by tsickle
@@ -2524,7 +1712,7 @@
2524
1712
  suffix: "",
2525
1713
  thousands: ",",
2526
1714
  nullable: false,
2527
- inputMode: i1$1.CurrencyMaskInputMode.NATURAL
1715
+ inputMode: ngxCurrency.CurrencyMaskInputMode.NATURAL
2528
1716
  };
2529
1717
  var UCSearchModule = /** @class */ (function () {
2530
1718
  function UCSearchModule() {
@@ -2533,50 +1721,18 @@
2533
1721
  { type: i0.NgModule, args: [{
2534
1722
  declarations: [UCSearchComponent, TextSearchPipe],
2535
1723
  imports: [
2536
- i5.CommonModule,
2537
- i6.FormsModule,
2538
- i10.UcShowErrorsModule,
2539
- i8.UcDirectiveUpperCaseModule,
2540
- i1$1.NgxCurrencyModule.forRoot(customCurrencyMaskConfig),
2541
- i2.TranslateModule.forChild()
1724
+ common.CommonModule,
1725
+ forms.FormsModule,
1726
+ ucShowErrors.UcShowErrorsModule,
1727
+ ucDirectiveUpperCase.UcDirectiveUpperCaseModule,
1728
+ ngxCurrency.NgxCurrencyModule.forRoot(customCurrencyMaskConfig),
1729
+ core.TranslateModule.forChild()
2542
1730
  ],
2543
1731
  exports: [UCSearchComponent]
2544
- },] },
1732
+ },] }
2545
1733
  ];
2546
- /** @nocollapse */ UCSearchModule.ɵmod = i0.ɵɵdefineNgModule({ type: UCSearchModule });
2547
- /** @nocollapse */ UCSearchModule.ɵinj = i0.ɵɵdefineInjector({ factory: function UCSearchModule_Factory(t) { return new (t || UCSearchModule)(); }, imports: [[
2548
- i5.CommonModule,
2549
- i6.FormsModule,
2550
- i10.UcShowErrorsModule,
2551
- i8.UcDirectiveUpperCaseModule,
2552
- i1$1.NgxCurrencyModule.forRoot(customCurrencyMaskConfig),
2553
- i2.TranslateModule.forChild()
2554
- ]] });
2555
1734
  return UCSearchModule;
2556
- }());
2557
- (function () {
2558
- (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(UCSearchModule, { declarations: [UCSearchComponent, TextSearchPipe], imports: [i5.CommonModule,
2559
- i6.FormsModule,
2560
- i10.UcShowErrorsModule,
2561
- i8.UcDirectiveUpperCaseModule, i1$1.NgxCurrencyModule, i2.TranslateModule], exports: [UCSearchComponent] });
2562
- })();
2563
- /*@__PURE__*/ (function () {
2564
- i0.ɵsetClassMetadata(UCSearchModule, [{
2565
- type: i0.NgModule,
2566
- args: [{
2567
- declarations: [UCSearchComponent, TextSearchPipe],
2568
- imports: [
2569
- i5.CommonModule,
2570
- i6.FormsModule,
2571
- i10.UcShowErrorsModule,
2572
- i8.UcDirectiveUpperCaseModule,
2573
- i1$1.NgxCurrencyModule.forRoot(customCurrencyMaskConfig),
2574
- i2.TranslateModule.forChild()
2575
- ],
2576
- exports: [UCSearchComponent]
2577
- }]
2578
- }], null, null);
2579
- })();
1735
+ }());
2580
1736
 
2581
1737
  /**
2582
1738
  * @fileoverview added by tsickle
@@ -2592,6 +1748,8 @@
2592
1748
  exports.UCSearchComponent = UCSearchComponent;
2593
1749
  exports.customCurrencyMaskConfig = customCurrencyMaskConfig;
2594
1750
  exports.UCSearchModule = UCSearchModule;
1751
+ exports.ɵb = TextSearchPipe;
1752
+ exports.ɵa = ExcelService;
2595
1753
 
2596
1754
  Object.defineProperty(exports, '__esModule', { value: true });
2597
1755