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.cjs
CHANGED
@@ -11368,7 +11368,10 @@ var DynamicFormField = function DynamicFormField(props) {
|
|
11368
11368
|
type = field.type,
|
11369
11369
|
format = field.format,
|
11370
11370
|
options = field.options,
|
11371
|
-
required = field.required
|
11371
|
+
required = field.required,
|
11372
|
+
_field$editable = field.editable,
|
11373
|
+
editable = _field$editable === void 0 ? true : _field$editable;
|
11374
|
+
var readOnly = field.readOnly || editable === false;
|
11372
11375
|
function change(id, value) {
|
11373
11376
|
if (onChange) onChange(id, value);
|
11374
11377
|
}
|
@@ -11380,7 +11383,6 @@ var DynamicFormField = function DynamicFormField(props) {
|
|
11380
11383
|
}
|
11381
11384
|
function renderByFormat() {
|
11382
11385
|
var label = required ? field.label + " *" : field.label;
|
11383
|
-
var readOnly = field.readOnly || field.editable === false;
|
11384
11386
|
var _field$position = field.position,
|
11385
11387
|
position = _field$position === void 0 ? "bottom" : _field$position;
|
11386
11388
|
switch (format) {
|
@@ -11467,8 +11469,9 @@ var DynamicFormField = function DynamicFormField(props) {
|
|
11467
11469
|
return renderByFormat();
|
11468
11470
|
}
|
11469
11471
|
}
|
11472
|
+
var className = "dynamic-form-field " + (readOnly ? "readonly" : "");
|
11470
11473
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
11471
|
-
className:
|
11474
|
+
className: className
|
11472
11475
|
}, renderByType());
|
11473
11476
|
};
|
11474
11477
|
|