ywana-core8 0.0.413 → 0.0.416
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 +3 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +3 -10
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +3 -10
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/ContentEditor.js +1 -1
- package/src/domain/ContentEditor.test.js +2 -1
- package/src/domain/ContentType.js +1 -1
- package/src/domain/TablePage.js +0 -4
- package/src/html/table.js +0 -1
package/dist/index.cjs
CHANGED
@@ -1303,7 +1303,7 @@ var ContentType = /*#__PURE__*/function () {
|
|
1303
1303
|
var id = _ref4[0],
|
1304
1304
|
field = _ref4[1];
|
1305
1305
|
form[id] = Object.assign({}, field, {
|
1306
|
-
value: data[id]
|
1306
|
+
value: data[id] || field.defValue
|
1307
1307
|
});
|
1308
1308
|
return form;
|
1309
1309
|
}, {});
|
@@ -1855,7 +1855,6 @@ var StringCellViewer = function StringCellViewer(_ref7) {
|
|
1855
1855
|
break;
|
1856
1856
|
}
|
1857
1857
|
|
1858
|
-
console.log(value, format);
|
1859
1858
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
1860
1859
|
className: "field-editor string-viewer"
|
1861
1860
|
}, text);
|
@@ -4161,7 +4160,8 @@ var StringEditor = function StringEditor(_ref6) {
|
|
4161
4160
|
label: label,
|
4162
4161
|
onChange: change,
|
4163
4162
|
readOnly: !editable,
|
4164
|
-
options: buildOptions()
|
4163
|
+
options: buildOptions(),
|
4164
|
+
init: value
|
4165
4165
|
});
|
4166
4166
|
|
4167
4167
|
default:
|
@@ -5774,13 +5774,6 @@ var TableFilters = function TableFilters(props) {
|
|
5774
5774
|
for (var key in fs) {
|
5775
5775
|
if (fs[key].filter === false) delete fs[key];
|
5776
5776
|
}
|
5777
|
-
} // TODO: check this
|
5778
|
-
|
5779
|
-
|
5780
|
-
if (filterSchema[key].defValue) {
|
5781
|
-
var _change;
|
5782
|
-
|
5783
|
-
change((_change = {}, _change[key] = filterSchema[key].defValue, _change));
|
5784
5777
|
}
|
5785
5778
|
}
|
5786
5779
|
} //Object.values(filterSchema).forEach(field => field.section = null)
|