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 +7 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +7 -8
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +7 -8
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/table.js +2 -1
- package/src/html/textfield.js +3 -3
package/dist/index.modern.js
CHANGED
@@ -929,10 +929,6 @@ var DropDown = function DropDown(props) {
|
|
929
929
|
label = _useState2[0],
|
930
930
|
setLabel = _useState2[1];
|
931
931
|
|
932
|
-
var _useState3 = useState(),
|
933
|
-
filter = _useState3[0],
|
934
|
-
setFilter = _useState3[1];
|
935
|
-
|
936
932
|
useEffect(function () {
|
937
933
|
if (Array.isArray(options)) {
|
938
934
|
var option = options.find(function (option) {
|
@@ -946,7 +942,7 @@ var DropDown = function DropDown(props) {
|
|
946
942
|
console.log('dropdown change > canFilter:', canFilter, id, value);
|
947
943
|
|
948
944
|
if (canFilter) {
|
949
|
-
|
945
|
+
setLabel(value);
|
950
946
|
} else {
|
951
947
|
if (onChange) onChange(id, value);
|
952
948
|
}
|
@@ -980,8 +976,9 @@ var DropDown = function DropDown(props) {
|
|
980
976
|
if (canShow) {
|
981
977
|
var filterActive = canFilter && label && label.length > 0;
|
982
978
|
var items = filterActive ? options.filter(function (option) {
|
983
|
-
return
|
979
|
+
return option.label.toUpperCase().indexOf(label.toUpperCase()) >= 0;
|
984
980
|
}) : options;
|
981
|
+
console.log('filterActive: ', filterActive, label, items.length);
|
985
982
|
var lis = items.map(function (option) {
|
986
983
|
return /*#__PURE__*/React.createElement("li", {
|
987
984
|
key: option.value,
|
@@ -1321,14 +1318,16 @@ var BooleanCellViewer = function BooleanCellViewer(_ref3) {
|
|
1321
1318
|
|
1322
1319
|
|
1323
1320
|
var StringCellViewer = function StringCellViewer(_ref4) {
|
1324
|
-
var
|
1321
|
+
var id = _ref4.id,
|
1322
|
+
value = _ref4.value,
|
1325
1323
|
options = _ref4.options;
|
1324
|
+
console.log('string-cell-viewer', id, value, options);
|
1326
1325
|
var option = options ? options.find(function (o) {
|
1327
1326
|
return o.value === value;
|
1328
1327
|
}) : null;
|
1329
1328
|
var text = option ? option.label : value;
|
1330
1329
|
return /*#__PURE__*/React.createElement("div", {
|
1331
|
-
className: "field-editor string-
|
1330
|
+
className: "field-editor string-viewer"
|
1332
1331
|
}, text);
|
1333
1332
|
};
|
1334
1333
|
/**
|