ywana-core8 0.0.363 → 0.0.364

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.363",
3
+ "version": "0.0.364",
4
4
  "description": "ywana-core8",
5
5
  "author": "Ernesto Roldan Garcia",
6
6
  "license": "MIT",
@@ -27,7 +27,7 @@ export const ContentViewer = (props) => {
27
27
  {title}
28
28
  </header>
29
29
  <main>
30
- { fields.map( field => <FieldViewer key={field.id} field={field} value={value[field.id]} />)}
30
+ {fields.map(field => <FieldViewer key={field.id} field={field} value={value[field.id]} />)}
31
31
  </main>
32
32
  </section>
33
33
  )
@@ -44,12 +44,12 @@ export const ContentViewer = (props) => {
44
44
  */
45
45
  const FieldViewer = (props) => {
46
46
 
47
- const { field, value } = props
48
- const { id, type, item, label, visible =true } = field
49
-
47
+ const { field, value } = props
48
+ const { type, label, visible = true } = field
49
+
50
50
  if (!visible) return null
51
51
 
52
- switch(type) {
52
+ switch (type) {
53
53
  case TYPES.STRING:
54
54
  return <Property label={label} value={value} />
55
55
  case TYPES.ENTITY:
@@ -74,7 +74,7 @@ const EntityViewer = (props) => {
74
74
  {label}
75
75
  </header>
76
76
  <main>
77
- { fields.map( field => <FieldViewer field={field} value={value[field.id]} /> )}
77
+ {fields.map(field => <FieldViewer field={field} value={value[field.id]} />)}
78
78
  </main>
79
79
  </div>
80
80
  )
@@ -431,10 +431,10 @@ export const TableEditor = (props) => {
431
431
 
432
432
  table.columns.push({ id: "actions" })
433
433
  const groupSize = groups[groupName].length
434
-
434
+ const title = <span><span className="size">{groupSize}</span>{renderGroupLabel(groupName)}</span>
435
435
  return (
436
436
  <Fragment key={groupName}>
437
- <Header title={renderGroupLabel(groupName)} >
437
+ <Header title={title} >
438
438
  <span className="size">{groupSize}</span>
439
439
  </Header>
440
440
  <DataTable {...table} onRowSelection={select} editable={editable} onCheckAll={check} />