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.modern.js
CHANGED
@@ -2182,7 +2182,11 @@ var NumberCellViewer = function NumberCellViewer(_ref7) {
|
|
2182
2182
|
return /*#__PURE__*/React.createElement("span", null, value);
|
2183
2183
|
}
|
2184
2184
|
} else {
|
2185
|
-
var decimals = maxDecimals ? maxDecimals : 2;
|
2185
|
+
var decimals = maxDecimals ? maxDecimals : 2;
|
2186
|
+
|
2187
|
+
if (typeof value === "string") {
|
2188
|
+
value = parseFloat(value);
|
2189
|
+
}
|
2186
2190
|
|
2187
2191
|
return value && !isNaN(value) ? /*#__PURE__*/React.createElement("span", null, value.toFixed(decimals)) : "";
|
2188
2192
|
}
|
@@ -6508,7 +6512,9 @@ var CollectionTree = function CollectionTree(props) {
|
|
6508
6512
|
}
|
6509
6513
|
|
6510
6514
|
function renderNodes(nodes) {
|
6511
|
-
return nodes.
|
6515
|
+
return nodes.sort(function (a, b) {
|
6516
|
+
return a.name.localeCompare(b.name);
|
6517
|
+
}).map(function (node) {
|
6512
6518
|
var title = typeof node.name === 'boolean' ? node.field + " = " + node.name : node.title;
|
6513
6519
|
return /*#__PURE__*/React.createElement(TreeNode, {
|
6514
6520
|
key: node.name,
|