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