ywana-core8 0.0.170 → 0.0.174
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 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +4 -3
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +7 -5
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +7 -5
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/ContentEditor.js +4 -0
- package/src/html/textfield.css +2 -1
- package/src/html/textfield.js +4 -4
- package/src/html/tree.css +2 -2
package/dist/index.cjs
CHANGED
@@ -914,7 +914,7 @@ var TextField = function TextField(props) {
|
|
914
914
|
onKeyDown: onKeyPress,
|
915
915
|
onFocus: focus,
|
916
916
|
readOnly: readOnly
|
917
|
-
}), canClear ? /*#__PURE__*/React__default["default"].createElement(Icon, {
|
917
|
+
}), canClear && value && value.length > 0 ? /*#__PURE__*/React__default["default"].createElement(Icon, {
|
918
918
|
icon: "close",
|
919
919
|
clickable: true,
|
920
920
|
size: "small",
|
@@ -952,13 +952,14 @@ var DropDown = function DropDown(props) {
|
|
952
952
|
var option = options.find(function (option) {
|
953
953
|
return option.value === value;
|
954
954
|
});
|
955
|
-
|
955
|
+
|
956
|
+
var _label = option ? option.label : "";
|
957
|
+
|
958
|
+
setLabel(_label);
|
956
959
|
}
|
957
960
|
}, [value]);
|
958
961
|
|
959
962
|
function change(id, value) {
|
960
|
-
console.log('dropdown change > canFilter:', canFilter, id, value);
|
961
|
-
|
962
963
|
if (canFilter) {
|
963
964
|
setLabel(value);
|
964
965
|
} else {
|
@@ -993,7 +994,6 @@ var DropDown = function DropDown(props) {
|
|
993
994
|
|
994
995
|
if (canShow) {
|
995
996
|
var filterActive = canFilter === true && label && label.length > 0;
|
996
|
-
console.log('Dropdown filterActive', filterActive, canFilter, label);
|
997
997
|
var items = filterActive ? options.filter(function (option) {
|
998
998
|
return option.label.toUpperCase().indexOf(label.toUpperCase()) >= 0;
|
999
999
|
}) : options;
|
@@ -2981,6 +2981,7 @@ var StringEditor = function StringEditor(_ref6) {
|
|
2981
2981
|
return opts;
|
2982
2982
|
}
|
2983
2983
|
|
2984
|
+
console.log('StringEditor: ', label, value);
|
2984
2985
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
2985
2986
|
className: "field-editor string-editor"
|
2986
2987
|
}, format === FORMATS.DATE ? /*#__PURE__*/React__default["default"].createElement(TextField, {
|
@@ -3030,6 +3031,7 @@ var NumberEditor = function NumberEditor(_ref7) {
|
|
3030
3031
|
var min = field.min;
|
3031
3032
|
var max = field.max;
|
3032
3033
|
var disabled = !editable;
|
3034
|
+
console.log('StringEditor: ', label, val, value);
|
3033
3035
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
3034
3036
|
className: "field-editor number-editor"
|
3035
3037
|
}, /*#__PURE__*/React__default["default"].createElement(TextField, {
|