@andersonalmeidax0/webcomponents 0.1.10 → 0.1.11
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/RestAPIAdapter.js +1 -1
- package/XButton.jsx +15 -7
- package/package.json +1 -1
- package/releasenotes.txt +1 -0
package/RestAPIAdapter.js
CHANGED
|
@@ -172,7 +172,7 @@ function getStorageWithExpiry(key) {
|
|
|
172
172
|
return await this.callAPI('findByFK',fkArr,context)
|
|
173
173
|
};
|
|
174
174
|
async update(vo,context) {
|
|
175
|
-
alert(JSON.stringify(vo));
|
|
175
|
+
//alert(JSON.stringify(vo));
|
|
176
176
|
return await this.callAPI('update',vo,context)
|
|
177
177
|
};
|
|
178
178
|
async removeByPK(vo,context) {
|
package/XButton.jsx
CHANGED
|
@@ -28,13 +28,21 @@ class XButton extends React.Component {
|
|
|
28
28
|
|
|
29
29
|
render() {
|
|
30
30
|
var t=this.props.attachFile?'file':'button';
|
|
31
|
-
if(this.props.attachFile)
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
31
|
+
if(this.props.attachFile){
|
|
32
|
+
if(this.props.textlabel==null)
|
|
33
|
+
return (
|
|
34
|
+
<label onChange={this.evtFile} xclassName='tile bg--lightblue fg--white btn--raised ' xstyle={{lineHeight:20,xwidth:20,display:'inline-block'}} htmlFor="formId">
|
|
35
|
+
<input name="" type="file" id="formId" hidden />
|
|
36
|
+
<i className={'fa fa-paperclip'} />
|
|
37
|
+
</label>
|
|
38
|
+
);
|
|
39
|
+
else
|
|
40
|
+
return (
|
|
41
|
+
<label onChange={this.evtFile} xclassName='tile bg--lightblue fg--white btn--raised ' xstyle={{lineHeight:20,xwidth:20,display:'inline-block'}} htmlFor="formId">
|
|
42
|
+
<input name={this.props.textlabel} type="file" id="formId" />
|
|
43
|
+
</label>
|
|
44
|
+
);
|
|
45
|
+
}
|
|
38
46
|
|
|
39
47
|
if(this.props.icon){
|
|
40
48
|
if(this.props.textlabel==null)
|
package/package.json
CHANGED