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/dist/index.cjs +4 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +4 -10
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +4 -10
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TablePage.js +12 -12
package/package.json
CHANGED
package/src/domain/TablePage.js
CHANGED
@@ -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(
|
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
|
211
|
-
|
212
|
-
|
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 (
|