ywana-core8 0.0.926 → 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.
@@ -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,8 @@ 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;
11377
+ var _field$position = field.position,
11378
+ position = _field$position === void 0 ? "bottom" : _field$position;
11375
11379
  switch (format) {
11376
11380
  case FORMATS.TEXT:
11377
11381
  return /*#__PURE__*/React.createElement(TextArea, {
@@ -11431,7 +11435,8 @@ var DynamicFormField = function DynamicFormField(props) {
11431
11435
  onChange: change,
11432
11436
  options: buildOptions(),
11433
11437
  outlined: true,
11434
- readOnly: readOnly
11438
+ readOnly: readOnly,
11439
+ position: position
11435
11440
  }) : /*#__PURE__*/React.createElement(TextField, {
11436
11441
  id: id,
11437
11442
  label: label,
@@ -11455,8 +11460,9 @@ var DynamicFormField = function DynamicFormField(props) {
11455
11460
  return renderByFormat();
11456
11461
  }
11457
11462
  }
11463
+ var className = "dynamic-form-field " + (readOnly ? "readonly" : "");
11458
11464
  return /*#__PURE__*/React.createElement("div", {
11459
- className: "dynamic-form-field"
11465
+ className: className
11460
11466
  }, renderByType());
11461
11467
  };
11462
11468