ywana-core8 0.0.72 → 0.0.73

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.
@@ -2735,7 +2735,6 @@ var FieldEditor = function FieldEditor(_ref4) {
2735
2735
  type = field.type,
2736
2736
  item = field.item,
2737
2737
  label = field.label,
2738
- editable = field.editable,
2739
2738
  options = field.options;
2740
2739
 
2741
2740
  function change(id, value) {
@@ -2771,17 +2770,6 @@ var FieldEditor = function FieldEditor(_ref4) {
2771
2770
  onChange: change
2772
2771
  });
2773
2772
 
2774
- case TYPES.DATE:
2775
- return /*#__PURE__*/React.createElement(TextField, {
2776
- outlined: outlined,
2777
- id: id,
2778
- type: "date",
2779
- label: label,
2780
- value: value1,
2781
- onChange: change,
2782
- disabled: editable
2783
- });
2784
-
2785
2773
  case TYPES.NUMBER:
2786
2774
  return /*#__PURE__*/React.createElement(NumberEditor, {
2787
2775
  outlined: outlined,
@@ -2863,6 +2851,7 @@ var StringEditor = function StringEditor(_ref6) {
2863
2851
  content = _ref6.content,
2864
2852
  outlined = _ref6.outlined;
2865
2853
  var id = field.id,
2854
+ format = field.format,
2866
2855
  label = field.label,
2867
2856
  options = field.options,
2868
2857
  _field$editable = field.editable,
@@ -2879,26 +2868,29 @@ var StringEditor = function StringEditor(_ref6) {
2879
2868
 
2880
2869
  return /*#__PURE__*/React.createElement("div", {
2881
2870
  className: "field-editor string-editor"
2882
- }, editable ? options ? /*#__PURE__*/React.createElement(DropDown, {
2871
+ }, format === FORMATS.DATE ? /*#__PURE__*/React.createElement(TextField, {
2883
2872
  outlined: outlined,
2884
2873
  id: id,
2874
+ type: "date",
2885
2875
  label: label,
2886
2876
  value: value,
2887
2877
  onChange: change,
2888
- options: buildOptions()
2889
- }) : /*#__PURE__*/React.createElement(TextField, {
2878
+ readOnly: !editable
2879
+ }) : options ? /*#__PURE__*/React.createElement(DropDown, {
2890
2880
  outlined: outlined,
2891
2881
  id: id,
2892
2882
  label: label,
2893
2883
  value: value,
2894
- onChange: change
2884
+ onChange: change,
2885
+ options: buildOptions(),
2886
+ readOnly: !editable
2895
2887
  }) : /*#__PURE__*/React.createElement(TextField, {
2896
2888
  outlined: outlined,
2897
2889
  id: id,
2898
2890
  label: label,
2899
2891
  value: value,
2900
2892
  onChange: change,
2901
- readOnly: true
2893
+ readOnly: !editable
2902
2894
  }));
2903
2895
  };
2904
2896
  /**