@true-engineering/true-react-common-ui-kit 3.9.2 → 3.10.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 +12 -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/types.d.ts +2 -1
- package/dist/true-react-common-ui-kit.js +667 -459
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +667 -459
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/components/Button/Button.stories.tsx +3 -5
- 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.tsx +1 -0
- 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/Modal/Modal.styles.ts +17 -2
- package/src/components/Modal/Modal.tsx +7 -4
- package/src/components/Select/CustomSelect.stories.tsx +1 -1
- package/src/components/TextButton/TextButton.stories.tsx +3 -2
- 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/types.ts +8 -6
|
@@ -1870,7 +1870,7 @@ var merge = createAssigner(function(object, source, srcIndex) {
|
|
|
1870
1870
|
baseMerge(object, source, srcIndex);
|
|
1871
1871
|
});
|
|
1872
1872
|
const merge$1 = merge;
|
|
1873
|
-
function _define_property
|
|
1873
|
+
function _define_property$$(obj, key, value) {
|
|
1874
1874
|
if (key in obj) {
|
|
1875
1875
|
Object.defineProperty(obj, key, {
|
|
1876
1876
|
value,
|
|
@@ -1883,7 +1883,7 @@ function _define_property$_(obj, key, value) {
|
|
|
1883
1883
|
}
|
|
1884
1884
|
return obj;
|
|
1885
1885
|
}
|
|
1886
|
-
function _object_spread$
|
|
1886
|
+
function _object_spread$_(target) {
|
|
1887
1887
|
for (var i = 1; i < arguments.length; i++) {
|
|
1888
1888
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1889
1889
|
var ownKeys2 = Object.keys(source);
|
|
@@ -1893,12 +1893,12 @@ function _object_spread$Z(target) {
|
|
|
1893
1893
|
}));
|
|
1894
1894
|
}
|
|
1895
1895
|
ownKeys2.forEach(function(key) {
|
|
1896
|
-
_define_property
|
|
1896
|
+
_define_property$$(target, key, source[key]);
|
|
1897
1897
|
});
|
|
1898
1898
|
}
|
|
1899
1899
|
return target;
|
|
1900
1900
|
}
|
|
1901
|
-
function ownKeys$
|
|
1901
|
+
function ownKeys$P(object, enumerableOnly) {
|
|
1902
1902
|
var keys2 = Object.keys(object);
|
|
1903
1903
|
if (Object.getOwnPropertySymbols) {
|
|
1904
1904
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -1911,12 +1911,12 @@ function ownKeys$O(object, enumerableOnly) {
|
|
|
1911
1911
|
}
|
|
1912
1912
|
return keys2;
|
|
1913
1913
|
}
|
|
1914
|
-
function _object_spread_props$
|
|
1914
|
+
function _object_spread_props$P(target, source) {
|
|
1915
1915
|
source = source != null ? source : {};
|
|
1916
1916
|
if (Object.getOwnPropertyDescriptors) {
|
|
1917
1917
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1918
1918
|
} else {
|
|
1919
|
-
ownKeys$
|
|
1919
|
+
ownKeys$P(Object(source)).forEach(function(key) {
|
|
1920
1920
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1921
1921
|
});
|
|
1922
1922
|
}
|
|
@@ -1971,7 +1971,7 @@ function createThemedStyles() {
|
|
|
1971
1971
|
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
1972
|
});
|
|
1973
1973
|
return function(data) {
|
|
1974
|
-
return useStyles2(isNotEmpty(data) ? _object_spread_props$
|
|
1974
|
+
return useStyles2(isNotEmpty(data) ? _object_spread_props$P(_object_spread$_({}, data), {
|
|
1975
1975
|
theme: cleanStyles(data.theme)
|
|
1976
1976
|
}) : data);
|
|
1977
1977
|
};
|
|
@@ -6430,7 +6430,7 @@ function _array_without_holes$7(arr) {
|
|
|
6430
6430
|
if (Array.isArray(arr))
|
|
6431
6431
|
return _array_like_to_array$q(arr);
|
|
6432
6432
|
}
|
|
6433
|
-
function _define_property$
|
|
6433
|
+
function _define_property$_(obj, key, value) {
|
|
6434
6434
|
if (key in obj) {
|
|
6435
6435
|
Object.defineProperty(obj, key, {
|
|
6436
6436
|
value,
|
|
@@ -6450,7 +6450,7 @@ function _iterable_to_array$7(iter) {
|
|
|
6450
6450
|
function _non_iterable_spread$7() {
|
|
6451
6451
|
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
6452
|
}
|
|
6453
|
-
function _object_spread$
|
|
6453
|
+
function _object_spread$Z(target) {
|
|
6454
6454
|
for (var i = 1; i < arguments.length; i++) {
|
|
6455
6455
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6456
6456
|
var ownKeys2 = Object.keys(source);
|
|
@@ -6460,7 +6460,7 @@ function _object_spread$Y(target) {
|
|
|
6460
6460
|
}));
|
|
6461
6461
|
}
|
|
6462
6462
|
ownKeys2.forEach(function(key) {
|
|
6463
|
-
_define_property$
|
|
6463
|
+
_define_property$_(target, key, source[key]);
|
|
6464
6464
|
});
|
|
6465
6465
|
}
|
|
6466
6466
|
return target;
|
|
@@ -6516,7 +6516,7 @@ var useDropdown = function(param) {
|
|
|
6516
6516
|
},
|
|
6517
6517
|
{
|
|
6518
6518
|
name: "flip",
|
|
6519
|
-
options: _object_spread$
|
|
6519
|
+
options: _object_spread$Z({
|
|
6520
6520
|
fallbackPlacements: canBeFlipped ? [
|
|
6521
6521
|
"bottom-start",
|
|
6522
6522
|
"top-start"
|
|
@@ -6651,7 +6651,7 @@ const avatarGreen = ` <svg
|
|
|
6651
6651
|
var complexIcons = {
|
|
6652
6652
|
avatar: avatarGreen
|
|
6653
6653
|
};
|
|
6654
|
-
function _define_property$
|
|
6654
|
+
function _define_property$Z(obj, key, value) {
|
|
6655
6655
|
if (key in obj) {
|
|
6656
6656
|
Object.defineProperty(obj, key, {
|
|
6657
6657
|
value,
|
|
@@ -6664,7 +6664,7 @@ function _define_property$Y(obj, key, value) {
|
|
|
6664
6664
|
}
|
|
6665
6665
|
return obj;
|
|
6666
6666
|
}
|
|
6667
|
-
function _object_spread$
|
|
6667
|
+
function _object_spread$Y(target) {
|
|
6668
6668
|
for (var i = 1; i < arguments.length; i++) {
|
|
6669
6669
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6670
6670
|
var ownKeys2 = Object.keys(source);
|
|
@@ -6674,7 +6674,7 @@ function _object_spread$X(target) {
|
|
|
6674
6674
|
}));
|
|
6675
6675
|
}
|
|
6676
6676
|
ownKeys2.forEach(function(key) {
|
|
6677
|
-
_define_property$
|
|
6677
|
+
_define_property$Z(target, key, source[key]);
|
|
6678
6678
|
});
|
|
6679
6679
|
}
|
|
6680
6680
|
return target;
|
|
@@ -6683,7 +6683,7 @@ var ComplexIconBoilerplate = function(param) {
|
|
|
6683
6683
|
var type = param.type;
|
|
6684
6684
|
var theme = useContext(ThemeContext).theme;
|
|
6685
6685
|
var icons = useMemo(function() {
|
|
6686
|
-
return _object_spread$
|
|
6686
|
+
return _object_spread$Y({}, complexIcons, theme.complexIcons);
|
|
6687
6687
|
}, []);
|
|
6688
6688
|
var ComplexIcon = icons[type];
|
|
6689
6689
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -7555,7 +7555,7 @@ var iconsList = checkIcons({
|
|
|
7555
7555
|
]
|
|
7556
7556
|
}
|
|
7557
7557
|
});
|
|
7558
|
-
function _define_property$
|
|
7558
|
+
function _define_property$Y(obj, key, value) {
|
|
7559
7559
|
if (key in obj) {
|
|
7560
7560
|
Object.defineProperty(obj, key, {
|
|
7561
7561
|
value,
|
|
@@ -7568,7 +7568,7 @@ function _define_property$X(obj, key, value) {
|
|
|
7568
7568
|
}
|
|
7569
7569
|
return obj;
|
|
7570
7570
|
}
|
|
7571
|
-
function _object_spread$
|
|
7571
|
+
function _object_spread$X(target) {
|
|
7572
7572
|
for (var i = 1; i < arguments.length; i++) {
|
|
7573
7573
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7574
7574
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7578,12 +7578,12 @@ function _object_spread$W(target) {
|
|
|
7578
7578
|
}));
|
|
7579
7579
|
}
|
|
7580
7580
|
ownKeys2.forEach(function(key) {
|
|
7581
|
-
_define_property$
|
|
7581
|
+
_define_property$Y(target, key, source[key]);
|
|
7582
7582
|
});
|
|
7583
7583
|
}
|
|
7584
7584
|
return target;
|
|
7585
7585
|
}
|
|
7586
|
-
function ownKeys$
|
|
7586
|
+
function ownKeys$O(object, enumerableOnly) {
|
|
7587
7587
|
var keys2 = Object.keys(object);
|
|
7588
7588
|
if (Object.getOwnPropertySymbols) {
|
|
7589
7589
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7596,12 +7596,12 @@ function ownKeys$N(object, enumerableOnly) {
|
|
|
7596
7596
|
}
|
|
7597
7597
|
return keys2;
|
|
7598
7598
|
}
|
|
7599
|
-
function _object_spread_props$
|
|
7599
|
+
function _object_spread_props$O(target, source) {
|
|
7600
7600
|
source = source != null ? source : {};
|
|
7601
7601
|
if (Object.getOwnPropertyDescriptors) {
|
|
7602
7602
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7603
7603
|
} else {
|
|
7604
|
-
ownKeys$
|
|
7604
|
+
ownKeys$O(Object(source)).forEach(function(key) {
|
|
7605
7605
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7606
7606
|
});
|
|
7607
7607
|
}
|
|
@@ -7612,7 +7612,7 @@ var IconBoilerplate = function(param) {
|
|
|
7612
7612
|
var _icon_paths, _icon_rects, _icon_circles;
|
|
7613
7613
|
var theme = useContext(ThemeContext).theme;
|
|
7614
7614
|
var icons = useMemo(function() {
|
|
7615
|
-
return _object_spread$
|
|
7615
|
+
return _object_spread$X({}, iconsList, theme.icons);
|
|
7616
7616
|
}, []);
|
|
7617
7617
|
var icon = icons[type];
|
|
7618
7618
|
var _icon_viewBox;
|
|
@@ -7625,7 +7625,7 @@ var IconBoilerplate = function(param) {
|
|
|
7625
7625
|
children: [
|
|
7626
7626
|
(_icon_paths = icon.paths) === null || _icon_paths === void 0 ? void 0 : _icon_paths.map(function(path, index) {
|
|
7627
7627
|
var _path_fill, _path_stroke;
|
|
7628
|
-
return jsx("path", _object_spread$
|
|
7628
|
+
return jsx("path", _object_spread$X({
|
|
7629
7629
|
fillRule: "evenodd",
|
|
7630
7630
|
clipRule: "evenodd",
|
|
7631
7631
|
fill: (_path_fill = path.fill) !== null && _path_fill !== void 0 ? _path_fill : "currentColor",
|
|
@@ -7633,25 +7633,25 @@ var IconBoilerplate = function(param) {
|
|
|
7633
7633
|
}, path), index);
|
|
7634
7634
|
}),
|
|
7635
7635
|
(_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$
|
|
7636
|
+
return /* @__PURE__ */ createElement("rect", _object_spread_props$O(_object_spread$X({}, rect), {
|
|
7637
7637
|
key: index
|
|
7638
7638
|
}));
|
|
7639
7639
|
}),
|
|
7640
7640
|
(_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$
|
|
7641
|
+
return /* @__PURE__ */ createElement("circle", _object_spread_props$O(_object_spread$X({}, circle), {
|
|
7642
7642
|
key: index
|
|
7643
7643
|
}));
|
|
7644
7644
|
})
|
|
7645
7645
|
]
|
|
7646
7646
|
});
|
|
7647
7647
|
};
|
|
7648
|
-
var useStyles$
|
|
7648
|
+
var useStyles$T = createThemedStyles("Icon", {
|
|
7649
7649
|
root: {
|
|
7650
7650
|
display: "flex",
|
|
7651
7651
|
alignItems: "center"
|
|
7652
7652
|
}
|
|
7653
7653
|
});
|
|
7654
|
-
function _define_property$
|
|
7654
|
+
function _define_property$X(obj, key, value) {
|
|
7655
7655
|
if (key in obj) {
|
|
7656
7656
|
Object.defineProperty(obj, key, {
|
|
7657
7657
|
value,
|
|
@@ -7664,7 +7664,7 @@ function _define_property$W(obj, key, value) {
|
|
|
7664
7664
|
}
|
|
7665
7665
|
return obj;
|
|
7666
7666
|
}
|
|
7667
|
-
function _object_spread$
|
|
7667
|
+
function _object_spread$W(target) {
|
|
7668
7668
|
for (var i = 1; i < arguments.length; i++) {
|
|
7669
7669
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7670
7670
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7674,12 +7674,12 @@ function _object_spread$V(target) {
|
|
|
7674
7674
|
}));
|
|
7675
7675
|
}
|
|
7676
7676
|
ownKeys2.forEach(function(key) {
|
|
7677
|
-
_define_property$
|
|
7677
|
+
_define_property$X(target, key, source[key]);
|
|
7678
7678
|
});
|
|
7679
7679
|
}
|
|
7680
7680
|
return target;
|
|
7681
7681
|
}
|
|
7682
|
-
function ownKeys$
|
|
7682
|
+
function ownKeys$N(object, enumerableOnly) {
|
|
7683
7683
|
var keys2 = Object.keys(object);
|
|
7684
7684
|
if (Object.getOwnPropertySymbols) {
|
|
7685
7685
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7692,12 +7692,12 @@ function ownKeys$M(object, enumerableOnly) {
|
|
|
7692
7692
|
}
|
|
7693
7693
|
return keys2;
|
|
7694
7694
|
}
|
|
7695
|
-
function _object_spread_props$
|
|
7695
|
+
function _object_spread_props$N(target, source) {
|
|
7696
7696
|
source = source != null ? source : {};
|
|
7697
7697
|
if (Object.getOwnPropertyDescriptors) {
|
|
7698
7698
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7699
7699
|
} else {
|
|
7700
|
-
ownKeys$
|
|
7700
|
+
ownKeys$N(Object(source)).forEach(function(key) {
|
|
7701
7701
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7702
7702
|
});
|
|
7703
7703
|
}
|
|
@@ -7705,10 +7705,10 @@ function _object_spread_props$M(target, source) {
|
|
|
7705
7705
|
}
|
|
7706
7706
|
var Icon = function(param) {
|
|
7707
7707
|
var type = param.type, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
7708
|
-
var classes = useStyles$
|
|
7708
|
+
var classes = useStyles$T({
|
|
7709
7709
|
theme: tweakStyles
|
|
7710
7710
|
});
|
|
7711
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
7711
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$N(_object_spread$W({
|
|
7712
7712
|
className: classes.root
|
|
7713
7713
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
7714
7714
|
children: isComplexIcon(type) ? /* @__PURE__ */ jsx(ComplexIconBoilerplate, {
|
|
@@ -7724,9 +7724,9 @@ var renderIcon = function(icon) {
|
|
|
7724
7724
|
}) : icon;
|
|
7725
7725
|
};
|
|
7726
7726
|
var ITEM_HORIZONTAL_PADDING$1 = 16;
|
|
7727
|
-
var ICON_SIZE$
|
|
7727
|
+
var ICON_SIZE$2 = 20;
|
|
7728
7728
|
var ICON_GAP$1 = 12;
|
|
7729
|
-
var useStyles$
|
|
7729
|
+
var useStyles$S = createThemedStyles("ListItem", {
|
|
7730
7730
|
root: {
|
|
7731
7731
|
display: "flex",
|
|
7732
7732
|
alignItems: "center",
|
|
@@ -7751,17 +7751,17 @@ var useStyles$R = createThemedStyles("ListItem", {
|
|
|
7751
7751
|
backgroundColor: colors.BORDER_LIGHT
|
|
7752
7752
|
},
|
|
7753
7753
|
withIconGap: {
|
|
7754
|
-
paddingLeft: ITEM_HORIZONTAL_PADDING$1 + ICON_SIZE$
|
|
7754
|
+
paddingLeft: ITEM_HORIZONTAL_PADDING$1 + ICON_SIZE$2 + ICON_GAP$1
|
|
7755
7755
|
},
|
|
7756
7756
|
icon: {
|
|
7757
|
-
width: ICON_SIZE$
|
|
7758
|
-
height: ICON_SIZE$
|
|
7757
|
+
width: ICON_SIZE$2,
|
|
7758
|
+
height: ICON_SIZE$2,
|
|
7759
7759
|
marginRight: ICON_GAP$1,
|
|
7760
7760
|
flexShrink: 0
|
|
7761
7761
|
},
|
|
7762
7762
|
content: {}
|
|
7763
7763
|
});
|
|
7764
|
-
function _define_property$
|
|
7764
|
+
function _define_property$W(obj, key, value) {
|
|
7765
7765
|
if (key in obj) {
|
|
7766
7766
|
Object.defineProperty(obj, key, {
|
|
7767
7767
|
value,
|
|
@@ -7774,7 +7774,7 @@ function _define_property$V(obj, key, value) {
|
|
|
7774
7774
|
}
|
|
7775
7775
|
return obj;
|
|
7776
7776
|
}
|
|
7777
|
-
function _object_spread$
|
|
7777
|
+
function _object_spread$V(target) {
|
|
7778
7778
|
for (var i = 1; i < arguments.length; i++) {
|
|
7779
7779
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7780
7780
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7784,12 +7784,12 @@ function _object_spread$U(target) {
|
|
|
7784
7784
|
}));
|
|
7785
7785
|
}
|
|
7786
7786
|
ownKeys2.forEach(function(key) {
|
|
7787
|
-
_define_property$
|
|
7787
|
+
_define_property$W(target, key, source[key]);
|
|
7788
7788
|
});
|
|
7789
7789
|
}
|
|
7790
7790
|
return target;
|
|
7791
7791
|
}
|
|
7792
|
-
function ownKeys$
|
|
7792
|
+
function ownKeys$M(object, enumerableOnly) {
|
|
7793
7793
|
var keys2 = Object.keys(object);
|
|
7794
7794
|
if (Object.getOwnPropertySymbols) {
|
|
7795
7795
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7802,12 +7802,12 @@ function ownKeys$L(object, enumerableOnly) {
|
|
|
7802
7802
|
}
|
|
7803
7803
|
return keys2;
|
|
7804
7804
|
}
|
|
7805
|
-
function _object_spread_props$
|
|
7805
|
+
function _object_spread_props$M(target, source) {
|
|
7806
7806
|
source = source != null ? source : {};
|
|
7807
7807
|
if (Object.getOwnPropertyDescriptors) {
|
|
7808
7808
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7809
7809
|
} else {
|
|
7810
|
-
ownKeys$
|
|
7810
|
+
ownKeys$M(Object(source)).forEach(function(key) {
|
|
7811
7811
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7812
7812
|
});
|
|
7813
7813
|
}
|
|
@@ -7815,7 +7815,7 @@ function _object_spread_props$L(target, source) {
|
|
|
7815
7815
|
}
|
|
7816
7816
|
var ListItem = function(param) {
|
|
7817
7817
|
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$
|
|
7818
|
+
var classes = useStyles$S({
|
|
7819
7819
|
theme: tweakStyles
|
|
7820
7820
|
});
|
|
7821
7821
|
var _obj;
|
|
@@ -7824,9 +7824,9 @@ var ListItem = function(param) {
|
|
|
7824
7824
|
shouldDrawSpacerAbove && /* @__PURE__ */ jsx("div", {
|
|
7825
7825
|
className: classes.spacer
|
|
7826
7826
|
}),
|
|
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$
|
|
7827
|
+
/* @__PURE__ */ jsxs("div", _object_spread_props$M(_object_spread$V({
|
|
7828
|
+
className: clsx(classes.root, classes[view], (_obj = {}, _define_property$W(_obj, classes.disabledItem, isDisabled), _define_property$W(_obj, classes.withIconGap, withIconGap), _obj))
|
|
7829
|
+
}, addClickHandler(onClick, !isDisabled), addDataTestId(testId), addDataAttributes(_object_spread_props$M(_object_spread$V({}, data), {
|
|
7830
7830
|
disabled: isDisabled ? true : void 0
|
|
7831
7831
|
}))), {
|
|
7832
7832
|
children: [
|
|
@@ -7847,9 +7847,9 @@ var ListItem = function(param) {
|
|
|
7847
7847
|
});
|
|
7848
7848
|
};
|
|
7849
7849
|
var ITEM_HORIZONTAL_PADDING = 16;
|
|
7850
|
-
var ICON_SIZE = 20;
|
|
7850
|
+
var ICON_SIZE$1 = 20;
|
|
7851
7851
|
var ICON_GAP = 12;
|
|
7852
|
-
var useStyles$
|
|
7852
|
+
var useStyles$R = createThemedStyles("List", {
|
|
7853
7853
|
root: {
|
|
7854
7854
|
minWidth: 180,
|
|
7855
7855
|
backgroundColor: colors.CLASSIC_WHITE,
|
|
@@ -7882,17 +7882,17 @@ var useStyles$Q = createThemedStyles("List", {
|
|
|
7882
7882
|
backgroundColor: colors.BORDER_LIGHT
|
|
7883
7883
|
},
|
|
7884
7884
|
withIconGap: {
|
|
7885
|
-
paddingLeft: ITEM_HORIZONTAL_PADDING + ICON_SIZE + ICON_GAP
|
|
7885
|
+
paddingLeft: ITEM_HORIZONTAL_PADDING + ICON_SIZE$1 + ICON_GAP
|
|
7886
7886
|
},
|
|
7887
7887
|
icon: {
|
|
7888
|
-
width: ICON_SIZE,
|
|
7889
|
-
height: ICON_SIZE,
|
|
7888
|
+
width: ICON_SIZE$1,
|
|
7889
|
+
height: ICON_SIZE$1,
|
|
7890
7890
|
marginRight: ICON_GAP,
|
|
7891
7891
|
flexShrink: 0
|
|
7892
7892
|
},
|
|
7893
7893
|
content: {}
|
|
7894
7894
|
});
|
|
7895
|
-
function _define_property$
|
|
7895
|
+
function _define_property$V(obj, key, value) {
|
|
7896
7896
|
if (key in obj) {
|
|
7897
7897
|
Object.defineProperty(obj, key, {
|
|
7898
7898
|
value,
|
|
@@ -7905,7 +7905,7 @@ function _define_property$U(obj, key, value) {
|
|
|
7905
7905
|
}
|
|
7906
7906
|
return obj;
|
|
7907
7907
|
}
|
|
7908
|
-
function _object_spread$
|
|
7908
|
+
function _object_spread$U(target) {
|
|
7909
7909
|
for (var i = 1; i < arguments.length; i++) {
|
|
7910
7910
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7911
7911
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7915,12 +7915,12 @@ function _object_spread$T(target) {
|
|
|
7915
7915
|
}));
|
|
7916
7916
|
}
|
|
7917
7917
|
ownKeys2.forEach(function(key) {
|
|
7918
|
-
_define_property$
|
|
7918
|
+
_define_property$V(target, key, source[key]);
|
|
7919
7919
|
});
|
|
7920
7920
|
}
|
|
7921
7921
|
return target;
|
|
7922
7922
|
}
|
|
7923
|
-
function ownKeys$
|
|
7923
|
+
function ownKeys$L(object, enumerableOnly) {
|
|
7924
7924
|
var keys2 = Object.keys(object);
|
|
7925
7925
|
if (Object.getOwnPropertySymbols) {
|
|
7926
7926
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7933,12 +7933,12 @@ function ownKeys$K(object, enumerableOnly) {
|
|
|
7933
7933
|
}
|
|
7934
7934
|
return keys2;
|
|
7935
7935
|
}
|
|
7936
|
-
function _object_spread_props$
|
|
7936
|
+
function _object_spread_props$L(target, source) {
|
|
7937
7937
|
source = source != null ? source : {};
|
|
7938
7938
|
if (Object.getOwnPropertyDescriptors) {
|
|
7939
7939
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7940
7940
|
} else {
|
|
7941
|
-
ownKeys$
|
|
7941
|
+
ownKeys$L(Object(source)).forEach(function(key) {
|
|
7942
7942
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7943
7943
|
});
|
|
7944
7944
|
}
|
|
@@ -7946,18 +7946,18 @@ function _object_spread_props$K(target, source) {
|
|
|
7946
7946
|
}
|
|
7947
7947
|
var List = function(param) {
|
|
7948
7948
|
var items = param.items, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles, onClick = param.onClick;
|
|
7949
|
-
var classes = useStyles$
|
|
7949
|
+
var classes = useStyles$R({
|
|
7950
7950
|
theme: tweakStyles
|
|
7951
7951
|
});
|
|
7952
7952
|
var handleItemClick = function(event, item) {
|
|
7953
7953
|
item.onClick(event);
|
|
7954
7954
|
onClick === null || onClick === void 0 ? void 0 : onClick(event);
|
|
7955
7955
|
};
|
|
7956
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
7956
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$L(_object_spread$U({
|
|
7957
7957
|
className: classes.root
|
|
7958
7958
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
7959
7959
|
children: items.map(function(item, i) {
|
|
7960
|
-
return /* @__PURE__ */ jsx(ListItem, _object_spread_props$
|
|
7960
|
+
return /* @__PURE__ */ jsx(ListItem, _object_spread_props$L(_object_spread$U({
|
|
7961
7961
|
testId: getTestId(testId, "item-".concat(i))
|
|
7962
7962
|
}, item), {
|
|
7963
7963
|
onClick: function(event) {
|
|
@@ -7968,7 +7968,7 @@ var List = function(param) {
|
|
|
7968
7968
|
}));
|
|
7969
7969
|
};
|
|
7970
7970
|
var ANIMATION_TIMEOUT = 150;
|
|
7971
|
-
function _define_property$
|
|
7971
|
+
function _define_property$U(obj, key, value) {
|
|
7972
7972
|
if (key in obj) {
|
|
7973
7973
|
Object.defineProperty(obj, key, {
|
|
7974
7974
|
value,
|
|
@@ -7981,7 +7981,7 @@ function _define_property$T(obj, key, value) {
|
|
|
7981
7981
|
}
|
|
7982
7982
|
return obj;
|
|
7983
7983
|
}
|
|
7984
|
-
function _object_spread$
|
|
7984
|
+
function _object_spread$T(target) {
|
|
7985
7985
|
for (var i = 1; i < arguments.length; i++) {
|
|
7986
7986
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7987
7987
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7991,12 +7991,12 @@ function _object_spread$S(target) {
|
|
|
7991
7991
|
}));
|
|
7992
7992
|
}
|
|
7993
7993
|
ownKeys2.forEach(function(key) {
|
|
7994
|
-
_define_property$
|
|
7994
|
+
_define_property$U(target, key, source[key]);
|
|
7995
7995
|
});
|
|
7996
7996
|
}
|
|
7997
7997
|
return target;
|
|
7998
7998
|
}
|
|
7999
|
-
var useStyles$
|
|
7999
|
+
var useStyles$Q = createThemedStyles("AccountInfo", _object_spread$T({
|
|
8000
8000
|
root: {
|
|
8001
8001
|
display: "flex"
|
|
8002
8002
|
},
|
|
@@ -8049,7 +8049,7 @@ function _array_with_holes$p(arr) {
|
|
|
8049
8049
|
if (Array.isArray(arr))
|
|
8050
8050
|
return arr;
|
|
8051
8051
|
}
|
|
8052
|
-
function _define_property$
|
|
8052
|
+
function _define_property$T(obj, key, value) {
|
|
8053
8053
|
if (key in obj) {
|
|
8054
8054
|
Object.defineProperty(obj, key, {
|
|
8055
8055
|
value,
|
|
@@ -8093,7 +8093,7 @@ function _iterable_to_array_limit$p(arr, i) {
|
|
|
8093
8093
|
function _non_iterable_rest$p() {
|
|
8094
8094
|
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
8095
|
}
|
|
8096
|
-
function _object_spread$
|
|
8096
|
+
function _object_spread$S(target) {
|
|
8097
8097
|
for (var i = 1; i < arguments.length; i++) {
|
|
8098
8098
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8099
8099
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8103,12 +8103,12 @@ function _object_spread$R(target) {
|
|
|
8103
8103
|
}));
|
|
8104
8104
|
}
|
|
8105
8105
|
ownKeys2.forEach(function(key) {
|
|
8106
|
-
_define_property$
|
|
8106
|
+
_define_property$T(target, key, source[key]);
|
|
8107
8107
|
});
|
|
8108
8108
|
}
|
|
8109
8109
|
return target;
|
|
8110
8110
|
}
|
|
8111
|
-
function ownKeys$
|
|
8111
|
+
function ownKeys$K(object, enumerableOnly) {
|
|
8112
8112
|
var keys2 = Object.keys(object);
|
|
8113
8113
|
if (Object.getOwnPropertySymbols) {
|
|
8114
8114
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8121,12 +8121,12 @@ function ownKeys$J(object, enumerableOnly) {
|
|
|
8121
8121
|
}
|
|
8122
8122
|
return keys2;
|
|
8123
8123
|
}
|
|
8124
|
-
function _object_spread_props$
|
|
8124
|
+
function _object_spread_props$K(target, source) {
|
|
8125
8125
|
source = source != null ? source : {};
|
|
8126
8126
|
if (Object.getOwnPropertyDescriptors) {
|
|
8127
8127
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8128
8128
|
} else {
|
|
8129
|
-
ownKeys$
|
|
8129
|
+
ownKeys$K(Object(source)).forEach(function(key) {
|
|
8130
8130
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8131
8131
|
});
|
|
8132
8132
|
}
|
|
@@ -8150,7 +8150,7 @@ function _unsupported_iterable_to_array$p(o, minLen) {
|
|
|
8150
8150
|
}
|
|
8151
8151
|
var AccountInfo = function(param) {
|
|
8152
8152
|
var data = param.data, testId = param.testId, avatar = param.avatar, tweakStyles = param.tweakStyles, accountName = param.accountName, options = param.options;
|
|
8153
|
-
var classes = useStyles$
|
|
8153
|
+
var classes = useStyles$Q({
|
|
8154
8154
|
theme: tweakStyles
|
|
8155
8155
|
});
|
|
8156
8156
|
var tweakListStyles = useTweakStyles({
|
|
@@ -8170,7 +8170,7 @@ var AccountInfo = function(param) {
|
|
|
8170
8170
|
useOnClickOutsideWithRef(dropdownRef, function() {
|
|
8171
8171
|
return setIsMenuOpen(false);
|
|
8172
8172
|
}, nameRef);
|
|
8173
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
8173
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$K(_object_spread$S({
|
|
8174
8174
|
className: classes.root
|
|
8175
8175
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
8176
8176
|
children: [
|
|
@@ -8220,7 +8220,7 @@ var AccountInfo = function(param) {
|
|
|
8220
8220
|
]
|
|
8221
8221
|
}));
|
|
8222
8222
|
};
|
|
8223
|
-
var useStyles$
|
|
8223
|
+
var useStyles$P = createThemedStyles("AddButton", {
|
|
8224
8224
|
root: {
|
|
8225
8225
|
display: "flex",
|
|
8226
8226
|
alignItems: "center",
|
|
@@ -8246,7 +8246,7 @@ var useStyles$O = createThemedStyles("AddButton", {
|
|
|
8246
8246
|
width: "100%"
|
|
8247
8247
|
}
|
|
8248
8248
|
});
|
|
8249
|
-
function _define_property$
|
|
8249
|
+
function _define_property$S(obj, key, value) {
|
|
8250
8250
|
if (key in obj) {
|
|
8251
8251
|
Object.defineProperty(obj, key, {
|
|
8252
8252
|
value,
|
|
@@ -8259,7 +8259,7 @@ function _define_property$R(obj, key, value) {
|
|
|
8259
8259
|
}
|
|
8260
8260
|
return obj;
|
|
8261
8261
|
}
|
|
8262
|
-
function _object_spread$
|
|
8262
|
+
function _object_spread$R(target) {
|
|
8263
8263
|
for (var i = 1; i < arguments.length; i++) {
|
|
8264
8264
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8265
8265
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8269,12 +8269,12 @@ function _object_spread$Q(target) {
|
|
|
8269
8269
|
}));
|
|
8270
8270
|
}
|
|
8271
8271
|
ownKeys2.forEach(function(key) {
|
|
8272
|
-
_define_property$
|
|
8272
|
+
_define_property$S(target, key, source[key]);
|
|
8273
8273
|
});
|
|
8274
8274
|
}
|
|
8275
8275
|
return target;
|
|
8276
8276
|
}
|
|
8277
|
-
function ownKeys$
|
|
8277
|
+
function ownKeys$J(object, enumerableOnly) {
|
|
8278
8278
|
var keys2 = Object.keys(object);
|
|
8279
8279
|
if (Object.getOwnPropertySymbols) {
|
|
8280
8280
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8287,12 +8287,12 @@ function ownKeys$I(object, enumerableOnly) {
|
|
|
8287
8287
|
}
|
|
8288
8288
|
return keys2;
|
|
8289
8289
|
}
|
|
8290
|
-
function _object_spread_props$
|
|
8290
|
+
function _object_spread_props$J(target, source) {
|
|
8291
8291
|
source = source != null ? source : {};
|
|
8292
8292
|
if (Object.getOwnPropertyDescriptors) {
|
|
8293
8293
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8294
8294
|
} else {
|
|
8295
|
-
ownKeys$
|
|
8295
|
+
ownKeys$J(Object(source)).forEach(function(key) {
|
|
8296
8296
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8297
8297
|
});
|
|
8298
8298
|
}
|
|
@@ -8300,10 +8300,10 @@ function _object_spread_props$I(target, source) {
|
|
|
8300
8300
|
}
|
|
8301
8301
|
var AddButton = function(param) {
|
|
8302
8302
|
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$
|
|
8303
|
+
var classes = useStyles$P({
|
|
8304
8304
|
theme: tweakStyles
|
|
8305
8305
|
});
|
|
8306
|
-
return /* @__PURE__ */ jsxs("button", _object_spread_props$
|
|
8306
|
+
return /* @__PURE__ */ jsxs("button", _object_spread_props$J(_object_spread$R({
|
|
8307
8307
|
type,
|
|
8308
8308
|
className: clsx(classes.root, isDisabled && classes.disabled, isFullWidth && classes.fullWidth),
|
|
8309
8309
|
onClick: !isDisabled ? onClick : void 0,
|
|
@@ -8322,7 +8322,7 @@ var AddButton = function(param) {
|
|
|
8322
8322
|
]
|
|
8323
8323
|
}));
|
|
8324
8324
|
};
|
|
8325
|
-
var useStyles$
|
|
8325
|
+
var useStyles$O = createThemedStyles("DotsPreloader", {
|
|
8326
8326
|
root: {
|
|
8327
8327
|
display: "flex",
|
|
8328
8328
|
gap: 4,
|
|
@@ -8367,7 +8367,7 @@ var useStyles$N = createThemedStyles("DotsPreloader", {
|
|
|
8367
8367
|
});
|
|
8368
8368
|
var DotsPreloader = function(param) {
|
|
8369
8369
|
var tweakStyles = param.tweakStyles;
|
|
8370
|
-
var classes = useStyles$
|
|
8370
|
+
var classes = useStyles$O({
|
|
8371
8371
|
theme: tweakStyles
|
|
8372
8372
|
});
|
|
8373
8373
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -8433,7 +8433,7 @@ var DefaultPreloader = function() {
|
|
|
8433
8433
|
]
|
|
8434
8434
|
});
|
|
8435
8435
|
};
|
|
8436
|
-
var useStyles$
|
|
8436
|
+
var useStyles$N = createThemedStyles("SvgPreloader", {
|
|
8437
8437
|
root: {
|
|
8438
8438
|
display: "flex",
|
|
8439
8439
|
width: "100%",
|
|
@@ -8443,7 +8443,7 @@ var useStyles$M = createThemedStyles("SvgPreloader", {
|
|
|
8443
8443
|
var SvgPreloader = function(param) {
|
|
8444
8444
|
var _param_type = param.type, type = _param_type === void 0 ? "default" : _param_type, tweakStyles = param.tweakStyles;
|
|
8445
8445
|
var _theme_preloaders;
|
|
8446
|
-
var classes = useStyles$
|
|
8446
|
+
var classes = useStyles$N({
|
|
8447
8447
|
theme: tweakStyles
|
|
8448
8448
|
});
|
|
8449
8449
|
var theme = useContext(ThemeContext).theme;
|
|
@@ -8457,7 +8457,7 @@ var SvgPreloader = function(param) {
|
|
|
8457
8457
|
}
|
|
8458
8458
|
}) : /* @__PURE__ */ jsx(PreloaderIcon, {});
|
|
8459
8459
|
};
|
|
8460
|
-
var useStyles$
|
|
8460
|
+
var useStyles$M = createThemedStyles("ThemedPreloader", {
|
|
8461
8461
|
root: {
|
|
8462
8462
|
display: "flex"
|
|
8463
8463
|
},
|
|
@@ -8468,7 +8468,7 @@ var useStyles$L = createThemedStyles("ThemedPreloader", {
|
|
|
8468
8468
|
color: "currentColor"
|
|
8469
8469
|
}
|
|
8470
8470
|
});
|
|
8471
|
-
function _define_property$
|
|
8471
|
+
function _define_property$R(obj, key, value) {
|
|
8472
8472
|
if (key in obj) {
|
|
8473
8473
|
Object.defineProperty(obj, key, {
|
|
8474
8474
|
value,
|
|
@@ -8481,7 +8481,7 @@ function _define_property$Q(obj, key, value) {
|
|
|
8481
8481
|
}
|
|
8482
8482
|
return obj;
|
|
8483
8483
|
}
|
|
8484
|
-
function _object_spread$
|
|
8484
|
+
function _object_spread$Q(target) {
|
|
8485
8485
|
for (var i = 1; i < arguments.length; i++) {
|
|
8486
8486
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8487
8487
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8491,12 +8491,12 @@ function _object_spread$P(target) {
|
|
|
8491
8491
|
}));
|
|
8492
8492
|
}
|
|
8493
8493
|
ownKeys2.forEach(function(key) {
|
|
8494
|
-
_define_property$
|
|
8494
|
+
_define_property$R(target, key, source[key]);
|
|
8495
8495
|
});
|
|
8496
8496
|
}
|
|
8497
8497
|
return target;
|
|
8498
8498
|
}
|
|
8499
|
-
function ownKeys$
|
|
8499
|
+
function ownKeys$I(object, enumerableOnly) {
|
|
8500
8500
|
var keys2 = Object.keys(object);
|
|
8501
8501
|
if (Object.getOwnPropertySymbols) {
|
|
8502
8502
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8509,12 +8509,12 @@ function ownKeys$H(object, enumerableOnly) {
|
|
|
8509
8509
|
}
|
|
8510
8510
|
return keys2;
|
|
8511
8511
|
}
|
|
8512
|
-
function _object_spread_props$
|
|
8512
|
+
function _object_spread_props$I(target, source) {
|
|
8513
8513
|
source = source != null ? source : {};
|
|
8514
8514
|
if (Object.getOwnPropertyDescriptors) {
|
|
8515
8515
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8516
8516
|
} else {
|
|
8517
|
-
ownKeys$
|
|
8517
|
+
ownKeys$I(Object(source)).forEach(function(key) {
|
|
8518
8518
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8519
8519
|
});
|
|
8520
8520
|
}
|
|
@@ -8522,7 +8522,7 @@ function _object_spread_props$H(target, source) {
|
|
|
8522
8522
|
}
|
|
8523
8523
|
var ThemedPreloader = function(param) {
|
|
8524
8524
|
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$
|
|
8525
|
+
var classes = useStyles$M({
|
|
8526
8526
|
theme: tweakStyles
|
|
8527
8527
|
});
|
|
8528
8528
|
var tweakDotsPreloaderStyles = useTweakStyles({
|
|
@@ -8535,8 +8535,8 @@ var ThemedPreloader = function(param) {
|
|
|
8535
8535
|
className: "tweakSvgPreloader",
|
|
8536
8536
|
currentComponentName: "ThemedPreloader"
|
|
8537
8537
|
});
|
|
8538
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8539
|
-
className: clsx(classes.root, classes[type], _define_property$
|
|
8538
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$I(_object_spread$Q({
|
|
8539
|
+
className: clsx(classes.root, classes[type], _define_property$R({}, classes.currentColor, useCurrentColor))
|
|
8540
8540
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
8541
8541
|
children: type === "dots" ? /* @__PURE__ */ jsx(DotsPreloader, {
|
|
8542
8542
|
tweakStyles: tweakDotsPreloaderStyles
|
|
@@ -8546,7 +8546,7 @@ var ThemedPreloader = function(param) {
|
|
|
8546
8546
|
})
|
|
8547
8547
|
}));
|
|
8548
8548
|
};
|
|
8549
|
-
var useStyles$
|
|
8549
|
+
var useStyles$L = createThemedStyles("Button", {
|
|
8550
8550
|
root: {
|
|
8551
8551
|
display: "flex",
|
|
8552
8552
|
justifyContent: "center",
|
|
@@ -8717,7 +8717,7 @@ var dotsPreloaderStyles = {
|
|
|
8717
8717
|
var getPreloaderStyles = function(size) {
|
|
8718
8718
|
return size === "s" || size === "m" ? dotsPreloaderStyles : void 0;
|
|
8719
8719
|
};
|
|
8720
|
-
function _define_property$
|
|
8720
|
+
function _define_property$Q(obj, key, value) {
|
|
8721
8721
|
if (key in obj) {
|
|
8722
8722
|
Object.defineProperty(obj, key, {
|
|
8723
8723
|
value,
|
|
@@ -8730,7 +8730,7 @@ function _define_property$P(obj, key, value) {
|
|
|
8730
8730
|
}
|
|
8731
8731
|
return obj;
|
|
8732
8732
|
}
|
|
8733
|
-
function _object_spread$
|
|
8733
|
+
function _object_spread$P(target) {
|
|
8734
8734
|
for (var i = 1; i < arguments.length; i++) {
|
|
8735
8735
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8736
8736
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8740,12 +8740,12 @@ function _object_spread$O(target) {
|
|
|
8740
8740
|
}));
|
|
8741
8741
|
}
|
|
8742
8742
|
ownKeys2.forEach(function(key) {
|
|
8743
|
-
_define_property$
|
|
8743
|
+
_define_property$Q(target, key, source[key]);
|
|
8744
8744
|
});
|
|
8745
8745
|
}
|
|
8746
8746
|
return target;
|
|
8747
8747
|
}
|
|
8748
|
-
function ownKeys$
|
|
8748
|
+
function ownKeys$H(object, enumerableOnly) {
|
|
8749
8749
|
var keys2 = Object.keys(object);
|
|
8750
8750
|
if (Object.getOwnPropertySymbols) {
|
|
8751
8751
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8758,12 +8758,12 @@ function ownKeys$G(object, enumerableOnly) {
|
|
|
8758
8758
|
}
|
|
8759
8759
|
return keys2;
|
|
8760
8760
|
}
|
|
8761
|
-
function _object_spread_props$
|
|
8761
|
+
function _object_spread_props$H(target, source) {
|
|
8762
8762
|
source = source != null ? source : {};
|
|
8763
8763
|
if (Object.getOwnPropertyDescriptors) {
|
|
8764
8764
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8765
8765
|
} else {
|
|
8766
|
-
ownKeys$
|
|
8766
|
+
ownKeys$H(Object(source)).forEach(function(key) {
|
|
8767
8767
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8768
8768
|
});
|
|
8769
8769
|
}
|
|
@@ -8771,7 +8771,7 @@ function _object_spread_props$G(target, source) {
|
|
|
8771
8771
|
}
|
|
8772
8772
|
var Button = /* @__PURE__ */ forwardRef(function(param, ref) {
|
|
8773
8773
|
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$
|
|
8774
|
+
var classes = useStyles$L({
|
|
8775
8775
|
theme: tweakStyles
|
|
8776
8776
|
});
|
|
8777
8777
|
var tweakPreloaderStyles = useTweakStyles({
|
|
@@ -8784,10 +8784,10 @@ var Button = /* @__PURE__ */ forwardRef(function(param, ref) {
|
|
|
8784
8784
|
var hasChildren = isReactNodeNotEmpty(children);
|
|
8785
8785
|
var hasNoAction = isDisabled || isLoading;
|
|
8786
8786
|
var _obj, _obj1;
|
|
8787
|
-
return /* @__PURE__ */ jsxs("button", _object_spread_props$
|
|
8787
|
+
return /* @__PURE__ */ jsxs("button", _object_spread_props$H(_object_spread$P({
|
|
8788
8788
|
ref,
|
|
8789
8789
|
type,
|
|
8790
|
-
className: clsx(classes.root, classes[size], classes[view], (_obj = {}, _define_property$
|
|
8790
|
+
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
8791
|
tabIndex: shouldSkipTabNavigation ? -1 : void 0,
|
|
8792
8792
|
disabled: hasNoAction,
|
|
8793
8793
|
onClick: !hasNoAction ? onClick : void 0,
|
|
@@ -8795,7 +8795,7 @@ var Button = /* @__PURE__ */ forwardRef(function(param, ref) {
|
|
|
8795
8795
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
8796
8796
|
children: [
|
|
8797
8797
|
/* @__PURE__ */ jsxs("span", {
|
|
8798
|
-
className: clsx(classes.content, (_obj1 = {}, _define_property$
|
|
8798
|
+
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
8799
|
children: [
|
|
8800
8800
|
hasIcon && /* @__PURE__ */ jsx("span", {
|
|
8801
8801
|
className: classes.icon,
|
|
@@ -8818,7 +8818,7 @@ var Button = /* @__PURE__ */ forwardRef(function(param, ref) {
|
|
|
8818
8818
|
]
|
|
8819
8819
|
}));
|
|
8820
8820
|
});
|
|
8821
|
-
var useStyles$
|
|
8821
|
+
var useStyles$K = createThemedStyles("Checkbox", {
|
|
8822
8822
|
root: {
|
|
8823
8823
|
cursor: "pointer",
|
|
8824
8824
|
display: "flex",
|
|
@@ -8866,7 +8866,7 @@ function _array_with_holes$o(arr) {
|
|
|
8866
8866
|
if (Array.isArray(arr))
|
|
8867
8867
|
return arr;
|
|
8868
8868
|
}
|
|
8869
|
-
function _define_property$
|
|
8869
|
+
function _define_property$P(obj, key, value) {
|
|
8870
8870
|
if (key in obj) {
|
|
8871
8871
|
Object.defineProperty(obj, key, {
|
|
8872
8872
|
value,
|
|
@@ -8910,7 +8910,7 @@ function _iterable_to_array_limit$o(arr, i) {
|
|
|
8910
8910
|
function _non_iterable_rest$o() {
|
|
8911
8911
|
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
8912
|
}
|
|
8913
|
-
function _object_spread$
|
|
8913
|
+
function _object_spread$O(target) {
|
|
8914
8914
|
for (var i = 1; i < arguments.length; i++) {
|
|
8915
8915
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8916
8916
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8920,12 +8920,12 @@ function _object_spread$N(target) {
|
|
|
8920
8920
|
}));
|
|
8921
8921
|
}
|
|
8922
8922
|
ownKeys2.forEach(function(key) {
|
|
8923
|
-
_define_property$
|
|
8923
|
+
_define_property$P(target, key, source[key]);
|
|
8924
8924
|
});
|
|
8925
8925
|
}
|
|
8926
8926
|
return target;
|
|
8927
8927
|
}
|
|
8928
|
-
function ownKeys$
|
|
8928
|
+
function ownKeys$G(object, enumerableOnly) {
|
|
8929
8929
|
var keys2 = Object.keys(object);
|
|
8930
8930
|
if (Object.getOwnPropertySymbols) {
|
|
8931
8931
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8938,12 +8938,12 @@ function ownKeys$F(object, enumerableOnly) {
|
|
|
8938
8938
|
}
|
|
8939
8939
|
return keys2;
|
|
8940
8940
|
}
|
|
8941
|
-
function _object_spread_props$
|
|
8941
|
+
function _object_spread_props$G(target, source) {
|
|
8942
8942
|
source = source != null ? source : {};
|
|
8943
8943
|
if (Object.getOwnPropertyDescriptors) {
|
|
8944
8944
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8945
8945
|
} else {
|
|
8946
|
-
ownKeys$
|
|
8946
|
+
ownKeys$G(Object(source)).forEach(function(key) {
|
|
8947
8947
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8948
8948
|
});
|
|
8949
8949
|
}
|
|
@@ -8967,7 +8967,7 @@ function _unsupported_iterable_to_array$o(o, minLen) {
|
|
|
8967
8967
|
}
|
|
8968
8968
|
function Checkbox(param) {
|
|
8969
8969
|
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$
|
|
8970
|
+
var classes = useStyles$K({
|
|
8971
8971
|
theme: tweakStyles
|
|
8972
8972
|
});
|
|
8973
8973
|
var _useState = _sliced_to_array$o(useState(false), 2), isSelected = _useState[0], setIsSelected = _useState[1];
|
|
@@ -8986,11 +8986,11 @@ function Checkbox(param) {
|
|
|
8986
8986
|
isChecked
|
|
8987
8987
|
]);
|
|
8988
8988
|
var _obj;
|
|
8989
|
-
return /* @__PURE__ */ jsxs("label", _object_spread_props$
|
|
8990
|
-
className: clsx(classes.root, (_obj = {}, _define_property$
|
|
8989
|
+
return /* @__PURE__ */ jsxs("label", _object_spread_props$G(_object_spread$O({
|
|
8990
|
+
className: clsx(classes.root, (_obj = {}, _define_property$P(_obj, classes.disabled, isDisabled), _define_property$P(_obj, classes.labelPositionLeft, labelPosition === "left"), _obj))
|
|
8991
8991
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
8992
8992
|
children: [
|
|
8993
|
-
/* @__PURE__ */ jsx("input", _object_spread$
|
|
8993
|
+
/* @__PURE__ */ jsx("input", _object_spread$O({
|
|
8994
8994
|
type: "checkbox",
|
|
8995
8995
|
className: classes.input,
|
|
8996
8996
|
checked: isSelected,
|
|
@@ -9013,7 +9013,7 @@ function Checkbox(param) {
|
|
|
9013
9013
|
]
|
|
9014
9014
|
}));
|
|
9015
9015
|
}
|
|
9016
|
-
var useStyles$
|
|
9016
|
+
var useStyles$J = createThemedStyles("CloseButton", {
|
|
9017
9017
|
root: {
|
|
9018
9018
|
width: 40,
|
|
9019
9019
|
height: 40,
|
|
@@ -9038,7 +9038,7 @@ var useStyles$I = createThemedStyles("CloseButton", {
|
|
|
9038
9038
|
}
|
|
9039
9039
|
}
|
|
9040
9040
|
});
|
|
9041
|
-
function _define_property$
|
|
9041
|
+
function _define_property$O(obj, key, value) {
|
|
9042
9042
|
if (key in obj) {
|
|
9043
9043
|
Object.defineProperty(obj, key, {
|
|
9044
9044
|
value,
|
|
@@ -9051,7 +9051,7 @@ function _define_property$N(obj, key, value) {
|
|
|
9051
9051
|
}
|
|
9052
9052
|
return obj;
|
|
9053
9053
|
}
|
|
9054
|
-
function _object_spread$
|
|
9054
|
+
function _object_spread$N(target) {
|
|
9055
9055
|
for (var i = 1; i < arguments.length; i++) {
|
|
9056
9056
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9057
9057
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9061,12 +9061,12 @@ function _object_spread$M(target) {
|
|
|
9061
9061
|
}));
|
|
9062
9062
|
}
|
|
9063
9063
|
ownKeys2.forEach(function(key) {
|
|
9064
|
-
_define_property$
|
|
9064
|
+
_define_property$O(target, key, source[key]);
|
|
9065
9065
|
});
|
|
9066
9066
|
}
|
|
9067
9067
|
return target;
|
|
9068
9068
|
}
|
|
9069
|
-
function ownKeys$
|
|
9069
|
+
function ownKeys$F(object, enumerableOnly) {
|
|
9070
9070
|
var keys2 = Object.keys(object);
|
|
9071
9071
|
if (Object.getOwnPropertySymbols) {
|
|
9072
9072
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9079,12 +9079,12 @@ function ownKeys$E(object, enumerableOnly) {
|
|
|
9079
9079
|
}
|
|
9080
9080
|
return keys2;
|
|
9081
9081
|
}
|
|
9082
|
-
function _object_spread_props$
|
|
9082
|
+
function _object_spread_props$F(target, source) {
|
|
9083
9083
|
source = source != null ? source : {};
|
|
9084
9084
|
if (Object.getOwnPropertyDescriptors) {
|
|
9085
9085
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9086
9086
|
} else {
|
|
9087
|
-
ownKeys$
|
|
9087
|
+
ownKeys$F(Object(source)).forEach(function(key) {
|
|
9088
9088
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9089
9089
|
});
|
|
9090
9090
|
}
|
|
@@ -9092,10 +9092,10 @@ function _object_spread_props$E(target, source) {
|
|
|
9092
9092
|
}
|
|
9093
9093
|
var CloseButton = function(param) {
|
|
9094
9094
|
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$
|
|
9095
|
+
var classes = useStyles$J({
|
|
9096
9096
|
theme: tweakStyles
|
|
9097
9097
|
});
|
|
9098
|
-
return /* @__PURE__ */ jsx("button", _object_spread_props$
|
|
9098
|
+
return /* @__PURE__ */ jsx("button", _object_spread_props$F(_object_spread$N({
|
|
9099
9099
|
type: "button",
|
|
9100
9100
|
className: classes.root,
|
|
9101
9101
|
onClick: onClose
|
|
@@ -9105,7 +9105,7 @@ var CloseButton = function(param) {
|
|
|
9105
9105
|
})
|
|
9106
9106
|
}));
|
|
9107
9107
|
};
|
|
9108
|
-
var useStyles$
|
|
9108
|
+
var useStyles$I = createThemedStyles({
|
|
9109
9109
|
root: {
|
|
9110
9110
|
display: "flex",
|
|
9111
9111
|
flexWrap: "wrap"
|
|
@@ -9198,7 +9198,7 @@ function _unsupported_iterable_to_array$n(o, minLen) {
|
|
|
9198
9198
|
return _array_like_to_array$n(o, minLen);
|
|
9199
9199
|
}
|
|
9200
9200
|
var Colors = function() {
|
|
9201
|
-
var classes = useStyles$
|
|
9201
|
+
var classes = useStyles$I();
|
|
9202
9202
|
var theme = useContext(ThemeContext).theme;
|
|
9203
9203
|
var _theme_colors = theme.colors, colors2 = _theme_colors === void 0 ? {} : _theme_colors;
|
|
9204
9204
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -9228,7 +9228,7 @@ var Colors = function() {
|
|
|
9228
9228
|
})
|
|
9229
9229
|
});
|
|
9230
9230
|
};
|
|
9231
|
-
var useStyles$
|
|
9231
|
+
var useStyles$H = createThemedStyles("CssBaseline", {
|
|
9232
9232
|
"@global html, body": {
|
|
9233
9233
|
fontFamily: "Arial, sans-serif",
|
|
9234
9234
|
color: colors.FONT_MAIN,
|
|
@@ -9237,7 +9237,7 @@ var useStyles$G = createThemedStyles("CssBaseline", {
|
|
|
9237
9237
|
},
|
|
9238
9238
|
root: {}
|
|
9239
9239
|
});
|
|
9240
|
-
function _define_property$
|
|
9240
|
+
function _define_property$N(obj, key, value) {
|
|
9241
9241
|
if (key in obj) {
|
|
9242
9242
|
Object.defineProperty(obj, key, {
|
|
9243
9243
|
value,
|
|
@@ -9250,7 +9250,7 @@ function _define_property$M(obj, key, value) {
|
|
|
9250
9250
|
}
|
|
9251
9251
|
return obj;
|
|
9252
9252
|
}
|
|
9253
|
-
function _object_spread$
|
|
9253
|
+
function _object_spread$M(target) {
|
|
9254
9254
|
for (var i = 1; i < arguments.length; i++) {
|
|
9255
9255
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9256
9256
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9260,24 +9260,24 @@ function _object_spread$L(target) {
|
|
|
9260
9260
|
}));
|
|
9261
9261
|
}
|
|
9262
9262
|
ownKeys2.forEach(function(key) {
|
|
9263
|
-
_define_property$
|
|
9263
|
+
_define_property$N(target, key, source[key]);
|
|
9264
9264
|
});
|
|
9265
9265
|
}
|
|
9266
9266
|
return target;
|
|
9267
9267
|
}
|
|
9268
9268
|
var CssBaseline = function(param) {
|
|
9269
9269
|
var data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
9270
|
-
var classes = useStyles$
|
|
9270
|
+
var classes = useStyles$H({
|
|
9271
9271
|
theme: tweakStyles
|
|
9272
9272
|
});
|
|
9273
|
-
return /* @__PURE__ */ jsx("div", _object_spread$
|
|
9273
|
+
return /* @__PURE__ */ jsx("div", _object_spread$M({
|
|
9274
9274
|
className: classes.root
|
|
9275
9275
|
}, addDataTestId(testId), addDataAttributes(data)));
|
|
9276
9276
|
};
|
|
9277
9277
|
var DEFAULT_SIZE = 6;
|
|
9278
9278
|
var PADDING_X$1 = 12;
|
|
9279
9279
|
var AUTOSIZE_MAX_WIDTH = 480;
|
|
9280
|
-
var useStyles$
|
|
9280
|
+
var useStyles$G = createThemedStyles("Input", {
|
|
9281
9281
|
root: {
|
|
9282
9282
|
width: "100%",
|
|
9283
9283
|
boxSizing: "border-box",
|
|
@@ -9590,7 +9590,7 @@ function _async_to_generator$5(fn3) {
|
|
|
9590
9590
|
});
|
|
9591
9591
|
};
|
|
9592
9592
|
}
|
|
9593
|
-
function _define_property$
|
|
9593
|
+
function _define_property$M(obj, key, value) {
|
|
9594
9594
|
if (key in obj) {
|
|
9595
9595
|
Object.defineProperty(obj, key, {
|
|
9596
9596
|
value,
|
|
@@ -9634,7 +9634,7 @@ function _iterable_to_array_limit$m(arr, i) {
|
|
|
9634
9634
|
function _non_iterable_rest$m() {
|
|
9635
9635
|
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
9636
|
}
|
|
9637
|
-
function _object_spread$
|
|
9637
|
+
function _object_spread$L(target) {
|
|
9638
9638
|
for (var i = 1; i < arguments.length; i++) {
|
|
9639
9639
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9640
9640
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9644,12 +9644,12 @@ function _object_spread$K(target) {
|
|
|
9644
9644
|
}));
|
|
9645
9645
|
}
|
|
9646
9646
|
ownKeys2.forEach(function(key) {
|
|
9647
|
-
_define_property$
|
|
9647
|
+
_define_property$M(target, key, source[key]);
|
|
9648
9648
|
});
|
|
9649
9649
|
}
|
|
9650
9650
|
return target;
|
|
9651
9651
|
}
|
|
9652
|
-
function ownKeys$
|
|
9652
|
+
function ownKeys$E(object, enumerableOnly) {
|
|
9653
9653
|
var keys2 = Object.keys(object);
|
|
9654
9654
|
if (Object.getOwnPropertySymbols) {
|
|
9655
9655
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9662,21 +9662,21 @@ function ownKeys$D(object, enumerableOnly) {
|
|
|
9662
9662
|
}
|
|
9663
9663
|
return keys2;
|
|
9664
9664
|
}
|
|
9665
|
-
function _object_spread_props$
|
|
9665
|
+
function _object_spread_props$E(target, source) {
|
|
9666
9666
|
source = source != null ? source : {};
|
|
9667
9667
|
if (Object.getOwnPropertyDescriptors) {
|
|
9668
9668
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9669
9669
|
} else {
|
|
9670
|
-
ownKeys$
|
|
9670
|
+
ownKeys$E(Object(source)).forEach(function(key) {
|
|
9671
9671
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9672
9672
|
});
|
|
9673
9673
|
}
|
|
9674
9674
|
return target;
|
|
9675
9675
|
}
|
|
9676
|
-
function _object_without_properties$
|
|
9676
|
+
function _object_without_properties$e(source, excluded) {
|
|
9677
9677
|
if (source == null)
|
|
9678
9678
|
return {};
|
|
9679
|
-
var target = _object_without_properties_loose$
|
|
9679
|
+
var target = _object_without_properties_loose$e(source, excluded);
|
|
9680
9680
|
var key, i;
|
|
9681
9681
|
if (Object.getOwnPropertySymbols) {
|
|
9682
9682
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -9691,7 +9691,7 @@ function _object_without_properties$d(source, excluded) {
|
|
|
9691
9691
|
}
|
|
9692
9692
|
return target;
|
|
9693
9693
|
}
|
|
9694
|
-
function _object_without_properties_loose$
|
|
9694
|
+
function _object_without_properties_loose$e(source, excluded) {
|
|
9695
9695
|
if (source == null)
|
|
9696
9696
|
return {};
|
|
9697
9697
|
var target = {};
|
|
@@ -9824,7 +9824,7 @@ function _ts_generator$5(thisArg, body) {
|
|
|
9824
9824
|
}
|
|
9825
9825
|
}
|
|
9826
9826
|
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$
|
|
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$e(_param, [
|
|
9828
9828
|
"value",
|
|
9829
9829
|
"label",
|
|
9830
9830
|
"placeholder",
|
|
@@ -9861,7 +9861,7 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
9861
9861
|
"shouldAlwaysShowPlaceholder",
|
|
9862
9862
|
"beforeMaskedStateChange"
|
|
9863
9863
|
]);
|
|
9864
|
-
var classes = useStyles$
|
|
9864
|
+
var classes = useStyles$G({
|
|
9865
9865
|
theme: tweakStyles
|
|
9866
9866
|
});
|
|
9867
9867
|
var tweakPreloaderStyles = useTweakStyles({
|
|
@@ -9915,8 +9915,8 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
9915
9915
|
var hasPlaceholder = (!hasLabel || hasFocus && !isReadonly || shouldAlwaysShowPlaceholder) && isStringNotEmpty(placeholder);
|
|
9916
9916
|
var shouldShowUnits = (hasValue || isFocused && !hasPlaceholder) && hasUnits;
|
|
9917
9917
|
var _obj;
|
|
9918
|
-
var props = _object_spread_props$
|
|
9919
|
-
className: clsx(classes.input, (_obj = {}, _define_property$
|
|
9918
|
+
var props = _object_spread_props$E(_object_spread$L({}, inputProps, addDataTestId(testId)), {
|
|
9919
|
+
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
9920
|
onFocus: handleFocus,
|
|
9921
9921
|
onBlur: handleBlur,
|
|
9922
9922
|
onChange: handleChange,
|
|
@@ -9932,14 +9932,14 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
9932
9932
|
return /* @__PURE__ */ jsxs("div", {
|
|
9933
9933
|
className: classes.root,
|
|
9934
9934
|
children: [
|
|
9935
|
-
/* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
9936
|
-
className: clsx(classes.inputWrapper, (_obj1 = {}, _define_property$
|
|
9935
|
+
/* @__PURE__ */ jsxs("div", _object_spread_props$E(_object_spread$L({
|
|
9936
|
+
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
9937
|
"data-value": isAutoSizeable ? value : void 0
|
|
9938
9938
|
}, addDataAttributes(data)), {
|
|
9939
9939
|
children: [
|
|
9940
|
-
mask === void 0 ? /* @__PURE__ */ jsx("input", _object_spread$
|
|
9940
|
+
mask === void 0 ? /* @__PURE__ */ jsx("input", _object_spread$L({
|
|
9941
9941
|
ref: ref !== null && ref !== void 0 ? ref : inputRef
|
|
9942
|
-
}, props)) : /* @__PURE__ */ jsx(InputMask, _object_spread$
|
|
9942
|
+
}, props)) : /* @__PURE__ */ jsx(InputMask, _object_spread$L({
|
|
9943
9943
|
ref: ref !== null && ref !== void 0 ? ref : inputRef,
|
|
9944
9944
|
mask,
|
|
9945
9945
|
maskPlaceholder,
|
|
@@ -9947,12 +9947,12 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
9947
9947
|
beforeMaskedStateChange
|
|
9948
9948
|
}, props)),
|
|
9949
9949
|
hasLabel && /* @__PURE__ */ jsx("span", {
|
|
9950
|
-
className: clsx(classes.label, (_obj2 = {}, _define_property$
|
|
9951
|
-
_define_property$
|
|
9950
|
+
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), // Обсуждаемо, сделал так, потому что не хочется создавать новую пропсу, на каждый чих в стилях
|
|
9951
|
+
_define_property$M(_obj2, classes.floatingWithoutPadding, hasFloatingLabel && border === "bottom"), _obj2)),
|
|
9952
9952
|
children: label
|
|
9953
9953
|
}),
|
|
9954
9954
|
shouldShowUnits && /* @__PURE__ */ jsxs("div", {
|
|
9955
|
-
className: clsx(classes.unitsWrapper, _define_property$
|
|
9955
|
+
className: clsx(classes.unitsWrapper, _define_property$M({}, classes.withFloatingLabel, hasFloatingLabel && hasLabel)),
|
|
9956
9956
|
children: [
|
|
9957
9957
|
/* @__PURE__ */ jsx("span", {
|
|
9958
9958
|
className: classes.fakeValue,
|
|
@@ -9984,7 +9984,7 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
9984
9984
|
})
|
|
9985
9985
|
}),
|
|
9986
9986
|
isReactNodeNotEmpty(iconType) && /* @__PURE__ */ jsx("div", {
|
|
9987
|
-
className: clsx(classes.inputIcon, _define_property$
|
|
9987
|
+
className: clsx(classes.inputIcon, _define_property$M({}, classes.activeIcon, !isDisabled && onIconClick !== void 0)),
|
|
9988
9988
|
onClick: !isDisabled ? onIconClick : void 0,
|
|
9989
9989
|
children: renderIcon(iconType)
|
|
9990
9990
|
})
|
|
@@ -10005,7 +10005,7 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10005
10005
|
});
|
|
10006
10006
|
var EMPTY_DATE_INPUT_VALUE = "__.__.____";
|
|
10007
10007
|
var EMPTY_DATE_RANGE_INPUT_VALUE = "".concat(EMPTY_DATE_INPUT_VALUE, " - ").concat(EMPTY_DATE_INPUT_VALUE);
|
|
10008
|
-
var useStyles$
|
|
10008
|
+
var useStyles$F = createThemedStyles("DateInput", {
|
|
10009
10009
|
root: {
|
|
10010
10010
|
width: "100%",
|
|
10011
10011
|
height: "100%",
|
|
@@ -10013,7 +10013,7 @@ var useStyles$E = createThemedStyles("DateInput", {
|
|
|
10013
10013
|
position: "relative"
|
|
10014
10014
|
}
|
|
10015
10015
|
});
|
|
10016
|
-
function _define_property$
|
|
10016
|
+
function _define_property$L(obj, key, value) {
|
|
10017
10017
|
if (key in obj) {
|
|
10018
10018
|
Object.defineProperty(obj, key, {
|
|
10019
10019
|
value,
|
|
@@ -10026,7 +10026,7 @@ function _define_property$K(obj, key, value) {
|
|
|
10026
10026
|
}
|
|
10027
10027
|
return obj;
|
|
10028
10028
|
}
|
|
10029
|
-
function _object_spread$
|
|
10029
|
+
function _object_spread$K(target) {
|
|
10030
10030
|
for (var i = 1; i < arguments.length; i++) {
|
|
10031
10031
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10032
10032
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10036,12 +10036,12 @@ function _object_spread$J(target) {
|
|
|
10036
10036
|
}));
|
|
10037
10037
|
}
|
|
10038
10038
|
ownKeys2.forEach(function(key) {
|
|
10039
|
-
_define_property$
|
|
10039
|
+
_define_property$L(target, key, source[key]);
|
|
10040
10040
|
});
|
|
10041
10041
|
}
|
|
10042
10042
|
return target;
|
|
10043
10043
|
}
|
|
10044
|
-
function ownKeys$
|
|
10044
|
+
function ownKeys$D(object, enumerableOnly) {
|
|
10045
10045
|
var keys2 = Object.keys(object);
|
|
10046
10046
|
if (Object.getOwnPropertySymbols) {
|
|
10047
10047
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10054,21 +10054,21 @@ function ownKeys$C(object, enumerableOnly) {
|
|
|
10054
10054
|
}
|
|
10055
10055
|
return keys2;
|
|
10056
10056
|
}
|
|
10057
|
-
function _object_spread_props$
|
|
10057
|
+
function _object_spread_props$D(target, source) {
|
|
10058
10058
|
source = source != null ? source : {};
|
|
10059
10059
|
if (Object.getOwnPropertyDescriptors) {
|
|
10060
10060
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10061
10061
|
} else {
|
|
10062
|
-
ownKeys$
|
|
10062
|
+
ownKeys$D(Object(source)).forEach(function(key) {
|
|
10063
10063
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10064
10064
|
});
|
|
10065
10065
|
}
|
|
10066
10066
|
return target;
|
|
10067
10067
|
}
|
|
10068
|
-
function _object_without_properties$
|
|
10068
|
+
function _object_without_properties$d(source, excluded) {
|
|
10069
10069
|
if (source == null)
|
|
10070
10070
|
return {};
|
|
10071
|
-
var target = _object_without_properties_loose$
|
|
10071
|
+
var target = _object_without_properties_loose$d(source, excluded);
|
|
10072
10072
|
var key, i;
|
|
10073
10073
|
if (Object.getOwnPropertySymbols) {
|
|
10074
10074
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10083,7 +10083,7 @@ function _object_without_properties$c(source, excluded) {
|
|
|
10083
10083
|
}
|
|
10084
10084
|
return target;
|
|
10085
10085
|
}
|
|
10086
|
-
function _object_without_properties_loose$
|
|
10086
|
+
function _object_without_properties_loose$d(source, excluded) {
|
|
10087
10087
|
if (source == null)
|
|
10088
10088
|
return {};
|
|
10089
10089
|
var target = {};
|
|
@@ -10098,7 +10098,7 @@ function _object_without_properties_loose$c(source, excluded) {
|
|
|
10098
10098
|
return target;
|
|
10099
10099
|
}
|
|
10100
10100
|
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$
|
|
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$d(_param, [
|
|
10102
10102
|
"date",
|
|
10103
10103
|
"startDate",
|
|
10104
10104
|
"endDate",
|
|
@@ -10111,7 +10111,7 @@ var DateInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10111
10111
|
"onClick",
|
|
10112
10112
|
"onChange"
|
|
10113
10113
|
]);
|
|
10114
|
-
var classes = useStyles$
|
|
10114
|
+
var classes = useStyles$F({
|
|
10115
10115
|
theme: tweakStyles
|
|
10116
10116
|
});
|
|
10117
10117
|
var tweakInputStyles = useTweakStyles({
|
|
@@ -10138,11 +10138,11 @@ var DateInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10138
10138
|
}
|
|
10139
10139
|
onChange === null || onChange === void 0 ? void 0 : onChange(event, value);
|
|
10140
10140
|
};
|
|
10141
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
10141
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$D(_object_spread$K({
|
|
10142
10142
|
className: clsx(classes.root, className),
|
|
10143
10143
|
onClick
|
|
10144
10144
|
}, addDataAttributes(data)), {
|
|
10145
|
-
children: /* @__PURE__ */ jsx(Input, _object_spread_props$
|
|
10145
|
+
children: /* @__PURE__ */ jsx(Input, _object_spread_props$D(_object_spread$K({}, inputProps), {
|
|
10146
10146
|
ref,
|
|
10147
10147
|
value: isRange ? "".concat(startDate).concat(endDate) : date,
|
|
10148
10148
|
mask: mask !== null && mask !== void 0 ? mask : isRange ? "99.99.9999 - 99.99.9999" : "99.99.9999",
|
|
@@ -10155,7 +10155,7 @@ var DateInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10155
10155
|
});
|
|
10156
10156
|
const reactDatepicker = "";
|
|
10157
10157
|
var LEFT_PADDING = 44;
|
|
10158
|
-
var useStyles$
|
|
10158
|
+
var useStyles$E = createThemedStyles("SearchInput", {
|
|
10159
10159
|
root: {
|
|
10160
10160
|
position: "relative"
|
|
10161
10161
|
},
|
|
@@ -10192,7 +10192,7 @@ var inputStyles$4 = {
|
|
|
10192
10192
|
fontSize: 14
|
|
10193
10193
|
}
|
|
10194
10194
|
};
|
|
10195
|
-
function _define_property$
|
|
10195
|
+
function _define_property$K(obj, key, value) {
|
|
10196
10196
|
if (key in obj) {
|
|
10197
10197
|
Object.defineProperty(obj, key, {
|
|
10198
10198
|
value,
|
|
@@ -10205,7 +10205,7 @@ function _define_property$J(obj, key, value) {
|
|
|
10205
10205
|
}
|
|
10206
10206
|
return obj;
|
|
10207
10207
|
}
|
|
10208
|
-
function _object_spread$
|
|
10208
|
+
function _object_spread$J(target) {
|
|
10209
10209
|
for (var i = 1; i < arguments.length; i++) {
|
|
10210
10210
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10211
10211
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10215,12 +10215,12 @@ function _object_spread$I(target) {
|
|
|
10215
10215
|
}));
|
|
10216
10216
|
}
|
|
10217
10217
|
ownKeys2.forEach(function(key) {
|
|
10218
|
-
_define_property$
|
|
10218
|
+
_define_property$K(target, key, source[key]);
|
|
10219
10219
|
});
|
|
10220
10220
|
}
|
|
10221
10221
|
return target;
|
|
10222
10222
|
}
|
|
10223
|
-
function ownKeys$
|
|
10223
|
+
function ownKeys$C(object, enumerableOnly) {
|
|
10224
10224
|
var keys2 = Object.keys(object);
|
|
10225
10225
|
if (Object.getOwnPropertySymbols) {
|
|
10226
10226
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10233,21 +10233,21 @@ function ownKeys$B(object, enumerableOnly) {
|
|
|
10233
10233
|
}
|
|
10234
10234
|
return keys2;
|
|
10235
10235
|
}
|
|
10236
|
-
function _object_spread_props$
|
|
10236
|
+
function _object_spread_props$C(target, source) {
|
|
10237
10237
|
source = source != null ? source : {};
|
|
10238
10238
|
if (Object.getOwnPropertyDescriptors) {
|
|
10239
10239
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10240
10240
|
} else {
|
|
10241
|
-
ownKeys$
|
|
10241
|
+
ownKeys$C(Object(source)).forEach(function(key) {
|
|
10242
10242
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10243
10243
|
});
|
|
10244
10244
|
}
|
|
10245
10245
|
return target;
|
|
10246
10246
|
}
|
|
10247
|
-
function _object_without_properties$
|
|
10247
|
+
function _object_without_properties$c(source, excluded) {
|
|
10248
10248
|
if (source == null)
|
|
10249
10249
|
return {};
|
|
10250
|
-
var target = _object_without_properties_loose$
|
|
10250
|
+
var target = _object_without_properties_loose$c(source, excluded);
|
|
10251
10251
|
var key, i;
|
|
10252
10252
|
if (Object.getOwnPropertySymbols) {
|
|
10253
10253
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10262,7 +10262,7 @@ function _object_without_properties$b(source, excluded) {
|
|
|
10262
10262
|
}
|
|
10263
10263
|
return target;
|
|
10264
10264
|
}
|
|
10265
|
-
function _object_without_properties_loose$
|
|
10265
|
+
function _object_without_properties_loose$c(source, excluded) {
|
|
10266
10266
|
if (source == null)
|
|
10267
10267
|
return {};
|
|
10268
10268
|
var target = {};
|
|
@@ -10277,13 +10277,13 @@ function _object_without_properties_loose$b(source, excluded) {
|
|
|
10277
10277
|
return target;
|
|
10278
10278
|
}
|
|
10279
10279
|
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$
|
|
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$c(_param, [
|
|
10281
10281
|
"isClearable",
|
|
10282
10282
|
"tweakStyles",
|
|
10283
10283
|
"testId",
|
|
10284
10284
|
"data"
|
|
10285
10285
|
]);
|
|
10286
|
-
var classes = useStyles$
|
|
10286
|
+
var classes = useStyles$E({
|
|
10287
10287
|
theme: tweakStyles
|
|
10288
10288
|
});
|
|
10289
10289
|
var tweakInputStyles = useTweakStyles({
|
|
@@ -10292,7 +10292,7 @@ var SearchInput = function(_param) {
|
|
|
10292
10292
|
className: "tweakInput",
|
|
10293
10293
|
currentComponentName: "SearchInput"
|
|
10294
10294
|
});
|
|
10295
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
10295
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$C(_object_spread$J({
|
|
10296
10296
|
className: classes.root
|
|
10297
10297
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
10298
10298
|
children: [
|
|
@@ -10302,7 +10302,7 @@ var SearchInput = function(_param) {
|
|
|
10302
10302
|
type: "search"
|
|
10303
10303
|
})
|
|
10304
10304
|
}),
|
|
10305
|
-
/* @__PURE__ */ jsx(Input, _object_spread$
|
|
10305
|
+
/* @__PURE__ */ jsx(Input, _object_spread$J({
|
|
10306
10306
|
isClearable,
|
|
10307
10307
|
isActive: props.value !== "" && props.value !== void 0,
|
|
10308
10308
|
testId: getTestId(testId, "input"),
|
|
@@ -10350,7 +10350,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
10350
10350
|
_defineProperties(Constructor, staticProps);
|
|
10351
10351
|
return Constructor;
|
|
10352
10352
|
}
|
|
10353
|
-
function _define_property$
|
|
10353
|
+
function _define_property$J(obj, key, value) {
|
|
10354
10354
|
if (key in obj) {
|
|
10355
10355
|
Object.defineProperty(obj, key, {
|
|
10356
10356
|
value,
|
|
@@ -10383,7 +10383,7 @@ function _inherits(subClass, superClass) {
|
|
|
10383
10383
|
if (superClass)
|
|
10384
10384
|
_set_prototype_of(subClass, superClass);
|
|
10385
10385
|
}
|
|
10386
|
-
function _object_spread$
|
|
10386
|
+
function _object_spread$I(target) {
|
|
10387
10387
|
for (var i = 1; i < arguments.length; i++) {
|
|
10388
10388
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10389
10389
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10393,15 +10393,15 @@ function _object_spread$H(target) {
|
|
|
10393
10393
|
}));
|
|
10394
10394
|
}
|
|
10395
10395
|
ownKeys2.forEach(function(key) {
|
|
10396
|
-
_define_property$
|
|
10396
|
+
_define_property$J(target, key, source[key]);
|
|
10397
10397
|
});
|
|
10398
10398
|
}
|
|
10399
10399
|
return target;
|
|
10400
10400
|
}
|
|
10401
|
-
function _object_without_properties$
|
|
10401
|
+
function _object_without_properties$b(source, excluded) {
|
|
10402
10402
|
if (source == null)
|
|
10403
10403
|
return {};
|
|
10404
|
-
var target = _object_without_properties_loose$
|
|
10404
|
+
var target = _object_without_properties_loose$b(source, excluded);
|
|
10405
10405
|
var key, i;
|
|
10406
10406
|
if (Object.getOwnPropertySymbols) {
|
|
10407
10407
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10416,7 +10416,7 @@ function _object_without_properties$a(source, excluded) {
|
|
|
10416
10416
|
}
|
|
10417
10417
|
return target;
|
|
10418
10418
|
}
|
|
10419
|
-
function _object_without_properties_loose$
|
|
10419
|
+
function _object_without_properties_loose$b(source, excluded) {
|
|
10420
10420
|
if (source == null)
|
|
10421
10421
|
return {};
|
|
10422
10422
|
var target = {};
|
|
@@ -10482,8 +10482,8 @@ var ScrollIntoViewIfNeeded = /* @__PURE__ */ function(PureComponent2) {
|
|
|
10482
10482
|
_class_call_check(this, ScrollIntoViewIfNeeded2);
|
|
10483
10483
|
var _this;
|
|
10484
10484
|
_this = _super.apply(this, arguments);
|
|
10485
|
-
_define_property$
|
|
10486
|
-
_define_property$
|
|
10485
|
+
_define_property$J(_assert_this_initialized(_this), "node", createRef());
|
|
10486
|
+
_define_property$J(_assert_this_initialized(_this), "handleScrollIntoViewIfNeeded", function() {
|
|
10487
10487
|
var options = _this.props.options;
|
|
10488
10488
|
var _this_node = _this.node, node = _this_node.current;
|
|
10489
10489
|
if (node) {
|
|
@@ -10519,13 +10519,13 @@ var ScrollIntoViewIfNeeded = /* @__PURE__ */ function(PureComponent2) {
|
|
|
10519
10519
|
_this_props.active;
|
|
10520
10520
|
var elementType = _this_props.elementType, children = _this_props.children;
|
|
10521
10521
|
_this_props.options;
|
|
10522
|
-
var wrapperProps = _object_without_properties$
|
|
10522
|
+
var wrapperProps = _object_without_properties$b(_this_props, [
|
|
10523
10523
|
"active",
|
|
10524
10524
|
"elementType",
|
|
10525
10525
|
"children",
|
|
10526
10526
|
"options"
|
|
10527
10527
|
]);
|
|
10528
|
-
return createElement(elementType !== null && elementType !== void 0 ? elementType : ScrollIntoViewIfNeededDefaultElementType, _object_spread$
|
|
10528
|
+
return createElement(elementType !== null && elementType !== void 0 ? elementType : ScrollIntoViewIfNeededDefaultElementType, _object_spread$I({
|
|
10529
10529
|
ref: this.node
|
|
10530
10530
|
}, wrapperProps), children);
|
|
10531
10531
|
}
|
|
@@ -10533,10 +10533,10 @@ var ScrollIntoViewIfNeeded = /* @__PURE__ */ function(PureComponent2) {
|
|
|
10533
10533
|
]);
|
|
10534
10534
|
return ScrollIntoViewIfNeeded2;
|
|
10535
10535
|
}(PureComponent);
|
|
10536
|
-
_define_property$
|
|
10536
|
+
_define_property$J(ScrollIntoViewIfNeeded, "defaultProps", ScrollIntoViewIfNeededDefaultProps);
|
|
10537
10537
|
var DEFAULT_OPTION_INDEX = -2;
|
|
10538
10538
|
var ALL_OPTION_INDEX = -1;
|
|
10539
|
-
function _define_property$
|
|
10539
|
+
function _define_property$I(obj, key, value) {
|
|
10540
10540
|
if (key in obj) {
|
|
10541
10541
|
Object.defineProperty(obj, key, {
|
|
10542
10542
|
value,
|
|
@@ -10549,7 +10549,7 @@ function _define_property$H(obj, key, value) {
|
|
|
10549
10549
|
}
|
|
10550
10550
|
return obj;
|
|
10551
10551
|
}
|
|
10552
|
-
function _object_spread$
|
|
10552
|
+
function _object_spread$H(target) {
|
|
10553
10553
|
for (var i = 1; i < arguments.length; i++) {
|
|
10554
10554
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10555
10555
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10559,7 +10559,7 @@ function _object_spread$G(target) {
|
|
|
10559
10559
|
}));
|
|
10560
10560
|
}
|
|
10561
10561
|
ownKeys2.forEach(function(key) {
|
|
10562
|
-
_define_property$
|
|
10562
|
+
_define_property$I(target, key, source[key]);
|
|
10563
10563
|
});
|
|
10564
10564
|
}
|
|
10565
10565
|
return target;
|
|
@@ -10570,7 +10570,7 @@ var CELL_PADDING = [
|
|
|
10570
10570
|
10,
|
|
10571
10571
|
20
|
|
10572
10572
|
];
|
|
10573
|
-
var useStyles$
|
|
10573
|
+
var useStyles$D = createThemedStyles("SelectList", {
|
|
10574
10574
|
root: {
|
|
10575
10575
|
borderRadius: dimensions.BORDER_RADIUS_SMALL,
|
|
10576
10576
|
boxShadow: "0 13px 74px -27px rgba(0, 0, 0, 0.11)",
|
|
@@ -10594,7 +10594,7 @@ var useStyles$C = createThemedStyles("SelectList", {
|
|
|
10594
10594
|
]
|
|
10595
10595
|
}
|
|
10596
10596
|
},
|
|
10597
|
-
list: _object_spread$
|
|
10597
|
+
list: _object_spread$H({
|
|
10598
10598
|
height: "100%",
|
|
10599
10599
|
maxHeight: ROW_HEIGHT$1 * 6,
|
|
10600
10600
|
cursor: "pointer",
|
|
@@ -10637,7 +10637,7 @@ var checkboxStyles$1 = {
|
|
|
10637
10637
|
display: "none"
|
|
10638
10638
|
}
|
|
10639
10639
|
};
|
|
10640
|
-
function _define_property$
|
|
10640
|
+
function _define_property$H(obj, key, value) {
|
|
10641
10641
|
if (key in obj) {
|
|
10642
10642
|
Object.defineProperty(obj, key, {
|
|
10643
10643
|
value,
|
|
@@ -10650,7 +10650,7 @@ function _define_property$G(obj, key, value) {
|
|
|
10650
10650
|
}
|
|
10651
10651
|
return obj;
|
|
10652
10652
|
}
|
|
10653
|
-
function _object_spread$
|
|
10653
|
+
function _object_spread$G(target) {
|
|
10654
10654
|
for (var i = 1; i < arguments.length; i++) {
|
|
10655
10655
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10656
10656
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10660,12 +10660,12 @@ function _object_spread$F(target) {
|
|
|
10660
10660
|
}));
|
|
10661
10661
|
}
|
|
10662
10662
|
ownKeys2.forEach(function(key) {
|
|
10663
|
-
_define_property$
|
|
10663
|
+
_define_property$H(target, key, source[key]);
|
|
10664
10664
|
});
|
|
10665
10665
|
}
|
|
10666
10666
|
return target;
|
|
10667
10667
|
}
|
|
10668
|
-
function ownKeys$
|
|
10668
|
+
function ownKeys$B(object, enumerableOnly) {
|
|
10669
10669
|
var keys2 = Object.keys(object);
|
|
10670
10670
|
if (Object.getOwnPropertySymbols) {
|
|
10671
10671
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10678,12 +10678,12 @@ function ownKeys$A(object, enumerableOnly) {
|
|
|
10678
10678
|
}
|
|
10679
10679
|
return keys2;
|
|
10680
10680
|
}
|
|
10681
|
-
function _object_spread_props$
|
|
10681
|
+
function _object_spread_props$B(target, source) {
|
|
10682
10682
|
source = source != null ? source : {};
|
|
10683
10683
|
if (Object.getOwnPropertyDescriptors) {
|
|
10684
10684
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10685
10685
|
} else {
|
|
10686
|
-
ownKeys$
|
|
10686
|
+
ownKeys$B(Object(source)).forEach(function(key) {
|
|
10687
10687
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10688
10688
|
});
|
|
10689
10689
|
}
|
|
@@ -10693,12 +10693,12 @@ var SelectListItem = function(param) {
|
|
|
10693
10693
|
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
10694
|
var isMultiSelect = isNotEmpty(onToggleCheckbox);
|
|
10695
10695
|
var _obj;
|
|
10696
|
-
return /* @__PURE__ */ jsx(ScrollIntoViewIfNeeded, _object_spread_props$
|
|
10696
|
+
return /* @__PURE__ */ jsx(ScrollIntoViewIfNeeded, _object_spread_props$B(_object_spread$G({
|
|
10697
10697
|
active: isFocused,
|
|
10698
10698
|
options: {
|
|
10699
10699
|
block: "nearest"
|
|
10700
10700
|
},
|
|
10701
|
-
className: clsx(classes.cell, (_obj = {}, _define_property$
|
|
10701
|
+
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
10702
|
}, addDataAttributes({
|
|
10703
10703
|
disabled: isDisabled,
|
|
10704
10704
|
active: isActive,
|
|
@@ -10720,7 +10720,7 @@ var SelectListItem = function(param) {
|
|
|
10720
10720
|
}) : children
|
|
10721
10721
|
}));
|
|
10722
10722
|
};
|
|
10723
|
-
function _define_property$
|
|
10723
|
+
function _define_property$G(obj, key, value) {
|
|
10724
10724
|
if (key in obj) {
|
|
10725
10725
|
Object.defineProperty(obj, key, {
|
|
10726
10726
|
value,
|
|
@@ -10733,7 +10733,7 @@ function _define_property$F(obj, key, value) {
|
|
|
10733
10733
|
}
|
|
10734
10734
|
return obj;
|
|
10735
10735
|
}
|
|
10736
|
-
function _object_spread$
|
|
10736
|
+
function _object_spread$F(target) {
|
|
10737
10737
|
for (var i = 1; i < arguments.length; i++) {
|
|
10738
10738
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10739
10739
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10743,12 +10743,12 @@ function _object_spread$E(target) {
|
|
|
10743
10743
|
}));
|
|
10744
10744
|
}
|
|
10745
10745
|
ownKeys2.forEach(function(key) {
|
|
10746
|
-
_define_property$
|
|
10746
|
+
_define_property$G(target, key, source[key]);
|
|
10747
10747
|
});
|
|
10748
10748
|
}
|
|
10749
10749
|
return target;
|
|
10750
10750
|
}
|
|
10751
|
-
function ownKeys$
|
|
10751
|
+
function ownKeys$A(object, enumerableOnly) {
|
|
10752
10752
|
var keys2 = Object.keys(object);
|
|
10753
10753
|
if (Object.getOwnPropertySymbols) {
|
|
10754
10754
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10761,12 +10761,12 @@ function ownKeys$z(object, enumerableOnly) {
|
|
|
10761
10761
|
}
|
|
10762
10762
|
return keys2;
|
|
10763
10763
|
}
|
|
10764
|
-
function _object_spread_props$
|
|
10764
|
+
function _object_spread_props$A(target, source) {
|
|
10765
10765
|
source = source != null ? source : {};
|
|
10766
10766
|
if (Object.getOwnPropertyDescriptors) {
|
|
10767
10767
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10768
10768
|
} else {
|
|
10769
|
-
ownKeys$
|
|
10769
|
+
ownKeys$A(Object(source)).forEach(function(key) {
|
|
10770
10770
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10771
10771
|
});
|
|
10772
10772
|
}
|
|
@@ -10774,7 +10774,7 @@ function _object_spread_props$z(target, source) {
|
|
|
10774
10774
|
}
|
|
10775
10775
|
function SelectList(param) {
|
|
10776
10776
|
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$
|
|
10777
|
+
var classes = useStyles$D({
|
|
10778
10778
|
theme: tweakStyles
|
|
10779
10779
|
});
|
|
10780
10780
|
var isMultiSelect = isNotEmpty(onToggleCheckbox);
|
|
@@ -10811,13 +10811,13 @@ function SelectList(param) {
|
|
|
10811
10811
|
};
|
|
10812
10812
|
return /* @__PURE__ */ jsxs(ScrollIntoViewIfNeeded, {
|
|
10813
10813
|
active: shouldScrollToList && !isMultiSelect,
|
|
10814
|
-
className: clsx(classes.root, _define_property$
|
|
10814
|
+
className: clsx(classes.root, _define_property$G({}, classes.withListHeader, isReactNodeNotEmpty(customListHeader))),
|
|
10815
10815
|
children: [
|
|
10816
10816
|
isReactNodeNotEmpty(customListHeader) && /* @__PURE__ */ jsx("div", {
|
|
10817
10817
|
className: classes.listHeader,
|
|
10818
10818
|
children: customListHeader
|
|
10819
10819
|
}),
|
|
10820
|
-
/* @__PURE__ */ jsx("div", _object_spread_props$
|
|
10820
|
+
/* @__PURE__ */ jsx("div", _object_spread_props$A(_object_spread$F({
|
|
10821
10821
|
className: classes.list
|
|
10822
10822
|
}, addDataTestId(testId)), {
|
|
10823
10823
|
children: isLoading ? /* @__PURE__ */ jsx("div", {
|
|
@@ -10890,7 +10890,7 @@ var getDefaultConvertToIdFunction = function(convertValueToString) {
|
|
|
10890
10890
|
var isMultiSelectValue = function(props, _value) {
|
|
10891
10891
|
return props.isMultiSelect === true;
|
|
10892
10892
|
};
|
|
10893
|
-
var useStyles$
|
|
10893
|
+
var useStyles$C = createThemedStyles("Select", {
|
|
10894
10894
|
root: {
|
|
10895
10895
|
width: "100%",
|
|
10896
10896
|
position: "relative",
|
|
@@ -11039,7 +11039,7 @@ function _async_to_generator$4(fn3) {
|
|
|
11039
11039
|
});
|
|
11040
11040
|
};
|
|
11041
11041
|
}
|
|
11042
|
-
function _define_property$
|
|
11042
|
+
function _define_property$F(obj, key, value) {
|
|
11043
11043
|
if (key in obj) {
|
|
11044
11044
|
Object.defineProperty(obj, key, {
|
|
11045
11045
|
value,
|
|
@@ -11090,7 +11090,7 @@ function _non_iterable_rest$l() {
|
|
|
11090
11090
|
function _non_iterable_spread$6() {
|
|
11091
11091
|
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
11092
|
}
|
|
11093
|
-
function _object_spread$
|
|
11093
|
+
function _object_spread$E(target) {
|
|
11094
11094
|
for (var i = 1; i < arguments.length; i++) {
|
|
11095
11095
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
11096
11096
|
var ownKeys2 = Object.keys(source);
|
|
@@ -11100,12 +11100,12 @@ function _object_spread$D(target) {
|
|
|
11100
11100
|
}));
|
|
11101
11101
|
}
|
|
11102
11102
|
ownKeys2.forEach(function(key) {
|
|
11103
|
-
_define_property$
|
|
11103
|
+
_define_property$F(target, key, source[key]);
|
|
11104
11104
|
});
|
|
11105
11105
|
}
|
|
11106
11106
|
return target;
|
|
11107
11107
|
}
|
|
11108
|
-
function ownKeys$
|
|
11108
|
+
function ownKeys$z(object, enumerableOnly) {
|
|
11109
11109
|
var keys2 = Object.keys(object);
|
|
11110
11110
|
if (Object.getOwnPropertySymbols) {
|
|
11111
11111
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -11118,21 +11118,21 @@ function ownKeys$y(object, enumerableOnly) {
|
|
|
11118
11118
|
}
|
|
11119
11119
|
return keys2;
|
|
11120
11120
|
}
|
|
11121
|
-
function _object_spread_props$
|
|
11121
|
+
function _object_spread_props$z(target, source) {
|
|
11122
11122
|
source = source != null ? source : {};
|
|
11123
11123
|
if (Object.getOwnPropertyDescriptors) {
|
|
11124
11124
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
11125
11125
|
} else {
|
|
11126
|
-
ownKeys$
|
|
11126
|
+
ownKeys$z(Object(source)).forEach(function(key) {
|
|
11127
11127
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
11128
11128
|
});
|
|
11129
11129
|
}
|
|
11130
11130
|
return target;
|
|
11131
11131
|
}
|
|
11132
|
-
function _object_without_properties$
|
|
11132
|
+
function _object_without_properties$a(source, excluded) {
|
|
11133
11133
|
if (source == null)
|
|
11134
11134
|
return {};
|
|
11135
|
-
var target = _object_without_properties_loose$
|
|
11135
|
+
var target = _object_without_properties_loose$a(source, excluded);
|
|
11136
11136
|
var key, i;
|
|
11137
11137
|
if (Object.getOwnPropertySymbols) {
|
|
11138
11138
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -11147,7 +11147,7 @@ function _object_without_properties$9(source, excluded) {
|
|
|
11147
11147
|
}
|
|
11148
11148
|
return target;
|
|
11149
11149
|
}
|
|
11150
|
-
function _object_without_properties_loose$
|
|
11150
|
+
function _object_without_properties_loose$a(source, excluded) {
|
|
11151
11151
|
if (source == null)
|
|
11152
11152
|
return {};
|
|
11153
11153
|
var target = {};
|
|
@@ -11283,7 +11283,7 @@ function _ts_generator$4(thisArg, body) {
|
|
|
11283
11283
|
}
|
|
11284
11284
|
}
|
|
11285
11285
|
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$
|
|
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$a(props, [
|
|
11287
11287
|
"options",
|
|
11288
11288
|
"value",
|
|
11289
11289
|
"defaultOptionLabel",
|
|
@@ -11314,10 +11314,10 @@ function Select(props) {
|
|
|
11314
11314
|
"convertValueToReactNode",
|
|
11315
11315
|
"optionsFilter"
|
|
11316
11316
|
]);
|
|
11317
|
-
var classes = useStyles$
|
|
11317
|
+
var classes = useStyles$C({
|
|
11318
11318
|
theme: tweakStyles
|
|
11319
11319
|
});
|
|
11320
|
-
var _ref = searchInput !== null && searchInput !== void 0 ? searchInput : {}, tmp = _ref.shouldRenderInList, shouldRenderSearchInputInList = tmp === void 0 ? false : tmp, searchInputProps = _object_without_properties$
|
|
11320
|
+
var _ref = searchInput !== null && searchInput !== void 0 ? searchInput : {}, tmp = _ref.shouldRenderInList, shouldRenderSearchInputInList = tmp === void 0 ? false : tmp, searchInputProps = _object_without_properties$a(_ref, [
|
|
11321
11321
|
"shouldRenderInList"
|
|
11322
11322
|
]);
|
|
11323
11323
|
var hasSearchInputInList = optionsMode !== "normal" && shouldRenderSearchInputInList;
|
|
@@ -11652,8 +11652,8 @@ function Select(props) {
|
|
|
11652
11652
|
isOpen
|
|
11653
11653
|
]);
|
|
11654
11654
|
var _obj;
|
|
11655
|
-
var listEl = /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
11656
|
-
className: clsx(classes.listWrapper, (_obj = {}, _define_property$
|
|
11655
|
+
var listEl = /* @__PURE__ */ jsx("div", _object_spread_props$z(_object_spread$E({
|
|
11656
|
+
className: clsx(classes.listWrapper, (_obj = {}, _define_property$F(_obj, classes.withoutPopper, !shouldUsePopper), _define_property$F(_obj, classes.listWrapperInBody, shouldRenderInBody), _obj)),
|
|
11657
11657
|
ref: list,
|
|
11658
11658
|
style: popperData === null || popperData === void 0 ? void 0 : popperData.styles.popper,
|
|
11659
11659
|
onBlur: handleBlur
|
|
@@ -11663,7 +11663,7 @@ function Select(props) {
|
|
|
11663
11663
|
defaultOptionLabel: hasDefaultOption && shouldShowDefaultOption && defaultOptionLabel,
|
|
11664
11664
|
allOptionsLabel: shouldShowAllOption && allOptionsLabel,
|
|
11665
11665
|
areAllOptionsSelected,
|
|
11666
|
-
customListHeader: hasSearchInputInList && /* @__PURE__ */ jsx(SearchInput, _object_spread$
|
|
11666
|
+
customListHeader: hasSearchInputInList && /* @__PURE__ */ jsx(SearchInput, _object_spread$E({
|
|
11667
11667
|
value: searchValue,
|
|
11668
11668
|
onChange: handleInputChange,
|
|
11669
11669
|
tweakStyles: tweakSearchInputStyles,
|
|
@@ -11710,7 +11710,7 @@ function Select(props) {
|
|
|
11710
11710
|
onClick: isDisabled ? void 0 : handleOnClick,
|
|
11711
11711
|
ref: inputWrapper,
|
|
11712
11712
|
children: [
|
|
11713
|
-
/* @__PURE__ */ jsx(Input, _object_spread$
|
|
11713
|
+
/* @__PURE__ */ jsx(Input, _object_spread$E({
|
|
11714
11714
|
value: searchValue !== "" && !shouldRenderSearchInputInList ? searchValue : showedStringValue,
|
|
11715
11715
|
onChange: handleInputChange,
|
|
11716
11716
|
isActive: isListOpen,
|
|
@@ -11747,7 +11747,7 @@ function Select(props) {
|
|
|
11747
11747
|
}
|
|
11748
11748
|
var SELECT_PADDING_LEFT = 12;
|
|
11749
11749
|
var SELECT_PADDING_RIGHT = 24;
|
|
11750
|
-
var useStyles$
|
|
11750
|
+
var useStyles$B = createThemedStyles("DatePickerHeader", {
|
|
11751
11751
|
btn: {
|
|
11752
11752
|
width: 36,
|
|
11753
11753
|
height: 36,
|
|
@@ -11816,7 +11816,7 @@ var selectStyles$1 = {
|
|
|
11816
11816
|
};
|
|
11817
11817
|
var DatePickerHeader = function(param) {
|
|
11818
11818
|
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$
|
|
11819
|
+
var classes = useStyles$B({
|
|
11820
11820
|
theme: tweakStyles
|
|
11821
11821
|
});
|
|
11822
11822
|
var tweakSelectStyles = useTweakStyles({
|
|
@@ -11925,7 +11925,7 @@ var getDateValueParser = function(dateFormat) {
|
|
|
11925
11925
|
var areDatesEquals = function(date1, date2) {
|
|
11926
11926
|
return isEmpty(date1) && isEmpty(date2) || isNotEmpty(date1) && isNotEmpty(date2) && isSameDay(date1, date2);
|
|
11927
11927
|
};
|
|
11928
|
-
var useStyles$
|
|
11928
|
+
var useStyles$A = createThemedStyles("DatePicker", {
|
|
11929
11929
|
root: {
|
|
11930
11930
|
width: "100%",
|
|
11931
11931
|
height: "100%"
|
|
@@ -11959,7 +11959,7 @@ function _array_with_holes$k(arr) {
|
|
|
11959
11959
|
if (Array.isArray(arr))
|
|
11960
11960
|
return arr;
|
|
11961
11961
|
}
|
|
11962
|
-
function _define_property$
|
|
11962
|
+
function _define_property$E(obj, key, value) {
|
|
11963
11963
|
if (key in obj) {
|
|
11964
11964
|
Object.defineProperty(obj, key, {
|
|
11965
11965
|
value,
|
|
@@ -12003,7 +12003,7 @@ function _iterable_to_array_limit$k(arr, i) {
|
|
|
12003
12003
|
function _non_iterable_rest$k() {
|
|
12004
12004
|
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
12005
|
}
|
|
12006
|
-
function _object_spread$
|
|
12006
|
+
function _object_spread$D(target) {
|
|
12007
12007
|
for (var i = 1; i < arguments.length; i++) {
|
|
12008
12008
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
12009
12009
|
var ownKeys2 = Object.keys(source);
|
|
@@ -12013,12 +12013,12 @@ function _object_spread$C(target) {
|
|
|
12013
12013
|
}));
|
|
12014
12014
|
}
|
|
12015
12015
|
ownKeys2.forEach(function(key) {
|
|
12016
|
-
_define_property$
|
|
12016
|
+
_define_property$E(target, key, source[key]);
|
|
12017
12017
|
});
|
|
12018
12018
|
}
|
|
12019
12019
|
return target;
|
|
12020
12020
|
}
|
|
12021
|
-
function ownKeys$
|
|
12021
|
+
function ownKeys$y(object, enumerableOnly) {
|
|
12022
12022
|
var keys2 = Object.keys(object);
|
|
12023
12023
|
if (Object.getOwnPropertySymbols) {
|
|
12024
12024
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -12031,21 +12031,21 @@ function ownKeys$x(object, enumerableOnly) {
|
|
|
12031
12031
|
}
|
|
12032
12032
|
return keys2;
|
|
12033
12033
|
}
|
|
12034
|
-
function _object_spread_props$
|
|
12034
|
+
function _object_spread_props$y(target, source) {
|
|
12035
12035
|
source = source != null ? source : {};
|
|
12036
12036
|
if (Object.getOwnPropertyDescriptors) {
|
|
12037
12037
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
12038
12038
|
} else {
|
|
12039
|
-
ownKeys$
|
|
12039
|
+
ownKeys$y(Object(source)).forEach(function(key) {
|
|
12040
12040
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
12041
12041
|
});
|
|
12042
12042
|
}
|
|
12043
12043
|
return target;
|
|
12044
12044
|
}
|
|
12045
|
-
function _object_without_properties$
|
|
12045
|
+
function _object_without_properties$9(source, excluded) {
|
|
12046
12046
|
if (source == null)
|
|
12047
12047
|
return {};
|
|
12048
|
-
var target = _object_without_properties_loose$
|
|
12048
|
+
var target = _object_without_properties_loose$9(source, excluded);
|
|
12049
12049
|
var key, i;
|
|
12050
12050
|
if (Object.getOwnPropertySymbols) {
|
|
12051
12051
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -12060,7 +12060,7 @@ function _object_without_properties$8(source, excluded) {
|
|
|
12060
12060
|
}
|
|
12061
12061
|
return target;
|
|
12062
12062
|
}
|
|
12063
|
-
function _object_without_properties_loose$
|
|
12063
|
+
function _object_without_properties_loose$9(source, excluded) {
|
|
12064
12064
|
if (source == null)
|
|
12065
12065
|
return {};
|
|
12066
12066
|
var target = {};
|
|
@@ -12091,7 +12091,7 @@ function _unsupported_iterable_to_array$k(o, minLen) {
|
|
|
12091
12091
|
return _array_like_to_array$k(o, minLen);
|
|
12092
12092
|
}
|
|
12093
12093
|
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$
|
|
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$9(_param, [
|
|
12095
12095
|
"data",
|
|
12096
12096
|
"selectedDate",
|
|
12097
12097
|
"minDate",
|
|
@@ -12136,7 +12136,7 @@ var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
12136
12136
|
"onKeyDown",
|
|
12137
12137
|
"tweakStyles"
|
|
12138
12138
|
]);
|
|
12139
|
-
var classes = useStyles$
|
|
12139
|
+
var classes = useStyles$A({
|
|
12140
12140
|
theme: tweakStyles
|
|
12141
12141
|
});
|
|
12142
12142
|
var tweakDateInputStyles = useTweakStyles({
|
|
@@ -12159,7 +12159,7 @@ var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
12159
12159
|
var _useState4 = _sliced_to_array$k(useState(endDate), 2), end2 = _useState4[0], setEnd = _useState4[1];
|
|
12160
12160
|
var _useState5 = _sliced_to_array$k(useState(formatDate(endDate)), 2), endDateValue = _useState5[0], setEndDateValue = _useState5[1];
|
|
12161
12161
|
var hasDateInputValue = isRange ? isStringNotEmpty(startDateValue) || isStringNotEmpty(endDateValue) : isStringNotEmpty(dateValue);
|
|
12162
|
-
var dateInputProps = _object_spread$
|
|
12162
|
+
var dateInputProps = _object_spread$D(_object_spread_props$y(_object_spread$D({}, inputProps), {
|
|
12163
12163
|
isRange,
|
|
12164
12164
|
isDisabled,
|
|
12165
12165
|
isClearable,
|
|
@@ -12257,10 +12257,10 @@ var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
12257
12257
|
startDate,
|
|
12258
12258
|
endDate
|
|
12259
12259
|
]);
|
|
12260
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
12260
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$y(_object_spread$D({
|
|
12261
12261
|
className: classes.root
|
|
12262
12262
|
}, addDataAttributes(data)), {
|
|
12263
|
-
children: /* @__PURE__ */ jsx(DatePickerComponent, _object_spread$
|
|
12263
|
+
children: /* @__PURE__ */ jsx(DatePickerComponent, _object_spread$D({
|
|
12264
12264
|
ref,
|
|
12265
12265
|
minDate,
|
|
12266
12266
|
maxDate,
|
|
@@ -12289,9 +12289,9 @@ var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
12289
12289
|
preventOpenOnFocus,
|
|
12290
12290
|
shouldCloseOnSelect,
|
|
12291
12291
|
customInputRef,
|
|
12292
|
-
customInput: /* @__PURE__ */ jsx(CustomInput, _object_spread$
|
|
12292
|
+
customInput: /* @__PURE__ */ jsx(CustomInput, _object_spread$D({}, dateInputProps)),
|
|
12293
12293
|
renderCustomHeader: renderCustomHeader !== null && renderCustomHeader !== void 0 ? renderCustomHeader : function(baseProps) {
|
|
12294
|
-
return /* @__PURE__ */ jsx(DatePickerHeader, _object_spread_props$
|
|
12294
|
+
return /* @__PURE__ */ jsx(DatePickerHeader, _object_spread_props$y(_object_spread$D({}, baseProps), {
|
|
12295
12295
|
months
|
|
12296
12296
|
}));
|
|
12297
12297
|
},
|
|
@@ -12328,7 +12328,7 @@ var DatePicker = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
12328
12328
|
}));
|
|
12329
12329
|
});
|
|
12330
12330
|
var LINK_REGEXP = /(http(s?):\/\/(.*))(\s?)/;
|
|
12331
|
-
var useStyles$
|
|
12331
|
+
var useStyles$z = createThemedStyles("Description", {
|
|
12332
12332
|
root: {},
|
|
12333
12333
|
button: {
|
|
12334
12334
|
cursor: "pointer",
|
|
@@ -12369,7 +12369,7 @@ function _array_with_holes$j(arr) {
|
|
|
12369
12369
|
if (Array.isArray(arr))
|
|
12370
12370
|
return arr;
|
|
12371
12371
|
}
|
|
12372
|
-
function _define_property$
|
|
12372
|
+
function _define_property$D(obj, key, value) {
|
|
12373
12373
|
if (key in obj) {
|
|
12374
12374
|
Object.defineProperty(obj, key, {
|
|
12375
12375
|
value,
|
|
@@ -12413,7 +12413,7 @@ function _iterable_to_array_limit$j(arr, i) {
|
|
|
12413
12413
|
function _non_iterable_rest$j() {
|
|
12414
12414
|
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
12415
|
}
|
|
12416
|
-
function _object_spread$
|
|
12416
|
+
function _object_spread$C(target) {
|
|
12417
12417
|
for (var i = 1; i < arguments.length; i++) {
|
|
12418
12418
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
12419
12419
|
var ownKeys2 = Object.keys(source);
|
|
@@ -12423,12 +12423,12 @@ function _object_spread$B(target) {
|
|
|
12423
12423
|
}));
|
|
12424
12424
|
}
|
|
12425
12425
|
ownKeys2.forEach(function(key) {
|
|
12426
|
-
_define_property$
|
|
12426
|
+
_define_property$D(target, key, source[key]);
|
|
12427
12427
|
});
|
|
12428
12428
|
}
|
|
12429
12429
|
return target;
|
|
12430
12430
|
}
|
|
12431
|
-
function ownKeys$
|
|
12431
|
+
function ownKeys$x(object, enumerableOnly) {
|
|
12432
12432
|
var keys2 = Object.keys(object);
|
|
12433
12433
|
if (Object.getOwnPropertySymbols) {
|
|
12434
12434
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -12441,12 +12441,12 @@ function ownKeys$w(object, enumerableOnly) {
|
|
|
12441
12441
|
}
|
|
12442
12442
|
return keys2;
|
|
12443
12443
|
}
|
|
12444
|
-
function _object_spread_props$
|
|
12444
|
+
function _object_spread_props$x(target, source) {
|
|
12445
12445
|
source = source != null ? source : {};
|
|
12446
12446
|
if (Object.getOwnPropertyDescriptors) {
|
|
12447
12447
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
12448
12448
|
} else {
|
|
12449
|
-
ownKeys$
|
|
12449
|
+
ownKeys$x(Object(source)).forEach(function(key) {
|
|
12450
12450
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
12451
12451
|
});
|
|
12452
12452
|
}
|
|
@@ -12470,7 +12470,7 @@ function _unsupported_iterable_to_array$j(o, minLen) {
|
|
|
12470
12470
|
}
|
|
12471
12471
|
var Description = function(param) {
|
|
12472
12472
|
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$
|
|
12473
|
+
var classes = useStyles$z({
|
|
12474
12474
|
theme: tweakStyles
|
|
12475
12475
|
});
|
|
12476
12476
|
var isTooShort = text.length < truncateIndex;
|
|
@@ -12479,7 +12479,7 @@ var Description = function(param) {
|
|
|
12479
12479
|
var linkText = link && link[0];
|
|
12480
12480
|
var textWithNoLink = text.replace(LINK_REGEXP, "");
|
|
12481
12481
|
var shortText = text.slice(0, text.slice(0, truncateIndex).lastIndexOf(" "));
|
|
12482
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
12482
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$x(_object_spread$C({
|
|
12483
12483
|
className: classes.root
|
|
12484
12484
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
12485
12485
|
children: [
|
|
@@ -12726,7 +12726,7 @@ function _async_to_generator$3(fn3) {
|
|
|
12726
12726
|
});
|
|
12727
12727
|
};
|
|
12728
12728
|
}
|
|
12729
|
-
function _define_property$
|
|
12729
|
+
function _define_property$C(obj, key, value) {
|
|
12730
12730
|
if (key in obj) {
|
|
12731
12731
|
Object.defineProperty(obj, key, {
|
|
12732
12732
|
value,
|
|
@@ -12770,7 +12770,7 @@ function _iterable_to_array_limit$i(arr, i) {
|
|
|
12770
12770
|
function _non_iterable_rest$i() {
|
|
12771
12771
|
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
12772
|
}
|
|
12773
|
-
function _object_spread$
|
|
12773
|
+
function _object_spread$B(target) {
|
|
12774
12774
|
for (var i = 1; i < arguments.length; i++) {
|
|
12775
12775
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
12776
12776
|
var ownKeys2 = Object.keys(source);
|
|
@@ -12780,15 +12780,15 @@ function _object_spread$A(target) {
|
|
|
12780
12780
|
}));
|
|
12781
12781
|
}
|
|
12782
12782
|
ownKeys2.forEach(function(key) {
|
|
12783
|
-
_define_property$
|
|
12783
|
+
_define_property$C(target, key, source[key]);
|
|
12784
12784
|
});
|
|
12785
12785
|
}
|
|
12786
12786
|
return target;
|
|
12787
12787
|
}
|
|
12788
|
-
function _object_without_properties$
|
|
12788
|
+
function _object_without_properties$8(source, excluded) {
|
|
12789
12789
|
if (source == null)
|
|
12790
12790
|
return {};
|
|
12791
|
-
var target = _object_without_properties_loose$
|
|
12791
|
+
var target = _object_without_properties_loose$8(source, excluded);
|
|
12792
12792
|
var key, i;
|
|
12793
12793
|
if (Object.getOwnPropertySymbols) {
|
|
12794
12794
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -12803,7 +12803,7 @@ function _object_without_properties$7(source, excluded) {
|
|
|
12803
12803
|
}
|
|
12804
12804
|
return target;
|
|
12805
12805
|
}
|
|
12806
|
-
function _object_without_properties_loose$
|
|
12806
|
+
function _object_without_properties_loose$8(source, excluded) {
|
|
12807
12807
|
if (source == null)
|
|
12808
12808
|
return {};
|
|
12809
12809
|
var target = {};
|
|
@@ -12936,7 +12936,7 @@ function _ts_generator$3(thisArg, body) {
|
|
|
12936
12936
|
}
|
|
12937
12937
|
}
|
|
12938
12938
|
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$
|
|
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$8(_param, [
|
|
12940
12940
|
"value",
|
|
12941
12941
|
"canBeFloat",
|
|
12942
12942
|
"canBeNegative",
|
|
@@ -13039,7 +13039,7 @@ var NumberInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
13039
13039
|
}, [
|
|
13040
13040
|
value
|
|
13041
13041
|
]);
|
|
13042
|
-
return /* @__PURE__ */ jsx(Input, _object_spread$
|
|
13042
|
+
return /* @__PURE__ */ jsx(Input, _object_spread$B({
|
|
13043
13043
|
value: showedValue,
|
|
13044
13044
|
onChange: handleChange,
|
|
13045
13045
|
onBlur: handleBlur,
|
|
@@ -13317,7 +13317,7 @@ function cloneDeep(value) {
|
|
|
13317
13317
|
return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
|
|
13318
13318
|
}
|
|
13319
13319
|
var FILTER_HEIGHT = 36;
|
|
13320
|
-
var useStyles$
|
|
13320
|
+
var useStyles$y = createThemedStyles("FiltersPane", {
|
|
13321
13321
|
root: {
|
|
13322
13322
|
display: "flex",
|
|
13323
13323
|
flexWrap: "wrap",
|
|
@@ -13382,7 +13382,7 @@ var innerTextButtonStyles = {
|
|
|
13382
13382
|
}
|
|
13383
13383
|
}
|
|
13384
13384
|
};
|
|
13385
|
-
var useStyles$
|
|
13385
|
+
var useStyles$x = createThemedStyles("FilterInterval", {
|
|
13386
13386
|
root: {
|
|
13387
13387
|
padding: 8,
|
|
13388
13388
|
background: colors.CLASSIC_WHITE
|
|
@@ -13425,7 +13425,7 @@ var inputStyles$3 = {
|
|
|
13425
13425
|
}
|
|
13426
13426
|
};
|
|
13427
13427
|
var clearButtonStyles$3 = cloneDeep(innerTextButtonStyles);
|
|
13428
|
-
function _define_property$
|
|
13428
|
+
function _define_property$B(obj, key, value) {
|
|
13429
13429
|
if (key in obj) {
|
|
13430
13430
|
Object.defineProperty(obj, key, {
|
|
13431
13431
|
value,
|
|
@@ -13438,7 +13438,7 @@ function _define_property$A(obj, key, value) {
|
|
|
13438
13438
|
}
|
|
13439
13439
|
return obj;
|
|
13440
13440
|
}
|
|
13441
|
-
function _object_spread$
|
|
13441
|
+
function _object_spread$A(target) {
|
|
13442
13442
|
for (var i = 1; i < arguments.length; i++) {
|
|
13443
13443
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
13444
13444
|
var ownKeys2 = Object.keys(source);
|
|
@@ -13448,12 +13448,12 @@ function _object_spread$z(target) {
|
|
|
13448
13448
|
}));
|
|
13449
13449
|
}
|
|
13450
13450
|
ownKeys2.forEach(function(key) {
|
|
13451
|
-
_define_property$
|
|
13451
|
+
_define_property$B(target, key, source[key]);
|
|
13452
13452
|
});
|
|
13453
13453
|
}
|
|
13454
13454
|
return target;
|
|
13455
13455
|
}
|
|
13456
|
-
function ownKeys$
|
|
13456
|
+
function ownKeys$w(object, enumerableOnly) {
|
|
13457
13457
|
var keys2 = Object.keys(object);
|
|
13458
13458
|
if (Object.getOwnPropertySymbols) {
|
|
13459
13459
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -13466,12 +13466,12 @@ function ownKeys$v(object, enumerableOnly) {
|
|
|
13466
13466
|
}
|
|
13467
13467
|
return keys2;
|
|
13468
13468
|
}
|
|
13469
|
-
function _object_spread_props$
|
|
13469
|
+
function _object_spread_props$w(target, source) {
|
|
13470
13470
|
source = source != null ? source : {};
|
|
13471
13471
|
if (Object.getOwnPropertyDescriptors) {
|
|
13472
13472
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
13473
13473
|
} else {
|
|
13474
|
-
ownKeys$
|
|
13474
|
+
ownKeys$w(Object(source)).forEach(function(key) {
|
|
13475
13475
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
13476
13476
|
});
|
|
13477
13477
|
}
|
|
@@ -13479,7 +13479,7 @@ function _object_spread_props$v(target, source) {
|
|
|
13479
13479
|
}
|
|
13480
13480
|
var FilterInterval = function(param) {
|
|
13481
13481
|
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$
|
|
13482
|
+
var classes = useStyles$x({
|
|
13483
13483
|
theme: tweakStyles
|
|
13484
13484
|
});
|
|
13485
13485
|
var translates = useMemo(function() {
|
|
@@ -13523,7 +13523,7 @@ var FilterInterval = function(param) {
|
|
|
13523
13523
|
className: "tweakClearButton",
|
|
13524
13524
|
currentComponentName: "FilterInterval"
|
|
13525
13525
|
});
|
|
13526
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
13526
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$w(_object_spread$A({
|
|
13527
13527
|
className: classes.root
|
|
13528
13528
|
}, addDataAttributes(data)), {
|
|
13529
13529
|
children: [
|
|
@@ -13620,7 +13620,7 @@ var getLocale = function() {
|
|
|
13620
13620
|
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
13621
|
return merge$1({}, MultiSelectLocales[key], custom, custom2);
|
|
13622
13622
|
};
|
|
13623
|
-
function _define_property$
|
|
13623
|
+
function _define_property$A(obj, key, value) {
|
|
13624
13624
|
if (key in obj) {
|
|
13625
13625
|
Object.defineProperty(obj, key, {
|
|
13626
13626
|
value,
|
|
@@ -13633,7 +13633,7 @@ function _define_property$z(obj, key, value) {
|
|
|
13633
13633
|
}
|
|
13634
13634
|
return obj;
|
|
13635
13635
|
}
|
|
13636
|
-
function _object_spread$
|
|
13636
|
+
function _object_spread$z(target) {
|
|
13637
13637
|
for (var i = 1; i < arguments.length; i++) {
|
|
13638
13638
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
13639
13639
|
var ownKeys2 = Object.keys(source);
|
|
@@ -13643,19 +13643,19 @@ function _object_spread$y(target) {
|
|
|
13643
13643
|
}));
|
|
13644
13644
|
}
|
|
13645
13645
|
ownKeys2.forEach(function(key) {
|
|
13646
|
-
_define_property$
|
|
13646
|
+
_define_property$A(target, key, source[key]);
|
|
13647
13647
|
});
|
|
13648
13648
|
}
|
|
13649
13649
|
return target;
|
|
13650
13650
|
}
|
|
13651
13651
|
var ITEM_HEIGHT$1 = 40;
|
|
13652
13652
|
var TOP_GAP = 12;
|
|
13653
|
-
var useStyles$
|
|
13653
|
+
var useStyles$w = createThemedStyles("MultiSelectList", {
|
|
13654
13654
|
root: {
|
|
13655
13655
|
width: 220,
|
|
13656
13656
|
background: colors.CLASSIC_WHITE
|
|
13657
13657
|
},
|
|
13658
|
-
list: _object_spread$
|
|
13658
|
+
list: _object_spread$z({
|
|
13659
13659
|
paddingTop: TOP_GAP,
|
|
13660
13660
|
maxHeight: ITEM_HEIGHT$1 * 5 + TOP_GAP,
|
|
13661
13661
|
overscrollBehavior: "contain"
|
|
@@ -13812,7 +13812,7 @@ function _async_to_generator$2(fn3) {
|
|
|
13812
13812
|
});
|
|
13813
13813
|
};
|
|
13814
13814
|
}
|
|
13815
|
-
function _define_property$
|
|
13815
|
+
function _define_property$z(obj, key, value) {
|
|
13816
13816
|
if (key in obj) {
|
|
13817
13817
|
Object.defineProperty(obj, key, {
|
|
13818
13818
|
value,
|
|
@@ -13863,7 +13863,7 @@ function _non_iterable_rest$h() {
|
|
|
13863
13863
|
function _non_iterable_spread$5() {
|
|
13864
13864
|
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
13865
|
}
|
|
13866
|
-
function _object_spread$
|
|
13866
|
+
function _object_spread$y(target) {
|
|
13867
13867
|
for (var i = 1; i < arguments.length; i++) {
|
|
13868
13868
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
13869
13869
|
var ownKeys2 = Object.keys(source);
|
|
@@ -13873,12 +13873,12 @@ function _object_spread$x(target) {
|
|
|
13873
13873
|
}));
|
|
13874
13874
|
}
|
|
13875
13875
|
ownKeys2.forEach(function(key) {
|
|
13876
|
-
_define_property$
|
|
13876
|
+
_define_property$z(target, key, source[key]);
|
|
13877
13877
|
});
|
|
13878
13878
|
}
|
|
13879
13879
|
return target;
|
|
13880
13880
|
}
|
|
13881
|
-
function ownKeys$
|
|
13881
|
+
function ownKeys$v(object, enumerableOnly) {
|
|
13882
13882
|
var keys2 = Object.keys(object);
|
|
13883
13883
|
if (Object.getOwnPropertySymbols) {
|
|
13884
13884
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -13891,12 +13891,12 @@ function ownKeys$u(object, enumerableOnly) {
|
|
|
13891
13891
|
}
|
|
13892
13892
|
return keys2;
|
|
13893
13893
|
}
|
|
13894
|
-
function _object_spread_props$
|
|
13894
|
+
function _object_spread_props$v(target, source) {
|
|
13895
13895
|
source = source != null ? source : {};
|
|
13896
13896
|
if (Object.getOwnPropertyDescriptors) {
|
|
13897
13897
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
13898
13898
|
} else {
|
|
13899
|
-
ownKeys$
|
|
13899
|
+
ownKeys$v(Object(source)).forEach(function(key) {
|
|
13900
13900
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
13901
13901
|
});
|
|
13902
13902
|
}
|
|
@@ -14026,7 +14026,7 @@ function _ts_generator$2(thisArg, body) {
|
|
|
14026
14026
|
function MultiSelectList(param) {
|
|
14027
14027
|
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
14028
|
var isMounted = useIsMounted();
|
|
14029
|
-
var classes = useStyles$
|
|
14029
|
+
var classes = useStyles$w({
|
|
14030
14030
|
theme: tweakStyles
|
|
14031
14031
|
});
|
|
14032
14032
|
var tweakCheckboxStyles = useTweakStyles({
|
|
@@ -14195,13 +14195,13 @@ function MultiSelectList(param) {
|
|
|
14195
14195
|
if (value !== void 0) {
|
|
14196
14196
|
if (keyCursorOn < value.include.length) {
|
|
14197
14197
|
var _value_include_filter;
|
|
14198
|
-
onChange(_object_spread_props$
|
|
14198
|
+
onChange(_object_spread_props$v(_object_spread$y({}, value), {
|
|
14199
14199
|
include: (_value_include_filter = value.include.filter(function(val) {
|
|
14200
14200
|
return getValueId(val) !== getValueId(value.include[keyCursorOn]);
|
|
14201
14201
|
})) !== null && _value_include_filter !== void 0 ? _value_include_filter : []
|
|
14202
14202
|
}));
|
|
14203
14203
|
} else {
|
|
14204
|
-
onChange(_object_spread_props$
|
|
14204
|
+
onChange(_object_spread_props$v(_object_spread$y({}, value), {
|
|
14205
14205
|
include: _to_consumable_array$5(value.include).concat([
|
|
14206
14206
|
unchosenOptions[keyCursorOn - value.include.length]
|
|
14207
14207
|
])
|
|
@@ -14400,7 +14400,7 @@ function MultiSelectList(param) {
|
|
|
14400
14400
|
var shouldShowAllOptionsLabel = isGroupingEnabled && unchosenOptions.length > 0 && chosenValues !== void 0 && chosenValues.length > 0;
|
|
14401
14401
|
var shouldShowPreloader = isLoading || isLoadingOptionsOnScroll;
|
|
14402
14402
|
var shouldShowOptionsList = !isLoading && allOptions.length !== 0;
|
|
14403
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
14403
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$v(_object_spread$y({
|
|
14404
14404
|
className: classes.root
|
|
14405
14405
|
}, addDataAttributes(data)), {
|
|
14406
14406
|
children: [
|
|
@@ -14504,7 +14504,7 @@ function MultiSelectList(param) {
|
|
|
14504
14504
|
]
|
|
14505
14505
|
}));
|
|
14506
14506
|
}
|
|
14507
|
-
function _define_property$
|
|
14507
|
+
function _define_property$y(obj, key, value) {
|
|
14508
14508
|
if (key in obj) {
|
|
14509
14509
|
Object.defineProperty(obj, key, {
|
|
14510
14510
|
value,
|
|
@@ -14517,7 +14517,7 @@ function _define_property$x(obj, key, value) {
|
|
|
14517
14517
|
}
|
|
14518
14518
|
return obj;
|
|
14519
14519
|
}
|
|
14520
|
-
function _object_spread$
|
|
14520
|
+
function _object_spread$x(target) {
|
|
14521
14521
|
for (var i = 1; i < arguments.length; i++) {
|
|
14522
14522
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14523
14523
|
var ownKeys2 = Object.keys(source);
|
|
@@ -14527,15 +14527,15 @@ function _object_spread$w(target) {
|
|
|
14527
14527
|
}));
|
|
14528
14528
|
}
|
|
14529
14529
|
ownKeys2.forEach(function(key) {
|
|
14530
|
-
_define_property$
|
|
14530
|
+
_define_property$y(target, key, source[key]);
|
|
14531
14531
|
});
|
|
14532
14532
|
}
|
|
14533
14533
|
return target;
|
|
14534
14534
|
}
|
|
14535
14535
|
function FilterMultiSelect(props) {
|
|
14536
|
-
return /* @__PURE__ */ jsx(MultiSelectList, _object_spread$
|
|
14536
|
+
return /* @__PURE__ */ jsx(MultiSelectList, _object_spread$x({}, props));
|
|
14537
14537
|
}
|
|
14538
|
-
function _define_property$
|
|
14538
|
+
function _define_property$x(obj, key, value) {
|
|
14539
14539
|
if (key in obj) {
|
|
14540
14540
|
Object.defineProperty(obj, key, {
|
|
14541
14541
|
value,
|
|
@@ -14548,7 +14548,7 @@ function _define_property$w(obj, key, value) {
|
|
|
14548
14548
|
}
|
|
14549
14549
|
return obj;
|
|
14550
14550
|
}
|
|
14551
|
-
function _object_spread$
|
|
14551
|
+
function _object_spread$w(target) {
|
|
14552
14552
|
for (var i = 1; i < arguments.length; i++) {
|
|
14553
14553
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14554
14554
|
var ownKeys2 = Object.keys(source);
|
|
@@ -14558,19 +14558,19 @@ function _object_spread$v(target) {
|
|
|
14558
14558
|
}));
|
|
14559
14559
|
}
|
|
14560
14560
|
ownKeys2.forEach(function(key) {
|
|
14561
|
-
_define_property$
|
|
14561
|
+
_define_property$x(target, key, source[key]);
|
|
14562
14562
|
});
|
|
14563
14563
|
}
|
|
14564
14564
|
return target;
|
|
14565
14565
|
}
|
|
14566
14566
|
var ITEM_HEIGHT = 40;
|
|
14567
14567
|
var LIST_GAP = 12;
|
|
14568
|
-
var useStyles$
|
|
14568
|
+
var useStyles$v = createThemedStyles("FilterSelect", {
|
|
14569
14569
|
root: {
|
|
14570
14570
|
width: 220,
|
|
14571
14571
|
background: colors.CLASSIC_WHITE
|
|
14572
14572
|
},
|
|
14573
|
-
list: _object_spread$
|
|
14573
|
+
list: _object_spread$w({
|
|
14574
14574
|
paddingTop: LIST_GAP,
|
|
14575
14575
|
padding: [
|
|
14576
14576
|
LIST_GAP,
|
|
@@ -14742,7 +14742,7 @@ function _async_to_generator$1(fn3) {
|
|
|
14742
14742
|
});
|
|
14743
14743
|
};
|
|
14744
14744
|
}
|
|
14745
|
-
function _define_property$
|
|
14745
|
+
function _define_property$w(obj, key, value) {
|
|
14746
14746
|
if (key in obj) {
|
|
14747
14747
|
Object.defineProperty(obj, key, {
|
|
14748
14748
|
value,
|
|
@@ -14793,7 +14793,7 @@ function _non_iterable_rest$g() {
|
|
|
14793
14793
|
function _non_iterable_spread$4() {
|
|
14794
14794
|
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
14795
|
}
|
|
14796
|
-
function _object_spread$
|
|
14796
|
+
function _object_spread$v(target) {
|
|
14797
14797
|
for (var i = 1; i < arguments.length; i++) {
|
|
14798
14798
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14799
14799
|
var ownKeys2 = Object.keys(source);
|
|
@@ -14803,12 +14803,12 @@ function _object_spread$u(target) {
|
|
|
14803
14803
|
}));
|
|
14804
14804
|
}
|
|
14805
14805
|
ownKeys2.forEach(function(key) {
|
|
14806
|
-
_define_property$
|
|
14806
|
+
_define_property$w(target, key, source[key]);
|
|
14807
14807
|
});
|
|
14808
14808
|
}
|
|
14809
14809
|
return target;
|
|
14810
14810
|
}
|
|
14811
|
-
function ownKeys$
|
|
14811
|
+
function ownKeys$u(object, enumerableOnly) {
|
|
14812
14812
|
var keys2 = Object.keys(object);
|
|
14813
14813
|
if (Object.getOwnPropertySymbols) {
|
|
14814
14814
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -14821,12 +14821,12 @@ function ownKeys$t(object, enumerableOnly) {
|
|
|
14821
14821
|
}
|
|
14822
14822
|
return keys2;
|
|
14823
14823
|
}
|
|
14824
|
-
function _object_spread_props$
|
|
14824
|
+
function _object_spread_props$u(target, source) {
|
|
14825
14825
|
source = source != null ? source : {};
|
|
14826
14826
|
if (Object.getOwnPropertyDescriptors) {
|
|
14827
14827
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
14828
14828
|
} else {
|
|
14829
|
-
ownKeys$
|
|
14829
|
+
ownKeys$u(Object(source)).forEach(function(key) {
|
|
14830
14830
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
14831
14831
|
});
|
|
14832
14832
|
}
|
|
@@ -14955,7 +14955,7 @@ function _ts_generator$1(thisArg, body) {
|
|
|
14955
14955
|
}
|
|
14956
14956
|
function FilterSelect(param) {
|
|
14957
14957
|
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$
|
|
14958
|
+
var classes = useStyles$v({
|
|
14959
14959
|
theme: tweakStyles
|
|
14960
14960
|
});
|
|
14961
14961
|
var tweakSearchInputStyles = useTweakStyles({
|
|
@@ -15226,7 +15226,7 @@ function FilterSelect(param) {
|
|
|
15226
15226
|
}();
|
|
15227
15227
|
doFetchOptions();
|
|
15228
15228
|
}, []);
|
|
15229
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
15229
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$u(_object_spread$v({
|
|
15230
15230
|
className: classes.root
|
|
15231
15231
|
}, addDataAttributes(data)), {
|
|
15232
15232
|
children: [
|
|
@@ -15326,7 +15326,7 @@ function FilterSelect(param) {
|
|
|
15326
15326
|
children: translates.nothingFound
|
|
15327
15327
|
}),
|
|
15328
15328
|
(hasClearButton || hasFooter) && /* @__PURE__ */ jsxs("div", {
|
|
15329
|
-
className: clsx(classes.panel, _define_property$
|
|
15329
|
+
className: clsx(classes.panel, _define_property$w({}, classes.panelWithFooter, hasFooter)),
|
|
15330
15330
|
children: [
|
|
15331
15331
|
hasFooter && /* @__PURE__ */ jsx("div", {
|
|
15332
15332
|
className: classes.footer,
|
|
@@ -16439,7 +16439,7 @@ var locale = {
|
|
|
16439
16439
|
}
|
|
16440
16440
|
};
|
|
16441
16441
|
const ru = locale;
|
|
16442
|
-
var useStyles$
|
|
16442
|
+
var useStyles$u = createThemedStyles("FilterWithDates", {
|
|
16443
16443
|
root: {
|
|
16444
16444
|
background: colors.CLASSIC_WHITE,
|
|
16445
16445
|
position: "relative",
|
|
@@ -16506,7 +16506,7 @@ function _array_with_holes$f(arr) {
|
|
|
16506
16506
|
if (Array.isArray(arr))
|
|
16507
16507
|
return arr;
|
|
16508
16508
|
}
|
|
16509
|
-
function _define_property$
|
|
16509
|
+
function _define_property$v(obj, key, value) {
|
|
16510
16510
|
if (key in obj) {
|
|
16511
16511
|
Object.defineProperty(obj, key, {
|
|
16512
16512
|
value,
|
|
@@ -16550,7 +16550,7 @@ function _iterable_to_array_limit$f(arr, i) {
|
|
|
16550
16550
|
function _non_iterable_rest$f() {
|
|
16551
16551
|
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
16552
|
}
|
|
16553
|
-
function _object_spread$
|
|
16553
|
+
function _object_spread$u(target) {
|
|
16554
16554
|
for (var i = 1; i < arguments.length; i++) {
|
|
16555
16555
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
16556
16556
|
var ownKeys2 = Object.keys(source);
|
|
@@ -16560,12 +16560,12 @@ function _object_spread$t(target) {
|
|
|
16560
16560
|
}));
|
|
16561
16561
|
}
|
|
16562
16562
|
ownKeys2.forEach(function(key) {
|
|
16563
|
-
_define_property$
|
|
16563
|
+
_define_property$v(target, key, source[key]);
|
|
16564
16564
|
});
|
|
16565
16565
|
}
|
|
16566
16566
|
return target;
|
|
16567
16567
|
}
|
|
16568
|
-
function ownKeys$
|
|
16568
|
+
function ownKeys$t(object, enumerableOnly) {
|
|
16569
16569
|
var keys2 = Object.keys(object);
|
|
16570
16570
|
if (Object.getOwnPropertySymbols) {
|
|
16571
16571
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -16578,12 +16578,12 @@ function ownKeys$s(object, enumerableOnly) {
|
|
|
16578
16578
|
}
|
|
16579
16579
|
return keys2;
|
|
16580
16580
|
}
|
|
16581
|
-
function _object_spread_props$
|
|
16581
|
+
function _object_spread_props$t(target, source) {
|
|
16582
16582
|
source = source != null ? source : {};
|
|
16583
16583
|
if (Object.getOwnPropertyDescriptors) {
|
|
16584
16584
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
16585
16585
|
} else {
|
|
16586
|
-
ownKeys$
|
|
16586
|
+
ownKeys$t(Object(source)).forEach(function(key) {
|
|
16587
16587
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
16588
16588
|
});
|
|
16589
16589
|
}
|
|
@@ -16607,7 +16607,7 @@ function _unsupported_iterable_to_array$f(o, minLen) {
|
|
|
16607
16607
|
}
|
|
16608
16608
|
var FilterWithDates = function(param) {
|
|
16609
16609
|
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$
|
|
16610
|
+
var classes = useStyles$u({
|
|
16611
16611
|
theme: tweakStyles
|
|
16612
16612
|
});
|
|
16613
16613
|
var tweakClearButtonStyles = useTweakStyles({
|
|
@@ -16694,7 +16694,7 @@ var FilterWithDates = function(param) {
|
|
|
16694
16694
|
}
|
|
16695
16695
|
};
|
|
16696
16696
|
var _ref;
|
|
16697
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
16697
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$t(_object_spread$u({
|
|
16698
16698
|
className: classes.root
|
|
16699
16699
|
}, addDataAttributes(data)), {
|
|
16700
16700
|
children: [
|
|
@@ -16703,7 +16703,7 @@ var FilterWithDates = function(param) {
|
|
|
16703
16703
|
children: [
|
|
16704
16704
|
/* @__PURE__ */ jsx("div", {
|
|
16705
16705
|
className: classes.containerItem,
|
|
16706
|
-
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$
|
|
16706
|
+
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$u({
|
|
16707
16707
|
selectedDate: value === null || value === void 0 ? void 0 : value.from,
|
|
16708
16708
|
maxDate: value === null || value === void 0 ? void 0 : value.to,
|
|
16709
16709
|
label: translates.from,
|
|
@@ -16718,7 +16718,7 @@ var FilterWithDates = function(param) {
|
|
|
16718
16718
|
}),
|
|
16719
16719
|
/* @__PURE__ */ jsx("div", {
|
|
16720
16720
|
className: classes.containerItem,
|
|
16721
|
-
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$
|
|
16721
|
+
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$u({
|
|
16722
16722
|
selectedDate: value === null || value === void 0 ? void 0 : value.to,
|
|
16723
16723
|
label: translates.to,
|
|
16724
16724
|
months: translates.months,
|
|
@@ -16774,7 +16774,7 @@ var FilterWithDates = function(param) {
|
|
|
16774
16774
|
]
|
|
16775
16775
|
}));
|
|
16776
16776
|
};
|
|
16777
|
-
var useStyles$
|
|
16777
|
+
var useStyles$t = createThemedStyles("FilterWithPeriod", {
|
|
16778
16778
|
root: {},
|
|
16779
16779
|
main: {},
|
|
16780
16780
|
picker: {}
|
|
@@ -16799,7 +16799,7 @@ function _array_without_holes$3(arr) {
|
|
|
16799
16799
|
if (Array.isArray(arr))
|
|
16800
16800
|
return _array_like_to_array$e(arr);
|
|
16801
16801
|
}
|
|
16802
|
-
function _define_property$
|
|
16802
|
+
function _define_property$u(obj, key, value) {
|
|
16803
16803
|
if (key in obj) {
|
|
16804
16804
|
Object.defineProperty(obj, key, {
|
|
16805
16805
|
value,
|
|
@@ -16850,7 +16850,7 @@ function _non_iterable_rest$e() {
|
|
|
16850
16850
|
function _non_iterable_spread$3() {
|
|
16851
16851
|
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
16852
|
}
|
|
16853
|
-
function _object_spread$
|
|
16853
|
+
function _object_spread$t(target) {
|
|
16854
16854
|
for (var i = 1; i < arguments.length; i++) {
|
|
16855
16855
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
16856
16856
|
var ownKeys2 = Object.keys(source);
|
|
@@ -16860,12 +16860,12 @@ function _object_spread$s(target) {
|
|
|
16860
16860
|
}));
|
|
16861
16861
|
}
|
|
16862
16862
|
ownKeys2.forEach(function(key) {
|
|
16863
|
-
_define_property$
|
|
16863
|
+
_define_property$u(target, key, source[key]);
|
|
16864
16864
|
});
|
|
16865
16865
|
}
|
|
16866
16866
|
return target;
|
|
16867
16867
|
}
|
|
16868
|
-
function ownKeys$
|
|
16868
|
+
function ownKeys$s(object, enumerableOnly) {
|
|
16869
16869
|
var keys2 = Object.keys(object);
|
|
16870
16870
|
if (Object.getOwnPropertySymbols) {
|
|
16871
16871
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -16878,12 +16878,12 @@ function ownKeys$r(object, enumerableOnly) {
|
|
|
16878
16878
|
}
|
|
16879
16879
|
return keys2;
|
|
16880
16880
|
}
|
|
16881
|
-
function _object_spread_props$
|
|
16881
|
+
function _object_spread_props$s(target, source) {
|
|
16882
16882
|
source = source != null ? source : {};
|
|
16883
16883
|
if (Object.getOwnPropertyDescriptors) {
|
|
16884
16884
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
16885
16885
|
} else {
|
|
16886
|
-
ownKeys$
|
|
16886
|
+
ownKeys$s(Object(source)).forEach(function(key) {
|
|
16887
16887
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
16888
16888
|
});
|
|
16889
16889
|
}
|
|
@@ -16910,7 +16910,7 @@ function _unsupported_iterable_to_array$e(o, minLen) {
|
|
|
16910
16910
|
}
|
|
16911
16911
|
var FilterWithPeriod = function(param) {
|
|
16912
16912
|
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$
|
|
16913
|
+
var classes = useStyles$t({
|
|
16914
16914
|
theme: tweakStyles
|
|
16915
16915
|
});
|
|
16916
16916
|
var translates = useMemo(function() {
|
|
@@ -16923,7 +16923,7 @@ var FilterWithPeriod = function(param) {
|
|
|
16923
16923
|
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
16924
|
var _useState2 = _sliced_to_array$e(useState(value), 2), period = _useState2[0], setPeriod = _useState2[1];
|
|
16925
16925
|
var periodGetters = useMemo(function() {
|
|
16926
|
-
var result = _object_spread$
|
|
16926
|
+
var result = _object_spread$t({}, PERIODS_GETTERS);
|
|
16927
16927
|
periods === null || periods === void 0 ? void 0 : periods.forEach(function(p) {
|
|
16928
16928
|
if (Array.isArray(p)) {
|
|
16929
16929
|
result[p[0]] = p[1];
|
|
@@ -16969,7 +16969,7 @@ var FilterWithPeriod = function(param) {
|
|
|
16969
16969
|
if (onClose !== void 0) {
|
|
16970
16970
|
onClose();
|
|
16971
16971
|
}
|
|
16972
|
-
onChange(_object_spread_props$
|
|
16972
|
+
onChange(_object_spread_props$s(_object_spread$t({}, p), {
|
|
16973
16973
|
label: getPeriodTranslate(periodType)
|
|
16974
16974
|
}));
|
|
16975
16975
|
}
|
|
@@ -16989,7 +16989,7 @@ var FilterWithPeriod = function(param) {
|
|
|
16989
16989
|
};
|
|
16990
16990
|
var handleCustomDateChange = function(val) {
|
|
16991
16991
|
if (val.from || val.to) {
|
|
16992
|
-
onChange(_object_spread_props$
|
|
16992
|
+
onChange(_object_spread_props$s(_object_spread$t({}, val), {
|
|
16993
16993
|
periodType: "CUSTOM"
|
|
16994
16994
|
}));
|
|
16995
16995
|
} else {
|
|
@@ -17072,7 +17072,7 @@ function _array_with_holes$d(arr) {
|
|
|
17072
17072
|
if (Array.isArray(arr))
|
|
17073
17073
|
return arr;
|
|
17074
17074
|
}
|
|
17075
|
-
function _define_property$
|
|
17075
|
+
function _define_property$t(obj, key, value) {
|
|
17076
17076
|
if (key in obj) {
|
|
17077
17077
|
Object.defineProperty(obj, key, {
|
|
17078
17078
|
value,
|
|
@@ -17116,7 +17116,7 @@ function _iterable_to_array_limit$d(arr, i) {
|
|
|
17116
17116
|
function _non_iterable_rest$d() {
|
|
17117
17117
|
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
17118
|
}
|
|
17119
|
-
function _object_spread$
|
|
17119
|
+
function _object_spread$s(target) {
|
|
17120
17120
|
for (var i = 1; i < arguments.length; i++) {
|
|
17121
17121
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
17122
17122
|
var ownKeys2 = Object.keys(source);
|
|
@@ -17126,12 +17126,12 @@ function _object_spread$r(target) {
|
|
|
17126
17126
|
}));
|
|
17127
17127
|
}
|
|
17128
17128
|
ownKeys2.forEach(function(key) {
|
|
17129
|
-
_define_property$
|
|
17129
|
+
_define_property$t(target, key, source[key]);
|
|
17130
17130
|
});
|
|
17131
17131
|
}
|
|
17132
17132
|
return target;
|
|
17133
17133
|
}
|
|
17134
|
-
function ownKeys$
|
|
17134
|
+
function ownKeys$r(object, enumerableOnly) {
|
|
17135
17135
|
var keys2 = Object.keys(object);
|
|
17136
17136
|
if (Object.getOwnPropertySymbols) {
|
|
17137
17137
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -17144,12 +17144,12 @@ function ownKeys$q(object, enumerableOnly) {
|
|
|
17144
17144
|
}
|
|
17145
17145
|
return keys2;
|
|
17146
17146
|
}
|
|
17147
|
-
function _object_spread_props$
|
|
17147
|
+
function _object_spread_props$r(target, source) {
|
|
17148
17148
|
source = source != null ? source : {};
|
|
17149
17149
|
if (Object.getOwnPropertyDescriptors) {
|
|
17150
17150
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
17151
17151
|
} else {
|
|
17152
|
-
ownKeys$
|
|
17152
|
+
ownKeys$r(Object(source)).forEach(function(key) {
|
|
17153
17153
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
17154
17154
|
});
|
|
17155
17155
|
}
|
|
@@ -17207,7 +17207,7 @@ function Filter(param) {
|
|
|
17207
17207
|
]);
|
|
17208
17208
|
var props = {
|
|
17209
17209
|
ref,
|
|
17210
|
-
className: clsx(classes[dropdownPosition], _define_property$
|
|
17210
|
+
className: clsx(classes[dropdownPosition], _define_property$t({}, classes.dropdown, !isInline))
|
|
17211
17211
|
};
|
|
17212
17212
|
var handleOnClose = function() {
|
|
17213
17213
|
if (onClose !== void 0) {
|
|
@@ -17216,8 +17216,8 @@ function Filter(param) {
|
|
|
17216
17216
|
};
|
|
17217
17217
|
if (filter.type === "custom" && filter.component) {
|
|
17218
17218
|
var Component = filter.component;
|
|
17219
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
17220
|
-
children: /* @__PURE__ */ jsx(Component, _object_spread$
|
|
17219
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$r(_object_spread$s({}, props), {
|
|
17220
|
+
children: /* @__PURE__ */ jsx(Component, _object_spread$s({}, {
|
|
17221
17221
|
value,
|
|
17222
17222
|
onChange,
|
|
17223
17223
|
onClose,
|
|
@@ -17231,8 +17231,8 @@ function Filter(param) {
|
|
|
17231
17231
|
console.warn("%cДля фильтра типа custom (".concat(filter.name, ") в конфиге обязательно нужно задать component"), "background: red; color: black");
|
|
17232
17232
|
}
|
|
17233
17233
|
if (filter.type === "select") {
|
|
17234
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
17235
|
-
children: /* @__PURE__ */ jsx(FilterSelect, _object_spread$
|
|
17234
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$r(_object_spread$s({}, props), {
|
|
17235
|
+
children: /* @__PURE__ */ jsx(FilterSelect, _object_spread$s({
|
|
17236
17236
|
onChange,
|
|
17237
17237
|
value,
|
|
17238
17238
|
localeKey: translatesLocaleKey,
|
|
@@ -17242,12 +17242,12 @@ function Filter(param) {
|
|
|
17242
17242
|
}));
|
|
17243
17243
|
}
|
|
17244
17244
|
if (filter.type === "dateRange") {
|
|
17245
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
17246
|
-
children: /* @__PURE__ */ jsx(FilterWithPeriod, _object_spread$
|
|
17245
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$r(_object_spread$s({}, props), {
|
|
17246
|
+
children: /* @__PURE__ */ jsx(FilterWithPeriod, _object_spread$s({
|
|
17247
17247
|
localeKey: translatesLocaleKey,
|
|
17248
17248
|
locale: translates,
|
|
17249
17249
|
onChange,
|
|
17250
|
-
value: _object_spread$
|
|
17250
|
+
value: _object_spread$s({}, value),
|
|
17251
17251
|
onClose: handleOnClose,
|
|
17252
17252
|
testId: testId !== void 0 ? "".concat(testId, "-period") : void 0
|
|
17253
17253
|
}, filter))
|
|
@@ -17255,17 +17255,17 @@ function Filter(param) {
|
|
|
17255
17255
|
}
|
|
17256
17256
|
if (filter.type === "dateRangeWithoutPeriod") {
|
|
17257
17257
|
var dateRangeValue = value;
|
|
17258
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
17258
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$r(_object_spread$s({}, props), {
|
|
17259
17259
|
style: {
|
|
17260
17260
|
width: 320
|
|
17261
17261
|
},
|
|
17262
|
-
children: /* @__PURE__ */ jsx(FilterWithDates, _object_spread$
|
|
17262
|
+
children: /* @__PURE__ */ jsx(FilterWithDates, _object_spread$s({
|
|
17263
17263
|
value: dateRangeValue,
|
|
17264
17264
|
onEndBtnSubmit: function() {
|
|
17265
17265
|
return onChange(void 0);
|
|
17266
17266
|
},
|
|
17267
17267
|
onChange: function(v) {
|
|
17268
|
-
return onChange(_object_spread_props$
|
|
17268
|
+
return onChange(_object_spread_props$r(_object_spread$s({}, v), {
|
|
17269
17269
|
periodType: "CUSTOM"
|
|
17270
17270
|
}));
|
|
17271
17271
|
},
|
|
@@ -17276,8 +17276,8 @@ function Filter(param) {
|
|
|
17276
17276
|
}));
|
|
17277
17277
|
}
|
|
17278
17278
|
if (filter.type === "multiSelect") {
|
|
17279
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
17280
|
-
children: /* @__PURE__ */ jsx(FilterMultiSelect, _object_spread$
|
|
17279
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$r(_object_spread$s({}, props), {
|
|
17280
|
+
children: /* @__PURE__ */ jsx(FilterMultiSelect, _object_spread$s({
|
|
17281
17281
|
onChange,
|
|
17282
17282
|
onClose: handleOnClose,
|
|
17283
17283
|
value,
|
|
@@ -17288,8 +17288,8 @@ function Filter(param) {
|
|
|
17288
17288
|
}));
|
|
17289
17289
|
}
|
|
17290
17290
|
if (filter.type === "interval") {
|
|
17291
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
17292
|
-
children: /* @__PURE__ */ jsx(FilterInterval, _object_spread$
|
|
17291
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$r(_object_spread$s({}, props), {
|
|
17292
|
+
children: /* @__PURE__ */ jsx(FilterInterval, _object_spread$s({
|
|
17293
17293
|
value,
|
|
17294
17294
|
labelName: filter.name,
|
|
17295
17295
|
localeKey: translatesLocaleKey,
|
|
@@ -17302,7 +17302,7 @@ function Filter(param) {
|
|
|
17302
17302
|
console.warn("%cДля фильтра ".concat(filter.name, " не задан тип или component"), "background: red; color: black");
|
|
17303
17303
|
return null;
|
|
17304
17304
|
}
|
|
17305
|
-
var useStyles$
|
|
17305
|
+
var useStyles$s = createThemedStyles("FiltersPaneSearch", {
|
|
17306
17306
|
root: {
|
|
17307
17307
|
display: "flex",
|
|
17308
17308
|
position: "relative",
|
|
@@ -17411,7 +17411,7 @@ function _array_with_holes$c(arr) {
|
|
|
17411
17411
|
if (Array.isArray(arr))
|
|
17412
17412
|
return arr;
|
|
17413
17413
|
}
|
|
17414
|
-
function _define_property$
|
|
17414
|
+
function _define_property$s(obj, key, value) {
|
|
17415
17415
|
if (key in obj) {
|
|
17416
17416
|
Object.defineProperty(obj, key, {
|
|
17417
17417
|
value,
|
|
@@ -17455,7 +17455,7 @@ function _iterable_to_array_limit$c(arr, i) {
|
|
|
17455
17455
|
function _non_iterable_rest$c() {
|
|
17456
17456
|
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
17457
|
}
|
|
17458
|
-
function _object_spread$
|
|
17458
|
+
function _object_spread$r(target) {
|
|
17459
17459
|
for (var i = 1; i < arguments.length; i++) {
|
|
17460
17460
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
17461
17461
|
var ownKeys2 = Object.keys(source);
|
|
@@ -17465,12 +17465,12 @@ function _object_spread$q(target) {
|
|
|
17465
17465
|
}));
|
|
17466
17466
|
}
|
|
17467
17467
|
ownKeys2.forEach(function(key) {
|
|
17468
|
-
_define_property$
|
|
17468
|
+
_define_property$s(target, key, source[key]);
|
|
17469
17469
|
});
|
|
17470
17470
|
}
|
|
17471
17471
|
return target;
|
|
17472
17472
|
}
|
|
17473
|
-
function ownKeys$
|
|
17473
|
+
function ownKeys$q(object, enumerableOnly) {
|
|
17474
17474
|
var keys2 = Object.keys(object);
|
|
17475
17475
|
if (Object.getOwnPropertySymbols) {
|
|
17476
17476
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -17483,12 +17483,12 @@ function ownKeys$p(object, enumerableOnly) {
|
|
|
17483
17483
|
}
|
|
17484
17484
|
return keys2;
|
|
17485
17485
|
}
|
|
17486
|
-
function _object_spread_props$
|
|
17486
|
+
function _object_spread_props$q(target, source) {
|
|
17487
17487
|
source = source != null ? source : {};
|
|
17488
17488
|
if (Object.getOwnPropertyDescriptors) {
|
|
17489
17489
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
17490
17490
|
} else {
|
|
17491
|
-
ownKeys$
|
|
17491
|
+
ownKeys$q(Object(source)).forEach(function(key) {
|
|
17492
17492
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
17493
17493
|
});
|
|
17494
17494
|
}
|
|
@@ -17512,7 +17512,7 @@ function _unsupported_iterable_to_array$c(o, minLen) {
|
|
|
17512
17512
|
}
|
|
17513
17513
|
function FiltersPaneSearch(param) {
|
|
17514
17514
|
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$
|
|
17515
|
+
var classes = useStyles$s({
|
|
17516
17516
|
theme: tweakStyles
|
|
17517
17517
|
});
|
|
17518
17518
|
var tweakSearchInputStyles = useTweakStyles({
|
|
@@ -17558,8 +17558,8 @@ function FiltersPaneSearch(param) {
|
|
|
17558
17558
|
field
|
|
17559
17559
|
]);
|
|
17560
17560
|
var _obj;
|
|
17561
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
17562
|
-
className: clsx(classes.root, (_obj = {}, _define_property$
|
|
17561
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$q(_object_spread$r({
|
|
17562
|
+
className: clsx(classes.root, (_obj = {}, _define_property$s(_obj, classes.focused, isInputFocused), _define_property$s(_obj, classes.disabled, isDisabled), _obj)),
|
|
17563
17563
|
ref: refRoot,
|
|
17564
17564
|
"data-testid": testId
|
|
17565
17565
|
}, addDataAttributes(data)), {
|
|
@@ -17624,7 +17624,7 @@ function FiltersPaneSearch(param) {
|
|
|
17624
17624
|
]
|
|
17625
17625
|
}));
|
|
17626
17626
|
}
|
|
17627
|
-
var useStyles$
|
|
17627
|
+
var useStyles$r = createThemedStyles("FilterValueView", {
|
|
17628
17628
|
text: {
|
|
17629
17629
|
overflow: "hidden",
|
|
17630
17630
|
textOverflow: "ellipsis",
|
|
@@ -17643,7 +17643,7 @@ function _instanceof$1(left2, right2) {
|
|
|
17643
17643
|
}
|
|
17644
17644
|
function FilterValueView(param) {
|
|
17645
17645
|
var locale2 = param.locale, localeKey = param.localeKey, filter = param.filter, value = param.value, tweakStyles = param.tweakStyles;
|
|
17646
|
-
var classes = useStyles$
|
|
17646
|
+
var classes = useStyles$r({
|
|
17647
17647
|
theme: tweakStyles
|
|
17648
17648
|
});
|
|
17649
17649
|
var _filter_localeKey;
|
|
@@ -17794,7 +17794,7 @@ function FilterValueView(param) {
|
|
|
17794
17794
|
children: displayValue(value)
|
|
17795
17795
|
});
|
|
17796
17796
|
}
|
|
17797
|
-
var useStyles$
|
|
17797
|
+
var useStyles$q = createThemedStyles("FilterWrapper", {
|
|
17798
17798
|
root: {
|
|
17799
17799
|
position: "relative",
|
|
17800
17800
|
transition: "0.25s ease-in-out",
|
|
@@ -17920,7 +17920,7 @@ function _array_with_holes$b(arr) {
|
|
|
17920
17920
|
if (Array.isArray(arr))
|
|
17921
17921
|
return arr;
|
|
17922
17922
|
}
|
|
17923
|
-
function _define_property$
|
|
17923
|
+
function _define_property$r(obj, key, value) {
|
|
17924
17924
|
if (key in obj) {
|
|
17925
17925
|
Object.defineProperty(obj, key, {
|
|
17926
17926
|
value,
|
|
@@ -17964,7 +17964,7 @@ function _iterable_to_array_limit$b(arr, i) {
|
|
|
17964
17964
|
function _non_iterable_rest$b() {
|
|
17965
17965
|
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
17966
|
}
|
|
17967
|
-
function _object_spread$
|
|
17967
|
+
function _object_spread$q(target) {
|
|
17968
17968
|
for (var i = 1; i < arguments.length; i++) {
|
|
17969
17969
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
17970
17970
|
var ownKeys2 = Object.keys(source);
|
|
@@ -17974,12 +17974,12 @@ function _object_spread$p(target) {
|
|
|
17974
17974
|
}));
|
|
17975
17975
|
}
|
|
17976
17976
|
ownKeys2.forEach(function(key) {
|
|
17977
|
-
_define_property$
|
|
17977
|
+
_define_property$r(target, key, source[key]);
|
|
17978
17978
|
});
|
|
17979
17979
|
}
|
|
17980
17980
|
return target;
|
|
17981
17981
|
}
|
|
17982
|
-
function ownKeys$
|
|
17982
|
+
function ownKeys$p(object, enumerableOnly) {
|
|
17983
17983
|
var keys2 = Object.keys(object);
|
|
17984
17984
|
if (Object.getOwnPropertySymbols) {
|
|
17985
17985
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -17992,12 +17992,12 @@ function ownKeys$o(object, enumerableOnly) {
|
|
|
17992
17992
|
}
|
|
17993
17993
|
return keys2;
|
|
17994
17994
|
}
|
|
17995
|
-
function _object_spread_props$
|
|
17995
|
+
function _object_spread_props$p(target, source) {
|
|
17996
17996
|
source = source != null ? source : {};
|
|
17997
17997
|
if (Object.getOwnPropertyDescriptors) {
|
|
17998
17998
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
17999
17999
|
} else {
|
|
18000
|
-
ownKeys$
|
|
18000
|
+
ownKeys$p(Object(source)).forEach(function(key) {
|
|
18001
18001
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
18002
18002
|
});
|
|
18003
18003
|
}
|
|
@@ -18021,7 +18021,7 @@ function _unsupported_iterable_to_array$b(o, minLen) {
|
|
|
18021
18021
|
}
|
|
18022
18022
|
function FilterWrapper(param) {
|
|
18023
18023
|
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$
|
|
18024
|
+
var classes = useStyles$q({
|
|
18025
18025
|
theme: tweakStyles
|
|
18026
18026
|
});
|
|
18027
18027
|
var tweakFilterValueViewStyles = useTweakStyles({
|
|
@@ -18061,14 +18061,14 @@ function FilterWrapper(param) {
|
|
|
18061
18061
|
};
|
|
18062
18062
|
var isBoolean = filter.type === "boolean";
|
|
18063
18063
|
var _obj;
|
|
18064
|
-
return !filter.isInline ? /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
18065
|
-
className: clsx(classes.root, (_obj = {}, _define_property$
|
|
18064
|
+
return !filter.isInline ? /* @__PURE__ */ jsxs("div", _object_spread_props$p(_object_spread$q({
|
|
18065
|
+
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
18066
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
18067
18067
|
children: [
|
|
18068
18068
|
/* @__PURE__ */ jsxs("div", {
|
|
18069
18069
|
ref: refItem,
|
|
18070
18070
|
onClick: handleLabelClick,
|
|
18071
|
-
className: clsx(classes.item, _define_property$
|
|
18071
|
+
className: clsx(classes.item, _define_property$r({}, classes.booleanItem, isBoolean)),
|
|
18072
18072
|
children: [
|
|
18073
18073
|
/* @__PURE__ */ jsx("div", {
|
|
18074
18074
|
className: classes.name,
|
|
@@ -18130,7 +18130,7 @@ function FilterWrapper(param) {
|
|
|
18130
18130
|
classes
|
|
18131
18131
|
});
|
|
18132
18132
|
}
|
|
18133
|
-
function _define_property$
|
|
18133
|
+
function _define_property$q(obj, key, value) {
|
|
18134
18134
|
if (key in obj) {
|
|
18135
18135
|
Object.defineProperty(obj, key, {
|
|
18136
18136
|
value,
|
|
@@ -18143,7 +18143,7 @@ function _define_property$p(obj, key, value) {
|
|
|
18143
18143
|
}
|
|
18144
18144
|
return obj;
|
|
18145
18145
|
}
|
|
18146
|
-
function _object_spread$
|
|
18146
|
+
function _object_spread$p(target) {
|
|
18147
18147
|
for (var i = 1; i < arguments.length; i++) {
|
|
18148
18148
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
18149
18149
|
var ownKeys2 = Object.keys(source);
|
|
@@ -18153,12 +18153,12 @@ function _object_spread$o(target) {
|
|
|
18153
18153
|
}));
|
|
18154
18154
|
}
|
|
18155
18155
|
ownKeys2.forEach(function(key) {
|
|
18156
|
-
_define_property$
|
|
18156
|
+
_define_property$q(target, key, source[key]);
|
|
18157
18157
|
});
|
|
18158
18158
|
}
|
|
18159
18159
|
return target;
|
|
18160
18160
|
}
|
|
18161
|
-
function ownKeys$
|
|
18161
|
+
function ownKeys$o(object, enumerableOnly) {
|
|
18162
18162
|
var keys2 = Object.keys(object);
|
|
18163
18163
|
if (Object.getOwnPropertySymbols) {
|
|
18164
18164
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -18171,12 +18171,12 @@ function ownKeys$n(object, enumerableOnly) {
|
|
|
18171
18171
|
}
|
|
18172
18172
|
return keys2;
|
|
18173
18173
|
}
|
|
18174
|
-
function _object_spread_props$
|
|
18174
|
+
function _object_spread_props$o(target, source) {
|
|
18175
18175
|
source = source != null ? source : {};
|
|
18176
18176
|
if (Object.getOwnPropertyDescriptors) {
|
|
18177
18177
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
18178
18178
|
} else {
|
|
18179
|
-
ownKeys$
|
|
18179
|
+
ownKeys$o(Object(source)).forEach(function(key) {
|
|
18180
18180
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
18181
18181
|
});
|
|
18182
18182
|
}
|
|
@@ -18184,7 +18184,7 @@ function _object_spread_props$n(target, source) {
|
|
|
18184
18184
|
}
|
|
18185
18185
|
function FiltersPane(param) {
|
|
18186
18186
|
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$
|
|
18187
|
+
var classes = useStyles$y({
|
|
18188
18188
|
theme: tweakStyles
|
|
18189
18189
|
});
|
|
18190
18190
|
var tweakClearButtonStyles = useTweakStyles({
|
|
@@ -18227,12 +18227,12 @@ function FiltersPane(param) {
|
|
|
18227
18227
|
})
|
|
18228
18228
|
});
|
|
18229
18229
|
var _search_localeKey, _search_localeKey1, _search_isDisabled;
|
|
18230
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
18230
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$o(_object_spread$p({
|
|
18231
18231
|
className: classes.root,
|
|
18232
18232
|
ref
|
|
18233
18233
|
}, addDataTestId(testId), addDataAttributes(data)), {
|
|
18234
18234
|
children: [
|
|
18235
|
-
onSettingsButtonClick !== void 0 && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
18235
|
+
onSettingsButtonClick !== void 0 && /* @__PURE__ */ jsx("div", _object_spread_props$o(_object_spread$p({
|
|
18236
18236
|
className: classes.settings,
|
|
18237
18237
|
tabIndex: 0
|
|
18238
18238
|
}, addDataTestId(testId, "settings-button")), {
|
|
@@ -18244,7 +18244,7 @@ function FiltersPane(param) {
|
|
|
18244
18244
|
})
|
|
18245
18245
|
})
|
|
18246
18246
|
})),
|
|
18247
|
-
search !== void 0 && /* @__PURE__ */ jsx(FiltersPaneSearch, _object_spread_props$
|
|
18247
|
+
search !== void 0 && /* @__PURE__ */ jsx(FiltersPaneSearch, _object_spread_props$o(_object_spread$p({}, search), {
|
|
18248
18248
|
locale: getLocale$1((_search_localeKey = search.localeKey) !== null && _search_localeKey !== void 0 ? _search_localeKey : localeKey, search.locale, locale2),
|
|
18249
18249
|
localeKey: (_search_localeKey1 = search.localeKey) !== null && _search_localeKey1 !== void 0 ? _search_localeKey1 : localeKey,
|
|
18250
18250
|
isDisabled: (_search_isDisabled = search.isDisabled) !== null && _search_isDisabled !== void 0 ? _search_isDisabled : isDisabled,
|
|
@@ -18267,7 +18267,7 @@ function FiltersPane(param) {
|
|
|
18267
18267
|
locale: locale2,
|
|
18268
18268
|
localeKey,
|
|
18269
18269
|
onChange: function(value) {
|
|
18270
|
-
return onChangeFilters(_object_spread_props$
|
|
18270
|
+
return onChangeFilters(_object_spread_props$o(_object_spread$p({}, values), _define_property$q({}, key, value)));
|
|
18271
18271
|
},
|
|
18272
18272
|
value: currentValue,
|
|
18273
18273
|
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 +24397,7 @@ const Flags = {
|
|
|
24397
24397
|
ZM,
|
|
24398
24398
|
ZW
|
|
24399
24399
|
};
|
|
24400
|
-
var useStyles$
|
|
24400
|
+
var useStyles$p = createThemedStyles("Flag", {
|
|
24401
24401
|
root: {
|
|
24402
24402
|
// приходится хардкодить в компоненте, тк либа Flags выдает флаги с 2-3 пиксельным отступом снизу
|
|
24403
24403
|
// если будет нужно, то можно вынести border на уровень пропсов
|
|
@@ -24415,7 +24415,7 @@ var useStyles$o = createThemedStyles("Flag", {
|
|
|
24415
24415
|
});
|
|
24416
24416
|
var Flag = function(param) {
|
|
24417
24417
|
var _param_countryCode = param.countryCode, countryCode = _param_countryCode === void 0 ? "" : _param_countryCode, tweakStyles = param.tweakStyles;
|
|
24418
|
-
var classes = useStyles$
|
|
24418
|
+
var classes = useStyles$p({
|
|
24419
24419
|
theme: tweakStyles
|
|
24420
24420
|
});
|
|
24421
24421
|
var CC3 = countryCode.toUpperCase();
|
|
@@ -24431,7 +24431,7 @@ var Flag = function(param) {
|
|
|
24431
24431
|
className: classes.root
|
|
24432
24432
|
});
|
|
24433
24433
|
};
|
|
24434
|
-
var useStyles$
|
|
24434
|
+
var useStyles$o = createThemedStyles("Skeleton", {
|
|
24435
24435
|
root: {
|
|
24436
24436
|
display: "flex",
|
|
24437
24437
|
width: "100%",
|
|
@@ -24467,7 +24467,7 @@ var useStyles$n = createThemedStyles("Skeleton", {
|
|
|
24467
24467
|
});
|
|
24468
24468
|
var Skeleton = function(param) {
|
|
24469
24469
|
var height = param.height, tweakStyles = param.tweakStyles;
|
|
24470
|
-
var classes = useStyles$
|
|
24470
|
+
var classes = useStyles$o({
|
|
24471
24471
|
theme: tweakStyles
|
|
24472
24472
|
});
|
|
24473
24473
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -24493,7 +24493,7 @@ var formatCellContent = function(value, config) {
|
|
|
24493
24493
|
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
24494
|
};
|
|
24495
24495
|
var STICKY_SHADOW_PADDING = 12;
|
|
24496
|
-
var useStyles$
|
|
24496
|
+
var useStyles$n = createThemedStyles("FlexibleTable", {
|
|
24497
24497
|
root: {
|
|
24498
24498
|
width: "100%",
|
|
24499
24499
|
position: "relative",
|
|
@@ -24583,7 +24583,7 @@ var useStyles$m = createThemedStyles("FlexibleTable", {
|
|
|
24583
24583
|
nothingFoundRow: {},
|
|
24584
24584
|
nothingFound: {}
|
|
24585
24585
|
});
|
|
24586
|
-
function _define_property$
|
|
24586
|
+
function _define_property$p(obj, key, value) {
|
|
24587
24587
|
if (key in obj) {
|
|
24588
24588
|
Object.defineProperty(obj, key, {
|
|
24589
24589
|
value,
|
|
@@ -24596,7 +24596,7 @@ function _define_property$o(obj, key, value) {
|
|
|
24596
24596
|
}
|
|
24597
24597
|
return obj;
|
|
24598
24598
|
}
|
|
24599
|
-
function _object_spread$
|
|
24599
|
+
function _object_spread$o(target) {
|
|
24600
24600
|
for (var i = 1; i < arguments.length; i++) {
|
|
24601
24601
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
24602
24602
|
var ownKeys2 = Object.keys(source);
|
|
@@ -24606,12 +24606,12 @@ function _object_spread$n(target) {
|
|
|
24606
24606
|
}));
|
|
24607
24607
|
}
|
|
24608
24608
|
ownKeys2.forEach(function(key) {
|
|
24609
|
-
_define_property$
|
|
24609
|
+
_define_property$p(target, key, source[key]);
|
|
24610
24610
|
});
|
|
24611
24611
|
}
|
|
24612
24612
|
return target;
|
|
24613
24613
|
}
|
|
24614
|
-
function ownKeys$
|
|
24614
|
+
function ownKeys$n(object, enumerableOnly) {
|
|
24615
24615
|
var keys2 = Object.keys(object);
|
|
24616
24616
|
if (Object.getOwnPropertySymbols) {
|
|
24617
24617
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -24624,18 +24624,18 @@ function ownKeys$m(object, enumerableOnly) {
|
|
|
24624
24624
|
}
|
|
24625
24625
|
return keys2;
|
|
24626
24626
|
}
|
|
24627
|
-
function _object_spread_props$
|
|
24627
|
+
function _object_spread_props$n(target, source) {
|
|
24628
24628
|
source = source != null ? source : {};
|
|
24629
24629
|
if (Object.getOwnPropertyDescriptors) {
|
|
24630
24630
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
24631
24631
|
} else {
|
|
24632
|
-
ownKeys$
|
|
24632
|
+
ownKeys$n(Object(source)).forEach(function(key) {
|
|
24633
24633
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
24634
24634
|
});
|
|
24635
24635
|
}
|
|
24636
24636
|
return target;
|
|
24637
24637
|
}
|
|
24638
|
-
var useStyles$
|
|
24638
|
+
var useStyles$m = createThemedStyles("FlexibleTableCell", {
|
|
24639
24639
|
root: {
|
|
24640
24640
|
position: "relative",
|
|
24641
24641
|
boxSizing: "content-box",
|
|
@@ -24648,7 +24648,7 @@ var useStyles$l = createThemedStyles("FlexibleTableCell", {
|
|
|
24648
24648
|
zIndex: 5,
|
|
24649
24649
|
verticalAlign: "top"
|
|
24650
24650
|
},
|
|
24651
|
-
sticky: _object_spread_props$
|
|
24651
|
+
sticky: _object_spread_props$n(_object_spread$o({
|
|
24652
24652
|
zIndex: 19,
|
|
24653
24653
|
paddingLeft: 24,
|
|
24654
24654
|
paddingRight: 12
|
|
@@ -24667,7 +24667,7 @@ var useStyles$l = createThemedStyles("FlexibleTableCell", {
|
|
|
24667
24667
|
height: 21
|
|
24668
24668
|
}
|
|
24669
24669
|
});
|
|
24670
|
-
function _define_property$
|
|
24670
|
+
function _define_property$o(obj, key, value) {
|
|
24671
24671
|
if (key in obj) {
|
|
24672
24672
|
Object.defineProperty(obj, key, {
|
|
24673
24673
|
value,
|
|
@@ -24680,7 +24680,7 @@ function _define_property$n(obj, key, value) {
|
|
|
24680
24680
|
}
|
|
24681
24681
|
return obj;
|
|
24682
24682
|
}
|
|
24683
|
-
function _object_spread$
|
|
24683
|
+
function _object_spread$n(target) {
|
|
24684
24684
|
for (var i = 1; i < arguments.length; i++) {
|
|
24685
24685
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
24686
24686
|
var ownKeys2 = Object.keys(source);
|
|
@@ -24690,12 +24690,12 @@ function _object_spread$m(target) {
|
|
|
24690
24690
|
}));
|
|
24691
24691
|
}
|
|
24692
24692
|
ownKeys2.forEach(function(key) {
|
|
24693
|
-
_define_property$
|
|
24693
|
+
_define_property$o(target, key, source[key]);
|
|
24694
24694
|
});
|
|
24695
24695
|
}
|
|
24696
24696
|
return target;
|
|
24697
24697
|
}
|
|
24698
|
-
function ownKeys$
|
|
24698
|
+
function ownKeys$m(object, enumerableOnly) {
|
|
24699
24699
|
var keys2 = Object.keys(object);
|
|
24700
24700
|
if (Object.getOwnPropertySymbols) {
|
|
24701
24701
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -24708,21 +24708,21 @@ function ownKeys$l(object, enumerableOnly) {
|
|
|
24708
24708
|
}
|
|
24709
24709
|
return keys2;
|
|
24710
24710
|
}
|
|
24711
|
-
function _object_spread_props$
|
|
24711
|
+
function _object_spread_props$m(target, source) {
|
|
24712
24712
|
source = source != null ? source : {};
|
|
24713
24713
|
if (Object.getOwnPropertyDescriptors) {
|
|
24714
24714
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
24715
24715
|
} else {
|
|
24716
|
-
ownKeys$
|
|
24716
|
+
ownKeys$m(Object(source)).forEach(function(key) {
|
|
24717
24717
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
24718
24718
|
});
|
|
24719
24719
|
}
|
|
24720
24720
|
return target;
|
|
24721
24721
|
}
|
|
24722
|
-
function _object_without_properties$
|
|
24722
|
+
function _object_without_properties$7(source, excluded) {
|
|
24723
24723
|
if (source == null)
|
|
24724
24724
|
return {};
|
|
24725
|
-
var target = _object_without_properties_loose$
|
|
24725
|
+
var target = _object_without_properties_loose$7(source, excluded);
|
|
24726
24726
|
var key, i;
|
|
24727
24727
|
if (Object.getOwnPropertySymbols) {
|
|
24728
24728
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -24737,7 +24737,7 @@ function _object_without_properties$6(source, excluded) {
|
|
|
24737
24737
|
}
|
|
24738
24738
|
return target;
|
|
24739
24739
|
}
|
|
24740
|
-
function _object_without_properties_loose$
|
|
24740
|
+
function _object_without_properties_loose$7(source, excluded) {
|
|
24741
24741
|
if (source == null)
|
|
24742
24742
|
return {};
|
|
24743
24743
|
var target = {};
|
|
@@ -24752,7 +24752,7 @@ function _object_without_properties_loose$6(source, excluded) {
|
|
|
24752
24752
|
return target;
|
|
24753
24753
|
}
|
|
24754
24754
|
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$
|
|
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$7(_param, [
|
|
24756
24756
|
"row",
|
|
24757
24757
|
"columnName",
|
|
24758
24758
|
"config",
|
|
@@ -24762,7 +24762,7 @@ function FlexibleTableCell(_param) {
|
|
|
24762
24762
|
"isLoading",
|
|
24763
24763
|
"tweakStyles"
|
|
24764
24764
|
]);
|
|
24765
|
-
var classes = useStyles$
|
|
24765
|
+
var classes = useStyles$m({
|
|
24766
24766
|
theme: tweakStyles
|
|
24767
24767
|
});
|
|
24768
24768
|
var _config_columnName;
|
|
@@ -24771,7 +24771,7 @@ function FlexibleTableCell(_param) {
|
|
|
24771
24771
|
var TableCell = renderMode === "divs" ? "div" : "td";
|
|
24772
24772
|
var _obj;
|
|
24773
24773
|
return /* @__PURE__ */ jsx(TableCell, {
|
|
24774
|
-
className: clsx(classes.root, (_obj = {}, _define_property$
|
|
24774
|
+
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
24775
|
style: {
|
|
24776
24776
|
textAlign: cellAlign,
|
|
24777
24777
|
position: isSticky ? "sticky" : position,
|
|
@@ -24783,14 +24783,14 @@ function FlexibleTableCell(_param) {
|
|
|
24783
24783
|
className: classes.skeleton,
|
|
24784
24784
|
children: /* @__PURE__ */ jsx(Skeleton, {})
|
|
24785
24785
|
}) : isNotEmpty(value) && /* @__PURE__ */ jsx(Fragment, {
|
|
24786
|
-
children: isNotEmpty(component) ? component(_object_spread_props$
|
|
24786
|
+
children: isNotEmpty(component) ? component(_object_spread_props$m(_object_spread$n({}, valueComponentProps), {
|
|
24787
24787
|
value,
|
|
24788
24788
|
row
|
|
24789
24789
|
})) : formatCellContent(value, config[columnName])
|
|
24790
24790
|
})
|
|
24791
24791
|
});
|
|
24792
24792
|
}
|
|
24793
|
-
var useStyles$
|
|
24793
|
+
var useStyles$l = createThemedStyles("FlexibleTableRow", {
|
|
24794
24794
|
root: {
|
|
24795
24795
|
position: "relative"
|
|
24796
24796
|
},
|
|
@@ -24814,7 +24814,7 @@ function _array_with_holes$a(arr) {
|
|
|
24814
24814
|
if (Array.isArray(arr))
|
|
24815
24815
|
return arr;
|
|
24816
24816
|
}
|
|
24817
|
-
function _define_property$
|
|
24817
|
+
function _define_property$n(obj, key, value) {
|
|
24818
24818
|
if (key in obj) {
|
|
24819
24819
|
Object.defineProperty(obj, key, {
|
|
24820
24820
|
value,
|
|
@@ -24858,7 +24858,7 @@ function _iterable_to_array_limit$a(arr, i) {
|
|
|
24858
24858
|
function _non_iterable_rest$a() {
|
|
24859
24859
|
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
24860
|
}
|
|
24861
|
-
function _object_spread$
|
|
24861
|
+
function _object_spread$m(target) {
|
|
24862
24862
|
for (var i = 1; i < arguments.length; i++) {
|
|
24863
24863
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
24864
24864
|
var ownKeys2 = Object.keys(source);
|
|
@@ -24868,12 +24868,12 @@ function _object_spread$l(target) {
|
|
|
24868
24868
|
}));
|
|
24869
24869
|
}
|
|
24870
24870
|
ownKeys2.forEach(function(key) {
|
|
24871
|
-
_define_property$
|
|
24871
|
+
_define_property$n(target, key, source[key]);
|
|
24872
24872
|
});
|
|
24873
24873
|
}
|
|
24874
24874
|
return target;
|
|
24875
24875
|
}
|
|
24876
|
-
function ownKeys$
|
|
24876
|
+
function ownKeys$l(object, enumerableOnly) {
|
|
24877
24877
|
var keys2 = Object.keys(object);
|
|
24878
24878
|
if (Object.getOwnPropertySymbols) {
|
|
24879
24879
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -24886,12 +24886,12 @@ function ownKeys$k(object, enumerableOnly) {
|
|
|
24886
24886
|
}
|
|
24887
24887
|
return keys2;
|
|
24888
24888
|
}
|
|
24889
|
-
function _object_spread_props$
|
|
24889
|
+
function _object_spread_props$l(target, source) {
|
|
24890
24890
|
source = source != null ? source : {};
|
|
24891
24891
|
if (Object.getOwnPropertyDescriptors) {
|
|
24892
24892
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
24893
24893
|
} else {
|
|
24894
|
-
ownKeys$
|
|
24894
|
+
ownKeys$l(Object(source)).forEach(function(key) {
|
|
24895
24895
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
24896
24896
|
});
|
|
24897
24897
|
}
|
|
@@ -24915,7 +24915,7 @@ function _unsupported_iterable_to_array$a(o, minLen) {
|
|
|
24915
24915
|
}
|
|
24916
24916
|
function FlexibleTableRowInner(param) {
|
|
24917
24917
|
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$
|
|
24918
|
+
var classes = useStyles$l({
|
|
24919
24919
|
theme: tweakStyles
|
|
24920
24920
|
});
|
|
24921
24921
|
var tweakTableCellStyles = useTweakStyles({
|
|
@@ -24944,7 +24944,7 @@ function FlexibleTableRowInner(param) {
|
|
|
24944
24944
|
var isClickable = !isLoading && (isNotEmpty(onRowClick) || isNotEmpty(expandableRowComponent));
|
|
24945
24945
|
var isNestedComponentExpanded = nestedComponent.isOpen, nestedComponentCellKey = nestedComponent.cellKey;
|
|
24946
24946
|
var rowData = rowAttributes === null || rowAttributes === void 0 ? void 0 : rowAttributes.reduce(function(acc, cur) {
|
|
24947
|
-
return _object_spread_props$
|
|
24947
|
+
return _object_spread_props$l(_object_spread$m({}, acc), _define_property$n({}, cur, item[cur]));
|
|
24948
24948
|
}, {});
|
|
24949
24949
|
var handleMouseEnter = function(event) {
|
|
24950
24950
|
if (isNotEmpty(uniqueField) && isNotEmpty(onRowHover)) {
|
|
@@ -24992,13 +24992,13 @@ function FlexibleTableRowInner(param) {
|
|
|
24992
24992
|
var _obj;
|
|
24993
24993
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
24994
24994
|
children: [
|
|
24995
|
-
/* @__PURE__ */ jsx(TableRow, _object_spread_props$
|
|
24996
|
-
className: clsx(classes.root, (_obj = {}, _define_property$
|
|
24995
|
+
/* @__PURE__ */ jsx(TableRow, _object_spread_props$l(_object_spread$m({
|
|
24996
|
+
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
24997
|
}, !isLoading && {
|
|
24998
24998
|
onClick: handleRowClick,
|
|
24999
24999
|
onMouseEnter: handleMouseEnter,
|
|
25000
25000
|
onMouseLeave: handleMouseLeave
|
|
25001
|
-
}, addDataAttributes(_object_spread_props$
|
|
25001
|
+
}, addDataAttributes(_object_spread_props$l(_object_spread$m({}, rowData), {
|
|
25002
25002
|
active: isActive ? true : void 0,
|
|
25003
25003
|
editable: isEditable ? true : void 0,
|
|
25004
25004
|
isExpandableComponentActive: isNestedComponentExpanded ? true : void 0
|
|
@@ -25034,7 +25034,7 @@ function FlexibleTableRowInner(param) {
|
|
|
25034
25034
|
});
|
|
25035
25035
|
}
|
|
25036
25036
|
var FlexibleTableRow = /* @__PURE__ */ memo(FlexibleTableRowInner);
|
|
25037
|
-
function _define_property$
|
|
25037
|
+
function _define_property$m(obj, key, value) {
|
|
25038
25038
|
if (key in obj) {
|
|
25039
25039
|
Object.defineProperty(obj, key, {
|
|
25040
25040
|
value,
|
|
@@ -25047,7 +25047,7 @@ function _define_property$l(obj, key, value) {
|
|
|
25047
25047
|
}
|
|
25048
25048
|
return obj;
|
|
25049
25049
|
}
|
|
25050
|
-
function _object_spread$
|
|
25050
|
+
function _object_spread$l(target) {
|
|
25051
25051
|
for (var i = 1; i < arguments.length; i++) {
|
|
25052
25052
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
25053
25053
|
var ownKeys2 = Object.keys(source);
|
|
@@ -25057,12 +25057,12 @@ function _object_spread$k(target) {
|
|
|
25057
25057
|
}));
|
|
25058
25058
|
}
|
|
25059
25059
|
ownKeys2.forEach(function(key) {
|
|
25060
|
-
_define_property$
|
|
25060
|
+
_define_property$m(target, key, source[key]);
|
|
25061
25061
|
});
|
|
25062
25062
|
}
|
|
25063
25063
|
return target;
|
|
25064
25064
|
}
|
|
25065
|
-
function ownKeys$
|
|
25065
|
+
function ownKeys$k(object, enumerableOnly) {
|
|
25066
25066
|
var keys2 = Object.keys(object);
|
|
25067
25067
|
if (Object.getOwnPropertySymbols) {
|
|
25068
25068
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -25075,21 +25075,21 @@ function ownKeys$j(object, enumerableOnly) {
|
|
|
25075
25075
|
}
|
|
25076
25076
|
return keys2;
|
|
25077
25077
|
}
|
|
25078
|
-
function _object_spread_props$
|
|
25078
|
+
function _object_spread_props$k(target, source) {
|
|
25079
25079
|
source = source != null ? source : {};
|
|
25080
25080
|
if (Object.getOwnPropertyDescriptors) {
|
|
25081
25081
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
25082
25082
|
} else {
|
|
25083
|
-
ownKeys$
|
|
25083
|
+
ownKeys$k(Object(source)).forEach(function(key) {
|
|
25084
25084
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
25085
25085
|
});
|
|
25086
25086
|
}
|
|
25087
25087
|
return target;
|
|
25088
25088
|
}
|
|
25089
|
-
function _object_without_properties$
|
|
25089
|
+
function _object_without_properties$6(source, excluded) {
|
|
25090
25090
|
if (source == null)
|
|
25091
25091
|
return {};
|
|
25092
|
-
var target = _object_without_properties_loose$
|
|
25092
|
+
var target = _object_without_properties_loose$6(source, excluded);
|
|
25093
25093
|
var key, i;
|
|
25094
25094
|
if (Object.getOwnPropertySymbols) {
|
|
25095
25095
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -25104,7 +25104,7 @@ function _object_without_properties$5(source, excluded) {
|
|
|
25104
25104
|
}
|
|
25105
25105
|
return target;
|
|
25106
25106
|
}
|
|
25107
|
-
function _object_without_properties_loose$
|
|
25107
|
+
function _object_without_properties_loose$6(source, excluded) {
|
|
25108
25108
|
if (source == null)
|
|
25109
25109
|
return {};
|
|
25110
25110
|
var target = {};
|
|
@@ -25119,7 +25119,7 @@ function _object_without_properties_loose$5(source, excluded) {
|
|
|
25119
25119
|
return target;
|
|
25120
25120
|
}
|
|
25121
25121
|
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$
|
|
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$6(_param, [
|
|
25123
25123
|
"content",
|
|
25124
25124
|
"headerContent",
|
|
25125
25125
|
"config",
|
|
@@ -25135,7 +25135,7 @@ function FlexibleTable(_param) {
|
|
|
25135
25135
|
"tweakStyles",
|
|
25136
25136
|
"onHeadClick"
|
|
25137
25137
|
]);
|
|
25138
|
-
var classes = useStyles$
|
|
25138
|
+
var classes = useStyles$n({
|
|
25139
25139
|
theme: tweakStyles
|
|
25140
25140
|
});
|
|
25141
25141
|
var tweakTableRowStyles = useTweakStyles({
|
|
@@ -25153,7 +25153,7 @@ function FlexibleTable(_param) {
|
|
|
25153
25153
|
]);
|
|
25154
25154
|
var hasInfiniteScroll = isNotEmpty(infinityScrollConfig);
|
|
25155
25155
|
var uniqueField = restProps.uniqueField, _restProps_isFirstColumnSticky = restProps.isFirstColumnSticky, isFirstColumnSticky = _restProps_isFirstColumnSticky === void 0 ? false : _restProps_isFirstColumnSticky;
|
|
25156
|
-
var tableRowProps = _object_spread_props$
|
|
25156
|
+
var tableRowProps = _object_spread_props$k(_object_spread$l({}, restProps), {
|
|
25157
25157
|
renderMode,
|
|
25158
25158
|
config,
|
|
25159
25159
|
columns,
|
|
@@ -25242,10 +25242,10 @@ function FlexibleTable(_param) {
|
|
|
25242
25242
|
var TableCell = renderMode === "divs" ? "div" : "td";
|
|
25243
25243
|
return /* @__PURE__ */ jsx("div", {
|
|
25244
25244
|
ref,
|
|
25245
|
-
className: clsx(_define_property$
|
|
25246
|
-
children: /* @__PURE__ */ jsxs(Table, _object_spread_props$
|
|
25245
|
+
className: clsx(_define_property$m({}, classes.scroll, isHorizontallyScrollable)),
|
|
25246
|
+
children: /* @__PURE__ */ jsxs(Table, _object_spread_props$k(_object_spread$l({
|
|
25247
25247
|
className: classes.root
|
|
25248
|
-
}, addDataTestId(testId), addDataAttributes(_object_spread_props$
|
|
25248
|
+
}, addDataTestId(testId), addDataAttributes(_object_spread_props$k(_object_spread$l({}, data), {
|
|
25249
25249
|
isLoading
|
|
25250
25250
|
}))), {
|
|
25251
25251
|
children: [
|
|
@@ -25259,7 +25259,7 @@ function FlexibleTable(_param) {
|
|
|
25259
25259
|
var _itemConfig_titleAlign, _itemConfig_title;
|
|
25260
25260
|
var _obj;
|
|
25261
25261
|
return /* @__PURE__ */ jsx(TableHeader, {
|
|
25262
|
-
className: clsx(classes.header, (_obj = {}, _define_property$
|
|
25262
|
+
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
25263
|
style: {
|
|
25264
25264
|
minWidth: itemConfig === null || itemConfig === void 0 ? void 0 : itemConfig.minWidth,
|
|
25265
25265
|
width: itemConfig === null || itemConfig === void 0 ? void 0 : itemConfig.width,
|
|
@@ -25279,7 +25279,7 @@ function FlexibleTable(_param) {
|
|
|
25279
25279
|
/* @__PURE__ */ jsx(TableBody, {
|
|
25280
25280
|
className: classes.body,
|
|
25281
25281
|
children: isLoading ? indexMap(6, function(i) {
|
|
25282
|
-
return /* @__PURE__ */ createElement(FlexibleTableRow, _object_spread_props$
|
|
25282
|
+
return /* @__PURE__ */ createElement(FlexibleTableRow, _object_spread_props$k(_object_spread$l({}, tableRowProps), {
|
|
25283
25283
|
key: i,
|
|
25284
25284
|
item: {},
|
|
25285
25285
|
index: i
|
|
@@ -25295,7 +25295,7 @@ function FlexibleTable(_param) {
|
|
|
25295
25295
|
})
|
|
25296
25296
|
}),
|
|
25297
25297
|
content.map(function(item, i) {
|
|
25298
|
-
return /* @__PURE__ */ createElement(FlexibleTableRow, _object_spread_props$
|
|
25298
|
+
return /* @__PURE__ */ createElement(FlexibleTableRow, _object_spread_props$k(_object_spread$l({}, tableRowProps), {
|
|
25299
25299
|
key: isNotEmpty(uniqueField) ? item[uniqueField] : i,
|
|
25300
25300
|
item,
|
|
25301
25301
|
index: i
|
|
@@ -25322,6 +25322,196 @@ function FlexibleTable(_param) {
|
|
|
25322
25322
|
}))
|
|
25323
25323
|
});
|
|
25324
25324
|
}
|
|
25325
|
+
var BUTTON_SIZE_S = 24;
|
|
25326
|
+
var BUTTON_SIZE_M = 32;
|
|
25327
|
+
var ICON_SIZE = 20;
|
|
25328
|
+
var useStyles$k = createThemedStyles("IconButton", {
|
|
25329
|
+
root: {
|
|
25330
|
+
display: "flex",
|
|
25331
|
+
justifyContent: "center",
|
|
25332
|
+
alignItems: "center",
|
|
25333
|
+
cursor: "pointer",
|
|
25334
|
+
outline: "none",
|
|
25335
|
+
boxSizing: "border-box",
|
|
25336
|
+
transition: "0.25s ease-in-out",
|
|
25337
|
+
transitionProperty: "background-color, color, border-color",
|
|
25338
|
+
border: "none",
|
|
25339
|
+
position: "relative",
|
|
25340
|
+
boxShadow: "none",
|
|
25341
|
+
borderRadius: "50%",
|
|
25342
|
+
background: "none",
|
|
25343
|
+
padding: 0,
|
|
25344
|
+
flexShrink: 0,
|
|
25345
|
+
"&:disabled": {
|
|
25346
|
+
extend: "disabled"
|
|
25347
|
+
},
|
|
25348
|
+
"&:active": {
|
|
25349
|
+
extend: "active"
|
|
25350
|
+
}
|
|
25351
|
+
},
|
|
25352
|
+
"cancel-light": {},
|
|
25353
|
+
cancel: {},
|
|
25354
|
+
main: {},
|
|
25355
|
+
custom: {},
|
|
25356
|
+
active: {},
|
|
25357
|
+
disabled: {
|
|
25358
|
+
cursor: "not-allowed",
|
|
25359
|
+
pointerEvents: "none"
|
|
25360
|
+
},
|
|
25361
|
+
loading: {
|
|
25362
|
+
"& $content": {
|
|
25363
|
+
visibility: "hidden"
|
|
25364
|
+
},
|
|
25365
|
+
"& $loader": {
|
|
25366
|
+
display: "block"
|
|
25367
|
+
}
|
|
25368
|
+
},
|
|
25369
|
+
icon: {
|
|
25370
|
+
display: "flex",
|
|
25371
|
+
alignItems: "center",
|
|
25372
|
+
width: ICON_SIZE,
|
|
25373
|
+
height: ICON_SIZE
|
|
25374
|
+
},
|
|
25375
|
+
loader: {
|
|
25376
|
+
display: "none",
|
|
25377
|
+
position: "absolute",
|
|
25378
|
+
left: "50%",
|
|
25379
|
+
top: "50%",
|
|
25380
|
+
transform: "translate(-50%, -50%)",
|
|
25381
|
+
width: ICON_SIZE,
|
|
25382
|
+
height: ICON_SIZE
|
|
25383
|
+
},
|
|
25384
|
+
s: {
|
|
25385
|
+
width: BUTTON_SIZE_S,
|
|
25386
|
+
height: BUTTON_SIZE_S
|
|
25387
|
+
},
|
|
25388
|
+
m: {
|
|
25389
|
+
width: BUTTON_SIZE_M,
|
|
25390
|
+
height: BUTTON_SIZE_M
|
|
25391
|
+
}
|
|
25392
|
+
});
|
|
25393
|
+
function _define_property$l(obj, key, value) {
|
|
25394
|
+
if (key in obj) {
|
|
25395
|
+
Object.defineProperty(obj, key, {
|
|
25396
|
+
value,
|
|
25397
|
+
enumerable: true,
|
|
25398
|
+
configurable: true,
|
|
25399
|
+
writable: true
|
|
25400
|
+
});
|
|
25401
|
+
} else {
|
|
25402
|
+
obj[key] = value;
|
|
25403
|
+
}
|
|
25404
|
+
return obj;
|
|
25405
|
+
}
|
|
25406
|
+
function _object_spread$k(target) {
|
|
25407
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
25408
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
25409
|
+
var ownKeys2 = Object.keys(source);
|
|
25410
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
25411
|
+
ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
25412
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
25413
|
+
}));
|
|
25414
|
+
}
|
|
25415
|
+
ownKeys2.forEach(function(key) {
|
|
25416
|
+
_define_property$l(target, key, source[key]);
|
|
25417
|
+
});
|
|
25418
|
+
}
|
|
25419
|
+
return target;
|
|
25420
|
+
}
|
|
25421
|
+
function ownKeys$j(object, enumerableOnly) {
|
|
25422
|
+
var keys2 = Object.keys(object);
|
|
25423
|
+
if (Object.getOwnPropertySymbols) {
|
|
25424
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
25425
|
+
if (enumerableOnly) {
|
|
25426
|
+
symbols = symbols.filter(function(sym) {
|
|
25427
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
25428
|
+
});
|
|
25429
|
+
}
|
|
25430
|
+
keys2.push.apply(keys2, symbols);
|
|
25431
|
+
}
|
|
25432
|
+
return keys2;
|
|
25433
|
+
}
|
|
25434
|
+
function _object_spread_props$j(target, source) {
|
|
25435
|
+
source = source != null ? source : {};
|
|
25436
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
25437
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
25438
|
+
} else {
|
|
25439
|
+
ownKeys$j(Object(source)).forEach(function(key) {
|
|
25440
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
25441
|
+
});
|
|
25442
|
+
}
|
|
25443
|
+
return target;
|
|
25444
|
+
}
|
|
25445
|
+
function _object_without_properties$5(source, excluded) {
|
|
25446
|
+
if (source == null)
|
|
25447
|
+
return {};
|
|
25448
|
+
var target = _object_without_properties_loose$5(source, excluded);
|
|
25449
|
+
var key, i;
|
|
25450
|
+
if (Object.getOwnPropertySymbols) {
|
|
25451
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
25452
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
25453
|
+
key = sourceSymbolKeys[i];
|
|
25454
|
+
if (excluded.indexOf(key) >= 0)
|
|
25455
|
+
continue;
|
|
25456
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
25457
|
+
continue;
|
|
25458
|
+
target[key] = source[key];
|
|
25459
|
+
}
|
|
25460
|
+
}
|
|
25461
|
+
return target;
|
|
25462
|
+
}
|
|
25463
|
+
function _object_without_properties_loose$5(source, excluded) {
|
|
25464
|
+
if (source == null)
|
|
25465
|
+
return {};
|
|
25466
|
+
var target = {};
|
|
25467
|
+
var sourceKeys = Object.keys(source);
|
|
25468
|
+
var key, i;
|
|
25469
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
25470
|
+
key = sourceKeys[i];
|
|
25471
|
+
if (excluded.indexOf(key) >= 0)
|
|
25472
|
+
continue;
|
|
25473
|
+
target[key] = source[key];
|
|
25474
|
+
}
|
|
25475
|
+
return target;
|
|
25476
|
+
}
|
|
25477
|
+
var IconButton = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
25478
|
+
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, [
|
|
25479
|
+
"icon",
|
|
25480
|
+
"size",
|
|
25481
|
+
"view",
|
|
25482
|
+
"isDisabled",
|
|
25483
|
+
"isActive",
|
|
25484
|
+
"isLoading",
|
|
25485
|
+
"type",
|
|
25486
|
+
"testId",
|
|
25487
|
+
"tweakStyles",
|
|
25488
|
+
"data",
|
|
25489
|
+
"onClick"
|
|
25490
|
+
]);
|
|
25491
|
+
var classes = useStyles$k({
|
|
25492
|
+
theme: tweakStyles
|
|
25493
|
+
});
|
|
25494
|
+
var hasNoAction = isDisabled || isLoading;
|
|
25495
|
+
var _obj;
|
|
25496
|
+
return /* @__PURE__ */ jsx("button", _object_spread_props$j(_object_spread$k({
|
|
25497
|
+
ref,
|
|
25498
|
+
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)),
|
|
25499
|
+
type,
|
|
25500
|
+
disabled: isDisabled,
|
|
25501
|
+
onClick: hasNoAction ? void 0 : onClick
|
|
25502
|
+
}, restProps, addDataTestId(testId), addDataAttributes(data)), {
|
|
25503
|
+
children: isLoading ? /* @__PURE__ */ jsx("span", {
|
|
25504
|
+
className: classes.loader,
|
|
25505
|
+
children: /* @__PURE__ */ jsx(ThemedPreloader, {
|
|
25506
|
+
type: "default",
|
|
25507
|
+
useCurrentColor: true
|
|
25508
|
+
})
|
|
25509
|
+
}) : /* @__PURE__ */ jsx("span", {
|
|
25510
|
+
className: classes.icon,
|
|
25511
|
+
children: renderIcon(icon)
|
|
25512
|
+
})
|
|
25513
|
+
}));
|
|
25514
|
+
});
|
|
25325
25515
|
var BUTTONS_WIDTH = 36;
|
|
25326
25516
|
var BUTTONS_GAP = 2;
|
|
25327
25517
|
var useStyles$j = createThemedStyles("IncrementInput", {
|
|
@@ -25555,6 +25745,8 @@ var VERTICAL_OVERLAY_PADDING = 50;
|
|
|
25555
25745
|
var MODAL_HORIZONTAL_PADDING_L = 40;
|
|
25556
25746
|
var MODAL_HORIZONTAL_PADDING_M = 36;
|
|
25557
25747
|
var MODAL_HORIZONTAL_PADDING_S = 26;
|
|
25748
|
+
var MODAL_CLOSE_BUTTON_SIZE = 40;
|
|
25749
|
+
var MODAL_CLOSE_BUTTON_ICON_SIZE = 30;
|
|
25558
25750
|
var useStyles$i = createThemedStyles("Modal", {
|
|
25559
25751
|
root: {},
|
|
25560
25752
|
fixedPosition: {
|
|
@@ -25813,6 +26005,16 @@ var useStyles$i = createThemedStyles("Modal", {
|
|
|
25813
26005
|
extend: "animationEnd"
|
|
25814
26006
|
}
|
|
25815
26007
|
});
|
|
26008
|
+
var closeButtonStyles = {
|
|
26009
|
+
m: {
|
|
26010
|
+
width: MODAL_CLOSE_BUTTON_SIZE,
|
|
26011
|
+
height: MODAL_CLOSE_BUTTON_SIZE
|
|
26012
|
+
},
|
|
26013
|
+
icon: {
|
|
26014
|
+
width: MODAL_CLOSE_BUTTON_ICON_SIZE,
|
|
26015
|
+
height: MODAL_CLOSE_BUTTON_ICON_SIZE
|
|
26016
|
+
}
|
|
26017
|
+
};
|
|
25816
26018
|
function _array_like_to_array$9(arr, len) {
|
|
25817
26019
|
if (len == null || len > arr.length)
|
|
25818
26020
|
len = arr.length;
|
|
@@ -25982,6 +26184,7 @@ var Modal = function(_param) {
|
|
|
25982
26184
|
theme: tweakStyles
|
|
25983
26185
|
});
|
|
25984
26186
|
var tweakCloseButtonStyles = useTweakStyles({
|
|
26187
|
+
innerStyles: closeButtonStyles,
|
|
25985
26188
|
tweakStyles,
|
|
25986
26189
|
className: "tweakCloseButton",
|
|
25987
26190
|
currentComponentName: "Modal"
|
|
@@ -26061,10 +26264,12 @@ var Modal = function(_param) {
|
|
|
26061
26264
|
children: [
|
|
26062
26265
|
hasCloseButton && /* @__PURE__ */ jsx("div", {
|
|
26063
26266
|
className: classes.close,
|
|
26064
|
-
children: /* @__PURE__ */ jsx(
|
|
26267
|
+
children: /* @__PURE__ */ jsx(IconButton, {
|
|
26065
26268
|
testId: getTestId(testId, "close-button"),
|
|
26066
26269
|
tweakStyles: tweakCloseButtonStyles,
|
|
26067
|
-
|
|
26270
|
+
view: "cancel-light",
|
|
26271
|
+
icon: "close",
|
|
26272
|
+
onClick: onClose
|
|
26068
26273
|
})
|
|
26069
26274
|
}),
|
|
26070
26275
|
isReactNodeNotEmpty(title) && /* @__PURE__ */ jsx("h3", {
|
|
@@ -29105,7 +29310,7 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
29105
29310
|
}
|
|
29106
29311
|
return target;
|
|
29107
29312
|
}
|
|
29108
|
-
var TextButton = function(_param) {
|
|
29313
|
+
var TextButton = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
29109
29314
|
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
29315
|
"children",
|
|
29111
29316
|
"icon",
|
|
@@ -29136,10 +29341,11 @@ var TextButton = function(_param) {
|
|
|
29136
29341
|
var hasNoAction = isDisabled || isLoading;
|
|
29137
29342
|
var _obj;
|
|
29138
29343
|
return /* @__PURE__ */ jsxs("button", _object_spread_props$6(_object_spread$6({
|
|
29344
|
+
ref,
|
|
29345
|
+
type,
|
|
29139
29346
|
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
29347
|
disabled: hasNoAction,
|
|
29142
|
-
|
|
29348
|
+
onClick: !hasNoAction ? onClick : void 0
|
|
29143
29349
|
}, restProps, addDataTestId(testId), addDataAttributes(data)), {
|
|
29144
29350
|
children: [
|
|
29145
29351
|
/* @__PURE__ */ jsxs("span", {
|
|
@@ -29165,7 +29371,7 @@ var TextButton = function(_param) {
|
|
|
29165
29371
|
})
|
|
29166
29372
|
]
|
|
29167
29373
|
}));
|
|
29168
|
-
};
|
|
29374
|
+
});
|
|
29169
29375
|
var useStyles$5 = createThemedStyles("Tooltip", {
|
|
29170
29376
|
root: {
|
|
29171
29377
|
display: "inline-block",
|
|
@@ -29940,10 +30146,11 @@ var Toaster = function(param) {
|
|
|
29940
30146
|
}),
|
|
29941
30147
|
hasCloseButton && isNotEmpty(onClose) && /* @__PURE__ */ jsx("div", {
|
|
29942
30148
|
className: classes.close,
|
|
29943
|
-
children: /* @__PURE__ */ jsx(
|
|
29944
|
-
|
|
29945
|
-
|
|
29946
|
-
tweakStyles: tweakCloseButtonStyles
|
|
30149
|
+
children: /* @__PURE__ */ jsx(IconButton, {
|
|
30150
|
+
view: "cancel-light",
|
|
30151
|
+
icon: "close-window",
|
|
30152
|
+
tweakStyles: tweakCloseButtonStyles,
|
|
30153
|
+
onClick: onClose
|
|
29947
30154
|
})
|
|
29948
30155
|
})
|
|
29949
30156
|
]
|
|
@@ -30317,6 +30524,7 @@ export {
|
|
|
30317
30524
|
Flag,
|
|
30318
30525
|
FlexibleTable,
|
|
30319
30526
|
Icon,
|
|
30527
|
+
IconButton,
|
|
30320
30528
|
IncrementInput,
|
|
30321
30529
|
Input,
|
|
30322
30530
|
List,
|