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/package.json
CHANGED
@@ -303,7 +303,9 @@ export const CollectionTree = (props) => {
|
|
303
303
|
}
|
304
304
|
|
305
305
|
function renderNodes(nodes) {
|
306
|
-
return nodes
|
306
|
+
return nodes
|
307
|
+
.sort((a, b) => a.name.localeCompare(b.name))
|
308
|
+
.map(node => {
|
307
309
|
const title = typeof node.name === 'boolean' ? `${node.field} = ${node.name}` : node.title
|
308
310
|
return (
|
309
311
|
<TreeNode key={node.name} icon={null} label={title} open={true}>
|
package/src/html/table.js
CHANGED
@@ -260,7 +260,9 @@ const NumberCellViewer = ({ id, value, format, maxDecimals }) => {
|
|
260
260
|
}
|
261
261
|
} else {
|
262
262
|
const decimals = maxDecimals ? maxDecimals : 2
|
263
|
-
|
263
|
+
if (typeof value === "string") {
|
264
|
+
value = parseFloat(value)
|
265
|
+
}
|
264
266
|
return (value && !isNaN(value)) ? <span>{value.toFixed(decimals)}</span> : ""
|
265
267
|
}
|
266
268
|
}
|