ywana-core8 0.0.160 → 0.0.161
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 +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +4 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +4 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/ContentEditor.js +2 -2
package/package.json
CHANGED
@@ -234,7 +234,7 @@ const EntityEditor = ({ field, value = {}, onChange }) => {
|
|
234
234
|
* String Editor
|
235
235
|
*/
|
236
236
|
export const StringEditor = ({ field, value = '', onChange, content, outlined }) => {
|
237
|
-
const { id, format, label, options, editable = true } = field
|
237
|
+
const { id, format, label, options, editable = true, predictive = false } = field
|
238
238
|
|
239
239
|
function change(id, value) {
|
240
240
|
if (onChange) onChange(id, value)
|
@@ -249,7 +249,7 @@ export const StringEditor = ({ field, value = '', onChange, content, outlined })
|
|
249
249
|
<div className='field-editor string-editor'>
|
250
250
|
{
|
251
251
|
format === FORMATS.DATE ? <TextField outlined={outlined} id={id} type="date" label={label} value={value} onChange={change} readOnly={!editable} /> :
|
252
|
-
options ? <DropDown outlined={outlined} id={id} label={label} value={value} onChange={change} options={buildOptions()} readOnly={!editable} canFilter={
|
252
|
+
options ? <DropDown outlined={outlined} id={id} label={label} value={value} onChange={change} options={buildOptions()} readOnly={!editable} canFilter={predictive} /> :
|
253
253
|
<TextField outlined={outlined} id={id} label={label} value={value} onChange={change} readOnly={!editable} />
|
254
254
|
}
|
255
255
|
</div>
|