@bigbinary/neeto-filters-frontend 2.12.14 → 2.12.16
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.js +5 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3201,6 +3201,9 @@ var groupByGroup = groupBy(function (_ref) {
|
|
|
3201
3201
|
var isBoolean = function isBoolean(type) {
|
|
3202
3202
|
return type === "boolean" || type === "custom.boolean";
|
|
3203
3203
|
};
|
|
3204
|
+
var isCheckbox = function isCheckbox(type) {
|
|
3205
|
+
return type === "checkbox" || type === "custom.checkbox";
|
|
3206
|
+
};
|
|
3204
3207
|
var isDate = function isDate(type) {
|
|
3205
3208
|
return type === "date" || type === "custom.date" || type === "custom.datetime";
|
|
3206
3209
|
};
|
|
@@ -3750,7 +3753,7 @@ var buildFilterColumnsFromFields = function buildFilterColumnsFromFields(fields)
|
|
|
3750
3753
|
column.values = field.data.map(function (item) {
|
|
3751
3754
|
return {
|
|
3752
3755
|
label: capitalize$1(item.label),
|
|
3753
|
-
value: item.
|
|
3756
|
+
value: item.id
|
|
3754
3757
|
};
|
|
3755
3758
|
});
|
|
3756
3759
|
}
|
|
@@ -7508,7 +7511,7 @@ var Item = function Item(_ref) {
|
|
|
7508
7511
|
handleApplyFilter: handleApplyFilter
|
|
7509
7512
|
});
|
|
7510
7513
|
}
|
|
7511
|
-
if (isBoolean(defaultType)) {
|
|
7514
|
+
if (isBoolean(defaultType) || isCheckbox(defaultType)) {
|
|
7512
7515
|
return /*#__PURE__*/React.createElement(Boolean$1, {
|
|
7513
7516
|
autoFocus: autoFocus,
|
|
7514
7517
|
column: column,
|