ywana-core8 0.0.927 → 0.0.928
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/dist/index.cjs +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +6 -3
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +6 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain2/DynamicForm.js +8 -7
package/dist/index.modern.js
CHANGED
@@ -11359,7 +11359,10 @@ var DynamicFormField = function DynamicFormField(props) {
|
|
11359
11359
|
type = field.type,
|
11360
11360
|
format = field.format,
|
11361
11361
|
options = field.options,
|
11362
|
-
required = field.required
|
11362
|
+
required = field.required,
|
11363
|
+
_field$editable = field.editable,
|
11364
|
+
editable = _field$editable === void 0 ? true : _field$editable;
|
11365
|
+
var readOnly = field.readOnly || editable === false;
|
11363
11366
|
function change(id, value) {
|
11364
11367
|
if (onChange) onChange(id, value);
|
11365
11368
|
}
|
@@ -11371,7 +11374,6 @@ var DynamicFormField = function DynamicFormField(props) {
|
|
11371
11374
|
}
|
11372
11375
|
function renderByFormat() {
|
11373
11376
|
var label = required ? field.label + " *" : field.label;
|
11374
|
-
var readOnly = field.readOnly || field.editable === false;
|
11375
11377
|
var _field$position = field.position,
|
11376
11378
|
position = _field$position === void 0 ? "bottom" : _field$position;
|
11377
11379
|
switch (format) {
|
@@ -11458,8 +11460,9 @@ var DynamicFormField = function DynamicFormField(props) {
|
|
11458
11460
|
return renderByFormat();
|
11459
11461
|
}
|
11460
11462
|
}
|
11463
|
+
var className = "dynamic-form-field " + (readOnly ? "readonly" : "");
|
11461
11464
|
return /*#__PURE__*/React.createElement("div", {
|
11462
|
-
className:
|
11465
|
+
className: className
|
11463
11466
|
}, renderByType());
|
11464
11467
|
};
|
11465
11468
|
|