@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
|
@@ -1334,7 +1334,7 @@ function _create_class$2(Constructor, protoProps, staticProps) {
|
|
|
1334
1334
|
_defineProperties$2(Constructor, staticProps);
|
|
1335
1335
|
return Constructor;
|
|
1336
1336
|
}
|
|
1337
|
-
function _define_property$
|
|
1337
|
+
function _define_property$1f(obj, key, value) {
|
|
1338
1338
|
if (key in obj) {
|
|
1339
1339
|
Object.defineProperty(obj, key, {
|
|
1340
1340
|
value,
|
|
@@ -1385,7 +1385,7 @@ function _non_iterable_rest$r() {
|
|
|
1385
1385
|
function _non_iterable_spread$c() {
|
|
1386
1386
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1387
1387
|
}
|
|
1388
|
-
function _object_spread$
|
|
1388
|
+
function _object_spread$1c(target) {
|
|
1389
1389
|
for (var i = 1; i < arguments.length; i++) {
|
|
1390
1390
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1391
1391
|
var ownKeys2 = Object.keys(source);
|
|
@@ -1395,7 +1395,7 @@ function _object_spread$18(target) {
|
|
|
1395
1395
|
}));
|
|
1396
1396
|
}
|
|
1397
1397
|
ownKeys2.forEach(function(key) {
|
|
1398
|
-
_define_property$
|
|
1398
|
+
_define_property$1f(target, key, source[key]);
|
|
1399
1399
|
});
|
|
1400
1400
|
}
|
|
1401
1401
|
return target;
|
|
@@ -1527,7 +1527,7 @@ var TweakStylesManager = /* @__PURE__ */ function() {
|
|
|
1527
1527
|
first
|
|
1528
1528
|
].concat(_to_consumable_array$c(rest))) : first;
|
|
1529
1529
|
var rules = this.addRules(styles);
|
|
1530
|
-
var classes = _object_spread$
|
|
1530
|
+
var classes = _object_spread$1c({}, _class_private_field_get$1(this, _classes));
|
|
1531
1531
|
rules.forEach(function(rule, key) {
|
|
1532
1532
|
classes[key] = joinStrings([
|
|
1533
1533
|
classes[key],
|
|
@@ -1662,7 +1662,7 @@ function _create_class$1(Constructor, protoProps, staticProps) {
|
|
|
1662
1662
|
_defineProperties$1(Constructor, staticProps);
|
|
1663
1663
|
return Constructor;
|
|
1664
1664
|
}
|
|
1665
|
-
function _define_property$
|
|
1665
|
+
function _define_property$1e(obj, key, value) {
|
|
1666
1666
|
if (key in obj) {
|
|
1667
1667
|
Object.defineProperty(obj, key, {
|
|
1668
1668
|
value,
|
|
@@ -1675,7 +1675,7 @@ function _define_property$1a(obj, key, value) {
|
|
|
1675
1675
|
}
|
|
1676
1676
|
return obj;
|
|
1677
1677
|
}
|
|
1678
|
-
function _object_spread$
|
|
1678
|
+
function _object_spread$1b(target) {
|
|
1679
1679
|
for (var i = 1; i < arguments.length; i++) {
|
|
1680
1680
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1681
1681
|
var ownKeys2 = Object.keys(source);
|
|
@@ -1685,7 +1685,7 @@ function _object_spread$17(target) {
|
|
|
1685
1685
|
}));
|
|
1686
1686
|
}
|
|
1687
1687
|
ownKeys2.forEach(function(key) {
|
|
1688
|
-
_define_property$
|
|
1688
|
+
_define_property$1e(target, key, source[key]);
|
|
1689
1689
|
});
|
|
1690
1690
|
}
|
|
1691
1691
|
return target;
|
|
@@ -1781,7 +1781,7 @@ var ThemedStylesManager = /* @__PURE__ */ function() {
|
|
|
1781
1781
|
meta: _class_private_field_get(this, _name),
|
|
1782
1782
|
generateId: jssContext.generateId
|
|
1783
1783
|
});
|
|
1784
|
-
var classes = _object_spread$
|
|
1784
|
+
var classes = _object_spread$1b({}, sheet.classes);
|
|
1785
1785
|
var manager = new TweakStylesManager({
|
|
1786
1786
|
sheet,
|
|
1787
1787
|
classes
|
|
@@ -1798,7 +1798,7 @@ var ThemedStylesManager = /* @__PURE__ */ function() {
|
|
|
1798
1798
|
]);
|
|
1799
1799
|
return ThemedStylesManager2;
|
|
1800
1800
|
}();
|
|
1801
|
-
function _define_property$
|
|
1801
|
+
function _define_property$1d(obj, key, value) {
|
|
1802
1802
|
if (key in obj) {
|
|
1803
1803
|
Object.defineProperty(obj, key, {
|
|
1804
1804
|
value,
|
|
@@ -1811,7 +1811,7 @@ function _define_property$19(obj, key, value) {
|
|
|
1811
1811
|
}
|
|
1812
1812
|
return obj;
|
|
1813
1813
|
}
|
|
1814
|
-
function _object_spread$
|
|
1814
|
+
function _object_spread$1a(target) {
|
|
1815
1815
|
for (var i = 1; i < arguments.length; i++) {
|
|
1816
1816
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1817
1817
|
var ownKeys2 = Object.keys(source);
|
|
@@ -1821,12 +1821,12 @@ function _object_spread$16(target) {
|
|
|
1821
1821
|
}));
|
|
1822
1822
|
}
|
|
1823
1823
|
ownKeys2.forEach(function(key) {
|
|
1824
|
-
_define_property$
|
|
1824
|
+
_define_property$1d(target, key, source[key]);
|
|
1825
1825
|
});
|
|
1826
1826
|
}
|
|
1827
1827
|
return target;
|
|
1828
1828
|
}
|
|
1829
|
-
function ownKeys$
|
|
1829
|
+
function ownKeys$Y(object, enumerableOnly) {
|
|
1830
1830
|
var keys = Object.keys(object);
|
|
1831
1831
|
if (Object.getOwnPropertySymbols) {
|
|
1832
1832
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -1839,12 +1839,12 @@ function ownKeys$V(object, enumerableOnly) {
|
|
|
1839
1839
|
}
|
|
1840
1840
|
return keys;
|
|
1841
1841
|
}
|
|
1842
|
-
function _object_spread_props$
|
|
1842
|
+
function _object_spread_props$Y(target, source) {
|
|
1843
1843
|
source = source != null ? source : {};
|
|
1844
1844
|
if (Object.getOwnPropertyDescriptors) {
|
|
1845
1845
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1846
1846
|
} else {
|
|
1847
|
-
ownKeys$
|
|
1847
|
+
ownKeys$Y(Object(source)).forEach(function(key) {
|
|
1848
1848
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1849
1849
|
});
|
|
1850
1850
|
}
|
|
@@ -1855,7 +1855,7 @@ var JssProvider = function(param) {
|
|
|
1855
1855
|
var children = param.children, tweakStylesArch = param.tweakStylesArch, generateId = param.generateId;
|
|
1856
1856
|
var context = useContext(JssContext);
|
|
1857
1857
|
var value = useMemo(function() {
|
|
1858
|
-
return _object_spread_props$
|
|
1858
|
+
return _object_spread_props$Y(_object_spread$1a({}, context), {
|
|
1859
1859
|
tweakStylesArch: tweakStylesArch !== null && tweakStylesArch !== void 0 ? tweakStylesArch : context.tweakStylesArch,
|
|
1860
1860
|
generateId: generateId !== null && generateId !== void 0 ? generateId : context.generateId
|
|
1861
1861
|
});
|
|
@@ -1894,7 +1894,7 @@ function _array_with_holes$q(arr) {
|
|
|
1894
1894
|
if (Array.isArray(arr))
|
|
1895
1895
|
return arr;
|
|
1896
1896
|
}
|
|
1897
|
-
function _define_property$
|
|
1897
|
+
function _define_property$1c(obj, key, value) {
|
|
1898
1898
|
if (key in obj) {
|
|
1899
1899
|
Object.defineProperty(obj, key, {
|
|
1900
1900
|
value,
|
|
@@ -1938,7 +1938,7 @@ function _iterable_to_array_limit$p(arr, i) {
|
|
|
1938
1938
|
function _non_iterable_rest$q() {
|
|
1939
1939
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1940
1940
|
}
|
|
1941
|
-
function _object_spread$
|
|
1941
|
+
function _object_spread$19(target) {
|
|
1942
1942
|
for (var i = 1; i < arguments.length; i++) {
|
|
1943
1943
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1944
1944
|
var ownKeys2 = Object.keys(source);
|
|
@@ -1948,12 +1948,12 @@ function _object_spread$15(target) {
|
|
|
1948
1948
|
}));
|
|
1949
1949
|
}
|
|
1950
1950
|
ownKeys2.forEach(function(key) {
|
|
1951
|
-
_define_property$
|
|
1951
|
+
_define_property$1c(target, key, source[key]);
|
|
1952
1952
|
});
|
|
1953
1953
|
}
|
|
1954
1954
|
return target;
|
|
1955
1955
|
}
|
|
1956
|
-
function ownKeys$
|
|
1956
|
+
function ownKeys$X(object, enumerableOnly) {
|
|
1957
1957
|
var keys = Object.keys(object);
|
|
1958
1958
|
if (Object.getOwnPropertySymbols) {
|
|
1959
1959
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -1966,12 +1966,12 @@ function ownKeys$U(object, enumerableOnly) {
|
|
|
1966
1966
|
}
|
|
1967
1967
|
return keys;
|
|
1968
1968
|
}
|
|
1969
|
-
function _object_spread_props$
|
|
1969
|
+
function _object_spread_props$X(target, source) {
|
|
1970
1970
|
source = source != null ? source : {};
|
|
1971
1971
|
if (Object.getOwnPropertyDescriptors) {
|
|
1972
1972
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1973
1973
|
} else {
|
|
1974
|
-
ownKeys$
|
|
1974
|
+
ownKeys$X(Object(source)).forEach(function(key) {
|
|
1975
1975
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1976
1976
|
});
|
|
1977
1977
|
}
|
|
@@ -2031,7 +2031,7 @@ function createThemedStyles() {
|
|
|
2031
2031
|
tweakStylesStrategy,
|
|
2032
2032
|
tweakStyles
|
|
2033
2033
|
]);
|
|
2034
|
-
return useStyles2(isNotEmpty(data) ? _object_spread_props$
|
|
2034
|
+
return useStyles2(isNotEmpty(data) ? _object_spread_props$X(_object_spread$19({}, data), {
|
|
2035
2035
|
theme
|
|
2036
2036
|
}) : data);
|
|
2037
2037
|
}
|
|
@@ -6532,7 +6532,7 @@ function _array_without_holes$a(arr) {
|
|
|
6532
6532
|
if (Array.isArray(arr))
|
|
6533
6533
|
return _array_like_to_array$p(arr);
|
|
6534
6534
|
}
|
|
6535
|
-
function _define_property$
|
|
6535
|
+
function _define_property$1b(obj, key, value) {
|
|
6536
6536
|
if (key in obj) {
|
|
6537
6537
|
Object.defineProperty(obj, key, {
|
|
6538
6538
|
value,
|
|
@@ -6552,7 +6552,7 @@ function _iterable_to_array$a(iter) {
|
|
|
6552
6552
|
function _non_iterable_spread$a() {
|
|
6553
6553
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6554
6554
|
}
|
|
6555
|
-
function _object_spread$
|
|
6555
|
+
function _object_spread$18(target) {
|
|
6556
6556
|
for (var i = 1; i < arguments.length; i++) {
|
|
6557
6557
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6558
6558
|
var ownKeys2 = Object.keys(source);
|
|
@@ -6562,7 +6562,7 @@ function _object_spread$14(target) {
|
|
|
6562
6562
|
}));
|
|
6563
6563
|
}
|
|
6564
6564
|
ownKeys2.forEach(function(key) {
|
|
6565
|
-
_define_property$
|
|
6565
|
+
_define_property$1b(target, key, source[key]);
|
|
6566
6566
|
});
|
|
6567
6567
|
}
|
|
6568
6568
|
return target;
|
|
@@ -6618,7 +6618,7 @@ var useDropdown = function(param) {
|
|
|
6618
6618
|
},
|
|
6619
6619
|
{
|
|
6620
6620
|
name: "flip",
|
|
6621
|
-
options: _object_spread$
|
|
6621
|
+
options: _object_spread$18({
|
|
6622
6622
|
fallbackPlacements: canBeFlipped ? [
|
|
6623
6623
|
"bottom-start",
|
|
6624
6624
|
"top-start"
|
|
@@ -7005,13 +7005,13 @@ var iconsMap = {
|
|
|
7005
7005
|
"status-warning": statusWarning,
|
|
7006
7006
|
"trash-can": trashCan
|
|
7007
7007
|
};
|
|
7008
|
-
var useStyles$
|
|
7008
|
+
var useStyles$Y = createThemedStyles("Icon", {
|
|
7009
7009
|
root: {
|
|
7010
7010
|
display: "flex",
|
|
7011
7011
|
alignItems: "center"
|
|
7012
7012
|
}
|
|
7013
7013
|
});
|
|
7014
|
-
function _define_property$
|
|
7014
|
+
function _define_property$1a(obj, key, value) {
|
|
7015
7015
|
if (key in obj) {
|
|
7016
7016
|
Object.defineProperty(obj, key, {
|
|
7017
7017
|
value,
|
|
@@ -7024,7 +7024,7 @@ function _define_property$16(obj, key, value) {
|
|
|
7024
7024
|
}
|
|
7025
7025
|
return obj;
|
|
7026
7026
|
}
|
|
7027
|
-
function _object_spread$
|
|
7027
|
+
function _object_spread$17(target) {
|
|
7028
7028
|
for (var i = 1; i < arguments.length; i++) {
|
|
7029
7029
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7030
7030
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7034,12 +7034,12 @@ function _object_spread$13(target) {
|
|
|
7034
7034
|
}));
|
|
7035
7035
|
}
|
|
7036
7036
|
ownKeys2.forEach(function(key) {
|
|
7037
|
-
_define_property$
|
|
7037
|
+
_define_property$1a(target, key, source[key]);
|
|
7038
7038
|
});
|
|
7039
7039
|
}
|
|
7040
7040
|
return target;
|
|
7041
7041
|
}
|
|
7042
|
-
function ownKeys$
|
|
7042
|
+
function ownKeys$W(object, enumerableOnly) {
|
|
7043
7043
|
var keys = Object.keys(object);
|
|
7044
7044
|
if (Object.getOwnPropertySymbols) {
|
|
7045
7045
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7052,12 +7052,12 @@ function ownKeys$T(object, enumerableOnly) {
|
|
|
7052
7052
|
}
|
|
7053
7053
|
return keys;
|
|
7054
7054
|
}
|
|
7055
|
-
function _object_spread_props$
|
|
7055
|
+
function _object_spread_props$W(target, source) {
|
|
7056
7056
|
source = source != null ? source : {};
|
|
7057
7057
|
if (Object.getOwnPropertyDescriptors) {
|
|
7058
7058
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7059
7059
|
} else {
|
|
7060
|
-
ownKeys$
|
|
7060
|
+
ownKeys$W(Object(source)).forEach(function(key) {
|
|
7061
7061
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7062
7062
|
});
|
|
7063
7063
|
}
|
|
@@ -7066,7 +7066,7 @@ function _object_spread_props$T(target, source) {
|
|
|
7066
7066
|
var Icon = function(param) {
|
|
7067
7067
|
var type = param.type, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
7068
7068
|
var _theme_icons;
|
|
7069
|
-
var classes = useStyles$
|
|
7069
|
+
var classes = useStyles$Y({
|
|
7070
7070
|
theme: tweakStyles
|
|
7071
7071
|
});
|
|
7072
7072
|
var theme = useTheme();
|
|
@@ -7076,7 +7076,7 @@ var Icon = function(param) {
|
|
|
7076
7076
|
console.error("Иконки ".concat(type, " не существует"));
|
|
7077
7077
|
return null;
|
|
7078
7078
|
}
|
|
7079
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
7079
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$W(_object_spread$17({
|
|
7080
7080
|
className: classes.root
|
|
7081
7081
|
}, addDataAttributes$1(data, testId)), {
|
|
7082
7082
|
dangerouslySetInnerHTML: {
|
|
@@ -7098,7 +7098,7 @@ var minWidthRelativeToTrigger = size({
|
|
|
7098
7098
|
});
|
|
7099
7099
|
}
|
|
7100
7100
|
});
|
|
7101
|
-
var useStyles$
|
|
7101
|
+
var useStyles$X = createThemedStyles("WithPopup", {
|
|
7102
7102
|
trigger: {
|
|
7103
7103
|
width: "fit-content"
|
|
7104
7104
|
},
|
|
@@ -7145,7 +7145,7 @@ function _array_without_holes$8(arr) {
|
|
|
7145
7145
|
if (Array.isArray(arr))
|
|
7146
7146
|
return _array_like_to_array$m(arr);
|
|
7147
7147
|
}
|
|
7148
|
-
function _define_property$
|
|
7148
|
+
function _define_property$19(obj, key, value) {
|
|
7149
7149
|
if (key in obj) {
|
|
7150
7150
|
Object.defineProperty(obj, key, {
|
|
7151
7151
|
value,
|
|
@@ -7196,7 +7196,7 @@ function _non_iterable_rest$m() {
|
|
|
7196
7196
|
function _non_iterable_spread$8() {
|
|
7197
7197
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7198
7198
|
}
|
|
7199
|
-
function _object_spread$
|
|
7199
|
+
function _object_spread$16(target) {
|
|
7200
7200
|
for (var i = 1; i < arguments.length; i++) {
|
|
7201
7201
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7202
7202
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7206,12 +7206,12 @@ function _object_spread$12(target) {
|
|
|
7206
7206
|
}));
|
|
7207
7207
|
}
|
|
7208
7208
|
ownKeys2.forEach(function(key) {
|
|
7209
|
-
_define_property$
|
|
7209
|
+
_define_property$19(target, key, source[key]);
|
|
7210
7210
|
});
|
|
7211
7211
|
}
|
|
7212
7212
|
return target;
|
|
7213
7213
|
}
|
|
7214
|
-
function ownKeys$
|
|
7214
|
+
function ownKeys$V(object, enumerableOnly) {
|
|
7215
7215
|
var keys = Object.keys(object);
|
|
7216
7216
|
if (Object.getOwnPropertySymbols) {
|
|
7217
7217
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7224,12 +7224,12 @@ function ownKeys$S(object, enumerableOnly) {
|
|
|
7224
7224
|
}
|
|
7225
7225
|
return keys;
|
|
7226
7226
|
}
|
|
7227
|
-
function _object_spread_props$
|
|
7227
|
+
function _object_spread_props$V(target, source) {
|
|
7228
7228
|
source = source != null ? source : {};
|
|
7229
7229
|
if (Object.getOwnPropertyDescriptors) {
|
|
7230
7230
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7231
7231
|
} else {
|
|
7232
|
-
ownKeys$
|
|
7232
|
+
ownKeys$V(Object(source)).forEach(function(key) {
|
|
7233
7233
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7234
7234
|
});
|
|
7235
7235
|
}
|
|
@@ -7256,7 +7256,7 @@ function _unsupported_iterable_to_array$m(o, minLen) {
|
|
|
7256
7256
|
}
|
|
7257
7257
|
var WithPopup = function(param) {
|
|
7258
7258
|
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;
|
|
7259
|
-
var classes = useStyles$
|
|
7259
|
+
var classes = useStyles$X({
|
|
7260
7260
|
theme: tweakStyles
|
|
7261
7261
|
});
|
|
7262
7262
|
var _useState = _sliced_to_array$m(useState(false), 2), isOpen = _useState[0], setIsOpen = _useState[1];
|
|
@@ -7287,7 +7287,7 @@ var WithPopup = function(param) {
|
|
|
7287
7287
|
placement,
|
|
7288
7288
|
onOpenChange: handleToggle
|
|
7289
7289
|
}), refs = _useFloating.refs, floatingStyles = _useFloating.floatingStyles, context = _useFloating.context;
|
|
7290
|
-
var hover = useHover(context, _object_spread$
|
|
7290
|
+
var hover = useHover(context, _object_spread$16({
|
|
7291
7291
|
enabled: eventType === "hover",
|
|
7292
7292
|
delay: {
|
|
7293
7293
|
open: hoverDelay,
|
|
@@ -7295,13 +7295,13 @@ var WithPopup = function(param) {
|
|
|
7295
7295
|
},
|
|
7296
7296
|
handleClose: safePolygon()
|
|
7297
7297
|
}, hoverOptions));
|
|
7298
|
-
var focus = useFocus(context, _object_spread$
|
|
7298
|
+
var focus = useFocus(context, _object_spread$16({
|
|
7299
7299
|
enabled: eventType === "hover"
|
|
7300
7300
|
}, focusOptions));
|
|
7301
|
-
var click = useClick(context, _object_spread$
|
|
7301
|
+
var click = useClick(context, _object_spread$16({
|
|
7302
7302
|
enabled: eventType === "click"
|
|
7303
7303
|
}, clickOptions));
|
|
7304
|
-
var dismiss = useDismiss(context, _object_spread$
|
|
7304
|
+
var dismiss = useDismiss(context, _object_spread$16({
|
|
7305
7305
|
enabled: eventType === "click",
|
|
7306
7306
|
ancestorScroll: shouldHideOnScroll
|
|
7307
7307
|
}, dismissOptions));
|
|
@@ -7311,22 +7311,22 @@ var WithPopup = function(param) {
|
|
|
7311
7311
|
focus,
|
|
7312
7312
|
dismiss
|
|
7313
7313
|
]), getFloatingProps = _useInteractions.getFloatingProps, getReferenceProps = _useInteractions.getReferenceProps;
|
|
7314
|
-
var _useTransitionStatus = useTransitionStatus(context, _object_spread$
|
|
7314
|
+
var _useTransitionStatus = useTransitionStatus(context, _object_spread$16({
|
|
7315
7315
|
duration: {
|
|
7316
7316
|
close: 500
|
|
7317
7317
|
}
|
|
7318
7318
|
}, transitionOptions)), isMounted = _useTransitionStatus.isMounted, status = _useTransitionStatus.status;
|
|
7319
|
-
var referenceProps = getReferenceProps(_object_spread$
|
|
7319
|
+
var referenceProps = getReferenceProps(_object_spread$16({
|
|
7320
7320
|
ref: refs.setReference
|
|
7321
7321
|
}, shouldStopPropagation && {
|
|
7322
7322
|
onClick: stopPropagation
|
|
7323
7323
|
}));
|
|
7324
7324
|
var triggerElement = applyAction(trigger, {
|
|
7325
7325
|
referenceProps: !isTriggerWrapped ? referenceProps : void 0,
|
|
7326
|
-
triggerProps: _object_spread$
|
|
7326
|
+
triggerProps: _object_spread$16({
|
|
7327
7327
|
isActive,
|
|
7328
7328
|
isDisabled
|
|
7329
|
-
}, !isTriggerWrapped && _object_spread$
|
|
7329
|
+
}, !isTriggerWrapped && _object_spread$16({
|
|
7330
7330
|
data,
|
|
7331
7331
|
testId
|
|
7332
7332
|
}, referenceProps))
|
|
@@ -7334,14 +7334,14 @@ var WithPopup = function(param) {
|
|
|
7334
7334
|
var _obj2;
|
|
7335
7335
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
7336
7336
|
children: [
|
|
7337
|
-
isTriggerWrapped ? /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
7338
|
-
className: clsx(classes.trigger, (_obj2 = {}, _define_property$
|
|
7337
|
+
isTriggerWrapped ? /* @__PURE__ */ jsx("div", _object_spread_props$V(_object_spread$16({
|
|
7338
|
+
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))
|
|
7339
7339
|
}, referenceProps, addDataAttributes$1(data, testId)), {
|
|
7340
7340
|
children: triggerElement
|
|
7341
7341
|
})) : triggerElement,
|
|
7342
7342
|
isMounted && /* @__PURE__ */ jsx(FloatingPortal, {
|
|
7343
7343
|
root: shouldRenderInBody ? document.body : refs.reference.current,
|
|
7344
|
-
children: /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
7344
|
+
children: /* @__PURE__ */ jsx("div", _object_spread_props$V(_object_spread$16({
|
|
7345
7345
|
ref: refs.setFloating,
|
|
7346
7346
|
style: floatingStyles,
|
|
7347
7347
|
className: classes.popup
|
|
@@ -7349,7 +7349,7 @@ var WithPopup = function(param) {
|
|
|
7349
7349
|
children: /* @__PURE__ */ jsxs("div", {
|
|
7350
7350
|
className: classes["dropdown-".concat(status)],
|
|
7351
7351
|
children: [
|
|
7352
|
-
shouldShowArrow && /* @__PURE__ */ jsx(FloatingArrow, _object_spread_props$
|
|
7352
|
+
shouldShowArrow && /* @__PURE__ */ jsx(FloatingArrow, _object_spread_props$V(_object_spread$16({}, arrowProps), {
|
|
7353
7353
|
ref: arrowRef,
|
|
7354
7354
|
context,
|
|
7355
7355
|
className: classes.arrow
|
|
@@ -7366,9 +7366,9 @@ var WithPopup = function(param) {
|
|
|
7366
7366
|
});
|
|
7367
7367
|
};
|
|
7368
7368
|
var ITEM_HORIZONTAL_PADDING = 16;
|
|
7369
|
-
var ICON_SIZE
|
|
7369
|
+
var ICON_SIZE = 20;
|
|
7370
7370
|
var ICON_GAP = 12;
|
|
7371
|
-
var useStyles$
|
|
7371
|
+
var useStyles$W = createThemedStyles("ListItem", {
|
|
7372
7372
|
root: {
|
|
7373
7373
|
display: "flex",
|
|
7374
7374
|
alignItems: "center",
|
|
@@ -7396,18 +7396,18 @@ var useStyles$U = createThemedStyles("ListItem", {
|
|
|
7396
7396
|
backgroundColor: colors.BORDER_LIGHT
|
|
7397
7397
|
},
|
|
7398
7398
|
withIconGap: {
|
|
7399
|
-
paddingLeft: ITEM_HORIZONTAL_PADDING + ICON_SIZE
|
|
7399
|
+
paddingLeft: ITEM_HORIZONTAL_PADDING + ICON_SIZE + ICON_GAP
|
|
7400
7400
|
},
|
|
7401
7401
|
icon: {
|
|
7402
|
-
width: ICON_SIZE
|
|
7403
|
-
height: ICON_SIZE
|
|
7402
|
+
width: ICON_SIZE,
|
|
7403
|
+
height: ICON_SIZE,
|
|
7404
7404
|
flexShrink: 0
|
|
7405
7405
|
},
|
|
7406
7406
|
content: {
|
|
7407
7407
|
flexGrow: 1
|
|
7408
7408
|
}
|
|
7409
7409
|
});
|
|
7410
|
-
function _define_property$
|
|
7410
|
+
function _define_property$18(obj, key, value) {
|
|
7411
7411
|
if (key in obj) {
|
|
7412
7412
|
Object.defineProperty(obj, key, {
|
|
7413
7413
|
value,
|
|
@@ -7420,7 +7420,7 @@ function _define_property$14(obj, key, value) {
|
|
|
7420
7420
|
}
|
|
7421
7421
|
return obj;
|
|
7422
7422
|
}
|
|
7423
|
-
function _object_spread$
|
|
7423
|
+
function _object_spread$15(target) {
|
|
7424
7424
|
for (var i = 1; i < arguments.length; i++) {
|
|
7425
7425
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7426
7426
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7430,12 +7430,12 @@ function _object_spread$11(target) {
|
|
|
7430
7430
|
}));
|
|
7431
7431
|
}
|
|
7432
7432
|
ownKeys2.forEach(function(key) {
|
|
7433
|
-
_define_property$
|
|
7433
|
+
_define_property$18(target, key, source[key]);
|
|
7434
7434
|
});
|
|
7435
7435
|
}
|
|
7436
7436
|
return target;
|
|
7437
7437
|
}
|
|
7438
|
-
function ownKeys$
|
|
7438
|
+
function ownKeys$U(object, enumerableOnly) {
|
|
7439
7439
|
var keys = Object.keys(object);
|
|
7440
7440
|
if (Object.getOwnPropertySymbols) {
|
|
7441
7441
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7448,12 +7448,12 @@ function ownKeys$R(object, enumerableOnly) {
|
|
|
7448
7448
|
}
|
|
7449
7449
|
return keys;
|
|
7450
7450
|
}
|
|
7451
|
-
function _object_spread_props$
|
|
7451
|
+
function _object_spread_props$U(target, source) {
|
|
7452
7452
|
source = source != null ? source : {};
|
|
7453
7453
|
if (Object.getOwnPropertyDescriptors) {
|
|
7454
7454
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7455
7455
|
} else {
|
|
7456
|
-
ownKeys$
|
|
7456
|
+
ownKeys$U(Object(source)).forEach(function(key) {
|
|
7457
7457
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7458
7458
|
});
|
|
7459
7459
|
}
|
|
@@ -7461,7 +7461,7 @@ function _object_spread_props$R(target, source) {
|
|
|
7461
7461
|
}
|
|
7462
7462
|
var ListItem = function(param) {
|
|
7463
7463
|
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;
|
|
7464
|
-
var classes = useStyles$
|
|
7464
|
+
var classes = useStyles$W({
|
|
7465
7465
|
theme: tweakStyles
|
|
7466
7466
|
});
|
|
7467
7467
|
var _obj2;
|
|
@@ -7470,9 +7470,9 @@ var ListItem = function(param) {
|
|
|
7470
7470
|
shouldDrawSpacerAbove && /* @__PURE__ */ jsx("div", {
|
|
7471
7471
|
className: classes.spacer
|
|
7472
7472
|
}),
|
|
7473
|
-
/* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
7474
|
-
className: clsx(classes.root, classes[view], (_obj2 = {}, _define_property$
|
|
7475
|
-
}, addClickHandler(onClick, !isDisabled), addDataTestId(testId), addDataAttributes(_object_spread_props$
|
|
7473
|
+
/* @__PURE__ */ jsxs("div", _object_spread_props$U(_object_spread$15({
|
|
7474
|
+
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))
|
|
7475
|
+
}, addClickHandler(onClick, !isDisabled), addDataTestId(testId), addDataAttributes(_object_spread_props$U(_object_spread$15({}, data), {
|
|
7476
7476
|
disabled: isDisabled ? true : void 0
|
|
7477
7477
|
}))), {
|
|
7478
7478
|
children: [
|
|
@@ -7498,7 +7498,7 @@ var ListItem = function(param) {
|
|
|
7498
7498
|
]
|
|
7499
7499
|
});
|
|
7500
7500
|
};
|
|
7501
|
-
var useStyles$
|
|
7501
|
+
var useStyles$V = createThemedStyles("List", {
|
|
7502
7502
|
root: {
|
|
7503
7503
|
minWidth: 180,
|
|
7504
7504
|
backgroundColor: colors.CLASSIC_WHITE,
|
|
@@ -7519,7 +7519,7 @@ var withPopupStyles$1 = {
|
|
|
7519
7519
|
width: "100%"
|
|
7520
7520
|
}
|
|
7521
7521
|
};
|
|
7522
|
-
function _define_property$
|
|
7522
|
+
function _define_property$17(obj, key, value) {
|
|
7523
7523
|
if (key in obj) {
|
|
7524
7524
|
Object.defineProperty(obj, key, {
|
|
7525
7525
|
value,
|
|
@@ -7532,7 +7532,7 @@ function _define_property$13(obj, key, value) {
|
|
|
7532
7532
|
}
|
|
7533
7533
|
return obj;
|
|
7534
7534
|
}
|
|
7535
|
-
function _object_spread$
|
|
7535
|
+
function _object_spread$14(target) {
|
|
7536
7536
|
for (var i = 1; i < arguments.length; i++) {
|
|
7537
7537
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7538
7538
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7542,12 +7542,12 @@ function _object_spread$10(target) {
|
|
|
7542
7542
|
}));
|
|
7543
7543
|
}
|
|
7544
7544
|
ownKeys2.forEach(function(key) {
|
|
7545
|
-
_define_property$
|
|
7545
|
+
_define_property$17(target, key, source[key]);
|
|
7546
7546
|
});
|
|
7547
7547
|
}
|
|
7548
7548
|
return target;
|
|
7549
7549
|
}
|
|
7550
|
-
function ownKeys$
|
|
7550
|
+
function ownKeys$T(object, enumerableOnly) {
|
|
7551
7551
|
var keys = Object.keys(object);
|
|
7552
7552
|
if (Object.getOwnPropertySymbols) {
|
|
7553
7553
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7560,12 +7560,12 @@ function ownKeys$Q(object, enumerableOnly) {
|
|
|
7560
7560
|
}
|
|
7561
7561
|
return keys;
|
|
7562
7562
|
}
|
|
7563
|
-
function _object_spread_props$
|
|
7563
|
+
function _object_spread_props$T(target, source) {
|
|
7564
7564
|
source = source != null ? source : {};
|
|
7565
7565
|
if (Object.getOwnPropertyDescriptors) {
|
|
7566
7566
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7567
7567
|
} else {
|
|
7568
|
-
ownKeys$
|
|
7568
|
+
ownKeys$T(Object(source)).forEach(function(key) {
|
|
7569
7569
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7570
7570
|
});
|
|
7571
7571
|
}
|
|
@@ -7573,7 +7573,7 @@ function _object_spread_props$Q(target, source) {
|
|
|
7573
7573
|
}
|
|
7574
7574
|
var List = function(param) {
|
|
7575
7575
|
var items = param.items, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles, onClick = param.onClick;
|
|
7576
|
-
var classes = useStyles$
|
|
7576
|
+
var classes = useStyles$V({
|
|
7577
7577
|
theme: tweakStyles
|
|
7578
7578
|
});
|
|
7579
7579
|
var handleItemClick = function(event, param2) {
|
|
@@ -7587,11 +7587,11 @@ var List = function(param) {
|
|
|
7587
7587
|
var isHidden = param2.isHidden;
|
|
7588
7588
|
return !isHidden;
|
|
7589
7589
|
});
|
|
7590
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
7590
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$T(_object_spread$14({
|
|
7591
7591
|
className: classes.root
|
|
7592
7592
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
7593
7593
|
children: filteredItems.map(function(item, i) {
|
|
7594
|
-
var itemProps = _object_spread_props$
|
|
7594
|
+
var itemProps = _object_spread_props$T(_object_spread$14({
|
|
7595
7595
|
testId: getTestId(testId, "item-".concat(i))
|
|
7596
7596
|
}, item), {
|
|
7597
7597
|
shouldDrawSpacerAbove: item.shouldDrawSpacerAbove && i !== 0,
|
|
@@ -7609,7 +7609,7 @@ var List = function(param) {
|
|
|
7609
7609
|
shouldRenderInBody: false,
|
|
7610
7610
|
trigger: function(param2) {
|
|
7611
7611
|
var triggerProps = param2.triggerProps;
|
|
7612
|
-
return /* @__PURE__ */ jsx(ListItem, _object_spread_props$
|
|
7612
|
+
return /* @__PURE__ */ jsx(ListItem, _object_spread_props$T(_object_spread$14({}, itemProps), {
|
|
7613
7613
|
isFocused: triggerProps.isActive
|
|
7614
7614
|
}));
|
|
7615
7615
|
},
|
|
@@ -7620,13 +7620,13 @@ var List = function(param) {
|
|
|
7620
7620
|
onClick
|
|
7621
7621
|
})
|
|
7622
7622
|
})
|
|
7623
|
-
}) : /* @__PURE__ */ jsx(ListItem, _object_spread$
|
|
7623
|
+
}) : /* @__PURE__ */ jsx(ListItem, _object_spread$14({}, itemProps))
|
|
7624
7624
|
}, i);
|
|
7625
7625
|
})
|
|
7626
7626
|
}));
|
|
7627
7627
|
};
|
|
7628
7628
|
var ANIMATION_TIMEOUT = 150;
|
|
7629
|
-
function _define_property$
|
|
7629
|
+
function _define_property$16(obj, key, value) {
|
|
7630
7630
|
if (key in obj) {
|
|
7631
7631
|
Object.defineProperty(obj, key, {
|
|
7632
7632
|
value,
|
|
@@ -7639,7 +7639,7 @@ function _define_property$12(obj, key, value) {
|
|
|
7639
7639
|
}
|
|
7640
7640
|
return obj;
|
|
7641
7641
|
}
|
|
7642
|
-
function _object_spread
|
|
7642
|
+
function _object_spread$13(target) {
|
|
7643
7643
|
for (var i = 1; i < arguments.length; i++) {
|
|
7644
7644
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7645
7645
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7649,12 +7649,12 @@ function _object_spread$$(target) {
|
|
|
7649
7649
|
}));
|
|
7650
7650
|
}
|
|
7651
7651
|
ownKeys2.forEach(function(key) {
|
|
7652
|
-
_define_property$
|
|
7652
|
+
_define_property$16(target, key, source[key]);
|
|
7653
7653
|
});
|
|
7654
7654
|
}
|
|
7655
7655
|
return target;
|
|
7656
7656
|
}
|
|
7657
|
-
var useStyles$
|
|
7657
|
+
var useStyles$U = createThemedStyles("AccountInfo", _object_spread$13({
|
|
7658
7658
|
root: {
|
|
7659
7659
|
display: "flex"
|
|
7660
7660
|
},
|
|
@@ -7708,7 +7708,7 @@ function _array_with_holes$l(arr) {
|
|
|
7708
7708
|
if (Array.isArray(arr))
|
|
7709
7709
|
return arr;
|
|
7710
7710
|
}
|
|
7711
|
-
function _define_property$
|
|
7711
|
+
function _define_property$15(obj, key, value) {
|
|
7712
7712
|
if (key in obj) {
|
|
7713
7713
|
Object.defineProperty(obj, key, {
|
|
7714
7714
|
value,
|
|
@@ -7752,7 +7752,7 @@ function _iterable_to_array_limit$l(arr, i) {
|
|
|
7752
7752
|
function _non_iterable_rest$l() {
|
|
7753
7753
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7754
7754
|
}
|
|
7755
|
-
function _object_spread$
|
|
7755
|
+
function _object_spread$12(target) {
|
|
7756
7756
|
for (var i = 1; i < arguments.length; i++) {
|
|
7757
7757
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7758
7758
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7762,12 +7762,12 @@ function _object_spread$_(target) {
|
|
|
7762
7762
|
}));
|
|
7763
7763
|
}
|
|
7764
7764
|
ownKeys2.forEach(function(key) {
|
|
7765
|
-
_define_property$
|
|
7765
|
+
_define_property$15(target, key, source[key]);
|
|
7766
7766
|
});
|
|
7767
7767
|
}
|
|
7768
7768
|
return target;
|
|
7769
7769
|
}
|
|
7770
|
-
function ownKeys$
|
|
7770
|
+
function ownKeys$S(object, enumerableOnly) {
|
|
7771
7771
|
var keys = Object.keys(object);
|
|
7772
7772
|
if (Object.getOwnPropertySymbols) {
|
|
7773
7773
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7780,12 +7780,12 @@ function ownKeys$P(object, enumerableOnly) {
|
|
|
7780
7780
|
}
|
|
7781
7781
|
return keys;
|
|
7782
7782
|
}
|
|
7783
|
-
function _object_spread_props$
|
|
7783
|
+
function _object_spread_props$S(target, source) {
|
|
7784
7784
|
source = source != null ? source : {};
|
|
7785
7785
|
if (Object.getOwnPropertyDescriptors) {
|
|
7786
7786
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7787
7787
|
} else {
|
|
7788
|
-
ownKeys$
|
|
7788
|
+
ownKeys$S(Object(source)).forEach(function(key) {
|
|
7789
7789
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7790
7790
|
});
|
|
7791
7791
|
}
|
|
@@ -7809,7 +7809,7 @@ function _unsupported_iterable_to_array$l(o, minLen) {
|
|
|
7809
7809
|
}
|
|
7810
7810
|
var AccountInfo = function(param) {
|
|
7811
7811
|
var data = param.data, testId = param.testId, avatar2 = param.avatar, tweakStyles = param.tweakStyles, accountName = param.accountName, options = param.options;
|
|
7812
|
-
var classes = useStyles$
|
|
7812
|
+
var classes = useStyles$U({
|
|
7813
7813
|
theme: tweakStyles
|
|
7814
7814
|
});
|
|
7815
7815
|
var tweakListStyles = useTweakStyles({
|
|
@@ -7829,7 +7829,7 @@ var AccountInfo = function(param) {
|
|
|
7829
7829
|
useOnClickOutsideWithRef(dropdownRef, function() {
|
|
7830
7830
|
return setIsMenuOpen(false);
|
|
7831
7831
|
}, nameRef);
|
|
7832
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
7832
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$S(_object_spread$12({
|
|
7833
7833
|
className: classes.root
|
|
7834
7834
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
7835
7835
|
children: [
|
|
@@ -7879,7 +7879,7 @@ var AccountInfo = function(param) {
|
|
|
7879
7879
|
]
|
|
7880
7880
|
}));
|
|
7881
7881
|
};
|
|
7882
|
-
var useStyles$
|
|
7882
|
+
var useStyles$T = createThemedStyles("AddButton", {
|
|
7883
7883
|
root: {
|
|
7884
7884
|
display: "flex",
|
|
7885
7885
|
alignItems: "center",
|
|
@@ -7905,7 +7905,7 @@ var useStyles$R = createThemedStyles("AddButton", {
|
|
|
7905
7905
|
width: "100%"
|
|
7906
7906
|
}
|
|
7907
7907
|
});
|
|
7908
|
-
function _define_property$
|
|
7908
|
+
function _define_property$14(obj, key, value) {
|
|
7909
7909
|
if (key in obj) {
|
|
7910
7910
|
Object.defineProperty(obj, key, {
|
|
7911
7911
|
value,
|
|
@@ -7918,7 +7918,7 @@ function _define_property$10(obj, key, value) {
|
|
|
7918
7918
|
}
|
|
7919
7919
|
return obj;
|
|
7920
7920
|
}
|
|
7921
|
-
function _object_spread$
|
|
7921
|
+
function _object_spread$11(target) {
|
|
7922
7922
|
for (var i = 1; i < arguments.length; i++) {
|
|
7923
7923
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7924
7924
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7928,12 +7928,12 @@ function _object_spread$Z(target) {
|
|
|
7928
7928
|
}));
|
|
7929
7929
|
}
|
|
7930
7930
|
ownKeys2.forEach(function(key) {
|
|
7931
|
-
_define_property$
|
|
7931
|
+
_define_property$14(target, key, source[key]);
|
|
7932
7932
|
});
|
|
7933
7933
|
}
|
|
7934
7934
|
return target;
|
|
7935
7935
|
}
|
|
7936
|
-
function ownKeys$
|
|
7936
|
+
function ownKeys$R(object, enumerableOnly) {
|
|
7937
7937
|
var keys = Object.keys(object);
|
|
7938
7938
|
if (Object.getOwnPropertySymbols) {
|
|
7939
7939
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7946,12 +7946,12 @@ function ownKeys$O(object, enumerableOnly) {
|
|
|
7946
7946
|
}
|
|
7947
7947
|
return keys;
|
|
7948
7948
|
}
|
|
7949
|
-
function _object_spread_props$
|
|
7949
|
+
function _object_spread_props$R(target, source) {
|
|
7950
7950
|
source = source != null ? source : {};
|
|
7951
7951
|
if (Object.getOwnPropertyDescriptors) {
|
|
7952
7952
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7953
7953
|
} else {
|
|
7954
|
-
ownKeys$
|
|
7954
|
+
ownKeys$R(Object(source)).forEach(function(key) {
|
|
7955
7955
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7956
7956
|
});
|
|
7957
7957
|
}
|
|
@@ -7959,10 +7959,10 @@ function _object_spread_props$O(target, source) {
|
|
|
7959
7959
|
}
|
|
7960
7960
|
var AddButton = function(param) {
|
|
7961
7961
|
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;
|
|
7962
|
-
var classes = useStyles$
|
|
7962
|
+
var classes = useStyles$T({
|
|
7963
7963
|
theme: tweakStyles
|
|
7964
7964
|
});
|
|
7965
|
-
return /* @__PURE__ */ jsxs("button", _object_spread_props$
|
|
7965
|
+
return /* @__PURE__ */ jsxs("button", _object_spread_props$R(_object_spread$11({
|
|
7966
7966
|
type,
|
|
7967
7967
|
className: clsx(classes.root, isDisabled && classes.disabled, isFullWidth && classes.fullWidth),
|
|
7968
7968
|
onClick: !isDisabled ? onClick : void 0,
|
|
@@ -7981,7 +7981,7 @@ var AddButton = function(param) {
|
|
|
7981
7981
|
]
|
|
7982
7982
|
}));
|
|
7983
7983
|
};
|
|
7984
|
-
var useStyles$
|
|
7984
|
+
var useStyles$S = createThemedStyles("DotsPreloader", {
|
|
7985
7985
|
root: {
|
|
7986
7986
|
display: "flex",
|
|
7987
7987
|
gap: 4,
|
|
@@ -8027,7 +8027,7 @@ var useStyles$Q = createThemedStyles("DotsPreloader", {
|
|
|
8027
8027
|
});
|
|
8028
8028
|
var DotsPreloader = function(param) {
|
|
8029
8029
|
var tweakStyles = param.tweakStyles;
|
|
8030
|
-
var classes = useStyles$
|
|
8030
|
+
var classes = useStyles$S({
|
|
8031
8031
|
theme: tweakStyles
|
|
8032
8032
|
});
|
|
8033
8033
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -8093,7 +8093,7 @@ var DefaultPreloader = function() {
|
|
|
8093
8093
|
]
|
|
8094
8094
|
});
|
|
8095
8095
|
};
|
|
8096
|
-
var useStyles$
|
|
8096
|
+
var useStyles$R = createThemedStyles("SvgPreloader", {
|
|
8097
8097
|
root: {
|
|
8098
8098
|
display: "flex",
|
|
8099
8099
|
width: "100%",
|
|
@@ -8103,7 +8103,7 @@ var useStyles$P = createThemedStyles("SvgPreloader", {
|
|
|
8103
8103
|
var SvgPreloader = function(param) {
|
|
8104
8104
|
var _param_type = param.type, type = _param_type === void 0 ? "default" : _param_type, tweakStyles = param.tweakStyles;
|
|
8105
8105
|
var _theme_preloaders;
|
|
8106
|
-
var classes = useStyles$
|
|
8106
|
+
var classes = useStyles$R({
|
|
8107
8107
|
theme: tweakStyles
|
|
8108
8108
|
});
|
|
8109
8109
|
var theme = useTheme();
|
|
@@ -8117,7 +8117,7 @@ var SvgPreloader = function(param) {
|
|
|
8117
8117
|
}
|
|
8118
8118
|
}) : /* @__PURE__ */ jsx(PreloaderIcon, {});
|
|
8119
8119
|
};
|
|
8120
|
-
var useStyles$
|
|
8120
|
+
var useStyles$Q = createThemedStyles("ThemedPreloader", {
|
|
8121
8121
|
root: {
|
|
8122
8122
|
display: "flex"
|
|
8123
8123
|
},
|
|
@@ -8128,7 +8128,7 @@ var useStyles$O = createThemedStyles("ThemedPreloader", {
|
|
|
8128
8128
|
color: "currentColor"
|
|
8129
8129
|
}
|
|
8130
8130
|
});
|
|
8131
|
-
function _define_property
|
|
8131
|
+
function _define_property$13(obj, key, value) {
|
|
8132
8132
|
if (key in obj) {
|
|
8133
8133
|
Object.defineProperty(obj, key, {
|
|
8134
8134
|
value,
|
|
@@ -8141,7 +8141,7 @@ function _define_property$$(obj, key, value) {
|
|
|
8141
8141
|
}
|
|
8142
8142
|
return obj;
|
|
8143
8143
|
}
|
|
8144
|
-
function _object_spread$
|
|
8144
|
+
function _object_spread$10(target) {
|
|
8145
8145
|
for (var i = 1; i < arguments.length; i++) {
|
|
8146
8146
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8147
8147
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8151,12 +8151,12 @@ function _object_spread$Y(target) {
|
|
|
8151
8151
|
}));
|
|
8152
8152
|
}
|
|
8153
8153
|
ownKeys2.forEach(function(key) {
|
|
8154
|
-
_define_property
|
|
8154
|
+
_define_property$13(target, key, source[key]);
|
|
8155
8155
|
});
|
|
8156
8156
|
}
|
|
8157
8157
|
return target;
|
|
8158
8158
|
}
|
|
8159
|
-
function ownKeys$
|
|
8159
|
+
function ownKeys$Q(object, enumerableOnly) {
|
|
8160
8160
|
var keys = Object.keys(object);
|
|
8161
8161
|
if (Object.getOwnPropertySymbols) {
|
|
8162
8162
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8169,12 +8169,12 @@ function ownKeys$N(object, enumerableOnly) {
|
|
|
8169
8169
|
}
|
|
8170
8170
|
return keys;
|
|
8171
8171
|
}
|
|
8172
|
-
function _object_spread_props$
|
|
8172
|
+
function _object_spread_props$Q(target, source) {
|
|
8173
8173
|
source = source != null ? source : {};
|
|
8174
8174
|
if (Object.getOwnPropertyDescriptors) {
|
|
8175
8175
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8176
8176
|
} else {
|
|
8177
|
-
ownKeys$
|
|
8177
|
+
ownKeys$Q(Object(source)).forEach(function(key) {
|
|
8178
8178
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8179
8179
|
});
|
|
8180
8180
|
}
|
|
@@ -8182,7 +8182,7 @@ function _object_spread_props$N(target, source) {
|
|
|
8182
8182
|
}
|
|
8183
8183
|
var ThemedPreloader = function(param) {
|
|
8184
8184
|
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;
|
|
8185
|
-
var classes = useStyles$
|
|
8185
|
+
var classes = useStyles$Q({
|
|
8186
8186
|
theme: tweakStyles
|
|
8187
8187
|
});
|
|
8188
8188
|
var tweakDotsPreloaderStyles = useTweakStyles({
|
|
@@ -8195,8 +8195,8 @@ var ThemedPreloader = function(param) {
|
|
|
8195
8195
|
className: "tweakSvgPreloader",
|
|
8196
8196
|
currentComponentName: "ThemedPreloader"
|
|
8197
8197
|
});
|
|
8198
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8199
|
-
className: clsx(classes.root, classes[type], _define_property
|
|
8198
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$Q(_object_spread$10({
|
|
8199
|
+
className: clsx(classes.root, classes[type], _define_property$13({}, classes.currentColor, useCurrentColor))
|
|
8200
8200
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
8201
8201
|
children: type === "dots" ? /* @__PURE__ */ jsx(DotsPreloader, {
|
|
8202
8202
|
tweakStyles: tweakDotsPreloaderStyles
|
|
@@ -8206,7 +8206,7 @@ var ThemedPreloader = function(param) {
|
|
|
8206
8206
|
})
|
|
8207
8207
|
}));
|
|
8208
8208
|
};
|
|
8209
|
-
var useStyles$
|
|
8209
|
+
var useStyles$P = createThemedStyles("Button", {
|
|
8210
8210
|
root: {
|
|
8211
8211
|
display: "flex",
|
|
8212
8212
|
justifyContent: "center",
|
|
@@ -8377,7 +8377,7 @@ var dotsPreloaderStyles = {
|
|
|
8377
8377
|
var getPreloaderStyles = function(size2) {
|
|
8378
8378
|
return size2 === "s" || size2 === "m" ? dotsPreloaderStyles : void 0;
|
|
8379
8379
|
};
|
|
8380
|
-
function _define_property$
|
|
8380
|
+
function _define_property$12(obj, key, value) {
|
|
8381
8381
|
if (key in obj) {
|
|
8382
8382
|
Object.defineProperty(obj, key, {
|
|
8383
8383
|
value,
|
|
@@ -8390,7 +8390,7 @@ function _define_property$_(obj, key, value) {
|
|
|
8390
8390
|
}
|
|
8391
8391
|
return obj;
|
|
8392
8392
|
}
|
|
8393
|
-
function _object_spread
|
|
8393
|
+
function _object_spread$$(target) {
|
|
8394
8394
|
for (var i = 1; i < arguments.length; i++) {
|
|
8395
8395
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8396
8396
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8400,12 +8400,12 @@ function _object_spread$X(target) {
|
|
|
8400
8400
|
}));
|
|
8401
8401
|
}
|
|
8402
8402
|
ownKeys2.forEach(function(key) {
|
|
8403
|
-
_define_property$
|
|
8403
|
+
_define_property$12(target, key, source[key]);
|
|
8404
8404
|
});
|
|
8405
8405
|
}
|
|
8406
8406
|
return target;
|
|
8407
8407
|
}
|
|
8408
|
-
function ownKeys$
|
|
8408
|
+
function ownKeys$P(object, enumerableOnly) {
|
|
8409
8409
|
var keys = Object.keys(object);
|
|
8410
8410
|
if (Object.getOwnPropertySymbols) {
|
|
8411
8411
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8418,21 +8418,21 @@ function ownKeys$M(object, enumerableOnly) {
|
|
|
8418
8418
|
}
|
|
8419
8419
|
return keys;
|
|
8420
8420
|
}
|
|
8421
|
-
function _object_spread_props$
|
|
8421
|
+
function _object_spread_props$P(target, source) {
|
|
8422
8422
|
source = source != null ? source : {};
|
|
8423
8423
|
if (Object.getOwnPropertyDescriptors) {
|
|
8424
8424
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8425
8425
|
} else {
|
|
8426
|
-
ownKeys$
|
|
8426
|
+
ownKeys$P(Object(source)).forEach(function(key) {
|
|
8427
8427
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8428
8428
|
});
|
|
8429
8429
|
}
|
|
8430
8430
|
return target;
|
|
8431
8431
|
}
|
|
8432
|
-
function _object_without_properties$
|
|
8432
|
+
function _object_without_properties$l(source, excluded) {
|
|
8433
8433
|
if (source == null)
|
|
8434
8434
|
return {};
|
|
8435
|
-
var target = _object_without_properties_loose$
|
|
8435
|
+
var target = _object_without_properties_loose$l(source, excluded);
|
|
8436
8436
|
var key, i;
|
|
8437
8437
|
if (Object.getOwnPropertySymbols) {
|
|
8438
8438
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -8447,7 +8447,7 @@ function _object_without_properties$j(source, excluded) {
|
|
|
8447
8447
|
}
|
|
8448
8448
|
return target;
|
|
8449
8449
|
}
|
|
8450
|
-
function _object_without_properties_loose$
|
|
8450
|
+
function _object_without_properties_loose$l(source, excluded) {
|
|
8451
8451
|
if (source == null)
|
|
8452
8452
|
return {};
|
|
8453
8453
|
var target = {};
|
|
@@ -8462,7 +8462,7 @@ function _object_without_properties_loose$j(source, excluded) {
|
|
|
8462
8462
|
return target;
|
|
8463
8463
|
}
|
|
8464
8464
|
var Button = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
8465
|
-
var _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, children = _param.children, _param_size = _param.size, size2 = _param_size === void 0 ? "l" : _param_size, _param_view = _param.view, view = _param_view === void 0 ? "primary" : _param_view, _param_isFullWidth = _param.isFullWidth, isFullWidth = _param_isFullWidth === void 0 ? false : _param_isFullWidth, _param_isInline = _param.isInline, isInline = _param_isInline === void 0 ? false : _param_isInline, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_shouldSkipTabNavigation = _param.shouldSkipTabNavigation, shouldSkipTabNavigation = _param_shouldSkipTabNavigation === void 0 ? false : _param_shouldSkipTabNavigation, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, icon = _param.icon, _param_iconPosition = _param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "left" : _param_iconPosition, _param_preloaderType = _param.preloaderType, preloaderType = _param_preloaderType === void 0 ? "dots" : _param_preloaderType, interactions = _object_without_properties$
|
|
8465
|
+
var _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, children = _param.children, _param_size = _param.size, size2 = _param_size === void 0 ? "l" : _param_size, _param_view = _param.view, view = _param_view === void 0 ? "primary" : _param_view, _param_isFullWidth = _param.isFullWidth, isFullWidth = _param_isFullWidth === void 0 ? false : _param_isFullWidth, _param_isInline = _param.isInline, isInline = _param_isInline === void 0 ? false : _param_isInline, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_shouldSkipTabNavigation = _param.shouldSkipTabNavigation, shouldSkipTabNavigation = _param_shouldSkipTabNavigation === void 0 ? false : _param_shouldSkipTabNavigation, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, icon = _param.icon, _param_iconPosition = _param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "left" : _param_iconPosition, _param_preloaderType = _param.preloaderType, preloaderType = _param_preloaderType === void 0 ? "dots" : _param_preloaderType, interactions = _object_without_properties$l(_param, [
|
|
8466
8466
|
"type",
|
|
8467
8467
|
"children",
|
|
8468
8468
|
"size",
|
|
@@ -8480,7 +8480,7 @@ var Button = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
8480
8480
|
"iconPosition",
|
|
8481
8481
|
"preloaderType"
|
|
8482
8482
|
]);
|
|
8483
|
-
var classes = useStyles$
|
|
8483
|
+
var classes = useStyles$P({
|
|
8484
8484
|
theme: tweakStyles
|
|
8485
8485
|
});
|
|
8486
8486
|
var tweakPreloaderStyles = useTweakStyles({
|
|
@@ -8493,16 +8493,16 @@ var Button = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
8493
8493
|
var hasChildren = isReactNodeNotEmpty(children);
|
|
8494
8494
|
var hasNoAction = isDisabled || isLoading;
|
|
8495
8495
|
var _obj2, _obj1;
|
|
8496
|
-
return /* @__PURE__ */ jsxs("button", _object_spread_props$
|
|
8496
|
+
return /* @__PURE__ */ jsxs("button", _object_spread_props$P(_object_spread$$({
|
|
8497
8497
|
ref,
|
|
8498
8498
|
type,
|
|
8499
|
-
className: clsx(classes.root, classes[size2], classes[view], (_obj2 = {}, _define_property$
|
|
8499
|
+
className: clsx(classes.root, classes[size2], 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)),
|
|
8500
8500
|
tabIndex: shouldSkipTabNavigation ? -1 : void 0,
|
|
8501
8501
|
disabled: hasNoAction
|
|
8502
8502
|
}, interactions, addDataTestId(testId), addDataAttributes(data)), {
|
|
8503
8503
|
children: [
|
|
8504
8504
|
/* @__PURE__ */ jsxs("span", {
|
|
8505
|
-
className: clsx(classes.content, (_obj1 = {}, _define_property$
|
|
8505
|
+
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)),
|
|
8506
8506
|
children: [
|
|
8507
8507
|
hasIcon && /* @__PURE__ */ jsx("span", {
|
|
8508
8508
|
className: classes.icon,
|
|
@@ -8525,7 +8525,7 @@ var Button = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
8525
8525
|
]
|
|
8526
8526
|
}));
|
|
8527
8527
|
});
|
|
8528
|
-
var useStyles$
|
|
8528
|
+
var useStyles$O = createThemedStyles("Checkbox", {
|
|
8529
8529
|
root: {
|
|
8530
8530
|
cursor: "pointer",
|
|
8531
8531
|
display: "flex",
|
|
@@ -8563,7 +8563,7 @@ var useStyles$M = createThemedStyles("Checkbox", {
|
|
|
8563
8563
|
flexDirection: "row-reverse"
|
|
8564
8564
|
}
|
|
8565
8565
|
});
|
|
8566
|
-
function _define_property$
|
|
8566
|
+
function _define_property$11(obj, key, value) {
|
|
8567
8567
|
if (key in obj) {
|
|
8568
8568
|
Object.defineProperty(obj, key, {
|
|
8569
8569
|
value,
|
|
@@ -8576,7 +8576,7 @@ function _define_property$Z(obj, key, value) {
|
|
|
8576
8576
|
}
|
|
8577
8577
|
return obj;
|
|
8578
8578
|
}
|
|
8579
|
-
function _object_spread$
|
|
8579
|
+
function _object_spread$_(target) {
|
|
8580
8580
|
for (var i = 1; i < arguments.length; i++) {
|
|
8581
8581
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8582
8582
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8586,12 +8586,12 @@ function _object_spread$W(target) {
|
|
|
8586
8586
|
}));
|
|
8587
8587
|
}
|
|
8588
8588
|
ownKeys2.forEach(function(key) {
|
|
8589
|
-
_define_property$
|
|
8589
|
+
_define_property$11(target, key, source[key]);
|
|
8590
8590
|
});
|
|
8591
8591
|
}
|
|
8592
8592
|
return target;
|
|
8593
8593
|
}
|
|
8594
|
-
function ownKeys$
|
|
8594
|
+
function ownKeys$O(object, enumerableOnly) {
|
|
8595
8595
|
var keys = Object.keys(object);
|
|
8596
8596
|
if (Object.getOwnPropertySymbols) {
|
|
8597
8597
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8604,12 +8604,12 @@ function ownKeys$L(object, enumerableOnly) {
|
|
|
8604
8604
|
}
|
|
8605
8605
|
return keys;
|
|
8606
8606
|
}
|
|
8607
|
-
function _object_spread_props$
|
|
8607
|
+
function _object_spread_props$O(target, source) {
|
|
8608
8608
|
source = source != null ? source : {};
|
|
8609
8609
|
if (Object.getOwnPropertyDescriptors) {
|
|
8610
8610
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8611
8611
|
} else {
|
|
8612
|
-
ownKeys$
|
|
8612
|
+
ownKeys$O(Object(source)).forEach(function(key) {
|
|
8613
8613
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8614
8614
|
});
|
|
8615
8615
|
}
|
|
@@ -8617,7 +8617,7 @@ function _object_spread_props$L(target, source) {
|
|
|
8617
8617
|
}
|
|
8618
8618
|
function Checkbox(param) {
|
|
8619
8619
|
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;
|
|
8620
|
-
var classes = useStyles$
|
|
8620
|
+
var classes = useStyles$O({
|
|
8621
8621
|
theme: tweakStyles
|
|
8622
8622
|
});
|
|
8623
8623
|
var hasAction = !isDisabled && !isReadonly;
|
|
@@ -8629,11 +8629,11 @@ function Checkbox(param) {
|
|
|
8629
8629
|
}, event);
|
|
8630
8630
|
};
|
|
8631
8631
|
var _obj2;
|
|
8632
|
-
return /* @__PURE__ */ jsxs("label", _object_spread_props$
|
|
8633
|
-
className: clsx(classes.root, (_obj2 = {}, _define_property$
|
|
8632
|
+
return /* @__PURE__ */ jsxs("label", _object_spread_props$O(_object_spread$_({
|
|
8633
|
+
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))
|
|
8634
8634
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
8635
8635
|
children: [
|
|
8636
|
-
/* @__PURE__ */ jsx("input", _object_spread$
|
|
8636
|
+
/* @__PURE__ */ jsx("input", _object_spread$_({
|
|
8637
8637
|
className: classes.input,
|
|
8638
8638
|
type: "checkbox",
|
|
8639
8639
|
checked: isSelected,
|
|
@@ -8656,7 +8656,7 @@ function Checkbox(param) {
|
|
|
8656
8656
|
]
|
|
8657
8657
|
}));
|
|
8658
8658
|
}
|
|
8659
|
-
var useStyles$
|
|
8659
|
+
var useStyles$N = createThemedStyles("CloseButton", {
|
|
8660
8660
|
root: {
|
|
8661
8661
|
width: 40,
|
|
8662
8662
|
height: 40,
|
|
@@ -8682,7 +8682,7 @@ var useStyles$L = createThemedStyles("CloseButton", {
|
|
|
8682
8682
|
}
|
|
8683
8683
|
}
|
|
8684
8684
|
});
|
|
8685
|
-
function _define_property$
|
|
8685
|
+
function _define_property$10(obj, key, value) {
|
|
8686
8686
|
if (key in obj) {
|
|
8687
8687
|
Object.defineProperty(obj, key, {
|
|
8688
8688
|
value,
|
|
@@ -8695,7 +8695,7 @@ function _define_property$Y(obj, key, value) {
|
|
|
8695
8695
|
}
|
|
8696
8696
|
return obj;
|
|
8697
8697
|
}
|
|
8698
|
-
function _object_spread$
|
|
8698
|
+
function _object_spread$Z(target) {
|
|
8699
8699
|
for (var i = 1; i < arguments.length; i++) {
|
|
8700
8700
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8701
8701
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8705,12 +8705,12 @@ function _object_spread$V(target) {
|
|
|
8705
8705
|
}));
|
|
8706
8706
|
}
|
|
8707
8707
|
ownKeys2.forEach(function(key) {
|
|
8708
|
-
_define_property$
|
|
8708
|
+
_define_property$10(target, key, source[key]);
|
|
8709
8709
|
});
|
|
8710
8710
|
}
|
|
8711
8711
|
return target;
|
|
8712
8712
|
}
|
|
8713
|
-
function ownKeys$
|
|
8713
|
+
function ownKeys$N(object, enumerableOnly) {
|
|
8714
8714
|
var keys = Object.keys(object);
|
|
8715
8715
|
if (Object.getOwnPropertySymbols) {
|
|
8716
8716
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8723,12 +8723,12 @@ function ownKeys$K(object, enumerableOnly) {
|
|
|
8723
8723
|
}
|
|
8724
8724
|
return keys;
|
|
8725
8725
|
}
|
|
8726
|
-
function _object_spread_props$
|
|
8726
|
+
function _object_spread_props$N(target, source) {
|
|
8727
8727
|
source = source != null ? source : {};
|
|
8728
8728
|
if (Object.getOwnPropertyDescriptors) {
|
|
8729
8729
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8730
8730
|
} else {
|
|
8731
|
-
ownKeys$
|
|
8731
|
+
ownKeys$N(Object(source)).forEach(function(key) {
|
|
8732
8732
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8733
8733
|
});
|
|
8734
8734
|
}
|
|
@@ -8736,10 +8736,10 @@ function _object_spread_props$K(target, source) {
|
|
|
8736
8736
|
}
|
|
8737
8737
|
var CloseButton = function(param) {
|
|
8738
8738
|
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;
|
|
8739
|
-
var classes = useStyles$
|
|
8739
|
+
var classes = useStyles$N({
|
|
8740
8740
|
theme: tweakStyles
|
|
8741
8741
|
});
|
|
8742
|
-
return /* @__PURE__ */ jsx("button", _object_spread_props$
|
|
8742
|
+
return /* @__PURE__ */ jsx("button", _object_spread_props$N(_object_spread$Z({
|
|
8743
8743
|
type: "button",
|
|
8744
8744
|
className: classes.root,
|
|
8745
8745
|
onClick: onClose
|
|
@@ -8749,7 +8749,7 @@ var CloseButton = function(param) {
|
|
|
8749
8749
|
})
|
|
8750
8750
|
}));
|
|
8751
8751
|
};
|
|
8752
|
-
var useStyles$
|
|
8752
|
+
var useStyles$M = createThemedStyles({
|
|
8753
8753
|
root: {
|
|
8754
8754
|
display: "flex",
|
|
8755
8755
|
flexWrap: "wrap"
|
|
@@ -8842,7 +8842,7 @@ function _unsupported_iterable_to_array$k(o, minLen) {
|
|
|
8842
8842
|
return _array_like_to_array$k(o, minLen);
|
|
8843
8843
|
}
|
|
8844
8844
|
var Colors = function() {
|
|
8845
|
-
var classes = useStyles$
|
|
8845
|
+
var classes = useStyles$M();
|
|
8846
8846
|
var theme = useTheme();
|
|
8847
8847
|
var _theme_colors = theme.colors, colors2 = _theme_colors === void 0 ? {} : _theme_colors;
|
|
8848
8848
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -8872,7 +8872,7 @@ var Colors = function() {
|
|
|
8872
8872
|
})
|
|
8873
8873
|
});
|
|
8874
8874
|
};
|
|
8875
|
-
var useStyles$
|
|
8875
|
+
var useStyles$L = createThemedStyles("CssBaseline", {
|
|
8876
8876
|
"@global html, body": {
|
|
8877
8877
|
fontFamily: "Arial, sans-serif",
|
|
8878
8878
|
color: colors.FONT_MAIN,
|
|
@@ -8881,7 +8881,7 @@ var useStyles$J = createThemedStyles("CssBaseline", {
|
|
|
8881
8881
|
},
|
|
8882
8882
|
root: {}
|
|
8883
8883
|
});
|
|
8884
|
-
function _define_property
|
|
8884
|
+
function _define_property$$(obj, key, value) {
|
|
8885
8885
|
if (key in obj) {
|
|
8886
8886
|
Object.defineProperty(obj, key, {
|
|
8887
8887
|
value,
|
|
@@ -8894,7 +8894,7 @@ function _define_property$X(obj, key, value) {
|
|
|
8894
8894
|
}
|
|
8895
8895
|
return obj;
|
|
8896
8896
|
}
|
|
8897
|
-
function _object_spread$
|
|
8897
|
+
function _object_spread$Y(target) {
|
|
8898
8898
|
for (var i = 1; i < arguments.length; i++) {
|
|
8899
8899
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8900
8900
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8904,21 +8904,21 @@ function _object_spread$U(target) {
|
|
|
8904
8904
|
}));
|
|
8905
8905
|
}
|
|
8906
8906
|
ownKeys2.forEach(function(key) {
|
|
8907
|
-
_define_property
|
|
8907
|
+
_define_property$$(target, key, source[key]);
|
|
8908
8908
|
});
|
|
8909
8909
|
}
|
|
8910
8910
|
return target;
|
|
8911
8911
|
}
|
|
8912
8912
|
var CssBaseline = function(param) {
|
|
8913
8913
|
var data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
8914
|
-
var classes = useStyles$
|
|
8914
|
+
var classes = useStyles$L({
|
|
8915
8915
|
theme: tweakStyles
|
|
8916
8916
|
});
|
|
8917
|
-
return /* @__PURE__ */ jsx("div", _object_spread$
|
|
8917
|
+
return /* @__PURE__ */ jsx("div", _object_spread$Y({
|
|
8918
8918
|
className: classes.root
|
|
8919
8919
|
}, addDataTestId(testId), addDataAttributes(data)));
|
|
8920
8920
|
};
|
|
8921
|
-
var useStyles$
|
|
8921
|
+
var useStyles$K = createThemedStyles("WithMessages", {
|
|
8922
8922
|
withMessages: {
|
|
8923
8923
|
display: "flex",
|
|
8924
8924
|
flexDirection: "column",
|
|
@@ -8952,7 +8952,7 @@ var useStyles$I = createThemedStyles("WithMessages", {
|
|
|
8952
8952
|
},
|
|
8953
8953
|
children: {}
|
|
8954
8954
|
});
|
|
8955
|
-
function _define_property$
|
|
8955
|
+
function _define_property$_(obj, key, value) {
|
|
8956
8956
|
if (key in obj) {
|
|
8957
8957
|
Object.defineProperty(obj, key, {
|
|
8958
8958
|
value,
|
|
@@ -8965,7 +8965,7 @@ function _define_property$W(obj, key, value) {
|
|
|
8965
8965
|
}
|
|
8966
8966
|
return obj;
|
|
8967
8967
|
}
|
|
8968
|
-
function _object_spread$
|
|
8968
|
+
function _object_spread$X(target) {
|
|
8969
8969
|
for (var i = 1; i < arguments.length; i++) {
|
|
8970
8970
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8971
8971
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8975,12 +8975,12 @@ function _object_spread$T(target) {
|
|
|
8975
8975
|
}));
|
|
8976
8976
|
}
|
|
8977
8977
|
ownKeys2.forEach(function(key) {
|
|
8978
|
-
_define_property$
|
|
8978
|
+
_define_property$_(target, key, source[key]);
|
|
8979
8979
|
});
|
|
8980
8980
|
}
|
|
8981
8981
|
return target;
|
|
8982
8982
|
}
|
|
8983
|
-
function ownKeys$
|
|
8983
|
+
function ownKeys$M(object, enumerableOnly) {
|
|
8984
8984
|
var keys = Object.keys(object);
|
|
8985
8985
|
if (Object.getOwnPropertySymbols) {
|
|
8986
8986
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8993,12 +8993,12 @@ function ownKeys$J(object, enumerableOnly) {
|
|
|
8993
8993
|
}
|
|
8994
8994
|
return keys;
|
|
8995
8995
|
}
|
|
8996
|
-
function _object_spread_props$
|
|
8996
|
+
function _object_spread_props$M(target, source) {
|
|
8997
8997
|
source = source != null ? source : {};
|
|
8998
8998
|
if (Object.getOwnPropertyDescriptors) {
|
|
8999
8999
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9000
9000
|
} else {
|
|
9001
|
-
ownKeys$
|
|
9001
|
+
ownKeys$M(Object(source)).forEach(function(key) {
|
|
9002
9002
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9003
9003
|
});
|
|
9004
9004
|
}
|
|
@@ -9006,31 +9006,31 @@ function _object_spread_props$J(target, source) {
|
|
|
9006
9006
|
}
|
|
9007
9007
|
var WithMessages = /* @__PURE__ */ forwardRef(function(param, ref) {
|
|
9008
9008
|
var children = param.children, infoMessage = param.infoMessage, errorMessage = param.errorMessage, controlsDirection = param.controlsDirection, tweakStyles = param.tweakStyles, testId = param.testId, data = param.data;
|
|
9009
|
-
var classes = useStyles$
|
|
9009
|
+
var classes = useStyles$K({
|
|
9010
9010
|
theme: tweakStyles
|
|
9011
9011
|
});
|
|
9012
9012
|
var shouldShowError = isReactNodeNotEmpty(errorMessage);
|
|
9013
9013
|
var shouldShowInfo = isReactNodeNotEmpty(infoMessage) && !shouldShowError;
|
|
9014
9014
|
var _obj2;
|
|
9015
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
9015
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$M(_object_spread$X({
|
|
9016
9016
|
ref,
|
|
9017
9017
|
className: classes.withMessages,
|
|
9018
9018
|
"data-invalid": shouldShowError ? true : void 0
|
|
9019
9019
|
}, addDataAttributes$1(data, testId)), {
|
|
9020
9020
|
children: [
|
|
9021
9021
|
isReactNodeNotEmpty(children) && /* @__PURE__ */ jsx("div", {
|
|
9022
|
-
className: clsx(classes.children, (_obj2 = {}, _define_property$
|
|
9022
|
+
className: clsx(classes.children, (_obj2 = {}, _define_property$_(_obj2, classes.horizontal, controlsDirection === "horizontal"), _define_property$_(_obj2, classes.vertical, controlsDirection === "vertical"), _obj2)),
|
|
9023
9023
|
children
|
|
9024
9024
|
}),
|
|
9025
9025
|
(shouldShowError || shouldShowInfo) && /* @__PURE__ */ jsxs("div", {
|
|
9026
9026
|
className: classes.message,
|
|
9027
9027
|
children: [
|
|
9028
|
-
shouldShowError && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
9028
|
+
shouldShowError && /* @__PURE__ */ jsx("div", _object_spread_props$M(_object_spread$X({
|
|
9029
9029
|
className: classes.error
|
|
9030
9030
|
}, addDataTestId(testId, "error")), {
|
|
9031
9031
|
children: errorMessage
|
|
9032
9032
|
})),
|
|
9033
|
-
shouldShowInfo && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
9033
|
+
shouldShowInfo && /* @__PURE__ */ jsx("div", _object_spread_props$M(_object_spread$X({
|
|
9034
9034
|
className: classes.info
|
|
9035
9035
|
}, addDataTestId(testId, "info")), {
|
|
9036
9036
|
children: infoMessage
|
|
@@ -9049,7 +9049,7 @@ var convertToControlWrapperIcon = function(iconItem) {
|
|
|
9049
9049
|
};
|
|
9050
9050
|
};
|
|
9051
9051
|
var CONTROL = dimensions.CONTROL, Z_INDEX$1 = dimensions.Z_INDEX;
|
|
9052
|
-
var useStyles$
|
|
9052
|
+
var useStyles$J = createThemedStyles("ControlWrapper", {
|
|
9053
9053
|
controlWrapper: {
|
|
9054
9054
|
"--control-height": "".concat(CONTROL.HEIGHT - 2, "px"),
|
|
9055
9055
|
// borders
|
|
@@ -9200,7 +9200,7 @@ var useStyles$H = createThemedStyles("ControlWrapper", {
|
|
|
9200
9200
|
borderRadius: 0
|
|
9201
9201
|
}
|
|
9202
9202
|
});
|
|
9203
|
-
function _define_property$
|
|
9203
|
+
function _define_property$Z(obj, key, value) {
|
|
9204
9204
|
if (key in obj) {
|
|
9205
9205
|
Object.defineProperty(obj, key, {
|
|
9206
9206
|
value,
|
|
@@ -9213,7 +9213,7 @@ function _define_property$V(obj, key, value) {
|
|
|
9213
9213
|
}
|
|
9214
9214
|
return obj;
|
|
9215
9215
|
}
|
|
9216
|
-
function _object_spread$
|
|
9216
|
+
function _object_spread$W(target) {
|
|
9217
9217
|
for (var i = 1; i < arguments.length; i++) {
|
|
9218
9218
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9219
9219
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9223,12 +9223,12 @@ function _object_spread$S(target) {
|
|
|
9223
9223
|
}));
|
|
9224
9224
|
}
|
|
9225
9225
|
ownKeys2.forEach(function(key) {
|
|
9226
|
-
_define_property$
|
|
9226
|
+
_define_property$Z(target, key, source[key]);
|
|
9227
9227
|
});
|
|
9228
9228
|
}
|
|
9229
9229
|
return target;
|
|
9230
9230
|
}
|
|
9231
|
-
function ownKeys$
|
|
9231
|
+
function ownKeys$L(object, enumerableOnly) {
|
|
9232
9232
|
var keys = Object.keys(object);
|
|
9233
9233
|
if (Object.getOwnPropertySymbols) {
|
|
9234
9234
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9241,12 +9241,12 @@ function ownKeys$I(object, enumerableOnly) {
|
|
|
9241
9241
|
}
|
|
9242
9242
|
return keys;
|
|
9243
9243
|
}
|
|
9244
|
-
function _object_spread_props$
|
|
9244
|
+
function _object_spread_props$L(target, source) {
|
|
9245
9245
|
source = source != null ? source : {};
|
|
9246
9246
|
if (Object.getOwnPropertyDescriptors) {
|
|
9247
9247
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9248
9248
|
} else {
|
|
9249
|
-
ownKeys$
|
|
9249
|
+
ownKeys$L(Object(source)).forEach(function(key) {
|
|
9250
9250
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9251
9251
|
});
|
|
9252
9252
|
}
|
|
@@ -9254,7 +9254,7 @@ function _object_spread_props$I(target, source) {
|
|
|
9254
9254
|
}
|
|
9255
9255
|
var ControlWrapper = function(param) {
|
|
9256
9256
|
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, size2 = param.size, testId = param.testId, children = param.children, tweakStyles = param.tweakStyles, data = param.data, onClear = param.onClear;
|
|
9257
|
-
var classes = useStyles$
|
|
9257
|
+
var classes = useStyles$J({
|
|
9258
9258
|
theme: tweakStyles
|
|
9259
9259
|
});
|
|
9260
9260
|
var icons = getArray(icon).map(convertToControlWrapperIcon);
|
|
@@ -9268,12 +9268,12 @@ var ControlWrapper = function(param) {
|
|
|
9268
9268
|
currentComponentName: "ControlWrapper"
|
|
9269
9269
|
});
|
|
9270
9270
|
var _obj2, _obj1;
|
|
9271
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
9272
|
-
className: clsx(classes.controlWrapper, isNotEmpty(groupPlacement) && classes["placement-".concat(groupPlacement)], isNotEmpty(size2) && classes[size2], (_obj2 = {}, _define_property$
|
|
9271
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$L(_object_spread$W({
|
|
9272
|
+
className: clsx(classes.controlWrapper, isNotEmpty(groupPlacement) && classes["placement-".concat(groupPlacement)], isNotEmpty(size2) && classes[size2], (_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))
|
|
9273
9273
|
}, addDataAttributes$1(data, testId)), {
|
|
9274
9274
|
children: [
|
|
9275
9275
|
isReactNodeNotEmpty(label) && /* @__PURE__ */ jsx("div", {
|
|
9276
|
-
className: clsx(classes.label, (_obj1 = {}, _define_property$
|
|
9276
|
+
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)),
|
|
9277
9277
|
children: label
|
|
9278
9278
|
}),
|
|
9279
9279
|
/* @__PURE__ */ jsxs("div", {
|
|
@@ -9283,7 +9283,7 @@ var ControlWrapper = function(param) {
|
|
|
9283
9283
|
hasControls && /* @__PURE__ */ jsxs("div", {
|
|
9284
9284
|
className: classes.controls,
|
|
9285
9285
|
children: [
|
|
9286
|
-
hasClearButton && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
9286
|
+
hasClearButton && /* @__PURE__ */ jsx("div", _object_spread_props$L(_object_spread$W({
|
|
9287
9287
|
className: clsx(classes.icon, classes.clearIcon, classes.activeIcon)
|
|
9288
9288
|
}, addClickHandler(onClear), addDataTestId(testId, "clear")), {
|
|
9289
9289
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -9296,8 +9296,8 @@ var ControlWrapper = function(param) {
|
|
|
9296
9296
|
hasIcons && icons.map(function(param2, index) {
|
|
9297
9297
|
var key = param2.key, iconComponent = param2.iconComponent, onClick = param2.onClick, _param_shouldResetSize = param2.shouldResetSize, shouldResetSize = _param_shouldResetSize === void 0 ? false : _param_shouldResetSize;
|
|
9298
9298
|
var _obj3;
|
|
9299
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
9300
|
-
className: clsx(classes.icon, classes.endIcon, (_obj3 = {}, _define_property$
|
|
9299
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$L(_object_spread$W({
|
|
9300
|
+
className: clsx(classes.icon, classes.endIcon, (_obj3 = {}, _define_property$Z(_obj3, classes.activeIcon, !isDisabled && isNotEmpty(onClick)), _define_property$Z(_obj3, classes.customIcon, shouldResetSize), _obj3))
|
|
9301
9301
|
}, addClickHandler(onClick, !isDisabled), addDataTestId(testId, "icon")), {
|
|
9302
9302
|
children: /* @__PURE__ */ jsx("div", {
|
|
9303
9303
|
className: classes.iconInner,
|
|
@@ -9305,7 +9305,7 @@ var ControlWrapper = function(param) {
|
|
|
9305
9305
|
})
|
|
9306
9306
|
}), key !== null && key !== void 0 ? key : index);
|
|
9307
9307
|
}),
|
|
9308
|
-
isLoading && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
9308
|
+
isLoading && /* @__PURE__ */ jsx("div", _object_spread_props$L(_object_spread$W({
|
|
9309
9309
|
className: clsx(classes.icon, classes.loader)
|
|
9310
9310
|
}, addDataTestId(testId, "loading")), {
|
|
9311
9311
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -9323,7 +9323,7 @@ var ControlWrapper = function(param) {
|
|
|
9323
9323
|
}));
|
|
9324
9324
|
};
|
|
9325
9325
|
var PADDING_WITH_UNITS = 8;
|
|
9326
|
-
var useStyles$
|
|
9326
|
+
var useStyles$I = createThemedStyles("Input", {
|
|
9327
9327
|
inputContent: {
|
|
9328
9328
|
height: "var(--control-height)",
|
|
9329
9329
|
padding: [
|
|
@@ -9436,7 +9436,7 @@ function _async_to_generator$5(fn3) {
|
|
|
9436
9436
|
});
|
|
9437
9437
|
};
|
|
9438
9438
|
}
|
|
9439
|
-
function _define_property$
|
|
9439
|
+
function _define_property$Y(obj, key, value) {
|
|
9440
9440
|
if (key in obj) {
|
|
9441
9441
|
Object.defineProperty(obj, key, {
|
|
9442
9442
|
value,
|
|
@@ -9480,7 +9480,7 @@ function _iterable_to_array_limit$j(arr, i) {
|
|
|
9480
9480
|
function _non_iterable_rest$j() {
|
|
9481
9481
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9482
9482
|
}
|
|
9483
|
-
function _object_spread$
|
|
9483
|
+
function _object_spread$V(target) {
|
|
9484
9484
|
for (var i = 1; i < arguments.length; i++) {
|
|
9485
9485
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9486
9486
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9490,15 +9490,15 @@ function _object_spread$R(target) {
|
|
|
9490
9490
|
}));
|
|
9491
9491
|
}
|
|
9492
9492
|
ownKeys2.forEach(function(key) {
|
|
9493
|
-
_define_property$
|
|
9493
|
+
_define_property$Y(target, key, source[key]);
|
|
9494
9494
|
});
|
|
9495
9495
|
}
|
|
9496
9496
|
return target;
|
|
9497
9497
|
}
|
|
9498
|
-
function _object_without_properties$
|
|
9498
|
+
function _object_without_properties$k(source, excluded) {
|
|
9499
9499
|
if (source == null)
|
|
9500
9500
|
return {};
|
|
9501
|
-
var target = _object_without_properties_loose$
|
|
9501
|
+
var target = _object_without_properties_loose$k(source, excluded);
|
|
9502
9502
|
var key, i;
|
|
9503
9503
|
if (Object.getOwnPropertySymbols) {
|
|
9504
9504
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -9513,7 +9513,7 @@ function _object_without_properties$i(source, excluded) {
|
|
|
9513
9513
|
}
|
|
9514
9514
|
return target;
|
|
9515
9515
|
}
|
|
9516
|
-
function _object_without_properties_loose$
|
|
9516
|
+
function _object_without_properties_loose$k(source, excluded) {
|
|
9517
9517
|
if (source == null)
|
|
9518
9518
|
return {};
|
|
9519
9519
|
var target = {};
|
|
@@ -9646,7 +9646,7 @@ function _ts_generator$5(thisArg, body) {
|
|
|
9646
9646
|
}
|
|
9647
9647
|
}
|
|
9648
9648
|
var InputBase = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
9649
|
-
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, size2 = _param.size, children = _param.children, inputProps = _object_without_properties$
|
|
9649
|
+
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, size2 = _param.size, children = _param.children, inputProps = _object_without_properties$k(_param, [
|
|
9650
9650
|
"value",
|
|
9651
9651
|
"placeholder",
|
|
9652
9652
|
"label",
|
|
@@ -9684,7 +9684,7 @@ var InputBase = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
9684
9684
|
"size",
|
|
9685
9685
|
"children"
|
|
9686
9686
|
]);
|
|
9687
|
-
var classes = useStyles$
|
|
9687
|
+
var classes = useStyles$I({
|
|
9688
9688
|
theme: tweakStyles
|
|
9689
9689
|
});
|
|
9690
9690
|
var tweakControlWrapperStyles = useTweakStyles({
|
|
@@ -9709,7 +9709,7 @@ var InputBase = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
9709
9709
|
var hasUnits = isReactNodeNotEmpty(units);
|
|
9710
9710
|
var hasPlaceholder = (!isReactNodeNotEmpty(label) || hasFocus || shouldAlwaysShowPlaceholder) && isStringNotEmpty(placeholder);
|
|
9711
9711
|
var handleChange = function(event) {
|
|
9712
|
-
onChange(event.currentTarget.value, event);
|
|
9712
|
+
onChange(event.currentTarget.value, event, "change");
|
|
9713
9713
|
};
|
|
9714
9714
|
var handleFocus = function(event) {
|
|
9715
9715
|
setFocused(true);
|
|
@@ -9727,7 +9727,7 @@ var InputBase = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
9727
9727
|
case 0:
|
|
9728
9728
|
return [
|
|
9729
9729
|
4,
|
|
9730
|
-
onChange("", event)
|
|
9730
|
+
onChange("", event, "clear")
|
|
9731
9731
|
];
|
|
9732
9732
|
case 1:
|
|
9733
9733
|
_state.sent();
|
|
@@ -9748,8 +9748,8 @@ var InputBase = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
9748
9748
|
units
|
|
9749
9749
|
]);
|
|
9750
9750
|
var _obj2;
|
|
9751
|
-
var props = _object_spread$
|
|
9752
|
-
className: clsx(classes.input, (_obj2 = {}, _define_property$
|
|
9751
|
+
var props = _object_spread$V({
|
|
9752
|
+
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, 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)),
|
|
9753
9753
|
style: hasUnits && hasValue ? {
|
|
9754
9754
|
"--units-width": "".concat(unitsWidth, "px")
|
|
9755
9755
|
} : void 0,
|
|
@@ -9777,13 +9777,13 @@ var InputBase = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
9777
9777
|
}, []);
|
|
9778
9778
|
var inputContent = /* @__PURE__ */ jsxs(Fragment, {
|
|
9779
9779
|
children: [
|
|
9780
|
-
isNotEmpty(mask) ? /* @__PURE__ */ jsx(InputMask, _object_spread$
|
|
9780
|
+
isNotEmpty(mask) ? /* @__PURE__ */ jsx(InputMask, _object_spread$V({
|
|
9781
9781
|
ref: mergedRef,
|
|
9782
9782
|
mask,
|
|
9783
9783
|
maskPlaceholder,
|
|
9784
9784
|
alwaysShowMask,
|
|
9785
9785
|
beforeMaskedStateChange
|
|
9786
|
-
}, props)) : /* @__PURE__ */ jsx("input", _object_spread$
|
|
9786
|
+
}, props)) : /* @__PURE__ */ jsx("input", _object_spread$V({
|
|
9787
9787
|
ref: mergedRef
|
|
9788
9788
|
}, props)),
|
|
9789
9789
|
(hasUnits || isAutoSized) && /* @__PURE__ */ jsx("div", {
|
|
@@ -9821,7 +9821,7 @@ var InputBase = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
9821
9821
|
]
|
|
9822
9822
|
});
|
|
9823
9823
|
});
|
|
9824
|
-
function _define_property$
|
|
9824
|
+
function _define_property$X(obj, key, value) {
|
|
9825
9825
|
if (key in obj) {
|
|
9826
9826
|
Object.defineProperty(obj, key, {
|
|
9827
9827
|
value,
|
|
@@ -9834,7 +9834,7 @@ function _define_property$T(obj, key, value) {
|
|
|
9834
9834
|
}
|
|
9835
9835
|
return obj;
|
|
9836
9836
|
}
|
|
9837
|
-
function _object_spread$
|
|
9837
|
+
function _object_spread$U(target) {
|
|
9838
9838
|
for (var i = 1; i < arguments.length; i++) {
|
|
9839
9839
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9840
9840
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9844,12 +9844,12 @@ function _object_spread$Q(target) {
|
|
|
9844
9844
|
}));
|
|
9845
9845
|
}
|
|
9846
9846
|
ownKeys2.forEach(function(key) {
|
|
9847
|
-
_define_property$
|
|
9847
|
+
_define_property$X(target, key, source[key]);
|
|
9848
9848
|
});
|
|
9849
9849
|
}
|
|
9850
9850
|
return target;
|
|
9851
9851
|
}
|
|
9852
|
-
function ownKeys$
|
|
9852
|
+
function ownKeys$K(object, enumerableOnly) {
|
|
9853
9853
|
var keys = Object.keys(object);
|
|
9854
9854
|
if (Object.getOwnPropertySymbols) {
|
|
9855
9855
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9862,21 +9862,21 @@ function ownKeys$H(object, enumerableOnly) {
|
|
|
9862
9862
|
}
|
|
9863
9863
|
return keys;
|
|
9864
9864
|
}
|
|
9865
|
-
function _object_spread_props$
|
|
9865
|
+
function _object_spread_props$K(target, source) {
|
|
9866
9866
|
source = source != null ? source : {};
|
|
9867
9867
|
if (Object.getOwnPropertyDescriptors) {
|
|
9868
9868
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9869
9869
|
} else {
|
|
9870
|
-
ownKeys$
|
|
9870
|
+
ownKeys$K(Object(source)).forEach(function(key) {
|
|
9871
9871
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9872
9872
|
});
|
|
9873
9873
|
}
|
|
9874
9874
|
return target;
|
|
9875
9875
|
}
|
|
9876
|
-
function _object_without_properties$
|
|
9876
|
+
function _object_without_properties$j(source, excluded) {
|
|
9877
9877
|
if (source == null)
|
|
9878
9878
|
return {};
|
|
9879
|
-
var target = _object_without_properties_loose$
|
|
9879
|
+
var target = _object_without_properties_loose$j(source, excluded);
|
|
9880
9880
|
var key, i;
|
|
9881
9881
|
if (Object.getOwnPropertySymbols) {
|
|
9882
9882
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -9891,7 +9891,7 @@ function _object_without_properties$h(source, excluded) {
|
|
|
9891
9891
|
}
|
|
9892
9892
|
return target;
|
|
9893
9893
|
}
|
|
9894
|
-
function _object_without_properties_loose$
|
|
9894
|
+
function _object_without_properties_loose$j(source, excluded) {
|
|
9895
9895
|
if (source == null)
|
|
9896
9896
|
return {};
|
|
9897
9897
|
var target = {};
|
|
@@ -9906,7 +9906,7 @@ function _object_without_properties_loose$h(source, excluded) {
|
|
|
9906
9906
|
return target;
|
|
9907
9907
|
}
|
|
9908
9908
|
var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
9909
|
-
var infoMessage = _param.infoMessage, errorMessage = _param.errorMessage, isInvalid = _param.isInvalid, testId = _param.testId, tweakStyles = _param.tweakStyles, inputProps = _object_without_properties$
|
|
9909
|
+
var infoMessage = _param.infoMessage, errorMessage = _param.errorMessage, isInvalid = _param.isInvalid, testId = _param.testId, tweakStyles = _param.tweakStyles, inputProps = _object_without_properties$j(_param, [
|
|
9910
9910
|
"infoMessage",
|
|
9911
9911
|
"errorMessage",
|
|
9912
9912
|
"isInvalid",
|
|
@@ -9922,7 +9922,7 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
9922
9922
|
infoMessage,
|
|
9923
9923
|
testId: getTestId(testId, "wrapper"),
|
|
9924
9924
|
tweakStyles: tweakWithMessagesStyles,
|
|
9925
|
-
children: /* @__PURE__ */ jsx(InputBase, _object_spread_props$
|
|
9925
|
+
children: /* @__PURE__ */ jsx(InputBase, _object_spread_props$K(_object_spread$U({}, inputProps), {
|
|
9926
9926
|
ref,
|
|
9927
9927
|
testId,
|
|
9928
9928
|
tweakStyles,
|
|
@@ -9932,7 +9932,7 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
9932
9932
|
});
|
|
9933
9933
|
var EMPTY_DATE_INPUT_VALUE = "__.__.____";
|
|
9934
9934
|
var EMPTY_DATE_RANGE_INPUT_VALUE = "".concat(EMPTY_DATE_INPUT_VALUE, " - ").concat(EMPTY_DATE_INPUT_VALUE);
|
|
9935
|
-
var useStyles$
|
|
9935
|
+
var useStyles$H = createThemedStyles("DateInput", {
|
|
9936
9936
|
root: {
|
|
9937
9937
|
width: "100%",
|
|
9938
9938
|
height: "100%",
|
|
@@ -9940,7 +9940,7 @@ var useStyles$F = createThemedStyles("DateInput", {
|
|
|
9940
9940
|
position: "relative"
|
|
9941
9941
|
}
|
|
9942
9942
|
});
|
|
9943
|
-
function _define_property$
|
|
9943
|
+
function _define_property$W(obj, key, value) {
|
|
9944
9944
|
if (key in obj) {
|
|
9945
9945
|
Object.defineProperty(obj, key, {
|
|
9946
9946
|
value,
|
|
@@ -9953,7 +9953,7 @@ function _define_property$S(obj, key, value) {
|
|
|
9953
9953
|
}
|
|
9954
9954
|
return obj;
|
|
9955
9955
|
}
|
|
9956
|
-
function _object_spread$
|
|
9956
|
+
function _object_spread$T(target) {
|
|
9957
9957
|
for (var i = 1; i < arguments.length; i++) {
|
|
9958
9958
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9959
9959
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9963,12 +9963,12 @@ function _object_spread$P(target) {
|
|
|
9963
9963
|
}));
|
|
9964
9964
|
}
|
|
9965
9965
|
ownKeys2.forEach(function(key) {
|
|
9966
|
-
_define_property$
|
|
9966
|
+
_define_property$W(target, key, source[key]);
|
|
9967
9967
|
});
|
|
9968
9968
|
}
|
|
9969
9969
|
return target;
|
|
9970
9970
|
}
|
|
9971
|
-
function ownKeys$
|
|
9971
|
+
function ownKeys$J(object, enumerableOnly) {
|
|
9972
9972
|
var keys = Object.keys(object);
|
|
9973
9973
|
if (Object.getOwnPropertySymbols) {
|
|
9974
9974
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9981,21 +9981,21 @@ function ownKeys$G(object, enumerableOnly) {
|
|
|
9981
9981
|
}
|
|
9982
9982
|
return keys;
|
|
9983
9983
|
}
|
|
9984
|
-
function _object_spread_props$
|
|
9984
|
+
function _object_spread_props$J(target, source) {
|
|
9985
9985
|
source = source != null ? source : {};
|
|
9986
9986
|
if (Object.getOwnPropertyDescriptors) {
|
|
9987
9987
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9988
9988
|
} else {
|
|
9989
|
-
ownKeys$
|
|
9989
|
+
ownKeys$J(Object(source)).forEach(function(key) {
|
|
9990
9990
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9991
9991
|
});
|
|
9992
9992
|
}
|
|
9993
9993
|
return target;
|
|
9994
9994
|
}
|
|
9995
|
-
function _object_without_properties$
|
|
9995
|
+
function _object_without_properties$i(source, excluded) {
|
|
9996
9996
|
if (source == null)
|
|
9997
9997
|
return {};
|
|
9998
|
-
var target = _object_without_properties_loose$
|
|
9998
|
+
var target = _object_without_properties_loose$i(source, excluded);
|
|
9999
9999
|
var key, i;
|
|
10000
10000
|
if (Object.getOwnPropertySymbols) {
|
|
10001
10001
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10010,7 +10010,7 @@ function _object_without_properties$g(source, excluded) {
|
|
|
10010
10010
|
}
|
|
10011
10011
|
return target;
|
|
10012
10012
|
}
|
|
10013
|
-
function _object_without_properties_loose$
|
|
10013
|
+
function _object_without_properties_loose$i(source, excluded) {
|
|
10014
10014
|
if (source == null)
|
|
10015
10015
|
return {};
|
|
10016
10016
|
var target = {};
|
|
@@ -10025,7 +10025,7 @@ function _object_without_properties_loose$g(source, excluded) {
|
|
|
10025
10025
|
return target;
|
|
10026
10026
|
}
|
|
10027
10027
|
var DateInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
10028
|
-
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$
|
|
10028
|
+
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, [
|
|
10029
10029
|
"date",
|
|
10030
10030
|
"startDate",
|
|
10031
10031
|
"endDate",
|
|
@@ -10038,7 +10038,7 @@ var DateInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10038
10038
|
"onClick",
|
|
10039
10039
|
"onChange"
|
|
10040
10040
|
]);
|
|
10041
|
-
var classes = useStyles$
|
|
10041
|
+
var classes = useStyles$H({
|
|
10042
10042
|
theme: tweakStyles
|
|
10043
10043
|
});
|
|
10044
10044
|
var tweakInputStyles = useTweakStyles({
|
|
@@ -10065,11 +10065,11 @@ var DateInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10065
10065
|
}
|
|
10066
10066
|
onChange === null || onChange === void 0 ? void 0 : onChange(event, value);
|
|
10067
10067
|
};
|
|
10068
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
10068
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$J(_object_spread$T({
|
|
10069
10069
|
className: clsx(classes.root, className)
|
|
10070
10070
|
}, addDataAttributes$1(data)), {
|
|
10071
10071
|
onClick,
|
|
10072
|
-
children: /* @__PURE__ */ jsx(Input, _object_spread_props$
|
|
10072
|
+
children: /* @__PURE__ */ jsx(Input, _object_spread_props$J(_object_spread$T({}, inputProps), {
|
|
10073
10073
|
ref,
|
|
10074
10074
|
value: isRange ? "".concat(startDate).concat(endDate) : date,
|
|
10075
10075
|
mask: mask !== null && mask !== void 0 ? mask : isRange ? "99.99.9999 - 99.99.9999" : "99.99.9999",
|
|
@@ -10092,7 +10092,7 @@ function _class_call_check$1(instance, Constructor) {
|
|
|
10092
10092
|
throw new TypeError("Cannot call a class as a function");
|
|
10093
10093
|
}
|
|
10094
10094
|
}
|
|
10095
|
-
function _define_property$
|
|
10095
|
+
function _define_property$V(obj, key, value) {
|
|
10096
10096
|
if (key in obj) {
|
|
10097
10097
|
Object.defineProperty(obj, key, {
|
|
10098
10098
|
value,
|
|
@@ -10177,7 +10177,7 @@ var DatePickerBase = /* @__PURE__ */ function(ReactDatePicker2) {
|
|
|
10177
10177
|
_class_call_check$1(this, DatePickerBase2);
|
|
10178
10178
|
var _this;
|
|
10179
10179
|
_this = _super.call(this, props);
|
|
10180
|
-
_define_property$
|
|
10180
|
+
_define_property$V(_assert_this_initialized$1(_this), "handleClickOutside", void 0);
|
|
10181
10181
|
_this.handleClickOutside = _this.handleCalendarClickOutside;
|
|
10182
10182
|
_this.handleCalendarClickOutside = doNothing;
|
|
10183
10183
|
return _this;
|
|
@@ -10206,7 +10206,7 @@ var inputStyles$4 = {
|
|
|
10206
10206
|
paddingLeft: 44
|
|
10207
10207
|
}
|
|
10208
10208
|
};
|
|
10209
|
-
function _define_property$
|
|
10209
|
+
function _define_property$U(obj, key, value) {
|
|
10210
10210
|
if (key in obj) {
|
|
10211
10211
|
Object.defineProperty(obj, key, {
|
|
10212
10212
|
value,
|
|
@@ -10219,7 +10219,7 @@ function _define_property$Q(obj, key, value) {
|
|
|
10219
10219
|
}
|
|
10220
10220
|
return obj;
|
|
10221
10221
|
}
|
|
10222
|
-
function _object_spread$
|
|
10222
|
+
function _object_spread$S(target) {
|
|
10223
10223
|
for (var i = 1; i < arguments.length; i++) {
|
|
10224
10224
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10225
10225
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10229,15 +10229,15 @@ function _object_spread$O(target) {
|
|
|
10229
10229
|
}));
|
|
10230
10230
|
}
|
|
10231
10231
|
ownKeys2.forEach(function(key) {
|
|
10232
|
-
_define_property$
|
|
10232
|
+
_define_property$U(target, key, source[key]);
|
|
10233
10233
|
});
|
|
10234
10234
|
}
|
|
10235
10235
|
return target;
|
|
10236
10236
|
}
|
|
10237
|
-
function _object_without_properties$
|
|
10237
|
+
function _object_without_properties$h(source, excluded) {
|
|
10238
10238
|
if (source == null)
|
|
10239
10239
|
return {};
|
|
10240
|
-
var target = _object_without_properties_loose$
|
|
10240
|
+
var target = _object_without_properties_loose$h(source, excluded);
|
|
10241
10241
|
var key, i;
|
|
10242
10242
|
if (Object.getOwnPropertySymbols) {
|
|
10243
10243
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10252,7 +10252,7 @@ function _object_without_properties$f(source, excluded) {
|
|
|
10252
10252
|
}
|
|
10253
10253
|
return target;
|
|
10254
10254
|
}
|
|
10255
|
-
function _object_without_properties_loose$
|
|
10255
|
+
function _object_without_properties_loose$h(source, excluded) {
|
|
10256
10256
|
if (source == null)
|
|
10257
10257
|
return {};
|
|
10258
10258
|
var target = {};
|
|
@@ -10267,7 +10267,7 @@ function _object_without_properties_loose$f(source, excluded) {
|
|
|
10267
10267
|
return target;
|
|
10268
10268
|
}
|
|
10269
10269
|
var SearchInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
10270
|
-
var _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? true : _param_isClearable, tweakStyles = _param.tweakStyles, props = _object_without_properties$
|
|
10270
|
+
var _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? true : _param_isClearable, tweakStyles = _param.tweakStyles, props = _object_without_properties$h(_param, [
|
|
10271
10271
|
"isClearable",
|
|
10272
10272
|
"tweakStyles"
|
|
10273
10273
|
]);
|
|
@@ -10277,7 +10277,7 @@ var SearchInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10277
10277
|
className: "tweakInput",
|
|
10278
10278
|
currentComponentName: "SearchInput"
|
|
10279
10279
|
});
|
|
10280
|
-
return /* @__PURE__ */ jsx(Input, _object_spread$
|
|
10280
|
+
return /* @__PURE__ */ jsx(Input, _object_spread$S({
|
|
10281
10281
|
ref,
|
|
10282
10282
|
icon: "search",
|
|
10283
10283
|
isClearable,
|
|
@@ -10321,7 +10321,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
10321
10321
|
_defineProperties(Constructor, staticProps);
|
|
10322
10322
|
return Constructor;
|
|
10323
10323
|
}
|
|
10324
|
-
function _define_property$
|
|
10324
|
+
function _define_property$T(obj, key, value) {
|
|
10325
10325
|
if (key in obj) {
|
|
10326
10326
|
Object.defineProperty(obj, key, {
|
|
10327
10327
|
value,
|
|
@@ -10354,7 +10354,7 @@ function _inherits(subClass, superClass) {
|
|
|
10354
10354
|
if (superClass)
|
|
10355
10355
|
_set_prototype_of(subClass, superClass);
|
|
10356
10356
|
}
|
|
10357
|
-
function _object_spread$
|
|
10357
|
+
function _object_spread$R(target) {
|
|
10358
10358
|
for (var i = 1; i < arguments.length; i++) {
|
|
10359
10359
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10360
10360
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10364,15 +10364,15 @@ function _object_spread$N(target) {
|
|
|
10364
10364
|
}));
|
|
10365
10365
|
}
|
|
10366
10366
|
ownKeys2.forEach(function(key) {
|
|
10367
|
-
_define_property$
|
|
10367
|
+
_define_property$T(target, key, source[key]);
|
|
10368
10368
|
});
|
|
10369
10369
|
}
|
|
10370
10370
|
return target;
|
|
10371
10371
|
}
|
|
10372
|
-
function _object_without_properties$
|
|
10372
|
+
function _object_without_properties$g(source, excluded) {
|
|
10373
10373
|
if (source == null)
|
|
10374
10374
|
return {};
|
|
10375
|
-
var target = _object_without_properties_loose$
|
|
10375
|
+
var target = _object_without_properties_loose$g(source, excluded);
|
|
10376
10376
|
var key, i;
|
|
10377
10377
|
if (Object.getOwnPropertySymbols) {
|
|
10378
10378
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10387,7 +10387,7 @@ function _object_without_properties$e(source, excluded) {
|
|
|
10387
10387
|
}
|
|
10388
10388
|
return target;
|
|
10389
10389
|
}
|
|
10390
|
-
function _object_without_properties_loose$
|
|
10390
|
+
function _object_without_properties_loose$g(source, excluded) {
|
|
10391
10391
|
if (source == null)
|
|
10392
10392
|
return {};
|
|
10393
10393
|
var target = {};
|
|
@@ -10453,8 +10453,8 @@ var ScrollIntoViewIfNeeded = /* @__PURE__ */ function(PureComponent2) {
|
|
|
10453
10453
|
_class_call_check(this, ScrollIntoViewIfNeeded2);
|
|
10454
10454
|
var _this;
|
|
10455
10455
|
_this = _super.apply(this, arguments);
|
|
10456
|
-
_define_property$
|
|
10457
|
-
_define_property$
|
|
10456
|
+
_define_property$T(_assert_this_initialized(_this), "node", createRef());
|
|
10457
|
+
_define_property$T(_assert_this_initialized(_this), "handleScrollIntoViewIfNeeded", function() {
|
|
10458
10458
|
var options = _this.props.options;
|
|
10459
10459
|
var _this_node = _this.node, node = _this_node.current;
|
|
10460
10460
|
if (node) {
|
|
@@ -10490,13 +10490,13 @@ var ScrollIntoViewIfNeeded = /* @__PURE__ */ function(PureComponent2) {
|
|
|
10490
10490
|
_this_props.active;
|
|
10491
10491
|
var elementType = _this_props.elementType, children = _this_props.children;
|
|
10492
10492
|
_this_props.options;
|
|
10493
|
-
var wrapperProps = _object_without_properties$
|
|
10493
|
+
var wrapperProps = _object_without_properties$g(_this_props, [
|
|
10494
10494
|
"active",
|
|
10495
10495
|
"elementType",
|
|
10496
10496
|
"children",
|
|
10497
10497
|
"options"
|
|
10498
10498
|
]);
|
|
10499
|
-
return createElement(elementType !== null && elementType !== void 0 ? elementType : ScrollIntoViewIfNeededDefaultElementType, _object_spread$
|
|
10499
|
+
return createElement(elementType !== null && elementType !== void 0 ? elementType : ScrollIntoViewIfNeededDefaultElementType, _object_spread$R({
|
|
10500
10500
|
ref: this.node
|
|
10501
10501
|
}, wrapperProps), children);
|
|
10502
10502
|
}
|
|
@@ -10504,10 +10504,10 @@ var ScrollIntoViewIfNeeded = /* @__PURE__ */ function(PureComponent2) {
|
|
|
10504
10504
|
]);
|
|
10505
10505
|
return ScrollIntoViewIfNeeded2;
|
|
10506
10506
|
}(PureComponent);
|
|
10507
|
-
_define_property$
|
|
10507
|
+
_define_property$T(ScrollIntoViewIfNeeded, "defaultProps", ScrollIntoViewIfNeededDefaultProps);
|
|
10508
10508
|
var DEFAULT_OPTION_INDEX = -2;
|
|
10509
10509
|
var ALL_OPTION_INDEX = -1;
|
|
10510
|
-
function _define_property$
|
|
10510
|
+
function _define_property$S(obj, key, value) {
|
|
10511
10511
|
if (key in obj) {
|
|
10512
10512
|
Object.defineProperty(obj, key, {
|
|
10513
10513
|
value,
|
|
@@ -10520,7 +10520,7 @@ function _define_property$O(obj, key, value) {
|
|
|
10520
10520
|
}
|
|
10521
10521
|
return obj;
|
|
10522
10522
|
}
|
|
10523
|
-
function _object_spread$
|
|
10523
|
+
function _object_spread$Q(target) {
|
|
10524
10524
|
for (var i = 1; i < arguments.length; i++) {
|
|
10525
10525
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10526
10526
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10530,7 +10530,7 @@ function _object_spread$M(target) {
|
|
|
10530
10530
|
}));
|
|
10531
10531
|
}
|
|
10532
10532
|
ownKeys2.forEach(function(key) {
|
|
10533
|
-
_define_property$
|
|
10533
|
+
_define_property$S(target, key, source[key]);
|
|
10534
10534
|
});
|
|
10535
10535
|
}
|
|
10536
10536
|
return target;
|
|
@@ -10541,7 +10541,7 @@ var CELL_PADDING = [
|
|
|
10541
10541
|
10,
|
|
10542
10542
|
20
|
|
10543
10543
|
];
|
|
10544
|
-
var useStyles$
|
|
10544
|
+
var useStyles$G = createThemedStyles("SelectList", {
|
|
10545
10545
|
root: {
|
|
10546
10546
|
borderRadius: dimensions.BORDER_RADIUS_SMALL,
|
|
10547
10547
|
boxShadow: "0 13px 74px -27px rgba(0, 0, 0, 0.11)",
|
|
@@ -10561,7 +10561,7 @@ var useStyles$E = createThemedStyles("SelectList", {
|
|
|
10561
10561
|
},
|
|
10562
10562
|
listHeader: {},
|
|
10563
10563
|
listFooter: {},
|
|
10564
|
-
list: _object_spread$
|
|
10564
|
+
list: _object_spread$Q({
|
|
10565
10565
|
height: "100%",
|
|
10566
10566
|
maxHeight: ROW_HEIGHT$1 * 6,
|
|
10567
10567
|
cursor: "pointer",
|
|
@@ -10604,7 +10604,7 @@ var checkboxStyles$1 = {
|
|
|
10604
10604
|
display: "none"
|
|
10605
10605
|
}
|
|
10606
10606
|
};
|
|
10607
|
-
function _define_property$
|
|
10607
|
+
function _define_property$R(obj, key, value) {
|
|
10608
10608
|
if (key in obj) {
|
|
10609
10609
|
Object.defineProperty(obj, key, {
|
|
10610
10610
|
value,
|
|
@@ -10617,7 +10617,7 @@ function _define_property$N(obj, key, value) {
|
|
|
10617
10617
|
}
|
|
10618
10618
|
return obj;
|
|
10619
10619
|
}
|
|
10620
|
-
function _object_spread$
|
|
10620
|
+
function _object_spread$P(target) {
|
|
10621
10621
|
for (var i = 1; i < arguments.length; i++) {
|
|
10622
10622
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10623
10623
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10627,12 +10627,12 @@ function _object_spread$L(target) {
|
|
|
10627
10627
|
}));
|
|
10628
10628
|
}
|
|
10629
10629
|
ownKeys2.forEach(function(key) {
|
|
10630
|
-
_define_property$
|
|
10630
|
+
_define_property$R(target, key, source[key]);
|
|
10631
10631
|
});
|
|
10632
10632
|
}
|
|
10633
10633
|
return target;
|
|
10634
10634
|
}
|
|
10635
|
-
function ownKeys$
|
|
10635
|
+
function ownKeys$I(object, enumerableOnly) {
|
|
10636
10636
|
var keys = Object.keys(object);
|
|
10637
10637
|
if (Object.getOwnPropertySymbols) {
|
|
10638
10638
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10645,12 +10645,12 @@ function ownKeys$F(object, enumerableOnly) {
|
|
|
10645
10645
|
}
|
|
10646
10646
|
return keys;
|
|
10647
10647
|
}
|
|
10648
|
-
function _object_spread_props$
|
|
10648
|
+
function _object_spread_props$I(target, source) {
|
|
10649
10649
|
source = source != null ? source : {};
|
|
10650
10650
|
if (Object.getOwnPropertyDescriptors) {
|
|
10651
10651
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10652
10652
|
} else {
|
|
10653
|
-
ownKeys$
|
|
10653
|
+
ownKeys$I(Object(source)).forEach(function(key) {
|
|
10654
10654
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10655
10655
|
});
|
|
10656
10656
|
}
|
|
@@ -10670,13 +10670,13 @@ var SelectListItem = function(param) {
|
|
|
10670
10670
|
children
|
|
10671
10671
|
});
|
|
10672
10672
|
var _obj2;
|
|
10673
|
-
return /* @__PURE__ */ jsx(ScrollIntoViewIfNeeded, _object_spread_props$
|
|
10673
|
+
return /* @__PURE__ */ jsx(ScrollIntoViewIfNeeded, _object_spread_props$I(_object_spread$P({
|
|
10674
10674
|
active: isFocused,
|
|
10675
10675
|
options: {
|
|
10676
10676
|
block: "nearest"
|
|
10677
10677
|
},
|
|
10678
|
-
className: clsx(classes.cell, (_obj2 = {}, _define_property$
|
|
10679
|
-
}, addDataAttributes$1(_object_spread$
|
|
10678
|
+
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))
|
|
10679
|
+
}, addDataAttributes$1(_object_spread$P({
|
|
10680
10680
|
disabled: isDisabled,
|
|
10681
10681
|
active: isActive,
|
|
10682
10682
|
focused: isFocused
|
|
@@ -10687,7 +10687,7 @@ var SelectListItem = function(param) {
|
|
|
10687
10687
|
children: isMultiSelect ? multiSelectContent : children
|
|
10688
10688
|
}));
|
|
10689
10689
|
};
|
|
10690
|
-
function _define_property$
|
|
10690
|
+
function _define_property$Q(obj, key, value) {
|
|
10691
10691
|
if (key in obj) {
|
|
10692
10692
|
Object.defineProperty(obj, key, {
|
|
10693
10693
|
value,
|
|
@@ -10700,7 +10700,7 @@ function _define_property$M(obj, key, value) {
|
|
|
10700
10700
|
}
|
|
10701
10701
|
return obj;
|
|
10702
10702
|
}
|
|
10703
|
-
function _object_spread$
|
|
10703
|
+
function _object_spread$O(target) {
|
|
10704
10704
|
for (var i = 1; i < arguments.length; i++) {
|
|
10705
10705
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10706
10706
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10710,12 +10710,12 @@ function _object_spread$K(target) {
|
|
|
10710
10710
|
}));
|
|
10711
10711
|
}
|
|
10712
10712
|
ownKeys2.forEach(function(key) {
|
|
10713
|
-
_define_property$
|
|
10713
|
+
_define_property$Q(target, key, source[key]);
|
|
10714
10714
|
});
|
|
10715
10715
|
}
|
|
10716
10716
|
return target;
|
|
10717
10717
|
}
|
|
10718
|
-
function ownKeys$
|
|
10718
|
+
function ownKeys$H(object, enumerableOnly) {
|
|
10719
10719
|
var keys = Object.keys(object);
|
|
10720
10720
|
if (Object.getOwnPropertySymbols) {
|
|
10721
10721
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10728,12 +10728,12 @@ function ownKeys$E(object, enumerableOnly) {
|
|
|
10728
10728
|
}
|
|
10729
10729
|
return keys;
|
|
10730
10730
|
}
|
|
10731
|
-
function _object_spread_props$
|
|
10731
|
+
function _object_spread_props$H(target, source) {
|
|
10732
10732
|
source = source != null ? source : {};
|
|
10733
10733
|
if (Object.getOwnPropertyDescriptors) {
|
|
10734
10734
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10735
10735
|
} else {
|
|
10736
|
-
ownKeys$
|
|
10736
|
+
ownKeys$H(Object(source)).forEach(function(key) {
|
|
10737
10737
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10738
10738
|
});
|
|
10739
10739
|
}
|
|
@@ -10741,7 +10741,7 @@ function _object_spread_props$E(target, source) {
|
|
|
10741
10741
|
}
|
|
10742
10742
|
function SelectList(param) {
|
|
10743
10743
|
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;
|
|
10744
|
-
var classes = useStyles$
|
|
10744
|
+
var classes = useStyles$G({
|
|
10745
10745
|
theme: tweakStyles
|
|
10746
10746
|
});
|
|
10747
10747
|
var isHeaderNotEmpty = isReactNodeNotEmpty(customListHeader);
|
|
@@ -10770,13 +10770,13 @@ function SelectList(param) {
|
|
|
10770
10770
|
var _obj2;
|
|
10771
10771
|
return /* @__PURE__ */ jsxs(ScrollIntoViewIfNeeded, {
|
|
10772
10772
|
active: shouldScrollToList && !isMultiSelect,
|
|
10773
|
-
className: clsx(classes.root, (_obj2 = {}, _define_property$
|
|
10773
|
+
className: clsx(classes.root, (_obj2 = {}, _define_property$Q(_obj2, classes.withListHeader, isHeaderNotEmpty), _define_property$Q(_obj2, classes.withListFooter, isFooterNotEmpty), _obj2)),
|
|
10774
10774
|
children: [
|
|
10775
10775
|
isHeaderNotEmpty && /* @__PURE__ */ jsx("div", {
|
|
10776
10776
|
className: classes.listHeader,
|
|
10777
10777
|
children: customListHeader
|
|
10778
10778
|
}),
|
|
10779
|
-
/* @__PURE__ */ jsx("div", _object_spread_props$
|
|
10779
|
+
/* @__PURE__ */ jsx("div", _object_spread_props$H(_object_spread$O({
|
|
10780
10780
|
className: classes.list
|
|
10781
10781
|
}, addDataTestId(testId)), {
|
|
10782
10782
|
tabIndex: -1,
|
|
@@ -10858,7 +10858,7 @@ var getDefaultConvertToIdFunction = function(convertValueToString) {
|
|
|
10858
10858
|
};
|
|
10859
10859
|
};
|
|
10860
10860
|
var Z_INDEX = dimensions.Z_INDEX;
|
|
10861
|
-
var useStyles$
|
|
10861
|
+
var useStyles$F = createThemedStyles("Select", {
|
|
10862
10862
|
root: {
|
|
10863
10863
|
width: "100%",
|
|
10864
10864
|
position: "relative",
|
|
@@ -10970,7 +10970,7 @@ function _async_to_generator$4(fn3) {
|
|
|
10970
10970
|
});
|
|
10971
10971
|
};
|
|
10972
10972
|
}
|
|
10973
|
-
function _define_property$
|
|
10973
|
+
function _define_property$P(obj, key, value) {
|
|
10974
10974
|
if (key in obj) {
|
|
10975
10975
|
Object.defineProperty(obj, key, {
|
|
10976
10976
|
value,
|
|
@@ -11021,7 +11021,7 @@ function _non_iterable_rest$i() {
|
|
|
11021
11021
|
function _non_iterable_spread$7() {
|
|
11022
11022
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
11023
11023
|
}
|
|
11024
|
-
function _object_spread$
|
|
11024
|
+
function _object_spread$N(target) {
|
|
11025
11025
|
for (var i = 1; i < arguments.length; i++) {
|
|
11026
11026
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
11027
11027
|
var ownKeys2 = Object.keys(source);
|
|
@@ -11031,12 +11031,12 @@ function _object_spread$J(target) {
|
|
|
11031
11031
|
}));
|
|
11032
11032
|
}
|
|
11033
11033
|
ownKeys2.forEach(function(key) {
|
|
11034
|
-
_define_property$
|
|
11034
|
+
_define_property$P(target, key, source[key]);
|
|
11035
11035
|
});
|
|
11036
11036
|
}
|
|
11037
11037
|
return target;
|
|
11038
11038
|
}
|
|
11039
|
-
function ownKeys$
|
|
11039
|
+
function ownKeys$G(object, enumerableOnly) {
|
|
11040
11040
|
var keys = Object.keys(object);
|
|
11041
11041
|
if (Object.getOwnPropertySymbols) {
|
|
11042
11042
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -11049,21 +11049,21 @@ function ownKeys$D(object, enumerableOnly) {
|
|
|
11049
11049
|
}
|
|
11050
11050
|
return keys;
|
|
11051
11051
|
}
|
|
11052
|
-
function _object_spread_props$
|
|
11052
|
+
function _object_spread_props$G(target, source) {
|
|
11053
11053
|
source = source != null ? source : {};
|
|
11054
11054
|
if (Object.getOwnPropertyDescriptors) {
|
|
11055
11055
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
11056
11056
|
} else {
|
|
11057
|
-
ownKeys$
|
|
11057
|
+
ownKeys$G(Object(source)).forEach(function(key) {
|
|
11058
11058
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
11059
11059
|
});
|
|
11060
11060
|
}
|
|
11061
11061
|
return target;
|
|
11062
11062
|
}
|
|
11063
|
-
function _object_without_properties$
|
|
11063
|
+
function _object_without_properties$f(source, excluded) {
|
|
11064
11064
|
if (source == null)
|
|
11065
11065
|
return {};
|
|
11066
|
-
var target = _object_without_properties_loose$
|
|
11066
|
+
var target = _object_without_properties_loose$f(source, excluded);
|
|
11067
11067
|
var key, i;
|
|
11068
11068
|
if (Object.getOwnPropertySymbols) {
|
|
11069
11069
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -11078,7 +11078,7 @@ function _object_without_properties$d(source, excluded) {
|
|
|
11078
11078
|
}
|
|
11079
11079
|
return target;
|
|
11080
11080
|
}
|
|
11081
|
-
function _object_without_properties_loose$
|
|
11081
|
+
function _object_without_properties_loose$f(source, excluded) {
|
|
11082
11082
|
if (source == null)
|
|
11083
11083
|
return {};
|
|
11084
11084
|
var target = {};
|
|
@@ -11215,7 +11215,7 @@ function _ts_generator$4(thisArg, body) {
|
|
|
11215
11215
|
}
|
|
11216
11216
|
function Select(props) {
|
|
11217
11217
|
var _input_current;
|
|
11218
|
-
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$
|
|
11218
|
+
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, [
|
|
11219
11219
|
"options",
|
|
11220
11220
|
"isMultiSelect",
|
|
11221
11221
|
"value",
|
|
@@ -11252,10 +11252,10 @@ function Select(props) {
|
|
|
11252
11252
|
"infoMessage",
|
|
11253
11253
|
"errorMessage"
|
|
11254
11254
|
]);
|
|
11255
|
-
var classes = useStyles$
|
|
11255
|
+
var classes = useStyles$F({
|
|
11256
11256
|
theme: tweakStyles
|
|
11257
11257
|
});
|
|
11258
|
-
var _ref = searchInput !== null && searchInput !== void 0 ? searchInput : {}, tmp = _ref.shouldRenderInList, shouldRenderSearchInputInList = tmp === void 0 ? false : tmp, searchInputProps = _object_without_properties$
|
|
11258
|
+
var _ref = searchInput !== null && searchInput !== void 0 ? searchInput : {}, tmp = _ref.shouldRenderInList, shouldRenderSearchInputInList = tmp === void 0 ? false : tmp, searchInputProps = _object_without_properties$f(_ref, [
|
|
11259
11259
|
"shouldRenderInList"
|
|
11260
11260
|
]);
|
|
11261
11261
|
var hasSearchInputInList = optionsMode !== "normal" && shouldRenderSearchInputInList;
|
|
@@ -11609,7 +11609,7 @@ function Select(props) {
|
|
|
11609
11609
|
}, [
|
|
11610
11610
|
isOpen
|
|
11611
11611
|
]);
|
|
11612
|
-
var searchInputEl = hasSearchInputInList && /* @__PURE__ */ jsx(SearchInput, _object_spread$
|
|
11612
|
+
var searchInputEl = hasSearchInputInList && /* @__PURE__ */ jsx(SearchInput, _object_spread$N({
|
|
11613
11613
|
value: searchValue,
|
|
11614
11614
|
onChange: handleInputChange,
|
|
11615
11615
|
tweakStyles: tweakSearchInputStyles,
|
|
@@ -11622,8 +11622,8 @@ function Select(props) {
|
|
|
11622
11622
|
]
|
|
11623
11623
|
});
|
|
11624
11624
|
var _obj2;
|
|
11625
|
-
var listEl = /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
11626
|
-
className: clsx(classes.listWrapper, (_obj2 = {}, _define_property$
|
|
11625
|
+
var listEl = /* @__PURE__ */ jsx("div", _object_spread_props$G(_object_spread$N({
|
|
11626
|
+
className: clsx(classes.listWrapper, (_obj2 = {}, _define_property$P(_obj2, classes.withoutPopper, !shouldUsePopper), _define_property$P(_obj2, classes.listWrapperInBody, shouldRenderInBody), _obj2)),
|
|
11627
11627
|
ref: list,
|
|
11628
11628
|
style: popperData === null || popperData === void 0 ? void 0 : popperData.styles.popper,
|
|
11629
11629
|
tabIndex: 0,
|
|
@@ -11669,7 +11669,7 @@ function Select(props) {
|
|
|
11669
11669
|
className: clsx(classes.inputWrapper, isDisabled && classes.disabled),
|
|
11670
11670
|
onClick: isDisabled || isReadonly ? void 0 : handleOnClick,
|
|
11671
11671
|
ref: inputWrapper,
|
|
11672
|
-
children: /* @__PURE__ */ jsx(InputBase, _object_spread$
|
|
11672
|
+
children: /* @__PURE__ */ jsx(InputBase, _object_spread$N({
|
|
11673
11673
|
value: searchValue !== "" && !shouldRenderSearchInputInList ? searchValue : showedStringValue,
|
|
11674
11674
|
onChange: handleInputChange,
|
|
11675
11675
|
isActive: isListOpen || isActive,
|
|
@@ -11715,7 +11715,7 @@ function Select(props) {
|
|
|
11715
11715
|
})
|
|
11716
11716
|
});
|
|
11717
11717
|
}
|
|
11718
|
-
var useStyles$
|
|
11718
|
+
var useStyles$E = createThemedStyles("DatePickerHeader", {
|
|
11719
11719
|
btn: {
|
|
11720
11720
|
width: 36,
|
|
11721
11721
|
height: 36,
|
|
@@ -11758,7 +11758,7 @@ var selectStyles$1 = {
|
|
|
11758
11758
|
};
|
|
11759
11759
|
var DatePickerHeader = function(param) {
|
|
11760
11760
|
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;
|
|
11761
|
-
var classes = useStyles$
|
|
11761
|
+
var classes = useStyles$E({
|
|
11762
11762
|
theme: tweakStyles
|
|
11763
11763
|
});
|
|
11764
11764
|
var tweakSelectStyles = useTweakStyles({
|
|
@@ -11821,7 +11821,7 @@ var DatePickerHeader = function(param) {
|
|
|
11821
11821
|
]
|
|
11822
11822
|
});
|
|
11823
11823
|
};
|
|
11824
|
-
function _define_property$
|
|
11824
|
+
function _define_property$O(obj, key, value) {
|
|
11825
11825
|
if (key in obj) {
|
|
11826
11826
|
Object.defineProperty(obj, key, {
|
|
11827
11827
|
value,
|
|
@@ -11834,7 +11834,7 @@ function _define_property$K(obj, key, value) {
|
|
|
11834
11834
|
}
|
|
11835
11835
|
return obj;
|
|
11836
11836
|
}
|
|
11837
|
-
function _object_spread$
|
|
11837
|
+
function _object_spread$M(target) {
|
|
11838
11838
|
for (var i = 1; i < arguments.length; i++) {
|
|
11839
11839
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
11840
11840
|
var ownKeys2 = Object.keys(source);
|
|
@@ -11844,13 +11844,13 @@ function _object_spread$I(target) {
|
|
|
11844
11844
|
}));
|
|
11845
11845
|
}
|
|
11846
11846
|
ownKeys2.forEach(function(key) {
|
|
11847
|
-
_define_property$
|
|
11847
|
+
_define_property$O(target, key, source[key]);
|
|
11848
11848
|
});
|
|
11849
11849
|
}
|
|
11850
11850
|
return target;
|
|
11851
11851
|
}
|
|
11852
11852
|
var PopperContainer = function(props) {
|
|
11853
|
-
return /* @__PURE__ */ jsx(FloatingPortal, _object_spread$
|
|
11853
|
+
return /* @__PURE__ */ jsx(FloatingPortal, _object_spread$M({
|
|
11854
11854
|
root: document.body
|
|
11855
11855
|
}, props));
|
|
11856
11856
|
};
|
|
@@ -13053,7 +13053,7 @@ var getDateValueParser = function(dateFormat) {
|
|
|
13053
13053
|
var areDatesEquals = function(date1, date2) {
|
|
13054
13054
|
return isEmpty(date1) && isEmpty(date2) || isNotEmpty(date1) && isNotEmpty(date2) && isSameDay(date1, date2);
|
|
13055
13055
|
};
|
|
13056
|
-
var useStyles$
|
|
13056
|
+
var useStyles$D = createThemedStyles("DatePicker", {
|
|
13057
13057
|
root: {
|
|
13058
13058
|
width: "100%",
|
|
13059
13059
|
height: "100%"
|
|
@@ -13092,7 +13092,7 @@ function _array_without_holes$6(arr) {
|
|
|
13092
13092
|
if (Array.isArray(arr))
|
|
13093
13093
|
return _array_like_to_array$h(arr);
|
|
13094
13094
|
}
|
|
13095
|
-
function _define_property$
|
|
13095
|
+
function _define_property$N(obj, key, value) {
|
|
13096
13096
|
if (key in obj) {
|
|
13097
13097
|
Object.defineProperty(obj, key, {
|
|
13098
13098
|
value,
|
|
@@ -13143,7 +13143,7 @@ function _non_iterable_rest$h() {
|
|
|
13143
13143
|
function _non_iterable_spread$6() {
|
|
13144
13144
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
13145
13145
|
}
|
|
13146
|
-
function _object_spread$
|
|
13146
|
+
function _object_spread$L(target) {
|
|
13147
13147
|
for (var i = 1; i < arguments.length; i++) {
|
|
13148
13148
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
13149
13149
|
var ownKeys2 = Object.keys(source);
|
|
@@ -13153,12 +13153,12 @@ function _object_spread$H(target) {
|
|
|
13153
13153
|
}));
|
|
13154
13154
|
}
|
|
13155
13155
|
ownKeys2.forEach(function(key) {
|
|
13156
|
-
_define_property$
|
|
13156
|
+
_define_property$N(target, key, source[key]);
|
|
13157
13157
|
});
|
|
13158
13158
|
}
|
|
13159
13159
|
return target;
|
|
13160
13160
|
}
|
|
13161
|
-
function ownKeys$
|
|
13161
|
+
function ownKeys$F(object, enumerableOnly) {
|
|
13162
13162
|
var keys = Object.keys(object);
|
|
13163
13163
|
if (Object.getOwnPropertySymbols) {
|
|
13164
13164
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -13171,21 +13171,21 @@ function ownKeys$C(object, enumerableOnly) {
|
|
|
13171
13171
|
}
|
|
13172
13172
|
return keys;
|
|
13173
13173
|
}
|
|
13174
|
-
function _object_spread_props$
|
|
13174
|
+
function _object_spread_props$F(target, source) {
|
|
13175
13175
|
source = source != null ? source : {};
|
|
13176
13176
|
if (Object.getOwnPropertyDescriptors) {
|
|
13177
13177
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
13178
13178
|
} else {
|
|
13179
|
-
ownKeys$
|
|
13179
|
+
ownKeys$F(Object(source)).forEach(function(key) {
|
|
13180
13180
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
13181
13181
|
});
|
|
13182
13182
|
}
|
|
13183
13183
|
return target;
|
|
13184
13184
|
}
|
|
13185
|
-
function _object_without_properties$
|
|
13185
|
+
function _object_without_properties$e(source, excluded) {
|
|
13186
13186
|
if (source == null)
|
|
13187
13187
|
return {};
|
|
13188
|
-
var target = _object_without_properties_loose$
|
|
13188
|
+
var target = _object_without_properties_loose$e(source, excluded);
|
|
13189
13189
|
var key, i;
|
|
13190
13190
|
if (Object.getOwnPropertySymbols) {
|
|
13191
13191
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -13200,7 +13200,7 @@ function _object_without_properties$c(source, excluded) {
|
|
|
13200
13200
|
}
|
|
13201
13201
|
return target;
|
|
13202
13202
|
}
|
|
13203
|
-
function _object_without_properties_loose$
|
|
13203
|
+
function _object_without_properties_loose$e(source, excluded) {
|
|
13204
13204
|
if (source == null)
|
|
13205
13205
|
return {};
|
|
13206
13206
|
var target = {};
|
|
@@ -13234,7 +13234,7 @@ function _unsupported_iterable_to_array$h(o, minLen) {
|
|
|
13234
13234
|
return _array_like_to_array$h(o, minLen);
|
|
13235
13235
|
}
|
|
13236
13236
|
var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
13237
|
-
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$
|
|
13237
|
+
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, [
|
|
13238
13238
|
"data",
|
|
13239
13239
|
"selectedDate",
|
|
13240
13240
|
"minDate",
|
|
@@ -13281,7 +13281,7 @@ var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
13281
13281
|
"onKeyDown",
|
|
13282
13282
|
"tweakStyles"
|
|
13283
13283
|
]);
|
|
13284
|
-
var classes = useStyles$
|
|
13284
|
+
var classes = useStyles$D({
|
|
13285
13285
|
theme: tweakStyles
|
|
13286
13286
|
});
|
|
13287
13287
|
var tweakDateInputStyles = useTweakStyles({
|
|
@@ -13309,7 +13309,7 @@ var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
13309
13309
|
var _useState4 = _sliced_to_array$h(useState(endDate), 2), end2 = _useState4[0], setEnd = _useState4[1];
|
|
13310
13310
|
var _useState5 = _sliced_to_array$h(useState(formatDate(endDate)), 2), endDateValue = _useState5[0], setEndDateValue = _useState5[1];
|
|
13311
13311
|
var hasDateInputValue = isRange ? isStringNotEmpty(startDateValue) || isStringNotEmpty(endDateValue) : isStringNotEmpty(dateValue);
|
|
13312
|
-
var dateInputProps = _object_spread$
|
|
13312
|
+
var dateInputProps = _object_spread$L(_object_spread_props$F(_object_spread$L({}, inputProps), {
|
|
13313
13313
|
isRange,
|
|
13314
13314
|
isDisabled,
|
|
13315
13315
|
isClearable,
|
|
@@ -13414,10 +13414,10 @@ var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
13414
13414
|
var _datePickerRef_current;
|
|
13415
13415
|
return (_datePickerRef_current = datePickerRef.current) === null || _datePickerRef_current === void 0 ? void 0 : _datePickerRef_current.handleClickOutside(event);
|
|
13416
13416
|
}, OUTSIDE_CLICK_IGNORE_CLASS);
|
|
13417
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
13417
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$F(_object_spread$L({
|
|
13418
13418
|
className: classes.root
|
|
13419
13419
|
}, addDataAttributes$1(data)), {
|
|
13420
|
-
children: /* @__PURE__ */ jsx(DatePickerBase, _object_spread$
|
|
13420
|
+
children: /* @__PURE__ */ jsx(DatePickerBase, _object_spread$L({
|
|
13421
13421
|
ref: componentRef,
|
|
13422
13422
|
minDate,
|
|
13423
13423
|
maxDate,
|
|
@@ -13448,7 +13448,7 @@ var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
13448
13448
|
preventOpenOnFocus,
|
|
13449
13449
|
shouldCloseOnSelect,
|
|
13450
13450
|
customInputRef,
|
|
13451
|
-
customInput: /* @__PURE__ */ jsx(CustomInput, _object_spread$
|
|
13451
|
+
customInput: /* @__PURE__ */ jsx(CustomInput, _object_spread$L({}, dateInputProps)),
|
|
13452
13452
|
renderDayContents: function(day) {
|
|
13453
13453
|
return /* @__PURE__ */ jsx("div", {
|
|
13454
13454
|
className: classes.dayInner,
|
|
@@ -13456,7 +13456,7 @@ var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
13456
13456
|
});
|
|
13457
13457
|
},
|
|
13458
13458
|
renderCustomHeader: renderCustomHeader !== null && renderCustomHeader !== void 0 ? renderCustomHeader : function(baseProps) {
|
|
13459
|
-
return /* @__PURE__ */ jsx(DatePickerHeader, _object_spread_props$
|
|
13459
|
+
return /* @__PURE__ */ jsx(DatePickerHeader, _object_spread_props$F(_object_spread$L({}, baseProps), {
|
|
13460
13460
|
months
|
|
13461
13461
|
}));
|
|
13462
13462
|
},
|
|
@@ -13495,7 +13495,7 @@ var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
13495
13495
|
}));
|
|
13496
13496
|
});
|
|
13497
13497
|
var LINK_REGEXP = /(http(s?):\/\/(.*))(\s?)/;
|
|
13498
|
-
var useStyles$
|
|
13498
|
+
var useStyles$C = createThemedStyles("Description", {
|
|
13499
13499
|
root: {},
|
|
13500
13500
|
button: {
|
|
13501
13501
|
cursor: "pointer",
|
|
@@ -13536,7 +13536,7 @@ function _array_with_holes$g(arr) {
|
|
|
13536
13536
|
if (Array.isArray(arr))
|
|
13537
13537
|
return arr;
|
|
13538
13538
|
}
|
|
13539
|
-
function _define_property$
|
|
13539
|
+
function _define_property$M(obj, key, value) {
|
|
13540
13540
|
if (key in obj) {
|
|
13541
13541
|
Object.defineProperty(obj, key, {
|
|
13542
13542
|
value,
|
|
@@ -13580,7 +13580,7 @@ function _iterable_to_array_limit$g(arr, i) {
|
|
|
13580
13580
|
function _non_iterable_rest$g() {
|
|
13581
13581
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
13582
13582
|
}
|
|
13583
|
-
function _object_spread$
|
|
13583
|
+
function _object_spread$K(target) {
|
|
13584
13584
|
for (var i = 1; i < arguments.length; i++) {
|
|
13585
13585
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
13586
13586
|
var ownKeys2 = Object.keys(source);
|
|
@@ -13590,12 +13590,12 @@ function _object_spread$G(target) {
|
|
|
13590
13590
|
}));
|
|
13591
13591
|
}
|
|
13592
13592
|
ownKeys2.forEach(function(key) {
|
|
13593
|
-
_define_property$
|
|
13593
|
+
_define_property$M(target, key, source[key]);
|
|
13594
13594
|
});
|
|
13595
13595
|
}
|
|
13596
13596
|
return target;
|
|
13597
13597
|
}
|
|
13598
|
-
function ownKeys$
|
|
13598
|
+
function ownKeys$E(object, enumerableOnly) {
|
|
13599
13599
|
var keys = Object.keys(object);
|
|
13600
13600
|
if (Object.getOwnPropertySymbols) {
|
|
13601
13601
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -13608,12 +13608,12 @@ function ownKeys$B(object, enumerableOnly) {
|
|
|
13608
13608
|
}
|
|
13609
13609
|
return keys;
|
|
13610
13610
|
}
|
|
13611
|
-
function _object_spread_props$
|
|
13611
|
+
function _object_spread_props$E(target, source) {
|
|
13612
13612
|
source = source != null ? source : {};
|
|
13613
13613
|
if (Object.getOwnPropertyDescriptors) {
|
|
13614
13614
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
13615
13615
|
} else {
|
|
13616
|
-
ownKeys$
|
|
13616
|
+
ownKeys$E(Object(source)).forEach(function(key) {
|
|
13617
13617
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
13618
13618
|
});
|
|
13619
13619
|
}
|
|
@@ -13637,7 +13637,7 @@ function _unsupported_iterable_to_array$g(o, minLen) {
|
|
|
13637
13637
|
}
|
|
13638
13638
|
var Description = function(param) {
|
|
13639
13639
|
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;
|
|
13640
|
-
var classes = useStyles$
|
|
13640
|
+
var classes = useStyles$C({
|
|
13641
13641
|
theme: tweakStyles
|
|
13642
13642
|
});
|
|
13643
13643
|
var isTooShort = text.length < truncateIndex;
|
|
@@ -13646,7 +13646,7 @@ var Description = function(param) {
|
|
|
13646
13646
|
var linkText = link && link[0];
|
|
13647
13647
|
var textWithNoLink = text.replace(LINK_REGEXP, "");
|
|
13648
13648
|
var shortText = text.slice(0, text.slice(0, truncateIndex).lastIndexOf(" "));
|
|
13649
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
13649
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$E(_object_spread$K({
|
|
13650
13650
|
className: classes.root
|
|
13651
13651
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
13652
13652
|
children: [
|
|
@@ -13685,7 +13685,7 @@ var blockEvent = function(event) {
|
|
|
13685
13685
|
event.preventDefault();
|
|
13686
13686
|
event.stopPropagation();
|
|
13687
13687
|
};
|
|
13688
|
-
var useStyles$
|
|
13688
|
+
var useStyles$B = createThemedStyles("FileInput", {
|
|
13689
13689
|
root: {
|
|
13690
13690
|
display: "flex",
|
|
13691
13691
|
flexDirection: "column",
|
|
@@ -13768,7 +13768,7 @@ function _array_without_holes$5(arr) {
|
|
|
13768
13768
|
if (Array.isArray(arr))
|
|
13769
13769
|
return _array_like_to_array$f(arr);
|
|
13770
13770
|
}
|
|
13771
|
-
function _define_property$
|
|
13771
|
+
function _define_property$L(obj, key, value) {
|
|
13772
13772
|
if (key in obj) {
|
|
13773
13773
|
Object.defineProperty(obj, key, {
|
|
13774
13774
|
value,
|
|
@@ -13819,7 +13819,7 @@ function _non_iterable_rest$f() {
|
|
|
13819
13819
|
function _non_iterable_spread$5() {
|
|
13820
13820
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
13821
13821
|
}
|
|
13822
|
-
function _object_spread$
|
|
13822
|
+
function _object_spread$J(target) {
|
|
13823
13823
|
for (var i = 1; i < arguments.length; i++) {
|
|
13824
13824
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
13825
13825
|
var ownKeys2 = Object.keys(source);
|
|
@@ -13829,12 +13829,12 @@ function _object_spread$F(target) {
|
|
|
13829
13829
|
}));
|
|
13830
13830
|
}
|
|
13831
13831
|
ownKeys2.forEach(function(key) {
|
|
13832
|
-
_define_property$
|
|
13832
|
+
_define_property$L(target, key, source[key]);
|
|
13833
13833
|
});
|
|
13834
13834
|
}
|
|
13835
13835
|
return target;
|
|
13836
13836
|
}
|
|
13837
|
-
function ownKeys$
|
|
13837
|
+
function ownKeys$D(object, enumerableOnly) {
|
|
13838
13838
|
var keys = Object.keys(object);
|
|
13839
13839
|
if (Object.getOwnPropertySymbols) {
|
|
13840
13840
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -13847,12 +13847,12 @@ function ownKeys$A(object, enumerableOnly) {
|
|
|
13847
13847
|
}
|
|
13848
13848
|
return keys;
|
|
13849
13849
|
}
|
|
13850
|
-
function _object_spread_props$
|
|
13850
|
+
function _object_spread_props$D(target, source) {
|
|
13851
13851
|
source = source != null ? source : {};
|
|
13852
13852
|
if (Object.getOwnPropertyDescriptors) {
|
|
13853
13853
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
13854
13854
|
} else {
|
|
13855
|
-
ownKeys$
|
|
13855
|
+
ownKeys$D(Object(source)).forEach(function(key) {
|
|
13856
13856
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
13857
13857
|
});
|
|
13858
13858
|
}
|
|
@@ -13879,7 +13879,7 @@ function _unsupported_iterable_to_array$f(o, minLen) {
|
|
|
13879
13879
|
}
|
|
13880
13880
|
var FileInput = /* @__PURE__ */ forwardRef(function(param, ref) {
|
|
13881
13881
|
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;
|
|
13882
|
-
var classes = useStyles$
|
|
13882
|
+
var classes = useStyles$B({
|
|
13883
13883
|
theme: tweakStyles
|
|
13884
13884
|
});
|
|
13885
13885
|
var _useState = _sliced_to_array$f(useState(false), 2), isDragOver = _useState[0], setIsDragOver = _useState[1];
|
|
@@ -13911,16 +13911,16 @@ var FileInput = /* @__PURE__ */ forwardRef(function(param, ref) {
|
|
|
13911
13911
|
onDrop: handleDrop
|
|
13912
13912
|
} : void 0;
|
|
13913
13913
|
var _obj2;
|
|
13914
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
13914
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$D(_object_spread$J({
|
|
13915
13915
|
className: classes.root
|
|
13916
13916
|
}, addDataAttributes(data), addDataTestId(testId)), {
|
|
13917
13917
|
children: [
|
|
13918
13918
|
isReactNodeNotEmpty(label) && /* @__PURE__ */ jsx("div", {
|
|
13919
|
-
className: clsx(classes.label, _define_property$
|
|
13919
|
+
className: clsx(classes.label, _define_property$L({}, classes.requiredLabel, isRequired)),
|
|
13920
13920
|
children: label
|
|
13921
13921
|
}),
|
|
13922
|
-
!isReadOnly && /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
13923
|
-
className: clsx(classes.inputWrapper, (_obj2 = {}, _define_property$
|
|
13922
|
+
!isReadOnly && /* @__PURE__ */ jsxs("div", _object_spread_props$D(_object_spread$J({
|
|
13923
|
+
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))
|
|
13924
13924
|
}, dndHandlers), {
|
|
13925
13925
|
children: [
|
|
13926
13926
|
isReactNodeNotEmpty(text) && /* @__PURE__ */ jsx("div", {
|
|
@@ -13929,7 +13929,7 @@ var FileInput = /* @__PURE__ */ forwardRef(function(param, ref) {
|
|
|
13929
13929
|
}),
|
|
13930
13930
|
/* @__PURE__ */ jsx("label", {
|
|
13931
13931
|
className: classes.inputLabel,
|
|
13932
|
-
children: /* @__PURE__ */ jsx("input", _object_spread$
|
|
13932
|
+
children: /* @__PURE__ */ jsx("input", _object_spread$J({
|
|
13933
13933
|
ref,
|
|
13934
13934
|
type: "file",
|
|
13935
13935
|
value: "",
|
|
@@ -13953,10 +13953,7 @@ var FileInput = /* @__PURE__ */ forwardRef(function(param, ref) {
|
|
|
13953
13953
|
}));
|
|
13954
13954
|
});
|
|
13955
13955
|
FileInput.displayName = "FileInput";
|
|
13956
|
-
var
|
|
13957
|
-
var BUTTON_SIZE_M = 32;
|
|
13958
|
-
var ICON_SIZE = 20;
|
|
13959
|
-
var useStyles$y = createThemedStyles("IconButton", {
|
|
13956
|
+
var useStyles$A = createThemedStyles("IconButton", {
|
|
13960
13957
|
root: {
|
|
13961
13958
|
display: "flex",
|
|
13962
13959
|
justifyContent: "center",
|
|
@@ -13965,7 +13962,7 @@ var useStyles$y = createThemedStyles("IconButton", {
|
|
|
13965
13962
|
outline: "none",
|
|
13966
13963
|
boxSizing: "border-box",
|
|
13967
13964
|
transition: animations.defaultTransition,
|
|
13968
|
-
transitionProperty: "background-color, color, border-color",
|
|
13965
|
+
transitionProperty: "background-color, color, border-color, opacity, visibility",
|
|
13969
13966
|
border: "none",
|
|
13970
13967
|
position: "relative",
|
|
13971
13968
|
boxShadow: "none",
|
|
@@ -13978,7 +13975,10 @@ var useStyles$y = createThemedStyles("IconButton", {
|
|
|
13978
13975
|
},
|
|
13979
13976
|
"&:active": {
|
|
13980
13977
|
extend: "active"
|
|
13981
|
-
}
|
|
13978
|
+
},
|
|
13979
|
+
width: "var(--icon-button-size)",
|
|
13980
|
+
height: "var(--icon-button-size)",
|
|
13981
|
+
"--icon-button-icon-size": "20px"
|
|
13982
13982
|
},
|
|
13983
13983
|
"cancel-light": {},
|
|
13984
13984
|
cancel: {},
|
|
@@ -13997,8 +13997,8 @@ var useStyles$y = createThemedStyles("IconButton", {
|
|
|
13997
13997
|
icon: {
|
|
13998
13998
|
display: "flex",
|
|
13999
13999
|
alignItems: "center",
|
|
14000
|
-
width:
|
|
14001
|
-
height:
|
|
14000
|
+
width: "var(--icon-button-icon-size)",
|
|
14001
|
+
height: "var(--icon-button-icon-size)"
|
|
14002
14002
|
},
|
|
14003
14003
|
loader: {
|
|
14004
14004
|
display: "none",
|
|
@@ -14006,19 +14006,20 @@ var useStyles$y = createThemedStyles("IconButton", {
|
|
|
14006
14006
|
left: "50%",
|
|
14007
14007
|
top: "50%",
|
|
14008
14008
|
transform: "translate(-50%, -50%)",
|
|
14009
|
-
width:
|
|
14010
|
-
height:
|
|
14009
|
+
width: "var(--icon-button-icon-size)",
|
|
14010
|
+
height: "var(--icon-button-icon-size)"
|
|
14011
14011
|
},
|
|
14012
14012
|
s: {
|
|
14013
|
-
|
|
14014
|
-
height: BUTTON_SIZE_S
|
|
14013
|
+
"--icon-button-size": "24px"
|
|
14015
14014
|
},
|
|
14016
14015
|
m: {
|
|
14017
|
-
|
|
14018
|
-
|
|
14016
|
+
"--icon-button-size": "32px"
|
|
14017
|
+
},
|
|
14018
|
+
l: {
|
|
14019
|
+
"--icon-button-size": "40px"
|
|
14019
14020
|
}
|
|
14020
14021
|
});
|
|
14021
|
-
function _define_property$
|
|
14022
|
+
function _define_property$K(obj, key, value) {
|
|
14022
14023
|
if (key in obj) {
|
|
14023
14024
|
Object.defineProperty(obj, key, {
|
|
14024
14025
|
value,
|
|
@@ -14031,7 +14032,7 @@ function _define_property$G(obj, key, value) {
|
|
|
14031
14032
|
}
|
|
14032
14033
|
return obj;
|
|
14033
14034
|
}
|
|
14034
|
-
function _object_spread$
|
|
14035
|
+
function _object_spread$I(target) {
|
|
14035
14036
|
for (var i = 1; i < arguments.length; i++) {
|
|
14036
14037
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14037
14038
|
var ownKeys2 = Object.keys(source);
|
|
@@ -14041,12 +14042,12 @@ function _object_spread$E(target) {
|
|
|
14041
14042
|
}));
|
|
14042
14043
|
}
|
|
14043
14044
|
ownKeys2.forEach(function(key) {
|
|
14044
|
-
_define_property$
|
|
14045
|
+
_define_property$K(target, key, source[key]);
|
|
14045
14046
|
});
|
|
14046
14047
|
}
|
|
14047
14048
|
return target;
|
|
14048
14049
|
}
|
|
14049
|
-
function ownKeys$
|
|
14050
|
+
function ownKeys$C(object, enumerableOnly) {
|
|
14050
14051
|
var keys = Object.keys(object);
|
|
14051
14052
|
if (Object.getOwnPropertySymbols) {
|
|
14052
14053
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -14059,21 +14060,21 @@ function ownKeys$z(object, enumerableOnly) {
|
|
|
14059
14060
|
}
|
|
14060
14061
|
return keys;
|
|
14061
14062
|
}
|
|
14062
|
-
function _object_spread_props$
|
|
14063
|
+
function _object_spread_props$C(target, source) {
|
|
14063
14064
|
source = source != null ? source : {};
|
|
14064
14065
|
if (Object.getOwnPropertyDescriptors) {
|
|
14065
14066
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
14066
14067
|
} else {
|
|
14067
|
-
ownKeys$
|
|
14068
|
+
ownKeys$C(Object(source)).forEach(function(key) {
|
|
14068
14069
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
14069
14070
|
});
|
|
14070
14071
|
}
|
|
14071
14072
|
return target;
|
|
14072
14073
|
}
|
|
14073
|
-
function _object_without_properties$
|
|
14074
|
+
function _object_without_properties$d(source, excluded) {
|
|
14074
14075
|
if (source == null)
|
|
14075
14076
|
return {};
|
|
14076
|
-
var target = _object_without_properties_loose$
|
|
14077
|
+
var target = _object_without_properties_loose$d(source, excluded);
|
|
14077
14078
|
var key, i;
|
|
14078
14079
|
if (Object.getOwnPropertySymbols) {
|
|
14079
14080
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -14088,7 +14089,7 @@ function _object_without_properties$b(source, excluded) {
|
|
|
14088
14089
|
}
|
|
14089
14090
|
return target;
|
|
14090
14091
|
}
|
|
14091
|
-
function _object_without_properties_loose$
|
|
14092
|
+
function _object_without_properties_loose$d(source, excluded) {
|
|
14092
14093
|
if (source == null)
|
|
14093
14094
|
return {};
|
|
14094
14095
|
var target = {};
|
|
@@ -14103,7 +14104,7 @@ function _object_without_properties_loose$b(source, excluded) {
|
|
|
14103
14104
|
return target;
|
|
14104
14105
|
}
|
|
14105
14106
|
var IconButton = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
14106
|
-
var icon = _param.icon, _param_size = _param.size, size2 = _param_size === void 0 ? "m" : _param_size, _param_view = _param.view, view = _param_view === void 0 ? "cancel-light" : _param_view, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, testId = _param.testId, tweakStyles = _param.tweakStyles, data = _param.data, onClick = _param.onClick, restProps = _object_without_properties$
|
|
14107
|
+
var icon = _param.icon, _param_size = _param.size, size2 = _param_size === void 0 ? "m" : _param_size, _param_view = _param.view, view = _param_view === void 0 ? "cancel-light" : _param_view, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, testId = _param.testId, tweakStyles = _param.tweakStyles, data = _param.data, onClick = _param.onClick, restProps = _object_without_properties$d(_param, [
|
|
14107
14108
|
"icon",
|
|
14108
14109
|
"size",
|
|
14109
14110
|
"view",
|
|
@@ -14116,14 +14117,14 @@ var IconButton = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
14116
14117
|
"data",
|
|
14117
14118
|
"onClick"
|
|
14118
14119
|
]);
|
|
14119
|
-
var classes = useStyles$
|
|
14120
|
+
var classes = useStyles$A({
|
|
14120
14121
|
theme: tweakStyles
|
|
14121
14122
|
});
|
|
14122
14123
|
var hasNoAction = isDisabled || isLoading;
|
|
14123
14124
|
var _obj2;
|
|
14124
|
-
return /* @__PURE__ */ jsx("button", _object_spread_props$
|
|
14125
|
+
return /* @__PURE__ */ jsx("button", _object_spread_props$C(_object_spread$I({
|
|
14125
14126
|
ref,
|
|
14126
|
-
className: clsx(classes.root, classes[view], classes[size2], (_obj2 = {}, _define_property$
|
|
14127
|
+
className: clsx(classes.root, classes[view], classes[size2], (_obj2 = {}, _define_property$K(_obj2, classes.disabled, isDisabled), _define_property$K(_obj2, classes.active, isActive), _define_property$K(_obj2, classes.loading, isLoading), _obj2)),
|
|
14127
14128
|
type,
|
|
14128
14129
|
disabled: isDisabled,
|
|
14129
14130
|
onClick: hasNoAction ? void 0 : onClick
|
|
@@ -14140,7 +14141,7 @@ var IconButton = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
14140
14141
|
})
|
|
14141
14142
|
}));
|
|
14142
14143
|
});
|
|
14143
|
-
var useStyles$
|
|
14144
|
+
var useStyles$z = createThemedStyles("Tooltip", {
|
|
14144
14145
|
root: {
|
|
14145
14146
|
display: "inline-block",
|
|
14146
14147
|
boxSizing: "border-box"
|
|
@@ -14183,7 +14184,7 @@ var useStyles$x = createThemedStyles("Tooltip", {
|
|
|
14183
14184
|
}
|
|
14184
14185
|
}
|
|
14185
14186
|
});
|
|
14186
|
-
function _define_property$
|
|
14187
|
+
function _define_property$J(obj, key, value) {
|
|
14187
14188
|
if (key in obj) {
|
|
14188
14189
|
Object.defineProperty(obj, key, {
|
|
14189
14190
|
value,
|
|
@@ -14196,7 +14197,7 @@ function _define_property$F(obj, key, value) {
|
|
|
14196
14197
|
}
|
|
14197
14198
|
return obj;
|
|
14198
14199
|
}
|
|
14199
|
-
function _object_spread$
|
|
14200
|
+
function _object_spread$H(target) {
|
|
14200
14201
|
for (var i = 1; i < arguments.length; i++) {
|
|
14201
14202
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14202
14203
|
var ownKeys2 = Object.keys(source);
|
|
@@ -14206,12 +14207,12 @@ function _object_spread$D(target) {
|
|
|
14206
14207
|
}));
|
|
14207
14208
|
}
|
|
14208
14209
|
ownKeys2.forEach(function(key) {
|
|
14209
|
-
_define_property$
|
|
14210
|
+
_define_property$J(target, key, source[key]);
|
|
14210
14211
|
});
|
|
14211
14212
|
}
|
|
14212
14213
|
return target;
|
|
14213
14214
|
}
|
|
14214
|
-
function ownKeys$
|
|
14215
|
+
function ownKeys$B(object, enumerableOnly) {
|
|
14215
14216
|
var keys = Object.keys(object);
|
|
14216
14217
|
if (Object.getOwnPropertySymbols) {
|
|
14217
14218
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -14224,12 +14225,12 @@ function ownKeys$y(object, enumerableOnly) {
|
|
|
14224
14225
|
}
|
|
14225
14226
|
return keys;
|
|
14226
14227
|
}
|
|
14227
|
-
function _object_spread_props$
|
|
14228
|
+
function _object_spread_props$B(target, source) {
|
|
14228
14229
|
source = source != null ? source : {};
|
|
14229
14230
|
if (Object.getOwnPropertyDescriptors) {
|
|
14230
14231
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
14231
14232
|
} else {
|
|
14232
|
-
ownKeys$
|
|
14233
|
+
ownKeys$B(Object(source)).forEach(function(key) {
|
|
14233
14234
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
14234
14235
|
});
|
|
14235
14236
|
}
|
|
@@ -14237,16 +14238,16 @@ function _object_spread_props$y(target, source) {
|
|
|
14237
14238
|
}
|
|
14238
14239
|
var Tooltip = function(param) {
|
|
14239
14240
|
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;
|
|
14240
|
-
var classes = useStyles$
|
|
14241
|
+
var classes = useStyles$z({
|
|
14241
14242
|
theme: tweakStyles
|
|
14242
14243
|
});
|
|
14243
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
14244
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$B(_object_spread$H({
|
|
14244
14245
|
className: clsx(classes.root, classes[view], classes[type])
|
|
14245
14246
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
14246
14247
|
children: text
|
|
14247
14248
|
}));
|
|
14248
14249
|
};
|
|
14249
|
-
var useStyles$
|
|
14250
|
+
var useStyles$y = createThemedStyles("TextWithTooltip", {
|
|
14250
14251
|
root: {
|
|
14251
14252
|
position: "relative"
|
|
14252
14253
|
},
|
|
@@ -14272,7 +14273,7 @@ function _array_without_holes$4(arr) {
|
|
|
14272
14273
|
if (Array.isArray(arr))
|
|
14273
14274
|
return _array_like_to_array$e(arr);
|
|
14274
14275
|
}
|
|
14275
|
-
function _define_property$
|
|
14276
|
+
function _define_property$I(obj, key, value) {
|
|
14276
14277
|
if (key in obj) {
|
|
14277
14278
|
Object.defineProperty(obj, key, {
|
|
14278
14279
|
value,
|
|
@@ -14323,7 +14324,7 @@ function _non_iterable_rest$e() {
|
|
|
14323
14324
|
function _non_iterable_spread$4() {
|
|
14324
14325
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14325
14326
|
}
|
|
14326
|
-
function _object_spread$
|
|
14327
|
+
function _object_spread$G(target) {
|
|
14327
14328
|
for (var i = 1; i < arguments.length; i++) {
|
|
14328
14329
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14329
14330
|
var ownKeys2 = Object.keys(source);
|
|
@@ -14333,12 +14334,12 @@ function _object_spread$C(target) {
|
|
|
14333
14334
|
}));
|
|
14334
14335
|
}
|
|
14335
14336
|
ownKeys2.forEach(function(key) {
|
|
14336
|
-
_define_property$
|
|
14337
|
+
_define_property$I(target, key, source[key]);
|
|
14337
14338
|
});
|
|
14338
14339
|
}
|
|
14339
14340
|
return target;
|
|
14340
14341
|
}
|
|
14341
|
-
function ownKeys$
|
|
14342
|
+
function ownKeys$A(object, enumerableOnly) {
|
|
14342
14343
|
var keys = Object.keys(object);
|
|
14343
14344
|
if (Object.getOwnPropertySymbols) {
|
|
14344
14345
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -14351,12 +14352,12 @@ function ownKeys$x(object, enumerableOnly) {
|
|
|
14351
14352
|
}
|
|
14352
14353
|
return keys;
|
|
14353
14354
|
}
|
|
14354
|
-
function _object_spread_props$
|
|
14355
|
+
function _object_spread_props$A(target, source) {
|
|
14355
14356
|
source = source != null ? source : {};
|
|
14356
14357
|
if (Object.getOwnPropertyDescriptors) {
|
|
14357
14358
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
14358
14359
|
} else {
|
|
14359
|
-
ownKeys$
|
|
14360
|
+
ownKeys$A(Object(source)).forEach(function(key) {
|
|
14360
14361
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
14361
14362
|
});
|
|
14362
14363
|
}
|
|
@@ -14383,7 +14384,7 @@ function _unsupported_iterable_to_array$e(o, minLen) {
|
|
|
14383
14384
|
}
|
|
14384
14385
|
var TextWithTooltip = function(param) {
|
|
14385
14386
|
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;
|
|
14386
|
-
var classes = useStyles$
|
|
14387
|
+
var classes = useStyles$y({
|
|
14387
14388
|
theme: tweakStyles
|
|
14388
14389
|
});
|
|
14389
14390
|
var tweakTooltipStyles = useTweakStyles({
|
|
@@ -14423,7 +14424,7 @@ var TextWithTooltip = function(param) {
|
|
|
14423
14424
|
modifiers: [
|
|
14424
14425
|
{
|
|
14425
14426
|
name: "offset",
|
|
14426
|
-
options: _object_spread$
|
|
14427
|
+
options: _object_spread$G({
|
|
14427
14428
|
offset: [
|
|
14428
14429
|
0,
|
|
14429
14430
|
6
|
|
@@ -14446,14 +14447,14 @@ var TextWithTooltip = function(param) {
|
|
|
14446
14447
|
onMouseLeave: handleMouseLeave
|
|
14447
14448
|
};
|
|
14448
14449
|
var shouldShowTooltip = tooltipText !== void 0 && tooltipText !== null && !isDisabled;
|
|
14449
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
14450
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$A(_object_spread$G({
|
|
14450
14451
|
className: clsx(classes.root, mouseEventType === "click" && shouldShowTooltip && classes.clickable)
|
|
14451
14452
|
}, shouldShowTooltip ? props : void 0, addDataTestId(testId), addDataAttributes(data)), {
|
|
14452
14453
|
ref: root,
|
|
14453
14454
|
children: [
|
|
14454
14455
|
shouldShowTooltip && /* @__PURE__ */ jsx(Portal, {
|
|
14455
14456
|
container: shouldRenderInBody ? document.body : root.current,
|
|
14456
|
-
children: /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
14457
|
+
children: /* @__PURE__ */ jsx("div", _object_spread_props$A(_object_spread$G({
|
|
14457
14458
|
className: classes.tooltip,
|
|
14458
14459
|
style: popperStyles.popper
|
|
14459
14460
|
}, attributes.popper), {
|
|
@@ -14470,7 +14471,7 @@ var TextWithTooltip = function(param) {
|
|
|
14470
14471
|
]
|
|
14471
14472
|
}));
|
|
14472
14473
|
};
|
|
14473
|
-
function _define_property$
|
|
14474
|
+
function _define_property$H(obj, key, value) {
|
|
14474
14475
|
if (key in obj) {
|
|
14475
14476
|
Object.defineProperty(obj, key, {
|
|
14476
14477
|
value,
|
|
@@ -14485,7 +14486,7 @@ function _define_property$D(obj, key, value) {
|
|
|
14485
14486
|
}
|
|
14486
14487
|
var FILE_ICON_DEFAULT = "file-other";
|
|
14487
14488
|
var _obj;
|
|
14488
|
-
var iconTypeMap = (_obj = {}, _define_property$
|
|
14489
|
+
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);
|
|
14489
14490
|
var getFileExtensionByFilename = function(fileName) {
|
|
14490
14491
|
var splitFileName = fileName.split(".");
|
|
14491
14492
|
return splitFileName.length > 1 ? splitFileName.pop() : void 0;
|
|
@@ -14505,7 +14506,7 @@ var getFileIcon = function(param) {
|
|
|
14505
14506
|
}
|
|
14506
14507
|
return FILE_ICON_DEFAULT;
|
|
14507
14508
|
};
|
|
14508
|
-
var useStyles$
|
|
14509
|
+
var useStyles$x = createThemedStyles("FileItem", {
|
|
14509
14510
|
root: {
|
|
14510
14511
|
display: "flex",
|
|
14511
14512
|
flexDirection: "column",
|
|
@@ -14601,7 +14602,7 @@ var themedPreloaderStyles = {
|
|
|
14601
14602
|
}
|
|
14602
14603
|
}
|
|
14603
14604
|
};
|
|
14604
|
-
function _define_property$
|
|
14605
|
+
function _define_property$G(obj, key, value) {
|
|
14605
14606
|
if (key in obj) {
|
|
14606
14607
|
Object.defineProperty(obj, key, {
|
|
14607
14608
|
value,
|
|
@@ -14614,7 +14615,7 @@ function _define_property$C(obj, key, value) {
|
|
|
14614
14615
|
}
|
|
14615
14616
|
return obj;
|
|
14616
14617
|
}
|
|
14617
|
-
function _object_spread$
|
|
14618
|
+
function _object_spread$F(target) {
|
|
14618
14619
|
for (var i = 1; i < arguments.length; i++) {
|
|
14619
14620
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14620
14621
|
var ownKeys2 = Object.keys(source);
|
|
@@ -14624,12 +14625,12 @@ function _object_spread$B(target) {
|
|
|
14624
14625
|
}));
|
|
14625
14626
|
}
|
|
14626
14627
|
ownKeys2.forEach(function(key) {
|
|
14627
|
-
_define_property$
|
|
14628
|
+
_define_property$G(target, key, source[key]);
|
|
14628
14629
|
});
|
|
14629
14630
|
}
|
|
14630
14631
|
return target;
|
|
14631
14632
|
}
|
|
14632
|
-
function ownKeys$
|
|
14633
|
+
function ownKeys$z(object, enumerableOnly) {
|
|
14633
14634
|
var keys = Object.keys(object);
|
|
14634
14635
|
if (Object.getOwnPropertySymbols) {
|
|
14635
14636
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -14642,12 +14643,12 @@ function ownKeys$w(object, enumerableOnly) {
|
|
|
14642
14643
|
}
|
|
14643
14644
|
return keys;
|
|
14644
14645
|
}
|
|
14645
|
-
function _object_spread_props$
|
|
14646
|
+
function _object_spread_props$z(target, source) {
|
|
14646
14647
|
source = source != null ? source : {};
|
|
14647
14648
|
if (Object.getOwnPropertyDescriptors) {
|
|
14648
14649
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
14649
14650
|
} else {
|
|
14650
|
-
ownKeys$
|
|
14651
|
+
ownKeys$z(Object(source)).forEach(function(key) {
|
|
14651
14652
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
14652
14653
|
});
|
|
14653
14654
|
}
|
|
@@ -14655,7 +14656,7 @@ function _object_spread_props$w(target, source) {
|
|
|
14655
14656
|
}
|
|
14656
14657
|
var FileItem = function(param) {
|
|
14657
14658
|
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;
|
|
14658
|
-
var classes = useStyles$
|
|
14659
|
+
var classes = useStyles$x({
|
|
14659
14660
|
theme: tweakStyles
|
|
14660
14661
|
});
|
|
14661
14662
|
var tweakIconButtonStyles = useTweakStyles({
|
|
@@ -14687,8 +14688,8 @@ var FileItem = function(param) {
|
|
|
14687
14688
|
return /* @__PURE__ */ jsxs("div", {
|
|
14688
14689
|
className: classes.root,
|
|
14689
14690
|
children: [
|
|
14690
|
-
/* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
14691
|
-
className: clsx(classes.fileItemWrapper, classes[itemSize], _define_property$
|
|
14691
|
+
/* @__PURE__ */ jsxs("div", _object_spread_props$z(_object_spread$F({
|
|
14692
|
+
className: clsx(classes.fileItemWrapper, classes[itemSize], _define_property$G({}, classes.disabled, isDisabled))
|
|
14692
14693
|
}, addDataTestId(testId), addDataAttributes(data), addClickHandler(handleClick, !isDisabled)), {
|
|
14693
14694
|
children: [
|
|
14694
14695
|
/* @__PURE__ */ jsx("div", {
|
|
@@ -14969,7 +14970,7 @@ function _async_to_generator$3(fn3) {
|
|
|
14969
14970
|
});
|
|
14970
14971
|
};
|
|
14971
14972
|
}
|
|
14972
|
-
function _define_property$
|
|
14973
|
+
function _define_property$F(obj, key, value) {
|
|
14973
14974
|
if (key in obj) {
|
|
14974
14975
|
Object.defineProperty(obj, key, {
|
|
14975
14976
|
value,
|
|
@@ -15013,7 +15014,7 @@ function _iterable_to_array_limit$d(arr, i) {
|
|
|
15013
15014
|
function _non_iterable_rest$d() {
|
|
15014
15015
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
15015
15016
|
}
|
|
15016
|
-
function _object_spread$
|
|
15017
|
+
function _object_spread$E(target) {
|
|
15017
15018
|
for (var i = 1; i < arguments.length; i++) {
|
|
15018
15019
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
15019
15020
|
var ownKeys2 = Object.keys(source);
|
|
@@ -15023,15 +15024,15 @@ function _object_spread$A(target) {
|
|
|
15023
15024
|
}));
|
|
15024
15025
|
}
|
|
15025
15026
|
ownKeys2.forEach(function(key) {
|
|
15026
|
-
_define_property$
|
|
15027
|
+
_define_property$F(target, key, source[key]);
|
|
15027
15028
|
});
|
|
15028
15029
|
}
|
|
15029
15030
|
return target;
|
|
15030
15031
|
}
|
|
15031
|
-
function _object_without_properties$
|
|
15032
|
+
function _object_without_properties$c(source, excluded) {
|
|
15032
15033
|
if (source == null)
|
|
15033
15034
|
return {};
|
|
15034
|
-
var target = _object_without_properties_loose$
|
|
15035
|
+
var target = _object_without_properties_loose$c(source, excluded);
|
|
15035
15036
|
var key, i;
|
|
15036
15037
|
if (Object.getOwnPropertySymbols) {
|
|
15037
15038
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -15046,7 +15047,7 @@ function _object_without_properties$a(source, excluded) {
|
|
|
15046
15047
|
}
|
|
15047
15048
|
return target;
|
|
15048
15049
|
}
|
|
15049
|
-
function _object_without_properties_loose$
|
|
15050
|
+
function _object_without_properties_loose$c(source, excluded) {
|
|
15050
15051
|
if (source == null)
|
|
15051
15052
|
return {};
|
|
15052
15053
|
var target = {};
|
|
@@ -15179,7 +15180,7 @@ function _ts_generator$3(thisArg, body) {
|
|
|
15179
15180
|
}
|
|
15180
15181
|
}
|
|
15181
15182
|
var NumberInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
15182
|
-
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$
|
|
15183
|
+
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, [
|
|
15183
15184
|
"value",
|
|
15184
15185
|
"canBeFloat",
|
|
15185
15186
|
"canBeNegative",
|
|
@@ -15282,7 +15283,7 @@ var NumberInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
15282
15283
|
}, [
|
|
15283
15284
|
value
|
|
15284
15285
|
]);
|
|
15285
|
-
return /* @__PURE__ */ jsx(Input, _object_spread$
|
|
15286
|
+
return /* @__PURE__ */ jsx(Input, _object_spread$E({
|
|
15286
15287
|
value: showedValue,
|
|
15287
15288
|
onChange: handleChange,
|
|
15288
15289
|
onBlur: handleBlur,
|
|
@@ -15291,7 +15292,7 @@ var NumberInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
15291
15292
|
}, props));
|
|
15292
15293
|
});
|
|
15293
15294
|
var FILTER_HEIGHT = 36;
|
|
15294
|
-
var useStyles$
|
|
15295
|
+
var useStyles$w = createThemedStyles("FiltersPane", {
|
|
15295
15296
|
root: {
|
|
15296
15297
|
display: "flex",
|
|
15297
15298
|
flexWrap: "wrap",
|
|
@@ -15357,7 +15358,7 @@ var innerTextButtonStyles = {
|
|
|
15357
15358
|
}
|
|
15358
15359
|
}
|
|
15359
15360
|
};
|
|
15360
|
-
var useStyles$
|
|
15361
|
+
var useStyles$v = createThemedStyles("FilterInterval", {
|
|
15361
15362
|
root: {
|
|
15362
15363
|
padding: 8,
|
|
15363
15364
|
background: colors.CLASSIC_WHITE
|
|
@@ -15402,7 +15403,7 @@ var inputStyles$3 = {
|
|
|
15402
15403
|
}
|
|
15403
15404
|
};
|
|
15404
15405
|
var clearButtonStyles$3 = structuredClone(innerTextButtonStyles);
|
|
15405
|
-
function _define_property$
|
|
15406
|
+
function _define_property$E(obj, key, value) {
|
|
15406
15407
|
if (key in obj) {
|
|
15407
15408
|
Object.defineProperty(obj, key, {
|
|
15408
15409
|
value,
|
|
@@ -15415,7 +15416,7 @@ function _define_property$A(obj, key, value) {
|
|
|
15415
15416
|
}
|
|
15416
15417
|
return obj;
|
|
15417
15418
|
}
|
|
15418
|
-
function _object_spread$
|
|
15419
|
+
function _object_spread$D(target) {
|
|
15419
15420
|
for (var i = 1; i < arguments.length; i++) {
|
|
15420
15421
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
15421
15422
|
var ownKeys2 = Object.keys(source);
|
|
@@ -15425,12 +15426,12 @@ function _object_spread$z(target) {
|
|
|
15425
15426
|
}));
|
|
15426
15427
|
}
|
|
15427
15428
|
ownKeys2.forEach(function(key) {
|
|
15428
|
-
_define_property$
|
|
15429
|
+
_define_property$E(target, key, source[key]);
|
|
15429
15430
|
});
|
|
15430
15431
|
}
|
|
15431
15432
|
return target;
|
|
15432
15433
|
}
|
|
15433
|
-
function ownKeys$
|
|
15434
|
+
function ownKeys$y(object, enumerableOnly) {
|
|
15434
15435
|
var keys = Object.keys(object);
|
|
15435
15436
|
if (Object.getOwnPropertySymbols) {
|
|
15436
15437
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -15443,12 +15444,12 @@ function ownKeys$v(object, enumerableOnly) {
|
|
|
15443
15444
|
}
|
|
15444
15445
|
return keys;
|
|
15445
15446
|
}
|
|
15446
|
-
function _object_spread_props$
|
|
15447
|
+
function _object_spread_props$y(target, source) {
|
|
15447
15448
|
source = source != null ? source : {};
|
|
15448
15449
|
if (Object.getOwnPropertyDescriptors) {
|
|
15449
15450
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
15450
15451
|
} else {
|
|
15451
|
-
ownKeys$
|
|
15452
|
+
ownKeys$y(Object(source)).forEach(function(key) {
|
|
15452
15453
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
15453
15454
|
});
|
|
15454
15455
|
}
|
|
@@ -15456,7 +15457,7 @@ function _object_spread_props$v(target, source) {
|
|
|
15456
15457
|
}
|
|
15457
15458
|
var FilterInterval = function(param) {
|
|
15458
15459
|
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;
|
|
15459
|
-
var classes = useStyles$
|
|
15460
|
+
var classes = useStyles$v({
|
|
15460
15461
|
theme: tweakStyles
|
|
15461
15462
|
});
|
|
15462
15463
|
var translates = useMemo(function() {
|
|
@@ -15500,7 +15501,7 @@ var FilterInterval = function(param) {
|
|
|
15500
15501
|
className: "tweakClearButton",
|
|
15501
15502
|
currentComponentName: "FilterInterval"
|
|
15502
15503
|
});
|
|
15503
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
15504
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$y(_object_spread$D({
|
|
15504
15505
|
className: classes.root
|
|
15505
15506
|
}, addDataAttributes(data)), {
|
|
15506
15507
|
children: [
|
|
@@ -15509,18 +15510,15 @@ var FilterInterval = function(param) {
|
|
|
15509
15510
|
children: [
|
|
15510
15511
|
/* @__PURE__ */ jsxs("div", {
|
|
15511
15512
|
children: [
|
|
15512
|
-
/* @__PURE__ */ jsx(NumberInput, {
|
|
15513
|
+
/* @__PURE__ */ jsx(NumberInput, _object_spread$D({
|
|
15513
15514
|
onChange: handleFromChange,
|
|
15514
15515
|
value: value === null || value === void 0 ? void 0 : value[0],
|
|
15515
15516
|
label: withFieldNameInLabel ? "".concat(labelName, " ").concat(translates.from.toLocaleLowerCase()) : translates.from,
|
|
15516
15517
|
canBeFloat,
|
|
15517
15518
|
isClearable: true,
|
|
15518
|
-
min: fromInput === null || fromInput === void 0 ? void 0 : fromInput.min,
|
|
15519
|
-
max: fromInput === null || fromInput === void 0 ? void 0 : fromInput.max,
|
|
15520
|
-
maxLength: fromInput === null || fromInput === void 0 ? void 0 : fromInput.maxLength,
|
|
15521
15519
|
tweakStyles: tweakInputStyles,
|
|
15522
15520
|
testId: getTestId(testId, "start")
|
|
15523
|
-
}),
|
|
15521
|
+
}, fromInput)),
|
|
15524
15522
|
withFieldNameInLabel && /* @__PURE__ */ jsxs("div", {
|
|
15525
15523
|
className: classes.autosize,
|
|
15526
15524
|
children: [
|
|
@@ -15533,18 +15531,15 @@ var FilterInterval = function(param) {
|
|
|
15533
15531
|
}),
|
|
15534
15532
|
/* @__PURE__ */ jsxs("div", {
|
|
15535
15533
|
children: [
|
|
15536
|
-
/* @__PURE__ */ jsx(NumberInput, {
|
|
15534
|
+
/* @__PURE__ */ jsx(NumberInput, _object_spread$D({
|
|
15537
15535
|
onChange: handleToChange,
|
|
15538
15536
|
value: value === null || value === void 0 ? void 0 : value[1],
|
|
15539
15537
|
label: withFieldNameInLabel ? "".concat(labelName, " ").concat(translates.to.toLocaleLowerCase()) : translates.to,
|
|
15540
15538
|
canBeFloat,
|
|
15541
15539
|
isClearable: true,
|
|
15542
|
-
min: toInput === null || toInput === void 0 ? void 0 : toInput.min,
|
|
15543
|
-
max: toInput === null || toInput === void 0 ? void 0 : toInput.max,
|
|
15544
|
-
maxLength: toInput === null || toInput === void 0 ? void 0 : toInput.maxLength,
|
|
15545
15540
|
tweakStyles: tweakInputStyles,
|
|
15546
15541
|
testId: getTestId(testId, "end")
|
|
15547
|
-
}),
|
|
15542
|
+
}, toInput)),
|
|
15548
15543
|
withFieldNameInLabel && /* @__PURE__ */ jsxs("div", {
|
|
15549
15544
|
className: classes.autosize,
|
|
15550
15545
|
children: [
|
|
@@ -15595,7 +15590,7 @@ var getLocale = function() {
|
|
|
15595
15590
|
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;
|
|
15596
15591
|
return merge$1(MultiSelectLocales[key], custom, custom2);
|
|
15597
15592
|
};
|
|
15598
|
-
function _define_property$
|
|
15593
|
+
function _define_property$D(obj, key, value) {
|
|
15599
15594
|
if (key in obj) {
|
|
15600
15595
|
Object.defineProperty(obj, key, {
|
|
15601
15596
|
value,
|
|
@@ -15608,7 +15603,7 @@ function _define_property$z(obj, key, value) {
|
|
|
15608
15603
|
}
|
|
15609
15604
|
return obj;
|
|
15610
15605
|
}
|
|
15611
|
-
function _object_spread$
|
|
15606
|
+
function _object_spread$C(target) {
|
|
15612
15607
|
for (var i = 1; i < arguments.length; i++) {
|
|
15613
15608
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
15614
15609
|
var ownKeys2 = Object.keys(source);
|
|
@@ -15618,19 +15613,19 @@ function _object_spread$y(target) {
|
|
|
15618
15613
|
}));
|
|
15619
15614
|
}
|
|
15620
15615
|
ownKeys2.forEach(function(key) {
|
|
15621
|
-
_define_property$
|
|
15616
|
+
_define_property$D(target, key, source[key]);
|
|
15622
15617
|
});
|
|
15623
15618
|
}
|
|
15624
15619
|
return target;
|
|
15625
15620
|
}
|
|
15626
15621
|
var ITEM_HEIGHT$1 = 40;
|
|
15627
15622
|
var TOP_GAP = 12;
|
|
15628
|
-
var useStyles$
|
|
15623
|
+
var useStyles$u = createThemedStyles("MultiSelectList", {
|
|
15629
15624
|
root: {
|
|
15630
15625
|
width: 220,
|
|
15631
15626
|
background: colors.CLASSIC_WHITE
|
|
15632
15627
|
},
|
|
15633
|
-
list: _object_spread$
|
|
15628
|
+
list: _object_spread$C({
|
|
15634
15629
|
paddingTop: TOP_GAP,
|
|
15635
15630
|
maxHeight: ITEM_HEIGHT$1 * 5 + TOP_GAP,
|
|
15636
15631
|
overscrollBehavior: "contain"
|
|
@@ -15789,7 +15784,7 @@ function _async_to_generator$2(fn3) {
|
|
|
15789
15784
|
});
|
|
15790
15785
|
};
|
|
15791
15786
|
}
|
|
15792
|
-
function _define_property$
|
|
15787
|
+
function _define_property$C(obj, key, value) {
|
|
15793
15788
|
if (key in obj) {
|
|
15794
15789
|
Object.defineProperty(obj, key, {
|
|
15795
15790
|
value,
|
|
@@ -15840,7 +15835,7 @@ function _non_iterable_rest$c() {
|
|
|
15840
15835
|
function _non_iterable_spread$3() {
|
|
15841
15836
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
15842
15837
|
}
|
|
15843
|
-
function _object_spread$
|
|
15838
|
+
function _object_spread$B(target) {
|
|
15844
15839
|
for (var i = 1; i < arguments.length; i++) {
|
|
15845
15840
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
15846
15841
|
var ownKeys2 = Object.keys(source);
|
|
@@ -15850,12 +15845,12 @@ function _object_spread$x(target) {
|
|
|
15850
15845
|
}));
|
|
15851
15846
|
}
|
|
15852
15847
|
ownKeys2.forEach(function(key) {
|
|
15853
|
-
_define_property$
|
|
15848
|
+
_define_property$C(target, key, source[key]);
|
|
15854
15849
|
});
|
|
15855
15850
|
}
|
|
15856
15851
|
return target;
|
|
15857
15852
|
}
|
|
15858
|
-
function ownKeys$
|
|
15853
|
+
function ownKeys$x(object, enumerableOnly) {
|
|
15859
15854
|
var keys = Object.keys(object);
|
|
15860
15855
|
if (Object.getOwnPropertySymbols) {
|
|
15861
15856
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -15868,12 +15863,12 @@ function ownKeys$u(object, enumerableOnly) {
|
|
|
15868
15863
|
}
|
|
15869
15864
|
return keys;
|
|
15870
15865
|
}
|
|
15871
|
-
function _object_spread_props$
|
|
15866
|
+
function _object_spread_props$x(target, source) {
|
|
15872
15867
|
source = source != null ? source : {};
|
|
15873
15868
|
if (Object.getOwnPropertyDescriptors) {
|
|
15874
15869
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
15875
15870
|
} else {
|
|
15876
|
-
ownKeys$
|
|
15871
|
+
ownKeys$x(Object(source)).forEach(function(key) {
|
|
15877
15872
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
15878
15873
|
});
|
|
15879
15874
|
}
|
|
@@ -16003,7 +15998,7 @@ function _ts_generator$2(thisArg, body) {
|
|
|
16003
15998
|
function MultiSelectList(param) {
|
|
16004
15999
|
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;
|
|
16005
16000
|
var isMounted = useIsMounted();
|
|
16006
|
-
var classes = useStyles$
|
|
16001
|
+
var classes = useStyles$u({
|
|
16007
16002
|
theme: tweakStyles
|
|
16008
16003
|
});
|
|
16009
16004
|
var tweakCheckboxStyles = useTweakStyles({
|
|
@@ -16175,13 +16170,13 @@ function MultiSelectList(param) {
|
|
|
16175
16170
|
if (value !== void 0) {
|
|
16176
16171
|
if (keyCursorOn < value.include.length) {
|
|
16177
16172
|
var _value_include_filter;
|
|
16178
|
-
onChange(_object_spread_props$
|
|
16173
|
+
onChange(_object_spread_props$x(_object_spread$B({}, value), {
|
|
16179
16174
|
include: (_value_include_filter = value.include.filter(function(val) {
|
|
16180
16175
|
return getValueId(val) !== getValueId(value.include[keyCursorOn]);
|
|
16181
16176
|
})) !== null && _value_include_filter !== void 0 ? _value_include_filter : []
|
|
16182
16177
|
}));
|
|
16183
16178
|
} else {
|
|
16184
|
-
onChange(_object_spread_props$
|
|
16179
|
+
onChange(_object_spread_props$x(_object_spread$B({}, value), {
|
|
16185
16180
|
include: _to_consumable_array$3(value.include).concat([
|
|
16186
16181
|
unchosenOptions[keyCursorOn - value.include.length]
|
|
16187
16182
|
])
|
|
@@ -16380,7 +16375,7 @@ function MultiSelectList(param) {
|
|
|
16380
16375
|
var shouldShowAllOptionsLabel = hasSelectedOptionsGroup && (isArrayNotEmpty(unchosenOptions) || !isArrayNotEmpty(allOptions));
|
|
16381
16376
|
var shouldShowPreloader = isLoading || isLoadingOptionsOnScroll;
|
|
16382
16377
|
var shouldShowOptionsList = !isLoading && (isArrayNotEmpty(allOptions) || isArrayNotEmpty(chosenValues));
|
|
16383
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
16378
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$x(_object_spread$B({
|
|
16384
16379
|
className: classes.root
|
|
16385
16380
|
}, addDataAttributes$1(data, testId)), {
|
|
16386
16381
|
children: [
|
|
@@ -16396,7 +16391,7 @@ function MultiSelectList(param) {
|
|
|
16396
16391
|
shouldFocusOnMount: true
|
|
16397
16392
|
})
|
|
16398
16393
|
}),
|
|
16399
|
-
shouldShowOptionsList && /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
16394
|
+
shouldShowOptionsList && /* @__PURE__ */ jsxs("div", _object_spread_props$x(_object_spread$B({
|
|
16400
16395
|
className: classes.list
|
|
16401
16396
|
}, addDataTestId(testId, "list")), {
|
|
16402
16397
|
children: [
|
|
@@ -16420,7 +16415,7 @@ function MultiSelectList(param) {
|
|
|
16420
16415
|
data: {
|
|
16421
16416
|
id
|
|
16422
16417
|
},
|
|
16423
|
-
children: /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
16418
|
+
children: /* @__PURE__ */ jsx("div", _object_spread_props$x(_object_spread$B({
|
|
16424
16419
|
className: classes.option
|
|
16425
16420
|
}, addDataAttributes$1({
|
|
16426
16421
|
option: id
|
|
@@ -16453,7 +16448,7 @@ function MultiSelectList(param) {
|
|
|
16453
16448
|
data: {
|
|
16454
16449
|
id
|
|
16455
16450
|
},
|
|
16456
|
-
children: /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
16451
|
+
children: /* @__PURE__ */ jsx("div", _object_spread_props$x(_object_spread$B({
|
|
16457
16452
|
className: classes.option
|
|
16458
16453
|
}, addDataAttributes$1({
|
|
16459
16454
|
option: id
|
|
@@ -16494,7 +16489,7 @@ function MultiSelectList(param) {
|
|
|
16494
16489
|
]
|
|
16495
16490
|
}));
|
|
16496
16491
|
}
|
|
16497
|
-
function _define_property$
|
|
16492
|
+
function _define_property$B(obj, key, value) {
|
|
16498
16493
|
if (key in obj) {
|
|
16499
16494
|
Object.defineProperty(obj, key, {
|
|
16500
16495
|
value,
|
|
@@ -16507,7 +16502,7 @@ function _define_property$x(obj, key, value) {
|
|
|
16507
16502
|
}
|
|
16508
16503
|
return obj;
|
|
16509
16504
|
}
|
|
16510
|
-
function _object_spread$
|
|
16505
|
+
function _object_spread$A(target) {
|
|
16511
16506
|
for (var i = 1; i < arguments.length; i++) {
|
|
16512
16507
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
16513
16508
|
var ownKeys2 = Object.keys(source);
|
|
@@ -16517,15 +16512,15 @@ function _object_spread$w(target) {
|
|
|
16517
16512
|
}));
|
|
16518
16513
|
}
|
|
16519
16514
|
ownKeys2.forEach(function(key) {
|
|
16520
|
-
_define_property$
|
|
16515
|
+
_define_property$B(target, key, source[key]);
|
|
16521
16516
|
});
|
|
16522
16517
|
}
|
|
16523
16518
|
return target;
|
|
16524
16519
|
}
|
|
16525
16520
|
function FilterMultiSelect(props) {
|
|
16526
|
-
return /* @__PURE__ */ jsx(MultiSelectList, _object_spread$
|
|
16521
|
+
return /* @__PURE__ */ jsx(MultiSelectList, _object_spread$A({}, props));
|
|
16527
16522
|
}
|
|
16528
|
-
function _define_property$
|
|
16523
|
+
function _define_property$A(obj, key, value) {
|
|
16529
16524
|
if (key in obj) {
|
|
16530
16525
|
Object.defineProperty(obj, key, {
|
|
16531
16526
|
value,
|
|
@@ -16538,7 +16533,7 @@ function _define_property$w(obj, key, value) {
|
|
|
16538
16533
|
}
|
|
16539
16534
|
return obj;
|
|
16540
16535
|
}
|
|
16541
|
-
function _object_spread$
|
|
16536
|
+
function _object_spread$z(target) {
|
|
16542
16537
|
for (var i = 1; i < arguments.length; i++) {
|
|
16543
16538
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
16544
16539
|
var ownKeys2 = Object.keys(source);
|
|
@@ -16548,19 +16543,19 @@ function _object_spread$v(target) {
|
|
|
16548
16543
|
}));
|
|
16549
16544
|
}
|
|
16550
16545
|
ownKeys2.forEach(function(key) {
|
|
16551
|
-
_define_property$
|
|
16546
|
+
_define_property$A(target, key, source[key]);
|
|
16552
16547
|
});
|
|
16553
16548
|
}
|
|
16554
16549
|
return target;
|
|
16555
16550
|
}
|
|
16556
16551
|
var ITEM_HEIGHT = 40;
|
|
16557
16552
|
var LIST_GAP = 12;
|
|
16558
|
-
var useStyles$
|
|
16553
|
+
var useStyles$t = createThemedStyles("FilterSelect", {
|
|
16559
16554
|
root: {
|
|
16560
16555
|
width: 220,
|
|
16561
16556
|
background: colors.CLASSIC_WHITE
|
|
16562
16557
|
},
|
|
16563
|
-
list: _object_spread$
|
|
16558
|
+
list: _object_spread$z({
|
|
16564
16559
|
paddingTop: LIST_GAP,
|
|
16565
16560
|
padding: [
|
|
16566
16561
|
LIST_GAP,
|
|
@@ -16735,7 +16730,7 @@ function _async_to_generator$1(fn3) {
|
|
|
16735
16730
|
});
|
|
16736
16731
|
};
|
|
16737
16732
|
}
|
|
16738
|
-
function _define_property$
|
|
16733
|
+
function _define_property$z(obj, key, value) {
|
|
16739
16734
|
if (key in obj) {
|
|
16740
16735
|
Object.defineProperty(obj, key, {
|
|
16741
16736
|
value,
|
|
@@ -16786,7 +16781,7 @@ function _non_iterable_rest$b() {
|
|
|
16786
16781
|
function _non_iterable_spread$2() {
|
|
16787
16782
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
16788
16783
|
}
|
|
16789
|
-
function _object_spread$
|
|
16784
|
+
function _object_spread$y(target) {
|
|
16790
16785
|
for (var i = 1; i < arguments.length; i++) {
|
|
16791
16786
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
16792
16787
|
var ownKeys2 = Object.keys(source);
|
|
@@ -16796,12 +16791,12 @@ function _object_spread$u(target) {
|
|
|
16796
16791
|
}));
|
|
16797
16792
|
}
|
|
16798
16793
|
ownKeys2.forEach(function(key) {
|
|
16799
|
-
_define_property$
|
|
16794
|
+
_define_property$z(target, key, source[key]);
|
|
16800
16795
|
});
|
|
16801
16796
|
}
|
|
16802
16797
|
return target;
|
|
16803
16798
|
}
|
|
16804
|
-
function ownKeys$
|
|
16799
|
+
function ownKeys$w(object, enumerableOnly) {
|
|
16805
16800
|
var keys = Object.keys(object);
|
|
16806
16801
|
if (Object.getOwnPropertySymbols) {
|
|
16807
16802
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -16814,12 +16809,12 @@ function ownKeys$t(object, enumerableOnly) {
|
|
|
16814
16809
|
}
|
|
16815
16810
|
return keys;
|
|
16816
16811
|
}
|
|
16817
|
-
function _object_spread_props$
|
|
16812
|
+
function _object_spread_props$w(target, source) {
|
|
16818
16813
|
source = source != null ? source : {};
|
|
16819
16814
|
if (Object.getOwnPropertyDescriptors) {
|
|
16820
16815
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
16821
16816
|
} else {
|
|
16822
|
-
ownKeys$
|
|
16817
|
+
ownKeys$w(Object(source)).forEach(function(key) {
|
|
16823
16818
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
16824
16819
|
});
|
|
16825
16820
|
}
|
|
@@ -16948,7 +16943,7 @@ function _ts_generator$1(thisArg, body) {
|
|
|
16948
16943
|
}
|
|
16949
16944
|
function FilterSelect(param) {
|
|
16950
16945
|
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;
|
|
16951
|
-
var classes = useStyles$
|
|
16946
|
+
var classes = useStyles$t({
|
|
16952
16947
|
theme: tweakStyles
|
|
16953
16948
|
});
|
|
16954
16949
|
var tweakSearchInputStyles = useTweakStyles({
|
|
@@ -17223,7 +17218,7 @@ function FilterSelect(param) {
|
|
|
17223
17218
|
}();
|
|
17224
17219
|
doFetchOptions();
|
|
17225
17220
|
}, []);
|
|
17226
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
17221
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$w(_object_spread$y({
|
|
17227
17222
|
className: classes.root
|
|
17228
17223
|
}, addDataAttributes$1(data, testId)), {
|
|
17229
17224
|
children: [
|
|
@@ -17240,14 +17235,14 @@ function FilterSelect(param) {
|
|
|
17240
17235
|
}),
|
|
17241
17236
|
!isLoading && /* @__PURE__ */ jsxs(Fragment, {
|
|
17242
17237
|
children: [
|
|
17243
|
-
isArrayNotEmpty(allOptions) && /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
17244
|
-
className: clsx(classes.list, _define_property$
|
|
17238
|
+
isArrayNotEmpty(allOptions) && /* @__PURE__ */ jsxs("div", _object_spread_props$w(_object_spread$y({
|
|
17239
|
+
className: clsx(classes.list, _define_property$z({}, classes.withClearButton, hasClearButton))
|
|
17245
17240
|
}, addDataTestId(testId, "list")), {
|
|
17246
17241
|
children: [
|
|
17247
17242
|
isGroupingEnabled && isNotEmpty(value) && /* @__PURE__ */ jsxs(Fragment, {
|
|
17248
17243
|
children: [
|
|
17249
17244
|
/* @__PURE__ */ jsx("div", {
|
|
17250
|
-
className: clsx(classes.label, classes.labelChosen, _define_property$
|
|
17245
|
+
className: clsx(classes.label, classes.labelChosen, _define_property$z({}, classes.withoutTopGap, !isSearchEnabled)),
|
|
17251
17246
|
children: translates.chosen
|
|
17252
17247
|
}),
|
|
17253
17248
|
/* @__PURE__ */ jsxs("div", {
|
|
@@ -17288,7 +17283,7 @@ function FilterSelect(param) {
|
|
|
17288
17283
|
return handleChange(item);
|
|
17289
17284
|
},
|
|
17290
17285
|
children: [
|
|
17291
|
-
/* @__PURE__ */ jsx("div", _object_spread_props$
|
|
17286
|
+
/* @__PURE__ */ jsx("div", _object_spread_props$w(_object_spread$y({
|
|
17292
17287
|
className: classes.option
|
|
17293
17288
|
}, addDataAttributes$1({
|
|
17294
17289
|
id,
|
|
@@ -17326,7 +17321,7 @@ function FilterSelect(param) {
|
|
|
17326
17321
|
children: translates.nothingFound
|
|
17327
17322
|
}),
|
|
17328
17323
|
(hasClearButton || hasFooter) && /* @__PURE__ */ jsxs("div", {
|
|
17329
|
-
className: clsx(classes.panel, _define_property$
|
|
17324
|
+
className: clsx(classes.panel, _define_property$z({}, classes.panelWithFooter, hasFooter)),
|
|
17330
17325
|
children: [
|
|
17331
17326
|
hasFooter && /* @__PURE__ */ jsx("div", {
|
|
17332
17327
|
className: classes.footer,
|
|
@@ -17356,7 +17351,7 @@ function FilterSelect(param) {
|
|
|
17356
17351
|
]
|
|
17357
17352
|
}));
|
|
17358
17353
|
}
|
|
17359
|
-
var useStyles$
|
|
17354
|
+
var useStyles$s = createThemedStyles("FilterWithDates", {
|
|
17360
17355
|
root: {
|
|
17361
17356
|
width: 320,
|
|
17362
17357
|
background: colors.CLASSIC_WHITE,
|
|
@@ -17424,7 +17419,7 @@ function _array_with_holes$a(arr) {
|
|
|
17424
17419
|
if (Array.isArray(arr))
|
|
17425
17420
|
return arr;
|
|
17426
17421
|
}
|
|
17427
|
-
function _define_property$
|
|
17422
|
+
function _define_property$y(obj, key, value) {
|
|
17428
17423
|
if (key in obj) {
|
|
17429
17424
|
Object.defineProperty(obj, key, {
|
|
17430
17425
|
value,
|
|
@@ -17468,7 +17463,7 @@ function _iterable_to_array_limit$a(arr, i) {
|
|
|
17468
17463
|
function _non_iterable_rest$a() {
|
|
17469
17464
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17470
17465
|
}
|
|
17471
|
-
function _object_spread$
|
|
17466
|
+
function _object_spread$x(target) {
|
|
17472
17467
|
for (var i = 1; i < arguments.length; i++) {
|
|
17473
17468
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
17474
17469
|
var ownKeys2 = Object.keys(source);
|
|
@@ -17478,12 +17473,12 @@ function _object_spread$t(target) {
|
|
|
17478
17473
|
}));
|
|
17479
17474
|
}
|
|
17480
17475
|
ownKeys2.forEach(function(key) {
|
|
17481
|
-
_define_property$
|
|
17476
|
+
_define_property$y(target, key, source[key]);
|
|
17482
17477
|
});
|
|
17483
17478
|
}
|
|
17484
17479
|
return target;
|
|
17485
17480
|
}
|
|
17486
|
-
function ownKeys$
|
|
17481
|
+
function ownKeys$v(object, enumerableOnly) {
|
|
17487
17482
|
var keys = Object.keys(object);
|
|
17488
17483
|
if (Object.getOwnPropertySymbols) {
|
|
17489
17484
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -17496,12 +17491,12 @@ function ownKeys$s(object, enumerableOnly) {
|
|
|
17496
17491
|
}
|
|
17497
17492
|
return keys;
|
|
17498
17493
|
}
|
|
17499
|
-
function _object_spread_props$
|
|
17494
|
+
function _object_spread_props$v(target, source) {
|
|
17500
17495
|
source = source != null ? source : {};
|
|
17501
17496
|
if (Object.getOwnPropertyDescriptors) {
|
|
17502
17497
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
17503
17498
|
} else {
|
|
17504
|
-
ownKeys$
|
|
17499
|
+
ownKeys$v(Object(source)).forEach(function(key) {
|
|
17505
17500
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
17506
17501
|
});
|
|
17507
17502
|
}
|
|
@@ -17525,7 +17520,7 @@ function _unsupported_iterable_to_array$a(o, minLen) {
|
|
|
17525
17520
|
}
|
|
17526
17521
|
var FilterWithDates = function(param) {
|
|
17527
17522
|
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;
|
|
17528
|
-
var classes = useStyles$
|
|
17523
|
+
var classes = useStyles$s({
|
|
17529
17524
|
theme: tweakStyles
|
|
17530
17525
|
});
|
|
17531
17526
|
var tweakClearButtonStyles = useTweakStyles({
|
|
@@ -17612,7 +17607,7 @@ var FilterWithDates = function(param) {
|
|
|
17612
17607
|
}
|
|
17613
17608
|
};
|
|
17614
17609
|
var _value_to, _value_from, _ref;
|
|
17615
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
17610
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$v(_object_spread$x({
|
|
17616
17611
|
className: classes.root
|
|
17617
17612
|
}, addDataAttributes(data)), {
|
|
17618
17613
|
children: [
|
|
@@ -17621,7 +17616,7 @@ var FilterWithDates = function(param) {
|
|
|
17621
17616
|
children: [
|
|
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.from,
|
|
17626
17621
|
maxDate: (_value_to = value === null || value === void 0 ? void 0 : value.to) !== null && _value_to !== void 0 ? _value_to : void 0,
|
|
17627
17622
|
label: translates.from,
|
|
@@ -17635,7 +17630,7 @@ var FilterWithDates = function(param) {
|
|
|
17635
17630
|
}),
|
|
17636
17631
|
/* @__PURE__ */ jsx("div", {
|
|
17637
17632
|
className: classes.containerItem,
|
|
17638
|
-
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$
|
|
17633
|
+
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$x({
|
|
17639
17634
|
selectedDate: value === null || value === void 0 ? void 0 : value.to,
|
|
17640
17635
|
label: translates.to,
|
|
17641
17636
|
months: translates.months,
|
|
@@ -17690,7 +17685,7 @@ var FilterWithDates = function(param) {
|
|
|
17690
17685
|
]
|
|
17691
17686
|
}));
|
|
17692
17687
|
};
|
|
17693
|
-
var useStyles$
|
|
17688
|
+
var useStyles$r = createThemedStyles("FilterWithPeriod", {
|
|
17694
17689
|
root: {},
|
|
17695
17690
|
main: {},
|
|
17696
17691
|
picker: {}
|
|
@@ -17715,7 +17710,7 @@ function _array_without_holes$1(arr) {
|
|
|
17715
17710
|
if (Array.isArray(arr))
|
|
17716
17711
|
return _array_like_to_array$9(arr);
|
|
17717
17712
|
}
|
|
17718
|
-
function _define_property$
|
|
17713
|
+
function _define_property$x(obj, key, value) {
|
|
17719
17714
|
if (key in obj) {
|
|
17720
17715
|
Object.defineProperty(obj, key, {
|
|
17721
17716
|
value,
|
|
@@ -17766,7 +17761,7 @@ function _non_iterable_rest$9() {
|
|
|
17766
17761
|
function _non_iterable_spread$1() {
|
|
17767
17762
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17768
17763
|
}
|
|
17769
|
-
function _object_spread$
|
|
17764
|
+
function _object_spread$w(target) {
|
|
17770
17765
|
for (var i = 1; i < arguments.length; i++) {
|
|
17771
17766
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
17772
17767
|
var ownKeys2 = Object.keys(source);
|
|
@@ -17776,12 +17771,12 @@ function _object_spread$s(target) {
|
|
|
17776
17771
|
}));
|
|
17777
17772
|
}
|
|
17778
17773
|
ownKeys2.forEach(function(key) {
|
|
17779
|
-
_define_property$
|
|
17774
|
+
_define_property$x(target, key, source[key]);
|
|
17780
17775
|
});
|
|
17781
17776
|
}
|
|
17782
17777
|
return target;
|
|
17783
17778
|
}
|
|
17784
|
-
function ownKeys$
|
|
17779
|
+
function ownKeys$u(object, enumerableOnly) {
|
|
17785
17780
|
var keys = Object.keys(object);
|
|
17786
17781
|
if (Object.getOwnPropertySymbols) {
|
|
17787
17782
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -17794,12 +17789,12 @@ function ownKeys$r(object, enumerableOnly) {
|
|
|
17794
17789
|
}
|
|
17795
17790
|
return keys;
|
|
17796
17791
|
}
|
|
17797
|
-
function _object_spread_props$
|
|
17792
|
+
function _object_spread_props$u(target, source) {
|
|
17798
17793
|
source = source != null ? source : {};
|
|
17799
17794
|
if (Object.getOwnPropertyDescriptors) {
|
|
17800
17795
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
17801
17796
|
} else {
|
|
17802
|
-
ownKeys$
|
|
17797
|
+
ownKeys$u(Object(source)).forEach(function(key) {
|
|
17803
17798
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
17804
17799
|
});
|
|
17805
17800
|
}
|
|
@@ -17826,7 +17821,7 @@ function _unsupported_iterable_to_array$9(o, minLen) {
|
|
|
17826
17821
|
}
|
|
17827
17822
|
var FilterWithPeriod = function(param) {
|
|
17828
17823
|
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;
|
|
17829
|
-
var classes = useStyles$
|
|
17824
|
+
var classes = useStyles$r({
|
|
17830
17825
|
theme: tweakStyles
|
|
17831
17826
|
});
|
|
17832
17827
|
var translates = useMemo(function() {
|
|
@@ -17839,7 +17834,7 @@ var FilterWithPeriod = function(param) {
|
|
|
17839
17834
|
var _useState1 = _sliced_to_array$9(useState((value === null || value === void 0 ? void 0 : value.periodType) === "CUSTOM"), 2), isDatePickerShown = _useState1[0], setIsDatePickerShown = _useState1[1];
|
|
17840
17835
|
var _useState2 = _sliced_to_array$9(useState(value), 2), period = _useState2[0], setPeriod = _useState2[1];
|
|
17841
17836
|
var periodGetters = useMemo(function() {
|
|
17842
|
-
var result = _object_spread$
|
|
17837
|
+
var result = _object_spread$w({}, PERIODS_GETTERS);
|
|
17843
17838
|
periods === null || periods === void 0 ? void 0 : periods.forEach(function(p) {
|
|
17844
17839
|
if (Array.isArray(p)) {
|
|
17845
17840
|
result[p[0]] = p[1];
|
|
@@ -17885,7 +17880,7 @@ var FilterWithPeriod = function(param) {
|
|
|
17885
17880
|
if (onClose !== void 0) {
|
|
17886
17881
|
onClose();
|
|
17887
17882
|
}
|
|
17888
|
-
onChange(_object_spread_props$
|
|
17883
|
+
onChange(_object_spread_props$u(_object_spread$w({}, p), {
|
|
17889
17884
|
label: getPeriodTranslate(periodType)
|
|
17890
17885
|
}));
|
|
17891
17886
|
}
|
|
@@ -17905,7 +17900,7 @@ var FilterWithPeriod = function(param) {
|
|
|
17905
17900
|
};
|
|
17906
17901
|
var handleCustomDateChange = function(val) {
|
|
17907
17902
|
if (val.from || val.to) {
|
|
17908
|
-
onChange(_object_spread_props$
|
|
17903
|
+
onChange(_object_spread_props$u(_object_spread$w({}, val), {
|
|
17909
17904
|
periodType: "CUSTOM"
|
|
17910
17905
|
}));
|
|
17911
17906
|
} else {
|
|
@@ -17993,7 +17988,7 @@ var isPeriodValue = function(value) {
|
|
|
17993
17988
|
var isMultiSelectValue = function(value) {
|
|
17994
17989
|
return Array.isArray(value === null || value === void 0 ? void 0 : value.include);
|
|
17995
17990
|
};
|
|
17996
|
-
function _define_property$
|
|
17991
|
+
function _define_property$w(obj, key, value) {
|
|
17997
17992
|
if (key in obj) {
|
|
17998
17993
|
Object.defineProperty(obj, key, {
|
|
17999
17994
|
value,
|
|
@@ -18006,7 +18001,7 @@ function _define_property$s(obj, key, value) {
|
|
|
18006
18001
|
}
|
|
18007
18002
|
return obj;
|
|
18008
18003
|
}
|
|
18009
|
-
function _object_spread$
|
|
18004
|
+
function _object_spread$v(target) {
|
|
18010
18005
|
for (var i = 1; i < arguments.length; i++) {
|
|
18011
18006
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
18012
18007
|
var ownKeys2 = Object.keys(source);
|
|
@@ -18016,12 +18011,12 @@ function _object_spread$r(target) {
|
|
|
18016
18011
|
}));
|
|
18017
18012
|
}
|
|
18018
18013
|
ownKeys2.forEach(function(key) {
|
|
18019
|
-
_define_property$
|
|
18014
|
+
_define_property$w(target, key, source[key]);
|
|
18020
18015
|
});
|
|
18021
18016
|
}
|
|
18022
18017
|
return target;
|
|
18023
18018
|
}
|
|
18024
|
-
function ownKeys$
|
|
18019
|
+
function ownKeys$t(object, enumerableOnly) {
|
|
18025
18020
|
var keys = Object.keys(object);
|
|
18026
18021
|
if (Object.getOwnPropertySymbols) {
|
|
18027
18022
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -18034,12 +18029,12 @@ function ownKeys$q(object, enumerableOnly) {
|
|
|
18034
18029
|
}
|
|
18035
18030
|
return keys;
|
|
18036
18031
|
}
|
|
18037
|
-
function _object_spread_props$
|
|
18032
|
+
function _object_spread_props$t(target, source) {
|
|
18038
18033
|
source = source != null ? source : {};
|
|
18039
18034
|
if (Object.getOwnPropertyDescriptors) {
|
|
18040
18035
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
18041
18036
|
} else {
|
|
18042
|
-
ownKeys$
|
|
18037
|
+
ownKeys$t(Object(source)).forEach(function(key) {
|
|
18043
18038
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
18044
18039
|
});
|
|
18045
18040
|
}
|
|
@@ -18057,7 +18052,7 @@ function Filter(props) {
|
|
|
18057
18052
|
filter2.locale
|
|
18058
18053
|
]);
|
|
18059
18054
|
if (filter2.type === "select") {
|
|
18060
|
-
return /* @__PURE__ */ jsx(FilterSelect, _object_spread$
|
|
18055
|
+
return /* @__PURE__ */ jsx(FilterSelect, _object_spread$v({
|
|
18061
18056
|
value,
|
|
18062
18057
|
onChange,
|
|
18063
18058
|
onClose,
|
|
@@ -18067,8 +18062,8 @@ function Filter(props) {
|
|
|
18067
18062
|
}, filter2));
|
|
18068
18063
|
}
|
|
18069
18064
|
if (filter2.type === "dateRange") {
|
|
18070
|
-
var preparedValue = isPeriodValue(value) ? _object_spread$
|
|
18071
|
-
return /* @__PURE__ */ jsx(FilterWithPeriod, _object_spread$
|
|
18065
|
+
var preparedValue = isPeriodValue(value) ? _object_spread$v({}, value) : void 0;
|
|
18066
|
+
return /* @__PURE__ */ jsx(FilterWithPeriod, _object_spread$v({
|
|
18072
18067
|
value: preparedValue,
|
|
18073
18068
|
onChange,
|
|
18074
18069
|
onClose,
|
|
@@ -18079,10 +18074,10 @@ function Filter(props) {
|
|
|
18079
18074
|
}
|
|
18080
18075
|
if (filter2.type === "dateRangeWithoutPeriod") {
|
|
18081
18076
|
var preparedValue1 = isDatePeriodValue(value) ? value : void 0;
|
|
18082
|
-
return /* @__PURE__ */ jsx(FilterWithDates, _object_spread$
|
|
18077
|
+
return /* @__PURE__ */ jsx(FilterWithDates, _object_spread$v({
|
|
18083
18078
|
value: preparedValue1,
|
|
18084
18079
|
onChange: function(v) {
|
|
18085
|
-
return onChange(_object_spread_props$
|
|
18080
|
+
return onChange(_object_spread_props$t(_object_spread$v({}, v), {
|
|
18086
18081
|
periodType: "CUSTOM"
|
|
18087
18082
|
}));
|
|
18088
18083
|
},
|
|
@@ -18096,7 +18091,7 @@ function Filter(props) {
|
|
|
18096
18091
|
}
|
|
18097
18092
|
if (filter2.type === "multiSelect") {
|
|
18098
18093
|
var preparedValue2 = isMultiSelectValue(value) ? value : void 0;
|
|
18099
|
-
return /* @__PURE__ */ jsx(FilterMultiSelect, _object_spread$
|
|
18094
|
+
return /* @__PURE__ */ jsx(FilterMultiSelect, _object_spread$v({
|
|
18100
18095
|
value: preparedValue2,
|
|
18101
18096
|
onChange,
|
|
18102
18097
|
onClose,
|
|
@@ -18107,7 +18102,7 @@ function Filter(props) {
|
|
|
18107
18102
|
}
|
|
18108
18103
|
if (filter2.type === "interval") {
|
|
18109
18104
|
var preparedValue3 = Array.isArray(value) ? value : void 0;
|
|
18110
|
-
return /* @__PURE__ */ jsx(FilterInterval, _object_spread$
|
|
18105
|
+
return /* @__PURE__ */ jsx(FilterInterval, _object_spread$v({
|
|
18111
18106
|
value: preparedValue3,
|
|
18112
18107
|
onChange,
|
|
18113
18108
|
localeKey: translatesLocaleKey,
|
|
@@ -18118,7 +18113,7 @@ function Filter(props) {
|
|
|
18118
18113
|
}
|
|
18119
18114
|
if (filter2.type === "custom" && filter2.component) {
|
|
18120
18115
|
var Component = filter2.component;
|
|
18121
|
-
return /* @__PURE__ */ jsx(Component, _object_spread_props$
|
|
18116
|
+
return /* @__PURE__ */ jsx(Component, _object_spread_props$t(_object_spread$v({}, props), {
|
|
18122
18117
|
filter: filter2,
|
|
18123
18118
|
testId: getTestId(testId, "dropdown")
|
|
18124
18119
|
}));
|
|
@@ -18128,7 +18123,7 @@ function Filter(props) {
|
|
|
18128
18123
|
}
|
|
18129
18124
|
return null;
|
|
18130
18125
|
}
|
|
18131
|
-
var useStyles$
|
|
18126
|
+
var useStyles$q = createThemedStyles("FiltersPaneSearch", {
|
|
18132
18127
|
root: {
|
|
18133
18128
|
display: "flex",
|
|
18134
18129
|
position: "relative",
|
|
@@ -18242,7 +18237,7 @@ function _array_with_holes$8(arr) {
|
|
|
18242
18237
|
if (Array.isArray(arr))
|
|
18243
18238
|
return arr;
|
|
18244
18239
|
}
|
|
18245
|
-
function _define_property$
|
|
18240
|
+
function _define_property$v(obj, key, value) {
|
|
18246
18241
|
if (key in obj) {
|
|
18247
18242
|
Object.defineProperty(obj, key, {
|
|
18248
18243
|
value,
|
|
@@ -18286,7 +18281,7 @@ function _iterable_to_array_limit$8(arr, i) {
|
|
|
18286
18281
|
function _non_iterable_rest$8() {
|
|
18287
18282
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
18288
18283
|
}
|
|
18289
|
-
function _object_spread$
|
|
18284
|
+
function _object_spread$u(target) {
|
|
18290
18285
|
for (var i = 1; i < arguments.length; i++) {
|
|
18291
18286
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
18292
18287
|
var ownKeys2 = Object.keys(source);
|
|
@@ -18296,12 +18291,12 @@ function _object_spread$q(target) {
|
|
|
18296
18291
|
}));
|
|
18297
18292
|
}
|
|
18298
18293
|
ownKeys2.forEach(function(key) {
|
|
18299
|
-
_define_property$
|
|
18294
|
+
_define_property$v(target, key, source[key]);
|
|
18300
18295
|
});
|
|
18301
18296
|
}
|
|
18302
18297
|
return target;
|
|
18303
18298
|
}
|
|
18304
|
-
function ownKeys$
|
|
18299
|
+
function ownKeys$s(object, enumerableOnly) {
|
|
18305
18300
|
var keys = Object.keys(object);
|
|
18306
18301
|
if (Object.getOwnPropertySymbols) {
|
|
18307
18302
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -18314,12 +18309,12 @@ function ownKeys$p(object, enumerableOnly) {
|
|
|
18314
18309
|
}
|
|
18315
18310
|
return keys;
|
|
18316
18311
|
}
|
|
18317
|
-
function _object_spread_props$
|
|
18312
|
+
function _object_spread_props$s(target, source) {
|
|
18318
18313
|
source = source != null ? source : {};
|
|
18319
18314
|
if (Object.getOwnPropertyDescriptors) {
|
|
18320
18315
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
18321
18316
|
} else {
|
|
18322
|
-
ownKeys$
|
|
18317
|
+
ownKeys$s(Object(source)).forEach(function(key) {
|
|
18323
18318
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
18324
18319
|
});
|
|
18325
18320
|
}
|
|
@@ -18342,8 +18337,8 @@ function _unsupported_iterable_to_array$8(o, minLen) {
|
|
|
18342
18337
|
return _array_like_to_array$8(o, minLen);
|
|
18343
18338
|
}
|
|
18344
18339
|
function FiltersPaneSearch(param) {
|
|
18345
|
-
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;
|
|
18346
|
-
var classes = useStyles$
|
|
18340
|
+
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;
|
|
18341
|
+
var classes = useStyles$q({
|
|
18347
18342
|
theme: tweakStyles
|
|
18348
18343
|
});
|
|
18349
18344
|
var tweakSearchInputStyles = useTweakStyles({
|
|
@@ -18384,8 +18379,8 @@ function FiltersPaneSearch(param) {
|
|
|
18384
18379
|
setIsOpen(false);
|
|
18385
18380
|
};
|
|
18386
18381
|
var _obj2;
|
|
18387
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
18388
|
-
className: clsx(classes.root, (_obj2 = {}, _define_property$
|
|
18382
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$s(_object_spread$u({
|
|
18383
|
+
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, isArrayLikeNotEmpty(value)), _obj2)),
|
|
18389
18384
|
ref: refRoot
|
|
18390
18385
|
}, addDataAttributes$1(data, testId)), {
|
|
18391
18386
|
children: [
|
|
@@ -18402,12 +18397,13 @@ function FiltersPaneSearch(param) {
|
|
|
18402
18397
|
},
|
|
18403
18398
|
testId: getTestId(testId, "input"),
|
|
18404
18399
|
maxLength,
|
|
18405
|
-
isDisabled
|
|
18400
|
+
isDisabled,
|
|
18401
|
+
isAutoSized
|
|
18406
18402
|
}),
|
|
18407
18403
|
/* @__PURE__ */ jsxs("div", {
|
|
18408
18404
|
className: classes.selectWrapper,
|
|
18409
18405
|
children: [
|
|
18410
|
-
isArrayNotEmpty(fields) && /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
18406
|
+
isArrayNotEmpty(fields) && /* @__PURE__ */ jsxs("div", _object_spread_props$s(_object_spread$u({
|
|
18411
18407
|
className: classes.selectBlock,
|
|
18412
18408
|
onClick: !isDisabled ? function() {
|
|
18413
18409
|
return setIsOpen(!isOpen);
|
|
@@ -18415,7 +18411,7 @@ function FiltersPaneSearch(param) {
|
|
|
18415
18411
|
}, addDataTestId(testId, "select")), {
|
|
18416
18412
|
children: [
|
|
18417
18413
|
/* @__PURE__ */ jsx("div", {
|
|
18418
|
-
className: clsx(classes.selectLabel, _define_property$
|
|
18414
|
+
className: clsx(classes.selectLabel, _define_property$v({}, classes.active, isNotEmpty(field))),
|
|
18419
18415
|
children: isNotEmpty(field) ? getValueView === null || getValueView === void 0 ? void 0 : getValueView(field) : translates.displayedFields
|
|
18420
18416
|
}),
|
|
18421
18417
|
/* @__PURE__ */ jsx("div", {
|
|
@@ -18448,7 +18444,7 @@ function FiltersPaneSearch(param) {
|
|
|
18448
18444
|
]
|
|
18449
18445
|
}));
|
|
18450
18446
|
}
|
|
18451
|
-
var useStyles$
|
|
18447
|
+
var useStyles$p = createThemedStyles("FilterValueView", {
|
|
18452
18448
|
text: {
|
|
18453
18449
|
overflow: "hidden",
|
|
18454
18450
|
textOverflow: "ellipsis",
|
|
@@ -18467,7 +18463,7 @@ function _instanceof$1(left2, right2) {
|
|
|
18467
18463
|
}
|
|
18468
18464
|
function FilterValueView(param) {
|
|
18469
18465
|
var value = param.value, filter2 = param.filter, locale = param.locale, localeKey = param.localeKey, tweakStyles = param.tweakStyles;
|
|
18470
|
-
var classes = useStyles$
|
|
18466
|
+
var classes = useStyles$p({
|
|
18471
18467
|
theme: tweakStyles
|
|
18472
18468
|
});
|
|
18473
18469
|
var _filter_localeKey;
|
|
@@ -18632,7 +18628,7 @@ var isContentNotEmpty = function(value) {
|
|
|
18632
18628
|
}
|
|
18633
18629
|
return isNotEmpty(value);
|
|
18634
18630
|
};
|
|
18635
|
-
var useStyles$
|
|
18631
|
+
var useStyles$o = createThemedStyles("FilterWrapper", {
|
|
18636
18632
|
root: {
|
|
18637
18633
|
position: "relative",
|
|
18638
18634
|
transition: animations.defaultTransition,
|
|
@@ -18725,7 +18721,7 @@ var useStyles$m = createThemedStyles("FilterWrapper", {
|
|
|
18725
18721
|
minWidth: 0
|
|
18726
18722
|
}
|
|
18727
18723
|
});
|
|
18728
|
-
function _define_property$
|
|
18724
|
+
function _define_property$u(obj, key, value) {
|
|
18729
18725
|
if (key in obj) {
|
|
18730
18726
|
Object.defineProperty(obj, key, {
|
|
18731
18727
|
value,
|
|
@@ -18738,7 +18734,7 @@ function _define_property$q(obj, key, value) {
|
|
|
18738
18734
|
}
|
|
18739
18735
|
return obj;
|
|
18740
18736
|
}
|
|
18741
|
-
function _object_spread$
|
|
18737
|
+
function _object_spread$t(target) {
|
|
18742
18738
|
for (var i = 1; i < arguments.length; i++) {
|
|
18743
18739
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
18744
18740
|
var ownKeys2 = Object.keys(source);
|
|
@@ -18748,12 +18744,12 @@ function _object_spread$p(target) {
|
|
|
18748
18744
|
}));
|
|
18749
18745
|
}
|
|
18750
18746
|
ownKeys2.forEach(function(key) {
|
|
18751
|
-
_define_property$
|
|
18747
|
+
_define_property$u(target, key, source[key]);
|
|
18752
18748
|
});
|
|
18753
18749
|
}
|
|
18754
18750
|
return target;
|
|
18755
18751
|
}
|
|
18756
|
-
function ownKeys$
|
|
18752
|
+
function ownKeys$r(object, enumerableOnly) {
|
|
18757
18753
|
var keys = Object.keys(object);
|
|
18758
18754
|
if (Object.getOwnPropertySymbols) {
|
|
18759
18755
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -18766,12 +18762,12 @@ function ownKeys$o(object, enumerableOnly) {
|
|
|
18766
18762
|
}
|
|
18767
18763
|
return keys;
|
|
18768
18764
|
}
|
|
18769
|
-
function _object_spread_props$
|
|
18765
|
+
function _object_spread_props$r(target, source) {
|
|
18770
18766
|
source = source != null ? source : {};
|
|
18771
18767
|
if (Object.getOwnPropertyDescriptors) {
|
|
18772
18768
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
18773
18769
|
} else {
|
|
18774
|
-
ownKeys$
|
|
18770
|
+
ownKeys$r(Object(source)).forEach(function(key) {
|
|
18775
18771
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
18776
18772
|
});
|
|
18777
18773
|
}
|
|
@@ -18779,7 +18775,7 @@ function _object_spread_props$o(target, source) {
|
|
|
18779
18775
|
}
|
|
18780
18776
|
function FilterWrapper(param) {
|
|
18781
18777
|
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;
|
|
18782
|
-
var classes = useStyles$
|
|
18778
|
+
var classes = useStyles$o({
|
|
18783
18779
|
theme: tweakStyles
|
|
18784
18780
|
});
|
|
18785
18781
|
var tweakWithPopupStyles = useTweakStyles({
|
|
@@ -18823,12 +18819,12 @@ function FilterWrapper(param) {
|
|
|
18823
18819
|
trigger: function(param2) {
|
|
18824
18820
|
var isActive = param2.triggerProps.isActive, referenceProps = param2.referenceProps;
|
|
18825
18821
|
var _obj2;
|
|
18826
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
18827
|
-
className: clsx(classes.root, (_obj2 = {}, _define_property$
|
|
18822
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$r(_object_spread$t({
|
|
18823
|
+
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))
|
|
18828
18824
|
}, addDataAttributes$1(data, testId), referenceProps), {
|
|
18829
18825
|
children: /* @__PURE__ */ jsxs("div", {
|
|
18830
18826
|
onClick: handleLabelClick,
|
|
18831
|
-
className: clsx(classes.item, _define_property$
|
|
18827
|
+
className: clsx(classes.item, _define_property$u({}, classes.booleanItem, isBoolean)),
|
|
18832
18828
|
children: [
|
|
18833
18829
|
/* @__PURE__ */ jsx("div", {
|
|
18834
18830
|
className: classes.name,
|
|
@@ -18846,7 +18842,7 @@ function FilterWrapper(param) {
|
|
|
18846
18842
|
})
|
|
18847
18843
|
}),
|
|
18848
18844
|
!isBoolean && !hasClearIcon && /* @__PURE__ */ jsx("div", {
|
|
18849
|
-
className: clsx(classes.iconContainer, classes.chevronIcon, _define_property$
|
|
18845
|
+
className: clsx(classes.iconContainer, classes.chevronIcon, _define_property$u({}, classes.open, isActive)),
|
|
18850
18846
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
18851
18847
|
type: "chevron-down"
|
|
18852
18848
|
})
|
|
@@ -18876,7 +18872,7 @@ function FilterWrapper(param) {
|
|
|
18876
18872
|
}
|
|
18877
18873
|
});
|
|
18878
18874
|
}
|
|
18879
|
-
function _define_property$
|
|
18875
|
+
function _define_property$t(obj, key, value) {
|
|
18880
18876
|
if (key in obj) {
|
|
18881
18877
|
Object.defineProperty(obj, key, {
|
|
18882
18878
|
value,
|
|
@@ -18889,7 +18885,7 @@ function _define_property$p(obj, key, value) {
|
|
|
18889
18885
|
}
|
|
18890
18886
|
return obj;
|
|
18891
18887
|
}
|
|
18892
|
-
function _object_spread$
|
|
18888
|
+
function _object_spread$s(target) {
|
|
18893
18889
|
for (var i = 1; i < arguments.length; i++) {
|
|
18894
18890
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
18895
18891
|
var ownKeys2 = Object.keys(source);
|
|
@@ -18899,12 +18895,12 @@ function _object_spread$o(target) {
|
|
|
18899
18895
|
}));
|
|
18900
18896
|
}
|
|
18901
18897
|
ownKeys2.forEach(function(key) {
|
|
18902
|
-
_define_property$
|
|
18898
|
+
_define_property$t(target, key, source[key]);
|
|
18903
18899
|
});
|
|
18904
18900
|
}
|
|
18905
18901
|
return target;
|
|
18906
18902
|
}
|
|
18907
|
-
function ownKeys$
|
|
18903
|
+
function ownKeys$q(object, enumerableOnly) {
|
|
18908
18904
|
var keys = Object.keys(object);
|
|
18909
18905
|
if (Object.getOwnPropertySymbols) {
|
|
18910
18906
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -18917,12 +18913,12 @@ function ownKeys$n(object, enumerableOnly) {
|
|
|
18917
18913
|
}
|
|
18918
18914
|
return keys;
|
|
18919
18915
|
}
|
|
18920
|
-
function _object_spread_props$
|
|
18916
|
+
function _object_spread_props$q(target, source) {
|
|
18921
18917
|
source = source != null ? source : {};
|
|
18922
18918
|
if (Object.getOwnPropertyDescriptors) {
|
|
18923
18919
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
18924
18920
|
} else {
|
|
18925
|
-
ownKeys$
|
|
18921
|
+
ownKeys$q(Object(source)).forEach(function(key) {
|
|
18926
18922
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
18927
18923
|
});
|
|
18928
18924
|
}
|
|
@@ -18930,7 +18926,7 @@ function _object_spread_props$n(target, source) {
|
|
|
18930
18926
|
}
|
|
18931
18927
|
function FiltersPane(param) {
|
|
18932
18928
|
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;
|
|
18933
|
-
var classes = useStyles$
|
|
18929
|
+
var classes = useStyles$w({
|
|
18934
18930
|
theme: tweakStyles
|
|
18935
18931
|
});
|
|
18936
18932
|
var tweakClearButtonStyles = useTweakStyles({
|
|
@@ -18977,11 +18973,11 @@ function FiltersPane(param) {
|
|
|
18977
18973
|
})
|
|
18978
18974
|
});
|
|
18979
18975
|
var _search_localeKey, _search_localeKey1, _search_isDisabled;
|
|
18980
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
18976
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$q(_object_spread$s({
|
|
18981
18977
|
className: classes.root
|
|
18982
18978
|
}, addDataAttributes$1(data, testId)), {
|
|
18983
18979
|
children: [
|
|
18984
|
-
onSettingsButtonClick !== void 0 && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
18980
|
+
onSettingsButtonClick !== void 0 && /* @__PURE__ */ jsx("div", _object_spread_props$q(_object_spread$s({
|
|
18985
18981
|
className: classes.settings,
|
|
18986
18982
|
tabIndex: 0
|
|
18987
18983
|
}, addDataTestId(testId, "settings-button")), {
|
|
@@ -18991,7 +18987,7 @@ function FiltersPane(param) {
|
|
|
18991
18987
|
children: renderIcon(settingsIcon)
|
|
18992
18988
|
})
|
|
18993
18989
|
})),
|
|
18994
|
-
search2 !== void 0 && /* @__PURE__ */ jsx(FiltersPaneSearch, _object_spread_props$
|
|
18990
|
+
search2 !== void 0 && /* @__PURE__ */ jsx(FiltersPaneSearch, _object_spread_props$q(_object_spread$s({}, search2), {
|
|
18995
18991
|
locale: getLocale$1((_search_localeKey = search2.localeKey) !== null && _search_localeKey !== void 0 ? _search_localeKey : localeKey, search2.locale, locale),
|
|
18996
18992
|
localeKey: (_search_localeKey1 = search2.localeKey) !== null && _search_localeKey1 !== void 0 ? _search_localeKey1 : localeKey,
|
|
18997
18993
|
isDisabled: (_search_isDisabled = search2.isDisabled) !== null && _search_isDisabled !== void 0 ? _search_isDisabled : isDisabled,
|
|
@@ -19015,7 +19011,7 @@ function FiltersPane(param) {
|
|
|
19015
19011
|
locale,
|
|
19016
19012
|
localeKey,
|
|
19017
19013
|
onChange: function(value) {
|
|
19018
|
-
return onChangeFilters(_object_spread_props$
|
|
19014
|
+
return onChangeFilters(_object_spread_props$q(_object_spread$s({}, values), _define_property$t({}, filterKey, value)));
|
|
19019
19015
|
},
|
|
19020
19016
|
value: currentValue,
|
|
19021
19017
|
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) {
|
|
@@ -25160,7 +25156,7 @@ var customFlags = {
|
|
|
25160
25156
|
*/
|
|
25161
25157
|
OS
|
|
25162
25158
|
};
|
|
25163
|
-
var useStyles$
|
|
25159
|
+
var useStyles$n = createThemedStyles("Flag", {
|
|
25164
25160
|
root: {
|
|
25165
25161
|
display: "flex",
|
|
25166
25162
|
width: "100%",
|
|
@@ -25182,7 +25178,7 @@ var useStyles$l = createThemedStyles("Flag", {
|
|
|
25182
25178
|
});
|
|
25183
25179
|
var Flag = function(param) {
|
|
25184
25180
|
var _param_countryCode = param.countryCode, countryCode = _param_countryCode === void 0 ? "" : _param_countryCode, tweakStyles = param.tweakStyles;
|
|
25185
|
-
var classes = useStyles$
|
|
25181
|
+
var classes = useStyles$n({
|
|
25186
25182
|
theme: tweakStyles
|
|
25187
25183
|
});
|
|
25188
25184
|
var countryFlagKey = countryCode.toUpperCase();
|
|
@@ -25229,7 +25225,7 @@ var TableRenders = {
|
|
|
25229
25225
|
Cell: "div"
|
|
25230
25226
|
}
|
|
25231
25227
|
};
|
|
25232
|
-
var useStyles$
|
|
25228
|
+
var useStyles$m = createThemedStyles("Skeleton", {
|
|
25233
25229
|
root: {
|
|
25234
25230
|
display: "flex",
|
|
25235
25231
|
width: "100%",
|
|
@@ -25265,7 +25261,7 @@ var useStyles$k = createThemedStyles("Skeleton", {
|
|
|
25265
25261
|
});
|
|
25266
25262
|
var Skeleton = function(param) {
|
|
25267
25263
|
var height = param.height, tweakStyles = param.tweakStyles;
|
|
25268
|
-
var classes = useStyles$
|
|
25264
|
+
var classes = useStyles$m({
|
|
25269
25265
|
theme: tweakStyles
|
|
25270
25266
|
});
|
|
25271
25267
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -25289,23 +25285,75 @@ var formatCellContent = function(value, config) {
|
|
|
25289
25285
|
var _config_dateFormat;
|
|
25290
25286
|
return _instanceof(value, Date) ? format(value, (_config_dateFormat = config === null || config === void 0 ? void 0 : config.dateFormat) !== null && _config_dateFormat !== void 0 ? _config_dateFormat : DEFAULT_DATE_FORMAT) : String(value);
|
|
25291
25287
|
};
|
|
25288
|
+
function _define_property$s(obj, key, value) {
|
|
25289
|
+
if (key in obj) {
|
|
25290
|
+
Object.defineProperty(obj, key, {
|
|
25291
|
+
value,
|
|
25292
|
+
enumerable: true,
|
|
25293
|
+
configurable: true,
|
|
25294
|
+
writable: true
|
|
25295
|
+
});
|
|
25296
|
+
} else {
|
|
25297
|
+
obj[key] = value;
|
|
25298
|
+
}
|
|
25299
|
+
return obj;
|
|
25300
|
+
}
|
|
25301
|
+
function _object_spread$r(target) {
|
|
25302
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
25303
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
25304
|
+
var ownKeys2 = Object.keys(source);
|
|
25305
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
25306
|
+
ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
25307
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
25308
|
+
}));
|
|
25309
|
+
}
|
|
25310
|
+
ownKeys2.forEach(function(key) {
|
|
25311
|
+
_define_property$s(target, key, source[key]);
|
|
25312
|
+
});
|
|
25313
|
+
}
|
|
25314
|
+
return target;
|
|
25315
|
+
}
|
|
25316
|
+
function ownKeys$p(object, enumerableOnly) {
|
|
25317
|
+
var keys = Object.keys(object);
|
|
25318
|
+
if (Object.getOwnPropertySymbols) {
|
|
25319
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
25320
|
+
if (enumerableOnly) {
|
|
25321
|
+
symbols = symbols.filter(function(sym) {
|
|
25322
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
25323
|
+
});
|
|
25324
|
+
}
|
|
25325
|
+
keys.push.apply(keys, symbols);
|
|
25326
|
+
}
|
|
25327
|
+
return keys;
|
|
25328
|
+
}
|
|
25329
|
+
function _object_spread_props$p(target, source) {
|
|
25330
|
+
source = source != null ? source : {};
|
|
25331
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
25332
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
25333
|
+
} else {
|
|
25334
|
+
ownKeys$p(Object(source)).forEach(function(key) {
|
|
25335
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
25336
|
+
});
|
|
25337
|
+
}
|
|
25338
|
+
return target;
|
|
25339
|
+
}
|
|
25292
25340
|
var STICKY_SHADOW_PADDING = 12;
|
|
25293
|
-
var useStyles$
|
|
25341
|
+
var useStyles$l = createThemedStyles("FlexibleTable", {
|
|
25342
|
+
flexibleTableWrapper: {},
|
|
25294
25343
|
root: {
|
|
25295
25344
|
width: "100%",
|
|
25296
25345
|
position: "relative",
|
|
25297
25346
|
borderCollapse: "separate",
|
|
25298
25347
|
borderSpacing: 0
|
|
25299
25348
|
},
|
|
25300
|
-
scroll: {
|
|
25301
|
-
overflow: "auto",
|
|
25349
|
+
scroll: _object_spread_props$p(_object_spread$r({}, helpers.withScrollBar), {
|
|
25302
25350
|
/*
|
|
25303
25351
|
Чтобы сделать таблицу на всю высоту проставьте
|
|
25304
25352
|
height у родителя таблицы у себя в проекте.
|
|
25305
25353
|
Например: height: calc(100vh -{высота шапки}px)
|
|
25306
25354
|
*/
|
|
25307
25355
|
maxHeight: "100%"
|
|
25308
|
-
},
|
|
25356
|
+
}),
|
|
25309
25357
|
head: {},
|
|
25310
25358
|
body: {},
|
|
25311
25359
|
loaderRow: {},
|
|
@@ -25377,7 +25425,7 @@ var useStyles$j = createThemedStyles("FlexibleTable", {
|
|
|
25377
25425
|
nothingFoundRow: {},
|
|
25378
25426
|
nothingFound: {}
|
|
25379
25427
|
});
|
|
25380
|
-
function _define_property$
|
|
25428
|
+
function _define_property$r(obj, key, value) {
|
|
25381
25429
|
if (key in obj) {
|
|
25382
25430
|
Object.defineProperty(obj, key, {
|
|
25383
25431
|
value,
|
|
@@ -25390,7 +25438,7 @@ function _define_property$o(obj, key, value) {
|
|
|
25390
25438
|
}
|
|
25391
25439
|
return obj;
|
|
25392
25440
|
}
|
|
25393
|
-
function _object_spread$
|
|
25441
|
+
function _object_spread$q(target) {
|
|
25394
25442
|
for (var i = 1; i < arguments.length; i++) {
|
|
25395
25443
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
25396
25444
|
var ownKeys2 = Object.keys(source);
|
|
@@ -25400,12 +25448,12 @@ function _object_spread$n(target) {
|
|
|
25400
25448
|
}));
|
|
25401
25449
|
}
|
|
25402
25450
|
ownKeys2.forEach(function(key) {
|
|
25403
|
-
_define_property$
|
|
25451
|
+
_define_property$r(target, key, source[key]);
|
|
25404
25452
|
});
|
|
25405
25453
|
}
|
|
25406
25454
|
return target;
|
|
25407
25455
|
}
|
|
25408
|
-
function ownKeys$
|
|
25456
|
+
function ownKeys$o(object, enumerableOnly) {
|
|
25409
25457
|
var keys = Object.keys(object);
|
|
25410
25458
|
if (Object.getOwnPropertySymbols) {
|
|
25411
25459
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -25418,18 +25466,18 @@ function ownKeys$m(object, enumerableOnly) {
|
|
|
25418
25466
|
}
|
|
25419
25467
|
return keys;
|
|
25420
25468
|
}
|
|
25421
|
-
function _object_spread_props$
|
|
25469
|
+
function _object_spread_props$o(target, source) {
|
|
25422
25470
|
source = source != null ? source : {};
|
|
25423
25471
|
if (Object.getOwnPropertyDescriptors) {
|
|
25424
25472
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
25425
25473
|
} else {
|
|
25426
|
-
ownKeys$
|
|
25474
|
+
ownKeys$o(Object(source)).forEach(function(key) {
|
|
25427
25475
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
25428
25476
|
});
|
|
25429
25477
|
}
|
|
25430
25478
|
return target;
|
|
25431
25479
|
}
|
|
25432
|
-
var useStyles$
|
|
25480
|
+
var useStyles$k = createThemedStyles("FlexibleTableCell", {
|
|
25433
25481
|
root: {
|
|
25434
25482
|
position: "relative",
|
|
25435
25483
|
boxSizing: "content-box",
|
|
@@ -25442,7 +25490,7 @@ var useStyles$i = createThemedStyles("FlexibleTableCell", {
|
|
|
25442
25490
|
zIndex: 5,
|
|
25443
25491
|
verticalAlign: "top"
|
|
25444
25492
|
},
|
|
25445
|
-
sticky: _object_spread_props$
|
|
25493
|
+
sticky: _object_spread_props$o(_object_spread$q({
|
|
25446
25494
|
zIndex: 19,
|
|
25447
25495
|
paddingLeft: 24,
|
|
25448
25496
|
paddingRight: 12,
|
|
@@ -25465,7 +25513,7 @@ var useStyles$i = createThemedStyles("FlexibleTableCell", {
|
|
|
25465
25513
|
cursor: "pointer"
|
|
25466
25514
|
}
|
|
25467
25515
|
});
|
|
25468
|
-
function _define_property$
|
|
25516
|
+
function _define_property$q(obj, key, value) {
|
|
25469
25517
|
if (key in obj) {
|
|
25470
25518
|
Object.defineProperty(obj, key, {
|
|
25471
25519
|
value,
|
|
@@ -25478,7 +25526,7 @@ function _define_property$n(obj, key, value) {
|
|
|
25478
25526
|
}
|
|
25479
25527
|
return obj;
|
|
25480
25528
|
}
|
|
25481
|
-
function _object_spread$
|
|
25529
|
+
function _object_spread$p(target) {
|
|
25482
25530
|
for (var i = 1; i < arguments.length; i++) {
|
|
25483
25531
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
25484
25532
|
var ownKeys2 = Object.keys(source);
|
|
@@ -25488,12 +25536,12 @@ function _object_spread$m(target) {
|
|
|
25488
25536
|
}));
|
|
25489
25537
|
}
|
|
25490
25538
|
ownKeys2.forEach(function(key) {
|
|
25491
|
-
_define_property$
|
|
25539
|
+
_define_property$q(target, key, source[key]);
|
|
25492
25540
|
});
|
|
25493
25541
|
}
|
|
25494
25542
|
return target;
|
|
25495
25543
|
}
|
|
25496
|
-
function ownKeys$
|
|
25544
|
+
function ownKeys$n(object, enumerableOnly) {
|
|
25497
25545
|
var keys = Object.keys(object);
|
|
25498
25546
|
if (Object.getOwnPropertySymbols) {
|
|
25499
25547
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -25506,21 +25554,21 @@ function ownKeys$l(object, enumerableOnly) {
|
|
|
25506
25554
|
}
|
|
25507
25555
|
return keys;
|
|
25508
25556
|
}
|
|
25509
|
-
function _object_spread_props$
|
|
25557
|
+
function _object_spread_props$n(target, source) {
|
|
25510
25558
|
source = source != null ? source : {};
|
|
25511
25559
|
if (Object.getOwnPropertyDescriptors) {
|
|
25512
25560
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
25513
25561
|
} else {
|
|
25514
|
-
ownKeys$
|
|
25562
|
+
ownKeys$n(Object(source)).forEach(function(key) {
|
|
25515
25563
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
25516
25564
|
});
|
|
25517
25565
|
}
|
|
25518
25566
|
return target;
|
|
25519
25567
|
}
|
|
25520
|
-
function _object_without_properties$
|
|
25568
|
+
function _object_without_properties$b(source, excluded) {
|
|
25521
25569
|
if (source == null)
|
|
25522
25570
|
return {};
|
|
25523
|
-
var target = _object_without_properties_loose$
|
|
25571
|
+
var target = _object_without_properties_loose$b(source, excluded);
|
|
25524
25572
|
var key, i;
|
|
25525
25573
|
if (Object.getOwnPropertySymbols) {
|
|
25526
25574
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -25535,7 +25583,7 @@ function _object_without_properties$9(source, excluded) {
|
|
|
25535
25583
|
}
|
|
25536
25584
|
return target;
|
|
25537
25585
|
}
|
|
25538
|
-
function _object_without_properties_loose$
|
|
25586
|
+
function _object_without_properties_loose$b(source, excluded) {
|
|
25539
25587
|
if (source == null)
|
|
25540
25588
|
return {};
|
|
25541
25589
|
var target = {};
|
|
@@ -25550,7 +25598,7 @@ function _object_without_properties_loose$9(source, excluded) {
|
|
|
25550
25598
|
return target;
|
|
25551
25599
|
}
|
|
25552
25600
|
function FlexibleTableCell(_param) {
|
|
25553
|
-
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$
|
|
25601
|
+
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, [
|
|
25554
25602
|
"row",
|
|
25555
25603
|
"columnName",
|
|
25556
25604
|
"config",
|
|
@@ -25561,7 +25609,7 @@ function FlexibleTableCell(_param) {
|
|
|
25561
25609
|
"updateNestedComponent",
|
|
25562
25610
|
"tweakStyles"
|
|
25563
25611
|
]);
|
|
25564
|
-
var classes = useStyles$
|
|
25612
|
+
var classes = useStyles$k({
|
|
25565
25613
|
theme: tweakStyles
|
|
25566
25614
|
});
|
|
25567
25615
|
var value = row[columnName];
|
|
@@ -25569,7 +25617,7 @@ function FlexibleTableCell(_param) {
|
|
|
25569
25617
|
var _ref = (_config_columnName = config[columnName]) !== null && _config_columnName !== void 0 ? _config_columnName : {}, _ref_component = _ref.component, component = _ref_component === void 0 ? formatCellContent(value, config[columnName]) : _ref_component, width = _ref.width, maxWidth = _ref.maxWidth, minWidth = _ref.minWidth, left2 = _ref.left, right2 = _ref.right, position = _ref.position, cellAlign = _ref.cellAlign, cellVerticalAlign = _ref.cellVerticalAlign, shouldRenderDataId = _ref.shouldRenderDataId, _ref_shouldRenderComponent = _ref.shouldRenderComponent, shouldRenderComponent = _ref_shouldRenderComponent === void 0 ? isNotEmpty : _ref_shouldRenderComponent, onCellClick = _ref.onCellClick;
|
|
25570
25618
|
var isSticky = isOldSticky || position === "sticky";
|
|
25571
25619
|
var isClickable = !isLoading && isNotEmpty(onCellClick);
|
|
25572
|
-
var cellComponentProps = _object_spread_props$
|
|
25620
|
+
var cellComponentProps = _object_spread_props$n(_object_spread$p({}, valueComponentProps), {
|
|
25573
25621
|
onSetNestedComponent: useCallback(function(node) {
|
|
25574
25622
|
return updateNestedComponent(node, columnName);
|
|
25575
25623
|
}, [
|
|
@@ -25581,8 +25629,8 @@ function FlexibleTableCell(_param) {
|
|
|
25581
25629
|
});
|
|
25582
25630
|
var Table = TableRenders[renderMode];
|
|
25583
25631
|
var _obj2;
|
|
25584
|
-
return /* @__PURE__ */ jsx(Table.Cell, _object_spread_props$
|
|
25585
|
-
className: clsx(classes.root, (_obj2 = {}, _define_property$
|
|
25632
|
+
return /* @__PURE__ */ jsx(Table.Cell, _object_spread_props$n(_object_spread$p({
|
|
25633
|
+
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)),
|
|
25586
25634
|
style: {
|
|
25587
25635
|
textAlign: cellAlign,
|
|
25588
25636
|
position: isSticky ? "sticky" : position,
|
|
@@ -25605,7 +25653,7 @@ function FlexibleTableCell(_param) {
|
|
|
25605
25653
|
}) : applyAction(shouldRenderComponent, value, row, columnName) && applyAction(component, cellComponentProps)
|
|
25606
25654
|
}));
|
|
25607
25655
|
}
|
|
25608
|
-
var useStyles$
|
|
25656
|
+
var useStyles$j = createThemedStyles("FlexibleTableRow", {
|
|
25609
25657
|
root: {
|
|
25610
25658
|
position: "relative"
|
|
25611
25659
|
},
|
|
@@ -25629,7 +25677,7 @@ function _array_with_holes$7(arr) {
|
|
|
25629
25677
|
if (Array.isArray(arr))
|
|
25630
25678
|
return arr;
|
|
25631
25679
|
}
|
|
25632
|
-
function _define_property$
|
|
25680
|
+
function _define_property$p(obj, key, value) {
|
|
25633
25681
|
if (key in obj) {
|
|
25634
25682
|
Object.defineProperty(obj, key, {
|
|
25635
25683
|
value,
|
|
@@ -25673,7 +25721,7 @@ function _iterable_to_array_limit$7(arr, i) {
|
|
|
25673
25721
|
function _non_iterable_rest$7() {
|
|
25674
25722
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
25675
25723
|
}
|
|
25676
|
-
function _object_spread$
|
|
25724
|
+
function _object_spread$o(target) {
|
|
25677
25725
|
for (var i = 1; i < arguments.length; i++) {
|
|
25678
25726
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
25679
25727
|
var ownKeys2 = Object.keys(source);
|
|
@@ -25683,12 +25731,12 @@ function _object_spread$l(target) {
|
|
|
25683
25731
|
}));
|
|
25684
25732
|
}
|
|
25685
25733
|
ownKeys2.forEach(function(key) {
|
|
25686
|
-
_define_property$
|
|
25734
|
+
_define_property$p(target, key, source[key]);
|
|
25687
25735
|
});
|
|
25688
25736
|
}
|
|
25689
25737
|
return target;
|
|
25690
25738
|
}
|
|
25691
|
-
function ownKeys$
|
|
25739
|
+
function ownKeys$m(object, enumerableOnly) {
|
|
25692
25740
|
var keys = Object.keys(object);
|
|
25693
25741
|
if (Object.getOwnPropertySymbols) {
|
|
25694
25742
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -25701,12 +25749,12 @@ function ownKeys$k(object, enumerableOnly) {
|
|
|
25701
25749
|
}
|
|
25702
25750
|
return keys;
|
|
25703
25751
|
}
|
|
25704
|
-
function _object_spread_props$
|
|
25752
|
+
function _object_spread_props$m(target, source) {
|
|
25705
25753
|
source = source != null ? source : {};
|
|
25706
25754
|
if (Object.getOwnPropertyDescriptors) {
|
|
25707
25755
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
25708
25756
|
} else {
|
|
25709
|
-
ownKeys$
|
|
25757
|
+
ownKeys$m(Object(source)).forEach(function(key) {
|
|
25710
25758
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
25711
25759
|
});
|
|
25712
25760
|
}
|
|
@@ -25730,7 +25778,7 @@ function _unsupported_iterable_to_array$7(o, minLen) {
|
|
|
25730
25778
|
}
|
|
25731
25779
|
function FlexibleTableRowInner(param) {
|
|
25732
25780
|
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;
|
|
25733
|
-
var classes = useStyles$
|
|
25781
|
+
var classes = useStyles$j({
|
|
25734
25782
|
theme: tweakStyles
|
|
25735
25783
|
});
|
|
25736
25784
|
var tweakTableCellStyles = useTweakStyles({
|
|
@@ -25805,14 +25853,14 @@ function FlexibleTableRowInner(param) {
|
|
|
25805
25853
|
var _obj2;
|
|
25806
25854
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
25807
25855
|
children: [
|
|
25808
|
-
/* @__PURE__ */ jsx(Table.Row, _object_spread_props$
|
|
25856
|
+
/* @__PURE__ */ jsx(Table.Row, _object_spread_props$m(_object_spread$o({
|
|
25809
25857
|
ref: rowRef,
|
|
25810
|
-
className: clsx(classes.root, (_obj2 = {}, _define_property$
|
|
25858
|
+
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))
|
|
25811
25859
|
}, !isLoading && {
|
|
25812
25860
|
onClick: handleRowClick,
|
|
25813
25861
|
onMouseEnter: handleMouseEnter,
|
|
25814
25862
|
onMouseLeave: handleMouseLeave
|
|
25815
|
-
}, addDataAttributes(_object_spread_props$
|
|
25863
|
+
}, addDataAttributes(_object_spread_props$m(_object_spread$o({}, rowData), {
|
|
25816
25864
|
active: isActive ? true : void 0,
|
|
25817
25865
|
editable: isEditable ? true : void 0,
|
|
25818
25866
|
isExpandableComponentActive: isNestedComponentExpanded ? true : void 0
|
|
@@ -25847,7 +25895,7 @@ function FlexibleTableRowInner(param) {
|
|
|
25847
25895
|
});
|
|
25848
25896
|
}
|
|
25849
25897
|
var FlexibleTableRow = /* @__PURE__ */ memo(FlexibleTableRowInner);
|
|
25850
|
-
function _define_property$
|
|
25898
|
+
function _define_property$o(obj, key, value) {
|
|
25851
25899
|
if (key in obj) {
|
|
25852
25900
|
Object.defineProperty(obj, key, {
|
|
25853
25901
|
value,
|
|
@@ -25860,7 +25908,7 @@ function _define_property$l(obj, key, value) {
|
|
|
25860
25908
|
}
|
|
25861
25909
|
return obj;
|
|
25862
25910
|
}
|
|
25863
|
-
function _object_spread$
|
|
25911
|
+
function _object_spread$n(target) {
|
|
25864
25912
|
for (var i = 1; i < arguments.length; i++) {
|
|
25865
25913
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
25866
25914
|
var ownKeys2 = Object.keys(source);
|
|
@@ -25870,12 +25918,12 @@ function _object_spread$k(target) {
|
|
|
25870
25918
|
}));
|
|
25871
25919
|
}
|
|
25872
25920
|
ownKeys2.forEach(function(key) {
|
|
25873
|
-
_define_property$
|
|
25921
|
+
_define_property$o(target, key, source[key]);
|
|
25874
25922
|
});
|
|
25875
25923
|
}
|
|
25876
25924
|
return target;
|
|
25877
25925
|
}
|
|
25878
|
-
function ownKeys$
|
|
25926
|
+
function ownKeys$l(object, enumerableOnly) {
|
|
25879
25927
|
var keys = Object.keys(object);
|
|
25880
25928
|
if (Object.getOwnPropertySymbols) {
|
|
25881
25929
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -25888,21 +25936,21 @@ function ownKeys$j(object, enumerableOnly) {
|
|
|
25888
25936
|
}
|
|
25889
25937
|
return keys;
|
|
25890
25938
|
}
|
|
25891
|
-
function _object_spread_props$
|
|
25939
|
+
function _object_spread_props$l(target, source) {
|
|
25892
25940
|
source = source != null ? source : {};
|
|
25893
25941
|
if (Object.getOwnPropertyDescriptors) {
|
|
25894
25942
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
25895
25943
|
} else {
|
|
25896
|
-
ownKeys$
|
|
25944
|
+
ownKeys$l(Object(source)).forEach(function(key) {
|
|
25897
25945
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
25898
25946
|
});
|
|
25899
25947
|
}
|
|
25900
25948
|
return target;
|
|
25901
25949
|
}
|
|
25902
|
-
function _object_without_properties$
|
|
25950
|
+
function _object_without_properties$a(source, excluded) {
|
|
25903
25951
|
if (source == null)
|
|
25904
25952
|
return {};
|
|
25905
|
-
var target = _object_without_properties_loose$
|
|
25953
|
+
var target = _object_without_properties_loose$a(source, excluded);
|
|
25906
25954
|
var key, i;
|
|
25907
25955
|
if (Object.getOwnPropertySymbols) {
|
|
25908
25956
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -25917,7 +25965,7 @@ function _object_without_properties$8(source, excluded) {
|
|
|
25917
25965
|
}
|
|
25918
25966
|
return target;
|
|
25919
25967
|
}
|
|
25920
|
-
function _object_without_properties_loose$
|
|
25968
|
+
function _object_without_properties_loose$a(source, excluded) {
|
|
25921
25969
|
if (source == null)
|
|
25922
25970
|
return {};
|
|
25923
25971
|
var target = {};
|
|
@@ -25932,7 +25980,7 @@ function _object_without_properties_loose$8(source, excluded) {
|
|
|
25932
25980
|
return target;
|
|
25933
25981
|
}
|
|
25934
25982
|
function FlexibleTable(_param) {
|
|
25935
|
-
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$
|
|
25983
|
+
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, [
|
|
25936
25984
|
"content",
|
|
25937
25985
|
"headerContent",
|
|
25938
25986
|
"config",
|
|
@@ -25954,7 +26002,7 @@ function FlexibleTable(_param) {
|
|
|
25954
26002
|
"onHeadClick",
|
|
25955
26003
|
"isExpandableRowComponentInitiallyOpen"
|
|
25956
26004
|
]);
|
|
25957
|
-
var classes = useStyles$
|
|
26005
|
+
var classes = useStyles$l({
|
|
25958
26006
|
theme: tweakStyles
|
|
25959
26007
|
});
|
|
25960
26008
|
var tweakTableRowStyles = useTweakStyles({
|
|
@@ -25970,7 +26018,7 @@ function FlexibleTable(_param) {
|
|
|
25970
26018
|
config
|
|
25971
26019
|
]);
|
|
25972
26020
|
var getTableRowProps = function(item, index) {
|
|
25973
|
-
return _object_spread_props$
|
|
26021
|
+
return _object_spread_props$l(_object_spread$n({}, restProps), {
|
|
25974
26022
|
item,
|
|
25975
26023
|
renderMode,
|
|
25976
26024
|
config,
|
|
@@ -26057,10 +26105,10 @@ function FlexibleTable(_param) {
|
|
|
26057
26105
|
var Table = TableRenders[renderMode];
|
|
26058
26106
|
return /* @__PURE__ */ jsx("div", {
|
|
26059
26107
|
ref,
|
|
26060
|
-
className: clsx(_define_property$
|
|
26061
|
-
children: /* @__PURE__ */ jsxs(Table.Root, _object_spread_props$
|
|
26108
|
+
className: clsx(classes.flexibleTableWrapper, _define_property$o({}, classes.scroll, isHorizontallyScrollable)),
|
|
26109
|
+
children: /* @__PURE__ */ jsxs(Table.Root, _object_spread_props$l(_object_spread$n({
|
|
26062
26110
|
className: classes.root
|
|
26063
|
-
}, addDataAttributes$1(_object_spread_props$
|
|
26111
|
+
}, addDataAttributes$1(_object_spread_props$l(_object_spread$n({}, data), {
|
|
26064
26112
|
isLoading
|
|
26065
26113
|
}), testId)), {
|
|
26066
26114
|
children: [
|
|
@@ -26073,8 +26121,8 @@ function FlexibleTable(_param) {
|
|
|
26073
26121
|
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;
|
|
26074
26122
|
var isSticky = position === "sticky" || isFirstColumnSticky && i === 0;
|
|
26075
26123
|
var _obj2;
|
|
26076
|
-
return /* @__PURE__ */ jsx(Table.Header, _object_spread_props$
|
|
26077
|
-
className: clsx(classes.header, (_obj2 = {}, _define_property$
|
|
26124
|
+
return /* @__PURE__ */ jsx(Table.Header, _object_spread_props$l(_object_spread$n({
|
|
26125
|
+
className: clsx(classes.header, (_obj2 = {}, _define_property$o(_obj2, classes.headerSticky, isSticky), _define_property$o(_obj2, classes.headerSecond, isFirstColumnSticky && i === 1), _obj2)),
|
|
26078
26126
|
style: {
|
|
26079
26127
|
minWidth,
|
|
26080
26128
|
width,
|
|
@@ -26100,7 +26148,7 @@ function FlexibleTable(_param) {
|
|
|
26100
26148
|
/* @__PURE__ */ jsx(Table.Body, {
|
|
26101
26149
|
className: classes.body,
|
|
26102
26150
|
children: isLoading ? indexMap(6, function(i) {
|
|
26103
|
-
return /* @__PURE__ */ createElement(FlexibleTableRow, _object_spread_props$
|
|
26151
|
+
return /* @__PURE__ */ createElement(FlexibleTableRow, _object_spread_props$l(_object_spread$n({}, getTableRowProps({}, i)), {
|
|
26104
26152
|
key: i
|
|
26105
26153
|
}));
|
|
26106
26154
|
}) : /* @__PURE__ */ jsxs(Fragment, {
|
|
@@ -26114,7 +26162,7 @@ function FlexibleTable(_param) {
|
|
|
26114
26162
|
})
|
|
26115
26163
|
}),
|
|
26116
26164
|
content.map(function(item, i) {
|
|
26117
|
-
return /* @__PURE__ */ createElement(FlexibleTableRow, _object_spread_props$
|
|
26165
|
+
return /* @__PURE__ */ createElement(FlexibleTableRow, _object_spread_props$l(_object_spread$n({}, getTableRowProps(item, i)), {
|
|
26118
26166
|
isActive: activeRowsSet.has(i),
|
|
26119
26167
|
key: isNotEmpty(uniqueField) ? item[uniqueField] : i
|
|
26120
26168
|
}));
|
|
@@ -26141,6 +26189,280 @@ function FlexibleTable(_param) {
|
|
|
26141
26189
|
}))
|
|
26142
26190
|
});
|
|
26143
26191
|
}
|
|
26192
|
+
var useStyles$i = createThemedStyles("DocActions", {
|
|
26193
|
+
docActions: {
|
|
26194
|
+
display: "grid",
|
|
26195
|
+
alignItems: "center",
|
|
26196
|
+
gridTemplateColumns: "max-content 1fr"
|
|
26197
|
+
},
|
|
26198
|
+
neutral: {},
|
|
26199
|
+
inverse: {},
|
|
26200
|
+
counterWrapper: {},
|
|
26201
|
+
title: {},
|
|
26202
|
+
actionsWrapper: {
|
|
26203
|
+
justifySelf: "end"
|
|
26204
|
+
}
|
|
26205
|
+
});
|
|
26206
|
+
function _define_property$n(obj, key, value) {
|
|
26207
|
+
if (key in obj) {
|
|
26208
|
+
Object.defineProperty(obj, key, {
|
|
26209
|
+
value,
|
|
26210
|
+
enumerable: true,
|
|
26211
|
+
configurable: true,
|
|
26212
|
+
writable: true
|
|
26213
|
+
});
|
|
26214
|
+
} else {
|
|
26215
|
+
obj[key] = value;
|
|
26216
|
+
}
|
|
26217
|
+
return obj;
|
|
26218
|
+
}
|
|
26219
|
+
function _object_spread$m(target) {
|
|
26220
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
26221
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
26222
|
+
var ownKeys2 = Object.keys(source);
|
|
26223
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
26224
|
+
ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
26225
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
26226
|
+
}));
|
|
26227
|
+
}
|
|
26228
|
+
ownKeys2.forEach(function(key) {
|
|
26229
|
+
_define_property$n(target, key, source[key]);
|
|
26230
|
+
});
|
|
26231
|
+
}
|
|
26232
|
+
return target;
|
|
26233
|
+
}
|
|
26234
|
+
function ownKeys$k(object, enumerableOnly) {
|
|
26235
|
+
var keys = Object.keys(object);
|
|
26236
|
+
if (Object.getOwnPropertySymbols) {
|
|
26237
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
26238
|
+
if (enumerableOnly) {
|
|
26239
|
+
symbols = symbols.filter(function(sym) {
|
|
26240
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
26241
|
+
});
|
|
26242
|
+
}
|
|
26243
|
+
keys.push.apply(keys, symbols);
|
|
26244
|
+
}
|
|
26245
|
+
return keys;
|
|
26246
|
+
}
|
|
26247
|
+
function _object_spread_props$k(target, source) {
|
|
26248
|
+
source = source != null ? source : {};
|
|
26249
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
26250
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
26251
|
+
} else {
|
|
26252
|
+
ownKeys$k(Object(source)).forEach(function(key) {
|
|
26253
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
26254
|
+
});
|
|
26255
|
+
}
|
|
26256
|
+
return target;
|
|
26257
|
+
}
|
|
26258
|
+
function _object_without_properties$9(source, excluded) {
|
|
26259
|
+
if (source == null)
|
|
26260
|
+
return {};
|
|
26261
|
+
var target = _object_without_properties_loose$9(source, excluded);
|
|
26262
|
+
var key, i;
|
|
26263
|
+
if (Object.getOwnPropertySymbols) {
|
|
26264
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
26265
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
26266
|
+
key = sourceSymbolKeys[i];
|
|
26267
|
+
if (excluded.indexOf(key) >= 0)
|
|
26268
|
+
continue;
|
|
26269
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
26270
|
+
continue;
|
|
26271
|
+
target[key] = source[key];
|
|
26272
|
+
}
|
|
26273
|
+
}
|
|
26274
|
+
return target;
|
|
26275
|
+
}
|
|
26276
|
+
function _object_without_properties_loose$9(source, excluded) {
|
|
26277
|
+
if (source == null)
|
|
26278
|
+
return {};
|
|
26279
|
+
var target = {};
|
|
26280
|
+
var sourceKeys = Object.keys(source);
|
|
26281
|
+
var key, i;
|
|
26282
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
26283
|
+
key = sourceKeys[i];
|
|
26284
|
+
if (excluded.indexOf(key) >= 0)
|
|
26285
|
+
continue;
|
|
26286
|
+
target[key] = source[key];
|
|
26287
|
+
}
|
|
26288
|
+
return target;
|
|
26289
|
+
}
|
|
26290
|
+
var DocActions = function(_param) {
|
|
26291
|
+
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, [
|
|
26292
|
+
"title",
|
|
26293
|
+
"view",
|
|
26294
|
+
"children",
|
|
26295
|
+
"tweakStyles"
|
|
26296
|
+
]);
|
|
26297
|
+
var classes = useStyles$i({
|
|
26298
|
+
theme: tweakStyles
|
|
26299
|
+
});
|
|
26300
|
+
var tweakCheckboxStyles = useTweakStyles({
|
|
26301
|
+
tweakStyles,
|
|
26302
|
+
className: "tweakCheckbox",
|
|
26303
|
+
currentComponentName: "DocActions"
|
|
26304
|
+
});
|
|
26305
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
26306
|
+
className: clsx(classes.docActions, classes[view]),
|
|
26307
|
+
children: [
|
|
26308
|
+
/* @__PURE__ */ jsx("div", {
|
|
26309
|
+
className: classes.counterWrapper,
|
|
26310
|
+
children: /* @__PURE__ */ jsx(Checkbox, _object_spread_props$k(_object_spread$m({
|
|
26311
|
+
tweakStyles: tweakCheckboxStyles
|
|
26312
|
+
}, checkBoxProps), {
|
|
26313
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
26314
|
+
className: classes.title,
|
|
26315
|
+
children: title
|
|
26316
|
+
})
|
|
26317
|
+
}))
|
|
26318
|
+
}),
|
|
26319
|
+
/* @__PURE__ */ jsx("div", {
|
|
26320
|
+
className: classes.actionsWrapper,
|
|
26321
|
+
children
|
|
26322
|
+
})
|
|
26323
|
+
]
|
|
26324
|
+
});
|
|
26325
|
+
};
|
|
26326
|
+
var DOC_ACTIONS_VIEWS = [
|
|
26327
|
+
"neutral",
|
|
26328
|
+
"inverse"
|
|
26329
|
+
];
|
|
26330
|
+
var DEFAULT_TIMEOUT$1 = 150;
|
|
26331
|
+
function _define_property$m(obj, key, value) {
|
|
26332
|
+
if (key in obj) {
|
|
26333
|
+
Object.defineProperty(obj, key, {
|
|
26334
|
+
value,
|
|
26335
|
+
enumerable: true,
|
|
26336
|
+
configurable: true,
|
|
26337
|
+
writable: true
|
|
26338
|
+
});
|
|
26339
|
+
} else {
|
|
26340
|
+
obj[key] = value;
|
|
26341
|
+
}
|
|
26342
|
+
return obj;
|
|
26343
|
+
}
|
|
26344
|
+
function _object_spread$l(target) {
|
|
26345
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
26346
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
26347
|
+
var ownKeys2 = Object.keys(source);
|
|
26348
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
26349
|
+
ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
26350
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
26351
|
+
}));
|
|
26352
|
+
}
|
|
26353
|
+
ownKeys2.forEach(function(key) {
|
|
26354
|
+
_define_property$m(target, key, source[key]);
|
|
26355
|
+
});
|
|
26356
|
+
}
|
|
26357
|
+
return target;
|
|
26358
|
+
}
|
|
26359
|
+
var useStyles$h = createUseStyles(_object_spread$l({}, animations.slideUp));
|
|
26360
|
+
function _define_property$l(obj, key, value) {
|
|
26361
|
+
if (key in obj) {
|
|
26362
|
+
Object.defineProperty(obj, key, {
|
|
26363
|
+
value,
|
|
26364
|
+
enumerable: true,
|
|
26365
|
+
configurable: true,
|
|
26366
|
+
writable: true
|
|
26367
|
+
});
|
|
26368
|
+
} else {
|
|
26369
|
+
obj[key] = value;
|
|
26370
|
+
}
|
|
26371
|
+
return obj;
|
|
26372
|
+
}
|
|
26373
|
+
function _object_spread$k(target) {
|
|
26374
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
26375
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
26376
|
+
var ownKeys2 = Object.keys(source);
|
|
26377
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
26378
|
+
ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
26379
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
26380
|
+
}));
|
|
26381
|
+
}
|
|
26382
|
+
ownKeys2.forEach(function(key) {
|
|
26383
|
+
_define_property$l(target, key, source[key]);
|
|
26384
|
+
});
|
|
26385
|
+
}
|
|
26386
|
+
return target;
|
|
26387
|
+
}
|
|
26388
|
+
function ownKeys$j(object, enumerableOnly) {
|
|
26389
|
+
var keys = Object.keys(object);
|
|
26390
|
+
if (Object.getOwnPropertySymbols) {
|
|
26391
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
26392
|
+
if (enumerableOnly) {
|
|
26393
|
+
symbols = symbols.filter(function(sym) {
|
|
26394
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
26395
|
+
});
|
|
26396
|
+
}
|
|
26397
|
+
keys.push.apply(keys, symbols);
|
|
26398
|
+
}
|
|
26399
|
+
return keys;
|
|
26400
|
+
}
|
|
26401
|
+
function _object_spread_props$j(target, source) {
|
|
26402
|
+
source = source != null ? source : {};
|
|
26403
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
26404
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
26405
|
+
} else {
|
|
26406
|
+
ownKeys$j(Object(source)).forEach(function(key) {
|
|
26407
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
26408
|
+
});
|
|
26409
|
+
}
|
|
26410
|
+
return target;
|
|
26411
|
+
}
|
|
26412
|
+
function _object_without_properties$8(source, excluded) {
|
|
26413
|
+
if (source == null)
|
|
26414
|
+
return {};
|
|
26415
|
+
var target = _object_without_properties_loose$8(source, excluded);
|
|
26416
|
+
var key, i;
|
|
26417
|
+
if (Object.getOwnPropertySymbols) {
|
|
26418
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
26419
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
26420
|
+
key = sourceSymbolKeys[i];
|
|
26421
|
+
if (excluded.indexOf(key) >= 0)
|
|
26422
|
+
continue;
|
|
26423
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
26424
|
+
continue;
|
|
26425
|
+
target[key] = source[key];
|
|
26426
|
+
}
|
|
26427
|
+
}
|
|
26428
|
+
return target;
|
|
26429
|
+
}
|
|
26430
|
+
function _object_without_properties_loose$8(source, excluded) {
|
|
26431
|
+
if (source == null)
|
|
26432
|
+
return {};
|
|
26433
|
+
var target = {};
|
|
26434
|
+
var sourceKeys = Object.keys(source);
|
|
26435
|
+
var key, i;
|
|
26436
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
26437
|
+
key = sourceKeys[i];
|
|
26438
|
+
if (excluded.indexOf(key) >= 0)
|
|
26439
|
+
continue;
|
|
26440
|
+
target[key] = source[key];
|
|
26441
|
+
}
|
|
26442
|
+
return target;
|
|
26443
|
+
}
|
|
26444
|
+
var FloatDocActions = function(_param) {
|
|
26445
|
+
var isOpen = _param.isOpen, children = _param.children, docActionsProps = _object_without_properties$8(_param, [
|
|
26446
|
+
"isOpen",
|
|
26447
|
+
"children"
|
|
26448
|
+
]);
|
|
26449
|
+
var classes = useStyles$h();
|
|
26450
|
+
return /* @__PURE__ */ jsx(CSSTransition, {
|
|
26451
|
+
in: isOpen,
|
|
26452
|
+
timeout: DEFAULT_TIMEOUT$1,
|
|
26453
|
+
mountOnEnter: true,
|
|
26454
|
+
unmountOnExit: true,
|
|
26455
|
+
classNames: {
|
|
26456
|
+
enter: classes["slide-up-enter"],
|
|
26457
|
+
enterActive: classes["slide-up-enter-active"],
|
|
26458
|
+
exit: classes["slide-up-exit"],
|
|
26459
|
+
exitActive: classes["slide-up-exit-active"]
|
|
26460
|
+
},
|
|
26461
|
+
children: /* @__PURE__ */ jsx(DocActions, _object_spread_props$j(_object_spread$k({}, docActionsProps), {
|
|
26462
|
+
children
|
|
26463
|
+
}))
|
|
26464
|
+
});
|
|
26465
|
+
};
|
|
26144
26466
|
var inputStyles$2 = {
|
|
26145
26467
|
tweakControlWrapper: {
|
|
26146
26468
|
controlWrapper: {
|
|
@@ -30749,9 +31071,11 @@ export {
|
|
|
30749
31071
|
ControlWrapper,
|
|
30750
31072
|
CssBaseline,
|
|
30751
31073
|
DEFAULT_PHONE_MASK,
|
|
31074
|
+
DOC_ACTIONS_VIEWS,
|
|
30752
31075
|
DateInput,
|
|
30753
31076
|
DatePicker,
|
|
30754
31077
|
Description,
|
|
31078
|
+
DocActions,
|
|
30755
31079
|
EMPTY_DATE_INPUT_VALUE,
|
|
30756
31080
|
EMPTY_DATE_RANGE_INPUT_VALUE,
|
|
30757
31081
|
FileInput,
|
|
@@ -30768,6 +31092,7 @@ export {
|
|
|
30768
31092
|
FiltersPaneSearch,
|
|
30769
31093
|
Flag,
|
|
30770
31094
|
FlexibleTable,
|
|
31095
|
+
FloatDocActions,
|
|
30771
31096
|
Icon,
|
|
30772
31097
|
IconButton,
|
|
30773
31098
|
IncrementInput,
|