@andersonalmeidax0/webcomponents 0.1.49 → 0.1.51

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.
@@ -60,10 +60,9 @@ class XFormEdit extends React.Component {
60
60
  if (v.type === 'l') /*list*/ {
61
61
  return <React.Fragment key={i}>
62
62
  <div xclassName="card">
63
- <div>{this.capitalize(v.label)}:</div>
63
+ <label>{this.capitalize(v.label)}:</label>
64
64
  <XSelect3 list={v.lov} value={this.props.formData[v.attr]} disabled={v.readOnly} onChange={(ev) => this.props.formData[v.attr] = ev.target.value} />
65
- <br />
66
- <p> </p>
65
+
67
66
  </div>
68
67
  </React.Fragment>
69
68
  }
@@ -81,7 +80,7 @@ class XFormEdit extends React.Component {
81
80
  if (v.type === 'd') /* date */ {
82
81
  return (
83
82
  <React.Fragment key={i}>
84
- <div className=""><div>{this.capitalize(v.label)}:</div>
83
+ <div className=""><label>{this.capitalize(v.label)}:</label>
85
84
  <XDateSelect id={this.props.id + '_F' + i} width={v.width} label={v.label} disabled={v.readOnly} value={this.props.formData[v.attr]} onChange={(v) => this.props.formData[v.attr] = v} />
86
85
  </div>
87
86
  </React.Fragment>)
@@ -90,7 +89,7 @@ class XFormEdit extends React.Component {
90
89
  if (v.type === 'c') /* check */ {
91
90
  return (
92
91
  <React.Fragment key={i}>
93
- <div className=""><div>{this.capitalize(v.label)}:</div>
92
+ <div className=""><label>{this.capitalize(v.label)}:</label>
94
93
  <XCheckbox id={this.props.id + '_F' + i} width={v.width} label={v.label} disabled={v.readOnly} value={this.props.formData[v.attr]} onChange={(v) => this.props.formData[v.attr] = v} />
95
94
  </div>
96
95
  </React.Fragment>)
@@ -99,7 +98,7 @@ class XFormEdit extends React.Component {
99
98
  if (v.type === 'file') /* file */ {
100
99
  return (
101
100
  <React.Fragment key={i}>
102
- <div className=""><div>{this.capitalize(v.label)}:</div>
101
+ <div className=""><label>{this.capitalize(v.label)}:</label>
103
102
  <p>{this.props.formData[v.attr]?this.props.formData[v.attr]:"No file selected"}</p>
104
103
  <XButton id={this.props.id + '_F' + i} attachFile={true} disabled={v.readOnly} onClick={(e)=>{this.props.formData[v.attr]=e.target.files[0].name;this.props.formData.filedata=e.target.files[0]}} textlabel='Select File'></XButton>
105
104
  </div>
@@ -127,7 +127,7 @@ function nfmtM(n) {
127
127
  {this.props.list.map((item,index,arr)=> {
128
128
  return <XTableCell key={index} item={item} index={index} lastIndex={arr.length} {...this.props} notifyChangeFn={this.cellChanged} api={this.props.api} /> })
129
129
  }
130
- {(this.props.list.length==0)&&<tr><td></td></tr>}
130
+ {(this.props.list.length==0)&&<tr><td>Vazio</td></tr>}
131
131
  </tbody>
132
132
  </table>
133
133
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andersonalmeidax0/webcomponents",
3
- "version": "0.1.49",
3
+ "version": "0.1.51",
4
4
  "description": "webcomponents",
5
5
  "main": "webcomponents",
6
6
  "scripts": {