@true-engineering/true-react-common-ui-kit 4.0.0-alpha37 → 4.0.0-alpha39
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/FiltersPane/components/FilterInterval/FilterInterval.d.ts +3 -11
- package/dist/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.d.ts +2 -1
- package/dist/components/FiltersPane/types.d.ts +2 -0
- package/dist/components/FlexibleTable/FlexibleTable.styles.d.ts +1 -1
- package/dist/components/FloatDocActions/FloatDocActions.d.ts +6 -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/IconButton/IconButton.styles.d.ts +1 -1
- package/dist/components/IconButton/constants.d.ts +1 -1
- package/dist/components/Input/InputBase.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 +920 -595
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +920 -595
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/package.json +4 -3
- package/src/components/FiltersPane/FiltersPane.stories.tsx +4 -0
- package/src/components/FiltersPane/components/FilterInterval/FilterInterval.tsx +5 -17
- package/src/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.tsx +3 -0
- package/src/components/FiltersPane/types.ts +6 -0
- package/src/components/FlexibleTable/FlexibleTable.styles.ts +4 -2
- package/src/components/FlexibleTable/FlexibleTable.tsx +4 -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/IconButton/IconButton.styles.ts +15 -13
- package/src/components/IconButton/constants.ts +1 -1
- package/src/components/Input/InputBase.tsx +3 -3
- package/src/components/index.ts +1 -0
- package/src/theme/types.ts +2 -0
|
@@ -1320,7 +1320,7 @@
|
|
|
1320
1320
|
_defineProperties$2(Constructor, staticProps);
|
|
1321
1321
|
return Constructor;
|
|
1322
1322
|
}
|
|
1323
|
-
function _define_property$
|
|
1323
|
+
function _define_property$1f(obj, key, value) {
|
|
1324
1324
|
if (key in obj) {
|
|
1325
1325
|
Object.defineProperty(obj, key, {
|
|
1326
1326
|
value,
|
|
@@ -1371,7 +1371,7 @@
|
|
|
1371
1371
|
function _non_iterable_spread$c() {
|
|
1372
1372
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1373
1373
|
}
|
|
1374
|
-
function _object_spread$
|
|
1374
|
+
function _object_spread$1c(target) {
|
|
1375
1375
|
for (var i = 1; i < arguments.length; i++) {
|
|
1376
1376
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1377
1377
|
var ownKeys2 = Object.keys(source);
|
|
@@ -1381,7 +1381,7 @@
|
|
|
1381
1381
|
}));
|
|
1382
1382
|
}
|
|
1383
1383
|
ownKeys2.forEach(function(key) {
|
|
1384
|
-
_define_property$
|
|
1384
|
+
_define_property$1f(target, key, source[key]);
|
|
1385
1385
|
});
|
|
1386
1386
|
}
|
|
1387
1387
|
return target;
|
|
@@ -1513,7 +1513,7 @@
|
|
|
1513
1513
|
first
|
|
1514
1514
|
].concat(_to_consumable_array$c(rest))) : first;
|
|
1515
1515
|
var rules = this.addRules(styles);
|
|
1516
|
-
var classes = _object_spread$
|
|
1516
|
+
var classes = _object_spread$1c({}, _class_private_field_get$1(this, _classes));
|
|
1517
1517
|
rules.forEach(function(rule, key) {
|
|
1518
1518
|
classes[key] = trueReactPlatformHelpers.joinStrings([
|
|
1519
1519
|
classes[key],
|
|
@@ -1648,7 +1648,7 @@
|
|
|
1648
1648
|
_defineProperties$1(Constructor, staticProps);
|
|
1649
1649
|
return Constructor;
|
|
1650
1650
|
}
|
|
1651
|
-
function _define_property$
|
|
1651
|
+
function _define_property$1e(obj, key, value) {
|
|
1652
1652
|
if (key in obj) {
|
|
1653
1653
|
Object.defineProperty(obj, key, {
|
|
1654
1654
|
value,
|
|
@@ -1661,7 +1661,7 @@
|
|
|
1661
1661
|
}
|
|
1662
1662
|
return obj;
|
|
1663
1663
|
}
|
|
1664
|
-
function _object_spread$
|
|
1664
|
+
function _object_spread$1b(target) {
|
|
1665
1665
|
for (var i = 1; i < arguments.length; i++) {
|
|
1666
1666
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1667
1667
|
var ownKeys2 = Object.keys(source);
|
|
@@ -1671,7 +1671,7 @@
|
|
|
1671
1671
|
}));
|
|
1672
1672
|
}
|
|
1673
1673
|
ownKeys2.forEach(function(key) {
|
|
1674
|
-
_define_property$
|
|
1674
|
+
_define_property$1e(target, key, source[key]);
|
|
1675
1675
|
});
|
|
1676
1676
|
}
|
|
1677
1677
|
return target;
|
|
@@ -1767,7 +1767,7 @@
|
|
|
1767
1767
|
meta: _class_private_field_get(this, _name),
|
|
1768
1768
|
generateId: jssContext.generateId
|
|
1769
1769
|
});
|
|
1770
|
-
var classes = _object_spread$
|
|
1770
|
+
var classes = _object_spread$1b({}, sheet.classes);
|
|
1771
1771
|
var manager = new TweakStylesManager({
|
|
1772
1772
|
sheet,
|
|
1773
1773
|
classes
|
|
@@ -1784,7 +1784,7 @@
|
|
|
1784
1784
|
]);
|
|
1785
1785
|
return ThemedStylesManager2;
|
|
1786
1786
|
}();
|
|
1787
|
-
function _define_property$
|
|
1787
|
+
function _define_property$1d(obj, key, value) {
|
|
1788
1788
|
if (key in obj) {
|
|
1789
1789
|
Object.defineProperty(obj, key, {
|
|
1790
1790
|
value,
|
|
@@ -1797,7 +1797,7 @@
|
|
|
1797
1797
|
}
|
|
1798
1798
|
return obj;
|
|
1799
1799
|
}
|
|
1800
|
-
function _object_spread$
|
|
1800
|
+
function _object_spread$1a(target) {
|
|
1801
1801
|
for (var i = 1; i < arguments.length; i++) {
|
|
1802
1802
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1803
1803
|
var ownKeys2 = Object.keys(source);
|
|
@@ -1807,12 +1807,12 @@
|
|
|
1807
1807
|
}));
|
|
1808
1808
|
}
|
|
1809
1809
|
ownKeys2.forEach(function(key) {
|
|
1810
|
-
_define_property$
|
|
1810
|
+
_define_property$1d(target, key, source[key]);
|
|
1811
1811
|
});
|
|
1812
1812
|
}
|
|
1813
1813
|
return target;
|
|
1814
1814
|
}
|
|
1815
|
-
function ownKeys$
|
|
1815
|
+
function ownKeys$Y(object, enumerableOnly) {
|
|
1816
1816
|
var keys = Object.keys(object);
|
|
1817
1817
|
if (Object.getOwnPropertySymbols) {
|
|
1818
1818
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -1825,12 +1825,12 @@
|
|
|
1825
1825
|
}
|
|
1826
1826
|
return keys;
|
|
1827
1827
|
}
|
|
1828
|
-
function _object_spread_props$
|
|
1828
|
+
function _object_spread_props$Y(target, source) {
|
|
1829
1829
|
source = source != null ? source : {};
|
|
1830
1830
|
if (Object.getOwnPropertyDescriptors) {
|
|
1831
1831
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1832
1832
|
} else {
|
|
1833
|
-
ownKeys$
|
|
1833
|
+
ownKeys$Y(Object(source)).forEach(function(key) {
|
|
1834
1834
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1835
1835
|
});
|
|
1836
1836
|
}
|
|
@@ -1841,7 +1841,7 @@
|
|
|
1841
1841
|
var children = param.children, tweakStylesArch = param.tweakStylesArch, generateId = param.generateId;
|
|
1842
1842
|
var context = React.useContext(JssContext);
|
|
1843
1843
|
var value = React.useMemo(function() {
|
|
1844
|
-
return _object_spread_props$
|
|
1844
|
+
return _object_spread_props$Y(_object_spread$1a({}, context), {
|
|
1845
1845
|
tweakStylesArch: tweakStylesArch !== null && tweakStylesArch !== void 0 ? tweakStylesArch : context.tweakStylesArch,
|
|
1846
1846
|
generateId: generateId !== null && generateId !== void 0 ? generateId : context.generateId
|
|
1847
1847
|
});
|
|
@@ -1880,7 +1880,7 @@
|
|
|
1880
1880
|
if (Array.isArray(arr))
|
|
1881
1881
|
return arr;
|
|
1882
1882
|
}
|
|
1883
|
-
function _define_property$
|
|
1883
|
+
function _define_property$1c(obj, key, value) {
|
|
1884
1884
|
if (key in obj) {
|
|
1885
1885
|
Object.defineProperty(obj, key, {
|
|
1886
1886
|
value,
|
|
@@ -1924,7 +1924,7 @@
|
|
|
1924
1924
|
function _non_iterable_rest$q() {
|
|
1925
1925
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1926
1926
|
}
|
|
1927
|
-
function _object_spread$
|
|
1927
|
+
function _object_spread$19(target) {
|
|
1928
1928
|
for (var i = 1; i < arguments.length; i++) {
|
|
1929
1929
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1930
1930
|
var ownKeys2 = Object.keys(source);
|
|
@@ -1934,12 +1934,12 @@
|
|
|
1934
1934
|
}));
|
|
1935
1935
|
}
|
|
1936
1936
|
ownKeys2.forEach(function(key) {
|
|
1937
|
-
_define_property$
|
|
1937
|
+
_define_property$1c(target, key, source[key]);
|
|
1938
1938
|
});
|
|
1939
1939
|
}
|
|
1940
1940
|
return target;
|
|
1941
1941
|
}
|
|
1942
|
-
function ownKeys$
|
|
1942
|
+
function ownKeys$X(object, enumerableOnly) {
|
|
1943
1943
|
var keys = Object.keys(object);
|
|
1944
1944
|
if (Object.getOwnPropertySymbols) {
|
|
1945
1945
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -1952,12 +1952,12 @@
|
|
|
1952
1952
|
}
|
|
1953
1953
|
return keys;
|
|
1954
1954
|
}
|
|
1955
|
-
function _object_spread_props$
|
|
1955
|
+
function _object_spread_props$X(target, source) {
|
|
1956
1956
|
source = source != null ? source : {};
|
|
1957
1957
|
if (Object.getOwnPropertyDescriptors) {
|
|
1958
1958
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1959
1959
|
} else {
|
|
1960
|
-
ownKeys$
|
|
1960
|
+
ownKeys$X(Object(source)).forEach(function(key) {
|
|
1961
1961
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1962
1962
|
});
|
|
1963
1963
|
}
|
|
@@ -2017,7 +2017,7 @@
|
|
|
2017
2017
|
tweakStylesStrategy,
|
|
2018
2018
|
tweakStyles
|
|
2019
2019
|
]);
|
|
2020
|
-
return useStyles2(trueReactPlatformHelpers.isNotEmpty(data) ? _object_spread_props$
|
|
2020
|
+
return useStyles2(trueReactPlatformHelpers.isNotEmpty(data) ? _object_spread_props$X(_object_spread$19({}, data), {
|
|
2021
2021
|
theme
|
|
2022
2022
|
}) : data);
|
|
2023
2023
|
}
|
|
@@ -6518,7 +6518,7 @@
|
|
|
6518
6518
|
if (Array.isArray(arr))
|
|
6519
6519
|
return _array_like_to_array$p(arr);
|
|
6520
6520
|
}
|
|
6521
|
-
function _define_property$
|
|
6521
|
+
function _define_property$1b(obj, key, value) {
|
|
6522
6522
|
if (key in obj) {
|
|
6523
6523
|
Object.defineProperty(obj, key, {
|
|
6524
6524
|
value,
|
|
@@ -6538,7 +6538,7 @@
|
|
|
6538
6538
|
function _non_iterable_spread$a() {
|
|
6539
6539
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6540
6540
|
}
|
|
6541
|
-
function _object_spread$
|
|
6541
|
+
function _object_spread$18(target) {
|
|
6542
6542
|
for (var i = 1; i < arguments.length; i++) {
|
|
6543
6543
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6544
6544
|
var ownKeys2 = Object.keys(source);
|
|
@@ -6548,7 +6548,7 @@
|
|
|
6548
6548
|
}));
|
|
6549
6549
|
}
|
|
6550
6550
|
ownKeys2.forEach(function(key) {
|
|
6551
|
-
_define_property$
|
|
6551
|
+
_define_property$1b(target, key, source[key]);
|
|
6552
6552
|
});
|
|
6553
6553
|
}
|
|
6554
6554
|
return target;
|
|
@@ -6604,7 +6604,7 @@
|
|
|
6604
6604
|
},
|
|
6605
6605
|
{
|
|
6606
6606
|
name: "flip",
|
|
6607
|
-
options: _object_spread$
|
|
6607
|
+
options: _object_spread$18({
|
|
6608
6608
|
fallbackPlacements: canBeFlipped ? [
|
|
6609
6609
|
"bottom-start",
|
|
6610
6610
|
"top-start"
|
|
@@ -6991,13 +6991,13 @@
|
|
|
6991
6991
|
"status-warning": statusWarning,
|
|
6992
6992
|
"trash-can": trashCan
|
|
6993
6993
|
};
|
|
6994
|
-
var useStyles$
|
|
6994
|
+
var useStyles$Y = createThemedStyles("Icon", {
|
|
6995
6995
|
root: {
|
|
6996
6996
|
display: "flex",
|
|
6997
6997
|
alignItems: "center"
|
|
6998
6998
|
}
|
|
6999
6999
|
});
|
|
7000
|
-
function _define_property$
|
|
7000
|
+
function _define_property$1a(obj, key, value) {
|
|
7001
7001
|
if (key in obj) {
|
|
7002
7002
|
Object.defineProperty(obj, key, {
|
|
7003
7003
|
value,
|
|
@@ -7010,7 +7010,7 @@
|
|
|
7010
7010
|
}
|
|
7011
7011
|
return obj;
|
|
7012
7012
|
}
|
|
7013
|
-
function _object_spread$
|
|
7013
|
+
function _object_spread$17(target) {
|
|
7014
7014
|
for (var i = 1; i < arguments.length; i++) {
|
|
7015
7015
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7016
7016
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7020,12 +7020,12 @@
|
|
|
7020
7020
|
}));
|
|
7021
7021
|
}
|
|
7022
7022
|
ownKeys2.forEach(function(key) {
|
|
7023
|
-
_define_property$
|
|
7023
|
+
_define_property$1a(target, key, source[key]);
|
|
7024
7024
|
});
|
|
7025
7025
|
}
|
|
7026
7026
|
return target;
|
|
7027
7027
|
}
|
|
7028
|
-
function ownKeys$
|
|
7028
|
+
function ownKeys$W(object, enumerableOnly) {
|
|
7029
7029
|
var keys = Object.keys(object);
|
|
7030
7030
|
if (Object.getOwnPropertySymbols) {
|
|
7031
7031
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7038,12 +7038,12 @@
|
|
|
7038
7038
|
}
|
|
7039
7039
|
return keys;
|
|
7040
7040
|
}
|
|
7041
|
-
function _object_spread_props$
|
|
7041
|
+
function _object_spread_props$W(target, source) {
|
|
7042
7042
|
source = source != null ? source : {};
|
|
7043
7043
|
if (Object.getOwnPropertyDescriptors) {
|
|
7044
7044
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7045
7045
|
} else {
|
|
7046
|
-
ownKeys$
|
|
7046
|
+
ownKeys$W(Object(source)).forEach(function(key) {
|
|
7047
7047
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7048
7048
|
});
|
|
7049
7049
|
}
|
|
@@ -7052,7 +7052,7 @@
|
|
|
7052
7052
|
var Icon = function(param) {
|
|
7053
7053
|
var type = param.type, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
7054
7054
|
var _theme_icons;
|
|
7055
|
-
var classes = useStyles$
|
|
7055
|
+
var classes = useStyles$Y({
|
|
7056
7056
|
theme: tweakStyles
|
|
7057
7057
|
});
|
|
7058
7058
|
var theme = useTheme();
|
|
@@ -7062,7 +7062,7 @@
|
|
|
7062
7062
|
console.error("Иконки ".concat(type, " не существует"));
|
|
7063
7063
|
return null;
|
|
7064
7064
|
}
|
|
7065
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
7065
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$W(_object_spread$17({
|
|
7066
7066
|
className: classes.root
|
|
7067
7067
|
}, trueReactPlatformHelpers.addDataAttributes(data, testId)), {
|
|
7068
7068
|
dangerouslySetInnerHTML: {
|
|
@@ -7084,7 +7084,7 @@
|
|
|
7084
7084
|
});
|
|
7085
7085
|
}
|
|
7086
7086
|
});
|
|
7087
|
-
var useStyles$
|
|
7087
|
+
var useStyles$X = createThemedStyles("WithPopup", {
|
|
7088
7088
|
trigger: {
|
|
7089
7089
|
width: "fit-content"
|
|
7090
7090
|
},
|
|
@@ -7131,7 +7131,7 @@
|
|
|
7131
7131
|
if (Array.isArray(arr))
|
|
7132
7132
|
return _array_like_to_array$m(arr);
|
|
7133
7133
|
}
|
|
7134
|
-
function _define_property$
|
|
7134
|
+
function _define_property$19(obj, key, value) {
|
|
7135
7135
|
if (key in obj) {
|
|
7136
7136
|
Object.defineProperty(obj, key, {
|
|
7137
7137
|
value,
|
|
@@ -7182,7 +7182,7 @@
|
|
|
7182
7182
|
function _non_iterable_spread$8() {
|
|
7183
7183
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7184
7184
|
}
|
|
7185
|
-
function _object_spread$
|
|
7185
|
+
function _object_spread$16(target) {
|
|
7186
7186
|
for (var i = 1; i < arguments.length; i++) {
|
|
7187
7187
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7188
7188
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7192,12 +7192,12 @@
|
|
|
7192
7192
|
}));
|
|
7193
7193
|
}
|
|
7194
7194
|
ownKeys2.forEach(function(key) {
|
|
7195
|
-
_define_property$
|
|
7195
|
+
_define_property$19(target, key, source[key]);
|
|
7196
7196
|
});
|
|
7197
7197
|
}
|
|
7198
7198
|
return target;
|
|
7199
7199
|
}
|
|
7200
|
-
function ownKeys$
|
|
7200
|
+
function ownKeys$V(object, enumerableOnly) {
|
|
7201
7201
|
var keys = Object.keys(object);
|
|
7202
7202
|
if (Object.getOwnPropertySymbols) {
|
|
7203
7203
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7210,12 +7210,12 @@
|
|
|
7210
7210
|
}
|
|
7211
7211
|
return keys;
|
|
7212
7212
|
}
|
|
7213
|
-
function _object_spread_props$
|
|
7213
|
+
function _object_spread_props$V(target, source) {
|
|
7214
7214
|
source = source != null ? source : {};
|
|
7215
7215
|
if (Object.getOwnPropertyDescriptors) {
|
|
7216
7216
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7217
7217
|
} else {
|
|
7218
|
-
ownKeys$
|
|
7218
|
+
ownKeys$V(Object(source)).forEach(function(key) {
|
|
7219
7219
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7220
7220
|
});
|
|
7221
7221
|
}
|
|
@@ -7242,7 +7242,7 @@
|
|
|
7242
7242
|
}
|
|
7243
7243
|
var WithPopup = function(param) {
|
|
7244
7244
|
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;
|
|
7245
|
-
var classes = useStyles$
|
|
7245
|
+
var classes = useStyles$X({
|
|
7246
7246
|
theme: tweakStyles
|
|
7247
7247
|
});
|
|
7248
7248
|
var _useState = _sliced_to_array$m(React.useState(false), 2), isOpen = _useState[0], setIsOpen = _useState[1];
|
|
@@ -7273,7 +7273,7 @@
|
|
|
7273
7273
|
placement,
|
|
7274
7274
|
onOpenChange: handleToggle
|
|
7275
7275
|
}), refs = _useFloating.refs, floatingStyles = _useFloating.floatingStyles, context = _useFloating.context;
|
|
7276
|
-
var hover = react.useHover(context, _object_spread$
|
|
7276
|
+
var hover = react.useHover(context, _object_spread$16({
|
|
7277
7277
|
enabled: eventType === "hover",
|
|
7278
7278
|
delay: {
|
|
7279
7279
|
open: hoverDelay,
|
|
@@ -7281,13 +7281,13 @@
|
|
|
7281
7281
|
},
|
|
7282
7282
|
handleClose: react.safePolygon()
|
|
7283
7283
|
}, hoverOptions));
|
|
7284
|
-
var focus = react.useFocus(context, _object_spread$
|
|
7284
|
+
var focus = react.useFocus(context, _object_spread$16({
|
|
7285
7285
|
enabled: eventType === "hover"
|
|
7286
7286
|
}, focusOptions));
|
|
7287
|
-
var click = react.useClick(context, _object_spread$
|
|
7287
|
+
var click = react.useClick(context, _object_spread$16({
|
|
7288
7288
|
enabled: eventType === "click"
|
|
7289
7289
|
}, clickOptions));
|
|
7290
|
-
var dismiss = react.useDismiss(context, _object_spread$
|
|
7290
|
+
var dismiss = react.useDismiss(context, _object_spread$16({
|
|
7291
7291
|
enabled: eventType === "click",
|
|
7292
7292
|
ancestorScroll: shouldHideOnScroll
|
|
7293
7293
|
}, dismissOptions));
|
|
@@ -7297,22 +7297,22 @@
|
|
|
7297
7297
|
focus,
|
|
7298
7298
|
dismiss
|
|
7299
7299
|
]), getFloatingProps = _useInteractions.getFloatingProps, getReferenceProps = _useInteractions.getReferenceProps;
|
|
7300
|
-
var _useTransitionStatus = react.useTransitionStatus(context, _object_spread$
|
|
7300
|
+
var _useTransitionStatus = react.useTransitionStatus(context, _object_spread$16({
|
|
7301
7301
|
duration: {
|
|
7302
7302
|
close: 500
|
|
7303
7303
|
}
|
|
7304
7304
|
}, transitionOptions)), isMounted = _useTransitionStatus.isMounted, status = _useTransitionStatus.status;
|
|
7305
|
-
var referenceProps = getReferenceProps(_object_spread$
|
|
7305
|
+
var referenceProps = getReferenceProps(_object_spread$16({
|
|
7306
7306
|
ref: refs.setReference
|
|
7307
7307
|
}, shouldStopPropagation && {
|
|
7308
7308
|
onClick: trueReactPlatformHelpers.stopPropagation
|
|
7309
7309
|
}));
|
|
7310
7310
|
var triggerElement = trueReactPlatformHelpers.applyAction(trigger, {
|
|
7311
7311
|
referenceProps: !isTriggerWrapped ? referenceProps : void 0,
|
|
7312
|
-
triggerProps: _object_spread$
|
|
7312
|
+
triggerProps: _object_spread$16({
|
|
7313
7313
|
isActive,
|
|
7314
7314
|
isDisabled
|
|
7315
|
-
}, !isTriggerWrapped && _object_spread$
|
|
7315
|
+
}, !isTriggerWrapped && _object_spread$16({
|
|
7316
7316
|
data,
|
|
7317
7317
|
testId
|
|
7318
7318
|
}, referenceProps))
|
|
@@ -7320,14 +7320,14 @@
|
|
|
7320
7320
|
var _obj2;
|
|
7321
7321
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
7322
7322
|
children: [
|
|
7323
|
-
isTriggerWrapped ? /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
7324
|
-
className: clsx(classes.trigger, (_obj2 = {}, _define_property$
|
|
7323
|
+
isTriggerWrapped ? /* @__PURE__ */ jsx("div", _object_spread_props$V(_object_spread$16({
|
|
7324
|
+
className: clsx(classes.trigger, (_obj2 = {}, _define_property$19(_obj2, classes.clickable, eventType === "click"), _define_property$19(_obj2, classes.disabled, isDisabled), _define_property$19(_obj2, classes.active, isActive), _obj2))
|
|
7325
7325
|
}, referenceProps, trueReactPlatformHelpers.addDataAttributes(data, testId)), {
|
|
7326
7326
|
children: triggerElement
|
|
7327
7327
|
})) : triggerElement,
|
|
7328
7328
|
isMounted && /* @__PURE__ */ jsx(react.FloatingPortal, {
|
|
7329
7329
|
root: shouldRenderInBody ? document.body : refs.reference.current,
|
|
7330
|
-
children: /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
7330
|
+
children: /* @__PURE__ */ jsx("div", _object_spread_props$V(_object_spread$16({
|
|
7331
7331
|
ref: refs.setFloating,
|
|
7332
7332
|
style: floatingStyles,
|
|
7333
7333
|
className: classes.popup
|
|
@@ -7335,7 +7335,7 @@
|
|
|
7335
7335
|
children: /* @__PURE__ */ jsxs("div", {
|
|
7336
7336
|
className: classes["dropdown-".concat(status)],
|
|
7337
7337
|
children: [
|
|
7338
|
-
shouldShowArrow && /* @__PURE__ */ jsx(react.FloatingArrow, _object_spread_props$
|
|
7338
|
+
shouldShowArrow && /* @__PURE__ */ jsx(react.FloatingArrow, _object_spread_props$V(_object_spread$16({}, arrowProps), {
|
|
7339
7339
|
ref: arrowRef,
|
|
7340
7340
|
context,
|
|
7341
7341
|
className: classes.arrow
|
|
@@ -7352,9 +7352,9 @@
|
|
|
7352
7352
|
});
|
|
7353
7353
|
};
|
|
7354
7354
|
var ITEM_HORIZONTAL_PADDING = 16;
|
|
7355
|
-
var ICON_SIZE
|
|
7355
|
+
var ICON_SIZE = 20;
|
|
7356
7356
|
var ICON_GAP = 12;
|
|
7357
|
-
var useStyles$
|
|
7357
|
+
var useStyles$W = createThemedStyles("ListItem", {
|
|
7358
7358
|
root: {
|
|
7359
7359
|
display: "flex",
|
|
7360
7360
|
alignItems: "center",
|
|
@@ -7382,18 +7382,18 @@
|
|
|
7382
7382
|
backgroundColor: colors.BORDER_LIGHT
|
|
7383
7383
|
},
|
|
7384
7384
|
withIconGap: {
|
|
7385
|
-
paddingLeft: ITEM_HORIZONTAL_PADDING + ICON_SIZE
|
|
7385
|
+
paddingLeft: ITEM_HORIZONTAL_PADDING + ICON_SIZE + ICON_GAP
|
|
7386
7386
|
},
|
|
7387
7387
|
icon: {
|
|
7388
|
-
width: ICON_SIZE
|
|
7389
|
-
height: ICON_SIZE
|
|
7388
|
+
width: ICON_SIZE,
|
|
7389
|
+
height: ICON_SIZE,
|
|
7390
7390
|
flexShrink: 0
|
|
7391
7391
|
},
|
|
7392
7392
|
content: {
|
|
7393
7393
|
flexGrow: 1
|
|
7394
7394
|
}
|
|
7395
7395
|
});
|
|
7396
|
-
function _define_property$
|
|
7396
|
+
function _define_property$18(obj, key, value) {
|
|
7397
7397
|
if (key in obj) {
|
|
7398
7398
|
Object.defineProperty(obj, key, {
|
|
7399
7399
|
value,
|
|
@@ -7406,7 +7406,7 @@
|
|
|
7406
7406
|
}
|
|
7407
7407
|
return obj;
|
|
7408
7408
|
}
|
|
7409
|
-
function _object_spread$
|
|
7409
|
+
function _object_spread$15(target) {
|
|
7410
7410
|
for (var i = 1; i < arguments.length; i++) {
|
|
7411
7411
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7412
7412
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7416,12 +7416,12 @@
|
|
|
7416
7416
|
}));
|
|
7417
7417
|
}
|
|
7418
7418
|
ownKeys2.forEach(function(key) {
|
|
7419
|
-
_define_property$
|
|
7419
|
+
_define_property$18(target, key, source[key]);
|
|
7420
7420
|
});
|
|
7421
7421
|
}
|
|
7422
7422
|
return target;
|
|
7423
7423
|
}
|
|
7424
|
-
function ownKeys$
|
|
7424
|
+
function ownKeys$U(object, enumerableOnly) {
|
|
7425
7425
|
var keys = Object.keys(object);
|
|
7426
7426
|
if (Object.getOwnPropertySymbols) {
|
|
7427
7427
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7434,12 +7434,12 @@
|
|
|
7434
7434
|
}
|
|
7435
7435
|
return keys;
|
|
7436
7436
|
}
|
|
7437
|
-
function _object_spread_props$
|
|
7437
|
+
function _object_spread_props$U(target, source) {
|
|
7438
7438
|
source = source != null ? source : {};
|
|
7439
7439
|
if (Object.getOwnPropertyDescriptors) {
|
|
7440
7440
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7441
7441
|
} else {
|
|
7442
|
-
ownKeys$
|
|
7442
|
+
ownKeys$U(Object(source)).forEach(function(key) {
|
|
7443
7443
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7444
7444
|
});
|
|
7445
7445
|
}
|
|
@@ -7447,7 +7447,7 @@
|
|
|
7447
7447
|
}
|
|
7448
7448
|
var ListItem = function(param) {
|
|
7449
7449
|
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;
|
|
7450
|
-
var classes = useStyles$
|
|
7450
|
+
var classes = useStyles$W({
|
|
7451
7451
|
theme: tweakStyles
|
|
7452
7452
|
});
|
|
7453
7453
|
var _obj2;
|
|
@@ -7456,9 +7456,9 @@
|
|
|
7456
7456
|
shouldDrawSpacerAbove && /* @__PURE__ */ jsx("div", {
|
|
7457
7457
|
className: classes.spacer
|
|
7458
7458
|
}),
|
|
7459
|
-
/* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
7460
|
-
className: clsx(classes.root, classes[view], (_obj2 = {}, _define_property$
|
|
7461
|
-
}, trueReactPlatformHelpers.addClickHandler(onClick, !isDisabled), trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(_object_spread_props$
|
|
7459
|
+
/* @__PURE__ */ jsxs("div", _object_spread_props$U(_object_spread$15({
|
|
7460
|
+
className: clsx(classes.root, classes[view], (_obj2 = {}, _define_property$18(_obj2, classes.disabledItem, isDisabled), _define_property$18(_obj2, classes.withIconGap, withIconGap), _define_property$18(_obj2, classes.focused, isFocused), _obj2))
|
|
7461
|
+
}, trueReactPlatformHelpers.addClickHandler(onClick, !isDisabled), trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(_object_spread_props$U(_object_spread$15({}, data), {
|
|
7462
7462
|
disabled: isDisabled ? true : void 0
|
|
7463
7463
|
}))), {
|
|
7464
7464
|
children: [
|
|
@@ -7484,7 +7484,7 @@
|
|
|
7484
7484
|
]
|
|
7485
7485
|
});
|
|
7486
7486
|
};
|
|
7487
|
-
var useStyles$
|
|
7487
|
+
var useStyles$V = createThemedStyles("List", {
|
|
7488
7488
|
root: {
|
|
7489
7489
|
minWidth: 180,
|
|
7490
7490
|
backgroundColor: colors.CLASSIC_WHITE,
|
|
@@ -7505,7 +7505,7 @@
|
|
|
7505
7505
|
width: "100%"
|
|
7506
7506
|
}
|
|
7507
7507
|
};
|
|
7508
|
-
function _define_property$
|
|
7508
|
+
function _define_property$17(obj, key, value) {
|
|
7509
7509
|
if (key in obj) {
|
|
7510
7510
|
Object.defineProperty(obj, key, {
|
|
7511
7511
|
value,
|
|
@@ -7518,7 +7518,7 @@
|
|
|
7518
7518
|
}
|
|
7519
7519
|
return obj;
|
|
7520
7520
|
}
|
|
7521
|
-
function _object_spread$
|
|
7521
|
+
function _object_spread$14(target) {
|
|
7522
7522
|
for (var i = 1; i < arguments.length; i++) {
|
|
7523
7523
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7524
7524
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7528,12 +7528,12 @@
|
|
|
7528
7528
|
}));
|
|
7529
7529
|
}
|
|
7530
7530
|
ownKeys2.forEach(function(key) {
|
|
7531
|
-
_define_property$
|
|
7531
|
+
_define_property$17(target, key, source[key]);
|
|
7532
7532
|
});
|
|
7533
7533
|
}
|
|
7534
7534
|
return target;
|
|
7535
7535
|
}
|
|
7536
|
-
function ownKeys$
|
|
7536
|
+
function ownKeys$T(object, enumerableOnly) {
|
|
7537
7537
|
var keys = Object.keys(object);
|
|
7538
7538
|
if (Object.getOwnPropertySymbols) {
|
|
7539
7539
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7546,12 +7546,12 @@
|
|
|
7546
7546
|
}
|
|
7547
7547
|
return keys;
|
|
7548
7548
|
}
|
|
7549
|
-
function _object_spread_props$
|
|
7549
|
+
function _object_spread_props$T(target, source) {
|
|
7550
7550
|
source = source != null ? source : {};
|
|
7551
7551
|
if (Object.getOwnPropertyDescriptors) {
|
|
7552
7552
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7553
7553
|
} else {
|
|
7554
|
-
ownKeys$
|
|
7554
|
+
ownKeys$T(Object(source)).forEach(function(key) {
|
|
7555
7555
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7556
7556
|
});
|
|
7557
7557
|
}
|
|
@@ -7559,7 +7559,7 @@
|
|
|
7559
7559
|
}
|
|
7560
7560
|
var List = function(param) {
|
|
7561
7561
|
var items = param.items, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles, onClick = param.onClick;
|
|
7562
|
-
var classes = useStyles$
|
|
7562
|
+
var classes = useStyles$V({
|
|
7563
7563
|
theme: tweakStyles
|
|
7564
7564
|
});
|
|
7565
7565
|
var handleItemClick = function(event, param2) {
|
|
@@ -7573,11 +7573,11 @@
|
|
|
7573
7573
|
var isHidden = param2.isHidden;
|
|
7574
7574
|
return !isHidden;
|
|
7575
7575
|
});
|
|
7576
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
7576
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$T(_object_spread$14({
|
|
7577
7577
|
className: classes.root
|
|
7578
7578
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
7579
7579
|
children: filteredItems.map(function(item, i) {
|
|
7580
|
-
var itemProps = _object_spread_props$
|
|
7580
|
+
var itemProps = _object_spread_props$T(_object_spread$14({
|
|
7581
7581
|
testId: trueReactPlatformHelpers.getTestId(testId, "item-".concat(i))
|
|
7582
7582
|
}, item), {
|
|
7583
7583
|
shouldDrawSpacerAbove: item.shouldDrawSpacerAbove && i !== 0,
|
|
@@ -7595,7 +7595,7 @@
|
|
|
7595
7595
|
shouldRenderInBody: false,
|
|
7596
7596
|
trigger: function(param2) {
|
|
7597
7597
|
var triggerProps = param2.triggerProps;
|
|
7598
|
-
return /* @__PURE__ */ jsx(ListItem, _object_spread_props$
|
|
7598
|
+
return /* @__PURE__ */ jsx(ListItem, _object_spread_props$T(_object_spread$14({}, itemProps), {
|
|
7599
7599
|
isFocused: triggerProps.isActive
|
|
7600
7600
|
}));
|
|
7601
7601
|
},
|
|
@@ -7606,13 +7606,13 @@
|
|
|
7606
7606
|
onClick
|
|
7607
7607
|
})
|
|
7608
7608
|
})
|
|
7609
|
-
}) : /* @__PURE__ */ jsx(ListItem, _object_spread$
|
|
7609
|
+
}) : /* @__PURE__ */ jsx(ListItem, _object_spread$14({}, itemProps))
|
|
7610
7610
|
}, i);
|
|
7611
7611
|
})
|
|
7612
7612
|
}));
|
|
7613
7613
|
};
|
|
7614
7614
|
var ANIMATION_TIMEOUT = 150;
|
|
7615
|
-
function _define_property$
|
|
7615
|
+
function _define_property$16(obj, key, value) {
|
|
7616
7616
|
if (key in obj) {
|
|
7617
7617
|
Object.defineProperty(obj, key, {
|
|
7618
7618
|
value,
|
|
@@ -7625,7 +7625,7 @@
|
|
|
7625
7625
|
}
|
|
7626
7626
|
return obj;
|
|
7627
7627
|
}
|
|
7628
|
-
function _object_spread
|
|
7628
|
+
function _object_spread$13(target) {
|
|
7629
7629
|
for (var i = 1; i < arguments.length; i++) {
|
|
7630
7630
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7631
7631
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7635,12 +7635,12 @@
|
|
|
7635
7635
|
}));
|
|
7636
7636
|
}
|
|
7637
7637
|
ownKeys2.forEach(function(key) {
|
|
7638
|
-
_define_property$
|
|
7638
|
+
_define_property$16(target, key, source[key]);
|
|
7639
7639
|
});
|
|
7640
7640
|
}
|
|
7641
7641
|
return target;
|
|
7642
7642
|
}
|
|
7643
|
-
var useStyles$
|
|
7643
|
+
var useStyles$U = createThemedStyles("AccountInfo", _object_spread$13({
|
|
7644
7644
|
root: {
|
|
7645
7645
|
display: "flex"
|
|
7646
7646
|
},
|
|
@@ -7694,7 +7694,7 @@
|
|
|
7694
7694
|
if (Array.isArray(arr))
|
|
7695
7695
|
return arr;
|
|
7696
7696
|
}
|
|
7697
|
-
function _define_property$
|
|
7697
|
+
function _define_property$15(obj, key, value) {
|
|
7698
7698
|
if (key in obj) {
|
|
7699
7699
|
Object.defineProperty(obj, key, {
|
|
7700
7700
|
value,
|
|
@@ -7738,7 +7738,7 @@
|
|
|
7738
7738
|
function _non_iterable_rest$l() {
|
|
7739
7739
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7740
7740
|
}
|
|
7741
|
-
function _object_spread$
|
|
7741
|
+
function _object_spread$12(target) {
|
|
7742
7742
|
for (var i = 1; i < arguments.length; i++) {
|
|
7743
7743
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7744
7744
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7748,12 +7748,12 @@
|
|
|
7748
7748
|
}));
|
|
7749
7749
|
}
|
|
7750
7750
|
ownKeys2.forEach(function(key) {
|
|
7751
|
-
_define_property$
|
|
7751
|
+
_define_property$15(target, key, source[key]);
|
|
7752
7752
|
});
|
|
7753
7753
|
}
|
|
7754
7754
|
return target;
|
|
7755
7755
|
}
|
|
7756
|
-
function ownKeys$
|
|
7756
|
+
function ownKeys$S(object, enumerableOnly) {
|
|
7757
7757
|
var keys = Object.keys(object);
|
|
7758
7758
|
if (Object.getOwnPropertySymbols) {
|
|
7759
7759
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7766,12 +7766,12 @@
|
|
|
7766
7766
|
}
|
|
7767
7767
|
return keys;
|
|
7768
7768
|
}
|
|
7769
|
-
function _object_spread_props$
|
|
7769
|
+
function _object_spread_props$S(target, source) {
|
|
7770
7770
|
source = source != null ? source : {};
|
|
7771
7771
|
if (Object.getOwnPropertyDescriptors) {
|
|
7772
7772
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7773
7773
|
} else {
|
|
7774
|
-
ownKeys$
|
|
7774
|
+
ownKeys$S(Object(source)).forEach(function(key) {
|
|
7775
7775
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7776
7776
|
});
|
|
7777
7777
|
}
|
|
@@ -7795,7 +7795,7 @@
|
|
|
7795
7795
|
}
|
|
7796
7796
|
var AccountInfo = function(param) {
|
|
7797
7797
|
var data = param.data, testId = param.testId, avatar2 = param.avatar, tweakStyles = param.tweakStyles, accountName = param.accountName, options = param.options;
|
|
7798
|
-
var classes = useStyles$
|
|
7798
|
+
var classes = useStyles$U({
|
|
7799
7799
|
theme: tweakStyles
|
|
7800
7800
|
});
|
|
7801
7801
|
var tweakListStyles = useTweakStyles({
|
|
@@ -7815,7 +7815,7 @@
|
|
|
7815
7815
|
useOnClickOutsideWithRef(dropdownRef, function() {
|
|
7816
7816
|
return setIsMenuOpen(false);
|
|
7817
7817
|
}, nameRef);
|
|
7818
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
7818
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$S(_object_spread$12({
|
|
7819
7819
|
className: classes.root
|
|
7820
7820
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
7821
7821
|
children: [
|
|
@@ -7865,7 +7865,7 @@
|
|
|
7865
7865
|
]
|
|
7866
7866
|
}));
|
|
7867
7867
|
};
|
|
7868
|
-
var useStyles$
|
|
7868
|
+
var useStyles$T = createThemedStyles("AddButton", {
|
|
7869
7869
|
root: {
|
|
7870
7870
|
display: "flex",
|
|
7871
7871
|
alignItems: "center",
|
|
@@ -7891,7 +7891,7 @@
|
|
|
7891
7891
|
width: "100%"
|
|
7892
7892
|
}
|
|
7893
7893
|
});
|
|
7894
|
-
function _define_property$
|
|
7894
|
+
function _define_property$14(obj, key, value) {
|
|
7895
7895
|
if (key in obj) {
|
|
7896
7896
|
Object.defineProperty(obj, key, {
|
|
7897
7897
|
value,
|
|
@@ -7904,7 +7904,7 @@
|
|
|
7904
7904
|
}
|
|
7905
7905
|
return obj;
|
|
7906
7906
|
}
|
|
7907
|
-
function _object_spread$
|
|
7907
|
+
function _object_spread$11(target) {
|
|
7908
7908
|
for (var i = 1; i < arguments.length; i++) {
|
|
7909
7909
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7910
7910
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7914,12 +7914,12 @@
|
|
|
7914
7914
|
}));
|
|
7915
7915
|
}
|
|
7916
7916
|
ownKeys2.forEach(function(key) {
|
|
7917
|
-
_define_property$
|
|
7917
|
+
_define_property$14(target, key, source[key]);
|
|
7918
7918
|
});
|
|
7919
7919
|
}
|
|
7920
7920
|
return target;
|
|
7921
7921
|
}
|
|
7922
|
-
function ownKeys$
|
|
7922
|
+
function ownKeys$R(object, enumerableOnly) {
|
|
7923
7923
|
var keys = Object.keys(object);
|
|
7924
7924
|
if (Object.getOwnPropertySymbols) {
|
|
7925
7925
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7932,12 +7932,12 @@
|
|
|
7932
7932
|
}
|
|
7933
7933
|
return keys;
|
|
7934
7934
|
}
|
|
7935
|
-
function _object_spread_props$
|
|
7935
|
+
function _object_spread_props$R(target, source) {
|
|
7936
7936
|
source = source != null ? source : {};
|
|
7937
7937
|
if (Object.getOwnPropertyDescriptors) {
|
|
7938
7938
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7939
7939
|
} else {
|
|
7940
|
-
ownKeys$
|
|
7940
|
+
ownKeys$R(Object(source)).forEach(function(key) {
|
|
7941
7941
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7942
7942
|
});
|
|
7943
7943
|
}
|
|
@@ -7945,10 +7945,10 @@
|
|
|
7945
7945
|
}
|
|
7946
7946
|
var AddButton = function(param) {
|
|
7947
7947
|
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;
|
|
7948
|
-
var classes = useStyles$
|
|
7948
|
+
var classes = useStyles$T({
|
|
7949
7949
|
theme: tweakStyles
|
|
7950
7950
|
});
|
|
7951
|
-
return /* @__PURE__ */ jsxs("button", _object_spread_props$
|
|
7951
|
+
return /* @__PURE__ */ jsxs("button", _object_spread_props$R(_object_spread$11({
|
|
7952
7952
|
type,
|
|
7953
7953
|
className: clsx(classes.root, isDisabled && classes.disabled, isFullWidth && classes.fullWidth),
|
|
7954
7954
|
onClick: !isDisabled ? onClick : void 0,
|
|
@@ -7967,7 +7967,7 @@
|
|
|
7967
7967
|
]
|
|
7968
7968
|
}));
|
|
7969
7969
|
};
|
|
7970
|
-
var useStyles$
|
|
7970
|
+
var useStyles$S = createThemedStyles("DotsPreloader", {
|
|
7971
7971
|
root: {
|
|
7972
7972
|
display: "flex",
|
|
7973
7973
|
gap: 4,
|
|
@@ -8013,7 +8013,7 @@
|
|
|
8013
8013
|
});
|
|
8014
8014
|
var DotsPreloader = function(param) {
|
|
8015
8015
|
var tweakStyles = param.tweakStyles;
|
|
8016
|
-
var classes = useStyles$
|
|
8016
|
+
var classes = useStyles$S({
|
|
8017
8017
|
theme: tweakStyles
|
|
8018
8018
|
});
|
|
8019
8019
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -8079,7 +8079,7 @@
|
|
|
8079
8079
|
]
|
|
8080
8080
|
});
|
|
8081
8081
|
};
|
|
8082
|
-
var useStyles$
|
|
8082
|
+
var useStyles$R = createThemedStyles("SvgPreloader", {
|
|
8083
8083
|
root: {
|
|
8084
8084
|
display: "flex",
|
|
8085
8085
|
width: "100%",
|
|
@@ -8089,7 +8089,7 @@
|
|
|
8089
8089
|
var SvgPreloader = function(param) {
|
|
8090
8090
|
var _param_type = param.type, type = _param_type === void 0 ? "default" : _param_type, tweakStyles = param.tweakStyles;
|
|
8091
8091
|
var _theme_preloaders;
|
|
8092
|
-
var classes = useStyles$
|
|
8092
|
+
var classes = useStyles$R({
|
|
8093
8093
|
theme: tweakStyles
|
|
8094
8094
|
});
|
|
8095
8095
|
var theme = useTheme();
|
|
@@ -8103,7 +8103,7 @@
|
|
|
8103
8103
|
}
|
|
8104
8104
|
}) : /* @__PURE__ */ jsx(PreloaderIcon, {});
|
|
8105
8105
|
};
|
|
8106
|
-
var useStyles$
|
|
8106
|
+
var useStyles$Q = createThemedStyles("ThemedPreloader", {
|
|
8107
8107
|
root: {
|
|
8108
8108
|
display: "flex"
|
|
8109
8109
|
},
|
|
@@ -8114,7 +8114,7 @@
|
|
|
8114
8114
|
color: "currentColor"
|
|
8115
8115
|
}
|
|
8116
8116
|
});
|
|
8117
|
-
function _define_property
|
|
8117
|
+
function _define_property$13(obj, key, value) {
|
|
8118
8118
|
if (key in obj) {
|
|
8119
8119
|
Object.defineProperty(obj, key, {
|
|
8120
8120
|
value,
|
|
@@ -8127,7 +8127,7 @@
|
|
|
8127
8127
|
}
|
|
8128
8128
|
return obj;
|
|
8129
8129
|
}
|
|
8130
|
-
function _object_spread$
|
|
8130
|
+
function _object_spread$10(target) {
|
|
8131
8131
|
for (var i = 1; i < arguments.length; i++) {
|
|
8132
8132
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8133
8133
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8137,12 +8137,12 @@
|
|
|
8137
8137
|
}));
|
|
8138
8138
|
}
|
|
8139
8139
|
ownKeys2.forEach(function(key) {
|
|
8140
|
-
_define_property
|
|
8140
|
+
_define_property$13(target, key, source[key]);
|
|
8141
8141
|
});
|
|
8142
8142
|
}
|
|
8143
8143
|
return target;
|
|
8144
8144
|
}
|
|
8145
|
-
function ownKeys$
|
|
8145
|
+
function ownKeys$Q(object, enumerableOnly) {
|
|
8146
8146
|
var keys = Object.keys(object);
|
|
8147
8147
|
if (Object.getOwnPropertySymbols) {
|
|
8148
8148
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8155,12 +8155,12 @@
|
|
|
8155
8155
|
}
|
|
8156
8156
|
return keys;
|
|
8157
8157
|
}
|
|
8158
|
-
function _object_spread_props$
|
|
8158
|
+
function _object_spread_props$Q(target, source) {
|
|
8159
8159
|
source = source != null ? source : {};
|
|
8160
8160
|
if (Object.getOwnPropertyDescriptors) {
|
|
8161
8161
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8162
8162
|
} else {
|
|
8163
|
-
ownKeys$
|
|
8163
|
+
ownKeys$Q(Object(source)).forEach(function(key) {
|
|
8164
8164
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8165
8165
|
});
|
|
8166
8166
|
}
|
|
@@ -8168,7 +8168,7 @@
|
|
|
8168
8168
|
}
|
|
8169
8169
|
var ThemedPreloader = function(param) {
|
|
8170
8170
|
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;
|
|
8171
|
-
var classes = useStyles$
|
|
8171
|
+
var classes = useStyles$Q({
|
|
8172
8172
|
theme: tweakStyles
|
|
8173
8173
|
});
|
|
8174
8174
|
var tweakDotsPreloaderStyles = useTweakStyles({
|
|
@@ -8181,8 +8181,8 @@
|
|
|
8181
8181
|
className: "tweakSvgPreloader",
|
|
8182
8182
|
currentComponentName: "ThemedPreloader"
|
|
8183
8183
|
});
|
|
8184
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8185
|
-
className: clsx(classes.root, classes[type], _define_property
|
|
8184
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$Q(_object_spread$10({
|
|
8185
|
+
className: clsx(classes.root, classes[type], _define_property$13({}, classes.currentColor, useCurrentColor))
|
|
8186
8186
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
8187
8187
|
children: type === "dots" ? /* @__PURE__ */ jsx(DotsPreloader, {
|
|
8188
8188
|
tweakStyles: tweakDotsPreloaderStyles
|
|
@@ -8192,7 +8192,7 @@
|
|
|
8192
8192
|
})
|
|
8193
8193
|
}));
|
|
8194
8194
|
};
|
|
8195
|
-
var useStyles$
|
|
8195
|
+
var useStyles$P = createThemedStyles("Button", {
|
|
8196
8196
|
root: {
|
|
8197
8197
|
display: "flex",
|
|
8198
8198
|
justifyContent: "center",
|
|
@@ -8363,7 +8363,7 @@
|
|
|
8363
8363
|
var getPreloaderStyles = function(size) {
|
|
8364
8364
|
return size === "s" || size === "m" ? dotsPreloaderStyles : void 0;
|
|
8365
8365
|
};
|
|
8366
|
-
function _define_property$
|
|
8366
|
+
function _define_property$12(obj, key, value) {
|
|
8367
8367
|
if (key in obj) {
|
|
8368
8368
|
Object.defineProperty(obj, key, {
|
|
8369
8369
|
value,
|
|
@@ -8376,7 +8376,7 @@
|
|
|
8376
8376
|
}
|
|
8377
8377
|
return obj;
|
|
8378
8378
|
}
|
|
8379
|
-
function _object_spread
|
|
8379
|
+
function _object_spread$$(target) {
|
|
8380
8380
|
for (var i = 1; i < arguments.length; i++) {
|
|
8381
8381
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8382
8382
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8386,12 +8386,12 @@
|
|
|
8386
8386
|
}));
|
|
8387
8387
|
}
|
|
8388
8388
|
ownKeys2.forEach(function(key) {
|
|
8389
|
-
_define_property$
|
|
8389
|
+
_define_property$12(target, key, source[key]);
|
|
8390
8390
|
});
|
|
8391
8391
|
}
|
|
8392
8392
|
return target;
|
|
8393
8393
|
}
|
|
8394
|
-
function ownKeys$
|
|
8394
|
+
function ownKeys$P(object, enumerableOnly) {
|
|
8395
8395
|
var keys = Object.keys(object);
|
|
8396
8396
|
if (Object.getOwnPropertySymbols) {
|
|
8397
8397
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8404,21 +8404,21 @@
|
|
|
8404
8404
|
}
|
|
8405
8405
|
return keys;
|
|
8406
8406
|
}
|
|
8407
|
-
function _object_spread_props$
|
|
8407
|
+
function _object_spread_props$P(target, source) {
|
|
8408
8408
|
source = source != null ? source : {};
|
|
8409
8409
|
if (Object.getOwnPropertyDescriptors) {
|
|
8410
8410
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8411
8411
|
} else {
|
|
8412
|
-
ownKeys$
|
|
8412
|
+
ownKeys$P(Object(source)).forEach(function(key) {
|
|
8413
8413
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8414
8414
|
});
|
|
8415
8415
|
}
|
|
8416
8416
|
return target;
|
|
8417
8417
|
}
|
|
8418
|
-
function _object_without_properties$
|
|
8418
|
+
function _object_without_properties$l(source, excluded) {
|
|
8419
8419
|
if (source == null)
|
|
8420
8420
|
return {};
|
|
8421
|
-
var target = _object_without_properties_loose$
|
|
8421
|
+
var target = _object_without_properties_loose$l(source, excluded);
|
|
8422
8422
|
var key, i;
|
|
8423
8423
|
if (Object.getOwnPropertySymbols) {
|
|
8424
8424
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -8433,7 +8433,7 @@
|
|
|
8433
8433
|
}
|
|
8434
8434
|
return target;
|
|
8435
8435
|
}
|
|
8436
|
-
function _object_without_properties_loose$
|
|
8436
|
+
function _object_without_properties_loose$l(source, excluded) {
|
|
8437
8437
|
if (source == null)
|
|
8438
8438
|
return {};
|
|
8439
8439
|
var target = {};
|
|
@@ -8448,7 +8448,7 @@
|
|
|
8448
8448
|
return target;
|
|
8449
8449
|
}
|
|
8450
8450
|
var Button = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
8451
|
-
var _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, children = _param.children, _param_size = _param.size, size = _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$
|
|
8451
|
+
var _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, children = _param.children, _param_size = _param.size, size = _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$l(_param, [
|
|
8452
8452
|
"type",
|
|
8453
8453
|
"children",
|
|
8454
8454
|
"size",
|
|
@@ -8466,7 +8466,7 @@
|
|
|
8466
8466
|
"iconPosition",
|
|
8467
8467
|
"preloaderType"
|
|
8468
8468
|
]);
|
|
8469
|
-
var classes = useStyles$
|
|
8469
|
+
var classes = useStyles$P({
|
|
8470
8470
|
theme: tweakStyles
|
|
8471
8471
|
});
|
|
8472
8472
|
var tweakPreloaderStyles = useTweakStyles({
|
|
@@ -8479,16 +8479,16 @@
|
|
|
8479
8479
|
var hasChildren = trueReactPlatformHelpers.isReactNodeNotEmpty(children);
|
|
8480
8480
|
var hasNoAction = isDisabled || isLoading;
|
|
8481
8481
|
var _obj2, _obj1;
|
|
8482
|
-
return /* @__PURE__ */ jsxs("button", _object_spread_props$
|
|
8482
|
+
return /* @__PURE__ */ jsxs("button", _object_spread_props$P(_object_spread$$({
|
|
8483
8483
|
ref,
|
|
8484
8484
|
type,
|
|
8485
|
-
className: clsx(classes.root, classes[size], classes[view], (_obj2 = {}, _define_property$
|
|
8485
|
+
className: clsx(classes.root, classes[size], classes[view], (_obj2 = {}, _define_property$12(_obj2, classes.disabled, isDisabled), _define_property$12(_obj2, classes.fullWidth, isFullWidth), _define_property$12(_obj2, classes.inline, isInline), _define_property$12(_obj2, classes.active, isActive), _define_property$12(_obj2, classes.loading, isLoading), _define_property$12(_obj2, classes.onlyIcon, hasIcon && !hasChildren), _obj2)),
|
|
8486
8486
|
tabIndex: shouldSkipTabNavigation ? -1 : void 0,
|
|
8487
8487
|
disabled: hasNoAction
|
|
8488
8488
|
}, interactions, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
8489
8489
|
children: [
|
|
8490
8490
|
/* @__PURE__ */ jsxs("span", {
|
|
8491
|
-
className: clsx(classes.content, (_obj1 = {}, _define_property$
|
|
8491
|
+
className: clsx(classes.content, (_obj1 = {}, _define_property$12(_obj1, classes.iconFromRight, hasChildren && hasIcon && iconPosition === "right"), _define_property$12(_obj1, classes.iconFromLeft, hasChildren && hasIcon && iconPosition === "left"), _obj1)),
|
|
8492
8492
|
children: [
|
|
8493
8493
|
hasIcon && /* @__PURE__ */ jsx("span", {
|
|
8494
8494
|
className: classes.icon,
|
|
@@ -8511,7 +8511,7 @@
|
|
|
8511
8511
|
]
|
|
8512
8512
|
}));
|
|
8513
8513
|
});
|
|
8514
|
-
var useStyles$
|
|
8514
|
+
var useStyles$O = createThemedStyles("Checkbox", {
|
|
8515
8515
|
root: {
|
|
8516
8516
|
cursor: "pointer",
|
|
8517
8517
|
display: "flex",
|
|
@@ -8549,7 +8549,7 @@
|
|
|
8549
8549
|
flexDirection: "row-reverse"
|
|
8550
8550
|
}
|
|
8551
8551
|
});
|
|
8552
|
-
function _define_property$
|
|
8552
|
+
function _define_property$11(obj, key, value) {
|
|
8553
8553
|
if (key in obj) {
|
|
8554
8554
|
Object.defineProperty(obj, key, {
|
|
8555
8555
|
value,
|
|
@@ -8562,7 +8562,7 @@
|
|
|
8562
8562
|
}
|
|
8563
8563
|
return obj;
|
|
8564
8564
|
}
|
|
8565
|
-
function _object_spread$
|
|
8565
|
+
function _object_spread$_(target) {
|
|
8566
8566
|
for (var i = 1; i < arguments.length; i++) {
|
|
8567
8567
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8568
8568
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8572,12 +8572,12 @@
|
|
|
8572
8572
|
}));
|
|
8573
8573
|
}
|
|
8574
8574
|
ownKeys2.forEach(function(key) {
|
|
8575
|
-
_define_property$
|
|
8575
|
+
_define_property$11(target, key, source[key]);
|
|
8576
8576
|
});
|
|
8577
8577
|
}
|
|
8578
8578
|
return target;
|
|
8579
8579
|
}
|
|
8580
|
-
function ownKeys$
|
|
8580
|
+
function ownKeys$O(object, enumerableOnly) {
|
|
8581
8581
|
var keys = Object.keys(object);
|
|
8582
8582
|
if (Object.getOwnPropertySymbols) {
|
|
8583
8583
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8590,12 +8590,12 @@
|
|
|
8590
8590
|
}
|
|
8591
8591
|
return keys;
|
|
8592
8592
|
}
|
|
8593
|
-
function _object_spread_props$
|
|
8593
|
+
function _object_spread_props$O(target, source) {
|
|
8594
8594
|
source = source != null ? source : {};
|
|
8595
8595
|
if (Object.getOwnPropertyDescriptors) {
|
|
8596
8596
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8597
8597
|
} else {
|
|
8598
|
-
ownKeys$
|
|
8598
|
+
ownKeys$O(Object(source)).forEach(function(key) {
|
|
8599
8599
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8600
8600
|
});
|
|
8601
8601
|
}
|
|
@@ -8603,7 +8603,7 @@
|
|
|
8603
8603
|
}
|
|
8604
8604
|
function Checkbox(param) {
|
|
8605
8605
|
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;
|
|
8606
|
-
var classes = useStyles$
|
|
8606
|
+
var classes = useStyles$O({
|
|
8607
8607
|
theme: tweakStyles
|
|
8608
8608
|
});
|
|
8609
8609
|
var hasAction = !isDisabled && !isReadonly;
|
|
@@ -8615,11 +8615,11 @@
|
|
|
8615
8615
|
}, event);
|
|
8616
8616
|
};
|
|
8617
8617
|
var _obj2;
|
|
8618
|
-
return /* @__PURE__ */ jsxs("label", _object_spread_props$
|
|
8619
|
-
className: clsx(classes.root, (_obj2 = {}, _define_property$
|
|
8618
|
+
return /* @__PURE__ */ jsxs("label", _object_spread_props$O(_object_spread$_({
|
|
8619
|
+
className: clsx(classes.root, (_obj2 = {}, _define_property$11(_obj2, classes.checked, isSelected), _define_property$11(_obj2, classes.invalid, isInvalid), _define_property$11(_obj2, classes.disabled, isDisabled), _define_property$11(_obj2, classes.labelPositionLeft, labelPosition === "left"), _obj2))
|
|
8620
8620
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
8621
8621
|
children: [
|
|
8622
|
-
/* @__PURE__ */ jsx("input", _object_spread$
|
|
8622
|
+
/* @__PURE__ */ jsx("input", _object_spread$_({
|
|
8623
8623
|
className: classes.input,
|
|
8624
8624
|
type: "checkbox",
|
|
8625
8625
|
checked: isSelected,
|
|
@@ -8642,7 +8642,7 @@
|
|
|
8642
8642
|
]
|
|
8643
8643
|
}));
|
|
8644
8644
|
}
|
|
8645
|
-
var useStyles$
|
|
8645
|
+
var useStyles$N = createThemedStyles("CloseButton", {
|
|
8646
8646
|
root: {
|
|
8647
8647
|
width: 40,
|
|
8648
8648
|
height: 40,
|
|
@@ -8668,7 +8668,7 @@
|
|
|
8668
8668
|
}
|
|
8669
8669
|
}
|
|
8670
8670
|
});
|
|
8671
|
-
function _define_property$
|
|
8671
|
+
function _define_property$10(obj, key, value) {
|
|
8672
8672
|
if (key in obj) {
|
|
8673
8673
|
Object.defineProperty(obj, key, {
|
|
8674
8674
|
value,
|
|
@@ -8681,7 +8681,7 @@
|
|
|
8681
8681
|
}
|
|
8682
8682
|
return obj;
|
|
8683
8683
|
}
|
|
8684
|
-
function _object_spread$
|
|
8684
|
+
function _object_spread$Z(target) {
|
|
8685
8685
|
for (var i = 1; i < arguments.length; i++) {
|
|
8686
8686
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8687
8687
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8691,12 +8691,12 @@
|
|
|
8691
8691
|
}));
|
|
8692
8692
|
}
|
|
8693
8693
|
ownKeys2.forEach(function(key) {
|
|
8694
|
-
_define_property$
|
|
8694
|
+
_define_property$10(target, key, source[key]);
|
|
8695
8695
|
});
|
|
8696
8696
|
}
|
|
8697
8697
|
return target;
|
|
8698
8698
|
}
|
|
8699
|
-
function ownKeys$
|
|
8699
|
+
function ownKeys$N(object, enumerableOnly) {
|
|
8700
8700
|
var keys = Object.keys(object);
|
|
8701
8701
|
if (Object.getOwnPropertySymbols) {
|
|
8702
8702
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8709,12 +8709,12 @@
|
|
|
8709
8709
|
}
|
|
8710
8710
|
return keys;
|
|
8711
8711
|
}
|
|
8712
|
-
function _object_spread_props$
|
|
8712
|
+
function _object_spread_props$N(target, source) {
|
|
8713
8713
|
source = source != null ? source : {};
|
|
8714
8714
|
if (Object.getOwnPropertyDescriptors) {
|
|
8715
8715
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8716
8716
|
} else {
|
|
8717
|
-
ownKeys$
|
|
8717
|
+
ownKeys$N(Object(source)).forEach(function(key) {
|
|
8718
8718
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8719
8719
|
});
|
|
8720
8720
|
}
|
|
@@ -8722,10 +8722,10 @@
|
|
|
8722
8722
|
}
|
|
8723
8723
|
var CloseButton = function(param) {
|
|
8724
8724
|
var tweakStyles = param.tweakStyles, testId = param.testId, data = param.data, _param_icon = param.icon, icon = _param_icon === void 0 ? "close" : _param_icon, onClose = param.onClose;
|
|
8725
|
-
var classes = useStyles$
|
|
8725
|
+
var classes = useStyles$N({
|
|
8726
8726
|
theme: tweakStyles
|
|
8727
8727
|
});
|
|
8728
|
-
return /* @__PURE__ */ jsx("button", _object_spread_props$
|
|
8728
|
+
return /* @__PURE__ */ jsx("button", _object_spread_props$N(_object_spread$Z({
|
|
8729
8729
|
type: "button",
|
|
8730
8730
|
className: classes.root,
|
|
8731
8731
|
onClick: onClose
|
|
@@ -8735,7 +8735,7 @@
|
|
|
8735
8735
|
})
|
|
8736
8736
|
}));
|
|
8737
8737
|
};
|
|
8738
|
-
var useStyles$
|
|
8738
|
+
var useStyles$M = createThemedStyles({
|
|
8739
8739
|
root: {
|
|
8740
8740
|
display: "flex",
|
|
8741
8741
|
flexWrap: "wrap"
|
|
@@ -8828,7 +8828,7 @@
|
|
|
8828
8828
|
return _array_like_to_array$k(o, minLen);
|
|
8829
8829
|
}
|
|
8830
8830
|
var Colors = function() {
|
|
8831
|
-
var classes = useStyles$
|
|
8831
|
+
var classes = useStyles$M();
|
|
8832
8832
|
var theme = useTheme();
|
|
8833
8833
|
var _theme_colors = theme.colors, colors2 = _theme_colors === void 0 ? {} : _theme_colors;
|
|
8834
8834
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -8858,7 +8858,7 @@
|
|
|
8858
8858
|
})
|
|
8859
8859
|
});
|
|
8860
8860
|
};
|
|
8861
|
-
var useStyles$
|
|
8861
|
+
var useStyles$L = createThemedStyles("CssBaseline", {
|
|
8862
8862
|
"@global html, body": {
|
|
8863
8863
|
fontFamily: "Arial, sans-serif",
|
|
8864
8864
|
color: colors.FONT_MAIN,
|
|
@@ -8867,7 +8867,7 @@
|
|
|
8867
8867
|
},
|
|
8868
8868
|
root: {}
|
|
8869
8869
|
});
|
|
8870
|
-
function _define_property
|
|
8870
|
+
function _define_property$$(obj, key, value) {
|
|
8871
8871
|
if (key in obj) {
|
|
8872
8872
|
Object.defineProperty(obj, key, {
|
|
8873
8873
|
value,
|
|
@@ -8880,7 +8880,7 @@
|
|
|
8880
8880
|
}
|
|
8881
8881
|
return obj;
|
|
8882
8882
|
}
|
|
8883
|
-
function _object_spread$
|
|
8883
|
+
function _object_spread$Y(target) {
|
|
8884
8884
|
for (var i = 1; i < arguments.length; i++) {
|
|
8885
8885
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8886
8886
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8890,21 +8890,21 @@
|
|
|
8890
8890
|
}));
|
|
8891
8891
|
}
|
|
8892
8892
|
ownKeys2.forEach(function(key) {
|
|
8893
|
-
_define_property
|
|
8893
|
+
_define_property$$(target, key, source[key]);
|
|
8894
8894
|
});
|
|
8895
8895
|
}
|
|
8896
8896
|
return target;
|
|
8897
8897
|
}
|
|
8898
8898
|
var CssBaseline = function(param) {
|
|
8899
8899
|
var data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
8900
|
-
var classes = useStyles$
|
|
8900
|
+
var classes = useStyles$L({
|
|
8901
8901
|
theme: tweakStyles
|
|
8902
8902
|
});
|
|
8903
|
-
return /* @__PURE__ */ jsx("div", _object_spread$
|
|
8903
|
+
return /* @__PURE__ */ jsx("div", _object_spread$Y({
|
|
8904
8904
|
className: classes.root
|
|
8905
8905
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)));
|
|
8906
8906
|
};
|
|
8907
|
-
var useStyles$
|
|
8907
|
+
var useStyles$K = createThemedStyles("WithMessages", {
|
|
8908
8908
|
withMessages: {
|
|
8909
8909
|
display: "flex",
|
|
8910
8910
|
flexDirection: "column",
|
|
@@ -8938,7 +8938,7 @@
|
|
|
8938
8938
|
},
|
|
8939
8939
|
children: {}
|
|
8940
8940
|
});
|
|
8941
|
-
function _define_property$
|
|
8941
|
+
function _define_property$_(obj, key, value) {
|
|
8942
8942
|
if (key in obj) {
|
|
8943
8943
|
Object.defineProperty(obj, key, {
|
|
8944
8944
|
value,
|
|
@@ -8951,7 +8951,7 @@
|
|
|
8951
8951
|
}
|
|
8952
8952
|
return obj;
|
|
8953
8953
|
}
|
|
8954
|
-
function _object_spread$
|
|
8954
|
+
function _object_spread$X(target) {
|
|
8955
8955
|
for (var i = 1; i < arguments.length; i++) {
|
|
8956
8956
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8957
8957
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8961,12 +8961,12 @@
|
|
|
8961
8961
|
}));
|
|
8962
8962
|
}
|
|
8963
8963
|
ownKeys2.forEach(function(key) {
|
|
8964
|
-
_define_property$
|
|
8964
|
+
_define_property$_(target, key, source[key]);
|
|
8965
8965
|
});
|
|
8966
8966
|
}
|
|
8967
8967
|
return target;
|
|
8968
8968
|
}
|
|
8969
|
-
function ownKeys$
|
|
8969
|
+
function ownKeys$M(object, enumerableOnly) {
|
|
8970
8970
|
var keys = Object.keys(object);
|
|
8971
8971
|
if (Object.getOwnPropertySymbols) {
|
|
8972
8972
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8979,12 +8979,12 @@
|
|
|
8979
8979
|
}
|
|
8980
8980
|
return keys;
|
|
8981
8981
|
}
|
|
8982
|
-
function _object_spread_props$
|
|
8982
|
+
function _object_spread_props$M(target, source) {
|
|
8983
8983
|
source = source != null ? source : {};
|
|
8984
8984
|
if (Object.getOwnPropertyDescriptors) {
|
|
8985
8985
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8986
8986
|
} else {
|
|
8987
|
-
ownKeys$
|
|
8987
|
+
ownKeys$M(Object(source)).forEach(function(key) {
|
|
8988
8988
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8989
8989
|
});
|
|
8990
8990
|
}
|
|
@@ -8992,31 +8992,31 @@
|
|
|
8992
8992
|
}
|
|
8993
8993
|
var WithMessages = /* @__PURE__ */ React.forwardRef(function(param, ref) {
|
|
8994
8994
|
var children = param.children, infoMessage = param.infoMessage, errorMessage = param.errorMessage, controlsDirection = param.controlsDirection, tweakStyles = param.tweakStyles, testId = param.testId, data = param.data;
|
|
8995
|
-
var classes = useStyles$
|
|
8995
|
+
var classes = useStyles$K({
|
|
8996
8996
|
theme: tweakStyles
|
|
8997
8997
|
});
|
|
8998
8998
|
var shouldShowError = trueReactPlatformHelpers.isReactNodeNotEmpty(errorMessage);
|
|
8999
8999
|
var shouldShowInfo = trueReactPlatformHelpers.isReactNodeNotEmpty(infoMessage) && !shouldShowError;
|
|
9000
9000
|
var _obj2;
|
|
9001
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
9001
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$M(_object_spread$X({
|
|
9002
9002
|
ref,
|
|
9003
9003
|
className: classes.withMessages,
|
|
9004
9004
|
"data-invalid": shouldShowError ? true : void 0
|
|
9005
9005
|
}, trueReactPlatformHelpers.addDataAttributes(data, testId)), {
|
|
9006
9006
|
children: [
|
|
9007
9007
|
trueReactPlatformHelpers.isReactNodeNotEmpty(children) && /* @__PURE__ */ jsx("div", {
|
|
9008
|
-
className: clsx(classes.children, (_obj2 = {}, _define_property$
|
|
9008
|
+
className: clsx(classes.children, (_obj2 = {}, _define_property$_(_obj2, classes.horizontal, controlsDirection === "horizontal"), _define_property$_(_obj2, classes.vertical, controlsDirection === "vertical"), _obj2)),
|
|
9009
9009
|
children
|
|
9010
9010
|
}),
|
|
9011
9011
|
(shouldShowError || shouldShowInfo) && /* @__PURE__ */ jsxs("div", {
|
|
9012
9012
|
className: classes.message,
|
|
9013
9013
|
children: [
|
|
9014
|
-
shouldShowError && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
9014
|
+
shouldShowError && /* @__PURE__ */ jsx("div", _object_spread_props$M(_object_spread$X({
|
|
9015
9015
|
className: classes.error
|
|
9016
9016
|
}, trueReactPlatformHelpers.addDataTestId(testId, "error")), {
|
|
9017
9017
|
children: errorMessage
|
|
9018
9018
|
})),
|
|
9019
|
-
shouldShowInfo && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
9019
|
+
shouldShowInfo && /* @__PURE__ */ jsx("div", _object_spread_props$M(_object_spread$X({
|
|
9020
9020
|
className: classes.info
|
|
9021
9021
|
}, trueReactPlatformHelpers.addDataTestId(testId, "info")), {
|
|
9022
9022
|
children: infoMessage
|
|
@@ -9035,7 +9035,7 @@
|
|
|
9035
9035
|
};
|
|
9036
9036
|
};
|
|
9037
9037
|
var CONTROL = dimensions.CONTROL, Z_INDEX$1 = dimensions.Z_INDEX;
|
|
9038
|
-
var useStyles$
|
|
9038
|
+
var useStyles$J = createThemedStyles("ControlWrapper", {
|
|
9039
9039
|
controlWrapper: {
|
|
9040
9040
|
"--control-height": "".concat(CONTROL.HEIGHT - 2, "px"),
|
|
9041
9041
|
// borders
|
|
@@ -9186,7 +9186,7 @@
|
|
|
9186
9186
|
borderRadius: 0
|
|
9187
9187
|
}
|
|
9188
9188
|
});
|
|
9189
|
-
function _define_property$
|
|
9189
|
+
function _define_property$Z(obj, key, value) {
|
|
9190
9190
|
if (key in obj) {
|
|
9191
9191
|
Object.defineProperty(obj, key, {
|
|
9192
9192
|
value,
|
|
@@ -9199,7 +9199,7 @@
|
|
|
9199
9199
|
}
|
|
9200
9200
|
return obj;
|
|
9201
9201
|
}
|
|
9202
|
-
function _object_spread$
|
|
9202
|
+
function _object_spread$W(target) {
|
|
9203
9203
|
for (var i = 1; i < arguments.length; i++) {
|
|
9204
9204
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9205
9205
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9209,12 +9209,12 @@
|
|
|
9209
9209
|
}));
|
|
9210
9210
|
}
|
|
9211
9211
|
ownKeys2.forEach(function(key) {
|
|
9212
|
-
_define_property$
|
|
9212
|
+
_define_property$Z(target, key, source[key]);
|
|
9213
9213
|
});
|
|
9214
9214
|
}
|
|
9215
9215
|
return target;
|
|
9216
9216
|
}
|
|
9217
|
-
function ownKeys$
|
|
9217
|
+
function ownKeys$L(object, enumerableOnly) {
|
|
9218
9218
|
var keys = Object.keys(object);
|
|
9219
9219
|
if (Object.getOwnPropertySymbols) {
|
|
9220
9220
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9227,12 +9227,12 @@
|
|
|
9227
9227
|
}
|
|
9228
9228
|
return keys;
|
|
9229
9229
|
}
|
|
9230
|
-
function _object_spread_props$
|
|
9230
|
+
function _object_spread_props$L(target, source) {
|
|
9231
9231
|
source = source != null ? source : {};
|
|
9232
9232
|
if (Object.getOwnPropertyDescriptors) {
|
|
9233
9233
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9234
9234
|
} else {
|
|
9235
|
-
ownKeys$
|
|
9235
|
+
ownKeys$L(Object(source)).forEach(function(key) {
|
|
9236
9236
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9237
9237
|
});
|
|
9238
9238
|
}
|
|
@@ -9240,7 +9240,7 @@
|
|
|
9240
9240
|
}
|
|
9241
9241
|
var ControlWrapper = function(param) {
|
|
9242
9242
|
var label = param.label, icon = param.icon, groupPlacement = param.groupPlacement, isInvalid = param.isInvalid, isFocused = param.isFocused, isRequired = param.isRequired, isLoading = param.isLoading, isFullWidth = param.isFullWidth, isDisabled = param.isDisabled, hasValue = param.hasValue, size = param.size, testId = param.testId, children = param.children, tweakStyles = param.tweakStyles, data = param.data, onClear = param.onClear;
|
|
9243
|
-
var classes = useStyles$
|
|
9243
|
+
var classes = useStyles$J({
|
|
9244
9244
|
theme: tweakStyles
|
|
9245
9245
|
});
|
|
9246
9246
|
var icons = trueReactPlatformHelpers.getArray(icon).map(convertToControlWrapperIcon);
|
|
@@ -9254,12 +9254,12 @@
|
|
|
9254
9254
|
currentComponentName: "ControlWrapper"
|
|
9255
9255
|
});
|
|
9256
9256
|
var _obj2, _obj1;
|
|
9257
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
9258
|
-
className: clsx(classes.controlWrapper, trueReactPlatformHelpers.isNotEmpty(groupPlacement) && classes["placement-".concat(groupPlacement)], trueReactPlatformHelpers.isNotEmpty(size) && classes[size], (_obj2 = {}, _define_property$
|
|
9257
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$L(_object_spread$W({
|
|
9258
|
+
className: clsx(classes.controlWrapper, trueReactPlatformHelpers.isNotEmpty(groupPlacement) && classes["placement-".concat(groupPlacement)], trueReactPlatformHelpers.isNotEmpty(size) && classes[size], (_obj2 = {}, _define_property$Z(_obj2, classes.invalid, isInvalid), _define_property$Z(_obj2, classes.focused, isFocused), _define_property$Z(_obj2, classes.withValue, hasValue), _define_property$Z(_obj2, classes.disabled, isDisabled), _define_property$Z(_obj2, classes.loading, isLoading), _define_property$Z(_obj2, classes.minContent, !isFullWidth), _obj2))
|
|
9259
9259
|
}, trueReactPlatformHelpers.addDataAttributes(data, testId)), {
|
|
9260
9260
|
children: [
|
|
9261
9261
|
trueReactPlatformHelpers.isReactNodeNotEmpty(label) && /* @__PURE__ */ jsx("div", {
|
|
9262
|
-
className: clsx(classes.label, (_obj1 = {}, _define_property$
|
|
9262
|
+
className: clsx(classes.label, (_obj1 = {}, _define_property$Z(_obj1, classes.requiredLabel, isRequired), _define_property$Z(_obj1, classes.disabledLabel, isDisabled), _define_property$Z(_obj1, classes.activeLabel, isActive), _obj1)),
|
|
9263
9263
|
children: label
|
|
9264
9264
|
}),
|
|
9265
9265
|
/* @__PURE__ */ jsxs("div", {
|
|
@@ -9269,7 +9269,7 @@
|
|
|
9269
9269
|
hasControls && /* @__PURE__ */ jsxs("div", {
|
|
9270
9270
|
className: classes.controls,
|
|
9271
9271
|
children: [
|
|
9272
|
-
hasClearButton && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
9272
|
+
hasClearButton && /* @__PURE__ */ jsx("div", _object_spread_props$L(_object_spread$W({
|
|
9273
9273
|
className: clsx(classes.icon, classes.clearIcon, classes.activeIcon)
|
|
9274
9274
|
}, trueReactPlatformHelpers.addClickHandler(onClear), trueReactPlatformHelpers.addDataTestId(testId, "clear")), {
|
|
9275
9275
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -9282,8 +9282,8 @@
|
|
|
9282
9282
|
hasIcons && icons.map(function(param2, index) {
|
|
9283
9283
|
var key = param2.key, iconComponent = param2.iconComponent, onClick = param2.onClick, _param_shouldResetSize = param2.shouldResetSize, shouldResetSize = _param_shouldResetSize === void 0 ? false : _param_shouldResetSize;
|
|
9284
9284
|
var _obj3;
|
|
9285
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
9286
|
-
className: clsx(classes.icon, classes.endIcon, (_obj3 = {}, _define_property$
|
|
9285
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$L(_object_spread$W({
|
|
9286
|
+
className: clsx(classes.icon, classes.endIcon, (_obj3 = {}, _define_property$Z(_obj3, classes.activeIcon, !isDisabled && trueReactPlatformHelpers.isNotEmpty(onClick)), _define_property$Z(_obj3, classes.customIcon, shouldResetSize), _obj3))
|
|
9287
9287
|
}, trueReactPlatformHelpers.addClickHandler(onClick, !isDisabled), trueReactPlatformHelpers.addDataTestId(testId, "icon")), {
|
|
9288
9288
|
children: /* @__PURE__ */ jsx("div", {
|
|
9289
9289
|
className: classes.iconInner,
|
|
@@ -9291,7 +9291,7 @@
|
|
|
9291
9291
|
})
|
|
9292
9292
|
}), key !== null && key !== void 0 ? key : index);
|
|
9293
9293
|
}),
|
|
9294
|
-
isLoading && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
9294
|
+
isLoading && /* @__PURE__ */ jsx("div", _object_spread_props$L(_object_spread$W({
|
|
9295
9295
|
className: clsx(classes.icon, classes.loader)
|
|
9296
9296
|
}, trueReactPlatformHelpers.addDataTestId(testId, "loading")), {
|
|
9297
9297
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -9309,7 +9309,7 @@
|
|
|
9309
9309
|
}));
|
|
9310
9310
|
};
|
|
9311
9311
|
var PADDING_WITH_UNITS = 8;
|
|
9312
|
-
var useStyles$
|
|
9312
|
+
var useStyles$I = createThemedStyles("Input", {
|
|
9313
9313
|
inputContent: {
|
|
9314
9314
|
height: "var(--control-height)",
|
|
9315
9315
|
padding: [
|
|
@@ -9422,7 +9422,7 @@
|
|
|
9422
9422
|
});
|
|
9423
9423
|
};
|
|
9424
9424
|
}
|
|
9425
|
-
function _define_property$
|
|
9425
|
+
function _define_property$Y(obj, key, value) {
|
|
9426
9426
|
if (key in obj) {
|
|
9427
9427
|
Object.defineProperty(obj, key, {
|
|
9428
9428
|
value,
|
|
@@ -9466,7 +9466,7 @@
|
|
|
9466
9466
|
function _non_iterable_rest$j() {
|
|
9467
9467
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9468
9468
|
}
|
|
9469
|
-
function _object_spread$
|
|
9469
|
+
function _object_spread$V(target) {
|
|
9470
9470
|
for (var i = 1; i < arguments.length; i++) {
|
|
9471
9471
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9472
9472
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9476,15 +9476,15 @@
|
|
|
9476
9476
|
}));
|
|
9477
9477
|
}
|
|
9478
9478
|
ownKeys2.forEach(function(key) {
|
|
9479
|
-
_define_property$
|
|
9479
|
+
_define_property$Y(target, key, source[key]);
|
|
9480
9480
|
});
|
|
9481
9481
|
}
|
|
9482
9482
|
return target;
|
|
9483
9483
|
}
|
|
9484
|
-
function _object_without_properties$
|
|
9484
|
+
function _object_without_properties$k(source, excluded) {
|
|
9485
9485
|
if (source == null)
|
|
9486
9486
|
return {};
|
|
9487
|
-
var target = _object_without_properties_loose$
|
|
9487
|
+
var target = _object_without_properties_loose$k(source, excluded);
|
|
9488
9488
|
var key, i;
|
|
9489
9489
|
if (Object.getOwnPropertySymbols) {
|
|
9490
9490
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -9499,7 +9499,7 @@
|
|
|
9499
9499
|
}
|
|
9500
9500
|
return target;
|
|
9501
9501
|
}
|
|
9502
|
-
function _object_without_properties_loose$
|
|
9502
|
+
function _object_without_properties_loose$k(source, excluded) {
|
|
9503
9503
|
if (source == null)
|
|
9504
9504
|
return {};
|
|
9505
9505
|
var target = {};
|
|
@@ -9632,7 +9632,7 @@
|
|
|
9632
9632
|
}
|
|
9633
9633
|
}
|
|
9634
9634
|
var InputBase = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
9635
|
-
var _param_value = _param.value, value = _param_value === void 0 ? "" : _param_value, placeholder = _param.placeholder, label = _param.label, _param_type = _param.type, type = _param_type === void 0 ? "text" : _param_type, isDisabled = _param.isDisabled, autoComplete = _param.autoComplete, initialInputMode = _param.inputMode, isReadonly = _param.isReadonly, isInvalid = _param.isInvalid, isActive = _param.isActive, isClearable = _param.isClearable, isAutoSized = _param.isAutoSized, name = _param.name, tweakStyles = _param.tweakStyles, maxLength = _param.maxLength, shouldFocusOnMount = _param.shouldFocusOnMount, units = _param.units, testId = _param.testId, tabIndex = _param.tabIndex, shouldAlwaysShowPlaceholder = _param.shouldAlwaysShowPlaceholder, onChange = _param.onChange, onPaste = _param.onPaste, onFocus = _param.onFocus, onBlur = _param.onBlur, onKeyDown = _param.onKeyDown, mask = _param.mask, maskPlaceholder = _param.maskPlaceholder, alwaysShowMask = _param.alwaysShowMask, beforeMaskedStateChange = _param.beforeMaskedStateChange, data = _param.data, groupPlacement = _param.groupPlacement, icon = _param.icon, isLoading = _param.isLoading, isRequired = _param.isRequired, size = _param.size, children = _param.children, inputProps = _object_without_properties$
|
|
9635
|
+
var _param_value = _param.value, value = _param_value === void 0 ? "" : _param_value, placeholder = _param.placeholder, label = _param.label, _param_type = _param.type, type = _param_type === void 0 ? "text" : _param_type, isDisabled = _param.isDisabled, autoComplete = _param.autoComplete, initialInputMode = _param.inputMode, isReadonly = _param.isReadonly, isInvalid = _param.isInvalid, isActive = _param.isActive, isClearable = _param.isClearable, isAutoSized = _param.isAutoSized, name = _param.name, tweakStyles = _param.tweakStyles, maxLength = _param.maxLength, shouldFocusOnMount = _param.shouldFocusOnMount, units = _param.units, testId = _param.testId, tabIndex = _param.tabIndex, shouldAlwaysShowPlaceholder = _param.shouldAlwaysShowPlaceholder, onChange = _param.onChange, onPaste = _param.onPaste, onFocus = _param.onFocus, onBlur = _param.onBlur, onKeyDown = _param.onKeyDown, mask = _param.mask, maskPlaceholder = _param.maskPlaceholder, alwaysShowMask = _param.alwaysShowMask, beforeMaskedStateChange = _param.beforeMaskedStateChange, data = _param.data, groupPlacement = _param.groupPlacement, icon = _param.icon, isLoading = _param.isLoading, isRequired = _param.isRequired, size = _param.size, children = _param.children, inputProps = _object_without_properties$k(_param, [
|
|
9636
9636
|
"value",
|
|
9637
9637
|
"placeholder",
|
|
9638
9638
|
"label",
|
|
@@ -9670,7 +9670,7 @@
|
|
|
9670
9670
|
"size",
|
|
9671
9671
|
"children"
|
|
9672
9672
|
]);
|
|
9673
|
-
var classes = useStyles$
|
|
9673
|
+
var classes = useStyles$I({
|
|
9674
9674
|
theme: tweakStyles
|
|
9675
9675
|
});
|
|
9676
9676
|
var tweakControlWrapperStyles = useTweakStyles({
|
|
@@ -9695,7 +9695,7 @@
|
|
|
9695
9695
|
var hasUnits = trueReactPlatformHelpers.isReactNodeNotEmpty(units);
|
|
9696
9696
|
var hasPlaceholder = (!trueReactPlatformHelpers.isReactNodeNotEmpty(label) || hasFocus || shouldAlwaysShowPlaceholder) && trueReactPlatformHelpers.isStringNotEmpty(placeholder);
|
|
9697
9697
|
var handleChange = function(event) {
|
|
9698
|
-
onChange(event.currentTarget.value, event);
|
|
9698
|
+
onChange(event.currentTarget.value, event, "change");
|
|
9699
9699
|
};
|
|
9700
9700
|
var handleFocus = function(event) {
|
|
9701
9701
|
setFocused(true);
|
|
@@ -9713,7 +9713,7 @@
|
|
|
9713
9713
|
case 0:
|
|
9714
9714
|
return [
|
|
9715
9715
|
4,
|
|
9716
|
-
onChange("", event)
|
|
9716
|
+
onChange("", event, "clear")
|
|
9717
9717
|
];
|
|
9718
9718
|
case 1:
|
|
9719
9719
|
_state.sent();
|
|
@@ -9734,8 +9734,8 @@
|
|
|
9734
9734
|
units
|
|
9735
9735
|
]);
|
|
9736
9736
|
var _obj2;
|
|
9737
|
-
var props = _object_spread$
|
|
9738
|
-
className: clsx(classes.input, (_obj2 = {}, _define_property$
|
|
9737
|
+
var props = _object_spread$V({
|
|
9738
|
+
className: clsx(classes.input, (_obj2 = {}, _define_property$Y(_obj2, classes.withUnits, hasUnits), _define_property$Y(_obj2, classes.withValue, hasValue), _define_property$Y(_obj2, classes.withLabel, trueReactPlatformHelpers.isReactNodeNotEmpty(label)), _define_property$Y(_obj2, classes.autoSized, isAutoSized), _define_property$Y(_obj2, classes.focusedInput, isFocused), _define_property$Y(_obj2, classes.disabledInput, isDisabled), _define_property$Y(_obj2, classes.invalidInput, isInvalid), _obj2)),
|
|
9739
9739
|
style: hasUnits && hasValue ? {
|
|
9740
9740
|
"--units-width": "".concat(unitsWidth, "px")
|
|
9741
9741
|
} : void 0,
|
|
@@ -9763,13 +9763,13 @@
|
|
|
9763
9763
|
}, []);
|
|
9764
9764
|
var inputContent = /* @__PURE__ */ jsxs(Fragment, {
|
|
9765
9765
|
children: [
|
|
9766
|
-
trueReactPlatformHelpers.isNotEmpty(mask) ? /* @__PURE__ */ jsx(InputMask, _object_spread$
|
|
9766
|
+
trueReactPlatformHelpers.isNotEmpty(mask) ? /* @__PURE__ */ jsx(InputMask, _object_spread$V({
|
|
9767
9767
|
ref: mergedRef,
|
|
9768
9768
|
mask,
|
|
9769
9769
|
maskPlaceholder,
|
|
9770
9770
|
alwaysShowMask,
|
|
9771
9771
|
beforeMaskedStateChange
|
|
9772
|
-
}, props)) : /* @__PURE__ */ jsx("input", _object_spread$
|
|
9772
|
+
}, props)) : /* @__PURE__ */ jsx("input", _object_spread$V({
|
|
9773
9773
|
ref: mergedRef
|
|
9774
9774
|
}, props)),
|
|
9775
9775
|
(hasUnits || isAutoSized) && /* @__PURE__ */ jsx("div", {
|
|
@@ -9807,7 +9807,7 @@
|
|
|
9807
9807
|
]
|
|
9808
9808
|
});
|
|
9809
9809
|
});
|
|
9810
|
-
function _define_property$
|
|
9810
|
+
function _define_property$X(obj, key, value) {
|
|
9811
9811
|
if (key in obj) {
|
|
9812
9812
|
Object.defineProperty(obj, key, {
|
|
9813
9813
|
value,
|
|
@@ -9820,7 +9820,7 @@
|
|
|
9820
9820
|
}
|
|
9821
9821
|
return obj;
|
|
9822
9822
|
}
|
|
9823
|
-
function _object_spread$
|
|
9823
|
+
function _object_spread$U(target) {
|
|
9824
9824
|
for (var i = 1; i < arguments.length; i++) {
|
|
9825
9825
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9826
9826
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9830,12 +9830,12 @@
|
|
|
9830
9830
|
}));
|
|
9831
9831
|
}
|
|
9832
9832
|
ownKeys2.forEach(function(key) {
|
|
9833
|
-
_define_property$
|
|
9833
|
+
_define_property$X(target, key, source[key]);
|
|
9834
9834
|
});
|
|
9835
9835
|
}
|
|
9836
9836
|
return target;
|
|
9837
9837
|
}
|
|
9838
|
-
function ownKeys$
|
|
9838
|
+
function ownKeys$K(object, enumerableOnly) {
|
|
9839
9839
|
var keys = Object.keys(object);
|
|
9840
9840
|
if (Object.getOwnPropertySymbols) {
|
|
9841
9841
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9848,21 +9848,21 @@
|
|
|
9848
9848
|
}
|
|
9849
9849
|
return keys;
|
|
9850
9850
|
}
|
|
9851
|
-
function _object_spread_props$
|
|
9851
|
+
function _object_spread_props$K(target, source) {
|
|
9852
9852
|
source = source != null ? source : {};
|
|
9853
9853
|
if (Object.getOwnPropertyDescriptors) {
|
|
9854
9854
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9855
9855
|
} else {
|
|
9856
|
-
ownKeys$
|
|
9856
|
+
ownKeys$K(Object(source)).forEach(function(key) {
|
|
9857
9857
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9858
9858
|
});
|
|
9859
9859
|
}
|
|
9860
9860
|
return target;
|
|
9861
9861
|
}
|
|
9862
|
-
function _object_without_properties$
|
|
9862
|
+
function _object_without_properties$j(source, excluded) {
|
|
9863
9863
|
if (source == null)
|
|
9864
9864
|
return {};
|
|
9865
|
-
var target = _object_without_properties_loose$
|
|
9865
|
+
var target = _object_without_properties_loose$j(source, excluded);
|
|
9866
9866
|
var key, i;
|
|
9867
9867
|
if (Object.getOwnPropertySymbols) {
|
|
9868
9868
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -9877,7 +9877,7 @@
|
|
|
9877
9877
|
}
|
|
9878
9878
|
return target;
|
|
9879
9879
|
}
|
|
9880
|
-
function _object_without_properties_loose$
|
|
9880
|
+
function _object_without_properties_loose$j(source, excluded) {
|
|
9881
9881
|
if (source == null)
|
|
9882
9882
|
return {};
|
|
9883
9883
|
var target = {};
|
|
@@ -9892,7 +9892,7 @@
|
|
|
9892
9892
|
return target;
|
|
9893
9893
|
}
|
|
9894
9894
|
var Input = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
9895
|
-
var infoMessage = _param.infoMessage, errorMessage = _param.errorMessage, isInvalid = _param.isInvalid, testId = _param.testId, tweakStyles = _param.tweakStyles, inputProps = _object_without_properties$
|
|
9895
|
+
var infoMessage = _param.infoMessage, errorMessage = _param.errorMessage, isInvalid = _param.isInvalid, testId = _param.testId, tweakStyles = _param.tweakStyles, inputProps = _object_without_properties$j(_param, [
|
|
9896
9896
|
"infoMessage",
|
|
9897
9897
|
"errorMessage",
|
|
9898
9898
|
"isInvalid",
|
|
@@ -9908,7 +9908,7 @@
|
|
|
9908
9908
|
infoMessage,
|
|
9909
9909
|
testId: trueReactPlatformHelpers.getTestId(testId, "wrapper"),
|
|
9910
9910
|
tweakStyles: tweakWithMessagesStyles,
|
|
9911
|
-
children: /* @__PURE__ */ jsx(InputBase, _object_spread_props$
|
|
9911
|
+
children: /* @__PURE__ */ jsx(InputBase, _object_spread_props$K(_object_spread$U({}, inputProps), {
|
|
9912
9912
|
ref,
|
|
9913
9913
|
testId,
|
|
9914
9914
|
tweakStyles,
|
|
@@ -9918,7 +9918,7 @@
|
|
|
9918
9918
|
});
|
|
9919
9919
|
var EMPTY_DATE_INPUT_VALUE = "__.__.____";
|
|
9920
9920
|
var EMPTY_DATE_RANGE_INPUT_VALUE = "".concat(EMPTY_DATE_INPUT_VALUE, " - ").concat(EMPTY_DATE_INPUT_VALUE);
|
|
9921
|
-
var useStyles$
|
|
9921
|
+
var useStyles$H = createThemedStyles("DateInput", {
|
|
9922
9922
|
root: {
|
|
9923
9923
|
width: "100%",
|
|
9924
9924
|
height: "100%",
|
|
@@ -9926,7 +9926,7 @@
|
|
|
9926
9926
|
position: "relative"
|
|
9927
9927
|
}
|
|
9928
9928
|
});
|
|
9929
|
-
function _define_property$
|
|
9929
|
+
function _define_property$W(obj, key, value) {
|
|
9930
9930
|
if (key in obj) {
|
|
9931
9931
|
Object.defineProperty(obj, key, {
|
|
9932
9932
|
value,
|
|
@@ -9939,7 +9939,7 @@
|
|
|
9939
9939
|
}
|
|
9940
9940
|
return obj;
|
|
9941
9941
|
}
|
|
9942
|
-
function _object_spread$
|
|
9942
|
+
function _object_spread$T(target) {
|
|
9943
9943
|
for (var i = 1; i < arguments.length; i++) {
|
|
9944
9944
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9945
9945
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9949,12 +9949,12 @@
|
|
|
9949
9949
|
}));
|
|
9950
9950
|
}
|
|
9951
9951
|
ownKeys2.forEach(function(key) {
|
|
9952
|
-
_define_property$
|
|
9952
|
+
_define_property$W(target, key, source[key]);
|
|
9953
9953
|
});
|
|
9954
9954
|
}
|
|
9955
9955
|
return target;
|
|
9956
9956
|
}
|
|
9957
|
-
function ownKeys$
|
|
9957
|
+
function ownKeys$J(object, enumerableOnly) {
|
|
9958
9958
|
var keys = Object.keys(object);
|
|
9959
9959
|
if (Object.getOwnPropertySymbols) {
|
|
9960
9960
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9967,21 +9967,21 @@
|
|
|
9967
9967
|
}
|
|
9968
9968
|
return keys;
|
|
9969
9969
|
}
|
|
9970
|
-
function _object_spread_props$
|
|
9970
|
+
function _object_spread_props$J(target, source) {
|
|
9971
9971
|
source = source != null ? source : {};
|
|
9972
9972
|
if (Object.getOwnPropertyDescriptors) {
|
|
9973
9973
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9974
9974
|
} else {
|
|
9975
|
-
ownKeys$
|
|
9975
|
+
ownKeys$J(Object(source)).forEach(function(key) {
|
|
9976
9976
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9977
9977
|
});
|
|
9978
9978
|
}
|
|
9979
9979
|
return target;
|
|
9980
9980
|
}
|
|
9981
|
-
function _object_without_properties$
|
|
9981
|
+
function _object_without_properties$i(source, excluded) {
|
|
9982
9982
|
if (source == null)
|
|
9983
9983
|
return {};
|
|
9984
|
-
var target = _object_without_properties_loose$
|
|
9984
|
+
var target = _object_without_properties_loose$i(source, excluded);
|
|
9985
9985
|
var key, i;
|
|
9986
9986
|
if (Object.getOwnPropertySymbols) {
|
|
9987
9987
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -9996,7 +9996,7 @@
|
|
|
9996
9996
|
}
|
|
9997
9997
|
return target;
|
|
9998
9998
|
}
|
|
9999
|
-
function _object_without_properties_loose$
|
|
9999
|
+
function _object_without_properties_loose$i(source, excluded) {
|
|
10000
10000
|
if (source == null)
|
|
10001
10001
|
return {};
|
|
10002
10002
|
var target = {};
|
|
@@ -10011,7 +10011,7 @@
|
|
|
10011
10011
|
return target;
|
|
10012
10012
|
}
|
|
10013
10013
|
var DateInput = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
10014
|
-
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$
|
|
10014
|
+
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$i(_param, [
|
|
10015
10015
|
"date",
|
|
10016
10016
|
"startDate",
|
|
10017
10017
|
"endDate",
|
|
@@ -10024,7 +10024,7 @@
|
|
|
10024
10024
|
"onClick",
|
|
10025
10025
|
"onChange"
|
|
10026
10026
|
]);
|
|
10027
|
-
var classes = useStyles$
|
|
10027
|
+
var classes = useStyles$H({
|
|
10028
10028
|
theme: tweakStyles
|
|
10029
10029
|
});
|
|
10030
10030
|
var tweakInputStyles = useTweakStyles({
|
|
@@ -10051,11 +10051,11 @@
|
|
|
10051
10051
|
}
|
|
10052
10052
|
onChange === null || onChange === void 0 ? void 0 : onChange(event, value);
|
|
10053
10053
|
};
|
|
10054
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
10054
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$J(_object_spread$T({
|
|
10055
10055
|
className: clsx(classes.root, className)
|
|
10056
10056
|
}, trueReactPlatformHelpers.addDataAttributes(data)), {
|
|
10057
10057
|
onClick,
|
|
10058
|
-
children: /* @__PURE__ */ jsx(Input, _object_spread_props$
|
|
10058
|
+
children: /* @__PURE__ */ jsx(Input, _object_spread_props$J(_object_spread$T({}, inputProps), {
|
|
10059
10059
|
ref,
|
|
10060
10060
|
value: isRange ? "".concat(startDate).concat(endDate) : date,
|
|
10061
10061
|
mask: mask !== null && mask !== void 0 ? mask : isRange ? "99.99.9999 - 99.99.9999" : "99.99.9999",
|
|
@@ -10078,7 +10078,7 @@
|
|
|
10078
10078
|
throw new TypeError("Cannot call a class as a function");
|
|
10079
10079
|
}
|
|
10080
10080
|
}
|
|
10081
|
-
function _define_property$
|
|
10081
|
+
function _define_property$V(obj, key, value) {
|
|
10082
10082
|
if (key in obj) {
|
|
10083
10083
|
Object.defineProperty(obj, key, {
|
|
10084
10084
|
value,
|
|
@@ -10163,7 +10163,7 @@
|
|
|
10163
10163
|
_class_call_check$1(this, DatePickerBase2);
|
|
10164
10164
|
var _this;
|
|
10165
10165
|
_this = _super.call(this, props);
|
|
10166
|
-
_define_property$
|
|
10166
|
+
_define_property$V(_assert_this_initialized$1(_this), "handleClickOutside", void 0);
|
|
10167
10167
|
_this.handleClickOutside = _this.handleCalendarClickOutside;
|
|
10168
10168
|
_this.handleCalendarClickOutside = trueReactPlatformHelpers.doNothing;
|
|
10169
10169
|
return _this;
|
|
@@ -10192,7 +10192,7 @@
|
|
|
10192
10192
|
paddingLeft: 44
|
|
10193
10193
|
}
|
|
10194
10194
|
};
|
|
10195
|
-
function _define_property$
|
|
10195
|
+
function _define_property$U(obj, key, value) {
|
|
10196
10196
|
if (key in obj) {
|
|
10197
10197
|
Object.defineProperty(obj, key, {
|
|
10198
10198
|
value,
|
|
@@ -10205,7 +10205,7 @@
|
|
|
10205
10205
|
}
|
|
10206
10206
|
return obj;
|
|
10207
10207
|
}
|
|
10208
|
-
function _object_spread$
|
|
10208
|
+
function _object_spread$S(target) {
|
|
10209
10209
|
for (var i = 1; i < arguments.length; i++) {
|
|
10210
10210
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10211
10211
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10215,15 +10215,15 @@
|
|
|
10215
10215
|
}));
|
|
10216
10216
|
}
|
|
10217
10217
|
ownKeys2.forEach(function(key) {
|
|
10218
|
-
_define_property$
|
|
10218
|
+
_define_property$U(target, key, source[key]);
|
|
10219
10219
|
});
|
|
10220
10220
|
}
|
|
10221
10221
|
return target;
|
|
10222
10222
|
}
|
|
10223
|
-
function _object_without_properties$
|
|
10223
|
+
function _object_without_properties$h(source, excluded) {
|
|
10224
10224
|
if (source == null)
|
|
10225
10225
|
return {};
|
|
10226
|
-
var target = _object_without_properties_loose$
|
|
10226
|
+
var target = _object_without_properties_loose$h(source, excluded);
|
|
10227
10227
|
var key, i;
|
|
10228
10228
|
if (Object.getOwnPropertySymbols) {
|
|
10229
10229
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10238,7 +10238,7 @@
|
|
|
10238
10238
|
}
|
|
10239
10239
|
return target;
|
|
10240
10240
|
}
|
|
10241
|
-
function _object_without_properties_loose$
|
|
10241
|
+
function _object_without_properties_loose$h(source, excluded) {
|
|
10242
10242
|
if (source == null)
|
|
10243
10243
|
return {};
|
|
10244
10244
|
var target = {};
|
|
@@ -10253,7 +10253,7 @@
|
|
|
10253
10253
|
return target;
|
|
10254
10254
|
}
|
|
10255
10255
|
var SearchInput = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
10256
|
-
var _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? true : _param_isClearable, tweakStyles = _param.tweakStyles, props = _object_without_properties$
|
|
10256
|
+
var _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? true : _param_isClearable, tweakStyles = _param.tweakStyles, props = _object_without_properties$h(_param, [
|
|
10257
10257
|
"isClearable",
|
|
10258
10258
|
"tweakStyles"
|
|
10259
10259
|
]);
|
|
@@ -10263,7 +10263,7 @@
|
|
|
10263
10263
|
className: "tweakInput",
|
|
10264
10264
|
currentComponentName: "SearchInput"
|
|
10265
10265
|
});
|
|
10266
|
-
return /* @__PURE__ */ jsx(Input, _object_spread$
|
|
10266
|
+
return /* @__PURE__ */ jsx(Input, _object_spread$S({
|
|
10267
10267
|
ref,
|
|
10268
10268
|
icon: "search",
|
|
10269
10269
|
isClearable,
|
|
@@ -10307,7 +10307,7 @@
|
|
|
10307
10307
|
_defineProperties(Constructor, staticProps);
|
|
10308
10308
|
return Constructor;
|
|
10309
10309
|
}
|
|
10310
|
-
function _define_property$
|
|
10310
|
+
function _define_property$T(obj, key, value) {
|
|
10311
10311
|
if (key in obj) {
|
|
10312
10312
|
Object.defineProperty(obj, key, {
|
|
10313
10313
|
value,
|
|
@@ -10340,7 +10340,7 @@
|
|
|
10340
10340
|
if (superClass)
|
|
10341
10341
|
_set_prototype_of(subClass, superClass);
|
|
10342
10342
|
}
|
|
10343
|
-
function _object_spread$
|
|
10343
|
+
function _object_spread$R(target) {
|
|
10344
10344
|
for (var i = 1; i < arguments.length; i++) {
|
|
10345
10345
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10346
10346
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10350,15 +10350,15 @@
|
|
|
10350
10350
|
}));
|
|
10351
10351
|
}
|
|
10352
10352
|
ownKeys2.forEach(function(key) {
|
|
10353
|
-
_define_property$
|
|
10353
|
+
_define_property$T(target, key, source[key]);
|
|
10354
10354
|
});
|
|
10355
10355
|
}
|
|
10356
10356
|
return target;
|
|
10357
10357
|
}
|
|
10358
|
-
function _object_without_properties$
|
|
10358
|
+
function _object_without_properties$g(source, excluded) {
|
|
10359
10359
|
if (source == null)
|
|
10360
10360
|
return {};
|
|
10361
|
-
var target = _object_without_properties_loose$
|
|
10361
|
+
var target = _object_without_properties_loose$g(source, excluded);
|
|
10362
10362
|
var key, i;
|
|
10363
10363
|
if (Object.getOwnPropertySymbols) {
|
|
10364
10364
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10373,7 +10373,7 @@
|
|
|
10373
10373
|
}
|
|
10374
10374
|
return target;
|
|
10375
10375
|
}
|
|
10376
|
-
function _object_without_properties_loose$
|
|
10376
|
+
function _object_without_properties_loose$g(source, excluded) {
|
|
10377
10377
|
if (source == null)
|
|
10378
10378
|
return {};
|
|
10379
10379
|
var target = {};
|
|
@@ -10439,8 +10439,8 @@
|
|
|
10439
10439
|
_class_call_check(this, ScrollIntoViewIfNeeded2);
|
|
10440
10440
|
var _this;
|
|
10441
10441
|
_this = _super.apply(this, arguments);
|
|
10442
|
-
_define_property$
|
|
10443
|
-
_define_property$
|
|
10442
|
+
_define_property$T(_assert_this_initialized(_this), "node", React.createRef());
|
|
10443
|
+
_define_property$T(_assert_this_initialized(_this), "handleScrollIntoViewIfNeeded", function() {
|
|
10444
10444
|
var options = _this.props.options;
|
|
10445
10445
|
var _this_node = _this.node, node = _this_node.current;
|
|
10446
10446
|
if (node) {
|
|
@@ -10476,13 +10476,13 @@
|
|
|
10476
10476
|
_this_props.active;
|
|
10477
10477
|
var elementType = _this_props.elementType, children = _this_props.children;
|
|
10478
10478
|
_this_props.options;
|
|
10479
|
-
var wrapperProps = _object_without_properties$
|
|
10479
|
+
var wrapperProps = _object_without_properties$g(_this_props, [
|
|
10480
10480
|
"active",
|
|
10481
10481
|
"elementType",
|
|
10482
10482
|
"children",
|
|
10483
10483
|
"options"
|
|
10484
10484
|
]);
|
|
10485
|
-
return React.createElement(elementType !== null && elementType !== void 0 ? elementType : ScrollIntoViewIfNeededDefaultElementType, _object_spread$
|
|
10485
|
+
return React.createElement(elementType !== null && elementType !== void 0 ? elementType : ScrollIntoViewIfNeededDefaultElementType, _object_spread$R({
|
|
10486
10486
|
ref: this.node
|
|
10487
10487
|
}, wrapperProps), children);
|
|
10488
10488
|
}
|
|
@@ -10490,10 +10490,10 @@
|
|
|
10490
10490
|
]);
|
|
10491
10491
|
return ScrollIntoViewIfNeeded2;
|
|
10492
10492
|
}(React.PureComponent);
|
|
10493
|
-
_define_property$
|
|
10493
|
+
_define_property$T(ScrollIntoViewIfNeeded, "defaultProps", ScrollIntoViewIfNeededDefaultProps);
|
|
10494
10494
|
var DEFAULT_OPTION_INDEX = -2;
|
|
10495
10495
|
var ALL_OPTION_INDEX = -1;
|
|
10496
|
-
function _define_property$
|
|
10496
|
+
function _define_property$S(obj, key, value) {
|
|
10497
10497
|
if (key in obj) {
|
|
10498
10498
|
Object.defineProperty(obj, key, {
|
|
10499
10499
|
value,
|
|
@@ -10506,7 +10506,7 @@
|
|
|
10506
10506
|
}
|
|
10507
10507
|
return obj;
|
|
10508
10508
|
}
|
|
10509
|
-
function _object_spread$
|
|
10509
|
+
function _object_spread$Q(target) {
|
|
10510
10510
|
for (var i = 1; i < arguments.length; i++) {
|
|
10511
10511
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10512
10512
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10516,7 +10516,7 @@
|
|
|
10516
10516
|
}));
|
|
10517
10517
|
}
|
|
10518
10518
|
ownKeys2.forEach(function(key) {
|
|
10519
|
-
_define_property$
|
|
10519
|
+
_define_property$S(target, key, source[key]);
|
|
10520
10520
|
});
|
|
10521
10521
|
}
|
|
10522
10522
|
return target;
|
|
@@ -10527,7 +10527,7 @@
|
|
|
10527
10527
|
10,
|
|
10528
10528
|
20
|
|
10529
10529
|
];
|
|
10530
|
-
var useStyles$
|
|
10530
|
+
var useStyles$G = createThemedStyles("SelectList", {
|
|
10531
10531
|
root: {
|
|
10532
10532
|
borderRadius: dimensions.BORDER_RADIUS_SMALL,
|
|
10533
10533
|
boxShadow: "0 13px 74px -27px rgba(0, 0, 0, 0.11)",
|
|
@@ -10547,7 +10547,7 @@
|
|
|
10547
10547
|
},
|
|
10548
10548
|
listHeader: {},
|
|
10549
10549
|
listFooter: {},
|
|
10550
|
-
list: _object_spread$
|
|
10550
|
+
list: _object_spread$Q({
|
|
10551
10551
|
height: "100%",
|
|
10552
10552
|
maxHeight: ROW_HEIGHT$1 * 6,
|
|
10553
10553
|
cursor: "pointer",
|
|
@@ -10590,7 +10590,7 @@
|
|
|
10590
10590
|
display: "none"
|
|
10591
10591
|
}
|
|
10592
10592
|
};
|
|
10593
|
-
function _define_property$
|
|
10593
|
+
function _define_property$R(obj, key, value) {
|
|
10594
10594
|
if (key in obj) {
|
|
10595
10595
|
Object.defineProperty(obj, key, {
|
|
10596
10596
|
value,
|
|
@@ -10603,7 +10603,7 @@
|
|
|
10603
10603
|
}
|
|
10604
10604
|
return obj;
|
|
10605
10605
|
}
|
|
10606
|
-
function _object_spread$
|
|
10606
|
+
function _object_spread$P(target) {
|
|
10607
10607
|
for (var i = 1; i < arguments.length; i++) {
|
|
10608
10608
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10609
10609
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10613,12 +10613,12 @@
|
|
|
10613
10613
|
}));
|
|
10614
10614
|
}
|
|
10615
10615
|
ownKeys2.forEach(function(key) {
|
|
10616
|
-
_define_property$
|
|
10616
|
+
_define_property$R(target, key, source[key]);
|
|
10617
10617
|
});
|
|
10618
10618
|
}
|
|
10619
10619
|
return target;
|
|
10620
10620
|
}
|
|
10621
|
-
function ownKeys$
|
|
10621
|
+
function ownKeys$I(object, enumerableOnly) {
|
|
10622
10622
|
var keys = Object.keys(object);
|
|
10623
10623
|
if (Object.getOwnPropertySymbols) {
|
|
10624
10624
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10631,12 +10631,12 @@
|
|
|
10631
10631
|
}
|
|
10632
10632
|
return keys;
|
|
10633
10633
|
}
|
|
10634
|
-
function _object_spread_props$
|
|
10634
|
+
function _object_spread_props$I(target, source) {
|
|
10635
10635
|
source = source != null ? source : {};
|
|
10636
10636
|
if (Object.getOwnPropertyDescriptors) {
|
|
10637
10637
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10638
10638
|
} else {
|
|
10639
|
-
ownKeys$
|
|
10639
|
+
ownKeys$I(Object(source)).forEach(function(key) {
|
|
10640
10640
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10641
10641
|
});
|
|
10642
10642
|
}
|
|
@@ -10656,13 +10656,13 @@
|
|
|
10656
10656
|
children
|
|
10657
10657
|
});
|
|
10658
10658
|
var _obj2;
|
|
10659
|
-
return /* @__PURE__ */ jsx(ScrollIntoViewIfNeeded, _object_spread_props$
|
|
10659
|
+
return /* @__PURE__ */ jsx(ScrollIntoViewIfNeeded, _object_spread_props$I(_object_spread$P({
|
|
10660
10660
|
active: isFocused,
|
|
10661
10661
|
options: {
|
|
10662
10662
|
block: "nearest"
|
|
10663
10663
|
},
|
|
10664
|
-
className: clsx(classes.cell, (_obj2 = {}, _define_property$
|
|
10665
|
-
}, trueReactPlatformHelpers.addDataAttributes(_object_spread$
|
|
10664
|
+
className: clsx(classes.cell, (_obj2 = {}, _define_property$R(_obj2, classes.cellWithCheckbox, isMultiSelect), _define_property$R(_obj2, classes.focused, isFocused), _define_property$R(_obj2, classes.active, isActive && !isMultiSelect), _define_property$R(_obj2, classes.disabled, isDisabled), _obj2))
|
|
10665
|
+
}, trueReactPlatformHelpers.addDataAttributes(_object_spread$P({
|
|
10666
10666
|
disabled: isDisabled,
|
|
10667
10667
|
active: isActive,
|
|
10668
10668
|
focused: isFocused
|
|
@@ -10673,7 +10673,7 @@
|
|
|
10673
10673
|
children: isMultiSelect ? multiSelectContent : children
|
|
10674
10674
|
}));
|
|
10675
10675
|
};
|
|
10676
|
-
function _define_property$
|
|
10676
|
+
function _define_property$Q(obj, key, value) {
|
|
10677
10677
|
if (key in obj) {
|
|
10678
10678
|
Object.defineProperty(obj, key, {
|
|
10679
10679
|
value,
|
|
@@ -10686,7 +10686,7 @@
|
|
|
10686
10686
|
}
|
|
10687
10687
|
return obj;
|
|
10688
10688
|
}
|
|
10689
|
-
function _object_spread$
|
|
10689
|
+
function _object_spread$O(target) {
|
|
10690
10690
|
for (var i = 1; i < arguments.length; i++) {
|
|
10691
10691
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10692
10692
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10696,12 +10696,12 @@
|
|
|
10696
10696
|
}));
|
|
10697
10697
|
}
|
|
10698
10698
|
ownKeys2.forEach(function(key) {
|
|
10699
|
-
_define_property$
|
|
10699
|
+
_define_property$Q(target, key, source[key]);
|
|
10700
10700
|
});
|
|
10701
10701
|
}
|
|
10702
10702
|
return target;
|
|
10703
10703
|
}
|
|
10704
|
-
function ownKeys$
|
|
10704
|
+
function ownKeys$H(object, enumerableOnly) {
|
|
10705
10705
|
var keys = Object.keys(object);
|
|
10706
10706
|
if (Object.getOwnPropertySymbols) {
|
|
10707
10707
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10714,12 +10714,12 @@
|
|
|
10714
10714
|
}
|
|
10715
10715
|
return keys;
|
|
10716
10716
|
}
|
|
10717
|
-
function _object_spread_props$
|
|
10717
|
+
function _object_spread_props$H(target, source) {
|
|
10718
10718
|
source = source != null ? source : {};
|
|
10719
10719
|
if (Object.getOwnPropertyDescriptors) {
|
|
10720
10720
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10721
10721
|
} else {
|
|
10722
|
-
ownKeys$
|
|
10722
|
+
ownKeys$H(Object(source)).forEach(function(key) {
|
|
10723
10723
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10724
10724
|
});
|
|
10725
10725
|
}
|
|
@@ -10727,7 +10727,7 @@
|
|
|
10727
10727
|
}
|
|
10728
10728
|
function SelectList(param) {
|
|
10729
10729
|
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;
|
|
10730
|
-
var classes = useStyles$
|
|
10730
|
+
var classes = useStyles$G({
|
|
10731
10731
|
theme: tweakStyles
|
|
10732
10732
|
});
|
|
10733
10733
|
var isHeaderNotEmpty = trueReactPlatformHelpers.isReactNodeNotEmpty(customListHeader);
|
|
@@ -10756,13 +10756,13 @@
|
|
|
10756
10756
|
var _obj2;
|
|
10757
10757
|
return /* @__PURE__ */ jsxs(ScrollIntoViewIfNeeded, {
|
|
10758
10758
|
active: shouldScrollToList && !isMultiSelect,
|
|
10759
|
-
className: clsx(classes.root, (_obj2 = {}, _define_property$
|
|
10759
|
+
className: clsx(classes.root, (_obj2 = {}, _define_property$Q(_obj2, classes.withListHeader, isHeaderNotEmpty), _define_property$Q(_obj2, classes.withListFooter, isFooterNotEmpty), _obj2)),
|
|
10760
10760
|
children: [
|
|
10761
10761
|
isHeaderNotEmpty && /* @__PURE__ */ jsx("div", {
|
|
10762
10762
|
className: classes.listHeader,
|
|
10763
10763
|
children: customListHeader
|
|
10764
10764
|
}),
|
|
10765
|
-
/* @__PURE__ */ jsx("div", _object_spread_props$
|
|
10765
|
+
/* @__PURE__ */ jsx("div", _object_spread_props$H(_object_spread$O({
|
|
10766
10766
|
className: classes.list
|
|
10767
10767
|
}, trueReactPlatformHelpers.addDataTestId(testId)), {
|
|
10768
10768
|
tabIndex: -1,
|
|
@@ -10844,7 +10844,7 @@
|
|
|
10844
10844
|
};
|
|
10845
10845
|
};
|
|
10846
10846
|
var Z_INDEX = dimensions.Z_INDEX;
|
|
10847
|
-
var useStyles$
|
|
10847
|
+
var useStyles$F = createThemedStyles("Select", {
|
|
10848
10848
|
root: {
|
|
10849
10849
|
width: "100%",
|
|
10850
10850
|
position: "relative",
|
|
@@ -10956,7 +10956,7 @@
|
|
|
10956
10956
|
});
|
|
10957
10957
|
};
|
|
10958
10958
|
}
|
|
10959
|
-
function _define_property$
|
|
10959
|
+
function _define_property$P(obj, key, value) {
|
|
10960
10960
|
if (key in obj) {
|
|
10961
10961
|
Object.defineProperty(obj, key, {
|
|
10962
10962
|
value,
|
|
@@ -11007,7 +11007,7 @@
|
|
|
11007
11007
|
function _non_iterable_spread$7() {
|
|
11008
11008
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
11009
11009
|
}
|
|
11010
|
-
function _object_spread$
|
|
11010
|
+
function _object_spread$N(target) {
|
|
11011
11011
|
for (var i = 1; i < arguments.length; i++) {
|
|
11012
11012
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
11013
11013
|
var ownKeys2 = Object.keys(source);
|
|
@@ -11017,12 +11017,12 @@
|
|
|
11017
11017
|
}));
|
|
11018
11018
|
}
|
|
11019
11019
|
ownKeys2.forEach(function(key) {
|
|
11020
|
-
_define_property$
|
|
11020
|
+
_define_property$P(target, key, source[key]);
|
|
11021
11021
|
});
|
|
11022
11022
|
}
|
|
11023
11023
|
return target;
|
|
11024
11024
|
}
|
|
11025
|
-
function ownKeys$
|
|
11025
|
+
function ownKeys$G(object, enumerableOnly) {
|
|
11026
11026
|
var keys = Object.keys(object);
|
|
11027
11027
|
if (Object.getOwnPropertySymbols) {
|
|
11028
11028
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -11035,21 +11035,21 @@
|
|
|
11035
11035
|
}
|
|
11036
11036
|
return keys;
|
|
11037
11037
|
}
|
|
11038
|
-
function _object_spread_props$
|
|
11038
|
+
function _object_spread_props$G(target, source) {
|
|
11039
11039
|
source = source != null ? source : {};
|
|
11040
11040
|
if (Object.getOwnPropertyDescriptors) {
|
|
11041
11041
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
11042
11042
|
} else {
|
|
11043
|
-
ownKeys$
|
|
11043
|
+
ownKeys$G(Object(source)).forEach(function(key) {
|
|
11044
11044
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
11045
11045
|
});
|
|
11046
11046
|
}
|
|
11047
11047
|
return target;
|
|
11048
11048
|
}
|
|
11049
|
-
function _object_without_properties$
|
|
11049
|
+
function _object_without_properties$f(source, excluded) {
|
|
11050
11050
|
if (source == null)
|
|
11051
11051
|
return {};
|
|
11052
|
-
var target = _object_without_properties_loose$
|
|
11052
|
+
var target = _object_without_properties_loose$f(source, excluded);
|
|
11053
11053
|
var key, i;
|
|
11054
11054
|
if (Object.getOwnPropertySymbols) {
|
|
11055
11055
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -11064,7 +11064,7 @@
|
|
|
11064
11064
|
}
|
|
11065
11065
|
return target;
|
|
11066
11066
|
}
|
|
11067
|
-
function _object_without_properties_loose$
|
|
11067
|
+
function _object_without_properties_loose$f(source, excluded) {
|
|
11068
11068
|
if (source == null)
|
|
11069
11069
|
return {};
|
|
11070
11070
|
var target = {};
|
|
@@ -11201,7 +11201,7 @@
|
|
|
11201
11201
|
}
|
|
11202
11202
|
function Select(props) {
|
|
11203
11203
|
var _input_current;
|
|
11204
|
-
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, icon = props.icon, 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, infoMessage = props.infoMessage, errorMessage = props.errorMessage, inputProps = _object_without_properties$
|
|
11204
|
+
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, icon = props.icon, 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, infoMessage = props.infoMessage, errorMessage = props.errorMessage, inputProps = _object_without_properties$f(props, [
|
|
11205
11205
|
"options",
|
|
11206
11206
|
"isMultiSelect",
|
|
11207
11207
|
"value",
|
|
@@ -11238,10 +11238,10 @@
|
|
|
11238
11238
|
"infoMessage",
|
|
11239
11239
|
"errorMessage"
|
|
11240
11240
|
]);
|
|
11241
|
-
var classes = useStyles$
|
|
11241
|
+
var classes = useStyles$F({
|
|
11242
11242
|
theme: tweakStyles
|
|
11243
11243
|
});
|
|
11244
|
-
var _ref = searchInput !== null && searchInput !== void 0 ? searchInput : {}, tmp = _ref.shouldRenderInList, shouldRenderSearchInputInList = tmp === void 0 ? false : tmp, searchInputProps = _object_without_properties$
|
|
11244
|
+
var _ref = searchInput !== null && searchInput !== void 0 ? searchInput : {}, tmp = _ref.shouldRenderInList, shouldRenderSearchInputInList = tmp === void 0 ? false : tmp, searchInputProps = _object_without_properties$f(_ref, [
|
|
11245
11245
|
"shouldRenderInList"
|
|
11246
11246
|
]);
|
|
11247
11247
|
var hasSearchInputInList = optionsMode !== "normal" && shouldRenderSearchInputInList;
|
|
@@ -11595,7 +11595,7 @@
|
|
|
11595
11595
|
}, [
|
|
11596
11596
|
isOpen
|
|
11597
11597
|
]);
|
|
11598
|
-
var searchInputEl = hasSearchInputInList && /* @__PURE__ */ jsx(SearchInput, _object_spread$
|
|
11598
|
+
var searchInputEl = hasSearchInputInList && /* @__PURE__ */ jsx(SearchInput, _object_spread$N({
|
|
11599
11599
|
value: searchValue,
|
|
11600
11600
|
onChange: handleInputChange,
|
|
11601
11601
|
tweakStyles: tweakSearchInputStyles,
|
|
@@ -11608,8 +11608,8 @@
|
|
|
11608
11608
|
]
|
|
11609
11609
|
});
|
|
11610
11610
|
var _obj2;
|
|
11611
|
-
var listEl = /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
11612
|
-
className: clsx(classes.listWrapper, (_obj2 = {}, _define_property$
|
|
11611
|
+
var listEl = /* @__PURE__ */ jsx("div", _object_spread_props$G(_object_spread$N({
|
|
11612
|
+
className: clsx(classes.listWrapper, (_obj2 = {}, _define_property$P(_obj2, classes.withoutPopper, !shouldUsePopper), _define_property$P(_obj2, classes.listWrapperInBody, shouldRenderInBody), _obj2)),
|
|
11613
11613
|
ref: list,
|
|
11614
11614
|
style: popperData === null || popperData === void 0 ? void 0 : popperData.styles.popper,
|
|
11615
11615
|
tabIndex: 0,
|
|
@@ -11655,7 +11655,7 @@
|
|
|
11655
11655
|
className: clsx(classes.inputWrapper, isDisabled && classes.disabled),
|
|
11656
11656
|
onClick: isDisabled || isReadonly ? void 0 : handleOnClick,
|
|
11657
11657
|
ref: inputWrapper,
|
|
11658
|
-
children: /* @__PURE__ */ jsx(InputBase, _object_spread$
|
|
11658
|
+
children: /* @__PURE__ */ jsx(InputBase, _object_spread$N({
|
|
11659
11659
|
value: searchValue !== "" && !shouldRenderSearchInputInList ? searchValue : showedStringValue,
|
|
11660
11660
|
onChange: handleInputChange,
|
|
11661
11661
|
isActive: isListOpen || isActive,
|
|
@@ -11701,7 +11701,7 @@
|
|
|
11701
11701
|
})
|
|
11702
11702
|
});
|
|
11703
11703
|
}
|
|
11704
|
-
var useStyles$
|
|
11704
|
+
var useStyles$E = createThemedStyles("DatePickerHeader", {
|
|
11705
11705
|
btn: {
|
|
11706
11706
|
width: 36,
|
|
11707
11707
|
height: 36,
|
|
@@ -11744,7 +11744,7 @@
|
|
|
11744
11744
|
};
|
|
11745
11745
|
var DatePickerHeader = function(param) {
|
|
11746
11746
|
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;
|
|
11747
|
-
var classes = useStyles$
|
|
11747
|
+
var classes = useStyles$E({
|
|
11748
11748
|
theme: tweakStyles
|
|
11749
11749
|
});
|
|
11750
11750
|
var tweakSelectStyles = useTweakStyles({
|
|
@@ -11807,7 +11807,7 @@
|
|
|
11807
11807
|
]
|
|
11808
11808
|
});
|
|
11809
11809
|
};
|
|
11810
|
-
function _define_property$
|
|
11810
|
+
function _define_property$O(obj, key, value) {
|
|
11811
11811
|
if (key in obj) {
|
|
11812
11812
|
Object.defineProperty(obj, key, {
|
|
11813
11813
|
value,
|
|
@@ -11820,7 +11820,7 @@
|
|
|
11820
11820
|
}
|
|
11821
11821
|
return obj;
|
|
11822
11822
|
}
|
|
11823
|
-
function _object_spread$
|
|
11823
|
+
function _object_spread$M(target) {
|
|
11824
11824
|
for (var i = 1; i < arguments.length; i++) {
|
|
11825
11825
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
11826
11826
|
var ownKeys2 = Object.keys(source);
|
|
@@ -11830,13 +11830,13 @@
|
|
|
11830
11830
|
}));
|
|
11831
11831
|
}
|
|
11832
11832
|
ownKeys2.forEach(function(key) {
|
|
11833
|
-
_define_property$
|
|
11833
|
+
_define_property$O(target, key, source[key]);
|
|
11834
11834
|
});
|
|
11835
11835
|
}
|
|
11836
11836
|
return target;
|
|
11837
11837
|
}
|
|
11838
11838
|
var PopperContainer = function(props) {
|
|
11839
|
-
return /* @__PURE__ */ jsx(react.FloatingPortal, _object_spread$
|
|
11839
|
+
return /* @__PURE__ */ jsx(react.FloatingPortal, _object_spread$M({
|
|
11840
11840
|
root: document.body
|
|
11841
11841
|
}, props));
|
|
11842
11842
|
};
|
|
@@ -13039,7 +13039,7 @@
|
|
|
13039
13039
|
var areDatesEquals = function(date1, date2) {
|
|
13040
13040
|
return trueReactPlatformHelpers.isEmpty(date1) && trueReactPlatformHelpers.isEmpty(date2) || trueReactPlatformHelpers.isNotEmpty(date1) && trueReactPlatformHelpers.isNotEmpty(date2) && dateFns.isSameDay(date1, date2);
|
|
13041
13041
|
};
|
|
13042
|
-
var useStyles$
|
|
13042
|
+
var useStyles$D = createThemedStyles("DatePicker", {
|
|
13043
13043
|
root: {
|
|
13044
13044
|
width: "100%",
|
|
13045
13045
|
height: "100%"
|
|
@@ -13078,7 +13078,7 @@
|
|
|
13078
13078
|
if (Array.isArray(arr))
|
|
13079
13079
|
return _array_like_to_array$h(arr);
|
|
13080
13080
|
}
|
|
13081
|
-
function _define_property$
|
|
13081
|
+
function _define_property$N(obj, key, value) {
|
|
13082
13082
|
if (key in obj) {
|
|
13083
13083
|
Object.defineProperty(obj, key, {
|
|
13084
13084
|
value,
|
|
@@ -13129,7 +13129,7 @@
|
|
|
13129
13129
|
function _non_iterable_spread$6() {
|
|
13130
13130
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
13131
13131
|
}
|
|
13132
|
-
function _object_spread$
|
|
13132
|
+
function _object_spread$L(target) {
|
|
13133
13133
|
for (var i = 1; i < arguments.length; i++) {
|
|
13134
13134
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
13135
13135
|
var ownKeys2 = Object.keys(source);
|
|
@@ -13139,12 +13139,12 @@
|
|
|
13139
13139
|
}));
|
|
13140
13140
|
}
|
|
13141
13141
|
ownKeys2.forEach(function(key) {
|
|
13142
|
-
_define_property$
|
|
13142
|
+
_define_property$N(target, key, source[key]);
|
|
13143
13143
|
});
|
|
13144
13144
|
}
|
|
13145
13145
|
return target;
|
|
13146
13146
|
}
|
|
13147
|
-
function ownKeys$
|
|
13147
|
+
function ownKeys$F(object, enumerableOnly) {
|
|
13148
13148
|
var keys = Object.keys(object);
|
|
13149
13149
|
if (Object.getOwnPropertySymbols) {
|
|
13150
13150
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -13157,21 +13157,21 @@
|
|
|
13157
13157
|
}
|
|
13158
13158
|
return keys;
|
|
13159
13159
|
}
|
|
13160
|
-
function _object_spread_props$
|
|
13160
|
+
function _object_spread_props$F(target, source) {
|
|
13161
13161
|
source = source != null ? source : {};
|
|
13162
13162
|
if (Object.getOwnPropertyDescriptors) {
|
|
13163
13163
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
13164
13164
|
} else {
|
|
13165
|
-
ownKeys$
|
|
13165
|
+
ownKeys$F(Object(source)).forEach(function(key) {
|
|
13166
13166
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
13167
13167
|
});
|
|
13168
13168
|
}
|
|
13169
13169
|
return target;
|
|
13170
13170
|
}
|
|
13171
|
-
function _object_without_properties$
|
|
13171
|
+
function _object_without_properties$e(source, excluded) {
|
|
13172
13172
|
if (source == null)
|
|
13173
13173
|
return {};
|
|
13174
|
-
var target = _object_without_properties_loose$
|
|
13174
|
+
var target = _object_without_properties_loose$e(source, excluded);
|
|
13175
13175
|
var key, i;
|
|
13176
13176
|
if (Object.getOwnPropertySymbols) {
|
|
13177
13177
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -13186,7 +13186,7 @@
|
|
|
13186
13186
|
}
|
|
13187
13187
|
return target;
|
|
13188
13188
|
}
|
|
13189
|
-
function _object_without_properties_loose$
|
|
13189
|
+
function _object_without_properties_loose$e(source, excluded) {
|
|
13190
13190
|
if (source == null)
|
|
13191
13191
|
return {};
|
|
13192
13192
|
var target = {};
|
|
@@ -13220,7 +13220,7 @@
|
|
|
13220
13220
|
return _array_like_to_array$h(o, minLen);
|
|
13221
13221
|
}
|
|
13222
13222
|
var DatePicker = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
13223
|
-
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, locale = _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, 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, _param_popperModifiers = _param.popperModifiers, popperModifiers = _param_popperModifiers === void 0 ? [] : _param_popperModifiers, _param_popperPlacement = _param.popperPlacement, popperPlacement = _param_popperPlacement === void 0 ? "bottom-start" : _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$
|
|
13223
|
+
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, locale = _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, 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, _param_popperModifiers = _param.popperModifiers, popperModifiers = _param_popperModifiers === void 0 ? [] : _param_popperModifiers, _param_popperPlacement = _param.popperPlacement, popperPlacement = _param_popperPlacement === void 0 ? "bottom-start" : _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$e(_param, [
|
|
13224
13224
|
"data",
|
|
13225
13225
|
"selectedDate",
|
|
13226
13226
|
"minDate",
|
|
@@ -13267,7 +13267,7 @@
|
|
|
13267
13267
|
"onKeyDown",
|
|
13268
13268
|
"tweakStyles"
|
|
13269
13269
|
]);
|
|
13270
|
-
var classes = useStyles$
|
|
13270
|
+
var classes = useStyles$D({
|
|
13271
13271
|
theme: tweakStyles
|
|
13272
13272
|
});
|
|
13273
13273
|
var tweakDateInputStyles = useTweakStyles({
|
|
@@ -13295,7 +13295,7 @@
|
|
|
13295
13295
|
var _useState4 = _sliced_to_array$h(React.useState(endDate), 2), end2 = _useState4[0], setEnd = _useState4[1];
|
|
13296
13296
|
var _useState5 = _sliced_to_array$h(React.useState(formatDate(endDate)), 2), endDateValue = _useState5[0], setEndDateValue = _useState5[1];
|
|
13297
13297
|
var hasDateInputValue = isRange ? trueReactPlatformHelpers.isStringNotEmpty(startDateValue) || trueReactPlatformHelpers.isStringNotEmpty(endDateValue) : trueReactPlatformHelpers.isStringNotEmpty(dateValue);
|
|
13298
|
-
var dateInputProps = _object_spread$
|
|
13298
|
+
var dateInputProps = _object_spread$L(_object_spread_props$F(_object_spread$L({}, inputProps), {
|
|
13299
13299
|
isRange,
|
|
13300
13300
|
isDisabled,
|
|
13301
13301
|
isClearable,
|
|
@@ -13400,10 +13400,10 @@
|
|
|
13400
13400
|
var _datePickerRef_current;
|
|
13401
13401
|
return (_datePickerRef_current = datePickerRef.current) === null || _datePickerRef_current === void 0 ? void 0 : _datePickerRef_current.handleClickOutside(event);
|
|
13402
13402
|
}, OUTSIDE_CLICK_IGNORE_CLASS);
|
|
13403
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
13403
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$F(_object_spread$L({
|
|
13404
13404
|
className: classes.root
|
|
13405
13405
|
}, trueReactPlatformHelpers.addDataAttributes(data)), {
|
|
13406
|
-
children: /* @__PURE__ */ jsx(DatePickerBase, _object_spread$
|
|
13406
|
+
children: /* @__PURE__ */ jsx(DatePickerBase, _object_spread$L({
|
|
13407
13407
|
ref: componentRef,
|
|
13408
13408
|
minDate,
|
|
13409
13409
|
maxDate,
|
|
@@ -13434,7 +13434,7 @@
|
|
|
13434
13434
|
preventOpenOnFocus,
|
|
13435
13435
|
shouldCloseOnSelect,
|
|
13436
13436
|
customInputRef,
|
|
13437
|
-
customInput: /* @__PURE__ */ jsx(CustomInput, _object_spread$
|
|
13437
|
+
customInput: /* @__PURE__ */ jsx(CustomInput, _object_spread$L({}, dateInputProps)),
|
|
13438
13438
|
renderDayContents: function(day) {
|
|
13439
13439
|
return /* @__PURE__ */ jsx("div", {
|
|
13440
13440
|
className: classes.dayInner,
|
|
@@ -13442,7 +13442,7 @@
|
|
|
13442
13442
|
});
|
|
13443
13443
|
},
|
|
13444
13444
|
renderCustomHeader: renderCustomHeader !== null && renderCustomHeader !== void 0 ? renderCustomHeader : function(baseProps) {
|
|
13445
|
-
return /* @__PURE__ */ jsx(DatePickerHeader, _object_spread_props$
|
|
13445
|
+
return /* @__PURE__ */ jsx(DatePickerHeader, _object_spread_props$F(_object_spread$L({}, baseProps), {
|
|
13446
13446
|
months
|
|
13447
13447
|
}));
|
|
13448
13448
|
},
|
|
@@ -13481,7 +13481,7 @@
|
|
|
13481
13481
|
}));
|
|
13482
13482
|
});
|
|
13483
13483
|
var LINK_REGEXP = /(http(s?):\/\/(.*))(\s?)/;
|
|
13484
|
-
var useStyles$
|
|
13484
|
+
var useStyles$C = createThemedStyles("Description", {
|
|
13485
13485
|
root: {},
|
|
13486
13486
|
button: {
|
|
13487
13487
|
cursor: "pointer",
|
|
@@ -13522,7 +13522,7 @@
|
|
|
13522
13522
|
if (Array.isArray(arr))
|
|
13523
13523
|
return arr;
|
|
13524
13524
|
}
|
|
13525
|
-
function _define_property$
|
|
13525
|
+
function _define_property$M(obj, key, value) {
|
|
13526
13526
|
if (key in obj) {
|
|
13527
13527
|
Object.defineProperty(obj, key, {
|
|
13528
13528
|
value,
|
|
@@ -13566,7 +13566,7 @@
|
|
|
13566
13566
|
function _non_iterable_rest$g() {
|
|
13567
13567
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
13568
13568
|
}
|
|
13569
|
-
function _object_spread$
|
|
13569
|
+
function _object_spread$K(target) {
|
|
13570
13570
|
for (var i = 1; i < arguments.length; i++) {
|
|
13571
13571
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
13572
13572
|
var ownKeys2 = Object.keys(source);
|
|
@@ -13576,12 +13576,12 @@
|
|
|
13576
13576
|
}));
|
|
13577
13577
|
}
|
|
13578
13578
|
ownKeys2.forEach(function(key) {
|
|
13579
|
-
_define_property$
|
|
13579
|
+
_define_property$M(target, key, source[key]);
|
|
13580
13580
|
});
|
|
13581
13581
|
}
|
|
13582
13582
|
return target;
|
|
13583
13583
|
}
|
|
13584
|
-
function ownKeys$
|
|
13584
|
+
function ownKeys$E(object, enumerableOnly) {
|
|
13585
13585
|
var keys = Object.keys(object);
|
|
13586
13586
|
if (Object.getOwnPropertySymbols) {
|
|
13587
13587
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -13594,12 +13594,12 @@
|
|
|
13594
13594
|
}
|
|
13595
13595
|
return keys;
|
|
13596
13596
|
}
|
|
13597
|
-
function _object_spread_props$
|
|
13597
|
+
function _object_spread_props$E(target, source) {
|
|
13598
13598
|
source = source != null ? source : {};
|
|
13599
13599
|
if (Object.getOwnPropertyDescriptors) {
|
|
13600
13600
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
13601
13601
|
} else {
|
|
13602
|
-
ownKeys$
|
|
13602
|
+
ownKeys$E(Object(source)).forEach(function(key) {
|
|
13603
13603
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
13604
13604
|
});
|
|
13605
13605
|
}
|
|
@@ -13623,7 +13623,7 @@
|
|
|
13623
13623
|
}
|
|
13624
13624
|
var Description = function(param) {
|
|
13625
13625
|
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;
|
|
13626
|
-
var classes = useStyles$
|
|
13626
|
+
var classes = useStyles$C({
|
|
13627
13627
|
theme: tweakStyles
|
|
13628
13628
|
});
|
|
13629
13629
|
var isTooShort = text.length < truncateIndex;
|
|
@@ -13632,7 +13632,7 @@
|
|
|
13632
13632
|
var linkText = link && link[0];
|
|
13633
13633
|
var textWithNoLink = text.replace(LINK_REGEXP, "");
|
|
13634
13634
|
var shortText = text.slice(0, text.slice(0, truncateIndex).lastIndexOf(" "));
|
|
13635
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
13635
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$E(_object_spread$K({
|
|
13636
13636
|
className: classes.root
|
|
13637
13637
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
13638
13638
|
children: [
|
|
@@ -13671,7 +13671,7 @@
|
|
|
13671
13671
|
event.preventDefault();
|
|
13672
13672
|
event.stopPropagation();
|
|
13673
13673
|
};
|
|
13674
|
-
var useStyles$
|
|
13674
|
+
var useStyles$B = createThemedStyles("FileInput", {
|
|
13675
13675
|
root: {
|
|
13676
13676
|
display: "flex",
|
|
13677
13677
|
flexDirection: "column",
|
|
@@ -13754,7 +13754,7 @@
|
|
|
13754
13754
|
if (Array.isArray(arr))
|
|
13755
13755
|
return _array_like_to_array$f(arr);
|
|
13756
13756
|
}
|
|
13757
|
-
function _define_property$
|
|
13757
|
+
function _define_property$L(obj, key, value) {
|
|
13758
13758
|
if (key in obj) {
|
|
13759
13759
|
Object.defineProperty(obj, key, {
|
|
13760
13760
|
value,
|
|
@@ -13805,7 +13805,7 @@
|
|
|
13805
13805
|
function _non_iterable_spread$5() {
|
|
13806
13806
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
13807
13807
|
}
|
|
13808
|
-
function _object_spread$
|
|
13808
|
+
function _object_spread$J(target) {
|
|
13809
13809
|
for (var i = 1; i < arguments.length; i++) {
|
|
13810
13810
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
13811
13811
|
var ownKeys2 = Object.keys(source);
|
|
@@ -13815,12 +13815,12 @@
|
|
|
13815
13815
|
}));
|
|
13816
13816
|
}
|
|
13817
13817
|
ownKeys2.forEach(function(key) {
|
|
13818
|
-
_define_property$
|
|
13818
|
+
_define_property$L(target, key, source[key]);
|
|
13819
13819
|
});
|
|
13820
13820
|
}
|
|
13821
13821
|
return target;
|
|
13822
13822
|
}
|
|
13823
|
-
function ownKeys$
|
|
13823
|
+
function ownKeys$D(object, enumerableOnly) {
|
|
13824
13824
|
var keys = Object.keys(object);
|
|
13825
13825
|
if (Object.getOwnPropertySymbols) {
|
|
13826
13826
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -13833,12 +13833,12 @@
|
|
|
13833
13833
|
}
|
|
13834
13834
|
return keys;
|
|
13835
13835
|
}
|
|
13836
|
-
function _object_spread_props$
|
|
13836
|
+
function _object_spread_props$D(target, source) {
|
|
13837
13837
|
source = source != null ? source : {};
|
|
13838
13838
|
if (Object.getOwnPropertyDescriptors) {
|
|
13839
13839
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
13840
13840
|
} else {
|
|
13841
|
-
ownKeys$
|
|
13841
|
+
ownKeys$D(Object(source)).forEach(function(key) {
|
|
13842
13842
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
13843
13843
|
});
|
|
13844
13844
|
}
|
|
@@ -13865,7 +13865,7 @@
|
|
|
13865
13865
|
}
|
|
13866
13866
|
var FileInput = /* @__PURE__ */ React.forwardRef(function(param, ref) {
|
|
13867
13867
|
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;
|
|
13868
|
-
var classes = useStyles$
|
|
13868
|
+
var classes = useStyles$B({
|
|
13869
13869
|
theme: tweakStyles
|
|
13870
13870
|
});
|
|
13871
13871
|
var _useState = _sliced_to_array$f(React.useState(false), 2), isDragOver = _useState[0], setIsDragOver = _useState[1];
|
|
@@ -13897,16 +13897,16 @@
|
|
|
13897
13897
|
onDrop: handleDrop
|
|
13898
13898
|
} : void 0;
|
|
13899
13899
|
var _obj2;
|
|
13900
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
13900
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$D(_object_spread$J({
|
|
13901
13901
|
className: classes.root
|
|
13902
13902
|
}, addDataAttributes(data), trueReactPlatformHelpers.addDataTestId(testId)), {
|
|
13903
13903
|
children: [
|
|
13904
13904
|
trueReactPlatformHelpers.isReactNodeNotEmpty(label) && /* @__PURE__ */ jsx("div", {
|
|
13905
|
-
className: clsx(classes.label, _define_property$
|
|
13905
|
+
className: clsx(classes.label, _define_property$L({}, classes.requiredLabel, isRequired)),
|
|
13906
13906
|
children: label
|
|
13907
13907
|
}),
|
|
13908
|
-
!isReadOnly && /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
13909
|
-
className: clsx(classes.inputWrapper, (_obj2 = {}, _define_property$
|
|
13908
|
+
!isReadOnly && /* @__PURE__ */ jsxs("div", _object_spread_props$D(_object_spread$J({
|
|
13909
|
+
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))
|
|
13910
13910
|
}, dndHandlers), {
|
|
13911
13911
|
children: [
|
|
13912
13912
|
trueReactPlatformHelpers.isReactNodeNotEmpty(text) && /* @__PURE__ */ jsx("div", {
|
|
@@ -13915,7 +13915,7 @@
|
|
|
13915
13915
|
}),
|
|
13916
13916
|
/* @__PURE__ */ jsx("label", {
|
|
13917
13917
|
className: classes.inputLabel,
|
|
13918
|
-
children: /* @__PURE__ */ jsx("input", _object_spread$
|
|
13918
|
+
children: /* @__PURE__ */ jsx("input", _object_spread$J({
|
|
13919
13919
|
ref,
|
|
13920
13920
|
type: "file",
|
|
13921
13921
|
value: "",
|
|
@@ -13939,10 +13939,7 @@
|
|
|
13939
13939
|
}));
|
|
13940
13940
|
});
|
|
13941
13941
|
FileInput.displayName = "FileInput";
|
|
13942
|
-
var
|
|
13943
|
-
var BUTTON_SIZE_M = 32;
|
|
13944
|
-
var ICON_SIZE = 20;
|
|
13945
|
-
var useStyles$y = createThemedStyles("IconButton", {
|
|
13942
|
+
var useStyles$A = createThemedStyles("IconButton", {
|
|
13946
13943
|
root: {
|
|
13947
13944
|
display: "flex",
|
|
13948
13945
|
justifyContent: "center",
|
|
@@ -13951,7 +13948,7 @@
|
|
|
13951
13948
|
outline: "none",
|
|
13952
13949
|
boxSizing: "border-box",
|
|
13953
13950
|
transition: animations.defaultTransition,
|
|
13954
|
-
transitionProperty: "background-color, color, border-color",
|
|
13951
|
+
transitionProperty: "background-color, color, border-color, opacity, visibility",
|
|
13955
13952
|
border: "none",
|
|
13956
13953
|
position: "relative",
|
|
13957
13954
|
boxShadow: "none",
|
|
@@ -13964,7 +13961,10 @@
|
|
|
13964
13961
|
},
|
|
13965
13962
|
"&:active": {
|
|
13966
13963
|
extend: "active"
|
|
13967
|
-
}
|
|
13964
|
+
},
|
|
13965
|
+
width: "var(--icon-button-size)",
|
|
13966
|
+
height: "var(--icon-button-size)",
|
|
13967
|
+
"--icon-button-icon-size": "20px"
|
|
13968
13968
|
},
|
|
13969
13969
|
"cancel-light": {},
|
|
13970
13970
|
cancel: {},
|
|
@@ -13983,8 +13983,8 @@
|
|
|
13983
13983
|
icon: {
|
|
13984
13984
|
display: "flex",
|
|
13985
13985
|
alignItems: "center",
|
|
13986
|
-
width:
|
|
13987
|
-
height:
|
|
13986
|
+
width: "var(--icon-button-icon-size)",
|
|
13987
|
+
height: "var(--icon-button-icon-size)"
|
|
13988
13988
|
},
|
|
13989
13989
|
loader: {
|
|
13990
13990
|
display: "none",
|
|
@@ -13992,19 +13992,20 @@
|
|
|
13992
13992
|
left: "50%",
|
|
13993
13993
|
top: "50%",
|
|
13994
13994
|
transform: "translate(-50%, -50%)",
|
|
13995
|
-
width:
|
|
13996
|
-
height:
|
|
13995
|
+
width: "var(--icon-button-icon-size)",
|
|
13996
|
+
height: "var(--icon-button-icon-size)"
|
|
13997
13997
|
},
|
|
13998
13998
|
s: {
|
|
13999
|
-
|
|
14000
|
-
height: BUTTON_SIZE_S
|
|
13999
|
+
"--icon-button-size": "24px"
|
|
14001
14000
|
},
|
|
14002
14001
|
m: {
|
|
14003
|
-
|
|
14004
|
-
|
|
14002
|
+
"--icon-button-size": "32px"
|
|
14003
|
+
},
|
|
14004
|
+
l: {
|
|
14005
|
+
"--icon-button-size": "40px"
|
|
14005
14006
|
}
|
|
14006
14007
|
});
|
|
14007
|
-
function _define_property$
|
|
14008
|
+
function _define_property$K(obj, key, value) {
|
|
14008
14009
|
if (key in obj) {
|
|
14009
14010
|
Object.defineProperty(obj, key, {
|
|
14010
14011
|
value,
|
|
@@ -14017,7 +14018,7 @@
|
|
|
14017
14018
|
}
|
|
14018
14019
|
return obj;
|
|
14019
14020
|
}
|
|
14020
|
-
function _object_spread$
|
|
14021
|
+
function _object_spread$I(target) {
|
|
14021
14022
|
for (var i = 1; i < arguments.length; i++) {
|
|
14022
14023
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14023
14024
|
var ownKeys2 = Object.keys(source);
|
|
@@ -14027,12 +14028,12 @@
|
|
|
14027
14028
|
}));
|
|
14028
14029
|
}
|
|
14029
14030
|
ownKeys2.forEach(function(key) {
|
|
14030
|
-
_define_property$
|
|
14031
|
+
_define_property$K(target, key, source[key]);
|
|
14031
14032
|
});
|
|
14032
14033
|
}
|
|
14033
14034
|
return target;
|
|
14034
14035
|
}
|
|
14035
|
-
function ownKeys$
|
|
14036
|
+
function ownKeys$C(object, enumerableOnly) {
|
|
14036
14037
|
var keys = Object.keys(object);
|
|
14037
14038
|
if (Object.getOwnPropertySymbols) {
|
|
14038
14039
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -14045,21 +14046,21 @@
|
|
|
14045
14046
|
}
|
|
14046
14047
|
return keys;
|
|
14047
14048
|
}
|
|
14048
|
-
function _object_spread_props$
|
|
14049
|
+
function _object_spread_props$C(target, source) {
|
|
14049
14050
|
source = source != null ? source : {};
|
|
14050
14051
|
if (Object.getOwnPropertyDescriptors) {
|
|
14051
14052
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
14052
14053
|
} else {
|
|
14053
|
-
ownKeys$
|
|
14054
|
+
ownKeys$C(Object(source)).forEach(function(key) {
|
|
14054
14055
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
14055
14056
|
});
|
|
14056
14057
|
}
|
|
14057
14058
|
return target;
|
|
14058
14059
|
}
|
|
14059
|
-
function _object_without_properties$
|
|
14060
|
+
function _object_without_properties$d(source, excluded) {
|
|
14060
14061
|
if (source == null)
|
|
14061
14062
|
return {};
|
|
14062
|
-
var target = _object_without_properties_loose$
|
|
14063
|
+
var target = _object_without_properties_loose$d(source, excluded);
|
|
14063
14064
|
var key, i;
|
|
14064
14065
|
if (Object.getOwnPropertySymbols) {
|
|
14065
14066
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -14074,7 +14075,7 @@
|
|
|
14074
14075
|
}
|
|
14075
14076
|
return target;
|
|
14076
14077
|
}
|
|
14077
|
-
function _object_without_properties_loose$
|
|
14078
|
+
function _object_without_properties_loose$d(source, excluded) {
|
|
14078
14079
|
if (source == null)
|
|
14079
14080
|
return {};
|
|
14080
14081
|
var target = {};
|
|
@@ -14089,7 +14090,7 @@
|
|
|
14089
14090
|
return target;
|
|
14090
14091
|
}
|
|
14091
14092
|
var IconButton = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
14092
|
-
var icon = _param.icon, _param_size = _param.size, size = _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$
|
|
14093
|
+
var icon = _param.icon, _param_size = _param.size, size = _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$d(_param, [
|
|
14093
14094
|
"icon",
|
|
14094
14095
|
"size",
|
|
14095
14096
|
"view",
|
|
@@ -14102,14 +14103,14 @@
|
|
|
14102
14103
|
"data",
|
|
14103
14104
|
"onClick"
|
|
14104
14105
|
]);
|
|
14105
|
-
var classes = useStyles$
|
|
14106
|
+
var classes = useStyles$A({
|
|
14106
14107
|
theme: tweakStyles
|
|
14107
14108
|
});
|
|
14108
14109
|
var hasNoAction = isDisabled || isLoading;
|
|
14109
14110
|
var _obj2;
|
|
14110
|
-
return /* @__PURE__ */ jsx("button", _object_spread_props$
|
|
14111
|
+
return /* @__PURE__ */ jsx("button", _object_spread_props$C(_object_spread$I({
|
|
14111
14112
|
ref,
|
|
14112
|
-
className: clsx(classes.root, classes[view], classes[size], (_obj2 = {}, _define_property$
|
|
14113
|
+
className: clsx(classes.root, classes[view], classes[size], (_obj2 = {}, _define_property$K(_obj2, classes.disabled, isDisabled), _define_property$K(_obj2, classes.active, isActive), _define_property$K(_obj2, classes.loading, isLoading), _obj2)),
|
|
14113
14114
|
type,
|
|
14114
14115
|
disabled: isDisabled,
|
|
14115
14116
|
onClick: hasNoAction ? void 0 : onClick
|
|
@@ -14126,7 +14127,7 @@
|
|
|
14126
14127
|
})
|
|
14127
14128
|
}));
|
|
14128
14129
|
});
|
|
14129
|
-
var useStyles$
|
|
14130
|
+
var useStyles$z = createThemedStyles("Tooltip", {
|
|
14130
14131
|
root: {
|
|
14131
14132
|
display: "inline-block",
|
|
14132
14133
|
boxSizing: "border-box"
|
|
@@ -14169,7 +14170,7 @@
|
|
|
14169
14170
|
}
|
|
14170
14171
|
}
|
|
14171
14172
|
});
|
|
14172
|
-
function _define_property$
|
|
14173
|
+
function _define_property$J(obj, key, value) {
|
|
14173
14174
|
if (key in obj) {
|
|
14174
14175
|
Object.defineProperty(obj, key, {
|
|
14175
14176
|
value,
|
|
@@ -14182,7 +14183,7 @@
|
|
|
14182
14183
|
}
|
|
14183
14184
|
return obj;
|
|
14184
14185
|
}
|
|
14185
|
-
function _object_spread$
|
|
14186
|
+
function _object_spread$H(target) {
|
|
14186
14187
|
for (var i = 1; i < arguments.length; i++) {
|
|
14187
14188
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14188
14189
|
var ownKeys2 = Object.keys(source);
|
|
@@ -14192,12 +14193,12 @@
|
|
|
14192
14193
|
}));
|
|
14193
14194
|
}
|
|
14194
14195
|
ownKeys2.forEach(function(key) {
|
|
14195
|
-
_define_property$
|
|
14196
|
+
_define_property$J(target, key, source[key]);
|
|
14196
14197
|
});
|
|
14197
14198
|
}
|
|
14198
14199
|
return target;
|
|
14199
14200
|
}
|
|
14200
|
-
function ownKeys$
|
|
14201
|
+
function ownKeys$B(object, enumerableOnly) {
|
|
14201
14202
|
var keys = Object.keys(object);
|
|
14202
14203
|
if (Object.getOwnPropertySymbols) {
|
|
14203
14204
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -14210,12 +14211,12 @@
|
|
|
14210
14211
|
}
|
|
14211
14212
|
return keys;
|
|
14212
14213
|
}
|
|
14213
|
-
function _object_spread_props$
|
|
14214
|
+
function _object_spread_props$B(target, source) {
|
|
14214
14215
|
source = source != null ? source : {};
|
|
14215
14216
|
if (Object.getOwnPropertyDescriptors) {
|
|
14216
14217
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
14217
14218
|
} else {
|
|
14218
|
-
ownKeys$
|
|
14219
|
+
ownKeys$B(Object(source)).forEach(function(key) {
|
|
14219
14220
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
14220
14221
|
});
|
|
14221
14222
|
}
|
|
@@ -14223,16 +14224,16 @@
|
|
|
14223
14224
|
}
|
|
14224
14225
|
var Tooltip = function(param) {
|
|
14225
14226
|
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;
|
|
14226
|
-
var classes = useStyles$
|
|
14227
|
+
var classes = useStyles$z({
|
|
14227
14228
|
theme: tweakStyles
|
|
14228
14229
|
});
|
|
14229
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
14230
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$B(_object_spread$H({
|
|
14230
14231
|
className: clsx(classes.root, classes[view], classes[type])
|
|
14231
14232
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
14232
14233
|
children: text
|
|
14233
14234
|
}));
|
|
14234
14235
|
};
|
|
14235
|
-
var useStyles$
|
|
14236
|
+
var useStyles$y = createThemedStyles("TextWithTooltip", {
|
|
14236
14237
|
root: {
|
|
14237
14238
|
position: "relative"
|
|
14238
14239
|
},
|
|
@@ -14258,7 +14259,7 @@
|
|
|
14258
14259
|
if (Array.isArray(arr))
|
|
14259
14260
|
return _array_like_to_array$e(arr);
|
|
14260
14261
|
}
|
|
14261
|
-
function _define_property$
|
|
14262
|
+
function _define_property$I(obj, key, value) {
|
|
14262
14263
|
if (key in obj) {
|
|
14263
14264
|
Object.defineProperty(obj, key, {
|
|
14264
14265
|
value,
|
|
@@ -14309,7 +14310,7 @@
|
|
|
14309
14310
|
function _non_iterable_spread$4() {
|
|
14310
14311
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14311
14312
|
}
|
|
14312
|
-
function _object_spread$
|
|
14313
|
+
function _object_spread$G(target) {
|
|
14313
14314
|
for (var i = 1; i < arguments.length; i++) {
|
|
14314
14315
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14315
14316
|
var ownKeys2 = Object.keys(source);
|
|
@@ -14319,12 +14320,12 @@
|
|
|
14319
14320
|
}));
|
|
14320
14321
|
}
|
|
14321
14322
|
ownKeys2.forEach(function(key) {
|
|
14322
|
-
_define_property$
|
|
14323
|
+
_define_property$I(target, key, source[key]);
|
|
14323
14324
|
});
|
|
14324
14325
|
}
|
|
14325
14326
|
return target;
|
|
14326
14327
|
}
|
|
14327
|
-
function ownKeys$
|
|
14328
|
+
function ownKeys$A(object, enumerableOnly) {
|
|
14328
14329
|
var keys = Object.keys(object);
|
|
14329
14330
|
if (Object.getOwnPropertySymbols) {
|
|
14330
14331
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -14337,12 +14338,12 @@
|
|
|
14337
14338
|
}
|
|
14338
14339
|
return keys;
|
|
14339
14340
|
}
|
|
14340
|
-
function _object_spread_props$
|
|
14341
|
+
function _object_spread_props$A(target, source) {
|
|
14341
14342
|
source = source != null ? source : {};
|
|
14342
14343
|
if (Object.getOwnPropertyDescriptors) {
|
|
14343
14344
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
14344
14345
|
} else {
|
|
14345
|
-
ownKeys$
|
|
14346
|
+
ownKeys$A(Object(source)).forEach(function(key) {
|
|
14346
14347
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
14347
14348
|
});
|
|
14348
14349
|
}
|
|
@@ -14369,7 +14370,7 @@
|
|
|
14369
14370
|
}
|
|
14370
14371
|
var TextWithTooltip = function(param) {
|
|
14371
14372
|
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;
|
|
14372
|
-
var classes = useStyles$
|
|
14373
|
+
var classes = useStyles$y({
|
|
14373
14374
|
theme: tweakStyles
|
|
14374
14375
|
});
|
|
14375
14376
|
var tweakTooltipStyles = useTweakStyles({
|
|
@@ -14409,7 +14410,7 @@
|
|
|
14409
14410
|
modifiers: [
|
|
14410
14411
|
{
|
|
14411
14412
|
name: "offset",
|
|
14412
|
-
options: _object_spread$
|
|
14413
|
+
options: _object_spread$G({
|
|
14413
14414
|
offset: [
|
|
14414
14415
|
0,
|
|
14415
14416
|
6
|
|
@@ -14432,14 +14433,14 @@
|
|
|
14432
14433
|
onMouseLeave: handleMouseLeave
|
|
14433
14434
|
};
|
|
14434
14435
|
var shouldShowTooltip = tooltipText !== void 0 && tooltipText !== null && !isDisabled;
|
|
14435
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
14436
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$A(_object_spread$G({
|
|
14436
14437
|
className: clsx(classes.root, mouseEventType === "click" && shouldShowTooltip && classes.clickable)
|
|
14437
14438
|
}, shouldShowTooltip ? props : void 0, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
14438
14439
|
ref: root,
|
|
14439
14440
|
children: [
|
|
14440
14441
|
shouldShowTooltip && /* @__PURE__ */ jsx(reactOverlays.Portal, {
|
|
14441
14442
|
container: shouldRenderInBody ? document.body : root.current,
|
|
14442
|
-
children: /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
14443
|
+
children: /* @__PURE__ */ jsx("div", _object_spread_props$A(_object_spread$G({
|
|
14443
14444
|
className: classes.tooltip,
|
|
14444
14445
|
style: popperStyles.popper
|
|
14445
14446
|
}, attributes.popper), {
|
|
@@ -14456,7 +14457,7 @@
|
|
|
14456
14457
|
]
|
|
14457
14458
|
}));
|
|
14458
14459
|
};
|
|
14459
|
-
function _define_property$
|
|
14460
|
+
function _define_property$H(obj, key, value) {
|
|
14460
14461
|
if (key in obj) {
|
|
14461
14462
|
Object.defineProperty(obj, key, {
|
|
14462
14463
|
value,
|
|
@@ -14471,7 +14472,7 @@
|
|
|
14471
14472
|
}
|
|
14472
14473
|
var FILE_ICON_DEFAULT = "file-other";
|
|
14473
14474
|
var _obj;
|
|
14474
|
-
var iconTypeMap = (_obj = {}, _define_property$
|
|
14475
|
+
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);
|
|
14475
14476
|
var getFileExtensionByFilename = function(fileName) {
|
|
14476
14477
|
var splitFileName = fileName.split(".");
|
|
14477
14478
|
return splitFileName.length > 1 ? splitFileName.pop() : void 0;
|
|
@@ -14491,7 +14492,7 @@
|
|
|
14491
14492
|
}
|
|
14492
14493
|
return FILE_ICON_DEFAULT;
|
|
14493
14494
|
};
|
|
14494
|
-
var useStyles$
|
|
14495
|
+
var useStyles$x = createThemedStyles("FileItem", {
|
|
14495
14496
|
root: {
|
|
14496
14497
|
display: "flex",
|
|
14497
14498
|
flexDirection: "column",
|
|
@@ -14587,7 +14588,7 @@
|
|
|
14587
14588
|
}
|
|
14588
14589
|
}
|
|
14589
14590
|
};
|
|
14590
|
-
function _define_property$
|
|
14591
|
+
function _define_property$G(obj, key, value) {
|
|
14591
14592
|
if (key in obj) {
|
|
14592
14593
|
Object.defineProperty(obj, key, {
|
|
14593
14594
|
value,
|
|
@@ -14600,7 +14601,7 @@
|
|
|
14600
14601
|
}
|
|
14601
14602
|
return obj;
|
|
14602
14603
|
}
|
|
14603
|
-
function _object_spread$
|
|
14604
|
+
function _object_spread$F(target) {
|
|
14604
14605
|
for (var i = 1; i < arguments.length; i++) {
|
|
14605
14606
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14606
14607
|
var ownKeys2 = Object.keys(source);
|
|
@@ -14610,12 +14611,12 @@
|
|
|
14610
14611
|
}));
|
|
14611
14612
|
}
|
|
14612
14613
|
ownKeys2.forEach(function(key) {
|
|
14613
|
-
_define_property$
|
|
14614
|
+
_define_property$G(target, key, source[key]);
|
|
14614
14615
|
});
|
|
14615
14616
|
}
|
|
14616
14617
|
return target;
|
|
14617
14618
|
}
|
|
14618
|
-
function ownKeys$
|
|
14619
|
+
function ownKeys$z(object, enumerableOnly) {
|
|
14619
14620
|
var keys = Object.keys(object);
|
|
14620
14621
|
if (Object.getOwnPropertySymbols) {
|
|
14621
14622
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -14628,12 +14629,12 @@
|
|
|
14628
14629
|
}
|
|
14629
14630
|
return keys;
|
|
14630
14631
|
}
|
|
14631
|
-
function _object_spread_props$
|
|
14632
|
+
function _object_spread_props$z(target, source) {
|
|
14632
14633
|
source = source != null ? source : {};
|
|
14633
14634
|
if (Object.getOwnPropertyDescriptors) {
|
|
14634
14635
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
14635
14636
|
} else {
|
|
14636
|
-
ownKeys$
|
|
14637
|
+
ownKeys$z(Object(source)).forEach(function(key) {
|
|
14637
14638
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
14638
14639
|
});
|
|
14639
14640
|
}
|
|
@@ -14641,7 +14642,7 @@
|
|
|
14641
14642
|
}
|
|
14642
14643
|
var FileItem = function(param) {
|
|
14643
14644
|
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;
|
|
14644
|
-
var classes = useStyles$
|
|
14645
|
+
var classes = useStyles$x({
|
|
14645
14646
|
theme: tweakStyles
|
|
14646
14647
|
});
|
|
14647
14648
|
var tweakIconButtonStyles = useTweakStyles({
|
|
@@ -14673,8 +14674,8 @@
|
|
|
14673
14674
|
return /* @__PURE__ */ jsxs("div", {
|
|
14674
14675
|
className: classes.root,
|
|
14675
14676
|
children: [
|
|
14676
|
-
/* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
14677
|
-
className: clsx(classes.fileItemWrapper, classes[itemSize], _define_property$
|
|
14677
|
+
/* @__PURE__ */ jsxs("div", _object_spread_props$z(_object_spread$F({
|
|
14678
|
+
className: clsx(classes.fileItemWrapper, classes[itemSize], _define_property$G({}, classes.disabled, isDisabled))
|
|
14678
14679
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data), trueReactPlatformHelpers.addClickHandler(handleClick, !isDisabled)), {
|
|
14679
14680
|
children: [
|
|
14680
14681
|
/* @__PURE__ */ jsx("div", {
|
|
@@ -14955,7 +14956,7 @@
|
|
|
14955
14956
|
});
|
|
14956
14957
|
};
|
|
14957
14958
|
}
|
|
14958
|
-
function _define_property$
|
|
14959
|
+
function _define_property$F(obj, key, value) {
|
|
14959
14960
|
if (key in obj) {
|
|
14960
14961
|
Object.defineProperty(obj, key, {
|
|
14961
14962
|
value,
|
|
@@ -14999,7 +15000,7 @@
|
|
|
14999
15000
|
function _non_iterable_rest$d() {
|
|
15000
15001
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
15001
15002
|
}
|
|
15002
|
-
function _object_spread$
|
|
15003
|
+
function _object_spread$E(target) {
|
|
15003
15004
|
for (var i = 1; i < arguments.length; i++) {
|
|
15004
15005
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
15005
15006
|
var ownKeys2 = Object.keys(source);
|
|
@@ -15009,15 +15010,15 @@
|
|
|
15009
15010
|
}));
|
|
15010
15011
|
}
|
|
15011
15012
|
ownKeys2.forEach(function(key) {
|
|
15012
|
-
_define_property$
|
|
15013
|
+
_define_property$F(target, key, source[key]);
|
|
15013
15014
|
});
|
|
15014
15015
|
}
|
|
15015
15016
|
return target;
|
|
15016
15017
|
}
|
|
15017
|
-
function _object_without_properties$
|
|
15018
|
+
function _object_without_properties$c(source, excluded) {
|
|
15018
15019
|
if (source == null)
|
|
15019
15020
|
return {};
|
|
15020
|
-
var target = _object_without_properties_loose$
|
|
15021
|
+
var target = _object_without_properties_loose$c(source, excluded);
|
|
15021
15022
|
var key, i;
|
|
15022
15023
|
if (Object.getOwnPropertySymbols) {
|
|
15023
15024
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -15032,7 +15033,7 @@
|
|
|
15032
15033
|
}
|
|
15033
15034
|
return target;
|
|
15034
15035
|
}
|
|
15035
|
-
function _object_without_properties_loose$
|
|
15036
|
+
function _object_without_properties_loose$c(source, excluded) {
|
|
15036
15037
|
if (source == null)
|
|
15037
15038
|
return {};
|
|
15038
15039
|
var target = {};
|
|
@@ -15165,7 +15166,7 @@
|
|
|
15165
15166
|
}
|
|
15166
15167
|
}
|
|
15167
15168
|
var NumberInput = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
15168
|
-
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$
|
|
15169
|
+
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$c(_param, [
|
|
15169
15170
|
"value",
|
|
15170
15171
|
"canBeFloat",
|
|
15171
15172
|
"canBeNegative",
|
|
@@ -15268,7 +15269,7 @@
|
|
|
15268
15269
|
}, [
|
|
15269
15270
|
value
|
|
15270
15271
|
]);
|
|
15271
|
-
return /* @__PURE__ */ jsx(Input, _object_spread$
|
|
15272
|
+
return /* @__PURE__ */ jsx(Input, _object_spread$E({
|
|
15272
15273
|
value: showedValue,
|
|
15273
15274
|
onChange: handleChange,
|
|
15274
15275
|
onBlur: handleBlur,
|
|
@@ -15277,7 +15278,7 @@
|
|
|
15277
15278
|
}, props));
|
|
15278
15279
|
});
|
|
15279
15280
|
var FILTER_HEIGHT = 36;
|
|
15280
|
-
var useStyles$
|
|
15281
|
+
var useStyles$w = createThemedStyles("FiltersPane", {
|
|
15281
15282
|
root: {
|
|
15282
15283
|
display: "flex",
|
|
15283
15284
|
flexWrap: "wrap",
|
|
@@ -15343,7 +15344,7 @@
|
|
|
15343
15344
|
}
|
|
15344
15345
|
}
|
|
15345
15346
|
};
|
|
15346
|
-
var useStyles$
|
|
15347
|
+
var useStyles$v = createThemedStyles("FilterInterval", {
|
|
15347
15348
|
root: {
|
|
15348
15349
|
padding: 8,
|
|
15349
15350
|
background: colors.CLASSIC_WHITE
|
|
@@ -15388,7 +15389,7 @@
|
|
|
15388
15389
|
}
|
|
15389
15390
|
};
|
|
15390
15391
|
var clearButtonStyles$3 = structuredClone(innerTextButtonStyles);
|
|
15391
|
-
function _define_property$
|
|
15392
|
+
function _define_property$E(obj, key, value) {
|
|
15392
15393
|
if (key in obj) {
|
|
15393
15394
|
Object.defineProperty(obj, key, {
|
|
15394
15395
|
value,
|
|
@@ -15401,7 +15402,7 @@
|
|
|
15401
15402
|
}
|
|
15402
15403
|
return obj;
|
|
15403
15404
|
}
|
|
15404
|
-
function _object_spread$
|
|
15405
|
+
function _object_spread$D(target) {
|
|
15405
15406
|
for (var i = 1; i < arguments.length; i++) {
|
|
15406
15407
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
15407
15408
|
var ownKeys2 = Object.keys(source);
|
|
@@ -15411,12 +15412,12 @@
|
|
|
15411
15412
|
}));
|
|
15412
15413
|
}
|
|
15413
15414
|
ownKeys2.forEach(function(key) {
|
|
15414
|
-
_define_property$
|
|
15415
|
+
_define_property$E(target, key, source[key]);
|
|
15415
15416
|
});
|
|
15416
15417
|
}
|
|
15417
15418
|
return target;
|
|
15418
15419
|
}
|
|
15419
|
-
function ownKeys$
|
|
15420
|
+
function ownKeys$y(object, enumerableOnly) {
|
|
15420
15421
|
var keys = Object.keys(object);
|
|
15421
15422
|
if (Object.getOwnPropertySymbols) {
|
|
15422
15423
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -15429,12 +15430,12 @@
|
|
|
15429
15430
|
}
|
|
15430
15431
|
return keys;
|
|
15431
15432
|
}
|
|
15432
|
-
function _object_spread_props$
|
|
15433
|
+
function _object_spread_props$y(target, source) {
|
|
15433
15434
|
source = source != null ? source : {};
|
|
15434
15435
|
if (Object.getOwnPropertyDescriptors) {
|
|
15435
15436
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
15436
15437
|
} else {
|
|
15437
|
-
ownKeys$
|
|
15438
|
+
ownKeys$y(Object(source)).forEach(function(key) {
|
|
15438
15439
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
15439
15440
|
});
|
|
15440
15441
|
}
|
|
@@ -15442,7 +15443,7 @@
|
|
|
15442
15443
|
}
|
|
15443
15444
|
var FilterInterval = function(param) {
|
|
15444
15445
|
var data = param.data, tweakStyles = param.tweakStyles, value = param.value, labelName = param.labelName, withFieldNameInLabel = param.withFieldNameInLabel, localeKey = param.localeKey, locale = param.locale, canBeFloat = param.canBeFloat, onChange = param.onChange, fromInput = param.fromInput, toInput = param.toInput, testId = param.testId;
|
|
15445
|
-
var classes = useStyles$
|
|
15446
|
+
var classes = useStyles$v({
|
|
15446
15447
|
theme: tweakStyles
|
|
15447
15448
|
});
|
|
15448
15449
|
var translates = React.useMemo(function() {
|
|
@@ -15486,7 +15487,7 @@
|
|
|
15486
15487
|
className: "tweakClearButton",
|
|
15487
15488
|
currentComponentName: "FilterInterval"
|
|
15488
15489
|
});
|
|
15489
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
15490
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$y(_object_spread$D({
|
|
15490
15491
|
className: classes.root
|
|
15491
15492
|
}, addDataAttributes(data)), {
|
|
15492
15493
|
children: [
|
|
@@ -15495,18 +15496,15 @@
|
|
|
15495
15496
|
children: [
|
|
15496
15497
|
/* @__PURE__ */ jsxs("div", {
|
|
15497
15498
|
children: [
|
|
15498
|
-
/* @__PURE__ */ jsx(NumberInput, {
|
|
15499
|
+
/* @__PURE__ */ jsx(NumberInput, _object_spread$D({
|
|
15499
15500
|
onChange: handleFromChange,
|
|
15500
15501
|
value: value === null || value === void 0 ? void 0 : value[0],
|
|
15501
15502
|
label: withFieldNameInLabel ? "".concat(labelName, " ").concat(translates.from.toLocaleLowerCase()) : translates.from,
|
|
15502
15503
|
canBeFloat,
|
|
15503
15504
|
isClearable: true,
|
|
15504
|
-
min: fromInput === null || fromInput === void 0 ? void 0 : fromInput.min,
|
|
15505
|
-
max: fromInput === null || fromInput === void 0 ? void 0 : fromInput.max,
|
|
15506
|
-
maxLength: fromInput === null || fromInput === void 0 ? void 0 : fromInput.maxLength,
|
|
15507
15505
|
tweakStyles: tweakInputStyles,
|
|
15508
15506
|
testId: trueReactPlatformHelpers.getTestId(testId, "start")
|
|
15509
|
-
}),
|
|
15507
|
+
}, fromInput)),
|
|
15510
15508
|
withFieldNameInLabel && /* @__PURE__ */ jsxs("div", {
|
|
15511
15509
|
className: classes.autosize,
|
|
15512
15510
|
children: [
|
|
@@ -15519,18 +15517,15 @@
|
|
|
15519
15517
|
}),
|
|
15520
15518
|
/* @__PURE__ */ jsxs("div", {
|
|
15521
15519
|
children: [
|
|
15522
|
-
/* @__PURE__ */ jsx(NumberInput, {
|
|
15520
|
+
/* @__PURE__ */ jsx(NumberInput, _object_spread$D({
|
|
15523
15521
|
onChange: handleToChange,
|
|
15524
15522
|
value: value === null || value === void 0 ? void 0 : value[1],
|
|
15525
15523
|
label: withFieldNameInLabel ? "".concat(labelName, " ").concat(translates.to.toLocaleLowerCase()) : translates.to,
|
|
15526
15524
|
canBeFloat,
|
|
15527
15525
|
isClearable: true,
|
|
15528
|
-
min: toInput === null || toInput === void 0 ? void 0 : toInput.min,
|
|
15529
|
-
max: toInput === null || toInput === void 0 ? void 0 : toInput.max,
|
|
15530
|
-
maxLength: toInput === null || toInput === void 0 ? void 0 : toInput.maxLength,
|
|
15531
15526
|
tweakStyles: tweakInputStyles,
|
|
15532
15527
|
testId: trueReactPlatformHelpers.getTestId(testId, "end")
|
|
15533
|
-
}),
|
|
15528
|
+
}, toInput)),
|
|
15534
15529
|
withFieldNameInLabel && /* @__PURE__ */ jsxs("div", {
|
|
15535
15530
|
className: classes.autosize,
|
|
15536
15531
|
children: [
|
|
@@ -15581,7 +15576,7 @@
|
|
|
15581
15576
|
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;
|
|
15582
15577
|
return trueReactPlatformHelpers.merge(MultiSelectLocales[key], custom, custom2);
|
|
15583
15578
|
};
|
|
15584
|
-
function _define_property$
|
|
15579
|
+
function _define_property$D(obj, key, value) {
|
|
15585
15580
|
if (key in obj) {
|
|
15586
15581
|
Object.defineProperty(obj, key, {
|
|
15587
15582
|
value,
|
|
@@ -15594,7 +15589,7 @@
|
|
|
15594
15589
|
}
|
|
15595
15590
|
return obj;
|
|
15596
15591
|
}
|
|
15597
|
-
function _object_spread$
|
|
15592
|
+
function _object_spread$C(target) {
|
|
15598
15593
|
for (var i = 1; i < arguments.length; i++) {
|
|
15599
15594
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
15600
15595
|
var ownKeys2 = Object.keys(source);
|
|
@@ -15604,19 +15599,19 @@
|
|
|
15604
15599
|
}));
|
|
15605
15600
|
}
|
|
15606
15601
|
ownKeys2.forEach(function(key) {
|
|
15607
|
-
_define_property$
|
|
15602
|
+
_define_property$D(target, key, source[key]);
|
|
15608
15603
|
});
|
|
15609
15604
|
}
|
|
15610
15605
|
return target;
|
|
15611
15606
|
}
|
|
15612
15607
|
var ITEM_HEIGHT$1 = 40;
|
|
15613
15608
|
var TOP_GAP = 12;
|
|
15614
|
-
var useStyles$
|
|
15609
|
+
var useStyles$u = createThemedStyles("MultiSelectList", {
|
|
15615
15610
|
root: {
|
|
15616
15611
|
width: 220,
|
|
15617
15612
|
background: colors.CLASSIC_WHITE
|
|
15618
15613
|
},
|
|
15619
|
-
list: _object_spread$
|
|
15614
|
+
list: _object_spread$C({
|
|
15620
15615
|
paddingTop: TOP_GAP,
|
|
15621
15616
|
maxHeight: ITEM_HEIGHT$1 * 5 + TOP_GAP,
|
|
15622
15617
|
overscrollBehavior: "contain"
|
|
@@ -15775,7 +15770,7 @@
|
|
|
15775
15770
|
});
|
|
15776
15771
|
};
|
|
15777
15772
|
}
|
|
15778
|
-
function _define_property$
|
|
15773
|
+
function _define_property$C(obj, key, value) {
|
|
15779
15774
|
if (key in obj) {
|
|
15780
15775
|
Object.defineProperty(obj, key, {
|
|
15781
15776
|
value,
|
|
@@ -15826,7 +15821,7 @@
|
|
|
15826
15821
|
function _non_iterable_spread$3() {
|
|
15827
15822
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
15828
15823
|
}
|
|
15829
|
-
function _object_spread$
|
|
15824
|
+
function _object_spread$B(target) {
|
|
15830
15825
|
for (var i = 1; i < arguments.length; i++) {
|
|
15831
15826
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
15832
15827
|
var ownKeys2 = Object.keys(source);
|
|
@@ -15836,12 +15831,12 @@
|
|
|
15836
15831
|
}));
|
|
15837
15832
|
}
|
|
15838
15833
|
ownKeys2.forEach(function(key) {
|
|
15839
|
-
_define_property$
|
|
15834
|
+
_define_property$C(target, key, source[key]);
|
|
15840
15835
|
});
|
|
15841
15836
|
}
|
|
15842
15837
|
return target;
|
|
15843
15838
|
}
|
|
15844
|
-
function ownKeys$
|
|
15839
|
+
function ownKeys$x(object, enumerableOnly) {
|
|
15845
15840
|
var keys = Object.keys(object);
|
|
15846
15841
|
if (Object.getOwnPropertySymbols) {
|
|
15847
15842
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -15854,12 +15849,12 @@
|
|
|
15854
15849
|
}
|
|
15855
15850
|
return keys;
|
|
15856
15851
|
}
|
|
15857
|
-
function _object_spread_props$
|
|
15852
|
+
function _object_spread_props$x(target, source) {
|
|
15858
15853
|
source = source != null ? source : {};
|
|
15859
15854
|
if (Object.getOwnPropertyDescriptors) {
|
|
15860
15855
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
15861
15856
|
} else {
|
|
15862
|
-
ownKeys$
|
|
15857
|
+
ownKeys$x(Object(source)).forEach(function(key) {
|
|
15863
15858
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
15864
15859
|
});
|
|
15865
15860
|
}
|
|
@@ -15989,7 +15984,7 @@
|
|
|
15989
15984
|
function MultiSelectList(param) {
|
|
15990
15985
|
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, locale = _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;
|
|
15991
15986
|
var isMounted = useIsMounted();
|
|
15992
|
-
var classes = useStyles$
|
|
15987
|
+
var classes = useStyles$u({
|
|
15993
15988
|
theme: tweakStyles
|
|
15994
15989
|
});
|
|
15995
15990
|
var tweakCheckboxStyles = useTweakStyles({
|
|
@@ -16161,13 +16156,13 @@
|
|
|
16161
16156
|
if (value !== void 0) {
|
|
16162
16157
|
if (keyCursorOn < value.include.length) {
|
|
16163
16158
|
var _value_include_filter;
|
|
16164
|
-
onChange(_object_spread_props$
|
|
16159
|
+
onChange(_object_spread_props$x(_object_spread$B({}, value), {
|
|
16165
16160
|
include: (_value_include_filter = value.include.filter(function(val) {
|
|
16166
16161
|
return getValueId(val) !== getValueId(value.include[keyCursorOn]);
|
|
16167
16162
|
})) !== null && _value_include_filter !== void 0 ? _value_include_filter : []
|
|
16168
16163
|
}));
|
|
16169
16164
|
} else {
|
|
16170
|
-
onChange(_object_spread_props$
|
|
16165
|
+
onChange(_object_spread_props$x(_object_spread$B({}, value), {
|
|
16171
16166
|
include: _to_consumable_array$3(value.include).concat([
|
|
16172
16167
|
unchosenOptions[keyCursorOn - value.include.length]
|
|
16173
16168
|
])
|
|
@@ -16366,7 +16361,7 @@
|
|
|
16366
16361
|
var shouldShowAllOptionsLabel = hasSelectedOptionsGroup && (trueReactPlatformHelpers.isArrayNotEmpty(unchosenOptions) || !trueReactPlatformHelpers.isArrayNotEmpty(allOptions));
|
|
16367
16362
|
var shouldShowPreloader = isLoading || isLoadingOptionsOnScroll;
|
|
16368
16363
|
var shouldShowOptionsList = !isLoading && (trueReactPlatformHelpers.isArrayNotEmpty(allOptions) || trueReactPlatformHelpers.isArrayNotEmpty(chosenValues));
|
|
16369
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
16364
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$x(_object_spread$B({
|
|
16370
16365
|
className: classes.root
|
|
16371
16366
|
}, trueReactPlatformHelpers.addDataAttributes(data, testId)), {
|
|
16372
16367
|
children: [
|
|
@@ -16382,7 +16377,7 @@
|
|
|
16382
16377
|
shouldFocusOnMount: true
|
|
16383
16378
|
})
|
|
16384
16379
|
}),
|
|
16385
|
-
shouldShowOptionsList && /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
16380
|
+
shouldShowOptionsList && /* @__PURE__ */ jsxs("div", _object_spread_props$x(_object_spread$B({
|
|
16386
16381
|
className: classes.list
|
|
16387
16382
|
}, trueReactPlatformHelpers.addDataTestId(testId, "list")), {
|
|
16388
16383
|
children: [
|
|
@@ -16406,7 +16401,7 @@
|
|
|
16406
16401
|
data: {
|
|
16407
16402
|
id
|
|
16408
16403
|
},
|
|
16409
|
-
children: /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
16404
|
+
children: /* @__PURE__ */ jsx("div", _object_spread_props$x(_object_spread$B({
|
|
16410
16405
|
className: classes.option
|
|
16411
16406
|
}, trueReactPlatformHelpers.addDataAttributes({
|
|
16412
16407
|
option: id
|
|
@@ -16439,7 +16434,7 @@
|
|
|
16439
16434
|
data: {
|
|
16440
16435
|
id
|
|
16441
16436
|
},
|
|
16442
|
-
children: /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
16437
|
+
children: /* @__PURE__ */ jsx("div", _object_spread_props$x(_object_spread$B({
|
|
16443
16438
|
className: classes.option
|
|
16444
16439
|
}, trueReactPlatformHelpers.addDataAttributes({
|
|
16445
16440
|
option: id
|
|
@@ -16480,7 +16475,7 @@
|
|
|
16480
16475
|
]
|
|
16481
16476
|
}));
|
|
16482
16477
|
}
|
|
16483
|
-
function _define_property$
|
|
16478
|
+
function _define_property$B(obj, key, value) {
|
|
16484
16479
|
if (key in obj) {
|
|
16485
16480
|
Object.defineProperty(obj, key, {
|
|
16486
16481
|
value,
|
|
@@ -16493,7 +16488,7 @@
|
|
|
16493
16488
|
}
|
|
16494
16489
|
return obj;
|
|
16495
16490
|
}
|
|
16496
|
-
function _object_spread$
|
|
16491
|
+
function _object_spread$A(target) {
|
|
16497
16492
|
for (var i = 1; i < arguments.length; i++) {
|
|
16498
16493
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
16499
16494
|
var ownKeys2 = Object.keys(source);
|
|
@@ -16503,15 +16498,15 @@
|
|
|
16503
16498
|
}));
|
|
16504
16499
|
}
|
|
16505
16500
|
ownKeys2.forEach(function(key) {
|
|
16506
|
-
_define_property$
|
|
16501
|
+
_define_property$B(target, key, source[key]);
|
|
16507
16502
|
});
|
|
16508
16503
|
}
|
|
16509
16504
|
return target;
|
|
16510
16505
|
}
|
|
16511
16506
|
function FilterMultiSelect(props) {
|
|
16512
|
-
return /* @__PURE__ */ jsx(MultiSelectList, _object_spread$
|
|
16507
|
+
return /* @__PURE__ */ jsx(MultiSelectList, _object_spread$A({}, props));
|
|
16513
16508
|
}
|
|
16514
|
-
function _define_property$
|
|
16509
|
+
function _define_property$A(obj, key, value) {
|
|
16515
16510
|
if (key in obj) {
|
|
16516
16511
|
Object.defineProperty(obj, key, {
|
|
16517
16512
|
value,
|
|
@@ -16524,7 +16519,7 @@
|
|
|
16524
16519
|
}
|
|
16525
16520
|
return obj;
|
|
16526
16521
|
}
|
|
16527
|
-
function _object_spread$
|
|
16522
|
+
function _object_spread$z(target) {
|
|
16528
16523
|
for (var i = 1; i < arguments.length; i++) {
|
|
16529
16524
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
16530
16525
|
var ownKeys2 = Object.keys(source);
|
|
@@ -16534,19 +16529,19 @@
|
|
|
16534
16529
|
}));
|
|
16535
16530
|
}
|
|
16536
16531
|
ownKeys2.forEach(function(key) {
|
|
16537
|
-
_define_property$
|
|
16532
|
+
_define_property$A(target, key, source[key]);
|
|
16538
16533
|
});
|
|
16539
16534
|
}
|
|
16540
16535
|
return target;
|
|
16541
16536
|
}
|
|
16542
16537
|
var ITEM_HEIGHT = 40;
|
|
16543
16538
|
var LIST_GAP = 12;
|
|
16544
|
-
var useStyles$
|
|
16539
|
+
var useStyles$t = createThemedStyles("FilterSelect", {
|
|
16545
16540
|
root: {
|
|
16546
16541
|
width: 220,
|
|
16547
16542
|
background: colors.CLASSIC_WHITE
|
|
16548
16543
|
},
|
|
16549
|
-
list: _object_spread$
|
|
16544
|
+
list: _object_spread$z({
|
|
16550
16545
|
paddingTop: LIST_GAP,
|
|
16551
16546
|
padding: [
|
|
16552
16547
|
LIST_GAP,
|
|
@@ -16721,7 +16716,7 @@
|
|
|
16721
16716
|
});
|
|
16722
16717
|
};
|
|
16723
16718
|
}
|
|
16724
|
-
function _define_property$
|
|
16719
|
+
function _define_property$z(obj, key, value) {
|
|
16725
16720
|
if (key in obj) {
|
|
16726
16721
|
Object.defineProperty(obj, key, {
|
|
16727
16722
|
value,
|
|
@@ -16772,7 +16767,7 @@
|
|
|
16772
16767
|
function _non_iterable_spread$2() {
|
|
16773
16768
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
16774
16769
|
}
|
|
16775
|
-
function _object_spread$
|
|
16770
|
+
function _object_spread$y(target) {
|
|
16776
16771
|
for (var i = 1; i < arguments.length; i++) {
|
|
16777
16772
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
16778
16773
|
var ownKeys2 = Object.keys(source);
|
|
@@ -16782,12 +16777,12 @@
|
|
|
16782
16777
|
}));
|
|
16783
16778
|
}
|
|
16784
16779
|
ownKeys2.forEach(function(key) {
|
|
16785
|
-
_define_property$
|
|
16780
|
+
_define_property$z(target, key, source[key]);
|
|
16786
16781
|
});
|
|
16787
16782
|
}
|
|
16788
16783
|
return target;
|
|
16789
16784
|
}
|
|
16790
|
-
function ownKeys$
|
|
16785
|
+
function ownKeys$w(object, enumerableOnly) {
|
|
16791
16786
|
var keys = Object.keys(object);
|
|
16792
16787
|
if (Object.getOwnPropertySymbols) {
|
|
16793
16788
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -16800,12 +16795,12 @@
|
|
|
16800
16795
|
}
|
|
16801
16796
|
return keys;
|
|
16802
16797
|
}
|
|
16803
|
-
function _object_spread_props$
|
|
16798
|
+
function _object_spread_props$w(target, source) {
|
|
16804
16799
|
source = source != null ? source : {};
|
|
16805
16800
|
if (Object.getOwnPropertyDescriptors) {
|
|
16806
16801
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
16807
16802
|
} else {
|
|
16808
|
-
ownKeys$
|
|
16803
|
+
ownKeys$w(Object(source)).forEach(function(key) {
|
|
16809
16804
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
16810
16805
|
});
|
|
16811
16806
|
}
|
|
@@ -16934,7 +16929,7 @@
|
|
|
16934
16929
|
}
|
|
16935
16930
|
function FilterSelect(param) {
|
|
16936
16931
|
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, locale = 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;
|
|
16937
|
-
var classes = useStyles$
|
|
16932
|
+
var classes = useStyles$t({
|
|
16938
16933
|
theme: tweakStyles
|
|
16939
16934
|
});
|
|
16940
16935
|
var tweakSearchInputStyles = useTweakStyles({
|
|
@@ -17209,7 +17204,7 @@
|
|
|
17209
17204
|
}();
|
|
17210
17205
|
doFetchOptions();
|
|
17211
17206
|
}, []);
|
|
17212
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
17207
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$w(_object_spread$y({
|
|
17213
17208
|
className: classes.root
|
|
17214
17209
|
}, trueReactPlatformHelpers.addDataAttributes(data, testId)), {
|
|
17215
17210
|
children: [
|
|
@@ -17226,14 +17221,14 @@
|
|
|
17226
17221
|
}),
|
|
17227
17222
|
!isLoading && /* @__PURE__ */ jsxs(Fragment, {
|
|
17228
17223
|
children: [
|
|
17229
|
-
trueReactPlatformHelpers.isArrayNotEmpty(allOptions) && /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
17230
|
-
className: clsx(classes.list, _define_property$
|
|
17224
|
+
trueReactPlatformHelpers.isArrayNotEmpty(allOptions) && /* @__PURE__ */ jsxs("div", _object_spread_props$w(_object_spread$y({
|
|
17225
|
+
className: clsx(classes.list, _define_property$z({}, classes.withClearButton, hasClearButton))
|
|
17231
17226
|
}, trueReactPlatformHelpers.addDataTestId(testId, "list")), {
|
|
17232
17227
|
children: [
|
|
17233
17228
|
isGroupingEnabled && trueReactPlatformHelpers.isNotEmpty(value) && /* @__PURE__ */ jsxs(Fragment, {
|
|
17234
17229
|
children: [
|
|
17235
17230
|
/* @__PURE__ */ jsx("div", {
|
|
17236
|
-
className: clsx(classes.label, classes.labelChosen, _define_property$
|
|
17231
|
+
className: clsx(classes.label, classes.labelChosen, _define_property$z({}, classes.withoutTopGap, !isSearchEnabled)),
|
|
17237
17232
|
children: translates.chosen
|
|
17238
17233
|
}),
|
|
17239
17234
|
/* @__PURE__ */ jsxs("div", {
|
|
@@ -17274,7 +17269,7 @@
|
|
|
17274
17269
|
return handleChange(item);
|
|
17275
17270
|
},
|
|
17276
17271
|
children: [
|
|
17277
|
-
/* @__PURE__ */ jsx("div", _object_spread_props$
|
|
17272
|
+
/* @__PURE__ */ jsx("div", _object_spread_props$w(_object_spread$y({
|
|
17278
17273
|
className: classes.option
|
|
17279
17274
|
}, trueReactPlatformHelpers.addDataAttributes({
|
|
17280
17275
|
id,
|
|
@@ -17312,7 +17307,7 @@
|
|
|
17312
17307
|
children: translates.nothingFound
|
|
17313
17308
|
}),
|
|
17314
17309
|
(hasClearButton || hasFooter) && /* @__PURE__ */ jsxs("div", {
|
|
17315
|
-
className: clsx(classes.panel, _define_property$
|
|
17310
|
+
className: clsx(classes.panel, _define_property$z({}, classes.panelWithFooter, hasFooter)),
|
|
17316
17311
|
children: [
|
|
17317
17312
|
hasFooter && /* @__PURE__ */ jsx("div", {
|
|
17318
17313
|
className: classes.footer,
|
|
@@ -17342,7 +17337,7 @@
|
|
|
17342
17337
|
]
|
|
17343
17338
|
}));
|
|
17344
17339
|
}
|
|
17345
|
-
var useStyles$
|
|
17340
|
+
var useStyles$s = createThemedStyles("FilterWithDates", {
|
|
17346
17341
|
root: {
|
|
17347
17342
|
width: 320,
|
|
17348
17343
|
background: colors.CLASSIC_WHITE,
|
|
@@ -17410,7 +17405,7 @@
|
|
|
17410
17405
|
if (Array.isArray(arr))
|
|
17411
17406
|
return arr;
|
|
17412
17407
|
}
|
|
17413
|
-
function _define_property$
|
|
17408
|
+
function _define_property$y(obj, key, value) {
|
|
17414
17409
|
if (key in obj) {
|
|
17415
17410
|
Object.defineProperty(obj, key, {
|
|
17416
17411
|
value,
|
|
@@ -17454,7 +17449,7 @@
|
|
|
17454
17449
|
function _non_iterable_rest$a() {
|
|
17455
17450
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17456
17451
|
}
|
|
17457
|
-
function _object_spread$
|
|
17452
|
+
function _object_spread$x(target) {
|
|
17458
17453
|
for (var i = 1; i < arguments.length; i++) {
|
|
17459
17454
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
17460
17455
|
var ownKeys2 = Object.keys(source);
|
|
@@ -17464,12 +17459,12 @@
|
|
|
17464
17459
|
}));
|
|
17465
17460
|
}
|
|
17466
17461
|
ownKeys2.forEach(function(key) {
|
|
17467
|
-
_define_property$
|
|
17462
|
+
_define_property$y(target, key, source[key]);
|
|
17468
17463
|
});
|
|
17469
17464
|
}
|
|
17470
17465
|
return target;
|
|
17471
17466
|
}
|
|
17472
|
-
function ownKeys$
|
|
17467
|
+
function ownKeys$v(object, enumerableOnly) {
|
|
17473
17468
|
var keys = Object.keys(object);
|
|
17474
17469
|
if (Object.getOwnPropertySymbols) {
|
|
17475
17470
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -17482,12 +17477,12 @@
|
|
|
17482
17477
|
}
|
|
17483
17478
|
return keys;
|
|
17484
17479
|
}
|
|
17485
|
-
function _object_spread_props$
|
|
17480
|
+
function _object_spread_props$v(target, source) {
|
|
17486
17481
|
source = source != null ? source : {};
|
|
17487
17482
|
if (Object.getOwnPropertyDescriptors) {
|
|
17488
17483
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
17489
17484
|
} else {
|
|
17490
|
-
ownKeys$
|
|
17485
|
+
ownKeys$v(Object(source)).forEach(function(key) {
|
|
17491
17486
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
17492
17487
|
});
|
|
17493
17488
|
}
|
|
@@ -17511,7 +17506,7 @@
|
|
|
17511
17506
|
}
|
|
17512
17507
|
var FilterWithDates = function(param) {
|
|
17513
17508
|
var value = param.value, onChange = param.onChange, localeKey = param.localeKey, locale = 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;
|
|
17514
|
-
var classes = useStyles$
|
|
17509
|
+
var classes = useStyles$s({
|
|
17515
17510
|
theme: tweakStyles
|
|
17516
17511
|
});
|
|
17517
17512
|
var tweakClearButtonStyles = useTweakStyles({
|
|
@@ -17598,7 +17593,7 @@
|
|
|
17598
17593
|
}
|
|
17599
17594
|
};
|
|
17600
17595
|
var _value_to, _value_from, _ref;
|
|
17601
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
17596
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$v(_object_spread$x({
|
|
17602
17597
|
className: classes.root
|
|
17603
17598
|
}, addDataAttributes(data)), {
|
|
17604
17599
|
children: [
|
|
@@ -17607,7 +17602,7 @@
|
|
|
17607
17602
|
children: [
|
|
17608
17603
|
/* @__PURE__ */ jsx("div", {
|
|
17609
17604
|
className: classes.containerItem,
|
|
17610
|
-
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$
|
|
17605
|
+
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$x({
|
|
17611
17606
|
selectedDate: value === null || value === void 0 ? void 0 : value.from,
|
|
17612
17607
|
maxDate: (_value_to = value === null || value === void 0 ? void 0 : value.to) !== null && _value_to !== void 0 ? _value_to : void 0,
|
|
17613
17608
|
label: translates.from,
|
|
@@ -17621,7 +17616,7 @@
|
|
|
17621
17616
|
}),
|
|
17622
17617
|
/* @__PURE__ */ jsx("div", {
|
|
17623
17618
|
className: classes.containerItem,
|
|
17624
|
-
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$
|
|
17619
|
+
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$x({
|
|
17625
17620
|
selectedDate: value === null || value === void 0 ? void 0 : value.to,
|
|
17626
17621
|
label: translates.to,
|
|
17627
17622
|
months: translates.months,
|
|
@@ -17676,7 +17671,7 @@
|
|
|
17676
17671
|
]
|
|
17677
17672
|
}));
|
|
17678
17673
|
};
|
|
17679
|
-
var useStyles$
|
|
17674
|
+
var useStyles$r = createThemedStyles("FilterWithPeriod", {
|
|
17680
17675
|
root: {},
|
|
17681
17676
|
main: {},
|
|
17682
17677
|
picker: {}
|
|
@@ -17701,7 +17696,7 @@
|
|
|
17701
17696
|
if (Array.isArray(arr))
|
|
17702
17697
|
return _array_like_to_array$9(arr);
|
|
17703
17698
|
}
|
|
17704
|
-
function _define_property$
|
|
17699
|
+
function _define_property$x(obj, key, value) {
|
|
17705
17700
|
if (key in obj) {
|
|
17706
17701
|
Object.defineProperty(obj, key, {
|
|
17707
17702
|
value,
|
|
@@ -17752,7 +17747,7 @@
|
|
|
17752
17747
|
function _non_iterable_spread$1() {
|
|
17753
17748
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17754
17749
|
}
|
|
17755
|
-
function _object_spread$
|
|
17750
|
+
function _object_spread$w(target) {
|
|
17756
17751
|
for (var i = 1; i < arguments.length; i++) {
|
|
17757
17752
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
17758
17753
|
var ownKeys2 = Object.keys(source);
|
|
@@ -17762,12 +17757,12 @@
|
|
|
17762
17757
|
}));
|
|
17763
17758
|
}
|
|
17764
17759
|
ownKeys2.forEach(function(key) {
|
|
17765
|
-
_define_property$
|
|
17760
|
+
_define_property$x(target, key, source[key]);
|
|
17766
17761
|
});
|
|
17767
17762
|
}
|
|
17768
17763
|
return target;
|
|
17769
17764
|
}
|
|
17770
|
-
function ownKeys$
|
|
17765
|
+
function ownKeys$u(object, enumerableOnly) {
|
|
17771
17766
|
var keys = Object.keys(object);
|
|
17772
17767
|
if (Object.getOwnPropertySymbols) {
|
|
17773
17768
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -17780,12 +17775,12 @@
|
|
|
17780
17775
|
}
|
|
17781
17776
|
return keys;
|
|
17782
17777
|
}
|
|
17783
|
-
function _object_spread_props$
|
|
17778
|
+
function _object_spread_props$u(target, source) {
|
|
17784
17779
|
source = source != null ? source : {};
|
|
17785
17780
|
if (Object.getOwnPropertyDescriptors) {
|
|
17786
17781
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
17787
17782
|
} else {
|
|
17788
|
-
ownKeys$
|
|
17783
|
+
ownKeys$u(Object(source)).forEach(function(key) {
|
|
17789
17784
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
17790
17785
|
});
|
|
17791
17786
|
}
|
|
@@ -17812,7 +17807,7 @@
|
|
|
17812
17807
|
}
|
|
17813
17808
|
var FilterWithPeriod = function(param) {
|
|
17814
17809
|
var value = param.value, localeKey = param.localeKey, locale = param.locale, onChange = param.onChange, onClose = param.onClose, periods = param.periods, tweakStyles = param.tweakStyles, testId = param.testId;
|
|
17815
|
-
var classes = useStyles$
|
|
17810
|
+
var classes = useStyles$r({
|
|
17816
17811
|
theme: tweakStyles
|
|
17817
17812
|
});
|
|
17818
17813
|
var translates = React.useMemo(function() {
|
|
@@ -17825,7 +17820,7 @@
|
|
|
17825
17820
|
var _useState1 = _sliced_to_array$9(React.useState((value === null || value === void 0 ? void 0 : value.periodType) === "CUSTOM"), 2), isDatePickerShown = _useState1[0], setIsDatePickerShown = _useState1[1];
|
|
17826
17821
|
var _useState2 = _sliced_to_array$9(React.useState(value), 2), period = _useState2[0], setPeriod = _useState2[1];
|
|
17827
17822
|
var periodGetters = React.useMemo(function() {
|
|
17828
|
-
var result = _object_spread$
|
|
17823
|
+
var result = _object_spread$w({}, PERIODS_GETTERS);
|
|
17829
17824
|
periods === null || periods === void 0 ? void 0 : periods.forEach(function(p) {
|
|
17830
17825
|
if (Array.isArray(p)) {
|
|
17831
17826
|
result[p[0]] = p[1];
|
|
@@ -17871,7 +17866,7 @@
|
|
|
17871
17866
|
if (onClose !== void 0) {
|
|
17872
17867
|
onClose();
|
|
17873
17868
|
}
|
|
17874
|
-
onChange(_object_spread_props$
|
|
17869
|
+
onChange(_object_spread_props$u(_object_spread$w({}, p), {
|
|
17875
17870
|
label: getPeriodTranslate(periodType)
|
|
17876
17871
|
}));
|
|
17877
17872
|
}
|
|
@@ -17891,7 +17886,7 @@
|
|
|
17891
17886
|
};
|
|
17892
17887
|
var handleCustomDateChange = function(val) {
|
|
17893
17888
|
if (val.from || val.to) {
|
|
17894
|
-
onChange(_object_spread_props$
|
|
17889
|
+
onChange(_object_spread_props$u(_object_spread$w({}, val), {
|
|
17895
17890
|
periodType: "CUSTOM"
|
|
17896
17891
|
}));
|
|
17897
17892
|
} else {
|
|
@@ -17979,7 +17974,7 @@
|
|
|
17979
17974
|
var isMultiSelectValue = function(value) {
|
|
17980
17975
|
return Array.isArray(value === null || value === void 0 ? void 0 : value.include);
|
|
17981
17976
|
};
|
|
17982
|
-
function _define_property$
|
|
17977
|
+
function _define_property$w(obj, key, value) {
|
|
17983
17978
|
if (key in obj) {
|
|
17984
17979
|
Object.defineProperty(obj, key, {
|
|
17985
17980
|
value,
|
|
@@ -17992,7 +17987,7 @@
|
|
|
17992
17987
|
}
|
|
17993
17988
|
return obj;
|
|
17994
17989
|
}
|
|
17995
|
-
function _object_spread$
|
|
17990
|
+
function _object_spread$v(target) {
|
|
17996
17991
|
for (var i = 1; i < arguments.length; i++) {
|
|
17997
17992
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
17998
17993
|
var ownKeys2 = Object.keys(source);
|
|
@@ -18002,12 +17997,12 @@
|
|
|
18002
17997
|
}));
|
|
18003
17998
|
}
|
|
18004
17999
|
ownKeys2.forEach(function(key) {
|
|
18005
|
-
_define_property$
|
|
18000
|
+
_define_property$w(target, key, source[key]);
|
|
18006
18001
|
});
|
|
18007
18002
|
}
|
|
18008
18003
|
return target;
|
|
18009
18004
|
}
|
|
18010
|
-
function ownKeys$
|
|
18005
|
+
function ownKeys$t(object, enumerableOnly) {
|
|
18011
18006
|
var keys = Object.keys(object);
|
|
18012
18007
|
if (Object.getOwnPropertySymbols) {
|
|
18013
18008
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -18020,12 +18015,12 @@
|
|
|
18020
18015
|
}
|
|
18021
18016
|
return keys;
|
|
18022
18017
|
}
|
|
18023
|
-
function _object_spread_props$
|
|
18018
|
+
function _object_spread_props$t(target, source) {
|
|
18024
18019
|
source = source != null ? source : {};
|
|
18025
18020
|
if (Object.getOwnPropertyDescriptors) {
|
|
18026
18021
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
18027
18022
|
} else {
|
|
18028
|
-
ownKeys$
|
|
18023
|
+
ownKeys$t(Object(source)).forEach(function(key) {
|
|
18029
18024
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
18030
18025
|
});
|
|
18031
18026
|
}
|
|
@@ -18043,7 +18038,7 @@
|
|
|
18043
18038
|
filter2.locale
|
|
18044
18039
|
]);
|
|
18045
18040
|
if (filter2.type === "select") {
|
|
18046
|
-
return /* @__PURE__ */ jsx(FilterSelect, _object_spread$
|
|
18041
|
+
return /* @__PURE__ */ jsx(FilterSelect, _object_spread$v({
|
|
18047
18042
|
value,
|
|
18048
18043
|
onChange,
|
|
18049
18044
|
onClose,
|
|
@@ -18053,8 +18048,8 @@
|
|
|
18053
18048
|
}, filter2));
|
|
18054
18049
|
}
|
|
18055
18050
|
if (filter2.type === "dateRange") {
|
|
18056
|
-
var preparedValue = isPeriodValue(value) ? _object_spread$
|
|
18057
|
-
return /* @__PURE__ */ jsx(FilterWithPeriod, _object_spread$
|
|
18051
|
+
var preparedValue = isPeriodValue(value) ? _object_spread$v({}, value) : void 0;
|
|
18052
|
+
return /* @__PURE__ */ jsx(FilterWithPeriod, _object_spread$v({
|
|
18058
18053
|
value: preparedValue,
|
|
18059
18054
|
onChange,
|
|
18060
18055
|
onClose,
|
|
@@ -18065,10 +18060,10 @@
|
|
|
18065
18060
|
}
|
|
18066
18061
|
if (filter2.type === "dateRangeWithoutPeriod") {
|
|
18067
18062
|
var preparedValue1 = isDatePeriodValue(value) ? value : void 0;
|
|
18068
|
-
return /* @__PURE__ */ jsx(FilterWithDates, _object_spread$
|
|
18063
|
+
return /* @__PURE__ */ jsx(FilterWithDates, _object_spread$v({
|
|
18069
18064
|
value: preparedValue1,
|
|
18070
18065
|
onChange: function(v) {
|
|
18071
|
-
return onChange(_object_spread_props$
|
|
18066
|
+
return onChange(_object_spread_props$t(_object_spread$v({}, v), {
|
|
18072
18067
|
periodType: "CUSTOM"
|
|
18073
18068
|
}));
|
|
18074
18069
|
},
|
|
@@ -18082,7 +18077,7 @@
|
|
|
18082
18077
|
}
|
|
18083
18078
|
if (filter2.type === "multiSelect") {
|
|
18084
18079
|
var preparedValue2 = isMultiSelectValue(value) ? value : void 0;
|
|
18085
|
-
return /* @__PURE__ */ jsx(FilterMultiSelect, _object_spread$
|
|
18080
|
+
return /* @__PURE__ */ jsx(FilterMultiSelect, _object_spread$v({
|
|
18086
18081
|
value: preparedValue2,
|
|
18087
18082
|
onChange,
|
|
18088
18083
|
onClose,
|
|
@@ -18093,7 +18088,7 @@
|
|
|
18093
18088
|
}
|
|
18094
18089
|
if (filter2.type === "interval") {
|
|
18095
18090
|
var preparedValue3 = Array.isArray(value) ? value : void 0;
|
|
18096
|
-
return /* @__PURE__ */ jsx(FilterInterval, _object_spread$
|
|
18091
|
+
return /* @__PURE__ */ jsx(FilterInterval, _object_spread$v({
|
|
18097
18092
|
value: preparedValue3,
|
|
18098
18093
|
onChange,
|
|
18099
18094
|
localeKey: translatesLocaleKey,
|
|
@@ -18104,7 +18099,7 @@
|
|
|
18104
18099
|
}
|
|
18105
18100
|
if (filter2.type === "custom" && filter2.component) {
|
|
18106
18101
|
var Component = filter2.component;
|
|
18107
|
-
return /* @__PURE__ */ jsx(Component, _object_spread_props$
|
|
18102
|
+
return /* @__PURE__ */ jsx(Component, _object_spread_props$t(_object_spread$v({}, props), {
|
|
18108
18103
|
filter: filter2,
|
|
18109
18104
|
testId: trueReactPlatformHelpers.getTestId(testId, "dropdown")
|
|
18110
18105
|
}));
|
|
@@ -18114,7 +18109,7 @@
|
|
|
18114
18109
|
}
|
|
18115
18110
|
return null;
|
|
18116
18111
|
}
|
|
18117
|
-
var useStyles$
|
|
18112
|
+
var useStyles$q = createThemedStyles("FiltersPaneSearch", {
|
|
18118
18113
|
root: {
|
|
18119
18114
|
display: "flex",
|
|
18120
18115
|
position: "relative",
|
|
@@ -18228,7 +18223,7 @@
|
|
|
18228
18223
|
if (Array.isArray(arr))
|
|
18229
18224
|
return arr;
|
|
18230
18225
|
}
|
|
18231
|
-
function _define_property$
|
|
18226
|
+
function _define_property$v(obj, key, value) {
|
|
18232
18227
|
if (key in obj) {
|
|
18233
18228
|
Object.defineProperty(obj, key, {
|
|
18234
18229
|
value,
|
|
@@ -18272,7 +18267,7 @@
|
|
|
18272
18267
|
function _non_iterable_rest$8() {
|
|
18273
18268
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
18274
18269
|
}
|
|
18275
|
-
function _object_spread$
|
|
18270
|
+
function _object_spread$u(target) {
|
|
18276
18271
|
for (var i = 1; i < arguments.length; i++) {
|
|
18277
18272
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
18278
18273
|
var ownKeys2 = Object.keys(source);
|
|
@@ -18282,12 +18277,12 @@
|
|
|
18282
18277
|
}));
|
|
18283
18278
|
}
|
|
18284
18279
|
ownKeys2.forEach(function(key) {
|
|
18285
|
-
_define_property$
|
|
18280
|
+
_define_property$v(target, key, source[key]);
|
|
18286
18281
|
});
|
|
18287
18282
|
}
|
|
18288
18283
|
return target;
|
|
18289
18284
|
}
|
|
18290
|
-
function ownKeys$
|
|
18285
|
+
function ownKeys$s(object, enumerableOnly) {
|
|
18291
18286
|
var keys = Object.keys(object);
|
|
18292
18287
|
if (Object.getOwnPropertySymbols) {
|
|
18293
18288
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -18300,12 +18295,12 @@
|
|
|
18300
18295
|
}
|
|
18301
18296
|
return keys;
|
|
18302
18297
|
}
|
|
18303
|
-
function _object_spread_props$
|
|
18298
|
+
function _object_spread_props$s(target, source) {
|
|
18304
18299
|
source = source != null ? source : {};
|
|
18305
18300
|
if (Object.getOwnPropertyDescriptors) {
|
|
18306
18301
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
18307
18302
|
} else {
|
|
18308
|
-
ownKeys$
|
|
18303
|
+
ownKeys$s(Object(source)).forEach(function(key) {
|
|
18309
18304
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
18310
18305
|
});
|
|
18311
18306
|
}
|
|
@@ -18328,8 +18323,8 @@
|
|
|
18328
18323
|
return _array_like_to_array$8(o, minLen);
|
|
18329
18324
|
}
|
|
18330
18325
|
function FiltersPaneSearch(param) {
|
|
18331
|
-
var value = param.value, _param_fields = param.fields, fields = _param_fields === void 0 ? [] : _param_fields, field = param.field, onChange = param.onChange, localeKey = param.localeKey, locale = 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, maxLength = param.maxLength, data = param.data, tweakStyles = param.tweakStyles, testId = param.testId;
|
|
18332
|
-
var classes = useStyles$
|
|
18326
|
+
var value = param.value, _param_fields = param.fields, fields = _param_fields === void 0 ? [] : _param_fields, field = param.field, onChange = param.onChange, localeKey = param.localeKey, locale = 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_isAutoSized = param.isAutoSized, isAutoSized = _param_isAutoSized === void 0 ? false : _param_isAutoSized, maxLength = param.maxLength, data = param.data, tweakStyles = param.tweakStyles, testId = param.testId;
|
|
18327
|
+
var classes = useStyles$q({
|
|
18333
18328
|
theme: tweakStyles
|
|
18334
18329
|
});
|
|
18335
18330
|
var tweakSearchInputStyles = useTweakStyles({
|
|
@@ -18370,8 +18365,8 @@
|
|
|
18370
18365
|
setIsOpen(false);
|
|
18371
18366
|
};
|
|
18372
18367
|
var _obj2;
|
|
18373
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
18374
|
-
className: clsx(classes.root, (_obj2 = {}, _define_property$
|
|
18368
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$s(_object_spread$u({
|
|
18369
|
+
className: clsx(classes.root, (_obj2 = {}, _define_property$v(_obj2, classes.focused, isInputFocused), _define_property$v(_obj2, classes.disabled, isDisabled), _define_property$v(_obj2, classes.hasValue, trueReactPlatformHelpers.isArrayLikeNotEmpty(value)), _obj2)),
|
|
18375
18370
|
ref: refRoot
|
|
18376
18371
|
}, trueReactPlatformHelpers.addDataAttributes(data, testId)), {
|
|
18377
18372
|
children: [
|
|
@@ -18388,12 +18383,13 @@
|
|
|
18388
18383
|
},
|
|
18389
18384
|
testId: trueReactPlatformHelpers.getTestId(testId, "input"),
|
|
18390
18385
|
maxLength,
|
|
18391
|
-
isDisabled
|
|
18386
|
+
isDisabled,
|
|
18387
|
+
isAutoSized
|
|
18392
18388
|
}),
|
|
18393
18389
|
/* @__PURE__ */ jsxs("div", {
|
|
18394
18390
|
className: classes.selectWrapper,
|
|
18395
18391
|
children: [
|
|
18396
|
-
trueReactPlatformHelpers.isArrayNotEmpty(fields) && /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
18392
|
+
trueReactPlatformHelpers.isArrayNotEmpty(fields) && /* @__PURE__ */ jsxs("div", _object_spread_props$s(_object_spread$u({
|
|
18397
18393
|
className: classes.selectBlock,
|
|
18398
18394
|
onClick: !isDisabled ? function() {
|
|
18399
18395
|
return setIsOpen(!isOpen);
|
|
@@ -18401,7 +18397,7 @@
|
|
|
18401
18397
|
}, trueReactPlatformHelpers.addDataTestId(testId, "select")), {
|
|
18402
18398
|
children: [
|
|
18403
18399
|
/* @__PURE__ */ jsx("div", {
|
|
18404
|
-
className: clsx(classes.selectLabel, _define_property$
|
|
18400
|
+
className: clsx(classes.selectLabel, _define_property$v({}, classes.active, trueReactPlatformHelpers.isNotEmpty(field))),
|
|
18405
18401
|
children: trueReactPlatformHelpers.isNotEmpty(field) ? getValueView === null || getValueView === void 0 ? void 0 : getValueView(field) : translates.displayedFields
|
|
18406
18402
|
}),
|
|
18407
18403
|
/* @__PURE__ */ jsx("div", {
|
|
@@ -18434,7 +18430,7 @@
|
|
|
18434
18430
|
]
|
|
18435
18431
|
}));
|
|
18436
18432
|
}
|
|
18437
|
-
var useStyles$
|
|
18433
|
+
var useStyles$p = createThemedStyles("FilterValueView", {
|
|
18438
18434
|
text: {
|
|
18439
18435
|
overflow: "hidden",
|
|
18440
18436
|
textOverflow: "ellipsis",
|
|
@@ -18453,7 +18449,7 @@
|
|
|
18453
18449
|
}
|
|
18454
18450
|
function FilterValueView(param) {
|
|
18455
18451
|
var value = param.value, filter2 = param.filter, locale = param.locale, localeKey = param.localeKey, tweakStyles = param.tweakStyles;
|
|
18456
|
-
var classes = useStyles$
|
|
18452
|
+
var classes = useStyles$p({
|
|
18457
18453
|
theme: tweakStyles
|
|
18458
18454
|
});
|
|
18459
18455
|
var _filter_localeKey;
|
|
@@ -18618,7 +18614,7 @@
|
|
|
18618
18614
|
}
|
|
18619
18615
|
return trueReactPlatformHelpers.isNotEmpty(value);
|
|
18620
18616
|
};
|
|
18621
|
-
var useStyles$
|
|
18617
|
+
var useStyles$o = createThemedStyles("FilterWrapper", {
|
|
18622
18618
|
root: {
|
|
18623
18619
|
position: "relative",
|
|
18624
18620
|
transition: animations.defaultTransition,
|
|
@@ -18711,7 +18707,7 @@
|
|
|
18711
18707
|
minWidth: 0
|
|
18712
18708
|
}
|
|
18713
18709
|
});
|
|
18714
|
-
function _define_property$
|
|
18710
|
+
function _define_property$u(obj, key, value) {
|
|
18715
18711
|
if (key in obj) {
|
|
18716
18712
|
Object.defineProperty(obj, key, {
|
|
18717
18713
|
value,
|
|
@@ -18724,7 +18720,7 @@
|
|
|
18724
18720
|
}
|
|
18725
18721
|
return obj;
|
|
18726
18722
|
}
|
|
18727
|
-
function _object_spread$
|
|
18723
|
+
function _object_spread$t(target) {
|
|
18728
18724
|
for (var i = 1; i < arguments.length; i++) {
|
|
18729
18725
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
18730
18726
|
var ownKeys2 = Object.keys(source);
|
|
@@ -18734,12 +18730,12 @@
|
|
|
18734
18730
|
}));
|
|
18735
18731
|
}
|
|
18736
18732
|
ownKeys2.forEach(function(key) {
|
|
18737
|
-
_define_property$
|
|
18733
|
+
_define_property$u(target, key, source[key]);
|
|
18738
18734
|
});
|
|
18739
18735
|
}
|
|
18740
18736
|
return target;
|
|
18741
18737
|
}
|
|
18742
|
-
function ownKeys$
|
|
18738
|
+
function ownKeys$r(object, enumerableOnly) {
|
|
18743
18739
|
var keys = Object.keys(object);
|
|
18744
18740
|
if (Object.getOwnPropertySymbols) {
|
|
18745
18741
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -18752,12 +18748,12 @@
|
|
|
18752
18748
|
}
|
|
18753
18749
|
return keys;
|
|
18754
18750
|
}
|
|
18755
|
-
function _object_spread_props$
|
|
18751
|
+
function _object_spread_props$r(target, source) {
|
|
18756
18752
|
source = source != null ? source : {};
|
|
18757
18753
|
if (Object.getOwnPropertyDescriptors) {
|
|
18758
18754
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
18759
18755
|
} else {
|
|
18760
|
-
ownKeys$
|
|
18756
|
+
ownKeys$r(Object(source)).forEach(function(key) {
|
|
18761
18757
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
18762
18758
|
});
|
|
18763
18759
|
}
|
|
@@ -18765,7 +18761,7 @@
|
|
|
18765
18761
|
}
|
|
18766
18762
|
function FilterWrapper(param) {
|
|
18767
18763
|
var filter2 = param.filter, value = param.value, isDisabled = param.isDisabled, locale = param.locale, localeKey = param.localeKey, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles, onChange = param.onChange;
|
|
18768
|
-
var classes = useStyles$
|
|
18764
|
+
var classes = useStyles$o({
|
|
18769
18765
|
theme: tweakStyles
|
|
18770
18766
|
});
|
|
18771
18767
|
var tweakWithPopupStyles = useTweakStyles({
|
|
@@ -18809,12 +18805,12 @@
|
|
|
18809
18805
|
trigger: function(param2) {
|
|
18810
18806
|
var isActive = param2.triggerProps.isActive, referenceProps = param2.referenceProps;
|
|
18811
18807
|
var _obj2;
|
|
18812
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
18813
|
-
className: clsx(classes.root, (_obj2 = {}, _define_property$
|
|
18808
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$r(_object_spread$t({
|
|
18809
|
+
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))
|
|
18814
18810
|
}, trueReactPlatformHelpers.addDataAttributes(data, testId), referenceProps), {
|
|
18815
18811
|
children: /* @__PURE__ */ jsxs("div", {
|
|
18816
18812
|
onClick: handleLabelClick,
|
|
18817
|
-
className: clsx(classes.item, _define_property$
|
|
18813
|
+
className: clsx(classes.item, _define_property$u({}, classes.booleanItem, isBoolean)),
|
|
18818
18814
|
children: [
|
|
18819
18815
|
/* @__PURE__ */ jsx("div", {
|
|
18820
18816
|
className: classes.name,
|
|
@@ -18832,7 +18828,7 @@
|
|
|
18832
18828
|
})
|
|
18833
18829
|
}),
|
|
18834
18830
|
!isBoolean && !hasClearIcon && /* @__PURE__ */ jsx("div", {
|
|
18835
|
-
className: clsx(classes.iconContainer, classes.chevronIcon, _define_property$
|
|
18831
|
+
className: clsx(classes.iconContainer, classes.chevronIcon, _define_property$u({}, classes.open, isActive)),
|
|
18836
18832
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
18837
18833
|
type: "chevron-down"
|
|
18838
18834
|
})
|
|
@@ -18862,7 +18858,7 @@
|
|
|
18862
18858
|
}
|
|
18863
18859
|
});
|
|
18864
18860
|
}
|
|
18865
|
-
function _define_property$
|
|
18861
|
+
function _define_property$t(obj, key, value) {
|
|
18866
18862
|
if (key in obj) {
|
|
18867
18863
|
Object.defineProperty(obj, key, {
|
|
18868
18864
|
value,
|
|
@@ -18875,7 +18871,7 @@
|
|
|
18875
18871
|
}
|
|
18876
18872
|
return obj;
|
|
18877
18873
|
}
|
|
18878
|
-
function _object_spread$
|
|
18874
|
+
function _object_spread$s(target) {
|
|
18879
18875
|
for (var i = 1; i < arguments.length; i++) {
|
|
18880
18876
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
18881
18877
|
var ownKeys2 = Object.keys(source);
|
|
@@ -18885,12 +18881,12 @@
|
|
|
18885
18881
|
}));
|
|
18886
18882
|
}
|
|
18887
18883
|
ownKeys2.forEach(function(key) {
|
|
18888
|
-
_define_property$
|
|
18884
|
+
_define_property$t(target, key, source[key]);
|
|
18889
18885
|
});
|
|
18890
18886
|
}
|
|
18891
18887
|
return target;
|
|
18892
18888
|
}
|
|
18893
|
-
function ownKeys$
|
|
18889
|
+
function ownKeys$q(object, enumerableOnly) {
|
|
18894
18890
|
var keys = Object.keys(object);
|
|
18895
18891
|
if (Object.getOwnPropertySymbols) {
|
|
18896
18892
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -18903,12 +18899,12 @@
|
|
|
18903
18899
|
}
|
|
18904
18900
|
return keys;
|
|
18905
18901
|
}
|
|
18906
|
-
function _object_spread_props$
|
|
18902
|
+
function _object_spread_props$q(target, source) {
|
|
18907
18903
|
source = source != null ? source : {};
|
|
18908
18904
|
if (Object.getOwnPropertyDescriptors) {
|
|
18909
18905
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
18910
18906
|
} else {
|
|
18911
|
-
ownKeys$
|
|
18907
|
+
ownKeys$q(Object(source)).forEach(function(key) {
|
|
18912
18908
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
18913
18909
|
});
|
|
18914
18910
|
}
|
|
@@ -18916,7 +18912,7 @@
|
|
|
18916
18912
|
}
|
|
18917
18913
|
function FiltersPane(param) {
|
|
18918
18914
|
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, locale = param.locale, search2 = 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, _param_settingsIcon = param.settingsIcon, settingsIcon = _param_settingsIcon === void 0 ? "filter" : _param_settingsIcon, testId = param.testId, onChangeFilters = param.onChangeFilters, onSettingsButtonClick = param.onSettingsButtonClick, onClear = param.onClear;
|
|
18919
|
-
var classes = useStyles$
|
|
18915
|
+
var classes = useStyles$w({
|
|
18920
18916
|
theme: tweakStyles
|
|
18921
18917
|
});
|
|
18922
18918
|
var tweakClearButtonStyles = useTweakStyles({
|
|
@@ -18963,11 +18959,11 @@
|
|
|
18963
18959
|
})
|
|
18964
18960
|
});
|
|
18965
18961
|
var _search_localeKey, _search_localeKey1, _search_isDisabled;
|
|
18966
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
18962
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$q(_object_spread$s({
|
|
18967
18963
|
className: classes.root
|
|
18968
18964
|
}, trueReactPlatformHelpers.addDataAttributes(data, testId)), {
|
|
18969
18965
|
children: [
|
|
18970
|
-
onSettingsButtonClick !== void 0 && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
18966
|
+
onSettingsButtonClick !== void 0 && /* @__PURE__ */ jsx("div", _object_spread_props$q(_object_spread$s({
|
|
18971
18967
|
className: classes.settings,
|
|
18972
18968
|
tabIndex: 0
|
|
18973
18969
|
}, trueReactPlatformHelpers.addDataTestId(testId, "settings-button")), {
|
|
@@ -18977,7 +18973,7 @@
|
|
|
18977
18973
|
children: renderIcon(settingsIcon)
|
|
18978
18974
|
})
|
|
18979
18975
|
})),
|
|
18980
|
-
search2 !== void 0 && /* @__PURE__ */ jsx(FiltersPaneSearch, _object_spread_props$
|
|
18976
|
+
search2 !== void 0 && /* @__PURE__ */ jsx(FiltersPaneSearch, _object_spread_props$q(_object_spread$s({}, search2), {
|
|
18981
18977
|
locale: getLocale$1((_search_localeKey = search2.localeKey) !== null && _search_localeKey !== void 0 ? _search_localeKey : localeKey, search2.locale, locale),
|
|
18982
18978
|
localeKey: (_search_localeKey1 = search2.localeKey) !== null && _search_localeKey1 !== void 0 ? _search_localeKey1 : localeKey,
|
|
18983
18979
|
isDisabled: (_search_isDisabled = search2.isDisabled) !== null && _search_isDisabled !== void 0 ? _search_isDisabled : isDisabled,
|
|
@@ -19001,7 +18997,7 @@
|
|
|
19001
18997
|
locale,
|
|
19002
18998
|
localeKey,
|
|
19003
18999
|
onChange: function(value) {
|
|
19004
|
-
return onChangeFilters(_object_spread_props$
|
|
19000
|
+
return onChangeFilters(_object_spread_props$q(_object_spread$s({}, values), _define_property$t({}, filterKey, value)));
|
|
19005
19001
|
},
|
|
19006
19002
|
value: currentValue,
|
|
19007
19003
|
isDisabled: isDisabled || (filter2 === null || filter2 === void 0 ? void 0 : (_filter_requiredFilledFilters = filter2.requiredFilledFilters) === null || _filter_requiredFilledFilters === void 0 ? void 0 : _filter_requiredFilledFilters.some(function(item) {
|
|
@@ -25146,7 +25142,7 @@
|
|
|
25146
25142
|
*/
|
|
25147
25143
|
OS
|
|
25148
25144
|
};
|
|
25149
|
-
var useStyles$
|
|
25145
|
+
var useStyles$n = createThemedStyles("Flag", {
|
|
25150
25146
|
root: {
|
|
25151
25147
|
display: "flex",
|
|
25152
25148
|
width: "100%",
|
|
@@ -25168,7 +25164,7 @@
|
|
|
25168
25164
|
});
|
|
25169
25165
|
var Flag = function(param) {
|
|
25170
25166
|
var _param_countryCode = param.countryCode, countryCode = _param_countryCode === void 0 ? "" : _param_countryCode, tweakStyles = param.tweakStyles;
|
|
25171
|
-
var classes = useStyles$
|
|
25167
|
+
var classes = useStyles$n({
|
|
25172
25168
|
theme: tweakStyles
|
|
25173
25169
|
});
|
|
25174
25170
|
var countryFlagKey = countryCode.toUpperCase();
|
|
@@ -25215,7 +25211,7 @@
|
|
|
25215
25211
|
Cell: "div"
|
|
25216
25212
|
}
|
|
25217
25213
|
};
|
|
25218
|
-
var useStyles$
|
|
25214
|
+
var useStyles$m = createThemedStyles("Skeleton", {
|
|
25219
25215
|
root: {
|
|
25220
25216
|
display: "flex",
|
|
25221
25217
|
width: "100%",
|
|
@@ -25251,7 +25247,7 @@
|
|
|
25251
25247
|
});
|
|
25252
25248
|
var Skeleton = function(param) {
|
|
25253
25249
|
var height = param.height, tweakStyles = param.tweakStyles;
|
|
25254
|
-
var classes = useStyles$
|
|
25250
|
+
var classes = useStyles$m({
|
|
25255
25251
|
theme: tweakStyles
|
|
25256
25252
|
});
|
|
25257
25253
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -25275,23 +25271,75 @@
|
|
|
25275
25271
|
var _config_dateFormat;
|
|
25276
25272
|
return _instanceof(value, Date) ? dateFns.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);
|
|
25277
25273
|
};
|
|
25274
|
+
function _define_property$s(obj, key, value) {
|
|
25275
|
+
if (key in obj) {
|
|
25276
|
+
Object.defineProperty(obj, key, {
|
|
25277
|
+
value,
|
|
25278
|
+
enumerable: true,
|
|
25279
|
+
configurable: true,
|
|
25280
|
+
writable: true
|
|
25281
|
+
});
|
|
25282
|
+
} else {
|
|
25283
|
+
obj[key] = value;
|
|
25284
|
+
}
|
|
25285
|
+
return obj;
|
|
25286
|
+
}
|
|
25287
|
+
function _object_spread$r(target) {
|
|
25288
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
25289
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
25290
|
+
var ownKeys2 = Object.keys(source);
|
|
25291
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
25292
|
+
ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
25293
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
25294
|
+
}));
|
|
25295
|
+
}
|
|
25296
|
+
ownKeys2.forEach(function(key) {
|
|
25297
|
+
_define_property$s(target, key, source[key]);
|
|
25298
|
+
});
|
|
25299
|
+
}
|
|
25300
|
+
return target;
|
|
25301
|
+
}
|
|
25302
|
+
function ownKeys$p(object, enumerableOnly) {
|
|
25303
|
+
var keys = Object.keys(object);
|
|
25304
|
+
if (Object.getOwnPropertySymbols) {
|
|
25305
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
25306
|
+
if (enumerableOnly) {
|
|
25307
|
+
symbols = symbols.filter(function(sym) {
|
|
25308
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
25309
|
+
});
|
|
25310
|
+
}
|
|
25311
|
+
keys.push.apply(keys, symbols);
|
|
25312
|
+
}
|
|
25313
|
+
return keys;
|
|
25314
|
+
}
|
|
25315
|
+
function _object_spread_props$p(target, source) {
|
|
25316
|
+
source = source != null ? source : {};
|
|
25317
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
25318
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
25319
|
+
} else {
|
|
25320
|
+
ownKeys$p(Object(source)).forEach(function(key) {
|
|
25321
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
25322
|
+
});
|
|
25323
|
+
}
|
|
25324
|
+
return target;
|
|
25325
|
+
}
|
|
25278
25326
|
var STICKY_SHADOW_PADDING = 12;
|
|
25279
|
-
var useStyles$
|
|
25327
|
+
var useStyles$l = createThemedStyles("FlexibleTable", {
|
|
25328
|
+
flexibleTableWrapper: {},
|
|
25280
25329
|
root: {
|
|
25281
25330
|
width: "100%",
|
|
25282
25331
|
position: "relative",
|
|
25283
25332
|
borderCollapse: "separate",
|
|
25284
25333
|
borderSpacing: 0
|
|
25285
25334
|
},
|
|
25286
|
-
scroll: {
|
|
25287
|
-
overflow: "auto",
|
|
25335
|
+
scroll: _object_spread_props$p(_object_spread$r({}, helpers.withScrollBar), {
|
|
25288
25336
|
/*
|
|
25289
25337
|
Чтобы сделать таблицу на всю высоту проставьте
|
|
25290
25338
|
height у родителя таблицы у себя в проекте.
|
|
25291
25339
|
Например: height: calc(100vh -{высота шапки}px)
|
|
25292
25340
|
*/
|
|
25293
25341
|
maxHeight: "100%"
|
|
25294
|
-
},
|
|
25342
|
+
}),
|
|
25295
25343
|
head: {},
|
|
25296
25344
|
body: {},
|
|
25297
25345
|
loaderRow: {},
|
|
@@ -25363,7 +25411,7 @@
|
|
|
25363
25411
|
nothingFoundRow: {},
|
|
25364
25412
|
nothingFound: {}
|
|
25365
25413
|
});
|
|
25366
|
-
function _define_property$
|
|
25414
|
+
function _define_property$r(obj, key, value) {
|
|
25367
25415
|
if (key in obj) {
|
|
25368
25416
|
Object.defineProperty(obj, key, {
|
|
25369
25417
|
value,
|
|
@@ -25376,7 +25424,7 @@
|
|
|
25376
25424
|
}
|
|
25377
25425
|
return obj;
|
|
25378
25426
|
}
|
|
25379
|
-
function _object_spread$
|
|
25427
|
+
function _object_spread$q(target) {
|
|
25380
25428
|
for (var i = 1; i < arguments.length; i++) {
|
|
25381
25429
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
25382
25430
|
var ownKeys2 = Object.keys(source);
|
|
@@ -25386,12 +25434,12 @@
|
|
|
25386
25434
|
}));
|
|
25387
25435
|
}
|
|
25388
25436
|
ownKeys2.forEach(function(key) {
|
|
25389
|
-
_define_property$
|
|
25437
|
+
_define_property$r(target, key, source[key]);
|
|
25390
25438
|
});
|
|
25391
25439
|
}
|
|
25392
25440
|
return target;
|
|
25393
25441
|
}
|
|
25394
|
-
function ownKeys$
|
|
25442
|
+
function ownKeys$o(object, enumerableOnly) {
|
|
25395
25443
|
var keys = Object.keys(object);
|
|
25396
25444
|
if (Object.getOwnPropertySymbols) {
|
|
25397
25445
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -25404,18 +25452,18 @@
|
|
|
25404
25452
|
}
|
|
25405
25453
|
return keys;
|
|
25406
25454
|
}
|
|
25407
|
-
function _object_spread_props$
|
|
25455
|
+
function _object_spread_props$o(target, source) {
|
|
25408
25456
|
source = source != null ? source : {};
|
|
25409
25457
|
if (Object.getOwnPropertyDescriptors) {
|
|
25410
25458
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
25411
25459
|
} else {
|
|
25412
|
-
ownKeys$
|
|
25460
|
+
ownKeys$o(Object(source)).forEach(function(key) {
|
|
25413
25461
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
25414
25462
|
});
|
|
25415
25463
|
}
|
|
25416
25464
|
return target;
|
|
25417
25465
|
}
|
|
25418
|
-
var useStyles$
|
|
25466
|
+
var useStyles$k = createThemedStyles("FlexibleTableCell", {
|
|
25419
25467
|
root: {
|
|
25420
25468
|
position: "relative",
|
|
25421
25469
|
boxSizing: "content-box",
|
|
@@ -25428,7 +25476,7 @@
|
|
|
25428
25476
|
zIndex: 5,
|
|
25429
25477
|
verticalAlign: "top"
|
|
25430
25478
|
},
|
|
25431
|
-
sticky: _object_spread_props$
|
|
25479
|
+
sticky: _object_spread_props$o(_object_spread$q({
|
|
25432
25480
|
zIndex: 19,
|
|
25433
25481
|
paddingLeft: 24,
|
|
25434
25482
|
paddingRight: 12,
|
|
@@ -25451,7 +25499,7 @@
|
|
|
25451
25499
|
cursor: "pointer"
|
|
25452
25500
|
}
|
|
25453
25501
|
});
|
|
25454
|
-
function _define_property$
|
|
25502
|
+
function _define_property$q(obj, key, value) {
|
|
25455
25503
|
if (key in obj) {
|
|
25456
25504
|
Object.defineProperty(obj, key, {
|
|
25457
25505
|
value,
|
|
@@ -25464,7 +25512,7 @@
|
|
|
25464
25512
|
}
|
|
25465
25513
|
return obj;
|
|
25466
25514
|
}
|
|
25467
|
-
function _object_spread$
|
|
25515
|
+
function _object_spread$p(target) {
|
|
25468
25516
|
for (var i = 1; i < arguments.length; i++) {
|
|
25469
25517
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
25470
25518
|
var ownKeys2 = Object.keys(source);
|
|
@@ -25474,12 +25522,12 @@
|
|
|
25474
25522
|
}));
|
|
25475
25523
|
}
|
|
25476
25524
|
ownKeys2.forEach(function(key) {
|
|
25477
|
-
_define_property$
|
|
25525
|
+
_define_property$q(target, key, source[key]);
|
|
25478
25526
|
});
|
|
25479
25527
|
}
|
|
25480
25528
|
return target;
|
|
25481
25529
|
}
|
|
25482
|
-
function ownKeys$
|
|
25530
|
+
function ownKeys$n(object, enumerableOnly) {
|
|
25483
25531
|
var keys = Object.keys(object);
|
|
25484
25532
|
if (Object.getOwnPropertySymbols) {
|
|
25485
25533
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -25492,21 +25540,21 @@
|
|
|
25492
25540
|
}
|
|
25493
25541
|
return keys;
|
|
25494
25542
|
}
|
|
25495
|
-
function _object_spread_props$
|
|
25543
|
+
function _object_spread_props$n(target, source) {
|
|
25496
25544
|
source = source != null ? source : {};
|
|
25497
25545
|
if (Object.getOwnPropertyDescriptors) {
|
|
25498
25546
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
25499
25547
|
} else {
|
|
25500
|
-
ownKeys$
|
|
25548
|
+
ownKeys$n(Object(source)).forEach(function(key) {
|
|
25501
25549
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
25502
25550
|
});
|
|
25503
25551
|
}
|
|
25504
25552
|
return target;
|
|
25505
25553
|
}
|
|
25506
|
-
function _object_without_properties$
|
|
25554
|
+
function _object_without_properties$b(source, excluded) {
|
|
25507
25555
|
if (source == null)
|
|
25508
25556
|
return {};
|
|
25509
|
-
var target = _object_without_properties_loose$
|
|
25557
|
+
var target = _object_without_properties_loose$b(source, excluded);
|
|
25510
25558
|
var key, i;
|
|
25511
25559
|
if (Object.getOwnPropertySymbols) {
|
|
25512
25560
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -25521,7 +25569,7 @@
|
|
|
25521
25569
|
}
|
|
25522
25570
|
return target;
|
|
25523
25571
|
}
|
|
25524
|
-
function _object_without_properties_loose$
|
|
25572
|
+
function _object_without_properties_loose$b(source, excluded) {
|
|
25525
25573
|
if (source == null)
|
|
25526
25574
|
return {};
|
|
25527
25575
|
var target = {};
|
|
@@ -25536,7 +25584,7 @@
|
|
|
25536
25584
|
return target;
|
|
25537
25585
|
}
|
|
25538
25586
|
function FlexibleTableCell(_param) {
|
|
25539
|
-
var row = _param.row, columnName = _param.columnName, config = _param.config, renderMode = _param.renderMode, isSecond = _param.isSecond, isOldSticky = _param.isSticky, isLoading = _param.isLoading, updateNestedComponent = _param.updateNestedComponent, tweakStyles = _param.tweakStyles, valueComponentProps = _object_without_properties$
|
|
25587
|
+
var row = _param.row, columnName = _param.columnName, config = _param.config, renderMode = _param.renderMode, isSecond = _param.isSecond, isOldSticky = _param.isSticky, isLoading = _param.isLoading, updateNestedComponent = _param.updateNestedComponent, tweakStyles = _param.tweakStyles, valueComponentProps = _object_without_properties$b(_param, [
|
|
25540
25588
|
"row",
|
|
25541
25589
|
"columnName",
|
|
25542
25590
|
"config",
|
|
@@ -25547,7 +25595,7 @@
|
|
|
25547
25595
|
"updateNestedComponent",
|
|
25548
25596
|
"tweakStyles"
|
|
25549
25597
|
]);
|
|
25550
|
-
var classes = useStyles$
|
|
25598
|
+
var classes = useStyles$k({
|
|
25551
25599
|
theme: tweakStyles
|
|
25552
25600
|
});
|
|
25553
25601
|
var value = row[columnName];
|
|
@@ -25555,7 +25603,7 @@
|
|
|
25555
25603
|
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 ? trueReactPlatformHelpers.isNotEmpty : _ref_shouldRenderComponent, onCellClick = _ref.onCellClick;
|
|
25556
25604
|
var isSticky = isOldSticky || position === "sticky";
|
|
25557
25605
|
var isClickable = !isLoading && trueReactPlatformHelpers.isNotEmpty(onCellClick);
|
|
25558
|
-
var cellComponentProps = _object_spread_props$
|
|
25606
|
+
var cellComponentProps = _object_spread_props$n(_object_spread$p({}, valueComponentProps), {
|
|
25559
25607
|
onSetNestedComponent: React.useCallback(function(node) {
|
|
25560
25608
|
return updateNestedComponent(node, columnName);
|
|
25561
25609
|
}, [
|
|
@@ -25567,8 +25615,8 @@
|
|
|
25567
25615
|
});
|
|
25568
25616
|
var Table = TableRenders[renderMode];
|
|
25569
25617
|
var _obj2;
|
|
25570
|
-
return /* @__PURE__ */ jsx(Table.Cell, _object_spread_props$
|
|
25571
|
-
className: clsx(classes.root, (_obj2 = {}, _define_property$
|
|
25618
|
+
return /* @__PURE__ */ jsx(Table.Cell, _object_spread_props$n(_object_spread$p({
|
|
25619
|
+
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)),
|
|
25572
25620
|
style: {
|
|
25573
25621
|
textAlign: cellAlign,
|
|
25574
25622
|
position: isSticky ? "sticky" : position,
|
|
@@ -25591,7 +25639,7 @@
|
|
|
25591
25639
|
}) : trueReactPlatformHelpers.applyAction(shouldRenderComponent, value, row, columnName) && trueReactPlatformHelpers.applyAction(component, cellComponentProps)
|
|
25592
25640
|
}));
|
|
25593
25641
|
}
|
|
25594
|
-
var useStyles$
|
|
25642
|
+
var useStyles$j = createThemedStyles("FlexibleTableRow", {
|
|
25595
25643
|
root: {
|
|
25596
25644
|
position: "relative"
|
|
25597
25645
|
},
|
|
@@ -25615,7 +25663,7 @@
|
|
|
25615
25663
|
if (Array.isArray(arr))
|
|
25616
25664
|
return arr;
|
|
25617
25665
|
}
|
|
25618
|
-
function _define_property$
|
|
25666
|
+
function _define_property$p(obj, key, value) {
|
|
25619
25667
|
if (key in obj) {
|
|
25620
25668
|
Object.defineProperty(obj, key, {
|
|
25621
25669
|
value,
|
|
@@ -25659,7 +25707,7 @@
|
|
|
25659
25707
|
function _non_iterable_rest$7() {
|
|
25660
25708
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
25661
25709
|
}
|
|
25662
|
-
function _object_spread$
|
|
25710
|
+
function _object_spread$o(target) {
|
|
25663
25711
|
for (var i = 1; i < arguments.length; i++) {
|
|
25664
25712
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
25665
25713
|
var ownKeys2 = Object.keys(source);
|
|
@@ -25669,12 +25717,12 @@
|
|
|
25669
25717
|
}));
|
|
25670
25718
|
}
|
|
25671
25719
|
ownKeys2.forEach(function(key) {
|
|
25672
|
-
_define_property$
|
|
25720
|
+
_define_property$p(target, key, source[key]);
|
|
25673
25721
|
});
|
|
25674
25722
|
}
|
|
25675
25723
|
return target;
|
|
25676
25724
|
}
|
|
25677
|
-
function ownKeys$
|
|
25725
|
+
function ownKeys$m(object, enumerableOnly) {
|
|
25678
25726
|
var keys = Object.keys(object);
|
|
25679
25727
|
if (Object.getOwnPropertySymbols) {
|
|
25680
25728
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -25687,12 +25735,12 @@
|
|
|
25687
25735
|
}
|
|
25688
25736
|
return keys;
|
|
25689
25737
|
}
|
|
25690
|
-
function _object_spread_props$
|
|
25738
|
+
function _object_spread_props$m(target, source) {
|
|
25691
25739
|
source = source != null ? source : {};
|
|
25692
25740
|
if (Object.getOwnPropertyDescriptors) {
|
|
25693
25741
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
25694
25742
|
} else {
|
|
25695
|
-
ownKeys$
|
|
25743
|
+
ownKeys$m(Object(source)).forEach(function(key) {
|
|
25696
25744
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
25697
25745
|
});
|
|
25698
25746
|
}
|
|
@@ -25716,7 +25764,7 @@
|
|
|
25716
25764
|
}
|
|
25717
25765
|
function FlexibleTableRowInner(param) {
|
|
25718
25766
|
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;
|
|
25719
|
-
var classes = useStyles$
|
|
25767
|
+
var classes = useStyles$j({
|
|
25720
25768
|
theme: tweakStyles
|
|
25721
25769
|
});
|
|
25722
25770
|
var tweakTableCellStyles = useTweakStyles({
|
|
@@ -25791,14 +25839,14 @@
|
|
|
25791
25839
|
var _obj2;
|
|
25792
25840
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
25793
25841
|
children: [
|
|
25794
|
-
/* @__PURE__ */ jsx(Table.Row, _object_spread_props$
|
|
25842
|
+
/* @__PURE__ */ jsx(Table.Row, _object_spread_props$m(_object_spread$o({
|
|
25795
25843
|
ref: rowRef,
|
|
25796
|
-
className: clsx(classes.root, (_obj2 = {}, _define_property$
|
|
25844
|
+
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))
|
|
25797
25845
|
}, !isLoading && {
|
|
25798
25846
|
onClick: handleRowClick,
|
|
25799
25847
|
onMouseEnter: handleMouseEnter,
|
|
25800
25848
|
onMouseLeave: handleMouseLeave
|
|
25801
|
-
}, addDataAttributes(_object_spread_props$
|
|
25849
|
+
}, addDataAttributes(_object_spread_props$m(_object_spread$o({}, rowData), {
|
|
25802
25850
|
active: isActive ? true : void 0,
|
|
25803
25851
|
editable: isEditable ? true : void 0,
|
|
25804
25852
|
isExpandableComponentActive: isNestedComponentExpanded ? true : void 0
|
|
@@ -25833,7 +25881,7 @@
|
|
|
25833
25881
|
});
|
|
25834
25882
|
}
|
|
25835
25883
|
var FlexibleTableRow = /* @__PURE__ */ React.memo(FlexibleTableRowInner);
|
|
25836
|
-
function _define_property$
|
|
25884
|
+
function _define_property$o(obj, key, value) {
|
|
25837
25885
|
if (key in obj) {
|
|
25838
25886
|
Object.defineProperty(obj, key, {
|
|
25839
25887
|
value,
|
|
@@ -25846,7 +25894,7 @@
|
|
|
25846
25894
|
}
|
|
25847
25895
|
return obj;
|
|
25848
25896
|
}
|
|
25849
|
-
function _object_spread$
|
|
25897
|
+
function _object_spread$n(target) {
|
|
25850
25898
|
for (var i = 1; i < arguments.length; i++) {
|
|
25851
25899
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
25852
25900
|
var ownKeys2 = Object.keys(source);
|
|
@@ -25856,12 +25904,12 @@
|
|
|
25856
25904
|
}));
|
|
25857
25905
|
}
|
|
25858
25906
|
ownKeys2.forEach(function(key) {
|
|
25859
|
-
_define_property$
|
|
25907
|
+
_define_property$o(target, key, source[key]);
|
|
25860
25908
|
});
|
|
25861
25909
|
}
|
|
25862
25910
|
return target;
|
|
25863
25911
|
}
|
|
25864
|
-
function ownKeys$
|
|
25912
|
+
function ownKeys$l(object, enumerableOnly) {
|
|
25865
25913
|
var keys = Object.keys(object);
|
|
25866
25914
|
if (Object.getOwnPropertySymbols) {
|
|
25867
25915
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -25874,21 +25922,21 @@
|
|
|
25874
25922
|
}
|
|
25875
25923
|
return keys;
|
|
25876
25924
|
}
|
|
25877
|
-
function _object_spread_props$
|
|
25925
|
+
function _object_spread_props$l(target, source) {
|
|
25878
25926
|
source = source != null ? source : {};
|
|
25879
25927
|
if (Object.getOwnPropertyDescriptors) {
|
|
25880
25928
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
25881
25929
|
} else {
|
|
25882
|
-
ownKeys$
|
|
25930
|
+
ownKeys$l(Object(source)).forEach(function(key) {
|
|
25883
25931
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
25884
25932
|
});
|
|
25885
25933
|
}
|
|
25886
25934
|
return target;
|
|
25887
25935
|
}
|
|
25888
|
-
function _object_without_properties$
|
|
25936
|
+
function _object_without_properties$a(source, excluded) {
|
|
25889
25937
|
if (source == null)
|
|
25890
25938
|
return {};
|
|
25891
|
-
var target = _object_without_properties_loose$
|
|
25939
|
+
var target = _object_without_properties_loose$a(source, excluded);
|
|
25892
25940
|
var key, i;
|
|
25893
25941
|
if (Object.getOwnPropertySymbols) {
|
|
25894
25942
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -25903,7 +25951,7 @@
|
|
|
25903
25951
|
}
|
|
25904
25952
|
return target;
|
|
25905
25953
|
}
|
|
25906
|
-
function _object_without_properties_loose$
|
|
25954
|
+
function _object_without_properties_loose$a(source, excluded) {
|
|
25907
25955
|
if (source == null)
|
|
25908
25956
|
return {};
|
|
25909
25957
|
var target = {};
|
|
@@ -25918,7 +25966,7 @@
|
|
|
25918
25966
|
return target;
|
|
25919
25967
|
}
|
|
25920
25968
|
function FlexibleTable(_param) {
|
|
25921
|
-
var content = _param.content, headerContent = _param.headerContent, config = _param.config, enabledColumns = _param.enabledColumns, activeRows = _param.activeRows, uniqueField = _param.uniqueField, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isFirstColumnSticky = _param.isFirstColumnSticky, isFirstColumnSticky = _param_isFirstColumnSticky === void 0 ? false : _param_isFirstColumnSticky, _param_isHorizontallyScrollable = _param.isHorizontallyScrollable, isHorizontallyScrollable = _param_isHorizontallyScrollable === void 0 ? false : _param_isHorizontallyScrollable, _param_isRowFocusable = _param.isRowFocusable, isRowFocusable = _param_isRowFocusable === void 0 ? false : _param_isRowFocusable, infinityScrollConfigDeprecated = _param.infinityScrollConfig, _param_renderMode = _param.renderMode, renderMode = _param_renderMode === void 0 ? "table" : _param_renderMode, refForScroll = _param.refForScroll, nothingFoundContent = _param.nothingFoundContent, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, _param_shouldRenderHeader = _param.shouldRenderHeader, shouldRenderHeader = _param_shouldRenderHeader === void 0 ? true : _param_shouldRenderHeader, onHeadClick = _param.onHeadClick, isRowInitiallyOpen = _param.isExpandableRowComponentInitiallyOpen, restProps = _object_without_properties$
|
|
25969
|
+
var content = _param.content, headerContent = _param.headerContent, config = _param.config, enabledColumns = _param.enabledColumns, activeRows = _param.activeRows, uniqueField = _param.uniqueField, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isFirstColumnSticky = _param.isFirstColumnSticky, isFirstColumnSticky = _param_isFirstColumnSticky === void 0 ? false : _param_isFirstColumnSticky, _param_isHorizontallyScrollable = _param.isHorizontallyScrollable, isHorizontallyScrollable = _param_isHorizontallyScrollable === void 0 ? false : _param_isHorizontallyScrollable, _param_isRowFocusable = _param.isRowFocusable, isRowFocusable = _param_isRowFocusable === void 0 ? false : _param_isRowFocusable, infinityScrollConfigDeprecated = _param.infinityScrollConfig, _param_renderMode = _param.renderMode, renderMode = _param_renderMode === void 0 ? "table" : _param_renderMode, refForScroll = _param.refForScroll, nothingFoundContent = _param.nothingFoundContent, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, _param_shouldRenderHeader = _param.shouldRenderHeader, shouldRenderHeader = _param_shouldRenderHeader === void 0 ? true : _param_shouldRenderHeader, onHeadClick = _param.onHeadClick, isRowInitiallyOpen = _param.isExpandableRowComponentInitiallyOpen, restProps = _object_without_properties$a(_param, [
|
|
25922
25970
|
"content",
|
|
25923
25971
|
"headerContent",
|
|
25924
25972
|
"config",
|
|
@@ -25940,7 +25988,7 @@
|
|
|
25940
25988
|
"onHeadClick",
|
|
25941
25989
|
"isExpandableRowComponentInitiallyOpen"
|
|
25942
25990
|
]);
|
|
25943
|
-
var classes = useStyles$
|
|
25991
|
+
var classes = useStyles$l({
|
|
25944
25992
|
theme: tweakStyles
|
|
25945
25993
|
});
|
|
25946
25994
|
var tweakTableRowStyles = useTweakStyles({
|
|
@@ -25956,7 +26004,7 @@
|
|
|
25956
26004
|
config
|
|
25957
26005
|
]);
|
|
25958
26006
|
var getTableRowProps = function(item, index) {
|
|
25959
|
-
return _object_spread_props$
|
|
26007
|
+
return _object_spread_props$l(_object_spread$n({}, restProps), {
|
|
25960
26008
|
item,
|
|
25961
26009
|
renderMode,
|
|
25962
26010
|
config,
|
|
@@ -26043,10 +26091,10 @@
|
|
|
26043
26091
|
var Table = TableRenders[renderMode];
|
|
26044
26092
|
return /* @__PURE__ */ jsx("div", {
|
|
26045
26093
|
ref,
|
|
26046
|
-
className: clsx(_define_property$
|
|
26047
|
-
children: /* @__PURE__ */ jsxs(Table.Root, _object_spread_props$
|
|
26094
|
+
className: clsx(classes.flexibleTableWrapper, _define_property$o({}, classes.scroll, isHorizontallyScrollable)),
|
|
26095
|
+
children: /* @__PURE__ */ jsxs(Table.Root, _object_spread_props$l(_object_spread$n({
|
|
26048
26096
|
className: classes.root
|
|
26049
|
-
}, trueReactPlatformHelpers.addDataAttributes(_object_spread_props$
|
|
26097
|
+
}, trueReactPlatformHelpers.addDataAttributes(_object_spread_props$l(_object_spread$n({}, data), {
|
|
26050
26098
|
isLoading
|
|
26051
26099
|
}), testId)), {
|
|
26052
26100
|
children: [
|
|
@@ -26059,8 +26107,8 @@
|
|
|
26059
26107
|
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;
|
|
26060
26108
|
var isSticky = position === "sticky" || isFirstColumnSticky && i === 0;
|
|
26061
26109
|
var _obj2;
|
|
26062
|
-
return /* @__PURE__ */ jsx(Table.Header, _object_spread_props$
|
|
26063
|
-
className: clsx(classes.header, (_obj2 = {}, _define_property$
|
|
26110
|
+
return /* @__PURE__ */ jsx(Table.Header, _object_spread_props$l(_object_spread$n({
|
|
26111
|
+
className: clsx(classes.header, (_obj2 = {}, _define_property$o(_obj2, classes.headerSticky, isSticky), _define_property$o(_obj2, classes.headerSecond, isFirstColumnSticky && i === 1), _obj2)),
|
|
26064
26112
|
style: {
|
|
26065
26113
|
minWidth,
|
|
26066
26114
|
width,
|
|
@@ -26086,7 +26134,7 @@
|
|
|
26086
26134
|
/* @__PURE__ */ jsx(Table.Body, {
|
|
26087
26135
|
className: classes.body,
|
|
26088
26136
|
children: isLoading ? trueReactPlatformHelpers.indexMap(6, function(i) {
|
|
26089
|
-
return /* @__PURE__ */ React.createElement(FlexibleTableRow, _object_spread_props$
|
|
26137
|
+
return /* @__PURE__ */ React.createElement(FlexibleTableRow, _object_spread_props$l(_object_spread$n({}, getTableRowProps({}, i)), {
|
|
26090
26138
|
key: i
|
|
26091
26139
|
}));
|
|
26092
26140
|
}) : /* @__PURE__ */ jsxs(Fragment, {
|
|
@@ -26100,7 +26148,7 @@
|
|
|
26100
26148
|
})
|
|
26101
26149
|
}),
|
|
26102
26150
|
content.map(function(item, i) {
|
|
26103
|
-
return /* @__PURE__ */ React.createElement(FlexibleTableRow, _object_spread_props$
|
|
26151
|
+
return /* @__PURE__ */ React.createElement(FlexibleTableRow, _object_spread_props$l(_object_spread$n({}, getTableRowProps(item, i)), {
|
|
26104
26152
|
isActive: activeRowsSet.has(i),
|
|
26105
26153
|
key: trueReactPlatformHelpers.isNotEmpty(uniqueField) ? item[uniqueField] : i
|
|
26106
26154
|
}));
|
|
@@ -26127,6 +26175,280 @@
|
|
|
26127
26175
|
}))
|
|
26128
26176
|
});
|
|
26129
26177
|
}
|
|
26178
|
+
var useStyles$i = createThemedStyles("DocActions", {
|
|
26179
|
+
docActions: {
|
|
26180
|
+
display: "grid",
|
|
26181
|
+
alignItems: "center",
|
|
26182
|
+
gridTemplateColumns: "max-content 1fr"
|
|
26183
|
+
},
|
|
26184
|
+
neutral: {},
|
|
26185
|
+
inverse: {},
|
|
26186
|
+
counterWrapper: {},
|
|
26187
|
+
title: {},
|
|
26188
|
+
actionsWrapper: {
|
|
26189
|
+
justifySelf: "end"
|
|
26190
|
+
}
|
|
26191
|
+
});
|
|
26192
|
+
function _define_property$n(obj, key, value) {
|
|
26193
|
+
if (key in obj) {
|
|
26194
|
+
Object.defineProperty(obj, key, {
|
|
26195
|
+
value,
|
|
26196
|
+
enumerable: true,
|
|
26197
|
+
configurable: true,
|
|
26198
|
+
writable: true
|
|
26199
|
+
});
|
|
26200
|
+
} else {
|
|
26201
|
+
obj[key] = value;
|
|
26202
|
+
}
|
|
26203
|
+
return obj;
|
|
26204
|
+
}
|
|
26205
|
+
function _object_spread$m(target) {
|
|
26206
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
26207
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
26208
|
+
var ownKeys2 = Object.keys(source);
|
|
26209
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
26210
|
+
ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
26211
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
26212
|
+
}));
|
|
26213
|
+
}
|
|
26214
|
+
ownKeys2.forEach(function(key) {
|
|
26215
|
+
_define_property$n(target, key, source[key]);
|
|
26216
|
+
});
|
|
26217
|
+
}
|
|
26218
|
+
return target;
|
|
26219
|
+
}
|
|
26220
|
+
function ownKeys$k(object, enumerableOnly) {
|
|
26221
|
+
var keys = Object.keys(object);
|
|
26222
|
+
if (Object.getOwnPropertySymbols) {
|
|
26223
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
26224
|
+
if (enumerableOnly) {
|
|
26225
|
+
symbols = symbols.filter(function(sym) {
|
|
26226
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
26227
|
+
});
|
|
26228
|
+
}
|
|
26229
|
+
keys.push.apply(keys, symbols);
|
|
26230
|
+
}
|
|
26231
|
+
return keys;
|
|
26232
|
+
}
|
|
26233
|
+
function _object_spread_props$k(target, source) {
|
|
26234
|
+
source = source != null ? source : {};
|
|
26235
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
26236
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
26237
|
+
} else {
|
|
26238
|
+
ownKeys$k(Object(source)).forEach(function(key) {
|
|
26239
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
26240
|
+
});
|
|
26241
|
+
}
|
|
26242
|
+
return target;
|
|
26243
|
+
}
|
|
26244
|
+
function _object_without_properties$9(source, excluded) {
|
|
26245
|
+
if (source == null)
|
|
26246
|
+
return {};
|
|
26247
|
+
var target = _object_without_properties_loose$9(source, excluded);
|
|
26248
|
+
var key, i;
|
|
26249
|
+
if (Object.getOwnPropertySymbols) {
|
|
26250
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
26251
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
26252
|
+
key = sourceSymbolKeys[i];
|
|
26253
|
+
if (excluded.indexOf(key) >= 0)
|
|
26254
|
+
continue;
|
|
26255
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
26256
|
+
continue;
|
|
26257
|
+
target[key] = source[key];
|
|
26258
|
+
}
|
|
26259
|
+
}
|
|
26260
|
+
return target;
|
|
26261
|
+
}
|
|
26262
|
+
function _object_without_properties_loose$9(source, excluded) {
|
|
26263
|
+
if (source == null)
|
|
26264
|
+
return {};
|
|
26265
|
+
var target = {};
|
|
26266
|
+
var sourceKeys = Object.keys(source);
|
|
26267
|
+
var key, i;
|
|
26268
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
26269
|
+
key = sourceKeys[i];
|
|
26270
|
+
if (excluded.indexOf(key) >= 0)
|
|
26271
|
+
continue;
|
|
26272
|
+
target[key] = source[key];
|
|
26273
|
+
}
|
|
26274
|
+
return target;
|
|
26275
|
+
}
|
|
26276
|
+
var DocActions = function(_param) {
|
|
26277
|
+
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$9(_param, [
|
|
26278
|
+
"title",
|
|
26279
|
+
"view",
|
|
26280
|
+
"children",
|
|
26281
|
+
"tweakStyles"
|
|
26282
|
+
]);
|
|
26283
|
+
var classes = useStyles$i({
|
|
26284
|
+
theme: tweakStyles
|
|
26285
|
+
});
|
|
26286
|
+
var tweakCheckboxStyles = useTweakStyles({
|
|
26287
|
+
tweakStyles,
|
|
26288
|
+
className: "tweakCheckbox",
|
|
26289
|
+
currentComponentName: "DocActions"
|
|
26290
|
+
});
|
|
26291
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
26292
|
+
className: clsx(classes.docActions, classes[view]),
|
|
26293
|
+
children: [
|
|
26294
|
+
/* @__PURE__ */ jsx("div", {
|
|
26295
|
+
className: classes.counterWrapper,
|
|
26296
|
+
children: /* @__PURE__ */ jsx(Checkbox, _object_spread_props$k(_object_spread$m({
|
|
26297
|
+
tweakStyles: tweakCheckboxStyles
|
|
26298
|
+
}, checkBoxProps), {
|
|
26299
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
26300
|
+
className: classes.title,
|
|
26301
|
+
children: title
|
|
26302
|
+
})
|
|
26303
|
+
}))
|
|
26304
|
+
}),
|
|
26305
|
+
/* @__PURE__ */ jsx("div", {
|
|
26306
|
+
className: classes.actionsWrapper,
|
|
26307
|
+
children
|
|
26308
|
+
})
|
|
26309
|
+
]
|
|
26310
|
+
});
|
|
26311
|
+
};
|
|
26312
|
+
var DOC_ACTIONS_VIEWS = [
|
|
26313
|
+
"neutral",
|
|
26314
|
+
"inverse"
|
|
26315
|
+
];
|
|
26316
|
+
var DEFAULT_TIMEOUT$1 = 150;
|
|
26317
|
+
function _define_property$m(obj, key, value) {
|
|
26318
|
+
if (key in obj) {
|
|
26319
|
+
Object.defineProperty(obj, key, {
|
|
26320
|
+
value,
|
|
26321
|
+
enumerable: true,
|
|
26322
|
+
configurable: true,
|
|
26323
|
+
writable: true
|
|
26324
|
+
});
|
|
26325
|
+
} else {
|
|
26326
|
+
obj[key] = value;
|
|
26327
|
+
}
|
|
26328
|
+
return obj;
|
|
26329
|
+
}
|
|
26330
|
+
function _object_spread$l(target) {
|
|
26331
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
26332
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
26333
|
+
var ownKeys2 = Object.keys(source);
|
|
26334
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
26335
|
+
ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
26336
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
26337
|
+
}));
|
|
26338
|
+
}
|
|
26339
|
+
ownKeys2.forEach(function(key) {
|
|
26340
|
+
_define_property$m(target, key, source[key]);
|
|
26341
|
+
});
|
|
26342
|
+
}
|
|
26343
|
+
return target;
|
|
26344
|
+
}
|
|
26345
|
+
var useStyles$h = reactJss.createUseStyles(_object_spread$l({}, animations.slideUp));
|
|
26346
|
+
function _define_property$l(obj, key, value) {
|
|
26347
|
+
if (key in obj) {
|
|
26348
|
+
Object.defineProperty(obj, key, {
|
|
26349
|
+
value,
|
|
26350
|
+
enumerable: true,
|
|
26351
|
+
configurable: true,
|
|
26352
|
+
writable: true
|
|
26353
|
+
});
|
|
26354
|
+
} else {
|
|
26355
|
+
obj[key] = value;
|
|
26356
|
+
}
|
|
26357
|
+
return obj;
|
|
26358
|
+
}
|
|
26359
|
+
function _object_spread$k(target) {
|
|
26360
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
26361
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
26362
|
+
var ownKeys2 = Object.keys(source);
|
|
26363
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
26364
|
+
ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
26365
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
26366
|
+
}));
|
|
26367
|
+
}
|
|
26368
|
+
ownKeys2.forEach(function(key) {
|
|
26369
|
+
_define_property$l(target, key, source[key]);
|
|
26370
|
+
});
|
|
26371
|
+
}
|
|
26372
|
+
return target;
|
|
26373
|
+
}
|
|
26374
|
+
function ownKeys$j(object, enumerableOnly) {
|
|
26375
|
+
var keys = Object.keys(object);
|
|
26376
|
+
if (Object.getOwnPropertySymbols) {
|
|
26377
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
26378
|
+
if (enumerableOnly) {
|
|
26379
|
+
symbols = symbols.filter(function(sym) {
|
|
26380
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
26381
|
+
});
|
|
26382
|
+
}
|
|
26383
|
+
keys.push.apply(keys, symbols);
|
|
26384
|
+
}
|
|
26385
|
+
return keys;
|
|
26386
|
+
}
|
|
26387
|
+
function _object_spread_props$j(target, source) {
|
|
26388
|
+
source = source != null ? source : {};
|
|
26389
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
26390
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
26391
|
+
} else {
|
|
26392
|
+
ownKeys$j(Object(source)).forEach(function(key) {
|
|
26393
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
26394
|
+
});
|
|
26395
|
+
}
|
|
26396
|
+
return target;
|
|
26397
|
+
}
|
|
26398
|
+
function _object_without_properties$8(source, excluded) {
|
|
26399
|
+
if (source == null)
|
|
26400
|
+
return {};
|
|
26401
|
+
var target = _object_without_properties_loose$8(source, excluded);
|
|
26402
|
+
var key, i;
|
|
26403
|
+
if (Object.getOwnPropertySymbols) {
|
|
26404
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
26405
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
26406
|
+
key = sourceSymbolKeys[i];
|
|
26407
|
+
if (excluded.indexOf(key) >= 0)
|
|
26408
|
+
continue;
|
|
26409
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
26410
|
+
continue;
|
|
26411
|
+
target[key] = source[key];
|
|
26412
|
+
}
|
|
26413
|
+
}
|
|
26414
|
+
return target;
|
|
26415
|
+
}
|
|
26416
|
+
function _object_without_properties_loose$8(source, excluded) {
|
|
26417
|
+
if (source == null)
|
|
26418
|
+
return {};
|
|
26419
|
+
var target = {};
|
|
26420
|
+
var sourceKeys = Object.keys(source);
|
|
26421
|
+
var key, i;
|
|
26422
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
26423
|
+
key = sourceKeys[i];
|
|
26424
|
+
if (excluded.indexOf(key) >= 0)
|
|
26425
|
+
continue;
|
|
26426
|
+
target[key] = source[key];
|
|
26427
|
+
}
|
|
26428
|
+
return target;
|
|
26429
|
+
}
|
|
26430
|
+
var FloatDocActions = function(_param) {
|
|
26431
|
+
var isOpen = _param.isOpen, children = _param.children, docActionsProps = _object_without_properties$8(_param, [
|
|
26432
|
+
"isOpen",
|
|
26433
|
+
"children"
|
|
26434
|
+
]);
|
|
26435
|
+
var classes = useStyles$h();
|
|
26436
|
+
return /* @__PURE__ */ jsx(reactTransitionGroup.CSSTransition, {
|
|
26437
|
+
in: isOpen,
|
|
26438
|
+
timeout: DEFAULT_TIMEOUT$1,
|
|
26439
|
+
mountOnEnter: true,
|
|
26440
|
+
unmountOnExit: true,
|
|
26441
|
+
classNames: {
|
|
26442
|
+
enter: classes["slide-up-enter"],
|
|
26443
|
+
enterActive: classes["slide-up-enter-active"],
|
|
26444
|
+
exit: classes["slide-up-exit"],
|
|
26445
|
+
exitActive: classes["slide-up-exit-active"]
|
|
26446
|
+
},
|
|
26447
|
+
children: /* @__PURE__ */ jsx(DocActions, _object_spread_props$j(_object_spread$k({}, docActionsProps), {
|
|
26448
|
+
children
|
|
26449
|
+
}))
|
|
26450
|
+
});
|
|
26451
|
+
};
|
|
26130
26452
|
var inputStyles$2 = {
|
|
26131
26453
|
tweakControlWrapper: {
|
|
26132
26454
|
controlWrapper: {
|
|
@@ -30735,9 +31057,11 @@
|
|
|
30735
31057
|
exports2.ControlWrapper = ControlWrapper;
|
|
30736
31058
|
exports2.CssBaseline = CssBaseline;
|
|
30737
31059
|
exports2.DEFAULT_PHONE_MASK = DEFAULT_PHONE_MASK;
|
|
31060
|
+
exports2.DOC_ACTIONS_VIEWS = DOC_ACTIONS_VIEWS;
|
|
30738
31061
|
exports2.DateInput = DateInput;
|
|
30739
31062
|
exports2.DatePicker = DatePicker;
|
|
30740
31063
|
exports2.Description = Description;
|
|
31064
|
+
exports2.DocActions = DocActions;
|
|
30741
31065
|
exports2.EMPTY_DATE_INPUT_VALUE = EMPTY_DATE_INPUT_VALUE;
|
|
30742
31066
|
exports2.EMPTY_DATE_RANGE_INPUT_VALUE = EMPTY_DATE_RANGE_INPUT_VALUE;
|
|
30743
31067
|
exports2.FileInput = FileInput;
|
|
@@ -30754,6 +31078,7 @@
|
|
|
30754
31078
|
exports2.FiltersPaneSearch = FiltersPaneSearch;
|
|
30755
31079
|
exports2.Flag = Flag;
|
|
30756
31080
|
exports2.FlexibleTable = FlexibleTable;
|
|
31081
|
+
exports2.FloatDocActions = FloatDocActions;
|
|
30757
31082
|
exports2.Icon = Icon;
|
|
30758
31083
|
exports2.IconButton = IconButton;
|
|
30759
31084
|
exports2.IncrementInput = IncrementInput;
|