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