ywana-core8 0.0.461 → 0.0.464

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.461",
3
+ "version": "0.0.464",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -190,27 +190,27 @@ const TableSelector = (props) => {
190
190
 
191
191
  const columns = Object.keys(schema)
192
192
  .filter(key => schema[key].selectorColumn === true)
193
- .map(field => ({id: field.id, label: field.label }))
193
+ .map(key => {
194
+ const field = schema[key]
195
+ return {id: field.id, label: field.label }
196
+ })
194
197
 
195
198
  console.log("TableSelector ",columns, schema)
196
199
 
197
200
  const rows = all.filter(item => checked.has(item.id))
198
201
  const table = {
199
202
  columns,
200
- /*
201
- columns: [
202
- { id: "id", label: "ID" },
203
- { id: "idMatricula", label: "ID Matricula" },
204
- { id: "flow", "Circuito"},
205
- ],
206
- */
207
203
  rows: rows || []
208
204
  }
209
205
  const buttons = actions.map(({ label, action }) => {
210
- return <Button label={label} raised action={() => action(checked, pageContext, async () => {
211
- await pageContext.load()
212
- setPageContext(Object.assign({}, pageContext))
213
- })} />
206
+ return <Button
207
+ label={label} raised
208
+ action={() => action(checked, pageContext, async () => {
209
+ await pageContext.load()
210
+ setPageContext(Object.assign({}, pageContext))
211
+ })}
212
+ disabled={!action.validate(checked)}
213
+ />
214
214
  })
215
215
 
216
216
  return (