ywana-core8 0.0.521 → 0.0.524

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.521",
3
+ "version": "0.0.524",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -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={columns.length+1}>
118
+ <td colSpan={1000}>
119
119
  <div className='empty-message'>
120
120
  <Icon icon="search_off" />
121
121
  <Text>No Result Found</Text>
@@ -168,7 +168,7 @@ export const DropDown = (props) => {
168
168
  if (canShow) {
169
169
  const filterActive = predictive === true && label && label.length > 0
170
170
  const items = filterActive ? options.filter(option => option.label.toUpperCase().indexOf(label.toUpperCase()) >= 0) : options
171
- const lis = items.map(option => <li key={option.value} value={option.value}>{option.label}</li>)
171
+ const lis = items.map(option => <li key={option.value} value={option.value}><Text>{option.label}</Text></li>)
172
172
  return <menu><ul onMouseDown={select}>{lis}</ul></menu>
173
173
  } else {
174
174
  return null