ywana-core8 0.0.598 → 0.0.599
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 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +4 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +4 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/ContentEditor.js +4 -1
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,
|
273
|
+
const { id, format, options, required=false, editable = true, predictive = false, multivalue = false, Editor } = field
|
274
274
|
|
275
275
|
function change(id, value) {
|
276
276
|
if (onChange) onChange(id, value)
|
@@ -282,6 +282,9 @@ export const StringEditor = ({ field, value = '', onChange, content, outlined })
|
|
282
282
|
}
|
283
283
|
|
284
284
|
function renderFormat(format, options) {
|
285
|
+
|
286
|
+
const label = required ? `${field.label} *` : field.label
|
287
|
+
|
285
288
|
switch (format) {
|
286
289
|
case FORMATS.IMG:
|
287
290
|
return (
|