ywana-core8 0.0.41 → 0.0.45

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