ywana-core8 0.0.456 → 0.0.459

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.456",
3
+ "version": "0.0.459",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -48,8 +48,6 @@ const FieldViewer = (props) => {
48
48
  const { type, item, label, visible = true, optional } = field
49
49
 
50
50
  if (!visible) return null
51
-
52
- console.log("FieldViewer Optional",field, value, optional && value === null)
53
51
  if (optional && value === undefined ) return null;
54
52
 
55
53
  switch (type) {
@@ -187,12 +187,21 @@ const TableSelector = (props) => {
187
187
  const { all, checked } = pageContext
188
188
 
189
189
  const count = `${checked.size}/${all.length}`
190
+
191
+ const columns = Object.keys(schema)
192
+ .filter(key => schema[key].selectorColumn === true)
193
+ .map(field => {id: field.id, label: field.label })
194
+
190
195
  const rows = all.filter(item => checked.has(item.id))
191
196
  const table = {
192
- columns: [
193
- { id: "id", label: "ID" },
194
- { id: "idMatricula", label: "ID Matricula" },
195
- ],
197
+ columns,
198
+ /*
199
+ columns: [
200
+ { id: "id", label: "ID" },
201
+ { id: "idMatricula", label: "ID Matricula" },
202
+ { id: "flow", "Circuito"},
203
+ ],
204
+ */
196
205
  rows: rows || []
197
206
  }
198
207
  const buttons = actions.map(({ label, action }) => {