ywana-core8 0.0.142 → 0.0.146

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.142",
3
+ "version": "0.0.146",
4
4
  "description": "ywana-core8",
5
5
  "author": "Ernesto Roldan Garcia",
6
6
  "license": "MIT",
@@ -19,13 +19,13 @@ export const CheckBox = (props) => {
19
19
  return value === true ? (
20
20
  <div className="checkbox" key={`${id}1`}>
21
21
  <input id={id} type="checkbox" placeholder={placeholder} checked value={value} onChange={change} />
22
- <span class="checkmark" />
22
+ <span className="checkmark" />
23
23
  <label htmlFor={id}>{labelTxt}</label>
24
24
  </div>
25
25
  ) : (
26
26
  <div className="checkbox" key={`${id}0`}>
27
27
  <input id={id} type="checkbox" placeholder={placeholder} value={value} onChange={change} />
28
- <span class="checkmark" />
28
+ <span className="checkmark" />
29
29
  <label htmlFor={id}>{labelTxt}</label>
30
30
  </div>
31
31
  )
package/src/html/table.js CHANGED
@@ -175,7 +175,7 @@ const BooleanCellViewer = ({ id, value = false }) => {
175
175
  const StringCellViewer = ({ id, value, options }) => {
176
176
  const option = options ? options.find(o => o.value === value) : null
177
177
  const text = option ? option.label : value
178
- return (<div className="field-editor string-editor">{text}</div>)
178
+ return (<div className="field-editor string-viewer">{text}</div>)
179
179
  }
180
180
 
181
181
  /**
@@ -99,7 +99,7 @@ export const DropDown = (props) => {
99
99
  const canShow = open == true && Array.isArray(options)
100
100
  if (canShow) {
101
101
  const filterActive = canFilter && label && label.length > 0
102
- const items = filterActive ? options.filter(option => label.toUpperCase().indexOf(option.label.toUpperCase()) >= 0) : options
102
+ const items = filterActive ? options.filter(option => option.label.toUpperCase().indexOf(label.toUpperCase()) >= 0) : options
103
103
  console.log('filterActive: ',filterActive, label, items.length)
104
104
  const lis = items.map(option => <li key={option.value} value={option.value}>{option.label}</li>)
105
105
  return <menu><ul onClick={select}>{lis}</ul></menu>