ywana-core8 0.0.174 → 0.0.178
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 +8 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +2 -0
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +8 -5
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +8 -5
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/ContentEditor.js +7 -6
- package/src/html/textfield-outlined.css +1 -0
- package/src/html/textfield.css +1 -0
package/package.json
CHANGED
@@ -180,6 +180,9 @@ export const FieldEditor = ({ field, onChange, content, outlined = false }) => {
|
|
180
180
|
if (isHidden) {
|
181
181
|
return null
|
182
182
|
} else {
|
183
|
+
|
184
|
+
console.log("FieldEditor: ", label, value1)
|
185
|
+
|
183
186
|
switch (type) {
|
184
187
|
case TYPES.ENTITY:
|
185
188
|
return <EntityEditor field={field} value={value1} onChange={change} />
|
@@ -218,7 +221,7 @@ const EntityEditor = ({ field, value = {}, onChange }) => {
|
|
218
221
|
|
219
222
|
return (
|
220
223
|
<div className='entity-editor'>
|
221
|
-
<header
|
224
|
+
<header>∂
|
222
225
|
<Text use='caption'>{label}</Text>
|
223
226
|
</header>
|
224
227
|
<main>
|
@@ -245,8 +248,6 @@ export const StringEditor = ({ field, value = '', onChange, content, outlined })
|
|
245
248
|
return opts
|
246
249
|
}
|
247
250
|
|
248
|
-
console.log('StringEditor: ', label, value )
|
249
|
-
|
250
251
|
return (
|
251
252
|
<div className='field-editor string-editor'>
|
252
253
|
{
|
@@ -261,7 +262,7 @@ export const StringEditor = ({ field, value = '', onChange, content, outlined })
|
|
261
262
|
/**
|
262
263
|
* Number Editor
|
263
264
|
*/
|
264
|
-
const NumberEditor = ({ field, value, onChange }) => {
|
265
|
+
const NumberEditor = ({ field, value, onChange, outlined = false }) => {
|
265
266
|
const { id, label, editable = true } = field
|
266
267
|
|
267
268
|
function change(id, value) {
|
@@ -273,11 +274,11 @@ const NumberEditor = ({ field, value, onChange }) => {
|
|
273
274
|
const max = field.max
|
274
275
|
const disabled = !editable
|
275
276
|
|
276
|
-
console.log('
|
277
|
+
console.log('NumberEditor: ', label, val, value )
|
277
278
|
|
278
279
|
return (
|
279
280
|
<div className='field-editor number-editor'>
|
280
|
-
<TextField outlined id={id} label={label} type='NUMBER' value={val} max={max} min={min} onChange={change} disabled={disabled} />
|
281
|
+
<TextField outlined={outlined} id={id} label={label} type='NUMBER' value={val} max={max} min={min} onChange={change} disabled={disabled} />
|
281
282
|
</div>
|
282
283
|
)
|
283
284
|
}
|