ywana-core8 0.0.38 → 0.0.42

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.38",
3
+ "version": "0.0.42",
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
-
18
17
  return (
19
18
  <div className='content-editor'>
20
19
  {sections.map((section) => {
@@ -32,7 +32,6 @@ export const CreateContentDialog = ({ label, type, value = {}, filter, validator
32
32
  }
33
33
 
34
34
  function filterForm(field, content) {
35
- console.log('------ filterForm------------', field.id, filter)
36
35
  const visible = field.required === true || field.optional === true
37
36
  return filter ? visible && filter(field, content) : visible
38
37
  }
@@ -129,7 +129,9 @@ const TableFilters = (props) => {
129
129
 
130
130
  const filterSchema = useMemo(() => {
131
131
  const filterSchema = Object.assign({}, schema)
132
- Object.values(filterSchema).forEach(field => field.section = null)
132
+ Object.values(filterSchema)
133
+ .filter(field => field.filter === true)
134
+ .forEach(field => field.section = null)
133
135
  delete filterSchema.flows
134
136
  return filterSchema
135
137
  }, [schema])
@@ -5,7 +5,9 @@ import { UploadFile } from "./UploadFile";
5
5
  import './uploader.css'
6
6
 
7
7
  const STATES = {
8
- IDLE: 0, RUNNING: 1, SUCCESS: 2, ERROR': 3, COMPLETED: 4 }
8
+ IDLE: 0, RUNNING: 1, SUCCESS: 2, ERROR: 3, COMPLETED: 4
9
+ }
10
+
9
11
  /**
10
12
  * Uploader
11
13
  */