@true-engineering/true-react-common-ui-kit 3.56.2 → 3.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/FloatDocActions/FloatDocActions.d.ts +6 -0
- package/dist/components/FloatDocActions/FloatDocActions.stories.d.ts +8 -0
- package/dist/components/FloatDocActions/FloatDocActions.styles.d.ts +8 -0
- package/dist/components/FloatDocActions/components/DocActions/DocActions.d.ts +12 -0
- package/dist/components/FloatDocActions/components/DocActions/DocActions.styles.d.ts +6 -0
- package/dist/components/FloatDocActions/components/DocActions/constants.d.ts +1 -0
- package/dist/components/FloatDocActions/components/DocActions/index.d.ts +4 -0
- package/dist/components/FloatDocActions/components/DocActions/types.d.ts +2 -0
- package/dist/components/FloatDocActions/components/index.d.ts +1 -0
- package/dist/components/FloatDocActions/constants.d.ts +1 -0
- package/dist/components/FloatDocActions/index.d.ts +3 -0
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Modal/Modal.styles.d.ts +1 -1
- package/dist/components/Notification/Notification.styles.d.ts +1 -1
- package/dist/components/Toaster/Toaster.styles.d.ts +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/theme/types.d.ts +2 -1
- package/dist/true-react-common-ui-kit.js +826 -549
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +826 -549
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/components/FloatDocActions/FloatDocActions.stories.tsx +117 -0
- package/src/components/FloatDocActions/FloatDocActions.styles.ts +12 -0
- package/src/components/FloatDocActions/FloatDocActions.tsx +34 -0
- package/src/components/FloatDocActions/components/DocActions/DocActions.styles.ts +29 -0
- package/src/components/FloatDocActions/components/DocActions/DocActions.tsx +43 -0
- package/src/components/FloatDocActions/components/DocActions/constants.ts +1 -0
- package/src/components/FloatDocActions/components/DocActions/index.ts +4 -0
- package/src/components/FloatDocActions/components/DocActions/types.ts +3 -0
- package/src/components/FloatDocActions/components/index.ts +1 -0
- package/src/components/FloatDocActions/constants.ts +1 -0
- package/src/components/FloatDocActions/index.ts +3 -0
- package/src/components/Input/Input.tsx +7 -3
- package/src/components/index.ts +1 -0
- package/src/theme/types.ts +5 -3
|
@@ -1310,7 +1310,7 @@
|
|
|
1310
1310
|
_defineProperties$2(Constructor, staticProps);
|
|
1311
1311
|
return Constructor;
|
|
1312
1312
|
}
|
|
1313
|
-
function _define_property$
|
|
1313
|
+
function _define_property$1c(obj, key, value) {
|
|
1314
1314
|
if (key in obj) {
|
|
1315
1315
|
Object.defineProperty(obj, key, {
|
|
1316
1316
|
value,
|
|
@@ -1361,7 +1361,7 @@
|
|
|
1361
1361
|
function _non_iterable_spread$b() {
|
|
1362
1362
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1363
1363
|
}
|
|
1364
|
-
function _object_spread$
|
|
1364
|
+
function _object_spread$1a(target) {
|
|
1365
1365
|
for (var i = 1; i < arguments.length; i++) {
|
|
1366
1366
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1367
1367
|
var ownKeys2 = Object.keys(source);
|
|
@@ -1371,7 +1371,7 @@
|
|
|
1371
1371
|
}));
|
|
1372
1372
|
}
|
|
1373
1373
|
ownKeys2.forEach(function(key) {
|
|
1374
|
-
_define_property$
|
|
1374
|
+
_define_property$1c(target, key, source[key]);
|
|
1375
1375
|
});
|
|
1376
1376
|
}
|
|
1377
1377
|
return target;
|
|
@@ -1503,7 +1503,7 @@
|
|
|
1503
1503
|
first
|
|
1504
1504
|
].concat(_to_consumable_array$b(rest))) : first;
|
|
1505
1505
|
var rules = this.addRules(styles);
|
|
1506
|
-
var classes = _object_spread$
|
|
1506
|
+
var classes = _object_spread$1a({}, _class_private_field_get$1(this, _classes));
|
|
1507
1507
|
rules.forEach(function(rule, key) {
|
|
1508
1508
|
classes[key] = trueReactPlatformHelpers.joinStrings([
|
|
1509
1509
|
classes[key],
|
|
@@ -1638,7 +1638,7 @@
|
|
|
1638
1638
|
_defineProperties$1(Constructor, staticProps);
|
|
1639
1639
|
return Constructor;
|
|
1640
1640
|
}
|
|
1641
|
-
function _define_property$
|
|
1641
|
+
function _define_property$1b(obj, key, value) {
|
|
1642
1642
|
if (key in obj) {
|
|
1643
1643
|
Object.defineProperty(obj, key, {
|
|
1644
1644
|
value,
|
|
@@ -1651,7 +1651,7 @@
|
|
|
1651
1651
|
}
|
|
1652
1652
|
return obj;
|
|
1653
1653
|
}
|
|
1654
|
-
function _object_spread$
|
|
1654
|
+
function _object_spread$19(target) {
|
|
1655
1655
|
for (var i = 1; i < arguments.length; i++) {
|
|
1656
1656
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1657
1657
|
var ownKeys2 = Object.keys(source);
|
|
@@ -1661,7 +1661,7 @@
|
|
|
1661
1661
|
}));
|
|
1662
1662
|
}
|
|
1663
1663
|
ownKeys2.forEach(function(key) {
|
|
1664
|
-
_define_property$
|
|
1664
|
+
_define_property$1b(target, key, source[key]);
|
|
1665
1665
|
});
|
|
1666
1666
|
}
|
|
1667
1667
|
return target;
|
|
@@ -1757,7 +1757,7 @@
|
|
|
1757
1757
|
meta: _class_private_field_get(this, _name),
|
|
1758
1758
|
generateId: jssContext.generateId
|
|
1759
1759
|
});
|
|
1760
|
-
var classes = _object_spread$
|
|
1760
|
+
var classes = _object_spread$19({}, sheet.classes);
|
|
1761
1761
|
var manager = new TweakStylesManager({
|
|
1762
1762
|
sheet,
|
|
1763
1763
|
classes
|
|
@@ -1774,7 +1774,7 @@
|
|
|
1774
1774
|
]);
|
|
1775
1775
|
return ThemedStylesManager2;
|
|
1776
1776
|
}();
|
|
1777
|
-
function _define_property$
|
|
1777
|
+
function _define_property$1a(obj, key, value) {
|
|
1778
1778
|
if (key in obj) {
|
|
1779
1779
|
Object.defineProperty(obj, key, {
|
|
1780
1780
|
value,
|
|
@@ -1787,7 +1787,7 @@
|
|
|
1787
1787
|
}
|
|
1788
1788
|
return obj;
|
|
1789
1789
|
}
|
|
1790
|
-
function _object_spread$
|
|
1790
|
+
function _object_spread$18(target) {
|
|
1791
1791
|
for (var i = 1; i < arguments.length; i++) {
|
|
1792
1792
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1793
1793
|
var ownKeys2 = Object.keys(source);
|
|
@@ -1797,12 +1797,12 @@
|
|
|
1797
1797
|
}));
|
|
1798
1798
|
}
|
|
1799
1799
|
ownKeys2.forEach(function(key) {
|
|
1800
|
-
_define_property$
|
|
1800
|
+
_define_property$1a(target, key, source[key]);
|
|
1801
1801
|
});
|
|
1802
1802
|
}
|
|
1803
1803
|
return target;
|
|
1804
1804
|
}
|
|
1805
|
-
function ownKeys$
|
|
1805
|
+
function ownKeys$Y(object, enumerableOnly) {
|
|
1806
1806
|
var keys2 = Object.keys(object);
|
|
1807
1807
|
if (Object.getOwnPropertySymbols) {
|
|
1808
1808
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -1815,12 +1815,12 @@
|
|
|
1815
1815
|
}
|
|
1816
1816
|
return keys2;
|
|
1817
1817
|
}
|
|
1818
|
-
function _object_spread_props$
|
|
1818
|
+
function _object_spread_props$Y(target, source) {
|
|
1819
1819
|
source = source != null ? source : {};
|
|
1820
1820
|
if (Object.getOwnPropertyDescriptors) {
|
|
1821
1821
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1822
1822
|
} else {
|
|
1823
|
-
ownKeys$
|
|
1823
|
+
ownKeys$Y(Object(source)).forEach(function(key) {
|
|
1824
1824
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1825
1825
|
});
|
|
1826
1826
|
}
|
|
@@ -1831,7 +1831,7 @@
|
|
|
1831
1831
|
var children = param.children, tweakStylesArch = param.tweakStylesArch, generateId = param.generateId;
|
|
1832
1832
|
var context = React.useContext(JssContext);
|
|
1833
1833
|
var value = React.useMemo(function() {
|
|
1834
|
-
return _object_spread_props$
|
|
1834
|
+
return _object_spread_props$Y(_object_spread$18({}, context), {
|
|
1835
1835
|
tweakStylesArch: tweakStylesArch !== null && tweakStylesArch !== void 0 ? tweakStylesArch : context.tweakStylesArch,
|
|
1836
1836
|
generateId: generateId !== null && generateId !== void 0 ? generateId : context.generateId
|
|
1837
1837
|
});
|
|
@@ -1870,7 +1870,7 @@
|
|
|
1870
1870
|
if (Array.isArray(arr))
|
|
1871
1871
|
return arr;
|
|
1872
1872
|
}
|
|
1873
|
-
function _define_property$
|
|
1873
|
+
function _define_property$19(obj, key, value) {
|
|
1874
1874
|
if (key in obj) {
|
|
1875
1875
|
Object.defineProperty(obj, key, {
|
|
1876
1876
|
value,
|
|
@@ -1914,7 +1914,7 @@
|
|
|
1914
1914
|
function _non_iterable_rest$p() {
|
|
1915
1915
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1916
1916
|
}
|
|
1917
|
-
function _object_spread$
|
|
1917
|
+
function _object_spread$17(target) {
|
|
1918
1918
|
for (var i = 1; i < arguments.length; i++) {
|
|
1919
1919
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1920
1920
|
var ownKeys2 = Object.keys(source);
|
|
@@ -1924,12 +1924,12 @@
|
|
|
1924
1924
|
}));
|
|
1925
1925
|
}
|
|
1926
1926
|
ownKeys2.forEach(function(key) {
|
|
1927
|
-
_define_property$
|
|
1927
|
+
_define_property$19(target, key, source[key]);
|
|
1928
1928
|
});
|
|
1929
1929
|
}
|
|
1930
1930
|
return target;
|
|
1931
1931
|
}
|
|
1932
|
-
function ownKeys$
|
|
1932
|
+
function ownKeys$X(object, enumerableOnly) {
|
|
1933
1933
|
var keys2 = Object.keys(object);
|
|
1934
1934
|
if (Object.getOwnPropertySymbols) {
|
|
1935
1935
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -1942,12 +1942,12 @@
|
|
|
1942
1942
|
}
|
|
1943
1943
|
return keys2;
|
|
1944
1944
|
}
|
|
1945
|
-
function _object_spread_props$
|
|
1945
|
+
function _object_spread_props$X(target, source) {
|
|
1946
1946
|
source = source != null ? source : {};
|
|
1947
1947
|
if (Object.getOwnPropertyDescriptors) {
|
|
1948
1948
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1949
1949
|
} else {
|
|
1950
|
-
ownKeys$
|
|
1950
|
+
ownKeys$X(Object(source)).forEach(function(key) {
|
|
1951
1951
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1952
1952
|
});
|
|
1953
1953
|
}
|
|
@@ -2007,7 +2007,7 @@
|
|
|
2007
2007
|
tweakStylesStrategy,
|
|
2008
2008
|
tweakStyles
|
|
2009
2009
|
]);
|
|
2010
|
-
return useStyles2(trueReactPlatformHelpers.isNotEmpty(data) ? _object_spread_props$
|
|
2010
|
+
return useStyles2(trueReactPlatformHelpers.isNotEmpty(data) ? _object_spread_props$X(_object_spread$17({}, data), {
|
|
2011
2011
|
theme
|
|
2012
2012
|
}) : data);
|
|
2013
2013
|
}
|
|
@@ -6555,7 +6555,7 @@
|
|
|
6555
6555
|
if (Array.isArray(arr))
|
|
6556
6556
|
return _array_like_to_array$o(arr);
|
|
6557
6557
|
}
|
|
6558
|
-
function _define_property$
|
|
6558
|
+
function _define_property$18(obj, key, value) {
|
|
6559
6559
|
if (key in obj) {
|
|
6560
6560
|
Object.defineProperty(obj, key, {
|
|
6561
6561
|
value,
|
|
@@ -6575,7 +6575,7 @@
|
|
|
6575
6575
|
function _non_iterable_spread$9() {
|
|
6576
6576
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6577
6577
|
}
|
|
6578
|
-
function _object_spread$
|
|
6578
|
+
function _object_spread$16(target) {
|
|
6579
6579
|
for (var i = 1; i < arguments.length; i++) {
|
|
6580
6580
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6581
6581
|
var ownKeys2 = Object.keys(source);
|
|
@@ -6585,7 +6585,7 @@
|
|
|
6585
6585
|
}));
|
|
6586
6586
|
}
|
|
6587
6587
|
ownKeys2.forEach(function(key) {
|
|
6588
|
-
_define_property$
|
|
6588
|
+
_define_property$18(target, key, source[key]);
|
|
6589
6589
|
});
|
|
6590
6590
|
}
|
|
6591
6591
|
return target;
|
|
@@ -6641,7 +6641,7 @@
|
|
|
6641
6641
|
},
|
|
6642
6642
|
{
|
|
6643
6643
|
name: "flip",
|
|
6644
|
-
options: _object_spread$
|
|
6644
|
+
options: _object_spread$16({
|
|
6645
6645
|
fallbackPlacements: canBeFlipped ? [
|
|
6646
6646
|
"bottom-start",
|
|
6647
6647
|
"top-start"
|
|
@@ -6846,7 +6846,7 @@
|
|
|
6846
6846
|
"file-xml": fileXml,
|
|
6847
6847
|
"file-zip": fileZip
|
|
6848
6848
|
};
|
|
6849
|
-
function _define_property$
|
|
6849
|
+
function _define_property$17(obj, key, value) {
|
|
6850
6850
|
if (key in obj) {
|
|
6851
6851
|
Object.defineProperty(obj, key, {
|
|
6852
6852
|
value,
|
|
@@ -6859,7 +6859,7 @@
|
|
|
6859
6859
|
}
|
|
6860
6860
|
return obj;
|
|
6861
6861
|
}
|
|
6862
|
-
function _object_spread$
|
|
6862
|
+
function _object_spread$15(target) {
|
|
6863
6863
|
for (var i = 1; i < arguments.length; i++) {
|
|
6864
6864
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6865
6865
|
var ownKeys2 = Object.keys(source);
|
|
@@ -6869,7 +6869,7 @@
|
|
|
6869
6869
|
}));
|
|
6870
6870
|
}
|
|
6871
6871
|
ownKeys2.forEach(function(key) {
|
|
6872
|
-
_define_property$
|
|
6872
|
+
_define_property$17(target, key, source[key]);
|
|
6873
6873
|
});
|
|
6874
6874
|
}
|
|
6875
6875
|
return target;
|
|
@@ -6878,7 +6878,7 @@
|
|
|
6878
6878
|
var type = param.type;
|
|
6879
6879
|
var theme = React.useContext(ThemeContext).theme;
|
|
6880
6880
|
var icons = React.useMemo(function() {
|
|
6881
|
-
return _object_spread$
|
|
6881
|
+
return _object_spread$15({}, complexIcons, theme.complexIcons);
|
|
6882
6882
|
}, []);
|
|
6883
6883
|
var ComplexIcon = icons[type];
|
|
6884
6884
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -7749,7 +7749,7 @@
|
|
|
7749
7749
|
]
|
|
7750
7750
|
}
|
|
7751
7751
|
});
|
|
7752
|
-
function _define_property$
|
|
7752
|
+
function _define_property$16(obj, key, value) {
|
|
7753
7753
|
if (key in obj) {
|
|
7754
7754
|
Object.defineProperty(obj, key, {
|
|
7755
7755
|
value,
|
|
@@ -7762,7 +7762,7 @@
|
|
|
7762
7762
|
}
|
|
7763
7763
|
return obj;
|
|
7764
7764
|
}
|
|
7765
|
-
function _object_spread$
|
|
7765
|
+
function _object_spread$14(target) {
|
|
7766
7766
|
for (var i = 1; i < arguments.length; i++) {
|
|
7767
7767
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7768
7768
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7772,12 +7772,12 @@
|
|
|
7772
7772
|
}));
|
|
7773
7773
|
}
|
|
7774
7774
|
ownKeys2.forEach(function(key) {
|
|
7775
|
-
_define_property$
|
|
7775
|
+
_define_property$16(target, key, source[key]);
|
|
7776
7776
|
});
|
|
7777
7777
|
}
|
|
7778
7778
|
return target;
|
|
7779
7779
|
}
|
|
7780
|
-
function ownKeys$
|
|
7780
|
+
function ownKeys$W(object, enumerableOnly) {
|
|
7781
7781
|
var keys2 = Object.keys(object);
|
|
7782
7782
|
if (Object.getOwnPropertySymbols) {
|
|
7783
7783
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7790,12 +7790,12 @@
|
|
|
7790
7790
|
}
|
|
7791
7791
|
return keys2;
|
|
7792
7792
|
}
|
|
7793
|
-
function _object_spread_props$
|
|
7793
|
+
function _object_spread_props$W(target, source) {
|
|
7794
7794
|
source = source != null ? source : {};
|
|
7795
7795
|
if (Object.getOwnPropertyDescriptors) {
|
|
7796
7796
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7797
7797
|
} else {
|
|
7798
|
-
ownKeys$
|
|
7798
|
+
ownKeys$W(Object(source)).forEach(function(key) {
|
|
7799
7799
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7800
7800
|
});
|
|
7801
7801
|
}
|
|
@@ -7806,7 +7806,7 @@
|
|
|
7806
7806
|
var _icon_paths, _icon_rects, _icon_circles;
|
|
7807
7807
|
var theme = React.useContext(ThemeContext).theme;
|
|
7808
7808
|
var icons = React.useMemo(function() {
|
|
7809
|
-
return _object_spread$
|
|
7809
|
+
return _object_spread$14({}, iconsList, theme.icons);
|
|
7810
7810
|
}, []);
|
|
7811
7811
|
var icon = icons[type];
|
|
7812
7812
|
var _icon_viewBox;
|
|
@@ -7819,7 +7819,7 @@
|
|
|
7819
7819
|
children: [
|
|
7820
7820
|
(_icon_paths = icon.paths) === null || _icon_paths === void 0 ? void 0 : _icon_paths.map(function(path, index) {
|
|
7821
7821
|
var _path_fill, _path_stroke;
|
|
7822
|
-
return jsx("path", _object_spread$
|
|
7822
|
+
return jsx("path", _object_spread$14({
|
|
7823
7823
|
fillRule: "evenodd",
|
|
7824
7824
|
clipRule: "evenodd",
|
|
7825
7825
|
fill: (_path_fill = path.fill) !== null && _path_fill !== void 0 ? _path_fill : "currentColor",
|
|
@@ -7827,25 +7827,25 @@
|
|
|
7827
7827
|
}, path), index);
|
|
7828
7828
|
}),
|
|
7829
7829
|
(_icon_rects = icon.rects) === null || _icon_rects === void 0 ? void 0 : _icon_rects.map(function(rect, index) {
|
|
7830
|
-
return /* @__PURE__ */ React.createElement("rect", _object_spread_props$
|
|
7830
|
+
return /* @__PURE__ */ React.createElement("rect", _object_spread_props$W(_object_spread$14({}, rect), {
|
|
7831
7831
|
key: index
|
|
7832
7832
|
}));
|
|
7833
7833
|
}),
|
|
7834
7834
|
(_icon_circles = icon.circles) === null || _icon_circles === void 0 ? void 0 : _icon_circles.map(function(circle, index) {
|
|
7835
|
-
return /* @__PURE__ */ React.createElement("circle", _object_spread_props$
|
|
7835
|
+
return /* @__PURE__ */ React.createElement("circle", _object_spread_props$W(_object_spread$14({}, circle), {
|
|
7836
7836
|
key: index
|
|
7837
7837
|
}));
|
|
7838
7838
|
})
|
|
7839
7839
|
]
|
|
7840
7840
|
});
|
|
7841
7841
|
};
|
|
7842
|
-
var useStyles$
|
|
7842
|
+
var useStyles$X = createThemedStyles("Icon", {
|
|
7843
7843
|
root: {
|
|
7844
7844
|
display: "flex",
|
|
7845
7845
|
alignItems: "center"
|
|
7846
7846
|
}
|
|
7847
7847
|
});
|
|
7848
|
-
function _define_property$
|
|
7848
|
+
function _define_property$15(obj, key, value) {
|
|
7849
7849
|
if (key in obj) {
|
|
7850
7850
|
Object.defineProperty(obj, key, {
|
|
7851
7851
|
value,
|
|
@@ -7858,7 +7858,7 @@
|
|
|
7858
7858
|
}
|
|
7859
7859
|
return obj;
|
|
7860
7860
|
}
|
|
7861
|
-
function _object_spread$
|
|
7861
|
+
function _object_spread$13(target) {
|
|
7862
7862
|
for (var i = 1; i < arguments.length; i++) {
|
|
7863
7863
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7864
7864
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7868,12 +7868,12 @@
|
|
|
7868
7868
|
}));
|
|
7869
7869
|
}
|
|
7870
7870
|
ownKeys2.forEach(function(key) {
|
|
7871
|
-
_define_property$
|
|
7871
|
+
_define_property$15(target, key, source[key]);
|
|
7872
7872
|
});
|
|
7873
7873
|
}
|
|
7874
7874
|
return target;
|
|
7875
7875
|
}
|
|
7876
|
-
function ownKeys$
|
|
7876
|
+
function ownKeys$V(object, enumerableOnly) {
|
|
7877
7877
|
var keys2 = Object.keys(object);
|
|
7878
7878
|
if (Object.getOwnPropertySymbols) {
|
|
7879
7879
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7886,12 +7886,12 @@
|
|
|
7886
7886
|
}
|
|
7887
7887
|
return keys2;
|
|
7888
7888
|
}
|
|
7889
|
-
function _object_spread_props$
|
|
7889
|
+
function _object_spread_props$V(target, source) {
|
|
7890
7890
|
source = source != null ? source : {};
|
|
7891
7891
|
if (Object.getOwnPropertyDescriptors) {
|
|
7892
7892
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7893
7893
|
} else {
|
|
7894
|
-
ownKeys$
|
|
7894
|
+
ownKeys$V(Object(source)).forEach(function(key) {
|
|
7895
7895
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7896
7896
|
});
|
|
7897
7897
|
}
|
|
@@ -7899,10 +7899,10 @@
|
|
|
7899
7899
|
}
|
|
7900
7900
|
var Icon = function(param) {
|
|
7901
7901
|
var type = param.type, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
7902
|
-
var classes = useStyles$
|
|
7902
|
+
var classes = useStyles$X({
|
|
7903
7903
|
theme: tweakStyles
|
|
7904
7904
|
});
|
|
7905
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
7905
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$V(_object_spread$13({
|
|
7906
7906
|
className: classes.root
|
|
7907
7907
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
7908
7908
|
children: isComplexIcon(type) ? /* @__PURE__ */ jsx(ComplexIconBoilerplate, {
|
|
@@ -7926,7 +7926,7 @@
|
|
|
7926
7926
|
});
|
|
7927
7927
|
}
|
|
7928
7928
|
});
|
|
7929
|
-
var useStyles$
|
|
7929
|
+
var useStyles$W = createThemedStyles("WithPopup", {
|
|
7930
7930
|
trigger: {
|
|
7931
7931
|
width: "fit-content"
|
|
7932
7932
|
},
|
|
@@ -7973,7 +7973,7 @@
|
|
|
7973
7973
|
if (Array.isArray(arr))
|
|
7974
7974
|
return _array_like_to_array$m(arr);
|
|
7975
7975
|
}
|
|
7976
|
-
function _define_property$
|
|
7976
|
+
function _define_property$14(obj, key, value) {
|
|
7977
7977
|
if (key in obj) {
|
|
7978
7978
|
Object.defineProperty(obj, key, {
|
|
7979
7979
|
value,
|
|
@@ -8024,7 +8024,7 @@
|
|
|
8024
8024
|
function _non_iterable_spread$7() {
|
|
8025
8025
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8026
8026
|
}
|
|
8027
|
-
function _object_spread
|
|
8027
|
+
function _object_spread$12(target) {
|
|
8028
8028
|
for (var i = 1; i < arguments.length; i++) {
|
|
8029
8029
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8030
8030
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8034,12 +8034,12 @@
|
|
|
8034
8034
|
}));
|
|
8035
8035
|
}
|
|
8036
8036
|
ownKeys2.forEach(function(key) {
|
|
8037
|
-
_define_property$
|
|
8037
|
+
_define_property$14(target, key, source[key]);
|
|
8038
8038
|
});
|
|
8039
8039
|
}
|
|
8040
8040
|
return target;
|
|
8041
8041
|
}
|
|
8042
|
-
function ownKeys$
|
|
8042
|
+
function ownKeys$U(object, enumerableOnly) {
|
|
8043
8043
|
var keys2 = Object.keys(object);
|
|
8044
8044
|
if (Object.getOwnPropertySymbols) {
|
|
8045
8045
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8052,12 +8052,12 @@
|
|
|
8052
8052
|
}
|
|
8053
8053
|
return keys2;
|
|
8054
8054
|
}
|
|
8055
|
-
function _object_spread_props$
|
|
8055
|
+
function _object_spread_props$U(target, source) {
|
|
8056
8056
|
source = source != null ? source : {};
|
|
8057
8057
|
if (Object.getOwnPropertyDescriptors) {
|
|
8058
8058
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8059
8059
|
} else {
|
|
8060
|
-
ownKeys$
|
|
8060
|
+
ownKeys$U(Object(source)).forEach(function(key) {
|
|
8061
8061
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8062
8062
|
});
|
|
8063
8063
|
}
|
|
@@ -8084,7 +8084,7 @@
|
|
|
8084
8084
|
}
|
|
8085
8085
|
var WithPopup = function(param) {
|
|
8086
8086
|
var trigger = param.trigger, children = param.children, _param_middlewares = param.middlewares, middlewares = _param_middlewares === void 0 ? [] : _param_middlewares, _param_eventType = param.eventType, eventType = _param_eventType === void 0 ? "click" : _param_eventType, _param_placement = param.placement, placement = _param_placement === void 0 ? eventType === "click" ? "bottom-end" : "top" : _param_placement, _param_hoverDelay = param.hoverDelay, hoverDelay = _param_hoverDelay === void 0 ? 0 : _param_hoverDelay, _param_popupOffset = param.popupOffset, popupOffset = _param_popupOffset === void 0 ? DEFAULT_OFFSET : _param_popupOffset, arrowProps = param.arrowProps, popupData = param.popupData, _param_shouldStopPropagation = param.shouldStopPropagation, shouldStopPropagation = _param_shouldStopPropagation === void 0 ? eventType === "click" : _param_shouldStopPropagation, _param_shouldHideOnScroll = param.shouldHideOnScroll, shouldHideOnScroll = _param_shouldHideOnScroll === void 0 ? false : _param_shouldHideOnScroll, _param_shouldRenderInBody = param.shouldRenderInBody, shouldRenderInBody = _param_shouldRenderInBody === void 0 ? true : _param_shouldRenderInBody, _param_canBeFlipped = param.canBeFlipped, canBeFlipped = _param_canBeFlipped === void 0 ? true : _param_canBeFlipped, _param_isTriggerWrapped = param.isTriggerWrapped, isTriggerWrapped = _param_isTriggerWrapped === void 0 ? eventType === "hover" : _param_isTriggerWrapped, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_shouldShowArrow = param.shouldShowArrow, shouldShowArrow = _param_shouldShowArrow === void 0 ? false : _param_shouldShowArrow, _param_isMinWidthSameAsTrigger = param.isMinWidthSameAsTrigger, isMinWidthSameAsTrigger = _param_isMinWidthSameAsTrigger === void 0 ? false : _param_isMinWidthSameAsTrigger, hoverOptions = param.hoverOptions, clickOptions = param.clickOptions, focusOptions = param.focusOptions, dismissOptions = param.dismissOptions, transitionOptions = param.transitionOptions, tweakStyles = param.tweakStyles, data = param.data, testId = param.testId, onToggle = param.onToggle;
|
|
8087
|
-
var classes = useStyles$
|
|
8087
|
+
var classes = useStyles$W({
|
|
8088
8088
|
theme: tweakStyles
|
|
8089
8089
|
});
|
|
8090
8090
|
var _useState = _sliced_to_array$m(React.useState(false), 2), isOpen = _useState[0], setIsOpen = _useState[1];
|
|
@@ -8116,7 +8116,7 @@
|
|
|
8116
8116
|
placement,
|
|
8117
8117
|
onOpenChange: handleToggle
|
|
8118
8118
|
}), refs = _useFloating.refs, floatingStyles = _useFloating.floatingStyles, context = _useFloating.context;
|
|
8119
|
-
var hover = react.useHover(context, _object_spread
|
|
8119
|
+
var hover = react.useHover(context, _object_spread$12({
|
|
8120
8120
|
enabled: eventType === "hover",
|
|
8121
8121
|
delay: {
|
|
8122
8122
|
open: hoverDelay,
|
|
@@ -8124,13 +8124,13 @@
|
|
|
8124
8124
|
},
|
|
8125
8125
|
handleClose: react.safePolygon()
|
|
8126
8126
|
}, hoverOptions));
|
|
8127
|
-
var focus = react.useFocus(context, _object_spread
|
|
8127
|
+
var focus = react.useFocus(context, _object_spread$12({
|
|
8128
8128
|
enabled: eventType === "hover"
|
|
8129
8129
|
}, focusOptions));
|
|
8130
|
-
var click = react.useClick(context, _object_spread
|
|
8130
|
+
var click = react.useClick(context, _object_spread$12({
|
|
8131
8131
|
enabled: eventType === "click"
|
|
8132
8132
|
}, clickOptions));
|
|
8133
|
-
var dismiss = react.useDismiss(context, _object_spread
|
|
8133
|
+
var dismiss = react.useDismiss(context, _object_spread$12({
|
|
8134
8134
|
enabled: eventType === "click",
|
|
8135
8135
|
ancestorScroll: shouldHideOnScroll
|
|
8136
8136
|
}, dismissOptions));
|
|
@@ -8140,22 +8140,22 @@
|
|
|
8140
8140
|
focus,
|
|
8141
8141
|
dismiss
|
|
8142
8142
|
]), getFloatingProps = _useInteractions.getFloatingProps, getReferenceProps = _useInteractions.getReferenceProps;
|
|
8143
|
-
var _useTransitionStatus = react.useTransitionStatus(context, _object_spread
|
|
8143
|
+
var _useTransitionStatus = react.useTransitionStatus(context, _object_spread$12({
|
|
8144
8144
|
duration: {
|
|
8145
8145
|
close: 500
|
|
8146
8146
|
}
|
|
8147
8147
|
}, transitionOptions)), isMounted = _useTransitionStatus.isMounted, status = _useTransitionStatus.status;
|
|
8148
|
-
var referenceProps = getReferenceProps(_object_spread
|
|
8148
|
+
var referenceProps = getReferenceProps(_object_spread$12({
|
|
8149
8149
|
ref: refs.setReference
|
|
8150
8150
|
}, shouldStopPropagation && {
|
|
8151
8151
|
onClick: trueReactPlatformHelpers.stopPropagation
|
|
8152
8152
|
}));
|
|
8153
8153
|
var triggerElement = trueReactPlatformHelpers.applyAction(trigger, {
|
|
8154
8154
|
referenceProps: !isTriggerWrapped ? referenceProps : void 0,
|
|
8155
|
-
triggerProps: _object_spread
|
|
8155
|
+
triggerProps: _object_spread$12({
|
|
8156
8156
|
isActive: isOpen,
|
|
8157
8157
|
isDisabled
|
|
8158
|
-
}, !isTriggerWrapped && _object_spread
|
|
8158
|
+
}, !isTriggerWrapped && _object_spread$12({
|
|
8159
8159
|
data,
|
|
8160
8160
|
testId
|
|
8161
8161
|
}, referenceProps))
|
|
@@ -8163,14 +8163,14 @@
|
|
|
8163
8163
|
var _obj2;
|
|
8164
8164
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
8165
8165
|
children: [
|
|
8166
|
-
isTriggerWrapped ? /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8167
|
-
className: clsx(classes.trigger, (_obj2 = {}, _define_property$
|
|
8166
|
+
isTriggerWrapped ? /* @__PURE__ */ jsx("div", _object_spread_props$U(_object_spread$12({
|
|
8167
|
+
className: clsx(classes.trigger, (_obj2 = {}, _define_property$14(_obj2, classes.clickable, eventType === "click"), _define_property$14(_obj2, classes.disabled, isDisabled), _define_property$14(_obj2, classes.active, isOpen), _obj2))
|
|
8168
8168
|
}, referenceProps, trueReactPlatformHelpers.addDataAttributes(data, testId)), {
|
|
8169
8169
|
children: triggerElement
|
|
8170
8170
|
})) : triggerElement,
|
|
8171
8171
|
isMounted && /* @__PURE__ */ jsx(react.FloatingPortal, {
|
|
8172
8172
|
root: shouldRenderInBody ? document.body : refs.reference.current,
|
|
8173
|
-
children: /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8173
|
+
children: /* @__PURE__ */ jsx("div", _object_spread_props$U(_object_spread$12({
|
|
8174
8174
|
ref: refs.setFloating,
|
|
8175
8175
|
style: floatingStyles,
|
|
8176
8176
|
className: classes.popup
|
|
@@ -8178,7 +8178,7 @@
|
|
|
8178
8178
|
children: /* @__PURE__ */ jsxs("div", {
|
|
8179
8179
|
className: classes["dropdown-".concat(status)],
|
|
8180
8180
|
children: [
|
|
8181
|
-
shouldShowArrow && /* @__PURE__ */ jsx(react.FloatingArrow, _object_spread_props$
|
|
8181
|
+
shouldShowArrow && /* @__PURE__ */ jsx(react.FloatingArrow, _object_spread_props$U(_object_spread$12({}, arrowProps), {
|
|
8182
8182
|
ref: arrowRef,
|
|
8183
8183
|
context,
|
|
8184
8184
|
className: classes.arrow
|
|
@@ -8197,7 +8197,7 @@
|
|
|
8197
8197
|
var ITEM_HORIZONTAL_PADDING = 16;
|
|
8198
8198
|
var ICON_SIZE$1 = 20;
|
|
8199
8199
|
var ICON_GAP = 12;
|
|
8200
|
-
var useStyles$
|
|
8200
|
+
var useStyles$V = createThemedStyles("ListItem", {
|
|
8201
8201
|
root: {
|
|
8202
8202
|
display: "flex",
|
|
8203
8203
|
alignItems: "center",
|
|
@@ -8236,7 +8236,7 @@
|
|
|
8236
8236
|
flexGrow: 1
|
|
8237
8237
|
}
|
|
8238
8238
|
});
|
|
8239
|
-
function _define_property$
|
|
8239
|
+
function _define_property$13(obj, key, value) {
|
|
8240
8240
|
if (key in obj) {
|
|
8241
8241
|
Object.defineProperty(obj, key, {
|
|
8242
8242
|
value,
|
|
@@ -8249,7 +8249,7 @@
|
|
|
8249
8249
|
}
|
|
8250
8250
|
return obj;
|
|
8251
8251
|
}
|
|
8252
|
-
function _object_spread$
|
|
8252
|
+
function _object_spread$11(target) {
|
|
8253
8253
|
for (var i = 1; i < arguments.length; i++) {
|
|
8254
8254
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8255
8255
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8259,12 +8259,12 @@
|
|
|
8259
8259
|
}));
|
|
8260
8260
|
}
|
|
8261
8261
|
ownKeys2.forEach(function(key) {
|
|
8262
|
-
_define_property$
|
|
8262
|
+
_define_property$13(target, key, source[key]);
|
|
8263
8263
|
});
|
|
8264
8264
|
}
|
|
8265
8265
|
return target;
|
|
8266
8266
|
}
|
|
8267
|
-
function ownKeys$
|
|
8267
|
+
function ownKeys$T(object, enumerableOnly) {
|
|
8268
8268
|
var keys2 = Object.keys(object);
|
|
8269
8269
|
if (Object.getOwnPropertySymbols) {
|
|
8270
8270
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8277,12 +8277,12 @@
|
|
|
8277
8277
|
}
|
|
8278
8278
|
return keys2;
|
|
8279
8279
|
}
|
|
8280
|
-
function _object_spread_props$
|
|
8280
|
+
function _object_spread_props$T(target, source) {
|
|
8281
8281
|
source = source != null ? source : {};
|
|
8282
8282
|
if (Object.getOwnPropertyDescriptors) {
|
|
8283
8283
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8284
8284
|
} else {
|
|
8285
|
-
ownKeys$
|
|
8285
|
+
ownKeys$T(Object(source)).forEach(function(key) {
|
|
8286
8286
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8287
8287
|
});
|
|
8288
8288
|
}
|
|
@@ -8290,7 +8290,7 @@
|
|
|
8290
8290
|
}
|
|
8291
8291
|
var ListItem = function(param) {
|
|
8292
8292
|
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;
|
|
8293
|
-
var classes = useStyles$
|
|
8293
|
+
var classes = useStyles$V({
|
|
8294
8294
|
theme: tweakStyles
|
|
8295
8295
|
});
|
|
8296
8296
|
var _obj2;
|
|
@@ -8299,9 +8299,9 @@
|
|
|
8299
8299
|
shouldDrawSpacerAbove && /* @__PURE__ */ jsx("div", {
|
|
8300
8300
|
className: classes.spacer
|
|
8301
8301
|
}),
|
|
8302
|
-
/* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
8303
|
-
className: clsx(classes.root, classes[view], (_obj2 = {}, _define_property$
|
|
8304
|
-
}, trueReactPlatformHelpers.addClickHandler(onClick, !isDisabled), trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(_object_spread_props$
|
|
8302
|
+
/* @__PURE__ */ jsxs("div", _object_spread_props$T(_object_spread$11({
|
|
8303
|
+
className: clsx(classes.root, classes[view], (_obj2 = {}, _define_property$13(_obj2, classes.disabledItem, isDisabled), _define_property$13(_obj2, classes.withIconGap, withIconGap), _define_property$13(_obj2, classes.focused, isFocused), _obj2))
|
|
8304
|
+
}, trueReactPlatformHelpers.addClickHandler(onClick, !isDisabled), trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(_object_spread_props$T(_object_spread$11({}, data), {
|
|
8305
8305
|
disabled: isDisabled ? true : void 0
|
|
8306
8306
|
}))), {
|
|
8307
8307
|
children: [
|
|
@@ -8327,7 +8327,7 @@
|
|
|
8327
8327
|
]
|
|
8328
8328
|
});
|
|
8329
8329
|
};
|
|
8330
|
-
var useStyles$
|
|
8330
|
+
var useStyles$U = createThemedStyles("List", {
|
|
8331
8331
|
root: {
|
|
8332
8332
|
minWidth: 180,
|
|
8333
8333
|
backgroundColor: colors.CLASSIC_WHITE,
|
|
@@ -8348,7 +8348,7 @@
|
|
|
8348
8348
|
width: "100%"
|
|
8349
8349
|
}
|
|
8350
8350
|
};
|
|
8351
|
-
function _define_property
|
|
8351
|
+
function _define_property$12(obj, key, value) {
|
|
8352
8352
|
if (key in obj) {
|
|
8353
8353
|
Object.defineProperty(obj, key, {
|
|
8354
8354
|
value,
|
|
@@ -8361,7 +8361,7 @@
|
|
|
8361
8361
|
}
|
|
8362
8362
|
return obj;
|
|
8363
8363
|
}
|
|
8364
|
-
function _object_spread$
|
|
8364
|
+
function _object_spread$10(target) {
|
|
8365
8365
|
for (var i = 1; i < arguments.length; i++) {
|
|
8366
8366
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8367
8367
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8371,12 +8371,12 @@
|
|
|
8371
8371
|
}));
|
|
8372
8372
|
}
|
|
8373
8373
|
ownKeys2.forEach(function(key) {
|
|
8374
|
-
_define_property
|
|
8374
|
+
_define_property$12(target, key, source[key]);
|
|
8375
8375
|
});
|
|
8376
8376
|
}
|
|
8377
8377
|
return target;
|
|
8378
8378
|
}
|
|
8379
|
-
function ownKeys$
|
|
8379
|
+
function ownKeys$S(object, enumerableOnly) {
|
|
8380
8380
|
var keys2 = Object.keys(object);
|
|
8381
8381
|
if (Object.getOwnPropertySymbols) {
|
|
8382
8382
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8389,12 +8389,12 @@
|
|
|
8389
8389
|
}
|
|
8390
8390
|
return keys2;
|
|
8391
8391
|
}
|
|
8392
|
-
function _object_spread_props$
|
|
8392
|
+
function _object_spread_props$S(target, source) {
|
|
8393
8393
|
source = source != null ? source : {};
|
|
8394
8394
|
if (Object.getOwnPropertyDescriptors) {
|
|
8395
8395
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8396
8396
|
} else {
|
|
8397
|
-
ownKeys$
|
|
8397
|
+
ownKeys$S(Object(source)).forEach(function(key) {
|
|
8398
8398
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8399
8399
|
});
|
|
8400
8400
|
}
|
|
@@ -8402,7 +8402,7 @@
|
|
|
8402
8402
|
}
|
|
8403
8403
|
var List = function(param) {
|
|
8404
8404
|
var items = param.items, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles, onClick = param.onClick;
|
|
8405
|
-
var classes = useStyles$
|
|
8405
|
+
var classes = useStyles$U({
|
|
8406
8406
|
theme: tweakStyles
|
|
8407
8407
|
});
|
|
8408
8408
|
var handleItemClick = function(event, param2) {
|
|
@@ -8416,11 +8416,11 @@
|
|
|
8416
8416
|
var isHidden = param2.isHidden;
|
|
8417
8417
|
return !isHidden;
|
|
8418
8418
|
});
|
|
8419
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8419
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$S(_object_spread$10({
|
|
8420
8420
|
className: classes.root
|
|
8421
8421
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
8422
8422
|
children: filteredItems.map(function(item, i) {
|
|
8423
|
-
var itemProps = _object_spread_props$
|
|
8423
|
+
var itemProps = _object_spread_props$S(_object_spread$10({
|
|
8424
8424
|
testId: trueReactPlatformHelpers.getTestId(testId, "item-".concat(i))
|
|
8425
8425
|
}, item), {
|
|
8426
8426
|
shouldDrawSpacerAbove: item.shouldDrawSpacerAbove && i !== 0,
|
|
@@ -8438,7 +8438,7 @@
|
|
|
8438
8438
|
shouldRenderInBody: false,
|
|
8439
8439
|
trigger: function(param2) {
|
|
8440
8440
|
var triggerProps = param2.triggerProps;
|
|
8441
|
-
return /* @__PURE__ */ jsx(ListItem, _object_spread_props$
|
|
8441
|
+
return /* @__PURE__ */ jsx(ListItem, _object_spread_props$S(_object_spread$10({}, itemProps), {
|
|
8442
8442
|
isFocused: triggerProps.isActive
|
|
8443
8443
|
}));
|
|
8444
8444
|
},
|
|
@@ -8449,13 +8449,13 @@
|
|
|
8449
8449
|
onClick
|
|
8450
8450
|
})
|
|
8451
8451
|
})
|
|
8452
|
-
}) : /* @__PURE__ */ jsx(ListItem, _object_spread$
|
|
8452
|
+
}) : /* @__PURE__ */ jsx(ListItem, _object_spread$10({}, itemProps))
|
|
8453
8453
|
}, i);
|
|
8454
8454
|
})
|
|
8455
8455
|
}));
|
|
8456
8456
|
};
|
|
8457
8457
|
var ANIMATION_TIMEOUT = 150;
|
|
8458
|
-
function _define_property$
|
|
8458
|
+
function _define_property$11(obj, key, value) {
|
|
8459
8459
|
if (key in obj) {
|
|
8460
8460
|
Object.defineProperty(obj, key, {
|
|
8461
8461
|
value,
|
|
@@ -8468,7 +8468,7 @@
|
|
|
8468
8468
|
}
|
|
8469
8469
|
return obj;
|
|
8470
8470
|
}
|
|
8471
|
-
function _object_spread
|
|
8471
|
+
function _object_spread$$(target) {
|
|
8472
8472
|
for (var i = 1; i < arguments.length; i++) {
|
|
8473
8473
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8474
8474
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8478,12 +8478,12 @@
|
|
|
8478
8478
|
}));
|
|
8479
8479
|
}
|
|
8480
8480
|
ownKeys2.forEach(function(key) {
|
|
8481
|
-
_define_property$
|
|
8481
|
+
_define_property$11(target, key, source[key]);
|
|
8482
8482
|
});
|
|
8483
8483
|
}
|
|
8484
8484
|
return target;
|
|
8485
8485
|
}
|
|
8486
|
-
var useStyles$
|
|
8486
|
+
var useStyles$T = createThemedStyles("AccountInfo", _object_spread$$({
|
|
8487
8487
|
root: {
|
|
8488
8488
|
display: "flex"
|
|
8489
8489
|
},
|
|
@@ -8537,7 +8537,7 @@
|
|
|
8537
8537
|
if (Array.isArray(arr))
|
|
8538
8538
|
return arr;
|
|
8539
8539
|
}
|
|
8540
|
-
function _define_property$
|
|
8540
|
+
function _define_property$10(obj, key, value) {
|
|
8541
8541
|
if (key in obj) {
|
|
8542
8542
|
Object.defineProperty(obj, key, {
|
|
8543
8543
|
value,
|
|
@@ -8581,7 +8581,7 @@
|
|
|
8581
8581
|
function _non_iterable_rest$l() {
|
|
8582
8582
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8583
8583
|
}
|
|
8584
|
-
function _object_spread$
|
|
8584
|
+
function _object_spread$_(target) {
|
|
8585
8585
|
for (var i = 1; i < arguments.length; i++) {
|
|
8586
8586
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8587
8587
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8591,12 +8591,12 @@
|
|
|
8591
8591
|
}));
|
|
8592
8592
|
}
|
|
8593
8593
|
ownKeys2.forEach(function(key) {
|
|
8594
|
-
_define_property$
|
|
8594
|
+
_define_property$10(target, key, source[key]);
|
|
8595
8595
|
});
|
|
8596
8596
|
}
|
|
8597
8597
|
return target;
|
|
8598
8598
|
}
|
|
8599
|
-
function ownKeys$
|
|
8599
|
+
function ownKeys$R(object, enumerableOnly) {
|
|
8600
8600
|
var keys2 = Object.keys(object);
|
|
8601
8601
|
if (Object.getOwnPropertySymbols) {
|
|
8602
8602
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8609,12 +8609,12 @@
|
|
|
8609
8609
|
}
|
|
8610
8610
|
return keys2;
|
|
8611
8611
|
}
|
|
8612
|
-
function _object_spread_props$
|
|
8612
|
+
function _object_spread_props$R(target, source) {
|
|
8613
8613
|
source = source != null ? source : {};
|
|
8614
8614
|
if (Object.getOwnPropertyDescriptors) {
|
|
8615
8615
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8616
8616
|
} else {
|
|
8617
|
-
ownKeys$
|
|
8617
|
+
ownKeys$R(Object(source)).forEach(function(key) {
|
|
8618
8618
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8619
8619
|
});
|
|
8620
8620
|
}
|
|
@@ -8638,7 +8638,7 @@
|
|
|
8638
8638
|
}
|
|
8639
8639
|
var AccountInfo = function(param) {
|
|
8640
8640
|
var data = param.data, testId = param.testId, avatar = param.avatar, tweakStyles = param.tweakStyles, accountName = param.accountName, options = param.options;
|
|
8641
|
-
var classes = useStyles$
|
|
8641
|
+
var classes = useStyles$T({
|
|
8642
8642
|
theme: tweakStyles
|
|
8643
8643
|
});
|
|
8644
8644
|
var tweakListStyles = useTweakStyles({
|
|
@@ -8658,7 +8658,7 @@
|
|
|
8658
8658
|
useOnClickOutsideWithRef(dropdownRef, function() {
|
|
8659
8659
|
return setIsMenuOpen(false);
|
|
8660
8660
|
}, nameRef);
|
|
8661
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
8661
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$R(_object_spread$_({
|
|
8662
8662
|
className: classes.root
|
|
8663
8663
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
8664
8664
|
children: [
|
|
@@ -8708,7 +8708,7 @@
|
|
|
8708
8708
|
]
|
|
8709
8709
|
}));
|
|
8710
8710
|
};
|
|
8711
|
-
var useStyles$
|
|
8711
|
+
var useStyles$S = createThemedStyles("AddButton", {
|
|
8712
8712
|
root: {
|
|
8713
8713
|
display: "flex",
|
|
8714
8714
|
alignItems: "center",
|
|
@@ -8734,7 +8734,7 @@
|
|
|
8734
8734
|
width: "100%"
|
|
8735
8735
|
}
|
|
8736
8736
|
});
|
|
8737
|
-
function _define_property
|
|
8737
|
+
function _define_property$$(obj, key, value) {
|
|
8738
8738
|
if (key in obj) {
|
|
8739
8739
|
Object.defineProperty(obj, key, {
|
|
8740
8740
|
value,
|
|
@@ -8747,7 +8747,7 @@
|
|
|
8747
8747
|
}
|
|
8748
8748
|
return obj;
|
|
8749
8749
|
}
|
|
8750
|
-
function _object_spread$
|
|
8750
|
+
function _object_spread$Z(target) {
|
|
8751
8751
|
for (var i = 1; i < arguments.length; i++) {
|
|
8752
8752
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8753
8753
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8757,12 +8757,12 @@
|
|
|
8757
8757
|
}));
|
|
8758
8758
|
}
|
|
8759
8759
|
ownKeys2.forEach(function(key) {
|
|
8760
|
-
_define_property
|
|
8760
|
+
_define_property$$(target, key, source[key]);
|
|
8761
8761
|
});
|
|
8762
8762
|
}
|
|
8763
8763
|
return target;
|
|
8764
8764
|
}
|
|
8765
|
-
function ownKeys$
|
|
8765
|
+
function ownKeys$Q(object, enumerableOnly) {
|
|
8766
8766
|
var keys2 = Object.keys(object);
|
|
8767
8767
|
if (Object.getOwnPropertySymbols) {
|
|
8768
8768
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8775,12 +8775,12 @@
|
|
|
8775
8775
|
}
|
|
8776
8776
|
return keys2;
|
|
8777
8777
|
}
|
|
8778
|
-
function _object_spread_props$
|
|
8778
|
+
function _object_spread_props$Q(target, source) {
|
|
8779
8779
|
source = source != null ? source : {};
|
|
8780
8780
|
if (Object.getOwnPropertyDescriptors) {
|
|
8781
8781
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8782
8782
|
} else {
|
|
8783
|
-
ownKeys$
|
|
8783
|
+
ownKeys$Q(Object(source)).forEach(function(key) {
|
|
8784
8784
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8785
8785
|
});
|
|
8786
8786
|
}
|
|
@@ -8788,10 +8788,10 @@
|
|
|
8788
8788
|
}
|
|
8789
8789
|
var AddButton = function(param) {
|
|
8790
8790
|
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;
|
|
8791
|
-
var classes = useStyles$
|
|
8791
|
+
var classes = useStyles$S({
|
|
8792
8792
|
theme: tweakStyles
|
|
8793
8793
|
});
|
|
8794
|
-
return /* @__PURE__ */ jsxs("button", _object_spread_props$
|
|
8794
|
+
return /* @__PURE__ */ jsxs("button", _object_spread_props$Q(_object_spread$Z({
|
|
8795
8795
|
type,
|
|
8796
8796
|
className: clsx(classes.root, isDisabled && classes.disabled, isFullWidth && classes.fullWidth),
|
|
8797
8797
|
onClick: !isDisabled ? onClick : void 0,
|
|
@@ -8810,7 +8810,7 @@
|
|
|
8810
8810
|
]
|
|
8811
8811
|
}));
|
|
8812
8812
|
};
|
|
8813
|
-
var useStyles$
|
|
8813
|
+
var useStyles$R = createThemedStyles("DotsPreloader", {
|
|
8814
8814
|
root: {
|
|
8815
8815
|
display: "flex",
|
|
8816
8816
|
gap: 4,
|
|
@@ -8856,7 +8856,7 @@
|
|
|
8856
8856
|
});
|
|
8857
8857
|
var DotsPreloader = function(param) {
|
|
8858
8858
|
var tweakStyles = param.tweakStyles;
|
|
8859
|
-
var classes = useStyles$
|
|
8859
|
+
var classes = useStyles$R({
|
|
8860
8860
|
theme: tweakStyles
|
|
8861
8861
|
});
|
|
8862
8862
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -8922,7 +8922,7 @@
|
|
|
8922
8922
|
]
|
|
8923
8923
|
});
|
|
8924
8924
|
};
|
|
8925
|
-
var useStyles$
|
|
8925
|
+
var useStyles$Q = createThemedStyles("SvgPreloader", {
|
|
8926
8926
|
root: {
|
|
8927
8927
|
display: "flex",
|
|
8928
8928
|
width: "100%",
|
|
@@ -8932,7 +8932,7 @@
|
|
|
8932
8932
|
var SvgPreloader = function(param) {
|
|
8933
8933
|
var _param_type = param.type, type = _param_type === void 0 ? "default" : _param_type, tweakStyles = param.tweakStyles;
|
|
8934
8934
|
var _theme_preloaders;
|
|
8935
|
-
var classes = useStyles$
|
|
8935
|
+
var classes = useStyles$Q({
|
|
8936
8936
|
theme: tweakStyles
|
|
8937
8937
|
});
|
|
8938
8938
|
var theme = React.useContext(ThemeContext).theme;
|
|
@@ -8946,7 +8946,7 @@
|
|
|
8946
8946
|
}
|
|
8947
8947
|
}) : /* @__PURE__ */ jsx(PreloaderIcon, {});
|
|
8948
8948
|
};
|
|
8949
|
-
var useStyles$
|
|
8949
|
+
var useStyles$P = createThemedStyles("ThemedPreloader", {
|
|
8950
8950
|
root: {
|
|
8951
8951
|
display: "flex"
|
|
8952
8952
|
},
|
|
@@ -8957,7 +8957,7 @@
|
|
|
8957
8957
|
color: "currentColor"
|
|
8958
8958
|
}
|
|
8959
8959
|
});
|
|
8960
|
-
function _define_property$
|
|
8960
|
+
function _define_property$_(obj, key, value) {
|
|
8961
8961
|
if (key in obj) {
|
|
8962
8962
|
Object.defineProperty(obj, key, {
|
|
8963
8963
|
value,
|
|
@@ -8970,7 +8970,7 @@
|
|
|
8970
8970
|
}
|
|
8971
8971
|
return obj;
|
|
8972
8972
|
}
|
|
8973
|
-
function _object_spread$
|
|
8973
|
+
function _object_spread$Y(target) {
|
|
8974
8974
|
for (var i = 1; i < arguments.length; i++) {
|
|
8975
8975
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8976
8976
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8980,12 +8980,12 @@
|
|
|
8980
8980
|
}));
|
|
8981
8981
|
}
|
|
8982
8982
|
ownKeys2.forEach(function(key) {
|
|
8983
|
-
_define_property$
|
|
8983
|
+
_define_property$_(target, key, source[key]);
|
|
8984
8984
|
});
|
|
8985
8985
|
}
|
|
8986
8986
|
return target;
|
|
8987
8987
|
}
|
|
8988
|
-
function ownKeys$
|
|
8988
|
+
function ownKeys$P(object, enumerableOnly) {
|
|
8989
8989
|
var keys2 = Object.keys(object);
|
|
8990
8990
|
if (Object.getOwnPropertySymbols) {
|
|
8991
8991
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8998,12 +8998,12 @@
|
|
|
8998
8998
|
}
|
|
8999
8999
|
return keys2;
|
|
9000
9000
|
}
|
|
9001
|
-
function _object_spread_props$
|
|
9001
|
+
function _object_spread_props$P(target, source) {
|
|
9002
9002
|
source = source != null ? source : {};
|
|
9003
9003
|
if (Object.getOwnPropertyDescriptors) {
|
|
9004
9004
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9005
9005
|
} else {
|
|
9006
|
-
ownKeys$
|
|
9006
|
+
ownKeys$P(Object(source)).forEach(function(key) {
|
|
9007
9007
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9008
9008
|
});
|
|
9009
9009
|
}
|
|
@@ -9011,7 +9011,7 @@
|
|
|
9011
9011
|
}
|
|
9012
9012
|
var ThemedPreloader = function(param) {
|
|
9013
9013
|
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;
|
|
9014
|
-
var classes = useStyles$
|
|
9014
|
+
var classes = useStyles$P({
|
|
9015
9015
|
theme: tweakStyles
|
|
9016
9016
|
});
|
|
9017
9017
|
var tweakDotsPreloaderStyles = useTweakStyles({
|
|
@@ -9024,8 +9024,8 @@
|
|
|
9024
9024
|
className: "tweakSvgPreloader",
|
|
9025
9025
|
currentComponentName: "ThemedPreloader"
|
|
9026
9026
|
});
|
|
9027
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
9028
|
-
className: clsx(classes.root, classes[type], _define_property$
|
|
9027
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$P(_object_spread$Y({
|
|
9028
|
+
className: clsx(classes.root, classes[type], _define_property$_({}, classes.currentColor, useCurrentColor))
|
|
9029
9029
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
9030
9030
|
children: type === "dots" ? /* @__PURE__ */ jsx(DotsPreloader, {
|
|
9031
9031
|
tweakStyles: tweakDotsPreloaderStyles
|
|
@@ -9035,7 +9035,7 @@
|
|
|
9035
9035
|
})
|
|
9036
9036
|
}));
|
|
9037
9037
|
};
|
|
9038
|
-
var useStyles$
|
|
9038
|
+
var useStyles$O = createThemedStyles("Button", {
|
|
9039
9039
|
root: {
|
|
9040
9040
|
display: "flex",
|
|
9041
9041
|
justifyContent: "center",
|
|
@@ -9206,7 +9206,7 @@
|
|
|
9206
9206
|
var getPreloaderStyles = function(size) {
|
|
9207
9207
|
return size === "s" || size === "m" ? dotsPreloaderStyles : void 0;
|
|
9208
9208
|
};
|
|
9209
|
-
function _define_property$
|
|
9209
|
+
function _define_property$Z(obj, key, value) {
|
|
9210
9210
|
if (key in obj) {
|
|
9211
9211
|
Object.defineProperty(obj, key, {
|
|
9212
9212
|
value,
|
|
@@ -9219,7 +9219,7 @@
|
|
|
9219
9219
|
}
|
|
9220
9220
|
return obj;
|
|
9221
9221
|
}
|
|
9222
|
-
function _object_spread$
|
|
9222
|
+
function _object_spread$X(target) {
|
|
9223
9223
|
for (var i = 1; i < arguments.length; i++) {
|
|
9224
9224
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9225
9225
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9229,12 +9229,12 @@
|
|
|
9229
9229
|
}));
|
|
9230
9230
|
}
|
|
9231
9231
|
ownKeys2.forEach(function(key) {
|
|
9232
|
-
_define_property$
|
|
9232
|
+
_define_property$Z(target, key, source[key]);
|
|
9233
9233
|
});
|
|
9234
9234
|
}
|
|
9235
9235
|
return target;
|
|
9236
9236
|
}
|
|
9237
|
-
function ownKeys$
|
|
9237
|
+
function ownKeys$O(object, enumerableOnly) {
|
|
9238
9238
|
var keys2 = Object.keys(object);
|
|
9239
9239
|
if (Object.getOwnPropertySymbols) {
|
|
9240
9240
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9247,21 +9247,21 @@
|
|
|
9247
9247
|
}
|
|
9248
9248
|
return keys2;
|
|
9249
9249
|
}
|
|
9250
|
-
function _object_spread_props$
|
|
9250
|
+
function _object_spread_props$O(target, source) {
|
|
9251
9251
|
source = source != null ? source : {};
|
|
9252
9252
|
if (Object.getOwnPropertyDescriptors) {
|
|
9253
9253
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9254
9254
|
} else {
|
|
9255
|
-
ownKeys$
|
|
9255
|
+
ownKeys$O(Object(source)).forEach(function(key) {
|
|
9256
9256
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9257
9257
|
});
|
|
9258
9258
|
}
|
|
9259
9259
|
return target;
|
|
9260
9260
|
}
|
|
9261
|
-
function _object_without_properties$
|
|
9261
|
+
function _object_without_properties$j(source, excluded) {
|
|
9262
9262
|
if (source == null)
|
|
9263
9263
|
return {};
|
|
9264
|
-
var target = _object_without_properties_loose$
|
|
9264
|
+
var target = _object_without_properties_loose$j(source, excluded);
|
|
9265
9265
|
var key, i;
|
|
9266
9266
|
if (Object.getOwnPropertySymbols) {
|
|
9267
9267
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -9276,7 +9276,7 @@
|
|
|
9276
9276
|
}
|
|
9277
9277
|
return target;
|
|
9278
9278
|
}
|
|
9279
|
-
function _object_without_properties_loose$
|
|
9279
|
+
function _object_without_properties_loose$j(source, excluded) {
|
|
9280
9280
|
if (source == null)
|
|
9281
9281
|
return {};
|
|
9282
9282
|
var target = {};
|
|
@@ -9291,7 +9291,7 @@
|
|
|
9291
9291
|
return target;
|
|
9292
9292
|
}
|
|
9293
9293
|
var Button = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
9294
|
-
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$
|
|
9294
|
+
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, [
|
|
9295
9295
|
"type",
|
|
9296
9296
|
"children",
|
|
9297
9297
|
"size",
|
|
@@ -9309,7 +9309,7 @@
|
|
|
9309
9309
|
"iconPosition",
|
|
9310
9310
|
"preloaderType"
|
|
9311
9311
|
]);
|
|
9312
|
-
var classes = useStyles$
|
|
9312
|
+
var classes = useStyles$O({
|
|
9313
9313
|
theme: tweakStyles
|
|
9314
9314
|
});
|
|
9315
9315
|
var tweakPreloaderStyles = useTweakStyles({
|
|
@@ -9322,16 +9322,16 @@
|
|
|
9322
9322
|
var hasChildren = trueReactPlatformHelpers.isReactNodeNotEmpty(children);
|
|
9323
9323
|
var hasNoAction = isDisabled || isLoading;
|
|
9324
9324
|
var _obj2, _obj1;
|
|
9325
|
-
return /* @__PURE__ */ jsxs("button", _object_spread_props$
|
|
9325
|
+
return /* @__PURE__ */ jsxs("button", _object_spread_props$O(_object_spread$X({
|
|
9326
9326
|
ref,
|
|
9327
9327
|
type,
|
|
9328
|
-
className: clsx(classes.root, classes[size], classes[view], (_obj2 = {}, _define_property$
|
|
9328
|
+
className: clsx(classes.root, classes[size], classes[view], (_obj2 = {}, _define_property$Z(_obj2, classes.disabled, isDisabled), _define_property$Z(_obj2, classes.fullWidth, isFullWidth), _define_property$Z(_obj2, classes.inline, isInline), _define_property$Z(_obj2, classes.active, isActive), _define_property$Z(_obj2, classes.loading, isLoading), _define_property$Z(_obj2, classes.onlyIcon, hasIcon && !hasChildren), _obj2)),
|
|
9329
9329
|
tabIndex: shouldSkipTabNavigation ? -1 : void 0,
|
|
9330
9330
|
disabled: hasNoAction
|
|
9331
9331
|
}, interactions, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
9332
9332
|
children: [
|
|
9333
9333
|
/* @__PURE__ */ jsxs("span", {
|
|
9334
|
-
className: clsx(classes.content, (_obj1 = {}, _define_property$
|
|
9334
|
+
className: clsx(classes.content, (_obj1 = {}, _define_property$Z(_obj1, classes.iconFromRight, hasChildren && hasIcon && iconPosition === "right"), _define_property$Z(_obj1, classes.iconFromLeft, hasChildren && hasIcon && iconPosition === "left"), _obj1)),
|
|
9335
9335
|
children: [
|
|
9336
9336
|
hasIcon && /* @__PURE__ */ jsx("span", {
|
|
9337
9337
|
className: classes.icon,
|
|
@@ -9354,7 +9354,7 @@
|
|
|
9354
9354
|
]
|
|
9355
9355
|
}));
|
|
9356
9356
|
});
|
|
9357
|
-
var useStyles$
|
|
9357
|
+
var useStyles$N = createThemedStyles("Checkbox", {
|
|
9358
9358
|
root: {
|
|
9359
9359
|
cursor: "pointer",
|
|
9360
9360
|
display: "flex",
|
|
@@ -9392,7 +9392,7 @@
|
|
|
9392
9392
|
flexDirection: "row-reverse"
|
|
9393
9393
|
}
|
|
9394
9394
|
});
|
|
9395
|
-
function _define_property$
|
|
9395
|
+
function _define_property$Y(obj, key, value) {
|
|
9396
9396
|
if (key in obj) {
|
|
9397
9397
|
Object.defineProperty(obj, key, {
|
|
9398
9398
|
value,
|
|
@@ -9405,7 +9405,7 @@
|
|
|
9405
9405
|
}
|
|
9406
9406
|
return obj;
|
|
9407
9407
|
}
|
|
9408
|
-
function _object_spread$
|
|
9408
|
+
function _object_spread$W(target) {
|
|
9409
9409
|
for (var i = 1; i < arguments.length; i++) {
|
|
9410
9410
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9411
9411
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9415,12 +9415,12 @@
|
|
|
9415
9415
|
}));
|
|
9416
9416
|
}
|
|
9417
9417
|
ownKeys2.forEach(function(key) {
|
|
9418
|
-
_define_property$
|
|
9418
|
+
_define_property$Y(target, key, source[key]);
|
|
9419
9419
|
});
|
|
9420
9420
|
}
|
|
9421
9421
|
return target;
|
|
9422
9422
|
}
|
|
9423
|
-
function ownKeys$
|
|
9423
|
+
function ownKeys$N(object, enumerableOnly) {
|
|
9424
9424
|
var keys2 = Object.keys(object);
|
|
9425
9425
|
if (Object.getOwnPropertySymbols) {
|
|
9426
9426
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9433,12 +9433,12 @@
|
|
|
9433
9433
|
}
|
|
9434
9434
|
return keys2;
|
|
9435
9435
|
}
|
|
9436
|
-
function _object_spread_props$
|
|
9436
|
+
function _object_spread_props$N(target, source) {
|
|
9437
9437
|
source = source != null ? source : {};
|
|
9438
9438
|
if (Object.getOwnPropertyDescriptors) {
|
|
9439
9439
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9440
9440
|
} else {
|
|
9441
|
-
ownKeys$
|
|
9441
|
+
ownKeys$N(Object(source)).forEach(function(key) {
|
|
9442
9442
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9443
9443
|
});
|
|
9444
9444
|
}
|
|
@@ -9446,7 +9446,7 @@
|
|
|
9446
9446
|
}
|
|
9447
9447
|
function Checkbox(param) {
|
|
9448
9448
|
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;
|
|
9449
|
-
var classes = useStyles$
|
|
9449
|
+
var classes = useStyles$N({
|
|
9450
9450
|
theme: tweakStyles
|
|
9451
9451
|
});
|
|
9452
9452
|
var hasAction = !isDisabled && !isReadonly;
|
|
@@ -9458,11 +9458,11 @@
|
|
|
9458
9458
|
}, event);
|
|
9459
9459
|
};
|
|
9460
9460
|
var _obj2;
|
|
9461
|
-
return /* @__PURE__ */ jsxs("label", _object_spread_props$
|
|
9462
|
-
className: clsx(classes.root, (_obj2 = {}, _define_property$
|
|
9461
|
+
return /* @__PURE__ */ jsxs("label", _object_spread_props$N(_object_spread$W({
|
|
9462
|
+
className: clsx(classes.root, (_obj2 = {}, _define_property$Y(_obj2, classes.checked, isSelected), _define_property$Y(_obj2, classes.invalid, isInvalid), _define_property$Y(_obj2, classes.disabled, isDisabled), _define_property$Y(_obj2, classes.labelPositionLeft, labelPosition === "left"), _obj2))
|
|
9463
9463
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
9464
9464
|
children: [
|
|
9465
|
-
/* @__PURE__ */ jsx("input", _object_spread$
|
|
9465
|
+
/* @__PURE__ */ jsx("input", _object_spread$W({
|
|
9466
9466
|
className: classes.input,
|
|
9467
9467
|
type: "checkbox",
|
|
9468
9468
|
checked: isSelected,
|
|
@@ -9485,7 +9485,7 @@
|
|
|
9485
9485
|
]
|
|
9486
9486
|
}));
|
|
9487
9487
|
}
|
|
9488
|
-
var useStyles$
|
|
9488
|
+
var useStyles$M = createThemedStyles("CloseButton", {
|
|
9489
9489
|
root: {
|
|
9490
9490
|
width: 40,
|
|
9491
9491
|
height: 40,
|
|
@@ -9511,7 +9511,7 @@
|
|
|
9511
9511
|
}
|
|
9512
9512
|
}
|
|
9513
9513
|
});
|
|
9514
|
-
function _define_property$
|
|
9514
|
+
function _define_property$X(obj, key, value) {
|
|
9515
9515
|
if (key in obj) {
|
|
9516
9516
|
Object.defineProperty(obj, key, {
|
|
9517
9517
|
value,
|
|
@@ -9524,7 +9524,7 @@
|
|
|
9524
9524
|
}
|
|
9525
9525
|
return obj;
|
|
9526
9526
|
}
|
|
9527
|
-
function _object_spread$
|
|
9527
|
+
function _object_spread$V(target) {
|
|
9528
9528
|
for (var i = 1; i < arguments.length; i++) {
|
|
9529
9529
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9530
9530
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9534,12 +9534,12 @@
|
|
|
9534
9534
|
}));
|
|
9535
9535
|
}
|
|
9536
9536
|
ownKeys2.forEach(function(key) {
|
|
9537
|
-
_define_property$
|
|
9537
|
+
_define_property$X(target, key, source[key]);
|
|
9538
9538
|
});
|
|
9539
9539
|
}
|
|
9540
9540
|
return target;
|
|
9541
9541
|
}
|
|
9542
|
-
function ownKeys$
|
|
9542
|
+
function ownKeys$M(object, enumerableOnly) {
|
|
9543
9543
|
var keys2 = Object.keys(object);
|
|
9544
9544
|
if (Object.getOwnPropertySymbols) {
|
|
9545
9545
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9552,12 +9552,12 @@
|
|
|
9552
9552
|
}
|
|
9553
9553
|
return keys2;
|
|
9554
9554
|
}
|
|
9555
|
-
function _object_spread_props$
|
|
9555
|
+
function _object_spread_props$M(target, source) {
|
|
9556
9556
|
source = source != null ? source : {};
|
|
9557
9557
|
if (Object.getOwnPropertyDescriptors) {
|
|
9558
9558
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9559
9559
|
} else {
|
|
9560
|
-
ownKeys$
|
|
9560
|
+
ownKeys$M(Object(source)).forEach(function(key) {
|
|
9561
9561
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9562
9562
|
});
|
|
9563
9563
|
}
|
|
@@ -9565,10 +9565,10 @@
|
|
|
9565
9565
|
}
|
|
9566
9566
|
var CloseButton = function(param) {
|
|
9567
9567
|
var tweakStyles = param.tweakStyles, testId = param.testId, data = param.data, _param_iconType = param.iconType, iconType = _param_iconType === void 0 ? "close" : _param_iconType, onClose = param.onClose;
|
|
9568
|
-
var classes = useStyles$
|
|
9568
|
+
var classes = useStyles$M({
|
|
9569
9569
|
theme: tweakStyles
|
|
9570
9570
|
});
|
|
9571
|
-
return /* @__PURE__ */ jsx("button", _object_spread_props$
|
|
9571
|
+
return /* @__PURE__ */ jsx("button", _object_spread_props$M(_object_spread$V({
|
|
9572
9572
|
type: "button",
|
|
9573
9573
|
className: classes.root,
|
|
9574
9574
|
onClick: onClose
|
|
@@ -9578,7 +9578,7 @@
|
|
|
9578
9578
|
})
|
|
9579
9579
|
}));
|
|
9580
9580
|
};
|
|
9581
|
-
var useStyles$
|
|
9581
|
+
var useStyles$L = createThemedStyles({
|
|
9582
9582
|
root: {
|
|
9583
9583
|
display: "flex",
|
|
9584
9584
|
flexWrap: "wrap"
|
|
@@ -9671,7 +9671,7 @@
|
|
|
9671
9671
|
return _array_like_to_array$k(o, minLen);
|
|
9672
9672
|
}
|
|
9673
9673
|
var Colors = function() {
|
|
9674
|
-
var classes = useStyles$
|
|
9674
|
+
var classes = useStyles$L();
|
|
9675
9675
|
var theme = React.useContext(ThemeContext).theme;
|
|
9676
9676
|
var _theme_colors = theme.colors, colors2 = _theme_colors === void 0 ? {} : _theme_colors;
|
|
9677
9677
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -9701,7 +9701,7 @@
|
|
|
9701
9701
|
})
|
|
9702
9702
|
});
|
|
9703
9703
|
};
|
|
9704
|
-
var useStyles$
|
|
9704
|
+
var useStyles$K = createThemedStyles("CssBaseline", {
|
|
9705
9705
|
"@global html, body": {
|
|
9706
9706
|
fontFamily: "Arial, sans-serif",
|
|
9707
9707
|
color: colors.FONT_MAIN,
|
|
@@ -9710,7 +9710,7 @@
|
|
|
9710
9710
|
},
|
|
9711
9711
|
root: {}
|
|
9712
9712
|
});
|
|
9713
|
-
function _define_property$
|
|
9713
|
+
function _define_property$W(obj, key, value) {
|
|
9714
9714
|
if (key in obj) {
|
|
9715
9715
|
Object.defineProperty(obj, key, {
|
|
9716
9716
|
value,
|
|
@@ -9723,7 +9723,7 @@
|
|
|
9723
9723
|
}
|
|
9724
9724
|
return obj;
|
|
9725
9725
|
}
|
|
9726
|
-
function _object_spread$
|
|
9726
|
+
function _object_spread$U(target) {
|
|
9727
9727
|
for (var i = 1; i < arguments.length; i++) {
|
|
9728
9728
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9729
9729
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9733,23 +9733,23 @@
|
|
|
9733
9733
|
}));
|
|
9734
9734
|
}
|
|
9735
9735
|
ownKeys2.forEach(function(key) {
|
|
9736
|
-
_define_property$
|
|
9736
|
+
_define_property$W(target, key, source[key]);
|
|
9737
9737
|
});
|
|
9738
9738
|
}
|
|
9739
9739
|
return target;
|
|
9740
9740
|
}
|
|
9741
9741
|
var CssBaseline = function(param) {
|
|
9742
9742
|
var data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
9743
|
-
var classes = useStyles$
|
|
9743
|
+
var classes = useStyles$K({
|
|
9744
9744
|
theme: tweakStyles
|
|
9745
9745
|
});
|
|
9746
|
-
return /* @__PURE__ */ jsx("div", _object_spread$
|
|
9746
|
+
return /* @__PURE__ */ jsx("div", _object_spread$U({
|
|
9747
9747
|
className: classes.root
|
|
9748
9748
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)));
|
|
9749
9749
|
};
|
|
9750
9750
|
var DEFAULT_SIZE = 6;
|
|
9751
9751
|
var AUTOSIZE_MAX_WIDTH = 480;
|
|
9752
|
-
var useStyles$
|
|
9752
|
+
var useStyles$J = createThemedStyles("Input", {
|
|
9753
9753
|
root: {
|
|
9754
9754
|
width: "100%",
|
|
9755
9755
|
boxSizing: "border-box",
|
|
@@ -10094,7 +10094,7 @@
|
|
|
10094
10094
|
});
|
|
10095
10095
|
};
|
|
10096
10096
|
}
|
|
10097
|
-
function _define_property$
|
|
10097
|
+
function _define_property$V(obj, key, value) {
|
|
10098
10098
|
if (key in obj) {
|
|
10099
10099
|
Object.defineProperty(obj, key, {
|
|
10100
10100
|
value,
|
|
@@ -10138,7 +10138,7 @@
|
|
|
10138
10138
|
function _non_iterable_rest$j() {
|
|
10139
10139
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10140
10140
|
}
|
|
10141
|
-
function _object_spread$
|
|
10141
|
+
function _object_spread$T(target) {
|
|
10142
10142
|
for (var i = 1; i < arguments.length; i++) {
|
|
10143
10143
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10144
10144
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10148,12 +10148,12 @@
|
|
|
10148
10148
|
}));
|
|
10149
10149
|
}
|
|
10150
10150
|
ownKeys2.forEach(function(key) {
|
|
10151
|
-
_define_property$
|
|
10151
|
+
_define_property$V(target, key, source[key]);
|
|
10152
10152
|
});
|
|
10153
10153
|
}
|
|
10154
10154
|
return target;
|
|
10155
10155
|
}
|
|
10156
|
-
function ownKeys$
|
|
10156
|
+
function ownKeys$L(object, enumerableOnly) {
|
|
10157
10157
|
var keys2 = Object.keys(object);
|
|
10158
10158
|
if (Object.getOwnPropertySymbols) {
|
|
10159
10159
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10166,21 +10166,21 @@
|
|
|
10166
10166
|
}
|
|
10167
10167
|
return keys2;
|
|
10168
10168
|
}
|
|
10169
|
-
function _object_spread_props$
|
|
10169
|
+
function _object_spread_props$L(target, source) {
|
|
10170
10170
|
source = source != null ? source : {};
|
|
10171
10171
|
if (Object.getOwnPropertyDescriptors) {
|
|
10172
10172
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10173
10173
|
} else {
|
|
10174
|
-
ownKeys$
|
|
10174
|
+
ownKeys$L(Object(source)).forEach(function(key) {
|
|
10175
10175
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10176
10176
|
});
|
|
10177
10177
|
}
|
|
10178
10178
|
return target;
|
|
10179
10179
|
}
|
|
10180
|
-
function _object_without_properties$
|
|
10180
|
+
function _object_without_properties$i(source, excluded) {
|
|
10181
10181
|
if (source == null)
|
|
10182
10182
|
return {};
|
|
10183
|
-
var target = _object_without_properties_loose$
|
|
10183
|
+
var target = _object_without_properties_loose$i(source, excluded);
|
|
10184
10184
|
var key, i;
|
|
10185
10185
|
if (Object.getOwnPropertySymbols) {
|
|
10186
10186
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10195,7 +10195,7 @@
|
|
|
10195
10195
|
}
|
|
10196
10196
|
return target;
|
|
10197
10197
|
}
|
|
10198
|
-
function _object_without_properties_loose$
|
|
10198
|
+
function _object_without_properties_loose$i(source, excluded) {
|
|
10199
10199
|
if (source == null)
|
|
10200
10200
|
return {};
|
|
10201
10201
|
var target = {};
|
|
@@ -10328,7 +10328,7 @@
|
|
|
10328
10328
|
}
|
|
10329
10329
|
}
|
|
10330
10330
|
var Input = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
10331
|
-
var _param_value = _param.value, value = _param_value === void 0 ? "" : _param_value, label = _param.label, placeholder = _param.placeholder, _param_type = _param.type, type = _param_type === void 0 ? "text" : _param_type, isDisabled = _param.isDisabled, _param_isReadonly = _param.isReadonly, isReadonly = _param_isReadonly === void 0 ? false : _param_isReadonly, _param_hasFloatingLabel = _param.hasFloatingLabel, hasFloatingLabel = _param_hasFloatingLabel === void 0 ? true : _param_hasFloatingLabel, _param_isInvalid = _param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? false : _param_isClearable, infoMessage = _param.infoMessage, errorMessage = _param.errorMessage, _param_errorPosition = _param.errorPosition, errorPosition = _param_errorPosition === void 0 ? "bottom" : _param_errorPosition, inlineStyle = _param.inlineStyle, border = _param.border, _param_isRequired = _param.isRequired, isRequired = _param_isRequired === void 0 ? false : _param_isRequired, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isAutoSizeable = _param.isAutoSizeable, isAutoSizeable = _param_isAutoSizeable === void 0 ? false : _param_isAutoSizeable, _param_defaultSize = _param.defaultSize, defaultSize = _param_defaultSize === void 0 ? DEFAULT_SIZE : _param_defaultSize, iconType = _param.iconType, hasRequiredLabel = _param.hasRequiredLabel, data = _param.data, tweakStyles = _param.tweakStyles, _param_shouldFocusOnMount = _param.shouldFocusOnMount, shouldFocusOnMount = _param_shouldFocusOnMount === void 0 ? false : _param_shouldFocusOnMount, units = _param.units, testId = _param.testId, onChange = _param.onChange, onFocus = _param.onFocus, onBlur = _param.onBlur, onIconClick = _param.onIconClick, mask = _param.mask, maskPlaceholder = _param.maskPlaceholder, alwaysShowMask = _param.alwaysShowMask, _param_shouldAlwaysShowPlaceholder = _param.shouldAlwaysShowPlaceholder, shouldAlwaysShowPlaceholder = _param_shouldAlwaysShowPlaceholder === void 0 ? false : _param_shouldAlwaysShowPlaceholder, beforeMaskedStateChange = _param.beforeMaskedStateChange, inputProps = _object_without_properties$
|
|
10331
|
+
var _param_value = _param.value, value = _param_value === void 0 ? "" : _param_value, label = _param.label, placeholder = _param.placeholder, _param_type = _param.type, type = _param_type === void 0 ? "text" : _param_type, isDisabled = _param.isDisabled, _param_isReadonly = _param.isReadonly, isReadonly = _param_isReadonly === void 0 ? false : _param_isReadonly, _param_hasFloatingLabel = _param.hasFloatingLabel, hasFloatingLabel = _param_hasFloatingLabel === void 0 ? true : _param_hasFloatingLabel, _param_isInvalid = _param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? false : _param_isClearable, infoMessage = _param.infoMessage, errorMessage = _param.errorMessage, _param_errorPosition = _param.errorPosition, errorPosition = _param_errorPosition === void 0 ? "bottom" : _param_errorPosition, inlineStyle = _param.inlineStyle, border = _param.border, _param_isRequired = _param.isRequired, isRequired = _param_isRequired === void 0 ? false : _param_isRequired, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isAutoSizeable = _param.isAutoSizeable, isAutoSizeable = _param_isAutoSizeable === void 0 ? false : _param_isAutoSizeable, _param_defaultSize = _param.defaultSize, defaultSize = _param_defaultSize === void 0 ? DEFAULT_SIZE : _param_defaultSize, iconType = _param.iconType, hasRequiredLabel = _param.hasRequiredLabel, data = _param.data, tweakStyles = _param.tweakStyles, _param_shouldFocusOnMount = _param.shouldFocusOnMount, shouldFocusOnMount = _param_shouldFocusOnMount === void 0 ? false : _param_shouldFocusOnMount, units = _param.units, testId = _param.testId, onChange = _param.onChange, onFocus = _param.onFocus, onBlur = _param.onBlur, onIconClick = _param.onIconClick, mask = _param.mask, maskPlaceholder = _param.maskPlaceholder, alwaysShowMask = _param.alwaysShowMask, _param_shouldAlwaysShowPlaceholder = _param.shouldAlwaysShowPlaceholder, shouldAlwaysShowPlaceholder = _param_shouldAlwaysShowPlaceholder === void 0 ? false : _param_shouldAlwaysShowPlaceholder, beforeMaskedStateChange = _param.beforeMaskedStateChange, inputProps = _object_without_properties$i(_param, [
|
|
10332
10332
|
"value",
|
|
10333
10333
|
"label",
|
|
10334
10334
|
"placeholder",
|
|
@@ -10365,7 +10365,7 @@
|
|
|
10365
10365
|
"shouldAlwaysShowPlaceholder",
|
|
10366
10366
|
"beforeMaskedStateChange"
|
|
10367
10367
|
]);
|
|
10368
|
-
var classes = useStyles$
|
|
10368
|
+
var classes = useStyles$J({
|
|
10369
10369
|
theme: tweakStyles
|
|
10370
10370
|
});
|
|
10371
10371
|
var tweakPreloaderStyles = useTweakStyles({
|
|
@@ -10376,7 +10376,7 @@
|
|
|
10376
10376
|
var _useState = _sliced_to_array$j(React.useState(false), 2), isFocused = _useState[0], setFocused = _useState[1];
|
|
10377
10377
|
var inputRef = React.useRef(null);
|
|
10378
10378
|
var handleChange = function(event) {
|
|
10379
|
-
onChange(event.currentTarget.value, event);
|
|
10379
|
+
onChange(event.currentTarget.value, event, "change");
|
|
10380
10380
|
};
|
|
10381
10381
|
var handleFocus = function(event) {
|
|
10382
10382
|
setFocused(true);
|
|
@@ -10394,7 +10394,7 @@
|
|
|
10394
10394
|
case 0:
|
|
10395
10395
|
return [
|
|
10396
10396
|
4,
|
|
10397
|
-
onChange("", event)
|
|
10397
|
+
onChange("", event, "clear")
|
|
10398
10398
|
];
|
|
10399
10399
|
case 1:
|
|
10400
10400
|
_state.sent();
|
|
@@ -10420,8 +10420,8 @@
|
|
|
10420
10420
|
var hasPlaceholder = (!hasLabel || isLabelActive) && trueReactPlatformHelpers.isStringNotEmpty(placeholder);
|
|
10421
10421
|
var shouldShowUnits = (hasValue || isFocused && !hasPlaceholder) && hasUnits;
|
|
10422
10422
|
var _obj2;
|
|
10423
|
-
var props = _object_spread_props$
|
|
10424
|
-
className: clsx(classes.input, (_obj2 = {}, _define_property$
|
|
10423
|
+
var props = _object_spread_props$L(_object_spread$T({}, inputProps, trueReactPlatformHelpers.addDataTestId(testId)), {
|
|
10424
|
+
className: clsx(classes.input, (_obj2 = {}, _define_property$V(_obj2, classes.withFloatingLabel, hasFloatingLabel && hasLabel), _define_property$V(_obj2, classes.withIcons, hasControls), _define_property$V(_obj2, classes.withControls, hasControls), _define_property$V(_obj2, classes.withUnits, shouldShowUnits), _define_property$V(_obj2, classes.floatingLabelWithoutPadding, hasFloatingLabel && hasLabel && border === "bottom"), _obj2)),
|
|
10425
10425
|
onFocus: handleFocus,
|
|
10426
10426
|
onBlur: handleBlur,
|
|
10427
10427
|
onChange: handleChange,
|
|
@@ -10437,17 +10437,17 @@
|
|
|
10437
10437
|
return /* @__PURE__ */ jsxs("div", {
|
|
10438
10438
|
className: classes.root,
|
|
10439
10439
|
children: [
|
|
10440
|
-
/* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
10441
|
-
className: clsx(classes.inputWrapper, (_obj1 = {}, _define_property$
|
|
10440
|
+
/* @__PURE__ */ jsxs("div", _object_spread_props$L(_object_spread$T({
|
|
10441
|
+
className: clsx(classes.inputWrapper, (_obj1 = {}, _define_property$V(_obj1, classes.required, isRequired && !hasRequiredLabel), _define_property$V(_obj1, classes.invalid, isInvalid), _define_property$V(_obj1, classes.focused, hasFocus), _define_property$V(_obj1, classes.disabled, isDisabled), _define_property$V(_obj1, classes.autosize, isAutoSizeable), _obj1), inlineStyle !== void 0 && classes[inlineStyle], border !== void 0 && classes["border-".concat(border)]),
|
|
10442
10442
|
"data-value": isAutoSizeable ? value : void 0
|
|
10443
10443
|
}, addDataAttributes(data)), {
|
|
10444
10444
|
children: [
|
|
10445
10445
|
/* @__PURE__ */ jsxs("div", {
|
|
10446
10446
|
className: classes.inputWithLabelWrapper,
|
|
10447
10447
|
children: [
|
|
10448
|
-
mask === void 0 ? /* @__PURE__ */ jsx("input", _object_spread$
|
|
10448
|
+
mask === void 0 ? /* @__PURE__ */ jsx("input", _object_spread$T({
|
|
10449
10449
|
ref: ref !== null && ref !== void 0 ? ref : inputRef
|
|
10450
|
-
}, props)) : /* @__PURE__ */ jsx(InputMask, _object_spread$
|
|
10450
|
+
}, props)) : /* @__PURE__ */ jsx(InputMask, _object_spread$T({
|
|
10451
10451
|
ref: ref !== null && ref !== void 0 ? ref : inputRef,
|
|
10452
10452
|
mask,
|
|
10453
10453
|
maskPlaceholder,
|
|
@@ -10455,8 +10455,8 @@
|
|
|
10455
10455
|
beforeMaskedStateChange
|
|
10456
10456
|
}, props)),
|
|
10457
10457
|
hasLabel && /* @__PURE__ */ jsx("span", {
|
|
10458
|
-
className: clsx(classes.label, (_obj22 = {}, _define_property$
|
|
10459
|
-
_define_property$
|
|
10458
|
+
className: clsx(classes.label, (_obj22 = {}, _define_property$V(_obj22, classes.invalidLabel, isInvalid), _define_property$V(_obj22, classes.requiredLabel, hasRequiredLabel && !isRequired), _define_property$V(_obj22, classes.activeLabel, isLabelActive), _define_property$V(_obj22, classes.floating, hasFloatingLabel), // Обсуждаемо, сделал так, потому что не хочется создавать новую пропсу, на каждый чих в стилях
|
|
10459
|
+
_define_property$V(_obj22, classes.floatingWithoutPadding, hasFloatingLabel && border === "bottom"), _define_property$V(_obj22, classes.labelWithIcons, hasControls), _obj22)),
|
|
10460
10460
|
children: /* @__PURE__ */ jsx("span", {
|
|
10461
10461
|
className: classes.labelText,
|
|
10462
10462
|
children: label
|
|
@@ -10465,7 +10465,7 @@
|
|
|
10465
10465
|
]
|
|
10466
10466
|
}),
|
|
10467
10467
|
shouldShowUnits && /* @__PURE__ */ jsxs("div", {
|
|
10468
|
-
className: clsx(classes.unitsWrapper, _define_property$
|
|
10468
|
+
className: clsx(classes.unitsWrapper, _define_property$V({}, classes.withFloatingLabel, hasFloatingLabel && hasLabel)),
|
|
10469
10469
|
children: [
|
|
10470
10470
|
/* @__PURE__ */ jsx("span", {
|
|
10471
10471
|
className: classes.fakeValue,
|
|
@@ -10497,7 +10497,7 @@
|
|
|
10497
10497
|
})
|
|
10498
10498
|
}),
|
|
10499
10499
|
trueReactPlatformHelpers.isReactNodeNotEmpty(iconType) && /* @__PURE__ */ jsx("div", {
|
|
10500
|
-
className: clsx(classes.inputIcon, _define_property$
|
|
10500
|
+
className: clsx(classes.inputIcon, _define_property$V({}, classes.activeIcon, !isDisabled && onIconClick !== void 0)),
|
|
10501
10501
|
onClick: !isDisabled ? onIconClick : void 0,
|
|
10502
10502
|
children: renderIcon(iconType)
|
|
10503
10503
|
})
|
|
@@ -10518,7 +10518,7 @@
|
|
|
10518
10518
|
});
|
|
10519
10519
|
var EMPTY_DATE_INPUT_VALUE = "__.__.____";
|
|
10520
10520
|
var EMPTY_DATE_RANGE_INPUT_VALUE = "".concat(EMPTY_DATE_INPUT_VALUE, " - ").concat(EMPTY_DATE_INPUT_VALUE);
|
|
10521
|
-
var useStyles$
|
|
10521
|
+
var useStyles$I = createThemedStyles("DateInput", {
|
|
10522
10522
|
root: {
|
|
10523
10523
|
width: "100%",
|
|
10524
10524
|
height: "100%",
|
|
@@ -10526,7 +10526,7 @@
|
|
|
10526
10526
|
position: "relative"
|
|
10527
10527
|
}
|
|
10528
10528
|
});
|
|
10529
|
-
function _define_property$
|
|
10529
|
+
function _define_property$U(obj, key, value) {
|
|
10530
10530
|
if (key in obj) {
|
|
10531
10531
|
Object.defineProperty(obj, key, {
|
|
10532
10532
|
value,
|
|
@@ -10539,7 +10539,7 @@
|
|
|
10539
10539
|
}
|
|
10540
10540
|
return obj;
|
|
10541
10541
|
}
|
|
10542
|
-
function _object_spread$
|
|
10542
|
+
function _object_spread$S(target) {
|
|
10543
10543
|
for (var i = 1; i < arguments.length; i++) {
|
|
10544
10544
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10545
10545
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10549,12 +10549,12 @@
|
|
|
10549
10549
|
}));
|
|
10550
10550
|
}
|
|
10551
10551
|
ownKeys2.forEach(function(key) {
|
|
10552
|
-
_define_property$
|
|
10552
|
+
_define_property$U(target, key, source[key]);
|
|
10553
10553
|
});
|
|
10554
10554
|
}
|
|
10555
10555
|
return target;
|
|
10556
10556
|
}
|
|
10557
|
-
function ownKeys$
|
|
10557
|
+
function ownKeys$K(object, enumerableOnly) {
|
|
10558
10558
|
var keys2 = Object.keys(object);
|
|
10559
10559
|
if (Object.getOwnPropertySymbols) {
|
|
10560
10560
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10567,21 +10567,21 @@
|
|
|
10567
10567
|
}
|
|
10568
10568
|
return keys2;
|
|
10569
10569
|
}
|
|
10570
|
-
function _object_spread_props$
|
|
10570
|
+
function _object_spread_props$K(target, source) {
|
|
10571
10571
|
source = source != null ? source : {};
|
|
10572
10572
|
if (Object.getOwnPropertyDescriptors) {
|
|
10573
10573
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10574
10574
|
} else {
|
|
10575
|
-
ownKeys$
|
|
10575
|
+
ownKeys$K(Object(source)).forEach(function(key) {
|
|
10576
10576
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10577
10577
|
});
|
|
10578
10578
|
}
|
|
10579
10579
|
return target;
|
|
10580
10580
|
}
|
|
10581
|
-
function _object_without_properties$
|
|
10581
|
+
function _object_without_properties$h(source, excluded) {
|
|
10582
10582
|
if (source == null)
|
|
10583
10583
|
return {};
|
|
10584
|
-
var target = _object_without_properties_loose$
|
|
10584
|
+
var target = _object_without_properties_loose$h(source, excluded);
|
|
10585
10585
|
var key, i;
|
|
10586
10586
|
if (Object.getOwnPropertySymbols) {
|
|
10587
10587
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10596,7 +10596,7 @@
|
|
|
10596
10596
|
}
|
|
10597
10597
|
return target;
|
|
10598
10598
|
}
|
|
10599
|
-
function _object_without_properties_loose$
|
|
10599
|
+
function _object_without_properties_loose$h(source, excluded) {
|
|
10600
10600
|
if (source == null)
|
|
10601
10601
|
return {};
|
|
10602
10602
|
var target = {};
|
|
@@ -10611,7 +10611,7 @@
|
|
|
10611
10611
|
return target;
|
|
10612
10612
|
}
|
|
10613
10613
|
var DateInput = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
10614
|
-
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$
|
|
10614
|
+
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$h(_param, [
|
|
10615
10615
|
"date",
|
|
10616
10616
|
"startDate",
|
|
10617
10617
|
"endDate",
|
|
@@ -10624,7 +10624,7 @@
|
|
|
10624
10624
|
"onClick",
|
|
10625
10625
|
"onChange"
|
|
10626
10626
|
]);
|
|
10627
|
-
var classes = useStyles$
|
|
10627
|
+
var classes = useStyles$I({
|
|
10628
10628
|
theme: tweakStyles
|
|
10629
10629
|
});
|
|
10630
10630
|
var tweakInputStyles = useTweakStyles({
|
|
@@ -10651,11 +10651,11 @@
|
|
|
10651
10651
|
}
|
|
10652
10652
|
onChange === null || onChange === void 0 ? void 0 : onChange(event, value);
|
|
10653
10653
|
};
|
|
10654
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
10654
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$K(_object_spread$S({
|
|
10655
10655
|
className: clsx(classes.root, className),
|
|
10656
10656
|
onClick
|
|
10657
10657
|
}, addDataAttributes(data)), {
|
|
10658
|
-
children: /* @__PURE__ */ jsx(Input, _object_spread_props$
|
|
10658
|
+
children: /* @__PURE__ */ jsx(Input, _object_spread_props$K(_object_spread$S({}, inputProps), {
|
|
10659
10659
|
ref,
|
|
10660
10660
|
value: isRange ? "".concat(startDate).concat(endDate) : date,
|
|
10661
10661
|
mask: mask !== null && mask !== void 0 ? mask : isRange ? "99.99.9999 - 99.99.9999" : "99.99.9999",
|
|
@@ -10667,7 +10667,7 @@
|
|
|
10667
10667
|
}));
|
|
10668
10668
|
});
|
|
10669
10669
|
const reactDatepicker = "";
|
|
10670
|
-
var useStyles$
|
|
10670
|
+
var useStyles$H = createThemedStyles("SearchInput", {
|
|
10671
10671
|
root: {
|
|
10672
10672
|
position: "relative"
|
|
10673
10673
|
},
|
|
@@ -10708,7 +10708,7 @@
|
|
|
10708
10708
|
fontSize: 14
|
|
10709
10709
|
}
|
|
10710
10710
|
};
|
|
10711
|
-
function _define_property$
|
|
10711
|
+
function _define_property$T(obj, key, value) {
|
|
10712
10712
|
if (key in obj) {
|
|
10713
10713
|
Object.defineProperty(obj, key, {
|
|
10714
10714
|
value,
|
|
@@ -10721,7 +10721,7 @@
|
|
|
10721
10721
|
}
|
|
10722
10722
|
return obj;
|
|
10723
10723
|
}
|
|
10724
|
-
function _object_spread$
|
|
10724
|
+
function _object_spread$R(target) {
|
|
10725
10725
|
for (var i = 1; i < arguments.length; i++) {
|
|
10726
10726
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10727
10727
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10731,12 +10731,12 @@
|
|
|
10731
10731
|
}));
|
|
10732
10732
|
}
|
|
10733
10733
|
ownKeys2.forEach(function(key) {
|
|
10734
|
-
_define_property$
|
|
10734
|
+
_define_property$T(target, key, source[key]);
|
|
10735
10735
|
});
|
|
10736
10736
|
}
|
|
10737
10737
|
return target;
|
|
10738
10738
|
}
|
|
10739
|
-
function ownKeys$
|
|
10739
|
+
function ownKeys$J(object, enumerableOnly) {
|
|
10740
10740
|
var keys2 = Object.keys(object);
|
|
10741
10741
|
if (Object.getOwnPropertySymbols) {
|
|
10742
10742
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10749,21 +10749,21 @@
|
|
|
10749
10749
|
}
|
|
10750
10750
|
return keys2;
|
|
10751
10751
|
}
|
|
10752
|
-
function _object_spread_props$
|
|
10752
|
+
function _object_spread_props$J(target, source) {
|
|
10753
10753
|
source = source != null ? source : {};
|
|
10754
10754
|
if (Object.getOwnPropertyDescriptors) {
|
|
10755
10755
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10756
10756
|
} else {
|
|
10757
|
-
ownKeys$
|
|
10757
|
+
ownKeys$J(Object(source)).forEach(function(key) {
|
|
10758
10758
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10759
10759
|
});
|
|
10760
10760
|
}
|
|
10761
10761
|
return target;
|
|
10762
10762
|
}
|
|
10763
|
-
function _object_without_properties$
|
|
10763
|
+
function _object_without_properties$g(source, excluded) {
|
|
10764
10764
|
if (source == null)
|
|
10765
10765
|
return {};
|
|
10766
|
-
var target = _object_without_properties_loose$
|
|
10766
|
+
var target = _object_without_properties_loose$g(source, excluded);
|
|
10767
10767
|
var key, i;
|
|
10768
10768
|
if (Object.getOwnPropertySymbols) {
|
|
10769
10769
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10778,7 +10778,7 @@
|
|
|
10778
10778
|
}
|
|
10779
10779
|
return target;
|
|
10780
10780
|
}
|
|
10781
|
-
function _object_without_properties_loose$
|
|
10781
|
+
function _object_without_properties_loose$g(source, excluded) {
|
|
10782
10782
|
if (source == null)
|
|
10783
10783
|
return {};
|
|
10784
10784
|
var target = {};
|
|
@@ -10793,14 +10793,14 @@
|
|
|
10793
10793
|
return target;
|
|
10794
10794
|
}
|
|
10795
10795
|
var SearchInput = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
10796
|
-
var _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? true : _param_isClearable, tweakStyles = _param.tweakStyles, testId = _param.testId, data = _param.data, onSearchIconClick = _param.onSearchIconClick, props = _object_without_properties$
|
|
10796
|
+
var _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? true : _param_isClearable, tweakStyles = _param.tweakStyles, testId = _param.testId, data = _param.data, onSearchIconClick = _param.onSearchIconClick, props = _object_without_properties$g(_param, [
|
|
10797
10797
|
"isClearable",
|
|
10798
10798
|
"tweakStyles",
|
|
10799
10799
|
"testId",
|
|
10800
10800
|
"data",
|
|
10801
10801
|
"onSearchIconClick"
|
|
10802
10802
|
]);
|
|
10803
|
-
var classes = useStyles$
|
|
10803
|
+
var classes = useStyles$H({
|
|
10804
10804
|
theme: tweakStyles
|
|
10805
10805
|
});
|
|
10806
10806
|
var tweakInputStyles = useTweakStyles({
|
|
@@ -10809,18 +10809,18 @@
|
|
|
10809
10809
|
className: "tweakInput",
|
|
10810
10810
|
currentComponentName: "SearchInput"
|
|
10811
10811
|
});
|
|
10812
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
10812
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$J(_object_spread$R({
|
|
10813
10813
|
className: classes.root
|
|
10814
10814
|
}, trueReactPlatformHelpers.addDataAttributes(data, testId)), {
|
|
10815
10815
|
children: [
|
|
10816
|
-
/* @__PURE__ */ jsx("div", _object_spread_props$
|
|
10817
|
-
className: clsx(classes.icon, _define_property$
|
|
10816
|
+
/* @__PURE__ */ jsx("div", _object_spread_props$J(_object_spread$R({
|
|
10817
|
+
className: clsx(classes.icon, _define_property$T({}, classes.iconClickable, trueReactPlatformHelpers.isNotEmpty(onSearchIconClick)))
|
|
10818
10818
|
}, trueReactPlatformHelpers.addClickHandler(onSearchIconClick)), {
|
|
10819
10819
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
10820
10820
|
type: "search"
|
|
10821
10821
|
})
|
|
10822
10822
|
})),
|
|
10823
|
-
/* @__PURE__ */ jsx(Input, _object_spread$
|
|
10823
|
+
/* @__PURE__ */ jsx(Input, _object_spread$R({
|
|
10824
10824
|
ref,
|
|
10825
10825
|
inputMode: "search",
|
|
10826
10826
|
isClearable,
|
|
@@ -10871,7 +10871,7 @@
|
|
|
10871
10871
|
_defineProperties(Constructor, staticProps);
|
|
10872
10872
|
return Constructor;
|
|
10873
10873
|
}
|
|
10874
|
-
function _define_property$
|
|
10874
|
+
function _define_property$S(obj, key, value) {
|
|
10875
10875
|
if (key in obj) {
|
|
10876
10876
|
Object.defineProperty(obj, key, {
|
|
10877
10877
|
value,
|
|
@@ -10904,7 +10904,7 @@
|
|
|
10904
10904
|
if (superClass)
|
|
10905
10905
|
_set_prototype_of(subClass, superClass);
|
|
10906
10906
|
}
|
|
10907
|
-
function _object_spread$
|
|
10907
|
+
function _object_spread$Q(target) {
|
|
10908
10908
|
for (var i = 1; i < arguments.length; i++) {
|
|
10909
10909
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10910
10910
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10914,15 +10914,15 @@
|
|
|
10914
10914
|
}));
|
|
10915
10915
|
}
|
|
10916
10916
|
ownKeys2.forEach(function(key) {
|
|
10917
|
-
_define_property$
|
|
10917
|
+
_define_property$S(target, key, source[key]);
|
|
10918
10918
|
});
|
|
10919
10919
|
}
|
|
10920
10920
|
return target;
|
|
10921
10921
|
}
|
|
10922
|
-
function _object_without_properties$
|
|
10922
|
+
function _object_without_properties$f(source, excluded) {
|
|
10923
10923
|
if (source == null)
|
|
10924
10924
|
return {};
|
|
10925
|
-
var target = _object_without_properties_loose$
|
|
10925
|
+
var target = _object_without_properties_loose$f(source, excluded);
|
|
10926
10926
|
var key, i;
|
|
10927
10927
|
if (Object.getOwnPropertySymbols) {
|
|
10928
10928
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10937,7 +10937,7 @@
|
|
|
10937
10937
|
}
|
|
10938
10938
|
return target;
|
|
10939
10939
|
}
|
|
10940
|
-
function _object_without_properties_loose$
|
|
10940
|
+
function _object_without_properties_loose$f(source, excluded) {
|
|
10941
10941
|
if (source == null)
|
|
10942
10942
|
return {};
|
|
10943
10943
|
var target = {};
|
|
@@ -11003,8 +11003,8 @@
|
|
|
11003
11003
|
_class_call_check(this, ScrollIntoViewIfNeeded2);
|
|
11004
11004
|
var _this;
|
|
11005
11005
|
_this = _super.apply(this, arguments);
|
|
11006
|
-
_define_property$
|
|
11007
|
-
_define_property$
|
|
11006
|
+
_define_property$S(_assert_this_initialized(_this), "node", React.createRef());
|
|
11007
|
+
_define_property$S(_assert_this_initialized(_this), "handleScrollIntoViewIfNeeded", function() {
|
|
11008
11008
|
var options = _this.props.options;
|
|
11009
11009
|
var _this_node = _this.node, node = _this_node.current;
|
|
11010
11010
|
if (node) {
|
|
@@ -11040,13 +11040,13 @@
|
|
|
11040
11040
|
_this_props.active;
|
|
11041
11041
|
var elementType = _this_props.elementType, children = _this_props.children;
|
|
11042
11042
|
_this_props.options;
|
|
11043
|
-
var wrapperProps = _object_without_properties$
|
|
11043
|
+
var wrapperProps = _object_without_properties$f(_this_props, [
|
|
11044
11044
|
"active",
|
|
11045
11045
|
"elementType",
|
|
11046
11046
|
"children",
|
|
11047
11047
|
"options"
|
|
11048
11048
|
]);
|
|
11049
|
-
return React.createElement(elementType !== null && elementType !== void 0 ? elementType : ScrollIntoViewIfNeededDefaultElementType, _object_spread$
|
|
11049
|
+
return React.createElement(elementType !== null && elementType !== void 0 ? elementType : ScrollIntoViewIfNeededDefaultElementType, _object_spread$Q({
|
|
11050
11050
|
ref: this.node
|
|
11051
11051
|
}, wrapperProps), children);
|
|
11052
11052
|
}
|
|
@@ -11054,10 +11054,10 @@
|
|
|
11054
11054
|
]);
|
|
11055
11055
|
return ScrollIntoViewIfNeeded2;
|
|
11056
11056
|
}(React.PureComponent);
|
|
11057
|
-
_define_property$
|
|
11057
|
+
_define_property$S(ScrollIntoViewIfNeeded, "defaultProps", ScrollIntoViewIfNeededDefaultProps);
|
|
11058
11058
|
var DEFAULT_OPTION_INDEX = -2;
|
|
11059
11059
|
var ALL_OPTION_INDEX = -1;
|
|
11060
|
-
function _define_property$
|
|
11060
|
+
function _define_property$R(obj, key, value) {
|
|
11061
11061
|
if (key in obj) {
|
|
11062
11062
|
Object.defineProperty(obj, key, {
|
|
11063
11063
|
value,
|
|
@@ -11070,7 +11070,7 @@
|
|
|
11070
11070
|
}
|
|
11071
11071
|
return obj;
|
|
11072
11072
|
}
|
|
11073
|
-
function _object_spread$
|
|
11073
|
+
function _object_spread$P(target) {
|
|
11074
11074
|
for (var i = 1; i < arguments.length; i++) {
|
|
11075
11075
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
11076
11076
|
var ownKeys2 = Object.keys(source);
|
|
@@ -11080,7 +11080,7 @@
|
|
|
11080
11080
|
}));
|
|
11081
11081
|
}
|
|
11082
11082
|
ownKeys2.forEach(function(key) {
|
|
11083
|
-
_define_property$
|
|
11083
|
+
_define_property$R(target, key, source[key]);
|
|
11084
11084
|
});
|
|
11085
11085
|
}
|
|
11086
11086
|
return target;
|
|
@@ -11091,7 +11091,7 @@
|
|
|
11091
11091
|
10,
|
|
11092
11092
|
20
|
|
11093
11093
|
];
|
|
11094
|
-
var useStyles$
|
|
11094
|
+
var useStyles$G = createThemedStyles("SelectList", {
|
|
11095
11095
|
root: {
|
|
11096
11096
|
borderRadius: dimensions.BORDER_RADIUS_SMALL,
|
|
11097
11097
|
boxShadow: "0 13px 74px -27px rgba(0, 0, 0, 0.11)",
|
|
@@ -11111,7 +11111,7 @@
|
|
|
11111
11111
|
},
|
|
11112
11112
|
listHeader: {},
|
|
11113
11113
|
listFooter: {},
|
|
11114
|
-
list: _object_spread$
|
|
11114
|
+
list: _object_spread$P({
|
|
11115
11115
|
height: "100%",
|
|
11116
11116
|
maxHeight: ROW_HEIGHT$1 * 6,
|
|
11117
11117
|
cursor: "pointer",
|
|
@@ -11154,7 +11154,7 @@
|
|
|
11154
11154
|
display: "none"
|
|
11155
11155
|
}
|
|
11156
11156
|
};
|
|
11157
|
-
function _define_property$
|
|
11157
|
+
function _define_property$Q(obj, key, value) {
|
|
11158
11158
|
if (key in obj) {
|
|
11159
11159
|
Object.defineProperty(obj, key, {
|
|
11160
11160
|
value,
|
|
@@ -11167,7 +11167,7 @@
|
|
|
11167
11167
|
}
|
|
11168
11168
|
return obj;
|
|
11169
11169
|
}
|
|
11170
|
-
function _object_spread$
|
|
11170
|
+
function _object_spread$O(target) {
|
|
11171
11171
|
for (var i = 1; i < arguments.length; i++) {
|
|
11172
11172
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
11173
11173
|
var ownKeys2 = Object.keys(source);
|
|
@@ -11177,12 +11177,12 @@
|
|
|
11177
11177
|
}));
|
|
11178
11178
|
}
|
|
11179
11179
|
ownKeys2.forEach(function(key) {
|
|
11180
|
-
_define_property$
|
|
11180
|
+
_define_property$Q(target, key, source[key]);
|
|
11181
11181
|
});
|
|
11182
11182
|
}
|
|
11183
11183
|
return target;
|
|
11184
11184
|
}
|
|
11185
|
-
function ownKeys$
|
|
11185
|
+
function ownKeys$I(object, enumerableOnly) {
|
|
11186
11186
|
var keys2 = Object.keys(object);
|
|
11187
11187
|
if (Object.getOwnPropertySymbols) {
|
|
11188
11188
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -11195,12 +11195,12 @@
|
|
|
11195
11195
|
}
|
|
11196
11196
|
return keys2;
|
|
11197
11197
|
}
|
|
11198
|
-
function _object_spread_props$
|
|
11198
|
+
function _object_spread_props$I(target, source) {
|
|
11199
11199
|
source = source != null ? source : {};
|
|
11200
11200
|
if (Object.getOwnPropertyDescriptors) {
|
|
11201
11201
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
11202
11202
|
} else {
|
|
11203
|
-
ownKeys$
|
|
11203
|
+
ownKeys$I(Object(source)).forEach(function(key) {
|
|
11204
11204
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
11205
11205
|
});
|
|
11206
11206
|
}
|
|
@@ -11220,12 +11220,12 @@
|
|
|
11220
11220
|
children
|
|
11221
11221
|
});
|
|
11222
11222
|
var _obj2;
|
|
11223
|
-
return /* @__PURE__ */ jsx(ScrollIntoViewIfNeeded, _object_spread_props$
|
|
11223
|
+
return /* @__PURE__ */ jsx(ScrollIntoViewIfNeeded, _object_spread_props$I(_object_spread$O({
|
|
11224
11224
|
active: isFocused,
|
|
11225
11225
|
options: {
|
|
11226
11226
|
block: "nearest"
|
|
11227
11227
|
},
|
|
11228
|
-
className: clsx(classes.cell, (_obj2 = {}, _define_property$
|
|
11228
|
+
className: clsx(classes.cell, (_obj2 = {}, _define_property$Q(_obj2, classes.cellWithCheckbox, isMultiSelect), _define_property$Q(_obj2, classes.focused, isFocused), _define_property$Q(_obj2, classes.active, isActive && !isMultiSelect), _define_property$Q(_obj2, classes.disabled, isDisabled), _obj2))
|
|
11229
11229
|
}, addDataAttributes({
|
|
11230
11230
|
disabled: isDisabled,
|
|
11231
11231
|
active: isActive,
|
|
@@ -11237,7 +11237,7 @@
|
|
|
11237
11237
|
children: isMultiSelect ? multiSelectContent : children
|
|
11238
11238
|
}));
|
|
11239
11239
|
};
|
|
11240
|
-
function _define_property$
|
|
11240
|
+
function _define_property$P(obj, key, value) {
|
|
11241
11241
|
if (key in obj) {
|
|
11242
11242
|
Object.defineProperty(obj, key, {
|
|
11243
11243
|
value,
|
|
@@ -11250,7 +11250,7 @@
|
|
|
11250
11250
|
}
|
|
11251
11251
|
return obj;
|
|
11252
11252
|
}
|
|
11253
|
-
function _object_spread$
|
|
11253
|
+
function _object_spread$N(target) {
|
|
11254
11254
|
for (var i = 1; i < arguments.length; i++) {
|
|
11255
11255
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
11256
11256
|
var ownKeys2 = Object.keys(source);
|
|
@@ -11260,12 +11260,12 @@
|
|
|
11260
11260
|
}));
|
|
11261
11261
|
}
|
|
11262
11262
|
ownKeys2.forEach(function(key) {
|
|
11263
|
-
_define_property$
|
|
11263
|
+
_define_property$P(target, key, source[key]);
|
|
11264
11264
|
});
|
|
11265
11265
|
}
|
|
11266
11266
|
return target;
|
|
11267
11267
|
}
|
|
11268
|
-
function ownKeys$
|
|
11268
|
+
function ownKeys$H(object, enumerableOnly) {
|
|
11269
11269
|
var keys2 = Object.keys(object);
|
|
11270
11270
|
if (Object.getOwnPropertySymbols) {
|
|
11271
11271
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -11278,12 +11278,12 @@
|
|
|
11278
11278
|
}
|
|
11279
11279
|
return keys2;
|
|
11280
11280
|
}
|
|
11281
|
-
function _object_spread_props$
|
|
11281
|
+
function _object_spread_props$H(target, source) {
|
|
11282
11282
|
source = source != null ? source : {};
|
|
11283
11283
|
if (Object.getOwnPropertyDescriptors) {
|
|
11284
11284
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
11285
11285
|
} else {
|
|
11286
|
-
ownKeys$
|
|
11286
|
+
ownKeys$H(Object(source)).forEach(function(key) {
|
|
11287
11287
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
11288
11288
|
});
|
|
11289
11289
|
}
|
|
@@ -11291,7 +11291,7 @@
|
|
|
11291
11291
|
}
|
|
11292
11292
|
function SelectList(param) {
|
|
11293
11293
|
var options = param.options, focusedIndex = param.focusedIndex, activeValue = param.activeValue, defaultOptionLabel = param.defaultOptionLabel, _param_noMatchesLabel = param.noMatchesLabel, noMatchesLabel = _param_noMatchesLabel === void 0 ? "Совпадений не найдено" : _param_noMatchesLabel, isLoading = param.isLoading, _param_loadingLabel = param.loadingLabel, loadingLabel = _param_loadingLabel === void 0 ? "Загрузка..." : _param_loadingLabel, tweakStyles = param.tweakStyles, testId = param.testId, _param_shouldScrollToList = param.shouldScrollToList, shouldScrollToList = _param_shouldScrollToList === void 0 ? true : _param_shouldScrollToList, areAllOptionsSelected = param.areAllOptionsSelected, customListHeader = param.customListHeader, customListFooter = param.customListFooter, isMultiSelect = param.isMultiSelect, isOptionDisabled = param.isOptionDisabled, allOptionsLabel = param.allOptionsLabel, onOptionSelect = param.onOptionSelect, onToggleCheckbox = param.onToggleCheckbox, convertValueToString = param.convertValueToString, _param_convertValueToReactNode = param.convertValueToReactNode, convertValueToReactNode = _param_convertValueToReactNode === void 0 ? convertValueToString : _param_convertValueToReactNode, convertValueToId = param.convertValueToId;
|
|
11294
|
-
var classes = useStyles$
|
|
11294
|
+
var classes = useStyles$G({
|
|
11295
11295
|
theme: tweakStyles
|
|
11296
11296
|
});
|
|
11297
11297
|
var isHeaderNotEmpty = trueReactPlatformHelpers.isReactNodeNotEmpty(customListHeader);
|
|
@@ -11320,13 +11320,13 @@
|
|
|
11320
11320
|
var _obj2;
|
|
11321
11321
|
return /* @__PURE__ */ jsxs(ScrollIntoViewIfNeeded, {
|
|
11322
11322
|
active: shouldScrollToList && !isMultiSelect,
|
|
11323
|
-
className: clsx(classes.root, (_obj2 = {}, _define_property$
|
|
11323
|
+
className: clsx(classes.root, (_obj2 = {}, _define_property$P(_obj2, classes.withListHeader, isHeaderNotEmpty), _define_property$P(_obj2, classes.withListFooter, isFooterNotEmpty), _obj2)),
|
|
11324
11324
|
children: [
|
|
11325
11325
|
isHeaderNotEmpty && /* @__PURE__ */ jsx("div", {
|
|
11326
11326
|
className: classes.listHeader,
|
|
11327
11327
|
children: customListHeader
|
|
11328
11328
|
}),
|
|
11329
|
-
/* @__PURE__ */ jsx("div", _object_spread_props$
|
|
11329
|
+
/* @__PURE__ */ jsx("div", _object_spread_props$H(_object_spread$N({
|
|
11330
11330
|
className: classes.list
|
|
11331
11331
|
}, trueReactPlatformHelpers.addDataTestId(testId)), {
|
|
11332
11332
|
tabIndex: -1,
|
|
@@ -11403,7 +11403,7 @@
|
|
|
11403
11403
|
return trueReactPlatformHelpers.isNotEmpty(value === null || value === void 0 ? void 0 : value.id) ? String(value.id) : convertValueToString(value);
|
|
11404
11404
|
};
|
|
11405
11405
|
};
|
|
11406
|
-
var useStyles$
|
|
11406
|
+
var useStyles$F = createThemedStyles("Select", {
|
|
11407
11407
|
root: {
|
|
11408
11408
|
width: "100%",
|
|
11409
11409
|
position: "relative",
|
|
@@ -11565,7 +11565,7 @@
|
|
|
11565
11565
|
});
|
|
11566
11566
|
};
|
|
11567
11567
|
}
|
|
11568
|
-
function _define_property$
|
|
11568
|
+
function _define_property$O(obj, key, value) {
|
|
11569
11569
|
if (key in obj) {
|
|
11570
11570
|
Object.defineProperty(obj, key, {
|
|
11571
11571
|
value,
|
|
@@ -11616,7 +11616,7 @@
|
|
|
11616
11616
|
function _non_iterable_spread$6() {
|
|
11617
11617
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
11618
11618
|
}
|
|
11619
|
-
function _object_spread$
|
|
11619
|
+
function _object_spread$M(target) {
|
|
11620
11620
|
for (var i = 1; i < arguments.length; i++) {
|
|
11621
11621
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
11622
11622
|
var ownKeys2 = Object.keys(source);
|
|
@@ -11626,12 +11626,12 @@
|
|
|
11626
11626
|
}));
|
|
11627
11627
|
}
|
|
11628
11628
|
ownKeys2.forEach(function(key) {
|
|
11629
|
-
_define_property$
|
|
11629
|
+
_define_property$O(target, key, source[key]);
|
|
11630
11630
|
});
|
|
11631
11631
|
}
|
|
11632
11632
|
return target;
|
|
11633
11633
|
}
|
|
11634
|
-
function ownKeys$
|
|
11634
|
+
function ownKeys$G(object, enumerableOnly) {
|
|
11635
11635
|
var keys2 = Object.keys(object);
|
|
11636
11636
|
if (Object.getOwnPropertySymbols) {
|
|
11637
11637
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -11644,21 +11644,21 @@
|
|
|
11644
11644
|
}
|
|
11645
11645
|
return keys2;
|
|
11646
11646
|
}
|
|
11647
|
-
function _object_spread_props$
|
|
11647
|
+
function _object_spread_props$G(target, source) {
|
|
11648
11648
|
source = source != null ? source : {};
|
|
11649
11649
|
if (Object.getOwnPropertyDescriptors) {
|
|
11650
11650
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
11651
11651
|
} else {
|
|
11652
|
-
ownKeys$
|
|
11652
|
+
ownKeys$G(Object(source)).forEach(function(key) {
|
|
11653
11653
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
11654
11654
|
});
|
|
11655
11655
|
}
|
|
11656
11656
|
return target;
|
|
11657
11657
|
}
|
|
11658
|
-
function _object_without_properties$
|
|
11658
|
+
function _object_without_properties$e(source, excluded) {
|
|
11659
11659
|
if (source == null)
|
|
11660
11660
|
return {};
|
|
11661
|
-
var target = _object_without_properties_loose$
|
|
11661
|
+
var target = _object_without_properties_loose$e(source, excluded);
|
|
11662
11662
|
var key, i;
|
|
11663
11663
|
if (Object.getOwnPropertySymbols) {
|
|
11664
11664
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -11673,7 +11673,7 @@
|
|
|
11673
11673
|
}
|
|
11674
11674
|
return target;
|
|
11675
11675
|
}
|
|
11676
|
-
function _object_without_properties_loose$
|
|
11676
|
+
function _object_without_properties_loose$e(source, excluded) {
|
|
11677
11677
|
if (source == null)
|
|
11678
11678
|
return {};
|
|
11679
11679
|
var target = {};
|
|
@@ -11810,7 +11810,7 @@
|
|
|
11810
11810
|
}
|
|
11811
11811
|
function Select(props) {
|
|
11812
11812
|
var _input_current_parentElement, _input_current;
|
|
11813
|
-
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, iconType = props.iconType, onChange = props.onChange, onFocus = props.onFocus, onBlur = props.onBlur, onType = props.onType, onOpen = props.onOpen, _props_isOptionDisabled = props.isOptionDisabled, isOptionDisabled = _props_isOptionDisabled === void 0 ? defaultIsOptionDisabled : _props_isOptionDisabled, _props_compareValuesOnChange = props.compareValuesOnChange, compareValuesOnChange = _props_compareValuesOnChange === void 0 ? defaultCompareFunction : _props_compareValuesOnChange, _props_convertValueToString = props.convertValueToString, convertValueToString = _props_convertValueToString === void 0 ? defaultConvertFunction$2 : _props_convertValueToString, convertValueToId = props.convertValueToId, convertValueToReactNode = props.convertValueToReactNode, optionsFilter = props.optionsFilter, inputProps = _object_without_properties$
|
|
11813
|
+
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, iconType = props.iconType, onChange = props.onChange, onFocus = props.onFocus, onBlur = props.onBlur, onType = props.onType, onOpen = props.onOpen, _props_isOptionDisabled = props.isOptionDisabled, isOptionDisabled = _props_isOptionDisabled === void 0 ? defaultIsOptionDisabled : _props_isOptionDisabled, _props_compareValuesOnChange = props.compareValuesOnChange, compareValuesOnChange = _props_compareValuesOnChange === void 0 ? defaultCompareFunction : _props_compareValuesOnChange, _props_convertValueToString = props.convertValueToString, convertValueToString = _props_convertValueToString === void 0 ? defaultConvertFunction$2 : _props_convertValueToString, convertValueToId = props.convertValueToId, convertValueToReactNode = props.convertValueToReactNode, optionsFilter = props.optionsFilter, inputProps = _object_without_properties$e(props, [
|
|
11814
11814
|
"options",
|
|
11815
11815
|
"isMultiSelect",
|
|
11816
11816
|
"value",
|
|
@@ -11845,10 +11845,10 @@
|
|
|
11845
11845
|
"convertValueToReactNode",
|
|
11846
11846
|
"optionsFilter"
|
|
11847
11847
|
]);
|
|
11848
|
-
var classes = useStyles$
|
|
11848
|
+
var classes = useStyles$F({
|
|
11849
11849
|
theme: tweakStyles
|
|
11850
11850
|
});
|
|
11851
|
-
var _ref = searchInput !== null && searchInput !== void 0 ? searchInput : {}, tmp = _ref.shouldRenderInList, shouldRenderSearchInputInList = tmp === void 0 ? false : tmp, searchInputProps = _object_without_properties$
|
|
11851
|
+
var _ref = searchInput !== null && searchInput !== void 0 ? searchInput : {}, tmp = _ref.shouldRenderInList, shouldRenderSearchInputInList = tmp === void 0 ? false : tmp, searchInputProps = _object_without_properties$e(_ref, [
|
|
11852
11852
|
"shouldRenderInList"
|
|
11853
11853
|
]);
|
|
11854
11854
|
var hasSearchInputInList = optionsMode !== "normal" && shouldRenderSearchInputInList;
|
|
@@ -12217,7 +12217,7 @@
|
|
|
12217
12217
|
}, [
|
|
12218
12218
|
isOpen
|
|
12219
12219
|
]);
|
|
12220
|
-
var searchInputEl = hasSearchInputInList && /* @__PURE__ */ jsx(SearchInput, _object_spread$
|
|
12220
|
+
var searchInputEl = hasSearchInputInList && /* @__PURE__ */ jsx(SearchInput, _object_spread$M({
|
|
12221
12221
|
value: searchValue,
|
|
12222
12222
|
onChange: handleInputChange,
|
|
12223
12223
|
tweakStyles: tweakSearchInputStyles,
|
|
@@ -12230,8 +12230,8 @@
|
|
|
12230
12230
|
]
|
|
12231
12231
|
});
|
|
12232
12232
|
var _obj2;
|
|
12233
|
-
var listEl = /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
12234
|
-
className: clsx(classes.listWrapper, (_obj2 = {}, _define_property$
|
|
12233
|
+
var listEl = /* @__PURE__ */ jsx("div", _object_spread_props$G(_object_spread$M({
|
|
12234
|
+
className: clsx(classes.listWrapper, (_obj2 = {}, _define_property$O(_obj2, classes.withoutPopper, !shouldUsePopper), _define_property$O(_obj2, classes.listWrapperInBody, shouldRenderInBody), _obj2)),
|
|
12235
12235
|
ref: list,
|
|
12236
12236
|
style: popperData === null || popperData === void 0 ? void 0 : popperData.styles.popper,
|
|
12237
12237
|
tabIndex: 0,
|
|
@@ -12287,7 +12287,7 @@
|
|
|
12287
12287
|
onClick: isDisabled || isReadonly ? void 0 : handleOnClick,
|
|
12288
12288
|
ref: inputWrapper,
|
|
12289
12289
|
children: [
|
|
12290
|
-
/* @__PURE__ */ jsx(Input, _object_spread$
|
|
12290
|
+
/* @__PURE__ */ jsx(Input, _object_spread$M({
|
|
12291
12291
|
value: searchValue !== "" && !shouldRenderSearchInputInList ? searchValue : showedStringValue,
|
|
12292
12292
|
onChange: handleInputChange,
|
|
12293
12293
|
isActive: isListOpen || isActive,
|
|
@@ -12324,7 +12324,7 @@
|
|
|
12324
12324
|
}
|
|
12325
12325
|
var SELECT_PADDING_LEFT = 12;
|
|
12326
12326
|
var SELECT_PADDING_RIGHT = 24;
|
|
12327
|
-
var useStyles$
|
|
12327
|
+
var useStyles$E = createThemedStyles("DatePickerHeader", {
|
|
12328
12328
|
btn: {
|
|
12329
12329
|
width: 36,
|
|
12330
12330
|
height: 36,
|
|
@@ -12393,7 +12393,7 @@
|
|
|
12393
12393
|
};
|
|
12394
12394
|
var DatePickerHeader = function(param) {
|
|
12395
12395
|
var date = param.date, _param_months = param.months, months = _param_months === void 0 ? [] : _param_months, tweakStyles = param.tweakStyles, prevMonthButtonDisabled = param.prevMonthButtonDisabled, nextMonthButtonDisabled = param.nextMonthButtonDisabled, changeYear = param.changeYear, changeMonth = param.changeMonth, decreaseMonth = param.decreaseMonth, increaseMonth = param.increaseMonth;
|
|
12396
|
-
var classes = useStyles$
|
|
12396
|
+
var classes = useStyles$E({
|
|
12397
12397
|
theme: tweakStyles
|
|
12398
12398
|
});
|
|
12399
12399
|
var tweakSelectStyles = useTweakStyles({
|
|
@@ -13594,7 +13594,7 @@
|
|
|
13594
13594
|
}
|
|
13595
13595
|
return locale2;
|
|
13596
13596
|
};
|
|
13597
|
-
var useStyles$
|
|
13597
|
+
var useStyles$D = createThemedStyles("DatePicker", {
|
|
13598
13598
|
root: {
|
|
13599
13599
|
width: "100%",
|
|
13600
13600
|
height: "100%"
|
|
@@ -13628,7 +13628,7 @@
|
|
|
13628
13628
|
if (Array.isArray(arr))
|
|
13629
13629
|
return arr;
|
|
13630
13630
|
}
|
|
13631
|
-
function _define_property$
|
|
13631
|
+
function _define_property$N(obj, key, value) {
|
|
13632
13632
|
if (key in obj) {
|
|
13633
13633
|
Object.defineProperty(obj, key, {
|
|
13634
13634
|
value,
|
|
@@ -13672,7 +13672,7 @@
|
|
|
13672
13672
|
function _non_iterable_rest$h() {
|
|
13673
13673
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
13674
13674
|
}
|
|
13675
|
-
function _object_spread$
|
|
13675
|
+
function _object_spread$L(target) {
|
|
13676
13676
|
for (var i = 1; i < arguments.length; i++) {
|
|
13677
13677
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
13678
13678
|
var ownKeys2 = Object.keys(source);
|
|
@@ -13682,12 +13682,12 @@
|
|
|
13682
13682
|
}));
|
|
13683
13683
|
}
|
|
13684
13684
|
ownKeys2.forEach(function(key) {
|
|
13685
|
-
_define_property$
|
|
13685
|
+
_define_property$N(target, key, source[key]);
|
|
13686
13686
|
});
|
|
13687
13687
|
}
|
|
13688
13688
|
return target;
|
|
13689
13689
|
}
|
|
13690
|
-
function ownKeys$
|
|
13690
|
+
function ownKeys$F(object, enumerableOnly) {
|
|
13691
13691
|
var keys2 = Object.keys(object);
|
|
13692
13692
|
if (Object.getOwnPropertySymbols) {
|
|
13693
13693
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -13700,21 +13700,21 @@
|
|
|
13700
13700
|
}
|
|
13701
13701
|
return keys2;
|
|
13702
13702
|
}
|
|
13703
|
-
function _object_spread_props$
|
|
13703
|
+
function _object_spread_props$F(target, source) {
|
|
13704
13704
|
source = source != null ? source : {};
|
|
13705
13705
|
if (Object.getOwnPropertyDescriptors) {
|
|
13706
13706
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
13707
13707
|
} else {
|
|
13708
|
-
ownKeys$
|
|
13708
|
+
ownKeys$F(Object(source)).forEach(function(key) {
|
|
13709
13709
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
13710
13710
|
});
|
|
13711
13711
|
}
|
|
13712
13712
|
return target;
|
|
13713
13713
|
}
|
|
13714
|
-
function _object_without_properties$
|
|
13714
|
+
function _object_without_properties$d(source, excluded) {
|
|
13715
13715
|
if (source == null)
|
|
13716
13716
|
return {};
|
|
13717
|
-
var target = _object_without_properties_loose$
|
|
13717
|
+
var target = _object_without_properties_loose$d(source, excluded);
|
|
13718
13718
|
var key, i;
|
|
13719
13719
|
if (Object.getOwnPropertySymbols) {
|
|
13720
13720
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -13729,7 +13729,7 @@
|
|
|
13729
13729
|
}
|
|
13730
13730
|
return target;
|
|
13731
13731
|
}
|
|
13732
|
-
function _object_without_properties_loose$
|
|
13732
|
+
function _object_without_properties_loose$d(source, excluded) {
|
|
13733
13733
|
if (source == null)
|
|
13734
13734
|
return {};
|
|
13735
13735
|
var target = {};
|
|
@@ -13760,7 +13760,7 @@
|
|
|
13760
13760
|
return _array_like_to_array$h(o, minLen);
|
|
13761
13761
|
}
|
|
13762
13762
|
var DatePicker = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
13763
|
-
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$
|
|
13763
|
+
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$d(_param, [
|
|
13764
13764
|
"data",
|
|
13765
13765
|
"selectedDate",
|
|
13766
13766
|
"minDate",
|
|
@@ -13808,7 +13808,7 @@
|
|
|
13808
13808
|
"onKeyDown",
|
|
13809
13809
|
"tweakStyles"
|
|
13810
13810
|
]);
|
|
13811
|
-
var classes = useStyles$
|
|
13811
|
+
var classes = useStyles$D({
|
|
13812
13812
|
theme: tweakStyles
|
|
13813
13813
|
});
|
|
13814
13814
|
var tweakDateInputStyles = useTweakStyles({
|
|
@@ -13831,7 +13831,7 @@
|
|
|
13831
13831
|
var _useState4 = _sliced_to_array$h(React.useState(endDate), 2), end2 = _useState4[0], setEnd = _useState4[1];
|
|
13832
13832
|
var _useState5 = _sliced_to_array$h(React.useState(formatDate(endDate)), 2), endDateValue = _useState5[0], setEndDateValue = _useState5[1];
|
|
13833
13833
|
var hasDateInputValue = isRange ? trueReactPlatformHelpers.isStringNotEmpty(startDateValue) || trueReactPlatformHelpers.isStringNotEmpty(endDateValue) : trueReactPlatformHelpers.isStringNotEmpty(dateValue);
|
|
13834
|
-
var dateInputProps = _object_spread$
|
|
13834
|
+
var dateInputProps = _object_spread$L(_object_spread_props$F(_object_spread$L({}, inputProps), {
|
|
13835
13835
|
isRange,
|
|
13836
13836
|
isDisabled,
|
|
13837
13837
|
isClearable,
|
|
@@ -13929,10 +13929,10 @@
|
|
|
13929
13929
|
startDate,
|
|
13930
13930
|
endDate
|
|
13931
13931
|
]);
|
|
13932
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
13932
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$F(_object_spread$L({
|
|
13933
13933
|
className: classes.root
|
|
13934
13934
|
}, addDataAttributes(data)), {
|
|
13935
|
-
children: /* @__PURE__ */ jsx(DatePickerComponent, _object_spread$
|
|
13935
|
+
children: /* @__PURE__ */ jsx(DatePickerComponent, _object_spread$L({
|
|
13936
13936
|
ref,
|
|
13937
13937
|
minDate,
|
|
13938
13938
|
maxDate,
|
|
@@ -13963,9 +13963,9 @@
|
|
|
13963
13963
|
preventOpenOnFocus,
|
|
13964
13964
|
shouldCloseOnSelect,
|
|
13965
13965
|
customInputRef,
|
|
13966
|
-
customInput: /* @__PURE__ */ jsx(CustomInput, _object_spread$
|
|
13966
|
+
customInput: /* @__PURE__ */ jsx(CustomInput, _object_spread$L({}, dateInputProps)),
|
|
13967
13967
|
renderCustomHeader: renderCustomHeader !== null && renderCustomHeader !== void 0 ? renderCustomHeader : function(baseProps) {
|
|
13968
|
-
return /* @__PURE__ */ jsx(DatePickerHeader, _object_spread_props$
|
|
13968
|
+
return /* @__PURE__ */ jsx(DatePickerHeader, _object_spread_props$F(_object_spread$L({}, baseProps), {
|
|
13969
13969
|
months
|
|
13970
13970
|
}));
|
|
13971
13971
|
},
|
|
@@ -14003,7 +14003,7 @@
|
|
|
14003
14003
|
}));
|
|
14004
14004
|
});
|
|
14005
14005
|
var LINK_REGEXP = /(http(s?):\/\/(.*))(\s?)/;
|
|
14006
|
-
var useStyles$
|
|
14006
|
+
var useStyles$C = createThemedStyles("Description", {
|
|
14007
14007
|
root: {},
|
|
14008
14008
|
button: {
|
|
14009
14009
|
cursor: "pointer",
|
|
@@ -14044,7 +14044,7 @@
|
|
|
14044
14044
|
if (Array.isArray(arr))
|
|
14045
14045
|
return arr;
|
|
14046
14046
|
}
|
|
14047
|
-
function _define_property$
|
|
14047
|
+
function _define_property$M(obj, key, value) {
|
|
14048
14048
|
if (key in obj) {
|
|
14049
14049
|
Object.defineProperty(obj, key, {
|
|
14050
14050
|
value,
|
|
@@ -14088,7 +14088,7 @@
|
|
|
14088
14088
|
function _non_iterable_rest$g() {
|
|
14089
14089
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14090
14090
|
}
|
|
14091
|
-
function _object_spread$
|
|
14091
|
+
function _object_spread$K(target) {
|
|
14092
14092
|
for (var i = 1; i < arguments.length; i++) {
|
|
14093
14093
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14094
14094
|
var ownKeys2 = Object.keys(source);
|
|
@@ -14098,12 +14098,12 @@
|
|
|
14098
14098
|
}));
|
|
14099
14099
|
}
|
|
14100
14100
|
ownKeys2.forEach(function(key) {
|
|
14101
|
-
_define_property$
|
|
14101
|
+
_define_property$M(target, key, source[key]);
|
|
14102
14102
|
});
|
|
14103
14103
|
}
|
|
14104
14104
|
return target;
|
|
14105
14105
|
}
|
|
14106
|
-
function ownKeys$
|
|
14106
|
+
function ownKeys$E(object, enumerableOnly) {
|
|
14107
14107
|
var keys2 = Object.keys(object);
|
|
14108
14108
|
if (Object.getOwnPropertySymbols) {
|
|
14109
14109
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -14116,12 +14116,12 @@
|
|
|
14116
14116
|
}
|
|
14117
14117
|
return keys2;
|
|
14118
14118
|
}
|
|
14119
|
-
function _object_spread_props$
|
|
14119
|
+
function _object_spread_props$E(target, source) {
|
|
14120
14120
|
source = source != null ? source : {};
|
|
14121
14121
|
if (Object.getOwnPropertyDescriptors) {
|
|
14122
14122
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
14123
14123
|
} else {
|
|
14124
|
-
ownKeys$
|
|
14124
|
+
ownKeys$E(Object(source)).forEach(function(key) {
|
|
14125
14125
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
14126
14126
|
});
|
|
14127
14127
|
}
|
|
@@ -14145,7 +14145,7 @@
|
|
|
14145
14145
|
}
|
|
14146
14146
|
var Description = function(param) {
|
|
14147
14147
|
var text = param.text, moreTitle = param.moreTitle, lessTitle = param.lessTitle, _param_truncateIndex = param.truncateIndex, truncateIndex = _param_truncateIndex === void 0 ? 150 : _param_truncateIndex, _param_isAlwaysOpen = param.isAlwaysOpen, isAlwaysOpen = _param_isAlwaysOpen === void 0 ? true : _param_isAlwaysOpen, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles;
|
|
14148
|
-
var classes = useStyles$
|
|
14148
|
+
var classes = useStyles$C({
|
|
14149
14149
|
theme: tweakStyles
|
|
14150
14150
|
});
|
|
14151
14151
|
var isTooShort = text.length < truncateIndex;
|
|
@@ -14154,7 +14154,7 @@
|
|
|
14154
14154
|
var linkText = link && link[0];
|
|
14155
14155
|
var textWithNoLink = text.replace(LINK_REGEXP, "");
|
|
14156
14156
|
var shortText = text.slice(0, text.slice(0, truncateIndex).lastIndexOf(" "));
|
|
14157
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
14157
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$E(_object_spread$K({
|
|
14158
14158
|
className: classes.root
|
|
14159
14159
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
14160
14160
|
children: [
|
|
@@ -14193,7 +14193,7 @@
|
|
|
14193
14193
|
event.preventDefault();
|
|
14194
14194
|
event.stopPropagation();
|
|
14195
14195
|
};
|
|
14196
|
-
var useStyles$
|
|
14196
|
+
var useStyles$B = createThemedStyles("FileInput", {
|
|
14197
14197
|
root: {
|
|
14198
14198
|
display: "flex",
|
|
14199
14199
|
flexDirection: "column",
|
|
@@ -14276,7 +14276,7 @@
|
|
|
14276
14276
|
if (Array.isArray(arr))
|
|
14277
14277
|
return _array_like_to_array$f(arr);
|
|
14278
14278
|
}
|
|
14279
|
-
function _define_property$
|
|
14279
|
+
function _define_property$L(obj, key, value) {
|
|
14280
14280
|
if (key in obj) {
|
|
14281
14281
|
Object.defineProperty(obj, key, {
|
|
14282
14282
|
value,
|
|
@@ -14327,7 +14327,7 @@
|
|
|
14327
14327
|
function _non_iterable_spread$5() {
|
|
14328
14328
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14329
14329
|
}
|
|
14330
|
-
function _object_spread$
|
|
14330
|
+
function _object_spread$J(target) {
|
|
14331
14331
|
for (var i = 1; i < arguments.length; i++) {
|
|
14332
14332
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14333
14333
|
var ownKeys2 = Object.keys(source);
|
|
@@ -14337,12 +14337,12 @@
|
|
|
14337
14337
|
}));
|
|
14338
14338
|
}
|
|
14339
14339
|
ownKeys2.forEach(function(key) {
|
|
14340
|
-
_define_property$
|
|
14340
|
+
_define_property$L(target, key, source[key]);
|
|
14341
14341
|
});
|
|
14342
14342
|
}
|
|
14343
14343
|
return target;
|
|
14344
14344
|
}
|
|
14345
|
-
function ownKeys$
|
|
14345
|
+
function ownKeys$D(object, enumerableOnly) {
|
|
14346
14346
|
var keys2 = Object.keys(object);
|
|
14347
14347
|
if (Object.getOwnPropertySymbols) {
|
|
14348
14348
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -14355,12 +14355,12 @@
|
|
|
14355
14355
|
}
|
|
14356
14356
|
return keys2;
|
|
14357
14357
|
}
|
|
14358
|
-
function _object_spread_props$
|
|
14358
|
+
function _object_spread_props$D(target, source) {
|
|
14359
14359
|
source = source != null ? source : {};
|
|
14360
14360
|
if (Object.getOwnPropertyDescriptors) {
|
|
14361
14361
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
14362
14362
|
} else {
|
|
14363
|
-
ownKeys$
|
|
14363
|
+
ownKeys$D(Object(source)).forEach(function(key) {
|
|
14364
14364
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
14365
14365
|
});
|
|
14366
14366
|
}
|
|
@@ -14387,7 +14387,7 @@
|
|
|
14387
14387
|
}
|
|
14388
14388
|
var FileInput = /* @__PURE__ */ React.forwardRef(function(param, ref) {
|
|
14389
14389
|
var fileList = param.fileList, label = param.label, text = param.text, description = param.description, _param_isDragAndDropDisabled = param.isDragAndDropDisabled, isDragAndDropDisabled = _param_isDragAndDropDisabled === void 0 ? false : _param_isDragAndDropDisabled, _param_isRequired = param.isRequired, isRequired = _param_isRequired === void 0 ? false : _param_isRequired, _param_isReadOnly = param.isReadOnly, isReadOnly = _param_isReadOnly === void 0 ? false : _param_isReadOnly, _param_isMultipleDisabled = param.isMultipleDisabled, isMultipleDisabled = _param_isMultipleDisabled === void 0 ? false : _param_isMultipleDisabled, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isActive = param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, accept = param.accept, onAdd = param.onAdd, testId = param.testId, tweakStyles = param.tweakStyles, data = param.data;
|
|
14390
|
-
var classes = useStyles$
|
|
14390
|
+
var classes = useStyles$B({
|
|
14391
14391
|
theme: tweakStyles
|
|
14392
14392
|
});
|
|
14393
14393
|
var _useState = _sliced_to_array$f(React.useState(false), 2), isDragOver = _useState[0], setIsDragOver = _useState[1];
|
|
@@ -14419,16 +14419,16 @@
|
|
|
14419
14419
|
onDrop: handleDrop
|
|
14420
14420
|
} : void 0;
|
|
14421
14421
|
var _obj2;
|
|
14422
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
14422
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$D(_object_spread$J({
|
|
14423
14423
|
className: classes.root
|
|
14424
14424
|
}, addDataAttributes(data), trueReactPlatformHelpers.addDataTestId(testId)), {
|
|
14425
14425
|
children: [
|
|
14426
14426
|
trueReactPlatformHelpers.isReactNodeNotEmpty(label) && /* @__PURE__ */ jsx("div", {
|
|
14427
|
-
className: clsx(classes.label, _define_property$
|
|
14427
|
+
className: clsx(classes.label, _define_property$L({}, classes.requiredLabel, isRequired)),
|
|
14428
14428
|
children: label
|
|
14429
14429
|
}),
|
|
14430
|
-
!isReadOnly && /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
14431
|
-
className: clsx(classes.inputWrapper, (_obj2 = {}, _define_property$
|
|
14430
|
+
!isReadOnly && /* @__PURE__ */ jsxs("div", _object_spread_props$D(_object_spread$J({
|
|
14431
|
+
className: clsx(classes.inputWrapper, (_obj2 = {}, _define_property$L(_obj2, classes.dragged, isDragOver), _define_property$L(_obj2, classes.disabled, isDisabled), _define_property$L(_obj2, classes.active, isActive), _obj2))
|
|
14432
14432
|
}, dndHandlers), {
|
|
14433
14433
|
children: [
|
|
14434
14434
|
trueReactPlatformHelpers.isReactNodeNotEmpty(text) && /* @__PURE__ */ jsx("div", {
|
|
@@ -14437,7 +14437,7 @@
|
|
|
14437
14437
|
}),
|
|
14438
14438
|
/* @__PURE__ */ jsx("label", {
|
|
14439
14439
|
className: classes.inputLabel,
|
|
14440
|
-
children: /* @__PURE__ */ jsx("input", _object_spread$
|
|
14440
|
+
children: /* @__PURE__ */ jsx("input", _object_spread$J({
|
|
14441
14441
|
ref,
|
|
14442
14442
|
type: "file",
|
|
14443
14443
|
value: "",
|
|
@@ -14464,7 +14464,7 @@
|
|
|
14464
14464
|
var BUTTON_SIZE_S = 24;
|
|
14465
14465
|
var BUTTON_SIZE_M = 32;
|
|
14466
14466
|
var ICON_SIZE = 20;
|
|
14467
|
-
var useStyles$
|
|
14467
|
+
var useStyles$A = createThemedStyles("IconButton", {
|
|
14468
14468
|
root: {
|
|
14469
14469
|
display: "flex",
|
|
14470
14470
|
justifyContent: "center",
|
|
@@ -14526,7 +14526,7 @@
|
|
|
14526
14526
|
height: BUTTON_SIZE_M
|
|
14527
14527
|
}
|
|
14528
14528
|
});
|
|
14529
|
-
function _define_property$
|
|
14529
|
+
function _define_property$K(obj, key, value) {
|
|
14530
14530
|
if (key in obj) {
|
|
14531
14531
|
Object.defineProperty(obj, key, {
|
|
14532
14532
|
value,
|
|
@@ -14539,7 +14539,7 @@
|
|
|
14539
14539
|
}
|
|
14540
14540
|
return obj;
|
|
14541
14541
|
}
|
|
14542
|
-
function _object_spread$
|
|
14542
|
+
function _object_spread$I(target) {
|
|
14543
14543
|
for (var i = 1; i < arguments.length; i++) {
|
|
14544
14544
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14545
14545
|
var ownKeys2 = Object.keys(source);
|
|
@@ -14549,12 +14549,12 @@
|
|
|
14549
14549
|
}));
|
|
14550
14550
|
}
|
|
14551
14551
|
ownKeys2.forEach(function(key) {
|
|
14552
|
-
_define_property$
|
|
14552
|
+
_define_property$K(target, key, source[key]);
|
|
14553
14553
|
});
|
|
14554
14554
|
}
|
|
14555
14555
|
return target;
|
|
14556
14556
|
}
|
|
14557
|
-
function ownKeys$
|
|
14557
|
+
function ownKeys$C(object, enumerableOnly) {
|
|
14558
14558
|
var keys2 = Object.keys(object);
|
|
14559
14559
|
if (Object.getOwnPropertySymbols) {
|
|
14560
14560
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -14567,21 +14567,21 @@
|
|
|
14567
14567
|
}
|
|
14568
14568
|
return keys2;
|
|
14569
14569
|
}
|
|
14570
|
-
function _object_spread_props$
|
|
14570
|
+
function _object_spread_props$C(target, source) {
|
|
14571
14571
|
source = source != null ? source : {};
|
|
14572
14572
|
if (Object.getOwnPropertyDescriptors) {
|
|
14573
14573
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
14574
14574
|
} else {
|
|
14575
|
-
ownKeys$
|
|
14575
|
+
ownKeys$C(Object(source)).forEach(function(key) {
|
|
14576
14576
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
14577
14577
|
});
|
|
14578
14578
|
}
|
|
14579
14579
|
return target;
|
|
14580
14580
|
}
|
|
14581
|
-
function _object_without_properties$
|
|
14581
|
+
function _object_without_properties$c(source, excluded) {
|
|
14582
14582
|
if (source == null)
|
|
14583
14583
|
return {};
|
|
14584
|
-
var target = _object_without_properties_loose$
|
|
14584
|
+
var target = _object_without_properties_loose$c(source, excluded);
|
|
14585
14585
|
var key, i;
|
|
14586
14586
|
if (Object.getOwnPropertySymbols) {
|
|
14587
14587
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -14596,7 +14596,7 @@
|
|
|
14596
14596
|
}
|
|
14597
14597
|
return target;
|
|
14598
14598
|
}
|
|
14599
|
-
function _object_without_properties_loose$
|
|
14599
|
+
function _object_without_properties_loose$c(source, excluded) {
|
|
14600
14600
|
if (source == null)
|
|
14601
14601
|
return {};
|
|
14602
14602
|
var target = {};
|
|
@@ -14611,7 +14611,7 @@
|
|
|
14611
14611
|
return target;
|
|
14612
14612
|
}
|
|
14613
14613
|
var IconButton = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
14614
|
-
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$
|
|
14614
|
+
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$c(_param, [
|
|
14615
14615
|
"icon",
|
|
14616
14616
|
"size",
|
|
14617
14617
|
"view",
|
|
@@ -14624,14 +14624,14 @@
|
|
|
14624
14624
|
"data",
|
|
14625
14625
|
"onClick"
|
|
14626
14626
|
]);
|
|
14627
|
-
var classes = useStyles$
|
|
14627
|
+
var classes = useStyles$A({
|
|
14628
14628
|
theme: tweakStyles
|
|
14629
14629
|
});
|
|
14630
14630
|
var hasNoAction = isDisabled || isLoading;
|
|
14631
14631
|
var _obj2;
|
|
14632
|
-
return /* @__PURE__ */ jsx("button", _object_spread_props$
|
|
14632
|
+
return /* @__PURE__ */ jsx("button", _object_spread_props$C(_object_spread$I({
|
|
14633
14633
|
ref,
|
|
14634
|
-
className: clsx(classes.root, classes[view], classes[size], (_obj2 = {}, _define_property$
|
|
14634
|
+
className: clsx(classes.root, classes[view], classes[size], (_obj2 = {}, _define_property$K(_obj2, classes.disabled, isDisabled), _define_property$K(_obj2, classes.active, isActive), _define_property$K(_obj2, classes.loading, isLoading), _obj2)),
|
|
14635
14635
|
type,
|
|
14636
14636
|
disabled: isDisabled,
|
|
14637
14637
|
onClick: hasNoAction ? void 0 : onClick
|
|
@@ -14648,7 +14648,7 @@
|
|
|
14648
14648
|
})
|
|
14649
14649
|
}));
|
|
14650
14650
|
});
|
|
14651
|
-
var useStyles$
|
|
14651
|
+
var useStyles$z = createThemedStyles("Tooltip", {
|
|
14652
14652
|
root: {
|
|
14653
14653
|
display: "inline-block",
|
|
14654
14654
|
boxSizing: "border-box"
|
|
@@ -14691,7 +14691,7 @@
|
|
|
14691
14691
|
}
|
|
14692
14692
|
}
|
|
14693
14693
|
});
|
|
14694
|
-
function _define_property$
|
|
14694
|
+
function _define_property$J(obj, key, value) {
|
|
14695
14695
|
if (key in obj) {
|
|
14696
14696
|
Object.defineProperty(obj, key, {
|
|
14697
14697
|
value,
|
|
@@ -14704,7 +14704,7 @@
|
|
|
14704
14704
|
}
|
|
14705
14705
|
return obj;
|
|
14706
14706
|
}
|
|
14707
|
-
function _object_spread$
|
|
14707
|
+
function _object_spread$H(target) {
|
|
14708
14708
|
for (var i = 1; i < arguments.length; i++) {
|
|
14709
14709
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14710
14710
|
var ownKeys2 = Object.keys(source);
|
|
@@ -14714,12 +14714,12 @@
|
|
|
14714
14714
|
}));
|
|
14715
14715
|
}
|
|
14716
14716
|
ownKeys2.forEach(function(key) {
|
|
14717
|
-
_define_property$
|
|
14717
|
+
_define_property$J(target, key, source[key]);
|
|
14718
14718
|
});
|
|
14719
14719
|
}
|
|
14720
14720
|
return target;
|
|
14721
14721
|
}
|
|
14722
|
-
function ownKeys$
|
|
14722
|
+
function ownKeys$B(object, enumerableOnly) {
|
|
14723
14723
|
var keys2 = Object.keys(object);
|
|
14724
14724
|
if (Object.getOwnPropertySymbols) {
|
|
14725
14725
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -14732,12 +14732,12 @@
|
|
|
14732
14732
|
}
|
|
14733
14733
|
return keys2;
|
|
14734
14734
|
}
|
|
14735
|
-
function _object_spread_props$
|
|
14735
|
+
function _object_spread_props$B(target, source) {
|
|
14736
14736
|
source = source != null ? source : {};
|
|
14737
14737
|
if (Object.getOwnPropertyDescriptors) {
|
|
14738
14738
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
14739
14739
|
} else {
|
|
14740
|
-
ownKeys$
|
|
14740
|
+
ownKeys$B(Object(source)).forEach(function(key) {
|
|
14741
14741
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
14742
14742
|
});
|
|
14743
14743
|
}
|
|
@@ -14745,16 +14745,16 @@
|
|
|
14745
14745
|
}
|
|
14746
14746
|
var Tooltip = function(param) {
|
|
14747
14747
|
var text = param.text, _param_view = param.view, view = _param_view === void 0 ? "tooltip" : _param_view, _param_type = param.type, type = _param_type === void 0 ? "info" : _param_type, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
14748
|
-
var classes = useStyles$
|
|
14748
|
+
var classes = useStyles$z({
|
|
14749
14749
|
theme: tweakStyles
|
|
14750
14750
|
});
|
|
14751
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
14751
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$B(_object_spread$H({
|
|
14752
14752
|
className: clsx(classes.root, classes[view], classes[type])
|
|
14753
14753
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
14754
14754
|
children: text
|
|
14755
14755
|
}));
|
|
14756
14756
|
};
|
|
14757
|
-
var useStyles$
|
|
14757
|
+
var useStyles$y = createThemedStyles("TextWithTooltip", {
|
|
14758
14758
|
root: {
|
|
14759
14759
|
position: "relative"
|
|
14760
14760
|
},
|
|
@@ -14780,7 +14780,7 @@
|
|
|
14780
14780
|
if (Array.isArray(arr))
|
|
14781
14781
|
return _array_like_to_array$e(arr);
|
|
14782
14782
|
}
|
|
14783
|
-
function _define_property$
|
|
14783
|
+
function _define_property$I(obj, key, value) {
|
|
14784
14784
|
if (key in obj) {
|
|
14785
14785
|
Object.defineProperty(obj, key, {
|
|
14786
14786
|
value,
|
|
@@ -14831,7 +14831,7 @@
|
|
|
14831
14831
|
function _non_iterable_spread$4() {
|
|
14832
14832
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14833
14833
|
}
|
|
14834
|
-
function _object_spread$
|
|
14834
|
+
function _object_spread$G(target) {
|
|
14835
14835
|
for (var i = 1; i < arguments.length; i++) {
|
|
14836
14836
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14837
14837
|
var ownKeys2 = Object.keys(source);
|
|
@@ -14841,12 +14841,12 @@
|
|
|
14841
14841
|
}));
|
|
14842
14842
|
}
|
|
14843
14843
|
ownKeys2.forEach(function(key) {
|
|
14844
|
-
_define_property$
|
|
14844
|
+
_define_property$I(target, key, source[key]);
|
|
14845
14845
|
});
|
|
14846
14846
|
}
|
|
14847
14847
|
return target;
|
|
14848
14848
|
}
|
|
14849
|
-
function ownKeys$
|
|
14849
|
+
function ownKeys$A(object, enumerableOnly) {
|
|
14850
14850
|
var keys2 = Object.keys(object);
|
|
14851
14851
|
if (Object.getOwnPropertySymbols) {
|
|
14852
14852
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -14859,12 +14859,12 @@
|
|
|
14859
14859
|
}
|
|
14860
14860
|
return keys2;
|
|
14861
14861
|
}
|
|
14862
|
-
function _object_spread_props$
|
|
14862
|
+
function _object_spread_props$A(target, source) {
|
|
14863
14863
|
source = source != null ? source : {};
|
|
14864
14864
|
if (Object.getOwnPropertyDescriptors) {
|
|
14865
14865
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
14866
14866
|
} else {
|
|
14867
|
-
ownKeys$
|
|
14867
|
+
ownKeys$A(Object(source)).forEach(function(key) {
|
|
14868
14868
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
14869
14869
|
});
|
|
14870
14870
|
}
|
|
@@ -14891,7 +14891,7 @@
|
|
|
14891
14891
|
}
|
|
14892
14892
|
var TextWithTooltip = function(param) {
|
|
14893
14893
|
var children = param.children, tooltipText = param.tooltipText, _param_tooltipPosition = param.tooltipPosition, tooltipPosition = _param_tooltipPosition === void 0 ? "top" : _param_tooltipPosition, _param_tooltipView = param.tooltipView, tooltipView = _param_tooltipView === void 0 ? "tooltip" : _param_tooltipView, _param_tooltipType = param.tooltipType, tooltipType = _param_tooltipType === void 0 ? "info" : _param_tooltipType, _param_tooltipModifiers = param.tooltipModifiers, tooltipModifiers = _param_tooltipModifiers === void 0 ? [] : _param_tooltipModifiers, tooltipOffsetOptions = param.tooltipOffsetOptions, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_shouldRenderInBody = param.shouldRenderInBody, shouldRenderInBody = _param_shouldRenderInBody === void 0 ? true : _param_shouldRenderInBody, _param_mouseEventType = param.mouseEventType, mouseEventType = _param_mouseEventType === void 0 ? "hover" : _param_mouseEventType, hoverDelay = param.hoverDelay, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles;
|
|
14894
|
-
var classes = useStyles$
|
|
14894
|
+
var classes = useStyles$y({
|
|
14895
14895
|
theme: tweakStyles
|
|
14896
14896
|
});
|
|
14897
14897
|
var tweakTooltipStyles = useTweakStyles({
|
|
@@ -14931,7 +14931,7 @@
|
|
|
14931
14931
|
modifiers: [
|
|
14932
14932
|
{
|
|
14933
14933
|
name: "offset",
|
|
14934
|
-
options: _object_spread$
|
|
14934
|
+
options: _object_spread$G({
|
|
14935
14935
|
offset: [
|
|
14936
14936
|
0,
|
|
14937
14937
|
6
|
|
@@ -14954,14 +14954,14 @@
|
|
|
14954
14954
|
onMouseLeave: handleMouseLeave
|
|
14955
14955
|
};
|
|
14956
14956
|
var shouldShowTooltip = tooltipText !== void 0 && tooltipText !== null && !isDisabled;
|
|
14957
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
14957
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$A(_object_spread$G({
|
|
14958
14958
|
className: clsx(classes.root, mouseEventType === "click" && shouldShowTooltip && classes.clickable)
|
|
14959
14959
|
}, shouldShowTooltip ? props : void 0, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
14960
14960
|
ref: root2,
|
|
14961
14961
|
children: [
|
|
14962
14962
|
shouldShowTooltip && /* @__PURE__ */ jsx(reactOverlays.Portal, {
|
|
14963
14963
|
container: shouldRenderInBody ? document.body : root2.current,
|
|
14964
|
-
children: /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
14964
|
+
children: /* @__PURE__ */ jsx("div", _object_spread_props$A(_object_spread$G({
|
|
14965
14965
|
className: classes.tooltip,
|
|
14966
14966
|
style: popperStyles.popper
|
|
14967
14967
|
}, attributes.popper), {
|
|
@@ -14978,7 +14978,7 @@
|
|
|
14978
14978
|
]
|
|
14979
14979
|
}));
|
|
14980
14980
|
};
|
|
14981
|
-
function _define_property$
|
|
14981
|
+
function _define_property$H(obj, key, value) {
|
|
14982
14982
|
if (key in obj) {
|
|
14983
14983
|
Object.defineProperty(obj, key, {
|
|
14984
14984
|
value,
|
|
@@ -14993,7 +14993,7 @@
|
|
|
14993
14993
|
}
|
|
14994
14994
|
var FILE_ICON_DEFAULT = "file-other";
|
|
14995
14995
|
var _obj;
|
|
14996
|
-
var iconTypeMap = (_obj = {}, _define_property$
|
|
14996
|
+
var iconTypeMap = (_obj = {}, _define_property$H(_obj, mimeTypes.xls, "file-excel"), _define_property$H(_obj, mimeTypes.xlsx, "file-excel"), _define_property$H(_obj, mimeTypes.jpeg, "file-image"), _define_property$H(_obj, mimeTypes.png, "file-image"), _define_property$H(_obj, mimeTypes.pdf, "file-pdf"), _define_property$H(_obj, mimeTypes.doc, "file-word"), _define_property$H(_obj, mimeTypes.docx, "file-word"), _define_property$H(_obj, mimeTypes.xml, "file-xml"), _define_property$H(_obj, mimeTypes.zip, "file-zip"), _obj);
|
|
14997
14997
|
var getFileExtensionByFilename = function(fileName) {
|
|
14998
14998
|
var splitFileName = fileName.split(".");
|
|
14999
14999
|
return splitFileName.length > 1 ? splitFileName.pop() : void 0;
|
|
@@ -15013,7 +15013,7 @@
|
|
|
15013
15013
|
}
|
|
15014
15014
|
return FILE_ICON_DEFAULT;
|
|
15015
15015
|
};
|
|
15016
|
-
var useStyles$
|
|
15016
|
+
var useStyles$x = createThemedStyles("FileItem", {
|
|
15017
15017
|
root: {
|
|
15018
15018
|
display: "flex",
|
|
15019
15019
|
flexDirection: "column",
|
|
@@ -15109,7 +15109,7 @@
|
|
|
15109
15109
|
}
|
|
15110
15110
|
}
|
|
15111
15111
|
};
|
|
15112
|
-
function _define_property$
|
|
15112
|
+
function _define_property$G(obj, key, value) {
|
|
15113
15113
|
if (key in obj) {
|
|
15114
15114
|
Object.defineProperty(obj, key, {
|
|
15115
15115
|
value,
|
|
@@ -15122,7 +15122,7 @@
|
|
|
15122
15122
|
}
|
|
15123
15123
|
return obj;
|
|
15124
15124
|
}
|
|
15125
|
-
function _object_spread$
|
|
15125
|
+
function _object_spread$F(target) {
|
|
15126
15126
|
for (var i = 1; i < arguments.length; i++) {
|
|
15127
15127
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
15128
15128
|
var ownKeys2 = Object.keys(source);
|
|
@@ -15132,12 +15132,12 @@
|
|
|
15132
15132
|
}));
|
|
15133
15133
|
}
|
|
15134
15134
|
ownKeys2.forEach(function(key) {
|
|
15135
|
-
_define_property$
|
|
15135
|
+
_define_property$G(target, key, source[key]);
|
|
15136
15136
|
});
|
|
15137
15137
|
}
|
|
15138
15138
|
return target;
|
|
15139
15139
|
}
|
|
15140
|
-
function ownKeys$
|
|
15140
|
+
function ownKeys$z(object, enumerableOnly) {
|
|
15141
15141
|
var keys2 = Object.keys(object);
|
|
15142
15142
|
if (Object.getOwnPropertySymbols) {
|
|
15143
15143
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -15150,12 +15150,12 @@
|
|
|
15150
15150
|
}
|
|
15151
15151
|
return keys2;
|
|
15152
15152
|
}
|
|
15153
|
-
function _object_spread_props$
|
|
15153
|
+
function _object_spread_props$z(target, source) {
|
|
15154
15154
|
source = source != null ? source : {};
|
|
15155
15155
|
if (Object.getOwnPropertyDescriptors) {
|
|
15156
15156
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
15157
15157
|
} else {
|
|
15158
|
-
ownKeys$
|
|
15158
|
+
ownKeys$z(Object(source)).forEach(function(key) {
|
|
15159
15159
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
15160
15160
|
});
|
|
15161
15161
|
}
|
|
@@ -15163,7 +15163,7 @@
|
|
|
15163
15163
|
}
|
|
15164
15164
|
var FileItem = function(param) {
|
|
15165
15165
|
var fileInfo = param.fileInfo, _param_icon = param.icon, icon = _param_icon === void 0 ? getFileIcon(fileInfo) : _param_icon, metadata = param.metadata, actions = param.actions, error = param.error, info = param.info, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_areActionsDisabled = param.areActionsDisabled, areActionsDisabled = _param_areActionsDisabled === void 0 ? false : _param_areActionsDisabled, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_shouldShowSize = param.shouldShowSize, shouldShowSize = _param_shouldShowSize === void 0 ? false : _param_shouldShowSize, _param_itemSize = param.itemSize, itemSize = _param_itemSize === void 0 ? "m" : _param_itemSize, _param_preloaderType = param.preloaderType, preloaderType = _param_preloaderType === void 0 ? "default" : _param_preloaderType, _param_removeIcon = param.removeIcon, removeIcon = _param_removeIcon === void 0 ? "trash-can" : _param_removeIcon, onRemove = param.onRemove, onClick = param.onClick, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles;
|
|
15166
|
-
var classes = useStyles$
|
|
15166
|
+
var classes = useStyles$x({
|
|
15167
15167
|
theme: tweakStyles
|
|
15168
15168
|
});
|
|
15169
15169
|
var tweakIconButtonStyles = useTweakStyles({
|
|
@@ -15195,8 +15195,8 @@
|
|
|
15195
15195
|
return /* @__PURE__ */ jsxs("div", {
|
|
15196
15196
|
className: classes.root,
|
|
15197
15197
|
children: [
|
|
15198
|
-
/* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
15199
|
-
className: clsx(classes.fileItemWrapper, classes[itemSize], _define_property$
|
|
15198
|
+
/* @__PURE__ */ jsxs("div", _object_spread_props$z(_object_spread$F({
|
|
15199
|
+
className: clsx(classes.fileItemWrapper, classes[itemSize], _define_property$G({}, classes.disabled, isDisabled))
|
|
15200
15200
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data), trueReactPlatformHelpers.addClickHandler(handleClick, !isDisabled)), {
|
|
15201
15201
|
children: [
|
|
15202
15202
|
/* @__PURE__ */ jsx("div", {
|
|
@@ -16217,7 +16217,7 @@
|
|
|
16217
16217
|
});
|
|
16218
16218
|
};
|
|
16219
16219
|
}
|
|
16220
|
-
function _define_property$
|
|
16220
|
+
function _define_property$F(obj, key, value) {
|
|
16221
16221
|
if (key in obj) {
|
|
16222
16222
|
Object.defineProperty(obj, key, {
|
|
16223
16223
|
value,
|
|
@@ -16261,7 +16261,7 @@
|
|
|
16261
16261
|
function _non_iterable_rest$d() {
|
|
16262
16262
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
16263
16263
|
}
|
|
16264
|
-
function _object_spread$
|
|
16264
|
+
function _object_spread$E(target) {
|
|
16265
16265
|
for (var i = 1; i < arguments.length; i++) {
|
|
16266
16266
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
16267
16267
|
var ownKeys2 = Object.keys(source);
|
|
@@ -16271,15 +16271,15 @@
|
|
|
16271
16271
|
}));
|
|
16272
16272
|
}
|
|
16273
16273
|
ownKeys2.forEach(function(key) {
|
|
16274
|
-
_define_property$
|
|
16274
|
+
_define_property$F(target, key, source[key]);
|
|
16275
16275
|
});
|
|
16276
16276
|
}
|
|
16277
16277
|
return target;
|
|
16278
16278
|
}
|
|
16279
|
-
function _object_without_properties$
|
|
16279
|
+
function _object_without_properties$b(source, excluded) {
|
|
16280
16280
|
if (source == null)
|
|
16281
16281
|
return {};
|
|
16282
|
-
var target = _object_without_properties_loose$
|
|
16282
|
+
var target = _object_without_properties_loose$b(source, excluded);
|
|
16283
16283
|
var key, i;
|
|
16284
16284
|
if (Object.getOwnPropertySymbols) {
|
|
16285
16285
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -16294,7 +16294,7 @@
|
|
|
16294
16294
|
}
|
|
16295
16295
|
return target;
|
|
16296
16296
|
}
|
|
16297
|
-
function _object_without_properties_loose$
|
|
16297
|
+
function _object_without_properties_loose$b(source, excluded) {
|
|
16298
16298
|
if (source == null)
|
|
16299
16299
|
return {};
|
|
16300
16300
|
var target = {};
|
|
@@ -16427,7 +16427,7 @@
|
|
|
16427
16427
|
}
|
|
16428
16428
|
}
|
|
16429
16429
|
var NumberInput = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
16430
|
-
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$
|
|
16430
|
+
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$b(_param, [
|
|
16431
16431
|
"value",
|
|
16432
16432
|
"canBeFloat",
|
|
16433
16433
|
"canBeNegative",
|
|
@@ -16530,7 +16530,7 @@
|
|
|
16530
16530
|
}, [
|
|
16531
16531
|
value
|
|
16532
16532
|
]);
|
|
16533
|
-
return /* @__PURE__ */ jsx(Input, _object_spread$
|
|
16533
|
+
return /* @__PURE__ */ jsx(Input, _object_spread$E({
|
|
16534
16534
|
value: showedValue,
|
|
16535
16535
|
onChange: handleChange,
|
|
16536
16536
|
onBlur: handleBlur,
|
|
@@ -16808,7 +16808,7 @@
|
|
|
16808
16808
|
return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
|
|
16809
16809
|
}
|
|
16810
16810
|
var FILTER_HEIGHT = 36;
|
|
16811
|
-
var useStyles$
|
|
16811
|
+
var useStyles$w = createThemedStyles("FiltersPane", {
|
|
16812
16812
|
root: {
|
|
16813
16813
|
display: "flex",
|
|
16814
16814
|
flexWrap: "wrap",
|
|
@@ -16874,7 +16874,7 @@
|
|
|
16874
16874
|
}
|
|
16875
16875
|
}
|
|
16876
16876
|
};
|
|
16877
|
-
var useStyles$
|
|
16877
|
+
var useStyles$v = createThemedStyles("FilterInterval", {
|
|
16878
16878
|
root: {
|
|
16879
16879
|
padding: 8,
|
|
16880
16880
|
background: colors.CLASSIC_WHITE
|
|
@@ -16917,7 +16917,7 @@
|
|
|
16917
16917
|
}
|
|
16918
16918
|
};
|
|
16919
16919
|
var clearButtonStyles$3 = cloneDeep(innerTextButtonStyles);
|
|
16920
|
-
function _define_property$
|
|
16920
|
+
function _define_property$E(obj, key, value) {
|
|
16921
16921
|
if (key in obj) {
|
|
16922
16922
|
Object.defineProperty(obj, key, {
|
|
16923
16923
|
value,
|
|
@@ -16930,7 +16930,7 @@
|
|
|
16930
16930
|
}
|
|
16931
16931
|
return obj;
|
|
16932
16932
|
}
|
|
16933
|
-
function _object_spread$
|
|
16933
|
+
function _object_spread$D(target) {
|
|
16934
16934
|
for (var i = 1; i < arguments.length; i++) {
|
|
16935
16935
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
16936
16936
|
var ownKeys2 = Object.keys(source);
|
|
@@ -16940,12 +16940,12 @@
|
|
|
16940
16940
|
}));
|
|
16941
16941
|
}
|
|
16942
16942
|
ownKeys2.forEach(function(key) {
|
|
16943
|
-
_define_property$
|
|
16943
|
+
_define_property$E(target, key, source[key]);
|
|
16944
16944
|
});
|
|
16945
16945
|
}
|
|
16946
16946
|
return target;
|
|
16947
16947
|
}
|
|
16948
|
-
function ownKeys$
|
|
16948
|
+
function ownKeys$y(object, enumerableOnly) {
|
|
16949
16949
|
var keys2 = Object.keys(object);
|
|
16950
16950
|
if (Object.getOwnPropertySymbols) {
|
|
16951
16951
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -16958,12 +16958,12 @@
|
|
|
16958
16958
|
}
|
|
16959
16959
|
return keys2;
|
|
16960
16960
|
}
|
|
16961
|
-
function _object_spread_props$
|
|
16961
|
+
function _object_spread_props$y(target, source) {
|
|
16962
16962
|
source = source != null ? source : {};
|
|
16963
16963
|
if (Object.getOwnPropertyDescriptors) {
|
|
16964
16964
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
16965
16965
|
} else {
|
|
16966
|
-
ownKeys$
|
|
16966
|
+
ownKeys$y(Object(source)).forEach(function(key) {
|
|
16967
16967
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
16968
16968
|
});
|
|
16969
16969
|
}
|
|
@@ -16971,7 +16971,7 @@
|
|
|
16971
16971
|
}
|
|
16972
16972
|
var FilterInterval = function(param) {
|
|
16973
16973
|
var data = param.data, tweakStyles = param.tweakStyles, value = param.value, labelName = param.labelName, withFieldNameInLabel = param.withFieldNameInLabel, localeKey = param.localeKey, locale2 = param.locale, canBeFloat = param.canBeFloat, onChange = param.onChange, fromInput = param.fromInput, toInput = param.toInput, testId = param.testId;
|
|
16974
|
-
var classes = useStyles$
|
|
16974
|
+
var classes = useStyles$v({
|
|
16975
16975
|
theme: tweakStyles
|
|
16976
16976
|
});
|
|
16977
16977
|
var translates = React.useMemo(function() {
|
|
@@ -17015,7 +17015,7 @@
|
|
|
17015
17015
|
className: "tweakClearButton",
|
|
17016
17016
|
currentComponentName: "FilterInterval"
|
|
17017
17017
|
});
|
|
17018
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
17018
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$y(_object_spread$D({
|
|
17019
17019
|
className: classes.root
|
|
17020
17020
|
}, addDataAttributes(data)), {
|
|
17021
17021
|
children: [
|
|
@@ -17024,7 +17024,7 @@
|
|
|
17024
17024
|
children: [
|
|
17025
17025
|
/* @__PURE__ */ jsxs("div", {
|
|
17026
17026
|
children: [
|
|
17027
|
-
/* @__PURE__ */ jsx(NumberInput, _object_spread$
|
|
17027
|
+
/* @__PURE__ */ jsx(NumberInput, _object_spread$D({
|
|
17028
17028
|
onChange: handleFromChange,
|
|
17029
17029
|
value: value === null || value === void 0 ? void 0 : value[0],
|
|
17030
17030
|
label: withFieldNameInLabel ? "".concat(labelName, " ").concat(translates.from.toLocaleLowerCase()) : translates.from,
|
|
@@ -17046,7 +17046,7 @@
|
|
|
17046
17046
|
}),
|
|
17047
17047
|
/* @__PURE__ */ jsxs("div", {
|
|
17048
17048
|
children: [
|
|
17049
|
-
/* @__PURE__ */ jsx(NumberInput, _object_spread$
|
|
17049
|
+
/* @__PURE__ */ jsx(NumberInput, _object_spread$D({
|
|
17050
17050
|
onChange: handleToChange,
|
|
17051
17051
|
value: value === null || value === void 0 ? void 0 : value[1],
|
|
17052
17052
|
label: withFieldNameInLabel ? "".concat(labelName, " ").concat(translates.to.toLocaleLowerCase()) : translates.to,
|
|
@@ -17106,7 +17106,7 @@
|
|
|
17106
17106
|
var key = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : DEFAULT_LOCALE, custom = arguments.length > 1 ? arguments[1] : void 0, custom2 = arguments.length > 2 ? arguments[2] : void 0;
|
|
17107
17107
|
return merge$1({}, MultiSelectLocales[key], custom, custom2);
|
|
17108
17108
|
};
|
|
17109
|
-
function _define_property$
|
|
17109
|
+
function _define_property$D(obj, key, value) {
|
|
17110
17110
|
if (key in obj) {
|
|
17111
17111
|
Object.defineProperty(obj, key, {
|
|
17112
17112
|
value,
|
|
@@ -17119,7 +17119,7 @@
|
|
|
17119
17119
|
}
|
|
17120
17120
|
return obj;
|
|
17121
17121
|
}
|
|
17122
|
-
function _object_spread$
|
|
17122
|
+
function _object_spread$C(target) {
|
|
17123
17123
|
for (var i = 1; i < arguments.length; i++) {
|
|
17124
17124
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
17125
17125
|
var ownKeys2 = Object.keys(source);
|
|
@@ -17129,19 +17129,19 @@
|
|
|
17129
17129
|
}));
|
|
17130
17130
|
}
|
|
17131
17131
|
ownKeys2.forEach(function(key) {
|
|
17132
|
-
_define_property$
|
|
17132
|
+
_define_property$D(target, key, source[key]);
|
|
17133
17133
|
});
|
|
17134
17134
|
}
|
|
17135
17135
|
return target;
|
|
17136
17136
|
}
|
|
17137
17137
|
var ITEM_HEIGHT$1 = 40;
|
|
17138
17138
|
var TOP_GAP = 12;
|
|
17139
|
-
var useStyles$
|
|
17139
|
+
var useStyles$u = createThemedStyles("MultiSelectList", {
|
|
17140
17140
|
root: {
|
|
17141
17141
|
width: 220,
|
|
17142
17142
|
background: colors.CLASSIC_WHITE
|
|
17143
17143
|
},
|
|
17144
|
-
list: _object_spread$
|
|
17144
|
+
list: _object_spread$C({
|
|
17145
17145
|
paddingTop: TOP_GAP,
|
|
17146
17146
|
maxHeight: ITEM_HEIGHT$1 * 5 + TOP_GAP,
|
|
17147
17147
|
overscrollBehavior: "contain"
|
|
@@ -17298,7 +17298,7 @@
|
|
|
17298
17298
|
});
|
|
17299
17299
|
};
|
|
17300
17300
|
}
|
|
17301
|
-
function _define_property$
|
|
17301
|
+
function _define_property$C(obj, key, value) {
|
|
17302
17302
|
if (key in obj) {
|
|
17303
17303
|
Object.defineProperty(obj, key, {
|
|
17304
17304
|
value,
|
|
@@ -17349,7 +17349,7 @@
|
|
|
17349
17349
|
function _non_iterable_spread$3() {
|
|
17350
17350
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17351
17351
|
}
|
|
17352
|
-
function _object_spread$
|
|
17352
|
+
function _object_spread$B(target) {
|
|
17353
17353
|
for (var i = 1; i < arguments.length; i++) {
|
|
17354
17354
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
17355
17355
|
var ownKeys2 = Object.keys(source);
|
|
@@ -17359,12 +17359,12 @@
|
|
|
17359
17359
|
}));
|
|
17360
17360
|
}
|
|
17361
17361
|
ownKeys2.forEach(function(key) {
|
|
17362
|
-
_define_property$
|
|
17362
|
+
_define_property$C(target, key, source[key]);
|
|
17363
17363
|
});
|
|
17364
17364
|
}
|
|
17365
17365
|
return target;
|
|
17366
17366
|
}
|
|
17367
|
-
function ownKeys$
|
|
17367
|
+
function ownKeys$x(object, enumerableOnly) {
|
|
17368
17368
|
var keys2 = Object.keys(object);
|
|
17369
17369
|
if (Object.getOwnPropertySymbols) {
|
|
17370
17370
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -17377,12 +17377,12 @@
|
|
|
17377
17377
|
}
|
|
17378
17378
|
return keys2;
|
|
17379
17379
|
}
|
|
17380
|
-
function _object_spread_props$
|
|
17380
|
+
function _object_spread_props$x(target, source) {
|
|
17381
17381
|
source = source != null ? source : {};
|
|
17382
17382
|
if (Object.getOwnPropertyDescriptors) {
|
|
17383
17383
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
17384
17384
|
} else {
|
|
17385
|
-
ownKeys$
|
|
17385
|
+
ownKeys$x(Object(source)).forEach(function(key) {
|
|
17386
17386
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
17387
17387
|
});
|
|
17388
17388
|
}
|
|
@@ -17512,7 +17512,7 @@
|
|
|
17512
17512
|
function MultiSelectList(param) {
|
|
17513
17513
|
var value = param.value, tweakStyles = param.tweakStyles, data = param.data, _param_isSearchEnabled = param.isSearchEnabled, isSearchEnabled = _param_isSearchEnabled === void 0 ? false : _param_isSearchEnabled, _param_localeKey = param.localeKey, localeKey = _param_localeKey === void 0 ? DEFAULT_LOCALE : _param_localeKey, _param_locale = param.locale, locale2 = _param_locale === void 0 ? MultiSelectLocales[localeKey] : _param_locale, onChange = param.onChange, onClose = param.onClose, options = param.options, fetchOptions = param.fetchOptions, _param_isGroupingEnabled = param.isGroupingEnabled, isGroupingEnabled = _param_isGroupingEnabled === void 0 ? isSearchEnabled : _param_isGroupingEnabled, _param_getValueView = param.getValueView, getValueView = _param_getValueView === void 0 ? defaultConvertFunction : _param_getValueView, _param_getValueId = param.getValueId, getValueId = _param_getValueId === void 0 ? defaultConvertFunction : _param_getValueId, _param_getValueString = param.getValueString, getValueString = _param_getValueString === void 0 ? defaultConvertFunction : _param_getValueString, _param_checkboxPosition = param.checkboxPosition, checkboxPosition = _param_checkboxPosition === void 0 ? "left" : _param_checkboxPosition, pageSize = param.pageSize, searchMaxLength = param.searchMaxLength, testId = param.testId;
|
|
17514
17514
|
var isMounted = useIsMounted();
|
|
17515
|
-
var classes = useStyles$
|
|
17515
|
+
var classes = useStyles$u({
|
|
17516
17516
|
theme: tweakStyles
|
|
17517
17517
|
});
|
|
17518
17518
|
var tweakCheckboxStyles = useTweakStyles({
|
|
@@ -17684,13 +17684,13 @@
|
|
|
17684
17684
|
if (value !== void 0) {
|
|
17685
17685
|
if (keyCursorOn < value.include.length) {
|
|
17686
17686
|
var _value_include_filter;
|
|
17687
|
-
onChange(_object_spread_props$
|
|
17687
|
+
onChange(_object_spread_props$x(_object_spread$B({}, value), {
|
|
17688
17688
|
include: (_value_include_filter = value.include.filter(function(val) {
|
|
17689
17689
|
return getValueId(val) !== getValueId(value.include[keyCursorOn]);
|
|
17690
17690
|
})) !== null && _value_include_filter !== void 0 ? _value_include_filter : []
|
|
17691
17691
|
}));
|
|
17692
17692
|
} else {
|
|
17693
|
-
onChange(_object_spread_props$
|
|
17693
|
+
onChange(_object_spread_props$x(_object_spread$B({}, value), {
|
|
17694
17694
|
include: _to_consumable_array$3(value.include).concat([
|
|
17695
17695
|
unchosenOptions[keyCursorOn - value.include.length]
|
|
17696
17696
|
])
|
|
@@ -17889,7 +17889,7 @@
|
|
|
17889
17889
|
var shouldShowAllOptionsLabel = hasSelectedOptionsGroup && (trueReactPlatformHelpers.isArrayNotEmpty(unchosenOptions) || !trueReactPlatformHelpers.isArrayNotEmpty(allOptions));
|
|
17890
17890
|
var shouldShowPreloader = isLoading || isLoadingOptionsOnScroll;
|
|
17891
17891
|
var shouldShowOptionsList = !isLoading && (trueReactPlatformHelpers.isArrayNotEmpty(allOptions) || trueReactPlatformHelpers.isArrayNotEmpty(chosenValues));
|
|
17892
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
17892
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$x(_object_spread$B({
|
|
17893
17893
|
className: classes.root
|
|
17894
17894
|
}, addDataAttributes(data)), {
|
|
17895
17895
|
children: [
|
|
@@ -17993,7 +17993,7 @@
|
|
|
17993
17993
|
]
|
|
17994
17994
|
}));
|
|
17995
17995
|
}
|
|
17996
|
-
function _define_property$
|
|
17996
|
+
function _define_property$B(obj, key, value) {
|
|
17997
17997
|
if (key in obj) {
|
|
17998
17998
|
Object.defineProperty(obj, key, {
|
|
17999
17999
|
value,
|
|
@@ -18006,7 +18006,7 @@
|
|
|
18006
18006
|
}
|
|
18007
18007
|
return obj;
|
|
18008
18008
|
}
|
|
18009
|
-
function _object_spread$
|
|
18009
|
+
function _object_spread$A(target) {
|
|
18010
18010
|
for (var i = 1; i < arguments.length; i++) {
|
|
18011
18011
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
18012
18012
|
var ownKeys2 = Object.keys(source);
|
|
@@ -18016,15 +18016,15 @@
|
|
|
18016
18016
|
}));
|
|
18017
18017
|
}
|
|
18018
18018
|
ownKeys2.forEach(function(key) {
|
|
18019
|
-
_define_property$
|
|
18019
|
+
_define_property$B(target, key, source[key]);
|
|
18020
18020
|
});
|
|
18021
18021
|
}
|
|
18022
18022
|
return target;
|
|
18023
18023
|
}
|
|
18024
18024
|
function FilterMultiSelect(props) {
|
|
18025
|
-
return /* @__PURE__ */ jsx(MultiSelectList, _object_spread$
|
|
18025
|
+
return /* @__PURE__ */ jsx(MultiSelectList, _object_spread$A({}, props));
|
|
18026
18026
|
}
|
|
18027
|
-
function _define_property$
|
|
18027
|
+
function _define_property$A(obj, key, value) {
|
|
18028
18028
|
if (key in obj) {
|
|
18029
18029
|
Object.defineProperty(obj, key, {
|
|
18030
18030
|
value,
|
|
@@ -18037,7 +18037,7 @@
|
|
|
18037
18037
|
}
|
|
18038
18038
|
return obj;
|
|
18039
18039
|
}
|
|
18040
|
-
function _object_spread$
|
|
18040
|
+
function _object_spread$z(target) {
|
|
18041
18041
|
for (var i = 1; i < arguments.length; i++) {
|
|
18042
18042
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
18043
18043
|
var ownKeys2 = Object.keys(source);
|
|
@@ -18047,19 +18047,19 @@
|
|
|
18047
18047
|
}));
|
|
18048
18048
|
}
|
|
18049
18049
|
ownKeys2.forEach(function(key) {
|
|
18050
|
-
_define_property$
|
|
18050
|
+
_define_property$A(target, key, source[key]);
|
|
18051
18051
|
});
|
|
18052
18052
|
}
|
|
18053
18053
|
return target;
|
|
18054
18054
|
}
|
|
18055
18055
|
var ITEM_HEIGHT = 40;
|
|
18056
18056
|
var LIST_GAP = 12;
|
|
18057
|
-
var useStyles$
|
|
18057
|
+
var useStyles$t = createThemedStyles("FilterSelect", {
|
|
18058
18058
|
root: {
|
|
18059
18059
|
width: 220,
|
|
18060
18060
|
background: colors.CLASSIC_WHITE
|
|
18061
18061
|
},
|
|
18062
|
-
list: _object_spread$
|
|
18062
|
+
list: _object_spread$z({
|
|
18063
18063
|
paddingTop: LIST_GAP,
|
|
18064
18064
|
padding: [
|
|
18065
18065
|
LIST_GAP,
|
|
@@ -18232,7 +18232,7 @@
|
|
|
18232
18232
|
});
|
|
18233
18233
|
};
|
|
18234
18234
|
}
|
|
18235
|
-
function _define_property$
|
|
18235
|
+
function _define_property$z(obj, key, value) {
|
|
18236
18236
|
if (key in obj) {
|
|
18237
18237
|
Object.defineProperty(obj, key, {
|
|
18238
18238
|
value,
|
|
@@ -18283,7 +18283,7 @@
|
|
|
18283
18283
|
function _non_iterable_spread$2() {
|
|
18284
18284
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
18285
18285
|
}
|
|
18286
|
-
function _object_spread$
|
|
18286
|
+
function _object_spread$y(target) {
|
|
18287
18287
|
for (var i = 1; i < arguments.length; i++) {
|
|
18288
18288
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
18289
18289
|
var ownKeys2 = Object.keys(source);
|
|
@@ -18293,12 +18293,12 @@
|
|
|
18293
18293
|
}));
|
|
18294
18294
|
}
|
|
18295
18295
|
ownKeys2.forEach(function(key) {
|
|
18296
|
-
_define_property$
|
|
18296
|
+
_define_property$z(target, key, source[key]);
|
|
18297
18297
|
});
|
|
18298
18298
|
}
|
|
18299
18299
|
return target;
|
|
18300
18300
|
}
|
|
18301
|
-
function ownKeys$
|
|
18301
|
+
function ownKeys$w(object, enumerableOnly) {
|
|
18302
18302
|
var keys2 = Object.keys(object);
|
|
18303
18303
|
if (Object.getOwnPropertySymbols) {
|
|
18304
18304
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -18311,12 +18311,12 @@
|
|
|
18311
18311
|
}
|
|
18312
18312
|
return keys2;
|
|
18313
18313
|
}
|
|
18314
|
-
function _object_spread_props$
|
|
18314
|
+
function _object_spread_props$w(target, source) {
|
|
18315
18315
|
source = source != null ? source : {};
|
|
18316
18316
|
if (Object.getOwnPropertyDescriptors) {
|
|
18317
18317
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
18318
18318
|
} else {
|
|
18319
|
-
ownKeys$
|
|
18319
|
+
ownKeys$w(Object(source)).forEach(function(key) {
|
|
18320
18320
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
18321
18321
|
});
|
|
18322
18322
|
}
|
|
@@ -18445,7 +18445,7 @@
|
|
|
18445
18445
|
}
|
|
18446
18446
|
function FilterSelect(param) {
|
|
18447
18447
|
var data = param.data, tweakStyles = param.tweakStyles, value = param.value, _param_isSearchEnabled = param.isSearchEnabled, isSearchEnabled = _param_isSearchEnabled === void 0 ? false : _param_isSearchEnabled, _param_isGroupingEnabled = param.isGroupingEnabled, isGroupingEnabled = _param_isGroupingEnabled === void 0 ? false : _param_isGroupingEnabled, localeKey = param.localeKey, locale2 = param.locale, onChange = param.onChange, onClose = param.onClose, options = param.options, fetchOptions = param.fetchOptions, footer = param.footer, _param_getValueView = param.getValueView, getValueView = _param_getValueView === void 0 ? defaultConvertFunction$1 : _param_getValueView, _param_getValueId = param.getValueId, getValueId = _param_getValueId === void 0 ? defaultConvertFunction$1 : _param_getValueId, _param_getValueString = param.getValueString, getValueString = _param_getValueString === void 0 ? defaultConvertFunction$1 : _param_getValueString, _param_hasClearButton = param.hasClearButton, hasClearButton = _param_hasClearButton === void 0 ? true : _param_hasClearButton, testId = param.testId;
|
|
18448
|
-
var classes = useStyles$
|
|
18448
|
+
var classes = useStyles$t({
|
|
18449
18449
|
theme: tweakStyles
|
|
18450
18450
|
});
|
|
18451
18451
|
var tweakSearchInputStyles = useTweakStyles({
|
|
@@ -18720,7 +18720,7 @@
|
|
|
18720
18720
|
}();
|
|
18721
18721
|
doFetchOptions();
|
|
18722
18722
|
}, []);
|
|
18723
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
18723
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$w(_object_spread$y({
|
|
18724
18724
|
className: classes.root
|
|
18725
18725
|
}, addDataAttributes(data)), {
|
|
18726
18726
|
children: [
|
|
@@ -18820,7 +18820,7 @@
|
|
|
18820
18820
|
children: translates.nothingFound
|
|
18821
18821
|
}),
|
|
18822
18822
|
(hasClearButton || hasFooter) && /* @__PURE__ */ jsxs("div", {
|
|
18823
|
-
className: clsx(classes.panel, _define_property$
|
|
18823
|
+
className: clsx(classes.panel, _define_property$z({}, classes.panelWithFooter, hasFooter)),
|
|
18824
18824
|
children: [
|
|
18825
18825
|
hasFooter && /* @__PURE__ */ jsx("div", {
|
|
18826
18826
|
className: classes.footer,
|
|
@@ -18850,7 +18850,7 @@
|
|
|
18850
18850
|
]
|
|
18851
18851
|
}));
|
|
18852
18852
|
}
|
|
18853
|
-
var useStyles$
|
|
18853
|
+
var useStyles$s = createThemedStyles("FilterWithDates", {
|
|
18854
18854
|
root: {
|
|
18855
18855
|
width: 320,
|
|
18856
18856
|
background: colors.CLASSIC_WHITE,
|
|
@@ -18918,7 +18918,7 @@
|
|
|
18918
18918
|
if (Array.isArray(arr))
|
|
18919
18919
|
return arr;
|
|
18920
18920
|
}
|
|
18921
|
-
function _define_property$
|
|
18921
|
+
function _define_property$y(obj, key, value) {
|
|
18922
18922
|
if (key in obj) {
|
|
18923
18923
|
Object.defineProperty(obj, key, {
|
|
18924
18924
|
value,
|
|
@@ -18962,7 +18962,7 @@
|
|
|
18962
18962
|
function _non_iterable_rest$a() {
|
|
18963
18963
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
18964
18964
|
}
|
|
18965
|
-
function _object_spread$
|
|
18965
|
+
function _object_spread$x(target) {
|
|
18966
18966
|
for (var i = 1; i < arguments.length; i++) {
|
|
18967
18967
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
18968
18968
|
var ownKeys2 = Object.keys(source);
|
|
@@ -18972,12 +18972,12 @@
|
|
|
18972
18972
|
}));
|
|
18973
18973
|
}
|
|
18974
18974
|
ownKeys2.forEach(function(key) {
|
|
18975
|
-
_define_property$
|
|
18975
|
+
_define_property$y(target, key, source[key]);
|
|
18976
18976
|
});
|
|
18977
18977
|
}
|
|
18978
18978
|
return target;
|
|
18979
18979
|
}
|
|
18980
|
-
function ownKeys$
|
|
18980
|
+
function ownKeys$v(object, enumerableOnly) {
|
|
18981
18981
|
var keys2 = Object.keys(object);
|
|
18982
18982
|
if (Object.getOwnPropertySymbols) {
|
|
18983
18983
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -18990,12 +18990,12 @@
|
|
|
18990
18990
|
}
|
|
18991
18991
|
return keys2;
|
|
18992
18992
|
}
|
|
18993
|
-
function _object_spread_props$
|
|
18993
|
+
function _object_spread_props$v(target, source) {
|
|
18994
18994
|
source = source != null ? source : {};
|
|
18995
18995
|
if (Object.getOwnPropertyDescriptors) {
|
|
18996
18996
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
18997
18997
|
} else {
|
|
18998
|
-
ownKeys$
|
|
18998
|
+
ownKeys$v(Object(source)).forEach(function(key) {
|
|
18999
18999
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
19000
19000
|
});
|
|
19001
19001
|
}
|
|
@@ -19019,7 +19019,7 @@
|
|
|
19019
19019
|
}
|
|
19020
19020
|
var FilterWithDates = function(param) {
|
|
19021
19021
|
var value = param.value, onChange = param.onChange, localeKey = param.localeKey, locale2 = param.locale, onStartBtnSubmit = param.onStartBtnSubmit, onEndBtnSubmit = param.onEndBtnSubmit, data = param.data, tweakStyles = param.tweakStyles, testId = param.testId, _param_startPickerProps = param.startPickerProps, startPickerProps = _param_startPickerProps === void 0 ? DEFAULT_PICKER_PROPS : _param_startPickerProps, _param_endPickerProps = param.endPickerProps, endPickerProps = _param_endPickerProps === void 0 ? DEFAULT_PICKER_PROPS : _param_endPickerProps, _param_isClearable = param.isClearable, isClearable = _param_isClearable === void 0 ? true : _param_isClearable;
|
|
19022
|
-
var classes = useStyles$
|
|
19022
|
+
var classes = useStyles$s({
|
|
19023
19023
|
theme: tweakStyles
|
|
19024
19024
|
});
|
|
19025
19025
|
var tweakClearButtonStyles = useTweakStyles({
|
|
@@ -19106,7 +19106,7 @@
|
|
|
19106
19106
|
}
|
|
19107
19107
|
};
|
|
19108
19108
|
var _ref;
|
|
19109
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
19109
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$v(_object_spread$x({
|
|
19110
19110
|
className: classes.root
|
|
19111
19111
|
}, addDataAttributes(data)), {
|
|
19112
19112
|
children: [
|
|
@@ -19115,7 +19115,7 @@
|
|
|
19115
19115
|
children: [
|
|
19116
19116
|
/* @__PURE__ */ jsx("div", {
|
|
19117
19117
|
className: classes.containerItem,
|
|
19118
|
-
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$
|
|
19118
|
+
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$x({
|
|
19119
19119
|
selectedDate: value === null || value === void 0 ? void 0 : value.from,
|
|
19120
19120
|
maxDate: value === null || value === void 0 ? void 0 : value.to,
|
|
19121
19121
|
label: translates.from,
|
|
@@ -19130,7 +19130,7 @@
|
|
|
19130
19130
|
}),
|
|
19131
19131
|
/* @__PURE__ */ jsx("div", {
|
|
19132
19132
|
className: classes.containerItem,
|
|
19133
|
-
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$
|
|
19133
|
+
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$x({
|
|
19134
19134
|
selectedDate: value === null || value === void 0 ? void 0 : value.to,
|
|
19135
19135
|
label: translates.to,
|
|
19136
19136
|
months: translates.months,
|
|
@@ -19186,7 +19186,7 @@
|
|
|
19186
19186
|
]
|
|
19187
19187
|
}));
|
|
19188
19188
|
};
|
|
19189
|
-
var useStyles$
|
|
19189
|
+
var useStyles$r = createThemedStyles("FilterWithPeriod", {
|
|
19190
19190
|
root: {},
|
|
19191
19191
|
main: {},
|
|
19192
19192
|
picker: {}
|
|
@@ -19211,7 +19211,7 @@
|
|
|
19211
19211
|
if (Array.isArray(arr))
|
|
19212
19212
|
return _array_like_to_array$9(arr);
|
|
19213
19213
|
}
|
|
19214
|
-
function _define_property$
|
|
19214
|
+
function _define_property$x(obj, key, value) {
|
|
19215
19215
|
if (key in obj) {
|
|
19216
19216
|
Object.defineProperty(obj, key, {
|
|
19217
19217
|
value,
|
|
@@ -19262,7 +19262,7 @@
|
|
|
19262
19262
|
function _non_iterable_spread$1() {
|
|
19263
19263
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
19264
19264
|
}
|
|
19265
|
-
function _object_spread$
|
|
19265
|
+
function _object_spread$w(target) {
|
|
19266
19266
|
for (var i = 1; i < arguments.length; i++) {
|
|
19267
19267
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
19268
19268
|
var ownKeys2 = Object.keys(source);
|
|
@@ -19272,12 +19272,12 @@
|
|
|
19272
19272
|
}));
|
|
19273
19273
|
}
|
|
19274
19274
|
ownKeys2.forEach(function(key) {
|
|
19275
|
-
_define_property$
|
|
19275
|
+
_define_property$x(target, key, source[key]);
|
|
19276
19276
|
});
|
|
19277
19277
|
}
|
|
19278
19278
|
return target;
|
|
19279
19279
|
}
|
|
19280
|
-
function ownKeys$
|
|
19280
|
+
function ownKeys$u(object, enumerableOnly) {
|
|
19281
19281
|
var keys2 = Object.keys(object);
|
|
19282
19282
|
if (Object.getOwnPropertySymbols) {
|
|
19283
19283
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -19290,12 +19290,12 @@
|
|
|
19290
19290
|
}
|
|
19291
19291
|
return keys2;
|
|
19292
19292
|
}
|
|
19293
|
-
function _object_spread_props$
|
|
19293
|
+
function _object_spread_props$u(target, source) {
|
|
19294
19294
|
source = source != null ? source : {};
|
|
19295
19295
|
if (Object.getOwnPropertyDescriptors) {
|
|
19296
19296
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
19297
19297
|
} else {
|
|
19298
|
-
ownKeys$
|
|
19298
|
+
ownKeys$u(Object(source)).forEach(function(key) {
|
|
19299
19299
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
19300
19300
|
});
|
|
19301
19301
|
}
|
|
@@ -19322,7 +19322,7 @@
|
|
|
19322
19322
|
}
|
|
19323
19323
|
var FilterWithPeriod = function(param) {
|
|
19324
19324
|
var value = param.value, localeKey = param.localeKey, locale2 = param.locale, onChange = param.onChange, onClose = param.onClose, periods = param.periods, tweakStyles = param.tweakStyles, testId = param.testId;
|
|
19325
|
-
var classes = useStyles$
|
|
19325
|
+
var classes = useStyles$r({
|
|
19326
19326
|
theme: tweakStyles
|
|
19327
19327
|
});
|
|
19328
19328
|
var translates = React.useMemo(function() {
|
|
@@ -19335,7 +19335,7 @@
|
|
|
19335
19335
|
var _useState1 = _sliced_to_array$9(React.useState((value === null || value === void 0 ? void 0 : value.periodType) === "CUSTOM"), 2), isDatePickerShown = _useState1[0], setIsDatePickerShown = _useState1[1];
|
|
19336
19336
|
var _useState2 = _sliced_to_array$9(React.useState(value), 2), period = _useState2[0], setPeriod = _useState2[1];
|
|
19337
19337
|
var periodGetters = React.useMemo(function() {
|
|
19338
|
-
var result = _object_spread$
|
|
19338
|
+
var result = _object_spread$w({}, PERIODS_GETTERS);
|
|
19339
19339
|
periods === null || periods === void 0 ? void 0 : periods.forEach(function(p) {
|
|
19340
19340
|
if (Array.isArray(p)) {
|
|
19341
19341
|
result[p[0]] = p[1];
|
|
@@ -19381,7 +19381,7 @@
|
|
|
19381
19381
|
if (onClose !== void 0) {
|
|
19382
19382
|
onClose();
|
|
19383
19383
|
}
|
|
19384
|
-
onChange(_object_spread_props$
|
|
19384
|
+
onChange(_object_spread_props$u(_object_spread$w({}, p), {
|
|
19385
19385
|
label: getPeriodTranslate(periodType)
|
|
19386
19386
|
}));
|
|
19387
19387
|
}
|
|
@@ -19401,7 +19401,7 @@
|
|
|
19401
19401
|
};
|
|
19402
19402
|
var handleCustomDateChange = function(val) {
|
|
19403
19403
|
if (val.from || val.to) {
|
|
19404
|
-
onChange(_object_spread_props$
|
|
19404
|
+
onChange(_object_spread_props$u(_object_spread$w({}, val), {
|
|
19405
19405
|
periodType: "CUSTOM"
|
|
19406
19406
|
}));
|
|
19407
19407
|
} else {
|
|
@@ -19489,7 +19489,7 @@
|
|
|
19489
19489
|
var isMultiSelectValue = function(value) {
|
|
19490
19490
|
return Array.isArray(value === null || value === void 0 ? void 0 : value.include);
|
|
19491
19491
|
};
|
|
19492
|
-
function _define_property$
|
|
19492
|
+
function _define_property$w(obj, key, value) {
|
|
19493
19493
|
if (key in obj) {
|
|
19494
19494
|
Object.defineProperty(obj, key, {
|
|
19495
19495
|
value,
|
|
@@ -19502,7 +19502,7 @@
|
|
|
19502
19502
|
}
|
|
19503
19503
|
return obj;
|
|
19504
19504
|
}
|
|
19505
|
-
function _object_spread$
|
|
19505
|
+
function _object_spread$v(target) {
|
|
19506
19506
|
for (var i = 1; i < arguments.length; i++) {
|
|
19507
19507
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
19508
19508
|
var ownKeys2 = Object.keys(source);
|
|
@@ -19512,12 +19512,12 @@
|
|
|
19512
19512
|
}));
|
|
19513
19513
|
}
|
|
19514
19514
|
ownKeys2.forEach(function(key) {
|
|
19515
|
-
_define_property$
|
|
19515
|
+
_define_property$w(target, key, source[key]);
|
|
19516
19516
|
});
|
|
19517
19517
|
}
|
|
19518
19518
|
return target;
|
|
19519
19519
|
}
|
|
19520
|
-
function ownKeys$
|
|
19520
|
+
function ownKeys$t(object, enumerableOnly) {
|
|
19521
19521
|
var keys2 = Object.keys(object);
|
|
19522
19522
|
if (Object.getOwnPropertySymbols) {
|
|
19523
19523
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -19530,12 +19530,12 @@
|
|
|
19530
19530
|
}
|
|
19531
19531
|
return keys2;
|
|
19532
19532
|
}
|
|
19533
|
-
function _object_spread_props$
|
|
19533
|
+
function _object_spread_props$t(target, source) {
|
|
19534
19534
|
source = source != null ? source : {};
|
|
19535
19535
|
if (Object.getOwnPropertyDescriptors) {
|
|
19536
19536
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
19537
19537
|
} else {
|
|
19538
|
-
ownKeys$
|
|
19538
|
+
ownKeys$t(Object(source)).forEach(function(key) {
|
|
19539
19539
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
19540
19540
|
});
|
|
19541
19541
|
}
|
|
@@ -19553,7 +19553,7 @@
|
|
|
19553
19553
|
filter.locale
|
|
19554
19554
|
]);
|
|
19555
19555
|
if (filter.type === "select") {
|
|
19556
|
-
return /* @__PURE__ */ jsx(FilterSelect, _object_spread$
|
|
19556
|
+
return /* @__PURE__ */ jsx(FilterSelect, _object_spread$v({
|
|
19557
19557
|
value,
|
|
19558
19558
|
onChange,
|
|
19559
19559
|
onClose,
|
|
@@ -19563,8 +19563,8 @@
|
|
|
19563
19563
|
}, filter));
|
|
19564
19564
|
}
|
|
19565
19565
|
if (filter.type === "dateRange") {
|
|
19566
|
-
var preparedValue = isPeriodValue(value) ? _object_spread$
|
|
19567
|
-
return /* @__PURE__ */ jsx(FilterWithPeriod, _object_spread$
|
|
19566
|
+
var preparedValue = isPeriodValue(value) ? _object_spread$v({}, value) : void 0;
|
|
19567
|
+
return /* @__PURE__ */ jsx(FilterWithPeriod, _object_spread$v({
|
|
19568
19568
|
value: preparedValue,
|
|
19569
19569
|
onChange,
|
|
19570
19570
|
onClose,
|
|
@@ -19575,10 +19575,10 @@
|
|
|
19575
19575
|
}
|
|
19576
19576
|
if (filter.type === "dateRangeWithoutPeriod") {
|
|
19577
19577
|
var preparedValue1 = isDatePeriodValue(value) ? value : void 0;
|
|
19578
|
-
return /* @__PURE__ */ jsx(FilterWithDates, _object_spread$
|
|
19578
|
+
return /* @__PURE__ */ jsx(FilterWithDates, _object_spread$v({
|
|
19579
19579
|
value: preparedValue1,
|
|
19580
19580
|
onChange: function(v) {
|
|
19581
|
-
return onChange(_object_spread_props$
|
|
19581
|
+
return onChange(_object_spread_props$t(_object_spread$v({}, v), {
|
|
19582
19582
|
periodType: "CUSTOM"
|
|
19583
19583
|
}));
|
|
19584
19584
|
},
|
|
@@ -19592,7 +19592,7 @@
|
|
|
19592
19592
|
}
|
|
19593
19593
|
if (filter.type === "multiSelect") {
|
|
19594
19594
|
var preparedValue2 = isMultiSelectValue(value) ? value : void 0;
|
|
19595
|
-
return /* @__PURE__ */ jsx(FilterMultiSelect, _object_spread$
|
|
19595
|
+
return /* @__PURE__ */ jsx(FilterMultiSelect, _object_spread$v({
|
|
19596
19596
|
value: preparedValue2,
|
|
19597
19597
|
onChange,
|
|
19598
19598
|
onClose,
|
|
@@ -19603,7 +19603,7 @@
|
|
|
19603
19603
|
}
|
|
19604
19604
|
if (filter.type === "interval") {
|
|
19605
19605
|
var preparedValue3 = Array.isArray(value) ? value : void 0;
|
|
19606
|
-
return /* @__PURE__ */ jsx(FilterInterval, _object_spread$
|
|
19606
|
+
return /* @__PURE__ */ jsx(FilterInterval, _object_spread$v({
|
|
19607
19607
|
value: preparedValue3,
|
|
19608
19608
|
onChange,
|
|
19609
19609
|
localeKey: translatesLocaleKey,
|
|
@@ -19617,14 +19617,14 @@
|
|
|
19617
19617
|
}
|
|
19618
19618
|
if (filter.type === "custom" && filter.component) {
|
|
19619
19619
|
var Component = filter.component;
|
|
19620
|
-
return /* @__PURE__ */ jsx(Component, _object_spread_props$
|
|
19620
|
+
return /* @__PURE__ */ jsx(Component, _object_spread_props$t(_object_spread$v({}, props), {
|
|
19621
19621
|
filter
|
|
19622
19622
|
}));
|
|
19623
19623
|
}
|
|
19624
19624
|
console.warn("%cДля фильтра ".concat(filter.name, " не задан тип или component"), "background: red; color: black");
|
|
19625
19625
|
return null;
|
|
19626
19626
|
}
|
|
19627
|
-
var useStyles$
|
|
19627
|
+
var useStyles$q = createThemedStyles("FiltersPaneSearch", {
|
|
19628
19628
|
root: {
|
|
19629
19629
|
display: "flex",
|
|
19630
19630
|
position: "relative",
|
|
@@ -19733,7 +19733,7 @@
|
|
|
19733
19733
|
if (Array.isArray(arr))
|
|
19734
19734
|
return arr;
|
|
19735
19735
|
}
|
|
19736
|
-
function _define_property$
|
|
19736
|
+
function _define_property$v(obj, key, value) {
|
|
19737
19737
|
if (key in obj) {
|
|
19738
19738
|
Object.defineProperty(obj, key, {
|
|
19739
19739
|
value,
|
|
@@ -19777,7 +19777,7 @@
|
|
|
19777
19777
|
function _non_iterable_rest$8() {
|
|
19778
19778
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
19779
19779
|
}
|
|
19780
|
-
function _object_spread$
|
|
19780
|
+
function _object_spread$u(target) {
|
|
19781
19781
|
for (var i = 1; i < arguments.length; i++) {
|
|
19782
19782
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
19783
19783
|
var ownKeys2 = Object.keys(source);
|
|
@@ -19787,12 +19787,12 @@
|
|
|
19787
19787
|
}));
|
|
19788
19788
|
}
|
|
19789
19789
|
ownKeys2.forEach(function(key) {
|
|
19790
|
-
_define_property$
|
|
19790
|
+
_define_property$v(target, key, source[key]);
|
|
19791
19791
|
});
|
|
19792
19792
|
}
|
|
19793
19793
|
return target;
|
|
19794
19794
|
}
|
|
19795
|
-
function ownKeys$
|
|
19795
|
+
function ownKeys$s(object, enumerableOnly) {
|
|
19796
19796
|
var keys2 = Object.keys(object);
|
|
19797
19797
|
if (Object.getOwnPropertySymbols) {
|
|
19798
19798
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -19805,12 +19805,12 @@
|
|
|
19805
19805
|
}
|
|
19806
19806
|
return keys2;
|
|
19807
19807
|
}
|
|
19808
|
-
function _object_spread_props$
|
|
19808
|
+
function _object_spread_props$s(target, source) {
|
|
19809
19809
|
source = source != null ? source : {};
|
|
19810
19810
|
if (Object.getOwnPropertyDescriptors) {
|
|
19811
19811
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
19812
19812
|
} else {
|
|
19813
|
-
ownKeys$
|
|
19813
|
+
ownKeys$s(Object(source)).forEach(function(key) {
|
|
19814
19814
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
19815
19815
|
});
|
|
19816
19816
|
}
|
|
@@ -19834,7 +19834,7 @@
|
|
|
19834
19834
|
}
|
|
19835
19835
|
function FiltersPaneSearch(param) {
|
|
19836
19836
|
var value = param.value, _param_fields = param.fields, fields = _param_fields === void 0 ? [] : _param_fields, field = param.field, onChange = param.onChange, localeKey = param.localeKey, locale2 = param.locale, getValueId = param.getValueId, getValueView = param.getValueView, getValueString = param.getValueString, hasClearSelectButton = param.hasClearSelectButton, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isSelectSearchEnabled = param.isSelectSearchEnabled, isSelectSearchEnabled = _param_isSelectSearchEnabled === void 0 ? true : _param_isSelectSearchEnabled, _param_isAutoSizeable = param.isAutoSizeable, isAutoSizeable = _param_isAutoSizeable === void 0 ? true : _param_isAutoSizeable, maxLength = param.maxLength, data = param.data, tweakStyles = param.tweakStyles, testId = param.testId;
|
|
19837
|
-
var classes = useStyles$
|
|
19837
|
+
var classes = useStyles$q({
|
|
19838
19838
|
theme: tweakStyles
|
|
19839
19839
|
});
|
|
19840
19840
|
var tweakSearchInputStyles = useTweakStyles({
|
|
@@ -19880,8 +19880,8 @@
|
|
|
19880
19880
|
field
|
|
19881
19881
|
]);
|
|
19882
19882
|
var _obj2;
|
|
19883
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
19884
|
-
className: clsx(classes.root, (_obj2 = {}, _define_property$
|
|
19883
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$s(_object_spread$u({
|
|
19884
|
+
className: clsx(classes.root, (_obj2 = {}, _define_property$v(_obj2, classes.focused, isInputFocused), _define_property$v(_obj2, classes.disabled, isDisabled), _obj2)),
|
|
19885
19885
|
ref: refRoot,
|
|
19886
19886
|
"data-testid": testId
|
|
19887
19887
|
}, addDataAttributes(data)), {
|
|
@@ -19946,7 +19946,7 @@
|
|
|
19946
19946
|
]
|
|
19947
19947
|
}));
|
|
19948
19948
|
}
|
|
19949
|
-
var useStyles$
|
|
19949
|
+
var useStyles$p = createThemedStyles("FilterValueView", {
|
|
19950
19950
|
text: {
|
|
19951
19951
|
overflow: "hidden",
|
|
19952
19952
|
textOverflow: "ellipsis",
|
|
@@ -19965,7 +19965,7 @@
|
|
|
19965
19965
|
}
|
|
19966
19966
|
function FilterValueView(param) {
|
|
19967
19967
|
var value = param.value, filter = param.filter, locale2 = param.locale, localeKey = param.localeKey, tweakStyles = param.tweakStyles;
|
|
19968
|
-
var classes = useStyles$
|
|
19968
|
+
var classes = useStyles$p({
|
|
19969
19969
|
theme: tweakStyles
|
|
19970
19970
|
});
|
|
19971
19971
|
var _filter_localeKey;
|
|
@@ -20130,7 +20130,7 @@
|
|
|
20130
20130
|
}
|
|
20131
20131
|
return trueReactPlatformHelpers.isNotEmpty(value);
|
|
20132
20132
|
};
|
|
20133
|
-
var useStyles$
|
|
20133
|
+
var useStyles$o = createThemedStyles("FilterWrapper", {
|
|
20134
20134
|
root: {
|
|
20135
20135
|
position: "relative",
|
|
20136
20136
|
transition: animations.defaultTransition,
|
|
@@ -20223,7 +20223,7 @@
|
|
|
20223
20223
|
minWidth: 0
|
|
20224
20224
|
}
|
|
20225
20225
|
});
|
|
20226
|
-
function _define_property$
|
|
20226
|
+
function _define_property$u(obj, key, value) {
|
|
20227
20227
|
if (key in obj) {
|
|
20228
20228
|
Object.defineProperty(obj, key, {
|
|
20229
20229
|
value,
|
|
@@ -20236,7 +20236,7 @@
|
|
|
20236
20236
|
}
|
|
20237
20237
|
return obj;
|
|
20238
20238
|
}
|
|
20239
|
-
function _object_spread$
|
|
20239
|
+
function _object_spread$t(target) {
|
|
20240
20240
|
for (var i = 1; i < arguments.length; i++) {
|
|
20241
20241
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
20242
20242
|
var ownKeys2 = Object.keys(source);
|
|
@@ -20246,12 +20246,12 @@
|
|
|
20246
20246
|
}));
|
|
20247
20247
|
}
|
|
20248
20248
|
ownKeys2.forEach(function(key) {
|
|
20249
|
-
_define_property$
|
|
20249
|
+
_define_property$u(target, key, source[key]);
|
|
20250
20250
|
});
|
|
20251
20251
|
}
|
|
20252
20252
|
return target;
|
|
20253
20253
|
}
|
|
20254
|
-
function ownKeys$
|
|
20254
|
+
function ownKeys$r(object, enumerableOnly) {
|
|
20255
20255
|
var keys2 = Object.keys(object);
|
|
20256
20256
|
if (Object.getOwnPropertySymbols) {
|
|
20257
20257
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -20264,12 +20264,12 @@
|
|
|
20264
20264
|
}
|
|
20265
20265
|
return keys2;
|
|
20266
20266
|
}
|
|
20267
|
-
function _object_spread_props$
|
|
20267
|
+
function _object_spread_props$r(target, source) {
|
|
20268
20268
|
source = source != null ? source : {};
|
|
20269
20269
|
if (Object.getOwnPropertyDescriptors) {
|
|
20270
20270
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
20271
20271
|
} else {
|
|
20272
|
-
ownKeys$
|
|
20272
|
+
ownKeys$r(Object(source)).forEach(function(key) {
|
|
20273
20273
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
20274
20274
|
});
|
|
20275
20275
|
}
|
|
@@ -20277,7 +20277,7 @@
|
|
|
20277
20277
|
}
|
|
20278
20278
|
function FilterWrapper(param) {
|
|
20279
20279
|
var filter = param.filter, value = param.value, isDisabled = param.isDisabled, locale2 = param.locale, localeKey = param.localeKey, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles, onChange = param.onChange;
|
|
20280
|
-
var classes = useStyles$
|
|
20280
|
+
var classes = useStyles$o({
|
|
20281
20281
|
theme: tweakStyles
|
|
20282
20282
|
});
|
|
20283
20283
|
var tweakWithPopupStyles = useTweakStyles({
|
|
@@ -20321,12 +20321,12 @@
|
|
|
20321
20321
|
trigger: function(param2) {
|
|
20322
20322
|
var isActive = param2.triggerProps.isActive, referenceProps = param2.referenceProps;
|
|
20323
20323
|
var _obj2;
|
|
20324
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
20325
|
-
className: clsx(classes.root, (_obj2 = {}, _define_property$
|
|
20324
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$r(_object_spread$t({
|
|
20325
|
+
className: clsx(classes.root, (_obj2 = {}, _define_property$u(_obj2, classes.noValue, !hasValue), _define_property$u(_obj2, classes.openNoValue, isActive && !hasValue), _define_property$u(_obj2, classes.withValue, !isActive && hasValue), _define_property$u(_obj2, classes.openWithValue, isActive && hasValue), _define_property$u(_obj2, classes.boolean, isBoolean), _define_property$u(_obj2, classes.disabled, isDisabled), _obj2))
|
|
20326
20326
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data), referenceProps), {
|
|
20327
20327
|
children: /* @__PURE__ */ jsxs("div", {
|
|
20328
20328
|
onClick: handleLabelClick,
|
|
20329
|
-
className: clsx(classes.item, _define_property$
|
|
20329
|
+
className: clsx(classes.item, _define_property$u({}, classes.booleanItem, isBoolean)),
|
|
20330
20330
|
children: [
|
|
20331
20331
|
/* @__PURE__ */ jsx("div", {
|
|
20332
20332
|
className: classes.name,
|
|
@@ -20344,7 +20344,7 @@
|
|
|
20344
20344
|
})
|
|
20345
20345
|
}),
|
|
20346
20346
|
!isBoolean && !hasClearIcon && /* @__PURE__ */ jsx("div", {
|
|
20347
|
-
className: clsx(classes.iconContainer, classes.chevronIcon, _define_property$
|
|
20347
|
+
className: clsx(classes.iconContainer, classes.chevronIcon, _define_property$u({}, classes.open, isActive)),
|
|
20348
20348
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
20349
20349
|
type: "chevron-down"
|
|
20350
20350
|
})
|
|
@@ -20374,7 +20374,7 @@
|
|
|
20374
20374
|
}
|
|
20375
20375
|
});
|
|
20376
20376
|
}
|
|
20377
|
-
function _define_property$
|
|
20377
|
+
function _define_property$t(obj, key, value) {
|
|
20378
20378
|
if (key in obj) {
|
|
20379
20379
|
Object.defineProperty(obj, key, {
|
|
20380
20380
|
value,
|
|
@@ -20387,7 +20387,7 @@
|
|
|
20387
20387
|
}
|
|
20388
20388
|
return obj;
|
|
20389
20389
|
}
|
|
20390
|
-
function _object_spread$
|
|
20390
|
+
function _object_spread$s(target) {
|
|
20391
20391
|
for (var i = 1; i < arguments.length; i++) {
|
|
20392
20392
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
20393
20393
|
var ownKeys2 = Object.keys(source);
|
|
@@ -20397,12 +20397,12 @@
|
|
|
20397
20397
|
}));
|
|
20398
20398
|
}
|
|
20399
20399
|
ownKeys2.forEach(function(key) {
|
|
20400
|
-
_define_property$
|
|
20400
|
+
_define_property$t(target, key, source[key]);
|
|
20401
20401
|
});
|
|
20402
20402
|
}
|
|
20403
20403
|
return target;
|
|
20404
20404
|
}
|
|
20405
|
-
function ownKeys$
|
|
20405
|
+
function ownKeys$q(object, enumerableOnly) {
|
|
20406
20406
|
var keys2 = Object.keys(object);
|
|
20407
20407
|
if (Object.getOwnPropertySymbols) {
|
|
20408
20408
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -20415,12 +20415,12 @@
|
|
|
20415
20415
|
}
|
|
20416
20416
|
return keys2;
|
|
20417
20417
|
}
|
|
20418
|
-
function _object_spread_props$
|
|
20418
|
+
function _object_spread_props$q(target, source) {
|
|
20419
20419
|
source = source != null ? source : {};
|
|
20420
20420
|
if (Object.getOwnPropertyDescriptors) {
|
|
20421
20421
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
20422
20422
|
} else {
|
|
20423
|
-
ownKeys$
|
|
20423
|
+
ownKeys$q(Object(source)).forEach(function(key) {
|
|
20424
20424
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
20425
20425
|
});
|
|
20426
20426
|
}
|
|
@@ -20428,7 +20428,7 @@
|
|
|
20428
20428
|
}
|
|
20429
20429
|
function FiltersPane(param) {
|
|
20430
20430
|
var data = param.data, tweakStyles = param.tweakStyles, filtersConfig = param.filtersConfig, enabledFilters = param.enabledFilters, _param_values = param.values, values = _param_values === void 0 ? {} : _param_values, localeKey = param.localeKey, locale2 = param.locale, search = param.search, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_hasClearButton = param.hasClearButton, hasClearButton = _param_hasClearButton === void 0 ? true : _param_hasClearButton, _param_shouldRenderDataId = param.shouldRenderDataId, shouldRenderDataId = _param_shouldRenderDataId === void 0 ? false : _param_shouldRenderDataId, testId = param.testId, onChangeFilters = param.onChangeFilters, onSettingsButtonClick = param.onSettingsButtonClick, onClear = param.onClear;
|
|
20431
|
-
var classes = useStyles$
|
|
20431
|
+
var classes = useStyles$w({
|
|
20432
20432
|
theme: tweakStyles
|
|
20433
20433
|
});
|
|
20434
20434
|
var tweakClearButtonStyles = useTweakStyles({
|
|
@@ -20475,11 +20475,11 @@
|
|
|
20475
20475
|
})
|
|
20476
20476
|
});
|
|
20477
20477
|
var _search_localeKey, _search_localeKey1, _search_isDisabled;
|
|
20478
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
20478
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$q(_object_spread$s({
|
|
20479
20479
|
className: classes.root
|
|
20480
20480
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
20481
20481
|
children: [
|
|
20482
|
-
onSettingsButtonClick !== void 0 && /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
20482
|
+
onSettingsButtonClick !== void 0 && /* @__PURE__ */ jsx("div", _object_spread_props$q(_object_spread$s({
|
|
20483
20483
|
className: classes.settings,
|
|
20484
20484
|
tabIndex: 0
|
|
20485
20485
|
}, trueReactPlatformHelpers.addDataTestId(testId, "settings-button")), {
|
|
@@ -20491,7 +20491,7 @@
|
|
|
20491
20491
|
})
|
|
20492
20492
|
})
|
|
20493
20493
|
})),
|
|
20494
|
-
search !== void 0 && /* @__PURE__ */ jsx(FiltersPaneSearch, _object_spread_props$
|
|
20494
|
+
search !== void 0 && /* @__PURE__ */ jsx(FiltersPaneSearch, _object_spread_props$q(_object_spread$s({}, search), {
|
|
20495
20495
|
locale: getLocale$1((_search_localeKey = search.localeKey) !== null && _search_localeKey !== void 0 ? _search_localeKey : localeKey, search.locale, locale2),
|
|
20496
20496
|
localeKey: (_search_localeKey1 = search.localeKey) !== null && _search_localeKey1 !== void 0 ? _search_localeKey1 : localeKey,
|
|
20497
20497
|
isDisabled: (_search_isDisabled = search.isDisabled) !== null && _search_isDisabled !== void 0 ? _search_isDisabled : isDisabled,
|
|
@@ -20515,7 +20515,7 @@
|
|
|
20515
20515
|
locale: locale2,
|
|
20516
20516
|
localeKey,
|
|
20517
20517
|
onChange: function(value) {
|
|
20518
|
-
return onChangeFilters(_object_spread_props$
|
|
20518
|
+
return onChangeFilters(_object_spread_props$q(_object_spread$s({}, values), _define_property$t({}, filterKey, value)));
|
|
20519
20519
|
},
|
|
20520
20520
|
value: currentValue,
|
|
20521
20521
|
isDisabled: isDisabled || (filter === null || filter === void 0 ? void 0 : (_filter_requiredFilledFilters = filter.requiredFilledFilters) === null || _filter_requiredFilledFilters === void 0 ? void 0 : _filter_requiredFilledFilters.some(function(item) {
|
|
@@ -26660,7 +26660,7 @@
|
|
|
26660
26660
|
*/
|
|
26661
26661
|
OS
|
|
26662
26662
|
};
|
|
26663
|
-
var useStyles$
|
|
26663
|
+
var useStyles$n = createThemedStyles("Flag", {
|
|
26664
26664
|
root: {
|
|
26665
26665
|
display: "flex",
|
|
26666
26666
|
width: "100%",
|
|
@@ -26682,7 +26682,7 @@
|
|
|
26682
26682
|
});
|
|
26683
26683
|
var Flag = function(param) {
|
|
26684
26684
|
var _param_countryCode = param.countryCode, countryCode = _param_countryCode === void 0 ? "" : _param_countryCode, tweakStyles = param.tweakStyles;
|
|
26685
|
-
var classes = useStyles$
|
|
26685
|
+
var classes = useStyles$n({
|
|
26686
26686
|
theme: tweakStyles
|
|
26687
26687
|
});
|
|
26688
26688
|
var countryFlagKey = countryCode.toUpperCase();
|
|
@@ -26729,7 +26729,7 @@
|
|
|
26729
26729
|
Cell: "div"
|
|
26730
26730
|
}
|
|
26731
26731
|
};
|
|
26732
|
-
var useStyles$
|
|
26732
|
+
var useStyles$m = createThemedStyles("Skeleton", {
|
|
26733
26733
|
root: {
|
|
26734
26734
|
display: "flex",
|
|
26735
26735
|
width: "100%",
|
|
@@ -26765,7 +26765,7 @@
|
|
|
26765
26765
|
});
|
|
26766
26766
|
var Skeleton = function(param) {
|
|
26767
26767
|
var height = param.height, tweakStyles = param.tweakStyles;
|
|
26768
|
-
var classes = useStyles$
|
|
26768
|
+
var classes = useStyles$m({
|
|
26769
26769
|
theme: tweakStyles
|
|
26770
26770
|
});
|
|
26771
26771
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -26789,7 +26789,7 @@
|
|
|
26789
26789
|
var _config_dateFormat;
|
|
26790
26790
|
return _instanceof(value, Date) ? dateFns.format(value, (_config_dateFormat = config === null || config === void 0 ? void 0 : config.dateFormat) !== null && _config_dateFormat !== void 0 ? _config_dateFormat : DEFAULT_DATE_FORMAT) : String(value);
|
|
26791
26791
|
};
|
|
26792
|
-
function _define_property$
|
|
26792
|
+
function _define_property$s(obj, key, value) {
|
|
26793
26793
|
if (key in obj) {
|
|
26794
26794
|
Object.defineProperty(obj, key, {
|
|
26795
26795
|
value,
|
|
@@ -26802,7 +26802,7 @@
|
|
|
26802
26802
|
}
|
|
26803
26803
|
return obj;
|
|
26804
26804
|
}
|
|
26805
|
-
function _object_spread$
|
|
26805
|
+
function _object_spread$r(target) {
|
|
26806
26806
|
for (var i = 1; i < arguments.length; i++) {
|
|
26807
26807
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
26808
26808
|
var ownKeys2 = Object.keys(source);
|
|
@@ -26812,12 +26812,12 @@
|
|
|
26812
26812
|
}));
|
|
26813
26813
|
}
|
|
26814
26814
|
ownKeys2.forEach(function(key) {
|
|
26815
|
-
_define_property$
|
|
26815
|
+
_define_property$s(target, key, source[key]);
|
|
26816
26816
|
});
|
|
26817
26817
|
}
|
|
26818
26818
|
return target;
|
|
26819
26819
|
}
|
|
26820
|
-
function ownKeys$
|
|
26820
|
+
function ownKeys$p(object, enumerableOnly) {
|
|
26821
26821
|
var keys2 = Object.keys(object);
|
|
26822
26822
|
if (Object.getOwnPropertySymbols) {
|
|
26823
26823
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -26830,19 +26830,19 @@
|
|
|
26830
26830
|
}
|
|
26831
26831
|
return keys2;
|
|
26832
26832
|
}
|
|
26833
|
-
function _object_spread_props$
|
|
26833
|
+
function _object_spread_props$p(target, source) {
|
|
26834
26834
|
source = source != null ? source : {};
|
|
26835
26835
|
if (Object.getOwnPropertyDescriptors) {
|
|
26836
26836
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
26837
26837
|
} else {
|
|
26838
|
-
ownKeys$
|
|
26838
|
+
ownKeys$p(Object(source)).forEach(function(key) {
|
|
26839
26839
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
26840
26840
|
});
|
|
26841
26841
|
}
|
|
26842
26842
|
return target;
|
|
26843
26843
|
}
|
|
26844
26844
|
var STICKY_SHADOW_PADDING = 12;
|
|
26845
|
-
var useStyles$
|
|
26845
|
+
var useStyles$l = createThemedStyles("FlexibleTable", {
|
|
26846
26846
|
flexibleTableWrapper: {},
|
|
26847
26847
|
root: {
|
|
26848
26848
|
width: "100%",
|
|
@@ -26850,7 +26850,7 @@
|
|
|
26850
26850
|
borderCollapse: "separate",
|
|
26851
26851
|
borderSpacing: 0
|
|
26852
26852
|
},
|
|
26853
|
-
scroll: _object_spread_props$
|
|
26853
|
+
scroll: _object_spread_props$p(_object_spread$r({}, helpers.withScrollBar), {
|
|
26854
26854
|
/*
|
|
26855
26855
|
Чтобы сделать таблицу на всю высоту проставьте
|
|
26856
26856
|
height у родителя таблицы у себя в проекте.
|
|
@@ -26929,7 +26929,7 @@
|
|
|
26929
26929
|
nothingFoundRow: {},
|
|
26930
26930
|
nothingFound: {}
|
|
26931
26931
|
});
|
|
26932
|
-
function _define_property$
|
|
26932
|
+
function _define_property$r(obj, key, value) {
|
|
26933
26933
|
if (key in obj) {
|
|
26934
26934
|
Object.defineProperty(obj, key, {
|
|
26935
26935
|
value,
|
|
@@ -26942,7 +26942,7 @@
|
|
|
26942
26942
|
}
|
|
26943
26943
|
return obj;
|
|
26944
26944
|
}
|
|
26945
|
-
function _object_spread$
|
|
26945
|
+
function _object_spread$q(target) {
|
|
26946
26946
|
for (var i = 1; i < arguments.length; i++) {
|
|
26947
26947
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
26948
26948
|
var ownKeys2 = Object.keys(source);
|
|
@@ -26952,12 +26952,12 @@
|
|
|
26952
26952
|
}));
|
|
26953
26953
|
}
|
|
26954
26954
|
ownKeys2.forEach(function(key) {
|
|
26955
|
-
_define_property$
|
|
26955
|
+
_define_property$r(target, key, source[key]);
|
|
26956
26956
|
});
|
|
26957
26957
|
}
|
|
26958
26958
|
return target;
|
|
26959
26959
|
}
|
|
26960
|
-
function ownKeys$
|
|
26960
|
+
function ownKeys$o(object, enumerableOnly) {
|
|
26961
26961
|
var keys2 = Object.keys(object);
|
|
26962
26962
|
if (Object.getOwnPropertySymbols) {
|
|
26963
26963
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -26970,18 +26970,18 @@
|
|
|
26970
26970
|
}
|
|
26971
26971
|
return keys2;
|
|
26972
26972
|
}
|
|
26973
|
-
function _object_spread_props$
|
|
26973
|
+
function _object_spread_props$o(target, source) {
|
|
26974
26974
|
source = source != null ? source : {};
|
|
26975
26975
|
if (Object.getOwnPropertyDescriptors) {
|
|
26976
26976
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
26977
26977
|
} else {
|
|
26978
|
-
ownKeys$
|
|
26978
|
+
ownKeys$o(Object(source)).forEach(function(key) {
|
|
26979
26979
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
26980
26980
|
});
|
|
26981
26981
|
}
|
|
26982
26982
|
return target;
|
|
26983
26983
|
}
|
|
26984
|
-
var useStyles$
|
|
26984
|
+
var useStyles$k = createThemedStyles("FlexibleTableCell", {
|
|
26985
26985
|
root: {
|
|
26986
26986
|
position: "relative",
|
|
26987
26987
|
boxSizing: "content-box",
|
|
@@ -26994,7 +26994,7 @@
|
|
|
26994
26994
|
zIndex: 5,
|
|
26995
26995
|
verticalAlign: "top"
|
|
26996
26996
|
},
|
|
26997
|
-
sticky: _object_spread_props$
|
|
26997
|
+
sticky: _object_spread_props$o(_object_spread$q({
|
|
26998
26998
|
zIndex: 19,
|
|
26999
26999
|
paddingLeft: 24,
|
|
27000
27000
|
paddingRight: 12,
|
|
@@ -27017,7 +27017,7 @@
|
|
|
27017
27017
|
cursor: "pointer"
|
|
27018
27018
|
}
|
|
27019
27019
|
});
|
|
27020
|
-
function _define_property$
|
|
27020
|
+
function _define_property$q(obj, key, value) {
|
|
27021
27021
|
if (key in obj) {
|
|
27022
27022
|
Object.defineProperty(obj, key, {
|
|
27023
27023
|
value,
|
|
@@ -27030,7 +27030,7 @@
|
|
|
27030
27030
|
}
|
|
27031
27031
|
return obj;
|
|
27032
27032
|
}
|
|
27033
|
-
function _object_spread$
|
|
27033
|
+
function _object_spread$p(target) {
|
|
27034
27034
|
for (var i = 1; i < arguments.length; i++) {
|
|
27035
27035
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
27036
27036
|
var ownKeys2 = Object.keys(source);
|
|
@@ -27040,12 +27040,12 @@
|
|
|
27040
27040
|
}));
|
|
27041
27041
|
}
|
|
27042
27042
|
ownKeys2.forEach(function(key) {
|
|
27043
|
-
_define_property$
|
|
27043
|
+
_define_property$q(target, key, source[key]);
|
|
27044
27044
|
});
|
|
27045
27045
|
}
|
|
27046
27046
|
return target;
|
|
27047
27047
|
}
|
|
27048
|
-
function ownKeys$
|
|
27048
|
+
function ownKeys$n(object, enumerableOnly) {
|
|
27049
27049
|
var keys2 = Object.keys(object);
|
|
27050
27050
|
if (Object.getOwnPropertySymbols) {
|
|
27051
27051
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -27058,21 +27058,21 @@
|
|
|
27058
27058
|
}
|
|
27059
27059
|
return keys2;
|
|
27060
27060
|
}
|
|
27061
|
-
function _object_spread_props$
|
|
27061
|
+
function _object_spread_props$n(target, source) {
|
|
27062
27062
|
source = source != null ? source : {};
|
|
27063
27063
|
if (Object.getOwnPropertyDescriptors) {
|
|
27064
27064
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
27065
27065
|
} else {
|
|
27066
|
-
ownKeys$
|
|
27066
|
+
ownKeys$n(Object(source)).forEach(function(key) {
|
|
27067
27067
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
27068
27068
|
});
|
|
27069
27069
|
}
|
|
27070
27070
|
return target;
|
|
27071
27071
|
}
|
|
27072
|
-
function _object_without_properties$
|
|
27072
|
+
function _object_without_properties$a(source, excluded) {
|
|
27073
27073
|
if (source == null)
|
|
27074
27074
|
return {};
|
|
27075
|
-
var target = _object_without_properties_loose$
|
|
27075
|
+
var target = _object_without_properties_loose$a(source, excluded);
|
|
27076
27076
|
var key, i;
|
|
27077
27077
|
if (Object.getOwnPropertySymbols) {
|
|
27078
27078
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -27087,7 +27087,7 @@
|
|
|
27087
27087
|
}
|
|
27088
27088
|
return target;
|
|
27089
27089
|
}
|
|
27090
|
-
function _object_without_properties_loose$
|
|
27090
|
+
function _object_without_properties_loose$a(source, excluded) {
|
|
27091
27091
|
if (source == null)
|
|
27092
27092
|
return {};
|
|
27093
27093
|
var target = {};
|
|
@@ -27102,7 +27102,7 @@
|
|
|
27102
27102
|
return target;
|
|
27103
27103
|
}
|
|
27104
27104
|
function FlexibleTableCell(_param) {
|
|
27105
|
-
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$
|
|
27105
|
+
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$a(_param, [
|
|
27106
27106
|
"row",
|
|
27107
27107
|
"columnName",
|
|
27108
27108
|
"config",
|
|
@@ -27112,7 +27112,7 @@
|
|
|
27112
27112
|
"isLoading",
|
|
27113
27113
|
"tweakStyles"
|
|
27114
27114
|
]);
|
|
27115
|
-
var classes = useStyles$
|
|
27115
|
+
var classes = useStyles$k({
|
|
27116
27116
|
theme: tweakStyles
|
|
27117
27117
|
});
|
|
27118
27118
|
var value = row[columnName];
|
|
@@ -27120,14 +27120,14 @@
|
|
|
27120
27120
|
var _ref = (_config_columnName = config[columnName]) !== null && _config_columnName !== void 0 ? _config_columnName : {}, _ref_component = _ref.component, component = _ref_component === void 0 ? formatCellContent(value, config[columnName]) : _ref_component, width = _ref.width, maxWidth = _ref.maxWidth, minWidth = _ref.minWidth, left2 = _ref.left, right2 = _ref.right, position = _ref.position, cellAlign = _ref.cellAlign, cellVerticalAlign = _ref.cellVerticalAlign, shouldRenderDataId = _ref.shouldRenderDataId, _ref_shouldRenderComponent = _ref.shouldRenderComponent, shouldRenderComponent = _ref_shouldRenderComponent === void 0 ? trueReactPlatformHelpers.isNotEmpty : _ref_shouldRenderComponent, onCellClick = _ref.onCellClick;
|
|
27121
27121
|
var isSticky = isOldSticky || position === "sticky";
|
|
27122
27122
|
var isClickable = !isLoading && trueReactPlatformHelpers.isNotEmpty(onCellClick);
|
|
27123
|
-
var cellComponentProps = _object_spread_props$
|
|
27123
|
+
var cellComponentProps = _object_spread_props$n(_object_spread$p({}, valueComponentProps), {
|
|
27124
27124
|
value,
|
|
27125
27125
|
row
|
|
27126
27126
|
});
|
|
27127
27127
|
var Table = TableRenders[renderMode];
|
|
27128
27128
|
var _obj2;
|
|
27129
|
-
return /* @__PURE__ */ jsx(Table.Cell, _object_spread_props$
|
|
27130
|
-
className: clsx(classes.root, (_obj2 = {}, _define_property$
|
|
27129
|
+
return /* @__PURE__ */ jsx(Table.Cell, _object_spread_props$n(_object_spread$p({
|
|
27130
|
+
className: clsx(classes.root, (_obj2 = {}, _define_property$q(_obj2, classes.sticky, isSticky), _define_property$q(_obj2, classes.second, isSecond), _define_property$q(_obj2, classes.loading, isLoading), _define_property$q(_obj2, classes.clickable, isClickable), _obj2)),
|
|
27131
27131
|
style: {
|
|
27132
27132
|
textAlign: cellAlign,
|
|
27133
27133
|
position: isSticky ? "sticky" : position,
|
|
@@ -27150,7 +27150,7 @@
|
|
|
27150
27150
|
}) : trueReactPlatformHelpers.applyAction(shouldRenderComponent, value, row, columnName) && trueReactPlatformHelpers.applyAction(component, cellComponentProps)
|
|
27151
27151
|
}));
|
|
27152
27152
|
}
|
|
27153
|
-
var useStyles$
|
|
27153
|
+
var useStyles$j = createThemedStyles("FlexibleTableRow", {
|
|
27154
27154
|
root: {
|
|
27155
27155
|
position: "relative"
|
|
27156
27156
|
},
|
|
@@ -27174,7 +27174,7 @@
|
|
|
27174
27174
|
if (Array.isArray(arr))
|
|
27175
27175
|
return arr;
|
|
27176
27176
|
}
|
|
27177
|
-
function _define_property$
|
|
27177
|
+
function _define_property$p(obj, key, value) {
|
|
27178
27178
|
if (key in obj) {
|
|
27179
27179
|
Object.defineProperty(obj, key, {
|
|
27180
27180
|
value,
|
|
@@ -27218,7 +27218,7 @@
|
|
|
27218
27218
|
function _non_iterable_rest$7() {
|
|
27219
27219
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
27220
27220
|
}
|
|
27221
|
-
function _object_spread$
|
|
27221
|
+
function _object_spread$o(target) {
|
|
27222
27222
|
for (var i = 1; i < arguments.length; i++) {
|
|
27223
27223
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
27224
27224
|
var ownKeys2 = Object.keys(source);
|
|
@@ -27228,12 +27228,12 @@
|
|
|
27228
27228
|
}));
|
|
27229
27229
|
}
|
|
27230
27230
|
ownKeys2.forEach(function(key) {
|
|
27231
|
-
_define_property$
|
|
27231
|
+
_define_property$p(target, key, source[key]);
|
|
27232
27232
|
});
|
|
27233
27233
|
}
|
|
27234
27234
|
return target;
|
|
27235
27235
|
}
|
|
27236
|
-
function ownKeys$
|
|
27236
|
+
function ownKeys$m(object, enumerableOnly) {
|
|
27237
27237
|
var keys2 = Object.keys(object);
|
|
27238
27238
|
if (Object.getOwnPropertySymbols) {
|
|
27239
27239
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -27246,12 +27246,12 @@
|
|
|
27246
27246
|
}
|
|
27247
27247
|
return keys2;
|
|
27248
27248
|
}
|
|
27249
|
-
function _object_spread_props$
|
|
27249
|
+
function _object_spread_props$m(target, source) {
|
|
27250
27250
|
source = source != null ? source : {};
|
|
27251
27251
|
if (Object.getOwnPropertyDescriptors) {
|
|
27252
27252
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
27253
27253
|
} else {
|
|
27254
|
-
ownKeys$
|
|
27254
|
+
ownKeys$m(Object(source)).forEach(function(key) {
|
|
27255
27255
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
27256
27256
|
});
|
|
27257
27257
|
}
|
|
@@ -27275,7 +27275,7 @@
|
|
|
27275
27275
|
}
|
|
27276
27276
|
function FlexibleTableRowInner(param) {
|
|
27277
27277
|
var item = param.item, config = param.config, columns = param.columns, uniqueField = param.uniqueField, renderMode = param.renderMode, _param_isActive = param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isFocusable = param.isFocusable, isFocusable = _param_isFocusable === void 0 ? false : _param_isFocusable, _param_isFirstColumnSticky = param.isFirstColumnSticky, isFirstColumnSticky = _param_isFirstColumnSticky === void 0 ? false : _param_isFirstColumnSticky, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, rowAttributes = param.rowAttributes, _param_isExpandableRowComponentInitiallyOpen = param.isExpandableRowComponentInitiallyOpen, isExpandableRowComponentInitiallyOpen = _param_isExpandableRowComponentInitiallyOpen === void 0 ? false : _param_isExpandableRowComponentInitiallyOpen, rowRef = param.rowRef, tweakStyles = param.tweakStyles, expandableRowComponent = param.expandableRowComponent, onRowHover = param.onRowHover, onRowClick = param.onRowClick;
|
|
27278
|
-
var classes = useStyles$
|
|
27278
|
+
var classes = useStyles$j({
|
|
27279
27279
|
theme: tweakStyles
|
|
27280
27280
|
});
|
|
27281
27281
|
var tweakTableCellStyles = useTweakStyles({
|
|
@@ -27350,14 +27350,14 @@
|
|
|
27350
27350
|
var _obj2;
|
|
27351
27351
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
27352
27352
|
children: [
|
|
27353
|
-
/* @__PURE__ */ jsx(Table.Row, _object_spread_props$
|
|
27353
|
+
/* @__PURE__ */ jsx(Table.Row, _object_spread_props$m(_object_spread$o({
|
|
27354
27354
|
ref: rowRef,
|
|
27355
|
-
className: clsx(classes.root, (_obj2 = {}, _define_property$
|
|
27355
|
+
className: clsx(classes.root, (_obj2 = {}, _define_property$p(_obj2, classes.active, isActive), _define_property$p(_obj2, classes.editable, isEditable), _define_property$p(_obj2, classes.clickable, isClickable), _obj2))
|
|
27356
27356
|
}, !isLoading && {
|
|
27357
27357
|
onClick: handleRowClick,
|
|
27358
27358
|
onMouseEnter: handleMouseEnter,
|
|
27359
27359
|
onMouseLeave: handleMouseLeave
|
|
27360
|
-
}, addDataAttributes(_object_spread_props$
|
|
27360
|
+
}, addDataAttributes(_object_spread_props$m(_object_spread$o({}, rowData), {
|
|
27361
27361
|
active: isActive ? true : void 0,
|
|
27362
27362
|
editable: isEditable ? true : void 0,
|
|
27363
27363
|
isExpandableComponentActive: isNestedComponentExpanded ? true : void 0
|
|
@@ -27394,7 +27394,7 @@
|
|
|
27394
27394
|
});
|
|
27395
27395
|
}
|
|
27396
27396
|
var FlexibleTableRow = /* @__PURE__ */ React.memo(FlexibleTableRowInner);
|
|
27397
|
-
function _define_property$
|
|
27397
|
+
function _define_property$o(obj, key, value) {
|
|
27398
27398
|
if (key in obj) {
|
|
27399
27399
|
Object.defineProperty(obj, key, {
|
|
27400
27400
|
value,
|
|
@@ -27407,7 +27407,7 @@
|
|
|
27407
27407
|
}
|
|
27408
27408
|
return obj;
|
|
27409
27409
|
}
|
|
27410
|
-
function _object_spread$
|
|
27410
|
+
function _object_spread$n(target) {
|
|
27411
27411
|
for (var i = 1; i < arguments.length; i++) {
|
|
27412
27412
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
27413
27413
|
var ownKeys2 = Object.keys(source);
|
|
@@ -27417,12 +27417,12 @@
|
|
|
27417
27417
|
}));
|
|
27418
27418
|
}
|
|
27419
27419
|
ownKeys2.forEach(function(key) {
|
|
27420
|
-
_define_property$
|
|
27420
|
+
_define_property$o(target, key, source[key]);
|
|
27421
27421
|
});
|
|
27422
27422
|
}
|
|
27423
27423
|
return target;
|
|
27424
27424
|
}
|
|
27425
|
-
function ownKeys$
|
|
27425
|
+
function ownKeys$l(object, enumerableOnly) {
|
|
27426
27426
|
var keys2 = Object.keys(object);
|
|
27427
27427
|
if (Object.getOwnPropertySymbols) {
|
|
27428
27428
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -27435,21 +27435,21 @@
|
|
|
27435
27435
|
}
|
|
27436
27436
|
return keys2;
|
|
27437
27437
|
}
|
|
27438
|
-
function _object_spread_props$
|
|
27438
|
+
function _object_spread_props$l(target, source) {
|
|
27439
27439
|
source = source != null ? source : {};
|
|
27440
27440
|
if (Object.getOwnPropertyDescriptors) {
|
|
27441
27441
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
27442
27442
|
} else {
|
|
27443
|
-
ownKeys$
|
|
27443
|
+
ownKeys$l(Object(source)).forEach(function(key) {
|
|
27444
27444
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
27445
27445
|
});
|
|
27446
27446
|
}
|
|
27447
27447
|
return target;
|
|
27448
27448
|
}
|
|
27449
|
-
function _object_without_properties$
|
|
27449
|
+
function _object_without_properties$9(source, excluded) {
|
|
27450
27450
|
if (source == null)
|
|
27451
27451
|
return {};
|
|
27452
|
-
var target = _object_without_properties_loose$
|
|
27452
|
+
var target = _object_without_properties_loose$9(source, excluded);
|
|
27453
27453
|
var key, i;
|
|
27454
27454
|
if (Object.getOwnPropertySymbols) {
|
|
27455
27455
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -27464,7 +27464,7 @@
|
|
|
27464
27464
|
}
|
|
27465
27465
|
return target;
|
|
27466
27466
|
}
|
|
27467
|
-
function _object_without_properties_loose$
|
|
27467
|
+
function _object_without_properties_loose$9(source, excluded) {
|
|
27468
27468
|
if (source == null)
|
|
27469
27469
|
return {};
|
|
27470
27470
|
var target = {};
|
|
@@ -27479,7 +27479,7 @@
|
|
|
27479
27479
|
return target;
|
|
27480
27480
|
}
|
|
27481
27481
|
function FlexibleTable(_param) {
|
|
27482
|
-
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, isRowInitiallyOpen = _param.isExpandableRowComponentInitiallyOpen, restProps = _object_without_properties$
|
|
27482
|
+
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, isRowInitiallyOpen = _param.isExpandableRowComponentInitiallyOpen, restProps = _object_without_properties$9(_param, [
|
|
27483
27483
|
"content",
|
|
27484
27484
|
"headerContent",
|
|
27485
27485
|
"config",
|
|
@@ -27501,7 +27501,7 @@
|
|
|
27501
27501
|
"onHeadClick",
|
|
27502
27502
|
"isExpandableRowComponentInitiallyOpen"
|
|
27503
27503
|
]);
|
|
27504
|
-
var classes = useStyles$
|
|
27504
|
+
var classes = useStyles$l({
|
|
27505
27505
|
theme: tweakStyles
|
|
27506
27506
|
});
|
|
27507
27507
|
var tweakTableRowStyles = useTweakStyles({
|
|
@@ -27519,7 +27519,7 @@
|
|
|
27519
27519
|
]);
|
|
27520
27520
|
var hasInfiniteScroll = trueReactPlatformHelpers.isNotEmpty(infinityScrollConfig);
|
|
27521
27521
|
var getTableRowProps = function(item, index) {
|
|
27522
|
-
return _object_spread_props$
|
|
27522
|
+
return _object_spread_props$l(_object_spread$n({}, restProps), {
|
|
27523
27523
|
item,
|
|
27524
27524
|
renderMode,
|
|
27525
27525
|
config,
|
|
@@ -27614,10 +27614,10 @@
|
|
|
27614
27614
|
var Table = TableRenders[renderMode];
|
|
27615
27615
|
return /* @__PURE__ */ jsx("div", {
|
|
27616
27616
|
ref,
|
|
27617
|
-
className: clsx(classes.flexibleTableWrapper, _define_property$
|
|
27618
|
-
children: /* @__PURE__ */ jsxs(Table.Root, _object_spread_props$
|
|
27617
|
+
className: clsx(classes.flexibleTableWrapper, _define_property$o({}, classes.scroll, isHorizontallyScrollable)),
|
|
27618
|
+
children: /* @__PURE__ */ jsxs(Table.Root, _object_spread_props$l(_object_spread$n({
|
|
27619
27619
|
className: classes.root
|
|
27620
|
-
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(_object_spread_props$
|
|
27620
|
+
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(_object_spread_props$l(_object_spread$n({}, data), {
|
|
27621
27621
|
isLoading
|
|
27622
27622
|
}))), {
|
|
27623
27623
|
children: [
|
|
@@ -27630,8 +27630,8 @@
|
|
|
27630
27630
|
var _ref = (_config_key = config === null || config === void 0 ? void 0 : config[key]) !== null && _config_key !== void 0 ? _config_key : {}, position = _ref.position, minWidth = _ref.minWidth, width = _ref.width, maxWidth = _ref.maxWidth, _ref_titleAlign = _ref.titleAlign, titleAlign = _ref_titleAlign === void 0 ? "left" : _ref_titleAlign, right2 = _ref.right, left2 = _ref.left, _ref_title = _ref.title, title = _ref_title === void 0 ? "" : _ref_title, shouldRenderDataId = _ref.shouldRenderDataId;
|
|
27631
27631
|
var isSticky = position === "sticky" || isFirstColumnSticky && i === 0;
|
|
27632
27632
|
var _obj2;
|
|
27633
|
-
return /* @__PURE__ */ jsx(Table.Header, _object_spread_props$
|
|
27634
|
-
className: clsx(classes.header, (_obj2 = {}, _define_property$
|
|
27633
|
+
return /* @__PURE__ */ jsx(Table.Header, _object_spread_props$l(_object_spread$n({
|
|
27634
|
+
className: clsx(classes.header, (_obj2 = {}, _define_property$o(_obj2, classes.headerSticky, isSticky), _define_property$o(_obj2, classes.headerSecond, isFirstColumnSticky && i === 1), _obj2)),
|
|
27635
27635
|
style: {
|
|
27636
27636
|
minWidth,
|
|
27637
27637
|
width,
|
|
@@ -27657,7 +27657,7 @@
|
|
|
27657
27657
|
/* @__PURE__ */ jsx(Table.Body, {
|
|
27658
27658
|
className: classes.body,
|
|
27659
27659
|
children: isLoading ? trueReactPlatformHelpers.indexMap(6, function(i) {
|
|
27660
|
-
return /* @__PURE__ */ React.createElement(FlexibleTableRow, _object_spread_props$
|
|
27660
|
+
return /* @__PURE__ */ React.createElement(FlexibleTableRow, _object_spread_props$l(_object_spread$n({}, getTableRowProps({}, i)), {
|
|
27661
27661
|
key: i
|
|
27662
27662
|
}));
|
|
27663
27663
|
}) : /* @__PURE__ */ jsxs(Fragment, {
|
|
@@ -27671,7 +27671,7 @@
|
|
|
27671
27671
|
})
|
|
27672
27672
|
}),
|
|
27673
27673
|
content.map(function(item, i) {
|
|
27674
|
-
return /* @__PURE__ */ React.createElement(FlexibleTableRow, _object_spread_props$
|
|
27674
|
+
return /* @__PURE__ */ React.createElement(FlexibleTableRow, _object_spread_props$l(_object_spread$n({}, getTableRowProps(item, i)), {
|
|
27675
27675
|
isActive: activeRowsSet.has(i),
|
|
27676
27676
|
key: trueReactPlatformHelpers.isNotEmpty(uniqueField) ? item[uniqueField] : i
|
|
27677
27677
|
}));
|
|
@@ -27697,6 +27697,280 @@
|
|
|
27697
27697
|
}))
|
|
27698
27698
|
});
|
|
27699
27699
|
}
|
|
27700
|
+
var useStyles$i = createThemedStyles("DocActions", {
|
|
27701
|
+
docActions: {
|
|
27702
|
+
display: "grid",
|
|
27703
|
+
alignItems: "center",
|
|
27704
|
+
gridTemplateColumns: "max-content 1fr"
|
|
27705
|
+
},
|
|
27706
|
+
neutral: {},
|
|
27707
|
+
inverse: {},
|
|
27708
|
+
counterWrapper: {},
|
|
27709
|
+
title: {},
|
|
27710
|
+
actionsWrapper: {
|
|
27711
|
+
justifySelf: "end"
|
|
27712
|
+
}
|
|
27713
|
+
});
|
|
27714
|
+
function _define_property$n(obj, key, value) {
|
|
27715
|
+
if (key in obj) {
|
|
27716
|
+
Object.defineProperty(obj, key, {
|
|
27717
|
+
value,
|
|
27718
|
+
enumerable: true,
|
|
27719
|
+
configurable: true,
|
|
27720
|
+
writable: true
|
|
27721
|
+
});
|
|
27722
|
+
} else {
|
|
27723
|
+
obj[key] = value;
|
|
27724
|
+
}
|
|
27725
|
+
return obj;
|
|
27726
|
+
}
|
|
27727
|
+
function _object_spread$m(target) {
|
|
27728
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
27729
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
27730
|
+
var ownKeys2 = Object.keys(source);
|
|
27731
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
27732
|
+
ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
27733
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
27734
|
+
}));
|
|
27735
|
+
}
|
|
27736
|
+
ownKeys2.forEach(function(key) {
|
|
27737
|
+
_define_property$n(target, key, source[key]);
|
|
27738
|
+
});
|
|
27739
|
+
}
|
|
27740
|
+
return target;
|
|
27741
|
+
}
|
|
27742
|
+
function ownKeys$k(object, enumerableOnly) {
|
|
27743
|
+
var keys2 = Object.keys(object);
|
|
27744
|
+
if (Object.getOwnPropertySymbols) {
|
|
27745
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
27746
|
+
if (enumerableOnly) {
|
|
27747
|
+
symbols = symbols.filter(function(sym) {
|
|
27748
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
27749
|
+
});
|
|
27750
|
+
}
|
|
27751
|
+
keys2.push.apply(keys2, symbols);
|
|
27752
|
+
}
|
|
27753
|
+
return keys2;
|
|
27754
|
+
}
|
|
27755
|
+
function _object_spread_props$k(target, source) {
|
|
27756
|
+
source = source != null ? source : {};
|
|
27757
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
27758
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
27759
|
+
} else {
|
|
27760
|
+
ownKeys$k(Object(source)).forEach(function(key) {
|
|
27761
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
27762
|
+
});
|
|
27763
|
+
}
|
|
27764
|
+
return target;
|
|
27765
|
+
}
|
|
27766
|
+
function _object_without_properties$8(source, excluded) {
|
|
27767
|
+
if (source == null)
|
|
27768
|
+
return {};
|
|
27769
|
+
var target = _object_without_properties_loose$8(source, excluded);
|
|
27770
|
+
var key, i;
|
|
27771
|
+
if (Object.getOwnPropertySymbols) {
|
|
27772
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
27773
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
27774
|
+
key = sourceSymbolKeys[i];
|
|
27775
|
+
if (excluded.indexOf(key) >= 0)
|
|
27776
|
+
continue;
|
|
27777
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
27778
|
+
continue;
|
|
27779
|
+
target[key] = source[key];
|
|
27780
|
+
}
|
|
27781
|
+
}
|
|
27782
|
+
return target;
|
|
27783
|
+
}
|
|
27784
|
+
function _object_without_properties_loose$8(source, excluded) {
|
|
27785
|
+
if (source == null)
|
|
27786
|
+
return {};
|
|
27787
|
+
var target = {};
|
|
27788
|
+
var sourceKeys = Object.keys(source);
|
|
27789
|
+
var key, i;
|
|
27790
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
27791
|
+
key = sourceKeys[i];
|
|
27792
|
+
if (excluded.indexOf(key) >= 0)
|
|
27793
|
+
continue;
|
|
27794
|
+
target[key] = source[key];
|
|
27795
|
+
}
|
|
27796
|
+
return target;
|
|
27797
|
+
}
|
|
27798
|
+
var DocActions = function(_param) {
|
|
27799
|
+
var title = _param.title, _param_view = _param.view, view = _param_view === void 0 ? "neutral" : _param_view, children = _param.children, tweakStyles = _param.tweakStyles, checkBoxProps = _object_without_properties$8(_param, [
|
|
27800
|
+
"title",
|
|
27801
|
+
"view",
|
|
27802
|
+
"children",
|
|
27803
|
+
"tweakStyles"
|
|
27804
|
+
]);
|
|
27805
|
+
var classes = useStyles$i({
|
|
27806
|
+
theme: tweakStyles
|
|
27807
|
+
});
|
|
27808
|
+
var tweakCheckboxStyles = useTweakStyles({
|
|
27809
|
+
tweakStyles,
|
|
27810
|
+
className: "tweakCheckbox",
|
|
27811
|
+
currentComponentName: "DocActions"
|
|
27812
|
+
});
|
|
27813
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
27814
|
+
className: clsx(classes.docActions, classes[view]),
|
|
27815
|
+
children: [
|
|
27816
|
+
/* @__PURE__ */ jsx("div", {
|
|
27817
|
+
className: classes.counterWrapper,
|
|
27818
|
+
children: /* @__PURE__ */ jsx(Checkbox, _object_spread_props$k(_object_spread$m({
|
|
27819
|
+
tweakStyles: tweakCheckboxStyles
|
|
27820
|
+
}, checkBoxProps), {
|
|
27821
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
27822
|
+
className: classes.title,
|
|
27823
|
+
children: title
|
|
27824
|
+
})
|
|
27825
|
+
}))
|
|
27826
|
+
}),
|
|
27827
|
+
/* @__PURE__ */ jsx("div", {
|
|
27828
|
+
className: classes.actionsWrapper,
|
|
27829
|
+
children
|
|
27830
|
+
})
|
|
27831
|
+
]
|
|
27832
|
+
});
|
|
27833
|
+
};
|
|
27834
|
+
var DOC_ACTIONS_VIEWS = [
|
|
27835
|
+
"neutral",
|
|
27836
|
+
"inverse"
|
|
27837
|
+
];
|
|
27838
|
+
var DEFAULT_TIMEOUT$1 = 150;
|
|
27839
|
+
function _define_property$m(obj, key, value) {
|
|
27840
|
+
if (key in obj) {
|
|
27841
|
+
Object.defineProperty(obj, key, {
|
|
27842
|
+
value,
|
|
27843
|
+
enumerable: true,
|
|
27844
|
+
configurable: true,
|
|
27845
|
+
writable: true
|
|
27846
|
+
});
|
|
27847
|
+
} else {
|
|
27848
|
+
obj[key] = value;
|
|
27849
|
+
}
|
|
27850
|
+
return obj;
|
|
27851
|
+
}
|
|
27852
|
+
function _object_spread$l(target) {
|
|
27853
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
27854
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
27855
|
+
var ownKeys2 = Object.keys(source);
|
|
27856
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
27857
|
+
ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
27858
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
27859
|
+
}));
|
|
27860
|
+
}
|
|
27861
|
+
ownKeys2.forEach(function(key) {
|
|
27862
|
+
_define_property$m(target, key, source[key]);
|
|
27863
|
+
});
|
|
27864
|
+
}
|
|
27865
|
+
return target;
|
|
27866
|
+
}
|
|
27867
|
+
var useStyles$h = reactJss.createUseStyles(_object_spread$l({}, animations.slideUp));
|
|
27868
|
+
function _define_property$l(obj, key, value) {
|
|
27869
|
+
if (key in obj) {
|
|
27870
|
+
Object.defineProperty(obj, key, {
|
|
27871
|
+
value,
|
|
27872
|
+
enumerable: true,
|
|
27873
|
+
configurable: true,
|
|
27874
|
+
writable: true
|
|
27875
|
+
});
|
|
27876
|
+
} else {
|
|
27877
|
+
obj[key] = value;
|
|
27878
|
+
}
|
|
27879
|
+
return obj;
|
|
27880
|
+
}
|
|
27881
|
+
function _object_spread$k(target) {
|
|
27882
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
27883
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
27884
|
+
var ownKeys2 = Object.keys(source);
|
|
27885
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
27886
|
+
ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
27887
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
27888
|
+
}));
|
|
27889
|
+
}
|
|
27890
|
+
ownKeys2.forEach(function(key) {
|
|
27891
|
+
_define_property$l(target, key, source[key]);
|
|
27892
|
+
});
|
|
27893
|
+
}
|
|
27894
|
+
return target;
|
|
27895
|
+
}
|
|
27896
|
+
function ownKeys$j(object, enumerableOnly) {
|
|
27897
|
+
var keys2 = Object.keys(object);
|
|
27898
|
+
if (Object.getOwnPropertySymbols) {
|
|
27899
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
27900
|
+
if (enumerableOnly) {
|
|
27901
|
+
symbols = symbols.filter(function(sym) {
|
|
27902
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
27903
|
+
});
|
|
27904
|
+
}
|
|
27905
|
+
keys2.push.apply(keys2, symbols);
|
|
27906
|
+
}
|
|
27907
|
+
return keys2;
|
|
27908
|
+
}
|
|
27909
|
+
function _object_spread_props$j(target, source) {
|
|
27910
|
+
source = source != null ? source : {};
|
|
27911
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
27912
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
27913
|
+
} else {
|
|
27914
|
+
ownKeys$j(Object(source)).forEach(function(key) {
|
|
27915
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
27916
|
+
});
|
|
27917
|
+
}
|
|
27918
|
+
return target;
|
|
27919
|
+
}
|
|
27920
|
+
function _object_without_properties$7(source, excluded) {
|
|
27921
|
+
if (source == null)
|
|
27922
|
+
return {};
|
|
27923
|
+
var target = _object_without_properties_loose$7(source, excluded);
|
|
27924
|
+
var key, i;
|
|
27925
|
+
if (Object.getOwnPropertySymbols) {
|
|
27926
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
27927
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
27928
|
+
key = sourceSymbolKeys[i];
|
|
27929
|
+
if (excluded.indexOf(key) >= 0)
|
|
27930
|
+
continue;
|
|
27931
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
27932
|
+
continue;
|
|
27933
|
+
target[key] = source[key];
|
|
27934
|
+
}
|
|
27935
|
+
}
|
|
27936
|
+
return target;
|
|
27937
|
+
}
|
|
27938
|
+
function _object_without_properties_loose$7(source, excluded) {
|
|
27939
|
+
if (source == null)
|
|
27940
|
+
return {};
|
|
27941
|
+
var target = {};
|
|
27942
|
+
var sourceKeys = Object.keys(source);
|
|
27943
|
+
var key, i;
|
|
27944
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
27945
|
+
key = sourceKeys[i];
|
|
27946
|
+
if (excluded.indexOf(key) >= 0)
|
|
27947
|
+
continue;
|
|
27948
|
+
target[key] = source[key];
|
|
27949
|
+
}
|
|
27950
|
+
return target;
|
|
27951
|
+
}
|
|
27952
|
+
var FloatDocActions = function(_param) {
|
|
27953
|
+
var isOpen = _param.isOpen, children = _param.children, docActionsProps = _object_without_properties$7(_param, [
|
|
27954
|
+
"isOpen",
|
|
27955
|
+
"children"
|
|
27956
|
+
]);
|
|
27957
|
+
var classes = useStyles$h();
|
|
27958
|
+
return /* @__PURE__ */ jsx(reactTransitionGroup.CSSTransition, {
|
|
27959
|
+
in: isOpen,
|
|
27960
|
+
timeout: DEFAULT_TIMEOUT$1,
|
|
27961
|
+
mountOnEnter: true,
|
|
27962
|
+
unmountOnExit: true,
|
|
27963
|
+
classNames: {
|
|
27964
|
+
enter: classes["slide-up-enter"],
|
|
27965
|
+
enterActive: classes["slide-up-enter-active"],
|
|
27966
|
+
exit: classes["slide-up-exit"],
|
|
27967
|
+
exitActive: classes["slide-up-exit-active"]
|
|
27968
|
+
},
|
|
27969
|
+
children: /* @__PURE__ */ jsx(DocActions, _object_spread_props$j(_object_spread$k({}, docActionsProps), {
|
|
27970
|
+
children
|
|
27971
|
+
}))
|
|
27972
|
+
});
|
|
27973
|
+
};
|
|
27700
27974
|
var BUTTONS_WIDTH = 36;
|
|
27701
27975
|
var BUTTONS_GAP = 2;
|
|
27702
27976
|
var useStyles$g = createThemedStyles("IncrementInput", {
|
|
@@ -32378,9 +32652,11 @@
|
|
|
32378
32652
|
exports2.Colors = Colors;
|
|
32379
32653
|
exports2.CssBaseline = CssBaseline;
|
|
32380
32654
|
exports2.DEFAULT_PHONE_MASK = DEFAULT_PHONE_MASK;
|
|
32655
|
+
exports2.DOC_ACTIONS_VIEWS = DOC_ACTIONS_VIEWS;
|
|
32381
32656
|
exports2.DateInput = DateInput;
|
|
32382
32657
|
exports2.DatePicker = DatePicker;
|
|
32383
32658
|
exports2.Description = Description;
|
|
32659
|
+
exports2.DocActions = DocActions;
|
|
32384
32660
|
exports2.EMPTY_DATE_INPUT_VALUE = EMPTY_DATE_INPUT_VALUE;
|
|
32385
32661
|
exports2.EMPTY_DATE_RANGE_INPUT_VALUE = EMPTY_DATE_RANGE_INPUT_VALUE;
|
|
32386
32662
|
exports2.FileInput = FileInput;
|
|
@@ -32397,6 +32673,7 @@
|
|
|
32397
32673
|
exports2.FiltersPaneSearch = FiltersPaneSearch;
|
|
32398
32674
|
exports2.Flag = Flag;
|
|
32399
32675
|
exports2.FlexibleTable = FlexibleTable;
|
|
32676
|
+
exports2.FloatDocActions = FloatDocActions;
|
|
32400
32677
|
exports2.Icon = Icon;
|
|
32401
32678
|
exports2.IconButton = IconButton;
|
|
32402
32679
|
exports2.IncrementInput = IncrementInput;
|