@true-engineering/true-react-common-ui-kit 4.0.0-alpha24 → 4.0.0-alpha26
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/components/FlexibleTable/FlexibleTable.d.ts +1 -1
- package/dist/components/FlexibleTable/types.d.ts +12 -4
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/use-intersection-ref.d.ts +8 -0
- package/dist/true-react-common-ui-kit.js +195 -114
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +195 -114
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/components/FlexibleTable/FlexibleTable.tsx +27 -51
- package/src/components/FlexibleTable/types.ts +12 -4
- package/src/components/MultiSelectList/MultiSelectList.tsx +15 -11
- package/src/components/WithPopup/WithPopup.tsx +3 -5
- package/src/hooks/index.ts +1 -0
- package/src/hooks/use-intersection-ref.ts +30 -0
|
@@ -1153,49 +1153,49 @@ var ThemeProvider = function(param) {
|
|
|
1153
1153
|
var useTheme = function() {
|
|
1154
1154
|
return useContext(ThemeContext).theme;
|
|
1155
1155
|
};
|
|
1156
|
-
function _array_like_to_array$
|
|
1156
|
+
function _array_like_to_array$u(arr, len) {
|
|
1157
1157
|
if (len == null || len > arr.length)
|
|
1158
1158
|
len = arr.length;
|
|
1159
1159
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
1160
1160
|
arr2[i] = arr[i];
|
|
1161
1161
|
return arr2;
|
|
1162
1162
|
}
|
|
1163
|
-
function _array_with_holes$
|
|
1163
|
+
function _array_with_holes$s(arr) {
|
|
1164
1164
|
if (Array.isArray(arr))
|
|
1165
1165
|
return arr;
|
|
1166
1166
|
}
|
|
1167
1167
|
function _array_without_holes$d(arr) {
|
|
1168
1168
|
if (Array.isArray(arr))
|
|
1169
|
-
return _array_like_to_array$
|
|
1169
|
+
return _array_like_to_array$u(arr);
|
|
1170
1170
|
}
|
|
1171
1171
|
function _iterable_to_array$d(iter) {
|
|
1172
1172
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
1173
1173
|
return Array.from(iter);
|
|
1174
1174
|
}
|
|
1175
|
-
function _non_iterable_rest$
|
|
1175
|
+
function _non_iterable_rest$s() {
|
|
1176
1176
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1177
1177
|
}
|
|
1178
1178
|
function _non_iterable_spread$d() {
|
|
1179
1179
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1180
1180
|
}
|
|
1181
1181
|
function _to_array$2(arr) {
|
|
1182
|
-
return _array_with_holes$
|
|
1182
|
+
return _array_with_holes$s(arr) || _iterable_to_array$d(arr) || _unsupported_iterable_to_array$u(arr) || _non_iterable_rest$s();
|
|
1183
1183
|
}
|
|
1184
1184
|
function _to_consumable_array$d(arr) {
|
|
1185
|
-
return _array_without_holes$d(arr) || _iterable_to_array$d(arr) || _unsupported_iterable_to_array$
|
|
1185
|
+
return _array_without_holes$d(arr) || _iterable_to_array$d(arr) || _unsupported_iterable_to_array$u(arr) || _non_iterable_spread$d();
|
|
1186
1186
|
}
|
|
1187
|
-
function _unsupported_iterable_to_array$
|
|
1187
|
+
function _unsupported_iterable_to_array$u(o, minLen) {
|
|
1188
1188
|
if (!o)
|
|
1189
1189
|
return;
|
|
1190
1190
|
if (typeof o === "string")
|
|
1191
|
-
return _array_like_to_array$
|
|
1191
|
+
return _array_like_to_array$u(o, minLen);
|
|
1192
1192
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1193
1193
|
if (n === "Object" && o.constructor)
|
|
1194
1194
|
n = o.constructor.name;
|
|
1195
1195
|
if (n === "Map" || n === "Set")
|
|
1196
1196
|
return Array.from(n);
|
|
1197
1197
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
1198
|
-
return _array_like_to_array$
|
|
1198
|
+
return _array_like_to_array$u(o, minLen);
|
|
1199
1199
|
}
|
|
1200
1200
|
var EMPTY_STYLES = {};
|
|
1201
1201
|
var isTweakStyle = function(key) {
|
|
@@ -1256,20 +1256,20 @@ var getTweakStylesCache = function() {
|
|
|
1256
1256
|
return mergedStyles = mergeTweakStyles(prev);
|
|
1257
1257
|
};
|
|
1258
1258
|
};
|
|
1259
|
-
function _array_like_to_array$
|
|
1259
|
+
function _array_like_to_array$t(arr, len) {
|
|
1260
1260
|
if (len == null || len > arr.length)
|
|
1261
1261
|
len = arr.length;
|
|
1262
1262
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
1263
1263
|
arr2[i] = arr[i];
|
|
1264
1264
|
return arr2;
|
|
1265
1265
|
}
|
|
1266
|
-
function _array_with_holes$
|
|
1266
|
+
function _array_with_holes$r(arr) {
|
|
1267
1267
|
if (Array.isArray(arr))
|
|
1268
1268
|
return arr;
|
|
1269
1269
|
}
|
|
1270
1270
|
function _array_without_holes$c(arr) {
|
|
1271
1271
|
if (Array.isArray(arr))
|
|
1272
|
-
return _array_like_to_array$
|
|
1272
|
+
return _array_like_to_array$t(arr);
|
|
1273
1273
|
}
|
|
1274
1274
|
function _check_private_redeclaration$1(obj, privateCollection) {
|
|
1275
1275
|
if (privateCollection.has(obj)) {
|
|
@@ -1350,7 +1350,7 @@ function _iterable_to_array$c(iter) {
|
|
|
1350
1350
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
1351
1351
|
return Array.from(iter);
|
|
1352
1352
|
}
|
|
1353
|
-
function _iterable_to_array_limit$
|
|
1353
|
+
function _iterable_to_array_limit$q(arr, i) {
|
|
1354
1354
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
1355
1355
|
if (_i == null)
|
|
1356
1356
|
return;
|
|
@@ -1378,7 +1378,7 @@ function _iterable_to_array_limit$p(arr, i) {
|
|
|
1378
1378
|
}
|
|
1379
1379
|
return _arr;
|
|
1380
1380
|
}
|
|
1381
|
-
function _non_iterable_rest$
|
|
1381
|
+
function _non_iterable_rest$r() {
|
|
1382
1382
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1383
1383
|
}
|
|
1384
1384
|
function _non_iterable_spread$c() {
|
|
@@ -1399,27 +1399,27 @@ function _object_spread$1a(target) {
|
|
|
1399
1399
|
}
|
|
1400
1400
|
return target;
|
|
1401
1401
|
}
|
|
1402
|
-
function _sliced_to_array$
|
|
1403
|
-
return _array_with_holes$
|
|
1402
|
+
function _sliced_to_array$q(arr, i) {
|
|
1403
|
+
return _array_with_holes$r(arr) || _iterable_to_array_limit$q(arr, i) || _unsupported_iterable_to_array$t(arr, i) || _non_iterable_rest$r();
|
|
1404
1404
|
}
|
|
1405
1405
|
function _to_array$1(arr) {
|
|
1406
|
-
return _array_with_holes$
|
|
1406
|
+
return _array_with_holes$r(arr) || _iterable_to_array$c(arr) || _unsupported_iterable_to_array$t(arr) || _non_iterable_rest$r();
|
|
1407
1407
|
}
|
|
1408
1408
|
function _to_consumable_array$c(arr) {
|
|
1409
|
-
return _array_without_holes$c(arr) || _iterable_to_array$c(arr) || _unsupported_iterable_to_array$
|
|
1409
|
+
return _array_without_holes$c(arr) || _iterable_to_array$c(arr) || _unsupported_iterable_to_array$t(arr) || _non_iterable_spread$c();
|
|
1410
1410
|
}
|
|
1411
|
-
function _unsupported_iterable_to_array$
|
|
1411
|
+
function _unsupported_iterable_to_array$t(o, minLen) {
|
|
1412
1412
|
if (!o)
|
|
1413
1413
|
return;
|
|
1414
1414
|
if (typeof o === "string")
|
|
1415
|
-
return _array_like_to_array$
|
|
1415
|
+
return _array_like_to_array$t(o, minLen);
|
|
1416
1416
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1417
1417
|
if (n === "Object" && o.constructor)
|
|
1418
1418
|
n = o.constructor.name;
|
|
1419
1419
|
if (n === "Map" || n === "Set")
|
|
1420
1420
|
return Array.from(n);
|
|
1421
1421
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
1422
|
-
return _array_like_to_array$
|
|
1422
|
+
return _array_like_to_array$t(o, minLen);
|
|
1423
1423
|
}
|
|
1424
1424
|
var _map = /* @__PURE__ */ new WeakMap(), _sheet = /* @__PURE__ */ new WeakMap(), _classes = /* @__PURE__ */ new WeakMap(), _tweak = /* @__PURE__ */ new WeakMap(), _tweakRules = /* @__PURE__ */ new WeakMap();
|
|
1425
1425
|
var TweakStylesManager = /* @__PURE__ */ function() {
|
|
@@ -1546,7 +1546,7 @@ var TweakStylesManager = /* @__PURE__ */ function() {
|
|
|
1546
1546
|
value: function addRules(styles) {
|
|
1547
1547
|
var _this = this;
|
|
1548
1548
|
return new Map(Object.entries(styles).map(function(param) {
|
|
1549
|
-
var _param = _sliced_to_array$
|
|
1549
|
+
var _param = _sliced_to_array$q(param, 2), key = _param[0], style = _param[1];
|
|
1550
1550
|
return _this.addRule(key, style);
|
|
1551
1551
|
}).filter(isNotEmpty));
|
|
1552
1552
|
}
|
|
@@ -1882,14 +1882,14 @@ var useMixedStyles = function(baseStyles, tweakStyles) {
|
|
|
1882
1882
|
tweakStyles
|
|
1883
1883
|
]);
|
|
1884
1884
|
};
|
|
1885
|
-
function _array_like_to_array$
|
|
1885
|
+
function _array_like_to_array$s(arr, len) {
|
|
1886
1886
|
if (len == null || len > arr.length)
|
|
1887
1887
|
len = arr.length;
|
|
1888
1888
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
1889
1889
|
arr2[i] = arr[i];
|
|
1890
1890
|
return arr2;
|
|
1891
1891
|
}
|
|
1892
|
-
function _array_with_holes$
|
|
1892
|
+
function _array_with_holes$q(arr) {
|
|
1893
1893
|
if (Array.isArray(arr))
|
|
1894
1894
|
return arr;
|
|
1895
1895
|
}
|
|
@@ -1906,7 +1906,7 @@ function _define_property$19(obj, key, value) {
|
|
|
1906
1906
|
}
|
|
1907
1907
|
return obj;
|
|
1908
1908
|
}
|
|
1909
|
-
function _iterable_to_array_limit$
|
|
1909
|
+
function _iterable_to_array_limit$p(arr, i) {
|
|
1910
1910
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
1911
1911
|
if (_i == null)
|
|
1912
1912
|
return;
|
|
@@ -1934,7 +1934,7 @@ function _iterable_to_array_limit$o(arr, i) {
|
|
|
1934
1934
|
}
|
|
1935
1935
|
return _arr;
|
|
1936
1936
|
}
|
|
1937
|
-
function _non_iterable_rest$
|
|
1937
|
+
function _non_iterable_rest$q() {
|
|
1938
1938
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1939
1939
|
}
|
|
1940
1940
|
function _object_spread$17(target) {
|
|
@@ -1976,28 +1976,28 @@ function _object_spread_props$V(target, source) {
|
|
|
1976
1976
|
}
|
|
1977
1977
|
return target;
|
|
1978
1978
|
}
|
|
1979
|
-
function _sliced_to_array$
|
|
1980
|
-
return _array_with_holes$
|
|
1979
|
+
function _sliced_to_array$p(arr, i) {
|
|
1980
|
+
return _array_with_holes$q(arr) || _iterable_to_array_limit$p(arr, i) || _unsupported_iterable_to_array$s(arr, i) || _non_iterable_rest$q();
|
|
1981
1981
|
}
|
|
1982
|
-
function _unsupported_iterable_to_array$
|
|
1982
|
+
function _unsupported_iterable_to_array$s(o, minLen) {
|
|
1983
1983
|
if (!o)
|
|
1984
1984
|
return;
|
|
1985
1985
|
if (typeof o === "string")
|
|
1986
|
-
return _array_like_to_array$
|
|
1986
|
+
return _array_like_to_array$s(o, minLen);
|
|
1987
1987
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1988
1988
|
if (n === "Object" && o.constructor)
|
|
1989
1989
|
n = o.constructor.name;
|
|
1990
1990
|
if (n === "Map" || n === "Set")
|
|
1991
1991
|
return Array.from(n);
|
|
1992
1992
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
1993
|
-
return _array_like_to_array$
|
|
1993
|
+
return _array_like_to_array$s(o, minLen);
|
|
1994
1994
|
}
|
|
1995
1995
|
var DEFAULT_NAME = "LocalComponent";
|
|
1996
1996
|
function createThemedStyles() {
|
|
1997
1997
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1998
1998
|
args[_key] = arguments[_key];
|
|
1999
1999
|
}
|
|
2000
|
-
var _ref = _sliced_to_array$
|
|
2000
|
+
var _ref = _sliced_to_array$p(args.length === 2 ? args : [
|
|
2001
2001
|
void 0,
|
|
2002
2002
|
args[0]
|
|
2003
2003
|
], 2), componentName = _ref[0], styles = _ref[1];
|
|
@@ -4744,7 +4744,7 @@ var mimeTypes = {
|
|
|
4744
4744
|
"3g2": "video/3gpp2",
|
|
4745
4745
|
"7z": "application/x-7z-compressed"
|
|
4746
4746
|
};
|
|
4747
|
-
function _array_like_to_array$
|
|
4747
|
+
function _array_like_to_array$r(arr, len) {
|
|
4748
4748
|
if (len == null || len > arr.length)
|
|
4749
4749
|
len = arr.length;
|
|
4750
4750
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
@@ -4753,7 +4753,7 @@ function _array_like_to_array$q(arr, len) {
|
|
|
4753
4753
|
}
|
|
4754
4754
|
function _array_without_holes$b(arr) {
|
|
4755
4755
|
if (Array.isArray(arr))
|
|
4756
|
-
return _array_like_to_array$
|
|
4756
|
+
return _array_like_to_array$r(arr);
|
|
4757
4757
|
}
|
|
4758
4758
|
function _iterable_to_array$b(iter) {
|
|
4759
4759
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
@@ -4763,20 +4763,20 @@ function _non_iterable_spread$b() {
|
|
|
4763
4763
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
4764
4764
|
}
|
|
4765
4765
|
function _to_consumable_array$b(arr) {
|
|
4766
|
-
return _array_without_holes$b(arr) || _iterable_to_array$b(arr) || _unsupported_iterable_to_array$
|
|
4766
|
+
return _array_without_holes$b(arr) || _iterable_to_array$b(arr) || _unsupported_iterable_to_array$r(arr) || _non_iterable_spread$b();
|
|
4767
4767
|
}
|
|
4768
|
-
function _unsupported_iterable_to_array$
|
|
4768
|
+
function _unsupported_iterable_to_array$r(o, minLen) {
|
|
4769
4769
|
if (!o)
|
|
4770
4770
|
return;
|
|
4771
4771
|
if (typeof o === "string")
|
|
4772
|
-
return _array_like_to_array$
|
|
4772
|
+
return _array_like_to_array$r(o, minLen);
|
|
4773
4773
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
4774
4774
|
if (n === "Object" && o.constructor)
|
|
4775
4775
|
n = o.constructor.name;
|
|
4776
4776
|
if (n === "Map" || n === "Set")
|
|
4777
4777
|
return Array.from(n);
|
|
4778
4778
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
4779
|
-
return _array_like_to_array$
|
|
4779
|
+
return _array_like_to_array$r(o, minLen);
|
|
4780
4780
|
}
|
|
4781
4781
|
var findCountryByCode = function(countryCode) {
|
|
4782
4782
|
var countriesList = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : phoneInfo;
|
|
@@ -4862,18 +4862,18 @@ var getPhoneMask = function(countryCode) {
|
|
|
4862
4862
|
}
|
|
4863
4863
|
return mask;
|
|
4864
4864
|
};
|
|
4865
|
-
function _array_like_to_array$
|
|
4865
|
+
function _array_like_to_array$q(arr, len) {
|
|
4866
4866
|
if (len == null || len > arr.length)
|
|
4867
4867
|
len = arr.length;
|
|
4868
4868
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
4869
4869
|
arr2[i] = arr[i];
|
|
4870
4870
|
return arr2;
|
|
4871
4871
|
}
|
|
4872
|
-
function _array_with_holes$
|
|
4872
|
+
function _array_with_holes$p(arr) {
|
|
4873
4873
|
if (Array.isArray(arr))
|
|
4874
4874
|
return arr;
|
|
4875
4875
|
}
|
|
4876
|
-
function _iterable_to_array_limit$
|
|
4876
|
+
function _iterable_to_array_limit$o(arr, i) {
|
|
4877
4877
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
4878
4878
|
if (_i == null)
|
|
4879
4879
|
return;
|
|
@@ -4901,24 +4901,24 @@ function _iterable_to_array_limit$n(arr, i) {
|
|
|
4901
4901
|
}
|
|
4902
4902
|
return _arr;
|
|
4903
4903
|
}
|
|
4904
|
-
function _non_iterable_rest$
|
|
4904
|
+
function _non_iterable_rest$p() {
|
|
4905
4905
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
4906
4906
|
}
|
|
4907
|
-
function _sliced_to_array$
|
|
4908
|
-
return _array_with_holes$
|
|
4907
|
+
function _sliced_to_array$o(arr, i) {
|
|
4908
|
+
return _array_with_holes$p(arr) || _iterable_to_array_limit$o(arr, i) || _unsupported_iterable_to_array$q(arr, i) || _non_iterable_rest$p();
|
|
4909
4909
|
}
|
|
4910
|
-
function _unsupported_iterable_to_array$
|
|
4910
|
+
function _unsupported_iterable_to_array$q(o, minLen) {
|
|
4911
4911
|
if (!o)
|
|
4912
4912
|
return;
|
|
4913
4913
|
if (typeof o === "string")
|
|
4914
|
-
return _array_like_to_array$
|
|
4914
|
+
return _array_like_to_array$q(o, minLen);
|
|
4915
4915
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
4916
4916
|
if (n === "Object" && o.constructor)
|
|
4917
4917
|
n = o.constructor.name;
|
|
4918
4918
|
if (n === "Map" || n === "Set")
|
|
4919
4919
|
return Array.from(n);
|
|
4920
4920
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
4921
|
-
return _array_like_to_array$
|
|
4921
|
+
return _array_like_to_array$q(o, minLen);
|
|
4922
4922
|
}
|
|
4923
4923
|
var rgba = hexToRgba;
|
|
4924
4924
|
var transformToKebab = function(string) {
|
|
@@ -5041,7 +5041,7 @@ var trimStringToMaxLength = function(val, maxLength) {
|
|
|
5041
5041
|
var addDataAttributes = function() {
|
|
5042
5042
|
var data = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
5043
5043
|
return Object.fromEntries(Object.entries(data).map(function(param) {
|
|
5044
|
-
var _param = _sliced_to_array$
|
|
5044
|
+
var _param = _sliced_to_array$o(param, 2), key = _param[0], value = _param[1];
|
|
5045
5045
|
return isString(value) && isStringNotEmpty(value) || isNotEmpty(value) ? [
|
|
5046
5046
|
"data-".concat(transformToKebab(key)),
|
|
5047
5047
|
value
|
|
@@ -6567,7 +6567,7 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
6567
6567
|
}, [enabled, referenceElement, popperElement]);
|
|
6568
6568
|
return popperState;
|
|
6569
6569
|
}
|
|
6570
|
-
function _array_like_to_array$
|
|
6570
|
+
function _array_like_to_array$p(arr, len) {
|
|
6571
6571
|
if (len == null || len > arr.length)
|
|
6572
6572
|
len = arr.length;
|
|
6573
6573
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
@@ -6576,7 +6576,7 @@ function _array_like_to_array$o(arr, len) {
|
|
|
6576
6576
|
}
|
|
6577
6577
|
function _array_without_holes$a(arr) {
|
|
6578
6578
|
if (Array.isArray(arr))
|
|
6579
|
-
return _array_like_to_array$
|
|
6579
|
+
return _array_like_to_array$p(arr);
|
|
6580
6580
|
}
|
|
6581
6581
|
function _define_property$18(obj, key, value) {
|
|
6582
6582
|
if (key in obj) {
|
|
@@ -6614,20 +6614,20 @@ function _object_spread$16(target) {
|
|
|
6614
6614
|
return target;
|
|
6615
6615
|
}
|
|
6616
6616
|
function _to_consumable_array$a(arr) {
|
|
6617
|
-
return _array_without_holes$a(arr) || _iterable_to_array$a(arr) || _unsupported_iterable_to_array$
|
|
6617
|
+
return _array_without_holes$a(arr) || _iterable_to_array$a(arr) || _unsupported_iterable_to_array$p(arr) || _non_iterable_spread$a();
|
|
6618
6618
|
}
|
|
6619
|
-
function _unsupported_iterable_to_array$
|
|
6619
|
+
function _unsupported_iterable_to_array$p(o, minLen) {
|
|
6620
6620
|
if (!o)
|
|
6621
6621
|
return;
|
|
6622
6622
|
if (typeof o === "string")
|
|
6623
|
-
return _array_like_to_array$
|
|
6623
|
+
return _array_like_to_array$p(o, minLen);
|
|
6624
6624
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6625
6625
|
if (n === "Object" && o.constructor)
|
|
6626
6626
|
n = o.constructor.name;
|
|
6627
6627
|
if (n === "Map" || n === "Set")
|
|
6628
6628
|
return Array.from(n);
|
|
6629
6629
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
6630
|
-
return _array_like_to_array$
|
|
6630
|
+
return _array_like_to_array$p(o, minLen);
|
|
6631
6631
|
}
|
|
6632
6632
|
var useDropdown = function(param) {
|
|
6633
6633
|
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;
|
|
@@ -6683,49 +6683,49 @@ var useDropdown = function(param) {
|
|
|
6683
6683
|
}, dependenciesForPositionUpdating);
|
|
6684
6684
|
return popperData;
|
|
6685
6685
|
};
|
|
6686
|
-
function _array_like_to_array$
|
|
6686
|
+
function _array_like_to_array$o(arr, len) {
|
|
6687
6687
|
if (len == null || len > arr.length)
|
|
6688
6688
|
len = arr.length;
|
|
6689
6689
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
6690
6690
|
arr2[i] = arr[i];
|
|
6691
6691
|
return arr2;
|
|
6692
6692
|
}
|
|
6693
|
-
function _array_with_holes$
|
|
6693
|
+
function _array_with_holes$o(arr) {
|
|
6694
6694
|
if (Array.isArray(arr))
|
|
6695
6695
|
return arr;
|
|
6696
6696
|
}
|
|
6697
6697
|
function _array_without_holes$9(arr) {
|
|
6698
6698
|
if (Array.isArray(arr))
|
|
6699
|
-
return _array_like_to_array$
|
|
6699
|
+
return _array_like_to_array$o(arr);
|
|
6700
6700
|
}
|
|
6701
6701
|
function _iterable_to_array$9(iter) {
|
|
6702
6702
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
6703
6703
|
return Array.from(iter);
|
|
6704
6704
|
}
|
|
6705
|
-
function _non_iterable_rest$
|
|
6705
|
+
function _non_iterable_rest$o() {
|
|
6706
6706
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6707
6707
|
}
|
|
6708
6708
|
function _non_iterable_spread$9() {
|
|
6709
6709
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6710
6710
|
}
|
|
6711
6711
|
function _to_array(arr) {
|
|
6712
|
-
return _array_with_holes$
|
|
6712
|
+
return _array_with_holes$o(arr) || _iterable_to_array$9(arr) || _unsupported_iterable_to_array$o(arr) || _non_iterable_rest$o();
|
|
6713
6713
|
}
|
|
6714
6714
|
function _to_consumable_array$9(arr) {
|
|
6715
|
-
return _array_without_holes$9(arr) || _iterable_to_array$9(arr) || _unsupported_iterable_to_array$
|
|
6715
|
+
return _array_without_holes$9(arr) || _iterable_to_array$9(arr) || _unsupported_iterable_to_array$o(arr) || _non_iterable_spread$9();
|
|
6716
6716
|
}
|
|
6717
|
-
function _unsupported_iterable_to_array$
|
|
6717
|
+
function _unsupported_iterable_to_array$o(o, minLen) {
|
|
6718
6718
|
if (!o)
|
|
6719
6719
|
return;
|
|
6720
6720
|
if (typeof o === "string")
|
|
6721
|
-
return _array_like_to_array$
|
|
6721
|
+
return _array_like_to_array$o(o, minLen);
|
|
6722
6722
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6723
6723
|
if (n === "Object" && o.constructor)
|
|
6724
6724
|
n = o.constructor.name;
|
|
6725
6725
|
if (n === "Map" || n === "Set")
|
|
6726
6726
|
return Array.from(n);
|
|
6727
6727
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
6728
|
-
return _array_like_to_array$
|
|
6728
|
+
return _array_like_to_array$o(o, minLen);
|
|
6729
6729
|
}
|
|
6730
6730
|
var useTweakStyles = function(param) {
|
|
6731
6731
|
var innerStyles = param.innerStyles, tweakStyles = param.tweakStyles, className = param.className, currentComponentName = param.currentComponentName;
|
|
@@ -6794,6 +6794,87 @@ var useMerge = function(one, two) {
|
|
|
6794
6794
|
two
|
|
6795
6795
|
]);
|
|
6796
6796
|
};
|
|
6797
|
+
function _array_like_to_array$n(arr, len) {
|
|
6798
|
+
if (len == null || len > arr.length)
|
|
6799
|
+
len = arr.length;
|
|
6800
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
6801
|
+
arr2[i] = arr[i];
|
|
6802
|
+
return arr2;
|
|
6803
|
+
}
|
|
6804
|
+
function _array_with_holes$n(arr) {
|
|
6805
|
+
if (Array.isArray(arr))
|
|
6806
|
+
return arr;
|
|
6807
|
+
}
|
|
6808
|
+
function _iterable_to_array_limit$n(arr, i) {
|
|
6809
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
6810
|
+
if (_i == null)
|
|
6811
|
+
return;
|
|
6812
|
+
var _arr = [];
|
|
6813
|
+
var _n = true;
|
|
6814
|
+
var _d = false;
|
|
6815
|
+
var _s, _e;
|
|
6816
|
+
try {
|
|
6817
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
6818
|
+
_arr.push(_s.value);
|
|
6819
|
+
if (i && _arr.length === i)
|
|
6820
|
+
break;
|
|
6821
|
+
}
|
|
6822
|
+
} catch (err) {
|
|
6823
|
+
_d = true;
|
|
6824
|
+
_e = err;
|
|
6825
|
+
} finally {
|
|
6826
|
+
try {
|
|
6827
|
+
if (!_n && _i["return"] != null)
|
|
6828
|
+
_i["return"]();
|
|
6829
|
+
} finally {
|
|
6830
|
+
if (_d)
|
|
6831
|
+
throw _e;
|
|
6832
|
+
}
|
|
6833
|
+
}
|
|
6834
|
+
return _arr;
|
|
6835
|
+
}
|
|
6836
|
+
function _non_iterable_rest$n() {
|
|
6837
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6838
|
+
}
|
|
6839
|
+
function _sliced_to_array$n(arr, i) {
|
|
6840
|
+
return _array_with_holes$n(arr) || _iterable_to_array_limit$n(arr, i) || _unsupported_iterable_to_array$n(arr, i) || _non_iterable_rest$n();
|
|
6841
|
+
}
|
|
6842
|
+
function _unsupported_iterable_to_array$n(o, minLen) {
|
|
6843
|
+
if (!o)
|
|
6844
|
+
return;
|
|
6845
|
+
if (typeof o === "string")
|
|
6846
|
+
return _array_like_to_array$n(o, minLen);
|
|
6847
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6848
|
+
if (n === "Object" && o.constructor)
|
|
6849
|
+
n = o.constructor.name;
|
|
6850
|
+
if (n === "Map" || n === "Set")
|
|
6851
|
+
return Array.from(n);
|
|
6852
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
6853
|
+
return _array_like_to_array$n(o, minLen);
|
|
6854
|
+
}
|
|
6855
|
+
var useIntersectionRef = function(options) {
|
|
6856
|
+
var optionsRef = useRef(options);
|
|
6857
|
+
optionsRef.current = options;
|
|
6858
|
+
return useMemo(function() {
|
|
6859
|
+
var observer = new IntersectionObserver(function(param) {
|
|
6860
|
+
var _param = _sliced_to_array$n(param, 1), isIntersecting = _param[0].isIntersecting;
|
|
6861
|
+
var current = optionsRef.current;
|
|
6862
|
+
if (current === null || current === void 0 ? void 0 : current.isDisabled) {
|
|
6863
|
+
return;
|
|
6864
|
+
}
|
|
6865
|
+
if (isIntersecting) {
|
|
6866
|
+
var _current_onIntersection;
|
|
6867
|
+
current === null || current === void 0 ? void 0 : (_current_onIntersection = current.onIntersection) === null || _current_onIntersection === void 0 ? void 0 : _current_onIntersection.call(current);
|
|
6868
|
+
} else {
|
|
6869
|
+
var _current_onIntersectionEnd;
|
|
6870
|
+
current === null || current === void 0 ? void 0 : (_current_onIntersectionEnd = current.onIntersectionEnd) === null || _current_onIntersectionEnd === void 0 ? void 0 : _current_onIntersectionEnd.call(current);
|
|
6871
|
+
}
|
|
6872
|
+
});
|
|
6873
|
+
return function(node) {
|
|
6874
|
+
return isNotEmpty(node) ? observer.observe(node) : observer.disconnect();
|
|
6875
|
+
};
|
|
6876
|
+
}, []);
|
|
6877
|
+
};
|
|
6797
6878
|
const avatarGreen = ` <svg
|
|
6798
6879
|
width="100%"
|
|
6799
6880
|
height="100%"
|
|
@@ -8114,16 +8195,14 @@ var WithPopup = function(param) {
|
|
|
8114
8195
|
var arrowRef = useRef(null);
|
|
8115
8196
|
var handleToggle = function(isActive, event) {
|
|
8116
8197
|
event === null || event === void 0 ? void 0 : event.stopPropagation();
|
|
8117
|
-
|
|
8118
|
-
|
|
8119
|
-
setIsOpen(isActive);
|
|
8120
|
-
}
|
|
8198
|
+
onToggle === null || onToggle === void 0 ? void 0 : onToggle(isActive, event);
|
|
8199
|
+
setIsOpen(isActive);
|
|
8121
8200
|
};
|
|
8122
8201
|
var handleClose = function(event) {
|
|
8123
8202
|
handleToggle(false, event);
|
|
8124
8203
|
};
|
|
8125
8204
|
var _useFloating = useFloating({
|
|
8126
|
-
open: isOpen,
|
|
8205
|
+
open: isOpen && !isDisabled,
|
|
8127
8206
|
middleware: [
|
|
8128
8207
|
offset$2(popupOffset),
|
|
8129
8208
|
canBeFlipped && flip$2({
|
|
@@ -18155,7 +18234,7 @@ function MultiSelectList(param) {
|
|
|
18155
18234
|
var shouldShowOptionsList = !isLoading && (isArrayNotEmpty(allOptions) || isArrayNotEmpty(chosenValues));
|
|
18156
18235
|
return /* @__PURE__ */ jsxs("div", _object_spread_props$u(_object_spread$x({
|
|
18157
18236
|
className: classes.root
|
|
18158
|
-
}, addDataAttributes(data)), {
|
|
18237
|
+
}, addDataAttributes$1(data, testId)), {
|
|
18159
18238
|
children: [
|
|
18160
18239
|
isSearchEnabled && /* @__PURE__ */ jsx("div", {
|
|
18161
18240
|
className: classes.dropdownInput,
|
|
@@ -18165,13 +18244,13 @@ function MultiSelectList(param) {
|
|
|
18165
18244
|
onChange: handleOnChange,
|
|
18166
18245
|
tweakStyles: tweakSearchInputStyles,
|
|
18167
18246
|
maxLength: searchMaxLength,
|
|
18168
|
-
testId:
|
|
18247
|
+
testId: getTestId(testId, "search"),
|
|
18169
18248
|
shouldFocusOnMount: true
|
|
18170
18249
|
})
|
|
18171
18250
|
}),
|
|
18172
|
-
shouldShowOptionsList && /* @__PURE__ */ jsxs("div", {
|
|
18173
|
-
className: classes.list
|
|
18174
|
-
|
|
18251
|
+
shouldShowOptionsList && /* @__PURE__ */ jsxs("div", _object_spread_props$u(_object_spread$x({
|
|
18252
|
+
className: classes.list
|
|
18253
|
+
}, addDataTestId(testId, "list")), {
|
|
18175
18254
|
children: [
|
|
18176
18255
|
hasSelectedOptionsGroup && /* @__PURE__ */ jsxs(Fragment, {
|
|
18177
18256
|
children: [
|
|
@@ -18190,11 +18269,16 @@ function MultiSelectList(param) {
|
|
|
18190
18269
|
value: val,
|
|
18191
18270
|
tweakStyles: tweakCheckboxStyles,
|
|
18192
18271
|
labelPosition: checkboxPosition === "left" ? "right" : "left",
|
|
18193
|
-
|
|
18194
|
-
|
|
18195
|
-
|
|
18272
|
+
data: {
|
|
18273
|
+
id
|
|
18274
|
+
},
|
|
18275
|
+
children: /* @__PURE__ */ jsx("div", _object_spread_props$u(_object_spread$x({
|
|
18276
|
+
className: classes.option
|
|
18277
|
+
}, addDataAttributes$1({
|
|
18278
|
+
option: id
|
|
18279
|
+
})), {
|
|
18196
18280
|
children: view
|
|
18197
|
-
})
|
|
18281
|
+
}))
|
|
18198
18282
|
})
|
|
18199
18283
|
}, id);
|
|
18200
18284
|
})
|
|
@@ -18218,18 +18302,23 @@ function MultiSelectList(param) {
|
|
|
18218
18302
|
value: val,
|
|
18219
18303
|
tweakStyles: tweakCheckboxStyles,
|
|
18220
18304
|
labelPosition: checkboxPosition === "left" ? "right" : "left",
|
|
18221
|
-
|
|
18222
|
-
|
|
18223
|
-
|
|
18305
|
+
data: {
|
|
18306
|
+
id
|
|
18307
|
+
},
|
|
18308
|
+
children: /* @__PURE__ */ jsx("div", _object_spread_props$u(_object_spread$x({
|
|
18309
|
+
className: classes.option
|
|
18310
|
+
}, addDataAttributes$1({
|
|
18311
|
+
option: id
|
|
18312
|
+
})), {
|
|
18224
18313
|
children: view
|
|
18225
|
-
})
|
|
18314
|
+
}))
|
|
18226
18315
|
})
|
|
18227
18316
|
}, id);
|
|
18228
18317
|
})
|
|
18229
18318
|
]
|
|
18230
18319
|
})
|
|
18231
18320
|
]
|
|
18232
|
-
}),
|
|
18321
|
+
})),
|
|
18233
18322
|
shouldShowPreloader && /* @__PURE__ */ jsx("div", {
|
|
18234
18323
|
className: classes.preloader,
|
|
18235
18324
|
children: /* @__PURE__ */ jsx(ThemedPreloader, {
|
|
@@ -18248,7 +18337,7 @@ function MultiSelectList(param) {
|
|
|
18248
18337
|
onClick: handleClear,
|
|
18249
18338
|
size: "s",
|
|
18250
18339
|
view: "text",
|
|
18251
|
-
testId:
|
|
18340
|
+
testId: getTestId(testId, "clear-button"),
|
|
18252
18341
|
tweakStyles: tweakClearButtonStyles,
|
|
18253
18342
|
children: translates.clear
|
|
18254
18343
|
})
|
|
@@ -27694,7 +27783,7 @@ function _object_without_properties_loose$8(source, excluded) {
|
|
|
27694
27783
|
return target;
|
|
27695
27784
|
}
|
|
27696
27785
|
function FlexibleTable(_param) {
|
|
27697
|
-
var content = _param.content, headerContent = _param.headerContent, config = _param.config, enabledColumns = _param.enabledColumns, activeRows = _param.activeRows, uniqueField = _param.uniqueField, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isFirstColumnSticky = _param.isFirstColumnSticky, isFirstColumnSticky = _param_isFirstColumnSticky === void 0 ? false : _param_isFirstColumnSticky, _param_isHorizontallyScrollable = _param.isHorizontallyScrollable, isHorizontallyScrollable = _param_isHorizontallyScrollable === void 0 ? false : _param_isHorizontallyScrollable, _param_isRowFocusable = _param.isRowFocusable, isRowFocusable = _param_isRowFocusable === void 0 ? false : _param_isRowFocusable,
|
|
27786
|
+
var content = _param.content, headerContent = _param.headerContent, config = _param.config, enabledColumns = _param.enabledColumns, activeRows = _param.activeRows, uniqueField = _param.uniqueField, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isFirstColumnSticky = _param.isFirstColumnSticky, isFirstColumnSticky = _param_isFirstColumnSticky === void 0 ? false : _param_isFirstColumnSticky, _param_isHorizontallyScrollable = _param.isHorizontallyScrollable, isHorizontallyScrollable = _param_isHorizontallyScrollable === void 0 ? false : _param_isHorizontallyScrollable, _param_isRowFocusable = _param.isRowFocusable, isRowFocusable = _param_isRowFocusable === void 0 ? false : _param_isRowFocusable, infinityScrollConfigDeprecated = _param.infinityScrollConfig, _param_renderMode = _param.renderMode, renderMode = _param_renderMode === void 0 ? "table" : _param_renderMode, refForScroll = _param.refForScroll, nothingFoundContent = _param.nothingFoundContent, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, _param_shouldRenderHeader = _param.shouldRenderHeader, shouldRenderHeader = _param_shouldRenderHeader === void 0 ? true : _param_shouldRenderHeader, onHeadClick = _param.onHeadClick, isRowInitiallyOpen = _param.isExpandableRowComponentInitiallyOpen, restProps = _object_without_properties$8(_param, [
|
|
27698
27787
|
"content",
|
|
27699
27788
|
"headerContent",
|
|
27700
27789
|
"config",
|
|
@@ -27724,7 +27813,6 @@ function FlexibleTable(_param) {
|
|
|
27724
27813
|
className: "tweakTableRow",
|
|
27725
27814
|
currentComponentName: "FlexibleTable"
|
|
27726
27815
|
});
|
|
27727
|
-
var observer = useRef();
|
|
27728
27816
|
var scrollRef = useRef(null);
|
|
27729
27817
|
var columns = useMemo(function() {
|
|
27730
27818
|
return enabledColumns !== null && enabledColumns !== void 0 ? enabledColumns : Object.keys(config);
|
|
@@ -27732,7 +27820,6 @@ function FlexibleTable(_param) {
|
|
|
27732
27820
|
enabledColumns,
|
|
27733
27821
|
config
|
|
27734
27822
|
]);
|
|
27735
|
-
var hasInfiniteScroll = isNotEmpty(infinityScrollConfig);
|
|
27736
27823
|
var getTableRowProps = function(item, index) {
|
|
27737
27824
|
return _object_spread_props$j(_object_spread$k({}, restProps), {
|
|
27738
27825
|
item,
|
|
@@ -27770,34 +27857,26 @@ function FlexibleTable(_param) {
|
|
|
27770
27857
|
}, [
|
|
27771
27858
|
getDataScrollAttributeSetter
|
|
27772
27859
|
]);
|
|
27773
|
-
var shouldShowNothingFound = !isArrayNotEmpty(content) && nothingFoundContent !== void 0 && !(infinityScrollConfig === null || infinityScrollConfig === void 0 ? void 0 : infinityScrollConfig.isLoading) && ((infinityScrollConfig === null || infinityScrollConfig === void 0 ? void 0 : infinityScrollConfig.isLastPage) === void 0 || infinityScrollConfig.isLastPage);
|
|
27774
27860
|
var ref = useMergedRefs([
|
|
27775
27861
|
refForScroll,
|
|
27776
27862
|
scrollRef,
|
|
27777
27863
|
setHasScrollBarAttribute,
|
|
27778
27864
|
setIsScrolledAttribute
|
|
27779
27865
|
]);
|
|
27780
|
-
var
|
|
27781
|
-
|
|
27782
|
-
|
|
27783
|
-
|
|
27784
|
-
|
|
27785
|
-
|
|
27786
|
-
}
|
|
27787
|
-
|
|
27788
|
-
|
|
27789
|
-
|
|
27790
|
-
|
|
27791
|
-
|
|
27792
|
-
|
|
27793
|
-
|
|
27794
|
-
}
|
|
27795
|
-
}, [
|
|
27796
|
-
hasInfiniteScroll,
|
|
27797
|
-
infinityScrollConfig === null || infinityScrollConfig === void 0 ? void 0 : infinityScrollConfig.activePage,
|
|
27798
|
-
infinityScrollConfig === null || infinityScrollConfig === void 0 ? void 0 : infinityScrollConfig.totalPages,
|
|
27799
|
-
infinityScrollConfig === null || infinityScrollConfig === void 0 ? void 0 : infinityScrollConfig.onInfinityScroll
|
|
27800
|
-
]);
|
|
27866
|
+
var _infinityScrollConfigDeprecated_isEnabled;
|
|
27867
|
+
var infinityScrollConfig = infinityScrollConfigDeprecated && {
|
|
27868
|
+
isLoading: infinityScrollConfigDeprecated.isLoading,
|
|
27869
|
+
onInfinityScroll: function() {
|
|
27870
|
+
var _infinityScrollConfigDeprecated_activePage;
|
|
27871
|
+
return infinityScrollConfigDeprecated.onInfinityScroll(((_infinityScrollConfigDeprecated_activePage = infinityScrollConfigDeprecated.activePage) !== null && _infinityScrollConfigDeprecated_activePage !== void 0 ? _infinityScrollConfigDeprecated_activePage : 0) + 1);
|
|
27872
|
+
},
|
|
27873
|
+
isEnabled: (_infinityScrollConfigDeprecated_isEnabled = infinityScrollConfigDeprecated.isEnabled) !== null && _infinityScrollConfigDeprecated_isEnabled !== void 0 ? _infinityScrollConfigDeprecated_isEnabled : !infinityScrollConfigDeprecated.isLastPage
|
|
27874
|
+
};
|
|
27875
|
+
var intersectionRef = useIntersectionRef({
|
|
27876
|
+
isDisabled: !(infinityScrollConfig === null || infinityScrollConfig === void 0 ? void 0 : infinityScrollConfig.isEnabled) || infinityScrollConfig.isLoading,
|
|
27877
|
+
onIntersection: infinityScrollConfig === null || infinityScrollConfig === void 0 ? void 0 : infinityScrollConfig.onInfinityScroll
|
|
27878
|
+
});
|
|
27879
|
+
var shouldShowNothingFound = isReactNodeNotEmpty(nothingFoundContent) && !isArrayNotEmpty(content) && !(infinityScrollConfig === null || infinityScrollConfig === void 0 ? void 0 : infinityScrollConfig.isLoading) && !(infinityScrollConfig === null || infinityScrollConfig === void 0 ? void 0 : infinityScrollConfig.isEnabled);
|
|
27801
27880
|
useEffect(function() {
|
|
27802
27881
|
var scrollContainer = scrollRef.current;
|
|
27803
27882
|
if (isEmpty(scrollContainer) || !isHorizontallyScrollable) {
|
|
@@ -27832,9 +27911,9 @@ function FlexibleTable(_param) {
|
|
|
27832
27911
|
className: clsx(_define_property$l({}, classes.scroll, isHorizontallyScrollable)),
|
|
27833
27912
|
children: /* @__PURE__ */ jsxs(Table.Root, _object_spread_props$j(_object_spread$k({
|
|
27834
27913
|
className: classes.root
|
|
27835
|
-
},
|
|
27914
|
+
}, addDataAttributes$1(_object_spread_props$j(_object_spread$k({}, data), {
|
|
27836
27915
|
isLoading
|
|
27837
|
-
}))), {
|
|
27916
|
+
}), testId)), {
|
|
27838
27917
|
children: [
|
|
27839
27918
|
shouldRenderHeader && /* @__PURE__ */ jsx(Table.Head, {
|
|
27840
27919
|
className: classes.head,
|
|
@@ -27859,7 +27938,7 @@ function FlexibleTable(_param) {
|
|
|
27859
27938
|
onClick: isNotEmpty(onHeadClick) ? function() {
|
|
27860
27939
|
return onHeadClick(key);
|
|
27861
27940
|
} : void 0
|
|
27862
|
-
}, addDataAttributes({
|
|
27941
|
+
}, addDataAttributes$1({
|
|
27863
27942
|
id: shouldRenderDataId ? key : void 0
|
|
27864
27943
|
})), {
|
|
27865
27944
|
children: applyAction(title, {
|
|
@@ -27891,16 +27970,17 @@ function FlexibleTable(_param) {
|
|
|
27891
27970
|
key: isNotEmpty(uniqueField) ? item[uniqueField] : i
|
|
27892
27971
|
}));
|
|
27893
27972
|
}),
|
|
27894
|
-
|
|
27973
|
+
(infinityScrollConfig === null || infinityScrollConfig === void 0 ? void 0 : infinityScrollConfig.isEnabled) && /* @__PURE__ */ jsx(Table.Row, {
|
|
27895
27974
|
className: classes.loaderRow,
|
|
27896
27975
|
children: /* @__PURE__ */ jsx(Table.Cell, {
|
|
27897
27976
|
className: classes.loaderCell,
|
|
27898
27977
|
colSpan: columns.length,
|
|
27899
27978
|
children: /* @__PURE__ */ jsx("div", {
|
|
27900
|
-
ref:
|
|
27979
|
+
ref: intersectionRef,
|
|
27901
27980
|
className: classes.loader,
|
|
27902
27981
|
children: /* @__PURE__ */ jsx(ThemedPreloader, {
|
|
27903
|
-
type: "dots"
|
|
27982
|
+
type: "dots",
|
|
27983
|
+
testId: getTestId(testId, "loader")
|
|
27904
27984
|
})
|
|
27905
27985
|
})
|
|
27906
27986
|
})
|
|
@@ -32634,6 +32714,7 @@ export {
|
|
|
32634
32714
|
trimStringToMaxLength,
|
|
32635
32715
|
useDidMountEffect,
|
|
32636
32716
|
useDropdown,
|
|
32717
|
+
useIntersectionRef,
|
|
32637
32718
|
useIsMounted,
|
|
32638
32719
|
useMerge,
|
|
32639
32720
|
useMergedRefs,
|