@adins/ucsearch 2.9.1 → 2.9.3

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,3 +1,4 @@
1
+ import { __awaiter, __generator } from 'tslib';
1
2
  import { HttpClient } from '@angular/common/http';
2
3
  import { saveAs } from 'file-saver';
3
4
  import { utils, write } from 'xlsx';
@@ -5,13 +6,13 @@ import { trigger, transition, style, animate, state } from '@angular/animations'
5
6
  import { ToastrService } from 'ngx-toastr';
6
7
  import { CookieService } from 'ngx-cookie';
7
8
  import { enc, lib, AES } from 'crypto-js';
8
- import { Injectable, NgModule, Component, Input, ViewChild, Inject, Renderer2, EventEmitter, Output, ɵɵdefineInjectable } from '@angular/core';
9
- import { DatePipe, formatDate, DOCUMENT, CommonModule } from '@angular/common';
10
- import { FormsModule } from '@angular/forms';
11
- import { CurrencyMaskInputMode, NgxCurrencyModule } from 'ngx-currency';
12
- import { TranslateModule } from '@ngx-translate/core';
13
- import { UcShowErrorsModule } from '@adins/uc-show-errors';
14
- import { UcDirectiveUpperCaseModule } from '@adins/uc-directive-upper-case';
9
+ import { Injectable, NgModule, Pipe, ɵɵdefineInjectable, ɵsetClassMetadata, ɵɵdefineNgModule, ɵɵdefineInjector, ɵɵsetNgModuleScope, ɵɵelementStart, ɵɵtext, ɵɵelementEnd, ɵɵnextContext, ɵɵadvance, ɵɵtextInterpolate, ɵɵelement, ɵɵtextInterpolate1, ɵɵgetCurrentView, ɵɵlistener, ɵɵrestoreView, ɵɵreference, ɵɵpropertyInterpolate, ɵɵproperty, ɵɵpureFunction1, ɵɵattribute, ɵɵpureFunction0, ɵɵpureFunction7, ɵɵtemplate, ɵɵpipe, ɵɵpipeBind2, EventEmitter, Component, Renderer2, Inject, ElementRef, ViewChild, Input, Output, ɵɵdirectiveInject, ɵɵdefineComponent, ɵɵviewQuery, ɵɵqueryRefresh, ɵɵloadQuery, ɵɵProvidersFeature, ɵɵtemplateRefExtractor, ɵɵdefinePipe } from '@angular/core';
10
+ import { DatePipe, formatDate, DOCUMENT, CommonModule, NgIf, NgClass, NgForOf } from '@angular/common';
11
+ import { NgForm, FormsModule, ɵangular_packages_forms_forms_bh, NgControlStatusGroup, DefaultValueAccessor, NgControlStatus, NgModel, RequiredValidator, ɵangular_packages_forms_forms_be, NgSelectOption, ɵangular_packages_forms_forms_s, SelectControlValueAccessor } from '@angular/forms';
12
+ import { CurrencyMaskInputMode, NgxCurrencyModule, CurrencyMaskDirective } from 'ngx-currency';
13
+ import { TranslateModule, TranslateDirective } from '@ngx-translate/core';
14
+ import { UcShowErrorsModule, UcShowErrorsComponent } from '@adins/uc-show-errors';
15
+ import { UcDirectiveUpperCaseModule, UpperCaseDirective } from '@adins/uc-directive-upper-case';
15
16
 
16
17
  /**
17
18
  * @fileoverview added by tsickle
@@ -23,13 +24,20 @@ var UCSearchService = /** @class */ (function () {
23
24
  UCSearchService.decorators = [
24
25
  { type: Injectable, args: [{
25
26
  providedIn: 'root'
26
- },] }
27
+ },] },
27
28
  ];
28
29
  /** @nocollapse */
29
30
  UCSearchService.ctorParameters = function () { return []; };
30
- /** @nocollapse */ UCSearchService.ngInjectableDef = ɵɵdefineInjectable({ factory: function UCSearchService_Factory() { return new UCSearchService(); }, token: UCSearchService, providedIn: "root" });
31
+ /** @nocollapse */ UCSearchService.ɵfac = function UCSearchService_Factory(t) { return new (t || UCSearchService)(); };
32
+ /** @nocollapse */ UCSearchService.ɵprov = ɵɵdefineInjectable({ token: UCSearchService, factory: UCSearchService.ɵfac, providedIn: 'root' });
31
33
  return UCSearchService;
32
- }());
34
+ }());
35
+ /*@__PURE__*/ (function () { ɵsetClassMetadata(UCSearchService, [{
36
+ type: Injectable,
37
+ args: [{
38
+ providedIn: 'root'
39
+ }]
40
+ }], function () { return []; }, null); })();
33
41
 
34
42
  /**
35
43
  * @fileoverview added by tsickle
@@ -183,12 +191,17 @@ var ExcelService = /** @class */ (function () {
183
191
  saveAs(data, fileName + '_export_' + new Date().getTime() + EXCEL_EXTENSION);
184
192
  };
185
193
  ExcelService.decorators = [
186
- { type: Injectable }
194
+ { type: Injectable },
187
195
  ];
188
196
  /** @nocollapse */
189
197
  ExcelService.ctorParameters = function () { return []; };
198
+ /** @nocollapse */ ExcelService.ɵfac = function ExcelService_Factory(t) { return new (t || ExcelService)(); };
199
+ /** @nocollapse */ ExcelService.ɵprov = ɵɵdefineInjectable({ token: ExcelService, factory: ExcelService.ɵfac });
190
200
  return ExcelService;
191
- }());
201
+ }());
202
+ /*@__PURE__*/ (function () { ɵsetClassMetadata(ExcelService, [{
203
+ type: Injectable
204
+ }], function () { return []; }, null); })();
192
205
 
193
206
  /**
194
207
  * @fileoverview added by tsickle
@@ -246,8 +259,591 @@ var ListKeyValueMonth = /** @class */ (function () {
246
259
  * @fileoverview added by tsickle
247
260
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
248
261
  */
262
+ var TextSearchPipe = /** @class */ (function () {
263
+ function TextSearchPipe() {
264
+ }
265
+ /**
266
+ * @param {?} items
267
+ * @param {?=} text
268
+ * @return {?}
269
+ */
270
+ TextSearchPipe.prototype.transform = /**
271
+ * @param {?} items
272
+ * @param {?=} text
273
+ * @return {?}
274
+ */
275
+ function (items, text) {
276
+ if (!text) {
277
+ return items;
278
+ }
279
+ return items.filter((/**
280
+ * @param {?} item
281
+ * @return {?}
282
+ */
283
+ function (item) {
284
+ if (item.Value && typeof item.Value === 'string') {
285
+ return item.Value.toLowerCase().indexOf(text.toLowerCase()) > -1;
286
+ }
287
+ return false;
288
+ }));
289
+ };
290
+ TextSearchPipe.decorators = [
291
+ { type: Pipe, args: [{
292
+ name: 'textSearch'
293
+ },] },
294
+ ];
295
+ /** @nocollapse */ TextSearchPipe.ɵfac = function TextSearchPipe_Factory(t) { return new (t || TextSearchPipe)(); };
296
+ /** @nocollapse */ TextSearchPipe.ɵpipe = ɵɵdefinePipe({ name: "textSearch", type: TextSearchPipe, pure: true });
297
+ return TextSearchPipe;
298
+ }());
299
+ /*@__PURE__*/ (function () { ɵsetClassMetadata(TextSearchPipe, [{
300
+ type: Pipe,
301
+ args: [{
302
+ name: 'textSearch'
303
+ }]
304
+ }], null, null); })();
305
+
306
+ var _c0 = ["enjiForm"];
307
+ var _c1 = ["formIdSearch"];
308
+ function UCSearchComponent_div_4_Template(rf, ctx) { if (rf & 1) {
309
+ ɵɵelementStart(0, "div", 28);
310
+ ɵɵelementStart(1, "h4", 29);
311
+ ɵɵtext(2);
312
+ ɵɵelementEnd();
313
+ ɵɵelementEnd();
314
+ } if (rf & 2) {
315
+ var ctx_r0 = ɵɵnextContext();
316
+ ɵɵadvance(2);
317
+ ɵɵtextInterpolate(ctx_r0.configuration.title);
318
+ } }
319
+ function UCSearchComponent_span_14_Template(rf, ctx) { if (rf & 1) {
320
+ ɵɵelement(0, "span");
321
+ } }
322
+ function UCSearchComponent_ng_template_15_Template(rf, ctx) { if (rf & 1) {
323
+ ɵɵtext(0);
324
+ } if (rf & 2) {
325
+ var ctx_r5 = ɵɵnextContext();
326
+ ɵɵtextInterpolate1(" ", ctx_r5.configuration == null ? null : ctx_r5.configuration.sectionTitle, " ");
327
+ } }
328
+ function UCSearchComponent_ng_template_17_Template(rf, ctx) { if (rf & 1) {
329
+ ɵɵtext(0, " Paging ");
330
+ } }
331
+ var _c2 = function (a0) { return { "is-invalid": a0 }; };
332
+ function UCSearchComponent_div_21_div_6_Template(rf, ctx) { if (rf & 1) {
333
+ var _r27 = ɵɵgetCurrentView();
334
+ ɵɵelementStart(0, "div");
335
+ ɵɵelementStart(1, "input", 35);
336
+ ɵɵlistener("keyup.enter", function UCSearchComponent_div_21_div_6_Template_input_keyup_enter_1_listener() { ɵɵrestoreView(_r27); var ctx_r26 = ɵɵnextContext(2); return ctx_r26.searchClick(); });
337
+ ɵɵelementEnd();
338
+ ɵɵelementEnd();
339
+ } if (rf & 2) {
340
+ var question_r13 = ɵɵnextContext().$implicit;
341
+ ɵɵnextContext();
342
+ var _r2 = ɵɵreference(9);
343
+ ɵɵadvance(1);
344
+ ɵɵpropertyInterpolate("id", question_r13.id);
345
+ ɵɵpropertyInterpolate("name", question_r13.name);
346
+ ɵɵpropertyInterpolate("value", question_r13.value);
347
+ ɵɵproperty("ngModel", question_r13.value)("required", question_r13.isRequired)("ngClass", ɵɵ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)));
348
+ ɵɵ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);
349
+ } }
350
+ function UCSearchComponent_div_21_div_7_Template(rf, ctx) { if (rf & 1) {
351
+ ɵɵelementStart(0, "div");
352
+ ɵɵelement(1, "textarea", 36);
353
+ ɵɵelementEnd();
354
+ } if (rf & 2) {
355
+ var question_r13 = ɵɵnextContext().$implicit;
356
+ ɵɵnextContext();
357
+ var _r2 = ɵɵreference(9);
358
+ ɵɵadvance(1);
359
+ ɵɵpropertyInterpolate("id", question_r13.id);
360
+ ɵɵpropertyInterpolate("name", question_r13.name);
361
+ ɵɵpropertyInterpolate("value", question_r13.value);
362
+ ɵɵproperty("ngModel", question_r13.value)("required", question_r13.isRequired)("ngClass", ɵɵ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)));
363
+ ɵɵattribute("data-required", question_r13.isRequired)("data-type", question_r13.datatype)("data-name", question_r13.name)("label", question_r13.label);
364
+ } }
365
+ var _c3 = function (a0) { return [a0]; };
366
+ function UCSearchComponent_div_21_div_8_Template(rf, ctx) { if (rf & 1) {
367
+ var _r31 = ɵɵgetCurrentView();
368
+ ɵɵelementStart(0, "div");
369
+ ɵɵelementStart(1, "input", 37);
370
+ ɵɵlistener("focus", function UCSearchComponent_div_21_div_8_Template_input_focus_1_listener($event) { ɵɵrestoreView(_r31); var ctx_r30 = ɵɵnextContext(2); return ctx_r30.transformToDecimal($event); })("blur", function UCSearchComponent_div_21_div_8_Template_input_blur_1_listener($event) { ɵɵrestoreView(_r31); var ctx_r32 = ɵɵnextContext(2); return ctx_r32.transformAmount($event); })("keyup.enter", function UCSearchComponent_div_21_div_8_Template_input_keyup_enter_1_listener() { ɵɵrestoreView(_r31); var ctx_r33 = ɵɵnextContext(2); return ctx_r33.searchClick(); });
371
+ ɵɵelementEnd();
372
+ ɵɵelementEnd();
373
+ } if (rf & 2) {
374
+ var ctx_r34 = ɵɵnextContext();
375
+ var question_r13 = ctx_r34.$implicit;
376
+ var i_r14 = ctx_r34.index;
377
+ ɵɵnextContext();
378
+ var _r2 = ɵɵreference(9);
379
+ ɵɵadvance(1);
380
+ ɵɵpropertyInterpolate("id", question_r13.id);
381
+ ɵɵpropertyInterpolate("name", question_r13.name + ɵɵpureFunction1(13, _c3, i_r14));
382
+ ɵɵpropertyInterpolate("value", question_r13.value);
383
+ ɵɵproperty("ngModel", question_r13.value)("required", question_r13.isRequired)("ngClass", ɵɵpureFunction1(27, _c2, (_r2.submitted || (_r2.form.controls[question_r13.name + ɵɵpureFunction1(15, _c3, i_r14)] == null ? null : _r2.form.controls[question_r13.name + ɵɵpureFunction1(17, _c3, i_r14)].touched) || (_r2.form.controls[question_r13.name + ɵɵpureFunction1(19, _c3, i_r14)] == null ? null : _r2.form.controls[question_r13.name + ɵɵpureFunction1(21, _c3, i_r14)].dirty)) && (_r2.form.controls[question_r13.name + ɵɵpureFunction1(23, _c3, i_r14)] == null ? null : _r2.form.controls[question_r13.name + ɵɵpureFunction1(25, _c3, i_r14)].invalid)));
384
+ ɵɵ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);
385
+ } }
386
+ var _c4 = function () { return { standalone: true }; };
387
+ 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 }; };
388
+ function UCSearchComponent_div_21_div_9_div_1_Template(rf, ctx) { if (rf & 1) {
389
+ var _r38 = ɵɵgetCurrentView();
390
+ ɵɵelementStart(0, "div");
391
+ ɵɵelementStart(1, "input", 38);
392
+ ɵɵlistener("keyup.enter", function UCSearchComponent_div_21_div_9_div_1_Template_input_keyup_enter_1_listener() { ɵɵrestoreView(_r38); var ctx_r37 = ɵɵnextContext(3); return ctx_r37.searchClick(); })("ngModelChange", function UCSearchComponent_div_21_div_9_div_1_Template_input_ngModelChange_1_listener($event) { ɵɵrestoreView(_r38); var question_r13 = ɵɵnextContext(2).$implicit; return question_r13.value = $event; });
393
+ ɵɵelementEnd();
394
+ ɵɵelementEnd();
395
+ } if (rf & 2) {
396
+ var question_r13 = ɵɵnextContext(2).$implicit;
397
+ ɵɵnextContext();
398
+ var _r2 = ɵɵreference(9);
399
+ ɵɵadvance(1);
400
+ ɵɵpropertyInterpolate("id", question_r13.id);
401
+ ɵɵpropertyInterpolate("name", question_r13.name);
402
+ ɵɵproperty("required", question_r13.isRequired)("ngModel", question_r13.value)("ngModel", question_r13.value)("ngModelOptions", ɵɵpureFunction0(13, _c4))("options", ɵɵ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", ɵɵ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)));
403
+ ɵɵ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);
404
+ } }
405
+ var _c6 = function () { return { thousands: ",", decimal: ".", align: "right", allowNegative: false, allowZero: true, precision: 2, nullable: false }; };
406
+ function UCSearchComponent_div_21_div_9_div_2_Template(rf, ctx) { if (rf & 1) {
407
+ var _r43 = ɵɵgetCurrentView();
408
+ ɵɵelementStart(0, "div");
409
+ ɵɵelementStart(1, "input", 39);
410
+ ɵɵlistener("keyup.enter", function UCSearchComponent_div_21_div_9_div_2_Template_input_keyup_enter_1_listener() { ɵɵrestoreView(_r43); var ctx_r42 = ɵɵnextContext(3); return ctx_r42.searchClick(); })("ngModelChange", function UCSearchComponent_div_21_div_9_div_2_Template_input_ngModelChange_1_listener($event) { ɵɵrestoreView(_r43); var question_r13 = ɵɵnextContext(2).$implicit; return question_r13.value = $event; });
411
+ ɵɵelementEnd();
412
+ ɵɵelementEnd();
413
+ } if (rf & 2) {
414
+ var question_r13 = ɵɵnextContext(2).$implicit;
415
+ ɵɵnextContext();
416
+ var _r2 = ɵɵreference(9);
417
+ ɵɵadvance(1);
418
+ ɵɵpropertyInterpolate("id", question_r13.id);
419
+ ɵɵpropertyInterpolate("name", question_r13.name);
420
+ ɵɵproperty("required", question_r13.isRequired)("ngModel", question_r13.value)("ngModel", question_r13.value)("ngModelOptions", ɵɵpureFunction0(13, _c4))("options", ɵɵpureFunction0(14, _c6))("ngClass", ɵɵ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)));
421
+ ɵɵ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);
422
+ } }
423
+ function UCSearchComponent_div_21_div_9_Template(rf, ctx) { if (rf & 1) {
424
+ ɵɵelementStart(0, "div");
425
+ ɵɵtemplate(1, UCSearchComponent_div_21_div_9_div_1_Template, 2, 24, "div", 33);
426
+ ɵɵtemplate(2, UCSearchComponent_div_21_div_9_div_2_Template, 2, 17, "div", 33);
427
+ ɵɵelementEnd();
428
+ } if (rf & 2) {
429
+ var question_r13 = ɵɵnextContext().$implicit;
430
+ ɵɵadvance(1);
431
+ ɵɵproperty("ngIf", (question_r13 == null ? null : question_r13.isCustom) != undefined && (question_r13 == null ? null : question_r13.isCustom));
432
+ ɵɵadvance(1);
433
+ ɵɵproperty("ngIf", (question_r13 == null ? null : question_r13.isCustom) == undefined || !(question_r13 == null ? null : question_r13.isCustom));
434
+ } }
435
+ function UCSearchComponent_div_21_div_10_Template(rf, ctx) { if (rf & 1) {
436
+ var _r49 = ɵɵgetCurrentView();
437
+ ɵɵelementStart(0, "div");
438
+ ɵɵelementStart(1, "input", 40);
439
+ ɵɵlistener("keyup.enter", function UCSearchComponent_div_21_div_10_Template_input_keyup_enter_1_listener() { ɵɵrestoreView(_r49); var ctx_r48 = ɵɵnextContext(2); return ctx_r48.searchClick(); })("focusout", function UCSearchComponent_div_21_div_10_Template_input_focusout_1_listener() { ɵɵrestoreView(_r49); var question_r13 = ɵɵnextContext().$implicit; var ctx_r50 = ɵɵnextContext(); return question_r13.restriction != undefined && ctx_r50.checkInputDate(question_r13); });
440
+ ɵɵpipe(2, "date");
441
+ ɵɵpipe(3, "date");
442
+ ɵɵelementEnd();
443
+ ɵɵelementEnd();
444
+ } if (rf & 2) {
445
+ var ctx_r52 = ɵɵnextContext();
446
+ var question_r13 = ctx_r52.$implicit;
447
+ var i_r14 = ctx_r52.index;
448
+ ɵɵnextContext();
449
+ var _r2 = ɵɵreference(9);
450
+ ɵɵadvance(1);
451
+ ɵɵpropertyInterpolate("type", question_r13.isTime ? "datetime-local" : "date");
452
+ ɵɵpropertyInterpolate("id", question_r13.id);
453
+ ɵɵpropertyInterpolate("name", question_r13.name + ɵɵpureFunction1(23, _c3, i_r14));
454
+ ɵɵpropertyInterpolate("value", question_r13.value);
455
+ ɵɵpropertyInterpolate("min", ɵɵpipeBind2(2, 17, question_r13.minDate, "yyyy-MM-dd"));
456
+ ɵɵpropertyInterpolate("max", ɵɵpipeBind2(3, 20, question_r13.maxDate, "yyyy-MM-dd"));
457
+ ɵɵproperty("ngModel", question_r13.value)("required", question_r13.isRequired)("readonly", question_r13.readonly)("ngClass", ɵɵpureFunction1(37, _c2, (_r2.submitted || (_r2.form.controls[question_r13.name + ɵɵpureFunction1(25, _c3, i_r14)] == null ? null : _r2.form.controls[question_r13.name + ɵɵpureFunction1(27, _c3, i_r14)].touched) || (_r2.form.controls[question_r13.name + ɵɵpureFunction1(29, _c3, i_r14)] == null ? null : _r2.form.controls[question_r13.name + ɵɵpureFunction1(31, _c3, i_r14)].dirty)) && (_r2.form.controls[question_r13.name + ɵɵpureFunction1(33, _c3, i_r14)] == null ? null : _r2.form.controls[question_r13.name + ɵɵpureFunction1(35, _c3, i_r14)].invalid)));
458
+ ɵɵ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);
459
+ } }
460
+ function UCSearchComponent_div_21_div_11_option_2_Template(rf, ctx) { if (rf & 1) {
461
+ ɵɵelementStart(0, "option", 45);
462
+ ɵɵtext(1, "Select One");
463
+ ɵɵelementEnd();
464
+ } }
465
+ function UCSearchComponent_div_21_div_11_option_3_Template(rf, ctx) { if (rf & 1) {
466
+ ɵɵelementStart(0, "option", 46);
467
+ ɵɵtext(1, "All");
468
+ ɵɵelementEnd();
469
+ } }
470
+ function UCSearchComponent_div_21_div_11_option_4_Template(rf, ctx) { if (rf & 1) {
471
+ ɵɵelementStart(0, "option", 47);
472
+ ɵɵtext(1);
473
+ ɵɵelementEnd();
474
+ } if (rf & 2) {
475
+ var item_r57 = ctx.$implicit;
476
+ ɵɵpropertyInterpolate("value", item_r57.Key);
477
+ ɵɵadvance(1);
478
+ ɵɵtextInterpolate1(" ", item_r57.Value, " ");
479
+ } }
480
+ function UCSearchComponent_div_21_div_11_label_5_Template(rf, ctx) { if (rf & 1) {
481
+ ɵɵelementStart(0, "label");
482
+ ɵɵtext(1);
483
+ ɵɵelementEnd();
484
+ } if (rf & 2) {
485
+ var question_r13 = ɵɵnextContext(2).$implicit;
486
+ ɵɵadvance(1);
487
+ ɵɵtextInterpolate(question_r13.itemsUrl[0].Value);
488
+ } }
489
+ function UCSearchComponent_div_21_div_11_Template(rf, ctx) { if (rf & 1) {
490
+ var _r61 = ɵɵgetCurrentView();
491
+ ɵɵelementStart(0, "div");
492
+ ɵɵelementStart(1, "select", 41);
493
+ ɵɵlistener("change", function UCSearchComponent_div_21_div_11_Template_select_change_1_listener() { ɵɵrestoreView(_r61); var ctx_r60 = ɵɵnextContext(); var question_r13 = ctx_r60.$implicit; var i_r14 = ctx_r60.index; var ctx_r59 = ɵɵnextContext(); return question_r13.type == "taskDefinitionKey" || question_r13.type == "processKey" ? ctx_r59.SetProcessKey(i_r14, question_r13.wfKeyFilter) : ctx_r59.SetRoleOfficeCodes(i_r14); });
494
+ ɵɵtemplate(2, UCSearchComponent_div_21_div_11_option_2_Template, 2, 0, "option", 42);
495
+ ɵɵtemplate(3, UCSearchComponent_div_21_div_11_option_3_Template, 2, 0, "option", 43);
496
+ ɵɵtemplate(4, UCSearchComponent_div_21_div_11_option_4_Template, 2, 2, "option", 44);
497
+ ɵɵelementEnd();
498
+ ɵɵtemplate(5, UCSearchComponent_div_21_div_11_label_5_Template, 2, 1, "label", 33);
499
+ ɵɵelementEnd();
500
+ } if (rf & 2) {
501
+ var question_r13 = ɵɵnextContext().$implicit;
502
+ ɵɵnextContext();
503
+ var _r2 = ɵɵreference(9);
504
+ ɵɵadvance(1);
505
+ ɵɵpropertyInterpolate("name", question_r13.name);
506
+ ɵɵproperty("required", question_r13.isRequired)("hidden", (question_r13 == null ? null : question_r13.itemsUrl == null ? null : question_r13.itemsUrl.length) == 1)("ngClass", ɵɵ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)));
507
+ ɵɵattribute("data-required", question_r13.isRequired)("query-in", question_r13.isQueryIn)("data-type", question_r13.datatype)("label", question_r13.label);
508
+ ɵɵadvance(1);
509
+ ɵɵproperty("ngIf", question_r13.ddlType == "one" && (question_r13 == null ? null : question_r13.itemsUrl == null ? null : question_r13.itemsUrl.length) != 1);
510
+ ɵɵadvance(1);
511
+ ɵɵ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);
512
+ ɵɵadvance(1);
513
+ ɵɵproperty("ngForOf", question_r13 == null ? null : question_r13.itemsUrl);
514
+ ɵɵadvance(1);
515
+ ɵɵproperty("ngIf", (question_r13 == null ? null : question_r13.itemsUrl == null ? null : question_r13.itemsUrl.length) == 1);
516
+ } }
517
+ function UCSearchComponent_div_21_div_12_option_2_Template(rf, ctx) { if (rf & 1) {
518
+ ɵɵelementStart(0, "option", 45);
519
+ ɵɵtext(1, " Select One");
520
+ ɵɵelementEnd();
521
+ } }
522
+ function UCSearchComponent_div_21_div_12_option_3_Template(rf, ctx) { if (rf & 1) {
523
+ ɵɵelementStart(0, "option", 46);
524
+ ɵɵtext(1, "All");
525
+ ɵɵelementEnd();
526
+ } }
527
+ function UCSearchComponent_div_21_div_12_option_4_Template(rf, ctx) { if (rf & 1) {
528
+ ɵɵelementStart(0, "option", 47);
529
+ ɵɵtext(1);
530
+ ɵɵelementEnd();
531
+ } if (rf & 2) {
532
+ var item_r67 = ctx.$implicit;
533
+ var question_r13 = ɵɵnextContext(2).$implicit;
534
+ ɵɵpropertyInterpolate("value", !question_r13.isFromURL ? item_r67.key : item_r67.Key);
535
+ ɵɵadvance(1);
536
+ ɵɵtextInterpolate1(" ", !question_r13.isFromURL ? item_r67.value : item_r67.Value, " ");
537
+ } }
538
+ function UCSearchComponent_div_21_div_12_label_5_Template(rf, ctx) { if (rf & 1) {
539
+ ɵɵelementStart(0, "label");
540
+ ɵɵtext(1);
541
+ ɵɵelementEnd();
542
+ } if (rf & 2) {
543
+ var question_r13 = ɵɵnextContext(2).$implicit;
544
+ ɵɵadvance(1);
545
+ ɵɵtextInterpolate(!question_r13.isFromURL ? question_r13.items[0].value : question_r13.itemsUrl[0].Value);
546
+ } }
547
+ function UCSearchComponent_div_21_div_12_Template(rf, ctx) { if (rf & 1) {
548
+ var _r72 = ɵɵgetCurrentView();
549
+ ɵɵelementStart(0, "div");
550
+ ɵɵelementStart(1, "select", 48);
551
+ ɵɵlistener("ngModelChange", function UCSearchComponent_div_21_div_12_Template_select_ngModelChange_1_listener($event) { ɵɵrestoreView(_r72); var question_r13 = ɵɵnextContext().$implicit; return question_r13.value = $event; })("change", function UCSearchComponent_div_21_div_12_Template_select_change_1_listener($event) { ɵɵrestoreView(_r72); var question_r13 = ɵɵnextContext().$implicit; var ctx_r73 = ɵɵnextContext(); return question_r13.isEvent ? ctx_r73.onChangeEvent($event.target.value, question_r13) : ""; });
552
+ ɵɵtemplate(2, UCSearchComponent_div_21_div_12_option_2_Template, 2, 0, "option", 42);
553
+ ɵɵtemplate(3, UCSearchComponent_div_21_div_12_option_3_Template, 2, 0, "option", 43);
554
+ ɵɵtemplate(4, UCSearchComponent_div_21_div_12_option_4_Template, 2, 2, "option", 44);
555
+ ɵɵelementEnd();
556
+ ɵɵtemplate(5, UCSearchComponent_div_21_div_12_label_5_Template, 2, 1, "label", 33);
557
+ ɵɵelementEnd();
558
+ } if (rf & 2) {
559
+ var question_r13 = ɵɵnextContext().$implicit;
560
+ ɵɵnextContext();
561
+ var _r2 = ɵɵreference(9);
562
+ ɵɵadvance(1);
563
+ ɵɵpropertyInterpolate("name", question_r13.name);
564
+ ɵɵ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", ɵɵ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)));
565
+ ɵɵ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);
566
+ ɵɵadvance(1);
567
+ ɵɵ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));
568
+ ɵɵadvance(1);
569
+ ɵɵ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));
570
+ ɵɵadvance(1);
571
+ ɵɵproperty("ngForOf", !question_r13.isFromURL ? question_r13 == null ? null : question_r13.items : question_r13 == null ? null : question_r13.itemsUrl);
572
+ ɵɵadvance(1);
573
+ ɵɵ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);
574
+ } }
575
+ function UCSearchComponent_div_21_div_13_label_3_Template(rf, ctx) { if (rf & 1) {
576
+ ɵɵelementStart(0, "label");
577
+ ɵɵtext(1);
578
+ ɵɵelementEnd();
579
+ } if (rf & 2) {
580
+ var question_r13 = ɵɵnextContext(2).$implicit;
581
+ ɵɵadvance(1);
582
+ ɵɵtextInterpolate(question_r13.descr);
583
+ } }
584
+ function UCSearchComponent_div_21_div_13_option_8_Template(rf, ctx) { if (rf & 1) {
585
+ var _r83 = ɵɵgetCurrentView();
586
+ ɵɵelementStart(0, "option", 58);
587
+ ɵɵlistener("click", function UCSearchComponent_div_21_div_13_option_8_Template_option_click_0_listener() { ɵɵrestoreView(_r83); var question_r13 = ɵɵnextContext(2).$implicit; var ctx_r81 = ɵɵnextContext(); return ctx_r81.selectedOption({ Key: "one", Value: "Select One" }, question_r13); });
588
+ ɵɵtext(1, " Select One");
589
+ ɵɵelementEnd();
590
+ } }
591
+ function UCSearchComponent_div_21_div_13_option_9_Template(rf, ctx) { if (rf & 1) {
592
+ var _r86 = ɵɵgetCurrentView();
593
+ ɵɵelementStart(0, "option", 59);
594
+ ɵɵlistener("click", function UCSearchComponent_div_21_div_13_option_9_Template_option_click_0_listener() { ɵɵrestoreView(_r86); var question_r13 = ɵɵnextContext(2).$implicit; var ctx_r84 = ɵɵnextContext(); return ctx_r84.selectedOption({ Key: "all", Value: "All" }, question_r13); });
595
+ ɵɵtext(1, "All");
596
+ ɵɵelementEnd();
597
+ } }
598
+ function UCSearchComponent_div_21_div_13_option_10_Template(rf, ctx) { if (rf & 1) {
599
+ var _r90 = ɵɵgetCurrentView();
600
+ ɵɵelementStart(0, "option", 60);
601
+ ɵɵlistener("click", function UCSearchComponent_div_21_div_13_option_10_Template_option_click_0_listener() { ɵɵrestoreView(_r90); var item_r87 = ctx.$implicit; var question_r13 = ɵɵnextContext(2).$implicit; var ctx_r88 = ɵɵnextContext(); return ctx_r88.selectedOption(item_r87, question_r13); });
602
+ ɵɵtext(1);
603
+ ɵɵelementEnd();
604
+ } if (rf & 2) {
605
+ var item_r87 = ctx.$implicit;
606
+ ɵɵpropertyInterpolate("value", item_r87.Key);
607
+ ɵɵadvance(1);
608
+ ɵɵtextInterpolate1(" ", item_r87.Value, " ");
609
+ } }
610
+ function UCSearchComponent_div_21_div_13_Template(rf, ctx) { if (rf & 1) {
611
+ var _r93 = ɵɵgetCurrentView();
612
+ ɵɵelementStart(0, "div");
613
+ ɵɵelementStart(1, "div", 49);
614
+ ɵɵelementStart(2, "input", 50);
615
+ ɵɵlistener("ngModelChange", function UCSearchComponent_div_21_div_13_Template_input_ngModelChange_2_listener($event) { ɵɵrestoreView(_r93); var question_r13 = ɵɵnextContext().$implicit; return question_r13.descr = $event; })("click", function UCSearchComponent_div_21_div_13_Template_input_click_2_listener() { ɵɵrestoreView(_r93); var question_r13 = ɵɵnextContext().$implicit; question_r13.isListHide = !question_r13.isListHide; return question_r13.searchText = ""; });
616
+ ɵɵelementEnd();
617
+ ɵɵelementEnd();
618
+ ɵɵtemplate(3, UCSearchComponent_div_21_div_13_label_3_Template, 2, 1, "label", 33);
619
+ ɵɵelementStart(4, "div", 51);
620
+ ɵɵelementStart(5, "input", 52);
621
+ ɵɵlistener("ngModelChange", function UCSearchComponent_div_21_div_13_Template_input_ngModelChange_5_listener($event) { ɵɵrestoreView(_r93); var question_r13 = ɵɵnextContext().$implicit; return question_r13.searchText = $event; });
622
+ ɵɵelementEnd();
623
+ ɵɵelementStart(6, "div", 53);
624
+ ɵɵelementStart(7, "select", 54);
625
+ ɵɵlistener("ngModelChange", function UCSearchComponent_div_21_div_13_Template_select_ngModelChange_7_listener($event) { ɵɵrestoreView(_r93); var question_r13 = ɵɵnextContext().$implicit; return question_r13.value = $event; })("change", function UCSearchComponent_div_21_div_13_Template_select_change_7_listener($event) { ɵɵrestoreView(_r93); var question_r13 = ɵɵnextContext().$implicit; var ctx_r100 = ɵɵnextContext(); return question_r13.isEvent ? ctx_r100.onChangeEvent($event.target.value, question_r13) : ""; });
626
+ ɵɵtemplate(8, UCSearchComponent_div_21_div_13_option_8_Template, 2, 0, "option", 55);
627
+ ɵɵtemplate(9, UCSearchComponent_div_21_div_13_option_9_Template, 2, 0, "option", 56);
628
+ ɵɵtemplate(10, UCSearchComponent_div_21_div_13_option_10_Template, 2, 2, "option", 57);
629
+ ɵɵpipe(11, "textSearch");
630
+ ɵɵpipe(12, "textSearch");
631
+ ɵɵelementEnd();
632
+ ɵɵelementEnd();
633
+ ɵɵelementEnd();
634
+ ɵɵelementEnd();
635
+ } if (rf & 2) {
636
+ var question_r13 = ɵɵnextContext().$implicit;
637
+ ɵɵnextContext();
638
+ var _r2 = ɵɵreference(9);
639
+ ɵɵadvance(1);
640
+ ɵɵ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);
641
+ ɵɵadvance(1);
642
+ ɵɵpropertyInterpolate("name", "ddsValue" + question_r13.name);
643
+ ɵɵproperty("ngModel", question_r13.descr);
644
+ ɵɵadvance(1);
645
+ ɵɵ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);
646
+ ɵɵadvance(1);
647
+ ɵɵproperty("hidden", question_r13.isListHide);
648
+ ɵɵadvance(1);
649
+ ɵɵpropertyInterpolate("name", "searchText" + question_r13.name);
650
+ ɵɵproperty("ngModel", question_r13.searchText)("placeholder", question_r13.placeholder);
651
+ ɵɵadvance(2);
652
+ ɵɵpropertyInterpolate("name", question_r13.name);
653
+ ɵɵpropertyInterpolate("size", (question_r13 == null ? null : question_r13.size) == undefined ? question_r13 == null ? null : question_r13.size : 10);
654
+ ɵɵproperty("ngModel", question_r13.value)("required", question_r13.isRequired)("ngClass", ɵɵ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)));
655
+ ɵɵ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);
656
+ ɵɵadvance(1);
657
+ ɵɵ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));
658
+ ɵɵadvance(1);
659
+ ɵɵ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));
660
+ ɵɵadvance(1);
661
+ ɵɵproperty("ngForOf", !question_r13.isFromURL ? ɵɵpipeBind2(11, 22, question_r13 == null ? null : question_r13.items, question_r13.searchText) : ɵɵpipeBind2(12, 25, question_r13 == null ? null : question_r13.itemsUrl, question_r13.searchText));
662
+ } }
663
+ function UCSearchComponent_div_21_div_14_option_2_Template(rf, ctx) { if (rf & 1) {
664
+ ɵɵelementStart(0, "option", 45);
665
+ ɵɵtext(1, "Select One");
666
+ ɵɵelementEnd();
667
+ } }
668
+ function UCSearchComponent_div_21_div_14_option_3_Template(rf, ctx) { if (rf & 1) {
669
+ ɵɵelementStart(0, "option", 46);
670
+ ɵɵtext(1, "All");
671
+ ɵɵelementEnd();
672
+ } }
673
+ function UCSearchComponent_div_21_div_14_option_4_Template(rf, ctx) { if (rf & 1) {
674
+ ɵɵelementStart(0, "option", 47);
675
+ ɵɵtext(1);
676
+ ɵɵelementEnd();
677
+ } if (rf & 2) {
678
+ var item_r106 = ctx.$implicit;
679
+ ɵɵpropertyInterpolate("value", item_r106.Key);
680
+ ɵɵadvance(1);
681
+ ɵɵtextInterpolate1(" ", item_r106.Value, " ");
682
+ } }
683
+ function UCSearchComponent_div_21_div_14_Template(rf, ctx) { if (rf & 1) {
684
+ ɵɵelementStart(0, "div");
685
+ ɵɵelementStart(1, "select", 61);
686
+ ɵɵtemplate(2, UCSearchComponent_div_21_div_14_option_2_Template, 2, 0, "option", 42);
687
+ ɵɵtemplate(3, UCSearchComponent_div_21_div_14_option_3_Template, 2, 0, "option", 43);
688
+ ɵɵtemplate(4, UCSearchComponent_div_21_div_14_option_4_Template, 2, 2, "option", 44);
689
+ ɵɵelementEnd();
690
+ ɵɵelementEnd();
691
+ } if (rf & 2) {
692
+ var ctx_r107 = ɵɵnextContext();
693
+ var i_r14 = ctx_r107.index;
694
+ var question_r13 = ctx_r107.$implicit;
695
+ var ctx_r23 = ɵɵnextContext();
696
+ var _r2 = ɵɵreference(9);
697
+ ɵɵadvance(1);
698
+ ɵɵpropertyInterpolate("name", "claim" + ɵɵpureFunction1(9, _c3, i_r14));
699
+ ɵɵproperty("hidden", (ctx_r23.ClaimList == null ? null : ctx_r23.ClaimList.length) == 1)("ngClass", ɵɵpureFunction1(23, _c2, (_r2.submitted || (_r2.form.controls["claim" + ɵɵpureFunction1(11, _c3, i_r14)] == null ? null : _r2.form.controls["claim" + ɵɵpureFunction1(13, _c3, i_r14)].touched) || (_r2.form.controls["claim" + ɵɵpureFunction1(15, _c3, i_r14)] == null ? null : _r2.form.controls["claim" + ɵɵpureFunction1(17, _c3, i_r14)].dirty)) && (_r2.form.controls["claim" + ɵɵpureFunction1(19, _c3, i_r14)] == null ? null : _r2.form.controls["claim" + ɵɵpureFunction1(21, _c3, i_r14)].invalid)));
700
+ ɵɵattribute("data-type", "text")("data-crit-datatable", question_r13.isCriteriaDataTable)("data-name", "Assignee");
701
+ ɵɵadvance(1);
702
+ ɵɵproperty("ngIf", question_r13.ddlType == "one" && (ctx_r23.ClaimList == null ? null : ctx_r23.ClaimList.length) != 1);
703
+ ɵɵadvance(1);
704
+ ɵɵproperty("ngIf", ((question_r13 == null ? null : question_r13.ddlType) == undefined || question_r13.ddlType == "all") && (ctx_r23.ClaimList == null ? null : ctx_r23.ClaimList.length) != 1);
705
+ ɵɵadvance(1);
706
+ ɵɵproperty("ngForOf", ctx_r23.ClaimList);
707
+ } }
708
+ function UCSearchComponent_div_21_lib_uc_show_errors_15_Template(rf, ctx) { if (rf & 1) {
709
+ ɵɵelement(0, "lib-uc-show-errors", 62);
710
+ } if (rf & 2) {
711
+ var question_r13 = ɵɵnextContext().$implicit;
712
+ ɵɵnextContext();
713
+ var _r2 = ɵɵreference(9);
714
+ ɵɵproperty("control", _r2.form.controls[question_r13.name])("submit", _r2.submitted);
715
+ } }
716
+ function UCSearchComponent_div_21_lib_uc_show_errors_16_Template(rf, ctx) { if (rf & 1) {
717
+ ɵɵelement(0, "lib-uc-show-errors", 62);
718
+ } if (rf & 2) {
719
+ var ctx_r109 = ɵɵnextContext();
720
+ var question_r13 = ctx_r109.$implicit;
721
+ var i_r14 = ctx_r109.index;
722
+ ɵɵnextContext();
723
+ var _r2 = ɵɵreference(9);
724
+ ɵɵproperty("control", _r2.form.controls[question_r13.name + ɵɵpureFunction1(2, _c3, i_r14)])("submit", _r2.submitted);
725
+ } }
726
+ var _c7 = function (a0) { return { "adins-required-label": a0 }; };
727
+ function UCSearchComponent_div_21_Template(rf, ctx) { if (rf & 1) {
728
+ ɵɵelementStart(0, "div", 30);
729
+ ɵɵelementStart(1, "div", 2);
730
+ ɵɵelementStart(2, "div", 17);
731
+ ɵɵelementStart(3, "label", 31);
732
+ ɵɵtext(4);
733
+ ɵɵelementEnd();
734
+ ɵɵelementStart(5, "div", 32);
735
+ ɵɵtemplate(6, UCSearchComponent_div_21_div_6_Template, 2, 14, "div", 33);
736
+ ɵɵtemplate(7, UCSearchComponent_div_21_div_7_Template, 2, 12, "div", 33);
737
+ ɵɵtemplate(8, UCSearchComponent_div_21_div_8_Template, 2, 29, "div", 33);
738
+ ɵɵtemplate(9, UCSearchComponent_div_21_div_9_Template, 3, 2, "div", 33);
739
+ ɵɵtemplate(10, UCSearchComponent_div_21_div_10_Template, 4, 39, "div", 33);
740
+ ɵɵtemplate(11, UCSearchComponent_div_21_div_11_Template, 6, 14, "div", 33);
741
+ ɵɵtemplate(12, UCSearchComponent_div_21_div_12_Template, 6, 17, "div", 33);
742
+ ɵɵtemplate(13, UCSearchComponent_div_21_div_13_Template, 13, 30, "div", 33);
743
+ ɵɵtemplate(14, UCSearchComponent_div_21_div_14_Template, 5, 25, "div", 33);
744
+ ɵɵtemplate(15, UCSearchComponent_div_21_lib_uc_show_errors_15_Template, 1, 2, "lib-uc-show-errors", 34);
745
+ ɵɵtemplate(16, UCSearchComponent_div_21_lib_uc_show_errors_16_Template, 1, 4, "lib-uc-show-errors", 34);
746
+ ɵɵelementEnd();
747
+ ɵɵelementEnd();
748
+ ɵɵelementEnd();
749
+ ɵɵelementEnd();
750
+ } if (rf & 2) {
751
+ var question_r13 = ctx.$implicit;
752
+ ɵɵadvance(3);
753
+ ɵɵpropertyInterpolate("for", question_r13.id);
754
+ ɵɵproperty("ngClass", ɵɵpureFunction1(14, _c7, question_r13.isRequired || (question_r13 == null ? null : question_r13.ddlType) != undefined && question_r13.ddlType == "one"));
755
+ ɵɵadvance(1);
756
+ ɵɵtextInterpolate(question_r13.label);
757
+ ɵɵadvance(2);
758
+ ɵɵproperty("ngIf", question_r13.type == "textbox");
759
+ ɵɵadvance(1);
760
+ ɵɵproperty("ngIf", question_r13.type == "textarea");
761
+ ɵɵadvance(1);
762
+ ɵɵproperty("ngIf", question_r13.type == "numeric");
763
+ ɵɵadvance(1);
764
+ ɵɵproperty("ngIf", question_r13.type == "currency");
765
+ ɵɵadvance(1);
766
+ ɵɵproperty("ngIf", question_r13.type == "datepicker");
767
+ ɵɵadvance(1);
768
+ ɵɵproperty("ngIf", question_r13.type == "taskDefinitionKey" || question_r13.type == "processKey" || question_r13.type == "officeRoleCodes");
769
+ ɵɵadvance(1);
770
+ ɵɵproperty("ngIf", question_r13.type == "dropdown");
771
+ ɵɵadvance(1);
772
+ ɵɵproperty("ngIf", question_r13.type == "dropdownSearch");
773
+ ɵɵadvance(1);
774
+ ɵɵproperty("ngIf", question_r13.type == "claim");
775
+ ɵɵadvance(1);
776
+ ɵɵproperty("ngIf", question_r13.type != "datepicker");
777
+ ɵɵadvance(1);
778
+ ɵɵproperty("ngIf", question_r13.type == "datepicker");
779
+ } }
780
+ function UCSearchComponent_div_22_option_7_Template(rf, ctx) { if (rf & 1) {
781
+ ɵɵelementStart(0, "option", 47);
782
+ ɵɵtext(1);
783
+ ɵɵelementEnd();
784
+ } if (rf & 2) {
785
+ var item_r111 = ctx.$implicit;
786
+ ɵɵproperty("value", item_r111.key);
787
+ ɵɵadvance(1);
788
+ ɵɵtextInterpolate(item_r111.value);
789
+ } }
790
+ function UCSearchComponent_div_22_Template(rf, ctx) { if (rf & 1) {
791
+ var _r113 = ɵɵgetCurrentView();
792
+ ɵɵelementStart(0, "div", 30);
793
+ ɵɵelementStart(1, "div", 2);
794
+ ɵɵelementStart(2, "div", 17);
795
+ ɵɵelementStart(3, "label", 63);
796
+ ɵɵtext(4, "Report Type");
797
+ ɵɵelementEnd();
798
+ ɵɵelementStart(5, "div", 32);
799
+ ɵɵelementStart(6, "select", 64);
800
+ ɵɵlistener("ngModelChange", function UCSearchComponent_div_22_Template_select_ngModelChange_6_listener($event) { ɵɵrestoreView(_r113); var ctx_r112 = ɵɵnextContext(); return ctx_r112.ExportType = $event; });
801
+ ɵɵtemplate(7, UCSearchComponent_div_22_option_7_Template, 2, 2, "option", 44);
802
+ ɵɵelementEnd();
803
+ ɵɵelementEnd();
804
+ ɵɵelementEnd();
805
+ ɵɵelementEnd();
806
+ ɵɵelementEnd();
807
+ } if (rf & 2) {
808
+ var ctx_r9 = ɵɵnextContext();
809
+ ɵɵadvance(6);
810
+ ɵɵproperty("ngModel", ctx_r9.ExportType);
811
+ ɵɵadvance(1);
812
+ ɵɵproperty("ngForOf", ctx_r9.ExportTypeList);
813
+ } }
814
+ function UCSearchComponent_button_25_Template(rf, ctx) { if (rf & 1) {
815
+ var _r115 = ɵɵgetCurrentView();
816
+ ɵɵelementStart(0, "button", 65);
817
+ ɵɵlistener("click", function UCSearchComponent_button_25_Template_button_click_0_listener() { ɵɵrestoreView(_r115); var ctx_r114 = ɵɵnextContext(); return ctx_r114.exportAsXLSX(); });
818
+ ɵɵelement(1, "i", 66);
819
+ ɵɵtext(2, "\u00A0");
820
+ ɵɵelementStart(3, "span", 25);
821
+ ɵɵtext(4, "Export Excel");
822
+ ɵɵelementEnd();
823
+ ɵɵelementEnd();
824
+ } }
825
+ function UCSearchComponent_button_31_Template(rf, ctx) { if (rf & 1) {
826
+ ɵɵelementStart(0, "button", 67, 68);
827
+ ɵɵelement(2, "i", 69);
828
+ ɵɵtext(3, "\u00A0");
829
+ ɵɵelementStart(4, "span", 25);
830
+ ɵɵtext(5, "Search");
831
+ ɵɵelementEnd();
832
+ ɵɵelementEnd();
833
+ } }
834
+ function UCSearchComponent_button_32_Template(rf, ctx) { if (rf & 1) {
835
+ var _r118 = ɵɵgetCurrentView();
836
+ ɵɵelementStart(0, "button", 70);
837
+ ɵɵlistener("click", function UCSearchComponent_button_32_Template_button_click_0_listener() { ɵɵrestoreView(_r118); var ctx_r117 = ɵɵnextContext(); return ctx_r117.GenerateReport(); });
838
+ ɵɵelement(1, "i", 66);
839
+ ɵɵtext(2, "\u00A0");
840
+ ɵɵelementStart(3, "span", 25);
841
+ ɵɵtext(4, "Generate Report");
842
+ ɵɵelementEnd();
843
+ ɵɵelementEnd();
844
+ } }
249
845
  var UCSearchComponent = /** @class */ (function () {
250
- function UCSearchComponent(http, excelService, _renderer2, _document, toastr, cookieService, datePipe) {
846
+ function UCSearchComponent(http, excelService, _renderer2, _document, toastr, cookieService, datePipe, elemRef) {
251
847
  this.http = http;
252
848
  this.excelService = excelService;
253
849
  this._renderer2 = _renderer2;
@@ -255,6 +851,7 @@ var UCSearchComponent = /** @class */ (function () {
255
851
  this.toastr = toastr;
256
852
  this.cookieService = cookieService;
257
853
  this.datePipe = datePipe;
854
+ this.elemRef = elemRef;
258
855
  this.searchInput = new InputSearchObj();
259
856
  this.pageSize = 10;
260
857
  this.isReport = false;
@@ -308,13 +905,23 @@ var UCSearchComponent = /** @class */ (function () {
308
905
  this.amount = 0;
309
906
  }
310
907
  Object.defineProperty(UCSearchComponent.prototype, "content", {
311
- // trus nad, bisa ga kalo misalkan gw mau bikin
312
- // kalo login di cabang IsSelectOne: true
313
- // kalo login di HO, IsSelectOne: false
908
+ // isListHide: boolean = true;
909
+ // @HostListener('document:click', ['$event'])
910
+ // onClick(ev: MouseEvent) {
911
+ // const clickInside = this.elemRef.nativeElement.contains(ev.target);
912
+ // if (!clickInside) {
913
+ // this.isListHide = true;
914
+ // }
915
+ // }
314
916
  set:
315
- // trus nad, bisa ga kalo misalkan gw mau bikin
316
- // kalo login di cabang IsSelectOne: true
317
- // kalo login di HO, IsSelectOne: false
917
+ // isListHide: boolean = true;
918
+ // @HostListener('document:click', ['$event'])
919
+ // onClick(ev: MouseEvent) {
920
+ // const clickInside = this.elemRef.nativeElement.contains(ev.target);
921
+ // if (!clickInside) {
922
+ // this.isListHide = true;
923
+ // }
924
+ // }
318
925
  /**
319
926
  * @param {?} content
320
927
  * @return {?}
@@ -324,7 +931,7 @@ var UCSearchComponent = /** @class */ (function () {
324
931
  this.searchForm = content;
325
932
  }
326
933
  },
327
- enumerable: true,
934
+ enumerable: false,
328
935
  configurable: true
329
936
  });
330
937
  /**
@@ -344,18 +951,27 @@ var UCSearchComponent = /** @class */ (function () {
344
951
  * @return {?}
345
952
  */
346
953
  function () {
347
- console.log("ucsearch");
348
- this.apiUrl = this.searchInput.enviromentUrl + this.searchInput.apiQryPaging;
349
- this.arrCrit = this.searchInput.arrCritObj;
350
- /** @type {?} */
351
- var js = this._renderer2.createElement('script');
352
- js.text = "\n $(document).ready(function(){\n $(\"#flip\").click(function(){\n $(\"#panel\").slideToggle(\"slow\");\n });\n });\n ";
353
- this._renderer2.appendChild(this._document.body, js);
354
- /** @type {?} */
355
- var value = this.cookieService.get('BusinessDateRaw');
356
- this.BisDt = this.DecryptString(value, "AdInsFOU12345678");
357
- this.BusinessDt = new Date(this.BisDt);
358
- this.initiateForm();
954
+ return __awaiter(this, void 0, void 0, function () {
955
+ var js, value;
956
+ return __generator(this, function (_a) {
957
+ switch (_a.label) {
958
+ case 0:
959
+ console.log("ucsearch");
960
+ this.apiUrl = this.searchInput.enviromentUrl + this.searchInput.apiQryPaging;
961
+ this.arrCrit = this.searchInput.arrCritObj;
962
+ js = this._renderer2.createElement('script');
963
+ js.text = "\n $(document).ready(function(){\n $(\"#flip\").click(function(){\n $(\"#panel\").slideToggle(\"slow\");\n });\n });\n ";
964
+ this._renderer2.appendChild(this._document.body, js);
965
+ value = this.cookieService.get('BusinessDateRaw');
966
+ this.BisDt = this.DecryptString(value, "AdInsFOU12345678");
967
+ this.BusinessDt = new Date(this.BisDt);
968
+ return [4 /*yield*/, this.initiateForm()];
969
+ case 1:
970
+ _a.sent();
971
+ return [2 /*return*/];
972
+ }
973
+ });
974
+ });
359
975
  };
360
976
  /**
361
977
  * @return {?}
@@ -364,151 +980,173 @@ var UCSearchComponent = /** @class */ (function () {
364
980
  * @return {?}
365
981
  */
366
982
  function () {
367
- var _this = this;
368
- this.getJSON(this.searchInput._url).subscribe((/**
369
- * @param {?} data
370
- * @return {?}
371
- */
372
- function (data) {
373
- _this.configuration = data;
374
- _this.exportData = data.exportExcel;
375
- if (data.exportTypeList != undefined && data.exportTypeList.length != 0) {
376
- _this.ExportTypeList = data.exportTypeList;
377
- _this.ExportType = _this.ExportTypeList[0].key;
378
- }
379
- _this.countForm = data.component.length;
380
- _this.isDataLoaded = true;
381
- if (_this.searchInput.title != undefined && _this.searchInput.title != "") {
382
- _this.configuration.title = _this.searchInput.title;
383
- }
384
- for (var i = 0; i < _this.countForm; i++) {
385
- //ini kalau datanya di load dari URL
386
- if (data.component[i].isFromURL) {
387
- /** @type {?} */
388
- var request = new RequestCriteriaObj();
389
- /** @type {?} */
390
- var arrayCrit = new Array();
391
- /** @type {?} */
392
- var criteriaObject = new CriteriaObj();
393
- criteriaObject.DataType = "text";
394
- criteriaObject.propName = data.component[i].criteriaPropName;
395
- criteriaObject.value = data.component[i].criteriaPropValue;
396
- criteriaObject.restriction = "eq";
397
- arrayCrit.push(criteriaObject);
398
- request.criteria = arrayCrit;
399
- request[data.component[i].criteriaPropName] = data.component[i].criteriaPropValue;
400
- // Pengecekan penggunaan url atau path
401
- if (data.component[i].path != undefined && data.component[i].path != "") {
402
- if (_this.searchInput.listEnvironments != undefined && _this.searchInput.listEnvironments.length != 0) {
403
- for (var y = 0; y < _this.searchInput.listEnvironments.length; y++) {
404
- if (data.component[i].environment == _this.searchInput.listEnvironments[y].environment) {
405
- data.component[i].fullpath = _this.searchInput.listEnvironments[y].url + data.component[i].path;
406
- break;
407
- }
408
- }
409
- }
410
- else {
411
- data.component[i].fullpath = data.component[i].url;
412
- }
413
- }
414
- else {
415
- data.component[i].fullpath = data.component[i].url;
416
- }
417
- //lempar objectnya sekalian sama urlnya, nnti di bind di dalem karena masalah di asyncnya
418
- //biar tiap function ada state2nya sendiri
419
- _this.resolveObject(data.component[i], data.component[i].fullpath, request);
420
- }
421
- if (data.component[i].type == "numeric") {
422
- data.component[i].value = parseFloat(data.component[i].value).toLocaleString('en');
423
- }
424
- //pengecekan ddl
425
- if (data.component[i].type == "dropdown") {
426
- if (data.component[i].dtmType != undefined) {
427
- if (data.component[i].dtmType.includes("month")) {
428
- if (data.component[i].value != undefined && data.component[i].value.includes("BD")) {
429
- data.component[i].value = _this.setDefaultValueMonth(data.component[i].value);
983
+ return __awaiter(this, void 0, void 0, function () {
984
+ var _this = this;
985
+ return __generator(this, function (_a) {
986
+ switch (_a.label) {
987
+ case 0: return [4 /*yield*/, this.getJSON(this.searchInput._url).subscribe((/**
988
+ * @param {?} data
989
+ * @return {?}
990
+ */
991
+ function (data) {
992
+ _this.configuration = data;
993
+ _this.exportData = data.exportExcel;
994
+ if (data.exportTypeList != undefined && data.exportTypeList.length != 0) {
995
+ _this.ExportTypeList = data.exportTypeList;
996
+ _this.ExportType = _this.ExportTypeList[0].key;
430
997
  }
431
- data.component[i].items = _this.setMonthDDL(data.component[i].dtmType);
432
- }
433
- if (data.component[i].dtmType.includes("year")) {
434
- if (data.component[i].value != undefined && data.component[i].value.includes("BD")) {
435
- data.component[i].value = _this.setDefaultValueYear(data.component[i].value);
998
+ _this.countForm = data.component.length;
999
+ _this.isDataLoaded = true;
1000
+ if (_this.searchInput.title != undefined && _this.searchInput.title != "") {
1001
+ _this.configuration.title = _this.searchInput.title;
436
1002
  }
437
- data.component[i].items = _this.setYearDDL(data.component[i].dtmType);
438
- }
439
- }
440
- }
441
- if (!data.component[i].value) {
442
- data.component[i].value = "";
443
- if (data.component[i].ddlType == 'all')
444
- data.component[i].value = "all";
445
- if (data.component[i].ddlType == 'one')
446
- data.component[i].value = "one";
447
- }
448
- //pengecekan tanggal
449
- if (data.component[i].type == "datepicker") {
450
- _this.readonly = data.component[i].readonly;
451
- if (data.component[i].value.includes("BD")) {
452
- /** @type {?} */
453
- var businessDate = new Date();
454
- if (_this.BisDt != null) {
455
- businessDate = new Date(_this.BisDt);
456
- }
457
- /** @type {?} */
458
- var operator = data.component[i].value.charAt(2);
459
- /** @type {?} */
460
- var dateShow = new Date();
461
- if (operator == "-") {
462
- /** @type {?} */
463
- var tempMinus = data.component[i].value.split("-", 2);
464
- /** @type {?} */
465
- var numDay = parseInt(tempMinus[1]);
466
- businessDate.setDate(businessDate.getDate() - numDay);
467
- }
468
- else if (operator == "+") {
469
- /** @type {?} */
470
- var tempMinus = data.component[i].value.split("+", 2);
471
- /** @type {?} */
472
- var numDay = parseInt(tempMinus[1]);
473
- businessDate.setDate(businessDate.getDate() + numDay);
474
- }
475
- dateShow = businessDate;
476
- /** @type {?} */
477
- var dateText = formatDate(dateShow, 'yyyy-MM-dd', 'en-US');
478
- data.component[i].value = dateText;
479
- }
480
- if (_this.readonly = false) {
481
- if (data.component[i].restriction != undefined && data.component[i].restriction != "") {
482
- if (data.component[i].restriction.toUpperCase() == "GT") {
483
- /** @type {?} */
484
- var minDate = new Date(_this.datePipe.transform(data.component[i].minDate, 'yyyy-MM-dd'));
485
- minDate.setDate(minDate.getDate() + 1);
486
- data.component[i].minDate = minDate;
487
- }
488
- else if (data.component[i].restriction.toUpperCase() == "LT") {
489
- /** @type {?} */
490
- var maxDate = new Date(_this.datePipe.transform(data.component[i].maxDate, 'yyyy-MM-dd'));
491
- maxDate.setDate(maxDate.getDate() - 1);
492
- data.component[i].maxDate = maxDate;
1003
+ for (var i = 0; i < _this.countForm; i++) {
1004
+ //ini kalau datanya di load dari URL
1005
+ if (data.component[i].isFromURL) {
1006
+ /** @type {?} */
1007
+ var request = new RequestCriteriaObj();
1008
+ /** @type {?} */
1009
+ var arrayCrit = new Array();
1010
+ /** @type {?} */
1011
+ var criteriaObject = new CriteriaObj();
1012
+ criteriaObject.DataType = "text";
1013
+ criteriaObject.propName = data.component[i].criteriaPropName;
1014
+ criteriaObject.value = data.component[i].criteriaPropValue;
1015
+ criteriaObject.restriction = "eq";
1016
+ arrayCrit.push(criteriaObject);
1017
+ request.criteria = arrayCrit;
1018
+ request[data.component[i].criteriaPropName] = data.component[i].criteriaPropValue;
1019
+ // Pengecekan penggunaan url atau path
1020
+ if (data.component[i].path != undefined && data.component[i].path != "") {
1021
+ if (_this.searchInput.listEnvironments != undefined && _this.searchInput.listEnvironments.length != 0) {
1022
+ for (var y = 0; y < _this.searchInput.listEnvironments.length; y++) {
1023
+ if (data.component[i].environment == _this.searchInput.listEnvironments[y].environment) {
1024
+ data.component[i].fullpath = _this.searchInput.listEnvironments[y].url + data.component[i].path;
1025
+ break;
1026
+ }
1027
+ }
1028
+ }
1029
+ else {
1030
+ data.component[i].fullpath = data.component[i].url;
1031
+ }
1032
+ }
1033
+ else {
1034
+ data.component[i].fullpath = data.component[i].url;
1035
+ }
1036
+ //lempar objectnya sekalian sama urlnya, nnti di bind di dalem karena masalah di asyncnya
1037
+ //biar tiap function ada state2nya sendiri
1038
+ _this.resolveObject(data.component[i], data.component[i].fullpath, request);
1039
+ }
1040
+ if (data.component[i].type == "numeric") {
1041
+ data.component[i].value = parseFloat(data.component[i].value).toLocaleString('en');
1042
+ }
1043
+ //pengecekan ddl
1044
+ if (data.component[i].type == "dropdown") {
1045
+ if (data.component[i].dtmType != undefined) {
1046
+ if (data.component[i].dtmType.includes("month")) {
1047
+ if (data.component[i].value != undefined && data.component[i].value.includes("BD")) {
1048
+ data.component[i].value = _this.setDefaultValueMonth(data.component[i].value);
1049
+ }
1050
+ data.component[i].items = _this.setMonthDDL(data.component[i].dtmType);
1051
+ }
1052
+ if (data.component[i].dtmType.includes("year")) {
1053
+ if (data.component[i].value != undefined && data.component[i].value.includes("BD")) {
1054
+ data.component[i].value = _this.setDefaultValueYear(data.component[i].value);
1055
+ }
1056
+ data.component[i].items = _this.setYearDDL(data.component[i].dtmType);
1057
+ }
1058
+ }
1059
+ }
1060
+ // if (data.component[i].type == "dropdownSearch" && !data.component[i].isFromURL && data.component[i].items?.length != 1) {
1061
+ // if (data.component[i].ddsType == undefined || data.component[i].ddsType == "all") {
1062
+ // data.component[i].value = "all";
1063
+ // data.component[i].descr = "All";
1064
+ // } else if (data.component[i].ddsType == "one") {
1065
+ // data.component[i].value = "one";
1066
+ // data.component[i].descr = "Select One";
1067
+ // }
1068
+ // }
1069
+ if (data.component[i].type == "dropdownSearch" && !data.component[i].isFromURL && data.component[i].items.length == 1) {
1070
+ data.component[i].value = data.component[i].items[0].Key;
1071
+ data.component[i].descr = data.component[i].items[0].Value;
1072
+ }
1073
+ if (data.component[i].type != "dropdownSearch" && !data.component[i].value) {
1074
+ data.component[i].value = "";
1075
+ if (data.component[i].ddlType == 'all')
1076
+ data.component[i].value = "all";
1077
+ if (data.component[i].ddlType == 'one')
1078
+ data.component[i].value = "one";
1079
+ }
1080
+ //pengecekan tanggal
1081
+ if (data.component[i].type == "datepicker") {
1082
+ _this.readonly = data.component[i].readonly;
1083
+ if (data.component[i].value.includes("BD")) {
1084
+ /** @type {?} */
1085
+ var businessDate = new Date();
1086
+ if (_this.BisDt != null) {
1087
+ businessDate = new Date(_this.BisDt);
1088
+ }
1089
+ /** @type {?} */
1090
+ var operator = data.component[i].value.charAt(2);
1091
+ /** @type {?} */
1092
+ var dateShow = new Date();
1093
+ if (operator == "-") {
1094
+ /** @type {?} */
1095
+ var tempMinus = data.component[i].value.split("-", 2);
1096
+ /** @type {?} */
1097
+ var numDay = parseInt(tempMinus[1]);
1098
+ businessDate.setDate(businessDate.getDate() - numDay);
1099
+ }
1100
+ else if (operator == "+") {
1101
+ /** @type {?} */
1102
+ var tempMinus = data.component[i].value.split("+", 2);
1103
+ /** @type {?} */
1104
+ var numDay = parseInt(tempMinus[1]);
1105
+ businessDate.setDate(businessDate.getDate() + numDay);
1106
+ }
1107
+ dateShow = businessDate;
1108
+ /** @type {?} */
1109
+ var dateText = formatDate(dateShow, 'yyyy-MM-dd', 'en-US');
1110
+ data.component[i].value = dateText;
1111
+ }
1112
+ if (_this.readonly = false) {
1113
+ if (data.component[i].restriction != undefined && data.component[i].restriction != "") {
1114
+ if (data.component[i].restriction.toUpperCase() == "GT") {
1115
+ /** @type {?} */
1116
+ var minDate = new Date(_this.datePipe.transform(data.component[i].minDate, 'yyyy-MM-dd'));
1117
+ minDate.setDate(minDate.getDate() + 1);
1118
+ data.component[i].minDate = minDate;
1119
+ }
1120
+ else if (data.component[i].restriction.toUpperCase() == "LT") {
1121
+ /** @type {?} */
1122
+ var maxDate = new Date(_this.datePipe.transform(data.component[i].maxDate, 'yyyy-MM-dd'));
1123
+ maxDate.setDate(maxDate.getDate() - 1);
1124
+ data.component[i].maxDate = maxDate;
1125
+ }
1126
+ }
1127
+ }
1128
+ }
493
1129
  }
494
- }
495
- }
496
- }
497
- }
498
- setTimeout((/**
499
- * @return {?}
500
- */
501
- function () {
502
- for (var j = 0; j < _this.countForm; j++) {
503
- if (data.component[j].isEvent && _this.configuration.component[j].itemsUrl.length == 1) {
504
- _this.onChangeEvent(data.component[j].itemsUrl[0].Key, data.component[j]);
505
- }
506
- if (data.component[j].type == "officeRoleCodes" && _this.configuration.component[j].itemsUrl.length > 0) {
507
- _this.SetRoleOfficeCodes(j);
508
- }
1130
+ setTimeout((/**
1131
+ * @return {?}
1132
+ */
1133
+ function () {
1134
+ for (var j = 0; j < _this.countForm; j++) {
1135
+ if (data.component[j].isEvent && _this.configuration.component[j].itemsUrl.length == 1) {
1136
+ _this.onChangeEvent(data.component[j].itemsUrl[0].Key, data.component[j]);
1137
+ }
1138
+ if (data.component[j].type == "officeRoleCodes" && _this.configuration.component[j].itemsUrl.length > 0) {
1139
+ _this.SetRoleOfficeCodes(j);
1140
+ }
1141
+ }
1142
+ }), 1000);
1143
+ }))];
1144
+ case 1:
1145
+ _a.sent();
1146
+ return [2 /*return*/];
509
1147
  }
510
- }), 1000);
511
- }));
1148
+ });
1149
+ });
512
1150
  };
513
1151
  /**
514
1152
  * @param {?} i
@@ -764,10 +1402,20 @@ var UCSearchComponent = /** @class */ (function () {
764
1402
  * @return {?}
765
1403
  */
766
1404
  function () {
767
- this.searchForm.resetForm({
768
- ExportType: this.ExportTypeList[0].key
1405
+ return __awaiter(this, void 0, void 0, function () {
1406
+ return __generator(this, function (_a) {
1407
+ switch (_a.label) {
1408
+ case 0:
1409
+ this.searchForm.resetForm({
1410
+ ExportType: this.ExportTypeList[0].key
1411
+ });
1412
+ return [4 /*yield*/, this.initiateForm()];
1413
+ case 1:
1414
+ _a.sent();
1415
+ return [2 /*return*/];
1416
+ }
1417
+ });
769
1418
  });
770
- this.initiateForm();
771
1419
  };
772
1420
  /**
773
1421
  * @param {?} apiUrl
@@ -813,11 +1461,19 @@ var UCSearchComponent = /** @class */ (function () {
813
1461
  request.rowPerPage = rowPerPage;
814
1462
  request.orderBy = orderBy;
815
1463
  request.queryString = this.configuration.querystring;
1464
+ /** @type {?} */
1465
+ var formSeq = -1;
816
1466
  for (var i = 0; i < this.countForm; i++) {
817
1467
  /** @type {?} */
818
1468
  var critObj = new CriteriaObj();
1469
+ if (this.configuration.component[i].type == "dropdownSearch") {
1470
+ formSeq += 3;
1471
+ }
1472
+ else {
1473
+ formSeq++;
1474
+ }
819
1475
  /** @type {?} */
820
- var component = this.myForm.nativeElement[i];
1476
+ var component = this.myForm.nativeElement[formSeq];
821
1477
  // // popup message if required
822
1478
  // if (component.getAttribute('data-required') != null && component.getAttribute('data-required') == "true") {
823
1479
  // let val = component.value.trim();
@@ -1026,6 +1682,10 @@ var UCSearchComponent = /** @class */ (function () {
1026
1682
  */
1027
1683
  function (value) { return !obj.exclude.includes(value.Key); }));
1028
1684
  }
1685
+ if (obj.type == "dropdownSearch" && obj.itemsUrl.length == 1) {
1686
+ obj.value = obj.itemsUrl[0].Key;
1687
+ obj.descr = obj.itemsUrl[0].Value;
1688
+ }
1029
1689
  if (obj.affectedFilter && obj.itemsUrl.length == 1) {
1030
1690
  _this.onChangeEvent(obj.itemsUrl[0].Key, obj);
1031
1691
  }
@@ -1447,10 +2107,25 @@ var UCSearchComponent = /** @class */ (function () {
1447
2107
  this.dateWrong = false;
1448
2108
  }
1449
2109
  };
2110
+ /**
2111
+ * @param {?} item
2112
+ * @param {?} crit
2113
+ * @return {?}
2114
+ */
2115
+ UCSearchComponent.prototype.selectedOption = /**
2116
+ * @param {?} item
2117
+ * @param {?} crit
2118
+ * @return {?}
2119
+ */
2120
+ function (item, crit) {
2121
+ crit.descr = item.Value;
2122
+ crit.isListHide = true;
2123
+ };
1450
2124
  UCSearchComponent.decorators = [
1451
2125
  { type: Component, args: [{
1452
2126
  selector: 'lib-UCSearch',
1453
- 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}}\" 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}}\" [readonly]=\"question.readonly\"\r\n attr.data-type=\"{{question.datatype}}\" attr.data-name=\"{{question.name}}\"\r\n attr.data-datepickerpair = \"{{question.datepickerPair}}\" 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'}}\" (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 *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}}\" 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 : question.itemsUrl[0].Value}}</label>\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 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 -->",
2127
+ templateUrl: './ucsearch.component.html',
2128
+ styleUrls: ['./ucsearch.component.css'],
1454
2129
  providers: [ExcelService, DatePipe],
1455
2130
  animations: [
1456
2131
  trigger('changeDivSize', [
@@ -1466,9 +2141,8 @@ var UCSearchComponent = /** @class */ (function () {
1466
2141
  transition('initial=>final', animate('300ms')),
1467
2142
  transition('final=>initial', animate('300ms'))
1468
2143
  ]),
1469
- ],
1470
- styles: [".ucSearch-title{margin:3px}"]
1471
- }] }
2144
+ ]
2145
+ },] },
1472
2146
  ];
1473
2147
  /** @nocollapse */
1474
2148
  UCSearchComponent.ctorParameters = function () { return [
@@ -1478,10 +2152,11 @@ var UCSearchComponent = /** @class */ (function () {
1478
2152
  { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] },
1479
2153
  { type: ToastrService },
1480
2154
  { type: CookieService },
1481
- { type: DatePipe }
2155
+ { type: DatePipe },
2156
+ { type: ElementRef }
1482
2157
  ]; };
1483
2158
  UCSearchComponent.propDecorators = {
1484
- content: [{ type: ViewChild, args: ['enjiForm', { static: false },] }],
2159
+ content: [{ type: ViewChild, args: ['enjiForm',] }],
1485
2160
  myForm: [{ type: ViewChild, args: ['formIdSearch', { static: false },] }],
1486
2161
  searchInput: [{ type: Input }],
1487
2162
  pageSize: [{ type: Input }],
@@ -1490,8 +2165,148 @@ var UCSearchComponent = /** @class */ (function () {
1490
2165
  genRpt: [{ type: Output }],
1491
2166
  reqGetAllData: [{ type: Output }]
1492
2167
  };
2168
+ /** @nocollapse */ UCSearchComponent.ɵfac = function UCSearchComponent_Factory(t) { return new (t || UCSearchComponent)(ɵɵdirectiveInject(HttpClient), ɵɵdirectiveInject(ExcelService), ɵɵdirectiveInject(Renderer2), ɵɵdirectiveInject(DOCUMENT), ɵɵdirectiveInject(ToastrService), ɵɵdirectiveInject(CookieService), ɵɵdirectiveInject(DatePipe), ɵɵdirectiveInject(ElementRef)); };
2169
+ /** @nocollapse */ UCSearchComponent.ɵcmp = ɵɵdefineComponent({ type: UCSearchComponent, selectors: [["lib-UCSearch"]], viewQuery: function UCSearchComponent_Query(rf, ctx) { if (rf & 1) {
2170
+ ɵɵviewQuery(_c0, true);
2171
+ ɵɵviewQuery(_c1, true);
2172
+ } if (rf & 2) {
2173
+ var _t;
2174
+ ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx.content = _t.first);
2175
+ ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx.myForm = _t.first);
2176
+ } }, inputs: { searchInput: "searchInput", pageSize: "pageSize", isReport: "isReport" }, outputs: { result: "result", genRpt: "genRpt", reqGetAllData: "reqGetAllData" }, features: [ɵɵProvidersFeature([ExcelService, 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) { if (rf & 1) {
2177
+ var _r119 = ɵɵgetCurrentView();
2178
+ ɵɵelementStart(0, "section", 0);
2179
+ ɵɵelementStart(1, "div", 1);
2180
+ ɵɵelementStart(2, "div", 2);
2181
+ ɵɵelementStart(3, "div", 3);
2182
+ ɵɵtemplate(4, UCSearchComponent_div_4_Template, 3, 1, "div", 4);
2183
+ ɵɵelementStart(5, "div", 5);
2184
+ ɵɵelementStart(6, "div", 6);
2185
+ ɵɵelementStart(7, "form", 7, 8);
2186
+ ɵɵlistener("ngSubmit", function UCSearchComponent_Template_form_ngSubmit_7_listener() { ɵɵrestoreView(_r119); var _r2 = ɵɵreference(9); return _r2.valid && ctx.searchClick(); });
2187
+ ɵɵelementStart(10, "div", 9);
2188
+ ɵɵelementStart(11, "h4", 10);
2189
+ ɵɵelementStart(12, "div", 11);
2190
+ ɵɵlistener("click", function UCSearchComponent_Template_div_click_12_listener() { return ctx.changeState(); });
2191
+ ɵɵelement(13, "i", 12);
2192
+ ɵɵelementEnd();
2193
+ ɵɵtemplate(14, UCSearchComponent_span_14_Template, 1, 0, "span", 13);
2194
+ ɵɵtemplate(15, UCSearchComponent_ng_template_15_Template, 1, 1, "ng-template", null, 14, ɵɵtemplateRefExtractor);
2195
+ ɵɵtemplate(17, UCSearchComponent_ng_template_17_Template, 1, 0, "ng-template", null, 15, ɵɵtemplateRefExtractor);
2196
+ ɵɵelementEnd();
2197
+ ɵɵelementStart(19, "div", 16);
2198
+ ɵɵelementStart(20, "div", 17);
2199
+ ɵɵtemplate(21, UCSearchComponent_div_21_Template, 17, 16, "div", 18);
2200
+ ɵɵtemplate(22, UCSearchComponent_div_22_Template, 8, 2, "div", 19);
2201
+ ɵɵelementEnd();
2202
+ ɵɵelementStart(23, "div", 20);
2203
+ ɵɵelementStart(24, "div", 21);
2204
+ ɵɵtemplate(25, UCSearchComponent_button_25_Template, 5, 0, "button", 22);
2205
+ ɵɵelementStart(26, "button", 23);
2206
+ ɵɵlistener("click", function UCSearchComponent_Template_button_click_26_listener() { return ctx.reset(); });
2207
+ ɵɵelement(27, "i", 24);
2208
+ ɵɵtext(28, "\u00A0");
2209
+ ɵɵelementStart(29, "span", 25);
2210
+ ɵɵtext(30, "Reset");
2211
+ ɵɵelementEnd();
2212
+ ɵɵelementEnd();
2213
+ ɵɵtemplate(31, UCSearchComponent_button_31_Template, 6, 0, "button", 26);
2214
+ ɵɵtemplate(32, UCSearchComponent_button_32_Template, 5, 0, "button", 27);
2215
+ ɵɵelementEnd();
2216
+ ɵɵelementEnd();
2217
+ ɵɵelementEnd();
2218
+ ɵɵelementEnd();
2219
+ ɵɵelementEnd();
2220
+ ɵɵelementEnd();
2221
+ ɵɵelementEnd();
2222
+ ɵɵelementEnd();
2223
+ ɵɵelementEnd();
2224
+ ɵɵelementEnd();
2225
+ ɵɵelementEnd();
2226
+ ɵɵelement(33, "br");
2227
+ } if (rf & 2) {
2228
+ var _r4 = ɵɵreference(16);
2229
+ var _r6 = ɵɵreference(18);
2230
+ ɵɵadvance(4);
2231
+ ɵɵproperty("ngIf", (ctx.configuration == null ? null : ctx.configuration.title) != undefined && (ctx.configuration == null ? null : ctx.configuration.title) != "");
2232
+ ɵɵadvance(9);
2233
+ ɵɵproperty("ngClass", ctx.isHidden ? "fa-chevron-right" : "fa-chevron-down");
2234
+ ɵɵadvance(1);
2235
+ ɵɵproperty("ngIf", (ctx.configuration == null ? null : ctx.configuration.sectionTitle) != undefined && (ctx.configuration == null ? null : ctx.configuration.sectionTitle) != "")("ngIfThen", _r4)("ngIfElse", _r6);
2236
+ ɵɵadvance(5);
2237
+ ɵɵproperty("@changeDivSize", ctx.currentState);
2238
+ ɵɵadvance(2);
2239
+ ɵɵproperty("ngForOf", ctx.configuration == null ? null : ctx.configuration.component);
2240
+ ɵɵadvance(1);
2241
+ ɵɵproperty("ngIf", ctx.isReport != undefined && ctx.isReport);
2242
+ ɵɵadvance(3);
2243
+ ɵɵproperty("ngIf", ctx.exportData == true);
2244
+ ɵɵadvance(6);
2245
+ ɵɵproperty("ngIf", ctx.isReport == undefined || !ctx.isReport);
2246
+ ɵɵadvance(1);
2247
+ ɵɵproperty("ngIf", ctx.isReport != undefined && ctx.isReport);
2248
+ } }, directives: [NgIf, ɵangular_packages_forms_forms_bh, NgControlStatusGroup, NgForm, NgClass, NgForOf, TranslateDirective, UpperCaseDirective, DefaultValueAccessor, NgControlStatus, NgModel, RequiredValidator, ɵangular_packages_forms_forms_be, CurrencyMaskDirective, NgSelectOption, ɵangular_packages_forms_forms_s, SelectControlValueAccessor, UcShowErrorsComponent], pipes: [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: [
2249
+ trigger('changeDivSize', [
2250
+ state('initial', style({
2251
+ height: '*',
2252
+ opacity: '1',
2253
+ })),
2254
+ state('final', style({
2255
+ height: '0px',
2256
+ opacity: '0',
2257
+ overflow: 'hidden',
2258
+ })),
2259
+ transition('initial=>final', animate('300ms')),
2260
+ transition('final=>initial', animate('300ms'))
2261
+ ]),
2262
+ ] } });
1493
2263
  return UCSearchComponent;
1494
- }());
2264
+ }());
2265
+ /*@__PURE__*/ (function () { ɵsetClassMetadata(UCSearchComponent, [{
2266
+ type: Component,
2267
+ args: [{
2268
+ selector: 'lib-UCSearch',
2269
+ templateUrl: './ucsearch.component.html',
2270
+ styleUrls: ['./ucsearch.component.css'],
2271
+ providers: [ExcelService, DatePipe],
2272
+ animations: [
2273
+ trigger('changeDivSize', [
2274
+ state('initial', style({
2275
+ height: '*',
2276
+ opacity: '1',
2277
+ })),
2278
+ state('final', style({
2279
+ height: '0px',
2280
+ opacity: '0',
2281
+ overflow: 'hidden',
2282
+ })),
2283
+ transition('initial=>final', animate('300ms')),
2284
+ transition('final=>initial', animate('300ms'))
2285
+ ]),
2286
+ ]
2287
+ }]
2288
+ }], function () { return [{ type: HttpClient }, { type: ExcelService }, { type: Renderer2 }, { type: undefined, decorators: [{
2289
+ type: Inject,
2290
+ args: [DOCUMENT]
2291
+ }] }, { type: ToastrService }, { type: CookieService }, { type: DatePipe }, { type: ElementRef }]; }, { content: [{
2292
+ type: ViewChild,
2293
+ args: ['enjiForm']
2294
+ }], myForm: [{
2295
+ type: ViewChild,
2296
+ args: ['formIdSearch', { static: false }]
2297
+ }], searchInput: [{
2298
+ type: Input
2299
+ }], pageSize: [{
2300
+ type: Input
2301
+ }], isReport: [{
2302
+ type: Input
2303
+ }], result: [{
2304
+ type: Output
2305
+ }], genRpt: [{
2306
+ type: Output
2307
+ }], reqGetAllData: [{
2308
+ type: Output
2309
+ }] }); })();
1495
2310
 
1496
2311
  /**
1497
2312
  * @fileoverview added by tsickle
@@ -1515,7 +2330,7 @@ var UCSearchModule = /** @class */ (function () {
1515
2330
  }
1516
2331
  UCSearchModule.decorators = [
1517
2332
  { type: NgModule, args: [{
1518
- declarations: [UCSearchComponent],
2333
+ declarations: [UCSearchComponent, TextSearchPipe],
1519
2334
  imports: [
1520
2335
  CommonModule,
1521
2336
  FormsModule,
@@ -1525,10 +2340,38 @@ var UCSearchModule = /** @class */ (function () {
1525
2340
  TranslateModule.forChild()
1526
2341
  ],
1527
2342
  exports: [UCSearchComponent]
1528
- },] }
2343
+ },] },
1529
2344
  ];
2345
+ /** @nocollapse */ UCSearchModule.ɵmod = ɵɵdefineNgModule({ type: UCSearchModule });
2346
+ /** @nocollapse */ UCSearchModule.ɵinj = ɵɵdefineInjector({ factory: function UCSearchModule_Factory(t) { return new (t || UCSearchModule)(); }, imports: [[
2347
+ CommonModule,
2348
+ FormsModule,
2349
+ UcShowErrorsModule,
2350
+ UcDirectiveUpperCaseModule,
2351
+ NgxCurrencyModule.forRoot(customCurrencyMaskConfig),
2352
+ TranslateModule.forChild()
2353
+ ]] });
1530
2354
  return UCSearchModule;
1531
- }());
2355
+ }());
2356
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && ɵɵsetNgModuleScope(UCSearchModule, { declarations: [UCSearchComponent, TextSearchPipe], imports: [CommonModule,
2357
+ FormsModule,
2358
+ UcShowErrorsModule,
2359
+ UcDirectiveUpperCaseModule, NgxCurrencyModule, TranslateModule], exports: [UCSearchComponent] }); })();
2360
+ /*@__PURE__*/ (function () { ɵsetClassMetadata(UCSearchModule, [{
2361
+ type: NgModule,
2362
+ args: [{
2363
+ declarations: [UCSearchComponent, TextSearchPipe],
2364
+ imports: [
2365
+ CommonModule,
2366
+ FormsModule,
2367
+ UcShowErrorsModule,
2368
+ UcDirectiveUpperCaseModule,
2369
+ NgxCurrencyModule.forRoot(customCurrencyMaskConfig),
2370
+ TranslateModule.forChild()
2371
+ ],
2372
+ exports: [UCSearchComponent]
2373
+ }]
2374
+ }], null, null); })();
1532
2375
 
1533
2376
  /**
1534
2377
  * @fileoverview added by tsickle
@@ -1540,6 +2383,6 @@ var UCSearchModule = /** @class */ (function () {
1540
2383
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1541
2384
  */
1542
2385
 
1543
- export { UCSearchService, UCSearchComponent, customCurrencyMaskConfig, UCSearchModule, ExcelService as ɵa };
2386
+ export { UCSearchService, UCSearchComponent, customCurrencyMaskConfig, UCSearchModule };
1544
2387
 
1545
2388
  //# sourceMappingURL=adins-ucsearch.js.map