@adins/ucsearch 1.0.14 → 1.0.15

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.
Files changed (2) hide show
  1. package/README.md +24 -24
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -51,19 +51,19 @@ InputSearchObj :
51
51
  - apiQryPaging : search paging API path
52
52
 
53
53
  search.json :
54
+ ``` json
54
55
  {
55
- "title" : Title paging,
56
- "exportExcel" : true/false,
57
- "component" : [ search criteria property
56
+ "title" : "title", // Title paging
57
+ "exportExcel" : "false", // boolean: true/false
58
+ "component" : [ // search criteria property
58
59
  {
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
60
+ "type" : "textbox", // type input
61
+ "label" : "search id", // label criteria name
62
+ "name" : "searchId", // property search to backend
63
+ "id" : "uniqueId", // bound the label with the input, when click label *optional
64
+ "value" : "", // default value of input *optional
65
+ "placeholder" : "placeholder", // *optional
66
+ "datatype" : "text" // data type of input (text, numeric, date)
67
67
  },
68
68
  {
69
69
  "type" : "textarea",
@@ -80,7 +80,7 @@ search.json :
80
80
  "name" : "numericId",
81
81
  "id" : "uniqueId",
82
82
  "value" : "1",
83
- "restriction" : "lte", restriction criteria for backend (lte, gte)
83
+ "restriction" : "lte", // restriction criteria for backend (lte, gte)
84
84
  "placeholder" : "",
85
85
  "datatype" : "numeric"
86
86
  },
@@ -100,8 +100,8 @@ search.json :
100
100
  "id" : "uniqueId",
101
101
  "value" : "",
102
102
  "datatype" : "date",
103
- "isSelectOne" : true/false, dropwdown select all option
104
- "items" : [ hardcode the option list
103
+ "isSelectOne" : "false", // boolean: true/false, dropwdown select all option
104
+ "items" : [ // hardcode the option list
105
105
  {
106
106
  "key" : "1",
107
107
  "value" : "Yes"
@@ -111,11 +111,11 @@ search.json :
111
111
  "value" : "No"
112
112
  }
113
113
  ],
114
- "isFromURL" : true/false, if true get the option list from backend
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
114
+ "isFromURL" : "true", // boolean: true/false, if true get the option list from backend
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
119
119
  },
120
120
  {
121
121
  "type" : "dropwdown",
@@ -124,17 +124,17 @@ search.json :
124
124
  "id" : "uniqueId",
125
125
  "value" : "",
126
126
  "datatype" : "date",
127
- "isSelectOne" : true/false,
127
+ "isSelectOne" : "true",
128
128
  "items" : [],
129
- "isEvent" : true/false, if true dropdown criteria affect other dropdown criteria
130
- "affectedFilter" : ["dropdownId", "searchId"], affected filter check by name
131
- "isFromURL" : true/false,
129
+ "isEvent" : "true", // boolean: true/false, if true dropdown criteria affect other dropdown criteria
130
+ "affectedFilter" : ["dropdownId", "searchId"], // affected filter check by name
131
+ "isFromURL" : "true",
132
132
  "url" : "",
133
133
  "itemsUrl" : [],
134
134
  }
135
135
  ]
136
136
  }
137
-
137
+ ```
138
138
  ## Code scaffolding
139
139
 
140
140
  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`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adins/ucsearch",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^7.2.0",
6
6
  "@angular/core": "^7.2.0"