@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 } 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, ɵɵ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, ɵɵdefineNgModule, ɵɵdefineInjector, ɵɵsetNgModuleScope, ɵɵdefinePipe } from '@angular/core';
10
+ import { DatePipe, formatDate, DOCUMENT, NgIf, NgClass, NgForOf, CommonModule } from '@angular/common';
11
+ import { NgForm, ɵangular_packages_forms_forms_bh, NgControlStatusGroup, DefaultValueAccessor, NgControlStatus, NgModel, RequiredValidator, ɵangular_packages_forms_forms_be, NgSelectOption, ɵangular_packages_forms_forms_s, SelectControlValueAccessor, FormsModule } from '@angular/forms';
12
+ import { CurrencyMaskDirective, CurrencyMaskInputMode, NgxCurrencyModule } from 'ngx-currency';
13
+ import { TranslateDirective, TranslateModule } from '@ngx-translate/core';
14
+ import { UcShowErrorsComponent, UcShowErrorsModule } from '@adins/uc-show-errors';
15
+ import { UpperCaseDirective, UcDirectiveUpperCaseModule } from '@adins/uc-directive-upper-case';
15
16
 
16
17
  /**
17
18
  * @fileoverview added by tsickle
@@ -23,11 +24,18 @@ class UCSearchService {
23
24
  UCSearchService.decorators = [
24
25
  { type: Injectable, args: [{
25
26
  providedIn: 'root'
26
- },] }
27
+ },] },
27
28
  ];
28
29
  /** @nocollapse */
29
30
  UCSearchService.ctorParameters = () => [];
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' });
33
+ /*@__PURE__*/ (function () { ɵsetClassMetadata(UCSearchService, [{
34
+ type: Injectable,
35
+ args: [{
36
+ providedIn: 'root'
37
+ }]
38
+ }], function () { return []; }, null); })();
31
39
 
32
40
  /**
33
41
  * @fileoverview added by tsickle
@@ -163,10 +171,15 @@ class ExcelService {
163
171
  }
164
172
  }
165
173
  ExcelService.decorators = [
166
- { type: Injectable }
174
+ { type: Injectable },
167
175
  ];
168
176
  /** @nocollapse */
169
- ExcelService.ctorParameters = () => [];
177
+ ExcelService.ctorParameters = () => [];
178
+ /** @nocollapse */ ExcelService.ɵfac = function ExcelService_Factory(t) { return new (t || ExcelService)(); };
179
+ /** @nocollapse */ ExcelService.ɵprov = ɵɵdefineInjectable({ token: ExcelService, factory: ExcelService.ɵfac });
180
+ /*@__PURE__*/ (function () { ɵsetClassMetadata(ExcelService, [{
181
+ type: Injectable
182
+ }], function () { return []; }, null); })();
170
183
 
171
184
  /**
172
185
  * @fileoverview added by tsickle
@@ -220,6 +233,581 @@ class ListKeyValueMonth {
220
233
  * @fileoverview added by tsickle
221
234
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
222
235
  */
236
+ class TextSearchPipe {
237
+ /**
238
+ * @param {?} items
239
+ * @param {?=} text
240
+ * @return {?}
241
+ */
242
+ transform(items, text) {
243
+ if (!text) {
244
+ return items;
245
+ }
246
+ return items.filter((/**
247
+ * @param {?} item
248
+ * @return {?}
249
+ */
250
+ (item) => {
251
+ if (item.Value && typeof item.Value === 'string') {
252
+ return item.Value.toLowerCase().indexOf(text.toLowerCase()) > -1;
253
+ }
254
+ return false;
255
+ }));
256
+ }
257
+ }
258
+ TextSearchPipe.decorators = [
259
+ { type: Pipe, args: [{
260
+ name: 'textSearch'
261
+ },] },
262
+ ];
263
+ /** @nocollapse */ TextSearchPipe.ɵfac = function TextSearchPipe_Factory(t) { return new (t || TextSearchPipe)(); };
264
+ /** @nocollapse */ TextSearchPipe.ɵpipe = ɵɵdefinePipe({ name: "textSearch", type: TextSearchPipe, pure: true });
265
+ /*@__PURE__*/ (function () { ɵsetClassMetadata(TextSearchPipe, [{
266
+ type: Pipe,
267
+ args: [{
268
+ name: 'textSearch'
269
+ }]
270
+ }], null, null); })();
271
+
272
+ const _c0 = ["enjiForm"];
273
+ const _c1 = ["formIdSearch"];
274
+ function UCSearchComponent_div_4_Template(rf, ctx) { if (rf & 1) {
275
+ ɵɵelementStart(0, "div", 28);
276
+ ɵɵelementStart(1, "h4", 29);
277
+ ɵɵtext(2);
278
+ ɵɵelementEnd();
279
+ ɵɵelementEnd();
280
+ } if (rf & 2) {
281
+ const ctx_r0 = ɵɵnextContext();
282
+ ɵɵadvance(2);
283
+ ɵɵtextInterpolate(ctx_r0.configuration.title);
284
+ } }
285
+ function UCSearchComponent_span_14_Template(rf, ctx) { if (rf & 1) {
286
+ ɵɵelement(0, "span");
287
+ } }
288
+ function UCSearchComponent_ng_template_15_Template(rf, ctx) { if (rf & 1) {
289
+ ɵɵtext(0);
290
+ } if (rf & 2) {
291
+ const ctx_r5 = ɵɵnextContext();
292
+ ɵɵtextInterpolate1(" ", ctx_r5.configuration == null ? null : ctx_r5.configuration.sectionTitle, " ");
293
+ } }
294
+ function UCSearchComponent_ng_template_17_Template(rf, ctx) { if (rf & 1) {
295
+ ɵɵtext(0, " Paging ");
296
+ } }
297
+ const _c2 = function (a0) { return { "is-invalid": a0 }; };
298
+ function UCSearchComponent_div_21_div_6_Template(rf, ctx) { if (rf & 1) {
299
+ const _r27 = ɵɵgetCurrentView();
300
+ ɵɵelementStart(0, "div");
301
+ ɵɵelementStart(1, "input", 35);
302
+ ɵɵlistener("keyup.enter", function UCSearchComponent_div_21_div_6_Template_input_keyup_enter_1_listener() { ɵɵrestoreView(_r27); const ctx_r26 = ɵɵnextContext(2); return ctx_r26.searchClick(); });
303
+ ɵɵelementEnd();
304
+ ɵɵelementEnd();
305
+ } if (rf & 2) {
306
+ const question_r13 = ɵɵnextContext().$implicit;
307
+ ɵɵnextContext();
308
+ const _r2 = ɵɵreference(9);
309
+ ɵɵadvance(1);
310
+ ɵɵpropertyInterpolate("id", question_r13.id);
311
+ ɵɵpropertyInterpolate("name", question_r13.name);
312
+ ɵɵpropertyInterpolate("value", question_r13.value);
313
+ ɵɵ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)));
314
+ ɵɵ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);
315
+ } }
316
+ function UCSearchComponent_div_21_div_7_Template(rf, ctx) { if (rf & 1) {
317
+ ɵɵelementStart(0, "div");
318
+ ɵɵelement(1, "textarea", 36);
319
+ ɵɵelementEnd();
320
+ } if (rf & 2) {
321
+ const question_r13 = ɵɵnextContext().$implicit;
322
+ ɵɵnextContext();
323
+ const _r2 = ɵɵreference(9);
324
+ ɵɵadvance(1);
325
+ ɵɵpropertyInterpolate("id", question_r13.id);
326
+ ɵɵpropertyInterpolate("name", question_r13.name);
327
+ ɵɵpropertyInterpolate("value", question_r13.value);
328
+ ɵɵ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)));
329
+ ɵɵattribute("data-required", question_r13.isRequired)("data-type", question_r13.datatype)("data-name", question_r13.name)("label", question_r13.label);
330
+ } }
331
+ const _c3 = function (a0) { return [a0]; };
332
+ function UCSearchComponent_div_21_div_8_Template(rf, ctx) { if (rf & 1) {
333
+ const _r31 = ɵɵgetCurrentView();
334
+ ɵɵelementStart(0, "div");
335
+ ɵɵelementStart(1, "input", 37);
336
+ ɵɵlistener("focus", function UCSearchComponent_div_21_div_8_Template_input_focus_1_listener($event) { ɵɵrestoreView(_r31); const ctx_r30 = ɵɵnextContext(2); return ctx_r30.transformToDecimal($event); })("blur", function UCSearchComponent_div_21_div_8_Template_input_blur_1_listener($event) { ɵɵrestoreView(_r31); const 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); const ctx_r33 = ɵɵnextContext(2); return ctx_r33.searchClick(); });
337
+ ɵɵelementEnd();
338
+ ɵɵelementEnd();
339
+ } if (rf & 2) {
340
+ const ctx_r34 = ɵɵnextContext();
341
+ const question_r13 = ctx_r34.$implicit;
342
+ const i_r14 = ctx_r34.index;
343
+ ɵɵnextContext();
344
+ const _r2 = ɵɵreference(9);
345
+ ɵɵadvance(1);
346
+ ɵɵpropertyInterpolate("id", question_r13.id);
347
+ ɵɵpropertyInterpolate("name", question_r13.name + ɵɵpureFunction1(13, _c3, i_r14));
348
+ ɵɵpropertyInterpolate("value", question_r13.value);
349
+ ɵɵ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)));
350
+ ɵɵ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);
351
+ } }
352
+ const _c4 = function () { return { standalone: true }; };
353
+ const _c5 = function (a0, a1, a2, a3, a4, a5, a6) { return { thousands: a0, decimal: a1, align: a2, allowNegative: a3, allowZero: a4, precision: a5, nullable: a6 }; };
354
+ function UCSearchComponent_div_21_div_9_div_1_Template(rf, ctx) { if (rf & 1) {
355
+ const _r38 = ɵɵgetCurrentView();
356
+ ɵɵelementStart(0, "div");
357
+ ɵɵelementStart(1, "input", 38);
358
+ ɵɵlistener("keyup.enter", function UCSearchComponent_div_21_div_9_div_1_Template_input_keyup_enter_1_listener() { ɵɵrestoreView(_r38); const 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); const question_r13 = ɵɵnextContext(2).$implicit; return question_r13.value = $event; });
359
+ ɵɵelementEnd();
360
+ ɵɵelementEnd();
361
+ } if (rf & 2) {
362
+ const question_r13 = ɵɵnextContext(2).$implicit;
363
+ ɵɵnextContext();
364
+ const _r2 = ɵɵreference(9);
365
+ ɵɵadvance(1);
366
+ ɵɵpropertyInterpolate("id", question_r13.id);
367
+ ɵɵpropertyInterpolate("name", question_r13.name);
368
+ ɵɵ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)));
369
+ ɵɵ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);
370
+ } }
371
+ const _c6 = function () { return { thousands: ",", decimal: ".", align: "right", allowNegative: false, allowZero: true, precision: 2, nullable: false }; };
372
+ function UCSearchComponent_div_21_div_9_div_2_Template(rf, ctx) { if (rf & 1) {
373
+ const _r43 = ɵɵgetCurrentView();
374
+ ɵɵelementStart(0, "div");
375
+ ɵɵelementStart(1, "input", 39);
376
+ ɵɵlistener("keyup.enter", function UCSearchComponent_div_21_div_9_div_2_Template_input_keyup_enter_1_listener() { ɵɵrestoreView(_r43); const 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); const question_r13 = ɵɵnextContext(2).$implicit; return question_r13.value = $event; });
377
+ ɵɵelementEnd();
378
+ ɵɵelementEnd();
379
+ } if (rf & 2) {
380
+ const question_r13 = ɵɵnextContext(2).$implicit;
381
+ ɵɵnextContext();
382
+ const _r2 = ɵɵreference(9);
383
+ ɵɵadvance(1);
384
+ ɵɵpropertyInterpolate("id", question_r13.id);
385
+ ɵɵpropertyInterpolate("name", question_r13.name);
386
+ ɵɵ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)));
387
+ ɵɵ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);
388
+ } }
389
+ function UCSearchComponent_div_21_div_9_Template(rf, ctx) { if (rf & 1) {
390
+ ɵɵelementStart(0, "div");
391
+ ɵɵtemplate(1, UCSearchComponent_div_21_div_9_div_1_Template, 2, 24, "div", 33);
392
+ ɵɵtemplate(2, UCSearchComponent_div_21_div_9_div_2_Template, 2, 17, "div", 33);
393
+ ɵɵelementEnd();
394
+ } if (rf & 2) {
395
+ const question_r13 = ɵɵnextContext().$implicit;
396
+ ɵɵadvance(1);
397
+ ɵɵproperty("ngIf", (question_r13 == null ? null : question_r13.isCustom) != undefined && (question_r13 == null ? null : question_r13.isCustom));
398
+ ɵɵadvance(1);
399
+ ɵɵproperty("ngIf", (question_r13 == null ? null : question_r13.isCustom) == undefined || !(question_r13 == null ? null : question_r13.isCustom));
400
+ } }
401
+ function UCSearchComponent_div_21_div_10_Template(rf, ctx) { if (rf & 1) {
402
+ const _r49 = ɵɵgetCurrentView();
403
+ ɵɵelementStart(0, "div");
404
+ ɵɵelementStart(1, "input", 40);
405
+ ɵɵlistener("keyup.enter", function UCSearchComponent_div_21_div_10_Template_input_keyup_enter_1_listener() { ɵɵrestoreView(_r49); const ctx_r48 = ɵɵnextContext(2); return ctx_r48.searchClick(); })("focusout", function UCSearchComponent_div_21_div_10_Template_input_focusout_1_listener() { ɵɵrestoreView(_r49); const question_r13 = ɵɵnextContext().$implicit; const ctx_r50 = ɵɵnextContext(); return question_r13.restriction != undefined && ctx_r50.checkInputDate(question_r13); });
406
+ ɵɵpipe(2, "date");
407
+ ɵɵpipe(3, "date");
408
+ ɵɵelementEnd();
409
+ ɵɵelementEnd();
410
+ } if (rf & 2) {
411
+ const ctx_r52 = ɵɵnextContext();
412
+ const question_r13 = ctx_r52.$implicit;
413
+ const i_r14 = ctx_r52.index;
414
+ ɵɵnextContext();
415
+ const _r2 = ɵɵreference(9);
416
+ ɵɵadvance(1);
417
+ ɵɵpropertyInterpolate("type", question_r13.isTime ? "datetime-local" : "date");
418
+ ɵɵpropertyInterpolate("id", question_r13.id);
419
+ ɵɵpropertyInterpolate("name", question_r13.name + ɵɵpureFunction1(23, _c3, i_r14));
420
+ ɵɵpropertyInterpolate("value", question_r13.value);
421
+ ɵɵpropertyInterpolate("min", ɵɵpipeBind2(2, 17, question_r13.minDate, "yyyy-MM-dd"));
422
+ ɵɵpropertyInterpolate("max", ɵɵpipeBind2(3, 20, question_r13.maxDate, "yyyy-MM-dd"));
423
+ ɵɵ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)));
424
+ ɵɵ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);
425
+ } }
426
+ function UCSearchComponent_div_21_div_11_option_2_Template(rf, ctx) { if (rf & 1) {
427
+ ɵɵelementStart(0, "option", 45);
428
+ ɵɵtext(1, "Select One");
429
+ ɵɵelementEnd();
430
+ } }
431
+ function UCSearchComponent_div_21_div_11_option_3_Template(rf, ctx) { if (rf & 1) {
432
+ ɵɵelementStart(0, "option", 46);
433
+ ɵɵtext(1, "All");
434
+ ɵɵelementEnd();
435
+ } }
436
+ function UCSearchComponent_div_21_div_11_option_4_Template(rf, ctx) { if (rf & 1) {
437
+ ɵɵelementStart(0, "option", 47);
438
+ ɵɵtext(1);
439
+ ɵɵelementEnd();
440
+ } if (rf & 2) {
441
+ const item_r57 = ctx.$implicit;
442
+ ɵɵpropertyInterpolate("value", item_r57.Key);
443
+ ɵɵadvance(1);
444
+ ɵɵtextInterpolate1(" ", item_r57.Value, " ");
445
+ } }
446
+ function UCSearchComponent_div_21_div_11_label_5_Template(rf, ctx) { if (rf & 1) {
447
+ ɵɵelementStart(0, "label");
448
+ ɵɵtext(1);
449
+ ɵɵelementEnd();
450
+ } if (rf & 2) {
451
+ const question_r13 = ɵɵnextContext(2).$implicit;
452
+ ɵɵadvance(1);
453
+ ɵɵtextInterpolate(question_r13.itemsUrl[0].Value);
454
+ } }
455
+ function UCSearchComponent_div_21_div_11_Template(rf, ctx) { if (rf & 1) {
456
+ const _r61 = ɵɵgetCurrentView();
457
+ ɵɵelementStart(0, "div");
458
+ ɵɵelementStart(1, "select", 41);
459
+ ɵɵlistener("change", function UCSearchComponent_div_21_div_11_Template_select_change_1_listener() { ɵɵrestoreView(_r61); const ctx_r60 = ɵɵnextContext(); const question_r13 = ctx_r60.$implicit; const i_r14 = ctx_r60.index; const 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); });
460
+ ɵɵtemplate(2, UCSearchComponent_div_21_div_11_option_2_Template, 2, 0, "option", 42);
461
+ ɵɵtemplate(3, UCSearchComponent_div_21_div_11_option_3_Template, 2, 0, "option", 43);
462
+ ɵɵtemplate(4, UCSearchComponent_div_21_div_11_option_4_Template, 2, 2, "option", 44);
463
+ ɵɵelementEnd();
464
+ ɵɵtemplate(5, UCSearchComponent_div_21_div_11_label_5_Template, 2, 1, "label", 33);
465
+ ɵɵelementEnd();
466
+ } if (rf & 2) {
467
+ const question_r13 = ɵɵnextContext().$implicit;
468
+ ɵɵnextContext();
469
+ const _r2 = ɵɵreference(9);
470
+ ɵɵadvance(1);
471
+ ɵɵpropertyInterpolate("name", question_r13.name);
472
+ ɵɵ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)));
473
+ ɵɵattribute("data-required", question_r13.isRequired)("query-in", question_r13.isQueryIn)("data-type", question_r13.datatype)("label", question_r13.label);
474
+ ɵɵadvance(1);
475
+ ɵɵproperty("ngIf", question_r13.ddlType == "one" && (question_r13 == null ? null : question_r13.itemsUrl == null ? null : question_r13.itemsUrl.length) != 1);
476
+ ɵɵadvance(1);
477
+ ɵɵ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);
478
+ ɵɵadvance(1);
479
+ ɵɵproperty("ngForOf", question_r13 == null ? null : question_r13.itemsUrl);
480
+ ɵɵadvance(1);
481
+ ɵɵproperty("ngIf", (question_r13 == null ? null : question_r13.itemsUrl == null ? null : question_r13.itemsUrl.length) == 1);
482
+ } }
483
+ function UCSearchComponent_div_21_div_12_option_2_Template(rf, ctx) { if (rf & 1) {
484
+ ɵɵelementStart(0, "option", 45);
485
+ ɵɵtext(1, " Select One");
486
+ ɵɵelementEnd();
487
+ } }
488
+ function UCSearchComponent_div_21_div_12_option_3_Template(rf, ctx) { if (rf & 1) {
489
+ ɵɵelementStart(0, "option", 46);
490
+ ɵɵtext(1, "All");
491
+ ɵɵelementEnd();
492
+ } }
493
+ function UCSearchComponent_div_21_div_12_option_4_Template(rf, ctx) { if (rf & 1) {
494
+ ɵɵelementStart(0, "option", 47);
495
+ ɵɵtext(1);
496
+ ɵɵelementEnd();
497
+ } if (rf & 2) {
498
+ const item_r67 = ctx.$implicit;
499
+ const question_r13 = ɵɵnextContext(2).$implicit;
500
+ ɵɵpropertyInterpolate("value", !question_r13.isFromURL ? item_r67.key : item_r67.Key);
501
+ ɵɵadvance(1);
502
+ ɵɵtextInterpolate1(" ", !question_r13.isFromURL ? item_r67.value : item_r67.Value, " ");
503
+ } }
504
+ function UCSearchComponent_div_21_div_12_label_5_Template(rf, ctx) { if (rf & 1) {
505
+ ɵɵelementStart(0, "label");
506
+ ɵɵtext(1);
507
+ ɵɵelementEnd();
508
+ } if (rf & 2) {
509
+ const question_r13 = ɵɵnextContext(2).$implicit;
510
+ ɵɵadvance(1);
511
+ ɵɵtextInterpolate(!question_r13.isFromURL ? question_r13.items[0].value : question_r13.itemsUrl[0].Value);
512
+ } }
513
+ function UCSearchComponent_div_21_div_12_Template(rf, ctx) { if (rf & 1) {
514
+ const _r72 = ɵɵgetCurrentView();
515
+ ɵɵelementStart(0, "div");
516
+ ɵɵelementStart(1, "select", 48);
517
+ ɵɵlistener("ngModelChange", function UCSearchComponent_div_21_div_12_Template_select_ngModelChange_1_listener($event) { ɵɵrestoreView(_r72); const question_r13 = ɵɵnextContext().$implicit; return question_r13.value = $event; })("change", function UCSearchComponent_div_21_div_12_Template_select_change_1_listener($event) { ɵɵrestoreView(_r72); const question_r13 = ɵɵnextContext().$implicit; const ctx_r73 = ɵɵnextContext(); return question_r13.isEvent ? ctx_r73.onChangeEvent($event.target.value, question_r13) : ""; });
518
+ ɵɵtemplate(2, UCSearchComponent_div_21_div_12_option_2_Template, 2, 0, "option", 42);
519
+ ɵɵtemplate(3, UCSearchComponent_div_21_div_12_option_3_Template, 2, 0, "option", 43);
520
+ ɵɵtemplate(4, UCSearchComponent_div_21_div_12_option_4_Template, 2, 2, "option", 44);
521
+ ɵɵelementEnd();
522
+ ɵɵtemplate(5, UCSearchComponent_div_21_div_12_label_5_Template, 2, 1, "label", 33);
523
+ ɵɵelementEnd();
524
+ } if (rf & 2) {
525
+ const question_r13 = ɵɵnextContext().$implicit;
526
+ ɵɵnextContext();
527
+ const _r2 = ɵɵreference(9);
528
+ ɵɵadvance(1);
529
+ ɵɵpropertyInterpolate("name", question_r13.name);
530
+ ɵɵ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)));
531
+ ɵɵ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);
532
+ ɵɵadvance(1);
533
+ ɵɵ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));
534
+ ɵɵadvance(1);
535
+ ɵɵ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));
536
+ ɵɵadvance(1);
537
+ ɵɵproperty("ngForOf", !question_r13.isFromURL ? question_r13 == null ? null : question_r13.items : question_r13 == null ? null : question_r13.itemsUrl);
538
+ ɵɵadvance(1);
539
+ ɵɵ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);
540
+ } }
541
+ function UCSearchComponent_div_21_div_13_label_3_Template(rf, ctx) { if (rf & 1) {
542
+ ɵɵelementStart(0, "label");
543
+ ɵɵtext(1);
544
+ ɵɵelementEnd();
545
+ } if (rf & 2) {
546
+ const question_r13 = ɵɵnextContext(2).$implicit;
547
+ ɵɵadvance(1);
548
+ ɵɵtextInterpolate(question_r13.descr);
549
+ } }
550
+ function UCSearchComponent_div_21_div_13_option_8_Template(rf, ctx) { if (rf & 1) {
551
+ const _r83 = ɵɵgetCurrentView();
552
+ ɵɵelementStart(0, "option", 58);
553
+ ɵɵlistener("click", function UCSearchComponent_div_21_div_13_option_8_Template_option_click_0_listener() { ɵɵrestoreView(_r83); const question_r13 = ɵɵnextContext(2).$implicit; const ctx_r81 = ɵɵnextContext(); return ctx_r81.selectedOption({ Key: "one", Value: "Select One" }, question_r13); });
554
+ ɵɵtext(1, " Select One");
555
+ ɵɵelementEnd();
556
+ } }
557
+ function UCSearchComponent_div_21_div_13_option_9_Template(rf, ctx) { if (rf & 1) {
558
+ const _r86 = ɵɵgetCurrentView();
559
+ ɵɵelementStart(0, "option", 59);
560
+ ɵɵlistener("click", function UCSearchComponent_div_21_div_13_option_9_Template_option_click_0_listener() { ɵɵrestoreView(_r86); const question_r13 = ɵɵnextContext(2).$implicit; const ctx_r84 = ɵɵnextContext(); return ctx_r84.selectedOption({ Key: "all", Value: "All" }, question_r13); });
561
+ ɵɵtext(1, "All");
562
+ ɵɵelementEnd();
563
+ } }
564
+ function UCSearchComponent_div_21_div_13_option_10_Template(rf, ctx) { if (rf & 1) {
565
+ const _r90 = ɵɵgetCurrentView();
566
+ ɵɵelementStart(0, "option", 60);
567
+ ɵɵlistener("click", function UCSearchComponent_div_21_div_13_option_10_Template_option_click_0_listener() { ɵɵrestoreView(_r90); const item_r87 = ctx.$implicit; const question_r13 = ɵɵnextContext(2).$implicit; const ctx_r88 = ɵɵnextContext(); return ctx_r88.selectedOption(item_r87, question_r13); });
568
+ ɵɵtext(1);
569
+ ɵɵelementEnd();
570
+ } if (rf & 2) {
571
+ const item_r87 = ctx.$implicit;
572
+ ɵɵpropertyInterpolate("value", item_r87.Key);
573
+ ɵɵadvance(1);
574
+ ɵɵtextInterpolate1(" ", item_r87.Value, " ");
575
+ } }
576
+ function UCSearchComponent_div_21_div_13_Template(rf, ctx) { if (rf & 1) {
577
+ const _r93 = ɵɵgetCurrentView();
578
+ ɵɵelementStart(0, "div");
579
+ ɵɵelementStart(1, "div", 49);
580
+ ɵɵelementStart(2, "input", 50);
581
+ ɵɵlistener("ngModelChange", function UCSearchComponent_div_21_div_13_Template_input_ngModelChange_2_listener($event) { ɵɵrestoreView(_r93); const question_r13 = ɵɵnextContext().$implicit; return question_r13.descr = $event; })("click", function UCSearchComponent_div_21_div_13_Template_input_click_2_listener() { ɵɵrestoreView(_r93); const question_r13 = ɵɵnextContext().$implicit; question_r13.isListHide = !question_r13.isListHide; return question_r13.searchText = ""; });
582
+ ɵɵelementEnd();
583
+ ɵɵelementEnd();
584
+ ɵɵtemplate(3, UCSearchComponent_div_21_div_13_label_3_Template, 2, 1, "label", 33);
585
+ ɵɵelementStart(4, "div", 51);
586
+ ɵɵelementStart(5, "input", 52);
587
+ ɵɵlistener("ngModelChange", function UCSearchComponent_div_21_div_13_Template_input_ngModelChange_5_listener($event) { ɵɵrestoreView(_r93); const question_r13 = ɵɵnextContext().$implicit; return question_r13.searchText = $event; });
588
+ ɵɵelementEnd();
589
+ ɵɵelementStart(6, "div", 53);
590
+ ɵɵelementStart(7, "select", 54);
591
+ ɵɵlistener("ngModelChange", function UCSearchComponent_div_21_div_13_Template_select_ngModelChange_7_listener($event) { ɵɵrestoreView(_r93); const question_r13 = ɵɵnextContext().$implicit; return question_r13.value = $event; })("change", function UCSearchComponent_div_21_div_13_Template_select_change_7_listener($event) { ɵɵrestoreView(_r93); const question_r13 = ɵɵnextContext().$implicit; const ctx_r100 = ɵɵnextContext(); return question_r13.isEvent ? ctx_r100.onChangeEvent($event.target.value, question_r13) : ""; });
592
+ ɵɵtemplate(8, UCSearchComponent_div_21_div_13_option_8_Template, 2, 0, "option", 55);
593
+ ɵɵtemplate(9, UCSearchComponent_div_21_div_13_option_9_Template, 2, 0, "option", 56);
594
+ ɵɵtemplate(10, UCSearchComponent_div_21_div_13_option_10_Template, 2, 2, "option", 57);
595
+ ɵɵpipe(11, "textSearch");
596
+ ɵɵpipe(12, "textSearch");
597
+ ɵɵelementEnd();
598
+ ɵɵelementEnd();
599
+ ɵɵelementEnd();
600
+ ɵɵelementEnd();
601
+ } if (rf & 2) {
602
+ const question_r13 = ɵɵnextContext().$implicit;
603
+ ɵɵnextContext();
604
+ const _r2 = ɵɵreference(9);
605
+ ɵɵadvance(1);
606
+ ɵɵ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);
607
+ ɵɵadvance(1);
608
+ ɵɵpropertyInterpolate("name", "ddsValue" + question_r13.name);
609
+ ɵɵproperty("ngModel", question_r13.descr);
610
+ ɵɵadvance(1);
611
+ ɵɵ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);
612
+ ɵɵadvance(1);
613
+ ɵɵproperty("hidden", question_r13.isListHide);
614
+ ɵɵadvance(1);
615
+ ɵɵpropertyInterpolate("name", "searchText" + question_r13.name);
616
+ ɵɵproperty("ngModel", question_r13.searchText)("placeholder", question_r13.placeholder);
617
+ ɵɵadvance(2);
618
+ ɵɵpropertyInterpolate("name", question_r13.name);
619
+ ɵɵpropertyInterpolate("size", (question_r13 == null ? null : question_r13.size) == undefined ? question_r13 == null ? null : question_r13.size : 10);
620
+ ɵɵ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)));
621
+ ɵɵ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);
622
+ ɵɵadvance(1);
623
+ ɵɵ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));
624
+ ɵɵadvance(1);
625
+ ɵɵ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));
626
+ ɵɵadvance(1);
627
+ ɵɵ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));
628
+ } }
629
+ function UCSearchComponent_div_21_div_14_option_2_Template(rf, ctx) { if (rf & 1) {
630
+ ɵɵelementStart(0, "option", 45);
631
+ ɵɵtext(1, "Select One");
632
+ ɵɵelementEnd();
633
+ } }
634
+ function UCSearchComponent_div_21_div_14_option_3_Template(rf, ctx) { if (rf & 1) {
635
+ ɵɵelementStart(0, "option", 46);
636
+ ɵɵtext(1, "All");
637
+ ɵɵelementEnd();
638
+ } }
639
+ function UCSearchComponent_div_21_div_14_option_4_Template(rf, ctx) { if (rf & 1) {
640
+ ɵɵelementStart(0, "option", 47);
641
+ ɵɵtext(1);
642
+ ɵɵelementEnd();
643
+ } if (rf & 2) {
644
+ const item_r106 = ctx.$implicit;
645
+ ɵɵpropertyInterpolate("value", item_r106.Key);
646
+ ɵɵadvance(1);
647
+ ɵɵtextInterpolate1(" ", item_r106.Value, " ");
648
+ } }
649
+ function UCSearchComponent_div_21_div_14_Template(rf, ctx) { if (rf & 1) {
650
+ ɵɵelementStart(0, "div");
651
+ ɵɵelementStart(1, "select", 61);
652
+ ɵɵtemplate(2, UCSearchComponent_div_21_div_14_option_2_Template, 2, 0, "option", 42);
653
+ ɵɵtemplate(3, UCSearchComponent_div_21_div_14_option_3_Template, 2, 0, "option", 43);
654
+ ɵɵtemplate(4, UCSearchComponent_div_21_div_14_option_4_Template, 2, 2, "option", 44);
655
+ ɵɵelementEnd();
656
+ ɵɵelementEnd();
657
+ } if (rf & 2) {
658
+ const ctx_r107 = ɵɵnextContext();
659
+ const i_r14 = ctx_r107.index;
660
+ const question_r13 = ctx_r107.$implicit;
661
+ const ctx_r23 = ɵɵnextContext();
662
+ const _r2 = ɵɵreference(9);
663
+ ɵɵadvance(1);
664
+ ɵɵpropertyInterpolate("name", "claim" + ɵɵpureFunction1(9, _c3, i_r14));
665
+ ɵɵ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)));
666
+ ɵɵattribute("data-type", "text")("data-crit-datatable", question_r13.isCriteriaDataTable)("data-name", "Assignee");
667
+ ɵɵadvance(1);
668
+ ɵɵproperty("ngIf", question_r13.ddlType == "one" && (ctx_r23.ClaimList == null ? null : ctx_r23.ClaimList.length) != 1);
669
+ ɵɵadvance(1);
670
+ ɵɵproperty("ngIf", ((question_r13 == null ? null : question_r13.ddlType) == undefined || question_r13.ddlType == "all") && (ctx_r23.ClaimList == null ? null : ctx_r23.ClaimList.length) != 1);
671
+ ɵɵadvance(1);
672
+ ɵɵproperty("ngForOf", ctx_r23.ClaimList);
673
+ } }
674
+ function UCSearchComponent_div_21_lib_uc_show_errors_15_Template(rf, ctx) { if (rf & 1) {
675
+ ɵɵelement(0, "lib-uc-show-errors", 62);
676
+ } if (rf & 2) {
677
+ const question_r13 = ɵɵnextContext().$implicit;
678
+ ɵɵnextContext();
679
+ const _r2 = ɵɵreference(9);
680
+ ɵɵproperty("control", _r2.form.controls[question_r13.name])("submit", _r2.submitted);
681
+ } }
682
+ function UCSearchComponent_div_21_lib_uc_show_errors_16_Template(rf, ctx) { if (rf & 1) {
683
+ ɵɵelement(0, "lib-uc-show-errors", 62);
684
+ } if (rf & 2) {
685
+ const ctx_r109 = ɵɵnextContext();
686
+ const question_r13 = ctx_r109.$implicit;
687
+ const i_r14 = ctx_r109.index;
688
+ ɵɵnextContext();
689
+ const _r2 = ɵɵreference(9);
690
+ ɵɵproperty("control", _r2.form.controls[question_r13.name + ɵɵpureFunction1(2, _c3, i_r14)])("submit", _r2.submitted);
691
+ } }
692
+ const _c7 = function (a0) { return { "adins-required-label": a0 }; };
693
+ function UCSearchComponent_div_21_Template(rf, ctx) { if (rf & 1) {
694
+ ɵɵelementStart(0, "div", 30);
695
+ ɵɵelementStart(1, "div", 2);
696
+ ɵɵelementStart(2, "div", 17);
697
+ ɵɵelementStart(3, "label", 31);
698
+ ɵɵtext(4);
699
+ ɵɵelementEnd();
700
+ ɵɵelementStart(5, "div", 32);
701
+ ɵɵtemplate(6, UCSearchComponent_div_21_div_6_Template, 2, 14, "div", 33);
702
+ ɵɵtemplate(7, UCSearchComponent_div_21_div_7_Template, 2, 12, "div", 33);
703
+ ɵɵtemplate(8, UCSearchComponent_div_21_div_8_Template, 2, 29, "div", 33);
704
+ ɵɵtemplate(9, UCSearchComponent_div_21_div_9_Template, 3, 2, "div", 33);
705
+ ɵɵtemplate(10, UCSearchComponent_div_21_div_10_Template, 4, 39, "div", 33);
706
+ ɵɵtemplate(11, UCSearchComponent_div_21_div_11_Template, 6, 14, "div", 33);
707
+ ɵɵtemplate(12, UCSearchComponent_div_21_div_12_Template, 6, 17, "div", 33);
708
+ ɵɵtemplate(13, UCSearchComponent_div_21_div_13_Template, 13, 30, "div", 33);
709
+ ɵɵtemplate(14, UCSearchComponent_div_21_div_14_Template, 5, 25, "div", 33);
710
+ ɵɵtemplate(15, UCSearchComponent_div_21_lib_uc_show_errors_15_Template, 1, 2, "lib-uc-show-errors", 34);
711
+ ɵɵtemplate(16, UCSearchComponent_div_21_lib_uc_show_errors_16_Template, 1, 4, "lib-uc-show-errors", 34);
712
+ ɵɵelementEnd();
713
+ ɵɵelementEnd();
714
+ ɵɵelementEnd();
715
+ ɵɵelementEnd();
716
+ } if (rf & 2) {
717
+ const question_r13 = ctx.$implicit;
718
+ ɵɵadvance(3);
719
+ ɵɵpropertyInterpolate("for", question_r13.id);
720
+ ɵɵproperty("ngClass", ɵɵpureFunction1(14, _c7, question_r13.isRequired || (question_r13 == null ? null : question_r13.ddlType) != undefined && question_r13.ddlType == "one"));
721
+ ɵɵadvance(1);
722
+ ɵɵtextInterpolate(question_r13.label);
723
+ ɵɵadvance(2);
724
+ ɵɵproperty("ngIf", question_r13.type == "textbox");
725
+ ɵɵadvance(1);
726
+ ɵɵproperty("ngIf", question_r13.type == "textarea");
727
+ ɵɵadvance(1);
728
+ ɵɵproperty("ngIf", question_r13.type == "numeric");
729
+ ɵɵadvance(1);
730
+ ɵɵproperty("ngIf", question_r13.type == "currency");
731
+ ɵɵadvance(1);
732
+ ɵɵproperty("ngIf", question_r13.type == "datepicker");
733
+ ɵɵadvance(1);
734
+ ɵɵproperty("ngIf", question_r13.type == "taskDefinitionKey" || question_r13.type == "processKey" || question_r13.type == "officeRoleCodes");
735
+ ɵɵadvance(1);
736
+ ɵɵproperty("ngIf", question_r13.type == "dropdown");
737
+ ɵɵadvance(1);
738
+ ɵɵproperty("ngIf", question_r13.type == "dropdownSearch");
739
+ ɵɵadvance(1);
740
+ ɵɵproperty("ngIf", question_r13.type == "claim");
741
+ ɵɵadvance(1);
742
+ ɵɵproperty("ngIf", question_r13.type != "datepicker");
743
+ ɵɵadvance(1);
744
+ ɵɵproperty("ngIf", question_r13.type == "datepicker");
745
+ } }
746
+ function UCSearchComponent_div_22_option_7_Template(rf, ctx) { if (rf & 1) {
747
+ ɵɵelementStart(0, "option", 47);
748
+ ɵɵtext(1);
749
+ ɵɵelementEnd();
750
+ } if (rf & 2) {
751
+ const item_r111 = ctx.$implicit;
752
+ ɵɵproperty("value", item_r111.key);
753
+ ɵɵadvance(1);
754
+ ɵɵtextInterpolate(item_r111.value);
755
+ } }
756
+ function UCSearchComponent_div_22_Template(rf, ctx) { if (rf & 1) {
757
+ const _r113 = ɵɵgetCurrentView();
758
+ ɵɵelementStart(0, "div", 30);
759
+ ɵɵelementStart(1, "div", 2);
760
+ ɵɵelementStart(2, "div", 17);
761
+ ɵɵelementStart(3, "label", 63);
762
+ ɵɵtext(4, "Report Type");
763
+ ɵɵelementEnd();
764
+ ɵɵelementStart(5, "div", 32);
765
+ ɵɵelementStart(6, "select", 64);
766
+ ɵɵlistener("ngModelChange", function UCSearchComponent_div_22_Template_select_ngModelChange_6_listener($event) { ɵɵrestoreView(_r113); const ctx_r112 = ɵɵnextContext(); return ctx_r112.ExportType = $event; });
767
+ ɵɵtemplate(7, UCSearchComponent_div_22_option_7_Template, 2, 2, "option", 44);
768
+ ɵɵelementEnd();
769
+ ɵɵelementEnd();
770
+ ɵɵelementEnd();
771
+ ɵɵelementEnd();
772
+ ɵɵelementEnd();
773
+ } if (rf & 2) {
774
+ const ctx_r9 = ɵɵnextContext();
775
+ ɵɵadvance(6);
776
+ ɵɵproperty("ngModel", ctx_r9.ExportType);
777
+ ɵɵadvance(1);
778
+ ɵɵproperty("ngForOf", ctx_r9.ExportTypeList);
779
+ } }
780
+ function UCSearchComponent_button_25_Template(rf, ctx) { if (rf & 1) {
781
+ const _r115 = ɵɵgetCurrentView();
782
+ ɵɵelementStart(0, "button", 65);
783
+ ɵɵlistener("click", function UCSearchComponent_button_25_Template_button_click_0_listener() { ɵɵrestoreView(_r115); const ctx_r114 = ɵɵnextContext(); return ctx_r114.exportAsXLSX(); });
784
+ ɵɵelement(1, "i", 66);
785
+ ɵɵtext(2, "\u00A0");
786
+ ɵɵelementStart(3, "span", 25);
787
+ ɵɵtext(4, "Export Excel");
788
+ ɵɵelementEnd();
789
+ ɵɵelementEnd();
790
+ } }
791
+ function UCSearchComponent_button_31_Template(rf, ctx) { if (rf & 1) {
792
+ ɵɵelementStart(0, "button", 67, 68);
793
+ ɵɵelement(2, "i", 69);
794
+ ɵɵtext(3, "\u00A0");
795
+ ɵɵelementStart(4, "span", 25);
796
+ ɵɵtext(5, "Search");
797
+ ɵɵelementEnd();
798
+ ɵɵelementEnd();
799
+ } }
800
+ function UCSearchComponent_button_32_Template(rf, ctx) { if (rf & 1) {
801
+ const _r118 = ɵɵgetCurrentView();
802
+ ɵɵelementStart(0, "button", 70);
803
+ ɵɵlistener("click", function UCSearchComponent_button_32_Template_button_click_0_listener() { ɵɵrestoreView(_r118); const ctx_r117 = ɵɵnextContext(); return ctx_r117.GenerateReport(); });
804
+ ɵɵelement(1, "i", 66);
805
+ ɵɵtext(2, "\u00A0");
806
+ ɵɵelementStart(3, "span", 25);
807
+ ɵɵtext(4, "Generate Report");
808
+ ɵɵelementEnd();
809
+ ɵɵelementEnd();
810
+ } }
223
811
  class UCSearchComponent {
224
812
  /**
225
813
  * @param {?} http
@@ -229,8 +817,9 @@ class UCSearchComponent {
229
817
  * @param {?} toastr
230
818
  * @param {?} cookieService
231
819
  * @param {?} datePipe
820
+ * @param {?} elemRef
232
821
  */
233
- constructor(http, excelService, _renderer2, _document, toastr, cookieService, datePipe) {
822
+ constructor(http, excelService, _renderer2, _document, toastr, cookieService, datePipe, elemRef) {
234
823
  this.http = http;
235
824
  this.excelService = excelService;
236
825
  this._renderer2 = _renderer2;
@@ -238,6 +827,7 @@ class UCSearchComponent {
238
827
  this.toastr = toastr;
239
828
  this.cookieService = cookieService;
240
829
  this.datePipe = datePipe;
830
+ this.elemRef = elemRef;
241
831
  this.searchInput = new InputSearchObj();
242
832
  this.pageSize = 10;
243
833
  this.isReport = false;
@@ -290,9 +880,14 @@ class UCSearchComponent {
290
880
  this.formattedAmount = '';
291
881
  this.amount = 0;
292
882
  }
293
- // trus nad, bisa ga kalo misalkan gw mau bikin
294
- // kalo login di cabang IsSelectOne: true
295
- // kalo login di HO, IsSelectOne: false
883
+ // isListHide: boolean = true;
884
+ // @HostListener('document:click', ['$event'])
885
+ // onClick(ev: MouseEvent) {
886
+ // const clickInside = this.elemRef.nativeElement.contains(ev.target);
887
+ // if (!clickInside) {
888
+ // this.isListHide = true;
889
+ // }
890
+ // }
296
891
  /**
297
892
  * @param {?} content
298
893
  * @return {?}
@@ -313,173 +908,190 @@ class UCSearchComponent {
313
908
  * @return {?}
314
909
  */
315
910
  ngOnInit() {
316
- console.log("ucsearch");
317
- this.apiUrl = this.searchInput.enviromentUrl + this.searchInput.apiQryPaging;
318
- this.arrCrit = this.searchInput.arrCritObj;
319
- /** @type {?} */
320
- let js = this._renderer2.createElement('script');
321
- js.text = `
911
+ return __awaiter(this, void 0, void 0, function* () {
912
+ console.log("ucsearch");
913
+ this.apiUrl = this.searchInput.enviromentUrl + this.searchInput.apiQryPaging;
914
+ this.arrCrit = this.searchInput.arrCritObj;
915
+ /** @type {?} */
916
+ let js = this._renderer2.createElement('script');
917
+ js.text = `
322
918
  $(document).ready(function(){
323
919
  $("#flip").click(function(){
324
920
  $("#panel").slideToggle("slow");
325
921
  });
326
922
  });
327
923
  `;
328
- this._renderer2.appendChild(this._document.body, js);
329
- /** @type {?} */
330
- let value = this.cookieService.get('BusinessDateRaw');
331
- this.BisDt = this.DecryptString(value, "AdInsFOU12345678");
332
- this.BusinessDt = new Date(this.BisDt);
333
- this.initiateForm();
924
+ this._renderer2.appendChild(this._document.body, js);
925
+ /** @type {?} */
926
+ let value = this.cookieService.get('BusinessDateRaw');
927
+ this.BisDt = this.DecryptString(value, "AdInsFOU12345678");
928
+ this.BusinessDt = new Date(this.BisDt);
929
+ yield this.initiateForm();
930
+ });
334
931
  }
335
932
  /**
336
933
  * @return {?}
337
934
  */
338
935
  initiateForm() {
339
- this.getJSON(this.searchInput._url).subscribe((/**
340
- * @param {?} data
341
- * @return {?}
342
- */
343
- data => {
344
- this.configuration = data;
345
- this.exportData = data.exportExcel;
346
- if (data.exportTypeList != undefined && data.exportTypeList.length != 0) {
347
- this.ExportTypeList = data.exportTypeList;
348
- this.ExportType = this.ExportTypeList[0].key;
349
- }
350
- this.countForm = data.component.length;
351
- this.isDataLoaded = true;
352
- if (this.searchInput.title != undefined && this.searchInput.title != "") {
353
- this.configuration.title = this.searchInput.title;
354
- }
355
- for (let i = 0; i < this.countForm; i++) {
356
- //ini kalau datanya di load dari URL
357
- if (data.component[i].isFromURL) {
358
- /** @type {?} */
359
- let request = new RequestCriteriaObj();
360
- /** @type {?} */
361
- let arrayCrit = new Array();
362
- /** @type {?} */
363
- let criteriaObject = new CriteriaObj();
364
- criteriaObject.DataType = "text";
365
- criteriaObject.propName = data.component[i].criteriaPropName;
366
- criteriaObject.value = data.component[i].criteriaPropValue;
367
- criteriaObject.restriction = "eq";
368
- arrayCrit.push(criteriaObject);
369
- request.criteria = arrayCrit;
370
- request[data.component[i].criteriaPropName] = data.component[i].criteriaPropValue;
371
- // Pengecekan penggunaan url atau path
372
- if (data.component[i].path != undefined && data.component[i].path != "") {
373
- if (this.searchInput.listEnvironments != undefined && this.searchInput.listEnvironments.length != 0) {
374
- for (let y = 0; y < this.searchInput.listEnvironments.length; y++) {
375
- if (data.component[i].environment == this.searchInput.listEnvironments[y].environment) {
376
- data.component[i].fullpath = this.searchInput.listEnvironments[y].url + data.component[i].path;
377
- break;
936
+ return __awaiter(this, void 0, void 0, function* () {
937
+ yield this.getJSON(this.searchInput._url).subscribe((/**
938
+ * @param {?} data
939
+ * @return {?}
940
+ */
941
+ data => {
942
+ this.configuration = data;
943
+ this.exportData = data.exportExcel;
944
+ if (data.exportTypeList != undefined && data.exportTypeList.length != 0) {
945
+ this.ExportTypeList = data.exportTypeList;
946
+ this.ExportType = this.ExportTypeList[0].key;
947
+ }
948
+ this.countForm = data.component.length;
949
+ this.isDataLoaded = true;
950
+ if (this.searchInput.title != undefined && this.searchInput.title != "") {
951
+ this.configuration.title = this.searchInput.title;
952
+ }
953
+ for (let i = 0; i < this.countForm; i++) {
954
+ //ini kalau datanya di load dari URL
955
+ if (data.component[i].isFromURL) {
956
+ /** @type {?} */
957
+ let request = new RequestCriteriaObj();
958
+ /** @type {?} */
959
+ let arrayCrit = new Array();
960
+ /** @type {?} */
961
+ let criteriaObject = new CriteriaObj();
962
+ criteriaObject.DataType = "text";
963
+ criteriaObject.propName = data.component[i].criteriaPropName;
964
+ criteriaObject.value = data.component[i].criteriaPropValue;
965
+ criteriaObject.restriction = "eq";
966
+ arrayCrit.push(criteriaObject);
967
+ request.criteria = arrayCrit;
968
+ request[data.component[i].criteriaPropName] = data.component[i].criteriaPropValue;
969
+ // Pengecekan penggunaan url atau path
970
+ if (data.component[i].path != undefined && data.component[i].path != "") {
971
+ if (this.searchInput.listEnvironments != undefined && this.searchInput.listEnvironments.length != 0) {
972
+ for (let y = 0; y < this.searchInput.listEnvironments.length; y++) {
973
+ if (data.component[i].environment == this.searchInput.listEnvironments[y].environment) {
974
+ data.component[i].fullpath = this.searchInput.listEnvironments[y].url + data.component[i].path;
975
+ break;
976
+ }
378
977
  }
379
978
  }
979
+ else {
980
+ data.component[i].fullpath = data.component[i].url;
981
+ }
380
982
  }
381
983
  else {
382
984
  data.component[i].fullpath = data.component[i].url;
383
985
  }
986
+ //lempar objectnya sekalian sama urlnya, nnti di bind di dalem karena masalah di asyncnya
987
+ //biar tiap function ada state2nya sendiri
988
+ this.resolveObject(data.component[i], data.component[i].fullpath, request);
384
989
  }
385
- else {
386
- data.component[i].fullpath = data.component[i].url;
990
+ if (data.component[i].type == "numeric") {
991
+ data.component[i].value = parseFloat(data.component[i].value).toLocaleString('en');
387
992
  }
388
- //lempar objectnya sekalian sama urlnya, nnti di bind di dalem karena masalah di asyncnya
389
- //biar tiap function ada state2nya sendiri
390
- this.resolveObject(data.component[i], data.component[i].fullpath, request);
391
- }
392
- if (data.component[i].type == "numeric") {
393
- data.component[i].value = parseFloat(data.component[i].value).toLocaleString('en');
394
- }
395
- //pengecekan ddl
396
- if (data.component[i].type == "dropdown") {
397
- if (data.component[i].dtmType != undefined) {
398
- if (data.component[i].dtmType.includes("month")) {
399
- if (data.component[i].value != undefined && data.component[i].value.includes("BD")) {
400
- data.component[i].value = this.setDefaultValueMonth(data.component[i].value);
993
+ //pengecekan ddl
994
+ if (data.component[i].type == "dropdown") {
995
+ if (data.component[i].dtmType != undefined) {
996
+ if (data.component[i].dtmType.includes("month")) {
997
+ if (data.component[i].value != undefined && data.component[i].value.includes("BD")) {
998
+ data.component[i].value = this.setDefaultValueMonth(data.component[i].value);
999
+ }
1000
+ data.component[i].items = this.setMonthDDL(data.component[i].dtmType);
401
1001
  }
402
- data.component[i].items = this.setMonthDDL(data.component[i].dtmType);
403
- }
404
- if (data.component[i].dtmType.includes("year")) {
405
- if (data.component[i].value != undefined && data.component[i].value.includes("BD")) {
406
- data.component[i].value = this.setDefaultValueYear(data.component[i].value);
1002
+ if (data.component[i].dtmType.includes("year")) {
1003
+ if (data.component[i].value != undefined && data.component[i].value.includes("BD")) {
1004
+ data.component[i].value = this.setDefaultValueYear(data.component[i].value);
1005
+ }
1006
+ data.component[i].items = this.setYearDDL(data.component[i].dtmType);
407
1007
  }
408
- data.component[i].items = this.setYearDDL(data.component[i].dtmType);
409
1008
  }
410
1009
  }
411
- }
412
- if (!data.component[i].value) {
413
- data.component[i].value = "";
414
- if (data.component[i].ddlType == 'all')
415
- data.component[i].value = "all";
416
- if (data.component[i].ddlType == 'one')
417
- data.component[i].value = "one";
418
- }
419
- //pengecekan tanggal
420
- if (data.component[i].type == "datepicker") {
421
- this.readonly = data.component[i].readonly;
422
- if (data.component[i].value.includes("BD")) {
423
- /** @type {?} */
424
- let businessDate = new Date();
425
- if (this.BisDt != null) {
426
- businessDate = new Date(this.BisDt);
427
- }
428
- /** @type {?} */
429
- let operator = data.component[i].value.charAt(2);
430
- /** @type {?} */
431
- let dateShow = new Date();
432
- if (operator == "-") {
433
- /** @type {?} */
434
- let tempMinus = data.component[i].value.split("-", 2);
1010
+ // if (data.component[i].type == "dropdownSearch" && !data.component[i].isFromURL && data.component[i].items?.length != 1) {
1011
+ // if (data.component[i].ddsType == undefined || data.component[i].ddsType == "all") {
1012
+ // data.component[i].value = "all";
1013
+ // data.component[i].descr = "All";
1014
+ // } else if (data.component[i].ddsType == "one") {
1015
+ // data.component[i].value = "one";
1016
+ // data.component[i].descr = "Select One";
1017
+ // }
1018
+ // }
1019
+ if (data.component[i].type == "dropdownSearch" && !data.component[i].isFromURL && data.component[i].items.length == 1) {
1020
+ data.component[i].value = data.component[i].items[0].Key;
1021
+ data.component[i].descr = data.component[i].items[0].Value;
1022
+ }
1023
+ if (data.component[i].type != "dropdownSearch" && !data.component[i].value) {
1024
+ data.component[i].value = "";
1025
+ if (data.component[i].ddlType == 'all')
1026
+ data.component[i].value = "all";
1027
+ if (data.component[i].ddlType == 'one')
1028
+ data.component[i].value = "one";
1029
+ }
1030
+ //pengecekan tanggal
1031
+ if (data.component[i].type == "datepicker") {
1032
+ this.readonly = data.component[i].readonly;
1033
+ if (data.component[i].value.includes("BD")) {
435
1034
  /** @type {?} */
436
- let numDay = parseInt(tempMinus[1]);
437
- businessDate.setDate(businessDate.getDate() - numDay);
438
- }
439
- else if (operator == "+") {
1035
+ let businessDate = new Date();
1036
+ if (this.BisDt != null) {
1037
+ businessDate = new Date(this.BisDt);
1038
+ }
440
1039
  /** @type {?} */
441
- let tempMinus = data.component[i].value.split("+", 2);
1040
+ let operator = data.component[i].value.charAt(2);
442
1041
  /** @type {?} */
443
- let numDay = parseInt(tempMinus[1]);
444
- businessDate.setDate(businessDate.getDate() + numDay);
445
- }
446
- dateShow = businessDate;
447
- /** @type {?} */
448
- let dateText = formatDate(dateShow, 'yyyy-MM-dd', 'en-US');
449
- data.component[i].value = dateText;
450
- }
451
- if (this.readonly = false) {
452
- if (data.component[i].restriction != undefined && data.component[i].restriction != "") {
453
- if (data.component[i].restriction.toUpperCase() == "GT") {
1042
+ let dateShow = new Date();
1043
+ if (operator == "-") {
454
1044
  /** @type {?} */
455
- let minDate = new Date(this.datePipe.transform(data.component[i].minDate, 'yyyy-MM-dd'));
456
- minDate.setDate(minDate.getDate() + 1);
457
- data.component[i].minDate = minDate;
1045
+ let tempMinus = data.component[i].value.split("-", 2);
1046
+ /** @type {?} */
1047
+ let numDay = parseInt(tempMinus[1]);
1048
+ businessDate.setDate(businessDate.getDate() - numDay);
458
1049
  }
459
- else if (data.component[i].restriction.toUpperCase() == "LT") {
1050
+ else if (operator == "+") {
1051
+ /** @type {?} */
1052
+ let tempMinus = data.component[i].value.split("+", 2);
460
1053
  /** @type {?} */
461
- let maxDate = new Date(this.datePipe.transform(data.component[i].maxDate, 'yyyy-MM-dd'));
462
- maxDate.setDate(maxDate.getDate() - 1);
463
- data.component[i].maxDate = maxDate;
1054
+ let numDay = parseInt(tempMinus[1]);
1055
+ businessDate.setDate(businessDate.getDate() + numDay);
1056
+ }
1057
+ dateShow = businessDate;
1058
+ /** @type {?} */
1059
+ let dateText = formatDate(dateShow, 'yyyy-MM-dd', 'en-US');
1060
+ data.component[i].value = dateText;
1061
+ }
1062
+ if (this.readonly = false) {
1063
+ if (data.component[i].restriction != undefined && data.component[i].restriction != "") {
1064
+ if (data.component[i].restriction.toUpperCase() == "GT") {
1065
+ /** @type {?} */
1066
+ let minDate = new Date(this.datePipe.transform(data.component[i].minDate, 'yyyy-MM-dd'));
1067
+ minDate.setDate(minDate.getDate() + 1);
1068
+ data.component[i].minDate = minDate;
1069
+ }
1070
+ else if (data.component[i].restriction.toUpperCase() == "LT") {
1071
+ /** @type {?} */
1072
+ let maxDate = new Date(this.datePipe.transform(data.component[i].maxDate, 'yyyy-MM-dd'));
1073
+ maxDate.setDate(maxDate.getDate() - 1);
1074
+ data.component[i].maxDate = maxDate;
1075
+ }
464
1076
  }
465
1077
  }
466
1078
  }
467
1079
  }
468
- }
469
- setTimeout((/**
470
- * @return {?}
471
- */
472
- () => {
473
- for (let j = 0; j < this.countForm; j++) {
474
- if (data.component[j].isEvent && this.configuration.component[j].itemsUrl.length == 1) {
475
- this.onChangeEvent(data.component[j].itemsUrl[0].Key, data.component[j]);
476
- }
477
- if (data.component[j].type == "officeRoleCodes" && this.configuration.component[j].itemsUrl.length > 0) {
478
- this.SetRoleOfficeCodes(j);
1080
+ setTimeout((/**
1081
+ * @return {?}
1082
+ */
1083
+ () => {
1084
+ for (let j = 0; j < this.countForm; j++) {
1085
+ if (data.component[j].isEvent && this.configuration.component[j].itemsUrl.length == 1) {
1086
+ this.onChangeEvent(data.component[j].itemsUrl[0].Key, data.component[j]);
1087
+ }
1088
+ if (data.component[j].type == "officeRoleCodes" && this.configuration.component[j].itemsUrl.length > 0) {
1089
+ this.SetRoleOfficeCodes(j);
1090
+ }
479
1091
  }
480
- }
481
- }), 1000);
482
- }));
1092
+ }), 1000);
1093
+ }));
1094
+ });
483
1095
  }
484
1096
  /**
485
1097
  * @param {?} i
@@ -699,10 +1311,12 @@ class UCSearchComponent {
699
1311
  * @return {?}
700
1312
  */
701
1313
  reset() {
702
- this.searchForm.resetForm({
703
- ExportType: this.ExportTypeList[0].key
1314
+ return __awaiter(this, void 0, void 0, function* () {
1315
+ this.searchForm.resetForm({
1316
+ ExportType: this.ExportTypeList[0].key
1317
+ });
1318
+ yield this.initiateForm();
704
1319
  });
705
- this.initiateForm();
706
1320
  }
707
1321
  /**
708
1322
  * @param {?} apiUrl
@@ -738,11 +1352,19 @@ class UCSearchComponent {
738
1352
  request.rowPerPage = rowPerPage;
739
1353
  request.orderBy = orderBy;
740
1354
  request.queryString = this.configuration.querystring;
1355
+ /** @type {?} */
1356
+ let formSeq = -1;
741
1357
  for (let i = 0; i < this.countForm; i++) {
742
1358
  /** @type {?} */
743
1359
  let critObj = new CriteriaObj();
1360
+ if (this.configuration.component[i].type == "dropdownSearch") {
1361
+ formSeq += 3;
1362
+ }
1363
+ else {
1364
+ formSeq++;
1365
+ }
744
1366
  /** @type {?} */
745
- let component = this.myForm.nativeElement[i];
1367
+ let component = this.myForm.nativeElement[formSeq];
746
1368
  // // popup message if required
747
1369
  // if (component.getAttribute('data-required') != null && component.getAttribute('data-required') == "true") {
748
1370
  // let val = component.value.trim();
@@ -937,6 +1559,10 @@ class UCSearchComponent {
937
1559
  */
938
1560
  (value) => !obj.exclude.includes(value.Key)));
939
1561
  }
1562
+ if (obj.type == "dropdownSearch" && obj.itemsUrl.length == 1) {
1563
+ obj.value = obj.itemsUrl[0].Key;
1564
+ obj.descr = obj.itemsUrl[0].Value;
1565
+ }
940
1566
  if (obj.affectedFilter && obj.itemsUrl.length == 1) {
941
1567
  this.onChangeEvent(obj.itemsUrl[0].Key, obj);
942
1568
  }
@@ -1316,11 +1942,21 @@ class UCSearchComponent {
1316
1942
  this.dateWrong = false;
1317
1943
  }
1318
1944
  }
1945
+ /**
1946
+ * @param {?} item
1947
+ * @param {?} crit
1948
+ * @return {?}
1949
+ */
1950
+ selectedOption(item, crit) {
1951
+ crit.descr = item.Value;
1952
+ crit.isListHide = true;
1953
+ }
1319
1954
  }
1320
1955
  UCSearchComponent.decorators = [
1321
1956
  { type: Component, args: [{
1322
1957
  selector: 'lib-UCSearch',
1323
- 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 -->",
1958
+ templateUrl: './ucsearch.component.html',
1959
+ styleUrls: ['./ucsearch.component.css'],
1324
1960
  providers: [ExcelService, DatePipe],
1325
1961
  animations: [
1326
1962
  trigger('changeDivSize', [
@@ -1336,9 +1972,8 @@ UCSearchComponent.decorators = [
1336
1972
  transition('initial=>final', animate('300ms')),
1337
1973
  transition('final=>initial', animate('300ms'))
1338
1974
  ]),
1339
- ],
1340
- styles: [".ucSearch-title{margin:3px}"]
1341
- }] }
1975
+ ]
1976
+ },] },
1342
1977
  ];
1343
1978
  /** @nocollapse */
1344
1979
  UCSearchComponent.ctorParameters = () => [
@@ -1348,10 +1983,11 @@ UCSearchComponent.ctorParameters = () => [
1348
1983
  { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] },
1349
1984
  { type: ToastrService },
1350
1985
  { type: CookieService },
1351
- { type: DatePipe }
1986
+ { type: DatePipe },
1987
+ { type: ElementRef }
1352
1988
  ];
1353
1989
  UCSearchComponent.propDecorators = {
1354
- content: [{ type: ViewChild, args: ['enjiForm', { static: false },] }],
1990
+ content: [{ type: ViewChild, args: ['enjiForm',] }],
1355
1991
  myForm: [{ type: ViewChild, args: ['formIdSearch', { static: false },] }],
1356
1992
  searchInput: [{ type: Input }],
1357
1993
  pageSize: [{ type: Input }],
@@ -1359,7 +1995,147 @@ UCSearchComponent.propDecorators = {
1359
1995
  result: [{ type: Output }],
1360
1996
  genRpt: [{ type: Output }],
1361
1997
  reqGetAllData: [{ type: Output }]
1362
- };
1998
+ };
1999
+ /** @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)); };
2000
+ /** @nocollapse */ UCSearchComponent.ɵcmp = ɵɵdefineComponent({ type: UCSearchComponent, selectors: [["lib-UCSearch"]], viewQuery: function UCSearchComponent_Query(rf, ctx) { if (rf & 1) {
2001
+ ɵɵviewQuery(_c0, true);
2002
+ ɵɵviewQuery(_c1, true);
2003
+ } if (rf & 2) {
2004
+ var _t;
2005
+ ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx.content = _t.first);
2006
+ ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx.myForm = _t.first);
2007
+ } }, 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) {
2008
+ const _r119 = ɵɵgetCurrentView();
2009
+ ɵɵelementStart(0, "section", 0);
2010
+ ɵɵelementStart(1, "div", 1);
2011
+ ɵɵelementStart(2, "div", 2);
2012
+ ɵɵelementStart(3, "div", 3);
2013
+ ɵɵtemplate(4, UCSearchComponent_div_4_Template, 3, 1, "div", 4);
2014
+ ɵɵelementStart(5, "div", 5);
2015
+ ɵɵelementStart(6, "div", 6);
2016
+ ɵɵelementStart(7, "form", 7, 8);
2017
+ ɵɵlistener("ngSubmit", function UCSearchComponent_Template_form_ngSubmit_7_listener() { ɵɵrestoreView(_r119); const _r2 = ɵɵreference(9); return _r2.valid && ctx.searchClick(); });
2018
+ ɵɵelementStart(10, "div", 9);
2019
+ ɵɵelementStart(11, "h4", 10);
2020
+ ɵɵelementStart(12, "div", 11);
2021
+ ɵɵlistener("click", function UCSearchComponent_Template_div_click_12_listener() { return ctx.changeState(); });
2022
+ ɵɵelement(13, "i", 12);
2023
+ ɵɵelementEnd();
2024
+ ɵɵtemplate(14, UCSearchComponent_span_14_Template, 1, 0, "span", 13);
2025
+ ɵɵtemplate(15, UCSearchComponent_ng_template_15_Template, 1, 1, "ng-template", null, 14, ɵɵtemplateRefExtractor);
2026
+ ɵɵtemplate(17, UCSearchComponent_ng_template_17_Template, 1, 0, "ng-template", null, 15, ɵɵtemplateRefExtractor);
2027
+ ɵɵelementEnd();
2028
+ ɵɵelementStart(19, "div", 16);
2029
+ ɵɵelementStart(20, "div", 17);
2030
+ ɵɵtemplate(21, UCSearchComponent_div_21_Template, 17, 16, "div", 18);
2031
+ ɵɵtemplate(22, UCSearchComponent_div_22_Template, 8, 2, "div", 19);
2032
+ ɵɵelementEnd();
2033
+ ɵɵelementStart(23, "div", 20);
2034
+ ɵɵelementStart(24, "div", 21);
2035
+ ɵɵtemplate(25, UCSearchComponent_button_25_Template, 5, 0, "button", 22);
2036
+ ɵɵelementStart(26, "button", 23);
2037
+ ɵɵlistener("click", function UCSearchComponent_Template_button_click_26_listener() { return ctx.reset(); });
2038
+ ɵɵelement(27, "i", 24);
2039
+ ɵɵtext(28, "\u00A0");
2040
+ ɵɵelementStart(29, "span", 25);
2041
+ ɵɵtext(30, "Reset");
2042
+ ɵɵelementEnd();
2043
+ ɵɵelementEnd();
2044
+ ɵɵtemplate(31, UCSearchComponent_button_31_Template, 6, 0, "button", 26);
2045
+ ɵɵtemplate(32, UCSearchComponent_button_32_Template, 5, 0, "button", 27);
2046
+ ɵɵelementEnd();
2047
+ ɵɵelementEnd();
2048
+ ɵɵelementEnd();
2049
+ ɵɵelementEnd();
2050
+ ɵɵelementEnd();
2051
+ ɵɵelementEnd();
2052
+ ɵɵelementEnd();
2053
+ ɵɵelementEnd();
2054
+ ɵɵelementEnd();
2055
+ ɵɵelementEnd();
2056
+ ɵɵelementEnd();
2057
+ ɵɵelement(33, "br");
2058
+ } if (rf & 2) {
2059
+ const _r4 = ɵɵreference(16);
2060
+ const _r6 = ɵɵreference(18);
2061
+ ɵɵadvance(4);
2062
+ ɵɵproperty("ngIf", (ctx.configuration == null ? null : ctx.configuration.title) != undefined && (ctx.configuration == null ? null : ctx.configuration.title) != "");
2063
+ ɵɵadvance(9);
2064
+ ɵɵproperty("ngClass", ctx.isHidden ? "fa-chevron-right" : "fa-chevron-down");
2065
+ ɵɵadvance(1);
2066
+ ɵɵproperty("ngIf", (ctx.configuration == null ? null : ctx.configuration.sectionTitle) != undefined && (ctx.configuration == null ? null : ctx.configuration.sectionTitle) != "")("ngIfThen", _r4)("ngIfElse", _r6);
2067
+ ɵɵadvance(5);
2068
+ ɵɵproperty("@changeDivSize", ctx.currentState);
2069
+ ɵɵadvance(2);
2070
+ ɵɵproperty("ngForOf", ctx.configuration == null ? null : ctx.configuration.component);
2071
+ ɵɵadvance(1);
2072
+ ɵɵproperty("ngIf", ctx.isReport != undefined && ctx.isReport);
2073
+ ɵɵadvance(3);
2074
+ ɵɵproperty("ngIf", ctx.exportData == true);
2075
+ ɵɵadvance(6);
2076
+ ɵɵproperty("ngIf", ctx.isReport == undefined || !ctx.isReport);
2077
+ ɵɵadvance(1);
2078
+ ɵɵproperty("ngIf", ctx.isReport != undefined && ctx.isReport);
2079
+ } }, 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: [
2080
+ trigger('changeDivSize', [
2081
+ state('initial', style({
2082
+ height: '*',
2083
+ opacity: '1',
2084
+ })),
2085
+ state('final', style({
2086
+ height: '0px',
2087
+ opacity: '0',
2088
+ overflow: 'hidden',
2089
+ })),
2090
+ transition('initial=>final', animate('300ms')),
2091
+ transition('final=>initial', animate('300ms'))
2092
+ ]),
2093
+ ] } });
2094
+ /*@__PURE__*/ (function () { ɵsetClassMetadata(UCSearchComponent, [{
2095
+ type: Component,
2096
+ args: [{
2097
+ selector: 'lib-UCSearch',
2098
+ templateUrl: './ucsearch.component.html',
2099
+ styleUrls: ['./ucsearch.component.css'],
2100
+ providers: [ExcelService, DatePipe],
2101
+ animations: [
2102
+ trigger('changeDivSize', [
2103
+ state('initial', style({
2104
+ height: '*',
2105
+ opacity: '1',
2106
+ })),
2107
+ state('final', style({
2108
+ height: '0px',
2109
+ opacity: '0',
2110
+ overflow: 'hidden',
2111
+ })),
2112
+ transition('initial=>final', animate('300ms')),
2113
+ transition('final=>initial', animate('300ms'))
2114
+ ]),
2115
+ ]
2116
+ }]
2117
+ }], function () { return [{ type: HttpClient }, { type: ExcelService }, { type: Renderer2 }, { type: undefined, decorators: [{
2118
+ type: Inject,
2119
+ args: [DOCUMENT]
2120
+ }] }, { type: ToastrService }, { type: CookieService }, { type: DatePipe }, { type: ElementRef }]; }, { content: [{
2121
+ type: ViewChild,
2122
+ args: ['enjiForm']
2123
+ }], myForm: [{
2124
+ type: ViewChild,
2125
+ args: ['formIdSearch', { static: false }]
2126
+ }], searchInput: [{
2127
+ type: Input
2128
+ }], pageSize: [{
2129
+ type: Input
2130
+ }], isReport: [{
2131
+ type: Input
2132
+ }], result: [{
2133
+ type: Output
2134
+ }], genRpt: [{
2135
+ type: Output
2136
+ }], reqGetAllData: [{
2137
+ type: Output
2138
+ }] }); })();
1363
2139
 
1364
2140
  /**
1365
2141
  * @fileoverview added by tsickle
@@ -1382,7 +2158,35 @@ class UCSearchModule {
1382
2158
  }
1383
2159
  UCSearchModule.decorators = [
1384
2160
  { type: NgModule, args: [{
1385
- declarations: [UCSearchComponent],
2161
+ declarations: [UCSearchComponent, TextSearchPipe],
2162
+ imports: [
2163
+ CommonModule,
2164
+ FormsModule,
2165
+ UcShowErrorsModule,
2166
+ UcDirectiveUpperCaseModule,
2167
+ NgxCurrencyModule.forRoot(customCurrencyMaskConfig),
2168
+ TranslateModule.forChild()
2169
+ ],
2170
+ exports: [UCSearchComponent]
2171
+ },] },
2172
+ ];
2173
+ /** @nocollapse */ UCSearchModule.ɵmod = ɵɵdefineNgModule({ type: UCSearchModule });
2174
+ /** @nocollapse */ UCSearchModule.ɵinj = ɵɵdefineInjector({ factory: function UCSearchModule_Factory(t) { return new (t || UCSearchModule)(); }, imports: [[
2175
+ CommonModule,
2176
+ FormsModule,
2177
+ UcShowErrorsModule,
2178
+ UcDirectiveUpperCaseModule,
2179
+ NgxCurrencyModule.forRoot(customCurrencyMaskConfig),
2180
+ TranslateModule.forChild()
2181
+ ]] });
2182
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && ɵɵsetNgModuleScope(UCSearchModule, { declarations: [UCSearchComponent, TextSearchPipe], imports: [CommonModule,
2183
+ FormsModule,
2184
+ UcShowErrorsModule,
2185
+ UcDirectiveUpperCaseModule, NgxCurrencyModule, TranslateModule], exports: [UCSearchComponent] }); })();
2186
+ /*@__PURE__*/ (function () { ɵsetClassMetadata(UCSearchModule, [{
2187
+ type: NgModule,
2188
+ args: [{
2189
+ declarations: [UCSearchComponent, TextSearchPipe],
1386
2190
  imports: [
1387
2191
  CommonModule,
1388
2192
  FormsModule,
@@ -1392,8 +2196,8 @@ UCSearchModule.decorators = [
1392
2196
  TranslateModule.forChild()
1393
2197
  ],
1394
2198
  exports: [UCSearchComponent]
1395
- },] }
1396
- ];
2199
+ }]
2200
+ }], null, null); })();
1397
2201
 
1398
2202
  /**
1399
2203
  * @fileoverview added by tsickle
@@ -1405,6 +2209,6 @@ UCSearchModule.decorators = [
1405
2209
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1406
2210
  */
1407
2211
 
1408
- export { UCSearchService, UCSearchComponent, customCurrencyMaskConfig, UCSearchModule, ExcelService as ɵa };
2212
+ export { UCSearchService, UCSearchComponent, customCurrencyMaskConfig, UCSearchModule };
1409
2213
 
1410
2214
  //# sourceMappingURL=adins-ucsearch.js.map