@true-engineering/true-react-common-ui-kit 3.45.1 → 4.0.0-alpha0
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 +0 -40
- package/dist/components/CloseButton/CloseButton.d.ts +1 -1
- package/dist/components/ControlGroup/ControlGroup.d.ts +10 -0
- package/dist/components/ControlGroup/ControlGroup.stories.d.ts +7 -0
- package/dist/components/ControlGroup/ControlGroup.styles.d.ts +3 -0
- package/dist/components/ControlGroup/index.d.ts +2 -0
- package/dist/components/ControlWrapper/ControlWrapper.d.ts +27 -0
- package/dist/components/ControlWrapper/ControlWrapper.stories.d.ts +6 -0
- package/dist/components/ControlWrapper/ControlWrapper.styles.d.ts +6 -0
- package/dist/components/ControlWrapper/index.d.ts +2 -0
- package/dist/components/DateInput/DateInput.d.ts +3 -3
- package/dist/components/DatePicker/components/DatePickerHeader/DatePickerHeader.styles.d.ts +1 -1
- package/dist/components/DatePicker/types.d.ts +1 -1
- package/dist/components/FiltersPane/FiltersPane.stories.d.ts +1 -2
- package/dist/components/FiltersPane/components/FilterWithDates/FilterWithDates.d.ts +1 -1
- package/dist/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.d.ts +1 -2
- package/dist/components/Input/Input.d.ts +5 -52
- package/dist/components/Input/Input.stories.d.ts +4 -13
- package/dist/components/Input/Input.styles.d.ts +5 -4
- package/dist/components/Input/InputBase.d.ts +24 -0
- package/dist/components/Input/index.d.ts +1 -0
- package/dist/components/Input/types.d.ts +3 -4
- package/dist/components/NumberInput/NumberInput.d.ts +3 -3
- package/dist/components/PhoneInput/PhoneInput.d.ts +3 -3
- package/dist/components/PhoneInput/PhoneInput.stories.d.ts +2 -2
- package/dist/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.d.ts +3 -2
- package/dist/components/PhoneInput/types.d.ts +2 -0
- package/dist/components/SearchInput/SearchInput.d.ts +1 -3
- package/dist/components/SearchInput/SearchInput.stories.d.ts +11 -1
- package/dist/components/SearchInput/SearchInput.styles.d.ts +1 -1
- package/dist/components/Select/Select.d.ts +5 -5
- package/dist/components/Select/Select.styles.d.ts +17 -16
- package/dist/components/Select/types.d.ts +3 -0
- package/dist/components/SmartInput/SmartInput.d.ts +3 -3
- package/dist/components/TextArea/TextArea.d.ts +5 -14
- package/dist/components/TextArea/TextArea.styles.d.ts +8 -2
- package/dist/components/WithPopup/WithPopup.d.ts +3 -10
- package/dist/components/WithPopup/WithPopup.styles.d.ts +1 -1
- package/dist/components/WithPopup/types.d.ts +0 -3
- package/dist/components/WithTooltip/WithTooltip.styles.d.ts +0 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/theme/common.d.ts +13 -5
- package/dist/theme/types.d.ts +4 -2
- package/dist/true-react-common-ui-kit.js +1184 -1029
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +1164 -1009
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/dist/types.d.ts +2 -1
- package/package.json +1 -1
- package/src/components/Button/Button.stories.tsx +4 -8
- package/src/components/CloseButton/CloseButton.tsx +4 -4
- package/src/components/ControlGroup/ControlGroup.stories.tsx +40 -0
- package/src/components/ControlGroup/ControlGroup.styles.ts +46 -0
- package/src/components/ControlGroup/ControlGroup.tsx +55 -0
- package/src/components/ControlGroup/index.ts +2 -0
- package/src/components/ControlWrapper/ControlWrapper.stories.tsx +45 -0
- package/src/components/ControlWrapper/ControlWrapper.styles.ts +185 -0
- package/src/components/ControlWrapper/ControlWrapper.tsx +151 -0
- package/src/components/ControlWrapper/index.ts +2 -0
- package/src/components/DateInput/DateInput.styles.ts +2 -7
- package/src/components/DateInput/DateInput.tsx +4 -4
- package/src/components/DatePicker/DatePicker.tsx +3 -3
- package/src/components/DatePicker/components/DatePickerHeader/DatePickerHeader.styles.ts +7 -41
- package/src/components/DatePicker/components/DatePickerHeader/DatePickerHeader.tsx +18 -26
- package/src/components/DatePicker/types.ts +1 -1
- package/src/components/FileItem/FileItem.stories.tsx +4 -8
- package/src/components/FiltersPane/FiltersPane.stories.tsx +0 -4
- package/src/components/FiltersPane/components/FilterInterval/FilterInterval.styles.ts +9 -7
- package/src/components/FiltersPane/components/FilterInterval/FilterInterval.tsx +1 -8
- package/src/components/FiltersPane/components/FilterSelect/FilterSelect.styles.ts +7 -5
- package/src/components/FiltersPane/components/FilterWithDates/FilterWithDates.tsx +7 -9
- package/src/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.styles.ts +12 -17
- package/src/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.tsx +2 -5
- package/src/components/IconButton/IconButton.stories.tsx +5 -5
- package/src/components/IncrementInput/IncrementInput.stories.tsx +0 -2
- package/src/components/IncrementInput/IncrementInput.styles.ts +9 -9
- package/src/components/Input/Input.stories.tsx +17 -25
- package/src/components/Input/Input.styles.ts +50 -260
- package/src/components/Input/Input.tsx +22 -285
- package/src/components/Input/InputBase.tsx +250 -0
- package/src/components/Input/index.ts +1 -0
- package/src/components/Input/types.ts +3 -32
- package/src/components/MultiSelectList/MultiSelectList.styles.ts +7 -5
- package/src/components/Notification/Notification.stories.tsx +2 -6
- package/src/components/NumberInput/NumberInput.stories.tsx +0 -2
- package/src/components/NumberInput/NumberInput.tsx +4 -7
- package/src/components/PhoneInput/PhoneInput.stories.tsx +6 -10
- package/src/components/PhoneInput/PhoneInput.styles.ts +13 -10
- package/src/components/PhoneInput/PhoneInput.tsx +9 -12
- package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.styles.ts +6 -4
- package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.tsx +6 -6
- package/src/components/PhoneInput/types.ts +4 -0
- package/src/components/SearchInput/SearchInput.stories.tsx +1 -0
- package/src/components/SearchInput/SearchInput.styles.ts +17 -27
- package/src/components/SearchInput/SearchInput.tsx +13 -34
- package/src/components/Select/CustomSelect.stories.tsx +6 -9
- package/src/components/Select/MultiSelect.stories.tsx +4 -12
- package/src/components/Select/Select.stories.tsx +3 -11
- package/src/components/Select/Select.styles.ts +28 -42
- package/src/components/Select/Select.tsx +73 -81
- package/src/components/Select/types.ts +5 -0
- package/src/components/SmartInput/SmartInput.stories.tsx +0 -1
- package/src/components/SmartInput/SmartInput.tsx +4 -4
- package/src/components/Status/Status.stories.tsx +3 -7
- package/src/components/TextArea/TextArea.stories.tsx +1 -3
- package/src/components/TextArea/TextArea.styles.ts +27 -126
- package/src/components/TextArea/TextArea.tsx +86 -112
- package/src/components/TextButton/TextButton.stories.tsx +4 -8
- package/src/components/WithPopup/WithPopup.stories.tsx +0 -1
- package/src/components/WithPopup/WithPopup.styles.ts +0 -2
- package/src/components/WithPopup/WithPopup.tsx +10 -36
- package/src/components/WithPopup/types.ts +0 -7
- package/src/components/WithTooltip/WithTooltip.styles.ts +0 -6
- package/src/components/WithTooltip/WithTooltip.tsx +2 -7
- package/src/components/index.ts +2 -0
- package/src/theme/common.ts +15 -6
- package/src/theme/types.ts +8 -4
- package/src/types.ts +3 -0
- package/dist/components/Input/constants.d.ts +0 -1
- package/dist/components/WithPopup/helpers.d.ts +0 -2
- package/src/components/Input/constants.ts +0 -1
- package/src/components/WithPopup/helpers.ts +0 -9
|
@@ -964,7 +964,17 @@
|
|
|
964
964
|
BORDER_RADIUS_STD: 8,
|
|
965
965
|
BORDER_RADIUS_SMALL: 6,
|
|
966
966
|
BORDER_RADIUS_EXTRA_SMALL: 4,
|
|
967
|
-
|
|
967
|
+
CONTROL: {
|
|
968
|
+
HEIGHT: 48,
|
|
969
|
+
PADDING: 16,
|
|
970
|
+
ICON_SIZE: 24,
|
|
971
|
+
ICON_INNER_SIZE: 24,
|
|
972
|
+
ICON_GAP: 8
|
|
973
|
+
},
|
|
974
|
+
Z_INDEX: {
|
|
975
|
+
CONTROL_INVALID: 1,
|
|
976
|
+
CONTROL_FOCUS: 2
|
|
977
|
+
}
|
|
968
978
|
};
|
|
969
979
|
var helpers = {
|
|
970
980
|
withAngle: function() {
|
|
@@ -1035,11 +1045,9 @@
|
|
|
1035
1045
|
overflow: "auto",
|
|
1036
1046
|
// Chromium
|
|
1037
1047
|
"@supports selector(::-webkit-scrollbar)": {
|
|
1038
|
-
"--webkit-scrollbar-width": "10px",
|
|
1039
|
-
"--webkit-scrollbar-height": "10px",
|
|
1040
1048
|
"&::-webkit-scrollbar": {
|
|
1041
|
-
|
|
1042
|
-
|
|
1049
|
+
height: 10,
|
|
1050
|
+
width: 10,
|
|
1043
1051
|
"&-thumb": {
|
|
1044
1052
|
width: 6,
|
|
1045
1053
|
minHeight: 30,
|
|
@@ -1862,7 +1870,7 @@
|
|
|
1862
1870
|
baseMerge(object, source, srcIndex);
|
|
1863
1871
|
});
|
|
1864
1872
|
const merge$1 = merge;
|
|
1865
|
-
function _define_property$
|
|
1873
|
+
function _define_property$18(obj, key, value) {
|
|
1866
1874
|
if (key in obj) {
|
|
1867
1875
|
Object.defineProperty(obj, key, {
|
|
1868
1876
|
value,
|
|
@@ -1875,7 +1883,7 @@
|
|
|
1875
1883
|
}
|
|
1876
1884
|
return obj;
|
|
1877
1885
|
}
|
|
1878
|
-
function _object_spread$
|
|
1886
|
+
function _object_spread$16(target) {
|
|
1879
1887
|
for (var i = 1; i < arguments.length; i++) {
|
|
1880
1888
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1881
1889
|
var ownKeys2 = Object.keys(source);
|
|
@@ -1885,12 +1893,12 @@
|
|
|
1885
1893
|
}));
|
|
1886
1894
|
}
|
|
1887
1895
|
ownKeys2.forEach(function(key) {
|
|
1888
|
-
_define_property$
|
|
1896
|
+
_define_property$18(target, key, source[key]);
|
|
1889
1897
|
});
|
|
1890
1898
|
}
|
|
1891
1899
|
return target;
|
|
1892
1900
|
}
|
|
1893
|
-
function ownKeys$
|
|
1901
|
+
function ownKeys$X(object, enumerableOnly) {
|
|
1894
1902
|
var keys2 = Object.keys(object);
|
|
1895
1903
|
if (Object.getOwnPropertySymbols) {
|
|
1896
1904
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -1903,12 +1911,12 @@
|
|
|
1903
1911
|
}
|
|
1904
1912
|
return keys2;
|
|
1905
1913
|
}
|
|
1906
|
-
function _object_spread_props$
|
|
1914
|
+
function _object_spread_props$X(target, source) {
|
|
1907
1915
|
source = source != null ? source : {};
|
|
1908
1916
|
if (Object.getOwnPropertyDescriptors) {
|
|
1909
1917
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1910
1918
|
} else {
|
|
1911
|
-
ownKeys$
|
|
1919
|
+
ownKeys$X(Object(source)).forEach(function(key) {
|
|
1912
1920
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1913
1921
|
});
|
|
1914
1922
|
}
|
|
@@ -1963,7 +1971,7 @@
|
|
|
1963
1971
|
return trueReactPlatformHelpers.mergeStyles(styles, trueReactPlatformHelpers.isNotEmpty(componentName) ? theme === null || theme === void 0 ? void 0 : (_theme_components = theme.components) === null || _theme_components === void 0 ? void 0 : _theme_components[componentName] : void 0, tweakStyles);
|
|
1964
1972
|
});
|
|
1965
1973
|
return function(data) {
|
|
1966
|
-
return useStyles2(trueReactPlatformHelpers.isNotEmpty(data) ? _object_spread_props$
|
|
1974
|
+
return useStyles2(trueReactPlatformHelpers.isNotEmpty(data) ? _object_spread_props$X(_object_spread$16({}, data), {
|
|
1967
1975
|
theme: cleanStyles(data.theme)
|
|
1968
1976
|
}) : data);
|
|
1969
1977
|
};
|
|
@@ -6497,7 +6505,7 @@
|
|
|
6497
6505
|
if (Array.isArray(arr))
|
|
6498
6506
|
return _array_like_to_array$n(arr);
|
|
6499
6507
|
}
|
|
6500
|
-
function _define_property$
|
|
6508
|
+
function _define_property$17(obj, key, value) {
|
|
6501
6509
|
if (key in obj) {
|
|
6502
6510
|
Object.defineProperty(obj, key, {
|
|
6503
6511
|
value,
|
|
@@ -6517,7 +6525,7 @@
|
|
|
6517
6525
|
function _non_iterable_spread$8() {
|
|
6518
6526
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6519
6527
|
}
|
|
6520
|
-
function _object_spread$
|
|
6528
|
+
function _object_spread$15(target) {
|
|
6521
6529
|
for (var i = 1; i < arguments.length; i++) {
|
|
6522
6530
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6523
6531
|
var ownKeys2 = Object.keys(source);
|
|
@@ -6527,7 +6535,7 @@
|
|
|
6527
6535
|
}));
|
|
6528
6536
|
}
|
|
6529
6537
|
ownKeys2.forEach(function(key) {
|
|
6530
|
-
_define_property$
|
|
6538
|
+
_define_property$17(target, key, source[key]);
|
|
6531
6539
|
});
|
|
6532
6540
|
}
|
|
6533
6541
|
return target;
|
|
@@ -6583,7 +6591,7 @@
|
|
|
6583
6591
|
},
|
|
6584
6592
|
{
|
|
6585
6593
|
name: "flip",
|
|
6586
|
-
options: _object_spread$
|
|
6594
|
+
options: _object_spread$15({
|
|
6587
6595
|
fallbackPlacements: canBeFlipped ? [
|
|
6588
6596
|
"bottom-start",
|
|
6589
6597
|
"top-start"
|
|
@@ -6732,7 +6740,7 @@
|
|
|
6732
6740
|
"file-xml": fileXml,
|
|
6733
6741
|
"file-zip": fileZip
|
|
6734
6742
|
};
|
|
6735
|
-
function _define_property$
|
|
6743
|
+
function _define_property$16(obj, key, value) {
|
|
6736
6744
|
if (key in obj) {
|
|
6737
6745
|
Object.defineProperty(obj, key, {
|
|
6738
6746
|
value,
|
|
@@ -6745,7 +6753,7 @@
|
|
|
6745
6753
|
}
|
|
6746
6754
|
return obj;
|
|
6747
6755
|
}
|
|
6748
|
-
function _object_spread$
|
|
6756
|
+
function _object_spread$14(target) {
|
|
6749
6757
|
for (var i = 1; i < arguments.length; i++) {
|
|
6750
6758
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6751
6759
|
var ownKeys2 = Object.keys(source);
|
|
@@ -6755,7 +6763,7 @@
|
|
|
6755
6763
|
}));
|
|
6756
6764
|
}
|
|
6757
6765
|
ownKeys2.forEach(function(key) {
|
|
6758
|
-
_define_property$
|
|
6766
|
+
_define_property$16(target, key, source[key]);
|
|
6759
6767
|
});
|
|
6760
6768
|
}
|
|
6761
6769
|
return target;
|
|
@@ -6764,7 +6772,7 @@
|
|
|
6764
6772
|
var type = param.type;
|
|
6765
6773
|
var theme = React.useContext(ThemeContext).theme;
|
|
6766
6774
|
var icons = React.useMemo(function() {
|
|
6767
|
-
return _object_spread$
|
|
6775
|
+
return _object_spread$14({}, complexIcons, theme.complexIcons);
|
|
6768
6776
|
}, []);
|
|
6769
6777
|
var ComplexIcon = icons[type];
|
|
6770
6778
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -7635,7 +7643,7 @@
|
|
|
7635
7643
|
]
|
|
7636
7644
|
}
|
|
7637
7645
|
});
|
|
7638
|
-
function _define_property$
|
|
7646
|
+
function _define_property$15(obj, key, value) {
|
|
7639
7647
|
if (key in obj) {
|
|
7640
7648
|
Object.defineProperty(obj, key, {
|
|
7641
7649
|
value,
|
|
@@ -7648,7 +7656,7 @@
|
|
|
7648
7656
|
}
|
|
7649
7657
|
return obj;
|
|
7650
7658
|
}
|
|
7651
|
-
function _object_spread$
|
|
7659
|
+
function _object_spread$13(target) {
|
|
7652
7660
|
for (var i = 1; i < arguments.length; i++) {
|
|
7653
7661
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7654
7662
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7658,12 +7666,12 @@
|
|
|
7658
7666
|
}));
|
|
7659
7667
|
}
|
|
7660
7668
|
ownKeys2.forEach(function(key) {
|
|
7661
|
-
_define_property$
|
|
7669
|
+
_define_property$15(target, key, source[key]);
|
|
7662
7670
|
});
|
|
7663
7671
|
}
|
|
7664
7672
|
return target;
|
|
7665
7673
|
}
|
|
7666
|
-
function ownKeys$
|
|
7674
|
+
function ownKeys$W(object, enumerableOnly) {
|
|
7667
7675
|
var keys2 = Object.keys(object);
|
|
7668
7676
|
if (Object.getOwnPropertySymbols) {
|
|
7669
7677
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7676,12 +7684,12 @@
|
|
|
7676
7684
|
}
|
|
7677
7685
|
return keys2;
|
|
7678
7686
|
}
|
|
7679
|
-
function _object_spread_props$
|
|
7687
|
+
function _object_spread_props$W(target, source) {
|
|
7680
7688
|
source = source != null ? source : {};
|
|
7681
7689
|
if (Object.getOwnPropertyDescriptors) {
|
|
7682
7690
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7683
7691
|
} else {
|
|
7684
|
-
ownKeys$
|
|
7692
|
+
ownKeys$W(Object(source)).forEach(function(key) {
|
|
7685
7693
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7686
7694
|
});
|
|
7687
7695
|
}
|
|
@@ -7692,7 +7700,7 @@
|
|
|
7692
7700
|
var _icon_paths, _icon_rects, _icon_circles;
|
|
7693
7701
|
var theme = React.useContext(ThemeContext).theme;
|
|
7694
7702
|
var icons = React.useMemo(function() {
|
|
7695
|
-
return _object_spread$
|
|
7703
|
+
return _object_spread$13({}, iconsList, theme.icons);
|
|
7696
7704
|
}, []);
|
|
7697
7705
|
var icon = icons[type];
|
|
7698
7706
|
var _icon_viewBox;
|
|
@@ -7705,7 +7713,7 @@
|
|
|
7705
7713
|
children: [
|
|
7706
7714
|
(_icon_paths = icon.paths) === null || _icon_paths === void 0 ? void 0 : _icon_paths.map(function(path, index) {
|
|
7707
7715
|
var _path_fill, _path_stroke;
|
|
7708
|
-
return jsx("path", _object_spread$
|
|
7716
|
+
return jsx("path", _object_spread$13({
|
|
7709
7717
|
fillRule: "evenodd",
|
|
7710
7718
|
clipRule: "evenodd",
|
|
7711
7719
|
fill: (_path_fill = path.fill) !== null && _path_fill !== void 0 ? _path_fill : "currentColor",
|
|
@@ -7713,25 +7721,25 @@
|
|
|
7713
7721
|
}, path), index);
|
|
7714
7722
|
}),
|
|
7715
7723
|
(_icon_rects = icon.rects) === null || _icon_rects === void 0 ? void 0 : _icon_rects.map(function(rect, index) {
|
|
7716
|
-
return /* @__PURE__ */ React.createElement("rect", _object_spread_props$
|
|
7724
|
+
return /* @__PURE__ */ React.createElement("rect", _object_spread_props$W(_object_spread$13({}, rect), {
|
|
7717
7725
|
key: index
|
|
7718
7726
|
}));
|
|
7719
7727
|
}),
|
|
7720
7728
|
(_icon_circles = icon.circles) === null || _icon_circles === void 0 ? void 0 : _icon_circles.map(function(circle, index) {
|
|
7721
|
-
return /* @__PURE__ */ React.createElement("circle", _object_spread_props$
|
|
7729
|
+
return /* @__PURE__ */ React.createElement("circle", _object_spread_props$W(_object_spread$13({}, circle), {
|
|
7722
7730
|
key: index
|
|
7723
7731
|
}));
|
|
7724
7732
|
})
|
|
7725
7733
|
]
|
|
7726
7734
|
});
|
|
7727
7735
|
};
|
|
7728
|
-
var useStyles$
|
|
7736
|
+
var useStyles$X = createThemedStyles("Icon", {
|
|
7729
7737
|
root: {
|
|
7730
7738
|
display: "flex",
|
|
7731
7739
|
alignItems: "center"
|
|
7732
7740
|
}
|
|
7733
7741
|
});
|
|
7734
|
-
function _define_property$
|
|
7742
|
+
function _define_property$14(obj, key, value) {
|
|
7735
7743
|
if (key in obj) {
|
|
7736
7744
|
Object.defineProperty(obj, key, {
|
|
7737
7745
|
value,
|
|
@@ -7744,7 +7752,7 @@
|
|
|
7744
7752
|
}
|
|
7745
7753
|
return obj;
|
|
7746
7754
|
}
|
|
7747
|
-
function _object_spread
|
|
7755
|
+
function _object_spread$12(target) {
|
|
7748
7756
|
for (var i = 1; i < arguments.length; i++) {
|
|
7749
7757
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7750
7758
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7754,12 +7762,12 @@
|
|
|
7754
7762
|
}));
|
|
7755
7763
|
}
|
|
7756
7764
|
ownKeys2.forEach(function(key) {
|
|
7757
|
-
_define_property$
|
|
7765
|
+
_define_property$14(target, key, source[key]);
|
|
7758
7766
|
});
|
|
7759
7767
|
}
|
|
7760
7768
|
return target;
|
|
7761
7769
|
}
|
|
7762
|
-
function ownKeys$
|
|
7770
|
+
function ownKeys$V(object, enumerableOnly) {
|
|
7763
7771
|
var keys2 = Object.keys(object);
|
|
7764
7772
|
if (Object.getOwnPropertySymbols) {
|
|
7765
7773
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7772,12 +7780,12 @@
|
|
|
7772
7780
|
}
|
|
7773
7781
|
return keys2;
|
|
7774
7782
|
}
|
|
7775
|
-
function _object_spread_props$
|
|
7783
|
+
function _object_spread_props$V(target, source) {
|
|
7776
7784
|
source = source != null ? source : {};
|
|
7777
7785
|
if (Object.getOwnPropertyDescriptors) {
|
|
7778
7786
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7779
7787
|
} else {
|
|
7780
|
-
ownKeys$
|
|
7788
|
+
ownKeys$V(Object(source)).forEach(function(key) {
|
|
7781
7789
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7782
7790
|
});
|
|
7783
7791
|
}
|
|
@@ -7785,10 +7793,10 @@
|
|
|
7785
7793
|
}
|
|
7786
7794
|
var Icon = function(param) {
|
|
7787
7795
|
var type = param.type, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
7788
|
-
var classes = useStyles$
|
|
7796
|
+
var classes = useStyles$X({
|
|
7789
7797
|
theme: tweakStyles
|
|
7790
7798
|
});
|
|
7791
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
7799
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$V(_object_spread$12({
|
|
7792
7800
|
className: classes.root
|
|
7793
7801
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
7794
7802
|
children: isComplexIcon(type) ? /* @__PURE__ */ jsx(ComplexIconBoilerplate, {
|
|
@@ -7804,15 +7812,7 @@
|
|
|
7804
7812
|
}) : icon;
|
|
7805
7813
|
};
|
|
7806
7814
|
var DEFAULT_OFFSET = 6;
|
|
7807
|
-
var
|
|
7808
|
-
apply: function apply2(param) {
|
|
7809
|
-
var rects = param.rects, elements = param.elements;
|
|
7810
|
-
Object.assign(elements.floating.style, {
|
|
7811
|
-
minWidth: "".concat(rects.reference.width, "px")
|
|
7812
|
-
});
|
|
7813
|
-
}
|
|
7814
|
-
});
|
|
7815
|
-
var useStyles$U = createThemedStyles("WithPopup", {
|
|
7815
|
+
var useStyles$W = createThemedStyles("WithPopup", {
|
|
7816
7816
|
trigger: {
|
|
7817
7817
|
width: "fit-content"
|
|
7818
7818
|
},
|
|
@@ -7827,7 +7827,6 @@
|
|
|
7827
7827
|
zIndex: 5,
|
|
7828
7828
|
outline: "none"
|
|
7829
7829
|
},
|
|
7830
|
-
arrow: {},
|
|
7831
7830
|
animationEnd: {},
|
|
7832
7831
|
animationStart: {},
|
|
7833
7832
|
"dropdown-initial": {
|
|
@@ -7859,7 +7858,7 @@
|
|
|
7859
7858
|
if (Array.isArray(arr))
|
|
7860
7859
|
return _array_like_to_array$m(arr);
|
|
7861
7860
|
}
|
|
7862
|
-
function _define_property$
|
|
7861
|
+
function _define_property$13(obj, key, value) {
|
|
7863
7862
|
if (key in obj) {
|
|
7864
7863
|
Object.defineProperty(obj, key, {
|
|
7865
7864
|
value,
|
|
@@ -7910,7 +7909,7 @@
|
|
|
7910
7909
|
function _non_iterable_spread$7() {
|
|
7911
7910
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7912
7911
|
}
|
|
7913
|
-
function _object_spread$
|
|
7912
|
+
function _object_spread$11(target) {
|
|
7914
7913
|
for (var i = 1; i < arguments.length; i++) {
|
|
7915
7914
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7916
7915
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7920,12 +7919,12 @@
|
|
|
7920
7919
|
}));
|
|
7921
7920
|
}
|
|
7922
7921
|
ownKeys2.forEach(function(key) {
|
|
7923
|
-
_define_property$
|
|
7922
|
+
_define_property$13(target, key, source[key]);
|
|
7924
7923
|
});
|
|
7925
7924
|
}
|
|
7926
7925
|
return target;
|
|
7927
7926
|
}
|
|
7928
|
-
function ownKeys$
|
|
7927
|
+
function ownKeys$U(object, enumerableOnly) {
|
|
7929
7928
|
var keys2 = Object.keys(object);
|
|
7930
7929
|
if (Object.getOwnPropertySymbols) {
|
|
7931
7930
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7938,12 +7937,12 @@
|
|
|
7938
7937
|
}
|
|
7939
7938
|
return keys2;
|
|
7940
7939
|
}
|
|
7941
|
-
function _object_spread_props$
|
|
7940
|
+
function _object_spread_props$U(target, source) {
|
|
7942
7941
|
source = source != null ? source : {};
|
|
7943
7942
|
if (Object.getOwnPropertyDescriptors) {
|
|
7944
7943
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7945
7944
|
} else {
|
|
7946
|
-
ownKeys$
|
|
7945
|
+
ownKeys$U(Object(source)).forEach(function(key) {
|
|
7947
7946
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7948
7947
|
});
|
|
7949
7948
|
}
|
|
@@ -7969,12 +7968,11 @@
|
|
|
7969
7968
|
return _array_like_to_array$m(o, minLen);
|
|
7970
7969
|
}
|
|
7971
7970
|
var WithPopup = function(param) {
|
|
7972
|
-
var trigger = param.trigger, children = param.children, _param_middlewares = param.middlewares, middlewares = _param_middlewares === void 0 ? [] : _param_middlewares, _param_eventType = param.eventType, eventType = _param_eventType === void 0 ? "click" : _param_eventType, _param_placement = param.placement, placement = _param_placement === void 0 ? eventType === "click" ? "bottom-end" : "top" : _param_placement, _param_hoverDelay = param.hoverDelay, hoverDelay = _param_hoverDelay === void 0 ? 0 : _param_hoverDelay, _param_popupOffset = param.popupOffset, popupOffset = _param_popupOffset === void 0 ? DEFAULT_OFFSET : _param_popupOffset,
|
|
7973
|
-
var classes = useStyles$
|
|
7971
|
+
var trigger = param.trigger, children = param.children, _param_middlewares = param.middlewares, middlewares = _param_middlewares === void 0 ? [] : _param_middlewares, _param_eventType = param.eventType, eventType = _param_eventType === void 0 ? "click" : _param_eventType, _param_placement = param.placement, placement = _param_placement === void 0 ? eventType === "click" ? "bottom-end" : "top" : _param_placement, _param_hoverDelay = param.hoverDelay, hoverDelay = _param_hoverDelay === void 0 ? 0 : _param_hoverDelay, _param_popupOffset = param.popupOffset, popupOffset = _param_popupOffset === void 0 ? DEFAULT_OFFSET : _param_popupOffset, _param_shouldStopPropagation = param.shouldStopPropagation, shouldStopPropagation = _param_shouldStopPropagation === void 0 ? true : _param_shouldStopPropagation, _param_shouldHideOnScroll = param.shouldHideOnScroll, shouldHideOnScroll = _param_shouldHideOnScroll === void 0 ? false : _param_shouldHideOnScroll, _param_shouldRenderInBody = param.shouldRenderInBody, shouldRenderInBody = _param_shouldRenderInBody === void 0 ? true : _param_shouldRenderInBody, _param_canBeFlipped = param.canBeFlipped, canBeFlipped = _param_canBeFlipped === void 0 ? true : _param_canBeFlipped, _param_isTriggerWrapped = param.isTriggerWrapped, isTriggerWrapped = _param_isTriggerWrapped === void 0 ? eventType === "hover" : _param_isTriggerWrapped, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, tweakStyles = param.tweakStyles, data = param.data, testId = param.testId, onToggle = param.onToggle;
|
|
7972
|
+
var classes = useStyles$W({
|
|
7974
7973
|
theme: tweakStyles
|
|
7975
7974
|
});
|
|
7976
7975
|
var _useState = _sliced_to_array$m(React.useState(false), 2), isOpen = _useState[0], setIsOpen = _useState[1];
|
|
7977
|
-
var arrowRef = React.useRef(null);
|
|
7978
7976
|
var handleToggle = function(isActive, event) {
|
|
7979
7977
|
event === null || event === void 0 ? void 0 : event.stopPropagation();
|
|
7980
7978
|
if (!isDisabled) {
|
|
@@ -7991,13 +7989,8 @@
|
|
|
7991
7989
|
react.offset(popupOffset),
|
|
7992
7990
|
canBeFlipped && react.flip({
|
|
7993
7991
|
fallbackAxisSideDirection: "start"
|
|
7994
|
-
}),
|
|
7995
|
-
isMinWidthSameAsTrigger && minWidthRelativeToTrigger
|
|
7996
|
-
].concat(_to_consumable_array$7(middlewares), [
|
|
7997
|
-
shouldShowArrow && react.arrow({
|
|
7998
|
-
element: arrowRef
|
|
7999
7992
|
})
|
|
8000
|
-
]),
|
|
7993
|
+
].concat(_to_consumable_array$7(middlewares)),
|
|
8001
7994
|
whileElementsMounted: react.autoUpdate,
|
|
8002
7995
|
placement,
|
|
8003
7996
|
onOpenChange: handleToggle
|
|
@@ -8031,17 +8024,17 @@
|
|
|
8031
8024
|
close: 500
|
|
8032
8025
|
}
|
|
8033
8026
|
}), isMounted = _useTransitionStatus.isMounted, status = _useTransitionStatus.status;
|
|
8034
|
-
var referenceProps = getReferenceProps(_object_spread$
|
|
8027
|
+
var referenceProps = getReferenceProps(_object_spread$11({
|
|
8035
8028
|
ref: refs.setReference
|
|
8036
8029
|
}, shouldStopPropagation && {
|
|
8037
8030
|
onClick: trueReactPlatformHelpers.stopPropagation
|
|
8038
8031
|
}));
|
|
8039
8032
|
var triggerElement = trueReactPlatformHelpers.applyAction(trigger, {
|
|
8040
8033
|
referenceProps: !isTriggerWrapped ? referenceProps : void 0,
|
|
8041
|
-
triggerProps: _object_spread$
|
|
8034
|
+
triggerProps: _object_spread$11({
|
|
8042
8035
|
isActive: isOpen,
|
|
8043
8036
|
isDisabled
|
|
8044
|
-
}, !isTriggerWrapped && _object_spread$
|
|
8037
|
+
}, !isTriggerWrapped && _object_spread$11({
|
|
8045
8038
|
data,
|
|
8046
8039
|
testId
|
|
8047
8040
|
}, referenceProps))
|
|
@@ -8049,31 +8042,23 @@
|
|
|
8049
8042
|
var _obj2;
|
|
8050
8043
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
8051
8044
|
children: [
|
|
8052
|
-
isTriggerWrapped ? /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8053
|
-
className: clsx(classes.trigger, (_obj2 = {}, _define_property$
|
|
8054
|
-
}, referenceProps, trueReactPlatformHelpers.addDataAttributes(data
|
|
8045
|
+
isTriggerWrapped ? /* @__PURE__ */ jsx("div", _object_spread_props$U(_object_spread$11({
|
|
8046
|
+
className: clsx(classes.trigger, (_obj2 = {}, _define_property$13(_obj2, classes.clickable, eventType === "click"), _define_property$13(_obj2, classes.disabled, isDisabled), _define_property$13(_obj2, classes.active, isOpen), _obj2))
|
|
8047
|
+
}, referenceProps, trueReactPlatformHelpers.addDataTestId(testId), trueReactPlatformHelpers.addDataAttributes(data)), {
|
|
8055
8048
|
children: triggerElement
|
|
8056
8049
|
})) : triggerElement,
|
|
8057
8050
|
isMounted && /* @__PURE__ */ jsx(react.FloatingPortal, {
|
|
8058
|
-
root: shouldRenderInBody ?
|
|
8059
|
-
children: /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8060
|
-
ref: refs.setFloating,
|
|
8051
|
+
root: !shouldRenderInBody ? refs.reference.current : void 0,
|
|
8052
|
+
children: /* @__PURE__ */ jsx("div", _object_spread_props$U(_object_spread$11({
|
|
8061
8053
|
style: floatingStyles,
|
|
8062
|
-
className: classes.popup
|
|
8063
|
-
|
|
8064
|
-
|
|
8054
|
+
className: classes.popup,
|
|
8055
|
+
ref: refs.setFloating
|
|
8056
|
+
}, getFloatingProps()), {
|
|
8057
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
8065
8058
|
className: classes["dropdown-".concat(status)],
|
|
8066
|
-
children:
|
|
8067
|
-
|
|
8068
|
-
|
|
8069
|
-
context,
|
|
8070
|
-
className: classes.arrow
|
|
8071
|
-
})),
|
|
8072
|
-
trueReactPlatformHelpers.applyAction(children, {
|
|
8073
|
-
floatingContext: context,
|
|
8074
|
-
onClose: handleClose
|
|
8075
|
-
})
|
|
8076
|
-
]
|
|
8059
|
+
children: trueReactPlatformHelpers.applyAction(children, {
|
|
8060
|
+
onClose: handleClose
|
|
8061
|
+
})
|
|
8077
8062
|
})
|
|
8078
8063
|
}))
|
|
8079
8064
|
})
|
|
@@ -8083,7 +8068,7 @@
|
|
|
8083
8068
|
var ITEM_HORIZONTAL_PADDING = 16;
|
|
8084
8069
|
var ICON_SIZE$1 = 20;
|
|
8085
8070
|
var ICON_GAP = 12;
|
|
8086
|
-
var useStyles$
|
|
8071
|
+
var useStyles$V = createThemedStyles("ListItem", {
|
|
8087
8072
|
root: {
|
|
8088
8073
|
display: "flex",
|
|
8089
8074
|
alignItems: "center",
|
|
@@ -8122,7 +8107,7 @@
|
|
|
8122
8107
|
flexGrow: 1
|
|
8123
8108
|
}
|
|
8124
8109
|
});
|
|
8125
|
-
function _define_property
|
|
8110
|
+
function _define_property$12(obj, key, value) {
|
|
8126
8111
|
if (key in obj) {
|
|
8127
8112
|
Object.defineProperty(obj, key, {
|
|
8128
8113
|
value,
|
|
@@ -8135,7 +8120,7 @@
|
|
|
8135
8120
|
}
|
|
8136
8121
|
return obj;
|
|
8137
8122
|
}
|
|
8138
|
-
function _object_spread$
|
|
8123
|
+
function _object_spread$10(target) {
|
|
8139
8124
|
for (var i = 1; i < arguments.length; i++) {
|
|
8140
8125
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8141
8126
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8145,12 +8130,12 @@
|
|
|
8145
8130
|
}));
|
|
8146
8131
|
}
|
|
8147
8132
|
ownKeys2.forEach(function(key) {
|
|
8148
|
-
_define_property
|
|
8133
|
+
_define_property$12(target, key, source[key]);
|
|
8149
8134
|
});
|
|
8150
8135
|
}
|
|
8151
8136
|
return target;
|
|
8152
8137
|
}
|
|
8153
|
-
function ownKeys$
|
|
8138
|
+
function ownKeys$T(object, enumerableOnly) {
|
|
8154
8139
|
var keys2 = Object.keys(object);
|
|
8155
8140
|
if (Object.getOwnPropertySymbols) {
|
|
8156
8141
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8163,12 +8148,12 @@
|
|
|
8163
8148
|
}
|
|
8164
8149
|
return keys2;
|
|
8165
8150
|
}
|
|
8166
|
-
function _object_spread_props$
|
|
8151
|
+
function _object_spread_props$T(target, source) {
|
|
8167
8152
|
source = source != null ? source : {};
|
|
8168
8153
|
if (Object.getOwnPropertyDescriptors) {
|
|
8169
8154
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8170
8155
|
} else {
|
|
8171
|
-
ownKeys$
|
|
8156
|
+
ownKeys$T(Object(source)).forEach(function(key) {
|
|
8172
8157
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8173
8158
|
});
|
|
8174
8159
|
}
|
|
@@ -8176,7 +8161,7 @@
|
|
|
8176
8161
|
}
|
|
8177
8162
|
var ListItem = function(param) {
|
|
8178
8163
|
var icon = param.icon, item = param.item, nestedItems = param.nestedItems, isDisabled = param.disabled, isFocused = param.isFocused, shouldDrawSpacerAbove = param.shouldDrawSpacerAbove, shouldDrawSpacerBelow = param.shouldDrawSpacerBelow, testId = param.testId, tweakStyles = param.tweakStyles, _param_view = param.view, view = _param_view === void 0 ? "default" : _param_view, withIconGap = param.withIconGap, data = param.data, onClick = param.onClick;
|
|
8179
|
-
var classes = useStyles$
|
|
8164
|
+
var classes = useStyles$V({
|
|
8180
8165
|
theme: tweakStyles
|
|
8181
8166
|
});
|
|
8182
8167
|
var _obj2;
|
|
@@ -8185,9 +8170,9 @@
|
|
|
8185
8170
|
shouldDrawSpacerAbove && /* @__PURE__ */ jsx("div", {
|
|
8186
8171
|
className: classes.spacer
|
|
8187
8172
|
}),
|
|
8188
|
-
/* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
8189
|
-
className: clsx(classes.root, classes[view], (_obj2 = {}, _define_property
|
|
8190
|
-
}, trueReactPlatformHelpers.addClickHandler(onClick, !isDisabled), trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(_object_spread_props$
|
|
8173
|
+
/* @__PURE__ */ jsxs("div", _object_spread_props$T(_object_spread$10({
|
|
8174
|
+
className: clsx(classes.root, classes[view], (_obj2 = {}, _define_property$12(_obj2, classes.disabledItem, isDisabled), _define_property$12(_obj2, classes.withIconGap, withIconGap), _define_property$12(_obj2, classes.focused, isFocused), _obj2))
|
|
8175
|
+
}, trueReactPlatformHelpers.addClickHandler(onClick, !isDisabled), trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(_object_spread_props$T(_object_spread$10({}, data), {
|
|
8191
8176
|
disabled: isDisabled ? true : void 0
|
|
8192
8177
|
}))), {
|
|
8193
8178
|
children: [
|
|
@@ -8213,7 +8198,7 @@
|
|
|
8213
8198
|
]
|
|
8214
8199
|
});
|
|
8215
8200
|
};
|
|
8216
|
-
var useStyles$
|
|
8201
|
+
var useStyles$U = createThemedStyles("List", {
|
|
8217
8202
|
root: {
|
|
8218
8203
|
minWidth: 180,
|
|
8219
8204
|
backgroundColor: colors.CLASSIC_WHITE,
|
|
@@ -8229,12 +8214,12 @@
|
|
|
8229
8214
|
paddingLeft: 4
|
|
8230
8215
|
}
|
|
8231
8216
|
});
|
|
8232
|
-
var withPopupStyles
|
|
8217
|
+
var withPopupStyles = {
|
|
8233
8218
|
trigger: {
|
|
8234
8219
|
width: "100%"
|
|
8235
8220
|
}
|
|
8236
8221
|
};
|
|
8237
|
-
function _define_property$
|
|
8222
|
+
function _define_property$11(obj, key, value) {
|
|
8238
8223
|
if (key in obj) {
|
|
8239
8224
|
Object.defineProperty(obj, key, {
|
|
8240
8225
|
value,
|
|
@@ -8247,7 +8232,7 @@
|
|
|
8247
8232
|
}
|
|
8248
8233
|
return obj;
|
|
8249
8234
|
}
|
|
8250
|
-
function _object_spread
|
|
8235
|
+
function _object_spread$$(target) {
|
|
8251
8236
|
for (var i = 1; i < arguments.length; i++) {
|
|
8252
8237
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8253
8238
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8257,12 +8242,12 @@
|
|
|
8257
8242
|
}));
|
|
8258
8243
|
}
|
|
8259
8244
|
ownKeys2.forEach(function(key) {
|
|
8260
|
-
_define_property$
|
|
8245
|
+
_define_property$11(target, key, source[key]);
|
|
8261
8246
|
});
|
|
8262
8247
|
}
|
|
8263
8248
|
return target;
|
|
8264
8249
|
}
|
|
8265
|
-
function ownKeys$
|
|
8250
|
+
function ownKeys$S(object, enumerableOnly) {
|
|
8266
8251
|
var keys2 = Object.keys(object);
|
|
8267
8252
|
if (Object.getOwnPropertySymbols) {
|
|
8268
8253
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8275,12 +8260,12 @@
|
|
|
8275
8260
|
}
|
|
8276
8261
|
return keys2;
|
|
8277
8262
|
}
|
|
8278
|
-
function _object_spread_props$
|
|
8263
|
+
function _object_spread_props$S(target, source) {
|
|
8279
8264
|
source = source != null ? source : {};
|
|
8280
8265
|
if (Object.getOwnPropertyDescriptors) {
|
|
8281
8266
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8282
8267
|
} else {
|
|
8283
|
-
ownKeys$
|
|
8268
|
+
ownKeys$S(Object(source)).forEach(function(key) {
|
|
8284
8269
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8285
8270
|
});
|
|
8286
8271
|
}
|
|
@@ -8288,7 +8273,7 @@
|
|
|
8288
8273
|
}
|
|
8289
8274
|
var List = function(param) {
|
|
8290
8275
|
var items = param.items, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles, onClick = param.onClick;
|
|
8291
|
-
var classes = useStyles$
|
|
8276
|
+
var classes = useStyles$U({
|
|
8292
8277
|
theme: tweakStyles
|
|
8293
8278
|
});
|
|
8294
8279
|
var handleItemClick = function(event, param2) {
|
|
@@ -8298,11 +8283,11 @@
|
|
|
8298
8283
|
onClick === null || onClick === void 0 ? void 0 : onClick(event);
|
|
8299
8284
|
}
|
|
8300
8285
|
};
|
|
8301
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8286
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$S(_object_spread$$({
|
|
8302
8287
|
className: classes.root
|
|
8303
8288
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
8304
8289
|
children: items.map(function(item, i) {
|
|
8305
|
-
var itemProps = _object_spread_props$
|
|
8290
|
+
var itemProps = _object_spread_props$S(_object_spread$$({
|
|
8306
8291
|
testId: trueReactPlatformHelpers.getTestId(testId, "item-".concat(i))
|
|
8307
8292
|
}, item), {
|
|
8308
8293
|
shouldDrawSpacerAbove: item.shouldDrawSpacerAbove && i !== 0,
|
|
@@ -8314,13 +8299,13 @@
|
|
|
8314
8299
|
return /* @__PURE__ */ jsx(React.Fragment, {
|
|
8315
8300
|
children: trueReactPlatformHelpers.isArrayNotEmpty(item.nestedItems) ? /* @__PURE__ */ jsx(WithPopup, {
|
|
8316
8301
|
eventType: "hover",
|
|
8317
|
-
tweakStyles: withPopupStyles
|
|
8302
|
+
tweakStyles: withPopupStyles,
|
|
8318
8303
|
placement: "right-start",
|
|
8319
8304
|
popupOffset: 0,
|
|
8320
8305
|
shouldRenderInBody: false,
|
|
8321
8306
|
trigger: function(param2) {
|
|
8322
8307
|
var triggerProps = param2.triggerProps;
|
|
8323
|
-
return /* @__PURE__ */ jsx(ListItem, _object_spread_props$
|
|
8308
|
+
return /* @__PURE__ */ jsx(ListItem, _object_spread_props$S(_object_spread$$({}, itemProps), {
|
|
8324
8309
|
isFocused: triggerProps.isActive
|
|
8325
8310
|
}));
|
|
8326
8311
|
},
|
|
@@ -8331,13 +8316,13 @@
|
|
|
8331
8316
|
onClick
|
|
8332
8317
|
})
|
|
8333
8318
|
})
|
|
8334
|
-
}) : /* @__PURE__ */ jsx(ListItem, _object_spread
|
|
8319
|
+
}) : /* @__PURE__ */ jsx(ListItem, _object_spread$$({}, itemProps))
|
|
8335
8320
|
}, i);
|
|
8336
8321
|
})
|
|
8337
8322
|
}));
|
|
8338
8323
|
};
|
|
8339
8324
|
var ANIMATION_TIMEOUT = 150;
|
|
8340
|
-
function _define_property$
|
|
8325
|
+
function _define_property$10(obj, key, value) {
|
|
8341
8326
|
if (key in obj) {
|
|
8342
8327
|
Object.defineProperty(obj, key, {
|
|
8343
8328
|
value,
|
|
@@ -8350,7 +8335,7 @@
|
|
|
8350
8335
|
}
|
|
8351
8336
|
return obj;
|
|
8352
8337
|
}
|
|
8353
|
-
function _object_spread$
|
|
8338
|
+
function _object_spread$_(target) {
|
|
8354
8339
|
for (var i = 1; i < arguments.length; i++) {
|
|
8355
8340
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8356
8341
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8360,12 +8345,12 @@
|
|
|
8360
8345
|
}));
|
|
8361
8346
|
}
|
|
8362
8347
|
ownKeys2.forEach(function(key) {
|
|
8363
|
-
_define_property$
|
|
8348
|
+
_define_property$10(target, key, source[key]);
|
|
8364
8349
|
});
|
|
8365
8350
|
}
|
|
8366
8351
|
return target;
|
|
8367
8352
|
}
|
|
8368
|
-
var useStyles$
|
|
8353
|
+
var useStyles$T = createThemedStyles("AccountInfo", _object_spread$_({
|
|
8369
8354
|
root: {
|
|
8370
8355
|
display: "flex"
|
|
8371
8356
|
},
|
|
@@ -8419,7 +8404,7 @@
|
|
|
8419
8404
|
if (Array.isArray(arr))
|
|
8420
8405
|
return arr;
|
|
8421
8406
|
}
|
|
8422
|
-
function _define_property
|
|
8407
|
+
function _define_property$$(obj, key, value) {
|
|
8423
8408
|
if (key in obj) {
|
|
8424
8409
|
Object.defineProperty(obj, key, {
|
|
8425
8410
|
value,
|
|
@@ -8463,7 +8448,7 @@
|
|
|
8463
8448
|
function _non_iterable_rest$l() {
|
|
8464
8449
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8465
8450
|
}
|
|
8466
|
-
function _object_spread$
|
|
8451
|
+
function _object_spread$Z(target) {
|
|
8467
8452
|
for (var i = 1; i < arguments.length; i++) {
|
|
8468
8453
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8469
8454
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8473,12 +8458,12 @@
|
|
|
8473
8458
|
}));
|
|
8474
8459
|
}
|
|
8475
8460
|
ownKeys2.forEach(function(key) {
|
|
8476
|
-
_define_property
|
|
8461
|
+
_define_property$$(target, key, source[key]);
|
|
8477
8462
|
});
|
|
8478
8463
|
}
|
|
8479
8464
|
return target;
|
|
8480
8465
|
}
|
|
8481
|
-
function ownKeys$
|
|
8466
|
+
function ownKeys$R(object, enumerableOnly) {
|
|
8482
8467
|
var keys2 = Object.keys(object);
|
|
8483
8468
|
if (Object.getOwnPropertySymbols) {
|
|
8484
8469
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8491,12 +8476,12 @@
|
|
|
8491
8476
|
}
|
|
8492
8477
|
return keys2;
|
|
8493
8478
|
}
|
|
8494
|
-
function _object_spread_props$
|
|
8479
|
+
function _object_spread_props$R(target, source) {
|
|
8495
8480
|
source = source != null ? source : {};
|
|
8496
8481
|
if (Object.getOwnPropertyDescriptors) {
|
|
8497
8482
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8498
8483
|
} else {
|
|
8499
|
-
ownKeys$
|
|
8484
|
+
ownKeys$R(Object(source)).forEach(function(key) {
|
|
8500
8485
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8501
8486
|
});
|
|
8502
8487
|
}
|
|
@@ -8520,7 +8505,7 @@
|
|
|
8520
8505
|
}
|
|
8521
8506
|
var AccountInfo = function(param) {
|
|
8522
8507
|
var data = param.data, testId = param.testId, avatar = param.avatar, tweakStyles = param.tweakStyles, accountName = param.accountName, options = param.options;
|
|
8523
|
-
var classes = useStyles$
|
|
8508
|
+
var classes = useStyles$T({
|
|
8524
8509
|
theme: tweakStyles
|
|
8525
8510
|
});
|
|
8526
8511
|
var tweakListStyles = useTweakStyles({
|
|
@@ -8540,7 +8525,7 @@
|
|
|
8540
8525
|
useOnClickOutsideWithRef(dropdownRef, function() {
|
|
8541
8526
|
return setIsMenuOpen(false);
|
|
8542
8527
|
}, nameRef);
|
|
8543
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
8528
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$R(_object_spread$Z({
|
|
8544
8529
|
className: classes.root
|
|
8545
8530
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
8546
8531
|
children: [
|
|
@@ -8590,7 +8575,7 @@
|
|
|
8590
8575
|
]
|
|
8591
8576
|
}));
|
|
8592
8577
|
};
|
|
8593
|
-
var useStyles$
|
|
8578
|
+
var useStyles$S = createThemedStyles("AddButton", {
|
|
8594
8579
|
root: {
|
|
8595
8580
|
display: "flex",
|
|
8596
8581
|
alignItems: "center",
|
|
@@ -8616,7 +8601,7 @@
|
|
|
8616
8601
|
width: "100%"
|
|
8617
8602
|
}
|
|
8618
8603
|
});
|
|
8619
|
-
function _define_property$
|
|
8604
|
+
function _define_property$_(obj, key, value) {
|
|
8620
8605
|
if (key in obj) {
|
|
8621
8606
|
Object.defineProperty(obj, key, {
|
|
8622
8607
|
value,
|
|
@@ -8629,7 +8614,7 @@
|
|
|
8629
8614
|
}
|
|
8630
8615
|
return obj;
|
|
8631
8616
|
}
|
|
8632
|
-
function _object_spread$
|
|
8617
|
+
function _object_spread$Y(target) {
|
|
8633
8618
|
for (var i = 1; i < arguments.length; i++) {
|
|
8634
8619
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8635
8620
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8639,12 +8624,12 @@
|
|
|
8639
8624
|
}));
|
|
8640
8625
|
}
|
|
8641
8626
|
ownKeys2.forEach(function(key) {
|
|
8642
|
-
_define_property$
|
|
8627
|
+
_define_property$_(target, key, source[key]);
|
|
8643
8628
|
});
|
|
8644
8629
|
}
|
|
8645
8630
|
return target;
|
|
8646
8631
|
}
|
|
8647
|
-
function ownKeys$
|
|
8632
|
+
function ownKeys$Q(object, enumerableOnly) {
|
|
8648
8633
|
var keys2 = Object.keys(object);
|
|
8649
8634
|
if (Object.getOwnPropertySymbols) {
|
|
8650
8635
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8657,12 +8642,12 @@
|
|
|
8657
8642
|
}
|
|
8658
8643
|
return keys2;
|
|
8659
8644
|
}
|
|
8660
|
-
function _object_spread_props$
|
|
8645
|
+
function _object_spread_props$Q(target, source) {
|
|
8661
8646
|
source = source != null ? source : {};
|
|
8662
8647
|
if (Object.getOwnPropertyDescriptors) {
|
|
8663
8648
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8664
8649
|
} else {
|
|
8665
|
-
ownKeys$
|
|
8650
|
+
ownKeys$Q(Object(source)).forEach(function(key) {
|
|
8666
8651
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8667
8652
|
});
|
|
8668
8653
|
}
|
|
@@ -8670,10 +8655,10 @@
|
|
|
8670
8655
|
}
|
|
8671
8656
|
var AddButton = function(param) {
|
|
8672
8657
|
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;
|
|
8673
|
-
var classes = useStyles$
|
|
8658
|
+
var classes = useStyles$S({
|
|
8674
8659
|
theme: tweakStyles
|
|
8675
8660
|
});
|
|
8676
|
-
return /* @__PURE__ */ jsxs("button", _object_spread_props$
|
|
8661
|
+
return /* @__PURE__ */ jsxs("button", _object_spread_props$Q(_object_spread$Y({
|
|
8677
8662
|
type,
|
|
8678
8663
|
className: clsx(classes.root, isDisabled && classes.disabled, isFullWidth && classes.fullWidth),
|
|
8679
8664
|
onClick: !isDisabled ? onClick : void 0,
|
|
@@ -8692,7 +8677,7 @@
|
|
|
8692
8677
|
]
|
|
8693
8678
|
}));
|
|
8694
8679
|
};
|
|
8695
|
-
var useStyles$
|
|
8680
|
+
var useStyles$R = createThemedStyles("DotsPreloader", {
|
|
8696
8681
|
root: {
|
|
8697
8682
|
display: "flex",
|
|
8698
8683
|
gap: 4,
|
|
@@ -8738,7 +8723,7 @@
|
|
|
8738
8723
|
});
|
|
8739
8724
|
var DotsPreloader = function(param) {
|
|
8740
8725
|
var tweakStyles = param.tweakStyles;
|
|
8741
|
-
var classes = useStyles$
|
|
8726
|
+
var classes = useStyles$R({
|
|
8742
8727
|
theme: tweakStyles
|
|
8743
8728
|
});
|
|
8744
8729
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -8804,7 +8789,7 @@
|
|
|
8804
8789
|
]
|
|
8805
8790
|
});
|
|
8806
8791
|
};
|
|
8807
|
-
var useStyles$
|
|
8792
|
+
var useStyles$Q = createThemedStyles("SvgPreloader", {
|
|
8808
8793
|
root: {
|
|
8809
8794
|
display: "flex",
|
|
8810
8795
|
width: "100%",
|
|
@@ -8814,7 +8799,7 @@
|
|
|
8814
8799
|
var SvgPreloader = function(param) {
|
|
8815
8800
|
var _param_type = param.type, type = _param_type === void 0 ? "default" : _param_type, tweakStyles = param.tweakStyles;
|
|
8816
8801
|
var _theme_preloaders;
|
|
8817
|
-
var classes = useStyles$
|
|
8802
|
+
var classes = useStyles$Q({
|
|
8818
8803
|
theme: tweakStyles
|
|
8819
8804
|
});
|
|
8820
8805
|
var theme = React.useContext(ThemeContext).theme;
|
|
@@ -8828,7 +8813,7 @@
|
|
|
8828
8813
|
}
|
|
8829
8814
|
}) : /* @__PURE__ */ jsx(PreloaderIcon, {});
|
|
8830
8815
|
};
|
|
8831
|
-
var useStyles$
|
|
8816
|
+
var useStyles$P = createThemedStyles("ThemedPreloader", {
|
|
8832
8817
|
root: {
|
|
8833
8818
|
display: "flex"
|
|
8834
8819
|
},
|
|
@@ -8839,7 +8824,7 @@
|
|
|
8839
8824
|
color: "currentColor"
|
|
8840
8825
|
}
|
|
8841
8826
|
});
|
|
8842
|
-
function _define_property$
|
|
8827
|
+
function _define_property$Z(obj, key, value) {
|
|
8843
8828
|
if (key in obj) {
|
|
8844
8829
|
Object.defineProperty(obj, key, {
|
|
8845
8830
|
value,
|
|
@@ -8852,7 +8837,7 @@
|
|
|
8852
8837
|
}
|
|
8853
8838
|
return obj;
|
|
8854
8839
|
}
|
|
8855
|
-
function _object_spread$
|
|
8840
|
+
function _object_spread$X(target) {
|
|
8856
8841
|
for (var i = 1; i < arguments.length; i++) {
|
|
8857
8842
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8858
8843
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8862,12 +8847,12 @@
|
|
|
8862
8847
|
}));
|
|
8863
8848
|
}
|
|
8864
8849
|
ownKeys2.forEach(function(key) {
|
|
8865
|
-
_define_property$
|
|
8850
|
+
_define_property$Z(target, key, source[key]);
|
|
8866
8851
|
});
|
|
8867
8852
|
}
|
|
8868
8853
|
return target;
|
|
8869
8854
|
}
|
|
8870
|
-
function ownKeys$
|
|
8855
|
+
function ownKeys$P(object, enumerableOnly) {
|
|
8871
8856
|
var keys2 = Object.keys(object);
|
|
8872
8857
|
if (Object.getOwnPropertySymbols) {
|
|
8873
8858
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8880,12 +8865,12 @@
|
|
|
8880
8865
|
}
|
|
8881
8866
|
return keys2;
|
|
8882
8867
|
}
|
|
8883
|
-
function _object_spread_props$
|
|
8868
|
+
function _object_spread_props$P(target, source) {
|
|
8884
8869
|
source = source != null ? source : {};
|
|
8885
8870
|
if (Object.getOwnPropertyDescriptors) {
|
|
8886
8871
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8887
8872
|
} else {
|
|
8888
|
-
ownKeys$
|
|
8873
|
+
ownKeys$P(Object(source)).forEach(function(key) {
|
|
8889
8874
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8890
8875
|
});
|
|
8891
8876
|
}
|
|
@@ -8893,7 +8878,7 @@
|
|
|
8893
8878
|
}
|
|
8894
8879
|
var ThemedPreloader = function(param) {
|
|
8895
8880
|
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;
|
|
8896
|
-
var classes = useStyles$
|
|
8881
|
+
var classes = useStyles$P({
|
|
8897
8882
|
theme: tweakStyles
|
|
8898
8883
|
});
|
|
8899
8884
|
var tweakDotsPreloaderStyles = useTweakStyles({
|
|
@@ -8906,8 +8891,8 @@
|
|
|
8906
8891
|
className: "tweakSvgPreloader",
|
|
8907
8892
|
currentComponentName: "ThemedPreloader"
|
|
8908
8893
|
});
|
|
8909
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8910
|
-
className: clsx(classes.root, classes[type], _define_property$
|
|
8894
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$P(_object_spread$X({
|
|
8895
|
+
className: clsx(classes.root, classes[type], _define_property$Z({}, classes.currentColor, useCurrentColor))
|
|
8911
8896
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
8912
8897
|
children: type === "dots" ? /* @__PURE__ */ jsx(DotsPreloader, {
|
|
8913
8898
|
tweakStyles: tweakDotsPreloaderStyles
|
|
@@ -8917,7 +8902,7 @@
|
|
|
8917
8902
|
})
|
|
8918
8903
|
}));
|
|
8919
8904
|
};
|
|
8920
|
-
var useStyles$
|
|
8905
|
+
var useStyles$O = createThemedStyles("Button", {
|
|
8921
8906
|
root: {
|
|
8922
8907
|
display: "flex",
|
|
8923
8908
|
justifyContent: "center",
|
|
@@ -9088,7 +9073,7 @@
|
|
|
9088
9073
|
var getPreloaderStyles = function(size) {
|
|
9089
9074
|
return size === "s" || size === "m" ? dotsPreloaderStyles : void 0;
|
|
9090
9075
|
};
|
|
9091
|
-
function _define_property$
|
|
9076
|
+
function _define_property$Y(obj, key, value) {
|
|
9092
9077
|
if (key in obj) {
|
|
9093
9078
|
Object.defineProperty(obj, key, {
|
|
9094
9079
|
value,
|
|
@@ -9101,7 +9086,7 @@
|
|
|
9101
9086
|
}
|
|
9102
9087
|
return obj;
|
|
9103
9088
|
}
|
|
9104
|
-
function _object_spread$
|
|
9089
|
+
function _object_spread$W(target) {
|
|
9105
9090
|
for (var i = 1; i < arguments.length; i++) {
|
|
9106
9091
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9107
9092
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9111,12 +9096,12 @@
|
|
|
9111
9096
|
}));
|
|
9112
9097
|
}
|
|
9113
9098
|
ownKeys2.forEach(function(key) {
|
|
9114
|
-
_define_property$
|
|
9099
|
+
_define_property$Y(target, key, source[key]);
|
|
9115
9100
|
});
|
|
9116
9101
|
}
|
|
9117
9102
|
return target;
|
|
9118
9103
|
}
|
|
9119
|
-
function ownKeys$
|
|
9104
|
+
function ownKeys$O(object, enumerableOnly) {
|
|
9120
9105
|
var keys2 = Object.keys(object);
|
|
9121
9106
|
if (Object.getOwnPropertySymbols) {
|
|
9122
9107
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9129,21 +9114,21 @@
|
|
|
9129
9114
|
}
|
|
9130
9115
|
return keys2;
|
|
9131
9116
|
}
|
|
9132
|
-
function _object_spread_props$
|
|
9117
|
+
function _object_spread_props$O(target, source) {
|
|
9133
9118
|
source = source != null ? source : {};
|
|
9134
9119
|
if (Object.getOwnPropertyDescriptors) {
|
|
9135
9120
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9136
9121
|
} else {
|
|
9137
|
-
ownKeys$
|
|
9122
|
+
ownKeys$O(Object(source)).forEach(function(key) {
|
|
9138
9123
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9139
9124
|
});
|
|
9140
9125
|
}
|
|
9141
9126
|
return target;
|
|
9142
9127
|
}
|
|
9143
|
-
function _object_without_properties$
|
|
9128
|
+
function _object_without_properties$j(source, excluded) {
|
|
9144
9129
|
if (source == null)
|
|
9145
9130
|
return {};
|
|
9146
|
-
var target = _object_without_properties_loose$
|
|
9131
|
+
var target = _object_without_properties_loose$j(source, excluded);
|
|
9147
9132
|
var key, i;
|
|
9148
9133
|
if (Object.getOwnPropertySymbols) {
|
|
9149
9134
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -9158,7 +9143,7 @@
|
|
|
9158
9143
|
}
|
|
9159
9144
|
return target;
|
|
9160
9145
|
}
|
|
9161
|
-
function _object_without_properties_loose$
|
|
9146
|
+
function _object_without_properties_loose$j(source, excluded) {
|
|
9162
9147
|
if (source == null)
|
|
9163
9148
|
return {};
|
|
9164
9149
|
var target = {};
|
|
@@ -9173,7 +9158,7 @@
|
|
|
9173
9158
|
return target;
|
|
9174
9159
|
}
|
|
9175
9160
|
var Button = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
9176
|
-
var _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, children = _param.children, _param_size = _param.size, size = _param_size === void 0 ? "l" : _param_size, _param_view = _param.view, view = _param_view === void 0 ? "primary" : _param_view, _param_isFullWidth = _param.isFullWidth, isFullWidth = _param_isFullWidth === void 0 ? false : _param_isFullWidth, _param_isInline = _param.isInline, isInline = _param_isInline === void 0 ? false : _param_isInline, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_shouldSkipTabNavigation = _param.shouldSkipTabNavigation, shouldSkipTabNavigation = _param_shouldSkipTabNavigation === void 0 ? false : _param_shouldSkipTabNavigation, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, icon = _param.icon, _param_iconPosition = _param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "left" : _param_iconPosition, _param_preloaderType = _param.preloaderType, preloaderType = _param_preloaderType === void 0 ? "dots" : _param_preloaderType, interactions = _object_without_properties$
|
|
9161
|
+
var _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, children = _param.children, _param_size = _param.size, size = _param_size === void 0 ? "l" : _param_size, _param_view = _param.view, view = _param_view === void 0 ? "primary" : _param_view, _param_isFullWidth = _param.isFullWidth, isFullWidth = _param_isFullWidth === void 0 ? false : _param_isFullWidth, _param_isInline = _param.isInline, isInline = _param_isInline === void 0 ? false : _param_isInline, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_shouldSkipTabNavigation = _param.shouldSkipTabNavigation, shouldSkipTabNavigation = _param_shouldSkipTabNavigation === void 0 ? false : _param_shouldSkipTabNavigation, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, icon = _param.icon, _param_iconPosition = _param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "left" : _param_iconPosition, _param_preloaderType = _param.preloaderType, preloaderType = _param_preloaderType === void 0 ? "dots" : _param_preloaderType, interactions = _object_without_properties$j(_param, [
|
|
9177
9162
|
"type",
|
|
9178
9163
|
"children",
|
|
9179
9164
|
"size",
|
|
@@ -9191,7 +9176,7 @@
|
|
|
9191
9176
|
"iconPosition",
|
|
9192
9177
|
"preloaderType"
|
|
9193
9178
|
]);
|
|
9194
|
-
var classes = useStyles$
|
|
9179
|
+
var classes = useStyles$O({
|
|
9195
9180
|
theme: tweakStyles
|
|
9196
9181
|
});
|
|
9197
9182
|
var tweakPreloaderStyles = useTweakStyles({
|
|
@@ -9204,16 +9189,16 @@
|
|
|
9204
9189
|
var hasChildren = trueReactPlatformHelpers.isReactNodeNotEmpty(children);
|
|
9205
9190
|
var hasNoAction = isDisabled || isLoading;
|
|
9206
9191
|
var _obj2, _obj1;
|
|
9207
|
-
return /* @__PURE__ */ jsxs("button", _object_spread_props$
|
|
9192
|
+
return /* @__PURE__ */ jsxs("button", _object_spread_props$O(_object_spread$W({
|
|
9208
9193
|
ref,
|
|
9209
9194
|
type,
|
|
9210
|
-
className: clsx(classes.root, classes[size], classes[view], (_obj2 = {}, _define_property$
|
|
9195
|
+
className: clsx(classes.root, classes[size], classes[view], (_obj2 = {}, _define_property$Y(_obj2, classes.disabled, isDisabled), _define_property$Y(_obj2, classes.fullWidth, isFullWidth), _define_property$Y(_obj2, classes.inline, isInline), _define_property$Y(_obj2, classes.active, isActive), _define_property$Y(_obj2, classes.loading, isLoading), _define_property$Y(_obj2, classes.onlyIcon, hasIcon && !hasChildren), _obj2)),
|
|
9211
9196
|
tabIndex: shouldSkipTabNavigation ? -1 : void 0,
|
|
9212
9197
|
disabled: hasNoAction
|
|
9213
9198
|
}, interactions, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
9214
9199
|
children: [
|
|
9215
9200
|
/* @__PURE__ */ jsxs("span", {
|
|
9216
|
-
className: clsx(classes.content, (_obj1 = {}, _define_property$
|
|
9201
|
+
className: clsx(classes.content, (_obj1 = {}, _define_property$Y(_obj1, classes.iconFromRight, hasChildren && hasIcon && iconPosition === "right"), _define_property$Y(_obj1, classes.iconFromLeft, hasChildren && hasIcon && iconPosition === "left"), _obj1)),
|
|
9217
9202
|
children: [
|
|
9218
9203
|
hasIcon && /* @__PURE__ */ jsx("span", {
|
|
9219
9204
|
className: classes.icon,
|
|
@@ -9236,7 +9221,7 @@
|
|
|
9236
9221
|
]
|
|
9237
9222
|
}));
|
|
9238
9223
|
});
|
|
9239
|
-
var useStyles$
|
|
9224
|
+
var useStyles$N = createThemedStyles("Checkbox", {
|
|
9240
9225
|
root: {
|
|
9241
9226
|
cursor: "pointer",
|
|
9242
9227
|
display: "flex",
|
|
@@ -9274,7 +9259,7 @@
|
|
|
9274
9259
|
flexDirection: "row-reverse"
|
|
9275
9260
|
}
|
|
9276
9261
|
});
|
|
9277
|
-
function _define_property$
|
|
9262
|
+
function _define_property$X(obj, key, value) {
|
|
9278
9263
|
if (key in obj) {
|
|
9279
9264
|
Object.defineProperty(obj, key, {
|
|
9280
9265
|
value,
|
|
@@ -9287,7 +9272,7 @@
|
|
|
9287
9272
|
}
|
|
9288
9273
|
return obj;
|
|
9289
9274
|
}
|
|
9290
|
-
function _object_spread$
|
|
9275
|
+
function _object_spread$V(target) {
|
|
9291
9276
|
for (var i = 1; i < arguments.length; i++) {
|
|
9292
9277
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9293
9278
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9297,12 +9282,12 @@
|
|
|
9297
9282
|
}));
|
|
9298
9283
|
}
|
|
9299
9284
|
ownKeys2.forEach(function(key) {
|
|
9300
|
-
_define_property$
|
|
9285
|
+
_define_property$X(target, key, source[key]);
|
|
9301
9286
|
});
|
|
9302
9287
|
}
|
|
9303
9288
|
return target;
|
|
9304
9289
|
}
|
|
9305
|
-
function ownKeys$
|
|
9290
|
+
function ownKeys$N(object, enumerableOnly) {
|
|
9306
9291
|
var keys2 = Object.keys(object);
|
|
9307
9292
|
if (Object.getOwnPropertySymbols) {
|
|
9308
9293
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9315,12 +9300,12 @@
|
|
|
9315
9300
|
}
|
|
9316
9301
|
return keys2;
|
|
9317
9302
|
}
|
|
9318
|
-
function _object_spread_props$
|
|
9303
|
+
function _object_spread_props$N(target, source) {
|
|
9319
9304
|
source = source != null ? source : {};
|
|
9320
9305
|
if (Object.getOwnPropertyDescriptors) {
|
|
9321
9306
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9322
9307
|
} else {
|
|
9323
|
-
ownKeys$
|
|
9308
|
+
ownKeys$N(Object(source)).forEach(function(key) {
|
|
9324
9309
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9325
9310
|
});
|
|
9326
9311
|
}
|
|
@@ -9328,7 +9313,7 @@
|
|
|
9328
9313
|
}
|
|
9329
9314
|
function Checkbox(param) {
|
|
9330
9315
|
var value = param.value, children = param.children, _param_isChecked = param.isChecked, isChecked = _param_isChecked === void 0 ? false : _param_isChecked, _param_isSemiChecked = param.isSemiChecked, isSemiChecked = _param_isSemiChecked === void 0 ? false : _param_isSemiChecked, _param_isInvalid = param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isReadonly = param.isReadonly, isReadonly = _param_isReadonly === void 0 ? false : _param_isReadonly, _param_labelPosition = param.labelPosition, labelPosition = _param_labelPosition === void 0 ? "right" : _param_labelPosition, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles, onSelect = param.onSelect;
|
|
9331
|
-
var classes = useStyles$
|
|
9316
|
+
var classes = useStyles$N({
|
|
9332
9317
|
theme: tweakStyles
|
|
9333
9318
|
});
|
|
9334
9319
|
var hasAction = !isDisabled && !isReadonly;
|
|
@@ -9340,11 +9325,11 @@
|
|
|
9340
9325
|
}, event);
|
|
9341
9326
|
};
|
|
9342
9327
|
var _obj2;
|
|
9343
|
-
return /* @__PURE__ */ jsxs("label", _object_spread_props$
|
|
9344
|
-
className: clsx(classes.root, (_obj2 = {}, _define_property$
|
|
9328
|
+
return /* @__PURE__ */ jsxs("label", _object_spread_props$N(_object_spread$V({
|
|
9329
|
+
className: clsx(classes.root, (_obj2 = {}, _define_property$X(_obj2, classes.checked, isSelected), _define_property$X(_obj2, classes.invalid, isInvalid), _define_property$X(_obj2, classes.disabled, isDisabled), _define_property$X(_obj2, classes.labelPositionLeft, labelPosition === "left"), _obj2))
|
|
9345
9330
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
9346
9331
|
children: [
|
|
9347
|
-
/* @__PURE__ */ jsx("input", _object_spread$
|
|
9332
|
+
/* @__PURE__ */ jsx("input", _object_spread$V({
|
|
9348
9333
|
className: classes.input,
|
|
9349
9334
|
type: "checkbox",
|
|
9350
9335
|
checked: isSelected,
|
|
@@ -9367,7 +9352,7 @@
|
|
|
9367
9352
|
]
|
|
9368
9353
|
}));
|
|
9369
9354
|
}
|
|
9370
|
-
var useStyles$
|
|
9355
|
+
var useStyles$M = createThemedStyles("CloseButton", {
|
|
9371
9356
|
root: {
|
|
9372
9357
|
width: 40,
|
|
9373
9358
|
height: 40,
|
|
@@ -9393,7 +9378,7 @@
|
|
|
9393
9378
|
}
|
|
9394
9379
|
}
|
|
9395
9380
|
});
|
|
9396
|
-
function _define_property$
|
|
9381
|
+
function _define_property$W(obj, key, value) {
|
|
9397
9382
|
if (key in obj) {
|
|
9398
9383
|
Object.defineProperty(obj, key, {
|
|
9399
9384
|
value,
|
|
@@ -9406,7 +9391,7 @@
|
|
|
9406
9391
|
}
|
|
9407
9392
|
return obj;
|
|
9408
9393
|
}
|
|
9409
|
-
function _object_spread$
|
|
9394
|
+
function _object_spread$U(target) {
|
|
9410
9395
|
for (var i = 1; i < arguments.length; i++) {
|
|
9411
9396
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9412
9397
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9416,12 +9401,12 @@
|
|
|
9416
9401
|
}));
|
|
9417
9402
|
}
|
|
9418
9403
|
ownKeys2.forEach(function(key) {
|
|
9419
|
-
_define_property$
|
|
9404
|
+
_define_property$W(target, key, source[key]);
|
|
9420
9405
|
});
|
|
9421
9406
|
}
|
|
9422
9407
|
return target;
|
|
9423
9408
|
}
|
|
9424
|
-
function ownKeys$
|
|
9409
|
+
function ownKeys$M(object, enumerableOnly) {
|
|
9425
9410
|
var keys2 = Object.keys(object);
|
|
9426
9411
|
if (Object.getOwnPropertySymbols) {
|
|
9427
9412
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9434,33 +9419,33 @@
|
|
|
9434
9419
|
}
|
|
9435
9420
|
return keys2;
|
|
9436
9421
|
}
|
|
9437
|
-
function _object_spread_props$
|
|
9422
|
+
function _object_spread_props$M(target, source) {
|
|
9438
9423
|
source = source != null ? source : {};
|
|
9439
9424
|
if (Object.getOwnPropertyDescriptors) {
|
|
9440
9425
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9441
9426
|
} else {
|
|
9442
|
-
ownKeys$
|
|
9427
|
+
ownKeys$M(Object(source)).forEach(function(key) {
|
|
9443
9428
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9444
9429
|
});
|
|
9445
9430
|
}
|
|
9446
9431
|
return target;
|
|
9447
9432
|
}
|
|
9448
9433
|
var CloseButton = function(param) {
|
|
9449
|
-
var tweakStyles = param.tweakStyles, testId = param.testId, data = param.data,
|
|
9450
|
-
var classes = useStyles$
|
|
9434
|
+
var tweakStyles = param.tweakStyles, testId = param.testId, data = param.data, _param_icon = param.icon, icon = _param_icon === void 0 ? "close" : _param_icon, onClose = param.onClose;
|
|
9435
|
+
var classes = useStyles$M({
|
|
9451
9436
|
theme: tweakStyles
|
|
9452
9437
|
});
|
|
9453
|
-
return /* @__PURE__ */ jsx("button", _object_spread_props$
|
|
9438
|
+
return /* @__PURE__ */ jsx("button", _object_spread_props$M(_object_spread$U({
|
|
9454
9439
|
type: "button",
|
|
9455
9440
|
className: classes.root,
|
|
9456
9441
|
onClick: onClose
|
|
9457
9442
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
9458
9443
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
9459
|
-
type:
|
|
9444
|
+
type: icon
|
|
9460
9445
|
})
|
|
9461
9446
|
}));
|
|
9462
9447
|
};
|
|
9463
|
-
var useStyles$
|
|
9448
|
+
var useStyles$L = createThemedStyles({
|
|
9464
9449
|
root: {
|
|
9465
9450
|
display: "flex",
|
|
9466
9451
|
flexWrap: "wrap"
|
|
@@ -9553,7 +9538,7 @@
|
|
|
9553
9538
|
return _array_like_to_array$k(o, minLen);
|
|
9554
9539
|
}
|
|
9555
9540
|
var Colors = function() {
|
|
9556
|
-
var classes = useStyles$
|
|
9541
|
+
var classes = useStyles$L();
|
|
9557
9542
|
var theme = React.useContext(ThemeContext).theme;
|
|
9558
9543
|
var _theme_colors = theme.colors, colors2 = _theme_colors === void 0 ? {} : _theme_colors;
|
|
9559
9544
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -9583,7 +9568,7 @@
|
|
|
9583
9568
|
})
|
|
9584
9569
|
});
|
|
9585
9570
|
};
|
|
9586
|
-
var useStyles$
|
|
9571
|
+
var useStyles$K = createThemedStyles("CssBaseline", {
|
|
9587
9572
|
"@global html, body": {
|
|
9588
9573
|
fontFamily: "Arial, sans-serif",
|
|
9589
9574
|
color: colors.FONT_MAIN,
|
|
@@ -9592,7 +9577,7 @@
|
|
|
9592
9577
|
},
|
|
9593
9578
|
root: {}
|
|
9594
9579
|
});
|
|
9595
|
-
function _define_property$
|
|
9580
|
+
function _define_property$V(obj, key, value) {
|
|
9596
9581
|
if (key in obj) {
|
|
9597
9582
|
Object.defineProperty(obj, key, {
|
|
9598
9583
|
value,
|
|
@@ -9605,7 +9590,7 @@
|
|
|
9605
9590
|
}
|
|
9606
9591
|
return obj;
|
|
9607
9592
|
}
|
|
9608
|
-
function _object_spread$
|
|
9593
|
+
function _object_spread$T(target) {
|
|
9609
9594
|
for (var i = 1; i < arguments.length; i++) {
|
|
9610
9595
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9611
9596
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9615,296 +9600,482 @@
|
|
|
9615
9600
|
}));
|
|
9616
9601
|
}
|
|
9617
9602
|
ownKeys2.forEach(function(key) {
|
|
9618
|
-
_define_property$
|
|
9603
|
+
_define_property$V(target, key, source[key]);
|
|
9619
9604
|
});
|
|
9620
9605
|
}
|
|
9621
9606
|
return target;
|
|
9622
9607
|
}
|
|
9623
9608
|
var CssBaseline = function(param) {
|
|
9624
9609
|
var data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
9625
|
-
var classes = useStyles$
|
|
9610
|
+
var classes = useStyles$K({
|
|
9626
9611
|
theme: tweakStyles
|
|
9627
9612
|
});
|
|
9628
|
-
return /* @__PURE__ */ jsx("div", _object_spread$
|
|
9613
|
+
return /* @__PURE__ */ jsx("div", _object_spread$T({
|
|
9629
9614
|
className: classes.root
|
|
9630
9615
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)));
|
|
9631
9616
|
};
|
|
9632
|
-
var
|
|
9633
|
-
var PADDING_X$1 = 12;
|
|
9634
|
-
var AUTOSIZE_MAX_WIDTH = 480;
|
|
9635
|
-
var useStyles$H = createThemedStyles("Input", {
|
|
9617
|
+
var useStyles$J = createThemedStyles("ControlGroup", {
|
|
9636
9618
|
root: {
|
|
9637
|
-
width: "100%",
|
|
9638
|
-
boxSizing: "border-box",
|
|
9639
|
-
position: "relative"
|
|
9640
|
-
},
|
|
9641
|
-
inputWrapper: {
|
|
9642
9619
|
display: "flex",
|
|
9643
|
-
|
|
9644
|
-
|
|
9645
|
-
boxSizing: "border-box",
|
|
9646
|
-
transition: animations.defaultTransition,
|
|
9647
|
-
transitionProperty: "border-color",
|
|
9648
|
-
backgroundColor: "white",
|
|
9649
|
-
position: "relative"
|
|
9620
|
+
flexDirection: "column",
|
|
9621
|
+
width: "100%"
|
|
9650
9622
|
},
|
|
9651
|
-
|
|
9652
|
-
|
|
9653
|
-
fontFamily: "inherit",
|
|
9654
|
-
padding: [
|
|
9655
|
-
0,
|
|
9656
|
-
PADDING_X$1
|
|
9657
|
-
]
|
|
9623
|
+
error: {
|
|
9624
|
+
color: "red"
|
|
9658
9625
|
},
|
|
9659
|
-
|
|
9660
|
-
|
|
9661
|
-
width: "100%",
|
|
9662
|
-
height: "100%",
|
|
9663
|
-
outline: "none",
|
|
9664
|
-
boxSizing: "border-box",
|
|
9665
|
-
outlineStyle: "none",
|
|
9666
|
-
transition: animations.defaultTransition,
|
|
9667
|
-
transitionProperty: "background-color",
|
|
9668
|
-
border: "none",
|
|
9669
|
-
background: "none",
|
|
9670
|
-
"&::placeholder": {
|
|
9671
|
-
opacity: 1
|
|
9672
|
-
},
|
|
9673
|
-
MozAppearance: "textfield",
|
|
9674
|
-
"&::-webkit-inner-spin-button,&::-webkit-outer-spin-button": {
|
|
9675
|
-
WebkitAppearance: "none",
|
|
9676
|
-
margin: 0
|
|
9677
|
-
}
|
|
9626
|
+
info: {
|
|
9627
|
+
color: "gray"
|
|
9678
9628
|
},
|
|
9679
|
-
|
|
9680
|
-
display: "
|
|
9681
|
-
|
|
9682
|
-
|
|
9683
|
-
|
|
9684
|
-
|
|
9685
|
-
|
|
9686
|
-
minWidth: "1em",
|
|
9687
|
-
gridArea: "1 / 2",
|
|
9688
|
-
font: "inherit",
|
|
9689
|
-
justifySelf: "stretch"
|
|
9690
|
-
},
|
|
9691
|
-
"&::after": {
|
|
9692
|
-
maxWidth: AUTOSIZE_MAX_WIDTH,
|
|
9693
|
-
content: 'attr(data-value) " "',
|
|
9694
|
-
visibility: "hidden",
|
|
9695
|
-
whiteSpace: "pre-wrap"
|
|
9629
|
+
horizontal: {
|
|
9630
|
+
display: "flex",
|
|
9631
|
+
"& > *": {
|
|
9632
|
+
flexGrow: 1,
|
|
9633
|
+
"&:not(:first-child)": {
|
|
9634
|
+
marginLeft: -1
|
|
9635
|
+
}
|
|
9696
9636
|
}
|
|
9697
9637
|
},
|
|
9698
|
-
|
|
9699
|
-
position: "relative",
|
|
9700
|
-
zIndex: 1
|
|
9701
|
-
},
|
|
9702
|
-
unitsWrapper: {
|
|
9703
|
-
extend: "inputContent",
|
|
9704
|
-
position: "absolute",
|
|
9705
|
-
left: 0,
|
|
9706
|
-
height: "100%",
|
|
9707
|
-
boxSizing: "border-box",
|
|
9638
|
+
vertical: {
|
|
9708
9639
|
display: "flex",
|
|
9709
|
-
|
|
9710
|
-
|
|
9640
|
+
flexDirection: "column",
|
|
9641
|
+
"& > *:not(:first-child)": {
|
|
9642
|
+
marginTop: -1
|
|
9643
|
+
}
|
|
9711
9644
|
},
|
|
9712
|
-
|
|
9713
|
-
|
|
9714
|
-
},
|
|
9715
|
-
units: {
|
|
9716
|
-
paddingLeft: 4
|
|
9645
|
+
message: {
|
|
9646
|
+
fontSize: 12
|
|
9717
9647
|
},
|
|
9718
|
-
|
|
9719
|
-
|
|
9648
|
+
children: {}
|
|
9649
|
+
});
|
|
9650
|
+
function _define_property$U(obj, key, value) {
|
|
9651
|
+
if (key in obj) {
|
|
9652
|
+
Object.defineProperty(obj, key, {
|
|
9653
|
+
value,
|
|
9654
|
+
enumerable: true,
|
|
9655
|
+
configurable: true,
|
|
9656
|
+
writable: true
|
|
9657
|
+
});
|
|
9658
|
+
} else {
|
|
9659
|
+
obj[key] = value;
|
|
9660
|
+
}
|
|
9661
|
+
return obj;
|
|
9662
|
+
}
|
|
9663
|
+
function _object_spread$S(target) {
|
|
9664
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
9665
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
9666
|
+
var ownKeys2 = Object.keys(source);
|
|
9667
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
9668
|
+
ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
9669
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
9670
|
+
}));
|
|
9671
|
+
}
|
|
9672
|
+
ownKeys2.forEach(function(key) {
|
|
9673
|
+
_define_property$U(target, key, source[key]);
|
|
9674
|
+
});
|
|
9675
|
+
}
|
|
9676
|
+
return target;
|
|
9677
|
+
}
|
|
9678
|
+
function ownKeys$L(object, enumerableOnly) {
|
|
9679
|
+
var keys2 = Object.keys(object);
|
|
9680
|
+
if (Object.getOwnPropertySymbols) {
|
|
9681
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
9682
|
+
if (enumerableOnly) {
|
|
9683
|
+
symbols = symbols.filter(function(sym) {
|
|
9684
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
9685
|
+
});
|
|
9686
|
+
}
|
|
9687
|
+
keys2.push.apply(keys2, symbols);
|
|
9688
|
+
}
|
|
9689
|
+
return keys2;
|
|
9690
|
+
}
|
|
9691
|
+
function _object_spread_props$L(target, source) {
|
|
9692
|
+
source = source != null ? source : {};
|
|
9693
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
9694
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9695
|
+
} else {
|
|
9696
|
+
ownKeys$L(Object(source)).forEach(function(key) {
|
|
9697
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9698
|
+
});
|
|
9699
|
+
}
|
|
9700
|
+
return target;
|
|
9701
|
+
}
|
|
9702
|
+
var ControlGroup = /* @__PURE__ */ React.forwardRef(function(param, ref) {
|
|
9703
|
+
var children = param.children, infoMessage = param.infoMessage, errorMessage = param.errorMessage, direction = param.direction, tweakStyles = param.tweakStyles, testId = param.testId, data = param.data;
|
|
9704
|
+
var classes = useStyles$J({
|
|
9705
|
+
theme: tweakStyles
|
|
9706
|
+
});
|
|
9707
|
+
var shouldShowError = trueReactPlatformHelpers.isReactNodeNotEmpty(errorMessage);
|
|
9708
|
+
var shouldShowInfo = trueReactPlatformHelpers.isReactNodeNotEmpty(infoMessage) && !shouldShowError;
|
|
9709
|
+
var _obj2;
|
|
9710
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$L(_object_spread$S({
|
|
9711
|
+
ref,
|
|
9712
|
+
className: classes.root,
|
|
9713
|
+
"data-invalid": shouldShowError ? true : void 0
|
|
9714
|
+
}, trueReactPlatformHelpers.addDataAttributes(data, testId)), {
|
|
9715
|
+
children: [
|
|
9716
|
+
trueReactPlatformHelpers.isReactNodeNotEmpty(children) && /* @__PURE__ */ jsx("div", {
|
|
9717
|
+
className: clsx(classes.children, (_obj2 = {}, _define_property$U(_obj2, classes.horizontal, direction === "horizontal"), _define_property$U(_obj2, classes.vertical, direction === "vertical"), _obj2)),
|
|
9718
|
+
children
|
|
9719
|
+
}),
|
|
9720
|
+
(shouldShowError || shouldShowInfo) && /* @__PURE__ */ jsxs("div", {
|
|
9721
|
+
className: classes.message,
|
|
9722
|
+
children: [
|
|
9723
|
+
shouldShowError && /* @__PURE__ */ jsx("div", _object_spread_props$L(_object_spread$S({
|
|
9724
|
+
className: classes.error
|
|
9725
|
+
}, trueReactPlatformHelpers.addDataTestId(testId, "error")), {
|
|
9726
|
+
children: errorMessage
|
|
9727
|
+
})),
|
|
9728
|
+
shouldShowInfo && /* @__PURE__ */ jsx("div", _object_spread_props$L(_object_spread$S({
|
|
9729
|
+
className: classes.info
|
|
9730
|
+
}, trueReactPlatformHelpers.addDataTestId(testId, "info")), {
|
|
9731
|
+
children: infoMessage
|
|
9732
|
+
}))
|
|
9733
|
+
]
|
|
9734
|
+
})
|
|
9735
|
+
]
|
|
9736
|
+
}));
|
|
9737
|
+
});
|
|
9738
|
+
var CONTROL$1 = dimensions.CONTROL, Z_INDEX$2 = dimensions.Z_INDEX;
|
|
9739
|
+
var useStyles$I = createThemedStyles("ControlWrapper", {
|
|
9740
|
+
root: {
|
|
9741
|
+
"--control-height": "".concat(CONTROL$1.HEIGHT - 2, "px"),
|
|
9742
|
+
// borders
|
|
9743
|
+
"--control-padding": "".concat(CONTROL$1.PADDING, "px"),
|
|
9744
|
+
"--icon-size": "".concat(CONTROL$1.ICON_SIZE, "px"),
|
|
9745
|
+
"--icon-inner-size": "".concat(CONTROL$1.ICON_INNER_SIZE, "px"),
|
|
9746
|
+
"--icon-gap": "".concat(CONTROL$1.ICON_GAP, "px"),
|
|
9747
|
+
display: "flex",
|
|
9748
|
+
width: "100%",
|
|
9749
|
+
backgroundColor: "white",
|
|
9750
|
+
position: "relative",
|
|
9751
|
+
border: [
|
|
9752
|
+
"solid",
|
|
9753
|
+
1,
|
|
9754
|
+
"gray"
|
|
9755
|
+
],
|
|
9756
|
+
borderRadius: 8,
|
|
9757
|
+
boxSizing: "border-box",
|
|
9758
|
+
zIndex: 0
|
|
9720
9759
|
},
|
|
9721
|
-
|
|
9722
|
-
|
|
9723
|
-
paddingLeft: 0
|
|
9760
|
+
invalid: {
|
|
9761
|
+
zIndex: Z_INDEX$2.CONTROL_INVALID
|
|
9724
9762
|
},
|
|
9725
|
-
|
|
9726
|
-
|
|
9727
|
-
|
|
9728
|
-
|
|
9729
|
-
display: "block",
|
|
9730
|
-
transform: "scale(0.75) translateY(-120%)"
|
|
9731
|
-
}
|
|
9763
|
+
disabled: {},
|
|
9764
|
+
focused: {
|
|
9765
|
+
position: "relative",
|
|
9766
|
+
zIndex: Z_INDEX$2.CONTROL_FOCUS
|
|
9732
9767
|
},
|
|
9733
|
-
|
|
9734
|
-
|
|
9735
|
-
|
|
9736
|
-
|
|
9737
|
-
left: -12,
|
|
9738
|
-
top: "50%",
|
|
9739
|
-
transform: "translate(0, -50%)",
|
|
9740
|
-
width: 6,
|
|
9741
|
-
height: 6,
|
|
9742
|
-
borderRadius: "50%"
|
|
9743
|
-
}
|
|
9768
|
+
withValue: {},
|
|
9769
|
+
loading: {},
|
|
9770
|
+
minContent: {
|
|
9771
|
+
width: "min-content"
|
|
9744
9772
|
},
|
|
9745
9773
|
label: {
|
|
9746
9774
|
position: "absolute",
|
|
9747
9775
|
pointerEvents: "none",
|
|
9748
|
-
left:
|
|
9776
|
+
left: "var(--control-padding)",
|
|
9749
9777
|
top: "50%",
|
|
9750
9778
|
transformOrigin: "top left",
|
|
9751
9779
|
transform: "translateY(-50%)",
|
|
9752
9780
|
transition: animations.defaultTransition,
|
|
9753
9781
|
transitionProperty: "transform, color",
|
|
9754
|
-
fontSize: 16
|
|
9755
|
-
|
|
9756
|
-
floatingWithoutPadding: {
|
|
9757
|
-
left: 0
|
|
9782
|
+
fontSize: 16,
|
|
9783
|
+
zIndex: 1
|
|
9758
9784
|
},
|
|
9785
|
+
activeLabel: {},
|
|
9759
9786
|
requiredLabel: {
|
|
9760
9787
|
"&:after": {
|
|
9761
9788
|
content: '""',
|
|
9789
|
+
display: "block",
|
|
9762
9790
|
position: "absolute",
|
|
9791
|
+
top: 0,
|
|
9763
9792
|
right: -8,
|
|
9764
|
-
top: 4,
|
|
9765
|
-
transform: "translate(0, -50%)",
|
|
9766
9793
|
width: 6,
|
|
9767
9794
|
height: 6,
|
|
9768
|
-
borderRadius: "50%"
|
|
9795
|
+
borderRadius: "50%",
|
|
9796
|
+
backgroundColor: "orange"
|
|
9769
9797
|
}
|
|
9770
9798
|
},
|
|
9771
|
-
|
|
9772
|
-
|
|
9799
|
+
disabledLabel: {},
|
|
9800
|
+
wrapper: {
|
|
9801
|
+
display: "flex",
|
|
9802
|
+
flexGrow: 1,
|
|
9803
|
+
minWidth: 0,
|
|
9804
|
+
// Нужно для селекта
|
|
9805
|
+
textAlign: "left"
|
|
9773
9806
|
},
|
|
9774
|
-
|
|
9775
|
-
|
|
9776
|
-
|
|
9777
|
-
|
|
9778
|
-
0,
|
|
9779
|
-
0,
|
|
9780
|
-
0
|
|
9781
|
-
]
|
|
9807
|
+
controls: {
|
|
9808
|
+
display: "flex",
|
|
9809
|
+
marginLeft: "auto",
|
|
9810
|
+
flexShrink: 0
|
|
9782
9811
|
},
|
|
9783
|
-
|
|
9784
|
-
|
|
9785
|
-
|
|
9786
|
-
|
|
9787
|
-
|
|
9788
|
-
|
|
9789
|
-
|
|
9790
|
-
|
|
9812
|
+
icon: {
|
|
9813
|
+
display: "flex",
|
|
9814
|
+
alignItems: "center",
|
|
9815
|
+
justifyContent: "center",
|
|
9816
|
+
minWidth: "var(--icon-size)",
|
|
9817
|
+
width: "var(--icon-size)",
|
|
9818
|
+
height: "100%",
|
|
9819
|
+
flexShrink: 0,
|
|
9820
|
+
cursor: "default",
|
|
9821
|
+
"&:last-child": {
|
|
9822
|
+
paddingRight: 6
|
|
9823
|
+
}
|
|
9791
9824
|
},
|
|
9792
|
-
|
|
9793
|
-
|
|
9794
|
-
borderWidth: [
|
|
9795
|
-
0,
|
|
9796
|
-
0,
|
|
9797
|
-
0,
|
|
9798
|
-
1
|
|
9799
|
-
]
|
|
9825
|
+
iconInner: {
|
|
9826
|
+
width: "var(--icon-inner-size)"
|
|
9800
9827
|
},
|
|
9801
|
-
|
|
9802
|
-
|
|
9803
|
-
|
|
9804
|
-
|
|
9805
|
-
|
|
9806
|
-
|
|
9807
|
-
|
|
9808
|
-
|
|
9828
|
+
customIcon: {
|
|
9829
|
+
width: "unset",
|
|
9830
|
+
"& $iconInner": {
|
|
9831
|
+
width: "unset"
|
|
9832
|
+
}
|
|
9833
|
+
},
|
|
9834
|
+
endIcon: {},
|
|
9835
|
+
activeIcon: {
|
|
9836
|
+
cursor: "pointer",
|
|
9837
|
+
outline: "none"
|
|
9809
9838
|
},
|
|
9810
|
-
|
|
9839
|
+
clearIcon: {
|
|
9840
|
+
"& $iconInner": {
|
|
9841
|
+
width: "var(--icon-inner-size)"
|
|
9842
|
+
}
|
|
9843
|
+
},
|
|
9844
|
+
loader: {
|
|
9845
|
+
"& $iconInner": {
|
|
9846
|
+
width: "var(--icon-inner-size)"
|
|
9847
|
+
}
|
|
9848
|
+
},
|
|
9849
|
+
/* groupPositions */
|
|
9850
|
+
"placement-top": {
|
|
9811
9851
|
borderBottomLeftRadius: 0,
|
|
9812
9852
|
borderBottomRightRadius: 0
|
|
9813
9853
|
},
|
|
9814
|
-
bottom: {
|
|
9854
|
+
"placement-bottom": {
|
|
9815
9855
|
borderTopLeftRadius: 0,
|
|
9816
9856
|
borderTopRightRadius: 0
|
|
9817
9857
|
},
|
|
9818
|
-
"top-left": {
|
|
9858
|
+
"placement-top-left": {
|
|
9819
9859
|
borderTopRightRadius: 0,
|
|
9820
9860
|
borderBottomLeftRadius: 0,
|
|
9821
9861
|
borderBottomRightRadius: 0
|
|
9822
9862
|
},
|
|
9823
|
-
"top-right": {
|
|
9863
|
+
"placement-top-right": {
|
|
9824
9864
|
borderTopLeftRadius: 0,
|
|
9825
9865
|
borderBottomLeftRadius: 0,
|
|
9826
9866
|
borderBottomRightRadius: 0
|
|
9827
9867
|
},
|
|
9828
|
-
"bottom-left": {
|
|
9868
|
+
"placement-bottom-left": {
|
|
9829
9869
|
borderTopLeftRadius: 0,
|
|
9830
9870
|
borderTopRightRadius: 0,
|
|
9831
9871
|
borderBottomRightRadius: 0
|
|
9832
9872
|
},
|
|
9833
|
-
"bottom-right": {
|
|
9873
|
+
"placement-bottom-right": {
|
|
9834
9874
|
borderTopLeftRadius: 0,
|
|
9835
9875
|
borderTopRightRadius: 0,
|
|
9836
9876
|
borderBottomLeftRadius: 0
|
|
9837
9877
|
},
|
|
9838
|
-
left: {
|
|
9878
|
+
"placement-left": {
|
|
9839
9879
|
borderTopRightRadius: 0,
|
|
9840
9880
|
borderBottomRightRadius: 0
|
|
9841
9881
|
},
|
|
9842
|
-
right: {
|
|
9882
|
+
"placement-right": {
|
|
9843
9883
|
borderTopLeftRadius: 0,
|
|
9844
9884
|
borderBottomLeftRadius: 0
|
|
9845
9885
|
},
|
|
9846
|
-
middle: {
|
|
9886
|
+
"placement-middle": {
|
|
9847
9887
|
borderRadius: 0
|
|
9848
|
-
}
|
|
9849
|
-
|
|
9850
|
-
|
|
9851
|
-
|
|
9852
|
-
|
|
9853
|
-
|
|
9854
|
-
|
|
9855
|
-
|
|
9888
|
+
}
|
|
9889
|
+
});
|
|
9890
|
+
function _define_property$T(obj, key, value) {
|
|
9891
|
+
if (key in obj) {
|
|
9892
|
+
Object.defineProperty(obj, key, {
|
|
9893
|
+
value,
|
|
9894
|
+
enumerable: true,
|
|
9895
|
+
configurable: true,
|
|
9896
|
+
writable: true
|
|
9897
|
+
});
|
|
9898
|
+
} else {
|
|
9899
|
+
obj[key] = value;
|
|
9900
|
+
}
|
|
9901
|
+
return obj;
|
|
9902
|
+
}
|
|
9903
|
+
function _object_spread$R(target) {
|
|
9904
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
9905
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
9906
|
+
var ownKeys2 = Object.keys(source);
|
|
9907
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
9908
|
+
ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
9909
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
9910
|
+
}));
|
|
9911
|
+
}
|
|
9912
|
+
ownKeys2.forEach(function(key) {
|
|
9913
|
+
_define_property$T(target, key, source[key]);
|
|
9914
|
+
});
|
|
9915
|
+
}
|
|
9916
|
+
return target;
|
|
9917
|
+
}
|
|
9918
|
+
function ownKeys$K(object, enumerableOnly) {
|
|
9919
|
+
var keys2 = Object.keys(object);
|
|
9920
|
+
if (Object.getOwnPropertySymbols) {
|
|
9921
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
9922
|
+
if (enumerableOnly) {
|
|
9923
|
+
symbols = symbols.filter(function(sym) {
|
|
9924
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
9925
|
+
});
|
|
9926
|
+
}
|
|
9927
|
+
keys2.push.apply(keys2, symbols);
|
|
9928
|
+
}
|
|
9929
|
+
return keys2;
|
|
9930
|
+
}
|
|
9931
|
+
function _object_spread_props$K(target, source) {
|
|
9932
|
+
source = source != null ? source : {};
|
|
9933
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
9934
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9935
|
+
} else {
|
|
9936
|
+
ownKeys$K(Object(source)).forEach(function(key) {
|
|
9937
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9938
|
+
});
|
|
9939
|
+
}
|
|
9940
|
+
return target;
|
|
9941
|
+
}
|
|
9942
|
+
var ControlWrapper = function(param) {
|
|
9943
|
+
var label = param.label, icon = param.icon, groupPlacement = param.groupPlacement, isInvalid = param.isInvalid, isFocused = param.isFocused, isRequired = param.isRequired, isLoading = param.isLoading, isFullWidth = param.isFullWidth, isDisabled = param.isDisabled, hasValue = param.hasValue, testId = param.testId, children = param.children, tweakStyles = param.tweakStyles, data = param.data, onIconClick = param.onIconClick, onClear = param.onClear;
|
|
9944
|
+
var classes = useStyles$I({
|
|
9945
|
+
theme: tweakStyles
|
|
9946
|
+
});
|
|
9947
|
+
var hasEndIcon = !isLoading && trueReactPlatformHelpers.isReactNodeNotEmpty(icon);
|
|
9948
|
+
var hasClearButton = !isDisabled && !isLoading && hasValue && trueReactPlatformHelpers.isNotEmpty(onClear);
|
|
9949
|
+
var hasControls = hasEndIcon || hasClearButton || isLoading;
|
|
9950
|
+
var tweakPreloaderStyles = useTweakStyles({
|
|
9951
|
+
tweakStyles,
|
|
9952
|
+
className: "tweakPreloader",
|
|
9953
|
+
currentComponentName: "ControlWrapper"
|
|
9954
|
+
});
|
|
9955
|
+
var _obj2, _obj1, _obj22;
|
|
9956
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$K(_object_spread$R({
|
|
9957
|
+
className: clsx(classes.root, trueReactPlatformHelpers.isNotEmpty(groupPlacement) && [
|
|
9958
|
+
classes["placement-".concat(groupPlacement)]
|
|
9959
|
+
], (_obj2 = {}, _define_property$T(_obj2, classes.invalid, isInvalid), _define_property$T(_obj2, classes.focused, isFocused), _define_property$T(_obj2, classes.withValue, hasValue), _define_property$T(_obj2, classes.disabled, isDisabled), _define_property$T(_obj2, classes.loading, isLoading), _define_property$T(_obj2, classes.minContent, !isFullWidth), _obj2))
|
|
9960
|
+
}, trueReactPlatformHelpers.addDataAttributes(data, testId)), {
|
|
9961
|
+
children: [
|
|
9962
|
+
trueReactPlatformHelpers.isReactNodeNotEmpty(label) && /* @__PURE__ */ jsx("div", {
|
|
9963
|
+
className: clsx(classes.label, (_obj1 = {}, _define_property$T(_obj1, classes.requiredLabel, isRequired), _define_property$T(_obj1, classes.disabledLabel, isDisabled), _define_property$T(_obj1, classes.activeLabel, isFocused || hasValue), _obj1)),
|
|
9964
|
+
children: label
|
|
9965
|
+
}),
|
|
9966
|
+
/* @__PURE__ */ jsxs("div", {
|
|
9967
|
+
className: classes.wrapper,
|
|
9968
|
+
children: [
|
|
9969
|
+
children,
|
|
9970
|
+
hasControls && /* @__PURE__ */ jsxs("div", {
|
|
9971
|
+
className: classes.controls,
|
|
9972
|
+
children: [
|
|
9973
|
+
hasClearButton && /* @__PURE__ */ jsx("div", _object_spread_props$K(_object_spread$R({
|
|
9974
|
+
className: clsx(classes.icon, classes.clearIcon, classes.activeIcon)
|
|
9975
|
+
}, trueReactPlatformHelpers.addClickHandler(onClear), trueReactPlatformHelpers.addDataTestId(testId, "clear")), {
|
|
9976
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
9977
|
+
className: classes.iconInner,
|
|
9978
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
9979
|
+
type: "close"
|
|
9980
|
+
})
|
|
9981
|
+
})
|
|
9982
|
+
})),
|
|
9983
|
+
hasEndIcon && /* @__PURE__ */ jsx("div", _object_spread_props$K(_object_spread$R({
|
|
9984
|
+
className: clsx(classes.icon, classes.endIcon, (_obj22 = {}, _define_property$T(_obj22, classes.activeIcon, !isDisabled && trueReactPlatformHelpers.isNotEmpty(onIconClick)), _define_property$T(_obj22, classes.customIcon, !trueReactPlatformHelpers.isString(icon)), _obj22))
|
|
9985
|
+
}, trueReactPlatformHelpers.addClickHandler(onIconClick, !isDisabled), trueReactPlatformHelpers.addDataTestId(testId, "icon")), {
|
|
9986
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
9987
|
+
className: classes.iconInner,
|
|
9988
|
+
children: renderIcon(icon)
|
|
9989
|
+
})
|
|
9990
|
+
})),
|
|
9991
|
+
isLoading && /* @__PURE__ */ jsx("div", _object_spread_props$K(_object_spread$R({
|
|
9992
|
+
className: clsx(classes.icon, classes.loader)
|
|
9993
|
+
}, trueReactPlatformHelpers.addDataTestId(testId, "loading")), {
|
|
9994
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
9995
|
+
className: classes.iconInner,
|
|
9996
|
+
children: /* @__PURE__ */ jsx(ThemedPreloader, {
|
|
9997
|
+
tweakStyles: tweakPreloaderStyles
|
|
9998
|
+
})
|
|
9999
|
+
})
|
|
10000
|
+
}))
|
|
10001
|
+
]
|
|
10002
|
+
})
|
|
10003
|
+
]
|
|
10004
|
+
})
|
|
10005
|
+
]
|
|
10006
|
+
}));
|
|
10007
|
+
};
|
|
10008
|
+
var PADDING_WITH_UNITS = 8;
|
|
10009
|
+
var useStyles$H = createThemedStyles("Input", {
|
|
10010
|
+
inputContent: {
|
|
10011
|
+
height: "var(--control-height)",
|
|
9856
10012
|
padding: [
|
|
9857
10013
|
0,
|
|
9858
|
-
|
|
10014
|
+
"var(--control-padding)"
|
|
9859
10015
|
],
|
|
9860
|
-
|
|
9861
|
-
|
|
9862
|
-
|
|
9863
|
-
|
|
9864
|
-
"
|
|
9865
|
-
|
|
10016
|
+
fontSize: 16,
|
|
10017
|
+
fontFamily: "inherit"
|
|
10018
|
+
},
|
|
10019
|
+
input: {
|
|
10020
|
+
extend: "inputContent",
|
|
10021
|
+
width: "100%",
|
|
10022
|
+
outline: "none",
|
|
10023
|
+
outlineStyle: "none",
|
|
10024
|
+
boxSizing: "border-box",
|
|
10025
|
+
border: "none",
|
|
10026
|
+
background: "none",
|
|
10027
|
+
color: "black",
|
|
10028
|
+
"&[readonly]": {
|
|
10029
|
+
cursor: "default"
|
|
10030
|
+
},
|
|
10031
|
+
"&::placeholder": {
|
|
10032
|
+
opacity: 1
|
|
9866
10033
|
},
|
|
9867
|
-
"
|
|
9868
|
-
|
|
10034
|
+
"&::-webkit-date-and-time-value": {
|
|
10035
|
+
textAlign: "left"
|
|
10036
|
+
},
|
|
10037
|
+
MozAppearance: "textfield",
|
|
10038
|
+
"&::-webkit-inner-spin-button,&::-webkit-outer-spin-button,&::-webkit-calendar-picker-indicator": {
|
|
10039
|
+
display: "none",
|
|
10040
|
+
WebkitAppearance: "none",
|
|
10041
|
+
margin: 0
|
|
9869
10042
|
}
|
|
9870
10043
|
},
|
|
9871
|
-
|
|
9872
|
-
|
|
9873
|
-
|
|
9874
|
-
|
|
9875
|
-
|
|
9876
|
-
|
|
9877
|
-
withIcons: {
|
|
9878
|
-
paddingRight: 4
|
|
10044
|
+
autoSizeWrapper: {
|
|
10045
|
+
position: "relative",
|
|
10046
|
+
display: "flex",
|
|
10047
|
+
minWidth: 0,
|
|
10048
|
+
zIndex: 0,
|
|
10049
|
+
flexGrow: 1
|
|
9879
10050
|
},
|
|
9880
|
-
|
|
9881
|
-
|
|
9882
|
-
|
|
9883
|
-
|
|
9884
|
-
|
|
9885
|
-
fontSize: 12
|
|
10051
|
+
autoSized: {
|
|
10052
|
+
position: "absolute",
|
|
10053
|
+
top: 0,
|
|
10054
|
+
left: 0,
|
|
10055
|
+
height: "100%"
|
|
9886
10056
|
},
|
|
9887
|
-
|
|
9888
|
-
|
|
9889
|
-
|
|
9890
|
-
|
|
10057
|
+
withUnits: {
|
|
10058
|
+
extend: "autoSized",
|
|
10059
|
+
paddingRight: "calc(".concat(PADDING_WITH_UNITS, "px + var(--units-width) - 1px)"),
|
|
10060
|
+
"& + $fakeValue": {
|
|
10061
|
+
paddingRight: PADDING_WITH_UNITS
|
|
10062
|
+
}
|
|
9891
10063
|
},
|
|
9892
|
-
|
|
9893
|
-
|
|
9894
|
-
|
|
9895
|
-
|
|
9896
|
-
|
|
9897
|
-
|
|
9898
|
-
|
|
9899
|
-
],
|
|
9900
|
-
zIndex: 1
|
|
10064
|
+
withLabel: {},
|
|
10065
|
+
fakeValue: {
|
|
10066
|
+
extend: "inputContent",
|
|
10067
|
+
visibility: "hidden",
|
|
10068
|
+
maxWidth: "100%",
|
|
10069
|
+
overflow: "hidden",
|
|
10070
|
+
minWidth: 8
|
|
9901
10071
|
},
|
|
9902
|
-
|
|
9903
|
-
|
|
9904
|
-
|
|
10072
|
+
units: {
|
|
10073
|
+
alignSelf: "center",
|
|
10074
|
+
paddingRight: "var(--control-padding)"
|
|
9905
10075
|
},
|
|
9906
|
-
|
|
9907
|
-
|
|
10076
|
+
focusedInput: {},
|
|
10077
|
+
disabledInput: {},
|
|
10078
|
+
invalidInput: {}
|
|
9908
10079
|
});
|
|
9909
10080
|
function _array_like_to_array$j(arr, len) {
|
|
9910
10081
|
if (len == null || len > arr.length)
|
|
@@ -9946,7 +10117,7 @@
|
|
|
9946
10117
|
});
|
|
9947
10118
|
};
|
|
9948
10119
|
}
|
|
9949
|
-
function _define_property$
|
|
10120
|
+
function _define_property$S(obj, key, value) {
|
|
9950
10121
|
if (key in obj) {
|
|
9951
10122
|
Object.defineProperty(obj, key, {
|
|
9952
10123
|
value,
|
|
@@ -9990,7 +10161,7 @@
|
|
|
9990
10161
|
function _non_iterable_rest$j() {
|
|
9991
10162
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9992
10163
|
}
|
|
9993
|
-
function _object_spread$
|
|
10164
|
+
function _object_spread$Q(target) {
|
|
9994
10165
|
for (var i = 1; i < arguments.length; i++) {
|
|
9995
10166
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9996
10167
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10000,12 +10171,12 @@
|
|
|
10000
10171
|
}));
|
|
10001
10172
|
}
|
|
10002
10173
|
ownKeys2.forEach(function(key) {
|
|
10003
|
-
_define_property$
|
|
10174
|
+
_define_property$S(target, key, source[key]);
|
|
10004
10175
|
});
|
|
10005
10176
|
}
|
|
10006
10177
|
return target;
|
|
10007
10178
|
}
|
|
10008
|
-
function ownKeys$
|
|
10179
|
+
function ownKeys$J(object, enumerableOnly) {
|
|
10009
10180
|
var keys2 = Object.keys(object);
|
|
10010
10181
|
if (Object.getOwnPropertySymbols) {
|
|
10011
10182
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10018,21 +10189,21 @@
|
|
|
10018
10189
|
}
|
|
10019
10190
|
return keys2;
|
|
10020
10191
|
}
|
|
10021
|
-
function _object_spread_props$
|
|
10192
|
+
function _object_spread_props$J(target, source) {
|
|
10022
10193
|
source = source != null ? source : {};
|
|
10023
10194
|
if (Object.getOwnPropertyDescriptors) {
|
|
10024
10195
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10025
10196
|
} else {
|
|
10026
|
-
ownKeys$
|
|
10197
|
+
ownKeys$J(Object(source)).forEach(function(key) {
|
|
10027
10198
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10028
10199
|
});
|
|
10029
10200
|
}
|
|
10030
10201
|
return target;
|
|
10031
10202
|
}
|
|
10032
|
-
function _object_without_properties$
|
|
10203
|
+
function _object_without_properties$i(source, excluded) {
|
|
10033
10204
|
if (source == null)
|
|
10034
10205
|
return {};
|
|
10035
|
-
var target = _object_without_properties_loose$
|
|
10206
|
+
var target = _object_without_properties_loose$i(source, excluded);
|
|
10036
10207
|
var key, i;
|
|
10037
10208
|
if (Object.getOwnPropertySymbols) {
|
|
10038
10209
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10047,7 +10218,7 @@
|
|
|
10047
10218
|
}
|
|
10048
10219
|
return target;
|
|
10049
10220
|
}
|
|
10050
|
-
function _object_without_properties_loose$
|
|
10221
|
+
function _object_without_properties_loose$i(source, excluded) {
|
|
10051
10222
|
if (source == null)
|
|
10052
10223
|
return {};
|
|
10053
10224
|
var target = {};
|
|
@@ -10179,38 +10350,32 @@
|
|
|
10179
10350
|
};
|
|
10180
10351
|
}
|
|
10181
10352
|
}
|
|
10182
|
-
var
|
|
10183
|
-
var _param_value = _param.value, value = _param_value === void 0 ? "" : _param_value,
|
|
10353
|
+
var InputBase = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
10354
|
+
var _param_value = _param.value, value = _param_value === void 0 ? "" : _param_value, placeholder = _param.placeholder, label = _param.label, _param_type = _param.type, type = _param_type === void 0 ? "text" : _param_type, isDisabled = _param.isDisabled, autoComplete = _param.autoComplete, initialInputMode = _param.inputMode, isReadonly = _param.isReadonly, isInvalid = _param.isInvalid, isActive = _param.isActive, isClearable = _param.isClearable, isAutoSized = _param.isAutoSized, name = _param.name, tweakStyles = _param.tweakStyles, maxLength = _param.maxLength, shouldFocusOnMount = _param.shouldFocusOnMount, units = _param.units, testId = _param.testId, tabIndex = _param.tabIndex, onChange = _param.onChange, onPaste = _param.onPaste, onFocus = _param.onFocus, onBlur = _param.onBlur, onKeyDown = _param.onKeyDown, mask = _param.mask, maskPlaceholder = _param.maskPlaceholder, alwaysShowMask = _param.alwaysShowMask, shouldAlwaysShowPlaceholder = _param.shouldAlwaysShowPlaceholder, beforeMaskedStateChange = _param.beforeMaskedStateChange, controlProps = _object_without_properties$i(_param, [
|
|
10184
10355
|
"value",
|
|
10185
|
-
"label",
|
|
10186
10356
|
"placeholder",
|
|
10357
|
+
"label",
|
|
10187
10358
|
"type",
|
|
10188
10359
|
"isDisabled",
|
|
10360
|
+
"autoComplete",
|
|
10361
|
+
"inputMode",
|
|
10189
10362
|
"isReadonly",
|
|
10190
|
-
"hasFloatingLabel",
|
|
10191
10363
|
"isInvalid",
|
|
10192
10364
|
"isActive",
|
|
10193
10365
|
"isClearable",
|
|
10194
|
-
"
|
|
10195
|
-
"
|
|
10196
|
-
"errorPosition",
|
|
10197
|
-
"inlineStyle",
|
|
10198
|
-
"border",
|
|
10199
|
-
"isRequired",
|
|
10200
|
-
"isLoading",
|
|
10201
|
-
"isAutoSizeable",
|
|
10202
|
-
"defaultSize",
|
|
10203
|
-
"iconType",
|
|
10204
|
-
"hasRequiredLabel",
|
|
10205
|
-
"data",
|
|
10366
|
+
"isAutoSized",
|
|
10367
|
+
"name",
|
|
10206
10368
|
"tweakStyles",
|
|
10369
|
+
"maxLength",
|
|
10207
10370
|
"shouldFocusOnMount",
|
|
10208
10371
|
"units",
|
|
10209
10372
|
"testId",
|
|
10373
|
+
"tabIndex",
|
|
10210
10374
|
"onChange",
|
|
10375
|
+
"onPaste",
|
|
10211
10376
|
"onFocus",
|
|
10212
10377
|
"onBlur",
|
|
10213
|
-
"
|
|
10378
|
+
"onKeyDown",
|
|
10214
10379
|
"mask",
|
|
10215
10380
|
"maskPlaceholder",
|
|
10216
10381
|
"alwaysShowMask",
|
|
@@ -10220,13 +10385,27 @@
|
|
|
10220
10385
|
var classes = useStyles$H({
|
|
10221
10386
|
theme: tweakStyles
|
|
10222
10387
|
});
|
|
10223
|
-
var
|
|
10388
|
+
var tweakControlWrapperStyles = useTweakStyles({
|
|
10224
10389
|
tweakStyles,
|
|
10225
|
-
className: "
|
|
10390
|
+
className: "tweakControlWrapper",
|
|
10226
10391
|
currentComponentName: "Input"
|
|
10227
10392
|
});
|
|
10228
10393
|
var _useState = _sliced_to_array$j(React.useState(false), 2), isFocused = _useState[0], setFocused = _useState[1];
|
|
10394
|
+
var _useState1 = _sliced_to_array$j(React.useState(), 2), unitsWidth = _useState1[0], setUnitsWidth = _useState1[1];
|
|
10229
10395
|
var inputRef = React.useRef(null);
|
|
10396
|
+
var mergedRef = trueReactPlatformHelpers.mergeRefs([
|
|
10397
|
+
ref,
|
|
10398
|
+
inputRef
|
|
10399
|
+
]);
|
|
10400
|
+
var inputMode = initialInputMode !== null && initialInputMode !== void 0 ? initialInputMode : [
|
|
10401
|
+
"email",
|
|
10402
|
+
"tel",
|
|
10403
|
+
"url"
|
|
10404
|
+
].includes(type) ? type : void 0;
|
|
10405
|
+
var hasFocus = isFocused || isActive;
|
|
10406
|
+
var hasValue = trueReactPlatformHelpers.isNotEmpty(value) && value !== "";
|
|
10407
|
+
var hasUnits = trueReactPlatformHelpers.isReactNodeNotEmpty(units);
|
|
10408
|
+
var hasPlaceholder = (!trueReactPlatformHelpers.isReactNodeNotEmpty(label) || hasFocus || shouldAlwaysShowPlaceholder) && trueReactPlatformHelpers.isStringNotEmpty(placeholder);
|
|
10230
10409
|
var handleChange = function(event) {
|
|
10231
10410
|
onChange(event.currentTarget.value, event);
|
|
10232
10411
|
};
|
|
@@ -10238,9 +10417,9 @@
|
|
|
10238
10417
|
setFocused(false);
|
|
10239
10418
|
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
|
|
10240
10419
|
};
|
|
10241
|
-
var
|
|
10420
|
+
var handleInputClear = function() {
|
|
10242
10421
|
var _ref = _async_to_generator$5(function(event) {
|
|
10243
|
-
var
|
|
10422
|
+
var _inputRef_current;
|
|
10244
10423
|
return _ts_generator$5(this, function(_state) {
|
|
10245
10424
|
switch (_state.label) {
|
|
10246
10425
|
case 0:
|
|
@@ -10250,114 +10429,195 @@
|
|
|
10250
10429
|
];
|
|
10251
10430
|
case 1:
|
|
10252
10431
|
_state.sent();
|
|
10253
|
-
|
|
10254
|
-
(_input_current = input.current) === null || _input_current === void 0 ? void 0 : _input_current.focus();
|
|
10432
|
+
(_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.focus();
|
|
10255
10433
|
return [
|
|
10256
10434
|
2
|
|
10257
10435
|
];
|
|
10258
10436
|
}
|
|
10259
10437
|
});
|
|
10260
10438
|
});
|
|
10261
|
-
return function
|
|
10439
|
+
return function handleInputClear2(event) {
|
|
10262
10440
|
return _ref.apply(this, arguments);
|
|
10263
10441
|
};
|
|
10264
10442
|
}();
|
|
10265
|
-
var
|
|
10266
|
-
|
|
10267
|
-
|
|
10268
|
-
|
|
10269
|
-
|
|
10270
|
-
var hasLabel = trueReactPlatformHelpers.isReactNodeNotEmpty(label);
|
|
10271
|
-
var isLabelActive = hasFocus && !isReadonly || hasValue || shouldAlwaysShowPlaceholder;
|
|
10272
|
-
var hasPlaceholder = (!hasLabel || isLabelActive) && trueReactPlatformHelpers.isStringNotEmpty(placeholder);
|
|
10273
|
-
var shouldShowUnits = (hasValue || isFocused && !hasPlaceholder) && hasUnits;
|
|
10443
|
+
var unitsRef = React.useCallback(function(node) {
|
|
10444
|
+
setUnitsWidth(node === null || node === void 0 ? void 0 : node.clientWidth);
|
|
10445
|
+
}, [
|
|
10446
|
+
units
|
|
10447
|
+
]);
|
|
10274
10448
|
var _obj2;
|
|
10275
|
-
var props =
|
|
10276
|
-
className: clsx(classes.input, (_obj2 = {}, _define_property$
|
|
10277
|
-
|
|
10278
|
-
|
|
10279
|
-
|
|
10449
|
+
var props = _object_spread$Q({
|
|
10450
|
+
className: clsx(classes.input, (_obj2 = {}, _define_property$S(_obj2, classes.withUnits, hasUnits), _define_property$S(_obj2, classes.withLabel, trueReactPlatformHelpers.isReactNodeNotEmpty(label)), _define_property$S(_obj2, classes.autoSized, isAutoSized), _define_property$S(_obj2, classes.focusedInput, isFocused), _define_property$S(_obj2, classes.disabledInput, isDisabled), _define_property$S(_obj2, classes.invalidInput, isInvalid), _obj2)),
|
|
10451
|
+
style: hasUnits && hasValue ? {
|
|
10452
|
+
"--units-width": "".concat(unitsWidth, "px")
|
|
10453
|
+
} : void 0,
|
|
10280
10454
|
value,
|
|
10281
10455
|
type,
|
|
10456
|
+
autoComplete,
|
|
10457
|
+
inputMode,
|
|
10282
10458
|
disabled: isDisabled,
|
|
10283
10459
|
placeholder: hasPlaceholder ? placeholder : void 0,
|
|
10284
|
-
|
|
10460
|
+
name,
|
|
10461
|
+
maxLength,
|
|
10285
10462
|
readOnly: isReadonly,
|
|
10286
|
-
|
|
10463
|
+
tabIndex,
|
|
10464
|
+
onKeyDown,
|
|
10465
|
+
onPaste,
|
|
10466
|
+
onFocus: handleFocus,
|
|
10467
|
+
onBlur: handleBlur,
|
|
10468
|
+
onChange: handleChange
|
|
10469
|
+
}, trueReactPlatformHelpers.addDataTestId(testId, "input"));
|
|
10470
|
+
React.useEffect(function() {
|
|
10471
|
+
if (shouldFocusOnMount) {
|
|
10472
|
+
var _inputRef_current;
|
|
10473
|
+
(_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.focus();
|
|
10474
|
+
}
|
|
10475
|
+
}, []);
|
|
10476
|
+
var inputContent = /* @__PURE__ */ jsxs(Fragment, {
|
|
10477
|
+
children: [
|
|
10478
|
+
trueReactPlatformHelpers.isNotEmpty(mask) ? /* @__PURE__ */ jsx(InputMask, _object_spread$Q({
|
|
10479
|
+
ref: mergedRef,
|
|
10480
|
+
mask,
|
|
10481
|
+
maskPlaceholder,
|
|
10482
|
+
alwaysShowMask,
|
|
10483
|
+
beforeMaskedStateChange
|
|
10484
|
+
}, props)) : /* @__PURE__ */ jsx("input", _object_spread$Q({
|
|
10485
|
+
ref: mergedRef
|
|
10486
|
+
}, props)),
|
|
10487
|
+
(hasUnits || isAutoSized) && /* @__PURE__ */ jsx("div", {
|
|
10488
|
+
className: classes.fakeValue,
|
|
10489
|
+
children: value
|
|
10490
|
+
}),
|
|
10491
|
+
hasUnits && hasValue && /* @__PURE__ */ jsx("div", {
|
|
10492
|
+
className: classes.units,
|
|
10493
|
+
ref: unitsRef,
|
|
10494
|
+
children: units
|
|
10495
|
+
})
|
|
10496
|
+
]
|
|
10497
|
+
});
|
|
10498
|
+
return /* @__PURE__ */ jsx(ControlWrapper, _object_spread_props$J(_object_spread$Q({
|
|
10499
|
+
label,
|
|
10500
|
+
isDisabled,
|
|
10501
|
+
isFocused: hasFocus,
|
|
10502
|
+
isInvalid,
|
|
10503
|
+
hasValue: hasValue || hasPlaceholder,
|
|
10504
|
+
isFullWidth: !isAutoSized,
|
|
10505
|
+
tweakStyles: tweakControlWrapperStyles,
|
|
10506
|
+
onClear: isClearable && hasValue ? handleInputClear : void 0
|
|
10507
|
+
}, controlProps), {
|
|
10508
|
+
children: hasUnits || isAutoSized ? /* @__PURE__ */ jsx("div", {
|
|
10509
|
+
className: classes.autoSizeWrapper,
|
|
10510
|
+
children: inputContent
|
|
10511
|
+
}) : inputContent
|
|
10512
|
+
}));
|
|
10513
|
+
});
|
|
10514
|
+
function _define_property$R(obj, key, value) {
|
|
10515
|
+
if (key in obj) {
|
|
10516
|
+
Object.defineProperty(obj, key, {
|
|
10517
|
+
value,
|
|
10518
|
+
enumerable: true,
|
|
10519
|
+
configurable: true,
|
|
10520
|
+
writable: true
|
|
10521
|
+
});
|
|
10522
|
+
} else {
|
|
10523
|
+
obj[key] = value;
|
|
10524
|
+
}
|
|
10525
|
+
return obj;
|
|
10526
|
+
}
|
|
10527
|
+
function _object_spread$P(target) {
|
|
10528
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
10529
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
10530
|
+
var ownKeys2 = Object.keys(source);
|
|
10531
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
10532
|
+
ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
10533
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
10534
|
+
}));
|
|
10535
|
+
}
|
|
10536
|
+
ownKeys2.forEach(function(key) {
|
|
10537
|
+
_define_property$R(target, key, source[key]);
|
|
10538
|
+
});
|
|
10539
|
+
}
|
|
10540
|
+
return target;
|
|
10541
|
+
}
|
|
10542
|
+
function ownKeys$I(object, enumerableOnly) {
|
|
10543
|
+
var keys2 = Object.keys(object);
|
|
10544
|
+
if (Object.getOwnPropertySymbols) {
|
|
10545
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
10546
|
+
if (enumerableOnly) {
|
|
10547
|
+
symbols = symbols.filter(function(sym) {
|
|
10548
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
10549
|
+
});
|
|
10550
|
+
}
|
|
10551
|
+
keys2.push.apply(keys2, symbols);
|
|
10552
|
+
}
|
|
10553
|
+
return keys2;
|
|
10554
|
+
}
|
|
10555
|
+
function _object_spread_props$I(target, source) {
|
|
10556
|
+
source = source != null ? source : {};
|
|
10557
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
10558
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10559
|
+
} else {
|
|
10560
|
+
ownKeys$I(Object(source)).forEach(function(key) {
|
|
10561
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10562
|
+
});
|
|
10563
|
+
}
|
|
10564
|
+
return target;
|
|
10565
|
+
}
|
|
10566
|
+
function _object_without_properties$h(source, excluded) {
|
|
10567
|
+
if (source == null)
|
|
10568
|
+
return {};
|
|
10569
|
+
var target = _object_without_properties_loose$h(source, excluded);
|
|
10570
|
+
var key, i;
|
|
10571
|
+
if (Object.getOwnPropertySymbols) {
|
|
10572
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
10573
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
10574
|
+
key = sourceSymbolKeys[i];
|
|
10575
|
+
if (excluded.indexOf(key) >= 0)
|
|
10576
|
+
continue;
|
|
10577
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
10578
|
+
continue;
|
|
10579
|
+
target[key] = source[key];
|
|
10580
|
+
}
|
|
10581
|
+
}
|
|
10582
|
+
return target;
|
|
10583
|
+
}
|
|
10584
|
+
function _object_without_properties_loose$h(source, excluded) {
|
|
10585
|
+
if (source == null)
|
|
10586
|
+
return {};
|
|
10587
|
+
var target = {};
|
|
10588
|
+
var sourceKeys = Object.keys(source);
|
|
10589
|
+
var key, i;
|
|
10590
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
10591
|
+
key = sourceKeys[i];
|
|
10592
|
+
if (excluded.indexOf(key) >= 0)
|
|
10593
|
+
continue;
|
|
10594
|
+
target[key] = source[key];
|
|
10595
|
+
}
|
|
10596
|
+
return target;
|
|
10597
|
+
}
|
|
10598
|
+
var Input = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
10599
|
+
var infoMessage = _param.infoMessage, errorMessage = _param.errorMessage, isInvalid = _param.isInvalid, testId = _param.testId, tweakStyles = _param.tweakStyles, inputProps = _object_without_properties$h(_param, [
|
|
10600
|
+
"infoMessage",
|
|
10601
|
+
"errorMessage",
|
|
10602
|
+
"isInvalid",
|
|
10603
|
+
"testId",
|
|
10604
|
+
"tweakStyles"
|
|
10605
|
+
]);
|
|
10606
|
+
var tweakControlGroupStyles = useTweakStyles({
|
|
10607
|
+
tweakStyles,
|
|
10608
|
+
className: "tweakControlGroup"
|
|
10287
10609
|
});
|
|
10288
|
-
|
|
10289
|
-
|
|
10290
|
-
|
|
10291
|
-
|
|
10292
|
-
|
|
10293
|
-
|
|
10294
|
-
|
|
10295
|
-
|
|
10296
|
-
|
|
10297
|
-
|
|
10298
|
-
|
|
10299
|
-
}, props)) : /* @__PURE__ */ jsx(InputMask, _object_spread$P({
|
|
10300
|
-
ref: ref !== null && ref !== void 0 ? ref : inputRef,
|
|
10301
|
-
mask,
|
|
10302
|
-
maskPlaceholder,
|
|
10303
|
-
alwaysShowMask,
|
|
10304
|
-
beforeMaskedStateChange
|
|
10305
|
-
}, props)),
|
|
10306
|
-
hasLabel && /* @__PURE__ */ jsx("span", {
|
|
10307
|
-
className: clsx(classes.label, (_obj22 = {}, _define_property$R(_obj22, classes.invalidLabel, isInvalid), _define_property$R(_obj22, classes.requiredLabel, hasRequiredLabel && !isRequired), _define_property$R(_obj22, classes.activeLabel, isLabelActive), _define_property$R(_obj22, classes.floating, hasFloatingLabel), // Обсуждаемо, сделал так, потому что не хочется создавать новую пропсу, на каждый чих в стилях
|
|
10308
|
-
_define_property$R(_obj22, classes.floatingWithoutPadding, hasFloatingLabel && border === "bottom"), _obj22)),
|
|
10309
|
-
children: label
|
|
10310
|
-
}),
|
|
10311
|
-
shouldShowUnits && /* @__PURE__ */ jsxs("div", {
|
|
10312
|
-
className: clsx(classes.unitsWrapper, _define_property$R({}, classes.withFloatingLabel, hasFloatingLabel && hasLabel)),
|
|
10313
|
-
children: [
|
|
10314
|
-
/* @__PURE__ */ jsx("span", {
|
|
10315
|
-
className: classes.fakeValue,
|
|
10316
|
-
children: value
|
|
10317
|
-
}),
|
|
10318
|
-
/* @__PURE__ */ jsx("span", {
|
|
10319
|
-
className: classes.units,
|
|
10320
|
-
children: units
|
|
10321
|
-
})
|
|
10322
|
-
]
|
|
10323
|
-
}),
|
|
10324
|
-
hasControls && /* @__PURE__ */ jsxs("div", {
|
|
10325
|
-
className: classes.controls,
|
|
10326
|
-
children: [
|
|
10327
|
-
isLoading && /* @__PURE__ */ jsx("div", {
|
|
10328
|
-
className: clsx(classes.inputIcon, classes.loading),
|
|
10329
|
-
children: /* @__PURE__ */ jsx(ThemedPreloader, {
|
|
10330
|
-
tweakStyles: tweakPreloaderStyles
|
|
10331
|
-
})
|
|
10332
|
-
}),
|
|
10333
|
-
!isDisabled && hasClearIcon && /* @__PURE__ */ jsx("div", {
|
|
10334
|
-
className: clsx(classes.clearIcon, classes.activeIcon),
|
|
10335
|
-
onMouseDown: function(event) {
|
|
10336
|
-
return event.preventDefault();
|
|
10337
|
-
},
|
|
10338
|
-
onClick: handleOnInputClear,
|
|
10339
|
-
children: /* @__PURE__ */ jsx(Icon, {
|
|
10340
|
-
type: "close"
|
|
10341
|
-
})
|
|
10342
|
-
}),
|
|
10343
|
-
trueReactPlatformHelpers.isReactNodeNotEmpty(iconType) && /* @__PURE__ */ jsx("div", {
|
|
10344
|
-
className: clsx(classes.inputIcon, _define_property$R({}, classes.activeIcon, !isDisabled && onIconClick !== void 0)),
|
|
10345
|
-
onClick: !isDisabled ? onIconClick : void 0,
|
|
10346
|
-
children: renderIcon(iconType)
|
|
10347
|
-
})
|
|
10348
|
-
]
|
|
10349
|
-
})
|
|
10350
|
-
]
|
|
10351
|
-
})),
|
|
10352
|
-
trueReactPlatformHelpers.isStringNotEmpty(infoMessage) && /* @__PURE__ */ jsx("div", {
|
|
10353
|
-
className: classes.info,
|
|
10354
|
-
children: infoMessage
|
|
10355
|
-
}),
|
|
10356
|
-
trueReactPlatformHelpers.isStringNotEmpty(errorMessage) && /* @__PURE__ */ jsx("div", {
|
|
10357
|
-
className: clsx(classes.error, classes["error-".concat(errorPosition)]),
|
|
10358
|
-
children: errorMessage
|
|
10359
|
-
})
|
|
10360
|
-
]
|
|
10610
|
+
return /* @__PURE__ */ jsx(ControlGroup, {
|
|
10611
|
+
errorMessage,
|
|
10612
|
+
infoMessage,
|
|
10613
|
+
testId,
|
|
10614
|
+
tweakStyles: tweakControlGroupStyles,
|
|
10615
|
+
children: /* @__PURE__ */ jsx(InputBase, _object_spread_props$I(_object_spread$P({}, inputProps), {
|
|
10616
|
+
ref,
|
|
10617
|
+
testId,
|
|
10618
|
+
tweakStyles,
|
|
10619
|
+
isInvalid
|
|
10620
|
+
}))
|
|
10361
10621
|
});
|
|
10362
10622
|
});
|
|
10363
10623
|
var EMPTY_DATE_INPUT_VALUE = "__.__.____";
|
|
@@ -10422,10 +10682,10 @@
|
|
|
10422
10682
|
}
|
|
10423
10683
|
return target;
|
|
10424
10684
|
}
|
|
10425
|
-
function _object_without_properties$
|
|
10685
|
+
function _object_without_properties$g(source, excluded) {
|
|
10426
10686
|
if (source == null)
|
|
10427
10687
|
return {};
|
|
10428
|
-
var target = _object_without_properties_loose$
|
|
10688
|
+
var target = _object_without_properties_loose$g(source, excluded);
|
|
10429
10689
|
var key, i;
|
|
10430
10690
|
if (Object.getOwnPropertySymbols) {
|
|
10431
10691
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10440,7 +10700,7 @@
|
|
|
10440
10700
|
}
|
|
10441
10701
|
return target;
|
|
10442
10702
|
}
|
|
10443
|
-
function _object_without_properties_loose$
|
|
10703
|
+
function _object_without_properties_loose$g(source, excluded) {
|
|
10444
10704
|
if (source == null)
|
|
10445
10705
|
return {};
|
|
10446
10706
|
var target = {};
|
|
@@ -10455,7 +10715,7 @@
|
|
|
10455
10715
|
return target;
|
|
10456
10716
|
}
|
|
10457
10717
|
var DateInput = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
10458
|
-
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$
|
|
10718
|
+
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$g(_param, [
|
|
10459
10719
|
"date",
|
|
10460
10720
|
"startDate",
|
|
10461
10721
|
"endDate",
|
|
@@ -10511,7 +10771,7 @@
|
|
|
10511
10771
|
}));
|
|
10512
10772
|
});
|
|
10513
10773
|
const reactDatepicker = "";
|
|
10514
|
-
var
|
|
10774
|
+
var Z_INDEX$1 = dimensions.Z_INDEX;
|
|
10515
10775
|
var useStyles$F = createThemedStyles("SearchInput", {
|
|
10516
10776
|
root: {
|
|
10517
10777
|
position: "relative"
|
|
@@ -10523,33 +10783,26 @@
|
|
|
10523
10783
|
left: 12,
|
|
10524
10784
|
height: "100%",
|
|
10525
10785
|
width: 20,
|
|
10526
|
-
|
|
10527
|
-
|
|
10528
|
-
},
|
|
10529
|
-
iconClickable: {
|
|
10530
|
-
cursor: "pointer"
|
|
10786
|
+
color: colors.GREY_ACTIVE,
|
|
10787
|
+
zIndex: Z_INDEX$1.CONTROL_FOCUS + 1
|
|
10531
10788
|
}
|
|
10532
10789
|
});
|
|
10533
10790
|
var inputStyles$4 = {
|
|
10534
|
-
|
|
10535
|
-
|
|
10536
|
-
|
|
10537
|
-
|
|
10538
|
-
|
|
10539
|
-
|
|
10540
|
-
|
|
10541
|
-
|
|
10542
|
-
|
|
10543
|
-
|
|
10544
|
-
|
|
10791
|
+
tweakControlWrapper: {
|
|
10792
|
+
root: {
|
|
10793
|
+
borderColor: "transparent",
|
|
10794
|
+
borderRadius: 18,
|
|
10795
|
+
paddingLeft: 0,
|
|
10796
|
+
transitionProperty: "background-color, border-color"
|
|
10797
|
+
},
|
|
10798
|
+
focused: {
|
|
10799
|
+
backgroundColor: colors.CLASSIC_WHITE,
|
|
10800
|
+
borderColor: colors.BORDER_MAIN
|
|
10801
|
+
}
|
|
10545
10802
|
},
|
|
10546
|
-
|
|
10803
|
+
inputContent: {
|
|
10547
10804
|
fontSize: 14,
|
|
10548
|
-
paddingLeft:
|
|
10549
|
-
},
|
|
10550
|
-
label: {
|
|
10551
|
-
left: LEFT_PADDING,
|
|
10552
|
-
fontSize: 14
|
|
10805
|
+
paddingLeft: 44
|
|
10553
10806
|
}
|
|
10554
10807
|
};
|
|
10555
10808
|
function _define_property$P(obj, key, value) {
|
|
@@ -10604,10 +10857,10 @@
|
|
|
10604
10857
|
}
|
|
10605
10858
|
return target;
|
|
10606
10859
|
}
|
|
10607
|
-
function _object_without_properties$
|
|
10860
|
+
function _object_without_properties$f(source, excluded) {
|
|
10608
10861
|
if (source == null)
|
|
10609
10862
|
return {};
|
|
10610
|
-
var target = _object_without_properties_loose$
|
|
10863
|
+
var target = _object_without_properties_loose$f(source, excluded);
|
|
10611
10864
|
var key, i;
|
|
10612
10865
|
if (Object.getOwnPropertySymbols) {
|
|
10613
10866
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10622,7 +10875,7 @@
|
|
|
10622
10875
|
}
|
|
10623
10876
|
return target;
|
|
10624
10877
|
}
|
|
10625
|
-
function _object_without_properties_loose$
|
|
10878
|
+
function _object_without_properties_loose$f(source, excluded) {
|
|
10626
10879
|
if (source == null)
|
|
10627
10880
|
return {};
|
|
10628
10881
|
var target = {};
|
|
@@ -10637,12 +10890,13 @@
|
|
|
10637
10890
|
return target;
|
|
10638
10891
|
}
|
|
10639
10892
|
var SearchInput = function(_param) {
|
|
10640
|
-
var _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? true : _param_isClearable, tweakStyles = _param.tweakStyles,
|
|
10893
|
+
var _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? true : _param_isClearable, tweakStyles = _param.tweakStyles, placeholder = _param.placeholder, value = _param.value, testId = _param.testId, data = _param.data, props = _object_without_properties$f(_param, [
|
|
10641
10894
|
"isClearable",
|
|
10642
10895
|
"tweakStyles",
|
|
10896
|
+
"placeholder",
|
|
10897
|
+
"value",
|
|
10643
10898
|
"testId",
|
|
10644
|
-
"data"
|
|
10645
|
-
"onSearchIconClick"
|
|
10899
|
+
"data"
|
|
10646
10900
|
]);
|
|
10647
10901
|
var classes = useStyles$F({
|
|
10648
10902
|
theme: tweakStyles
|
|
@@ -10655,23 +10909,20 @@
|
|
|
10655
10909
|
});
|
|
10656
10910
|
return /* @__PURE__ */ jsxs("div", _object_spread_props$G(_object_spread$N({
|
|
10657
10911
|
className: classes.root
|
|
10658
|
-
}, trueReactPlatformHelpers.addDataAttributes(data
|
|
10912
|
+
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
10659
10913
|
children: [
|
|
10660
|
-
/* @__PURE__ */ jsx("div",
|
|
10661
|
-
className:
|
|
10662
|
-
}, trueReactPlatformHelpers.addClickHandler(onSearchIconClick)), {
|
|
10914
|
+
/* @__PURE__ */ jsx("div", {
|
|
10915
|
+
className: classes.icon,
|
|
10663
10916
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
10664
10917
|
type: "search"
|
|
10665
10918
|
})
|
|
10666
|
-
})
|
|
10919
|
+
}),
|
|
10667
10920
|
/* @__PURE__ */ jsx(Input, _object_spread$N({
|
|
10668
|
-
|
|
10921
|
+
value,
|
|
10922
|
+
placeholder,
|
|
10669
10923
|
isClearable,
|
|
10670
|
-
isActive: props.value !== "" && props.value !== void 0,
|
|
10671
10924
|
testId: trueReactPlatformHelpers.getTestId(testId, "input"),
|
|
10672
|
-
tweakStyles: tweakInputStyles
|
|
10673
|
-
hasFloatingLabel: false,
|
|
10674
|
-
label: props.placeholder
|
|
10925
|
+
tweakStyles: tweakInputStyles
|
|
10675
10926
|
}, props))
|
|
10676
10927
|
]
|
|
10677
10928
|
}));
|
|
@@ -10761,10 +11012,10 @@
|
|
|
10761
11012
|
}
|
|
10762
11013
|
return target;
|
|
10763
11014
|
}
|
|
10764
|
-
function _object_without_properties$
|
|
11015
|
+
function _object_without_properties$e(source, excluded) {
|
|
10765
11016
|
if (source == null)
|
|
10766
11017
|
return {};
|
|
10767
|
-
var target = _object_without_properties_loose$
|
|
11018
|
+
var target = _object_without_properties_loose$e(source, excluded);
|
|
10768
11019
|
var key, i;
|
|
10769
11020
|
if (Object.getOwnPropertySymbols) {
|
|
10770
11021
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10779,7 +11030,7 @@
|
|
|
10779
11030
|
}
|
|
10780
11031
|
return target;
|
|
10781
11032
|
}
|
|
10782
|
-
function _object_without_properties_loose$
|
|
11033
|
+
function _object_without_properties_loose$e(source, excluded) {
|
|
10783
11034
|
if (source == null)
|
|
10784
11035
|
return {};
|
|
10785
11036
|
var target = {};
|
|
@@ -10882,7 +11133,7 @@
|
|
|
10882
11133
|
_this_props.active;
|
|
10883
11134
|
var elementType = _this_props.elementType, children = _this_props.children;
|
|
10884
11135
|
_this_props.options;
|
|
10885
|
-
var wrapperProps = _object_without_properties$
|
|
11136
|
+
var wrapperProps = _object_without_properties$e(_this_props, [
|
|
10886
11137
|
"active",
|
|
10887
11138
|
"elementType",
|
|
10888
11139
|
"children",
|
|
@@ -11244,6 +11495,7 @@
|
|
|
11244
11495
|
return trueReactPlatformHelpers.isNotEmpty(value === null || value === void 0 ? void 0 : value.id) ? String(value.id) : convertValueToString(value);
|
|
11245
11496
|
};
|
|
11246
11497
|
};
|
|
11498
|
+
var CONTROL = dimensions.CONTROL, Z_INDEX = dimensions.Z_INDEX;
|
|
11247
11499
|
var useStyles$D = createThemedStyles("Select", {
|
|
11248
11500
|
root: {
|
|
11249
11501
|
width: "100%",
|
|
@@ -11263,7 +11515,8 @@
|
|
|
11263
11515
|
},
|
|
11264
11516
|
withoutPopper: {
|
|
11265
11517
|
position: "absolute",
|
|
11266
|
-
top: "
|
|
11518
|
+
top: "100%",
|
|
11519
|
+
paddingTop: 4
|
|
11267
11520
|
},
|
|
11268
11521
|
listWrapperInBody: {
|
|
11269
11522
|
minWidth: "auto",
|
|
@@ -11273,16 +11526,17 @@
|
|
|
11273
11526
|
arrow: {
|
|
11274
11527
|
position: "absolute",
|
|
11275
11528
|
right: 12,
|
|
11276
|
-
top:
|
|
11529
|
+
top: "50%",
|
|
11277
11530
|
width: 20,
|
|
11278
11531
|
height: 20,
|
|
11279
11532
|
cursor: "pointer",
|
|
11280
|
-
|
|
11533
|
+
transform: "translateY(-50%)",
|
|
11281
11534
|
transition: animations.defaultTransition,
|
|
11282
|
-
transitionProperty: "transform"
|
|
11535
|
+
transitionProperty: "transform",
|
|
11536
|
+
zIndex: Z_INDEX.CONTROL_FOCUS + 1
|
|
11283
11537
|
},
|
|
11284
11538
|
activeArrow: {
|
|
11285
|
-
transform: "rotate(180deg)"
|
|
11539
|
+
transform: "translateY(-50%) rotate(180deg)"
|
|
11286
11540
|
},
|
|
11287
11541
|
disabled: {
|
|
11288
11542
|
"& $arrow": {
|
|
@@ -11295,21 +11549,27 @@
|
|
|
11295
11549
|
}
|
|
11296
11550
|
},
|
|
11297
11551
|
icon: {
|
|
11298
|
-
width:
|
|
11299
|
-
height:
|
|
11552
|
+
width: CONTROL.ICON_INNER_SIZE,
|
|
11553
|
+
height: CONTROL.ICON_INNER_SIZE
|
|
11554
|
+
},
|
|
11555
|
+
iconWrapper: {
|
|
11556
|
+
display: "flex",
|
|
11557
|
+
alignItems: "center"
|
|
11300
11558
|
}
|
|
11301
11559
|
});
|
|
11302
11560
|
var baseInputStyles = {
|
|
11303
|
-
|
|
11561
|
+
inputContent: {
|
|
11304
11562
|
paddingRight: 32
|
|
11305
11563
|
},
|
|
11306
|
-
|
|
11307
|
-
|
|
11308
|
-
|
|
11564
|
+
tweakControlWrapper: {
|
|
11565
|
+
controls: {
|
|
11566
|
+
paddingRight: 40
|
|
11567
|
+
},
|
|
11568
|
+
icon: {
|
|
11569
|
+
"&:last-child": {
|
|
11570
|
+
paddingRight: 0
|
|
11571
|
+
}
|
|
11309
11572
|
}
|
|
11310
|
-
},
|
|
11311
|
-
controls: {
|
|
11312
|
-
paddingRight: 32
|
|
11313
11573
|
}
|
|
11314
11574
|
};
|
|
11315
11575
|
var readonlyInputBaseStyles = {
|
|
@@ -11317,16 +11577,8 @@
|
|
|
11317
11577
|
cursor: "pointer"
|
|
11318
11578
|
}
|
|
11319
11579
|
};
|
|
11320
|
-
var multiSelectInputBaseStyles = {
|
|
11321
|
-
inputIcon: {
|
|
11322
|
-
"&:not($loading)": {
|
|
11323
|
-
width: "auto"
|
|
11324
|
-
}
|
|
11325
|
-
}
|
|
11326
|
-
};
|
|
11327
11580
|
var readonlyInputStyles = trueReactPlatformHelpers.mergeStyles(baseInputStyles, readonlyInputBaseStyles);
|
|
11328
|
-
var
|
|
11329
|
-
var readonlyMultiSelectStyles = trueReactPlatformHelpers.mergeStyles(baseInputStyles, readonlyInputBaseStyles, multiSelectInputBaseStyles);
|
|
11581
|
+
var readonlyMultiSelectStyles = trueReactPlatformHelpers.mergeStyles(baseInputStyles, readonlyInputBaseStyles);
|
|
11330
11582
|
var getInputStyles = function(param) {
|
|
11331
11583
|
var hasReadonlyInput = param.hasReadonlyInput, isMultiSelect = param.isMultiSelect;
|
|
11332
11584
|
if (hasReadonlyInput && isMultiSelect) {
|
|
@@ -11335,21 +11587,8 @@
|
|
|
11335
11587
|
if (hasReadonlyInput && !isMultiSelect) {
|
|
11336
11588
|
return readonlyInputStyles;
|
|
11337
11589
|
}
|
|
11338
|
-
if (!hasReadonlyInput && isMultiSelect) {
|
|
11339
|
-
return multiSelectInputStyles;
|
|
11340
|
-
}
|
|
11341
11590
|
return baseInputStyles;
|
|
11342
11591
|
};
|
|
11343
|
-
var searchInputStyles$3 = {
|
|
11344
|
-
tweakInput: {
|
|
11345
|
-
inputWrapper: {
|
|
11346
|
-
height: 48,
|
|
11347
|
-
borderRadius: 0,
|
|
11348
|
-
border: "none",
|
|
11349
|
-
backgroundColor: "transparent"
|
|
11350
|
-
}
|
|
11351
|
-
}
|
|
11352
|
-
};
|
|
11353
11592
|
function _array_like_to_array$i(arr, len) {
|
|
11354
11593
|
if (len == null || len > arr.length)
|
|
11355
11594
|
len = arr.length;
|
|
@@ -11484,10 +11723,10 @@
|
|
|
11484
11723
|
}
|
|
11485
11724
|
return target;
|
|
11486
11725
|
}
|
|
11487
|
-
function _object_without_properties$
|
|
11726
|
+
function _object_without_properties$d(source, excluded) {
|
|
11488
11727
|
if (source == null)
|
|
11489
11728
|
return {};
|
|
11490
|
-
var target = _object_without_properties_loose$
|
|
11729
|
+
var target = _object_without_properties_loose$d(source, excluded);
|
|
11491
11730
|
var key, i;
|
|
11492
11731
|
if (Object.getOwnPropertySymbols) {
|
|
11493
11732
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -11502,7 +11741,7 @@
|
|
|
11502
11741
|
}
|
|
11503
11742
|
return target;
|
|
11504
11743
|
}
|
|
11505
|
-
function _object_without_properties_loose$
|
|
11744
|
+
function _object_without_properties_loose$d(source, excluded) {
|
|
11506
11745
|
if (source == null)
|
|
11507
11746
|
return {};
|
|
11508
11747
|
var target = {};
|
|
@@ -11639,7 +11878,7 @@
|
|
|
11639
11878
|
}
|
|
11640
11879
|
function Select(props) {
|
|
11641
11880
|
var _input_current;
|
|
11642
|
-
var options = props.options, isMultiSelect = props.isMultiSelect, value = props.value, header = props.header, footer = props.footer, defaultOptionLabel = props.defaultOptionLabel, allOptionsLabel = props.allOptionsLabel, _props_debounceTime = props.debounceTime, debounceTime = _props_debounceTime === void 0 ? 400 : _props_debounceTime, _props_optionsMode = props.optionsMode, optionsMode = _props_optionsMode === void 0 ? "normal" : _props_optionsMode, noMatchesLabel = props.noMatchesLabel, loadingLabel = props.loadingLabel, tweakStyles = props.tweakStyles, testId = props.testId, isActive = props.isActive, isReadonly = props.isReadonly, isDisabled = props.isDisabled, dropdownOptions = props.dropdownOptions, _props_minSymbolsCountToOpenList = props.minSymbolsCountToOpenList, minSymbolsCountToOpenList = _props_minSymbolsCountToOpenList === void 0 ? 0 : _props_minSymbolsCountToOpenList, _props_dropdownIcon = props.dropdownIcon, dropdownIcon = _props_dropdownIcon === void 0 ? "chevron-down" : _props_dropdownIcon, _props_shouldScrollToList = props.shouldScrollToList, shouldScrollToList = _props_shouldScrollToList === void 0 ? true : _props_shouldScrollToList, searchInput = props.searchInput,
|
|
11881
|
+
var options = props.options, isMultiSelect = props.isMultiSelect, value = props.value, header = props.header, footer = props.footer, defaultOptionLabel = props.defaultOptionLabel, allOptionsLabel = props.allOptionsLabel, _props_debounceTime = props.debounceTime, debounceTime = _props_debounceTime === void 0 ? 400 : _props_debounceTime, _props_optionsMode = props.optionsMode, optionsMode = _props_optionsMode === void 0 ? "normal" : _props_optionsMode, noMatchesLabel = props.noMatchesLabel, loadingLabel = props.loadingLabel, tweakStyles = props.tweakStyles, testId = props.testId, isActive = props.isActive, isReadonly = props.isReadonly, isDisabled = props.isDisabled, dropdownOptions = props.dropdownOptions, _props_minSymbolsCountToOpenList = props.minSymbolsCountToOpenList, minSymbolsCountToOpenList = _props_minSymbolsCountToOpenList === void 0 ? 0 : _props_minSymbolsCountToOpenList, _props_dropdownIcon = props.dropdownIcon, dropdownIcon = _props_dropdownIcon === void 0 ? "chevron-down" : _props_dropdownIcon, _props_shouldScrollToList = props.shouldScrollToList, shouldScrollToList = _props_shouldScrollToList === void 0 ? true : _props_shouldScrollToList, searchInput = props.searchInput, icon = props.icon, onChange = props.onChange, onFocus = props.onFocus, onBlur = props.onBlur, onType = props.onType, onOpen = props.onOpen, _props_isOptionDisabled = props.isOptionDisabled, isOptionDisabled = _props_isOptionDisabled === void 0 ? defaultIsOptionDisabled : _props_isOptionDisabled, _props_compareValuesOnChange = props.compareValuesOnChange, compareValuesOnChange = _props_compareValuesOnChange === void 0 ? defaultCompareFunction : _props_compareValuesOnChange, _props_convertValueToString = props.convertValueToString, convertValueToString = _props_convertValueToString === void 0 ? defaultConvertFunction$2 : _props_convertValueToString, convertValueToId = props.convertValueToId, convertValueToReactNode = props.convertValueToReactNode, optionsFilter = props.optionsFilter, infoMessage = props.infoMessage, errorMessage = props.errorMessage, inputProps = _object_without_properties$d(props, [
|
|
11643
11882
|
"options",
|
|
11644
11883
|
"isMultiSelect",
|
|
11645
11884
|
"value",
|
|
@@ -11661,7 +11900,7 @@
|
|
|
11661
11900
|
"dropdownIcon",
|
|
11662
11901
|
"shouldScrollToList",
|
|
11663
11902
|
"searchInput",
|
|
11664
|
-
"
|
|
11903
|
+
"icon",
|
|
11665
11904
|
"onChange",
|
|
11666
11905
|
"onFocus",
|
|
11667
11906
|
"onBlur",
|
|
@@ -11672,16 +11911,23 @@
|
|
|
11672
11911
|
"convertValueToString",
|
|
11673
11912
|
"convertValueToId",
|
|
11674
11913
|
"convertValueToReactNode",
|
|
11675
|
-
"optionsFilter"
|
|
11914
|
+
"optionsFilter",
|
|
11915
|
+
"infoMessage",
|
|
11916
|
+
"errorMessage"
|
|
11676
11917
|
]);
|
|
11677
11918
|
var classes = useStyles$D({
|
|
11678
11919
|
theme: tweakStyles
|
|
11679
11920
|
});
|
|
11680
|
-
var _ref = searchInput !== null && searchInput !== void 0 ? searchInput : {}, tmp = _ref.shouldRenderInList, shouldRenderSearchInputInList = tmp === void 0 ? false : tmp, searchInputProps = _object_without_properties$
|
|
11921
|
+
var _ref = searchInput !== null && searchInput !== void 0 ? searchInput : {}, tmp = _ref.shouldRenderInList, shouldRenderSearchInputInList = tmp === void 0 ? false : tmp, searchInputProps = _object_without_properties$d(_ref, [
|
|
11681
11922
|
"shouldRenderInList"
|
|
11682
11923
|
]);
|
|
11683
11924
|
var hasSearchInputInList = optionsMode !== "normal" && shouldRenderSearchInputInList;
|
|
11684
11925
|
var hasReadonlyInput = isReadonly || optionsMode === "normal" || shouldRenderSearchInputInList;
|
|
11926
|
+
var tweakControlGroupStyles = useTweakStyles({
|
|
11927
|
+
tweakStyles,
|
|
11928
|
+
className: "tweakControlGroup",
|
|
11929
|
+
currentComponentName: "Select"
|
|
11930
|
+
});
|
|
11685
11931
|
var tweakInputStyles = useTweakStyles({
|
|
11686
11932
|
innerStyles: getInputStyles({
|
|
11687
11933
|
hasReadonlyInput,
|
|
@@ -11692,7 +11938,6 @@
|
|
|
11692
11938
|
currentComponentName: "Select"
|
|
11693
11939
|
});
|
|
11694
11940
|
var tweakSearchInputStyles = useTweakStyles({
|
|
11695
|
-
innerStyles: searchInputStyles$3,
|
|
11696
11941
|
tweakStyles,
|
|
11697
11942
|
className: "tweakSearchInput",
|
|
11698
11943
|
currentComponentName: "Select"
|
|
@@ -11774,7 +12019,7 @@
|
|
|
11774
12019
|
]);
|
|
11775
12020
|
var getDropdownOffset = function() {
|
|
11776
12021
|
var _input_current_parentElement2;
|
|
11777
|
-
if (trueReactPlatformHelpers.isEmpty(input.current)
|
|
12022
|
+
if (trueReactPlatformHelpers.isEmpty(input.current)) {
|
|
11778
12023
|
return 0;
|
|
11779
12024
|
}
|
|
11780
12025
|
var _input_current_parentElement_offsetHeight;
|
|
@@ -12086,7 +12331,8 @@
|
|
|
12086
12331
|
onToggleCheckbox: handleToggleOptionCheckbox
|
|
12087
12332
|
})
|
|
12088
12333
|
}));
|
|
12089
|
-
var multiSelectCounterWithIcon = shouldShowMultiSelectCounter || trueReactPlatformHelpers.isNotEmpty(
|
|
12334
|
+
var multiSelectCounterWithIcon = shouldShowMultiSelectCounter || trueReactPlatformHelpers.isNotEmpty(icon) ? /* @__PURE__ */ jsxs("div", {
|
|
12335
|
+
className: classes.iconWrapper,
|
|
12090
12336
|
children: [
|
|
12091
12337
|
shouldShowMultiSelectCounter && /* @__PURE__ */ jsxs("div", {
|
|
12092
12338
|
className: classes.counter,
|
|
@@ -12096,59 +12342,62 @@
|
|
|
12096
12342
|
")"
|
|
12097
12343
|
]
|
|
12098
12344
|
}),
|
|
12099
|
-
trueReactPlatformHelpers.isNotEmpty(
|
|
12345
|
+
trueReactPlatformHelpers.isNotEmpty(icon) && /* @__PURE__ */ jsx("div", {
|
|
12100
12346
|
className: classes.icon,
|
|
12101
|
-
children: renderIcon(
|
|
12347
|
+
children: renderIcon(icon)
|
|
12102
12348
|
})
|
|
12103
12349
|
]
|
|
12104
12350
|
}) : void 0;
|
|
12105
|
-
return /* @__PURE__ */
|
|
12106
|
-
|
|
12107
|
-
|
|
12108
|
-
|
|
12109
|
-
children:
|
|
12110
|
-
|
|
12111
|
-
|
|
12112
|
-
|
|
12113
|
-
|
|
12114
|
-
|
|
12115
|
-
|
|
12116
|
-
|
|
12117
|
-
|
|
12118
|
-
|
|
12119
|
-
|
|
12120
|
-
|
|
12121
|
-
|
|
12122
|
-
|
|
12123
|
-
|
|
12124
|
-
|
|
12125
|
-
|
|
12126
|
-
|
|
12127
|
-
|
|
12128
|
-
|
|
12129
|
-
|
|
12130
|
-
|
|
12131
|
-
|
|
12132
|
-
},
|
|
12133
|
-
|
|
12134
|
-
|
|
12135
|
-
|
|
12351
|
+
return /* @__PURE__ */ jsx(ControlGroup, {
|
|
12352
|
+
errorMessage,
|
|
12353
|
+
infoMessage,
|
|
12354
|
+
tweakStyles: tweakControlGroupStyles,
|
|
12355
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
12356
|
+
className: classes.root,
|
|
12357
|
+
onKeyDown: handleKeyDown,
|
|
12358
|
+
ref: root2,
|
|
12359
|
+
children: [
|
|
12360
|
+
/* @__PURE__ */ jsxs("div", {
|
|
12361
|
+
className: clsx(classes.inputWrapper, isDisabled && classes.disabled),
|
|
12362
|
+
onClick: isDisabled || isReadonly ? void 0 : handleOnClick,
|
|
12363
|
+
ref: inputWrapper,
|
|
12364
|
+
children: [
|
|
12365
|
+
/* @__PURE__ */ jsx(InputBase, _object_spread$I({
|
|
12366
|
+
value: searchValue !== "" && !shouldRenderSearchInputInList ? searchValue : showedStringValue,
|
|
12367
|
+
onChange: handleInputChange,
|
|
12368
|
+
isActive: isListOpen || isActive,
|
|
12369
|
+
isReadonly: hasReadonlyInput,
|
|
12370
|
+
onFocus: handleFocus,
|
|
12371
|
+
onBlur: handleBlur,
|
|
12372
|
+
isDisabled,
|
|
12373
|
+
ref: input,
|
|
12374
|
+
isLoading: areOptionsLoading,
|
|
12375
|
+
tweakStyles: tweakInputStyles,
|
|
12376
|
+
testId,
|
|
12377
|
+
icon: isMultiSelect ? multiSelectCounterWithIcon : icon
|
|
12378
|
+
}, inputProps)),
|
|
12379
|
+
/* @__PURE__ */ jsx("div", {
|
|
12380
|
+
onMouseDown: function(event) {
|
|
12381
|
+
event.preventDefault();
|
|
12382
|
+
},
|
|
12383
|
+
onClick: onArrowClick,
|
|
12384
|
+
className: clsx(classes.arrow, isOpen && classes.activeArrow),
|
|
12385
|
+
children: renderIcon(dropdownIcon)
|
|
12386
|
+
})
|
|
12387
|
+
]
|
|
12388
|
+
}),
|
|
12389
|
+
shouldUsePopper ? /* @__PURE__ */ jsx(reactOverlays.Portal, {
|
|
12390
|
+
container: shouldRenderInBody ? document.body : inputWrapper.current,
|
|
12391
|
+
children: /* @__PURE__ */ jsx(Fragment, {
|
|
12392
|
+
children: listEl
|
|
12136
12393
|
})
|
|
12137
|
-
|
|
12138
|
-
|
|
12139
|
-
shouldUsePopper ? /* @__PURE__ */ jsx(reactOverlays.Portal, {
|
|
12140
|
-
container: shouldRenderInBody ? document.body : inputWrapper.current,
|
|
12141
|
-
children: /* @__PURE__ */ jsx(Fragment, {
|
|
12142
|
-
children: listEl
|
|
12394
|
+
}) : /* @__PURE__ */ jsx(Fragment, {
|
|
12395
|
+
children: isOpen && listEl
|
|
12143
12396
|
})
|
|
12144
|
-
|
|
12145
|
-
|
|
12146
|
-
})
|
|
12147
|
-
]
|
|
12397
|
+
]
|
|
12398
|
+
})
|
|
12148
12399
|
});
|
|
12149
12400
|
}
|
|
12150
|
-
var SELECT_PADDING_LEFT = 12;
|
|
12151
|
-
var SELECT_PADDING_RIGHT = 24;
|
|
12152
12401
|
var useStyles$C = createThemedStyles("DatePickerHeader", {
|
|
12153
12402
|
btn: {
|
|
12154
12403
|
width: 36,
|
|
@@ -12160,26 +12409,6 @@
|
|
|
12160
12409
|
cursor: "pointer",
|
|
12161
12410
|
marginLeft: 8
|
|
12162
12411
|
},
|
|
12163
|
-
select: {
|
|
12164
|
-
height: 35,
|
|
12165
|
-
fontSize: 16,
|
|
12166
|
-
position: "relative"
|
|
12167
|
-
},
|
|
12168
|
-
selectValue: {
|
|
12169
|
-
fontSize: 16,
|
|
12170
|
-
fontWeight: "bold",
|
|
12171
|
-
color: "transparent",
|
|
12172
|
-
pointerEvents: "none",
|
|
12173
|
-
paddingLeft: SELECT_PADDING_LEFT,
|
|
12174
|
-
paddingRight: SELECT_PADDING_RIGHT
|
|
12175
|
-
},
|
|
12176
|
-
selectControl: {
|
|
12177
|
-
position: "absolute",
|
|
12178
|
-
top: 0,
|
|
12179
|
-
left: 0,
|
|
12180
|
-
width: "100%",
|
|
12181
|
-
height: "100%"
|
|
12182
|
-
},
|
|
12183
12412
|
header: {
|
|
12184
12413
|
margin: 6,
|
|
12185
12414
|
display: "flex",
|
|
@@ -12197,22 +12426,16 @@
|
|
|
12197
12426
|
minHeight: 35
|
|
12198
12427
|
}
|
|
12199
12428
|
},
|
|
12200
|
-
arrow: {
|
|
12201
|
-
right: 0,
|
|
12202
|
-
top: 9,
|
|
12203
|
-
width: 16,
|
|
12204
|
-
height: 16
|
|
12205
|
-
},
|
|
12206
12429
|
tweakInput: {
|
|
12207
|
-
|
|
12208
|
-
|
|
12209
|
-
|
|
12430
|
+
tweakControlWrapper: {
|
|
12431
|
+
root: {
|
|
12432
|
+
"--control-height": "35px",
|
|
12433
|
+
border: "none"
|
|
12434
|
+
}
|
|
12210
12435
|
},
|
|
12211
|
-
|
|
12436
|
+
inputContent: {
|
|
12212
12437
|
fontSize: 16,
|
|
12213
|
-
fontWeight: "bold"
|
|
12214
|
-
paddingRight: SELECT_PADDING_RIGHT - 8,
|
|
12215
|
-
paddingLeft: SELECT_PADDING_LEFT
|
|
12438
|
+
fontWeight: "bold"
|
|
12216
12439
|
}
|
|
12217
12440
|
}
|
|
12218
12441
|
};
|
|
@@ -12235,47 +12458,25 @@
|
|
|
12235
12458
|
return /* @__PURE__ */ jsxs("div", {
|
|
12236
12459
|
className: classes.header,
|
|
12237
12460
|
children: [
|
|
12238
|
-
/* @__PURE__ */
|
|
12239
|
-
|
|
12240
|
-
|
|
12241
|
-
|
|
12242
|
-
|
|
12243
|
-
|
|
12244
|
-
|
|
12245
|
-
|
|
12246
|
-
|
|
12247
|
-
children: /* @__PURE__ */ jsx(Select, {
|
|
12248
|
-
value: months[dateFns.getMonth(date)],
|
|
12249
|
-
options: months,
|
|
12250
|
-
dropdownIcon: "chevron-down-small",
|
|
12251
|
-
tweakStyles: tweakSelectStyles,
|
|
12252
|
-
onChange: function(value) {
|
|
12253
|
-
return changeMonth(months.indexOf(value));
|
|
12254
|
-
}
|
|
12255
|
-
})
|
|
12256
|
-
})
|
|
12257
|
-
]
|
|
12461
|
+
/* @__PURE__ */ jsx(Select, {
|
|
12462
|
+
value: months[dateFns.getMonth(date)],
|
|
12463
|
+
options: months,
|
|
12464
|
+
dropdownIcon: "chevron-down-small",
|
|
12465
|
+
isAutoSized: true,
|
|
12466
|
+
tweakStyles: tweakSelectStyles,
|
|
12467
|
+
onChange: function(value) {
|
|
12468
|
+
return changeMonth(months.indexOf(value));
|
|
12469
|
+
}
|
|
12258
12470
|
}),
|
|
12259
|
-
/* @__PURE__ */
|
|
12260
|
-
|
|
12261
|
-
|
|
12262
|
-
|
|
12263
|
-
|
|
12264
|
-
|
|
12265
|
-
|
|
12266
|
-
|
|
12267
|
-
|
|
12268
|
-
children: /* @__PURE__ */ jsx(Select, {
|
|
12269
|
-
value: dateFns.getYear(date),
|
|
12270
|
-
options: years,
|
|
12271
|
-
dropdownIcon: "chevron-down-small",
|
|
12272
|
-
tweakStyles: tweakSelectStyles,
|
|
12273
|
-
onChange: function(value) {
|
|
12274
|
-
return changeYear(value);
|
|
12275
|
-
}
|
|
12276
|
-
})
|
|
12277
|
-
})
|
|
12278
|
-
]
|
|
12471
|
+
/* @__PURE__ */ jsx(Select, {
|
|
12472
|
+
value: dateFns.getYear(date),
|
|
12473
|
+
options: years,
|
|
12474
|
+
dropdownIcon: "chevron-down-small",
|
|
12475
|
+
isAutoSized: true,
|
|
12476
|
+
tweakStyles: tweakSelectStyles,
|
|
12477
|
+
onChange: function(value) {
|
|
12478
|
+
return changeYear(value);
|
|
12479
|
+
}
|
|
12279
12480
|
}),
|
|
12280
12481
|
/* @__PURE__ */ jsxs("div", {
|
|
12281
12482
|
className: classes.buttons,
|
|
@@ -12444,10 +12645,10 @@
|
|
|
12444
12645
|
}
|
|
12445
12646
|
return target;
|
|
12446
12647
|
}
|
|
12447
|
-
function _object_without_properties$
|
|
12648
|
+
function _object_without_properties$c(source, excluded) {
|
|
12448
12649
|
if (source == null)
|
|
12449
12650
|
return {};
|
|
12450
|
-
var target = _object_without_properties_loose$
|
|
12651
|
+
var target = _object_without_properties_loose$c(source, excluded);
|
|
12451
12652
|
var key, i;
|
|
12452
12653
|
if (Object.getOwnPropertySymbols) {
|
|
12453
12654
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -12462,7 +12663,7 @@
|
|
|
12462
12663
|
}
|
|
12463
12664
|
return target;
|
|
12464
12665
|
}
|
|
12465
|
-
function _object_without_properties_loose$
|
|
12666
|
+
function _object_without_properties_loose$c(source, excluded) {
|
|
12466
12667
|
if (source == null)
|
|
12467
12668
|
return {};
|
|
12468
12669
|
var target = {};
|
|
@@ -12493,7 +12694,7 @@
|
|
|
12493
12694
|
return _array_like_to_array$h(o, minLen);
|
|
12494
12695
|
}
|
|
12495
12696
|
var DatePicker = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
12496
|
-
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, fixedHeight = _param.fixedHeight, excludeScrollbar = _param.excludeScrollbar, 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, highlightDates = _param.highlightDates, calendarContainer = _param.calendarContainer, dayClassName = _param.dayClassName, tmp = _param.customInput, CustomInput = tmp === void 0 ? DateInput : tmp, customInputRef = _param.customInputRef, renderCustomHeader = _param.renderCustomHeader, filterDate = _param.filterDate, onYearChange = _param.onYearChange, onMonthChange = _param.onMonthChange, onCalendarOpen = _param.onCalendarOpen, onCalendarClose = _param.onCalendarClose, onChangeDate = _param.onChangeDate, onChangeRange = _param.onChangeRange, onBlur = _param.onBlur, onFocus = _param.onFocus, onKeyDown = _param.onKeyDown, tweakStyles = _param.tweakStyles, inputProps = _object_without_properties$
|
|
12697
|
+
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, fixedHeight = _param.fixedHeight, excludeScrollbar = _param.excludeScrollbar, 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, highlightDates = _param.highlightDates, calendarContainer = _param.calendarContainer, dayClassName = _param.dayClassName, tmp = _param.customInput, CustomInput = tmp === void 0 ? DateInput : tmp, customInputRef = _param.customInputRef, renderCustomHeader = _param.renderCustomHeader, filterDate = _param.filterDate, onYearChange = _param.onYearChange, onMonthChange = _param.onMonthChange, onCalendarOpen = _param.onCalendarOpen, onCalendarClose = _param.onCalendarClose, onChangeDate = _param.onChangeDate, onChangeRange = _param.onChangeRange, onBlur = _param.onBlur, onFocus = _param.onFocus, onKeyDown = _param.onKeyDown, tweakStyles = _param.tweakStyles, inputProps = _object_without_properties$c(_param, [
|
|
12497
12698
|
"data",
|
|
12498
12699
|
"selectedDate",
|
|
12499
12700
|
"minDate",
|
|
@@ -12569,7 +12770,7 @@
|
|
|
12569
12770
|
isDisabled,
|
|
12570
12771
|
isClearable,
|
|
12571
12772
|
isActive: isOpen,
|
|
12572
|
-
|
|
12773
|
+
icon: isClearable && hasDateInputValue ? void 0 : "calendar",
|
|
12573
12774
|
tweakStyles: tweakDateInputStyles
|
|
12574
12775
|
}), isRange ? {
|
|
12575
12776
|
startDate: startDateValue,
|
|
@@ -13311,10 +13512,10 @@
|
|
|
13311
13512
|
}
|
|
13312
13513
|
return target;
|
|
13313
13514
|
}
|
|
13314
|
-
function _object_without_properties$
|
|
13515
|
+
function _object_without_properties$b(source, excluded) {
|
|
13315
13516
|
if (source == null)
|
|
13316
13517
|
return {};
|
|
13317
|
-
var target = _object_without_properties_loose$
|
|
13518
|
+
var target = _object_without_properties_loose$b(source, excluded);
|
|
13318
13519
|
var key, i;
|
|
13319
13520
|
if (Object.getOwnPropertySymbols) {
|
|
13320
13521
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -13329,7 +13530,7 @@
|
|
|
13329
13530
|
}
|
|
13330
13531
|
return target;
|
|
13331
13532
|
}
|
|
13332
|
-
function _object_without_properties_loose$
|
|
13533
|
+
function _object_without_properties_loose$b(source, excluded) {
|
|
13333
13534
|
if (source == null)
|
|
13334
13535
|
return {};
|
|
13335
13536
|
var target = {};
|
|
@@ -13344,7 +13545,7 @@
|
|
|
13344
13545
|
return target;
|
|
13345
13546
|
}
|
|
13346
13547
|
var IconButton = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
13347
|
-
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$
|
|
13548
|
+
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$b(_param, [
|
|
13348
13549
|
"icon",
|
|
13349
13550
|
"size",
|
|
13350
13551
|
"view",
|
|
@@ -14268,10 +14469,10 @@
|
|
|
14268
14469
|
}
|
|
14269
14470
|
return target;
|
|
14270
14471
|
}
|
|
14271
|
-
function _object_without_properties$
|
|
14472
|
+
function _object_without_properties$a(source, excluded) {
|
|
14272
14473
|
if (source == null)
|
|
14273
14474
|
return {};
|
|
14274
|
-
var target = _object_without_properties_loose$
|
|
14475
|
+
var target = _object_without_properties_loose$a(source, excluded);
|
|
14275
14476
|
var key, i;
|
|
14276
14477
|
if (Object.getOwnPropertySymbols) {
|
|
14277
14478
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -14286,7 +14487,7 @@
|
|
|
14286
14487
|
}
|
|
14287
14488
|
return target;
|
|
14288
14489
|
}
|
|
14289
|
-
function _object_without_properties_loose$
|
|
14490
|
+
function _object_without_properties_loose$a(source, excluded) {
|
|
14290
14491
|
if (source == null)
|
|
14291
14492
|
return {};
|
|
14292
14493
|
var target = {};
|
|
@@ -14419,7 +14620,7 @@
|
|
|
14419
14620
|
}
|
|
14420
14621
|
}
|
|
14421
14622
|
var NumberInput = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
14422
|
-
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$
|
|
14623
|
+
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$a(_param, [
|
|
14423
14624
|
"value",
|
|
14424
14625
|
"canBeFloat",
|
|
14425
14626
|
"canBeNegative",
|
|
@@ -14900,11 +15101,13 @@
|
|
|
14900
15101
|
input: {
|
|
14901
15102
|
minWidth: 120
|
|
14902
15103
|
},
|
|
14903
|
-
|
|
14904
|
-
|
|
14905
|
-
|
|
14906
|
-
|
|
14907
|
-
|
|
15104
|
+
tweakControlWrapper: {
|
|
15105
|
+
icon: {
|
|
15106
|
+
padding: 0,
|
|
15107
|
+
width: 24,
|
|
15108
|
+
"&:last-child": {
|
|
15109
|
+
paddingRight: 0
|
|
15110
|
+
}
|
|
14908
15111
|
}
|
|
14909
15112
|
}
|
|
14910
15113
|
};
|
|
@@ -15020,7 +15223,6 @@
|
|
|
15020
15223
|
onChange: handleFromChange,
|
|
15021
15224
|
value: value === null || value === void 0 ? void 0 : value[0],
|
|
15022
15225
|
label: withFieldNameInLabel ? "".concat(labelName, " ").concat(translates.from.toLocaleLowerCase()) : translates.from,
|
|
15023
|
-
border: "bottom",
|
|
15024
15226
|
canBeFloat,
|
|
15025
15227
|
isClearable: true,
|
|
15026
15228
|
min: fromInput === null || fromInput === void 0 ? void 0 : fromInput.min,
|
|
@@ -15045,7 +15247,6 @@
|
|
|
15045
15247
|
onChange: handleToChange,
|
|
15046
15248
|
value: value === null || value === void 0 ? void 0 : value[1],
|
|
15047
15249
|
label: withFieldNameInLabel ? "".concat(labelName, " ").concat(translates.to.toLocaleLowerCase()) : translates.to,
|
|
15048
|
-
border: "bottom",
|
|
15049
15250
|
canBeFloat,
|
|
15050
15251
|
isClearable: true,
|
|
15051
15252
|
min: toInput === null || toInput === void 0 ? void 0 : toInput.min,
|
|
@@ -15220,10 +15421,12 @@
|
|
|
15220
15421
|
});
|
|
15221
15422
|
var searchInputStyles$2 = {
|
|
15222
15423
|
tweakInput: {
|
|
15223
|
-
|
|
15224
|
-
|
|
15225
|
-
|
|
15226
|
-
|
|
15424
|
+
tweakControlWrapper: {
|
|
15425
|
+
root: {
|
|
15426
|
+
"--control-height": "40px",
|
|
15427
|
+
backgroundColor: "transparent",
|
|
15428
|
+
border: "none"
|
|
15429
|
+
}
|
|
15227
15430
|
}
|
|
15228
15431
|
}
|
|
15229
15432
|
};
|
|
@@ -16178,10 +16381,12 @@
|
|
|
16178
16381
|
});
|
|
16179
16382
|
var searchInputStyles$1 = {
|
|
16180
16383
|
tweakInput: {
|
|
16181
|
-
|
|
16182
|
-
|
|
16183
|
-
|
|
16184
|
-
|
|
16384
|
+
tweakControlWrapper: {
|
|
16385
|
+
root: {
|
|
16386
|
+
"--control-height": "40px",
|
|
16387
|
+
backgroundColor: "transparent",
|
|
16388
|
+
border: "none"
|
|
16389
|
+
}
|
|
16185
16390
|
}
|
|
16186
16391
|
}
|
|
16187
16392
|
};
|
|
@@ -18203,7 +18408,6 @@
|
|
|
18203
18408
|
locale: dateLocale,
|
|
18204
18409
|
onChangeDate: handleChangeFrom,
|
|
18205
18410
|
tweakStyles: tweakStartDatePickerStyles,
|
|
18206
|
-
border: "bottom",
|
|
18207
18411
|
testId: trueReactPlatformHelpers.getTestId(testId, "from"),
|
|
18208
18412
|
isClearable
|
|
18209
18413
|
}, startPickerProps))
|
|
@@ -18218,7 +18422,6 @@
|
|
|
18218
18422
|
locale: dateLocale,
|
|
18219
18423
|
onChangeDate: handleChangeTo,
|
|
18220
18424
|
tweakStyles: tweakEndDatePickerStyles,
|
|
18221
|
-
border: "bottom",
|
|
18222
18425
|
testId: trueReactPlatformHelpers.getTestId(testId, "to"),
|
|
18223
18426
|
isClearable
|
|
18224
18427
|
}, endPickerProps))
|
|
@@ -18765,16 +18968,17 @@
|
|
|
18765
18968
|
});
|
|
18766
18969
|
var searchInputStyles = {
|
|
18767
18970
|
tweakInput: {
|
|
18768
|
-
|
|
18769
|
-
|
|
18770
|
-
|
|
18771
|
-
|
|
18772
|
-
|
|
18773
|
-
|
|
18774
|
-
|
|
18775
|
-
|
|
18776
|
-
|
|
18777
|
-
|
|
18971
|
+
tweakControlWrapper: {
|
|
18972
|
+
root: {
|
|
18973
|
+
"--control-height": "".concat(FILTER_HEIGHT - 2, "px"),
|
|
18974
|
+
backgroundColor: "transparent",
|
|
18975
|
+
border: "none",
|
|
18976
|
+
minWidth: 140
|
|
18977
|
+
},
|
|
18978
|
+
focused: {
|
|
18979
|
+
backgroundColor: "transparent",
|
|
18980
|
+
border: "none"
|
|
18981
|
+
}
|
|
18778
18982
|
}
|
|
18779
18983
|
}
|
|
18780
18984
|
};
|
|
@@ -18898,7 +19102,7 @@
|
|
|
18898
19102
|
return _array_like_to_array$8(o, minLen);
|
|
18899
19103
|
}
|
|
18900
19104
|
function FiltersPaneSearch(param) {
|
|
18901
|
-
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,
|
|
19105
|
+
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, maxLength = param.maxLength, data = param.data, tweakStyles = param.tweakStyles, testId = param.testId;
|
|
18902
19106
|
var classes = useStyles$o({
|
|
18903
19107
|
theme: tweakStyles
|
|
18904
19108
|
});
|
|
@@ -18964,7 +19168,6 @@
|
|
|
18964
19168
|
},
|
|
18965
19169
|
testId: testId !== void 0 ? "".concat(testId, "-input") : void 0,
|
|
18966
19170
|
maxLength,
|
|
18967
|
-
isAutoSizeable,
|
|
18968
19171
|
isDisabled
|
|
18969
19172
|
}),
|
|
18970
19173
|
/* @__PURE__ */ jsxs("div", {
|
|
@@ -26048,10 +26251,10 @@
|
|
|
26048
26251
|
}
|
|
26049
26252
|
return target;
|
|
26050
26253
|
}
|
|
26051
|
-
function _object_without_properties$
|
|
26254
|
+
function _object_without_properties$9(source, excluded) {
|
|
26052
26255
|
if (source == null)
|
|
26053
26256
|
return {};
|
|
26054
|
-
var target = _object_without_properties_loose$
|
|
26257
|
+
var target = _object_without_properties_loose$9(source, excluded);
|
|
26055
26258
|
var key, i;
|
|
26056
26259
|
if (Object.getOwnPropertySymbols) {
|
|
26057
26260
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -26066,7 +26269,7 @@
|
|
|
26066
26269
|
}
|
|
26067
26270
|
return target;
|
|
26068
26271
|
}
|
|
26069
|
-
function _object_without_properties_loose$
|
|
26272
|
+
function _object_without_properties_loose$9(source, excluded) {
|
|
26070
26273
|
if (source == null)
|
|
26071
26274
|
return {};
|
|
26072
26275
|
var target = {};
|
|
@@ -26081,7 +26284,7 @@
|
|
|
26081
26284
|
return target;
|
|
26082
26285
|
}
|
|
26083
26286
|
function FlexibleTableCell(_param) {
|
|
26084
|
-
var row = _param.row, columnName = _param.columnName, config = _param.config, renderMode = _param.renderMode, isSecond = _param.isSecond, isOldSticky = _param.isSticky, isLoading = _param.isLoading, tweakStyles = _param.tweakStyles, valueComponentProps = _object_without_properties$
|
|
26287
|
+
var row = _param.row, columnName = _param.columnName, config = _param.config, renderMode = _param.renderMode, isSecond = _param.isSecond, isOldSticky = _param.isSticky, isLoading = _param.isLoading, tweakStyles = _param.tweakStyles, valueComponentProps = _object_without_properties$9(_param, [
|
|
26085
26288
|
"row",
|
|
26086
26289
|
"columnName",
|
|
26087
26290
|
"config",
|
|
@@ -26424,10 +26627,10 @@
|
|
|
26424
26627
|
}
|
|
26425
26628
|
return target;
|
|
26426
26629
|
}
|
|
26427
|
-
function _object_without_properties$
|
|
26630
|
+
function _object_without_properties$8(source, excluded) {
|
|
26428
26631
|
if (source == null)
|
|
26429
26632
|
return {};
|
|
26430
|
-
var target = _object_without_properties_loose$
|
|
26633
|
+
var target = _object_without_properties_loose$8(source, excluded);
|
|
26431
26634
|
var key, i;
|
|
26432
26635
|
if (Object.getOwnPropertySymbols) {
|
|
26433
26636
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -26442,7 +26645,7 @@
|
|
|
26442
26645
|
}
|
|
26443
26646
|
return target;
|
|
26444
26647
|
}
|
|
26445
|
-
function _object_without_properties_loose$
|
|
26648
|
+
function _object_without_properties_loose$8(source, excluded) {
|
|
26446
26649
|
if (source == null)
|
|
26447
26650
|
return {};
|
|
26448
26651
|
var target = {};
|
|
@@ -26457,7 +26660,7 @@
|
|
|
26457
26660
|
return target;
|
|
26458
26661
|
}
|
|
26459
26662
|
function FlexibleTable(_param) {
|
|
26460
|
-
var content = _param.content, headerContent = _param.headerContent, config = _param.config, enabledColumns = _param.enabledColumns, activeRows = _param.activeRows, uniqueField = _param.uniqueField, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isFirstColumnSticky = _param.isFirstColumnSticky, isFirstColumnSticky = _param_isFirstColumnSticky === void 0 ? false : _param_isFirstColumnSticky, _param_isHorizontallyScrollable = _param.isHorizontallyScrollable, isHorizontallyScrollable = _param_isHorizontallyScrollable === void 0 ? false : _param_isHorizontallyScrollable, _param_isRowFocusable = _param.isRowFocusable, isRowFocusable = _param_isRowFocusable === void 0 ? false : _param_isRowFocusable, 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, _param_shouldRenderHeader = _param.shouldRenderHeader, shouldRenderHeader = _param_shouldRenderHeader === void 0 ? true : _param_shouldRenderHeader, onHeadClick = _param.onHeadClick, restProps = _object_without_properties$
|
|
26663
|
+
var content = _param.content, headerContent = _param.headerContent, config = _param.config, enabledColumns = _param.enabledColumns, activeRows = _param.activeRows, uniqueField = _param.uniqueField, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isFirstColumnSticky = _param.isFirstColumnSticky, isFirstColumnSticky = _param_isFirstColumnSticky === void 0 ? false : _param_isFirstColumnSticky, _param_isHorizontallyScrollable = _param.isHorizontallyScrollable, isHorizontallyScrollable = _param_isHorizontallyScrollable === void 0 ? false : _param_isHorizontallyScrollable, _param_isRowFocusable = _param.isRowFocusable, isRowFocusable = _param_isRowFocusable === void 0 ? false : _param_isRowFocusable, 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, _param_shouldRenderHeader = _param.shouldRenderHeader, shouldRenderHeader = _param_shouldRenderHeader === void 0 ? true : _param_shouldRenderHeader, onHeadClick = _param.onHeadClick, restProps = _object_without_properties$8(_param, [
|
|
26461
26664
|
"content",
|
|
26462
26665
|
"headerContent",
|
|
26463
26666
|
"config",
|
|
@@ -26690,11 +26893,11 @@
|
|
|
26690
26893
|
right: BUTTONS_GAP,
|
|
26691
26894
|
top: BUTTONS_GAP,
|
|
26692
26895
|
bottom: BUTTONS_GAP,
|
|
26693
|
-
zIndex: 1
|
|
26896
|
+
zIndex: dimensions.Z_INDEX.CONTROL_FOCUS + 1
|
|
26694
26897
|
},
|
|
26695
26898
|
button: {
|
|
26696
26899
|
width: "100%",
|
|
26697
|
-
height: (dimensions.
|
|
26900
|
+
height: (dimensions.CONTROL.HEIGHT - 5) / 2,
|
|
26698
26901
|
border: "none",
|
|
26699
26902
|
outline: "none",
|
|
26700
26903
|
backgroundColor: colors.GREY_BACKGROUND,
|
|
@@ -26731,12 +26934,12 @@
|
|
|
26731
26934
|
});
|
|
26732
26935
|
var inputStyles$2 = {
|
|
26733
26936
|
input: {
|
|
26734
|
-
|
|
26937
|
+
paddingRight: BUTTONS_WIDTH + BUTTONS_GAP
|
|
26938
|
+
},
|
|
26939
|
+
tweakControlWrapper: {
|
|
26940
|
+
controls: {
|
|
26735
26941
|
paddingRight: BUTTONS_WIDTH + BUTTONS_GAP
|
|
26736
26942
|
}
|
|
26737
|
-
},
|
|
26738
|
-
controls: {
|
|
26739
|
-
paddingRight: BUTTONS_WIDTH + BUTTONS_GAP
|
|
26740
26943
|
}
|
|
26741
26944
|
};
|
|
26742
26945
|
function _define_property$k(obj, key, value) {
|
|
@@ -26791,10 +26994,10 @@
|
|
|
26791
26994
|
}
|
|
26792
26995
|
return target;
|
|
26793
26996
|
}
|
|
26794
|
-
function _object_without_properties$
|
|
26997
|
+
function _object_without_properties$7(source, excluded) {
|
|
26795
26998
|
if (source == null)
|
|
26796
26999
|
return {};
|
|
26797
|
-
var target = _object_without_properties_loose$
|
|
27000
|
+
var target = _object_without_properties_loose$7(source, excluded);
|
|
26798
27001
|
var key, i;
|
|
26799
27002
|
if (Object.getOwnPropertySymbols) {
|
|
26800
27003
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -26809,7 +27012,7 @@
|
|
|
26809
27012
|
}
|
|
26810
27013
|
return target;
|
|
26811
27014
|
}
|
|
26812
|
-
function _object_without_properties_loose$
|
|
27015
|
+
function _object_without_properties_loose$7(source, excluded) {
|
|
26813
27016
|
if (source == null)
|
|
26814
27017
|
return {};
|
|
26815
27018
|
var target = {};
|
|
@@ -26824,7 +27027,7 @@
|
|
|
26824
27027
|
return target;
|
|
26825
27028
|
}
|
|
26826
27029
|
var IncrementInput = function(_param) {
|
|
26827
|
-
var value = _param.value, onChange = _param.onChange, min2 = _param.min, max2 = _param.max, _param_step = _param.step, step = _param_step === void 0 ? 1 : _param_step, intPartPrecision = _param.intPartPrecision, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, isDisabled = _param.isDisabled, isReadonly = _param.isReadonly, isInvalid = _param.isInvalid, props = _object_without_properties$
|
|
27030
|
+
var value = _param.value, onChange = _param.onChange, min2 = _param.min, max2 = _param.max, _param_step = _param.step, step = _param_step === void 0 ? 1 : _param_step, intPartPrecision = _param.intPartPrecision, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, isDisabled = _param.isDisabled, isReadonly = _param.isReadonly, isInvalid = _param.isInvalid, props = _object_without_properties$7(_param, [
|
|
26828
27031
|
"value",
|
|
26829
27032
|
"onChange",
|
|
26830
27033
|
"min",
|
|
@@ -27272,10 +27475,10 @@
|
|
|
27272
27475
|
}
|
|
27273
27476
|
return target;
|
|
27274
27477
|
}
|
|
27275
|
-
function _object_without_properties$
|
|
27478
|
+
function _object_without_properties$6(source, excluded) {
|
|
27276
27479
|
if (source == null)
|
|
27277
27480
|
return {};
|
|
27278
|
-
var target = _object_without_properties_loose$
|
|
27481
|
+
var target = _object_without_properties_loose$6(source, excluded);
|
|
27279
27482
|
var key, i;
|
|
27280
27483
|
if (Object.getOwnPropertySymbols) {
|
|
27281
27484
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -27290,7 +27493,7 @@
|
|
|
27290
27493
|
}
|
|
27291
27494
|
return target;
|
|
27292
27495
|
}
|
|
27293
|
-
function _object_without_properties_loose$
|
|
27496
|
+
function _object_without_properties_loose$6(source, excluded) {
|
|
27294
27497
|
if (source == null)
|
|
27295
27498
|
return {};
|
|
27296
27499
|
var target = {};
|
|
@@ -27321,7 +27524,7 @@
|
|
|
27321
27524
|
return _array_like_to_array$6(o, minLen);
|
|
27322
27525
|
}
|
|
27323
27526
|
var Modal = function(_param) {
|
|
27324
|
-
var data = _param.data, tweakStyles = _param.tweakStyles, title = _param.title, _param_size = _param.size, size = _param_size === void 0 ? "l" : _param_size, _param_isFooterSticky = _param.isFooterSticky, isFooterSticky = _param_isFooterSticky === void 0 ? false : _param_isFooterSticky, footer = _param.footer, buttons = _param.buttons, _param_buttonsAlign = _param.buttonsAlign, buttonsAlign = _param_buttonsAlign === void 0 ? "right" : _param_buttonsAlign, _param_hasCloseButton = _param.hasCloseButton, hasCloseButton = _param_hasCloseButton === void 0 ? true : _param_hasCloseButton, _param_hasOverlay = _param.hasOverlay, hasOverlay = _param_hasOverlay === void 0 ? true : _param_hasOverlay, _param_isOpen = _param.isOpen, isOpen = _param_isOpen === void 0 ? false : _param_isOpen, _param_position = _param.position, position = _param_position === void 0 ? "center" : _param_position, children = _param.children, zIndex = _param.zIndex, testId = _param.testId, _param_shouldCloseOnOverlayClick = _param.shouldCloseOnOverlayClick, shouldCloseOnOverlayClick = _param_shouldCloseOnOverlayClick === void 0 ? true : _param_shouldCloseOnOverlayClick, _param_shouldCloseOnEsc = _param.shouldCloseOnEsc, shouldCloseOnEsc = _param_shouldCloseOnEsc === void 0 ? true : _param_shouldCloseOnEsc, _param_shouldBlockScroll = _param.shouldBlockScroll, shouldBlockScroll = _param_shouldBlockScroll === void 0 ? true : _param_shouldBlockScroll, _param_timeout = _param.timeout, timeout = _param_timeout === void 0 ? 150 : _param_timeout, _param_unmountOnExit = _param.unmountOnExit, unmountOnExit = _param_unmountOnExit === void 0 ? true : _param_unmountOnExit, onClose = _param.onClose, restProps = _object_without_properties$
|
|
27527
|
+
var data = _param.data, tweakStyles = _param.tweakStyles, title = _param.title, _param_size = _param.size, size = _param_size === void 0 ? "l" : _param_size, _param_isFooterSticky = _param.isFooterSticky, isFooterSticky = _param_isFooterSticky === void 0 ? false : _param_isFooterSticky, footer = _param.footer, buttons = _param.buttons, _param_buttonsAlign = _param.buttonsAlign, buttonsAlign = _param_buttonsAlign === void 0 ? "right" : _param_buttonsAlign, _param_hasCloseButton = _param.hasCloseButton, hasCloseButton = _param_hasCloseButton === void 0 ? true : _param_hasCloseButton, _param_hasOverlay = _param.hasOverlay, hasOverlay = _param_hasOverlay === void 0 ? true : _param_hasOverlay, _param_isOpen = _param.isOpen, isOpen = _param_isOpen === void 0 ? false : _param_isOpen, _param_position = _param.position, position = _param_position === void 0 ? "center" : _param_position, children = _param.children, zIndex = _param.zIndex, testId = _param.testId, _param_shouldCloseOnOverlayClick = _param.shouldCloseOnOverlayClick, shouldCloseOnOverlayClick = _param_shouldCloseOnOverlayClick === void 0 ? true : _param_shouldCloseOnOverlayClick, _param_shouldCloseOnEsc = _param.shouldCloseOnEsc, shouldCloseOnEsc = _param_shouldCloseOnEsc === void 0 ? true : _param_shouldCloseOnEsc, _param_shouldBlockScroll = _param.shouldBlockScroll, shouldBlockScroll = _param_shouldBlockScroll === void 0 ? true : _param_shouldBlockScroll, _param_timeout = _param.timeout, timeout = _param_timeout === void 0 ? 150 : _param_timeout, _param_unmountOnExit = _param.unmountOnExit, unmountOnExit = _param_unmountOnExit === void 0 ? true : _param_unmountOnExit, onClose = _param.onClose, restProps = _object_without_properties$6(_param, [
|
|
27325
27528
|
"data",
|
|
27326
27529
|
"tweakStyles",
|
|
27327
27530
|
"title",
|
|
@@ -28166,7 +28369,7 @@
|
|
|
28166
28369
|
},
|
|
28167
28370
|
searchContainer: {
|
|
28168
28371
|
width: "100%",
|
|
28169
|
-
height: dimensions.
|
|
28372
|
+
height: dimensions.CONTROL.HEIGHT,
|
|
28170
28373
|
display: "flex",
|
|
28171
28374
|
alignItems: "center",
|
|
28172
28375
|
boxSizing: "border-box",
|
|
@@ -28247,9 +28450,11 @@
|
|
|
28247
28450
|
}
|
|
28248
28451
|
});
|
|
28249
28452
|
var inputStyles$1 = {
|
|
28250
|
-
|
|
28251
|
-
|
|
28252
|
-
|
|
28453
|
+
tweakControlWrapper: {
|
|
28454
|
+
root: {
|
|
28455
|
+
border: "none",
|
|
28456
|
+
height: "calc(var(--control-height) - 2px)"
|
|
28457
|
+
}
|
|
28253
28458
|
},
|
|
28254
28459
|
input: {
|
|
28255
28460
|
fontSize: 14,
|
|
@@ -28463,14 +28668,15 @@
|
|
|
28463
28668
|
root: {
|
|
28464
28669
|
width: "100%",
|
|
28465
28670
|
position: "relative",
|
|
28466
|
-
boxSizing: "border-box"
|
|
28671
|
+
boxSizing: "border-box",
|
|
28672
|
+
zIndex: 0
|
|
28467
28673
|
},
|
|
28468
28674
|
countrySelectContainer: {
|
|
28469
28675
|
position: "absolute",
|
|
28470
28676
|
left: 1,
|
|
28471
28677
|
top: 1,
|
|
28472
28678
|
width: COUNTRY_SELECT_WIDTH,
|
|
28473
|
-
height: dimensions.
|
|
28679
|
+
height: dimensions.CONTROL.HEIGHT - 2,
|
|
28474
28680
|
display: "flex",
|
|
28475
28681
|
alignItems: "center",
|
|
28476
28682
|
justifyContent: "center",
|
|
@@ -28481,7 +28687,7 @@
|
|
|
28481
28687
|
],
|
|
28482
28688
|
transition: "border-color 0.2s ease-in",
|
|
28483
28689
|
cursor: "pointer",
|
|
28484
|
-
zIndex:
|
|
28690
|
+
zIndex: dimensions.Z_INDEX.CONTROL_FOCUS + 1
|
|
28485
28691
|
},
|
|
28486
28692
|
disabledCountrySelect: {
|
|
28487
28693
|
cursor: "default"
|
|
@@ -28513,17 +28719,19 @@
|
|
|
28513
28719
|
flagListContainer: {
|
|
28514
28720
|
position: "absolute",
|
|
28515
28721
|
width: "100%",
|
|
28516
|
-
top: dimensions.
|
|
28722
|
+
top: dimensions.CONTROL.HEIGHT + 6,
|
|
28517
28723
|
left: -1,
|
|
28518
28724
|
zIndex: 3
|
|
28519
28725
|
}
|
|
28520
28726
|
});
|
|
28521
28727
|
var inputStyles = {
|
|
28522
|
-
|
|
28523
|
-
|
|
28524
|
-
|
|
28525
|
-
|
|
28526
|
-
|
|
28728
|
+
tweakControlWrapper: {
|
|
28729
|
+
root: {
|
|
28730
|
+
paddingLeft: COUNTRY_SELECT_WIDTH
|
|
28731
|
+
},
|
|
28732
|
+
label: {
|
|
28733
|
+
marginLeft: COUNTRY_SELECT_WIDTH
|
|
28734
|
+
}
|
|
28527
28735
|
}
|
|
28528
28736
|
};
|
|
28529
28737
|
function _array_like_to_array$2(arr, len) {
|
|
@@ -28620,10 +28828,10 @@
|
|
|
28620
28828
|
}
|
|
28621
28829
|
return target;
|
|
28622
28830
|
}
|
|
28623
|
-
function _object_without_properties$
|
|
28831
|
+
function _object_without_properties$5(source, excluded) {
|
|
28624
28832
|
if (source == null)
|
|
28625
28833
|
return {};
|
|
28626
|
-
var target = _object_without_properties_loose$
|
|
28834
|
+
var target = _object_without_properties_loose$5(source, excluded);
|
|
28627
28835
|
var key, i;
|
|
28628
28836
|
if (Object.getOwnPropertySymbols) {
|
|
28629
28837
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -28638,7 +28846,7 @@
|
|
|
28638
28846
|
}
|
|
28639
28847
|
return target;
|
|
28640
28848
|
}
|
|
28641
|
-
function _object_without_properties_loose$
|
|
28849
|
+
function _object_without_properties_loose$5(source, excluded) {
|
|
28642
28850
|
if (source == null)
|
|
28643
28851
|
return {};
|
|
28644
28852
|
var target = {};
|
|
@@ -28669,7 +28877,7 @@
|
|
|
28669
28877
|
return _array_like_to_array$2(o, minLen);
|
|
28670
28878
|
}
|
|
28671
28879
|
var PhoneInput = function(_param) {
|
|
28672
|
-
var _param_locale = _param.locale, locale2 = _param_locale === void 0 ? "ru" : _param_locale, _param_value = _param.value, value = _param_value === void 0 ? DEFAULT_VALUE$1 : _param_value, onChange = _param.onChange, data = _param.data, testId = _param.testId, isDisabled = _param.isDisabled, isInvalid = _param.isInvalid, isActive = _param.isActive, tweakStyles = _param.tweakStyles, _param_codeSearchPlaceholder = _param.codeSearchPlaceholder, codeSearchPlaceholder = _param_codeSearchPlaceholder === void 0 ? "Поиск" : _param_codeSearchPlaceholder, _param_noMatchesLabel = _param.noMatchesLabel, noMatchesLabel = _param_noMatchesLabel === void 0 ? "Ничего не найдено" : _param_noMatchesLabel, inputProps = _object_without_properties$
|
|
28880
|
+
var _param_locale = _param.locale, locale2 = _param_locale === void 0 ? "ru" : _param_locale, _param_value = _param.value, value = _param_value === void 0 ? DEFAULT_VALUE$1 : _param_value, onChange = _param.onChange, data = _param.data, testId = _param.testId, isDisabled = _param.isDisabled, isInvalid = _param.isInvalid, isActive = _param.isActive, tweakStyles = _param.tweakStyles, _param_codeSearchPlaceholder = _param.codeSearchPlaceholder, codeSearchPlaceholder = _param_codeSearchPlaceholder === void 0 ? "Поиск" : _param_codeSearchPlaceholder, _param_noMatchesLabel = _param.noMatchesLabel, noMatchesLabel = _param_noMatchesLabel === void 0 ? "Ничего не найдено" : _param_noMatchesLabel, inputProps = _object_without_properties$5(_param, [
|
|
28673
28881
|
"locale",
|
|
28674
28882
|
"value",
|
|
28675
28883
|
"onChange",
|
|
@@ -29498,10 +29706,10 @@
|
|
|
29498
29706
|
}
|
|
29499
29707
|
return target;
|
|
29500
29708
|
}
|
|
29501
|
-
function _object_without_properties$
|
|
29709
|
+
function _object_without_properties$4(source, excluded) {
|
|
29502
29710
|
if (source == null)
|
|
29503
29711
|
return {};
|
|
29504
|
-
var target = _object_without_properties_loose$
|
|
29712
|
+
var target = _object_without_properties_loose$4(source, excluded);
|
|
29505
29713
|
var key, i;
|
|
29506
29714
|
if (Object.getOwnPropertySymbols) {
|
|
29507
29715
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -29516,7 +29724,7 @@
|
|
|
29516
29724
|
}
|
|
29517
29725
|
return target;
|
|
29518
29726
|
}
|
|
29519
|
-
function _object_without_properties_loose$
|
|
29727
|
+
function _object_without_properties_loose$4(source, excluded) {
|
|
29520
29728
|
if (source == null)
|
|
29521
29729
|
return {};
|
|
29522
29730
|
var target = {};
|
|
@@ -29633,7 +29841,7 @@
|
|
|
29633
29841
|
}
|
|
29634
29842
|
}
|
|
29635
29843
|
var SmartInput = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
29636
|
-
var _param_value = _param.value, value = _param_value === void 0 ? "" : _param_value, _param_smartType = _param.smartType, smartType = _param_smartType === void 0 ? "default" : _param_smartType, regExp = _param.regExp, maxLength = _param.maxLength, _param_isUpperCase = _param.isUpperCase, isUpperCase = _param_isUpperCase === void 0 ? false : _param_isUpperCase, _param_isTransliterationEnabled = _param.isTransliterationEnabled, isTransliterationEnabled = _param_isTransliterationEnabled === void 0 ? true : _param_isTransliterationEnabled, onChange = _param.onChange, rest = _object_without_properties$
|
|
29844
|
+
var _param_value = _param.value, value = _param_value === void 0 ? "" : _param_value, _param_smartType = _param.smartType, smartType = _param_smartType === void 0 ? "default" : _param_smartType, regExp = _param.regExp, maxLength = _param.maxLength, _param_isUpperCase = _param.isUpperCase, isUpperCase = _param_isUpperCase === void 0 ? false : _param_isUpperCase, _param_isTransliterationEnabled = _param.isTransliterationEnabled, isTransliterationEnabled = _param_isTransliterationEnabled === void 0 ? true : _param_isTransliterationEnabled, onChange = _param.onChange, rest = _object_without_properties$4(_param, [
|
|
29637
29845
|
"value",
|
|
29638
29846
|
"smartType",
|
|
29639
29847
|
"regExp",
|
|
@@ -30138,49 +30346,28 @@
|
|
|
30138
30346
|
}
|
|
30139
30347
|
return target;
|
|
30140
30348
|
}
|
|
30141
|
-
var PADDING_X = 12;
|
|
30142
30349
|
var useStyles$4 = createThemedStyles("TextArea", {
|
|
30143
|
-
root: {
|
|
30144
|
-
width: "100%",
|
|
30145
|
-
height: "100%",
|
|
30146
|
-
display: "flex",
|
|
30147
|
-
flexDirection: "column"
|
|
30148
|
-
},
|
|
30149
|
-
wrapper: {
|
|
30150
|
-
display: "flex",
|
|
30151
|
-
position: "relative",
|
|
30152
|
-
width: "100%",
|
|
30153
|
-
flexGrow: 1,
|
|
30154
|
-
boxSizing: "border-box",
|
|
30155
|
-
transition: animations.defaultTransition,
|
|
30156
|
-
transitionProperty: "border-color",
|
|
30157
|
-
backgroundColor: "white",
|
|
30158
|
-
border: [
|
|
30159
|
-
"solid",
|
|
30160
|
-
1,
|
|
30161
|
-
"lightgray"
|
|
30162
|
-
]
|
|
30163
|
-
},
|
|
30164
30350
|
textarea: _object_spread_props$6(_object_spread$6({}, helpers.withScrollBar), {
|
|
30165
30351
|
width: "100%",
|
|
30166
30352
|
height: "100%",
|
|
30167
|
-
outline: "none",
|
|
30168
|
-
outlineStyle: "none",
|
|
30169
30353
|
fontFamily: "inherit",
|
|
30170
30354
|
fontSize: 16,
|
|
30171
30355
|
padding: [
|
|
30172
30356
|
14,
|
|
30173
|
-
|
|
30174
|
-
8
|
|
30357
|
+
0,
|
|
30358
|
+
8,
|
|
30359
|
+
"var(--control-padding)"
|
|
30175
30360
|
],
|
|
30176
|
-
scrollPadding: "14px 0 8px",
|
|
30361
|
+
scrollPadding: "14px 0 8px var(--control-padding)",
|
|
30362
|
+
scrollbarGutter: "stable",
|
|
30363
|
+
boxSizing: "border-box",
|
|
30364
|
+
outline: "none",
|
|
30365
|
+
outlineStyle: "none",
|
|
30177
30366
|
transition: animations.defaultTransition,
|
|
30178
30367
|
transitionProperty: "background-color",
|
|
30179
30368
|
border: "none",
|
|
30180
30369
|
resize: "none",
|
|
30181
|
-
"
|
|
30182
|
-
extend: "disabled"
|
|
30183
|
-
},
|
|
30370
|
+
background: "transparent",
|
|
30184
30371
|
"&::placeholder": {
|
|
30185
30372
|
opacity: 1
|
|
30186
30373
|
},
|
|
@@ -30190,107 +30377,38 @@
|
|
|
30190
30377
|
margin: 0
|
|
30191
30378
|
}
|
|
30192
30379
|
}),
|
|
30193
|
-
|
|
30194
|
-
display: "
|
|
30380
|
+
autoSized: {
|
|
30381
|
+
display: "grid",
|
|
30195
30382
|
gridTemplateRows: "minmax(0, 100%)",
|
|
30196
30383
|
"& > $textarea, &::after": {
|
|
30197
|
-
gridArea: "1 /
|
|
30384
|
+
gridArea: "1 / 2"
|
|
30198
30385
|
},
|
|
30199
30386
|
"&::after": {
|
|
30200
30387
|
extend: "textarea",
|
|
30201
30388
|
content: 'attr(data-value) " "',
|
|
30389
|
+
// Без пробела ломается!
|
|
30202
30390
|
overflowWrap: "break-word",
|
|
30203
30391
|
whiteSpace: "pre-wrap",
|
|
30204
|
-
visibility: "hidden"
|
|
30205
|
-
scrollbarGutter: "stable"
|
|
30206
|
-
}
|
|
30207
|
-
},
|
|
30208
|
-
focused: {
|
|
30209
|
-
position: "relative",
|
|
30210
|
-
zIndex: 1
|
|
30211
|
-
},
|
|
30212
|
-
withFloatingLabel: {
|
|
30213
|
-
"& $textarea, &::after": {
|
|
30214
|
-
paddingTop: 24,
|
|
30215
|
-
scrollPaddingTop: "24px"
|
|
30216
|
-
}
|
|
30217
|
-
},
|
|
30218
|
-
floating: {},
|
|
30219
|
-
activeLabel: {
|
|
30220
|
-
display: "none",
|
|
30221
|
-
"&$floating": {
|
|
30222
|
-
display: "block",
|
|
30223
|
-
transform: "scale(0.75) translateY(-120%)"
|
|
30224
|
-
}
|
|
30225
|
-
},
|
|
30226
|
-
required: {
|
|
30227
|
-
"&:before": {
|
|
30228
|
-
content: '""',
|
|
30229
|
-
position: "absolute",
|
|
30230
|
-
left: -12,
|
|
30231
|
-
top: 20,
|
|
30232
|
-
width: 6,
|
|
30233
|
-
height: 6,
|
|
30234
|
-
borderRadius: "50%",
|
|
30235
|
-
backgroundColor: "red"
|
|
30236
|
-
}
|
|
30237
|
-
},
|
|
30238
|
-
disabled: {},
|
|
30239
|
-
label: {
|
|
30240
|
-
position: "absolute",
|
|
30241
|
-
pointerEvents: "none",
|
|
30242
|
-
left: PADDING_X,
|
|
30243
|
-
top: PADDING_X * 2,
|
|
30244
|
-
transformOrigin: "top left",
|
|
30245
|
-
transform: "translateY(-50%)",
|
|
30246
|
-
transition: animations.defaultTransition,
|
|
30247
|
-
transitionProperty: "transform, color",
|
|
30248
|
-
fontSize: 16
|
|
30249
|
-
},
|
|
30250
|
-
invalid: {
|
|
30251
|
-
borderColor: "red"
|
|
30252
|
-
},
|
|
30253
|
-
invalidLabel: {},
|
|
30254
|
-
error: {
|
|
30255
|
-
fontSize: 12,
|
|
30256
|
-
paddingTop: 4,
|
|
30257
|
-
paddingLeft: 13,
|
|
30258
|
-
color: "red"
|
|
30259
|
-
},
|
|
30260
|
-
requiredLabel: {
|
|
30261
|
-
"&:after": {
|
|
30262
|
-
content: '""',
|
|
30263
|
-
position: "absolute",
|
|
30264
|
-
right: -8,
|
|
30265
|
-
top: 4,
|
|
30266
|
-
transform: "translate(0, -50%)",
|
|
30267
|
-
width: 6,
|
|
30268
|
-
height: 6,
|
|
30269
|
-
borderRadius: "50%",
|
|
30270
|
-
backgroundColor: "red"
|
|
30392
|
+
visibility: "hidden"
|
|
30271
30393
|
}
|
|
30272
30394
|
},
|
|
30273
30395
|
symbolsCount: {
|
|
30274
|
-
display: "block",
|
|
30275
30396
|
textAlign: "right",
|
|
30276
30397
|
marginTop: 4,
|
|
30277
30398
|
fontSize: 12,
|
|
30278
30399
|
marginLeft: "auto",
|
|
30279
|
-
|
|
30280
|
-
|
|
30400
|
+
whiteSpace: "nowrap",
|
|
30401
|
+
pointerEvents: "none"
|
|
30281
30402
|
},
|
|
30282
30403
|
symbolsCountError: {
|
|
30283
30404
|
color: "red"
|
|
30284
|
-
},
|
|
30285
|
-
footer: {
|
|
30286
|
-
display: "flex"
|
|
30287
|
-
},
|
|
30288
|
-
info: {
|
|
30289
|
-
fontSize: 12,
|
|
30290
|
-
paddingTop: 4,
|
|
30291
|
-
paddingLeft: 13
|
|
30292
30405
|
}
|
|
30293
30406
|
});
|
|
30407
|
+
var controlWrapperStyles = {
|
|
30408
|
+
label: {
|
|
30409
|
+
top: 16
|
|
30410
|
+
}
|
|
30411
|
+
};
|
|
30294
30412
|
function _array_like_to_array(arr, len) {
|
|
30295
30413
|
if (len == null || len > arr.length)
|
|
30296
30414
|
len = arr.length;
|
|
@@ -30385,6 +30503,38 @@
|
|
|
30385
30503
|
}
|
|
30386
30504
|
return target;
|
|
30387
30505
|
}
|
|
30506
|
+
function _object_without_properties$3(source, excluded) {
|
|
30507
|
+
if (source == null)
|
|
30508
|
+
return {};
|
|
30509
|
+
var target = _object_without_properties_loose$3(source, excluded);
|
|
30510
|
+
var key, i;
|
|
30511
|
+
if (Object.getOwnPropertySymbols) {
|
|
30512
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
30513
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
30514
|
+
key = sourceSymbolKeys[i];
|
|
30515
|
+
if (excluded.indexOf(key) >= 0)
|
|
30516
|
+
continue;
|
|
30517
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
30518
|
+
continue;
|
|
30519
|
+
target[key] = source[key];
|
|
30520
|
+
}
|
|
30521
|
+
}
|
|
30522
|
+
return target;
|
|
30523
|
+
}
|
|
30524
|
+
function _object_without_properties_loose$3(source, excluded) {
|
|
30525
|
+
if (source == null)
|
|
30526
|
+
return {};
|
|
30527
|
+
var target = {};
|
|
30528
|
+
var sourceKeys = Object.keys(source);
|
|
30529
|
+
var key, i;
|
|
30530
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
30531
|
+
key = sourceKeys[i];
|
|
30532
|
+
if (excluded.indexOf(key) >= 0)
|
|
30533
|
+
continue;
|
|
30534
|
+
target[key] = source[key];
|
|
30535
|
+
}
|
|
30536
|
+
return target;
|
|
30537
|
+
}
|
|
30388
30538
|
function _sliced_to_array(arr, i) {
|
|
30389
30539
|
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
30390
30540
|
}
|
|
@@ -30402,93 +30552,107 @@
|
|
|
30402
30552
|
return _array_like_to_array(o, minLen);
|
|
30403
30553
|
}
|
|
30404
30554
|
var DEFAULT_VALUE = "";
|
|
30405
|
-
var TextArea = /* @__PURE__ */ React.forwardRef(function(
|
|
30406
|
-
var _param_value =
|
|
30555
|
+
var TextArea = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
30556
|
+
var _param_value = _param.value, value = _param_value === void 0 ? DEFAULT_VALUE : _param_value, label = _param.label, placeholder = _param.placeholder, infoMessage = _param.infoMessage, errorMessage = _param.errorMessage, name = _param.name;
|
|
30557
|
+
_param.shouldFocusOnMount;
|
|
30558
|
+
var _param_hasCounter = _param.hasCounter, hasCounter = _param_hasCounter === void 0 ? true : _param_hasCounter, shouldTrimAfterMaxLength = _param.shouldTrimAfterMaxLength, _param_isAutoSized = _param.isAutoSized, isAutoSized = _param_isAutoSized === void 0 ? true : _param_isAutoSized, shouldAlwaysShowPlaceholder = _param.shouldAlwaysShowPlaceholder, isDisabled = _param.isDisabled, isActive = _param.isActive, maxLength = _param.maxLength, rows = _param.rows, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, onChange = _param.onChange, onPaste = _param.onPaste, onFocus = _param.onFocus, onBlur = _param.onBlur, controlProps = _object_without_properties$3(_param, [
|
|
30559
|
+
"value",
|
|
30560
|
+
"label",
|
|
30561
|
+
"placeholder",
|
|
30562
|
+
"infoMessage",
|
|
30563
|
+
"errorMessage",
|
|
30564
|
+
"name",
|
|
30565
|
+
"shouldFocusOnMount",
|
|
30566
|
+
"hasCounter",
|
|
30567
|
+
"shouldTrimAfterMaxLength",
|
|
30568
|
+
"isAutoSized",
|
|
30569
|
+
"shouldAlwaysShowPlaceholder",
|
|
30570
|
+
"isDisabled",
|
|
30571
|
+
"isActive",
|
|
30572
|
+
"maxLength",
|
|
30573
|
+
"rows",
|
|
30574
|
+
"data",
|
|
30575
|
+
"testId",
|
|
30576
|
+
"tweakStyles",
|
|
30577
|
+
"onChange",
|
|
30578
|
+
"onPaste",
|
|
30579
|
+
"onFocus",
|
|
30580
|
+
"onBlur"
|
|
30581
|
+
]);
|
|
30407
30582
|
var classes = useStyles$4({
|
|
30408
30583
|
theme: tweakStyles
|
|
30409
30584
|
});
|
|
30585
|
+
var tweakControlGroupStyles = useTweakStyles({
|
|
30586
|
+
tweakStyles,
|
|
30587
|
+
className: "tweakControlGroup",
|
|
30588
|
+
currentComponentName: "TextArea"
|
|
30589
|
+
});
|
|
30590
|
+
var tweakControlWrapperStyles = useTweakStyles({
|
|
30591
|
+
innerStyles: controlWrapperStyles,
|
|
30592
|
+
tweakStyles,
|
|
30593
|
+
className: "tweakControlWrapper",
|
|
30594
|
+
currentComponentName: "TextArea"
|
|
30595
|
+
});
|
|
30410
30596
|
var _useState = _sliced_to_array(React.useState(false), 2), isFocused = _useState[0], setFocused = _useState[1];
|
|
30411
|
-
var
|
|
30412
|
-
|
|
30413
|
-
|
|
30414
|
-
|
|
30597
|
+
var hasFocus = isFocused || isActive;
|
|
30598
|
+
var hasValue = value !== void 0 && value !== "";
|
|
30599
|
+
var hasLabel = trueReactPlatformHelpers.isReactNodeNotEmpty(label);
|
|
30600
|
+
var hasPlaceholder = (!hasLabel || hasFocus || shouldAlwaysShowPlaceholder) && trueReactPlatformHelpers.isStringNotEmpty(placeholder);
|
|
30601
|
+
var handleChange = function(event) {
|
|
30602
|
+
onChange(event.currentTarget.value, event);
|
|
30415
30603
|
};
|
|
30416
|
-
var
|
|
30604
|
+
var handleFocus = function(event) {
|
|
30417
30605
|
setFocused(true);
|
|
30418
|
-
|
|
30419
|
-
onFocus(event);
|
|
30420
|
-
}
|
|
30606
|
+
onFocus === null || onFocus === void 0 ? void 0 : onFocus(event);
|
|
30421
30607
|
};
|
|
30422
|
-
var
|
|
30608
|
+
var handleBlur = function(event) {
|
|
30423
30609
|
setFocused(false);
|
|
30424
|
-
|
|
30425
|
-
onBlur(event);
|
|
30426
|
-
}
|
|
30610
|
+
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
|
|
30427
30611
|
};
|
|
30428
|
-
|
|
30429
|
-
|
|
30430
|
-
|
|
30431
|
-
|
|
30432
|
-
var props = _object_spread$5({
|
|
30433
|
-
className: classes.textarea,
|
|
30434
|
-
onFocus: handleOnFocus,
|
|
30435
|
-
onBlur: handleOnBlur,
|
|
30436
|
-
onChange: handleOnChange,
|
|
30437
|
-
value,
|
|
30438
|
-
onPaste,
|
|
30439
|
-
disabled: isDisabled,
|
|
30440
|
-
placeholder: hasPlaceholder ? placeholder : void 0,
|
|
30441
|
-
name,
|
|
30442
|
-
autoFocus: shouldFocusOnMount,
|
|
30443
|
-
rows
|
|
30444
|
-
}, trueReactPlatformHelpers.addDataTestId(testId));
|
|
30445
|
-
var hasInfoMessage = trueReactPlatformHelpers.isStringNotEmpty(infoMessage);
|
|
30446
|
-
var hasErrorMessage = trueReactPlatformHelpers.isStringNotEmpty(errorMessage);
|
|
30447
|
-
var _obj2, _obj1;
|
|
30448
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$5(_object_spread$5({
|
|
30449
|
-
className: classes.root
|
|
30450
|
-
}, addDataAttributes(data)), {
|
|
30612
|
+
return /* @__PURE__ */ jsxs(ControlGroup, {
|
|
30613
|
+
errorMessage,
|
|
30614
|
+
infoMessage,
|
|
30615
|
+
tweakStyles: tweakControlGroupStyles,
|
|
30451
30616
|
children: [
|
|
30452
|
-
/* @__PURE__ */
|
|
30453
|
-
|
|
30454
|
-
|
|
30455
|
-
|
|
30456
|
-
|
|
30457
|
-
|
|
30458
|
-
|
|
30459
|
-
|
|
30460
|
-
|
|
30461
|
-
|
|
30462
|
-
|
|
30463
|
-
|
|
30464
|
-
|
|
30465
|
-
|
|
30466
|
-
|
|
30617
|
+
/* @__PURE__ */ jsx(ControlWrapper, _object_spread_props$5(_object_spread$5({
|
|
30618
|
+
label,
|
|
30619
|
+
tweakStyles: tweakControlWrapperStyles,
|
|
30620
|
+
isFocused: hasFocus,
|
|
30621
|
+
isDisabled,
|
|
30622
|
+
hasValue,
|
|
30623
|
+
isFullWidth: true,
|
|
30624
|
+
testId
|
|
30625
|
+
}, controlProps), {
|
|
30626
|
+
children: /* @__PURE__ */ jsx("div", _object_spread_props$5(_object_spread$5({}, isAutoSized && {
|
|
30627
|
+
className: classes.autoSized,
|
|
30628
|
+
"data-value": value
|
|
30629
|
+
}), {
|
|
30630
|
+
children: /* @__PURE__ */ jsx("textarea", _object_spread$5({
|
|
30631
|
+
ref,
|
|
30632
|
+
className: classes.textarea,
|
|
30633
|
+
value,
|
|
30634
|
+
disabled: isDisabled,
|
|
30635
|
+
placeholder: hasPlaceholder ? placeholder : void 0,
|
|
30636
|
+
maxLength: shouldTrimAfterMaxLength ? maxLength : void 0,
|
|
30637
|
+
name,
|
|
30638
|
+
rows,
|
|
30639
|
+
onPaste,
|
|
30640
|
+
onFocus: handleFocus,
|
|
30641
|
+
onBlur: handleBlur,
|
|
30642
|
+
onChange: handleChange
|
|
30643
|
+
}, trueReactPlatformHelpers.addDataAttributes(data, testId, "control")))
|
|
30644
|
+
}))
|
|
30645
|
+
})),
|
|
30646
|
+
hasCounter && trueReactPlatformHelpers.isNotEmpty(maxLength) && /* @__PURE__ */ jsxs("span", {
|
|
30647
|
+
className: clsx(classes.symbolsCount, _define_property$5({}, classes.symbolsCountError, value.length > maxLength)),
|
|
30467
30648
|
children: [
|
|
30468
|
-
|
|
30469
|
-
|
|
30470
|
-
|
|
30471
|
-
}),
|
|
30472
|
-
!hasInfoMessage && hasErrorMessage && /* @__PURE__ */ jsx("div", {
|
|
30473
|
-
className: classes.error,
|
|
30474
|
-
children: errorMessage
|
|
30475
|
-
}),
|
|
30476
|
-
hasCounter && trueReactPlatformHelpers.isNotEmpty(maxLength) && /* @__PURE__ */ jsxs("span", {
|
|
30477
|
-
className: clsx(classes.symbolsCount, _define_property$5({}, classes.symbolsCountError, value.length > maxLength)),
|
|
30478
|
-
children: [
|
|
30479
|
-
value.length,
|
|
30480
|
-
" / ",
|
|
30481
|
-
maxLength
|
|
30482
|
-
]
|
|
30483
|
-
})
|
|
30649
|
+
value.length,
|
|
30650
|
+
" / ",
|
|
30651
|
+
maxLength
|
|
30484
30652
|
]
|
|
30485
|
-
}),
|
|
30486
|
-
hasInfoMessage && hasErrorMessage && /* @__PURE__ */ jsx("div", {
|
|
30487
|
-
className: classes.error,
|
|
30488
|
-
children: errorMessage
|
|
30489
30653
|
})
|
|
30490
30654
|
]
|
|
30491
|
-
})
|
|
30655
|
+
});
|
|
30492
30656
|
});
|
|
30493
30657
|
var useStyles$3 = createThemedStyles("TextButton", {
|
|
30494
30658
|
root: {
|
|
@@ -31197,11 +31361,6 @@
|
|
|
31197
31361
|
}
|
|
31198
31362
|
}));
|
|
31199
31363
|
};
|
|
31200
|
-
var withPopupStyles = {
|
|
31201
|
-
popup: {
|
|
31202
|
-
zIndex: 9999
|
|
31203
|
-
}
|
|
31204
|
-
};
|
|
31205
31364
|
function _define_property(obj, key, value) {
|
|
31206
31365
|
if (key in obj) {
|
|
31207
31366
|
Object.defineProperty(obj, key, {
|
|
@@ -31287,7 +31446,7 @@
|
|
|
31287
31446
|
return target;
|
|
31288
31447
|
}
|
|
31289
31448
|
var WithTooltip = function(_param) {
|
|
31290
|
-
var children = _param.children, _param_eventType = _param.eventType, eventType = _param_eventType === void 0 ? "hover" : _param_eventType, _param_placement = _param.placement, placement = _param_placement === void 0 ? "top" : _param_placement, tooltipText = _param.tooltipText, _param_tooltipView = _param.tooltipView, tooltipView = _param_tooltipView === void 0 ? "tooltip" : _param_tooltipView, _param_tooltipType = _param.tooltipType, tooltipType = _param_tooltipType === void 0 ? "info" : _param_tooltipType, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled,
|
|
31449
|
+
var children = _param.children, _param_eventType = _param.eventType, eventType = _param_eventType === void 0 ? "hover" : _param_eventType, _param_placement = _param.placement, placement = _param_placement === void 0 ? "top" : _param_placement, tooltipText = _param.tooltipText, _param_tooltipView = _param.tooltipView, tooltipView = _param_tooltipView === void 0 ? "tooltip" : _param_tooltipView, _param_tooltipType = _param.tooltipType, tooltipType = _param_tooltipType === void 0 ? "info" : _param_tooltipType, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, tweakStyles = _param.tweakStyles, restProps = _object_without_properties(_param, [
|
|
31291
31450
|
"children",
|
|
31292
31451
|
"eventType",
|
|
31293
31452
|
"placement",
|
|
@@ -31295,29 +31454,22 @@
|
|
|
31295
31454
|
"tooltipView",
|
|
31296
31455
|
"tooltipType",
|
|
31297
31456
|
"isDisabled",
|
|
31298
|
-
"popupData",
|
|
31299
31457
|
"tweakStyles"
|
|
31300
31458
|
]);
|
|
31301
31459
|
var tweakWithPopupStyles = useTweakStyles({
|
|
31302
|
-
innerStyles: withPopupStyles,
|
|
31303
31460
|
tweakStyles,
|
|
31304
|
-
className: "tweakWithPopup"
|
|
31305
|
-
currentComponentName: "WithTooltip"
|
|
31461
|
+
className: "tweakWithPopup"
|
|
31306
31462
|
});
|
|
31307
31463
|
var tweakTooltipStyles = useTweakStyles({
|
|
31308
31464
|
tweakStyles,
|
|
31309
|
-
className: "tweakTooltip"
|
|
31310
|
-
currentComponentName: "WithTooltip"
|
|
31465
|
+
className: "tweakTooltip"
|
|
31311
31466
|
});
|
|
31312
31467
|
return /* @__PURE__ */ jsx(WithPopup, _object_spread_props(_object_spread({
|
|
31313
31468
|
trigger: children,
|
|
31314
31469
|
placement,
|
|
31315
31470
|
eventType,
|
|
31316
|
-
popupData: _object_spread_props(_object_spread({}, popupData), {
|
|
31317
|
-
tooltipView
|
|
31318
|
-
}),
|
|
31319
|
-
isDisabled: isDisabled || !trueReactPlatformHelpers.isReactNodeNotEmpty(tooltipText),
|
|
31320
31471
|
isTriggerWrapped: true,
|
|
31472
|
+
isDisabled: isDisabled || !trueReactPlatformHelpers.isReactNodeNotEmpty(tooltipText),
|
|
31321
31473
|
tweakStyles: tweakWithPopupStyles
|
|
31322
31474
|
}, restProps), {
|
|
31323
31475
|
children: /* @__PURE__ */ jsx(Tooltip, {
|
|
@@ -31335,6 +31487,8 @@
|
|
|
31335
31487
|
exports2.Checkbox = Checkbox;
|
|
31336
31488
|
exports2.CloseButton = CloseButton;
|
|
31337
31489
|
exports2.Colors = Colors;
|
|
31490
|
+
exports2.ControlGroup = ControlGroup;
|
|
31491
|
+
exports2.ControlWrapper = ControlWrapper;
|
|
31338
31492
|
exports2.CssBaseline = CssBaseline;
|
|
31339
31493
|
exports2.DEFAULT_PHONE_MASK = DEFAULT_PHONE_MASK;
|
|
31340
31494
|
exports2.DateInput = DateInput;
|
|
@@ -31360,6 +31514,7 @@
|
|
|
31360
31514
|
exports2.IconButton = IconButton;
|
|
31361
31515
|
exports2.IncrementInput = IncrementInput;
|
|
31362
31516
|
exports2.Input = Input;
|
|
31517
|
+
exports2.InputBase = InputBase;
|
|
31363
31518
|
exports2.List = List;
|
|
31364
31519
|
exports2.ListItem = ListItem;
|
|
31365
31520
|
exports2.Modal = Modal;
|