@andersonalmeidax0/webcomponents 0.1.49 → 0.1.50
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
|
-
<
|
|
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
|
-
|
|
66
|
-
<p> </p>
|
|
65
|
+
|
|
67
66
|
</div>
|
|
68
67
|
</React.Fragment>
|
|
69
68
|
}
|
|
@@ -72,7 +71,7 @@ class XFormEdit extends React.Component {
|
|
|
72
71
|
return (
|
|
73
72
|
<React.Fragment key={i}>
|
|
74
73
|
<div>
|
|
75
|
-
<
|
|
74
|
+
<label>{this.capitalize(v.label)}:</label>
|
|
76
75
|
<JZInPlaceListComponent _id={this.props.id + '_F' + i} textlabels={true} list={this.props.formData[v.attr]} listConfig={v.listConfig} newItemFN={v.newItemFN} />
|
|
77
76
|
</div>
|
|
78
77
|
</React.Fragment>)
|
|
@@ -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=""><
|
|
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=""><
|
|
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=""><
|
|
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>
|