@bigbinary/neeto-filters-frontend 3.0.3 → 3.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +216 -43
- package/dist/index.cjs.js +213 -1866
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +146 -1795
- package/dist/index.js.map +1 -1
- package/package.json +132 -96
- /package/{src → app/javascript/src}/translations/en.json +0 -0
- /package/{src → app/javascript/src}/translations/index.js +0 -0
package/dist/index.js
CHANGED
|
@@ -1,45 +1,43 @@
|
|
|
1
1
|
import React, { useState, useRef, useEffect, useTransition, useMemo } from 'react';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
|
-
import {
|
|
3
|
+
import { capitalize, removeBy, findBy, isNotEmpty, humanize, noop as noop$1, toLabelAndValue, replaceBy, isPresent, existsBy, filterBy } from '@bigbinary/neeto-cist';
|
|
4
4
|
import { useHotKeys, useMutationWithInvalidation, useQueryParams, useDebounce, withT } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
5
5
|
import { getQueryParams, dateFormat, buildUrl } from '@bigbinary/neeto-commons-frontend/utils';
|
|
6
6
|
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';
|
|
7
|
+
import { groupBy, anyPass, isNil, isEmpty, any, toLower, mergeLeft, identity, omit, mergeRight, toPairs, not, pluck, either, has, concat, equals, pick, modify, prop, isNotNil, append, last } from 'ramda';
|
|
7
8
|
import { useTranslation, Trans } from 'react-i18next';
|
|
8
9
|
import { useHistory, useLocation } from 'react-router-dom';
|
|
9
|
-
import { Close, Search,
|
|
10
|
+
import { Close, Search, MenuHorizontal, Down, Settings } from '@bigbinary/neeto-icons';
|
|
10
11
|
import i18next, { t as t$1 } from 'i18next';
|
|
11
|
-
import dayjs from 'dayjs';
|
|
12
12
|
import * as yup from 'yup';
|
|
13
|
-
import timezone from 'dayjs/plugin/timezone';
|
|
14
|
-
import utc from 'dayjs/plugin/utc';
|
|
15
|
-
import weekday from 'dayjs/plugin/weekday';
|
|
16
13
|
import { Form, Input, ActionBlock } from '@bigbinary/neetoui/formik';
|
|
17
14
|
import { useQuery } from 'react-query';
|
|
18
15
|
import axios from 'axios';
|
|
19
16
|
import ReactDOM, { createPortal } from 'react-dom';
|
|
20
17
|
import MenuBar from '@bigbinary/neeto-molecules/MenuBar';
|
|
18
|
+
import { FormikInlineInput } from '@bigbinary/neeto-molecules/InlineInput';
|
|
21
19
|
|
|
22
|
-
function _arrayLikeToArray
|
|
20
|
+
function _arrayLikeToArray(arr, len) {
|
|
23
21
|
if (len == null || len > arr.length) len = arr.length;
|
|
24
22
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
25
23
|
return arr2;
|
|
26
24
|
}
|
|
27
25
|
|
|
28
26
|
function _arrayWithoutHoles(arr) {
|
|
29
|
-
if (Array.isArray(arr)) return _arrayLikeToArray
|
|
27
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
30
28
|
}
|
|
31
29
|
|
|
32
30
|
function _iterableToArray(iter) {
|
|
33
31
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
34
32
|
}
|
|
35
33
|
|
|
36
|
-
function _unsupportedIterableToArray
|
|
34
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
37
35
|
if (!o) return;
|
|
38
|
-
if (typeof o === "string") return _arrayLikeToArray
|
|
36
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
39
37
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
40
38
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
41
39
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
42
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray
|
|
40
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
43
41
|
}
|
|
44
42
|
|
|
45
43
|
function _nonIterableSpread() {
|
|
@@ -47,25 +45,25 @@ function _nonIterableSpread() {
|
|
|
47
45
|
}
|
|
48
46
|
|
|
49
47
|
function _toConsumableArray(arr) {
|
|
50
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray
|
|
48
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
51
49
|
}
|
|
52
50
|
|
|
53
|
-
function _typeof
|
|
51
|
+
function _typeof(obj) {
|
|
54
52
|
"@babel/helpers - typeof";
|
|
55
53
|
|
|
56
|
-
return _typeof
|
|
54
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
57
55
|
return typeof obj;
|
|
58
56
|
} : function (obj) {
|
|
59
57
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
60
|
-
}, _typeof
|
|
58
|
+
}, _typeof(obj);
|
|
61
59
|
}
|
|
62
60
|
|
|
63
61
|
function _toPrimitive(input, hint) {
|
|
64
|
-
if (_typeof
|
|
62
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
65
63
|
var prim = input[Symbol.toPrimitive];
|
|
66
64
|
if (prim !== undefined) {
|
|
67
65
|
var res = prim.call(input, hint || "default");
|
|
68
|
-
if (_typeof
|
|
66
|
+
if (_typeof(res) !== "object") return res;
|
|
69
67
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
70
68
|
}
|
|
71
69
|
return (hint === "string" ? String : Number)(input);
|
|
@@ -73,7 +71,7 @@ function _toPrimitive(input, hint) {
|
|
|
73
71
|
|
|
74
72
|
function _toPropertyKey(arg) {
|
|
75
73
|
var key = _toPrimitive(arg, "string");
|
|
76
|
-
return _typeof
|
|
74
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
77
75
|
}
|
|
78
76
|
|
|
79
77
|
function _defineProperty(obj, key, value) {
|
|
@@ -91,153 +89,6 @@ function _defineProperty(obj, key, value) {
|
|
|
91
89
|
return obj;
|
|
92
90
|
}
|
|
93
91
|
|
|
94
|
-
function _arrayWithHoles$1(arr) {
|
|
95
|
-
if (Array.isArray(arr)) return arr;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
function _iterableToArrayLimit$1(arr, i) {
|
|
99
|
-
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
100
|
-
if (null != _i) {
|
|
101
|
-
var _s,
|
|
102
|
-
_e,
|
|
103
|
-
_x,
|
|
104
|
-
_r,
|
|
105
|
-
_arr = [],
|
|
106
|
-
_n = !0,
|
|
107
|
-
_d = !1;
|
|
108
|
-
try {
|
|
109
|
-
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
110
|
-
if (Object(_i) !== _i) return;
|
|
111
|
-
_n = !1;
|
|
112
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
113
|
-
} catch (err) {
|
|
114
|
-
_d = !0, _e = err;
|
|
115
|
-
} finally {
|
|
116
|
-
try {
|
|
117
|
-
if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
|
|
118
|
-
} finally {
|
|
119
|
-
if (_d) throw _e;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
return _arr;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
function _arrayLikeToArray(arr, len) {
|
|
127
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
128
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
129
|
-
return arr2;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
133
|
-
if (!o) return;
|
|
134
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
135
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
136
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
137
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
138
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
function _nonIterableRest$1() {
|
|
142
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
function _slicedToArray$1(arr, i) {
|
|
146
|
-
return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest$1();
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
function _typeof(obj) {
|
|
150
|
-
"@babel/helpers - typeof";
|
|
151
|
-
|
|
152
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
153
|
-
return typeof obj;
|
|
154
|
-
} : function (obj) {
|
|
155
|
-
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
156
|
-
}, _typeof(obj);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* @template {Function} T
|
|
161
|
-
* @param {T} func
|
|
162
|
-
* @returns {T}
|
|
163
|
-
*/
|
|
164
|
-
var nullSafe = function nullSafe(func) {
|
|
165
|
-
return (
|
|
166
|
-
// @ts-ignore
|
|
167
|
-
curryN(func.length, function () {
|
|
168
|
-
var _ref;
|
|
169
|
-
var dataArg = (_ref = func.length - 1, _ref < 0 || arguments.length <= _ref ? undefined : arguments[_ref]);
|
|
170
|
-
return isNil(dataArg) ? dataArg : func.apply(void 0, arguments);
|
|
171
|
-
})
|
|
172
|
-
);
|
|
173
|
-
};
|
|
174
|
-
var noop$1 = function noop() {};
|
|
175
|
-
var toLabelAndValue = function toLabelAndValue(string) {
|
|
176
|
-
return {
|
|
177
|
-
label: string,
|
|
178
|
-
value: string
|
|
179
|
-
};
|
|
180
|
-
};
|
|
181
|
-
var isNotEmpty = /*#__PURE__*/complement(isEmpty);
|
|
182
|
-
var isNotPresent = /*#__PURE__*/either(isNil, isEmpty);
|
|
183
|
-
var isPresent = /*#__PURE__*/complement(isNotPresent);
|
|
184
|
-
|
|
185
|
-
var humanize = function humanize(string) {
|
|
186
|
-
string = string.replace(/[_-]+/g, " ").replace(/\s{2,}/g, " ").replace(/([a-z\d])([A-Z])/g, "$1" + " " + "$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g, "$1" + " " + "$2").toLowerCase().trim();
|
|
187
|
-
string = string.charAt(0).toUpperCase() + string.slice(1);
|
|
188
|
-
return string;
|
|
189
|
-
};
|
|
190
|
-
var capitalize = function capitalize(string) {
|
|
191
|
-
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
192
|
-
};
|
|
193
|
-
|
|
194
|
-
var matchesImpl = function matchesImpl(pattern, object) {
|
|
195
|
-
var __parent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : object;
|
|
196
|
-
if (object === pattern) return true;
|
|
197
|
-
if (typeof pattern === "function" && pattern(object, __parent)) return true;
|
|
198
|
-
if (isNil(pattern) || isNil(object)) return false;
|
|
199
|
-
if (_typeof(pattern) !== "object") return false;
|
|
200
|
-
return Object.entries(pattern).every(function (_ref) {
|
|
201
|
-
var _ref2 = _slicedToArray$1(_ref, 2),
|
|
202
|
-
key = _ref2[0],
|
|
203
|
-
value = _ref2[1];
|
|
204
|
-
return matchesImpl(value, object[key], __parent);
|
|
205
|
-
});
|
|
206
|
-
};
|
|
207
|
-
var matches = /*#__PURE__*/curry(function (pattern, object) {
|
|
208
|
-
return matchesImpl(pattern, object);
|
|
209
|
-
});
|
|
210
|
-
var filterNonNull = function filterNonNull(object) {
|
|
211
|
-
return Object.fromEntries(Object.entries(object).filter(function (_ref5) {
|
|
212
|
-
var _ref6 = _slicedToArray$1(_ref5, 2),
|
|
213
|
-
v = _ref6[1];
|
|
214
|
-
return !isNil(v);
|
|
215
|
-
}).map(function (_ref7) {
|
|
216
|
-
var _ref8 = _slicedToArray$1(_ref7, 2),
|
|
217
|
-
k = _ref8[0],
|
|
218
|
-
v = _ref8[1];
|
|
219
|
-
return [k, _typeof(v) === "object" && !Array.isArray(v) ? filterNonNull(v) : v];
|
|
220
|
-
}));
|
|
221
|
-
};
|
|
222
|
-
nullSafe(filterNonNull);
|
|
223
|
-
var findBy = /*#__PURE__*/curry(function (pattern, array) {
|
|
224
|
-
return array.find(matches(pattern));
|
|
225
|
-
});
|
|
226
|
-
var removeBy = /*#__PURE__*/curry(function (pattern, array) {
|
|
227
|
-
return array.filter(complement(matches(pattern)));
|
|
228
|
-
});
|
|
229
|
-
var replaceBy = /*#__PURE__*/curry(function (pattern, newItem, array) {
|
|
230
|
-
return array.map(function (item) {
|
|
231
|
-
return matches(pattern, item) ? newItem : item;
|
|
232
|
-
});
|
|
233
|
-
});
|
|
234
|
-
var existsBy = /*#__PURE__*/curry(function (pattern, array) {
|
|
235
|
-
return array.some(matches(pattern));
|
|
236
|
-
});
|
|
237
|
-
var filterBy = /*#__PURE__*/curry(function (pattern, array) {
|
|
238
|
-
return array.filter(matches(pattern));
|
|
239
|
-
});
|
|
240
|
-
|
|
241
92
|
var SHORTCUTS = {
|
|
242
93
|
closePane: {
|
|
243
94
|
sequence: "escape",
|
|
@@ -336,6 +187,23 @@ var DATE_RULES = {
|
|
|
336
187
|
"all-time": "before"
|
|
337
188
|
};
|
|
338
189
|
|
|
190
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
191
|
+
|
|
192
|
+
function getDefaultExportFromCjs (x) {
|
|
193
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
var dayjs_min = {exports: {}};
|
|
197
|
+
|
|
198
|
+
dayjs_min.exports;
|
|
199
|
+
|
|
200
|
+
(function (module, exports) {
|
|
201
|
+
!function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return "["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p=function(t){return t instanceof b},S=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else {var a=e.name;D[a]=e,i=a;}return !r&&i&&(g=i),i||!r&&g},w=function(t,e){if(p(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new b(n)},O=v;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var b=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t);}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return O},m.isValid=function(){return !(this.$d.toString()===l)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<w(t)},m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!O.u(e)||e,f=O.p(t),l=function(t,e){var i=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=O.p(t),f="set"+(this.$u?"UTC":""),l=(n={},n[a]=f+"Date",n[d]=f+"Date",n[c]=f+"Month",n[h]=f+"FullYear",n[u]=f+"Hours",n[s]=f+"Minutes",n[i]=f+"Seconds",n[r]=f+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[O.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=O.p(f),y=function(t){var e=w(l);return O.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return O.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return O.s(s%12||12,t,"0")},$=f||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return O.s(e.$y,4,"0");case"M":return a+1;case"MM":return O.s(a+1,2,"0");case"MMM":return h(n.monthsShort,a,c,3);case"MMMM":return h(c,a);case"D":return e.$D;case"DD":return O.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(n.weekdaysMin,e.$W,o,2);case"ddd":return h(n.weekdaysShort,e.$W,o,3);case"dddd":return o[e.$W];case"H":return String(s);case"HH":return O.s(s,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return $(s,u,!0);case"A":return $(s,u,!1);case"m":return String(u);case"mm":return O.s(u,2,"0");case"s":return String(e.$s);case"ss":return O.s(e.$s,2,"0");case"SSS":return O.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=O.p(d),m=w(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return O.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g;}return l?$:O.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),_=b.prototype;return w.prototype=_,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",c],["$y",h],["$D",d]].forEach((function(t){_[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),w.extend=function(t,e){return t.$i||(t(e,b,w),t.$i=!0),w},w.locale=S,w.isDayjs=p,w.unix=function(t){return w(1e3*t)},w.en=D[g],w.Ls=D,w.p={},w}));
|
|
202
|
+
} (dayjs_min, dayjs_min.exports));
|
|
203
|
+
|
|
204
|
+
var dayjs_minExports = dayjs_min.exports;
|
|
205
|
+
var dayjs = /*@__PURE__*/getDefaultExportFromCjs(dayjs_minExports);
|
|
206
|
+
|
|
339
207
|
var NUMBER_RULES = [{
|
|
340
208
|
label: t$1("neetoFilters.rules.is"),
|
|
341
209
|
value: "is"
|
|
@@ -419,9 +287,42 @@ function _nonIterableRest() {
|
|
|
419
287
|
}
|
|
420
288
|
|
|
421
289
|
function _slicedToArray(arr, i) {
|
|
422
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray
|
|
290
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
423
291
|
}
|
|
424
292
|
|
|
293
|
+
var timezone$1 = {exports: {}};
|
|
294
|
+
|
|
295
|
+
timezone$1.exports;
|
|
296
|
+
|
|
297
|
+
(function (module, exports) {
|
|
298
|
+
!function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t={year:0,month:1,day:2,hour:3,minute:4,second:5},e={};return function(n,i,o){var r,a=function(t,n,i){void 0===i&&(i={});var o=new Date(t),r=function(t,n){void 0===n&&(n={});var i=n.timeZoneName||"short",o=t+"|"+i,r=e[o];return r||(r=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:i}),e[o]=r),r}(n,i);return r.formatToParts(o)},u=function(e,n){for(var i=a(e,n),r=[],u=0;u<i.length;u+=1){var f=i[u],s=f.type,m=f.value,c=t[s];c>=0&&(r[c]=parseInt(m,10));}var d=r[3],l=24===d?0:d,v=r[0]+"-"+r[1]+"-"+r[2]+" "+l+":"+r[4]+":"+r[5]+":000",h=+e;return (o.utc(v).valueOf()-(h-=h%1e3))/6e4},f=i.prototype;f.tz=function(t,e){void 0===t&&(t=r);var n=this.utcOffset(),i=this.toDate(),a=i.toLocaleString("en-US",{timeZone:t}),u=Math.round((i-new Date(a))/1e3/60),f=o(a).$set("millisecond",this.$ms).utcOffset(15*-Math.round(i.getTimezoneOffset()/15)-u,!0);if(e){var s=f.utcOffset();f=f.add(n-s,"minute");}return f.$x.$timezone=t,f},f.offsetName=function(t){var e=this.$x.$timezone||o.tz.guess(),n=a(this.valueOf(),e,{timeZoneName:t}).find((function(t){return "timezonename"===t.type.toLowerCase()}));return n&&n.value};var s=f.startOf;f.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return s.call(this,t,e);var n=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return s.call(n,t,e).tz(this.$x.$timezone,!0)},o.tz=function(t,e,n){var i=n&&e,a=n||e||r,f=u(+o(),a);if("string"!=typeof t)return o(t).tz(a);var s=function(t,e,n){var i=t-60*e*1e3,o=u(i,n);if(e===o)return [i,e];var r=u(i-=60*(o-e)*1e3,n);return o===r?[i,o]:[t-60*Math.min(o,r)*1e3,Math.max(o,r)]}(o.utc(t,i).valueOf(),f,a),m=s[0],c=s[1],d=o(m).utcOffset(c);return d.$x.$timezone=a,d},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(t){r=t;};}}));
|
|
299
|
+
} (timezone$1, timezone$1.exports));
|
|
300
|
+
|
|
301
|
+
var timezoneExports = timezone$1.exports;
|
|
302
|
+
var timezone = /*@__PURE__*/getDefaultExportFromCjs(timezoneExports);
|
|
303
|
+
|
|
304
|
+
var utc$1 = {exports: {}};
|
|
305
|
+
|
|
306
|
+
utc$1.exports;
|
|
307
|
+
|
|
308
|
+
(function (module, exports) {
|
|
309
|
+
!function(t,i){module.exports=i();}(commonjsGlobal,(function(){var t="minute",i=/[+-]\d\d(?::?\d\d)?/g,e=/([+-]|\d\d)/g;return function(s,f,n){var u=f.prototype;n.utc=function(t){var i={date:t,utc:!0,args:arguments};return new f(i)},u.utc=function(i){var e=n(this.toDate(),{locale:this.$L,utc:!0});return i?e.add(this.utcOffset(),t):e},u.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})};var o=u.parse;u.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),o.call(this,t);};var r=u.init;u.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds();}else r.call(this);};var a=u.utcOffset;u.utcOffset=function(s,f){var n=this.$utils().u;if(n(s))return this.$u?0:n(this.$offset)?a.call(this):this.$offset;if("string"==typeof s&&(s=function(t){void 0===t&&(t="");var s=t.match(i);if(!s)return null;var f=(""+s[0]).match(e)||["-",0,0],n=f[0],u=60*+f[1]+ +f[2];return 0===u?0:"+"===n?u:-u}(s),null===s))return this;var u=Math.abs(s)<=16?60*s:s,o=this;if(f)return o.$offset=u,o.$u=0===s,o;if(0!==s){var r=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(o=this.local().add(u+r,t)).$offset=u,o.$x.$localOffset=r;}else o=this.utc();return o};var h=u.format;u.format=function(t){var i=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,i)},u.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},u.isUTC=function(){return !!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var l=u.toDate;u.toDate=function(t){return "s"===t&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():l.call(this)};var c=u.diff;u.diff=function(t,i,e){if(t&&this.$u===t.$u)return c.call(this,t,i,e);var s=this.local(),f=n(t).local();return c.call(s,f,i,e)};}}));
|
|
310
|
+
} (utc$1, utc$1.exports));
|
|
311
|
+
|
|
312
|
+
var utcExports = utc$1.exports;
|
|
313
|
+
var utc = /*@__PURE__*/getDefaultExportFromCjs(utcExports);
|
|
314
|
+
|
|
315
|
+
var weekday$1 = {exports: {}};
|
|
316
|
+
|
|
317
|
+
weekday$1.exports;
|
|
318
|
+
|
|
319
|
+
(function (module, exports) {
|
|
320
|
+
!function(e,t){module.exports=t();}(commonjsGlobal,(function(){return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,i=this.$W,n=(i<t?i+7:i)-t;return this.$utils().u(e)?n:this.subtract(n,"day").add(e,"day")};}}));
|
|
321
|
+
} (weekday$1, weekday$1.exports));
|
|
322
|
+
|
|
323
|
+
var weekdayExports = weekday$1.exports;
|
|
324
|
+
var weekday = /*@__PURE__*/getDefaultExportFromCjs(weekdayExports);
|
|
325
|
+
|
|
425
326
|
dayjs.extend(utc);
|
|
426
327
|
dayjs.extend(timezone);
|
|
427
328
|
dayjs.extend(weekday);
|
|
@@ -501,10 +402,10 @@ var buildRuleOptions = function buildRuleOptions(_ref5) {
|
|
|
501
402
|
return [];
|
|
502
403
|
};
|
|
503
404
|
var getDefaultRuleValue = function getDefaultRuleValue(defaultType) {
|
|
504
|
-
var _buildRuleOptions
|
|
405
|
+
var _buildRuleOptions;
|
|
505
406
|
return ((_buildRuleOptions = buildRuleOptions({
|
|
506
407
|
defaultType: defaultType
|
|
507
|
-
})) === null || _buildRuleOptions === void 0
|
|
408
|
+
})) === null || _buildRuleOptions === void 0 || (_buildRuleOptions = _buildRuleOptions[0]) === null || _buildRuleOptions === void 0 ? void 0 : _buildRuleOptions.value) || "";
|
|
508
409
|
};
|
|
509
410
|
var isUndefinedOrEmpty = anyPass([isNil, isEmpty, any(isNil)]);
|
|
510
411
|
|
|
@@ -567,7 +468,7 @@ var buildUpdatedFilter = function buildUpdatedFilter(_ref8) {
|
|
|
567
468
|
var _column$preprocessor;
|
|
568
469
|
return mergeLeft(filter, {
|
|
569
470
|
rule: rule,
|
|
570
|
-
value: (column === null || column === void 0
|
|
471
|
+
value: (column === null || column === void 0 || (_column$preprocessor = column.preprocessor) === null || _column$preprocessor === void 0 ? void 0 : _column$preprocessor.call(column, value)) || value
|
|
571
472
|
});
|
|
572
473
|
} else if (isSingleTime(defaultType)) {
|
|
573
474
|
return mergeLeft(filter, {
|
|
@@ -595,6 +496,7 @@ var buildFiltersFromSearchParams = function buildFiltersFromSearchParams(columns
|
|
|
595
496
|
} else if (isNil(value) || value === "" || column.key === "keyword") {
|
|
596
497
|
return null;
|
|
597
498
|
} else if (column.key === "search_term") {
|
|
499
|
+
if (isNil(column.node)) return null;
|
|
598
500
|
return mergeLeft({
|
|
599
501
|
value: value,
|
|
600
502
|
type: "text",
|
|
@@ -803,7 +705,7 @@ var buildSegmentsPayload = function buildSegmentsPayload(filters) {
|
|
|
803
705
|
});
|
|
804
706
|
var searchParams = getQueryParams();
|
|
805
707
|
var modifiedPayload = childrenKeys.reduce(function (acc, key) {
|
|
806
|
-
if (has
|
|
708
|
+
if (has(key, searchParams)) {
|
|
807
709
|
var filterPayload = {
|
|
808
710
|
key: key,
|
|
809
711
|
node: "children",
|
|
@@ -919,6 +821,9 @@ var buildUrlFromFilters = function buildUrlFromFilters(_ref16) {
|
|
|
919
821
|
_ref16$childrenKeys = _ref16.childrenKeys,
|
|
920
822
|
childrenKeys = _ref16$childrenKeys === void 0 ? [] : _ref16$childrenKeys;
|
|
921
823
|
var searchParams = getQueryParams();
|
|
824
|
+
var isKeywordFilterPresent = findBy({
|
|
825
|
+
key: "search_term"
|
|
826
|
+
}, filters);
|
|
922
827
|
columns.forEach(function (_ref17) {
|
|
923
828
|
var key = _ref17.key,
|
|
924
829
|
defaultValue = _ref17.defaultValue;
|
|
@@ -931,7 +836,7 @@ var buildUrlFromFilters = function buildUrlFromFilters(_ref16) {
|
|
|
931
836
|
delete searchParams["segmentId"];
|
|
932
837
|
}
|
|
933
838
|
var defaultFilters = buildDefaultFilters(columns, filters);
|
|
934
|
-
delete searchParams["search_term"];
|
|
839
|
+
isKeywordFilterPresent && delete searchParams["search_term"];
|
|
935
840
|
concat(filters, defaultFilters).forEach(function (filter) {
|
|
936
841
|
searchParams[filter.key] = createUrlParamString({
|
|
937
842
|
filter: filter,
|
|
@@ -1022,6 +927,9 @@ var getColumnsWithStandardizedType = function getColumnsWithStandardizedType(col
|
|
|
1022
927
|
});
|
|
1023
928
|
});
|
|
1024
929
|
};
|
|
930
|
+
var isKeywordFilterPresent = function isKeywordFilterPresent(keyworFilter) {
|
|
931
|
+
return not(isEmpty(keyworFilter.node));
|
|
932
|
+
};
|
|
1025
933
|
|
|
1026
934
|
var buildCustomDateValue = function buildCustomDateValue(value) {
|
|
1027
935
|
var isBeforeOrAfter = Math.abs(dayjs(value[1]).diff(dayjs(value[0]), "year")) >= 90;
|
|
@@ -1456,27 +1364,15 @@ var Bar = function Bar(_ref) {
|
|
|
1456
1364
|
key: "search_term",
|
|
1457
1365
|
value: keywordValue
|
|
1458
1366
|
});
|
|
1459
|
-
var filters = buildFiltersFromSearchParams(isNotEmpty(keywordValue) ? [keywordFilter].concat(_toConsumableArray(columns)) : columns);
|
|
1367
|
+
var filters = buildFiltersFromSearchParams(isKeywordFilterPresent(keywordFilter) && isNotEmpty(keywordValue) ? [keywordFilter].concat(_toConsumableArray(columns)) : columns);
|
|
1460
1368
|
var nonHiddenFilters = removeBy({
|
|
1461
1369
|
hidden: true
|
|
1462
1370
|
}, filters);
|
|
1463
1371
|
var history = useHistory();
|
|
1464
|
-
useEffect(function () {
|
|
1465
|
-
if (initialRenderRef.current) {
|
|
1466
|
-
initialRenderRef.current = false;
|
|
1467
|
-
return noop$1;
|
|
1468
|
-
}
|
|
1469
|
-
var handler = setTimeout(function () {
|
|
1470
|
-
handleSubmit(filters);
|
|
1471
|
-
}, 500);
|
|
1472
|
-
return function () {
|
|
1473
|
-
return clearTimeout(handler);
|
|
1474
|
-
};
|
|
1475
|
-
}, [keywordValue]);
|
|
1476
1372
|
var handleSubmit = function handleSubmit(newFilters, isClearAll) {
|
|
1477
1373
|
var params = buildUrlFromFilters(_objectSpread$2({
|
|
1478
1374
|
columns: columns,
|
|
1479
|
-
filters: isNotEmpty(getSearchTermFromUrl()) ? [].concat(_toConsumableArray(newFilters), [keywordFilter]) : newFilters
|
|
1375
|
+
filters: isKeywordFilterPresent(keywordFilter) && isNotEmpty(getSearchTermFromUrl()) ? [].concat(_toConsumableArray(newFilters), [keywordFilter]) : newFilters
|
|
1480
1376
|
}, isClearAll && {
|
|
1481
1377
|
isClearAll: true,
|
|
1482
1378
|
childrenKeys: childrenKeys
|
|
@@ -1503,19 +1399,31 @@ var Bar = function Bar(_ref) {
|
|
|
1503
1399
|
handleSubmit(newFilters);
|
|
1504
1400
|
};
|
|
1505
1401
|
var handleClearAll = function handleClearAll() {
|
|
1506
|
-
var params = omit(["search_term"], getQueryParams());
|
|
1402
|
+
var params = isKeywordFilterPresent(keywordFilter) ? omit(["search_term"], getQueryParams()) : getQueryParams();
|
|
1507
1403
|
var pathname = window.location.pathname;
|
|
1508
1404
|
history.push(buildUrl(pathname, params));
|
|
1509
1405
|
handleSubmit([], true);
|
|
1510
1406
|
};
|
|
1511
1407
|
var childrenFiltersApplied = childrenKeys.some(function (key) {
|
|
1512
|
-
return has
|
|
1408
|
+
return has(key, searchParams);
|
|
1513
1409
|
});
|
|
1514
1410
|
var hideClearButton = nonHiddenFilters.every(function (_ref2) {
|
|
1515
1411
|
var defaultValue = _ref2.defaultValue,
|
|
1516
1412
|
isClearable = _ref2.isClearable;
|
|
1517
1413
|
return defaultValue && !isClearable;
|
|
1518
1414
|
}) && !childrenFiltersApplied;
|
|
1415
|
+
useEffect(function () {
|
|
1416
|
+
if (initialRenderRef.current) {
|
|
1417
|
+
initialRenderRef.current = false;
|
|
1418
|
+
return noop$1;
|
|
1419
|
+
}
|
|
1420
|
+
var handler = setTimeout(function () {
|
|
1421
|
+
handleSubmit(filters);
|
|
1422
|
+
}, 500);
|
|
1423
|
+
return function () {
|
|
1424
|
+
return clearTimeout(handler);
|
|
1425
|
+
};
|
|
1426
|
+
}, [keywordValue]);
|
|
1519
1427
|
if (isEmpty(nonHiddenFilters) && !childrenFiltersApplied) return null;
|
|
1520
1428
|
return /*#__PURE__*/React.createElement("div", {
|
|
1521
1429
|
className: classnames("neeto-filters-bar", _defineProperty({}, className, className))
|
|
@@ -1531,7 +1439,7 @@ var Bar = function Bar(_ref) {
|
|
|
1531
1439
|
className: "neeto-filters-bar--separator"
|
|
1532
1440
|
}));
|
|
1533
1441
|
}), childrenKeys.filter(function (childKey) {
|
|
1534
|
-
return has
|
|
1442
|
+
return has(childKey, searchParams);
|
|
1535
1443
|
}).map(function (childKey) {
|
|
1536
1444
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
1537
1445
|
key: childKey
|
|
@@ -1556,8 +1464,8 @@ var Bar = function Bar(_ref) {
|
|
|
1556
1464
|
}));
|
|
1557
1465
|
};
|
|
1558
1466
|
|
|
1559
|
-
function _extends
|
|
1560
|
-
_extends
|
|
1467
|
+
function _extends() {
|
|
1468
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
1561
1469
|
for (var i = 1; i < arguments.length; i++) {
|
|
1562
1470
|
var source = arguments[i];
|
|
1563
1471
|
for (var key in source) {
|
|
@@ -1568,10 +1476,10 @@ function _extends$1() {
|
|
|
1568
1476
|
}
|
|
1569
1477
|
return target;
|
|
1570
1478
|
};
|
|
1571
|
-
return _extends
|
|
1479
|
+
return _extends.apply(this, arguments);
|
|
1572
1480
|
}
|
|
1573
1481
|
|
|
1574
|
-
function _objectWithoutPropertiesLoose
|
|
1482
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
1575
1483
|
if (source == null) return {};
|
|
1576
1484
|
var target = {};
|
|
1577
1485
|
var sourceKeys = Object.keys(source);
|
|
@@ -1586,7 +1494,7 @@ function _objectWithoutPropertiesLoose$1(source, excluded) {
|
|
|
1586
1494
|
|
|
1587
1495
|
function _objectWithoutProperties(source, excluded) {
|
|
1588
1496
|
if (source == null) return {};
|
|
1589
|
-
var target = _objectWithoutPropertiesLoose
|
|
1497
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
1590
1498
|
var key, i;
|
|
1591
1499
|
if (Object.getOwnPropertySymbols) {
|
|
1592
1500
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -1628,34 +1536,6 @@ var Portal = function Portal(_ref) {
|
|
|
1628
1536
|
return /*#__PURE__*/createPortal(children, target.current);
|
|
1629
1537
|
};
|
|
1630
1538
|
|
|
1631
|
-
function _extends() {
|
|
1632
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
1633
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
1634
|
-
var source = arguments[i];
|
|
1635
|
-
for (var key in source) {
|
|
1636
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
1637
|
-
target[key] = source[key];
|
|
1638
|
-
}
|
|
1639
|
-
}
|
|
1640
|
-
}
|
|
1641
|
-
return target;
|
|
1642
|
-
};
|
|
1643
|
-
return _extends.apply(this, arguments);
|
|
1644
|
-
}
|
|
1645
|
-
|
|
1646
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
1647
|
-
if (source == null) return {};
|
|
1648
|
-
var target = {};
|
|
1649
|
-
var sourceKeys = Object.keys(source);
|
|
1650
|
-
var key, i;
|
|
1651
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
1652
|
-
key = sourceKeys[i];
|
|
1653
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
1654
|
-
target[key] = source[key];
|
|
1655
|
-
}
|
|
1656
|
-
return target;
|
|
1657
|
-
}
|
|
1658
|
-
|
|
1659
1539
|
function _setPrototypeOf(o, p) {
|
|
1660
1540
|
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
1661
1541
|
o.__proto__ = p;
|
|
@@ -1670,1188 +1550,6 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
1670
1550
|
_setPrototypeOf(subClass, superClass);
|
|
1671
1551
|
}
|
|
1672
1552
|
|
|
1673
|
-
var propTypes = {exports: {}};
|
|
1674
|
-
|
|
1675
|
-
var reactIs = {exports: {}};
|
|
1676
|
-
|
|
1677
|
-
var reactIs_production_min = {};
|
|
1678
|
-
|
|
1679
|
-
/** @license React v16.13.1
|
|
1680
|
-
* react-is.production.min.js
|
|
1681
|
-
*
|
|
1682
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1683
|
-
*
|
|
1684
|
-
* This source code is licensed under the MIT license found in the
|
|
1685
|
-
* LICENSE file in the root directory of this source tree.
|
|
1686
|
-
*/
|
|
1687
|
-
|
|
1688
|
-
var hasRequiredReactIs_production_min;
|
|
1689
|
-
|
|
1690
|
-
function requireReactIs_production_min () {
|
|
1691
|
-
if (hasRequiredReactIs_production_min) return reactIs_production_min;
|
|
1692
|
-
hasRequiredReactIs_production_min = 1;
|
|
1693
|
-
var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
|
|
1694
|
-
Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
|
|
1695
|
-
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r;reactIs_production_min.Portal=d;
|
|
1696
|
-
reactIs_production_min.Profiler=g;reactIs_production_min.StrictMode=f;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(a){return z(a)===k};reactIs_production_min.isContextProvider=function(a){return z(a)===h};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.isForwardRef=function(a){return z(a)===n};reactIs_production_min.isFragment=function(a){return z(a)===e};reactIs_production_min.isLazy=function(a){return z(a)===t};
|
|
1697
|
-
reactIs_production_min.isMemo=function(a){return z(a)===r};reactIs_production_min.isPortal=function(a){return z(a)===d};reactIs_production_min.isProfiler=function(a){return z(a)===g};reactIs_production_min.isStrictMode=function(a){return z(a)===f};reactIs_production_min.isSuspense=function(a){return z(a)===p};
|
|
1698
|
-
reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min.typeOf=z;
|
|
1699
|
-
return reactIs_production_min;
|
|
1700
|
-
}
|
|
1701
|
-
|
|
1702
|
-
var reactIs_development = {};
|
|
1703
|
-
|
|
1704
|
-
/** @license React v16.13.1
|
|
1705
|
-
* react-is.development.js
|
|
1706
|
-
*
|
|
1707
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1708
|
-
*
|
|
1709
|
-
* This source code is licensed under the MIT license found in the
|
|
1710
|
-
* LICENSE file in the root directory of this source tree.
|
|
1711
|
-
*/
|
|
1712
|
-
|
|
1713
|
-
var hasRequiredReactIs_development;
|
|
1714
|
-
|
|
1715
|
-
function requireReactIs_development () {
|
|
1716
|
-
if (hasRequiredReactIs_development) return reactIs_development;
|
|
1717
|
-
hasRequiredReactIs_development = 1;
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1722
|
-
(function() {
|
|
1723
|
-
|
|
1724
|
-
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
1725
|
-
// nor polyfill, then a plain number is used for performance.
|
|
1726
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
1727
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
1728
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
1729
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
1730
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
1731
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
1732
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
1733
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
1734
|
-
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
1735
|
-
|
|
1736
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
1737
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
1738
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
1739
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
1740
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
1741
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
1742
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
1743
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
1744
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
1745
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
1746
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
1747
|
-
|
|
1748
|
-
function isValidElementType(type) {
|
|
1749
|
-
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1750
|
-
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
1751
|
-
}
|
|
1752
|
-
|
|
1753
|
-
function typeOf(object) {
|
|
1754
|
-
if (typeof object === 'object' && object !== null) {
|
|
1755
|
-
var $$typeof = object.$$typeof;
|
|
1756
|
-
|
|
1757
|
-
switch ($$typeof) {
|
|
1758
|
-
case REACT_ELEMENT_TYPE:
|
|
1759
|
-
var type = object.type;
|
|
1760
|
-
|
|
1761
|
-
switch (type) {
|
|
1762
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
1763
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
1764
|
-
case REACT_FRAGMENT_TYPE:
|
|
1765
|
-
case REACT_PROFILER_TYPE:
|
|
1766
|
-
case REACT_STRICT_MODE_TYPE:
|
|
1767
|
-
case REACT_SUSPENSE_TYPE:
|
|
1768
|
-
return type;
|
|
1769
|
-
|
|
1770
|
-
default:
|
|
1771
|
-
var $$typeofType = type && type.$$typeof;
|
|
1772
|
-
|
|
1773
|
-
switch ($$typeofType) {
|
|
1774
|
-
case REACT_CONTEXT_TYPE:
|
|
1775
|
-
case REACT_FORWARD_REF_TYPE:
|
|
1776
|
-
case REACT_LAZY_TYPE:
|
|
1777
|
-
case REACT_MEMO_TYPE:
|
|
1778
|
-
case REACT_PROVIDER_TYPE:
|
|
1779
|
-
return $$typeofType;
|
|
1780
|
-
|
|
1781
|
-
default:
|
|
1782
|
-
return $$typeof;
|
|
1783
|
-
}
|
|
1784
|
-
|
|
1785
|
-
}
|
|
1786
|
-
|
|
1787
|
-
case REACT_PORTAL_TYPE:
|
|
1788
|
-
return $$typeof;
|
|
1789
|
-
}
|
|
1790
|
-
}
|
|
1791
|
-
|
|
1792
|
-
return undefined;
|
|
1793
|
-
} // AsyncMode is deprecated along with isAsyncMode
|
|
1794
|
-
|
|
1795
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
1796
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
1797
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
1798
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
1799
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
1800
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
1801
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
1802
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
1803
|
-
var Memo = REACT_MEMO_TYPE;
|
|
1804
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
1805
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
1806
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
1807
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
1808
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
1809
|
-
|
|
1810
|
-
function isAsyncMode(object) {
|
|
1811
|
-
{
|
|
1812
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
1813
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
1814
|
-
|
|
1815
|
-
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
1816
|
-
}
|
|
1817
|
-
}
|
|
1818
|
-
|
|
1819
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
1820
|
-
}
|
|
1821
|
-
function isConcurrentMode(object) {
|
|
1822
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
1823
|
-
}
|
|
1824
|
-
function isContextConsumer(object) {
|
|
1825
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
1826
|
-
}
|
|
1827
|
-
function isContextProvider(object) {
|
|
1828
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
1829
|
-
}
|
|
1830
|
-
function isElement(object) {
|
|
1831
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
1832
|
-
}
|
|
1833
|
-
function isForwardRef(object) {
|
|
1834
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
1835
|
-
}
|
|
1836
|
-
function isFragment(object) {
|
|
1837
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
1838
|
-
}
|
|
1839
|
-
function isLazy(object) {
|
|
1840
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
1841
|
-
}
|
|
1842
|
-
function isMemo(object) {
|
|
1843
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
1844
|
-
}
|
|
1845
|
-
function isPortal(object) {
|
|
1846
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
1847
|
-
}
|
|
1848
|
-
function isProfiler(object) {
|
|
1849
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
1850
|
-
}
|
|
1851
|
-
function isStrictMode(object) {
|
|
1852
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
1853
|
-
}
|
|
1854
|
-
function isSuspense(object) {
|
|
1855
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
1856
|
-
}
|
|
1857
|
-
|
|
1858
|
-
reactIs_development.AsyncMode = AsyncMode;
|
|
1859
|
-
reactIs_development.ConcurrentMode = ConcurrentMode;
|
|
1860
|
-
reactIs_development.ContextConsumer = ContextConsumer;
|
|
1861
|
-
reactIs_development.ContextProvider = ContextProvider;
|
|
1862
|
-
reactIs_development.Element = Element;
|
|
1863
|
-
reactIs_development.ForwardRef = ForwardRef;
|
|
1864
|
-
reactIs_development.Fragment = Fragment;
|
|
1865
|
-
reactIs_development.Lazy = Lazy;
|
|
1866
|
-
reactIs_development.Memo = Memo;
|
|
1867
|
-
reactIs_development.Portal = Portal;
|
|
1868
|
-
reactIs_development.Profiler = Profiler;
|
|
1869
|
-
reactIs_development.StrictMode = StrictMode;
|
|
1870
|
-
reactIs_development.Suspense = Suspense;
|
|
1871
|
-
reactIs_development.isAsyncMode = isAsyncMode;
|
|
1872
|
-
reactIs_development.isConcurrentMode = isConcurrentMode;
|
|
1873
|
-
reactIs_development.isContextConsumer = isContextConsumer;
|
|
1874
|
-
reactIs_development.isContextProvider = isContextProvider;
|
|
1875
|
-
reactIs_development.isElement = isElement;
|
|
1876
|
-
reactIs_development.isForwardRef = isForwardRef;
|
|
1877
|
-
reactIs_development.isFragment = isFragment;
|
|
1878
|
-
reactIs_development.isLazy = isLazy;
|
|
1879
|
-
reactIs_development.isMemo = isMemo;
|
|
1880
|
-
reactIs_development.isPortal = isPortal;
|
|
1881
|
-
reactIs_development.isProfiler = isProfiler;
|
|
1882
|
-
reactIs_development.isStrictMode = isStrictMode;
|
|
1883
|
-
reactIs_development.isSuspense = isSuspense;
|
|
1884
|
-
reactIs_development.isValidElementType = isValidElementType;
|
|
1885
|
-
reactIs_development.typeOf = typeOf;
|
|
1886
|
-
})();
|
|
1887
|
-
}
|
|
1888
|
-
return reactIs_development;
|
|
1889
|
-
}
|
|
1890
|
-
|
|
1891
|
-
var hasRequiredReactIs;
|
|
1892
|
-
|
|
1893
|
-
function requireReactIs () {
|
|
1894
|
-
if (hasRequiredReactIs) return reactIs.exports;
|
|
1895
|
-
hasRequiredReactIs = 1;
|
|
1896
|
-
(function (module) {
|
|
1897
|
-
|
|
1898
|
-
if (process.env.NODE_ENV === 'production') {
|
|
1899
|
-
module.exports = requireReactIs_production_min();
|
|
1900
|
-
} else {
|
|
1901
|
-
module.exports = requireReactIs_development();
|
|
1902
|
-
}
|
|
1903
|
-
} (reactIs));
|
|
1904
|
-
return reactIs.exports;
|
|
1905
|
-
}
|
|
1906
|
-
|
|
1907
|
-
/*
|
|
1908
|
-
object-assign
|
|
1909
|
-
(c) Sindre Sorhus
|
|
1910
|
-
@license MIT
|
|
1911
|
-
*/
|
|
1912
|
-
|
|
1913
|
-
var objectAssign;
|
|
1914
|
-
var hasRequiredObjectAssign;
|
|
1915
|
-
|
|
1916
|
-
function requireObjectAssign () {
|
|
1917
|
-
if (hasRequiredObjectAssign) return objectAssign;
|
|
1918
|
-
hasRequiredObjectAssign = 1;
|
|
1919
|
-
/* eslint-disable no-unused-vars */
|
|
1920
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
1921
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
1922
|
-
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
1923
|
-
|
|
1924
|
-
function toObject(val) {
|
|
1925
|
-
if (val === null || val === undefined) {
|
|
1926
|
-
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
1927
|
-
}
|
|
1928
|
-
|
|
1929
|
-
return Object(val);
|
|
1930
|
-
}
|
|
1931
|
-
|
|
1932
|
-
function shouldUseNative() {
|
|
1933
|
-
try {
|
|
1934
|
-
if (!Object.assign) {
|
|
1935
|
-
return false;
|
|
1936
|
-
}
|
|
1937
|
-
|
|
1938
|
-
// Detect buggy property enumeration order in older V8 versions.
|
|
1939
|
-
|
|
1940
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
|
1941
|
-
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
|
1942
|
-
test1[5] = 'de';
|
|
1943
|
-
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
1944
|
-
return false;
|
|
1945
|
-
}
|
|
1946
|
-
|
|
1947
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
1948
|
-
var test2 = {};
|
|
1949
|
-
for (var i = 0; i < 10; i++) {
|
|
1950
|
-
test2['_' + String.fromCharCode(i)] = i;
|
|
1951
|
-
}
|
|
1952
|
-
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
1953
|
-
return test2[n];
|
|
1954
|
-
});
|
|
1955
|
-
if (order2.join('') !== '0123456789') {
|
|
1956
|
-
return false;
|
|
1957
|
-
}
|
|
1958
|
-
|
|
1959
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
1960
|
-
var test3 = {};
|
|
1961
|
-
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
1962
|
-
test3[letter] = letter;
|
|
1963
|
-
});
|
|
1964
|
-
if (Object.keys(Object.assign({}, test3)).join('') !==
|
|
1965
|
-
'abcdefghijklmnopqrst') {
|
|
1966
|
-
return false;
|
|
1967
|
-
}
|
|
1968
|
-
|
|
1969
|
-
return true;
|
|
1970
|
-
} catch (err) {
|
|
1971
|
-
// We don't expect any of the above to throw, but better to be safe.
|
|
1972
|
-
return false;
|
|
1973
|
-
}
|
|
1974
|
-
}
|
|
1975
|
-
|
|
1976
|
-
objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
|
|
1977
|
-
var from;
|
|
1978
|
-
var to = toObject(target);
|
|
1979
|
-
var symbols;
|
|
1980
|
-
|
|
1981
|
-
for (var s = 1; s < arguments.length; s++) {
|
|
1982
|
-
from = Object(arguments[s]);
|
|
1983
|
-
|
|
1984
|
-
for (var key in from) {
|
|
1985
|
-
if (hasOwnProperty.call(from, key)) {
|
|
1986
|
-
to[key] = from[key];
|
|
1987
|
-
}
|
|
1988
|
-
}
|
|
1989
|
-
|
|
1990
|
-
if (getOwnPropertySymbols) {
|
|
1991
|
-
symbols = getOwnPropertySymbols(from);
|
|
1992
|
-
for (var i = 0; i < symbols.length; i++) {
|
|
1993
|
-
if (propIsEnumerable.call(from, symbols[i])) {
|
|
1994
|
-
to[symbols[i]] = from[symbols[i]];
|
|
1995
|
-
}
|
|
1996
|
-
}
|
|
1997
|
-
}
|
|
1998
|
-
}
|
|
1999
|
-
|
|
2000
|
-
return to;
|
|
2001
|
-
};
|
|
2002
|
-
return objectAssign;
|
|
2003
|
-
}
|
|
2004
|
-
|
|
2005
|
-
/**
|
|
2006
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
2007
|
-
*
|
|
2008
|
-
* This source code is licensed under the MIT license found in the
|
|
2009
|
-
* LICENSE file in the root directory of this source tree.
|
|
2010
|
-
*/
|
|
2011
|
-
|
|
2012
|
-
var ReactPropTypesSecret_1;
|
|
2013
|
-
var hasRequiredReactPropTypesSecret;
|
|
2014
|
-
|
|
2015
|
-
function requireReactPropTypesSecret () {
|
|
2016
|
-
if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1;
|
|
2017
|
-
hasRequiredReactPropTypesSecret = 1;
|
|
2018
|
-
|
|
2019
|
-
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
2020
|
-
|
|
2021
|
-
ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
2022
|
-
return ReactPropTypesSecret_1;
|
|
2023
|
-
}
|
|
2024
|
-
|
|
2025
|
-
var has;
|
|
2026
|
-
var hasRequiredHas;
|
|
2027
|
-
|
|
2028
|
-
function requireHas () {
|
|
2029
|
-
if (hasRequiredHas) return has;
|
|
2030
|
-
hasRequiredHas = 1;
|
|
2031
|
-
has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
2032
|
-
return has;
|
|
2033
|
-
}
|
|
2034
|
-
|
|
2035
|
-
/**
|
|
2036
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
2037
|
-
*
|
|
2038
|
-
* This source code is licensed under the MIT license found in the
|
|
2039
|
-
* LICENSE file in the root directory of this source tree.
|
|
2040
|
-
*/
|
|
2041
|
-
|
|
2042
|
-
var checkPropTypes_1;
|
|
2043
|
-
var hasRequiredCheckPropTypes;
|
|
2044
|
-
|
|
2045
|
-
function requireCheckPropTypes () {
|
|
2046
|
-
if (hasRequiredCheckPropTypes) return checkPropTypes_1;
|
|
2047
|
-
hasRequiredCheckPropTypes = 1;
|
|
2048
|
-
|
|
2049
|
-
var printWarning = function() {};
|
|
2050
|
-
|
|
2051
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
2052
|
-
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
2053
|
-
var loggedTypeFailures = {};
|
|
2054
|
-
var has = requireHas();
|
|
2055
|
-
|
|
2056
|
-
printWarning = function(text) {
|
|
2057
|
-
var message = 'Warning: ' + text;
|
|
2058
|
-
if (typeof console !== 'undefined') {
|
|
2059
|
-
console.error(message);
|
|
2060
|
-
}
|
|
2061
|
-
try {
|
|
2062
|
-
// --- Welcome to debugging React ---
|
|
2063
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
2064
|
-
// to find the callsite that caused this warning to fire.
|
|
2065
|
-
throw new Error(message);
|
|
2066
|
-
} catch (x) { /**/ }
|
|
2067
|
-
};
|
|
2068
|
-
}
|
|
2069
|
-
|
|
2070
|
-
/**
|
|
2071
|
-
* Assert that the values match with the type specs.
|
|
2072
|
-
* Error messages are memorized and will only be shown once.
|
|
2073
|
-
*
|
|
2074
|
-
* @param {object} typeSpecs Map of name to a ReactPropType
|
|
2075
|
-
* @param {object} values Runtime values that need to be type-checked
|
|
2076
|
-
* @param {string} location e.g. "prop", "context", "child context"
|
|
2077
|
-
* @param {string} componentName Name of the component for error messages.
|
|
2078
|
-
* @param {?Function} getStack Returns the component stack.
|
|
2079
|
-
* @private
|
|
2080
|
-
*/
|
|
2081
|
-
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
2082
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
2083
|
-
for (var typeSpecName in typeSpecs) {
|
|
2084
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
2085
|
-
var error;
|
|
2086
|
-
// Prop type validation may throw. In case they do, we don't want to
|
|
2087
|
-
// fail the render phase where it didn't fail before. So we log it.
|
|
2088
|
-
// After these have been cleaned up, we'll let them throw.
|
|
2089
|
-
try {
|
|
2090
|
-
// This is intentionally an invariant that gets caught. It's the same
|
|
2091
|
-
// behavior as without this statement except with a better message.
|
|
2092
|
-
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
2093
|
-
var err = Error(
|
|
2094
|
-
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
2095
|
-
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
2096
|
-
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
2097
|
-
);
|
|
2098
|
-
err.name = 'Invariant Violation';
|
|
2099
|
-
throw err;
|
|
2100
|
-
}
|
|
2101
|
-
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
2102
|
-
} catch (ex) {
|
|
2103
|
-
error = ex;
|
|
2104
|
-
}
|
|
2105
|
-
if (error && !(error instanceof Error)) {
|
|
2106
|
-
printWarning(
|
|
2107
|
-
(componentName || 'React class') + ': type specification of ' +
|
|
2108
|
-
location + ' `' + typeSpecName + '` is invalid; the type checker ' +
|
|
2109
|
-
'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
|
|
2110
|
-
'You may have forgotten to pass an argument to the type checker ' +
|
|
2111
|
-
'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
|
|
2112
|
-
'shape all require an argument).'
|
|
2113
|
-
);
|
|
2114
|
-
}
|
|
2115
|
-
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
2116
|
-
// Only monitor this failure once because there tends to be a lot of the
|
|
2117
|
-
// same error.
|
|
2118
|
-
loggedTypeFailures[error.message] = true;
|
|
2119
|
-
|
|
2120
|
-
var stack = getStack ? getStack() : '';
|
|
2121
|
-
|
|
2122
|
-
printWarning(
|
|
2123
|
-
'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
|
|
2124
|
-
);
|
|
2125
|
-
}
|
|
2126
|
-
}
|
|
2127
|
-
}
|
|
2128
|
-
}
|
|
2129
|
-
}
|
|
2130
|
-
|
|
2131
|
-
/**
|
|
2132
|
-
* Resets warning cache when testing.
|
|
2133
|
-
*
|
|
2134
|
-
* @private
|
|
2135
|
-
*/
|
|
2136
|
-
checkPropTypes.resetWarningCache = function() {
|
|
2137
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
2138
|
-
loggedTypeFailures = {};
|
|
2139
|
-
}
|
|
2140
|
-
};
|
|
2141
|
-
|
|
2142
|
-
checkPropTypes_1 = checkPropTypes;
|
|
2143
|
-
return checkPropTypes_1;
|
|
2144
|
-
}
|
|
2145
|
-
|
|
2146
|
-
/**
|
|
2147
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
2148
|
-
*
|
|
2149
|
-
* This source code is licensed under the MIT license found in the
|
|
2150
|
-
* LICENSE file in the root directory of this source tree.
|
|
2151
|
-
*/
|
|
2152
|
-
|
|
2153
|
-
var factoryWithTypeCheckers;
|
|
2154
|
-
var hasRequiredFactoryWithTypeCheckers;
|
|
2155
|
-
|
|
2156
|
-
function requireFactoryWithTypeCheckers () {
|
|
2157
|
-
if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
|
|
2158
|
-
hasRequiredFactoryWithTypeCheckers = 1;
|
|
2159
|
-
|
|
2160
|
-
var ReactIs = requireReactIs();
|
|
2161
|
-
var assign = requireObjectAssign();
|
|
2162
|
-
|
|
2163
|
-
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
2164
|
-
var has = requireHas();
|
|
2165
|
-
var checkPropTypes = requireCheckPropTypes();
|
|
2166
|
-
|
|
2167
|
-
var printWarning = function() {};
|
|
2168
|
-
|
|
2169
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
2170
|
-
printWarning = function(text) {
|
|
2171
|
-
var message = 'Warning: ' + text;
|
|
2172
|
-
if (typeof console !== 'undefined') {
|
|
2173
|
-
console.error(message);
|
|
2174
|
-
}
|
|
2175
|
-
try {
|
|
2176
|
-
// --- Welcome to debugging React ---
|
|
2177
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
2178
|
-
// to find the callsite that caused this warning to fire.
|
|
2179
|
-
throw new Error(message);
|
|
2180
|
-
} catch (x) {}
|
|
2181
|
-
};
|
|
2182
|
-
}
|
|
2183
|
-
|
|
2184
|
-
function emptyFunctionThatReturnsNull() {
|
|
2185
|
-
return null;
|
|
2186
|
-
}
|
|
2187
|
-
|
|
2188
|
-
factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
2189
|
-
/* global Symbol */
|
|
2190
|
-
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
2191
|
-
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
|
|
2192
|
-
|
|
2193
|
-
/**
|
|
2194
|
-
* Returns the iterator method function contained on the iterable object.
|
|
2195
|
-
*
|
|
2196
|
-
* Be sure to invoke the function with the iterable as context:
|
|
2197
|
-
*
|
|
2198
|
-
* var iteratorFn = getIteratorFn(myIterable);
|
|
2199
|
-
* if (iteratorFn) {
|
|
2200
|
-
* var iterator = iteratorFn.call(myIterable);
|
|
2201
|
-
* ...
|
|
2202
|
-
* }
|
|
2203
|
-
*
|
|
2204
|
-
* @param {?object} maybeIterable
|
|
2205
|
-
* @return {?function}
|
|
2206
|
-
*/
|
|
2207
|
-
function getIteratorFn(maybeIterable) {
|
|
2208
|
-
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
2209
|
-
if (typeof iteratorFn === 'function') {
|
|
2210
|
-
return iteratorFn;
|
|
2211
|
-
}
|
|
2212
|
-
}
|
|
2213
|
-
|
|
2214
|
-
/**
|
|
2215
|
-
* Collection of methods that allow declaration and validation of props that are
|
|
2216
|
-
* supplied to React components. Example usage:
|
|
2217
|
-
*
|
|
2218
|
-
* var Props = require('ReactPropTypes');
|
|
2219
|
-
* var MyArticle = React.createClass({
|
|
2220
|
-
* propTypes: {
|
|
2221
|
-
* // An optional string prop named "description".
|
|
2222
|
-
* description: Props.string,
|
|
2223
|
-
*
|
|
2224
|
-
* // A required enum prop named "category".
|
|
2225
|
-
* category: Props.oneOf(['News','Photos']).isRequired,
|
|
2226
|
-
*
|
|
2227
|
-
* // A prop named "dialog" that requires an instance of Dialog.
|
|
2228
|
-
* dialog: Props.instanceOf(Dialog).isRequired
|
|
2229
|
-
* },
|
|
2230
|
-
* render: function() { ... }
|
|
2231
|
-
* });
|
|
2232
|
-
*
|
|
2233
|
-
* A more formal specification of how these methods are used:
|
|
2234
|
-
*
|
|
2235
|
-
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
|
|
2236
|
-
* decl := ReactPropTypes.{type}(.isRequired)?
|
|
2237
|
-
*
|
|
2238
|
-
* Each and every declaration produces a function with the same signature. This
|
|
2239
|
-
* allows the creation of custom validation functions. For example:
|
|
2240
|
-
*
|
|
2241
|
-
* var MyLink = React.createClass({
|
|
2242
|
-
* propTypes: {
|
|
2243
|
-
* // An optional string or URI prop named "href".
|
|
2244
|
-
* href: function(props, propName, componentName) {
|
|
2245
|
-
* var propValue = props[propName];
|
|
2246
|
-
* if (propValue != null && typeof propValue !== 'string' &&
|
|
2247
|
-
* !(propValue instanceof URI)) {
|
|
2248
|
-
* return new Error(
|
|
2249
|
-
* 'Expected a string or an URI for ' + propName + ' in ' +
|
|
2250
|
-
* componentName
|
|
2251
|
-
* );
|
|
2252
|
-
* }
|
|
2253
|
-
* }
|
|
2254
|
-
* },
|
|
2255
|
-
* render: function() {...}
|
|
2256
|
-
* });
|
|
2257
|
-
*
|
|
2258
|
-
* @internal
|
|
2259
|
-
*/
|
|
2260
|
-
|
|
2261
|
-
var ANONYMOUS = '<<anonymous>>';
|
|
2262
|
-
|
|
2263
|
-
// Important!
|
|
2264
|
-
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
2265
|
-
var ReactPropTypes = {
|
|
2266
|
-
array: createPrimitiveTypeChecker('array'),
|
|
2267
|
-
bigint: createPrimitiveTypeChecker('bigint'),
|
|
2268
|
-
bool: createPrimitiveTypeChecker('boolean'),
|
|
2269
|
-
func: createPrimitiveTypeChecker('function'),
|
|
2270
|
-
number: createPrimitiveTypeChecker('number'),
|
|
2271
|
-
object: createPrimitiveTypeChecker('object'),
|
|
2272
|
-
string: createPrimitiveTypeChecker('string'),
|
|
2273
|
-
symbol: createPrimitiveTypeChecker('symbol'),
|
|
2274
|
-
|
|
2275
|
-
any: createAnyTypeChecker(),
|
|
2276
|
-
arrayOf: createArrayOfTypeChecker,
|
|
2277
|
-
element: createElementTypeChecker(),
|
|
2278
|
-
elementType: createElementTypeTypeChecker(),
|
|
2279
|
-
instanceOf: createInstanceTypeChecker,
|
|
2280
|
-
node: createNodeChecker(),
|
|
2281
|
-
objectOf: createObjectOfTypeChecker,
|
|
2282
|
-
oneOf: createEnumTypeChecker,
|
|
2283
|
-
oneOfType: createUnionTypeChecker,
|
|
2284
|
-
shape: createShapeTypeChecker,
|
|
2285
|
-
exact: createStrictShapeTypeChecker,
|
|
2286
|
-
};
|
|
2287
|
-
|
|
2288
|
-
/**
|
|
2289
|
-
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
2290
|
-
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
2291
|
-
*/
|
|
2292
|
-
/*eslint-disable no-self-compare*/
|
|
2293
|
-
function is(x, y) {
|
|
2294
|
-
// SameValue algorithm
|
|
2295
|
-
if (x === y) {
|
|
2296
|
-
// Steps 1-5, 7-10
|
|
2297
|
-
// Steps 6.b-6.e: +0 != -0
|
|
2298
|
-
return x !== 0 || 1 / x === 1 / y;
|
|
2299
|
-
} else {
|
|
2300
|
-
// Step 6.a: NaN == NaN
|
|
2301
|
-
return x !== x && y !== y;
|
|
2302
|
-
}
|
|
2303
|
-
}
|
|
2304
|
-
/*eslint-enable no-self-compare*/
|
|
2305
|
-
|
|
2306
|
-
/**
|
|
2307
|
-
* We use an Error-like object for backward compatibility as people may call
|
|
2308
|
-
* PropTypes directly and inspect their output. However, we don't use real
|
|
2309
|
-
* Errors anymore. We don't inspect their stack anyway, and creating them
|
|
2310
|
-
* is prohibitively expensive if they are created too often, such as what
|
|
2311
|
-
* happens in oneOfType() for any type before the one that matched.
|
|
2312
|
-
*/
|
|
2313
|
-
function PropTypeError(message, data) {
|
|
2314
|
-
this.message = message;
|
|
2315
|
-
this.data = data && typeof data === 'object' ? data: {};
|
|
2316
|
-
this.stack = '';
|
|
2317
|
-
}
|
|
2318
|
-
// Make `instanceof Error` still work for returned errors.
|
|
2319
|
-
PropTypeError.prototype = Error.prototype;
|
|
2320
|
-
|
|
2321
|
-
function createChainableTypeChecker(validate) {
|
|
2322
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
2323
|
-
var manualPropTypeCallCache = {};
|
|
2324
|
-
var manualPropTypeWarningCount = 0;
|
|
2325
|
-
}
|
|
2326
|
-
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
2327
|
-
componentName = componentName || ANONYMOUS;
|
|
2328
|
-
propFullName = propFullName || propName;
|
|
2329
|
-
|
|
2330
|
-
if (secret !== ReactPropTypesSecret) {
|
|
2331
|
-
if (throwOnDirectAccess) {
|
|
2332
|
-
// New behavior only for users of `prop-types` package
|
|
2333
|
-
var err = new Error(
|
|
2334
|
-
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
2335
|
-
'Use `PropTypes.checkPropTypes()` to call them. ' +
|
|
2336
|
-
'Read more at http://fb.me/use-check-prop-types'
|
|
2337
|
-
);
|
|
2338
|
-
err.name = 'Invariant Violation';
|
|
2339
|
-
throw err;
|
|
2340
|
-
} else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
|
|
2341
|
-
// Old behavior for people using React.PropTypes
|
|
2342
|
-
var cacheKey = componentName + ':' + propName;
|
|
2343
|
-
if (
|
|
2344
|
-
!manualPropTypeCallCache[cacheKey] &&
|
|
2345
|
-
// Avoid spamming the console because they are often not actionable except for lib authors
|
|
2346
|
-
manualPropTypeWarningCount < 3
|
|
2347
|
-
) {
|
|
2348
|
-
printWarning(
|
|
2349
|
-
'You are manually calling a React.PropTypes validation ' +
|
|
2350
|
-
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
2351
|
-
'and will throw in the standalone `prop-types` package. ' +
|
|
2352
|
-
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
2353
|
-
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
2354
|
-
);
|
|
2355
|
-
manualPropTypeCallCache[cacheKey] = true;
|
|
2356
|
-
manualPropTypeWarningCount++;
|
|
2357
|
-
}
|
|
2358
|
-
}
|
|
2359
|
-
}
|
|
2360
|
-
if (props[propName] == null) {
|
|
2361
|
-
if (isRequired) {
|
|
2362
|
-
if (props[propName] === null) {
|
|
2363
|
-
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
|
|
2364
|
-
}
|
|
2365
|
-
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
|
|
2366
|
-
}
|
|
2367
|
-
return null;
|
|
2368
|
-
} else {
|
|
2369
|
-
return validate(props, propName, componentName, location, propFullName);
|
|
2370
|
-
}
|
|
2371
|
-
}
|
|
2372
|
-
|
|
2373
|
-
var chainedCheckType = checkType.bind(null, false);
|
|
2374
|
-
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
2375
|
-
|
|
2376
|
-
return chainedCheckType;
|
|
2377
|
-
}
|
|
2378
|
-
|
|
2379
|
-
function createPrimitiveTypeChecker(expectedType) {
|
|
2380
|
-
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
2381
|
-
var propValue = props[propName];
|
|
2382
|
-
var propType = getPropType(propValue);
|
|
2383
|
-
if (propType !== expectedType) {
|
|
2384
|
-
// `propValue` being instance of, say, date/regexp, pass the 'object'
|
|
2385
|
-
// check, but we can offer a more precise error message here rather than
|
|
2386
|
-
// 'of type `object`'.
|
|
2387
|
-
var preciseType = getPreciseType(propValue);
|
|
2388
|
-
|
|
2389
|
-
return new PropTypeError(
|
|
2390
|
-
'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
|
|
2391
|
-
{expectedType: expectedType}
|
|
2392
|
-
);
|
|
2393
|
-
}
|
|
2394
|
-
return null;
|
|
2395
|
-
}
|
|
2396
|
-
return createChainableTypeChecker(validate);
|
|
2397
|
-
}
|
|
2398
|
-
|
|
2399
|
-
function createAnyTypeChecker() {
|
|
2400
|
-
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
|
2401
|
-
}
|
|
2402
|
-
|
|
2403
|
-
function createArrayOfTypeChecker(typeChecker) {
|
|
2404
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
2405
|
-
if (typeof typeChecker !== 'function') {
|
|
2406
|
-
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
|
|
2407
|
-
}
|
|
2408
|
-
var propValue = props[propName];
|
|
2409
|
-
if (!Array.isArray(propValue)) {
|
|
2410
|
-
var propType = getPropType(propValue);
|
|
2411
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
|
2412
|
-
}
|
|
2413
|
-
for (var i = 0; i < propValue.length; i++) {
|
|
2414
|
-
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
|
|
2415
|
-
if (error instanceof Error) {
|
|
2416
|
-
return error;
|
|
2417
|
-
}
|
|
2418
|
-
}
|
|
2419
|
-
return null;
|
|
2420
|
-
}
|
|
2421
|
-
return createChainableTypeChecker(validate);
|
|
2422
|
-
}
|
|
2423
|
-
|
|
2424
|
-
function createElementTypeChecker() {
|
|
2425
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
2426
|
-
var propValue = props[propName];
|
|
2427
|
-
if (!isValidElement(propValue)) {
|
|
2428
|
-
var propType = getPropType(propValue);
|
|
2429
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
|
|
2430
|
-
}
|
|
2431
|
-
return null;
|
|
2432
|
-
}
|
|
2433
|
-
return createChainableTypeChecker(validate);
|
|
2434
|
-
}
|
|
2435
|
-
|
|
2436
|
-
function createElementTypeTypeChecker() {
|
|
2437
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
2438
|
-
var propValue = props[propName];
|
|
2439
|
-
if (!ReactIs.isValidElementType(propValue)) {
|
|
2440
|
-
var propType = getPropType(propValue);
|
|
2441
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
|
|
2442
|
-
}
|
|
2443
|
-
return null;
|
|
2444
|
-
}
|
|
2445
|
-
return createChainableTypeChecker(validate);
|
|
2446
|
-
}
|
|
2447
|
-
|
|
2448
|
-
function createInstanceTypeChecker(expectedClass) {
|
|
2449
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
2450
|
-
if (!(props[propName] instanceof expectedClass)) {
|
|
2451
|
-
var expectedClassName = expectedClass.name || ANONYMOUS;
|
|
2452
|
-
var actualClassName = getClassName(props[propName]);
|
|
2453
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
|
|
2454
|
-
}
|
|
2455
|
-
return null;
|
|
2456
|
-
}
|
|
2457
|
-
return createChainableTypeChecker(validate);
|
|
2458
|
-
}
|
|
2459
|
-
|
|
2460
|
-
function createEnumTypeChecker(expectedValues) {
|
|
2461
|
-
if (!Array.isArray(expectedValues)) {
|
|
2462
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
2463
|
-
if (arguments.length > 1) {
|
|
2464
|
-
printWarning(
|
|
2465
|
-
'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
|
|
2466
|
-
'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
|
|
2467
|
-
);
|
|
2468
|
-
} else {
|
|
2469
|
-
printWarning('Invalid argument supplied to oneOf, expected an array.');
|
|
2470
|
-
}
|
|
2471
|
-
}
|
|
2472
|
-
return emptyFunctionThatReturnsNull;
|
|
2473
|
-
}
|
|
2474
|
-
|
|
2475
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
2476
|
-
var propValue = props[propName];
|
|
2477
|
-
for (var i = 0; i < expectedValues.length; i++) {
|
|
2478
|
-
if (is(propValue, expectedValues[i])) {
|
|
2479
|
-
return null;
|
|
2480
|
-
}
|
|
2481
|
-
}
|
|
2482
|
-
|
|
2483
|
-
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
|
2484
|
-
var type = getPreciseType(value);
|
|
2485
|
-
if (type === 'symbol') {
|
|
2486
|
-
return String(value);
|
|
2487
|
-
}
|
|
2488
|
-
return value;
|
|
2489
|
-
});
|
|
2490
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
|
|
2491
|
-
}
|
|
2492
|
-
return createChainableTypeChecker(validate);
|
|
2493
|
-
}
|
|
2494
|
-
|
|
2495
|
-
function createObjectOfTypeChecker(typeChecker) {
|
|
2496
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
2497
|
-
if (typeof typeChecker !== 'function') {
|
|
2498
|
-
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
|
|
2499
|
-
}
|
|
2500
|
-
var propValue = props[propName];
|
|
2501
|
-
var propType = getPropType(propValue);
|
|
2502
|
-
if (propType !== 'object') {
|
|
2503
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
|
2504
|
-
}
|
|
2505
|
-
for (var key in propValue) {
|
|
2506
|
-
if (has(propValue, key)) {
|
|
2507
|
-
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
2508
|
-
if (error instanceof Error) {
|
|
2509
|
-
return error;
|
|
2510
|
-
}
|
|
2511
|
-
}
|
|
2512
|
-
}
|
|
2513
|
-
return null;
|
|
2514
|
-
}
|
|
2515
|
-
return createChainableTypeChecker(validate);
|
|
2516
|
-
}
|
|
2517
|
-
|
|
2518
|
-
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
2519
|
-
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
2520
|
-
process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
|
|
2521
|
-
return emptyFunctionThatReturnsNull;
|
|
2522
|
-
}
|
|
2523
|
-
|
|
2524
|
-
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
2525
|
-
var checker = arrayOfTypeCheckers[i];
|
|
2526
|
-
if (typeof checker !== 'function') {
|
|
2527
|
-
printWarning(
|
|
2528
|
-
'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
|
|
2529
|
-
'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
|
|
2530
|
-
);
|
|
2531
|
-
return emptyFunctionThatReturnsNull;
|
|
2532
|
-
}
|
|
2533
|
-
}
|
|
2534
|
-
|
|
2535
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
2536
|
-
var expectedTypes = [];
|
|
2537
|
-
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
2538
|
-
var checker = arrayOfTypeCheckers[i];
|
|
2539
|
-
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
|
2540
|
-
if (checkerResult == null) {
|
|
2541
|
-
return null;
|
|
2542
|
-
}
|
|
2543
|
-
if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
|
|
2544
|
-
expectedTypes.push(checkerResult.data.expectedType);
|
|
2545
|
-
}
|
|
2546
|
-
}
|
|
2547
|
-
var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
|
|
2548
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
|
2549
|
-
}
|
|
2550
|
-
return createChainableTypeChecker(validate);
|
|
2551
|
-
}
|
|
2552
|
-
|
|
2553
|
-
function createNodeChecker() {
|
|
2554
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
2555
|
-
if (!isNode(props[propName])) {
|
|
2556
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
|
|
2557
|
-
}
|
|
2558
|
-
return null;
|
|
2559
|
-
}
|
|
2560
|
-
return createChainableTypeChecker(validate);
|
|
2561
|
-
}
|
|
2562
|
-
|
|
2563
|
-
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
2564
|
-
return new PropTypeError(
|
|
2565
|
-
(componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
|
|
2566
|
-
'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
|
|
2567
|
-
);
|
|
2568
|
-
}
|
|
2569
|
-
|
|
2570
|
-
function createShapeTypeChecker(shapeTypes) {
|
|
2571
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
2572
|
-
var propValue = props[propName];
|
|
2573
|
-
var propType = getPropType(propValue);
|
|
2574
|
-
if (propType !== 'object') {
|
|
2575
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
2576
|
-
}
|
|
2577
|
-
for (var key in shapeTypes) {
|
|
2578
|
-
var checker = shapeTypes[key];
|
|
2579
|
-
if (typeof checker !== 'function') {
|
|
2580
|
-
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
2581
|
-
}
|
|
2582
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
2583
|
-
if (error) {
|
|
2584
|
-
return error;
|
|
2585
|
-
}
|
|
2586
|
-
}
|
|
2587
|
-
return null;
|
|
2588
|
-
}
|
|
2589
|
-
return createChainableTypeChecker(validate);
|
|
2590
|
-
}
|
|
2591
|
-
|
|
2592
|
-
function createStrictShapeTypeChecker(shapeTypes) {
|
|
2593
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
2594
|
-
var propValue = props[propName];
|
|
2595
|
-
var propType = getPropType(propValue);
|
|
2596
|
-
if (propType !== 'object') {
|
|
2597
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
2598
|
-
}
|
|
2599
|
-
// We need to check all keys in case some are required but missing from props.
|
|
2600
|
-
var allKeys = assign({}, props[propName], shapeTypes);
|
|
2601
|
-
for (var key in allKeys) {
|
|
2602
|
-
var checker = shapeTypes[key];
|
|
2603
|
-
if (has(shapeTypes, key) && typeof checker !== 'function') {
|
|
2604
|
-
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
2605
|
-
}
|
|
2606
|
-
if (!checker) {
|
|
2607
|
-
return new PropTypeError(
|
|
2608
|
-
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
2609
|
-
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
2610
|
-
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
2611
|
-
);
|
|
2612
|
-
}
|
|
2613
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
2614
|
-
if (error) {
|
|
2615
|
-
return error;
|
|
2616
|
-
}
|
|
2617
|
-
}
|
|
2618
|
-
return null;
|
|
2619
|
-
}
|
|
2620
|
-
|
|
2621
|
-
return createChainableTypeChecker(validate);
|
|
2622
|
-
}
|
|
2623
|
-
|
|
2624
|
-
function isNode(propValue) {
|
|
2625
|
-
switch (typeof propValue) {
|
|
2626
|
-
case 'number':
|
|
2627
|
-
case 'string':
|
|
2628
|
-
case 'undefined':
|
|
2629
|
-
return true;
|
|
2630
|
-
case 'boolean':
|
|
2631
|
-
return !propValue;
|
|
2632
|
-
case 'object':
|
|
2633
|
-
if (Array.isArray(propValue)) {
|
|
2634
|
-
return propValue.every(isNode);
|
|
2635
|
-
}
|
|
2636
|
-
if (propValue === null || isValidElement(propValue)) {
|
|
2637
|
-
return true;
|
|
2638
|
-
}
|
|
2639
|
-
|
|
2640
|
-
var iteratorFn = getIteratorFn(propValue);
|
|
2641
|
-
if (iteratorFn) {
|
|
2642
|
-
var iterator = iteratorFn.call(propValue);
|
|
2643
|
-
var step;
|
|
2644
|
-
if (iteratorFn !== propValue.entries) {
|
|
2645
|
-
while (!(step = iterator.next()).done) {
|
|
2646
|
-
if (!isNode(step.value)) {
|
|
2647
|
-
return false;
|
|
2648
|
-
}
|
|
2649
|
-
}
|
|
2650
|
-
} else {
|
|
2651
|
-
// Iterator will provide entry [k,v] tuples rather than values.
|
|
2652
|
-
while (!(step = iterator.next()).done) {
|
|
2653
|
-
var entry = step.value;
|
|
2654
|
-
if (entry) {
|
|
2655
|
-
if (!isNode(entry[1])) {
|
|
2656
|
-
return false;
|
|
2657
|
-
}
|
|
2658
|
-
}
|
|
2659
|
-
}
|
|
2660
|
-
}
|
|
2661
|
-
} else {
|
|
2662
|
-
return false;
|
|
2663
|
-
}
|
|
2664
|
-
|
|
2665
|
-
return true;
|
|
2666
|
-
default:
|
|
2667
|
-
return false;
|
|
2668
|
-
}
|
|
2669
|
-
}
|
|
2670
|
-
|
|
2671
|
-
function isSymbol(propType, propValue) {
|
|
2672
|
-
// Native Symbol.
|
|
2673
|
-
if (propType === 'symbol') {
|
|
2674
|
-
return true;
|
|
2675
|
-
}
|
|
2676
|
-
|
|
2677
|
-
// falsy value can't be a Symbol
|
|
2678
|
-
if (!propValue) {
|
|
2679
|
-
return false;
|
|
2680
|
-
}
|
|
2681
|
-
|
|
2682
|
-
// 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
|
|
2683
|
-
if (propValue['@@toStringTag'] === 'Symbol') {
|
|
2684
|
-
return true;
|
|
2685
|
-
}
|
|
2686
|
-
|
|
2687
|
-
// Fallback for non-spec compliant Symbols which are polyfilled.
|
|
2688
|
-
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
|
|
2689
|
-
return true;
|
|
2690
|
-
}
|
|
2691
|
-
|
|
2692
|
-
return false;
|
|
2693
|
-
}
|
|
2694
|
-
|
|
2695
|
-
// Equivalent of `typeof` but with special handling for array and regexp.
|
|
2696
|
-
function getPropType(propValue) {
|
|
2697
|
-
var propType = typeof propValue;
|
|
2698
|
-
if (Array.isArray(propValue)) {
|
|
2699
|
-
return 'array';
|
|
2700
|
-
}
|
|
2701
|
-
if (propValue instanceof RegExp) {
|
|
2702
|
-
// Old webkits (at least until Android 4.0) return 'function' rather than
|
|
2703
|
-
// 'object' for typeof a RegExp. We'll normalize this here so that /bla/
|
|
2704
|
-
// passes PropTypes.object.
|
|
2705
|
-
return 'object';
|
|
2706
|
-
}
|
|
2707
|
-
if (isSymbol(propType, propValue)) {
|
|
2708
|
-
return 'symbol';
|
|
2709
|
-
}
|
|
2710
|
-
return propType;
|
|
2711
|
-
}
|
|
2712
|
-
|
|
2713
|
-
// This handles more types than `getPropType`. Only used for error messages.
|
|
2714
|
-
// See `createPrimitiveTypeChecker`.
|
|
2715
|
-
function getPreciseType(propValue) {
|
|
2716
|
-
if (typeof propValue === 'undefined' || propValue === null) {
|
|
2717
|
-
return '' + propValue;
|
|
2718
|
-
}
|
|
2719
|
-
var propType = getPropType(propValue);
|
|
2720
|
-
if (propType === 'object') {
|
|
2721
|
-
if (propValue instanceof Date) {
|
|
2722
|
-
return 'date';
|
|
2723
|
-
} else if (propValue instanceof RegExp) {
|
|
2724
|
-
return 'regexp';
|
|
2725
|
-
}
|
|
2726
|
-
}
|
|
2727
|
-
return propType;
|
|
2728
|
-
}
|
|
2729
|
-
|
|
2730
|
-
// Returns a string that is postfixed to a warning about an invalid type.
|
|
2731
|
-
// For example, "undefined" or "of type array"
|
|
2732
|
-
function getPostfixForTypeWarning(value) {
|
|
2733
|
-
var type = getPreciseType(value);
|
|
2734
|
-
switch (type) {
|
|
2735
|
-
case 'array':
|
|
2736
|
-
case 'object':
|
|
2737
|
-
return 'an ' + type;
|
|
2738
|
-
case 'boolean':
|
|
2739
|
-
case 'date':
|
|
2740
|
-
case 'regexp':
|
|
2741
|
-
return 'a ' + type;
|
|
2742
|
-
default:
|
|
2743
|
-
return type;
|
|
2744
|
-
}
|
|
2745
|
-
}
|
|
2746
|
-
|
|
2747
|
-
// Returns class name of the object, if any.
|
|
2748
|
-
function getClassName(propValue) {
|
|
2749
|
-
if (!propValue.constructor || !propValue.constructor.name) {
|
|
2750
|
-
return ANONYMOUS;
|
|
2751
|
-
}
|
|
2752
|
-
return propValue.constructor.name;
|
|
2753
|
-
}
|
|
2754
|
-
|
|
2755
|
-
ReactPropTypes.checkPropTypes = checkPropTypes;
|
|
2756
|
-
ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
|
|
2757
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
2758
|
-
|
|
2759
|
-
return ReactPropTypes;
|
|
2760
|
-
};
|
|
2761
|
-
return factoryWithTypeCheckers;
|
|
2762
|
-
}
|
|
2763
|
-
|
|
2764
|
-
/**
|
|
2765
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
2766
|
-
*
|
|
2767
|
-
* This source code is licensed under the MIT license found in the
|
|
2768
|
-
* LICENSE file in the root directory of this source tree.
|
|
2769
|
-
*/
|
|
2770
|
-
|
|
2771
|
-
var factoryWithThrowingShims;
|
|
2772
|
-
var hasRequiredFactoryWithThrowingShims;
|
|
2773
|
-
|
|
2774
|
-
function requireFactoryWithThrowingShims () {
|
|
2775
|
-
if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
|
|
2776
|
-
hasRequiredFactoryWithThrowingShims = 1;
|
|
2777
|
-
|
|
2778
|
-
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
2779
|
-
|
|
2780
|
-
function emptyFunction() {}
|
|
2781
|
-
function emptyFunctionWithReset() {}
|
|
2782
|
-
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
2783
|
-
|
|
2784
|
-
factoryWithThrowingShims = function() {
|
|
2785
|
-
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
2786
|
-
if (secret === ReactPropTypesSecret) {
|
|
2787
|
-
// It is still safe when called from React.
|
|
2788
|
-
return;
|
|
2789
|
-
}
|
|
2790
|
-
var err = new Error(
|
|
2791
|
-
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
2792
|
-
'Use PropTypes.checkPropTypes() to call them. ' +
|
|
2793
|
-
'Read more at http://fb.me/use-check-prop-types'
|
|
2794
|
-
);
|
|
2795
|
-
err.name = 'Invariant Violation';
|
|
2796
|
-
throw err;
|
|
2797
|
-
} shim.isRequired = shim;
|
|
2798
|
-
function getShim() {
|
|
2799
|
-
return shim;
|
|
2800
|
-
} // Important!
|
|
2801
|
-
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
2802
|
-
var ReactPropTypes = {
|
|
2803
|
-
array: shim,
|
|
2804
|
-
bigint: shim,
|
|
2805
|
-
bool: shim,
|
|
2806
|
-
func: shim,
|
|
2807
|
-
number: shim,
|
|
2808
|
-
object: shim,
|
|
2809
|
-
string: shim,
|
|
2810
|
-
symbol: shim,
|
|
2811
|
-
|
|
2812
|
-
any: shim,
|
|
2813
|
-
arrayOf: getShim,
|
|
2814
|
-
element: shim,
|
|
2815
|
-
elementType: shim,
|
|
2816
|
-
instanceOf: getShim,
|
|
2817
|
-
node: shim,
|
|
2818
|
-
objectOf: getShim,
|
|
2819
|
-
oneOf: getShim,
|
|
2820
|
-
oneOfType: getShim,
|
|
2821
|
-
shape: getShim,
|
|
2822
|
-
exact: getShim,
|
|
2823
|
-
|
|
2824
|
-
checkPropTypes: emptyFunctionWithReset,
|
|
2825
|
-
resetWarningCache: emptyFunction
|
|
2826
|
-
};
|
|
2827
|
-
|
|
2828
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
2829
|
-
|
|
2830
|
-
return ReactPropTypes;
|
|
2831
|
-
};
|
|
2832
|
-
return factoryWithThrowingShims;
|
|
2833
|
-
}
|
|
2834
|
-
|
|
2835
|
-
/**
|
|
2836
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
2837
|
-
*
|
|
2838
|
-
* This source code is licensed under the MIT license found in the
|
|
2839
|
-
* LICENSE file in the root directory of this source tree.
|
|
2840
|
-
*/
|
|
2841
|
-
|
|
2842
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
2843
|
-
var ReactIs = requireReactIs();
|
|
2844
|
-
|
|
2845
|
-
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
2846
|
-
// http://fb.me/prop-types-in-prod
|
|
2847
|
-
var throwOnDirectAccess = true;
|
|
2848
|
-
propTypes.exports = requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
|
|
2849
|
-
} else {
|
|
2850
|
-
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
2851
|
-
// http://fb.me/prop-types-in-prod
|
|
2852
|
-
propTypes.exports = requireFactoryWithThrowingShims()();
|
|
2853
|
-
}
|
|
2854
|
-
|
|
2855
1553
|
/**
|
|
2856
1554
|
* Checks if a given element has a CSS class.
|
|
2857
1555
|
*
|
|
@@ -2899,24 +1597,6 @@ var config = {
|
|
|
2899
1597
|
disabled: false
|
|
2900
1598
|
};
|
|
2901
1599
|
|
|
2902
|
-
var timeoutsShape = process.env.NODE_ENV !== 'production' ? propTypes.exports.oneOfType([propTypes.exports.number, propTypes.exports.shape({
|
|
2903
|
-
enter: propTypes.exports.number,
|
|
2904
|
-
exit: propTypes.exports.number,
|
|
2905
|
-
appear: propTypes.exports.number
|
|
2906
|
-
}).isRequired]) : null;
|
|
2907
|
-
var classNamesShape = process.env.NODE_ENV !== 'production' ? propTypes.exports.oneOfType([propTypes.exports.string, propTypes.exports.shape({
|
|
2908
|
-
enter: propTypes.exports.string,
|
|
2909
|
-
exit: propTypes.exports.string,
|
|
2910
|
-
active: propTypes.exports.string
|
|
2911
|
-
}), propTypes.exports.shape({
|
|
2912
|
-
enter: propTypes.exports.string,
|
|
2913
|
-
enterDone: propTypes.exports.string,
|
|
2914
|
-
enterActive: propTypes.exports.string,
|
|
2915
|
-
exit: propTypes.exports.string,
|
|
2916
|
-
exitDone: propTypes.exports.string,
|
|
2917
|
-
exitActive: propTypes.exports.string
|
|
2918
|
-
})]) : null;
|
|
2919
|
-
|
|
2920
1600
|
var TransitionGroupContext = React.createContext(null);
|
|
2921
1601
|
|
|
2922
1602
|
var forceReflow = function forceReflow(node) {
|
|
@@ -3329,193 +2009,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
3329
2009
|
}(React.Component);
|
|
3330
2010
|
|
|
3331
2011
|
Transition.contextType = TransitionGroupContext;
|
|
3332
|
-
Transition.propTypes =
|
|
3333
|
-
/**
|
|
3334
|
-
* A React reference to DOM element that need to transition:
|
|
3335
|
-
* https://stackoverflow.com/a/51127130/4671932
|
|
3336
|
-
*
|
|
3337
|
-
* - When `nodeRef` prop is used, `node` is not passed to callback functions
|
|
3338
|
-
* (e.g. `onEnter`) because user already has direct access to the node.
|
|
3339
|
-
* - When changing `key` prop of `Transition` in a `TransitionGroup` a new
|
|
3340
|
-
* `nodeRef` need to be provided to `Transition` with changed `key` prop
|
|
3341
|
-
* (see
|
|
3342
|
-
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
3343
|
-
*/
|
|
3344
|
-
nodeRef: propTypes.exports.shape({
|
|
3345
|
-
current: typeof Element === 'undefined' ? propTypes.exports.any : function (propValue, key, componentName, location, propFullName, secret) {
|
|
3346
|
-
var value = propValue[key];
|
|
3347
|
-
return propTypes.exports.instanceOf(value && 'ownerDocument' in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);
|
|
3348
|
-
}
|
|
3349
|
-
}),
|
|
3350
|
-
|
|
3351
|
-
/**
|
|
3352
|
-
* A `function` child can be used instead of a React element. This function is
|
|
3353
|
-
* called with the current transition status (`'entering'`, `'entered'`,
|
|
3354
|
-
* `'exiting'`, `'exited'`), which can be used to apply context
|
|
3355
|
-
* specific props to a component.
|
|
3356
|
-
*
|
|
3357
|
-
* ```jsx
|
|
3358
|
-
* <Transition in={this.state.in} timeout={150}>
|
|
3359
|
-
* {state => (
|
|
3360
|
-
* <MyComponent className={`fade fade-${state}`} />
|
|
3361
|
-
* )}
|
|
3362
|
-
* </Transition>
|
|
3363
|
-
* ```
|
|
3364
|
-
*/
|
|
3365
|
-
children: propTypes.exports.oneOfType([propTypes.exports.func.isRequired, propTypes.exports.element.isRequired]).isRequired,
|
|
3366
|
-
|
|
3367
|
-
/**
|
|
3368
|
-
* Show the component; triggers the enter or exit states
|
|
3369
|
-
*/
|
|
3370
|
-
in: propTypes.exports.bool,
|
|
3371
|
-
|
|
3372
|
-
/**
|
|
3373
|
-
* By default the child component is mounted immediately along with
|
|
3374
|
-
* the parent `Transition` component. If you want to "lazy mount" the component on the
|
|
3375
|
-
* first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
|
|
3376
|
-
* mounted, even on "exited", unless you also specify `unmountOnExit`.
|
|
3377
|
-
*/
|
|
3378
|
-
mountOnEnter: propTypes.exports.bool,
|
|
3379
|
-
|
|
3380
|
-
/**
|
|
3381
|
-
* By default the child component stays mounted after it reaches the `'exited'` state.
|
|
3382
|
-
* Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
|
|
3383
|
-
*/
|
|
3384
|
-
unmountOnExit: propTypes.exports.bool,
|
|
3385
|
-
|
|
3386
|
-
/**
|
|
3387
|
-
* By default the child component does not perform the enter transition when
|
|
3388
|
-
* it first mounts, regardless of the value of `in`. If you want this
|
|
3389
|
-
* behavior, set both `appear` and `in` to `true`.
|
|
3390
|
-
*
|
|
3391
|
-
* > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
|
|
3392
|
-
* > only adds an additional enter transition. However, in the
|
|
3393
|
-
* > `<CSSTransition>` component that first enter transition does result in
|
|
3394
|
-
* > additional `.appear-*` classes, that way you can choose to style it
|
|
3395
|
-
* > differently.
|
|
3396
|
-
*/
|
|
3397
|
-
appear: propTypes.exports.bool,
|
|
3398
|
-
|
|
3399
|
-
/**
|
|
3400
|
-
* Enable or disable enter transitions.
|
|
3401
|
-
*/
|
|
3402
|
-
enter: propTypes.exports.bool,
|
|
3403
|
-
|
|
3404
|
-
/**
|
|
3405
|
-
* Enable or disable exit transitions.
|
|
3406
|
-
*/
|
|
3407
|
-
exit: propTypes.exports.bool,
|
|
3408
|
-
|
|
3409
|
-
/**
|
|
3410
|
-
* The duration of the transition, in milliseconds.
|
|
3411
|
-
* Required unless `addEndListener` is provided.
|
|
3412
|
-
*
|
|
3413
|
-
* You may specify a single timeout for all transitions:
|
|
3414
|
-
*
|
|
3415
|
-
* ```jsx
|
|
3416
|
-
* timeout={500}
|
|
3417
|
-
* ```
|
|
3418
|
-
*
|
|
3419
|
-
* or individually:
|
|
3420
|
-
*
|
|
3421
|
-
* ```jsx
|
|
3422
|
-
* timeout={{
|
|
3423
|
-
* appear: 500,
|
|
3424
|
-
* enter: 300,
|
|
3425
|
-
* exit: 500,
|
|
3426
|
-
* }}
|
|
3427
|
-
* ```
|
|
3428
|
-
*
|
|
3429
|
-
* - `appear` defaults to the value of `enter`
|
|
3430
|
-
* - `enter` defaults to `0`
|
|
3431
|
-
* - `exit` defaults to `0`
|
|
3432
|
-
*
|
|
3433
|
-
* @type {number | { enter?: number, exit?: number, appear?: number }}
|
|
3434
|
-
*/
|
|
3435
|
-
timeout: function timeout(props) {
|
|
3436
|
-
var pt = timeoutsShape;
|
|
3437
|
-
if (!props.addEndListener) pt = pt.isRequired;
|
|
3438
|
-
|
|
3439
|
-
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
3440
|
-
args[_key - 1] = arguments[_key];
|
|
3441
|
-
}
|
|
3442
|
-
|
|
3443
|
-
return pt.apply(void 0, [props].concat(args));
|
|
3444
|
-
},
|
|
3445
|
-
|
|
3446
|
-
/**
|
|
3447
|
-
* Add a custom transition end trigger. Called with the transitioning
|
|
3448
|
-
* DOM node and a `done` callback. Allows for more fine grained transition end
|
|
3449
|
-
* logic. Timeouts are still used as a fallback if provided.
|
|
3450
|
-
*
|
|
3451
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
3452
|
-
*
|
|
3453
|
-
* ```jsx
|
|
3454
|
-
* addEndListener={(node, done) => {
|
|
3455
|
-
* // use the css transitionend event to mark the finish of a transition
|
|
3456
|
-
* node.addEventListener('transitionend', done, false);
|
|
3457
|
-
* }}
|
|
3458
|
-
* ```
|
|
3459
|
-
*/
|
|
3460
|
-
addEndListener: propTypes.exports.func,
|
|
3461
|
-
|
|
3462
|
-
/**
|
|
3463
|
-
* Callback fired before the "entering" status is applied. An extra parameter
|
|
3464
|
-
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
3465
|
-
*
|
|
3466
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
3467
|
-
*
|
|
3468
|
-
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
3469
|
-
*/
|
|
3470
|
-
onEnter: propTypes.exports.func,
|
|
3471
|
-
|
|
3472
|
-
/**
|
|
3473
|
-
* Callback fired after the "entering" status is applied. An extra parameter
|
|
3474
|
-
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
3475
|
-
*
|
|
3476
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
3477
|
-
*
|
|
3478
|
-
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
3479
|
-
*/
|
|
3480
|
-
onEntering: propTypes.exports.func,
|
|
3481
|
-
|
|
3482
|
-
/**
|
|
3483
|
-
* Callback fired after the "entered" status is applied. An extra parameter
|
|
3484
|
-
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
3485
|
-
*
|
|
3486
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
3487
|
-
*
|
|
3488
|
-
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
3489
|
-
*/
|
|
3490
|
-
onEntered: propTypes.exports.func,
|
|
3491
|
-
|
|
3492
|
-
/**
|
|
3493
|
-
* Callback fired before the "exiting" status is applied.
|
|
3494
|
-
*
|
|
3495
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
3496
|
-
*
|
|
3497
|
-
* @type Function(node: HtmlElement) -> void
|
|
3498
|
-
*/
|
|
3499
|
-
onExit: propTypes.exports.func,
|
|
3500
|
-
|
|
3501
|
-
/**
|
|
3502
|
-
* Callback fired after the "exiting" status is applied.
|
|
3503
|
-
*
|
|
3504
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
3505
|
-
*
|
|
3506
|
-
* @type Function(node: HtmlElement) -> void
|
|
3507
|
-
*/
|
|
3508
|
-
onExiting: propTypes.exports.func,
|
|
3509
|
-
|
|
3510
|
-
/**
|
|
3511
|
-
* Callback fired after the "exited" status is applied.
|
|
3512
|
-
*
|
|
3513
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed
|
|
3514
|
-
*
|
|
3515
|
-
* @type Function(node: HtmlElement) -> void
|
|
3516
|
-
*/
|
|
3517
|
-
onExited: propTypes.exports.func
|
|
3518
|
-
} : {}; // Name the function so it is clearer in the documentation
|
|
2012
|
+
Transition.propTypes = {}; // Name the function so it is clearer in the documentation
|
|
3519
2013
|
|
|
3520
2014
|
function noop() {}
|
|
3521
2015
|
|
|
@@ -3810,136 +2304,7 @@ var CSSTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
3810
2304
|
CSSTransition.defaultProps = {
|
|
3811
2305
|
classNames: ''
|
|
3812
2306
|
};
|
|
3813
|
-
CSSTransition.propTypes =
|
|
3814
|
-
/**
|
|
3815
|
-
* The animation classNames applied to the component as it appears, enters,
|
|
3816
|
-
* exits or has finished the transition. A single name can be provided, which
|
|
3817
|
-
* will be suffixed for each stage, e.g. `classNames="fade"` applies:
|
|
3818
|
-
*
|
|
3819
|
-
* - `fade-appear`, `fade-appear-active`, `fade-appear-done`
|
|
3820
|
-
* - `fade-enter`, `fade-enter-active`, `fade-enter-done`
|
|
3821
|
-
* - `fade-exit`, `fade-exit-active`, `fade-exit-done`
|
|
3822
|
-
*
|
|
3823
|
-
* A few details to note about how these classes are applied:
|
|
3824
|
-
*
|
|
3825
|
-
* 1. They are _joined_ with the ones that are already defined on the child
|
|
3826
|
-
* component, so if you want to add some base styles, you can use
|
|
3827
|
-
* `className` without worrying that it will be overridden.
|
|
3828
|
-
*
|
|
3829
|
-
* 2. If the transition component mounts with `in={false}`, no classes are
|
|
3830
|
-
* applied yet. You might be expecting `*-exit-done`, but if you think
|
|
3831
|
-
* about it, a component cannot finish exiting if it hasn't entered yet.
|
|
3832
|
-
*
|
|
3833
|
-
* 2. `fade-appear-done` and `fade-enter-done` will _both_ be applied. This
|
|
3834
|
-
* allows you to define different behavior for when appearing is done and
|
|
3835
|
-
* when regular entering is done, using selectors like
|
|
3836
|
-
* `.fade-enter-done:not(.fade-appear-done)`. For example, you could apply
|
|
3837
|
-
* an epic entrance animation when element first appears in the DOM using
|
|
3838
|
-
* [Animate.css](https://daneden.github.io/animate.css/). Otherwise you can
|
|
3839
|
-
* simply use `fade-enter-done` for defining both cases.
|
|
3840
|
-
*
|
|
3841
|
-
* Each individual classNames can also be specified independently like:
|
|
3842
|
-
*
|
|
3843
|
-
* ```js
|
|
3844
|
-
* classNames={{
|
|
3845
|
-
* appear: 'my-appear',
|
|
3846
|
-
* appearActive: 'my-active-appear',
|
|
3847
|
-
* appearDone: 'my-done-appear',
|
|
3848
|
-
* enter: 'my-enter',
|
|
3849
|
-
* enterActive: 'my-active-enter',
|
|
3850
|
-
* enterDone: 'my-done-enter',
|
|
3851
|
-
* exit: 'my-exit',
|
|
3852
|
-
* exitActive: 'my-active-exit',
|
|
3853
|
-
* exitDone: 'my-done-exit',
|
|
3854
|
-
* }}
|
|
3855
|
-
* ```
|
|
3856
|
-
*
|
|
3857
|
-
* If you want to set these classes using CSS Modules:
|
|
3858
|
-
*
|
|
3859
|
-
* ```js
|
|
3860
|
-
* import styles from './styles.css';
|
|
3861
|
-
* ```
|
|
3862
|
-
*
|
|
3863
|
-
* you might want to use camelCase in your CSS file, that way could simply
|
|
3864
|
-
* spread them instead of listing them one by one:
|
|
3865
|
-
*
|
|
3866
|
-
* ```js
|
|
3867
|
-
* classNames={{ ...styles }}
|
|
3868
|
-
* ```
|
|
3869
|
-
*
|
|
3870
|
-
* @type {string | {
|
|
3871
|
-
* appear?: string,
|
|
3872
|
-
* appearActive?: string,
|
|
3873
|
-
* appearDone?: string,
|
|
3874
|
-
* enter?: string,
|
|
3875
|
-
* enterActive?: string,
|
|
3876
|
-
* enterDone?: string,
|
|
3877
|
-
* exit?: string,
|
|
3878
|
-
* exitActive?: string,
|
|
3879
|
-
* exitDone?: string,
|
|
3880
|
-
* }}
|
|
3881
|
-
*/
|
|
3882
|
-
classNames: classNamesShape,
|
|
3883
|
-
|
|
3884
|
-
/**
|
|
3885
|
-
* A `<Transition>` callback fired immediately after the 'enter' or 'appear' class is
|
|
3886
|
-
* applied.
|
|
3887
|
-
*
|
|
3888
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
3889
|
-
*
|
|
3890
|
-
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
3891
|
-
*/
|
|
3892
|
-
onEnter: propTypes.exports.func,
|
|
3893
|
-
|
|
3894
|
-
/**
|
|
3895
|
-
* A `<Transition>` callback fired immediately after the 'enter-active' or
|
|
3896
|
-
* 'appear-active' class is applied.
|
|
3897
|
-
*
|
|
3898
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
3899
|
-
*
|
|
3900
|
-
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
3901
|
-
*/
|
|
3902
|
-
onEntering: propTypes.exports.func,
|
|
3903
|
-
|
|
3904
|
-
/**
|
|
3905
|
-
* A `<Transition>` callback fired immediately after the 'enter' or
|
|
3906
|
-
* 'appear' classes are **removed** and the `done` class is added to the DOM node.
|
|
3907
|
-
*
|
|
3908
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
3909
|
-
*
|
|
3910
|
-
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
3911
|
-
*/
|
|
3912
|
-
onEntered: propTypes.exports.func,
|
|
3913
|
-
|
|
3914
|
-
/**
|
|
3915
|
-
* A `<Transition>` callback fired immediately after the 'exit' class is
|
|
3916
|
-
* applied.
|
|
3917
|
-
*
|
|
3918
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed
|
|
3919
|
-
*
|
|
3920
|
-
* @type Function(node: HtmlElement)
|
|
3921
|
-
*/
|
|
3922
|
-
onExit: propTypes.exports.func,
|
|
3923
|
-
|
|
3924
|
-
/**
|
|
3925
|
-
* A `<Transition>` callback fired immediately after the 'exit-active' is applied.
|
|
3926
|
-
*
|
|
3927
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed
|
|
3928
|
-
*
|
|
3929
|
-
* @type Function(node: HtmlElement)
|
|
3930
|
-
*/
|
|
3931
|
-
onExiting: propTypes.exports.func,
|
|
3932
|
-
|
|
3933
|
-
/**
|
|
3934
|
-
* A `<Transition>` callback fired immediately after the 'exit' classes
|
|
3935
|
-
* are **removed** and the `exit-done` class is added to the DOM node.
|
|
3936
|
-
*
|
|
3937
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed
|
|
3938
|
-
*
|
|
3939
|
-
* @type Function(node: HtmlElement)
|
|
3940
|
-
*/
|
|
3941
|
-
onExited: propTypes.exports.func
|
|
3942
|
-
}) : {};
|
|
2307
|
+
CSSTransition.propTypes = {};
|
|
3943
2308
|
var CSSTransition$1 = CSSTransition;
|
|
3944
2309
|
|
|
3945
2310
|
var Body = function Body(_ref) {
|
|
@@ -4002,7 +2367,7 @@ var Slider = function Slider(_ref) {
|
|
|
4002
2367
|
timeout: 300
|
|
4003
2368
|
}, /*#__PURE__*/React.createElement("div", {
|
|
4004
2369
|
className: "neeto-filters-slider__pane"
|
|
4005
|
-
}, /*#__PURE__*/React.createElement("div", _extends
|
|
2370
|
+
}, /*#__PURE__*/React.createElement("div", _extends({
|
|
4006
2371
|
className: classnames("neeto-filters-slider__wrapper", _defineProperty({
|
|
4007
2372
|
"neeto-filters-slider__wrapper--xsmall": size === SIZES.xsmall,
|
|
4008
2373
|
"neeto-filters-slider__wrapper--small": size === SIZES.small,
|
|
@@ -4041,7 +2406,7 @@ var useFilters = function useFilters(_ref) {
|
|
|
4041
2406
|
var handlePrecenseOfDefaultFilters = function handlePrecenseOfDefaultFilters(defaultFilters) {
|
|
4042
2407
|
var params = buildUrlFromFilters({
|
|
4043
2408
|
columns: columns,
|
|
4044
|
-
filters: isNotEmpty(getSearchTermFromUrl()) ? [].concat(_toConsumableArray(defaultFilters), [keywordFilter]) : defaultFilters
|
|
2409
|
+
filters: isKeywordFilterPresent(keywordFilter) && isNotEmpty(getSearchTermFromUrl()) ? [].concat(_toConsumableArray(defaultFilters), [keywordFilter]) : defaultFilters
|
|
4045
2410
|
});
|
|
4046
2411
|
history.replace({
|
|
4047
2412
|
search: params
|
|
@@ -4061,7 +2426,7 @@ var useFilters = function useFilters(_ref) {
|
|
|
4061
2426
|
return;
|
|
4062
2427
|
}
|
|
4063
2428
|
var newFilters = buildFiltersFromSearchParams(columns);
|
|
4064
|
-
var filtersPayload = isNotEmpty(getSearchTermFromUrl()) ? append(keywordFilter, newFilters) : newFilters;
|
|
2429
|
+
var filtersPayload = isKeywordFilterPresent(keywordFilter) && isNotEmpty(getSearchTermFromUrl()) ? append(keywordFilter, newFilters) : newFilters;
|
|
4065
2430
|
handleFiltersChange(filtersPayload);
|
|
4066
2431
|
onSelectorsChange(buildSelectorsFromURL(columns));
|
|
4067
2432
|
};
|
|
@@ -4222,7 +2587,7 @@ var Boolean = function Boolean(_ref) {
|
|
|
4222
2587
|
});
|
|
4223
2588
|
handleApplyFilter(updatedFilter);
|
|
4224
2589
|
};
|
|
4225
|
-
return /*#__PURE__*/React.createElement(Select, _extends
|
|
2590
|
+
return /*#__PURE__*/React.createElement(Select, _extends({
|
|
4226
2591
|
autoFocus: autoFocus,
|
|
4227
2592
|
label: label,
|
|
4228
2593
|
options: options,
|
|
@@ -4307,7 +2672,7 @@ var Datetime = function Datetime(_ref) {
|
|
|
4307
2672
|
resource: label.toLocaleLowerCase()
|
|
4308
2673
|
}),
|
|
4309
2674
|
onChange: handleChange
|
|
4310
|
-
}), isDatePickerShown && /*#__PURE__*/React.createElement(DatePicker, _extends
|
|
2675
|
+
}), isDatePickerShown && /*#__PURE__*/React.createElement(DatePicker, _extends({
|
|
4311
2676
|
"data-cy": "neeto-filters-".concat(key, "-date-range"),
|
|
4312
2677
|
getPopupContainer: prop("parentNode"),
|
|
4313
2678
|
type: (selectedRule === null || selectedRule === void 0 ? void 0 : selectedRule.value) === "custom-date-range" ? "range" : "date",
|
|
@@ -4357,7 +2722,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
4357
2722
|
});
|
|
4358
2723
|
handleApplyFilter(updatedFilter);
|
|
4359
2724
|
};
|
|
4360
|
-
return /*#__PURE__*/React.createElement(Select, _extends
|
|
2725
|
+
return /*#__PURE__*/React.createElement(Select, _extends({
|
|
4361
2726
|
autoFocus: autoFocus,
|
|
4362
2727
|
label: label,
|
|
4363
2728
|
options: options,
|
|
@@ -4398,9 +2763,8 @@ var SingleDatetime = function SingleDatetime(_ref) {
|
|
|
4398
2763
|
|
|
4399
2764
|
// Reset states when "Clear filters" button is clicked.
|
|
4400
2765
|
useEffect(function () {
|
|
4401
|
-
if (isEmpty(filters))
|
|
4402
|
-
|
|
4403
|
-
}
|
|
2766
|
+
if (!isEmpty(filters)) return;
|
|
2767
|
+
setSelectedRule(SINGLE_DATE_OPTIONS[0]);
|
|
4404
2768
|
}, [filters]);
|
|
4405
2769
|
var handleRuleChange = function handleRuleChange(ruleOption) {
|
|
4406
2770
|
setSelectedRule(ruleOption);
|
|
@@ -4448,7 +2812,7 @@ var SingleDatetime = function SingleDatetime(_ref) {
|
|
|
4448
2812
|
strategy: "fixed",
|
|
4449
2813
|
value: selectedRule,
|
|
4450
2814
|
onChange: handleRuleChange
|
|
4451
|
-
}), /*#__PURE__*/React.createElement(DatePicker, _extends
|
|
2815
|
+
}), /*#__PURE__*/React.createElement(DatePicker, _extends({
|
|
4452
2816
|
autoFocus: autoFocus,
|
|
4453
2817
|
value: value,
|
|
4454
2818
|
"data-cy": "neeto-filters-".concat(key, "-filter"),
|
|
@@ -4480,9 +2844,8 @@ var SingleTime = function SingleTime(_ref) {
|
|
|
4480
2844
|
var timePickerType = selectedRule.value === "between" ? "range" : "time";
|
|
4481
2845
|
var value = filter === null || filter === void 0 ? void 0 : filter.value;
|
|
4482
2846
|
useEffect(function () {
|
|
4483
|
-
if (isEmpty(filters))
|
|
4484
|
-
|
|
4485
|
-
}
|
|
2847
|
+
if (!isEmpty(filters)) return;
|
|
2848
|
+
setSelectedRule(SINGLE_TIME_OPTIONS[0]);
|
|
4486
2849
|
}, [filters]);
|
|
4487
2850
|
var handleRuleChange = function handleRuleChange(ruleOption) {
|
|
4488
2851
|
setSelectedRule(ruleOption);
|
|
@@ -4523,10 +2886,10 @@ var SingleTime = function SingleTime(_ref) {
|
|
|
4523
2886
|
strategy: "fixed",
|
|
4524
2887
|
value: selectedRule,
|
|
4525
2888
|
onChange: handleRuleChange
|
|
4526
|
-
}), /*#__PURE__*/React.createElement(TimePicker, _extends
|
|
4527
|
-
use12Hours: true,
|
|
2889
|
+
}), /*#__PURE__*/React.createElement(TimePicker, _extends({
|
|
4528
2890
|
autoFocus: autoFocus,
|
|
4529
2891
|
value: value,
|
|
2892
|
+
use12Hours: true,
|
|
4530
2893
|
className: "w-full",
|
|
4531
2894
|
"data-cy": "neeto-filters-".concat(key, "-filter"),
|
|
4532
2895
|
format: "h:mm A",
|
|
@@ -4583,10 +2946,9 @@ var Text = function Text(_ref) {
|
|
|
4583
2946
|
handleApplyFilter(updatedFilter);
|
|
4584
2947
|
};
|
|
4585
2948
|
var handleKeydown = function handleKeydown(e) {
|
|
4586
|
-
if (e.key === "Enter")
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
}
|
|
2949
|
+
if (!(e.key === "Enter")) return;
|
|
2950
|
+
handleUpdateAndApplyFilter(inputValue);
|
|
2951
|
+
onClose();
|
|
4590
2952
|
};
|
|
4591
2953
|
var handleRuleChange = function handleRuleChange(ruleOption) {
|
|
4592
2954
|
setSelectedRule(ruleOption);
|
|
@@ -4617,7 +2979,7 @@ var Text = function Text(_ref) {
|
|
|
4617
2979
|
strategy: "fixed",
|
|
4618
2980
|
value: selectedRule,
|
|
4619
2981
|
onChange: handleRuleChange
|
|
4620
|
-
}), /*#__PURE__*/React.createElement(Input$1, _extends
|
|
2982
|
+
}), /*#__PURE__*/React.createElement(Input$1, _extends({
|
|
4621
2983
|
autoFocus: autoFocus,
|
|
4622
2984
|
"data-cy": "neeto-filters-".concat(key, "-filter"),
|
|
4623
2985
|
label: !showRuleSelector && label,
|
|
@@ -4687,7 +3049,7 @@ var Time = function Time(_ref) {
|
|
|
4687
3049
|
resource: label.toLocaleLowerCase()
|
|
4688
3050
|
}),
|
|
4689
3051
|
onChange: handleChange
|
|
4690
|
-
}), isCustomTimeRangeShown && /*#__PURE__*/React.createElement(TimePicker, _extends
|
|
3052
|
+
}), isCustomTimeRangeShown && /*#__PURE__*/React.createElement(TimePicker, _extends({
|
|
4691
3053
|
use12Hours: true,
|
|
4692
3054
|
"data-cy": "neeto-filters-".concat(key, "-date-range"),
|
|
4693
3055
|
format: "h:mm A",
|
|
@@ -4815,19 +3177,6 @@ var Pane = function Pane(_ref) {
|
|
|
4815
3177
|
groupedColumns = _buildFilteredColumns2 === void 0 ? [] : _buildFilteredColumns2,
|
|
4816
3178
|
_buildFilteredColumns3 = _buildFilteredColumns.ungroupedColumns,
|
|
4817
3179
|
ungroupedColumns = _buildFilteredColumns3 === void 0 ? [] : _buildFilteredColumns3;
|
|
4818
|
-
var handleChange = function handleChange(newFilters) {
|
|
4819
|
-
var isClearAll = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
4820
|
-
var params = buildUrlFromFilters(_objectSpread$1({
|
|
4821
|
-
columns: columns,
|
|
4822
|
-
filters: isNotEmpty(getSearchTermFromUrl()) ? [].concat(_toConsumableArray(newFilters), [keywordFilter]) : newFilters
|
|
4823
|
-
}, isClearAll && {
|
|
4824
|
-
isClearAll: true,
|
|
4825
|
-
childrenKeys: childrenKeys
|
|
4826
|
-
}));
|
|
4827
|
-
history.push({
|
|
4828
|
-
search: params
|
|
4829
|
-
});
|
|
4830
|
-
};
|
|
4831
3180
|
var keywordFilter = _objectSpread$1(_objectSpread$1({
|
|
4832
3181
|
type: "text",
|
|
4833
3182
|
rule: "contains",
|
|
@@ -4842,8 +3191,21 @@ var Pane = function Pane(_ref) {
|
|
|
4842
3191
|
keywordFilter: keywordFilter,
|
|
4843
3192
|
onSelectorsChange: onSelectorsChange
|
|
4844
3193
|
});
|
|
3194
|
+
var handleChange = function handleChange(newFilters) {
|
|
3195
|
+
var isClearAll = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
3196
|
+
var params = buildUrlFromFilters(_objectSpread$1({
|
|
3197
|
+
columns: columns,
|
|
3198
|
+
filters: isKeywordFilterPresent(keywordFilter) && isNotEmpty(getSearchTermFromUrl()) ? [].concat(_toConsumableArray(newFilters), [keywordFilter]) : newFilters
|
|
3199
|
+
}, isClearAll && {
|
|
3200
|
+
isClearAll: true,
|
|
3201
|
+
childrenKeys: childrenKeys
|
|
3202
|
+
}));
|
|
3203
|
+
history.push({
|
|
3204
|
+
search: params
|
|
3205
|
+
});
|
|
3206
|
+
};
|
|
4845
3207
|
var handleClearAll = function handleClearAll() {
|
|
4846
|
-
var params = omit(["search_term"], getQueryParams());
|
|
3208
|
+
var params = isKeywordFilterPresent(keywordFilter) ? omit(["search_term"], getQueryParams()) : getQueryParams();
|
|
4847
3209
|
var pathname = window.location.pathname;
|
|
4848
3210
|
history.push(buildUrl(pathname, params));
|
|
4849
3211
|
handleChange([], true);
|
|
@@ -4867,7 +3229,7 @@ var Pane = function Pane(_ref) {
|
|
|
4867
3229
|
});
|
|
4868
3230
|
return /*#__PURE__*/React.createElement(Portal, {
|
|
4869
3231
|
rootId: "neeto-filters-portal"
|
|
4870
|
-
}, /*#__PURE__*/React.createElement(Slider, _extends
|
|
3232
|
+
}, /*#__PURE__*/React.createElement(Slider, _extends({
|
|
4871
3233
|
isOpen: isOpen,
|
|
4872
3234
|
size: size,
|
|
4873
3235
|
onClose: handleClose
|
|
@@ -4943,7 +3305,7 @@ var Pane = function Pane(_ref) {
|
|
|
4943
3305
|
|
|
4944
3306
|
var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
|
|
4945
3307
|
|
|
4946
|
-
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 .neeto-ui-input__wrapper{margin-top:16px}.neeto-filters-pane-filter__body .accordion_item .neeto-ui-input__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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9zdHlsZXNoZWV0cy9jb21wb25lbnRzL19iYXIuc2NzcyIsInNyYy9zdHlsZ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ge1xuICAgICAgYm9yZGVyLWJvdHRvbTogdGhpbiBzb2xpZCByZ2IodmFyKC0tbmVldG8tdWktZ3JheS0zMDApKTtcbiAgICB9XG4gIH1cblxuICAmX19mb290ZXIge1xuICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcblxuICAgIGRpdiB7XG4gICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgZ2FwOiA4cHg7XG4gICAgfVxuICB9XG59XG4iXX0= */";
|
|
3308
|
+
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 .neeto-ui-input__wrapper{margin-top:16px}.neeto-filters-pane-filter__body .accordion_item .neeto-ui-input__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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFwcC9qYXZhc2NyaXB0L3NyYy9zdHlsZXNoZWV0cy9jb21wb25lbnRzL19iYXIuc2NzcyIsImFwcC9qYXZhc2NyaXB0L3NyYy9zdHlsZXNoZWV0cy9pbmRleC5zY3NzIiwiYXBwL2phdmFzY3JpcHQvc3JjL3N0eWxlc2hlZXRzL2NvbXBvbmVudHMvX3NsaWRlci5zY3NzIiwiYXBwL2phdmFzY3JpcHQvc3JjL3N0eWxlc2hlZXRzL2Fic3RyYWN0cy9fbWl4aW5zLnNjc3MiLCJhcHAvamF2YXNjcmlwdC9zcmMvc3R5bGVzaGVldHMvY29tcG9uZW50cy9fZmlsdGVycy5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLG1CQUdFLGtCQUFBLENBRkEsWUFBQSxDQUNBLGNDRUYsQ0RDRSwwQkFLRSxxQ0FBQSxDQUhBLFlBQUEsQ0FFQSxPQUFBLENBR0EsWUFBQSxDQUNBLGVBQUEsQ0FFQSxlQUFBLENBVEEsZUFBQSxDQUVBLGlCQUFBLENBR0EscUNBQUEsQ0FHQSxrQkNFSixDRENJLHdDQUNFLG1DQ0NOLENERUksZ0NBUUUsZ0hBQUEsQ0FGQSxtQ0FBQSxDQURBLFNBQUEsQ0FEQSxXQUFBLENBSEEsaUJBQUEsQ0FFQSxPQUFBLENBREEsS0FBQSxDQUtBLHFDQ0NOLENET0ksaUVBRUUsOENBQUEsQ0FDQSxjQ05OLENEUU0saUlBR0UscUNBQUEsQ0FEQSxnQ0FBQSxDQURBLFNDSlIsQ0RVSSxnQ0FFRSx1REFBQSxDQURBLFlDUE4sQ0RZRSw4QkFHRSxrQkFBQSxDQUZBLG1EQUFBLENBQ0EsZ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XJnaW4tdG9wOiAxNnB4O1xuXG4gICAgICAgICY6Zmlyc3Qtb2YtdHlwZSB7XG4gICAgICAgICAgbWFyZ2luLXRvcDogMDtcbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICAmOmZpcnN0LW9mLXR5cGUge1xuICAgICAgICAubmVldG8tdWktYWNjb3JkaW9uX19pdGVtIHtcbiAgICAgICAgICBwYWRkaW5nLXRvcDogMDtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cbiAgICAubmVldG8tdWktYWNjb3JkaW9uX193cmFwcGVyLS1sYXN0LWl0ZW0ge1xuICAgICAgYm9yZGVyLWJvdHRvbTogdGhpbiBzb2xpZCByZ2IodmFyKC0tbmVldG8tdWktZ3JheS0zMDApKTtcbiAgICB9XG4gIH1cblxuICAmX19mb290ZXIge1xuICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcblxuICAgIGRpdiB7XG4gICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgZ2FwOiA4cHg7XG4gICAgfVxuICB9XG59XG4iXX0= */";
|
|
4947
3309
|
n(css,{});
|
|
4948
3310
|
|
|
4949
3311
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -4978,14 +3340,14 @@ var Filters = withT(function (_ref) {
|
|
|
4978
3340
|
children = _ref.children;
|
|
4979
3341
|
return /*#__PURE__*/React.createElement("span", {
|
|
4980
3342
|
className: classnames(_defineProperty({}, className, className))
|
|
4981
|
-
}, /*#__PURE__*/React.createElement(Button, _extends
|
|
3343
|
+
}, /*#__PURE__*/React.createElement(Button, _extends({
|
|
4982
3344
|
"data-cy": "neeto-filters-toggle-btn",
|
|
4983
3345
|
label: t("neetoFilters.common.filter"),
|
|
4984
3346
|
style: "secondary",
|
|
4985
3347
|
onClick: function onClick() {
|
|
4986
3348
|
return setIsOpen(true);
|
|
4987
3349
|
}
|
|
4988
|
-
}, buttonProps)), /*#__PURE__*/React.createElement(Pane, _extends
|
|
3350
|
+
}, buttonProps)), /*#__PURE__*/React.createElement(Pane, _extends({
|
|
4989
3351
|
onClose: function onClose() {
|
|
4990
3352
|
return setIsOpen(false);
|
|
4991
3353
|
}
|
|
@@ -5083,31 +3445,20 @@ var Card = function Card(_ref) {
|
|
|
5083
3445
|
validateOnChange: true,
|
|
5084
3446
|
validateOnBlur: true,
|
|
5085
3447
|
validationSchema: SEGMENT_VALIDATION_SCHEMA,
|
|
5086
|
-
onSubmit: handleRename
|
|
3448
|
+
onSubmit: handleRename,
|
|
3449
|
+
enableReinitialize: true
|
|
5087
3450
|
}
|
|
5088
3451
|
}, function (_ref2) {
|
|
5089
3452
|
var resetForm = _ref2.resetForm;
|
|
5090
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, isEditing ? /*#__PURE__*/React.createElement(
|
|
3453
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, isEditing ? /*#__PURE__*/React.createElement(FormikInlineInput, {
|
|
5091
3454
|
autoFocus: true,
|
|
5092
3455
|
nakedInput: true,
|
|
3456
|
+
handleCancel: function handleCancel() {
|
|
3457
|
+
return setIsEditing(false);
|
|
3458
|
+
},
|
|
5093
3459
|
name: "name",
|
|
5094
3460
|
placeholder: t("neetoFilters.segments.name")
|
|
5095
|
-
}), /*#__PURE__*/React.createElement(
|
|
5096
|
-
cancelButtonProps: {
|
|
5097
|
-
icon: Close,
|
|
5098
|
-
label: "",
|
|
5099
|
-
style: "text",
|
|
5100
|
-
disabled: !isEditing,
|
|
5101
|
-
onClick: function onClick() {
|
|
5102
|
-
return setIsEditing(false);
|
|
5103
|
-
}
|
|
5104
|
-
},
|
|
5105
|
-
submitButtonProps: {
|
|
5106
|
-
icon: Check,
|
|
5107
|
-
label: "",
|
|
5108
|
-
style: "text"
|
|
5109
|
-
}
|
|
5110
|
-
})) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Typography, {
|
|
3461
|
+
}) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Typography, {
|
|
5111
3462
|
style: "body2"
|
|
5112
3463
|
}, segment.name), /*#__PURE__*/React.createElement(Dropdown$2, {
|
|
5113
3464
|
buttonStyle: "text",
|