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/dist/index.cjs +3 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +3 -0
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +3 -0
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/table.js +2 -3
package/package.json
CHANGED
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) {
|