@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { createContext, useRef, useEffect, useCallback, useState, useMemo, useContext, createElement, Fragment as Fragment$1, forwardRef, createRef, PureComponent, useLayoutEffect, memo } from "react";
|
|
2
2
|
import { createUseStyles } from "react-jss";
|
|
3
|
-
import { mergeStyles, isNotEmpty, isArrayNotEmpty, isEmpty, isString, isStringNotEmpty, addDataTestId, getTestId, isReactNodeNotEmpty, getSelectKeyHandler, createFilter, getTransition, indexMap, isNumberInteger } from "@true-engineering/true-react-platform-helpers";
|
|
3
|
+
import { mergeStyles, isNotEmpty, isArrayNotEmpty, isEmpty, isString, isStringNotEmpty, mergeRefs, addDataTestId, getTestId, isReactNodeNotEmpty, getSelectKeyHandler, createFilter, getTransition, indexMap, isNumberInteger } from "@true-engineering/true-react-platform-helpers";
|
|
4
4
|
import { CSSTransition } from "react-transition-group";
|
|
5
5
|
import clsx from "clsx";
|
|
6
6
|
import InputMask from "react-input-mask";
|
|
@@ -1981,7 +1981,7 @@ var minWidthModifier = {
|
|
|
1981
1981
|
state.elements.popper.style.minWidth = "".concat(state.elements.reference.offsetWidth, "px");
|
|
1982
1982
|
}
|
|
1983
1983
|
};
|
|
1984
|
-
function _array_like_to_array$
|
|
1984
|
+
function _array_like_to_array$q(arr, len) {
|
|
1985
1985
|
if (len == null || len > arr.length)
|
|
1986
1986
|
len = arr.length;
|
|
1987
1987
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
@@ -1990,7 +1990,7 @@ function _array_like_to_array$r(arr, len) {
|
|
|
1990
1990
|
}
|
|
1991
1991
|
function _array_without_holes$6(arr) {
|
|
1992
1992
|
if (Array.isArray(arr))
|
|
1993
|
-
return _array_like_to_array$
|
|
1993
|
+
return _array_like_to_array$q(arr);
|
|
1994
1994
|
}
|
|
1995
1995
|
function _iterable_to_array$6(iter) {
|
|
1996
1996
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
@@ -2000,20 +2000,20 @@ function _non_iterable_spread$6() {
|
|
|
2000
2000
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2001
2001
|
}
|
|
2002
2002
|
function _to_consumable_array$6(arr) {
|
|
2003
|
-
return _array_without_holes$6(arr) || _iterable_to_array$6(arr) || _unsupported_iterable_to_array$
|
|
2003
|
+
return _array_without_holes$6(arr) || _iterable_to_array$6(arr) || _unsupported_iterable_to_array$q(arr) || _non_iterable_spread$6();
|
|
2004
2004
|
}
|
|
2005
|
-
function _unsupported_iterable_to_array$
|
|
2005
|
+
function _unsupported_iterable_to_array$q(o, minLen) {
|
|
2006
2006
|
if (!o)
|
|
2007
2007
|
return;
|
|
2008
2008
|
if (typeof o === "string")
|
|
2009
|
-
return _array_like_to_array$
|
|
2009
|
+
return _array_like_to_array$q(o, minLen);
|
|
2010
2010
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2011
2011
|
if (n === "Object" && o.constructor)
|
|
2012
2012
|
n = o.constructor.name;
|
|
2013
2013
|
if (n === "Map" || n === "Set")
|
|
2014
2014
|
return Array.from(n);
|
|
2015
2015
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
2016
|
-
return _array_like_to_array$
|
|
2016
|
+
return _array_like_to_array$q(o, minLen);
|
|
2017
2017
|
}
|
|
2018
2018
|
var findCountryByCode = function(countryCode) {
|
|
2019
2019
|
var countriesList = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : phoneInfo;
|
|
@@ -2096,18 +2096,18 @@ var getPhoneMask = function(countryCode) {
|
|
|
2096
2096
|
}
|
|
2097
2097
|
return mask;
|
|
2098
2098
|
};
|
|
2099
|
-
function _array_like_to_array$
|
|
2099
|
+
function _array_like_to_array$p(arr, len) {
|
|
2100
2100
|
if (len == null || len > arr.length)
|
|
2101
2101
|
len = arr.length;
|
|
2102
2102
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
2103
2103
|
arr2[i] = arr[i];
|
|
2104
2104
|
return arr2;
|
|
2105
2105
|
}
|
|
2106
|
-
function _array_with_holes$
|
|
2106
|
+
function _array_with_holes$o(arr) {
|
|
2107
2107
|
if (Array.isArray(arr))
|
|
2108
2108
|
return arr;
|
|
2109
2109
|
}
|
|
2110
|
-
function _iterable_to_array_limit$
|
|
2110
|
+
function _iterable_to_array_limit$o(arr, i) {
|
|
2111
2111
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
2112
2112
|
if (_i == null)
|
|
2113
2113
|
return;
|
|
@@ -2135,24 +2135,24 @@ function _iterable_to_array_limit$p(arr, i) {
|
|
|
2135
2135
|
}
|
|
2136
2136
|
return _arr;
|
|
2137
2137
|
}
|
|
2138
|
-
function _non_iterable_rest$
|
|
2138
|
+
function _non_iterable_rest$o() {
|
|
2139
2139
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2140
2140
|
}
|
|
2141
|
-
function _sliced_to_array$
|
|
2142
|
-
return _array_with_holes$
|
|
2141
|
+
function _sliced_to_array$o(arr, i) {
|
|
2142
|
+
return _array_with_holes$o(arr) || _iterable_to_array_limit$o(arr, i) || _unsupported_iterable_to_array$p(arr, i) || _non_iterable_rest$o();
|
|
2143
2143
|
}
|
|
2144
|
-
function _unsupported_iterable_to_array$
|
|
2144
|
+
function _unsupported_iterable_to_array$p(o, minLen) {
|
|
2145
2145
|
if (!o)
|
|
2146
2146
|
return;
|
|
2147
2147
|
if (typeof o === "string")
|
|
2148
|
-
return _array_like_to_array$
|
|
2148
|
+
return _array_like_to_array$p(o, minLen);
|
|
2149
2149
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2150
2150
|
if (n === "Object" && o.constructor)
|
|
2151
2151
|
n = o.constructor.name;
|
|
2152
2152
|
if (n === "Map" || n === "Set")
|
|
2153
2153
|
return Array.from(n);
|
|
2154
2154
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
2155
|
-
return _array_like_to_array$
|
|
2155
|
+
return _array_like_to_array$p(o, minLen);
|
|
2156
2156
|
}
|
|
2157
2157
|
var rgba = hexToRgba;
|
|
2158
2158
|
var transformToKebab = function(string) {
|
|
@@ -2275,7 +2275,7 @@ var trimStringToMaxLength = function(val, maxLength) {
|
|
|
2275
2275
|
var addDataAttributes = function() {
|
|
2276
2276
|
var data = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2277
2277
|
return Object.fromEntries(Object.entries(data).map(function(param) {
|
|
2278
|
-
var _param = _sliced_to_array$
|
|
2278
|
+
var _param = _sliced_to_array$o(param, 2), key = _param[0], value = _param[1];
|
|
2279
2279
|
return isString(value) && isStringNotEmpty(value) || isNotEmpty(value) ? [
|
|
2280
2280
|
"data-".concat(transformToKebab(key)),
|
|
2281
2281
|
value
|
|
@@ -3940,7 +3940,7 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
3940
3940
|
}, [enabled, referenceElement, popperElement]);
|
|
3941
3941
|
return popperState;
|
|
3942
3942
|
}
|
|
3943
|
-
function _array_like_to_array$
|
|
3943
|
+
function _array_like_to_array$o(arr, len) {
|
|
3944
3944
|
if (len == null || len > arr.length)
|
|
3945
3945
|
len = arr.length;
|
|
3946
3946
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
@@ -3949,7 +3949,7 @@ function _array_like_to_array$p(arr, len) {
|
|
|
3949
3949
|
}
|
|
3950
3950
|
function _array_without_holes$5(arr) {
|
|
3951
3951
|
if (Array.isArray(arr))
|
|
3952
|
-
return _array_like_to_array$
|
|
3952
|
+
return _array_like_to_array$o(arr);
|
|
3953
3953
|
}
|
|
3954
3954
|
function _define_property$T(obj, key, value) {
|
|
3955
3955
|
if (key in obj) {
|
|
@@ -3987,20 +3987,20 @@ function _object_spread$R(target) {
|
|
|
3987
3987
|
return target;
|
|
3988
3988
|
}
|
|
3989
3989
|
function _to_consumable_array$5(arr) {
|
|
3990
|
-
return _array_without_holes$5(arr) || _iterable_to_array$5(arr) || _unsupported_iterable_to_array$
|
|
3990
|
+
return _array_without_holes$5(arr) || _iterable_to_array$5(arr) || _unsupported_iterable_to_array$o(arr) || _non_iterable_spread$5();
|
|
3991
3991
|
}
|
|
3992
|
-
function _unsupported_iterable_to_array$
|
|
3992
|
+
function _unsupported_iterable_to_array$o(o, minLen) {
|
|
3993
3993
|
if (!o)
|
|
3994
3994
|
return;
|
|
3995
3995
|
if (typeof o === "string")
|
|
3996
|
-
return _array_like_to_array$
|
|
3996
|
+
return _array_like_to_array$o(o, minLen);
|
|
3997
3997
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3998
3998
|
if (n === "Object" && o.constructor)
|
|
3999
3999
|
n = o.constructor.name;
|
|
4000
4000
|
if (n === "Map" || n === "Set")
|
|
4001
4001
|
return Array.from(n);
|
|
4002
4002
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
4003
|
-
return _array_like_to_array$
|
|
4003
|
+
return _array_like_to_array$o(o, minLen);
|
|
4004
4004
|
}
|
|
4005
4005
|
var useDropdown = function(param) {
|
|
4006
4006
|
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;
|
|
@@ -4106,6 +4106,11 @@ var useMixedStyles = function(baseStyles, tweakStyles) {
|
|
|
4106
4106
|
tweakStyles
|
|
4107
4107
|
]);
|
|
4108
4108
|
};
|
|
4109
|
+
var useMergedRefs = function(refs) {
|
|
4110
|
+
return useMemo(function() {
|
|
4111
|
+
return mergeRefs(refs);
|
|
4112
|
+
}, refs);
|
|
4113
|
+
};
|
|
4109
4114
|
const avatarGreen = ` <svg\r
|
|
4110
4115
|
width="100%"\r
|
|
4111
4116
|
height="100%"\r
|
|
@@ -5420,14 +5425,14 @@ var useStyles$K = createThemedStyles("AccountInfo", _object_spread$M({
|
|
|
5420
5425
|
height: 32
|
|
5421
5426
|
}
|
|
5422
5427
|
}, animations.slideUp));
|
|
5423
|
-
function _array_like_to_array$
|
|
5428
|
+
function _array_like_to_array$n(arr, len) {
|
|
5424
5429
|
if (len == null || len > arr.length)
|
|
5425
5430
|
len = arr.length;
|
|
5426
5431
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
5427
5432
|
arr2[i] = arr[i];
|
|
5428
5433
|
return arr2;
|
|
5429
5434
|
}
|
|
5430
|
-
function _array_with_holes$
|
|
5435
|
+
function _array_with_holes$n(arr) {
|
|
5431
5436
|
if (Array.isArray(arr))
|
|
5432
5437
|
return arr;
|
|
5433
5438
|
}
|
|
@@ -5444,7 +5449,7 @@ function _define_property$N(obj, key, value) {
|
|
|
5444
5449
|
}
|
|
5445
5450
|
return obj;
|
|
5446
5451
|
}
|
|
5447
|
-
function _iterable_to_array_limit$
|
|
5452
|
+
function _iterable_to_array_limit$n(arr, i) {
|
|
5448
5453
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
5449
5454
|
if (_i == null)
|
|
5450
5455
|
return;
|
|
@@ -5472,7 +5477,7 @@ function _iterable_to_array_limit$o(arr, i) {
|
|
|
5472
5477
|
}
|
|
5473
5478
|
return _arr;
|
|
5474
5479
|
}
|
|
5475
|
-
function _non_iterable_rest$
|
|
5480
|
+
function _non_iterable_rest$n() {
|
|
5476
5481
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
5477
5482
|
}
|
|
5478
5483
|
function _object_spread$L(target) {
|
|
@@ -5514,21 +5519,21 @@ function _object_spread_props$D(target, source) {
|
|
|
5514
5519
|
}
|
|
5515
5520
|
return target;
|
|
5516
5521
|
}
|
|
5517
|
-
function _sliced_to_array$
|
|
5518
|
-
return _array_with_holes$
|
|
5522
|
+
function _sliced_to_array$n(arr, i) {
|
|
5523
|
+
return _array_with_holes$n(arr) || _iterable_to_array_limit$n(arr, i) || _unsupported_iterable_to_array$n(arr, i) || _non_iterable_rest$n();
|
|
5519
5524
|
}
|
|
5520
|
-
function _unsupported_iterable_to_array$
|
|
5525
|
+
function _unsupported_iterable_to_array$n(o, minLen) {
|
|
5521
5526
|
if (!o)
|
|
5522
5527
|
return;
|
|
5523
5528
|
if (typeof o === "string")
|
|
5524
|
-
return _array_like_to_array$
|
|
5529
|
+
return _array_like_to_array$n(o, minLen);
|
|
5525
5530
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
5526
5531
|
if (n === "Object" && o.constructor)
|
|
5527
5532
|
n = o.constructor.name;
|
|
5528
5533
|
if (n === "Map" || n === "Set")
|
|
5529
5534
|
return Array.from(n);
|
|
5530
5535
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
5531
|
-
return _array_like_to_array$
|
|
5536
|
+
return _array_like_to_array$n(o, minLen);
|
|
5532
5537
|
}
|
|
5533
5538
|
var AccountInfo = function(param) {
|
|
5534
5539
|
var data = param.data, testId = param.testId, avatar = param.avatar, tweakStyles = param.tweakStyles, accountName = param.accountName, options = param.options;
|
|
@@ -5542,7 +5547,7 @@ var AccountInfo = function(param) {
|
|
|
5542
5547
|
});
|
|
5543
5548
|
var nameRef = useRef(null);
|
|
5544
5549
|
var dropdownRef = useRef(null);
|
|
5545
|
-
var _useState = _sliced_to_array$
|
|
5550
|
+
var _useState = _sliced_to_array$n(useState(false), 2), isMenuOpen = _useState[0], setIsMenuOpen = _useState[1];
|
|
5546
5551
|
var toggleMenu = function(event) {
|
|
5547
5552
|
event.stopPropagation();
|
|
5548
5553
|
setIsMenuOpen(function(v) {
|
|
@@ -6238,14 +6243,14 @@ var useStyles$E = createThemedStyles("Checkbox", {
|
|
|
6238
6243
|
flexDirection: "row-reverse"
|
|
6239
6244
|
}
|
|
6240
6245
|
});
|
|
6241
|
-
function _array_like_to_array$
|
|
6246
|
+
function _array_like_to_array$m(arr, len) {
|
|
6242
6247
|
if (len == null || len > arr.length)
|
|
6243
6248
|
len = arr.length;
|
|
6244
6249
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
6245
6250
|
arr2[i] = arr[i];
|
|
6246
6251
|
return arr2;
|
|
6247
6252
|
}
|
|
6248
|
-
function _array_with_holes$
|
|
6253
|
+
function _array_with_holes$m(arr) {
|
|
6249
6254
|
if (Array.isArray(arr))
|
|
6250
6255
|
return arr;
|
|
6251
6256
|
}
|
|
@@ -6262,7 +6267,7 @@ function _define_property$J(obj, key, value) {
|
|
|
6262
6267
|
}
|
|
6263
6268
|
return obj;
|
|
6264
6269
|
}
|
|
6265
|
-
function _iterable_to_array_limit$
|
|
6270
|
+
function _iterable_to_array_limit$m(arr, i) {
|
|
6266
6271
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
6267
6272
|
if (_i == null)
|
|
6268
6273
|
return;
|
|
@@ -6290,7 +6295,7 @@ function _iterable_to_array_limit$n(arr, i) {
|
|
|
6290
6295
|
}
|
|
6291
6296
|
return _arr;
|
|
6292
6297
|
}
|
|
6293
|
-
function _non_iterable_rest$
|
|
6298
|
+
function _non_iterable_rest$m() {
|
|
6294
6299
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6295
6300
|
}
|
|
6296
6301
|
function _object_spread$H(target) {
|
|
@@ -6332,28 +6337,28 @@ function _object_spread_props$z(target, source) {
|
|
|
6332
6337
|
}
|
|
6333
6338
|
return target;
|
|
6334
6339
|
}
|
|
6335
|
-
function _sliced_to_array$
|
|
6336
|
-
return _array_with_holes$
|
|
6340
|
+
function _sliced_to_array$m(arr, i) {
|
|
6341
|
+
return _array_with_holes$m(arr) || _iterable_to_array_limit$m(arr, i) || _unsupported_iterable_to_array$m(arr, i) || _non_iterable_rest$m();
|
|
6337
6342
|
}
|
|
6338
|
-
function _unsupported_iterable_to_array$
|
|
6343
|
+
function _unsupported_iterable_to_array$m(o, minLen) {
|
|
6339
6344
|
if (!o)
|
|
6340
6345
|
return;
|
|
6341
6346
|
if (typeof o === "string")
|
|
6342
|
-
return _array_like_to_array$
|
|
6347
|
+
return _array_like_to_array$m(o, minLen);
|
|
6343
6348
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6344
6349
|
if (n === "Object" && o.constructor)
|
|
6345
6350
|
n = o.constructor.name;
|
|
6346
6351
|
if (n === "Map" || n === "Set")
|
|
6347
6352
|
return Array.from(n);
|
|
6348
6353
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
6349
|
-
return _array_like_to_array$
|
|
6354
|
+
return _array_like_to_array$m(o, minLen);
|
|
6350
6355
|
}
|
|
6351
6356
|
function Checkbox(param) {
|
|
6352
6357
|
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;
|
|
6353
6358
|
var classes = useStyles$E({
|
|
6354
6359
|
theme: tweakStyles
|
|
6355
6360
|
});
|
|
6356
|
-
var _useState = _sliced_to_array$
|
|
6361
|
+
var _useState = _sliced_to_array$m(useState(false), 2), isSelected = _useState[0], setIsSelected = _useState[1];
|
|
6357
6362
|
var hasAction = !isDisabled && !isReadonly;
|
|
6358
6363
|
var onToggle = function() {
|
|
6359
6364
|
var newValue = !isSelected;
|
|
@@ -6522,18 +6527,18 @@ var useStyles$C = createThemedStyles({
|
|
|
6522
6527
|
]
|
|
6523
6528
|
}
|
|
6524
6529
|
});
|
|
6525
|
-
function _array_like_to_array$
|
|
6530
|
+
function _array_like_to_array$l(arr, len) {
|
|
6526
6531
|
if (len == null || len > arr.length)
|
|
6527
6532
|
len = arr.length;
|
|
6528
6533
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
6529
6534
|
arr2[i] = arr[i];
|
|
6530
6535
|
return arr2;
|
|
6531
6536
|
}
|
|
6532
|
-
function _array_with_holes$
|
|
6537
|
+
function _array_with_holes$l(arr) {
|
|
6533
6538
|
if (Array.isArray(arr))
|
|
6534
6539
|
return arr;
|
|
6535
6540
|
}
|
|
6536
|
-
function _iterable_to_array_limit$
|
|
6541
|
+
function _iterable_to_array_limit$l(arr, i) {
|
|
6537
6542
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
6538
6543
|
if (_i == null)
|
|
6539
6544
|
return;
|
|
@@ -6561,24 +6566,24 @@ function _iterable_to_array_limit$m(arr, i) {
|
|
|
6561
6566
|
}
|
|
6562
6567
|
return _arr;
|
|
6563
6568
|
}
|
|
6564
|
-
function _non_iterable_rest$
|
|
6569
|
+
function _non_iterable_rest$l() {
|
|
6565
6570
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6566
6571
|
}
|
|
6567
|
-
function _sliced_to_array$
|
|
6568
|
-
return _array_with_holes$
|
|
6572
|
+
function _sliced_to_array$l(arr, i) {
|
|
6573
|
+
return _array_with_holes$l(arr) || _iterable_to_array_limit$l(arr, i) || _unsupported_iterable_to_array$l(arr, i) || _non_iterable_rest$l();
|
|
6569
6574
|
}
|
|
6570
|
-
function _unsupported_iterable_to_array$
|
|
6575
|
+
function _unsupported_iterable_to_array$l(o, minLen) {
|
|
6571
6576
|
if (!o)
|
|
6572
6577
|
return;
|
|
6573
6578
|
if (typeof o === "string")
|
|
6574
|
-
return _array_like_to_array$
|
|
6579
|
+
return _array_like_to_array$l(o, minLen);
|
|
6575
6580
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6576
6581
|
if (n === "Object" && o.constructor)
|
|
6577
6582
|
n = o.constructor.name;
|
|
6578
6583
|
if (n === "Map" || n === "Set")
|
|
6579
6584
|
return Array.from(n);
|
|
6580
6585
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
6581
|
-
return _array_like_to_array$
|
|
6586
|
+
return _array_like_to_array$l(o, minLen);
|
|
6582
6587
|
}
|
|
6583
6588
|
var Colors = function() {
|
|
6584
6589
|
var classes = useStyles$C();
|
|
@@ -6587,7 +6592,7 @@ var Colors = function() {
|
|
|
6587
6592
|
return /* @__PURE__ */ jsx("div", {
|
|
6588
6593
|
className: classes.root,
|
|
6589
6594
|
children: Object.entries(colors2).map(function(param) {
|
|
6590
|
-
var _param = _sliced_to_array$
|
|
6595
|
+
var _param = _sliced_to_array$l(param, 2), colorName = _param[0], color = _param[1];
|
|
6591
6596
|
var name = colorName.split("_").join(" ").toLowerCase();
|
|
6592
6597
|
return /* @__PURE__ */ jsxs("div", {
|
|
6593
6598
|
className: classes.colorCard,
|
|
@@ -6933,14 +6938,14 @@ var useStyles$A = createThemedStyles("Input", {
|
|
|
6933
6938
|
loading: {},
|
|
6934
6939
|
withUnits: {}
|
|
6935
6940
|
});
|
|
6936
|
-
function _array_like_to_array$
|
|
6941
|
+
function _array_like_to_array$k(arr, len) {
|
|
6937
6942
|
if (len == null || len > arr.length)
|
|
6938
6943
|
len = arr.length;
|
|
6939
6944
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
6940
6945
|
arr2[i] = arr[i];
|
|
6941
6946
|
return arr2;
|
|
6942
6947
|
}
|
|
6943
|
-
function _array_with_holes$
|
|
6948
|
+
function _array_with_holes$k(arr) {
|
|
6944
6949
|
if (Array.isArray(arr))
|
|
6945
6950
|
return arr;
|
|
6946
6951
|
}
|
|
@@ -6986,7 +6991,7 @@ function _define_property$G(obj, key, value) {
|
|
|
6986
6991
|
}
|
|
6987
6992
|
return obj;
|
|
6988
6993
|
}
|
|
6989
|
-
function _iterable_to_array_limit$
|
|
6994
|
+
function _iterable_to_array_limit$k(arr, i) {
|
|
6990
6995
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
6991
6996
|
if (_i == null)
|
|
6992
6997
|
return;
|
|
@@ -7014,7 +7019,7 @@ function _iterable_to_array_limit$l(arr, i) {
|
|
|
7014
7019
|
}
|
|
7015
7020
|
return _arr;
|
|
7016
7021
|
}
|
|
7017
|
-
function _non_iterable_rest$
|
|
7022
|
+
function _non_iterable_rest$k() {
|
|
7018
7023
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7019
7024
|
}
|
|
7020
7025
|
function _object_spread$E(target) {
|
|
@@ -7056,21 +7061,21 @@ function _object_spread_props$x(target, source) {
|
|
|
7056
7061
|
}
|
|
7057
7062
|
return target;
|
|
7058
7063
|
}
|
|
7059
|
-
function _sliced_to_array$
|
|
7060
|
-
return _array_with_holes$
|
|
7064
|
+
function _sliced_to_array$k(arr, i) {
|
|
7065
|
+
return _array_with_holes$k(arr) || _iterable_to_array_limit$k(arr, i) || _unsupported_iterable_to_array$k(arr, i) || _non_iterable_rest$k();
|
|
7061
7066
|
}
|
|
7062
|
-
function _unsupported_iterable_to_array$
|
|
7067
|
+
function _unsupported_iterable_to_array$k(o, minLen) {
|
|
7063
7068
|
if (!o)
|
|
7064
7069
|
return;
|
|
7065
7070
|
if (typeof o === "string")
|
|
7066
|
-
return _array_like_to_array$
|
|
7071
|
+
return _array_like_to_array$k(o, minLen);
|
|
7067
7072
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
7068
7073
|
if (n === "Object" && o.constructor)
|
|
7069
7074
|
n = o.constructor.name;
|
|
7070
7075
|
if (n === "Map" || n === "Set")
|
|
7071
7076
|
return Array.from(n);
|
|
7072
7077
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
7073
|
-
return _array_like_to_array$
|
|
7078
|
+
return _array_like_to_array$k(o, minLen);
|
|
7074
7079
|
}
|
|
7075
7080
|
var __generator$5 = globalThis && globalThis.__generator || function(thisArg, body) {
|
|
7076
7081
|
var f, y, t, g, _ = {
|
|
@@ -7184,7 +7189,7 @@ var Input = /* @__PURE__ */ forwardRef(function(param, ref) {
|
|
|
7184
7189
|
className: "tweakPreloader",
|
|
7185
7190
|
currentComponentName: "Input"
|
|
7186
7191
|
});
|
|
7187
|
-
var _useState = _sliced_to_array$
|
|
7192
|
+
var _useState = _sliced_to_array$k(useState(false), 2), isFocused = _useState[0], setFocused = _useState[1];
|
|
7188
7193
|
var inputRef = useRef(null);
|
|
7189
7194
|
var handleChange = function(event) {
|
|
7190
7195
|
onChange(event.currentTarget.value, event);
|
|
@@ -8315,20 +8320,20 @@ var searchInputStyles$3 = {
|
|
|
8315
8320
|
}
|
|
8316
8321
|
}
|
|
8317
8322
|
};
|
|
8318
|
-
function _array_like_to_array$
|
|
8323
|
+
function _array_like_to_array$j(arr, len) {
|
|
8319
8324
|
if (len == null || len > arr.length)
|
|
8320
8325
|
len = arr.length;
|
|
8321
8326
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
8322
8327
|
arr2[i] = arr[i];
|
|
8323
8328
|
return arr2;
|
|
8324
8329
|
}
|
|
8325
|
-
function _array_with_holes$
|
|
8330
|
+
function _array_with_holes$j(arr) {
|
|
8326
8331
|
if (Array.isArray(arr))
|
|
8327
8332
|
return arr;
|
|
8328
8333
|
}
|
|
8329
8334
|
function _array_without_holes$4(arr) {
|
|
8330
8335
|
if (Array.isArray(arr))
|
|
8331
|
-
return _array_like_to_array$
|
|
8336
|
+
return _array_like_to_array$j(arr);
|
|
8332
8337
|
}
|
|
8333
8338
|
function asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, key, arg) {
|
|
8334
8339
|
try {
|
|
@@ -8376,7 +8381,7 @@ function _iterable_to_array$4(iter) {
|
|
|
8376
8381
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
8377
8382
|
return Array.from(iter);
|
|
8378
8383
|
}
|
|
8379
|
-
function _iterable_to_array_limit$
|
|
8384
|
+
function _iterable_to_array_limit$j(arr, i) {
|
|
8380
8385
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
8381
8386
|
if (_i == null)
|
|
8382
8387
|
return;
|
|
@@ -8404,7 +8409,7 @@ function _iterable_to_array_limit$k(arr, i) {
|
|
|
8404
8409
|
}
|
|
8405
8410
|
return _arr;
|
|
8406
8411
|
}
|
|
8407
|
-
function _non_iterable_rest$
|
|
8412
|
+
function _non_iterable_rest$j() {
|
|
8408
8413
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8409
8414
|
}
|
|
8410
8415
|
function _non_iterable_spread$4() {
|
|
@@ -8481,24 +8486,24 @@ function _object_without_properties_loose$6(source, excluded) {
|
|
|
8481
8486
|
}
|
|
8482
8487
|
return target;
|
|
8483
8488
|
}
|
|
8484
|
-
function _sliced_to_array$
|
|
8485
|
-
return _array_with_holes$
|
|
8489
|
+
function _sliced_to_array$j(arr, i) {
|
|
8490
|
+
return _array_with_holes$j(arr) || _iterable_to_array_limit$j(arr, i) || _unsupported_iterable_to_array$j(arr, i) || _non_iterable_rest$j();
|
|
8486
8491
|
}
|
|
8487
8492
|
function _to_consumable_array$4(arr) {
|
|
8488
|
-
return _array_without_holes$4(arr) || _iterable_to_array$4(arr) || _unsupported_iterable_to_array$
|
|
8493
|
+
return _array_without_holes$4(arr) || _iterable_to_array$4(arr) || _unsupported_iterable_to_array$j(arr) || _non_iterable_spread$4();
|
|
8489
8494
|
}
|
|
8490
|
-
function _unsupported_iterable_to_array$
|
|
8495
|
+
function _unsupported_iterable_to_array$j(o, minLen) {
|
|
8491
8496
|
if (!o)
|
|
8492
8497
|
return;
|
|
8493
8498
|
if (typeof o === "string")
|
|
8494
|
-
return _array_like_to_array$
|
|
8499
|
+
return _array_like_to_array$j(o, minLen);
|
|
8495
8500
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
8496
8501
|
if (n === "Object" && o.constructor)
|
|
8497
8502
|
n = o.constructor.name;
|
|
8498
8503
|
if (n === "Map" || n === "Set")
|
|
8499
8504
|
return Array.from(n);
|
|
8500
8505
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
8501
|
-
return _array_like_to_array$
|
|
8506
|
+
return _array_like_to_array$j(o, minLen);
|
|
8502
8507
|
}
|
|
8503
8508
|
var __generator$4 = globalThis && globalThis.__generator || function(thisArg, body) {
|
|
8504
8509
|
var f, y, t, g, _ = {
|
|
@@ -8662,12 +8667,12 @@ function Select(props) {
|
|
|
8662
8667
|
currentComponentName: "Select"
|
|
8663
8668
|
});
|
|
8664
8669
|
var isMounted = useIsMounted();
|
|
8665
|
-
var _useState = _sliced_to_array$
|
|
8666
|
-
var _useState1 = _sliced_to_array$
|
|
8670
|
+
var _useState = _sliced_to_array$j(useState(false), 2), isListOpen = _useState[0], setIsListOpen = _useState[1];
|
|
8671
|
+
var _useState1 = _sliced_to_array$j(useState(false), 2), areOptionsLoading = _useState1[0], setAreOptionsLoading = _useState1[1];
|
|
8667
8672
|
var hasDefaultOption = isStringNotEmpty(defaultOptionLabel);
|
|
8668
|
-
var _useState2 = _sliced_to_array$
|
|
8669
|
-
var _useState3 = _sliced_to_array$
|
|
8670
|
-
var _useState4 = _sliced_to_array$
|
|
8673
|
+
var _useState2 = _sliced_to_array$j(useState(DEFAULT_OPTION_INDEX), 2), focusedListCellIndex = _useState2[0], setFocusedListCellIndex = _useState2[1];
|
|
8674
|
+
var _useState3 = _sliced_to_array$j(useState(""), 2), searchValue = _useState3[0], setSearchValue = _useState3[1];
|
|
8675
|
+
var _useState4 = _sliced_to_array$j(useState(true), 2), shouldShowDefaultOption = _useState4[0], setShouldShowDefaultOption = _useState4[1];
|
|
8671
8676
|
var inputWrapper = useRef(null);
|
|
8672
8677
|
var list = useRef(null);
|
|
8673
8678
|
var input = useRef(null);
|
|
@@ -9257,14 +9262,14 @@ var useStyles$u = createThemedStyles("DatePicker", {
|
|
|
9257
9262
|
}
|
|
9258
9263
|
}
|
|
9259
9264
|
});
|
|
9260
|
-
function _array_like_to_array$
|
|
9265
|
+
function _array_like_to_array$i(arr, len) {
|
|
9261
9266
|
if (len == null || len > arr.length)
|
|
9262
9267
|
len = arr.length;
|
|
9263
9268
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
9264
9269
|
arr2[i] = arr[i];
|
|
9265
9270
|
return arr2;
|
|
9266
9271
|
}
|
|
9267
|
-
function _array_with_holes$
|
|
9272
|
+
function _array_with_holes$i(arr) {
|
|
9268
9273
|
if (Array.isArray(arr))
|
|
9269
9274
|
return arr;
|
|
9270
9275
|
}
|
|
@@ -9281,7 +9286,7 @@ function _define_property$y(obj, key, value) {
|
|
|
9281
9286
|
}
|
|
9282
9287
|
return obj;
|
|
9283
9288
|
}
|
|
9284
|
-
function _iterable_to_array_limit$
|
|
9289
|
+
function _iterable_to_array_limit$i(arr, i) {
|
|
9285
9290
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
9286
9291
|
if (_i == null)
|
|
9287
9292
|
return;
|
|
@@ -9309,7 +9314,7 @@ function _iterable_to_array_limit$j(arr, i) {
|
|
|
9309
9314
|
}
|
|
9310
9315
|
return _arr;
|
|
9311
9316
|
}
|
|
9312
|
-
function _non_iterable_rest$
|
|
9317
|
+
function _non_iterable_rest$i() {
|
|
9313
9318
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9314
9319
|
}
|
|
9315
9320
|
function _object_spread$w(target) {
|
|
@@ -9383,21 +9388,21 @@ function _object_without_properties_loose$5(source, excluded) {
|
|
|
9383
9388
|
}
|
|
9384
9389
|
return target;
|
|
9385
9390
|
}
|
|
9386
|
-
function _sliced_to_array$
|
|
9387
|
-
return _array_with_holes$
|
|
9391
|
+
function _sliced_to_array$i(arr, i) {
|
|
9392
|
+
return _array_with_holes$i(arr) || _iterable_to_array_limit$i(arr, i) || _unsupported_iterable_to_array$i(arr, i) || _non_iterable_rest$i();
|
|
9388
9393
|
}
|
|
9389
|
-
function _unsupported_iterable_to_array$
|
|
9394
|
+
function _unsupported_iterable_to_array$i(o, minLen) {
|
|
9390
9395
|
if (!o)
|
|
9391
9396
|
return;
|
|
9392
9397
|
if (typeof o === "string")
|
|
9393
|
-
return _array_like_to_array$
|
|
9398
|
+
return _array_like_to_array$i(o, minLen);
|
|
9394
9399
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
9395
9400
|
if (n === "Object" && o.constructor)
|
|
9396
9401
|
n = o.constructor.name;
|
|
9397
9402
|
if (n === "Map" || n === "Set")
|
|
9398
9403
|
return Array.from(n);
|
|
9399
9404
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
9400
|
-
return _array_like_to_array$
|
|
9405
|
+
return _array_like_to_array$i(o, minLen);
|
|
9401
9406
|
}
|
|
9402
9407
|
var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
9403
9408
|
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, [
|
|
@@ -9461,12 +9466,12 @@ var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
9461
9466
|
}, [
|
|
9462
9467
|
dateFormat
|
|
9463
9468
|
]), formatDate = _useMemo.formatDate, parseDateValue = _useMemo.parseDateValue;
|
|
9464
|
-
var _useState = _sliced_to_array$
|
|
9465
|
-
var _useState1 = _sliced_to_array$
|
|
9466
|
-
var _useState2 = _sliced_to_array$
|
|
9467
|
-
var _useState3 = _sliced_to_array$
|
|
9468
|
-
var _useState4 = _sliced_to_array$
|
|
9469
|
-
var _useState5 = _sliced_to_array$
|
|
9469
|
+
var _useState = _sliced_to_array$i(useState(false), 2), isOpen = _useState[0], setIsOpen = _useState[1];
|
|
9470
|
+
var _useState1 = _sliced_to_array$i(useState(formatDate(selectedDate)), 2), dateValue = _useState1[0], setDateValue = _useState1[1];
|
|
9471
|
+
var _useState2 = _sliced_to_array$i(useState(startDate), 2), start2 = _useState2[0], setStart = _useState2[1];
|
|
9472
|
+
var _useState3 = _sliced_to_array$i(useState(formatDate(startDate)), 2), startDateValue = _useState3[0], setStartDateValue = _useState3[1];
|
|
9473
|
+
var _useState4 = _sliced_to_array$i(useState(endDate), 2), end2 = _useState4[0], setEnd = _useState4[1];
|
|
9474
|
+
var _useState5 = _sliced_to_array$i(useState(formatDate(endDate)), 2), endDateValue = _useState5[0], setEndDateValue = _useState5[1];
|
|
9470
9475
|
var hasDateInputValue = isRange ? isStringNotEmpty(startDateValue) || isStringNotEmpty(endDateValue) : isStringNotEmpty(dateValue);
|
|
9471
9476
|
var dateInputProps = _object_spread$w(_object_spread_props$r(_object_spread$w({}, inputProps), {
|
|
9472
9477
|
isRange,
|
|
@@ -9667,14 +9672,14 @@ var useStyles$t = createThemedStyles("Description", {
|
|
|
9667
9672
|
}
|
|
9668
9673
|
}
|
|
9669
9674
|
});
|
|
9670
|
-
function _array_like_to_array$
|
|
9675
|
+
function _array_like_to_array$h(arr, len) {
|
|
9671
9676
|
if (len == null || len > arr.length)
|
|
9672
9677
|
len = arr.length;
|
|
9673
9678
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
9674
9679
|
arr2[i] = arr[i];
|
|
9675
9680
|
return arr2;
|
|
9676
9681
|
}
|
|
9677
|
-
function _array_with_holes$
|
|
9682
|
+
function _array_with_holes$h(arr) {
|
|
9678
9683
|
if (Array.isArray(arr))
|
|
9679
9684
|
return arr;
|
|
9680
9685
|
}
|
|
@@ -9691,7 +9696,7 @@ function _define_property$x(obj, key, value) {
|
|
|
9691
9696
|
}
|
|
9692
9697
|
return obj;
|
|
9693
9698
|
}
|
|
9694
|
-
function _iterable_to_array_limit$
|
|
9699
|
+
function _iterable_to_array_limit$h(arr, i) {
|
|
9695
9700
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
9696
9701
|
if (_i == null)
|
|
9697
9702
|
return;
|
|
@@ -9719,7 +9724,7 @@ function _iterable_to_array_limit$i(arr, i) {
|
|
|
9719
9724
|
}
|
|
9720
9725
|
return _arr;
|
|
9721
9726
|
}
|
|
9722
|
-
function _non_iterable_rest$
|
|
9727
|
+
function _non_iterable_rest$h() {
|
|
9723
9728
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9724
9729
|
}
|
|
9725
9730
|
function _object_spread$v(target) {
|
|
@@ -9761,21 +9766,21 @@ function _object_spread_props$q(target, source) {
|
|
|
9761
9766
|
}
|
|
9762
9767
|
return target;
|
|
9763
9768
|
}
|
|
9764
|
-
function _sliced_to_array$
|
|
9765
|
-
return _array_with_holes$
|
|
9769
|
+
function _sliced_to_array$h(arr, i) {
|
|
9770
|
+
return _array_with_holes$h(arr) || _iterable_to_array_limit$h(arr, i) || _unsupported_iterable_to_array$h(arr, i) || _non_iterable_rest$h();
|
|
9766
9771
|
}
|
|
9767
|
-
function _unsupported_iterable_to_array$
|
|
9772
|
+
function _unsupported_iterable_to_array$h(o, minLen) {
|
|
9768
9773
|
if (!o)
|
|
9769
9774
|
return;
|
|
9770
9775
|
if (typeof o === "string")
|
|
9771
|
-
return _array_like_to_array$
|
|
9776
|
+
return _array_like_to_array$h(o, minLen);
|
|
9772
9777
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
9773
9778
|
if (n === "Object" && o.constructor)
|
|
9774
9779
|
n = o.constructor.name;
|
|
9775
9780
|
if (n === "Map" || n === "Set")
|
|
9776
9781
|
return Array.from(n);
|
|
9777
9782
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
9778
|
-
return _array_like_to_array$
|
|
9783
|
+
return _array_like_to_array$h(o, minLen);
|
|
9779
9784
|
}
|
|
9780
9785
|
var Description = function(param) {
|
|
9781
9786
|
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;
|
|
@@ -9783,7 +9788,7 @@ var Description = function(param) {
|
|
|
9783
9788
|
theme: tweakStyles
|
|
9784
9789
|
});
|
|
9785
9790
|
var isTooShort = text.length < truncateIndex;
|
|
9786
|
-
var _useState = _sliced_to_array$
|
|
9791
|
+
var _useState = _sliced_to_array$h(useState(isAlwaysOpen), 2), isOpen = _useState[0], setIsOpen = _useState[1];
|
|
9787
9792
|
var link = text.match(LINK_REGEXP);
|
|
9788
9793
|
var linkText = link && link[0];
|
|
9789
9794
|
var textWithNoLink = text.replace(LINK_REGEXP, "");
|
|
@@ -9995,14 +10000,14 @@ var constructRegExp = function(param) {
|
|
|
9995
10000
|
var negativePart = "(\\-)?";
|
|
9996
10001
|
return "^".concat(canBeNegative ? negativePart : "").concat(basePart).concat(canBeFloat ? floatPart : "", "$");
|
|
9997
10002
|
};
|
|
9998
|
-
function _array_like_to_array$
|
|
10003
|
+
function _array_like_to_array$g(arr, len) {
|
|
9999
10004
|
if (len == null || len > arr.length)
|
|
10000
10005
|
len = arr.length;
|
|
10001
10006
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
10002
10007
|
arr2[i] = arr[i];
|
|
10003
10008
|
return arr2;
|
|
10004
10009
|
}
|
|
10005
|
-
function _array_with_holes$
|
|
10010
|
+
function _array_with_holes$g(arr) {
|
|
10006
10011
|
if (Array.isArray(arr))
|
|
10007
10012
|
return arr;
|
|
10008
10013
|
}
|
|
@@ -10048,7 +10053,7 @@ function _define_property$w(obj, key, value) {
|
|
|
10048
10053
|
}
|
|
10049
10054
|
return obj;
|
|
10050
10055
|
}
|
|
10051
|
-
function _iterable_to_array_limit$
|
|
10056
|
+
function _iterable_to_array_limit$g(arr, i) {
|
|
10052
10057
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
10053
10058
|
if (_i == null)
|
|
10054
10059
|
return;
|
|
@@ -10076,7 +10081,7 @@ function _iterable_to_array_limit$h(arr, i) {
|
|
|
10076
10081
|
}
|
|
10077
10082
|
return _arr;
|
|
10078
10083
|
}
|
|
10079
|
-
function _non_iterable_rest$
|
|
10084
|
+
function _non_iterable_rest$g() {
|
|
10080
10085
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10081
10086
|
}
|
|
10082
10087
|
function _object_spread$u(target) {
|
|
@@ -10126,21 +10131,21 @@ function _object_without_properties_loose$4(source, excluded) {
|
|
|
10126
10131
|
}
|
|
10127
10132
|
return target;
|
|
10128
10133
|
}
|
|
10129
|
-
function _sliced_to_array$
|
|
10130
|
-
return _array_with_holes$
|
|
10134
|
+
function _sliced_to_array$g(arr, i) {
|
|
10135
|
+
return _array_with_holes$g(arr) || _iterable_to_array_limit$g(arr, i) || _unsupported_iterable_to_array$g(arr, i) || _non_iterable_rest$g();
|
|
10131
10136
|
}
|
|
10132
|
-
function _unsupported_iterable_to_array$
|
|
10137
|
+
function _unsupported_iterable_to_array$g(o, minLen) {
|
|
10133
10138
|
if (!o)
|
|
10134
10139
|
return;
|
|
10135
10140
|
if (typeof o === "string")
|
|
10136
|
-
return _array_like_to_array$
|
|
10141
|
+
return _array_like_to_array$g(o, minLen);
|
|
10137
10142
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
10138
10143
|
if (n === "Object" && o.constructor)
|
|
10139
10144
|
n = o.constructor.name;
|
|
10140
10145
|
if (n === "Map" || n === "Set")
|
|
10141
10146
|
return Array.from(n);
|
|
10142
10147
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
10143
|
-
return _array_like_to_array$
|
|
10148
|
+
return _array_like_to_array$g(o, minLen);
|
|
10144
10149
|
}
|
|
10145
10150
|
var __generator$3 = globalThis && globalThis.__generator || function(thisArg, body) {
|
|
10146
10151
|
var f, y, t, g, _ = {
|
|
@@ -10257,10 +10262,10 @@ var NumberInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10257
10262
|
"min",
|
|
10258
10263
|
"max"
|
|
10259
10264
|
]);
|
|
10260
|
-
var _useState = _sliced_to_array$
|
|
10265
|
+
var _useState = _sliced_to_array$g(useState(function() {
|
|
10261
10266
|
return formatNumberWithDefault(value, defaultValue);
|
|
10262
10267
|
}), 2), showedValue = _useState[0], setShowedValue = _useState[1];
|
|
10263
|
-
var _useState1 = _sliced_to_array$
|
|
10268
|
+
var _useState1 = _sliced_to_array$g(useState(false), 2), isDeleteForwardAction = _useState1[0], setIsDeleteForwardAction = _useState1[1];
|
|
10264
10269
|
var handleKeyDown = function(event) {
|
|
10265
10270
|
setIsDeleteForwardAction(event.key === "Delete");
|
|
10266
10271
|
};
|
|
@@ -11077,20 +11082,20 @@ var clearButtonStyles$2 = {
|
|
|
11077
11082
|
}
|
|
11078
11083
|
}
|
|
11079
11084
|
};
|
|
11080
|
-
function _array_like_to_array$
|
|
11085
|
+
function _array_like_to_array$f(arr, len) {
|
|
11081
11086
|
if (len == null || len > arr.length)
|
|
11082
11087
|
len = arr.length;
|
|
11083
11088
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
11084
11089
|
arr2[i] = arr[i];
|
|
11085
11090
|
return arr2;
|
|
11086
11091
|
}
|
|
11087
|
-
function _array_with_holes$
|
|
11092
|
+
function _array_with_holes$f(arr) {
|
|
11088
11093
|
if (Array.isArray(arr))
|
|
11089
11094
|
return arr;
|
|
11090
11095
|
}
|
|
11091
11096
|
function _array_without_holes$3(arr) {
|
|
11092
11097
|
if (Array.isArray(arr))
|
|
11093
|
-
return _array_like_to_array$
|
|
11098
|
+
return _array_like_to_array$f(arr);
|
|
11094
11099
|
}
|
|
11095
11100
|
function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
11096
11101
|
try {
|
|
@@ -11138,7 +11143,7 @@ function _iterable_to_array$3(iter) {
|
|
|
11138
11143
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
11139
11144
|
return Array.from(iter);
|
|
11140
11145
|
}
|
|
11141
|
-
function _iterable_to_array_limit$
|
|
11146
|
+
function _iterable_to_array_limit$f(arr, i) {
|
|
11142
11147
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
11143
11148
|
if (_i == null)
|
|
11144
11149
|
return;
|
|
@@ -11166,7 +11171,7 @@ function _iterable_to_array_limit$g(arr, i) {
|
|
|
11166
11171
|
}
|
|
11167
11172
|
return _arr;
|
|
11168
11173
|
}
|
|
11169
|
-
function _non_iterable_rest$
|
|
11174
|
+
function _non_iterable_rest$f() {
|
|
11170
11175
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
11171
11176
|
}
|
|
11172
11177
|
function _non_iterable_spread$3() {
|
|
@@ -11211,24 +11216,24 @@ function _object_spread_props$o(target, source) {
|
|
|
11211
11216
|
}
|
|
11212
11217
|
return target;
|
|
11213
11218
|
}
|
|
11214
|
-
function _sliced_to_array$
|
|
11215
|
-
return _array_with_holes$
|
|
11219
|
+
function _sliced_to_array$f(arr, i) {
|
|
11220
|
+
return _array_with_holes$f(arr) || _iterable_to_array_limit$f(arr, i) || _unsupported_iterable_to_array$f(arr, i) || _non_iterable_rest$f();
|
|
11216
11221
|
}
|
|
11217
11222
|
function _to_consumable_array$3(arr) {
|
|
11218
|
-
return _array_without_holes$3(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$
|
|
11223
|
+
return _array_without_holes$3(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$f(arr) || _non_iterable_spread$3();
|
|
11219
11224
|
}
|
|
11220
|
-
function _unsupported_iterable_to_array$
|
|
11225
|
+
function _unsupported_iterable_to_array$f(o, minLen) {
|
|
11221
11226
|
if (!o)
|
|
11222
11227
|
return;
|
|
11223
11228
|
if (typeof o === "string")
|
|
11224
|
-
return _array_like_to_array$
|
|
11229
|
+
return _array_like_to_array$f(o, minLen);
|
|
11225
11230
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
11226
11231
|
if (n === "Object" && o.constructor)
|
|
11227
11232
|
n = o.constructor.name;
|
|
11228
11233
|
if (n === "Map" || n === "Set")
|
|
11229
11234
|
return Array.from(n);
|
|
11230
11235
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
11231
|
-
return _array_like_to_array$
|
|
11236
|
+
return _array_like_to_array$f(o, minLen);
|
|
11232
11237
|
}
|
|
11233
11238
|
var __generator$2 = globalThis && globalThis.__generator || function(thisArg, body) {
|
|
11234
11239
|
var f, y, t, g, _ = {
|
|
@@ -11370,13 +11375,13 @@ function MultiSelectList(param) {
|
|
|
11370
11375
|
className: "tweakClearButton",
|
|
11371
11376
|
currentComponentName: "MultiSelectList"
|
|
11372
11377
|
});
|
|
11373
|
-
var _useState = _sliced_to_array$
|
|
11374
|
-
var _useState1 = _sliced_to_array$
|
|
11375
|
-
var _useState2 = _sliced_to_array$
|
|
11376
|
-
var _useState3 = _sliced_to_array$
|
|
11377
|
-
var _useState4 = _sliced_to_array$
|
|
11378
|
-
var _useState5 = _sliced_to_array$
|
|
11379
|
-
var _useState6 = _sliced_to_array$
|
|
11378
|
+
var _useState = _sliced_to_array$f(useState(0), 2), keyCursorOn = _useState[0], setKeyCursorOn = _useState[1];
|
|
11379
|
+
var _useState1 = _sliced_to_array$f(useState(""), 2), searchValue = _useState1[0], setSearchValue = _useState1[1];
|
|
11380
|
+
var _useState2 = _sliced_to_array$f(useState([]), 2), allOptions = _useState2[0], setAllOptions = _useState2[1];
|
|
11381
|
+
var _useState3 = _sliced_to_array$f(useState(false), 2), isLoading = _useState3[0], setIsLoading = _useState3[1];
|
|
11382
|
+
var _useState4 = _sliced_to_array$f(useState(false), 2), isLoadingOptionsOnScroll = _useState4[0], setLoadingOptionsOnScroll = _useState4[1];
|
|
11383
|
+
var _useState5 = _sliced_to_array$f(useState(0), 2), activePage = _useState5[0], setActivePage = _useState5[1];
|
|
11384
|
+
var _useState6 = _sliced_to_array$f(useState(false), 2), isMaxPage = _useState6[0], setIsMaxPage = _useState6[1];
|
|
11380
11385
|
var observer = useRef();
|
|
11381
11386
|
var chosenValues = value === null || value === void 0 ? void 0 : value.include;
|
|
11382
11387
|
var translates = useMemo(function() {
|
|
@@ -12007,20 +12012,20 @@ var searchInputStyles$1 = {
|
|
|
12007
12012
|
}
|
|
12008
12013
|
};
|
|
12009
12014
|
var clearButtonStyles$1 = cloneDeep(innerTextButtonStyles);
|
|
12010
|
-
function _array_like_to_array$
|
|
12015
|
+
function _array_like_to_array$e(arr, len) {
|
|
12011
12016
|
if (len == null || len > arr.length)
|
|
12012
12017
|
len = arr.length;
|
|
12013
12018
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
12014
12019
|
arr2[i] = arr[i];
|
|
12015
12020
|
return arr2;
|
|
12016
12021
|
}
|
|
12017
|
-
function _array_with_holes$
|
|
12022
|
+
function _array_with_holes$e(arr) {
|
|
12018
12023
|
if (Array.isArray(arr))
|
|
12019
12024
|
return arr;
|
|
12020
12025
|
}
|
|
12021
12026
|
function _array_without_holes$2(arr) {
|
|
12022
12027
|
if (Array.isArray(arr))
|
|
12023
|
-
return _array_like_to_array$
|
|
12028
|
+
return _array_like_to_array$e(arr);
|
|
12024
12029
|
}
|
|
12025
12030
|
function asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, key, arg) {
|
|
12026
12031
|
try {
|
|
@@ -12068,7 +12073,7 @@ function _iterable_to_array$2(iter) {
|
|
|
12068
12073
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
12069
12074
|
return Array.from(iter);
|
|
12070
12075
|
}
|
|
12071
|
-
function _iterable_to_array_limit$
|
|
12076
|
+
function _iterable_to_array_limit$e(arr, i) {
|
|
12072
12077
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
12073
12078
|
if (_i == null)
|
|
12074
12079
|
return;
|
|
@@ -12096,7 +12101,7 @@ function _iterable_to_array_limit$f(arr, i) {
|
|
|
12096
12101
|
}
|
|
12097
12102
|
return _arr;
|
|
12098
12103
|
}
|
|
12099
|
-
function _non_iterable_rest$
|
|
12104
|
+
function _non_iterable_rest$e() {
|
|
12100
12105
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
12101
12106
|
}
|
|
12102
12107
|
function _non_iterable_spread$2() {
|
|
@@ -12141,24 +12146,24 @@ function _object_spread_props$n(target, source) {
|
|
|
12141
12146
|
}
|
|
12142
12147
|
return target;
|
|
12143
12148
|
}
|
|
12144
|
-
function _sliced_to_array$
|
|
12145
|
-
return _array_with_holes$
|
|
12149
|
+
function _sliced_to_array$e(arr, i) {
|
|
12150
|
+
return _array_with_holes$e(arr) || _iterable_to_array_limit$e(arr, i) || _unsupported_iterable_to_array$e(arr, i) || _non_iterable_rest$e();
|
|
12146
12151
|
}
|
|
12147
12152
|
function _to_consumable_array$2(arr) {
|
|
12148
|
-
return _array_without_holes$2(arr) || _iterable_to_array$2(arr) || _unsupported_iterable_to_array$
|
|
12153
|
+
return _array_without_holes$2(arr) || _iterable_to_array$2(arr) || _unsupported_iterable_to_array$e(arr) || _non_iterable_spread$2();
|
|
12149
12154
|
}
|
|
12150
|
-
function _unsupported_iterable_to_array$
|
|
12155
|
+
function _unsupported_iterable_to_array$e(o, minLen) {
|
|
12151
12156
|
if (!o)
|
|
12152
12157
|
return;
|
|
12153
12158
|
if (typeof o === "string")
|
|
12154
|
-
return _array_like_to_array$
|
|
12159
|
+
return _array_like_to_array$e(o, minLen);
|
|
12155
12160
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
12156
12161
|
if (n === "Object" && o.constructor)
|
|
12157
12162
|
n = o.constructor.name;
|
|
12158
12163
|
if (n === "Map" || n === "Set")
|
|
12159
12164
|
return Array.from(n);
|
|
12160
12165
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
12161
|
-
return _array_like_to_array$
|
|
12166
|
+
return _array_like_to_array$e(o, minLen);
|
|
12162
12167
|
}
|
|
12163
12168
|
var __generator$1 = globalThis && globalThis.__generator || function(thisArg, body) {
|
|
12164
12169
|
var f, y, t, g, _ = {
|
|
@@ -12287,12 +12292,12 @@ function FilterSelect(param) {
|
|
|
12287
12292
|
locale2
|
|
12288
12293
|
]);
|
|
12289
12294
|
var observer = useRef();
|
|
12290
|
-
var _useState = _sliced_to_array$
|
|
12291
|
-
var _useState1 = _sliced_to_array$
|
|
12292
|
-
var _useState2 = _sliced_to_array$
|
|
12293
|
-
var _useState3 = _sliced_to_array$
|
|
12294
|
-
var _useState4 = _sliced_to_array$
|
|
12295
|
-
var _useState5 = _sliced_to_array$
|
|
12295
|
+
var _useState = _sliced_to_array$e(useState(""), 2), searchValue = _useState[0], setSearchValue = _useState[1];
|
|
12296
|
+
var _useState1 = _sliced_to_array$e(useState([]), 2), allOptions = _useState1[0], setAllOptions = _useState1[1];
|
|
12297
|
+
var _useState2 = _sliced_to_array$e(useState(0), 2), activePage = _useState2[0], setActivePage = _useState2[1];
|
|
12298
|
+
var _useState3 = _sliced_to_array$e(useState(false), 2), isMaxPage = _useState3[0], setIsMaxPage = _useState3[1];
|
|
12299
|
+
var _useState4 = _sliced_to_array$e(useState(false), 2), isLoading = _useState4[0], setIsLoading = _useState4[1];
|
|
12300
|
+
var _useState5 = _sliced_to_array$e(useState(false), 2), isLoadingOptionsOnScroll = _useState5[0], setLoadingOptionsOnScroll = _useState5[1];
|
|
12296
12301
|
var shouldShowPreloader = isLoading || isLoadingOptionsOnScroll;
|
|
12297
12302
|
var hasFooter = isReactNodeNotEmpty(footer);
|
|
12298
12303
|
var handleSearchInputChange = useCallback(function() {
|
|
@@ -13804,14 +13809,14 @@ var endDatePickerWithButtonStyles = {
|
|
|
13804
13809
|
marginLeft: END_PICKER_LEFT_MARGIN
|
|
13805
13810
|
}
|
|
13806
13811
|
};
|
|
13807
|
-
function _array_like_to_array$
|
|
13812
|
+
function _array_like_to_array$d(arr, len) {
|
|
13808
13813
|
if (len == null || len > arr.length)
|
|
13809
13814
|
len = arr.length;
|
|
13810
13815
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
13811
13816
|
arr2[i] = arr[i];
|
|
13812
13817
|
return arr2;
|
|
13813
13818
|
}
|
|
13814
|
-
function _array_with_holes$
|
|
13819
|
+
function _array_with_holes$d(arr) {
|
|
13815
13820
|
if (Array.isArray(arr))
|
|
13816
13821
|
return arr;
|
|
13817
13822
|
}
|
|
@@ -13828,7 +13833,7 @@ function _define_property$p(obj, key, value) {
|
|
|
13828
13833
|
}
|
|
13829
13834
|
return obj;
|
|
13830
13835
|
}
|
|
13831
|
-
function _iterable_to_array_limit$
|
|
13836
|
+
function _iterable_to_array_limit$d(arr, i) {
|
|
13832
13837
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
13833
13838
|
if (_i == null)
|
|
13834
13839
|
return;
|
|
@@ -13856,7 +13861,7 @@ function _iterable_to_array_limit$e(arr, i) {
|
|
|
13856
13861
|
}
|
|
13857
13862
|
return _arr;
|
|
13858
13863
|
}
|
|
13859
|
-
function _non_iterable_rest$
|
|
13864
|
+
function _non_iterable_rest$d() {
|
|
13860
13865
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
13861
13866
|
}
|
|
13862
13867
|
function _object_spread$n(target) {
|
|
@@ -13898,21 +13903,21 @@ function _object_spread_props$m(target, source) {
|
|
|
13898
13903
|
}
|
|
13899
13904
|
return target;
|
|
13900
13905
|
}
|
|
13901
|
-
function _sliced_to_array$
|
|
13902
|
-
return _array_with_holes$
|
|
13906
|
+
function _sliced_to_array$d(arr, i) {
|
|
13907
|
+
return _array_with_holes$d(arr) || _iterable_to_array_limit$d(arr, i) || _unsupported_iterable_to_array$d(arr, i) || _non_iterable_rest$d();
|
|
13903
13908
|
}
|
|
13904
|
-
function _unsupported_iterable_to_array$
|
|
13909
|
+
function _unsupported_iterable_to_array$d(o, minLen) {
|
|
13905
13910
|
if (!o)
|
|
13906
13911
|
return;
|
|
13907
13912
|
if (typeof o === "string")
|
|
13908
|
-
return _array_like_to_array$
|
|
13913
|
+
return _array_like_to_array$d(o, minLen);
|
|
13909
13914
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
13910
13915
|
if (n === "Object" && o.constructor)
|
|
13911
13916
|
n = o.constructor.name;
|
|
13912
13917
|
if (n === "Map" || n === "Set")
|
|
13913
13918
|
return Array.from(n);
|
|
13914
13919
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
13915
|
-
return _array_like_to_array$
|
|
13920
|
+
return _array_like_to_array$d(o, minLen);
|
|
13916
13921
|
}
|
|
13917
13922
|
var FilterWithDates = function(param) {
|
|
13918
13923
|
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;
|
|
@@ -13944,8 +13949,8 @@ var FilterWithDates = function(param) {
|
|
|
13944
13949
|
className: "tweakEndDatePicker",
|
|
13945
13950
|
currentComponentName: "FilterWithDates"
|
|
13946
13951
|
});
|
|
13947
|
-
var _useState = _sliced_to_array$
|
|
13948
|
-
var _useState1 = _sliced_to_array$
|
|
13952
|
+
var _useState = _sliced_to_array$d(useState(false), 2), isOpenFrom = _useState[0], setOpenFrom = _useState[1];
|
|
13953
|
+
var _useState1 = _sliced_to_array$d(useState(false), 2), isOpenTo = _useState1[0], setOpenTo = _useState1[1];
|
|
13949
13954
|
var ref = useRef(null);
|
|
13950
13955
|
var dateLocale = localeKey === "ru" ? ru : enUS;
|
|
13951
13956
|
var translates = useMemo(function() {
|
|
@@ -14093,20 +14098,20 @@ var filterSelectStyles = {
|
|
|
14093
14098
|
maxHeight: "auto"
|
|
14094
14099
|
}
|
|
14095
14100
|
};
|
|
14096
|
-
function _array_like_to_array$
|
|
14101
|
+
function _array_like_to_array$c(arr, len) {
|
|
14097
14102
|
if (len == null || len > arr.length)
|
|
14098
14103
|
len = arr.length;
|
|
14099
14104
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
14100
14105
|
arr2[i] = arr[i];
|
|
14101
14106
|
return arr2;
|
|
14102
14107
|
}
|
|
14103
|
-
function _array_with_holes$
|
|
14108
|
+
function _array_with_holes$c(arr) {
|
|
14104
14109
|
if (Array.isArray(arr))
|
|
14105
14110
|
return arr;
|
|
14106
14111
|
}
|
|
14107
14112
|
function _array_without_holes$1(arr) {
|
|
14108
14113
|
if (Array.isArray(arr))
|
|
14109
|
-
return _array_like_to_array$
|
|
14114
|
+
return _array_like_to_array$c(arr);
|
|
14110
14115
|
}
|
|
14111
14116
|
function _define_property$o(obj, key, value) {
|
|
14112
14117
|
if (key in obj) {
|
|
@@ -14125,7 +14130,7 @@ function _iterable_to_array$1(iter) {
|
|
|
14125
14130
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
14126
14131
|
return Array.from(iter);
|
|
14127
14132
|
}
|
|
14128
|
-
function _iterable_to_array_limit$
|
|
14133
|
+
function _iterable_to_array_limit$c(arr, i) {
|
|
14129
14134
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
14130
14135
|
if (_i == null)
|
|
14131
14136
|
return;
|
|
@@ -14153,7 +14158,7 @@ function _iterable_to_array_limit$d(arr, i) {
|
|
|
14153
14158
|
}
|
|
14154
14159
|
return _arr;
|
|
14155
14160
|
}
|
|
14156
|
-
function _non_iterable_rest$
|
|
14161
|
+
function _non_iterable_rest$c() {
|
|
14157
14162
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14158
14163
|
}
|
|
14159
14164
|
function _non_iterable_spread$1() {
|
|
@@ -14198,24 +14203,24 @@ function _object_spread_props$l(target, source) {
|
|
|
14198
14203
|
}
|
|
14199
14204
|
return target;
|
|
14200
14205
|
}
|
|
14201
|
-
function _sliced_to_array$
|
|
14202
|
-
return _array_with_holes$
|
|
14206
|
+
function _sliced_to_array$c(arr, i) {
|
|
14207
|
+
return _array_with_holes$c(arr) || _iterable_to_array_limit$c(arr, i) || _unsupported_iterable_to_array$c(arr, i) || _non_iterable_rest$c();
|
|
14203
14208
|
}
|
|
14204
14209
|
function _to_consumable_array$1(arr) {
|
|
14205
|
-
return _array_without_holes$1(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$
|
|
14210
|
+
return _array_without_holes$1(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$c(arr) || _non_iterable_spread$1();
|
|
14206
14211
|
}
|
|
14207
|
-
function _unsupported_iterable_to_array$
|
|
14212
|
+
function _unsupported_iterable_to_array$c(o, minLen) {
|
|
14208
14213
|
if (!o)
|
|
14209
14214
|
return;
|
|
14210
14215
|
if (typeof o === "string")
|
|
14211
|
-
return _array_like_to_array$
|
|
14216
|
+
return _array_like_to_array$c(o, minLen);
|
|
14212
14217
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
14213
14218
|
if (n === "Object" && o.constructor)
|
|
14214
14219
|
n = o.constructor.name;
|
|
14215
14220
|
if (n === "Map" || n === "Set")
|
|
14216
14221
|
return Array.from(n);
|
|
14217
14222
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
14218
|
-
return _array_like_to_array$
|
|
14223
|
+
return _array_like_to_array$c(o, minLen);
|
|
14219
14224
|
}
|
|
14220
14225
|
var FilterWithPeriod = function(param) {
|
|
14221
14226
|
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;
|
|
@@ -14228,9 +14233,9 @@ var FilterWithPeriod = function(param) {
|
|
|
14228
14233
|
localeKey,
|
|
14229
14234
|
locale2
|
|
14230
14235
|
]);
|
|
14231
|
-
var _useState = _sliced_to_array$
|
|
14232
|
-
var _useState1 = _sliced_to_array$
|
|
14233
|
-
var _useState2 = _sliced_to_array$
|
|
14236
|
+
var _useState = _sliced_to_array$c(useState((value === null || value === void 0 ? void 0 : value.periodType) !== "CUSTOM"), 2), isPeriodPickerShown = _useState[0], setIsPeriodPickerShown = _useState[1];
|
|
14237
|
+
var _useState1 = _sliced_to_array$c(useState((value === null || value === void 0 ? void 0 : value.periodType) === "CUSTOM"), 2), isDatePickerShown = _useState1[0], setIsDatePickerShown = _useState1[1];
|
|
14238
|
+
var _useState2 = _sliced_to_array$c(useState(value), 2), period = _useState2[0], setPeriod = _useState2[1];
|
|
14234
14239
|
var periodGetters = useMemo(function() {
|
|
14235
14240
|
var result = _object_spread$m({}, PERIODS_GETTERS);
|
|
14236
14241
|
periods === null || periods === void 0 ? void 0 : periods.forEach(function(p) {
|
|
@@ -14370,14 +14375,14 @@ var FilterWithPeriod = function(param) {
|
|
|
14370
14375
|
]
|
|
14371
14376
|
});
|
|
14372
14377
|
};
|
|
14373
|
-
function _array_like_to_array$
|
|
14378
|
+
function _array_like_to_array$b(arr, len) {
|
|
14374
14379
|
if (len == null || len > arr.length)
|
|
14375
14380
|
len = arr.length;
|
|
14376
14381
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
14377
14382
|
arr2[i] = arr[i];
|
|
14378
14383
|
return arr2;
|
|
14379
14384
|
}
|
|
14380
|
-
function _array_with_holes$
|
|
14385
|
+
function _array_with_holes$b(arr) {
|
|
14381
14386
|
if (Array.isArray(arr))
|
|
14382
14387
|
return arr;
|
|
14383
14388
|
}
|
|
@@ -14394,7 +14399,7 @@ function _define_property$n(obj, key, value) {
|
|
|
14394
14399
|
}
|
|
14395
14400
|
return obj;
|
|
14396
14401
|
}
|
|
14397
|
-
function _iterable_to_array_limit$
|
|
14402
|
+
function _iterable_to_array_limit$b(arr, i) {
|
|
14398
14403
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
14399
14404
|
if (_i == null)
|
|
14400
14405
|
return;
|
|
@@ -14422,7 +14427,7 @@ function _iterable_to_array_limit$c(arr, i) {
|
|
|
14422
14427
|
}
|
|
14423
14428
|
return _arr;
|
|
14424
14429
|
}
|
|
14425
|
-
function _non_iterable_rest$
|
|
14430
|
+
function _non_iterable_rest$b() {
|
|
14426
14431
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14427
14432
|
}
|
|
14428
14433
|
function _object_spread$l(target) {
|
|
@@ -14464,26 +14469,26 @@ function _object_spread_props$k(target, source) {
|
|
|
14464
14469
|
}
|
|
14465
14470
|
return target;
|
|
14466
14471
|
}
|
|
14467
|
-
function _sliced_to_array$
|
|
14468
|
-
return _array_with_holes$
|
|
14472
|
+
function _sliced_to_array$b(arr, i) {
|
|
14473
|
+
return _array_with_holes$b(arr) || _iterable_to_array_limit$b(arr, i) || _unsupported_iterable_to_array$b(arr, i) || _non_iterable_rest$b();
|
|
14469
14474
|
}
|
|
14470
|
-
function _unsupported_iterable_to_array$
|
|
14475
|
+
function _unsupported_iterable_to_array$b(o, minLen) {
|
|
14471
14476
|
if (!o)
|
|
14472
14477
|
return;
|
|
14473
14478
|
if (typeof o === "string")
|
|
14474
|
-
return _array_like_to_array$
|
|
14479
|
+
return _array_like_to_array$b(o, minLen);
|
|
14475
14480
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
14476
14481
|
if (n === "Object" && o.constructor)
|
|
14477
14482
|
n = o.constructor.name;
|
|
14478
14483
|
if (n === "Map" || n === "Set")
|
|
14479
14484
|
return Array.from(n);
|
|
14480
14485
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
14481
|
-
return _array_like_to_array$
|
|
14486
|
+
return _array_like_to_array$b(o, minLen);
|
|
14482
14487
|
}
|
|
14483
14488
|
function Filter(param) {
|
|
14484
14489
|
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;
|
|
14485
14490
|
var ref = useRef(null);
|
|
14486
|
-
var _useState = _sliced_to_array$
|
|
14491
|
+
var _useState = _sliced_to_array$b(useState("left"), 2), dropdownPosition = _useState[0], setDropdownPosition = _useState[1];
|
|
14487
14492
|
var _filter_localeKey;
|
|
14488
14493
|
var translatesLocaleKey = (_filter_localeKey = filter.localeKey) !== null && _filter_localeKey !== void 0 ? _filter_localeKey : localeKey;
|
|
14489
14494
|
var translates = useMemo(function() {
|
|
@@ -14709,14 +14714,14 @@ var selectStyles = {
|
|
|
14709
14714
|
width: "100%"
|
|
14710
14715
|
}
|
|
14711
14716
|
};
|
|
14712
|
-
function _array_like_to_array$
|
|
14717
|
+
function _array_like_to_array$a(arr, len) {
|
|
14713
14718
|
if (len == null || len > arr.length)
|
|
14714
14719
|
len = arr.length;
|
|
14715
14720
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
14716
14721
|
arr2[i] = arr[i];
|
|
14717
14722
|
return arr2;
|
|
14718
14723
|
}
|
|
14719
|
-
function _array_with_holes$
|
|
14724
|
+
function _array_with_holes$a(arr) {
|
|
14720
14725
|
if (Array.isArray(arr))
|
|
14721
14726
|
return arr;
|
|
14722
14727
|
}
|
|
@@ -14733,7 +14738,7 @@ function _define_property$m(obj, key, value) {
|
|
|
14733
14738
|
}
|
|
14734
14739
|
return obj;
|
|
14735
14740
|
}
|
|
14736
|
-
function _iterable_to_array_limit$
|
|
14741
|
+
function _iterable_to_array_limit$a(arr, i) {
|
|
14737
14742
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
14738
14743
|
if (_i == null)
|
|
14739
14744
|
return;
|
|
@@ -14761,7 +14766,7 @@ function _iterable_to_array_limit$b(arr, i) {
|
|
|
14761
14766
|
}
|
|
14762
14767
|
return _arr;
|
|
14763
14768
|
}
|
|
14764
|
-
function _non_iterable_rest$
|
|
14769
|
+
function _non_iterable_rest$a() {
|
|
14765
14770
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14766
14771
|
}
|
|
14767
14772
|
function _object_spread$k(target) {
|
|
@@ -14803,21 +14808,21 @@ function _object_spread_props$j(target, source) {
|
|
|
14803
14808
|
}
|
|
14804
14809
|
return target;
|
|
14805
14810
|
}
|
|
14806
|
-
function _sliced_to_array$
|
|
14807
|
-
return _array_with_holes$
|
|
14811
|
+
function _sliced_to_array$a(arr, i) {
|
|
14812
|
+
return _array_with_holes$a(arr) || _iterable_to_array_limit$a(arr, i) || _unsupported_iterable_to_array$a(arr, i) || _non_iterable_rest$a();
|
|
14808
14813
|
}
|
|
14809
|
-
function _unsupported_iterable_to_array$
|
|
14814
|
+
function _unsupported_iterable_to_array$a(o, minLen) {
|
|
14810
14815
|
if (!o)
|
|
14811
14816
|
return;
|
|
14812
14817
|
if (typeof o === "string")
|
|
14813
|
-
return _array_like_to_array$
|
|
14818
|
+
return _array_like_to_array$a(o, minLen);
|
|
14814
14819
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
14815
14820
|
if (n === "Object" && o.constructor)
|
|
14816
14821
|
n = o.constructor.name;
|
|
14817
14822
|
if (n === "Map" || n === "Set")
|
|
14818
14823
|
return Array.from(n);
|
|
14819
14824
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
14820
|
-
return _array_like_to_array$
|
|
14825
|
+
return _array_like_to_array$a(o, minLen);
|
|
14821
14826
|
}
|
|
14822
14827
|
function FiltersPaneSearch(param) {
|
|
14823
14828
|
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;
|
|
@@ -14836,8 +14841,8 @@ function FiltersPaneSearch(param) {
|
|
|
14836
14841
|
className: "tweakSelect",
|
|
14837
14842
|
currentComponentName: "FiltersPaneSearch"
|
|
14838
14843
|
});
|
|
14839
|
-
var _useState = _sliced_to_array$
|
|
14840
|
-
var _useState1 = _sliced_to_array$
|
|
14844
|
+
var _useState = _sliced_to_array$a(useState(false), 2), isInputFocused = _useState[0], setIsInputFocused = _useState[1];
|
|
14845
|
+
var _useState1 = _sliced_to_array$a(useState(false), 2), isOpen = _useState1[0], setIsOpen = _useState1[1];
|
|
14841
14846
|
var refRoot = useRef(null);
|
|
14842
14847
|
var translates = useMemo(function() {
|
|
14843
14848
|
return getLocale$1(localeKey, locale2);
|
|
@@ -15218,14 +15223,14 @@ var useStyles$k = createThemedStyles("FilterWrapper", {
|
|
|
15218
15223
|
extend: "animationEnd"
|
|
15219
15224
|
}
|
|
15220
15225
|
});
|
|
15221
|
-
function _array_like_to_array$
|
|
15226
|
+
function _array_like_to_array$9(arr, len) {
|
|
15222
15227
|
if (len == null || len > arr.length)
|
|
15223
15228
|
len = arr.length;
|
|
15224
15229
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
15225
15230
|
arr2[i] = arr[i];
|
|
15226
15231
|
return arr2;
|
|
15227
15232
|
}
|
|
15228
|
-
function _array_with_holes$
|
|
15233
|
+
function _array_with_holes$9(arr) {
|
|
15229
15234
|
if (Array.isArray(arr))
|
|
15230
15235
|
return arr;
|
|
15231
15236
|
}
|
|
@@ -15242,7 +15247,7 @@ function _define_property$l(obj, key, value) {
|
|
|
15242
15247
|
}
|
|
15243
15248
|
return obj;
|
|
15244
15249
|
}
|
|
15245
|
-
function _iterable_to_array_limit$
|
|
15250
|
+
function _iterable_to_array_limit$9(arr, i) {
|
|
15246
15251
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
15247
15252
|
if (_i == null)
|
|
15248
15253
|
return;
|
|
@@ -15270,7 +15275,7 @@ function _iterable_to_array_limit$a(arr, i) {
|
|
|
15270
15275
|
}
|
|
15271
15276
|
return _arr;
|
|
15272
15277
|
}
|
|
15273
|
-
function _non_iterable_rest$
|
|
15278
|
+
function _non_iterable_rest$9() {
|
|
15274
15279
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
15275
15280
|
}
|
|
15276
15281
|
function _object_spread$j(target) {
|
|
@@ -15312,21 +15317,21 @@ function _object_spread_props$i(target, source) {
|
|
|
15312
15317
|
}
|
|
15313
15318
|
return target;
|
|
15314
15319
|
}
|
|
15315
|
-
function _sliced_to_array$
|
|
15316
|
-
return _array_with_holes$
|
|
15320
|
+
function _sliced_to_array$9(arr, i) {
|
|
15321
|
+
return _array_with_holes$9(arr) || _iterable_to_array_limit$9(arr, i) || _unsupported_iterable_to_array$9(arr, i) || _non_iterable_rest$9();
|
|
15317
15322
|
}
|
|
15318
|
-
function _unsupported_iterable_to_array$
|
|
15323
|
+
function _unsupported_iterable_to_array$9(o, minLen) {
|
|
15319
15324
|
if (!o)
|
|
15320
15325
|
return;
|
|
15321
15326
|
if (typeof o === "string")
|
|
15322
|
-
return _array_like_to_array$
|
|
15327
|
+
return _array_like_to_array$9(o, minLen);
|
|
15323
15328
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
15324
15329
|
if (n === "Object" && o.constructor)
|
|
15325
15330
|
n = o.constructor.name;
|
|
15326
15331
|
if (n === "Map" || n === "Set")
|
|
15327
15332
|
return Array.from(n);
|
|
15328
15333
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
15329
|
-
return _array_like_to_array$
|
|
15334
|
+
return _array_like_to_array$9(o, minLen);
|
|
15330
15335
|
}
|
|
15331
15336
|
function FilterWrapper(param) {
|
|
15332
15337
|
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;
|
|
@@ -15344,7 +15349,7 @@ function FilterWrapper(param) {
|
|
|
15344
15349
|
className: "tweakValueView",
|
|
15345
15350
|
currentComponentName: "FilterWrapper"
|
|
15346
15351
|
});
|
|
15347
|
-
var _useState = _sliced_to_array$
|
|
15352
|
+
var _useState = _sliced_to_array$9(useState(false), 2), isOpen = _useState[0], setIsOpen = _useState[1];
|
|
15348
15353
|
var refItem = useRef(null);
|
|
15349
15354
|
var type = filter.type;
|
|
15350
15355
|
var hasValue = false;
|
|
@@ -22028,14 +22033,14 @@ var useStyles$f = createThemedStyles("FlexibleTableRow", {
|
|
|
22028
22033
|
cursor: "pointer"
|
|
22029
22034
|
}
|
|
22030
22035
|
});
|
|
22031
|
-
function _array_like_to_array$
|
|
22036
|
+
function _array_like_to_array$8(arr, len) {
|
|
22032
22037
|
if (len == null || len > arr.length)
|
|
22033
22038
|
len = arr.length;
|
|
22034
22039
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
22035
22040
|
arr2[i] = arr[i];
|
|
22036
22041
|
return arr2;
|
|
22037
22042
|
}
|
|
22038
|
-
function _array_with_holes$
|
|
22043
|
+
function _array_with_holes$8(arr) {
|
|
22039
22044
|
if (Array.isArray(arr))
|
|
22040
22045
|
return arr;
|
|
22041
22046
|
}
|
|
@@ -22052,7 +22057,7 @@ function _define_property$h(obj, key, value) {
|
|
|
22052
22057
|
}
|
|
22053
22058
|
return obj;
|
|
22054
22059
|
}
|
|
22055
|
-
function _iterable_to_array_limit$
|
|
22060
|
+
function _iterable_to_array_limit$8(arr, i) {
|
|
22056
22061
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
22057
22062
|
if (_i == null)
|
|
22058
22063
|
return;
|
|
@@ -22080,7 +22085,7 @@ function _iterable_to_array_limit$9(arr, i) {
|
|
|
22080
22085
|
}
|
|
22081
22086
|
return _arr;
|
|
22082
22087
|
}
|
|
22083
|
-
function _non_iterable_rest$
|
|
22088
|
+
function _non_iterable_rest$8() {
|
|
22084
22089
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
22085
22090
|
}
|
|
22086
22091
|
function _object_spread$g(target) {
|
|
@@ -22122,21 +22127,21 @@ function _object_spread_props$f(target, source) {
|
|
|
22122
22127
|
}
|
|
22123
22128
|
return target;
|
|
22124
22129
|
}
|
|
22125
|
-
function _sliced_to_array$
|
|
22126
|
-
return _array_with_holes$
|
|
22130
|
+
function _sliced_to_array$8(arr, i) {
|
|
22131
|
+
return _array_with_holes$8(arr) || _iterable_to_array_limit$8(arr, i) || _unsupported_iterable_to_array$8(arr, i) || _non_iterable_rest$8();
|
|
22127
22132
|
}
|
|
22128
|
-
function _unsupported_iterable_to_array$
|
|
22133
|
+
function _unsupported_iterable_to_array$8(o, minLen) {
|
|
22129
22134
|
if (!o)
|
|
22130
22135
|
return;
|
|
22131
22136
|
if (typeof o === "string")
|
|
22132
|
-
return _array_like_to_array$
|
|
22137
|
+
return _array_like_to_array$8(o, minLen);
|
|
22133
22138
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
22134
22139
|
if (n === "Object" && o.constructor)
|
|
22135
22140
|
n = o.constructor.name;
|
|
22136
22141
|
if (n === "Map" || n === "Set")
|
|
22137
22142
|
return Array.from(n);
|
|
22138
22143
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
22139
|
-
return _array_like_to_array$
|
|
22144
|
+
return _array_like_to_array$8(o, minLen);
|
|
22140
22145
|
}
|
|
22141
22146
|
function FlexibleTableRowInner(param) {
|
|
22142
22147
|
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;
|
|
@@ -22148,8 +22153,8 @@ function FlexibleTableRowInner(param) {
|
|
|
22148
22153
|
className: "tweakTableCell",
|
|
22149
22154
|
currentComponentName: "FlexibleTableRow"
|
|
22150
22155
|
});
|
|
22151
|
-
var _useState = _sliced_to_array$
|
|
22152
|
-
var _useState1 = _sliced_to_array$
|
|
22156
|
+
var _useState = _sliced_to_array$8(useState(false), 2), isFocused = _useState[0], setFocused = _useState[1];
|
|
22157
|
+
var _useState1 = _sliced_to_array$8(useState({
|
|
22153
22158
|
isOpen: false
|
|
22154
22159
|
}), 2), nestedComponent = _useState1[0], setNestedComponent = _useState1[1];
|
|
22155
22160
|
var rowData = rowAttributes === null || rowAttributes === void 0 ? void 0 : rowAttributes.reduce(function(acc, cur) {
|
|
@@ -22241,17 +22246,6 @@ function FlexibleTableRowInner(param) {
|
|
|
22241
22246
|
});
|
|
22242
22247
|
}
|
|
22243
22248
|
var FlexibleTableRow = /* @__PURE__ */ memo(FlexibleTableRowInner);
|
|
22244
|
-
function _array_like_to_array$8(arr, len) {
|
|
22245
|
-
if (len == null || len > arr.length)
|
|
22246
|
-
len = arr.length;
|
|
22247
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
22248
|
-
arr2[i] = arr[i];
|
|
22249
|
-
return arr2;
|
|
22250
|
-
}
|
|
22251
|
-
function _array_with_holes$8(arr) {
|
|
22252
|
-
if (Array.isArray(arr))
|
|
22253
|
-
return arr;
|
|
22254
|
-
}
|
|
22255
22249
|
function _define_property$g(obj, key, value) {
|
|
22256
22250
|
if (key in obj) {
|
|
22257
22251
|
Object.defineProperty(obj, key, {
|
|
@@ -22265,37 +22259,6 @@ function _define_property$g(obj, key, value) {
|
|
|
22265
22259
|
}
|
|
22266
22260
|
return obj;
|
|
22267
22261
|
}
|
|
22268
|
-
function _iterable_to_array_limit$8(arr, i) {
|
|
22269
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
22270
|
-
if (_i == null)
|
|
22271
|
-
return;
|
|
22272
|
-
var _arr = [];
|
|
22273
|
-
var _n = true;
|
|
22274
|
-
var _d = false;
|
|
22275
|
-
var _s, _e;
|
|
22276
|
-
try {
|
|
22277
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
22278
|
-
_arr.push(_s.value);
|
|
22279
|
-
if (i && _arr.length === i)
|
|
22280
|
-
break;
|
|
22281
|
-
}
|
|
22282
|
-
} catch (err) {
|
|
22283
|
-
_d = true;
|
|
22284
|
-
_e = err;
|
|
22285
|
-
} finally {
|
|
22286
|
-
try {
|
|
22287
|
-
if (!_n && _i["return"] != null)
|
|
22288
|
-
_i["return"]();
|
|
22289
|
-
} finally {
|
|
22290
|
-
if (_d)
|
|
22291
|
-
throw _e;
|
|
22292
|
-
}
|
|
22293
|
-
}
|
|
22294
|
-
return _arr;
|
|
22295
|
-
}
|
|
22296
|
-
function _non_iterable_rest$8() {
|
|
22297
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
22298
|
-
}
|
|
22299
22262
|
function _object_spread$f(target) {
|
|
22300
22263
|
for (var i = 1; i < arguments.length; i++) {
|
|
22301
22264
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
@@ -22335,22 +22298,6 @@ function _object_spread_props$e(target, source) {
|
|
|
22335
22298
|
}
|
|
22336
22299
|
return target;
|
|
22337
22300
|
}
|
|
22338
|
-
function _sliced_to_array$8(arr, i) {
|
|
22339
|
-
return _array_with_holes$8(arr) || _iterable_to_array_limit$8(arr, i) || _unsupported_iterable_to_array$8(arr, i) || _non_iterable_rest$8();
|
|
22340
|
-
}
|
|
22341
|
-
function _unsupported_iterable_to_array$8(o, minLen) {
|
|
22342
|
-
if (!o)
|
|
22343
|
-
return;
|
|
22344
|
-
if (typeof o === "string")
|
|
22345
|
-
return _array_like_to_array$8(o, minLen);
|
|
22346
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
22347
|
-
if (n === "Object" && o.constructor)
|
|
22348
|
-
n = o.constructor.name;
|
|
22349
|
-
if (n === "Map" || n === "Set")
|
|
22350
|
-
return Array.from(n);
|
|
22351
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
22352
|
-
return _array_like_to_array$8(o, minLen);
|
|
22353
|
-
}
|
|
22354
22301
|
function FlexibleTable(param) {
|
|
22355
22302
|
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;
|
|
22356
22303
|
var classes = useStyles$h({
|
|
@@ -22361,17 +22308,39 @@ function FlexibleTable(param) {
|
|
|
22361
22308
|
className: "tweakTableRow",
|
|
22362
22309
|
currentComponentName: "FlexibleTable"
|
|
22363
22310
|
});
|
|
22364
|
-
var _useState = _sliced_to_array$8(useState(false), 2), isHorizontallyScrolled = _useState[0], setIsHorizontallyScrolled = _useState[1];
|
|
22365
|
-
var _useState1 = _sliced_to_array$8(useState(false), 2), hasScrollBar = _useState1[0], setHasScrollBar = _useState1[1];
|
|
22366
22311
|
var observer = useRef();
|
|
22367
22312
|
var scrollRef = useRef(null);
|
|
22368
|
-
var ref = refForScroll !== null && refForScroll !== void 0 ? refForScroll : scrollRef;
|
|
22369
22313
|
var showedColumns = useMemo(function() {
|
|
22370
22314
|
return enabledColumns !== null && enabledColumns !== void 0 ? enabledColumns : Object.keys(config);
|
|
22371
22315
|
}, [
|
|
22372
22316
|
enabledColumns,
|
|
22373
22317
|
config
|
|
22374
22318
|
]);
|
|
22319
|
+
var getDataScrollAttributeSetter = useCallback(function(key, setter) {
|
|
22320
|
+
return function(el) {
|
|
22321
|
+
if (isHorizontallyScrollable && isNotEmpty(el) && setter(el)) {
|
|
22322
|
+
el.dataset[key] = "true";
|
|
22323
|
+
} else {
|
|
22324
|
+
el === null || el === void 0 ? void 0 : el.removeAttribute("data-".concat(key));
|
|
22325
|
+
}
|
|
22326
|
+
};
|
|
22327
|
+
}, [
|
|
22328
|
+
isHorizontallyScrollable
|
|
22329
|
+
]);
|
|
22330
|
+
var setHasScrollBarAttribute = useCallback(getDataScrollAttributeSetter("scrollable", hasHorizontalScrollBar), [
|
|
22331
|
+
getDataScrollAttributeSetter
|
|
22332
|
+
]);
|
|
22333
|
+
var setIsScrolledAttribute = useCallback(getDataScrollAttributeSetter("scrolled", function(el) {
|
|
22334
|
+
return el.scrollLeft > 0;
|
|
22335
|
+
}), [
|
|
22336
|
+
getDataScrollAttributeSetter
|
|
22337
|
+
]);
|
|
22338
|
+
var ref = useMergedRefs([
|
|
22339
|
+
refForScroll,
|
|
22340
|
+
scrollRef,
|
|
22341
|
+
setHasScrollBarAttribute,
|
|
22342
|
+
setIsScrolledAttribute
|
|
22343
|
+
]);
|
|
22375
22344
|
var initIntersectionObserver = useCallback(function(node) {
|
|
22376
22345
|
if (infinityScrollConfig) {
|
|
22377
22346
|
if (infinityScrollConfig.isLoading || infinityScrollConfig.activePage >= infinityScrollConfig.totalPages) {
|
|
@@ -22395,17 +22364,16 @@ function FlexibleTable(param) {
|
|
|
22395
22364
|
infinityScrollConfig === null || infinityScrollConfig === void 0 ? void 0 : infinityScrollConfig.onInfinityScroll
|
|
22396
22365
|
]);
|
|
22397
22366
|
useEffect(function() {
|
|
22398
|
-
var scrollContainer =
|
|
22399
|
-
if (isEmpty(scrollContainer) || !isHorizontallyScrollable
|
|
22367
|
+
var scrollContainer = scrollRef.current;
|
|
22368
|
+
if (isEmpty(scrollContainer) || !isHorizontallyScrollable) {
|
|
22400
22369
|
return;
|
|
22401
22370
|
}
|
|
22402
22371
|
var scrollHandler = function() {
|
|
22403
|
-
|
|
22372
|
+
setIsScrolledAttribute(scrollContainer);
|
|
22404
22373
|
};
|
|
22405
22374
|
var resizeHandler = function() {
|
|
22406
|
-
|
|
22375
|
+
setHasScrollBarAttribute(scrollContainer);
|
|
22407
22376
|
};
|
|
22408
|
-
resizeHandler();
|
|
22409
22377
|
scrollContainer.addEventListener("scroll", scrollHandler);
|
|
22410
22378
|
window.addEventListener("resize", resizeHandler);
|
|
22411
22379
|
return function() {
|
|
@@ -22413,16 +22381,14 @@ function FlexibleTable(param) {
|
|
|
22413
22381
|
window.removeEventListener("resize", resizeHandler);
|
|
22414
22382
|
};
|
|
22415
22383
|
}, [
|
|
22416
|
-
|
|
22384
|
+
scrollRef,
|
|
22385
|
+
setIsScrolledAttribute,
|
|
22386
|
+
setHasScrollBarAttribute
|
|
22417
22387
|
]);
|
|
22418
22388
|
var _activeRows_includes;
|
|
22419
|
-
return /* @__PURE__ */ jsx("div",
|
|
22389
|
+
return /* @__PURE__ */ jsx("div", {
|
|
22420
22390
|
ref,
|
|
22421
|
-
className: clsx(_define_property$g({}, classes.scroll, isHorizontallyScrollable))
|
|
22422
|
-
}, addDataAttributes({
|
|
22423
|
-
scrolled: isHorizontallyScrolled ? true : void 0,
|
|
22424
|
-
scrollable: isHorizontallyScrollable && hasScrollBar ? true : void 0
|
|
22425
|
-
})), {
|
|
22391
|
+
className: clsx(_define_property$g({}, classes.scroll, isHorizontallyScrollable)),
|
|
22426
22392
|
children: /* @__PURE__ */ jsxs("table", _object_spread_props$e(_object_spread$f({
|
|
22427
22393
|
className: classes.root
|
|
22428
22394
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
@@ -22508,7 +22474,7 @@ function FlexibleTable(param) {
|
|
|
22508
22474
|
})
|
|
22509
22475
|
]
|
|
22510
22476
|
}))
|
|
22511
|
-
})
|
|
22477
|
+
});
|
|
22512
22478
|
}
|
|
22513
22479
|
var BUTTONS_WIDTH = 36;
|
|
22514
22480
|
var BUTTONS_GAP = 2;
|
|
@@ -29041,6 +29007,7 @@ export {
|
|
|
29041
29007
|
useDidMountEffect,
|
|
29042
29008
|
useDropdown,
|
|
29043
29009
|
useIsMounted,
|
|
29010
|
+
useMergedRefs,
|
|
29044
29011
|
useMixedStyles,
|
|
29045
29012
|
useOnClickOutside,
|
|
29046
29013
|
useOnClickOutsideWithRef,
|