@true-engineering/true-react-common-ui-kit 3.0.0-alpha.19 → 3.0.0-alpha.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/use-merged-refs.d.ts +2 -0
- package/dist/true-react-common-ui-kit.js +258 -291
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +257 -290
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/components/FlexibleTable/FlexibleTable.tsx +38 -21
- package/src/hooks/index.ts +1 -0
- package/src/hooks/use-merged-refs.ts +4 -0
|
@@ -1971,7 +1971,7 @@
|
|
|
1971
1971
|
state.elements.popper.style.minWidth = "".concat(state.elements.reference.offsetWidth, "px");
|
|
1972
1972
|
}
|
|
1973
1973
|
};
|
|
1974
|
-
function _array_like_to_array$
|
|
1974
|
+
function _array_like_to_array$q(arr, len) {
|
|
1975
1975
|
if (len == null || len > arr.length)
|
|
1976
1976
|
len = arr.length;
|
|
1977
1977
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
@@ -1980,7 +1980,7 @@
|
|
|
1980
1980
|
}
|
|
1981
1981
|
function _array_without_holes$6(arr) {
|
|
1982
1982
|
if (Array.isArray(arr))
|
|
1983
|
-
return _array_like_to_array$
|
|
1983
|
+
return _array_like_to_array$q(arr);
|
|
1984
1984
|
}
|
|
1985
1985
|
function _iterable_to_array$6(iter) {
|
|
1986
1986
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
@@ -1990,20 +1990,20 @@
|
|
|
1990
1990
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1991
1991
|
}
|
|
1992
1992
|
function _to_consumable_array$6(arr) {
|
|
1993
|
-
return _array_without_holes$6(arr) || _iterable_to_array$6(arr) || _unsupported_iterable_to_array$
|
|
1993
|
+
return _array_without_holes$6(arr) || _iterable_to_array$6(arr) || _unsupported_iterable_to_array$q(arr) || _non_iterable_spread$6();
|
|
1994
1994
|
}
|
|
1995
|
-
function _unsupported_iterable_to_array$
|
|
1995
|
+
function _unsupported_iterable_to_array$q(o, minLen) {
|
|
1996
1996
|
if (!o)
|
|
1997
1997
|
return;
|
|
1998
1998
|
if (typeof o === "string")
|
|
1999
|
-
return _array_like_to_array$
|
|
1999
|
+
return _array_like_to_array$q(o, minLen);
|
|
2000
2000
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2001
2001
|
if (n === "Object" && o.constructor)
|
|
2002
2002
|
n = o.constructor.name;
|
|
2003
2003
|
if (n === "Map" || n === "Set")
|
|
2004
2004
|
return Array.from(n);
|
|
2005
2005
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
2006
|
-
return _array_like_to_array$
|
|
2006
|
+
return _array_like_to_array$q(o, minLen);
|
|
2007
2007
|
}
|
|
2008
2008
|
var findCountryByCode = function(countryCode) {
|
|
2009
2009
|
var countriesList = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : phoneInfo;
|
|
@@ -2086,18 +2086,18 @@
|
|
|
2086
2086
|
}
|
|
2087
2087
|
return mask;
|
|
2088
2088
|
};
|
|
2089
|
-
function _array_like_to_array$
|
|
2089
|
+
function _array_like_to_array$p(arr, len) {
|
|
2090
2090
|
if (len == null || len > arr.length)
|
|
2091
2091
|
len = arr.length;
|
|
2092
2092
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
2093
2093
|
arr2[i] = arr[i];
|
|
2094
2094
|
return arr2;
|
|
2095
2095
|
}
|
|
2096
|
-
function _array_with_holes$
|
|
2096
|
+
function _array_with_holes$o(arr) {
|
|
2097
2097
|
if (Array.isArray(arr))
|
|
2098
2098
|
return arr;
|
|
2099
2099
|
}
|
|
2100
|
-
function _iterable_to_array_limit$
|
|
2100
|
+
function _iterable_to_array_limit$o(arr, i) {
|
|
2101
2101
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
2102
2102
|
if (_i == null)
|
|
2103
2103
|
return;
|
|
@@ -2125,24 +2125,24 @@
|
|
|
2125
2125
|
}
|
|
2126
2126
|
return _arr;
|
|
2127
2127
|
}
|
|
2128
|
-
function _non_iterable_rest$
|
|
2128
|
+
function _non_iterable_rest$o() {
|
|
2129
2129
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2130
2130
|
}
|
|
2131
|
-
function _sliced_to_array$
|
|
2132
|
-
return _array_with_holes$
|
|
2131
|
+
function _sliced_to_array$o(arr, i) {
|
|
2132
|
+
return _array_with_holes$o(arr) || _iterable_to_array_limit$o(arr, i) || _unsupported_iterable_to_array$p(arr, i) || _non_iterable_rest$o();
|
|
2133
2133
|
}
|
|
2134
|
-
function _unsupported_iterable_to_array$
|
|
2134
|
+
function _unsupported_iterable_to_array$p(o, minLen) {
|
|
2135
2135
|
if (!o)
|
|
2136
2136
|
return;
|
|
2137
2137
|
if (typeof o === "string")
|
|
2138
|
-
return _array_like_to_array$
|
|
2138
|
+
return _array_like_to_array$p(o, minLen);
|
|
2139
2139
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2140
2140
|
if (n === "Object" && o.constructor)
|
|
2141
2141
|
n = o.constructor.name;
|
|
2142
2142
|
if (n === "Map" || n === "Set")
|
|
2143
2143
|
return Array.from(n);
|
|
2144
2144
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
2145
|
-
return _array_like_to_array$
|
|
2145
|
+
return _array_like_to_array$p(o, minLen);
|
|
2146
2146
|
}
|
|
2147
2147
|
var rgba = hexToRgba;
|
|
2148
2148
|
var transformToKebab = function(string) {
|
|
@@ -2265,7 +2265,7 @@
|
|
|
2265
2265
|
var addDataAttributes = function() {
|
|
2266
2266
|
var data = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2267
2267
|
return Object.fromEntries(Object.entries(data).map(function(param) {
|
|
2268
|
-
var _param = _sliced_to_array$
|
|
2268
|
+
var _param = _sliced_to_array$o(param, 2), key = _param[0], value = _param[1];
|
|
2269
2269
|
return trueReactPlatformHelpers.isString(value) && trueReactPlatformHelpers.isStringNotEmpty(value) || trueReactPlatformHelpers.isNotEmpty(value) ? [
|
|
2270
2270
|
"data-".concat(transformToKebab(key)),
|
|
2271
2271
|
value
|
|
@@ -3930,7 +3930,7 @@
|
|
|
3930
3930
|
}, [enabled, referenceElement, popperElement]);
|
|
3931
3931
|
return popperState;
|
|
3932
3932
|
}
|
|
3933
|
-
function _array_like_to_array$
|
|
3933
|
+
function _array_like_to_array$o(arr, len) {
|
|
3934
3934
|
if (len == null || len > arr.length)
|
|
3935
3935
|
len = arr.length;
|
|
3936
3936
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
@@ -3939,7 +3939,7 @@
|
|
|
3939
3939
|
}
|
|
3940
3940
|
function _array_without_holes$5(arr) {
|
|
3941
3941
|
if (Array.isArray(arr))
|
|
3942
|
-
return _array_like_to_array$
|
|
3942
|
+
return _array_like_to_array$o(arr);
|
|
3943
3943
|
}
|
|
3944
3944
|
function _define_property$T(obj, key, value) {
|
|
3945
3945
|
if (key in obj) {
|
|
@@ -3977,20 +3977,20 @@
|
|
|
3977
3977
|
return target;
|
|
3978
3978
|
}
|
|
3979
3979
|
function _to_consumable_array$5(arr) {
|
|
3980
|
-
return _array_without_holes$5(arr) || _iterable_to_array$5(arr) || _unsupported_iterable_to_array$
|
|
3980
|
+
return _array_without_holes$5(arr) || _iterable_to_array$5(arr) || _unsupported_iterable_to_array$o(arr) || _non_iterable_spread$5();
|
|
3981
3981
|
}
|
|
3982
|
-
function _unsupported_iterable_to_array$
|
|
3982
|
+
function _unsupported_iterable_to_array$o(o, minLen) {
|
|
3983
3983
|
if (!o)
|
|
3984
3984
|
return;
|
|
3985
3985
|
if (typeof o === "string")
|
|
3986
|
-
return _array_like_to_array$
|
|
3986
|
+
return _array_like_to_array$o(o, minLen);
|
|
3987
3987
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3988
3988
|
if (n === "Object" && o.constructor)
|
|
3989
3989
|
n = o.constructor.name;
|
|
3990
3990
|
if (n === "Map" || n === "Set")
|
|
3991
3991
|
return Array.from(n);
|
|
3992
3992
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
3993
|
-
return _array_like_to_array$
|
|
3993
|
+
return _array_like_to_array$o(o, minLen);
|
|
3994
3994
|
}
|
|
3995
3995
|
var useDropdown = function(param) {
|
|
3996
3996
|
var isOpen = param.isOpen, onDropdownClose = param.onDropdownClose, referenceElement = param.referenceElement, dropdownElement = param.dropdownElement, options = param.options, _param_dependenciesForPositionUpdating = param.dependenciesForPositionUpdating, dependenciesForPositionUpdating = _param_dependenciesForPositionUpdating === void 0 ? [] : _param_dependenciesForPositionUpdating;
|
|
@@ -4096,6 +4096,11 @@
|
|
|
4096
4096
|
tweakStyles
|
|
4097
4097
|
]);
|
|
4098
4098
|
};
|
|
4099
|
+
var useMergedRefs = function(refs) {
|
|
4100
|
+
return React.useMemo(function() {
|
|
4101
|
+
return trueReactPlatformHelpers.mergeRefs(refs);
|
|
4102
|
+
}, refs);
|
|
4103
|
+
};
|
|
4099
4104
|
const avatarGreen = ` <svg\r
|
|
4100
4105
|
width="100%"\r
|
|
4101
4106
|
height="100%"\r
|
|
@@ -5410,14 +5415,14 @@
|
|
|
5410
5415
|
height: 32
|
|
5411
5416
|
}
|
|
5412
5417
|
}, animations.slideUp));
|
|
5413
|
-
function _array_like_to_array$
|
|
5418
|
+
function _array_like_to_array$n(arr, len) {
|
|
5414
5419
|
if (len == null || len > arr.length)
|
|
5415
5420
|
len = arr.length;
|
|
5416
5421
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
5417
5422
|
arr2[i] = arr[i];
|
|
5418
5423
|
return arr2;
|
|
5419
5424
|
}
|
|
5420
|
-
function _array_with_holes$
|
|
5425
|
+
function _array_with_holes$n(arr) {
|
|
5421
5426
|
if (Array.isArray(arr))
|
|
5422
5427
|
return arr;
|
|
5423
5428
|
}
|
|
@@ -5434,7 +5439,7 @@
|
|
|
5434
5439
|
}
|
|
5435
5440
|
return obj;
|
|
5436
5441
|
}
|
|
5437
|
-
function _iterable_to_array_limit$
|
|
5442
|
+
function _iterable_to_array_limit$n(arr, i) {
|
|
5438
5443
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
5439
5444
|
if (_i == null)
|
|
5440
5445
|
return;
|
|
@@ -5462,7 +5467,7 @@
|
|
|
5462
5467
|
}
|
|
5463
5468
|
return _arr;
|
|
5464
5469
|
}
|
|
5465
|
-
function _non_iterable_rest$
|
|
5470
|
+
function _non_iterable_rest$n() {
|
|
5466
5471
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
5467
5472
|
}
|
|
5468
5473
|
function _object_spread$L(target) {
|
|
@@ -5504,21 +5509,21 @@
|
|
|
5504
5509
|
}
|
|
5505
5510
|
return target;
|
|
5506
5511
|
}
|
|
5507
|
-
function _sliced_to_array$
|
|
5508
|
-
return _array_with_holes$
|
|
5512
|
+
function _sliced_to_array$n(arr, i) {
|
|
5513
|
+
return _array_with_holes$n(arr) || _iterable_to_array_limit$n(arr, i) || _unsupported_iterable_to_array$n(arr, i) || _non_iterable_rest$n();
|
|
5509
5514
|
}
|
|
5510
|
-
function _unsupported_iterable_to_array$
|
|
5515
|
+
function _unsupported_iterable_to_array$n(o, minLen) {
|
|
5511
5516
|
if (!o)
|
|
5512
5517
|
return;
|
|
5513
5518
|
if (typeof o === "string")
|
|
5514
|
-
return _array_like_to_array$
|
|
5519
|
+
return _array_like_to_array$n(o, minLen);
|
|
5515
5520
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
5516
5521
|
if (n === "Object" && o.constructor)
|
|
5517
5522
|
n = o.constructor.name;
|
|
5518
5523
|
if (n === "Map" || n === "Set")
|
|
5519
5524
|
return Array.from(n);
|
|
5520
5525
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
5521
|
-
return _array_like_to_array$
|
|
5526
|
+
return _array_like_to_array$n(o, minLen);
|
|
5522
5527
|
}
|
|
5523
5528
|
var AccountInfo = function(param) {
|
|
5524
5529
|
var data = param.data, testId = param.testId, avatar = param.avatar, tweakStyles = param.tweakStyles, accountName = param.accountName, options = param.options;
|
|
@@ -5532,7 +5537,7 @@
|
|
|
5532
5537
|
});
|
|
5533
5538
|
var nameRef = React.useRef(null);
|
|
5534
5539
|
var dropdownRef = React.useRef(null);
|
|
5535
|
-
var _useState = _sliced_to_array$
|
|
5540
|
+
var _useState = _sliced_to_array$n(React.useState(false), 2), isMenuOpen = _useState[0], setIsMenuOpen = _useState[1];
|
|
5536
5541
|
var toggleMenu = function(event) {
|
|
5537
5542
|
event.stopPropagation();
|
|
5538
5543
|
setIsMenuOpen(function(v) {
|
|
@@ -6228,14 +6233,14 @@
|
|
|
6228
6233
|
flexDirection: "row-reverse"
|
|
6229
6234
|
}
|
|
6230
6235
|
});
|
|
6231
|
-
function _array_like_to_array$
|
|
6236
|
+
function _array_like_to_array$m(arr, len) {
|
|
6232
6237
|
if (len == null || len > arr.length)
|
|
6233
6238
|
len = arr.length;
|
|
6234
6239
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
6235
6240
|
arr2[i] = arr[i];
|
|
6236
6241
|
return arr2;
|
|
6237
6242
|
}
|
|
6238
|
-
function _array_with_holes$
|
|
6243
|
+
function _array_with_holes$m(arr) {
|
|
6239
6244
|
if (Array.isArray(arr))
|
|
6240
6245
|
return arr;
|
|
6241
6246
|
}
|
|
@@ -6252,7 +6257,7 @@
|
|
|
6252
6257
|
}
|
|
6253
6258
|
return obj;
|
|
6254
6259
|
}
|
|
6255
|
-
function _iterable_to_array_limit$
|
|
6260
|
+
function _iterable_to_array_limit$m(arr, i) {
|
|
6256
6261
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
6257
6262
|
if (_i == null)
|
|
6258
6263
|
return;
|
|
@@ -6280,7 +6285,7 @@
|
|
|
6280
6285
|
}
|
|
6281
6286
|
return _arr;
|
|
6282
6287
|
}
|
|
6283
|
-
function _non_iterable_rest$
|
|
6288
|
+
function _non_iterable_rest$m() {
|
|
6284
6289
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6285
6290
|
}
|
|
6286
6291
|
function _object_spread$H(target) {
|
|
@@ -6322,28 +6327,28 @@
|
|
|
6322
6327
|
}
|
|
6323
6328
|
return target;
|
|
6324
6329
|
}
|
|
6325
|
-
function _sliced_to_array$
|
|
6326
|
-
return _array_with_holes$
|
|
6330
|
+
function _sliced_to_array$m(arr, i) {
|
|
6331
|
+
return _array_with_holes$m(arr) || _iterable_to_array_limit$m(arr, i) || _unsupported_iterable_to_array$m(arr, i) || _non_iterable_rest$m();
|
|
6327
6332
|
}
|
|
6328
|
-
function _unsupported_iterable_to_array$
|
|
6333
|
+
function _unsupported_iterable_to_array$m(o, minLen) {
|
|
6329
6334
|
if (!o)
|
|
6330
6335
|
return;
|
|
6331
6336
|
if (typeof o === "string")
|
|
6332
|
-
return _array_like_to_array$
|
|
6337
|
+
return _array_like_to_array$m(o, minLen);
|
|
6333
6338
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6334
6339
|
if (n === "Object" && o.constructor)
|
|
6335
6340
|
n = o.constructor.name;
|
|
6336
6341
|
if (n === "Map" || n === "Set")
|
|
6337
6342
|
return Array.from(n);
|
|
6338
6343
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
6339
|
-
return _array_like_to_array$
|
|
6344
|
+
return _array_like_to_array$m(o, minLen);
|
|
6340
6345
|
}
|
|
6341
6346
|
function Checkbox(param) {
|
|
6342
6347
|
var children = param.children, isDisabled = param.isDisabled, isReadonly = param.isReadonly, _param_isChecked = param.isChecked, isChecked = _param_isChecked === void 0 ? false : _param_isChecked, value = param.value, data = param.data, testId = param.testId, isSemiChecked = param.isSemiChecked, _param_labelPosition = param.labelPosition, labelPosition = _param_labelPosition === void 0 ? "right" : _param_labelPosition, tweakStyles = param.tweakStyles, onSelect = param.onSelect;
|
|
6343
6348
|
var classes = useStyles$E({
|
|
6344
6349
|
theme: tweakStyles
|
|
6345
6350
|
});
|
|
6346
|
-
var _useState = _sliced_to_array$
|
|
6351
|
+
var _useState = _sliced_to_array$m(React.useState(false), 2), isSelected = _useState[0], setIsSelected = _useState[1];
|
|
6347
6352
|
var hasAction = !isDisabled && !isReadonly;
|
|
6348
6353
|
var onToggle = function() {
|
|
6349
6354
|
var newValue = !isSelected;
|
|
@@ -6512,18 +6517,18 @@
|
|
|
6512
6517
|
]
|
|
6513
6518
|
}
|
|
6514
6519
|
});
|
|
6515
|
-
function _array_like_to_array$
|
|
6520
|
+
function _array_like_to_array$l(arr, len) {
|
|
6516
6521
|
if (len == null || len > arr.length)
|
|
6517
6522
|
len = arr.length;
|
|
6518
6523
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
6519
6524
|
arr2[i] = arr[i];
|
|
6520
6525
|
return arr2;
|
|
6521
6526
|
}
|
|
6522
|
-
function _array_with_holes$
|
|
6527
|
+
function _array_with_holes$l(arr) {
|
|
6523
6528
|
if (Array.isArray(arr))
|
|
6524
6529
|
return arr;
|
|
6525
6530
|
}
|
|
6526
|
-
function _iterable_to_array_limit$
|
|
6531
|
+
function _iterable_to_array_limit$l(arr, i) {
|
|
6527
6532
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
6528
6533
|
if (_i == null)
|
|
6529
6534
|
return;
|
|
@@ -6551,24 +6556,24 @@
|
|
|
6551
6556
|
}
|
|
6552
6557
|
return _arr;
|
|
6553
6558
|
}
|
|
6554
|
-
function _non_iterable_rest$
|
|
6559
|
+
function _non_iterable_rest$l() {
|
|
6555
6560
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6556
6561
|
}
|
|
6557
|
-
function _sliced_to_array$
|
|
6558
|
-
return _array_with_holes$
|
|
6562
|
+
function _sliced_to_array$l(arr, i) {
|
|
6563
|
+
return _array_with_holes$l(arr) || _iterable_to_array_limit$l(arr, i) || _unsupported_iterable_to_array$l(arr, i) || _non_iterable_rest$l();
|
|
6559
6564
|
}
|
|
6560
|
-
function _unsupported_iterable_to_array$
|
|
6565
|
+
function _unsupported_iterable_to_array$l(o, minLen) {
|
|
6561
6566
|
if (!o)
|
|
6562
6567
|
return;
|
|
6563
6568
|
if (typeof o === "string")
|
|
6564
|
-
return _array_like_to_array$
|
|
6569
|
+
return _array_like_to_array$l(o, minLen);
|
|
6565
6570
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6566
6571
|
if (n === "Object" && o.constructor)
|
|
6567
6572
|
n = o.constructor.name;
|
|
6568
6573
|
if (n === "Map" || n === "Set")
|
|
6569
6574
|
return Array.from(n);
|
|
6570
6575
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
6571
|
-
return _array_like_to_array$
|
|
6576
|
+
return _array_like_to_array$l(o, minLen);
|
|
6572
6577
|
}
|
|
6573
6578
|
var Colors = function() {
|
|
6574
6579
|
var classes = useStyles$C();
|
|
@@ -6577,7 +6582,7 @@
|
|
|
6577
6582
|
return /* @__PURE__ */ jsx("div", {
|
|
6578
6583
|
className: classes.root,
|
|
6579
6584
|
children: Object.entries(colors2).map(function(param) {
|
|
6580
|
-
var _param = _sliced_to_array$
|
|
6585
|
+
var _param = _sliced_to_array$l(param, 2), colorName = _param[0], color = _param[1];
|
|
6581
6586
|
var name = colorName.split("_").join(" ").toLowerCase();
|
|
6582
6587
|
return /* @__PURE__ */ jsxs("div", {
|
|
6583
6588
|
className: classes.colorCard,
|
|
@@ -6923,14 +6928,14 @@
|
|
|
6923
6928
|
loading: {},
|
|
6924
6929
|
withUnits: {}
|
|
6925
6930
|
});
|
|
6926
|
-
function _array_like_to_array$
|
|
6931
|
+
function _array_like_to_array$k(arr, len) {
|
|
6927
6932
|
if (len == null || len > arr.length)
|
|
6928
6933
|
len = arr.length;
|
|
6929
6934
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
6930
6935
|
arr2[i] = arr[i];
|
|
6931
6936
|
return arr2;
|
|
6932
6937
|
}
|
|
6933
|
-
function _array_with_holes$
|
|
6938
|
+
function _array_with_holes$k(arr) {
|
|
6934
6939
|
if (Array.isArray(arr))
|
|
6935
6940
|
return arr;
|
|
6936
6941
|
}
|
|
@@ -6976,7 +6981,7 @@
|
|
|
6976
6981
|
}
|
|
6977
6982
|
return obj;
|
|
6978
6983
|
}
|
|
6979
|
-
function _iterable_to_array_limit$
|
|
6984
|
+
function _iterable_to_array_limit$k(arr, i) {
|
|
6980
6985
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
6981
6986
|
if (_i == null)
|
|
6982
6987
|
return;
|
|
@@ -7004,7 +7009,7 @@
|
|
|
7004
7009
|
}
|
|
7005
7010
|
return _arr;
|
|
7006
7011
|
}
|
|
7007
|
-
function _non_iterable_rest$
|
|
7012
|
+
function _non_iterable_rest$k() {
|
|
7008
7013
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7009
7014
|
}
|
|
7010
7015
|
function _object_spread$E(target) {
|
|
@@ -7046,21 +7051,21 @@
|
|
|
7046
7051
|
}
|
|
7047
7052
|
return target;
|
|
7048
7053
|
}
|
|
7049
|
-
function _sliced_to_array$
|
|
7050
|
-
return _array_with_holes$
|
|
7054
|
+
function _sliced_to_array$k(arr, i) {
|
|
7055
|
+
return _array_with_holes$k(arr) || _iterable_to_array_limit$k(arr, i) || _unsupported_iterable_to_array$k(arr, i) || _non_iterable_rest$k();
|
|
7051
7056
|
}
|
|
7052
|
-
function _unsupported_iterable_to_array$
|
|
7057
|
+
function _unsupported_iterable_to_array$k(o, minLen) {
|
|
7053
7058
|
if (!o)
|
|
7054
7059
|
return;
|
|
7055
7060
|
if (typeof o === "string")
|
|
7056
|
-
return _array_like_to_array$
|
|
7061
|
+
return _array_like_to_array$k(o, minLen);
|
|
7057
7062
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
7058
7063
|
if (n === "Object" && o.constructor)
|
|
7059
7064
|
n = o.constructor.name;
|
|
7060
7065
|
if (n === "Map" || n === "Set")
|
|
7061
7066
|
return Array.from(n);
|
|
7062
7067
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
7063
|
-
return _array_like_to_array$
|
|
7068
|
+
return _array_like_to_array$k(o, minLen);
|
|
7064
7069
|
}
|
|
7065
7070
|
var __generator$5 = globalThis && globalThis.__generator || function(thisArg, body) {
|
|
7066
7071
|
var f, y, t, g, _ = {
|
|
@@ -7174,7 +7179,7 @@
|
|
|
7174
7179
|
className: "tweakPreloader",
|
|
7175
7180
|
currentComponentName: "Input"
|
|
7176
7181
|
});
|
|
7177
|
-
var _useState = _sliced_to_array$
|
|
7182
|
+
var _useState = _sliced_to_array$k(React.useState(false), 2), isFocused = _useState[0], setFocused = _useState[1];
|
|
7178
7183
|
var inputRef = React.useRef(null);
|
|
7179
7184
|
var handleChange = function(event) {
|
|
7180
7185
|
onChange(event.currentTarget.value, event);
|
|
@@ -8305,20 +8310,20 @@
|
|
|
8305
8310
|
}
|
|
8306
8311
|
}
|
|
8307
8312
|
};
|
|
8308
|
-
function _array_like_to_array$
|
|
8313
|
+
function _array_like_to_array$j(arr, len) {
|
|
8309
8314
|
if (len == null || len > arr.length)
|
|
8310
8315
|
len = arr.length;
|
|
8311
8316
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
8312
8317
|
arr2[i] = arr[i];
|
|
8313
8318
|
return arr2;
|
|
8314
8319
|
}
|
|
8315
|
-
function _array_with_holes$
|
|
8320
|
+
function _array_with_holes$j(arr) {
|
|
8316
8321
|
if (Array.isArray(arr))
|
|
8317
8322
|
return arr;
|
|
8318
8323
|
}
|
|
8319
8324
|
function _array_without_holes$4(arr) {
|
|
8320
8325
|
if (Array.isArray(arr))
|
|
8321
|
-
return _array_like_to_array$
|
|
8326
|
+
return _array_like_to_array$j(arr);
|
|
8322
8327
|
}
|
|
8323
8328
|
function asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, key, arg) {
|
|
8324
8329
|
try {
|
|
@@ -8366,7 +8371,7 @@
|
|
|
8366
8371
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
8367
8372
|
return Array.from(iter);
|
|
8368
8373
|
}
|
|
8369
|
-
function _iterable_to_array_limit$
|
|
8374
|
+
function _iterable_to_array_limit$j(arr, i) {
|
|
8370
8375
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
8371
8376
|
if (_i == null)
|
|
8372
8377
|
return;
|
|
@@ -8394,7 +8399,7 @@
|
|
|
8394
8399
|
}
|
|
8395
8400
|
return _arr;
|
|
8396
8401
|
}
|
|
8397
|
-
function _non_iterable_rest$
|
|
8402
|
+
function _non_iterable_rest$j() {
|
|
8398
8403
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8399
8404
|
}
|
|
8400
8405
|
function _non_iterable_spread$4() {
|
|
@@ -8471,24 +8476,24 @@
|
|
|
8471
8476
|
}
|
|
8472
8477
|
return target;
|
|
8473
8478
|
}
|
|
8474
|
-
function _sliced_to_array$
|
|
8475
|
-
return _array_with_holes$
|
|
8479
|
+
function _sliced_to_array$j(arr, i) {
|
|
8480
|
+
return _array_with_holes$j(arr) || _iterable_to_array_limit$j(arr, i) || _unsupported_iterable_to_array$j(arr, i) || _non_iterable_rest$j();
|
|
8476
8481
|
}
|
|
8477
8482
|
function _to_consumable_array$4(arr) {
|
|
8478
|
-
return _array_without_holes$4(arr) || _iterable_to_array$4(arr) || _unsupported_iterable_to_array$
|
|
8483
|
+
return _array_without_holes$4(arr) || _iterable_to_array$4(arr) || _unsupported_iterable_to_array$j(arr) || _non_iterable_spread$4();
|
|
8479
8484
|
}
|
|
8480
|
-
function _unsupported_iterable_to_array$
|
|
8485
|
+
function _unsupported_iterable_to_array$j(o, minLen) {
|
|
8481
8486
|
if (!o)
|
|
8482
8487
|
return;
|
|
8483
8488
|
if (typeof o === "string")
|
|
8484
|
-
return _array_like_to_array$
|
|
8489
|
+
return _array_like_to_array$j(o, minLen);
|
|
8485
8490
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
8486
8491
|
if (n === "Object" && o.constructor)
|
|
8487
8492
|
n = o.constructor.name;
|
|
8488
8493
|
if (n === "Map" || n === "Set")
|
|
8489
8494
|
return Array.from(n);
|
|
8490
8495
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
8491
|
-
return _array_like_to_array$
|
|
8496
|
+
return _array_like_to_array$j(o, minLen);
|
|
8492
8497
|
}
|
|
8493
8498
|
var __generator$4 = globalThis && globalThis.__generator || function(thisArg, body) {
|
|
8494
8499
|
var f, y, t, g, _ = {
|
|
@@ -8652,12 +8657,12 @@
|
|
|
8652
8657
|
currentComponentName: "Select"
|
|
8653
8658
|
});
|
|
8654
8659
|
var isMounted = useIsMounted();
|
|
8655
|
-
var _useState = _sliced_to_array$
|
|
8656
|
-
var _useState1 = _sliced_to_array$
|
|
8660
|
+
var _useState = _sliced_to_array$j(React.useState(false), 2), isListOpen = _useState[0], setIsListOpen = _useState[1];
|
|
8661
|
+
var _useState1 = _sliced_to_array$j(React.useState(false), 2), areOptionsLoading = _useState1[0], setAreOptionsLoading = _useState1[1];
|
|
8657
8662
|
var hasDefaultOption = trueReactPlatformHelpers.isStringNotEmpty(defaultOptionLabel);
|
|
8658
|
-
var _useState2 = _sliced_to_array$
|
|
8659
|
-
var _useState3 = _sliced_to_array$
|
|
8660
|
-
var _useState4 = _sliced_to_array$
|
|
8663
|
+
var _useState2 = _sliced_to_array$j(React.useState(DEFAULT_OPTION_INDEX), 2), focusedListCellIndex = _useState2[0], setFocusedListCellIndex = _useState2[1];
|
|
8664
|
+
var _useState3 = _sliced_to_array$j(React.useState(""), 2), searchValue = _useState3[0], setSearchValue = _useState3[1];
|
|
8665
|
+
var _useState4 = _sliced_to_array$j(React.useState(true), 2), shouldShowDefaultOption = _useState4[0], setShouldShowDefaultOption = _useState4[1];
|
|
8661
8666
|
var inputWrapper = React.useRef(null);
|
|
8662
8667
|
var list = React.useRef(null);
|
|
8663
8668
|
var input = React.useRef(null);
|
|
@@ -9247,14 +9252,14 @@
|
|
|
9247
9252
|
}
|
|
9248
9253
|
}
|
|
9249
9254
|
});
|
|
9250
|
-
function _array_like_to_array$
|
|
9255
|
+
function _array_like_to_array$i(arr, len) {
|
|
9251
9256
|
if (len == null || len > arr.length)
|
|
9252
9257
|
len = arr.length;
|
|
9253
9258
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
9254
9259
|
arr2[i] = arr[i];
|
|
9255
9260
|
return arr2;
|
|
9256
9261
|
}
|
|
9257
|
-
function _array_with_holes$
|
|
9262
|
+
function _array_with_holes$i(arr) {
|
|
9258
9263
|
if (Array.isArray(arr))
|
|
9259
9264
|
return arr;
|
|
9260
9265
|
}
|
|
@@ -9271,7 +9276,7 @@
|
|
|
9271
9276
|
}
|
|
9272
9277
|
return obj;
|
|
9273
9278
|
}
|
|
9274
|
-
function _iterable_to_array_limit$
|
|
9279
|
+
function _iterable_to_array_limit$i(arr, i) {
|
|
9275
9280
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
9276
9281
|
if (_i == null)
|
|
9277
9282
|
return;
|
|
@@ -9299,7 +9304,7 @@
|
|
|
9299
9304
|
}
|
|
9300
9305
|
return _arr;
|
|
9301
9306
|
}
|
|
9302
|
-
function _non_iterable_rest$
|
|
9307
|
+
function _non_iterable_rest$i() {
|
|
9303
9308
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9304
9309
|
}
|
|
9305
9310
|
function _object_spread$w(target) {
|
|
@@ -9373,21 +9378,21 @@
|
|
|
9373
9378
|
}
|
|
9374
9379
|
return target;
|
|
9375
9380
|
}
|
|
9376
|
-
function _sliced_to_array$
|
|
9377
|
-
return _array_with_holes$
|
|
9381
|
+
function _sliced_to_array$i(arr, i) {
|
|
9382
|
+
return _array_with_holes$i(arr) || _iterable_to_array_limit$i(arr, i) || _unsupported_iterable_to_array$i(arr, i) || _non_iterable_rest$i();
|
|
9378
9383
|
}
|
|
9379
|
-
function _unsupported_iterable_to_array$
|
|
9384
|
+
function _unsupported_iterable_to_array$i(o, minLen) {
|
|
9380
9385
|
if (!o)
|
|
9381
9386
|
return;
|
|
9382
9387
|
if (typeof o === "string")
|
|
9383
|
-
return _array_like_to_array$
|
|
9388
|
+
return _array_like_to_array$i(o, minLen);
|
|
9384
9389
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
9385
9390
|
if (n === "Object" && o.constructor)
|
|
9386
9391
|
n = o.constructor.name;
|
|
9387
9392
|
if (n === "Map" || n === "Set")
|
|
9388
9393
|
return Array.from(n);
|
|
9389
9394
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
9390
|
-
return _array_like_to_array$
|
|
9395
|
+
return _array_like_to_array$i(o, minLen);
|
|
9391
9396
|
}
|
|
9392
9397
|
var DatePicker = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
9393
9398
|
var data = _param.data, _param_selectedDate = _param.selectedDate, selectedDate = _param_selectedDate === void 0 ? null : _param_selectedDate, minDate = _param.minDate, maxDate = _param.maxDate, _param_endDate = _param.endDate, endDate = _param_endDate === void 0 ? null : _param_endDate, _param_startDate = _param.startDate, startDate = _param_startDate === void 0 ? null : _param_startDate, locale2 = _param.locale, months = _param.months, _param_calendarStartDay = _param.calendarStartDay, calendarStartDay = _param_calendarStartDay === void 0 ? 1 : _param_calendarStartDay, _param_dateFormat = _param.dateFormat, dateFormat = _param_dateFormat === void 0 ? DEFAULT_DATE_FORMAT$2 : _param_dateFormat, monthsShown = _param.monthsShown, placeholder = _param.placeholder, isRange = _param.isRange, isInline = _param.isInline, isDisabled = _param.isDisabled, isClearable = _param.isClearable, strictParsing = _param.strictParsing, focusSelectedMonth = _param.focusSelectedMonth, disabledKeyboardNavigation = _param.disabledKeyboardNavigation, shouldRenderPopperInBody = _param.shouldRenderPopperInBody, _param_allowSameDay = _param.allowSameDay, allowSameDay = _param_allowSameDay === void 0 ? false : _param_allowSameDay, shouldCloseOnSelect = _param.shouldCloseOnSelect, showPreviousMonths = _param.showPreviousMonths, preventOpenOnFocus = _param.preventOpenOnFocus, popperModifiers = _param.popperModifiers, popperPlacement = _param.popperPlacement, todayButton = _param.todayButton, calendarContainer = _param.calendarContainer, dayClassName = _param.dayClassName, tmp = _param.customInput, CustomInput = tmp === void 0 ? DateInput : tmp, customInputRef = _param.customInputRef, renderCustomHeader = _param.renderCustomHeader, filterDate = _param.filterDate, onYearChange = _param.onYearChange, onMonthChange = _param.onMonthChange, onCalendarOpen = _param.onCalendarOpen, onCalendarClose = _param.onCalendarClose, onChangeDate = _param.onChangeDate, onChangeRange = _param.onChangeRange, onBlur = _param.onBlur, onFocus = _param.onFocus, onKeyDown = _param.onKeyDown, tweakStyles = _param.tweakStyles, inputProps = _object_without_properties$5(_param, [
|
|
@@ -9451,12 +9456,12 @@
|
|
|
9451
9456
|
}, [
|
|
9452
9457
|
dateFormat
|
|
9453
9458
|
]), formatDate = _useMemo.formatDate, parseDateValue = _useMemo.parseDateValue;
|
|
9454
|
-
var _useState = _sliced_to_array$
|
|
9455
|
-
var _useState1 = _sliced_to_array$
|
|
9456
|
-
var _useState2 = _sliced_to_array$
|
|
9457
|
-
var _useState3 = _sliced_to_array$
|
|
9458
|
-
var _useState4 = _sliced_to_array$
|
|
9459
|
-
var _useState5 = _sliced_to_array$
|
|
9459
|
+
var _useState = _sliced_to_array$i(React.useState(false), 2), isOpen = _useState[0], setIsOpen = _useState[1];
|
|
9460
|
+
var _useState1 = _sliced_to_array$i(React.useState(formatDate(selectedDate)), 2), dateValue = _useState1[0], setDateValue = _useState1[1];
|
|
9461
|
+
var _useState2 = _sliced_to_array$i(React.useState(startDate), 2), start2 = _useState2[0], setStart = _useState2[1];
|
|
9462
|
+
var _useState3 = _sliced_to_array$i(React.useState(formatDate(startDate)), 2), startDateValue = _useState3[0], setStartDateValue = _useState3[1];
|
|
9463
|
+
var _useState4 = _sliced_to_array$i(React.useState(endDate), 2), end2 = _useState4[0], setEnd = _useState4[1];
|
|
9464
|
+
var _useState5 = _sliced_to_array$i(React.useState(formatDate(endDate)), 2), endDateValue = _useState5[0], setEndDateValue = _useState5[1];
|
|
9460
9465
|
var hasDateInputValue = isRange ? trueReactPlatformHelpers.isStringNotEmpty(startDateValue) || trueReactPlatformHelpers.isStringNotEmpty(endDateValue) : trueReactPlatformHelpers.isStringNotEmpty(dateValue);
|
|
9461
9466
|
var dateInputProps = _object_spread$w(_object_spread_props$r(_object_spread$w({}, inputProps), {
|
|
9462
9467
|
isRange,
|
|
@@ -9657,14 +9662,14 @@
|
|
|
9657
9662
|
}
|
|
9658
9663
|
}
|
|
9659
9664
|
});
|
|
9660
|
-
function _array_like_to_array$
|
|
9665
|
+
function _array_like_to_array$h(arr, len) {
|
|
9661
9666
|
if (len == null || len > arr.length)
|
|
9662
9667
|
len = arr.length;
|
|
9663
9668
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
9664
9669
|
arr2[i] = arr[i];
|
|
9665
9670
|
return arr2;
|
|
9666
9671
|
}
|
|
9667
|
-
function _array_with_holes$
|
|
9672
|
+
function _array_with_holes$h(arr) {
|
|
9668
9673
|
if (Array.isArray(arr))
|
|
9669
9674
|
return arr;
|
|
9670
9675
|
}
|
|
@@ -9681,7 +9686,7 @@
|
|
|
9681
9686
|
}
|
|
9682
9687
|
return obj;
|
|
9683
9688
|
}
|
|
9684
|
-
function _iterable_to_array_limit$
|
|
9689
|
+
function _iterable_to_array_limit$h(arr, i) {
|
|
9685
9690
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
9686
9691
|
if (_i == null)
|
|
9687
9692
|
return;
|
|
@@ -9709,7 +9714,7 @@
|
|
|
9709
9714
|
}
|
|
9710
9715
|
return _arr;
|
|
9711
9716
|
}
|
|
9712
|
-
function _non_iterable_rest$
|
|
9717
|
+
function _non_iterable_rest$h() {
|
|
9713
9718
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9714
9719
|
}
|
|
9715
9720
|
function _object_spread$v(target) {
|
|
@@ -9751,21 +9756,21 @@
|
|
|
9751
9756
|
}
|
|
9752
9757
|
return target;
|
|
9753
9758
|
}
|
|
9754
|
-
function _sliced_to_array$
|
|
9755
|
-
return _array_with_holes$
|
|
9759
|
+
function _sliced_to_array$h(arr, i) {
|
|
9760
|
+
return _array_with_holes$h(arr) || _iterable_to_array_limit$h(arr, i) || _unsupported_iterable_to_array$h(arr, i) || _non_iterable_rest$h();
|
|
9756
9761
|
}
|
|
9757
|
-
function _unsupported_iterable_to_array$
|
|
9762
|
+
function _unsupported_iterable_to_array$h(o, minLen) {
|
|
9758
9763
|
if (!o)
|
|
9759
9764
|
return;
|
|
9760
9765
|
if (typeof o === "string")
|
|
9761
|
-
return _array_like_to_array$
|
|
9766
|
+
return _array_like_to_array$h(o, minLen);
|
|
9762
9767
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
9763
9768
|
if (n === "Object" && o.constructor)
|
|
9764
9769
|
n = o.constructor.name;
|
|
9765
9770
|
if (n === "Map" || n === "Set")
|
|
9766
9771
|
return Array.from(n);
|
|
9767
9772
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
9768
|
-
return _array_like_to_array$
|
|
9773
|
+
return _array_like_to_array$h(o, minLen);
|
|
9769
9774
|
}
|
|
9770
9775
|
var Description = function(param) {
|
|
9771
9776
|
var text = param.text, moreTitle = param.moreTitle, lessTitle = param.lessTitle, _param_truncateIndex = param.truncateIndex, truncateIndex = _param_truncateIndex === void 0 ? 150 : _param_truncateIndex, _param_isAlwaysOpen = param.isAlwaysOpen, isAlwaysOpen = _param_isAlwaysOpen === void 0 ? true : _param_isAlwaysOpen, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles;
|
|
@@ -9773,7 +9778,7 @@
|
|
|
9773
9778
|
theme: tweakStyles
|
|
9774
9779
|
});
|
|
9775
9780
|
var isTooShort = text.length < truncateIndex;
|
|
9776
|
-
var _useState = _sliced_to_array$
|
|
9781
|
+
var _useState = _sliced_to_array$h(React.useState(isAlwaysOpen), 2), isOpen = _useState[0], setIsOpen = _useState[1];
|
|
9777
9782
|
var link = text.match(LINK_REGEXP);
|
|
9778
9783
|
var linkText = link && link[0];
|
|
9779
9784
|
var textWithNoLink = text.replace(LINK_REGEXP, "");
|
|
@@ -9985,14 +9990,14 @@
|
|
|
9985
9990
|
var negativePart = "(\\-)?";
|
|
9986
9991
|
return "^".concat(canBeNegative ? negativePart : "").concat(basePart).concat(canBeFloat ? floatPart : "", "$");
|
|
9987
9992
|
};
|
|
9988
|
-
function _array_like_to_array$
|
|
9993
|
+
function _array_like_to_array$g(arr, len) {
|
|
9989
9994
|
if (len == null || len > arr.length)
|
|
9990
9995
|
len = arr.length;
|
|
9991
9996
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
9992
9997
|
arr2[i] = arr[i];
|
|
9993
9998
|
return arr2;
|
|
9994
9999
|
}
|
|
9995
|
-
function _array_with_holes$
|
|
10000
|
+
function _array_with_holes$g(arr) {
|
|
9996
10001
|
if (Array.isArray(arr))
|
|
9997
10002
|
return arr;
|
|
9998
10003
|
}
|
|
@@ -10038,7 +10043,7 @@
|
|
|
10038
10043
|
}
|
|
10039
10044
|
return obj;
|
|
10040
10045
|
}
|
|
10041
|
-
function _iterable_to_array_limit$
|
|
10046
|
+
function _iterable_to_array_limit$g(arr, i) {
|
|
10042
10047
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
10043
10048
|
if (_i == null)
|
|
10044
10049
|
return;
|
|
@@ -10066,7 +10071,7 @@
|
|
|
10066
10071
|
}
|
|
10067
10072
|
return _arr;
|
|
10068
10073
|
}
|
|
10069
|
-
function _non_iterable_rest$
|
|
10074
|
+
function _non_iterable_rest$g() {
|
|
10070
10075
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10071
10076
|
}
|
|
10072
10077
|
function _object_spread$u(target) {
|
|
@@ -10116,21 +10121,21 @@
|
|
|
10116
10121
|
}
|
|
10117
10122
|
return target;
|
|
10118
10123
|
}
|
|
10119
|
-
function _sliced_to_array$
|
|
10120
|
-
return _array_with_holes$
|
|
10124
|
+
function _sliced_to_array$g(arr, i) {
|
|
10125
|
+
return _array_with_holes$g(arr) || _iterable_to_array_limit$g(arr, i) || _unsupported_iterable_to_array$g(arr, i) || _non_iterable_rest$g();
|
|
10121
10126
|
}
|
|
10122
|
-
function _unsupported_iterable_to_array$
|
|
10127
|
+
function _unsupported_iterable_to_array$g(o, minLen) {
|
|
10123
10128
|
if (!o)
|
|
10124
10129
|
return;
|
|
10125
10130
|
if (typeof o === "string")
|
|
10126
|
-
return _array_like_to_array$
|
|
10131
|
+
return _array_like_to_array$g(o, minLen);
|
|
10127
10132
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
10128
10133
|
if (n === "Object" && o.constructor)
|
|
10129
10134
|
n = o.constructor.name;
|
|
10130
10135
|
if (n === "Map" || n === "Set")
|
|
10131
10136
|
return Array.from(n);
|
|
10132
10137
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
10133
|
-
return _array_like_to_array$
|
|
10138
|
+
return _array_like_to_array$g(o, minLen);
|
|
10134
10139
|
}
|
|
10135
10140
|
var __generator$3 = globalThis && globalThis.__generator || function(thisArg, body) {
|
|
10136
10141
|
var f, y, t, g, _ = {
|
|
@@ -10247,10 +10252,10 @@
|
|
|
10247
10252
|
"min",
|
|
10248
10253
|
"max"
|
|
10249
10254
|
]);
|
|
10250
|
-
var _useState = _sliced_to_array$
|
|
10255
|
+
var _useState = _sliced_to_array$g(React.useState(function() {
|
|
10251
10256
|
return formatNumberWithDefault(value, defaultValue);
|
|
10252
10257
|
}), 2), showedValue = _useState[0], setShowedValue = _useState[1];
|
|
10253
|
-
var _useState1 = _sliced_to_array$
|
|
10258
|
+
var _useState1 = _sliced_to_array$g(React.useState(false), 2), isDeleteForwardAction = _useState1[0], setIsDeleteForwardAction = _useState1[1];
|
|
10254
10259
|
var handleKeyDown = function(event) {
|
|
10255
10260
|
setIsDeleteForwardAction(event.key === "Delete");
|
|
10256
10261
|
};
|
|
@@ -11067,20 +11072,20 @@
|
|
|
11067
11072
|
}
|
|
11068
11073
|
}
|
|
11069
11074
|
};
|
|
11070
|
-
function _array_like_to_array$
|
|
11075
|
+
function _array_like_to_array$f(arr, len) {
|
|
11071
11076
|
if (len == null || len > arr.length)
|
|
11072
11077
|
len = arr.length;
|
|
11073
11078
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
11074
11079
|
arr2[i] = arr[i];
|
|
11075
11080
|
return arr2;
|
|
11076
11081
|
}
|
|
11077
|
-
function _array_with_holes$
|
|
11082
|
+
function _array_with_holes$f(arr) {
|
|
11078
11083
|
if (Array.isArray(arr))
|
|
11079
11084
|
return arr;
|
|
11080
11085
|
}
|
|
11081
11086
|
function _array_without_holes$3(arr) {
|
|
11082
11087
|
if (Array.isArray(arr))
|
|
11083
|
-
return _array_like_to_array$
|
|
11088
|
+
return _array_like_to_array$f(arr);
|
|
11084
11089
|
}
|
|
11085
11090
|
function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
11086
11091
|
try {
|
|
@@ -11128,7 +11133,7 @@
|
|
|
11128
11133
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
11129
11134
|
return Array.from(iter);
|
|
11130
11135
|
}
|
|
11131
|
-
function _iterable_to_array_limit$
|
|
11136
|
+
function _iterable_to_array_limit$f(arr, i) {
|
|
11132
11137
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
11133
11138
|
if (_i == null)
|
|
11134
11139
|
return;
|
|
@@ -11156,7 +11161,7 @@
|
|
|
11156
11161
|
}
|
|
11157
11162
|
return _arr;
|
|
11158
11163
|
}
|
|
11159
|
-
function _non_iterable_rest$
|
|
11164
|
+
function _non_iterable_rest$f() {
|
|
11160
11165
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
11161
11166
|
}
|
|
11162
11167
|
function _non_iterable_spread$3() {
|
|
@@ -11201,24 +11206,24 @@
|
|
|
11201
11206
|
}
|
|
11202
11207
|
return target;
|
|
11203
11208
|
}
|
|
11204
|
-
function _sliced_to_array$
|
|
11205
|
-
return _array_with_holes$
|
|
11209
|
+
function _sliced_to_array$f(arr, i) {
|
|
11210
|
+
return _array_with_holes$f(arr) || _iterable_to_array_limit$f(arr, i) || _unsupported_iterable_to_array$f(arr, i) || _non_iterable_rest$f();
|
|
11206
11211
|
}
|
|
11207
11212
|
function _to_consumable_array$3(arr) {
|
|
11208
|
-
return _array_without_holes$3(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$
|
|
11213
|
+
return _array_without_holes$3(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$f(arr) || _non_iterable_spread$3();
|
|
11209
11214
|
}
|
|
11210
|
-
function _unsupported_iterable_to_array$
|
|
11215
|
+
function _unsupported_iterable_to_array$f(o, minLen) {
|
|
11211
11216
|
if (!o)
|
|
11212
11217
|
return;
|
|
11213
11218
|
if (typeof o === "string")
|
|
11214
|
-
return _array_like_to_array$
|
|
11219
|
+
return _array_like_to_array$f(o, minLen);
|
|
11215
11220
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
11216
11221
|
if (n === "Object" && o.constructor)
|
|
11217
11222
|
n = o.constructor.name;
|
|
11218
11223
|
if (n === "Map" || n === "Set")
|
|
11219
11224
|
return Array.from(n);
|
|
11220
11225
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
11221
|
-
return _array_like_to_array$
|
|
11226
|
+
return _array_like_to_array$f(o, minLen);
|
|
11222
11227
|
}
|
|
11223
11228
|
var __generator$2 = globalThis && globalThis.__generator || function(thisArg, body) {
|
|
11224
11229
|
var f, y, t, g, _ = {
|
|
@@ -11360,13 +11365,13 @@
|
|
|
11360
11365
|
className: "tweakClearButton",
|
|
11361
11366
|
currentComponentName: "MultiSelectList"
|
|
11362
11367
|
});
|
|
11363
|
-
var _useState = _sliced_to_array$
|
|
11364
|
-
var _useState1 = _sliced_to_array$
|
|
11365
|
-
var _useState2 = _sliced_to_array$
|
|
11366
|
-
var _useState3 = _sliced_to_array$
|
|
11367
|
-
var _useState4 = _sliced_to_array$
|
|
11368
|
-
var _useState5 = _sliced_to_array$
|
|
11369
|
-
var _useState6 = _sliced_to_array$
|
|
11368
|
+
var _useState = _sliced_to_array$f(React.useState(0), 2), keyCursorOn = _useState[0], setKeyCursorOn = _useState[1];
|
|
11369
|
+
var _useState1 = _sliced_to_array$f(React.useState(""), 2), searchValue = _useState1[0], setSearchValue = _useState1[1];
|
|
11370
|
+
var _useState2 = _sliced_to_array$f(React.useState([]), 2), allOptions = _useState2[0], setAllOptions = _useState2[1];
|
|
11371
|
+
var _useState3 = _sliced_to_array$f(React.useState(false), 2), isLoading = _useState3[0], setIsLoading = _useState3[1];
|
|
11372
|
+
var _useState4 = _sliced_to_array$f(React.useState(false), 2), isLoadingOptionsOnScroll = _useState4[0], setLoadingOptionsOnScroll = _useState4[1];
|
|
11373
|
+
var _useState5 = _sliced_to_array$f(React.useState(0), 2), activePage = _useState5[0], setActivePage = _useState5[1];
|
|
11374
|
+
var _useState6 = _sliced_to_array$f(React.useState(false), 2), isMaxPage = _useState6[0], setIsMaxPage = _useState6[1];
|
|
11370
11375
|
var observer = React.useRef();
|
|
11371
11376
|
var chosenValues = value === null || value === void 0 ? void 0 : value.include;
|
|
11372
11377
|
var translates = React.useMemo(function() {
|
|
@@ -11997,20 +12002,20 @@
|
|
|
11997
12002
|
}
|
|
11998
12003
|
};
|
|
11999
12004
|
var clearButtonStyles$1 = cloneDeep(innerTextButtonStyles);
|
|
12000
|
-
function _array_like_to_array$
|
|
12005
|
+
function _array_like_to_array$e(arr, len) {
|
|
12001
12006
|
if (len == null || len > arr.length)
|
|
12002
12007
|
len = arr.length;
|
|
12003
12008
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
12004
12009
|
arr2[i] = arr[i];
|
|
12005
12010
|
return arr2;
|
|
12006
12011
|
}
|
|
12007
|
-
function _array_with_holes$
|
|
12012
|
+
function _array_with_holes$e(arr) {
|
|
12008
12013
|
if (Array.isArray(arr))
|
|
12009
12014
|
return arr;
|
|
12010
12015
|
}
|
|
12011
12016
|
function _array_without_holes$2(arr) {
|
|
12012
12017
|
if (Array.isArray(arr))
|
|
12013
|
-
return _array_like_to_array$
|
|
12018
|
+
return _array_like_to_array$e(arr);
|
|
12014
12019
|
}
|
|
12015
12020
|
function asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, key, arg) {
|
|
12016
12021
|
try {
|
|
@@ -12058,7 +12063,7 @@
|
|
|
12058
12063
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
12059
12064
|
return Array.from(iter);
|
|
12060
12065
|
}
|
|
12061
|
-
function _iterable_to_array_limit$
|
|
12066
|
+
function _iterable_to_array_limit$e(arr, i) {
|
|
12062
12067
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
12063
12068
|
if (_i == null)
|
|
12064
12069
|
return;
|
|
@@ -12086,7 +12091,7 @@
|
|
|
12086
12091
|
}
|
|
12087
12092
|
return _arr;
|
|
12088
12093
|
}
|
|
12089
|
-
function _non_iterable_rest$
|
|
12094
|
+
function _non_iterable_rest$e() {
|
|
12090
12095
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
12091
12096
|
}
|
|
12092
12097
|
function _non_iterable_spread$2() {
|
|
@@ -12131,24 +12136,24 @@
|
|
|
12131
12136
|
}
|
|
12132
12137
|
return target;
|
|
12133
12138
|
}
|
|
12134
|
-
function _sliced_to_array$
|
|
12135
|
-
return _array_with_holes$
|
|
12139
|
+
function _sliced_to_array$e(arr, i) {
|
|
12140
|
+
return _array_with_holes$e(arr) || _iterable_to_array_limit$e(arr, i) || _unsupported_iterable_to_array$e(arr, i) || _non_iterable_rest$e();
|
|
12136
12141
|
}
|
|
12137
12142
|
function _to_consumable_array$2(arr) {
|
|
12138
|
-
return _array_without_holes$2(arr) || _iterable_to_array$2(arr) || _unsupported_iterable_to_array$
|
|
12143
|
+
return _array_without_holes$2(arr) || _iterable_to_array$2(arr) || _unsupported_iterable_to_array$e(arr) || _non_iterable_spread$2();
|
|
12139
12144
|
}
|
|
12140
|
-
function _unsupported_iterable_to_array$
|
|
12145
|
+
function _unsupported_iterable_to_array$e(o, minLen) {
|
|
12141
12146
|
if (!o)
|
|
12142
12147
|
return;
|
|
12143
12148
|
if (typeof o === "string")
|
|
12144
|
-
return _array_like_to_array$
|
|
12149
|
+
return _array_like_to_array$e(o, minLen);
|
|
12145
12150
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
12146
12151
|
if (n === "Object" && o.constructor)
|
|
12147
12152
|
n = o.constructor.name;
|
|
12148
12153
|
if (n === "Map" || n === "Set")
|
|
12149
12154
|
return Array.from(n);
|
|
12150
12155
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
12151
|
-
return _array_like_to_array$
|
|
12156
|
+
return _array_like_to_array$e(o, minLen);
|
|
12152
12157
|
}
|
|
12153
12158
|
var __generator$1 = globalThis && globalThis.__generator || function(thisArg, body) {
|
|
12154
12159
|
var f, y, t, g, _ = {
|
|
@@ -12277,12 +12282,12 @@
|
|
|
12277
12282
|
locale2
|
|
12278
12283
|
]);
|
|
12279
12284
|
var observer = React.useRef();
|
|
12280
|
-
var _useState = _sliced_to_array$
|
|
12281
|
-
var _useState1 = _sliced_to_array$
|
|
12282
|
-
var _useState2 = _sliced_to_array$
|
|
12283
|
-
var _useState3 = _sliced_to_array$
|
|
12284
|
-
var _useState4 = _sliced_to_array$
|
|
12285
|
-
var _useState5 = _sliced_to_array$
|
|
12285
|
+
var _useState = _sliced_to_array$e(React.useState(""), 2), searchValue = _useState[0], setSearchValue = _useState[1];
|
|
12286
|
+
var _useState1 = _sliced_to_array$e(React.useState([]), 2), allOptions = _useState1[0], setAllOptions = _useState1[1];
|
|
12287
|
+
var _useState2 = _sliced_to_array$e(React.useState(0), 2), activePage = _useState2[0], setActivePage = _useState2[1];
|
|
12288
|
+
var _useState3 = _sliced_to_array$e(React.useState(false), 2), isMaxPage = _useState3[0], setIsMaxPage = _useState3[1];
|
|
12289
|
+
var _useState4 = _sliced_to_array$e(React.useState(false), 2), isLoading = _useState4[0], setIsLoading = _useState4[1];
|
|
12290
|
+
var _useState5 = _sliced_to_array$e(React.useState(false), 2), isLoadingOptionsOnScroll = _useState5[0], setLoadingOptionsOnScroll = _useState5[1];
|
|
12286
12291
|
var shouldShowPreloader = isLoading || isLoadingOptionsOnScroll;
|
|
12287
12292
|
var hasFooter = trueReactPlatformHelpers.isReactNodeNotEmpty(footer);
|
|
12288
12293
|
var handleSearchInputChange = React.useCallback(function() {
|
|
@@ -13794,14 +13799,14 @@
|
|
|
13794
13799
|
marginLeft: END_PICKER_LEFT_MARGIN
|
|
13795
13800
|
}
|
|
13796
13801
|
};
|
|
13797
|
-
function _array_like_to_array$
|
|
13802
|
+
function _array_like_to_array$d(arr, len) {
|
|
13798
13803
|
if (len == null || len > arr.length)
|
|
13799
13804
|
len = arr.length;
|
|
13800
13805
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
13801
13806
|
arr2[i] = arr[i];
|
|
13802
13807
|
return arr2;
|
|
13803
13808
|
}
|
|
13804
|
-
function _array_with_holes$
|
|
13809
|
+
function _array_with_holes$d(arr) {
|
|
13805
13810
|
if (Array.isArray(arr))
|
|
13806
13811
|
return arr;
|
|
13807
13812
|
}
|
|
@@ -13818,7 +13823,7 @@
|
|
|
13818
13823
|
}
|
|
13819
13824
|
return obj;
|
|
13820
13825
|
}
|
|
13821
|
-
function _iterable_to_array_limit$
|
|
13826
|
+
function _iterable_to_array_limit$d(arr, i) {
|
|
13822
13827
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
13823
13828
|
if (_i == null)
|
|
13824
13829
|
return;
|
|
@@ -13846,7 +13851,7 @@
|
|
|
13846
13851
|
}
|
|
13847
13852
|
return _arr;
|
|
13848
13853
|
}
|
|
13849
|
-
function _non_iterable_rest$
|
|
13854
|
+
function _non_iterable_rest$d() {
|
|
13850
13855
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
13851
13856
|
}
|
|
13852
13857
|
function _object_spread$n(target) {
|
|
@@ -13888,21 +13893,21 @@
|
|
|
13888
13893
|
}
|
|
13889
13894
|
return target;
|
|
13890
13895
|
}
|
|
13891
|
-
function _sliced_to_array$
|
|
13892
|
-
return _array_with_holes$
|
|
13896
|
+
function _sliced_to_array$d(arr, i) {
|
|
13897
|
+
return _array_with_holes$d(arr) || _iterable_to_array_limit$d(arr, i) || _unsupported_iterable_to_array$d(arr, i) || _non_iterable_rest$d();
|
|
13893
13898
|
}
|
|
13894
|
-
function _unsupported_iterable_to_array$
|
|
13899
|
+
function _unsupported_iterable_to_array$d(o, minLen) {
|
|
13895
13900
|
if (!o)
|
|
13896
13901
|
return;
|
|
13897
13902
|
if (typeof o === "string")
|
|
13898
|
-
return _array_like_to_array$
|
|
13903
|
+
return _array_like_to_array$d(o, minLen);
|
|
13899
13904
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
13900
13905
|
if (n === "Object" && o.constructor)
|
|
13901
13906
|
n = o.constructor.name;
|
|
13902
13907
|
if (n === "Map" || n === "Set")
|
|
13903
13908
|
return Array.from(n);
|
|
13904
13909
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
13905
|
-
return _array_like_to_array$
|
|
13910
|
+
return _array_like_to_array$d(o, minLen);
|
|
13906
13911
|
}
|
|
13907
13912
|
var FilterWithDates = function(param) {
|
|
13908
13913
|
var value = param.value, onChange = param.onChange, localeKey = param.localeKey, locale2 = param.locale, onStartBtnSubmit = param.onStartBtnSubmit, onEndBtnSubmit = param.onEndBtnSubmit, data = param.data, tweakStyles = param.tweakStyles, testId = param.testId, _param_startPickerProps = param.startPickerProps, startPickerProps = _param_startPickerProps === void 0 ? DEFAULT_PICKER_PROPS : _param_startPickerProps, _param_endPickerProps = param.endPickerProps, endPickerProps = _param_endPickerProps === void 0 ? DEFAULT_PICKER_PROPS : _param_endPickerProps, _param_isClearable = param.isClearable, isClearable = _param_isClearable === void 0 ? true : _param_isClearable;
|
|
@@ -13934,8 +13939,8 @@
|
|
|
13934
13939
|
className: "tweakEndDatePicker",
|
|
13935
13940
|
currentComponentName: "FilterWithDates"
|
|
13936
13941
|
});
|
|
13937
|
-
var _useState = _sliced_to_array$
|
|
13938
|
-
var _useState1 = _sliced_to_array$
|
|
13942
|
+
var _useState = _sliced_to_array$d(React.useState(false), 2), isOpenFrom = _useState[0], setOpenFrom = _useState[1];
|
|
13943
|
+
var _useState1 = _sliced_to_array$d(React.useState(false), 2), isOpenTo = _useState1[0], setOpenTo = _useState1[1];
|
|
13939
13944
|
var ref = React.useRef(null);
|
|
13940
13945
|
var dateLocale = localeKey === "ru" ? ru : enUS;
|
|
13941
13946
|
var translates = React.useMemo(function() {
|
|
@@ -14083,20 +14088,20 @@
|
|
|
14083
14088
|
maxHeight: "auto"
|
|
14084
14089
|
}
|
|
14085
14090
|
};
|
|
14086
|
-
function _array_like_to_array$
|
|
14091
|
+
function _array_like_to_array$c(arr, len) {
|
|
14087
14092
|
if (len == null || len > arr.length)
|
|
14088
14093
|
len = arr.length;
|
|
14089
14094
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
14090
14095
|
arr2[i] = arr[i];
|
|
14091
14096
|
return arr2;
|
|
14092
14097
|
}
|
|
14093
|
-
function _array_with_holes$
|
|
14098
|
+
function _array_with_holes$c(arr) {
|
|
14094
14099
|
if (Array.isArray(arr))
|
|
14095
14100
|
return arr;
|
|
14096
14101
|
}
|
|
14097
14102
|
function _array_without_holes$1(arr) {
|
|
14098
14103
|
if (Array.isArray(arr))
|
|
14099
|
-
return _array_like_to_array$
|
|
14104
|
+
return _array_like_to_array$c(arr);
|
|
14100
14105
|
}
|
|
14101
14106
|
function _define_property$o(obj, key, value) {
|
|
14102
14107
|
if (key in obj) {
|
|
@@ -14115,7 +14120,7 @@
|
|
|
14115
14120
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
14116
14121
|
return Array.from(iter);
|
|
14117
14122
|
}
|
|
14118
|
-
function _iterable_to_array_limit$
|
|
14123
|
+
function _iterable_to_array_limit$c(arr, i) {
|
|
14119
14124
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
14120
14125
|
if (_i == null)
|
|
14121
14126
|
return;
|
|
@@ -14143,7 +14148,7 @@
|
|
|
14143
14148
|
}
|
|
14144
14149
|
return _arr;
|
|
14145
14150
|
}
|
|
14146
|
-
function _non_iterable_rest$
|
|
14151
|
+
function _non_iterable_rest$c() {
|
|
14147
14152
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14148
14153
|
}
|
|
14149
14154
|
function _non_iterable_spread$1() {
|
|
@@ -14188,24 +14193,24 @@
|
|
|
14188
14193
|
}
|
|
14189
14194
|
return target;
|
|
14190
14195
|
}
|
|
14191
|
-
function _sliced_to_array$
|
|
14192
|
-
return _array_with_holes$
|
|
14196
|
+
function _sliced_to_array$c(arr, i) {
|
|
14197
|
+
return _array_with_holes$c(arr) || _iterable_to_array_limit$c(arr, i) || _unsupported_iterable_to_array$c(arr, i) || _non_iterable_rest$c();
|
|
14193
14198
|
}
|
|
14194
14199
|
function _to_consumable_array$1(arr) {
|
|
14195
|
-
return _array_without_holes$1(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$
|
|
14200
|
+
return _array_without_holes$1(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$c(arr) || _non_iterable_spread$1();
|
|
14196
14201
|
}
|
|
14197
|
-
function _unsupported_iterable_to_array$
|
|
14202
|
+
function _unsupported_iterable_to_array$c(o, minLen) {
|
|
14198
14203
|
if (!o)
|
|
14199
14204
|
return;
|
|
14200
14205
|
if (typeof o === "string")
|
|
14201
|
-
return _array_like_to_array$
|
|
14206
|
+
return _array_like_to_array$c(o, minLen);
|
|
14202
14207
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
14203
14208
|
if (n === "Object" && o.constructor)
|
|
14204
14209
|
n = o.constructor.name;
|
|
14205
14210
|
if (n === "Map" || n === "Set")
|
|
14206
14211
|
return Array.from(n);
|
|
14207
14212
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
14208
|
-
return _array_like_to_array$
|
|
14213
|
+
return _array_like_to_array$c(o, minLen);
|
|
14209
14214
|
}
|
|
14210
14215
|
var FilterWithPeriod = function(param) {
|
|
14211
14216
|
var value = param.value, localeKey = param.localeKey, locale2 = param.locale, onChange = param.onChange, onClose = param.onClose, periods = param.periods, tweakStyles = param.tweakStyles, testId = param.testId;
|
|
@@ -14218,9 +14223,9 @@
|
|
|
14218
14223
|
localeKey,
|
|
14219
14224
|
locale2
|
|
14220
14225
|
]);
|
|
14221
|
-
var _useState = _sliced_to_array$
|
|
14222
|
-
var _useState1 = _sliced_to_array$
|
|
14223
|
-
var _useState2 = _sliced_to_array$
|
|
14226
|
+
var _useState = _sliced_to_array$c(React.useState((value === null || value === void 0 ? void 0 : value.periodType) !== "CUSTOM"), 2), isPeriodPickerShown = _useState[0], setIsPeriodPickerShown = _useState[1];
|
|
14227
|
+
var _useState1 = _sliced_to_array$c(React.useState((value === null || value === void 0 ? void 0 : value.periodType) === "CUSTOM"), 2), isDatePickerShown = _useState1[0], setIsDatePickerShown = _useState1[1];
|
|
14228
|
+
var _useState2 = _sliced_to_array$c(React.useState(value), 2), period = _useState2[0], setPeriod = _useState2[1];
|
|
14224
14229
|
var periodGetters = React.useMemo(function() {
|
|
14225
14230
|
var result = _object_spread$m({}, PERIODS_GETTERS);
|
|
14226
14231
|
periods === null || periods === void 0 ? void 0 : periods.forEach(function(p) {
|
|
@@ -14360,14 +14365,14 @@
|
|
|
14360
14365
|
]
|
|
14361
14366
|
});
|
|
14362
14367
|
};
|
|
14363
|
-
function _array_like_to_array$
|
|
14368
|
+
function _array_like_to_array$b(arr, len) {
|
|
14364
14369
|
if (len == null || len > arr.length)
|
|
14365
14370
|
len = arr.length;
|
|
14366
14371
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
14367
14372
|
arr2[i] = arr[i];
|
|
14368
14373
|
return arr2;
|
|
14369
14374
|
}
|
|
14370
|
-
function _array_with_holes$
|
|
14375
|
+
function _array_with_holes$b(arr) {
|
|
14371
14376
|
if (Array.isArray(arr))
|
|
14372
14377
|
return arr;
|
|
14373
14378
|
}
|
|
@@ -14384,7 +14389,7 @@
|
|
|
14384
14389
|
}
|
|
14385
14390
|
return obj;
|
|
14386
14391
|
}
|
|
14387
|
-
function _iterable_to_array_limit$
|
|
14392
|
+
function _iterable_to_array_limit$b(arr, i) {
|
|
14388
14393
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
14389
14394
|
if (_i == null)
|
|
14390
14395
|
return;
|
|
@@ -14412,7 +14417,7 @@
|
|
|
14412
14417
|
}
|
|
14413
14418
|
return _arr;
|
|
14414
14419
|
}
|
|
14415
|
-
function _non_iterable_rest$
|
|
14420
|
+
function _non_iterable_rest$b() {
|
|
14416
14421
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14417
14422
|
}
|
|
14418
14423
|
function _object_spread$l(target) {
|
|
@@ -14454,26 +14459,26 @@
|
|
|
14454
14459
|
}
|
|
14455
14460
|
return target;
|
|
14456
14461
|
}
|
|
14457
|
-
function _sliced_to_array$
|
|
14458
|
-
return _array_with_holes$
|
|
14462
|
+
function _sliced_to_array$b(arr, i) {
|
|
14463
|
+
return _array_with_holes$b(arr) || _iterable_to_array_limit$b(arr, i) || _unsupported_iterable_to_array$b(arr, i) || _non_iterable_rest$b();
|
|
14459
14464
|
}
|
|
14460
|
-
function _unsupported_iterable_to_array$
|
|
14465
|
+
function _unsupported_iterable_to_array$b(o, minLen) {
|
|
14461
14466
|
if (!o)
|
|
14462
14467
|
return;
|
|
14463
14468
|
if (typeof o === "string")
|
|
14464
|
-
return _array_like_to_array$
|
|
14469
|
+
return _array_like_to_array$b(o, minLen);
|
|
14465
14470
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
14466
14471
|
if (n === "Object" && o.constructor)
|
|
14467
14472
|
n = o.constructor.name;
|
|
14468
14473
|
if (n === "Map" || n === "Set")
|
|
14469
14474
|
return Array.from(n);
|
|
14470
14475
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
14471
|
-
return _array_like_to_array$
|
|
14476
|
+
return _array_like_to_array$b(o, minLen);
|
|
14472
14477
|
}
|
|
14473
14478
|
function Filter(param) {
|
|
14474
14479
|
var filter = param.filter, value = param.value, parentRef = param.parentRef, isInline = param.isInline, onChange = param.onChange, onClose = param.onClose, localeKey = param.localeKey, locale2 = param.locale, filtersPaneRef = param.filtersPaneRef, testId = param.testId, classes = param.classes;
|
|
14475
14480
|
var ref = React.useRef(null);
|
|
14476
|
-
var _useState = _sliced_to_array$
|
|
14481
|
+
var _useState = _sliced_to_array$b(React.useState("left"), 2), dropdownPosition = _useState[0], setDropdownPosition = _useState[1];
|
|
14477
14482
|
var _filter_localeKey;
|
|
14478
14483
|
var translatesLocaleKey = (_filter_localeKey = filter.localeKey) !== null && _filter_localeKey !== void 0 ? _filter_localeKey : localeKey;
|
|
14479
14484
|
var translates = React.useMemo(function() {
|
|
@@ -14699,14 +14704,14 @@
|
|
|
14699
14704
|
width: "100%"
|
|
14700
14705
|
}
|
|
14701
14706
|
};
|
|
14702
|
-
function _array_like_to_array$
|
|
14707
|
+
function _array_like_to_array$a(arr, len) {
|
|
14703
14708
|
if (len == null || len > arr.length)
|
|
14704
14709
|
len = arr.length;
|
|
14705
14710
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
14706
14711
|
arr2[i] = arr[i];
|
|
14707
14712
|
return arr2;
|
|
14708
14713
|
}
|
|
14709
|
-
function _array_with_holes$
|
|
14714
|
+
function _array_with_holes$a(arr) {
|
|
14710
14715
|
if (Array.isArray(arr))
|
|
14711
14716
|
return arr;
|
|
14712
14717
|
}
|
|
@@ -14723,7 +14728,7 @@
|
|
|
14723
14728
|
}
|
|
14724
14729
|
return obj;
|
|
14725
14730
|
}
|
|
14726
|
-
function _iterable_to_array_limit$
|
|
14731
|
+
function _iterable_to_array_limit$a(arr, i) {
|
|
14727
14732
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
14728
14733
|
if (_i == null)
|
|
14729
14734
|
return;
|
|
@@ -14751,7 +14756,7 @@
|
|
|
14751
14756
|
}
|
|
14752
14757
|
return _arr;
|
|
14753
14758
|
}
|
|
14754
|
-
function _non_iterable_rest$
|
|
14759
|
+
function _non_iterable_rest$a() {
|
|
14755
14760
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14756
14761
|
}
|
|
14757
14762
|
function _object_spread$k(target) {
|
|
@@ -14793,21 +14798,21 @@
|
|
|
14793
14798
|
}
|
|
14794
14799
|
return target;
|
|
14795
14800
|
}
|
|
14796
|
-
function _sliced_to_array$
|
|
14797
|
-
return _array_with_holes$
|
|
14801
|
+
function _sliced_to_array$a(arr, i) {
|
|
14802
|
+
return _array_with_holes$a(arr) || _iterable_to_array_limit$a(arr, i) || _unsupported_iterable_to_array$a(arr, i) || _non_iterable_rest$a();
|
|
14798
14803
|
}
|
|
14799
|
-
function _unsupported_iterable_to_array$
|
|
14804
|
+
function _unsupported_iterable_to_array$a(o, minLen) {
|
|
14800
14805
|
if (!o)
|
|
14801
14806
|
return;
|
|
14802
14807
|
if (typeof o === "string")
|
|
14803
|
-
return _array_like_to_array$
|
|
14808
|
+
return _array_like_to_array$a(o, minLen);
|
|
14804
14809
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
14805
14810
|
if (n === "Object" && o.constructor)
|
|
14806
14811
|
n = o.constructor.name;
|
|
14807
14812
|
if (n === "Map" || n === "Set")
|
|
14808
14813
|
return Array.from(n);
|
|
14809
14814
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
14810
|
-
return _array_like_to_array$
|
|
14815
|
+
return _array_like_to_array$a(o, minLen);
|
|
14811
14816
|
}
|
|
14812
14817
|
function FiltersPaneSearch(param) {
|
|
14813
14818
|
var value = param.value, _param_fields = param.fields, fields = _param_fields === void 0 ? [] : _param_fields, field = param.field, onChange = param.onChange, localeKey = param.localeKey, locale2 = param.locale, getValueId = param.getValueId, getValueView = param.getValueView, getValueString = param.getValueString, hasClearSelectButton = param.hasClearSelectButton, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isSelectSearchEnabled = param.isSelectSearchEnabled, isSelectSearchEnabled = _param_isSelectSearchEnabled === void 0 ? true : _param_isSelectSearchEnabled, _param_isAutoSizeable = param.isAutoSizeable, isAutoSizeable = _param_isAutoSizeable === void 0 ? true : _param_isAutoSizeable, maxLength = param.maxLength, data = param.data, tweakStyles = param.tweakStyles, testId = param.testId;
|
|
@@ -14826,8 +14831,8 @@
|
|
|
14826
14831
|
className: "tweakSelect",
|
|
14827
14832
|
currentComponentName: "FiltersPaneSearch"
|
|
14828
14833
|
});
|
|
14829
|
-
var _useState = _sliced_to_array$
|
|
14830
|
-
var _useState1 = _sliced_to_array$
|
|
14834
|
+
var _useState = _sliced_to_array$a(React.useState(false), 2), isInputFocused = _useState[0], setIsInputFocused = _useState[1];
|
|
14835
|
+
var _useState1 = _sliced_to_array$a(React.useState(false), 2), isOpen = _useState1[0], setIsOpen = _useState1[1];
|
|
14831
14836
|
var refRoot = React.useRef(null);
|
|
14832
14837
|
var translates = React.useMemo(function() {
|
|
14833
14838
|
return getLocale$1(localeKey, locale2);
|
|
@@ -15208,14 +15213,14 @@
|
|
|
15208
15213
|
extend: "animationEnd"
|
|
15209
15214
|
}
|
|
15210
15215
|
});
|
|
15211
|
-
function _array_like_to_array$
|
|
15216
|
+
function _array_like_to_array$9(arr, len) {
|
|
15212
15217
|
if (len == null || len > arr.length)
|
|
15213
15218
|
len = arr.length;
|
|
15214
15219
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
15215
15220
|
arr2[i] = arr[i];
|
|
15216
15221
|
return arr2;
|
|
15217
15222
|
}
|
|
15218
|
-
function _array_with_holes$
|
|
15223
|
+
function _array_with_holes$9(arr) {
|
|
15219
15224
|
if (Array.isArray(arr))
|
|
15220
15225
|
return arr;
|
|
15221
15226
|
}
|
|
@@ -15232,7 +15237,7 @@
|
|
|
15232
15237
|
}
|
|
15233
15238
|
return obj;
|
|
15234
15239
|
}
|
|
15235
|
-
function _iterable_to_array_limit$
|
|
15240
|
+
function _iterable_to_array_limit$9(arr, i) {
|
|
15236
15241
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
15237
15242
|
if (_i == null)
|
|
15238
15243
|
return;
|
|
@@ -15260,7 +15265,7 @@
|
|
|
15260
15265
|
}
|
|
15261
15266
|
return _arr;
|
|
15262
15267
|
}
|
|
15263
|
-
function _non_iterable_rest$
|
|
15268
|
+
function _non_iterable_rest$9() {
|
|
15264
15269
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
15265
15270
|
}
|
|
15266
15271
|
function _object_spread$j(target) {
|
|
@@ -15302,21 +15307,21 @@
|
|
|
15302
15307
|
}
|
|
15303
15308
|
return target;
|
|
15304
15309
|
}
|
|
15305
|
-
function _sliced_to_array$
|
|
15306
|
-
return _array_with_holes$
|
|
15310
|
+
function _sliced_to_array$9(arr, i) {
|
|
15311
|
+
return _array_with_holes$9(arr) || _iterable_to_array_limit$9(arr, i) || _unsupported_iterable_to_array$9(arr, i) || _non_iterable_rest$9();
|
|
15307
15312
|
}
|
|
15308
|
-
function _unsupported_iterable_to_array$
|
|
15313
|
+
function _unsupported_iterable_to_array$9(o, minLen) {
|
|
15309
15314
|
if (!o)
|
|
15310
15315
|
return;
|
|
15311
15316
|
if (typeof o === "string")
|
|
15312
|
-
return _array_like_to_array$
|
|
15317
|
+
return _array_like_to_array$9(o, minLen);
|
|
15313
15318
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
15314
15319
|
if (n === "Object" && o.constructor)
|
|
15315
15320
|
n = o.constructor.name;
|
|
15316
15321
|
if (n === "Map" || n === "Set")
|
|
15317
15322
|
return Array.from(n);
|
|
15318
15323
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
15319
|
-
return _array_like_to_array$
|
|
15324
|
+
return _array_like_to_array$9(o, minLen);
|
|
15320
15325
|
}
|
|
15321
15326
|
function FilterWrapper(param) {
|
|
15322
15327
|
var filter = param.filter, value = param.value, isDisabled = param.isDisabled, locale2 = param.locale, localeKey = param.localeKey, data = param.data, testId = param.testId, filtersPaneRef = param.filtersPaneRef, tweakStyles = param.tweakStyles, onChange = param.onChange;
|
|
@@ -15334,7 +15339,7 @@
|
|
|
15334
15339
|
className: "tweakValueView",
|
|
15335
15340
|
currentComponentName: "FilterWrapper"
|
|
15336
15341
|
});
|
|
15337
|
-
var _useState = _sliced_to_array$
|
|
15342
|
+
var _useState = _sliced_to_array$9(React.useState(false), 2), isOpen = _useState[0], setIsOpen = _useState[1];
|
|
15338
15343
|
var refItem = React.useRef(null);
|
|
15339
15344
|
var type = filter.type;
|
|
15340
15345
|
var hasValue = false;
|
|
@@ -22018,14 +22023,14 @@
|
|
|
22018
22023
|
cursor: "pointer"
|
|
22019
22024
|
}
|
|
22020
22025
|
});
|
|
22021
|
-
function _array_like_to_array$
|
|
22026
|
+
function _array_like_to_array$8(arr, len) {
|
|
22022
22027
|
if (len == null || len > arr.length)
|
|
22023
22028
|
len = arr.length;
|
|
22024
22029
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
22025
22030
|
arr2[i] = arr[i];
|
|
22026
22031
|
return arr2;
|
|
22027
22032
|
}
|
|
22028
|
-
function _array_with_holes$
|
|
22033
|
+
function _array_with_holes$8(arr) {
|
|
22029
22034
|
if (Array.isArray(arr))
|
|
22030
22035
|
return arr;
|
|
22031
22036
|
}
|
|
@@ -22042,7 +22047,7 @@
|
|
|
22042
22047
|
}
|
|
22043
22048
|
return obj;
|
|
22044
22049
|
}
|
|
22045
|
-
function _iterable_to_array_limit$
|
|
22050
|
+
function _iterable_to_array_limit$8(arr, i) {
|
|
22046
22051
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
22047
22052
|
if (_i == null)
|
|
22048
22053
|
return;
|
|
@@ -22070,7 +22075,7 @@
|
|
|
22070
22075
|
}
|
|
22071
22076
|
return _arr;
|
|
22072
22077
|
}
|
|
22073
|
-
function _non_iterable_rest$
|
|
22078
|
+
function _non_iterable_rest$8() {
|
|
22074
22079
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
22075
22080
|
}
|
|
22076
22081
|
function _object_spread$g(target) {
|
|
@@ -22112,21 +22117,21 @@
|
|
|
22112
22117
|
}
|
|
22113
22118
|
return target;
|
|
22114
22119
|
}
|
|
22115
|
-
function _sliced_to_array$
|
|
22116
|
-
return _array_with_holes$
|
|
22120
|
+
function _sliced_to_array$8(arr, i) {
|
|
22121
|
+
return _array_with_holes$8(arr) || _iterable_to_array_limit$8(arr, i) || _unsupported_iterable_to_array$8(arr, i) || _non_iterable_rest$8();
|
|
22117
22122
|
}
|
|
22118
|
-
function _unsupported_iterable_to_array$
|
|
22123
|
+
function _unsupported_iterable_to_array$8(o, minLen) {
|
|
22119
22124
|
if (!o)
|
|
22120
22125
|
return;
|
|
22121
22126
|
if (typeof o === "string")
|
|
22122
|
-
return _array_like_to_array$
|
|
22127
|
+
return _array_like_to_array$8(o, minLen);
|
|
22123
22128
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
22124
22129
|
if (n === "Object" && o.constructor)
|
|
22125
22130
|
n = o.constructor.name;
|
|
22126
22131
|
if (n === "Map" || n === "Set")
|
|
22127
22132
|
return Array.from(n);
|
|
22128
22133
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
22129
|
-
return _array_like_to_array$
|
|
22134
|
+
return _array_like_to_array$8(o, minLen);
|
|
22130
22135
|
}
|
|
22131
22136
|
function FlexibleTableRowInner(param) {
|
|
22132
22137
|
var item = param.item, uniqueField = param.uniqueField, isFirstColumnSticky = param.isFirstColumnSticky, isActive = param.isActive, config = param.config, enabledColumns = param.enabledColumns, rowAttributes = param.rowAttributes, tweakStyles = param.tweakStyles, expandableRowComponent = param.expandableRowComponent, onRowHover = param.onRowHover, onRowClick = param.onRowClick;
|
|
@@ -22138,8 +22143,8 @@
|
|
|
22138
22143
|
className: "tweakTableCell",
|
|
22139
22144
|
currentComponentName: "FlexibleTableRow"
|
|
22140
22145
|
});
|
|
22141
|
-
var _useState = _sliced_to_array$
|
|
22142
|
-
var _useState1 = _sliced_to_array$
|
|
22146
|
+
var _useState = _sliced_to_array$8(React.useState(false), 2), isFocused = _useState[0], setFocused = _useState[1];
|
|
22147
|
+
var _useState1 = _sliced_to_array$8(React.useState({
|
|
22143
22148
|
isOpen: false
|
|
22144
22149
|
}), 2), nestedComponent = _useState1[0], setNestedComponent = _useState1[1];
|
|
22145
22150
|
var rowData = rowAttributes === null || rowAttributes === void 0 ? void 0 : rowAttributes.reduce(function(acc, cur) {
|
|
@@ -22231,17 +22236,6 @@
|
|
|
22231
22236
|
});
|
|
22232
22237
|
}
|
|
22233
22238
|
var FlexibleTableRow = /* @__PURE__ */ React.memo(FlexibleTableRowInner);
|
|
22234
|
-
function _array_like_to_array$8(arr, len) {
|
|
22235
|
-
if (len == null || len > arr.length)
|
|
22236
|
-
len = arr.length;
|
|
22237
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
22238
|
-
arr2[i] = arr[i];
|
|
22239
|
-
return arr2;
|
|
22240
|
-
}
|
|
22241
|
-
function _array_with_holes$8(arr) {
|
|
22242
|
-
if (Array.isArray(arr))
|
|
22243
|
-
return arr;
|
|
22244
|
-
}
|
|
22245
22239
|
function _define_property$g(obj, key, value) {
|
|
22246
22240
|
if (key in obj) {
|
|
22247
22241
|
Object.defineProperty(obj, key, {
|
|
@@ -22255,37 +22249,6 @@
|
|
|
22255
22249
|
}
|
|
22256
22250
|
return obj;
|
|
22257
22251
|
}
|
|
22258
|
-
function _iterable_to_array_limit$8(arr, i) {
|
|
22259
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
22260
|
-
if (_i == null)
|
|
22261
|
-
return;
|
|
22262
|
-
var _arr = [];
|
|
22263
|
-
var _n = true;
|
|
22264
|
-
var _d = false;
|
|
22265
|
-
var _s, _e;
|
|
22266
|
-
try {
|
|
22267
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
22268
|
-
_arr.push(_s.value);
|
|
22269
|
-
if (i && _arr.length === i)
|
|
22270
|
-
break;
|
|
22271
|
-
}
|
|
22272
|
-
} catch (err) {
|
|
22273
|
-
_d = true;
|
|
22274
|
-
_e = err;
|
|
22275
|
-
} finally {
|
|
22276
|
-
try {
|
|
22277
|
-
if (!_n && _i["return"] != null)
|
|
22278
|
-
_i["return"]();
|
|
22279
|
-
} finally {
|
|
22280
|
-
if (_d)
|
|
22281
|
-
throw _e;
|
|
22282
|
-
}
|
|
22283
|
-
}
|
|
22284
|
-
return _arr;
|
|
22285
|
-
}
|
|
22286
|
-
function _non_iterable_rest$8() {
|
|
22287
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
22288
|
-
}
|
|
22289
22252
|
function _object_spread$f(target) {
|
|
22290
22253
|
for (var i = 1; i < arguments.length; i++) {
|
|
22291
22254
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
@@ -22325,22 +22288,6 @@
|
|
|
22325
22288
|
}
|
|
22326
22289
|
return target;
|
|
22327
22290
|
}
|
|
22328
|
-
function _sliced_to_array$8(arr, i) {
|
|
22329
|
-
return _array_with_holes$8(arr) || _iterable_to_array_limit$8(arr, i) || _unsupported_iterable_to_array$8(arr, i) || _non_iterable_rest$8();
|
|
22330
|
-
}
|
|
22331
|
-
function _unsupported_iterable_to_array$8(o, minLen) {
|
|
22332
|
-
if (!o)
|
|
22333
|
-
return;
|
|
22334
|
-
if (typeof o === "string")
|
|
22335
|
-
return _array_like_to_array$8(o, minLen);
|
|
22336
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
22337
|
-
if (n === "Object" && o.constructor)
|
|
22338
|
-
n = o.constructor.name;
|
|
22339
|
-
if (n === "Map" || n === "Set")
|
|
22340
|
-
return Array.from(n);
|
|
22341
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
22342
|
-
return _array_like_to_array$8(o, minLen);
|
|
22343
|
-
}
|
|
22344
22291
|
function FlexibleTable(param) {
|
|
22345
22292
|
var data = param.data, tweakStyles = param.tweakStyles, content = param.content, headerContent = param.headerContent, config = param.config, activeRows = param.activeRows, enabledColumns = param.enabledColumns, isHorizontallyScrollable = param.isHorizontallyScrollable, isFirstColumnSticky = param.isFirstColumnSticky, infinityScrollConfig = param.infinityScrollConfig, uniqueField = param.uniqueField, isLoading = param.isLoading, onHeadClick = param.onHeadClick, onRowHover = param.onRowHover, onRowClick = param.onRowClick, refForScroll = param.refForScroll, rowAttributes = param.rowAttributes, nothingFoundContent = param.nothingFoundContent, testId = param.testId, expandableRowComponent = param.expandableRowComponent;
|
|
22346
22293
|
var classes = useStyles$h({
|
|
@@ -22351,17 +22298,39 @@
|
|
|
22351
22298
|
className: "tweakTableRow",
|
|
22352
22299
|
currentComponentName: "FlexibleTable"
|
|
22353
22300
|
});
|
|
22354
|
-
var _useState = _sliced_to_array$8(React.useState(false), 2), isHorizontallyScrolled = _useState[0], setIsHorizontallyScrolled = _useState[1];
|
|
22355
|
-
var _useState1 = _sliced_to_array$8(React.useState(false), 2), hasScrollBar = _useState1[0], setHasScrollBar = _useState1[1];
|
|
22356
22301
|
var observer = React.useRef();
|
|
22357
22302
|
var scrollRef = React.useRef(null);
|
|
22358
|
-
var ref = refForScroll !== null && refForScroll !== void 0 ? refForScroll : scrollRef;
|
|
22359
22303
|
var showedColumns = React.useMemo(function() {
|
|
22360
22304
|
return enabledColumns !== null && enabledColumns !== void 0 ? enabledColumns : Object.keys(config);
|
|
22361
22305
|
}, [
|
|
22362
22306
|
enabledColumns,
|
|
22363
22307
|
config
|
|
22364
22308
|
]);
|
|
22309
|
+
var getDataScrollAttributeSetter = React.useCallback(function(key, setter) {
|
|
22310
|
+
return function(el) {
|
|
22311
|
+
if (isHorizontallyScrollable && trueReactPlatformHelpers.isNotEmpty(el) && setter(el)) {
|
|
22312
|
+
el.dataset[key] = "true";
|
|
22313
|
+
} else {
|
|
22314
|
+
el === null || el === void 0 ? void 0 : el.removeAttribute("data-".concat(key));
|
|
22315
|
+
}
|
|
22316
|
+
};
|
|
22317
|
+
}, [
|
|
22318
|
+
isHorizontallyScrollable
|
|
22319
|
+
]);
|
|
22320
|
+
var setHasScrollBarAttribute = React.useCallback(getDataScrollAttributeSetter("scrollable", hasHorizontalScrollBar), [
|
|
22321
|
+
getDataScrollAttributeSetter
|
|
22322
|
+
]);
|
|
22323
|
+
var setIsScrolledAttribute = React.useCallback(getDataScrollAttributeSetter("scrolled", function(el) {
|
|
22324
|
+
return el.scrollLeft > 0;
|
|
22325
|
+
}), [
|
|
22326
|
+
getDataScrollAttributeSetter
|
|
22327
|
+
]);
|
|
22328
|
+
var ref = useMergedRefs([
|
|
22329
|
+
refForScroll,
|
|
22330
|
+
scrollRef,
|
|
22331
|
+
setHasScrollBarAttribute,
|
|
22332
|
+
setIsScrolledAttribute
|
|
22333
|
+
]);
|
|
22365
22334
|
var initIntersectionObserver = React.useCallback(function(node) {
|
|
22366
22335
|
if (infinityScrollConfig) {
|
|
22367
22336
|
if (infinityScrollConfig.isLoading || infinityScrollConfig.activePage >= infinityScrollConfig.totalPages) {
|
|
@@ -22385,17 +22354,16 @@
|
|
|
22385
22354
|
infinityScrollConfig === null || infinityScrollConfig === void 0 ? void 0 : infinityScrollConfig.onInfinityScroll
|
|
22386
22355
|
]);
|
|
22387
22356
|
React.useEffect(function() {
|
|
22388
|
-
var scrollContainer =
|
|
22389
|
-
if (trueReactPlatformHelpers.isEmpty(scrollContainer) || !isHorizontallyScrollable
|
|
22357
|
+
var scrollContainer = scrollRef.current;
|
|
22358
|
+
if (trueReactPlatformHelpers.isEmpty(scrollContainer) || !isHorizontallyScrollable) {
|
|
22390
22359
|
return;
|
|
22391
22360
|
}
|
|
22392
22361
|
var scrollHandler = function() {
|
|
22393
|
-
|
|
22362
|
+
setIsScrolledAttribute(scrollContainer);
|
|
22394
22363
|
};
|
|
22395
22364
|
var resizeHandler = function() {
|
|
22396
|
-
|
|
22365
|
+
setHasScrollBarAttribute(scrollContainer);
|
|
22397
22366
|
};
|
|
22398
|
-
resizeHandler();
|
|
22399
22367
|
scrollContainer.addEventListener("scroll", scrollHandler);
|
|
22400
22368
|
window.addEventListener("resize", resizeHandler);
|
|
22401
22369
|
return function() {
|
|
@@ -22403,16 +22371,14 @@
|
|
|
22403
22371
|
window.removeEventListener("resize", resizeHandler);
|
|
22404
22372
|
};
|
|
22405
22373
|
}, [
|
|
22406
|
-
|
|
22374
|
+
scrollRef,
|
|
22375
|
+
setIsScrolledAttribute,
|
|
22376
|
+
setHasScrollBarAttribute
|
|
22407
22377
|
]);
|
|
22408
22378
|
var _activeRows_includes;
|
|
22409
|
-
return /* @__PURE__ */ jsx("div",
|
|
22379
|
+
return /* @__PURE__ */ jsx("div", {
|
|
22410
22380
|
ref,
|
|
22411
|
-
className: clsx(_define_property$g({}, classes.scroll, isHorizontallyScrollable))
|
|
22412
|
-
}, addDataAttributes({
|
|
22413
|
-
scrolled: isHorizontallyScrolled ? true : void 0,
|
|
22414
|
-
scrollable: isHorizontallyScrollable && hasScrollBar ? true : void 0
|
|
22415
|
-
})), {
|
|
22381
|
+
className: clsx(_define_property$g({}, classes.scroll, isHorizontallyScrollable)),
|
|
22416
22382
|
children: /* @__PURE__ */ jsxs("table", _object_spread_props$e(_object_spread$f({
|
|
22417
22383
|
className: classes.root
|
|
22418
22384
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
@@ -22498,7 +22464,7 @@
|
|
|
22498
22464
|
})
|
|
22499
22465
|
]
|
|
22500
22466
|
}))
|
|
22501
|
-
})
|
|
22467
|
+
});
|
|
22502
22468
|
}
|
|
22503
22469
|
var BUTTONS_WIDTH = 36;
|
|
22504
22470
|
var BUTTONS_GAP = 2;
|
|
@@ -29030,6 +28996,7 @@
|
|
|
29030
28996
|
exports2.useDidMountEffect = useDidMountEffect;
|
|
29031
28997
|
exports2.useDropdown = useDropdown;
|
|
29032
28998
|
exports2.useIsMounted = useIsMounted;
|
|
28999
|
+
exports2.useMergedRefs = useMergedRefs;
|
|
29033
29000
|
exports2.useMixedStyles = useMixedStyles;
|
|
29034
29001
|
exports2.useOnClickOutside = useOnClickOutside;
|
|
29035
29002
|
exports2.useOnClickOutsideWithRef = useOnClickOutsideWithRef;
|