ywana-core8 0.0.625 → 0.0.626
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
@@ -270,7 +270,7 @@ const EntityEditor = ({ field, value = {}, onChange }) => {
|
|
270
270
|
* String Editor
|
271
271
|
*/
|
272
272
|
export const StringEditor = ({ field, value = '', onChange, content, outlined }) => {
|
273
|
-
const { id, format, options, required=false, editable = true, predictive = false, multivalue = false, Editor } = field
|
273
|
+
const { id, format, options, required=false, editable = true, predictive = false, multivalue = false, freeValue = false, Editor } = field
|
274
274
|
|
275
275
|
function change(id, value) {
|
276
276
|
if (onChange) onChange(id, value)
|
@@ -301,7 +301,7 @@ export const StringEditor = ({ field, value = '', onChange, content, outlined })
|
|
301
301
|
return <TokenField id={id} label={label} onChange={change} options={buildOptions()} tokens={value} />
|
302
302
|
default:
|
303
303
|
return options ? (
|
304
|
-
<DropDown outlined={outlined} id={id} label={label} value={value} onChange={change} options={buildOptions()} readOnly={!editable} predictive={predictive} editable={
|
304
|
+
<DropDown outlined={outlined} id={id} label={label} value={value} onChange={change} options={buildOptions()} readOnly={!editable} predictive={predictive} editable={freeValue} />
|
305
305
|
) : multivalue ? (
|
306
306
|
<TokenField id={id} label={label} onChange={change} readOnly={!editable} />
|
307
307
|
) : (
|