@bigbinary/neeto-filters-frontend 3.1.1 → 3.1.2
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 +10 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +9 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/types.d.ts +19 -2
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { useState, useRef, useEffect, useTransition, useMemo } from 'react';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
3
|
import i18next, { t as t$1 } from 'i18next';
|
|
4
|
-
import {
|
|
4
|
+
import { findBy, isNotEmpty, capitalize, removeBy, humanize, hyphenate, noop as noop$1, toLabelAndValue, replaceBy, isPresent, existsBy, isNotPresent, filterBy } from '@bigbinary/neeto-cist';
|
|
5
5
|
import { useMutationWithInvalidation, useQueryParams, useDebounce, withT } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
6
6
|
import { getQueryParams, dateFormat, buildUrl } from '@bigbinary/neeto-commons-frontend/utils';
|
|
7
7
|
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';
|
|
8
|
-
import { groupBy, anyPass, isNil, isEmpty, any, toLower, mergeLeft, identity,
|
|
8
|
+
import { groupBy, anyPass, isNil, isEmpty, any, concat, omit, toLower, mergeLeft, identity, mergeRight, toPairs, not, pluck, either, has, equals, pick, modify, prop, isNotNil, append, last, mergeDeepRight } from 'ramda';
|
|
9
9
|
import { useTranslation, Trans } from 'react-i18next';
|
|
10
10
|
import { useHistory, useLocation } from 'react-router-dom';
|
|
11
11
|
import useHotkeys from '@bigbinary/neeto-hotkeys';
|
|
@@ -1140,8 +1140,12 @@ var create = function create(payload) {
|
|
|
1140
1140
|
};
|
|
1141
1141
|
var update = function update(_ref) {
|
|
1142
1142
|
var id = _ref.id,
|
|
1143
|
-
payload = _ref.payload
|
|
1144
|
-
|
|
1143
|
+
payload = _ref.payload,
|
|
1144
|
+
_ref$showToastr = _ref.showToastr,
|
|
1145
|
+
showToastr = _ref$showToastr === void 0 ? true : _ref$showToastr;
|
|
1146
|
+
return axios.put("".concat(SEGMENTS_BASE_URL, "/").concat(id), payload, {
|
|
1147
|
+
showToastr: showToastr
|
|
1148
|
+
});
|
|
1145
1149
|
};
|
|
1146
1150
|
var destroy = function destroy(id) {
|
|
1147
1151
|
return axios["delete"]("".concat(SEGMENTS_BASE_URL, "/").concat(id));
|
|
@@ -3808,5 +3812,5 @@ var Segments = function Segments(_ref) {
|
|
|
3808
3812
|
};
|
|
3809
3813
|
var index = /*#__PURE__*/React.memo(Segments);
|
|
3810
3814
|
|
|
3811
|
-
export { Bar, Filters, index as Segments, buildFilterColumnsFromFields, buildFiltersFromURL, buildSelectorsFromURL, useFetchSegments };
|
|
3815
|
+
export { Bar, Filters, index as Segments, buildFilterColumnsFromFields, buildFiltersFromURL, buildSelectorsFromURL, buildUrlFromFilters, buildUrlFromSegment, useDestroySegment, useFetchSegments, useUpdateSegment };
|
|
3812
3816
|
//# sourceMappingURL=index.js.map
|