@adins/ucsearch 1.0.16 → 1.0.17
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 +27 -24
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
# UCSearch
|
|
2
2
|
|
|
3
|
-
This library was generated with [Angular CLI](https
|
|
3
|
+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.2.0.
|
|
4
4
|
|
|
5
5
|
## Version
|
|
6
6
|
|
|
7
|
+
Version 1.0.17
|
|
8
|
+
1. Update ReadMe
|
|
9
|
+
|
|
7
10
|
Version 1.0.16
|
|
8
11
|
1. Update ReadMe
|
|
9
12
|
|
|
@@ -57,19 +60,19 @@ InputSearchObj :
|
|
|
57
60
|
- apiQryPaging : search paging API path
|
|
58
61
|
|
|
59
62
|
search.json :
|
|
60
|
-
```
|
|
63
|
+
``` javascript
|
|
61
64
|
{
|
|
62
|
-
"title" : "title",
|
|
63
|
-
"exportExcel" : "false",
|
|
64
|
-
"component" : [
|
|
65
|
+
"title" : "title", // Title paging
|
|
66
|
+
"exportExcel" : "false", // boolean: true/false
|
|
67
|
+
"component" : [ // search criteria property
|
|
65
68
|
{
|
|
66
|
-
"type" : "textbox",
|
|
67
|
-
"label" : "search id",
|
|
68
|
-
"name" : "searchId",
|
|
69
|
-
"id" : "uniqueId",
|
|
70
|
-
"value" : "",
|
|
71
|
-
"placeholder" : "placeholder",
|
|
72
|
-
"datatype" : "text"
|
|
69
|
+
"type" : "textbox", // type input
|
|
70
|
+
"label" : "search id", // label criteria name
|
|
71
|
+
"name" : "searchId", // property search to backend
|
|
72
|
+
"id" : "uniqueId", // bound the label with the input, when click label *optional
|
|
73
|
+
"value" : "", // default value of input *optional
|
|
74
|
+
"placeholder" : "placeholder", // *optional
|
|
75
|
+
"datatype" : "text" // data type of input (text, numeric, date)
|
|
73
76
|
},
|
|
74
77
|
{
|
|
75
78
|
"type" : "textarea",
|
|
@@ -86,7 +89,7 @@ search.json :
|
|
|
86
89
|
"name" : "numericId",
|
|
87
90
|
"id" : "uniqueId",
|
|
88
91
|
"value" : "1",
|
|
89
|
-
"restriction" : "lte",
|
|
92
|
+
"restriction" : "lte", // restriction criteria for backend (lte, gte)
|
|
90
93
|
"placeholder" : "",
|
|
91
94
|
"datatype" : "numeric"
|
|
92
95
|
},
|
|
@@ -106,8 +109,8 @@ search.json :
|
|
|
106
109
|
"id" : "uniqueId",
|
|
107
110
|
"value" : "",
|
|
108
111
|
"datatype" : "date",
|
|
109
|
-
"isSelectOne" : "false",
|
|
110
|
-
"items" : [
|
|
112
|
+
"isSelectOne" : "false", // boolean: true/false, dropwdown select all option
|
|
113
|
+
"items" : [ // hardcode the option list
|
|
111
114
|
{
|
|
112
115
|
"key" : "1",
|
|
113
116
|
"value" : "Yes"
|
|
@@ -117,11 +120,11 @@ search.json :
|
|
|
117
120
|
"value" : "No"
|
|
118
121
|
}
|
|
119
122
|
],
|
|
120
|
-
"isFromURL" : "true",
|
|
121
|
-
"url" : "",
|
|
122
|
-
"itemsUrl" : [],
|
|
123
|
-
"criteriaPropName" : "typeCode",
|
|
124
|
-
"criteriaPropValue" : "TYPE_CODE"
|
|
123
|
+
"isFromURL" : "true", // boolean: true/false, if true get the option list from backend
|
|
124
|
+
"url" : "", // full path get keyValue API *mandatory, if isFromUrl true
|
|
125
|
+
"itemsUrl" : [], // *mandatory if isFromUrl true, property to store option list from backend
|
|
126
|
+
"criteriaPropName" : "typeCode", // additional criteria property *optional
|
|
127
|
+
"criteriaPropValue" : "TYPE_CODE" // additional criteria value *optional
|
|
125
128
|
},
|
|
126
129
|
{
|
|
127
130
|
"type" : "dropwdown",
|
|
@@ -132,8 +135,8 @@ search.json :
|
|
|
132
135
|
"datatype" : "date",
|
|
133
136
|
"isSelectOne" : "true",
|
|
134
137
|
"items" : [],
|
|
135
|
-
"isEvent" : "true",
|
|
136
|
-
"affectedFilter" : ["dropdownId", "searchId"],
|
|
138
|
+
"isEvent" : "true", // boolean: true/false, if true dropdown criteria affect other dropdown criteria
|
|
139
|
+
"affectedFilter" : ["dropdownId", "searchId"], // affected filter check by name
|
|
137
140
|
"isFromURL" : "true",
|
|
138
141
|
"url" : "",
|
|
139
142
|
"itemsUrl" : [],
|
|
@@ -156,8 +159,8 @@ After building your library with `ng build UCSearch`, go to the dist folder `cd
|
|
|
156
159
|
|
|
157
160
|
## Running unit tests
|
|
158
161
|
|
|
159
|
-
Run `ng test UCSearch` to execute the unit tests via [Karma](https
|
|
162
|
+
Run `ng test UCSearch` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
160
163
|
|
|
161
164
|
## Further help
|
|
162
165
|
|
|
163
|
-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https
|
|
166
|
+
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).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adins/ucsearch",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^7.2.0",
|
|
6
6
|
"@angular/core": "^7.2.0"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"tslib": "^1.9.0"
|
|
20
20
|
},
|
|
21
|
-
"description": "This library was generated with [Angular CLI](https
|
|
21
|
+
"description": "This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.2.0.",
|
|
22
22
|
"directories": {
|
|
23
23
|
"lib": "lib"
|
|
24
24
|
},
|