@bigbinary/neeto-filters-frontend 2.11.17 → 2.11.18
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/README.md +2 -0
- package/dist/index.cjs.js +3 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/types.d.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import React, { useContext, useState, useRef, useEffect, useCallback, useMemo }
|
|
|
2
2
|
import classnames from 'classnames';
|
|
3
3
|
import { removeBy, findBy, isNotEmpty, humanize, noop as noop$2, toLabelAndValue, replaceBy, isPresent, existsBy, filterBy } from '@bigbinary/neeto-commons-frontend/pure';
|
|
4
4
|
import { Tooltip, Typography, Dropdown as Dropdown$2, Button, Pane as Pane$1, Alert, Select, DatePicker, TimePicker, Input as Input$1, Accordion, Spinner } from '@bigbinary/neetoui';
|
|
5
|
-
import { groupBy, anyPass, isNil, isEmpty, any, mergeLeft, identity, omit, mergeRight, concat, pluck, either, has as has$1, toPairs,
|
|
5
|
+
import { groupBy, anyPass, isNil, isEmpty, any, mergeLeft, identity, omit, mergeRight, concat, pluck, either, has as has$1, toPairs, equals, pick, modify, prop, isNotNil, append, last } from 'ramda';
|
|
6
6
|
import { useHistory, useLocation } from 'react-router-dom';
|
|
7
7
|
import { useHotKeys, useDebounce } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
8
8
|
import { Close, Search, Check, MenuHorizontal, Down, Settings } from '@bigbinary/neeto-icons';
|
|
@@ -3609,7 +3609,7 @@ var buildUpdatedFilter = function buildUpdatedFilter(_ref8) {
|
|
|
3609
3609
|
rule = _ref8$rule === void 0 ? "" : _ref8$rule,
|
|
3610
3610
|
_ref8$value = _ref8.value,
|
|
3611
3611
|
value = _ref8$value === void 0 ? "" : _ref8$value;
|
|
3612
|
-
var filter =
|
|
3612
|
+
var filter = omit(["values", "preprocessor"], column);
|
|
3613
3613
|
if (isMulti(defaultType)) {
|
|
3614
3614
|
return mergeLeft(filter, {
|
|
3615
3615
|
value: pluck("value", option),
|
|
@@ -3624,9 +3624,10 @@ var buildUpdatedFilter = function buildUpdatedFilter(_ref8) {
|
|
|
3624
3624
|
timezone: getTimezone()
|
|
3625
3625
|
});
|
|
3626
3626
|
} else if (isText(defaultType) || isDigit(defaultType)) {
|
|
3627
|
+
var _column$preprocessor;
|
|
3627
3628
|
return mergeLeft(filter, {
|
|
3628
3629
|
rule: rule,
|
|
3629
|
-
value: value
|
|
3630
|
+
value: (column === null || column === void 0 ? void 0 : (_column$preprocessor = column.preprocessor) === null || _column$preprocessor === void 0 ? void 0 : _column$preprocessor.call(column, value)) || value
|
|
3630
3631
|
});
|
|
3631
3632
|
} else if (isSingleTime(defaultType)) {
|
|
3632
3633
|
return mergeLeft(filter, {
|