ywana-core8 0.0.414 → 0.0.417
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/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +3 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +3 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/ContentEditor.js +3 -1
- package/src/domain/ContentEditor.test.js +2 -1
- package/src/domain/TablePage.js +0 -1
- package/src/html/table.js +0 -1
package/package.json
CHANGED
@@ -249,7 +249,9 @@ 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:
|
252
|
+
case FORMATS.TOKENS:
|
253
|
+
const init = Array.isArray(value) ? value : []
|
254
|
+
return <TokenField id={id} label={label} onChange={change} readOnly={!editable} options={buildOptions()} init={init}/>
|
253
255
|
default:
|
254
256
|
return options ? (
|
255
257
|
<DropDown outlined={outlined} id={id} label={label} value={value} onChange={change} options={buildOptions()} readOnly={!editable} predictive={predictive} />
|
package/src/domain/TablePage.js
CHANGED
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
|
|