@epam/uui 6.2.0 → 6.3.1
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/assets/styles/clickable.scss +26 -26
- package/assets/styles/dnd.scss +9 -9
- package/assets/styles/effects.scss +6 -6
- package/assets/styles/helpers.scss +3 -3
- package/assets/styles/index.scss +6 -6
- package/assets/styles/inputs.scss +70 -70
- package/assets/styles/typography.scss +184 -184
- package/components/buttons/TabButton.d.ts.map +1 -1
- package/components/fileUpload/FileCard.d.ts.map +1 -1
- package/components/filters/FilterPickerBody.d.ts.map +1 -1
- package/components/inputs/timePicker/TimePickerBody.d.ts.map +1 -1
- package/components/layout/ScrollBars.d.ts +80 -3
- package/components/layout/ScrollBars.d.ts.map +1 -1
- package/components/layout/Tabs.d.ts +19 -0
- package/components/layout/Tabs.d.ts.map +1 -0
- package/components/layout/VirtualList.d.ts +3 -10
- package/components/layout/VirtualList.d.ts.map +1 -1
- package/components/layout/index.d.ts +1 -0
- package/components/layout/index.d.ts.map +1 -1
- package/components/overlays/DropdownMenu.d.ts.map +1 -1
- package/components/pickers/DataPickerBody.d.ts.map +1 -1
- package/components/tables/DataTable.d.ts.map +1 -1
- package/components/tables/columnsConfigurationModal/ColumnRow.d.ts.map +1 -1
- package/components/tables/columnsConfigurationModal/ColumnsConfigurationModal.d.ts +2 -1
- package/components/tables/columnsConfigurationModal/ColumnsConfigurationModal.d.ts.map +1 -1
- package/components/tables/columnsConfigurationModal/PinIconButton.d.ts.map +1 -1
- package/components/typography/Text.d.ts +11 -5
- package/components/typography/Text.d.ts.map +1 -1
- package/index.esm.js +332 -167
- package/index.esm.js.map +1 -1
- package/index.js +329 -163
- package/index.js.map +1 -1
- package/package.json +7 -5
- package/readme.md +9 -9
- package/stats.html +19 -1
- package/styles.css +1111 -1063
- package/styles.css.map +1 -1
package/index.js
CHANGED
|
@@ -14,6 +14,8 @@ var updateLocale = require('dayjs/plugin/updateLocale.js');
|
|
|
14
14
|
var objectSupport = require('dayjs/plugin/objectSupport');
|
|
15
15
|
var customParseFormat = require('dayjs/plugin/customParseFormat.js');
|
|
16
16
|
var isoWeek = require('dayjs/plugin/isoWeek.js');
|
|
17
|
+
var overlayscrollbarsReact = require('overlayscrollbars-react');
|
|
18
|
+
require('overlayscrollbars/styles/overlayscrollbars.css');
|
|
17
19
|
var isEqual = require('react-fast-compare');
|
|
18
20
|
var FocusLock = require('react-focus-lock');
|
|
19
21
|
|
|
@@ -189,7 +191,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
189
191
|
xmlns: "http://www.w3.org/2000/svg",
|
|
190
192
|
ref: ref
|
|
191
193
|
}, props), /*#__PURE__*/React__namespace.createElement("g", {
|
|
192
|
-
clipPath: "url(#
|
|
194
|
+
clipPath: "url(#hicei867eaayu7zc8_a)"
|
|
193
195
|
}, _path$I || (_path$I = /*#__PURE__*/React__namespace.createElement("path", {
|
|
194
196
|
d: "M150.585 1.535C49.483-11.495 27.481 61.805 45.725 97.481c10.581 20.69-39.64 70.792 17.744 81.468 27.538 5.123 36-13.341 62.433-10.655 35.4 3.6 148.167-4.73 88.349-78.915-31.713-39.335 1.026-79.506-63.666-87.844Z",
|
|
195
197
|
fill: "#F5F6FA"
|
|
@@ -210,7 +212,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
210
212
|
d: "M86.786 22.982c-2.55 0-4.965 2.07-4.965 4.552V120.6c0 2.484 2.4 4.572 4.965 4.572h88.101c2.582 0 4.986-2.089 4.986-4.572V27.534c0-2.464-2.418-4.552-4.986-4.552h-88.1Zm-5.793 4.552c0-3.022 2.874-5.38 5.793-5.38h88.101c2.935 0 5.814 2.374 5.814 5.38V120.6c0 3.021-2.86 5.4-5.814 5.4h-88.1c-2.94 0-5.794-2.381-5.794-5.4V27.534Z",
|
|
211
213
|
fill: "#1D1E26"
|
|
212
214
|
})), /*#__PURE__*/React__namespace.createElement("mask", {
|
|
213
|
-
id: "
|
|
215
|
+
id: "hicei8f3owhh88tl_b",
|
|
214
216
|
style: {
|
|
215
217
|
maskType: "alpha"
|
|
216
218
|
},
|
|
@@ -223,7 +225,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
223
225
|
d: "M174.887 125.586h-88.1c-2.752 0-5.38-2.234-5.38-4.986V27.534c0-2.752 2.644-4.966 5.38-4.966h88.1c2.752 0 5.4 2.23 5.4 4.966V120.6c0 2.752-2.632 4.986-5.4 4.986Z",
|
|
224
226
|
fill: "#9BDEFF"
|
|
225
227
|
}))), _g || (_g = /*#__PURE__*/React__namespace.createElement("g", {
|
|
226
|
-
mask: "url(#
|
|
228
|
+
mask: "url(#hicei8f3owhh88tl_b)",
|
|
227
229
|
fillRule: "evenodd",
|
|
228
230
|
clipRule: "evenodd"
|
|
229
231
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -309,7 +311,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
309
311
|
d: "M24.73 96.184a.414.414 0 0 1 .581.06l48.646 59.751a.413.413 0 1 1-.642.523L24.67 96.766a.414.414 0 0 1 .06-.582Z",
|
|
310
312
|
fill: "#fff"
|
|
311
313
|
}))), _defs || (_defs = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
312
|
-
id: "
|
|
314
|
+
id: "hicei867eaayu7zc8_a"
|
|
313
315
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
314
316
|
fill: "#fff",
|
|
315
317
|
transform: "translate(.552)",
|
|
@@ -960,14 +962,14 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
|
960
962
|
};
|
|
961
963
|
var ForwardRef$4 = /*#__PURE__*/React.forwardRef(SvgSearchWithBackground);
|
|
962
964
|
|
|
963
|
-
var css$1w = {"root":"
|
|
965
|
+
var css$1w = {"root":"q81NXg","uui-spinner":"aSawZ7","uuiSpinner":"aSawZ7"};
|
|
964
966
|
|
|
965
967
|
function applySpinnerMods() {
|
|
966
968
|
return [css$1w.root, 'uui-spinner'];
|
|
967
969
|
}
|
|
968
970
|
const Spinner = /* @__PURE__ */uuiCore.withMods(uuiComponents.Spinner, applySpinnerMods);
|
|
969
971
|
|
|
970
|
-
var css$1v = {"root":"
|
|
972
|
+
var css$1v = {"root":"tX0Cx5","loading-word":"LpvWng","loadingWord":"LpvWng","animated-loading":"WYZ6VB","animatedLoading":"WYZ6VB","skeleton_loading":"ymDJTM","skeletonLoading":"ymDJTM"};
|
|
971
973
|
|
|
972
974
|
const TextPlaceholder = (props) => {
|
|
973
975
|
const pattern = ' ';
|
|
@@ -984,7 +986,7 @@ const TextPlaceholder = (props) => {
|
|
|
984
986
|
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
985
987
|
};
|
|
986
988
|
|
|
987
|
-
var css$1u = {"root":"
|
|
989
|
+
var css$1u = {"root":"_6atkB5","line-height":"OQ81vG","lineHeight":"OQ81vG","font-size":"byoVK-","fontSize":"byoVK-"};
|
|
988
990
|
|
|
989
991
|
function applyTextMods(mods) {
|
|
990
992
|
return [
|
|
@@ -1011,7 +1013,7 @@ const Text = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Text, appl
|
|
|
1011
1013
|
};
|
|
1012
1014
|
});
|
|
1013
1015
|
|
|
1014
|
-
var css$1t = {"root":"
|
|
1016
|
+
var css$1t = {"root":"sL8FHg"};
|
|
1015
1017
|
|
|
1016
1018
|
const Blocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.Blocker, () => [css$1t.root], () => ({ renderSpinner: settings.blocker.renderSpinner }));
|
|
1017
1019
|
|
|
@@ -1516,7 +1518,7 @@ const settings = {
|
|
|
1516
1518
|
textInput: textInputSettings,
|
|
1517
1519
|
};
|
|
1518
1520
|
|
|
1519
|
-
var css$1s = {"root":"
|
|
1521
|
+
var css$1s = {"root":"_6gOP-j"};
|
|
1520
1522
|
|
|
1521
1523
|
function applyButtonMods(mods) {
|
|
1522
1524
|
return [
|
|
@@ -1534,7 +1536,7 @@ const Button = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Button,
|
|
|
1534
1536
|
};
|
|
1535
1537
|
});
|
|
1536
1538
|
|
|
1537
|
-
var css$1r = {"root":"
|
|
1539
|
+
var css$1r = {"root":"uk-SwI"};
|
|
1538
1540
|
|
|
1539
1541
|
function applyIconButtonMods(props) {
|
|
1540
1542
|
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$1r.root];
|
|
@@ -1571,7 +1573,7 @@ function getIconClass(props) {
|
|
|
1571
1573
|
return [classList['has-left-icon'] ? 'uui-has-left-icon' : 'uui-no-left-icon', classList['has-right-icon'] ? 'uui-has-right-icon' : 'uui-no-right-icon'];
|
|
1572
1574
|
}
|
|
1573
1575
|
|
|
1574
|
-
var css$1q = {"root":"
|
|
1576
|
+
var css$1q = {"root":"_1lsq8k"};
|
|
1575
1577
|
|
|
1576
1578
|
const DEFAULT_COLOR = 'primary';
|
|
1577
1579
|
const LinkButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
@@ -1601,7 +1603,7 @@ const LinkButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
1601
1603
|
props.isDropdown && (React__namespace.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
1602
1604
|
});
|
|
1603
1605
|
|
|
1604
|
-
var css$1p = {"root":"
|
|
1606
|
+
var css$1p = {"root":"_3rOezU"};
|
|
1605
1607
|
|
|
1606
1608
|
const CountIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1607
1609
|
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
@@ -1613,9 +1615,11 @@ const CountIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1613
1615
|
]) }, props.caption));
|
|
1614
1616
|
});
|
|
1615
1617
|
|
|
1616
|
-
var css$1o = {"root":"
|
|
1618
|
+
var css$1o = {"root":"E4aDmz","withNotify":"hBLeej"};
|
|
1617
1619
|
|
|
1618
|
-
const TabButton = /* @__PURE__ */React__namespace.default.forwardRef((props,
|
|
1620
|
+
const TabButton = /* @__PURE__ */React__namespace.default.forwardRef((props, refExternal) => {
|
|
1621
|
+
const refLocal = React__namespace.default.useRef(null);
|
|
1622
|
+
const ref = refExternal ?? refLocal;
|
|
1619
1623
|
const { isActive } = uuiCore.useIsActive({
|
|
1620
1624
|
isLinkActive: props.isLinkActive,
|
|
1621
1625
|
link: props.link,
|
|
@@ -1631,11 +1635,22 @@ const TabButton = /* @__PURE__ */React__namespace.default.forwardRef((props, ref
|
|
|
1631
1635
|
];
|
|
1632
1636
|
const DropdownIcon = props.dropdownIcon ? props.dropdownIcon : settings.tabButton.icons.dropdownIcon;
|
|
1633
1637
|
const ClearIcon = props.clearIcon ? props.clearIcon : settings.tabButton.icons.clearIcon;
|
|
1638
|
+
const handleOnKeyDown = (event) => {
|
|
1639
|
+
props.rawProps?.onKeyDown?.(event);
|
|
1640
|
+
const isLink = (props.link !== undefined
|
|
1641
|
+
|| props.href !== undefined);
|
|
1642
|
+
if (isLink
|
|
1643
|
+
&& event.code === 'Space'
|
|
1644
|
+
&& typeof ref != 'function') {
|
|
1645
|
+
ref.current?.click();
|
|
1646
|
+
}
|
|
1647
|
+
};
|
|
1634
1648
|
return (React__namespace.default.createElement(uuiComponents.Clickable, { ...props, rawProps: {
|
|
1635
1649
|
role: 'tab',
|
|
1636
1650
|
'aria-haspopup': props.isDropdown,
|
|
1637
1651
|
'aria-expanded': props.isOpen,
|
|
1638
1652
|
...props.rawProps,
|
|
1653
|
+
onKeyDown: handleOnKeyDown,
|
|
1639
1654
|
}, cx: styles, ref: ref },
|
|
1640
1655
|
props.icon && props.iconPosition !== 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1641
1656
|
(props.caption || props.withNotify) && (React__namespace.default.createElement("div", { className: uuiCore.cx(uuiCore.uuiElement.caption) },
|
|
@@ -1647,13 +1662,13 @@ const TabButton = /* @__PURE__ */React__namespace.default.forwardRef((props, ref
|
|
|
1647
1662
|
props.onClear && !props.isDisabled && (React__namespace.default.createElement(uuiComponents.IconContainer, { cx: uuiCore.uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
1648
1663
|
});
|
|
1649
1664
|
|
|
1650
|
-
var css$1n = {"root":"
|
|
1665
|
+
var css$1n = {"root":"_3fCuzD","noLeftPadding":"AXdwiA","foldingArea":"FDqszx","onlyFoldable":"_36ENZj","captionWrapper":"hQUS4-","withNotify":"x0g2Et"};
|
|
1651
1666
|
|
|
1652
|
-
var css$1m = {"root":"
|
|
1667
|
+
var css$1m = {"root":"eICEHK"};
|
|
1653
1668
|
|
|
1654
1669
|
const AvatarStack = /* @__PURE__ */uuiCore.withMods(uuiComponents.AvatarStack, () => [css$1m.root]);
|
|
1655
1670
|
|
|
1656
|
-
var css$1l = {"root":"
|
|
1671
|
+
var css$1l = {"root":"_6EKP9S"};
|
|
1657
1672
|
|
|
1658
1673
|
const DEFAULT_FILL = 'solid';
|
|
1659
1674
|
function applyBadgeMods(mods) {
|
|
@@ -1681,7 +1696,7 @@ const Badge = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) =>
|
|
|
1681
1696
|
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
1682
1697
|
});
|
|
1683
1698
|
|
|
1684
|
-
var css$1k = {"root":"
|
|
1699
|
+
var css$1k = {"root":"r4wCPX"};
|
|
1685
1700
|
|
|
1686
1701
|
function applyTagMods(props) {
|
|
1687
1702
|
return [
|
|
@@ -1709,7 +1724,7 @@ const Tag = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
|
1709
1724
|
props.onClear && !props.isDisabled && (React__namespace.default.createElement(uuiComponents.IconContainer, { cx: uuiCore.uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
1710
1725
|
});
|
|
1711
1726
|
|
|
1712
|
-
var css$1j = {"root":"
|
|
1727
|
+
var css$1j = {"root":"mcySYP","page":"MOs1r0","spacer":"_5QEOm4","mode-ghost":"zODZyj","modeGhost":"zODZyj"};
|
|
1713
1728
|
|
|
1714
1729
|
function Paginator(props) {
|
|
1715
1730
|
const renderPaginator = (params) => (React__namespace.default.createElement("nav", { role: "navigation", className: cx__default.default(css$1j.root, 'uui-paginator', `uui-size-${props.size || settings.paginator.sizes.default}`), ...params.rawProps },
|
|
@@ -1726,14 +1741,14 @@ function Paginator(props) {
|
|
|
1726
1741
|
return React__namespace.default.createElement(uuiComponents.Paginator, { ...props, render: renderPaginator });
|
|
1727
1742
|
}
|
|
1728
1743
|
|
|
1729
|
-
var css$1i = {"root":"
|
|
1744
|
+
var css$1i = {"root":"s3plZG","progress-bar":"vjJRo2","progressBar":"vjJRo2","progressBar-indeterminate":"WkHkwo","progressBarIndeterminate":"WkHkwo","size-12":"ZklAd2","size12":"ZklAd2","size-18":"H0w7Td","size18":"H0w7Td","size-24":"yudSfL","size24":"yudSfL"};
|
|
1730
1745
|
|
|
1731
1746
|
const IndeterminateBar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
1732
1747
|
return (React__namespace.createElement("div", { ref: ref, className: cx__default.default('uui-indeterminate_bar', props.cx, css$1i.root, css$1i[`size-${props.size || 12}`]) },
|
|
1733
1748
|
React__namespace.createElement("div", { className: cx__default.default(css$1i.progressBar) })));
|
|
1734
1749
|
});
|
|
1735
1750
|
|
|
1736
|
-
var css$1h = {"root":"
|
|
1751
|
+
var css$1h = {"root":"o4oDVE","striped":"_-4ThKH","animate-stripes":"Xf3EGd","animateStripes":"Xf3EGd","size-12":"_93guqG","size12":"_93guqG","size-18":"uI-ij-","size18":"uI-ij-","size-24":"aNbA-L","size24":"aNbA-L"};
|
|
1737
1752
|
|
|
1738
1753
|
const DEFAULT_SIZE = '12';
|
|
1739
1754
|
function applyProgressBarMods(mods) {
|
|
@@ -1748,14 +1763,14 @@ const ProgressBar = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Pro
|
|
|
1748
1763
|
hideLabel: props.hideLabel || props.striped,
|
|
1749
1764
|
}));
|
|
1750
1765
|
|
|
1751
|
-
var css$1g = {"root":"
|
|
1766
|
+
var css$1g = {"root":"Eo7a2N"};
|
|
1752
1767
|
|
|
1753
1768
|
const IndicatorBar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
1754
1769
|
const { progress } = props;
|
|
1755
1770
|
return progress || progress === 0 ? (React__namespace.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx__default.default(css$1g.root, props.cx), hideLabel: true })) : (React__namespace.createElement(IndeterminateBar, { ref: ref, cx: cx__default.default(css$1g.root, props.cx) }));
|
|
1756
1771
|
});
|
|
1757
1772
|
|
|
1758
|
-
var css$1f = {"root":"
|
|
1773
|
+
var css$1f = {"root":"_1DokyX"};
|
|
1759
1774
|
|
|
1760
1775
|
const StatusIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1761
1776
|
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
@@ -1770,7 +1785,7 @@ const StatusIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1770
1785
|
React__namespace.default.createElement("p", { className: "uui-status_indicator-caption" }, props.caption)));
|
|
1771
1786
|
});
|
|
1772
1787
|
|
|
1773
|
-
var css$1e = {"root":"
|
|
1788
|
+
var css$1e = {"root":"aAyymM"};
|
|
1774
1789
|
|
|
1775
1790
|
function applyCheckboxMods(mods) {
|
|
1776
1791
|
return [
|
|
@@ -1788,7 +1803,7 @@ const applyUUICheckboxProps = (props) => {
|
|
|
1788
1803
|
};
|
|
1789
1804
|
const Checkbox = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Checkbox, applyCheckboxMods, applyUUICheckboxProps);
|
|
1790
1805
|
|
|
1791
|
-
var css$1d = {"root":"
|
|
1806
|
+
var css$1d = {"root":"-DKtr0"};
|
|
1792
1807
|
|
|
1793
1808
|
function applyRadioInputMods(mods) {
|
|
1794
1809
|
return [
|
|
@@ -1800,7 +1815,7 @@ function applyRadioInputMods(mods) {
|
|
|
1800
1815
|
}
|
|
1801
1816
|
const RadioInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.RadioInput, applyRadioInputMods, (props) => ({ icon: props.icon ? props.icon : settings.radioInput.icons.dotIcon }));
|
|
1802
1817
|
|
|
1803
|
-
var css$1c = {"root":"
|
|
1818
|
+
var css$1c = {"root":"BCYGx0"};
|
|
1804
1819
|
|
|
1805
1820
|
function applySwitchMods(mods) {
|
|
1806
1821
|
return [
|
|
@@ -1824,7 +1839,7 @@ var EditMode;
|
|
|
1824
1839
|
EditMode["INLINE"] = "inline";
|
|
1825
1840
|
})(EditMode || (EditMode = {}));
|
|
1826
1841
|
|
|
1827
|
-
var textInputCss = {"root":"
|
|
1842
|
+
var textInputCss = {"root":"_9M-jBw"};
|
|
1828
1843
|
|
|
1829
1844
|
const DEFAULT_MODE$3 = EditMode.FORM;
|
|
1830
1845
|
function applyTextInputMods(mods) {
|
|
@@ -1849,7 +1864,7 @@ const SearchInput = /* @__PURE__ */React__namespace.default.forwardRef((props, r
|
|
|
1849
1864
|
} }));
|
|
1850
1865
|
});
|
|
1851
1866
|
|
|
1852
|
-
var css$1b = {"root":"
|
|
1867
|
+
var css$1b = {"root":"BRliMG"};
|
|
1853
1868
|
|
|
1854
1869
|
const ControlGroup = /* @__PURE__ */uuiCore.withMods(uuiComponents.ControlGroup, () => [css$1b.root, 'uui-control-group']);
|
|
1855
1870
|
|
|
@@ -1865,7 +1880,7 @@ function MultiSwitchComponent(props, ref) {
|
|
|
1865
1880
|
}
|
|
1866
1881
|
const MultiSwitch = /* @__PURE__ */React__namespace.forwardRef(MultiSwitchComponent);
|
|
1867
1882
|
|
|
1868
|
-
var css$1a = {"root":"
|
|
1883
|
+
var css$1a = {"root":"MmanhM"};
|
|
1869
1884
|
|
|
1870
1885
|
const DEFAULT_MODE$2 = EditMode.FORM;
|
|
1871
1886
|
function applyNumericInputMods(mods) {
|
|
@@ -1885,7 +1900,7 @@ const NumericInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.NumericInput,
|
|
|
1885
1900
|
};
|
|
1886
1901
|
});
|
|
1887
1902
|
|
|
1888
|
-
var css$19 = {"root":"
|
|
1903
|
+
var css$19 = {"root":"_4vjOWZ"};
|
|
1889
1904
|
|
|
1890
1905
|
const DEFAULT_MODE$1 = EditMode.FORM;
|
|
1891
1906
|
function applyTextAreaMods(mods) {
|
|
@@ -1926,7 +1941,7 @@ function TREE_SHAKEABLE_INIT$1() {
|
|
|
1926
1941
|
};
|
|
1927
1942
|
}
|
|
1928
1943
|
|
|
1929
|
-
var css$18 = {"root":"
|
|
1944
|
+
var css$18 = {"root":"I9-1iQ"};
|
|
1930
1945
|
|
|
1931
1946
|
function applyDropdownContainerMods(mods) {
|
|
1932
1947
|
return [
|
|
@@ -1937,7 +1952,7 @@ function applyDropdownContainerMods(mods) {
|
|
|
1937
1952
|
}
|
|
1938
1953
|
const DropdownContainer = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.DropdownContainer, applyDropdownContainerMods);
|
|
1939
1954
|
|
|
1940
|
-
var css$17 = {"root":"
|
|
1955
|
+
var css$17 = {"root":"ZOJ0YA","timepicker-input":"e-YUzP","timepickerInput":"e-YUzP","ltr-always":"_1Ox0Mq","ltrAlways":"_1Ox0Mq"};
|
|
1941
1956
|
|
|
1942
1957
|
const uuiTimePicker = {
|
|
1943
1958
|
container: 'uui-timepicker-container',
|
|
@@ -1982,11 +1997,11 @@ function TimePickerBody(props) {
|
|
|
1982
1997
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment hours' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$P, onClick: () => onHoursChange(uuiDayjs.dayjs().set(props.value).add(1, 'h').hour()) }),
|
|
1983
1998
|
React__namespace.createElement(uuiComponents.NumericInput, { cx: uuiTimePicker.input, onValueChange: onHoursChange, value: +(uuiDayjs.dayjs()
|
|
1984
1999
|
.set(props.value)
|
|
1985
|
-
.format(MAX_HOURS === FORMAT_12H ? 'hh' : 'HH')), min: MIN_HOURS, max: MAX_HOURS }),
|
|
2000
|
+
.format(MAX_HOURS === FORMAT_12H ? 'hh' : 'HH')), isReadonly: true, min: MIN_HOURS, max: MAX_HOURS }),
|
|
1986
2001
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, rawProps: { 'aria-label': 'Decrement hours' }, cx: uuiTimePicker.iconDown, icon: ForwardRef$P, onClick: () => onHoursChange(uuiDayjs.dayjs().set(props.value).subtract(1, 'h').hour()) })),
|
|
1987
2002
|
React__namespace.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
1988
2003
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment minutes' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$P, onClick: handleMinutesUpClick }),
|
|
1989
|
-
React__namespace.createElement(uuiComponents.NumericInput, { cx: uuiTimePicker.input, onValueChange: onMinutesChange, value: +uuiDayjs.dayjs().set(props.value).format('m'), min: MIN_MINUTES, max: MAX_MINUTES }),
|
|
2004
|
+
React__namespace.createElement(uuiComponents.NumericInput, { cx: uuiTimePicker.input, onValueChange: onMinutesChange, value: +uuiDayjs.dayjs().set(props.value).format('m'), isReadonly: true, min: MIN_MINUTES, max: MAX_MINUTES }),
|
|
1990
2005
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, rawProps: { 'aria-label': 'Decrement minutes' }, cx: uuiTimePicker.iconDown, icon: ForwardRef$P, onClick: handleMinutesDownClick }))),
|
|
1991
2006
|
MAX_HOURS === FORMAT_12H && (React__namespace.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
1992
2007
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, cx: uuiTimePicker.iconUp, icon: ForwardRef$P, onClick: onTimeTypeChange }),
|
|
@@ -2131,7 +2146,7 @@ function TimePickerComponent(props, ref) {
|
|
|
2131
2146
|
}
|
|
2132
2147
|
const TimePicker = /* @__PURE__ */React__namespace.default.forwardRef(TimePickerComponent);
|
|
2133
2148
|
|
|
2134
|
-
var css$16 = {"root":"
|
|
2149
|
+
var css$16 = {"root":"IoU-Ru"};
|
|
2135
2150
|
|
|
2136
2151
|
function applyInputAddonMods() {
|
|
2137
2152
|
return [
|
|
@@ -2140,14 +2155,14 @@ function applyInputAddonMods() {
|
|
|
2140
2155
|
}
|
|
2141
2156
|
const InputAddon = /* @__PURE__ */uuiCore.withMods(uuiComponents.InputAddon, applyInputAddonMods);
|
|
2142
2157
|
|
|
2143
|
-
var css$15 = {"root":"
|
|
2158
|
+
var css$15 = {"root":"-AAfN7"};
|
|
2144
2159
|
|
|
2145
2160
|
function applySliderMods() {
|
|
2146
2161
|
return [css$15.root, 'uui-color-neutral'];
|
|
2147
2162
|
}
|
|
2148
2163
|
const Slider = /* @__PURE__ */uuiCore.withMods(uuiComponents.Slider, applySliderMods);
|
|
2149
2164
|
|
|
2150
|
-
var css$14 = {"root":"
|
|
2165
|
+
var css$14 = {"root":"vuRe-y"};
|
|
2151
2166
|
|
|
2152
2167
|
function applyTooltipMods(mods) {
|
|
2153
2168
|
return [
|
|
@@ -2157,7 +2172,7 @@ function applyTooltipMods(mods) {
|
|
|
2157
2172
|
}
|
|
2158
2173
|
const Tooltip = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Tooltip, applyTooltipMods);
|
|
2159
2174
|
|
|
2160
|
-
var css$13 = {"root":"
|
|
2175
|
+
var css$13 = {"root":"_3YNKaf","tooltip":"B2RbXC"};
|
|
2161
2176
|
|
|
2162
2177
|
function applyRatingMods(mods) {
|
|
2163
2178
|
return [
|
|
@@ -2171,7 +2186,7 @@ const Rating = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Rating,
|
|
|
2171
2186
|
Tooltip,
|
|
2172
2187
|
}));
|
|
2173
2188
|
|
|
2174
|
-
var css$12 = {"drag-handle-wrapper":"
|
|
2189
|
+
var css$12 = {"drag-handle-wrapper":"p47bqp","dragHandleWrapper":"p47bqp","with-indent":"ifaQSF","withIndent":"ifaQSF","drag-handle":"JV6flR","dragHandle":"JV6flR","icon-container":"VpLXPg","iconContainer":"VpLXPg"};
|
|
2175
2190
|
|
|
2176
2191
|
function DataRowAddons(props) {
|
|
2177
2192
|
const row = props.rowProps;
|
|
@@ -2248,7 +2263,7 @@ function VerticalTabButtonComponent(props, ref) {
|
|
|
2248
2263
|
}
|
|
2249
2264
|
const VerticalTabButton = /* @__PURE__ */React__namespace.default.forwardRef(VerticalTabButtonComponent);
|
|
2250
2265
|
|
|
2251
|
-
var css$11 = {"root":"
|
|
2266
|
+
var css$11 = {"root":"qQbFvx","main-path":"kYDASw","mainPath":"kYDASw","content-wrapper":"d8lhmY","contentWrapper":"d8lhmY","content":"fo8ze2","action-wrapper":"U2aFgx","actionWrapper":"U2aFgx","icon-wrapper":"kIJK-A","iconWrapper":"kIJK-A","icon":"JApauQ","close-icon":"aA-jXD","closeIcon":"aA-jXD"};
|
|
2252
2267
|
|
|
2253
2268
|
const Alert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("div", { role: "alert", ref: ref, className: cx__default.default('uui-alert', css$11.root, props.color && `uui-color-${props.color}`, props.cx, `uui-size-${props.size || settings.alert.sizes.default}`), ...props.rawProps },
|
|
2254
2269
|
React__namespace.createElement("div", { className: css$11.mainPath },
|
|
@@ -2266,7 +2281,7 @@ const ErrorAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => Re
|
|
|
2266
2281
|
|
|
2267
2282
|
const Dropdown = /* @__PURE__ */uuiCore.withMods(uuiComponents.Dropdown);
|
|
2268
2283
|
|
|
2269
|
-
var css$10 = {"submenu-root-item-rtl":"
|
|
2284
|
+
var css$10 = {"submenu-root-item-rtl":"hR-QP9","submenuRootItemRtl":"hR-QP9","icon-after":"OQaI7N","iconAfter":"OQaI7N","submenu-root-item":"ARhjyS","submenuRootItem":"ARhjyS","icon-check":"MzRMYQ","iconCheck":"MzRMYQ","splitter-root":"tv1Dl5","splitterRoot":"tv1Dl5","splitter":"nCvWnG","header-root":"-wnjXT","headerRoot":"-wnjXT","item-root":"_7ohDM9","itemRoot":"_7ohDM9","icon":"OKtLUS","link":"_9cX1Ag","indent":"_3AiFA8","selected-mark":"QC7HMp","selectedMark":"QC7HMp"};
|
|
2270
2285
|
|
|
2271
2286
|
exports.IDropdownControlKeys = void 0;
|
|
2272
2287
|
(function (IDropdownControlKeys) {
|
|
@@ -2280,25 +2295,34 @@ exports.IDropdownControlKeys = void 0;
|
|
|
2280
2295
|
function DropdownMenuContainer(props) {
|
|
2281
2296
|
const menuRef = React.useRef(null);
|
|
2282
2297
|
const [currentlyFocused, setFocused] = React.useState(0);
|
|
2283
|
-
const
|
|
2298
|
+
const getMenuItems = () => {
|
|
2299
|
+
if (!menuRef.current)
|
|
2300
|
+
return [];
|
|
2301
|
+
return Array.from(menuRef.current.querySelectorAll(`[role="menuitem"]:not(.${uuiCore.uuiMod.disabled})`));
|
|
2302
|
+
};
|
|
2284
2303
|
const changeFocus = (nextFocusedIndex) => {
|
|
2285
|
-
|
|
2304
|
+
const menuItems = getMenuItems();
|
|
2305
|
+
if (menuItems.length > 0 && nextFocusedIndex >= 0 && nextFocusedIndex < menuItems.length) {
|
|
2286
2306
|
setFocused(nextFocusedIndex);
|
|
2287
|
-
menuItems[nextFocusedIndex]
|
|
2307
|
+
const targetItem = menuItems[nextFocusedIndex];
|
|
2308
|
+
targetItem.focus();
|
|
2288
2309
|
}
|
|
2289
2310
|
};
|
|
2290
2311
|
const handleArrowKeys = (e) => {
|
|
2312
|
+
const menuItems = getMenuItems();
|
|
2291
2313
|
const lastMenuItemsIndex = menuItems.length - 1;
|
|
2292
2314
|
if (e.key === exports.IDropdownControlKeys.UP_ARROW) {
|
|
2293
2315
|
changeFocus(currentlyFocused > 0 ? currentlyFocused - 1 : lastMenuItemsIndex);
|
|
2316
|
+
e.stopPropagation(); // TODO: need improvement to track event only for current overlay
|
|
2294
2317
|
e.preventDefault();
|
|
2295
2318
|
}
|
|
2296
2319
|
else if (e.key === exports.IDropdownControlKeys.DOWN_ARROW) {
|
|
2297
2320
|
changeFocus(currentlyFocused < lastMenuItemsIndex ? currentlyFocused + 1 : 0);
|
|
2321
|
+
e.stopPropagation(); // TODO: need improvement to track event only for current overlay
|
|
2298
2322
|
e.preventDefault();
|
|
2299
2323
|
}
|
|
2300
2324
|
else if (e.key === props.closeOnKey && props.onClose) {
|
|
2301
|
-
e.stopPropagation();
|
|
2325
|
+
e.stopPropagation(); // TODO: need improvement to track event only for current overlay
|
|
2302
2326
|
props.onClose();
|
|
2303
2327
|
}
|
|
2304
2328
|
};
|
|
@@ -2391,7 +2415,7 @@ function DropdownMenuSwitchButton(props) {
|
|
|
2391
2415
|
React__namespace.default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
2392
2416
|
}
|
|
2393
2417
|
|
|
2394
|
-
var css$$ = {"root":"
|
|
2418
|
+
var css$$ = {"root":"_6PQbDB","mode-block":"L2ukY9","modeBlock":"L2ukY9","mode-inline":"ECkuJa","modeInline":"ECkuJa","padding-0":"oOHXKp","padding0":"oOHXKp","padding-6":"SDIJ-V","padding6":"SDIJ-V","padding-12":"_94Ys8b","padding12":"_94Ys8b","padding-18":"Cy-Yzt","padding18":"Cy-Yzt"};
|
|
2395
2419
|
|
|
2396
2420
|
function applyAccordionMods(mods) {
|
|
2397
2421
|
return [
|
|
@@ -2404,7 +2428,7 @@ const Accordion = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Accor
|
|
|
2404
2428
|
dropdownIcon: mods.dropdownIcon !== null && settings.accordion.icons.dropdownIcon,
|
|
2405
2429
|
}));
|
|
2406
2430
|
|
|
2407
|
-
var css$_ = {"root":"
|
|
2431
|
+
var css$_ = {"root":"ap-2nK","align-items":"DnOVnb","alignItems":"DnOVnb","justify-content":"_1aKt9k","justifyContent":"_1aKt9k","border-top":"jsseLL","borderTop":"jsseLL","border-bottom":"EV6ZjA","borderBottom":"EV6ZjA","top-shadow":"fMeNAt","topShadow":"fMeNAt","padding":"sFr-Fr","margin":"_4rReVQ","vPadding":"ZojVsY","column-gap":"gdKbpH","columnGap":"gdKbpH","row-gap":"Ca-VtG","rowGap":"Ca-VtG","spacing":"KRvhXW"};
|
|
2408
2432
|
|
|
2409
2433
|
const FlexCell = /* @__PURE__ */uuiCore.withMods(uuiComponents.FlexCell, () => [css$_.flexCell]);
|
|
2410
2434
|
|
|
@@ -2456,7 +2480,7 @@ const FlexRow = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
2456
2480
|
} }, props.children));
|
|
2457
2481
|
});
|
|
2458
2482
|
|
|
2459
|
-
var css$Z = {"root":"
|
|
2483
|
+
var css$Z = {"root":"s9u8hG","margin-24":"VubwqG","margin24":"VubwqG","padding-12":"yECNX-","padding12":"yECNX-","padding-24":"pzzeE5","padding24":"pzzeE5","shadow":"RpEITe","uui-surface-main":"vdXtnk","uuiSurfaceMain":"vdXtnk"};
|
|
2460
2484
|
|
|
2461
2485
|
const Panel = /* @__PURE__ */uuiCore.withMods(uuiComponents.VPanel, (props) => [
|
|
2462
2486
|
'uui-panel',
|
|
@@ -2466,7 +2490,7 @@ const Panel = /* @__PURE__ */uuiCore.withMods(uuiComponents.VPanel, (props) => [
|
|
|
2466
2490
|
props.background && css$Z[`uui-${props.background}`],
|
|
2467
2491
|
]);
|
|
2468
2492
|
|
|
2469
|
-
var css$Y = {"root":"
|
|
2493
|
+
var css$Y = {"root":"_4xKIXG"};
|
|
2470
2494
|
|
|
2471
2495
|
function applyLabeledInputMods(mods) {
|
|
2472
2496
|
return [
|
|
@@ -2483,7 +2507,7 @@ function applyLabeledInputProps(props) {
|
|
|
2483
2507
|
}
|
|
2484
2508
|
const LabeledInput = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.LabeledInput, applyLabeledInputMods, applyLabeledInputProps);
|
|
2485
2509
|
|
|
2486
|
-
var css$X = {"root":"
|
|
2510
|
+
var css$X = {"root":"XV08r0"};
|
|
2487
2511
|
|
|
2488
2512
|
function RadioGroup(props) {
|
|
2489
2513
|
const direction = props.direction || 'vertical';
|
|
@@ -2498,18 +2522,79 @@ function RadioGroup(props) {
|
|
|
2498
2522
|
})));
|
|
2499
2523
|
}
|
|
2500
2524
|
|
|
2501
|
-
var css$W = {"root":"
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
];
|
|
2507
|
-
|
|
2508
|
-
|
|
2525
|
+
var css$W = {"root":"LJvO0J","viewport":"WS08dq"};
|
|
2526
|
+
|
|
2527
|
+
var uuiScrollbars;
|
|
2528
|
+
(function (uuiScrollbars) {
|
|
2529
|
+
uuiScrollbars["uuiShadowTop"] = "uui-shadow-top";
|
|
2530
|
+
uuiScrollbars["uuiShadowBottom"] = "uui-shadow-bottom";
|
|
2531
|
+
uuiScrollbars["uuiLineTop"] = "uui-line-top";
|
|
2532
|
+
uuiScrollbars["uuiLineBottom"] = "uui-line-bottom";
|
|
2533
|
+
})(uuiScrollbars || (uuiScrollbars = {}));
|
|
2534
|
+
const ScrollBars = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
2535
|
+
const { cx: outerCx, children, overflowTopEffect = 'none', overflowBottomEffect = 'none', onScroll, autoHide = 'never', autoHideDelay, rawProps, ...rest } = props;
|
|
2536
|
+
const [shadowElements, setShadowElements] = React.useState({
|
|
2537
|
+
host: null,
|
|
2538
|
+
viewport: null,
|
|
2539
|
+
});
|
|
2540
|
+
const hostRef = React.useRef(null);
|
|
2541
|
+
const viewportRef = React.useRef(null);
|
|
2542
|
+
const containerRef = React.useRef(null);
|
|
2543
|
+
const [initialize, osInstance] = overlayscrollbarsReact.useOverlayScrollbars({
|
|
2544
|
+
options: {
|
|
2545
|
+
scrollbars: {
|
|
2546
|
+
theme: 'uui-scroll-bars',
|
|
2547
|
+
autoHide: autoHide,
|
|
2548
|
+
autoHideDelay: typeof autoHideDelay === 'number' ? autoHideDelay : undefined,
|
|
2549
|
+
},
|
|
2550
|
+
},
|
|
2551
|
+
events: {
|
|
2552
|
+
scroll: (_inst, ev) => {
|
|
2553
|
+
onScroll?.(ev);
|
|
2554
|
+
},
|
|
2555
|
+
},
|
|
2556
|
+
});
|
|
2557
|
+
React.useEffect(() => {
|
|
2558
|
+
const host = hostRef.current;
|
|
2559
|
+
const vp = viewportRef.current;
|
|
2560
|
+
if (!host || !vp)
|
|
2561
|
+
return;
|
|
2562
|
+
initialize({
|
|
2563
|
+
target: host,
|
|
2564
|
+
elements: {
|
|
2565
|
+
viewport: vp,
|
|
2566
|
+
content: vp,
|
|
2567
|
+
},
|
|
2568
|
+
});
|
|
2569
|
+
return () => {
|
|
2570
|
+
osInstance()?.destroy();
|
|
2571
|
+
};
|
|
2572
|
+
}, [initialize, osInstance]);
|
|
2573
|
+
React.useEffect(() => {
|
|
2574
|
+
const instance = osInstance();
|
|
2575
|
+
if (!instance)
|
|
2576
|
+
return;
|
|
2577
|
+
const elements = instance.elements();
|
|
2578
|
+
setShadowElements({
|
|
2579
|
+
host: elements.host,
|
|
2580
|
+
viewport: elements.viewport,
|
|
2581
|
+
});
|
|
2582
|
+
}, [osInstance]);
|
|
2583
|
+
uuiCore.useScrollShadows(shadowElements.host, shadowElements.viewport);
|
|
2584
|
+
React.useImperativeHandle(ref, () => {
|
|
2585
|
+
return {
|
|
2586
|
+
container: containerRef.current,
|
|
2587
|
+
view: viewportRef.current,
|
|
2588
|
+
};
|
|
2589
|
+
}, []);
|
|
2590
|
+
return (React__namespace.default.createElement("div", { ref: hostRef, className: cx__default.default(css$W.root, outerCx, 'uui-scroll-bars', overflowTopEffect === 'shadow' && uuiScrollbars.uuiShadowTop, overflowBottomEffect === 'shadow' && uuiScrollbars.uuiShadowBottom, overflowTopEffect === 'line' && uuiScrollbars.uuiLineTop, overflowBottomEffect === 'line' && uuiScrollbars.uuiLineBottom), ...rest, "data-overlayscrollbars-initialize": "" },
|
|
2591
|
+
React__namespace.default.createElement("div", { className: css$W.viewport, "data-overlayscrollbars-contents": "", ref: (node) => { viewportRef.current = node; }, ...rawProps }, children)));
|
|
2592
|
+
});
|
|
2593
|
+
ScrollBars.displayName = 'ScrollBars';
|
|
2509
2594
|
|
|
2510
|
-
var css$V = {"scroll-container":"
|
|
2595
|
+
var css$V = {"scroll-container":"trLwuQ","scrollContainer":"trLwuQ","list-container":"_8fY7le","listContainer":"_8fY7le"};
|
|
2511
2596
|
|
|
2512
|
-
const VirtualList = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
2597
|
+
const VirtualList = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
2513
2598
|
const { listContainerRef, offsetY, handleScroll, estimatedHeight, scrollContainerRef, } = uuiCore.useVirtualList({
|
|
2514
2599
|
value: props.value,
|
|
2515
2600
|
onValueChange: props.onValueChange,
|
|
@@ -2517,38 +2602,19 @@ const VirtualList = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
2517
2602
|
rowsCount: props.rowsCount,
|
|
2518
2603
|
rowsSelector: props.rowsSelector,
|
|
2519
2604
|
});
|
|
2520
|
-
React__namespace.useImperativeHandle(ref, () => scrollContainerRef.current, [scrollContainerRef.current]);
|
|
2521
|
-
const scrollShadows = uuiCore.useScrollShadows({ root: scrollContainerRef.current });
|
|
2605
|
+
React__namespace.default.useImperativeHandle(ref, () => scrollContainerRef.current, [scrollContainerRef.current]);
|
|
2522
2606
|
const renderRows = () => props.renderRows?.({
|
|
2523
|
-
listContainerRef, estimatedHeight, offsetY,
|
|
2524
|
-
}) || (React__namespace.createElement("div", { className: css$V.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
2525
|
-
React__namespace.createElement("div", { ref: listContainerRef, role: props.role, style: { marginTop: offsetY } }, props.rows)));
|
|
2526
|
-
const
|
|
2527
|
-
|
|
2528
|
-
if (!scrollbars?.container?.firstChild)
|
|
2607
|
+
listContainerRef, estimatedHeight, offsetY,
|
|
2608
|
+
}) || (React__namespace.default.createElement("div", { className: css$V.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
2609
|
+
React__namespace.default.createElement("div", { ref: listContainerRef, role: props.role, style: { marginTop: offsetY } }, props.rows)));
|
|
2610
|
+
const scrollBarsRef = React__namespace.default.useCallback((scrollbars) => {
|
|
2611
|
+
if (!scrollbars?.view)
|
|
2529
2612
|
return;
|
|
2530
|
-
scrollContainerRef.current = scrollbars.
|
|
2613
|
+
scrollContainerRef.current = scrollbars.view;
|
|
2531
2614
|
}, []);
|
|
2532
|
-
return (React__namespace.createElement(ScrollBars, { cx: uuiCore.cx(css$V.scrollContainer, props.cx,
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
[uuiCore.uuiMarkers.scrolledTop]: scrollShadows.verticalTop,
|
|
2536
|
-
[uuiCore.uuiMarkers.scrolledBottom]: scrollShadows.verticalBottom,
|
|
2537
|
-
}), onScroll: handleScroll, renderView: renderView, ref: scrollBarsRef }, renderRows()));
|
|
2538
|
-
});
|
|
2539
|
-
const VirtualListView = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
2540
|
-
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
2541
|
-
React__namespace.createElement("div", { ...props.rawProps, style: {
|
|
2542
|
-
...props.style,
|
|
2543
|
-
position: 'relative',
|
|
2544
|
-
flex: '1 1 auto',
|
|
2545
|
-
display: 'flex',
|
|
2546
|
-
flexDirection: 'column',
|
|
2547
|
-
overflow: props.isLoading ? 'hidden' : 'scroll',
|
|
2548
|
-
marginRight: props.isLoading ? 0 : props.style.marginRight,
|
|
2549
|
-
marginBottom: props.isLoading ? 0 : props.style.marginBottom,
|
|
2550
|
-
}, ref: ref }, props.children),
|
|
2551
|
-
props.renderBlocker ? props.renderBlocker({ isLoading: props.isLoading }) : React__namespace.createElement(Blocker, { isEnabled: props.isLoading })));
|
|
2615
|
+
return (React__namespace.default.createElement(ScrollBars, { cx: uuiCore.cx(css$V.scrollContainer, props.cx), onScroll: handleScroll, ref: scrollBarsRef, rawProps: props.rawProps, overflowTopEffect: props.overflowTopEffect, overflowBottomEffect: props.overflowBottomEffect },
|
|
2616
|
+
renderRows(),
|
|
2617
|
+
React__namespace.default.createElement(Blocker, { isEnabled: props.isLoading })));
|
|
2552
2618
|
});
|
|
2553
2619
|
|
|
2554
2620
|
const RichTextView = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.RichTextView, (mods) => ['uui-typography', `uui-typography-size-${mods.size || settings.richTextView.sizes.default}`]);
|
|
@@ -2579,7 +2645,7 @@ function Tree(props) {
|
|
|
2579
2645
|
return (React__namespace.createElement(VirtualList, { value: value, onValueChange: onValueChange, rowsCount: rowsCount, rows: renderedRows, cx: uuiCore.cx(propsCx), role: "tree" }));
|
|
2580
2646
|
}
|
|
2581
2647
|
|
|
2582
|
-
var css$U = {"root":"
|
|
2648
|
+
var css$U = {"root":"k86vxv"};
|
|
2583
2649
|
|
|
2584
2650
|
function CheckboxGroup(props) {
|
|
2585
2651
|
const currentValue = props.value || [];
|
|
@@ -2601,7 +2667,87 @@ function CheckboxGroup(props) {
|
|
|
2601
2667
|
})));
|
|
2602
2668
|
}
|
|
2603
2669
|
|
|
2604
|
-
|
|
2670
|
+
const Tabs = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
2671
|
+
const { items, value, onValueChange, borderBottom = true, rawProps, ...otherProps } = props;
|
|
2672
|
+
if (items.length === 0) {
|
|
2673
|
+
return null;
|
|
2674
|
+
}
|
|
2675
|
+
const tabLastIndex = items.length - 1;
|
|
2676
|
+
const getTabCurrentIndex = (tabIdCurrent) => {
|
|
2677
|
+
return items.findIndex((tabProps) => {
|
|
2678
|
+
return tabProps.id === tabIdCurrent;
|
|
2679
|
+
});
|
|
2680
|
+
};
|
|
2681
|
+
const moveToTabWithIndex = (tabIndex) => {
|
|
2682
|
+
/*
|
|
2683
|
+
`id`-s provided in `items` are assigned to the tabs.
|
|
2684
|
+
Unless users manually broke this connection,
|
|
2685
|
+
the index calculation will be correct,
|
|
2686
|
+
and the tab element will be present in the DOM.
|
|
2687
|
+
*/
|
|
2688
|
+
const tab = items.at(tabIndex);
|
|
2689
|
+
const tabElement = document.getElementById(tab.id);
|
|
2690
|
+
tabElement.focus();
|
|
2691
|
+
};
|
|
2692
|
+
const moveToPreviousTab = (tabIdCurrent) => {
|
|
2693
|
+
const tabCurrentIndex = getTabCurrentIndex(tabIdCurrent);
|
|
2694
|
+
const tabIndexNext = tabCurrentIndex === 0 ? tabLastIndex : tabCurrentIndex - 1;
|
|
2695
|
+
moveToTabWithIndex(tabIndexNext);
|
|
2696
|
+
};
|
|
2697
|
+
const moveToNextTab = (tabIdCurrent) => {
|
|
2698
|
+
const tabCurrentIndex = getTabCurrentIndex(tabIdCurrent);
|
|
2699
|
+
const tabIndexNext = tabCurrentIndex === tabLastIndex ? 0 : tabCurrentIndex + 1;
|
|
2700
|
+
moveToTabWithIndex(tabIndexNext);
|
|
2701
|
+
};
|
|
2702
|
+
const onKeyDown = (event) => {
|
|
2703
|
+
const focusedTabIdCurrent = event.target.id;
|
|
2704
|
+
// https://www.w3.org/WAI/ARIA/apg/patterns/tabs/#keyboardinteraction
|
|
2705
|
+
switch (event.code) {
|
|
2706
|
+
case 'ArrowLeft': {
|
|
2707
|
+
moveToPreviousTab(focusedTabIdCurrent);
|
|
2708
|
+
break;
|
|
2709
|
+
}
|
|
2710
|
+
case 'ArrowRight': {
|
|
2711
|
+
moveToNextTab(focusedTabIdCurrent);
|
|
2712
|
+
break;
|
|
2713
|
+
}
|
|
2714
|
+
case 'Home': {
|
|
2715
|
+
moveToTabWithIndex(0);
|
|
2716
|
+
break;
|
|
2717
|
+
}
|
|
2718
|
+
case 'End': {
|
|
2719
|
+
moveToTabWithIndex(tabLastIndex);
|
|
2720
|
+
break;
|
|
2721
|
+
}
|
|
2722
|
+
}
|
|
2723
|
+
};
|
|
2724
|
+
return (React__namespace.default.createElement(FlexRow, { ref: ref, borderBottom: borderBottom, rawProps: {
|
|
2725
|
+
role: 'tablist',
|
|
2726
|
+
'aria-orientation': 'horizontal',
|
|
2727
|
+
...rawProps,
|
|
2728
|
+
}, ...otherProps }, items.map((tabProps) => {
|
|
2729
|
+
const { id } = tabProps;
|
|
2730
|
+
const handleOnClick = () => {
|
|
2731
|
+
onValueChange(id);
|
|
2732
|
+
tabProps.onClick?.();
|
|
2733
|
+
};
|
|
2734
|
+
const handleOnKeyDown = (event) => {
|
|
2735
|
+
onKeyDown(event);
|
|
2736
|
+
tabProps.rawProps?.onKeyDown?.(event);
|
|
2737
|
+
};
|
|
2738
|
+
const isActive = id === value;
|
|
2739
|
+
const tabIndex = isActive ? undefined : -1;
|
|
2740
|
+
return (React__namespace.default.createElement(TabButton, { key: id, isActive: isActive, tabIndex: tabIndex, ...tabProps, onClick: handleOnClick, rawProps: {
|
|
2741
|
+
id,
|
|
2742
|
+
'aria-selected': isActive,
|
|
2743
|
+
...tabProps.rawProps,
|
|
2744
|
+
onKeyDown: handleOnKeyDown,
|
|
2745
|
+
} }));
|
|
2746
|
+
})));
|
|
2747
|
+
});
|
|
2748
|
+
Tabs.displayName = 'Tabs';
|
|
2749
|
+
|
|
2750
|
+
var css$T = {"root":"R1qIKu","modal-blocker":"oYAxKl","modalBlocker":"oYAxKl","animateModalBlocker":"gCC3Vp","modal":"NChdlF","modal-footer":"gQVrMC","modalFooter":"gQVrMC","border-top":"gtsH59","borderTop":"gtsH59","modal-header":"_09A5AL","modalHeader":"_09A5AL","border-bottom":"n7jjVR","borderBottom":"n7jjVR"};
|
|
2605
2751
|
|
|
2606
2752
|
const ModalBlocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalBlocker, () => [css$T.modalBlocker]);
|
|
2607
2753
|
const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, () => [css$T.root, css$T.modal], (props) => {
|
|
@@ -2793,7 +2939,7 @@ const TREE_SHAKEABLE_INIT = () => ({
|
|
|
2793
2939
|
});
|
|
2794
2940
|
const i18n = /* @__PURE__ */TREE_SHAKEABLE_INIT();
|
|
2795
2941
|
|
|
2796
|
-
var css$S = {"root":"
|
|
2942
|
+
var css$S = {"root":"tFqyuu","icon-wrapper":"oUQriM","iconWrapper":"oUQriM","action-wrapper":"ueSQ8c","actionWrapper":"ueSQ8c","close-icon":"_6eNkLg","closeIcon":"_6eNkLg","main-path":"mw30oe","mainPath":"mw30oe","content":"KxMprA","close-wrapper":"xLTRzz","closeWrapper":"xLTRzz","clear-notifications":"-igb8x","clearNotifications":"-igb8x"};
|
|
2797
2943
|
|
|
2798
2944
|
const NotificationCard = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
2799
2945
|
const notificationCardNode = React__namespace.default.useRef(null);
|
|
@@ -2826,7 +2972,7 @@ function ClearNotification() {
|
|
|
2826
2972
|
React__namespace.default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => uuiCtx.uuiNotifications.clearAll() })));
|
|
2827
2973
|
}
|
|
2828
2974
|
|
|
2829
|
-
var css$R = {"footer":"
|
|
2975
|
+
var css$R = {"footer":"sTPayW"};
|
|
2830
2976
|
|
|
2831
2977
|
class ConfirmationModal extends React__namespace.Component {
|
|
2832
2978
|
render() {
|
|
@@ -2868,7 +3014,7 @@ function useReliableForceUpdate() {
|
|
|
2868
3014
|
return red[1];
|
|
2869
3015
|
}
|
|
2870
3016
|
|
|
2871
|
-
var css$Q = {"root":"
|
|
3017
|
+
var css$Q = {"root":"NqfEPK","container":"qlxhN-"};
|
|
2872
3018
|
|
|
2873
3019
|
const defaultFormat = 'MMM D, YYYY';
|
|
2874
3020
|
const valueFormat = 'YYYY-MM-DD';
|
|
@@ -3086,14 +3232,14 @@ function DatePickerHeader({ navIconLeft, navIconRight, value: { month, view }, o
|
|
|
3086
3232
|
React__namespace.createElement(Button, { icon: navIconRight || settings.datePicker.icons.body.nextIcon, color: "secondary", fill: "ghost", cx: uuiHeader.navIconRight, onClick: !isDisabled && (() => onRightNavigationArrow()), isDisabled: disableNext }))));
|
|
3087
3233
|
}
|
|
3088
3234
|
|
|
3089
|
-
var css$P = {"root":"
|
|
3235
|
+
var css$P = {"root":"e9n0iE"};
|
|
3090
3236
|
|
|
3091
3237
|
function applyDateSelectionMods() {
|
|
3092
3238
|
return [css$P.root, `uui-size-${settings.datePicker.sizes.body}`];
|
|
3093
3239
|
}
|
|
3094
3240
|
const Calendar = /* @__PURE__ */uuiCore.withMods(uuiComponents.Calendar, applyDateSelectionMods);
|
|
3095
3241
|
|
|
3096
|
-
var css$O = {"root":"
|
|
3242
|
+
var css$O = {"root":"RtXxRP"};
|
|
3097
3243
|
|
|
3098
3244
|
const uuiDatePickerBody = {
|
|
3099
3245
|
wrapper: 'uui-datepicker-body-wrapper',
|
|
@@ -3214,7 +3360,7 @@ function DatePickerComponent(props, ref) {
|
|
|
3214
3360
|
}
|
|
3215
3361
|
const DatePicker = /* @__PURE__ */React__namespace.default.forwardRef(DatePickerComponent);
|
|
3216
3362
|
|
|
3217
|
-
var css$N = {"date-input":"
|
|
3363
|
+
var css$N = {"date-input":"Qmi952","dateInput":"Qmi952","root":"c8Uueg","separator":"wOOKpz"};
|
|
3218
3364
|
|
|
3219
3365
|
const RangeDatePickerInput = /* @__PURE__ */React.forwardRef(({ isDisabled, isInvalid, isReadonly, size, disableClear, rawProps, value, inFocus, format, onValueChange, onFocusInput, onBlurInput, onClick, getPlaceholder, filter, onKeyDown, preventEmptyFromDate, preventEmptyToDate, id, cx: classes, }, ref) => {
|
|
3220
3366
|
const [inputValue, setInputValue] = React.useState(toCustomDateRangeFormat(value, format));
|
|
@@ -3285,7 +3431,7 @@ const RangeDatePickerInput = /* @__PURE__ */React.forwardRef(({ isDisabled, isIn
|
|
|
3285
3431
|
React__namespace.default.createElement(TextInput, { cx: uuiCore.cx(css$N.dateInput, inFocus === 'to' && uuiCore.uuiMod.focus), placeholder: getPlaceholder ? getPlaceholder('to') : i18n.rangeDatePicker.pickerPlaceholderTo, size: size || settings.rangeDatePicker.sizes.default, value: inputValue.to || undefined, onCancel: clearAllowed ? onClear : undefined, onValueChange: (v) => onInputChange(v || '', 'to'), onFocus: (e) => handleFocus(e, 'to'), onBlur: (e) => handleBlur(e, 'to'), isInvalid: isInvalid, isDisabled: isDisabled, isReadonly: isReadonly, isDropdown: false, rawProps: rawProps?.to, onClick: onClick, onKeyDown: onInputKeyDown })));
|
|
3286
3432
|
});
|
|
3287
3433
|
|
|
3288
|
-
var css$M = {"root":"
|
|
3434
|
+
var css$M = {"root":"uIPHQO"};
|
|
3289
3435
|
|
|
3290
3436
|
const uuiPresets = {
|
|
3291
3437
|
container: 'uui-presets-container',
|
|
@@ -3305,7 +3451,7 @@ function CalendarPresets(props) {
|
|
|
3305
3451
|
getPresets(props.presets).map((item) => (React__namespace.createElement(LinkButton, { key: item.key, caption: item.name, onClick: () => props.onPresetSet(item), size: settings.rangeDatePicker.sizes.preset })))));
|
|
3306
3452
|
}
|
|
3307
3453
|
|
|
3308
|
-
var css$L = {"root":"
|
|
3454
|
+
var css$L = {"root":"oAaYcl","container":"mktP22","day-selection":"vlDlCk","daySelection":"vlDlCk","from-picker":"TkrR7k","fromPicker":"TkrR7k","to-picker":"m7Wf5o","toPicker":"m7Wf5o","bodes-wrapper":"j7PcOy","bodesWrapper":"j7PcOy","blocker":"RD1Woy"};
|
|
3309
3455
|
|
|
3310
3456
|
const uuiRangeDatePickerBody = {
|
|
3311
3457
|
inRange: 'uui-range-datepicker-in-range',
|
|
@@ -3318,7 +3464,7 @@ const rangeDatePickerPresets = {
|
|
|
3318
3464
|
name: 'Today',
|
|
3319
3465
|
getRange: () => ({
|
|
3320
3466
|
from: uuiDayjs.dayjs().toString(),
|
|
3321
|
-
to:
|
|
3467
|
+
to: uuiDayjs.dayjs().toString(),
|
|
3322
3468
|
order: 1,
|
|
3323
3469
|
}),
|
|
3324
3470
|
},
|
|
@@ -3359,7 +3505,7 @@ const rangeDatePickerPresets = {
|
|
|
3359
3505
|
getRange: () => ({
|
|
3360
3506
|
from: uuiDayjs.dayjs().startOf('month').subtract(3, 'month').toString(),
|
|
3361
3507
|
to: uuiDayjs.dayjs().subtract(1, 'month').endOf('month').toString(),
|
|
3362
|
-
order:
|
|
3508
|
+
order: 6,
|
|
3363
3509
|
}),
|
|
3364
3510
|
},
|
|
3365
3511
|
thisYear: {
|
|
@@ -3444,8 +3590,8 @@ function RangeDatePickerBodyComp(props, ref) {
|
|
|
3444
3590
|
props.onValueChange({
|
|
3445
3591
|
inFocus: props.value.inFocus,
|
|
3446
3592
|
selectedDate: {
|
|
3447
|
-
from: uuiDayjs.dayjs(presetVal.from).format(valueFormat),
|
|
3448
|
-
to: uuiDayjs.dayjs(presetVal.to).format(valueFormat),
|
|
3593
|
+
from: presetVal.from ? uuiDayjs.dayjs(presetVal.from).format(valueFormat) : undefined,
|
|
3594
|
+
to: presetVal.to ? uuiDayjs.dayjs(presetVal.to).format(valueFormat) : undefined,
|
|
3449
3595
|
},
|
|
3450
3596
|
});
|
|
3451
3597
|
}, presets: presets })));
|
|
@@ -3507,7 +3653,7 @@ const getDayState = (day, selectedDate) => {
|
|
|
3507
3653
|
};
|
|
3508
3654
|
};
|
|
3509
3655
|
|
|
3510
|
-
var css$K = {"dropdown-container":"
|
|
3656
|
+
var css$K = {"dropdown-container":"ulbVn2","dropdownContainer":"ulbVn2"};
|
|
3511
3657
|
|
|
3512
3658
|
function RangeDatePickerComponent(props, ref) {
|
|
3513
3659
|
const { value: _value, format = defaultFormat, size = settings.rangeDatePicker.sizes.default } = props;
|
|
@@ -3575,7 +3721,7 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
3575
3721
|
}
|
|
3576
3722
|
const RangeDatePicker = /* @__PURE__ */React__namespace.default.forwardRef(RangeDatePickerComponent);
|
|
3577
3723
|
|
|
3578
|
-
var css$J = {"root":"
|
|
3724
|
+
var css$J = {"root":"JT1DSu","blocker":"DKmFCr","marker":"wSNZAd","top":"JqFkPc","bottom":"ctfwAV","left":"dgyY-G","right":"-HZAP5","inside":"mQ02Ti"};
|
|
3579
3725
|
|
|
3580
3726
|
function DropMarker(props) {
|
|
3581
3727
|
return props.isDndInProgress
|
|
@@ -3590,9 +3736,9 @@ function DropMarker(props) {
|
|
|
3590
3736
|
: null;
|
|
3591
3737
|
}
|
|
3592
3738
|
|
|
3593
|
-
var css$I = {"search-wrapper":"
|
|
3739
|
+
var css$I = {"search-wrapper":"_3uPUth","searchWrapper":"_3uPUth","no-data":"-nyrgX","noData":"-nyrgX"};
|
|
3594
3740
|
|
|
3595
|
-
var css$H = {"picker-row":"
|
|
3741
|
+
var css$H = {"picker-row":"n86yn9","pickerRow":"n86yn9","align-widgets-top":"OzIkUE","alignWidgetsTop":"OzIkUE","row-content":"_1u6ksV","rowContent":"_1u6ksV","align-widgets-center":"Rsq5fu","alignWidgetsCenter":"Rsq5fu","icon-container":"-KtaW1","iconContainer":"-KtaW1","content-wrapper":"W1rQQd","contentWrapper":"W1rQQd","icon-wrapper":"zv-RHL","iconWrapper":"zv-RHL","icon-default":"_3VdvP8","iconDefault":"_3VdvP8","selected-mark":"d13459","selectedMark":"d13459"};
|
|
3596
3742
|
|
|
3597
3743
|
const mergeHighlightRanges = (ranges) => {
|
|
3598
3744
|
const mergedRanges = [];
|
|
@@ -3659,7 +3805,7 @@ const getHighlightedSearchMatches = (str, search) => {
|
|
|
3659
3805
|
return getDecoratedText(str, ranges);
|
|
3660
3806
|
};
|
|
3661
3807
|
|
|
3662
|
-
var css$G = {"root":"
|
|
3808
|
+
var css$G = {"root":"M-rUkA","column-gap":"Q-YwVF","columnGap":"Q-YwVF","title":"IwfQ5u","subtitle":"TibkeU","disabled":"XZXvlo","multiline":"ngwx3F"};
|
|
3663
3809
|
|
|
3664
3810
|
function PickerItem(props) {
|
|
3665
3811
|
const { highlightSearchMatches = true, size, avatarUrl, isLoading, isDisabled, icon, } = props;
|
|
@@ -3805,7 +3951,7 @@ function DataPickerBody({ highlightSearchMatches = true, ...props }) {
|
|
|
3805
3951
|
'aria-orientation': 'vertical',
|
|
3806
3952
|
tabIndex: -1,
|
|
3807
3953
|
...props.rawProps,
|
|
3808
|
-
}, rowsCount: props.rowsCount, isLoading: props.isReloading, renderBlocker: settings.pickerInput.renderBlocker })))));
|
|
3954
|
+
}, rowsCount: props.rowsCount, isLoading: props.isReloading, renderBlocker: settings.pickerInput.renderBlocker, overflowTopEffect: showSearch ? 'line' : 'none', overflowBottomEffect: "line" })))));
|
|
3809
3955
|
}
|
|
3810
3956
|
|
|
3811
3957
|
function DataPickerFooterImpl(props) {
|
|
@@ -3832,7 +3978,7 @@ function DataPickerFooterImpl(props) {
|
|
|
3832
3978
|
}
|
|
3833
3979
|
const DataPickerFooter = /* @__PURE__ */React__namespace.default.memo(DataPickerFooterImpl);
|
|
3834
3980
|
|
|
3835
|
-
var css$F = {"header":"
|
|
3981
|
+
var css$F = {"header":"B2qlMl","title":"MuoHEK","close":"ggO-wF"};
|
|
3836
3982
|
|
|
3837
3983
|
const DataPickerMobileHeaderImpl = (props) => {
|
|
3838
3984
|
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
@@ -3842,7 +3988,7 @@ const DataPickerMobileHeaderImpl = (props) => {
|
|
|
3842
3988
|
};
|
|
3843
3989
|
const DataPickerMobileHeader = /* @__PURE__ */React__namespace.default.memo(DataPickerMobileHeaderImpl);
|
|
3844
3990
|
|
|
3845
|
-
var css$E = {"done":"
|
|
3991
|
+
var css$E = {"done":"_1ZKYor","container":"_9uBP7f"};
|
|
3846
3992
|
|
|
3847
3993
|
const PickerBodyMobileView = (props) => {
|
|
3848
3994
|
const isMobileView = uuiCore.isMobile();
|
|
@@ -3854,7 +4000,7 @@ const PickerBodyMobileView = (props) => {
|
|
|
3854
4000
|
isMobileView && (React__namespace.default.createElement(LinkButton, { caption: i18n.pickerInput.doneButton, onClick: () => props.onClose?.(), cx: css$E.done, size: settings.pickerInput.sizes.body.mobileFooterLinkButton }))));
|
|
3855
4001
|
};
|
|
3856
4002
|
|
|
3857
|
-
var css$D = {"sub-header-wrapper":"
|
|
4003
|
+
var css$D = {"sub-header-wrapper":"VsqsbP","subHeaderWrapper":"VsqsbP","switch":"OtYuI-","no-found-modal-container":"lYAdNj","noFoundModalContainer":"lYAdNj","no-found-modal-container-icon":"_5MPGsr","noFoundModalContainerIcon":"_5MPGsr","no-found-modal-container-text":"_53bfMM","noFoundModalContainerText":"_53bfMM","body":"h-Vf7M"};
|
|
3858
4004
|
|
|
3859
4005
|
function PickerModal(props) {
|
|
3860
4006
|
const { view, selection, dataSourceStateLens, dataSourceState, getName, clearSelection, getRows, getListProps, getFooterProps, isSingleSelect, handleDataSourceValueChange, } = uuiComponents.usePickerModal(props);
|
|
@@ -3900,7 +4046,7 @@ function PickerModal(props) {
|
|
|
3900
4046
|
React__namespace.default.createElement(ModalFooter, null, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
|
|
3901
4047
|
}
|
|
3902
4048
|
|
|
3903
|
-
var css$C = {"tooltip":"
|
|
4049
|
+
var css$C = {"tooltip":"g4fIzj"};
|
|
3904
4050
|
|
|
3905
4051
|
const PickerTogglerTag = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
3906
4052
|
const tagProps = {
|
|
@@ -3919,7 +4065,7 @@ const PickerTogglerTag = /* @__PURE__ */React__namespace.forwardRef((props, ref)
|
|
|
3919
4065
|
}
|
|
3920
4066
|
});
|
|
3921
4067
|
|
|
3922
|
-
var css$B = {"root":"
|
|
4068
|
+
var css$B = {"root":"JAVuYn"};
|
|
3923
4069
|
|
|
3924
4070
|
const defaultMode = EditMode.FORM;
|
|
3925
4071
|
function applyPickerTogglerMods(mods) {
|
|
@@ -4001,7 +4147,7 @@ function PickerInputComponent(props, ref) {
|
|
|
4001
4147
|
}
|
|
4002
4148
|
const PickerInput = /* @__PURE__ */React__namespace.default.forwardRef(PickerInputComponent);
|
|
4003
4149
|
|
|
4004
|
-
var css$A = {"row":"
|
|
4150
|
+
var css$A = {"row":"zugrfa"};
|
|
4005
4151
|
|
|
4006
4152
|
function PickerListRow(props) {
|
|
4007
4153
|
let label;
|
|
@@ -4021,7 +4167,7 @@ function PickerListRow(props) {
|
|
|
4021
4167
|
return (React__namespace.default.createElement("div", { role: "option", "aria-selected": props.isSelectable ? props.isSelected : undefined, "aria-busy": props.isLoading, "aria-posinset": props.index + 1, ...(props.checkbox?.isVisible && { 'aria-checked': props.isChecked }), className: css$A.row }, component));
|
|
4022
4168
|
}
|
|
4023
4169
|
|
|
4024
|
-
var css$z = {"root":"
|
|
4170
|
+
var css$z = {"root":"yW1FgL"};
|
|
4025
4171
|
|
|
4026
4172
|
function PickerList(props) {
|
|
4027
4173
|
const { context, view, onlySelectedView, getName, getEntityName, appendLastSelected, getSelectedIdsArray, buildRowsList, getMaxDefaultItems, getModalTogglerCaption, } = uuiComponents.usePickerList(props);
|
|
@@ -4056,7 +4202,7 @@ function PickerList(props) {
|
|
|
4056
4202
|
}, selectedRows)));
|
|
4057
4203
|
}
|
|
4058
4204
|
|
|
4059
|
-
var css$y = {"root":"
|
|
4205
|
+
var css$y = {"root":"AV-t05","wrapper":"LVQzVv","align-widgets-top":"_76hfvD","alignWidgetsTop":"_76hfvD","align-widgets-center":"HqHk95","alignWidgetsCenter":"HqHk95"};
|
|
4060
4206
|
|
|
4061
4207
|
function DataTableCell(initialProps) {
|
|
4062
4208
|
const props = { ...initialProps };
|
|
@@ -4106,7 +4252,7 @@ function DataTableCell(initialProps) {
|
|
|
4106
4252
|
return React__namespace.createElement(uuiComponents.DataTableCell, { ...props });
|
|
4107
4253
|
}
|
|
4108
4254
|
|
|
4109
|
-
var css$x = {"root":"
|
|
4255
|
+
var css$x = {"root":"SWO5JN"};
|
|
4110
4256
|
|
|
4111
4257
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
4112
4258
|
// As we need our mods to style the cell properly, we extract them from DataTableCellProps.rowProps, which is a hack, but it's reliable enough.
|
|
@@ -4122,7 +4268,7 @@ const DataTableRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.DataTableRow,
|
|
|
4122
4268
|
];
|
|
4123
4269
|
}, () => propsMods);
|
|
4124
4270
|
|
|
4125
|
-
var css$w = {"sorting-panel-container":"
|
|
4271
|
+
var css$w = {"sorting-panel-container":"fHU-1Q","sortingPanelContainer":"fHU-1Q"};
|
|
4126
4272
|
|
|
4127
4273
|
const SortingPanelImpl = ({ sortDirection, onSort }) => {
|
|
4128
4274
|
const sortAsc = React.useCallback(() => onSort(sortDirection === 'asc' ? undefined : 'asc'), [onSort]);
|
|
@@ -4142,7 +4288,7 @@ const ColumnHeaderDropdownImpl = (props) => {
|
|
|
4142
4288
|
};
|
|
4143
4289
|
const ColumnHeaderDropdown = /* @__PURE__ */React__namespace.default.memo(ColumnHeaderDropdownImpl);
|
|
4144
4290
|
|
|
4145
|
-
var css$v = {"root":"
|
|
4291
|
+
var css$v = {"root":"ozuVAj","caption-wrapper":"vHT4Ig","captionWrapper":"vHT4Ig","sort-icon":"HORUZ3","sortIcon":"HORUZ3","dropdown-icon":"_1L1tLS","dropdownIcon":"_1L1tLS","infoIcon":"RHHu4N","align-right":"Z4Hc2q","alignRight":"Z4Hc2q","align-center":"opPQm5","alignCenter":"opPQm5","caption":"gbGK5c","truncate":"G5i6Jr","upper-case":"_8GqCQM","upperCase":"_8GqCQM","checkbox":"Nr-bJz","icon":"_2-FWaa","fold-all-icon":"JEa5eY","foldAllIcon":"JEa5eY","cell-tooltip":"zgRKF9","cellTooltip":"zgRKF9","resizing-marker":"SMJV-f","resizingMarker":"SMJV-f","pinned-right":"ouJCWX","pinnedRight":"ouJCWX","draggable":"HN4cjV","ghost":"oo-xLa","is-dragged-out":"v5Ig38","isDraggedOut":"v5Ig38","dnd-marker-left":"BjibIG","dndMarkerLeft":"BjibIG","dnd-marker-right":"_1v1yKg","dndMarkerRight":"_1v1yKg","cell-tooltip-wrapper":"fC58tu","cellTooltipWrapper":"fC58tu","cell-tooltip-text":"eMASvm","cellTooltipText":"eMASvm","tooltip-caption":"geXjGG","tooltipCaption":"geXjGG","tooltip-info":"PFlVUq","tooltipInfo":"PFlVUq"};
|
|
4146
4292
|
|
|
4147
4293
|
class DataTableHeaderCell extends React__namespace.Component {
|
|
4148
4294
|
constructor() {
|
|
@@ -4236,7 +4382,7 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
4236
4382
|
}
|
|
4237
4383
|
}
|
|
4238
4384
|
|
|
4239
|
-
var css$u = {"root":"
|
|
4385
|
+
var css$u = {"root":"FiaHii","caption-wrapper":"_1xCvgX","captionWrapper":"_1xCvgX","align-center":"_1GeYcv","alignCenter":"_1GeYcv","caption":"LXuw0c","truncate":"UR9VW7","upper-case":"bCDwvZ","upperCase":"bCDwvZ","group-cell-tooltip":"CbpXWb","groupCellTooltip":"CbpXWb","group-cell-tooltip-wrapper":"g-1KjA","groupCellTooltipWrapper":"g-1KjA","group-cell-tooltip-text":"ht23fN","groupCellTooltipText":"ht23fN","tooltip-caption":"TJyncB","tooltipCaption":"TJyncB","tooltip-info":"VGb9Sb","tooltipInfo":"VGb9Sb"};
|
|
4240
4386
|
|
|
4241
4387
|
class DataTableHeaderGroupCell extends React__namespace.Component {
|
|
4242
4388
|
constructor() {
|
|
@@ -4276,7 +4422,7 @@ class DataTableHeaderGroupCell extends React__namespace.Component {
|
|
|
4276
4422
|
}
|
|
4277
4423
|
}
|
|
4278
4424
|
|
|
4279
|
-
var css$t = {"root":"
|
|
4425
|
+
var css$t = {"root":"rU4otq"};
|
|
4280
4426
|
|
|
4281
4427
|
const DataTableHeaderRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.DataTableHeaderRow, () => [css$t.root, 'uui-dt-vars'], (mods) => ({
|
|
4282
4428
|
renderCell: (props) => (React__namespace.createElement(DataTableHeaderCell, { ...props, size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key, columnsGap: mods.columnsGap })),
|
|
@@ -4372,7 +4518,7 @@ const UUI_FILTERS_PANEL_ITEM_TOGGLER_SELECTION = 'uui-filters-panel-item-toggler
|
|
|
4372
4518
|
const UUI_FILTERS_PANEL_ITEM_TOGGLER_POSTFIX = 'uui-filters-panel-item-toggler-postfix';
|
|
4373
4519
|
const UUI_FILTERS_PANEL_BODY_FOOTER = 'uui-filters-panel-item-footer';
|
|
4374
4520
|
|
|
4375
|
-
var css$s = {"body":"
|
|
4521
|
+
var css$s = {"body":"VBOdST","header":"j2V9vY","title":"UOAHC1","removeButton":"q4jR4F","with-search":"ZZAI8r","withSearch":"ZZAI8r"};
|
|
4376
4522
|
|
|
4377
4523
|
function FilterColumnBody(props) {
|
|
4378
4524
|
const [predicate, setPredicate] = React.useState(getDefaultPredicate(props.predicates, props.value));
|
|
@@ -4433,7 +4579,7 @@ const useColumnsWithFilters = (initialColumns, filters) => {
|
|
|
4433
4579
|
return columns;
|
|
4434
4580
|
};
|
|
4435
4581
|
|
|
4436
|
-
var css$r = {"unpin-icon":"
|
|
4582
|
+
var css$r = {"unpin-icon":"D1A8bo","unpinIcon":"D1A8bo","pin-toggler-icon":"r9EnmR","pinTogglerIcon":"r9EnmR"};
|
|
4437
4583
|
|
|
4438
4584
|
function PinIconButton(props) {
|
|
4439
4585
|
const i18nLocal = i18n.tables.columnsConfigurationModal;
|
|
@@ -4446,14 +4592,23 @@ function PinIconButton(props) {
|
|
|
4446
4592
|
const iconTooltip = isPinnedAlways ? i18nLocal.lockedColumnPinButton : i18nLocal.unPinColumnButton;
|
|
4447
4593
|
const unpinClickHandler = isPinnedAlways ? undefined : () => onTogglePin(undefined);
|
|
4448
4594
|
pinUnpinNode = (React__namespace.createElement(Tooltip, { content: iconTooltip, placement: "bottom", color: "inverted" },
|
|
4449
|
-
React__namespace.createElement(IconButton, { cx: uuiCore.cx(!isPinnedAlways && css$r.unpinIcon, css$r.pinTogglerIcon), icon: unpinIcon, onClick: unpinClickHandler, isDisabled: isPinnedAlways, color: "primary"
|
|
4595
|
+
React__namespace.createElement(IconButton, { cx: uuiCore.cx(!isPinnedAlways && css$r.unpinIcon, css$r.pinTogglerIcon), icon: unpinIcon, onClick: unpinClickHandler, isDisabled: isPinnedAlways, color: "primary", rawProps: {
|
|
4596
|
+
'aria-description': iconTooltip,
|
|
4597
|
+
'aria-label': 'Unpin Button',
|
|
4598
|
+
} })));
|
|
4450
4599
|
}
|
|
4451
4600
|
else {
|
|
4452
4601
|
pinUnpinNode = (React__namespace.createElement(React__namespace.Fragment, null,
|
|
4453
4602
|
React__namespace.createElement(Tooltip, { content: i18nLocal.pinColumnToTheLeftButton, placement: "bottom", color: "inverted" },
|
|
4454
|
-
React__namespace.createElement(IconButton, { cx: css$r.pinTogglerIcon, icon: settings.dataTable.icons.columnsConfigurationModal.pinLeftIcon, onClick: () => onTogglePin('left'), isDisabled: isPinnedAlways
|
|
4603
|
+
React__namespace.createElement(IconButton, { cx: css$r.pinTogglerIcon, icon: settings.dataTable.icons.columnsConfigurationModal.pinLeftIcon, onClick: () => onTogglePin('left'), isDisabled: isPinnedAlways, rawProps: {
|
|
4604
|
+
'aria-description': i18nLocal.pinColumnToTheLeftButton,
|
|
4605
|
+
'aria-label': 'Pin left button',
|
|
4606
|
+
} })),
|
|
4455
4607
|
React__namespace.createElement(Tooltip, { content: i18nLocal.pinColumnToTheRightButton, placement: "bottom", color: "inverted" },
|
|
4456
|
-
React__namespace.createElement(IconButton, { cx: css$r.pinTogglerIcon, icon: settings.dataTable.icons.columnsConfigurationModal.pinRightIcon, onClick: () => onTogglePin('right'), isDisabled: isPinnedAlways
|
|
4608
|
+
React__namespace.createElement(IconButton, { cx: css$r.pinTogglerIcon, icon: settings.dataTable.icons.columnsConfigurationModal.pinRightIcon, onClick: () => onTogglePin('right'), isDisabled: isPinnedAlways, rawProps: {
|
|
4609
|
+
'aria-description': i18nLocal.pinColumnToTheRightButton,
|
|
4610
|
+
'aria-label': 'Pin right button',
|
|
4611
|
+
} }))));
|
|
4457
4612
|
}
|
|
4458
4613
|
return pinUnpinNode;
|
|
4459
4614
|
}
|
|
@@ -4475,22 +4630,33 @@ function getUnpinIcon(params) {
|
|
|
4475
4630
|
}
|
|
4476
4631
|
}
|
|
4477
4632
|
|
|
4478
|
-
var css$q = {"row-wrapper":"
|
|
4633
|
+
var css$q = {"row-wrapper":"sP89qf","rowWrapper":"sP89qf","pin-icon-button":"Na6WUf","pinIconButton":"Na6WUf","not-pinned":"F1c4OL","notPinned":"F1c4OL","checkbox":"xmktS-","drag-handle":"iKEzSh","dragHandle":"iKEzSh","dnd-disabled":"ud9YbU","dndDisabled":"ud9YbU"};
|
|
4479
4634
|
|
|
4480
4635
|
const ColumnRow = /* @__PURE__ */React__namespace.memo(function ColumnRow(props) {
|
|
4481
4636
|
const { column } = props;
|
|
4482
|
-
const { toggleVisibility, togglePin, onCanAcceptDrop, onDrop, columnConfig, isDndAllowed, isPinnedAlways, } = column;
|
|
4637
|
+
const { toggleVisibility, togglePin, onCanAcceptDrop, onDrop, columnConfig, isDndAllowed, isPinnedAlways, columnGroup, } = column;
|
|
4483
4638
|
const { isVisible, fix } = columnConfig;
|
|
4484
4639
|
const pinPosition = fix || (isPinnedAlways ? 'left' : undefined);
|
|
4485
4640
|
const isPinned = !!pinPosition;
|
|
4486
4641
|
const data = { column, columnConfig };
|
|
4642
|
+
const getColumnCaption = () => {
|
|
4643
|
+
if (props.renderItem) {
|
|
4644
|
+
return props.renderItem(props.column);
|
|
4645
|
+
}
|
|
4646
|
+
if (column.group) {
|
|
4647
|
+
return `${column.caption}/${columnGroup.caption}`;
|
|
4648
|
+
}
|
|
4649
|
+
else {
|
|
4650
|
+
return column.caption;
|
|
4651
|
+
}
|
|
4652
|
+
};
|
|
4487
4653
|
const renderContent = (dndActorParams) => {
|
|
4488
4654
|
const wrapperClasses = uuiCore.cx(css$q.rowWrapper, !isPinned && css$q.notPinned, dndActorParams.isDragGhost && uuiCore.uuiDndState.dragGhost, 'uui-dt-columns-config-row');
|
|
4489
4655
|
const { onTouchStart, onPointerDown, ...restEventHandlers } = dndActorParams.eventHandlers;
|
|
4490
4656
|
const { ref, ...dndActorPropsWithoutRef } = dndActorParams;
|
|
4491
4657
|
return (React__namespace.createElement(FlexRow, { size: settings.dataTable.sizes.columnsConfigurationModal.columnRow, cx: wrapperClasses, ref: dndActorParams.ref, rawProps: { ...restEventHandlers }, alignItems: "top" },
|
|
4492
4658
|
React__namespace.createElement(uuiComponents.DragHandle, { dragHandleIcon: settings.dataTable.icons.columnsConfigurationModal.dragIndicator, rawProps: { onTouchStart, onPointerDown }, isDisabled: !isDndAllowed, cx: uuiCore.cx(css$q.dragHandle, !isDndAllowed && css$q.dndDisabled) }),
|
|
4493
|
-
React__namespace.createElement(Checkbox, { key: column.key, label:
|
|
4659
|
+
React__namespace.createElement(Checkbox, { key: column.key, label: getColumnCaption(), value: isVisible, onValueChange: toggleVisibility, isReadonly: column.isAlwaysVisible || column.isLocked, cx: css$q.checkbox }),
|
|
4494
4660
|
React__namespace.createElement(FlexRow, { size: null, cx: css$q.pinIconButton },
|
|
4495
4661
|
React__namespace.createElement(PinIconButton, { pinPosition: pinPosition, canUnpin: !isPinnedAlways, onTogglePin: togglePin })),
|
|
4496
4662
|
React__namespace.createElement(DropMarker, { ...dndActorPropsWithoutRef })));
|
|
@@ -4498,7 +4664,7 @@ const ColumnRow = /* @__PURE__ */React__namespace.memo(function ColumnRow(props)
|
|
|
4498
4664
|
return (React__namespace.createElement(uuiCore.DndActor, { key: column.key, srcData: isDndAllowed && data, dstData: data, canAcceptDrop: onCanAcceptDrop, onDrop: onDrop, render: renderContent }));
|
|
4499
4665
|
});
|
|
4500
4666
|
|
|
4501
|
-
var css$p = {"root":"
|
|
4667
|
+
var css$p = {"root":"zxIZl3","main-panel":"QrvjP8","mainPanel":"QrvjP8","group":"dodTFs","group-title":"d6Wsgy","groupTitle":"d6Wsgy","group-items":"-Udu2w","groupItems":"-Udu2w","no-data":"k5DR4i","noData":"k5DR4i","no-data-title":"UADIfT","noDataTitle":"UADIfT","no-data-sub-title":"_2y020t","noDataSubTitle":"_2y020t","h-divider":"_0KdO2x","hDivider":"_0KdO2x","search-area":"Bz3S3s","searchArea":"Bz3S3s","subgroup-accordion":"gil8Ci","subgroupAccordion":"gil8Ci","subgroup":"TUFjto","subgroup-title":"HIXrhD","subgroupTitle":"HIXrhD"};
|
|
4502
4668
|
|
|
4503
4669
|
const renderGroupTitle = (title, amount) => (React__namespace.createElement(FlexRow, { cx: css$p.group },
|
|
4504
4670
|
React__namespace.createElement(Text, { size: "none", cx: css$p.groupTitle }, title),
|
|
@@ -4512,6 +4678,7 @@ function ColumnsConfigurationModal(props) {
|
|
|
4512
4678
|
columns,
|
|
4513
4679
|
defaultConfig,
|
|
4514
4680
|
getSearchFields: props.getSearchFields,
|
|
4681
|
+
columnGroups: props.columnGroups,
|
|
4515
4682
|
});
|
|
4516
4683
|
const apply = React.useCallback(() => modalProps.success(columnsConfig), [columnsConfig, modalProps]);
|
|
4517
4684
|
const close = React.useCallback(() => modalProps.abort(), [modalProps]);
|
|
@@ -4600,7 +4767,7 @@ const getChildrenAndRest = (row, rows) => {
|
|
|
4600
4767
|
return [children, rest];
|
|
4601
4768
|
};
|
|
4602
4769
|
|
|
4603
|
-
var css$o = {"listContainer":"
|
|
4770
|
+
var css$o = {"listContainer":"MhvPDr","header":"r-gnBR","group":"gqN6A4","stickyHeader":"moN4dq"};
|
|
4604
4771
|
|
|
4605
4772
|
function DataRowsGroup({ row, childRows, renderRow, top = 1, }) {
|
|
4606
4773
|
const rowRef = React.useRef(undefined);
|
|
@@ -4640,7 +4807,7 @@ function DataRowsContainer({ estimatedHeight, listContainerRef, offsetY, rows, r
|
|
|
4640
4807
|
React__namespace.default.createElement(DataRowsGroups, { rows: rows, renderRow: renderRow, top: headerRef?.current?.clientHeight }))));
|
|
4641
4808
|
}
|
|
4642
4809
|
|
|
4643
|
-
var css$n = {"root":"
|
|
4810
|
+
var css$n = {"root":"hukdyK","sticky-header":"ARKxNK","stickyHeader":"ARKxNK","no-results":"t055MF","noResults":"t055MF","icon":"_0CKT68","title":"Xp6OjX"};
|
|
4644
4811
|
|
|
4645
4812
|
function DataTable(props) {
|
|
4646
4813
|
const { uuiModals } = uuiCore.useUuiContext();
|
|
@@ -4664,7 +4831,7 @@ function DataTable(props) {
|
|
|
4664
4831
|
.show((modalProps) => {
|
|
4665
4832
|
return (props.renderColumnsConfigurationModal
|
|
4666
4833
|
? props.renderColumnsConfigurationModal({ ...configProps, ...modalProps })
|
|
4667
|
-
: (React__namespace.createElement(ColumnsConfigurationModal, { ...modalProps, columns: props.columns, columnsConfig: config, defaultConfig: defaultConfig })));
|
|
4834
|
+
: (React__namespace.createElement(ColumnsConfigurationModal, { ...modalProps, columns: props.columns, columnGroups: props.columnGroups, columnsConfig: config, defaultConfig: defaultConfig })));
|
|
4668
4835
|
})
|
|
4669
4836
|
.then((columnsConfig) => props.onValueChange({ ...props.value, columnsConfig }))
|
|
4670
4837
|
.catch(() => null);
|
|
@@ -4673,11 +4840,8 @@ function DataTable(props) {
|
|
|
4673
4840
|
]);
|
|
4674
4841
|
const renderTableBody = React__namespace.useCallback((params) => (React__namespace.createElement(React__namespace.Fragment, null,
|
|
4675
4842
|
React__namespace.createElement("div", { className: uuiCore.cx(css$n.stickyHeader, 'uui-dt-sticky_header'), ref: headerRef },
|
|
4676
|
-
React__namespace.createElement(DataTableHeaderRow, { columns: columns, columnGroups: props.columnGroups, onConfigButtonClick: props.showColumnsConfig && onConfigurationButtonClick, selectAll: props.selectAll, size: props.headerSize || settings.dataTable.sizes.header.row, textCase: props.headerTextCase, allowColumnsReordering: props.allowColumnsReordering, allowColumnsResizing: props.allowColumnsResizing, showFoldAll: props.showFoldAll, value: { ...props.value, columnsConfig: config }, onValueChange: props.onValueChange, columnsGap: props.columnsGap }),
|
|
4677
|
-
|
|
4678
|
-
[uuiCore.uuiScrollShadows.topVisible]: params?.scrollShadows?.verticalTop,
|
|
4679
|
-
}) })),
|
|
4680
|
-
props.exactRowsCount !== 0 ? (React__namespace.createElement(DataRowsContainer, { headerRef: headerRef, listContainerRef: params?.listContainerRef, estimatedHeight: params?.estimatedHeight, offsetY: params?.offsetY, scrollShadows: params?.scrollShadows, renderRow: renderRow, rows: rows })) : (renderNoResultsBlock?.()))), [
|
|
4843
|
+
React__namespace.createElement(DataTableHeaderRow, { columns: columns, columnGroups: props.columnGroups, onConfigButtonClick: props.showColumnsConfig && onConfigurationButtonClick, selectAll: props.selectAll, size: props.headerSize || settings.dataTable.sizes.header.row, textCase: props.headerTextCase, allowColumnsReordering: props.allowColumnsReordering, allowColumnsResizing: props.allowColumnsResizing, showFoldAll: props.showFoldAll, value: { ...props.value, columnsConfig: config }, onValueChange: props.onValueChange, columnsGap: props.columnsGap, cx: uuiCore.uuiScrollShadows.top })),
|
|
4844
|
+
props.exactRowsCount !== 0 ? (React__namespace.createElement(DataRowsContainer, { headerRef: headerRef, listContainerRef: params?.listContainerRef, estimatedHeight: params?.estimatedHeight, offsetY: params?.offsetY, renderRow: renderRow, rows: rows })) : (renderNoResultsBlock?.()))), [
|
|
4681
4845
|
props, columns, rows, renderNoResultsBlock, onConfigurationButtonClick,
|
|
4682
4846
|
]);
|
|
4683
4847
|
const classes = uuiCore.cx(css$n.root, props.cx, 'uui-dt-vars', 'uui-data_table');
|
|
@@ -4692,7 +4856,7 @@ function DataTable(props) {
|
|
|
4692
4856
|
: (React__namespace.createElement(VirtualList, { value: props.value, onValueChange: props.onValueChange, onScroll: props.onScroll, rowsCount: props.rowsCount, renderRows: renderTableBody, cx: classes, isLoading: props.isReloading, rowsSelector: "[role=row]", rawProps: rawProps })))));
|
|
4693
4857
|
}
|
|
4694
4858
|
|
|
4695
|
-
var css$m = {"root":"
|
|
4859
|
+
var css$m = {"root":"dP-yyN","title-wrapper":"u-Jp-4","titleWrapper":"u-Jp-4","title":"T9Dy3A","text-wrapper":"LhBHlq","textWrapper":"LhBHlq","selection":"fCdhE4","postfix":"Z63mub","selected":"M5YxAu"};
|
|
4696
4860
|
|
|
4697
4861
|
const FilterPanelItemToggler = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
4698
4862
|
const togglerPickerOpened = (e) => {
|
|
@@ -4773,6 +4937,7 @@ function FilterPickerBody({ highlightSearchMatches = true, ...restProps }) {
|
|
|
4773
4937
|
selectionMode: props.selectionMode,
|
|
4774
4938
|
selection: props.value,
|
|
4775
4939
|
search: dataSourceState.search,
|
|
4940
|
+
disableClear: props.disableClear,
|
|
4776
4941
|
};
|
|
4777
4942
|
return props.renderFooter
|
|
4778
4943
|
? props.renderFooter(footerProps)
|
|
@@ -4916,7 +5081,7 @@ function FilterRangeDatePickerBody(props) {
|
|
|
4916
5081
|
renderFooter()));
|
|
4917
5082
|
}
|
|
4918
5083
|
|
|
4919
|
-
var css$l = {"container":"
|
|
5084
|
+
var css$l = {"container":"EzbFWT"};
|
|
4920
5085
|
|
|
4921
5086
|
function FilterNumericBody(props) {
|
|
4922
5087
|
const isInRangePredicate = props?.selectedPredicate === 'inRange' || props?.selectedPredicate === 'notInRange';
|
|
@@ -5227,7 +5392,7 @@ function FiltersToolbarImpl(props) {
|
|
|
5227
5392
|
}
|
|
5228
5393
|
const FiltersPanel = /* @__PURE__ */React__namespace.default.memo(FiltersToolbarImpl);
|
|
5229
5394
|
|
|
5230
|
-
var css$k = {"delete-button":"
|
|
5395
|
+
var css$k = {"delete-button":"-jDuQP","deleteButton":"-jDuQP","tab-button":"feveqX","tabButton":"feveqX","targetOpen":"-r6PFN"};
|
|
5231
5396
|
|
|
5232
5397
|
function PresetActionsDropdown(props) {
|
|
5233
5398
|
const { uuiNotifications } = uuiCore.useUuiContext();
|
|
@@ -5303,7 +5468,7 @@ const UUI_PRESETS_PANEL_MORE_BUTTON = 'uui-presets-panel-more-button';
|
|
|
5303
5468
|
const UUI_PRESETS_PANEL_INPUT = 'uui-presets-panel-input';
|
|
5304
5469
|
const UUI_PRESETS_PANEL_PRESET = 'uui-presets-panel-preset';
|
|
5305
5470
|
|
|
5306
|
-
var css$j = {"preset-input-cell":"
|
|
5471
|
+
var css$j = {"preset-input-cell":"_3B8qbQ","presetInputCell":"_3B8qbQ","preset-input":"spVgUw","presetInput":"spVgUw"};
|
|
5307
5472
|
|
|
5308
5473
|
function PresetInput(props) {
|
|
5309
5474
|
const [presetCaption, setPresetCaption] = React.useState(props.preset?.name || '');
|
|
@@ -5330,7 +5495,7 @@ function PresetInput(props) {
|
|
|
5330
5495
|
React__namespace.default.createElement(TextInput, { cx: css$j.presetInput, onValueChange: setPresetCaption, value: presetCaption, onCancel: cancelActionHandler, onAccept: acceptActionHandler, onBlur: newPresetOnBlurHandler, autoFocus: true, maxLength: 50, isReadonly: readonly })));
|
|
5331
5496
|
}
|
|
5332
5497
|
|
|
5333
|
-
var css$i = {"preset":"
|
|
5498
|
+
var css$i = {"preset":"w1WNmT","activePreset":"qPfpzE"};
|
|
5334
5499
|
|
|
5335
5500
|
function Preset(props) {
|
|
5336
5501
|
const [isRenamePreset, setIsRenamePreset] = React.useState(false);
|
|
@@ -5355,7 +5520,7 @@ function Preset(props) {
|
|
|
5355
5520
|
return (React__namespace.default.createElement(FlexCell, { key: props.preset.id, alignSelf: "center", width: "auto" }, isRenamePreset ? (React__namespace.default.createElement(PresetInput, { onCancel: cancelRenamePreset, onSuccess: handlePresetRename, preset: props.preset })) : (React__namespace.default.createElement(TabButton, { caption: props.preset.name, onClick: !isPresetActive && choosePresetHandler, cx: [css$i.preset, isPresetActive && css$i.activePreset, UUI_PRESETS_PANEL_PRESET], size: settings.presetsPanel.sizes.tabButton, withNotify: isPresetActive && props.hasPresetChanged(props.preset), icon: PresetActionsDropdownComponent, iconPosition: "right", isActive: isPresetActive }))));
|
|
5356
5521
|
}
|
|
5357
5522
|
|
|
5358
|
-
var css$h = {"divider":"
|
|
5523
|
+
var css$h = {"divider":"Cd-6Gd","dropdownDeleteIcon":"LYMigY","presetsWrapper":"b970nw","addPresetContainer":"vznxrD","dropContainer":"E9KMxm"};
|
|
5359
5524
|
|
|
5360
5525
|
function PresetsPanel(props) {
|
|
5361
5526
|
const [isAddingPreset, setIsAddingPreset] = React.useState(false);
|
|
@@ -5404,9 +5569,9 @@ function PresetsPanel(props) {
|
|
|
5404
5569
|
React__namespace.default.createElement(uuiComponents.AdaptivePanel, { items: getPanelItems() }))));
|
|
5405
5570
|
}
|
|
5406
5571
|
|
|
5407
|
-
var css$g = {"root":"
|
|
5572
|
+
var css$g = {"root":"-Zowr5"};
|
|
5408
5573
|
|
|
5409
|
-
var css$f = {"root":"
|
|
5574
|
+
var css$f = {"root":"eXY3tv","burger-content":"n2eF2e","burgerContent":"n2eF2e"};
|
|
5410
5575
|
|
|
5411
5576
|
var _path$3;
|
|
5412
5577
|
function _extends$3() { return _extends$3 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$3.apply(null, arguments); }
|
|
@@ -5449,7 +5614,7 @@ var SvgNavigationArrowDownOutline = function SvgNavigationArrowDownOutline(props
|
|
|
5449
5614
|
};
|
|
5450
5615
|
var ForwardRef$2 = /*#__PURE__*/React.forwardRef(SvgNavigationArrowDownOutline);
|
|
5451
5616
|
|
|
5452
|
-
var css$e = {"root":"
|
|
5617
|
+
var css$e = {"root":"YNfGRL","button-primary":"_34UpRL","buttonPrimary":"_34UpRL","button-secondary":"j9QX5u","buttonSecondary":"j9QX5u","hasIcon":"r0hAab","dropdown":"hDZv34"};
|
|
5453
5618
|
|
|
5454
5619
|
function applyBurgerButtonMods(props) {
|
|
5455
5620
|
return [
|
|
@@ -5474,13 +5639,13 @@ const BurgerButton = /* @__PURE__ */React__namespace.default.forwardRef((props,
|
|
|
5474
5639
|
}, dropdownIcon: ForwardRef$2 }));
|
|
5475
5640
|
});
|
|
5476
5641
|
|
|
5477
|
-
var css$d = {"search-input":"
|
|
5642
|
+
var css$d = {"search-input":"TKibWd","searchInput":"TKibWd"};
|
|
5478
5643
|
|
|
5479
5644
|
function BurgerSearch(props) {
|
|
5480
5645
|
return (React__namespace.createElement(uuiComponents.TextInput, { cx: cx__default.default(css$d.searchInput, 'uui-main_menu-burger-search'), iconPosition: "left", icon: ForwardRef$M, placeholder: props.placeholder, value: props.value, onValueChange: props.onValueChange, onCancel: props.onCancel, cancelIcon: props.value && ForwardRef$Q }));
|
|
5481
5646
|
}
|
|
5482
5647
|
|
|
5483
|
-
var css$c = {"root":"
|
|
5648
|
+
var css$c = {"root":"-iFT8A","group-header":"YBDc6P","groupHeader":"YBDc6P","group-name":"RALnKy","groupName":"RALnKy","line":"_5kyLC3"};
|
|
5484
5649
|
|
|
5485
5650
|
function BurgerGroupHeader(props) {
|
|
5486
5651
|
return (React__namespace.createElement("div", { className: cx__default.default(css$c.root, css$c.groupHeader, 'uui-burger-group-header') },
|
|
@@ -5488,7 +5653,7 @@ function BurgerGroupHeader(props) {
|
|
|
5488
5653
|
React__namespace.createElement("span", { className: css$c.groupName }, props.caption)));
|
|
5489
5654
|
}
|
|
5490
5655
|
|
|
5491
|
-
var css$b = {"root":"
|
|
5656
|
+
var css$b = {"root":"y98K5L","type-primary":"HOG0rc","typePrimary":"HOG0rc","type-secondary":"EXGQyl","typeSecondary":"EXGQyl"};
|
|
5492
5657
|
|
|
5493
5658
|
const MainMenuButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5494
5659
|
const { type, ...clickableProps } = props;
|
|
@@ -5516,7 +5681,7 @@ const MainMenuButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) =
|
|
|
5516
5681
|
props.isDropdown && (React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$P, flipY: props.isOpen }))));
|
|
5517
5682
|
});
|
|
5518
5683
|
|
|
5519
|
-
var css$a = {"dropdown-body":"
|
|
5684
|
+
var css$a = {"dropdown-body":"Vgu9hK","dropdownBody":"Vgu9hK"};
|
|
5520
5685
|
|
|
5521
5686
|
function MainMenuDropdown(props) {
|
|
5522
5687
|
const handleEscape = (e, onClose, isOpen) => {
|
|
@@ -5559,12 +5724,12 @@ var SvgNavigationGlobalMenuOutlineOutline = function SvgNavigationGlobalMenuOutl
|
|
|
5559
5724
|
};
|
|
5560
5725
|
var ForwardRef$1 = /*#__PURE__*/React.forwardRef(SvgNavigationGlobalMenuOutlineOutline);
|
|
5561
5726
|
|
|
5562
|
-
var css$9 = {"global-menu-btn":"
|
|
5727
|
+
var css$9 = {"global-menu-btn":"xHcAA4","globalMenuBtn":"xHcAA4","global-menu-icon":"ZZ0NV5","globalMenuIcon":"ZZ0NV5"};
|
|
5563
5728
|
|
|
5564
5729
|
const GlobalMenu = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("button", { ref: ref, id: "global_menu_toggle", className: cx__default.default(css$9.globalMenuBtn, props.cx), ...props.rawProps },
|
|
5565
5730
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 36, icon: ForwardRef$1, cx: css$9.globalMenuIcon }))));
|
|
5566
5731
|
|
|
5567
|
-
var css$8 = {"container":"
|
|
5732
|
+
var css$8 = {"container":"rlYaHu","open":"dg1dOo","folding-arrow":"vbDCe1","foldingArrow":"vbDCe1"};
|
|
5568
5733
|
|
|
5569
5734
|
const MainMenuAvatar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("button", { ref: ref, className: cx__default.default(css$8.container, props.isDropdown && css$8.dropdown, props.isOpen && css$8.open, props.onClick && uuiCore.uuiMarkers.clickable, props.cx), onClick: props.onClick, ...props.rawProps },
|
|
5570
5735
|
React__namespace.createElement(uuiComponents.Avatar, { size: "36", img: props.avatarUrl }),
|
|
@@ -5572,15 +5737,15 @@ const MainMenuAvatar = /* @__PURE__ */React__namespace.forwardRef((props, ref) =
|
|
|
5572
5737
|
props.isDropdown && (React__namespace.createElement("div", null,
|
|
5573
5738
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, icon: ForwardRef$P, flipY: props.isOpen, cx: css$8.foldingArrow }))))));
|
|
5574
5739
|
|
|
5575
|
-
var css$7 = {"search-input":"
|
|
5740
|
+
var css$7 = {"search-input":"aRXFjU","searchInput":"aRXFjU"};
|
|
5576
5741
|
|
|
5577
5742
|
const MainMenuSearch = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement(uuiCore.IEditableDebouncer, { ...props, render: (iEditable) => (React__namespace.createElement(uuiComponents.TextInput, { iconPosition: "left", icon: ForwardRef$M, cancelIcon: props.value?.length > 0 && ForwardRef$Q, ...props, ...iEditable, ref: ref, cx: uuiCore.cx(css$7.searchInput, props.cx), ...props.rawProps })) })));
|
|
5578
5743
|
|
|
5579
|
-
var css$6 = {"container":"
|
|
5744
|
+
var css$6 = {"container":"hyXzI4"};
|
|
5580
5745
|
|
|
5581
5746
|
const MainMenuIcon = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement(IconButton, { ref: ref, icon: props.icon, cx: uuiCore.cx(props.cx, css$6.container), ...props })));
|
|
5582
5747
|
|
|
5583
|
-
var css$5 = {"root":"
|
|
5748
|
+
var css$5 = {"root":"CJivvI"};
|
|
5584
5749
|
|
|
5585
5750
|
const Anchor = /* @__PURE__ */uuiCore.withMods(uuiComponents.Anchor, () => [css$5.root]);
|
|
5586
5751
|
|
|
@@ -5638,7 +5803,7 @@ var SvgFileCloudUploadFill = function SvgFileCloudUploadFill(props, ref) {
|
|
|
5638
5803
|
};
|
|
5639
5804
|
var ForwardRef = /*#__PURE__*/React.forwardRef(SvgFileCloudUploadFill);
|
|
5640
5805
|
|
|
5641
|
-
var css$4 = {"root":"
|
|
5806
|
+
var css$4 = {"root":"_2a6aC-","drop-start":"B2U0ud","dropStart":"B2U0ud","drop-over":"V-EAy5","dropOver":"V-EAy5","link":"_3dIe-E","drop-area":"rdRoFt","dropArea":"rdRoFt","drop-caption":"APzu6R","dropCaption":"APzu6R","icon-blue":"CBwhKR","iconBlue":"CBwhKR"};
|
|
5642
5807
|
|
|
5643
5808
|
function DropSpot(props) {
|
|
5644
5809
|
const getInfoText = typeof props.infoText === 'string'
|
|
@@ -5656,7 +5821,7 @@ function DropSpot(props) {
|
|
|
5656
5821
|
return React__namespace.createElement(uuiComponents.DropSpot, { render: renderAttachmentArea, onFilesDropped: props.onUploadFiles });
|
|
5657
5822
|
}
|
|
5658
5823
|
|
|
5659
|
-
var css$3 = {"root":"
|
|
5824
|
+
var css$3 = {"root":"aZa3pC"};
|
|
5660
5825
|
|
|
5661
5826
|
const SvgCircleProgress = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5662
5827
|
const outsetRadius = props.size / 2 - 1;
|
|
@@ -5667,7 +5832,7 @@ const SvgCircleProgress = /* @__PURE__ */React__namespace.forwardRef((props, ref
|
|
|
5667
5832
|
React__namespace.createElement("circle", { strokeWidth: 1, fill: "transparent", r: outsetRadius, cx: props.size / 2, cy: props.size / 2 })));
|
|
5668
5833
|
});
|
|
5669
5834
|
|
|
5670
|
-
var css$2 = {"root":"
|
|
5835
|
+
var css$2 = {"root":"l-KkEK","file-name":"T-lQVT","fileName":"T-lQVT","default-color":"SLuifX","defaultColor":"SLuifX","doc-color":"eC7cqO","docColor":"eC7cqO","xls-color":"iqyqLf","xlsColor":"iqyqLf","pdf-color":"ECFGME","pdfColor":"ECFGME","movie-color":"Gr8Cjs","movieColor":"Gr8Cjs","img-color":"_0L4iqL","imgColor":"_0L4iqL","mov-color":"GQ-0pz","movColor":"GQ-0pz","error-block":"_0P3G9Z","errorBlock":"_0P3G9Z","icons-block":"rhmwad","iconsBlock":"rhmwad"};
|
|
5671
5836
|
|
|
5672
5837
|
const FileCard = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5673
5838
|
const [isLoadingShow, setIsLoadingShow] = React__namespace.useState(true);
|
|
@@ -5722,7 +5887,7 @@ const FileCard = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
5722
5887
|
setIsLoadingShow(() => false);
|
|
5723
5888
|
};
|
|
5724
5889
|
const renderErrorContent = () => (React__namespace.createElement(Tooltip, { content: file.error.message, placement: "bottom-start" },
|
|
5725
|
-
React__namespace.createElement("div", { className: css$2.errorBlock },
|
|
5890
|
+
React__namespace.createElement("div", { className: css$2.errorBlock, "aria-description": file.error.message, "aria-label": "File Upload Error" },
|
|
5726
5891
|
React__namespace.createElement(uuiComponents.IconContainer, { icon: settings.fileCard.icons.errorIcon, size: 12 }),
|
|
5727
5892
|
i18n.fileCard.failedUploadErrorMessage)));
|
|
5728
5893
|
const renderSuccessfulContent = () => (React__namespace.createElement(Text, { size: "none", fontSize: "14", lineHeight: "18", color: "tertiary" },
|
|
@@ -5786,7 +5951,7 @@ const getErrorPageConfig = () => ({
|
|
|
5786
5951
|
},
|
|
5787
5952
|
});
|
|
5788
5953
|
|
|
5789
|
-
var css$1 = {"container":"
|
|
5954
|
+
var css$1 = {"container":"_1izzyN"};
|
|
5790
5955
|
|
|
5791
5956
|
const ErrorPage = (props) => {
|
|
5792
5957
|
const isMobileScreen = uuiCore.isMobile();
|
|
@@ -5798,7 +5963,7 @@ const ErrorPage = (props) => {
|
|
|
5798
5963
|
props?.supportLink && React__namespace.default.createElement("div", { className: "uui-error-support-link" }, props?.supportLink))));
|
|
5799
5964
|
};
|
|
5800
5965
|
|
|
5801
|
-
var css = {"recovery-spinner":"
|
|
5966
|
+
var css = {"recovery-spinner":"-KL8no","recoverySpinner":"-KL8no","recovery-message":"ApZ9Nl","recoveryMessage":"ApZ9Nl","modal-blocker":"DRshx5","modalBlocker":"DRshx5","modalFadeIn":"EWPamP"};
|
|
5802
5967
|
|
|
5803
5968
|
function ErrorHandler(props) {
|
|
5804
5969
|
const { uuiNotifications, uuiModals, uuiApi } = uuiCore.useUuiContext();
|
|
@@ -5982,6 +6147,7 @@ exports.SuccessNotification = SuccessNotification;
|
|
|
5982
6147
|
exports.SvgCircleProgress = SvgCircleProgress;
|
|
5983
6148
|
exports.Switch = Switch;
|
|
5984
6149
|
exports.TabButton = TabButton;
|
|
6150
|
+
exports.Tabs = Tabs;
|
|
5985
6151
|
exports.Tag = Tag;
|
|
5986
6152
|
exports.Text = Text;
|
|
5987
6153
|
exports.TextArea = TextArea;
|