@epam/uui 6.3.3 → 6.4.1-alpha.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/assets/styles/clickable.scss +26 -26
- package/assets/styles/dnd.scss +9 -9
- package/assets/styles/effects.scss +6 -6
- package/assets/styles/helpers.scss +3 -3
- package/assets/styles/index.scss +6 -6
- package/assets/styles/inputs.scss +70 -70
- package/assets/styles/typography.scss +184 -184
- package/components/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/errors/config.d.ts.map +1 -1
- package/components/filters/FilterPickerBody.d.ts.map +1 -1
- package/components/filters/FiltersPanelItem.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/layout/ScrollBars.d.ts +12 -0
- package/components/layout/ScrollBars.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/ColumnHeaderDropdown/ColumnHeaderDropdown.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 +347 -201
- package/index.esm.js.map +1 -1
- package/index.js +344 -198
- package/index.js.map +1 -1
- package/package.json +5 -5
- package/readme.md +9 -9
- package/stats.html +1 -1
- package/styles.css +1103 -1114
- 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(#o66wzyj8d6nz4vuo_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: "o66wzycpvnnm3f03f_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(#o66wzycpvnnm3f03f_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: "o66wzyj8d6nz4vuo_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":"-rERxX","uui-spinner":"tmGu8u","uuiSpinner":"tmGu8u"};
|
|
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":"YG5Frk","loading-word":"ddaclv","loadingWord":"ddaclv","animated-loading":"_2sk6Ph","animatedLoading":"_2sk6Ph","skeleton_loading":"eCOoaB","skeletonLoading":"eCOoaB"};
|
|
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":"KLWzoq","line-height":"hWyW2v","lineHeight":"hWyW2v","font-size":"qBzQH7","fontSize":"qBzQH7"};
|
|
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":"qd0CK-"};
|
|
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":"cg5jG-"};
|
|
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":"_0wd3Z9"};
|
|
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":"_8vaJ3-"};
|
|
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":"EbDk16"};
|
|
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":"IgWcfw","withNotify":"_7XjmaT"};
|
|
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":"ii1Tlg","noLeftPadding":"oHyLdV","foldingArea":"xNmyNz","onlyFoldable":"D1eLwm","captionWrapper":"q0CZQq","withNotify":"eO3WxS"};
|
|
1665
1665
|
|
|
1666
|
-
var css$1m = {"root":"
|
|
1666
|
+
var css$1m = {"root":"cg-MDT"};
|
|
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":"_9MeVl1"};
|
|
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":"lkDT6R"};
|
|
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":"nomWYi","page":"ShrTZL","spacer":"gVZEHt","mode-ghost":"OnqSGD","modeGhost":"OnqSGD"};
|
|
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":"sWkrVL","progress-bar":"_7begqO","progressBar":"_7begqO","progressBar-indeterminate":"y0smf9","progressBarIndeterminate":"y0smf9","size-12":"SXuyip","size12":"SXuyip","size-18":"_52yxTD","size18":"_52yxTD","size-24":"SUNEIR","size24":"SUNEIR"};
|
|
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":"T85CMI","striped":"f6nSVy","animate-stripes":"lBOPBW","animateStripes":"lBOPBW","size-12":"cFINQZ","size12":"cFINQZ","size-18":"I2EBy2","size18":"I2EBy2","size-24":"iTXtyz","size24":"iTXtyz"};
|
|
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":"P-Cmqu"};
|
|
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":"_1Mr0VY"};
|
|
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":"Gd6Owo"};
|
|
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":"FmOU1l"};
|
|
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":"aiLFwk"};
|
|
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":"N4GMpV"};
|
|
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":"ZHQCH6"};
|
|
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":"nUEgSZ"};
|
|
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":"GNWzGP"};
|
|
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":"_2ALu1f"};
|
|
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":"ZrsqsF","timepicker-input":"jKz84-","timepickerInput":"jKz84-","ltr-always":"iSqVov","ltrAlways":"iSqVov"};
|
|
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":"GA6XVL"};
|
|
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":"YI2DoO"};
|
|
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":"c2Fz5n"};
|
|
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":"_4tN6Vo","tooltip":"_--ktVA"};
|
|
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":"YRz7Mc","dragHandleWrapper":"YRz7Mc","with-indent":"xWMYR8","withIndent":"xWMYR8","drag-handle":"ef-8MF","dragHandle":"ef-8MF","icon-container":"_4hI4b7","iconContainer":"_4hI4b7"};
|
|
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
|
-
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.
|
|
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, rawProps: { 'aria-label': 'Select' } })),
|
|
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":"-AZD5l","main-path":"A8D5IL","mainPath":"A8D5IL","content-wrapper":"ESdizU","contentWrapper":"ESdizU","content":"gVGFnr","action-wrapper":"_3CNi09","actionWrapper":"_3CNi09","icon-wrapper":"AEgpSZ","iconWrapper":"AEgpSZ","icon":"jcBJDE","close-icon":"nrX1Kd","closeIcon":"nrX1Kd"};
|
|
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":"He9nlj","submenuRootItemRtl":"He9nlj","icon-after":"DJA1nf","iconAfter":"DJA1nf","submenu-root-item":"FPXAdU","submenuRootItem":"FPXAdU","icon-check":"_6VyYYI","iconCheck":"_6VyYYI","splitter-root":"p6a8ks","splitterRoot":"p6a8ks","splitter":"OBncR1","header-root":"Q6WxhY","headerRoot":"Q6WxhY","item-root":"mKx6TD","itemRoot":"mKx6TD","icon":"v-dNnw","link":"Fa0FSB","indent":"hpjhIv","selected-mark":"IiWN5i","selectedMark":"IiWN5i"};
|
|
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":"Vuhp5T","mode-block":"_4Ytq4q","modeBlock":"_4Ytq4q","mode-inline":"Uu-kpz","modeInline":"Uu-kpz","padding-0":"iIhgAX","padding0":"iIhgAX","padding-6":"dMYTXo","padding6":"dMYTXo","padding-12":"fU6vv2","padding12":"fU6vv2","padding-18":"D1X6y5","padding18":"D1X6y5"};
|
|
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":"_78kox8","align-items":"pALOKl","alignItems":"pALOKl","justify-content":"n9-HO1","justifyContent":"n9-HO1","border-top":"SyQ1-Z","borderTop":"SyQ1-Z","border-bottom":"uJ3zVB","borderBottom":"uJ3zVB","top-shadow":"AAkCe0","topShadow":"AAkCe0","padding":"_4Qg8r-","margin":"fZ-Uzs","vPadding":"c11Fz4","column-gap":"muZmDq","columnGap":"muZmDq","row-gap":"YafDEI","rowGap":"YafDEI","spacing":"g4aQ7w"};
|
|
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":"h8UxYN","margin-24":"HqhPjY","margin24":"HqhPjY","padding-12":"_7OQUtz","padding12":"_7OQUtz","padding-24":"wxeTgM","padding24":"wxeTgM","shadow":"_5tdAQ4","uui-surface-main":"lSNKuA","uuiSurfaceMain":"lSNKuA"};
|
|
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":"k3oM9K"};
|
|
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":"b4tIuJ"};
|
|
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":"P-ohAs","viewport":"_8g-keC"};
|
|
2525
2570
|
|
|
2526
2571
|
var uuiScrollbars;
|
|
2527
2572
|
(function (uuiScrollbars) {
|
|
@@ -2531,16 +2576,25 @@ var uuiScrollbars;
|
|
|
2531
2576
|
uuiScrollbars["uuiLineBottom"] = "uui-line-bottom";
|
|
2532
2577
|
})(uuiScrollbars || (uuiScrollbars = {}));
|
|
2533
2578
|
const ScrollBars = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
2534
|
-
const { cx: outerCx, children, overflowTopEffect = 'none', overflowBottomEffect = 'none', onScroll, autoHide = 'never', autoHideDelay, rawProps, ...rest } = props;
|
|
2579
|
+
const { cx: outerCx, children, overflowTopEffect = 'none', overflowBottomEffect = 'none', onScroll, autoHide = 'never', autoHideDelay, elementEvents, rawProps, ...rest } = props;
|
|
2535
2580
|
const [shadowElements, setShadowElements] = React.useState({
|
|
2536
2581
|
host: null,
|
|
2537
2582
|
viewport: null,
|
|
2538
2583
|
});
|
|
2539
2584
|
const hostRef = React.useRef(null);
|
|
2540
2585
|
const viewportRef = React.useRef(null);
|
|
2541
|
-
const
|
|
2586
|
+
const elementEventsEffective = React.useMemo(() => {
|
|
2587
|
+
const result = [['img', 'load']]; // this is default
|
|
2588
|
+
if (elementEvents && elementEvents.length > 0) {
|
|
2589
|
+
result.push(...elementEvents);
|
|
2590
|
+
}
|
|
2591
|
+
return result;
|
|
2592
|
+
}, [elementEvents]);
|
|
2542
2593
|
const [initialize, osInstance] = overlayscrollbarsReact.useOverlayScrollbars({
|
|
2543
2594
|
options: {
|
|
2595
|
+
update: {
|
|
2596
|
+
elementEvents: elementEventsEffective,
|
|
2597
|
+
},
|
|
2544
2598
|
scrollbars: {
|
|
2545
2599
|
theme: 'uui-scroll-bars',
|
|
2546
2600
|
autoHide: autoHide,
|
|
@@ -2582,7 +2636,7 @@ const ScrollBars = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
2582
2636
|
uuiCore.useScrollShadows(shadowElements.host, shadowElements.viewport);
|
|
2583
2637
|
React.useImperativeHandle(ref, () => {
|
|
2584
2638
|
return {
|
|
2585
|
-
container:
|
|
2639
|
+
container: hostRef.current,
|
|
2586
2640
|
view: viewportRef.current,
|
|
2587
2641
|
};
|
|
2588
2642
|
}, []);
|
|
@@ -2591,7 +2645,7 @@ const ScrollBars = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
2591
2645
|
});
|
|
2592
2646
|
ScrollBars.displayName = 'ScrollBars';
|
|
2593
2647
|
|
|
2594
|
-
var css$V = {"scroll-container":"
|
|
2648
|
+
var css$V = {"scroll-container":"_2krmNf","scrollContainer":"_2krmNf","list-container":"_7zmV6q","listContainer":"_7zmV6q"};
|
|
2595
2649
|
|
|
2596
2650
|
const VirtualList = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
2597
2651
|
const { listContainerRef, offsetY, handleScroll, estimatedHeight, scrollContainerRef, } = uuiCore.useVirtualList({
|
|
@@ -2644,7 +2698,7 @@ function Tree(props) {
|
|
|
2644
2698
|
return (React__namespace.createElement(VirtualList, { value: value, onValueChange: onValueChange, rowsCount: rowsCount, rows: renderedRows, cx: uuiCore.cx(propsCx), role: "tree" }));
|
|
2645
2699
|
}
|
|
2646
2700
|
|
|
2647
|
-
var css$U = {"root":"
|
|
2701
|
+
var css$U = {"root":"flGm0-"};
|
|
2648
2702
|
|
|
2649
2703
|
function CheckboxGroup(props) {
|
|
2650
2704
|
const currentValue = props.value || [];
|
|
@@ -2746,7 +2800,7 @@ const Tabs = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
2746
2800
|
});
|
|
2747
2801
|
Tabs.displayName = 'Tabs';
|
|
2748
2802
|
|
|
2749
|
-
var css$T = {"root":"
|
|
2803
|
+
var css$T = {"root":"HLI76q","modal-blocker":"aXkr3-","modalBlocker":"aXkr3-","animateModalBlocker":"_74aywb","modal":"IaquOA","modal-footer":"ZQA-WC","modalFooter":"ZQA-WC","border-top":"Lx0X-r","borderTop":"Lx0X-r","modal-header":"mb3C-Z","modalHeader":"mb3C-Z","border-bottom":"SMNrOE","borderBottom":"SMNrOE"};
|
|
2750
2804
|
|
|
2751
2805
|
const ModalBlocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalBlocker, () => [css$T.modalBlocker]);
|
|
2752
2806
|
const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, () => [css$T.root, css$T.modal], (props) => {
|
|
@@ -2938,7 +2992,7 @@ const TREE_SHAKEABLE_INIT = () => ({
|
|
|
2938
2992
|
});
|
|
2939
2993
|
const i18n = /* @__PURE__ */TREE_SHAKEABLE_INIT();
|
|
2940
2994
|
|
|
2941
|
-
var css$S = {"root":"
|
|
2995
|
+
var css$S = {"root":"eR6KR3","icon-wrapper":"E2PBfc","iconWrapper":"E2PBfc","action-wrapper":"l7gGg0","actionWrapper":"l7gGg0","close-icon":"Q6rXwG","closeIcon":"Q6rXwG","main-path":"W4YKXs","mainPath":"W4YKXs","content":"RmEqRm","close-wrapper":"MJTTeU","closeWrapper":"MJTTeU","clear-notifications":"_9CdTPS","clearNotifications":"_9CdTPS"};
|
|
2942
2996
|
|
|
2943
2997
|
const NotificationCard = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
2944
2998
|
const notificationCardNode = React__namespace.default.useRef(null);
|
|
@@ -2971,7 +3025,7 @@ function ClearNotification() {
|
|
|
2971
3025
|
React__namespace.default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => uuiCtx.uuiNotifications.clearAll() })));
|
|
2972
3026
|
}
|
|
2973
3027
|
|
|
2974
|
-
var css$R = {"footer":"
|
|
3028
|
+
var css$R = {"footer":"a-fq0e"};
|
|
2975
3029
|
|
|
2976
3030
|
class ConfirmationModal extends React__namespace.Component {
|
|
2977
3031
|
render() {
|
|
@@ -3013,7 +3067,7 @@ function useReliableForceUpdate() {
|
|
|
3013
3067
|
return red[1];
|
|
3014
3068
|
}
|
|
3015
3069
|
|
|
3016
|
-
var css$Q = {"root":"
|
|
3070
|
+
var css$Q = {"root":"HKKizN","container":"e8PE-q"};
|
|
3017
3071
|
|
|
3018
3072
|
const defaultFormat = 'MMM D, YYYY';
|
|
3019
3073
|
const valueFormat = 'YYYY-MM-DD';
|
|
@@ -3032,7 +3086,16 @@ const defaultRangeValue = {
|
|
|
3032
3086
|
from: null,
|
|
3033
3087
|
to: null,
|
|
3034
3088
|
};
|
|
3035
|
-
const getDisplayedMonth = (selectedDate, focus) => {
|
|
3089
|
+
const getDisplayedMonth = (selectedDate, focus, initialViewMonth) => {
|
|
3090
|
+
if (selectedDate.from || selectedDate.to) {
|
|
3091
|
+
return getDisplayedMonthBySelection(selectedDate, focus);
|
|
3092
|
+
}
|
|
3093
|
+
else if (initialViewMonth) {
|
|
3094
|
+
return getNewMonth(`${initialViewMonth}-01`);
|
|
3095
|
+
}
|
|
3096
|
+
return uuiDayjs.dayjs();
|
|
3097
|
+
};
|
|
3098
|
+
const getDisplayedMonthBySelection = (selectedDate, focus) => {
|
|
3036
3099
|
if (selectedDate.from && selectedDate.to && focus) {
|
|
3037
3100
|
return uuiDayjs.dayjs(selectedDate[focus]);
|
|
3038
3101
|
}
|
|
@@ -3231,26 +3294,27 @@ function DatePickerHeader({ navIconLeft, navIconRight, value: { month, view }, o
|
|
|
3231
3294
|
React__namespace.createElement(Button, { icon: navIconRight || settings.datePicker.icons.body.nextIcon, color: "secondary", fill: "ghost", cx: uuiHeader.navIconRight, onClick: !isDisabled && (() => onRightNavigationArrow()), isDisabled: disableNext }))));
|
|
3232
3295
|
}
|
|
3233
3296
|
|
|
3234
|
-
var css$P = {"root":"
|
|
3297
|
+
var css$P = {"root":"W9e-sc"};
|
|
3235
3298
|
|
|
3236
3299
|
function applyDateSelectionMods() {
|
|
3237
3300
|
return [css$P.root, `uui-size-${settings.datePicker.sizes.body}`];
|
|
3238
3301
|
}
|
|
3239
3302
|
const Calendar = /* @__PURE__ */uuiCore.withMods(uuiComponents.Calendar, applyDateSelectionMods);
|
|
3240
3303
|
|
|
3241
|
-
var css$O = {"root":"
|
|
3304
|
+
var css$O = {"root":"o5uHOc"};
|
|
3242
3305
|
|
|
3243
3306
|
const uuiDatePickerBody = {
|
|
3244
3307
|
wrapper: 'uui-datepicker-body-wrapper',
|
|
3245
3308
|
};
|
|
3246
3309
|
const DatePickerBody = /* @__PURE__ */React.forwardRef(DatePickerBodyComp);
|
|
3247
3310
|
function DatePickerBodyComp(props, ref) {
|
|
3248
|
-
const { value, onValueChange } = props;
|
|
3249
|
-
const
|
|
3311
|
+
const { value, onValueChange, initialViewMonth } = props;
|
|
3312
|
+
const initialViewDate = value || (initialViewMonth ? `${initialViewMonth}-01` : '');
|
|
3313
|
+
const [month, setMonth] = React.useState(getNewMonth(initialViewDate));
|
|
3250
3314
|
const [view, setView] = React.useState('DAY_SELECTION');
|
|
3251
3315
|
// sync updated props with internal state
|
|
3252
3316
|
React.useEffect(() => {
|
|
3253
|
-
setMonth(getNewMonth(
|
|
3317
|
+
setMonth(getNewMonth(initialViewDate));
|
|
3254
3318
|
setView('DAY_SELECTION');
|
|
3255
3319
|
}, [value, setMonth]);
|
|
3256
3320
|
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 +3412,7 @@ function DatePickerComponent(props, ref) {
|
|
|
3348
3412
|
};
|
|
3349
3413
|
const renderBody = React.useMemo(() => (renderProps) => {
|
|
3350
3414
|
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 }),
|
|
3415
|
+
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
3416
|
props.renderFooter?.()));
|
|
3353
3417
|
}, [value, onBodyValueChange]);
|
|
3354
3418
|
return (React__namespace.default.createElement(uuiComponents.Dropdown, { value: isBodyOpen, middleware: [react.offset(6)], placement: props.placement, ref: ref, onValueChange: (v) => {
|
|
@@ -3359,7 +3423,7 @@ function DatePickerComponent(props, ref) {
|
|
|
3359
3423
|
}
|
|
3360
3424
|
const DatePicker = /* @__PURE__ */React__namespace.default.forwardRef(DatePickerComponent);
|
|
3361
3425
|
|
|
3362
|
-
var css$N = {"date-input":"
|
|
3426
|
+
var css$N = {"date-input":"_5O2Vyh","dateInput":"_5O2Vyh","root":"SW9V00","separator":"qWAE5e"};
|
|
3363
3427
|
|
|
3364
3428
|
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
3429
|
const [inputValue, setInputValue] = React.useState(toCustomDateRangeFormat(value, format));
|
|
@@ -3421,16 +3485,18 @@ const RangeDatePickerInput = /* @__PURE__ */React.forwardRef(({ isDisabled, isIn
|
|
|
3421
3485
|
};
|
|
3422
3486
|
onValueChange(newValue);
|
|
3423
3487
|
};
|
|
3424
|
-
const clearAllowed = !disableClear && !
|
|
3488
|
+
const clearAllowed = !disableClear && !isReadonly && !isDisabled
|
|
3489
|
+
&& !(preventEmptyFromDate && preventEmptyToDate)
|
|
3490
|
+
&& ((value.from && !preventEmptyFromDate) || (value.to && !preventEmptyToDate));
|
|
3425
3491
|
return (
|
|
3426
3492
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
3427
3493
|
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
3494
|
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
3495
|
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,
|
|
3496
|
+
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
3497
|
});
|
|
3432
3498
|
|
|
3433
|
-
var css$M = {"root":"
|
|
3499
|
+
var css$M = {"root":"e8CP52"};
|
|
3434
3500
|
|
|
3435
3501
|
const uuiPresets = {
|
|
3436
3502
|
container: 'uui-presets-container',
|
|
@@ -3450,7 +3516,7 @@ function CalendarPresets(props) {
|
|
|
3450
3516
|
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
3517
|
}
|
|
3452
3518
|
|
|
3453
|
-
var css$L = {"root":"
|
|
3519
|
+
var css$L = {"root":"t-7IbW","container":"mz-gC0","day-selection":"MWjUgo","daySelection":"MWjUgo","from-picker":"CkOMEl","fromPicker":"CkOMEl","to-picker":"wd8kxl","toPicker":"wd8kxl","bodes-wrapper":"dsp6dB","bodesWrapper":"dsp6dB","blocker":"we3R0m"};
|
|
3454
3520
|
|
|
3455
3521
|
const uuiRangeDatePickerBody = {
|
|
3456
3522
|
inRange: 'uui-range-datepicker-in-range',
|
|
@@ -3526,13 +3592,13 @@ const rangeDatePickerPresets = {
|
|
|
3526
3592
|
};
|
|
3527
3593
|
const RangeDatePickerBody = /* @__PURE__ */React.forwardRef(RangeDatePickerBodyComp);
|
|
3528
3594
|
function RangeDatePickerBodyComp(props, ref) {
|
|
3529
|
-
const { value: _value, filter } = props;
|
|
3595
|
+
const { value: _value, filter, initialViewMonth } = props;
|
|
3530
3596
|
const { selectedDate: _selectedDate, inFocus, } = _value;
|
|
3531
3597
|
const selectedDate = _selectedDate || defaultRangeValue; // also handles null in comparison to default value
|
|
3532
3598
|
const [view, setView] = React.useState('DAY_SELECTION');
|
|
3533
3599
|
const [disabledPanel, setDisabledPanel] = React.useState(null);
|
|
3534
3600
|
const [month, setMonth] = React.useState(() => {
|
|
3535
|
-
return getDisplayedMonth(selectedDate, inFocus);
|
|
3601
|
+
return getDisplayedMonth(selectedDate, inFocus, initialViewMonth);
|
|
3536
3602
|
});
|
|
3537
3603
|
const getRange = (newValue) => {
|
|
3538
3604
|
if (!filter || filter(uuiDayjs.dayjs(newValue))) {
|
|
@@ -3596,7 +3662,7 @@ function RangeDatePickerBodyComp(props, ref) {
|
|
|
3596
3662
|
}, presets: presets })));
|
|
3597
3663
|
};
|
|
3598
3664
|
uuiCore.useLayoutEffectSafeForSsr(() => {
|
|
3599
|
-
const monthToSet = getDisplayedMonth(selectedDate, inFocus);
|
|
3665
|
+
const monthToSet = getDisplayedMonth(selectedDate, inFocus, initialViewMonth);
|
|
3600
3666
|
// To avoid re-rendering the body if the current month being displayed is equal to or greater than 1
|
|
3601
3667
|
const shouldNotIgnoreUpdate = !(uuiDayjs.dayjs(month).isSame(monthToSet, 'month') || uuiDayjs.dayjs(month).add(1, 'month').isSame(monthToSet, 'month'));
|
|
3602
3668
|
if (shouldNotIgnoreUpdate) {
|
|
@@ -3652,7 +3718,7 @@ const getDayState = (day, selectedDate) => {
|
|
|
3652
3718
|
};
|
|
3653
3719
|
};
|
|
3654
3720
|
|
|
3655
|
-
var css$K = {"dropdown-container":"
|
|
3721
|
+
var css$K = {"dropdown-container":"uz8bCC","dropdownContainer":"uz8bCC"};
|
|
3656
3722
|
|
|
3657
3723
|
function RangeDatePickerComponent(props, ref) {
|
|
3658
3724
|
const { value: _value, format = defaultFormat, size = settings.rangeDatePicker.sizes.default } = props;
|
|
@@ -3703,7 +3769,7 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
3703
3769
|
inFocus,
|
|
3704
3770
|
}, onValueChange: onBodyValueChange, filter: props.filter, presets: props.presets, renderDay: props.renderDay, renderFooter: () => {
|
|
3705
3771
|
return props.renderFooter?.(value);
|
|
3706
|
-
}, isHoliday: props.isHoliday, rawProps: props.rawProps?.body, preventEmptyToDate: props.preventEmptyToDate, preventEmptyFromDate: props.preventEmptyFromDate }))));
|
|
3772
|
+
}, isHoliday: props.isHoliday, rawProps: props.rawProps?.body, preventEmptyToDate: props.preventEmptyToDate, preventEmptyFromDate: props.preventEmptyFromDate, initialViewMonth: props.initialViewMonth }))));
|
|
3707
3773
|
};
|
|
3708
3774
|
const handleEscape = (e) => {
|
|
3709
3775
|
if (e.key === 'Escape' && isOpen) {
|
|
@@ -3720,7 +3786,7 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
3720
3786
|
}
|
|
3721
3787
|
const RangeDatePicker = /* @__PURE__ */React__namespace.default.forwardRef(RangeDatePickerComponent);
|
|
3722
3788
|
|
|
3723
|
-
var css$J = {"root":"
|
|
3789
|
+
var css$J = {"root":"_22QTE1","blocker":"jo1jLX","marker":"hC7D4B","top":"IU1oP9","bottom":"g0-uFw","left":"ZbgvZ5","right":"gxoxxo","inside":"AjTVvj"};
|
|
3724
3790
|
|
|
3725
3791
|
function DropMarker(props) {
|
|
3726
3792
|
return props.isDndInProgress
|
|
@@ -3735,9 +3801,9 @@ function DropMarker(props) {
|
|
|
3735
3801
|
: null;
|
|
3736
3802
|
}
|
|
3737
3803
|
|
|
3738
|
-
var css$I = {"search-wrapper":"
|
|
3804
|
+
var css$I = {"root":"DN2C02","search-wrapper":"xFbLs8","searchWrapper":"xFbLs8","no-data":"lsm8-P","noData":"lsm8-P"};
|
|
3739
3805
|
|
|
3740
|
-
var css$H = {"picker-row":"
|
|
3806
|
+
var css$H = {"picker-row":"ZV9Evd","pickerRow":"ZV9Evd","align-widgets-top":"gHuc-F","alignWidgetsTop":"gHuc-F","row-content":"sRX7Cb","rowContent":"sRX7Cb","align-widgets-center":"VW-1QN","alignWidgetsCenter":"VW-1QN","icon-container":"YGdY3d","iconContainer":"YGdY3d","content-wrapper":"orJNxE","contentWrapper":"orJNxE","icon-wrapper":"Uu5Nvt","iconWrapper":"Uu5Nvt","icon-default":"cB83jB","iconDefault":"cB83jB","selected-mark":"StYSsP","selectedMark":"StYSsP"};
|
|
3741
3807
|
|
|
3742
3808
|
const mergeHighlightRanges = (ranges) => {
|
|
3743
3809
|
const mergedRanges = [];
|
|
@@ -3804,7 +3870,7 @@ const getHighlightedSearchMatches = (str, search) => {
|
|
|
3804
3870
|
return getDecoratedText(str, ranges);
|
|
3805
3871
|
};
|
|
3806
3872
|
|
|
3807
|
-
var css$G = {"root":"
|
|
3873
|
+
var css$G = {"root":"xgOlkL","column-gap":"TGS6aA","columnGap":"TGS6aA","title":"_76nI11","subtitle":"NjETha","disabled":"_5U6PdI","multiline":"vnj5wW"};
|
|
3808
3874
|
|
|
3809
3875
|
function PickerItem(props) {
|
|
3810
3876
|
const { highlightSearchMatches = true, size, avatarUrl, isLoading, isDisabled, icon, } = props;
|
|
@@ -3837,6 +3903,12 @@ function DataPickerRow(props) {
|
|
|
3837
3903
|
rowNode.current?.removeEventListener('mouseenter', handleMouseEnter);
|
|
3838
3904
|
};
|
|
3839
3905
|
}, [props.onFocus, handleMouseEnter]);
|
|
3906
|
+
const handleFocus = () => {
|
|
3907
|
+
// If this row gets focus but is not the focused row, make it focused
|
|
3908
|
+
if (!props.isFocused && props.onFocus) {
|
|
3909
|
+
props.onFocus(props.index);
|
|
3910
|
+
}
|
|
3911
|
+
};
|
|
3840
3912
|
const getSubtitle = ({ path }) => {
|
|
3841
3913
|
if (!props.dataSourceState?.search)
|
|
3842
3914
|
return;
|
|
@@ -3878,14 +3950,15 @@ function DataPickerRow(props) {
|
|
|
3878
3950
|
const clickHandler = props.onClick || props.onSelect || props.onFold || props.onCheck;
|
|
3879
3951
|
return (
|
|
3880
3952
|
// 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 && {
|
|
3953
|
+
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
3954
|
'--uui-data_picker-horizontal-padding': `${props.padding}px`,
|
|
3883
3955
|
}, ...props.rawProps }, renderContent()));
|
|
3884
3956
|
}
|
|
3885
3957
|
|
|
3886
|
-
function DataPickerBody({ highlightSearchMatches = true, ...props }) {
|
|
3958
|
+
function DataPickerBody({ highlightSearchMatches = true, autoFocusSearch = true, ...props }) {
|
|
3887
3959
|
const prevProps = uuiCore.usePrevious(props);
|
|
3888
3960
|
const showSearch = props.showSearch === 'auto' ? props.totalCount > 10 : Boolean(props.showSearch);
|
|
3961
|
+
const [isKeyboardNavigation, setIsKeyboardNavigation] = React__namespace.default.useState(false);
|
|
3889
3962
|
React.useEffect(() => {
|
|
3890
3963
|
if (props.rows.length !== prevProps?.rows.length || (!isEqual__default.default(prevProps?.value.checked, props.value.checked) && !props.fixedBodyPosition)) {
|
|
3891
3964
|
props.scheduleUpdate?.();
|
|
@@ -3893,9 +3966,36 @@ function DataPickerBody({ highlightSearchMatches = true, ...props }) {
|
|
|
3893
3966
|
}, [props.rows, prevProps, props.value.checked, props.fixedBodyPosition]);
|
|
3894
3967
|
const searchKeyDown = (e) => {
|
|
3895
3968
|
props.onKeyDown?.(e);
|
|
3896
|
-
if (e.shiftKey && e.key === 'Tab')
|
|
3897
|
-
e.preventDefault();
|
|
3898
3969
|
};
|
|
3970
|
+
const handleVirtualListFocus = (e) => {
|
|
3971
|
+
// Only set keyboard navigation if focus came from keyboard (Tab key)
|
|
3972
|
+
// Check if the focus event was triggered by keyboard navigation
|
|
3973
|
+
const isKeyboardFocus = e.target === e.currentTarget;
|
|
3974
|
+
if (isKeyboardFocus) {
|
|
3975
|
+
setIsKeyboardNavigation(true);
|
|
3976
|
+
}
|
|
3977
|
+
};
|
|
3978
|
+
const handleVirtualListBlur = (e) => {
|
|
3979
|
+
// Check if focus is moving outside the virtual list
|
|
3980
|
+
const relatedTarget = e.relatedTarget;
|
|
3981
|
+
const currentTarget = e.currentTarget;
|
|
3982
|
+
if (relatedTarget && !currentTarget.contains(relatedTarget)) {
|
|
3983
|
+
// Focus is leaving the virtual list, hide visual focus but keep focusedIndex for navigation "by circle"
|
|
3984
|
+
setIsKeyboardNavigation(false);
|
|
3985
|
+
}
|
|
3986
|
+
};
|
|
3987
|
+
const { focusedIndex, topIndex, } = props.value;
|
|
3988
|
+
const focusedRowId = React.useMemo(() => {
|
|
3989
|
+
// No need to make unnecessary calculations.
|
|
3990
|
+
if (!props.showSearch) {
|
|
3991
|
+
return '';
|
|
3992
|
+
}
|
|
3993
|
+
const focusedRow = props.rows.at(focusedIndex - topIndex);
|
|
3994
|
+
if (!focusedRow) {
|
|
3995
|
+
return '';
|
|
3996
|
+
}
|
|
3997
|
+
return focusedRow.rowKey;
|
|
3998
|
+
}, [props.showSearch, focusedIndex, topIndex]);
|
|
3899
3999
|
const renderEmpty = () => {
|
|
3900
4000
|
const search = props.value.search;
|
|
3901
4001
|
if (props.renderEmpty) {
|
|
@@ -3930,25 +4030,36 @@ function DataPickerBody({ highlightSearchMatches = true, ...props }) {
|
|
|
3930
4030
|
return props.size || settings.pickerInput.sizes.body.row;
|
|
3931
4031
|
};
|
|
3932
4032
|
const renderRow = (row, dsState) => {
|
|
3933
|
-
const pickerRowProps = {
|
|
4033
|
+
const pickerRowProps = {
|
|
4034
|
+
...row,
|
|
4035
|
+
getName: props.getName,
|
|
4036
|
+
cx: uuiCore.cx(row.cx, isKeyboardNavigation && row.isFocused && 'uui-focus', isKeyboardNavigation && row.isFocused && 'uui-keyboard-focus'),
|
|
4037
|
+
};
|
|
3934
4038
|
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
4039
|
};
|
|
4040
|
+
const renderSearchInput = () => {
|
|
4041
|
+
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: {
|
|
4042
|
+
dir: 'auto',
|
|
4043
|
+
'aria-activedescendant': focusedRowId,
|
|
4044
|
+
} }));
|
|
4045
|
+
};
|
|
3936
4046
|
const searchSize = uuiCore.isMobile()
|
|
3937
4047
|
? settings.pickerInput.sizes.body.mobileSearchInput
|
|
3938
4048
|
: 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]);
|
|
4049
|
+
const renderedDataRows = React.useMemo(() => props.rows.map((row) => renderRow(row, props.value)), [props.rows, props.value, isKeyboardNavigation]);
|
|
3940
4050
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
3941
4051
|
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' } }))))),
|
|
4052
|
+
React__namespace.default.createElement(uuiComponents.FlexCell, { grow: 1 }, autoFocusSearch ? React__namespace.default.createElement(FocusLock.MoveFocusInside, null, renderSearchInput()) : renderSearchInput()))),
|
|
3945
4053
|
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
4054
|
// 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
4055
|
// 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: {
|
|
4056
|
+
? renderEmpty() : (React__namespace.default.createElement(VirtualList, { value: props.value, onValueChange: props.onValueChange, rows: renderedDataRows, role: "listbox", cx: css$I.root, rawProps: {
|
|
3949
4057
|
'aria-multiselectable': props.selectionMode === 'multi' ? true : null,
|
|
3950
4058
|
'aria-orientation': 'vertical',
|
|
3951
|
-
tabIndex:
|
|
4059
|
+
tabIndex: 0,
|
|
4060
|
+
onKeyDown: props.onKeyDown,
|
|
4061
|
+
onFocus: handleVirtualListFocus,
|
|
4062
|
+
onBlur: handleVirtualListBlur,
|
|
3952
4063
|
...props.rawProps,
|
|
3953
4064
|
}, rowsCount: props.rowsCount, isLoading: props.isReloading, renderBlocker: settings.pickerInput.renderBlocker, overflowTopEffect: showSearch ? 'line' : 'none', overflowBottomEffect: "line" })))));
|
|
3954
4065
|
}
|
|
@@ -3977,7 +4088,7 @@ function DataPickerFooterImpl(props) {
|
|
|
3977
4088
|
}
|
|
3978
4089
|
const DataPickerFooter = /* @__PURE__ */React__namespace.default.memo(DataPickerFooterImpl);
|
|
3979
4090
|
|
|
3980
|
-
var css$F = {"header":"
|
|
4091
|
+
var css$F = {"header":"AZz4sm","title":"wqVddw","close":"-F5F4O"};
|
|
3981
4092
|
|
|
3982
4093
|
const DataPickerMobileHeaderImpl = (props) => {
|
|
3983
4094
|
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
@@ -3987,7 +4098,7 @@ const DataPickerMobileHeaderImpl = (props) => {
|
|
|
3987
4098
|
};
|
|
3988
4099
|
const DataPickerMobileHeader = /* @__PURE__ */React__namespace.default.memo(DataPickerMobileHeaderImpl);
|
|
3989
4100
|
|
|
3990
|
-
var css$E = {"done":"
|
|
4101
|
+
var css$E = {"done":"qq1qxT","container":"_40T4mJ"};
|
|
3991
4102
|
|
|
3992
4103
|
const PickerBodyMobileView = (props) => {
|
|
3993
4104
|
const isMobileView = uuiCore.isMobile();
|
|
@@ -3999,7 +4110,7 @@ const PickerBodyMobileView = (props) => {
|
|
|
3999
4110
|
isMobileView && (React__namespace.default.createElement(LinkButton, { caption: i18n.pickerInput.doneButton, onClick: () => props.onClose?.(), cx: css$E.done, size: settings.pickerInput.sizes.body.mobileFooterLinkButton }))));
|
|
4000
4111
|
};
|
|
4001
4112
|
|
|
4002
|
-
var css$D = {"sub-header-wrapper":"
|
|
4113
|
+
var css$D = {"sub-header-wrapper":"-Ux2dj","subHeaderWrapper":"-Ux2dj","switch":"NoIFcA","search":"Y5QceC","no-found-modal-container":"_90xb1v","noFoundModalContainer":"_90xb1v","no-found-modal-container-icon":"Iuaf-8","noFoundModalContainerIcon":"Iuaf-8","no-found-modal-container-text":"k0AQZH","noFoundModalContainerText":"k0AQZH","body":"wfsrAa"};
|
|
4003
4114
|
|
|
4004
4115
|
function PickerModal(props) {
|
|
4005
4116
|
const { view, selection, dataSourceStateLens, dataSourceState, getName, clearSelection, getRows, getListProps, getFooterProps, isSingleSelect, handleDataSourceValueChange, } = uuiComponents.usePickerModal(props);
|
|
@@ -4027,25 +4138,40 @@ function PickerModal(props) {
|
|
|
4027
4138
|
React__namespace.default.createElement(Text, { cx: css$D.noFoundModalContainerText, fontSize: "12", lineHeight: "18", color: "primary" }, i18n.dataPickerBody.noRecordsSubTitle)));
|
|
4028
4139
|
};
|
|
4029
4140
|
const dataRows = getRows();
|
|
4141
|
+
const { focusedIndex, topIndex, } = dataSourceState;
|
|
4142
|
+
const focusedRowId = React.useMemo(() => {
|
|
4143
|
+
const focusedRow = dataRows.at(focusedIndex - topIndex);
|
|
4144
|
+
if (!focusedRow) {
|
|
4145
|
+
return '';
|
|
4146
|
+
}
|
|
4147
|
+
return focusedRow.rowKey;
|
|
4148
|
+
}, [focusedIndex, topIndex]);
|
|
4149
|
+
const onKeyDownHandler = (e) => {
|
|
4150
|
+
uuiComponents.handleDataSourceKeyboard({
|
|
4151
|
+
value: dataSourceState,
|
|
4152
|
+
onValueChange: handleDataSourceValueChange,
|
|
4153
|
+
listView: view,
|
|
4154
|
+
rows: dataRows,
|
|
4155
|
+
searchPosition: 'body',
|
|
4156
|
+
}, e);
|
|
4157
|
+
};
|
|
4030
4158
|
return (React__namespace.default.createElement(ModalBlocker, { ...props },
|
|
4031
4159
|
React__namespace.default.createElement(ModalWindow, { width: 600, height: 700, cx: css$D.body },
|
|
4032
4160
|
React__namespace.default.createElement(ModalHeader, { title: props.caption || i18n.pickerModal.headerTitle, onClose: () => props.abort() }),
|
|
4033
4161
|
React__namespace.default.createElement(FlexCell, { cx: css$D.subHeaderWrapper },
|
|
4034
4162
|
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' } })),
|
|
4163
|
+
React__namespace.default.createElement(FocusLock.MoveFocusInside, { className: css$D.search },
|
|
4164
|
+
React__namespace.default.createElement(SearchInput, { ...dataSourceStateLens.prop('search').toProps(), onKeyDown: onKeyDownHandler, placeholder: i18n.pickerModal.searchPlaceholder, rawProps: {
|
|
4165
|
+
dir: 'auto',
|
|
4166
|
+
'aria-activedescendant': focusedRowId,
|
|
4167
|
+
} }))),
|
|
4042
4168
|
!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
4169
|
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 }),
|
|
4170
|
+
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
4171
|
React__namespace.default.createElement(ModalFooter, null, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
|
|
4046
4172
|
}
|
|
4047
4173
|
|
|
4048
|
-
var css$C = {"tooltip":"
|
|
4174
|
+
var css$C = {"tooltip":"nqfmn3","noShrink":"ag--MC"};
|
|
4049
4175
|
|
|
4050
4176
|
const PickerTogglerTag = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
4051
4177
|
const tagProps = {
|
|
@@ -4057,14 +4183,14 @@ const PickerTogglerTag = /* @__PURE__ */React__namespace.forwardRef((props, ref)
|
|
|
4057
4183
|
if (props.isCollapsed) {
|
|
4058
4184
|
const collapsedRows = props.collapsedRows.map((row) => props.getName(row.value)).join(', ');
|
|
4059
4185
|
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 })));
|
|
4186
|
+
React__namespace.createElement(Tag, { ref: ref, rawProps: { role: 'option' }, ...tagProps, cx: css$C.noShrink })));
|
|
4061
4187
|
}
|
|
4062
4188
|
else {
|
|
4063
4189
|
return React__namespace.createElement(Tag, { ref: ref, rawProps: { role: 'option' }, ...tagProps });
|
|
4064
4190
|
}
|
|
4065
4191
|
});
|
|
4066
4192
|
|
|
4067
|
-
var css$B = {"root":"
|
|
4193
|
+
var css$B = {"root":"Qjfu8Y"};
|
|
4068
4194
|
|
|
4069
4195
|
const defaultMode = EditMode.FORM;
|
|
4070
4196
|
function applyPickerTogglerMods(mods) {
|
|
@@ -4134,7 +4260,7 @@ function PickerInputComponent(props, ref) {
|
|
|
4134
4260
|
const bodyHeight = uuiCore.isMobile() ? document.documentElement.clientHeight : props.dropdownHeight || settings.pickerInput.sizes.body.maxHeight;
|
|
4135
4261
|
const minBodyWidth = props.minBodyWidth || settings.pickerInput.sizes.body.minWidth;
|
|
4136
4262
|
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'],
|
|
4263
|
+
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, rawProps: { 'aria-modal': true } },
|
|
4138
4264
|
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
4265
|
renderFooter()));
|
|
4140
4266
|
};
|
|
@@ -4142,11 +4268,11 @@ function PickerInputComponent(props, ref) {
|
|
|
4142
4268
|
return (React__namespace.default.createElement(Dropdown, { renderTarget: (dropdownProps) => {
|
|
4143
4269
|
const targetProps = getTogglerProps();
|
|
4144
4270
|
return renderTarget({ ...dropdownProps, ...targetProps, renderItem });
|
|
4145
|
-
}, renderBody: (bodyProps) => renderBody(bodyProps), value: shouldShowBody(), onValueChange: !props.isDisabled && toggleBodyOpening, placement: props.dropdownPlacement, middleware: middleware, closeBodyOnTogglerHidden:
|
|
4271
|
+
}, 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
4272
|
}
|
|
4147
4273
|
const PickerInput = /* @__PURE__ */React__namespace.default.forwardRef(PickerInputComponent);
|
|
4148
4274
|
|
|
4149
|
-
var css$A = {"row":"
|
|
4275
|
+
var css$A = {"row":"luGXrO"};
|
|
4150
4276
|
|
|
4151
4277
|
function PickerListRow(props) {
|
|
4152
4278
|
let label;
|
|
@@ -4166,7 +4292,7 @@ function PickerListRow(props) {
|
|
|
4166
4292
|
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
4293
|
}
|
|
4168
4294
|
|
|
4169
|
-
var css$z = {"root":"
|
|
4295
|
+
var css$z = {"root":"_6KhRL1"};
|
|
4170
4296
|
|
|
4171
4297
|
function PickerList(props) {
|
|
4172
4298
|
const { context, view, onlySelectedView, getName, getEntityName, appendLastSelected, getSelectedIdsArray, buildRowsList, getMaxDefaultItems, getModalTogglerCaption, } = uuiComponents.usePickerList(props);
|
|
@@ -4201,7 +4327,7 @@ function PickerList(props) {
|
|
|
4201
4327
|
}, selectedRows)));
|
|
4202
4328
|
}
|
|
4203
4329
|
|
|
4204
|
-
var css$y = {"root":"
|
|
4330
|
+
var css$y = {"root":"ae2y-y","wrapper":"-ti4Ak","align-widgets-top":"-rtEm8","alignWidgetsTop":"-rtEm8","align-widgets-center":"sgsK4n","alignWidgetsCenter":"sgsK4n"};
|
|
4205
4331
|
|
|
4206
4332
|
function DataTableCell(initialProps) {
|
|
4207
4333
|
const props = { ...initialProps };
|
|
@@ -4251,7 +4377,7 @@ function DataTableCell(initialProps) {
|
|
|
4251
4377
|
return React__namespace.createElement(uuiComponents.DataTableCell, { ...props });
|
|
4252
4378
|
}
|
|
4253
4379
|
|
|
4254
|
-
var css$x = {"root":"
|
|
4380
|
+
var css$x = {"root":"P3uLuH"};
|
|
4255
4381
|
|
|
4256
4382
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
4257
4383
|
// 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 +4393,7 @@ const DataTableRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.DataTableRow,
|
|
|
4267
4393
|
];
|
|
4268
4394
|
}, () => propsMods);
|
|
4269
4395
|
|
|
4270
|
-
var css$w = {"sorting-panel-container":"
|
|
4396
|
+
var css$w = {"sorting-panel-container":"JjOQqc","sortingPanelContainer":"JjOQqc"};
|
|
4271
4397
|
|
|
4272
4398
|
const SortingPanelImpl = ({ sortDirection, onSort }) => {
|
|
4273
4399
|
const sortAsc = React.useCallback(() => onSort(sortDirection === 'asc' ? undefined : 'asc'), [onSort]);
|
|
@@ -4281,13 +4407,13 @@ const SortingPanel = /* @__PURE__ */React__namespace.default.memo(SortingPanelIm
|
|
|
4281
4407
|
const ColumnHeaderDropdownImpl = (props) => {
|
|
4282
4408
|
const middleware = React.useMemo(() => [react.offset(1), uuiCore.mobilePositioning], []);
|
|
4283
4409
|
const closeDropdown = React.useCallback(() => props.onOpenChange(false), [props.onOpenChange]);
|
|
4284
|
-
return (React__namespace.default.createElement(uuiComponents.Dropdown, { renderTarget: props.renderTarget, renderBody: (dropdownProps) => (React__namespace.default.createElement(PickerBodyMobileView, { width: 280, maxWidth: "auto", title: props.title, onClose: closeDropdown },
|
|
4410
|
+
return (React__namespace.default.createElement(uuiComponents.Dropdown, { renderTarget: props.renderTarget, renderBody: (dropdownProps) => (React__namespace.default.createElement(PickerBodyMobileView, { width: 280, maxWidth: "auto", title: props.title, onClose: closeDropdown, rawProps: { 'aria-modal': true } },
|
|
4285
4411
|
props.isSortable && React__namespace.default.createElement(SortingPanel, { sortDirection: props.sortDirection, onSort: props.onSort }),
|
|
4286
4412
|
props.renderFilter(dropdownProps))), middleware: middleware, value: props.isOpen, onValueChange: props.onOpenChange }));
|
|
4287
4413
|
};
|
|
4288
4414
|
const ColumnHeaderDropdown = /* @__PURE__ */React__namespace.default.memo(ColumnHeaderDropdownImpl);
|
|
4289
4415
|
|
|
4290
|
-
var css$v = {"root":"
|
|
4416
|
+
var css$v = {"root":"MJLpus","caption-wrapper":"ohPeD8","captionWrapper":"ohPeD8","sort-icon":"NjdgKI","sortIcon":"NjdgKI","dropdown-icon":"kKYcNj","dropdownIcon":"kKYcNj","infoIcon":"eYFoTH","sortInActive":"p2USYh","align-right":"AXccWm","alignRight":"AXccWm","align-center":"vnka-Y","alignCenter":"vnka-Y","caption":"OjJJjN","truncate":"_7ioVNO","upper-case":"C-VAvt","upperCase":"C-VAvt","checkbox":"NGPbSU","icon":"u8z9RT","fold-all-icon":"_4KPyED","foldAllIcon":"_4KPyED","cell-tooltip":"nNwYJ5","cellTooltip":"nNwYJ5","resizing-marker":"ka--8Q","resizingMarker":"ka--8Q","pinned-right":"DQKLZt","pinnedRight":"DQKLZt","draggable":"GWeAJV","ghost":"_6glR-c","is-dragged-out":"iDM0UI","isDraggedOut":"iDM0UI","dnd-marker-left":"YfMd8a","dndMarkerLeft":"YfMd8a","dnd-marker-right":"Zc5EF3","dndMarkerRight":"Zc5EF3","cell-tooltip-wrapper":"_7x6mkx","cellTooltipWrapper":"_7x6mkx","cell-tooltip-text":"_45WssY","cellTooltipText":"_45WssY","tooltip-caption":"ryEuI8","tooltipCaption":"ryEuI8","tooltip-info":"NaiOJQ","tooltipInfo":"NaiOJQ"};
|
|
4291
4417
|
|
|
4292
4418
|
class DataTableHeaderCell extends React__namespace.Component {
|
|
4293
4419
|
constructor() {
|
|
@@ -4298,7 +4424,7 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
4298
4424
|
this.getTooltipContent = (column) => (React__namespace.createElement("div", { className: uuiCore.cx(css$v.cellTooltipWrapper, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaptionTooltip) },
|
|
4299
4425
|
React__namespace.createElement(Text, { cx: [css$v.cellTooltipText, css$v.tooltipCaption] }, column.caption),
|
|
4300
4426
|
column.info && (React__namespace.createElement(Text, { cx: [css$v.cellTooltipText, css$v.tooltipInfo] }, column.info))));
|
|
4301
|
-
this.getColumnCaption = () => {
|
|
4427
|
+
this.getColumnCaption = (props, dropdownProps) => {
|
|
4302
4428
|
const renderTooltip = this.props.column.renderTooltip || this.getTooltipContent;
|
|
4303
4429
|
const captionCx = uuiCore.cx([
|
|
4304
4430
|
css$v.caption,
|
|
@@ -4307,16 +4433,28 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
4307
4433
|
'uui-typography-inline',
|
|
4308
4434
|
this.props.size >= '48' && css$v.truncate,
|
|
4309
4435
|
]);
|
|
4436
|
+
const handleFilterOpen = (e) => {
|
|
4437
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
4438
|
+
dropdownProps.onClick(e);
|
|
4439
|
+
e.preventDefault();
|
|
4440
|
+
}
|
|
4441
|
+
};
|
|
4442
|
+
const handleSort = (e) => {
|
|
4443
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
4444
|
+
props.toggleSort(e);
|
|
4445
|
+
e.preventDefault();
|
|
4446
|
+
}
|
|
4447
|
+
};
|
|
4310
4448
|
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 },
|
|
4449
|
+
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
4450
|
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(
|
|
4451
|
+
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
4452
|
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(
|
|
4453
|
+
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
4454
|
};
|
|
4317
4455
|
this.renderHeaderCheckbox = () => {
|
|
4318
4456
|
if (this.props.selectAll && this.props.isFirstColumn) {
|
|
4319
|
-
return (React__namespace.createElement(Checkbox, { size: settings.dataTable.sizes.body.checkboxMap[this.props.size], ...this.props.selectAll, cx: uuiCore.cx(css$v.checkbox, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCheckbox) }));
|
|
4457
|
+
return (React__namespace.createElement(Checkbox, { size: settings.dataTable.sizes.body.checkboxMap[this.props.size], rawProps: { 'aria-label': 'Select All' }, ...this.props.selectAll, cx: uuiCore.cx(css$v.checkbox, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCheckbox) }));
|
|
4320
4458
|
}
|
|
4321
4459
|
};
|
|
4322
4460
|
this.renderFoldAllIcon = () => {
|
|
@@ -4324,7 +4462,7 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
4324
4462
|
return (React__namespace.createElement(Tooltip, { content: this.props.areAllFolded
|
|
4325
4463
|
? i18n.tables.columnHeader.expandAllTooltip
|
|
4326
4464
|
: i18n.tables.columnHeader.collapseAllTooltip },
|
|
4327
|
-
React__namespace.createElement(
|
|
4465
|
+
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
4466
|
'aria-label': this.props.areAllFolded ? 'Expand All' : 'Collapse All',
|
|
4329
4467
|
'aria-expanded': !!this.props.areAllFolded,
|
|
4330
4468
|
} })));
|
|
@@ -4368,7 +4506,7 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
4368
4506
|
}, style: computeStyles },
|
|
4369
4507
|
this.renderHeaderCheckbox(),
|
|
4370
4508
|
this.renderFoldAllIcon(),
|
|
4371
|
-
this.getColumnCaption(),
|
|
4509
|
+
this.getColumnCaption(props, dropdownProps),
|
|
4372
4510
|
isResizable && this.renderResizingMarker(props)));
|
|
4373
4511
|
};
|
|
4374
4512
|
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 +4519,7 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
4381
4519
|
}
|
|
4382
4520
|
}
|
|
4383
4521
|
|
|
4384
|
-
var css$u = {"root":"
|
|
4522
|
+
var css$u = {"root":"YPhvpm","caption-wrapper":"Q-PMU3","captionWrapper":"Q-PMU3","align-center":"Qs9tDK","alignCenter":"Qs9tDK","caption":"d37ZU9","truncate":"hXklwY","upper-case":"HScr7i","upperCase":"HScr7i","group-cell-tooltip":"A05edc","groupCellTooltip":"A05edc","group-cell-tooltip-wrapper":"ii7QVL","groupCellTooltipWrapper":"ii7QVL","group-cell-tooltip-text":"-QRiXj","groupCellTooltipText":"-QRiXj","tooltip-caption":"_6SIcfa","tooltipCaption":"_6SIcfa","tooltip-info":"wR6NCW","tooltipInfo":"wR6NCW"};
|
|
4385
4523
|
|
|
4386
4524
|
class DataTableHeaderGroupCell extends React__namespace.Component {
|
|
4387
4525
|
constructor() {
|
|
@@ -4421,13 +4559,17 @@ class DataTableHeaderGroupCell extends React__namespace.Component {
|
|
|
4421
4559
|
}
|
|
4422
4560
|
}
|
|
4423
4561
|
|
|
4424
|
-
var css$t = {"root":"
|
|
4562
|
+
var css$t = {"root":"LQ3nji"};
|
|
4425
4563
|
|
|
4426
|
-
const DataTableHeaderRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.DataTableHeaderRow, () => [css$t.root, 'uui-dt-vars'], (mods) =>
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4564
|
+
const DataTableHeaderRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.DataTableHeaderRow, () => [css$t.root, 'uui-dt-vars'], (mods) => {
|
|
4565
|
+
return ({
|
|
4566
|
+
renderCell: (props) => (React__namespace.createElement(DataTableHeaderCell, { ...props, size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key, columnsGap: mods.columnsGap })),
|
|
4567
|
+
renderGroupCell: (props) => (React__namespace.createElement(DataTableHeaderGroupCell, { ...props, size: mods.size, textCase: mods.textCase || 'normal', key: props.key, columnsGap: mods.columnsGap })),
|
|
4568
|
+
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, rawProps: {
|
|
4569
|
+
'aria-label': 'Configure columns',
|
|
4570
|
+
} })),
|
|
4571
|
+
});
|
|
4572
|
+
});
|
|
4431
4573
|
|
|
4432
4574
|
const normalizeFilterWithPredicates = (filter) => {
|
|
4433
4575
|
if (!filter) {
|
|
@@ -4517,7 +4659,7 @@ const UUI_FILTERS_PANEL_ITEM_TOGGLER_SELECTION = 'uui-filters-panel-item-toggler
|
|
|
4517
4659
|
const UUI_FILTERS_PANEL_ITEM_TOGGLER_POSTFIX = 'uui-filters-panel-item-toggler-postfix';
|
|
4518
4660
|
const UUI_FILTERS_PANEL_BODY_FOOTER = 'uui-filters-panel-item-footer';
|
|
4519
4661
|
|
|
4520
|
-
var css$s = {"body":"
|
|
4662
|
+
var css$s = {"body":"Cgez4E","header":"O7hH4D","title":"AnrAje","removeButton":"pw1vuC","with-search":"ePEaMD","withSearch":"ePEaMD"};
|
|
4521
4663
|
|
|
4522
4664
|
function FilterColumnBody(props) {
|
|
4523
4665
|
const [predicate, setPredicate] = React.useState(getDefaultPredicate(props.predicates, props.value));
|
|
@@ -4541,7 +4683,7 @@ function FilterColumnBody(props) {
|
|
|
4541
4683
|
return props.predicates?.length > 0 && (React__namespace.default.createElement("div", { className: css$s.header },
|
|
4542
4684
|
React__namespace.default.createElement(FilterPredicatePanel, { ...panelProps })));
|
|
4543
4685
|
};
|
|
4544
|
-
return (React__namespace.default.createElement(DropdownContainer, { style: { minWidth: '360px' }, cx: [css$s.body, UUI_FILTERS_PANEL_ITEM_BODY], ...props },
|
|
4686
|
+
return (React__namespace.default.createElement(DropdownContainer, { style: { minWidth: '360px' }, cx: [css$s.body, UUI_FILTERS_PANEL_ITEM_BODY], ...props, focusLock: false, rawProps: { 'aria-modal': true } },
|
|
4545
4687
|
renderHeader(),
|
|
4546
4688
|
React__namespace.default.createElement(FilterItemBody, { ...props, selectedPredicate: predicate, value: getValue(predicate, props.value), onValueChange: onValueChange })));
|
|
4547
4689
|
}
|
|
@@ -4578,7 +4720,7 @@ const useColumnsWithFilters = (initialColumns, filters) => {
|
|
|
4578
4720
|
return columns;
|
|
4579
4721
|
};
|
|
4580
4722
|
|
|
4581
|
-
var css$r = {"unpin-icon":"
|
|
4723
|
+
var css$r = {"unpin-icon":"Nxvd7H","unpinIcon":"Nxvd7H","pin-toggler-icon":"fG9JjQ","pinTogglerIcon":"fG9JjQ"};
|
|
4582
4724
|
|
|
4583
4725
|
function PinIconButton(props) {
|
|
4584
4726
|
const i18nLocal = i18n.tables.columnsConfigurationModal;
|
|
@@ -4629,7 +4771,7 @@ function getUnpinIcon(params) {
|
|
|
4629
4771
|
}
|
|
4630
4772
|
}
|
|
4631
4773
|
|
|
4632
|
-
var css$q = {"row-wrapper":"
|
|
4774
|
+
var css$q = {"row-wrapper":"_8NCedf","rowWrapper":"_8NCedf","pin-icon-button":"jfvmSt","pinIconButton":"jfvmSt","not-pinned":"OvTdDW","notPinned":"OvTdDW","checkbox":"KWEjLV","drag-handle":"VDUDgX","dragHandle":"VDUDgX","dnd-disabled":"dDZaOA","dndDisabled":"dDZaOA"};
|
|
4633
4775
|
|
|
4634
4776
|
const ColumnRow = /* @__PURE__ */React__namespace.memo(function ColumnRow(props) {
|
|
4635
4777
|
const { column } = props;
|
|
@@ -4663,7 +4805,7 @@ const ColumnRow = /* @__PURE__ */React__namespace.memo(function ColumnRow(props)
|
|
|
4663
4805
|
return (React__namespace.createElement(uuiCore.DndActor, { key: column.key, srcData: isDndAllowed && data, dstData: data, canAcceptDrop: onCanAcceptDrop, onDrop: onDrop, render: renderContent }));
|
|
4664
4806
|
});
|
|
4665
4807
|
|
|
4666
|
-
var css$p = {"root":"
|
|
4808
|
+
var css$p = {"root":"WFAJIu","main-panel":"gnN2L8","mainPanel":"gnN2L8","group":"s7rdZG","group-title":"h7pjdp","groupTitle":"h7pjdp","group-items":"-clb9l","groupItems":"-clb9l","no-data":"sYlk8C","noData":"sYlk8C","no-data-title":"M-HUYY","noDataTitle":"M-HUYY","no-data-sub-title":"mGCD1R","noDataSubTitle":"mGCD1R","h-divider":"Pd9LlD","hDivider":"Pd9LlD","search-area":"hMbWvD","searchArea":"hMbWvD","subgroup-accordion":"N3AQr2","subgroupAccordion":"N3AQr2","subgroup":"pgdZt7","subgroup-title":"a51HcU","subgroupTitle":"a51HcU"};
|
|
4667
4809
|
|
|
4668
4810
|
const renderGroupTitle = (title, amount) => (React__namespace.createElement(FlexRow, { cx: css$p.group },
|
|
4669
4811
|
React__namespace.createElement(Text, { size: "none", cx: css$p.groupTitle }, title),
|
|
@@ -4766,7 +4908,7 @@ const getChildrenAndRest = (row, rows) => {
|
|
|
4766
4908
|
return [children, rest];
|
|
4767
4909
|
};
|
|
4768
4910
|
|
|
4769
|
-
var css$o = {"listContainer":"
|
|
4911
|
+
var css$o = {"listContainer":"o3EBCy","header":"YjOVZ0","group":"_2CvL54","stickyHeader":"INY7eh"};
|
|
4770
4912
|
|
|
4771
4913
|
function DataRowsGroup({ row, childRows, renderRow, top = 1, }) {
|
|
4772
4914
|
const rowRef = React.useRef(undefined);
|
|
@@ -4806,7 +4948,7 @@ function DataRowsContainer({ estimatedHeight, listContainerRef, offsetY, rows, r
|
|
|
4806
4948
|
React__namespace.default.createElement(DataRowsGroups, { rows: rows, renderRow: renderRow, top: headerRef?.current?.clientHeight }))));
|
|
4807
4949
|
}
|
|
4808
4950
|
|
|
4809
|
-
var css$n = {"root":"
|
|
4951
|
+
var css$n = {"root":"tjYSZ7","sticky-header":"v-kz2B","stickyHeader":"v-kz2B","no-results":"BZ2BIi","noResults":"BZ2BIi","icon":"iIx8Y7","title":"_8vR-87"};
|
|
4810
4952
|
|
|
4811
4953
|
function DataTable(props) {
|
|
4812
4954
|
const { uuiModals } = uuiCore.useUuiContext();
|
|
@@ -4855,7 +4997,7 @@ function DataTable(props) {
|
|
|
4855
4997
|
: (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
4998
|
}
|
|
4857
4999
|
|
|
4858
|
-
var css$m = {"root":"
|
|
5000
|
+
var css$m = {"root":"Jr6fN7","title-wrapper":"ZpWRnD","titleWrapper":"ZpWRnD","title":"_0ZQ5pw","text-wrapper":"clmXAV","textWrapper":"clmXAV","selection":"_7Ex0VE","postfix":"r6Jk2T","selected":"_8wnXVv"};
|
|
4859
5001
|
|
|
4860
5002
|
const FilterPanelItemToggler = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
4861
5003
|
const togglerPickerOpened = (e) => {
|
|
@@ -4954,7 +5096,7 @@ function FilterPickerBody({ highlightSearchMatches = true, ...restProps }) {
|
|
|
4954
5096
|
rows,
|
|
4955
5097
|
}, e);
|
|
4956
5098
|
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 }),
|
|
5099
|
+
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
5100
|
renderFooter()));
|
|
4959
5101
|
};
|
|
4960
5102
|
return renderBody();
|
|
@@ -5080,7 +5222,7 @@ function FilterRangeDatePickerBody(props) {
|
|
|
5080
5222
|
renderFooter()));
|
|
5081
5223
|
}
|
|
5082
5224
|
|
|
5083
|
-
var css$l = {"container":"
|
|
5225
|
+
var css$l = {"container":"JBPNQI"};
|
|
5084
5226
|
|
|
5085
5227
|
function FilterNumericBody(props) {
|
|
5086
5228
|
const isInRangePredicate = props?.selectedPredicate === 'inRange' || props?.selectedPredicate === 'notInRange';
|
|
@@ -5218,9 +5360,9 @@ function FiltersToolbarItemImpl(props) {
|
|
|
5218
5360
|
props.predicates ? (React__namespace.default.createElement(FilterPredicatePanel, { predicates: props.predicates, predicate: predicate, type: props.type, onValueChange: props.onValueChange, value: props.value, setPredicate: setPredicate })) : (!hideTitle && (React__namespace.default.createElement("div", { className: css$s.title }, props.title))),
|
|
5219
5361
|
!props?.isAlwaysVisible && (React__namespace.default.createElement(LinkButton, { cx: css$s.removeButton, caption: i18n.filterToolbar.datePicker.removeCaption, onClick: removeOnclickHandler, size: settings.filtersPanel.sizes.pickerBodyLinkButton, icon: settings.filtersPanel.icons.pickerBodyRemoveIcon }))));
|
|
5220
5362
|
const renderBody = (dropdownProps) => {
|
|
5221
|
-
return isPickersType ? (React__namespace.default.createElement(PickerBodyMobileView, { ...dropdownProps, cx: [css$s.body, UUI_FILTERS_PANEL_ITEM_BODY], title: props.title, width: settings.filtersPanel.sizes.pickerBodyMinWidth, onClose: () => isOpenChange(false) },
|
|
5363
|
+
return isPickersType ? (React__namespace.default.createElement(PickerBodyMobileView, { ...dropdownProps, rawProps: { ...dropdownProps.arrowProps, 'aria-modal': true }, cx: [css$s.body, UUI_FILTERS_PANEL_ITEM_BODY], title: props.title, width: settings.filtersPanel.sizes.pickerBodyMinWidth, onClose: () => isOpenChange(false) },
|
|
5222
5364
|
renderHeader(hideHeaderTitle),
|
|
5223
|
-
React__namespace.default.createElement(FilterItemBody, { ...props, ...dropdownProps, selectedPredicate: predicate, value: getValue(predicate, props.value), onValueChange: onValueChange }))) : (React__namespace.default.createElement(DropdownContainer, { cx: [css$s.body, UUI_FILTERS_PANEL_ITEM_BODY], ...dropdownProps },
|
|
5365
|
+
React__namespace.default.createElement(FilterItemBody, { ...props, ...dropdownProps, selectedPredicate: predicate, value: getValue(predicate, props.value), onValueChange: onValueChange }))) : (React__namespace.default.createElement(DropdownContainer, { cx: [css$s.body, UUI_FILTERS_PANEL_ITEM_BODY], ...dropdownProps, rawProps: { ...dropdownProps.arrowProps, 'aria-modal': true } },
|
|
5224
5366
|
renderHeader(hideHeaderTitle),
|
|
5225
5367
|
React__namespace.default.createElement(FilterItemBody, { ...props, ...dropdownProps, selectedPredicate: predicate, value: getValue(predicate, props.value), onValueChange: onValueChange })));
|
|
5226
5368
|
};
|
|
@@ -5391,7 +5533,7 @@ function FiltersToolbarImpl(props) {
|
|
|
5391
5533
|
}
|
|
5392
5534
|
const FiltersPanel = /* @__PURE__ */React__namespace.default.memo(FiltersToolbarImpl);
|
|
5393
5535
|
|
|
5394
|
-
var css$k = {"delete-button":"
|
|
5536
|
+
var css$k = {"delete-button":"OkvPVs","deleteButton":"OkvPVs","tab-button":"mzvBgk","tabButton":"mzvBgk","targetOpen":"Xd8-BI"};
|
|
5395
5537
|
|
|
5396
5538
|
function PresetActionsDropdown(props) {
|
|
5397
5539
|
const { uuiNotifications } = uuiCore.useUuiContext();
|
|
@@ -5467,7 +5609,7 @@ const UUI_PRESETS_PANEL_MORE_BUTTON = 'uui-presets-panel-more-button';
|
|
|
5467
5609
|
const UUI_PRESETS_PANEL_INPUT = 'uui-presets-panel-input';
|
|
5468
5610
|
const UUI_PRESETS_PANEL_PRESET = 'uui-presets-panel-preset';
|
|
5469
5611
|
|
|
5470
|
-
var css$j = {"preset-input-cell":"
|
|
5612
|
+
var css$j = {"preset-input-cell":"zBtfM-","presetInputCell":"zBtfM-","preset-input":"_8-wJJA","presetInput":"_8-wJJA"};
|
|
5471
5613
|
|
|
5472
5614
|
function PresetInput(props) {
|
|
5473
5615
|
const [presetCaption, setPresetCaption] = React.useState(props.preset?.name || '');
|
|
@@ -5494,7 +5636,7 @@ function PresetInput(props) {
|
|
|
5494
5636
|
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
5637
|
}
|
|
5496
5638
|
|
|
5497
|
-
var css$i = {"preset":"
|
|
5639
|
+
var css$i = {"preset":"Cl35Fz","activePreset":"ywDM3I"};
|
|
5498
5640
|
|
|
5499
5641
|
function Preset(props) {
|
|
5500
5642
|
const [isRenamePreset, setIsRenamePreset] = React.useState(false);
|
|
@@ -5519,7 +5661,7 @@ function Preset(props) {
|
|
|
5519
5661
|
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
5662
|
}
|
|
5521
5663
|
|
|
5522
|
-
var css$h = {"divider":"
|
|
5664
|
+
var css$h = {"divider":"Pfwr3S","dropdownDeleteIcon":"TEqwSY","presetsWrapper":"JDdEfY","addPresetContainer":"sOjGi2","dropContainer":"FTtAnD"};
|
|
5523
5665
|
|
|
5524
5666
|
function PresetsPanel(props) {
|
|
5525
5667
|
const [isAddingPreset, setIsAddingPreset] = React.useState(false);
|
|
@@ -5568,9 +5710,9 @@ function PresetsPanel(props) {
|
|
|
5568
5710
|
React__namespace.default.createElement(uuiComponents.AdaptivePanel, { items: getPanelItems() }))));
|
|
5569
5711
|
}
|
|
5570
5712
|
|
|
5571
|
-
var css$g = {"root":"
|
|
5713
|
+
var css$g = {"root":"vXX3DP"};
|
|
5572
5714
|
|
|
5573
|
-
var css$f = {"root":"
|
|
5715
|
+
var css$f = {"root":"mM4fS8","burger-content":"Iip-wm","burgerContent":"Iip-wm"};
|
|
5574
5716
|
|
|
5575
5717
|
var _path$3;
|
|
5576
5718
|
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 +5755,7 @@ var SvgNavigationArrowDownOutline = function SvgNavigationArrowDownOutline(props
|
|
|
5613
5755
|
};
|
|
5614
5756
|
var ForwardRef$2 = /*#__PURE__*/React.forwardRef(SvgNavigationArrowDownOutline);
|
|
5615
5757
|
|
|
5616
|
-
var css$e = {"root":"
|
|
5758
|
+
var css$e = {"root":"aoIEPm","button-primary":"Pdl-O-","buttonPrimary":"Pdl-O-","button-secondary":"irX5AT","buttonSecondary":"irX5AT","hasIcon":"MM3Rem","dropdown":"ad9kUj"};
|
|
5617
5759
|
|
|
5618
5760
|
function applyBurgerButtonMods(props) {
|
|
5619
5761
|
return [
|
|
@@ -5638,13 +5780,13 @@ const BurgerButton = /* @__PURE__ */React__namespace.default.forwardRef((props,
|
|
|
5638
5780
|
}, dropdownIcon: ForwardRef$2 }));
|
|
5639
5781
|
});
|
|
5640
5782
|
|
|
5641
|
-
var css$d = {"search-input":"
|
|
5783
|
+
var css$d = {"search-input":"oSkSBR","searchInput":"oSkSBR"};
|
|
5642
5784
|
|
|
5643
5785
|
function BurgerSearch(props) {
|
|
5644
5786
|
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
5787
|
}
|
|
5646
5788
|
|
|
5647
|
-
var css$c = {"root":"
|
|
5789
|
+
var css$c = {"root":"Z8MKw1","group-header":"lBb5vZ","groupHeader":"lBb5vZ","group-name":"orLD22","groupName":"orLD22","line":"EkVnP-"};
|
|
5648
5790
|
|
|
5649
5791
|
function BurgerGroupHeader(props) {
|
|
5650
5792
|
return (React__namespace.createElement("div", { className: cx__default.default(css$c.root, css$c.groupHeader, 'uui-burger-group-header') },
|
|
@@ -5652,7 +5794,7 @@ function BurgerGroupHeader(props) {
|
|
|
5652
5794
|
React__namespace.createElement("span", { className: css$c.groupName }, props.caption)));
|
|
5653
5795
|
}
|
|
5654
5796
|
|
|
5655
|
-
var css$b = {"root":"
|
|
5797
|
+
var css$b = {"root":"WSCYgO","type-primary":"izG5lJ","typePrimary":"izG5lJ","type-secondary":"gsjURf","typeSecondary":"gsjURf"};
|
|
5656
5798
|
|
|
5657
5799
|
const MainMenuButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5658
5800
|
const { type, ...clickableProps } = props;
|
|
@@ -5680,7 +5822,7 @@ const MainMenuButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) =
|
|
|
5680
5822
|
props.isDropdown && (React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$P, flipY: props.isOpen }))));
|
|
5681
5823
|
});
|
|
5682
5824
|
|
|
5683
|
-
var css$a = {"dropdown-body":"
|
|
5825
|
+
var css$a = {"dropdown-body":"g83vaP","dropdownBody":"g83vaP"};
|
|
5684
5826
|
|
|
5685
5827
|
function MainMenuDropdown(props) {
|
|
5686
5828
|
const handleEscape = (e, onClose, isOpen) => {
|
|
@@ -5688,10 +5830,13 @@ function MainMenuDropdown(props) {
|
|
|
5688
5830
|
onClose();
|
|
5689
5831
|
}
|
|
5690
5832
|
};
|
|
5691
|
-
return (React__namespace.default.createElement(uuiComponents.Dropdown, { renderTarget: (dropdownProps) => (React__namespace.default.createElement(MainMenuButton, { caption: props.caption, ...dropdownProps, rawProps:
|
|
5833
|
+
return (React__namespace.default.createElement(uuiComponents.Dropdown, { renderTarget: (dropdownProps) => (React__namespace.default.createElement(MainMenuButton, { caption: props.caption, ...dropdownProps, rawProps: {
|
|
5834
|
+
'aria-haspopup': 'menu',
|
|
5835
|
+
...props.rawProps,
|
|
5836
|
+
}, isActive: props.isActive, isDropdown: true })), renderBody: (dropdownBodyProps) => (React__namespace.default.createElement(FocusLock__default.default, { returnFocus: true, persistentFocus: true, lockProps: {
|
|
5692
5837
|
onKeyDown: (e) => handleEscape(e, dropdownBodyProps.onClose, dropdownBodyProps.isOpen),
|
|
5693
5838
|
} },
|
|
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" }));
|
|
5839
|
+
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
5840
|
}
|
|
5696
5841
|
|
|
5697
5842
|
function applyMainMenuMods() {
|
|
@@ -5723,12 +5868,12 @@ var SvgNavigationGlobalMenuOutlineOutline = function SvgNavigationGlobalMenuOutl
|
|
|
5723
5868
|
};
|
|
5724
5869
|
var ForwardRef$1 = /*#__PURE__*/React.forwardRef(SvgNavigationGlobalMenuOutlineOutline);
|
|
5725
5870
|
|
|
5726
|
-
var css$9 = {"global-menu-btn":"
|
|
5871
|
+
var css$9 = {"global-menu-btn":"GxtYRl","globalMenuBtn":"GxtYRl","global-menu-icon":"qI7KOq","globalMenuIcon":"qI7KOq"};
|
|
5727
5872
|
|
|
5728
5873
|
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
5874
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 36, icon: ForwardRef$1, cx: css$9.globalMenuIcon }))));
|
|
5730
5875
|
|
|
5731
|
-
var css$8 = {"container":"
|
|
5876
|
+
var css$8 = {"container":"PK5s5K","open":"_--CMyR","folding-arrow":"R2UeDT","foldingArrow":"R2UeDT"};
|
|
5732
5877
|
|
|
5733
5878
|
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
5879
|
React__namespace.createElement(uuiComponents.Avatar, { size: "36", img: props.avatarUrl }),
|
|
@@ -5736,15 +5881,15 @@ const MainMenuAvatar = /* @__PURE__ */React__namespace.forwardRef((props, ref) =
|
|
|
5736
5881
|
props.isDropdown && (React__namespace.createElement("div", null,
|
|
5737
5882
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, icon: ForwardRef$P, flipY: props.isOpen, cx: css$8.foldingArrow }))))));
|
|
5738
5883
|
|
|
5739
|
-
var css$7 = {"search-input":"
|
|
5884
|
+
var css$7 = {"search-input":"PyAbJ7","searchInput":"PyAbJ7"};
|
|
5740
5885
|
|
|
5741
5886
|
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
5887
|
|
|
5743
|
-
var css$6 = {"container":"
|
|
5888
|
+
var css$6 = {"container":"_8jcFV6"};
|
|
5744
5889
|
|
|
5745
5890
|
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
5891
|
|
|
5747
|
-
var css$5 = {"root":"
|
|
5892
|
+
var css$5 = {"root":"M7lLFI"};
|
|
5748
5893
|
|
|
5749
5894
|
const Anchor = /* @__PURE__ */uuiCore.withMods(uuiComponents.Anchor, () => [css$5.root]);
|
|
5750
5895
|
|
|
@@ -5802,7 +5947,7 @@ var SvgFileCloudUploadFill = function SvgFileCloudUploadFill(props, ref) {
|
|
|
5802
5947
|
};
|
|
5803
5948
|
var ForwardRef = /*#__PURE__*/React.forwardRef(SvgFileCloudUploadFill);
|
|
5804
5949
|
|
|
5805
|
-
var css$4 = {"root":"
|
|
5950
|
+
var css$4 = {"root":"sObhr8","drop-start":"_1k1E2E","dropStart":"_1k1E2E","drop-over":"_2f9qQJ","dropOver":"_2f9qQJ","link":"_4q4vVv","drop-area":"D2cItJ","dropArea":"D2cItJ","drop-caption":"UC-LWl","dropCaption":"UC-LWl","icon-blue":"ALwEj-","iconBlue":"ALwEj-"};
|
|
5806
5951
|
|
|
5807
5952
|
function DropSpot(props) {
|
|
5808
5953
|
const getInfoText = typeof props.infoText === 'string'
|
|
@@ -5820,7 +5965,7 @@ function DropSpot(props) {
|
|
|
5820
5965
|
return React__namespace.createElement(uuiComponents.DropSpot, { render: renderAttachmentArea, onFilesDropped: props.onUploadFiles });
|
|
5821
5966
|
}
|
|
5822
5967
|
|
|
5823
|
-
var css$3 = {"root":"
|
|
5968
|
+
var css$3 = {"root":"cqnPz7"};
|
|
5824
5969
|
|
|
5825
5970
|
const SvgCircleProgress = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5826
5971
|
const outsetRadius = props.size / 2 - 1;
|
|
@@ -5831,7 +5976,7 @@ const SvgCircleProgress = /* @__PURE__ */React__namespace.forwardRef((props, ref
|
|
|
5831
5976
|
React__namespace.createElement("circle", { strokeWidth: 1, fill: "transparent", r: outsetRadius, cx: props.size / 2, cy: props.size / 2 })));
|
|
5832
5977
|
});
|
|
5833
5978
|
|
|
5834
|
-
var css$2 = {"root":"
|
|
5979
|
+
var css$2 = {"root":"_3cwuh-","file-name":"_6gnHvs","fileName":"_6gnHvs","default-color":"otwSV0","defaultColor":"otwSV0","doc-color":"_3DPL0n","docColor":"_3DPL0n","xls-color":"NJu6xp","xlsColor":"NJu6xp","pdf-color":"-VxYwF","pdfColor":"-VxYwF","movie-color":"Wr52xo","movieColor":"Wr52xo","img-color":"Bz5e4C","imgColor":"Bz5e4C","mov-color":"w6Twno","movColor":"w6Twno","error-block":"dfEKNZ","errorBlock":"dfEKNZ","icons-block":"NhB8mK","iconsBlock":"NhB8mK"};
|
|
5835
5980
|
|
|
5836
5981
|
const FileCard = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5837
5982
|
const [isLoadingShow, setIsLoadingShow] = React__namespace.useState(true);
|
|
@@ -5913,44 +6058,45 @@ const getRecoveryMessageConfig = () => ({
|
|
|
5913
6058
|
'connection-lost': i18n.errorHandler.recoveryMessageConfig['connection-lost'],
|
|
5914
6059
|
maintenance: i18n.errorHandler.recoveryMessageConfig.maintenance,
|
|
5915
6060
|
'server-overload': i18n.errorHandler.recoveryMessageConfig['server-overload'],
|
|
6061
|
+
'abort-signal': { title: 'abort signal', subtitle: 'abort signal' },
|
|
5916
6062
|
});
|
|
5917
6063
|
const getErrorPageConfig = () => ({
|
|
5918
6064
|
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-
|
|
6065
|
+
imageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-2025/404.svg',
|
|
6066
|
+
mobileImageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-2025/404.svg',
|
|
5921
6067
|
title: i18n.errorHandler.errorPageConfig.notFound.title,
|
|
5922
6068
|
subtitle: i18n.errorHandler.errorPageConfig.notFound.subtitle,
|
|
5923
6069
|
},
|
|
5924
6070
|
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-
|
|
6071
|
+
imageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-2025/403.svg',
|
|
6072
|
+
mobileImageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-2025/403.svg',
|
|
5927
6073
|
title: i18n.errorHandler.errorPageConfig.permissionDenied.title,
|
|
5928
6074
|
subtitle: i18n.errorHandler.errorPageConfig.permissionDenied.subtitle,
|
|
5929
6075
|
},
|
|
5930
6076
|
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-
|
|
6077
|
+
imageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-2025/500.svg',
|
|
6078
|
+
mobileImageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-2025/500.svg',
|
|
5933
6079
|
title: i18n.errorHandler.errorPageConfig.serverError.title,
|
|
5934
6080
|
subtitle: i18n.errorHandler.errorPageConfig.serverError.subtitle,
|
|
5935
6081
|
supportLink: i18n.errorHandler.supportMessage,
|
|
5936
6082
|
},
|
|
5937
6083
|
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-
|
|
6084
|
+
imageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-2025/503.svg',
|
|
6085
|
+
mobileImageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-2025/503.svg',
|
|
5940
6086
|
title: i18n.errorHandler.errorPageConfig.serviceUnavailable.title,
|
|
5941
6087
|
subtitle: i18n.errorHandler.errorPageConfig.serviceUnavailable.subtitle,
|
|
5942
6088
|
supportLink: i18n.errorHandler.supportMessage,
|
|
5943
6089
|
},
|
|
5944
6090
|
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-
|
|
6091
|
+
imageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-2025/Something went wrong.svg',
|
|
6092
|
+
mobileImageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-2025/Something went wrong.svg',
|
|
5947
6093
|
title: i18n.errorHandler.errorPageConfig.default.title,
|
|
5948
6094
|
subtitle: i18n.errorHandler.errorPageConfig.default.subtitle,
|
|
5949
6095
|
supportLink: i18n.errorHandler.supportMessage,
|
|
5950
6096
|
},
|
|
5951
6097
|
});
|
|
5952
6098
|
|
|
5953
|
-
var css$1 = {"container":"
|
|
6099
|
+
var css$1 = {"container":"ps4eFP"};
|
|
5954
6100
|
|
|
5955
6101
|
const ErrorPage = (props) => {
|
|
5956
6102
|
const isMobileScreen = uuiCore.isMobile();
|
|
@@ -5962,7 +6108,7 @@ const ErrorPage = (props) => {
|
|
|
5962
6108
|
props?.supportLink && React__namespace.default.createElement("div", { className: "uui-error-support-link" }, props?.supportLink))));
|
|
5963
6109
|
};
|
|
5964
6110
|
|
|
5965
|
-
var css = {"recovery-spinner":"
|
|
6111
|
+
var css = {"recovery-spinner":"l2XbfG","recoverySpinner":"l2XbfG","recovery-message":"-GLWvF","recoveryMessage":"-GLWvF","modal-blocker":"W-r0eV","modalBlocker":"W-r0eV","modalFadeIn":"_5NM4ym"};
|
|
5966
6112
|
|
|
5967
6113
|
function ErrorHandler(props) {
|
|
5968
6114
|
const { uuiNotifications, uuiModals, uuiApi } = uuiCore.useUuiContext();
|