ywana-core8 0.0.415 → 0.0.416

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.415",
3
+ "version": "0.0.416",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -249,7 +249,7 @@ export const StringEditor = ({ field, value = '', onChange, content, outlined })
249
249
  case FORMATS.COLOR: return <ColorField id={id} onChange={change} value={value}/>
250
250
  case FORMATS.HTML: return <Editor id={id} value={value} onChange={change} content={content} />
251
251
  case FORMATS.DATE: return <TextField outlined={outlined} id={id} type="date" label={label} value={value} onChange={change} readOnly={!editable} />
252
- case FORMATS.TOKENS: return <TokenField id={id} label={label} onChange={change} readOnly={!editable} options={buildOptions()} />
252
+ case FORMATS.TOKENS: return <TokenField id={id} label={label} onChange={change} readOnly={!editable} options={buildOptions()} init={value}/>
253
253
  default:
254
254
  return options ? (
255
255
  <DropDown outlined={outlined} id={id} label={label} value={value} onChange={change} options={buildOptions()} readOnly={!editable} predictive={predictive} />
@@ -20,7 +20,8 @@ const schema = {
20
20
  }
21
21
 
22
22
  const value = {
23
- name: "John Smith"
23
+ name: "John Smith",
24
+ field3 : ["1","2"]
24
25
  }
25
26
 
26
27
  const ContentEditorTest = (prop) => {
@@ -273,12 +273,6 @@ const TableFilters = (props) => {
273
273
  if (fs[key].filter === false) delete fs[key]
274
274
  }
275
275
  }
276
-
277
- if (filterSchema[key].defValue) {
278
- const next = Object.assign(filters. {[key] : filterSchema[key].defValue})
279
- pageContext.changeFilters(next)
280
- }
281
-
282
276
  }
283
277
  }
284
278
  //Object.values(filterSchema).forEach(field => field.section = null)
package/src/html/table.js CHANGED
@@ -230,7 +230,6 @@ const StringCellViewer = ({ id, value, format, options }) => {
230
230
  text = new Date(text).toLocaleString( locale, { year: 'hour', month: 'minute', day: 'second' });
231
231
  break;
232
232
  }
233
- console.log(value, format)
234
233
  return (<div className="field-editor string-viewer">{text}</div>)
235
234
  }
236
235