ywana-core8 0.0.473 → 0.0.474

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.473",
3
+ "version": "0.0.474",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -45,7 +45,6 @@ export const TabbedTablePage = (props) => {
45
45
  }, [])
46
46
 
47
47
  useEffect( async () => {
48
- console.log("TAB", tab)
49
48
  if (tab) {
50
49
  const filter = { [tab.field]: tab.value }
51
50
  await pageContext.load(filter, [])
@@ -102,7 +101,6 @@ export const TabbedTablePage = (props) => {
102
101
  }
103
102
 
104
103
  async function save() {
105
- console.log('saving.....')
106
104
  await pageContext.update(form)
107
105
  setPageContext(Object.assign({}, pageContext))
108
106
  }
@@ -153,7 +151,6 @@ export const TabbedTablePage = (props) => {
153
151
 
154
152
  function renderTabs() {
155
153
  const selected = tab ? tab.value : null
156
- console.log(selected)
157
154
  return (
158
155
  <Tabs selected={selected} onChange={changeTab}>
159
156
  {tabs.map(tab => <Tab id={tab.value} label={tab.label} />)}
@@ -659,9 +656,6 @@ const TableAPI = (url, host) => {
659
656
 
660
657
  return {
661
658
  all(filters, like = []) {
662
-
663
- console.log(like)
664
-
665
659
  let queryParams = "?"
666
660
  if (filters) {
667
661
  const filterQuery = Object.keys(filters).reduce((query, key) => {
@@ -116,13 +116,13 @@ const Page3 = (props) => {
116
116
 
117
117
  const schema = {
118
118
  name : { id: "name" , type: TYPES.STRING, format: FORMATS.NONE , required: true, tab: false, column: true , filter: true , like: true, label: "Name" },
119
- state : { id: "state" , type: TYPES.STRING, format: FORMATS.NONE , required: true, tab: true , column: true , filter: false, label: "State" , options: [
119
+ state : { id: "state" , type: TYPES.STRING, format: FORMATS.NONE , required: true, tab: true , column: true , filter: false , label: "State" , options: [
120
120
  { label: "Pendiente", value: "NOT_CLASSIFIED" },
121
121
  { label: "Clasificada", value: "CLASSIFIED"},
122
122
  ]},
123
- field1: { id: "field1", type: TYPES.STRING, format: FORMATS.NONE , required: true, tab: false, column: true , filter: true , label: "field1" },
124
- field2: { id: "field2", type: TYPES.STRING, format: FORMATS.NONE , required: true, tab: false, column: true , filter: true , label: "field2" },
125
- field4: { id: "field4", type: TYPES.STRING, format: FORMATS.COLOR, required: true, tab: false, column: true , filter: true , label: "Color" },
123
+ field1: { id: "field1", type: TYPES.STRING, format: FORMATS.NONE , required: true, tab: false, column: true , filter: true , label: "field1" },
124
+ field2: { id: "field2", type: TYPES.STRING, format: FORMATS.NONE , required: true, tab: false, column: true , filter: true , label: "field2" },
125
+ field4: { id: "field4", type: TYPES.STRING, format: FORMATS.COLOR, required: true, tab: false, column: true , filter: true , label: "Color" },
126
126
  }
127
127
 
128
128
  return (