ywana-core8 0.0.761 → 0.0.763
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 +8 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +8 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +8 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/CollectionPage.js +3 -1
- package/src/html/table.js +3 -1
package/dist/index.cjs
CHANGED
@@ -2190,7 +2190,11 @@ var NumberCellViewer = function NumberCellViewer(_ref7) {
|
|
2190
2190
|
return /*#__PURE__*/React__default["default"].createElement("span", null, value);
|
2191
2191
|
}
|
2192
2192
|
} else {
|
2193
|
-
var decimals = maxDecimals ? maxDecimals : 2;
|
2193
|
+
var decimals = maxDecimals ? maxDecimals : 2;
|
2194
|
+
|
2195
|
+
if (typeof value === "string") {
|
2196
|
+
value = parseFloat(value);
|
2197
|
+
}
|
2194
2198
|
|
2195
2199
|
return value && !isNaN(value) ? /*#__PURE__*/React__default["default"].createElement("span", null, value.toFixed(decimals)) : "";
|
2196
2200
|
}
|
@@ -6516,7 +6520,9 @@ var CollectionTree = function CollectionTree(props) {
|
|
6516
6520
|
}
|
6517
6521
|
|
6518
6522
|
function renderNodes(nodes) {
|
6519
|
-
return nodes.
|
6523
|
+
return nodes.sort(function (a, b) {
|
6524
|
+
return a.name.localeCompare(b.name);
|
6525
|
+
}).map(function (node) {
|
6520
6526
|
var title = typeof node.name === 'boolean' ? node.field + " = " + node.name : node.title;
|
6521
6527
|
return /*#__PURE__*/React__default["default"].createElement(TreeNode, {
|
6522
6528
|
key: node.name,
|