ywana-core8 0.0.140 → 0.0.144

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 CHANGED
@@ -936,10 +936,6 @@ var DropDown = function DropDown(props) {
936
936
  label = _useState2[0],
937
937
  setLabel = _useState2[1];
938
938
 
939
- var _useState3 = React.useState(),
940
- filter = _useState3[0],
941
- setFilter = _useState3[1];
942
-
943
939
  React.useEffect(function () {
944
940
  if (Array.isArray(options)) {
945
941
  var option = options.find(function (option) {
@@ -953,7 +949,7 @@ var DropDown = function DropDown(props) {
953
949
  console.log('dropdown change > canFilter:', canFilter, id, value);
954
950
 
955
951
  if (canFilter) {
956
- setFilter(value);
952
+ setLabel(value);
957
953
  } else {
958
954
  if (onChange) onChange(id, value);
959
955
  }
@@ -987,8 +983,9 @@ var DropDown = function DropDown(props) {
987
983
  if (canShow) {
988
984
  var filterActive = canFilter && label && label.length > 0;
989
985
  var items = filterActive ? options.filter(function (option) {
990
- return canFilter === false || filter.toUpperCase().indexOf(option.label.toUpperCase()) >= 0;
986
+ return option.label.toUpperCase().indexOf(label.toUpperCase()) >= 0;
991
987
  }) : options;
988
+ console.log('filterActive: ', filterActive, label, items.length);
992
989
  var lis = items.map(function (option) {
993
990
  return /*#__PURE__*/React__default["default"].createElement("li", {
994
991
  key: option.value,
@@ -1328,14 +1325,16 @@ var BooleanCellViewer = function BooleanCellViewer(_ref3) {
1328
1325
 
1329
1326
 
1330
1327
  var StringCellViewer = function StringCellViewer(_ref4) {
1331
- var value = _ref4.value,
1328
+ var id = _ref4.id,
1329
+ value = _ref4.value,
1332
1330
  options = _ref4.options;
1331
+ console.log('string-cell-viewer', id, value, options);
1333
1332
  var option = options ? options.find(function (o) {
1334
1333
  return o.value === value;
1335
1334
  }) : null;
1336
1335
  var text = option ? option.label : value;
1337
1336
  return /*#__PURE__*/React__default["default"].createElement("div", {
1338
- className: "field-editor string-editor"
1337
+ className: "field-editor string-viewer"
1339
1338
  }, text);
1340
1339
  };
1341
1340
  /**