@adins/ucsearch 3.5.7 → 3.5.8-canary.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,858 +1,858 @@
1
- # UCSearch
2
-
3
- This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.0.0.
4
-
5
- ## Version
6
- notes: new ui under canary.x tags
7
-
8
- Version 3.5.7
9
- 1. add support uc-directive-validate-date
10
-
11
- Version 3.5.6
12
- 1. add support custom object, key, and value name for dropdown - will default to `ReturnObject`, `Key`, and `Value` respectively
13
-
14
- Version 3.5.5
15
- 1. handle if response data null
16
-
17
- Version 3.5.4
18
- 1. fix export type col length
19
- 2. configurable list inside export as button
20
-
21
- Version 3.5.3
22
- 1. fix calling getQueryParams (ngx-router)
23
-
24
- Version 3.5.2
25
- 1. fix parameter when calling getQueryParams (ngx-router)
26
-
27
- Version 3.5.1
28
- 1. add support fe-core for ngx-router
29
-
30
- Version 3.5.0
31
- 1. add feature to set where value from the search component value - by name property
32
-
33
- Version 3.4.10
34
- 1. add support autofill for type dropdownlist
35
- 2. add support autofill source from dicts
36
-
37
- Version 3.4.9
38
- 1. add support for multiple request object for dropdown
39
- 2. add support for request object get data from useraccess
40
-
41
- Version 3.4.8
42
- 1. add clear default value on focus input currency
43
-
44
- Version 3.4.7
45
- 1. fix guard clause for orderby
46
-
47
- Version 3.4.6
48
- 1. uppercase value on autofill
49
-
50
- Version 3.4.5
51
- 1. fix affected filter when set back to all
52
-
53
- Version 3.4.4
54
- 1. add placeholder
55
-
56
- Version 3.4.3
57
- 1. change font size
58
- 2. change dropdown icon
59
-
60
- Version 3.4.2
61
- 1. change font color
62
-
63
- Version 3.4.1
64
- 1. add option on/off uppercase for search input
65
-
66
- Version 3.4.0
67
- 1. add option useraccess for autofill source
68
- 2. add isReadonly config
69
-
70
- Version 3.3.3
71
- 1. fix subsection title
72
-
73
- Version 3.3.2
74
- 1. add button hover
75
-
76
- Version 3.3.1
77
- 1. Update UI/UX padding
78
-
79
- Version 3.3.0
80
- 1. Update UI/UX
81
- 2. support dropdownlist criteria from queryparam
82
-
83
- Version 3.2.0
84
- 1. add support for exclude export list. user can select exclude data to display on excel
85
-
86
- Version 3.1.1
87
- 1. change copy object from shallow copy (spread) to deep copy (JSON.parse(JSON.stringify)). notes structured clone not available as for TS version < 4.7
88
-
89
- Version 3.1.0
90
- 1. add support for additional export list. user can select additional data to display on excel when doing export other than data displayed on grid
91
-
92
- Version 3.0.8
93
- 1. add guard clause for orderby
94
-
95
- Version 3.0.7
96
- 1. fix guard clause for dataInput on export file
97
-
98
- Version 3.0.5
99
- 1. fix dataInput undefined
100
-
101
- Version 3.0.4
102
- 1. fix dataInput
103
-
104
- Version 3.0.3
105
- 1. fix error when set title
106
-
107
- Version 3.0.2
108
- 1. Fix bug search addToTemp, data not filtered
109
-
110
- Version 3.0.1
111
- 1. update readme
112
-
113
- Version 3.0.0
114
- 1. Fix versioning for angular 13
115
- 2. support data input
116
-
117
- Version 2.9.23 (angular 13) & 2.13.6 (angular 7)
118
- 1. Fix bug error ketika isSearched true
119
-
120
- Version 2.9.22 (angular 13) & 2.13.5 (angular 7)
121
- 1. Fix bug ketika melakukan sort, hasil table berubah sesuai dengan crit. hasil table berubah jika hanya tombol search diklik
122
-
123
- Version 2.9.21 (angular 13) & 2.13.4 (angular 7)
124
- 1. add option autofill for auto input based on source
125
-
126
- Version 2.9.20 (angular 13)
127
- 1. add option export file as csv and json
128
- 2. Fix bug ketika export excel untuk type action - selain button / icon
129
-
130
- Version 2.9.19 (angular 13)
131
- 1. Fix header in export excel - nama header dalam file excel akan sesuai dengan nama header pada gridview
132
-
133
- Version 2.9.18 (angular 13)
134
- 1. Fix bug ketika export excel untuk type action
135
-
136
- Version 2.9.17 (angular 13)
137
- 1. Export excel button will appear if only user has click search button.
138
- 2. Export excel data will display the same data as grid view.
139
- 3. Export excel file name will adjust the json file title.
140
-
141
- Version 2.9.16 (angular 13)
142
- 1. bug fix - type numeric untuk value > 1000
143
-
144
- Version 2.9.15 (angular 13)
145
- 1. bug fix - check required when generate report
146
-
147
- Version 2.9.14 (angular 13) & 2.13.3 (angular 7)
148
- 1. add option on ExportTypeList for Justify PDF
149
- 2. remove option XLS & DOC from ExportTypeList
150
-
151
- Version 2.9.13 (angular 13) & 2.13.2 (angular 7)
152
- 1. tambah penjagaan criteria ketika export excel
153
-
154
- Version 2.9.11
155
- 1. tambah penjagaan check gte/lte/gt/lt
156
-
157
- Version 2.9.10
158
- 1. kasih penjagaan check gte/lte/gt/lt
159
-
160
- Version 2.9.9
161
- 1. add validation check gte/lte/gt/lt if numeric
162
-
163
- Version 2.13.1
164
- 1. add validation buat numeric, from gbs > dari to
165
-
166
- Version 2.12.1
167
- 1. wfKeyFilter harus string with split delimiter (xania;yoan;apsari)
168
-
169
- Version 2.11.28
170
- 1. async ngOnInit, initiateForm, reset
171
-
172
- Version 2.11.26
173
- 1. type dropdownsearch
174
- 1.
175
- 1.
176
- 1.
177
-
178
- Version 2.9.0
179
- 1. Update new attribute readonly buat datepicker
180
-
181
- Version 2.8.0
182
- 1. restriction tidak trigger checkInputDate
183
-
184
- Version 2.7.0
185
- 1. Tambah attribute data-numericpair
186
-
187
- Version 2.6.0
188
- 1. Hapus logic skip untuk type "officeRoleCodes"
189
-
190
- Version 2.5.3
191
- 1. Fix Bug Reset Report Type jadi kosong
192
-
193
- Version 2.5.2
194
- 1. Tambah attribute data-datepickerpair
195
-
196
- Version 2.5.1
197
- 1. Tambah output buat emit request get all datanya
198
-
199
- Version 2.4.1
200
- 1. Fix condition affected value punya affected value
201
-
202
- Version 2.3.8
203
- 1. Fix condition affected value punya affected value
204
-
205
- Version 2.3.7
206
- 1. Update condition affected value punya affected value
207
-
208
- Version 2.3.6
209
- 1. LOGGING buat CMS-119
210
-
211
- Version 2.3.5
212
- 1. LOGGING buat CMS-119
213
-
214
- Version 2.3.4
215
- 1. LOGGING buat CMS-119
216
-
217
- Version 2.3.3
218
- 1. LOGGING buat CMS-119
219
-
220
- Version 2.3.2
221
- 1. Test *
222
-
223
- Version 2.3.1
224
- 1. update folder/file name to lower-case
225
-
226
- Version 2.3.0
227
- 1. Hapus penggunaan ddlEnvironments
228
-
229
- Version 2.2.64
230
- 1. Bug fixing ucsearch
231
-
232
- Version 2.2.63
233
- 1. logging
234
-
235
- Version 2.2.62
236
- 1. logging
237
-
238
- Version 2.2.61
239
- 1. logging
240
-
241
- Version 2.2.60
242
- 1. Bug fixing ucsearch
243
-
244
- Version 2.2.59
245
- 1. Bug fixing ucsearch
246
-
247
- Version 2.2.58
248
- 1. Bug fixing ucsearch
249
-
250
- Version 2.2.57
251
- 1. Menambah tipe ProcessKey
252
-
253
- Version 2.2.56
254
- 1. tambahan input property InputSearchObj.fromValue
255
-
256
- Version 2.2.55
257
- 1. isCriteriaDataTable pada type dropdown
258
-
259
- Version 2.2.54
260
- 1. setMonthDDL dropdown list + setDefaultValueYear + setDefaultValueMonth
261
-
262
- Version 2.2.53
263
- 1. isCriteriaDataTable pada type datetime
264
-
265
- Version 2.2.52
266
- 1. ucsearch bug when ddltype one
267
-
268
- Version 2.2.51
269
- 1. datepicker tambahan isTime fungsiny buat ubah date ada time
270
-
271
- Version 2.2.50
272
- 1. bug fixing Translate di button
273
-
274
- Version 2.2.49
275
- 1. rapihin text
276
-
277
- Version 2.2.48
278
- 1. bug fixing dropdown
279
-
280
- Version 2.2.47
281
- 1. taskDefinitionKey + officeRoleCodes bugV2
282
-
283
- Version 2.2.45
284
- 1. taskDefinitionKey + officeRoleCodes bug
285
-
286
- Version 2.2.41
287
- 1. onchangeEvent bug
288
-
289
- Version 2.2.40
290
- 1. tambah type taskDefinitionKey + officeRoleCodes
291
-
292
- Version 2.2.38
293
- 1. Tambah fitur exclude untuk dropdown
294
-
295
- Version 2.2.37
296
- 1. Tambah type claim
297
- 2. CriteriaObj tambah property isCriteriaDataTable
298
- 3.
299
-
300
- Version 2.2.32
301
- 1. using UcUpperCase
302
-
303
- Version 2.2.29
304
- 1. propname ddl bug, get from attribute
305
-
306
- Version 2.2.26
307
- 1. type dropdown new dtmType
308
- 2. ddl type default value by BD
309
-
310
- Version 2.2.25
311
- 1. Fixed html for type numeric and datepicker
312
- 2. Fixed validation for datepicker
313
-
314
- Version 2.2.24
315
- 1. ddl isEvent jika list 1 di trigger filter nya
316
-
317
- Version 2.2.21
318
- 1. Comment validation datepicker when click search
319
-
320
- Version 2.2.20
321
- 1. Add attr.label
322
-
323
- Version 2.2.19
324
- 1. Add Validation min max pada DatePicker
325
- 2. Fixed patch default value
326
- 3. Fixed patch value datepicker ketika lihat BusinessDate
327
-
328
- Version 2.2.18
329
- 1. fix export excel
330
-
331
- Version 2.2.16
332
- 1. fix datetime value BD
333
-
334
- Version 2.2.15
335
- 1. reset with viewchild
336
-
337
- Version 2.2.14
338
- 1. listEnvironments, setting urlenvi in json
339
-
340
- Version 2.2.12
341
- 1. hapus logic popup message jika required
342
-
343
- Version 2.2.11
344
- 1. isRequired, jika required dan tidak diisi valueny maka akan keluar error message seperti form
345
-
346
- Version 2.2.10
347
- 1. isRequired, jika required dan tidak diisi valueny maka akan muncul pop up message
348
-
349
- Version 2.2.9
350
- 1. Add joinType
351
-
352
- Version 2.2.8
353
- 1. update ReadMe
354
-
355
- Version 2.2.7
356
- 1. join query dengan API luar
357
- 2. update InputSearchObj
358
-
359
- Version 2.2.4
360
- 1. TranslateModule
361
-
362
- Version 2.2.3
363
- 1. bug onChangeEvent
364
-
365
- Version 2.2.2
366
- 1. filterPropName
367
-
368
- Version 2.2.1
369
- 1. merapikan reset
370
-
371
- Version 2.2.0
372
- 1. ucsearch support ucreport
373
-
374
- Version 2.1.5
375
- 1. Input isReport
376
- 2. Output genRpt
377
-
378
- Version 2.1.4
379
- 1. typo
380
-
381
- Version 2.1.3
382
- 1. attribute data-name
383
-
384
- Version 2.1.2
385
- 1. dropdown if only 1 option show label only
386
-
387
- Version 2.1.0
388
- 1. update option all ddl
389
-
390
- Version 2.0.73
391
- 1. change property json : isSelectOne to ddlType
392
-
393
- Version 2.0.72
394
- 1. type currency
395
-
396
- Version 2.0.50
397
- 1. rollback
398
-
399
- Version 2.0.49
400
- 1. form to div
401
-
402
- Version 2.0.48
403
- 1. keyup
404
-
405
- Version 2.0.47
406
- 1. rollback
407
-
408
- Version 2.0.46
409
- 1. Add type switch
410
-
411
- Version 2.0.37
412
- 1. search able to do like restriction
413
-
414
- Version 2.0.34
415
- 1. css title
416
-
417
- Version 2.0.31
418
- 1. hapus headerTitle
419
- 2. tambah sectionTitle di json
420
- 3. title jdi card title paging
421
-
422
- Version 2.0.30
423
- 1. header title in ucpaging
424
-
425
- Version 2.0.29
426
- 1. pageSize
427
-
428
- Version 2.0.28
429
- 1. fix value date ambil dari businessDt
430
-
431
- Version 2.0.27
432
- 1. fix bug whereValue undefined
433
-
434
- Version 2.0.26
435
- 1. update whereValue jadi list object {property, value}
436
-
437
- Version 2.0.25
438
- 1. tambahan input property
439
- - InputSearchObj.title
440
- - InputSearchObj.whereValue
441
-
442
- Version 2.0.24
443
- 1. fix onChangeEvent baca fullpath
444
-
445
- Version 2.0.23
446
- 1. fix logic date
447
-
448
- Version 2.0.22
449
- 1. fix date
450
-
451
- Version 2.0.20
452
- 1. input title
453
-
454
- Version 2.0.19
455
- 1. Orderby default
456
-
457
- Version 2.0.18
458
- 1. #UCSearchClick buat panggil click
459
-
460
- Version 2.0.17
461
- 1. dropdown bentuk path dan environment dalam object ddlEnvironments
462
-
463
- Version 2.0.16
464
- 1. tambah kondisi dropwdown isQueryIn, jika select all criteria nya dari list dropdown
465
-
466
- Version 2.0.14
467
- 1. Key Value
468
-
469
- Version 2.0.13
470
- 1. tambah ReturnObject di ResolveObj
471
-
472
- Version 2.0.12
473
- 1. tambah rowVersion
474
-
475
- Version 2.0.11
476
- 1. ubah response model
477
-
478
- Version 2.0.9
479
- 1. Update textbox tambah data restriction
480
-
481
- Version 2.0.8
482
- 1. Menambahkan Query String pada export Excel
483
-
484
- Version 2.0.7
485
- 1. Update validasi additional criteria
486
-
487
- Version 2.0.6
488
- 1. Update add criteria
489
-
490
- Version 2.0.5
491
- 1. Update add criteria
492
-
493
- Version 2.0.4
494
- 1. Update add criteria
495
-
496
- Version 2.0.3
497
- 1. change export data button icon
498
-
499
- Version 2.0.2
500
- 1. fix exportData show
501
-
502
- Version 2.0.1
503
- 1. add search by queryString
504
-
505
- Version 2.0.0
506
- 1. Update ReadMe
507
-
508
- Version 1.0.17
509
- 1. Update ReadMe
510
-
511
- Version 1.0.16
512
- 1. Update ReadMe
513
-
514
- Version 1.0.15
515
- 1. Update ReadMe
516
-
517
- Version 1.0.14
518
- 1. Update ReadMe
519
-
520
- Version 1.0.11
521
- 1. Tambahan FlaTModuleId
522
-
523
- Version 1.0.10
524
- 1. Tambahan Encapsulation
525
-
526
- Version 1.0.9
527
- 1. ubah icon subsection
528
-
529
- Version 1.0.8
530
- 1. Ubah Search Component agar dapat di tambahkan criteria (contoh: refMasterTypeCode)
531
-
532
- Version 1.0.7
533
- 1. ubah search component ketika menerima url environment
534
-
535
- Version 1.0.6
536
- 1. ubah search title position, dan subsection icon
537
-
538
- Version 1.0.5
539
- 1. reset input search, merapikan coding
540
-
541
- Version 1.0.4
542
- 1. addCritInput penjagaan undefined
543
-
544
- Version 1.0.2
545
- 1. Fix InputObj, filter with function
546
-
547
- Version 1.0.1
548
- 1. Added ReadMe
549
-
550
- ## Dependency Module
551
- import this module :
552
- - FormsModule
553
-
554
- ## Selector
555
- lib-ucsearch
556
-
557
- ## Input
558
- 1. searchInput : InputSearchObj (object) *mandatory
559
- 2. pageSize : default search pageSize
560
- 3. isReport : boolean // default false | for ucreport usage
561
-
562
- ## Output
563
- 1. result : Emitting event after search, return resultData of search paging
564
- 2. genRpt : { ExportType: number, ElRef: ElementRef } // ucreport usage
565
- 3. reqGetAllData : Emitting event after search, return request for get all data
566
-
567
- ## Object property & JSON property
568
- InputSearchObj :
569
- - _url : search.json
570
- - enviromentUrl : environment path (foundation, setting, vendor)
571
- - title : title for section paging // *optional, if using same json for multiple component
572
- - apiQryPaging : search paging API path
573
- - listEnvironments : Array<EnvisObj> // set default envi url
574
- - whereValue :
575
- [
576
- {
577
- property: "IsActive",
578
- value: "true"
579
- },
580
- {
581
- property: "BizTmpltCode",
582
- value: "CF4W"
583
- }
584
- ] *optional // list for value in whereQuery
585
- - fromValue :
586
- [
587
- {
588
- {
589
- property: "CustId",
590
- value: "123"
591
- },
592
- {
593
- property: "AppId",
594
- value: "20"
595
- }
596
- }
597
- ] *optional // list for value in fromQuery
598
- - switchValue :
599
- [
600
- {
601
- property: "BizTmpltCode",
602
- value: "CF4W"
603
- }
604
- ] *optional // list value for headerList type switch
605
- - isJoinExAPI : boolean // to determine if query join external API
606
- - integrationObj : {// mandatory information that needed to be send if isJoinExAPI true
607
- baseUrl: environment url
608
- apiPath: routing url
609
- requestObj: request object for the external API
610
- leftColumnToJoin: querystring join query external API // written from the alias select
611
- from querystring
612
- rightColumnToJoin: query external API join querystring // written from the alias select
613
- from query external API
614
- joinType : string // determine join type (LEFT | default INNER) *optional
615
- } IntegrationObj (object)
616
- *notes : querystring and query external API cannot have the same alias in select querystring or returnObj external API
617
- - dataInput : alternative data supply; use ESModule import to load json data, then pass the value into here. will override http.get
618
-
619
- search.json :
620
- ``` javascript
621
- {
622
- "title" : "title", // Title paging
623
- "sectionTitle" : "title", // section title paging *optional, default title in section "paging"
624
- "exportExcel" : "false", // boolean: true|false
625
- "component" : [ // search criteria property
626
- {
627
- "type" : "textbox", // type input
628
- "label" : "search id", // label criteria name
629
- "name" : "searchId", // property search to backend
630
- "id" : "uniqueId", // bound the label with the input, when click label *optional
631
- "value" : "", // default value of input *optional
632
- "placeholder" : "placeholder", // *optional
633
- "datatype" : "text", // data type of input (text, numeric, date)
634
- "restriction" : "like", // restriction criteria for backend (like)
635
- "isRequired" : false, // boolean: true|false, if true will show pop message when input value empty
636
- "isCriteriaDataTable" : false, // mandatory, default false, filter criteria from datatable or not
637
- },
638
- {
639
- "type" : "textarea",
640
- "label" : "textarea",
641
- "name" : "textareaId",
642
- "id" : "uniqueId",
643
- "value" : "",
644
- "placeholder" : "",
645
- "datatype" : "text"
646
- },
647
- {
648
- "type" : "numeric",
649
- "label" : "numeric <=",
650
- "name" : "numericId",
651
- "id" : "uniqueId",
652
- "value" : "1",
653
- "restriction" : "lte", // restriction criteria for backend (lte, gte)
654
- "placeholder" : "",
655
- "datatype" : "numeric"
656
- },
657
- {
658
- "type" : "currency",
659
- "label" : "Money Amount",
660
- "name" : "currencyId",
661
- "id" : "uniqueId",
662
- "value" : "1",
663
- "restriction" : "eq",
664
- "placeholder" : "",
665
- "datatype" : "numeric",
666
- "isCustom" : "false" // boolean: true|false
667
- // setting currencyMask if isCustom true
668
- "thousands" : "," // string | separator
669
- "decimal" : "." // string | separator
670
- "align" : "right" // string | left,right
671
- "allowNegative" : "" // boolean: true|false
672
- "allowZero" : "" // boolean: true|false
673
- "precision" : "2" // number
674
- "nullable" : "" // boolean: true|false
675
- },
676
- {
677
- "type" : "datepicker",
678
- "label" : "Date From",
679
- "name" : "dateDt",
680
- "id" : "uniqueId", //*mandatory di ucReport
681
- "value" : "", // BD : set value base on BusinessDate. format: BD + (+|-) + number.
682
- "isTime" : "" // boolean: true|false
683
- "restriction" : "gte",
684
- "datatype" : "date",
685
- "minDate" : "2-1-2021", //format can be either, MM-dd-YYYY or dd-MMM-yyyy
686
- "maxDate" : "31-Mar-2021",
687
- "datepickerPair": "string" //date from and date to have a same value (for report only)
688
- },
689
- {
690
- "type" : "dropdown",
691
- "label" : "dropdown",
692
- "name" : "dropdownId",
693
- "id" : "uniqueId",
694
- "value" : "BD+", // BD : set value base on BusinessDate. format: BD + (+|-) + number(default 1).
695
- "datatype" : "date",
696
- "dtmType" : "month" // string: (month | year) format : "month"/"year" + (+-|-+|+|-) + number. generate list month/year base on number.
697
- "ddlType" : "all", // string: (one, all, blank) // (select one, select all, 'no select option') | default select all
698
- "items" : [ // hardcode the option list
699
- {
700
- "key" : "1",
701
- "value" : "Yes"
702
- },
703
- {
704
- "key" : "0",
705
- "value" : "No"
706
- }
707
- ],
708
- "isFromURL" : "true", // boolean: true|false, if true get the option list from backend
709
- "url" : "", // full path get keyValue API *mandatory, if isFromUrl true
710
- "itemsUrl" : [], // *mandatory if isFromUrl true, property to store option list from backend
711
- "criteriaPropName" : "typeCode", // additional criteria property *optional
712
- "criteriaPropValue" : "TYPE_CODE" // additional criteria value *optional
713
- },
714
- {
715
- "type" : "dropdown",
716
- "label" : "dropdown",
717
- "name" : "dropdownId",
718
- "id" : "uniqueId",
719
- "value" : "",
720
- "datatype" : "date",
721
- "ddlType" : "all", // string: (one, all, blank) // (select one, select all, 'no select option') | default select all
722
- "items" : [],
723
- "isEvent" : "true", // boolean: true|false, if true dropdown criteria affect other dropdown criteria
724
- "affectedFilter" : ["dropdownId", "searchId"], // affected filter check by name
725
- "filterPropName" : "Id", // string, request propName for ddl affectedFilter
726
- "isFromURL" : "true",
727
- "url" : "", // full path url api
728
- "path": "", // path api
729
- "criteriaPropName": "", // criteria property name
730
- "criteriaPropValue": "", // criteria value
731
- "itemsUrl" : [],
732
- "exclude" : [] // list value to exclude from list
733
- },
734
- {
735
- "type" : "dropdownSearch",
736
- "label" : "dropdown",
737
- "name" : "dropdownId",
738
- "value" : "",
739
- "descr" : "", // value yg tampilin di inputan dds(drop-down-search)
740
- "ddsType" : "true", // string: (one, all, blank) // (select one, select all, 'no select option') | default select all
741
- "placeholder": "FILTER",
742
- "size": 10, // height of dds, *mandatory
743
- "isListHide": true, // default setting, *mandatory
744
- "isFromURL": true,
745
- "isQueryIn": true,
746
- "environment": "", // key name from listEnvironments
747
- "path": "", // path api
748
- "items" : [],
749
- "itemsUrl" : [],
750
- "criteriaPropName": "", // criteria property name
751
- "criteriaPropValue": "", // criteria value
752
- "exclude" : [] // list value to exclude from list
753
-
754
- },
755
- {
756
- "type": "taskDefinitionKey",
757
- "label" : "taskDefinitionKey",
758
- "datatype": "text",
759
- "name" : "taskDefinitionKeyId",
760
- "id" : "uniqueId",
761
- "placeholder": "Placeholder",
762
- "isFromURL": true, //*mandatory
763
- "ddlType" : "one", // *mandatory string: one
764
- "path": "", // *mandatory path api
765
- "criteriaPropValue" : "TaskDefinitionKey" //field yang mau dicompare
766
- },
767
- {
768
- "type": "processKey",
769
- "label" : "processKey",
770
- "datatype": "text",
771
- "name" : "processKeyId",
772
- "id" : "uniqueId",
773
- "placeholder": "Placeholder",
774
- "isFromURL": true, //*mandatory
775
- "ddlType" : "one", // *mandatory string: one
776
- "path": "/RefMaster/GetListKeyValueActiveByCode", // *mandatory path api
777
- "criteriaPropName": "Code",
778
- "criteriaPropValue" : "PRCS_KEY_LEAD_CANCEL", //field yang mau dicompare
779
- "wfKeyFilter" : "ProcessKey"
780
- },
781
- {
782
- "type": "officeRoleCodes",
783
- "label" : "officeRoleCodes",
784
- "datatype": "text",
785
- "name" : "officeRoleCodesId",
786
- "id" : "uniqueId",
787
- "placeholder": "Placeholder",
788
- "isFromURL": true,
789
- "ddlType" : "all", // string: (one, all, blank) // (select one, select all, 'no select option') | default select all
790
- "isQueryIn": true, // boolean: true|false, if true and ddlType all then in list insert to criteria
791
- "path": "", // path api
792
- },
793
- {
794
- "label" : "label",
795
- "type" : "claim",
796
- "ddlType" : "all", // string: (one, all, blank) // (select one, select all, 'no select option') | default select all
797
- "isCriteriaDataTable" : false, // mandatory, default false, filter criteria from datatable or not
798
- },
799
- {
800
- "type" : "switch",
801
- "case" : [ // list of case
802
- {
803
- "conditions" : [ // list of conditions
804
- {
805
- "property" : "type", // property for condition checking
806
- "value" : "EXE", // value to check
807
- "restriction" : "EQ" // condition restrictions (EQ, NEQ, GT, GTE, LT, LTE | default EQ) *optional
808
- }
809
- ],
810
- "result" : { // result of this case
811
- "type": "textbox", // type like bodyList : text,decimal,date,link,boolean
812
- "label" : "Action",
813
- "datatype" : "text",
814
- "name" : "dateDt",
815
- "id" : "uniqueId",
816
- "value" : "",
817
- "restriction" : "gte"
818
- },
819
- "isHide" : true
820
- }
821
- ]
822
- }
823
- ],
824
- "querystring": { // query data by sql
825
- "select": "", // ex: "SELECT APP_ID AS appId, IS_ACTIVE AS isActive" *must use alias, field to select first must be the first row of grid
826
- "from": "", // ex: "FROM dbo.APP WITH(NOLOCK)" *don't forget WITH(NOLOCK), INNER JOIN, DBO.
827
- "where": "", // ex: "WHERE IS_ACTIVE = 1"
828
- "where": "", // where when using whereValue, ex: "WHERE IS_ACTIVE = {0}" *must use whereValue
829
- // where untuk string/Date -> N'{0}', int -> {0}
830
- "groupby": "", // ex: "GROUP BY ....."
831
- },
832
- "orderby": {
833
- "key": "A.APP_ID", // sort by name
834
- "value": "true" // boolean: true|false, true|false = ASC|DESC
835
- }
836
- }
837
- }
838
- ```
839
- ## Code scaffolding
840
-
841
- Run `ng generate component component-name --project UCSearch` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project UCSearch`.
842
- > Note: Don't forget to add `--project UCSearch` or else it will be added to the default project in your `angular.json` file.
843
-
844
- ## Build
845
-
846
- Run `ng build UCSearch` to build the project. The build artifacts will be stored in the `dist/` directory.
847
-
848
- ## Publishing
849
-
850
- After building your library with `ng build UCSearch`, go to the dist folder `cd dist/ucsearch` and run `npm publish`.
851
-
852
- ## Running unit tests
853
-
854
- Run `ng test UCSearch` to execute the unit tests via [Karma](https://karma-runner.github.io).
855
-
856
- ## Further help
857
-
858
- To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
1
+ # UCSearch
2
+
3
+ This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.0.0.
4
+
5
+ ## Version
6
+ notes: new ui under canary.x tags
7
+
8
+ Version 3.5.7
9
+ 1. add support uc-directive-validate-date
10
+
11
+ Version 3.5.6
12
+ 1. add support custom object, key, and value name for dropdown - will default to `ReturnObject`, `Key`, and `Value` respectively
13
+
14
+ Version 3.5.5
15
+ 1. handle if response data null
16
+
17
+ Version 3.5.4
18
+ 1. fix export type col length
19
+ 2. configurable list inside export as button
20
+
21
+ Version 3.5.3
22
+ 1. fix calling getQueryParams (ngx-router)
23
+
24
+ Version 3.5.2
25
+ 1. fix parameter when calling getQueryParams (ngx-router)
26
+
27
+ Version 3.5.1
28
+ 1. add support fe-core for ngx-router
29
+
30
+ Version 3.5.0
31
+ 1. add feature to set where value from the search component value - by name property
32
+
33
+ Version 3.4.10
34
+ 1. add support autofill for type dropdownlist
35
+ 2. add support autofill source from dicts
36
+
37
+ Version 3.4.9
38
+ 1. add support for multiple request object for dropdown
39
+ 2. add support for request object get data from useraccess
40
+
41
+ Version 3.4.8
42
+ 1. add clear default value on focus input currency
43
+
44
+ Version 3.4.7
45
+ 1. fix guard clause for orderby
46
+
47
+ Version 3.4.6
48
+ 1. uppercase value on autofill
49
+
50
+ Version 3.4.5
51
+ 1. fix affected filter when set back to all
52
+
53
+ Version 3.4.4
54
+ 1. add placeholder
55
+
56
+ Version 3.4.3
57
+ 1. change font size
58
+ 2. change dropdown icon
59
+
60
+ Version 3.4.2
61
+ 1. change font color
62
+
63
+ Version 3.4.1
64
+ 1. add option on/off uppercase for search input
65
+
66
+ Version 3.4.0
67
+ 1. add option useraccess for autofill source
68
+ 2. add isReadonly config
69
+
70
+ Version 3.3.3
71
+ 1. fix subsection title
72
+
73
+ Version 3.3.2
74
+ 1. add button hover
75
+
76
+ Version 3.3.1
77
+ 1. Update UI/UX padding
78
+
79
+ Version 3.3.0
80
+ 1. Update UI/UX
81
+ 2. support dropdownlist criteria from queryparam
82
+
83
+ Version 3.2.0
84
+ 1. add support for exclude export list. user can select exclude data to display on excel
85
+
86
+ Version 3.1.1
87
+ 1. change copy object from shallow copy (spread) to deep copy (JSON.parse(JSON.stringify)). notes structured clone not available as for TS version < 4.7
88
+
89
+ Version 3.1.0
90
+ 1. add support for additional export list. user can select additional data to display on excel when doing export other than data displayed on grid
91
+
92
+ Version 3.0.8
93
+ 1. add guard clause for orderby
94
+
95
+ Version 3.0.7
96
+ 1. fix guard clause for dataInput on export file
97
+
98
+ Version 3.0.5
99
+ 1. fix dataInput undefined
100
+
101
+ Version 3.0.4
102
+ 1. fix dataInput
103
+
104
+ Version 3.0.3
105
+ 1. fix error when set title
106
+
107
+ Version 3.0.2
108
+ 1. Fix bug search addToTemp, data not filtered
109
+
110
+ Version 3.0.1
111
+ 1. update readme
112
+
113
+ Version 3.0.0
114
+ 1. Fix versioning for angular 13
115
+ 2. support data input
116
+
117
+ Version 2.9.23 (angular 13) & 2.13.6 (angular 7)
118
+ 1. Fix bug error ketika isSearched true
119
+
120
+ Version 2.9.22 (angular 13) & 2.13.5 (angular 7)
121
+ 1. Fix bug ketika melakukan sort, hasil table berubah sesuai dengan crit. hasil table berubah jika hanya tombol search diklik
122
+
123
+ Version 2.9.21 (angular 13) & 2.13.4 (angular 7)
124
+ 1. add option autofill for auto input based on source
125
+
126
+ Version 2.9.20 (angular 13)
127
+ 1. add option export file as csv and json
128
+ 2. Fix bug ketika export excel untuk type action - selain button / icon
129
+
130
+ Version 2.9.19 (angular 13)
131
+ 1. Fix header in export excel - nama header dalam file excel akan sesuai dengan nama header pada gridview
132
+
133
+ Version 2.9.18 (angular 13)
134
+ 1. Fix bug ketika export excel untuk type action
135
+
136
+ Version 2.9.17 (angular 13)
137
+ 1. Export excel button will appear if only user has click search button.
138
+ 2. Export excel data will display the same data as grid view.
139
+ 3. Export excel file name will adjust the json file title.
140
+
141
+ Version 2.9.16 (angular 13)
142
+ 1. bug fix - type numeric untuk value > 1000
143
+
144
+ Version 2.9.15 (angular 13)
145
+ 1. bug fix - check required when generate report
146
+
147
+ Version 2.9.14 (angular 13) & 2.13.3 (angular 7)
148
+ 1. add option on ExportTypeList for Justify PDF
149
+ 2. remove option XLS & DOC from ExportTypeList
150
+
151
+ Version 2.9.13 (angular 13) & 2.13.2 (angular 7)
152
+ 1. tambah penjagaan criteria ketika export excel
153
+
154
+ Version 2.9.11
155
+ 1. tambah penjagaan check gte/lte/gt/lt
156
+
157
+ Version 2.9.10
158
+ 1. kasih penjagaan check gte/lte/gt/lt
159
+
160
+ Version 2.9.9
161
+ 1. add validation check gte/lte/gt/lt if numeric
162
+
163
+ Version 2.13.1
164
+ 1. add validation buat numeric, from gbs > dari to
165
+
166
+ Version 2.12.1
167
+ 1. wfKeyFilter harus string with split delimiter (xania;yoan;apsari)
168
+
169
+ Version 2.11.28
170
+ 1. async ngOnInit, initiateForm, reset
171
+
172
+ Version 2.11.26
173
+ 1. type dropdownsearch
174
+ 1.
175
+ 1.
176
+ 1.
177
+
178
+ Version 2.9.0
179
+ 1. Update new attribute readonly buat datepicker
180
+
181
+ Version 2.8.0
182
+ 1. restriction tidak trigger checkInputDate
183
+
184
+ Version 2.7.0
185
+ 1. Tambah attribute data-numericpair
186
+
187
+ Version 2.6.0
188
+ 1. Hapus logic skip untuk type "officeRoleCodes"
189
+
190
+ Version 2.5.3
191
+ 1. Fix Bug Reset Report Type jadi kosong
192
+
193
+ Version 2.5.2
194
+ 1. Tambah attribute data-datepickerpair
195
+
196
+ Version 2.5.1
197
+ 1. Tambah output buat emit request get all datanya
198
+
199
+ Version 2.4.1
200
+ 1. Fix condition affected value punya affected value
201
+
202
+ Version 2.3.8
203
+ 1. Fix condition affected value punya affected value
204
+
205
+ Version 2.3.7
206
+ 1. Update condition affected value punya affected value
207
+
208
+ Version 2.3.6
209
+ 1. LOGGING buat CMS-119
210
+
211
+ Version 2.3.5
212
+ 1. LOGGING buat CMS-119
213
+
214
+ Version 2.3.4
215
+ 1. LOGGING buat CMS-119
216
+
217
+ Version 2.3.3
218
+ 1. LOGGING buat CMS-119
219
+
220
+ Version 2.3.2
221
+ 1. Test *
222
+
223
+ Version 2.3.1
224
+ 1. update folder/file name to lower-case
225
+
226
+ Version 2.3.0
227
+ 1. Hapus penggunaan ddlEnvironments
228
+
229
+ Version 2.2.64
230
+ 1. Bug fixing ucsearch
231
+
232
+ Version 2.2.63
233
+ 1. logging
234
+
235
+ Version 2.2.62
236
+ 1. logging
237
+
238
+ Version 2.2.61
239
+ 1. logging
240
+
241
+ Version 2.2.60
242
+ 1. Bug fixing ucsearch
243
+
244
+ Version 2.2.59
245
+ 1. Bug fixing ucsearch
246
+
247
+ Version 2.2.58
248
+ 1. Bug fixing ucsearch
249
+
250
+ Version 2.2.57
251
+ 1. Menambah tipe ProcessKey
252
+
253
+ Version 2.2.56
254
+ 1. tambahan input property InputSearchObj.fromValue
255
+
256
+ Version 2.2.55
257
+ 1. isCriteriaDataTable pada type dropdown
258
+
259
+ Version 2.2.54
260
+ 1. setMonthDDL dropdown list + setDefaultValueYear + setDefaultValueMonth
261
+
262
+ Version 2.2.53
263
+ 1. isCriteriaDataTable pada type datetime
264
+
265
+ Version 2.2.52
266
+ 1. ucsearch bug when ddltype one
267
+
268
+ Version 2.2.51
269
+ 1. datepicker tambahan isTime fungsiny buat ubah date ada time
270
+
271
+ Version 2.2.50
272
+ 1. bug fixing Translate di button
273
+
274
+ Version 2.2.49
275
+ 1. rapihin text
276
+
277
+ Version 2.2.48
278
+ 1. bug fixing dropdown
279
+
280
+ Version 2.2.47
281
+ 1. taskDefinitionKey + officeRoleCodes bugV2
282
+
283
+ Version 2.2.45
284
+ 1. taskDefinitionKey + officeRoleCodes bug
285
+
286
+ Version 2.2.41
287
+ 1. onchangeEvent bug
288
+
289
+ Version 2.2.40
290
+ 1. tambah type taskDefinitionKey + officeRoleCodes
291
+
292
+ Version 2.2.38
293
+ 1. Tambah fitur exclude untuk dropdown
294
+
295
+ Version 2.2.37
296
+ 1. Tambah type claim
297
+ 2. CriteriaObj tambah property isCriteriaDataTable
298
+ 3.
299
+
300
+ Version 2.2.32
301
+ 1. using UcUpperCase
302
+
303
+ Version 2.2.29
304
+ 1. propname ddl bug, get from attribute
305
+
306
+ Version 2.2.26
307
+ 1. type dropdown new dtmType
308
+ 2. ddl type default value by BD
309
+
310
+ Version 2.2.25
311
+ 1. Fixed html for type numeric and datepicker
312
+ 2. Fixed validation for datepicker
313
+
314
+ Version 2.2.24
315
+ 1. ddl isEvent jika list 1 di trigger filter nya
316
+
317
+ Version 2.2.21
318
+ 1. Comment validation datepicker when click search
319
+
320
+ Version 2.2.20
321
+ 1. Add attr.label
322
+
323
+ Version 2.2.19
324
+ 1. Add Validation min max pada DatePicker
325
+ 2. Fixed patch default value
326
+ 3. Fixed patch value datepicker ketika lihat BusinessDate
327
+
328
+ Version 2.2.18
329
+ 1. fix export excel
330
+
331
+ Version 2.2.16
332
+ 1. fix datetime value BD
333
+
334
+ Version 2.2.15
335
+ 1. reset with viewchild
336
+
337
+ Version 2.2.14
338
+ 1. listEnvironments, setting urlenvi in json
339
+
340
+ Version 2.2.12
341
+ 1. hapus logic popup message jika required
342
+
343
+ Version 2.2.11
344
+ 1. isRequired, jika required dan tidak diisi valueny maka akan keluar error message seperti form
345
+
346
+ Version 2.2.10
347
+ 1. isRequired, jika required dan tidak diisi valueny maka akan muncul pop up message
348
+
349
+ Version 2.2.9
350
+ 1. Add joinType
351
+
352
+ Version 2.2.8
353
+ 1. update ReadMe
354
+
355
+ Version 2.2.7
356
+ 1. join query dengan API luar
357
+ 2. update InputSearchObj
358
+
359
+ Version 2.2.4
360
+ 1. TranslateModule
361
+
362
+ Version 2.2.3
363
+ 1. bug onChangeEvent
364
+
365
+ Version 2.2.2
366
+ 1. filterPropName
367
+
368
+ Version 2.2.1
369
+ 1. merapikan reset
370
+
371
+ Version 2.2.0
372
+ 1. ucsearch support ucreport
373
+
374
+ Version 2.1.5
375
+ 1. Input isReport
376
+ 2. Output genRpt
377
+
378
+ Version 2.1.4
379
+ 1. typo
380
+
381
+ Version 2.1.3
382
+ 1. attribute data-name
383
+
384
+ Version 2.1.2
385
+ 1. dropdown if only 1 option show label only
386
+
387
+ Version 2.1.0
388
+ 1. update option all ddl
389
+
390
+ Version 2.0.73
391
+ 1. change property json : isSelectOne to ddlType
392
+
393
+ Version 2.0.72
394
+ 1. type currency
395
+
396
+ Version 2.0.50
397
+ 1. rollback
398
+
399
+ Version 2.0.49
400
+ 1. form to div
401
+
402
+ Version 2.0.48
403
+ 1. keyup
404
+
405
+ Version 2.0.47
406
+ 1. rollback
407
+
408
+ Version 2.0.46
409
+ 1. Add type switch
410
+
411
+ Version 2.0.37
412
+ 1. search able to do like restriction
413
+
414
+ Version 2.0.34
415
+ 1. css title
416
+
417
+ Version 2.0.31
418
+ 1. hapus headerTitle
419
+ 2. tambah sectionTitle di json
420
+ 3. title jdi card title paging
421
+
422
+ Version 2.0.30
423
+ 1. header title in ucpaging
424
+
425
+ Version 2.0.29
426
+ 1. pageSize
427
+
428
+ Version 2.0.28
429
+ 1. fix value date ambil dari businessDt
430
+
431
+ Version 2.0.27
432
+ 1. fix bug whereValue undefined
433
+
434
+ Version 2.0.26
435
+ 1. update whereValue jadi list object {property, value}
436
+
437
+ Version 2.0.25
438
+ 1. tambahan input property
439
+ - InputSearchObj.title
440
+ - InputSearchObj.whereValue
441
+
442
+ Version 2.0.24
443
+ 1. fix onChangeEvent baca fullpath
444
+
445
+ Version 2.0.23
446
+ 1. fix logic date
447
+
448
+ Version 2.0.22
449
+ 1. fix date
450
+
451
+ Version 2.0.20
452
+ 1. input title
453
+
454
+ Version 2.0.19
455
+ 1. Orderby default
456
+
457
+ Version 2.0.18
458
+ 1. #UCSearchClick buat panggil click
459
+
460
+ Version 2.0.17
461
+ 1. dropdown bentuk path dan environment dalam object ddlEnvironments
462
+
463
+ Version 2.0.16
464
+ 1. tambah kondisi dropwdown isQueryIn, jika select all criteria nya dari list dropdown
465
+
466
+ Version 2.0.14
467
+ 1. Key Value
468
+
469
+ Version 2.0.13
470
+ 1. tambah ReturnObject di ResolveObj
471
+
472
+ Version 2.0.12
473
+ 1. tambah rowVersion
474
+
475
+ Version 2.0.11
476
+ 1. ubah response model
477
+
478
+ Version 2.0.9
479
+ 1. Update textbox tambah data restriction
480
+
481
+ Version 2.0.8
482
+ 1. Menambahkan Query String pada export Excel
483
+
484
+ Version 2.0.7
485
+ 1. Update validasi additional criteria
486
+
487
+ Version 2.0.6
488
+ 1. Update add criteria
489
+
490
+ Version 2.0.5
491
+ 1. Update add criteria
492
+
493
+ Version 2.0.4
494
+ 1. Update add criteria
495
+
496
+ Version 2.0.3
497
+ 1. change export data button icon
498
+
499
+ Version 2.0.2
500
+ 1. fix exportData show
501
+
502
+ Version 2.0.1
503
+ 1. add search by queryString
504
+
505
+ Version 2.0.0
506
+ 1. Update ReadMe
507
+
508
+ Version 1.0.17
509
+ 1. Update ReadMe
510
+
511
+ Version 1.0.16
512
+ 1. Update ReadMe
513
+
514
+ Version 1.0.15
515
+ 1. Update ReadMe
516
+
517
+ Version 1.0.14
518
+ 1. Update ReadMe
519
+
520
+ Version 1.0.11
521
+ 1. Tambahan FlaTModuleId
522
+
523
+ Version 1.0.10
524
+ 1. Tambahan Encapsulation
525
+
526
+ Version 1.0.9
527
+ 1. ubah icon subsection
528
+
529
+ Version 1.0.8
530
+ 1. Ubah Search Component agar dapat di tambahkan criteria (contoh: refMasterTypeCode)
531
+
532
+ Version 1.0.7
533
+ 1. ubah search component ketika menerima url environment
534
+
535
+ Version 1.0.6
536
+ 1. ubah search title position, dan subsection icon
537
+
538
+ Version 1.0.5
539
+ 1. reset input search, merapikan coding
540
+
541
+ Version 1.0.4
542
+ 1. addCritInput penjagaan undefined
543
+
544
+ Version 1.0.2
545
+ 1. Fix InputObj, filter with function
546
+
547
+ Version 1.0.1
548
+ 1. Added ReadMe
549
+
550
+ ## Dependency Module
551
+ import this module :
552
+ - FormsModule
553
+
554
+ ## Selector
555
+ lib-ucsearch
556
+
557
+ ## Input
558
+ 1. searchInput : InputSearchObj (object) *mandatory
559
+ 2. pageSize : default search pageSize
560
+ 3. isReport : boolean // default false | for ucreport usage
561
+
562
+ ## Output
563
+ 1. result : Emitting event after search, return resultData of search paging
564
+ 2. genRpt : { ExportType: number, ElRef: ElementRef } // ucreport usage
565
+ 3. reqGetAllData : Emitting event after search, return request for get all data
566
+
567
+ ## Object property & JSON property
568
+ InputSearchObj :
569
+ - _url : search.json
570
+ - enviromentUrl : environment path (foundation, setting, vendor)
571
+ - title : title for section paging // *optional, if using same json for multiple component
572
+ - apiQryPaging : search paging API path
573
+ - listEnvironments : Array<EnvisObj> // set default envi url
574
+ - whereValue :
575
+ [
576
+ {
577
+ property: "IsActive",
578
+ value: "true"
579
+ },
580
+ {
581
+ property: "BizTmpltCode",
582
+ value: "CF4W"
583
+ }
584
+ ] *optional // list for value in whereQuery
585
+ - fromValue :
586
+ [
587
+ {
588
+ {
589
+ property: "CustId",
590
+ value: "123"
591
+ },
592
+ {
593
+ property: "AppId",
594
+ value: "20"
595
+ }
596
+ }
597
+ ] *optional // list for value in fromQuery
598
+ - switchValue :
599
+ [
600
+ {
601
+ property: "BizTmpltCode",
602
+ value: "CF4W"
603
+ }
604
+ ] *optional // list value for headerList type switch
605
+ - isJoinExAPI : boolean // to determine if query join external API
606
+ - integrationObj : {// mandatory information that needed to be send if isJoinExAPI true
607
+ baseUrl: environment url
608
+ apiPath: routing url
609
+ requestObj: request object for the external API
610
+ leftColumnToJoin: querystring join query external API // written from the alias select
611
+ from querystring
612
+ rightColumnToJoin: query external API join querystring // written from the alias select
613
+ from query external API
614
+ joinType : string // determine join type (LEFT | default INNER) *optional
615
+ } IntegrationObj (object)
616
+ *notes : querystring and query external API cannot have the same alias in select querystring or returnObj external API
617
+ - dataInput : alternative data supply; use ESModule import to load json data, then pass the value into here. will override http.get
618
+
619
+ search.json :
620
+ ``` javascript
621
+ {
622
+ "title" : "title", // Title paging
623
+ "sectionTitle" : "title", // section title paging *optional, default title in section "paging"
624
+ "exportExcel" : "false", // boolean: true|false
625
+ "component" : [ // search criteria property
626
+ {
627
+ "type" : "textbox", // type input
628
+ "label" : "search id", // label criteria name
629
+ "name" : "searchId", // property search to backend
630
+ "id" : "uniqueId", // bound the label with the input, when click label *optional
631
+ "value" : "", // default value of input *optional
632
+ "placeholder" : "placeholder", // *optional
633
+ "datatype" : "text", // data type of input (text, numeric, date)
634
+ "restriction" : "like", // restriction criteria for backend (like)
635
+ "isRequired" : false, // boolean: true|false, if true will show pop message when input value empty
636
+ "isCriteriaDataTable" : false, // mandatory, default false, filter criteria from datatable or not
637
+ },
638
+ {
639
+ "type" : "textarea",
640
+ "label" : "textarea",
641
+ "name" : "textareaId",
642
+ "id" : "uniqueId",
643
+ "value" : "",
644
+ "placeholder" : "",
645
+ "datatype" : "text"
646
+ },
647
+ {
648
+ "type" : "numeric",
649
+ "label" : "numeric <=",
650
+ "name" : "numericId",
651
+ "id" : "uniqueId",
652
+ "value" : "1",
653
+ "restriction" : "lte", // restriction criteria for backend (lte, gte)
654
+ "placeholder" : "",
655
+ "datatype" : "numeric"
656
+ },
657
+ {
658
+ "type" : "currency",
659
+ "label" : "Money Amount",
660
+ "name" : "currencyId",
661
+ "id" : "uniqueId",
662
+ "value" : "1",
663
+ "restriction" : "eq",
664
+ "placeholder" : "",
665
+ "datatype" : "numeric",
666
+ "isCustom" : "false" // boolean: true|false
667
+ // setting currencyMask if isCustom true
668
+ "thousands" : "," // string | separator
669
+ "decimal" : "." // string | separator
670
+ "align" : "right" // string | left,right
671
+ "allowNegative" : "" // boolean: true|false
672
+ "allowZero" : "" // boolean: true|false
673
+ "precision" : "2" // number
674
+ "nullable" : "" // boolean: true|false
675
+ },
676
+ {
677
+ "type" : "datepicker",
678
+ "label" : "Date From",
679
+ "name" : "dateDt",
680
+ "id" : "uniqueId", //*mandatory di ucReport
681
+ "value" : "", // BD : set value base on BusinessDate. format: BD + (+|-) + number.
682
+ "isTime" : "" // boolean: true|false
683
+ "restriction" : "gte",
684
+ "datatype" : "date",
685
+ "minDate" : "2-1-2021", //format can be either, MM-dd-YYYY or dd-MMM-yyyy
686
+ "maxDate" : "31-Mar-2021",
687
+ "datepickerPair": "string" //date from and date to have a same value (for report only)
688
+ },
689
+ {
690
+ "type" : "dropdown",
691
+ "label" : "dropdown",
692
+ "name" : "dropdownId",
693
+ "id" : "uniqueId",
694
+ "value" : "BD+", // BD : set value base on BusinessDate. format: BD + (+|-) + number(default 1).
695
+ "datatype" : "date",
696
+ "dtmType" : "month" // string: (month | year) format : "month"/"year" + (+-|-+|+|-) + number. generate list month/year base on number.
697
+ "ddlType" : "all", // string: (one, all, blank) // (select one, select all, 'no select option') | default select all
698
+ "items" : [ // hardcode the option list
699
+ {
700
+ "key" : "1",
701
+ "value" : "Yes"
702
+ },
703
+ {
704
+ "key" : "0",
705
+ "value" : "No"
706
+ }
707
+ ],
708
+ "isFromURL" : "true", // boolean: true|false, if true get the option list from backend
709
+ "url" : "", // full path get keyValue API *mandatory, if isFromUrl true
710
+ "itemsUrl" : [], // *mandatory if isFromUrl true, property to store option list from backend
711
+ "criteriaPropName" : "typeCode", // additional criteria property *optional
712
+ "criteriaPropValue" : "TYPE_CODE" // additional criteria value *optional
713
+ },
714
+ {
715
+ "type" : "dropdown",
716
+ "label" : "dropdown",
717
+ "name" : "dropdownId",
718
+ "id" : "uniqueId",
719
+ "value" : "",
720
+ "datatype" : "date",
721
+ "ddlType" : "all", // string: (one, all, blank) // (select one, select all, 'no select option') | default select all
722
+ "items" : [],
723
+ "isEvent" : "true", // boolean: true|false, if true dropdown criteria affect other dropdown criteria
724
+ "affectedFilter" : ["dropdownId", "searchId"], // affected filter check by name
725
+ "filterPropName" : "Id", // string, request propName for ddl affectedFilter
726
+ "isFromURL" : "true",
727
+ "url" : "", // full path url api
728
+ "path": "", // path api
729
+ "criteriaPropName": "", // criteria property name
730
+ "criteriaPropValue": "", // criteria value
731
+ "itemsUrl" : [],
732
+ "exclude" : [] // list value to exclude from list
733
+ },
734
+ {
735
+ "type" : "dropdownSearch",
736
+ "label" : "dropdown",
737
+ "name" : "dropdownId",
738
+ "value" : "",
739
+ "descr" : "", // value yg tampilin di inputan dds(drop-down-search)
740
+ "ddsType" : "true", // string: (one, all, blank) // (select one, select all, 'no select option') | default select all
741
+ "placeholder": "FILTER",
742
+ "size": 10, // height of dds, *mandatory
743
+ "isListHide": true, // default setting, *mandatory
744
+ "isFromURL": true,
745
+ "isQueryIn": true,
746
+ "environment": "", // key name from listEnvironments
747
+ "path": "", // path api
748
+ "items" : [],
749
+ "itemsUrl" : [],
750
+ "criteriaPropName": "", // criteria property name
751
+ "criteriaPropValue": "", // criteria value
752
+ "exclude" : [] // list value to exclude from list
753
+
754
+ },
755
+ {
756
+ "type": "taskDefinitionKey",
757
+ "label" : "taskDefinitionKey",
758
+ "datatype": "text",
759
+ "name" : "taskDefinitionKeyId",
760
+ "id" : "uniqueId",
761
+ "placeholder": "Placeholder",
762
+ "isFromURL": true, //*mandatory
763
+ "ddlType" : "one", // *mandatory string: one
764
+ "path": "", // *mandatory path api
765
+ "criteriaPropValue" : "TaskDefinitionKey" //field yang mau dicompare
766
+ },
767
+ {
768
+ "type": "processKey",
769
+ "label" : "processKey",
770
+ "datatype": "text",
771
+ "name" : "processKeyId",
772
+ "id" : "uniqueId",
773
+ "placeholder": "Placeholder",
774
+ "isFromURL": true, //*mandatory
775
+ "ddlType" : "one", // *mandatory string: one
776
+ "path": "/RefMaster/GetListKeyValueActiveByCode", // *mandatory path api
777
+ "criteriaPropName": "Code",
778
+ "criteriaPropValue" : "PRCS_KEY_LEAD_CANCEL", //field yang mau dicompare
779
+ "wfKeyFilter" : "ProcessKey"
780
+ },
781
+ {
782
+ "type": "officeRoleCodes",
783
+ "label" : "officeRoleCodes",
784
+ "datatype": "text",
785
+ "name" : "officeRoleCodesId",
786
+ "id" : "uniqueId",
787
+ "placeholder": "Placeholder",
788
+ "isFromURL": true,
789
+ "ddlType" : "all", // string: (one, all, blank) // (select one, select all, 'no select option') | default select all
790
+ "isQueryIn": true, // boolean: true|false, if true and ddlType all then in list insert to criteria
791
+ "path": "", // path api
792
+ },
793
+ {
794
+ "label" : "label",
795
+ "type" : "claim",
796
+ "ddlType" : "all", // string: (one, all, blank) // (select one, select all, 'no select option') | default select all
797
+ "isCriteriaDataTable" : false, // mandatory, default false, filter criteria from datatable or not
798
+ },
799
+ {
800
+ "type" : "switch",
801
+ "case" : [ // list of case
802
+ {
803
+ "conditions" : [ // list of conditions
804
+ {
805
+ "property" : "type", // property for condition checking
806
+ "value" : "EXE", // value to check
807
+ "restriction" : "EQ" // condition restrictions (EQ, NEQ, GT, GTE, LT, LTE | default EQ) *optional
808
+ }
809
+ ],
810
+ "result" : { // result of this case
811
+ "type": "textbox", // type like bodyList : text,decimal,date,link,boolean
812
+ "label" : "Action",
813
+ "datatype" : "text",
814
+ "name" : "dateDt",
815
+ "id" : "uniqueId",
816
+ "value" : "",
817
+ "restriction" : "gte"
818
+ },
819
+ "isHide" : true
820
+ }
821
+ ]
822
+ }
823
+ ],
824
+ "querystring": { // query data by sql
825
+ "select": "", // ex: "SELECT APP_ID AS appId, IS_ACTIVE AS isActive" *must use alias, field to select first must be the first row of grid
826
+ "from": "", // ex: "FROM dbo.APP WITH(NOLOCK)" *don't forget WITH(NOLOCK), INNER JOIN, DBO.
827
+ "where": "", // ex: "WHERE IS_ACTIVE = 1"
828
+ "where": "", // where when using whereValue, ex: "WHERE IS_ACTIVE = {0}" *must use whereValue
829
+ // where untuk string/Date -> N'{0}', int -> {0}
830
+ "groupby": "", // ex: "GROUP BY ....."
831
+ },
832
+ "orderby": {
833
+ "key": "A.APP_ID", // sort by name
834
+ "value": "true" // boolean: true|false, true|false = ASC|DESC
835
+ }
836
+ }
837
+ }
838
+ ```
839
+ ## Code scaffolding
840
+
841
+ Run `ng generate component component-name --project UCSearch` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project UCSearch`.
842
+ > Note: Don't forget to add `--project UCSearch` or else it will be added to the default project in your `angular.json` file.
843
+
844
+ ## Build
845
+
846
+ Run `ng build UCSearch` to build the project. The build artifacts will be stored in the `dist/` directory.
847
+
848
+ ## Publishing
849
+
850
+ After building your library with `ng build UCSearch`, go to the dist folder `cd dist/ucsearch` and run `npm publish`.
851
+
852
+ ## Running unit tests
853
+
854
+ Run `ng test UCSearch` to execute the unit tests via [Karma](https://karma-runner.github.io).
855
+
856
+ ## Further help
857
+
858
+ To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).