@adins/ucsearch 1.0.14 → 1.0.16
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 +33 -27
- 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 1.0.16
|
|
8
|
+
1. Update ReadMe
|
|
9
|
+
|
|
10
|
+
Version 1.0.15
|
|
11
|
+
1. Update ReadMe
|
|
12
|
+
|
|
7
13
|
Version 1.0.14
|
|
8
14
|
1. Update ReadMe
|
|
9
15
|
|
|
@@ -51,19 +57,19 @@ InputSearchObj :
|
|
|
51
57
|
- apiQryPaging : search paging API path
|
|
52
58
|
|
|
53
59
|
search.json :
|
|
60
|
+
``` json
|
|
54
61
|
{
|
|
55
|
-
"title" : Title paging
|
|
56
|
-
"exportExcel" : true
|
|
57
|
-
"component" : [ search criteria property
|
|
62
|
+
"title" : "title", | Title paging
|
|
63
|
+
"exportExcel" : "false", | boolean: true|false
|
|
64
|
+
"component" : [ | search criteria property
|
|
58
65
|
{
|
|
59
|
-
"type" : "textbox", type input
|
|
60
|
-
"label" : "search id", label criteria name
|
|
61
|
-
"name" : "searchId", property search to backend
|
|
62
|
-
"id" : "uniqueId", bound the label with the input, when click label *optional
|
|
63
|
-
"value" : "", default value of input *optional
|
|
64
|
-
"placeholder" : "placeholder", *optional
|
|
65
|
-
"datatype" : "text" data type of input (text, numeric, date)
|
|
66
|
-
"readonly": true/false
|
|
66
|
+
"type" : "textbox", | type input
|
|
67
|
+
"label" : "search id", | label criteria name
|
|
68
|
+
"name" : "searchId", | property search to backend
|
|
69
|
+
"id" : "uniqueId", | bound the label with the input, when click label *optional
|
|
70
|
+
"value" : "", | default value of input *optional
|
|
71
|
+
"placeholder" : "placeholder", | *optional
|
|
72
|
+
"datatype" : "text" | data type of input (text, numeric, date)
|
|
67
73
|
},
|
|
68
74
|
{
|
|
69
75
|
"type" : "textarea",
|
|
@@ -80,7 +86,7 @@ search.json :
|
|
|
80
86
|
"name" : "numericId",
|
|
81
87
|
"id" : "uniqueId",
|
|
82
88
|
"value" : "1",
|
|
83
|
-
"restriction" : "lte", restriction criteria for backend (lte, gte)
|
|
89
|
+
"restriction" : "lte", | restriction criteria for backend (lte, gte)
|
|
84
90
|
"placeholder" : "",
|
|
85
91
|
"datatype" : "numeric"
|
|
86
92
|
},
|
|
@@ -100,8 +106,8 @@ search.json :
|
|
|
100
106
|
"id" : "uniqueId",
|
|
101
107
|
"value" : "",
|
|
102
108
|
"datatype" : "date",
|
|
103
|
-
"isSelectOne" : true
|
|
104
|
-
"items" : [ hardcode the option list
|
|
109
|
+
"isSelectOne" : "false", | boolean: true|false, dropwdown select all option
|
|
110
|
+
"items" : [ | hardcode the option list
|
|
105
111
|
{
|
|
106
112
|
"key" : "1",
|
|
107
113
|
"value" : "Yes"
|
|
@@ -111,11 +117,11 @@ search.json :
|
|
|
111
117
|
"value" : "No"
|
|
112
118
|
}
|
|
113
119
|
],
|
|
114
|
-
"isFromURL" : true
|
|
115
|
-
"url" : "", full path get keyValue API *mandatory, if isFromUrl true
|
|
116
|
-
"itemsUrl" : [], *mandatory if isFromUrl true, property to store option list from backend
|
|
117
|
-
"criteriaPropName" : "typeCode", additional criteria property *optional
|
|
118
|
-
"criteriaPropValue" : "TYPE_CODE" additional criteria value *optional
|
|
120
|
+
"isFromURL" : "true", | boolean: true|false, if true get the option list from backend
|
|
121
|
+
"url" : "", | full path get keyValue API *mandatory, if isFromUrl true
|
|
122
|
+
"itemsUrl" : [], | *mandatory if isFromUrl true, property to store option list from backend
|
|
123
|
+
"criteriaPropName" : "typeCode", | additional criteria property *optional
|
|
124
|
+
"criteriaPropValue" : "TYPE_CODE" | additional criteria value *optional
|
|
119
125
|
},
|
|
120
126
|
{
|
|
121
127
|
"type" : "dropwdown",
|
|
@@ -124,17 +130,17 @@ search.json :
|
|
|
124
130
|
"id" : "uniqueId",
|
|
125
131
|
"value" : "",
|
|
126
132
|
"datatype" : "date",
|
|
127
|
-
"isSelectOne" : true
|
|
133
|
+
"isSelectOne" : "true",
|
|
128
134
|
"items" : [],
|
|
129
|
-
"isEvent" : true
|
|
130
|
-
"affectedFilter" : ["dropdownId", "searchId"], affected filter check by name
|
|
131
|
-
"isFromURL" : true
|
|
135
|
+
"isEvent" : "true", | boolean: true|false, if true dropdown criteria affect other dropdown criteria
|
|
136
|
+
"affectedFilter" : ["dropdownId", "searchId"], | affected filter check by name
|
|
137
|
+
"isFromURL" : "true",
|
|
132
138
|
"url" : "",
|
|
133
139
|
"itemsUrl" : [],
|
|
134
140
|
}
|
|
135
141
|
]
|
|
136
142
|
}
|
|
137
|
-
|
|
143
|
+
```
|
|
138
144
|
## Code scaffolding
|
|
139
145
|
|
|
140
146
|
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`.
|
|
@@ -150,8 +156,8 @@ After building your library with `ng build UCSearch`, go to the dist folder `cd
|
|
|
150
156
|
|
|
151
157
|
## Running unit tests
|
|
152
158
|
|
|
153
|
-
Run `ng test UCSearch` to execute the unit tests via [Karma](https
|
|
159
|
+
Run `ng test UCSearch` to execute the unit tests via [Karma](https:|karma-runner.github.io).
|
|
154
160
|
|
|
155
161
|
## Further help
|
|
156
162
|
|
|
157
|
-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https
|
|
163
|
+
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.16",
|
|
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
|
},
|