ywana-core8 0.1.10 → 0.1.11

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.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
package/src/html/table.js CHANGED
@@ -165,11 +165,11 @@ const DataTableFiltersRow = ({ columns, onClear }) => {
165
165
 
166
166
  return (
167
167
  <tr className="filters-row">
168
- {columns.map(({ id, filterable, onFilter, options }) => {
168
+ {columns.map(({ id, filterable, onFilter, predictive=false, options }) => {
169
169
 
170
170
  const value = form[id] ? form[id] : ''
171
171
  const field = options ?
172
- <DropDown id={id} value={value} options={options} onChange={(id, value) => changeFilter(id, value, onFilter)} outlined />
172
+ <DropDown id={id} value={value} options={options} predictive={predictive} onChange={(id, value) => changeFilter(id, value, onFilter)} outlined />
173
173
  :
174
174
  <TextField id={id} value={value} onChange={(id, value) => changeFilter(id, value, onFilter)} outlined />
175
175
  return (
@@ -220,7 +220,6 @@ const DataTableCell = ({ index, row, column, cell, editable }) => {
220
220
  const render = (type) => {
221
221
  const { id, disabled = false, min, max, onChange, format, options, item, action, maxDecimals } = column
222
222
 
223
-
224
223
  if (id === "checked") {
225
224
  return row.checkDisabled ? null : <CheckBox id={id} value={cell} onChange={(id, value) => onChange(row.id, id, value)} />
226
225
  } else if (editable && onChange) {