ywana-core8 0.0.362 → 0.0.365

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.
@@ -946,6 +946,19 @@ var TextField = function TextField(props) {
946
946
  }
947
947
 
948
948
  function focus() {
949
+ console.log("FOCUS");
950
+
951
+ if (site && site.changeFocus) {
952
+ site.changeFocus({
953
+ lose: function lose() {// DO NOTHING
954
+ }
955
+ });
956
+ }
957
+ }
958
+
959
+ function focusOut() {
960
+ console.log("FOCUS OUT");
961
+
949
962
  if (site && site.changeFocus) {
950
963
  site.changeFocus({
951
964
  lose: function lose() {// DO NOTHING
@@ -974,6 +987,7 @@ var TextField = function TextField(props) {
974
987
  onChange: change,
975
988
  onKeyDown: onKeyPress,
976
989
  onFocus: focus,
990
+ onBlur: focusOut,
977
991
  readOnly: readOnly
978
992
  }), !readOnly && canClear && value && value.length > 0 ? /*#__PURE__*/React.createElement(Icon, {
979
993
  icon: "close",
@@ -5142,10 +5156,11 @@ var ContentViewer = function ContentViewer(props) {
5142
5156
  var FieldViewer = function FieldViewer(props) {
5143
5157
  var field = props.field,
5144
5158
  value = props.value;
5145
- var id = field.id,
5146
- type = field.type,
5147
- label = field.label;
5148
- if (id === "id") return null;
5159
+ var type = field.type,
5160
+ label = field.label,
5161
+ _field$visible = field.visible,
5162
+ visible = _field$visible === void 0 ? true : _field$visible;
5163
+ if (!visible) return null;
5149
5164
 
5150
5165
  switch (type) {
5151
5166
  case TYPES.STRING:
@@ -5898,10 +5913,13 @@ var TableEditor = function TableEditor(props) {
5898
5913
  id: "actions"
5899
5914
  });
5900
5915
  var groupSize = groups[groupName].length;
5916
+ var title = /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("span", {
5917
+ className: "size"
5918
+ }, groupSize), renderGroupLabel(groupName));
5901
5919
  return /*#__PURE__*/React.createElement(Fragment, {
5902
5920
  key: groupName
5903
5921
  }, /*#__PURE__*/React.createElement(Header, {
5904
- title: renderGroupLabel(groupName)
5922
+ title: title
5905
5923
  }, /*#__PURE__*/React.createElement("span", {
5906
5924
  className: "size"
5907
5925
  }, groupSize)), /*#__PURE__*/React.createElement(DataTable, _extends({}, table, {