@adins/ucviewgeneric 4.0.0-research.2 → 4.0.0-research.5

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
@@ -2,300 +2,409 @@
2
2
 
3
3
  This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.0.0.
4
4
 
5
+ ## Bootstrap 5 Compatibility
6
+
7
+ ✅ **Fully Compatible with Bootstrap 5**
8
+
9
+ This component has been migrated from Bootstrap 3 to Bootstrap 5 and includes:
10
+
11
+ - Updated CSS classes: `panel` → `card` for view containers
12
+ - Modern responsive design with Bootstrap 5 grid system
13
+ - Enhanced display components using Bootstrap 5 utilities
14
+ - Improved accessibility with ARIA attributes and screen reader support
15
+ - Better layout styling with Bootstrap 5 card variants
16
+ - Mobile-optimized generic view interface
17
+
18
+ ### Migration Summary
19
+
20
+ - **Bootstrap 3 Patterns Migrated**: 4 patterns including cards, grid layout, utilities, and display components
21
+ - **Bootstrap 5 Features Added**: Modern cards, responsive design, accessibility, utilities
22
+ - **Migration Priority**: MEDIUM (completed)
23
+
5
24
  ## Version
25
+
6
26
  notes: new ui under canary.x tags
7
27
 
8
28
  Version 3.4.18
29
+
9
30
  1. handle masking date pipe with ucdatepipe
10
31
 
11
32
  Version 3.4.17
33
+
12
34
  1. add truncate text for type link
13
35
 
14
36
  Version 3.4.16
37
+
15
38
  1. support show item conditionally using data from the view itself
16
39
 
17
40
  Version 3.4.15
41
+
18
42
  1. support show item conditionally using `conditions`
19
43
 
20
44
  Version 3.4.14
45
+
21
46
  1. fix parameter when calling getQueryParams (ngx-router)
22
47
 
23
48
  Version 3.4.13
49
+
24
50
  1. on/off safe url with useSafeUrl property
25
51
 
26
52
  Version 3.4.11
53
+
27
54
  1. fix link style on type switch callback
28
55
 
29
56
  Version 3.4.10
57
+
30
58
  1. fix text cannot be highlighted for copy
31
59
 
32
60
  Version 3.4.9
61
+
33
62
  1. fix link style on type switch
34
63
 
35
64
  Version 3.4.8
65
+
36
66
  1. add isSubsection option for table inside view
37
67
  2. add usePagination option for table inside view
38
68
 
39
69
  Version 3.4.7
70
+
40
71
  1. Add notify update / refresh view handler
41
72
 
42
73
  Version 3.4.6
74
+
43
75
  1. new update uc-subsection module
44
76
 
45
77
  Version 3.4.5
78
+
46
79
  1. change ui font
47
80
 
48
81
  Version 3.4.4
82
+
49
83
  1. add EXPERIMENTAL flag for BaseView API
50
84
 
51
85
  Version 3.4.3
86
+
52
87
  1. add option if fullpath empty, will generate from config environment and path
53
88
 
54
89
  Version 3.4.2
90
+
55
91
  1. fix padding
56
92
 
57
93
  Version 3.4.1
94
+
58
95
  1. fix margin for type boolean
59
96
 
60
97
  Version 3.4.0
98
+
61
99
  1. fix margin padding for type switch
62
100
  2. Fix columns
63
- 3. add classpadding 0
101
+ 3. add classpadding 0
64
102
  4. fix html tag
65
103
  5. support hardcode value
66
104
  6. separate old ui in legacy
67
105
 
68
106
  Version 3.3.3
107
+
69
108
  1. Fix Table indent
70
109
 
71
110
  Version 3.3.2
111
+
72
112
  1. Change gridview component to table component
73
113
 
74
114
  Version 3.3.1
115
+
75
116
  1. Add support type blank
76
117
 
77
118
  Version 3.3.0
119
+
78
120
  1. Add support data dictionary
79
121
 
80
122
  Version 3.2.2
123
+
81
124
  1. bug fix initialize gridViews input
82
125
  2. bug fix grid view move into one group section with ucview
83
126
 
84
127
  Version 3.2.1
128
+
85
129
  1. bug fix initialize gridview
86
130
 
87
131
  Version 3.2.0
132
+
88
133
  1. support grid table below view
89
134
 
90
135
  Version 3.1.3
136
+
91
137
  1. fix get data by API
92
138
 
93
139
  Version 3.1.1
140
+
94
141
  1. remove useCustomRes option setting
95
142
 
96
143
  Version 3.1.0
144
+
97
145
  1. add reqObj option setting
98
146
  2. add enviroment setting for get data by listEnvironment
99
147
  3. add useCustomRes option setting
100
148
  4. add resObjName option setting
101
149
 
102
150
  Version 3.0.2
151
+
103
152
  1. fix dataInput undefined
104
153
 
105
154
  Version 3.0.1
155
+
106
156
  1. fix dataInput
107
157
 
108
158
  Version 3.0.0
159
+
109
160
  1. fix versioning
110
161
  2. support dataInput
111
162
 
112
- Version 2.4.0
163
+ Version 2.4.0
164
+
113
165
  1. Update Angular 13 + IsCard
114
166
 
115
167
  Version 2.3.2
168
+
116
169
  1. type date dateFormat
117
170
 
118
171
  Version 2.3.1
172
+
119
173
  1. type callback-isText
120
174
 
121
175
  Version 2.2.1
176
+
122
177
  1. update folder/file name to lower-case
123
178
 
124
179
  Version 2.2.0
180
+
125
181
  1. Add logic hide (label and value) for switch case
126
182
 
127
183
  Version 2.1.0
184
+
128
185
  1. Add logic hide (label and value) for switch case
129
186
 
130
187
  Version 2.0.81
188
+
131
189
  1. Add logic concat for switch case.
132
190
 
133
191
  Version 2.0.77
192
+
134
193
  1. Bug fixing.
135
194
 
136
195
  Version 2.0.76
196
+
137
197
  1. tambah precision di type decimal.
138
198
 
139
199
  Version 2.0.75
200
+
140
201
  1. localStorage => Cookie
141
202
  2. switchCase restriction IN And NIN (Not In)
142
203
 
143
204
  Version 2.0.74
205
+
144
206
  1. Add word-break
145
207
 
146
208
  Version 2.0.72
209
+
147
210
  1. read localstorage lang
148
211
 
149
212
  Version 2.0.70
213
+
150
214
  1. translate module
151
215
 
152
216
  Version 2.0.69
217
+
153
218
  1. tambah view link isCurrency
154
219
 
155
220
  Version 2.0.68
221
+
156
222
  1. concat tidak muncul karena emptyLabel bug
157
223
 
158
224
  Version 2.0.66
225
+
159
226
  1. fix viewgeneric bug boolean != '' => false
160
227
 
161
228
  Version 2.0.65
229
+
162
230
  1. fix viewgeneric undefined
163
231
 
164
232
  Version 2.0.64
233
+
165
234
  1. tambah property customClassLabel
166
235
  1. tambah property customClassProperty
167
236
 
168
237
  Version 2.0.63
238
+
169
239
  1. Menambahkan Navigation Constant untuk link
170
240
 
171
241
  Version 2.0.61
242
+
172
243
  1. tambah property customclass
173
244
 
174
245
  Version 2.0.60
246
+
175
247
  1. tambah type switchcase
176
248
 
177
249
  Version 2.0.39
250
+
178
251
  1. tambah delimiter untuk currency
179
252
 
180
253
  Version 2.0.36
254
+
181
255
  1. kurang penjagaan null dan string kosong
182
256
 
183
257
  Version 2.0.35
258
+
184
259
  1. bug label isHide
185
260
 
186
261
  Version 2.0.33
262
+
187
263
  1. bug label div
188
264
 
189
265
  Version 2.0.32
266
+
190
267
  1. fix position
191
268
 
192
269
  Version 2.0.31
270
+
193
271
  1. tambah property isHide
194
272
  2. fix jika empty jadi " - "
195
273
 
196
274
  Version 2.0.27
275
+
197
276
  1. Fix css title
198
277
 
199
278
  Version 2.0.27
279
+
200
280
  1. Ubah input object
201
281
  2. tambah link envi
202
282
 
203
283
  Version 2.0.22
284
+
204
285
  1. tambah input ddlEnvironments
205
286
 
206
287
  Version 2.0.21
288
+
207
289
  1. tambah input ddlEnvironments
208
290
 
209
291
  Version 2.0.20
292
+
210
293
  1. fix logic type concat
211
294
 
212
295
  Version 2.0.15
296
+
213
297
  1. tambah type concat
214
298
 
215
299
  Version 2.0.14
300
+
216
301
  1. ubah Input jdi string
217
302
 
218
303
  Version 2.0.13
304
+
219
305
  1. Tambah Input ddlEnvironments
220
306
 
221
307
  Version 2.0.12
308
+
222
309
  1. fix data kosong
223
310
 
224
311
  Version 2.0.11
312
+
225
313
  1. fix data kosong
226
314
 
227
315
  Version 2.0.10
316
+
228
317
  1. fix boolean false agar tidak tampil '-'
229
318
  2. string kosong akan menampilkan '-'
230
319
 
231
320
  Version 2.0.9
321
+
232
322
  1. fix jika data kosong
233
323
 
234
324
  Version 2.0.8
325
+
235
326
  1. where value from input
236
327
 
237
328
  Version 2.0.5
329
+
238
330
  1. if no title fix
239
331
 
240
332
  Version 2.0.4
333
+
241
334
  1. add type boolean
242
335
 
243
336
  Version 2.0.3
337
+
244
338
  1. get returnObject querystring TOP 1
245
339
 
246
340
  Version 2.0.2
341
+
247
342
  1. get data from queryString
248
343
 
249
344
  Version 2.0.1
345
+
250
346
  1. label position viewGeneric, textarea input disable, loop subsection
251
347
 
252
348
  Version 2.0.0
349
+
253
350
  1. Update ReadMe
254
351
 
255
352
  Version 1.0.3
353
+
256
354
  1. Update ReadMe
257
355
 
258
356
  Version 1.0.2
357
+
259
358
  1. fix subsection not working
260
359
 
261
360
  Version 1.0.1
361
+
262
362
  1. Added ReadMe
263
363
 
264
364
  ## Dependency Module
265
- import this module :
365
+
366
+ import this module :
367
+
266
368
  - RouterModule
267
- - UcSubsectionModule ` npm i @adins/uc-subsection `
369
+ - UcSubsectionModule `npm i @adins/uc-subsection`
268
370
 
269
371
  ## Selector
372
+
270
373
  lib-ucviewgeneric
271
374
 
272
375
  ## Input
273
- 1. viewGenericObj : UcViewGenericObj (object) *mandatory
376
+
377
+ 1. viewGenericObj : UcViewGenericObj (object) \*mandatory
274
378
 
275
379
  ## Output
380
+
276
381
  1. callback : return view object
277
382
 
278
383
  ## Object property & JSON property
384
+
279
385
  viewGenericObj :
280
- - viewInput : view.json
281
- - viewEnvironment : environment path (foundation, setting, vendor)
282
- - navigationConst : navigation constant
283
- - listEnvironments : list EnvisObj (object)
284
- - whereValue : []
285
- - IsCard : Is use class card
286
- - dataInput : alternative data supply; use ESModule import to load json data, then pass the value into here. will override http.get
287
386
 
387
+ - viewInput : view.json
388
+ - viewEnvironment : environment path (foundation, setting, vendor)
389
+ - navigationConst : navigation constant
390
+ - listEnvironments : list EnvisObj (object)
391
+ - whereValue : []
392
+ - IsCard : Is use class card
393
+ - dataInput : alternative data supply; use ESModule import to load json data, then pass the value into here. will override http.get
288
394
 
289
395
  ## Callback
290
- - Callback return object:
291
- {
292
- ViewObj: item, // return view object
293
- Key: key // Key name
294
- }
396
+
397
+ - Callback return object:
398
+ {
399
+ ViewObj: item, // return view object
400
+ Key: key // Key name
401
+ }
295
402
 
296
403
  ## JSON property
297
- view.json :
298
- ``` javascript
404
+
405
+ view.json :
406
+
407
+ ```javascript
299
408
  {
300
409
  "title": "title", // title view paging
301
410
  "subsection": [ // subsection list
@@ -320,7 +429,7 @@ view.json :
320
429
  "position": "left", // label position (left, center, right | default left) *optional
321
430
  "path": "/test/paging", // router path
322
431
  "target" : "_self", // *optional _blank: Opens the linked document in a new window or tab
323
- "param": [ // passing optional parameters
432
+ "param": [ // passing optional parameters
324
433
  {
325
434
  "type" : "vendorId", // key parameter
326
435
  "property": "vendorId", // property to pass
@@ -416,7 +525,7 @@ view.json :
416
525
  "icon" : "ft-edit-2"
417
526
  },
418
527
  "result" : { // result of this case
419
- "type": "text", // type like bodyList : text,decimal,date,link,boolean
528
+ "type": "text", // type like bodyList : text,decimal,date,link,boolean
420
529
  "label": "View Code",
421
530
  "property" : "bodyId"
422
531
  },
@@ -464,9 +573,9 @@ view.json :
464
573
  }
465
574
  ],
466
575
  "querystring": {
467
- "select": "", // ex: "SELECT OFFICE_NAME AS OfficeName,IS_ACTIVE AS IsActive" *must use alias
468
- "from": "", // ex: "FROM REF_OFFICE WITH(NOLOCK)"
469
- "where": "" // ex: "WHERE REF_OFFICE_ID = {0} OR OFFICE_CODE = N'{1}'" *where condition sequence, with value from queryParam sequence
576
+ "select": "", // ex: "SELECT OFFICE_NAME AS OfficeName,IS_ACTIVE AS IsActive" *must use alias
577
+ "from": "", // ex: "FROM REF_OFFICE WITH(NOLOCK)"
578
+ "where": "" // ex: "WHERE REF_OFFICE_ID = {0} OR OFFICE_CODE = N'{1}'" *where condition sequence, with value from queryParam sequence
470
579
  }
471
580
  }
472
581
  ```
@@ -474,7 +583,8 @@ view.json :
474
583
  ## Code scaffolding
475
584
 
476
585
  Run `ng generate component component-name --project ucviewgeneric` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project ucviewgeneric`.
477
- > Note: Don't forget to add `--project ucviewgeneric` or else it will be added to the default project in your `angular.json` file.
586
+
587
+ > Note: Don't forget to add `--project ucviewgeneric` or else it will be added to the default project in your `angular.json` file.
478
588
 
479
589
  ## Build
480
590