@epam/uui 6.3.2 → 6.4.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/components/datePickers/DatePicker.d.ts.map +1 -1
- package/components/datePickers/DatePickerBody.d.ts +5 -0
- package/components/datePickers/DatePickerBody.d.ts.map +1 -1
- package/components/datePickers/RangeDatePicker.d.ts.map +1 -1
- package/components/datePickers/RangeDatePickerBody.d.ts +1 -1
- package/components/datePickers/RangeDatePickerBody.d.ts.map +1 -1
- package/components/datePickers/RangeDatePickerInput.d.ts.map +1 -1
- package/components/datePickers/helpers.d.ts +2 -1
- package/components/datePickers/helpers.d.ts.map +1 -1
- package/components/filters/FilterPickerBody.d.ts.map +1 -1
- package/components/inputs/timePicker/TimePicker.d.ts.map +1 -1
- package/components/layout/LabeledInput.d.ts.map +1 -1
- package/components/navigation/Anchor.d.ts +3 -1
- package/components/navigation/Anchor.d.ts.map +1 -1
- package/components/navigation/MainMenu/Burger/BurgerButton.d.ts +3 -1
- package/components/navigation/MainMenu/Burger/BurgerButton.d.ts.map +1 -1
- package/components/navigation/MainMenu/MainMenuDropdown.d.ts.map +1 -1
- package/components/navigation/MainMenu/MainMenuIcon.d.ts +3 -1
- package/components/navigation/MainMenu/MainMenuIcon.d.ts.map +1 -1
- package/components/pickers/DataPickerBody.d.ts +6 -1
- package/components/pickers/DataPickerBody.d.ts.map +1 -1
- package/components/pickers/DataPickerRow.d.ts.map +1 -1
- package/components/pickers/PickerBodyMobileView.d.ts +2 -1
- package/components/pickers/PickerBodyMobileView.d.ts.map +1 -1
- package/components/pickers/PickerInput.d.ts +2 -2
- package/components/pickers/PickerInput.d.ts.map +1 -1
- package/components/pickers/PickerModal.d.ts.map +1 -1
- package/components/tables/DataTableHeaderCell.d.ts +1 -1
- package/components/tables/DataTableHeaderCell.d.ts.map +1 -1
- package/components/tables/DataTableHeaderRow.d.ts.map +1 -1
- package/components/widgets/DataRowAddons.d.ts.map +1 -1
- package/components/widgets/Paginator.d.ts.map +1 -1
- package/components/widgets/Tag.d.ts.map +1 -1
- package/index.esm.js +326 -192
- package/index.esm.js.map +1 -1
- package/index.js +324 -190
- package/index.js.map +1 -1
- package/package.json +5 -5
- package/stats.html +1 -19
- package/styles.css +1796 -1098
- package/styles.css.map +1 -1
package/index.js
CHANGED
|
@@ -14,8 +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
17
|
var isEqual = require('react-fast-compare');
|
|
18
|
+
var overlayscrollbarsReact = require('overlayscrollbars-react');
|
|
19
19
|
var FocusLock = require('react-focus-lock');
|
|
20
20
|
|
|
21
21
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -190,7 +190,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
190
190
|
xmlns: "http://www.w3.org/2000/svg",
|
|
191
191
|
ref: ref
|
|
192
192
|
}, props), /*#__PURE__*/React__namespace.createElement("g", {
|
|
193
|
-
clipPath: "url(#
|
|
193
|
+
clipPath: "url(#790hffa01mx0vyggb_a)"
|
|
194
194
|
}, _path$I || (_path$I = /*#__PURE__*/React__namespace.createElement("path", {
|
|
195
195
|
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",
|
|
196
196
|
fill: "#F5F6FA"
|
|
@@ -211,7 +211,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
211
211
|
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",
|
|
212
212
|
fill: "#1D1E26"
|
|
213
213
|
})), /*#__PURE__*/React__namespace.createElement("mask", {
|
|
214
|
-
id: "
|
|
214
|
+
id: "790hffb0gk95p6g05_b",
|
|
215
215
|
style: {
|
|
216
216
|
maskType: "alpha"
|
|
217
217
|
},
|
|
@@ -224,7 +224,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
224
224
|
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",
|
|
225
225
|
fill: "#9BDEFF"
|
|
226
226
|
}))), _g || (_g = /*#__PURE__*/React__namespace.createElement("g", {
|
|
227
|
-
mask: "url(#
|
|
227
|
+
mask: "url(#790hffb0gk95p6g05_b)",
|
|
228
228
|
fillRule: "evenodd",
|
|
229
229
|
clipRule: "evenodd"
|
|
230
230
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -310,7 +310,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
310
310
|
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",
|
|
311
311
|
fill: "#fff"
|
|
312
312
|
}))), _defs || (_defs = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
313
|
-
id: "
|
|
313
|
+
id: "790hffa01mx0vyggb_a"
|
|
314
314
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
315
315
|
fill: "#fff",
|
|
316
316
|
transform: "translate(.552)",
|
|
@@ -961,14 +961,14 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
|
961
961
|
};
|
|
962
962
|
var ForwardRef$4 = /*#__PURE__*/React.forwardRef(SvgSearchWithBackground);
|
|
963
963
|
|
|
964
|
-
var css$1w = {"root":"
|
|
964
|
+
var css$1w = {"root":"bEz5fb","uui-spinner":"Wl7p2-","uuiSpinner":"Wl7p2-"};
|
|
965
965
|
|
|
966
966
|
function applySpinnerMods() {
|
|
967
967
|
return [css$1w.root, 'uui-spinner'];
|
|
968
968
|
}
|
|
969
969
|
const Spinner = /* @__PURE__ */uuiCore.withMods(uuiComponents.Spinner, applySpinnerMods);
|
|
970
970
|
|
|
971
|
-
var css$1v = {"root":"
|
|
971
|
+
var css$1v = {"root":"-uQdeS","loading-word":"rRUz6U","loadingWord":"rRUz6U","animated-loading":"LMeA8O","animatedLoading":"LMeA8O","skeleton_loading":"SydgTz","skeletonLoading":"SydgTz"};
|
|
972
972
|
|
|
973
973
|
const TextPlaceholder = (props) => {
|
|
974
974
|
const pattern = ' ';
|
|
@@ -985,7 +985,7 @@ const TextPlaceholder = (props) => {
|
|
|
985
985
|
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
986
986
|
};
|
|
987
987
|
|
|
988
|
-
var css$1u = {"root":"
|
|
988
|
+
var css$1u = {"root":"L47xZm","line-height":"O1zr-h","lineHeight":"O1zr-h","font-size":"_8psQnn","fontSize":"_8psQnn"};
|
|
989
989
|
|
|
990
990
|
function applyTextMods(mods) {
|
|
991
991
|
return [
|
|
@@ -1012,7 +1012,7 @@ const Text = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Text, appl
|
|
|
1012
1012
|
};
|
|
1013
1013
|
});
|
|
1014
1014
|
|
|
1015
|
-
var css$1t = {"root":"
|
|
1015
|
+
var css$1t = {"root":"viH-21"};
|
|
1016
1016
|
|
|
1017
1017
|
const Blocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.Blocker, () => [css$1t.root], () => ({ renderSpinner: settings.blocker.renderSpinner }));
|
|
1018
1018
|
|
|
@@ -1517,7 +1517,7 @@ const settings = {
|
|
|
1517
1517
|
textInput: textInputSettings,
|
|
1518
1518
|
};
|
|
1519
1519
|
|
|
1520
|
-
var css$1s = {"root":"
|
|
1520
|
+
var css$1s = {"root":"C3zmGr"};
|
|
1521
1521
|
|
|
1522
1522
|
function applyButtonMods(mods) {
|
|
1523
1523
|
return [
|
|
@@ -1535,7 +1535,7 @@ const Button = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Button,
|
|
|
1535
1535
|
};
|
|
1536
1536
|
});
|
|
1537
1537
|
|
|
1538
|
-
var css$1r = {"root":"
|
|
1538
|
+
var css$1r = {"root":"TMcx7u"};
|
|
1539
1539
|
|
|
1540
1540
|
function applyIconButtonMods(props) {
|
|
1541
1541
|
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$1r.root];
|
|
@@ -1572,7 +1572,7 @@ function getIconClass(props) {
|
|
|
1572
1572
|
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'];
|
|
1573
1573
|
}
|
|
1574
1574
|
|
|
1575
|
-
var css$1q = {"root":"
|
|
1575
|
+
var css$1q = {"root":"ASLyUA"};
|
|
1576
1576
|
|
|
1577
1577
|
const DEFAULT_COLOR = 'primary';
|
|
1578
1578
|
const LinkButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
@@ -1602,7 +1602,7 @@ const LinkButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
1602
1602
|
props.isDropdown && (React__namespace.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
1603
1603
|
});
|
|
1604
1604
|
|
|
1605
|
-
var css$1p = {"root":"
|
|
1605
|
+
var css$1p = {"root":"aKtP8i"};
|
|
1606
1606
|
|
|
1607
1607
|
const CountIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1608
1608
|
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
@@ -1614,7 +1614,7 @@ const CountIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1614
1614
|
]) }, props.caption));
|
|
1615
1615
|
});
|
|
1616
1616
|
|
|
1617
|
-
var css$1o = {"root":"
|
|
1617
|
+
var css$1o = {"root":"ykvezi","withNotify":"c8Tede"};
|
|
1618
1618
|
|
|
1619
1619
|
const TabButton = /* @__PURE__ */React__namespace.default.forwardRef((props, refExternal) => {
|
|
1620
1620
|
const refLocal = React__namespace.default.useRef(null);
|
|
@@ -1661,13 +1661,13 @@ const TabButton = /* @__PURE__ */React__namespace.default.forwardRef((props, ref
|
|
|
1661
1661
|
props.onClear && !props.isDisabled && (React__namespace.default.createElement(uuiComponents.IconContainer, { cx: uuiCore.uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
1662
1662
|
});
|
|
1663
1663
|
|
|
1664
|
-
var css$1n = {"root":"
|
|
1664
|
+
var css$1n = {"root":"YOg-TX","noLeftPadding":"_3r1Et-","foldingArea":"_3p80ni","onlyFoldable":"bFtqXf","captionWrapper":"ejPkcT","withNotify":"p3cpn4"};
|
|
1665
1665
|
|
|
1666
|
-
var css$1m = {"root":"
|
|
1666
|
+
var css$1m = {"root":"V2PJ62"};
|
|
1667
1667
|
|
|
1668
1668
|
const AvatarStack = /* @__PURE__ */uuiCore.withMods(uuiComponents.AvatarStack, () => [css$1m.root]);
|
|
1669
1669
|
|
|
1670
|
-
var css$1l = {"root":"
|
|
1670
|
+
var css$1l = {"root":"mnNu-T"};
|
|
1671
1671
|
|
|
1672
1672
|
const DEFAULT_FILL = 'solid';
|
|
1673
1673
|
function applyBadgeMods(mods) {
|
|
@@ -1695,7 +1695,7 @@ const Badge = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) =>
|
|
|
1695
1695
|
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
1696
1696
|
});
|
|
1697
1697
|
|
|
1698
|
-
var css$1k = {"root":"
|
|
1698
|
+
var css$1k = {"root":"Mjetxg"};
|
|
1699
1699
|
|
|
1700
1700
|
function applyTagMods(props) {
|
|
1701
1701
|
return [
|
|
@@ -1710,44 +1710,58 @@ const Tag = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
|
1710
1710
|
const styles = [applyTagMods(props), props.cx];
|
|
1711
1711
|
const ClearIcon = props.clearIcon ? props.clearIcon : settings.tag.icons.clearIcon;
|
|
1712
1712
|
const DropdownIcon = props.dropdownIcon ? props.dropdownIcon : settings.tag.icons.dropdownIcon;
|
|
1713
|
+
const icon = (React__namespace.default.createElement(uuiComponents.ControlIcon, { icon: props.icon, onClick: props.onIconClick, isDisabled: props.isDisabled, rawProps: {
|
|
1714
|
+
'aria-label': 'Icon in input',
|
|
1715
|
+
} }));
|
|
1713
1716
|
return (React__namespace.default.createElement(uuiComponents.Clickable, { ...props, rawProps: {
|
|
1714
1717
|
'aria-haspopup': props.isDropdown,
|
|
1715
1718
|
'aria-expanded': props.isOpen,
|
|
1716
1719
|
...props.rawProps,
|
|
1717
1720
|
}, cx: styles, ref: ref },
|
|
1718
|
-
props.
|
|
1721
|
+
props.iconPosition !== 'right' && icon,
|
|
1719
1722
|
props.caption && (React__namespace.default.createElement("div", { className: uuiCore.uuiElement.caption }, props.caption)),
|
|
1720
1723
|
props.count !== undefined && props.count !== null && (React__namespace.default.createElement(CountIndicator, { color: (!props.color || props.color === 'neutral') ? 'white' : props.color, size: settings.tag.sizes.countIndicatorMap[(props.size || settings.tag.sizes.default)], caption: props.count })),
|
|
1721
|
-
props.
|
|
1722
|
-
props.isDropdown && (React__namespace.default.createElement(uuiComponents.
|
|
1723
|
-
props.onClear && !props.isDisabled && (React__namespace.default.createElement(uuiComponents.
|
|
1724
|
+
props.iconPosition === 'right' && icon,
|
|
1725
|
+
props.isDropdown && (React__namespace.default.createElement(uuiComponents.ControlIcon, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
1726
|
+
props.onClear && !props.isDisabled && (React__namespace.default.createElement(uuiComponents.ControlIcon, { cx: "uui-icon-cancel", icon: ClearIcon, onClick: props.onClear, rawProps: {
|
|
1727
|
+
'aria-label': 'Remove tag',
|
|
1728
|
+
} }))));
|
|
1724
1729
|
});
|
|
1725
1730
|
|
|
1726
|
-
var css$1j = {"root":"
|
|
1731
|
+
var css$1j = {"root":"-vpinZ","page":"o-w7Je","spacer":"Ygo3I4","mode-ghost":"HwVqRi","modeGhost":"HwVqRi"};
|
|
1727
1732
|
|
|
1728
1733
|
function Paginator(props) {
|
|
1729
|
-
const renderPaginator = (params) => (React__namespace.default.createElement("nav", { role: "navigation", className: cx__default.default(
|
|
1730
|
-
React__namespace.default.createElement(
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1734
|
+
const renderPaginator = (params) => (React__namespace.default.createElement("nav", { role: "navigation", className: cx__default.default('uui-paginator', `uui-size-${props.size || settings.paginator.sizes.default}`), ...params.rawProps },
|
|
1735
|
+
React__namespace.default.createElement("ul", { className: css$1j.root },
|
|
1736
|
+
React__namespace.default.createElement("li", null,
|
|
1737
|
+
React__namespace.default.createElement(Button, { size: props.size || settings.paginator.sizes.default, icon: settings.paginator.icons.leftArrowIcon, onClick: params.goToPrev, isDisabled: params.isFirst || props.isDisabled, fill: "outline", color: "secondary", rawProps: {
|
|
1738
|
+
'aria-label': 'Previous page',
|
|
1739
|
+
} })),
|
|
1740
|
+
params.pages.map((page, index) => {
|
|
1741
|
+
if (page.type === 'spacer') {
|
|
1742
|
+
return (React__namespace.default.createElement("li", { key: `${index}_spacer` },
|
|
1743
|
+
React__namespace.default.createElement(Button, { cx: cx__default.default(css$1j.spacer, css$1j.page), size: props.size || settings.paginator.sizes.default, caption: "...", fill: "ghost", color: "secondary", tabIndex: -1, isDisabled: props.isDisabled })));
|
|
1744
|
+
}
|
|
1745
|
+
else {
|
|
1746
|
+
return (React__namespace.default.createElement("li", { key: page.pageNumber },
|
|
1747
|
+
React__namespace.default.createElement(Button, { cx: cx__default.default(css$1j[`mode-${!page.isActive && 'ghost'}`], css$1j.page), size: props.size || settings.paginator.sizes.default, caption: page.pageNumber, onClick: () => page.onClick?.(), rawProps: { 'aria-current': page.isActive }, fill: (page.isActive && 'outline') || 'ghost', color: "primary", isDisabled: props.isDisabled })));
|
|
1748
|
+
}
|
|
1749
|
+
}),
|
|
1750
|
+
React__namespace.default.createElement("li", null,
|
|
1751
|
+
React__namespace.default.createElement(Button, { size: props.size || settings.paginator.sizes.default, icon: settings.paginator.icons.rightArrowIcon, onClick: params.goToNext, isDisabled: params.isLast || props.isDisabled, fill: "outline", color: "secondary", rawProps: {
|
|
1752
|
+
'aria-label': 'Next page',
|
|
1753
|
+
} })))));
|
|
1740
1754
|
return React__namespace.default.createElement(uuiComponents.Paginator, { ...props, render: renderPaginator });
|
|
1741
1755
|
}
|
|
1742
1756
|
|
|
1743
|
-
var css$1i = {"root":"
|
|
1757
|
+
var css$1i = {"root":"lpQGb8","progress-bar":"kHMnWm","progressBar":"kHMnWm","progressBar-indeterminate":"K5zhsI","progressBarIndeterminate":"K5zhsI","size-12":"DTvp79","size12":"DTvp79","size-18":"_4pjzqt","size18":"_4pjzqt","size-24":"jC7Acx","size24":"jC7Acx"};
|
|
1744
1758
|
|
|
1745
1759
|
const IndeterminateBar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
1746
1760
|
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}`]) },
|
|
1747
1761
|
React__namespace.createElement("div", { className: cx__default.default(css$1i.progressBar) })));
|
|
1748
1762
|
});
|
|
1749
1763
|
|
|
1750
|
-
var css$1h = {"root":"
|
|
1764
|
+
var css$1h = {"root":"_2iI23M","striped":"uV9JJi","animate-stripes":"hExMvK","animateStripes":"hExMvK","size-12":"_2hpJSw","size12":"_2hpJSw","size-18":"FGR7MH","size18":"FGR7MH","size-24":"l5FX4c","size24":"l5FX4c"};
|
|
1751
1765
|
|
|
1752
1766
|
const DEFAULT_SIZE = '12';
|
|
1753
1767
|
function applyProgressBarMods(mods) {
|
|
@@ -1762,14 +1776,14 @@ const ProgressBar = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Pro
|
|
|
1762
1776
|
hideLabel: props.hideLabel || props.striped,
|
|
1763
1777
|
}));
|
|
1764
1778
|
|
|
1765
|
-
var css$1g = {"root":"
|
|
1779
|
+
var css$1g = {"root":"_6erezJ"};
|
|
1766
1780
|
|
|
1767
1781
|
const IndicatorBar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
1768
1782
|
const { progress } = props;
|
|
1769
1783
|
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) }));
|
|
1770
1784
|
});
|
|
1771
1785
|
|
|
1772
|
-
var css$1f = {"root":"
|
|
1786
|
+
var css$1f = {"root":"Hb7eZm"};
|
|
1773
1787
|
|
|
1774
1788
|
const StatusIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1775
1789
|
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
@@ -1784,7 +1798,7 @@ const StatusIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1784
1798
|
React__namespace.default.createElement("p", { className: "uui-status_indicator-caption" }, props.caption)));
|
|
1785
1799
|
});
|
|
1786
1800
|
|
|
1787
|
-
var css$1e = {"root":"
|
|
1801
|
+
var css$1e = {"root":"_4KYo5h"};
|
|
1788
1802
|
|
|
1789
1803
|
function applyCheckboxMods(mods) {
|
|
1790
1804
|
return [
|
|
@@ -1802,7 +1816,7 @@ const applyUUICheckboxProps = (props) => {
|
|
|
1802
1816
|
};
|
|
1803
1817
|
const Checkbox = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Checkbox, applyCheckboxMods, applyUUICheckboxProps);
|
|
1804
1818
|
|
|
1805
|
-
var css$1d = {"root":"
|
|
1819
|
+
var css$1d = {"root":"_-7C2gw"};
|
|
1806
1820
|
|
|
1807
1821
|
function applyRadioInputMods(mods) {
|
|
1808
1822
|
return [
|
|
@@ -1814,7 +1828,7 @@ function applyRadioInputMods(mods) {
|
|
|
1814
1828
|
}
|
|
1815
1829
|
const RadioInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.RadioInput, applyRadioInputMods, (props) => ({ icon: props.icon ? props.icon : settings.radioInput.icons.dotIcon }));
|
|
1816
1830
|
|
|
1817
|
-
var css$1c = {"root":"
|
|
1831
|
+
var css$1c = {"root":"mDpAAT"};
|
|
1818
1832
|
|
|
1819
1833
|
function applySwitchMods(mods) {
|
|
1820
1834
|
return [
|
|
@@ -1838,7 +1852,7 @@ var EditMode;
|
|
|
1838
1852
|
EditMode["INLINE"] = "inline";
|
|
1839
1853
|
})(EditMode || (EditMode = {}));
|
|
1840
1854
|
|
|
1841
|
-
var textInputCss = {"root":"
|
|
1855
|
+
var textInputCss = {"root":"t7Jexk"};
|
|
1842
1856
|
|
|
1843
1857
|
const DEFAULT_MODE$3 = EditMode.FORM;
|
|
1844
1858
|
function applyTextInputMods(mods) {
|
|
@@ -1863,7 +1877,7 @@ const SearchInput = /* @__PURE__ */React__namespace.default.forwardRef((props, r
|
|
|
1863
1877
|
} }));
|
|
1864
1878
|
});
|
|
1865
1879
|
|
|
1866
|
-
var css$1b = {"root":"
|
|
1880
|
+
var css$1b = {"root":"W4NDrH"};
|
|
1867
1881
|
|
|
1868
1882
|
const ControlGroup = /* @__PURE__ */uuiCore.withMods(uuiComponents.ControlGroup, () => [css$1b.root, 'uui-control-group']);
|
|
1869
1883
|
|
|
@@ -1879,7 +1893,7 @@ function MultiSwitchComponent(props, ref) {
|
|
|
1879
1893
|
}
|
|
1880
1894
|
const MultiSwitch = /* @__PURE__ */React__namespace.forwardRef(MultiSwitchComponent);
|
|
1881
1895
|
|
|
1882
|
-
var css$1a = {"root":"
|
|
1896
|
+
var css$1a = {"root":"_4dqBf3"};
|
|
1883
1897
|
|
|
1884
1898
|
const DEFAULT_MODE$2 = EditMode.FORM;
|
|
1885
1899
|
function applyNumericInputMods(mods) {
|
|
@@ -1899,7 +1913,7 @@ const NumericInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.NumericInput,
|
|
|
1899
1913
|
};
|
|
1900
1914
|
});
|
|
1901
1915
|
|
|
1902
|
-
var css$19 = {"root":"
|
|
1916
|
+
var css$19 = {"root":"BNWkCm"};
|
|
1903
1917
|
|
|
1904
1918
|
const DEFAULT_MODE$1 = EditMode.FORM;
|
|
1905
1919
|
function applyTextAreaMods(mods) {
|
|
@@ -1940,7 +1954,7 @@ function TREE_SHAKEABLE_INIT$1() {
|
|
|
1940
1954
|
};
|
|
1941
1955
|
}
|
|
1942
1956
|
|
|
1943
|
-
var css$18 = {"root":"
|
|
1957
|
+
var css$18 = {"root":"JPwLks"};
|
|
1944
1958
|
|
|
1945
1959
|
function applyDropdownContainerMods(mods) {
|
|
1946
1960
|
return [
|
|
@@ -1951,7 +1965,7 @@ function applyDropdownContainerMods(mods) {
|
|
|
1951
1965
|
}
|
|
1952
1966
|
const DropdownContainer = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.DropdownContainer, applyDropdownContainerMods);
|
|
1953
1967
|
|
|
1954
|
-
var css$17 = {"root":"
|
|
1968
|
+
var css$17 = {"root":"v1laBj","timepicker-input":"_6RNYsC","timepickerInput":"_6RNYsC","ltr-always":"iNxk49","ltrAlways":"iNxk49"};
|
|
1955
1969
|
|
|
1956
1970
|
const uuiTimePicker = {
|
|
1957
1971
|
container: 'uui-timepicker-container',
|
|
@@ -2057,7 +2071,7 @@ const formatTime = (hours, minutes, meridian, format) => {
|
|
|
2057
2071
|
|
|
2058
2072
|
const DEFAULT_MODE = EditMode.FORM;
|
|
2059
2073
|
const valueToTimeString = (value, format) => {
|
|
2060
|
-
if (value === null)
|
|
2074
|
+
if (value === null || (value?.hours === null && value?.minutes === null))
|
|
2061
2075
|
return null;
|
|
2062
2076
|
return uuiDayjs.dayjs()
|
|
2063
2077
|
.set(value)
|
|
@@ -2069,6 +2083,7 @@ function TimePickerComponent(props, ref) {
|
|
|
2069
2083
|
value: valueToTimeString(props.value, props.format),
|
|
2070
2084
|
inputValue: valueToTimeString(props.value, props.format),
|
|
2071
2085
|
});
|
|
2086
|
+
const targetRef = React__namespace.default.useRef(null);
|
|
2072
2087
|
React.useEffect(() => {
|
|
2073
2088
|
if (valueToTimeString(props.value, props.format) !== state.value) {
|
|
2074
2089
|
const stringValue = valueToTimeString(props.value, props.format);
|
|
@@ -2090,13 +2105,17 @@ function TimePickerComponent(props, ref) {
|
|
|
2090
2105
|
};
|
|
2091
2106
|
const onClear = () => {
|
|
2092
2107
|
props.onValueChange(null);
|
|
2108
|
+
setState((prevState) => ({ ...prevState, value: null, inputValue: null }));
|
|
2093
2109
|
};
|
|
2094
2110
|
const onToggle = (value) => {
|
|
2095
2111
|
setState((prevState) => ({ ...prevState, isOpen: value }));
|
|
2096
2112
|
};
|
|
2097
2113
|
const saveTime = (newTime) => {
|
|
2098
2114
|
setState((prevState) => ({ ...prevState, inputValue: newTime }));
|
|
2099
|
-
|
|
2115
|
+
const newValue = formatStringTimeToObject(newTime);
|
|
2116
|
+
if (!isEqual__default.default(props.value, newValue)) {
|
|
2117
|
+
props.onValueChange(formatStringTimeToObject(newTime));
|
|
2118
|
+
}
|
|
2100
2119
|
};
|
|
2101
2120
|
const getTimeFromInputValue = (newValue) => {
|
|
2102
2121
|
const trimmedNewValue = newValue.trimStart();
|
|
@@ -2110,7 +2129,6 @@ function TimePickerComponent(props, ref) {
|
|
|
2110
2129
|
saveTime(inputValue);
|
|
2111
2130
|
};
|
|
2112
2131
|
const handleFocus = (e) => {
|
|
2113
|
-
onToggle(true);
|
|
2114
2132
|
props.onFocus?.(e);
|
|
2115
2133
|
};
|
|
2116
2134
|
const handleInputChange = (newValue) => {
|
|
@@ -2123,29 +2141,46 @@ function TimePickerComponent(props, ref) {
|
|
|
2123
2141
|
}
|
|
2124
2142
|
};
|
|
2125
2143
|
const handleBlur = (e) => {
|
|
2126
|
-
if (uuiCore.isFocusReceiverInsideFocusLock(e))
|
|
2127
|
-
return;
|
|
2128
|
-
onToggle(false);
|
|
2129
2144
|
props.onBlur?.(e);
|
|
2130
2145
|
if (state.value === '' || state.inputValue === '') {
|
|
2131
2146
|
props.onValueChange(null);
|
|
2132
2147
|
setState((prevState) => ({ ...prevState, value: null, inputValue: null }));
|
|
2133
2148
|
}
|
|
2134
|
-
|
|
2149
|
+
else {
|
|
2150
|
+
saveTime(state.value);
|
|
2151
|
+
}
|
|
2152
|
+
};
|
|
2153
|
+
const onKeyDown = (e) => {
|
|
2154
|
+
if (e.key === 'Enter') {
|
|
2155
|
+
onToggle(true);
|
|
2156
|
+
}
|
|
2157
|
+
if (e.key === 'Escape' && state.isOpen) {
|
|
2158
|
+
e.preventDefault();
|
|
2159
|
+
e.stopPropagation();
|
|
2160
|
+
onToggle(false);
|
|
2161
|
+
}
|
|
2135
2162
|
};
|
|
2136
2163
|
const renderInput = (inputProps) => {
|
|
2137
|
-
return (React__namespace.default.createElement(TextInput, { ...inputProps,
|
|
2164
|
+
return (React__namespace.default.createElement(TextInput, { ...inputProps, size: props.size, isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, cx: [css$17.root, css$17.timepickerInput, props.inputCx], value: state.inputValue, onValueChange: handleInputChange, onCancel: !props.disableClear && onClear, onKeyDown: onKeyDown, onFocus: handleFocus, onBlur: handleBlur, isDropdown: false, placeholder: props.placeholder ? props.placeholder : getFormat(), mode: props.mode || DEFAULT_MODE, rawProps: props.rawProps?.input, ref: (node) => {
|
|
2165
|
+
targetRef.current = node;
|
|
2166
|
+
if (typeof inputProps.ref === 'function') {
|
|
2167
|
+
inputProps.ref(node);
|
|
2168
|
+
}
|
|
2169
|
+
else if (inputProps.ref && 'current' in inputProps.ref) {
|
|
2170
|
+
inputProps.ref.current = node;
|
|
2171
|
+
}
|
|
2172
|
+
} }));
|
|
2138
2173
|
};
|
|
2139
2174
|
const renderBody = (bodyProps) => {
|
|
2140
2175
|
const { forwardedRef, onValueChange, ...timePickerBodyProps } = props;
|
|
2141
|
-
return (!props.isDisabled && !props.isReadonly && (React__namespace.default.createElement(DropdownContainer, { ...bodyProps,
|
|
2176
|
+
return (!props.isDisabled && !props.isReadonly && (React__namespace.default.createElement(DropdownContainer, { ...bodyProps, shards: [targetRef] },
|
|
2142
2177
|
React__namespace.default.createElement(TimePickerBody, { ...timePickerBodyProps, onValueChange: handleBodyValueChange, value: formatStringTimeToObject(state.value), rawProps: props.rawProps?.body, cx: props.bodyCx }))));
|
|
2143
2178
|
};
|
|
2144
2179
|
return (React__namespace.default.createElement(uuiComponents.Dropdown, { renderTarget: (targetProps) => (props.renderTarget ? props.renderTarget(targetProps) : renderInput(targetProps)), renderBody: (bodyProps) => !props.isDisabled && !props.isReadonly && renderBody(bodyProps), onValueChange: !props.isDisabled && !props.isReadonly ? onToggle : null, value: state.isOpen, middleware: [react.offset(6)], ref: ref }));
|
|
2145
2180
|
}
|
|
2146
2181
|
const TimePicker = /* @__PURE__ */React__namespace.default.forwardRef(TimePickerComponent);
|
|
2147
2182
|
|
|
2148
|
-
var css$16 = {"root":"
|
|
2183
|
+
var css$16 = {"root":"ltlZsj"};
|
|
2149
2184
|
|
|
2150
2185
|
function applyInputAddonMods() {
|
|
2151
2186
|
return [
|
|
@@ -2154,14 +2189,14 @@ function applyInputAddonMods() {
|
|
|
2154
2189
|
}
|
|
2155
2190
|
const InputAddon = /* @__PURE__ */uuiCore.withMods(uuiComponents.InputAddon, applyInputAddonMods);
|
|
2156
2191
|
|
|
2157
|
-
var css$15 = {"root":"
|
|
2192
|
+
var css$15 = {"root":"_3s-56r"};
|
|
2158
2193
|
|
|
2159
2194
|
function applySliderMods() {
|
|
2160
2195
|
return [css$15.root, 'uui-color-neutral'];
|
|
2161
2196
|
}
|
|
2162
2197
|
const Slider = /* @__PURE__ */uuiCore.withMods(uuiComponents.Slider, applySliderMods);
|
|
2163
2198
|
|
|
2164
|
-
var css$14 = {"root":"
|
|
2199
|
+
var css$14 = {"root":"MmOQTA"};
|
|
2165
2200
|
|
|
2166
2201
|
function applyTooltipMods(mods) {
|
|
2167
2202
|
return [
|
|
@@ -2171,7 +2206,7 @@ function applyTooltipMods(mods) {
|
|
|
2171
2206
|
}
|
|
2172
2207
|
const Tooltip = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Tooltip, applyTooltipMods);
|
|
2173
2208
|
|
|
2174
|
-
var css$13 = {"root":"
|
|
2209
|
+
var css$13 = {"root":"o7Y-1v","tooltip":"RGs3tR"};
|
|
2175
2210
|
|
|
2176
2211
|
function applyRatingMods(mods) {
|
|
2177
2212
|
return [
|
|
@@ -2185,7 +2220,7 @@ const Rating = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Rating,
|
|
|
2185
2220
|
Tooltip,
|
|
2186
2221
|
}));
|
|
2187
2222
|
|
|
2188
|
-
var css$12 = {"drag-handle-wrapper":"
|
|
2223
|
+
var css$12 = {"drag-handle-wrapper":"EAmIbS","dragHandleWrapper":"EAmIbS","with-indent":"_7uTf-f","withIndent":"_7uTf-f","drag-handle":"aznPbo","dragHandle":"aznPbo","icon-container":"KKKoce","iconContainer":"KKKoce"};
|
|
2189
2224
|
|
|
2190
2225
|
function DataRowAddons(props) {
|
|
2191
2226
|
const row = props.rowProps;
|
|
@@ -2202,15 +2237,20 @@ function DataRowAddons(props) {
|
|
|
2202
2237
|
return (React__namespace.default.createElement("div", { key: "dh", className: cx__default.default(css$12.dragHandleWrapper, row.indent > 0 && css$12.withIndent), style: { width: row.indent > 0 ? (getIndent() + getWidth()) : 0 }, ...props.eventHandlers },
|
|
2203
2238
|
React__namespace.default.createElement(uuiComponents.DragHandle, { cx: css$12.dragHandle })));
|
|
2204
2239
|
};
|
|
2240
|
+
const handleFold = (e) => {
|
|
2241
|
+
if (e.key === 'Enter') {
|
|
2242
|
+
row.onFold(row);
|
|
2243
|
+
}
|
|
2244
|
+
};
|
|
2205
2245
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
2206
2246
|
row.dnd?.srcData && renderDragHandle(),
|
|
2207
2247
|
row?.checkbox?.isVisible && (React__namespace.default.createElement(Checkbox, { key: "cb", cx: "uui-dr_addons-checkbox", tabIndex: props.tabIndex, size: settings.dataTable.sizes.body.checkboxMap[props.size], value: row.isChecked, indeterminate: !row.isChecked && row.isChildrenChecked, onValueChange: () => row.onCheck?.(row), isDisabled: row.checkbox.isDisabled, isInvalid: row.checkbox.isInvalid })),
|
|
2208
|
-
row.indent > 0 && (React__namespace.default.createElement("div", { key: "fold", className: cx__default.default('uui-dr_addons-indent', `uui-size-${props.size || settings.dataTable.sizes.body.row}`), style: { marginInlineStart: getIndent(), width: getWidth() } }, row.isFoldable && (React__namespace.default.createElement(uuiComponents.
|
|
2248
|
+
row.indent > 0 && (React__namespace.default.createElement("div", { key: "fold", className: cx__default.default('uui-dr_addons-indent', `uui-size-${props.size || settings.dataTable.sizes.body.row}`), style: { marginInlineStart: getIndent(), width: getWidth() } }, row.isFoldable && (React__namespace.default.createElement(uuiComponents.ControlIcon, { rawProps: {
|
|
2209
2249
|
'aria-label': row.isFolded ? 'Unfold' : 'Fold',
|
|
2210
2250
|
role: 'button',
|
|
2211
2251
|
}, key: "icon", icon: settings.dataTable.icons.body.foldingIcon, cx: [
|
|
2212
2252
|
uuiCore.uuiElement.foldingArrow, uuiCore.uuiMarkers.clickable, css$12.iconContainer,
|
|
2213
|
-
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row), size: settings.dataTable.sizes.body.iconMap[props.size || settings.dataTable.sizes.body.row] }))))));
|
|
2253
|
+
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row), onKeyDown: handleFold, size: settings.dataTable.sizes.body.iconMap[props.size || settings.dataTable.sizes.body.row], tabIndex: props.tabIndex }))))));
|
|
2214
2254
|
}
|
|
2215
2255
|
|
|
2216
2256
|
function VerticalTabButtonComponent(props, ref) {
|
|
@@ -2262,7 +2302,7 @@ function VerticalTabButtonComponent(props, ref) {
|
|
|
2262
2302
|
}
|
|
2263
2303
|
const VerticalTabButton = /* @__PURE__ */React__namespace.default.forwardRef(VerticalTabButtonComponent);
|
|
2264
2304
|
|
|
2265
|
-
var css$11 = {"root":"
|
|
2305
|
+
var css$11 = {"root":"_1e7S0y","main-path":"obU9y3","mainPath":"obU9y3","content-wrapper":"OR8mMk","contentWrapper":"OR8mMk","content":"am2iMV","action-wrapper":"_9P96qq","actionWrapper":"_9P96qq","icon-wrapper":"RruO9-","iconWrapper":"RruO9-","icon":"ZriibA","close-icon":"lWhLRg","closeIcon":"lWhLRg"};
|
|
2266
2306
|
|
|
2267
2307
|
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 },
|
|
2268
2308
|
React__namespace.createElement("div", { className: css$11.mainPath },
|
|
@@ -2280,7 +2320,7 @@ const ErrorAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => Re
|
|
|
2280
2320
|
|
|
2281
2321
|
const Dropdown = /* @__PURE__ */uuiCore.withMods(uuiComponents.Dropdown);
|
|
2282
2322
|
|
|
2283
|
-
var css$10 = {"submenu-root-item-rtl":"
|
|
2323
|
+
var css$10 = {"submenu-root-item-rtl":"D-rS7v","submenuRootItemRtl":"D-rS7v","icon-after":"J6i8k1","iconAfter":"J6i8k1","submenu-root-item":"XSsEXS","submenuRootItem":"XSsEXS","icon-check":"nlxDu7","iconCheck":"nlxDu7","splitter-root":"nffzud","splitterRoot":"nffzud","splitter":"qkFqLQ","header-root":"_1tylo3","headerRoot":"_1tylo3","item-root":"qbuty1","itemRoot":"qbuty1","icon":"BFBmLp","link":"_7YkkG0","indent":"XIoxMb","selected-mark":"Zv37Q-","selectedMark":"Zv37Q-"};
|
|
2284
2324
|
|
|
2285
2325
|
exports.IDropdownControlKeys = void 0;
|
|
2286
2326
|
(function (IDropdownControlKeys) {
|
|
@@ -2414,7 +2454,7 @@ function DropdownMenuSwitchButton(props) {
|
|
|
2414
2454
|
React__namespace.default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
2415
2455
|
}
|
|
2416
2456
|
|
|
2417
|
-
var css$$ = {"root":"
|
|
2457
|
+
var css$$ = {"root":"Hlwwhu","mode-block":"sMtMhE","modeBlock":"sMtMhE","mode-inline":"-k0QtU","modeInline":"-k0QtU","padding-0":"_3106Ez","padding0":"_3106Ez","padding-6":"Qm7Mya","padding6":"Qm7Mya","padding-12":"pxzoBb","padding12":"pxzoBb","padding-18":"S7cJFO","padding18":"S7cJFO"};
|
|
2418
2458
|
|
|
2419
2459
|
function applyAccordionMods(mods) {
|
|
2420
2460
|
return [
|
|
@@ -2427,7 +2467,7 @@ const Accordion = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Accor
|
|
|
2427
2467
|
dropdownIcon: mods.dropdownIcon !== null && settings.accordion.icons.dropdownIcon,
|
|
2428
2468
|
}));
|
|
2429
2469
|
|
|
2430
|
-
var css$_ = {"root":"
|
|
2470
|
+
var css$_ = {"root":"gMB4J3","align-items":"eG-MqY","alignItems":"eG-MqY","justify-content":"hoX8Pl","justifyContent":"hoX8Pl","border-top":"-xdL8B","borderTop":"-xdL8B","border-bottom":"Dh0eg-","borderBottom":"Dh0eg-","top-shadow":"EwD-Cc","topShadow":"EwD-Cc","padding":"_9sVssD","margin":"Tp7KXK","vPadding":"OszXAG","column-gap":"XqIU3S","columnGap":"XqIU3S","row-gap":"d2PiG4","rowGap":"d2PiG4","spacing":"_1-6evf"};
|
|
2431
2471
|
|
|
2432
2472
|
const FlexCell = /* @__PURE__ */uuiCore.withMods(uuiComponents.FlexCell, () => [css$_.flexCell]);
|
|
2433
2473
|
|
|
@@ -2479,7 +2519,7 @@ const FlexRow = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
2479
2519
|
} }, props.children));
|
|
2480
2520
|
});
|
|
2481
2521
|
|
|
2482
|
-
var css$Z = {"root":"
|
|
2522
|
+
var css$Z = {"root":"Ns7CZ8","margin-24":"rzkSYM","margin24":"rzkSYM","padding-12":"U1H-72","padding12":"U1H-72","padding-24":"iRUoC2","padding24":"iRUoC2","shadow":"sxT-IZ","uui-surface-main":"_1MPPR7","uuiSurfaceMain":"_1MPPR7"};
|
|
2483
2523
|
|
|
2484
2524
|
const Panel = /* @__PURE__ */uuiCore.withMods(uuiComponents.VPanel, (props) => [
|
|
2485
2525
|
'uui-panel',
|
|
@@ -2489,7 +2529,7 @@ const Panel = /* @__PURE__ */uuiCore.withMods(uuiComponents.VPanel, (props) => [
|
|
|
2489
2529
|
props.background && css$Z[`uui-${props.background}`],
|
|
2490
2530
|
]);
|
|
2491
2531
|
|
|
2492
|
-
var css$Y = {"root":"
|
|
2532
|
+
var css$Y = {"root":"hFjkXd"};
|
|
2493
2533
|
|
|
2494
2534
|
function applyLabeledInputMods(mods) {
|
|
2495
2535
|
return [
|
|
@@ -2498,15 +2538,20 @@ function applyLabeledInputMods(mods) {
|
|
|
2498
2538
|
'uui-size-' + (mods.size || settings.labeledInput.sizes.default),
|
|
2499
2539
|
];
|
|
2500
2540
|
}
|
|
2541
|
+
function getInfoIconForSize(size) {
|
|
2542
|
+
return size <= '30'
|
|
2543
|
+
? settings.labeledInput.icons.fillInfoIcon
|
|
2544
|
+
: settings.labeledInput.icons.infoIcon;
|
|
2545
|
+
}
|
|
2501
2546
|
function applyLabeledInputProps(props) {
|
|
2502
|
-
return
|
|
2547
|
+
return {
|
|
2503
2548
|
Tooltip: props.Tooltip || Tooltip,
|
|
2504
|
-
infoIcon: props.infoIcon || props.size
|
|
2505
|
-
}
|
|
2549
|
+
infoIcon: props.infoIcon || getInfoIconForSize(props.size),
|
|
2550
|
+
};
|
|
2506
2551
|
}
|
|
2507
2552
|
const LabeledInput = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.LabeledInput, applyLabeledInputMods, applyLabeledInputProps);
|
|
2508
2553
|
|
|
2509
|
-
var css$X = {"root":"
|
|
2554
|
+
var css$X = {"root":"QxyGE6"};
|
|
2510
2555
|
|
|
2511
2556
|
function RadioGroup(props) {
|
|
2512
2557
|
const direction = props.direction || 'vertical';
|
|
@@ -2521,7 +2566,7 @@ function RadioGroup(props) {
|
|
|
2521
2566
|
})));
|
|
2522
2567
|
}
|
|
2523
2568
|
|
|
2524
|
-
var css$W = {"root":"
|
|
2569
|
+
var css$W = {"root":"r5VgqM","viewport":"f3Spqz"};
|
|
2525
2570
|
|
|
2526
2571
|
var uuiScrollbars;
|
|
2527
2572
|
(function (uuiScrollbars) {
|
|
@@ -2591,7 +2636,7 @@ const ScrollBars = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
2591
2636
|
});
|
|
2592
2637
|
ScrollBars.displayName = 'ScrollBars';
|
|
2593
2638
|
|
|
2594
|
-
var css$V = {"scroll-container":"
|
|
2639
|
+
var css$V = {"scroll-container":"_8NneMC","scrollContainer":"_8NneMC","list-container":"PfcsQz","listContainer":"PfcsQz"};
|
|
2595
2640
|
|
|
2596
2641
|
const VirtualList = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
2597
2642
|
const { listContainerRef, offsetY, handleScroll, estimatedHeight, scrollContainerRef, } = uuiCore.useVirtualList({
|
|
@@ -2644,7 +2689,7 @@ function Tree(props) {
|
|
|
2644
2689
|
return (React__namespace.createElement(VirtualList, { value: value, onValueChange: onValueChange, rowsCount: rowsCount, rows: renderedRows, cx: uuiCore.cx(propsCx), role: "tree" }));
|
|
2645
2690
|
}
|
|
2646
2691
|
|
|
2647
|
-
var css$U = {"root":"
|
|
2692
|
+
var css$U = {"root":"z-D1UO"};
|
|
2648
2693
|
|
|
2649
2694
|
function CheckboxGroup(props) {
|
|
2650
2695
|
const currentValue = props.value || [];
|
|
@@ -2746,7 +2791,7 @@ const Tabs = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
2746
2791
|
});
|
|
2747
2792
|
Tabs.displayName = 'Tabs';
|
|
2748
2793
|
|
|
2749
|
-
var css$T = {"root":"
|
|
2794
|
+
var css$T = {"root":"gdv-Rj","modal-blocker":"_7yBMt9","modalBlocker":"_7yBMt9","animateModalBlocker":"gpA9ko","modal":"zdbfaJ","modal-footer":"ic-5St","modalFooter":"ic-5St","border-top":"CemqT9","borderTop":"CemqT9","modal-header":"EY1EX5","modalHeader":"EY1EX5","border-bottom":"YBwmA6","borderBottom":"YBwmA6"};
|
|
2750
2795
|
|
|
2751
2796
|
const ModalBlocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalBlocker, () => [css$T.modalBlocker]);
|
|
2752
2797
|
const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, () => [css$T.root, css$T.modal], (props) => {
|
|
@@ -2938,7 +2983,7 @@ const TREE_SHAKEABLE_INIT = () => ({
|
|
|
2938
2983
|
});
|
|
2939
2984
|
const i18n = /* @__PURE__ */TREE_SHAKEABLE_INIT();
|
|
2940
2985
|
|
|
2941
|
-
var css$S = {"root":"
|
|
2986
|
+
var css$S = {"root":"pxbhml","icon-wrapper":"zCYla8","iconWrapper":"zCYla8","action-wrapper":"NJtMA8","actionWrapper":"NJtMA8","close-icon":"BwQhiB","closeIcon":"BwQhiB","main-path":"Qh--Cz","mainPath":"Qh--Cz","content":"JKfx5M","close-wrapper":"F1KSmJ","closeWrapper":"F1KSmJ","clear-notifications":"xXxll9","clearNotifications":"xXxll9"};
|
|
2942
2987
|
|
|
2943
2988
|
const NotificationCard = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
2944
2989
|
const notificationCardNode = React__namespace.default.useRef(null);
|
|
@@ -2971,7 +3016,7 @@ function ClearNotification() {
|
|
|
2971
3016
|
React__namespace.default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => uuiCtx.uuiNotifications.clearAll() })));
|
|
2972
3017
|
}
|
|
2973
3018
|
|
|
2974
|
-
var css$R = {"footer":"
|
|
3019
|
+
var css$R = {"footer":"KGqcpf"};
|
|
2975
3020
|
|
|
2976
3021
|
class ConfirmationModal extends React__namespace.Component {
|
|
2977
3022
|
render() {
|
|
@@ -3013,7 +3058,7 @@ function useReliableForceUpdate() {
|
|
|
3013
3058
|
return red[1];
|
|
3014
3059
|
}
|
|
3015
3060
|
|
|
3016
|
-
var css$Q = {"root":"
|
|
3061
|
+
var css$Q = {"root":"OOHbQt","container":"_8NU6sF"};
|
|
3017
3062
|
|
|
3018
3063
|
const defaultFormat = 'MMM D, YYYY';
|
|
3019
3064
|
const valueFormat = 'YYYY-MM-DD';
|
|
@@ -3032,7 +3077,16 @@ const defaultRangeValue = {
|
|
|
3032
3077
|
from: null,
|
|
3033
3078
|
to: null,
|
|
3034
3079
|
};
|
|
3035
|
-
const getDisplayedMonth = (selectedDate, focus) => {
|
|
3080
|
+
const getDisplayedMonth = (selectedDate, focus, initialViewMonth) => {
|
|
3081
|
+
if (selectedDate.from || selectedDate.to) {
|
|
3082
|
+
return getDisplayedMonthBySelection(selectedDate, focus);
|
|
3083
|
+
}
|
|
3084
|
+
else if (initialViewMonth) {
|
|
3085
|
+
return getNewMonth(`${initialViewMonth}-01`);
|
|
3086
|
+
}
|
|
3087
|
+
return uuiDayjs.dayjs();
|
|
3088
|
+
};
|
|
3089
|
+
const getDisplayedMonthBySelection = (selectedDate, focus) => {
|
|
3036
3090
|
if (selectedDate.from && selectedDate.to && focus) {
|
|
3037
3091
|
return uuiDayjs.dayjs(selectedDate[focus]);
|
|
3038
3092
|
}
|
|
@@ -3231,26 +3285,27 @@ function DatePickerHeader({ navIconLeft, navIconRight, value: { month, view }, o
|
|
|
3231
3285
|
React__namespace.createElement(Button, { icon: navIconRight || settings.datePicker.icons.body.nextIcon, color: "secondary", fill: "ghost", cx: uuiHeader.navIconRight, onClick: !isDisabled && (() => onRightNavigationArrow()), isDisabled: disableNext }))));
|
|
3232
3286
|
}
|
|
3233
3287
|
|
|
3234
|
-
var css$P = {"root":"
|
|
3288
|
+
var css$P = {"root":"DPyH6V"};
|
|
3235
3289
|
|
|
3236
3290
|
function applyDateSelectionMods() {
|
|
3237
3291
|
return [css$P.root, `uui-size-${settings.datePicker.sizes.body}`];
|
|
3238
3292
|
}
|
|
3239
3293
|
const Calendar = /* @__PURE__ */uuiCore.withMods(uuiComponents.Calendar, applyDateSelectionMods);
|
|
3240
3294
|
|
|
3241
|
-
var css$O = {"root":"
|
|
3295
|
+
var css$O = {"root":"qfSXJU"};
|
|
3242
3296
|
|
|
3243
3297
|
const uuiDatePickerBody = {
|
|
3244
3298
|
wrapper: 'uui-datepicker-body-wrapper',
|
|
3245
3299
|
};
|
|
3246
3300
|
const DatePickerBody = /* @__PURE__ */React.forwardRef(DatePickerBodyComp);
|
|
3247
3301
|
function DatePickerBodyComp(props, ref) {
|
|
3248
|
-
const { value, onValueChange } = props;
|
|
3249
|
-
const
|
|
3302
|
+
const { value, onValueChange, initialViewMonth } = props;
|
|
3303
|
+
const initialViewDate = value || (initialViewMonth ? `${initialViewMonth}-01` : '');
|
|
3304
|
+
const [month, setMonth] = React.useState(getNewMonth(initialViewDate));
|
|
3250
3305
|
const [view, setView] = React.useState('DAY_SELECTION');
|
|
3251
3306
|
// sync updated props with internal state
|
|
3252
3307
|
React.useEffect(() => {
|
|
3253
|
-
setMonth(getNewMonth(
|
|
3308
|
+
setMonth(getNewMonth(initialViewDate));
|
|
3254
3309
|
setView('DAY_SELECTION');
|
|
3255
3310
|
}, [value, setMonth]);
|
|
3256
3311
|
return (React__namespace.default.createElement(StatelessDatePickerBody, { ref: ref, ...props, month: month, view: view, onValueChange: onValueChange, onMonthChange: (m) => setMonth(m), onViewChange: (v) => setView(v) }));
|
|
@@ -3348,7 +3403,7 @@ function DatePickerComponent(props, ref) {
|
|
|
3348
3403
|
};
|
|
3349
3404
|
const renderBody = React.useMemo(() => (renderProps) => {
|
|
3350
3405
|
return (React__namespace.default.createElement(DropdownContainer, { ...renderProps },
|
|
3351
|
-
React__namespace.default.createElement(DatePickerBody, { value: value, onValueChange: onBodyValueChange, cx: uuiCore.cx(props.bodyCx), filter: props.filter, isHoliday: props.isHoliday, renderDay: props.renderDay, rawProps: props.rawProps?.body }),
|
|
3406
|
+
React__namespace.default.createElement(DatePickerBody, { value: value, onValueChange: onBodyValueChange, cx: uuiCore.cx(props.bodyCx), filter: props.filter, isHoliday: props.isHoliday, renderDay: props.renderDay, rawProps: props.rawProps?.body, initialViewMonth: props.initialViewMonth }),
|
|
3352
3407
|
props.renderFooter?.()));
|
|
3353
3408
|
}, [value, onBodyValueChange]);
|
|
3354
3409
|
return (React__namespace.default.createElement(uuiComponents.Dropdown, { value: isBodyOpen, middleware: [react.offset(6)], placement: props.placement, ref: ref, onValueChange: (v) => {
|
|
@@ -3359,7 +3414,7 @@ function DatePickerComponent(props, ref) {
|
|
|
3359
3414
|
}
|
|
3360
3415
|
const DatePicker = /* @__PURE__ */React__namespace.default.forwardRef(DatePickerComponent);
|
|
3361
3416
|
|
|
3362
|
-
var css$N = {"date-input":"
|
|
3417
|
+
var css$N = {"date-input":"sF1znN","dateInput":"sF1znN","root":"BhbOtj","separator":"Hs-taf"};
|
|
3363
3418
|
|
|
3364
3419
|
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) => {
|
|
3365
3420
|
const [inputValue, setInputValue] = React.useState(toCustomDateRangeFormat(value, format));
|
|
@@ -3421,16 +3476,18 @@ const RangeDatePickerInput = /* @__PURE__ */React.forwardRef(({ isDisabled, isIn
|
|
|
3421
3476
|
};
|
|
3422
3477
|
onValueChange(newValue);
|
|
3423
3478
|
};
|
|
3424
|
-
const clearAllowed = !disableClear && !
|
|
3479
|
+
const clearAllowed = !disableClear && !isReadonly && !isDisabled
|
|
3480
|
+
&& !(preventEmptyFromDate && preventEmptyToDate)
|
|
3481
|
+
&& ((value.from && !preventEmptyFromDate) || (value.to && !preventEmptyToDate));
|
|
3425
3482
|
return (
|
|
3426
3483
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
3427
3484
|
React__namespace.default.createElement("div", { ref: ref, className: uuiCore.cx(`uui-size-${size || settings.rangeDatePicker.sizes.default}`, 'uui-range-date-picker', classes, css$N.root, isDisabled && uuiCore.uuiMod.disabled, isReadonly && uuiCore.uuiMod.readonly, isInvalid && uuiCore.uuiMod.invalid, inFocus && uuiCore.uuiMod.focus), onKeyDown: onKeyDown },
|
|
3428
3485
|
React__namespace.default.createElement(TextInput, { icon: settings.rangeDatePicker.icons.input.calendarIcon, cx: uuiCore.cx(css$N.dateInput, inFocus === 'from' && uuiCore.uuiMod.focus), size: size || settings.rangeDatePicker.sizes.default, placeholder: getPlaceholder ? getPlaceholder('from') : i18n.rangeDatePicker.pickerPlaceholderFrom, value: inputValue.from || undefined, onValueChange: (v) => onInputChange(v || '', 'from'), onFocus: (event) => handleFocus(event, 'from'), onBlur: (event) => handleBlur(event, 'from'), isInvalid: isInvalid, isDisabled: isDisabled, isReadonly: isReadonly, isDropdown: false, rawProps: rawProps?.from, onClick: onClick, onKeyDown: onInputKeyDown, id: id }),
|
|
3429
3486
|
React__namespace.default.createElement("div", { className: css$N.separator }),
|
|
3430
|
-
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,
|
|
3487
|
+
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, icon: clearAllowed && ForwardRef$Q, iconPosition: "right", iconLabel: "Clear selected date range", onIconClick: onClear, 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 })));
|
|
3431
3488
|
});
|
|
3432
3489
|
|
|
3433
|
-
var css$M = {"root":"
|
|
3490
|
+
var css$M = {"root":"Ynzf3x"};
|
|
3434
3491
|
|
|
3435
3492
|
const uuiPresets = {
|
|
3436
3493
|
container: 'uui-presets-container',
|
|
@@ -3450,7 +3507,7 @@ function CalendarPresets(props) {
|
|
|
3450
3507
|
getPresets(props.presets).map((item) => (React__namespace.createElement(LinkButton, { key: item.key, caption: item.name, onClick: () => props.onPresetSet(item), size: settings.rangeDatePicker.sizes.preset })))));
|
|
3451
3508
|
}
|
|
3452
3509
|
|
|
3453
|
-
var css$L = {"root":"
|
|
3510
|
+
var css$L = {"root":"JgvZ3k","container":"dI-bPp","day-selection":"X3ZTen","daySelection":"X3ZTen","from-picker":"InVzJi","fromPicker":"InVzJi","to-picker":"G5-vQS","toPicker":"G5-vQS","bodes-wrapper":"O7oqJp","bodesWrapper":"O7oqJp","blocker":"l4vmaZ"};
|
|
3454
3511
|
|
|
3455
3512
|
const uuiRangeDatePickerBody = {
|
|
3456
3513
|
inRange: 'uui-range-datepicker-in-range',
|
|
@@ -3526,13 +3583,13 @@ const rangeDatePickerPresets = {
|
|
|
3526
3583
|
};
|
|
3527
3584
|
const RangeDatePickerBody = /* @__PURE__ */React.forwardRef(RangeDatePickerBodyComp);
|
|
3528
3585
|
function RangeDatePickerBodyComp(props, ref) {
|
|
3529
|
-
const { value: _value, filter } = props;
|
|
3586
|
+
const { value: _value, filter, initialViewMonth } = props;
|
|
3530
3587
|
const { selectedDate: _selectedDate, inFocus, } = _value;
|
|
3531
3588
|
const selectedDate = _selectedDate || defaultRangeValue; // also handles null in comparison to default value
|
|
3532
3589
|
const [view, setView] = React.useState('DAY_SELECTION');
|
|
3533
3590
|
const [disabledPanel, setDisabledPanel] = React.useState(null);
|
|
3534
3591
|
const [month, setMonth] = React.useState(() => {
|
|
3535
|
-
return getDisplayedMonth(selectedDate, inFocus);
|
|
3592
|
+
return getDisplayedMonth(selectedDate, inFocus, initialViewMonth);
|
|
3536
3593
|
});
|
|
3537
3594
|
const getRange = (newValue) => {
|
|
3538
3595
|
if (!filter || filter(uuiDayjs.dayjs(newValue))) {
|
|
@@ -3596,7 +3653,7 @@ function RangeDatePickerBodyComp(props, ref) {
|
|
|
3596
3653
|
}, presets: presets })));
|
|
3597
3654
|
};
|
|
3598
3655
|
uuiCore.useLayoutEffectSafeForSsr(() => {
|
|
3599
|
-
const monthToSet = getDisplayedMonth(selectedDate, inFocus);
|
|
3656
|
+
const monthToSet = getDisplayedMonth(selectedDate, inFocus, initialViewMonth);
|
|
3600
3657
|
// To avoid re-rendering the body if the current month being displayed is equal to or greater than 1
|
|
3601
3658
|
const shouldNotIgnoreUpdate = !(uuiDayjs.dayjs(month).isSame(monthToSet, 'month') || uuiDayjs.dayjs(month).add(1, 'month').isSame(monthToSet, 'month'));
|
|
3602
3659
|
if (shouldNotIgnoreUpdate) {
|
|
@@ -3652,7 +3709,7 @@ const getDayState = (day, selectedDate) => {
|
|
|
3652
3709
|
};
|
|
3653
3710
|
};
|
|
3654
3711
|
|
|
3655
|
-
var css$K = {"dropdown-container":"
|
|
3712
|
+
var css$K = {"dropdown-container":"mfUZY-","dropdownContainer":"mfUZY-"};
|
|
3656
3713
|
|
|
3657
3714
|
function RangeDatePickerComponent(props, ref) {
|
|
3658
3715
|
const { value: _value, format = defaultFormat, size = settings.rangeDatePicker.sizes.default } = props;
|
|
@@ -3703,7 +3760,7 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
3703
3760
|
inFocus,
|
|
3704
3761
|
}, onValueChange: onBodyValueChange, filter: props.filter, presets: props.presets, renderDay: props.renderDay, renderFooter: () => {
|
|
3705
3762
|
return props.renderFooter?.(value);
|
|
3706
|
-
}, isHoliday: props.isHoliday, rawProps: props.rawProps?.body, preventEmptyToDate: props.preventEmptyToDate, preventEmptyFromDate: props.preventEmptyFromDate }))));
|
|
3763
|
+
}, isHoliday: props.isHoliday, rawProps: props.rawProps?.body, preventEmptyToDate: props.preventEmptyToDate, preventEmptyFromDate: props.preventEmptyFromDate, initialViewMonth: props.initialViewMonth }))));
|
|
3707
3764
|
};
|
|
3708
3765
|
const handleEscape = (e) => {
|
|
3709
3766
|
if (e.key === 'Escape' && isOpen) {
|
|
@@ -3720,7 +3777,7 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
3720
3777
|
}
|
|
3721
3778
|
const RangeDatePicker = /* @__PURE__ */React__namespace.default.forwardRef(RangeDatePickerComponent);
|
|
3722
3779
|
|
|
3723
|
-
var css$J = {"root":"
|
|
3780
|
+
var css$J = {"root":"wtdQD5","blocker":"tPzTL-","marker":"jvL75J","top":"y0nGTn","bottom":"cDVBde","left":"cEpiXD","right":"ufZtWU","inside":"zYAmbs"};
|
|
3724
3781
|
|
|
3725
3782
|
function DropMarker(props) {
|
|
3726
3783
|
return props.isDndInProgress
|
|
@@ -3735,9 +3792,9 @@ function DropMarker(props) {
|
|
|
3735
3792
|
: null;
|
|
3736
3793
|
}
|
|
3737
3794
|
|
|
3738
|
-
var css$I = {"search-wrapper":"
|
|
3795
|
+
var css$I = {"search-wrapper":"Sd0oxr","searchWrapper":"Sd0oxr","no-data":"F5kMAL","noData":"F5kMAL"};
|
|
3739
3796
|
|
|
3740
|
-
var css$H = {"picker-row":"
|
|
3797
|
+
var css$H = {"picker-row":"AKWeJR","pickerRow":"AKWeJR","align-widgets-top":"KUz6Df","alignWidgetsTop":"KUz6Df","row-content":"VQHaUC","rowContent":"VQHaUC","align-widgets-center":"z4vbqx","alignWidgetsCenter":"z4vbqx","icon-container":"CGeuRM","iconContainer":"CGeuRM","content-wrapper":"QSgjAz","contentWrapper":"QSgjAz","icon-wrapper":"UMPUgE","iconWrapper":"UMPUgE","icon-default":"KpWvbe","iconDefault":"KpWvbe","selected-mark":"VFN14z","selectedMark":"VFN14z"};
|
|
3741
3798
|
|
|
3742
3799
|
const mergeHighlightRanges = (ranges) => {
|
|
3743
3800
|
const mergedRanges = [];
|
|
@@ -3804,7 +3861,7 @@ const getHighlightedSearchMatches = (str, search) => {
|
|
|
3804
3861
|
return getDecoratedText(str, ranges);
|
|
3805
3862
|
};
|
|
3806
3863
|
|
|
3807
|
-
var css$G = {"root":"
|
|
3864
|
+
var css$G = {"root":"UYc1Df","column-gap":"_4hF6vh","columnGap":"_4hF6vh","title":"SAYyTj","subtitle":"YH4D0u","disabled":"DKlbID","multiline":"pplegF"};
|
|
3808
3865
|
|
|
3809
3866
|
function PickerItem(props) {
|
|
3810
3867
|
const { highlightSearchMatches = true, size, avatarUrl, isLoading, isDisabled, icon, } = props;
|
|
@@ -3837,6 +3894,12 @@ function DataPickerRow(props) {
|
|
|
3837
3894
|
rowNode.current?.removeEventListener('mouseenter', handleMouseEnter);
|
|
3838
3895
|
};
|
|
3839
3896
|
}, [props.onFocus, handleMouseEnter]);
|
|
3897
|
+
const handleFocus = () => {
|
|
3898
|
+
// If this row gets focus but is not the focused row, make it focused
|
|
3899
|
+
if (!props.isFocused && props.onFocus) {
|
|
3900
|
+
props.onFocus(props.index);
|
|
3901
|
+
}
|
|
3902
|
+
};
|
|
3840
3903
|
const getSubtitle = ({ path }) => {
|
|
3841
3904
|
if (!props.dataSourceState?.search)
|
|
3842
3905
|
return;
|
|
@@ -3878,14 +3941,15 @@ function DataPickerRow(props) {
|
|
|
3878
3941
|
const clickHandler = props.onClick || props.onSelect || props.onFold || props.onCheck;
|
|
3879
3942
|
return (
|
|
3880
3943
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
3881
|
-
React__namespace.createElement("div", { onClick: clickHandler && ((e) => !uuiCore.isEventTargetInsideClickable(e) && clickHandler(props)), role: "option", "aria-busy": props.isLoading, "aria-posinset": props.index + 1, "aria-checked": props.checkbox?.isVisible ? props.isChecked : null, "aria-selected": props.isSelectable ? props.isSelected : null, ref: rowNode, className: uuiCore.cx(css$H.pickerRow, 'uui-picker_input-row', `uui-size-${props.size || settings.pickerInput.sizes.body.row}`, css$H[`align-widgets-${props.alignActions || 'top'}`], clickHandler && props.isFocused && uuiCore.uuiMod.focus, clickHandler && uuiCore.uuiMarkers.clickable, props.cx), style: props.padding && {
|
|
3944
|
+
React__namespace.createElement("div", { onClick: clickHandler && ((e) => !uuiCore.isEventTargetInsideClickable(e) && clickHandler(props)), onFocus: handleFocus, role: "option", "aria-busy": props.isLoading, "aria-posinset": props.index + 1, "aria-checked": props.checkbox?.isVisible ? props.isChecked : null, "aria-selected": props.isSelectable ? props.isSelected : null, tabIndex: -1, ref: rowNode, id: props.rowKey, className: uuiCore.cx(css$H.pickerRow, 'uui-picker_input-row', `uui-size-${props.size || settings.pickerInput.sizes.body.row}`, css$H[`align-widgets-${props.alignActions || 'top'}`], clickHandler && props.isFocused && uuiCore.uuiMod.focus, clickHandler && uuiCore.uuiMarkers.clickable, props.cx), style: props.padding && {
|
|
3882
3945
|
'--uui-data_picker-horizontal-padding': `${props.padding}px`,
|
|
3883
3946
|
}, ...props.rawProps }, renderContent()));
|
|
3884
3947
|
}
|
|
3885
3948
|
|
|
3886
|
-
function DataPickerBody({ highlightSearchMatches = true, ...props }) {
|
|
3949
|
+
function DataPickerBody({ highlightSearchMatches = true, autoFocusSearch = true, ...props }) {
|
|
3887
3950
|
const prevProps = uuiCore.usePrevious(props);
|
|
3888
3951
|
const showSearch = props.showSearch === 'auto' ? props.totalCount > 10 : Boolean(props.showSearch);
|
|
3952
|
+
const [isKeyboardNavigation, setIsKeyboardNavigation] = React__namespace.default.useState(false);
|
|
3889
3953
|
React.useEffect(() => {
|
|
3890
3954
|
if (props.rows.length !== prevProps?.rows.length || (!isEqual__default.default(prevProps?.value.checked, props.value.checked) && !props.fixedBodyPosition)) {
|
|
3891
3955
|
props.scheduleUpdate?.();
|
|
@@ -3893,9 +3957,36 @@ function DataPickerBody({ highlightSearchMatches = true, ...props }) {
|
|
|
3893
3957
|
}, [props.rows, prevProps, props.value.checked, props.fixedBodyPosition]);
|
|
3894
3958
|
const searchKeyDown = (e) => {
|
|
3895
3959
|
props.onKeyDown?.(e);
|
|
3896
|
-
if (e.shiftKey && e.key === 'Tab')
|
|
3897
|
-
e.preventDefault();
|
|
3898
3960
|
};
|
|
3961
|
+
const handleVirtualListFocus = (e) => {
|
|
3962
|
+
// Only set keyboard navigation if focus came from keyboard (Tab key)
|
|
3963
|
+
// Check if the focus event was triggered by keyboard navigation
|
|
3964
|
+
const isKeyboardFocus = e.target === e.currentTarget;
|
|
3965
|
+
if (isKeyboardFocus) {
|
|
3966
|
+
setIsKeyboardNavigation(true);
|
|
3967
|
+
}
|
|
3968
|
+
};
|
|
3969
|
+
const handleVirtualListBlur = (e) => {
|
|
3970
|
+
// Check if focus is moving outside the virtual list
|
|
3971
|
+
const relatedTarget = e.relatedTarget;
|
|
3972
|
+
const currentTarget = e.currentTarget;
|
|
3973
|
+
if (relatedTarget && !currentTarget.contains(relatedTarget)) {
|
|
3974
|
+
// Focus is leaving the virtual list, hide visual focus but keep focusedIndex for navigation "by circle"
|
|
3975
|
+
setIsKeyboardNavigation(false);
|
|
3976
|
+
}
|
|
3977
|
+
};
|
|
3978
|
+
const { focusedIndex, topIndex, } = props.value;
|
|
3979
|
+
const focusedRowId = React.useMemo(() => {
|
|
3980
|
+
// No need to make unnecessary calculations.
|
|
3981
|
+
if (!props.showSearch) {
|
|
3982
|
+
return '';
|
|
3983
|
+
}
|
|
3984
|
+
const focusedRow = props.rows.at(focusedIndex - topIndex);
|
|
3985
|
+
if (!focusedRow) {
|
|
3986
|
+
return '';
|
|
3987
|
+
}
|
|
3988
|
+
return focusedRow.rowKey;
|
|
3989
|
+
}, [props.showSearch, focusedIndex, topIndex]);
|
|
3899
3990
|
const renderEmpty = () => {
|
|
3900
3991
|
const search = props.value.search;
|
|
3901
3992
|
if (props.renderEmpty) {
|
|
@@ -3930,25 +4021,36 @@ function DataPickerBody({ highlightSearchMatches = true, ...props }) {
|
|
|
3930
4021
|
return props.size || settings.pickerInput.sizes.body.row;
|
|
3931
4022
|
};
|
|
3932
4023
|
const renderRow = (row, dsState) => {
|
|
3933
|
-
const pickerRowProps = {
|
|
4024
|
+
const pickerRowProps = {
|
|
4025
|
+
...row,
|
|
4026
|
+
getName: props.getName,
|
|
4027
|
+
cx: uuiCore.cx(row.cx, isKeyboardNavigation && row.isFocused && 'uui-focus', isKeyboardNavigation && row.isFocused && 'uui-keyboard-focus'),
|
|
4028
|
+
};
|
|
3934
4029
|
return props.renderRow ? (props.renderRow(pickerRowProps, dsState)) : (React__namespace.default.createElement(DataPickerRow, { ...pickerRowProps, key: row.rowKey, size: getRowSize(), flattenSearchResults: props.flattenSearchResults, highlightSearchMatches: highlightSearchMatches, dataSourceState: dsState, getName: props.getName }));
|
|
3935
4030
|
};
|
|
4031
|
+
const renderSearchInput = () => {
|
|
4032
|
+
return (React__namespace.default.createElement(SearchInput, { placeholder: i18n.dataPickerBody.searchPlaceholder, value: props.value.search, onValueChange: (newVal) => props.onValueChange({ ...props.value, search: newVal }), onKeyDown: searchKeyDown, size: searchSize, debounceDelay: props.searchDebounceDelay, rawProps: {
|
|
4033
|
+
dir: 'auto',
|
|
4034
|
+
'aria-activedescendant': focusedRowId,
|
|
4035
|
+
} }));
|
|
4036
|
+
};
|
|
3936
4037
|
const searchSize = uuiCore.isMobile()
|
|
3937
4038
|
? settings.pickerInput.sizes.body.mobileSearchInput
|
|
3938
4039
|
: settings.pickerInput.sizes.body.getSearchSize({ pickerSize: props.searchSize });
|
|
3939
|
-
const renderedDataRows = React.useMemo(() => props.rows.map((row) => renderRow(row, props.value)), [props.rows, props.value]);
|
|
4040
|
+
const renderedDataRows = React.useMemo(() => props.rows.map((row) => renderRow(row, props.value)), [props.rows, props.value, isKeyboardNavigation]);
|
|
3940
4041
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
3941
4042
|
showSearch && (React__namespace.default.createElement("div", { key: "search", className: uuiCore.cx(css$I.searchWrapper, 'uui-picker_input-body-search') },
|
|
3942
|
-
React__namespace.default.createElement(uuiComponents.FlexCell, { grow: 1 },
|
|
3943
|
-
React__namespace.default.createElement(FocusLock.MoveFocusInside, null,
|
|
3944
|
-
React__namespace.default.createElement(SearchInput, { placeholder: i18n.dataPickerBody.searchPlaceholder, value: props.value.search, onValueChange: (newVal) => props.onValueChange({ ...props.value, search: newVal }), onKeyDown: searchKeyDown, size: searchSize, debounceDelay: props.searchDebounceDelay, rawProps: { dir: 'auto' } }))))),
|
|
4043
|
+
React__namespace.default.createElement(uuiComponents.FlexCell, { grow: 1 }, autoFocusSearch ? React__namespace.default.createElement(FocusLock.MoveFocusInside, null, renderSearchInput()) : renderSearchInput()))),
|
|
3945
4044
|
React__namespace.default.createElement(FlexRow, { key: "body", cx: uuiCore.cx('uui-picker_input-body'), rawProps: { style: { maxHeight: props.maxHeight, maxWidth: props.maxWidth }, tabIndex: -1 } }, props.rows.length === 0 && props.value.topIndex === 0
|
|
3946
4045
|
// We need to also ensure that topIndex === 0, because we can have state were there is no rows but topIndex > 0, in case when we scrolled lover than we have rows
|
|
3947
4046
|
// we fix this state on next render and shouldn't show empty state.
|
|
3948
|
-
? renderEmpty() : (React__namespace.default.createElement(VirtualList, { value: props.value, onValueChange: props.onValueChange, rows: renderedDataRows, rawProps: {
|
|
4047
|
+
? renderEmpty() : (React__namespace.default.createElement(VirtualList, { value: props.value, onValueChange: props.onValueChange, rows: renderedDataRows, role: "listbox", rawProps: {
|
|
3949
4048
|
'aria-multiselectable': props.selectionMode === 'multi' ? true : null,
|
|
3950
4049
|
'aria-orientation': 'vertical',
|
|
3951
|
-
tabIndex:
|
|
4050
|
+
tabIndex: 0,
|
|
4051
|
+
onKeyDown: props.onKeyDown,
|
|
4052
|
+
onFocus: handleVirtualListFocus,
|
|
4053
|
+
onBlur: handleVirtualListBlur,
|
|
3952
4054
|
...props.rawProps,
|
|
3953
4055
|
}, rowsCount: props.rowsCount, isLoading: props.isReloading, renderBlocker: settings.pickerInput.renderBlocker, overflowTopEffect: showSearch ? 'line' : 'none', overflowBottomEffect: "line" })))));
|
|
3954
4056
|
}
|
|
@@ -3977,7 +4079,7 @@ function DataPickerFooterImpl(props) {
|
|
|
3977
4079
|
}
|
|
3978
4080
|
const DataPickerFooter = /* @__PURE__ */React__namespace.default.memo(DataPickerFooterImpl);
|
|
3979
4081
|
|
|
3980
|
-
var css$F = {"header":"
|
|
4082
|
+
var css$F = {"header":"xMqeKH","title":"_6LNCzC","close":"SvIMIt"};
|
|
3981
4083
|
|
|
3982
4084
|
const DataPickerMobileHeaderImpl = (props) => {
|
|
3983
4085
|
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
@@ -3987,7 +4089,7 @@ const DataPickerMobileHeaderImpl = (props) => {
|
|
|
3987
4089
|
};
|
|
3988
4090
|
const DataPickerMobileHeader = /* @__PURE__ */React__namespace.default.memo(DataPickerMobileHeaderImpl);
|
|
3989
4091
|
|
|
3990
|
-
var css$E = {"done":"
|
|
4092
|
+
var css$E = {"done":"VEuK4c","container":"_7-Ls91"};
|
|
3991
4093
|
|
|
3992
4094
|
const PickerBodyMobileView = (props) => {
|
|
3993
4095
|
const isMobileView = uuiCore.isMobile();
|
|
@@ -3999,7 +4101,7 @@ const PickerBodyMobileView = (props) => {
|
|
|
3999
4101
|
isMobileView && (React__namespace.default.createElement(LinkButton, { caption: i18n.pickerInput.doneButton, onClick: () => props.onClose?.(), cx: css$E.done, size: settings.pickerInput.sizes.body.mobileFooterLinkButton }))));
|
|
4000
4102
|
};
|
|
4001
4103
|
|
|
4002
|
-
var css$D = {"sub-header-wrapper":"
|
|
4104
|
+
var css$D = {"sub-header-wrapper":"FqQxZy","subHeaderWrapper":"FqQxZy","switch":"PI0fZO","search":"Loa2gU","no-found-modal-container":"rPa16s","noFoundModalContainer":"rPa16s","no-found-modal-container-icon":"_55zy9M","noFoundModalContainerIcon":"_55zy9M","no-found-modal-container-text":"_7iIIK0","noFoundModalContainerText":"_7iIIK0","body":"Sukk2Z"};
|
|
4003
4105
|
|
|
4004
4106
|
function PickerModal(props) {
|
|
4005
4107
|
const { view, selection, dataSourceStateLens, dataSourceState, getName, clearSelection, getRows, getListProps, getFooterProps, isSingleSelect, handleDataSourceValueChange, } = uuiComponents.usePickerModal(props);
|
|
@@ -4027,25 +4129,40 @@ function PickerModal(props) {
|
|
|
4027
4129
|
React__namespace.default.createElement(Text, { cx: css$D.noFoundModalContainerText, fontSize: "12", lineHeight: "18", color: "primary" }, i18n.dataPickerBody.noRecordsSubTitle)));
|
|
4028
4130
|
};
|
|
4029
4131
|
const dataRows = getRows();
|
|
4132
|
+
const { focusedIndex, topIndex, } = dataSourceState;
|
|
4133
|
+
const focusedRowId = React.useMemo(() => {
|
|
4134
|
+
const focusedRow = dataRows.at(focusedIndex - topIndex);
|
|
4135
|
+
if (!focusedRow) {
|
|
4136
|
+
return '';
|
|
4137
|
+
}
|
|
4138
|
+
return focusedRow.rowKey;
|
|
4139
|
+
}, [focusedIndex, topIndex]);
|
|
4140
|
+
const onKeyDownHandler = (e) => {
|
|
4141
|
+
uuiComponents.handleDataSourceKeyboard({
|
|
4142
|
+
value: dataSourceState,
|
|
4143
|
+
onValueChange: handleDataSourceValueChange,
|
|
4144
|
+
listView: view,
|
|
4145
|
+
rows: dataRows,
|
|
4146
|
+
searchPosition: 'body',
|
|
4147
|
+
}, e);
|
|
4148
|
+
};
|
|
4030
4149
|
return (React__namespace.default.createElement(ModalBlocker, { ...props },
|
|
4031
4150
|
React__namespace.default.createElement(ModalWindow, { width: 600, height: 700, cx: css$D.body },
|
|
4032
4151
|
React__namespace.default.createElement(ModalHeader, { title: props.caption || i18n.pickerModal.headerTitle, onClose: () => props.abort() }),
|
|
4033
4152
|
React__namespace.default.createElement(FlexCell, { cx: css$D.subHeaderWrapper },
|
|
4034
4153
|
React__namespace.default.createElement(FlexRow, { vPadding: "24" },
|
|
4035
|
-
React__namespace.default.createElement(
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
searchPosition: 'body',
|
|
4041
|
-
}, e), autoFocus: true, placeholder: i18n.pickerModal.searchPlaceholder, rawProps: { dir: 'auto' } })),
|
|
4154
|
+
React__namespace.default.createElement(FocusLock.MoveFocusInside, { className: css$D.search },
|
|
4155
|
+
React__namespace.default.createElement(SearchInput, { ...dataSourceStateLens.prop('search').toProps(), onKeyDown: onKeyDownHandler, placeholder: i18n.pickerModal.searchPlaceholder, rawProps: {
|
|
4156
|
+
dir: 'auto',
|
|
4157
|
+
'aria-activedescendant': focusedRowId,
|
|
4158
|
+
} }))),
|
|
4042
4159
|
!isSingleSelect() && (React__namespace.default.createElement(Switch, { cx: css$D.switch, size: settings.pickerInput.sizes.body.footerSwitchMap[settings.pickerInput.sizes.body.row], ...getFooterProps().showSelected, isDisabled: isSearching || view.getSelectedRowsCount() < 1, label: "Show only selected" })),
|
|
4043
4160
|
props.renderFilter && React__namespace.default.createElement(FlexCell, { grow: 2 }, props.renderFilter(dataSourceStateLens.prop('filter').toProps()))),
|
|
4044
|
-
React__namespace.default.createElement(DataPickerBody, { ...getListProps(), value: dataSourceState, onValueChange: handleDataSourceValueChange, showSearch: false, getName: getName, rows: dataRows, renderRow: renderRow, renderEmpty: renderNotFound, size: settings.pickerInput.sizes.body.row }),
|
|
4161
|
+
React__namespace.default.createElement(DataPickerBody, { ...getListProps(), value: dataSourceState, onValueChange: handleDataSourceValueChange, showSearch: false, getName: getName, rows: dataRows, renderRow: renderRow, renderEmpty: renderNotFound, size: settings.pickerInput.sizes.body.row, onKeyDown: onKeyDownHandler }),
|
|
4045
4162
|
React__namespace.default.createElement(ModalFooter, null, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
|
|
4046
4163
|
}
|
|
4047
4164
|
|
|
4048
|
-
var css$C = {"tooltip":"
|
|
4165
|
+
var css$C = {"tooltip":"_9oGJQc","noShrink":"vgbsQr"};
|
|
4049
4166
|
|
|
4050
4167
|
const PickerTogglerTag = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
4051
4168
|
const tagProps = {
|
|
@@ -4057,14 +4174,14 @@ const PickerTogglerTag = /* @__PURE__ */React__namespace.forwardRef((props, ref)
|
|
|
4057
4174
|
if (props.isCollapsed) {
|
|
4058
4175
|
const collapsedRows = props.collapsedRows.map((row) => props.getName(row.value)).join(', ');
|
|
4059
4176
|
return (React__namespace.createElement(Tooltip, { key: "selected", content: collapsedRows, closeDelay: 150, closeOnMouseLeave: "boundary", cx: css$C.tooltip },
|
|
4060
|
-
React__namespace.createElement(Tag, { ref: ref, rawProps: { role: 'option' }, ...tagProps })));
|
|
4177
|
+
React__namespace.createElement(Tag, { ref: ref, rawProps: { role: 'option' }, ...tagProps, cx: css$C.noShrink })));
|
|
4061
4178
|
}
|
|
4062
4179
|
else {
|
|
4063
4180
|
return React__namespace.createElement(Tag, { ref: ref, rawProps: { role: 'option' }, ...tagProps });
|
|
4064
4181
|
}
|
|
4065
4182
|
});
|
|
4066
4183
|
|
|
4067
|
-
var css$B = {"root":"
|
|
4184
|
+
var css$B = {"root":"rAzO0P"};
|
|
4068
4185
|
|
|
4069
4186
|
const defaultMode = EditMode.FORM;
|
|
4070
4187
|
function applyPickerTogglerMods(mods) {
|
|
@@ -4134,7 +4251,7 @@ function PickerInputComponent(props, ref) {
|
|
|
4134
4251
|
const bodyHeight = uuiCore.isMobile() ? document.documentElement.clientHeight : props.dropdownHeight || settings.pickerInput.sizes.body.maxHeight;
|
|
4135
4252
|
const minBodyWidth = props.minBodyWidth || settings.pickerInput.sizes.body.minWidth;
|
|
4136
4253
|
const onKeyDown = (e) => handlePickerInputKeyboard(rows, e);
|
|
4137
|
-
return (React__namespace.default.createElement(PickerBodyMobileView, { title: props.entityName, onClose: () => toggleBodyOpening(false), cx: [props.bodyCx, 'uui-picker_input-body-wrapper'],
|
|
4254
|
+
return (React__namespace.default.createElement(PickerBodyMobileView, { title: props.entityName, onClose: () => toggleBodyOpening(false), cx: [props.bodyCx, 'uui-picker_input-body-wrapper'], width: dropdownProps.togglerWidth > minBodyWidth ? dropdownProps.togglerWidth : minBodyWidth, focusLock: true, shards: getSearchPosition() === 'input' ? [togglerRef] : undefined },
|
|
4138
4255
|
React__namespace.default.createElement(DataPickerBody, { ...dropdownProps, ...getListProps(), showSearch: getSearchPosition() === 'body', getName: getName, value: dataSourceState, onValueChange: handleDataSourceValueChange, rows: rows, maxHeight: bodyHeight, searchSize: props.size, selectionMode: props.selectionMode, renderNotFound: props.renderNotFound, renderEmpty: props.renderEmpty, renderRow: props.renderRow, onKeyDown: onKeyDown, minCharsToSearch: props.minCharsToSearch, fixedBodyPosition: props.fixedBodyPosition, searchDebounceDelay: props.searchDebounceDelay, rawProps: props.rawProps?.body, highlightSearchMatches: props.highlightSearchMatches, flattenSearchResults: view.getConfig().flattenSearchResults }),
|
|
4139
4256
|
renderFooter()));
|
|
4140
4257
|
};
|
|
@@ -4142,11 +4259,11 @@ function PickerInputComponent(props, ref) {
|
|
|
4142
4259
|
return (React__namespace.default.createElement(Dropdown, { renderTarget: (dropdownProps) => {
|
|
4143
4260
|
const targetProps = getTogglerProps();
|
|
4144
4261
|
return renderTarget({ ...dropdownProps, ...targetProps, renderItem });
|
|
4145
|
-
}, renderBody: (bodyProps) => renderBody(bodyProps), value: shouldShowBody(), onValueChange: !props.isDisabled && toggleBodyOpening, placement: props.dropdownPlacement, middleware: middleware, closeBodyOnTogglerHidden:
|
|
4262
|
+
}, renderBody: (bodyProps) => renderBody(bodyProps), value: shouldShowBody(), onValueChange: !props.isDisabled && toggleBodyOpening, placement: props.dropdownPlacement, middleware: middleware, closeBodyOnTogglerHidden: uuiCore.isMobile() ? false : props.closeBodyOnTogglerHidden, portalTarget: props.portalTarget, ref: togglerRef }));
|
|
4146
4263
|
}
|
|
4147
4264
|
const PickerInput = /* @__PURE__ */React__namespace.default.forwardRef(PickerInputComponent);
|
|
4148
4265
|
|
|
4149
|
-
var css$A = {"row":"
|
|
4266
|
+
var css$A = {"row":"IRYzzb"};
|
|
4150
4267
|
|
|
4151
4268
|
function PickerListRow(props) {
|
|
4152
4269
|
let label;
|
|
@@ -4166,7 +4283,7 @@ function PickerListRow(props) {
|
|
|
4166
4283
|
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));
|
|
4167
4284
|
}
|
|
4168
4285
|
|
|
4169
|
-
var css$z = {"root":"
|
|
4286
|
+
var css$z = {"root":"UM4vUK"};
|
|
4170
4287
|
|
|
4171
4288
|
function PickerList(props) {
|
|
4172
4289
|
const { context, view, onlySelectedView, getName, getEntityName, appendLastSelected, getSelectedIdsArray, buildRowsList, getMaxDefaultItems, getModalTogglerCaption, } = uuiComponents.usePickerList(props);
|
|
@@ -4201,7 +4318,7 @@ function PickerList(props) {
|
|
|
4201
4318
|
}, selectedRows)));
|
|
4202
4319
|
}
|
|
4203
4320
|
|
|
4204
|
-
var css$y = {"root":"
|
|
4321
|
+
var css$y = {"root":"dP7eDn","wrapper":"NW9Om7","align-widgets-top":"dfrvv-","alignWidgetsTop":"dfrvv-","align-widgets-center":"ai9SyS","alignWidgetsCenter":"ai9SyS"};
|
|
4205
4322
|
|
|
4206
4323
|
function DataTableCell(initialProps) {
|
|
4207
4324
|
const props = { ...initialProps };
|
|
@@ -4251,7 +4368,7 @@ function DataTableCell(initialProps) {
|
|
|
4251
4368
|
return React__namespace.createElement(uuiComponents.DataTableCell, { ...props });
|
|
4252
4369
|
}
|
|
4253
4370
|
|
|
4254
|
-
var css$x = {"root":"
|
|
4371
|
+
var css$x = {"root":"XbIJkD"};
|
|
4255
4372
|
|
|
4256
4373
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
4257
4374
|
// 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.
|
|
@@ -4267,7 +4384,7 @@ const DataTableRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.DataTableRow,
|
|
|
4267
4384
|
];
|
|
4268
4385
|
}, () => propsMods);
|
|
4269
4386
|
|
|
4270
|
-
var css$w = {"sorting-panel-container":"
|
|
4387
|
+
var css$w = {"sorting-panel-container":"_67mvhh","sortingPanelContainer":"_67mvhh"};
|
|
4271
4388
|
|
|
4272
4389
|
const SortingPanelImpl = ({ sortDirection, onSort }) => {
|
|
4273
4390
|
const sortAsc = React.useCallback(() => onSort(sortDirection === 'asc' ? undefined : 'asc'), [onSort]);
|
|
@@ -4287,7 +4404,7 @@ const ColumnHeaderDropdownImpl = (props) => {
|
|
|
4287
4404
|
};
|
|
4288
4405
|
const ColumnHeaderDropdown = /* @__PURE__ */React__namespace.default.memo(ColumnHeaderDropdownImpl);
|
|
4289
4406
|
|
|
4290
|
-
var css$v = {"root":"
|
|
4407
|
+
var css$v = {"root":"-jSBQe","caption-wrapper":"GWe86i","captionWrapper":"GWe86i","sort-icon":"P-3OKG","sortIcon":"P-3OKG","dropdown-icon":"xFkaX6","dropdownIcon":"xFkaX6","infoIcon":"DVOXmS","sortInActive":"dZf-ty","align-right":"QiKNM8","alignRight":"QiKNM8","align-center":"JCNoQ-","alignCenter":"JCNoQ-","caption":"yDy6h1","truncate":"EB-63z","upper-case":"jkDjHa","upperCase":"jkDjHa","checkbox":"FN2OBP","icon":"JDaLPL","fold-all-icon":"n-573A","foldAllIcon":"n-573A","cell-tooltip":"KMyw8k","cellTooltip":"KMyw8k","resizing-marker":"m-05GA","resizingMarker":"m-05GA","pinned-right":"Pyjecl","pinnedRight":"Pyjecl","draggable":"Li2F7g","ghost":"FRMvTF","is-dragged-out":"nTmRSy","isDraggedOut":"nTmRSy","dnd-marker-left":"_38h3Uu","dndMarkerLeft":"_38h3Uu","dnd-marker-right":"PyYdvz","dndMarkerRight":"PyYdvz","cell-tooltip-wrapper":"S4iNUD","cellTooltipWrapper":"S4iNUD","cell-tooltip-text":"qpaQ5D","cellTooltipText":"qpaQ5D","tooltip-caption":"okDXBx","tooltipCaption":"okDXBx","tooltip-info":"gl9OdB","tooltipInfo":"gl9OdB"};
|
|
4291
4408
|
|
|
4292
4409
|
class DataTableHeaderCell extends React__namespace.Component {
|
|
4293
4410
|
constructor() {
|
|
@@ -4298,7 +4415,7 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
4298
4415
|
this.getTooltipContent = (column) => (React__namespace.createElement("div", { className: uuiCore.cx(css$v.cellTooltipWrapper, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaptionTooltip) },
|
|
4299
4416
|
React__namespace.createElement(Text, { cx: [css$v.cellTooltipText, css$v.tooltipCaption] }, column.caption),
|
|
4300
4417
|
column.info && (React__namespace.createElement(Text, { cx: [css$v.cellTooltipText, css$v.tooltipInfo] }, column.info))));
|
|
4301
|
-
this.getColumnCaption = () => {
|
|
4418
|
+
this.getColumnCaption = (props, dropdownProps) => {
|
|
4302
4419
|
const renderTooltip = this.props.column.renderTooltip || this.getTooltipContent;
|
|
4303
4420
|
const captionCx = uuiCore.cx([
|
|
4304
4421
|
css$v.caption,
|
|
@@ -4307,12 +4424,24 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
4307
4424
|
'uui-typography-inline',
|
|
4308
4425
|
this.props.size >= '48' && css$v.truncate,
|
|
4309
4426
|
]);
|
|
4427
|
+
const handleFilterOpen = (e) => {
|
|
4428
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
4429
|
+
dropdownProps.onClick(e);
|
|
4430
|
+
e.preventDefault();
|
|
4431
|
+
}
|
|
4432
|
+
};
|
|
4433
|
+
const handleSort = (e) => {
|
|
4434
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
4435
|
+
props.toggleSort(e);
|
|
4436
|
+
e.preventDefault();
|
|
4437
|
+
}
|
|
4438
|
+
};
|
|
4310
4439
|
return (React__namespace.createElement("div", { className: uuiCore.cx(css$v.captionWrapper, css$v['align-' + this.props.column.textAlign], uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaptionWrapper) },
|
|
4311
|
-
React__namespace.createElement(Tooltip, { placement: "top", color: "inverted", content: renderTooltip(this.props.column), cx: [css$v.cellTooltip, 'uui-dt-header-tooltip'], openDelay: 600 },
|
|
4440
|
+
React__namespace.createElement(Tooltip, { placement: "top", color: "inverted", content: renderTooltip(this.props.column), cx: [css$v.cellTooltip, 'uui-dt-header-tooltip'], openDelay: 600, closeOnMouseLeave: "boundary" },
|
|
4312
4441
|
React__namespace.createElement("div", { key: "text", className: captionCx }, this.props.column.caption)),
|
|
4313
|
-
this.props.column.isSortable && (!this.props.column.renderFilter || this.props.sortDirection) && (React__namespace.createElement(
|
|
4442
|
+
this.props.column.isSortable && (!this.props.column.renderFilter || this.props.sortDirection) && (React__namespace.createElement(uuiComponents.ControlIcon, { key: "sort", cx: uuiCore.cx(css$v.icon, css$v.sortIcon, !this.props.sortDirection && css$v.sortInActive, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderSortIcon), icon: settings.dataTable.icons.header[this.props.sortDirection === 'desc' ? 'descSortIcon' : this.props.sortDirection === 'asc' ? 'ascSortIcon' : 'defaultSortIcon'], onKeyDown: !this.props.column.renderFilter ? handleSort : undefined })),
|
|
4314
4443
|
this.props.isFilterActive && (React__namespace.createElement(IconButton, { key: "filter", cx: uuiCore.cx(css$v.icon, !this.props.sortDirection && css$v.filterIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderFilterIcon), color: "neutral", icon: settings.dataTable.icons.header.filterIcon })),
|
|
4315
|
-
this.props.column.renderFilter && (React__namespace.createElement(
|
|
4444
|
+
this.props.column.renderFilter && (React__namespace.createElement(uuiComponents.ControlIcon, { key: "dropdown", cx: uuiCore.cx(css$v.icon, css$v.dropdownIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderDropdownIcon), icon: settings.dataTable.icons.header[this.state.isDropdownOpen ? 'openedDropdownIcon' : 'dropdownIcon'], onKeyDown: handleFilterOpen }))));
|
|
4316
4445
|
};
|
|
4317
4446
|
this.renderHeaderCheckbox = () => {
|
|
4318
4447
|
if (this.props.selectAll && this.props.isFirstColumn) {
|
|
@@ -4324,7 +4453,7 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
4324
4453
|
return (React__namespace.createElement(Tooltip, { content: this.props.areAllFolded
|
|
4325
4454
|
? i18n.tables.columnHeader.expandAllTooltip
|
|
4326
4455
|
: i18n.tables.columnHeader.collapseAllTooltip },
|
|
4327
|
-
React__namespace.createElement(
|
|
4456
|
+
React__namespace.createElement(uuiComponents.ControlIcon, { cx: uuiCore.cx(css$v.icon, css$v.foldAllIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderFoldAllIcon), icon: settings.dataTable.icons.header[this.props.areAllFolded ? 'unfoldIcon' : 'foldIcon'], onClick: this.props.onFoldAll, rawProps: {
|
|
4328
4457
|
'aria-label': this.props.areAllFolded ? 'Expand All' : 'Collapse All',
|
|
4329
4458
|
'aria-expanded': !!this.props.areAllFolded,
|
|
4330
4459
|
} })));
|
|
@@ -4368,7 +4497,7 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
4368
4497
|
}, style: computeStyles },
|
|
4369
4498
|
this.renderHeaderCheckbox(),
|
|
4370
4499
|
this.renderFoldAllIcon(),
|
|
4371
|
-
this.getColumnCaption(),
|
|
4500
|
+
this.getColumnCaption(props, dropdownProps),
|
|
4372
4501
|
isResizable && this.renderResizingMarker(props)));
|
|
4373
4502
|
};
|
|
4374
4503
|
this.renderCellWithFilter = (props) => (React__namespace.createElement(ColumnHeaderDropdown, { isOpen: this.state.isDropdownOpen, isSortable: this.props.column.isSortable, renderTarget: (dropdownProps) => this.renderCellContent(props, dropdownProps), renderFilter: this.props.renderFilter, onSort: this.props.onSort, sortDirection: this.props.sortDirection, onOpenChange: (isDropdownOpen) => this.setState({ isDropdownOpen }), title: this.props.column.caption }));
|
|
@@ -4381,7 +4510,7 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
4381
4510
|
}
|
|
4382
4511
|
}
|
|
4383
4512
|
|
|
4384
|
-
var css$u = {"root":"
|
|
4513
|
+
var css$u = {"root":"b8QkZF","caption-wrapper":"EeCWH9","captionWrapper":"EeCWH9","align-center":"tpVIVy","alignCenter":"tpVIVy","caption":"lYE5iK","truncate":"-YgWfh","upper-case":"RdSUl2","upperCase":"RdSUl2","group-cell-tooltip":"WfKpF3","groupCellTooltip":"WfKpF3","group-cell-tooltip-wrapper":"RRWwhc","groupCellTooltipWrapper":"RRWwhc","group-cell-tooltip-text":"fLrR4k","groupCellTooltipText":"fLrR4k","tooltip-caption":"W-Yk1r","tooltipCaption":"W-Yk1r","tooltip-info":"-na-FV","tooltipInfo":"-na-FV"};
|
|
4385
4514
|
|
|
4386
4515
|
class DataTableHeaderGroupCell extends React__namespace.Component {
|
|
4387
4516
|
constructor() {
|
|
@@ -4421,13 +4550,15 @@ class DataTableHeaderGroupCell extends React__namespace.Component {
|
|
|
4421
4550
|
}
|
|
4422
4551
|
}
|
|
4423
4552
|
|
|
4424
|
-
var css$t = {"root":"
|
|
4553
|
+
var css$t = {"root":"C-qhBY"};
|
|
4425
4554
|
|
|
4426
|
-
const DataTableHeaderRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.DataTableHeaderRow, () => [css$t.root, 'uui-dt-vars'], (mods) =>
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
}))
|
|
4555
|
+
const DataTableHeaderRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.DataTableHeaderRow, () => [css$t.root, 'uui-dt-vars'], (mods) => {
|
|
4556
|
+
return ({
|
|
4557
|
+
renderCell: (props) => (React__namespace.createElement(DataTableHeaderCell, { ...props, size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key, columnsGap: mods.columnsGap })),
|
|
4558
|
+
renderGroupCell: (props) => (React__namespace.createElement(DataTableHeaderGroupCell, { ...props, size: mods.size, textCase: mods.textCase || 'normal', key: props.key, columnsGap: mods.columnsGap })),
|
|
4559
|
+
renderConfigButton: () => (React__namespace.createElement(uuiComponents.ControlIcon, { key: "configuration", onClick: mods.onConfigButtonClick, size: settings.dataTable.sizes.header.iconMap[mods.size || settings.dataTable.sizes.header.row], cx: ['config-icon'], icon: settings.dataTable.icons.header.configIcon })),
|
|
4560
|
+
});
|
|
4561
|
+
});
|
|
4431
4562
|
|
|
4432
4563
|
const normalizeFilterWithPredicates = (filter) => {
|
|
4433
4564
|
if (!filter) {
|
|
@@ -4517,7 +4648,7 @@ const UUI_FILTERS_PANEL_ITEM_TOGGLER_SELECTION = 'uui-filters-panel-item-toggler
|
|
|
4517
4648
|
const UUI_FILTERS_PANEL_ITEM_TOGGLER_POSTFIX = 'uui-filters-panel-item-toggler-postfix';
|
|
4518
4649
|
const UUI_FILTERS_PANEL_BODY_FOOTER = 'uui-filters-panel-item-footer';
|
|
4519
4650
|
|
|
4520
|
-
var css$s = {"body":"
|
|
4651
|
+
var css$s = {"body":"r5eb0W","header":"sc9W3A","title":"ytKWyK","removeButton":"_5iNUcu","with-search":"xRg-SM","withSearch":"xRg-SM"};
|
|
4521
4652
|
|
|
4522
4653
|
function FilterColumnBody(props) {
|
|
4523
4654
|
const [predicate, setPredicate] = React.useState(getDefaultPredicate(props.predicates, props.value));
|
|
@@ -4541,7 +4672,7 @@ function FilterColumnBody(props) {
|
|
|
4541
4672
|
return props.predicates?.length > 0 && (React__namespace.default.createElement("div", { className: css$s.header },
|
|
4542
4673
|
React__namespace.default.createElement(FilterPredicatePanel, { ...panelProps })));
|
|
4543
4674
|
};
|
|
4544
|
-
return (React__namespace.default.createElement(DropdownContainer, { style: { minWidth: '360px' }, cx: [css$s.body, UUI_FILTERS_PANEL_ITEM_BODY], ...props },
|
|
4675
|
+
return (React__namespace.default.createElement(DropdownContainer, { style: { minWidth: '360px' }, cx: [css$s.body, UUI_FILTERS_PANEL_ITEM_BODY], ...props, focusLock: false },
|
|
4545
4676
|
renderHeader(),
|
|
4546
4677
|
React__namespace.default.createElement(FilterItemBody, { ...props, selectedPredicate: predicate, value: getValue(predicate, props.value), onValueChange: onValueChange })));
|
|
4547
4678
|
}
|
|
@@ -4578,7 +4709,7 @@ const useColumnsWithFilters = (initialColumns, filters) => {
|
|
|
4578
4709
|
return columns;
|
|
4579
4710
|
};
|
|
4580
4711
|
|
|
4581
|
-
var css$r = {"unpin-icon":"
|
|
4712
|
+
var css$r = {"unpin-icon":"fyTZB9","unpinIcon":"fyTZB9","pin-toggler-icon":"AgLLkb","pinTogglerIcon":"AgLLkb"};
|
|
4582
4713
|
|
|
4583
4714
|
function PinIconButton(props) {
|
|
4584
4715
|
const i18nLocal = i18n.tables.columnsConfigurationModal;
|
|
@@ -4629,7 +4760,7 @@ function getUnpinIcon(params) {
|
|
|
4629
4760
|
}
|
|
4630
4761
|
}
|
|
4631
4762
|
|
|
4632
|
-
var css$q = {"row-wrapper":"
|
|
4763
|
+
var css$q = {"row-wrapper":"n-77Cx","rowWrapper":"n-77Cx","pin-icon-button":"_7g3x2q","pinIconButton":"_7g3x2q","not-pinned":"qJ6hR7","notPinned":"qJ6hR7","checkbox":"K3PYjf","drag-handle":"wJt1Hm","dragHandle":"wJt1Hm","dnd-disabled":"rje-AG","dndDisabled":"rje-AG"};
|
|
4633
4764
|
|
|
4634
4765
|
const ColumnRow = /* @__PURE__ */React__namespace.memo(function ColumnRow(props) {
|
|
4635
4766
|
const { column } = props;
|
|
@@ -4663,7 +4794,7 @@ const ColumnRow = /* @__PURE__ */React__namespace.memo(function ColumnRow(props)
|
|
|
4663
4794
|
return (React__namespace.createElement(uuiCore.DndActor, { key: column.key, srcData: isDndAllowed && data, dstData: data, canAcceptDrop: onCanAcceptDrop, onDrop: onDrop, render: renderContent }));
|
|
4664
4795
|
});
|
|
4665
4796
|
|
|
4666
|
-
var css$p = {"root":"
|
|
4797
|
+
var css$p = {"root":"_6j0vWm","main-panel":"N1g8-O","mainPanel":"N1g8-O","group":"_8aOzCN","group-title":"_0IaodE","groupTitle":"_0IaodE","group-items":"xY1dN2","groupItems":"xY1dN2","no-data":"CkAMjp","noData":"CkAMjp","no-data-title":"nhPdaX","noDataTitle":"nhPdaX","no-data-sub-title":"bHrLrS","noDataSubTitle":"bHrLrS","h-divider":"N1HPmd","hDivider":"N1HPmd","search-area":"fYJvzs","searchArea":"fYJvzs","subgroup-accordion":"lknJPY","subgroupAccordion":"lknJPY","subgroup":"G3uIgY","subgroup-title":"vnIJI7","subgroupTitle":"vnIJI7"};
|
|
4667
4798
|
|
|
4668
4799
|
const renderGroupTitle = (title, amount) => (React__namespace.createElement(FlexRow, { cx: css$p.group },
|
|
4669
4800
|
React__namespace.createElement(Text, { size: "none", cx: css$p.groupTitle }, title),
|
|
@@ -4766,7 +4897,7 @@ const getChildrenAndRest = (row, rows) => {
|
|
|
4766
4897
|
return [children, rest];
|
|
4767
4898
|
};
|
|
4768
4899
|
|
|
4769
|
-
var css$o = {"listContainer":"
|
|
4900
|
+
var css$o = {"listContainer":"yHYCYS","header":"bhxwj5","group":"cTKbZY","stickyHeader":"_52acyt"};
|
|
4770
4901
|
|
|
4771
4902
|
function DataRowsGroup({ row, childRows, renderRow, top = 1, }) {
|
|
4772
4903
|
const rowRef = React.useRef(undefined);
|
|
@@ -4806,7 +4937,7 @@ function DataRowsContainer({ estimatedHeight, listContainerRef, offsetY, rows, r
|
|
|
4806
4937
|
React__namespace.default.createElement(DataRowsGroups, { rows: rows, renderRow: renderRow, top: headerRef?.current?.clientHeight }))));
|
|
4807
4938
|
}
|
|
4808
4939
|
|
|
4809
|
-
var css$n = {"root":"
|
|
4940
|
+
var css$n = {"root":"S37H5p","sticky-header":"XZWu-w","stickyHeader":"XZWu-w","no-results":"iLwqmc","noResults":"iLwqmc","icon":"-hkDaN","title":"NSqUzl"};
|
|
4810
4941
|
|
|
4811
4942
|
function DataTable(props) {
|
|
4812
4943
|
const { uuiModals } = uuiCore.useUuiContext();
|
|
@@ -4855,7 +4986,7 @@ function DataTable(props) {
|
|
|
4855
4986
|
: (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 })))));
|
|
4856
4987
|
}
|
|
4857
4988
|
|
|
4858
|
-
var css$m = {"root":"
|
|
4989
|
+
var css$m = {"root":"dDgvaY","title-wrapper":"b-yyDG","titleWrapper":"b-yyDG","title":"pqoCsy","text-wrapper":"cTwSWr","textWrapper":"cTwSWr","selection":"Z48drn","postfix":"wcgkx6","selected":"rSK1oZ"};
|
|
4859
4990
|
|
|
4860
4991
|
const FilterPanelItemToggler = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
4861
4992
|
const togglerPickerOpened = (e) => {
|
|
@@ -4954,7 +5085,7 @@ function FilterPickerBody({ highlightSearchMatches = true, ...restProps }) {
|
|
|
4954
5085
|
rows,
|
|
4955
5086
|
}, e);
|
|
4956
5087
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
4957
|
-
React__namespace.createElement(DataPickerBody, { ...getListProps(), selectionMode: props.selectionMode, rows: rows, maxHeight: maxHeight, maxWidth: maxWidth, searchSize: settings.pickerInput.sizes.body.row, showSearch: props.showSearch ?? true, getName: getName, value: dataSourceState, onValueChange: handleDataSourceValueChange, renderRow: props.renderRow, onKeyDown: onKeyDown, minCharsToSearch: props.minCharsToSearch, searchDebounceDelay: props.searchDebounceDelay, rawProps: props.rawProps?.body, highlightSearchMatches: props.highlightSearchMatches, flattenSearchResults: view.getConfig().flattenSearchResults }),
|
|
5088
|
+
React__namespace.createElement(DataPickerBody, { ...getListProps(), selectionMode: props.selectionMode, rows: rows, maxHeight: maxHeight, maxWidth: maxWidth, searchSize: settings.pickerInput.sizes.body.row, showSearch: props.showSearch ?? true, getName: getName, value: dataSourceState, onValueChange: handleDataSourceValueChange, renderRow: props.renderRow, onKeyDown: onKeyDown, minCharsToSearch: props.minCharsToSearch, searchDebounceDelay: props.searchDebounceDelay, rawProps: props.rawProps?.body, highlightSearchMatches: props.highlightSearchMatches, flattenSearchResults: view.getConfig().flattenSearchResults, autoFocusSearch: false }),
|
|
4958
5089
|
renderFooter()));
|
|
4959
5090
|
};
|
|
4960
5091
|
return renderBody();
|
|
@@ -5080,7 +5211,7 @@ function FilterRangeDatePickerBody(props) {
|
|
|
5080
5211
|
renderFooter()));
|
|
5081
5212
|
}
|
|
5082
5213
|
|
|
5083
|
-
var css$l = {"container":"
|
|
5214
|
+
var css$l = {"container":"ft2qC5"};
|
|
5084
5215
|
|
|
5085
5216
|
function FilterNumericBody(props) {
|
|
5086
5217
|
const isInRangePredicate = props?.selectedPredicate === 'inRange' || props?.selectedPredicate === 'notInRange';
|
|
@@ -5391,7 +5522,7 @@ function FiltersToolbarImpl(props) {
|
|
|
5391
5522
|
}
|
|
5392
5523
|
const FiltersPanel = /* @__PURE__ */React__namespace.default.memo(FiltersToolbarImpl);
|
|
5393
5524
|
|
|
5394
|
-
var css$k = {"delete-button":"
|
|
5525
|
+
var css$k = {"delete-button":"_-5hPFw","deleteButton":"_-5hPFw","tab-button":"VLF6b0","tabButton":"VLF6b0","targetOpen":"lWjwow"};
|
|
5395
5526
|
|
|
5396
5527
|
function PresetActionsDropdown(props) {
|
|
5397
5528
|
const { uuiNotifications } = uuiCore.useUuiContext();
|
|
@@ -5467,7 +5598,7 @@ const UUI_PRESETS_PANEL_MORE_BUTTON = 'uui-presets-panel-more-button';
|
|
|
5467
5598
|
const UUI_PRESETS_PANEL_INPUT = 'uui-presets-panel-input';
|
|
5468
5599
|
const UUI_PRESETS_PANEL_PRESET = 'uui-presets-panel-preset';
|
|
5469
5600
|
|
|
5470
|
-
var css$j = {"preset-input-cell":"
|
|
5601
|
+
var css$j = {"preset-input-cell":"QUGmr6","presetInputCell":"QUGmr6","preset-input":"SPgwC-","presetInput":"SPgwC-"};
|
|
5471
5602
|
|
|
5472
5603
|
function PresetInput(props) {
|
|
5473
5604
|
const [presetCaption, setPresetCaption] = React.useState(props.preset?.name || '');
|
|
@@ -5494,7 +5625,7 @@ function PresetInput(props) {
|
|
|
5494
5625
|
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 })));
|
|
5495
5626
|
}
|
|
5496
5627
|
|
|
5497
|
-
var css$i = {"preset":"
|
|
5628
|
+
var css$i = {"preset":"PZ-zOo","activePreset":"PDkkM9"};
|
|
5498
5629
|
|
|
5499
5630
|
function Preset(props) {
|
|
5500
5631
|
const [isRenamePreset, setIsRenamePreset] = React.useState(false);
|
|
@@ -5519,7 +5650,7 @@ function Preset(props) {
|
|
|
5519
5650
|
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 }))));
|
|
5520
5651
|
}
|
|
5521
5652
|
|
|
5522
|
-
var css$h = {"divider":"
|
|
5653
|
+
var css$h = {"divider":"WOmaBb","dropdownDeleteIcon":"T4rp4W","presetsWrapper":"ZNQgBM","addPresetContainer":"QMqXqP","dropContainer":"_1bSjc9"};
|
|
5523
5654
|
|
|
5524
5655
|
function PresetsPanel(props) {
|
|
5525
5656
|
const [isAddingPreset, setIsAddingPreset] = React.useState(false);
|
|
@@ -5568,9 +5699,9 @@ function PresetsPanel(props) {
|
|
|
5568
5699
|
React__namespace.default.createElement(uuiComponents.AdaptivePanel, { items: getPanelItems() }))));
|
|
5569
5700
|
}
|
|
5570
5701
|
|
|
5571
|
-
var css$g = {"root":"
|
|
5702
|
+
var css$g = {"root":"t8-NPo"};
|
|
5572
5703
|
|
|
5573
|
-
var css$f = {"root":"
|
|
5704
|
+
var css$f = {"root":"ewXK6-","burger-content":"kdHv-a","burgerContent":"kdHv-a"};
|
|
5574
5705
|
|
|
5575
5706
|
var _path$3;
|
|
5576
5707
|
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); }
|
|
@@ -5613,7 +5744,7 @@ var SvgNavigationArrowDownOutline = function SvgNavigationArrowDownOutline(props
|
|
|
5613
5744
|
};
|
|
5614
5745
|
var ForwardRef$2 = /*#__PURE__*/React.forwardRef(SvgNavigationArrowDownOutline);
|
|
5615
5746
|
|
|
5616
|
-
var css$e = {"root":"
|
|
5747
|
+
var css$e = {"root":"_8Ilk6n","button-primary":"QPa-NJ","buttonPrimary":"QPa-NJ","button-secondary":"fRAmr2","buttonSecondary":"fRAmr2","hasIcon":"KFAERd","dropdown":"p3t6FG"};
|
|
5617
5748
|
|
|
5618
5749
|
function applyBurgerButtonMods(props) {
|
|
5619
5750
|
return [
|
|
@@ -5638,13 +5769,13 @@ const BurgerButton = /* @__PURE__ */React__namespace.default.forwardRef((props,
|
|
|
5638
5769
|
}, dropdownIcon: ForwardRef$2 }));
|
|
5639
5770
|
});
|
|
5640
5771
|
|
|
5641
|
-
var css$d = {"search-input":"
|
|
5772
|
+
var css$d = {"search-input":"_1KAIub","searchInput":"_1KAIub"};
|
|
5642
5773
|
|
|
5643
5774
|
function BurgerSearch(props) {
|
|
5644
5775
|
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 }));
|
|
5645
5776
|
}
|
|
5646
5777
|
|
|
5647
|
-
var css$c = {"root":"
|
|
5778
|
+
var css$c = {"root":"ROgiG4","group-header":"_6S946v","groupHeader":"_6S946v","group-name":"iLGH3Z","groupName":"iLGH3Z","line":"Mcdy7O"};
|
|
5648
5779
|
|
|
5649
5780
|
function BurgerGroupHeader(props) {
|
|
5650
5781
|
return (React__namespace.createElement("div", { className: cx__default.default(css$c.root, css$c.groupHeader, 'uui-burger-group-header') },
|
|
@@ -5652,7 +5783,7 @@ function BurgerGroupHeader(props) {
|
|
|
5652
5783
|
React__namespace.createElement("span", { className: css$c.groupName }, props.caption)));
|
|
5653
5784
|
}
|
|
5654
5785
|
|
|
5655
|
-
var css$b = {"root":"
|
|
5786
|
+
var css$b = {"root":"Sk6zpH","type-primary":"qIfIC6","typePrimary":"qIfIC6","type-secondary":"_1kinCy","typeSecondary":"_1kinCy"};
|
|
5656
5787
|
|
|
5657
5788
|
const MainMenuButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5658
5789
|
const { type, ...clickableProps } = props;
|
|
@@ -5680,7 +5811,7 @@ const MainMenuButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) =
|
|
|
5680
5811
|
props.isDropdown && (React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$P, flipY: props.isOpen }))));
|
|
5681
5812
|
});
|
|
5682
5813
|
|
|
5683
|
-
var css$a = {"dropdown-body":"
|
|
5814
|
+
var css$a = {"dropdown-body":"tUmYE9","dropdownBody":"tUmYE9"};
|
|
5684
5815
|
|
|
5685
5816
|
function MainMenuDropdown(props) {
|
|
5686
5817
|
const handleEscape = (e, onClose, isOpen) => {
|
|
@@ -5688,10 +5819,13 @@ function MainMenuDropdown(props) {
|
|
|
5688
5819
|
onClose();
|
|
5689
5820
|
}
|
|
5690
5821
|
};
|
|
5691
|
-
return (React__namespace.default.createElement(uuiComponents.Dropdown, { renderTarget: (dropdownProps) => (React__namespace.default.createElement(MainMenuButton, { caption: props.caption, ...dropdownProps, rawProps:
|
|
5822
|
+
return (React__namespace.default.createElement(uuiComponents.Dropdown, { renderTarget: (dropdownProps) => (React__namespace.default.createElement(MainMenuButton, { caption: props.caption, ...dropdownProps, rawProps: {
|
|
5823
|
+
'aria-haspopup': 'menu',
|
|
5824
|
+
...props.rawProps,
|
|
5825
|
+
}, isActive: props.isActive, isDropdown: true })), renderBody: (dropdownBodyProps) => (React__namespace.default.createElement(FocusLock__default.default, { returnFocus: true, persistentFocus: true, lockProps: {
|
|
5692
5826
|
onKeyDown: (e) => handleEscape(e, dropdownBodyProps.onClose, dropdownBodyProps.isOpen),
|
|
5693
5827
|
} },
|
|
5694
|
-
React__namespace.default.createElement("div", { className: cx__default.default(css$a.dropdownBody, 'uui-main_menu-dropdown', props.cx) }, props.renderBody({ ...dropdownBodyProps })))), placement: "bottom-start" }));
|
|
5828
|
+
React__namespace.default.createElement("div", { className: cx__default.default(css$a.dropdownBody, 'uui-main_menu-dropdown', props.cx), role: "menu" }, props.renderBody({ ...dropdownBodyProps })))), placement: "bottom-start" }));
|
|
5695
5829
|
}
|
|
5696
5830
|
|
|
5697
5831
|
function applyMainMenuMods() {
|
|
@@ -5723,12 +5857,12 @@ var SvgNavigationGlobalMenuOutlineOutline = function SvgNavigationGlobalMenuOutl
|
|
|
5723
5857
|
};
|
|
5724
5858
|
var ForwardRef$1 = /*#__PURE__*/React.forwardRef(SvgNavigationGlobalMenuOutlineOutline);
|
|
5725
5859
|
|
|
5726
|
-
var css$9 = {"global-menu-btn":"
|
|
5860
|
+
var css$9 = {"global-menu-btn":"iAWp8k","globalMenuBtn":"iAWp8k","global-menu-icon":"zh80jS","globalMenuIcon":"zh80jS"};
|
|
5727
5861
|
|
|
5728
5862
|
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 },
|
|
5729
5863
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 36, icon: ForwardRef$1, cx: css$9.globalMenuIcon }))));
|
|
5730
5864
|
|
|
5731
|
-
var css$8 = {"container":"
|
|
5865
|
+
var css$8 = {"container":"_0rzPa1","open":"NSis8h","folding-arrow":"JUNRfE","foldingArrow":"JUNRfE"};
|
|
5732
5866
|
|
|
5733
5867
|
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 },
|
|
5734
5868
|
React__namespace.createElement(uuiComponents.Avatar, { size: "36", img: props.avatarUrl }),
|
|
@@ -5736,15 +5870,15 @@ const MainMenuAvatar = /* @__PURE__ */React__namespace.forwardRef((props, ref) =
|
|
|
5736
5870
|
props.isDropdown && (React__namespace.createElement("div", null,
|
|
5737
5871
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, icon: ForwardRef$P, flipY: props.isOpen, cx: css$8.foldingArrow }))))));
|
|
5738
5872
|
|
|
5739
|
-
var css$7 = {"search-input":"
|
|
5873
|
+
var css$7 = {"search-input":"grY23e","searchInput":"grY23e"};
|
|
5740
5874
|
|
|
5741
5875
|
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 })) })));
|
|
5742
5876
|
|
|
5743
|
-
var css$6 = {"container":"
|
|
5877
|
+
var css$6 = {"container":"qZaHuG"};
|
|
5744
5878
|
|
|
5745
5879
|
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 })));
|
|
5746
5880
|
|
|
5747
|
-
var css$5 = {"root":"
|
|
5881
|
+
var css$5 = {"root":"_4kJk2f"};
|
|
5748
5882
|
|
|
5749
5883
|
const Anchor = /* @__PURE__ */uuiCore.withMods(uuiComponents.Anchor, () => [css$5.root]);
|
|
5750
5884
|
|
|
@@ -5802,7 +5936,7 @@ var SvgFileCloudUploadFill = function SvgFileCloudUploadFill(props, ref) {
|
|
|
5802
5936
|
};
|
|
5803
5937
|
var ForwardRef = /*#__PURE__*/React.forwardRef(SvgFileCloudUploadFill);
|
|
5804
5938
|
|
|
5805
|
-
var css$4 = {"root":"
|
|
5939
|
+
var css$4 = {"root":"P3LwFi","drop-start":"_43ADA7","dropStart":"_43ADA7","drop-over":"isUQjN","dropOver":"isUQjN","link":"xBHuf8","drop-area":"UklNoo","dropArea":"UklNoo","drop-caption":"hIC9Rp","dropCaption":"hIC9Rp","icon-blue":"GYk5m-","iconBlue":"GYk5m-"};
|
|
5806
5940
|
|
|
5807
5941
|
function DropSpot(props) {
|
|
5808
5942
|
const getInfoText = typeof props.infoText === 'string'
|
|
@@ -5820,7 +5954,7 @@ function DropSpot(props) {
|
|
|
5820
5954
|
return React__namespace.createElement(uuiComponents.DropSpot, { render: renderAttachmentArea, onFilesDropped: props.onUploadFiles });
|
|
5821
5955
|
}
|
|
5822
5956
|
|
|
5823
|
-
var css$3 = {"root":"
|
|
5957
|
+
var css$3 = {"root":"c9yGY-"};
|
|
5824
5958
|
|
|
5825
5959
|
const SvgCircleProgress = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5826
5960
|
const outsetRadius = props.size / 2 - 1;
|
|
@@ -5831,7 +5965,7 @@ const SvgCircleProgress = /* @__PURE__ */React__namespace.forwardRef((props, ref
|
|
|
5831
5965
|
React__namespace.createElement("circle", { strokeWidth: 1, fill: "transparent", r: outsetRadius, cx: props.size / 2, cy: props.size / 2 })));
|
|
5832
5966
|
});
|
|
5833
5967
|
|
|
5834
|
-
var css$2 = {"root":"
|
|
5968
|
+
var css$2 = {"root":"_1s2EcE","file-name":"PNcc3A","fileName":"PNcc3A","default-color":"I540bP","defaultColor":"I540bP","doc-color":"cnpKh5","docColor":"cnpKh5","xls-color":"Jh2HaV","xlsColor":"Jh2HaV","pdf-color":"eE2Hd8","pdfColor":"eE2Hd8","movie-color":"J9PtIz","movieColor":"J9PtIz","img-color":"LKF7o4","imgColor":"LKF7o4","mov-color":"kWdhb2","movColor":"kWdhb2","error-block":"_1CjXRG","errorBlock":"_1CjXRG","icons-block":"YYrn5R","iconsBlock":"YYrn5R"};
|
|
5835
5969
|
|
|
5836
5970
|
const FileCard = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5837
5971
|
const [isLoadingShow, setIsLoadingShow] = React__namespace.useState(true);
|
|
@@ -5916,41 +6050,41 @@ const getRecoveryMessageConfig = () => ({
|
|
|
5916
6050
|
});
|
|
5917
6051
|
const getErrorPageConfig = () => ({
|
|
5918
6052
|
notFound: {
|
|
5919
|
-
imageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-
|
|
5920
|
-
mobileImageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-
|
|
6053
|
+
imageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-2025/404.svg',
|
|
6054
|
+
mobileImageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-2025/404.svg',
|
|
5921
6055
|
title: i18n.errorHandler.errorPageConfig.notFound.title,
|
|
5922
6056
|
subtitle: i18n.errorHandler.errorPageConfig.notFound.subtitle,
|
|
5923
6057
|
},
|
|
5924
6058
|
permissionDenied: {
|
|
5925
|
-
imageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-
|
|
5926
|
-
mobileImageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-
|
|
6059
|
+
imageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-2025/403.svg',
|
|
6060
|
+
mobileImageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-2025/403.svg',
|
|
5927
6061
|
title: i18n.errorHandler.errorPageConfig.permissionDenied.title,
|
|
5928
6062
|
subtitle: i18n.errorHandler.errorPageConfig.permissionDenied.subtitle,
|
|
5929
6063
|
},
|
|
5930
6064
|
serverError: {
|
|
5931
|
-
imageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-
|
|
5932
|
-
mobileImageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-
|
|
6065
|
+
imageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-2025/500.svg',
|
|
6066
|
+
mobileImageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-2025/500.svg',
|
|
5933
6067
|
title: i18n.errorHandler.errorPageConfig.serverError.title,
|
|
5934
6068
|
subtitle: i18n.errorHandler.errorPageConfig.serverError.subtitle,
|
|
5935
6069
|
supportLink: i18n.errorHandler.supportMessage,
|
|
5936
6070
|
},
|
|
5937
6071
|
serviceUnavailable: {
|
|
5938
|
-
imageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-
|
|
5939
|
-
mobileImageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-
|
|
6072
|
+
imageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-2025/503.svg',
|
|
6073
|
+
mobileImageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-2025/503.svg',
|
|
5940
6074
|
title: i18n.errorHandler.errorPageConfig.serviceUnavailable.title,
|
|
5941
6075
|
subtitle: i18n.errorHandler.errorPageConfig.serviceUnavailable.subtitle,
|
|
5942
6076
|
supportLink: i18n.errorHandler.supportMessage,
|
|
5943
6077
|
},
|
|
5944
6078
|
default: {
|
|
5945
|
-
imageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-
|
|
5946
|
-
mobileImageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-
|
|
6079
|
+
imageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-2025/Something went wrong.svg',
|
|
6080
|
+
mobileImageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-2025/Something went wrong.svg',
|
|
5947
6081
|
title: i18n.errorHandler.errorPageConfig.default.title,
|
|
5948
6082
|
subtitle: i18n.errorHandler.errorPageConfig.default.subtitle,
|
|
5949
6083
|
supportLink: i18n.errorHandler.supportMessage,
|
|
5950
6084
|
},
|
|
5951
6085
|
});
|
|
5952
6086
|
|
|
5953
|
-
var css$1 = {"container":"
|
|
6087
|
+
var css$1 = {"container":"H9pVTU"};
|
|
5954
6088
|
|
|
5955
6089
|
const ErrorPage = (props) => {
|
|
5956
6090
|
const isMobileScreen = uuiCore.isMobile();
|
|
@@ -5962,7 +6096,7 @@ const ErrorPage = (props) => {
|
|
|
5962
6096
|
props?.supportLink && React__namespace.default.createElement("div", { className: "uui-error-support-link" }, props?.supportLink))));
|
|
5963
6097
|
};
|
|
5964
6098
|
|
|
5965
|
-
var css = {"recovery-spinner":"
|
|
6099
|
+
var css = {"recovery-spinner":"VDllLm","recoverySpinner":"VDllLm","recovery-message":"yPHBDn","recoveryMessage":"yPHBDn","modal-blocker":"jNKgwb","modalBlocker":"jNKgwb","modalFadeIn":"gp5i0M"};
|
|
5966
6100
|
|
|
5967
6101
|
function ErrorHandler(props) {
|
|
5968
6102
|
const { uuiNotifications, uuiModals, uuiApi } = uuiCore.useUuiContext();
|