@true-engineering/true-react-common-ui-kit 3.56.2 → 3.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/FloatDocActions/FloatDocActions.d.ts +6 -0
- package/dist/components/FloatDocActions/FloatDocActions.stories.d.ts +8 -0
- package/dist/components/FloatDocActions/FloatDocActions.styles.d.ts +8 -0
- package/dist/components/FloatDocActions/components/DocActions/DocActions.d.ts +12 -0
- package/dist/components/FloatDocActions/components/DocActions/DocActions.styles.d.ts +6 -0
- package/dist/components/FloatDocActions/components/DocActions/constants.d.ts +1 -0
- package/dist/components/FloatDocActions/components/DocActions/index.d.ts +4 -0
- package/dist/components/FloatDocActions/components/DocActions/types.d.ts +2 -0
- package/dist/components/FloatDocActions/components/index.d.ts +1 -0
- package/dist/components/FloatDocActions/constants.d.ts +1 -0
- package/dist/components/FloatDocActions/index.d.ts +3 -0
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Modal/Modal.styles.d.ts +1 -1
- package/dist/components/Notification/Notification.styles.d.ts +1 -1
- package/dist/components/Toaster/Toaster.styles.d.ts +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/theme/types.d.ts +2 -1
- package/dist/true-react-common-ui-kit.js +826 -549
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +826 -549
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/components/FloatDocActions/FloatDocActions.stories.tsx +117 -0
- package/src/components/FloatDocActions/FloatDocActions.styles.ts +12 -0
- package/src/components/FloatDocActions/FloatDocActions.tsx +34 -0
- package/src/components/FloatDocActions/components/DocActions/DocActions.styles.ts +29 -0
- package/src/components/FloatDocActions/components/DocActions/DocActions.tsx +43 -0
- package/src/components/FloatDocActions/components/DocActions/constants.ts +1 -0
- package/src/components/FloatDocActions/components/DocActions/index.ts +4 -0
- package/src/components/FloatDocActions/components/DocActions/types.ts +3 -0
- package/src/components/FloatDocActions/components/index.ts +1 -0
- package/src/components/FloatDocActions/constants.ts +1 -0
- package/src/components/FloatDocActions/index.ts +3 -0
- package/src/components/Input/Input.tsx +7 -3
- package/src/components/index.ts +1 -0
- package/src/theme/types.ts +5 -3
|
@@ -1323,7 +1323,7 @@ function _create_class$2(Constructor, protoProps, staticProps) {
|
|
|
1323
1323
|
_defineProperties$2(Constructor, staticProps);
|
|
1324
1324
|
return Constructor;
|
|
1325
1325
|
}
|
|
1326
|
-
function _define_property$
|
|
1326
|
+
function _define_property$1c(obj, key, value) {
|
|
1327
1327
|
if (key in obj) {
|
|
1328
1328
|
Object.defineProperty(obj, key, {
|
|
1329
1329
|
value,
|
|
@@ -1374,7 +1374,7 @@ function _non_iterable_rest$q() {
|
|
|
1374
1374
|
function _non_iterable_spread$b() {
|
|
1375
1375
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1376
1376
|
}
|
|
1377
|
-
function _object_spread$
|
|
1377
|
+
function _object_spread$1a(target) {
|
|
1378
1378
|
for (var i = 1; i < arguments.length; i++) {
|
|
1379
1379
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1380
1380
|
var ownKeys2 = Object.keys(source);
|
|
@@ -1384,7 +1384,7 @@ function _object_spread$17(target) {
|
|
|
1384
1384
|
}));
|
|
1385
1385
|
}
|
|
1386
1386
|
ownKeys2.forEach(function(key) {
|
|
1387
|
-
_define_property$
|
|
1387
|
+
_define_property$1c(target, key, source[key]);
|
|
1388
1388
|
});
|
|
1389
1389
|
}
|
|
1390
1390
|
return target;
|
|
@@ -1516,7 +1516,7 @@ var TweakStylesManager = /* @__PURE__ */ function() {
|
|
|
1516
1516
|
first
|
|
1517
1517
|
].concat(_to_consumable_array$b(rest))) : first;
|
|
1518
1518
|
var rules = this.addRules(styles);
|
|
1519
|
-
var classes = _object_spread$
|
|
1519
|
+
var classes = _object_spread$1a({}, _class_private_field_get$1(this, _classes));
|
|
1520
1520
|
rules.forEach(function(rule, key) {
|
|
1521
1521
|
classes[key] = joinStrings([
|
|
1522
1522
|
classes[key],
|
|
@@ -1651,7 +1651,7 @@ function _create_class$1(Constructor, protoProps, staticProps) {
|
|
|
1651
1651
|
_defineProperties$1(Constructor, staticProps);
|
|
1652
1652
|
return Constructor;
|
|
1653
1653
|
}
|
|
1654
|
-
function _define_property$
|
|
1654
|
+
function _define_property$1b(obj, key, value) {
|
|
1655
1655
|
if (key in obj) {
|
|
1656
1656
|
Object.defineProperty(obj, key, {
|
|
1657
1657
|
value,
|
|
@@ -1664,7 +1664,7 @@ function _define_property$18(obj, key, value) {
|
|
|
1664
1664
|
}
|
|
1665
1665
|
return obj;
|
|
1666
1666
|
}
|
|
1667
|
-
function _object_spread$
|
|
1667
|
+
function _object_spread$19(target) {
|
|
1668
1668
|
for (var i = 1; i < arguments.length; i++) {
|
|
1669
1669
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1670
1670
|
var ownKeys2 = Object.keys(source);
|
|
@@ -1674,7 +1674,7 @@ function _object_spread$16(target) {
|
|
|
1674
1674
|
}));
|
|
1675
1675
|
}
|
|
1676
1676
|
ownKeys2.forEach(function(key) {
|
|
1677
|
-
_define_property$
|
|
1677
|
+
_define_property$1b(target, key, source[key]);
|
|
1678
1678
|
});
|
|
1679
1679
|
}
|
|
1680
1680
|
return target;
|
|
@@ -1770,7 +1770,7 @@ var ThemedStylesManager = /* @__PURE__ */ function() {
|
|
|
1770
1770
|
meta: _class_private_field_get(this, _name),
|
|
1771
1771
|
generateId: jssContext.generateId
|
|
1772
1772
|
});
|
|
1773
|
-
var classes = _object_spread$
|
|
1773
|
+
var classes = _object_spread$19({}, sheet.classes);
|
|
1774
1774
|
var manager = new TweakStylesManager({
|
|
1775
1775
|
sheet,
|
|
1776
1776
|
classes
|
|
@@ -1787,7 +1787,7 @@ var ThemedStylesManager = /* @__PURE__ */ function() {
|
|
|
1787
1787
|
]);
|
|
1788
1788
|
return ThemedStylesManager2;
|
|
1789
1789
|
}();
|
|
1790
|
-
function _define_property$
|
|
1790
|
+
function _define_property$1a(obj, key, value) {
|
|
1791
1791
|
if (key in obj) {
|
|
1792
1792
|
Object.defineProperty(obj, key, {
|
|
1793
1793
|
value,
|
|
@@ -1800,7 +1800,7 @@ function _define_property$17(obj, key, value) {
|
|
|
1800
1800
|
}
|
|
1801
1801
|
return obj;
|
|
1802
1802
|
}
|
|
1803
|
-
function _object_spread$
|
|
1803
|
+
function _object_spread$18(target) {
|
|
1804
1804
|
for (var i = 1; i < arguments.length; i++) {
|
|
1805
1805
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1806
1806
|
var ownKeys2 = Object.keys(source);
|
|
@@ -1810,12 +1810,12 @@ function _object_spread$15(target) {
|
|
|
1810
1810
|
}));
|
|
1811
1811
|
}
|
|
1812
1812
|
ownKeys2.forEach(function(key) {
|
|
1813
|
-
_define_property$
|
|
1813
|
+
_define_property$1a(target, key, source[key]);
|
|
1814
1814
|
});
|
|
1815
1815
|
}
|
|
1816
1816
|
return target;
|
|
1817
1817
|
}
|
|
1818
|
-
function ownKeys$
|
|
1818
|
+
function ownKeys$Y(object, enumerableOnly) {
|
|
1819
1819
|
var keys2 = Object.keys(object);
|
|
1820
1820
|
if (Object.getOwnPropertySymbols) {
|
|
1821
1821
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -1828,12 +1828,12 @@ function ownKeys$W(object, enumerableOnly) {
|
|
|
1828
1828
|
}
|
|
1829
1829
|
return keys2;
|
|
1830
1830
|
}
|
|
1831
|
-
function _object_spread_props$
|
|
1831
|
+
function _object_spread_props$Y(target, source) {
|
|
1832
1832
|
source = source != null ? source : {};
|
|
1833
1833
|
if (Object.getOwnPropertyDescriptors) {
|
|
1834
1834
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1835
1835
|
} else {
|
|
1836
|
-
ownKeys$
|
|
1836
|
+
ownKeys$Y(Object(source)).forEach(function(key) {
|
|
1837
1837
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1838
1838
|
});
|
|
1839
1839
|
}
|
|
@@ -1844,7 +1844,7 @@ var JssProvider = function(param) {
|
|
|
1844
1844
|
var children = param.children, tweakStylesArch = param.tweakStylesArch, generateId = param.generateId;
|
|
1845
1845
|
var context = useContext(JssContext);
|
|
1846
1846
|
var value = useMemo(function() {
|
|
1847
|
-
return _object_spread_props$
|
|
1847
|
+
return _object_spread_props$Y(_object_spread$18({}, context), {
|
|
1848
1848
|
tweakStylesArch: tweakStylesArch !== null && tweakStylesArch !== void 0 ? tweakStylesArch : context.tweakStylesArch,
|
|
1849
1849
|
generateId: generateId !== null && generateId !== void 0 ? generateId : context.generateId
|
|
1850
1850
|
});
|
|
@@ -1883,7 +1883,7 @@ function _array_with_holes$p(arr) {
|
|
|
1883
1883
|
if (Array.isArray(arr))
|
|
1884
1884
|
return arr;
|
|
1885
1885
|
}
|
|
1886
|
-
function _define_property$
|
|
1886
|
+
function _define_property$19(obj, key, value) {
|
|
1887
1887
|
if (key in obj) {
|
|
1888
1888
|
Object.defineProperty(obj, key, {
|
|
1889
1889
|
value,
|
|
@@ -1927,7 +1927,7 @@ function _iterable_to_array_limit$o(arr, i) {
|
|
|
1927
1927
|
function _non_iterable_rest$p() {
|
|
1928
1928
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1929
1929
|
}
|
|
1930
|
-
function _object_spread$
|
|
1930
|
+
function _object_spread$17(target) {
|
|
1931
1931
|
for (var i = 1; i < arguments.length; i++) {
|
|
1932
1932
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1933
1933
|
var ownKeys2 = Object.keys(source);
|
|
@@ -1937,12 +1937,12 @@ function _object_spread$14(target) {
|
|
|
1937
1937
|
}));
|
|
1938
1938
|
}
|
|
1939
1939
|
ownKeys2.forEach(function(key) {
|
|
1940
|
-
_define_property$
|
|
1940
|
+
_define_property$19(target, key, source[key]);
|
|
1941
1941
|
});
|
|
1942
1942
|
}
|
|
1943
1943
|
return target;
|
|
1944
1944
|
}
|
|
1945
|
-
function ownKeys$
|
|
1945
|
+
function ownKeys$X(object, enumerableOnly) {
|
|
1946
1946
|
var keys2 = Object.keys(object);
|
|
1947
1947
|
if (Object.getOwnPropertySymbols) {
|
|
1948
1948
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -1955,12 +1955,12 @@ function ownKeys$V(object, enumerableOnly) {
|
|
|
1955
1955
|
}
|
|
1956
1956
|
return keys2;
|
|
1957
1957
|
}
|
|
1958
|
-
function _object_spread_props$
|
|
1958
|
+
function _object_spread_props$X(target, source) {
|
|
1959
1959
|
source = source != null ? source : {};
|
|
1960
1960
|
if (Object.getOwnPropertyDescriptors) {
|
|
1961
1961
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1962
1962
|
} else {
|
|
1963
|
-
ownKeys$
|
|
1963
|
+
ownKeys$X(Object(source)).forEach(function(key) {
|
|
1964
1964
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1965
1965
|
});
|
|
1966
1966
|
}
|
|
@@ -2020,7 +2020,7 @@ function createThemedStyles() {
|
|
|
2020
2020
|
tweakStylesStrategy,
|
|
2021
2021
|
tweakStyles
|
|
2022
2022
|
]);
|
|
2023
|
-
return useStyles2(isNotEmpty(data) ? _object_spread_props$
|
|
2023
|
+
return useStyles2(isNotEmpty(data) ? _object_spread_props$X(_object_spread$17({}, data), {
|
|
2024
2024
|
theme
|
|
2025
2025
|
}) : data);
|
|
2026
2026
|
}
|
|
@@ -6568,7 +6568,7 @@ function _array_without_holes$9(arr) {
|
|
|
6568
6568
|
if (Array.isArray(arr))
|
|
6569
6569
|
return _array_like_to_array$o(arr);
|
|
6570
6570
|
}
|
|
6571
|
-
function _define_property$
|
|
6571
|
+
function _define_property$18(obj, key, value) {
|
|
6572
6572
|
if (key in obj) {
|
|
6573
6573
|
Object.defineProperty(obj, key, {
|
|
6574
6574
|
value,
|
|
@@ -6588,7 +6588,7 @@ function _iterable_to_array$9(iter) {
|
|
|
6588
6588
|
function _non_iterable_spread$9() {
|
|
6589
6589
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6590
6590
|
}
|
|
6591
|
-
function _object_spread$
|
|
6591
|
+
function _object_spread$16(target) {
|
|
6592
6592
|
for (var i = 1; i < arguments.length; i++) {
|
|
6593
6593
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6594
6594
|
var ownKeys2 = Object.keys(source);
|
|
@@ -6598,7 +6598,7 @@ function _object_spread$13(target) {
|
|
|
6598
6598
|
}));
|
|
6599
6599
|
}
|
|
6600
6600
|
ownKeys2.forEach(function(key) {
|
|
6601
|
-
_define_property$
|
|
6601
|
+
_define_property$18(target, key, source[key]);
|
|
6602
6602
|
});
|
|
6603
6603
|
}
|
|
6604
6604
|
return target;
|
|
@@ -6654,7 +6654,7 @@ var useDropdown = function(param) {
|
|
|
6654
6654
|
},
|
|
6655
6655
|
{
|
|
6656
6656
|
name: "flip",
|
|
6657
|
-
options: _object_spread$
|
|
6657
|
+
options: _object_spread$16({
|
|
6658
6658
|
fallbackPlacements: canBeFlipped ? [
|
|
6659
6659
|
"bottom-start",
|
|
6660
6660
|
"top-start"
|
|
@@ -6859,7 +6859,7 @@ var complexIcons = {
|
|
|
6859
6859
|
"file-xml": fileXml,
|
|
6860
6860
|
"file-zip": fileZip
|
|
6861
6861
|
};
|
|
6862
|
-
function _define_property$
|
|
6862
|
+
function _define_property$17(obj, key, value) {
|
|
6863
6863
|
if (key in obj) {
|
|
6864
6864
|
Object.defineProperty(obj, key, {
|
|
6865
6865
|
value,
|
|
@@ -6872,7 +6872,7 @@ function _define_property$14(obj, key, value) {
|
|
|
6872
6872
|
}
|
|
6873
6873
|
return obj;
|
|
6874
6874
|
}
|
|
6875
|
-
function _object_spread$
|
|
6875
|
+
function _object_spread$15(target) {
|
|
6876
6876
|
for (var i = 1; i < arguments.length; i++) {
|
|
6877
6877
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6878
6878
|
var ownKeys2 = Object.keys(source);
|
|
@@ -6882,7 +6882,7 @@ function _object_spread$12(target) {
|
|
|
6882
6882
|
}));
|
|
6883
6883
|
}
|
|
6884
6884
|
ownKeys2.forEach(function(key) {
|
|
6885
|
-
_define_property$
|
|
6885
|
+
_define_property$17(target, key, source[key]);
|
|
6886
6886
|
});
|
|
6887
6887
|
}
|
|
6888
6888
|
return target;
|
|
@@ -6891,7 +6891,7 @@ var ComplexIconBoilerplate = function(param) {
|
|
|
6891
6891
|
var type = param.type;
|
|
6892
6892
|
var theme = useContext(ThemeContext).theme;
|
|
6893
6893
|
var icons = useMemo(function() {
|
|
6894
|
-
return _object_spread$
|
|
6894
|
+
return _object_spread$15({}, complexIcons, theme.complexIcons);
|
|
6895
6895
|
}, []);
|
|
6896
6896
|
var ComplexIcon = icons[type];
|
|
6897
6897
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -7762,7 +7762,7 @@ var iconsList = checkIcons({
|
|
|
7762
7762
|
]
|
|
7763
7763
|
}
|
|
7764
7764
|
});
|
|
7765
|
-
function _define_property$
|
|
7765
|
+
function _define_property$16(obj, key, value) {
|
|
7766
7766
|
if (key in obj) {
|
|
7767
7767
|
Object.defineProperty(obj, key, {
|
|
7768
7768
|
value,
|
|
@@ -7775,7 +7775,7 @@ function _define_property$13(obj, key, value) {
|
|
|
7775
7775
|
}
|
|
7776
7776
|
return obj;
|
|
7777
7777
|
}
|
|
7778
|
-
function _object_spread$
|
|
7778
|
+
function _object_spread$14(target) {
|
|
7779
7779
|
for (var i = 1; i < arguments.length; i++) {
|
|
7780
7780
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7781
7781
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7785,12 +7785,12 @@ function _object_spread$11(target) {
|
|
|
7785
7785
|
}));
|
|
7786
7786
|
}
|
|
7787
7787
|
ownKeys2.forEach(function(key) {
|
|
7788
|
-
_define_property$
|
|
7788
|
+
_define_property$16(target, key, source[key]);
|
|
7789
7789
|
});
|
|
7790
7790
|
}
|
|
7791
7791
|
return target;
|
|
7792
7792
|
}
|
|
7793
|
-
function ownKeys$
|
|
7793
|
+
function ownKeys$W(object, enumerableOnly) {
|
|
7794
7794
|
var keys2 = Object.keys(object);
|
|
7795
7795
|
if (Object.getOwnPropertySymbols) {
|
|
7796
7796
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7803,12 +7803,12 @@ function ownKeys$U(object, enumerableOnly) {
|
|
|
7803
7803
|
}
|
|
7804
7804
|
return keys2;
|
|
7805
7805
|
}
|
|
7806
|
-
function _object_spread_props$
|
|
7806
|
+
function _object_spread_props$W(target, source) {
|
|
7807
7807
|
source = source != null ? source : {};
|
|
7808
7808
|
if (Object.getOwnPropertyDescriptors) {
|
|
7809
7809
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7810
7810
|
} else {
|
|
7811
|
-
ownKeys$
|
|
7811
|
+
ownKeys$W(Object(source)).forEach(function(key) {
|
|
7812
7812
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7813
7813
|
});
|
|
7814
7814
|
}
|
|
@@ -7819,7 +7819,7 @@ var IconBoilerplate = function(param) {
|
|
|
7819
7819
|
var _icon_paths, _icon_rects, _icon_circles;
|
|
7820
7820
|
var theme = useContext(ThemeContext).theme;
|
|
7821
7821
|
var icons = useMemo(function() {
|
|
7822
|
-
return _object_spread$
|
|
7822
|
+
return _object_spread$14({}, iconsList, theme.icons);
|
|
7823
7823
|
}, []);
|
|
7824
7824
|
var icon = icons[type];
|
|
7825
7825
|
var _icon_viewBox;
|
|
@@ -7832,7 +7832,7 @@ var IconBoilerplate = function(param) {
|
|
|
7832
7832
|
children: [
|
|
7833
7833
|
(_icon_paths = icon.paths) === null || _icon_paths === void 0 ? void 0 : _icon_paths.map(function(path, index) {
|
|
7834
7834
|
var _path_fill, _path_stroke;
|
|
7835
|
-
return jsx("path", _object_spread$
|
|
7835
|
+
return jsx("path", _object_spread$14({
|
|
7836
7836
|
fillRule: "evenodd",
|
|
7837
7837
|
clipRule: "evenodd",
|
|
7838
7838
|
fill: (_path_fill = path.fill) !== null && _path_fill !== void 0 ? _path_fill : "currentColor",
|
|
@@ -7840,25 +7840,25 @@ var IconBoilerplate = function(param) {
|
|
|
7840
7840
|
}, path), index);
|
|
7841
7841
|
}),
|
|
7842
7842
|
(_icon_rects = icon.rects) === null || _icon_rects === void 0 ? void 0 : _icon_rects.map(function(rect, index) {
|
|
7843
|
-
return /* @__PURE__ */ createElement("rect", _object_spread_props$
|
|
7843
|
+
return /* @__PURE__ */ createElement("rect", _object_spread_props$W(_object_spread$14({}, rect), {
|
|
7844
7844
|
key: index
|
|
7845
7845
|
}));
|
|
7846
7846
|
}),
|
|
7847
7847
|
(_icon_circles = icon.circles) === null || _icon_circles === void 0 ? void 0 : _icon_circles.map(function(circle, index) {
|
|
7848
|
-
return /* @__PURE__ */ createElement("circle", _object_spread_props$
|
|
7848
|
+
return /* @__PURE__ */ createElement("circle", _object_spread_props$W(_object_spread$14({}, circle), {
|
|
7849
7849
|
key: index
|
|
7850
7850
|
}));
|
|
7851
7851
|
})
|
|
7852
7852
|
]
|
|
7853
7853
|
});
|
|
7854
7854
|
};
|
|
7855
|
-
var useStyles$
|
|
7855
|
+
var useStyles$X = createThemedStyles("Icon", {
|
|
7856
7856
|
root: {
|
|
7857
7857
|
display: "flex",
|
|
7858
7858
|
alignItems: "center"
|
|
7859
7859
|
}
|
|
7860
7860
|
});
|
|
7861
|
-
function _define_property$
|
|
7861
|
+
function _define_property$15(obj, key, value) {
|
|
7862
7862
|
if (key in obj) {
|
|
7863
7863
|
Object.defineProperty(obj, key, {
|
|
7864
7864
|
value,
|
|
@@ -7871,7 +7871,7 @@ function _define_property$12(obj, key, value) {
|
|
|
7871
7871
|
}
|
|
7872
7872
|
return obj;
|
|
7873
7873
|
}
|
|
7874
|
-
function _object_spread$
|
|
7874
|
+
function _object_spread$13(target) {
|
|
7875
7875
|
for (var i = 1; i < arguments.length; i++) {
|
|
7876
7876
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7877
7877
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7881,12 +7881,12 @@ function _object_spread$10(target) {
|
|
|
7881
7881
|
}));
|
|
7882
7882
|
}
|
|
7883
7883
|
ownKeys2.forEach(function(key) {
|
|
7884
|
-
_define_property$
|
|
7884
|
+
_define_property$15(target, key, source[key]);
|
|
7885
7885
|
});
|
|
7886
7886
|
}
|
|
7887
7887
|
return target;
|
|
7888
7888
|
}
|
|
7889
|
-
function ownKeys$
|
|
7889
|
+
function ownKeys$V(object, enumerableOnly) {
|
|
7890
7890
|
var keys2 = Object.keys(object);
|
|
7891
7891
|
if (Object.getOwnPropertySymbols) {
|
|
7892
7892
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7899,12 +7899,12 @@ function ownKeys$T(object, enumerableOnly) {
|
|
|
7899
7899
|
}
|
|
7900
7900
|
return keys2;
|
|
7901
7901
|
}
|
|
7902
|
-
function _object_spread_props$
|
|
7902
|
+
function _object_spread_props$V(target, source) {
|
|
7903
7903
|
source = source != null ? source : {};
|
|
7904
7904
|
if (Object.getOwnPropertyDescriptors) {
|
|
7905
7905
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7906
7906
|
} else {
|
|
7907
|
-
ownKeys$
|
|
7907
|
+
ownKeys$V(Object(source)).forEach(function(key) {
|
|
7908
7908
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7909
7909
|
});
|
|
7910
7910
|
}
|
|
@@ -7912,10 +7912,10 @@ function _object_spread_props$T(target, source) {
|
|
|
7912
7912
|
}
|
|
7913
7913
|
var Icon = function(param) {
|
|
7914
7914
|
var type = param.type, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
7915
|
-
var classes = useStyles$
|
|
7915
|
+
var classes = useStyles$X({
|
|
7916
7916
|
theme: tweakStyles
|
|
7917
7917
|
});
|
|
7918
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
7918
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$V(_object_spread$13({
|
|
7919
7919
|
className: classes.root
|
|
7920
7920
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
7921
7921
|
children: isComplexIcon(type) ? /* @__PURE__ */ jsx(ComplexIconBoilerplate, {
|
|
@@ -7939,7 +7939,7 @@ var minWidthRelativeToTrigger = size({
|
|
|
7939
7939
|
});
|
|
7940
7940
|
}
|
|
7941
7941
|
});
|
|
7942
|
-
var useStyles$
|
|
7942
|
+
var useStyles$W = createThemedStyles("WithPopup", {
|
|
7943
7943
|
trigger: {
|
|
7944
7944
|
width: "fit-content"
|
|
7945
7945
|
},
|
|
@@ -7986,7 +7986,7 @@ function _array_without_holes$7(arr) {
|
|
|
7986
7986
|
if (Array.isArray(arr))
|
|
7987
7987
|
return _array_like_to_array$m(arr);
|
|
7988
7988
|
}
|
|
7989
|
-
function _define_property$
|
|
7989
|
+
function _define_property$14(obj, key, value) {
|
|
7990
7990
|
if (key in obj) {
|
|
7991
7991
|
Object.defineProperty(obj, key, {
|
|
7992
7992
|
value,
|
|
@@ -8037,7 +8037,7 @@ function _non_iterable_rest$m() {
|
|
|
8037
8037
|
function _non_iterable_spread$7() {
|
|
8038
8038
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8039
8039
|
}
|
|
8040
|
-
function _object_spread
|
|
8040
|
+
function _object_spread$12(target) {
|
|
8041
8041
|
for (var i = 1; i < arguments.length; i++) {
|
|
8042
8042
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8043
8043
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8047,12 +8047,12 @@ function _object_spread$$(target) {
|
|
|
8047
8047
|
}));
|
|
8048
8048
|
}
|
|
8049
8049
|
ownKeys2.forEach(function(key) {
|
|
8050
|
-
_define_property$
|
|
8050
|
+
_define_property$14(target, key, source[key]);
|
|
8051
8051
|
});
|
|
8052
8052
|
}
|
|
8053
8053
|
return target;
|
|
8054
8054
|
}
|
|
8055
|
-
function ownKeys$
|
|
8055
|
+
function ownKeys$U(object, enumerableOnly) {
|
|
8056
8056
|
var keys2 = Object.keys(object);
|
|
8057
8057
|
if (Object.getOwnPropertySymbols) {
|
|
8058
8058
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8065,12 +8065,12 @@ function ownKeys$S(object, enumerableOnly) {
|
|
|
8065
8065
|
}
|
|
8066
8066
|
return keys2;
|
|
8067
8067
|
}
|
|
8068
|
-
function _object_spread_props$
|
|
8068
|
+
function _object_spread_props$U(target, source) {
|
|
8069
8069
|
source = source != null ? source : {};
|
|
8070
8070
|
if (Object.getOwnPropertyDescriptors) {
|
|
8071
8071
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8072
8072
|
} else {
|
|
8073
|
-
ownKeys$
|
|
8073
|
+
ownKeys$U(Object(source)).forEach(function(key) {
|
|
8074
8074
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8075
8075
|
});
|
|
8076
8076
|
}
|
|
@@ -8097,7 +8097,7 @@ function _unsupported_iterable_to_array$m(o, minLen) {
|
|
|
8097
8097
|
}
|
|
8098
8098
|
var WithPopup = function(param) {
|
|
8099
8099
|
var trigger = param.trigger, children = param.children, _param_middlewares = param.middlewares, middlewares = _param_middlewares === void 0 ? [] : _param_middlewares, _param_eventType = param.eventType, eventType = _param_eventType === void 0 ? "click" : _param_eventType, _param_placement = param.placement, placement = _param_placement === void 0 ? eventType === "click" ? "bottom-end" : "top" : _param_placement, _param_hoverDelay = param.hoverDelay, hoverDelay = _param_hoverDelay === void 0 ? 0 : _param_hoverDelay, _param_popupOffset = param.popupOffset, popupOffset = _param_popupOffset === void 0 ? DEFAULT_OFFSET : _param_popupOffset, arrowProps = param.arrowProps, popupData = param.popupData, _param_shouldStopPropagation = param.shouldStopPropagation, shouldStopPropagation = _param_shouldStopPropagation === void 0 ? eventType === "click" : _param_shouldStopPropagation, _param_shouldHideOnScroll = param.shouldHideOnScroll, shouldHideOnScroll = _param_shouldHideOnScroll === void 0 ? false : _param_shouldHideOnScroll, _param_shouldRenderInBody = param.shouldRenderInBody, shouldRenderInBody = _param_shouldRenderInBody === void 0 ? true : _param_shouldRenderInBody, _param_canBeFlipped = param.canBeFlipped, canBeFlipped = _param_canBeFlipped === void 0 ? true : _param_canBeFlipped, _param_isTriggerWrapped = param.isTriggerWrapped, isTriggerWrapped = _param_isTriggerWrapped === void 0 ? eventType === "hover" : _param_isTriggerWrapped, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_shouldShowArrow = param.shouldShowArrow, shouldShowArrow = _param_shouldShowArrow === void 0 ? false : _param_shouldShowArrow, _param_isMinWidthSameAsTrigger = param.isMinWidthSameAsTrigger, isMinWidthSameAsTrigger = _param_isMinWidthSameAsTrigger === void 0 ? false : _param_isMinWidthSameAsTrigger, hoverOptions = param.hoverOptions, clickOptions = param.clickOptions, focusOptions = param.focusOptions, dismissOptions = param.dismissOptions, transitionOptions = param.transitionOptions, tweakStyles = param.tweakStyles, data = param.data, testId = param.testId, onToggle = param.onToggle;
|
|
8100
|
-
var classes = useStyles$
|
|
8100
|
+
var classes = useStyles$W({
|
|
8101
8101
|
theme: tweakStyles
|
|
8102
8102
|
});
|
|
8103
8103
|
var _useState = _sliced_to_array$m(useState(false), 2), isOpen = _useState[0], setIsOpen = _useState[1];
|
|
@@ -8129,7 +8129,7 @@ var WithPopup = function(param) {
|
|
|
8129
8129
|
placement,
|
|
8130
8130
|
onOpenChange: handleToggle
|
|
8131
8131
|
}), refs = _useFloating.refs, floatingStyles = _useFloating.floatingStyles, context = _useFloating.context;
|
|
8132
|
-
var hover = useHover(context, _object_spread
|
|
8132
|
+
var hover = useHover(context, _object_spread$12({
|
|
8133
8133
|
enabled: eventType === "hover",
|
|
8134
8134
|
delay: {
|
|
8135
8135
|
open: hoverDelay,
|
|
@@ -8137,13 +8137,13 @@ var WithPopup = function(param) {
|
|
|
8137
8137
|
},
|
|
8138
8138
|
handleClose: safePolygon()
|
|
8139
8139
|
}, hoverOptions));
|
|
8140
|
-
var focus = useFocus(context, _object_spread
|
|
8140
|
+
var focus = useFocus(context, _object_spread$12({
|
|
8141
8141
|
enabled: eventType === "hover"
|
|
8142
8142
|
}, focusOptions));
|
|
8143
|
-
var click = useClick(context, _object_spread
|
|
8143
|
+
var click = useClick(context, _object_spread$12({
|
|
8144
8144
|
enabled: eventType === "click"
|
|
8145
8145
|
}, clickOptions));
|
|
8146
|
-
var dismiss = useDismiss(context, _object_spread
|
|
8146
|
+
var dismiss = useDismiss(context, _object_spread$12({
|
|
8147
8147
|
enabled: eventType === "click",
|
|
8148
8148
|
ancestorScroll: shouldHideOnScroll
|
|
8149
8149
|
}, dismissOptions));
|
|
@@ -8153,22 +8153,22 @@ var WithPopup = function(param) {
|
|
|
8153
8153
|
focus,
|
|
8154
8154
|
dismiss
|
|
8155
8155
|
]), getFloatingProps = _useInteractions.getFloatingProps, getReferenceProps = _useInteractions.getReferenceProps;
|
|
8156
|
-
var _useTransitionStatus = useTransitionStatus(context, _object_spread
|
|
8156
|
+
var _useTransitionStatus = useTransitionStatus(context, _object_spread$12({
|
|
8157
8157
|
duration: {
|
|
8158
8158
|
close: 500
|
|
8159
8159
|
}
|
|
8160
8160
|
}, transitionOptions)), isMounted = _useTransitionStatus.isMounted, status = _useTransitionStatus.status;
|
|
8161
|
-
var referenceProps = getReferenceProps(_object_spread
|
|
8161
|
+
var referenceProps = getReferenceProps(_object_spread$12({
|
|
8162
8162
|
ref: refs.setReference
|
|
8163
8163
|
}, shouldStopPropagation && {
|
|
8164
8164
|
onClick: stopPropagation
|
|
8165
8165
|
}));
|
|
8166
8166
|
var triggerElement = applyAction(trigger, {
|
|
8167
8167
|
referenceProps: !isTriggerWrapped ? referenceProps : void 0,
|
|
8168
|
-
triggerProps: _object_spread
|
|
8168
|
+
triggerProps: _object_spread$12({
|
|
8169
8169
|
isActive: isOpen,
|
|
8170
8170
|
isDisabled
|
|
8171
|
-
}, !isTriggerWrapped && _object_spread
|
|
8171
|
+
}, !isTriggerWrapped && _object_spread$12({
|
|
8172
8172
|
data,
|
|
8173
8173
|
testId
|
|
8174
8174
|
}, referenceProps))
|
|
@@ -8176,14 +8176,14 @@ var WithPopup = function(param) {
|
|
|
8176
8176
|
var _obj2;
|
|
8177
8177
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
8178
8178
|
children: [
|
|
8179
|
-
isTriggerWrapped ? /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8180
|
-
className: clsx(classes.trigger, (_obj2 = {}, _define_property$
|
|
8179
|
+
isTriggerWrapped ? /* @__PURE__ */ jsx("div", _object_spread_props$U(_object_spread$12({
|
|
8180
|
+
className: clsx(classes.trigger, (_obj2 = {}, _define_property$14(_obj2, classes.clickable, eventType === "click"), _define_property$14(_obj2, classes.disabled, isDisabled), _define_property$14(_obj2, classes.active, isOpen), _obj2))
|
|
8181
8181
|
}, referenceProps, addDataAttributes$1(data, testId)), {
|
|
8182
8182
|
children: triggerElement
|
|
8183
8183
|
})) : triggerElement,
|
|
8184
8184
|
isMounted && /* @__PURE__ */ jsx(FloatingPortal, {
|
|
8185
8185
|
root: shouldRenderInBody ? document.body : refs.reference.current,
|
|
8186
|
-
children: /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8186
|
+
children: /* @__PURE__ */ jsx("div", _object_spread_props$U(_object_spread$12({
|
|
8187
8187
|
ref: refs.setFloating,
|
|
8188
8188
|
style: floatingStyles,
|
|
8189
8189
|
className: classes.popup
|
|
@@ -8191,7 +8191,7 @@ var WithPopup = function(param) {
|
|
|
8191
8191
|
children: /* @__PURE__ */ jsxs("div", {
|
|
8192
8192
|
className: classes["dropdown-".concat(status)],
|
|
8193
8193
|
children: [
|
|
8194
|
-
shouldShowArrow && /* @__PURE__ */ jsx(FloatingArrow, _object_spread_props$
|
|
8194
|
+
shouldShowArrow && /* @__PURE__ */ jsx(FloatingArrow, _object_spread_props$U(_object_spread$12({}, arrowProps), {
|
|
8195
8195
|
ref: arrowRef,
|
|
8196
8196
|
context,
|
|
8197
8197
|
className: classes.arrow
|
|
@@ -8210,7 +8210,7 @@ var WithPopup = function(param) {
|
|
|
8210
8210
|
var ITEM_HORIZONTAL_PADDING = 16;
|
|
8211
8211
|
var ICON_SIZE$1 = 20;
|
|
8212
8212
|
var ICON_GAP = 12;
|
|
8213
|
-
var useStyles$
|
|
8213
|
+
var useStyles$V = createThemedStyles("ListItem", {
|
|
8214
8214
|
root: {
|
|
8215
8215
|
display: "flex",
|
|
8216
8216
|
alignItems: "center",
|
|
@@ -8249,7 +8249,7 @@ var useStyles$T = createThemedStyles("ListItem", {
|
|
|
8249
8249
|
flexGrow: 1
|
|
8250
8250
|
}
|
|
8251
8251
|
});
|
|
8252
|
-
function _define_property$
|
|
8252
|
+
function _define_property$13(obj, key, value) {
|
|
8253
8253
|
if (key in obj) {
|
|
8254
8254
|
Object.defineProperty(obj, key, {
|
|
8255
8255
|
value,
|
|
@@ -8262,7 +8262,7 @@ function _define_property$10(obj, key, value) {
|
|
|
8262
8262
|
}
|
|
8263
8263
|
return obj;
|
|
8264
8264
|
}
|
|
8265
|
-
function _object_spread$
|
|
8265
|
+
function _object_spread$11(target) {
|
|
8266
8266
|
for (var i = 1; i < arguments.length; i++) {
|
|
8267
8267
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8268
8268
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8272,12 +8272,12 @@ function _object_spread$_(target) {
|
|
|
8272
8272
|
}));
|
|
8273
8273
|
}
|
|
8274
8274
|
ownKeys2.forEach(function(key) {
|
|
8275
|
-
_define_property$
|
|
8275
|
+
_define_property$13(target, key, source[key]);
|
|
8276
8276
|
});
|
|
8277
8277
|
}
|
|
8278
8278
|
return target;
|
|
8279
8279
|
}
|
|
8280
|
-
function ownKeys$
|
|
8280
|
+
function ownKeys$T(object, enumerableOnly) {
|
|
8281
8281
|
var keys2 = Object.keys(object);
|
|
8282
8282
|
if (Object.getOwnPropertySymbols) {
|
|
8283
8283
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8290,12 +8290,12 @@ function ownKeys$R(object, enumerableOnly) {
|
|
|
8290
8290
|
}
|
|
8291
8291
|
return keys2;
|
|
8292
8292
|
}
|
|
8293
|
-
function _object_spread_props$
|
|
8293
|
+
function _object_spread_props$T(target, source) {
|
|
8294
8294
|
source = source != null ? source : {};
|
|
8295
8295
|
if (Object.getOwnPropertyDescriptors) {
|
|
8296
8296
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8297
8297
|
} else {
|
|
8298
|
-
ownKeys$
|
|
8298
|
+
ownKeys$T(Object(source)).forEach(function(key) {
|
|
8299
8299
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8300
8300
|
});
|
|
8301
8301
|
}
|
|
@@ -8303,7 +8303,7 @@ function _object_spread_props$R(target, source) {
|
|
|
8303
8303
|
}
|
|
8304
8304
|
var ListItem = function(param) {
|
|
8305
8305
|
var icon = param.icon, item = param.item, nestedItems = param.nestedItems, isDisabled = param.disabled, isFocused = param.isFocused, shouldDrawSpacerAbove = param.shouldDrawSpacerAbove, shouldDrawSpacerBelow = param.shouldDrawSpacerBelow, testId = param.testId, tweakStyles = param.tweakStyles, _param_view = param.view, view = _param_view === void 0 ? "default" : _param_view, withIconGap = param.withIconGap, data = param.data, onClick = param.onClick;
|
|
8306
|
-
var classes = useStyles$
|
|
8306
|
+
var classes = useStyles$V({
|
|
8307
8307
|
theme: tweakStyles
|
|
8308
8308
|
});
|
|
8309
8309
|
var _obj2;
|
|
@@ -8312,9 +8312,9 @@ var ListItem = function(param) {
|
|
|
8312
8312
|
shouldDrawSpacerAbove && /* @__PURE__ */ jsx("div", {
|
|
8313
8313
|
className: classes.spacer
|
|
8314
8314
|
}),
|
|
8315
|
-
/* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
8316
|
-
className: clsx(classes.root, classes[view], (_obj2 = {}, _define_property$
|
|
8317
|
-
}, addClickHandler(onClick, !isDisabled), addDataTestId(testId), addDataAttributes(_object_spread_props$
|
|
8315
|
+
/* @__PURE__ */ jsxs("div", _object_spread_props$T(_object_spread$11({
|
|
8316
|
+
className: clsx(classes.root, classes[view], (_obj2 = {}, _define_property$13(_obj2, classes.disabledItem, isDisabled), _define_property$13(_obj2, classes.withIconGap, withIconGap), _define_property$13(_obj2, classes.focused, isFocused), _obj2))
|
|
8317
|
+
}, addClickHandler(onClick, !isDisabled), addDataTestId(testId), addDataAttributes(_object_spread_props$T(_object_spread$11({}, data), {
|
|
8318
8318
|
disabled: isDisabled ? true : void 0
|
|
8319
8319
|
}))), {
|
|
8320
8320
|
children: [
|
|
@@ -8340,7 +8340,7 @@ var ListItem = function(param) {
|
|
|
8340
8340
|
]
|
|
8341
8341
|
});
|
|
8342
8342
|
};
|
|
8343
|
-
var useStyles$
|
|
8343
|
+
var useStyles$U = createThemedStyles("List", {
|
|
8344
8344
|
root: {
|
|
8345
8345
|
minWidth: 180,
|
|
8346
8346
|
backgroundColor: colors.CLASSIC_WHITE,
|
|
@@ -8361,7 +8361,7 @@ var withPopupStyles$1 = {
|
|
|
8361
8361
|
width: "100%"
|
|
8362
8362
|
}
|
|
8363
8363
|
};
|
|
8364
|
-
function _define_property
|
|
8364
|
+
function _define_property$12(obj, key, value) {
|
|
8365
8365
|
if (key in obj) {
|
|
8366
8366
|
Object.defineProperty(obj, key, {
|
|
8367
8367
|
value,
|
|
@@ -8374,7 +8374,7 @@ function _define_property$$(obj, key, value) {
|
|
|
8374
8374
|
}
|
|
8375
8375
|
return obj;
|
|
8376
8376
|
}
|
|
8377
|
-
function _object_spread$
|
|
8377
|
+
function _object_spread$10(target) {
|
|
8378
8378
|
for (var i = 1; i < arguments.length; i++) {
|
|
8379
8379
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8380
8380
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8384,12 +8384,12 @@ function _object_spread$Z(target) {
|
|
|
8384
8384
|
}));
|
|
8385
8385
|
}
|
|
8386
8386
|
ownKeys2.forEach(function(key) {
|
|
8387
|
-
_define_property
|
|
8387
|
+
_define_property$12(target, key, source[key]);
|
|
8388
8388
|
});
|
|
8389
8389
|
}
|
|
8390
8390
|
return target;
|
|
8391
8391
|
}
|
|
8392
|
-
function ownKeys$
|
|
8392
|
+
function ownKeys$S(object, enumerableOnly) {
|
|
8393
8393
|
var keys2 = Object.keys(object);
|
|
8394
8394
|
if (Object.getOwnPropertySymbols) {
|
|
8395
8395
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8402,12 +8402,12 @@ function ownKeys$Q(object, enumerableOnly) {
|
|
|
8402
8402
|
}
|
|
8403
8403
|
return keys2;
|
|
8404
8404
|
}
|
|
8405
|
-
function _object_spread_props$
|
|
8405
|
+
function _object_spread_props$S(target, source) {
|
|
8406
8406
|
source = source != null ? source : {};
|
|
8407
8407
|
if (Object.getOwnPropertyDescriptors) {
|
|
8408
8408
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8409
8409
|
} else {
|
|
8410
|
-
ownKeys$
|
|
8410
|
+
ownKeys$S(Object(source)).forEach(function(key) {
|
|
8411
8411
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8412
8412
|
});
|
|
8413
8413
|
}
|
|
@@ -8415,7 +8415,7 @@ function _object_spread_props$Q(target, source) {
|
|
|
8415
8415
|
}
|
|
8416
8416
|
var List = function(param) {
|
|
8417
8417
|
var items = param.items, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles, onClick = param.onClick;
|
|
8418
|
-
var classes = useStyles$
|
|
8418
|
+
var classes = useStyles$U({
|
|
8419
8419
|
theme: tweakStyles
|
|
8420
8420
|
});
|
|
8421
8421
|
var handleItemClick = function(event, param2) {
|
|
@@ -8429,11 +8429,11 @@ var List = function(param) {
|
|
|
8429
8429
|
var isHidden = param2.isHidden;
|
|
8430
8430
|
return !isHidden;
|
|
8431
8431
|
});
|
|
8432
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8432
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$S(_object_spread$10({
|
|
8433
8433
|
className: classes.root
|
|
8434
8434
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
8435
8435
|
children: filteredItems.map(function(item, i) {
|
|
8436
|
-
var itemProps = _object_spread_props$
|
|
8436
|
+
var itemProps = _object_spread_props$S(_object_spread$10({
|
|
8437
8437
|
testId: getTestId(testId, "item-".concat(i))
|
|
8438
8438
|
}, item), {
|
|
8439
8439
|
shouldDrawSpacerAbove: item.shouldDrawSpacerAbove && i !== 0,
|
|
@@ -8451,7 +8451,7 @@ var List = function(param) {
|
|
|
8451
8451
|
shouldRenderInBody: false,
|
|
8452
8452
|
trigger: function(param2) {
|
|
8453
8453
|
var triggerProps = param2.triggerProps;
|
|
8454
|
-
return /* @__PURE__ */ jsx(ListItem, _object_spread_props$
|
|
8454
|
+
return /* @__PURE__ */ jsx(ListItem, _object_spread_props$S(_object_spread$10({}, itemProps), {
|
|
8455
8455
|
isFocused: triggerProps.isActive
|
|
8456
8456
|
}));
|
|
8457
8457
|
},
|
|
@@ -8462,13 +8462,13 @@ var List = function(param) {
|
|
|
8462
8462
|
onClick
|
|
8463
8463
|
})
|
|
8464
8464
|
})
|
|
8465
|
-
}) : /* @__PURE__ */ jsx(ListItem, _object_spread$
|
|
8465
|
+
}) : /* @__PURE__ */ jsx(ListItem, _object_spread$10({}, itemProps))
|
|
8466
8466
|
}, i);
|
|
8467
8467
|
})
|
|
8468
8468
|
}));
|
|
8469
8469
|
};
|
|
8470
8470
|
var ANIMATION_TIMEOUT = 150;
|
|
8471
|
-
function _define_property$
|
|
8471
|
+
function _define_property$11(obj, key, value) {
|
|
8472
8472
|
if (key in obj) {
|
|
8473
8473
|
Object.defineProperty(obj, key, {
|
|
8474
8474
|
value,
|
|
@@ -8481,7 +8481,7 @@ function _define_property$_(obj, key, value) {
|
|
|
8481
8481
|
}
|
|
8482
8482
|
return obj;
|
|
8483
8483
|
}
|
|
8484
|
-
function _object_spread
|
|
8484
|
+
function _object_spread$$(target) {
|
|
8485
8485
|
for (var i = 1; i < arguments.length; i++) {
|
|
8486
8486
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8487
8487
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8491,12 +8491,12 @@ function _object_spread$Y(target) {
|
|
|
8491
8491
|
}));
|
|
8492
8492
|
}
|
|
8493
8493
|
ownKeys2.forEach(function(key) {
|
|
8494
|
-
_define_property$
|
|
8494
|
+
_define_property$11(target, key, source[key]);
|
|
8495
8495
|
});
|
|
8496
8496
|
}
|
|
8497
8497
|
return target;
|
|
8498
8498
|
}
|
|
8499
|
-
var useStyles$
|
|
8499
|
+
var useStyles$T = createThemedStyles("AccountInfo", _object_spread$$({
|
|
8500
8500
|
root: {
|
|
8501
8501
|
display: "flex"
|
|
8502
8502
|
},
|
|
@@ -8550,7 +8550,7 @@ function _array_with_holes$l(arr) {
|
|
|
8550
8550
|
if (Array.isArray(arr))
|
|
8551
8551
|
return arr;
|
|
8552
8552
|
}
|
|
8553
|
-
function _define_property$
|
|
8553
|
+
function _define_property$10(obj, key, value) {
|
|
8554
8554
|
if (key in obj) {
|
|
8555
8555
|
Object.defineProperty(obj, key, {
|
|
8556
8556
|
value,
|
|
@@ -8594,7 +8594,7 @@ function _iterable_to_array_limit$l(arr, i) {
|
|
|
8594
8594
|
function _non_iterable_rest$l() {
|
|
8595
8595
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8596
8596
|
}
|
|
8597
|
-
function _object_spread$
|
|
8597
|
+
function _object_spread$_(target) {
|
|
8598
8598
|
for (var i = 1; i < arguments.length; i++) {
|
|
8599
8599
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8600
8600
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8604,12 +8604,12 @@ function _object_spread$X(target) {
|
|
|
8604
8604
|
}));
|
|
8605
8605
|
}
|
|
8606
8606
|
ownKeys2.forEach(function(key) {
|
|
8607
|
-
_define_property$
|
|
8607
|
+
_define_property$10(target, key, source[key]);
|
|
8608
8608
|
});
|
|
8609
8609
|
}
|
|
8610
8610
|
return target;
|
|
8611
8611
|
}
|
|
8612
|
-
function ownKeys$
|
|
8612
|
+
function ownKeys$R(object, enumerableOnly) {
|
|
8613
8613
|
var keys2 = Object.keys(object);
|
|
8614
8614
|
if (Object.getOwnPropertySymbols) {
|
|
8615
8615
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8622,12 +8622,12 @@ function ownKeys$P(object, enumerableOnly) {
|
|
|
8622
8622
|
}
|
|
8623
8623
|
return keys2;
|
|
8624
8624
|
}
|
|
8625
|
-
function _object_spread_props$
|
|
8625
|
+
function _object_spread_props$R(target, source) {
|
|
8626
8626
|
source = source != null ? source : {};
|
|
8627
8627
|
if (Object.getOwnPropertyDescriptors) {
|
|
8628
8628
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8629
8629
|
} else {
|
|
8630
|
-
ownKeys$
|
|
8630
|
+
ownKeys$R(Object(source)).forEach(function(key) {
|
|
8631
8631
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8632
8632
|
});
|
|
8633
8633
|
}
|
|
@@ -8651,7 +8651,7 @@ function _unsupported_iterable_to_array$l(o, minLen) {
|
|
|
8651
8651
|
}
|
|
8652
8652
|
var AccountInfo = function(param) {
|
|
8653
8653
|
var data = param.data, testId = param.testId, avatar = param.avatar, tweakStyles = param.tweakStyles, accountName = param.accountName, options = param.options;
|
|
8654
|
-
var classes = useStyles$
|
|
8654
|
+
var classes = useStyles$T({
|
|
8655
8655
|
theme: tweakStyles
|
|
8656
8656
|
});
|
|
8657
8657
|
var tweakListStyles = useTweakStyles({
|
|
@@ -8671,7 +8671,7 @@ var AccountInfo = function(param) {
|
|
|
8671
8671
|
useOnClickOutsideWithRef(dropdownRef, function() {
|
|
8672
8672
|
return setIsMenuOpen(false);
|
|
8673
8673
|
}, nameRef);
|
|
8674
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
8674
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$R(_object_spread$_({
|
|
8675
8675
|
className: classes.root
|
|
8676
8676
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
8677
8677
|
children: [
|
|
@@ -8721,7 +8721,7 @@ var AccountInfo = function(param) {
|
|
|
8721
8721
|
]
|
|
8722
8722
|
}));
|
|
8723
8723
|
};
|
|
8724
|
-
var useStyles$
|
|
8724
|
+
var useStyles$S = createThemedStyles("AddButton", {
|
|
8725
8725
|
root: {
|
|
8726
8726
|
display: "flex",
|
|
8727
8727
|
alignItems: "center",
|
|
@@ -8747,7 +8747,7 @@ var useStyles$Q = createThemedStyles("AddButton", {
|
|
|
8747
8747
|
width: "100%"
|
|
8748
8748
|
}
|
|
8749
8749
|
});
|
|
8750
|
-
function _define_property
|
|
8750
|
+
function _define_property$$(obj, key, value) {
|
|
8751
8751
|
if (key in obj) {
|
|
8752
8752
|
Object.defineProperty(obj, key, {
|
|
8753
8753
|
value,
|
|
@@ -8760,7 +8760,7 @@ function _define_property$Y(obj, key, value) {
|
|
|
8760
8760
|
}
|
|
8761
8761
|
return obj;
|
|
8762
8762
|
}
|
|
8763
|
-
function _object_spread$
|
|
8763
|
+
function _object_spread$Z(target) {
|
|
8764
8764
|
for (var i = 1; i < arguments.length; i++) {
|
|
8765
8765
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8766
8766
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8770,12 +8770,12 @@ function _object_spread$W(target) {
|
|
|
8770
8770
|
}));
|
|
8771
8771
|
}
|
|
8772
8772
|
ownKeys2.forEach(function(key) {
|
|
8773
|
-
_define_property
|
|
8773
|
+
_define_property$$(target, key, source[key]);
|
|
8774
8774
|
});
|
|
8775
8775
|
}
|
|
8776
8776
|
return target;
|
|
8777
8777
|
}
|
|
8778
|
-
function ownKeys$
|
|
8778
|
+
function ownKeys$Q(object, enumerableOnly) {
|
|
8779
8779
|
var keys2 = Object.keys(object);
|
|
8780
8780
|
if (Object.getOwnPropertySymbols) {
|
|
8781
8781
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8788,12 +8788,12 @@ function ownKeys$O(object, enumerableOnly) {
|
|
|
8788
8788
|
}
|
|
8789
8789
|
return keys2;
|
|
8790
8790
|
}
|
|
8791
|
-
function _object_spread_props$
|
|
8791
|
+
function _object_spread_props$Q(target, source) {
|
|
8792
8792
|
source = source != null ? source : {};
|
|
8793
8793
|
if (Object.getOwnPropertyDescriptors) {
|
|
8794
8794
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8795
8795
|
} else {
|
|
8796
|
-
ownKeys$
|
|
8796
|
+
ownKeys$Q(Object(source)).forEach(function(key) {
|
|
8797
8797
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8798
8798
|
});
|
|
8799
8799
|
}
|
|
@@ -8801,10 +8801,10 @@ function _object_spread_props$O(target, source) {
|
|
|
8801
8801
|
}
|
|
8802
8802
|
var AddButton = function(param) {
|
|
8803
8803
|
var text = param.text, _param_type = param.type, type = _param_type === void 0 ? "button" : _param_type, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, onClick = param.onClick, _param_isFullWidth = param.isFullWidth, isFullWidth = _param_isFullWidth === void 0 ? false : _param_isFullWidth, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
8804
|
-
var classes = useStyles$
|
|
8804
|
+
var classes = useStyles$S({
|
|
8805
8805
|
theme: tweakStyles
|
|
8806
8806
|
});
|
|
8807
|
-
return /* @__PURE__ */ jsxs("button", _object_spread_props$
|
|
8807
|
+
return /* @__PURE__ */ jsxs("button", _object_spread_props$Q(_object_spread$Z({
|
|
8808
8808
|
type,
|
|
8809
8809
|
className: clsx(classes.root, isDisabled && classes.disabled, isFullWidth && classes.fullWidth),
|
|
8810
8810
|
onClick: !isDisabled ? onClick : void 0,
|
|
@@ -8823,7 +8823,7 @@ var AddButton = function(param) {
|
|
|
8823
8823
|
]
|
|
8824
8824
|
}));
|
|
8825
8825
|
};
|
|
8826
|
-
var useStyles$
|
|
8826
|
+
var useStyles$R = createThemedStyles("DotsPreloader", {
|
|
8827
8827
|
root: {
|
|
8828
8828
|
display: "flex",
|
|
8829
8829
|
gap: 4,
|
|
@@ -8869,7 +8869,7 @@ var useStyles$P = createThemedStyles("DotsPreloader", {
|
|
|
8869
8869
|
});
|
|
8870
8870
|
var DotsPreloader = function(param) {
|
|
8871
8871
|
var tweakStyles = param.tweakStyles;
|
|
8872
|
-
var classes = useStyles$
|
|
8872
|
+
var classes = useStyles$R({
|
|
8873
8873
|
theme: tweakStyles
|
|
8874
8874
|
});
|
|
8875
8875
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -8935,7 +8935,7 @@ var DefaultPreloader = function() {
|
|
|
8935
8935
|
]
|
|
8936
8936
|
});
|
|
8937
8937
|
};
|
|
8938
|
-
var useStyles$
|
|
8938
|
+
var useStyles$Q = createThemedStyles("SvgPreloader", {
|
|
8939
8939
|
root: {
|
|
8940
8940
|
display: "flex",
|
|
8941
8941
|
width: "100%",
|
|
@@ -8945,7 +8945,7 @@ var useStyles$O = createThemedStyles("SvgPreloader", {
|
|
|
8945
8945
|
var SvgPreloader = function(param) {
|
|
8946
8946
|
var _param_type = param.type, type = _param_type === void 0 ? "default" : _param_type, tweakStyles = param.tweakStyles;
|
|
8947
8947
|
var _theme_preloaders;
|
|
8948
|
-
var classes = useStyles$
|
|
8948
|
+
var classes = useStyles$Q({
|
|
8949
8949
|
theme: tweakStyles
|
|
8950
8950
|
});
|
|
8951
8951
|
var theme = useContext(ThemeContext).theme;
|
|
@@ -8959,7 +8959,7 @@ var SvgPreloader = function(param) {
|
|
|
8959
8959
|
}
|
|
8960
8960
|
}) : /* @__PURE__ */ jsx(PreloaderIcon, {});
|
|
8961
8961
|
};
|
|
8962
|
-
var useStyles$
|
|
8962
|
+
var useStyles$P = createThemedStyles("ThemedPreloader", {
|
|
8963
8963
|
root: {
|
|
8964
8964
|
display: "flex"
|
|
8965
8965
|
},
|
|
@@ -8970,7 +8970,7 @@ var useStyles$N = createThemedStyles("ThemedPreloader", {
|
|
|
8970
8970
|
color: "currentColor"
|
|
8971
8971
|
}
|
|
8972
8972
|
});
|
|
8973
|
-
function _define_property$
|
|
8973
|
+
function _define_property$_(obj, key, value) {
|
|
8974
8974
|
if (key in obj) {
|
|
8975
8975
|
Object.defineProperty(obj, key, {
|
|
8976
8976
|
value,
|
|
@@ -8983,7 +8983,7 @@ function _define_property$X(obj, key, value) {
|
|
|
8983
8983
|
}
|
|
8984
8984
|
return obj;
|
|
8985
8985
|
}
|
|
8986
|
-
function _object_spread$
|
|
8986
|
+
function _object_spread$Y(target) {
|
|
8987
8987
|
for (var i = 1; i < arguments.length; i++) {
|
|
8988
8988
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8989
8989
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8993,12 +8993,12 @@ function _object_spread$V(target) {
|
|
|
8993
8993
|
}));
|
|
8994
8994
|
}
|
|
8995
8995
|
ownKeys2.forEach(function(key) {
|
|
8996
|
-
_define_property$
|
|
8996
|
+
_define_property$_(target, key, source[key]);
|
|
8997
8997
|
});
|
|
8998
8998
|
}
|
|
8999
8999
|
return target;
|
|
9000
9000
|
}
|
|
9001
|
-
function ownKeys$
|
|
9001
|
+
function ownKeys$P(object, enumerableOnly) {
|
|
9002
9002
|
var keys2 = Object.keys(object);
|
|
9003
9003
|
if (Object.getOwnPropertySymbols) {
|
|
9004
9004
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9011,12 +9011,12 @@ function ownKeys$N(object, enumerableOnly) {
|
|
|
9011
9011
|
}
|
|
9012
9012
|
return keys2;
|
|
9013
9013
|
}
|
|
9014
|
-
function _object_spread_props$
|
|
9014
|
+
function _object_spread_props$P(target, source) {
|
|
9015
9015
|
source = source != null ? source : {};
|
|
9016
9016
|
if (Object.getOwnPropertyDescriptors) {
|
|
9017
9017
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9018
9018
|
} else {
|
|
9019
|
-
ownKeys$
|
|
9019
|
+
ownKeys$P(Object(source)).forEach(function(key) {
|
|
9020
9020
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9021
9021
|
});
|
|
9022
9022
|
}
|
|
@@ -9024,7 +9024,7 @@ function _object_spread_props$N(target, source) {
|
|
|
9024
9024
|
}
|
|
9025
9025
|
var ThemedPreloader = function(param) {
|
|
9026
9026
|
var _param_type = param.type, type = _param_type === void 0 ? "default" : _param_type, _param_useCurrentColor = param.useCurrentColor, useCurrentColor = _param_useCurrentColor === void 0 ? false : _param_useCurrentColor, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
9027
|
-
var classes = useStyles$
|
|
9027
|
+
var classes = useStyles$P({
|
|
9028
9028
|
theme: tweakStyles
|
|
9029
9029
|
});
|
|
9030
9030
|
var tweakDotsPreloaderStyles = useTweakStyles({
|
|
@@ -9037,8 +9037,8 @@ var ThemedPreloader = function(param) {
|
|
|
9037
9037
|
className: "tweakSvgPreloader",
|
|
9038
9038
|
currentComponentName: "ThemedPreloader"
|
|
9039
9039
|
});
|
|
9040
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
9041
|
-
className: clsx(classes.root, classes[type], _define_property$
|
|
9040
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$P(_object_spread$Y({
|
|
9041
|
+
className: clsx(classes.root, classes[type], _define_property$_({}, classes.currentColor, useCurrentColor))
|
|
9042
9042
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
9043
9043
|
children: type === "dots" ? /* @__PURE__ */ jsx(DotsPreloader, {
|
|
9044
9044
|
tweakStyles: tweakDotsPreloaderStyles
|
|
@@ -9048,7 +9048,7 @@ var ThemedPreloader = function(param) {
|
|
|
9048
9048
|
})
|
|
9049
9049
|
}));
|
|
9050
9050
|
};
|
|
9051
|
-
var useStyles$
|
|
9051
|
+
var useStyles$O = createThemedStyles("Button", {
|
|
9052
9052
|
root: {
|
|
9053
9053
|
display: "flex",
|
|
9054
9054
|
justifyContent: "center",
|
|
@@ -9219,7 +9219,7 @@ var dotsPreloaderStyles = {
|
|
|
9219
9219
|
var getPreloaderStyles = function(size2) {
|
|
9220
9220
|
return size2 === "s" || size2 === "m" ? dotsPreloaderStyles : void 0;
|
|
9221
9221
|
};
|
|
9222
|
-
function _define_property$
|
|
9222
|
+
function _define_property$Z(obj, key, value) {
|
|
9223
9223
|
if (key in obj) {
|
|
9224
9224
|
Object.defineProperty(obj, key, {
|
|
9225
9225
|
value,
|
|
@@ -9232,7 +9232,7 @@ function _define_property$W(obj, key, value) {
|
|
|
9232
9232
|
}
|
|
9233
9233
|
return obj;
|
|
9234
9234
|
}
|
|
9235
|
-
function _object_spread$
|
|
9235
|
+
function _object_spread$X(target) {
|
|
9236
9236
|
for (var i = 1; i < arguments.length; i++) {
|
|
9237
9237
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9238
9238
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9242,12 +9242,12 @@ function _object_spread$U(target) {
|
|
|
9242
9242
|
}));
|
|
9243
9243
|
}
|
|
9244
9244
|
ownKeys2.forEach(function(key) {
|
|
9245
|
-
_define_property$
|
|
9245
|
+
_define_property$Z(target, key, source[key]);
|
|
9246
9246
|
});
|
|
9247
9247
|
}
|
|
9248
9248
|
return target;
|
|
9249
9249
|
}
|
|
9250
|
-
function ownKeys$
|
|
9250
|
+
function ownKeys$O(object, enumerableOnly) {
|
|
9251
9251
|
var keys2 = Object.keys(object);
|
|
9252
9252
|
if (Object.getOwnPropertySymbols) {
|
|
9253
9253
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9260,21 +9260,21 @@ function ownKeys$M(object, enumerableOnly) {
|
|
|
9260
9260
|
}
|
|
9261
9261
|
return keys2;
|
|
9262
9262
|
}
|
|
9263
|
-
function _object_spread_props$
|
|
9263
|
+
function _object_spread_props$O(target, source) {
|
|
9264
9264
|
source = source != null ? source : {};
|
|
9265
9265
|
if (Object.getOwnPropertyDescriptors) {
|
|
9266
9266
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9267
9267
|
} else {
|
|
9268
|
-
ownKeys$
|
|
9268
|
+
ownKeys$O(Object(source)).forEach(function(key) {
|
|
9269
9269
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9270
9270
|
});
|
|
9271
9271
|
}
|
|
9272
9272
|
return target;
|
|
9273
9273
|
}
|
|
9274
|
-
function _object_without_properties$
|
|
9274
|
+
function _object_without_properties$j(source, excluded) {
|
|
9275
9275
|
if (source == null)
|
|
9276
9276
|
return {};
|
|
9277
|
-
var target = _object_without_properties_loose$
|
|
9277
|
+
var target = _object_without_properties_loose$j(source, excluded);
|
|
9278
9278
|
var key, i;
|
|
9279
9279
|
if (Object.getOwnPropertySymbols) {
|
|
9280
9280
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -9289,7 +9289,7 @@ function _object_without_properties$h(source, excluded) {
|
|
|
9289
9289
|
}
|
|
9290
9290
|
return target;
|
|
9291
9291
|
}
|
|
9292
|
-
function _object_without_properties_loose$
|
|
9292
|
+
function _object_without_properties_loose$j(source, excluded) {
|
|
9293
9293
|
if (source == null)
|
|
9294
9294
|
return {};
|
|
9295
9295
|
var target = {};
|
|
@@ -9304,7 +9304,7 @@ function _object_without_properties_loose$h(source, excluded) {
|
|
|
9304
9304
|
return target;
|
|
9305
9305
|
}
|
|
9306
9306
|
var Button = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
9307
|
-
var _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, children = _param.children, _param_size = _param.size, size2 = _param_size === void 0 ? "l" : _param_size, _param_view = _param.view, view = _param_view === void 0 ? "primary" : _param_view, _param_isFullWidth = _param.isFullWidth, isFullWidth = _param_isFullWidth === void 0 ? false : _param_isFullWidth, _param_isInline = _param.isInline, isInline = _param_isInline === void 0 ? false : _param_isInline, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_shouldSkipTabNavigation = _param.shouldSkipTabNavigation, shouldSkipTabNavigation = _param_shouldSkipTabNavigation === void 0 ? false : _param_shouldSkipTabNavigation, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, icon = _param.icon, _param_iconPosition = _param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "left" : _param_iconPosition, _param_preloaderType = _param.preloaderType, preloaderType = _param_preloaderType === void 0 ? "dots" : _param_preloaderType, interactions = _object_without_properties$
|
|
9307
|
+
var _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, children = _param.children, _param_size = _param.size, size2 = _param_size === void 0 ? "l" : _param_size, _param_view = _param.view, view = _param_view === void 0 ? "primary" : _param_view, _param_isFullWidth = _param.isFullWidth, isFullWidth = _param_isFullWidth === void 0 ? false : _param_isFullWidth, _param_isInline = _param.isInline, isInline = _param_isInline === void 0 ? false : _param_isInline, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_shouldSkipTabNavigation = _param.shouldSkipTabNavigation, shouldSkipTabNavigation = _param_shouldSkipTabNavigation === void 0 ? false : _param_shouldSkipTabNavigation, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, icon = _param.icon, _param_iconPosition = _param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "left" : _param_iconPosition, _param_preloaderType = _param.preloaderType, preloaderType = _param_preloaderType === void 0 ? "dots" : _param_preloaderType, interactions = _object_without_properties$j(_param, [
|
|
9308
9308
|
"type",
|
|
9309
9309
|
"children",
|
|
9310
9310
|
"size",
|
|
@@ -9322,7 +9322,7 @@ var Button = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
9322
9322
|
"iconPosition",
|
|
9323
9323
|
"preloaderType"
|
|
9324
9324
|
]);
|
|
9325
|
-
var classes = useStyles$
|
|
9325
|
+
var classes = useStyles$O({
|
|
9326
9326
|
theme: tweakStyles
|
|
9327
9327
|
});
|
|
9328
9328
|
var tweakPreloaderStyles = useTweakStyles({
|
|
@@ -9335,16 +9335,16 @@ var Button = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
9335
9335
|
var hasChildren = isReactNodeNotEmpty(children);
|
|
9336
9336
|
var hasNoAction = isDisabled || isLoading;
|
|
9337
9337
|
var _obj2, _obj1;
|
|
9338
|
-
return /* @__PURE__ */ jsxs("button", _object_spread_props$
|
|
9338
|
+
return /* @__PURE__ */ jsxs("button", _object_spread_props$O(_object_spread$X({
|
|
9339
9339
|
ref,
|
|
9340
9340
|
type,
|
|
9341
|
-
className: clsx(classes.root, classes[size2], classes[view], (_obj2 = {}, _define_property$
|
|
9341
|
+
className: clsx(classes.root, classes[size2], classes[view], (_obj2 = {}, _define_property$Z(_obj2, classes.disabled, isDisabled), _define_property$Z(_obj2, classes.fullWidth, isFullWidth), _define_property$Z(_obj2, classes.inline, isInline), _define_property$Z(_obj2, classes.active, isActive), _define_property$Z(_obj2, classes.loading, isLoading), _define_property$Z(_obj2, classes.onlyIcon, hasIcon && !hasChildren), _obj2)),
|
|
9342
9342
|
tabIndex: shouldSkipTabNavigation ? -1 : void 0,
|
|
9343
9343
|
disabled: hasNoAction
|
|
9344
9344
|
}, interactions, addDataTestId(testId), addDataAttributes(data)), {
|
|
9345
9345
|
children: [
|
|
9346
9346
|
/* @__PURE__ */ jsxs("span", {
|
|
9347
|
-
className: clsx(classes.content, (_obj1 = {}, _define_property$
|
|
9347
|
+
className: clsx(classes.content, (_obj1 = {}, _define_property$Z(_obj1, classes.iconFromRight, hasChildren && hasIcon && iconPosition === "right"), _define_property$Z(_obj1, classes.iconFromLeft, hasChildren && hasIcon && iconPosition === "left"), _obj1)),
|
|
9348
9348
|
children: [
|
|
9349
9349
|
hasIcon && /* @__PURE__ */ jsx("span", {
|
|
9350
9350
|
className: classes.icon,
|
|
@@ -9367,7 +9367,7 @@ var Button = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
9367
9367
|
]
|
|
9368
9368
|
}));
|
|
9369
9369
|
});
|
|
9370
|
-
var useStyles$
|
|
9370
|
+
var useStyles$N = createThemedStyles("Checkbox", {
|
|
9371
9371
|
root: {
|
|
9372
9372
|
cursor: "pointer",
|
|
9373
9373
|
display: "flex",
|
|
@@ -9405,7 +9405,7 @@ var useStyles$L = createThemedStyles("Checkbox", {
|
|
|
9405
9405
|
flexDirection: "row-reverse"
|
|
9406
9406
|
}
|
|
9407
9407
|
});
|
|
9408
|
-
function _define_property$
|
|
9408
|
+
function _define_property$Y(obj, key, value) {
|
|
9409
9409
|
if (key in obj) {
|
|
9410
9410
|
Object.defineProperty(obj, key, {
|
|
9411
9411
|
value,
|
|
@@ -9418,7 +9418,7 @@ function _define_property$V(obj, key, value) {
|
|
|
9418
9418
|
}
|
|
9419
9419
|
return obj;
|
|
9420
9420
|
}
|
|
9421
|
-
function _object_spread$
|
|
9421
|
+
function _object_spread$W(target) {
|
|
9422
9422
|
for (var i = 1; i < arguments.length; i++) {
|
|
9423
9423
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9424
9424
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9428,12 +9428,12 @@ function _object_spread$T(target) {
|
|
|
9428
9428
|
}));
|
|
9429
9429
|
}
|
|
9430
9430
|
ownKeys2.forEach(function(key) {
|
|
9431
|
-
_define_property$
|
|
9431
|
+
_define_property$Y(target, key, source[key]);
|
|
9432
9432
|
});
|
|
9433
9433
|
}
|
|
9434
9434
|
return target;
|
|
9435
9435
|
}
|
|
9436
|
-
function ownKeys$
|
|
9436
|
+
function ownKeys$N(object, enumerableOnly) {
|
|
9437
9437
|
var keys2 = Object.keys(object);
|
|
9438
9438
|
if (Object.getOwnPropertySymbols) {
|
|
9439
9439
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9446,12 +9446,12 @@ function ownKeys$L(object, enumerableOnly) {
|
|
|
9446
9446
|
}
|
|
9447
9447
|
return keys2;
|
|
9448
9448
|
}
|
|
9449
|
-
function _object_spread_props$
|
|
9449
|
+
function _object_spread_props$N(target, source) {
|
|
9450
9450
|
source = source != null ? source : {};
|
|
9451
9451
|
if (Object.getOwnPropertyDescriptors) {
|
|
9452
9452
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9453
9453
|
} else {
|
|
9454
|
-
ownKeys$
|
|
9454
|
+
ownKeys$N(Object(source)).forEach(function(key) {
|
|
9455
9455
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9456
9456
|
});
|
|
9457
9457
|
}
|
|
@@ -9459,7 +9459,7 @@ function _object_spread_props$L(target, source) {
|
|
|
9459
9459
|
}
|
|
9460
9460
|
function Checkbox(param) {
|
|
9461
9461
|
var value = param.value, children = param.children, _param_isChecked = param.isChecked, isChecked = _param_isChecked === void 0 ? false : _param_isChecked, _param_isSemiChecked = param.isSemiChecked, isSemiChecked = _param_isSemiChecked === void 0 ? false : _param_isSemiChecked, _param_isInvalid = param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isReadonly = param.isReadonly, isReadonly = _param_isReadonly === void 0 ? false : _param_isReadonly, _param_labelPosition = param.labelPosition, labelPosition = _param_labelPosition === void 0 ? "right" : _param_labelPosition, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles, onSelect = param.onSelect;
|
|
9462
|
-
var classes = useStyles$
|
|
9462
|
+
var classes = useStyles$N({
|
|
9463
9463
|
theme: tweakStyles
|
|
9464
9464
|
});
|
|
9465
9465
|
var hasAction = !isDisabled && !isReadonly;
|
|
@@ -9471,11 +9471,11 @@ function Checkbox(param) {
|
|
|
9471
9471
|
}, event);
|
|
9472
9472
|
};
|
|
9473
9473
|
var _obj2;
|
|
9474
|
-
return /* @__PURE__ */ jsxs("label", _object_spread_props$
|
|
9475
|
-
className: clsx(classes.root, (_obj2 = {}, _define_property$
|
|
9474
|
+
return /* @__PURE__ */ jsxs("label", _object_spread_props$N(_object_spread$W({
|
|
9475
|
+
className: clsx(classes.root, (_obj2 = {}, _define_property$Y(_obj2, classes.checked, isSelected), _define_property$Y(_obj2, classes.invalid, isInvalid), _define_property$Y(_obj2, classes.disabled, isDisabled), _define_property$Y(_obj2, classes.labelPositionLeft, labelPosition === "left"), _obj2))
|
|
9476
9476
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
9477
9477
|
children: [
|
|
9478
|
-
/* @__PURE__ */ jsx("input", _object_spread$
|
|
9478
|
+
/* @__PURE__ */ jsx("input", _object_spread$W({
|
|
9479
9479
|
className: classes.input,
|
|
9480
9480
|
type: "checkbox",
|
|
9481
9481
|
checked: isSelected,
|
|
@@ -9498,7 +9498,7 @@ function Checkbox(param) {
|
|
|
9498
9498
|
]
|
|
9499
9499
|
}));
|
|
9500
9500
|
}
|
|
9501
|
-
var useStyles$
|
|
9501
|
+
var useStyles$M = createThemedStyles("CloseButton", {
|
|
9502
9502
|
root: {
|
|
9503
9503
|
width: 40,
|
|
9504
9504
|
height: 40,
|
|
@@ -9524,7 +9524,7 @@ var useStyles$K = createThemedStyles("CloseButton", {
|
|
|
9524
9524
|
}
|
|
9525
9525
|
}
|
|
9526
9526
|
});
|
|
9527
|
-
function _define_property$
|
|
9527
|
+
function _define_property$X(obj, key, value) {
|
|
9528
9528
|
if (key in obj) {
|
|
9529
9529
|
Object.defineProperty(obj, key, {
|
|
9530
9530
|
value,
|
|
@@ -9537,7 +9537,7 @@ function _define_property$U(obj, key, value) {
|
|
|
9537
9537
|
}
|
|
9538
9538
|
return obj;
|
|
9539
9539
|
}
|
|
9540
|
-
function _object_spread$
|
|
9540
|
+
function _object_spread$V(target) {
|
|
9541
9541
|
for (var i = 1; i < arguments.length; i++) {
|
|
9542
9542
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9543
9543
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9547,12 +9547,12 @@ function _object_spread$S(target) {
|
|
|
9547
9547
|
}));
|
|
9548
9548
|
}
|
|
9549
9549
|
ownKeys2.forEach(function(key) {
|
|
9550
|
-
_define_property$
|
|
9550
|
+
_define_property$X(target, key, source[key]);
|
|
9551
9551
|
});
|
|
9552
9552
|
}
|
|
9553
9553
|
return target;
|
|
9554
9554
|
}
|
|
9555
|
-
function ownKeys$
|
|
9555
|
+
function ownKeys$M(object, enumerableOnly) {
|
|
9556
9556
|
var keys2 = Object.keys(object);
|
|
9557
9557
|
if (Object.getOwnPropertySymbols) {
|
|
9558
9558
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9565,12 +9565,12 @@ function ownKeys$K(object, enumerableOnly) {
|
|
|
9565
9565
|
}
|
|
9566
9566
|
return keys2;
|
|
9567
9567
|
}
|
|
9568
|
-
function _object_spread_props$
|
|
9568
|
+
function _object_spread_props$M(target, source) {
|
|
9569
9569
|
source = source != null ? source : {};
|
|
9570
9570
|
if (Object.getOwnPropertyDescriptors) {
|
|
9571
9571
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9572
9572
|
} else {
|
|
9573
|
-
ownKeys$
|
|
9573
|
+
ownKeys$M(Object(source)).forEach(function(key) {
|
|
9574
9574
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9575
9575
|
});
|
|
9576
9576
|
}
|
|
@@ -9578,10 +9578,10 @@ function _object_spread_props$K(target, source) {
|
|
|
9578
9578
|
}
|
|
9579
9579
|
var CloseButton = function(param) {
|
|
9580
9580
|
var tweakStyles = param.tweakStyles, testId = param.testId, data = param.data, _param_iconType = param.iconType, iconType = _param_iconType === void 0 ? "close" : _param_iconType, onClose = param.onClose;
|
|
9581
|
-
var classes = useStyles$
|
|
9581
|
+
var classes = useStyles$M({
|
|
9582
9582
|
theme: tweakStyles
|
|
9583
9583
|
});
|
|
9584
|
-
return /* @__PURE__ */ jsx("button", _object_spread_props$
|
|
9584
|
+
return /* @__PURE__ */ jsx("button", _object_spread_props$M(_object_spread$V({
|
|
9585
9585
|
type: "button",
|
|
9586
9586
|
className: classes.root,
|
|
9587
9587
|
onClick: onClose
|
|
@@ -9591,7 +9591,7 @@ var CloseButton = function(param) {
|
|
|
9591
9591
|
})
|
|
9592
9592
|
}));
|
|
9593
9593
|
};
|
|
9594
|
-
var useStyles$
|
|
9594
|
+
var useStyles$L = createThemedStyles({
|
|
9595
9595
|
root: {
|
|
9596
9596
|
display: "flex",
|
|
9597
9597
|
flexWrap: "wrap"
|
|
@@ -9684,7 +9684,7 @@ function _unsupported_iterable_to_array$k(o, minLen) {
|
|
|
9684
9684
|
return _array_like_to_array$k(o, minLen);
|
|
9685
9685
|
}
|
|
9686
9686
|
var Colors = function() {
|
|
9687
|
-
var classes = useStyles$
|
|
9687
|
+
var classes = useStyles$L();
|
|
9688
9688
|
var theme = useContext(ThemeContext).theme;
|
|
9689
9689
|
var _theme_colors = theme.colors, colors2 = _theme_colors === void 0 ? {} : _theme_colors;
|
|
9690
9690
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -9714,7 +9714,7 @@ var Colors = function() {
|
|
|
9714
9714
|
})
|
|
9715
9715
|
});
|
|
9716
9716
|
};
|
|
9717
|
-
var useStyles$
|
|
9717
|
+
var useStyles$K = createThemedStyles("CssBaseline", {
|
|
9718
9718
|
"@global html, body": {
|
|
9719
9719
|
fontFamily: "Arial, sans-serif",
|
|
9720
9720
|
color: colors.FONT_MAIN,
|
|
@@ -9723,7 +9723,7 @@ var useStyles$I = createThemedStyles("CssBaseline", {
|
|
|
9723
9723
|
},
|
|
9724
9724
|
root: {}
|
|
9725
9725
|
});
|
|
9726
|
-
function _define_property$
|
|
9726
|
+
function _define_property$W(obj, key, value) {
|
|
9727
9727
|
if (key in obj) {
|
|
9728
9728
|
Object.defineProperty(obj, key, {
|
|
9729
9729
|
value,
|
|
@@ -9736,7 +9736,7 @@ function _define_property$T(obj, key, value) {
|
|
|
9736
9736
|
}
|
|
9737
9737
|
return obj;
|
|
9738
9738
|
}
|
|
9739
|
-
function _object_spread$
|
|
9739
|
+
function _object_spread$U(target) {
|
|
9740
9740
|
for (var i = 1; i < arguments.length; i++) {
|
|
9741
9741
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9742
9742
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9746,23 +9746,23 @@ function _object_spread$R(target) {
|
|
|
9746
9746
|
}));
|
|
9747
9747
|
}
|
|
9748
9748
|
ownKeys2.forEach(function(key) {
|
|
9749
|
-
_define_property$
|
|
9749
|
+
_define_property$W(target, key, source[key]);
|
|
9750
9750
|
});
|
|
9751
9751
|
}
|
|
9752
9752
|
return target;
|
|
9753
9753
|
}
|
|
9754
9754
|
var CssBaseline = function(param) {
|
|
9755
9755
|
var data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
9756
|
-
var classes = useStyles$
|
|
9756
|
+
var classes = useStyles$K({
|
|
9757
9757
|
theme: tweakStyles
|
|
9758
9758
|
});
|
|
9759
|
-
return /* @__PURE__ */ jsx("div", _object_spread$
|
|
9759
|
+
return /* @__PURE__ */ jsx("div", _object_spread$U({
|
|
9760
9760
|
className: classes.root
|
|
9761
9761
|
}, addDataTestId(testId), addDataAttributes(data)));
|
|
9762
9762
|
};
|
|
9763
9763
|
var DEFAULT_SIZE = 6;
|
|
9764
9764
|
var AUTOSIZE_MAX_WIDTH = 480;
|
|
9765
|
-
var useStyles$
|
|
9765
|
+
var useStyles$J = createThemedStyles("Input", {
|
|
9766
9766
|
root: {
|
|
9767
9767
|
width: "100%",
|
|
9768
9768
|
boxSizing: "border-box",
|
|
@@ -10107,7 +10107,7 @@ function _async_to_generator$5(fn3) {
|
|
|
10107
10107
|
});
|
|
10108
10108
|
};
|
|
10109
10109
|
}
|
|
10110
|
-
function _define_property$
|
|
10110
|
+
function _define_property$V(obj, key, value) {
|
|
10111
10111
|
if (key in obj) {
|
|
10112
10112
|
Object.defineProperty(obj, key, {
|
|
10113
10113
|
value,
|
|
@@ -10151,7 +10151,7 @@ function _iterable_to_array_limit$j(arr, i) {
|
|
|
10151
10151
|
function _non_iterable_rest$j() {
|
|
10152
10152
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10153
10153
|
}
|
|
10154
|
-
function _object_spread$
|
|
10154
|
+
function _object_spread$T(target) {
|
|
10155
10155
|
for (var i = 1; i < arguments.length; i++) {
|
|
10156
10156
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10157
10157
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10161,12 +10161,12 @@ function _object_spread$Q(target) {
|
|
|
10161
10161
|
}));
|
|
10162
10162
|
}
|
|
10163
10163
|
ownKeys2.forEach(function(key) {
|
|
10164
|
-
_define_property$
|
|
10164
|
+
_define_property$V(target, key, source[key]);
|
|
10165
10165
|
});
|
|
10166
10166
|
}
|
|
10167
10167
|
return target;
|
|
10168
10168
|
}
|
|
10169
|
-
function ownKeys$
|
|
10169
|
+
function ownKeys$L(object, enumerableOnly) {
|
|
10170
10170
|
var keys2 = Object.keys(object);
|
|
10171
10171
|
if (Object.getOwnPropertySymbols) {
|
|
10172
10172
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10179,21 +10179,21 @@ function ownKeys$J(object, enumerableOnly) {
|
|
|
10179
10179
|
}
|
|
10180
10180
|
return keys2;
|
|
10181
10181
|
}
|
|
10182
|
-
function _object_spread_props$
|
|
10182
|
+
function _object_spread_props$L(target, source) {
|
|
10183
10183
|
source = source != null ? source : {};
|
|
10184
10184
|
if (Object.getOwnPropertyDescriptors) {
|
|
10185
10185
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10186
10186
|
} else {
|
|
10187
|
-
ownKeys$
|
|
10187
|
+
ownKeys$L(Object(source)).forEach(function(key) {
|
|
10188
10188
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10189
10189
|
});
|
|
10190
10190
|
}
|
|
10191
10191
|
return target;
|
|
10192
10192
|
}
|
|
10193
|
-
function _object_without_properties$
|
|
10193
|
+
function _object_without_properties$i(source, excluded) {
|
|
10194
10194
|
if (source == null)
|
|
10195
10195
|
return {};
|
|
10196
|
-
var target = _object_without_properties_loose$
|
|
10196
|
+
var target = _object_without_properties_loose$i(source, excluded);
|
|
10197
10197
|
var key, i;
|
|
10198
10198
|
if (Object.getOwnPropertySymbols) {
|
|
10199
10199
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10208,7 +10208,7 @@ function _object_without_properties$g(source, excluded) {
|
|
|
10208
10208
|
}
|
|
10209
10209
|
return target;
|
|
10210
10210
|
}
|
|
10211
|
-
function _object_without_properties_loose$
|
|
10211
|
+
function _object_without_properties_loose$i(source, excluded) {
|
|
10212
10212
|
if (source == null)
|
|
10213
10213
|
return {};
|
|
10214
10214
|
var target = {};
|
|
@@ -10341,7 +10341,7 @@ function _ts_generator$5(thisArg, body) {
|
|
|
10341
10341
|
}
|
|
10342
10342
|
}
|
|
10343
10343
|
var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
10344
|
-
var _param_value = _param.value, value = _param_value === void 0 ? "" : _param_value, label = _param.label, placeholder = _param.placeholder, _param_type = _param.type, type = _param_type === void 0 ? "text" : _param_type, isDisabled = _param.isDisabled, _param_isReadonly = _param.isReadonly, isReadonly = _param_isReadonly === void 0 ? false : _param_isReadonly, _param_hasFloatingLabel = _param.hasFloatingLabel, hasFloatingLabel = _param_hasFloatingLabel === void 0 ? true : _param_hasFloatingLabel, _param_isInvalid = _param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? false : _param_isClearable, infoMessage = _param.infoMessage, errorMessage = _param.errorMessage, _param_errorPosition = _param.errorPosition, errorPosition = _param_errorPosition === void 0 ? "bottom" : _param_errorPosition, inlineStyle = _param.inlineStyle, border = _param.border, _param_isRequired = _param.isRequired, isRequired = _param_isRequired === void 0 ? false : _param_isRequired, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isAutoSizeable = _param.isAutoSizeable, isAutoSizeable = _param_isAutoSizeable === void 0 ? false : _param_isAutoSizeable, _param_defaultSize = _param.defaultSize, defaultSize = _param_defaultSize === void 0 ? DEFAULT_SIZE : _param_defaultSize, iconType = _param.iconType, hasRequiredLabel = _param.hasRequiredLabel, data = _param.data, tweakStyles = _param.tweakStyles, _param_shouldFocusOnMount = _param.shouldFocusOnMount, shouldFocusOnMount = _param_shouldFocusOnMount === void 0 ? false : _param_shouldFocusOnMount, units = _param.units, testId = _param.testId, onChange = _param.onChange, onFocus = _param.onFocus, onBlur = _param.onBlur, onIconClick = _param.onIconClick, mask = _param.mask, maskPlaceholder = _param.maskPlaceholder, alwaysShowMask = _param.alwaysShowMask, _param_shouldAlwaysShowPlaceholder = _param.shouldAlwaysShowPlaceholder, shouldAlwaysShowPlaceholder = _param_shouldAlwaysShowPlaceholder === void 0 ? false : _param_shouldAlwaysShowPlaceholder, beforeMaskedStateChange = _param.beforeMaskedStateChange, inputProps = _object_without_properties$
|
|
10344
|
+
var _param_value = _param.value, value = _param_value === void 0 ? "" : _param_value, label = _param.label, placeholder = _param.placeholder, _param_type = _param.type, type = _param_type === void 0 ? "text" : _param_type, isDisabled = _param.isDisabled, _param_isReadonly = _param.isReadonly, isReadonly = _param_isReadonly === void 0 ? false : _param_isReadonly, _param_hasFloatingLabel = _param.hasFloatingLabel, hasFloatingLabel = _param_hasFloatingLabel === void 0 ? true : _param_hasFloatingLabel, _param_isInvalid = _param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? false : _param_isClearable, infoMessage = _param.infoMessage, errorMessage = _param.errorMessage, _param_errorPosition = _param.errorPosition, errorPosition = _param_errorPosition === void 0 ? "bottom" : _param_errorPosition, inlineStyle = _param.inlineStyle, border = _param.border, _param_isRequired = _param.isRequired, isRequired = _param_isRequired === void 0 ? false : _param_isRequired, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isAutoSizeable = _param.isAutoSizeable, isAutoSizeable = _param_isAutoSizeable === void 0 ? false : _param_isAutoSizeable, _param_defaultSize = _param.defaultSize, defaultSize = _param_defaultSize === void 0 ? DEFAULT_SIZE : _param_defaultSize, iconType = _param.iconType, hasRequiredLabel = _param.hasRequiredLabel, data = _param.data, tweakStyles = _param.tweakStyles, _param_shouldFocusOnMount = _param.shouldFocusOnMount, shouldFocusOnMount = _param_shouldFocusOnMount === void 0 ? false : _param_shouldFocusOnMount, units = _param.units, testId = _param.testId, onChange = _param.onChange, onFocus = _param.onFocus, onBlur = _param.onBlur, onIconClick = _param.onIconClick, mask = _param.mask, maskPlaceholder = _param.maskPlaceholder, alwaysShowMask = _param.alwaysShowMask, _param_shouldAlwaysShowPlaceholder = _param.shouldAlwaysShowPlaceholder, shouldAlwaysShowPlaceholder = _param_shouldAlwaysShowPlaceholder === void 0 ? false : _param_shouldAlwaysShowPlaceholder, beforeMaskedStateChange = _param.beforeMaskedStateChange, inputProps = _object_without_properties$i(_param, [
|
|
10345
10345
|
"value",
|
|
10346
10346
|
"label",
|
|
10347
10347
|
"placeholder",
|
|
@@ -10378,7 +10378,7 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10378
10378
|
"shouldAlwaysShowPlaceholder",
|
|
10379
10379
|
"beforeMaskedStateChange"
|
|
10380
10380
|
]);
|
|
10381
|
-
var classes = useStyles$
|
|
10381
|
+
var classes = useStyles$J({
|
|
10382
10382
|
theme: tweakStyles
|
|
10383
10383
|
});
|
|
10384
10384
|
var tweakPreloaderStyles = useTweakStyles({
|
|
@@ -10389,7 +10389,7 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10389
10389
|
var _useState = _sliced_to_array$j(useState(false), 2), isFocused = _useState[0], setFocused = _useState[1];
|
|
10390
10390
|
var inputRef = useRef(null);
|
|
10391
10391
|
var handleChange = function(event) {
|
|
10392
|
-
onChange(event.currentTarget.value, event);
|
|
10392
|
+
onChange(event.currentTarget.value, event, "change");
|
|
10393
10393
|
};
|
|
10394
10394
|
var handleFocus = function(event) {
|
|
10395
10395
|
setFocused(true);
|
|
@@ -10407,7 +10407,7 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10407
10407
|
case 0:
|
|
10408
10408
|
return [
|
|
10409
10409
|
4,
|
|
10410
|
-
onChange("", event)
|
|
10410
|
+
onChange("", event, "clear")
|
|
10411
10411
|
];
|
|
10412
10412
|
case 1:
|
|
10413
10413
|
_state.sent();
|
|
@@ -10433,8 +10433,8 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10433
10433
|
var hasPlaceholder = (!hasLabel || isLabelActive) && isStringNotEmpty(placeholder);
|
|
10434
10434
|
var shouldShowUnits = (hasValue || isFocused && !hasPlaceholder) && hasUnits;
|
|
10435
10435
|
var _obj2;
|
|
10436
|
-
var props = _object_spread_props$
|
|
10437
|
-
className: clsx(classes.input, (_obj2 = {}, _define_property$
|
|
10436
|
+
var props = _object_spread_props$L(_object_spread$T({}, inputProps, addDataTestId(testId)), {
|
|
10437
|
+
className: clsx(classes.input, (_obj2 = {}, _define_property$V(_obj2, classes.withFloatingLabel, hasFloatingLabel && hasLabel), _define_property$V(_obj2, classes.withIcons, hasControls), _define_property$V(_obj2, classes.withControls, hasControls), _define_property$V(_obj2, classes.withUnits, shouldShowUnits), _define_property$V(_obj2, classes.floatingLabelWithoutPadding, hasFloatingLabel && hasLabel && border === "bottom"), _obj2)),
|
|
10438
10438
|
onFocus: handleFocus,
|
|
10439
10439
|
onBlur: handleBlur,
|
|
10440
10440
|
onChange: handleChange,
|
|
@@ -10450,17 +10450,17 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10450
10450
|
return /* @__PURE__ */ jsxs("div", {
|
|
10451
10451
|
className: classes.root,
|
|
10452
10452
|
children: [
|
|
10453
|
-
/* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
10454
|
-
className: clsx(classes.inputWrapper, (_obj1 = {}, _define_property$
|
|
10453
|
+
/* @__PURE__ */ jsxs("div", _object_spread_props$L(_object_spread$T({
|
|
10454
|
+
className: clsx(classes.inputWrapper, (_obj1 = {}, _define_property$V(_obj1, classes.required, isRequired && !hasRequiredLabel), _define_property$V(_obj1, classes.invalid, isInvalid), _define_property$V(_obj1, classes.focused, hasFocus), _define_property$V(_obj1, classes.disabled, isDisabled), _define_property$V(_obj1, classes.autosize, isAutoSizeable), _obj1), inlineStyle !== void 0 && classes[inlineStyle], border !== void 0 && classes["border-".concat(border)]),
|
|
10455
10455
|
"data-value": isAutoSizeable ? value : void 0
|
|
10456
10456
|
}, addDataAttributes(data)), {
|
|
10457
10457
|
children: [
|
|
10458
10458
|
/* @__PURE__ */ jsxs("div", {
|
|
10459
10459
|
className: classes.inputWithLabelWrapper,
|
|
10460
10460
|
children: [
|
|
10461
|
-
mask === void 0 ? /* @__PURE__ */ jsx("input", _object_spread$
|
|
10461
|
+
mask === void 0 ? /* @__PURE__ */ jsx("input", _object_spread$T({
|
|
10462
10462
|
ref: ref !== null && ref !== void 0 ? ref : inputRef
|
|
10463
|
-
}, props)) : /* @__PURE__ */ jsx(InputMask, _object_spread$
|
|
10463
|
+
}, props)) : /* @__PURE__ */ jsx(InputMask, _object_spread$T({
|
|
10464
10464
|
ref: ref !== null && ref !== void 0 ? ref : inputRef,
|
|
10465
10465
|
mask,
|
|
10466
10466
|
maskPlaceholder,
|
|
@@ -10468,8 +10468,8 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10468
10468
|
beforeMaskedStateChange
|
|
10469
10469
|
}, props)),
|
|
10470
10470
|
hasLabel && /* @__PURE__ */ jsx("span", {
|
|
10471
|
-
className: clsx(classes.label, (_obj22 = {}, _define_property$
|
|
10472
|
-
_define_property$
|
|
10471
|
+
className: clsx(classes.label, (_obj22 = {}, _define_property$V(_obj22, classes.invalidLabel, isInvalid), _define_property$V(_obj22, classes.requiredLabel, hasRequiredLabel && !isRequired), _define_property$V(_obj22, classes.activeLabel, isLabelActive), _define_property$V(_obj22, classes.floating, hasFloatingLabel), // Обсуждаемо, сделал так, потому что не хочется создавать новую пропсу, на каждый чих в стилях
|
|
10472
|
+
_define_property$V(_obj22, classes.floatingWithoutPadding, hasFloatingLabel && border === "bottom"), _define_property$V(_obj22, classes.labelWithIcons, hasControls), _obj22)),
|
|
10473
10473
|
children: /* @__PURE__ */ jsx("span", {
|
|
10474
10474
|
className: classes.labelText,
|
|
10475
10475
|
children: label
|
|
@@ -10478,7 +10478,7 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10478
10478
|
]
|
|
10479
10479
|
}),
|
|
10480
10480
|
shouldShowUnits && /* @__PURE__ */ jsxs("div", {
|
|
10481
|
-
className: clsx(classes.unitsWrapper, _define_property$
|
|
10481
|
+
className: clsx(classes.unitsWrapper, _define_property$V({}, classes.withFloatingLabel, hasFloatingLabel && hasLabel)),
|
|
10482
10482
|
children: [
|
|
10483
10483
|
/* @__PURE__ */ jsx("span", {
|
|
10484
10484
|
className: classes.fakeValue,
|
|
@@ -10510,7 +10510,7 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10510
10510
|
})
|
|
10511
10511
|
}),
|
|
10512
10512
|
isReactNodeNotEmpty(iconType) && /* @__PURE__ */ jsx("div", {
|
|
10513
|
-
className: clsx(classes.inputIcon, _define_property$
|
|
10513
|
+
className: clsx(classes.inputIcon, _define_property$V({}, classes.activeIcon, !isDisabled && onIconClick !== void 0)),
|
|
10514
10514
|
onClick: !isDisabled ? onIconClick : void 0,
|
|
10515
10515
|
children: renderIcon(iconType)
|
|
10516
10516
|
})
|
|
@@ -10531,7 +10531,7 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10531
10531
|
});
|
|
10532
10532
|
var EMPTY_DATE_INPUT_VALUE = "__.__.____";
|
|
10533
10533
|
var EMPTY_DATE_RANGE_INPUT_VALUE = "".concat(EMPTY_DATE_INPUT_VALUE, " - ").concat(EMPTY_DATE_INPUT_VALUE);
|
|
10534
|
-
var useStyles$
|
|
10534
|
+
var useStyles$I = createThemedStyles("DateInput", {
|
|
10535
10535
|
root: {
|
|
10536
10536
|
width: "100%",
|
|
10537
10537
|
height: "100%",
|
|
@@ -10539,7 +10539,7 @@ var useStyles$G = createThemedStyles("DateInput", {
|
|
|
10539
10539
|
position: "relative"
|
|
10540
10540
|
}
|
|
10541
10541
|
});
|
|
10542
|
-
function _define_property$
|
|
10542
|
+
function _define_property$U(obj, key, value) {
|
|
10543
10543
|
if (key in obj) {
|
|
10544
10544
|
Object.defineProperty(obj, key, {
|
|
10545
10545
|
value,
|
|
@@ -10552,7 +10552,7 @@ function _define_property$R(obj, key, value) {
|
|
|
10552
10552
|
}
|
|
10553
10553
|
return obj;
|
|
10554
10554
|
}
|
|
10555
|
-
function _object_spread$
|
|
10555
|
+
function _object_spread$S(target) {
|
|
10556
10556
|
for (var i = 1; i < arguments.length; i++) {
|
|
10557
10557
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10558
10558
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10562,12 +10562,12 @@ function _object_spread$P(target) {
|
|
|
10562
10562
|
}));
|
|
10563
10563
|
}
|
|
10564
10564
|
ownKeys2.forEach(function(key) {
|
|
10565
|
-
_define_property$
|
|
10565
|
+
_define_property$U(target, key, source[key]);
|
|
10566
10566
|
});
|
|
10567
10567
|
}
|
|
10568
10568
|
return target;
|
|
10569
10569
|
}
|
|
10570
|
-
function ownKeys$
|
|
10570
|
+
function ownKeys$K(object, enumerableOnly) {
|
|
10571
10571
|
var keys2 = Object.keys(object);
|
|
10572
10572
|
if (Object.getOwnPropertySymbols) {
|
|
10573
10573
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10580,21 +10580,21 @@ function ownKeys$I(object, enumerableOnly) {
|
|
|
10580
10580
|
}
|
|
10581
10581
|
return keys2;
|
|
10582
10582
|
}
|
|
10583
|
-
function _object_spread_props$
|
|
10583
|
+
function _object_spread_props$K(target, source) {
|
|
10584
10584
|
source = source != null ? source : {};
|
|
10585
10585
|
if (Object.getOwnPropertyDescriptors) {
|
|
10586
10586
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10587
10587
|
} else {
|
|
10588
|
-
ownKeys$
|
|
10588
|
+
ownKeys$K(Object(source)).forEach(function(key) {
|
|
10589
10589
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10590
10590
|
});
|
|
10591
10591
|
}
|
|
10592
10592
|
return target;
|
|
10593
10593
|
}
|
|
10594
|
-
function _object_without_properties$
|
|
10594
|
+
function _object_without_properties$h(source, excluded) {
|
|
10595
10595
|
if (source == null)
|
|
10596
10596
|
return {};
|
|
10597
|
-
var target = _object_without_properties_loose$
|
|
10597
|
+
var target = _object_without_properties_loose$h(source, excluded);
|
|
10598
10598
|
var key, i;
|
|
10599
10599
|
if (Object.getOwnPropertySymbols) {
|
|
10600
10600
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10609,7 +10609,7 @@ function _object_without_properties$f(source, excluded) {
|
|
|
10609
10609
|
}
|
|
10610
10610
|
return target;
|
|
10611
10611
|
}
|
|
10612
|
-
function _object_without_properties_loose$
|
|
10612
|
+
function _object_without_properties_loose$h(source, excluded) {
|
|
10613
10613
|
if (source == null)
|
|
10614
10614
|
return {};
|
|
10615
10615
|
var target = {};
|
|
@@ -10624,7 +10624,7 @@ function _object_without_properties_loose$f(source, excluded) {
|
|
|
10624
10624
|
return target;
|
|
10625
10625
|
}
|
|
10626
10626
|
var DateInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
10627
|
-
var date = _param.date, _param_startDate = _param.startDate, startDate = _param_startDate === void 0 ? "" : _param_startDate, _param_endDate = _param.endDate, endDate = _param_endDate === void 0 ? "" : _param_endDate, mask = _param.mask, className = _param.className, placeholder = _param.placeholder, data = _param.data, _param_isRange = _param.isRange, isRange = _param_isRange === void 0 ? false : _param_isRange, tweakStyles = _param.tweakStyles, onClick = _param.onClick, onChange = _param.onChange, inputProps = _object_without_properties$
|
|
10627
|
+
var date = _param.date, _param_startDate = _param.startDate, startDate = _param_startDate === void 0 ? "" : _param_startDate, _param_endDate = _param.endDate, endDate = _param_endDate === void 0 ? "" : _param_endDate, mask = _param.mask, className = _param.className, placeholder = _param.placeholder, data = _param.data, _param_isRange = _param.isRange, isRange = _param_isRange === void 0 ? false : _param_isRange, tweakStyles = _param.tweakStyles, onClick = _param.onClick, onChange = _param.onChange, inputProps = _object_without_properties$h(_param, [
|
|
10628
10628
|
"date",
|
|
10629
10629
|
"startDate",
|
|
10630
10630
|
"endDate",
|
|
@@ -10637,7 +10637,7 @@ var DateInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10637
10637
|
"onClick",
|
|
10638
10638
|
"onChange"
|
|
10639
10639
|
]);
|
|
10640
|
-
var classes = useStyles$
|
|
10640
|
+
var classes = useStyles$I({
|
|
10641
10641
|
theme: tweakStyles
|
|
10642
10642
|
});
|
|
10643
10643
|
var tweakInputStyles = useTweakStyles({
|
|
@@ -10664,11 +10664,11 @@ var DateInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10664
10664
|
}
|
|
10665
10665
|
onChange === null || onChange === void 0 ? void 0 : onChange(event, value);
|
|
10666
10666
|
};
|
|
10667
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
10667
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$K(_object_spread$S({
|
|
10668
10668
|
className: clsx(classes.root, className),
|
|
10669
10669
|
onClick
|
|
10670
10670
|
}, addDataAttributes(data)), {
|
|
10671
|
-
children: /* @__PURE__ */ jsx(Input, _object_spread_props$
|
|
10671
|
+
children: /* @__PURE__ */ jsx(Input, _object_spread_props$K(_object_spread$S({}, inputProps), {
|
|
10672
10672
|
ref,
|
|
10673
10673
|
value: isRange ? "".concat(startDate).concat(endDate) : date,
|
|
10674
10674
|
mask: mask !== null && mask !== void 0 ? mask : isRange ? "99.99.9999 - 99.99.9999" : "99.99.9999",
|
|
@@ -10680,7 +10680,7 @@ var DateInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10680
10680
|
}));
|
|
10681
10681
|
});
|
|
10682
10682
|
const reactDatepicker = "";
|
|
10683
|
-
var useStyles$
|
|
10683
|
+
var useStyles$H = createThemedStyles("SearchInput", {
|
|
10684
10684
|
root: {
|
|
10685
10685
|
position: "relative"
|
|
10686
10686
|
},
|
|
@@ -10721,7 +10721,7 @@ var inputStyles$4 = {
|
|
|
10721
10721
|
fontSize: 14
|
|
10722
10722
|
}
|
|
10723
10723
|
};
|
|
10724
|
-
function _define_property$
|
|
10724
|
+
function _define_property$T(obj, key, value) {
|
|
10725
10725
|
if (key in obj) {
|
|
10726
10726
|
Object.defineProperty(obj, key, {
|
|
10727
10727
|
value,
|
|
@@ -10734,7 +10734,7 @@ function _define_property$Q(obj, key, value) {
|
|
|
10734
10734
|
}
|
|
10735
10735
|
return obj;
|
|
10736
10736
|
}
|
|
10737
|
-
function _object_spread$
|
|
10737
|
+
function _object_spread$R(target) {
|
|
10738
10738
|
for (var i = 1; i < arguments.length; i++) {
|
|
10739
10739
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10740
10740
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10744,12 +10744,12 @@ function _object_spread$O(target) {
|
|
|
10744
10744
|
}));
|
|
10745
10745
|
}
|
|
10746
10746
|
ownKeys2.forEach(function(key) {
|
|
10747
|
-
_define_property$
|
|
10747
|
+
_define_property$T(target, key, source[key]);
|
|
10748
10748
|
});
|
|
10749
10749
|
}
|
|
10750
10750
|
return target;
|
|
10751
10751
|
}
|
|
10752
|
-
function ownKeys$
|
|
10752
|
+
function ownKeys$J(object, enumerableOnly) {
|
|
10753
10753
|
var keys2 = Object.keys(object);
|
|
10754
10754
|
if (Object.getOwnPropertySymbols) {
|
|
10755
10755
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10762,21 +10762,21 @@ function ownKeys$H(object, enumerableOnly) {
|
|
|
10762
10762
|
}
|
|
10763
10763
|
return keys2;
|
|
10764
10764
|
}
|
|
10765
|
-
function _object_spread_props$
|
|
10765
|
+
function _object_spread_props$J(target, source) {
|
|
10766
10766
|
source = source != null ? source : {};
|
|
10767
10767
|
if (Object.getOwnPropertyDescriptors) {
|
|
10768
10768
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10769
10769
|
} else {
|
|
10770
|
-
ownKeys$
|
|
10770
|
+
ownKeys$J(Object(source)).forEach(function(key) {
|
|
10771
10771
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10772
10772
|
});
|
|
10773
10773
|
}
|
|
10774
10774
|
return target;
|
|
10775
10775
|
}
|
|
10776
|
-
function _object_without_properties$
|
|
10776
|
+
function _object_without_properties$g(source, excluded) {
|
|
10777
10777
|
if (source == null)
|
|
10778
10778
|
return {};
|
|
10779
|
-
var target = _object_without_properties_loose$
|
|
10779
|
+
var target = _object_without_properties_loose$g(source, excluded);
|
|
10780
10780
|
var key, i;
|
|
10781
10781
|
if (Object.getOwnPropertySymbols) {
|
|
10782
10782
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10791,7 +10791,7 @@ function _object_without_properties$e(source, excluded) {
|
|
|
10791
10791
|
}
|
|
10792
10792
|
return target;
|
|
10793
10793
|
}
|
|
10794
|
-
function _object_without_properties_loose$
|
|
10794
|
+
function _object_without_properties_loose$g(source, excluded) {
|
|
10795
10795
|
if (source == null)
|
|
10796
10796
|
return {};
|
|
10797
10797
|
var target = {};
|
|
@@ -10806,14 +10806,14 @@ function _object_without_properties_loose$e(source, excluded) {
|
|
|
10806
10806
|
return target;
|
|
10807
10807
|
}
|
|
10808
10808
|
var SearchInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
10809
|
-
var _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? true : _param_isClearable, tweakStyles = _param.tweakStyles, testId = _param.testId, data = _param.data, onSearchIconClick = _param.onSearchIconClick, props = _object_without_properties$
|
|
10809
|
+
var _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? true : _param_isClearable, tweakStyles = _param.tweakStyles, testId = _param.testId, data = _param.data, onSearchIconClick = _param.onSearchIconClick, props = _object_without_properties$g(_param, [
|
|
10810
10810
|
"isClearable",
|
|
10811
10811
|
"tweakStyles",
|
|
10812
10812
|
"testId",
|
|
10813
10813
|
"data",
|
|
10814
10814
|
"onSearchIconClick"
|
|
10815
10815
|
]);
|
|
10816
|
-
var classes = useStyles$
|
|
10816
|
+
var classes = useStyles$H({
|
|
10817
10817
|
theme: tweakStyles
|
|
10818
10818
|
});
|
|
10819
10819
|
var tweakInputStyles = useTweakStyles({
|
|
@@ -10822,18 +10822,18 @@ var SearchInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10822
10822
|
className: "tweakInput",
|
|
10823
10823
|
currentComponentName: "SearchInput"
|
|
10824
10824
|
});
|
|
10825
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
10825
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$J(_object_spread$R({
|
|
10826
10826
|
className: classes.root
|
|
10827
10827
|
}, addDataAttributes$1(data, testId)), {
|
|
10828
10828
|
children: [
|
|
10829
|
-
/* @__PURE__ */ jsx("div", _object_spread_props$
|
|
10830
|
-
className: clsx(classes.icon, _define_property$
|
|
10829
|
+
/* @__PURE__ */ jsx("div", _object_spread_props$J(_object_spread$R({
|
|
10830
|
+
className: clsx(classes.icon, _define_property$T({}, classes.iconClickable, isNotEmpty(onSearchIconClick)))
|
|
10831
10831
|
}, addClickHandler(onSearchIconClick)), {
|
|
10832
10832
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
10833
10833
|
type: "search"
|
|
10834
10834
|
})
|
|
10835
10835
|
})),
|
|
10836
|
-
/* @__PURE__ */ jsx(Input, _object_spread$
|
|
10836
|
+
/* @__PURE__ */ jsx(Input, _object_spread$R({
|
|
10837
10837
|
ref,
|
|
10838
10838
|
inputMode: "search",
|
|
10839
10839
|
isClearable,
|
|
@@ -10884,7 +10884,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
10884
10884
|
_defineProperties(Constructor, staticProps);
|
|
10885
10885
|
return Constructor;
|
|
10886
10886
|
}
|
|
10887
|
-
function _define_property$
|
|
10887
|
+
function _define_property$S(obj, key, value) {
|
|
10888
10888
|
if (key in obj) {
|
|
10889
10889
|
Object.defineProperty(obj, key, {
|
|
10890
10890
|
value,
|
|
@@ -10917,7 +10917,7 @@ function _inherits(subClass, superClass) {
|
|
|
10917
10917
|
if (superClass)
|
|
10918
10918
|
_set_prototype_of(subClass, superClass);
|
|
10919
10919
|
}
|
|
10920
|
-
function _object_spread$
|
|
10920
|
+
function _object_spread$Q(target) {
|
|
10921
10921
|
for (var i = 1; i < arguments.length; i++) {
|
|
10922
10922
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10923
10923
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10927,15 +10927,15 @@ function _object_spread$N(target) {
|
|
|
10927
10927
|
}));
|
|
10928
10928
|
}
|
|
10929
10929
|
ownKeys2.forEach(function(key) {
|
|
10930
|
-
_define_property$
|
|
10930
|
+
_define_property$S(target, key, source[key]);
|
|
10931
10931
|
});
|
|
10932
10932
|
}
|
|
10933
10933
|
return target;
|
|
10934
10934
|
}
|
|
10935
|
-
function _object_without_properties$
|
|
10935
|
+
function _object_without_properties$f(source, excluded) {
|
|
10936
10936
|
if (source == null)
|
|
10937
10937
|
return {};
|
|
10938
|
-
var target = _object_without_properties_loose$
|
|
10938
|
+
var target = _object_without_properties_loose$f(source, excluded);
|
|
10939
10939
|
var key, i;
|
|
10940
10940
|
if (Object.getOwnPropertySymbols) {
|
|
10941
10941
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10950,7 +10950,7 @@ function _object_without_properties$d(source, excluded) {
|
|
|
10950
10950
|
}
|
|
10951
10951
|
return target;
|
|
10952
10952
|
}
|
|
10953
|
-
function _object_without_properties_loose$
|
|
10953
|
+
function _object_without_properties_loose$f(source, excluded) {
|
|
10954
10954
|
if (source == null)
|
|
10955
10955
|
return {};
|
|
10956
10956
|
var target = {};
|
|
@@ -11016,8 +11016,8 @@ var ScrollIntoViewIfNeeded = /* @__PURE__ */ function(PureComponent2) {
|
|
|
11016
11016
|
_class_call_check(this, ScrollIntoViewIfNeeded2);
|
|
11017
11017
|
var _this;
|
|
11018
11018
|
_this = _super.apply(this, arguments);
|
|
11019
|
-
_define_property$
|
|
11020
|
-
_define_property$
|
|
11019
|
+
_define_property$S(_assert_this_initialized(_this), "node", createRef());
|
|
11020
|
+
_define_property$S(_assert_this_initialized(_this), "handleScrollIntoViewIfNeeded", function() {
|
|
11021
11021
|
var options = _this.props.options;
|
|
11022
11022
|
var _this_node = _this.node, node = _this_node.current;
|
|
11023
11023
|
if (node) {
|
|
@@ -11053,13 +11053,13 @@ var ScrollIntoViewIfNeeded = /* @__PURE__ */ function(PureComponent2) {
|
|
|
11053
11053
|
_this_props.active;
|
|
11054
11054
|
var elementType = _this_props.elementType, children = _this_props.children;
|
|
11055
11055
|
_this_props.options;
|
|
11056
|
-
var wrapperProps = _object_without_properties$
|
|
11056
|
+
var wrapperProps = _object_without_properties$f(_this_props, [
|
|
11057
11057
|
"active",
|
|
11058
11058
|
"elementType",
|
|
11059
11059
|
"children",
|
|
11060
11060
|
"options"
|
|
11061
11061
|
]);
|
|
11062
|
-
return createElement(elementType !== null && elementType !== void 0 ? elementType : ScrollIntoViewIfNeededDefaultElementType, _object_spread$
|
|
11062
|
+
return createElement(elementType !== null && elementType !== void 0 ? elementType : ScrollIntoViewIfNeededDefaultElementType, _object_spread$Q({
|
|
11063
11063
|
ref: this.node
|
|
11064
11064
|
}, wrapperProps), children);
|
|
11065
11065
|
}
|
|
@@ -11067,10 +11067,10 @@ var ScrollIntoViewIfNeeded = /* @__PURE__ */ function(PureComponent2) {
|
|
|
11067
11067
|
]);
|
|
11068
11068
|
return ScrollIntoViewIfNeeded2;
|
|
11069
11069
|
}(PureComponent);
|
|
11070
|
-
_define_property$
|
|
11070
|
+
_define_property$S(ScrollIntoViewIfNeeded, "defaultProps", ScrollIntoViewIfNeededDefaultProps);
|
|
11071
11071
|
var DEFAULT_OPTION_INDEX = -2;
|
|
11072
11072
|
var ALL_OPTION_INDEX = -1;
|
|
11073
|
-
function _define_property$
|
|
11073
|
+
function _define_property$R(obj, key, value) {
|
|
11074
11074
|
if (key in obj) {
|
|
11075
11075
|
Object.defineProperty(obj, key, {
|
|
11076
11076
|
value,
|
|
@@ -11083,7 +11083,7 @@ function _define_property$O(obj, key, value) {
|
|
|
11083
11083
|
}
|
|
11084
11084
|
return obj;
|
|
11085
11085
|
}
|
|
11086
|
-
function _object_spread$
|
|
11086
|
+
function _object_spread$P(target) {
|
|
11087
11087
|
for (var i = 1; i < arguments.length; i++) {
|
|
11088
11088
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
11089
11089
|
var ownKeys2 = Object.keys(source);
|
|
@@ -11093,7 +11093,7 @@ function _object_spread$M(target) {
|
|
|
11093
11093
|
}));
|
|
11094
11094
|
}
|
|
11095
11095
|
ownKeys2.forEach(function(key) {
|
|
11096
|
-
_define_property$
|
|
11096
|
+
_define_property$R(target, key, source[key]);
|
|
11097
11097
|
});
|
|
11098
11098
|
}
|
|
11099
11099
|
return target;
|
|
@@ -11104,7 +11104,7 @@ var CELL_PADDING = [
|
|
|
11104
11104
|
10,
|
|
11105
11105
|
20
|
|
11106
11106
|
];
|
|
11107
|
-
var useStyles$
|
|
11107
|
+
var useStyles$G = createThemedStyles("SelectList", {
|
|
11108
11108
|
root: {
|
|
11109
11109
|
borderRadius: dimensions.BORDER_RADIUS_SMALL,
|
|
11110
11110
|
boxShadow: "0 13px 74px -27px rgba(0, 0, 0, 0.11)",
|
|
@@ -11124,7 +11124,7 @@ var useStyles$E = createThemedStyles("SelectList", {
|
|
|
11124
11124
|
},
|
|
11125
11125
|
listHeader: {},
|
|
11126
11126
|
listFooter: {},
|
|
11127
|
-
list: _object_spread$
|
|
11127
|
+
list: _object_spread$P({
|
|
11128
11128
|
height: "100%",
|
|
11129
11129
|
maxHeight: ROW_HEIGHT$1 * 6,
|
|
11130
11130
|
cursor: "pointer",
|
|
@@ -11167,7 +11167,7 @@ var checkboxStyles$1 = {
|
|
|
11167
11167
|
display: "none"
|
|
11168
11168
|
}
|
|
11169
11169
|
};
|
|
11170
|
-
function _define_property$
|
|
11170
|
+
function _define_property$Q(obj, key, value) {
|
|
11171
11171
|
if (key in obj) {
|
|
11172
11172
|
Object.defineProperty(obj, key, {
|
|
11173
11173
|
value,
|
|
@@ -11180,7 +11180,7 @@ function _define_property$N(obj, key, value) {
|
|
|
11180
11180
|
}
|
|
11181
11181
|
return obj;
|
|
11182
11182
|
}
|
|
11183
|
-
function _object_spread$
|
|
11183
|
+
function _object_spread$O(target) {
|
|
11184
11184
|
for (var i = 1; i < arguments.length; i++) {
|
|
11185
11185
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
11186
11186
|
var ownKeys2 = Object.keys(source);
|
|
@@ -11190,12 +11190,12 @@ function _object_spread$L(target) {
|
|
|
11190
11190
|
}));
|
|
11191
11191
|
}
|
|
11192
11192
|
ownKeys2.forEach(function(key) {
|
|
11193
|
-
_define_property$
|
|
11193
|
+
_define_property$Q(target, key, source[key]);
|
|
11194
11194
|
});
|
|
11195
11195
|
}
|
|
11196
11196
|
return target;
|
|
11197
11197
|
}
|
|
11198
|
-
function ownKeys$
|
|
11198
|
+
function ownKeys$I(object, enumerableOnly) {
|
|
11199
11199
|
var keys2 = Object.keys(object);
|
|
11200
11200
|
if (Object.getOwnPropertySymbols) {
|
|
11201
11201
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -11208,12 +11208,12 @@ function ownKeys$G(object, enumerableOnly) {
|
|
|
11208
11208
|
}
|
|
11209
11209
|
return keys2;
|
|
11210
11210
|
}
|
|
11211
|
-
function _object_spread_props$
|
|
11211
|
+
function _object_spread_props$I(target, source) {
|
|
11212
11212
|
source = source != null ? source : {};
|
|
11213
11213
|
if (Object.getOwnPropertyDescriptors) {
|
|
11214
11214
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
11215
11215
|
} else {
|
|
11216
|
-
ownKeys$
|
|
11216
|
+
ownKeys$I(Object(source)).forEach(function(key) {
|
|
11217
11217
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
11218
11218
|
});
|
|
11219
11219
|
}
|
|
@@ -11233,12 +11233,12 @@ var SelectListItem = function(param) {
|
|
|
11233
11233
|
children
|
|
11234
11234
|
});
|
|
11235
11235
|
var _obj2;
|
|
11236
|
-
return /* @__PURE__ */ jsx(ScrollIntoViewIfNeeded, _object_spread_props$
|
|
11236
|
+
return /* @__PURE__ */ jsx(ScrollIntoViewIfNeeded, _object_spread_props$I(_object_spread$O({
|
|
11237
11237
|
active: isFocused,
|
|
11238
11238
|
options: {
|
|
11239
11239
|
block: "nearest"
|
|
11240
11240
|
},
|
|
11241
|
-
className: clsx(classes.cell, (_obj2 = {}, _define_property$
|
|
11241
|
+
className: clsx(classes.cell, (_obj2 = {}, _define_property$Q(_obj2, classes.cellWithCheckbox, isMultiSelect), _define_property$Q(_obj2, classes.focused, isFocused), _define_property$Q(_obj2, classes.active, isActive && !isMultiSelect), _define_property$Q(_obj2, classes.disabled, isDisabled), _obj2))
|
|
11242
11242
|
}, addDataAttributes({
|
|
11243
11243
|
disabled: isDisabled,
|
|
11244
11244
|
active: isActive,
|
|
@@ -11250,7 +11250,7 @@ var SelectListItem = function(param) {
|
|
|
11250
11250
|
children: isMultiSelect ? multiSelectContent : children
|
|
11251
11251
|
}));
|
|
11252
11252
|
};
|
|
11253
|
-
function _define_property$
|
|
11253
|
+
function _define_property$P(obj, key, value) {
|
|
11254
11254
|
if (key in obj) {
|
|
11255
11255
|
Object.defineProperty(obj, key, {
|
|
11256
11256
|
value,
|
|
@@ -11263,7 +11263,7 @@ function _define_property$M(obj, key, value) {
|
|
|
11263
11263
|
}
|
|
11264
11264
|
return obj;
|
|
11265
11265
|
}
|
|
11266
|
-
function _object_spread$
|
|
11266
|
+
function _object_spread$N(target) {
|
|
11267
11267
|
for (var i = 1; i < arguments.length; i++) {
|
|
11268
11268
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
11269
11269
|
var ownKeys2 = Object.keys(source);
|
|
@@ -11273,12 +11273,12 @@ function _object_spread$K(target) {
|
|
|
11273
11273
|
}));
|
|
11274
11274
|
}
|
|
11275
11275
|
ownKeys2.forEach(function(key) {
|
|
11276
|
-
_define_property$
|
|
11276
|
+
_define_property$P(target, key, source[key]);
|
|
11277
11277
|
});
|
|
11278
11278
|
}
|
|
11279
11279
|
return target;
|
|
11280
11280
|
}
|
|
11281
|
-
function ownKeys$
|
|
11281
|
+
function ownKeys$H(object, enumerableOnly) {
|
|
11282
11282
|
var keys2 = Object.keys(object);
|
|
11283
11283
|
if (Object.getOwnPropertySymbols) {
|
|
11284
11284
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -11291,12 +11291,12 @@ function ownKeys$F(object, enumerableOnly) {
|
|
|
11291
11291
|
}
|
|
11292
11292
|
return keys2;
|
|
11293
11293
|
}
|
|
11294
|
-
function _object_spread_props$
|
|
11294
|
+
function _object_spread_props$H(target, source) {
|
|
11295
11295
|
source = source != null ? source : {};
|
|
11296
11296
|
if (Object.getOwnPropertyDescriptors) {
|
|
11297
11297
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
11298
11298
|
} else {
|
|
11299
|
-
ownKeys$
|
|
11299
|
+
ownKeys$H(Object(source)).forEach(function(key) {
|
|
11300
11300
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
11301
11301
|
});
|
|
11302
11302
|
}
|
|
@@ -11304,7 +11304,7 @@ function _object_spread_props$F(target, source) {
|
|
|
11304
11304
|
}
|
|
11305
11305
|
function SelectList(param) {
|
|
11306
11306
|
var options = param.options, focusedIndex = param.focusedIndex, activeValue = param.activeValue, defaultOptionLabel = param.defaultOptionLabel, _param_noMatchesLabel = param.noMatchesLabel, noMatchesLabel = _param_noMatchesLabel === void 0 ? "Совпадений не найдено" : _param_noMatchesLabel, isLoading = param.isLoading, _param_loadingLabel = param.loadingLabel, loadingLabel = _param_loadingLabel === void 0 ? "Загрузка..." : _param_loadingLabel, tweakStyles = param.tweakStyles, testId = param.testId, _param_shouldScrollToList = param.shouldScrollToList, shouldScrollToList = _param_shouldScrollToList === void 0 ? true : _param_shouldScrollToList, areAllOptionsSelected = param.areAllOptionsSelected, customListHeader = param.customListHeader, customListFooter = param.customListFooter, isMultiSelect = param.isMultiSelect, isOptionDisabled = param.isOptionDisabled, allOptionsLabel = param.allOptionsLabel, onOptionSelect = param.onOptionSelect, onToggleCheckbox = param.onToggleCheckbox, convertValueToString = param.convertValueToString, _param_convertValueToReactNode = param.convertValueToReactNode, convertValueToReactNode = _param_convertValueToReactNode === void 0 ? convertValueToString : _param_convertValueToReactNode, convertValueToId = param.convertValueToId;
|
|
11307
|
-
var classes = useStyles$
|
|
11307
|
+
var classes = useStyles$G({
|
|
11308
11308
|
theme: tweakStyles
|
|
11309
11309
|
});
|
|
11310
11310
|
var isHeaderNotEmpty = isReactNodeNotEmpty(customListHeader);
|
|
@@ -11333,13 +11333,13 @@ function SelectList(param) {
|
|
|
11333
11333
|
var _obj2;
|
|
11334
11334
|
return /* @__PURE__ */ jsxs(ScrollIntoViewIfNeeded, {
|
|
11335
11335
|
active: shouldScrollToList && !isMultiSelect,
|
|
11336
|
-
className: clsx(classes.root, (_obj2 = {}, _define_property$
|
|
11336
|
+
className: clsx(classes.root, (_obj2 = {}, _define_property$P(_obj2, classes.withListHeader, isHeaderNotEmpty), _define_property$P(_obj2, classes.withListFooter, isFooterNotEmpty), _obj2)),
|
|
11337
11337
|
children: [
|
|
11338
11338
|
isHeaderNotEmpty && /* @__PURE__ */ jsx("div", {
|
|
11339
11339
|
className: classes.listHeader,
|
|
11340
11340
|
children: customListHeader
|
|
11341
11341
|
}),
|
|
11342
|
-
/* @__PURE__ */ jsx("div", _object_spread_props$
|
|
11342
|
+
/* @__PURE__ */ jsx("div", _object_spread_props$H(_object_spread$N({
|
|
11343
11343
|
className: classes.list
|
|
11344
11344
|
}, addDataTestId(testId)), {
|
|
11345
11345
|
tabIndex: -1,
|
|
@@ -11416,7 +11416,7 @@ var getDefaultConvertToIdFunction = function(convertValueToString) {
|
|
|
11416
11416
|
return isNotEmpty(value === null || value === void 0 ? void 0 : value.id) ? String(value.id) : convertValueToString(value);
|
|
11417
11417
|
};
|
|
11418
11418
|
};
|
|
11419
|
-
var useStyles$
|
|
11419
|
+
var useStyles$F = createThemedStyles("Select", {
|
|
11420
11420
|
root: {
|
|
11421
11421
|
width: "100%",
|
|
11422
11422
|
position: "relative",
|
|
@@ -11578,7 +11578,7 @@ function _async_to_generator$4(fn3) {
|
|
|
11578
11578
|
});
|
|
11579
11579
|
};
|
|
11580
11580
|
}
|
|
11581
|
-
function _define_property$
|
|
11581
|
+
function _define_property$O(obj, key, value) {
|
|
11582
11582
|
if (key in obj) {
|
|
11583
11583
|
Object.defineProperty(obj, key, {
|
|
11584
11584
|
value,
|
|
@@ -11629,7 +11629,7 @@ function _non_iterable_rest$i() {
|
|
|
11629
11629
|
function _non_iterable_spread$6() {
|
|
11630
11630
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
11631
11631
|
}
|
|
11632
|
-
function _object_spread$
|
|
11632
|
+
function _object_spread$M(target) {
|
|
11633
11633
|
for (var i = 1; i < arguments.length; i++) {
|
|
11634
11634
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
11635
11635
|
var ownKeys2 = Object.keys(source);
|
|
@@ -11639,12 +11639,12 @@ function _object_spread$J(target) {
|
|
|
11639
11639
|
}));
|
|
11640
11640
|
}
|
|
11641
11641
|
ownKeys2.forEach(function(key) {
|
|
11642
|
-
_define_property$
|
|
11642
|
+
_define_property$O(target, key, source[key]);
|
|
11643
11643
|
});
|
|
11644
11644
|
}
|
|
11645
11645
|
return target;
|
|
11646
11646
|
}
|
|
11647
|
-
function ownKeys$
|
|
11647
|
+
function ownKeys$G(object, enumerableOnly) {
|
|
11648
11648
|
var keys2 = Object.keys(object);
|
|
11649
11649
|
if (Object.getOwnPropertySymbols) {
|
|
11650
11650
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -11657,21 +11657,21 @@ function ownKeys$E(object, enumerableOnly) {
|
|
|
11657
11657
|
}
|
|
11658
11658
|
return keys2;
|
|
11659
11659
|
}
|
|
11660
|
-
function _object_spread_props$
|
|
11660
|
+
function _object_spread_props$G(target, source) {
|
|
11661
11661
|
source = source != null ? source : {};
|
|
11662
11662
|
if (Object.getOwnPropertyDescriptors) {
|
|
11663
11663
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
11664
11664
|
} else {
|
|
11665
|
-
ownKeys$
|
|
11665
|
+
ownKeys$G(Object(source)).forEach(function(key) {
|
|
11666
11666
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
11667
11667
|
});
|
|
11668
11668
|
}
|
|
11669
11669
|
return target;
|
|
11670
11670
|
}
|
|
11671
|
-
function _object_without_properties$
|
|
11671
|
+
function _object_without_properties$e(source, excluded) {
|
|
11672
11672
|
if (source == null)
|
|
11673
11673
|
return {};
|
|
11674
|
-
var target = _object_without_properties_loose$
|
|
11674
|
+
var target = _object_without_properties_loose$e(source, excluded);
|
|
11675
11675
|
var key, i;
|
|
11676
11676
|
if (Object.getOwnPropertySymbols) {
|
|
11677
11677
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -11686,7 +11686,7 @@ function _object_without_properties$c(source, excluded) {
|
|
|
11686
11686
|
}
|
|
11687
11687
|
return target;
|
|
11688
11688
|
}
|
|
11689
|
-
function _object_without_properties_loose$
|
|
11689
|
+
function _object_without_properties_loose$e(source, excluded) {
|
|
11690
11690
|
if (source == null)
|
|
11691
11691
|
return {};
|
|
11692
11692
|
var target = {};
|
|
@@ -11823,7 +11823,7 @@ function _ts_generator$4(thisArg, body) {
|
|
|
11823
11823
|
}
|
|
11824
11824
|
function Select(props) {
|
|
11825
11825
|
var _input_current_parentElement, _input_current;
|
|
11826
|
-
var options = props.options, isMultiSelect = props.isMultiSelect, value = props.value, header = props.header, footer = props.footer, defaultOptionLabel = props.defaultOptionLabel, allOptionsLabel = props.allOptionsLabel, _props_debounceTime = props.debounceTime, debounceTime = _props_debounceTime === void 0 ? 400 : _props_debounceTime, _props_optionsMode = props.optionsMode, optionsMode = _props_optionsMode === void 0 ? "normal" : _props_optionsMode, noMatchesLabel = props.noMatchesLabel, loadingLabel = props.loadingLabel, tweakStyles = props.tweakStyles, testId = props.testId, isActive = props.isActive, isReadonly = props.isReadonly, isDisabled = props.isDisabled, dropdownOptions = props.dropdownOptions, _props_minSymbolsCountToOpenList = props.minSymbolsCountToOpenList, minSymbolsCountToOpenList = _props_minSymbolsCountToOpenList === void 0 ? 0 : _props_minSymbolsCountToOpenList, _props_dropdownIcon = props.dropdownIcon, dropdownIcon = _props_dropdownIcon === void 0 ? "chevron-down" : _props_dropdownIcon, _props_shouldScrollToList = props.shouldScrollToList, shouldScrollToList = _props_shouldScrollToList === void 0 ? true : _props_shouldScrollToList, searchInput = props.searchInput, iconType = props.iconType, onChange = props.onChange, onFocus = props.onFocus, onBlur = props.onBlur, onType = props.onType, onOpen = props.onOpen, _props_isOptionDisabled = props.isOptionDisabled, isOptionDisabled = _props_isOptionDisabled === void 0 ? defaultIsOptionDisabled : _props_isOptionDisabled, _props_compareValuesOnChange = props.compareValuesOnChange, compareValuesOnChange = _props_compareValuesOnChange === void 0 ? defaultCompareFunction : _props_compareValuesOnChange, _props_convertValueToString = props.convertValueToString, convertValueToString = _props_convertValueToString === void 0 ? defaultConvertFunction$2 : _props_convertValueToString, convertValueToId = props.convertValueToId, convertValueToReactNode = props.convertValueToReactNode, optionsFilter = props.optionsFilter, inputProps = _object_without_properties$
|
|
11826
|
+
var options = props.options, isMultiSelect = props.isMultiSelect, value = props.value, header = props.header, footer = props.footer, defaultOptionLabel = props.defaultOptionLabel, allOptionsLabel = props.allOptionsLabel, _props_debounceTime = props.debounceTime, debounceTime = _props_debounceTime === void 0 ? 400 : _props_debounceTime, _props_optionsMode = props.optionsMode, optionsMode = _props_optionsMode === void 0 ? "normal" : _props_optionsMode, noMatchesLabel = props.noMatchesLabel, loadingLabel = props.loadingLabel, tweakStyles = props.tweakStyles, testId = props.testId, isActive = props.isActive, isReadonly = props.isReadonly, isDisabled = props.isDisabled, dropdownOptions = props.dropdownOptions, _props_minSymbolsCountToOpenList = props.minSymbolsCountToOpenList, minSymbolsCountToOpenList = _props_minSymbolsCountToOpenList === void 0 ? 0 : _props_minSymbolsCountToOpenList, _props_dropdownIcon = props.dropdownIcon, dropdownIcon = _props_dropdownIcon === void 0 ? "chevron-down" : _props_dropdownIcon, _props_shouldScrollToList = props.shouldScrollToList, shouldScrollToList = _props_shouldScrollToList === void 0 ? true : _props_shouldScrollToList, searchInput = props.searchInput, iconType = props.iconType, onChange = props.onChange, onFocus = props.onFocus, onBlur = props.onBlur, onType = props.onType, onOpen = props.onOpen, _props_isOptionDisabled = props.isOptionDisabled, isOptionDisabled = _props_isOptionDisabled === void 0 ? defaultIsOptionDisabled : _props_isOptionDisabled, _props_compareValuesOnChange = props.compareValuesOnChange, compareValuesOnChange = _props_compareValuesOnChange === void 0 ? defaultCompareFunction : _props_compareValuesOnChange, _props_convertValueToString = props.convertValueToString, convertValueToString = _props_convertValueToString === void 0 ? defaultConvertFunction$2 : _props_convertValueToString, convertValueToId = props.convertValueToId, convertValueToReactNode = props.convertValueToReactNode, optionsFilter = props.optionsFilter, inputProps = _object_without_properties$e(props, [
|
|
11827
11827
|
"options",
|
|
11828
11828
|
"isMultiSelect",
|
|
11829
11829
|
"value",
|
|
@@ -11858,10 +11858,10 @@ function Select(props) {
|
|
|
11858
11858
|
"convertValueToReactNode",
|
|
11859
11859
|
"optionsFilter"
|
|
11860
11860
|
]);
|
|
11861
|
-
var classes = useStyles$
|
|
11861
|
+
var classes = useStyles$F({
|
|
11862
11862
|
theme: tweakStyles
|
|
11863
11863
|
});
|
|
11864
|
-
var _ref = searchInput !== null && searchInput !== void 0 ? searchInput : {}, tmp = _ref.shouldRenderInList, shouldRenderSearchInputInList = tmp === void 0 ? false : tmp, searchInputProps = _object_without_properties$
|
|
11864
|
+
var _ref = searchInput !== null && searchInput !== void 0 ? searchInput : {}, tmp = _ref.shouldRenderInList, shouldRenderSearchInputInList = tmp === void 0 ? false : tmp, searchInputProps = _object_without_properties$e(_ref, [
|
|
11865
11865
|
"shouldRenderInList"
|
|
11866
11866
|
]);
|
|
11867
11867
|
var hasSearchInputInList = optionsMode !== "normal" && shouldRenderSearchInputInList;
|
|
@@ -12230,7 +12230,7 @@ function Select(props) {
|
|
|
12230
12230
|
}, [
|
|
12231
12231
|
isOpen
|
|
12232
12232
|
]);
|
|
12233
|
-
var searchInputEl = hasSearchInputInList && /* @__PURE__ */ jsx(SearchInput, _object_spread$
|
|
12233
|
+
var searchInputEl = hasSearchInputInList && /* @__PURE__ */ jsx(SearchInput, _object_spread$M({
|
|
12234
12234
|
value: searchValue,
|
|
12235
12235
|
onChange: handleInputChange,
|
|
12236
12236
|
tweakStyles: tweakSearchInputStyles,
|
|
@@ -12243,8 +12243,8 @@ function Select(props) {
|
|
|
12243
12243
|
]
|
|
12244
12244
|
});
|
|
12245
12245
|
var _obj2;
|
|
12246
|
-
var listEl = /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
12247
|
-
className: clsx(classes.listWrapper, (_obj2 = {}, _define_property$
|
|
12246
|
+
var listEl = /* @__PURE__ */ jsx("div", _object_spread_props$G(_object_spread$M({
|
|
12247
|
+
className: clsx(classes.listWrapper, (_obj2 = {}, _define_property$O(_obj2, classes.withoutPopper, !shouldUsePopper), _define_property$O(_obj2, classes.listWrapperInBody, shouldRenderInBody), _obj2)),
|
|
12248
12248
|
ref: list,
|
|
12249
12249
|
style: popperData === null || popperData === void 0 ? void 0 : popperData.styles.popper,
|
|
12250
12250
|
tabIndex: 0,
|
|
@@ -12300,7 +12300,7 @@ function Select(props) {
|
|
|
12300
12300
|
onClick: isDisabled || isReadonly ? void 0 : handleOnClick,
|
|
12301
12301
|
ref: inputWrapper,
|
|
12302
12302
|
children: [
|
|
12303
|
-
/* @__PURE__ */ jsx(Input, _object_spread$
|
|
12303
|
+
/* @__PURE__ */ jsx(Input, _object_spread$M({
|
|
12304
12304
|
value: searchValue !== "" && !shouldRenderSearchInputInList ? searchValue : showedStringValue,
|
|
12305
12305
|
onChange: handleInputChange,
|
|
12306
12306
|
isActive: isListOpen || isActive,
|
|
@@ -12337,7 +12337,7 @@ function Select(props) {
|
|
|
12337
12337
|
}
|
|
12338
12338
|
var SELECT_PADDING_LEFT = 12;
|
|
12339
12339
|
var SELECT_PADDING_RIGHT = 24;
|
|
12340
|
-
var useStyles$
|
|
12340
|
+
var useStyles$E = createThemedStyles("DatePickerHeader", {
|
|
12341
12341
|
btn: {
|
|
12342
12342
|
width: 36,
|
|
12343
12343
|
height: 36,
|
|
@@ -12406,7 +12406,7 @@ var selectStyles$1 = {
|
|
|
12406
12406
|
};
|
|
12407
12407
|
var DatePickerHeader = function(param) {
|
|
12408
12408
|
var date = param.date, _param_months = param.months, months = _param_months === void 0 ? [] : _param_months, tweakStyles = param.tweakStyles, prevMonthButtonDisabled = param.prevMonthButtonDisabled, nextMonthButtonDisabled = param.nextMonthButtonDisabled, changeYear = param.changeYear, changeMonth = param.changeMonth, decreaseMonth = param.decreaseMonth, increaseMonth = param.increaseMonth;
|
|
12409
|
-
var classes = useStyles$
|
|
12409
|
+
var classes = useStyles$E({
|
|
12410
12410
|
theme: tweakStyles
|
|
12411
12411
|
});
|
|
12412
12412
|
var tweakSelectStyles = useTweakStyles({
|
|
@@ -13607,7 +13607,7 @@ var preparateDatePickerLocale = function(locale2) {
|
|
|
13607
13607
|
}
|
|
13608
13608
|
return locale2;
|
|
13609
13609
|
};
|
|
13610
|
-
var useStyles$
|
|
13610
|
+
var useStyles$D = createThemedStyles("DatePicker", {
|
|
13611
13611
|
root: {
|
|
13612
13612
|
width: "100%",
|
|
13613
13613
|
height: "100%"
|
|
@@ -13641,7 +13641,7 @@ function _array_with_holes$h(arr) {
|
|
|
13641
13641
|
if (Array.isArray(arr))
|
|
13642
13642
|
return arr;
|
|
13643
13643
|
}
|
|
13644
|
-
function _define_property$
|
|
13644
|
+
function _define_property$N(obj, key, value) {
|
|
13645
13645
|
if (key in obj) {
|
|
13646
13646
|
Object.defineProperty(obj, key, {
|
|
13647
13647
|
value,
|
|
@@ -13685,7 +13685,7 @@ function _iterable_to_array_limit$h(arr, i) {
|
|
|
13685
13685
|
function _non_iterable_rest$h() {
|
|
13686
13686
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
13687
13687
|
}
|
|
13688
|
-
function _object_spread$
|
|
13688
|
+
function _object_spread$L(target) {
|
|
13689
13689
|
for (var i = 1; i < arguments.length; i++) {
|
|
13690
13690
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
13691
13691
|
var ownKeys2 = Object.keys(source);
|
|
@@ -13695,12 +13695,12 @@ function _object_spread$I(target) {
|
|
|
13695
13695
|
}));
|
|
13696
13696
|
}
|
|
13697
13697
|
ownKeys2.forEach(function(key) {
|
|
13698
|
-
_define_property$
|
|
13698
|
+
_define_property$N(target, key, source[key]);
|
|
13699
13699
|
});
|
|
13700
13700
|
}
|
|
13701
13701
|
return target;
|
|
13702
13702
|
}
|
|
13703
|
-
function ownKeys$
|
|
13703
|
+
function ownKeys$F(object, enumerableOnly) {
|
|
13704
13704
|
var keys2 = Object.keys(object);
|
|
13705
13705
|
if (Object.getOwnPropertySymbols) {
|
|
13706
13706
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -13713,21 +13713,21 @@ function ownKeys$D(object, enumerableOnly) {
|
|
|
13713
13713
|
}
|
|
13714
13714
|
return keys2;
|
|
13715
13715
|
}
|
|
13716
|
-
function _object_spread_props$
|
|
13716
|
+
function _object_spread_props$F(target, source) {
|
|
13717
13717
|
source = source != null ? source : {};
|
|
13718
13718
|
if (Object.getOwnPropertyDescriptors) {
|
|
13719
13719
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
13720
13720
|
} else {
|
|
13721
|
-
ownKeys$
|
|
13721
|
+
ownKeys$F(Object(source)).forEach(function(key) {
|
|
13722
13722
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
13723
13723
|
});
|
|
13724
13724
|
}
|
|
13725
13725
|
return target;
|
|
13726
13726
|
}
|
|
13727
|
-
function _object_without_properties$
|
|
13727
|
+
function _object_without_properties$d(source, excluded) {
|
|
13728
13728
|
if (source == null)
|
|
13729
13729
|
return {};
|
|
13730
|
-
var target = _object_without_properties_loose$
|
|
13730
|
+
var target = _object_without_properties_loose$d(source, excluded);
|
|
13731
13731
|
var key, i;
|
|
13732
13732
|
if (Object.getOwnPropertySymbols) {
|
|
13733
13733
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -13742,7 +13742,7 @@ function _object_without_properties$b(source, excluded) {
|
|
|
13742
13742
|
}
|
|
13743
13743
|
return target;
|
|
13744
13744
|
}
|
|
13745
|
-
function _object_without_properties_loose$
|
|
13745
|
+
function _object_without_properties_loose$d(source, excluded) {
|
|
13746
13746
|
if (source == null)
|
|
13747
13747
|
return {};
|
|
13748
13748
|
var target = {};
|
|
@@ -13773,7 +13773,7 @@ function _unsupported_iterable_to_array$h(o, minLen) {
|
|
|
13773
13773
|
return _array_like_to_array$h(o, minLen);
|
|
13774
13774
|
}
|
|
13775
13775
|
var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
13776
|
-
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, _param_isRange = _param.isRange, isRange = _param_isRange === void 0 ? false : _param_isRange, _param_isInline = _param.isInline, isInline = _param_isInline === void 0 ? false : _param_isInline, isDisabled = _param.isDisabled, isClearable = _param.isClearable, strictParsing = _param.strictParsing, fixedHeight = _param.fixedHeight, excludeScrollbar = _param.excludeScrollbar, focusSelectedMonth = _param.focusSelectedMonth, disabledKeyboardNavigation = _param.disabledKeyboardNavigation, _param_shouldRenderPopperInBody = _param.shouldRenderPopperInBody, shouldRenderPopperInBody = _param_shouldRenderPopperInBody === void 0 ? false : _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, highlightDates = _param.highlightDates, 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$
|
|
13776
|
+
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, _param_isRange = _param.isRange, isRange = _param_isRange === void 0 ? false : _param_isRange, _param_isInline = _param.isInline, isInline = _param_isInline === void 0 ? false : _param_isInline, isDisabled = _param.isDisabled, isClearable = _param.isClearable, strictParsing = _param.strictParsing, fixedHeight = _param.fixedHeight, excludeScrollbar = _param.excludeScrollbar, focusSelectedMonth = _param.focusSelectedMonth, disabledKeyboardNavigation = _param.disabledKeyboardNavigation, _param_shouldRenderPopperInBody = _param.shouldRenderPopperInBody, shouldRenderPopperInBody = _param_shouldRenderPopperInBody === void 0 ? false : _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, highlightDates = _param.highlightDates, 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$d(_param, [
|
|
13777
13777
|
"data",
|
|
13778
13778
|
"selectedDate",
|
|
13779
13779
|
"minDate",
|
|
@@ -13821,7 +13821,7 @@ var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
13821
13821
|
"onKeyDown",
|
|
13822
13822
|
"tweakStyles"
|
|
13823
13823
|
]);
|
|
13824
|
-
var classes = useStyles$
|
|
13824
|
+
var classes = useStyles$D({
|
|
13825
13825
|
theme: tweakStyles
|
|
13826
13826
|
});
|
|
13827
13827
|
var tweakDateInputStyles = useTweakStyles({
|
|
@@ -13844,7 +13844,7 @@ var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
13844
13844
|
var _useState4 = _sliced_to_array$h(useState(endDate), 2), end2 = _useState4[0], setEnd = _useState4[1];
|
|
13845
13845
|
var _useState5 = _sliced_to_array$h(useState(formatDate(endDate)), 2), endDateValue = _useState5[0], setEndDateValue = _useState5[1];
|
|
13846
13846
|
var hasDateInputValue = isRange ? isStringNotEmpty(startDateValue) || isStringNotEmpty(endDateValue) : isStringNotEmpty(dateValue);
|
|
13847
|
-
var dateInputProps = _object_spread$
|
|
13847
|
+
var dateInputProps = _object_spread$L(_object_spread_props$F(_object_spread$L({}, inputProps), {
|
|
13848
13848
|
isRange,
|
|
13849
13849
|
isDisabled,
|
|
13850
13850
|
isClearable,
|
|
@@ -13942,10 +13942,10 @@ var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
13942
13942
|
startDate,
|
|
13943
13943
|
endDate
|
|
13944
13944
|
]);
|
|
13945
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
13945
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$F(_object_spread$L({
|
|
13946
13946
|
className: classes.root
|
|
13947
13947
|
}, addDataAttributes(data)), {
|
|
13948
|
-
children: /* @__PURE__ */ jsx(DatePickerComponent, _object_spread$
|
|
13948
|
+
children: /* @__PURE__ */ jsx(DatePickerComponent, _object_spread$L({
|
|
13949
13949
|
ref,
|
|
13950
13950
|
minDate,
|
|
13951
13951
|
maxDate,
|
|
@@ -13976,9 +13976,9 @@ var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
13976
13976
|
preventOpenOnFocus,
|
|
13977
13977
|
shouldCloseOnSelect,
|
|
13978
13978
|
customInputRef,
|
|
13979
|
-
customInput: /* @__PURE__ */ jsx(CustomInput, _object_spread$
|
|
13979
|
+
customInput: /* @__PURE__ */ jsx(CustomInput, _object_spread$L({}, dateInputProps)),
|
|
13980
13980
|
renderCustomHeader: renderCustomHeader !== null && renderCustomHeader !== void 0 ? renderCustomHeader : function(baseProps) {
|
|
13981
|
-
return /* @__PURE__ */ jsx(DatePickerHeader, _object_spread_props$
|
|
13981
|
+
return /* @__PURE__ */ jsx(DatePickerHeader, _object_spread_props$F(_object_spread$L({}, baseProps), {
|
|
13982
13982
|
months
|
|
13983
13983
|
}));
|
|
13984
13984
|
},
|
|
@@ -14016,7 +14016,7 @@ var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
14016
14016
|
}));
|
|
14017
14017
|
});
|
|
14018
14018
|
var LINK_REGEXP = /(http(s?):\/\/(.*))(\s?)/;
|
|
14019
|
-
var useStyles$
|
|
14019
|
+
var useStyles$C = createThemedStyles("Description", {
|
|
14020
14020
|
root: {},
|
|
14021
14021
|
button: {
|
|
14022
14022
|
cursor: "pointer",
|
|
@@ -14057,7 +14057,7 @@ function _array_with_holes$g(arr) {
|
|
|
14057
14057
|
if (Array.isArray(arr))
|
|
14058
14058
|
return arr;
|
|
14059
14059
|
}
|
|
14060
|
-
function _define_property$
|
|
14060
|
+
function _define_property$M(obj, key, value) {
|
|
14061
14061
|
if (key in obj) {
|
|
14062
14062
|
Object.defineProperty(obj, key, {
|
|
14063
14063
|
value,
|
|
@@ -14101,7 +14101,7 @@ function _iterable_to_array_limit$g(arr, i) {
|
|
|
14101
14101
|
function _non_iterable_rest$g() {
|
|
14102
14102
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14103
14103
|
}
|
|
14104
|
-
function _object_spread$
|
|
14104
|
+
function _object_spread$K(target) {
|
|
14105
14105
|
for (var i = 1; i < arguments.length; i++) {
|
|
14106
14106
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14107
14107
|
var ownKeys2 = Object.keys(source);
|
|
@@ -14111,12 +14111,12 @@ function _object_spread$H(target) {
|
|
|
14111
14111
|
}));
|
|
14112
14112
|
}
|
|
14113
14113
|
ownKeys2.forEach(function(key) {
|
|
14114
|
-
_define_property$
|
|
14114
|
+
_define_property$M(target, key, source[key]);
|
|
14115
14115
|
});
|
|
14116
14116
|
}
|
|
14117
14117
|
return target;
|
|
14118
14118
|
}
|
|
14119
|
-
function ownKeys$
|
|
14119
|
+
function ownKeys$E(object, enumerableOnly) {
|
|
14120
14120
|
var keys2 = Object.keys(object);
|
|
14121
14121
|
if (Object.getOwnPropertySymbols) {
|
|
14122
14122
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -14129,12 +14129,12 @@ function ownKeys$C(object, enumerableOnly) {
|
|
|
14129
14129
|
}
|
|
14130
14130
|
return keys2;
|
|
14131
14131
|
}
|
|
14132
|
-
function _object_spread_props$
|
|
14132
|
+
function _object_spread_props$E(target, source) {
|
|
14133
14133
|
source = source != null ? source : {};
|
|
14134
14134
|
if (Object.getOwnPropertyDescriptors) {
|
|
14135
14135
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
14136
14136
|
} else {
|
|
14137
|
-
ownKeys$
|
|
14137
|
+
ownKeys$E(Object(source)).forEach(function(key) {
|
|
14138
14138
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
14139
14139
|
});
|
|
14140
14140
|
}
|
|
@@ -14158,7 +14158,7 @@ function _unsupported_iterable_to_array$g(o, minLen) {
|
|
|
14158
14158
|
}
|
|
14159
14159
|
var Description = function(param) {
|
|
14160
14160
|
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;
|
|
14161
|
-
var classes = useStyles$
|
|
14161
|
+
var classes = useStyles$C({
|
|
14162
14162
|
theme: tweakStyles
|
|
14163
14163
|
});
|
|
14164
14164
|
var isTooShort = text.length < truncateIndex;
|
|
@@ -14167,7 +14167,7 @@ var Description = function(param) {
|
|
|
14167
14167
|
var linkText = link && link[0];
|
|
14168
14168
|
var textWithNoLink = text.replace(LINK_REGEXP, "");
|
|
14169
14169
|
var shortText = text.slice(0, text.slice(0, truncateIndex).lastIndexOf(" "));
|
|
14170
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
14170
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$E(_object_spread$K({
|
|
14171
14171
|
className: classes.root
|
|
14172
14172
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
14173
14173
|
children: [
|
|
@@ -14206,7 +14206,7 @@ var blockEvent = function(event) {
|
|
|
14206
14206
|
event.preventDefault();
|
|
14207
14207
|
event.stopPropagation();
|
|
14208
14208
|
};
|
|
14209
|
-
var useStyles$
|
|
14209
|
+
var useStyles$B = createThemedStyles("FileInput", {
|
|
14210
14210
|
root: {
|
|
14211
14211
|
display: "flex",
|
|
14212
14212
|
flexDirection: "column",
|
|
@@ -14289,7 +14289,7 @@ function _array_without_holes$5(arr) {
|
|
|
14289
14289
|
if (Array.isArray(arr))
|
|
14290
14290
|
return _array_like_to_array$f(arr);
|
|
14291
14291
|
}
|
|
14292
|
-
function _define_property$
|
|
14292
|
+
function _define_property$L(obj, key, value) {
|
|
14293
14293
|
if (key in obj) {
|
|
14294
14294
|
Object.defineProperty(obj, key, {
|
|
14295
14295
|
value,
|
|
@@ -14340,7 +14340,7 @@ function _non_iterable_rest$f() {
|
|
|
14340
14340
|
function _non_iterable_spread$5() {
|
|
14341
14341
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14342
14342
|
}
|
|
14343
|
-
function _object_spread$
|
|
14343
|
+
function _object_spread$J(target) {
|
|
14344
14344
|
for (var i = 1; i < arguments.length; i++) {
|
|
14345
14345
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14346
14346
|
var ownKeys2 = Object.keys(source);
|
|
@@ -14350,12 +14350,12 @@ function _object_spread$G(target) {
|
|
|
14350
14350
|
}));
|
|
14351
14351
|
}
|
|
14352
14352
|
ownKeys2.forEach(function(key) {
|
|
14353
|
-
_define_property$
|
|
14353
|
+
_define_property$L(target, key, source[key]);
|
|
14354
14354
|
});
|
|
14355
14355
|
}
|
|
14356
14356
|
return target;
|
|
14357
14357
|
}
|
|
14358
|
-
function ownKeys$
|
|
14358
|
+
function ownKeys$D(object, enumerableOnly) {
|
|
14359
14359
|
var keys2 = Object.keys(object);
|
|
14360
14360
|
if (Object.getOwnPropertySymbols) {
|
|
14361
14361
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -14368,12 +14368,12 @@ function ownKeys$B(object, enumerableOnly) {
|
|
|
14368
14368
|
}
|
|
14369
14369
|
return keys2;
|
|
14370
14370
|
}
|
|
14371
|
-
function _object_spread_props$
|
|
14371
|
+
function _object_spread_props$D(target, source) {
|
|
14372
14372
|
source = source != null ? source : {};
|
|
14373
14373
|
if (Object.getOwnPropertyDescriptors) {
|
|
14374
14374
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
14375
14375
|
} else {
|
|
14376
|
-
ownKeys$
|
|
14376
|
+
ownKeys$D(Object(source)).forEach(function(key) {
|
|
14377
14377
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
14378
14378
|
});
|
|
14379
14379
|
}
|
|
@@ -14400,7 +14400,7 @@ function _unsupported_iterable_to_array$f(o, minLen) {
|
|
|
14400
14400
|
}
|
|
14401
14401
|
var FileInput = /* @__PURE__ */ forwardRef(function(param, ref) {
|
|
14402
14402
|
var fileList = param.fileList, label = param.label, text = param.text, description = param.description, _param_isDragAndDropDisabled = param.isDragAndDropDisabled, isDragAndDropDisabled = _param_isDragAndDropDisabled === void 0 ? false : _param_isDragAndDropDisabled, _param_isRequired = param.isRequired, isRequired = _param_isRequired === void 0 ? false : _param_isRequired, _param_isReadOnly = param.isReadOnly, isReadOnly = _param_isReadOnly === void 0 ? false : _param_isReadOnly, _param_isMultipleDisabled = param.isMultipleDisabled, isMultipleDisabled = _param_isMultipleDisabled === void 0 ? false : _param_isMultipleDisabled, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isActive = param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, accept = param.accept, onAdd = param.onAdd, testId = param.testId, tweakStyles = param.tweakStyles, data = param.data;
|
|
14403
|
-
var classes = useStyles$
|
|
14403
|
+
var classes = useStyles$B({
|
|
14404
14404
|
theme: tweakStyles
|
|
14405
14405
|
});
|
|
14406
14406
|
var _useState = _sliced_to_array$f(useState(false), 2), isDragOver = _useState[0], setIsDragOver = _useState[1];
|
|
@@ -14432,16 +14432,16 @@ var FileInput = /* @__PURE__ */ forwardRef(function(param, ref) {
|
|
|
14432
14432
|
onDrop: handleDrop
|
|
14433
14433
|
} : void 0;
|
|
14434
14434
|
var _obj2;
|
|
14435
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
14435
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$D(_object_spread$J({
|
|
14436
14436
|
className: classes.root
|
|
14437
14437
|
}, addDataAttributes(data), addDataTestId(testId)), {
|
|
14438
14438
|
children: [
|
|
14439
14439
|
isReactNodeNotEmpty(label) && /* @__PURE__ */ jsx("div", {
|
|
14440
|
-
className: clsx(classes.label, _define_property$
|
|
14440
|
+
className: clsx(classes.label, _define_property$L({}, classes.requiredLabel, isRequired)),
|
|
14441
14441
|
children: label
|
|
14442
14442
|
}),
|
|
14443
|
-
!isReadOnly && /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
14444
|
-
className: clsx(classes.inputWrapper, (_obj2 = {}, _define_property$
|
|
14443
|
+
!isReadOnly && /* @__PURE__ */ jsxs("div", _object_spread_props$D(_object_spread$J({
|
|
14444
|
+
className: clsx(classes.inputWrapper, (_obj2 = {}, _define_property$L(_obj2, classes.dragged, isDragOver), _define_property$L(_obj2, classes.disabled, isDisabled), _define_property$L(_obj2, classes.active, isActive), _obj2))
|
|
14445
14445
|
}, dndHandlers), {
|
|
14446
14446
|
children: [
|
|
14447
14447
|
isReactNodeNotEmpty(text) && /* @__PURE__ */ jsx("div", {
|
|
@@ -14450,7 +14450,7 @@ var FileInput = /* @__PURE__ */ forwardRef(function(param, ref) {
|
|
|
14450
14450
|
}),
|
|
14451
14451
|
/* @__PURE__ */ jsx("label", {
|
|
14452
14452
|
className: classes.inputLabel,
|
|
14453
|
-
children: /* @__PURE__ */ jsx("input", _object_spread$
|
|
14453
|
+
children: /* @__PURE__ */ jsx("input", _object_spread$J({
|
|
14454
14454
|
ref,
|
|
14455
14455
|
type: "file",
|
|
14456
14456
|
value: "",
|
|
@@ -14477,7 +14477,7 @@ FileInput.displayName = "FileInput";
|
|
|
14477
14477
|
var BUTTON_SIZE_S = 24;
|
|
14478
14478
|
var BUTTON_SIZE_M = 32;
|
|
14479
14479
|
var ICON_SIZE = 20;
|
|
14480
|
-
var useStyles$
|
|
14480
|
+
var useStyles$A = createThemedStyles("IconButton", {
|
|
14481
14481
|
root: {
|
|
14482
14482
|
display: "flex",
|
|
14483
14483
|
justifyContent: "center",
|
|
@@ -14539,7 +14539,7 @@ var useStyles$y = createThemedStyles("IconButton", {
|
|
|
14539
14539
|
height: BUTTON_SIZE_M
|
|
14540
14540
|
}
|
|
14541
14541
|
});
|
|
14542
|
-
function _define_property$
|
|
14542
|
+
function _define_property$K(obj, key, value) {
|
|
14543
14543
|
if (key in obj) {
|
|
14544
14544
|
Object.defineProperty(obj, key, {
|
|
14545
14545
|
value,
|
|
@@ -14552,7 +14552,7 @@ function _define_property$H(obj, key, value) {
|
|
|
14552
14552
|
}
|
|
14553
14553
|
return obj;
|
|
14554
14554
|
}
|
|
14555
|
-
function _object_spread$
|
|
14555
|
+
function _object_spread$I(target) {
|
|
14556
14556
|
for (var i = 1; i < arguments.length; i++) {
|
|
14557
14557
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14558
14558
|
var ownKeys2 = Object.keys(source);
|
|
@@ -14562,12 +14562,12 @@ function _object_spread$F(target) {
|
|
|
14562
14562
|
}));
|
|
14563
14563
|
}
|
|
14564
14564
|
ownKeys2.forEach(function(key) {
|
|
14565
|
-
_define_property$
|
|
14565
|
+
_define_property$K(target, key, source[key]);
|
|
14566
14566
|
});
|
|
14567
14567
|
}
|
|
14568
14568
|
return target;
|
|
14569
14569
|
}
|
|
14570
|
-
function ownKeys$
|
|
14570
|
+
function ownKeys$C(object, enumerableOnly) {
|
|
14571
14571
|
var keys2 = Object.keys(object);
|
|
14572
14572
|
if (Object.getOwnPropertySymbols) {
|
|
14573
14573
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -14580,21 +14580,21 @@ function ownKeys$A(object, enumerableOnly) {
|
|
|
14580
14580
|
}
|
|
14581
14581
|
return keys2;
|
|
14582
14582
|
}
|
|
14583
|
-
function _object_spread_props$
|
|
14583
|
+
function _object_spread_props$C(target, source) {
|
|
14584
14584
|
source = source != null ? source : {};
|
|
14585
14585
|
if (Object.getOwnPropertyDescriptors) {
|
|
14586
14586
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
14587
14587
|
} else {
|
|
14588
|
-
ownKeys$
|
|
14588
|
+
ownKeys$C(Object(source)).forEach(function(key) {
|
|
14589
14589
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
14590
14590
|
});
|
|
14591
14591
|
}
|
|
14592
14592
|
return target;
|
|
14593
14593
|
}
|
|
14594
|
-
function _object_without_properties$
|
|
14594
|
+
function _object_without_properties$c(source, excluded) {
|
|
14595
14595
|
if (source == null)
|
|
14596
14596
|
return {};
|
|
14597
|
-
var target = _object_without_properties_loose$
|
|
14597
|
+
var target = _object_without_properties_loose$c(source, excluded);
|
|
14598
14598
|
var key, i;
|
|
14599
14599
|
if (Object.getOwnPropertySymbols) {
|
|
14600
14600
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -14609,7 +14609,7 @@ function _object_without_properties$a(source, excluded) {
|
|
|
14609
14609
|
}
|
|
14610
14610
|
return target;
|
|
14611
14611
|
}
|
|
14612
|
-
function _object_without_properties_loose$
|
|
14612
|
+
function _object_without_properties_loose$c(source, excluded) {
|
|
14613
14613
|
if (source == null)
|
|
14614
14614
|
return {};
|
|
14615
14615
|
var target = {};
|
|
@@ -14624,7 +14624,7 @@ function _object_without_properties_loose$a(source, excluded) {
|
|
|
14624
14624
|
return target;
|
|
14625
14625
|
}
|
|
14626
14626
|
var IconButton = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
14627
|
-
var icon = _param.icon, _param_size = _param.size, size2 = _param_size === void 0 ? "m" : _param_size, _param_view = _param.view, view = _param_view === void 0 ? "cancel-light" : _param_view, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, testId = _param.testId, tweakStyles = _param.tweakStyles, data = _param.data, onClick = _param.onClick, restProps = _object_without_properties$
|
|
14627
|
+
var icon = _param.icon, _param_size = _param.size, size2 = _param_size === void 0 ? "m" : _param_size, _param_view = _param.view, view = _param_view === void 0 ? "cancel-light" : _param_view, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, testId = _param.testId, tweakStyles = _param.tweakStyles, data = _param.data, onClick = _param.onClick, restProps = _object_without_properties$c(_param, [
|
|
14628
14628
|
"icon",
|
|
14629
14629
|
"size",
|
|
14630
14630
|
"view",
|
|
@@ -14637,14 +14637,14 @@ var IconButton = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
14637
14637
|
"data",
|
|
14638
14638
|
"onClick"
|
|
14639
14639
|
]);
|
|
14640
|
-
var classes = useStyles$
|
|
14640
|
+
var classes = useStyles$A({
|
|
14641
14641
|
theme: tweakStyles
|
|
14642
14642
|
});
|
|
14643
14643
|
var hasNoAction = isDisabled || isLoading;
|
|
14644
14644
|
var _obj2;
|
|
14645
|
-
return /* @__PURE__ */ jsx("button", _object_spread_props$
|
|
14645
|
+
return /* @__PURE__ */ jsx("button", _object_spread_props$C(_object_spread$I({
|
|
14646
14646
|
ref,
|
|
14647
|
-
className: clsx(classes.root, classes[view], classes[size2], (_obj2 = {}, _define_property$
|
|
14647
|
+
className: clsx(classes.root, classes[view], classes[size2], (_obj2 = {}, _define_property$K(_obj2, classes.disabled, isDisabled), _define_property$K(_obj2, classes.active, isActive), _define_property$K(_obj2, classes.loading, isLoading), _obj2)),
|
|
14648
14648
|
type,
|
|
14649
14649
|
disabled: isDisabled,
|
|
14650
14650
|
onClick: hasNoAction ? void 0 : onClick
|
|
@@ -14661,7 +14661,7 @@ var IconButton = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
14661
14661
|
})
|
|
14662
14662
|
}));
|
|
14663
14663
|
});
|
|
14664
|
-
var useStyles$
|
|
14664
|
+
var useStyles$z = createThemedStyles("Tooltip", {
|
|
14665
14665
|
root: {
|
|
14666
14666
|
display: "inline-block",
|
|
14667
14667
|
boxSizing: "border-box"
|
|
@@ -14704,7 +14704,7 @@ var useStyles$x = createThemedStyles("Tooltip", {
|
|
|
14704
14704
|
}
|
|
14705
14705
|
}
|
|
14706
14706
|
});
|
|
14707
|
-
function _define_property$
|
|
14707
|
+
function _define_property$J(obj, key, value) {
|
|
14708
14708
|
if (key in obj) {
|
|
14709
14709
|
Object.defineProperty(obj, key, {
|
|
14710
14710
|
value,
|
|
@@ -14717,7 +14717,7 @@ function _define_property$G(obj, key, value) {
|
|
|
14717
14717
|
}
|
|
14718
14718
|
return obj;
|
|
14719
14719
|
}
|
|
14720
|
-
function _object_spread$
|
|
14720
|
+
function _object_spread$H(target) {
|
|
14721
14721
|
for (var i = 1; i < arguments.length; i++) {
|
|
14722
14722
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14723
14723
|
var ownKeys2 = Object.keys(source);
|
|
@@ -14727,12 +14727,12 @@ function _object_spread$E(target) {
|
|
|
14727
14727
|
}));
|
|
14728
14728
|
}
|
|
14729
14729
|
ownKeys2.forEach(function(key) {
|
|
14730
|
-
_define_property$
|
|
14730
|
+
_define_property$J(target, key, source[key]);
|
|
14731
14731
|
});
|
|
14732
14732
|
}
|
|
14733
14733
|
return target;
|
|
14734
14734
|
}
|
|
14735
|
-
function ownKeys$
|
|
14735
|
+
function ownKeys$B(object, enumerableOnly) {
|
|
14736
14736
|
var keys2 = Object.keys(object);
|
|
14737
14737
|
if (Object.getOwnPropertySymbols) {
|
|
14738
14738
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -14745,12 +14745,12 @@ function ownKeys$z(object, enumerableOnly) {
|
|
|
14745
14745
|
}
|
|
14746
14746
|
return keys2;
|
|
14747
14747
|
}
|
|
14748
|
-
function _object_spread_props$
|
|
14748
|
+
function _object_spread_props$B(target, source) {
|
|
14749
14749
|
source = source != null ? source : {};
|
|
14750
14750
|
if (Object.getOwnPropertyDescriptors) {
|
|
14751
14751
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
14752
14752
|
} else {
|
|
14753
|
-
ownKeys$
|
|
14753
|
+
ownKeys$B(Object(source)).forEach(function(key) {
|
|
14754
14754
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
14755
14755
|
});
|
|
14756
14756
|
}
|
|
@@ -14758,16 +14758,16 @@ function _object_spread_props$z(target, source) {
|
|
|
14758
14758
|
}
|
|
14759
14759
|
var Tooltip = function(param) {
|
|
14760
14760
|
var text = param.text, _param_view = param.view, view = _param_view === void 0 ? "tooltip" : _param_view, _param_type = param.type, type = _param_type === void 0 ? "info" : _param_type, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
14761
|
-
var classes = useStyles$
|
|
14761
|
+
var classes = useStyles$z({
|
|
14762
14762
|
theme: tweakStyles
|
|
14763
14763
|
});
|
|
14764
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
14764
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$B(_object_spread$H({
|
|
14765
14765
|
className: clsx(classes.root, classes[view], classes[type])
|
|
14766
14766
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
14767
14767
|
children: text
|
|
14768
14768
|
}));
|
|
14769
14769
|
};
|
|
14770
|
-
var useStyles$
|
|
14770
|
+
var useStyles$y = createThemedStyles("TextWithTooltip", {
|
|
14771
14771
|
root: {
|
|
14772
14772
|
position: "relative"
|
|
14773
14773
|
},
|
|
@@ -14793,7 +14793,7 @@ function _array_without_holes$4(arr) {
|
|
|
14793
14793
|
if (Array.isArray(arr))
|
|
14794
14794
|
return _array_like_to_array$e(arr);
|
|
14795
14795
|
}
|
|
14796
|
-
function _define_property$
|
|
14796
|
+
function _define_property$I(obj, key, value) {
|
|
14797
14797
|
if (key in obj) {
|
|
14798
14798
|
Object.defineProperty(obj, key, {
|
|
14799
14799
|
value,
|
|
@@ -14844,7 +14844,7 @@ function _non_iterable_rest$e() {
|
|
|
14844
14844
|
function _non_iterable_spread$4() {
|
|
14845
14845
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14846
14846
|
}
|
|
14847
|
-
function _object_spread$
|
|
14847
|
+
function _object_spread$G(target) {
|
|
14848
14848
|
for (var i = 1; i < arguments.length; i++) {
|
|
14849
14849
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14850
14850
|
var ownKeys2 = Object.keys(source);
|
|
@@ -14854,12 +14854,12 @@ function _object_spread$D(target) {
|
|
|
14854
14854
|
}));
|
|
14855
14855
|
}
|
|
14856
14856
|
ownKeys2.forEach(function(key) {
|
|
14857
|
-
_define_property$
|
|
14857
|
+
_define_property$I(target, key, source[key]);
|
|
14858
14858
|
});
|
|
14859
14859
|
}
|
|
14860
14860
|
return target;
|
|
14861
14861
|
}
|
|
14862
|
-
function ownKeys$
|
|
14862
|
+
function ownKeys$A(object, enumerableOnly) {
|
|
14863
14863
|
var keys2 = Object.keys(object);
|
|
14864
14864
|
if (Object.getOwnPropertySymbols) {
|
|
14865
14865
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -14872,12 +14872,12 @@ function ownKeys$y(object, enumerableOnly) {
|
|
|
14872
14872
|
}
|
|
14873
14873
|
return keys2;
|
|
14874
14874
|
}
|
|
14875
|
-
function _object_spread_props$
|
|
14875
|
+
function _object_spread_props$A(target, source) {
|
|
14876
14876
|
source = source != null ? source : {};
|
|
14877
14877
|
if (Object.getOwnPropertyDescriptors) {
|
|
14878
14878
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
14879
14879
|
} else {
|
|
14880
|
-
ownKeys$
|
|
14880
|
+
ownKeys$A(Object(source)).forEach(function(key) {
|
|
14881
14881
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
14882
14882
|
});
|
|
14883
14883
|
}
|
|
@@ -14904,7 +14904,7 @@ function _unsupported_iterable_to_array$e(o, minLen) {
|
|
|
14904
14904
|
}
|
|
14905
14905
|
var TextWithTooltip = function(param) {
|
|
14906
14906
|
var children = param.children, tooltipText = param.tooltipText, _param_tooltipPosition = param.tooltipPosition, tooltipPosition = _param_tooltipPosition === void 0 ? "top" : _param_tooltipPosition, _param_tooltipView = param.tooltipView, tooltipView = _param_tooltipView === void 0 ? "tooltip" : _param_tooltipView, _param_tooltipType = param.tooltipType, tooltipType = _param_tooltipType === void 0 ? "info" : _param_tooltipType, _param_tooltipModifiers = param.tooltipModifiers, tooltipModifiers = _param_tooltipModifiers === void 0 ? [] : _param_tooltipModifiers, tooltipOffsetOptions = param.tooltipOffsetOptions, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_shouldRenderInBody = param.shouldRenderInBody, shouldRenderInBody = _param_shouldRenderInBody === void 0 ? true : _param_shouldRenderInBody, _param_mouseEventType = param.mouseEventType, mouseEventType = _param_mouseEventType === void 0 ? "hover" : _param_mouseEventType, hoverDelay = param.hoverDelay, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles;
|
|
14907
|
-
var classes = useStyles$
|
|
14907
|
+
var classes = useStyles$y({
|
|
14908
14908
|
theme: tweakStyles
|
|
14909
14909
|
});
|
|
14910
14910
|
var tweakTooltipStyles = useTweakStyles({
|
|
@@ -14944,7 +14944,7 @@ var TextWithTooltip = function(param) {
|
|
|
14944
14944
|
modifiers: [
|
|
14945
14945
|
{
|
|
14946
14946
|
name: "offset",
|
|
14947
|
-
options: _object_spread$
|
|
14947
|
+
options: _object_spread$G({
|
|
14948
14948
|
offset: [
|
|
14949
14949
|
0,
|
|
14950
14950
|
6
|
|
@@ -14967,14 +14967,14 @@ var TextWithTooltip = function(param) {
|
|
|
14967
14967
|
onMouseLeave: handleMouseLeave
|
|
14968
14968
|
};
|
|
14969
14969
|
var shouldShowTooltip = tooltipText !== void 0 && tooltipText !== null && !isDisabled;
|
|
14970
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
14970
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$A(_object_spread$G({
|
|
14971
14971
|
className: clsx(classes.root, mouseEventType === "click" && shouldShowTooltip && classes.clickable)
|
|
14972
14972
|
}, shouldShowTooltip ? props : void 0, addDataTestId(testId), addDataAttributes(data)), {
|
|
14973
14973
|
ref: root2,
|
|
14974
14974
|
children: [
|
|
14975
14975
|
shouldShowTooltip && /* @__PURE__ */ jsx(Portal, {
|
|
14976
14976
|
container: shouldRenderInBody ? document.body : root2.current,
|
|
14977
|
-
children: /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
14977
|
+
children: /* @__PURE__ */ jsx("div", _object_spread_props$A(_object_spread$G({
|
|
14978
14978
|
className: classes.tooltip,
|
|
14979
14979
|
style: popperStyles.popper
|
|
14980
14980
|
}, attributes.popper), {
|
|
@@ -14991,7 +14991,7 @@ var TextWithTooltip = function(param) {
|
|
|
14991
14991
|
]
|
|
14992
14992
|
}));
|
|
14993
14993
|
};
|
|
14994
|
-
function _define_property$
|
|
14994
|
+
function _define_property$H(obj, key, value) {
|
|
14995
14995
|
if (key in obj) {
|
|
14996
14996
|
Object.defineProperty(obj, key, {
|
|
14997
14997
|
value,
|
|
@@ -15006,7 +15006,7 @@ function _define_property$E(obj, key, value) {
|
|
|
15006
15006
|
}
|
|
15007
15007
|
var FILE_ICON_DEFAULT = "file-other";
|
|
15008
15008
|
var _obj;
|
|
15009
|
-
var iconTypeMap = (_obj = {}, _define_property$
|
|
15009
|
+
var iconTypeMap = (_obj = {}, _define_property$H(_obj, mimeTypes.xls, "file-excel"), _define_property$H(_obj, mimeTypes.xlsx, "file-excel"), _define_property$H(_obj, mimeTypes.jpeg, "file-image"), _define_property$H(_obj, mimeTypes.png, "file-image"), _define_property$H(_obj, mimeTypes.pdf, "file-pdf"), _define_property$H(_obj, mimeTypes.doc, "file-word"), _define_property$H(_obj, mimeTypes.docx, "file-word"), _define_property$H(_obj, mimeTypes.xml, "file-xml"), _define_property$H(_obj, mimeTypes.zip, "file-zip"), _obj);
|
|
15010
15010
|
var getFileExtensionByFilename = function(fileName) {
|
|
15011
15011
|
var splitFileName = fileName.split(".");
|
|
15012
15012
|
return splitFileName.length > 1 ? splitFileName.pop() : void 0;
|
|
@@ -15026,7 +15026,7 @@ var getFileIcon = function(param) {
|
|
|
15026
15026
|
}
|
|
15027
15027
|
return FILE_ICON_DEFAULT;
|
|
15028
15028
|
};
|
|
15029
|
-
var useStyles$
|
|
15029
|
+
var useStyles$x = createThemedStyles("FileItem", {
|
|
15030
15030
|
root: {
|
|
15031
15031
|
display: "flex",
|
|
15032
15032
|
flexDirection: "column",
|
|
@@ -15122,7 +15122,7 @@ var themedPreloaderStyles = {
|
|
|
15122
15122
|
}
|
|
15123
15123
|
}
|
|
15124
15124
|
};
|
|
15125
|
-
function _define_property$
|
|
15125
|
+
function _define_property$G(obj, key, value) {
|
|
15126
15126
|
if (key in obj) {
|
|
15127
15127
|
Object.defineProperty(obj, key, {
|
|
15128
15128
|
value,
|
|
@@ -15135,7 +15135,7 @@ function _define_property$D(obj, key, value) {
|
|
|
15135
15135
|
}
|
|
15136
15136
|
return obj;
|
|
15137
15137
|
}
|
|
15138
|
-
function _object_spread$
|
|
15138
|
+
function _object_spread$F(target) {
|
|
15139
15139
|
for (var i = 1; i < arguments.length; i++) {
|
|
15140
15140
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
15141
15141
|
var ownKeys2 = Object.keys(source);
|
|
@@ -15145,12 +15145,12 @@ function _object_spread$C(target) {
|
|
|
15145
15145
|
}));
|
|
15146
15146
|
}
|
|
15147
15147
|
ownKeys2.forEach(function(key) {
|
|
15148
|
-
_define_property$
|
|
15148
|
+
_define_property$G(target, key, source[key]);
|
|
15149
15149
|
});
|
|
15150
15150
|
}
|
|
15151
15151
|
return target;
|
|
15152
15152
|
}
|
|
15153
|
-
function ownKeys$
|
|
15153
|
+
function ownKeys$z(object, enumerableOnly) {
|
|
15154
15154
|
var keys2 = Object.keys(object);
|
|
15155
15155
|
if (Object.getOwnPropertySymbols) {
|
|
15156
15156
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -15163,12 +15163,12 @@ function ownKeys$x(object, enumerableOnly) {
|
|
|
15163
15163
|
}
|
|
15164
15164
|
return keys2;
|
|
15165
15165
|
}
|
|
15166
|
-
function _object_spread_props$
|
|
15166
|
+
function _object_spread_props$z(target, source) {
|
|
15167
15167
|
source = source != null ? source : {};
|
|
15168
15168
|
if (Object.getOwnPropertyDescriptors) {
|
|
15169
15169
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
15170
15170
|
} else {
|
|
15171
|
-
ownKeys$
|
|
15171
|
+
ownKeys$z(Object(source)).forEach(function(key) {
|
|
15172
15172
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
15173
15173
|
});
|
|
15174
15174
|
}
|
|
@@ -15176,7 +15176,7 @@ function _object_spread_props$x(target, source) {
|
|
|
15176
15176
|
}
|
|
15177
15177
|
var FileItem = function(param) {
|
|
15178
15178
|
var fileInfo = param.fileInfo, _param_icon = param.icon, icon = _param_icon === void 0 ? getFileIcon(fileInfo) : _param_icon, metadata = param.metadata, actions = param.actions, error = param.error, info = param.info, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_areActionsDisabled = param.areActionsDisabled, areActionsDisabled = _param_areActionsDisabled === void 0 ? false : _param_areActionsDisabled, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_shouldShowSize = param.shouldShowSize, shouldShowSize = _param_shouldShowSize === void 0 ? false : _param_shouldShowSize, _param_itemSize = param.itemSize, itemSize = _param_itemSize === void 0 ? "m" : _param_itemSize, _param_preloaderType = param.preloaderType, preloaderType = _param_preloaderType === void 0 ? "default" : _param_preloaderType, _param_removeIcon = param.removeIcon, removeIcon = _param_removeIcon === void 0 ? "trash-can" : _param_removeIcon, onRemove = param.onRemove, onClick = param.onClick, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles;
|
|
15179
|
-
var classes = useStyles$
|
|
15179
|
+
var classes = useStyles$x({
|
|
15180
15180
|
theme: tweakStyles
|
|
15181
15181
|
});
|
|
15182
15182
|
var tweakIconButtonStyles = useTweakStyles({
|
|
@@ -15208,8 +15208,8 @@ var FileItem = function(param) {
|
|
|
15208
15208
|
return /* @__PURE__ */ jsxs("div", {
|
|
15209
15209
|
className: classes.root,
|
|
15210
15210
|
children: [
|
|
15211
|
-
/* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
15212
|
-
className: clsx(classes.fileItemWrapper, classes[itemSize], _define_property$
|
|
15211
|
+
/* @__PURE__ */ jsxs("div", _object_spread_props$z(_object_spread$F({
|
|
15212
|
+
className: clsx(classes.fileItemWrapper, classes[itemSize], _define_property$G({}, classes.disabled, isDisabled))
|
|
15213
15213
|
}, addDataTestId(testId), addDataAttributes(data), addClickHandler(handleClick, !isDisabled)), {
|
|
15214
15214
|
children: [
|
|
15215
15215
|
/* @__PURE__ */ jsx("div", {
|
|
@@ -16230,7 +16230,7 @@ function _async_to_generator$3(fn3) {
|
|
|
16230
16230
|
});
|
|
16231
16231
|
};
|
|
16232
16232
|
}
|
|
16233
|
-
function _define_property$
|
|
16233
|
+
function _define_property$F(obj, key, value) {
|
|
16234
16234
|
if (key in obj) {
|
|
16235
16235
|
Object.defineProperty(obj, key, {
|
|
16236
16236
|
value,
|
|
@@ -16274,7 +16274,7 @@ function _iterable_to_array_limit$d(arr, i) {
|
|
|
16274
16274
|
function _non_iterable_rest$d() {
|
|
16275
16275
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
16276
16276
|
}
|
|
16277
|
-
function _object_spread$
|
|
16277
|
+
function _object_spread$E(target) {
|
|
16278
16278
|
for (var i = 1; i < arguments.length; i++) {
|
|
16279
16279
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
16280
16280
|
var ownKeys2 = Object.keys(source);
|
|
@@ -16284,15 +16284,15 @@ function _object_spread$B(target) {
|
|
|
16284
16284
|
}));
|
|
16285
16285
|
}
|
|
16286
16286
|
ownKeys2.forEach(function(key) {
|
|
16287
|
-
_define_property$
|
|
16287
|
+
_define_property$F(target, key, source[key]);
|
|
16288
16288
|
});
|
|
16289
16289
|
}
|
|
16290
16290
|
return target;
|
|
16291
16291
|
}
|
|
16292
|
-
function _object_without_properties$
|
|
16292
|
+
function _object_without_properties$b(source, excluded) {
|
|
16293
16293
|
if (source == null)
|
|
16294
16294
|
return {};
|
|
16295
|
-
var target = _object_without_properties_loose$
|
|
16295
|
+
var target = _object_without_properties_loose$b(source, excluded);
|
|
16296
16296
|
var key, i;
|
|
16297
16297
|
if (Object.getOwnPropertySymbols) {
|
|
16298
16298
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -16307,7 +16307,7 @@ function _object_without_properties$9(source, excluded) {
|
|
|
16307
16307
|
}
|
|
16308
16308
|
return target;
|
|
16309
16309
|
}
|
|
16310
|
-
function _object_without_properties_loose$
|
|
16310
|
+
function _object_without_properties_loose$b(source, excluded) {
|
|
16311
16311
|
if (source == null)
|
|
16312
16312
|
return {};
|
|
16313
16313
|
var target = {};
|
|
@@ -16440,7 +16440,7 @@ function _ts_generator$3(thisArg, body) {
|
|
|
16440
16440
|
}
|
|
16441
16441
|
}
|
|
16442
16442
|
var NumberInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
16443
|
-
var value = _param.value, _param_canBeFloat = _param.canBeFloat, canBeFloat = _param_canBeFloat === void 0 ? false : _param_canBeFloat, _param_canBeNegative = _param.canBeNegative, canBeNegative = _param_canBeNegative === void 0 ? false : _param_canBeNegative, defaultValue = _param.defaultValue, _param_precision = _param.precision, precision = _param_precision === void 0 ? 3 : _param_precision, _param_intPartPrecision = _param.intPartPrecision, intPartPrecision = _param_intPartPrecision === void 0 ? 7 : _param_intPartPrecision, onChange = _param.onChange, onBlur = _param.onBlur, min2 = _param.min, max2 = _param.max, props = _object_without_properties$
|
|
16443
|
+
var value = _param.value, _param_canBeFloat = _param.canBeFloat, canBeFloat = _param_canBeFloat === void 0 ? false : _param_canBeFloat, _param_canBeNegative = _param.canBeNegative, canBeNegative = _param_canBeNegative === void 0 ? false : _param_canBeNegative, defaultValue = _param.defaultValue, _param_precision = _param.precision, precision = _param_precision === void 0 ? 3 : _param_precision, _param_intPartPrecision = _param.intPartPrecision, intPartPrecision = _param_intPartPrecision === void 0 ? 7 : _param_intPartPrecision, onChange = _param.onChange, onBlur = _param.onBlur, min2 = _param.min, max2 = _param.max, props = _object_without_properties$b(_param, [
|
|
16444
16444
|
"value",
|
|
16445
16445
|
"canBeFloat",
|
|
16446
16446
|
"canBeNegative",
|
|
@@ -16543,7 +16543,7 @@ var NumberInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
16543
16543
|
}, [
|
|
16544
16544
|
value
|
|
16545
16545
|
]);
|
|
16546
|
-
return /* @__PURE__ */ jsx(Input, _object_spread$
|
|
16546
|
+
return /* @__PURE__ */ jsx(Input, _object_spread$E({
|
|
16547
16547
|
value: showedValue,
|
|
16548
16548
|
onChange: handleChange,
|
|
16549
16549
|
onBlur: handleBlur,
|
|
@@ -16821,7 +16821,7 @@ function cloneDeep(value) {
|
|
|
16821
16821
|
return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
|
|
16822
16822
|
}
|
|
16823
16823
|
var FILTER_HEIGHT = 36;
|
|
16824
|
-
var useStyles$
|
|
16824
|
+
var useStyles$w = createThemedStyles("FiltersPane", {
|
|
16825
16825
|
root: {
|
|
16826
16826
|
display: "flex",
|
|
16827
16827
|
flexWrap: "wrap",
|
|
@@ -16887,7 +16887,7 @@ var innerTextButtonStyles = {
|
|
|
16887
16887
|
}
|
|
16888
16888
|
}
|
|
16889
16889
|
};
|
|
16890
|
-
var useStyles$
|
|
16890
|
+
var useStyles$v = createThemedStyles("FilterInterval", {
|
|
16891
16891
|
root: {
|
|
16892
16892
|
padding: 8,
|
|
16893
16893
|
background: colors.CLASSIC_WHITE
|
|
@@ -16930,7 +16930,7 @@ var inputStyles$3 = {
|
|
|
16930
16930
|
}
|
|
16931
16931
|
};
|
|
16932
16932
|
var clearButtonStyles$3 = cloneDeep(innerTextButtonStyles);
|
|
16933
|
-
function _define_property$
|
|
16933
|
+
function _define_property$E(obj, key, value) {
|
|
16934
16934
|
if (key in obj) {
|
|
16935
16935
|
Object.defineProperty(obj, key, {
|
|
16936
16936
|
value,
|
|
@@ -16943,7 +16943,7 @@ function _define_property$B(obj, key, value) {
|
|
|
16943
16943
|
}
|
|
16944
16944
|
return obj;
|
|
16945
16945
|
}
|
|
16946
|
-
function _object_spread$
|
|
16946
|
+
function _object_spread$D(target) {
|
|
16947
16947
|
for (var i = 1; i < arguments.length; i++) {
|
|
16948
16948
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
16949
16949
|
var ownKeys2 = Object.keys(source);
|
|
@@ -16953,12 +16953,12 @@ function _object_spread$A(target) {
|
|
|
16953
16953
|
}));
|
|
16954
16954
|
}
|
|
16955
16955
|
ownKeys2.forEach(function(key) {
|
|
16956
|
-
_define_property$
|
|
16956
|
+
_define_property$E(target, key, source[key]);
|
|
16957
16957
|
});
|
|
16958
16958
|
}
|
|
16959
16959
|
return target;
|
|
16960
16960
|
}
|
|
16961
|
-
function ownKeys$
|
|
16961
|
+
function ownKeys$y(object, enumerableOnly) {
|
|
16962
16962
|
var keys2 = Object.keys(object);
|
|
16963
16963
|
if (Object.getOwnPropertySymbols) {
|
|
16964
16964
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -16971,12 +16971,12 @@ function ownKeys$w(object, enumerableOnly) {
|
|
|
16971
16971
|
}
|
|
16972
16972
|
return keys2;
|
|
16973
16973
|
}
|
|
16974
|
-
function _object_spread_props$
|
|
16974
|
+
function _object_spread_props$y(target, source) {
|
|
16975
16975
|
source = source != null ? source : {};
|
|
16976
16976
|
if (Object.getOwnPropertyDescriptors) {
|
|
16977
16977
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
16978
16978
|
} else {
|
|
16979
|
-
ownKeys$
|
|
16979
|
+
ownKeys$y(Object(source)).forEach(function(key) {
|
|
16980
16980
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
16981
16981
|
});
|
|
16982
16982
|
}
|
|
@@ -16984,7 +16984,7 @@ function _object_spread_props$w(target, source) {
|
|
|
16984
16984
|
}
|
|
16985
16985
|
var FilterInterval = function(param) {
|
|
16986
16986
|
var data = param.data, tweakStyles = param.tweakStyles, value = param.value, labelName = param.labelName, withFieldNameInLabel = param.withFieldNameInLabel, localeKey = param.localeKey, locale2 = param.locale, canBeFloat = param.canBeFloat, onChange = param.onChange, fromInput = param.fromInput, toInput = param.toInput, testId = param.testId;
|
|
16987
|
-
var classes = useStyles$
|
|
16987
|
+
var classes = useStyles$v({
|
|
16988
16988
|
theme: tweakStyles
|
|
16989
16989
|
});
|
|
16990
16990
|
var translates = useMemo(function() {
|
|
@@ -17028,7 +17028,7 @@ var FilterInterval = function(param) {
|
|
|
17028
17028
|
className: "tweakClearButton",
|
|
17029
17029
|
currentComponentName: "FilterInterval"
|
|
17030
17030
|
});
|
|
17031
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
17031
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$y(_object_spread$D({
|
|
17032
17032
|
className: classes.root
|
|
17033
17033
|
}, addDataAttributes(data)), {
|
|
17034
17034
|
children: [
|
|
@@ -17037,7 +17037,7 @@ var FilterInterval = function(param) {
|
|
|
17037
17037
|
children: [
|
|
17038
17038
|
/* @__PURE__ */ jsxs("div", {
|
|
17039
17039
|
children: [
|
|
17040
|
-
/* @__PURE__ */ jsx(NumberInput, _object_spread$
|
|
17040
|
+
/* @__PURE__ */ jsx(NumberInput, _object_spread$D({
|
|
17041
17041
|
onChange: handleFromChange,
|
|
17042
17042
|
value: value === null || value === void 0 ? void 0 : value[0],
|
|
17043
17043
|
label: withFieldNameInLabel ? "".concat(labelName, " ").concat(translates.from.toLocaleLowerCase()) : translates.from,
|
|
@@ -17059,7 +17059,7 @@ var FilterInterval = function(param) {
|
|
|
17059
17059
|
}),
|
|
17060
17060
|
/* @__PURE__ */ jsxs("div", {
|
|
17061
17061
|
children: [
|
|
17062
|
-
/* @__PURE__ */ jsx(NumberInput, _object_spread$
|
|
17062
|
+
/* @__PURE__ */ jsx(NumberInput, _object_spread$D({
|
|
17063
17063
|
onChange: handleToChange,
|
|
17064
17064
|
value: value === null || value === void 0 ? void 0 : value[1],
|
|
17065
17065
|
label: withFieldNameInLabel ? "".concat(labelName, " ").concat(translates.to.toLocaleLowerCase()) : translates.to,
|
|
@@ -17119,7 +17119,7 @@ var getLocale = function() {
|
|
|
17119
17119
|
var key = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : DEFAULT_LOCALE, custom = arguments.length > 1 ? arguments[1] : void 0, custom2 = arguments.length > 2 ? arguments[2] : void 0;
|
|
17120
17120
|
return merge$1({}, MultiSelectLocales[key], custom, custom2);
|
|
17121
17121
|
};
|
|
17122
|
-
function _define_property$
|
|
17122
|
+
function _define_property$D(obj, key, value) {
|
|
17123
17123
|
if (key in obj) {
|
|
17124
17124
|
Object.defineProperty(obj, key, {
|
|
17125
17125
|
value,
|
|
@@ -17132,7 +17132,7 @@ function _define_property$A(obj, key, value) {
|
|
|
17132
17132
|
}
|
|
17133
17133
|
return obj;
|
|
17134
17134
|
}
|
|
17135
|
-
function _object_spread$
|
|
17135
|
+
function _object_spread$C(target) {
|
|
17136
17136
|
for (var i = 1; i < arguments.length; i++) {
|
|
17137
17137
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
17138
17138
|
var ownKeys2 = Object.keys(source);
|
|
@@ -17142,19 +17142,19 @@ function _object_spread$z(target) {
|
|
|
17142
17142
|
}));
|
|
17143
17143
|
}
|
|
17144
17144
|
ownKeys2.forEach(function(key) {
|
|
17145
|
-
_define_property$
|
|
17145
|
+
_define_property$D(target, key, source[key]);
|
|
17146
17146
|
});
|
|
17147
17147
|
}
|
|
17148
17148
|
return target;
|
|
17149
17149
|
}
|
|
17150
17150
|
var ITEM_HEIGHT$1 = 40;
|
|
17151
17151
|
var TOP_GAP = 12;
|
|
17152
|
-
var useStyles$
|
|
17152
|
+
var useStyles$u = createThemedStyles("MultiSelectList", {
|
|
17153
17153
|
root: {
|
|
17154
17154
|
width: 220,
|
|
17155
17155
|
background: colors.CLASSIC_WHITE
|
|
17156
17156
|
},
|
|
17157
|
-
list: _object_spread$
|
|
17157
|
+
list: _object_spread$C({
|
|
17158
17158
|
paddingTop: TOP_GAP,
|
|
17159
17159
|
maxHeight: ITEM_HEIGHT$1 * 5 + TOP_GAP,
|
|
17160
17160
|
overscrollBehavior: "contain"
|
|
@@ -17311,7 +17311,7 @@ function _async_to_generator$2(fn3) {
|
|
|
17311
17311
|
});
|
|
17312
17312
|
};
|
|
17313
17313
|
}
|
|
17314
|
-
function _define_property$
|
|
17314
|
+
function _define_property$C(obj, key, value) {
|
|
17315
17315
|
if (key in obj) {
|
|
17316
17316
|
Object.defineProperty(obj, key, {
|
|
17317
17317
|
value,
|
|
@@ -17362,7 +17362,7 @@ function _non_iterable_rest$c() {
|
|
|
17362
17362
|
function _non_iterable_spread$3() {
|
|
17363
17363
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17364
17364
|
}
|
|
17365
|
-
function _object_spread$
|
|
17365
|
+
function _object_spread$B(target) {
|
|
17366
17366
|
for (var i = 1; i < arguments.length; i++) {
|
|
17367
17367
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
17368
17368
|
var ownKeys2 = Object.keys(source);
|
|
@@ -17372,12 +17372,12 @@ function _object_spread$y(target) {
|
|
|
17372
17372
|
}));
|
|
17373
17373
|
}
|
|
17374
17374
|
ownKeys2.forEach(function(key) {
|
|
17375
|
-
_define_property$
|
|
17375
|
+
_define_property$C(target, key, source[key]);
|
|
17376
17376
|
});
|
|
17377
17377
|
}
|
|
17378
17378
|
return target;
|
|
17379
17379
|
}
|
|
17380
|
-
function ownKeys$
|
|
17380
|
+
function ownKeys$x(object, enumerableOnly) {
|
|
17381
17381
|
var keys2 = Object.keys(object);
|
|
17382
17382
|
if (Object.getOwnPropertySymbols) {
|
|
17383
17383
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -17390,12 +17390,12 @@ function ownKeys$v(object, enumerableOnly) {
|
|
|
17390
17390
|
}
|
|
17391
17391
|
return keys2;
|
|
17392
17392
|
}
|
|
17393
|
-
function _object_spread_props$
|
|
17393
|
+
function _object_spread_props$x(target, source) {
|
|
17394
17394
|
source = source != null ? source : {};
|
|
17395
17395
|
if (Object.getOwnPropertyDescriptors) {
|
|
17396
17396
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
17397
17397
|
} else {
|
|
17398
|
-
ownKeys$
|
|
17398
|
+
ownKeys$x(Object(source)).forEach(function(key) {
|
|
17399
17399
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
17400
17400
|
});
|
|
17401
17401
|
}
|
|
@@ -17525,7 +17525,7 @@ function _ts_generator$2(thisArg, body) {
|
|
|
17525
17525
|
function MultiSelectList(param) {
|
|
17526
17526
|
var value = param.value, tweakStyles = param.tweakStyles, data = param.data, _param_isSearchEnabled = param.isSearchEnabled, isSearchEnabled = _param_isSearchEnabled === void 0 ? false : _param_isSearchEnabled, _param_localeKey = param.localeKey, localeKey = _param_localeKey === void 0 ? DEFAULT_LOCALE : _param_localeKey, _param_locale = param.locale, locale2 = _param_locale === void 0 ? MultiSelectLocales[localeKey] : _param_locale, onChange = param.onChange, onClose = param.onClose, options = param.options, fetchOptions = param.fetchOptions, _param_isGroupingEnabled = param.isGroupingEnabled, isGroupingEnabled = _param_isGroupingEnabled === void 0 ? isSearchEnabled : _param_isGroupingEnabled, _param_getValueView = param.getValueView, getValueView = _param_getValueView === void 0 ? defaultConvertFunction : _param_getValueView, _param_getValueId = param.getValueId, getValueId = _param_getValueId === void 0 ? defaultConvertFunction : _param_getValueId, _param_getValueString = param.getValueString, getValueString = _param_getValueString === void 0 ? defaultConvertFunction : _param_getValueString, _param_checkboxPosition = param.checkboxPosition, checkboxPosition = _param_checkboxPosition === void 0 ? "left" : _param_checkboxPosition, pageSize = param.pageSize, searchMaxLength = param.searchMaxLength, testId = param.testId;
|
|
17527
17527
|
var isMounted = useIsMounted();
|
|
17528
|
-
var classes = useStyles$
|
|
17528
|
+
var classes = useStyles$u({
|
|
17529
17529
|
theme: tweakStyles
|
|
17530
17530
|
});
|
|
17531
17531
|
var tweakCheckboxStyles = useTweakStyles({
|
|
@@ -17697,13 +17697,13 @@ function MultiSelectList(param) {
|
|
|
17697
17697
|
if (value !== void 0) {
|
|
17698
17698
|
if (keyCursorOn < value.include.length) {
|
|
17699
17699
|
var _value_include_filter;
|
|
17700
|
-
onChange(_object_spread_props$
|
|
17700
|
+
onChange(_object_spread_props$x(_object_spread$B({}, value), {
|
|
17701
17701
|
include: (_value_include_filter = value.include.filter(function(val) {
|
|
17702
17702
|
return getValueId(val) !== getValueId(value.include[keyCursorOn]);
|
|
17703
17703
|
})) !== null && _value_include_filter !== void 0 ? _value_include_filter : []
|
|
17704
17704
|
}));
|
|
17705
17705
|
} else {
|
|
17706
|
-
onChange(_object_spread_props$
|
|
17706
|
+
onChange(_object_spread_props$x(_object_spread$B({}, value), {
|
|
17707
17707
|
include: _to_consumable_array$3(value.include).concat([
|
|
17708
17708
|
unchosenOptions[keyCursorOn - value.include.length]
|
|
17709
17709
|
])
|
|
@@ -17902,7 +17902,7 @@ function MultiSelectList(param) {
|
|
|
17902
17902
|
var shouldShowAllOptionsLabel = hasSelectedOptionsGroup && (isArrayNotEmpty(unchosenOptions) || !isArrayNotEmpty(allOptions));
|
|
17903
17903
|
var shouldShowPreloader = isLoading || isLoadingOptionsOnScroll;
|
|
17904
17904
|
var shouldShowOptionsList = !isLoading && (isArrayNotEmpty(allOptions) || isArrayNotEmpty(chosenValues));
|
|
17905
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
17905
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$x(_object_spread$B({
|
|
17906
17906
|
className: classes.root
|
|
17907
17907
|
}, addDataAttributes(data)), {
|
|
17908
17908
|
children: [
|
|
@@ -18006,7 +18006,7 @@ function MultiSelectList(param) {
|
|
|
18006
18006
|
]
|
|
18007
18007
|
}));
|
|
18008
18008
|
}
|
|
18009
|
-
function _define_property$
|
|
18009
|
+
function _define_property$B(obj, key, value) {
|
|
18010
18010
|
if (key in obj) {
|
|
18011
18011
|
Object.defineProperty(obj, key, {
|
|
18012
18012
|
value,
|
|
@@ -18019,7 +18019,7 @@ function _define_property$y(obj, key, value) {
|
|
|
18019
18019
|
}
|
|
18020
18020
|
return obj;
|
|
18021
18021
|
}
|
|
18022
|
-
function _object_spread$
|
|
18022
|
+
function _object_spread$A(target) {
|
|
18023
18023
|
for (var i = 1; i < arguments.length; i++) {
|
|
18024
18024
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
18025
18025
|
var ownKeys2 = Object.keys(source);
|
|
@@ -18029,15 +18029,15 @@ function _object_spread$x(target) {
|
|
|
18029
18029
|
}));
|
|
18030
18030
|
}
|
|
18031
18031
|
ownKeys2.forEach(function(key) {
|
|
18032
|
-
_define_property$
|
|
18032
|
+
_define_property$B(target, key, source[key]);
|
|
18033
18033
|
});
|
|
18034
18034
|
}
|
|
18035
18035
|
return target;
|
|
18036
18036
|
}
|
|
18037
18037
|
function FilterMultiSelect(props) {
|
|
18038
|
-
return /* @__PURE__ */ jsx(MultiSelectList, _object_spread$
|
|
18038
|
+
return /* @__PURE__ */ jsx(MultiSelectList, _object_spread$A({}, props));
|
|
18039
18039
|
}
|
|
18040
|
-
function _define_property$
|
|
18040
|
+
function _define_property$A(obj, key, value) {
|
|
18041
18041
|
if (key in obj) {
|
|
18042
18042
|
Object.defineProperty(obj, key, {
|
|
18043
18043
|
value,
|
|
@@ -18050,7 +18050,7 @@ function _define_property$x(obj, key, value) {
|
|
|
18050
18050
|
}
|
|
18051
18051
|
return obj;
|
|
18052
18052
|
}
|
|
18053
|
-
function _object_spread$
|
|
18053
|
+
function _object_spread$z(target) {
|
|
18054
18054
|
for (var i = 1; i < arguments.length; i++) {
|
|
18055
18055
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
18056
18056
|
var ownKeys2 = Object.keys(source);
|
|
@@ -18060,19 +18060,19 @@ function _object_spread$w(target) {
|
|
|
18060
18060
|
}));
|
|
18061
18061
|
}
|
|
18062
18062
|
ownKeys2.forEach(function(key) {
|
|
18063
|
-
_define_property$
|
|
18063
|
+
_define_property$A(target, key, source[key]);
|
|
18064
18064
|
});
|
|
18065
18065
|
}
|
|
18066
18066
|
return target;
|
|
18067
18067
|
}
|
|
18068
18068
|
var ITEM_HEIGHT = 40;
|
|
18069
18069
|
var LIST_GAP = 12;
|
|
18070
|
-
var useStyles$
|
|
18070
|
+
var useStyles$t = createThemedStyles("FilterSelect", {
|
|
18071
18071
|
root: {
|
|
18072
18072
|
width: 220,
|
|
18073
18073
|
background: colors.CLASSIC_WHITE
|
|
18074
18074
|
},
|
|
18075
|
-
list: _object_spread$
|
|
18075
|
+
list: _object_spread$z({
|
|
18076
18076
|
paddingTop: LIST_GAP,
|
|
18077
18077
|
padding: [
|
|
18078
18078
|
LIST_GAP,
|
|
@@ -18245,7 +18245,7 @@ function _async_to_generator$1(fn3) {
|
|
|
18245
18245
|
});
|
|
18246
18246
|
};
|
|
18247
18247
|
}
|
|
18248
|
-
function _define_property$
|
|
18248
|
+
function _define_property$z(obj, key, value) {
|
|
18249
18249
|
if (key in obj) {
|
|
18250
18250
|
Object.defineProperty(obj, key, {
|
|
18251
18251
|
value,
|
|
@@ -18296,7 +18296,7 @@ function _non_iterable_rest$b() {
|
|
|
18296
18296
|
function _non_iterable_spread$2() {
|
|
18297
18297
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
18298
18298
|
}
|
|
18299
|
-
function _object_spread$
|
|
18299
|
+
function _object_spread$y(target) {
|
|
18300
18300
|
for (var i = 1; i < arguments.length; i++) {
|
|
18301
18301
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
18302
18302
|
var ownKeys2 = Object.keys(source);
|
|
@@ -18306,12 +18306,12 @@ function _object_spread$v(target) {
|
|
|
18306
18306
|
}));
|
|
18307
18307
|
}
|
|
18308
18308
|
ownKeys2.forEach(function(key) {
|
|
18309
|
-
_define_property$
|
|
18309
|
+
_define_property$z(target, key, source[key]);
|
|
18310
18310
|
});
|
|
18311
18311
|
}
|
|
18312
18312
|
return target;
|
|
18313
18313
|
}
|
|
18314
|
-
function ownKeys$
|
|
18314
|
+
function ownKeys$w(object, enumerableOnly) {
|
|
18315
18315
|
var keys2 = Object.keys(object);
|
|
18316
18316
|
if (Object.getOwnPropertySymbols) {
|
|
18317
18317
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -18324,12 +18324,12 @@ function ownKeys$u(object, enumerableOnly) {
|
|
|
18324
18324
|
}
|
|
18325
18325
|
return keys2;
|
|
18326
18326
|
}
|
|
18327
|
-
function _object_spread_props$
|
|
18327
|
+
function _object_spread_props$w(target, source) {
|
|
18328
18328
|
source = source != null ? source : {};
|
|
18329
18329
|
if (Object.getOwnPropertyDescriptors) {
|
|
18330
18330
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
18331
18331
|
} else {
|
|
18332
|
-
ownKeys$
|
|
18332
|
+
ownKeys$w(Object(source)).forEach(function(key) {
|
|
18333
18333
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
18334
18334
|
});
|
|
18335
18335
|
}
|
|
@@ -18458,7 +18458,7 @@ function _ts_generator$1(thisArg, body) {
|
|
|
18458
18458
|
}
|
|
18459
18459
|
function FilterSelect(param) {
|
|
18460
18460
|
var data = param.data, tweakStyles = param.tweakStyles, value = param.value, _param_isSearchEnabled = param.isSearchEnabled, isSearchEnabled = _param_isSearchEnabled === void 0 ? false : _param_isSearchEnabled, _param_isGroupingEnabled = param.isGroupingEnabled, isGroupingEnabled = _param_isGroupingEnabled === void 0 ? false : _param_isGroupingEnabled, localeKey = param.localeKey, locale2 = param.locale, onChange = param.onChange, onClose = param.onClose, options = param.options, fetchOptions = param.fetchOptions, footer = param.footer, _param_getValueView = param.getValueView, getValueView = _param_getValueView === void 0 ? defaultConvertFunction$1 : _param_getValueView, _param_getValueId = param.getValueId, getValueId = _param_getValueId === void 0 ? defaultConvertFunction$1 : _param_getValueId, _param_getValueString = param.getValueString, getValueString = _param_getValueString === void 0 ? defaultConvertFunction$1 : _param_getValueString, _param_hasClearButton = param.hasClearButton, hasClearButton = _param_hasClearButton === void 0 ? true : _param_hasClearButton, testId = param.testId;
|
|
18461
|
-
var classes = useStyles$
|
|
18461
|
+
var classes = useStyles$t({
|
|
18462
18462
|
theme: tweakStyles
|
|
18463
18463
|
});
|
|
18464
18464
|
var tweakSearchInputStyles = useTweakStyles({
|
|
@@ -18733,7 +18733,7 @@ function FilterSelect(param) {
|
|
|
18733
18733
|
}();
|
|
18734
18734
|
doFetchOptions();
|
|
18735
18735
|
}, []);
|
|
18736
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
18736
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$w(_object_spread$y({
|
|
18737
18737
|
className: classes.root
|
|
18738
18738
|
}, addDataAttributes(data)), {
|
|
18739
18739
|
children: [
|
|
@@ -18833,7 +18833,7 @@ function FilterSelect(param) {
|
|
|
18833
18833
|
children: translates.nothingFound
|
|
18834
18834
|
}),
|
|
18835
18835
|
(hasClearButton || hasFooter) && /* @__PURE__ */ jsxs("div", {
|
|
18836
|
-
className: clsx(classes.panel, _define_property$
|
|
18836
|
+
className: clsx(classes.panel, _define_property$z({}, classes.panelWithFooter, hasFooter)),
|
|
18837
18837
|
children: [
|
|
18838
18838
|
hasFooter && /* @__PURE__ */ jsx("div", {
|
|
18839
18839
|
className: classes.footer,
|
|
@@ -18863,7 +18863,7 @@ function FilterSelect(param) {
|
|
|
18863
18863
|
]
|
|
18864
18864
|
}));
|
|
18865
18865
|
}
|
|
18866
|
-
var useStyles$
|
|
18866
|
+
var useStyles$s = createThemedStyles("FilterWithDates", {
|
|
18867
18867
|
root: {
|
|
18868
18868
|
width: 320,
|
|
18869
18869
|
background: colors.CLASSIC_WHITE,
|
|
@@ -18931,7 +18931,7 @@ function _array_with_holes$a(arr) {
|
|
|
18931
18931
|
if (Array.isArray(arr))
|
|
18932
18932
|
return arr;
|
|
18933
18933
|
}
|
|
18934
|
-
function _define_property$
|
|
18934
|
+
function _define_property$y(obj, key, value) {
|
|
18935
18935
|
if (key in obj) {
|
|
18936
18936
|
Object.defineProperty(obj, key, {
|
|
18937
18937
|
value,
|
|
@@ -18975,7 +18975,7 @@ function _iterable_to_array_limit$a(arr, i) {
|
|
|
18975
18975
|
function _non_iterable_rest$a() {
|
|
18976
18976
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
18977
18977
|
}
|
|
18978
|
-
function _object_spread$
|
|
18978
|
+
function _object_spread$x(target) {
|
|
18979
18979
|
for (var i = 1; i < arguments.length; i++) {
|
|
18980
18980
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
18981
18981
|
var ownKeys2 = Object.keys(source);
|
|
@@ -18985,12 +18985,12 @@ function _object_spread$u(target) {
|
|
|
18985
18985
|
}));
|
|
18986
18986
|
}
|
|
18987
18987
|
ownKeys2.forEach(function(key) {
|
|
18988
|
-
_define_property$
|
|
18988
|
+
_define_property$y(target, key, source[key]);
|
|
18989
18989
|
});
|
|
18990
18990
|
}
|
|
18991
18991
|
return target;
|
|
18992
18992
|
}
|
|
18993
|
-
function ownKeys$
|
|
18993
|
+
function ownKeys$v(object, enumerableOnly) {
|
|
18994
18994
|
var keys2 = Object.keys(object);
|
|
18995
18995
|
if (Object.getOwnPropertySymbols) {
|
|
18996
18996
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -19003,12 +19003,12 @@ function ownKeys$t(object, enumerableOnly) {
|
|
|
19003
19003
|
}
|
|
19004
19004
|
return keys2;
|
|
19005
19005
|
}
|
|
19006
|
-
function _object_spread_props$
|
|
19006
|
+
function _object_spread_props$v(target, source) {
|
|
19007
19007
|
source = source != null ? source : {};
|
|
19008
19008
|
if (Object.getOwnPropertyDescriptors) {
|
|
19009
19009
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
19010
19010
|
} else {
|
|
19011
|
-
ownKeys$
|
|
19011
|
+
ownKeys$v(Object(source)).forEach(function(key) {
|
|
19012
19012
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
19013
19013
|
});
|
|
19014
19014
|
}
|
|
@@ -19032,7 +19032,7 @@ function _unsupported_iterable_to_array$a(o, minLen) {
|
|
|
19032
19032
|
}
|
|
19033
19033
|
var FilterWithDates = function(param) {
|
|
19034
19034
|
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;
|
|
19035
|
-
var classes = useStyles$
|
|
19035
|
+
var classes = useStyles$s({
|
|
19036
19036
|
theme: tweakStyles
|
|
19037
19037
|
});
|
|
19038
19038
|
var tweakClearButtonStyles = useTweakStyles({
|
|
@@ -19119,7 +19119,7 @@ var FilterWithDates = function(param) {
|
|
|
19119
19119
|
}
|
|
19120
19120
|
};
|
|
19121
19121
|
var _ref;
|
|
19122
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
19122
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$v(_object_spread$x({
|
|
19123
19123
|
className: classes.root
|
|
19124
19124
|
}, addDataAttributes(data)), {
|
|
19125
19125
|
children: [
|
|
@@ -19128,7 +19128,7 @@ var FilterWithDates = function(param) {
|
|
|
19128
19128
|
children: [
|
|
19129
19129
|
/* @__PURE__ */ jsx("div", {
|
|
19130
19130
|
className: classes.containerItem,
|
|
19131
|
-
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$
|
|
19131
|
+
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$x({
|
|
19132
19132
|
selectedDate: value === null || value === void 0 ? void 0 : value.from,
|
|
19133
19133
|
maxDate: value === null || value === void 0 ? void 0 : value.to,
|
|
19134
19134
|
label: translates.from,
|
|
@@ -19143,7 +19143,7 @@ var FilterWithDates = function(param) {
|
|
|
19143
19143
|
}),
|
|
19144
19144
|
/* @__PURE__ */ jsx("div", {
|
|
19145
19145
|
className: classes.containerItem,
|
|
19146
|
-
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$
|
|
19146
|
+
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$x({
|
|
19147
19147
|
selectedDate: value === null || value === void 0 ? void 0 : value.to,
|
|
19148
19148
|
label: translates.to,
|
|
19149
19149
|
months: translates.months,
|
|
@@ -19199,7 +19199,7 @@ var FilterWithDates = function(param) {
|
|
|
19199
19199
|
]
|
|
19200
19200
|
}));
|
|
19201
19201
|
};
|
|
19202
|
-
var useStyles$
|
|
19202
|
+
var useStyles$r = createThemedStyles("FilterWithPeriod", {
|
|
19203
19203
|
root: {},
|
|
19204
19204
|
main: {},
|
|
19205
19205
|
picker: {}
|
|
@@ -19224,7 +19224,7 @@ function _array_without_holes$1(arr) {
|
|
|
19224
19224
|
if (Array.isArray(arr))
|
|
19225
19225
|
return _array_like_to_array$9(arr);
|
|
19226
19226
|
}
|
|
19227
|
-
function _define_property$
|
|
19227
|
+
function _define_property$x(obj, key, value) {
|
|
19228
19228
|
if (key in obj) {
|
|
19229
19229
|
Object.defineProperty(obj, key, {
|
|
19230
19230
|
value,
|
|
@@ -19275,7 +19275,7 @@ function _non_iterable_rest$9() {
|
|
|
19275
19275
|
function _non_iterable_spread$1() {
|
|
19276
19276
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
19277
19277
|
}
|
|
19278
|
-
function _object_spread$
|
|
19278
|
+
function _object_spread$w(target) {
|
|
19279
19279
|
for (var i = 1; i < arguments.length; i++) {
|
|
19280
19280
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
19281
19281
|
var ownKeys2 = Object.keys(source);
|
|
@@ -19285,12 +19285,12 @@ function _object_spread$t(target) {
|
|
|
19285
19285
|
}));
|
|
19286
19286
|
}
|
|
19287
19287
|
ownKeys2.forEach(function(key) {
|
|
19288
|
-
_define_property$
|
|
19288
|
+
_define_property$x(target, key, source[key]);
|
|
19289
19289
|
});
|
|
19290
19290
|
}
|
|
19291
19291
|
return target;
|
|
19292
19292
|
}
|
|
19293
|
-
function ownKeys$
|
|
19293
|
+
function ownKeys$u(object, enumerableOnly) {
|
|
19294
19294
|
var keys2 = Object.keys(object);
|
|
19295
19295
|
if (Object.getOwnPropertySymbols) {
|
|
19296
19296
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -19303,12 +19303,12 @@ function ownKeys$s(object, enumerableOnly) {
|
|
|
19303
19303
|
}
|
|
19304
19304
|
return keys2;
|
|
19305
19305
|
}
|
|
19306
|
-
function _object_spread_props$
|
|
19306
|
+
function _object_spread_props$u(target, source) {
|
|
19307
19307
|
source = source != null ? source : {};
|
|
19308
19308
|
if (Object.getOwnPropertyDescriptors) {
|
|
19309
19309
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
19310
19310
|
} else {
|
|
19311
|
-
ownKeys$
|
|
19311
|
+
ownKeys$u(Object(source)).forEach(function(key) {
|
|
19312
19312
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
19313
19313
|
});
|
|
19314
19314
|
}
|
|
@@ -19335,7 +19335,7 @@ function _unsupported_iterable_to_array$9(o, minLen) {
|
|
|
19335
19335
|
}
|
|
19336
19336
|
var FilterWithPeriod = function(param) {
|
|
19337
19337
|
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;
|
|
19338
|
-
var classes = useStyles$
|
|
19338
|
+
var classes = useStyles$r({
|
|
19339
19339
|
theme: tweakStyles
|
|
19340
19340
|
});
|
|
19341
19341
|
var translates = useMemo(function() {
|
|
@@ -19348,7 +19348,7 @@ var FilterWithPeriod = function(param) {
|
|
|
19348
19348
|
var _useState1 = _sliced_to_array$9(useState((value === null || value === void 0 ? void 0 : value.periodType) === "CUSTOM"), 2), isDatePickerShown = _useState1[0], setIsDatePickerShown = _useState1[1];
|
|
19349
19349
|
var _useState2 = _sliced_to_array$9(useState(value), 2), period = _useState2[0], setPeriod = _useState2[1];
|
|
19350
19350
|
var periodGetters = useMemo(function() {
|
|
19351
|
-
var result = _object_spread$
|
|
19351
|
+
var result = _object_spread$w({}, PERIODS_GETTERS);
|
|
19352
19352
|
periods === null || periods === void 0 ? void 0 : periods.forEach(function(p) {
|
|
19353
19353
|
if (Array.isArray(p)) {
|
|
19354
19354
|
result[p[0]] = p[1];
|
|
@@ -19394,7 +19394,7 @@ var FilterWithPeriod = function(param) {
|
|
|
19394
19394
|
if (onClose !== void 0) {
|
|
19395
19395
|
onClose();
|
|
19396
19396
|
}
|
|
19397
|
-
onChange(_object_spread_props$
|
|
19397
|
+
onChange(_object_spread_props$u(_object_spread$w({}, p), {
|
|
19398
19398
|
label: getPeriodTranslate(periodType)
|
|
19399
19399
|
}));
|
|
19400
19400
|
}
|
|
@@ -19414,7 +19414,7 @@ var FilterWithPeriod = function(param) {
|
|
|
19414
19414
|
};
|
|
19415
19415
|
var handleCustomDateChange = function(val) {
|
|
19416
19416
|
if (val.from || val.to) {
|
|
19417
|
-
onChange(_object_spread_props$
|
|
19417
|
+
onChange(_object_spread_props$u(_object_spread$w({}, val), {
|
|
19418
19418
|
periodType: "CUSTOM"
|
|
19419
19419
|
}));
|
|
19420
19420
|
} else {
|
|
@@ -19502,7 +19502,7 @@ var isPeriodValue = function(value) {
|
|
|
19502
19502
|
var isMultiSelectValue = function(value) {
|
|
19503
19503
|
return Array.isArray(value === null || value === void 0 ? void 0 : value.include);
|
|
19504
19504
|
};
|
|
19505
|
-
function _define_property$
|
|
19505
|
+
function _define_property$w(obj, key, value) {
|
|
19506
19506
|
if (key in obj) {
|
|
19507
19507
|
Object.defineProperty(obj, key, {
|
|
19508
19508
|
value,
|
|
@@ -19515,7 +19515,7 @@ function _define_property$t(obj, key, value) {
|
|
|
19515
19515
|
}
|
|
19516
19516
|
return obj;
|
|
19517
19517
|
}
|
|
19518
|
-
function _object_spread$
|
|
19518
|
+
function _object_spread$v(target) {
|
|
19519
19519
|
for (var i = 1; i < arguments.length; i++) {
|
|
19520
19520
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
19521
19521
|
var ownKeys2 = Object.keys(source);
|
|
@@ -19525,12 +19525,12 @@ function _object_spread$s(target) {
|
|
|
19525
19525
|
}));
|
|
19526
19526
|
}
|
|
19527
19527
|
ownKeys2.forEach(function(key) {
|
|
19528
|
-
_define_property$
|
|
19528
|
+
_define_property$w(target, key, source[key]);
|
|
19529
19529
|
});
|
|
19530
19530
|
}
|
|
19531
19531
|
return target;
|
|
19532
19532
|
}
|
|
19533
|
-
function ownKeys$
|
|
19533
|
+
function ownKeys$t(object, enumerableOnly) {
|
|
19534
19534
|
var keys2 = Object.keys(object);
|
|
19535
19535
|
if (Object.getOwnPropertySymbols) {
|
|
19536
19536
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -19543,12 +19543,12 @@ function ownKeys$r(object, enumerableOnly) {
|
|
|
19543
19543
|
}
|
|
19544
19544
|
return keys2;
|
|
19545
19545
|
}
|
|
19546
|
-
function _object_spread_props$
|
|
19546
|
+
function _object_spread_props$t(target, source) {
|
|
19547
19547
|
source = source != null ? source : {};
|
|
19548
19548
|
if (Object.getOwnPropertyDescriptors) {
|
|
19549
19549
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
19550
19550
|
} else {
|
|
19551
|
-
ownKeys$
|
|
19551
|
+
ownKeys$t(Object(source)).forEach(function(key) {
|
|
19552
19552
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
19553
19553
|
});
|
|
19554
19554
|
}
|
|
@@ -19566,7 +19566,7 @@ function Filter(props) {
|
|
|
19566
19566
|
filter.locale
|
|
19567
19567
|
]);
|
|
19568
19568
|
if (filter.type === "select") {
|
|
19569
|
-
return /* @__PURE__ */ jsx(FilterSelect, _object_spread$
|
|
19569
|
+
return /* @__PURE__ */ jsx(FilterSelect, _object_spread$v({
|
|
19570
19570
|
value,
|
|
19571
19571
|
onChange,
|
|
19572
19572
|
onClose,
|
|
@@ -19576,8 +19576,8 @@ function Filter(props) {
|
|
|
19576
19576
|
}, filter));
|
|
19577
19577
|
}
|
|
19578
19578
|
if (filter.type === "dateRange") {
|
|
19579
|
-
var preparedValue = isPeriodValue(value) ? _object_spread$
|
|
19580
|
-
return /* @__PURE__ */ jsx(FilterWithPeriod, _object_spread$
|
|
19579
|
+
var preparedValue = isPeriodValue(value) ? _object_spread$v({}, value) : void 0;
|
|
19580
|
+
return /* @__PURE__ */ jsx(FilterWithPeriod, _object_spread$v({
|
|
19581
19581
|
value: preparedValue,
|
|
19582
19582
|
onChange,
|
|
19583
19583
|
onClose,
|
|
@@ -19588,10 +19588,10 @@ function Filter(props) {
|
|
|
19588
19588
|
}
|
|
19589
19589
|
if (filter.type === "dateRangeWithoutPeriod") {
|
|
19590
19590
|
var preparedValue1 = isDatePeriodValue(value) ? value : void 0;
|
|
19591
|
-
return /* @__PURE__ */ jsx(FilterWithDates, _object_spread$
|
|
19591
|
+
return /* @__PURE__ */ jsx(FilterWithDates, _object_spread$v({
|
|
19592
19592
|
value: preparedValue1,
|
|
19593
19593
|
onChange: function(v) {
|
|
19594
|
-
return onChange(_object_spread_props$
|
|
19594
|
+
return onChange(_object_spread_props$t(_object_spread$v({}, v), {
|
|
19595
19595
|
periodType: "CUSTOM"
|
|
19596
19596
|
}));
|
|
19597
19597
|
},
|
|
@@ -19605,7 +19605,7 @@ function Filter(props) {
|
|
|
19605
19605
|
}
|
|
19606
19606
|
if (filter.type === "multiSelect") {
|
|
19607
19607
|
var preparedValue2 = isMultiSelectValue(value) ? value : void 0;
|
|
19608
|
-
return /* @__PURE__ */ jsx(FilterMultiSelect, _object_spread$
|
|
19608
|
+
return /* @__PURE__ */ jsx(FilterMultiSelect, _object_spread$v({
|
|
19609
19609
|
value: preparedValue2,
|
|
19610
19610
|
onChange,
|
|
19611
19611
|
onClose,
|
|
@@ -19616,7 +19616,7 @@ function Filter(props) {
|
|
|
19616
19616
|
}
|
|
19617
19617
|
if (filter.type === "interval") {
|
|
19618
19618
|
var preparedValue3 = Array.isArray(value) ? value : void 0;
|
|
19619
|
-
return /* @__PURE__ */ jsx(FilterInterval, _object_spread$
|
|
19619
|
+
return /* @__PURE__ */ jsx(FilterInterval, _object_spread$v({
|
|
19620
19620
|
value: preparedValue3,
|
|
19621
19621
|
onChange,
|
|
19622
19622
|
localeKey: translatesLocaleKey,
|
|
@@ -19630,14 +19630,14 @@ function Filter(props) {
|
|
|
19630
19630
|
}
|
|
19631
19631
|
if (filter.type === "custom" && filter.component) {
|
|
19632
19632
|
var Component = filter.component;
|
|
19633
|
-
return /* @__PURE__ */ jsx(Component, _object_spread_props$
|
|
19633
|
+
return /* @__PURE__ */ jsx(Component, _object_spread_props$t(_object_spread$v({}, props), {
|
|
19634
19634
|
filter
|
|
19635
19635
|
}));
|
|
19636
19636
|
}
|
|
19637
19637
|
console.warn("%cДля фильтра ".concat(filter.name, " не задан тип или component"), "background: red; color: black");
|
|
19638
19638
|
return null;
|
|
19639
19639
|
}
|
|
19640
|
-
var useStyles$
|
|
19640
|
+
var useStyles$q = createThemedStyles("FiltersPaneSearch", {
|
|
19641
19641
|
root: {
|
|
19642
19642
|
display: "flex",
|
|
19643
19643
|
position: "relative",
|
|
@@ -19746,7 +19746,7 @@ function _array_with_holes$8(arr) {
|
|
|
19746
19746
|
if (Array.isArray(arr))
|
|
19747
19747
|
return arr;
|
|
19748
19748
|
}
|
|
19749
|
-
function _define_property$
|
|
19749
|
+
function _define_property$v(obj, key, value) {
|
|
19750
19750
|
if (key in obj) {
|
|
19751
19751
|
Object.defineProperty(obj, key, {
|
|
19752
19752
|
value,
|
|
@@ -19790,7 +19790,7 @@ function _iterable_to_array_limit$8(arr, i) {
|
|
|
19790
19790
|
function _non_iterable_rest$8() {
|
|
19791
19791
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
19792
19792
|
}
|
|
19793
|
-
function _object_spread$
|
|
19793
|
+
function _object_spread$u(target) {
|
|
19794
19794
|
for (var i = 1; i < arguments.length; i++) {
|
|
19795
19795
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
19796
19796
|
var ownKeys2 = Object.keys(source);
|
|
@@ -19800,12 +19800,12 @@ function _object_spread$r(target) {
|
|
|
19800
19800
|
}));
|
|
19801
19801
|
}
|
|
19802
19802
|
ownKeys2.forEach(function(key) {
|
|
19803
|
-
_define_property$
|
|
19803
|
+
_define_property$v(target, key, source[key]);
|
|
19804
19804
|
});
|
|
19805
19805
|
}
|
|
19806
19806
|
return target;
|
|
19807
19807
|
}
|
|
19808
|
-
function ownKeys$
|
|
19808
|
+
function ownKeys$s(object, enumerableOnly) {
|
|
19809
19809
|
var keys2 = Object.keys(object);
|
|
19810
19810
|
if (Object.getOwnPropertySymbols) {
|
|
19811
19811
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -19818,12 +19818,12 @@ function ownKeys$q(object, enumerableOnly) {
|
|
|
19818
19818
|
}
|
|
19819
19819
|
return keys2;
|
|
19820
19820
|
}
|
|
19821
|
-
function _object_spread_props$
|
|
19821
|
+
function _object_spread_props$s(target, source) {
|
|
19822
19822
|
source = source != null ? source : {};
|
|
19823
19823
|
if (Object.getOwnPropertyDescriptors) {
|
|
19824
19824
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
19825
19825
|
} else {
|
|
19826
|
-
ownKeys$
|
|
19826
|
+
ownKeys$s(Object(source)).forEach(function(key) {
|
|
19827
19827
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
19828
19828
|
});
|
|
19829
19829
|
}
|
|
@@ -19847,7 +19847,7 @@ function _unsupported_iterable_to_array$8(o, minLen) {
|
|
|
19847
19847
|
}
|
|
19848
19848
|
function FiltersPaneSearch(param) {
|
|
19849
19849
|
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;
|
|
19850
|
-
var classes = useStyles$
|
|
19850
|
+
var classes = useStyles$q({
|
|
19851
19851
|
theme: tweakStyles
|
|
19852
19852
|
});
|
|
19853
19853
|
var tweakSearchInputStyles = useTweakStyles({
|
|
@@ -19893,8 +19893,8 @@ function FiltersPaneSearch(param) {
|
|
|
19893
19893
|
field
|
|
19894
19894
|
]);
|
|
19895
19895
|
var _obj2;
|
|
19896
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
19897
|
-
className: clsx(classes.root, (_obj2 = {}, _define_property$
|
|
19896
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$s(_object_spread$u({
|
|
19897
|
+
className: clsx(classes.root, (_obj2 = {}, _define_property$v(_obj2, classes.focused, isInputFocused), _define_property$v(_obj2, classes.disabled, isDisabled), _obj2)),
|
|
19898
19898
|
ref: refRoot,
|
|
19899
19899
|
"data-testid": testId
|
|
19900
19900
|
}, addDataAttributes(data)), {
|
|
@@ -19959,7 +19959,7 @@ function FiltersPaneSearch(param) {
|
|
|
19959
19959
|
]
|
|
19960
19960
|
}));
|
|
19961
19961
|
}
|
|
19962
|
-
var useStyles$
|
|
19962
|
+
var useStyles$p = createThemedStyles("FilterValueView", {
|
|
19963
19963
|
text: {
|
|
19964
19964
|
overflow: "hidden",
|
|
19965
19965
|
textOverflow: "ellipsis",
|
|
@@ -19978,7 +19978,7 @@ function _instanceof$1(left2, right2) {
|
|
|
19978
19978
|
}
|
|
19979
19979
|
function FilterValueView(param) {
|
|
19980
19980
|
var value = param.value, filter = param.filter, locale2 = param.locale, localeKey = param.localeKey, tweakStyles = param.tweakStyles;
|
|
19981
|
-
var classes = useStyles$
|
|
19981
|
+
var classes = useStyles$p({
|
|
19982
19982
|
theme: tweakStyles
|
|
19983
19983
|
});
|
|
19984
19984
|
var _filter_localeKey;
|
|
@@ -20143,7 +20143,7 @@ var isContentNotEmpty = function(value) {
|
|
|
20143
20143
|
}
|
|
20144
20144
|
return isNotEmpty(value);
|
|
20145
20145
|
};
|
|
20146
|
-
var useStyles$
|
|
20146
|
+
var useStyles$o = createThemedStyles("FilterWrapper", {
|
|
20147
20147
|
root: {
|
|
20148
20148
|
position: "relative",
|
|
20149
20149
|
transition: animations.defaultTransition,
|
|
@@ -20236,7 +20236,7 @@ var useStyles$m = createThemedStyles("FilterWrapper", {
|
|
|
20236
20236
|
minWidth: 0
|
|
20237
20237
|
}
|
|
20238
20238
|
});
|
|
20239
|
-
function _define_property$
|
|
20239
|
+
function _define_property$u(obj, key, value) {
|
|
20240
20240
|
if (key in obj) {
|
|
20241
20241
|
Object.defineProperty(obj, key, {
|
|
20242
20242
|
value,
|
|
@@ -20249,7 +20249,7 @@ function _define_property$r(obj, key, value) {
|
|
|
20249
20249
|
}
|
|
20250
20250
|
return obj;
|
|
20251
20251
|
}
|
|
20252
|
-
function _object_spread$
|
|
20252
|
+
function _object_spread$t(target) {
|
|
20253
20253
|
for (var i = 1; i < arguments.length; i++) {
|
|
20254
20254
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
20255
20255
|
var ownKeys2 = Object.keys(source);
|
|
@@ -20259,12 +20259,12 @@ function _object_spread$q(target) {
|
|
|
20259
20259
|
}));
|
|
20260
20260
|
}
|
|
20261
20261
|
ownKeys2.forEach(function(key) {
|
|
20262
|
-
_define_property$
|
|
20262
|
+
_define_property$u(target, key, source[key]);
|
|
20263
20263
|
});
|
|
20264
20264
|
}
|
|
20265
20265
|
return target;
|
|
20266
20266
|
}
|
|
20267
|
-
function ownKeys$
|
|
20267
|
+
function ownKeys$r(object, enumerableOnly) {
|
|
20268
20268
|
var keys2 = Object.keys(object);
|
|
20269
20269
|
if (Object.getOwnPropertySymbols) {
|
|
20270
20270
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -20277,12 +20277,12 @@ function ownKeys$p(object, enumerableOnly) {
|
|
|
20277
20277
|
}
|
|
20278
20278
|
return keys2;
|
|
20279
20279
|
}
|
|
20280
|
-
function _object_spread_props$
|
|
20280
|
+
function _object_spread_props$r(target, source) {
|
|
20281
20281
|
source = source != null ? source : {};
|
|
20282
20282
|
if (Object.getOwnPropertyDescriptors) {
|
|
20283
20283
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
20284
20284
|
} else {
|
|
20285
|
-
ownKeys$
|
|
20285
|
+
ownKeys$r(Object(source)).forEach(function(key) {
|
|
20286
20286
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
20287
20287
|
});
|
|
20288
20288
|
}
|
|
@@ -20290,7 +20290,7 @@ function _object_spread_props$p(target, source) {
|
|
|
20290
20290
|
}
|
|
20291
20291
|
function FilterWrapper(param) {
|
|
20292
20292
|
var filter = param.filter, value = param.value, isDisabled = param.isDisabled, locale2 = param.locale, localeKey = param.localeKey, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles, onChange = param.onChange;
|
|
20293
|
-
var classes = useStyles$
|
|
20293
|
+
var classes = useStyles$o({
|
|
20294
20294
|
theme: tweakStyles
|
|
20295
20295
|
});
|
|
20296
20296
|
var tweakWithPopupStyles = useTweakStyles({
|
|
@@ -20334,12 +20334,12 @@ function FilterWrapper(param) {
|
|
|
20334
20334
|
trigger: function(param2) {
|
|
20335
20335
|
var isActive = param2.triggerProps.isActive, referenceProps = param2.referenceProps;
|
|
20336
20336
|
var _obj2;
|
|
20337
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
20338
|
-
className: clsx(classes.root, (_obj2 = {}, _define_property$
|
|
20337
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$r(_object_spread$t({
|
|
20338
|
+
className: clsx(classes.root, (_obj2 = {}, _define_property$u(_obj2, classes.noValue, !hasValue), _define_property$u(_obj2, classes.openNoValue, isActive && !hasValue), _define_property$u(_obj2, classes.withValue, !isActive && hasValue), _define_property$u(_obj2, classes.openWithValue, isActive && hasValue), _define_property$u(_obj2, classes.boolean, isBoolean), _define_property$u(_obj2, classes.disabled, isDisabled), _obj2))
|
|
20339
20339
|
}, addDataTestId(testId), addDataAttributes(data), referenceProps), {
|
|
20340
20340
|
children: /* @__PURE__ */ jsxs("div", {
|
|
20341
20341
|
onClick: handleLabelClick,
|
|
20342
|
-
className: clsx(classes.item, _define_property$
|
|
20342
|
+
className: clsx(classes.item, _define_property$u({}, classes.booleanItem, isBoolean)),
|
|
20343
20343
|
children: [
|
|
20344
20344
|
/* @__PURE__ */ jsx("div", {
|
|
20345
20345
|
className: classes.name,
|
|
@@ -20357,7 +20357,7 @@ function FilterWrapper(param) {
|
|
|
20357
20357
|
})
|
|
20358
20358
|
}),
|
|
20359
20359
|
!isBoolean && !hasClearIcon && /* @__PURE__ */ jsx("div", {
|
|
20360
|
-
className: clsx(classes.iconContainer, classes.chevronIcon, _define_property$
|
|
20360
|
+
className: clsx(classes.iconContainer, classes.chevronIcon, _define_property$u({}, classes.open, isActive)),
|
|
20361
20361
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
20362
20362
|
type: "chevron-down"
|
|
20363
20363
|
})
|
|
@@ -20387,7 +20387,7 @@ function FilterWrapper(param) {
|
|
|
20387
20387
|
}
|
|
20388
20388
|
});
|
|
20389
20389
|
}
|
|
20390
|
-
function _define_property$
|
|
20390
|
+
function _define_property$t(obj, key, value) {
|
|
20391
20391
|
if (key in obj) {
|
|
20392
20392
|
Object.defineProperty(obj, key, {
|
|
20393
20393
|
value,
|
|
@@ -20400,7 +20400,7 @@ function _define_property$q(obj, key, value) {
|
|
|
20400
20400
|
}
|
|
20401
20401
|
return obj;
|
|
20402
20402
|
}
|
|
20403
|
-
function _object_spread$
|
|
20403
|
+
function _object_spread$s(target) {
|
|
20404
20404
|
for (var i = 1; i < arguments.length; i++) {
|
|
20405
20405
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
20406
20406
|
var ownKeys2 = Object.keys(source);
|
|
@@ -20410,12 +20410,12 @@ function _object_spread$p(target) {
|
|
|
20410
20410
|
}));
|
|
20411
20411
|
}
|
|
20412
20412
|
ownKeys2.forEach(function(key) {
|
|
20413
|
-
_define_property$
|
|
20413
|
+
_define_property$t(target, key, source[key]);
|
|
20414
20414
|
});
|
|
20415
20415
|
}
|
|
20416
20416
|
return target;
|
|
20417
20417
|
}
|
|
20418
|
-
function ownKeys$
|
|
20418
|
+
function ownKeys$q(object, enumerableOnly) {
|
|
20419
20419
|
var keys2 = Object.keys(object);
|
|
20420
20420
|
if (Object.getOwnPropertySymbols) {
|
|
20421
20421
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -20428,12 +20428,12 @@ function ownKeys$o(object, enumerableOnly) {
|
|
|
20428
20428
|
}
|
|
20429
20429
|
return keys2;
|
|
20430
20430
|
}
|
|
20431
|
-
function _object_spread_props$
|
|
20431
|
+
function _object_spread_props$q(target, source) {
|
|
20432
20432
|
source = source != null ? source : {};
|
|
20433
20433
|
if (Object.getOwnPropertyDescriptors) {
|
|
20434
20434
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
20435
20435
|
} else {
|
|
20436
|
-
ownKeys$
|
|
20436
|
+
ownKeys$q(Object(source)).forEach(function(key) {
|
|
20437
20437
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
20438
20438
|
});
|
|
20439
20439
|
}
|
|
@@ -20441,7 +20441,7 @@ function _object_spread_props$o(target, source) {
|
|
|
20441
20441
|
}
|
|
20442
20442
|
function FiltersPane(param) {
|
|
20443
20443
|
var data = param.data, tweakStyles = param.tweakStyles, filtersConfig = param.filtersConfig, enabledFilters = param.enabledFilters, _param_values = param.values, values = _param_values === void 0 ? {} : _param_values, localeKey = param.localeKey, locale2 = param.locale, search = param.search, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_hasClearButton = param.hasClearButton, hasClearButton = _param_hasClearButton === void 0 ? true : _param_hasClearButton, _param_shouldRenderDataId = param.shouldRenderDataId, shouldRenderDataId = _param_shouldRenderDataId === void 0 ? false : _param_shouldRenderDataId, testId = param.testId, onChangeFilters = param.onChangeFilters, onSettingsButtonClick = param.onSettingsButtonClick, onClear = param.onClear;
|
|
20444
|
-
var classes = useStyles$
|
|
20444
|
+
var classes = useStyles$w({
|
|
20445
20445
|
theme: tweakStyles
|
|
20446
20446
|
});
|
|
20447
20447
|
var tweakClearButtonStyles = useTweakStyles({
|
|
@@ -20488,11 +20488,11 @@ function FiltersPane(param) {
|
|
|
20488
20488
|
})
|
|
20489
20489
|
});
|
|
20490
20490
|
var _search_localeKey, _search_localeKey1, _search_isDisabled;
|
|
20491
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
20491
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$q(_object_spread$s({
|
|
20492
20492
|
className: classes.root
|
|
20493
20493
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
20494
20494
|
children: [
|
|
20495
|
-
onSettingsButtonClick !== void 0 && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
20495
|
+
onSettingsButtonClick !== void 0 && /* @__PURE__ */ jsx("div", _object_spread_props$q(_object_spread$s({
|
|
20496
20496
|
className: classes.settings,
|
|
20497
20497
|
tabIndex: 0
|
|
20498
20498
|
}, addDataTestId(testId, "settings-button")), {
|
|
@@ -20504,7 +20504,7 @@ function FiltersPane(param) {
|
|
|
20504
20504
|
})
|
|
20505
20505
|
})
|
|
20506
20506
|
})),
|
|
20507
|
-
search !== void 0 && /* @__PURE__ */ jsx(FiltersPaneSearch, _object_spread_props$
|
|
20507
|
+
search !== void 0 && /* @__PURE__ */ jsx(FiltersPaneSearch, _object_spread_props$q(_object_spread$s({}, search), {
|
|
20508
20508
|
locale: getLocale$1((_search_localeKey = search.localeKey) !== null && _search_localeKey !== void 0 ? _search_localeKey : localeKey, search.locale, locale2),
|
|
20509
20509
|
localeKey: (_search_localeKey1 = search.localeKey) !== null && _search_localeKey1 !== void 0 ? _search_localeKey1 : localeKey,
|
|
20510
20510
|
isDisabled: (_search_isDisabled = search.isDisabled) !== null && _search_isDisabled !== void 0 ? _search_isDisabled : isDisabled,
|
|
@@ -20528,7 +20528,7 @@ function FiltersPane(param) {
|
|
|
20528
20528
|
locale: locale2,
|
|
20529
20529
|
localeKey,
|
|
20530
20530
|
onChange: function(value) {
|
|
20531
|
-
return onChangeFilters(_object_spread_props$
|
|
20531
|
+
return onChangeFilters(_object_spread_props$q(_object_spread$s({}, values), _define_property$t({}, filterKey, value)));
|
|
20532
20532
|
},
|
|
20533
20533
|
value: currentValue,
|
|
20534
20534
|
isDisabled: isDisabled || (filter === null || filter === void 0 ? void 0 : (_filter_requiredFilledFilters = filter.requiredFilledFilters) === null || _filter_requiredFilledFilters === void 0 ? void 0 : _filter_requiredFilledFilters.some(function(item) {
|
|
@@ -26673,7 +26673,7 @@ var customFlags = {
|
|
|
26673
26673
|
*/
|
|
26674
26674
|
OS
|
|
26675
26675
|
};
|
|
26676
|
-
var useStyles$
|
|
26676
|
+
var useStyles$n = createThemedStyles("Flag", {
|
|
26677
26677
|
root: {
|
|
26678
26678
|
display: "flex",
|
|
26679
26679
|
width: "100%",
|
|
@@ -26695,7 +26695,7 @@ var useStyles$l = createThemedStyles("Flag", {
|
|
|
26695
26695
|
});
|
|
26696
26696
|
var Flag = function(param) {
|
|
26697
26697
|
var _param_countryCode = param.countryCode, countryCode = _param_countryCode === void 0 ? "" : _param_countryCode, tweakStyles = param.tweakStyles;
|
|
26698
|
-
var classes = useStyles$
|
|
26698
|
+
var classes = useStyles$n({
|
|
26699
26699
|
theme: tweakStyles
|
|
26700
26700
|
});
|
|
26701
26701
|
var countryFlagKey = countryCode.toUpperCase();
|
|
@@ -26742,7 +26742,7 @@ var TableRenders = {
|
|
|
26742
26742
|
Cell: "div"
|
|
26743
26743
|
}
|
|
26744
26744
|
};
|
|
26745
|
-
var useStyles$
|
|
26745
|
+
var useStyles$m = createThemedStyles("Skeleton", {
|
|
26746
26746
|
root: {
|
|
26747
26747
|
display: "flex",
|
|
26748
26748
|
width: "100%",
|
|
@@ -26778,7 +26778,7 @@ var useStyles$k = createThemedStyles("Skeleton", {
|
|
|
26778
26778
|
});
|
|
26779
26779
|
var Skeleton = function(param) {
|
|
26780
26780
|
var height = param.height, tweakStyles = param.tweakStyles;
|
|
26781
|
-
var classes = useStyles$
|
|
26781
|
+
var classes = useStyles$m({
|
|
26782
26782
|
theme: tweakStyles
|
|
26783
26783
|
});
|
|
26784
26784
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -26802,7 +26802,7 @@ var formatCellContent = function(value, config) {
|
|
|
26802
26802
|
var _config_dateFormat;
|
|
26803
26803
|
return _instanceof(value, Date) ? format(value, (_config_dateFormat = config === null || config === void 0 ? void 0 : config.dateFormat) !== null && _config_dateFormat !== void 0 ? _config_dateFormat : DEFAULT_DATE_FORMAT) : String(value);
|
|
26804
26804
|
};
|
|
26805
|
-
function _define_property$
|
|
26805
|
+
function _define_property$s(obj, key, value) {
|
|
26806
26806
|
if (key in obj) {
|
|
26807
26807
|
Object.defineProperty(obj, key, {
|
|
26808
26808
|
value,
|
|
@@ -26815,7 +26815,7 @@ function _define_property$p(obj, key, value) {
|
|
|
26815
26815
|
}
|
|
26816
26816
|
return obj;
|
|
26817
26817
|
}
|
|
26818
|
-
function _object_spread$
|
|
26818
|
+
function _object_spread$r(target) {
|
|
26819
26819
|
for (var i = 1; i < arguments.length; i++) {
|
|
26820
26820
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
26821
26821
|
var ownKeys2 = Object.keys(source);
|
|
@@ -26825,12 +26825,12 @@ function _object_spread$o(target) {
|
|
|
26825
26825
|
}));
|
|
26826
26826
|
}
|
|
26827
26827
|
ownKeys2.forEach(function(key) {
|
|
26828
|
-
_define_property$
|
|
26828
|
+
_define_property$s(target, key, source[key]);
|
|
26829
26829
|
});
|
|
26830
26830
|
}
|
|
26831
26831
|
return target;
|
|
26832
26832
|
}
|
|
26833
|
-
function ownKeys$
|
|
26833
|
+
function ownKeys$p(object, enumerableOnly) {
|
|
26834
26834
|
var keys2 = Object.keys(object);
|
|
26835
26835
|
if (Object.getOwnPropertySymbols) {
|
|
26836
26836
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -26843,19 +26843,19 @@ function ownKeys$n(object, enumerableOnly) {
|
|
|
26843
26843
|
}
|
|
26844
26844
|
return keys2;
|
|
26845
26845
|
}
|
|
26846
|
-
function _object_spread_props$
|
|
26846
|
+
function _object_spread_props$p(target, source) {
|
|
26847
26847
|
source = source != null ? source : {};
|
|
26848
26848
|
if (Object.getOwnPropertyDescriptors) {
|
|
26849
26849
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
26850
26850
|
} else {
|
|
26851
|
-
ownKeys$
|
|
26851
|
+
ownKeys$p(Object(source)).forEach(function(key) {
|
|
26852
26852
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
26853
26853
|
});
|
|
26854
26854
|
}
|
|
26855
26855
|
return target;
|
|
26856
26856
|
}
|
|
26857
26857
|
var STICKY_SHADOW_PADDING = 12;
|
|
26858
|
-
var useStyles$
|
|
26858
|
+
var useStyles$l = createThemedStyles("FlexibleTable", {
|
|
26859
26859
|
flexibleTableWrapper: {},
|
|
26860
26860
|
root: {
|
|
26861
26861
|
width: "100%",
|
|
@@ -26863,7 +26863,7 @@ var useStyles$j = createThemedStyles("FlexibleTable", {
|
|
|
26863
26863
|
borderCollapse: "separate",
|
|
26864
26864
|
borderSpacing: 0
|
|
26865
26865
|
},
|
|
26866
|
-
scroll: _object_spread_props$
|
|
26866
|
+
scroll: _object_spread_props$p(_object_spread$r({}, helpers.withScrollBar), {
|
|
26867
26867
|
/*
|
|
26868
26868
|
Чтобы сделать таблицу на всю высоту проставьте
|
|
26869
26869
|
height у родителя таблицы у себя в проекте.
|
|
@@ -26942,7 +26942,7 @@ var useStyles$j = createThemedStyles("FlexibleTable", {
|
|
|
26942
26942
|
nothingFoundRow: {},
|
|
26943
26943
|
nothingFound: {}
|
|
26944
26944
|
});
|
|
26945
|
-
function _define_property$
|
|
26945
|
+
function _define_property$r(obj, key, value) {
|
|
26946
26946
|
if (key in obj) {
|
|
26947
26947
|
Object.defineProperty(obj, key, {
|
|
26948
26948
|
value,
|
|
@@ -26955,7 +26955,7 @@ function _define_property$o(obj, key, value) {
|
|
|
26955
26955
|
}
|
|
26956
26956
|
return obj;
|
|
26957
26957
|
}
|
|
26958
|
-
function _object_spread$
|
|
26958
|
+
function _object_spread$q(target) {
|
|
26959
26959
|
for (var i = 1; i < arguments.length; i++) {
|
|
26960
26960
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
26961
26961
|
var ownKeys2 = Object.keys(source);
|
|
@@ -26965,12 +26965,12 @@ function _object_spread$n(target) {
|
|
|
26965
26965
|
}));
|
|
26966
26966
|
}
|
|
26967
26967
|
ownKeys2.forEach(function(key) {
|
|
26968
|
-
_define_property$
|
|
26968
|
+
_define_property$r(target, key, source[key]);
|
|
26969
26969
|
});
|
|
26970
26970
|
}
|
|
26971
26971
|
return target;
|
|
26972
26972
|
}
|
|
26973
|
-
function ownKeys$
|
|
26973
|
+
function ownKeys$o(object, enumerableOnly) {
|
|
26974
26974
|
var keys2 = Object.keys(object);
|
|
26975
26975
|
if (Object.getOwnPropertySymbols) {
|
|
26976
26976
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -26983,18 +26983,18 @@ function ownKeys$m(object, enumerableOnly) {
|
|
|
26983
26983
|
}
|
|
26984
26984
|
return keys2;
|
|
26985
26985
|
}
|
|
26986
|
-
function _object_spread_props$
|
|
26986
|
+
function _object_spread_props$o(target, source) {
|
|
26987
26987
|
source = source != null ? source : {};
|
|
26988
26988
|
if (Object.getOwnPropertyDescriptors) {
|
|
26989
26989
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
26990
26990
|
} else {
|
|
26991
|
-
ownKeys$
|
|
26991
|
+
ownKeys$o(Object(source)).forEach(function(key) {
|
|
26992
26992
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
26993
26993
|
});
|
|
26994
26994
|
}
|
|
26995
26995
|
return target;
|
|
26996
26996
|
}
|
|
26997
|
-
var useStyles$
|
|
26997
|
+
var useStyles$k = createThemedStyles("FlexibleTableCell", {
|
|
26998
26998
|
root: {
|
|
26999
26999
|
position: "relative",
|
|
27000
27000
|
boxSizing: "content-box",
|
|
@@ -27007,7 +27007,7 @@ var useStyles$i = createThemedStyles("FlexibleTableCell", {
|
|
|
27007
27007
|
zIndex: 5,
|
|
27008
27008
|
verticalAlign: "top"
|
|
27009
27009
|
},
|
|
27010
|
-
sticky: _object_spread_props$
|
|
27010
|
+
sticky: _object_spread_props$o(_object_spread$q({
|
|
27011
27011
|
zIndex: 19,
|
|
27012
27012
|
paddingLeft: 24,
|
|
27013
27013
|
paddingRight: 12,
|
|
@@ -27030,7 +27030,7 @@ var useStyles$i = createThemedStyles("FlexibleTableCell", {
|
|
|
27030
27030
|
cursor: "pointer"
|
|
27031
27031
|
}
|
|
27032
27032
|
});
|
|
27033
|
-
function _define_property$
|
|
27033
|
+
function _define_property$q(obj, key, value) {
|
|
27034
27034
|
if (key in obj) {
|
|
27035
27035
|
Object.defineProperty(obj, key, {
|
|
27036
27036
|
value,
|
|
@@ -27043,7 +27043,7 @@ function _define_property$n(obj, key, value) {
|
|
|
27043
27043
|
}
|
|
27044
27044
|
return obj;
|
|
27045
27045
|
}
|
|
27046
|
-
function _object_spread$
|
|
27046
|
+
function _object_spread$p(target) {
|
|
27047
27047
|
for (var i = 1; i < arguments.length; i++) {
|
|
27048
27048
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
27049
27049
|
var ownKeys2 = Object.keys(source);
|
|
@@ -27053,12 +27053,12 @@ function _object_spread$m(target) {
|
|
|
27053
27053
|
}));
|
|
27054
27054
|
}
|
|
27055
27055
|
ownKeys2.forEach(function(key) {
|
|
27056
|
-
_define_property$
|
|
27056
|
+
_define_property$q(target, key, source[key]);
|
|
27057
27057
|
});
|
|
27058
27058
|
}
|
|
27059
27059
|
return target;
|
|
27060
27060
|
}
|
|
27061
|
-
function ownKeys$
|
|
27061
|
+
function ownKeys$n(object, enumerableOnly) {
|
|
27062
27062
|
var keys2 = Object.keys(object);
|
|
27063
27063
|
if (Object.getOwnPropertySymbols) {
|
|
27064
27064
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -27071,21 +27071,21 @@ function ownKeys$l(object, enumerableOnly) {
|
|
|
27071
27071
|
}
|
|
27072
27072
|
return keys2;
|
|
27073
27073
|
}
|
|
27074
|
-
function _object_spread_props$
|
|
27074
|
+
function _object_spread_props$n(target, source) {
|
|
27075
27075
|
source = source != null ? source : {};
|
|
27076
27076
|
if (Object.getOwnPropertyDescriptors) {
|
|
27077
27077
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
27078
27078
|
} else {
|
|
27079
|
-
ownKeys$
|
|
27079
|
+
ownKeys$n(Object(source)).forEach(function(key) {
|
|
27080
27080
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
27081
27081
|
});
|
|
27082
27082
|
}
|
|
27083
27083
|
return target;
|
|
27084
27084
|
}
|
|
27085
|
-
function _object_without_properties$
|
|
27085
|
+
function _object_without_properties$a(source, excluded) {
|
|
27086
27086
|
if (source == null)
|
|
27087
27087
|
return {};
|
|
27088
|
-
var target = _object_without_properties_loose$
|
|
27088
|
+
var target = _object_without_properties_loose$a(source, excluded);
|
|
27089
27089
|
var key, i;
|
|
27090
27090
|
if (Object.getOwnPropertySymbols) {
|
|
27091
27091
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -27100,7 +27100,7 @@ function _object_without_properties$8(source, excluded) {
|
|
|
27100
27100
|
}
|
|
27101
27101
|
return target;
|
|
27102
27102
|
}
|
|
27103
|
-
function _object_without_properties_loose$
|
|
27103
|
+
function _object_without_properties_loose$a(source, excluded) {
|
|
27104
27104
|
if (source == null)
|
|
27105
27105
|
return {};
|
|
27106
27106
|
var target = {};
|
|
@@ -27115,7 +27115,7 @@ function _object_without_properties_loose$8(source, excluded) {
|
|
|
27115
27115
|
return target;
|
|
27116
27116
|
}
|
|
27117
27117
|
function FlexibleTableCell(_param) {
|
|
27118
|
-
var row = _param.row, columnName = _param.columnName, config = _param.config, renderMode = _param.renderMode, isSecond = _param.isSecond, isOldSticky = _param.isSticky, isLoading = _param.isLoading, tweakStyles = _param.tweakStyles, valueComponentProps = _object_without_properties$
|
|
27118
|
+
var row = _param.row, columnName = _param.columnName, config = _param.config, renderMode = _param.renderMode, isSecond = _param.isSecond, isOldSticky = _param.isSticky, isLoading = _param.isLoading, tweakStyles = _param.tweakStyles, valueComponentProps = _object_without_properties$a(_param, [
|
|
27119
27119
|
"row",
|
|
27120
27120
|
"columnName",
|
|
27121
27121
|
"config",
|
|
@@ -27125,7 +27125,7 @@ function FlexibleTableCell(_param) {
|
|
|
27125
27125
|
"isLoading",
|
|
27126
27126
|
"tweakStyles"
|
|
27127
27127
|
]);
|
|
27128
|
-
var classes = useStyles$
|
|
27128
|
+
var classes = useStyles$k({
|
|
27129
27129
|
theme: tweakStyles
|
|
27130
27130
|
});
|
|
27131
27131
|
var value = row[columnName];
|
|
@@ -27133,14 +27133,14 @@ function FlexibleTableCell(_param) {
|
|
|
27133
27133
|
var _ref = (_config_columnName = config[columnName]) !== null && _config_columnName !== void 0 ? _config_columnName : {}, _ref_component = _ref.component, component = _ref_component === void 0 ? formatCellContent(value, config[columnName]) : _ref_component, width = _ref.width, maxWidth = _ref.maxWidth, minWidth = _ref.minWidth, left2 = _ref.left, right2 = _ref.right, position = _ref.position, cellAlign = _ref.cellAlign, cellVerticalAlign = _ref.cellVerticalAlign, shouldRenderDataId = _ref.shouldRenderDataId, _ref_shouldRenderComponent = _ref.shouldRenderComponent, shouldRenderComponent = _ref_shouldRenderComponent === void 0 ? isNotEmpty : _ref_shouldRenderComponent, onCellClick = _ref.onCellClick;
|
|
27134
27134
|
var isSticky = isOldSticky || position === "sticky";
|
|
27135
27135
|
var isClickable = !isLoading && isNotEmpty(onCellClick);
|
|
27136
|
-
var cellComponentProps = _object_spread_props$
|
|
27136
|
+
var cellComponentProps = _object_spread_props$n(_object_spread$p({}, valueComponentProps), {
|
|
27137
27137
|
value,
|
|
27138
27138
|
row
|
|
27139
27139
|
});
|
|
27140
27140
|
var Table = TableRenders[renderMode];
|
|
27141
27141
|
var _obj2;
|
|
27142
|
-
return /* @__PURE__ */ jsx(Table.Cell, _object_spread_props$
|
|
27143
|
-
className: clsx(classes.root, (_obj2 = {}, _define_property$
|
|
27142
|
+
return /* @__PURE__ */ jsx(Table.Cell, _object_spread_props$n(_object_spread$p({
|
|
27143
|
+
className: clsx(classes.root, (_obj2 = {}, _define_property$q(_obj2, classes.sticky, isSticky), _define_property$q(_obj2, classes.second, isSecond), _define_property$q(_obj2, classes.loading, isLoading), _define_property$q(_obj2, classes.clickable, isClickable), _obj2)),
|
|
27144
27144
|
style: {
|
|
27145
27145
|
textAlign: cellAlign,
|
|
27146
27146
|
position: isSticky ? "sticky" : position,
|
|
@@ -27163,7 +27163,7 @@ function FlexibleTableCell(_param) {
|
|
|
27163
27163
|
}) : applyAction(shouldRenderComponent, value, row, columnName) && applyAction(component, cellComponentProps)
|
|
27164
27164
|
}));
|
|
27165
27165
|
}
|
|
27166
|
-
var useStyles$
|
|
27166
|
+
var useStyles$j = createThemedStyles("FlexibleTableRow", {
|
|
27167
27167
|
root: {
|
|
27168
27168
|
position: "relative"
|
|
27169
27169
|
},
|
|
@@ -27187,7 +27187,7 @@ function _array_with_holes$7(arr) {
|
|
|
27187
27187
|
if (Array.isArray(arr))
|
|
27188
27188
|
return arr;
|
|
27189
27189
|
}
|
|
27190
|
-
function _define_property$
|
|
27190
|
+
function _define_property$p(obj, key, value) {
|
|
27191
27191
|
if (key in obj) {
|
|
27192
27192
|
Object.defineProperty(obj, key, {
|
|
27193
27193
|
value,
|
|
@@ -27231,7 +27231,7 @@ function _iterable_to_array_limit$7(arr, i) {
|
|
|
27231
27231
|
function _non_iterable_rest$7() {
|
|
27232
27232
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
27233
27233
|
}
|
|
27234
|
-
function _object_spread$
|
|
27234
|
+
function _object_spread$o(target) {
|
|
27235
27235
|
for (var i = 1; i < arguments.length; i++) {
|
|
27236
27236
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
27237
27237
|
var ownKeys2 = Object.keys(source);
|
|
@@ -27241,12 +27241,12 @@ function _object_spread$l(target) {
|
|
|
27241
27241
|
}));
|
|
27242
27242
|
}
|
|
27243
27243
|
ownKeys2.forEach(function(key) {
|
|
27244
|
-
_define_property$
|
|
27244
|
+
_define_property$p(target, key, source[key]);
|
|
27245
27245
|
});
|
|
27246
27246
|
}
|
|
27247
27247
|
return target;
|
|
27248
27248
|
}
|
|
27249
|
-
function ownKeys$
|
|
27249
|
+
function ownKeys$m(object, enumerableOnly) {
|
|
27250
27250
|
var keys2 = Object.keys(object);
|
|
27251
27251
|
if (Object.getOwnPropertySymbols) {
|
|
27252
27252
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -27259,12 +27259,12 @@ function ownKeys$k(object, enumerableOnly) {
|
|
|
27259
27259
|
}
|
|
27260
27260
|
return keys2;
|
|
27261
27261
|
}
|
|
27262
|
-
function _object_spread_props$
|
|
27262
|
+
function _object_spread_props$m(target, source) {
|
|
27263
27263
|
source = source != null ? source : {};
|
|
27264
27264
|
if (Object.getOwnPropertyDescriptors) {
|
|
27265
27265
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
27266
27266
|
} else {
|
|
27267
|
-
ownKeys$
|
|
27267
|
+
ownKeys$m(Object(source)).forEach(function(key) {
|
|
27268
27268
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
27269
27269
|
});
|
|
27270
27270
|
}
|
|
@@ -27288,7 +27288,7 @@ function _unsupported_iterable_to_array$7(o, minLen) {
|
|
|
27288
27288
|
}
|
|
27289
27289
|
function FlexibleTableRowInner(param) {
|
|
27290
27290
|
var item = param.item, config = param.config, columns = param.columns, uniqueField = param.uniqueField, renderMode = param.renderMode, _param_isActive = param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isFocusable = param.isFocusable, isFocusable = _param_isFocusable === void 0 ? false : _param_isFocusable, _param_isFirstColumnSticky = param.isFirstColumnSticky, isFirstColumnSticky = _param_isFirstColumnSticky === void 0 ? false : _param_isFirstColumnSticky, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, rowAttributes = param.rowAttributes, _param_isExpandableRowComponentInitiallyOpen = param.isExpandableRowComponentInitiallyOpen, isExpandableRowComponentInitiallyOpen = _param_isExpandableRowComponentInitiallyOpen === void 0 ? false : _param_isExpandableRowComponentInitiallyOpen, rowRef = param.rowRef, tweakStyles = param.tweakStyles, expandableRowComponent = param.expandableRowComponent, onRowHover = param.onRowHover, onRowClick = param.onRowClick;
|
|
27291
|
-
var classes = useStyles$
|
|
27291
|
+
var classes = useStyles$j({
|
|
27292
27292
|
theme: tweakStyles
|
|
27293
27293
|
});
|
|
27294
27294
|
var tweakTableCellStyles = useTweakStyles({
|
|
@@ -27363,14 +27363,14 @@ function FlexibleTableRowInner(param) {
|
|
|
27363
27363
|
var _obj2;
|
|
27364
27364
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
27365
27365
|
children: [
|
|
27366
|
-
/* @__PURE__ */ jsx(Table.Row, _object_spread_props$
|
|
27366
|
+
/* @__PURE__ */ jsx(Table.Row, _object_spread_props$m(_object_spread$o({
|
|
27367
27367
|
ref: rowRef,
|
|
27368
|
-
className: clsx(classes.root, (_obj2 = {}, _define_property$
|
|
27368
|
+
className: clsx(classes.root, (_obj2 = {}, _define_property$p(_obj2, classes.active, isActive), _define_property$p(_obj2, classes.editable, isEditable), _define_property$p(_obj2, classes.clickable, isClickable), _obj2))
|
|
27369
27369
|
}, !isLoading && {
|
|
27370
27370
|
onClick: handleRowClick,
|
|
27371
27371
|
onMouseEnter: handleMouseEnter,
|
|
27372
27372
|
onMouseLeave: handleMouseLeave
|
|
27373
|
-
}, addDataAttributes(_object_spread_props$
|
|
27373
|
+
}, addDataAttributes(_object_spread_props$m(_object_spread$o({}, rowData), {
|
|
27374
27374
|
active: isActive ? true : void 0,
|
|
27375
27375
|
editable: isEditable ? true : void 0,
|
|
27376
27376
|
isExpandableComponentActive: isNestedComponentExpanded ? true : void 0
|
|
@@ -27407,7 +27407,7 @@ function FlexibleTableRowInner(param) {
|
|
|
27407
27407
|
});
|
|
27408
27408
|
}
|
|
27409
27409
|
var FlexibleTableRow = /* @__PURE__ */ memo(FlexibleTableRowInner);
|
|
27410
|
-
function _define_property$
|
|
27410
|
+
function _define_property$o(obj, key, value) {
|
|
27411
27411
|
if (key in obj) {
|
|
27412
27412
|
Object.defineProperty(obj, key, {
|
|
27413
27413
|
value,
|
|
@@ -27420,7 +27420,7 @@ function _define_property$l(obj, key, value) {
|
|
|
27420
27420
|
}
|
|
27421
27421
|
return obj;
|
|
27422
27422
|
}
|
|
27423
|
-
function _object_spread$
|
|
27423
|
+
function _object_spread$n(target) {
|
|
27424
27424
|
for (var i = 1; i < arguments.length; i++) {
|
|
27425
27425
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
27426
27426
|
var ownKeys2 = Object.keys(source);
|
|
@@ -27430,12 +27430,12 @@ function _object_spread$k(target) {
|
|
|
27430
27430
|
}));
|
|
27431
27431
|
}
|
|
27432
27432
|
ownKeys2.forEach(function(key) {
|
|
27433
|
-
_define_property$
|
|
27433
|
+
_define_property$o(target, key, source[key]);
|
|
27434
27434
|
});
|
|
27435
27435
|
}
|
|
27436
27436
|
return target;
|
|
27437
27437
|
}
|
|
27438
|
-
function ownKeys$
|
|
27438
|
+
function ownKeys$l(object, enumerableOnly) {
|
|
27439
27439
|
var keys2 = Object.keys(object);
|
|
27440
27440
|
if (Object.getOwnPropertySymbols) {
|
|
27441
27441
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -27448,21 +27448,21 @@ function ownKeys$j(object, enumerableOnly) {
|
|
|
27448
27448
|
}
|
|
27449
27449
|
return keys2;
|
|
27450
27450
|
}
|
|
27451
|
-
function _object_spread_props$
|
|
27451
|
+
function _object_spread_props$l(target, source) {
|
|
27452
27452
|
source = source != null ? source : {};
|
|
27453
27453
|
if (Object.getOwnPropertyDescriptors) {
|
|
27454
27454
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
27455
27455
|
} else {
|
|
27456
|
-
ownKeys$
|
|
27456
|
+
ownKeys$l(Object(source)).forEach(function(key) {
|
|
27457
27457
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
27458
27458
|
});
|
|
27459
27459
|
}
|
|
27460
27460
|
return target;
|
|
27461
27461
|
}
|
|
27462
|
-
function _object_without_properties$
|
|
27462
|
+
function _object_without_properties$9(source, excluded) {
|
|
27463
27463
|
if (source == null)
|
|
27464
27464
|
return {};
|
|
27465
|
-
var target = _object_without_properties_loose$
|
|
27465
|
+
var target = _object_without_properties_loose$9(source, excluded);
|
|
27466
27466
|
var key, i;
|
|
27467
27467
|
if (Object.getOwnPropertySymbols) {
|
|
27468
27468
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -27477,7 +27477,7 @@ function _object_without_properties$7(source, excluded) {
|
|
|
27477
27477
|
}
|
|
27478
27478
|
return target;
|
|
27479
27479
|
}
|
|
27480
|
-
function _object_without_properties_loose$
|
|
27480
|
+
function _object_without_properties_loose$9(source, excluded) {
|
|
27481
27481
|
if (source == null)
|
|
27482
27482
|
return {};
|
|
27483
27483
|
var target = {};
|
|
@@ -27492,7 +27492,7 @@ function _object_without_properties_loose$7(source, excluded) {
|
|
|
27492
27492
|
return target;
|
|
27493
27493
|
}
|
|
27494
27494
|
function FlexibleTable(_param) {
|
|
27495
|
-
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, infinityScrollConfig = _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$
|
|
27495
|
+
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, infinityScrollConfig = _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$9(_param, [
|
|
27496
27496
|
"content",
|
|
27497
27497
|
"headerContent",
|
|
27498
27498
|
"config",
|
|
@@ -27514,7 +27514,7 @@ function FlexibleTable(_param) {
|
|
|
27514
27514
|
"onHeadClick",
|
|
27515
27515
|
"isExpandableRowComponentInitiallyOpen"
|
|
27516
27516
|
]);
|
|
27517
|
-
var classes = useStyles$
|
|
27517
|
+
var classes = useStyles$l({
|
|
27518
27518
|
theme: tweakStyles
|
|
27519
27519
|
});
|
|
27520
27520
|
var tweakTableRowStyles = useTweakStyles({
|
|
@@ -27532,7 +27532,7 @@ function FlexibleTable(_param) {
|
|
|
27532
27532
|
]);
|
|
27533
27533
|
var hasInfiniteScroll = isNotEmpty(infinityScrollConfig);
|
|
27534
27534
|
var getTableRowProps = function(item, index) {
|
|
27535
|
-
return _object_spread_props$
|
|
27535
|
+
return _object_spread_props$l(_object_spread$n({}, restProps), {
|
|
27536
27536
|
item,
|
|
27537
27537
|
renderMode,
|
|
27538
27538
|
config,
|
|
@@ -27627,10 +27627,10 @@ function FlexibleTable(_param) {
|
|
|
27627
27627
|
var Table = TableRenders[renderMode];
|
|
27628
27628
|
return /* @__PURE__ */ jsx("div", {
|
|
27629
27629
|
ref,
|
|
27630
|
-
className: clsx(classes.flexibleTableWrapper, _define_property$
|
|
27631
|
-
children: /* @__PURE__ */ jsxs(Table.Root, _object_spread_props$
|
|
27630
|
+
className: clsx(classes.flexibleTableWrapper, _define_property$o({}, classes.scroll, isHorizontallyScrollable)),
|
|
27631
|
+
children: /* @__PURE__ */ jsxs(Table.Root, _object_spread_props$l(_object_spread$n({
|
|
27632
27632
|
className: classes.root
|
|
27633
|
-
}, addDataTestId(testId), addDataAttributes(_object_spread_props$
|
|
27633
|
+
}, addDataTestId(testId), addDataAttributes(_object_spread_props$l(_object_spread$n({}, data), {
|
|
27634
27634
|
isLoading
|
|
27635
27635
|
}))), {
|
|
27636
27636
|
children: [
|
|
@@ -27643,8 +27643,8 @@ function FlexibleTable(_param) {
|
|
|
27643
27643
|
var _ref = (_config_key = config === null || config === void 0 ? void 0 : config[key]) !== null && _config_key !== void 0 ? _config_key : {}, position = _ref.position, minWidth = _ref.minWidth, width = _ref.width, maxWidth = _ref.maxWidth, _ref_titleAlign = _ref.titleAlign, titleAlign = _ref_titleAlign === void 0 ? "left" : _ref_titleAlign, right2 = _ref.right, left2 = _ref.left, _ref_title = _ref.title, title = _ref_title === void 0 ? "" : _ref_title, shouldRenderDataId = _ref.shouldRenderDataId;
|
|
27644
27644
|
var isSticky = position === "sticky" || isFirstColumnSticky && i === 0;
|
|
27645
27645
|
var _obj2;
|
|
27646
|
-
return /* @__PURE__ */ jsx(Table.Header, _object_spread_props$
|
|
27647
|
-
className: clsx(classes.header, (_obj2 = {}, _define_property$
|
|
27646
|
+
return /* @__PURE__ */ jsx(Table.Header, _object_spread_props$l(_object_spread$n({
|
|
27647
|
+
className: clsx(classes.header, (_obj2 = {}, _define_property$o(_obj2, classes.headerSticky, isSticky), _define_property$o(_obj2, classes.headerSecond, isFirstColumnSticky && i === 1), _obj2)),
|
|
27648
27648
|
style: {
|
|
27649
27649
|
minWidth,
|
|
27650
27650
|
width,
|
|
@@ -27670,7 +27670,7 @@ function FlexibleTable(_param) {
|
|
|
27670
27670
|
/* @__PURE__ */ jsx(Table.Body, {
|
|
27671
27671
|
className: classes.body,
|
|
27672
27672
|
children: isLoading ? indexMap(6, function(i) {
|
|
27673
|
-
return /* @__PURE__ */ createElement(FlexibleTableRow, _object_spread_props$
|
|
27673
|
+
return /* @__PURE__ */ createElement(FlexibleTableRow, _object_spread_props$l(_object_spread$n({}, getTableRowProps({}, i)), {
|
|
27674
27674
|
key: i
|
|
27675
27675
|
}));
|
|
27676
27676
|
}) : /* @__PURE__ */ jsxs(Fragment, {
|
|
@@ -27684,7 +27684,7 @@ function FlexibleTable(_param) {
|
|
|
27684
27684
|
})
|
|
27685
27685
|
}),
|
|
27686
27686
|
content.map(function(item, i) {
|
|
27687
|
-
return /* @__PURE__ */ createElement(FlexibleTableRow, _object_spread_props$
|
|
27687
|
+
return /* @__PURE__ */ createElement(FlexibleTableRow, _object_spread_props$l(_object_spread$n({}, getTableRowProps(item, i)), {
|
|
27688
27688
|
isActive: activeRowsSet.has(i),
|
|
27689
27689
|
key: isNotEmpty(uniqueField) ? item[uniqueField] : i
|
|
27690
27690
|
}));
|
|
@@ -27710,6 +27710,280 @@ function FlexibleTable(_param) {
|
|
|
27710
27710
|
}))
|
|
27711
27711
|
});
|
|
27712
27712
|
}
|
|
27713
|
+
var useStyles$i = createThemedStyles("DocActions", {
|
|
27714
|
+
docActions: {
|
|
27715
|
+
display: "grid",
|
|
27716
|
+
alignItems: "center",
|
|
27717
|
+
gridTemplateColumns: "max-content 1fr"
|
|
27718
|
+
},
|
|
27719
|
+
neutral: {},
|
|
27720
|
+
inverse: {},
|
|
27721
|
+
counterWrapper: {},
|
|
27722
|
+
title: {},
|
|
27723
|
+
actionsWrapper: {
|
|
27724
|
+
justifySelf: "end"
|
|
27725
|
+
}
|
|
27726
|
+
});
|
|
27727
|
+
function _define_property$n(obj, key, value) {
|
|
27728
|
+
if (key in obj) {
|
|
27729
|
+
Object.defineProperty(obj, key, {
|
|
27730
|
+
value,
|
|
27731
|
+
enumerable: true,
|
|
27732
|
+
configurable: true,
|
|
27733
|
+
writable: true
|
|
27734
|
+
});
|
|
27735
|
+
} else {
|
|
27736
|
+
obj[key] = value;
|
|
27737
|
+
}
|
|
27738
|
+
return obj;
|
|
27739
|
+
}
|
|
27740
|
+
function _object_spread$m(target) {
|
|
27741
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
27742
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
27743
|
+
var ownKeys2 = Object.keys(source);
|
|
27744
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
27745
|
+
ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
27746
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
27747
|
+
}));
|
|
27748
|
+
}
|
|
27749
|
+
ownKeys2.forEach(function(key) {
|
|
27750
|
+
_define_property$n(target, key, source[key]);
|
|
27751
|
+
});
|
|
27752
|
+
}
|
|
27753
|
+
return target;
|
|
27754
|
+
}
|
|
27755
|
+
function ownKeys$k(object, enumerableOnly) {
|
|
27756
|
+
var keys2 = Object.keys(object);
|
|
27757
|
+
if (Object.getOwnPropertySymbols) {
|
|
27758
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
27759
|
+
if (enumerableOnly) {
|
|
27760
|
+
symbols = symbols.filter(function(sym) {
|
|
27761
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
27762
|
+
});
|
|
27763
|
+
}
|
|
27764
|
+
keys2.push.apply(keys2, symbols);
|
|
27765
|
+
}
|
|
27766
|
+
return keys2;
|
|
27767
|
+
}
|
|
27768
|
+
function _object_spread_props$k(target, source) {
|
|
27769
|
+
source = source != null ? source : {};
|
|
27770
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
27771
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
27772
|
+
} else {
|
|
27773
|
+
ownKeys$k(Object(source)).forEach(function(key) {
|
|
27774
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
27775
|
+
});
|
|
27776
|
+
}
|
|
27777
|
+
return target;
|
|
27778
|
+
}
|
|
27779
|
+
function _object_without_properties$8(source, excluded) {
|
|
27780
|
+
if (source == null)
|
|
27781
|
+
return {};
|
|
27782
|
+
var target = _object_without_properties_loose$8(source, excluded);
|
|
27783
|
+
var key, i;
|
|
27784
|
+
if (Object.getOwnPropertySymbols) {
|
|
27785
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
27786
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
27787
|
+
key = sourceSymbolKeys[i];
|
|
27788
|
+
if (excluded.indexOf(key) >= 0)
|
|
27789
|
+
continue;
|
|
27790
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
27791
|
+
continue;
|
|
27792
|
+
target[key] = source[key];
|
|
27793
|
+
}
|
|
27794
|
+
}
|
|
27795
|
+
return target;
|
|
27796
|
+
}
|
|
27797
|
+
function _object_without_properties_loose$8(source, excluded) {
|
|
27798
|
+
if (source == null)
|
|
27799
|
+
return {};
|
|
27800
|
+
var target = {};
|
|
27801
|
+
var sourceKeys = Object.keys(source);
|
|
27802
|
+
var key, i;
|
|
27803
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
27804
|
+
key = sourceKeys[i];
|
|
27805
|
+
if (excluded.indexOf(key) >= 0)
|
|
27806
|
+
continue;
|
|
27807
|
+
target[key] = source[key];
|
|
27808
|
+
}
|
|
27809
|
+
return target;
|
|
27810
|
+
}
|
|
27811
|
+
var DocActions = function(_param) {
|
|
27812
|
+
var title = _param.title, _param_view = _param.view, view = _param_view === void 0 ? "neutral" : _param_view, children = _param.children, tweakStyles = _param.tweakStyles, checkBoxProps = _object_without_properties$8(_param, [
|
|
27813
|
+
"title",
|
|
27814
|
+
"view",
|
|
27815
|
+
"children",
|
|
27816
|
+
"tweakStyles"
|
|
27817
|
+
]);
|
|
27818
|
+
var classes = useStyles$i({
|
|
27819
|
+
theme: tweakStyles
|
|
27820
|
+
});
|
|
27821
|
+
var tweakCheckboxStyles = useTweakStyles({
|
|
27822
|
+
tweakStyles,
|
|
27823
|
+
className: "tweakCheckbox",
|
|
27824
|
+
currentComponentName: "DocActions"
|
|
27825
|
+
});
|
|
27826
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
27827
|
+
className: clsx(classes.docActions, classes[view]),
|
|
27828
|
+
children: [
|
|
27829
|
+
/* @__PURE__ */ jsx("div", {
|
|
27830
|
+
className: classes.counterWrapper,
|
|
27831
|
+
children: /* @__PURE__ */ jsx(Checkbox, _object_spread_props$k(_object_spread$m({
|
|
27832
|
+
tweakStyles: tweakCheckboxStyles
|
|
27833
|
+
}, checkBoxProps), {
|
|
27834
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
27835
|
+
className: classes.title,
|
|
27836
|
+
children: title
|
|
27837
|
+
})
|
|
27838
|
+
}))
|
|
27839
|
+
}),
|
|
27840
|
+
/* @__PURE__ */ jsx("div", {
|
|
27841
|
+
className: classes.actionsWrapper,
|
|
27842
|
+
children
|
|
27843
|
+
})
|
|
27844
|
+
]
|
|
27845
|
+
});
|
|
27846
|
+
};
|
|
27847
|
+
var DOC_ACTIONS_VIEWS = [
|
|
27848
|
+
"neutral",
|
|
27849
|
+
"inverse"
|
|
27850
|
+
];
|
|
27851
|
+
var DEFAULT_TIMEOUT$1 = 150;
|
|
27852
|
+
function _define_property$m(obj, key, value) {
|
|
27853
|
+
if (key in obj) {
|
|
27854
|
+
Object.defineProperty(obj, key, {
|
|
27855
|
+
value,
|
|
27856
|
+
enumerable: true,
|
|
27857
|
+
configurable: true,
|
|
27858
|
+
writable: true
|
|
27859
|
+
});
|
|
27860
|
+
} else {
|
|
27861
|
+
obj[key] = value;
|
|
27862
|
+
}
|
|
27863
|
+
return obj;
|
|
27864
|
+
}
|
|
27865
|
+
function _object_spread$l(target) {
|
|
27866
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
27867
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
27868
|
+
var ownKeys2 = Object.keys(source);
|
|
27869
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
27870
|
+
ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
27871
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
27872
|
+
}));
|
|
27873
|
+
}
|
|
27874
|
+
ownKeys2.forEach(function(key) {
|
|
27875
|
+
_define_property$m(target, key, source[key]);
|
|
27876
|
+
});
|
|
27877
|
+
}
|
|
27878
|
+
return target;
|
|
27879
|
+
}
|
|
27880
|
+
var useStyles$h = createUseStyles(_object_spread$l({}, animations.slideUp));
|
|
27881
|
+
function _define_property$l(obj, key, value) {
|
|
27882
|
+
if (key in obj) {
|
|
27883
|
+
Object.defineProperty(obj, key, {
|
|
27884
|
+
value,
|
|
27885
|
+
enumerable: true,
|
|
27886
|
+
configurable: true,
|
|
27887
|
+
writable: true
|
|
27888
|
+
});
|
|
27889
|
+
} else {
|
|
27890
|
+
obj[key] = value;
|
|
27891
|
+
}
|
|
27892
|
+
return obj;
|
|
27893
|
+
}
|
|
27894
|
+
function _object_spread$k(target) {
|
|
27895
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
27896
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
27897
|
+
var ownKeys2 = Object.keys(source);
|
|
27898
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
27899
|
+
ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
27900
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
27901
|
+
}));
|
|
27902
|
+
}
|
|
27903
|
+
ownKeys2.forEach(function(key) {
|
|
27904
|
+
_define_property$l(target, key, source[key]);
|
|
27905
|
+
});
|
|
27906
|
+
}
|
|
27907
|
+
return target;
|
|
27908
|
+
}
|
|
27909
|
+
function ownKeys$j(object, enumerableOnly) {
|
|
27910
|
+
var keys2 = Object.keys(object);
|
|
27911
|
+
if (Object.getOwnPropertySymbols) {
|
|
27912
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
27913
|
+
if (enumerableOnly) {
|
|
27914
|
+
symbols = symbols.filter(function(sym) {
|
|
27915
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
27916
|
+
});
|
|
27917
|
+
}
|
|
27918
|
+
keys2.push.apply(keys2, symbols);
|
|
27919
|
+
}
|
|
27920
|
+
return keys2;
|
|
27921
|
+
}
|
|
27922
|
+
function _object_spread_props$j(target, source) {
|
|
27923
|
+
source = source != null ? source : {};
|
|
27924
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
27925
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
27926
|
+
} else {
|
|
27927
|
+
ownKeys$j(Object(source)).forEach(function(key) {
|
|
27928
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
27929
|
+
});
|
|
27930
|
+
}
|
|
27931
|
+
return target;
|
|
27932
|
+
}
|
|
27933
|
+
function _object_without_properties$7(source, excluded) {
|
|
27934
|
+
if (source == null)
|
|
27935
|
+
return {};
|
|
27936
|
+
var target = _object_without_properties_loose$7(source, excluded);
|
|
27937
|
+
var key, i;
|
|
27938
|
+
if (Object.getOwnPropertySymbols) {
|
|
27939
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
27940
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
27941
|
+
key = sourceSymbolKeys[i];
|
|
27942
|
+
if (excluded.indexOf(key) >= 0)
|
|
27943
|
+
continue;
|
|
27944
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
27945
|
+
continue;
|
|
27946
|
+
target[key] = source[key];
|
|
27947
|
+
}
|
|
27948
|
+
}
|
|
27949
|
+
return target;
|
|
27950
|
+
}
|
|
27951
|
+
function _object_without_properties_loose$7(source, excluded) {
|
|
27952
|
+
if (source == null)
|
|
27953
|
+
return {};
|
|
27954
|
+
var target = {};
|
|
27955
|
+
var sourceKeys = Object.keys(source);
|
|
27956
|
+
var key, i;
|
|
27957
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
27958
|
+
key = sourceKeys[i];
|
|
27959
|
+
if (excluded.indexOf(key) >= 0)
|
|
27960
|
+
continue;
|
|
27961
|
+
target[key] = source[key];
|
|
27962
|
+
}
|
|
27963
|
+
return target;
|
|
27964
|
+
}
|
|
27965
|
+
var FloatDocActions = function(_param) {
|
|
27966
|
+
var isOpen = _param.isOpen, children = _param.children, docActionsProps = _object_without_properties$7(_param, [
|
|
27967
|
+
"isOpen",
|
|
27968
|
+
"children"
|
|
27969
|
+
]);
|
|
27970
|
+
var classes = useStyles$h();
|
|
27971
|
+
return /* @__PURE__ */ jsx(CSSTransition, {
|
|
27972
|
+
in: isOpen,
|
|
27973
|
+
timeout: DEFAULT_TIMEOUT$1,
|
|
27974
|
+
mountOnEnter: true,
|
|
27975
|
+
unmountOnExit: true,
|
|
27976
|
+
classNames: {
|
|
27977
|
+
enter: classes["slide-up-enter"],
|
|
27978
|
+
enterActive: classes["slide-up-enter-active"],
|
|
27979
|
+
exit: classes["slide-up-exit"],
|
|
27980
|
+
exitActive: classes["slide-up-exit-active"]
|
|
27981
|
+
},
|
|
27982
|
+
children: /* @__PURE__ */ jsx(DocActions, _object_spread_props$j(_object_spread$k({}, docActionsProps), {
|
|
27983
|
+
children
|
|
27984
|
+
}))
|
|
27985
|
+
});
|
|
27986
|
+
};
|
|
27713
27987
|
var BUTTONS_WIDTH = 36;
|
|
27714
27988
|
var BUTTONS_GAP = 2;
|
|
27715
27989
|
var useStyles$g = createThemedStyles("IncrementInput", {
|
|
@@ -32392,9 +32666,11 @@ export {
|
|
|
32392
32666
|
Colors,
|
|
32393
32667
|
CssBaseline,
|
|
32394
32668
|
DEFAULT_PHONE_MASK,
|
|
32669
|
+
DOC_ACTIONS_VIEWS,
|
|
32395
32670
|
DateInput,
|
|
32396
32671
|
DatePicker,
|
|
32397
32672
|
Description,
|
|
32673
|
+
DocActions,
|
|
32398
32674
|
EMPTY_DATE_INPUT_VALUE,
|
|
32399
32675
|
EMPTY_DATE_RANGE_INPUT_VALUE,
|
|
32400
32676
|
FileInput,
|
|
@@ -32411,6 +32687,7 @@ export {
|
|
|
32411
32687
|
FiltersPaneSearch,
|
|
32412
32688
|
Flag,
|
|
32413
32689
|
FlexibleTable,
|
|
32690
|
+
FloatDocActions,
|
|
32414
32691
|
Icon,
|
|
32415
32692
|
IconButton,
|
|
32416
32693
|
IncrementInput,
|