@bigbinary/neeto-filters-frontend 3.0.15 → 3.1.1
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 +942 -141
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +870 -71
- package/dist/index.js.map +1 -1
- package/package.json +67 -65
package/dist/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
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 { capitalize, removeBy, findBy, isNotEmpty, humanize, hyphenate, noop, toLabelAndValue, replaceBy, isPresent, existsBy, isNotPresent, filterBy } from '
|
|
5
|
-
import {
|
|
4
|
+
import { capitalize, removeBy, findBy, isNotEmpty, humanize, hyphenate, noop as noop$1, toLabelAndValue, replaceBy, isPresent, existsBy, isNotPresent, filterBy } from '@bigbinary/neeto-cist';
|
|
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
8
|
import { groupBy, anyPass, isNil, isEmpty, any, toLower, mergeLeft, identity, omit, mergeRight, toPairs, not, pluck, either, has, concat, 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
|
+
import useHotkeys from '@bigbinary/neeto-hotkeys';
|
|
11
12
|
import { Help, Close, MenuHorizontal, Down, Settings } from '@bigbinary/neeto-icons';
|
|
12
13
|
import { Form, Input, ActionBlock } from '@bigbinary/neetoui/formik';
|
|
13
14
|
import { useQuery } from 'react-query';
|
|
14
15
|
import axios from 'axios';
|
|
15
16
|
import * as yup from 'yup';
|
|
16
17
|
import Search from '@bigbinary/neeto-molecules/Search';
|
|
17
|
-
import { createPortal } from 'react-dom';
|
|
18
|
-
import { CSSTransition } from 'react-transition-group';
|
|
18
|
+
import ReactDOM, { createPortal } from 'react-dom';
|
|
19
19
|
import MenuBar from '@bigbinary/neeto-molecules/MenuBar';
|
|
20
20
|
import { FormikInlineInput } from '@bigbinary/neeto-molecules/InlineInput';
|
|
21
21
|
|
|
@@ -50,14 +50,14 @@ function _toConsumableArray(arr) {
|
|
|
50
50
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
function _typeof(
|
|
53
|
+
function _typeof(o) {
|
|
54
54
|
"@babel/helpers - typeof";
|
|
55
55
|
|
|
56
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
57
|
-
return typeof
|
|
58
|
-
} : function (
|
|
59
|
-
return
|
|
60
|
-
}, _typeof(
|
|
56
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
57
|
+
return typeof o;
|
|
58
|
+
} : function (o) {
|
|
59
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
60
|
+
}, _typeof(o);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
function _toPrimitive(input, hint) {
|
|
@@ -261,31 +261,31 @@ function _arrayWithHoles(arr) {
|
|
|
261
261
|
if (Array.isArray(arr)) return arr;
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
-
function _iterableToArrayLimit(
|
|
265
|
-
var
|
|
266
|
-
if (null !=
|
|
267
|
-
var
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
264
|
+
function _iterableToArrayLimit(r, l) {
|
|
265
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
266
|
+
if (null != t) {
|
|
267
|
+
var e,
|
|
268
|
+
n,
|
|
269
|
+
i,
|
|
270
|
+
u,
|
|
271
|
+
a = [],
|
|
272
|
+
f = !0,
|
|
273
|
+
o = !1;
|
|
274
274
|
try {
|
|
275
|
-
if (
|
|
276
|
-
if (Object(
|
|
277
|
-
|
|
278
|
-
} else for (; !(
|
|
279
|
-
} catch (
|
|
280
|
-
|
|
275
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
276
|
+
if (Object(t) !== t) return;
|
|
277
|
+
f = !1;
|
|
278
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
279
|
+
} catch (r) {
|
|
280
|
+
o = !0, n = r;
|
|
281
281
|
} finally {
|
|
282
282
|
try {
|
|
283
|
-
if (!
|
|
283
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
284
284
|
} finally {
|
|
285
|
-
if (
|
|
285
|
+
if (o) throw n;
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
|
-
return
|
|
288
|
+
return a;
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
|
|
@@ -335,8 +335,8 @@ dayjs.extend(timezone);
|
|
|
335
335
|
dayjs.extend(weekday);
|
|
336
336
|
dayjs.Ls.en.weekStart = 1;
|
|
337
337
|
|
|
338
|
-
function ownKeys$4(
|
|
339
|
-
function _objectSpread$4(
|
|
338
|
+
function ownKeys$4(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
339
|
+
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
340
340
|
var groupByGroup = groupBy(function (_ref) {
|
|
341
341
|
var group = _ref.group;
|
|
342
342
|
return group || "individual";
|
|
@@ -1036,12 +1036,12 @@ var Block = function Block(_ref) {
|
|
|
1036
1036
|
var blockLength = label.length + ruleContent.length + filterValue.length;
|
|
1037
1037
|
var toolTipDisabled = blockLength <= 50;
|
|
1038
1038
|
var blockContent = !toolTipDisabled ? "".concat(filterValue.slice(0, 50 - blockLength), "...") : filterValue;
|
|
1039
|
-
var deleteBlockHotKeyRef =
|
|
1039
|
+
var deleteBlockHotKeyRef = useHotkeys(SHORTCUTS.deleteBlock.sequence, function () {
|
|
1040
1040
|
return handleDelete(key);
|
|
1041
1041
|
}, {
|
|
1042
1042
|
mode: "scoped"
|
|
1043
1043
|
});
|
|
1044
|
-
var openFilterPaneHotKeyRef =
|
|
1044
|
+
var openFilterPaneHotKeyRef = useHotkeys(SHORTCUTS.openFilterPane.sequence, function () {
|
|
1045
1045
|
return setIsPaneOpen(key);
|
|
1046
1046
|
}, {
|
|
1047
1047
|
mode: "scoped"
|
|
@@ -1086,12 +1086,12 @@ var ChildBlock = function ChildBlock(_ref) {
|
|
|
1086
1086
|
var childKey = _ref.childKey,
|
|
1087
1087
|
setIsPaneOpen = _ref.setIsPaneOpen,
|
|
1088
1088
|
handleDelete = _ref.handleDelete;
|
|
1089
|
-
var deleteBlockHotKeyRef =
|
|
1089
|
+
var deleteBlockHotKeyRef = useHotkeys(SHORTCUTS.deleteBlock.sequence, function () {
|
|
1090
1090
|
return handleDelete(childKey);
|
|
1091
1091
|
}, {
|
|
1092
1092
|
mode: "scoped"
|
|
1093
1093
|
});
|
|
1094
|
-
var openFilterPaneHotKeyRef =
|
|
1094
|
+
var openFilterPaneHotKeyRef = useHotkeys(SHORTCUTS.openFilterPane.sequence, function () {
|
|
1095
1095
|
return setIsPaneOpen(childKey);
|
|
1096
1096
|
}, {
|
|
1097
1097
|
mode: "scoped"
|
|
@@ -1159,8 +1159,8 @@ var QUERY_KEYS = {
|
|
|
1159
1159
|
};
|
|
1160
1160
|
var SEGMENTS_STALE_TIME = 900000; // 15 mins
|
|
1161
1161
|
|
|
1162
|
-
function ownKeys$3(
|
|
1163
|
-
function _objectSpread$3(
|
|
1162
|
+
function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1163
|
+
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1164
1164
|
var SEGMENTS_LIST = QUERY_KEYS.SEGMENTS_LIST;
|
|
1165
1165
|
var useFetchSegments = function useFetchSegments(_ref) {
|
|
1166
1166
|
var entity = _ref.entity,
|
|
@@ -1360,8 +1360,8 @@ var Segment = function Segment(_ref) {
|
|
|
1360
1360
|
}));
|
|
1361
1361
|
};
|
|
1362
1362
|
|
|
1363
|
-
function ownKeys$2(
|
|
1364
|
-
function _objectSpread$2(
|
|
1363
|
+
function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1364
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1365
1365
|
var Bar = function Bar(_ref) {
|
|
1366
1366
|
var entity = _ref.entity,
|
|
1367
1367
|
className = _ref.className,
|
|
@@ -1371,7 +1371,7 @@ var Bar = function Bar(_ref) {
|
|
|
1371
1371
|
keyword = _ref$keyword === void 0 ? {
|
|
1372
1372
|
node: "",
|
|
1373
1373
|
value: "",
|
|
1374
|
-
setValue: noop
|
|
1374
|
+
setValue: noop$1
|
|
1375
1375
|
} : _ref$keyword,
|
|
1376
1376
|
_ref$setIsPaneOpen = _ref.setIsPaneOpen,
|
|
1377
1377
|
setIsPaneOpen = _ref$setIsPaneOpen === void 0 ? identity : _ref$setIsPaneOpen,
|
|
@@ -1446,7 +1446,7 @@ var Bar = function Bar(_ref) {
|
|
|
1446
1446
|
useEffect(function () {
|
|
1447
1447
|
if (initialRenderRef.current) {
|
|
1448
1448
|
initialRenderRef.current = false;
|
|
1449
|
-
return noop;
|
|
1449
|
+
return noop$1;
|
|
1450
1450
|
}
|
|
1451
1451
|
var handler = setTimeout(function () {
|
|
1452
1452
|
handleSubmit(filters);
|
|
@@ -1497,8 +1497,8 @@ var Bar = function Bar(_ref) {
|
|
|
1497
1497
|
}();
|
|
1498
1498
|
};
|
|
1499
1499
|
|
|
1500
|
-
function _extends() {
|
|
1501
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
1500
|
+
function _extends$1() {
|
|
1501
|
+
_extends$1 = Object.assign ? Object.assign.bind() : function (target) {
|
|
1502
1502
|
for (var i = 1; i < arguments.length; i++) {
|
|
1503
1503
|
var source = arguments[i];
|
|
1504
1504
|
for (var key in source) {
|
|
@@ -1509,10 +1509,10 @@ function _extends() {
|
|
|
1509
1509
|
}
|
|
1510
1510
|
return target;
|
|
1511
1511
|
};
|
|
1512
|
-
return _extends.apply(this, arguments);
|
|
1512
|
+
return _extends$1.apply(this, arguments);
|
|
1513
1513
|
}
|
|
1514
1514
|
|
|
1515
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
1515
|
+
function _objectWithoutPropertiesLoose$1(source, excluded) {
|
|
1516
1516
|
if (source == null) return {};
|
|
1517
1517
|
var target = {};
|
|
1518
1518
|
var sourceKeys = Object.keys(source);
|
|
@@ -1527,7 +1527,7 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
1527
1527
|
|
|
1528
1528
|
function _objectWithoutProperties(source, excluded) {
|
|
1529
1529
|
if (source == null) return {};
|
|
1530
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
1530
|
+
var target = _objectWithoutPropertiesLoose$1(source, excluded);
|
|
1531
1531
|
var key, i;
|
|
1532
1532
|
if (Object.getOwnPropertySymbols) {
|
|
1533
1533
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -1569,6 +1569,805 @@ var Portal = function Portal(_ref) {
|
|
|
1569
1569
|
return /*#__PURE__*/createPortal(children, target.current);
|
|
1570
1570
|
};
|
|
1571
1571
|
|
|
1572
|
+
function _extends() {
|
|
1573
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
1574
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
1575
|
+
var source = arguments[i];
|
|
1576
|
+
for (var key in source) {
|
|
1577
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
1578
|
+
target[key] = source[key];
|
|
1579
|
+
}
|
|
1580
|
+
}
|
|
1581
|
+
}
|
|
1582
|
+
return target;
|
|
1583
|
+
};
|
|
1584
|
+
return _extends.apply(this, arguments);
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
1588
|
+
if (source == null) return {};
|
|
1589
|
+
var target = {};
|
|
1590
|
+
var sourceKeys = Object.keys(source);
|
|
1591
|
+
var key, i;
|
|
1592
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
1593
|
+
key = sourceKeys[i];
|
|
1594
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
1595
|
+
target[key] = source[key];
|
|
1596
|
+
}
|
|
1597
|
+
return target;
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
function _setPrototypeOf(o, p) {
|
|
1601
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
1602
|
+
o.__proto__ = p;
|
|
1603
|
+
return o;
|
|
1604
|
+
};
|
|
1605
|
+
return _setPrototypeOf(o, p);
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
function _inheritsLoose(subClass, superClass) {
|
|
1609
|
+
subClass.prototype = Object.create(superClass.prototype);
|
|
1610
|
+
subClass.prototype.constructor = subClass;
|
|
1611
|
+
_setPrototypeOf(subClass, superClass);
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
/**
|
|
1615
|
+
* Checks if a given element has a CSS class.
|
|
1616
|
+
*
|
|
1617
|
+
* @param element the element
|
|
1618
|
+
* @param className the CSS class name
|
|
1619
|
+
*/
|
|
1620
|
+
function hasClass(element, className) {
|
|
1621
|
+
if (element.classList) return !!className && element.classList.contains(className);
|
|
1622
|
+
return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1625
|
+
/**
|
|
1626
|
+
* Adds a CSS class to a given element.
|
|
1627
|
+
*
|
|
1628
|
+
* @param element the element
|
|
1629
|
+
* @param className the CSS class name
|
|
1630
|
+
*/
|
|
1631
|
+
|
|
1632
|
+
function addClass(element, className) {
|
|
1633
|
+
if (element.classList) element.classList.add(className);else if (!hasClass(element, className)) if (typeof element.className === 'string') element.className = element.className + " " + className;else element.setAttribute('class', (element.className && element.className.baseVal || '') + " " + className);
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
function replaceClassName(origClass, classToRemove) {
|
|
1637
|
+
return origClass.replace(new RegExp("(^|\\s)" + classToRemove + "(?:\\s|$)", 'g'), '$1').replace(/\s+/g, ' ').replace(/^\s*|\s*$/g, '');
|
|
1638
|
+
}
|
|
1639
|
+
/**
|
|
1640
|
+
* Removes a CSS class from a given element.
|
|
1641
|
+
*
|
|
1642
|
+
* @param element the element
|
|
1643
|
+
* @param className the CSS class name
|
|
1644
|
+
*/
|
|
1645
|
+
|
|
1646
|
+
|
|
1647
|
+
function removeClass$1(element, className) {
|
|
1648
|
+
if (element.classList) {
|
|
1649
|
+
element.classList.remove(className);
|
|
1650
|
+
} else if (typeof element.className === 'string') {
|
|
1651
|
+
element.className = replaceClassName(element.className, className);
|
|
1652
|
+
} else {
|
|
1653
|
+
element.setAttribute('class', replaceClassName(element.className && element.className.baseVal || '', className));
|
|
1654
|
+
}
|
|
1655
|
+
}
|
|
1656
|
+
|
|
1657
|
+
var config = {
|
|
1658
|
+
disabled: false
|
|
1659
|
+
};
|
|
1660
|
+
|
|
1661
|
+
var TransitionGroupContext = React.createContext(null);
|
|
1662
|
+
|
|
1663
|
+
var forceReflow = function forceReflow(node) {
|
|
1664
|
+
return node.scrollTop;
|
|
1665
|
+
};
|
|
1666
|
+
|
|
1667
|
+
var UNMOUNTED = 'unmounted';
|
|
1668
|
+
var EXITED = 'exited';
|
|
1669
|
+
var ENTERING = 'entering';
|
|
1670
|
+
var ENTERED = 'entered';
|
|
1671
|
+
var EXITING = 'exiting';
|
|
1672
|
+
/**
|
|
1673
|
+
* The Transition component lets you describe a transition from one component
|
|
1674
|
+
* state to another _over time_ with a simple declarative API. Most commonly
|
|
1675
|
+
* it's used to animate the mounting and unmounting of a component, but can also
|
|
1676
|
+
* be used to describe in-place transition states as well.
|
|
1677
|
+
*
|
|
1678
|
+
* ---
|
|
1679
|
+
*
|
|
1680
|
+
* **Note**: `Transition` is a platform-agnostic base component. If you're using
|
|
1681
|
+
* transitions in CSS, you'll probably want to use
|
|
1682
|
+
* [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition)
|
|
1683
|
+
* instead. It inherits all the features of `Transition`, but contains
|
|
1684
|
+
* additional features necessary to play nice with CSS transitions (hence the
|
|
1685
|
+
* name of the component).
|
|
1686
|
+
*
|
|
1687
|
+
* ---
|
|
1688
|
+
*
|
|
1689
|
+
* By default the `Transition` component does not alter the behavior of the
|
|
1690
|
+
* component it renders, it only tracks "enter" and "exit" states for the
|
|
1691
|
+
* components. It's up to you to give meaning and effect to those states. For
|
|
1692
|
+
* example we can add styles to a component when it enters or exits:
|
|
1693
|
+
*
|
|
1694
|
+
* ```jsx
|
|
1695
|
+
* import { Transition } from 'react-transition-group';
|
|
1696
|
+
*
|
|
1697
|
+
* const duration = 300;
|
|
1698
|
+
*
|
|
1699
|
+
* const defaultStyle = {
|
|
1700
|
+
* transition: `opacity ${duration}ms ease-in-out`,
|
|
1701
|
+
* opacity: 0,
|
|
1702
|
+
* }
|
|
1703
|
+
*
|
|
1704
|
+
* const transitionStyles = {
|
|
1705
|
+
* entering: { opacity: 1 },
|
|
1706
|
+
* entered: { opacity: 1 },
|
|
1707
|
+
* exiting: { opacity: 0 },
|
|
1708
|
+
* exited: { opacity: 0 },
|
|
1709
|
+
* };
|
|
1710
|
+
*
|
|
1711
|
+
* const Fade = ({ in: inProp }) => (
|
|
1712
|
+
* <Transition in={inProp} timeout={duration}>
|
|
1713
|
+
* {state => (
|
|
1714
|
+
* <div style={{
|
|
1715
|
+
* ...defaultStyle,
|
|
1716
|
+
* ...transitionStyles[state]
|
|
1717
|
+
* }}>
|
|
1718
|
+
* I'm a fade Transition!
|
|
1719
|
+
* </div>
|
|
1720
|
+
* )}
|
|
1721
|
+
* </Transition>
|
|
1722
|
+
* );
|
|
1723
|
+
* ```
|
|
1724
|
+
*
|
|
1725
|
+
* There are 4 main states a Transition can be in:
|
|
1726
|
+
* - `'entering'`
|
|
1727
|
+
* - `'entered'`
|
|
1728
|
+
* - `'exiting'`
|
|
1729
|
+
* - `'exited'`
|
|
1730
|
+
*
|
|
1731
|
+
* Transition state is toggled via the `in` prop. When `true` the component
|
|
1732
|
+
* begins the "Enter" stage. During this stage, the component will shift from
|
|
1733
|
+
* its current transition state, to `'entering'` for the duration of the
|
|
1734
|
+
* transition and then to the `'entered'` stage once it's complete. Let's take
|
|
1735
|
+
* the following example (we'll use the
|
|
1736
|
+
* [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook):
|
|
1737
|
+
*
|
|
1738
|
+
* ```jsx
|
|
1739
|
+
* function App() {
|
|
1740
|
+
* const [inProp, setInProp] = useState(false);
|
|
1741
|
+
* return (
|
|
1742
|
+
* <div>
|
|
1743
|
+
* <Transition in={inProp} timeout={500}>
|
|
1744
|
+
* {state => (
|
|
1745
|
+
* // ...
|
|
1746
|
+
* )}
|
|
1747
|
+
* </Transition>
|
|
1748
|
+
* <button onClick={() => setInProp(true)}>
|
|
1749
|
+
* Click to Enter
|
|
1750
|
+
* </button>
|
|
1751
|
+
* </div>
|
|
1752
|
+
* );
|
|
1753
|
+
* }
|
|
1754
|
+
* ```
|
|
1755
|
+
*
|
|
1756
|
+
* When the button is clicked the component will shift to the `'entering'` state
|
|
1757
|
+
* and stay there for 500ms (the value of `timeout`) before it finally switches
|
|
1758
|
+
* to `'entered'`.
|
|
1759
|
+
*
|
|
1760
|
+
* When `in` is `false` the same thing happens except the state moves from
|
|
1761
|
+
* `'exiting'` to `'exited'`.
|
|
1762
|
+
*/
|
|
1763
|
+
|
|
1764
|
+
var Transition = /*#__PURE__*/function (_React$Component) {
|
|
1765
|
+
_inheritsLoose(Transition, _React$Component);
|
|
1766
|
+
|
|
1767
|
+
function Transition(props, context) {
|
|
1768
|
+
var _this;
|
|
1769
|
+
|
|
1770
|
+
_this = _React$Component.call(this, props, context) || this;
|
|
1771
|
+
var parentGroup = context; // In the context of a TransitionGroup all enters are really appears
|
|
1772
|
+
|
|
1773
|
+
var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;
|
|
1774
|
+
var initialStatus;
|
|
1775
|
+
_this.appearStatus = null;
|
|
1776
|
+
|
|
1777
|
+
if (props.in) {
|
|
1778
|
+
if (appear) {
|
|
1779
|
+
initialStatus = EXITED;
|
|
1780
|
+
_this.appearStatus = ENTERING;
|
|
1781
|
+
} else {
|
|
1782
|
+
initialStatus = ENTERED;
|
|
1783
|
+
}
|
|
1784
|
+
} else {
|
|
1785
|
+
if (props.unmountOnExit || props.mountOnEnter) {
|
|
1786
|
+
initialStatus = UNMOUNTED;
|
|
1787
|
+
} else {
|
|
1788
|
+
initialStatus = EXITED;
|
|
1789
|
+
}
|
|
1790
|
+
}
|
|
1791
|
+
|
|
1792
|
+
_this.state = {
|
|
1793
|
+
status: initialStatus
|
|
1794
|
+
};
|
|
1795
|
+
_this.nextCallback = null;
|
|
1796
|
+
return _this;
|
|
1797
|
+
}
|
|
1798
|
+
|
|
1799
|
+
Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {
|
|
1800
|
+
var nextIn = _ref.in;
|
|
1801
|
+
|
|
1802
|
+
if (nextIn && prevState.status === UNMOUNTED) {
|
|
1803
|
+
return {
|
|
1804
|
+
status: EXITED
|
|
1805
|
+
};
|
|
1806
|
+
}
|
|
1807
|
+
|
|
1808
|
+
return null;
|
|
1809
|
+
} // getSnapshotBeforeUpdate(prevProps) {
|
|
1810
|
+
// let nextStatus = null
|
|
1811
|
+
// if (prevProps !== this.props) {
|
|
1812
|
+
// const { status } = this.state
|
|
1813
|
+
// if (this.props.in) {
|
|
1814
|
+
// if (status !== ENTERING && status !== ENTERED) {
|
|
1815
|
+
// nextStatus = ENTERING
|
|
1816
|
+
// }
|
|
1817
|
+
// } else {
|
|
1818
|
+
// if (status === ENTERING || status === ENTERED) {
|
|
1819
|
+
// nextStatus = EXITING
|
|
1820
|
+
// }
|
|
1821
|
+
// }
|
|
1822
|
+
// }
|
|
1823
|
+
// return { nextStatus }
|
|
1824
|
+
// }
|
|
1825
|
+
;
|
|
1826
|
+
|
|
1827
|
+
var _proto = Transition.prototype;
|
|
1828
|
+
|
|
1829
|
+
_proto.componentDidMount = function componentDidMount() {
|
|
1830
|
+
this.updateStatus(true, this.appearStatus);
|
|
1831
|
+
};
|
|
1832
|
+
|
|
1833
|
+
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
|
1834
|
+
var nextStatus = null;
|
|
1835
|
+
|
|
1836
|
+
if (prevProps !== this.props) {
|
|
1837
|
+
var status = this.state.status;
|
|
1838
|
+
|
|
1839
|
+
if (this.props.in) {
|
|
1840
|
+
if (status !== ENTERING && status !== ENTERED) {
|
|
1841
|
+
nextStatus = ENTERING;
|
|
1842
|
+
}
|
|
1843
|
+
} else {
|
|
1844
|
+
if (status === ENTERING || status === ENTERED) {
|
|
1845
|
+
nextStatus = EXITING;
|
|
1846
|
+
}
|
|
1847
|
+
}
|
|
1848
|
+
}
|
|
1849
|
+
|
|
1850
|
+
this.updateStatus(false, nextStatus);
|
|
1851
|
+
};
|
|
1852
|
+
|
|
1853
|
+
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
1854
|
+
this.cancelNextCallback();
|
|
1855
|
+
};
|
|
1856
|
+
|
|
1857
|
+
_proto.getTimeouts = function getTimeouts() {
|
|
1858
|
+
var timeout = this.props.timeout;
|
|
1859
|
+
var exit, enter, appear;
|
|
1860
|
+
exit = enter = appear = timeout;
|
|
1861
|
+
|
|
1862
|
+
if (timeout != null && typeof timeout !== 'number') {
|
|
1863
|
+
exit = timeout.exit;
|
|
1864
|
+
enter = timeout.enter; // TODO: remove fallback for next major
|
|
1865
|
+
|
|
1866
|
+
appear = timeout.appear !== undefined ? timeout.appear : enter;
|
|
1867
|
+
}
|
|
1868
|
+
|
|
1869
|
+
return {
|
|
1870
|
+
exit: exit,
|
|
1871
|
+
enter: enter,
|
|
1872
|
+
appear: appear
|
|
1873
|
+
};
|
|
1874
|
+
};
|
|
1875
|
+
|
|
1876
|
+
_proto.updateStatus = function updateStatus(mounting, nextStatus) {
|
|
1877
|
+
if (mounting === void 0) {
|
|
1878
|
+
mounting = false;
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
if (nextStatus !== null) {
|
|
1882
|
+
// nextStatus will always be ENTERING or EXITING.
|
|
1883
|
+
this.cancelNextCallback();
|
|
1884
|
+
|
|
1885
|
+
if (nextStatus === ENTERING) {
|
|
1886
|
+
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
1887
|
+
var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this); // https://github.com/reactjs/react-transition-group/pull/749
|
|
1888
|
+
// With unmountOnExit or mountOnEnter, the enter animation should happen at the transition between `exited` and `entering`.
|
|
1889
|
+
// To make the animation happen, we have to separate each rendering and avoid being processed as batched.
|
|
1890
|
+
|
|
1891
|
+
if (node) forceReflow(node);
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
this.performEnter(mounting);
|
|
1895
|
+
} else {
|
|
1896
|
+
this.performExit();
|
|
1897
|
+
}
|
|
1898
|
+
} else if (this.props.unmountOnExit && this.state.status === EXITED) {
|
|
1899
|
+
this.setState({
|
|
1900
|
+
status: UNMOUNTED
|
|
1901
|
+
});
|
|
1902
|
+
}
|
|
1903
|
+
};
|
|
1904
|
+
|
|
1905
|
+
_proto.performEnter = function performEnter(mounting) {
|
|
1906
|
+
var _this2 = this;
|
|
1907
|
+
|
|
1908
|
+
var enter = this.props.enter;
|
|
1909
|
+
var appearing = this.context ? this.context.isMounting : mounting;
|
|
1910
|
+
|
|
1911
|
+
var _ref2 = this.props.nodeRef ? [appearing] : [ReactDOM.findDOMNode(this), appearing],
|
|
1912
|
+
maybeNode = _ref2[0],
|
|
1913
|
+
maybeAppearing = _ref2[1];
|
|
1914
|
+
|
|
1915
|
+
var timeouts = this.getTimeouts();
|
|
1916
|
+
var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED
|
|
1917
|
+
// if we are mounting and running this it means appear _must_ be set
|
|
1918
|
+
|
|
1919
|
+
if (!mounting && !enter || config.disabled) {
|
|
1920
|
+
this.safeSetState({
|
|
1921
|
+
status: ENTERED
|
|
1922
|
+
}, function () {
|
|
1923
|
+
_this2.props.onEntered(maybeNode);
|
|
1924
|
+
});
|
|
1925
|
+
return;
|
|
1926
|
+
}
|
|
1927
|
+
|
|
1928
|
+
this.props.onEnter(maybeNode, maybeAppearing);
|
|
1929
|
+
this.safeSetState({
|
|
1930
|
+
status: ENTERING
|
|
1931
|
+
}, function () {
|
|
1932
|
+
_this2.props.onEntering(maybeNode, maybeAppearing);
|
|
1933
|
+
|
|
1934
|
+
_this2.onTransitionEnd(enterTimeout, function () {
|
|
1935
|
+
_this2.safeSetState({
|
|
1936
|
+
status: ENTERED
|
|
1937
|
+
}, function () {
|
|
1938
|
+
_this2.props.onEntered(maybeNode, maybeAppearing);
|
|
1939
|
+
});
|
|
1940
|
+
});
|
|
1941
|
+
});
|
|
1942
|
+
};
|
|
1943
|
+
|
|
1944
|
+
_proto.performExit = function performExit() {
|
|
1945
|
+
var _this3 = this;
|
|
1946
|
+
|
|
1947
|
+
var exit = this.props.exit;
|
|
1948
|
+
var timeouts = this.getTimeouts();
|
|
1949
|
+
var maybeNode = this.props.nodeRef ? undefined : ReactDOM.findDOMNode(this); // no exit animation skip right to EXITED
|
|
1950
|
+
|
|
1951
|
+
if (!exit || config.disabled) {
|
|
1952
|
+
this.safeSetState({
|
|
1953
|
+
status: EXITED
|
|
1954
|
+
}, function () {
|
|
1955
|
+
_this3.props.onExited(maybeNode);
|
|
1956
|
+
});
|
|
1957
|
+
return;
|
|
1958
|
+
}
|
|
1959
|
+
|
|
1960
|
+
this.props.onExit(maybeNode);
|
|
1961
|
+
this.safeSetState({
|
|
1962
|
+
status: EXITING
|
|
1963
|
+
}, function () {
|
|
1964
|
+
_this3.props.onExiting(maybeNode);
|
|
1965
|
+
|
|
1966
|
+
_this3.onTransitionEnd(timeouts.exit, function () {
|
|
1967
|
+
_this3.safeSetState({
|
|
1968
|
+
status: EXITED
|
|
1969
|
+
}, function () {
|
|
1970
|
+
_this3.props.onExited(maybeNode);
|
|
1971
|
+
});
|
|
1972
|
+
});
|
|
1973
|
+
});
|
|
1974
|
+
};
|
|
1975
|
+
|
|
1976
|
+
_proto.cancelNextCallback = function cancelNextCallback() {
|
|
1977
|
+
if (this.nextCallback !== null) {
|
|
1978
|
+
this.nextCallback.cancel();
|
|
1979
|
+
this.nextCallback = null;
|
|
1980
|
+
}
|
|
1981
|
+
};
|
|
1982
|
+
|
|
1983
|
+
_proto.safeSetState = function safeSetState(nextState, callback) {
|
|
1984
|
+
// This shouldn't be necessary, but there are weird race conditions with
|
|
1985
|
+
// setState callbacks and unmounting in testing, so always make sure that
|
|
1986
|
+
// we can cancel any pending setState callbacks after we unmount.
|
|
1987
|
+
callback = this.setNextCallback(callback);
|
|
1988
|
+
this.setState(nextState, callback);
|
|
1989
|
+
};
|
|
1990
|
+
|
|
1991
|
+
_proto.setNextCallback = function setNextCallback(callback) {
|
|
1992
|
+
var _this4 = this;
|
|
1993
|
+
|
|
1994
|
+
var active = true;
|
|
1995
|
+
|
|
1996
|
+
this.nextCallback = function (event) {
|
|
1997
|
+
if (active) {
|
|
1998
|
+
active = false;
|
|
1999
|
+
_this4.nextCallback = null;
|
|
2000
|
+
callback(event);
|
|
2001
|
+
}
|
|
2002
|
+
};
|
|
2003
|
+
|
|
2004
|
+
this.nextCallback.cancel = function () {
|
|
2005
|
+
active = false;
|
|
2006
|
+
};
|
|
2007
|
+
|
|
2008
|
+
return this.nextCallback;
|
|
2009
|
+
};
|
|
2010
|
+
|
|
2011
|
+
_proto.onTransitionEnd = function onTransitionEnd(timeout, handler) {
|
|
2012
|
+
this.setNextCallback(handler);
|
|
2013
|
+
var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this);
|
|
2014
|
+
var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;
|
|
2015
|
+
|
|
2016
|
+
if (!node || doesNotHaveTimeoutOrListener) {
|
|
2017
|
+
setTimeout(this.nextCallback, 0);
|
|
2018
|
+
return;
|
|
2019
|
+
}
|
|
2020
|
+
|
|
2021
|
+
if (this.props.addEndListener) {
|
|
2022
|
+
var _ref3 = this.props.nodeRef ? [this.nextCallback] : [node, this.nextCallback],
|
|
2023
|
+
maybeNode = _ref3[0],
|
|
2024
|
+
maybeNextCallback = _ref3[1];
|
|
2025
|
+
|
|
2026
|
+
this.props.addEndListener(maybeNode, maybeNextCallback);
|
|
2027
|
+
}
|
|
2028
|
+
|
|
2029
|
+
if (timeout != null) {
|
|
2030
|
+
setTimeout(this.nextCallback, timeout);
|
|
2031
|
+
}
|
|
2032
|
+
};
|
|
2033
|
+
|
|
2034
|
+
_proto.render = function render() {
|
|
2035
|
+
var status = this.state.status;
|
|
2036
|
+
|
|
2037
|
+
if (status === UNMOUNTED) {
|
|
2038
|
+
return null;
|
|
2039
|
+
}
|
|
2040
|
+
|
|
2041
|
+
var _this$props = this.props,
|
|
2042
|
+
children = _this$props.children;
|
|
2043
|
+
_this$props.in;
|
|
2044
|
+
_this$props.mountOnEnter;
|
|
2045
|
+
_this$props.unmountOnExit;
|
|
2046
|
+
_this$props.appear;
|
|
2047
|
+
_this$props.enter;
|
|
2048
|
+
_this$props.exit;
|
|
2049
|
+
_this$props.timeout;
|
|
2050
|
+
_this$props.addEndListener;
|
|
2051
|
+
_this$props.onEnter;
|
|
2052
|
+
_this$props.onEntering;
|
|
2053
|
+
_this$props.onEntered;
|
|
2054
|
+
_this$props.onExit;
|
|
2055
|
+
_this$props.onExiting;
|
|
2056
|
+
_this$props.onExited;
|
|
2057
|
+
_this$props.nodeRef;
|
|
2058
|
+
var childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
2059
|
+
|
|
2060
|
+
return (
|
|
2061
|
+
/*#__PURE__*/
|
|
2062
|
+
// allows for nested Transitions
|
|
2063
|
+
React.createElement(TransitionGroupContext.Provider, {
|
|
2064
|
+
value: null
|
|
2065
|
+
}, typeof children === 'function' ? children(status, childProps) : React.cloneElement(React.Children.only(children), childProps))
|
|
2066
|
+
);
|
|
2067
|
+
};
|
|
2068
|
+
|
|
2069
|
+
return Transition;
|
|
2070
|
+
}(React.Component);
|
|
2071
|
+
|
|
2072
|
+
Transition.contextType = TransitionGroupContext;
|
|
2073
|
+
Transition.propTypes = {}; // Name the function so it is clearer in the documentation
|
|
2074
|
+
|
|
2075
|
+
function noop() {}
|
|
2076
|
+
|
|
2077
|
+
Transition.defaultProps = {
|
|
2078
|
+
in: false,
|
|
2079
|
+
mountOnEnter: false,
|
|
2080
|
+
unmountOnExit: false,
|
|
2081
|
+
appear: false,
|
|
2082
|
+
enter: true,
|
|
2083
|
+
exit: true,
|
|
2084
|
+
onEnter: noop,
|
|
2085
|
+
onEntering: noop,
|
|
2086
|
+
onEntered: noop,
|
|
2087
|
+
onExit: noop,
|
|
2088
|
+
onExiting: noop,
|
|
2089
|
+
onExited: noop
|
|
2090
|
+
};
|
|
2091
|
+
Transition.UNMOUNTED = UNMOUNTED;
|
|
2092
|
+
Transition.EXITED = EXITED;
|
|
2093
|
+
Transition.ENTERING = ENTERING;
|
|
2094
|
+
Transition.ENTERED = ENTERED;
|
|
2095
|
+
Transition.EXITING = EXITING;
|
|
2096
|
+
var Transition$1 = Transition;
|
|
2097
|
+
|
|
2098
|
+
var _addClass = function addClass$1(node, classes) {
|
|
2099
|
+
return node && classes && classes.split(' ').forEach(function (c) {
|
|
2100
|
+
return addClass(node, c);
|
|
2101
|
+
});
|
|
2102
|
+
};
|
|
2103
|
+
|
|
2104
|
+
var removeClass = function removeClass(node, classes) {
|
|
2105
|
+
return node && classes && classes.split(' ').forEach(function (c) {
|
|
2106
|
+
return removeClass$1(node, c);
|
|
2107
|
+
});
|
|
2108
|
+
};
|
|
2109
|
+
/**
|
|
2110
|
+
* A transition component inspired by the excellent
|
|
2111
|
+
* [ng-animate](https://docs.angularjs.org/api/ngAnimate) library, you should
|
|
2112
|
+
* use it if you're using CSS transitions or animations. It's built upon the
|
|
2113
|
+
* [`Transition`](https://reactcommunity.org/react-transition-group/transition)
|
|
2114
|
+
* component, so it inherits all of its props.
|
|
2115
|
+
*
|
|
2116
|
+
* `CSSTransition` applies a pair of class names during the `appear`, `enter`,
|
|
2117
|
+
* and `exit` states of the transition. The first class is applied and then a
|
|
2118
|
+
* second `*-active` class in order to activate the CSS transition. After the
|
|
2119
|
+
* transition, matching `*-done` class names are applied to persist the
|
|
2120
|
+
* transition state.
|
|
2121
|
+
*
|
|
2122
|
+
* ```jsx
|
|
2123
|
+
* function App() {
|
|
2124
|
+
* const [inProp, setInProp] = useState(false);
|
|
2125
|
+
* return (
|
|
2126
|
+
* <div>
|
|
2127
|
+
* <CSSTransition in={inProp} timeout={200} classNames="my-node">
|
|
2128
|
+
* <div>
|
|
2129
|
+
* {"I'll receive my-node-* classes"}
|
|
2130
|
+
* </div>
|
|
2131
|
+
* </CSSTransition>
|
|
2132
|
+
* <button type="button" onClick={() => setInProp(true)}>
|
|
2133
|
+
* Click to Enter
|
|
2134
|
+
* </button>
|
|
2135
|
+
* </div>
|
|
2136
|
+
* );
|
|
2137
|
+
* }
|
|
2138
|
+
* ```
|
|
2139
|
+
*
|
|
2140
|
+
* When the `in` prop is set to `true`, the child component will first receive
|
|
2141
|
+
* the class `example-enter`, then the `example-enter-active` will be added in
|
|
2142
|
+
* the next tick. `CSSTransition` [forces a
|
|
2143
|
+
* reflow](https://github.com/reactjs/react-transition-group/blob/5007303e729a74be66a21c3e2205e4916821524b/src/CSSTransition.js#L208-L215)
|
|
2144
|
+
* between before adding the `example-enter-active`. This is an important trick
|
|
2145
|
+
* because it allows us to transition between `example-enter` and
|
|
2146
|
+
* `example-enter-active` even though they were added immediately one after
|
|
2147
|
+
* another. Most notably, this is what makes it possible for us to animate
|
|
2148
|
+
* _appearance_.
|
|
2149
|
+
*
|
|
2150
|
+
* ```css
|
|
2151
|
+
* .my-node-enter {
|
|
2152
|
+
* opacity: 0;
|
|
2153
|
+
* }
|
|
2154
|
+
* .my-node-enter-active {
|
|
2155
|
+
* opacity: 1;
|
|
2156
|
+
* transition: opacity 200ms;
|
|
2157
|
+
* }
|
|
2158
|
+
* .my-node-exit {
|
|
2159
|
+
* opacity: 1;
|
|
2160
|
+
* }
|
|
2161
|
+
* .my-node-exit-active {
|
|
2162
|
+
* opacity: 0;
|
|
2163
|
+
* transition: opacity 200ms;
|
|
2164
|
+
* }
|
|
2165
|
+
* ```
|
|
2166
|
+
*
|
|
2167
|
+
* `*-active` classes represent which styles you want to animate **to**, so it's
|
|
2168
|
+
* important to add `transition` declaration only to them, otherwise transitions
|
|
2169
|
+
* might not behave as intended! This might not be obvious when the transitions
|
|
2170
|
+
* are symmetrical, i.e. when `*-enter-active` is the same as `*-exit`, like in
|
|
2171
|
+
* the example above (minus `transition`), but it becomes apparent in more
|
|
2172
|
+
* complex transitions.
|
|
2173
|
+
*
|
|
2174
|
+
* **Note**: If you're using the
|
|
2175
|
+
* [`appear`](http://reactcommunity.org/react-transition-group/transition#Transition-prop-appear)
|
|
2176
|
+
* prop, make sure to define styles for `.appear-*` classes as well.
|
|
2177
|
+
*/
|
|
2178
|
+
|
|
2179
|
+
|
|
2180
|
+
var CSSTransition = /*#__PURE__*/function (_React$Component) {
|
|
2181
|
+
_inheritsLoose(CSSTransition, _React$Component);
|
|
2182
|
+
|
|
2183
|
+
function CSSTransition() {
|
|
2184
|
+
var _this;
|
|
2185
|
+
|
|
2186
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
2187
|
+
args[_key] = arguments[_key];
|
|
2188
|
+
}
|
|
2189
|
+
|
|
2190
|
+
_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
|
2191
|
+
_this.appliedClasses = {
|
|
2192
|
+
appear: {},
|
|
2193
|
+
enter: {},
|
|
2194
|
+
exit: {}
|
|
2195
|
+
};
|
|
2196
|
+
|
|
2197
|
+
_this.onEnter = function (maybeNode, maybeAppearing) {
|
|
2198
|
+
var _this$resolveArgument = _this.resolveArguments(maybeNode, maybeAppearing),
|
|
2199
|
+
node = _this$resolveArgument[0],
|
|
2200
|
+
appearing = _this$resolveArgument[1];
|
|
2201
|
+
|
|
2202
|
+
_this.removeClasses(node, 'exit');
|
|
2203
|
+
|
|
2204
|
+
_this.addClass(node, appearing ? 'appear' : 'enter', 'base');
|
|
2205
|
+
|
|
2206
|
+
if (_this.props.onEnter) {
|
|
2207
|
+
_this.props.onEnter(maybeNode, maybeAppearing);
|
|
2208
|
+
}
|
|
2209
|
+
};
|
|
2210
|
+
|
|
2211
|
+
_this.onEntering = function (maybeNode, maybeAppearing) {
|
|
2212
|
+
var _this$resolveArgument2 = _this.resolveArguments(maybeNode, maybeAppearing),
|
|
2213
|
+
node = _this$resolveArgument2[0],
|
|
2214
|
+
appearing = _this$resolveArgument2[1];
|
|
2215
|
+
|
|
2216
|
+
var type = appearing ? 'appear' : 'enter';
|
|
2217
|
+
|
|
2218
|
+
_this.addClass(node, type, 'active');
|
|
2219
|
+
|
|
2220
|
+
if (_this.props.onEntering) {
|
|
2221
|
+
_this.props.onEntering(maybeNode, maybeAppearing);
|
|
2222
|
+
}
|
|
2223
|
+
};
|
|
2224
|
+
|
|
2225
|
+
_this.onEntered = function (maybeNode, maybeAppearing) {
|
|
2226
|
+
var _this$resolveArgument3 = _this.resolveArguments(maybeNode, maybeAppearing),
|
|
2227
|
+
node = _this$resolveArgument3[0],
|
|
2228
|
+
appearing = _this$resolveArgument3[1];
|
|
2229
|
+
|
|
2230
|
+
var type = appearing ? 'appear' : 'enter';
|
|
2231
|
+
|
|
2232
|
+
_this.removeClasses(node, type);
|
|
2233
|
+
|
|
2234
|
+
_this.addClass(node, type, 'done');
|
|
2235
|
+
|
|
2236
|
+
if (_this.props.onEntered) {
|
|
2237
|
+
_this.props.onEntered(maybeNode, maybeAppearing);
|
|
2238
|
+
}
|
|
2239
|
+
};
|
|
2240
|
+
|
|
2241
|
+
_this.onExit = function (maybeNode) {
|
|
2242
|
+
var _this$resolveArgument4 = _this.resolveArguments(maybeNode),
|
|
2243
|
+
node = _this$resolveArgument4[0];
|
|
2244
|
+
|
|
2245
|
+
_this.removeClasses(node, 'appear');
|
|
2246
|
+
|
|
2247
|
+
_this.removeClasses(node, 'enter');
|
|
2248
|
+
|
|
2249
|
+
_this.addClass(node, 'exit', 'base');
|
|
2250
|
+
|
|
2251
|
+
if (_this.props.onExit) {
|
|
2252
|
+
_this.props.onExit(maybeNode);
|
|
2253
|
+
}
|
|
2254
|
+
};
|
|
2255
|
+
|
|
2256
|
+
_this.onExiting = function (maybeNode) {
|
|
2257
|
+
var _this$resolveArgument5 = _this.resolveArguments(maybeNode),
|
|
2258
|
+
node = _this$resolveArgument5[0];
|
|
2259
|
+
|
|
2260
|
+
_this.addClass(node, 'exit', 'active');
|
|
2261
|
+
|
|
2262
|
+
if (_this.props.onExiting) {
|
|
2263
|
+
_this.props.onExiting(maybeNode);
|
|
2264
|
+
}
|
|
2265
|
+
};
|
|
2266
|
+
|
|
2267
|
+
_this.onExited = function (maybeNode) {
|
|
2268
|
+
var _this$resolveArgument6 = _this.resolveArguments(maybeNode),
|
|
2269
|
+
node = _this$resolveArgument6[0];
|
|
2270
|
+
|
|
2271
|
+
_this.removeClasses(node, 'exit');
|
|
2272
|
+
|
|
2273
|
+
_this.addClass(node, 'exit', 'done');
|
|
2274
|
+
|
|
2275
|
+
if (_this.props.onExited) {
|
|
2276
|
+
_this.props.onExited(maybeNode);
|
|
2277
|
+
}
|
|
2278
|
+
};
|
|
2279
|
+
|
|
2280
|
+
_this.resolveArguments = function (maybeNode, maybeAppearing) {
|
|
2281
|
+
return _this.props.nodeRef ? [_this.props.nodeRef.current, maybeNode] // here `maybeNode` is actually `appearing`
|
|
2282
|
+
: [maybeNode, maybeAppearing];
|
|
2283
|
+
};
|
|
2284
|
+
|
|
2285
|
+
_this.getClassNames = function (type) {
|
|
2286
|
+
var classNames = _this.props.classNames;
|
|
2287
|
+
var isStringClassNames = typeof classNames === 'string';
|
|
2288
|
+
var prefix = isStringClassNames && classNames ? classNames + "-" : '';
|
|
2289
|
+
var baseClassName = isStringClassNames ? "" + prefix + type : classNames[type];
|
|
2290
|
+
var activeClassName = isStringClassNames ? baseClassName + "-active" : classNames[type + "Active"];
|
|
2291
|
+
var doneClassName = isStringClassNames ? baseClassName + "-done" : classNames[type + "Done"];
|
|
2292
|
+
return {
|
|
2293
|
+
baseClassName: baseClassName,
|
|
2294
|
+
activeClassName: activeClassName,
|
|
2295
|
+
doneClassName: doneClassName
|
|
2296
|
+
};
|
|
2297
|
+
};
|
|
2298
|
+
|
|
2299
|
+
return _this;
|
|
2300
|
+
}
|
|
2301
|
+
|
|
2302
|
+
var _proto = CSSTransition.prototype;
|
|
2303
|
+
|
|
2304
|
+
_proto.addClass = function addClass(node, type, phase) {
|
|
2305
|
+
var className = this.getClassNames(type)[phase + "ClassName"];
|
|
2306
|
+
|
|
2307
|
+
var _this$getClassNames = this.getClassNames('enter'),
|
|
2308
|
+
doneClassName = _this$getClassNames.doneClassName;
|
|
2309
|
+
|
|
2310
|
+
if (type === 'appear' && phase === 'done' && doneClassName) {
|
|
2311
|
+
className += " " + doneClassName;
|
|
2312
|
+
} // This is to force a repaint,
|
|
2313
|
+
// which is necessary in order to transition styles when adding a class name.
|
|
2314
|
+
|
|
2315
|
+
|
|
2316
|
+
if (phase === 'active') {
|
|
2317
|
+
if (node) forceReflow(node);
|
|
2318
|
+
}
|
|
2319
|
+
|
|
2320
|
+
if (className) {
|
|
2321
|
+
this.appliedClasses[type][phase] = className;
|
|
2322
|
+
|
|
2323
|
+
_addClass(node, className);
|
|
2324
|
+
}
|
|
2325
|
+
};
|
|
2326
|
+
|
|
2327
|
+
_proto.removeClasses = function removeClasses(node, type) {
|
|
2328
|
+
var _this$appliedClasses$ = this.appliedClasses[type],
|
|
2329
|
+
baseClassName = _this$appliedClasses$.base,
|
|
2330
|
+
activeClassName = _this$appliedClasses$.active,
|
|
2331
|
+
doneClassName = _this$appliedClasses$.done;
|
|
2332
|
+
this.appliedClasses[type] = {};
|
|
2333
|
+
|
|
2334
|
+
if (baseClassName) {
|
|
2335
|
+
removeClass(node, baseClassName);
|
|
2336
|
+
}
|
|
2337
|
+
|
|
2338
|
+
if (activeClassName) {
|
|
2339
|
+
removeClass(node, activeClassName);
|
|
2340
|
+
}
|
|
2341
|
+
|
|
2342
|
+
if (doneClassName) {
|
|
2343
|
+
removeClass(node, doneClassName);
|
|
2344
|
+
}
|
|
2345
|
+
};
|
|
2346
|
+
|
|
2347
|
+
_proto.render = function render() {
|
|
2348
|
+
var _this$props = this.props;
|
|
2349
|
+
_this$props.classNames;
|
|
2350
|
+
var props = _objectWithoutPropertiesLoose(_this$props, ["classNames"]);
|
|
2351
|
+
|
|
2352
|
+
return /*#__PURE__*/React.createElement(Transition$1, _extends({}, props, {
|
|
2353
|
+
onEnter: this.onEnter,
|
|
2354
|
+
onEntered: this.onEntered,
|
|
2355
|
+
onEntering: this.onEntering,
|
|
2356
|
+
onExit: this.onExit,
|
|
2357
|
+
onExiting: this.onExiting,
|
|
2358
|
+
onExited: this.onExited
|
|
2359
|
+
}));
|
|
2360
|
+
};
|
|
2361
|
+
|
|
2362
|
+
return CSSTransition;
|
|
2363
|
+
}(React.Component);
|
|
2364
|
+
|
|
2365
|
+
CSSTransition.defaultProps = {
|
|
2366
|
+
classNames: ''
|
|
2367
|
+
};
|
|
2368
|
+
CSSTransition.propTypes = {};
|
|
2369
|
+
var CSSTransition$1 = CSSTransition;
|
|
2370
|
+
|
|
1572
2371
|
var Body = function Body(_ref) {
|
|
1573
2372
|
var children = _ref.children,
|
|
1574
2373
|
_ref$className = _ref.className,
|
|
@@ -1616,12 +2415,12 @@ var Slider = function Slider(_ref) {
|
|
|
1616
2415
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
1617
2416
|
children = _ref.children,
|
|
1618
2417
|
otherProps = _objectWithoutProperties(_ref, _excluded$1);
|
|
1619
|
-
|
|
2418
|
+
useHotkeys(SHORTCUTS.closePane.sequence, onClose, {
|
|
1620
2419
|
mode: "global"
|
|
1621
2420
|
});
|
|
1622
2421
|
return /*#__PURE__*/React.createElement(Portal, {
|
|
1623
2422
|
rootId: "neeto-filters-portal"
|
|
1624
|
-
}, /*#__PURE__*/React.createElement(CSSTransition, {
|
|
2423
|
+
}, /*#__PURE__*/React.createElement(CSSTransition$1, {
|
|
1625
2424
|
unmountOnExit: true,
|
|
1626
2425
|
appear: isOpen,
|
|
1627
2426
|
classNames: "neeto-filters-slider",
|
|
@@ -1629,7 +2428,7 @@ var Slider = function Slider(_ref) {
|
|
|
1629
2428
|
timeout: 300
|
|
1630
2429
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1631
2430
|
className: "neeto-filters-slider__pane"
|
|
1632
|
-
}, /*#__PURE__*/React.createElement("div", _extends({
|
|
2431
|
+
}, /*#__PURE__*/React.createElement("div", _extends$1({
|
|
1633
2432
|
className: classnames("neeto-filters-slider__wrapper", _defineProperty({
|
|
1634
2433
|
"neeto-filters-slider__wrapper--xsmall": size === SIZES.xsmall,
|
|
1635
2434
|
"neeto-filters-slider__wrapper--small": size === SIZES.small,
|
|
@@ -1855,7 +2654,7 @@ var Boolean = function Boolean(_ref) {
|
|
|
1855
2654
|
};
|
|
1856
2655
|
return /*#__PURE__*/React.createElement("div", {
|
|
1857
2656
|
className: "neeto-filters-pane-filter__item-wrapper"
|
|
1858
|
-
}, /*#__PURE__*/React.createElement(Select, _extends({
|
|
2657
|
+
}, /*#__PURE__*/React.createElement(Select, _extends$1({
|
|
1859
2658
|
autoFocus: autoFocus,
|
|
1860
2659
|
label: label,
|
|
1861
2660
|
options: options,
|
|
@@ -1935,7 +2734,7 @@ var Datetime = function Datetime(_ref) {
|
|
|
1935
2734
|
}, [filter]);
|
|
1936
2735
|
return /*#__PURE__*/React.createElement("div", {
|
|
1937
2736
|
className: "neeto-filters-pane-filter__item-wrapper"
|
|
1938
|
-
}, /*#__PURE__*/React.createElement(Select, _extends({
|
|
2737
|
+
}, /*#__PURE__*/React.createElement(Select, _extends$1({
|
|
1939
2738
|
autoFocus: autoFocus,
|
|
1940
2739
|
label: label,
|
|
1941
2740
|
isClearable: true,
|
|
@@ -1952,7 +2751,7 @@ var Datetime = function Datetime(_ref) {
|
|
|
1952
2751
|
}
|
|
1953
2752
|
}, {
|
|
1954
2753
|
onChange: handleChange
|
|
1955
|
-
})), isDatePickerShown && /*#__PURE__*/React.createElement(DatePicker, _extends({
|
|
2754
|
+
})), isDatePickerShown && /*#__PURE__*/React.createElement(DatePicker, _extends$1({
|
|
1956
2755
|
"data-cy": "neeto-filters-".concat(hyphenate(key), "-date-range"),
|
|
1957
2756
|
getPopupContainer: prop("parentNode"),
|
|
1958
2757
|
type: (selectedRule === null || selectedRule === void 0 ? void 0 : selectedRule.value) === "custom-date-range" ? "range" : "date",
|
|
@@ -2006,7 +2805,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
2006
2805
|
};
|
|
2007
2806
|
return /*#__PURE__*/React.createElement("div", {
|
|
2008
2807
|
className: "neeto-filters-pane-filter__item-wrapper"
|
|
2009
|
-
}, /*#__PURE__*/React.createElement(Select, _extends({
|
|
2808
|
+
}, /*#__PURE__*/React.createElement(Select, _extends$1({
|
|
2010
2809
|
autoFocus: autoFocus,
|
|
2011
2810
|
label: label,
|
|
2012
2811
|
options: options,
|
|
@@ -2095,7 +2894,7 @@ var SingleDatetime = function SingleDatetime(_ref) {
|
|
|
2095
2894
|
};
|
|
2096
2895
|
return /*#__PURE__*/React.createElement("div", {
|
|
2097
2896
|
className: "neeto-filters-pane-filter__item-wrapper"
|
|
2098
|
-
}, /*#__PURE__*/React.createElement(Select, _extends({
|
|
2897
|
+
}, /*#__PURE__*/React.createElement(Select, _extends$1({
|
|
2099
2898
|
label: label,
|
|
2100
2899
|
"data-cy": "neeto-filters-".concat(hyphenate(key), "-filter-rule"),
|
|
2101
2900
|
defaultValue: SINGLE_DATE_OPTIONS[0],
|
|
@@ -2108,7 +2907,7 @@ var SingleDatetime = function SingleDatetime(_ref) {
|
|
|
2108
2907
|
}
|
|
2109
2908
|
}, {
|
|
2110
2909
|
onChange: handleRuleChange
|
|
2111
|
-
})), /*#__PURE__*/React.createElement(DatePicker, _extends({
|
|
2910
|
+
})), /*#__PURE__*/React.createElement(DatePicker, _extends$1({
|
|
2112
2911
|
autoFocus: autoFocus,
|
|
2113
2912
|
value: value,
|
|
2114
2913
|
"data-cy": "neeto-filters-".concat(hyphenate(key), "-filter"),
|
|
@@ -2177,7 +2976,7 @@ var SingleTime = function SingleTime(_ref) {
|
|
|
2177
2976
|
};
|
|
2178
2977
|
return /*#__PURE__*/React.createElement("div", {
|
|
2179
2978
|
className: "neeto-filters-pane-filter__item-wrapper"
|
|
2180
|
-
}, /*#__PURE__*/React.createElement(Select, _extends({
|
|
2979
|
+
}, /*#__PURE__*/React.createElement(Select, _extends$1({
|
|
2181
2980
|
label: label,
|
|
2182
2981
|
defaultValue: SINGLE_TIME_OPTIONS[0],
|
|
2183
2982
|
options: SINGLE_TIME_OPTIONS,
|
|
@@ -2189,7 +2988,7 @@ var SingleTime = function SingleTime(_ref) {
|
|
|
2189
2988
|
}
|
|
2190
2989
|
}, {
|
|
2191
2990
|
onChange: handleRuleChange
|
|
2192
|
-
})), /*#__PURE__*/React.createElement(TimePicker, _extends({
|
|
2991
|
+
})), /*#__PURE__*/React.createElement(TimePicker, _extends$1({
|
|
2193
2992
|
autoFocus: autoFocus,
|
|
2194
2993
|
value: value,
|
|
2195
2994
|
use12Hours: true,
|
|
@@ -2276,7 +3075,7 @@ var Text = function Text(_ref) {
|
|
|
2276
3075
|
}, [debouncedInputValue]);
|
|
2277
3076
|
return /*#__PURE__*/React.createElement("div", {
|
|
2278
3077
|
className: "neeto-filters-pane-filter__item-wrapper"
|
|
2279
|
-
}, showRuleSelector && /*#__PURE__*/React.createElement(Select, _extends({
|
|
3078
|
+
}, showRuleSelector && /*#__PURE__*/React.createElement(Select, _extends$1({
|
|
2280
3079
|
label: label,
|
|
2281
3080
|
"data-cy": "neeto-filters-".concat(hyphenate(key), "-filter-rule"),
|
|
2282
3081
|
defaultValue: ruleOptions[0],
|
|
@@ -2288,7 +3087,7 @@ var Text = function Text(_ref) {
|
|
|
2288
3087
|
labelProps: {
|
|
2289
3088
|
helpIconProps: buildHelpIconProps(helpIconProps)
|
|
2290
3089
|
}
|
|
2291
|
-
})), /*#__PURE__*/React.createElement(Input$1, _extends({
|
|
3090
|
+
})), /*#__PURE__*/React.createElement(Input$1, _extends$1({
|
|
2292
3091
|
autoFocus: autoFocus,
|
|
2293
3092
|
"data-cy": "neeto-filters-".concat(hyphenate(key), "-filter"),
|
|
2294
3093
|
label: !showRuleSelector && label,
|
|
@@ -2353,7 +3152,7 @@ var Time = function Time(_ref) {
|
|
|
2353
3152
|
};
|
|
2354
3153
|
return /*#__PURE__*/React.createElement("div", {
|
|
2355
3154
|
className: "neeto-filters-pane-filter__item-wrapper"
|
|
2356
|
-
}, /*#__PURE__*/React.createElement(Select, _extends({
|
|
3155
|
+
}, /*#__PURE__*/React.createElement(Select, _extends$1({
|
|
2357
3156
|
autoFocus: autoFocus,
|
|
2358
3157
|
label: label,
|
|
2359
3158
|
value: value,
|
|
@@ -2370,7 +3169,7 @@ var Time = function Time(_ref) {
|
|
|
2370
3169
|
}
|
|
2371
3170
|
}, {
|
|
2372
3171
|
onChange: handleChange
|
|
2373
|
-
})), isCustomTimeRangeShown && /*#__PURE__*/React.createElement(TimePicker, _extends({
|
|
3172
|
+
})), isCustomTimeRangeShown && /*#__PURE__*/React.createElement(TimePicker, _extends$1({
|
|
2374
3173
|
use12Hours: true,
|
|
2375
3174
|
"data-cy": "neeto-filters-".concat(hyphenate(key), "-date-range"),
|
|
2376
3175
|
format: "h:mm A",
|
|
@@ -2464,8 +3263,8 @@ var Item = function Item(_ref) {
|
|
|
2464
3263
|
};
|
|
2465
3264
|
|
|
2466
3265
|
var _excluded = ["size", "isOpen", "onClose", "columns", "onChange", "isSearchable", "keyword", "onSelectorsChange", "childrenKeys", "children"];
|
|
2467
|
-
function ownKeys$1(
|
|
2468
|
-
function _objectSpread$1(
|
|
3266
|
+
function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3267
|
+
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2469
3268
|
var Pane = function Pane(_ref) {
|
|
2470
3269
|
var size = _ref.size,
|
|
2471
3270
|
isOpen = _ref.isOpen,
|
|
@@ -2556,7 +3355,7 @@ var Pane = function Pane(_ref) {
|
|
|
2556
3355
|
});
|
|
2557
3356
|
return /*#__PURE__*/React.createElement(Portal, {
|
|
2558
3357
|
rootId: "neeto-filters-portal"
|
|
2559
|
-
}, /*#__PURE__*/React.createElement(Slider, _extends({
|
|
3358
|
+
}, /*#__PURE__*/React.createElement(Slider, _extends$1({
|
|
2560
3359
|
isOpen: isOpen,
|
|
2561
3360
|
size: size,
|
|
2562
3361
|
onClose: handleClose
|
|
@@ -2633,8 +3432,8 @@ var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r
|
|
|
2633
3432
|
var css = ".neeto-filters-bar{align-items:center;display:flex;flex-wrap:wrap}.neeto-filters-bar__block{border-radius:var(--neeto-ui-rounded);display:flex;gap:4px;margin:4px 0;max-width:384px;overflow:hidden;padding:4px 8px;position:relative;transition:var(--neeto-ui-transition);white-space:nowrap}.neeto-filters-bar__block p:first-child{color:rgb(var(--neeto-ui-gray-700))}.neeto-filters-bar__block-close{background-image:linear-gradient(90deg,rgba(var(--neeto-ui-gray-200),.5) 0,rgba(var(--neeto-ui-gray-200),1) 25%);color:rgb(var(--neeto-ui-gray-800));opacity:0;padding:8px;position:absolute;right:0;top:0;transition:var(--neeto-ui-transition)}.neeto-filters-bar__block:active,.neeto-filters-bar__block:hover{background-color:rgb(var(--neeto-ui-gray-200));cursor:pointer}.neeto-filters-bar__block:active .neeto-filters-bar__block-close,.neeto-filters-bar__block:hover .neeto-filters-bar__block-close{border-radius:var(--neeto-ui-rounded);color:rgb(var(--neeto-ui-black));opacity:1}.neeto-filters-bar__block:focus{box-shadow:0 0 0 3px rgba(var(--neeto-ui-gray-800),15%);outline:none}.neeto-filters-bar--separator{align-self:stretch;border-left:1px solid rgb(var(--neeto-ui-gray-400));margin:12px 8px}.neeto-filters-slider__pane{border-radius:12px 0 0 12px;position:fixed;right:0;top:0;z-index:99998}.neeto-filters-slider__wrapper{background-color:rgb(var(--neeto-ui-white));box-shadow:var(--neeto-ui-shadow-m);height:100vh;max-width:100%;transform:translateX(100%);transition:all .3s}.neeto-filters-slider__wrapper--xsmall{width:360px}.neeto-filters-slider__wrapper--small{width:480px}.neeto-filters-slider__wrapper--large{width:50vw}@media screen and (max-width:767px){.neeto-filters-slider__wrapper{width:100vw}}.neeto-filters-slider__close{position:absolute!important;right:24px;top:24px}.neeto-filters-slider__header{padding:24px 60px 24px 24px;width:100%}.neeto-filters-slider__body{font-size:var(--neeto-ui-text-sm);height:calc(100vh - var(--neeto-ui-pane-header-height));overflow-y:auto;padding:0 24px;width:100%}.neeto-filters-slider__body.neeto-filters-slider__body--has-footer{height:calc(100vh - var(--neeto-ui-pane-header-height) - var(--neeto-ui-pane-footer-height))}.neeto-filters-slider__footer{background-color:rgb(var(--neeto-ui-white));min-height:var(--neeto-ui-pane-footer-height);padding:24px;width:100%}.neeto-filters-slider__footer.neeto-filters-slider__footer__absolute{bottom:0;left:0;position:absolute;width:100%}.neeto-filters-slider-enter .neeto-filters-slider__wrapper{transform:translateX(100%)}.neeto-filters-slider-enter-active .neeto-filters-slider__wrapper,.neeto-filters-slider-enter-done .neeto-filters-slider__wrapper{transform:translateX(0)}.neeto-filters-slider-exit .neeto-filters-slider__wrapper,.neeto-filters-slider-exit-active .neeto-filters-slider__wrapper{transform:translateX(100%)}.neeto-filters-pane-filter__body{align-items:stretch!important;gap:20px}.neeto-filters-pane-filter__body>*{flex-grow:0!important}.neeto-filters-pane-filter__body p{text-align:center}.neeto-filters-pane-filter__body .neeto-filters-pane-filter__item-wrapper{display:flex;flex-direction:column;gap:8px}.neeto-filters-pane-filter__body .accordion_item .neeto-filters-pane-filter__item-wrapper{margin-top:16px}.neeto-filters-pane-filter__body .accordion_item .neeto-filters-pane-filter__item-wrapper:first-of-type{margin-top:0}.neeto-filters-pane-filter__body .accordion_item:first-of-type .neeto-ui-accordion__item{padding-top:0}.neeto-filters-pane-filter__body .neeto-ui-accordion__wrapper--last-item{border-bottom:thin solid rgb(var(--neeto-ui-gray-300))}.neeto-filters-pane-filter__footer{justify-content:space-between}.neeto-filters-pane-filter__footer div{display:flex;gap:8px}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFwcC9qYXZhc2NyaXB0L3NyYy9zdHlsZXNoZWV0cy9jb21wb25lbnRzL19iYXIuc2NzcyIsImFwcC9qYXZhc2NyaXB0L3NyYy9zdHlsZXNoZWV0cy9pbmRleC5zY3NzIiwiYXBwL2phdmFzY3JpcHQvc3JjL3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0by1maWx0ZXJzLXBhbmUtZmlsdGVyX19pdGVtLXdyYXBwZXIge1xuICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gICAgICBnYXA6IDhweDtcbiAgICB9XG5cbiAgICAuYWNjb3JkaW9uX2l0ZW0ge1xuICAgICAgLm5lZXRvLWZpbHRlcnMtcGFuZS1maWx0ZXJfX2l0ZW0td3JhcHBlciB7XG4gICAgICAgIG1hcmdpbi10b3A6IDE2cHg7XG5cbiAgICAgICAgJjpmaXJzdC1vZi10eXBlIHtcbiAgICAgICAgICBtYXJnaW4tdG9wOiAwO1xuICAgICAgICB9XG4gICAgICB9XG4gICAgICAmOmZpcnN0LW9mLXR5cGUge1xuICAgICAgICAubmVldG8tdWktYWNjb3JkaW9uX19pdGVtIHtcbiAgICAgICAgICBwYWRkaW5nLXRvcDogMDtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cbiAgICAubmVldG8tdWktYWNjb3JkaW9uX193cmFwcGVyLS1sYXN0LWl0ZW0ge1xuICAgICAgYm9yZGVyLWJvdHRvbTogdGhpbiBzb2xpZCByZ2IodmFyKC0tbmVldG8tdWktZ3JheS0zMDApKTtcbiAgICB9XG4gIH1cblxuICAmX19mb290ZXIge1xuICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcblxuICAgIGRpdiB7XG4gICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgZ2FwOiA4cHg7XG4gICAgfVxuICB9XG59XG4iXX0= */";
|
|
2634
3433
|
n(css,{});
|
|
2635
3434
|
|
|
2636
|
-
function ownKeys(
|
|
2637
|
-
function _objectSpread(
|
|
3435
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3436
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2638
3437
|
var Filters = withT(function (_ref) {
|
|
2639
3438
|
var t = _ref.t,
|
|
2640
3439
|
size = _ref.size,
|
|
@@ -2654,25 +3453,25 @@ var Filters = withT(function (_ref) {
|
|
|
2654
3453
|
isSearchable = _ref$isSearchable === void 0 ? false : _ref$isSearchable,
|
|
2655
3454
|
className = _ref.className,
|
|
2656
3455
|
_ref$onSelectorsChang = _ref.onSelectorsChange,
|
|
2657
|
-
onSelectorsChange = _ref$onSelectorsChang === void 0 ? noop : _ref$onSelectorsChang,
|
|
3456
|
+
onSelectorsChange = _ref$onSelectorsChang === void 0 ? noop$1 : _ref$onSelectorsChang,
|
|
2658
3457
|
_ref$keyword = _ref.keyword,
|
|
2659
3458
|
keyword = _ref$keyword === void 0 ? {
|
|
2660
3459
|
node: "",
|
|
2661
3460
|
value: "",
|
|
2662
|
-
setValue: noop
|
|
3461
|
+
setValue: noop$1
|
|
2663
3462
|
} : _ref$keyword,
|
|
2664
3463
|
childrenKeys = _ref.childrenKeys,
|
|
2665
3464
|
children = _ref.children;
|
|
2666
3465
|
return /*#__PURE__*/React.createElement("span", {
|
|
2667
3466
|
className: classnames(_defineProperty({}, className, className))
|
|
2668
|
-
}, /*#__PURE__*/React.createElement(Button, _extends({
|
|
3467
|
+
}, /*#__PURE__*/React.createElement(Button, _extends$1({
|
|
2669
3468
|
"data-cy": "neeto-filters-toggle-btn",
|
|
2670
3469
|
label: t("neetoFilters.common.filter"),
|
|
2671
3470
|
style: "secondary",
|
|
2672
3471
|
onClick: function onClick() {
|
|
2673
3472
|
return setIsOpen(true);
|
|
2674
3473
|
}
|
|
2675
|
-
}, buttonProps)), /*#__PURE__*/React.createElement(Pane, _extends({
|
|
3474
|
+
}, buttonProps)), /*#__PURE__*/React.createElement(Pane, _extends$1({
|
|
2676
3475
|
onClose: function onClose() {
|
|
2677
3476
|
return setIsOpen(false);
|
|
2678
3477
|
}
|
|
@@ -2964,7 +3763,7 @@ var Segments = function Segments(_ref) {
|
|
|
2964
3763
|
var entity = _ref.entity,
|
|
2965
3764
|
columns = _ref.columns,
|
|
2966
3765
|
_ref$setIsFilterPaneO = _ref.setIsFilterPaneOpen,
|
|
2967
|
-
setIsFilterPaneOpen = _ref$setIsFilterPaneO === void 0 ? noop : _ref$setIsFilterPaneO,
|
|
3766
|
+
setIsFilterPaneOpen = _ref$setIsFilterPaneO === void 0 ? noop$1 : _ref$setIsFilterPaneO,
|
|
2968
3767
|
_ref$defaultSegmentNa = _ref.defaultSegmentName,
|
|
2969
3768
|
defaultSegmentName = _ref$defaultSegmentNa === void 0 ? t$1("neetoFilters.common.allResults") : _ref$defaultSegmentNa;
|
|
2970
3769
|
return function () {
|