ywana-core8 0.0.481 → 0.0.482

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.481",
3
+ "version": "0.0.482",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -26,6 +26,7 @@ export const TabbedTablePage = (props) => {
26
26
  canQuery = false, urlQuery, user,
27
27
  groupBy, validator, scenario,
28
28
  formFilter, tableFilter, editorFilter = false,
29
+ tableClassName,
29
30
  children
30
31
  } = props
31
32
 
@@ -178,7 +179,7 @@ export const TabbedTablePage = (props) => {
178
179
  </menu>
179
180
  ) : null}
180
181
  <main key={id} className="table-page">
181
- <TableEditor icon={icon} title={name} tabs={renderTabs()} schema={schema} delay={delay} editable={editable} groupBy={groupBy} filter={tableFilter} actions={tableActions} canDelete={canDelete} />
182
+ <TableEditor icon={icon} title={name} tabs={renderTabs()} schema={schema} delay={delay} editable={editable} groupBy={groupBy} filter={tableFilter} actions={tableActions} canDelete={canDelete} className={tableClassName}/>
182
183
  {children ? <article>{children}</article> : null}
183
184
  </main>
184
185
  {renderAside()}
@@ -380,7 +381,7 @@ export const TableEditor = (props) => {
380
381
  const site = useContext(SiteContext)
381
382
  const [pageContext, setPageContext] = useContext(PageContext)
382
383
  const { all = [], filters } = pageContext
383
- const { icon, title, schema, editable, canDelete, filter, actions, tabs } = props
384
+ const { icon, title, schema, editable, canDelete, filter, actions, tabs, className } = props
384
385
  const [groupBy, setGroupBy] = useState(props.groupBy)
385
386
 
386
387
  function changeGroup(id, value) {
@@ -491,7 +492,7 @@ export const TableEditor = (props) => {
491
492
  <Header title={title} >
492
493
  <span className="size">{groupSize}</span>
493
494
  </Header>
494
- <DataTable {...table} onRowSelection={select} editable={editable} onCheckAll={check} />
495
+ <DataTable {...table} onRowSelection={select} editable={editable} onCheckAll={check} className={className}/>
495
496
  </Fragment>
496
497
  )
497
498
  })
@@ -128,7 +128,7 @@ const Page3 = (props) => {
128
128
 
129
129
  return (
130
130
  <Fragment>
131
- <TablePage title="Referencias" schema={schema} host="http://localhost:3000" url="/references" canFilter={true} tableClassName="condensed"/>
131
+ <TabbedTablePage title="Referencias" schema={schema} host="http://localhost:3000" url="/references" canFilter={true} tableClassName="condensed"/>
132
132
  </Fragment>
133
133
  )
134
134
  }