ywana-core8 0.0.42 → 0.0.46

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.42",
3
+ "version": "0.0.46",
4
4
  "description": "ywana-core8",
5
5
  "author": "Ernesto Roldan Garcia",
6
6
  "license": "MIT",
@@ -129,9 +129,14 @@ const TableFilters = (props) => {
129
129
 
130
130
  const filterSchema = useMemo(() => {
131
131
  const filterSchema = Object.assign({}, schema)
132
- Object.values(filterSchema)
133
- .filter(field => field.filter === true)
134
- .forEach(field => field.section = null)
132
+
133
+ for (var key in filterSchema) {
134
+ if (filterSchema[key].filter === false) delete filterSchema[key]
135
+ }
136
+
137
+ Object.values(filterSchema).forEach(field => field.section = null)
138
+
139
+ Object.keys
135
140
  delete filterSchema.flows
136
141
  return filterSchema
137
142
  }, [schema])
@@ -147,6 +152,7 @@ const TableFilters = (props) => {
147
152
  }
148
153
 
149
154
  const content = new Content(filterSchema, form)
155
+ console.log(filterSchema, content)
150
156
  return (
151
157
  <Fragment>
152
158
  <Header title={<Text>Filtros</Text>} >
@@ -244,7 +250,8 @@ const TableEditor = (props) => {
244
250
  )
245
251
  })
246
252
  }
247
-
253
+
254
+ /* DUPLIDCADO
248
255
  const table = {
249
256
  columns: Object.values(schema)
250
257
  .filter(field => field.column === true)
@@ -269,6 +276,7 @@ const TableEditor = (props) => {
269
276
  }
270
277
 
271
278
  table.columns.push({ id: "actions" })
279
+ */
272
280
 
273
281
  function buildGroupOptions(schema) {
274
282
  return Object.values(schema)
@@ -9,9 +9,9 @@
9
9
  transition: background-color .3s;
10
10
  display: flex;
11
11
  color: var(--primary-color);
12
+ background-color: var(--paper-color);
12
13
  min-height: 2.5rem;
13
14
  }
14
-
15
15
 
16
16
  .btn.outlined {
17
17
  color: var(--primary-color);
@@ -21,6 +21,8 @@
21
21
  border-bottom: 1px solid var(--divider-color);
22
22
  overflow: hidden;
23
23
  font-size: 1rem;
24
+ color: var(--text-color);
25
+ background-color: var(--paper-color);
24
26
  }
25
27
 
26
28
  .textfield > input:focus {
@@ -104,6 +106,7 @@ input:read-only ~ label,
104
106
  right: 0px;
105
107
  margin: 0;
106
108
  border: solid 1px var(--divider-color);
109
+ color: var(--text-color);
107
110
  background-color: var(--paper-color);
108
111
  padding: 0;
109
112
  max-height: 20rem;