@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
|
@@ -1082,6 +1082,7 @@ var helpers = {
|
|
|
1082
1082
|
var SLIDE_UP_POSITION_START = 15;
|
|
1083
1083
|
var SLIDE_UP_POSITION_END = 0;
|
|
1084
1084
|
var animations = {
|
|
1085
|
+
defaultTransition: "0.25s ease-in-out",
|
|
1085
1086
|
// Если понадобится, сюда можно пробросить параметры через useTheme props
|
|
1086
1087
|
slideUp: {
|
|
1087
1088
|
"slide-up-enter": {
|
|
@@ -1870,7 +1871,7 @@ var merge = createAssigner(function(object, source, srcIndex) {
|
|
|
1870
1871
|
baseMerge(object, source, srcIndex);
|
|
1871
1872
|
});
|
|
1872
1873
|
const merge$1 = merge;
|
|
1873
|
-
function _define_property
|
|
1874
|
+
function _define_property$$(obj, key, value) {
|
|
1874
1875
|
if (key in obj) {
|
|
1875
1876
|
Object.defineProperty(obj, key, {
|
|
1876
1877
|
value,
|
|
@@ -1883,7 +1884,7 @@ function _define_property$_(obj, key, value) {
|
|
|
1883
1884
|
}
|
|
1884
1885
|
return obj;
|
|
1885
1886
|
}
|
|
1886
|
-
function _object_spread$
|
|
1887
|
+
function _object_spread$_(target) {
|
|
1887
1888
|
for (var i = 1; i < arguments.length; i++) {
|
|
1888
1889
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1889
1890
|
var ownKeys2 = Object.keys(source);
|
|
@@ -1893,12 +1894,12 @@ function _object_spread$Z(target) {
|
|
|
1893
1894
|
}));
|
|
1894
1895
|
}
|
|
1895
1896
|
ownKeys2.forEach(function(key) {
|
|
1896
|
-
_define_property
|
|
1897
|
+
_define_property$$(target, key, source[key]);
|
|
1897
1898
|
});
|
|
1898
1899
|
}
|
|
1899
1900
|
return target;
|
|
1900
1901
|
}
|
|
1901
|
-
function ownKeys$
|
|
1902
|
+
function ownKeys$P(object, enumerableOnly) {
|
|
1902
1903
|
var keys2 = Object.keys(object);
|
|
1903
1904
|
if (Object.getOwnPropertySymbols) {
|
|
1904
1905
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -1911,12 +1912,12 @@ function ownKeys$O(object, enumerableOnly) {
|
|
|
1911
1912
|
}
|
|
1912
1913
|
return keys2;
|
|
1913
1914
|
}
|
|
1914
|
-
function _object_spread_props$
|
|
1915
|
+
function _object_spread_props$P(target, source) {
|
|
1915
1916
|
source = source != null ? source : {};
|
|
1916
1917
|
if (Object.getOwnPropertyDescriptors) {
|
|
1917
1918
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1918
1919
|
} else {
|
|
1919
|
-
ownKeys$
|
|
1920
|
+
ownKeys$P(Object(source)).forEach(function(key) {
|
|
1920
1921
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1921
1922
|
});
|
|
1922
1923
|
}
|
|
@@ -1971,7 +1972,7 @@ function createThemedStyles() {
|
|
|
1971
1972
|
return mergeStyles(styles, 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);
|
|
1972
1973
|
});
|
|
1973
1974
|
return function(data) {
|
|
1974
|
-
return useStyles2(isNotEmpty(data) ? _object_spread_props$
|
|
1975
|
+
return useStyles2(isNotEmpty(data) ? _object_spread_props$P(_object_spread$_({}, data), {
|
|
1975
1976
|
theme: cleanStyles(data.theme)
|
|
1976
1977
|
}) : data);
|
|
1977
1978
|
};
|
|
@@ -6430,7 +6431,7 @@ function _array_without_holes$7(arr) {
|
|
|
6430
6431
|
if (Array.isArray(arr))
|
|
6431
6432
|
return _array_like_to_array$q(arr);
|
|
6432
6433
|
}
|
|
6433
|
-
function _define_property$
|
|
6434
|
+
function _define_property$_(obj, key, value) {
|
|
6434
6435
|
if (key in obj) {
|
|
6435
6436
|
Object.defineProperty(obj, key, {
|
|
6436
6437
|
value,
|
|
@@ -6450,7 +6451,7 @@ function _iterable_to_array$7(iter) {
|
|
|
6450
6451
|
function _non_iterable_spread$7() {
|
|
6451
6452
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6452
6453
|
}
|
|
6453
|
-
function _object_spread$
|
|
6454
|
+
function _object_spread$Z(target) {
|
|
6454
6455
|
for (var i = 1; i < arguments.length; i++) {
|
|
6455
6456
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6456
6457
|
var ownKeys2 = Object.keys(source);
|
|
@@ -6460,7 +6461,7 @@ function _object_spread$Y(target) {
|
|
|
6460
6461
|
}));
|
|
6461
6462
|
}
|
|
6462
6463
|
ownKeys2.forEach(function(key) {
|
|
6463
|
-
_define_property$
|
|
6464
|
+
_define_property$_(target, key, source[key]);
|
|
6464
6465
|
});
|
|
6465
6466
|
}
|
|
6466
6467
|
return target;
|
|
@@ -6516,7 +6517,7 @@ var useDropdown = function(param) {
|
|
|
6516
6517
|
},
|
|
6517
6518
|
{
|
|
6518
6519
|
name: "flip",
|
|
6519
|
-
options: _object_spread$
|
|
6520
|
+
options: _object_spread$Z({
|
|
6520
6521
|
fallbackPlacements: canBeFlipped ? [
|
|
6521
6522
|
"bottom-start",
|
|
6522
6523
|
"top-start"
|
|
@@ -6651,7 +6652,7 @@ const avatarGreen = ` <svg
|
|
|
6651
6652
|
var complexIcons = {
|
|
6652
6653
|
avatar: avatarGreen
|
|
6653
6654
|
};
|
|
6654
|
-
function _define_property$
|
|
6655
|
+
function _define_property$Z(obj, key, value) {
|
|
6655
6656
|
if (key in obj) {
|
|
6656
6657
|
Object.defineProperty(obj, key, {
|
|
6657
6658
|
value,
|
|
@@ -6664,7 +6665,7 @@ function _define_property$Y(obj, key, value) {
|
|
|
6664
6665
|
}
|
|
6665
6666
|
return obj;
|
|
6666
6667
|
}
|
|
6667
|
-
function _object_spread$
|
|
6668
|
+
function _object_spread$Y(target) {
|
|
6668
6669
|
for (var i = 1; i < arguments.length; i++) {
|
|
6669
6670
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6670
6671
|
var ownKeys2 = Object.keys(source);
|
|
@@ -6674,7 +6675,7 @@ function _object_spread$X(target) {
|
|
|
6674
6675
|
}));
|
|
6675
6676
|
}
|
|
6676
6677
|
ownKeys2.forEach(function(key) {
|
|
6677
|
-
_define_property$
|
|
6678
|
+
_define_property$Z(target, key, source[key]);
|
|
6678
6679
|
});
|
|
6679
6680
|
}
|
|
6680
6681
|
return target;
|
|
@@ -6683,7 +6684,7 @@ var ComplexIconBoilerplate = function(param) {
|
|
|
6683
6684
|
var type = param.type;
|
|
6684
6685
|
var theme = useContext(ThemeContext).theme;
|
|
6685
6686
|
var icons = useMemo(function() {
|
|
6686
|
-
return _object_spread$
|
|
6687
|
+
return _object_spread$Y({}, complexIcons, theme.complexIcons);
|
|
6687
6688
|
}, []);
|
|
6688
6689
|
var ComplexIcon = icons[type];
|
|
6689
6690
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -7555,7 +7556,7 @@ var iconsList = checkIcons({
|
|
|
7555
7556
|
]
|
|
7556
7557
|
}
|
|
7557
7558
|
});
|
|
7558
|
-
function _define_property$
|
|
7559
|
+
function _define_property$Y(obj, key, value) {
|
|
7559
7560
|
if (key in obj) {
|
|
7560
7561
|
Object.defineProperty(obj, key, {
|
|
7561
7562
|
value,
|
|
@@ -7568,7 +7569,7 @@ function _define_property$X(obj, key, value) {
|
|
|
7568
7569
|
}
|
|
7569
7570
|
return obj;
|
|
7570
7571
|
}
|
|
7571
|
-
function _object_spread$
|
|
7572
|
+
function _object_spread$X(target) {
|
|
7572
7573
|
for (var i = 1; i < arguments.length; i++) {
|
|
7573
7574
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7574
7575
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7578,12 +7579,12 @@ function _object_spread$W(target) {
|
|
|
7578
7579
|
}));
|
|
7579
7580
|
}
|
|
7580
7581
|
ownKeys2.forEach(function(key) {
|
|
7581
|
-
_define_property$
|
|
7582
|
+
_define_property$Y(target, key, source[key]);
|
|
7582
7583
|
});
|
|
7583
7584
|
}
|
|
7584
7585
|
return target;
|
|
7585
7586
|
}
|
|
7586
|
-
function ownKeys$
|
|
7587
|
+
function ownKeys$O(object, enumerableOnly) {
|
|
7587
7588
|
var keys2 = Object.keys(object);
|
|
7588
7589
|
if (Object.getOwnPropertySymbols) {
|
|
7589
7590
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7596,12 +7597,12 @@ function ownKeys$N(object, enumerableOnly) {
|
|
|
7596
7597
|
}
|
|
7597
7598
|
return keys2;
|
|
7598
7599
|
}
|
|
7599
|
-
function _object_spread_props$
|
|
7600
|
+
function _object_spread_props$O(target, source) {
|
|
7600
7601
|
source = source != null ? source : {};
|
|
7601
7602
|
if (Object.getOwnPropertyDescriptors) {
|
|
7602
7603
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7603
7604
|
} else {
|
|
7604
|
-
ownKeys$
|
|
7605
|
+
ownKeys$O(Object(source)).forEach(function(key) {
|
|
7605
7606
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7606
7607
|
});
|
|
7607
7608
|
}
|
|
@@ -7612,7 +7613,7 @@ var IconBoilerplate = function(param) {
|
|
|
7612
7613
|
var _icon_paths, _icon_rects, _icon_circles;
|
|
7613
7614
|
var theme = useContext(ThemeContext).theme;
|
|
7614
7615
|
var icons = useMemo(function() {
|
|
7615
|
-
return _object_spread$
|
|
7616
|
+
return _object_spread$X({}, iconsList, theme.icons);
|
|
7616
7617
|
}, []);
|
|
7617
7618
|
var icon = icons[type];
|
|
7618
7619
|
var _icon_viewBox;
|
|
@@ -7625,7 +7626,7 @@ var IconBoilerplate = function(param) {
|
|
|
7625
7626
|
children: [
|
|
7626
7627
|
(_icon_paths = icon.paths) === null || _icon_paths === void 0 ? void 0 : _icon_paths.map(function(path, index) {
|
|
7627
7628
|
var _path_fill, _path_stroke;
|
|
7628
|
-
return jsx("path", _object_spread$
|
|
7629
|
+
return jsx("path", _object_spread$X({
|
|
7629
7630
|
fillRule: "evenodd",
|
|
7630
7631
|
clipRule: "evenodd",
|
|
7631
7632
|
fill: (_path_fill = path.fill) !== null && _path_fill !== void 0 ? _path_fill : "currentColor",
|
|
@@ -7633,25 +7634,25 @@ var IconBoilerplate = function(param) {
|
|
|
7633
7634
|
}, path), index);
|
|
7634
7635
|
}),
|
|
7635
7636
|
(_icon_rects = icon.rects) === null || _icon_rects === void 0 ? void 0 : _icon_rects.map(function(rect, index) {
|
|
7636
|
-
return /* @__PURE__ */ createElement("rect", _object_spread_props$
|
|
7637
|
+
return /* @__PURE__ */ createElement("rect", _object_spread_props$O(_object_spread$X({}, rect), {
|
|
7637
7638
|
key: index
|
|
7638
7639
|
}));
|
|
7639
7640
|
}),
|
|
7640
7641
|
(_icon_circles = icon.circles) === null || _icon_circles === void 0 ? void 0 : _icon_circles.map(function(circle, index) {
|
|
7641
|
-
return /* @__PURE__ */ createElement("circle", _object_spread_props$
|
|
7642
|
+
return /* @__PURE__ */ createElement("circle", _object_spread_props$O(_object_spread$X({}, circle), {
|
|
7642
7643
|
key: index
|
|
7643
7644
|
}));
|
|
7644
7645
|
})
|
|
7645
7646
|
]
|
|
7646
7647
|
});
|
|
7647
7648
|
};
|
|
7648
|
-
var useStyles$
|
|
7649
|
+
var useStyles$T = createThemedStyles("Icon", {
|
|
7649
7650
|
root: {
|
|
7650
7651
|
display: "flex",
|
|
7651
7652
|
alignItems: "center"
|
|
7652
7653
|
}
|
|
7653
7654
|
});
|
|
7654
|
-
function _define_property$
|
|
7655
|
+
function _define_property$X(obj, key, value) {
|
|
7655
7656
|
if (key in obj) {
|
|
7656
7657
|
Object.defineProperty(obj, key, {
|
|
7657
7658
|
value,
|
|
@@ -7664,7 +7665,7 @@ function _define_property$W(obj, key, value) {
|
|
|
7664
7665
|
}
|
|
7665
7666
|
return obj;
|
|
7666
7667
|
}
|
|
7667
|
-
function _object_spread$
|
|
7668
|
+
function _object_spread$W(target) {
|
|
7668
7669
|
for (var i = 1; i < arguments.length; i++) {
|
|
7669
7670
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7670
7671
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7674,12 +7675,12 @@ function _object_spread$V(target) {
|
|
|
7674
7675
|
}));
|
|
7675
7676
|
}
|
|
7676
7677
|
ownKeys2.forEach(function(key) {
|
|
7677
|
-
_define_property$
|
|
7678
|
+
_define_property$X(target, key, source[key]);
|
|
7678
7679
|
});
|
|
7679
7680
|
}
|
|
7680
7681
|
return target;
|
|
7681
7682
|
}
|
|
7682
|
-
function ownKeys$
|
|
7683
|
+
function ownKeys$N(object, enumerableOnly) {
|
|
7683
7684
|
var keys2 = Object.keys(object);
|
|
7684
7685
|
if (Object.getOwnPropertySymbols) {
|
|
7685
7686
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7692,12 +7693,12 @@ function ownKeys$M(object, enumerableOnly) {
|
|
|
7692
7693
|
}
|
|
7693
7694
|
return keys2;
|
|
7694
7695
|
}
|
|
7695
|
-
function _object_spread_props$
|
|
7696
|
+
function _object_spread_props$N(target, source) {
|
|
7696
7697
|
source = source != null ? source : {};
|
|
7697
7698
|
if (Object.getOwnPropertyDescriptors) {
|
|
7698
7699
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7699
7700
|
} else {
|
|
7700
|
-
ownKeys$
|
|
7701
|
+
ownKeys$N(Object(source)).forEach(function(key) {
|
|
7701
7702
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7702
7703
|
});
|
|
7703
7704
|
}
|
|
@@ -7705,10 +7706,10 @@ function _object_spread_props$M(target, source) {
|
|
|
7705
7706
|
}
|
|
7706
7707
|
var Icon = function(param) {
|
|
7707
7708
|
var type = param.type, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
7708
|
-
var classes = useStyles$
|
|
7709
|
+
var classes = useStyles$T({
|
|
7709
7710
|
theme: tweakStyles
|
|
7710
7711
|
});
|
|
7711
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
7712
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$N(_object_spread$W({
|
|
7712
7713
|
className: classes.root
|
|
7713
7714
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
7714
7715
|
children: isComplexIcon(type) ? /* @__PURE__ */ jsx(ComplexIconBoilerplate, {
|
|
@@ -7724,9 +7725,9 @@ var renderIcon = function(icon) {
|
|
|
7724
7725
|
}) : icon;
|
|
7725
7726
|
};
|
|
7726
7727
|
var ITEM_HORIZONTAL_PADDING$1 = 16;
|
|
7727
|
-
var ICON_SIZE$
|
|
7728
|
+
var ICON_SIZE$2 = 20;
|
|
7728
7729
|
var ICON_GAP$1 = 12;
|
|
7729
|
-
var useStyles$
|
|
7730
|
+
var useStyles$S = createThemedStyles("ListItem", {
|
|
7730
7731
|
root: {
|
|
7731
7732
|
display: "flex",
|
|
7732
7733
|
alignItems: "center",
|
|
@@ -7738,7 +7739,8 @@ var useStyles$R = createThemedStyles("ListItem", {
|
|
|
7738
7739
|
0,
|
|
7739
7740
|
ITEM_HORIZONTAL_PADDING$1
|
|
7740
7741
|
],
|
|
7741
|
-
transition:
|
|
7742
|
+
transition: animations.defaultTransition,
|
|
7743
|
+
transitionProperty: "background-color",
|
|
7742
7744
|
cursor: "pointer"
|
|
7743
7745
|
},
|
|
7744
7746
|
default: {},
|
|
@@ -7751,17 +7753,17 @@ var useStyles$R = createThemedStyles("ListItem", {
|
|
|
7751
7753
|
backgroundColor: colors.BORDER_LIGHT
|
|
7752
7754
|
},
|
|
7753
7755
|
withIconGap: {
|
|
7754
|
-
paddingLeft: ITEM_HORIZONTAL_PADDING$1 + ICON_SIZE$
|
|
7756
|
+
paddingLeft: ITEM_HORIZONTAL_PADDING$1 + ICON_SIZE$2 + ICON_GAP$1
|
|
7755
7757
|
},
|
|
7756
7758
|
icon: {
|
|
7757
|
-
width: ICON_SIZE$
|
|
7758
|
-
height: ICON_SIZE$
|
|
7759
|
+
width: ICON_SIZE$2,
|
|
7760
|
+
height: ICON_SIZE$2,
|
|
7759
7761
|
marginRight: ICON_GAP$1,
|
|
7760
7762
|
flexShrink: 0
|
|
7761
7763
|
},
|
|
7762
7764
|
content: {}
|
|
7763
7765
|
});
|
|
7764
|
-
function _define_property$
|
|
7766
|
+
function _define_property$W(obj, key, value) {
|
|
7765
7767
|
if (key in obj) {
|
|
7766
7768
|
Object.defineProperty(obj, key, {
|
|
7767
7769
|
value,
|
|
@@ -7774,7 +7776,7 @@ function _define_property$V(obj, key, value) {
|
|
|
7774
7776
|
}
|
|
7775
7777
|
return obj;
|
|
7776
7778
|
}
|
|
7777
|
-
function _object_spread$
|
|
7779
|
+
function _object_spread$V(target) {
|
|
7778
7780
|
for (var i = 1; i < arguments.length; i++) {
|
|
7779
7781
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7780
7782
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7784,12 +7786,12 @@ function _object_spread$U(target) {
|
|
|
7784
7786
|
}));
|
|
7785
7787
|
}
|
|
7786
7788
|
ownKeys2.forEach(function(key) {
|
|
7787
|
-
_define_property$
|
|
7789
|
+
_define_property$W(target, key, source[key]);
|
|
7788
7790
|
});
|
|
7789
7791
|
}
|
|
7790
7792
|
return target;
|
|
7791
7793
|
}
|
|
7792
|
-
function ownKeys$
|
|
7794
|
+
function ownKeys$M(object, enumerableOnly) {
|
|
7793
7795
|
var keys2 = Object.keys(object);
|
|
7794
7796
|
if (Object.getOwnPropertySymbols) {
|
|
7795
7797
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7802,12 +7804,12 @@ function ownKeys$L(object, enumerableOnly) {
|
|
|
7802
7804
|
}
|
|
7803
7805
|
return keys2;
|
|
7804
7806
|
}
|
|
7805
|
-
function _object_spread_props$
|
|
7807
|
+
function _object_spread_props$M(target, source) {
|
|
7806
7808
|
source = source != null ? source : {};
|
|
7807
7809
|
if (Object.getOwnPropertyDescriptors) {
|
|
7808
7810
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7809
7811
|
} else {
|
|
7810
|
-
ownKeys$
|
|
7812
|
+
ownKeys$M(Object(source)).forEach(function(key) {
|
|
7811
7813
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7812
7814
|
});
|
|
7813
7815
|
}
|
|
@@ -7815,7 +7817,7 @@ function _object_spread_props$L(target, source) {
|
|
|
7815
7817
|
}
|
|
7816
7818
|
var ListItem = function(param) {
|
|
7817
7819
|
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;
|
|
7818
|
-
var classes = useStyles$
|
|
7820
|
+
var classes = useStyles$S({
|
|
7819
7821
|
theme: tweakStyles
|
|
7820
7822
|
});
|
|
7821
7823
|
var _obj;
|
|
@@ -7824,9 +7826,9 @@ var ListItem = function(param) {
|
|
|
7824
7826
|
shouldDrawSpacerAbove && /* @__PURE__ */ jsx("div", {
|
|
7825
7827
|
className: classes.spacer
|
|
7826
7828
|
}),
|
|
7827
|
-
/* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
7828
|
-
className: clsx(classes.root, classes[view], (_obj = {}, _define_property$
|
|
7829
|
-
}, addClickHandler(onClick, !isDisabled), addDataTestId(testId), addDataAttributes(_object_spread_props$
|
|
7829
|
+
/* @__PURE__ */ jsxs("div", _object_spread_props$M(_object_spread$V({
|
|
7830
|
+
className: clsx(classes.root, classes[view], (_obj = {}, _define_property$W(_obj, classes.disabledItem, isDisabled), _define_property$W(_obj, classes.withIconGap, withIconGap), _obj))
|
|
7831
|
+
}, addClickHandler(onClick, !isDisabled), addDataTestId(testId), addDataAttributes(_object_spread_props$M(_object_spread$V({}, data), {
|
|
7830
7832
|
disabled: isDisabled ? true : void 0
|
|
7831
7833
|
}))), {
|
|
7832
7834
|
children: [
|
|
@@ -7847,9 +7849,9 @@ var ListItem = function(param) {
|
|
|
7847
7849
|
});
|
|
7848
7850
|
};
|
|
7849
7851
|
var ITEM_HORIZONTAL_PADDING = 16;
|
|
7850
|
-
var ICON_SIZE = 20;
|
|
7852
|
+
var ICON_SIZE$1 = 20;
|
|
7851
7853
|
var ICON_GAP = 12;
|
|
7852
|
-
var useStyles$
|
|
7854
|
+
var useStyles$R = createThemedStyles("List", {
|
|
7853
7855
|
root: {
|
|
7854
7856
|
minWidth: 180,
|
|
7855
7857
|
backgroundColor: colors.CLASSIC_WHITE,
|
|
@@ -7871,7 +7873,8 @@ var useStyles$Q = createThemedStyles("List", {
|
|
|
7871
7873
|
0,
|
|
7872
7874
|
ITEM_HORIZONTAL_PADDING
|
|
7873
7875
|
],
|
|
7874
|
-
transition:
|
|
7876
|
+
transition: animations.defaultTransition,
|
|
7877
|
+
transitionProperty: "background-color",
|
|
7875
7878
|
cursor: "pointer"
|
|
7876
7879
|
},
|
|
7877
7880
|
disabledItem: {
|
|
@@ -7882,17 +7885,17 @@ var useStyles$Q = createThemedStyles("List", {
|
|
|
7882
7885
|
backgroundColor: colors.BORDER_LIGHT
|
|
7883
7886
|
},
|
|
7884
7887
|
withIconGap: {
|
|
7885
|
-
paddingLeft: ITEM_HORIZONTAL_PADDING + ICON_SIZE + ICON_GAP
|
|
7888
|
+
paddingLeft: ITEM_HORIZONTAL_PADDING + ICON_SIZE$1 + ICON_GAP
|
|
7886
7889
|
},
|
|
7887
7890
|
icon: {
|
|
7888
|
-
width: ICON_SIZE,
|
|
7889
|
-
height: ICON_SIZE,
|
|
7891
|
+
width: ICON_SIZE$1,
|
|
7892
|
+
height: ICON_SIZE$1,
|
|
7890
7893
|
marginRight: ICON_GAP,
|
|
7891
7894
|
flexShrink: 0
|
|
7892
7895
|
},
|
|
7893
7896
|
content: {}
|
|
7894
7897
|
});
|
|
7895
|
-
function _define_property$
|
|
7898
|
+
function _define_property$V(obj, key, value) {
|
|
7896
7899
|
if (key in obj) {
|
|
7897
7900
|
Object.defineProperty(obj, key, {
|
|
7898
7901
|
value,
|
|
@@ -7905,7 +7908,7 @@ function _define_property$U(obj, key, value) {
|
|
|
7905
7908
|
}
|
|
7906
7909
|
return obj;
|
|
7907
7910
|
}
|
|
7908
|
-
function _object_spread$
|
|
7911
|
+
function _object_spread$U(target) {
|
|
7909
7912
|
for (var i = 1; i < arguments.length; i++) {
|
|
7910
7913
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7911
7914
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7915,12 +7918,12 @@ function _object_spread$T(target) {
|
|
|
7915
7918
|
}));
|
|
7916
7919
|
}
|
|
7917
7920
|
ownKeys2.forEach(function(key) {
|
|
7918
|
-
_define_property$
|
|
7921
|
+
_define_property$V(target, key, source[key]);
|
|
7919
7922
|
});
|
|
7920
7923
|
}
|
|
7921
7924
|
return target;
|
|
7922
7925
|
}
|
|
7923
|
-
function ownKeys$
|
|
7926
|
+
function ownKeys$L(object, enumerableOnly) {
|
|
7924
7927
|
var keys2 = Object.keys(object);
|
|
7925
7928
|
if (Object.getOwnPropertySymbols) {
|
|
7926
7929
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7933,12 +7936,12 @@ function ownKeys$K(object, enumerableOnly) {
|
|
|
7933
7936
|
}
|
|
7934
7937
|
return keys2;
|
|
7935
7938
|
}
|
|
7936
|
-
function _object_spread_props$
|
|
7939
|
+
function _object_spread_props$L(target, source) {
|
|
7937
7940
|
source = source != null ? source : {};
|
|
7938
7941
|
if (Object.getOwnPropertyDescriptors) {
|
|
7939
7942
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7940
7943
|
} else {
|
|
7941
|
-
ownKeys$
|
|
7944
|
+
ownKeys$L(Object(source)).forEach(function(key) {
|
|
7942
7945
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7943
7946
|
});
|
|
7944
7947
|
}
|
|
@@ -7946,18 +7949,18 @@ function _object_spread_props$K(target, source) {
|
|
|
7946
7949
|
}
|
|
7947
7950
|
var List = function(param) {
|
|
7948
7951
|
var items = param.items, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles, onClick = param.onClick;
|
|
7949
|
-
var classes = useStyles$
|
|
7952
|
+
var classes = useStyles$R({
|
|
7950
7953
|
theme: tweakStyles
|
|
7951
7954
|
});
|
|
7952
7955
|
var handleItemClick = function(event, item) {
|
|
7953
7956
|
item.onClick(event);
|
|
7954
7957
|
onClick === null || onClick === void 0 ? void 0 : onClick(event);
|
|
7955
7958
|
};
|
|
7956
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
7959
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$L(_object_spread$U({
|
|
7957
7960
|
className: classes.root
|
|
7958
7961
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
7959
7962
|
children: items.map(function(item, i) {
|
|
7960
|
-
return /* @__PURE__ */ jsx(ListItem, _object_spread_props$
|
|
7963
|
+
return /* @__PURE__ */ jsx(ListItem, _object_spread_props$L(_object_spread$U({
|
|
7961
7964
|
testId: getTestId(testId, "item-".concat(i))
|
|
7962
7965
|
}, item), {
|
|
7963
7966
|
onClick: function(event) {
|
|
@@ -7968,7 +7971,7 @@ var List = function(param) {
|
|
|
7968
7971
|
}));
|
|
7969
7972
|
};
|
|
7970
7973
|
var ANIMATION_TIMEOUT = 150;
|
|
7971
|
-
function _define_property$
|
|
7974
|
+
function _define_property$U(obj, key, value) {
|
|
7972
7975
|
if (key in obj) {
|
|
7973
7976
|
Object.defineProperty(obj, key, {
|
|
7974
7977
|
value,
|
|
@@ -7981,7 +7984,7 @@ function _define_property$T(obj, key, value) {
|
|
|
7981
7984
|
}
|
|
7982
7985
|
return obj;
|
|
7983
7986
|
}
|
|
7984
|
-
function _object_spread$
|
|
7987
|
+
function _object_spread$T(target) {
|
|
7985
7988
|
for (var i = 1; i < arguments.length; i++) {
|
|
7986
7989
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7987
7990
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7991,12 +7994,12 @@ function _object_spread$S(target) {
|
|
|
7991
7994
|
}));
|
|
7992
7995
|
}
|
|
7993
7996
|
ownKeys2.forEach(function(key) {
|
|
7994
|
-
_define_property$
|
|
7997
|
+
_define_property$U(target, key, source[key]);
|
|
7995
7998
|
});
|
|
7996
7999
|
}
|
|
7997
8000
|
return target;
|
|
7998
8001
|
}
|
|
7999
|
-
var useStyles$
|
|
8002
|
+
var useStyles$Q = createThemedStyles("AccountInfo", _object_spread$T({
|
|
8000
8003
|
root: {
|
|
8001
8004
|
display: "flex"
|
|
8002
8005
|
},
|
|
@@ -8014,13 +8017,14 @@ var useStyles$P = createThemedStyles("AccountInfo", _object_spread$S({
|
|
|
8014
8017
|
10
|
|
8015
8018
|
],
|
|
8016
8019
|
fontSize: 14,
|
|
8017
|
-
transition:
|
|
8020
|
+
transition: animations.defaultTransition,
|
|
8021
|
+
transitionProperty: "color"
|
|
8018
8022
|
},
|
|
8019
8023
|
accountNameOpened: {},
|
|
8020
8024
|
accountChevron: {
|
|
8021
8025
|
width: 16,
|
|
8022
8026
|
height: 16,
|
|
8023
|
-
transition:
|
|
8027
|
+
transition: animations.defaultTransition,
|
|
8024
8028
|
transitionProperty: "transform, color"
|
|
8025
8029
|
},
|
|
8026
8030
|
accountChevronOpened: {
|
|
@@ -8049,7 +8053,7 @@ function _array_with_holes$p(arr) {
|
|
|
8049
8053
|
if (Array.isArray(arr))
|
|
8050
8054
|
return arr;
|
|
8051
8055
|
}
|
|
8052
|
-
function _define_property$
|
|
8056
|
+
function _define_property$T(obj, key, value) {
|
|
8053
8057
|
if (key in obj) {
|
|
8054
8058
|
Object.defineProperty(obj, key, {
|
|
8055
8059
|
value,
|
|
@@ -8093,7 +8097,7 @@ function _iterable_to_array_limit$p(arr, i) {
|
|
|
8093
8097
|
function _non_iterable_rest$p() {
|
|
8094
8098
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8095
8099
|
}
|
|
8096
|
-
function _object_spread$
|
|
8100
|
+
function _object_spread$S(target) {
|
|
8097
8101
|
for (var i = 1; i < arguments.length; i++) {
|
|
8098
8102
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8099
8103
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8103,12 +8107,12 @@ function _object_spread$R(target) {
|
|
|
8103
8107
|
}));
|
|
8104
8108
|
}
|
|
8105
8109
|
ownKeys2.forEach(function(key) {
|
|
8106
|
-
_define_property$
|
|
8110
|
+
_define_property$T(target, key, source[key]);
|
|
8107
8111
|
});
|
|
8108
8112
|
}
|
|
8109
8113
|
return target;
|
|
8110
8114
|
}
|
|
8111
|
-
function ownKeys$
|
|
8115
|
+
function ownKeys$K(object, enumerableOnly) {
|
|
8112
8116
|
var keys2 = Object.keys(object);
|
|
8113
8117
|
if (Object.getOwnPropertySymbols) {
|
|
8114
8118
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8121,12 +8125,12 @@ function ownKeys$J(object, enumerableOnly) {
|
|
|
8121
8125
|
}
|
|
8122
8126
|
return keys2;
|
|
8123
8127
|
}
|
|
8124
|
-
function _object_spread_props$
|
|
8128
|
+
function _object_spread_props$K(target, source) {
|
|
8125
8129
|
source = source != null ? source : {};
|
|
8126
8130
|
if (Object.getOwnPropertyDescriptors) {
|
|
8127
8131
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8128
8132
|
} else {
|
|
8129
|
-
ownKeys$
|
|
8133
|
+
ownKeys$K(Object(source)).forEach(function(key) {
|
|
8130
8134
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8131
8135
|
});
|
|
8132
8136
|
}
|
|
@@ -8150,7 +8154,7 @@ function _unsupported_iterable_to_array$p(o, minLen) {
|
|
|
8150
8154
|
}
|
|
8151
8155
|
var AccountInfo = function(param) {
|
|
8152
8156
|
var data = param.data, testId = param.testId, avatar = param.avatar, tweakStyles = param.tweakStyles, accountName = param.accountName, options = param.options;
|
|
8153
|
-
var classes = useStyles$
|
|
8157
|
+
var classes = useStyles$Q({
|
|
8154
8158
|
theme: tweakStyles
|
|
8155
8159
|
});
|
|
8156
8160
|
var tweakListStyles = useTweakStyles({
|
|
@@ -8170,7 +8174,7 @@ var AccountInfo = function(param) {
|
|
|
8170
8174
|
useOnClickOutsideWithRef(dropdownRef, function() {
|
|
8171
8175
|
return setIsMenuOpen(false);
|
|
8172
8176
|
}, nameRef);
|
|
8173
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
8177
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$K(_object_spread$S({
|
|
8174
8178
|
className: classes.root
|
|
8175
8179
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
8176
8180
|
children: [
|
|
@@ -8220,7 +8224,7 @@ var AccountInfo = function(param) {
|
|
|
8220
8224
|
]
|
|
8221
8225
|
}));
|
|
8222
8226
|
};
|
|
8223
|
-
var useStyles$
|
|
8227
|
+
var useStyles$P = createThemedStyles("AddButton", {
|
|
8224
8228
|
root: {
|
|
8225
8229
|
display: "flex",
|
|
8226
8230
|
alignItems: "center",
|
|
@@ -8246,7 +8250,7 @@ var useStyles$O = createThemedStyles("AddButton", {
|
|
|
8246
8250
|
width: "100%"
|
|
8247
8251
|
}
|
|
8248
8252
|
});
|
|
8249
|
-
function _define_property$
|
|
8253
|
+
function _define_property$S(obj, key, value) {
|
|
8250
8254
|
if (key in obj) {
|
|
8251
8255
|
Object.defineProperty(obj, key, {
|
|
8252
8256
|
value,
|
|
@@ -8259,7 +8263,7 @@ function _define_property$R(obj, key, value) {
|
|
|
8259
8263
|
}
|
|
8260
8264
|
return obj;
|
|
8261
8265
|
}
|
|
8262
|
-
function _object_spread$
|
|
8266
|
+
function _object_spread$R(target) {
|
|
8263
8267
|
for (var i = 1; i < arguments.length; i++) {
|
|
8264
8268
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8265
8269
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8269,12 +8273,12 @@ function _object_spread$Q(target) {
|
|
|
8269
8273
|
}));
|
|
8270
8274
|
}
|
|
8271
8275
|
ownKeys2.forEach(function(key) {
|
|
8272
|
-
_define_property$
|
|
8276
|
+
_define_property$S(target, key, source[key]);
|
|
8273
8277
|
});
|
|
8274
8278
|
}
|
|
8275
8279
|
return target;
|
|
8276
8280
|
}
|
|
8277
|
-
function ownKeys$
|
|
8281
|
+
function ownKeys$J(object, enumerableOnly) {
|
|
8278
8282
|
var keys2 = Object.keys(object);
|
|
8279
8283
|
if (Object.getOwnPropertySymbols) {
|
|
8280
8284
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8287,12 +8291,12 @@ function ownKeys$I(object, enumerableOnly) {
|
|
|
8287
8291
|
}
|
|
8288
8292
|
return keys2;
|
|
8289
8293
|
}
|
|
8290
|
-
function _object_spread_props$
|
|
8294
|
+
function _object_spread_props$J(target, source) {
|
|
8291
8295
|
source = source != null ? source : {};
|
|
8292
8296
|
if (Object.getOwnPropertyDescriptors) {
|
|
8293
8297
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8294
8298
|
} else {
|
|
8295
|
-
ownKeys$
|
|
8299
|
+
ownKeys$J(Object(source)).forEach(function(key) {
|
|
8296
8300
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8297
8301
|
});
|
|
8298
8302
|
}
|
|
@@ -8300,10 +8304,10 @@ function _object_spread_props$I(target, source) {
|
|
|
8300
8304
|
}
|
|
8301
8305
|
var AddButton = function(param) {
|
|
8302
8306
|
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;
|
|
8303
|
-
var classes = useStyles$
|
|
8307
|
+
var classes = useStyles$P({
|
|
8304
8308
|
theme: tweakStyles
|
|
8305
8309
|
});
|
|
8306
|
-
return /* @__PURE__ */ jsxs("button", _object_spread_props$
|
|
8310
|
+
return /* @__PURE__ */ jsxs("button", _object_spread_props$J(_object_spread$R({
|
|
8307
8311
|
type,
|
|
8308
8312
|
className: clsx(classes.root, isDisabled && classes.disabled, isFullWidth && classes.fullWidth),
|
|
8309
8313
|
onClick: !isDisabled ? onClick : void 0,
|
|
@@ -8322,7 +8326,7 @@ var AddButton = function(param) {
|
|
|
8322
8326
|
]
|
|
8323
8327
|
}));
|
|
8324
8328
|
};
|
|
8325
|
-
var useStyles$
|
|
8329
|
+
var useStyles$O = createThemedStyles("DotsPreloader", {
|
|
8326
8330
|
root: {
|
|
8327
8331
|
display: "flex",
|
|
8328
8332
|
gap: 4,
|
|
@@ -8367,7 +8371,7 @@ var useStyles$N = createThemedStyles("DotsPreloader", {
|
|
|
8367
8371
|
});
|
|
8368
8372
|
var DotsPreloader = function(param) {
|
|
8369
8373
|
var tweakStyles = param.tweakStyles;
|
|
8370
|
-
var classes = useStyles$
|
|
8374
|
+
var classes = useStyles$O({
|
|
8371
8375
|
theme: tweakStyles
|
|
8372
8376
|
});
|
|
8373
8377
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -8433,7 +8437,7 @@ var DefaultPreloader = function() {
|
|
|
8433
8437
|
]
|
|
8434
8438
|
});
|
|
8435
8439
|
};
|
|
8436
|
-
var useStyles$
|
|
8440
|
+
var useStyles$N = createThemedStyles("SvgPreloader", {
|
|
8437
8441
|
root: {
|
|
8438
8442
|
display: "flex",
|
|
8439
8443
|
width: "100%",
|
|
@@ -8443,7 +8447,7 @@ var useStyles$M = createThemedStyles("SvgPreloader", {
|
|
|
8443
8447
|
var SvgPreloader = function(param) {
|
|
8444
8448
|
var _param_type = param.type, type = _param_type === void 0 ? "default" : _param_type, tweakStyles = param.tweakStyles;
|
|
8445
8449
|
var _theme_preloaders;
|
|
8446
|
-
var classes = useStyles$
|
|
8450
|
+
var classes = useStyles$N({
|
|
8447
8451
|
theme: tweakStyles
|
|
8448
8452
|
});
|
|
8449
8453
|
var theme = useContext(ThemeContext).theme;
|
|
@@ -8457,7 +8461,7 @@ var SvgPreloader = function(param) {
|
|
|
8457
8461
|
}
|
|
8458
8462
|
}) : /* @__PURE__ */ jsx(PreloaderIcon, {});
|
|
8459
8463
|
};
|
|
8460
|
-
var useStyles$
|
|
8464
|
+
var useStyles$M = createThemedStyles("ThemedPreloader", {
|
|
8461
8465
|
root: {
|
|
8462
8466
|
display: "flex"
|
|
8463
8467
|
},
|
|
@@ -8468,7 +8472,7 @@ var useStyles$L = createThemedStyles("ThemedPreloader", {
|
|
|
8468
8472
|
color: "currentColor"
|
|
8469
8473
|
}
|
|
8470
8474
|
});
|
|
8471
|
-
function _define_property$
|
|
8475
|
+
function _define_property$R(obj, key, value) {
|
|
8472
8476
|
if (key in obj) {
|
|
8473
8477
|
Object.defineProperty(obj, key, {
|
|
8474
8478
|
value,
|
|
@@ -8481,7 +8485,7 @@ function _define_property$Q(obj, key, value) {
|
|
|
8481
8485
|
}
|
|
8482
8486
|
return obj;
|
|
8483
8487
|
}
|
|
8484
|
-
function _object_spread$
|
|
8488
|
+
function _object_spread$Q(target) {
|
|
8485
8489
|
for (var i = 1; i < arguments.length; i++) {
|
|
8486
8490
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8487
8491
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8491,12 +8495,12 @@ function _object_spread$P(target) {
|
|
|
8491
8495
|
}));
|
|
8492
8496
|
}
|
|
8493
8497
|
ownKeys2.forEach(function(key) {
|
|
8494
|
-
_define_property$
|
|
8498
|
+
_define_property$R(target, key, source[key]);
|
|
8495
8499
|
});
|
|
8496
8500
|
}
|
|
8497
8501
|
return target;
|
|
8498
8502
|
}
|
|
8499
|
-
function ownKeys$
|
|
8503
|
+
function ownKeys$I(object, enumerableOnly) {
|
|
8500
8504
|
var keys2 = Object.keys(object);
|
|
8501
8505
|
if (Object.getOwnPropertySymbols) {
|
|
8502
8506
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8509,12 +8513,12 @@ function ownKeys$H(object, enumerableOnly) {
|
|
|
8509
8513
|
}
|
|
8510
8514
|
return keys2;
|
|
8511
8515
|
}
|
|
8512
|
-
function _object_spread_props$
|
|
8516
|
+
function _object_spread_props$I(target, source) {
|
|
8513
8517
|
source = source != null ? source : {};
|
|
8514
8518
|
if (Object.getOwnPropertyDescriptors) {
|
|
8515
8519
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8516
8520
|
} else {
|
|
8517
|
-
ownKeys$
|
|
8521
|
+
ownKeys$I(Object(source)).forEach(function(key) {
|
|
8518
8522
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8519
8523
|
});
|
|
8520
8524
|
}
|
|
@@ -8522,7 +8526,7 @@ function _object_spread_props$H(target, source) {
|
|
|
8522
8526
|
}
|
|
8523
8527
|
var ThemedPreloader = function(param) {
|
|
8524
8528
|
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;
|
|
8525
|
-
var classes = useStyles$
|
|
8529
|
+
var classes = useStyles$M({
|
|
8526
8530
|
theme: tweakStyles
|
|
8527
8531
|
});
|
|
8528
8532
|
var tweakDotsPreloaderStyles = useTweakStyles({
|
|
@@ -8535,8 +8539,8 @@ var ThemedPreloader = function(param) {
|
|
|
8535
8539
|
className: "tweakSvgPreloader",
|
|
8536
8540
|
currentComponentName: "ThemedPreloader"
|
|
8537
8541
|
});
|
|
8538
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8539
|
-
className: clsx(classes.root, classes[type], _define_property$
|
|
8542
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$I(_object_spread$Q({
|
|
8543
|
+
className: clsx(classes.root, classes[type], _define_property$R({}, classes.currentColor, useCurrentColor))
|
|
8540
8544
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
8541
8545
|
children: type === "dots" ? /* @__PURE__ */ jsx(DotsPreloader, {
|
|
8542
8546
|
tweakStyles: tweakDotsPreloaderStyles
|
|
@@ -8546,7 +8550,7 @@ var ThemedPreloader = function(param) {
|
|
|
8546
8550
|
})
|
|
8547
8551
|
}));
|
|
8548
8552
|
};
|
|
8549
|
-
var useStyles$
|
|
8553
|
+
var useStyles$L = createThemedStyles("Button", {
|
|
8550
8554
|
root: {
|
|
8551
8555
|
display: "flex",
|
|
8552
8556
|
justifyContent: "center",
|
|
@@ -8554,7 +8558,7 @@ var useStyles$K = createThemedStyles("Button", {
|
|
|
8554
8558
|
cursor: "pointer",
|
|
8555
8559
|
outline: "none",
|
|
8556
8560
|
boxSizing: "border-box",
|
|
8557
|
-
transition:
|
|
8561
|
+
transition: animations.defaultTransition,
|
|
8558
8562
|
transitionProperty: "background-color, color, box-shadow, border-color",
|
|
8559
8563
|
maxWidth: "100%",
|
|
8560
8564
|
border: [
|
|
@@ -8717,7 +8721,7 @@ var dotsPreloaderStyles = {
|
|
|
8717
8721
|
var getPreloaderStyles = function(size) {
|
|
8718
8722
|
return size === "s" || size === "m" ? dotsPreloaderStyles : void 0;
|
|
8719
8723
|
};
|
|
8720
|
-
function _define_property$
|
|
8724
|
+
function _define_property$Q(obj, key, value) {
|
|
8721
8725
|
if (key in obj) {
|
|
8722
8726
|
Object.defineProperty(obj, key, {
|
|
8723
8727
|
value,
|
|
@@ -8730,7 +8734,7 @@ function _define_property$P(obj, key, value) {
|
|
|
8730
8734
|
}
|
|
8731
8735
|
return obj;
|
|
8732
8736
|
}
|
|
8733
|
-
function _object_spread$
|
|
8737
|
+
function _object_spread$P(target) {
|
|
8734
8738
|
for (var i = 1; i < arguments.length; i++) {
|
|
8735
8739
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8736
8740
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8740,12 +8744,12 @@ function _object_spread$O(target) {
|
|
|
8740
8744
|
}));
|
|
8741
8745
|
}
|
|
8742
8746
|
ownKeys2.forEach(function(key) {
|
|
8743
|
-
_define_property$
|
|
8747
|
+
_define_property$Q(target, key, source[key]);
|
|
8744
8748
|
});
|
|
8745
8749
|
}
|
|
8746
8750
|
return target;
|
|
8747
8751
|
}
|
|
8748
|
-
function ownKeys$
|
|
8752
|
+
function ownKeys$H(object, enumerableOnly) {
|
|
8749
8753
|
var keys2 = Object.keys(object);
|
|
8750
8754
|
if (Object.getOwnPropertySymbols) {
|
|
8751
8755
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8758,12 +8762,12 @@ function ownKeys$G(object, enumerableOnly) {
|
|
|
8758
8762
|
}
|
|
8759
8763
|
return keys2;
|
|
8760
8764
|
}
|
|
8761
|
-
function _object_spread_props$
|
|
8765
|
+
function _object_spread_props$H(target, source) {
|
|
8762
8766
|
source = source != null ? source : {};
|
|
8763
8767
|
if (Object.getOwnPropertyDescriptors) {
|
|
8764
8768
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8765
8769
|
} else {
|
|
8766
|
-
ownKeys$
|
|
8770
|
+
ownKeys$H(Object(source)).forEach(function(key) {
|
|
8767
8771
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8768
8772
|
});
|
|
8769
8773
|
}
|
|
@@ -8771,7 +8775,7 @@ function _object_spread_props$G(target, source) {
|
|
|
8771
8775
|
}
|
|
8772
8776
|
var Button = /* @__PURE__ */ forwardRef(function(param, ref) {
|
|
8773
8777
|
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;
|
|
8774
|
-
var classes = useStyles$
|
|
8778
|
+
var classes = useStyles$L({
|
|
8775
8779
|
theme: tweakStyles
|
|
8776
8780
|
});
|
|
8777
8781
|
var tweakPreloaderStyles = useTweakStyles({
|
|
@@ -8784,10 +8788,10 @@ var Button = /* @__PURE__ */ forwardRef(function(param, ref) {
|
|
|
8784
8788
|
var hasChildren = isReactNodeNotEmpty(children);
|
|
8785
8789
|
var hasNoAction = isDisabled || isLoading;
|
|
8786
8790
|
var _obj, _obj1;
|
|
8787
|
-
return /* @__PURE__ */ jsxs("button", _object_spread_props$
|
|
8791
|
+
return /* @__PURE__ */ jsxs("button", _object_spread_props$H(_object_spread$P({
|
|
8788
8792
|
ref,
|
|
8789
8793
|
type,
|
|
8790
|
-
className: clsx(classes.root, classes[size], classes[view], (_obj = {}, _define_property$
|
|
8794
|
+
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)),
|
|
8791
8795
|
tabIndex: shouldSkipTabNavigation ? -1 : void 0,
|
|
8792
8796
|
disabled: hasNoAction,
|
|
8793
8797
|
onClick: !hasNoAction ? onClick : void 0,
|
|
@@ -8795,7 +8799,7 @@ var Button = /* @__PURE__ */ forwardRef(function(param, ref) {
|
|
|
8795
8799
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
8796
8800
|
children: [
|
|
8797
8801
|
/* @__PURE__ */ jsxs("span", {
|
|
8798
|
-
className: clsx(classes.content, (_obj1 = {}, _define_property$
|
|
8802
|
+
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)),
|
|
8799
8803
|
children: [
|
|
8800
8804
|
hasIcon && /* @__PURE__ */ jsx("span", {
|
|
8801
8805
|
className: classes.icon,
|
|
@@ -8818,7 +8822,7 @@ var Button = /* @__PURE__ */ forwardRef(function(param, ref) {
|
|
|
8818
8822
|
]
|
|
8819
8823
|
}));
|
|
8820
8824
|
});
|
|
8821
|
-
var useStyles$
|
|
8825
|
+
var useStyles$K = createThemedStyles("Checkbox", {
|
|
8822
8826
|
root: {
|
|
8823
8827
|
cursor: "pointer",
|
|
8824
8828
|
display: "flex",
|
|
@@ -8866,7 +8870,7 @@ function _array_with_holes$o(arr) {
|
|
|
8866
8870
|
if (Array.isArray(arr))
|
|
8867
8871
|
return arr;
|
|
8868
8872
|
}
|
|
8869
|
-
function _define_property$
|
|
8873
|
+
function _define_property$P(obj, key, value) {
|
|
8870
8874
|
if (key in obj) {
|
|
8871
8875
|
Object.defineProperty(obj, key, {
|
|
8872
8876
|
value,
|
|
@@ -8910,7 +8914,7 @@ function _iterable_to_array_limit$o(arr, i) {
|
|
|
8910
8914
|
function _non_iterable_rest$o() {
|
|
8911
8915
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8912
8916
|
}
|
|
8913
|
-
function _object_spread$
|
|
8917
|
+
function _object_spread$O(target) {
|
|
8914
8918
|
for (var i = 1; i < arguments.length; i++) {
|
|
8915
8919
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8916
8920
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8920,12 +8924,12 @@ function _object_spread$N(target) {
|
|
|
8920
8924
|
}));
|
|
8921
8925
|
}
|
|
8922
8926
|
ownKeys2.forEach(function(key) {
|
|
8923
|
-
_define_property$
|
|
8927
|
+
_define_property$P(target, key, source[key]);
|
|
8924
8928
|
});
|
|
8925
8929
|
}
|
|
8926
8930
|
return target;
|
|
8927
8931
|
}
|
|
8928
|
-
function ownKeys$
|
|
8932
|
+
function ownKeys$G(object, enumerableOnly) {
|
|
8929
8933
|
var keys2 = Object.keys(object);
|
|
8930
8934
|
if (Object.getOwnPropertySymbols) {
|
|
8931
8935
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8938,12 +8942,12 @@ function ownKeys$F(object, enumerableOnly) {
|
|
|
8938
8942
|
}
|
|
8939
8943
|
return keys2;
|
|
8940
8944
|
}
|
|
8941
|
-
function _object_spread_props$
|
|
8945
|
+
function _object_spread_props$G(target, source) {
|
|
8942
8946
|
source = source != null ? source : {};
|
|
8943
8947
|
if (Object.getOwnPropertyDescriptors) {
|
|
8944
8948
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8945
8949
|
} else {
|
|
8946
|
-
ownKeys$
|
|
8950
|
+
ownKeys$G(Object(source)).forEach(function(key) {
|
|
8947
8951
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8948
8952
|
});
|
|
8949
8953
|
}
|
|
@@ -8967,7 +8971,7 @@ function _unsupported_iterable_to_array$o(o, minLen) {
|
|
|
8967
8971
|
}
|
|
8968
8972
|
function Checkbox(param) {
|
|
8969
8973
|
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;
|
|
8970
|
-
var classes = useStyles$
|
|
8974
|
+
var classes = useStyles$K({
|
|
8971
8975
|
theme: tweakStyles
|
|
8972
8976
|
});
|
|
8973
8977
|
var _useState = _sliced_to_array$o(useState(false), 2), isSelected = _useState[0], setIsSelected = _useState[1];
|
|
@@ -8986,11 +8990,11 @@ function Checkbox(param) {
|
|
|
8986
8990
|
isChecked
|
|
8987
8991
|
]);
|
|
8988
8992
|
var _obj;
|
|
8989
|
-
return /* @__PURE__ */ jsxs("label", _object_spread_props$
|
|
8990
|
-
className: clsx(classes.root, (_obj = {}, _define_property$
|
|
8993
|
+
return /* @__PURE__ */ jsxs("label", _object_spread_props$G(_object_spread$O({
|
|
8994
|
+
className: clsx(classes.root, (_obj = {}, _define_property$P(_obj, classes.disabled, isDisabled), _define_property$P(_obj, classes.labelPositionLeft, labelPosition === "left"), _obj))
|
|
8991
8995
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
8992
8996
|
children: [
|
|
8993
|
-
/* @__PURE__ */ jsx("input", _object_spread$
|
|
8997
|
+
/* @__PURE__ */ jsx("input", _object_spread$O({
|
|
8994
8998
|
type: "checkbox",
|
|
8995
8999
|
className: classes.input,
|
|
8996
9000
|
checked: isSelected,
|
|
@@ -9013,7 +9017,7 @@ function Checkbox(param) {
|
|
|
9013
9017
|
]
|
|
9014
9018
|
}));
|
|
9015
9019
|
}
|
|
9016
|
-
var useStyles$
|
|
9020
|
+
var useStyles$J = createThemedStyles("CloseButton", {
|
|
9017
9021
|
root: {
|
|
9018
9022
|
width: 40,
|
|
9019
9023
|
height: 40,
|
|
@@ -9026,7 +9030,8 @@ var useStyles$I = createThemedStyles("CloseButton", {
|
|
|
9026
9030
|
appearance: "none",
|
|
9027
9031
|
backgroundColor: "transparent",
|
|
9028
9032
|
cursor: "pointer",
|
|
9029
|
-
transition:
|
|
9033
|
+
transition: animations.defaultTransition,
|
|
9034
|
+
transitionProperty: "background-color",
|
|
9030
9035
|
"&:hover": {
|
|
9031
9036
|
backgroundColor: rgba(colors.BORDER_MAIN, 0.5)
|
|
9032
9037
|
},
|
|
@@ -9038,7 +9043,7 @@ var useStyles$I = createThemedStyles("CloseButton", {
|
|
|
9038
9043
|
}
|
|
9039
9044
|
}
|
|
9040
9045
|
});
|
|
9041
|
-
function _define_property$
|
|
9046
|
+
function _define_property$O(obj, key, value) {
|
|
9042
9047
|
if (key in obj) {
|
|
9043
9048
|
Object.defineProperty(obj, key, {
|
|
9044
9049
|
value,
|
|
@@ -9051,7 +9056,7 @@ function _define_property$N(obj, key, value) {
|
|
|
9051
9056
|
}
|
|
9052
9057
|
return obj;
|
|
9053
9058
|
}
|
|
9054
|
-
function _object_spread$
|
|
9059
|
+
function _object_spread$N(target) {
|
|
9055
9060
|
for (var i = 1; i < arguments.length; i++) {
|
|
9056
9061
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9057
9062
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9061,12 +9066,12 @@ function _object_spread$M(target) {
|
|
|
9061
9066
|
}));
|
|
9062
9067
|
}
|
|
9063
9068
|
ownKeys2.forEach(function(key) {
|
|
9064
|
-
_define_property$
|
|
9069
|
+
_define_property$O(target, key, source[key]);
|
|
9065
9070
|
});
|
|
9066
9071
|
}
|
|
9067
9072
|
return target;
|
|
9068
9073
|
}
|
|
9069
|
-
function ownKeys$
|
|
9074
|
+
function ownKeys$F(object, enumerableOnly) {
|
|
9070
9075
|
var keys2 = Object.keys(object);
|
|
9071
9076
|
if (Object.getOwnPropertySymbols) {
|
|
9072
9077
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9079,12 +9084,12 @@ function ownKeys$E(object, enumerableOnly) {
|
|
|
9079
9084
|
}
|
|
9080
9085
|
return keys2;
|
|
9081
9086
|
}
|
|
9082
|
-
function _object_spread_props$
|
|
9087
|
+
function _object_spread_props$F(target, source) {
|
|
9083
9088
|
source = source != null ? source : {};
|
|
9084
9089
|
if (Object.getOwnPropertyDescriptors) {
|
|
9085
9090
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9086
9091
|
} else {
|
|
9087
|
-
ownKeys$
|
|
9092
|
+
ownKeys$F(Object(source)).forEach(function(key) {
|
|
9088
9093
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9089
9094
|
});
|
|
9090
9095
|
}
|
|
@@ -9092,10 +9097,10 @@ function _object_spread_props$E(target, source) {
|
|
|
9092
9097
|
}
|
|
9093
9098
|
var CloseButton = function(param) {
|
|
9094
9099
|
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;
|
|
9095
|
-
var classes = useStyles$
|
|
9100
|
+
var classes = useStyles$J({
|
|
9096
9101
|
theme: tweakStyles
|
|
9097
9102
|
});
|
|
9098
|
-
return /* @__PURE__ */ jsx("button", _object_spread_props$
|
|
9103
|
+
return /* @__PURE__ */ jsx("button", _object_spread_props$F(_object_spread$N({
|
|
9099
9104
|
type: "button",
|
|
9100
9105
|
className: classes.root,
|
|
9101
9106
|
onClick: onClose
|
|
@@ -9105,7 +9110,7 @@ var CloseButton = function(param) {
|
|
|
9105
9110
|
})
|
|
9106
9111
|
}));
|
|
9107
9112
|
};
|
|
9108
|
-
var useStyles$
|
|
9113
|
+
var useStyles$I = createThemedStyles({
|
|
9109
9114
|
root: {
|
|
9110
9115
|
display: "flex",
|
|
9111
9116
|
flexWrap: "wrap"
|
|
@@ -9198,7 +9203,7 @@ function _unsupported_iterable_to_array$n(o, minLen) {
|
|
|
9198
9203
|
return _array_like_to_array$n(o, minLen);
|
|
9199
9204
|
}
|
|
9200
9205
|
var Colors = function() {
|
|
9201
|
-
var classes = useStyles$
|
|
9206
|
+
var classes = useStyles$I();
|
|
9202
9207
|
var theme = useContext(ThemeContext).theme;
|
|
9203
9208
|
var _theme_colors = theme.colors, colors2 = _theme_colors === void 0 ? {} : _theme_colors;
|
|
9204
9209
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -9228,7 +9233,7 @@ var Colors = function() {
|
|
|
9228
9233
|
})
|
|
9229
9234
|
});
|
|
9230
9235
|
};
|
|
9231
|
-
var useStyles$
|
|
9236
|
+
var useStyles$H = createThemedStyles("CssBaseline", {
|
|
9232
9237
|
"@global html, body": {
|
|
9233
9238
|
fontFamily: "Arial, sans-serif",
|
|
9234
9239
|
color: colors.FONT_MAIN,
|
|
@@ -9237,7 +9242,7 @@ var useStyles$G = createThemedStyles("CssBaseline", {
|
|
|
9237
9242
|
},
|
|
9238
9243
|
root: {}
|
|
9239
9244
|
});
|
|
9240
|
-
function _define_property$
|
|
9245
|
+
function _define_property$N(obj, key, value) {
|
|
9241
9246
|
if (key in obj) {
|
|
9242
9247
|
Object.defineProperty(obj, key, {
|
|
9243
9248
|
value,
|
|
@@ -9250,7 +9255,7 @@ function _define_property$M(obj, key, value) {
|
|
|
9250
9255
|
}
|
|
9251
9256
|
return obj;
|
|
9252
9257
|
}
|
|
9253
|
-
function _object_spread$
|
|
9258
|
+
function _object_spread$M(target) {
|
|
9254
9259
|
for (var i = 1; i < arguments.length; i++) {
|
|
9255
9260
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9256
9261
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9260,24 +9265,24 @@ function _object_spread$L(target) {
|
|
|
9260
9265
|
}));
|
|
9261
9266
|
}
|
|
9262
9267
|
ownKeys2.forEach(function(key) {
|
|
9263
|
-
_define_property$
|
|
9268
|
+
_define_property$N(target, key, source[key]);
|
|
9264
9269
|
});
|
|
9265
9270
|
}
|
|
9266
9271
|
return target;
|
|
9267
9272
|
}
|
|
9268
9273
|
var CssBaseline = function(param) {
|
|
9269
9274
|
var data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
9270
|
-
var classes = useStyles$
|
|
9275
|
+
var classes = useStyles$H({
|
|
9271
9276
|
theme: tweakStyles
|
|
9272
9277
|
});
|
|
9273
|
-
return /* @__PURE__ */ jsx("div", _object_spread$
|
|
9278
|
+
return /* @__PURE__ */ jsx("div", _object_spread$M({
|
|
9274
9279
|
className: classes.root
|
|
9275
9280
|
}, addDataTestId(testId), addDataAttributes(data)));
|
|
9276
9281
|
};
|
|
9277
9282
|
var DEFAULT_SIZE = 6;
|
|
9278
9283
|
var PADDING_X$1 = 12;
|
|
9279
9284
|
var AUTOSIZE_MAX_WIDTH = 480;
|
|
9280
|
-
var useStyles$
|
|
9285
|
+
var useStyles$G = createThemedStyles("Input", {
|
|
9281
9286
|
root: {
|
|
9282
9287
|
width: "100%",
|
|
9283
9288
|
boxSizing: "border-box",
|
|
@@ -9288,7 +9293,7 @@ var useStyles$F = createThemedStyles("Input", {
|
|
|
9288
9293
|
width: "100%",
|
|
9289
9294
|
height: dimensions.CONTROL_HEIGHT,
|
|
9290
9295
|
boxSizing: "border-box",
|
|
9291
|
-
transition:
|
|
9296
|
+
transition: animations.defaultTransition,
|
|
9292
9297
|
transitionProperty: "border-color",
|
|
9293
9298
|
backgroundColor: "white",
|
|
9294
9299
|
position: "relative"
|
|
@@ -9308,7 +9313,7 @@ var useStyles$F = createThemedStyles("Input", {
|
|
|
9308
9313
|
outline: "none",
|
|
9309
9314
|
boxSizing: "border-box",
|
|
9310
9315
|
outlineStyle: "none",
|
|
9311
|
-
transition:
|
|
9316
|
+
transition: animations.defaultTransition,
|
|
9312
9317
|
transitionProperty: "background-color",
|
|
9313
9318
|
border: "none",
|
|
9314
9319
|
background: "none",
|
|
@@ -9394,7 +9399,7 @@ var useStyles$F = createThemedStyles("Input", {
|
|
|
9394
9399
|
top: "50%",
|
|
9395
9400
|
transformOrigin: "top left",
|
|
9396
9401
|
transform: "translateY(-50%)",
|
|
9397
|
-
transition:
|
|
9402
|
+
transition: animations.defaultTransition,
|
|
9398
9403
|
transitionProperty: "transform, color",
|
|
9399
9404
|
fontSize: 16
|
|
9400
9405
|
},
|
|
@@ -9503,7 +9508,8 @@ var useStyles$F = createThemedStyles("Input", {
|
|
|
9503
9508
|
4
|
|
9504
9509
|
],
|
|
9505
9510
|
width: 20,
|
|
9506
|
-
transition:
|
|
9511
|
+
transition: animations.defaultTransition,
|
|
9512
|
+
transitionProperty: "color",
|
|
9507
9513
|
boxSizing: "content-box",
|
|
9508
9514
|
"&:last-child": {
|
|
9509
9515
|
paddingRight: 8
|
|
@@ -9590,7 +9596,7 @@ function _async_to_generator$5(fn3) {
|
|
|
9590
9596
|
});
|
|
9591
9597
|
};
|
|
9592
9598
|
}
|
|
9593
|
-
function _define_property$
|
|
9599
|
+
function _define_property$M(obj, key, value) {
|
|
9594
9600
|
if (key in obj) {
|
|
9595
9601
|
Object.defineProperty(obj, key, {
|
|
9596
9602
|
value,
|
|
@@ -9634,7 +9640,7 @@ function _iterable_to_array_limit$m(arr, i) {
|
|
|
9634
9640
|
function _non_iterable_rest$m() {
|
|
9635
9641
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9636
9642
|
}
|
|
9637
|
-
function _object_spread$
|
|
9643
|
+
function _object_spread$L(target) {
|
|
9638
9644
|
for (var i = 1; i < arguments.length; i++) {
|
|
9639
9645
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9640
9646
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9644,12 +9650,12 @@ function _object_spread$K(target) {
|
|
|
9644
9650
|
}));
|
|
9645
9651
|
}
|
|
9646
9652
|
ownKeys2.forEach(function(key) {
|
|
9647
|
-
_define_property$
|
|
9653
|
+
_define_property$M(target, key, source[key]);
|
|
9648
9654
|
});
|
|
9649
9655
|
}
|
|
9650
9656
|
return target;
|
|
9651
9657
|
}
|
|
9652
|
-
function ownKeys$
|
|
9658
|
+
function ownKeys$E(object, enumerableOnly) {
|
|
9653
9659
|
var keys2 = Object.keys(object);
|
|
9654
9660
|
if (Object.getOwnPropertySymbols) {
|
|
9655
9661
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9662,21 +9668,21 @@ function ownKeys$D(object, enumerableOnly) {
|
|
|
9662
9668
|
}
|
|
9663
9669
|
return keys2;
|
|
9664
9670
|
}
|
|
9665
|
-
function _object_spread_props$
|
|
9671
|
+
function _object_spread_props$E(target, source) {
|
|
9666
9672
|
source = source != null ? source : {};
|
|
9667
9673
|
if (Object.getOwnPropertyDescriptors) {
|
|
9668
9674
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9669
9675
|
} else {
|
|
9670
|
-
ownKeys$
|
|
9676
|
+
ownKeys$E(Object(source)).forEach(function(key) {
|
|
9671
9677
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9672
9678
|
});
|
|
9673
9679
|
}
|
|
9674
9680
|
return target;
|
|
9675
9681
|
}
|
|
9676
|
-
function _object_without_properties$
|
|
9682
|
+
function _object_without_properties$e(source, excluded) {
|
|
9677
9683
|
if (source == null)
|
|
9678
9684
|
return {};
|
|
9679
|
-
var target = _object_without_properties_loose$
|
|
9685
|
+
var target = _object_without_properties_loose$e(source, excluded);
|
|
9680
9686
|
var key, i;
|
|
9681
9687
|
if (Object.getOwnPropertySymbols) {
|
|
9682
9688
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -9691,7 +9697,7 @@ function _object_without_properties$d(source, excluded) {
|
|
|
9691
9697
|
}
|
|
9692
9698
|
return target;
|
|
9693
9699
|
}
|
|
9694
|
-
function _object_without_properties_loose$
|
|
9700
|
+
function _object_without_properties_loose$e(source, excluded) {
|
|
9695
9701
|
if (source == null)
|
|
9696
9702
|
return {};
|
|
9697
9703
|
var target = {};
|
|
@@ -9824,7 +9830,7 @@ function _ts_generator$5(thisArg, body) {
|
|
|
9824
9830
|
}
|
|
9825
9831
|
}
|
|
9826
9832
|
var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
9827
|
-
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$
|
|
9833
|
+
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, [
|
|
9828
9834
|
"value",
|
|
9829
9835
|
"label",
|
|
9830
9836
|
"placeholder",
|
|
@@ -9861,7 +9867,7 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
9861
9867
|
"shouldAlwaysShowPlaceholder",
|
|
9862
9868
|
"beforeMaskedStateChange"
|
|
9863
9869
|
]);
|
|
9864
|
-
var classes = useStyles$
|
|
9870
|
+
var classes = useStyles$G({
|
|
9865
9871
|
theme: tweakStyles
|
|
9866
9872
|
});
|
|
9867
9873
|
var tweakPreloaderStyles = useTweakStyles({
|
|
@@ -9915,8 +9921,8 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
9915
9921
|
var hasPlaceholder = (!hasLabel || hasFocus && !isReadonly || shouldAlwaysShowPlaceholder) && isStringNotEmpty(placeholder);
|
|
9916
9922
|
var shouldShowUnits = (hasValue || isFocused && !hasPlaceholder) && hasUnits;
|
|
9917
9923
|
var _obj;
|
|
9918
|
-
var props = _object_spread_props$
|
|
9919
|
-
className: clsx(classes.input, (_obj = {}, _define_property$
|
|
9924
|
+
var props = _object_spread_props$E(_object_spread$L({}, inputProps, addDataTestId(testId)), {
|
|
9925
|
+
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)),
|
|
9920
9926
|
onFocus: handleFocus,
|
|
9921
9927
|
onBlur: handleBlur,
|
|
9922
9928
|
onChange: handleChange,
|
|
@@ -9932,14 +9938,14 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
9932
9938
|
return /* @__PURE__ */ jsxs("div", {
|
|
9933
9939
|
className: classes.root,
|
|
9934
9940
|
children: [
|
|
9935
|
-
/* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
9936
|
-
className: clsx(classes.inputWrapper, (_obj1 = {}, _define_property$
|
|
9941
|
+
/* @__PURE__ */ jsxs("div", _object_spread_props$E(_object_spread$L({
|
|
9942
|
+
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)]),
|
|
9937
9943
|
"data-value": isAutoSizeable ? value : void 0
|
|
9938
9944
|
}, addDataAttributes(data)), {
|
|
9939
9945
|
children: [
|
|
9940
|
-
mask === void 0 ? /* @__PURE__ */ jsx("input", _object_spread$
|
|
9946
|
+
mask === void 0 ? /* @__PURE__ */ jsx("input", _object_spread$L({
|
|
9941
9947
|
ref: ref !== null && ref !== void 0 ? ref : inputRef
|
|
9942
|
-
}, props)) : /* @__PURE__ */ jsx(InputMask, _object_spread$
|
|
9948
|
+
}, props)) : /* @__PURE__ */ jsx(InputMask, _object_spread$L({
|
|
9943
9949
|
ref: ref !== null && ref !== void 0 ? ref : inputRef,
|
|
9944
9950
|
mask,
|
|
9945
9951
|
maskPlaceholder,
|
|
@@ -9947,12 +9953,12 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
9947
9953
|
beforeMaskedStateChange
|
|
9948
9954
|
}, props)),
|
|
9949
9955
|
hasLabel && /* @__PURE__ */ jsx("span", {
|
|
9950
|
-
className: clsx(classes.label, (_obj2 = {}, _define_property$
|
|
9951
|
-
_define_property$
|
|
9956
|
+
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), // Обсуждаемо, сделал так, потому что не хочется создавать новую пропсу, на каждый чих в стилях
|
|
9957
|
+
_define_property$M(_obj2, classes.floatingWithoutPadding, hasFloatingLabel && border === "bottom"), _obj2)),
|
|
9952
9958
|
children: label
|
|
9953
9959
|
}),
|
|
9954
9960
|
shouldShowUnits && /* @__PURE__ */ jsxs("div", {
|
|
9955
|
-
className: clsx(classes.unitsWrapper, _define_property$
|
|
9961
|
+
className: clsx(classes.unitsWrapper, _define_property$M({}, classes.withFloatingLabel, hasFloatingLabel && hasLabel)),
|
|
9956
9962
|
children: [
|
|
9957
9963
|
/* @__PURE__ */ jsx("span", {
|
|
9958
9964
|
className: classes.fakeValue,
|
|
@@ -9984,7 +9990,7 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
9984
9990
|
})
|
|
9985
9991
|
}),
|
|
9986
9992
|
isReactNodeNotEmpty(iconType) && /* @__PURE__ */ jsx("div", {
|
|
9987
|
-
className: clsx(classes.inputIcon, _define_property$
|
|
9993
|
+
className: clsx(classes.inputIcon, _define_property$M({}, classes.activeIcon, !isDisabled && onIconClick !== void 0)),
|
|
9988
9994
|
onClick: !isDisabled ? onIconClick : void 0,
|
|
9989
9995
|
children: renderIcon(iconType)
|
|
9990
9996
|
})
|
|
@@ -10005,7 +10011,7 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10005
10011
|
});
|
|
10006
10012
|
var EMPTY_DATE_INPUT_VALUE = "__.__.____";
|
|
10007
10013
|
var EMPTY_DATE_RANGE_INPUT_VALUE = "".concat(EMPTY_DATE_INPUT_VALUE, " - ").concat(EMPTY_DATE_INPUT_VALUE);
|
|
10008
|
-
var useStyles$
|
|
10014
|
+
var useStyles$F = createThemedStyles("DateInput", {
|
|
10009
10015
|
root: {
|
|
10010
10016
|
width: "100%",
|
|
10011
10017
|
height: "100%",
|
|
@@ -10013,7 +10019,7 @@ var useStyles$E = createThemedStyles("DateInput", {
|
|
|
10013
10019
|
position: "relative"
|
|
10014
10020
|
}
|
|
10015
10021
|
});
|
|
10016
|
-
function _define_property$
|
|
10022
|
+
function _define_property$L(obj, key, value) {
|
|
10017
10023
|
if (key in obj) {
|
|
10018
10024
|
Object.defineProperty(obj, key, {
|
|
10019
10025
|
value,
|
|
@@ -10026,7 +10032,7 @@ function _define_property$K(obj, key, value) {
|
|
|
10026
10032
|
}
|
|
10027
10033
|
return obj;
|
|
10028
10034
|
}
|
|
10029
|
-
function _object_spread$
|
|
10035
|
+
function _object_spread$K(target) {
|
|
10030
10036
|
for (var i = 1; i < arguments.length; i++) {
|
|
10031
10037
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10032
10038
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10036,12 +10042,12 @@ function _object_spread$J(target) {
|
|
|
10036
10042
|
}));
|
|
10037
10043
|
}
|
|
10038
10044
|
ownKeys2.forEach(function(key) {
|
|
10039
|
-
_define_property$
|
|
10045
|
+
_define_property$L(target, key, source[key]);
|
|
10040
10046
|
});
|
|
10041
10047
|
}
|
|
10042
10048
|
return target;
|
|
10043
10049
|
}
|
|
10044
|
-
function ownKeys$
|
|
10050
|
+
function ownKeys$D(object, enumerableOnly) {
|
|
10045
10051
|
var keys2 = Object.keys(object);
|
|
10046
10052
|
if (Object.getOwnPropertySymbols) {
|
|
10047
10053
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10054,21 +10060,21 @@ function ownKeys$C(object, enumerableOnly) {
|
|
|
10054
10060
|
}
|
|
10055
10061
|
return keys2;
|
|
10056
10062
|
}
|
|
10057
|
-
function _object_spread_props$
|
|
10063
|
+
function _object_spread_props$D(target, source) {
|
|
10058
10064
|
source = source != null ? source : {};
|
|
10059
10065
|
if (Object.getOwnPropertyDescriptors) {
|
|
10060
10066
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10061
10067
|
} else {
|
|
10062
|
-
ownKeys$
|
|
10068
|
+
ownKeys$D(Object(source)).forEach(function(key) {
|
|
10063
10069
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10064
10070
|
});
|
|
10065
10071
|
}
|
|
10066
10072
|
return target;
|
|
10067
10073
|
}
|
|
10068
|
-
function _object_without_properties$
|
|
10074
|
+
function _object_without_properties$d(source, excluded) {
|
|
10069
10075
|
if (source == null)
|
|
10070
10076
|
return {};
|
|
10071
|
-
var target = _object_without_properties_loose$
|
|
10077
|
+
var target = _object_without_properties_loose$d(source, excluded);
|
|
10072
10078
|
var key, i;
|
|
10073
10079
|
if (Object.getOwnPropertySymbols) {
|
|
10074
10080
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10083,7 +10089,7 @@ function _object_without_properties$c(source, excluded) {
|
|
|
10083
10089
|
}
|
|
10084
10090
|
return target;
|
|
10085
10091
|
}
|
|
10086
|
-
function _object_without_properties_loose$
|
|
10092
|
+
function _object_without_properties_loose$d(source, excluded) {
|
|
10087
10093
|
if (source == null)
|
|
10088
10094
|
return {};
|
|
10089
10095
|
var target = {};
|
|
@@ -10098,7 +10104,7 @@ function _object_without_properties_loose$c(source, excluded) {
|
|
|
10098
10104
|
return target;
|
|
10099
10105
|
}
|
|
10100
10106
|
var DateInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
10101
|
-
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$
|
|
10107
|
+
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, [
|
|
10102
10108
|
"date",
|
|
10103
10109
|
"startDate",
|
|
10104
10110
|
"endDate",
|
|
@@ -10111,7 +10117,7 @@ var DateInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10111
10117
|
"onClick",
|
|
10112
10118
|
"onChange"
|
|
10113
10119
|
]);
|
|
10114
|
-
var classes = useStyles$
|
|
10120
|
+
var classes = useStyles$F({
|
|
10115
10121
|
theme: tweakStyles
|
|
10116
10122
|
});
|
|
10117
10123
|
var tweakInputStyles = useTweakStyles({
|
|
@@ -10138,11 +10144,11 @@ var DateInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10138
10144
|
}
|
|
10139
10145
|
onChange === null || onChange === void 0 ? void 0 : onChange(event, value);
|
|
10140
10146
|
};
|
|
10141
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
10147
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$D(_object_spread$K({
|
|
10142
10148
|
className: clsx(classes.root, className),
|
|
10143
10149
|
onClick
|
|
10144
10150
|
}, addDataAttributes(data)), {
|
|
10145
|
-
children: /* @__PURE__ */ jsx(Input, _object_spread_props$
|
|
10151
|
+
children: /* @__PURE__ */ jsx(Input, _object_spread_props$D(_object_spread$K({}, inputProps), {
|
|
10146
10152
|
ref,
|
|
10147
10153
|
value: isRange ? "".concat(startDate).concat(endDate) : date,
|
|
10148
10154
|
mask: mask !== null && mask !== void 0 ? mask : isRange ? "99.99.9999 - 99.99.9999" : "99.99.9999",
|
|
@@ -10155,7 +10161,7 @@ var DateInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10155
10161
|
});
|
|
10156
10162
|
const reactDatepicker = "";
|
|
10157
10163
|
var LEFT_PADDING = 44;
|
|
10158
|
-
var useStyles$
|
|
10164
|
+
var useStyles$E = createThemedStyles("SearchInput", {
|
|
10159
10165
|
root: {
|
|
10160
10166
|
position: "relative"
|
|
10161
10167
|
},
|
|
@@ -10192,7 +10198,7 @@ var inputStyles$4 = {
|
|
|
10192
10198
|
fontSize: 14
|
|
10193
10199
|
}
|
|
10194
10200
|
};
|
|
10195
|
-
function _define_property$
|
|
10201
|
+
function _define_property$K(obj, key, value) {
|
|
10196
10202
|
if (key in obj) {
|
|
10197
10203
|
Object.defineProperty(obj, key, {
|
|
10198
10204
|
value,
|
|
@@ -10205,7 +10211,7 @@ function _define_property$J(obj, key, value) {
|
|
|
10205
10211
|
}
|
|
10206
10212
|
return obj;
|
|
10207
10213
|
}
|
|
10208
|
-
function _object_spread$
|
|
10214
|
+
function _object_spread$J(target) {
|
|
10209
10215
|
for (var i = 1; i < arguments.length; i++) {
|
|
10210
10216
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10211
10217
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10215,12 +10221,12 @@ function _object_spread$I(target) {
|
|
|
10215
10221
|
}));
|
|
10216
10222
|
}
|
|
10217
10223
|
ownKeys2.forEach(function(key) {
|
|
10218
|
-
_define_property$
|
|
10224
|
+
_define_property$K(target, key, source[key]);
|
|
10219
10225
|
});
|
|
10220
10226
|
}
|
|
10221
10227
|
return target;
|
|
10222
10228
|
}
|
|
10223
|
-
function ownKeys$
|
|
10229
|
+
function ownKeys$C(object, enumerableOnly) {
|
|
10224
10230
|
var keys2 = Object.keys(object);
|
|
10225
10231
|
if (Object.getOwnPropertySymbols) {
|
|
10226
10232
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10233,21 +10239,21 @@ function ownKeys$B(object, enumerableOnly) {
|
|
|
10233
10239
|
}
|
|
10234
10240
|
return keys2;
|
|
10235
10241
|
}
|
|
10236
|
-
function _object_spread_props$
|
|
10242
|
+
function _object_spread_props$C(target, source) {
|
|
10237
10243
|
source = source != null ? source : {};
|
|
10238
10244
|
if (Object.getOwnPropertyDescriptors) {
|
|
10239
10245
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10240
10246
|
} else {
|
|
10241
|
-
ownKeys$
|
|
10247
|
+
ownKeys$C(Object(source)).forEach(function(key) {
|
|
10242
10248
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10243
10249
|
});
|
|
10244
10250
|
}
|
|
10245
10251
|
return target;
|
|
10246
10252
|
}
|
|
10247
|
-
function _object_without_properties$
|
|
10253
|
+
function _object_without_properties$c(source, excluded) {
|
|
10248
10254
|
if (source == null)
|
|
10249
10255
|
return {};
|
|
10250
|
-
var target = _object_without_properties_loose$
|
|
10256
|
+
var target = _object_without_properties_loose$c(source, excluded);
|
|
10251
10257
|
var key, i;
|
|
10252
10258
|
if (Object.getOwnPropertySymbols) {
|
|
10253
10259
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10262,7 +10268,7 @@ function _object_without_properties$b(source, excluded) {
|
|
|
10262
10268
|
}
|
|
10263
10269
|
return target;
|
|
10264
10270
|
}
|
|
10265
|
-
function _object_without_properties_loose$
|
|
10271
|
+
function _object_without_properties_loose$c(source, excluded) {
|
|
10266
10272
|
if (source == null)
|
|
10267
10273
|
return {};
|
|
10268
10274
|
var target = {};
|
|
@@ -10277,13 +10283,13 @@ function _object_without_properties_loose$b(source, excluded) {
|
|
|
10277
10283
|
return target;
|
|
10278
10284
|
}
|
|
10279
10285
|
var SearchInput = function(_param) {
|
|
10280
|
-
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$
|
|
10286
|
+
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, [
|
|
10281
10287
|
"isClearable",
|
|
10282
10288
|
"tweakStyles",
|
|
10283
10289
|
"testId",
|
|
10284
10290
|
"data"
|
|
10285
10291
|
]);
|
|
10286
|
-
var classes = useStyles$
|
|
10292
|
+
var classes = useStyles$E({
|
|
10287
10293
|
theme: tweakStyles
|
|
10288
10294
|
});
|
|
10289
10295
|
var tweakInputStyles = useTweakStyles({
|
|
@@ -10292,7 +10298,7 @@ var SearchInput = function(_param) {
|
|
|
10292
10298
|
className: "tweakInput",
|
|
10293
10299
|
currentComponentName: "SearchInput"
|
|
10294
10300
|
});
|
|
10295
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
10301
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$C(_object_spread$J({
|
|
10296
10302
|
className: classes.root
|
|
10297
10303
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
10298
10304
|
children: [
|
|
@@ -10302,7 +10308,7 @@ var SearchInput = function(_param) {
|
|
|
10302
10308
|
type: "search"
|
|
10303
10309
|
})
|
|
10304
10310
|
}),
|
|
10305
|
-
/* @__PURE__ */ jsx(Input, _object_spread$
|
|
10311
|
+
/* @__PURE__ */ jsx(Input, _object_spread$J({
|
|
10306
10312
|
isClearable,
|
|
10307
10313
|
isActive: props.value !== "" && props.value !== void 0,
|
|
10308
10314
|
testId: getTestId(testId, "input"),
|
|
@@ -10350,7 +10356,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
10350
10356
|
_defineProperties(Constructor, staticProps);
|
|
10351
10357
|
return Constructor;
|
|
10352
10358
|
}
|
|
10353
|
-
function _define_property$
|
|
10359
|
+
function _define_property$J(obj, key, value) {
|
|
10354
10360
|
if (key in obj) {
|
|
10355
10361
|
Object.defineProperty(obj, key, {
|
|
10356
10362
|
value,
|
|
@@ -10383,7 +10389,7 @@ function _inherits(subClass, superClass) {
|
|
|
10383
10389
|
if (superClass)
|
|
10384
10390
|
_set_prototype_of(subClass, superClass);
|
|
10385
10391
|
}
|
|
10386
|
-
function _object_spread$
|
|
10392
|
+
function _object_spread$I(target) {
|
|
10387
10393
|
for (var i = 1; i < arguments.length; i++) {
|
|
10388
10394
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10389
10395
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10393,15 +10399,15 @@ function _object_spread$H(target) {
|
|
|
10393
10399
|
}));
|
|
10394
10400
|
}
|
|
10395
10401
|
ownKeys2.forEach(function(key) {
|
|
10396
|
-
_define_property$
|
|
10402
|
+
_define_property$J(target, key, source[key]);
|
|
10397
10403
|
});
|
|
10398
10404
|
}
|
|
10399
10405
|
return target;
|
|
10400
10406
|
}
|
|
10401
|
-
function _object_without_properties$
|
|
10407
|
+
function _object_without_properties$b(source, excluded) {
|
|
10402
10408
|
if (source == null)
|
|
10403
10409
|
return {};
|
|
10404
|
-
var target = _object_without_properties_loose$
|
|
10410
|
+
var target = _object_without_properties_loose$b(source, excluded);
|
|
10405
10411
|
var key, i;
|
|
10406
10412
|
if (Object.getOwnPropertySymbols) {
|
|
10407
10413
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10416,7 +10422,7 @@ function _object_without_properties$a(source, excluded) {
|
|
|
10416
10422
|
}
|
|
10417
10423
|
return target;
|
|
10418
10424
|
}
|
|
10419
|
-
function _object_without_properties_loose$
|
|
10425
|
+
function _object_without_properties_loose$b(source, excluded) {
|
|
10420
10426
|
if (source == null)
|
|
10421
10427
|
return {};
|
|
10422
10428
|
var target = {};
|
|
@@ -10482,8 +10488,8 @@ var ScrollIntoViewIfNeeded = /* @__PURE__ */ function(PureComponent2) {
|
|
|
10482
10488
|
_class_call_check(this, ScrollIntoViewIfNeeded2);
|
|
10483
10489
|
var _this;
|
|
10484
10490
|
_this = _super.apply(this, arguments);
|
|
10485
|
-
_define_property$
|
|
10486
|
-
_define_property$
|
|
10491
|
+
_define_property$J(_assert_this_initialized(_this), "node", createRef());
|
|
10492
|
+
_define_property$J(_assert_this_initialized(_this), "handleScrollIntoViewIfNeeded", function() {
|
|
10487
10493
|
var options = _this.props.options;
|
|
10488
10494
|
var _this_node = _this.node, node = _this_node.current;
|
|
10489
10495
|
if (node) {
|
|
@@ -10519,13 +10525,13 @@ var ScrollIntoViewIfNeeded = /* @__PURE__ */ function(PureComponent2) {
|
|
|
10519
10525
|
_this_props.active;
|
|
10520
10526
|
var elementType = _this_props.elementType, children = _this_props.children;
|
|
10521
10527
|
_this_props.options;
|
|
10522
|
-
var wrapperProps = _object_without_properties$
|
|
10528
|
+
var wrapperProps = _object_without_properties$b(_this_props, [
|
|
10523
10529
|
"active",
|
|
10524
10530
|
"elementType",
|
|
10525
10531
|
"children",
|
|
10526
10532
|
"options"
|
|
10527
10533
|
]);
|
|
10528
|
-
return createElement(elementType !== null && elementType !== void 0 ? elementType : ScrollIntoViewIfNeededDefaultElementType, _object_spread$
|
|
10534
|
+
return createElement(elementType !== null && elementType !== void 0 ? elementType : ScrollIntoViewIfNeededDefaultElementType, _object_spread$I({
|
|
10529
10535
|
ref: this.node
|
|
10530
10536
|
}, wrapperProps), children);
|
|
10531
10537
|
}
|
|
@@ -10533,10 +10539,10 @@ var ScrollIntoViewIfNeeded = /* @__PURE__ */ function(PureComponent2) {
|
|
|
10533
10539
|
]);
|
|
10534
10540
|
return ScrollIntoViewIfNeeded2;
|
|
10535
10541
|
}(PureComponent);
|
|
10536
|
-
_define_property$
|
|
10542
|
+
_define_property$J(ScrollIntoViewIfNeeded, "defaultProps", ScrollIntoViewIfNeededDefaultProps);
|
|
10537
10543
|
var DEFAULT_OPTION_INDEX = -2;
|
|
10538
10544
|
var ALL_OPTION_INDEX = -1;
|
|
10539
|
-
function _define_property$
|
|
10545
|
+
function _define_property$I(obj, key, value) {
|
|
10540
10546
|
if (key in obj) {
|
|
10541
10547
|
Object.defineProperty(obj, key, {
|
|
10542
10548
|
value,
|
|
@@ -10549,7 +10555,7 @@ function _define_property$H(obj, key, value) {
|
|
|
10549
10555
|
}
|
|
10550
10556
|
return obj;
|
|
10551
10557
|
}
|
|
10552
|
-
function _object_spread$
|
|
10558
|
+
function _object_spread$H(target) {
|
|
10553
10559
|
for (var i = 1; i < arguments.length; i++) {
|
|
10554
10560
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10555
10561
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10559,7 +10565,7 @@ function _object_spread$G(target) {
|
|
|
10559
10565
|
}));
|
|
10560
10566
|
}
|
|
10561
10567
|
ownKeys2.forEach(function(key) {
|
|
10562
|
-
_define_property$
|
|
10568
|
+
_define_property$I(target, key, source[key]);
|
|
10563
10569
|
});
|
|
10564
10570
|
}
|
|
10565
10571
|
return target;
|
|
@@ -10570,7 +10576,7 @@ var CELL_PADDING = [
|
|
|
10570
10576
|
10,
|
|
10571
10577
|
20
|
|
10572
10578
|
];
|
|
10573
|
-
var useStyles$
|
|
10579
|
+
var useStyles$D = createThemedStyles("SelectList", {
|
|
10574
10580
|
root: {
|
|
10575
10581
|
borderRadius: dimensions.BORDER_RADIUS_SMALL,
|
|
10576
10582
|
boxShadow: "0 13px 74px -27px rgba(0, 0, 0, 0.11)",
|
|
@@ -10594,7 +10600,7 @@ var useStyles$C = createThemedStyles("SelectList", {
|
|
|
10594
10600
|
]
|
|
10595
10601
|
}
|
|
10596
10602
|
},
|
|
10597
|
-
list: _object_spread$
|
|
10603
|
+
list: _object_spread$H({
|
|
10598
10604
|
height: "100%",
|
|
10599
10605
|
maxHeight: ROW_HEIGHT$1 * 6,
|
|
10600
10606
|
cursor: "pointer",
|
|
@@ -10637,7 +10643,7 @@ var checkboxStyles$1 = {
|
|
|
10637
10643
|
display: "none"
|
|
10638
10644
|
}
|
|
10639
10645
|
};
|
|
10640
|
-
function _define_property$
|
|
10646
|
+
function _define_property$H(obj, key, value) {
|
|
10641
10647
|
if (key in obj) {
|
|
10642
10648
|
Object.defineProperty(obj, key, {
|
|
10643
10649
|
value,
|
|
@@ -10650,7 +10656,7 @@ function _define_property$G(obj, key, value) {
|
|
|
10650
10656
|
}
|
|
10651
10657
|
return obj;
|
|
10652
10658
|
}
|
|
10653
|
-
function _object_spread$
|
|
10659
|
+
function _object_spread$G(target) {
|
|
10654
10660
|
for (var i = 1; i < arguments.length; i++) {
|
|
10655
10661
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10656
10662
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10660,12 +10666,12 @@ function _object_spread$F(target) {
|
|
|
10660
10666
|
}));
|
|
10661
10667
|
}
|
|
10662
10668
|
ownKeys2.forEach(function(key) {
|
|
10663
|
-
_define_property$
|
|
10669
|
+
_define_property$H(target, key, source[key]);
|
|
10664
10670
|
});
|
|
10665
10671
|
}
|
|
10666
10672
|
return target;
|
|
10667
10673
|
}
|
|
10668
|
-
function ownKeys$
|
|
10674
|
+
function ownKeys$B(object, enumerableOnly) {
|
|
10669
10675
|
var keys2 = Object.keys(object);
|
|
10670
10676
|
if (Object.getOwnPropertySymbols) {
|
|
10671
10677
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10678,12 +10684,12 @@ function ownKeys$A(object, enumerableOnly) {
|
|
|
10678
10684
|
}
|
|
10679
10685
|
return keys2;
|
|
10680
10686
|
}
|
|
10681
|
-
function _object_spread_props$
|
|
10687
|
+
function _object_spread_props$B(target, source) {
|
|
10682
10688
|
source = source != null ? source : {};
|
|
10683
10689
|
if (Object.getOwnPropertyDescriptors) {
|
|
10684
10690
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10685
10691
|
} else {
|
|
10686
|
-
ownKeys$
|
|
10692
|
+
ownKeys$B(Object(source)).forEach(function(key) {
|
|
10687
10693
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10688
10694
|
});
|
|
10689
10695
|
}
|
|
@@ -10693,12 +10699,12 @@ var SelectListItem = function(param) {
|
|
|
10693
10699
|
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;
|
|
10694
10700
|
var isMultiSelect = isNotEmpty(onToggleCheckbox);
|
|
10695
10701
|
var _obj;
|
|
10696
|
-
return /* @__PURE__ */ jsx(ScrollIntoViewIfNeeded, _object_spread_props$
|
|
10702
|
+
return /* @__PURE__ */ jsx(ScrollIntoViewIfNeeded, _object_spread_props$B(_object_spread$G({
|
|
10697
10703
|
active: isFocused,
|
|
10698
10704
|
options: {
|
|
10699
10705
|
block: "nearest"
|
|
10700
10706
|
},
|
|
10701
|
-
className: clsx(classes.cell, (_obj = {}, _define_property$
|
|
10707
|
+
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))
|
|
10702
10708
|
}, addDataAttributes({
|
|
10703
10709
|
disabled: isDisabled,
|
|
10704
10710
|
active: isActive,
|
|
@@ -10720,7 +10726,7 @@ var SelectListItem = function(param) {
|
|
|
10720
10726
|
}) : children
|
|
10721
10727
|
}));
|
|
10722
10728
|
};
|
|
10723
|
-
function _define_property$
|
|
10729
|
+
function _define_property$G(obj, key, value) {
|
|
10724
10730
|
if (key in obj) {
|
|
10725
10731
|
Object.defineProperty(obj, key, {
|
|
10726
10732
|
value,
|
|
@@ -10733,7 +10739,7 @@ function _define_property$F(obj, key, value) {
|
|
|
10733
10739
|
}
|
|
10734
10740
|
return obj;
|
|
10735
10741
|
}
|
|
10736
|
-
function _object_spread$
|
|
10742
|
+
function _object_spread$F(target) {
|
|
10737
10743
|
for (var i = 1; i < arguments.length; i++) {
|
|
10738
10744
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10739
10745
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10743,12 +10749,12 @@ function _object_spread$E(target) {
|
|
|
10743
10749
|
}));
|
|
10744
10750
|
}
|
|
10745
10751
|
ownKeys2.forEach(function(key) {
|
|
10746
|
-
_define_property$
|
|
10752
|
+
_define_property$G(target, key, source[key]);
|
|
10747
10753
|
});
|
|
10748
10754
|
}
|
|
10749
10755
|
return target;
|
|
10750
10756
|
}
|
|
10751
|
-
function ownKeys$
|
|
10757
|
+
function ownKeys$A(object, enumerableOnly) {
|
|
10752
10758
|
var keys2 = Object.keys(object);
|
|
10753
10759
|
if (Object.getOwnPropertySymbols) {
|
|
10754
10760
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10761,12 +10767,12 @@ function ownKeys$z(object, enumerableOnly) {
|
|
|
10761
10767
|
}
|
|
10762
10768
|
return keys2;
|
|
10763
10769
|
}
|
|
10764
|
-
function _object_spread_props$
|
|
10770
|
+
function _object_spread_props$A(target, source) {
|
|
10765
10771
|
source = source != null ? source : {};
|
|
10766
10772
|
if (Object.getOwnPropertyDescriptors) {
|
|
10767
10773
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10768
10774
|
} else {
|
|
10769
|
-
ownKeys$
|
|
10775
|
+
ownKeys$A(Object(source)).forEach(function(key) {
|
|
10770
10776
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10771
10777
|
});
|
|
10772
10778
|
}
|
|
@@ -10774,7 +10780,7 @@ function _object_spread_props$z(target, source) {
|
|
|
10774
10780
|
}
|
|
10775
10781
|
function SelectList(param) {
|
|
10776
10782
|
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;
|
|
10777
|
-
var classes = useStyles$
|
|
10783
|
+
var classes = useStyles$D({
|
|
10778
10784
|
theme: tweakStyles
|
|
10779
10785
|
});
|
|
10780
10786
|
var isMultiSelect = isNotEmpty(onToggleCheckbox);
|
|
@@ -10811,13 +10817,13 @@ function SelectList(param) {
|
|
|
10811
10817
|
};
|
|
10812
10818
|
return /* @__PURE__ */ jsxs(ScrollIntoViewIfNeeded, {
|
|
10813
10819
|
active: shouldScrollToList && !isMultiSelect,
|
|
10814
|
-
className: clsx(classes.root, _define_property$
|
|
10820
|
+
className: clsx(classes.root, _define_property$G({}, classes.withListHeader, isReactNodeNotEmpty(customListHeader))),
|
|
10815
10821
|
children: [
|
|
10816
10822
|
isReactNodeNotEmpty(customListHeader) && /* @__PURE__ */ jsx("div", {
|
|
10817
10823
|
className: classes.listHeader,
|
|
10818
10824
|
children: customListHeader
|
|
10819
10825
|
}),
|
|
10820
|
-
/* @__PURE__ */ jsx("div", _object_spread_props$
|
|
10826
|
+
/* @__PURE__ */ jsx("div", _object_spread_props$A(_object_spread$F({
|
|
10821
10827
|
className: classes.list
|
|
10822
10828
|
}, addDataTestId(testId)), {
|
|
10823
10829
|
children: isLoading ? /* @__PURE__ */ jsx("div", {
|
|
@@ -10890,7 +10896,7 @@ var getDefaultConvertToIdFunction = function(convertValueToString) {
|
|
|
10890
10896
|
var isMultiSelectValue = function(props, _value) {
|
|
10891
10897
|
return props.isMultiSelect === true;
|
|
10892
10898
|
};
|
|
10893
|
-
var useStyles$
|
|
10899
|
+
var useStyles$C = createThemedStyles("Select", {
|
|
10894
10900
|
root: {
|
|
10895
10901
|
width: "100%",
|
|
10896
10902
|
position: "relative",
|
|
@@ -11039,7 +11045,7 @@ function _async_to_generator$4(fn3) {
|
|
|
11039
11045
|
});
|
|
11040
11046
|
};
|
|
11041
11047
|
}
|
|
11042
|
-
function _define_property$
|
|
11048
|
+
function _define_property$F(obj, key, value) {
|
|
11043
11049
|
if (key in obj) {
|
|
11044
11050
|
Object.defineProperty(obj, key, {
|
|
11045
11051
|
value,
|
|
@@ -11090,7 +11096,7 @@ function _non_iterable_rest$l() {
|
|
|
11090
11096
|
function _non_iterable_spread$6() {
|
|
11091
11097
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
11092
11098
|
}
|
|
11093
|
-
function _object_spread$
|
|
11099
|
+
function _object_spread$E(target) {
|
|
11094
11100
|
for (var i = 1; i < arguments.length; i++) {
|
|
11095
11101
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
11096
11102
|
var ownKeys2 = Object.keys(source);
|
|
@@ -11100,12 +11106,12 @@ function _object_spread$D(target) {
|
|
|
11100
11106
|
}));
|
|
11101
11107
|
}
|
|
11102
11108
|
ownKeys2.forEach(function(key) {
|
|
11103
|
-
_define_property$
|
|
11109
|
+
_define_property$F(target, key, source[key]);
|
|
11104
11110
|
});
|
|
11105
11111
|
}
|
|
11106
11112
|
return target;
|
|
11107
11113
|
}
|
|
11108
|
-
function ownKeys$
|
|
11114
|
+
function ownKeys$z(object, enumerableOnly) {
|
|
11109
11115
|
var keys2 = Object.keys(object);
|
|
11110
11116
|
if (Object.getOwnPropertySymbols) {
|
|
11111
11117
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -11118,21 +11124,21 @@ function ownKeys$y(object, enumerableOnly) {
|
|
|
11118
11124
|
}
|
|
11119
11125
|
return keys2;
|
|
11120
11126
|
}
|
|
11121
|
-
function _object_spread_props$
|
|
11127
|
+
function _object_spread_props$z(target, source) {
|
|
11122
11128
|
source = source != null ? source : {};
|
|
11123
11129
|
if (Object.getOwnPropertyDescriptors) {
|
|
11124
11130
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
11125
11131
|
} else {
|
|
11126
|
-
ownKeys$
|
|
11132
|
+
ownKeys$z(Object(source)).forEach(function(key) {
|
|
11127
11133
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
11128
11134
|
});
|
|
11129
11135
|
}
|
|
11130
11136
|
return target;
|
|
11131
11137
|
}
|
|
11132
|
-
function _object_without_properties$
|
|
11138
|
+
function _object_without_properties$a(source, excluded) {
|
|
11133
11139
|
if (source == null)
|
|
11134
11140
|
return {};
|
|
11135
|
-
var target = _object_without_properties_loose$
|
|
11141
|
+
var target = _object_without_properties_loose$a(source, excluded);
|
|
11136
11142
|
var key, i;
|
|
11137
11143
|
if (Object.getOwnPropertySymbols) {
|
|
11138
11144
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -11147,7 +11153,7 @@ function _object_without_properties$9(source, excluded) {
|
|
|
11147
11153
|
}
|
|
11148
11154
|
return target;
|
|
11149
11155
|
}
|
|
11150
|
-
function _object_without_properties_loose$
|
|
11156
|
+
function _object_without_properties_loose$a(source, excluded) {
|
|
11151
11157
|
if (source == null)
|
|
11152
11158
|
return {};
|
|
11153
11159
|
var target = {};
|
|
@@ -11283,7 +11289,7 @@ function _ts_generator$4(thisArg, body) {
|
|
|
11283
11289
|
}
|
|
11284
11290
|
}
|
|
11285
11291
|
function Select(props) {
|
|
11286
|
-
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$
|
|
11292
|
+
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, [
|
|
11287
11293
|
"options",
|
|
11288
11294
|
"value",
|
|
11289
11295
|
"defaultOptionLabel",
|
|
@@ -11314,10 +11320,10 @@ function Select(props) {
|
|
|
11314
11320
|
"convertValueToReactNode",
|
|
11315
11321
|
"optionsFilter"
|
|
11316
11322
|
]);
|
|
11317
|
-
var classes = useStyles$
|
|
11323
|
+
var classes = useStyles$C({
|
|
11318
11324
|
theme: tweakStyles
|
|
11319
11325
|
});
|
|
11320
|
-
var _ref = searchInput !== null && searchInput !== void 0 ? searchInput : {}, tmp = _ref.shouldRenderInList, shouldRenderSearchInputInList = tmp === void 0 ? false : tmp, searchInputProps = _object_without_properties$
|
|
11326
|
+
var _ref = searchInput !== null && searchInput !== void 0 ? searchInput : {}, tmp = _ref.shouldRenderInList, shouldRenderSearchInputInList = tmp === void 0 ? false : tmp, searchInputProps = _object_without_properties$a(_ref, [
|
|
11321
11327
|
"shouldRenderInList"
|
|
11322
11328
|
]);
|
|
11323
11329
|
var hasSearchInputInList = optionsMode !== "normal" && shouldRenderSearchInputInList;
|
|
@@ -11652,8 +11658,8 @@ function Select(props) {
|
|
|
11652
11658
|
isOpen
|
|
11653
11659
|
]);
|
|
11654
11660
|
var _obj;
|
|
11655
|
-
var listEl = /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
11656
|
-
className: clsx(classes.listWrapper, (_obj = {}, _define_property$
|
|
11661
|
+
var listEl = /* @__PURE__ */ jsx("div", _object_spread_props$z(_object_spread$E({
|
|
11662
|
+
className: clsx(classes.listWrapper, (_obj = {}, _define_property$F(_obj, classes.withoutPopper, !shouldUsePopper), _define_property$F(_obj, classes.listWrapperInBody, shouldRenderInBody), _obj)),
|
|
11657
11663
|
ref: list,
|
|
11658
11664
|
style: popperData === null || popperData === void 0 ? void 0 : popperData.styles.popper,
|
|
11659
11665
|
onBlur: handleBlur
|
|
@@ -11663,7 +11669,7 @@ function Select(props) {
|
|
|
11663
11669
|
defaultOptionLabel: hasDefaultOption && shouldShowDefaultOption && defaultOptionLabel,
|
|
11664
11670
|
allOptionsLabel: shouldShowAllOption && allOptionsLabel,
|
|
11665
11671
|
areAllOptionsSelected,
|
|
11666
|
-
customListHeader: hasSearchInputInList && /* @__PURE__ */ jsx(SearchInput, _object_spread$
|
|
11672
|
+
customListHeader: hasSearchInputInList && /* @__PURE__ */ jsx(SearchInput, _object_spread$E({
|
|
11667
11673
|
value: searchValue,
|
|
11668
11674
|
onChange: handleInputChange,
|
|
11669
11675
|
tweakStyles: tweakSearchInputStyles,
|
|
@@ -11710,7 +11716,7 @@ function Select(props) {
|
|
|
11710
11716
|
onClick: isDisabled ? void 0 : handleOnClick,
|
|
11711
11717
|
ref: inputWrapper,
|
|
11712
11718
|
children: [
|
|
11713
|
-
/* @__PURE__ */ jsx(Input, _object_spread$
|
|
11719
|
+
/* @__PURE__ */ jsx(Input, _object_spread$E({
|
|
11714
11720
|
value: searchValue !== "" && !shouldRenderSearchInputInList ? searchValue : showedStringValue,
|
|
11715
11721
|
onChange: handleInputChange,
|
|
11716
11722
|
isActive: isListOpen,
|
|
@@ -11747,7 +11753,7 @@ function Select(props) {
|
|
|
11747
11753
|
}
|
|
11748
11754
|
var SELECT_PADDING_LEFT = 12;
|
|
11749
11755
|
var SELECT_PADDING_RIGHT = 24;
|
|
11750
|
-
var useStyles$
|
|
11756
|
+
var useStyles$B = createThemedStyles("DatePickerHeader", {
|
|
11751
11757
|
btn: {
|
|
11752
11758
|
width: 36,
|
|
11753
11759
|
height: 36,
|
|
@@ -11816,7 +11822,7 @@ var selectStyles$1 = {
|
|
|
11816
11822
|
};
|
|
11817
11823
|
var DatePickerHeader = function(param) {
|
|
11818
11824
|
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;
|
|
11819
|
-
var classes = useStyles$
|
|
11825
|
+
var classes = useStyles$B({
|
|
11820
11826
|
theme: tweakStyles
|
|
11821
11827
|
});
|
|
11822
11828
|
var tweakSelectStyles = useTweakStyles({
|
|
@@ -11925,7 +11931,7 @@ var getDateValueParser = function(dateFormat) {
|
|
|
11925
11931
|
var areDatesEquals = function(date1, date2) {
|
|
11926
11932
|
return isEmpty(date1) && isEmpty(date2) || isNotEmpty(date1) && isNotEmpty(date2) && isSameDay(date1, date2);
|
|
11927
11933
|
};
|
|
11928
|
-
var useStyles$
|
|
11934
|
+
var useStyles$A = createThemedStyles("DatePicker", {
|
|
11929
11935
|
root: {
|
|
11930
11936
|
width: "100%",
|
|
11931
11937
|
height: "100%"
|
|
@@ -11959,7 +11965,7 @@ function _array_with_holes$k(arr) {
|
|
|
11959
11965
|
if (Array.isArray(arr))
|
|
11960
11966
|
return arr;
|
|
11961
11967
|
}
|
|
11962
|
-
function _define_property$
|
|
11968
|
+
function _define_property$E(obj, key, value) {
|
|
11963
11969
|
if (key in obj) {
|
|
11964
11970
|
Object.defineProperty(obj, key, {
|
|
11965
11971
|
value,
|
|
@@ -12003,7 +12009,7 @@ function _iterable_to_array_limit$k(arr, i) {
|
|
|
12003
12009
|
function _non_iterable_rest$k() {
|
|
12004
12010
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
12005
12011
|
}
|
|
12006
|
-
function _object_spread$
|
|
12012
|
+
function _object_spread$D(target) {
|
|
12007
12013
|
for (var i = 1; i < arguments.length; i++) {
|
|
12008
12014
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
12009
12015
|
var ownKeys2 = Object.keys(source);
|
|
@@ -12013,12 +12019,12 @@ function _object_spread$C(target) {
|
|
|
12013
12019
|
}));
|
|
12014
12020
|
}
|
|
12015
12021
|
ownKeys2.forEach(function(key) {
|
|
12016
|
-
_define_property$
|
|
12022
|
+
_define_property$E(target, key, source[key]);
|
|
12017
12023
|
});
|
|
12018
12024
|
}
|
|
12019
12025
|
return target;
|
|
12020
12026
|
}
|
|
12021
|
-
function ownKeys$
|
|
12027
|
+
function ownKeys$y(object, enumerableOnly) {
|
|
12022
12028
|
var keys2 = Object.keys(object);
|
|
12023
12029
|
if (Object.getOwnPropertySymbols) {
|
|
12024
12030
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -12031,21 +12037,21 @@ function ownKeys$x(object, enumerableOnly) {
|
|
|
12031
12037
|
}
|
|
12032
12038
|
return keys2;
|
|
12033
12039
|
}
|
|
12034
|
-
function _object_spread_props$
|
|
12040
|
+
function _object_spread_props$y(target, source) {
|
|
12035
12041
|
source = source != null ? source : {};
|
|
12036
12042
|
if (Object.getOwnPropertyDescriptors) {
|
|
12037
12043
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
12038
12044
|
} else {
|
|
12039
|
-
ownKeys$
|
|
12045
|
+
ownKeys$y(Object(source)).forEach(function(key) {
|
|
12040
12046
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
12041
12047
|
});
|
|
12042
12048
|
}
|
|
12043
12049
|
return target;
|
|
12044
12050
|
}
|
|
12045
|
-
function _object_without_properties$
|
|
12051
|
+
function _object_without_properties$9(source, excluded) {
|
|
12046
12052
|
if (source == null)
|
|
12047
12053
|
return {};
|
|
12048
|
-
var target = _object_without_properties_loose$
|
|
12054
|
+
var target = _object_without_properties_loose$9(source, excluded);
|
|
12049
12055
|
var key, i;
|
|
12050
12056
|
if (Object.getOwnPropertySymbols) {
|
|
12051
12057
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -12060,7 +12066,7 @@ function _object_without_properties$8(source, excluded) {
|
|
|
12060
12066
|
}
|
|
12061
12067
|
return target;
|
|
12062
12068
|
}
|
|
12063
|
-
function _object_without_properties_loose$
|
|
12069
|
+
function _object_without_properties_loose$9(source, excluded) {
|
|
12064
12070
|
if (source == null)
|
|
12065
12071
|
return {};
|
|
12066
12072
|
var target = {};
|
|
@@ -12091,7 +12097,7 @@ function _unsupported_iterable_to_array$k(o, minLen) {
|
|
|
12091
12097
|
return _array_like_to_array$k(o, minLen);
|
|
12092
12098
|
}
|
|
12093
12099
|
var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
12094
|
-
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$
|
|
12100
|
+
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, [
|
|
12095
12101
|
"data",
|
|
12096
12102
|
"selectedDate",
|
|
12097
12103
|
"minDate",
|
|
@@ -12136,7 +12142,7 @@ var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
12136
12142
|
"onKeyDown",
|
|
12137
12143
|
"tweakStyles"
|
|
12138
12144
|
]);
|
|
12139
|
-
var classes = useStyles$
|
|
12145
|
+
var classes = useStyles$A({
|
|
12140
12146
|
theme: tweakStyles
|
|
12141
12147
|
});
|
|
12142
12148
|
var tweakDateInputStyles = useTweakStyles({
|
|
@@ -12159,7 +12165,7 @@ var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
12159
12165
|
var _useState4 = _sliced_to_array$k(useState(endDate), 2), end2 = _useState4[0], setEnd = _useState4[1];
|
|
12160
12166
|
var _useState5 = _sliced_to_array$k(useState(formatDate(endDate)), 2), endDateValue = _useState5[0], setEndDateValue = _useState5[1];
|
|
12161
12167
|
var hasDateInputValue = isRange ? isStringNotEmpty(startDateValue) || isStringNotEmpty(endDateValue) : isStringNotEmpty(dateValue);
|
|
12162
|
-
var dateInputProps = _object_spread$
|
|
12168
|
+
var dateInputProps = _object_spread$D(_object_spread_props$y(_object_spread$D({}, inputProps), {
|
|
12163
12169
|
isRange,
|
|
12164
12170
|
isDisabled,
|
|
12165
12171
|
isClearable,
|
|
@@ -12257,10 +12263,10 @@ var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
12257
12263
|
startDate,
|
|
12258
12264
|
endDate
|
|
12259
12265
|
]);
|
|
12260
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
12266
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$y(_object_spread$D({
|
|
12261
12267
|
className: classes.root
|
|
12262
12268
|
}, addDataAttributes(data)), {
|
|
12263
|
-
children: /* @__PURE__ */ jsx(DatePickerComponent, _object_spread$
|
|
12269
|
+
children: /* @__PURE__ */ jsx(DatePickerComponent, _object_spread$D({
|
|
12264
12270
|
ref,
|
|
12265
12271
|
minDate,
|
|
12266
12272
|
maxDate,
|
|
@@ -12289,9 +12295,9 @@ var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
12289
12295
|
preventOpenOnFocus,
|
|
12290
12296
|
shouldCloseOnSelect,
|
|
12291
12297
|
customInputRef,
|
|
12292
|
-
customInput: /* @__PURE__ */ jsx(CustomInput, _object_spread$
|
|
12298
|
+
customInput: /* @__PURE__ */ jsx(CustomInput, _object_spread$D({}, dateInputProps)),
|
|
12293
12299
|
renderCustomHeader: renderCustomHeader !== null && renderCustomHeader !== void 0 ? renderCustomHeader : function(baseProps) {
|
|
12294
|
-
return /* @__PURE__ */ jsx(DatePickerHeader, _object_spread_props$
|
|
12300
|
+
return /* @__PURE__ */ jsx(DatePickerHeader, _object_spread_props$y(_object_spread$D({}, baseProps), {
|
|
12295
12301
|
months
|
|
12296
12302
|
}));
|
|
12297
12303
|
},
|
|
@@ -12328,7 +12334,7 @@ var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
12328
12334
|
}));
|
|
12329
12335
|
});
|
|
12330
12336
|
var LINK_REGEXP = /(http(s?):\/\/(.*))(\s?)/;
|
|
12331
|
-
var useStyles$
|
|
12337
|
+
var useStyles$z = createThemedStyles("Description", {
|
|
12332
12338
|
root: {},
|
|
12333
12339
|
button: {
|
|
12334
12340
|
cursor: "pointer",
|
|
@@ -12369,7 +12375,7 @@ function _array_with_holes$j(arr) {
|
|
|
12369
12375
|
if (Array.isArray(arr))
|
|
12370
12376
|
return arr;
|
|
12371
12377
|
}
|
|
12372
|
-
function _define_property$
|
|
12378
|
+
function _define_property$D(obj, key, value) {
|
|
12373
12379
|
if (key in obj) {
|
|
12374
12380
|
Object.defineProperty(obj, key, {
|
|
12375
12381
|
value,
|
|
@@ -12413,7 +12419,7 @@ function _iterable_to_array_limit$j(arr, i) {
|
|
|
12413
12419
|
function _non_iterable_rest$j() {
|
|
12414
12420
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
12415
12421
|
}
|
|
12416
|
-
function _object_spread$
|
|
12422
|
+
function _object_spread$C(target) {
|
|
12417
12423
|
for (var i = 1; i < arguments.length; i++) {
|
|
12418
12424
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
12419
12425
|
var ownKeys2 = Object.keys(source);
|
|
@@ -12423,12 +12429,12 @@ function _object_spread$B(target) {
|
|
|
12423
12429
|
}));
|
|
12424
12430
|
}
|
|
12425
12431
|
ownKeys2.forEach(function(key) {
|
|
12426
|
-
_define_property$
|
|
12432
|
+
_define_property$D(target, key, source[key]);
|
|
12427
12433
|
});
|
|
12428
12434
|
}
|
|
12429
12435
|
return target;
|
|
12430
12436
|
}
|
|
12431
|
-
function ownKeys$
|
|
12437
|
+
function ownKeys$x(object, enumerableOnly) {
|
|
12432
12438
|
var keys2 = Object.keys(object);
|
|
12433
12439
|
if (Object.getOwnPropertySymbols) {
|
|
12434
12440
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -12441,12 +12447,12 @@ function ownKeys$w(object, enumerableOnly) {
|
|
|
12441
12447
|
}
|
|
12442
12448
|
return keys2;
|
|
12443
12449
|
}
|
|
12444
|
-
function _object_spread_props$
|
|
12450
|
+
function _object_spread_props$x(target, source) {
|
|
12445
12451
|
source = source != null ? source : {};
|
|
12446
12452
|
if (Object.getOwnPropertyDescriptors) {
|
|
12447
12453
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
12448
12454
|
} else {
|
|
12449
|
-
ownKeys$
|
|
12455
|
+
ownKeys$x(Object(source)).forEach(function(key) {
|
|
12450
12456
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
12451
12457
|
});
|
|
12452
12458
|
}
|
|
@@ -12470,7 +12476,7 @@ function _unsupported_iterable_to_array$j(o, minLen) {
|
|
|
12470
12476
|
}
|
|
12471
12477
|
var Description = function(param) {
|
|
12472
12478
|
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;
|
|
12473
|
-
var classes = useStyles$
|
|
12479
|
+
var classes = useStyles$z({
|
|
12474
12480
|
theme: tweakStyles
|
|
12475
12481
|
});
|
|
12476
12482
|
var isTooShort = text.length < truncateIndex;
|
|
@@ -12479,7 +12485,7 @@ var Description = function(param) {
|
|
|
12479
12485
|
var linkText = link && link[0];
|
|
12480
12486
|
var textWithNoLink = text.replace(LINK_REGEXP, "");
|
|
12481
12487
|
var shortText = text.slice(0, text.slice(0, truncateIndex).lastIndexOf(" "));
|
|
12482
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
12488
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$x(_object_spread$C({
|
|
12483
12489
|
className: classes.root
|
|
12484
12490
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
12485
12491
|
children: [
|
|
@@ -12726,7 +12732,7 @@ function _async_to_generator$3(fn3) {
|
|
|
12726
12732
|
});
|
|
12727
12733
|
};
|
|
12728
12734
|
}
|
|
12729
|
-
function _define_property$
|
|
12735
|
+
function _define_property$C(obj, key, value) {
|
|
12730
12736
|
if (key in obj) {
|
|
12731
12737
|
Object.defineProperty(obj, key, {
|
|
12732
12738
|
value,
|
|
@@ -12770,7 +12776,7 @@ function _iterable_to_array_limit$i(arr, i) {
|
|
|
12770
12776
|
function _non_iterable_rest$i() {
|
|
12771
12777
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
12772
12778
|
}
|
|
12773
|
-
function _object_spread$
|
|
12779
|
+
function _object_spread$B(target) {
|
|
12774
12780
|
for (var i = 1; i < arguments.length; i++) {
|
|
12775
12781
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
12776
12782
|
var ownKeys2 = Object.keys(source);
|
|
@@ -12780,15 +12786,15 @@ function _object_spread$A(target) {
|
|
|
12780
12786
|
}));
|
|
12781
12787
|
}
|
|
12782
12788
|
ownKeys2.forEach(function(key) {
|
|
12783
|
-
_define_property$
|
|
12789
|
+
_define_property$C(target, key, source[key]);
|
|
12784
12790
|
});
|
|
12785
12791
|
}
|
|
12786
12792
|
return target;
|
|
12787
12793
|
}
|
|
12788
|
-
function _object_without_properties$
|
|
12794
|
+
function _object_without_properties$8(source, excluded) {
|
|
12789
12795
|
if (source == null)
|
|
12790
12796
|
return {};
|
|
12791
|
-
var target = _object_without_properties_loose$
|
|
12797
|
+
var target = _object_without_properties_loose$8(source, excluded);
|
|
12792
12798
|
var key, i;
|
|
12793
12799
|
if (Object.getOwnPropertySymbols) {
|
|
12794
12800
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -12803,7 +12809,7 @@ function _object_without_properties$7(source, excluded) {
|
|
|
12803
12809
|
}
|
|
12804
12810
|
return target;
|
|
12805
12811
|
}
|
|
12806
|
-
function _object_without_properties_loose$
|
|
12812
|
+
function _object_without_properties_loose$8(source, excluded) {
|
|
12807
12813
|
if (source == null)
|
|
12808
12814
|
return {};
|
|
12809
12815
|
var target = {};
|
|
@@ -12936,7 +12942,7 @@ function _ts_generator$3(thisArg, body) {
|
|
|
12936
12942
|
}
|
|
12937
12943
|
}
|
|
12938
12944
|
var NumberInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
12939
|
-
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$
|
|
12945
|
+
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, [
|
|
12940
12946
|
"value",
|
|
12941
12947
|
"canBeFloat",
|
|
12942
12948
|
"canBeNegative",
|
|
@@ -13039,7 +13045,7 @@ var NumberInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
13039
13045
|
}, [
|
|
13040
13046
|
value
|
|
13041
13047
|
]);
|
|
13042
|
-
return /* @__PURE__ */ jsx(Input, _object_spread$
|
|
13048
|
+
return /* @__PURE__ */ jsx(Input, _object_spread$B({
|
|
13043
13049
|
value: showedValue,
|
|
13044
13050
|
onChange: handleChange,
|
|
13045
13051
|
onBlur: handleBlur,
|
|
@@ -13317,7 +13323,7 @@ function cloneDeep(value) {
|
|
|
13317
13323
|
return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
|
|
13318
13324
|
}
|
|
13319
13325
|
var FILTER_HEIGHT = 36;
|
|
13320
|
-
var useStyles$
|
|
13326
|
+
var useStyles$y = createThemedStyles("FiltersPane", {
|
|
13321
13327
|
root: {
|
|
13322
13328
|
display: "flex",
|
|
13323
13329
|
flexWrap: "wrap",
|
|
@@ -13333,7 +13339,8 @@ var useStyles$x = createThemedStyles("FiltersPane", {
|
|
|
13333
13339
|
width: 40,
|
|
13334
13340
|
height: FILTER_HEIGHT,
|
|
13335
13341
|
cursor: "pointer",
|
|
13336
|
-
transition:
|
|
13342
|
+
transition: animations.defaultTransition,
|
|
13343
|
+
transitionProperty: "background-color"
|
|
13337
13344
|
},
|
|
13338
13345
|
settingsIcon: {
|
|
13339
13346
|
width: 16,
|
|
@@ -13382,7 +13389,7 @@ var innerTextButtonStyles = {
|
|
|
13382
13389
|
}
|
|
13383
13390
|
}
|
|
13384
13391
|
};
|
|
13385
|
-
var useStyles$
|
|
13392
|
+
var useStyles$x = createThemedStyles("FilterInterval", {
|
|
13386
13393
|
root: {
|
|
13387
13394
|
padding: 8,
|
|
13388
13395
|
background: colors.CLASSIC_WHITE
|
|
@@ -13425,7 +13432,7 @@ var inputStyles$3 = {
|
|
|
13425
13432
|
}
|
|
13426
13433
|
};
|
|
13427
13434
|
var clearButtonStyles$3 = cloneDeep(innerTextButtonStyles);
|
|
13428
|
-
function _define_property$
|
|
13435
|
+
function _define_property$B(obj, key, value) {
|
|
13429
13436
|
if (key in obj) {
|
|
13430
13437
|
Object.defineProperty(obj, key, {
|
|
13431
13438
|
value,
|
|
@@ -13438,7 +13445,7 @@ function _define_property$A(obj, key, value) {
|
|
|
13438
13445
|
}
|
|
13439
13446
|
return obj;
|
|
13440
13447
|
}
|
|
13441
|
-
function _object_spread$
|
|
13448
|
+
function _object_spread$A(target) {
|
|
13442
13449
|
for (var i = 1; i < arguments.length; i++) {
|
|
13443
13450
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
13444
13451
|
var ownKeys2 = Object.keys(source);
|
|
@@ -13448,12 +13455,12 @@ function _object_spread$z(target) {
|
|
|
13448
13455
|
}));
|
|
13449
13456
|
}
|
|
13450
13457
|
ownKeys2.forEach(function(key) {
|
|
13451
|
-
_define_property$
|
|
13458
|
+
_define_property$B(target, key, source[key]);
|
|
13452
13459
|
});
|
|
13453
13460
|
}
|
|
13454
13461
|
return target;
|
|
13455
13462
|
}
|
|
13456
|
-
function ownKeys$
|
|
13463
|
+
function ownKeys$w(object, enumerableOnly) {
|
|
13457
13464
|
var keys2 = Object.keys(object);
|
|
13458
13465
|
if (Object.getOwnPropertySymbols) {
|
|
13459
13466
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -13466,12 +13473,12 @@ function ownKeys$v(object, enumerableOnly) {
|
|
|
13466
13473
|
}
|
|
13467
13474
|
return keys2;
|
|
13468
13475
|
}
|
|
13469
|
-
function _object_spread_props$
|
|
13476
|
+
function _object_spread_props$w(target, source) {
|
|
13470
13477
|
source = source != null ? source : {};
|
|
13471
13478
|
if (Object.getOwnPropertyDescriptors) {
|
|
13472
13479
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
13473
13480
|
} else {
|
|
13474
|
-
ownKeys$
|
|
13481
|
+
ownKeys$w(Object(source)).forEach(function(key) {
|
|
13475
13482
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
13476
13483
|
});
|
|
13477
13484
|
}
|
|
@@ -13479,7 +13486,7 @@ function _object_spread_props$v(target, source) {
|
|
|
13479
13486
|
}
|
|
13480
13487
|
var FilterInterval = function(param) {
|
|
13481
13488
|
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;
|
|
13482
|
-
var classes = useStyles$
|
|
13489
|
+
var classes = useStyles$x({
|
|
13483
13490
|
theme: tweakStyles
|
|
13484
13491
|
});
|
|
13485
13492
|
var translates = useMemo(function() {
|
|
@@ -13523,7 +13530,7 @@ var FilterInterval = function(param) {
|
|
|
13523
13530
|
className: "tweakClearButton",
|
|
13524
13531
|
currentComponentName: "FilterInterval"
|
|
13525
13532
|
});
|
|
13526
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
13533
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$w(_object_spread$A({
|
|
13527
13534
|
className: classes.root
|
|
13528
13535
|
}, addDataAttributes(data)), {
|
|
13529
13536
|
children: [
|
|
@@ -13620,7 +13627,7 @@ var getLocale = function() {
|
|
|
13620
13627
|
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;
|
|
13621
13628
|
return merge$1({}, MultiSelectLocales[key], custom, custom2);
|
|
13622
13629
|
};
|
|
13623
|
-
function _define_property$
|
|
13630
|
+
function _define_property$A(obj, key, value) {
|
|
13624
13631
|
if (key in obj) {
|
|
13625
13632
|
Object.defineProperty(obj, key, {
|
|
13626
13633
|
value,
|
|
@@ -13633,7 +13640,7 @@ function _define_property$z(obj, key, value) {
|
|
|
13633
13640
|
}
|
|
13634
13641
|
return obj;
|
|
13635
13642
|
}
|
|
13636
|
-
function _object_spread$
|
|
13643
|
+
function _object_spread$z(target) {
|
|
13637
13644
|
for (var i = 1; i < arguments.length; i++) {
|
|
13638
13645
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
13639
13646
|
var ownKeys2 = Object.keys(source);
|
|
@@ -13643,19 +13650,19 @@ function _object_spread$y(target) {
|
|
|
13643
13650
|
}));
|
|
13644
13651
|
}
|
|
13645
13652
|
ownKeys2.forEach(function(key) {
|
|
13646
|
-
_define_property$
|
|
13653
|
+
_define_property$A(target, key, source[key]);
|
|
13647
13654
|
});
|
|
13648
13655
|
}
|
|
13649
13656
|
return target;
|
|
13650
13657
|
}
|
|
13651
13658
|
var ITEM_HEIGHT$1 = 40;
|
|
13652
13659
|
var TOP_GAP = 12;
|
|
13653
|
-
var useStyles$
|
|
13660
|
+
var useStyles$w = createThemedStyles("MultiSelectList", {
|
|
13654
13661
|
root: {
|
|
13655
13662
|
width: 220,
|
|
13656
13663
|
background: colors.CLASSIC_WHITE
|
|
13657
13664
|
},
|
|
13658
|
-
list: _object_spread$
|
|
13665
|
+
list: _object_spread$z({
|
|
13659
13666
|
paddingTop: TOP_GAP,
|
|
13660
13667
|
maxHeight: ITEM_HEIGHT$1 * 5 + TOP_GAP,
|
|
13661
13668
|
overscrollBehavior: "contain"
|
|
@@ -13812,7 +13819,7 @@ function _async_to_generator$2(fn3) {
|
|
|
13812
13819
|
});
|
|
13813
13820
|
};
|
|
13814
13821
|
}
|
|
13815
|
-
function _define_property$
|
|
13822
|
+
function _define_property$z(obj, key, value) {
|
|
13816
13823
|
if (key in obj) {
|
|
13817
13824
|
Object.defineProperty(obj, key, {
|
|
13818
13825
|
value,
|
|
@@ -13863,7 +13870,7 @@ function _non_iterable_rest$h() {
|
|
|
13863
13870
|
function _non_iterable_spread$5() {
|
|
13864
13871
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
13865
13872
|
}
|
|
13866
|
-
function _object_spread$
|
|
13873
|
+
function _object_spread$y(target) {
|
|
13867
13874
|
for (var i = 1; i < arguments.length; i++) {
|
|
13868
13875
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
13869
13876
|
var ownKeys2 = Object.keys(source);
|
|
@@ -13873,12 +13880,12 @@ function _object_spread$x(target) {
|
|
|
13873
13880
|
}));
|
|
13874
13881
|
}
|
|
13875
13882
|
ownKeys2.forEach(function(key) {
|
|
13876
|
-
_define_property$
|
|
13883
|
+
_define_property$z(target, key, source[key]);
|
|
13877
13884
|
});
|
|
13878
13885
|
}
|
|
13879
13886
|
return target;
|
|
13880
13887
|
}
|
|
13881
|
-
function ownKeys$
|
|
13888
|
+
function ownKeys$v(object, enumerableOnly) {
|
|
13882
13889
|
var keys2 = Object.keys(object);
|
|
13883
13890
|
if (Object.getOwnPropertySymbols) {
|
|
13884
13891
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -13891,12 +13898,12 @@ function ownKeys$u(object, enumerableOnly) {
|
|
|
13891
13898
|
}
|
|
13892
13899
|
return keys2;
|
|
13893
13900
|
}
|
|
13894
|
-
function _object_spread_props$
|
|
13901
|
+
function _object_spread_props$v(target, source) {
|
|
13895
13902
|
source = source != null ? source : {};
|
|
13896
13903
|
if (Object.getOwnPropertyDescriptors) {
|
|
13897
13904
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
13898
13905
|
} else {
|
|
13899
|
-
ownKeys$
|
|
13906
|
+
ownKeys$v(Object(source)).forEach(function(key) {
|
|
13900
13907
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
13901
13908
|
});
|
|
13902
13909
|
}
|
|
@@ -14026,7 +14033,7 @@ function _ts_generator$2(thisArg, body) {
|
|
|
14026
14033
|
function MultiSelectList(param) {
|
|
14027
14034
|
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;
|
|
14028
14035
|
var isMounted = useIsMounted();
|
|
14029
|
-
var classes = useStyles$
|
|
14036
|
+
var classes = useStyles$w({
|
|
14030
14037
|
theme: tweakStyles
|
|
14031
14038
|
});
|
|
14032
14039
|
var tweakCheckboxStyles = useTweakStyles({
|
|
@@ -14195,13 +14202,13 @@ function MultiSelectList(param) {
|
|
|
14195
14202
|
if (value !== void 0) {
|
|
14196
14203
|
if (keyCursorOn < value.include.length) {
|
|
14197
14204
|
var _value_include_filter;
|
|
14198
|
-
onChange(_object_spread_props$
|
|
14205
|
+
onChange(_object_spread_props$v(_object_spread$y({}, value), {
|
|
14199
14206
|
include: (_value_include_filter = value.include.filter(function(val) {
|
|
14200
14207
|
return getValueId(val) !== getValueId(value.include[keyCursorOn]);
|
|
14201
14208
|
})) !== null && _value_include_filter !== void 0 ? _value_include_filter : []
|
|
14202
14209
|
}));
|
|
14203
14210
|
} else {
|
|
14204
|
-
onChange(_object_spread_props$
|
|
14211
|
+
onChange(_object_spread_props$v(_object_spread$y({}, value), {
|
|
14205
14212
|
include: _to_consumable_array$5(value.include).concat([
|
|
14206
14213
|
unchosenOptions[keyCursorOn - value.include.length]
|
|
14207
14214
|
])
|
|
@@ -14400,7 +14407,7 @@ function MultiSelectList(param) {
|
|
|
14400
14407
|
var shouldShowAllOptionsLabel = isGroupingEnabled && unchosenOptions.length > 0 && chosenValues !== void 0 && chosenValues.length > 0;
|
|
14401
14408
|
var shouldShowPreloader = isLoading || isLoadingOptionsOnScroll;
|
|
14402
14409
|
var shouldShowOptionsList = !isLoading && allOptions.length !== 0;
|
|
14403
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
14410
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$v(_object_spread$y({
|
|
14404
14411
|
className: classes.root
|
|
14405
14412
|
}, addDataAttributes(data)), {
|
|
14406
14413
|
children: [
|
|
@@ -14504,7 +14511,7 @@ function MultiSelectList(param) {
|
|
|
14504
14511
|
]
|
|
14505
14512
|
}));
|
|
14506
14513
|
}
|
|
14507
|
-
function _define_property$
|
|
14514
|
+
function _define_property$y(obj, key, value) {
|
|
14508
14515
|
if (key in obj) {
|
|
14509
14516
|
Object.defineProperty(obj, key, {
|
|
14510
14517
|
value,
|
|
@@ -14517,7 +14524,7 @@ function _define_property$x(obj, key, value) {
|
|
|
14517
14524
|
}
|
|
14518
14525
|
return obj;
|
|
14519
14526
|
}
|
|
14520
|
-
function _object_spread$
|
|
14527
|
+
function _object_spread$x(target) {
|
|
14521
14528
|
for (var i = 1; i < arguments.length; i++) {
|
|
14522
14529
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14523
14530
|
var ownKeys2 = Object.keys(source);
|
|
@@ -14527,15 +14534,15 @@ function _object_spread$w(target) {
|
|
|
14527
14534
|
}));
|
|
14528
14535
|
}
|
|
14529
14536
|
ownKeys2.forEach(function(key) {
|
|
14530
|
-
_define_property$
|
|
14537
|
+
_define_property$y(target, key, source[key]);
|
|
14531
14538
|
});
|
|
14532
14539
|
}
|
|
14533
14540
|
return target;
|
|
14534
14541
|
}
|
|
14535
14542
|
function FilterMultiSelect(props) {
|
|
14536
|
-
return /* @__PURE__ */ jsx(MultiSelectList, _object_spread$
|
|
14543
|
+
return /* @__PURE__ */ jsx(MultiSelectList, _object_spread$x({}, props));
|
|
14537
14544
|
}
|
|
14538
|
-
function _define_property$
|
|
14545
|
+
function _define_property$x(obj, key, value) {
|
|
14539
14546
|
if (key in obj) {
|
|
14540
14547
|
Object.defineProperty(obj, key, {
|
|
14541
14548
|
value,
|
|
@@ -14548,7 +14555,7 @@ function _define_property$w(obj, key, value) {
|
|
|
14548
14555
|
}
|
|
14549
14556
|
return obj;
|
|
14550
14557
|
}
|
|
14551
|
-
function _object_spread$
|
|
14558
|
+
function _object_spread$w(target) {
|
|
14552
14559
|
for (var i = 1; i < arguments.length; i++) {
|
|
14553
14560
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14554
14561
|
var ownKeys2 = Object.keys(source);
|
|
@@ -14558,19 +14565,19 @@ function _object_spread$v(target) {
|
|
|
14558
14565
|
}));
|
|
14559
14566
|
}
|
|
14560
14567
|
ownKeys2.forEach(function(key) {
|
|
14561
|
-
_define_property$
|
|
14568
|
+
_define_property$x(target, key, source[key]);
|
|
14562
14569
|
});
|
|
14563
14570
|
}
|
|
14564
14571
|
return target;
|
|
14565
14572
|
}
|
|
14566
14573
|
var ITEM_HEIGHT = 40;
|
|
14567
14574
|
var LIST_GAP = 12;
|
|
14568
|
-
var useStyles$
|
|
14575
|
+
var useStyles$v = createThemedStyles("FilterSelect", {
|
|
14569
14576
|
root: {
|
|
14570
14577
|
width: 220,
|
|
14571
14578
|
background: colors.CLASSIC_WHITE
|
|
14572
14579
|
},
|
|
14573
|
-
list: _object_spread$
|
|
14580
|
+
list: _object_spread$w({
|
|
14574
14581
|
paddingTop: LIST_GAP,
|
|
14575
14582
|
padding: [
|
|
14576
14583
|
LIST_GAP,
|
|
@@ -14619,7 +14626,8 @@ var useStyles$u = createThemedStyles("FilterSelect", {
|
|
|
14619
14626
|
cursor: "pointer",
|
|
14620
14627
|
fontSize: 14,
|
|
14621
14628
|
minHeight: ITEM_HEIGHT,
|
|
14622
|
-
transition:
|
|
14629
|
+
transition: animations.defaultTransition,
|
|
14630
|
+
transitionProperty: "background-color",
|
|
14623
14631
|
boxSizing: "border-box"
|
|
14624
14632
|
},
|
|
14625
14633
|
option: {
|
|
@@ -14742,7 +14750,7 @@ function _async_to_generator$1(fn3) {
|
|
|
14742
14750
|
});
|
|
14743
14751
|
};
|
|
14744
14752
|
}
|
|
14745
|
-
function _define_property$
|
|
14753
|
+
function _define_property$w(obj, key, value) {
|
|
14746
14754
|
if (key in obj) {
|
|
14747
14755
|
Object.defineProperty(obj, key, {
|
|
14748
14756
|
value,
|
|
@@ -14793,7 +14801,7 @@ function _non_iterable_rest$g() {
|
|
|
14793
14801
|
function _non_iterable_spread$4() {
|
|
14794
14802
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14795
14803
|
}
|
|
14796
|
-
function _object_spread$
|
|
14804
|
+
function _object_spread$v(target) {
|
|
14797
14805
|
for (var i = 1; i < arguments.length; i++) {
|
|
14798
14806
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14799
14807
|
var ownKeys2 = Object.keys(source);
|
|
@@ -14803,12 +14811,12 @@ function _object_spread$u(target) {
|
|
|
14803
14811
|
}));
|
|
14804
14812
|
}
|
|
14805
14813
|
ownKeys2.forEach(function(key) {
|
|
14806
|
-
_define_property$
|
|
14814
|
+
_define_property$w(target, key, source[key]);
|
|
14807
14815
|
});
|
|
14808
14816
|
}
|
|
14809
14817
|
return target;
|
|
14810
14818
|
}
|
|
14811
|
-
function ownKeys$
|
|
14819
|
+
function ownKeys$u(object, enumerableOnly) {
|
|
14812
14820
|
var keys2 = Object.keys(object);
|
|
14813
14821
|
if (Object.getOwnPropertySymbols) {
|
|
14814
14822
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -14821,12 +14829,12 @@ function ownKeys$t(object, enumerableOnly) {
|
|
|
14821
14829
|
}
|
|
14822
14830
|
return keys2;
|
|
14823
14831
|
}
|
|
14824
|
-
function _object_spread_props$
|
|
14832
|
+
function _object_spread_props$u(target, source) {
|
|
14825
14833
|
source = source != null ? source : {};
|
|
14826
14834
|
if (Object.getOwnPropertyDescriptors) {
|
|
14827
14835
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
14828
14836
|
} else {
|
|
14829
|
-
ownKeys$
|
|
14837
|
+
ownKeys$u(Object(source)).forEach(function(key) {
|
|
14830
14838
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
14831
14839
|
});
|
|
14832
14840
|
}
|
|
@@ -14955,7 +14963,7 @@ function _ts_generator$1(thisArg, body) {
|
|
|
14955
14963
|
}
|
|
14956
14964
|
function FilterSelect(param) {
|
|
14957
14965
|
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;
|
|
14958
|
-
var classes = useStyles$
|
|
14966
|
+
var classes = useStyles$v({
|
|
14959
14967
|
theme: tweakStyles
|
|
14960
14968
|
});
|
|
14961
14969
|
var tweakSearchInputStyles = useTweakStyles({
|
|
@@ -15226,7 +15234,7 @@ function FilterSelect(param) {
|
|
|
15226
15234
|
}();
|
|
15227
15235
|
doFetchOptions();
|
|
15228
15236
|
}, []);
|
|
15229
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
15237
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$u(_object_spread$v({
|
|
15230
15238
|
className: classes.root
|
|
15231
15239
|
}, addDataAttributes(data)), {
|
|
15232
15240
|
children: [
|
|
@@ -15326,7 +15334,7 @@ function FilterSelect(param) {
|
|
|
15326
15334
|
children: translates.nothingFound
|
|
15327
15335
|
}),
|
|
15328
15336
|
(hasClearButton || hasFooter) && /* @__PURE__ */ jsxs("div", {
|
|
15329
|
-
className: clsx(classes.panel, _define_property$
|
|
15337
|
+
className: clsx(classes.panel, _define_property$w({}, classes.panelWithFooter, hasFooter)),
|
|
15330
15338
|
children: [
|
|
15331
15339
|
hasFooter && /* @__PURE__ */ jsx("div", {
|
|
15332
15340
|
className: classes.footer,
|
|
@@ -16439,7 +16447,7 @@ var locale = {
|
|
|
16439
16447
|
}
|
|
16440
16448
|
};
|
|
16441
16449
|
const ru = locale;
|
|
16442
|
-
var useStyles$
|
|
16450
|
+
var useStyles$u = createThemedStyles("FilterWithDates", {
|
|
16443
16451
|
root: {
|
|
16444
16452
|
background: colors.CLASSIC_WHITE,
|
|
16445
16453
|
position: "relative",
|
|
@@ -16506,7 +16514,7 @@ function _array_with_holes$f(arr) {
|
|
|
16506
16514
|
if (Array.isArray(arr))
|
|
16507
16515
|
return arr;
|
|
16508
16516
|
}
|
|
16509
|
-
function _define_property$
|
|
16517
|
+
function _define_property$v(obj, key, value) {
|
|
16510
16518
|
if (key in obj) {
|
|
16511
16519
|
Object.defineProperty(obj, key, {
|
|
16512
16520
|
value,
|
|
@@ -16550,7 +16558,7 @@ function _iterable_to_array_limit$f(arr, i) {
|
|
|
16550
16558
|
function _non_iterable_rest$f() {
|
|
16551
16559
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
16552
16560
|
}
|
|
16553
|
-
function _object_spread$
|
|
16561
|
+
function _object_spread$u(target) {
|
|
16554
16562
|
for (var i = 1; i < arguments.length; i++) {
|
|
16555
16563
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
16556
16564
|
var ownKeys2 = Object.keys(source);
|
|
@@ -16560,12 +16568,12 @@ function _object_spread$t(target) {
|
|
|
16560
16568
|
}));
|
|
16561
16569
|
}
|
|
16562
16570
|
ownKeys2.forEach(function(key) {
|
|
16563
|
-
_define_property$
|
|
16571
|
+
_define_property$v(target, key, source[key]);
|
|
16564
16572
|
});
|
|
16565
16573
|
}
|
|
16566
16574
|
return target;
|
|
16567
16575
|
}
|
|
16568
|
-
function ownKeys$
|
|
16576
|
+
function ownKeys$t(object, enumerableOnly) {
|
|
16569
16577
|
var keys2 = Object.keys(object);
|
|
16570
16578
|
if (Object.getOwnPropertySymbols) {
|
|
16571
16579
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -16578,12 +16586,12 @@ function ownKeys$s(object, enumerableOnly) {
|
|
|
16578
16586
|
}
|
|
16579
16587
|
return keys2;
|
|
16580
16588
|
}
|
|
16581
|
-
function _object_spread_props$
|
|
16589
|
+
function _object_spread_props$t(target, source) {
|
|
16582
16590
|
source = source != null ? source : {};
|
|
16583
16591
|
if (Object.getOwnPropertyDescriptors) {
|
|
16584
16592
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
16585
16593
|
} else {
|
|
16586
|
-
ownKeys$
|
|
16594
|
+
ownKeys$t(Object(source)).forEach(function(key) {
|
|
16587
16595
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
16588
16596
|
});
|
|
16589
16597
|
}
|
|
@@ -16607,7 +16615,7 @@ function _unsupported_iterable_to_array$f(o, minLen) {
|
|
|
16607
16615
|
}
|
|
16608
16616
|
var FilterWithDates = function(param) {
|
|
16609
16617
|
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;
|
|
16610
|
-
var classes = useStyles$
|
|
16618
|
+
var classes = useStyles$u({
|
|
16611
16619
|
theme: tweakStyles
|
|
16612
16620
|
});
|
|
16613
16621
|
var tweakClearButtonStyles = useTweakStyles({
|
|
@@ -16694,7 +16702,7 @@ var FilterWithDates = function(param) {
|
|
|
16694
16702
|
}
|
|
16695
16703
|
};
|
|
16696
16704
|
var _ref;
|
|
16697
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
16705
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$t(_object_spread$u({
|
|
16698
16706
|
className: classes.root
|
|
16699
16707
|
}, addDataAttributes(data)), {
|
|
16700
16708
|
children: [
|
|
@@ -16703,7 +16711,7 @@ var FilterWithDates = function(param) {
|
|
|
16703
16711
|
children: [
|
|
16704
16712
|
/* @__PURE__ */ jsx("div", {
|
|
16705
16713
|
className: classes.containerItem,
|
|
16706
|
-
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$
|
|
16714
|
+
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$u({
|
|
16707
16715
|
selectedDate: value === null || value === void 0 ? void 0 : value.from,
|
|
16708
16716
|
maxDate: value === null || value === void 0 ? void 0 : value.to,
|
|
16709
16717
|
label: translates.from,
|
|
@@ -16718,7 +16726,7 @@ var FilterWithDates = function(param) {
|
|
|
16718
16726
|
}),
|
|
16719
16727
|
/* @__PURE__ */ jsx("div", {
|
|
16720
16728
|
className: classes.containerItem,
|
|
16721
|
-
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$
|
|
16729
|
+
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$u({
|
|
16722
16730
|
selectedDate: value === null || value === void 0 ? void 0 : value.to,
|
|
16723
16731
|
label: translates.to,
|
|
16724
16732
|
months: translates.months,
|
|
@@ -16774,7 +16782,7 @@ var FilterWithDates = function(param) {
|
|
|
16774
16782
|
]
|
|
16775
16783
|
}));
|
|
16776
16784
|
};
|
|
16777
|
-
var useStyles$
|
|
16785
|
+
var useStyles$t = createThemedStyles("FilterWithPeriod", {
|
|
16778
16786
|
root: {},
|
|
16779
16787
|
main: {},
|
|
16780
16788
|
picker: {}
|
|
@@ -16799,7 +16807,7 @@ function _array_without_holes$3(arr) {
|
|
|
16799
16807
|
if (Array.isArray(arr))
|
|
16800
16808
|
return _array_like_to_array$e(arr);
|
|
16801
16809
|
}
|
|
16802
|
-
function _define_property$
|
|
16810
|
+
function _define_property$u(obj, key, value) {
|
|
16803
16811
|
if (key in obj) {
|
|
16804
16812
|
Object.defineProperty(obj, key, {
|
|
16805
16813
|
value,
|
|
@@ -16850,7 +16858,7 @@ function _non_iterable_rest$e() {
|
|
|
16850
16858
|
function _non_iterable_spread$3() {
|
|
16851
16859
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
16852
16860
|
}
|
|
16853
|
-
function _object_spread$
|
|
16861
|
+
function _object_spread$t(target) {
|
|
16854
16862
|
for (var i = 1; i < arguments.length; i++) {
|
|
16855
16863
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
16856
16864
|
var ownKeys2 = Object.keys(source);
|
|
@@ -16860,12 +16868,12 @@ function _object_spread$s(target) {
|
|
|
16860
16868
|
}));
|
|
16861
16869
|
}
|
|
16862
16870
|
ownKeys2.forEach(function(key) {
|
|
16863
|
-
_define_property$
|
|
16871
|
+
_define_property$u(target, key, source[key]);
|
|
16864
16872
|
});
|
|
16865
16873
|
}
|
|
16866
16874
|
return target;
|
|
16867
16875
|
}
|
|
16868
|
-
function ownKeys$
|
|
16876
|
+
function ownKeys$s(object, enumerableOnly) {
|
|
16869
16877
|
var keys2 = Object.keys(object);
|
|
16870
16878
|
if (Object.getOwnPropertySymbols) {
|
|
16871
16879
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -16878,12 +16886,12 @@ function ownKeys$r(object, enumerableOnly) {
|
|
|
16878
16886
|
}
|
|
16879
16887
|
return keys2;
|
|
16880
16888
|
}
|
|
16881
|
-
function _object_spread_props$
|
|
16889
|
+
function _object_spread_props$s(target, source) {
|
|
16882
16890
|
source = source != null ? source : {};
|
|
16883
16891
|
if (Object.getOwnPropertyDescriptors) {
|
|
16884
16892
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
16885
16893
|
} else {
|
|
16886
|
-
ownKeys$
|
|
16894
|
+
ownKeys$s(Object(source)).forEach(function(key) {
|
|
16887
16895
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
16888
16896
|
});
|
|
16889
16897
|
}
|
|
@@ -16910,7 +16918,7 @@ function _unsupported_iterable_to_array$e(o, minLen) {
|
|
|
16910
16918
|
}
|
|
16911
16919
|
var FilterWithPeriod = function(param) {
|
|
16912
16920
|
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;
|
|
16913
|
-
var classes = useStyles$
|
|
16921
|
+
var classes = useStyles$t({
|
|
16914
16922
|
theme: tweakStyles
|
|
16915
16923
|
});
|
|
16916
16924
|
var translates = useMemo(function() {
|
|
@@ -16923,7 +16931,7 @@ var FilterWithPeriod = function(param) {
|
|
|
16923
16931
|
var _useState1 = _sliced_to_array$e(useState((value === null || value === void 0 ? void 0 : value.periodType) === "CUSTOM"), 2), isDatePickerShown = _useState1[0], setIsDatePickerShown = _useState1[1];
|
|
16924
16932
|
var _useState2 = _sliced_to_array$e(useState(value), 2), period = _useState2[0], setPeriod = _useState2[1];
|
|
16925
16933
|
var periodGetters = useMemo(function() {
|
|
16926
|
-
var result = _object_spread$
|
|
16934
|
+
var result = _object_spread$t({}, PERIODS_GETTERS);
|
|
16927
16935
|
periods === null || periods === void 0 ? void 0 : periods.forEach(function(p) {
|
|
16928
16936
|
if (Array.isArray(p)) {
|
|
16929
16937
|
result[p[0]] = p[1];
|
|
@@ -16969,7 +16977,7 @@ var FilterWithPeriod = function(param) {
|
|
|
16969
16977
|
if (onClose !== void 0) {
|
|
16970
16978
|
onClose();
|
|
16971
16979
|
}
|
|
16972
|
-
onChange(_object_spread_props$
|
|
16980
|
+
onChange(_object_spread_props$s(_object_spread$t({}, p), {
|
|
16973
16981
|
label: getPeriodTranslate(periodType)
|
|
16974
16982
|
}));
|
|
16975
16983
|
}
|
|
@@ -16989,7 +16997,7 @@ var FilterWithPeriod = function(param) {
|
|
|
16989
16997
|
};
|
|
16990
16998
|
var handleCustomDateChange = function(val) {
|
|
16991
16999
|
if (val.from || val.to) {
|
|
16992
|
-
onChange(_object_spread_props$
|
|
17000
|
+
onChange(_object_spread_props$s(_object_spread$t({}, val), {
|
|
16993
17001
|
periodType: "CUSTOM"
|
|
16994
17002
|
}));
|
|
16995
17003
|
} else {
|
|
@@ -17072,7 +17080,7 @@ function _array_with_holes$d(arr) {
|
|
|
17072
17080
|
if (Array.isArray(arr))
|
|
17073
17081
|
return arr;
|
|
17074
17082
|
}
|
|
17075
|
-
function _define_property$
|
|
17083
|
+
function _define_property$t(obj, key, value) {
|
|
17076
17084
|
if (key in obj) {
|
|
17077
17085
|
Object.defineProperty(obj, key, {
|
|
17078
17086
|
value,
|
|
@@ -17116,7 +17124,7 @@ function _iterable_to_array_limit$d(arr, i) {
|
|
|
17116
17124
|
function _non_iterable_rest$d() {
|
|
17117
17125
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17118
17126
|
}
|
|
17119
|
-
function _object_spread$
|
|
17127
|
+
function _object_spread$s(target) {
|
|
17120
17128
|
for (var i = 1; i < arguments.length; i++) {
|
|
17121
17129
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
17122
17130
|
var ownKeys2 = Object.keys(source);
|
|
@@ -17126,12 +17134,12 @@ function _object_spread$r(target) {
|
|
|
17126
17134
|
}));
|
|
17127
17135
|
}
|
|
17128
17136
|
ownKeys2.forEach(function(key) {
|
|
17129
|
-
_define_property$
|
|
17137
|
+
_define_property$t(target, key, source[key]);
|
|
17130
17138
|
});
|
|
17131
17139
|
}
|
|
17132
17140
|
return target;
|
|
17133
17141
|
}
|
|
17134
|
-
function ownKeys$
|
|
17142
|
+
function ownKeys$r(object, enumerableOnly) {
|
|
17135
17143
|
var keys2 = Object.keys(object);
|
|
17136
17144
|
if (Object.getOwnPropertySymbols) {
|
|
17137
17145
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -17144,12 +17152,12 @@ function ownKeys$q(object, enumerableOnly) {
|
|
|
17144
17152
|
}
|
|
17145
17153
|
return keys2;
|
|
17146
17154
|
}
|
|
17147
|
-
function _object_spread_props$
|
|
17155
|
+
function _object_spread_props$r(target, source) {
|
|
17148
17156
|
source = source != null ? source : {};
|
|
17149
17157
|
if (Object.getOwnPropertyDescriptors) {
|
|
17150
17158
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
17151
17159
|
} else {
|
|
17152
|
-
ownKeys$
|
|
17160
|
+
ownKeys$r(Object(source)).forEach(function(key) {
|
|
17153
17161
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
17154
17162
|
});
|
|
17155
17163
|
}
|
|
@@ -17207,7 +17215,7 @@ function Filter(param) {
|
|
|
17207
17215
|
]);
|
|
17208
17216
|
var props = {
|
|
17209
17217
|
ref,
|
|
17210
|
-
className: clsx(classes[dropdownPosition], _define_property$
|
|
17218
|
+
className: clsx(classes[dropdownPosition], _define_property$t({}, classes.dropdown, !isInline))
|
|
17211
17219
|
};
|
|
17212
17220
|
var handleOnClose = function() {
|
|
17213
17221
|
if (onClose !== void 0) {
|
|
@@ -17216,8 +17224,8 @@ function Filter(param) {
|
|
|
17216
17224
|
};
|
|
17217
17225
|
if (filter.type === "custom" && filter.component) {
|
|
17218
17226
|
var Component = filter.component;
|
|
17219
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
17220
|
-
children: /* @__PURE__ */ jsx(Component, _object_spread$
|
|
17227
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$r(_object_spread$s({}, props), {
|
|
17228
|
+
children: /* @__PURE__ */ jsx(Component, _object_spread$s({}, {
|
|
17221
17229
|
value,
|
|
17222
17230
|
onChange,
|
|
17223
17231
|
onClose,
|
|
@@ -17231,8 +17239,8 @@ function Filter(param) {
|
|
|
17231
17239
|
console.warn("%cДля фильтра типа custom (".concat(filter.name, ") в конфиге обязательно нужно задать component"), "background: red; color: black");
|
|
17232
17240
|
}
|
|
17233
17241
|
if (filter.type === "select") {
|
|
17234
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
17235
|
-
children: /* @__PURE__ */ jsx(FilterSelect, _object_spread$
|
|
17242
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$r(_object_spread$s({}, props), {
|
|
17243
|
+
children: /* @__PURE__ */ jsx(FilterSelect, _object_spread$s({
|
|
17236
17244
|
onChange,
|
|
17237
17245
|
value,
|
|
17238
17246
|
localeKey: translatesLocaleKey,
|
|
@@ -17242,12 +17250,12 @@ function Filter(param) {
|
|
|
17242
17250
|
}));
|
|
17243
17251
|
}
|
|
17244
17252
|
if (filter.type === "dateRange") {
|
|
17245
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
17246
|
-
children: /* @__PURE__ */ jsx(FilterWithPeriod, _object_spread$
|
|
17253
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$r(_object_spread$s({}, props), {
|
|
17254
|
+
children: /* @__PURE__ */ jsx(FilterWithPeriod, _object_spread$s({
|
|
17247
17255
|
localeKey: translatesLocaleKey,
|
|
17248
17256
|
locale: translates,
|
|
17249
17257
|
onChange,
|
|
17250
|
-
value: _object_spread$
|
|
17258
|
+
value: _object_spread$s({}, value),
|
|
17251
17259
|
onClose: handleOnClose,
|
|
17252
17260
|
testId: testId !== void 0 ? "".concat(testId, "-period") : void 0
|
|
17253
17261
|
}, filter))
|
|
@@ -17255,17 +17263,17 @@ function Filter(param) {
|
|
|
17255
17263
|
}
|
|
17256
17264
|
if (filter.type === "dateRangeWithoutPeriod") {
|
|
17257
17265
|
var dateRangeValue = value;
|
|
17258
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
17266
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$r(_object_spread$s({}, props), {
|
|
17259
17267
|
style: {
|
|
17260
17268
|
width: 320
|
|
17261
17269
|
},
|
|
17262
|
-
children: /* @__PURE__ */ jsx(FilterWithDates, _object_spread$
|
|
17270
|
+
children: /* @__PURE__ */ jsx(FilterWithDates, _object_spread$s({
|
|
17263
17271
|
value: dateRangeValue,
|
|
17264
17272
|
onEndBtnSubmit: function() {
|
|
17265
17273
|
return onChange(void 0);
|
|
17266
17274
|
},
|
|
17267
17275
|
onChange: function(v) {
|
|
17268
|
-
return onChange(_object_spread_props$
|
|
17276
|
+
return onChange(_object_spread_props$r(_object_spread$s({}, v), {
|
|
17269
17277
|
periodType: "CUSTOM"
|
|
17270
17278
|
}));
|
|
17271
17279
|
},
|
|
@@ -17276,8 +17284,8 @@ function Filter(param) {
|
|
|
17276
17284
|
}));
|
|
17277
17285
|
}
|
|
17278
17286
|
if (filter.type === "multiSelect") {
|
|
17279
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
17280
|
-
children: /* @__PURE__ */ jsx(FilterMultiSelect, _object_spread$
|
|
17287
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$r(_object_spread$s({}, props), {
|
|
17288
|
+
children: /* @__PURE__ */ jsx(FilterMultiSelect, _object_spread$s({
|
|
17281
17289
|
onChange,
|
|
17282
17290
|
onClose: handleOnClose,
|
|
17283
17291
|
value,
|
|
@@ -17288,8 +17296,8 @@ function Filter(param) {
|
|
|
17288
17296
|
}));
|
|
17289
17297
|
}
|
|
17290
17298
|
if (filter.type === "interval") {
|
|
17291
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
17292
|
-
children: /* @__PURE__ */ jsx(FilterInterval, _object_spread$
|
|
17299
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$r(_object_spread$s({}, props), {
|
|
17300
|
+
children: /* @__PURE__ */ jsx(FilterInterval, _object_spread$s({
|
|
17293
17301
|
value,
|
|
17294
17302
|
labelName: filter.name,
|
|
17295
17303
|
localeKey: translatesLocaleKey,
|
|
@@ -17302,7 +17310,7 @@ function Filter(param) {
|
|
|
17302
17310
|
console.warn("%cДля фильтра ".concat(filter.name, " не задан тип или component"), "background: red; color: black");
|
|
17303
17311
|
return null;
|
|
17304
17312
|
}
|
|
17305
|
-
var useStyles$
|
|
17313
|
+
var useStyles$s = createThemedStyles("FiltersPaneSearch", {
|
|
17306
17314
|
root: {
|
|
17307
17315
|
display: "flex",
|
|
17308
17316
|
position: "relative",
|
|
@@ -17314,7 +17322,7 @@ var useStyles$r = createThemedStyles("FiltersPaneSearch", {
|
|
|
17314
17322
|
],
|
|
17315
17323
|
borderRadius: 18,
|
|
17316
17324
|
paddingRight: 8,
|
|
17317
|
-
transition:
|
|
17325
|
+
transition: animations.defaultTransition,
|
|
17318
17326
|
transitionProperty: "background-color, border-color"
|
|
17319
17327
|
},
|
|
17320
17328
|
focused: {
|
|
@@ -17411,7 +17419,7 @@ function _array_with_holes$c(arr) {
|
|
|
17411
17419
|
if (Array.isArray(arr))
|
|
17412
17420
|
return arr;
|
|
17413
17421
|
}
|
|
17414
|
-
function _define_property$
|
|
17422
|
+
function _define_property$s(obj, key, value) {
|
|
17415
17423
|
if (key in obj) {
|
|
17416
17424
|
Object.defineProperty(obj, key, {
|
|
17417
17425
|
value,
|
|
@@ -17455,7 +17463,7 @@ function _iterable_to_array_limit$c(arr, i) {
|
|
|
17455
17463
|
function _non_iterable_rest$c() {
|
|
17456
17464
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17457
17465
|
}
|
|
17458
|
-
function _object_spread$
|
|
17466
|
+
function _object_spread$r(target) {
|
|
17459
17467
|
for (var i = 1; i < arguments.length; i++) {
|
|
17460
17468
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
17461
17469
|
var ownKeys2 = Object.keys(source);
|
|
@@ -17465,12 +17473,12 @@ function _object_spread$q(target) {
|
|
|
17465
17473
|
}));
|
|
17466
17474
|
}
|
|
17467
17475
|
ownKeys2.forEach(function(key) {
|
|
17468
|
-
_define_property$
|
|
17476
|
+
_define_property$s(target, key, source[key]);
|
|
17469
17477
|
});
|
|
17470
17478
|
}
|
|
17471
17479
|
return target;
|
|
17472
17480
|
}
|
|
17473
|
-
function ownKeys$
|
|
17481
|
+
function ownKeys$q(object, enumerableOnly) {
|
|
17474
17482
|
var keys2 = Object.keys(object);
|
|
17475
17483
|
if (Object.getOwnPropertySymbols) {
|
|
17476
17484
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -17483,12 +17491,12 @@ function ownKeys$p(object, enumerableOnly) {
|
|
|
17483
17491
|
}
|
|
17484
17492
|
return keys2;
|
|
17485
17493
|
}
|
|
17486
|
-
function _object_spread_props$
|
|
17494
|
+
function _object_spread_props$q(target, source) {
|
|
17487
17495
|
source = source != null ? source : {};
|
|
17488
17496
|
if (Object.getOwnPropertyDescriptors) {
|
|
17489
17497
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
17490
17498
|
} else {
|
|
17491
|
-
ownKeys$
|
|
17499
|
+
ownKeys$q(Object(source)).forEach(function(key) {
|
|
17492
17500
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
17493
17501
|
});
|
|
17494
17502
|
}
|
|
@@ -17512,7 +17520,7 @@ function _unsupported_iterable_to_array$c(o, minLen) {
|
|
|
17512
17520
|
}
|
|
17513
17521
|
function FiltersPaneSearch(param) {
|
|
17514
17522
|
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;
|
|
17515
|
-
var classes = useStyles$
|
|
17523
|
+
var classes = useStyles$s({
|
|
17516
17524
|
theme: tweakStyles
|
|
17517
17525
|
});
|
|
17518
17526
|
var tweakSearchInputStyles = useTweakStyles({
|
|
@@ -17558,8 +17566,8 @@ function FiltersPaneSearch(param) {
|
|
|
17558
17566
|
field
|
|
17559
17567
|
]);
|
|
17560
17568
|
var _obj;
|
|
17561
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
17562
|
-
className: clsx(classes.root, (_obj = {}, _define_property$
|
|
17569
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$q(_object_spread$r({
|
|
17570
|
+
className: clsx(classes.root, (_obj = {}, _define_property$s(_obj, classes.focused, isInputFocused), _define_property$s(_obj, classes.disabled, isDisabled), _obj)),
|
|
17563
17571
|
ref: refRoot,
|
|
17564
17572
|
"data-testid": testId
|
|
17565
17573
|
}, addDataAttributes(data)), {
|
|
@@ -17624,7 +17632,7 @@ function FiltersPaneSearch(param) {
|
|
|
17624
17632
|
]
|
|
17625
17633
|
}));
|
|
17626
17634
|
}
|
|
17627
|
-
var useStyles$
|
|
17635
|
+
var useStyles$r = createThemedStyles("FilterValueView", {
|
|
17628
17636
|
text: {
|
|
17629
17637
|
overflow: "hidden",
|
|
17630
17638
|
textOverflow: "ellipsis",
|
|
@@ -17643,7 +17651,7 @@ function _instanceof$1(left2, right2) {
|
|
|
17643
17651
|
}
|
|
17644
17652
|
function FilterValueView(param) {
|
|
17645
17653
|
var locale2 = param.locale, localeKey = param.localeKey, filter = param.filter, value = param.value, tweakStyles = param.tweakStyles;
|
|
17646
|
-
var classes = useStyles$
|
|
17654
|
+
var classes = useStyles$r({
|
|
17647
17655
|
theme: tweakStyles
|
|
17648
17656
|
});
|
|
17649
17657
|
var _filter_localeKey;
|
|
@@ -17794,10 +17802,10 @@ function FilterValueView(param) {
|
|
|
17794
17802
|
children: displayValue(value)
|
|
17795
17803
|
});
|
|
17796
17804
|
}
|
|
17797
|
-
var useStyles$
|
|
17805
|
+
var useStyles$q = createThemedStyles("FilterWrapper", {
|
|
17798
17806
|
root: {
|
|
17799
17807
|
position: "relative",
|
|
17800
|
-
transition:
|
|
17808
|
+
transition: animations.defaultTransition,
|
|
17801
17809
|
transitionProperty: "background-color, border-color",
|
|
17802
17810
|
border: [
|
|
17803
17811
|
1,
|
|
@@ -17920,7 +17928,7 @@ function _array_with_holes$b(arr) {
|
|
|
17920
17928
|
if (Array.isArray(arr))
|
|
17921
17929
|
return arr;
|
|
17922
17930
|
}
|
|
17923
|
-
function _define_property$
|
|
17931
|
+
function _define_property$r(obj, key, value) {
|
|
17924
17932
|
if (key in obj) {
|
|
17925
17933
|
Object.defineProperty(obj, key, {
|
|
17926
17934
|
value,
|
|
@@ -17964,7 +17972,7 @@ function _iterable_to_array_limit$b(arr, i) {
|
|
|
17964
17972
|
function _non_iterable_rest$b() {
|
|
17965
17973
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17966
17974
|
}
|
|
17967
|
-
function _object_spread$
|
|
17975
|
+
function _object_spread$q(target) {
|
|
17968
17976
|
for (var i = 1; i < arguments.length; i++) {
|
|
17969
17977
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
17970
17978
|
var ownKeys2 = Object.keys(source);
|
|
@@ -17974,12 +17982,12 @@ function _object_spread$p(target) {
|
|
|
17974
17982
|
}));
|
|
17975
17983
|
}
|
|
17976
17984
|
ownKeys2.forEach(function(key) {
|
|
17977
|
-
_define_property$
|
|
17985
|
+
_define_property$r(target, key, source[key]);
|
|
17978
17986
|
});
|
|
17979
17987
|
}
|
|
17980
17988
|
return target;
|
|
17981
17989
|
}
|
|
17982
|
-
function ownKeys$
|
|
17990
|
+
function ownKeys$p(object, enumerableOnly) {
|
|
17983
17991
|
var keys2 = Object.keys(object);
|
|
17984
17992
|
if (Object.getOwnPropertySymbols) {
|
|
17985
17993
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -17992,12 +18000,12 @@ function ownKeys$o(object, enumerableOnly) {
|
|
|
17992
18000
|
}
|
|
17993
18001
|
return keys2;
|
|
17994
18002
|
}
|
|
17995
|
-
function _object_spread_props$
|
|
18003
|
+
function _object_spread_props$p(target, source) {
|
|
17996
18004
|
source = source != null ? source : {};
|
|
17997
18005
|
if (Object.getOwnPropertyDescriptors) {
|
|
17998
18006
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
17999
18007
|
} else {
|
|
18000
|
-
ownKeys$
|
|
18008
|
+
ownKeys$p(Object(source)).forEach(function(key) {
|
|
18001
18009
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
18002
18010
|
});
|
|
18003
18011
|
}
|
|
@@ -18021,7 +18029,7 @@ function _unsupported_iterable_to_array$b(o, minLen) {
|
|
|
18021
18029
|
}
|
|
18022
18030
|
function FilterWrapper(param) {
|
|
18023
18031
|
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;
|
|
18024
|
-
var classes = useStyles$
|
|
18032
|
+
var classes = useStyles$q({
|
|
18025
18033
|
theme: tweakStyles
|
|
18026
18034
|
});
|
|
18027
18035
|
var tweakFilterValueViewStyles = useTweakStyles({
|
|
@@ -18061,14 +18069,14 @@ function FilterWrapper(param) {
|
|
|
18061
18069
|
};
|
|
18062
18070
|
var isBoolean = filter.type === "boolean";
|
|
18063
18071
|
var _obj;
|
|
18064
|
-
return !filter.isInline ? /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
18065
|
-
className: clsx(classes.root, (_obj = {}, _define_property$
|
|
18072
|
+
return !filter.isInline ? /* @__PURE__ */ jsxs("div", _object_spread_props$p(_object_spread$q({
|
|
18073
|
+
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))
|
|
18066
18074
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
18067
18075
|
children: [
|
|
18068
18076
|
/* @__PURE__ */ jsxs("div", {
|
|
18069
18077
|
ref: refItem,
|
|
18070
18078
|
onClick: handleLabelClick,
|
|
18071
|
-
className: clsx(classes.item, _define_property$
|
|
18079
|
+
className: clsx(classes.item, _define_property$r({}, classes.booleanItem, isBoolean)),
|
|
18072
18080
|
children: [
|
|
18073
18081
|
/* @__PURE__ */ jsx("div", {
|
|
18074
18082
|
className: classes.name,
|
|
@@ -18130,7 +18138,7 @@ function FilterWrapper(param) {
|
|
|
18130
18138
|
classes
|
|
18131
18139
|
});
|
|
18132
18140
|
}
|
|
18133
|
-
function _define_property$
|
|
18141
|
+
function _define_property$q(obj, key, value) {
|
|
18134
18142
|
if (key in obj) {
|
|
18135
18143
|
Object.defineProperty(obj, key, {
|
|
18136
18144
|
value,
|
|
@@ -18143,7 +18151,7 @@ function _define_property$p(obj, key, value) {
|
|
|
18143
18151
|
}
|
|
18144
18152
|
return obj;
|
|
18145
18153
|
}
|
|
18146
|
-
function _object_spread$
|
|
18154
|
+
function _object_spread$p(target) {
|
|
18147
18155
|
for (var i = 1; i < arguments.length; i++) {
|
|
18148
18156
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
18149
18157
|
var ownKeys2 = Object.keys(source);
|
|
@@ -18153,12 +18161,12 @@ function _object_spread$o(target) {
|
|
|
18153
18161
|
}));
|
|
18154
18162
|
}
|
|
18155
18163
|
ownKeys2.forEach(function(key) {
|
|
18156
|
-
_define_property$
|
|
18164
|
+
_define_property$q(target, key, source[key]);
|
|
18157
18165
|
});
|
|
18158
18166
|
}
|
|
18159
18167
|
return target;
|
|
18160
18168
|
}
|
|
18161
|
-
function ownKeys$
|
|
18169
|
+
function ownKeys$o(object, enumerableOnly) {
|
|
18162
18170
|
var keys2 = Object.keys(object);
|
|
18163
18171
|
if (Object.getOwnPropertySymbols) {
|
|
18164
18172
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -18171,12 +18179,12 @@ function ownKeys$n(object, enumerableOnly) {
|
|
|
18171
18179
|
}
|
|
18172
18180
|
return keys2;
|
|
18173
18181
|
}
|
|
18174
|
-
function _object_spread_props$
|
|
18182
|
+
function _object_spread_props$o(target, source) {
|
|
18175
18183
|
source = source != null ? source : {};
|
|
18176
18184
|
if (Object.getOwnPropertyDescriptors) {
|
|
18177
18185
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
18178
18186
|
} else {
|
|
18179
|
-
ownKeys$
|
|
18187
|
+
ownKeys$o(Object(source)).forEach(function(key) {
|
|
18180
18188
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
18181
18189
|
});
|
|
18182
18190
|
}
|
|
@@ -18184,7 +18192,7 @@ function _object_spread_props$n(target, source) {
|
|
|
18184
18192
|
}
|
|
18185
18193
|
function FiltersPane(param) {
|
|
18186
18194
|
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;
|
|
18187
|
-
var classes = useStyles$
|
|
18195
|
+
var classes = useStyles$y({
|
|
18188
18196
|
theme: tweakStyles
|
|
18189
18197
|
});
|
|
18190
18198
|
var tweakClearButtonStyles = useTweakStyles({
|
|
@@ -18227,12 +18235,12 @@ function FiltersPane(param) {
|
|
|
18227
18235
|
})
|
|
18228
18236
|
});
|
|
18229
18237
|
var _search_localeKey, _search_localeKey1, _search_isDisabled;
|
|
18230
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
18238
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$o(_object_spread$p({
|
|
18231
18239
|
className: classes.root,
|
|
18232
18240
|
ref
|
|
18233
18241
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
18234
18242
|
children: [
|
|
18235
|
-
onSettingsButtonClick !== void 0 && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
18243
|
+
onSettingsButtonClick !== void 0 && /* @__PURE__ */ jsx("div", _object_spread_props$o(_object_spread$p({
|
|
18236
18244
|
className: classes.settings,
|
|
18237
18245
|
tabIndex: 0
|
|
18238
18246
|
}, addDataTestId(testId, "settings-button")), {
|
|
@@ -18244,7 +18252,7 @@ function FiltersPane(param) {
|
|
|
18244
18252
|
})
|
|
18245
18253
|
})
|
|
18246
18254
|
})),
|
|
18247
|
-
search !== void 0 && /* @__PURE__ */ jsx(FiltersPaneSearch, _object_spread_props$
|
|
18255
|
+
search !== void 0 && /* @__PURE__ */ jsx(FiltersPaneSearch, _object_spread_props$o(_object_spread$p({}, search), {
|
|
18248
18256
|
locale: getLocale$1((_search_localeKey = search.localeKey) !== null && _search_localeKey !== void 0 ? _search_localeKey : localeKey, search.locale, locale2),
|
|
18249
18257
|
localeKey: (_search_localeKey1 = search.localeKey) !== null && _search_localeKey1 !== void 0 ? _search_localeKey1 : localeKey,
|
|
18250
18258
|
isDisabled: (_search_isDisabled = search.isDisabled) !== null && _search_isDisabled !== void 0 ? _search_isDisabled : isDisabled,
|
|
@@ -18267,7 +18275,7 @@ function FiltersPane(param) {
|
|
|
18267
18275
|
locale: locale2,
|
|
18268
18276
|
localeKey,
|
|
18269
18277
|
onChange: function(value) {
|
|
18270
|
-
return onChangeFilters(_object_spread_props$
|
|
18278
|
+
return onChangeFilters(_object_spread_props$o(_object_spread$p({}, values), _define_property$q({}, key, value)));
|
|
18271
18279
|
},
|
|
18272
18280
|
value: currentValue,
|
|
18273
18281
|
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) {
|
|
@@ -24397,7 +24405,7 @@ const Flags = {
|
|
|
24397
24405
|
ZM,
|
|
24398
24406
|
ZW
|
|
24399
24407
|
};
|
|
24400
|
-
var useStyles$
|
|
24408
|
+
var useStyles$p = createThemedStyles("Flag", {
|
|
24401
24409
|
root: {
|
|
24402
24410
|
// приходится хардкодить в компоненте, тк либа Flags выдает флаги с 2-3 пиксельным отступом снизу
|
|
24403
24411
|
// если будет нужно, то можно вынести border на уровень пропсов
|
|
@@ -24415,7 +24423,7 @@ var useStyles$o = createThemedStyles("Flag", {
|
|
|
24415
24423
|
});
|
|
24416
24424
|
var Flag = function(param) {
|
|
24417
24425
|
var _param_countryCode = param.countryCode, countryCode = _param_countryCode === void 0 ? "" : _param_countryCode, tweakStyles = param.tweakStyles;
|
|
24418
|
-
var classes = useStyles$
|
|
24426
|
+
var classes = useStyles$p({
|
|
24419
24427
|
theme: tweakStyles
|
|
24420
24428
|
});
|
|
24421
24429
|
var CC3 = countryCode.toUpperCase();
|
|
@@ -24431,7 +24439,7 @@ var Flag = function(param) {
|
|
|
24431
24439
|
className: classes.root
|
|
24432
24440
|
});
|
|
24433
24441
|
};
|
|
24434
|
-
var useStyles$
|
|
24442
|
+
var useStyles$o = createThemedStyles("Skeleton", {
|
|
24435
24443
|
root: {
|
|
24436
24444
|
display: "flex",
|
|
24437
24445
|
width: "100%",
|
|
@@ -24467,7 +24475,7 @@ var useStyles$n = createThemedStyles("Skeleton", {
|
|
|
24467
24475
|
});
|
|
24468
24476
|
var Skeleton = function(param) {
|
|
24469
24477
|
var height = param.height, tweakStyles = param.tweakStyles;
|
|
24470
|
-
var classes = useStyles$
|
|
24478
|
+
var classes = useStyles$o({
|
|
24471
24479
|
theme: tweakStyles
|
|
24472
24480
|
});
|
|
24473
24481
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -24493,7 +24501,7 @@ var formatCellContent = function(value, config) {
|
|
|
24493
24501
|
return _instanceof(value, Date) ? format(value, (_config_dateFormat = config === null || config === void 0 ? void 0 : config.dateFormat) !== null && _config_dateFormat !== void 0 ? _config_dateFormat : DEFAULT_DATE_FORMAT) : String(value);
|
|
24494
24502
|
};
|
|
24495
24503
|
var STICKY_SHADOW_PADDING = 12;
|
|
24496
|
-
var useStyles$
|
|
24504
|
+
var useStyles$n = createThemedStyles("FlexibleTable", {
|
|
24497
24505
|
root: {
|
|
24498
24506
|
width: "100%",
|
|
24499
24507
|
position: "relative",
|
|
@@ -24556,11 +24564,8 @@ var useStyles$m = createThemedStyles("FlexibleTable", {
|
|
|
24556
24564
|
background: "transparent",
|
|
24557
24565
|
pointerEvents: "none",
|
|
24558
24566
|
zIndex: 1,
|
|
24559
|
-
transition:
|
|
24560
|
-
|
|
24561
|
-
"0.25s",
|
|
24562
|
-
"ease-in-out"
|
|
24563
|
-
],
|
|
24567
|
+
transition: animations.defaultTransition,
|
|
24568
|
+
transitionProperty: "box-shadow",
|
|
24564
24569
|
"[data-scrolled] &": {
|
|
24565
24570
|
boxShadow: "4px 0 4px rgba(0, 0, 0, 0.05)"
|
|
24566
24571
|
}
|
|
@@ -24583,7 +24588,7 @@ var useStyles$m = createThemedStyles("FlexibleTable", {
|
|
|
24583
24588
|
nothingFoundRow: {},
|
|
24584
24589
|
nothingFound: {}
|
|
24585
24590
|
});
|
|
24586
|
-
function _define_property$
|
|
24591
|
+
function _define_property$p(obj, key, value) {
|
|
24587
24592
|
if (key in obj) {
|
|
24588
24593
|
Object.defineProperty(obj, key, {
|
|
24589
24594
|
value,
|
|
@@ -24596,7 +24601,7 @@ function _define_property$o(obj, key, value) {
|
|
|
24596
24601
|
}
|
|
24597
24602
|
return obj;
|
|
24598
24603
|
}
|
|
24599
|
-
function _object_spread$
|
|
24604
|
+
function _object_spread$o(target) {
|
|
24600
24605
|
for (var i = 1; i < arguments.length; i++) {
|
|
24601
24606
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
24602
24607
|
var ownKeys2 = Object.keys(source);
|
|
@@ -24606,12 +24611,12 @@ function _object_spread$n(target) {
|
|
|
24606
24611
|
}));
|
|
24607
24612
|
}
|
|
24608
24613
|
ownKeys2.forEach(function(key) {
|
|
24609
|
-
_define_property$
|
|
24614
|
+
_define_property$p(target, key, source[key]);
|
|
24610
24615
|
});
|
|
24611
24616
|
}
|
|
24612
24617
|
return target;
|
|
24613
24618
|
}
|
|
24614
|
-
function ownKeys$
|
|
24619
|
+
function ownKeys$n(object, enumerableOnly) {
|
|
24615
24620
|
var keys2 = Object.keys(object);
|
|
24616
24621
|
if (Object.getOwnPropertySymbols) {
|
|
24617
24622
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -24624,18 +24629,18 @@ function ownKeys$m(object, enumerableOnly) {
|
|
|
24624
24629
|
}
|
|
24625
24630
|
return keys2;
|
|
24626
24631
|
}
|
|
24627
|
-
function _object_spread_props$
|
|
24632
|
+
function _object_spread_props$n(target, source) {
|
|
24628
24633
|
source = source != null ? source : {};
|
|
24629
24634
|
if (Object.getOwnPropertyDescriptors) {
|
|
24630
24635
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
24631
24636
|
} else {
|
|
24632
|
-
ownKeys$
|
|
24637
|
+
ownKeys$n(Object(source)).forEach(function(key) {
|
|
24633
24638
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
24634
24639
|
});
|
|
24635
24640
|
}
|
|
24636
24641
|
return target;
|
|
24637
24642
|
}
|
|
24638
|
-
var useStyles$
|
|
24643
|
+
var useStyles$m = createThemedStyles("FlexibleTableCell", {
|
|
24639
24644
|
root: {
|
|
24640
24645
|
position: "relative",
|
|
24641
24646
|
boxSizing: "content-box",
|
|
@@ -24648,7 +24653,7 @@ var useStyles$l = createThemedStyles("FlexibleTableCell", {
|
|
|
24648
24653
|
zIndex: 5,
|
|
24649
24654
|
verticalAlign: "top"
|
|
24650
24655
|
},
|
|
24651
|
-
sticky: _object_spread_props$
|
|
24656
|
+
sticky: _object_spread_props$n(_object_spread$o({
|
|
24652
24657
|
zIndex: 19,
|
|
24653
24658
|
paddingLeft: 24,
|
|
24654
24659
|
paddingRight: 12
|
|
@@ -24667,7 +24672,7 @@ var useStyles$l = createThemedStyles("FlexibleTableCell", {
|
|
|
24667
24672
|
height: 21
|
|
24668
24673
|
}
|
|
24669
24674
|
});
|
|
24670
|
-
function _define_property$
|
|
24675
|
+
function _define_property$o(obj, key, value) {
|
|
24671
24676
|
if (key in obj) {
|
|
24672
24677
|
Object.defineProperty(obj, key, {
|
|
24673
24678
|
value,
|
|
@@ -24680,7 +24685,7 @@ function _define_property$n(obj, key, value) {
|
|
|
24680
24685
|
}
|
|
24681
24686
|
return obj;
|
|
24682
24687
|
}
|
|
24683
|
-
function _object_spread$
|
|
24688
|
+
function _object_spread$n(target) {
|
|
24684
24689
|
for (var i = 1; i < arguments.length; i++) {
|
|
24685
24690
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
24686
24691
|
var ownKeys2 = Object.keys(source);
|
|
@@ -24690,12 +24695,12 @@ function _object_spread$m(target) {
|
|
|
24690
24695
|
}));
|
|
24691
24696
|
}
|
|
24692
24697
|
ownKeys2.forEach(function(key) {
|
|
24693
|
-
_define_property$
|
|
24698
|
+
_define_property$o(target, key, source[key]);
|
|
24694
24699
|
});
|
|
24695
24700
|
}
|
|
24696
24701
|
return target;
|
|
24697
24702
|
}
|
|
24698
|
-
function ownKeys$
|
|
24703
|
+
function ownKeys$m(object, enumerableOnly) {
|
|
24699
24704
|
var keys2 = Object.keys(object);
|
|
24700
24705
|
if (Object.getOwnPropertySymbols) {
|
|
24701
24706
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -24708,21 +24713,21 @@ function ownKeys$l(object, enumerableOnly) {
|
|
|
24708
24713
|
}
|
|
24709
24714
|
return keys2;
|
|
24710
24715
|
}
|
|
24711
|
-
function _object_spread_props$
|
|
24716
|
+
function _object_spread_props$m(target, source) {
|
|
24712
24717
|
source = source != null ? source : {};
|
|
24713
24718
|
if (Object.getOwnPropertyDescriptors) {
|
|
24714
24719
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
24715
24720
|
} else {
|
|
24716
|
-
ownKeys$
|
|
24721
|
+
ownKeys$m(Object(source)).forEach(function(key) {
|
|
24717
24722
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
24718
24723
|
});
|
|
24719
24724
|
}
|
|
24720
24725
|
return target;
|
|
24721
24726
|
}
|
|
24722
|
-
function _object_without_properties$
|
|
24727
|
+
function _object_without_properties$7(source, excluded) {
|
|
24723
24728
|
if (source == null)
|
|
24724
24729
|
return {};
|
|
24725
|
-
var target = _object_without_properties_loose$
|
|
24730
|
+
var target = _object_without_properties_loose$7(source, excluded);
|
|
24726
24731
|
var key, i;
|
|
24727
24732
|
if (Object.getOwnPropertySymbols) {
|
|
24728
24733
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -24737,7 +24742,7 @@ function _object_without_properties$6(source, excluded) {
|
|
|
24737
24742
|
}
|
|
24738
24743
|
return target;
|
|
24739
24744
|
}
|
|
24740
|
-
function _object_without_properties_loose$
|
|
24745
|
+
function _object_without_properties_loose$7(source, excluded) {
|
|
24741
24746
|
if (source == null)
|
|
24742
24747
|
return {};
|
|
24743
24748
|
var target = {};
|
|
@@ -24752,7 +24757,7 @@ function _object_without_properties_loose$6(source, excluded) {
|
|
|
24752
24757
|
return target;
|
|
24753
24758
|
}
|
|
24754
24759
|
function FlexibleTableCell(_param) {
|
|
24755
|
-
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$
|
|
24760
|
+
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, [
|
|
24756
24761
|
"row",
|
|
24757
24762
|
"columnName",
|
|
24758
24763
|
"config",
|
|
@@ -24762,7 +24767,7 @@ function FlexibleTableCell(_param) {
|
|
|
24762
24767
|
"isLoading",
|
|
24763
24768
|
"tweakStyles"
|
|
24764
24769
|
]);
|
|
24765
|
-
var classes = useStyles$
|
|
24770
|
+
var classes = useStyles$m({
|
|
24766
24771
|
theme: tweakStyles
|
|
24767
24772
|
});
|
|
24768
24773
|
var _config_columnName;
|
|
@@ -24771,7 +24776,7 @@ function FlexibleTableCell(_param) {
|
|
|
24771
24776
|
var TableCell = renderMode === "divs" ? "div" : "td";
|
|
24772
24777
|
var _obj;
|
|
24773
24778
|
return /* @__PURE__ */ jsx(TableCell, {
|
|
24774
|
-
className: clsx(classes.root, (_obj = {}, _define_property$
|
|
24779
|
+
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)),
|
|
24775
24780
|
style: {
|
|
24776
24781
|
textAlign: cellAlign,
|
|
24777
24782
|
position: isSticky ? "sticky" : position,
|
|
@@ -24783,14 +24788,14 @@ function FlexibleTableCell(_param) {
|
|
|
24783
24788
|
className: classes.skeleton,
|
|
24784
24789
|
children: /* @__PURE__ */ jsx(Skeleton, {})
|
|
24785
24790
|
}) : isNotEmpty(value) && /* @__PURE__ */ jsx(Fragment, {
|
|
24786
|
-
children: isNotEmpty(component) ? component(_object_spread_props$
|
|
24791
|
+
children: isNotEmpty(component) ? component(_object_spread_props$m(_object_spread$n({}, valueComponentProps), {
|
|
24787
24792
|
value,
|
|
24788
24793
|
row
|
|
24789
24794
|
})) : formatCellContent(value, config[columnName])
|
|
24790
24795
|
})
|
|
24791
24796
|
});
|
|
24792
24797
|
}
|
|
24793
|
-
var useStyles$
|
|
24798
|
+
var useStyles$l = createThemedStyles("FlexibleTableRow", {
|
|
24794
24799
|
root: {
|
|
24795
24800
|
position: "relative"
|
|
24796
24801
|
},
|
|
@@ -24814,7 +24819,7 @@ function _array_with_holes$a(arr) {
|
|
|
24814
24819
|
if (Array.isArray(arr))
|
|
24815
24820
|
return arr;
|
|
24816
24821
|
}
|
|
24817
|
-
function _define_property$
|
|
24822
|
+
function _define_property$n(obj, key, value) {
|
|
24818
24823
|
if (key in obj) {
|
|
24819
24824
|
Object.defineProperty(obj, key, {
|
|
24820
24825
|
value,
|
|
@@ -24858,7 +24863,7 @@ function _iterable_to_array_limit$a(arr, i) {
|
|
|
24858
24863
|
function _non_iterable_rest$a() {
|
|
24859
24864
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
24860
24865
|
}
|
|
24861
|
-
function _object_spread$
|
|
24866
|
+
function _object_spread$m(target) {
|
|
24862
24867
|
for (var i = 1; i < arguments.length; i++) {
|
|
24863
24868
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
24864
24869
|
var ownKeys2 = Object.keys(source);
|
|
@@ -24868,12 +24873,12 @@ function _object_spread$l(target) {
|
|
|
24868
24873
|
}));
|
|
24869
24874
|
}
|
|
24870
24875
|
ownKeys2.forEach(function(key) {
|
|
24871
|
-
_define_property$
|
|
24876
|
+
_define_property$n(target, key, source[key]);
|
|
24872
24877
|
});
|
|
24873
24878
|
}
|
|
24874
24879
|
return target;
|
|
24875
24880
|
}
|
|
24876
|
-
function ownKeys$
|
|
24881
|
+
function ownKeys$l(object, enumerableOnly) {
|
|
24877
24882
|
var keys2 = Object.keys(object);
|
|
24878
24883
|
if (Object.getOwnPropertySymbols) {
|
|
24879
24884
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -24886,12 +24891,12 @@ function ownKeys$k(object, enumerableOnly) {
|
|
|
24886
24891
|
}
|
|
24887
24892
|
return keys2;
|
|
24888
24893
|
}
|
|
24889
|
-
function _object_spread_props$
|
|
24894
|
+
function _object_spread_props$l(target, source) {
|
|
24890
24895
|
source = source != null ? source : {};
|
|
24891
24896
|
if (Object.getOwnPropertyDescriptors) {
|
|
24892
24897
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
24893
24898
|
} else {
|
|
24894
|
-
ownKeys$
|
|
24899
|
+
ownKeys$l(Object(source)).forEach(function(key) {
|
|
24895
24900
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
24896
24901
|
});
|
|
24897
24902
|
}
|
|
@@ -24915,7 +24920,7 @@ function _unsupported_iterable_to_array$a(o, minLen) {
|
|
|
24915
24920
|
}
|
|
24916
24921
|
function FlexibleTableRowInner(param) {
|
|
24917
24922
|
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;
|
|
24918
|
-
var classes = useStyles$
|
|
24923
|
+
var classes = useStyles$l({
|
|
24919
24924
|
theme: tweakStyles
|
|
24920
24925
|
});
|
|
24921
24926
|
var tweakTableCellStyles = useTweakStyles({
|
|
@@ -24944,7 +24949,7 @@ function FlexibleTableRowInner(param) {
|
|
|
24944
24949
|
var isClickable = !isLoading && (isNotEmpty(onRowClick) || isNotEmpty(expandableRowComponent));
|
|
24945
24950
|
var isNestedComponentExpanded = nestedComponent.isOpen, nestedComponentCellKey = nestedComponent.cellKey;
|
|
24946
24951
|
var rowData = rowAttributes === null || rowAttributes === void 0 ? void 0 : rowAttributes.reduce(function(acc, cur) {
|
|
24947
|
-
return _object_spread_props$
|
|
24952
|
+
return _object_spread_props$l(_object_spread$m({}, acc), _define_property$n({}, cur, item[cur]));
|
|
24948
24953
|
}, {});
|
|
24949
24954
|
var handleMouseEnter = function(event) {
|
|
24950
24955
|
if (isNotEmpty(uniqueField) && isNotEmpty(onRowHover)) {
|
|
@@ -24992,13 +24997,13 @@ function FlexibleTableRowInner(param) {
|
|
|
24992
24997
|
var _obj;
|
|
24993
24998
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
24994
24999
|
children: [
|
|
24995
|
-
/* @__PURE__ */ jsx(TableRow, _object_spread_props$
|
|
24996
|
-
className: clsx(classes.root, (_obj = {}, _define_property$
|
|
25000
|
+
/* @__PURE__ */ jsx(TableRow, _object_spread_props$l(_object_spread$m({
|
|
25001
|
+
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))
|
|
24997
25002
|
}, !isLoading && {
|
|
24998
25003
|
onClick: handleRowClick,
|
|
24999
25004
|
onMouseEnter: handleMouseEnter,
|
|
25000
25005
|
onMouseLeave: handleMouseLeave
|
|
25001
|
-
}, addDataAttributes(_object_spread_props$
|
|
25006
|
+
}, addDataAttributes(_object_spread_props$l(_object_spread$m({}, rowData), {
|
|
25002
25007
|
active: isActive ? true : void 0,
|
|
25003
25008
|
editable: isEditable ? true : void 0,
|
|
25004
25009
|
isExpandableComponentActive: isNestedComponentExpanded ? true : void 0
|
|
@@ -25034,7 +25039,7 @@ function FlexibleTableRowInner(param) {
|
|
|
25034
25039
|
});
|
|
25035
25040
|
}
|
|
25036
25041
|
var FlexibleTableRow = /* @__PURE__ */ memo(FlexibleTableRowInner);
|
|
25037
|
-
function _define_property$
|
|
25042
|
+
function _define_property$m(obj, key, value) {
|
|
25038
25043
|
if (key in obj) {
|
|
25039
25044
|
Object.defineProperty(obj, key, {
|
|
25040
25045
|
value,
|
|
@@ -25047,7 +25052,7 @@ function _define_property$l(obj, key, value) {
|
|
|
25047
25052
|
}
|
|
25048
25053
|
return obj;
|
|
25049
25054
|
}
|
|
25050
|
-
function _object_spread$
|
|
25055
|
+
function _object_spread$l(target) {
|
|
25051
25056
|
for (var i = 1; i < arguments.length; i++) {
|
|
25052
25057
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
25053
25058
|
var ownKeys2 = Object.keys(source);
|
|
@@ -25057,12 +25062,12 @@ function _object_spread$k(target) {
|
|
|
25057
25062
|
}));
|
|
25058
25063
|
}
|
|
25059
25064
|
ownKeys2.forEach(function(key) {
|
|
25060
|
-
_define_property$
|
|
25065
|
+
_define_property$m(target, key, source[key]);
|
|
25061
25066
|
});
|
|
25062
25067
|
}
|
|
25063
25068
|
return target;
|
|
25064
25069
|
}
|
|
25065
|
-
function ownKeys$
|
|
25070
|
+
function ownKeys$k(object, enumerableOnly) {
|
|
25066
25071
|
var keys2 = Object.keys(object);
|
|
25067
25072
|
if (Object.getOwnPropertySymbols) {
|
|
25068
25073
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -25075,21 +25080,21 @@ function ownKeys$j(object, enumerableOnly) {
|
|
|
25075
25080
|
}
|
|
25076
25081
|
return keys2;
|
|
25077
25082
|
}
|
|
25078
|
-
function _object_spread_props$
|
|
25083
|
+
function _object_spread_props$k(target, source) {
|
|
25079
25084
|
source = source != null ? source : {};
|
|
25080
25085
|
if (Object.getOwnPropertyDescriptors) {
|
|
25081
25086
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
25082
25087
|
} else {
|
|
25083
|
-
ownKeys$
|
|
25088
|
+
ownKeys$k(Object(source)).forEach(function(key) {
|
|
25084
25089
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
25085
25090
|
});
|
|
25086
25091
|
}
|
|
25087
25092
|
return target;
|
|
25088
25093
|
}
|
|
25089
|
-
function _object_without_properties$
|
|
25094
|
+
function _object_without_properties$6(source, excluded) {
|
|
25090
25095
|
if (source == null)
|
|
25091
25096
|
return {};
|
|
25092
|
-
var target = _object_without_properties_loose$
|
|
25097
|
+
var target = _object_without_properties_loose$6(source, excluded);
|
|
25093
25098
|
var key, i;
|
|
25094
25099
|
if (Object.getOwnPropertySymbols) {
|
|
25095
25100
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -25104,7 +25109,7 @@ function _object_without_properties$5(source, excluded) {
|
|
|
25104
25109
|
}
|
|
25105
25110
|
return target;
|
|
25106
25111
|
}
|
|
25107
|
-
function _object_without_properties_loose$
|
|
25112
|
+
function _object_without_properties_loose$6(source, excluded) {
|
|
25108
25113
|
if (source == null)
|
|
25109
25114
|
return {};
|
|
25110
25115
|
var target = {};
|
|
@@ -25119,7 +25124,7 @@ function _object_without_properties_loose$5(source, excluded) {
|
|
|
25119
25124
|
return target;
|
|
25120
25125
|
}
|
|
25121
25126
|
function FlexibleTable(_param) {
|
|
25122
|
-
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$
|
|
25127
|
+
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, [
|
|
25123
25128
|
"content",
|
|
25124
25129
|
"headerContent",
|
|
25125
25130
|
"config",
|
|
@@ -25135,7 +25140,7 @@ function FlexibleTable(_param) {
|
|
|
25135
25140
|
"tweakStyles",
|
|
25136
25141
|
"onHeadClick"
|
|
25137
25142
|
]);
|
|
25138
|
-
var classes = useStyles$
|
|
25143
|
+
var classes = useStyles$n({
|
|
25139
25144
|
theme: tweakStyles
|
|
25140
25145
|
});
|
|
25141
25146
|
var tweakTableRowStyles = useTweakStyles({
|
|
@@ -25153,7 +25158,7 @@ function FlexibleTable(_param) {
|
|
|
25153
25158
|
]);
|
|
25154
25159
|
var hasInfiniteScroll = isNotEmpty(infinityScrollConfig);
|
|
25155
25160
|
var uniqueField = restProps.uniqueField, _restProps_isFirstColumnSticky = restProps.isFirstColumnSticky, isFirstColumnSticky = _restProps_isFirstColumnSticky === void 0 ? false : _restProps_isFirstColumnSticky;
|
|
25156
|
-
var tableRowProps = _object_spread_props$
|
|
25161
|
+
var tableRowProps = _object_spread_props$k(_object_spread$l({}, restProps), {
|
|
25157
25162
|
renderMode,
|
|
25158
25163
|
config,
|
|
25159
25164
|
columns,
|
|
@@ -25242,10 +25247,10 @@ function FlexibleTable(_param) {
|
|
|
25242
25247
|
var TableCell = renderMode === "divs" ? "div" : "td";
|
|
25243
25248
|
return /* @__PURE__ */ jsx("div", {
|
|
25244
25249
|
ref,
|
|
25245
|
-
className: clsx(_define_property$
|
|
25246
|
-
children: /* @__PURE__ */ jsxs(Table, _object_spread_props$
|
|
25250
|
+
className: clsx(_define_property$m({}, classes.scroll, isHorizontallyScrollable)),
|
|
25251
|
+
children: /* @__PURE__ */ jsxs(Table, _object_spread_props$k(_object_spread$l({
|
|
25247
25252
|
className: classes.root
|
|
25248
|
-
}, addDataTestId(testId), addDataAttributes(_object_spread_props$
|
|
25253
|
+
}, addDataTestId(testId), addDataAttributes(_object_spread_props$k(_object_spread$l({}, data), {
|
|
25249
25254
|
isLoading
|
|
25250
25255
|
}))), {
|
|
25251
25256
|
children: [
|
|
@@ -25259,7 +25264,7 @@ function FlexibleTable(_param) {
|
|
|
25259
25264
|
var _itemConfig_titleAlign, _itemConfig_title;
|
|
25260
25265
|
var _obj;
|
|
25261
25266
|
return /* @__PURE__ */ jsx(TableHeader, {
|
|
25262
|
-
className: clsx(classes.header, (_obj = {}, _define_property$
|
|
25267
|
+
className: clsx(classes.header, (_obj = {}, _define_property$m(_obj, classes.headerSticky, isFirstColumnSticky && i === 0), _define_property$m(_obj, classes.headerSecond, isFirstColumnSticky && i === 1), _obj)),
|
|
25263
25268
|
style: {
|
|
25264
25269
|
minWidth: itemConfig === null || itemConfig === void 0 ? void 0 : itemConfig.minWidth,
|
|
25265
25270
|
width: itemConfig === null || itemConfig === void 0 ? void 0 : itemConfig.width,
|
|
@@ -25279,7 +25284,7 @@ function FlexibleTable(_param) {
|
|
|
25279
25284
|
/* @__PURE__ */ jsx(TableBody, {
|
|
25280
25285
|
className: classes.body,
|
|
25281
25286
|
children: isLoading ? indexMap(6, function(i) {
|
|
25282
|
-
return /* @__PURE__ */ createElement(FlexibleTableRow, _object_spread_props$
|
|
25287
|
+
return /* @__PURE__ */ createElement(FlexibleTableRow, _object_spread_props$k(_object_spread$l({}, tableRowProps), {
|
|
25283
25288
|
key: i,
|
|
25284
25289
|
item: {},
|
|
25285
25290
|
index: i
|
|
@@ -25295,7 +25300,7 @@ function FlexibleTable(_param) {
|
|
|
25295
25300
|
})
|
|
25296
25301
|
}),
|
|
25297
25302
|
content.map(function(item, i) {
|
|
25298
|
-
return /* @__PURE__ */ createElement(FlexibleTableRow, _object_spread_props$
|
|
25303
|
+
return /* @__PURE__ */ createElement(FlexibleTableRow, _object_spread_props$k(_object_spread$l({}, tableRowProps), {
|
|
25299
25304
|
key: isNotEmpty(uniqueField) ? item[uniqueField] : i,
|
|
25300
25305
|
item,
|
|
25301
25306
|
index: i
|
|
@@ -25322,6 +25327,196 @@ function FlexibleTable(_param) {
|
|
|
25322
25327
|
}))
|
|
25323
25328
|
});
|
|
25324
25329
|
}
|
|
25330
|
+
var BUTTON_SIZE_S = 24;
|
|
25331
|
+
var BUTTON_SIZE_M = 32;
|
|
25332
|
+
var ICON_SIZE = 20;
|
|
25333
|
+
var useStyles$k = createThemedStyles("IconButton", {
|
|
25334
|
+
root: {
|
|
25335
|
+
display: "flex",
|
|
25336
|
+
justifyContent: "center",
|
|
25337
|
+
alignItems: "center",
|
|
25338
|
+
cursor: "pointer",
|
|
25339
|
+
outline: "none",
|
|
25340
|
+
boxSizing: "border-box",
|
|
25341
|
+
transition: animations.defaultTransition,
|
|
25342
|
+
transitionProperty: "background-color, color, border-color",
|
|
25343
|
+
border: "none",
|
|
25344
|
+
position: "relative",
|
|
25345
|
+
boxShadow: "none",
|
|
25346
|
+
borderRadius: "50%",
|
|
25347
|
+
background: "none",
|
|
25348
|
+
padding: 0,
|
|
25349
|
+
flexShrink: 0,
|
|
25350
|
+
"&:disabled": {
|
|
25351
|
+
extend: "disabled"
|
|
25352
|
+
},
|
|
25353
|
+
"&:active": {
|
|
25354
|
+
extend: "active"
|
|
25355
|
+
}
|
|
25356
|
+
},
|
|
25357
|
+
"cancel-light": {},
|
|
25358
|
+
cancel: {},
|
|
25359
|
+
main: {},
|
|
25360
|
+
custom: {},
|
|
25361
|
+
active: {},
|
|
25362
|
+
disabled: {
|
|
25363
|
+
cursor: "not-allowed",
|
|
25364
|
+
pointerEvents: "none"
|
|
25365
|
+
},
|
|
25366
|
+
loading: {
|
|
25367
|
+
"& $content": {
|
|
25368
|
+
visibility: "hidden"
|
|
25369
|
+
},
|
|
25370
|
+
"& $loader": {
|
|
25371
|
+
display: "block"
|
|
25372
|
+
}
|
|
25373
|
+
},
|
|
25374
|
+
icon: {
|
|
25375
|
+
display: "flex",
|
|
25376
|
+
alignItems: "center",
|
|
25377
|
+
width: ICON_SIZE,
|
|
25378
|
+
height: ICON_SIZE
|
|
25379
|
+
},
|
|
25380
|
+
loader: {
|
|
25381
|
+
display: "none",
|
|
25382
|
+
position: "absolute",
|
|
25383
|
+
left: "50%",
|
|
25384
|
+
top: "50%",
|
|
25385
|
+
transform: "translate(-50%, -50%)",
|
|
25386
|
+
width: ICON_SIZE,
|
|
25387
|
+
height: ICON_SIZE
|
|
25388
|
+
},
|
|
25389
|
+
s: {
|
|
25390
|
+
width: BUTTON_SIZE_S,
|
|
25391
|
+
height: BUTTON_SIZE_S
|
|
25392
|
+
},
|
|
25393
|
+
m: {
|
|
25394
|
+
width: BUTTON_SIZE_M,
|
|
25395
|
+
height: BUTTON_SIZE_M
|
|
25396
|
+
}
|
|
25397
|
+
});
|
|
25398
|
+
function _define_property$l(obj, key, value) {
|
|
25399
|
+
if (key in obj) {
|
|
25400
|
+
Object.defineProperty(obj, key, {
|
|
25401
|
+
value,
|
|
25402
|
+
enumerable: true,
|
|
25403
|
+
configurable: true,
|
|
25404
|
+
writable: true
|
|
25405
|
+
});
|
|
25406
|
+
} else {
|
|
25407
|
+
obj[key] = value;
|
|
25408
|
+
}
|
|
25409
|
+
return obj;
|
|
25410
|
+
}
|
|
25411
|
+
function _object_spread$k(target) {
|
|
25412
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
25413
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
25414
|
+
var ownKeys2 = Object.keys(source);
|
|
25415
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
25416
|
+
ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
25417
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
25418
|
+
}));
|
|
25419
|
+
}
|
|
25420
|
+
ownKeys2.forEach(function(key) {
|
|
25421
|
+
_define_property$l(target, key, source[key]);
|
|
25422
|
+
});
|
|
25423
|
+
}
|
|
25424
|
+
return target;
|
|
25425
|
+
}
|
|
25426
|
+
function ownKeys$j(object, enumerableOnly) {
|
|
25427
|
+
var keys2 = Object.keys(object);
|
|
25428
|
+
if (Object.getOwnPropertySymbols) {
|
|
25429
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
25430
|
+
if (enumerableOnly) {
|
|
25431
|
+
symbols = symbols.filter(function(sym) {
|
|
25432
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
25433
|
+
});
|
|
25434
|
+
}
|
|
25435
|
+
keys2.push.apply(keys2, symbols);
|
|
25436
|
+
}
|
|
25437
|
+
return keys2;
|
|
25438
|
+
}
|
|
25439
|
+
function _object_spread_props$j(target, source) {
|
|
25440
|
+
source = source != null ? source : {};
|
|
25441
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
25442
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
25443
|
+
} else {
|
|
25444
|
+
ownKeys$j(Object(source)).forEach(function(key) {
|
|
25445
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
25446
|
+
});
|
|
25447
|
+
}
|
|
25448
|
+
return target;
|
|
25449
|
+
}
|
|
25450
|
+
function _object_without_properties$5(source, excluded) {
|
|
25451
|
+
if (source == null)
|
|
25452
|
+
return {};
|
|
25453
|
+
var target = _object_without_properties_loose$5(source, excluded);
|
|
25454
|
+
var key, i;
|
|
25455
|
+
if (Object.getOwnPropertySymbols) {
|
|
25456
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
25457
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
25458
|
+
key = sourceSymbolKeys[i];
|
|
25459
|
+
if (excluded.indexOf(key) >= 0)
|
|
25460
|
+
continue;
|
|
25461
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
25462
|
+
continue;
|
|
25463
|
+
target[key] = source[key];
|
|
25464
|
+
}
|
|
25465
|
+
}
|
|
25466
|
+
return target;
|
|
25467
|
+
}
|
|
25468
|
+
function _object_without_properties_loose$5(source, excluded) {
|
|
25469
|
+
if (source == null)
|
|
25470
|
+
return {};
|
|
25471
|
+
var target = {};
|
|
25472
|
+
var sourceKeys = Object.keys(source);
|
|
25473
|
+
var key, i;
|
|
25474
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
25475
|
+
key = sourceKeys[i];
|
|
25476
|
+
if (excluded.indexOf(key) >= 0)
|
|
25477
|
+
continue;
|
|
25478
|
+
target[key] = source[key];
|
|
25479
|
+
}
|
|
25480
|
+
return target;
|
|
25481
|
+
}
|
|
25482
|
+
var IconButton = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
25483
|
+
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, [
|
|
25484
|
+
"icon",
|
|
25485
|
+
"size",
|
|
25486
|
+
"view",
|
|
25487
|
+
"isDisabled",
|
|
25488
|
+
"isActive",
|
|
25489
|
+
"isLoading",
|
|
25490
|
+
"type",
|
|
25491
|
+
"testId",
|
|
25492
|
+
"tweakStyles",
|
|
25493
|
+
"data",
|
|
25494
|
+
"onClick"
|
|
25495
|
+
]);
|
|
25496
|
+
var classes = useStyles$k({
|
|
25497
|
+
theme: tweakStyles
|
|
25498
|
+
});
|
|
25499
|
+
var hasNoAction = isDisabled || isLoading;
|
|
25500
|
+
var _obj;
|
|
25501
|
+
return /* @__PURE__ */ jsx("button", _object_spread_props$j(_object_spread$k({
|
|
25502
|
+
ref,
|
|
25503
|
+
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)),
|
|
25504
|
+
type,
|
|
25505
|
+
disabled: isDisabled,
|
|
25506
|
+
onClick: hasNoAction ? void 0 : onClick
|
|
25507
|
+
}, restProps, addDataTestId(testId), addDataAttributes(data)), {
|
|
25508
|
+
children: isLoading ? /* @__PURE__ */ jsx("span", {
|
|
25509
|
+
className: classes.loader,
|
|
25510
|
+
children: /* @__PURE__ */ jsx(ThemedPreloader, {
|
|
25511
|
+
type: "default",
|
|
25512
|
+
useCurrentColor: true
|
|
25513
|
+
})
|
|
25514
|
+
}) : /* @__PURE__ */ jsx("span", {
|
|
25515
|
+
className: classes.icon,
|
|
25516
|
+
children: renderIcon(icon)
|
|
25517
|
+
})
|
|
25518
|
+
}));
|
|
25519
|
+
});
|
|
25325
25520
|
var BUTTONS_WIDTH = 36;
|
|
25326
25521
|
var BUTTONS_GAP = 2;
|
|
25327
25522
|
var useStyles$j = createThemedStyles("IncrementInput", {
|
|
@@ -25346,7 +25541,8 @@ var useStyles$j = createThemedStyles("IncrementInput", {
|
|
|
25346
25541
|
border: "none",
|
|
25347
25542
|
outline: "none",
|
|
25348
25543
|
backgroundColor: colors.GREY_BACKGROUND,
|
|
25349
|
-
transition:
|
|
25544
|
+
transition: animations.defaultTransition,
|
|
25545
|
+
transitionProperty: "background-color",
|
|
25350
25546
|
color: colors.FONT_MEDIUM,
|
|
25351
25547
|
cursor: "pointer",
|
|
25352
25548
|
display: "flex",
|
|
@@ -25555,6 +25751,8 @@ var VERTICAL_OVERLAY_PADDING = 50;
|
|
|
25555
25751
|
var MODAL_HORIZONTAL_PADDING_L = 40;
|
|
25556
25752
|
var MODAL_HORIZONTAL_PADDING_M = 36;
|
|
25557
25753
|
var MODAL_HORIZONTAL_PADDING_S = 26;
|
|
25754
|
+
var MODAL_CLOSE_BUTTON_SIZE = 40;
|
|
25755
|
+
var MODAL_CLOSE_BUTTON_ICON_SIZE = 30;
|
|
25558
25756
|
var useStyles$i = createThemedStyles("Modal", {
|
|
25559
25757
|
root: {},
|
|
25560
25758
|
fixedPosition: {
|
|
@@ -25813,6 +26011,16 @@ var useStyles$i = createThemedStyles("Modal", {
|
|
|
25813
26011
|
extend: "animationEnd"
|
|
25814
26012
|
}
|
|
25815
26013
|
});
|
|
26014
|
+
var closeButtonStyles = {
|
|
26015
|
+
m: {
|
|
26016
|
+
width: MODAL_CLOSE_BUTTON_SIZE,
|
|
26017
|
+
height: MODAL_CLOSE_BUTTON_SIZE
|
|
26018
|
+
},
|
|
26019
|
+
icon: {
|
|
26020
|
+
width: MODAL_CLOSE_BUTTON_ICON_SIZE,
|
|
26021
|
+
height: MODAL_CLOSE_BUTTON_ICON_SIZE
|
|
26022
|
+
}
|
|
26023
|
+
};
|
|
25816
26024
|
function _array_like_to_array$9(arr, len) {
|
|
25817
26025
|
if (len == null || len > arr.length)
|
|
25818
26026
|
len = arr.length;
|
|
@@ -25982,6 +26190,7 @@ var Modal = function(_param) {
|
|
|
25982
26190
|
theme: tweakStyles
|
|
25983
26191
|
});
|
|
25984
26192
|
var tweakCloseButtonStyles = useTweakStyles({
|
|
26193
|
+
innerStyles: closeButtonStyles,
|
|
25985
26194
|
tweakStyles,
|
|
25986
26195
|
className: "tweakCloseButton",
|
|
25987
26196
|
currentComponentName: "Modal"
|
|
@@ -26061,10 +26270,12 @@ var Modal = function(_param) {
|
|
|
26061
26270
|
children: [
|
|
26062
26271
|
hasCloseButton && /* @__PURE__ */ jsx("div", {
|
|
26063
26272
|
className: classes.close,
|
|
26064
|
-
children: /* @__PURE__ */ jsx(
|
|
26273
|
+
children: /* @__PURE__ */ jsx(IconButton, {
|
|
26065
26274
|
testId: getTestId(testId, "close-button"),
|
|
26066
26275
|
tweakStyles: tweakCloseButtonStyles,
|
|
26067
|
-
|
|
26276
|
+
view: "cancel-light",
|
|
26277
|
+
icon: "close",
|
|
26278
|
+
onClick: onClose
|
|
26068
26279
|
})
|
|
26069
26280
|
}),
|
|
26070
26281
|
isReactNodeNotEmpty(title) && /* @__PURE__ */ jsx("h3", {
|
|
@@ -26109,7 +26320,8 @@ var useStyles$h = createThemedStyles("MoreMenu", {
|
|
|
26109
26320
|
borderRadius: "50%",
|
|
26110
26321
|
border: "none",
|
|
26111
26322
|
cursor: "pointer",
|
|
26112
|
-
transition:
|
|
26323
|
+
transition: animations.defaultTransition,
|
|
26324
|
+
transitionProperty: "background-color",
|
|
26113
26325
|
"&$hasCircle": {
|
|
26114
26326
|
backgroundColor: rgba(colors.GREY_HOVER, 0.5)
|
|
26115
26327
|
},
|
|
@@ -27649,7 +27861,7 @@ var useStyles$a = createThemedStyles("Selector", {
|
|
|
27649
27861
|
height: "calc(100% - ".concat(SELECTOR_GAP * 2, "px)"),
|
|
27650
27862
|
backgroundColor: colors.CLASSIC_WHITE,
|
|
27651
27863
|
borderRadius: dimensions.BORDER_RADIUS_SMALL,
|
|
27652
|
-
transition:
|
|
27864
|
+
transition: animations.defaultTransition,
|
|
27653
27865
|
transitionProperty: "transform, width"
|
|
27654
27866
|
},
|
|
27655
27867
|
"&$invalid": {
|
|
@@ -27662,7 +27874,8 @@ var useStyles$a = createThemedStyles("Selector", {
|
|
|
27662
27874
|
height: "100%",
|
|
27663
27875
|
color: colors.FONT_MEDIUM,
|
|
27664
27876
|
fontSize: 16,
|
|
27665
|
-
transition:
|
|
27877
|
+
transition: animations.defaultTransition,
|
|
27878
|
+
transitionProperty: "color",
|
|
27666
27879
|
background: "none",
|
|
27667
27880
|
"&$s": {
|
|
27668
27881
|
padding: [
|
|
@@ -28454,8 +28667,8 @@ var useStyles$8 = createThemedStyles("Switch", {
|
|
|
28454
28667
|
backgroundColor: "#333",
|
|
28455
28668
|
borderRadius: 10,
|
|
28456
28669
|
boxSizing: "border-box",
|
|
28670
|
+
transition: animations.defaultTransition,
|
|
28457
28671
|
transitionProperty: "opacity, background-color",
|
|
28458
|
-
transition: "0.25s ease-in-out",
|
|
28459
28672
|
"&::before": {
|
|
28460
28673
|
content: '""',
|
|
28461
28674
|
position: "absolute",
|
|
@@ -28468,16 +28681,16 @@ var useStyles$8 = createThemedStyles("Switch", {
|
|
|
28468
28681
|
backgroundColor: "#fff",
|
|
28469
28682
|
borderRadius: "50%",
|
|
28470
28683
|
zIndex: 1,
|
|
28471
|
-
|
|
28472
|
-
|
|
28684
|
+
transition: animations.defaultTransition,
|
|
28685
|
+
transitionProperty: "left, background-color"
|
|
28473
28686
|
}
|
|
28474
28687
|
},
|
|
28475
28688
|
input: {
|
|
28476
28689
|
display: "none"
|
|
28477
28690
|
},
|
|
28478
28691
|
label: {
|
|
28479
|
-
|
|
28480
|
-
|
|
28692
|
+
transition: animations.defaultTransition,
|
|
28693
|
+
transitionProperty: "opacity, color"
|
|
28481
28694
|
},
|
|
28482
28695
|
labelLeft: {
|
|
28483
28696
|
order: -1,
|
|
@@ -28587,7 +28800,7 @@ var useStyles$7 = createThemedStyles("TextArea", {
|
|
|
28587
28800
|
width: "100%",
|
|
28588
28801
|
flexGrow: 1,
|
|
28589
28802
|
boxSizing: "border-box",
|
|
28590
|
-
transition:
|
|
28803
|
+
transition: animations.defaultTransition,
|
|
28591
28804
|
transitionProperty: "border-color",
|
|
28592
28805
|
backgroundColor: "white",
|
|
28593
28806
|
border: [
|
|
@@ -28609,7 +28822,7 @@ var useStyles$7 = createThemedStyles("TextArea", {
|
|
|
28609
28822
|
PADDING_X,
|
|
28610
28823
|
8
|
|
28611
28824
|
],
|
|
28612
|
-
transition:
|
|
28825
|
+
transition: animations.defaultTransition,
|
|
28613
28826
|
transitionProperty: "background-color",
|
|
28614
28827
|
border: "none",
|
|
28615
28828
|
resize: "none",
|
|
@@ -28661,7 +28874,7 @@ var useStyles$7 = createThemedStyles("TextArea", {
|
|
|
28661
28874
|
top: PADDING_X * 2,
|
|
28662
28875
|
transformOrigin: "top left",
|
|
28663
28876
|
transform: "translateY(-50%)",
|
|
28664
|
-
transition:
|
|
28877
|
+
transition: animations.defaultTransition,
|
|
28665
28878
|
transitionProperty: "transform, color",
|
|
28666
28879
|
fontSize: 16
|
|
28667
28880
|
},
|
|
@@ -28931,7 +29144,8 @@ var useStyles$6 = createThemedStyles("TextButton", {
|
|
|
28931
29144
|
borderRadius: 0,
|
|
28932
29145
|
cursor: "pointer",
|
|
28933
29146
|
outline: "none",
|
|
28934
|
-
transition:
|
|
29147
|
+
transition: animations.defaultTransition,
|
|
29148
|
+
transitionProperty: "color",
|
|
28935
29149
|
"&[disabled]": {
|
|
28936
29150
|
cursor: "default",
|
|
28937
29151
|
pointerEvents: "none"
|
|
@@ -28970,7 +29184,7 @@ var useStyles$6 = createThemedStyles("TextButton", {
|
|
|
28970
29184
|
width: 24,
|
|
28971
29185
|
height: 24,
|
|
28972
29186
|
borderRadius: "50%",
|
|
28973
|
-
transition:
|
|
29187
|
+
transition: animations.defaultTransition,
|
|
28974
29188
|
transitionProperty: [
|
|
28975
29189
|
"background",
|
|
28976
29190
|
"color"
|
|
@@ -29105,7 +29319,7 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
29105
29319
|
}
|
|
29106
29320
|
return target;
|
|
29107
29321
|
}
|
|
29108
|
-
var TextButton = function(_param) {
|
|
29322
|
+
var TextButton = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
29109
29323
|
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, [
|
|
29110
29324
|
"children",
|
|
29111
29325
|
"icon",
|
|
@@ -29136,10 +29350,11 @@ var TextButton = function(_param) {
|
|
|
29136
29350
|
var hasNoAction = isDisabled || isLoading;
|
|
29137
29351
|
var _obj;
|
|
29138
29352
|
return /* @__PURE__ */ jsxs("button", _object_spread_props$6(_object_spread$6({
|
|
29353
|
+
ref,
|
|
29354
|
+
type,
|
|
29139
29355
|
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)),
|
|
29140
|
-
onClick: !hasNoAction ? onClick : void 0,
|
|
29141
29356
|
disabled: hasNoAction,
|
|
29142
|
-
|
|
29357
|
+
onClick: !hasNoAction ? onClick : void 0
|
|
29143
29358
|
}, restProps, addDataTestId(testId), addDataAttributes(data)), {
|
|
29144
29359
|
children: [
|
|
29145
29360
|
/* @__PURE__ */ jsxs("span", {
|
|
@@ -29165,7 +29380,7 @@ var TextButton = function(_param) {
|
|
|
29165
29380
|
})
|
|
29166
29381
|
]
|
|
29167
29382
|
}));
|
|
29168
|
-
};
|
|
29383
|
+
});
|
|
29169
29384
|
var useStyles$5 = createThemedStyles("Tooltip", {
|
|
29170
29385
|
root: {
|
|
29171
29386
|
display: "inline-block",
|
|
@@ -29940,10 +30155,11 @@ var Toaster = function(param) {
|
|
|
29940
30155
|
}),
|
|
29941
30156
|
hasCloseButton && isNotEmpty(onClose) && /* @__PURE__ */ jsx("div", {
|
|
29942
30157
|
className: classes.close,
|
|
29943
|
-
children: /* @__PURE__ */ jsx(
|
|
29944
|
-
|
|
29945
|
-
|
|
29946
|
-
tweakStyles: tweakCloseButtonStyles
|
|
30158
|
+
children: /* @__PURE__ */ jsx(IconButton, {
|
|
30159
|
+
view: "cancel-light",
|
|
30160
|
+
icon: "close-window",
|
|
30161
|
+
tweakStyles: tweakCloseButtonStyles,
|
|
30162
|
+
onClick: onClose
|
|
29947
30163
|
})
|
|
29948
30164
|
})
|
|
29949
30165
|
]
|
|
@@ -30179,7 +30395,8 @@ var useStyles = createThemedStyles("NewMoreMenu", {
|
|
|
30179
30395
|
borderRadius: "50%",
|
|
30180
30396
|
border: "none",
|
|
30181
30397
|
cursor: "pointer",
|
|
30182
|
-
transition:
|
|
30398
|
+
transition: animations.defaultTransition,
|
|
30399
|
+
transitionProperty: "background-color"
|
|
30183
30400
|
},
|
|
30184
30401
|
icon: {
|
|
30185
30402
|
width: 30,
|
|
@@ -30317,6 +30534,7 @@ export {
|
|
|
30317
30534
|
Flag,
|
|
30318
30535
|
FlexibleTable,
|
|
30319
30536
|
Icon,
|
|
30537
|
+
IconButton,
|
|
30320
30538
|
IncrementInput,
|
|
30321
30539
|
Input,
|
|
30322
30540
|
List,
|