ywana-core8 0.0.172 → 0.0.176

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.
@@ -907,7 +907,7 @@ var TextField = function TextField(props) {
907
907
  onKeyDown: onKeyPress,
908
908
  onFocus: focus,
909
909
  readOnly: readOnly
910
- }), canClear ? /*#__PURE__*/React.createElement(Icon, {
910
+ }), canClear && value && value.length > 0 ? /*#__PURE__*/React.createElement(Icon, {
911
911
  icon: "close",
912
912
  clickable: true,
913
913
  size: "small",
@@ -945,13 +945,14 @@ var DropDown = function DropDown(props) {
945
945
  var option = options.find(function (option) {
946
946
  return option.value === value;
947
947
  });
948
- if (option) setLabel(option.label);
948
+
949
+ var _label = option ? option.label : "";
950
+
951
+ setLabel(_label);
949
952
  }
950
953
  }, [value]);
951
954
 
952
955
  function change(id, value) {
953
- console.log('dropdown change > canFilter:', canFilter, id, value);
954
-
955
956
  if (canFilter) {
956
957
  setLabel(value);
957
958
  } else {
@@ -986,7 +987,6 @@ var DropDown = function DropDown(props) {
986
987
 
987
988
  if (canShow) {
988
989
  var filterActive = canFilter === true && label && label.length > 0;
989
- console.log('Dropdown filterActive', filterActive, canFilter, label);
990
990
  var items = filterActive ? options.filter(function (option) {
991
991
  return option.label.toUpperCase().indexOf(label.toUpperCase()) >= 0;
992
992
  }) : options;
@@ -2934,7 +2934,7 @@ var EntityEditor = function EntityEditor(_ref5) {
2934
2934
  });
2935
2935
  return /*#__PURE__*/React.createElement("div", {
2936
2936
  className: "entity-editor"
2937
- }, /*#__PURE__*/React.createElement("header", null, /*#__PURE__*/React.createElement(Text, {
2937
+ }, /*#__PURE__*/React.createElement("header", null, "\u2202", /*#__PURE__*/React.createElement(Text, {
2938
2938
  use: "caption"
2939
2939
  }, label)), /*#__PURE__*/React.createElement("main", null, fields.map(function (field) {
2940
2940
  return /*#__PURE__*/React.createElement(FieldEditor, {
@@ -2974,7 +2974,6 @@ var StringEditor = function StringEditor(_ref6) {
2974
2974
  return opts;
2975
2975
  }
2976
2976
 
2977
- console.log('StringEditor: ', label, value, content);
2978
2977
  return /*#__PURE__*/React.createElement("div", {
2979
2978
  className: "field-editor string-editor"
2980
2979
  }, format === FORMATS.DATE ? /*#__PURE__*/React.createElement(TextField, {
@@ -3010,7 +3009,9 @@ var StringEditor = function StringEditor(_ref6) {
3010
3009
  var NumberEditor = function NumberEditor(_ref7) {
3011
3010
  var field = _ref7.field,
3012
3011
  value = _ref7.value,
3013
- onChange = _ref7.onChange;
3012
+ onChange = _ref7.onChange,
3013
+ _ref7$outlined = _ref7.outlined,
3014
+ outlined = _ref7$outlined === void 0 ? false : _ref7$outlined;
3014
3015
  var id = field.id,
3015
3016
  label = field.label,
3016
3017
  _field$editable2 = field.editable,
@@ -3024,10 +3025,11 @@ var NumberEditor = function NumberEditor(_ref7) {
3024
3025
  var min = field.min;
3025
3026
  var max = field.max;
3026
3027
  var disabled = !editable;
3028
+ console.log('NumberEditor: ', label, val, value);
3027
3029
  return /*#__PURE__*/React.createElement("div", {
3028
3030
  className: "field-editor number-editor"
3029
3031
  }, /*#__PURE__*/React.createElement(TextField, {
3030
- outlined: true,
3032
+ outlined: outlined,
3031
3033
  id: id,
3032
3034
  label: label,
3033
3035
  type: "NUMBER",