@true-engineering/true-react-common-ui-kit 3.9.2 → 3.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -0
- package/dist/components/Button/constants.d.ts +1 -0
- package/dist/components/Button/types.d.ts +2 -2
- package/dist/components/CloseButton/CloseButton.d.ts +1 -0
- package/dist/components/CloseButton/CloseButton.stories.d.ts +5 -0
- package/dist/components/IconButton/IconButton.d.ts +19 -0
- package/dist/components/IconButton/IconButton.stories.d.ts +6 -0
- package/dist/components/IconButton/IconButton.styles.d.ts +3 -0
- package/dist/components/IconButton/constants.d.ts +2 -0
- package/dist/components/IconButton/index.d.ts +3 -0
- package/dist/components/IconButton/types.d.ts +5 -0
- package/dist/components/Modal/Modal.styles.d.ts +3 -2
- package/dist/components/TextButton/TextButton.d.ts +6 -5
- package/dist/components/TextButton/TextButton.stories.d.ts +2 -1
- package/dist/components/TextButton/constants.d.ts +2 -0
- package/dist/components/TextButton/index.d.ts +1 -1
- package/dist/components/TextButton/types.d.ts +5 -0
- package/dist/components/Toaster/Toaster.styles.d.ts +2 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/theme/common.d.ts +2 -0
- package/dist/theme/types.d.ts +2 -1
- package/dist/true-react-common-ui-kit.js +711 -493
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +711 -493
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/components/AccountInfo/AccountInfo.styles.ts +3 -2
- package/src/components/Button/Button.stories.tsx +3 -5
- package/src/components/Button/Button.styles.ts +2 -2
- package/src/components/Button/constants.ts +2 -0
- package/src/components/Button/types.ts +2 -2
- package/src/components/CloseButton/CloseButton.stories.tsx +11 -0
- package/src/components/CloseButton/CloseButton.styles.ts +3 -2
- package/src/components/CloseButton/CloseButton.tsx +1 -0
- package/src/components/FiltersPane/FiltersPane.styles.ts +3 -2
- package/src/components/FiltersPane/components/FilterSelect/FilterSelect.styles.ts +3 -2
- package/src/components/FiltersPane/components/FilterWrapper/FilterWrapper.styles.ts +2 -2
- package/src/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.styles.ts +8 -2
- package/src/components/FlexibleTable/FlexibleTable.styles.ts +3 -2
- package/src/components/IconButton/IconButton.stories.tsx +32 -0
- package/src/components/IconButton/IconButton.styles.ts +88 -0
- package/src/components/IconButton/IconButton.tsx +74 -0
- package/src/components/IconButton/constants.ts +3 -0
- package/src/components/IconButton/index.ts +3 -0
- package/src/components/IconButton/types.ts +11 -0
- package/src/components/IncrementInput/IncrementInput.styles.ts +3 -2
- package/src/components/Input/Input.styles.ts +6 -5
- package/src/components/List/List.styles.ts +3 -2
- package/src/components/List/components/ListItem/ListItem.styles.ts +3 -2
- package/src/components/Modal/Modal.styles.ts +17 -2
- package/src/components/Modal/Modal.tsx +7 -4
- package/src/components/MoreMenu/MoreMenu.styles.ts +3 -2
- package/src/components/NewMoreMenu/NewMoreMenu.styles.ts +3 -2
- package/src/components/Select/CustomSelect.stories.tsx +1 -1
- package/src/components/Selector/Selector.styles.ts +4 -3
- package/src/components/Switch/Switch.styles.ts +4 -4
- package/src/components/TextArea/TextArea.styles.ts +4 -4
- package/src/components/TextButton/TextButton.stories.tsx +3 -2
- package/src/components/TextButton/TextButton.styles.ts +4 -3
- package/src/components/TextButton/TextButton.tsx +72 -65
- package/src/components/TextButton/constants.ts +3 -0
- package/src/components/TextButton/index.ts +1 -2
- package/src/components/TextButton/types.ts +11 -0
- package/src/components/Toaster/Toaster.styles.ts +2 -2
- package/src/components/Toaster/Toaster.tsx +5 -4
- package/src/components/index.ts +1 -0
- package/src/theme/common.ts +2 -0
- package/src/theme/types.ts +8 -6
|
@@ -1071,6 +1071,7 @@
|
|
|
1071
1071
|
var SLIDE_UP_POSITION_START = 15;
|
|
1072
1072
|
var SLIDE_UP_POSITION_END = 0;
|
|
1073
1073
|
var animations = {
|
|
1074
|
+
defaultTransition: "0.25s ease-in-out",
|
|
1074
1075
|
// Если понадобится, сюда можно пробросить параметры через useTheme props
|
|
1075
1076
|
slideUp: {
|
|
1076
1077
|
"slide-up-enter": {
|
|
@@ -1859,7 +1860,7 @@
|
|
|
1859
1860
|
baseMerge(object, source, srcIndex);
|
|
1860
1861
|
});
|
|
1861
1862
|
const merge$1 = merge;
|
|
1862
|
-
function _define_property
|
|
1863
|
+
function _define_property$$(obj, key, value) {
|
|
1863
1864
|
if (key in obj) {
|
|
1864
1865
|
Object.defineProperty(obj, key, {
|
|
1865
1866
|
value,
|
|
@@ -1872,7 +1873,7 @@
|
|
|
1872
1873
|
}
|
|
1873
1874
|
return obj;
|
|
1874
1875
|
}
|
|
1875
|
-
function _object_spread$
|
|
1876
|
+
function _object_spread$_(target) {
|
|
1876
1877
|
for (var i = 1; i < arguments.length; i++) {
|
|
1877
1878
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1878
1879
|
var ownKeys2 = Object.keys(source);
|
|
@@ -1882,12 +1883,12 @@
|
|
|
1882
1883
|
}));
|
|
1883
1884
|
}
|
|
1884
1885
|
ownKeys2.forEach(function(key) {
|
|
1885
|
-
_define_property
|
|
1886
|
+
_define_property$$(target, key, source[key]);
|
|
1886
1887
|
});
|
|
1887
1888
|
}
|
|
1888
1889
|
return target;
|
|
1889
1890
|
}
|
|
1890
|
-
function ownKeys$
|
|
1891
|
+
function ownKeys$P(object, enumerableOnly) {
|
|
1891
1892
|
var keys2 = Object.keys(object);
|
|
1892
1893
|
if (Object.getOwnPropertySymbols) {
|
|
1893
1894
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -1900,12 +1901,12 @@
|
|
|
1900
1901
|
}
|
|
1901
1902
|
return keys2;
|
|
1902
1903
|
}
|
|
1903
|
-
function _object_spread_props$
|
|
1904
|
+
function _object_spread_props$P(target, source) {
|
|
1904
1905
|
source = source != null ? source : {};
|
|
1905
1906
|
if (Object.getOwnPropertyDescriptors) {
|
|
1906
1907
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1907
1908
|
} else {
|
|
1908
|
-
ownKeys$
|
|
1909
|
+
ownKeys$P(Object(source)).forEach(function(key) {
|
|
1909
1910
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1910
1911
|
});
|
|
1911
1912
|
}
|
|
@@ -1960,7 +1961,7 @@
|
|
|
1960
1961
|
return trueReactPlatformHelpers.mergeStyles(styles, trueReactPlatformHelpers.isNotEmpty(componentName) ? theme === null || theme === void 0 ? void 0 : (_theme_components = theme.components) === null || _theme_components === void 0 ? void 0 : _theme_components[componentName] : void 0, tweakStyles);
|
|
1961
1962
|
});
|
|
1962
1963
|
return function(data) {
|
|
1963
|
-
return useStyles2(trueReactPlatformHelpers.isNotEmpty(data) ? _object_spread_props$
|
|
1964
|
+
return useStyles2(trueReactPlatformHelpers.isNotEmpty(data) ? _object_spread_props$P(_object_spread$_({}, data), {
|
|
1964
1965
|
theme: cleanStyles(data.theme)
|
|
1965
1966
|
}) : data);
|
|
1966
1967
|
};
|
|
@@ -6419,7 +6420,7 @@
|
|
|
6419
6420
|
if (Array.isArray(arr))
|
|
6420
6421
|
return _array_like_to_array$q(arr);
|
|
6421
6422
|
}
|
|
6422
|
-
function _define_property$
|
|
6423
|
+
function _define_property$_(obj, key, value) {
|
|
6423
6424
|
if (key in obj) {
|
|
6424
6425
|
Object.defineProperty(obj, key, {
|
|
6425
6426
|
value,
|
|
@@ -6439,7 +6440,7 @@
|
|
|
6439
6440
|
function _non_iterable_spread$7() {
|
|
6440
6441
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6441
6442
|
}
|
|
6442
|
-
function _object_spread$
|
|
6443
|
+
function _object_spread$Z(target) {
|
|
6443
6444
|
for (var i = 1; i < arguments.length; i++) {
|
|
6444
6445
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6445
6446
|
var ownKeys2 = Object.keys(source);
|
|
@@ -6449,7 +6450,7 @@
|
|
|
6449
6450
|
}));
|
|
6450
6451
|
}
|
|
6451
6452
|
ownKeys2.forEach(function(key) {
|
|
6452
|
-
_define_property$
|
|
6453
|
+
_define_property$_(target, key, source[key]);
|
|
6453
6454
|
});
|
|
6454
6455
|
}
|
|
6455
6456
|
return target;
|
|
@@ -6505,7 +6506,7 @@
|
|
|
6505
6506
|
},
|
|
6506
6507
|
{
|
|
6507
6508
|
name: "flip",
|
|
6508
|
-
options: _object_spread$
|
|
6509
|
+
options: _object_spread$Z({
|
|
6509
6510
|
fallbackPlacements: canBeFlipped ? [
|
|
6510
6511
|
"bottom-start",
|
|
6511
6512
|
"top-start"
|
|
@@ -6640,7 +6641,7 @@
|
|
|
6640
6641
|
var complexIcons = {
|
|
6641
6642
|
avatar: avatarGreen
|
|
6642
6643
|
};
|
|
6643
|
-
function _define_property$
|
|
6644
|
+
function _define_property$Z(obj, key, value) {
|
|
6644
6645
|
if (key in obj) {
|
|
6645
6646
|
Object.defineProperty(obj, key, {
|
|
6646
6647
|
value,
|
|
@@ -6653,7 +6654,7 @@
|
|
|
6653
6654
|
}
|
|
6654
6655
|
return obj;
|
|
6655
6656
|
}
|
|
6656
|
-
function _object_spread$
|
|
6657
|
+
function _object_spread$Y(target) {
|
|
6657
6658
|
for (var i = 1; i < arguments.length; i++) {
|
|
6658
6659
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6659
6660
|
var ownKeys2 = Object.keys(source);
|
|
@@ -6663,7 +6664,7 @@
|
|
|
6663
6664
|
}));
|
|
6664
6665
|
}
|
|
6665
6666
|
ownKeys2.forEach(function(key) {
|
|
6666
|
-
_define_property$
|
|
6667
|
+
_define_property$Z(target, key, source[key]);
|
|
6667
6668
|
});
|
|
6668
6669
|
}
|
|
6669
6670
|
return target;
|
|
@@ -6672,7 +6673,7 @@
|
|
|
6672
6673
|
var type = param.type;
|
|
6673
6674
|
var theme = React.useContext(ThemeContext).theme;
|
|
6674
6675
|
var icons = React.useMemo(function() {
|
|
6675
|
-
return _object_spread$
|
|
6676
|
+
return _object_spread$Y({}, complexIcons, theme.complexIcons);
|
|
6676
6677
|
}, []);
|
|
6677
6678
|
var ComplexIcon = icons[type];
|
|
6678
6679
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -7544,7 +7545,7 @@
|
|
|
7544
7545
|
]
|
|
7545
7546
|
}
|
|
7546
7547
|
});
|
|
7547
|
-
function _define_property$
|
|
7548
|
+
function _define_property$Y(obj, key, value) {
|
|
7548
7549
|
if (key in obj) {
|
|
7549
7550
|
Object.defineProperty(obj, key, {
|
|
7550
7551
|
value,
|
|
@@ -7557,7 +7558,7 @@
|
|
|
7557
7558
|
}
|
|
7558
7559
|
return obj;
|
|
7559
7560
|
}
|
|
7560
|
-
function _object_spread$
|
|
7561
|
+
function _object_spread$X(target) {
|
|
7561
7562
|
for (var i = 1; i < arguments.length; i++) {
|
|
7562
7563
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7563
7564
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7567,12 +7568,12 @@
|
|
|
7567
7568
|
}));
|
|
7568
7569
|
}
|
|
7569
7570
|
ownKeys2.forEach(function(key) {
|
|
7570
|
-
_define_property$
|
|
7571
|
+
_define_property$Y(target, key, source[key]);
|
|
7571
7572
|
});
|
|
7572
7573
|
}
|
|
7573
7574
|
return target;
|
|
7574
7575
|
}
|
|
7575
|
-
function ownKeys$
|
|
7576
|
+
function ownKeys$O(object, enumerableOnly) {
|
|
7576
7577
|
var keys2 = Object.keys(object);
|
|
7577
7578
|
if (Object.getOwnPropertySymbols) {
|
|
7578
7579
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7585,12 +7586,12 @@
|
|
|
7585
7586
|
}
|
|
7586
7587
|
return keys2;
|
|
7587
7588
|
}
|
|
7588
|
-
function _object_spread_props$
|
|
7589
|
+
function _object_spread_props$O(target, source) {
|
|
7589
7590
|
source = source != null ? source : {};
|
|
7590
7591
|
if (Object.getOwnPropertyDescriptors) {
|
|
7591
7592
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7592
7593
|
} else {
|
|
7593
|
-
ownKeys$
|
|
7594
|
+
ownKeys$O(Object(source)).forEach(function(key) {
|
|
7594
7595
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7595
7596
|
});
|
|
7596
7597
|
}
|
|
@@ -7601,7 +7602,7 @@
|
|
|
7601
7602
|
var _icon_paths, _icon_rects, _icon_circles;
|
|
7602
7603
|
var theme = React.useContext(ThemeContext).theme;
|
|
7603
7604
|
var icons = React.useMemo(function() {
|
|
7604
|
-
return _object_spread$
|
|
7605
|
+
return _object_spread$X({}, iconsList, theme.icons);
|
|
7605
7606
|
}, []);
|
|
7606
7607
|
var icon = icons[type];
|
|
7607
7608
|
var _icon_viewBox;
|
|
@@ -7614,7 +7615,7 @@
|
|
|
7614
7615
|
children: [
|
|
7615
7616
|
(_icon_paths = icon.paths) === null || _icon_paths === void 0 ? void 0 : _icon_paths.map(function(path, index) {
|
|
7616
7617
|
var _path_fill, _path_stroke;
|
|
7617
|
-
return jsx("path", _object_spread$
|
|
7618
|
+
return jsx("path", _object_spread$X({
|
|
7618
7619
|
fillRule: "evenodd",
|
|
7619
7620
|
clipRule: "evenodd",
|
|
7620
7621
|
fill: (_path_fill = path.fill) !== null && _path_fill !== void 0 ? _path_fill : "currentColor",
|
|
@@ -7622,25 +7623,25 @@
|
|
|
7622
7623
|
}, path), index);
|
|
7623
7624
|
}),
|
|
7624
7625
|
(_icon_rects = icon.rects) === null || _icon_rects === void 0 ? void 0 : _icon_rects.map(function(rect, index) {
|
|
7625
|
-
return /* @__PURE__ */ React.createElement("rect", _object_spread_props$
|
|
7626
|
+
return /* @__PURE__ */ React.createElement("rect", _object_spread_props$O(_object_spread$X({}, rect), {
|
|
7626
7627
|
key: index
|
|
7627
7628
|
}));
|
|
7628
7629
|
}),
|
|
7629
7630
|
(_icon_circles = icon.circles) === null || _icon_circles === void 0 ? void 0 : _icon_circles.map(function(circle, index) {
|
|
7630
|
-
return /* @__PURE__ */ React.createElement("circle", _object_spread_props$
|
|
7631
|
+
return /* @__PURE__ */ React.createElement("circle", _object_spread_props$O(_object_spread$X({}, circle), {
|
|
7631
7632
|
key: index
|
|
7632
7633
|
}));
|
|
7633
7634
|
})
|
|
7634
7635
|
]
|
|
7635
7636
|
});
|
|
7636
7637
|
};
|
|
7637
|
-
var useStyles$
|
|
7638
|
+
var useStyles$T = createThemedStyles("Icon", {
|
|
7638
7639
|
root: {
|
|
7639
7640
|
display: "flex",
|
|
7640
7641
|
alignItems: "center"
|
|
7641
7642
|
}
|
|
7642
7643
|
});
|
|
7643
|
-
function _define_property$
|
|
7644
|
+
function _define_property$X(obj, key, value) {
|
|
7644
7645
|
if (key in obj) {
|
|
7645
7646
|
Object.defineProperty(obj, key, {
|
|
7646
7647
|
value,
|
|
@@ -7653,7 +7654,7 @@
|
|
|
7653
7654
|
}
|
|
7654
7655
|
return obj;
|
|
7655
7656
|
}
|
|
7656
|
-
function _object_spread$
|
|
7657
|
+
function _object_spread$W(target) {
|
|
7657
7658
|
for (var i = 1; i < arguments.length; i++) {
|
|
7658
7659
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7659
7660
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7663,12 +7664,12 @@
|
|
|
7663
7664
|
}));
|
|
7664
7665
|
}
|
|
7665
7666
|
ownKeys2.forEach(function(key) {
|
|
7666
|
-
_define_property$
|
|
7667
|
+
_define_property$X(target, key, source[key]);
|
|
7667
7668
|
});
|
|
7668
7669
|
}
|
|
7669
7670
|
return target;
|
|
7670
7671
|
}
|
|
7671
|
-
function ownKeys$
|
|
7672
|
+
function ownKeys$N(object, enumerableOnly) {
|
|
7672
7673
|
var keys2 = Object.keys(object);
|
|
7673
7674
|
if (Object.getOwnPropertySymbols) {
|
|
7674
7675
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7681,12 +7682,12 @@
|
|
|
7681
7682
|
}
|
|
7682
7683
|
return keys2;
|
|
7683
7684
|
}
|
|
7684
|
-
function _object_spread_props$
|
|
7685
|
+
function _object_spread_props$N(target, source) {
|
|
7685
7686
|
source = source != null ? source : {};
|
|
7686
7687
|
if (Object.getOwnPropertyDescriptors) {
|
|
7687
7688
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7688
7689
|
} else {
|
|
7689
|
-
ownKeys$
|
|
7690
|
+
ownKeys$N(Object(source)).forEach(function(key) {
|
|
7690
7691
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7691
7692
|
});
|
|
7692
7693
|
}
|
|
@@ -7694,10 +7695,10 @@
|
|
|
7694
7695
|
}
|
|
7695
7696
|
var Icon = function(param) {
|
|
7696
7697
|
var type = param.type, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
7697
|
-
var classes = useStyles$
|
|
7698
|
+
var classes = useStyles$T({
|
|
7698
7699
|
theme: tweakStyles
|
|
7699
7700
|
});
|
|
7700
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
7701
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$N(_object_spread$W({
|
|
7701
7702
|
className: classes.root
|
|
7702
7703
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
7703
7704
|
children: isComplexIcon(type) ? /* @__PURE__ */ jsx(ComplexIconBoilerplate, {
|
|
@@ -7713,9 +7714,9 @@
|
|
|
7713
7714
|
}) : icon;
|
|
7714
7715
|
};
|
|
7715
7716
|
var ITEM_HORIZONTAL_PADDING$1 = 16;
|
|
7716
|
-
var ICON_SIZE$
|
|
7717
|
+
var ICON_SIZE$2 = 20;
|
|
7717
7718
|
var ICON_GAP$1 = 12;
|
|
7718
|
-
var useStyles$
|
|
7719
|
+
var useStyles$S = createThemedStyles("ListItem", {
|
|
7719
7720
|
root: {
|
|
7720
7721
|
display: "flex",
|
|
7721
7722
|
alignItems: "center",
|
|
@@ -7727,7 +7728,8 @@
|
|
|
7727
7728
|
0,
|
|
7728
7729
|
ITEM_HORIZONTAL_PADDING$1
|
|
7729
7730
|
],
|
|
7730
|
-
transition:
|
|
7731
|
+
transition: animations.defaultTransition,
|
|
7732
|
+
transitionProperty: "background-color",
|
|
7731
7733
|
cursor: "pointer"
|
|
7732
7734
|
},
|
|
7733
7735
|
default: {},
|
|
@@ -7740,17 +7742,17 @@
|
|
|
7740
7742
|
backgroundColor: colors.BORDER_LIGHT
|
|
7741
7743
|
},
|
|
7742
7744
|
withIconGap: {
|
|
7743
|
-
paddingLeft: ITEM_HORIZONTAL_PADDING$1 + ICON_SIZE$
|
|
7745
|
+
paddingLeft: ITEM_HORIZONTAL_PADDING$1 + ICON_SIZE$2 + ICON_GAP$1
|
|
7744
7746
|
},
|
|
7745
7747
|
icon: {
|
|
7746
|
-
width: ICON_SIZE$
|
|
7747
|
-
height: ICON_SIZE$
|
|
7748
|
+
width: ICON_SIZE$2,
|
|
7749
|
+
height: ICON_SIZE$2,
|
|
7748
7750
|
marginRight: ICON_GAP$1,
|
|
7749
7751
|
flexShrink: 0
|
|
7750
7752
|
},
|
|
7751
7753
|
content: {}
|
|
7752
7754
|
});
|
|
7753
|
-
function _define_property$
|
|
7755
|
+
function _define_property$W(obj, key, value) {
|
|
7754
7756
|
if (key in obj) {
|
|
7755
7757
|
Object.defineProperty(obj, key, {
|
|
7756
7758
|
value,
|
|
@@ -7763,7 +7765,7 @@
|
|
|
7763
7765
|
}
|
|
7764
7766
|
return obj;
|
|
7765
7767
|
}
|
|
7766
|
-
function _object_spread$
|
|
7768
|
+
function _object_spread$V(target) {
|
|
7767
7769
|
for (var i = 1; i < arguments.length; i++) {
|
|
7768
7770
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7769
7771
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7773,12 +7775,12 @@
|
|
|
7773
7775
|
}));
|
|
7774
7776
|
}
|
|
7775
7777
|
ownKeys2.forEach(function(key) {
|
|
7776
|
-
_define_property$
|
|
7778
|
+
_define_property$W(target, key, source[key]);
|
|
7777
7779
|
});
|
|
7778
7780
|
}
|
|
7779
7781
|
return target;
|
|
7780
7782
|
}
|
|
7781
|
-
function ownKeys$
|
|
7783
|
+
function ownKeys$M(object, enumerableOnly) {
|
|
7782
7784
|
var keys2 = Object.keys(object);
|
|
7783
7785
|
if (Object.getOwnPropertySymbols) {
|
|
7784
7786
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7791,12 +7793,12 @@
|
|
|
7791
7793
|
}
|
|
7792
7794
|
return keys2;
|
|
7793
7795
|
}
|
|
7794
|
-
function _object_spread_props$
|
|
7796
|
+
function _object_spread_props$M(target, source) {
|
|
7795
7797
|
source = source != null ? source : {};
|
|
7796
7798
|
if (Object.getOwnPropertyDescriptors) {
|
|
7797
7799
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7798
7800
|
} else {
|
|
7799
|
-
ownKeys$
|
|
7801
|
+
ownKeys$M(Object(source)).forEach(function(key) {
|
|
7800
7802
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7801
7803
|
});
|
|
7802
7804
|
}
|
|
@@ -7804,7 +7806,7 @@
|
|
|
7804
7806
|
}
|
|
7805
7807
|
var ListItem = function(param) {
|
|
7806
7808
|
var isDisabled = param.disabled, icon = param.icon, item = param.item, 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;
|
|
7807
|
-
var classes = useStyles$
|
|
7809
|
+
var classes = useStyles$S({
|
|
7808
7810
|
theme: tweakStyles
|
|
7809
7811
|
});
|
|
7810
7812
|
var _obj;
|
|
@@ -7813,9 +7815,9 @@
|
|
|
7813
7815
|
shouldDrawSpacerAbove && /* @__PURE__ */ jsx("div", {
|
|
7814
7816
|
className: classes.spacer
|
|
7815
7817
|
}),
|
|
7816
|
-
/* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
7817
|
-
className: clsx(classes.root, classes[view], (_obj = {}, _define_property$
|
|
7818
|
-
}, trueReactPlatformHelpers.addClickHandler(onClick, !isDisabled), trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(_object_spread_props$
|
|
7818
|
+
/* @__PURE__ */ jsxs("div", _object_spread_props$M(_object_spread$V({
|
|
7819
|
+
className: clsx(classes.root, classes[view], (_obj = {}, _define_property$W(_obj, classes.disabledItem, isDisabled), _define_property$W(_obj, classes.withIconGap, withIconGap), _obj))
|
|
7820
|
+
}, trueReactPlatformHelpers.addClickHandler(onClick, !isDisabled), trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(_object_spread_props$M(_object_spread$V({}, data), {
|
|
7819
7821
|
disabled: isDisabled ? true : void 0
|
|
7820
7822
|
}))), {
|
|
7821
7823
|
children: [
|
|
@@ -7836,9 +7838,9 @@
|
|
|
7836
7838
|
});
|
|
7837
7839
|
};
|
|
7838
7840
|
var ITEM_HORIZONTAL_PADDING = 16;
|
|
7839
|
-
var ICON_SIZE = 20;
|
|
7841
|
+
var ICON_SIZE$1 = 20;
|
|
7840
7842
|
var ICON_GAP = 12;
|
|
7841
|
-
var useStyles$
|
|
7843
|
+
var useStyles$R = createThemedStyles("List", {
|
|
7842
7844
|
root: {
|
|
7843
7845
|
minWidth: 180,
|
|
7844
7846
|
backgroundColor: colors.CLASSIC_WHITE,
|
|
@@ -7860,7 +7862,8 @@
|
|
|
7860
7862
|
0,
|
|
7861
7863
|
ITEM_HORIZONTAL_PADDING
|
|
7862
7864
|
],
|
|
7863
|
-
transition:
|
|
7865
|
+
transition: animations.defaultTransition,
|
|
7866
|
+
transitionProperty: "background-color",
|
|
7864
7867
|
cursor: "pointer"
|
|
7865
7868
|
},
|
|
7866
7869
|
disabledItem: {
|
|
@@ -7871,17 +7874,17 @@
|
|
|
7871
7874
|
backgroundColor: colors.BORDER_LIGHT
|
|
7872
7875
|
},
|
|
7873
7876
|
withIconGap: {
|
|
7874
|
-
paddingLeft: ITEM_HORIZONTAL_PADDING + ICON_SIZE + ICON_GAP
|
|
7877
|
+
paddingLeft: ITEM_HORIZONTAL_PADDING + ICON_SIZE$1 + ICON_GAP
|
|
7875
7878
|
},
|
|
7876
7879
|
icon: {
|
|
7877
|
-
width: ICON_SIZE,
|
|
7878
|
-
height: ICON_SIZE,
|
|
7880
|
+
width: ICON_SIZE$1,
|
|
7881
|
+
height: ICON_SIZE$1,
|
|
7879
7882
|
marginRight: ICON_GAP,
|
|
7880
7883
|
flexShrink: 0
|
|
7881
7884
|
},
|
|
7882
7885
|
content: {}
|
|
7883
7886
|
});
|
|
7884
|
-
function _define_property$
|
|
7887
|
+
function _define_property$V(obj, key, value) {
|
|
7885
7888
|
if (key in obj) {
|
|
7886
7889
|
Object.defineProperty(obj, key, {
|
|
7887
7890
|
value,
|
|
@@ -7894,7 +7897,7 @@
|
|
|
7894
7897
|
}
|
|
7895
7898
|
return obj;
|
|
7896
7899
|
}
|
|
7897
|
-
function _object_spread$
|
|
7900
|
+
function _object_spread$U(target) {
|
|
7898
7901
|
for (var i = 1; i < arguments.length; i++) {
|
|
7899
7902
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7900
7903
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7904,12 +7907,12 @@
|
|
|
7904
7907
|
}));
|
|
7905
7908
|
}
|
|
7906
7909
|
ownKeys2.forEach(function(key) {
|
|
7907
|
-
_define_property$
|
|
7910
|
+
_define_property$V(target, key, source[key]);
|
|
7908
7911
|
});
|
|
7909
7912
|
}
|
|
7910
7913
|
return target;
|
|
7911
7914
|
}
|
|
7912
|
-
function ownKeys$
|
|
7915
|
+
function ownKeys$L(object, enumerableOnly) {
|
|
7913
7916
|
var keys2 = Object.keys(object);
|
|
7914
7917
|
if (Object.getOwnPropertySymbols) {
|
|
7915
7918
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7922,12 +7925,12 @@
|
|
|
7922
7925
|
}
|
|
7923
7926
|
return keys2;
|
|
7924
7927
|
}
|
|
7925
|
-
function _object_spread_props$
|
|
7928
|
+
function _object_spread_props$L(target, source) {
|
|
7926
7929
|
source = source != null ? source : {};
|
|
7927
7930
|
if (Object.getOwnPropertyDescriptors) {
|
|
7928
7931
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7929
7932
|
} else {
|
|
7930
|
-
ownKeys$
|
|
7933
|
+
ownKeys$L(Object(source)).forEach(function(key) {
|
|
7931
7934
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7932
7935
|
});
|
|
7933
7936
|
}
|
|
@@ -7935,18 +7938,18 @@
|
|
|
7935
7938
|
}
|
|
7936
7939
|
var List = function(param) {
|
|
7937
7940
|
var items = param.items, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles, onClick = param.onClick;
|
|
7938
|
-
var classes = useStyles$
|
|
7941
|
+
var classes = useStyles$R({
|
|
7939
7942
|
theme: tweakStyles
|
|
7940
7943
|
});
|
|
7941
7944
|
var handleItemClick = function(event, item) {
|
|
7942
7945
|
item.onClick(event);
|
|
7943
7946
|
onClick === null || onClick === void 0 ? void 0 : onClick(event);
|
|
7944
7947
|
};
|
|
7945
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
7948
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$L(_object_spread$U({
|
|
7946
7949
|
className: classes.root
|
|
7947
7950
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
7948
7951
|
children: items.map(function(item, i) {
|
|
7949
|
-
return /* @__PURE__ */ jsx(ListItem, _object_spread_props$
|
|
7952
|
+
return /* @__PURE__ */ jsx(ListItem, _object_spread_props$L(_object_spread$U({
|
|
7950
7953
|
testId: trueReactPlatformHelpers.getTestId(testId, "item-".concat(i))
|
|
7951
7954
|
}, item), {
|
|
7952
7955
|
onClick: function(event) {
|
|
@@ -7957,7 +7960,7 @@
|
|
|
7957
7960
|
}));
|
|
7958
7961
|
};
|
|
7959
7962
|
var ANIMATION_TIMEOUT = 150;
|
|
7960
|
-
function _define_property$
|
|
7963
|
+
function _define_property$U(obj, key, value) {
|
|
7961
7964
|
if (key in obj) {
|
|
7962
7965
|
Object.defineProperty(obj, key, {
|
|
7963
7966
|
value,
|
|
@@ -7970,7 +7973,7 @@
|
|
|
7970
7973
|
}
|
|
7971
7974
|
return obj;
|
|
7972
7975
|
}
|
|
7973
|
-
function _object_spread$
|
|
7976
|
+
function _object_spread$T(target) {
|
|
7974
7977
|
for (var i = 1; i < arguments.length; i++) {
|
|
7975
7978
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7976
7979
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7980,12 +7983,12 @@
|
|
|
7980
7983
|
}));
|
|
7981
7984
|
}
|
|
7982
7985
|
ownKeys2.forEach(function(key) {
|
|
7983
|
-
_define_property$
|
|
7986
|
+
_define_property$U(target, key, source[key]);
|
|
7984
7987
|
});
|
|
7985
7988
|
}
|
|
7986
7989
|
return target;
|
|
7987
7990
|
}
|
|
7988
|
-
var useStyles$
|
|
7991
|
+
var useStyles$Q = createThemedStyles("AccountInfo", _object_spread$T({
|
|
7989
7992
|
root: {
|
|
7990
7993
|
display: "flex"
|
|
7991
7994
|
},
|
|
@@ -8003,13 +8006,14 @@
|
|
|
8003
8006
|
10
|
|
8004
8007
|
],
|
|
8005
8008
|
fontSize: 14,
|
|
8006
|
-
transition:
|
|
8009
|
+
transition: animations.defaultTransition,
|
|
8010
|
+
transitionProperty: "color"
|
|
8007
8011
|
},
|
|
8008
8012
|
accountNameOpened: {},
|
|
8009
8013
|
accountChevron: {
|
|
8010
8014
|
width: 16,
|
|
8011
8015
|
height: 16,
|
|
8012
|
-
transition:
|
|
8016
|
+
transition: animations.defaultTransition,
|
|
8013
8017
|
transitionProperty: "transform, color"
|
|
8014
8018
|
},
|
|
8015
8019
|
accountChevronOpened: {
|
|
@@ -8038,7 +8042,7 @@
|
|
|
8038
8042
|
if (Array.isArray(arr))
|
|
8039
8043
|
return arr;
|
|
8040
8044
|
}
|
|
8041
|
-
function _define_property$
|
|
8045
|
+
function _define_property$T(obj, key, value) {
|
|
8042
8046
|
if (key in obj) {
|
|
8043
8047
|
Object.defineProperty(obj, key, {
|
|
8044
8048
|
value,
|
|
@@ -8082,7 +8086,7 @@
|
|
|
8082
8086
|
function _non_iterable_rest$p() {
|
|
8083
8087
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8084
8088
|
}
|
|
8085
|
-
function _object_spread$
|
|
8089
|
+
function _object_spread$S(target) {
|
|
8086
8090
|
for (var i = 1; i < arguments.length; i++) {
|
|
8087
8091
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8088
8092
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8092,12 +8096,12 @@
|
|
|
8092
8096
|
}));
|
|
8093
8097
|
}
|
|
8094
8098
|
ownKeys2.forEach(function(key) {
|
|
8095
|
-
_define_property$
|
|
8099
|
+
_define_property$T(target, key, source[key]);
|
|
8096
8100
|
});
|
|
8097
8101
|
}
|
|
8098
8102
|
return target;
|
|
8099
8103
|
}
|
|
8100
|
-
function ownKeys$
|
|
8104
|
+
function ownKeys$K(object, enumerableOnly) {
|
|
8101
8105
|
var keys2 = Object.keys(object);
|
|
8102
8106
|
if (Object.getOwnPropertySymbols) {
|
|
8103
8107
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8110,12 +8114,12 @@
|
|
|
8110
8114
|
}
|
|
8111
8115
|
return keys2;
|
|
8112
8116
|
}
|
|
8113
|
-
function _object_spread_props$
|
|
8117
|
+
function _object_spread_props$K(target, source) {
|
|
8114
8118
|
source = source != null ? source : {};
|
|
8115
8119
|
if (Object.getOwnPropertyDescriptors) {
|
|
8116
8120
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8117
8121
|
} else {
|
|
8118
|
-
ownKeys$
|
|
8122
|
+
ownKeys$K(Object(source)).forEach(function(key) {
|
|
8119
8123
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8120
8124
|
});
|
|
8121
8125
|
}
|
|
@@ -8139,7 +8143,7 @@
|
|
|
8139
8143
|
}
|
|
8140
8144
|
var AccountInfo = function(param) {
|
|
8141
8145
|
var data = param.data, testId = param.testId, avatar = param.avatar, tweakStyles = param.tweakStyles, accountName = param.accountName, options = param.options;
|
|
8142
|
-
var classes = useStyles$
|
|
8146
|
+
var classes = useStyles$Q({
|
|
8143
8147
|
theme: tweakStyles
|
|
8144
8148
|
});
|
|
8145
8149
|
var tweakListStyles = useTweakStyles({
|
|
@@ -8159,7 +8163,7 @@
|
|
|
8159
8163
|
useOnClickOutsideWithRef(dropdownRef, function() {
|
|
8160
8164
|
return setIsMenuOpen(false);
|
|
8161
8165
|
}, nameRef);
|
|
8162
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
8166
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$K(_object_spread$S({
|
|
8163
8167
|
className: classes.root
|
|
8164
8168
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
8165
8169
|
children: [
|
|
@@ -8209,7 +8213,7 @@
|
|
|
8209
8213
|
]
|
|
8210
8214
|
}));
|
|
8211
8215
|
};
|
|
8212
|
-
var useStyles$
|
|
8216
|
+
var useStyles$P = createThemedStyles("AddButton", {
|
|
8213
8217
|
root: {
|
|
8214
8218
|
display: "flex",
|
|
8215
8219
|
alignItems: "center",
|
|
@@ -8235,7 +8239,7 @@
|
|
|
8235
8239
|
width: "100%"
|
|
8236
8240
|
}
|
|
8237
8241
|
});
|
|
8238
|
-
function _define_property$
|
|
8242
|
+
function _define_property$S(obj, key, value) {
|
|
8239
8243
|
if (key in obj) {
|
|
8240
8244
|
Object.defineProperty(obj, key, {
|
|
8241
8245
|
value,
|
|
@@ -8248,7 +8252,7 @@
|
|
|
8248
8252
|
}
|
|
8249
8253
|
return obj;
|
|
8250
8254
|
}
|
|
8251
|
-
function _object_spread$
|
|
8255
|
+
function _object_spread$R(target) {
|
|
8252
8256
|
for (var i = 1; i < arguments.length; i++) {
|
|
8253
8257
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8254
8258
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8258,12 +8262,12 @@
|
|
|
8258
8262
|
}));
|
|
8259
8263
|
}
|
|
8260
8264
|
ownKeys2.forEach(function(key) {
|
|
8261
|
-
_define_property$
|
|
8265
|
+
_define_property$S(target, key, source[key]);
|
|
8262
8266
|
});
|
|
8263
8267
|
}
|
|
8264
8268
|
return target;
|
|
8265
8269
|
}
|
|
8266
|
-
function ownKeys$
|
|
8270
|
+
function ownKeys$J(object, enumerableOnly) {
|
|
8267
8271
|
var keys2 = Object.keys(object);
|
|
8268
8272
|
if (Object.getOwnPropertySymbols) {
|
|
8269
8273
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8276,12 +8280,12 @@
|
|
|
8276
8280
|
}
|
|
8277
8281
|
return keys2;
|
|
8278
8282
|
}
|
|
8279
|
-
function _object_spread_props$
|
|
8283
|
+
function _object_spread_props$J(target, source) {
|
|
8280
8284
|
source = source != null ? source : {};
|
|
8281
8285
|
if (Object.getOwnPropertyDescriptors) {
|
|
8282
8286
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8283
8287
|
} else {
|
|
8284
|
-
ownKeys$
|
|
8288
|
+
ownKeys$J(Object(source)).forEach(function(key) {
|
|
8285
8289
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8286
8290
|
});
|
|
8287
8291
|
}
|
|
@@ -8289,10 +8293,10 @@
|
|
|
8289
8293
|
}
|
|
8290
8294
|
var AddButton = function(param) {
|
|
8291
8295
|
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;
|
|
8292
|
-
var classes = useStyles$
|
|
8296
|
+
var classes = useStyles$P({
|
|
8293
8297
|
theme: tweakStyles
|
|
8294
8298
|
});
|
|
8295
|
-
return /* @__PURE__ */ jsxs("button", _object_spread_props$
|
|
8299
|
+
return /* @__PURE__ */ jsxs("button", _object_spread_props$J(_object_spread$R({
|
|
8296
8300
|
type,
|
|
8297
8301
|
className: clsx(classes.root, isDisabled && classes.disabled, isFullWidth && classes.fullWidth),
|
|
8298
8302
|
onClick: !isDisabled ? onClick : void 0,
|
|
@@ -8311,7 +8315,7 @@
|
|
|
8311
8315
|
]
|
|
8312
8316
|
}));
|
|
8313
8317
|
};
|
|
8314
|
-
var useStyles$
|
|
8318
|
+
var useStyles$O = createThemedStyles("DotsPreloader", {
|
|
8315
8319
|
root: {
|
|
8316
8320
|
display: "flex",
|
|
8317
8321
|
gap: 4,
|
|
@@ -8356,7 +8360,7 @@
|
|
|
8356
8360
|
});
|
|
8357
8361
|
var DotsPreloader = function(param) {
|
|
8358
8362
|
var tweakStyles = param.tweakStyles;
|
|
8359
|
-
var classes = useStyles$
|
|
8363
|
+
var classes = useStyles$O({
|
|
8360
8364
|
theme: tweakStyles
|
|
8361
8365
|
});
|
|
8362
8366
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -8422,7 +8426,7 @@
|
|
|
8422
8426
|
]
|
|
8423
8427
|
});
|
|
8424
8428
|
};
|
|
8425
|
-
var useStyles$
|
|
8429
|
+
var useStyles$N = createThemedStyles("SvgPreloader", {
|
|
8426
8430
|
root: {
|
|
8427
8431
|
display: "flex",
|
|
8428
8432
|
width: "100%",
|
|
@@ -8432,7 +8436,7 @@
|
|
|
8432
8436
|
var SvgPreloader = function(param) {
|
|
8433
8437
|
var _param_type = param.type, type = _param_type === void 0 ? "default" : _param_type, tweakStyles = param.tweakStyles;
|
|
8434
8438
|
var _theme_preloaders;
|
|
8435
|
-
var classes = useStyles$
|
|
8439
|
+
var classes = useStyles$N({
|
|
8436
8440
|
theme: tweakStyles
|
|
8437
8441
|
});
|
|
8438
8442
|
var theme = React.useContext(ThemeContext).theme;
|
|
@@ -8446,7 +8450,7 @@
|
|
|
8446
8450
|
}
|
|
8447
8451
|
}) : /* @__PURE__ */ jsx(PreloaderIcon, {});
|
|
8448
8452
|
};
|
|
8449
|
-
var useStyles$
|
|
8453
|
+
var useStyles$M = createThemedStyles("ThemedPreloader", {
|
|
8450
8454
|
root: {
|
|
8451
8455
|
display: "flex"
|
|
8452
8456
|
},
|
|
@@ -8457,7 +8461,7 @@
|
|
|
8457
8461
|
color: "currentColor"
|
|
8458
8462
|
}
|
|
8459
8463
|
});
|
|
8460
|
-
function _define_property$
|
|
8464
|
+
function _define_property$R(obj, key, value) {
|
|
8461
8465
|
if (key in obj) {
|
|
8462
8466
|
Object.defineProperty(obj, key, {
|
|
8463
8467
|
value,
|
|
@@ -8470,7 +8474,7 @@
|
|
|
8470
8474
|
}
|
|
8471
8475
|
return obj;
|
|
8472
8476
|
}
|
|
8473
|
-
function _object_spread$
|
|
8477
|
+
function _object_spread$Q(target) {
|
|
8474
8478
|
for (var i = 1; i < arguments.length; i++) {
|
|
8475
8479
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8476
8480
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8480,12 +8484,12 @@
|
|
|
8480
8484
|
}));
|
|
8481
8485
|
}
|
|
8482
8486
|
ownKeys2.forEach(function(key) {
|
|
8483
|
-
_define_property$
|
|
8487
|
+
_define_property$R(target, key, source[key]);
|
|
8484
8488
|
});
|
|
8485
8489
|
}
|
|
8486
8490
|
return target;
|
|
8487
8491
|
}
|
|
8488
|
-
function ownKeys$
|
|
8492
|
+
function ownKeys$I(object, enumerableOnly) {
|
|
8489
8493
|
var keys2 = Object.keys(object);
|
|
8490
8494
|
if (Object.getOwnPropertySymbols) {
|
|
8491
8495
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8498,12 +8502,12 @@
|
|
|
8498
8502
|
}
|
|
8499
8503
|
return keys2;
|
|
8500
8504
|
}
|
|
8501
|
-
function _object_spread_props$
|
|
8505
|
+
function _object_spread_props$I(target, source) {
|
|
8502
8506
|
source = source != null ? source : {};
|
|
8503
8507
|
if (Object.getOwnPropertyDescriptors) {
|
|
8504
8508
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8505
8509
|
} else {
|
|
8506
|
-
ownKeys$
|
|
8510
|
+
ownKeys$I(Object(source)).forEach(function(key) {
|
|
8507
8511
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8508
8512
|
});
|
|
8509
8513
|
}
|
|
@@ -8511,7 +8515,7 @@
|
|
|
8511
8515
|
}
|
|
8512
8516
|
var ThemedPreloader = function(param) {
|
|
8513
8517
|
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;
|
|
8514
|
-
var classes = useStyles$
|
|
8518
|
+
var classes = useStyles$M({
|
|
8515
8519
|
theme: tweakStyles
|
|
8516
8520
|
});
|
|
8517
8521
|
var tweakDotsPreloaderStyles = useTweakStyles({
|
|
@@ -8524,8 +8528,8 @@
|
|
|
8524
8528
|
className: "tweakSvgPreloader",
|
|
8525
8529
|
currentComponentName: "ThemedPreloader"
|
|
8526
8530
|
});
|
|
8527
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8528
|
-
className: clsx(classes.root, classes[type], _define_property$
|
|
8531
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$I(_object_spread$Q({
|
|
8532
|
+
className: clsx(classes.root, classes[type], _define_property$R({}, classes.currentColor, useCurrentColor))
|
|
8529
8533
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
8530
8534
|
children: type === "dots" ? /* @__PURE__ */ jsx(DotsPreloader, {
|
|
8531
8535
|
tweakStyles: tweakDotsPreloaderStyles
|
|
@@ -8535,7 +8539,7 @@
|
|
|
8535
8539
|
})
|
|
8536
8540
|
}));
|
|
8537
8541
|
};
|
|
8538
|
-
var useStyles$
|
|
8542
|
+
var useStyles$L = createThemedStyles("Button", {
|
|
8539
8543
|
root: {
|
|
8540
8544
|
display: "flex",
|
|
8541
8545
|
justifyContent: "center",
|
|
@@ -8543,7 +8547,7 @@
|
|
|
8543
8547
|
cursor: "pointer",
|
|
8544
8548
|
outline: "none",
|
|
8545
8549
|
boxSizing: "border-box",
|
|
8546
|
-
transition:
|
|
8550
|
+
transition: animations.defaultTransition,
|
|
8547
8551
|
transitionProperty: "background-color, color, box-shadow, border-color",
|
|
8548
8552
|
maxWidth: "100%",
|
|
8549
8553
|
border: [
|
|
@@ -8706,7 +8710,7 @@
|
|
|
8706
8710
|
var getPreloaderStyles = function(size) {
|
|
8707
8711
|
return size === "s" || size === "m" ? dotsPreloaderStyles : void 0;
|
|
8708
8712
|
};
|
|
8709
|
-
function _define_property$
|
|
8713
|
+
function _define_property$Q(obj, key, value) {
|
|
8710
8714
|
if (key in obj) {
|
|
8711
8715
|
Object.defineProperty(obj, key, {
|
|
8712
8716
|
value,
|
|
@@ -8719,7 +8723,7 @@
|
|
|
8719
8723
|
}
|
|
8720
8724
|
return obj;
|
|
8721
8725
|
}
|
|
8722
|
-
function _object_spread$
|
|
8726
|
+
function _object_spread$P(target) {
|
|
8723
8727
|
for (var i = 1; i < arguments.length; i++) {
|
|
8724
8728
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8725
8729
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8729,12 +8733,12 @@
|
|
|
8729
8733
|
}));
|
|
8730
8734
|
}
|
|
8731
8735
|
ownKeys2.forEach(function(key) {
|
|
8732
|
-
_define_property$
|
|
8736
|
+
_define_property$Q(target, key, source[key]);
|
|
8733
8737
|
});
|
|
8734
8738
|
}
|
|
8735
8739
|
return target;
|
|
8736
8740
|
}
|
|
8737
|
-
function ownKeys$
|
|
8741
|
+
function ownKeys$H(object, enumerableOnly) {
|
|
8738
8742
|
var keys2 = Object.keys(object);
|
|
8739
8743
|
if (Object.getOwnPropertySymbols) {
|
|
8740
8744
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8747,12 +8751,12 @@
|
|
|
8747
8751
|
}
|
|
8748
8752
|
return keys2;
|
|
8749
8753
|
}
|
|
8750
|
-
function _object_spread_props$
|
|
8754
|
+
function _object_spread_props$H(target, source) {
|
|
8751
8755
|
source = source != null ? source : {};
|
|
8752
8756
|
if (Object.getOwnPropertyDescriptors) {
|
|
8753
8757
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8754
8758
|
} else {
|
|
8755
|
-
ownKeys$
|
|
8759
|
+
ownKeys$H(Object(source)).forEach(function(key) {
|
|
8756
8760
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8757
8761
|
});
|
|
8758
8762
|
}
|
|
@@ -8760,7 +8764,7 @@
|
|
|
8760
8764
|
}
|
|
8761
8765
|
var Button = /* @__PURE__ */ React.forwardRef(function(param, ref) {
|
|
8762
8766
|
var _param_type = param.type, type = _param_type === void 0 ? "button" : _param_type, children = param.children, _param_size = param.size, size = _param_size === void 0 ? "l" : _param_size, _param_view = param.view, view = _param_view === void 0 ? "primary" : _param_view, _param_isFullWidth = param.isFullWidth, isFullWidth = _param_isFullWidth === void 0 ? false : _param_isFullWidth, _param_isInline = param.isInline, isInline = _param_isInline === void 0 ? false : _param_isInline, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isActive = param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_shouldSkipTabNavigation = param.shouldSkipTabNavigation, shouldSkipTabNavigation = _param_shouldSkipTabNavigation === void 0 ? false : _param_shouldSkipTabNavigation, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles, icon = param.icon, _param_iconPosition = param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "left" : _param_iconPosition, _param_preloaderType = param.preloaderType, preloaderType = _param_preloaderType === void 0 ? "dots" : _param_preloaderType, onClick = param.onClick, onMouseDown = param.onMouseDown;
|
|
8763
|
-
var classes = useStyles$
|
|
8767
|
+
var classes = useStyles$L({
|
|
8764
8768
|
theme: tweakStyles
|
|
8765
8769
|
});
|
|
8766
8770
|
var tweakPreloaderStyles = useTweakStyles({
|
|
@@ -8773,10 +8777,10 @@
|
|
|
8773
8777
|
var hasChildren = trueReactPlatformHelpers.isReactNodeNotEmpty(children);
|
|
8774
8778
|
var hasNoAction = isDisabled || isLoading;
|
|
8775
8779
|
var _obj, _obj1;
|
|
8776
|
-
return /* @__PURE__ */ jsxs("button", _object_spread_props$
|
|
8780
|
+
return /* @__PURE__ */ jsxs("button", _object_spread_props$H(_object_spread$P({
|
|
8777
8781
|
ref,
|
|
8778
8782
|
type,
|
|
8779
|
-
className: clsx(classes.root, classes[size], classes[view], (_obj = {}, _define_property$
|
|
8783
|
+
className: clsx(classes.root, classes[size], classes[view], (_obj = {}, _define_property$Q(_obj, classes.disabled, isDisabled), _define_property$Q(_obj, classes.fullWidth, isFullWidth), _define_property$Q(_obj, classes.inline, isInline), _define_property$Q(_obj, classes.active, isActive), _define_property$Q(_obj, classes.loading, isLoading), _define_property$Q(_obj, classes.onlyIcon, hasIcon && !hasChildren), _obj)),
|
|
8780
8784
|
tabIndex: shouldSkipTabNavigation ? -1 : void 0,
|
|
8781
8785
|
disabled: hasNoAction,
|
|
8782
8786
|
onClick: !hasNoAction ? onClick : void 0,
|
|
@@ -8784,7 +8788,7 @@
|
|
|
8784
8788
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
8785
8789
|
children: [
|
|
8786
8790
|
/* @__PURE__ */ jsxs("span", {
|
|
8787
|
-
className: clsx(classes.content, (_obj1 = {}, _define_property$
|
|
8791
|
+
className: clsx(classes.content, (_obj1 = {}, _define_property$Q(_obj1, classes.iconFromRight, hasChildren && hasIcon && iconPosition === "right"), _define_property$Q(_obj1, classes.iconFromLeft, hasChildren && hasIcon && iconPosition === "left"), _obj1)),
|
|
8788
8792
|
children: [
|
|
8789
8793
|
hasIcon && /* @__PURE__ */ jsx("span", {
|
|
8790
8794
|
className: classes.icon,
|
|
@@ -8807,7 +8811,7 @@
|
|
|
8807
8811
|
]
|
|
8808
8812
|
}));
|
|
8809
8813
|
});
|
|
8810
|
-
var useStyles$
|
|
8814
|
+
var useStyles$K = createThemedStyles("Checkbox", {
|
|
8811
8815
|
root: {
|
|
8812
8816
|
cursor: "pointer",
|
|
8813
8817
|
display: "flex",
|
|
@@ -8855,7 +8859,7 @@
|
|
|
8855
8859
|
if (Array.isArray(arr))
|
|
8856
8860
|
return arr;
|
|
8857
8861
|
}
|
|
8858
|
-
function _define_property$
|
|
8862
|
+
function _define_property$P(obj, key, value) {
|
|
8859
8863
|
if (key in obj) {
|
|
8860
8864
|
Object.defineProperty(obj, key, {
|
|
8861
8865
|
value,
|
|
@@ -8899,7 +8903,7 @@
|
|
|
8899
8903
|
function _non_iterable_rest$o() {
|
|
8900
8904
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8901
8905
|
}
|
|
8902
|
-
function _object_spread$
|
|
8906
|
+
function _object_spread$O(target) {
|
|
8903
8907
|
for (var i = 1; i < arguments.length; i++) {
|
|
8904
8908
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8905
8909
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8909,12 +8913,12 @@
|
|
|
8909
8913
|
}));
|
|
8910
8914
|
}
|
|
8911
8915
|
ownKeys2.forEach(function(key) {
|
|
8912
|
-
_define_property$
|
|
8916
|
+
_define_property$P(target, key, source[key]);
|
|
8913
8917
|
});
|
|
8914
8918
|
}
|
|
8915
8919
|
return target;
|
|
8916
8920
|
}
|
|
8917
|
-
function ownKeys$
|
|
8921
|
+
function ownKeys$G(object, enumerableOnly) {
|
|
8918
8922
|
var keys2 = Object.keys(object);
|
|
8919
8923
|
if (Object.getOwnPropertySymbols) {
|
|
8920
8924
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8927,12 +8931,12 @@
|
|
|
8927
8931
|
}
|
|
8928
8932
|
return keys2;
|
|
8929
8933
|
}
|
|
8930
|
-
function _object_spread_props$
|
|
8934
|
+
function _object_spread_props$G(target, source) {
|
|
8931
8935
|
source = source != null ? source : {};
|
|
8932
8936
|
if (Object.getOwnPropertyDescriptors) {
|
|
8933
8937
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8934
8938
|
} else {
|
|
8935
|
-
ownKeys$
|
|
8939
|
+
ownKeys$G(Object(source)).forEach(function(key) {
|
|
8936
8940
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8937
8941
|
});
|
|
8938
8942
|
}
|
|
@@ -8956,7 +8960,7 @@
|
|
|
8956
8960
|
}
|
|
8957
8961
|
function Checkbox(param) {
|
|
8958
8962
|
var children = param.children, _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_isChecked = param.isChecked, isChecked = _param_isChecked === void 0 ? false : _param_isChecked, value = param.value, data = param.data, testId = param.testId, _param_isSemiChecked = param.isSemiChecked, isSemiChecked = _param_isSemiChecked === void 0 ? false : _param_isSemiChecked, _param_labelPosition = param.labelPosition, labelPosition = _param_labelPosition === void 0 ? "right" : _param_labelPosition, tweakStyles = param.tweakStyles, onSelect = param.onSelect;
|
|
8959
|
-
var classes = useStyles$
|
|
8963
|
+
var classes = useStyles$K({
|
|
8960
8964
|
theme: tweakStyles
|
|
8961
8965
|
});
|
|
8962
8966
|
var _useState = _sliced_to_array$o(React.useState(false), 2), isSelected = _useState[0], setIsSelected = _useState[1];
|
|
@@ -8975,11 +8979,11 @@
|
|
|
8975
8979
|
isChecked
|
|
8976
8980
|
]);
|
|
8977
8981
|
var _obj;
|
|
8978
|
-
return /* @__PURE__ */ jsxs("label", _object_spread_props$
|
|
8979
|
-
className: clsx(classes.root, (_obj = {}, _define_property$
|
|
8982
|
+
return /* @__PURE__ */ jsxs("label", _object_spread_props$G(_object_spread$O({
|
|
8983
|
+
className: clsx(classes.root, (_obj = {}, _define_property$P(_obj, classes.disabled, isDisabled), _define_property$P(_obj, classes.labelPositionLeft, labelPosition === "left"), _obj))
|
|
8980
8984
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
8981
8985
|
children: [
|
|
8982
|
-
/* @__PURE__ */ jsx("input", _object_spread$
|
|
8986
|
+
/* @__PURE__ */ jsx("input", _object_spread$O({
|
|
8983
8987
|
type: "checkbox",
|
|
8984
8988
|
className: classes.input,
|
|
8985
8989
|
checked: isSelected,
|
|
@@ -9002,7 +9006,7 @@
|
|
|
9002
9006
|
]
|
|
9003
9007
|
}));
|
|
9004
9008
|
}
|
|
9005
|
-
var useStyles$
|
|
9009
|
+
var useStyles$J = createThemedStyles("CloseButton", {
|
|
9006
9010
|
root: {
|
|
9007
9011
|
width: 40,
|
|
9008
9012
|
height: 40,
|
|
@@ -9015,7 +9019,8 @@
|
|
|
9015
9019
|
appearance: "none",
|
|
9016
9020
|
backgroundColor: "transparent",
|
|
9017
9021
|
cursor: "pointer",
|
|
9018
|
-
transition:
|
|
9022
|
+
transition: animations.defaultTransition,
|
|
9023
|
+
transitionProperty: "background-color",
|
|
9019
9024
|
"&:hover": {
|
|
9020
9025
|
backgroundColor: rgba(colors.BORDER_MAIN, 0.5)
|
|
9021
9026
|
},
|
|
@@ -9027,7 +9032,7 @@
|
|
|
9027
9032
|
}
|
|
9028
9033
|
}
|
|
9029
9034
|
});
|
|
9030
|
-
function _define_property$
|
|
9035
|
+
function _define_property$O(obj, key, value) {
|
|
9031
9036
|
if (key in obj) {
|
|
9032
9037
|
Object.defineProperty(obj, key, {
|
|
9033
9038
|
value,
|
|
@@ -9040,7 +9045,7 @@
|
|
|
9040
9045
|
}
|
|
9041
9046
|
return obj;
|
|
9042
9047
|
}
|
|
9043
|
-
function _object_spread$
|
|
9048
|
+
function _object_spread$N(target) {
|
|
9044
9049
|
for (var i = 1; i < arguments.length; i++) {
|
|
9045
9050
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9046
9051
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9050,12 +9055,12 @@
|
|
|
9050
9055
|
}));
|
|
9051
9056
|
}
|
|
9052
9057
|
ownKeys2.forEach(function(key) {
|
|
9053
|
-
_define_property$
|
|
9058
|
+
_define_property$O(target, key, source[key]);
|
|
9054
9059
|
});
|
|
9055
9060
|
}
|
|
9056
9061
|
return target;
|
|
9057
9062
|
}
|
|
9058
|
-
function ownKeys$
|
|
9063
|
+
function ownKeys$F(object, enumerableOnly) {
|
|
9059
9064
|
var keys2 = Object.keys(object);
|
|
9060
9065
|
if (Object.getOwnPropertySymbols) {
|
|
9061
9066
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9068,12 +9073,12 @@
|
|
|
9068
9073
|
}
|
|
9069
9074
|
return keys2;
|
|
9070
9075
|
}
|
|
9071
|
-
function _object_spread_props$
|
|
9076
|
+
function _object_spread_props$F(target, source) {
|
|
9072
9077
|
source = source != null ? source : {};
|
|
9073
9078
|
if (Object.getOwnPropertyDescriptors) {
|
|
9074
9079
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9075
9080
|
} else {
|
|
9076
|
-
ownKeys$
|
|
9081
|
+
ownKeys$F(Object(source)).forEach(function(key) {
|
|
9077
9082
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9078
9083
|
});
|
|
9079
9084
|
}
|
|
@@ -9081,10 +9086,10 @@
|
|
|
9081
9086
|
}
|
|
9082
9087
|
var CloseButton = function(param) {
|
|
9083
9088
|
var tweakStyles = param.tweakStyles, testId = param.testId, data = param.data, _param_iconType = param.iconType, iconType = _param_iconType === void 0 ? "close" : _param_iconType, onClose = param.onClose;
|
|
9084
|
-
var classes = useStyles$
|
|
9089
|
+
var classes = useStyles$J({
|
|
9085
9090
|
theme: tweakStyles
|
|
9086
9091
|
});
|
|
9087
|
-
return /* @__PURE__ */ jsx("button", _object_spread_props$
|
|
9092
|
+
return /* @__PURE__ */ jsx("button", _object_spread_props$F(_object_spread$N({
|
|
9088
9093
|
type: "button",
|
|
9089
9094
|
className: classes.root,
|
|
9090
9095
|
onClick: onClose
|
|
@@ -9094,7 +9099,7 @@
|
|
|
9094
9099
|
})
|
|
9095
9100
|
}));
|
|
9096
9101
|
};
|
|
9097
|
-
var useStyles$
|
|
9102
|
+
var useStyles$I = createThemedStyles({
|
|
9098
9103
|
root: {
|
|
9099
9104
|
display: "flex",
|
|
9100
9105
|
flexWrap: "wrap"
|
|
@@ -9187,7 +9192,7 @@
|
|
|
9187
9192
|
return _array_like_to_array$n(o, minLen);
|
|
9188
9193
|
}
|
|
9189
9194
|
var Colors = function() {
|
|
9190
|
-
var classes = useStyles$
|
|
9195
|
+
var classes = useStyles$I();
|
|
9191
9196
|
var theme = React.useContext(ThemeContext).theme;
|
|
9192
9197
|
var _theme_colors = theme.colors, colors2 = _theme_colors === void 0 ? {} : _theme_colors;
|
|
9193
9198
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -9217,7 +9222,7 @@
|
|
|
9217
9222
|
})
|
|
9218
9223
|
});
|
|
9219
9224
|
};
|
|
9220
|
-
var useStyles$
|
|
9225
|
+
var useStyles$H = createThemedStyles("CssBaseline", {
|
|
9221
9226
|
"@global html, body": {
|
|
9222
9227
|
fontFamily: "Arial, sans-serif",
|
|
9223
9228
|
color: colors.FONT_MAIN,
|
|
@@ -9226,7 +9231,7 @@
|
|
|
9226
9231
|
},
|
|
9227
9232
|
root: {}
|
|
9228
9233
|
});
|
|
9229
|
-
function _define_property$
|
|
9234
|
+
function _define_property$N(obj, key, value) {
|
|
9230
9235
|
if (key in obj) {
|
|
9231
9236
|
Object.defineProperty(obj, key, {
|
|
9232
9237
|
value,
|
|
@@ -9239,7 +9244,7 @@
|
|
|
9239
9244
|
}
|
|
9240
9245
|
return obj;
|
|
9241
9246
|
}
|
|
9242
|
-
function _object_spread$
|
|
9247
|
+
function _object_spread$M(target) {
|
|
9243
9248
|
for (var i = 1; i < arguments.length; i++) {
|
|
9244
9249
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9245
9250
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9249,24 +9254,24 @@
|
|
|
9249
9254
|
}));
|
|
9250
9255
|
}
|
|
9251
9256
|
ownKeys2.forEach(function(key) {
|
|
9252
|
-
_define_property$
|
|
9257
|
+
_define_property$N(target, key, source[key]);
|
|
9253
9258
|
});
|
|
9254
9259
|
}
|
|
9255
9260
|
return target;
|
|
9256
9261
|
}
|
|
9257
9262
|
var CssBaseline = function(param) {
|
|
9258
9263
|
var data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
9259
|
-
var classes = useStyles$
|
|
9264
|
+
var classes = useStyles$H({
|
|
9260
9265
|
theme: tweakStyles
|
|
9261
9266
|
});
|
|
9262
|
-
return /* @__PURE__ */ jsx("div", _object_spread$
|
|
9267
|
+
return /* @__PURE__ */ jsx("div", _object_spread$M({
|
|
9263
9268
|
className: classes.root
|
|
9264
9269
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)));
|
|
9265
9270
|
};
|
|
9266
9271
|
var DEFAULT_SIZE = 6;
|
|
9267
9272
|
var PADDING_X$1 = 12;
|
|
9268
9273
|
var AUTOSIZE_MAX_WIDTH = 480;
|
|
9269
|
-
var useStyles$
|
|
9274
|
+
var useStyles$G = createThemedStyles("Input", {
|
|
9270
9275
|
root: {
|
|
9271
9276
|
width: "100%",
|
|
9272
9277
|
boxSizing: "border-box",
|
|
@@ -9277,7 +9282,7 @@
|
|
|
9277
9282
|
width: "100%",
|
|
9278
9283
|
height: dimensions.CONTROL_HEIGHT,
|
|
9279
9284
|
boxSizing: "border-box",
|
|
9280
|
-
transition:
|
|
9285
|
+
transition: animations.defaultTransition,
|
|
9281
9286
|
transitionProperty: "border-color",
|
|
9282
9287
|
backgroundColor: "white",
|
|
9283
9288
|
position: "relative"
|
|
@@ -9297,7 +9302,7 @@
|
|
|
9297
9302
|
outline: "none",
|
|
9298
9303
|
boxSizing: "border-box",
|
|
9299
9304
|
outlineStyle: "none",
|
|
9300
|
-
transition:
|
|
9305
|
+
transition: animations.defaultTransition,
|
|
9301
9306
|
transitionProperty: "background-color",
|
|
9302
9307
|
border: "none",
|
|
9303
9308
|
background: "none",
|
|
@@ -9383,7 +9388,7 @@
|
|
|
9383
9388
|
top: "50%",
|
|
9384
9389
|
transformOrigin: "top left",
|
|
9385
9390
|
transform: "translateY(-50%)",
|
|
9386
|
-
transition:
|
|
9391
|
+
transition: animations.defaultTransition,
|
|
9387
9392
|
transitionProperty: "transform, color",
|
|
9388
9393
|
fontSize: 16
|
|
9389
9394
|
},
|
|
@@ -9492,7 +9497,8 @@
|
|
|
9492
9497
|
4
|
|
9493
9498
|
],
|
|
9494
9499
|
width: 20,
|
|
9495
|
-
transition:
|
|
9500
|
+
transition: animations.defaultTransition,
|
|
9501
|
+
transitionProperty: "color",
|
|
9496
9502
|
boxSizing: "content-box",
|
|
9497
9503
|
"&:last-child": {
|
|
9498
9504
|
paddingRight: 8
|
|
@@ -9579,7 +9585,7 @@
|
|
|
9579
9585
|
});
|
|
9580
9586
|
};
|
|
9581
9587
|
}
|
|
9582
|
-
function _define_property$
|
|
9588
|
+
function _define_property$M(obj, key, value) {
|
|
9583
9589
|
if (key in obj) {
|
|
9584
9590
|
Object.defineProperty(obj, key, {
|
|
9585
9591
|
value,
|
|
@@ -9623,7 +9629,7 @@
|
|
|
9623
9629
|
function _non_iterable_rest$m() {
|
|
9624
9630
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9625
9631
|
}
|
|
9626
|
-
function _object_spread$
|
|
9632
|
+
function _object_spread$L(target) {
|
|
9627
9633
|
for (var i = 1; i < arguments.length; i++) {
|
|
9628
9634
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9629
9635
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9633,12 +9639,12 @@
|
|
|
9633
9639
|
}));
|
|
9634
9640
|
}
|
|
9635
9641
|
ownKeys2.forEach(function(key) {
|
|
9636
|
-
_define_property$
|
|
9642
|
+
_define_property$M(target, key, source[key]);
|
|
9637
9643
|
});
|
|
9638
9644
|
}
|
|
9639
9645
|
return target;
|
|
9640
9646
|
}
|
|
9641
|
-
function ownKeys$
|
|
9647
|
+
function ownKeys$E(object, enumerableOnly) {
|
|
9642
9648
|
var keys2 = Object.keys(object);
|
|
9643
9649
|
if (Object.getOwnPropertySymbols) {
|
|
9644
9650
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9651,21 +9657,21 @@
|
|
|
9651
9657
|
}
|
|
9652
9658
|
return keys2;
|
|
9653
9659
|
}
|
|
9654
|
-
function _object_spread_props$
|
|
9660
|
+
function _object_spread_props$E(target, source) {
|
|
9655
9661
|
source = source != null ? source : {};
|
|
9656
9662
|
if (Object.getOwnPropertyDescriptors) {
|
|
9657
9663
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9658
9664
|
} else {
|
|
9659
|
-
ownKeys$
|
|
9665
|
+
ownKeys$E(Object(source)).forEach(function(key) {
|
|
9660
9666
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9661
9667
|
});
|
|
9662
9668
|
}
|
|
9663
9669
|
return target;
|
|
9664
9670
|
}
|
|
9665
|
-
function _object_without_properties$
|
|
9671
|
+
function _object_without_properties$e(source, excluded) {
|
|
9666
9672
|
if (source == null)
|
|
9667
9673
|
return {};
|
|
9668
|
-
var target = _object_without_properties_loose$
|
|
9674
|
+
var target = _object_without_properties_loose$e(source, excluded);
|
|
9669
9675
|
var key, i;
|
|
9670
9676
|
if (Object.getOwnPropertySymbols) {
|
|
9671
9677
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -9680,7 +9686,7 @@
|
|
|
9680
9686
|
}
|
|
9681
9687
|
return target;
|
|
9682
9688
|
}
|
|
9683
|
-
function _object_without_properties_loose$
|
|
9689
|
+
function _object_without_properties_loose$e(source, excluded) {
|
|
9684
9690
|
if (source == null)
|
|
9685
9691
|
return {};
|
|
9686
9692
|
var target = {};
|
|
@@ -9813,7 +9819,7 @@
|
|
|
9813
9819
|
}
|
|
9814
9820
|
}
|
|
9815
9821
|
var Input = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
9816
|
-
var _param_value = _param.value, value = _param_value === void 0 ? "" : _param_value, label = _param.label, placeholder = _param.placeholder, _param_type = _param.type, type = _param_type === void 0 ? "text" : _param_type, isDisabled = _param.isDisabled, _param_isReadonly = _param.isReadonly, isReadonly = _param_isReadonly === void 0 ? false : _param_isReadonly, _param_hasFloatingLabel = _param.hasFloatingLabel, hasFloatingLabel = _param_hasFloatingLabel === void 0 ? true : _param_hasFloatingLabel, _param_isInvalid = _param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? false : _param_isClearable, infoMessage = _param.infoMessage, errorMessage = _param.errorMessage, _param_errorPosition = _param.errorPosition, errorPosition = _param_errorPosition === void 0 ? "bottom" : _param_errorPosition, inlineStyle = _param.inlineStyle, border = _param.border, _param_isRequired = _param.isRequired, isRequired = _param_isRequired === void 0 ? false : _param_isRequired, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isAutoSizeable = _param.isAutoSizeable, isAutoSizeable = _param_isAutoSizeable === void 0 ? false : _param_isAutoSizeable, _param_defaultSize = _param.defaultSize, defaultSize = _param_defaultSize === void 0 ? DEFAULT_SIZE : _param_defaultSize, iconType = _param.iconType, hasRequiredLabel = _param.hasRequiredLabel, data = _param.data, tweakStyles = _param.tweakStyles, _param_shouldFocusOnMount = _param.shouldFocusOnMount, shouldFocusOnMount = _param_shouldFocusOnMount === void 0 ? false : _param_shouldFocusOnMount, units = _param.units, testId = _param.testId, onChange = _param.onChange, onFocus = _param.onFocus, onBlur = _param.onBlur, onIconClick = _param.onIconClick, mask = _param.mask, maskPlaceholder = _param.maskPlaceholder, alwaysShowMask = _param.alwaysShowMask, _param_shouldAlwaysShowPlaceholder = _param.shouldAlwaysShowPlaceholder, shouldAlwaysShowPlaceholder = _param_shouldAlwaysShowPlaceholder === void 0 ? false : _param_shouldAlwaysShowPlaceholder, beforeMaskedStateChange = _param.beforeMaskedStateChange, inputProps = _object_without_properties$
|
|
9822
|
+
var _param_value = _param.value, value = _param_value === void 0 ? "" : _param_value, label = _param.label, placeholder = _param.placeholder, _param_type = _param.type, type = _param_type === void 0 ? "text" : _param_type, isDisabled = _param.isDisabled, _param_isReadonly = _param.isReadonly, isReadonly = _param_isReadonly === void 0 ? false : _param_isReadonly, _param_hasFloatingLabel = _param.hasFloatingLabel, hasFloatingLabel = _param_hasFloatingLabel === void 0 ? true : _param_hasFloatingLabel, _param_isInvalid = _param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? false : _param_isClearable, infoMessage = _param.infoMessage, errorMessage = _param.errorMessage, _param_errorPosition = _param.errorPosition, errorPosition = _param_errorPosition === void 0 ? "bottom" : _param_errorPosition, inlineStyle = _param.inlineStyle, border = _param.border, _param_isRequired = _param.isRequired, isRequired = _param_isRequired === void 0 ? false : _param_isRequired, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isAutoSizeable = _param.isAutoSizeable, isAutoSizeable = _param_isAutoSizeable === void 0 ? false : _param_isAutoSizeable, _param_defaultSize = _param.defaultSize, defaultSize = _param_defaultSize === void 0 ? DEFAULT_SIZE : _param_defaultSize, iconType = _param.iconType, hasRequiredLabel = _param.hasRequiredLabel, data = _param.data, tweakStyles = _param.tweakStyles, _param_shouldFocusOnMount = _param.shouldFocusOnMount, shouldFocusOnMount = _param_shouldFocusOnMount === void 0 ? false : _param_shouldFocusOnMount, units = _param.units, testId = _param.testId, onChange = _param.onChange, onFocus = _param.onFocus, onBlur = _param.onBlur, onIconClick = _param.onIconClick, mask = _param.mask, maskPlaceholder = _param.maskPlaceholder, alwaysShowMask = _param.alwaysShowMask, _param_shouldAlwaysShowPlaceholder = _param.shouldAlwaysShowPlaceholder, shouldAlwaysShowPlaceholder = _param_shouldAlwaysShowPlaceholder === void 0 ? false : _param_shouldAlwaysShowPlaceholder, beforeMaskedStateChange = _param.beforeMaskedStateChange, inputProps = _object_without_properties$e(_param, [
|
|
9817
9823
|
"value",
|
|
9818
9824
|
"label",
|
|
9819
9825
|
"placeholder",
|
|
@@ -9850,7 +9856,7 @@
|
|
|
9850
9856
|
"shouldAlwaysShowPlaceholder",
|
|
9851
9857
|
"beforeMaskedStateChange"
|
|
9852
9858
|
]);
|
|
9853
|
-
var classes = useStyles$
|
|
9859
|
+
var classes = useStyles$G({
|
|
9854
9860
|
theme: tweakStyles
|
|
9855
9861
|
});
|
|
9856
9862
|
var tweakPreloaderStyles = useTweakStyles({
|
|
@@ -9904,8 +9910,8 @@
|
|
|
9904
9910
|
var hasPlaceholder = (!hasLabel || hasFocus && !isReadonly || shouldAlwaysShowPlaceholder) && trueReactPlatformHelpers.isStringNotEmpty(placeholder);
|
|
9905
9911
|
var shouldShowUnits = (hasValue || isFocused && !hasPlaceholder) && hasUnits;
|
|
9906
9912
|
var _obj;
|
|
9907
|
-
var props = _object_spread_props$
|
|
9908
|
-
className: clsx(classes.input, (_obj = {}, _define_property$
|
|
9913
|
+
var props = _object_spread_props$E(_object_spread$L({}, inputProps, trueReactPlatformHelpers.addDataTestId(testId)), {
|
|
9914
|
+
className: clsx(classes.input, (_obj = {}, _define_property$M(_obj, classes.withFloatingLabel, hasFloatingLabel && hasLabel), _define_property$M(_obj, classes.withIcons, hasControls), _define_property$M(_obj, classes.withControls, hasControls), _define_property$M(_obj, classes.withUnits, shouldShowUnits), _define_property$M(_obj, classes.floatingLabelWithoutPadding, hasFloatingLabel && hasLabel && border === "bottom"), _obj)),
|
|
9909
9915
|
onFocus: handleFocus,
|
|
9910
9916
|
onBlur: handleBlur,
|
|
9911
9917
|
onChange: handleChange,
|
|
@@ -9921,14 +9927,14 @@
|
|
|
9921
9927
|
return /* @__PURE__ */ jsxs("div", {
|
|
9922
9928
|
className: classes.root,
|
|
9923
9929
|
children: [
|
|
9924
|
-
/* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
9925
|
-
className: clsx(classes.inputWrapper, (_obj1 = {}, _define_property$
|
|
9930
|
+
/* @__PURE__ */ jsxs("div", _object_spread_props$E(_object_spread$L({
|
|
9931
|
+
className: clsx(classes.inputWrapper, (_obj1 = {}, _define_property$M(_obj1, classes.required, isRequired && !hasRequiredLabel), _define_property$M(_obj1, classes.invalid, isInvalid), _define_property$M(_obj1, classes.focused, hasFocus), _define_property$M(_obj1, classes.disabled, isDisabled), _define_property$M(_obj1, classes.autosize, isAutoSizeable), _obj1), inlineStyle !== void 0 && classes[inlineStyle], border !== void 0 && classes["border-".concat(border)]),
|
|
9926
9932
|
"data-value": isAutoSizeable ? value : void 0
|
|
9927
9933
|
}, addDataAttributes(data)), {
|
|
9928
9934
|
children: [
|
|
9929
|
-
mask === void 0 ? /* @__PURE__ */ jsx("input", _object_spread$
|
|
9935
|
+
mask === void 0 ? /* @__PURE__ */ jsx("input", _object_spread$L({
|
|
9930
9936
|
ref: ref !== null && ref !== void 0 ? ref : inputRef
|
|
9931
|
-
}, props)) : /* @__PURE__ */ jsx(InputMask, _object_spread$
|
|
9937
|
+
}, props)) : /* @__PURE__ */ jsx(InputMask, _object_spread$L({
|
|
9932
9938
|
ref: ref !== null && ref !== void 0 ? ref : inputRef,
|
|
9933
9939
|
mask,
|
|
9934
9940
|
maskPlaceholder,
|
|
@@ -9936,12 +9942,12 @@
|
|
|
9936
9942
|
beforeMaskedStateChange
|
|
9937
9943
|
}, props)),
|
|
9938
9944
|
hasLabel && /* @__PURE__ */ jsx("span", {
|
|
9939
|
-
className: clsx(classes.label, (_obj2 = {}, _define_property$
|
|
9940
|
-
_define_property$
|
|
9945
|
+
className: clsx(classes.label, (_obj2 = {}, _define_property$M(_obj2, classes.invalidLabel, isInvalid), _define_property$M(_obj2, classes.requiredLabel, hasRequiredLabel && !isRequired), _define_property$M(_obj2, classes.activeLabel, hasFocus && !isReadonly || hasValue), _define_property$M(_obj2, classes.floating, hasFloatingLabel), // Обсуждаемо, сделал так, потому что не хочется создавать новую пропсу, на каждый чих в стилях
|
|
9946
|
+
_define_property$M(_obj2, classes.floatingWithoutPadding, hasFloatingLabel && border === "bottom"), _obj2)),
|
|
9941
9947
|
children: label
|
|
9942
9948
|
}),
|
|
9943
9949
|
shouldShowUnits && /* @__PURE__ */ jsxs("div", {
|
|
9944
|
-
className: clsx(classes.unitsWrapper, _define_property$
|
|
9950
|
+
className: clsx(classes.unitsWrapper, _define_property$M({}, classes.withFloatingLabel, hasFloatingLabel && hasLabel)),
|
|
9945
9951
|
children: [
|
|
9946
9952
|
/* @__PURE__ */ jsx("span", {
|
|
9947
9953
|
className: classes.fakeValue,
|
|
@@ -9973,7 +9979,7 @@
|
|
|
9973
9979
|
})
|
|
9974
9980
|
}),
|
|
9975
9981
|
trueReactPlatformHelpers.isReactNodeNotEmpty(iconType) && /* @__PURE__ */ jsx("div", {
|
|
9976
|
-
className: clsx(classes.inputIcon, _define_property$
|
|
9982
|
+
className: clsx(classes.inputIcon, _define_property$M({}, classes.activeIcon, !isDisabled && onIconClick !== void 0)),
|
|
9977
9983
|
onClick: !isDisabled ? onIconClick : void 0,
|
|
9978
9984
|
children: renderIcon(iconType)
|
|
9979
9985
|
})
|
|
@@ -9994,7 +10000,7 @@
|
|
|
9994
10000
|
});
|
|
9995
10001
|
var EMPTY_DATE_INPUT_VALUE = "__.__.____";
|
|
9996
10002
|
var EMPTY_DATE_RANGE_INPUT_VALUE = "".concat(EMPTY_DATE_INPUT_VALUE, " - ").concat(EMPTY_DATE_INPUT_VALUE);
|
|
9997
|
-
var useStyles$
|
|
10003
|
+
var useStyles$F = createThemedStyles("DateInput", {
|
|
9998
10004
|
root: {
|
|
9999
10005
|
width: "100%",
|
|
10000
10006
|
height: "100%",
|
|
@@ -10002,7 +10008,7 @@
|
|
|
10002
10008
|
position: "relative"
|
|
10003
10009
|
}
|
|
10004
10010
|
});
|
|
10005
|
-
function _define_property$
|
|
10011
|
+
function _define_property$L(obj, key, value) {
|
|
10006
10012
|
if (key in obj) {
|
|
10007
10013
|
Object.defineProperty(obj, key, {
|
|
10008
10014
|
value,
|
|
@@ -10015,7 +10021,7 @@
|
|
|
10015
10021
|
}
|
|
10016
10022
|
return obj;
|
|
10017
10023
|
}
|
|
10018
|
-
function _object_spread$
|
|
10024
|
+
function _object_spread$K(target) {
|
|
10019
10025
|
for (var i = 1; i < arguments.length; i++) {
|
|
10020
10026
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10021
10027
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10025,12 +10031,12 @@
|
|
|
10025
10031
|
}));
|
|
10026
10032
|
}
|
|
10027
10033
|
ownKeys2.forEach(function(key) {
|
|
10028
|
-
_define_property$
|
|
10034
|
+
_define_property$L(target, key, source[key]);
|
|
10029
10035
|
});
|
|
10030
10036
|
}
|
|
10031
10037
|
return target;
|
|
10032
10038
|
}
|
|
10033
|
-
function ownKeys$
|
|
10039
|
+
function ownKeys$D(object, enumerableOnly) {
|
|
10034
10040
|
var keys2 = Object.keys(object);
|
|
10035
10041
|
if (Object.getOwnPropertySymbols) {
|
|
10036
10042
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10043,21 +10049,21 @@
|
|
|
10043
10049
|
}
|
|
10044
10050
|
return keys2;
|
|
10045
10051
|
}
|
|
10046
|
-
function _object_spread_props$
|
|
10052
|
+
function _object_spread_props$D(target, source) {
|
|
10047
10053
|
source = source != null ? source : {};
|
|
10048
10054
|
if (Object.getOwnPropertyDescriptors) {
|
|
10049
10055
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10050
10056
|
} else {
|
|
10051
|
-
ownKeys$
|
|
10057
|
+
ownKeys$D(Object(source)).forEach(function(key) {
|
|
10052
10058
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10053
10059
|
});
|
|
10054
10060
|
}
|
|
10055
10061
|
return target;
|
|
10056
10062
|
}
|
|
10057
|
-
function _object_without_properties$
|
|
10063
|
+
function _object_without_properties$d(source, excluded) {
|
|
10058
10064
|
if (source == null)
|
|
10059
10065
|
return {};
|
|
10060
|
-
var target = _object_without_properties_loose$
|
|
10066
|
+
var target = _object_without_properties_loose$d(source, excluded);
|
|
10061
10067
|
var key, i;
|
|
10062
10068
|
if (Object.getOwnPropertySymbols) {
|
|
10063
10069
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10072,7 +10078,7 @@
|
|
|
10072
10078
|
}
|
|
10073
10079
|
return target;
|
|
10074
10080
|
}
|
|
10075
|
-
function _object_without_properties_loose$
|
|
10081
|
+
function _object_without_properties_loose$d(source, excluded) {
|
|
10076
10082
|
if (source == null)
|
|
10077
10083
|
return {};
|
|
10078
10084
|
var target = {};
|
|
@@ -10087,7 +10093,7 @@
|
|
|
10087
10093
|
return target;
|
|
10088
10094
|
}
|
|
10089
10095
|
var DateInput = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
10090
|
-
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$
|
|
10096
|
+
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$d(_param, [
|
|
10091
10097
|
"date",
|
|
10092
10098
|
"startDate",
|
|
10093
10099
|
"endDate",
|
|
@@ -10100,7 +10106,7 @@
|
|
|
10100
10106
|
"onClick",
|
|
10101
10107
|
"onChange"
|
|
10102
10108
|
]);
|
|
10103
|
-
var classes = useStyles$
|
|
10109
|
+
var classes = useStyles$F({
|
|
10104
10110
|
theme: tweakStyles
|
|
10105
10111
|
});
|
|
10106
10112
|
var tweakInputStyles = useTweakStyles({
|
|
@@ -10127,11 +10133,11 @@
|
|
|
10127
10133
|
}
|
|
10128
10134
|
onChange === null || onChange === void 0 ? void 0 : onChange(event, value);
|
|
10129
10135
|
};
|
|
10130
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
10136
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$D(_object_spread$K({
|
|
10131
10137
|
className: clsx(classes.root, className),
|
|
10132
10138
|
onClick
|
|
10133
10139
|
}, addDataAttributes(data)), {
|
|
10134
|
-
children: /* @__PURE__ */ jsx(Input, _object_spread_props$
|
|
10140
|
+
children: /* @__PURE__ */ jsx(Input, _object_spread_props$D(_object_spread$K({}, inputProps), {
|
|
10135
10141
|
ref,
|
|
10136
10142
|
value: isRange ? "".concat(startDate).concat(endDate) : date,
|
|
10137
10143
|
mask: mask !== null && mask !== void 0 ? mask : isRange ? "99.99.9999 - 99.99.9999" : "99.99.9999",
|
|
@@ -10144,7 +10150,7 @@
|
|
|
10144
10150
|
});
|
|
10145
10151
|
const reactDatepicker = "";
|
|
10146
10152
|
var LEFT_PADDING = 44;
|
|
10147
|
-
var useStyles$
|
|
10153
|
+
var useStyles$E = createThemedStyles("SearchInput", {
|
|
10148
10154
|
root: {
|
|
10149
10155
|
position: "relative"
|
|
10150
10156
|
},
|
|
@@ -10181,7 +10187,7 @@
|
|
|
10181
10187
|
fontSize: 14
|
|
10182
10188
|
}
|
|
10183
10189
|
};
|
|
10184
|
-
function _define_property$
|
|
10190
|
+
function _define_property$K(obj, key, value) {
|
|
10185
10191
|
if (key in obj) {
|
|
10186
10192
|
Object.defineProperty(obj, key, {
|
|
10187
10193
|
value,
|
|
@@ -10194,7 +10200,7 @@
|
|
|
10194
10200
|
}
|
|
10195
10201
|
return obj;
|
|
10196
10202
|
}
|
|
10197
|
-
function _object_spread$
|
|
10203
|
+
function _object_spread$J(target) {
|
|
10198
10204
|
for (var i = 1; i < arguments.length; i++) {
|
|
10199
10205
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10200
10206
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10204,12 +10210,12 @@
|
|
|
10204
10210
|
}));
|
|
10205
10211
|
}
|
|
10206
10212
|
ownKeys2.forEach(function(key) {
|
|
10207
|
-
_define_property$
|
|
10213
|
+
_define_property$K(target, key, source[key]);
|
|
10208
10214
|
});
|
|
10209
10215
|
}
|
|
10210
10216
|
return target;
|
|
10211
10217
|
}
|
|
10212
|
-
function ownKeys$
|
|
10218
|
+
function ownKeys$C(object, enumerableOnly) {
|
|
10213
10219
|
var keys2 = Object.keys(object);
|
|
10214
10220
|
if (Object.getOwnPropertySymbols) {
|
|
10215
10221
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10222,21 +10228,21 @@
|
|
|
10222
10228
|
}
|
|
10223
10229
|
return keys2;
|
|
10224
10230
|
}
|
|
10225
|
-
function _object_spread_props$
|
|
10231
|
+
function _object_spread_props$C(target, source) {
|
|
10226
10232
|
source = source != null ? source : {};
|
|
10227
10233
|
if (Object.getOwnPropertyDescriptors) {
|
|
10228
10234
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10229
10235
|
} else {
|
|
10230
|
-
ownKeys$
|
|
10236
|
+
ownKeys$C(Object(source)).forEach(function(key) {
|
|
10231
10237
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10232
10238
|
});
|
|
10233
10239
|
}
|
|
10234
10240
|
return target;
|
|
10235
10241
|
}
|
|
10236
|
-
function _object_without_properties$
|
|
10242
|
+
function _object_without_properties$c(source, excluded) {
|
|
10237
10243
|
if (source == null)
|
|
10238
10244
|
return {};
|
|
10239
|
-
var target = _object_without_properties_loose$
|
|
10245
|
+
var target = _object_without_properties_loose$c(source, excluded);
|
|
10240
10246
|
var key, i;
|
|
10241
10247
|
if (Object.getOwnPropertySymbols) {
|
|
10242
10248
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10251,7 +10257,7 @@
|
|
|
10251
10257
|
}
|
|
10252
10258
|
return target;
|
|
10253
10259
|
}
|
|
10254
|
-
function _object_without_properties_loose$
|
|
10260
|
+
function _object_without_properties_loose$c(source, excluded) {
|
|
10255
10261
|
if (source == null)
|
|
10256
10262
|
return {};
|
|
10257
10263
|
var target = {};
|
|
@@ -10266,13 +10272,13 @@
|
|
|
10266
10272
|
return target;
|
|
10267
10273
|
}
|
|
10268
10274
|
var SearchInput = function(_param) {
|
|
10269
|
-
var _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? true : _param_isClearable, tweakStyles = _param.tweakStyles, testId = _param.testId, data = _param.data, props = _object_without_properties$
|
|
10275
|
+
var _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? true : _param_isClearable, tweakStyles = _param.tweakStyles, testId = _param.testId, data = _param.data, props = _object_without_properties$c(_param, [
|
|
10270
10276
|
"isClearable",
|
|
10271
10277
|
"tweakStyles",
|
|
10272
10278
|
"testId",
|
|
10273
10279
|
"data"
|
|
10274
10280
|
]);
|
|
10275
|
-
var classes = useStyles$
|
|
10281
|
+
var classes = useStyles$E({
|
|
10276
10282
|
theme: tweakStyles
|
|
10277
10283
|
});
|
|
10278
10284
|
var tweakInputStyles = useTweakStyles({
|
|
@@ -10281,7 +10287,7 @@
|
|
|
10281
10287
|
className: "tweakInput",
|
|
10282
10288
|
currentComponentName: "SearchInput"
|
|
10283
10289
|
});
|
|
10284
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
10290
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$C(_object_spread$J({
|
|
10285
10291
|
className: classes.root
|
|
10286
10292
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
10287
10293
|
children: [
|
|
@@ -10291,7 +10297,7 @@
|
|
|
10291
10297
|
type: "search"
|
|
10292
10298
|
})
|
|
10293
10299
|
}),
|
|
10294
|
-
/* @__PURE__ */ jsx(Input, _object_spread$
|
|
10300
|
+
/* @__PURE__ */ jsx(Input, _object_spread$J({
|
|
10295
10301
|
isClearable,
|
|
10296
10302
|
isActive: props.value !== "" && props.value !== void 0,
|
|
10297
10303
|
testId: trueReactPlatformHelpers.getTestId(testId, "input"),
|
|
@@ -10339,7 +10345,7 @@
|
|
|
10339
10345
|
_defineProperties(Constructor, staticProps);
|
|
10340
10346
|
return Constructor;
|
|
10341
10347
|
}
|
|
10342
|
-
function _define_property$
|
|
10348
|
+
function _define_property$J(obj, key, value) {
|
|
10343
10349
|
if (key in obj) {
|
|
10344
10350
|
Object.defineProperty(obj, key, {
|
|
10345
10351
|
value,
|
|
@@ -10372,7 +10378,7 @@
|
|
|
10372
10378
|
if (superClass)
|
|
10373
10379
|
_set_prototype_of(subClass, superClass);
|
|
10374
10380
|
}
|
|
10375
|
-
function _object_spread$
|
|
10381
|
+
function _object_spread$I(target) {
|
|
10376
10382
|
for (var i = 1; i < arguments.length; i++) {
|
|
10377
10383
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10378
10384
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10382,15 +10388,15 @@
|
|
|
10382
10388
|
}));
|
|
10383
10389
|
}
|
|
10384
10390
|
ownKeys2.forEach(function(key) {
|
|
10385
|
-
_define_property$
|
|
10391
|
+
_define_property$J(target, key, source[key]);
|
|
10386
10392
|
});
|
|
10387
10393
|
}
|
|
10388
10394
|
return target;
|
|
10389
10395
|
}
|
|
10390
|
-
function _object_without_properties$
|
|
10396
|
+
function _object_without_properties$b(source, excluded) {
|
|
10391
10397
|
if (source == null)
|
|
10392
10398
|
return {};
|
|
10393
|
-
var target = _object_without_properties_loose$
|
|
10399
|
+
var target = _object_without_properties_loose$b(source, excluded);
|
|
10394
10400
|
var key, i;
|
|
10395
10401
|
if (Object.getOwnPropertySymbols) {
|
|
10396
10402
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10405,7 +10411,7 @@
|
|
|
10405
10411
|
}
|
|
10406
10412
|
return target;
|
|
10407
10413
|
}
|
|
10408
|
-
function _object_without_properties_loose$
|
|
10414
|
+
function _object_without_properties_loose$b(source, excluded) {
|
|
10409
10415
|
if (source == null)
|
|
10410
10416
|
return {};
|
|
10411
10417
|
var target = {};
|
|
@@ -10471,8 +10477,8 @@
|
|
|
10471
10477
|
_class_call_check(this, ScrollIntoViewIfNeeded2);
|
|
10472
10478
|
var _this;
|
|
10473
10479
|
_this = _super.apply(this, arguments);
|
|
10474
|
-
_define_property$
|
|
10475
|
-
_define_property$
|
|
10480
|
+
_define_property$J(_assert_this_initialized(_this), "node", React.createRef());
|
|
10481
|
+
_define_property$J(_assert_this_initialized(_this), "handleScrollIntoViewIfNeeded", function() {
|
|
10476
10482
|
var options = _this.props.options;
|
|
10477
10483
|
var _this_node = _this.node, node = _this_node.current;
|
|
10478
10484
|
if (node) {
|
|
@@ -10508,13 +10514,13 @@
|
|
|
10508
10514
|
_this_props.active;
|
|
10509
10515
|
var elementType = _this_props.elementType, children = _this_props.children;
|
|
10510
10516
|
_this_props.options;
|
|
10511
|
-
var wrapperProps = _object_without_properties$
|
|
10517
|
+
var wrapperProps = _object_without_properties$b(_this_props, [
|
|
10512
10518
|
"active",
|
|
10513
10519
|
"elementType",
|
|
10514
10520
|
"children",
|
|
10515
10521
|
"options"
|
|
10516
10522
|
]);
|
|
10517
|
-
return React.createElement(elementType !== null && elementType !== void 0 ? elementType : ScrollIntoViewIfNeededDefaultElementType, _object_spread$
|
|
10523
|
+
return React.createElement(elementType !== null && elementType !== void 0 ? elementType : ScrollIntoViewIfNeededDefaultElementType, _object_spread$I({
|
|
10518
10524
|
ref: this.node
|
|
10519
10525
|
}, wrapperProps), children);
|
|
10520
10526
|
}
|
|
@@ -10522,10 +10528,10 @@
|
|
|
10522
10528
|
]);
|
|
10523
10529
|
return ScrollIntoViewIfNeeded2;
|
|
10524
10530
|
}(React.PureComponent);
|
|
10525
|
-
_define_property$
|
|
10531
|
+
_define_property$J(ScrollIntoViewIfNeeded, "defaultProps", ScrollIntoViewIfNeededDefaultProps);
|
|
10526
10532
|
var DEFAULT_OPTION_INDEX = -2;
|
|
10527
10533
|
var ALL_OPTION_INDEX = -1;
|
|
10528
|
-
function _define_property$
|
|
10534
|
+
function _define_property$I(obj, key, value) {
|
|
10529
10535
|
if (key in obj) {
|
|
10530
10536
|
Object.defineProperty(obj, key, {
|
|
10531
10537
|
value,
|
|
@@ -10538,7 +10544,7 @@
|
|
|
10538
10544
|
}
|
|
10539
10545
|
return obj;
|
|
10540
10546
|
}
|
|
10541
|
-
function _object_spread$
|
|
10547
|
+
function _object_spread$H(target) {
|
|
10542
10548
|
for (var i = 1; i < arguments.length; i++) {
|
|
10543
10549
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10544
10550
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10548,7 +10554,7 @@
|
|
|
10548
10554
|
}));
|
|
10549
10555
|
}
|
|
10550
10556
|
ownKeys2.forEach(function(key) {
|
|
10551
|
-
_define_property$
|
|
10557
|
+
_define_property$I(target, key, source[key]);
|
|
10552
10558
|
});
|
|
10553
10559
|
}
|
|
10554
10560
|
return target;
|
|
@@ -10559,7 +10565,7 @@
|
|
|
10559
10565
|
10,
|
|
10560
10566
|
20
|
|
10561
10567
|
];
|
|
10562
|
-
var useStyles$
|
|
10568
|
+
var useStyles$D = createThemedStyles("SelectList", {
|
|
10563
10569
|
root: {
|
|
10564
10570
|
borderRadius: dimensions.BORDER_RADIUS_SMALL,
|
|
10565
10571
|
boxShadow: "0 13px 74px -27px rgba(0, 0, 0, 0.11)",
|
|
@@ -10583,7 +10589,7 @@
|
|
|
10583
10589
|
]
|
|
10584
10590
|
}
|
|
10585
10591
|
},
|
|
10586
|
-
list: _object_spread$
|
|
10592
|
+
list: _object_spread$H({
|
|
10587
10593
|
height: "100%",
|
|
10588
10594
|
maxHeight: ROW_HEIGHT$1 * 6,
|
|
10589
10595
|
cursor: "pointer",
|
|
@@ -10626,7 +10632,7 @@
|
|
|
10626
10632
|
display: "none"
|
|
10627
10633
|
}
|
|
10628
10634
|
};
|
|
10629
|
-
function _define_property$
|
|
10635
|
+
function _define_property$H(obj, key, value) {
|
|
10630
10636
|
if (key in obj) {
|
|
10631
10637
|
Object.defineProperty(obj, key, {
|
|
10632
10638
|
value,
|
|
@@ -10639,7 +10645,7 @@
|
|
|
10639
10645
|
}
|
|
10640
10646
|
return obj;
|
|
10641
10647
|
}
|
|
10642
|
-
function _object_spread$
|
|
10648
|
+
function _object_spread$G(target) {
|
|
10643
10649
|
for (var i = 1; i < arguments.length; i++) {
|
|
10644
10650
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10645
10651
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10649,12 +10655,12 @@
|
|
|
10649
10655
|
}));
|
|
10650
10656
|
}
|
|
10651
10657
|
ownKeys2.forEach(function(key) {
|
|
10652
|
-
_define_property$
|
|
10658
|
+
_define_property$H(target, key, source[key]);
|
|
10653
10659
|
});
|
|
10654
10660
|
}
|
|
10655
10661
|
return target;
|
|
10656
10662
|
}
|
|
10657
|
-
function ownKeys$
|
|
10663
|
+
function ownKeys$B(object, enumerableOnly) {
|
|
10658
10664
|
var keys2 = Object.keys(object);
|
|
10659
10665
|
if (Object.getOwnPropertySymbols) {
|
|
10660
10666
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10667,12 +10673,12 @@
|
|
|
10667
10673
|
}
|
|
10668
10674
|
return keys2;
|
|
10669
10675
|
}
|
|
10670
|
-
function _object_spread_props$
|
|
10676
|
+
function _object_spread_props$B(target, source) {
|
|
10671
10677
|
source = source != null ? source : {};
|
|
10672
10678
|
if (Object.getOwnPropertyDescriptors) {
|
|
10673
10679
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10674
10680
|
} else {
|
|
10675
|
-
ownKeys$
|
|
10681
|
+
ownKeys$B(Object(source)).forEach(function(key) {
|
|
10676
10682
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10677
10683
|
});
|
|
10678
10684
|
}
|
|
@@ -10682,12 +10688,12 @@
|
|
|
10682
10688
|
var classes = param.classes, index = param.index, isSemiChecked = param.isSemiChecked, isDisabled = param.isDisabled, isActive = param.isActive, children = param.children, isFocused = param.isFocused, onOptionSelect = param.onOptionSelect, onToggleCheckbox = param.onToggleCheckbox;
|
|
10683
10689
|
var isMultiSelect = trueReactPlatformHelpers.isNotEmpty(onToggleCheckbox);
|
|
10684
10690
|
var _obj;
|
|
10685
|
-
return /* @__PURE__ */ jsx(ScrollIntoViewIfNeeded, _object_spread_props$
|
|
10691
|
+
return /* @__PURE__ */ jsx(ScrollIntoViewIfNeeded, _object_spread_props$B(_object_spread$G({
|
|
10686
10692
|
active: isFocused,
|
|
10687
10693
|
options: {
|
|
10688
10694
|
block: "nearest"
|
|
10689
10695
|
},
|
|
10690
|
-
className: clsx(classes.cell, (_obj = {}, _define_property$
|
|
10696
|
+
className: clsx(classes.cell, (_obj = {}, _define_property$H(_obj, classes.cellWithCheckbox, isMultiSelect), _define_property$H(_obj, classes.focused, isFocused), _define_property$H(_obj, classes.active, isActive && !isMultiSelect), _define_property$H(_obj, classes.disabled, isDisabled), _obj))
|
|
10691
10697
|
}, addDataAttributes({
|
|
10692
10698
|
disabled: isDisabled,
|
|
10693
10699
|
active: isActive,
|
|
@@ -10709,7 +10715,7 @@
|
|
|
10709
10715
|
}) : children
|
|
10710
10716
|
}));
|
|
10711
10717
|
};
|
|
10712
|
-
function _define_property$
|
|
10718
|
+
function _define_property$G(obj, key, value) {
|
|
10713
10719
|
if (key in obj) {
|
|
10714
10720
|
Object.defineProperty(obj, key, {
|
|
10715
10721
|
value,
|
|
@@ -10722,7 +10728,7 @@
|
|
|
10722
10728
|
}
|
|
10723
10729
|
return obj;
|
|
10724
10730
|
}
|
|
10725
|
-
function _object_spread$
|
|
10731
|
+
function _object_spread$F(target) {
|
|
10726
10732
|
for (var i = 1; i < arguments.length; i++) {
|
|
10727
10733
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10728
10734
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10732,12 +10738,12 @@
|
|
|
10732
10738
|
}));
|
|
10733
10739
|
}
|
|
10734
10740
|
ownKeys2.forEach(function(key) {
|
|
10735
|
-
_define_property$
|
|
10741
|
+
_define_property$G(target, key, source[key]);
|
|
10736
10742
|
});
|
|
10737
10743
|
}
|
|
10738
10744
|
return target;
|
|
10739
10745
|
}
|
|
10740
|
-
function ownKeys$
|
|
10746
|
+
function ownKeys$A(object, enumerableOnly) {
|
|
10741
10747
|
var keys2 = Object.keys(object);
|
|
10742
10748
|
if (Object.getOwnPropertySymbols) {
|
|
10743
10749
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10750,12 +10756,12 @@
|
|
|
10750
10756
|
}
|
|
10751
10757
|
return keys2;
|
|
10752
10758
|
}
|
|
10753
|
-
function _object_spread_props$
|
|
10759
|
+
function _object_spread_props$A(target, source) {
|
|
10754
10760
|
source = source != null ? source : {};
|
|
10755
10761
|
if (Object.getOwnPropertyDescriptors) {
|
|
10756
10762
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10757
10763
|
} else {
|
|
10758
|
-
ownKeys$
|
|
10764
|
+
ownKeys$A(Object(source)).forEach(function(key) {
|
|
10759
10765
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10760
10766
|
});
|
|
10761
10767
|
}
|
|
@@ -10763,7 +10769,7 @@
|
|
|
10763
10769
|
}
|
|
10764
10770
|
function SelectList(param) {
|
|
10765
10771
|
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, 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;
|
|
10766
|
-
var classes = useStyles$
|
|
10772
|
+
var classes = useStyles$D({
|
|
10767
10773
|
theme: tweakStyles
|
|
10768
10774
|
});
|
|
10769
10775
|
var isMultiSelect = trueReactPlatformHelpers.isNotEmpty(onToggleCheckbox);
|
|
@@ -10800,13 +10806,13 @@
|
|
|
10800
10806
|
};
|
|
10801
10807
|
return /* @__PURE__ */ jsxs(ScrollIntoViewIfNeeded, {
|
|
10802
10808
|
active: shouldScrollToList && !isMultiSelect,
|
|
10803
|
-
className: clsx(classes.root, _define_property$
|
|
10809
|
+
className: clsx(classes.root, _define_property$G({}, classes.withListHeader, trueReactPlatformHelpers.isReactNodeNotEmpty(customListHeader))),
|
|
10804
10810
|
children: [
|
|
10805
10811
|
trueReactPlatformHelpers.isReactNodeNotEmpty(customListHeader) && /* @__PURE__ */ jsx("div", {
|
|
10806
10812
|
className: classes.listHeader,
|
|
10807
10813
|
children: customListHeader
|
|
10808
10814
|
}),
|
|
10809
|
-
/* @__PURE__ */ jsx("div", _object_spread_props$
|
|
10815
|
+
/* @__PURE__ */ jsx("div", _object_spread_props$A(_object_spread$F({
|
|
10810
10816
|
className: classes.list
|
|
10811
10817
|
}, trueReactPlatformHelpers.addDataTestId(testId)), {
|
|
10812
10818
|
children: isLoading ? /* @__PURE__ */ jsx("div", {
|
|
@@ -10879,7 +10885,7 @@
|
|
|
10879
10885
|
var isMultiSelectValue = function(props, _value) {
|
|
10880
10886
|
return props.isMultiSelect === true;
|
|
10881
10887
|
};
|
|
10882
|
-
var useStyles$
|
|
10888
|
+
var useStyles$C = createThemedStyles("Select", {
|
|
10883
10889
|
root: {
|
|
10884
10890
|
width: "100%",
|
|
10885
10891
|
position: "relative",
|
|
@@ -11028,7 +11034,7 @@
|
|
|
11028
11034
|
});
|
|
11029
11035
|
};
|
|
11030
11036
|
}
|
|
11031
|
-
function _define_property$
|
|
11037
|
+
function _define_property$F(obj, key, value) {
|
|
11032
11038
|
if (key in obj) {
|
|
11033
11039
|
Object.defineProperty(obj, key, {
|
|
11034
11040
|
value,
|
|
@@ -11079,7 +11085,7 @@
|
|
|
11079
11085
|
function _non_iterable_spread$6() {
|
|
11080
11086
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
11081
11087
|
}
|
|
11082
|
-
function _object_spread$
|
|
11088
|
+
function _object_spread$E(target) {
|
|
11083
11089
|
for (var i = 1; i < arguments.length; i++) {
|
|
11084
11090
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
11085
11091
|
var ownKeys2 = Object.keys(source);
|
|
@@ -11089,12 +11095,12 @@
|
|
|
11089
11095
|
}));
|
|
11090
11096
|
}
|
|
11091
11097
|
ownKeys2.forEach(function(key) {
|
|
11092
|
-
_define_property$
|
|
11098
|
+
_define_property$F(target, key, source[key]);
|
|
11093
11099
|
});
|
|
11094
11100
|
}
|
|
11095
11101
|
return target;
|
|
11096
11102
|
}
|
|
11097
|
-
function ownKeys$
|
|
11103
|
+
function ownKeys$z(object, enumerableOnly) {
|
|
11098
11104
|
var keys2 = Object.keys(object);
|
|
11099
11105
|
if (Object.getOwnPropertySymbols) {
|
|
11100
11106
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -11107,21 +11113,21 @@
|
|
|
11107
11113
|
}
|
|
11108
11114
|
return keys2;
|
|
11109
11115
|
}
|
|
11110
|
-
function _object_spread_props$
|
|
11116
|
+
function _object_spread_props$z(target, source) {
|
|
11111
11117
|
source = source != null ? source : {};
|
|
11112
11118
|
if (Object.getOwnPropertyDescriptors) {
|
|
11113
11119
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
11114
11120
|
} else {
|
|
11115
|
-
ownKeys$
|
|
11121
|
+
ownKeys$z(Object(source)).forEach(function(key) {
|
|
11116
11122
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
11117
11123
|
});
|
|
11118
11124
|
}
|
|
11119
11125
|
return target;
|
|
11120
11126
|
}
|
|
11121
|
-
function _object_without_properties$
|
|
11127
|
+
function _object_without_properties$a(source, excluded) {
|
|
11122
11128
|
if (source == null)
|
|
11123
11129
|
return {};
|
|
11124
|
-
var target = _object_without_properties_loose$
|
|
11130
|
+
var target = _object_without_properties_loose$a(source, excluded);
|
|
11125
11131
|
var key, i;
|
|
11126
11132
|
if (Object.getOwnPropertySymbols) {
|
|
11127
11133
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -11136,7 +11142,7 @@
|
|
|
11136
11142
|
}
|
|
11137
11143
|
return target;
|
|
11138
11144
|
}
|
|
11139
|
-
function _object_without_properties_loose$
|
|
11145
|
+
function _object_without_properties_loose$a(source, excluded) {
|
|
11140
11146
|
if (source == null)
|
|
11141
11147
|
return {};
|
|
11142
11148
|
var target = {};
|
|
@@ -11272,7 +11278,7 @@
|
|
|
11272
11278
|
}
|
|
11273
11279
|
}
|
|
11274
11280
|
function Select(props) {
|
|
11275
|
-
var options = props.options, value = props.value, 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, isReadonly = props.isReadonly, isDisabled = props.isDisabled, dropdownOptions = props.dropdownOptions, _props_minSymbolsCountToOpenList = props.minSymbolsCountToOpenList, minSymbolsCountToOpenList = _props_minSymbolsCountToOpenList === void 0 ? 0 : _props_minSymbolsCountToOpenList, _props_dropdownIcon = props.dropdownIcon, dropdownIcon = _props_dropdownIcon === void 0 ? "chevron-down" : _props_dropdownIcon, _props_shouldScrollToList = props.shouldScrollToList, shouldScrollToList = _props_shouldScrollToList === void 0 ? true : _props_shouldScrollToList, searchInput = props.searchInput, iconType = props.iconType, onChange = props.onChange, onFocus = props.onFocus, onBlur = props.onBlur, onType = props.onType, onOpen = props.onOpen, _props_isOptionDisabled = props.isOptionDisabled, isOptionDisabled = _props_isOptionDisabled === void 0 ? defaultIsOptionDisabled : _props_isOptionDisabled, _props_compareValuesOnChange = props.compareValuesOnChange, compareValuesOnChange = _props_compareValuesOnChange === void 0 ? defaultCompareFunction : _props_compareValuesOnChange, _props_convertValueToString = props.convertValueToString, convertValueToString = _props_convertValueToString === void 0 ? defaultConvertFunction$2 : _props_convertValueToString, convertValueToId = props.convertValueToId, convertValueToReactNode = props.convertValueToReactNode, optionsFilter = props.optionsFilter, inputProps = _object_without_properties$
|
|
11281
|
+
var options = props.options, value = props.value, 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, isReadonly = props.isReadonly, isDisabled = props.isDisabled, dropdownOptions = props.dropdownOptions, _props_minSymbolsCountToOpenList = props.minSymbolsCountToOpenList, minSymbolsCountToOpenList = _props_minSymbolsCountToOpenList === void 0 ? 0 : _props_minSymbolsCountToOpenList, _props_dropdownIcon = props.dropdownIcon, dropdownIcon = _props_dropdownIcon === void 0 ? "chevron-down" : _props_dropdownIcon, _props_shouldScrollToList = props.shouldScrollToList, shouldScrollToList = _props_shouldScrollToList === void 0 ? true : _props_shouldScrollToList, searchInput = props.searchInput, iconType = props.iconType, onChange = props.onChange, onFocus = props.onFocus, onBlur = props.onBlur, onType = props.onType, onOpen = props.onOpen, _props_isOptionDisabled = props.isOptionDisabled, isOptionDisabled = _props_isOptionDisabled === void 0 ? defaultIsOptionDisabled : _props_isOptionDisabled, _props_compareValuesOnChange = props.compareValuesOnChange, compareValuesOnChange = _props_compareValuesOnChange === void 0 ? defaultCompareFunction : _props_compareValuesOnChange, _props_convertValueToString = props.convertValueToString, convertValueToString = _props_convertValueToString === void 0 ? defaultConvertFunction$2 : _props_convertValueToString, convertValueToId = props.convertValueToId, convertValueToReactNode = props.convertValueToReactNode, optionsFilter = props.optionsFilter, inputProps = _object_without_properties$a(props, [
|
|
11276
11282
|
"options",
|
|
11277
11283
|
"value",
|
|
11278
11284
|
"defaultOptionLabel",
|
|
@@ -11303,10 +11309,10 @@
|
|
|
11303
11309
|
"convertValueToReactNode",
|
|
11304
11310
|
"optionsFilter"
|
|
11305
11311
|
]);
|
|
11306
|
-
var classes = useStyles$
|
|
11312
|
+
var classes = useStyles$C({
|
|
11307
11313
|
theme: tweakStyles
|
|
11308
11314
|
});
|
|
11309
|
-
var _ref = searchInput !== null && searchInput !== void 0 ? searchInput : {}, tmp = _ref.shouldRenderInList, shouldRenderSearchInputInList = tmp === void 0 ? false : tmp, searchInputProps = _object_without_properties$
|
|
11315
|
+
var _ref = searchInput !== null && searchInput !== void 0 ? searchInput : {}, tmp = _ref.shouldRenderInList, shouldRenderSearchInputInList = tmp === void 0 ? false : tmp, searchInputProps = _object_without_properties$a(_ref, [
|
|
11310
11316
|
"shouldRenderInList"
|
|
11311
11317
|
]);
|
|
11312
11318
|
var hasSearchInputInList = optionsMode !== "normal" && shouldRenderSearchInputInList;
|
|
@@ -11641,8 +11647,8 @@
|
|
|
11641
11647
|
isOpen
|
|
11642
11648
|
]);
|
|
11643
11649
|
var _obj;
|
|
11644
|
-
var listEl = /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
11645
|
-
className: clsx(classes.listWrapper, (_obj = {}, _define_property$
|
|
11650
|
+
var listEl = /* @__PURE__ */ jsx("div", _object_spread_props$z(_object_spread$E({
|
|
11651
|
+
className: clsx(classes.listWrapper, (_obj = {}, _define_property$F(_obj, classes.withoutPopper, !shouldUsePopper), _define_property$F(_obj, classes.listWrapperInBody, shouldRenderInBody), _obj)),
|
|
11646
11652
|
ref: list,
|
|
11647
11653
|
style: popperData === null || popperData === void 0 ? void 0 : popperData.styles.popper,
|
|
11648
11654
|
onBlur: handleBlur
|
|
@@ -11652,7 +11658,7 @@
|
|
|
11652
11658
|
defaultOptionLabel: hasDefaultOption && shouldShowDefaultOption && defaultOptionLabel,
|
|
11653
11659
|
allOptionsLabel: shouldShowAllOption && allOptionsLabel,
|
|
11654
11660
|
areAllOptionsSelected,
|
|
11655
|
-
customListHeader: hasSearchInputInList && /* @__PURE__ */ jsx(SearchInput, _object_spread$
|
|
11661
|
+
customListHeader: hasSearchInputInList && /* @__PURE__ */ jsx(SearchInput, _object_spread$E({
|
|
11656
11662
|
value: searchValue,
|
|
11657
11663
|
onChange: handleInputChange,
|
|
11658
11664
|
tweakStyles: tweakSearchInputStyles,
|
|
@@ -11699,7 +11705,7 @@
|
|
|
11699
11705
|
onClick: isDisabled ? void 0 : handleOnClick,
|
|
11700
11706
|
ref: inputWrapper,
|
|
11701
11707
|
children: [
|
|
11702
|
-
/* @__PURE__ */ jsx(Input, _object_spread$
|
|
11708
|
+
/* @__PURE__ */ jsx(Input, _object_spread$E({
|
|
11703
11709
|
value: searchValue !== "" && !shouldRenderSearchInputInList ? searchValue : showedStringValue,
|
|
11704
11710
|
onChange: handleInputChange,
|
|
11705
11711
|
isActive: isListOpen,
|
|
@@ -11736,7 +11742,7 @@
|
|
|
11736
11742
|
}
|
|
11737
11743
|
var SELECT_PADDING_LEFT = 12;
|
|
11738
11744
|
var SELECT_PADDING_RIGHT = 24;
|
|
11739
|
-
var useStyles$
|
|
11745
|
+
var useStyles$B = createThemedStyles("DatePickerHeader", {
|
|
11740
11746
|
btn: {
|
|
11741
11747
|
width: 36,
|
|
11742
11748
|
height: 36,
|
|
@@ -11805,7 +11811,7 @@
|
|
|
11805
11811
|
};
|
|
11806
11812
|
var DatePickerHeader = function(param) {
|
|
11807
11813
|
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;
|
|
11808
|
-
var classes = useStyles$
|
|
11814
|
+
var classes = useStyles$B({
|
|
11809
11815
|
theme: tweakStyles
|
|
11810
11816
|
});
|
|
11811
11817
|
var tweakSelectStyles = useTweakStyles({
|
|
@@ -11914,7 +11920,7 @@
|
|
|
11914
11920
|
var areDatesEquals = function(date1, date2) {
|
|
11915
11921
|
return trueReactPlatformHelpers.isEmpty(date1) && trueReactPlatformHelpers.isEmpty(date2) || trueReactPlatformHelpers.isNotEmpty(date1) && trueReactPlatformHelpers.isNotEmpty(date2) && dateFns.isSameDay(date1, date2);
|
|
11916
11922
|
};
|
|
11917
|
-
var useStyles$
|
|
11923
|
+
var useStyles$A = createThemedStyles("DatePicker", {
|
|
11918
11924
|
root: {
|
|
11919
11925
|
width: "100%",
|
|
11920
11926
|
height: "100%"
|
|
@@ -11948,7 +11954,7 @@
|
|
|
11948
11954
|
if (Array.isArray(arr))
|
|
11949
11955
|
return arr;
|
|
11950
11956
|
}
|
|
11951
|
-
function _define_property$
|
|
11957
|
+
function _define_property$E(obj, key, value) {
|
|
11952
11958
|
if (key in obj) {
|
|
11953
11959
|
Object.defineProperty(obj, key, {
|
|
11954
11960
|
value,
|
|
@@ -11992,7 +11998,7 @@
|
|
|
11992
11998
|
function _non_iterable_rest$k() {
|
|
11993
11999
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
11994
12000
|
}
|
|
11995
|
-
function _object_spread$
|
|
12001
|
+
function _object_spread$D(target) {
|
|
11996
12002
|
for (var i = 1; i < arguments.length; i++) {
|
|
11997
12003
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
11998
12004
|
var ownKeys2 = Object.keys(source);
|
|
@@ -12002,12 +12008,12 @@
|
|
|
12002
12008
|
}));
|
|
12003
12009
|
}
|
|
12004
12010
|
ownKeys2.forEach(function(key) {
|
|
12005
|
-
_define_property$
|
|
12011
|
+
_define_property$E(target, key, source[key]);
|
|
12006
12012
|
});
|
|
12007
12013
|
}
|
|
12008
12014
|
return target;
|
|
12009
12015
|
}
|
|
12010
|
-
function ownKeys$
|
|
12016
|
+
function ownKeys$y(object, enumerableOnly) {
|
|
12011
12017
|
var keys2 = Object.keys(object);
|
|
12012
12018
|
if (Object.getOwnPropertySymbols) {
|
|
12013
12019
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -12020,21 +12026,21 @@
|
|
|
12020
12026
|
}
|
|
12021
12027
|
return keys2;
|
|
12022
12028
|
}
|
|
12023
|
-
function _object_spread_props$
|
|
12029
|
+
function _object_spread_props$y(target, source) {
|
|
12024
12030
|
source = source != null ? source : {};
|
|
12025
12031
|
if (Object.getOwnPropertyDescriptors) {
|
|
12026
12032
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
12027
12033
|
} else {
|
|
12028
|
-
ownKeys$
|
|
12034
|
+
ownKeys$y(Object(source)).forEach(function(key) {
|
|
12029
12035
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
12030
12036
|
});
|
|
12031
12037
|
}
|
|
12032
12038
|
return target;
|
|
12033
12039
|
}
|
|
12034
|
-
function _object_without_properties$
|
|
12040
|
+
function _object_without_properties$9(source, excluded) {
|
|
12035
12041
|
if (source == null)
|
|
12036
12042
|
return {};
|
|
12037
|
-
var target = _object_without_properties_loose$
|
|
12043
|
+
var target = _object_without_properties_loose$9(source, excluded);
|
|
12038
12044
|
var key, i;
|
|
12039
12045
|
if (Object.getOwnPropertySymbols) {
|
|
12040
12046
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -12049,7 +12055,7 @@
|
|
|
12049
12055
|
}
|
|
12050
12056
|
return target;
|
|
12051
12057
|
}
|
|
12052
|
-
function _object_without_properties_loose$
|
|
12058
|
+
function _object_without_properties_loose$9(source, excluded) {
|
|
12053
12059
|
if (source == null)
|
|
12054
12060
|
return {};
|
|
12055
12061
|
var target = {};
|
|
@@ -12080,7 +12086,7 @@
|
|
|
12080
12086
|
return _array_like_to_array$k(o, minLen);
|
|
12081
12087
|
}
|
|
12082
12088
|
var DatePicker = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
12083
|
-
var data = _param.data, _param_selectedDate = _param.selectedDate, selectedDate = _param_selectedDate === void 0 ? null : _param_selectedDate, minDate = _param.minDate, maxDate = _param.maxDate, _param_endDate = _param.endDate, endDate = _param_endDate === void 0 ? null : _param_endDate, _param_startDate = _param.startDate, startDate = _param_startDate === void 0 ? null : _param_startDate, locale2 = _param.locale, months = _param.months, _param_calendarStartDay = _param.calendarStartDay, calendarStartDay = _param_calendarStartDay === void 0 ? 1 : _param_calendarStartDay, _param_dateFormat = _param.dateFormat, dateFormat = _param_dateFormat === void 0 ? DEFAULT_DATE_FORMAT$2 : _param_dateFormat, monthsShown = _param.monthsShown, placeholder = _param.placeholder, _param_isRange = _param.isRange, isRange = _param_isRange === void 0 ? false : _param_isRange, _param_isInline = _param.isInline, isInline = _param_isInline === void 0 ? false : _param_isInline, isDisabled = _param.isDisabled, isClearable = _param.isClearable, strictParsing = _param.strictParsing, focusSelectedMonth = _param.focusSelectedMonth, disabledKeyboardNavigation = _param.disabledKeyboardNavigation, _param_shouldRenderPopperInBody = _param.shouldRenderPopperInBody, shouldRenderPopperInBody = _param_shouldRenderPopperInBody === void 0 ? false : _param_shouldRenderPopperInBody, _param_allowSameDay = _param.allowSameDay, allowSameDay = _param_allowSameDay === void 0 ? false : _param_allowSameDay, shouldCloseOnSelect = _param.shouldCloseOnSelect, showPreviousMonths = _param.showPreviousMonths, preventOpenOnFocus = _param.preventOpenOnFocus, popperModifiers = _param.popperModifiers, popperPlacement = _param.popperPlacement, todayButton = _param.todayButton, 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$
|
|
12089
|
+
var data = _param.data, _param_selectedDate = _param.selectedDate, selectedDate = _param_selectedDate === void 0 ? null : _param_selectedDate, minDate = _param.minDate, maxDate = _param.maxDate, _param_endDate = _param.endDate, endDate = _param_endDate === void 0 ? null : _param_endDate, _param_startDate = _param.startDate, startDate = _param_startDate === void 0 ? null : _param_startDate, locale2 = _param.locale, months = _param.months, _param_calendarStartDay = _param.calendarStartDay, calendarStartDay = _param_calendarStartDay === void 0 ? 1 : _param_calendarStartDay, _param_dateFormat = _param.dateFormat, dateFormat = _param_dateFormat === void 0 ? DEFAULT_DATE_FORMAT$2 : _param_dateFormat, monthsShown = _param.monthsShown, placeholder = _param.placeholder, _param_isRange = _param.isRange, isRange = _param_isRange === void 0 ? false : _param_isRange, _param_isInline = _param.isInline, isInline = _param_isInline === void 0 ? false : _param_isInline, isDisabled = _param.isDisabled, isClearable = _param.isClearable, strictParsing = _param.strictParsing, focusSelectedMonth = _param.focusSelectedMonth, disabledKeyboardNavigation = _param.disabledKeyboardNavigation, _param_shouldRenderPopperInBody = _param.shouldRenderPopperInBody, shouldRenderPopperInBody = _param_shouldRenderPopperInBody === void 0 ? false : _param_shouldRenderPopperInBody, _param_allowSameDay = _param.allowSameDay, allowSameDay = _param_allowSameDay === void 0 ? false : _param_allowSameDay, shouldCloseOnSelect = _param.shouldCloseOnSelect, showPreviousMonths = _param.showPreviousMonths, preventOpenOnFocus = _param.preventOpenOnFocus, popperModifiers = _param.popperModifiers, popperPlacement = _param.popperPlacement, todayButton = _param.todayButton, 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$9(_param, [
|
|
12084
12090
|
"data",
|
|
12085
12091
|
"selectedDate",
|
|
12086
12092
|
"minDate",
|
|
@@ -12125,7 +12131,7 @@
|
|
|
12125
12131
|
"onKeyDown",
|
|
12126
12132
|
"tweakStyles"
|
|
12127
12133
|
]);
|
|
12128
|
-
var classes = useStyles$
|
|
12134
|
+
var classes = useStyles$A({
|
|
12129
12135
|
theme: tweakStyles
|
|
12130
12136
|
});
|
|
12131
12137
|
var tweakDateInputStyles = useTweakStyles({
|
|
@@ -12148,7 +12154,7 @@
|
|
|
12148
12154
|
var _useState4 = _sliced_to_array$k(React.useState(endDate), 2), end2 = _useState4[0], setEnd = _useState4[1];
|
|
12149
12155
|
var _useState5 = _sliced_to_array$k(React.useState(formatDate(endDate)), 2), endDateValue = _useState5[0], setEndDateValue = _useState5[1];
|
|
12150
12156
|
var hasDateInputValue = isRange ? trueReactPlatformHelpers.isStringNotEmpty(startDateValue) || trueReactPlatformHelpers.isStringNotEmpty(endDateValue) : trueReactPlatformHelpers.isStringNotEmpty(dateValue);
|
|
12151
|
-
var dateInputProps = _object_spread$
|
|
12157
|
+
var dateInputProps = _object_spread$D(_object_spread_props$y(_object_spread$D({}, inputProps), {
|
|
12152
12158
|
isRange,
|
|
12153
12159
|
isDisabled,
|
|
12154
12160
|
isClearable,
|
|
@@ -12246,10 +12252,10 @@
|
|
|
12246
12252
|
startDate,
|
|
12247
12253
|
endDate
|
|
12248
12254
|
]);
|
|
12249
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
12255
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$y(_object_spread$D({
|
|
12250
12256
|
className: classes.root
|
|
12251
12257
|
}, addDataAttributes(data)), {
|
|
12252
|
-
children: /* @__PURE__ */ jsx(DatePickerComponent, _object_spread$
|
|
12258
|
+
children: /* @__PURE__ */ jsx(DatePickerComponent, _object_spread$D({
|
|
12253
12259
|
ref,
|
|
12254
12260
|
minDate,
|
|
12255
12261
|
maxDate,
|
|
@@ -12278,9 +12284,9 @@
|
|
|
12278
12284
|
preventOpenOnFocus,
|
|
12279
12285
|
shouldCloseOnSelect,
|
|
12280
12286
|
customInputRef,
|
|
12281
|
-
customInput: /* @__PURE__ */ jsx(CustomInput, _object_spread$
|
|
12287
|
+
customInput: /* @__PURE__ */ jsx(CustomInput, _object_spread$D({}, dateInputProps)),
|
|
12282
12288
|
renderCustomHeader: renderCustomHeader !== null && renderCustomHeader !== void 0 ? renderCustomHeader : function(baseProps) {
|
|
12283
|
-
return /* @__PURE__ */ jsx(DatePickerHeader, _object_spread_props$
|
|
12289
|
+
return /* @__PURE__ */ jsx(DatePickerHeader, _object_spread_props$y(_object_spread$D({}, baseProps), {
|
|
12284
12290
|
months
|
|
12285
12291
|
}));
|
|
12286
12292
|
},
|
|
@@ -12317,7 +12323,7 @@
|
|
|
12317
12323
|
}));
|
|
12318
12324
|
});
|
|
12319
12325
|
var LINK_REGEXP = /(http(s?):\/\/(.*))(\s?)/;
|
|
12320
|
-
var useStyles$
|
|
12326
|
+
var useStyles$z = createThemedStyles("Description", {
|
|
12321
12327
|
root: {},
|
|
12322
12328
|
button: {
|
|
12323
12329
|
cursor: "pointer",
|
|
@@ -12358,7 +12364,7 @@
|
|
|
12358
12364
|
if (Array.isArray(arr))
|
|
12359
12365
|
return arr;
|
|
12360
12366
|
}
|
|
12361
|
-
function _define_property$
|
|
12367
|
+
function _define_property$D(obj, key, value) {
|
|
12362
12368
|
if (key in obj) {
|
|
12363
12369
|
Object.defineProperty(obj, key, {
|
|
12364
12370
|
value,
|
|
@@ -12402,7 +12408,7 @@
|
|
|
12402
12408
|
function _non_iterable_rest$j() {
|
|
12403
12409
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
12404
12410
|
}
|
|
12405
|
-
function _object_spread$
|
|
12411
|
+
function _object_spread$C(target) {
|
|
12406
12412
|
for (var i = 1; i < arguments.length; i++) {
|
|
12407
12413
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
12408
12414
|
var ownKeys2 = Object.keys(source);
|
|
@@ -12412,12 +12418,12 @@
|
|
|
12412
12418
|
}));
|
|
12413
12419
|
}
|
|
12414
12420
|
ownKeys2.forEach(function(key) {
|
|
12415
|
-
_define_property$
|
|
12421
|
+
_define_property$D(target, key, source[key]);
|
|
12416
12422
|
});
|
|
12417
12423
|
}
|
|
12418
12424
|
return target;
|
|
12419
12425
|
}
|
|
12420
|
-
function ownKeys$
|
|
12426
|
+
function ownKeys$x(object, enumerableOnly) {
|
|
12421
12427
|
var keys2 = Object.keys(object);
|
|
12422
12428
|
if (Object.getOwnPropertySymbols) {
|
|
12423
12429
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -12430,12 +12436,12 @@
|
|
|
12430
12436
|
}
|
|
12431
12437
|
return keys2;
|
|
12432
12438
|
}
|
|
12433
|
-
function _object_spread_props$
|
|
12439
|
+
function _object_spread_props$x(target, source) {
|
|
12434
12440
|
source = source != null ? source : {};
|
|
12435
12441
|
if (Object.getOwnPropertyDescriptors) {
|
|
12436
12442
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
12437
12443
|
} else {
|
|
12438
|
-
ownKeys$
|
|
12444
|
+
ownKeys$x(Object(source)).forEach(function(key) {
|
|
12439
12445
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
12440
12446
|
});
|
|
12441
12447
|
}
|
|
@@ -12459,7 +12465,7 @@
|
|
|
12459
12465
|
}
|
|
12460
12466
|
var Description = function(param) {
|
|
12461
12467
|
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;
|
|
12462
|
-
var classes = useStyles$
|
|
12468
|
+
var classes = useStyles$z({
|
|
12463
12469
|
theme: tweakStyles
|
|
12464
12470
|
});
|
|
12465
12471
|
var isTooShort = text.length < truncateIndex;
|
|
@@ -12468,7 +12474,7 @@
|
|
|
12468
12474
|
var linkText = link && link[0];
|
|
12469
12475
|
var textWithNoLink = text.replace(LINK_REGEXP, "");
|
|
12470
12476
|
var shortText = text.slice(0, text.slice(0, truncateIndex).lastIndexOf(" "));
|
|
12471
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
12477
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$x(_object_spread$C({
|
|
12472
12478
|
className: classes.root
|
|
12473
12479
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
12474
12480
|
children: [
|
|
@@ -12715,7 +12721,7 @@
|
|
|
12715
12721
|
});
|
|
12716
12722
|
};
|
|
12717
12723
|
}
|
|
12718
|
-
function _define_property$
|
|
12724
|
+
function _define_property$C(obj, key, value) {
|
|
12719
12725
|
if (key in obj) {
|
|
12720
12726
|
Object.defineProperty(obj, key, {
|
|
12721
12727
|
value,
|
|
@@ -12759,7 +12765,7 @@
|
|
|
12759
12765
|
function _non_iterable_rest$i() {
|
|
12760
12766
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
12761
12767
|
}
|
|
12762
|
-
function _object_spread$
|
|
12768
|
+
function _object_spread$B(target) {
|
|
12763
12769
|
for (var i = 1; i < arguments.length; i++) {
|
|
12764
12770
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
12765
12771
|
var ownKeys2 = Object.keys(source);
|
|
@@ -12769,15 +12775,15 @@
|
|
|
12769
12775
|
}));
|
|
12770
12776
|
}
|
|
12771
12777
|
ownKeys2.forEach(function(key) {
|
|
12772
|
-
_define_property$
|
|
12778
|
+
_define_property$C(target, key, source[key]);
|
|
12773
12779
|
});
|
|
12774
12780
|
}
|
|
12775
12781
|
return target;
|
|
12776
12782
|
}
|
|
12777
|
-
function _object_without_properties$
|
|
12783
|
+
function _object_without_properties$8(source, excluded) {
|
|
12778
12784
|
if (source == null)
|
|
12779
12785
|
return {};
|
|
12780
|
-
var target = _object_without_properties_loose$
|
|
12786
|
+
var target = _object_without_properties_loose$8(source, excluded);
|
|
12781
12787
|
var key, i;
|
|
12782
12788
|
if (Object.getOwnPropertySymbols) {
|
|
12783
12789
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -12792,7 +12798,7 @@
|
|
|
12792
12798
|
}
|
|
12793
12799
|
return target;
|
|
12794
12800
|
}
|
|
12795
|
-
function _object_without_properties_loose$
|
|
12801
|
+
function _object_without_properties_loose$8(source, excluded) {
|
|
12796
12802
|
if (source == null)
|
|
12797
12803
|
return {};
|
|
12798
12804
|
var target = {};
|
|
@@ -12925,7 +12931,7 @@
|
|
|
12925
12931
|
}
|
|
12926
12932
|
}
|
|
12927
12933
|
var NumberInput = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
12928
|
-
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$
|
|
12934
|
+
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$8(_param, [
|
|
12929
12935
|
"value",
|
|
12930
12936
|
"canBeFloat",
|
|
12931
12937
|
"canBeNegative",
|
|
@@ -13028,7 +13034,7 @@
|
|
|
13028
13034
|
}, [
|
|
13029
13035
|
value
|
|
13030
13036
|
]);
|
|
13031
|
-
return /* @__PURE__ */ jsx(Input, _object_spread$
|
|
13037
|
+
return /* @__PURE__ */ jsx(Input, _object_spread$B({
|
|
13032
13038
|
value: showedValue,
|
|
13033
13039
|
onChange: handleChange,
|
|
13034
13040
|
onBlur: handleBlur,
|
|
@@ -13306,7 +13312,7 @@
|
|
|
13306
13312
|
return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
|
|
13307
13313
|
}
|
|
13308
13314
|
var FILTER_HEIGHT = 36;
|
|
13309
|
-
var useStyles$
|
|
13315
|
+
var useStyles$y = createThemedStyles("FiltersPane", {
|
|
13310
13316
|
root: {
|
|
13311
13317
|
display: "flex",
|
|
13312
13318
|
flexWrap: "wrap",
|
|
@@ -13322,7 +13328,8 @@
|
|
|
13322
13328
|
width: 40,
|
|
13323
13329
|
height: FILTER_HEIGHT,
|
|
13324
13330
|
cursor: "pointer",
|
|
13325
|
-
transition:
|
|
13331
|
+
transition: animations.defaultTransition,
|
|
13332
|
+
transitionProperty: "background-color"
|
|
13326
13333
|
},
|
|
13327
13334
|
settingsIcon: {
|
|
13328
13335
|
width: 16,
|
|
@@ -13371,7 +13378,7 @@
|
|
|
13371
13378
|
}
|
|
13372
13379
|
}
|
|
13373
13380
|
};
|
|
13374
|
-
var useStyles$
|
|
13381
|
+
var useStyles$x = createThemedStyles("FilterInterval", {
|
|
13375
13382
|
root: {
|
|
13376
13383
|
padding: 8,
|
|
13377
13384
|
background: colors.CLASSIC_WHITE
|
|
@@ -13414,7 +13421,7 @@
|
|
|
13414
13421
|
}
|
|
13415
13422
|
};
|
|
13416
13423
|
var clearButtonStyles$3 = cloneDeep(innerTextButtonStyles);
|
|
13417
|
-
function _define_property$
|
|
13424
|
+
function _define_property$B(obj, key, value) {
|
|
13418
13425
|
if (key in obj) {
|
|
13419
13426
|
Object.defineProperty(obj, key, {
|
|
13420
13427
|
value,
|
|
@@ -13427,7 +13434,7 @@
|
|
|
13427
13434
|
}
|
|
13428
13435
|
return obj;
|
|
13429
13436
|
}
|
|
13430
|
-
function _object_spread$
|
|
13437
|
+
function _object_spread$A(target) {
|
|
13431
13438
|
for (var i = 1; i < arguments.length; i++) {
|
|
13432
13439
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
13433
13440
|
var ownKeys2 = Object.keys(source);
|
|
@@ -13437,12 +13444,12 @@
|
|
|
13437
13444
|
}));
|
|
13438
13445
|
}
|
|
13439
13446
|
ownKeys2.forEach(function(key) {
|
|
13440
|
-
_define_property$
|
|
13447
|
+
_define_property$B(target, key, source[key]);
|
|
13441
13448
|
});
|
|
13442
13449
|
}
|
|
13443
13450
|
return target;
|
|
13444
13451
|
}
|
|
13445
|
-
function ownKeys$
|
|
13452
|
+
function ownKeys$w(object, enumerableOnly) {
|
|
13446
13453
|
var keys2 = Object.keys(object);
|
|
13447
13454
|
if (Object.getOwnPropertySymbols) {
|
|
13448
13455
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -13455,12 +13462,12 @@
|
|
|
13455
13462
|
}
|
|
13456
13463
|
return keys2;
|
|
13457
13464
|
}
|
|
13458
|
-
function _object_spread_props$
|
|
13465
|
+
function _object_spread_props$w(target, source) {
|
|
13459
13466
|
source = source != null ? source : {};
|
|
13460
13467
|
if (Object.getOwnPropertyDescriptors) {
|
|
13461
13468
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
13462
13469
|
} else {
|
|
13463
|
-
ownKeys$
|
|
13470
|
+
ownKeys$w(Object(source)).forEach(function(key) {
|
|
13464
13471
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
13465
13472
|
});
|
|
13466
13473
|
}
|
|
@@ -13468,7 +13475,7 @@
|
|
|
13468
13475
|
}
|
|
13469
13476
|
var FilterInterval = function(param) {
|
|
13470
13477
|
var data = param.data, tweakStyles = param.tweakStyles, value = param.value, labelName = param.labelName, withFieldNameInLabel = param.withFieldNameInLabel, localeKey = param.localeKey, locale2 = param.locale, canBeFloat = param.canBeFloat, onChange = param.onChange, fromInput = param.fromInput, toInput = param.toInput, testId = param.testId;
|
|
13471
|
-
var classes = useStyles$
|
|
13478
|
+
var classes = useStyles$x({
|
|
13472
13479
|
theme: tweakStyles
|
|
13473
13480
|
});
|
|
13474
13481
|
var translates = React.useMemo(function() {
|
|
@@ -13512,7 +13519,7 @@
|
|
|
13512
13519
|
className: "tweakClearButton",
|
|
13513
13520
|
currentComponentName: "FilterInterval"
|
|
13514
13521
|
});
|
|
13515
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
13522
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$w(_object_spread$A({
|
|
13516
13523
|
className: classes.root
|
|
13517
13524
|
}, addDataAttributes(data)), {
|
|
13518
13525
|
children: [
|
|
@@ -13609,7 +13616,7 @@
|
|
|
13609
13616
|
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;
|
|
13610
13617
|
return merge$1({}, MultiSelectLocales[key], custom, custom2);
|
|
13611
13618
|
};
|
|
13612
|
-
function _define_property$
|
|
13619
|
+
function _define_property$A(obj, key, value) {
|
|
13613
13620
|
if (key in obj) {
|
|
13614
13621
|
Object.defineProperty(obj, key, {
|
|
13615
13622
|
value,
|
|
@@ -13622,7 +13629,7 @@
|
|
|
13622
13629
|
}
|
|
13623
13630
|
return obj;
|
|
13624
13631
|
}
|
|
13625
|
-
function _object_spread$
|
|
13632
|
+
function _object_spread$z(target) {
|
|
13626
13633
|
for (var i = 1; i < arguments.length; i++) {
|
|
13627
13634
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
13628
13635
|
var ownKeys2 = Object.keys(source);
|
|
@@ -13632,19 +13639,19 @@
|
|
|
13632
13639
|
}));
|
|
13633
13640
|
}
|
|
13634
13641
|
ownKeys2.forEach(function(key) {
|
|
13635
|
-
_define_property$
|
|
13642
|
+
_define_property$A(target, key, source[key]);
|
|
13636
13643
|
});
|
|
13637
13644
|
}
|
|
13638
13645
|
return target;
|
|
13639
13646
|
}
|
|
13640
13647
|
var ITEM_HEIGHT$1 = 40;
|
|
13641
13648
|
var TOP_GAP = 12;
|
|
13642
|
-
var useStyles$
|
|
13649
|
+
var useStyles$w = createThemedStyles("MultiSelectList", {
|
|
13643
13650
|
root: {
|
|
13644
13651
|
width: 220,
|
|
13645
13652
|
background: colors.CLASSIC_WHITE
|
|
13646
13653
|
},
|
|
13647
|
-
list: _object_spread$
|
|
13654
|
+
list: _object_spread$z({
|
|
13648
13655
|
paddingTop: TOP_GAP,
|
|
13649
13656
|
maxHeight: ITEM_HEIGHT$1 * 5 + TOP_GAP,
|
|
13650
13657
|
overscrollBehavior: "contain"
|
|
@@ -13801,7 +13808,7 @@
|
|
|
13801
13808
|
});
|
|
13802
13809
|
};
|
|
13803
13810
|
}
|
|
13804
|
-
function _define_property$
|
|
13811
|
+
function _define_property$z(obj, key, value) {
|
|
13805
13812
|
if (key in obj) {
|
|
13806
13813
|
Object.defineProperty(obj, key, {
|
|
13807
13814
|
value,
|
|
@@ -13852,7 +13859,7 @@
|
|
|
13852
13859
|
function _non_iterable_spread$5() {
|
|
13853
13860
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
13854
13861
|
}
|
|
13855
|
-
function _object_spread$
|
|
13862
|
+
function _object_spread$y(target) {
|
|
13856
13863
|
for (var i = 1; i < arguments.length; i++) {
|
|
13857
13864
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
13858
13865
|
var ownKeys2 = Object.keys(source);
|
|
@@ -13862,12 +13869,12 @@
|
|
|
13862
13869
|
}));
|
|
13863
13870
|
}
|
|
13864
13871
|
ownKeys2.forEach(function(key) {
|
|
13865
|
-
_define_property$
|
|
13872
|
+
_define_property$z(target, key, source[key]);
|
|
13866
13873
|
});
|
|
13867
13874
|
}
|
|
13868
13875
|
return target;
|
|
13869
13876
|
}
|
|
13870
|
-
function ownKeys$
|
|
13877
|
+
function ownKeys$v(object, enumerableOnly) {
|
|
13871
13878
|
var keys2 = Object.keys(object);
|
|
13872
13879
|
if (Object.getOwnPropertySymbols) {
|
|
13873
13880
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -13880,12 +13887,12 @@
|
|
|
13880
13887
|
}
|
|
13881
13888
|
return keys2;
|
|
13882
13889
|
}
|
|
13883
|
-
function _object_spread_props$
|
|
13890
|
+
function _object_spread_props$v(target, source) {
|
|
13884
13891
|
source = source != null ? source : {};
|
|
13885
13892
|
if (Object.getOwnPropertyDescriptors) {
|
|
13886
13893
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
13887
13894
|
} else {
|
|
13888
|
-
ownKeys$
|
|
13895
|
+
ownKeys$v(Object(source)).forEach(function(key) {
|
|
13889
13896
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
13890
13897
|
});
|
|
13891
13898
|
}
|
|
@@ -14015,7 +14022,7 @@
|
|
|
14015
14022
|
function MultiSelectList(param) {
|
|
14016
14023
|
var value = param.value, tweakStyles = param.tweakStyles, data = param.data, _param_isSearchEnabled = param.isSearchEnabled, isSearchEnabled = _param_isSearchEnabled === void 0 ? false : _param_isSearchEnabled, _param_localeKey = param.localeKey, localeKey = _param_localeKey === void 0 ? DEFAULT_LOCALE : _param_localeKey, _param_locale = param.locale, locale2 = _param_locale === void 0 ? MultiSelectLocales[localeKey] : _param_locale, onChange = param.onChange, onClose = param.onClose, options = param.options, fetchOptions = param.fetchOptions, _param_isGroupingEnabled = param.isGroupingEnabled, isGroupingEnabled = _param_isGroupingEnabled === void 0 ? isSearchEnabled : _param_isGroupingEnabled, _param_getValueView = param.getValueView, getValueView = _param_getValueView === void 0 ? defaultConvertFunction : _param_getValueView, _param_getValueId = param.getValueId, getValueId = _param_getValueId === void 0 ? defaultConvertFunction : _param_getValueId, _param_getValueString = param.getValueString, getValueString = _param_getValueString === void 0 ? defaultConvertFunction : _param_getValueString, _param_checkboxPosition = param.checkboxPosition, checkboxPosition = _param_checkboxPosition === void 0 ? "left" : _param_checkboxPosition, pageSize = param.pageSize, searchMaxLength = param.searchMaxLength, testId = param.testId;
|
|
14017
14024
|
var isMounted = useIsMounted();
|
|
14018
|
-
var classes = useStyles$
|
|
14025
|
+
var classes = useStyles$w({
|
|
14019
14026
|
theme: tweakStyles
|
|
14020
14027
|
});
|
|
14021
14028
|
var tweakCheckboxStyles = useTweakStyles({
|
|
@@ -14184,13 +14191,13 @@
|
|
|
14184
14191
|
if (value !== void 0) {
|
|
14185
14192
|
if (keyCursorOn < value.include.length) {
|
|
14186
14193
|
var _value_include_filter;
|
|
14187
|
-
onChange(_object_spread_props$
|
|
14194
|
+
onChange(_object_spread_props$v(_object_spread$y({}, value), {
|
|
14188
14195
|
include: (_value_include_filter = value.include.filter(function(val) {
|
|
14189
14196
|
return getValueId(val) !== getValueId(value.include[keyCursorOn]);
|
|
14190
14197
|
})) !== null && _value_include_filter !== void 0 ? _value_include_filter : []
|
|
14191
14198
|
}));
|
|
14192
14199
|
} else {
|
|
14193
|
-
onChange(_object_spread_props$
|
|
14200
|
+
onChange(_object_spread_props$v(_object_spread$y({}, value), {
|
|
14194
14201
|
include: _to_consumable_array$5(value.include).concat([
|
|
14195
14202
|
unchosenOptions[keyCursorOn - value.include.length]
|
|
14196
14203
|
])
|
|
@@ -14389,7 +14396,7 @@
|
|
|
14389
14396
|
var shouldShowAllOptionsLabel = isGroupingEnabled && unchosenOptions.length > 0 && chosenValues !== void 0 && chosenValues.length > 0;
|
|
14390
14397
|
var shouldShowPreloader = isLoading || isLoadingOptionsOnScroll;
|
|
14391
14398
|
var shouldShowOptionsList = !isLoading && allOptions.length !== 0;
|
|
14392
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
14399
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$v(_object_spread$y({
|
|
14393
14400
|
className: classes.root
|
|
14394
14401
|
}, addDataAttributes(data)), {
|
|
14395
14402
|
children: [
|
|
@@ -14493,7 +14500,7 @@
|
|
|
14493
14500
|
]
|
|
14494
14501
|
}));
|
|
14495
14502
|
}
|
|
14496
|
-
function _define_property$
|
|
14503
|
+
function _define_property$y(obj, key, value) {
|
|
14497
14504
|
if (key in obj) {
|
|
14498
14505
|
Object.defineProperty(obj, key, {
|
|
14499
14506
|
value,
|
|
@@ -14506,7 +14513,7 @@
|
|
|
14506
14513
|
}
|
|
14507
14514
|
return obj;
|
|
14508
14515
|
}
|
|
14509
|
-
function _object_spread$
|
|
14516
|
+
function _object_spread$x(target) {
|
|
14510
14517
|
for (var i = 1; i < arguments.length; i++) {
|
|
14511
14518
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14512
14519
|
var ownKeys2 = Object.keys(source);
|
|
@@ -14516,15 +14523,15 @@
|
|
|
14516
14523
|
}));
|
|
14517
14524
|
}
|
|
14518
14525
|
ownKeys2.forEach(function(key) {
|
|
14519
|
-
_define_property$
|
|
14526
|
+
_define_property$y(target, key, source[key]);
|
|
14520
14527
|
});
|
|
14521
14528
|
}
|
|
14522
14529
|
return target;
|
|
14523
14530
|
}
|
|
14524
14531
|
function FilterMultiSelect(props) {
|
|
14525
|
-
return /* @__PURE__ */ jsx(MultiSelectList, _object_spread$
|
|
14532
|
+
return /* @__PURE__ */ jsx(MultiSelectList, _object_spread$x({}, props));
|
|
14526
14533
|
}
|
|
14527
|
-
function _define_property$
|
|
14534
|
+
function _define_property$x(obj, key, value) {
|
|
14528
14535
|
if (key in obj) {
|
|
14529
14536
|
Object.defineProperty(obj, key, {
|
|
14530
14537
|
value,
|
|
@@ -14537,7 +14544,7 @@
|
|
|
14537
14544
|
}
|
|
14538
14545
|
return obj;
|
|
14539
14546
|
}
|
|
14540
|
-
function _object_spread$
|
|
14547
|
+
function _object_spread$w(target) {
|
|
14541
14548
|
for (var i = 1; i < arguments.length; i++) {
|
|
14542
14549
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14543
14550
|
var ownKeys2 = Object.keys(source);
|
|
@@ -14547,19 +14554,19 @@
|
|
|
14547
14554
|
}));
|
|
14548
14555
|
}
|
|
14549
14556
|
ownKeys2.forEach(function(key) {
|
|
14550
|
-
_define_property$
|
|
14557
|
+
_define_property$x(target, key, source[key]);
|
|
14551
14558
|
});
|
|
14552
14559
|
}
|
|
14553
14560
|
return target;
|
|
14554
14561
|
}
|
|
14555
14562
|
var ITEM_HEIGHT = 40;
|
|
14556
14563
|
var LIST_GAP = 12;
|
|
14557
|
-
var useStyles$
|
|
14564
|
+
var useStyles$v = createThemedStyles("FilterSelect", {
|
|
14558
14565
|
root: {
|
|
14559
14566
|
width: 220,
|
|
14560
14567
|
background: colors.CLASSIC_WHITE
|
|
14561
14568
|
},
|
|
14562
|
-
list: _object_spread$
|
|
14569
|
+
list: _object_spread$w({
|
|
14563
14570
|
paddingTop: LIST_GAP,
|
|
14564
14571
|
padding: [
|
|
14565
14572
|
LIST_GAP,
|
|
@@ -14608,7 +14615,8 @@
|
|
|
14608
14615
|
cursor: "pointer",
|
|
14609
14616
|
fontSize: 14,
|
|
14610
14617
|
minHeight: ITEM_HEIGHT,
|
|
14611
|
-
transition:
|
|
14618
|
+
transition: animations.defaultTransition,
|
|
14619
|
+
transitionProperty: "background-color",
|
|
14612
14620
|
boxSizing: "border-box"
|
|
14613
14621
|
},
|
|
14614
14622
|
option: {
|
|
@@ -14731,7 +14739,7 @@
|
|
|
14731
14739
|
});
|
|
14732
14740
|
};
|
|
14733
14741
|
}
|
|
14734
|
-
function _define_property$
|
|
14742
|
+
function _define_property$w(obj, key, value) {
|
|
14735
14743
|
if (key in obj) {
|
|
14736
14744
|
Object.defineProperty(obj, key, {
|
|
14737
14745
|
value,
|
|
@@ -14782,7 +14790,7 @@
|
|
|
14782
14790
|
function _non_iterable_spread$4() {
|
|
14783
14791
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14784
14792
|
}
|
|
14785
|
-
function _object_spread$
|
|
14793
|
+
function _object_spread$v(target) {
|
|
14786
14794
|
for (var i = 1; i < arguments.length; i++) {
|
|
14787
14795
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14788
14796
|
var ownKeys2 = Object.keys(source);
|
|
@@ -14792,12 +14800,12 @@
|
|
|
14792
14800
|
}));
|
|
14793
14801
|
}
|
|
14794
14802
|
ownKeys2.forEach(function(key) {
|
|
14795
|
-
_define_property$
|
|
14803
|
+
_define_property$w(target, key, source[key]);
|
|
14796
14804
|
});
|
|
14797
14805
|
}
|
|
14798
14806
|
return target;
|
|
14799
14807
|
}
|
|
14800
|
-
function ownKeys$
|
|
14808
|
+
function ownKeys$u(object, enumerableOnly) {
|
|
14801
14809
|
var keys2 = Object.keys(object);
|
|
14802
14810
|
if (Object.getOwnPropertySymbols) {
|
|
14803
14811
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -14810,12 +14818,12 @@
|
|
|
14810
14818
|
}
|
|
14811
14819
|
return keys2;
|
|
14812
14820
|
}
|
|
14813
|
-
function _object_spread_props$
|
|
14821
|
+
function _object_spread_props$u(target, source) {
|
|
14814
14822
|
source = source != null ? source : {};
|
|
14815
14823
|
if (Object.getOwnPropertyDescriptors) {
|
|
14816
14824
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
14817
14825
|
} else {
|
|
14818
|
-
ownKeys$
|
|
14826
|
+
ownKeys$u(Object(source)).forEach(function(key) {
|
|
14819
14827
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
14820
14828
|
});
|
|
14821
14829
|
}
|
|
@@ -14944,7 +14952,7 @@
|
|
|
14944
14952
|
}
|
|
14945
14953
|
function FilterSelect(param) {
|
|
14946
14954
|
var data = param.data, tweakStyles = param.tweakStyles, value = param.value, _param_isSearchEnabled = param.isSearchEnabled, isSearchEnabled = _param_isSearchEnabled === void 0 ? false : _param_isSearchEnabled, _param_isGroupingEnabled = param.isGroupingEnabled, isGroupingEnabled = _param_isGroupingEnabled === void 0 ? false : _param_isGroupingEnabled, localeKey = param.localeKey, locale2 = param.locale, onChange = param.onChange, 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;
|
|
14947
|
-
var classes = useStyles$
|
|
14955
|
+
var classes = useStyles$v({
|
|
14948
14956
|
theme: tweakStyles
|
|
14949
14957
|
});
|
|
14950
14958
|
var tweakSearchInputStyles = useTweakStyles({
|
|
@@ -15215,7 +15223,7 @@
|
|
|
15215
15223
|
}();
|
|
15216
15224
|
doFetchOptions();
|
|
15217
15225
|
}, []);
|
|
15218
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
15226
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$u(_object_spread$v({
|
|
15219
15227
|
className: classes.root
|
|
15220
15228
|
}, addDataAttributes(data)), {
|
|
15221
15229
|
children: [
|
|
@@ -15315,7 +15323,7 @@
|
|
|
15315
15323
|
children: translates.nothingFound
|
|
15316
15324
|
}),
|
|
15317
15325
|
(hasClearButton || hasFooter) && /* @__PURE__ */ jsxs("div", {
|
|
15318
|
-
className: clsx(classes.panel, _define_property$
|
|
15326
|
+
className: clsx(classes.panel, _define_property$w({}, classes.panelWithFooter, hasFooter)),
|
|
15319
15327
|
children: [
|
|
15320
15328
|
hasFooter && /* @__PURE__ */ jsx("div", {
|
|
15321
15329
|
className: classes.footer,
|
|
@@ -16428,7 +16436,7 @@
|
|
|
16428
16436
|
}
|
|
16429
16437
|
};
|
|
16430
16438
|
const ru = locale;
|
|
16431
|
-
var useStyles$
|
|
16439
|
+
var useStyles$u = createThemedStyles("FilterWithDates", {
|
|
16432
16440
|
root: {
|
|
16433
16441
|
background: colors.CLASSIC_WHITE,
|
|
16434
16442
|
position: "relative",
|
|
@@ -16495,7 +16503,7 @@
|
|
|
16495
16503
|
if (Array.isArray(arr))
|
|
16496
16504
|
return arr;
|
|
16497
16505
|
}
|
|
16498
|
-
function _define_property$
|
|
16506
|
+
function _define_property$v(obj, key, value) {
|
|
16499
16507
|
if (key in obj) {
|
|
16500
16508
|
Object.defineProperty(obj, key, {
|
|
16501
16509
|
value,
|
|
@@ -16539,7 +16547,7 @@
|
|
|
16539
16547
|
function _non_iterable_rest$f() {
|
|
16540
16548
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
16541
16549
|
}
|
|
16542
|
-
function _object_spread$
|
|
16550
|
+
function _object_spread$u(target) {
|
|
16543
16551
|
for (var i = 1; i < arguments.length; i++) {
|
|
16544
16552
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
16545
16553
|
var ownKeys2 = Object.keys(source);
|
|
@@ -16549,12 +16557,12 @@
|
|
|
16549
16557
|
}));
|
|
16550
16558
|
}
|
|
16551
16559
|
ownKeys2.forEach(function(key) {
|
|
16552
|
-
_define_property$
|
|
16560
|
+
_define_property$v(target, key, source[key]);
|
|
16553
16561
|
});
|
|
16554
16562
|
}
|
|
16555
16563
|
return target;
|
|
16556
16564
|
}
|
|
16557
|
-
function ownKeys$
|
|
16565
|
+
function ownKeys$t(object, enumerableOnly) {
|
|
16558
16566
|
var keys2 = Object.keys(object);
|
|
16559
16567
|
if (Object.getOwnPropertySymbols) {
|
|
16560
16568
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -16567,12 +16575,12 @@
|
|
|
16567
16575
|
}
|
|
16568
16576
|
return keys2;
|
|
16569
16577
|
}
|
|
16570
|
-
function _object_spread_props$
|
|
16578
|
+
function _object_spread_props$t(target, source) {
|
|
16571
16579
|
source = source != null ? source : {};
|
|
16572
16580
|
if (Object.getOwnPropertyDescriptors) {
|
|
16573
16581
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
16574
16582
|
} else {
|
|
16575
|
-
ownKeys$
|
|
16583
|
+
ownKeys$t(Object(source)).forEach(function(key) {
|
|
16576
16584
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
16577
16585
|
});
|
|
16578
16586
|
}
|
|
@@ -16596,7 +16604,7 @@
|
|
|
16596
16604
|
}
|
|
16597
16605
|
var FilterWithDates = function(param) {
|
|
16598
16606
|
var value = param.value, onChange = param.onChange, localeKey = param.localeKey, locale2 = param.locale, onStartBtnSubmit = param.onStartBtnSubmit, onEndBtnSubmit = param.onEndBtnSubmit, data = param.data, tweakStyles = param.tweakStyles, testId = param.testId, _param_startPickerProps = param.startPickerProps, startPickerProps = _param_startPickerProps === void 0 ? DEFAULT_PICKER_PROPS : _param_startPickerProps, _param_endPickerProps = param.endPickerProps, endPickerProps = _param_endPickerProps === void 0 ? DEFAULT_PICKER_PROPS : _param_endPickerProps, _param_isClearable = param.isClearable, isClearable = _param_isClearable === void 0 ? true : _param_isClearable;
|
|
16599
|
-
var classes = useStyles$
|
|
16607
|
+
var classes = useStyles$u({
|
|
16600
16608
|
theme: tweakStyles
|
|
16601
16609
|
});
|
|
16602
16610
|
var tweakClearButtonStyles = useTweakStyles({
|
|
@@ -16683,7 +16691,7 @@
|
|
|
16683
16691
|
}
|
|
16684
16692
|
};
|
|
16685
16693
|
var _ref;
|
|
16686
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
16694
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$t(_object_spread$u({
|
|
16687
16695
|
className: classes.root
|
|
16688
16696
|
}, addDataAttributes(data)), {
|
|
16689
16697
|
children: [
|
|
@@ -16692,7 +16700,7 @@
|
|
|
16692
16700
|
children: [
|
|
16693
16701
|
/* @__PURE__ */ jsx("div", {
|
|
16694
16702
|
className: classes.containerItem,
|
|
16695
|
-
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$
|
|
16703
|
+
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$u({
|
|
16696
16704
|
selectedDate: value === null || value === void 0 ? void 0 : value.from,
|
|
16697
16705
|
maxDate: value === null || value === void 0 ? void 0 : value.to,
|
|
16698
16706
|
label: translates.from,
|
|
@@ -16707,7 +16715,7 @@
|
|
|
16707
16715
|
}),
|
|
16708
16716
|
/* @__PURE__ */ jsx("div", {
|
|
16709
16717
|
className: classes.containerItem,
|
|
16710
|
-
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$
|
|
16718
|
+
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$u({
|
|
16711
16719
|
selectedDate: value === null || value === void 0 ? void 0 : value.to,
|
|
16712
16720
|
label: translates.to,
|
|
16713
16721
|
months: translates.months,
|
|
@@ -16763,7 +16771,7 @@
|
|
|
16763
16771
|
]
|
|
16764
16772
|
}));
|
|
16765
16773
|
};
|
|
16766
|
-
var useStyles$
|
|
16774
|
+
var useStyles$t = createThemedStyles("FilterWithPeriod", {
|
|
16767
16775
|
root: {},
|
|
16768
16776
|
main: {},
|
|
16769
16777
|
picker: {}
|
|
@@ -16788,7 +16796,7 @@
|
|
|
16788
16796
|
if (Array.isArray(arr))
|
|
16789
16797
|
return _array_like_to_array$e(arr);
|
|
16790
16798
|
}
|
|
16791
|
-
function _define_property$
|
|
16799
|
+
function _define_property$u(obj, key, value) {
|
|
16792
16800
|
if (key in obj) {
|
|
16793
16801
|
Object.defineProperty(obj, key, {
|
|
16794
16802
|
value,
|
|
@@ -16839,7 +16847,7 @@
|
|
|
16839
16847
|
function _non_iterable_spread$3() {
|
|
16840
16848
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
16841
16849
|
}
|
|
16842
|
-
function _object_spread$
|
|
16850
|
+
function _object_spread$t(target) {
|
|
16843
16851
|
for (var i = 1; i < arguments.length; i++) {
|
|
16844
16852
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
16845
16853
|
var ownKeys2 = Object.keys(source);
|
|
@@ -16849,12 +16857,12 @@
|
|
|
16849
16857
|
}));
|
|
16850
16858
|
}
|
|
16851
16859
|
ownKeys2.forEach(function(key) {
|
|
16852
|
-
_define_property$
|
|
16860
|
+
_define_property$u(target, key, source[key]);
|
|
16853
16861
|
});
|
|
16854
16862
|
}
|
|
16855
16863
|
return target;
|
|
16856
16864
|
}
|
|
16857
|
-
function ownKeys$
|
|
16865
|
+
function ownKeys$s(object, enumerableOnly) {
|
|
16858
16866
|
var keys2 = Object.keys(object);
|
|
16859
16867
|
if (Object.getOwnPropertySymbols) {
|
|
16860
16868
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -16867,12 +16875,12 @@
|
|
|
16867
16875
|
}
|
|
16868
16876
|
return keys2;
|
|
16869
16877
|
}
|
|
16870
|
-
function _object_spread_props$
|
|
16878
|
+
function _object_spread_props$s(target, source) {
|
|
16871
16879
|
source = source != null ? source : {};
|
|
16872
16880
|
if (Object.getOwnPropertyDescriptors) {
|
|
16873
16881
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
16874
16882
|
} else {
|
|
16875
|
-
ownKeys$
|
|
16883
|
+
ownKeys$s(Object(source)).forEach(function(key) {
|
|
16876
16884
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
16877
16885
|
});
|
|
16878
16886
|
}
|
|
@@ -16899,7 +16907,7 @@
|
|
|
16899
16907
|
}
|
|
16900
16908
|
var FilterWithPeriod = function(param) {
|
|
16901
16909
|
var value = param.value, localeKey = param.localeKey, locale2 = param.locale, onChange = param.onChange, onClose = param.onClose, periods = param.periods, tweakStyles = param.tweakStyles, testId = param.testId;
|
|
16902
|
-
var classes = useStyles$
|
|
16910
|
+
var classes = useStyles$t({
|
|
16903
16911
|
theme: tweakStyles
|
|
16904
16912
|
});
|
|
16905
16913
|
var translates = React.useMemo(function() {
|
|
@@ -16912,7 +16920,7 @@
|
|
|
16912
16920
|
var _useState1 = _sliced_to_array$e(React.useState((value === null || value === void 0 ? void 0 : value.periodType) === "CUSTOM"), 2), isDatePickerShown = _useState1[0], setIsDatePickerShown = _useState1[1];
|
|
16913
16921
|
var _useState2 = _sliced_to_array$e(React.useState(value), 2), period = _useState2[0], setPeriod = _useState2[1];
|
|
16914
16922
|
var periodGetters = React.useMemo(function() {
|
|
16915
|
-
var result = _object_spread$
|
|
16923
|
+
var result = _object_spread$t({}, PERIODS_GETTERS);
|
|
16916
16924
|
periods === null || periods === void 0 ? void 0 : periods.forEach(function(p) {
|
|
16917
16925
|
if (Array.isArray(p)) {
|
|
16918
16926
|
result[p[0]] = p[1];
|
|
@@ -16958,7 +16966,7 @@
|
|
|
16958
16966
|
if (onClose !== void 0) {
|
|
16959
16967
|
onClose();
|
|
16960
16968
|
}
|
|
16961
|
-
onChange(_object_spread_props$
|
|
16969
|
+
onChange(_object_spread_props$s(_object_spread$t({}, p), {
|
|
16962
16970
|
label: getPeriodTranslate(periodType)
|
|
16963
16971
|
}));
|
|
16964
16972
|
}
|
|
@@ -16978,7 +16986,7 @@
|
|
|
16978
16986
|
};
|
|
16979
16987
|
var handleCustomDateChange = function(val) {
|
|
16980
16988
|
if (val.from || val.to) {
|
|
16981
|
-
onChange(_object_spread_props$
|
|
16989
|
+
onChange(_object_spread_props$s(_object_spread$t({}, val), {
|
|
16982
16990
|
periodType: "CUSTOM"
|
|
16983
16991
|
}));
|
|
16984
16992
|
} else {
|
|
@@ -17061,7 +17069,7 @@
|
|
|
17061
17069
|
if (Array.isArray(arr))
|
|
17062
17070
|
return arr;
|
|
17063
17071
|
}
|
|
17064
|
-
function _define_property$
|
|
17072
|
+
function _define_property$t(obj, key, value) {
|
|
17065
17073
|
if (key in obj) {
|
|
17066
17074
|
Object.defineProperty(obj, key, {
|
|
17067
17075
|
value,
|
|
@@ -17105,7 +17113,7 @@
|
|
|
17105
17113
|
function _non_iterable_rest$d() {
|
|
17106
17114
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17107
17115
|
}
|
|
17108
|
-
function _object_spread$
|
|
17116
|
+
function _object_spread$s(target) {
|
|
17109
17117
|
for (var i = 1; i < arguments.length; i++) {
|
|
17110
17118
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
17111
17119
|
var ownKeys2 = Object.keys(source);
|
|
@@ -17115,12 +17123,12 @@
|
|
|
17115
17123
|
}));
|
|
17116
17124
|
}
|
|
17117
17125
|
ownKeys2.forEach(function(key) {
|
|
17118
|
-
_define_property$
|
|
17126
|
+
_define_property$t(target, key, source[key]);
|
|
17119
17127
|
});
|
|
17120
17128
|
}
|
|
17121
17129
|
return target;
|
|
17122
17130
|
}
|
|
17123
|
-
function ownKeys$
|
|
17131
|
+
function ownKeys$r(object, enumerableOnly) {
|
|
17124
17132
|
var keys2 = Object.keys(object);
|
|
17125
17133
|
if (Object.getOwnPropertySymbols) {
|
|
17126
17134
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -17133,12 +17141,12 @@
|
|
|
17133
17141
|
}
|
|
17134
17142
|
return keys2;
|
|
17135
17143
|
}
|
|
17136
|
-
function _object_spread_props$
|
|
17144
|
+
function _object_spread_props$r(target, source) {
|
|
17137
17145
|
source = source != null ? source : {};
|
|
17138
17146
|
if (Object.getOwnPropertyDescriptors) {
|
|
17139
17147
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
17140
17148
|
} else {
|
|
17141
|
-
ownKeys$
|
|
17149
|
+
ownKeys$r(Object(source)).forEach(function(key) {
|
|
17142
17150
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
17143
17151
|
});
|
|
17144
17152
|
}
|
|
@@ -17196,7 +17204,7 @@
|
|
|
17196
17204
|
]);
|
|
17197
17205
|
var props = {
|
|
17198
17206
|
ref,
|
|
17199
|
-
className: clsx(classes[dropdownPosition], _define_property$
|
|
17207
|
+
className: clsx(classes[dropdownPosition], _define_property$t({}, classes.dropdown, !isInline))
|
|
17200
17208
|
};
|
|
17201
17209
|
var handleOnClose = function() {
|
|
17202
17210
|
if (onClose !== void 0) {
|
|
@@ -17205,8 +17213,8 @@
|
|
|
17205
17213
|
};
|
|
17206
17214
|
if (filter.type === "custom" && filter.component) {
|
|
17207
17215
|
var Component = filter.component;
|
|
17208
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
17209
|
-
children: /* @__PURE__ */ jsx(Component, _object_spread$
|
|
17216
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$r(_object_spread$s({}, props), {
|
|
17217
|
+
children: /* @__PURE__ */ jsx(Component, _object_spread$s({}, {
|
|
17210
17218
|
value,
|
|
17211
17219
|
onChange,
|
|
17212
17220
|
onClose,
|
|
@@ -17220,8 +17228,8 @@
|
|
|
17220
17228
|
console.warn("%cДля фильтра типа custom (".concat(filter.name, ") в конфиге обязательно нужно задать component"), "background: red; color: black");
|
|
17221
17229
|
}
|
|
17222
17230
|
if (filter.type === "select") {
|
|
17223
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
17224
|
-
children: /* @__PURE__ */ jsx(FilterSelect, _object_spread$
|
|
17231
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$r(_object_spread$s({}, props), {
|
|
17232
|
+
children: /* @__PURE__ */ jsx(FilterSelect, _object_spread$s({
|
|
17225
17233
|
onChange,
|
|
17226
17234
|
value,
|
|
17227
17235
|
localeKey: translatesLocaleKey,
|
|
@@ -17231,12 +17239,12 @@
|
|
|
17231
17239
|
}));
|
|
17232
17240
|
}
|
|
17233
17241
|
if (filter.type === "dateRange") {
|
|
17234
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
17235
|
-
children: /* @__PURE__ */ jsx(FilterWithPeriod, _object_spread$
|
|
17242
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$r(_object_spread$s({}, props), {
|
|
17243
|
+
children: /* @__PURE__ */ jsx(FilterWithPeriod, _object_spread$s({
|
|
17236
17244
|
localeKey: translatesLocaleKey,
|
|
17237
17245
|
locale: translates,
|
|
17238
17246
|
onChange,
|
|
17239
|
-
value: _object_spread$
|
|
17247
|
+
value: _object_spread$s({}, value),
|
|
17240
17248
|
onClose: handleOnClose,
|
|
17241
17249
|
testId: testId !== void 0 ? "".concat(testId, "-period") : void 0
|
|
17242
17250
|
}, filter))
|
|
@@ -17244,17 +17252,17 @@
|
|
|
17244
17252
|
}
|
|
17245
17253
|
if (filter.type === "dateRangeWithoutPeriod") {
|
|
17246
17254
|
var dateRangeValue = value;
|
|
17247
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
17255
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$r(_object_spread$s({}, props), {
|
|
17248
17256
|
style: {
|
|
17249
17257
|
width: 320
|
|
17250
17258
|
},
|
|
17251
|
-
children: /* @__PURE__ */ jsx(FilterWithDates, _object_spread$
|
|
17259
|
+
children: /* @__PURE__ */ jsx(FilterWithDates, _object_spread$s({
|
|
17252
17260
|
value: dateRangeValue,
|
|
17253
17261
|
onEndBtnSubmit: function() {
|
|
17254
17262
|
return onChange(void 0);
|
|
17255
17263
|
},
|
|
17256
17264
|
onChange: function(v) {
|
|
17257
|
-
return onChange(_object_spread_props$
|
|
17265
|
+
return onChange(_object_spread_props$r(_object_spread$s({}, v), {
|
|
17258
17266
|
periodType: "CUSTOM"
|
|
17259
17267
|
}));
|
|
17260
17268
|
},
|
|
@@ -17265,8 +17273,8 @@
|
|
|
17265
17273
|
}));
|
|
17266
17274
|
}
|
|
17267
17275
|
if (filter.type === "multiSelect") {
|
|
17268
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
17269
|
-
children: /* @__PURE__ */ jsx(FilterMultiSelect, _object_spread$
|
|
17276
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$r(_object_spread$s({}, props), {
|
|
17277
|
+
children: /* @__PURE__ */ jsx(FilterMultiSelect, _object_spread$s({
|
|
17270
17278
|
onChange,
|
|
17271
17279
|
onClose: handleOnClose,
|
|
17272
17280
|
value,
|
|
@@ -17277,8 +17285,8 @@
|
|
|
17277
17285
|
}));
|
|
17278
17286
|
}
|
|
17279
17287
|
if (filter.type === "interval") {
|
|
17280
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
17281
|
-
children: /* @__PURE__ */ jsx(FilterInterval, _object_spread$
|
|
17288
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$r(_object_spread$s({}, props), {
|
|
17289
|
+
children: /* @__PURE__ */ jsx(FilterInterval, _object_spread$s({
|
|
17282
17290
|
value,
|
|
17283
17291
|
labelName: filter.name,
|
|
17284
17292
|
localeKey: translatesLocaleKey,
|
|
@@ -17291,7 +17299,7 @@
|
|
|
17291
17299
|
console.warn("%cДля фильтра ".concat(filter.name, " не задан тип или component"), "background: red; color: black");
|
|
17292
17300
|
return null;
|
|
17293
17301
|
}
|
|
17294
|
-
var useStyles$
|
|
17302
|
+
var useStyles$s = createThemedStyles("FiltersPaneSearch", {
|
|
17295
17303
|
root: {
|
|
17296
17304
|
display: "flex",
|
|
17297
17305
|
position: "relative",
|
|
@@ -17303,7 +17311,7 @@
|
|
|
17303
17311
|
],
|
|
17304
17312
|
borderRadius: 18,
|
|
17305
17313
|
paddingRight: 8,
|
|
17306
|
-
transition:
|
|
17314
|
+
transition: animations.defaultTransition,
|
|
17307
17315
|
transitionProperty: "background-color, border-color"
|
|
17308
17316
|
},
|
|
17309
17317
|
focused: {
|
|
@@ -17400,7 +17408,7 @@
|
|
|
17400
17408
|
if (Array.isArray(arr))
|
|
17401
17409
|
return arr;
|
|
17402
17410
|
}
|
|
17403
|
-
function _define_property$
|
|
17411
|
+
function _define_property$s(obj, key, value) {
|
|
17404
17412
|
if (key in obj) {
|
|
17405
17413
|
Object.defineProperty(obj, key, {
|
|
17406
17414
|
value,
|
|
@@ -17444,7 +17452,7 @@
|
|
|
17444
17452
|
function _non_iterable_rest$c() {
|
|
17445
17453
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17446
17454
|
}
|
|
17447
|
-
function _object_spread$
|
|
17455
|
+
function _object_spread$r(target) {
|
|
17448
17456
|
for (var i = 1; i < arguments.length; i++) {
|
|
17449
17457
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
17450
17458
|
var ownKeys2 = Object.keys(source);
|
|
@@ -17454,12 +17462,12 @@
|
|
|
17454
17462
|
}));
|
|
17455
17463
|
}
|
|
17456
17464
|
ownKeys2.forEach(function(key) {
|
|
17457
|
-
_define_property$
|
|
17465
|
+
_define_property$s(target, key, source[key]);
|
|
17458
17466
|
});
|
|
17459
17467
|
}
|
|
17460
17468
|
return target;
|
|
17461
17469
|
}
|
|
17462
|
-
function ownKeys$
|
|
17470
|
+
function ownKeys$q(object, enumerableOnly) {
|
|
17463
17471
|
var keys2 = Object.keys(object);
|
|
17464
17472
|
if (Object.getOwnPropertySymbols) {
|
|
17465
17473
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -17472,12 +17480,12 @@
|
|
|
17472
17480
|
}
|
|
17473
17481
|
return keys2;
|
|
17474
17482
|
}
|
|
17475
|
-
function _object_spread_props$
|
|
17483
|
+
function _object_spread_props$q(target, source) {
|
|
17476
17484
|
source = source != null ? source : {};
|
|
17477
17485
|
if (Object.getOwnPropertyDescriptors) {
|
|
17478
17486
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
17479
17487
|
} else {
|
|
17480
|
-
ownKeys$
|
|
17488
|
+
ownKeys$q(Object(source)).forEach(function(key) {
|
|
17481
17489
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
17482
17490
|
});
|
|
17483
17491
|
}
|
|
@@ -17501,7 +17509,7 @@
|
|
|
17501
17509
|
}
|
|
17502
17510
|
function FiltersPaneSearch(param) {
|
|
17503
17511
|
var value = param.value, _param_fields = param.fields, fields = _param_fields === void 0 ? [] : _param_fields, field = param.field, onChange = param.onChange, localeKey = param.localeKey, locale2 = param.locale, getValueId = param.getValueId, getValueView = param.getValueView, getValueString = param.getValueString, hasClearSelectButton = param.hasClearSelectButton, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isSelectSearchEnabled = param.isSelectSearchEnabled, isSelectSearchEnabled = _param_isSelectSearchEnabled === void 0 ? true : _param_isSelectSearchEnabled, _param_isAutoSizeable = param.isAutoSizeable, isAutoSizeable = _param_isAutoSizeable === void 0 ? true : _param_isAutoSizeable, maxLength = param.maxLength, data = param.data, tweakStyles = param.tweakStyles, testId = param.testId;
|
|
17504
|
-
var classes = useStyles$
|
|
17512
|
+
var classes = useStyles$s({
|
|
17505
17513
|
theme: tweakStyles
|
|
17506
17514
|
});
|
|
17507
17515
|
var tweakSearchInputStyles = useTweakStyles({
|
|
@@ -17547,8 +17555,8 @@
|
|
|
17547
17555
|
field
|
|
17548
17556
|
]);
|
|
17549
17557
|
var _obj;
|
|
17550
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
17551
|
-
className: clsx(classes.root, (_obj = {}, _define_property$
|
|
17558
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$q(_object_spread$r({
|
|
17559
|
+
className: clsx(classes.root, (_obj = {}, _define_property$s(_obj, classes.focused, isInputFocused), _define_property$s(_obj, classes.disabled, isDisabled), _obj)),
|
|
17552
17560
|
ref: refRoot,
|
|
17553
17561
|
"data-testid": testId
|
|
17554
17562
|
}, addDataAttributes(data)), {
|
|
@@ -17613,7 +17621,7 @@
|
|
|
17613
17621
|
]
|
|
17614
17622
|
}));
|
|
17615
17623
|
}
|
|
17616
|
-
var useStyles$
|
|
17624
|
+
var useStyles$r = createThemedStyles("FilterValueView", {
|
|
17617
17625
|
text: {
|
|
17618
17626
|
overflow: "hidden",
|
|
17619
17627
|
textOverflow: "ellipsis",
|
|
@@ -17632,7 +17640,7 @@
|
|
|
17632
17640
|
}
|
|
17633
17641
|
function FilterValueView(param) {
|
|
17634
17642
|
var locale2 = param.locale, localeKey = param.localeKey, filter = param.filter, value = param.value, tweakStyles = param.tweakStyles;
|
|
17635
|
-
var classes = useStyles$
|
|
17643
|
+
var classes = useStyles$r({
|
|
17636
17644
|
theme: tweakStyles
|
|
17637
17645
|
});
|
|
17638
17646
|
var _filter_localeKey;
|
|
@@ -17783,10 +17791,10 @@
|
|
|
17783
17791
|
children: displayValue(value)
|
|
17784
17792
|
});
|
|
17785
17793
|
}
|
|
17786
|
-
var useStyles$
|
|
17794
|
+
var useStyles$q = createThemedStyles("FilterWrapper", {
|
|
17787
17795
|
root: {
|
|
17788
17796
|
position: "relative",
|
|
17789
|
-
transition:
|
|
17797
|
+
transition: animations.defaultTransition,
|
|
17790
17798
|
transitionProperty: "background-color, border-color",
|
|
17791
17799
|
border: [
|
|
17792
17800
|
1,
|
|
@@ -17909,7 +17917,7 @@
|
|
|
17909
17917
|
if (Array.isArray(arr))
|
|
17910
17918
|
return arr;
|
|
17911
17919
|
}
|
|
17912
|
-
function _define_property$
|
|
17920
|
+
function _define_property$r(obj, key, value) {
|
|
17913
17921
|
if (key in obj) {
|
|
17914
17922
|
Object.defineProperty(obj, key, {
|
|
17915
17923
|
value,
|
|
@@ -17953,7 +17961,7 @@
|
|
|
17953
17961
|
function _non_iterable_rest$b() {
|
|
17954
17962
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17955
17963
|
}
|
|
17956
|
-
function _object_spread$
|
|
17964
|
+
function _object_spread$q(target) {
|
|
17957
17965
|
for (var i = 1; i < arguments.length; i++) {
|
|
17958
17966
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
17959
17967
|
var ownKeys2 = Object.keys(source);
|
|
@@ -17963,12 +17971,12 @@
|
|
|
17963
17971
|
}));
|
|
17964
17972
|
}
|
|
17965
17973
|
ownKeys2.forEach(function(key) {
|
|
17966
|
-
_define_property$
|
|
17974
|
+
_define_property$r(target, key, source[key]);
|
|
17967
17975
|
});
|
|
17968
17976
|
}
|
|
17969
17977
|
return target;
|
|
17970
17978
|
}
|
|
17971
|
-
function ownKeys$
|
|
17979
|
+
function ownKeys$p(object, enumerableOnly) {
|
|
17972
17980
|
var keys2 = Object.keys(object);
|
|
17973
17981
|
if (Object.getOwnPropertySymbols) {
|
|
17974
17982
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -17981,12 +17989,12 @@
|
|
|
17981
17989
|
}
|
|
17982
17990
|
return keys2;
|
|
17983
17991
|
}
|
|
17984
|
-
function _object_spread_props$
|
|
17992
|
+
function _object_spread_props$p(target, source) {
|
|
17985
17993
|
source = source != null ? source : {};
|
|
17986
17994
|
if (Object.getOwnPropertyDescriptors) {
|
|
17987
17995
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
17988
17996
|
} else {
|
|
17989
|
-
ownKeys$
|
|
17997
|
+
ownKeys$p(Object(source)).forEach(function(key) {
|
|
17990
17998
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
17991
17999
|
});
|
|
17992
18000
|
}
|
|
@@ -18010,7 +18018,7 @@
|
|
|
18010
18018
|
}
|
|
18011
18019
|
function FilterWrapper(param) {
|
|
18012
18020
|
var filter = param.filter, value = param.value, isDisabled = param.isDisabled, locale2 = param.locale, localeKey = param.localeKey, data = param.data, testId = param.testId, filtersPaneRef = param.filtersPaneRef, tweakStyles = param.tweakStyles, onChange = param.onChange;
|
|
18013
|
-
var classes = useStyles$
|
|
18021
|
+
var classes = useStyles$q({
|
|
18014
18022
|
theme: tweakStyles
|
|
18015
18023
|
});
|
|
18016
18024
|
var tweakFilterValueViewStyles = useTweakStyles({
|
|
@@ -18050,14 +18058,14 @@
|
|
|
18050
18058
|
};
|
|
18051
18059
|
var isBoolean = filter.type === "boolean";
|
|
18052
18060
|
var _obj;
|
|
18053
|
-
return !filter.isInline ? /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
18054
|
-
className: clsx(classes.root, (_obj = {}, _define_property$
|
|
18061
|
+
return !filter.isInline ? /* @__PURE__ */ jsxs("div", _object_spread_props$p(_object_spread$q({
|
|
18062
|
+
className: clsx(classes.root, (_obj = {}, _define_property$r(_obj, classes.noValue, !hasValue), _define_property$r(_obj, classes.openNoValue, isOpen && !hasValue), _define_property$r(_obj, classes.withValue, !isOpen && hasValue), _define_property$r(_obj, classes.openWithValue, isOpen && hasValue), _define_property$r(_obj, classes.boolean, isBoolean), _define_property$r(_obj, classes.disabled, isDisabled), _obj))
|
|
18055
18063
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
18056
18064
|
children: [
|
|
18057
18065
|
/* @__PURE__ */ jsxs("div", {
|
|
18058
18066
|
ref: refItem,
|
|
18059
18067
|
onClick: handleLabelClick,
|
|
18060
|
-
className: clsx(classes.item, _define_property$
|
|
18068
|
+
className: clsx(classes.item, _define_property$r({}, classes.booleanItem, isBoolean)),
|
|
18061
18069
|
children: [
|
|
18062
18070
|
/* @__PURE__ */ jsx("div", {
|
|
18063
18071
|
className: classes.name,
|
|
@@ -18119,7 +18127,7 @@
|
|
|
18119
18127
|
classes
|
|
18120
18128
|
});
|
|
18121
18129
|
}
|
|
18122
|
-
function _define_property$
|
|
18130
|
+
function _define_property$q(obj, key, value) {
|
|
18123
18131
|
if (key in obj) {
|
|
18124
18132
|
Object.defineProperty(obj, key, {
|
|
18125
18133
|
value,
|
|
@@ -18132,7 +18140,7 @@
|
|
|
18132
18140
|
}
|
|
18133
18141
|
return obj;
|
|
18134
18142
|
}
|
|
18135
|
-
function _object_spread$
|
|
18143
|
+
function _object_spread$p(target) {
|
|
18136
18144
|
for (var i = 1; i < arguments.length; i++) {
|
|
18137
18145
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
18138
18146
|
var ownKeys2 = Object.keys(source);
|
|
@@ -18142,12 +18150,12 @@
|
|
|
18142
18150
|
}));
|
|
18143
18151
|
}
|
|
18144
18152
|
ownKeys2.forEach(function(key) {
|
|
18145
|
-
_define_property$
|
|
18153
|
+
_define_property$q(target, key, source[key]);
|
|
18146
18154
|
});
|
|
18147
18155
|
}
|
|
18148
18156
|
return target;
|
|
18149
18157
|
}
|
|
18150
|
-
function ownKeys$
|
|
18158
|
+
function ownKeys$o(object, enumerableOnly) {
|
|
18151
18159
|
var keys2 = Object.keys(object);
|
|
18152
18160
|
if (Object.getOwnPropertySymbols) {
|
|
18153
18161
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -18160,12 +18168,12 @@
|
|
|
18160
18168
|
}
|
|
18161
18169
|
return keys2;
|
|
18162
18170
|
}
|
|
18163
|
-
function _object_spread_props$
|
|
18171
|
+
function _object_spread_props$o(target, source) {
|
|
18164
18172
|
source = source != null ? source : {};
|
|
18165
18173
|
if (Object.getOwnPropertyDescriptors) {
|
|
18166
18174
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
18167
18175
|
} else {
|
|
18168
|
-
ownKeys$
|
|
18176
|
+
ownKeys$o(Object(source)).forEach(function(key) {
|
|
18169
18177
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
18170
18178
|
});
|
|
18171
18179
|
}
|
|
@@ -18173,7 +18181,7 @@
|
|
|
18173
18181
|
}
|
|
18174
18182
|
function FiltersPane(param) {
|
|
18175
18183
|
var data = param.data, tweakStyles = param.tweakStyles, filtersConfig = param.filtersConfig, enabledFilters = param.enabledFilters, _param_values = param.values, values = _param_values === void 0 ? {} : _param_values, localeKey = param.localeKey, locale2 = param.locale, search = param.search, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_hasClearButton = param.hasClearButton, hasClearButton = _param_hasClearButton === void 0 ? true : _param_hasClearButton, testId = param.testId, onChangeFilters = param.onChangeFilters, onSettingsButtonClick = param.onSettingsButtonClick, onClear = param.onClear;
|
|
18176
|
-
var classes = useStyles$
|
|
18184
|
+
var classes = useStyles$y({
|
|
18177
18185
|
theme: tweakStyles
|
|
18178
18186
|
});
|
|
18179
18187
|
var tweakClearButtonStyles = useTweakStyles({
|
|
@@ -18216,12 +18224,12 @@
|
|
|
18216
18224
|
})
|
|
18217
18225
|
});
|
|
18218
18226
|
var _search_localeKey, _search_localeKey1, _search_isDisabled;
|
|
18219
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
18227
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$o(_object_spread$p({
|
|
18220
18228
|
className: classes.root,
|
|
18221
18229
|
ref
|
|
18222
18230
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
18223
18231
|
children: [
|
|
18224
|
-
onSettingsButtonClick !== void 0 && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
18232
|
+
onSettingsButtonClick !== void 0 && /* @__PURE__ */ jsx("div", _object_spread_props$o(_object_spread$p({
|
|
18225
18233
|
className: classes.settings,
|
|
18226
18234
|
tabIndex: 0
|
|
18227
18235
|
}, trueReactPlatformHelpers.addDataTestId(testId, "settings-button")), {
|
|
@@ -18233,7 +18241,7 @@
|
|
|
18233
18241
|
})
|
|
18234
18242
|
})
|
|
18235
18243
|
})),
|
|
18236
|
-
search !== void 0 && /* @__PURE__ */ jsx(FiltersPaneSearch, _object_spread_props$
|
|
18244
|
+
search !== void 0 && /* @__PURE__ */ jsx(FiltersPaneSearch, _object_spread_props$o(_object_spread$p({}, search), {
|
|
18237
18245
|
locale: getLocale$1((_search_localeKey = search.localeKey) !== null && _search_localeKey !== void 0 ? _search_localeKey : localeKey, search.locale, locale2),
|
|
18238
18246
|
localeKey: (_search_localeKey1 = search.localeKey) !== null && _search_localeKey1 !== void 0 ? _search_localeKey1 : localeKey,
|
|
18239
18247
|
isDisabled: (_search_isDisabled = search.isDisabled) !== null && _search_isDisabled !== void 0 ? _search_isDisabled : isDisabled,
|
|
@@ -18256,7 +18264,7 @@
|
|
|
18256
18264
|
locale: locale2,
|
|
18257
18265
|
localeKey,
|
|
18258
18266
|
onChange: function(value) {
|
|
18259
|
-
return onChangeFilters(_object_spread_props$
|
|
18267
|
+
return onChangeFilters(_object_spread_props$o(_object_spread$p({}, values), _define_property$q({}, key, value)));
|
|
18260
18268
|
},
|
|
18261
18269
|
value: currentValue,
|
|
18262
18270
|
isDisabled: isDisabled || (filter === null || filter === void 0 ? void 0 : (_filter_requiredFilledFilters = filter.requiredFilledFilters) === null || _filter_requiredFilledFilters === void 0 ? void 0 : _filter_requiredFilledFilters.some(function(item) {
|
|
@@ -24386,7 +24394,7 @@
|
|
|
24386
24394
|
ZM,
|
|
24387
24395
|
ZW
|
|
24388
24396
|
};
|
|
24389
|
-
var useStyles$
|
|
24397
|
+
var useStyles$p = createThemedStyles("Flag", {
|
|
24390
24398
|
root: {
|
|
24391
24399
|
// приходится хардкодить в компоненте, тк либа Flags выдает флаги с 2-3 пиксельным отступом снизу
|
|
24392
24400
|
// если будет нужно, то можно вынести border на уровень пропсов
|
|
@@ -24404,7 +24412,7 @@
|
|
|
24404
24412
|
});
|
|
24405
24413
|
var Flag = function(param) {
|
|
24406
24414
|
var _param_countryCode = param.countryCode, countryCode = _param_countryCode === void 0 ? "" : _param_countryCode, tweakStyles = param.tweakStyles;
|
|
24407
|
-
var classes = useStyles$
|
|
24415
|
+
var classes = useStyles$p({
|
|
24408
24416
|
theme: tweakStyles
|
|
24409
24417
|
});
|
|
24410
24418
|
var CC2 = countryCode.toUpperCase();
|
|
@@ -24420,7 +24428,7 @@
|
|
|
24420
24428
|
className: classes.root
|
|
24421
24429
|
});
|
|
24422
24430
|
};
|
|
24423
|
-
var useStyles$
|
|
24431
|
+
var useStyles$o = createThemedStyles("Skeleton", {
|
|
24424
24432
|
root: {
|
|
24425
24433
|
display: "flex",
|
|
24426
24434
|
width: "100%",
|
|
@@ -24456,7 +24464,7 @@
|
|
|
24456
24464
|
});
|
|
24457
24465
|
var Skeleton = function(param) {
|
|
24458
24466
|
var height = param.height, tweakStyles = param.tweakStyles;
|
|
24459
|
-
var classes = useStyles$
|
|
24467
|
+
var classes = useStyles$o({
|
|
24460
24468
|
theme: tweakStyles
|
|
24461
24469
|
});
|
|
24462
24470
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -24482,7 +24490,7 @@
|
|
|
24482
24490
|
return _instanceof(value, Date) ? dateFns.format(value, (_config_dateFormat = config === null || config === void 0 ? void 0 : config.dateFormat) !== null && _config_dateFormat !== void 0 ? _config_dateFormat : DEFAULT_DATE_FORMAT) : String(value);
|
|
24483
24491
|
};
|
|
24484
24492
|
var STICKY_SHADOW_PADDING = 12;
|
|
24485
|
-
var useStyles$
|
|
24493
|
+
var useStyles$n = createThemedStyles("FlexibleTable", {
|
|
24486
24494
|
root: {
|
|
24487
24495
|
width: "100%",
|
|
24488
24496
|
position: "relative",
|
|
@@ -24545,11 +24553,8 @@
|
|
|
24545
24553
|
background: "transparent",
|
|
24546
24554
|
pointerEvents: "none",
|
|
24547
24555
|
zIndex: 1,
|
|
24548
|
-
transition:
|
|
24549
|
-
|
|
24550
|
-
"0.25s",
|
|
24551
|
-
"ease-in-out"
|
|
24552
|
-
],
|
|
24556
|
+
transition: animations.defaultTransition,
|
|
24557
|
+
transitionProperty: "box-shadow",
|
|
24553
24558
|
"[data-scrolled] &": {
|
|
24554
24559
|
boxShadow: "4px 0 4px rgba(0, 0, 0, 0.05)"
|
|
24555
24560
|
}
|
|
@@ -24572,7 +24577,7 @@
|
|
|
24572
24577
|
nothingFoundRow: {},
|
|
24573
24578
|
nothingFound: {}
|
|
24574
24579
|
});
|
|
24575
|
-
function _define_property$
|
|
24580
|
+
function _define_property$p(obj, key, value) {
|
|
24576
24581
|
if (key in obj) {
|
|
24577
24582
|
Object.defineProperty(obj, key, {
|
|
24578
24583
|
value,
|
|
@@ -24585,7 +24590,7 @@
|
|
|
24585
24590
|
}
|
|
24586
24591
|
return obj;
|
|
24587
24592
|
}
|
|
24588
|
-
function _object_spread$
|
|
24593
|
+
function _object_spread$o(target) {
|
|
24589
24594
|
for (var i = 1; i < arguments.length; i++) {
|
|
24590
24595
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
24591
24596
|
var ownKeys2 = Object.keys(source);
|
|
@@ -24595,12 +24600,12 @@
|
|
|
24595
24600
|
}));
|
|
24596
24601
|
}
|
|
24597
24602
|
ownKeys2.forEach(function(key) {
|
|
24598
|
-
_define_property$
|
|
24603
|
+
_define_property$p(target, key, source[key]);
|
|
24599
24604
|
});
|
|
24600
24605
|
}
|
|
24601
24606
|
return target;
|
|
24602
24607
|
}
|
|
24603
|
-
function ownKeys$
|
|
24608
|
+
function ownKeys$n(object, enumerableOnly) {
|
|
24604
24609
|
var keys2 = Object.keys(object);
|
|
24605
24610
|
if (Object.getOwnPropertySymbols) {
|
|
24606
24611
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -24613,18 +24618,18 @@
|
|
|
24613
24618
|
}
|
|
24614
24619
|
return keys2;
|
|
24615
24620
|
}
|
|
24616
|
-
function _object_spread_props$
|
|
24621
|
+
function _object_spread_props$n(target, source) {
|
|
24617
24622
|
source = source != null ? source : {};
|
|
24618
24623
|
if (Object.getOwnPropertyDescriptors) {
|
|
24619
24624
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
24620
24625
|
} else {
|
|
24621
|
-
ownKeys$
|
|
24626
|
+
ownKeys$n(Object(source)).forEach(function(key) {
|
|
24622
24627
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
24623
24628
|
});
|
|
24624
24629
|
}
|
|
24625
24630
|
return target;
|
|
24626
24631
|
}
|
|
24627
|
-
var useStyles$
|
|
24632
|
+
var useStyles$m = createThemedStyles("FlexibleTableCell", {
|
|
24628
24633
|
root: {
|
|
24629
24634
|
position: "relative",
|
|
24630
24635
|
boxSizing: "content-box",
|
|
@@ -24637,7 +24642,7 @@
|
|
|
24637
24642
|
zIndex: 5,
|
|
24638
24643
|
verticalAlign: "top"
|
|
24639
24644
|
},
|
|
24640
|
-
sticky: _object_spread_props$
|
|
24645
|
+
sticky: _object_spread_props$n(_object_spread$o({
|
|
24641
24646
|
zIndex: 19,
|
|
24642
24647
|
paddingLeft: 24,
|
|
24643
24648
|
paddingRight: 12
|
|
@@ -24656,7 +24661,7 @@
|
|
|
24656
24661
|
height: 21
|
|
24657
24662
|
}
|
|
24658
24663
|
});
|
|
24659
|
-
function _define_property$
|
|
24664
|
+
function _define_property$o(obj, key, value) {
|
|
24660
24665
|
if (key in obj) {
|
|
24661
24666
|
Object.defineProperty(obj, key, {
|
|
24662
24667
|
value,
|
|
@@ -24669,7 +24674,7 @@
|
|
|
24669
24674
|
}
|
|
24670
24675
|
return obj;
|
|
24671
24676
|
}
|
|
24672
|
-
function _object_spread$
|
|
24677
|
+
function _object_spread$n(target) {
|
|
24673
24678
|
for (var i = 1; i < arguments.length; i++) {
|
|
24674
24679
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
24675
24680
|
var ownKeys2 = Object.keys(source);
|
|
@@ -24679,12 +24684,12 @@
|
|
|
24679
24684
|
}));
|
|
24680
24685
|
}
|
|
24681
24686
|
ownKeys2.forEach(function(key) {
|
|
24682
|
-
_define_property$
|
|
24687
|
+
_define_property$o(target, key, source[key]);
|
|
24683
24688
|
});
|
|
24684
24689
|
}
|
|
24685
24690
|
return target;
|
|
24686
24691
|
}
|
|
24687
|
-
function ownKeys$
|
|
24692
|
+
function ownKeys$m(object, enumerableOnly) {
|
|
24688
24693
|
var keys2 = Object.keys(object);
|
|
24689
24694
|
if (Object.getOwnPropertySymbols) {
|
|
24690
24695
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -24697,21 +24702,21 @@
|
|
|
24697
24702
|
}
|
|
24698
24703
|
return keys2;
|
|
24699
24704
|
}
|
|
24700
|
-
function _object_spread_props$
|
|
24705
|
+
function _object_spread_props$m(target, source) {
|
|
24701
24706
|
source = source != null ? source : {};
|
|
24702
24707
|
if (Object.getOwnPropertyDescriptors) {
|
|
24703
24708
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
24704
24709
|
} else {
|
|
24705
|
-
ownKeys$
|
|
24710
|
+
ownKeys$m(Object(source)).forEach(function(key) {
|
|
24706
24711
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
24707
24712
|
});
|
|
24708
24713
|
}
|
|
24709
24714
|
return target;
|
|
24710
24715
|
}
|
|
24711
|
-
function _object_without_properties$
|
|
24716
|
+
function _object_without_properties$7(source, excluded) {
|
|
24712
24717
|
if (source == null)
|
|
24713
24718
|
return {};
|
|
24714
|
-
var target = _object_without_properties_loose$
|
|
24719
|
+
var target = _object_without_properties_loose$7(source, excluded);
|
|
24715
24720
|
var key, i;
|
|
24716
24721
|
if (Object.getOwnPropertySymbols) {
|
|
24717
24722
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -24726,7 +24731,7 @@
|
|
|
24726
24731
|
}
|
|
24727
24732
|
return target;
|
|
24728
24733
|
}
|
|
24729
|
-
function _object_without_properties_loose$
|
|
24734
|
+
function _object_without_properties_loose$7(source, excluded) {
|
|
24730
24735
|
if (source == null)
|
|
24731
24736
|
return {};
|
|
24732
24737
|
var target = {};
|
|
@@ -24741,7 +24746,7 @@
|
|
|
24741
24746
|
return target;
|
|
24742
24747
|
}
|
|
24743
24748
|
function FlexibleTableCell(_param) {
|
|
24744
|
-
var row = _param.row, columnName = _param.columnName, config = _param.config, renderMode = _param.renderMode, isSecond = _param.isSecond, isSticky = _param.isSticky, isLoading = _param.isLoading, tweakStyles = _param.tweakStyles, valueComponentProps = _object_without_properties$
|
|
24749
|
+
var row = _param.row, columnName = _param.columnName, config = _param.config, renderMode = _param.renderMode, isSecond = _param.isSecond, isSticky = _param.isSticky, isLoading = _param.isLoading, tweakStyles = _param.tweakStyles, valueComponentProps = _object_without_properties$7(_param, [
|
|
24745
24750
|
"row",
|
|
24746
24751
|
"columnName",
|
|
24747
24752
|
"config",
|
|
@@ -24751,7 +24756,7 @@
|
|
|
24751
24756
|
"isLoading",
|
|
24752
24757
|
"tweakStyles"
|
|
24753
24758
|
]);
|
|
24754
|
-
var classes = useStyles$
|
|
24759
|
+
var classes = useStyles$m({
|
|
24755
24760
|
theme: tweakStyles
|
|
24756
24761
|
});
|
|
24757
24762
|
var _config_columnName;
|
|
@@ -24760,7 +24765,7 @@
|
|
|
24760
24765
|
var TableCell = renderMode === "divs" ? "div" : "td";
|
|
24761
24766
|
var _obj;
|
|
24762
24767
|
return /* @__PURE__ */ jsx(TableCell, {
|
|
24763
|
-
className: clsx(classes.root, (_obj = {}, _define_property$
|
|
24768
|
+
className: clsx(classes.root, (_obj = {}, _define_property$o(_obj, classes.sticky, isSticky), _define_property$o(_obj, classes.second, isSecond), _define_property$o(_obj, classes.loading, isLoading), _obj)),
|
|
24764
24769
|
style: {
|
|
24765
24770
|
textAlign: cellAlign,
|
|
24766
24771
|
position: isSticky ? "sticky" : position,
|
|
@@ -24772,14 +24777,14 @@
|
|
|
24772
24777
|
className: classes.skeleton,
|
|
24773
24778
|
children: /* @__PURE__ */ jsx(Skeleton, {})
|
|
24774
24779
|
}) : trueReactPlatformHelpers.isNotEmpty(value) && /* @__PURE__ */ jsx(Fragment, {
|
|
24775
|
-
children: trueReactPlatformHelpers.isNotEmpty(component) ? component(_object_spread_props$
|
|
24780
|
+
children: trueReactPlatformHelpers.isNotEmpty(component) ? component(_object_spread_props$m(_object_spread$n({}, valueComponentProps), {
|
|
24776
24781
|
value,
|
|
24777
24782
|
row
|
|
24778
24783
|
})) : formatCellContent(value, config[columnName])
|
|
24779
24784
|
})
|
|
24780
24785
|
});
|
|
24781
24786
|
}
|
|
24782
|
-
var useStyles$
|
|
24787
|
+
var useStyles$l = createThemedStyles("FlexibleTableRow", {
|
|
24783
24788
|
root: {
|
|
24784
24789
|
position: "relative"
|
|
24785
24790
|
},
|
|
@@ -24803,7 +24808,7 @@
|
|
|
24803
24808
|
if (Array.isArray(arr))
|
|
24804
24809
|
return arr;
|
|
24805
24810
|
}
|
|
24806
|
-
function _define_property$
|
|
24811
|
+
function _define_property$n(obj, key, value) {
|
|
24807
24812
|
if (key in obj) {
|
|
24808
24813
|
Object.defineProperty(obj, key, {
|
|
24809
24814
|
value,
|
|
@@ -24847,7 +24852,7 @@
|
|
|
24847
24852
|
function _non_iterable_rest$a() {
|
|
24848
24853
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
24849
24854
|
}
|
|
24850
|
-
function _object_spread$
|
|
24855
|
+
function _object_spread$m(target) {
|
|
24851
24856
|
for (var i = 1; i < arguments.length; i++) {
|
|
24852
24857
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
24853
24858
|
var ownKeys2 = Object.keys(source);
|
|
@@ -24857,12 +24862,12 @@
|
|
|
24857
24862
|
}));
|
|
24858
24863
|
}
|
|
24859
24864
|
ownKeys2.forEach(function(key) {
|
|
24860
|
-
_define_property$
|
|
24865
|
+
_define_property$n(target, key, source[key]);
|
|
24861
24866
|
});
|
|
24862
24867
|
}
|
|
24863
24868
|
return target;
|
|
24864
24869
|
}
|
|
24865
|
-
function ownKeys$
|
|
24870
|
+
function ownKeys$l(object, enumerableOnly) {
|
|
24866
24871
|
var keys2 = Object.keys(object);
|
|
24867
24872
|
if (Object.getOwnPropertySymbols) {
|
|
24868
24873
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -24875,12 +24880,12 @@
|
|
|
24875
24880
|
}
|
|
24876
24881
|
return keys2;
|
|
24877
24882
|
}
|
|
24878
|
-
function _object_spread_props$
|
|
24883
|
+
function _object_spread_props$l(target, source) {
|
|
24879
24884
|
source = source != null ? source : {};
|
|
24880
24885
|
if (Object.getOwnPropertyDescriptors) {
|
|
24881
24886
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
24882
24887
|
} else {
|
|
24883
|
-
ownKeys$
|
|
24888
|
+
ownKeys$l(Object(source)).forEach(function(key) {
|
|
24884
24889
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
24885
24890
|
});
|
|
24886
24891
|
}
|
|
@@ -24904,7 +24909,7 @@
|
|
|
24904
24909
|
}
|
|
24905
24910
|
function FlexibleTableRowInner(param) {
|
|
24906
24911
|
var item = param.item, index = param.index, config = param.config, columns = param.columns, uniqueField = param.uniqueField, renderMode = param.renderMode, activeRows = param.activeRows, isFirstColumnSticky = 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, tweakStyles = param.tweakStyles, expandableRowComponent = param.expandableRowComponent, onRowHover = param.onRowHover, onRowClick = param.onRowClick;
|
|
24907
|
-
var classes = useStyles$
|
|
24912
|
+
var classes = useStyles$l({
|
|
24908
24913
|
theme: tweakStyles
|
|
24909
24914
|
});
|
|
24910
24915
|
var tweakTableCellStyles = useTweakStyles({
|
|
@@ -24933,7 +24938,7 @@
|
|
|
24933
24938
|
var isClickable = !isLoading && (trueReactPlatformHelpers.isNotEmpty(onRowClick) || trueReactPlatformHelpers.isNotEmpty(expandableRowComponent));
|
|
24934
24939
|
var isNestedComponentExpanded = nestedComponent.isOpen, nestedComponentCellKey = nestedComponent.cellKey;
|
|
24935
24940
|
var rowData = rowAttributes === null || rowAttributes === void 0 ? void 0 : rowAttributes.reduce(function(acc, cur) {
|
|
24936
|
-
return _object_spread_props$
|
|
24941
|
+
return _object_spread_props$l(_object_spread$m({}, acc), _define_property$n({}, cur, item[cur]));
|
|
24937
24942
|
}, {});
|
|
24938
24943
|
var handleMouseEnter = function(event) {
|
|
24939
24944
|
if (trueReactPlatformHelpers.isNotEmpty(uniqueField) && trueReactPlatformHelpers.isNotEmpty(onRowHover)) {
|
|
@@ -24981,13 +24986,13 @@
|
|
|
24981
24986
|
var _obj;
|
|
24982
24987
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
24983
24988
|
children: [
|
|
24984
|
-
/* @__PURE__ */ jsx(TableRow, _object_spread_props$
|
|
24985
|
-
className: clsx(classes.root, (_obj = {}, _define_property$
|
|
24989
|
+
/* @__PURE__ */ jsx(TableRow, _object_spread_props$l(_object_spread$m({
|
|
24990
|
+
className: clsx(classes.root, (_obj = {}, _define_property$n(_obj, classes.active, isActive), _define_property$n(_obj, classes.editable, isEditable), _define_property$n(_obj, classes.clickable, isClickable), _obj))
|
|
24986
24991
|
}, !isLoading && {
|
|
24987
24992
|
onClick: handleRowClick,
|
|
24988
24993
|
onMouseEnter: handleMouseEnter,
|
|
24989
24994
|
onMouseLeave: handleMouseLeave
|
|
24990
|
-
}, addDataAttributes(_object_spread_props$
|
|
24995
|
+
}, addDataAttributes(_object_spread_props$l(_object_spread$m({}, rowData), {
|
|
24991
24996
|
active: isActive ? true : void 0,
|
|
24992
24997
|
editable: isEditable ? true : void 0,
|
|
24993
24998
|
isExpandableComponentActive: isNestedComponentExpanded ? true : void 0
|
|
@@ -25023,7 +25028,7 @@
|
|
|
25023
25028
|
});
|
|
25024
25029
|
}
|
|
25025
25030
|
var FlexibleTableRow = /* @__PURE__ */ React.memo(FlexibleTableRowInner);
|
|
25026
|
-
function _define_property$
|
|
25031
|
+
function _define_property$m(obj, key, value) {
|
|
25027
25032
|
if (key in obj) {
|
|
25028
25033
|
Object.defineProperty(obj, key, {
|
|
25029
25034
|
value,
|
|
@@ -25036,7 +25041,7 @@
|
|
|
25036
25041
|
}
|
|
25037
25042
|
return obj;
|
|
25038
25043
|
}
|
|
25039
|
-
function _object_spread$
|
|
25044
|
+
function _object_spread$l(target) {
|
|
25040
25045
|
for (var i = 1; i < arguments.length; i++) {
|
|
25041
25046
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
25042
25047
|
var ownKeys2 = Object.keys(source);
|
|
@@ -25046,12 +25051,12 @@
|
|
|
25046
25051
|
}));
|
|
25047
25052
|
}
|
|
25048
25053
|
ownKeys2.forEach(function(key) {
|
|
25049
|
-
_define_property$
|
|
25054
|
+
_define_property$m(target, key, source[key]);
|
|
25050
25055
|
});
|
|
25051
25056
|
}
|
|
25052
25057
|
return target;
|
|
25053
25058
|
}
|
|
25054
|
-
function ownKeys$
|
|
25059
|
+
function ownKeys$k(object, enumerableOnly) {
|
|
25055
25060
|
var keys2 = Object.keys(object);
|
|
25056
25061
|
if (Object.getOwnPropertySymbols) {
|
|
25057
25062
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -25064,21 +25069,21 @@
|
|
|
25064
25069
|
}
|
|
25065
25070
|
return keys2;
|
|
25066
25071
|
}
|
|
25067
|
-
function _object_spread_props$
|
|
25072
|
+
function _object_spread_props$k(target, source) {
|
|
25068
25073
|
source = source != null ? source : {};
|
|
25069
25074
|
if (Object.getOwnPropertyDescriptors) {
|
|
25070
25075
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
25071
25076
|
} else {
|
|
25072
|
-
ownKeys$
|
|
25077
|
+
ownKeys$k(Object(source)).forEach(function(key) {
|
|
25073
25078
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
25074
25079
|
});
|
|
25075
25080
|
}
|
|
25076
25081
|
return target;
|
|
25077
25082
|
}
|
|
25078
|
-
function _object_without_properties$
|
|
25083
|
+
function _object_without_properties$6(source, excluded) {
|
|
25079
25084
|
if (source == null)
|
|
25080
25085
|
return {};
|
|
25081
|
-
var target = _object_without_properties_loose$
|
|
25086
|
+
var target = _object_without_properties_loose$6(source, excluded);
|
|
25082
25087
|
var key, i;
|
|
25083
25088
|
if (Object.getOwnPropertySymbols) {
|
|
25084
25089
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -25093,7 +25098,7 @@
|
|
|
25093
25098
|
}
|
|
25094
25099
|
return target;
|
|
25095
25100
|
}
|
|
25096
|
-
function _object_without_properties_loose$
|
|
25101
|
+
function _object_without_properties_loose$6(source, excluded) {
|
|
25097
25102
|
if (source == null)
|
|
25098
25103
|
return {};
|
|
25099
25104
|
var target = {};
|
|
@@ -25108,7 +25113,7 @@
|
|
|
25108
25113
|
return target;
|
|
25109
25114
|
}
|
|
25110
25115
|
function FlexibleTable(_param) {
|
|
25111
|
-
var content = _param.content, headerContent = _param.headerContent, config = _param.config, enabledColumns = _param.enabledColumns, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isHorizontallyScrollable = _param.isHorizontallyScrollable, isHorizontallyScrollable = _param_isHorizontallyScrollable === void 0 ? false : _param_isHorizontallyScrollable, infinityScrollConfig = _param.infinityScrollConfig, _param_renderMode = _param.renderMode, renderMode = _param_renderMode === void 0 ? "table" : _param_renderMode, refForScroll = _param.refForScroll, nothingFoundContent = _param.nothingFoundContent, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, onHeadClick = _param.onHeadClick, restProps = _object_without_properties$
|
|
25116
|
+
var content = _param.content, headerContent = _param.headerContent, config = _param.config, enabledColumns = _param.enabledColumns, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isHorizontallyScrollable = _param.isHorizontallyScrollable, isHorizontallyScrollable = _param_isHorizontallyScrollable === void 0 ? false : _param_isHorizontallyScrollable, infinityScrollConfig = _param.infinityScrollConfig, _param_renderMode = _param.renderMode, renderMode = _param_renderMode === void 0 ? "table" : _param_renderMode, refForScroll = _param.refForScroll, nothingFoundContent = _param.nothingFoundContent, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, onHeadClick = _param.onHeadClick, restProps = _object_without_properties$6(_param, [
|
|
25112
25117
|
"content",
|
|
25113
25118
|
"headerContent",
|
|
25114
25119
|
"config",
|
|
@@ -25124,7 +25129,7 @@
|
|
|
25124
25129
|
"tweakStyles",
|
|
25125
25130
|
"onHeadClick"
|
|
25126
25131
|
]);
|
|
25127
|
-
var classes = useStyles$
|
|
25132
|
+
var classes = useStyles$n({
|
|
25128
25133
|
theme: tweakStyles
|
|
25129
25134
|
});
|
|
25130
25135
|
var tweakTableRowStyles = useTweakStyles({
|
|
@@ -25142,7 +25147,7 @@
|
|
|
25142
25147
|
]);
|
|
25143
25148
|
var hasInfiniteScroll = trueReactPlatformHelpers.isNotEmpty(infinityScrollConfig);
|
|
25144
25149
|
var uniqueField = restProps.uniqueField, _restProps_isFirstColumnSticky = restProps.isFirstColumnSticky, isFirstColumnSticky = _restProps_isFirstColumnSticky === void 0 ? false : _restProps_isFirstColumnSticky;
|
|
25145
|
-
var tableRowProps = _object_spread_props$
|
|
25150
|
+
var tableRowProps = _object_spread_props$k(_object_spread$l({}, restProps), {
|
|
25146
25151
|
renderMode,
|
|
25147
25152
|
config,
|
|
25148
25153
|
columns,
|
|
@@ -25231,10 +25236,10 @@
|
|
|
25231
25236
|
var TableCell = renderMode === "divs" ? "div" : "td";
|
|
25232
25237
|
return /* @__PURE__ */ jsx("div", {
|
|
25233
25238
|
ref,
|
|
25234
|
-
className: clsx(_define_property$
|
|
25235
|
-
children: /* @__PURE__ */ jsxs(Table, _object_spread_props$
|
|
25239
|
+
className: clsx(_define_property$m({}, classes.scroll, isHorizontallyScrollable)),
|
|
25240
|
+
children: /* @__PURE__ */ jsxs(Table, _object_spread_props$k(_object_spread$l({
|
|
25236
25241
|
className: classes.root
|
|
25237
|
-
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(_object_spread_props$
|
|
25242
|
+
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(_object_spread_props$k(_object_spread$l({}, data), {
|
|
25238
25243
|
isLoading
|
|
25239
25244
|
}))), {
|
|
25240
25245
|
children: [
|
|
@@ -25248,7 +25253,7 @@
|
|
|
25248
25253
|
var _itemConfig_titleAlign, _itemConfig_title;
|
|
25249
25254
|
var _obj;
|
|
25250
25255
|
return /* @__PURE__ */ jsx(TableHeader, {
|
|
25251
|
-
className: clsx(classes.header, (_obj = {}, _define_property$
|
|
25256
|
+
className: clsx(classes.header, (_obj = {}, _define_property$m(_obj, classes.headerSticky, isFirstColumnSticky && i === 0), _define_property$m(_obj, classes.headerSecond, isFirstColumnSticky && i === 1), _obj)),
|
|
25252
25257
|
style: {
|
|
25253
25258
|
minWidth: itemConfig === null || itemConfig === void 0 ? void 0 : itemConfig.minWidth,
|
|
25254
25259
|
width: itemConfig === null || itemConfig === void 0 ? void 0 : itemConfig.width,
|
|
@@ -25268,7 +25273,7 @@
|
|
|
25268
25273
|
/* @__PURE__ */ jsx(TableBody, {
|
|
25269
25274
|
className: classes.body,
|
|
25270
25275
|
children: isLoading ? trueReactPlatformHelpers.indexMap(6, function(i) {
|
|
25271
|
-
return /* @__PURE__ */ React.createElement(FlexibleTableRow, _object_spread_props$
|
|
25276
|
+
return /* @__PURE__ */ React.createElement(FlexibleTableRow, _object_spread_props$k(_object_spread$l({}, tableRowProps), {
|
|
25272
25277
|
key: i,
|
|
25273
25278
|
item: {},
|
|
25274
25279
|
index: i
|
|
@@ -25284,7 +25289,7 @@
|
|
|
25284
25289
|
})
|
|
25285
25290
|
}),
|
|
25286
25291
|
content.map(function(item, i) {
|
|
25287
|
-
return /* @__PURE__ */ React.createElement(FlexibleTableRow, _object_spread_props$
|
|
25292
|
+
return /* @__PURE__ */ React.createElement(FlexibleTableRow, _object_spread_props$k(_object_spread$l({}, tableRowProps), {
|
|
25288
25293
|
key: trueReactPlatformHelpers.isNotEmpty(uniqueField) ? item[uniqueField] : i,
|
|
25289
25294
|
item,
|
|
25290
25295
|
index: i
|
|
@@ -25311,6 +25316,196 @@
|
|
|
25311
25316
|
}))
|
|
25312
25317
|
});
|
|
25313
25318
|
}
|
|
25319
|
+
var BUTTON_SIZE_S = 24;
|
|
25320
|
+
var BUTTON_SIZE_M = 32;
|
|
25321
|
+
var ICON_SIZE = 20;
|
|
25322
|
+
var useStyles$k = createThemedStyles("IconButton", {
|
|
25323
|
+
root: {
|
|
25324
|
+
display: "flex",
|
|
25325
|
+
justifyContent: "center",
|
|
25326
|
+
alignItems: "center",
|
|
25327
|
+
cursor: "pointer",
|
|
25328
|
+
outline: "none",
|
|
25329
|
+
boxSizing: "border-box",
|
|
25330
|
+
transition: animations.defaultTransition,
|
|
25331
|
+
transitionProperty: "background-color, color, border-color",
|
|
25332
|
+
border: "none",
|
|
25333
|
+
position: "relative",
|
|
25334
|
+
boxShadow: "none",
|
|
25335
|
+
borderRadius: "50%",
|
|
25336
|
+
background: "none",
|
|
25337
|
+
padding: 0,
|
|
25338
|
+
flexShrink: 0,
|
|
25339
|
+
"&:disabled": {
|
|
25340
|
+
extend: "disabled"
|
|
25341
|
+
},
|
|
25342
|
+
"&:active": {
|
|
25343
|
+
extend: "active"
|
|
25344
|
+
}
|
|
25345
|
+
},
|
|
25346
|
+
"cancel-light": {},
|
|
25347
|
+
cancel: {},
|
|
25348
|
+
main: {},
|
|
25349
|
+
custom: {},
|
|
25350
|
+
active: {},
|
|
25351
|
+
disabled: {
|
|
25352
|
+
cursor: "not-allowed",
|
|
25353
|
+
pointerEvents: "none"
|
|
25354
|
+
},
|
|
25355
|
+
loading: {
|
|
25356
|
+
"& $content": {
|
|
25357
|
+
visibility: "hidden"
|
|
25358
|
+
},
|
|
25359
|
+
"& $loader": {
|
|
25360
|
+
display: "block"
|
|
25361
|
+
}
|
|
25362
|
+
},
|
|
25363
|
+
icon: {
|
|
25364
|
+
display: "flex",
|
|
25365
|
+
alignItems: "center",
|
|
25366
|
+
width: ICON_SIZE,
|
|
25367
|
+
height: ICON_SIZE
|
|
25368
|
+
},
|
|
25369
|
+
loader: {
|
|
25370
|
+
display: "none",
|
|
25371
|
+
position: "absolute",
|
|
25372
|
+
left: "50%",
|
|
25373
|
+
top: "50%",
|
|
25374
|
+
transform: "translate(-50%, -50%)",
|
|
25375
|
+
width: ICON_SIZE,
|
|
25376
|
+
height: ICON_SIZE
|
|
25377
|
+
},
|
|
25378
|
+
s: {
|
|
25379
|
+
width: BUTTON_SIZE_S,
|
|
25380
|
+
height: BUTTON_SIZE_S
|
|
25381
|
+
},
|
|
25382
|
+
m: {
|
|
25383
|
+
width: BUTTON_SIZE_M,
|
|
25384
|
+
height: BUTTON_SIZE_M
|
|
25385
|
+
}
|
|
25386
|
+
});
|
|
25387
|
+
function _define_property$l(obj, key, value) {
|
|
25388
|
+
if (key in obj) {
|
|
25389
|
+
Object.defineProperty(obj, key, {
|
|
25390
|
+
value,
|
|
25391
|
+
enumerable: true,
|
|
25392
|
+
configurable: true,
|
|
25393
|
+
writable: true
|
|
25394
|
+
});
|
|
25395
|
+
} else {
|
|
25396
|
+
obj[key] = value;
|
|
25397
|
+
}
|
|
25398
|
+
return obj;
|
|
25399
|
+
}
|
|
25400
|
+
function _object_spread$k(target) {
|
|
25401
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
25402
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
25403
|
+
var ownKeys2 = Object.keys(source);
|
|
25404
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
25405
|
+
ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
25406
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
25407
|
+
}));
|
|
25408
|
+
}
|
|
25409
|
+
ownKeys2.forEach(function(key) {
|
|
25410
|
+
_define_property$l(target, key, source[key]);
|
|
25411
|
+
});
|
|
25412
|
+
}
|
|
25413
|
+
return target;
|
|
25414
|
+
}
|
|
25415
|
+
function ownKeys$j(object, enumerableOnly) {
|
|
25416
|
+
var keys2 = Object.keys(object);
|
|
25417
|
+
if (Object.getOwnPropertySymbols) {
|
|
25418
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
25419
|
+
if (enumerableOnly) {
|
|
25420
|
+
symbols = symbols.filter(function(sym) {
|
|
25421
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
25422
|
+
});
|
|
25423
|
+
}
|
|
25424
|
+
keys2.push.apply(keys2, symbols);
|
|
25425
|
+
}
|
|
25426
|
+
return keys2;
|
|
25427
|
+
}
|
|
25428
|
+
function _object_spread_props$j(target, source) {
|
|
25429
|
+
source = source != null ? source : {};
|
|
25430
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
25431
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
25432
|
+
} else {
|
|
25433
|
+
ownKeys$j(Object(source)).forEach(function(key) {
|
|
25434
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
25435
|
+
});
|
|
25436
|
+
}
|
|
25437
|
+
return target;
|
|
25438
|
+
}
|
|
25439
|
+
function _object_without_properties$5(source, excluded) {
|
|
25440
|
+
if (source == null)
|
|
25441
|
+
return {};
|
|
25442
|
+
var target = _object_without_properties_loose$5(source, excluded);
|
|
25443
|
+
var key, i;
|
|
25444
|
+
if (Object.getOwnPropertySymbols) {
|
|
25445
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
25446
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
25447
|
+
key = sourceSymbolKeys[i];
|
|
25448
|
+
if (excluded.indexOf(key) >= 0)
|
|
25449
|
+
continue;
|
|
25450
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
25451
|
+
continue;
|
|
25452
|
+
target[key] = source[key];
|
|
25453
|
+
}
|
|
25454
|
+
}
|
|
25455
|
+
return target;
|
|
25456
|
+
}
|
|
25457
|
+
function _object_without_properties_loose$5(source, excluded) {
|
|
25458
|
+
if (source == null)
|
|
25459
|
+
return {};
|
|
25460
|
+
var target = {};
|
|
25461
|
+
var sourceKeys = Object.keys(source);
|
|
25462
|
+
var key, i;
|
|
25463
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
25464
|
+
key = sourceKeys[i];
|
|
25465
|
+
if (excluded.indexOf(key) >= 0)
|
|
25466
|
+
continue;
|
|
25467
|
+
target[key] = source[key];
|
|
25468
|
+
}
|
|
25469
|
+
return target;
|
|
25470
|
+
}
|
|
25471
|
+
var IconButton = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
25472
|
+
var icon = _param.icon, _param_size = _param.size, size = _param_size === void 0 ? "m" : _param_size, _param_view = _param.view, view = _param_view === void 0 ? "cancel-light" : _param_view, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, testId = _param.testId, tweakStyles = _param.tweakStyles, data = _param.data, onClick = _param.onClick, restProps = _object_without_properties$5(_param, [
|
|
25473
|
+
"icon",
|
|
25474
|
+
"size",
|
|
25475
|
+
"view",
|
|
25476
|
+
"isDisabled",
|
|
25477
|
+
"isActive",
|
|
25478
|
+
"isLoading",
|
|
25479
|
+
"type",
|
|
25480
|
+
"testId",
|
|
25481
|
+
"tweakStyles",
|
|
25482
|
+
"data",
|
|
25483
|
+
"onClick"
|
|
25484
|
+
]);
|
|
25485
|
+
var classes = useStyles$k({
|
|
25486
|
+
theme: tweakStyles
|
|
25487
|
+
});
|
|
25488
|
+
var hasNoAction = isDisabled || isLoading;
|
|
25489
|
+
var _obj;
|
|
25490
|
+
return /* @__PURE__ */ jsx("button", _object_spread_props$j(_object_spread$k({
|
|
25491
|
+
ref,
|
|
25492
|
+
className: clsx(classes.root, classes[view], classes[size], (_obj = {}, _define_property$l(_obj, classes.disabled, isDisabled), _define_property$l(_obj, classes.active, isActive), _define_property$l(_obj, classes.loading, isLoading), _obj)),
|
|
25493
|
+
type,
|
|
25494
|
+
disabled: isDisabled,
|
|
25495
|
+
onClick: hasNoAction ? void 0 : onClick
|
|
25496
|
+
}, restProps, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
25497
|
+
children: isLoading ? /* @__PURE__ */ jsx("span", {
|
|
25498
|
+
className: classes.loader,
|
|
25499
|
+
children: /* @__PURE__ */ jsx(ThemedPreloader, {
|
|
25500
|
+
type: "default",
|
|
25501
|
+
useCurrentColor: true
|
|
25502
|
+
})
|
|
25503
|
+
}) : /* @__PURE__ */ jsx("span", {
|
|
25504
|
+
className: classes.icon,
|
|
25505
|
+
children: renderIcon(icon)
|
|
25506
|
+
})
|
|
25507
|
+
}));
|
|
25508
|
+
});
|
|
25314
25509
|
var BUTTONS_WIDTH = 36;
|
|
25315
25510
|
var BUTTONS_GAP = 2;
|
|
25316
25511
|
var useStyles$j = createThemedStyles("IncrementInput", {
|
|
@@ -25335,7 +25530,8 @@
|
|
|
25335
25530
|
border: "none",
|
|
25336
25531
|
outline: "none",
|
|
25337
25532
|
backgroundColor: colors.GREY_BACKGROUND,
|
|
25338
|
-
transition:
|
|
25533
|
+
transition: animations.defaultTransition,
|
|
25534
|
+
transitionProperty: "background-color",
|
|
25339
25535
|
color: colors.FONT_MEDIUM,
|
|
25340
25536
|
cursor: "pointer",
|
|
25341
25537
|
display: "flex",
|
|
@@ -25544,6 +25740,8 @@
|
|
|
25544
25740
|
var MODAL_HORIZONTAL_PADDING_L = 40;
|
|
25545
25741
|
var MODAL_HORIZONTAL_PADDING_M = 36;
|
|
25546
25742
|
var MODAL_HORIZONTAL_PADDING_S = 26;
|
|
25743
|
+
var MODAL_CLOSE_BUTTON_SIZE = 40;
|
|
25744
|
+
var MODAL_CLOSE_BUTTON_ICON_SIZE = 30;
|
|
25547
25745
|
var useStyles$i = createThemedStyles("Modal", {
|
|
25548
25746
|
root: {},
|
|
25549
25747
|
fixedPosition: {
|
|
@@ -25802,6 +26000,16 @@
|
|
|
25802
26000
|
extend: "animationEnd"
|
|
25803
26001
|
}
|
|
25804
26002
|
});
|
|
26003
|
+
var closeButtonStyles = {
|
|
26004
|
+
m: {
|
|
26005
|
+
width: MODAL_CLOSE_BUTTON_SIZE,
|
|
26006
|
+
height: MODAL_CLOSE_BUTTON_SIZE
|
|
26007
|
+
},
|
|
26008
|
+
icon: {
|
|
26009
|
+
width: MODAL_CLOSE_BUTTON_ICON_SIZE,
|
|
26010
|
+
height: MODAL_CLOSE_BUTTON_ICON_SIZE
|
|
26011
|
+
}
|
|
26012
|
+
};
|
|
25805
26013
|
function _array_like_to_array$9(arr, len) {
|
|
25806
26014
|
if (len == null || len > arr.length)
|
|
25807
26015
|
len = arr.length;
|
|
@@ -25971,6 +26179,7 @@
|
|
|
25971
26179
|
theme: tweakStyles
|
|
25972
26180
|
});
|
|
25973
26181
|
var tweakCloseButtonStyles = useTweakStyles({
|
|
26182
|
+
innerStyles: closeButtonStyles,
|
|
25974
26183
|
tweakStyles,
|
|
25975
26184
|
className: "tweakCloseButton",
|
|
25976
26185
|
currentComponentName: "Modal"
|
|
@@ -26050,10 +26259,12 @@
|
|
|
26050
26259
|
children: [
|
|
26051
26260
|
hasCloseButton && /* @__PURE__ */ jsx("div", {
|
|
26052
26261
|
className: classes.close,
|
|
26053
|
-
children: /* @__PURE__ */ jsx(
|
|
26262
|
+
children: /* @__PURE__ */ jsx(IconButton, {
|
|
26054
26263
|
testId: trueReactPlatformHelpers.getTestId(testId, "close-button"),
|
|
26055
26264
|
tweakStyles: tweakCloseButtonStyles,
|
|
26056
|
-
|
|
26265
|
+
view: "cancel-light",
|
|
26266
|
+
icon: "close",
|
|
26267
|
+
onClick: onClose
|
|
26057
26268
|
})
|
|
26058
26269
|
}),
|
|
26059
26270
|
trueReactPlatformHelpers.isReactNodeNotEmpty(title) && /* @__PURE__ */ jsx("h3", {
|
|
@@ -26098,7 +26309,8 @@
|
|
|
26098
26309
|
borderRadius: "50%",
|
|
26099
26310
|
border: "none",
|
|
26100
26311
|
cursor: "pointer",
|
|
26101
|
-
transition:
|
|
26312
|
+
transition: animations.defaultTransition,
|
|
26313
|
+
transitionProperty: "background-color",
|
|
26102
26314
|
"&$hasCircle": {
|
|
26103
26315
|
backgroundColor: rgba(colors.GREY_HOVER, 0.5)
|
|
26104
26316
|
},
|
|
@@ -27638,7 +27850,7 @@
|
|
|
27638
27850
|
height: "calc(100% - ".concat(SELECTOR_GAP * 2, "px)"),
|
|
27639
27851
|
backgroundColor: colors.CLASSIC_WHITE,
|
|
27640
27852
|
borderRadius: dimensions.BORDER_RADIUS_SMALL,
|
|
27641
|
-
transition:
|
|
27853
|
+
transition: animations.defaultTransition,
|
|
27642
27854
|
transitionProperty: "transform, width"
|
|
27643
27855
|
},
|
|
27644
27856
|
"&$invalid": {
|
|
@@ -27651,7 +27863,8 @@
|
|
|
27651
27863
|
height: "100%",
|
|
27652
27864
|
color: colors.FONT_MEDIUM,
|
|
27653
27865
|
fontSize: 16,
|
|
27654
|
-
transition:
|
|
27866
|
+
transition: animations.defaultTransition,
|
|
27867
|
+
transitionProperty: "color",
|
|
27655
27868
|
background: "none",
|
|
27656
27869
|
"&$s": {
|
|
27657
27870
|
padding: [
|
|
@@ -28443,8 +28656,8 @@
|
|
|
28443
28656
|
backgroundColor: "#333",
|
|
28444
28657
|
borderRadius: 10,
|
|
28445
28658
|
boxSizing: "border-box",
|
|
28659
|
+
transition: animations.defaultTransition,
|
|
28446
28660
|
transitionProperty: "opacity, background-color",
|
|
28447
|
-
transition: "0.25s ease-in-out",
|
|
28448
28661
|
"&::before": {
|
|
28449
28662
|
content: '""',
|
|
28450
28663
|
position: "absolute",
|
|
@@ -28457,16 +28670,16 @@
|
|
|
28457
28670
|
backgroundColor: "#fff",
|
|
28458
28671
|
borderRadius: "50%",
|
|
28459
28672
|
zIndex: 1,
|
|
28460
|
-
|
|
28461
|
-
|
|
28673
|
+
transition: animations.defaultTransition,
|
|
28674
|
+
transitionProperty: "left, background-color"
|
|
28462
28675
|
}
|
|
28463
28676
|
},
|
|
28464
28677
|
input: {
|
|
28465
28678
|
display: "none"
|
|
28466
28679
|
},
|
|
28467
28680
|
label: {
|
|
28468
|
-
|
|
28469
|
-
|
|
28681
|
+
transition: animations.defaultTransition,
|
|
28682
|
+
transitionProperty: "opacity, color"
|
|
28470
28683
|
},
|
|
28471
28684
|
labelLeft: {
|
|
28472
28685
|
order: -1,
|
|
@@ -28576,7 +28789,7 @@
|
|
|
28576
28789
|
width: "100%",
|
|
28577
28790
|
flexGrow: 1,
|
|
28578
28791
|
boxSizing: "border-box",
|
|
28579
|
-
transition:
|
|
28792
|
+
transition: animations.defaultTransition,
|
|
28580
28793
|
transitionProperty: "border-color",
|
|
28581
28794
|
backgroundColor: "white",
|
|
28582
28795
|
border: [
|
|
@@ -28598,7 +28811,7 @@
|
|
|
28598
28811
|
PADDING_X,
|
|
28599
28812
|
8
|
|
28600
28813
|
],
|
|
28601
|
-
transition:
|
|
28814
|
+
transition: animations.defaultTransition,
|
|
28602
28815
|
transitionProperty: "background-color",
|
|
28603
28816
|
border: "none",
|
|
28604
28817
|
resize: "none",
|
|
@@ -28650,7 +28863,7 @@
|
|
|
28650
28863
|
top: PADDING_X * 2,
|
|
28651
28864
|
transformOrigin: "top left",
|
|
28652
28865
|
transform: "translateY(-50%)",
|
|
28653
|
-
transition:
|
|
28866
|
+
transition: animations.defaultTransition,
|
|
28654
28867
|
transitionProperty: "transform, color",
|
|
28655
28868
|
fontSize: 16
|
|
28656
28869
|
},
|
|
@@ -28920,7 +29133,8 @@
|
|
|
28920
29133
|
borderRadius: 0,
|
|
28921
29134
|
cursor: "pointer",
|
|
28922
29135
|
outline: "none",
|
|
28923
|
-
transition:
|
|
29136
|
+
transition: animations.defaultTransition,
|
|
29137
|
+
transitionProperty: "color",
|
|
28924
29138
|
"&[disabled]": {
|
|
28925
29139
|
cursor: "default",
|
|
28926
29140
|
pointerEvents: "none"
|
|
@@ -28959,7 +29173,7 @@
|
|
|
28959
29173
|
width: 24,
|
|
28960
29174
|
height: 24,
|
|
28961
29175
|
borderRadius: "50%",
|
|
28962
|
-
transition:
|
|
29176
|
+
transition: animations.defaultTransition,
|
|
28963
29177
|
transitionProperty: [
|
|
28964
29178
|
"background",
|
|
28965
29179
|
"color"
|
|
@@ -29094,7 +29308,7 @@
|
|
|
29094
29308
|
}
|
|
29095
29309
|
return target;
|
|
29096
29310
|
}
|
|
29097
|
-
var TextButton = function(_param) {
|
|
29311
|
+
var TextButton = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
29098
29312
|
var children = _param.children, icon = _param.icon, _param_view = _param.view, view = _param_view === void 0 ? "primary" : _param_view, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isBold = _param.isBold, isBold = _param_isBold === void 0 ? false : _param_isBold, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_hasCircleUnderIcon = _param.hasCircleUnderIcon, hasCircleUnderIcon = _param_hasCircleUnderIcon === void 0 ? false : _param_hasCircleUnderIcon, _param_size = _param.size, size = _param_size === void 0 ? "l" : _param_size, _param_iconPosition = _param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "left" : _param_iconPosition, _param_preloaderType = _param.preloaderType, preloaderType = _param_preloaderType === void 0 ? "dots" : _param_preloaderType, _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(_param, [
|
|
29099
29313
|
"children",
|
|
29100
29314
|
"icon",
|
|
@@ -29125,10 +29339,11 @@
|
|
|
29125
29339
|
var hasNoAction = isDisabled || isLoading;
|
|
29126
29340
|
var _obj;
|
|
29127
29341
|
return /* @__PURE__ */ jsxs("button", _object_spread_props$6(_object_spread$6({
|
|
29342
|
+
ref,
|
|
29343
|
+
type,
|
|
29128
29344
|
className: clsx(classes.root, classes[size], classes[view], (_obj = {}, _define_property$6(_obj, classes.bold, isBold), _define_property$6(_obj, classes.loading, isLoading), _define_property$6(_obj, classes.active, isActive), _define_property$6(_obj, classes.disabled, isDisabled), _obj)),
|
|
29129
|
-
onClick: !hasNoAction ? onClick : void 0,
|
|
29130
29345
|
disabled: hasNoAction,
|
|
29131
|
-
|
|
29346
|
+
onClick: !hasNoAction ? onClick : void 0
|
|
29132
29347
|
}, restProps, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
29133
29348
|
children: [
|
|
29134
29349
|
/* @__PURE__ */ jsxs("span", {
|
|
@@ -29154,7 +29369,7 @@
|
|
|
29154
29369
|
})
|
|
29155
29370
|
]
|
|
29156
29371
|
}));
|
|
29157
|
-
};
|
|
29372
|
+
});
|
|
29158
29373
|
var useStyles$5 = createThemedStyles("Tooltip", {
|
|
29159
29374
|
root: {
|
|
29160
29375
|
display: "inline-block",
|
|
@@ -29929,10 +30144,11 @@
|
|
|
29929
30144
|
}),
|
|
29930
30145
|
hasCloseButton && trueReactPlatformHelpers.isNotEmpty(onClose) && /* @__PURE__ */ jsx("div", {
|
|
29931
30146
|
className: classes.close,
|
|
29932
|
-
children: /* @__PURE__ */ jsx(
|
|
29933
|
-
|
|
29934
|
-
|
|
29935
|
-
tweakStyles: tweakCloseButtonStyles
|
|
30147
|
+
children: /* @__PURE__ */ jsx(IconButton, {
|
|
30148
|
+
view: "cancel-light",
|
|
30149
|
+
icon: "close-window",
|
|
30150
|
+
tweakStyles: tweakCloseButtonStyles,
|
|
30151
|
+
onClick: onClose
|
|
29936
30152
|
})
|
|
29937
30153
|
})
|
|
29938
30154
|
]
|
|
@@ -30168,7 +30384,8 @@
|
|
|
30168
30384
|
borderRadius: "50%",
|
|
30169
30385
|
border: "none",
|
|
30170
30386
|
cursor: "pointer",
|
|
30171
|
-
transition:
|
|
30387
|
+
transition: animations.defaultTransition,
|
|
30388
|
+
transitionProperty: "background-color"
|
|
30172
30389
|
},
|
|
30173
30390
|
icon: {
|
|
30174
30391
|
width: 30,
|
|
@@ -30305,6 +30522,7 @@
|
|
|
30305
30522
|
exports2.Flag = Flag;
|
|
30306
30523
|
exports2.FlexibleTable = FlexibleTable;
|
|
30307
30524
|
exports2.Icon = Icon;
|
|
30525
|
+
exports2.IconButton = IconButton;
|
|
30308
30526
|
exports2.IncrementInput = IncrementInput;
|
|
30309
30527
|
exports2.Input = Input;
|
|
30310
30528
|
exports2.List = List;
|