ywana-core8 0.0.177 → 0.0.181
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 +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +2 -0
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +5 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +5 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/ContentEditor.js +7 -2
- package/src/html/textfield-outlined.css +1 -0
- package/src/html/textfield.css +1 -0
package/dist/index.cjs
CHANGED
@@ -2716,6 +2716,7 @@ var TabbedContentEditor = function TabbedContentEditor(_ref2) {
|
|
2716
2716
|
}
|
2717
2717
|
|
2718
2718
|
var sections = content.sections();
|
2719
|
+
console.log("TabbedContentEditor", sections);
|
2719
2720
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
2720
2721
|
className: "content-editor tabbed"
|
2721
2722
|
}, /*#__PURE__*/React__default["default"].createElement(Tabs, {
|
@@ -2850,12 +2851,14 @@ var FieldEditor = function FieldEditor(_ref4) {
|
|
2850
2851
|
}
|
2851
2852
|
|
2852
2853
|
function renderField() {
|
2853
|
-
var value1 = field.value ? field.value : field["default"];
|
2854
|
+
var value1 = field.value || field.value === "" ? field.value : field["default"];
|
2854
2855
|
var isHidden = CHECK['isFunction'](hidden) ? hidden(field, value1) : hidden;
|
2855
2856
|
|
2856
2857
|
if (isHidden) {
|
2857
2858
|
return null;
|
2858
2859
|
} else {
|
2860
|
+
console.log("FieldEditor: ", label, value1);
|
2861
|
+
|
2859
2862
|
switch (type) {
|
2860
2863
|
case TYPES.ENTITY:
|
2861
2864
|
return /*#__PURE__*/React__default["default"].createElement(EntityEditor, {
|
@@ -3028,7 +3031,7 @@ var NumberEditor = function NumberEditor(_ref7) {
|
|
3028
3031
|
if (onChange) onChange(id, value);
|
3029
3032
|
}
|
3030
3033
|
|
3031
|
-
var val = value || field["default"];
|
3034
|
+
var val = value || value === "" ? value : field["default"];
|
3032
3035
|
var min = field.min;
|
3033
3036
|
var max = field.max;
|
3034
3037
|
var disabled = !editable;
|