ywana-core8 0.0.177 → 0.0.181

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.177",
3
+ "version": "0.0.181",
4
4
  "description": "ywana-core8",
5
5
  "author": "Ernesto Roldan Garcia",
6
6
  "license": "MIT",
@@ -70,6 +70,8 @@ export const TabbedContentEditor = ({ content, filter, grouped = false, onChange
70
70
 
71
71
  const sections = content.sections()
72
72
 
73
+ console.log("TabbedContentEditor",sections)
74
+
73
75
  return (
74
76
  <div className='content-editor tabbed'>
75
77
  <Tabs selected={tab} onChange={changeTab}>
@@ -175,11 +177,14 @@ export const FieldEditor = ({ field, onChange, content, outlined = false }) => {
175
177
  }
176
178
 
177
179
  function renderField() {
178
- const value1 = field.value ? field.value : field.default
180
+ const value1 = field.value || field.value === "" ? field.value : field.default
179
181
  const isHidden = CHECK['isFunction'](hidden) ? hidden(field, value1) : hidden
180
182
  if (isHidden) {
181
183
  return null
182
184
  } else {
185
+
186
+ console.log("FieldEditor: ", label, value1)
187
+
183
188
  switch (type) {
184
189
  case TYPES.ENTITY:
185
190
  return <EntityEditor field={field} value={value1} onChange={change} />
@@ -266,7 +271,7 @@ const NumberEditor = ({ field, value, onChange, outlined = false }) => {
266
271
  if (onChange) onChange(id, value)
267
272
  }
268
273
 
269
- const val = value || field.default
274
+ const val = value || value ==="" ? value : field.default
270
275
  const min = field.min
271
276
  const max = field.max
272
277
  const disabled = !editable
@@ -30,6 +30,7 @@
30
30
  position: absolute;
31
31
  top: 1.7rem;
32
32
  right: .2rem;
33
+ color: rgba(150,150,150,1);
33
34
  }
34
35
 
35
36
  .textfield-outlined > label {
@@ -33,6 +33,7 @@
33
33
  position: absolute;
34
34
  top: 1.7rem;
35
35
  right: .2rem;
36
+ color: rgba(150,150,150,1);
36
37
  }
37
38
 
38
39
  .textfield > label {