ywana-core8 0.0.520 → 0.0.523
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 +11 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +11 -7
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +11 -7
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TabbedTablePage.js +8 -7
- package/src/domain/TablePage.js +8 -1
- package/src/html/table.js +1 -1
package/package.json
CHANGED
@@ -446,6 +446,14 @@ export const TableEditor = (props) => {
|
|
446
446
|
|
447
447
|
function renderGroups() {
|
448
448
|
const items = filter ? filter(all) : all
|
449
|
+
|
450
|
+
if (items.length === 0) return (
|
451
|
+
<div className='empty-message'>
|
452
|
+
<Icon icon="search_off" />
|
453
|
+
<Text>No Result Found</Text>
|
454
|
+
</div>
|
455
|
+
)
|
456
|
+
|
449
457
|
const groups = items.reduce((groups, item) => {
|
450
458
|
const groupName = item[groupBy]
|
451
459
|
const group = groups[groupName]
|
@@ -454,13 +462,6 @@ export const TableEditor = (props) => {
|
|
454
462
|
return groups
|
455
463
|
}, {})
|
456
464
|
|
457
|
-
if (groups.length === 0) return (
|
458
|
-
<div className='empty-message'>
|
459
|
-
<Icon icon="search_off" />
|
460
|
-
<Text>No Result Found</Text>
|
461
|
-
</div>
|
462
|
-
)
|
463
|
-
|
464
465
|
return Object.keys(groups).map(groupName => {
|
465
466
|
const table = {
|
466
467
|
columns: Object.values(schema)
|
package/src/domain/TablePage.js
CHANGED
@@ -90,7 +90,6 @@ export const TablePage = (props) => {
|
|
90
90
|
}
|
91
91
|
|
92
92
|
async function save() {
|
93
|
-
console.log('saving.....')
|
94
93
|
await pageContext.update(form)
|
95
94
|
setPageContext(Object.assign({}, pageContext))
|
96
95
|
}
|
@@ -412,6 +411,14 @@ export const TableEditor = (props) => {
|
|
412
411
|
|
413
412
|
function renderGroups() {
|
414
413
|
const items = filter ? filter(all) : all
|
414
|
+
|
415
|
+
if (items.length === 0) return (
|
416
|
+
<div className='empty-message'>
|
417
|
+
<Icon icon="search_off" />
|
418
|
+
<Text>No Result Found</Text>
|
419
|
+
</div>
|
420
|
+
)
|
421
|
+
|
415
422
|
const groups = items.reduce((groups, item) => {
|
416
423
|
const groupName = item[groupBy]
|
417
424
|
const group = groups[groupName]
|
package/src/html/table.js
CHANGED
@@ -115,7 +115,7 @@ export const DataTable = (props) => {
|
|
115
115
|
<DataTableRow key={row.id} row={row} columns={columns} onSelect={select} onDrop={moveRow} editable={editable} expanded={expanded} />
|
116
116
|
)) : (
|
117
117
|
<tr>
|
118
|
-
<td colSpan={
|
118
|
+
<td colSpan={1000}>
|
119
119
|
<div className='empty-message'>
|
120
120
|
<Icon icon="search_off" />
|
121
121
|
<Text>No Result Found</Text>
|