@epam/uui 6.5.0-alpha.0 → 6.5.1-beta.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/index.scss +6 -6
- package/assets/styles/typography.scss +184 -184
- package/components/datePickers/Calendar.d.ts +16 -2
- package/components/datePickers/Calendar.d.ts.map +1 -1
- package/components/datePickers/CalendarPresets.d.ts.map +1 -1
- package/components/datePickers/DatePickerBody.d.ts +6 -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.map +1 -1
- package/components/datePickers/RangeDatePickerInput.d.ts +4 -0
- package/components/datePickers/RangeDatePickerInput.d.ts.map +1 -1
- package/components/datePickers/RangeDatePickerModal.d.ts +11 -0
- package/components/datePickers/RangeDatePickerModal.d.ts.map +1 -0
- package/components/datePickers/helpers.d.ts +1 -0
- package/components/datePickers/helpers.d.ts.map +1 -1
- package/components/errors/ErrorHandler.d.ts.map +1 -1
- package/components/filters/PresetPanel/PresetActionsDropdown.d.ts.map +1 -1
- package/components/overlays/Snackbar.d.ts.map +1 -1
- package/components/pickers/PickerModal.d.ts.map +1 -1
- package/i18n.d.ts +6 -0
- package/i18n.d.ts.map +1 -1
- package/index.esm.js +371 -268
- package/index.esm.js.map +1 -1
- package/index.js +371 -268
- package/index.js.map +1 -1
- package/package.json +5 -5
- package/readme.md +9 -9
- package/settings.d.ts +1 -0
- package/settings.d.ts.map +1 -1
- package/stats.html +1 -1
- package/styles.css +1252 -1042
- package/styles.css.map +1 -1
package/index.js
CHANGED
|
@@ -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(#86y8n2cgql43goqxg_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: "86y8n2ykqv84rixjh_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(#86y8n2ykqv84rixjh_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: "86y8n2cgql43goqxg_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$
|
|
964
|
+
var css$1x = {"root":"OuBUh3","uui-spinner":"pQ0oho","uuiSpinner":"pQ0oho"};
|
|
965
965
|
|
|
966
966
|
function applySpinnerMods() {
|
|
967
|
-
return [css$
|
|
967
|
+
return [css$1x.root, 'uui-spinner'];
|
|
968
968
|
}
|
|
969
969
|
const Spinner = /* @__PURE__ */uuiCore.withMods(uuiComponents.Spinner, applySpinnerMods);
|
|
970
970
|
|
|
971
|
-
var css$
|
|
971
|
+
var css$1w = {"root":"qOBIXH","loading-word":"CgWZEU","loadingWord":"CgWZEU","animated-loading":"ZEEs3l","animatedLoading":"ZEEs3l","skeleton_loading":"_5xYtVF","skeletonLoading":"_5xYtVF"};
|
|
972
972
|
|
|
973
973
|
const TextPlaceholder = (props) => {
|
|
974
974
|
const pattern = ' ';
|
|
@@ -980,20 +980,20 @@ const TextPlaceholder = (props) => {
|
|
|
980
980
|
}
|
|
981
981
|
return words;
|
|
982
982
|
}, [props.wordsCount]);
|
|
983
|
-
return (React__namespace.createElement("div", { "aria-busy": true, className: cx__default.default(css$
|
|
984
|
-
props.cx, css$
|
|
983
|
+
return (React__namespace.createElement("div", { "aria-busy": true, className: cx__default.default(css$1w.root, 'uui-text-placeholder'), ...props.rawProps }, text.map((it, index) => (React__namespace.createElement("span", { key: index, className: cx__default.default([
|
|
984
|
+
props.cx, css$1w.loadingWord, !props.isNotAnimated && css$1w.animatedLoading,
|
|
985
985
|
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
986
986
|
};
|
|
987
987
|
|
|
988
|
-
var css$
|
|
988
|
+
var css$1v = {"root":"_2MOxcp","line-height":"gbBOkC","lineHeight":"gbBOkC","font-size":"_0e9G-g","fontSize":"_0e9G-g"};
|
|
989
989
|
|
|
990
990
|
function applyTextMods(mods) {
|
|
991
991
|
return [
|
|
992
|
-
css$
|
|
992
|
+
css$1v.root,
|
|
993
993
|
'uui-text',
|
|
994
994
|
`uui-size-${mods.size || settings.text.sizes.default}`,
|
|
995
|
-
(mods.size !== 'none' || mods.lineHeight) && css$
|
|
996
|
-
(mods.size !== 'none' || mods.fontSize) && css$
|
|
995
|
+
(mods.size !== 'none' || mods.lineHeight) && css$1v.lineHeight,
|
|
996
|
+
(mods.size !== 'none' || mods.fontSize) && css$1v.fontSize,
|
|
997
997
|
`uui-color-${mods.color || 'primary'}`,
|
|
998
998
|
`uui-font-weight-${mods.fontWeight || '400'}`,
|
|
999
999
|
`uui-font-style-${mods.fontStyle || 'normal'}`,
|
|
@@ -1012,9 +1012,9 @@ const Text = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Text, appl
|
|
|
1012
1012
|
};
|
|
1013
1013
|
});
|
|
1014
1014
|
|
|
1015
|
-
var css$
|
|
1015
|
+
var css$1u = {"root":"_2CgssR"};
|
|
1016
1016
|
|
|
1017
|
-
const Blocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.Blocker, () => [css$
|
|
1017
|
+
const Blocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.Blocker, () => [css$1u.root], () => ({ renderSpinner: settings.blocker.renderSpinner }));
|
|
1018
1018
|
|
|
1019
1019
|
const accordionSettings = {
|
|
1020
1020
|
icons: {
|
|
@@ -1383,6 +1383,7 @@ const rangeDatePickerSettings = {
|
|
|
1383
1383
|
sizes: {
|
|
1384
1384
|
default: '36',
|
|
1385
1385
|
preset: '24',
|
|
1386
|
+
mobilePreset: '30',
|
|
1386
1387
|
},
|
|
1387
1388
|
};
|
|
1388
1389
|
const ratingSettings = {
|
|
@@ -1517,11 +1518,11 @@ const settings = {
|
|
|
1517
1518
|
textInput: textInputSettings,
|
|
1518
1519
|
};
|
|
1519
1520
|
|
|
1520
|
-
var css$
|
|
1521
|
+
var css$1t = {"root":"_93Kume"};
|
|
1521
1522
|
|
|
1522
1523
|
function applyButtonMods(mods) {
|
|
1523
1524
|
return [
|
|
1524
|
-
css$
|
|
1525
|
+
css$1t.root,
|
|
1525
1526
|
'uui-button',
|
|
1526
1527
|
`uui-fill-${mods.fill || 'solid'}`,
|
|
1527
1528
|
`uui-color-${mods.color || 'primary'}`,
|
|
@@ -1535,10 +1536,10 @@ const Button = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Button,
|
|
|
1535
1536
|
};
|
|
1536
1537
|
});
|
|
1537
1538
|
|
|
1538
|
-
var css$
|
|
1539
|
+
var css$1s = {"root":"_2X5nEJ"};
|
|
1539
1540
|
|
|
1540
1541
|
function applyIconButtonMods(props) {
|
|
1541
|
-
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$
|
|
1542
|
+
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$1s.root];
|
|
1542
1543
|
}
|
|
1543
1544
|
const IconButton = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.IconButton, applyIconButtonMods, (props) => {
|
|
1544
1545
|
const isDeprecated = ['info', 'success', 'error', 'warning'].includes(props.color);
|
|
@@ -1572,7 +1573,7 @@ function getIconClass(props) {
|
|
|
1572
1573
|
return [classList['has-left-icon'] ? 'uui-has-left-icon' : 'uui-no-left-icon', classList['has-right-icon'] ? 'uui-has-right-icon' : 'uui-no-right-icon'];
|
|
1573
1574
|
}
|
|
1574
1575
|
|
|
1575
|
-
var css$
|
|
1576
|
+
var css$1r = {"root":"IKNhEL"};
|
|
1576
1577
|
|
|
1577
1578
|
const DEFAULT_COLOR = 'primary';
|
|
1578
1579
|
const LinkButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
@@ -1587,7 +1588,7 @@ const LinkButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
1587
1588
|
}
|
|
1588
1589
|
const rootStyles = [
|
|
1589
1590
|
'uui-link_button',
|
|
1590
|
-
css$
|
|
1591
|
+
css$1r.root,
|
|
1591
1592
|
`uui-size-${props.size || settings.linkButton.sizes.default}`,
|
|
1592
1593
|
...getIconClass(props),
|
|
1593
1594
|
`uui-color-${props.color || DEFAULT_COLOR}`,
|
|
@@ -1602,11 +1603,11 @@ const LinkButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
1602
1603
|
props.isDropdown && (React__namespace.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
1603
1604
|
});
|
|
1604
1605
|
|
|
1605
|
-
var css$
|
|
1606
|
+
var css$1q = {"root":"Gq5yqS"};
|
|
1606
1607
|
|
|
1607
1608
|
const CountIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1608
1609
|
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
1609
|
-
css$
|
|
1610
|
+
css$1q.root,
|
|
1610
1611
|
'uui-count_indicator',
|
|
1611
1612
|
`uui-size-${props.size || settings.countIndicator.sizes.default}`,
|
|
1612
1613
|
props.color && `uui-color-${props.color}`,
|
|
@@ -1614,7 +1615,7 @@ const CountIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1614
1615
|
]) }, props.caption));
|
|
1615
1616
|
});
|
|
1616
1617
|
|
|
1617
|
-
var css$
|
|
1618
|
+
var css$1p = {"root":"_3vsS8v","withNotify":"GzurRq"};
|
|
1618
1619
|
|
|
1619
1620
|
const TabButton = /* @__PURE__ */React__namespace.default.forwardRef((props, refExternal) => {
|
|
1620
1621
|
const refLocal = React__namespace.default.useRef(null);
|
|
@@ -1626,7 +1627,7 @@ const TabButton = /* @__PURE__ */React__namespace.default.forwardRef((props, ref
|
|
|
1626
1627
|
});
|
|
1627
1628
|
const styles = [
|
|
1628
1629
|
isActive && uuiCore.uuiMod.active,
|
|
1629
|
-
css$
|
|
1630
|
+
css$1p.root,
|
|
1630
1631
|
'uui-tab-button',
|
|
1631
1632
|
`uui-size-${props.size || settings.tabButton.sizes.default}`,
|
|
1632
1633
|
...getIconClass(props),
|
|
@@ -1654,26 +1655,26 @@ const TabButton = /* @__PURE__ */React__namespace.default.forwardRef((props, ref
|
|
|
1654
1655
|
props.icon && props.iconPosition !== 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1655
1656
|
(props.caption || props.withNotify) && (React__namespace.default.createElement("div", { className: uuiCore.cx(uuiCore.uuiElement.caption) },
|
|
1656
1657
|
props.caption,
|
|
1657
|
-
props.withNotify && React__namespace.default.createElement("div", { className: css$
|
|
1658
|
+
props.withNotify && React__namespace.default.createElement("div", { className: css$1p.withNotify }))),
|
|
1658
1659
|
props.icon && props.iconPosition === 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1659
1660
|
props.count !== undefined && props.count !== null && (React__namespace.default.createElement(CountIndicator, { color: "neutral", size: settings.tabButton.sizes.countIndicatorMap[props.size || settings.tabButton.sizes.default], caption: props.count })),
|
|
1660
1661
|
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
1661
1662
|
props.onClear && !props.isDisabled && (React__namespace.default.createElement(uuiComponents.IconContainer, { cx: uuiCore.uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
1662
1663
|
});
|
|
1663
1664
|
|
|
1664
|
-
var css$
|
|
1665
|
+
var css$1o = {"root":"usEo37","noLeftPadding":"Mqrfq0","foldingArea":"_3mG6bZ","onlyFoldable":"AiAJzz","captionWrapper":"klsMLj","withNotify":"fWP-Bc"};
|
|
1665
1666
|
|
|
1666
|
-
var css$
|
|
1667
|
+
var css$1n = {"root":"AKPEoQ"};
|
|
1667
1668
|
|
|
1668
|
-
const AvatarStack = /* @__PURE__ */uuiCore.withMods(uuiComponents.AvatarStack, () => [css$
|
|
1669
|
+
const AvatarStack = /* @__PURE__ */uuiCore.withMods(uuiComponents.AvatarStack, () => [css$1n.root]);
|
|
1669
1670
|
|
|
1670
|
-
var css$
|
|
1671
|
+
var css$1m = {"root":"BUFVmU"};
|
|
1671
1672
|
|
|
1672
1673
|
const DEFAULT_FILL = 'solid';
|
|
1673
1674
|
function applyBadgeMods(mods) {
|
|
1674
1675
|
return [
|
|
1675
1676
|
'uui-badge',
|
|
1676
|
-
css$
|
|
1677
|
+
css$1m.root,
|
|
1677
1678
|
`uui-size-${mods.size || settings.badge.sizes.default}`,
|
|
1678
1679
|
`uui-fill-${mods.fill || DEFAULT_FILL}`,
|
|
1679
1680
|
`uui-color-${mods.color || 'info'}`,
|
|
@@ -1695,11 +1696,11 @@ const Badge = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) =>
|
|
|
1695
1696
|
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
1696
1697
|
});
|
|
1697
1698
|
|
|
1698
|
-
var css$
|
|
1699
|
+
var css$1l = {"root":"WrLoYS"};
|
|
1699
1700
|
|
|
1700
1701
|
function applyTagMods(props) {
|
|
1701
1702
|
return [
|
|
1702
|
-
css$
|
|
1703
|
+
css$1l.root,
|
|
1703
1704
|
`uui-size-${props.size || settings.tag.sizes.default}`,
|
|
1704
1705
|
`uui-color-${props.color || 'neutral'}`,
|
|
1705
1706
|
`uui-fill-${props.fill || 'solid'}`,
|
|
@@ -1728,11 +1729,11 @@ const Tag = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
|
1728
1729
|
} }))));
|
|
1729
1730
|
});
|
|
1730
1731
|
|
|
1731
|
-
var css$
|
|
1732
|
+
var css$1k = {"root":"y3HEp7","page":"TzCuyj","spacer":"cZc-AL","mode-ghost":"HkaxFZ","modeGhost":"HkaxFZ"};
|
|
1732
1733
|
|
|
1733
1734
|
function Paginator(props) {
|
|
1734
1735
|
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$
|
|
1736
|
+
React__namespace.default.createElement("ul", { className: css$1k.root },
|
|
1736
1737
|
React__namespace.default.createElement("li", null,
|
|
1737
1738
|
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
1739
|
'aria-label': 'Previous page',
|
|
@@ -1740,11 +1741,11 @@ function Paginator(props) {
|
|
|
1740
1741
|
params.pages.map((page, index) => {
|
|
1741
1742
|
if (page.type === 'spacer') {
|
|
1742
1743
|
return (React__namespace.default.createElement("li", { key: `${index}_spacer` },
|
|
1743
|
-
React__namespace.default.createElement(Button, { cx: cx__default.default(css$
|
|
1744
|
+
React__namespace.default.createElement(Button, { cx: cx__default.default(css$1k.spacer, css$1k.page), size: props.size || settings.paginator.sizes.default, caption: "...", fill: "ghost", color: "secondary", tabIndex: -1, isDisabled: props.isDisabled })));
|
|
1744
1745
|
}
|
|
1745
1746
|
else {
|
|
1746
1747
|
return (React__namespace.default.createElement("li", { key: page.pageNumber },
|
|
1747
|
-
React__namespace.default.createElement(Button, { cx: cx__default.default(css$
|
|
1748
|
+
React__namespace.default.createElement(Button, { cx: cx__default.default(css$1k[`mode-${!page.isActive && 'ghost'}`], css$1k.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
|
}
|
|
1749
1750
|
}),
|
|
1750
1751
|
React__namespace.default.createElement("li", null,
|
|
@@ -1754,40 +1755,40 @@ function Paginator(props) {
|
|
|
1754
1755
|
return React__namespace.default.createElement(uuiComponents.Paginator, { ...props, render: renderPaginator });
|
|
1755
1756
|
}
|
|
1756
1757
|
|
|
1757
|
-
var css$
|
|
1758
|
+
var css$1j = {"root":"iMrosC","progress-bar":"E-Sysv","progressBar":"E-Sysv","progressBar-indeterminate":"vVd1qf","progressBarIndeterminate":"vVd1qf","size-12":"olb-JK","size12":"olb-JK","size-18":"BScQLT","size18":"BScQLT","size-24":"RMDLQY","size24":"RMDLQY"};
|
|
1758
1759
|
|
|
1759
1760
|
const IndeterminateBar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
1760
|
-
return (React__namespace.createElement("div", { ref: ref, className: cx__default.default('uui-indeterminate_bar', props.cx, css$
|
|
1761
|
-
React__namespace.createElement("div", { className: cx__default.default(css$
|
|
1761
|
+
return (React__namespace.createElement("div", { ref: ref, className: cx__default.default('uui-indeterminate_bar', props.cx, css$1j.root, css$1j[`size-${props.size || 12}`]) },
|
|
1762
|
+
React__namespace.createElement("div", { className: cx__default.default(css$1j.progressBar) })));
|
|
1762
1763
|
});
|
|
1763
1764
|
|
|
1764
|
-
var css$
|
|
1765
|
+
var css$1i = {"root":"-J7I2e","striped":"SZyzmH","animate-stripes":"u-4gbW","animateStripes":"u-4gbW","size-12":"sVXf6M","size12":"sVXf6M","size-18":"kH5E--","size18":"kH5E--","size-24":"_3n7saA","size24":"_3n7saA"};
|
|
1765
1766
|
|
|
1766
1767
|
const DEFAULT_SIZE = '12';
|
|
1767
1768
|
function applyProgressBarMods(mods) {
|
|
1768
1769
|
const size = mods.size || DEFAULT_SIZE;
|
|
1769
1770
|
return [
|
|
1770
|
-
css$
|
|
1771
|
-
css$
|
|
1772
|
-
mods.striped && css$
|
|
1771
|
+
css$1i.root,
|
|
1772
|
+
css$1i[`size-${size}`],
|
|
1773
|
+
mods.striped && css$1i.striped,
|
|
1773
1774
|
];
|
|
1774
1775
|
}
|
|
1775
1776
|
const ProgressBar = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.ProgressBar, applyProgressBarMods, (props) => ({
|
|
1776
1777
|
hideLabel: props.hideLabel || props.striped,
|
|
1777
1778
|
}));
|
|
1778
1779
|
|
|
1779
|
-
var css$
|
|
1780
|
+
var css$1h = {"root":"Vf7ycQ"};
|
|
1780
1781
|
|
|
1781
1782
|
const IndicatorBar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
1782
1783
|
const { progress } = props;
|
|
1783
|
-
return progress || progress === 0 ? (React__namespace.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx__default.default(css$
|
|
1784
|
+
return progress || progress === 0 ? (React__namespace.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx__default.default(css$1h.root, props.cx), hideLabel: true })) : (React__namespace.createElement(IndeterminateBar, { ref: ref, cx: cx__default.default(css$1h.root, props.cx) }));
|
|
1784
1785
|
});
|
|
1785
1786
|
|
|
1786
|
-
var css$
|
|
1787
|
+
var css$1g = {"root":"Y0iy29"};
|
|
1787
1788
|
|
|
1788
1789
|
const StatusIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1789
1790
|
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
1790
|
-
css$
|
|
1791
|
+
css$1g.root,
|
|
1791
1792
|
`uui-size-${props.size || settings.statusIndicator.sizes.default}`,
|
|
1792
1793
|
'uui-status_indicator',
|
|
1793
1794
|
`uui-color-${props.color || 'neutral'}`,
|
|
@@ -1798,11 +1799,11 @@ const StatusIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1798
1799
|
React__namespace.default.createElement("p", { className: "uui-status_indicator-caption" }, props.caption)));
|
|
1799
1800
|
});
|
|
1800
1801
|
|
|
1801
|
-
var css$
|
|
1802
|
+
var css$1f = {"root":"SwPEPA"};
|
|
1802
1803
|
|
|
1803
1804
|
function applyCheckboxMods(mods) {
|
|
1804
1805
|
return [
|
|
1805
|
-
css$
|
|
1806
|
+
css$1f.root,
|
|
1806
1807
|
`uui-size-${mods.size || settings.checkbox.sizes.default}`,
|
|
1807
1808
|
'uui-control-mode-' + (mods.mode || 'form'),
|
|
1808
1809
|
'uui-color-primary',
|
|
@@ -1816,11 +1817,11 @@ const applyUUICheckboxProps = (props) => {
|
|
|
1816
1817
|
};
|
|
1817
1818
|
const Checkbox = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Checkbox, applyCheckboxMods, applyUUICheckboxProps);
|
|
1818
1819
|
|
|
1819
|
-
var css$
|
|
1820
|
+
var css$1e = {"root":"_0U1M0x"};
|
|
1820
1821
|
|
|
1821
1822
|
function applyRadioInputMods(mods) {
|
|
1822
1823
|
return [
|
|
1823
|
-
css$
|
|
1824
|
+
css$1e.root,
|
|
1824
1825
|
`uui-size-${mods.size || settings.radioInput.sizes.default}`,
|
|
1825
1826
|
'uui-radio-input-container',
|
|
1826
1827
|
'uui-color-primary',
|
|
@@ -1828,11 +1829,11 @@ function applyRadioInputMods(mods) {
|
|
|
1828
1829
|
}
|
|
1829
1830
|
const RadioInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.RadioInput, applyRadioInputMods, (props) => ({ icon: props.icon ? props.icon : settings.radioInput.icons.dotIcon }));
|
|
1830
1831
|
|
|
1831
|
-
var css$
|
|
1832
|
+
var css$1d = {"root":"ln8RhG"};
|
|
1832
1833
|
|
|
1833
1834
|
function applySwitchMods(mods) {
|
|
1834
1835
|
return [
|
|
1835
|
-
css$
|
|
1836
|
+
css$1d.root,
|
|
1836
1837
|
`uui-size-${mods.size || settings.switch.sizes.default}`,
|
|
1837
1838
|
'uui-color-primary',
|
|
1838
1839
|
];
|
|
@@ -1852,7 +1853,7 @@ var EditMode;
|
|
|
1852
1853
|
EditMode["INLINE"] = "inline";
|
|
1853
1854
|
})(EditMode || (EditMode = {}));
|
|
1854
1855
|
|
|
1855
|
-
var textInputCss = {"root":"
|
|
1856
|
+
var textInputCss = {"root":"KRjCQq"};
|
|
1856
1857
|
|
|
1857
1858
|
const DEFAULT_MODE$3 = EditMode.FORM;
|
|
1858
1859
|
function applyTextInputMods(mods) {
|
|
@@ -1877,9 +1878,9 @@ const SearchInput = /* @__PURE__ */React__namespace.default.forwardRef((props, r
|
|
|
1877
1878
|
} }));
|
|
1878
1879
|
});
|
|
1879
1880
|
|
|
1880
|
-
var css$
|
|
1881
|
+
var css$1c = {"root":"Lyhnkf"};
|
|
1881
1882
|
|
|
1882
|
-
const ControlGroup = /* @__PURE__ */uuiCore.withMods(uuiComponents.ControlGroup, () => [css$
|
|
1883
|
+
const ControlGroup = /* @__PURE__ */uuiCore.withMods(uuiComponents.ControlGroup, () => [css$1c.root, 'uui-control-group']);
|
|
1883
1884
|
|
|
1884
1885
|
function MultiSwitchComponent(props, ref) {
|
|
1885
1886
|
return (React__namespace.createElement(ControlGroup, { ref: ref, rawProps: {
|
|
@@ -1893,13 +1894,13 @@ function MultiSwitchComponent(props, ref) {
|
|
|
1893
1894
|
}
|
|
1894
1895
|
const MultiSwitch = /* @__PURE__ */React__namespace.forwardRef(MultiSwitchComponent);
|
|
1895
1896
|
|
|
1896
|
-
var css$
|
|
1897
|
+
var css$1b = {"root":"_4w8wYQ"};
|
|
1897
1898
|
|
|
1898
1899
|
const DEFAULT_MODE$2 = EditMode.FORM;
|
|
1899
1900
|
function applyNumericInputMods(mods) {
|
|
1900
1901
|
return [
|
|
1901
1902
|
textInputCss.root,
|
|
1902
|
-
css$
|
|
1903
|
+
css$1b.root,
|
|
1903
1904
|
`uui-size-${mods.size || settings.numericInput.sizes.default}`,
|
|
1904
1905
|
'uui-control-mode-' + (mods.mode || DEFAULT_MODE$2),
|
|
1905
1906
|
];
|
|
@@ -1913,12 +1914,12 @@ const NumericInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.NumericInput,
|
|
|
1913
1914
|
};
|
|
1914
1915
|
});
|
|
1915
1916
|
|
|
1916
|
-
var css$
|
|
1917
|
+
var css$1a = {"root":"U1rBRE"};
|
|
1917
1918
|
|
|
1918
1919
|
const DEFAULT_MODE$1 = EditMode.FORM;
|
|
1919
1920
|
function applyTextAreaMods(mods) {
|
|
1920
1921
|
return [
|
|
1921
|
-
css$
|
|
1922
|
+
css$1a.root,
|
|
1922
1923
|
'uui-textarea',
|
|
1923
1924
|
'uui-size-' + (mods.size || settings.textArea.sizes.default),
|
|
1924
1925
|
'uui-control-mode-' + (mods.mode || DEFAULT_MODE$1),
|
|
@@ -1954,18 +1955,18 @@ function TREE_SHAKEABLE_INIT$1() {
|
|
|
1954
1955
|
};
|
|
1955
1956
|
}
|
|
1956
1957
|
|
|
1957
|
-
var css$
|
|
1958
|
+
var css$19 = {"root":"b68Jga"};
|
|
1958
1959
|
|
|
1959
1960
|
function applyDropdownContainerMods(mods) {
|
|
1960
1961
|
return [
|
|
1961
|
-
css$
|
|
1962
|
+
css$19.root,
|
|
1962
1963
|
mods.vPadding && `vPadding-${mods.vPadding}`,
|
|
1963
1964
|
mods.padding && `padding-${mods.padding}`,
|
|
1964
1965
|
];
|
|
1965
1966
|
}
|
|
1966
1967
|
const DropdownContainer = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.DropdownContainer, applyDropdownContainerMods);
|
|
1967
1968
|
|
|
1968
|
-
var css$
|
|
1969
|
+
var css$18 = {"root":"Jejfar","timepicker-input":"J8-s1Q","timepickerInput":"J8-s1Q","ltr-always":"_0zW2aO","ltrAlways":"_0zW2aO"};
|
|
1969
1970
|
|
|
1970
1971
|
const uuiTimePicker = {
|
|
1971
1972
|
container: 'uui-timepicker-container',
|
|
@@ -2004,8 +2005,8 @@ function TimePickerBody(props) {
|
|
|
2004
2005
|
const minutesToSubtract = value.minute() % minutesStep === 0 ? minutesStep : value.minute() % minutesStep;
|
|
2005
2006
|
onMinutesChange(value.subtract(minutesToSubtract, 'm').minute());
|
|
2006
2007
|
};
|
|
2007
|
-
return (React__namespace.createElement("div", { className: uuiCore.cx(css$
|
|
2008
|
-
React__namespace.createElement("div", { className: css$
|
|
2008
|
+
return (React__namespace.createElement("div", { className: uuiCore.cx(css$18.root, uuiTimePicker.container, props.cx), ref: props.forwardedRef, ...props.rawProps },
|
|
2009
|
+
React__namespace.createElement("div", { className: css$18.ltrAlways },
|
|
2009
2010
|
React__namespace.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
2010
2011
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment hours' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$P, onClick: () => onHoursChange(uuiDayjs.dayjs().set(props.value).add(1, 'h').hour()) }),
|
|
2011
2012
|
React__namespace.createElement(uuiComponents.NumericInput, { cx: uuiTimePicker.input, onValueChange: onHoursChange, value: +(uuiDayjs.dayjs()
|
|
@@ -2165,7 +2166,7 @@ function TimePickerComponent(props, ref) {
|
|
|
2165
2166
|
}
|
|
2166
2167
|
};
|
|
2167
2168
|
const renderInput = (inputProps) => {
|
|
2168
|
-
return (React__namespace.default.createElement(TextInput, { ...inputProps, size: props.size, isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, cx: [css$
|
|
2169
|
+
return (React__namespace.default.createElement(TextInput, { ...inputProps, size: props.size, isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, cx: [css$18.root, css$18.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) => {
|
|
2169
2170
|
if (!node)
|
|
2170
2171
|
return;
|
|
2171
2172
|
targetRef.current = node;
|
|
@@ -2186,37 +2187,37 @@ function TimePickerComponent(props, ref) {
|
|
|
2186
2187
|
}
|
|
2187
2188
|
const TimePicker = /* @__PURE__ */React__namespace.default.forwardRef(TimePickerComponent);
|
|
2188
2189
|
|
|
2189
|
-
var css$
|
|
2190
|
+
var css$17 = {"root":"VTXQ9x"};
|
|
2190
2191
|
|
|
2191
2192
|
function applyInputAddonMods() {
|
|
2192
2193
|
return [
|
|
2193
|
-
css$
|
|
2194
|
+
css$17.root,
|
|
2194
2195
|
];
|
|
2195
2196
|
}
|
|
2196
2197
|
const InputAddon = /* @__PURE__ */uuiCore.withMods(uuiComponents.InputAddon, applyInputAddonMods);
|
|
2197
2198
|
|
|
2198
|
-
var css$
|
|
2199
|
+
var css$16 = {"root":"ab6Fwz"};
|
|
2199
2200
|
|
|
2200
2201
|
function applySliderMods() {
|
|
2201
|
-
return [css$
|
|
2202
|
+
return [css$16.root, 'uui-color-neutral'];
|
|
2202
2203
|
}
|
|
2203
2204
|
const Slider = /* @__PURE__ */uuiCore.withMods(uuiComponents.Slider, applySliderMods);
|
|
2204
2205
|
|
|
2205
|
-
var css$
|
|
2206
|
+
var css$15 = {"root":"X2C5-k"};
|
|
2206
2207
|
|
|
2207
2208
|
function applyTooltipMods(mods) {
|
|
2208
2209
|
return [
|
|
2209
|
-
css$
|
|
2210
|
+
css$15.root,
|
|
2210
2211
|
`uui-color-${mods.color || 'inverted'}`,
|
|
2211
2212
|
];
|
|
2212
2213
|
}
|
|
2213
2214
|
const Tooltip = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Tooltip, applyTooltipMods);
|
|
2214
2215
|
|
|
2215
|
-
var css$
|
|
2216
|
+
var css$14 = {"root":"LxrIV-","tooltip":"H-FvJp"};
|
|
2216
2217
|
|
|
2217
2218
|
function applyRatingMods(mods) {
|
|
2218
2219
|
return [
|
|
2219
|
-
css$
|
|
2220
|
+
css$14.root,
|
|
2220
2221
|
`uui-size-${mods.size || settings.rating.sizes.default}`,
|
|
2221
2222
|
];
|
|
2222
2223
|
}
|
|
@@ -2226,7 +2227,7 @@ const Rating = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Rating,
|
|
|
2226
2227
|
Tooltip,
|
|
2227
2228
|
}));
|
|
2228
2229
|
|
|
2229
|
-
var css$
|
|
2230
|
+
var css$13 = {"drag-handle-wrapper":"M3zKTO","dragHandleWrapper":"M3zKTO","with-indent":"kkaEYJ","withIndent":"kkaEYJ","drag-handle":"bytoUT","dragHandle":"bytoUT","icon-container":"c7g7SH","iconContainer":"c7g7SH"};
|
|
2230
2231
|
|
|
2231
2232
|
function DataRowAddons(props) {
|
|
2232
2233
|
const row = props.rowProps;
|
|
@@ -2243,8 +2244,8 @@ function DataRowAddons(props) {
|
|
|
2243
2244
|
if (props.renderDragHandle) {
|
|
2244
2245
|
return props.renderDragHandle({ rowProps: props.rowProps, eventHandlers: props.eventHandlers });
|
|
2245
2246
|
}
|
|
2246
|
-
return (React__namespace.default.createElement("div", { key: "dh", className: cx__default.default(css$
|
|
2247
|
-
React__namespace.default.createElement(uuiComponents.DragHandle, { cx: css$
|
|
2247
|
+
return (React__namespace.default.createElement("div", { key: "dh", className: cx__default.default(css$13.dragHandleWrapper, row.indent > 0 && css$13.withIndent), style: { width: row.indent > 0 ? (getIndent() + getWidth()) : 0 }, ...props.eventHandlers },
|
|
2248
|
+
React__namespace.default.createElement(uuiComponents.DragHandle, { cx: css$13.dragHandle })));
|
|
2248
2249
|
};
|
|
2249
2250
|
const handleFold = (e) => {
|
|
2250
2251
|
if (e.key === 'Enter') {
|
|
@@ -2259,7 +2260,7 @@ function DataRowAddons(props) {
|
|
|
2259
2260
|
'aria-label': row.isFolded ? 'Unfold' : 'Fold',
|
|
2260
2261
|
role: 'button',
|
|
2261
2262
|
}, key: "icon", icon: settings.dataTable.icons.body.foldingIcon, cx: [
|
|
2262
|
-
uuiCore.uuiElement.foldingArrow, uuiCore.uuiMarkers.clickable, css$
|
|
2263
|
+
uuiCore.uuiElement.foldingArrow, uuiCore.uuiMarkers.clickable, css$13.iconContainer,
|
|
2263
2264
|
], 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 }))))));
|
|
2264
2265
|
}
|
|
2265
2266
|
|
|
@@ -2270,12 +2271,12 @@ function VerticalTabButtonComponent(props, ref) {
|
|
|
2270
2271
|
isActive: props.isActive,
|
|
2271
2272
|
});
|
|
2272
2273
|
const styles = [
|
|
2273
|
-
css$
|
|
2274
|
+
css$1o.root,
|
|
2274
2275
|
'uui-vertical-tab-button',
|
|
2275
2276
|
`uui-size-${props.size || settings.verticalTabButton.sizes.default}`,
|
|
2276
2277
|
isActive && uuiCore.uuiMod.active,
|
|
2277
|
-
props.indent > 0 && css$
|
|
2278
|
-
!props.onClick && props.onFold && css$
|
|
2278
|
+
props.indent > 0 && css$1o.noLeftPadding,
|
|
2279
|
+
!props.onClick && props.onFold && css$1o.onlyFoldable,
|
|
2279
2280
|
...getIconClass(props),
|
|
2280
2281
|
props.cx,
|
|
2281
2282
|
];
|
|
@@ -2295,16 +2296,16 @@ function VerticalTabButtonComponent(props, ref) {
|
|
|
2295
2296
|
'aria-selected': isActive,
|
|
2296
2297
|
...props.rawProps,
|
|
2297
2298
|
}, cx: styles, ref: ref },
|
|
2298
|
-
props.indent > 0 && (React__namespace.default.createElement("div", { key: "fold", className: uuiCore.cx(css$
|
|
2299
|
+
props.indent > 0 && (React__namespace.default.createElement("div", { key: "fold", className: uuiCore.cx(css$1o.foldingArea, props.onFold && uuiCore.uuiMarkers.clickable), style: { '--uui-folding-indent': `${props.indent - 1}` }, onClick: props.onFold }, props.isFoldable && (React__namespace.default.createElement(uuiComponents.IconContainer, { rawProps: {
|
|
2299
2300
|
'aria-label': props.isFolded ? 'Unfold' : 'Fold',
|
|
2300
2301
|
role: 'button',
|
|
2301
2302
|
}, key: "icon", icon: settings.verticalTabButton.icons.foldingIcon, cx: [
|
|
2302
|
-
uuiCore.uuiElement.foldingArrow, css$
|
|
2303
|
+
uuiCore.uuiElement.foldingArrow, css$1o.iconContainer,
|
|
2303
2304
|
], rotate: props.isFolded ? '90ccw' : '0', size: settings.dataTable.sizes.body.iconMap[props.size || settings.dataTable.sizes.body.row] })))),
|
|
2304
2305
|
props.icon && props.iconPosition !== 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
2305
|
-
(props.caption || props.withNotify) && (React__namespace.default.createElement("div", { className: css$
|
|
2306
|
+
(props.caption || props.withNotify) && (React__namespace.default.createElement("div", { className: css$1o.captionWrapper },
|
|
2306
2307
|
props.caption && React__namespace.default.createElement("div", { className: uuiCore.cx(uuiCore.uuiElement.caption, `uui-vertical-tab-button-weight-${props.weight || settings.verticalTabButton.weight}`) }, props.caption),
|
|
2307
|
-
props.withNotify && React__namespace.default.createElement("div", { className: css$
|
|
2308
|
+
props.withNotify && React__namespace.default.createElement("div", { className: css$1o.withNotify }))),
|
|
2308
2309
|
props.icon && props.iconPosition === 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
2309
2310
|
props.count !== undefined && props.count !== null && (React__namespace.default.createElement(CountIndicator, { color: "neutral", size: settings.verticalTabButton.sizes.countIndicatorMap[props.size || settings.verticalTabButton.sizes.default], caption: props.count })),
|
|
2310
2311
|
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
@@ -2313,17 +2314,17 @@ function VerticalTabButtonComponent(props, ref) {
|
|
|
2313
2314
|
}
|
|
2314
2315
|
const VerticalTabButton = /* @__PURE__ */React__namespace.default.forwardRef(VerticalTabButtonComponent);
|
|
2315
2316
|
|
|
2316
|
-
var css$
|
|
2317
|
+
var css$12 = {"root":"F3KZ66","main-path":"_5DmYws","mainPath":"_5DmYws","content-wrapper":"UrVcu8","contentWrapper":"UrVcu8","content":"_1ba8Yl","action-wrapper":"x5kZPO","actionWrapper":"x5kZPO","icon-wrapper":"E3DzHV","iconWrapper":"E3DzHV","icon":"WOWfpk","close-icon":"_8PRNic","closeIcon":"_8PRNic"};
|
|
2317
2318
|
|
|
2318
|
-
const Alert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("div", { role: "alert", ref: ref, className: cx__default.default('uui-alert', css$
|
|
2319
|
-
React__namespace.createElement("div", { className: css$
|
|
2320
|
-
React__namespace.createElement("div", { className: css$
|
|
2321
|
-
props.icon && (React__namespace.createElement("div", { className: css$
|
|
2322
|
-
React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$
|
|
2323
|
-
React__namespace.createElement("div", { className: css$
|
|
2319
|
+
const Alert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("div", { role: "alert", ref: ref, className: cx__default.default('uui-alert', css$12.root, props.color && `uui-color-${props.color}`, props.cx, `uui-size-${props.size || settings.alert.sizes.default}`), ...props.rawProps },
|
|
2320
|
+
React__namespace.createElement("div", { className: css$12.mainPath },
|
|
2321
|
+
React__namespace.createElement("div", { className: css$12.contentWrapper },
|
|
2322
|
+
props.icon && (React__namespace.createElement("div", { className: css$12.iconWrapper },
|
|
2323
|
+
React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$12.icon }))),
|
|
2324
|
+
React__namespace.createElement("div", { className: css$12.content },
|
|
2324
2325
|
props.children,
|
|
2325
|
-
props.actions && (React__namespace.createElement("div", { className: css$
|
|
2326
|
-
props.onClose && React__namespace.createElement(IconButton, { icon: settings.alert.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$
|
|
2326
|
+
props.actions && (React__namespace.createElement("div", { className: css$12.actionWrapper }, props.actions.map((action) => (React__namespace.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$12.actionLink, size: settings.alert.sizes.actionMap[props.size || settings.alert.sizes.default] }))))))),
|
|
2327
|
+
props.onClose && React__namespace.createElement(IconButton, { icon: settings.alert.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$12.closeIcon })))));
|
|
2327
2328
|
const WarningAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, { icon: settings.alert.icons.warningIcon, color: "warning", ref: ref, ...props }));
|
|
2328
2329
|
const SuccessAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, { icon: settings.alert.icons.successIcon, color: "success", ref: ref, ...props }));
|
|
2329
2330
|
const HintAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, { icon: settings.alert.icons.infoIcon, color: "info", ref: ref, ...props }));
|
|
@@ -2331,7 +2332,7 @@ const ErrorAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => Re
|
|
|
2331
2332
|
|
|
2332
2333
|
const Dropdown = /* @__PURE__ */uuiCore.withMods(uuiComponents.Dropdown);
|
|
2333
2334
|
|
|
2334
|
-
var css$
|
|
2335
|
+
var css$11 = {"submenu-root-item-rtl":"lCNKGP","submenuRootItemRtl":"lCNKGP","icon-after":"DbHR8Y","iconAfter":"DbHR8Y","submenu-root-item":"_4yTZIg","submenuRootItem":"_4yTZIg","icon-check":"-aLGB3","iconCheck":"-aLGB3","splitter-root":"JgOJy4","splitterRoot":"JgOJy4","splitter":"Z8SvLU","header-root":"_1IYVxv","headerRoot":"_1IYVxv","item-root":"_8VTbBO","itemRoot":"_8VTbBO","icon":"SSf8Ma","link":"O3IGlh","indent":"gXk8hW","selected-mark":"-BscHg","selectedMark":"-BscHg"};
|
|
2335
2336
|
|
|
2336
2337
|
exports.IDropdownControlKeys = void 0;
|
|
2337
2338
|
(function (IDropdownControlKeys) {
|
|
@@ -2405,29 +2406,29 @@ const DropdownMenuButton = /* @__PURE__ */React__namespace.default.forwardRef((p
|
|
|
2405
2406
|
const getMenuButtonContent = () => {
|
|
2406
2407
|
const isIconBefore = Boolean(icon && iconPosition !== 'right');
|
|
2407
2408
|
const isIconAfter = Boolean(icon && iconPosition === 'right');
|
|
2408
|
-
const iconElement = (React__namespace.default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: uuiCore.cx(css$
|
|
2409
|
+
const iconElement = (React__namespace.default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: uuiCore.cx(css$11.icon, iconPosition === 'right' ? css$11.iconAfter : css$11.iconBefore) }));
|
|
2409
2410
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
2410
2411
|
isIconBefore && iconElement,
|
|
2411
|
-
React__namespace.default.createElement(uuiComponents.Text, { cx: props.indent && css$
|
|
2412
|
+
React__namespace.default.createElement(uuiComponents.Text, { cx: props.indent && css$11.indent }, caption),
|
|
2412
2413
|
isIconAfter && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
2413
2414
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
2414
2415
|
iconElement))));
|
|
2415
2416
|
};
|
|
2416
2417
|
const isAnchor = Boolean(link || href);
|
|
2417
|
-
const itemClassNames = uuiCore.cx(props.cx, css$
|
|
2418
|
-
return isAnchor ? (React__namespace.default.createElement(uuiComponents.Anchor, { cx: uuiCore.cx(css$
|
|
2418
|
+
const itemClassNames = uuiCore.cx(props.cx, css$11.itemRoot, isDisabled && uuiCore.uuiMod.disabled, isActive && uuiCore.uuiMod.active, isOpen && uuiCore.uuiMod.opened, (!isDisabled && onClick) && uuiCore.uuiMarkers.clickable);
|
|
2419
|
+
return isAnchor ? (React__namespace.default.createElement(uuiComponents.Anchor, { cx: uuiCore.cx(css$11.link, itemClassNames), link: link, href: href, rawProps: { role: 'menuitem', tabIndex: isDisabled ? -1 : 0, ...props.rawProps }, onClick: handleClick, isDisabled: isDisabled, target: target }, getMenuButtonContent())) : (React__namespace.default.createElement("div", { tabIndex: isDisabled ? -1 : 0, role: "menuitem", onKeyDown: isDisabled ? null : handleOpenDropdown, className: itemClassNames, onClick: handleClick, ref: ref, ...props.rawProps },
|
|
2419
2420
|
getMenuButtonContent(),
|
|
2420
2421
|
isSelected && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
2421
2422
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
2422
|
-
React__namespace.default.createElement(uuiComponents.IconContainer, { icon: settings.dropdownMenu.icons.acceptIcon, cx: css$
|
|
2423
|
+
React__namespace.default.createElement(uuiComponents.IconContainer, { icon: settings.dropdownMenu.icons.acceptIcon, cx: css$11.selectedMark })))));
|
|
2423
2424
|
});
|
|
2424
2425
|
function DropdownMenuSplitter(props) {
|
|
2425
|
-
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$
|
|
2426
|
-
React__namespace.default.createElement("hr", { className: css$
|
|
2426
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$11.splitterRoot) },
|
|
2427
|
+
React__namespace.default.createElement("hr", { className: css$11.splitter })));
|
|
2427
2428
|
}
|
|
2428
2429
|
function DropdownMenuHeader(props) {
|
|
2429
|
-
return (React__namespace.default.createElement("div", { className: uuiCore.cx('uui-dropdown-menu-header', props.cx, css$
|
|
2430
|
-
React__namespace.default.createElement("span", { className: css$
|
|
2430
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx('uui-dropdown-menu-header', props.cx, css$11.headerRoot) },
|
|
2431
|
+
React__namespace.default.createElement("span", { className: css$11.header }, props.caption)));
|
|
2431
2432
|
}
|
|
2432
2433
|
function DropdownSubMenu(props) {
|
|
2433
2434
|
const subMenuMiddleware = [
|
|
@@ -2442,7 +2443,7 @@ function DropdownSubMenu(props) {
|
|
|
2442
2443
|
}),
|
|
2443
2444
|
];
|
|
2444
2445
|
const isRtl = uuiCore.getDir() === 'rtl';
|
|
2445
|
-
return (React__namespace.default.createElement(uuiComponents.Dropdown, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", openDelay: 400, closeDelay: 400, placement: isRtl ? 'left-start' : 'right-start', middleware: subMenuMiddleware, renderBody: (dropdownProps) => !props.isDisabled && (React__namespace.default.createElement(DropdownMenuBody, { closeOnKey: exports.IDropdownControlKeys.LEFT_ARROW, ...props, ...dropdownProps })), renderTarget: ({ toggleDropdownOpening, ...targetProps }) => (React__namespace.default.createElement(DropdownMenuButton, { cx: uuiCore.cx(isRtl ? css$
|
|
2446
|
+
return (React__namespace.default.createElement(uuiComponents.Dropdown, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", openDelay: 400, closeDelay: 400, placement: isRtl ? 'left-start' : 'right-start', middleware: subMenuMiddleware, renderBody: (dropdownProps) => !props.isDisabled && (React__namespace.default.createElement(DropdownMenuBody, { closeOnKey: exports.IDropdownControlKeys.LEFT_ARROW, ...props, ...dropdownProps })), renderTarget: ({ toggleDropdownOpening, ...targetProps }) => (React__namespace.default.createElement(DropdownMenuButton, { cx: uuiCore.cx(isRtl ? css$11.submenuRootItemRtl : css$11.submenuRootItem), icon: settings.dropdownMenu.icons.dropdownIcon, iconPosition: "right", isDropdown: true, toggleDropdownOpening: toggleDropdownOpening, ...props, ...targetProps })) }));
|
|
2446
2447
|
}
|
|
2447
2448
|
function DropdownMenuSwitchButton(props) {
|
|
2448
2449
|
const context = React.useContext(uuiCore.UuiContext);
|
|
@@ -2465,29 +2466,29 @@ function DropdownMenuSwitchButton(props) {
|
|
|
2465
2466
|
return;
|
|
2466
2467
|
onHandleValueChange(!isSelected);
|
|
2467
2468
|
};
|
|
2468
|
-
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$
|
|
2469
|
-
icon && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icon, cx: css$
|
|
2469
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$11.itemRoot, isDisabled && uuiCore.uuiMod.disabled, (!isDisabled || onValueChange) && uuiCore.uuiMarkers.clickable), onClick: handleClick, role: "menuitem", onKeyDown: handleKeySelect, tabIndex: isDisabled ? -1 : 0 },
|
|
2470
|
+
icon && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icon, cx: css$11.iconBefore }),
|
|
2470
2471
|
React__namespace.default.createElement(uuiComponents.Text, null, caption),
|
|
2471
2472
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
2472
2473
|
React__namespace.default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange, ref: switchRef })));
|
|
2473
2474
|
}
|
|
2474
2475
|
|
|
2475
|
-
var css
|
|
2476
|
+
var css$10 = {"root":"_3BWR8V","mode-block":"VgRY6H","modeBlock":"VgRY6H","mode-inline":"_2In9-o","modeInline":"_2In9-o","padding-0":"wN1NJL","padding0":"wN1NJL","padding-6":"OnX-co","padding6":"OnX-co","padding-12":"_462b3T","padding12":"_462b3T","padding-18":"TjVSp8","padding18":"TjVSp8"};
|
|
2476
2477
|
|
|
2477
2478
|
function applyAccordionMods(mods) {
|
|
2478
2479
|
return [
|
|
2479
|
-
css
|
|
2480
|
-
css
|
|
2481
|
-
mods.padding && css
|
|
2480
|
+
css$10.root,
|
|
2481
|
+
css$10[`mode-${mods.mode || 'block'}`],
|
|
2482
|
+
mods.padding && css$10['padding-' + mods.padding],
|
|
2482
2483
|
];
|
|
2483
2484
|
}
|
|
2484
2485
|
const Accordion = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Accordion, applyAccordionMods, (mods) => ({
|
|
2485
2486
|
dropdownIcon: mods.dropdownIcon !== null && settings.accordion.icons.dropdownIcon,
|
|
2486
2487
|
}));
|
|
2487
2488
|
|
|
2488
|
-
var css
|
|
2489
|
+
var css$$ = {"root":"ZzFYHw","align-items":"e5oM79","alignItems":"e5oM79","justify-content":"TKkzHN","justifyContent":"TKkzHN","border-top":"QWm9IM","borderTop":"QWm9IM","border-bottom":"nQmU5w","borderBottom":"nQmU5w","top-shadow":"_6SB3Tq","topShadow":"_6SB3Tq","padding":"_9GyrzV","margin":"A8kAdL","vPadding":"FZXh4C","column-gap":"Ydt30Q","columnGap":"Ydt30Q","row-gap":"nPmDdl","rowGap":"nPmDdl","spacing":"YhHdZh"};
|
|
2489
2490
|
|
|
2490
|
-
const FlexCell = /* @__PURE__ */uuiCore.withMods(uuiComponents.FlexCell, () => [css
|
|
2491
|
+
const FlexCell = /* @__PURE__ */uuiCore.withMods(uuiComponents.FlexCell, () => [css$$.flexCell]);
|
|
2491
2492
|
|
|
2492
2493
|
const FlexRow = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
2493
2494
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -2496,22 +2497,22 @@ const FlexRow = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
2496
2497
|
}
|
|
2497
2498
|
}
|
|
2498
2499
|
const classNames = uuiCore.cx([
|
|
2499
|
-
css
|
|
2500
|
+
css$$.root,
|
|
2500
2501
|
'uui-flex-row',
|
|
2501
2502
|
props.onClick && uuiCore.uuiMarkers.clickable,
|
|
2502
2503
|
props.cx,
|
|
2503
2504
|
props.size !== null && 'uui-size-' + (props.size || settings.flexRow.sizes.default),
|
|
2504
|
-
props.alignItems && css
|
|
2505
|
-
props.justifyContent && css
|
|
2506
|
-
props.padding && css
|
|
2507
|
-
props.vPadding && css
|
|
2508
|
-
props.margin && css
|
|
2509
|
-
props.topShadow && css
|
|
2510
|
-
props.borderBottom && css
|
|
2511
|
-
props.borderTop && css
|
|
2512
|
-
props.columnGap && css
|
|
2513
|
-
props.rowGap && css
|
|
2514
|
-
props.spacing && css
|
|
2505
|
+
props.alignItems && css$$.alignItems,
|
|
2506
|
+
props.justifyContent && css$$.justifyContent,
|
|
2507
|
+
props.padding && css$$.padding,
|
|
2508
|
+
props.vPadding && css$$.vPadding,
|
|
2509
|
+
props.margin && css$$.margin,
|
|
2510
|
+
props.topShadow && css$$.topShadow,
|
|
2511
|
+
props.borderBottom && css$$.borderBottom,
|
|
2512
|
+
props.borderTop && css$$.borderTop,
|
|
2513
|
+
props.columnGap && css$$.columnGap,
|
|
2514
|
+
props.rowGap && css$$.rowGap,
|
|
2515
|
+
props.spacing && css$$.spacing,
|
|
2515
2516
|
props.background && `uui-flex-row-bg-${props.background}`,
|
|
2516
2517
|
]);
|
|
2517
2518
|
let alignItemsValue = props.alignItems;
|
|
@@ -2537,22 +2538,22 @@ const FlexRow = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
2537
2538
|
} }, props.children));
|
|
2538
2539
|
});
|
|
2539
2540
|
|
|
2540
|
-
var css$
|
|
2541
|
+
var css$_ = {"root":"-UoW3k","margin-24":"OHIitG","margin24":"OHIitG","padding-12":"_61-s5c","padding12":"_61-s5c","padding-24":"xDPpyd","padding24":"xDPpyd","shadow":"gPLiRY","uui-surface-main":"x7okAA","uuiSurfaceMain":"x7okAA"};
|
|
2541
2542
|
|
|
2542
2543
|
const Panel = /* @__PURE__ */uuiCore.withMods(uuiComponents.VPanel, (props) => [
|
|
2543
2544
|
'uui-panel',
|
|
2544
|
-
css$
|
|
2545
|
-
props.shadow && css$
|
|
2546
|
-
props.margin && css$
|
|
2547
|
-
props.background && css$
|
|
2545
|
+
css$_.root,
|
|
2546
|
+
props.shadow && css$_.shadow,
|
|
2547
|
+
props.margin && css$_['margin-' + props.margin],
|
|
2548
|
+
props.background && css$_[`uui-${props.background}`],
|
|
2548
2549
|
]);
|
|
2549
2550
|
|
|
2550
|
-
var css$
|
|
2551
|
+
var css$Z = {"root":"ZtCRdf"};
|
|
2551
2552
|
|
|
2552
2553
|
function applyLabeledInputMods(mods) {
|
|
2553
2554
|
return [
|
|
2554
2555
|
'uui-labeled-input',
|
|
2555
|
-
css$
|
|
2556
|
+
css$Z.root,
|
|
2556
2557
|
'uui-size-' + (mods.size || settings.labeledInput.sizes.default),
|
|
2557
2558
|
];
|
|
2558
2559
|
}
|
|
@@ -2569,7 +2570,7 @@ function applyLabeledInputProps(props) {
|
|
|
2569
2570
|
}
|
|
2570
2571
|
const LabeledInput = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.LabeledInput, applyLabeledInputMods, applyLabeledInputProps);
|
|
2571
2572
|
|
|
2572
|
-
var css$
|
|
2573
|
+
var css$Y = {"root":"_3-ydMY"};
|
|
2573
2574
|
|
|
2574
2575
|
function RadioGroup(props) {
|
|
2575
2576
|
const direction = props.direction || 'vertical';
|
|
@@ -2578,13 +2579,13 @@ function RadioGroup(props) {
|
|
|
2578
2579
|
props.onValueChange(newVal);
|
|
2579
2580
|
}
|
|
2580
2581
|
};
|
|
2581
|
-
return (React__namespace.createElement("fieldset", { ref: props.forwardedRef, className: uuiCore.cx(css$
|
|
2582
|
+
return (React__namespace.createElement("fieldset", { ref: props.forwardedRef, className: uuiCore.cx(css$Y.root, uuiCore.directionMode[direction], props.cx), onFocus: props.onFocus, onBlur: props.onBlur, ...props.rawProps }, props.items.map((i) => {
|
|
2582
2583
|
const { id, name, renderName, ...restItemProps } = i;
|
|
2583
2584
|
return (React__namespace.createElement(RadioInput, { name: props.name, renderLabel: i.renderName ? i.renderName : () => i.name, value: props.value === i.id, onValueChange: () => handleChange(i.id), isDisabled: props.isDisabled || i.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, isRequired: props.isRequired, key: i.id.toString(), size: props.size || i.size, ...restItemProps }));
|
|
2584
2585
|
})));
|
|
2585
2586
|
}
|
|
2586
2587
|
|
|
2587
|
-
var css$
|
|
2588
|
+
var css$X = {"root":"Xwxh0g","viewport":"rTDwU9"};
|
|
2588
2589
|
|
|
2589
2590
|
var uuiScrollbars;
|
|
2590
2591
|
(function (uuiScrollbars) {
|
|
@@ -2658,12 +2659,12 @@ const ScrollBars = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
2658
2659
|
view: viewportRef.current,
|
|
2659
2660
|
};
|
|
2660
2661
|
}, []);
|
|
2661
|
-
return (React__namespace.default.createElement("div", { ref: hostRef, className: cx__default.default(css$
|
|
2662
|
-
React__namespace.default.createElement("div", { className: css$
|
|
2662
|
+
return (React__namespace.default.createElement("div", { ref: hostRef, className: cx__default.default(css$X.root, outerCx, 'uui-scroll-bars', overflowTopEffect === 'shadow' && uuiScrollbars.uuiShadowTop, overflowBottomEffect === 'shadow' && uuiScrollbars.uuiShadowBottom, overflowTopEffect === 'line' && uuiScrollbars.uuiLineTop, overflowBottomEffect === 'line' && uuiScrollbars.uuiLineBottom), ...rest, "data-overlayscrollbars-initialize": "" },
|
|
2663
|
+
React__namespace.default.createElement("div", { className: css$X.viewport, "data-overlayscrollbars-contents": "", ref: (node) => { viewportRef.current = node; }, ...rawProps }, children)));
|
|
2663
2664
|
});
|
|
2664
2665
|
ScrollBars.displayName = 'ScrollBars';
|
|
2665
2666
|
|
|
2666
|
-
var css$
|
|
2667
|
+
var css$W = {"scroll-container":"SdfZly","scrollContainer":"SdfZly","list-container":"te7TvO","listContainer":"te7TvO"};
|
|
2667
2668
|
|
|
2668
2669
|
const VirtualList = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
2669
2670
|
const { listContainerRef, offsetY, handleScroll, estimatedHeight, scrollContainerRef, } = uuiCore.useVirtualList({
|
|
@@ -2679,7 +2680,7 @@ const VirtualList = /* @__PURE__ */React__namespace.default.forwardRef((props, r
|
|
|
2679
2680
|
const [blockerInset, setBlockerInset] = React__namespace.default.useState(null);
|
|
2680
2681
|
const renderRows = () => props.renderRows?.({
|
|
2681
2682
|
listContainerRef, estimatedHeight, offsetY,
|
|
2682
|
-
}) || (React__namespace.default.createElement("div", { className: css$
|
|
2683
|
+
}) || (React__namespace.default.createElement("div", { className: css$W.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
2683
2684
|
React__namespace.default.createElement("div", { ref: listContainerRef, role: props.role, style: { marginTop: offsetY } }, props.rows)));
|
|
2684
2685
|
const scrollBarsRef = React__namespace.default.useCallback((scrollbars) => {
|
|
2685
2686
|
if (!scrollbars?.view)
|
|
@@ -2705,7 +2706,7 @@ const VirtualList = /* @__PURE__ */React__namespace.default.forwardRef((props, r
|
|
|
2705
2706
|
updateBlockerInset();
|
|
2706
2707
|
}
|
|
2707
2708
|
}, [props.isLoading, updateBlockerInset]);
|
|
2708
|
-
return (React__namespace.default.createElement(ScrollBars, { cx: uuiCore.cx(css$
|
|
2709
|
+
return (React__namespace.default.createElement(ScrollBars, { cx: uuiCore.cx(css$W.scrollContainer, props.cx), onScroll: handleScroll, ref: scrollBarsRef, rawProps: rawProps, overflowTopEffect: props.overflowTopEffect, overflowBottomEffect: props.overflowBottomEffect, autoHide: props.isLoading ? 'scroll' : undefined },
|
|
2709
2710
|
renderRows(),
|
|
2710
2711
|
React__namespace.default.createElement(Blocker, { isEnabled: props.isLoading, inset: blockerInset })));
|
|
2711
2712
|
});
|
|
@@ -2738,7 +2739,7 @@ function Tree(props) {
|
|
|
2738
2739
|
return (React__namespace.createElement(VirtualList, { value: value, onValueChange: onValueChange, rowsCount: rowsCount, rows: renderedRows, cx: uuiCore.cx(propsCx), role: "tree" }));
|
|
2739
2740
|
}
|
|
2740
2741
|
|
|
2741
|
-
var css$
|
|
2742
|
+
var css$V = {"root":"RzJpW2"};
|
|
2742
2743
|
|
|
2743
2744
|
function CheckboxGroup(props) {
|
|
2744
2745
|
const currentValue = props.value || [];
|
|
@@ -2754,7 +2755,7 @@ function CheckboxGroup(props) {
|
|
|
2754
2755
|
}
|
|
2755
2756
|
props.onValueChange(newSelection);
|
|
2756
2757
|
};
|
|
2757
|
-
return (React__namespace.createElement("fieldset", { ref: props.forwardedRef, className: uuiCore.cx(css$
|
|
2758
|
+
return (React__namespace.createElement("fieldset", { ref: props.forwardedRef, className: uuiCore.cx(css$V.root, uuiCore.directionMode[direction], props.cx), ...props.rawProps }, props.items.map((i) => {
|
|
2758
2759
|
const { id, name, renderName, ...restItemProps } = i;
|
|
2759
2760
|
return (React__namespace.createElement(Checkbox, { renderLabel: i.renderName ? i.renderName : () => i.name, value: currentValue.indexOf(i.id) !== -1, onValueChange: (selected) => handleChange(selected, i.id), isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, isRequired: props.isRequired, key: i.id.toString(), size: props.size || i.size, ...restItemProps }));
|
|
2760
2761
|
})));
|
|
@@ -2840,10 +2841,10 @@ const Tabs = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
2840
2841
|
});
|
|
2841
2842
|
Tabs.displayName = 'Tabs';
|
|
2842
2843
|
|
|
2843
|
-
var css$
|
|
2844
|
+
var css$U = {"root":"JSAD9B","modal-blocker":"JJackx","modalBlocker":"JJackx","animateModalBlocker":"_9vVPON","modal":"Mk87hz","modal-footer":"R-dJ8k","modalFooter":"R-dJ8k","border-top":"TKGWqz","borderTop":"TKGWqz","modal-header":"mIph6H","modalHeader":"mIph6H","border-bottom":"kMw-NH","borderBottom":"kMw-NH"};
|
|
2844
2845
|
|
|
2845
|
-
const ModalBlocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalBlocker, () => [css$
|
|
2846
|
-
const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, () => [css$
|
|
2846
|
+
const ModalBlocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalBlocker, () => [css$U.modalBlocker]);
|
|
2847
|
+
const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, () => [css$U.root, css$U.modal], (props) => {
|
|
2847
2848
|
const width = props.width;
|
|
2848
2849
|
const height = props.height || 'auto';
|
|
2849
2850
|
const maxHeight = uuiCore.isMobile() ? 'var(--uui-modals-mobile-max-height)' : (props.maxHeight || 'var(--uui-modals-max-height)');
|
|
@@ -2857,7 +2858,7 @@ const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, (
|
|
|
2857
2858
|
};
|
|
2858
2859
|
});
|
|
2859
2860
|
function ModalHeader(props) {
|
|
2860
|
-
return (React__namespace.default.createElement("div", { className: cx__default.default(css$
|
|
2861
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default(css$U.root, css$U.modalHeader, 'uui-modal-header', props.borderBottom && css$U.borderBottom, props.cx), ...props.rawProps, style: {
|
|
2861
2862
|
...props.rawProps?.style,
|
|
2862
2863
|
} },
|
|
2863
2864
|
props.title && (React__namespace.default.createElement("div", { className: cx__default.default('uui-modal-title', 'uui-typography') }, props.title)),
|
|
@@ -2867,7 +2868,7 @@ function ModalHeader(props) {
|
|
|
2867
2868
|
React__namespace.default.createElement(IconButton, { rawProps: { 'aria-label': 'Close modal' }, icon: settings.modal.icons.closeIcon, onClick: props.onClose })))));
|
|
2868
2869
|
}
|
|
2869
2870
|
function ModalFooter(props) {
|
|
2870
|
-
return (React__namespace.default.createElement("div", { className: cx__default.default(css$
|
|
2871
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default(css$U.root, css$U.modalFooter, 'uui-modal-footer', props.borderTop && css$U.borderTop, props.cx), ...props.rawProps, style: {
|
|
2871
2872
|
...props.rawProps?.style,
|
|
2872
2873
|
} }, props.children));
|
|
2873
2874
|
}
|
|
@@ -2913,6 +2914,12 @@ const TREE_SHAKEABLE_INIT = () => ({
|
|
|
2913
2914
|
rangeDatePicker: {
|
|
2914
2915
|
pickerPlaceholderFrom: 'From',
|
|
2915
2916
|
pickerPlaceholderTo: 'To',
|
|
2917
|
+
mobileModalTitle: 'Select date range',
|
|
2918
|
+
mobileModalStartPlaceholder: 'Start',
|
|
2919
|
+
mobileModalEndPlaceholder: 'End',
|
|
2920
|
+
mobileModalCancel: 'Cancel',
|
|
2921
|
+
mobileModalApply: 'Apply',
|
|
2922
|
+
mobileModalClearAll: 'Clear all',
|
|
2916
2923
|
},
|
|
2917
2924
|
tables: {
|
|
2918
2925
|
noResultsBlock: {
|
|
@@ -3033,7 +3040,7 @@ const TREE_SHAKEABLE_INIT = () => ({
|
|
|
3033
3040
|
});
|
|
3034
3041
|
const i18n = /* @__PURE__ */TREE_SHAKEABLE_INIT();
|
|
3035
3042
|
|
|
3036
|
-
var css$
|
|
3043
|
+
var css$T = {"root":"uAyETU","icon-wrapper":"CDXUHl","iconWrapper":"CDXUHl","action-wrapper":"TQXOiE","actionWrapper":"TQXOiE","close-icon":"Dq-1P7","closeIcon":"Dq-1P7","main-path":"LCwpd5","mainPath":"LCwpd5","content":"D-G4DM","close-wrapper":"rAH0in","closeWrapper":"rAH0in","clear-notifications":"RTUbX9","clearNotifications":"RTUbX9"};
|
|
3037
3044
|
|
|
3038
3045
|
const NotificationCard = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
3039
3046
|
const notificationCardNode = React__namespace.default.useRef(null);
|
|
@@ -3046,15 +3053,15 @@ const NotificationCard = /* @__PURE__ */React__namespace.default.forwardRef((pro
|
|
|
3046
3053
|
notificationCardNode.current?.removeEventListener('mouseleave', props.refreshTimer);
|
|
3047
3054
|
};
|
|
3048
3055
|
}, []);
|
|
3049
|
-
return (React__namespace.default.createElement("div", { role: "alert", className: cx__default.default('uui-notification_card', props.color && `uui-color-${props.color}`, css$
|
|
3050
|
-
React__namespace.default.createElement("div", { className: css$
|
|
3051
|
-
props.icon && (React__namespace.default.createElement("div", { className: css$
|
|
3056
|
+
return (React__namespace.default.createElement("div", { role: "alert", className: cx__default.default('uui-notification_card', props.color && `uui-color-${props.color}`, css$T.root, props.cx), ref: notificationCardNode, ...props.rawProps },
|
|
3057
|
+
React__namespace.default.createElement("div", { className: css$T.mainPath },
|
|
3058
|
+
props.icon && (React__namespace.default.createElement("div", { className: css$T.iconWrapper },
|
|
3052
3059
|
React__namespace.default.createElement(uuiComponents.IconContainer, { size: settings.notificationCard.sizes.icon, icon: props.icon }))),
|
|
3053
|
-
React__namespace.default.createElement("div", { className: css$
|
|
3060
|
+
React__namespace.default.createElement("div", { className: css$T.content },
|
|
3054
3061
|
props.children,
|
|
3055
|
-
props.actions && (React__namespace.default.createElement("div", { className: css$
|
|
3056
|
-
props.onClose && (React__namespace.default.createElement("div", { className: cx__default.default(css$
|
|
3057
|
-
React__namespace.default.createElement(IconButton, { icon: settings.notificationCard.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$
|
|
3062
|
+
props.actions && (React__namespace.default.createElement("div", { className: css$T.actionWrapper }, props.actions.map((action) => (React__namespace.default.createElement(LinkButton, { key: action.name, caption: action.name, onClick: action.action, cx: css$T.actionLink, size: settings.notificationCard.sizes.action, rawProps: action.rawProps })))))),
|
|
3063
|
+
props.onClose && (React__namespace.default.createElement("div", { className: cx__default.default(css$T.closeWrapper, 'uui-notification_card-close_icon') },
|
|
3064
|
+
React__namespace.default.createElement(IconButton, { icon: settings.notificationCard.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$T.closeIcon }))))));
|
|
3058
3065
|
});
|
|
3059
3066
|
const WarningNotification = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, { icon: settings.notificationCard.icons.warningIcon, color: "warning", ...props, ref: ref, cx: props.cx })));
|
|
3060
3067
|
const SuccessNotification = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, { icon: settings.notificationCard.icons.successIcon, color: "success", ...props, ref: ref, cx: props.cx })));
|
|
@@ -3062,11 +3069,11 @@ const HintNotification = /* @__PURE__ */React__namespace.default.forwardRef((pro
|
|
|
3062
3069
|
const ErrorNotification = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, { icon: settings.notificationCard.icons.errorIcon, color: "error", ...props, ref: ref, cx: props.cx })));
|
|
3063
3070
|
function ClearNotification() {
|
|
3064
3071
|
const uuiCtx = uuiCore.useUuiContext();
|
|
3065
|
-
return (React__namespace.default.createElement("div", { className: cx__default.default(css$
|
|
3072
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default(css$T.clearNotifications, 'uui-clear-notifications') },
|
|
3066
3073
|
React__namespace.default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => uuiCtx.uuiNotifications.clearAll() })));
|
|
3067
3074
|
}
|
|
3068
3075
|
|
|
3069
|
-
var css$
|
|
3076
|
+
var css$S = {"footer":"b02aEg"};
|
|
3070
3077
|
|
|
3071
3078
|
class ConfirmationModal extends React__namespace.Component {
|
|
3072
3079
|
render() {
|
|
@@ -3078,7 +3085,7 @@ class ConfirmationModal extends React__namespace.Component {
|
|
|
3078
3085
|
React__namespace.createElement(ModalWindow, { width: 420 },
|
|
3079
3086
|
React__namespace.createElement(ModalHeader, { borderBottom: true, title: this.props.caption, onClose: () => this.props.abort() }),
|
|
3080
3087
|
React__namespace.createElement(ScrollBars, null, bodyContent),
|
|
3081
|
-
React__namespace.createElement(ModalFooter, { cx: css$
|
|
3088
|
+
React__namespace.createElement(ModalFooter, { cx: css$S.footer },
|
|
3082
3089
|
this.props.hideCancelButton || (React__namespace.createElement(Button, { caption: i18n.form.modals.discardButton, onClick: () => this.props.success(false), fill: "outline", color: "secondary" })),
|
|
3083
3090
|
React__namespace.createElement(Button, { caption: i18n.form.modals.saveButton, onClick: () => this.props.success(true), color: "primary" })))));
|
|
3084
3091
|
}
|
|
@@ -3098,7 +3105,7 @@ function Snackbar(props) {
|
|
|
3098
3105
|
};
|
|
3099
3106
|
items = [clearOperation].concat(items);
|
|
3100
3107
|
}
|
|
3101
|
-
return React__namespace.createElement(uuiComponents.Snackbar, { forwardedRef: props.forwardedRef, notifications: items });
|
|
3108
|
+
return (React__namespace.createElement(uuiComponents.Snackbar, { forwardedRef: props.forwardedRef, notifications: items, zIndex: uuiCtx.uuiLayout.getTopOverlayZIndex() }));
|
|
3102
3109
|
}
|
|
3103
3110
|
/**
|
|
3104
3111
|
* https://legacy.reactjs.org/docs/hooks-faq.html#is-there-something-like-forceupdate
|
|
@@ -3108,9 +3115,10 @@ function useReliableForceUpdate() {
|
|
|
3108
3115
|
return red[1];
|
|
3109
3116
|
}
|
|
3110
3117
|
|
|
3111
|
-
var css$
|
|
3118
|
+
var css$R = {"root":"hN1h2-","container":"RtLbl7"};
|
|
3112
3119
|
|
|
3113
3120
|
const defaultFormat = 'MMM D, YYYY';
|
|
3121
|
+
const defaultFormatShort = 'MMM D';
|
|
3114
3122
|
const valueFormat = 'YYYY-MM-DD';
|
|
3115
3123
|
const supportedDateFormats = (format) => {
|
|
3116
3124
|
return [
|
|
@@ -3328,21 +3336,21 @@ function DatePickerHeader({ navIconLeft, navIconRight, value: { month, view }, o
|
|
|
3328
3336
|
}, [view, month]);
|
|
3329
3337
|
const disablePrev = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getPrevYearsList(month));
|
|
3330
3338
|
const disableNext = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getNextYearsList(month));
|
|
3331
|
-
return (React__namespace.createElement("div", { className: cx__default.default(css$
|
|
3339
|
+
return (React__namespace.createElement("div", { className: cx__default.default(css$R.root, uuiHeader.container, cx__default.default) },
|
|
3332
3340
|
React__namespace.createElement("header", { className: uuiHeader.headerNav },
|
|
3333
3341
|
React__namespace.createElement(Button, { icon: navIconLeft || settings.datePicker.icons.body.prevIcon, color: "secondary", fill: "ghost", cx: uuiHeader.navIconLeft, onClick: !isDisabled && (() => onLeftNavigationArrow()), isDisabled: disablePrev }),
|
|
3334
3342
|
React__namespace.createElement(Button, { caption: title, fill: "ghost", cx: uuiHeader.navTitle, onClick: !isDisabled && (() => onCaptionClick(view)) }),
|
|
3335
3343
|
React__namespace.createElement(Button, { icon: navIconRight || settings.datePicker.icons.body.nextIcon, color: "secondary", fill: "ghost", cx: uuiHeader.navIconRight, onClick: !isDisabled && (() => onRightNavigationArrow()), isDisabled: disableNext }))));
|
|
3336
3344
|
}
|
|
3337
3345
|
|
|
3338
|
-
var css$
|
|
3346
|
+
var css$Q = {"root":"tbz8qf"};
|
|
3339
3347
|
|
|
3340
|
-
function applyDateSelectionMods() {
|
|
3341
|
-
return [css$
|
|
3348
|
+
function applyDateSelectionMods(mods) {
|
|
3349
|
+
return [css$Q.root, `uui-size-${mods.size ?? settings.datePicker.sizes.body}`];
|
|
3342
3350
|
}
|
|
3343
3351
|
const Calendar = /* @__PURE__ */uuiCore.withMods(uuiComponents.Calendar, applyDateSelectionMods);
|
|
3344
3352
|
|
|
3345
|
-
var css$
|
|
3353
|
+
var css$P = {"root":"WlKPp-"};
|
|
3346
3354
|
|
|
3347
3355
|
const uuiDatePickerBody = {
|
|
3348
3356
|
wrapper: 'uui-datepicker-body-wrapper',
|
|
@@ -3361,7 +3369,7 @@ function DatePickerBodyComp(props, ref) {
|
|
|
3361
3369
|
return (React__namespace.default.createElement(StatelessDatePickerBody, { ref: ref, ...props, month: month, view: view, onValueChange: onValueChange, onMonthChange: (m) => setMonth(m), onViewChange: (v) => setView(v) }));
|
|
3362
3370
|
}
|
|
3363
3371
|
const StatelessDatePickerBody = /* @__PURE__ */React.forwardRef(StatelessDatePickerBodyComp);
|
|
3364
|
-
function StatelessDatePickerBodyComp({ renderDay, isHoliday, cx: classes, filter, rawProps, value, month, view, onValueChange, onMonthChange, onViewChange, isDisabled, }, ref) {
|
|
3372
|
+
function StatelessDatePickerBodyComp({ renderDay, isHoliday, cx: classes, filter, rawProps, value, month, view, onValueChange, onMonthChange, onViewChange, isDisabled, size, }, ref) {
|
|
3365
3373
|
const selectedDate = React.useMemo(() => uuiDayjs.dayjs(value), [value]);
|
|
3366
3374
|
const onMonthClick = (newDate) => {
|
|
3367
3375
|
onMonthChange(newDate);
|
|
@@ -3383,11 +3391,11 @@ function StatelessDatePickerBodyComp({ renderDay, isHoliday, cx: classes, filter
|
|
|
3383
3391
|
case 'YEAR_SELECTION':
|
|
3384
3392
|
return (React__namespace.default.createElement(uuiComponents.YearSelection, { selectedDate: selectedDate, value: month, onValueChange: onYearClick }));
|
|
3385
3393
|
case 'DAY_SELECTION':
|
|
3386
|
-
return (React__namespace.default.createElement(Calendar, { value: selectedDate, month: month, onValueChange: onDayClick, filter: filter, renderDay: renderDay, isHoliday: isHoliday, isDisabled: isDisabled }));
|
|
3394
|
+
return (React__namespace.default.createElement(Calendar, { value: selectedDate, month: month, onValueChange: onDayClick, filter: filter, renderDay: renderDay, isHoliday: isHoliday, isDisabled: isDisabled, size: size }));
|
|
3387
3395
|
}
|
|
3388
3396
|
};
|
|
3389
|
-
return (React__namespace.default.createElement("div", { ref: ref, className: uuiCore.cx(uuiDatePickerBodyBase.container, `uui-size-${settings.datePicker.sizes.body}`, classes), ...rawProps },
|
|
3390
|
-
React__namespace.default.createElement("div", { className: uuiCore.cx(css$
|
|
3397
|
+
return (React__namespace.default.createElement("div", { ref: ref, className: uuiCore.cx(uuiDatePickerBodyBase.container, `uui-size-${size ?? settings.datePicker.sizes.body}`, classes), ...rawProps },
|
|
3398
|
+
React__namespace.default.createElement("div", { className: uuiCore.cx(css$P.root, uuiDatePickerBody.wrapper) },
|
|
3391
3399
|
React__namespace.default.createElement(DatePickerHeader, { value: {
|
|
3392
3400
|
view,
|
|
3393
3401
|
month,
|
|
@@ -3469,9 +3477,9 @@ function DatePickerComponent(props, ref) {
|
|
|
3469
3477
|
}
|
|
3470
3478
|
const DatePicker = /* @__PURE__ */React__namespace.default.forwardRef(DatePickerComponent);
|
|
3471
3479
|
|
|
3472
|
-
var css$
|
|
3480
|
+
var css$O = {"date-input":"LJM7Oa","dateInput":"LJM7Oa","root":"oJ0FTh","separator":"v88ehd"};
|
|
3473
3481
|
|
|
3474
|
-
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) => {
|
|
3482
|
+
const RangeDatePickerInput = /* @__PURE__ */React.forwardRef(({ isDisabled, isInvalid, isReadonly, size, disableClear, rawProps, value, inFocus, format, onValueChange, onFocusInput, onBlurInput, onClick, getPlaceholder, filter, onKeyDown, onIconClick, preventEmptyFromDate, preventEmptyToDate, id, cx: classes, }, ref) => {
|
|
3475
3483
|
const [inputValue, setInputValue] = React.useState(toCustomDateRangeFormat(value, format));
|
|
3476
3484
|
React.useEffect(() => {
|
|
3477
3485
|
setInputValue(toCustomDateRangeFormat(value, format));
|
|
@@ -3540,13 +3548,13 @@ const RangeDatePickerInput = /* @__PURE__ */React.forwardRef(({ isDisabled, isIn
|
|
|
3540
3548
|
&& ((value.from && !preventEmptyFromDate) || (value.to && !preventEmptyToDate));
|
|
3541
3549
|
return (
|
|
3542
3550
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
3543
|
-
React__namespace.default.createElement("div", { ref: ref, className: uuiCore.cx(`uui-size-${size || settings.rangeDatePicker.sizes.default}`, 'uui-range-date-picker', classes, css$
|
|
3544
|
-
React__namespace.default.createElement(TextInput, { icon: settings.rangeDatePicker.icons.input.calendarIcon, cx: uuiCore.cx(css$
|
|
3545
|
-
React__namespace.default.createElement("div", { className: css$
|
|
3546
|
-
React__namespace.default.createElement(TextInput, { cx: uuiCore.cx(css$
|
|
3551
|
+
React__namespace.default.createElement("div", { ref: ref, className: uuiCore.cx(`uui-size-${size || settings.rangeDatePicker.sizes.default}`, 'uui-range-date-picker', classes, css$O.root, isDisabled && uuiCore.uuiMod.disabled, isReadonly && uuiCore.uuiMod.readonly, isInvalid && uuiCore.uuiMod.invalid, inFocus && uuiCore.uuiMod.focus), onKeyDown: onKeyDown },
|
|
3552
|
+
React__namespace.default.createElement(TextInput, { icon: settings.rangeDatePicker.icons.input.calendarIcon, cx: uuiCore.cx(css$O.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, onIconClick: onIconClick, onKeyDown: onInputKeyDown, id: id }),
|
|
3553
|
+
React__namespace.default.createElement("div", { className: css$O.separator }),
|
|
3554
|
+
React__namespace.default.createElement(TextInput, { cx: uuiCore.cx(css$O.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 })));
|
|
3547
3555
|
});
|
|
3548
3556
|
|
|
3549
|
-
var css$
|
|
3557
|
+
var css$N = {"root":"OSm-QX"};
|
|
3550
3558
|
|
|
3551
3559
|
const uuiPresets = {
|
|
3552
3560
|
container: 'uui-presets-container',
|
|
@@ -3561,12 +3569,14 @@ const getPresets = (presets) => {
|
|
|
3561
3569
|
})).sort((a, b) => a.order - b.order);
|
|
3562
3570
|
};
|
|
3563
3571
|
function CalendarPresets(props) {
|
|
3564
|
-
|
|
3572
|
+
const isMobileView = uuiCore.isMobile();
|
|
3573
|
+
const presetSize = isMobileView ? settings.rangeDatePicker.sizes.mobilePreset : settings.rangeDatePicker.sizes.preset;
|
|
3574
|
+
return (React__namespace.createElement("div", { ref: props.forwardedRef, className: uuiCore.cx(uuiPresets.container, css$N.root, props.cx), ...props.rawProps },
|
|
3565
3575
|
React__namespace.createElement("div", { className: uuiPresets.header }, "Presets"),
|
|
3566
|
-
getPresets(props.presets).map((item) => (React__namespace.createElement(LinkButton, { key: item.key, caption: item.name, onClick: () => props.onPresetSet(item), size:
|
|
3576
|
+
getPresets(props.presets).map((item) => (React__namespace.createElement(LinkButton, { key: item.key, caption: item.name, onClick: () => props.onPresetSet(item), size: presetSize })))));
|
|
3567
3577
|
}
|
|
3568
3578
|
|
|
3569
|
-
var css$
|
|
3579
|
+
var css$M = {"root":"quKELS","container":"mHDTX8","day-selection":"_4k5Pkb","daySelection":"_4k5Pkb","mobile":"I9JF2s","from-picker":"gO-3MU","fromPicker":"gO-3MU","to-picker":"ooI5Mq","toPicker":"ooI5Mq","bodes-wrapper":"FT8KJL","bodesWrapper":"FT8KJL","blocker":"YWr-df"};
|
|
3570
3580
|
|
|
3571
3581
|
const uuiRangeDatePickerBody = {
|
|
3572
3582
|
inRange: 'uui-range-datepicker-in-range',
|
|
@@ -3647,9 +3657,14 @@ function RangeDatePickerBodyComp(props, ref) {
|
|
|
3647
3657
|
const selectedDate = _selectedDate || defaultRangeValue; // also handles null in comparison to default value
|
|
3648
3658
|
const [view, setView] = React.useState('DAY_SELECTION');
|
|
3649
3659
|
const [disabledPanel, setDisabledPanel] = React.useState(null);
|
|
3650
|
-
const [month, setMonth] = React.useState(() =>
|
|
3651
|
-
|
|
3652
|
-
|
|
3660
|
+
const [month, setMonth] = React.useState(() => getDisplayedMonth(selectedDate, inFocus, initialViewMonth));
|
|
3661
|
+
const isMobileView = uuiCore.isMobile();
|
|
3662
|
+
React.useEffect(() => {
|
|
3663
|
+
if (isMobileView && selectedDate[inFocus]) {
|
|
3664
|
+
setMonth(getDisplayedMonth(selectedDate, inFocus, initialViewMonth));
|
|
3665
|
+
setView('DAY_SELECTION');
|
|
3666
|
+
}
|
|
3667
|
+
}, [selectedDate, inFocus, initialViewMonth]);
|
|
3653
3668
|
const getRange = (newValue) => {
|
|
3654
3669
|
if (!filter || filter(uuiDayjs.dayjs(newValue))) {
|
|
3655
3670
|
if (inFocus === 'from') {
|
|
@@ -3696,7 +3711,7 @@ function RangeDatePickerBodyComp(props, ref) {
|
|
|
3696
3711
|
};
|
|
3697
3712
|
const renderPresets = (presets) => {
|
|
3698
3713
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
3699
|
-
React__namespace.default.createElement("div", { className: uuiRangeDatePickerBody.separator }),
|
|
3714
|
+
!isMobileView && React__namespace.default.createElement("div", { className: uuiRangeDatePickerBody.separator }),
|
|
3700
3715
|
React__namespace.default.createElement(CalendarPresets, { onPresetSet: (presetVal) => {
|
|
3701
3716
|
// enable day if smth other were selected
|
|
3702
3717
|
setView('DAY_SELECTION');
|
|
@@ -3713,35 +3728,37 @@ function RangeDatePickerBodyComp(props, ref) {
|
|
|
3713
3728
|
};
|
|
3714
3729
|
uuiCore.useLayoutEffectSafeForSsr(() => {
|
|
3715
3730
|
const monthToSet = getDisplayedMonth(selectedDate, inFocus, initialViewMonth);
|
|
3716
|
-
//
|
|
3717
|
-
const shouldNotIgnoreUpdate =
|
|
3731
|
+
// Desktop: sync when displayed month differs from left or right panel anchor. Mobile: single month only.
|
|
3732
|
+
const shouldNotIgnoreUpdate = isMobileView
|
|
3733
|
+
? !uuiDayjs.dayjs(month).isSame(monthToSet, 'month')
|
|
3734
|
+
: !(uuiDayjs.dayjs(month).isSame(monthToSet, 'month') || uuiDayjs.dayjs(month).add(1, 'month').isSame(monthToSet, 'month'));
|
|
3718
3735
|
if (shouldNotIgnoreUpdate) {
|
|
3719
3736
|
setMonth(monthToSet);
|
|
3720
3737
|
}
|
|
3721
3738
|
}, [selectedDate]);
|
|
3722
|
-
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default(css$
|
|
3723
|
-
React__namespace.default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$
|
|
3724
|
-
React__namespace.default.createElement(FlexCell, { width: "auto" },
|
|
3725
|
-
React__namespace.default.createElement(FlexRow,
|
|
3726
|
-
React__namespace.default.createElement(FlexRow, { cx: css$
|
|
3727
|
-
React__namespace.default.createElement(StatelessDatePickerBody, { key: "date-picker-body-left", cx: cx__default.default(css$
|
|
3739
|
+
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default(css$M.root, uuiDatePickerBodyBase.container, props.cx), ...props.rawProps, "aria-multiselectable": "true" },
|
|
3740
|
+
React__namespace.default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$M.daySelection, isMobileView && css$M.mobile, css$M.container], alignItems: "top" },
|
|
3741
|
+
React__namespace.default.createElement(FlexCell, { width: "auto", grow: 1 },
|
|
3742
|
+
React__namespace.default.createElement(FlexRow, { alignItems: isMobileView ? 'stretch' : undefined },
|
|
3743
|
+
React__namespace.default.createElement(FlexRow, { cx: css$M.bodesWrapper, alignItems: "top" },
|
|
3744
|
+
React__namespace.default.createElement(StatelessDatePickerBody, { key: "date-picker-body-left", cx: cx__default.default(css$M.fromPicker), ...from, onValueChange: (v) => onBodyValueChange(v), onMonthChange: (m) => {
|
|
3728
3745
|
setMonth(m);
|
|
3729
3746
|
}, onViewChange: (v) => {
|
|
3730
3747
|
setView(v);
|
|
3731
3748
|
setDisabledPanel(v !== 'DAY_SELECTION' ? 'right' : null);
|
|
3732
|
-
}, filter: props.filter, isHoliday: props.isHoliday, renderDay: props.renderDay || renderDay, isDisabled: disabledPanel === 'left' }),
|
|
3733
|
-
React__namespace.default.createElement(StatelessDatePickerBody, { key: "date-picker-body-right", cx: cx__default.default(css$
|
|
3749
|
+
}, filter: props.filter, isHoliday: props.isHoliday, renderDay: props.renderDay || renderDay, isDisabled: disabledPanel === 'left', size: isMobileView ? '36' : undefined }),
|
|
3750
|
+
!isMobileView && (React__namespace.default.createElement(StatelessDatePickerBody, { key: "date-picker-body-right", cx: cx__default.default(css$M.toPicker), ...to, onValueChange: (v) => onBodyValueChange(v), onMonthChange: (m) => {
|
|
3734
3751
|
setMonth(m.subtract(1, 'month'));
|
|
3735
3752
|
}, onViewChange: (v) => {
|
|
3736
3753
|
setView(v);
|
|
3737
3754
|
setDisabledPanel(v !== 'DAY_SELECTION' ? 'left' : null);
|
|
3738
|
-
}, filter: props.filter, renderDay: props.renderDay || renderDay, isHoliday: props.isHoliday, isDisabled: disabledPanel === 'right' }),
|
|
3739
|
-
view !== 'DAY_SELECTION' && (React__namespace.default.createElement("div", { style: {
|
|
3755
|
+
}, filter: props.filter, renderDay: props.renderDay || renderDay, isHoliday: props.isHoliday, isDisabled: disabledPanel === 'right' })),
|
|
3756
|
+
!isMobileView && view !== 'DAY_SELECTION' && (React__namespace.default.createElement("div", { style: {
|
|
3740
3757
|
left: disabledPanel === 'right' ? '50%' : undefined,
|
|
3741
3758
|
right: disabledPanel === 'left' ? '50%' : undefined,
|
|
3742
|
-
}, className: css$
|
|
3759
|
+
}, className: css$M.blocker }))),
|
|
3743
3760
|
props.presets && renderPresets(props.presets)),
|
|
3744
|
-
props.renderFooter && props.renderFooter()))));
|
|
3761
|
+
props.renderFooter && (React__namespace.default.createElement("div", { className: "uui-range-datepicker-body-footer" }, props.renderFooter()))))));
|
|
3745
3762
|
}
|
|
3746
3763
|
const getDayCX = ({ inRange, isFirst, isLast }) => {
|
|
3747
3764
|
return [
|
|
@@ -3768,7 +3785,48 @@ const getDayState = (day, selectedDate) => {
|
|
|
3768
3785
|
};
|
|
3769
3786
|
};
|
|
3770
3787
|
|
|
3771
|
-
var css$
|
|
3788
|
+
var css$L = {"root":"ofLu95","modal-title":"KLaTx7","modalTitle":"KLaTx7","range-selector":"HS8DO1","rangeSelector":"HS8DO1","range-selector-button":"Id19KM","rangeSelectorButton":"Id19KM","header-range-separator":"udkYjO","headerRangeSeparator":"udkYjO","body":"_6L67of"};
|
|
3789
|
+
|
|
3790
|
+
function RangeDatePickerModal({ success, abort, isActive, zIndex, key, pickerProps, initialValue, }) {
|
|
3791
|
+
const [modalValue, setModalValue] = React.useState(initialValue);
|
|
3792
|
+
const [inFocus, setInFocus] = React.useState(pickerProps.initialInFocus ?? 'from');
|
|
3793
|
+
const onModalBodyValueChange = (newValue) => {
|
|
3794
|
+
setInFocus(newValue.inFocus ?? inFocus);
|
|
3795
|
+
setModalValue(newValue.selectedDate);
|
|
3796
|
+
};
|
|
3797
|
+
const onClearAll = React.useCallback(() => {
|
|
3798
|
+
setModalValue((prevValue) => ({
|
|
3799
|
+
from: pickerProps.preventEmptyFromDate ? prevValue.from : null,
|
|
3800
|
+
to: pickerProps.preventEmptyToDate ? prevValue.to : null,
|
|
3801
|
+
}));
|
|
3802
|
+
}, [pickerProps.preventEmptyFromDate, pickerProps.preventEmptyToDate]);
|
|
3803
|
+
const getDateButtonCaption = (date, placeholder) => {
|
|
3804
|
+
return date ? toCustomDateFormat(date, defaultFormatShort) : placeholder;
|
|
3805
|
+
};
|
|
3806
|
+
const startDateButtonCaption = React.useMemo(() => getDateButtonCaption(modalValue?.from ?? null, i18n.rangeDatePicker.mobileModalStartPlaceholder), [modalValue?.from]);
|
|
3807
|
+
const endDateButtonCaption = React.useMemo(() => getDateButtonCaption(modalValue?.to ?? null, i18n.rangeDatePicker.mobileModalEndPlaceholder), [modalValue?.to]);
|
|
3808
|
+
const hideClearButton = pickerProps.disableClear || (pickerProps.preventEmptyToDate && pickerProps.preventEmptyFromDate);
|
|
3809
|
+
const renderModalHeaderTitle = () => {
|
|
3810
|
+
return (React__namespace.default.createElement(FlexCell, null,
|
|
3811
|
+
React__namespace.default.createElement("h4", { className: css$L.modalTitle }, i18n.rangeDatePicker.mobileModalTitle),
|
|
3812
|
+
React__namespace.default.createElement("h2", { className: css$L.rangeSelector },
|
|
3813
|
+
React__namespace.default.createElement(LinkButton, { cx: css$L.rangeSelectorButton, color: inFocus === 'from' ? 'primary' : 'secondary', size: "36", caption: startDateButtonCaption, onClick: () => setInFocus('from') }),
|
|
3814
|
+
React__namespace.default.createElement("span", { className: css$L.headerRangeSeparator }, " \u2013 "),
|
|
3815
|
+
React__namespace.default.createElement(LinkButton, { cx: css$L.rangeSelectorButton, color: inFocus === 'to' ? 'primary' : 'secondary', size: "36", caption: endDateButtonCaption, onClick: () => setInFocus('to') }))));
|
|
3816
|
+
};
|
|
3817
|
+
return (React__namespace.default.createElement(ModalBlocker, { key: key, isActive: isActive, zIndex: zIndex, success: () => success(modalValue), abort: abort },
|
|
3818
|
+
React__namespace.default.createElement(ModalWindow, { cx: css$L.root },
|
|
3819
|
+
React__namespace.default.createElement(ModalHeader, { title: renderModalHeaderTitle(), borderBottom: true, onClose: abort }),
|
|
3820
|
+
React__namespace.default.createElement(FlexRow, { cx: css$L.body, alignItems: "stretch" },
|
|
3821
|
+
React__namespace.default.createElement(RangeDatePickerBody, { cx: cx__default.default(pickerProps.bodyCx), value: { selectedDate: modalValue, inFocus }, onValueChange: onModalBodyValueChange, filter: pickerProps.filter, presets: pickerProps.presets, renderDay: pickerProps.renderDay, renderFooter: () => pickerProps.renderFooter?.(modalValue), isHoliday: pickerProps.isHoliday, rawProps: pickerProps.rawProps?.body, preventEmptyToDate: pickerProps.preventEmptyToDate, preventEmptyFromDate: pickerProps.preventEmptyFromDate, initialViewMonth: pickerProps.initialViewMonth })),
|
|
3822
|
+
React__namespace.default.createElement(ModalFooter, { borderTop: true },
|
|
3823
|
+
!hideClearButton && React__namespace.default.createElement(Button, { fill: "ghost", color: "primary", caption: i18n.rangeDatePicker.mobileModalClearAll, onClick: onClearAll, icon: ForwardRef$D }),
|
|
3824
|
+
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
3825
|
+
React__namespace.default.createElement(Button, { fill: "outline", color: "secondary", caption: i18n.rangeDatePicker.mobileModalCancel, onClick: abort }),
|
|
3826
|
+
React__namespace.default.createElement(Button, { color: "primary", caption: i18n.rangeDatePicker.mobileModalApply, onClick: () => success(modalValue) })))));
|
|
3827
|
+
}
|
|
3828
|
+
|
|
3829
|
+
var css$K = {"dropdown-container":"EYK-1S","dropdownContainer":"EYK-1S"};
|
|
3772
3830
|
|
|
3773
3831
|
function RangeDatePickerComponent(props, ref) {
|
|
3774
3832
|
const { value: _value, format = defaultFormat, size = settings.rangeDatePicker.sizes.default } = props;
|
|
@@ -3776,7 +3834,8 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
3776
3834
|
const context = uuiCore.useUuiContext();
|
|
3777
3835
|
const [isOpen, setIsOpen] = React.useState(false);
|
|
3778
3836
|
const [inFocus, setInFocus] = React.useState(null);
|
|
3779
|
-
const targetRef =
|
|
3837
|
+
const targetRef = React.useRef(null);
|
|
3838
|
+
const isMobileView = uuiCore.isMobile();
|
|
3780
3839
|
React.useImperativeHandle(ref, () => targetRef.current);
|
|
3781
3840
|
const onValueChange = (newValue) => {
|
|
3782
3841
|
const fromChanged = value?.from !== newValue?.from;
|
|
@@ -3811,32 +3870,68 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
3811
3870
|
onOpenChange(false);
|
|
3812
3871
|
}
|
|
3813
3872
|
};
|
|
3814
|
-
const renderBody = (renderProps) => {
|
|
3815
|
-
return (React__namespace.default.createElement(DropdownContainer, { ...renderProps, cx: cx__default.default(css$K.dropdownContainer), shards: [targetRef], returnFocus: true },
|
|
3816
|
-
React__namespace.default.createElement(FlexRow, null,
|
|
3817
|
-
React__namespace.default.createElement(RangeDatePickerBody, { cx: cx__default.default(props.bodyCx), value: {
|
|
3818
|
-
selectedDate: _value,
|
|
3819
|
-
inFocus,
|
|
3820
|
-
}, onValueChange: onBodyValueChange, filter: props.filter, presets: props.presets, renderDay: props.renderDay, renderFooter: () => {
|
|
3821
|
-
return props.renderFooter?.(value);
|
|
3822
|
-
}, isHoliday: props.isHoliday, rawProps: props.rawProps?.body, preventEmptyToDate: props.preventEmptyToDate, preventEmptyFromDate: props.preventEmptyFromDate, initialViewMonth: props.initialViewMonth }))));
|
|
3823
|
-
};
|
|
3824
3873
|
const handleEscape = (e) => {
|
|
3825
3874
|
if (e.key === 'Escape' && isOpen) {
|
|
3826
3875
|
e.preventDefault();
|
|
3827
3876
|
onOpenChange(false);
|
|
3828
3877
|
}
|
|
3829
3878
|
};
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3879
|
+
const openModal = () => {
|
|
3880
|
+
if (props.isDisabled || props.isReadonly)
|
|
3881
|
+
return;
|
|
3882
|
+
const valueBeforeOpen = { ...value };
|
|
3883
|
+
props.onOpenChange?.(true);
|
|
3884
|
+
context.uuiModals.show((modalProps) => (React__namespace.default.createElement(RangeDatePickerModal, { ...modalProps, pickerProps: { ...props, initialInFocus: inFocus }, initialValue: valueBeforeOpen })))
|
|
3885
|
+
.then((result) => {
|
|
3886
|
+
if (result) {
|
|
3887
|
+
onValueChange(result);
|
|
3888
|
+
}
|
|
3889
|
+
})
|
|
3890
|
+
.catch(() => {
|
|
3891
|
+
onValueChange(valueBeforeOpen);
|
|
3892
|
+
})
|
|
3893
|
+
.finally(() => {
|
|
3894
|
+
props.onOpenChange?.(false);
|
|
3895
|
+
});
|
|
3896
|
+
};
|
|
3897
|
+
const onInputClick = (dropdownRenderProps) => {
|
|
3898
|
+
if (isMobileView) {
|
|
3899
|
+
openModal();
|
|
3900
|
+
}
|
|
3901
|
+
else {
|
|
3902
|
+
dropdownRenderProps?.toggleDropdownOpening?.(true);
|
|
3903
|
+
}
|
|
3904
|
+
};
|
|
3905
|
+
const renderInput = (dropdownRenderProps) => (React__namespace.default.createElement(RangeDatePickerInput, { id: props.id, ref: (node) => {
|
|
3906
|
+
dropdownRenderProps?.ref?.(node);
|
|
3907
|
+
targetRef.current = node;
|
|
3908
|
+
}, cx: props.inputCx, onClick: () => onInputClick(dropdownRenderProps), isDisabled: props.isDisabled, isInvalid: props.isInvalid, isReadonly: props.isReadonly, size: size, getPlaceholder: props.getPlaceholder, disableClear: props.disableClear, rawProps: props.rawProps, inFocus: inFocus, value: value, format: format, filter: props.filter, onValueChange: onValueChange, onFocusInput: (e, type) => {
|
|
3909
|
+
props.onFocus?.(e, type);
|
|
3910
|
+
setInFocus(type);
|
|
3911
|
+
}, onBlurInput: (e, type) => {
|
|
3912
|
+
props.onBlur?.(e, type);
|
|
3913
|
+
(!isOpen || isMobileView) && setInFocus(null);
|
|
3914
|
+
}, onKeyDown: !isMobileView ? handleEscape : undefined, preventEmptyFromDate: props.preventEmptyFromDate, preventEmptyToDate: props.preventEmptyToDate }));
|
|
3915
|
+
if (isMobileView) {
|
|
3916
|
+
const mobileTogglerProps = {
|
|
3917
|
+
isOpen: false,
|
|
3918
|
+
toggleDropdownOpening: openModal,
|
|
3919
|
+
onClick: openModal,
|
|
3920
|
+
ref: (node) => {
|
|
3921
|
+
targetRef.current = node;
|
|
3922
|
+
},
|
|
3923
|
+
};
|
|
3924
|
+
const customTarget = props.renderTarget?.(mobileTogglerProps);
|
|
3925
|
+
return (React__namespace.default.isValidElement(customTarget) ? customTarget : renderInput());
|
|
3926
|
+
}
|
|
3927
|
+
const renderBody = (renderProps) => (React__namespace.default.createElement(DropdownContainer, { ...renderProps, cx: css$K.dropdownContainer, shards: [targetRef], returnFocus: true },
|
|
3928
|
+
React__namespace.default.createElement(FlexRow, null,
|
|
3929
|
+
React__namespace.default.createElement(RangeDatePickerBody, { cx: cx__default.default(props.bodyCx), value: { selectedDate: value, inFocus }, onValueChange: onBodyValueChange, filter: props.filter, presets: props.presets, renderDay: props.renderDay, renderFooter: () => props.renderFooter?.(value), isHoliday: props.isHoliday, rawProps: props.rawProps?.body, preventEmptyToDate: props.preventEmptyToDate, preventEmptyFromDate: props.preventEmptyFromDate, initialViewMonth: props.initialViewMonth }))));
|
|
3930
|
+
return (React__namespace.default.createElement(uuiComponents.Dropdown, { renderTarget: (rp) => props.renderTarget?.(rp) || renderInput(rp), renderBody: renderBody, onValueChange: onOpenChange, value: isOpen, middleware: [react.offset(6)], placement: props.placement, ref: ref }));
|
|
3836
3931
|
}
|
|
3837
3932
|
const RangeDatePicker = /* @__PURE__ */React__namespace.default.forwardRef(RangeDatePickerComponent);
|
|
3838
3933
|
|
|
3839
|
-
var css$J = {"root":"
|
|
3934
|
+
var css$J = {"root":"Dfbxpq","blocker":"iM-TUI","marker":"ALoITO","top":"ndsWjm","bottom":"yOapOE","left":"KXItUP","right":"tW9opS","inside":"qJ4vv-"};
|
|
3840
3935
|
|
|
3841
3936
|
function DropMarker(props) {
|
|
3842
3937
|
return props.isDndInProgress
|
|
@@ -3851,9 +3946,9 @@ function DropMarker(props) {
|
|
|
3851
3946
|
: null;
|
|
3852
3947
|
}
|
|
3853
3948
|
|
|
3854
|
-
var css$I = {"root":"
|
|
3949
|
+
var css$I = {"root":"_39q9e9","search-wrapper":"dX2YHp","searchWrapper":"dX2YHp","no-data":"fcXSIW","noData":"fcXSIW","empty-status-announcer":"lP-Mnc","emptyStatusAnnouncer":"lP-Mnc"};
|
|
3855
3950
|
|
|
3856
|
-
var css$H = {"picker-row":"
|
|
3951
|
+
var css$H = {"picker-row":"t7io2b","pickerRow":"t7io2b","align-widgets-top":"pxo8lS","alignWidgetsTop":"pxo8lS","row-content":"Tafdsu","rowContent":"Tafdsu","align-widgets-center":"_0Itoxp","alignWidgetsCenter":"_0Itoxp","icon-container":"-yfEOK","iconContainer":"-yfEOK","content-wrapper":"Or-gtc","contentWrapper":"Or-gtc","icon-wrapper":"eULv4N","iconWrapper":"eULv4N","icon-default":"Rzmaw4","iconDefault":"Rzmaw4","selected-mark":"aifwTi","selectedMark":"aifwTi"};
|
|
3857
3952
|
|
|
3858
3953
|
const mergeHighlightRanges = (ranges) => {
|
|
3859
3954
|
const mergedRanges = [];
|
|
@@ -3920,7 +4015,7 @@ const getHighlightedSearchMatches = (str, search) => {
|
|
|
3920
4015
|
return getDecoratedText(str, ranges);
|
|
3921
4016
|
};
|
|
3922
4017
|
|
|
3923
|
-
var css$G = {"root":"
|
|
4018
|
+
var css$G = {"root":"cZj8GS","column-gap":"Sd-I4v","columnGap":"Sd-I4v","title":"_4EaSEw","subtitle":"rWeA7s","disabled":"nkv6Le","multiline":"_2AOZ5X"};
|
|
3924
4019
|
|
|
3925
4020
|
function PickerItem(props) {
|
|
3926
4021
|
const { highlightSearchMatches = true, size, avatarUrl, isLoading, isDisabled, icon, } = props;
|
|
@@ -4146,7 +4241,7 @@ function DataPickerFooterImpl(props) {
|
|
|
4146
4241
|
}
|
|
4147
4242
|
const DataPickerFooter = /* @__PURE__ */React__namespace.default.memo(DataPickerFooterImpl);
|
|
4148
4243
|
|
|
4149
|
-
var css$F = {"header":"
|
|
4244
|
+
var css$F = {"header":"_4mRBIx","title":"w9ty5M","close":"_7TgPdH"};
|
|
4150
4245
|
|
|
4151
4246
|
const DataPickerMobileHeaderImpl = (props) => {
|
|
4152
4247
|
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
@@ -4156,7 +4251,7 @@ const DataPickerMobileHeaderImpl = (props) => {
|
|
|
4156
4251
|
};
|
|
4157
4252
|
const DataPickerMobileHeader = /* @__PURE__ */React__namespace.default.memo(DataPickerMobileHeaderImpl);
|
|
4158
4253
|
|
|
4159
|
-
var css$E = {"done":"
|
|
4254
|
+
var css$E = {"done":"d-8x8E","container":"c5Hc5y"};
|
|
4160
4255
|
|
|
4161
4256
|
const PickerBodyMobileView = (props) => {
|
|
4162
4257
|
const isMobileView = uuiCore.isMobile();
|
|
@@ -4168,7 +4263,7 @@ const PickerBodyMobileView = (props) => {
|
|
|
4168
4263
|
isMobileView && (React__namespace.default.createElement(LinkButton, { caption: i18n.pickerInput.doneButton, onClick: () => props.onClose?.(), cx: css$E.done, size: settings.pickerInput.sizes.body.mobileFooterLinkButton }))));
|
|
4169
4264
|
};
|
|
4170
4265
|
|
|
4171
|
-
var css$D = {"sub-header-wrapper":"
|
|
4266
|
+
var css$D = {"sub-header-wrapper":"A6-fi2","subHeaderWrapper":"A6-fi2","switch":"hmivDi","search":"jy6IA-","no-found-modal-container":"EJFBCq","noFoundModalContainer":"EJFBCq","no-found-modal-container-icon":"_5YHkoP","noFoundModalContainerIcon":"_5YHkoP","no-found-modal-container-text":"FNfdKG","noFoundModalContainerText":"FNfdKG","body":"_6jIS0j"};
|
|
4172
4267
|
|
|
4173
4268
|
function PickerModal(props) {
|
|
4174
4269
|
const { view, selection, dataSourceStateLens, dataSourceState, getName, clearSelection, getRows, getListProps, getFooterProps, isSingleSelect, handleDataSourceValueChange, } = uuiComponents.usePickerModal(props);
|
|
@@ -4182,8 +4277,9 @@ function PickerModal(props) {
|
|
|
4182
4277
|
const isEmptyRowsAndHasNoSelection = (rowsCount === 0 || !hasSelection);
|
|
4183
4278
|
const showClear = !props.disableClear && (isSingleSelect() ? true : (!view.selectAll || hasSelection));
|
|
4184
4279
|
const isClearDisabled = isSearching || isEmptyRowsAndHasNoSelection;
|
|
4280
|
+
const isSelectAllDisabled = isSearching;
|
|
4185
4281
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
4186
|
-
view.selectAll && !hasSelection && (React__namespace.default.createElement(LinkButton, { caption: i18n.pickerModal.selectAllButton, onClick: () => view.selectAll.onValueChange(true) })),
|
|
4282
|
+
view.selectAll && !hasSelection && (React__namespace.default.createElement(LinkButton, { caption: i18n.pickerModal.selectAllButton, onClick: () => view.selectAll.onValueChange(true), isDisabled: isSelectAllDisabled })),
|
|
4187
4283
|
showClear && (React__namespace.default.createElement(LinkButton, { caption: isSingleSelect() ? i18n.pickerModal.clearButton : i18n.pickerModal.clearAllButton, onClick: () => clearSelection(), isDisabled: isClearDisabled })),
|
|
4188
4284
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
4189
4285
|
React__namespace.default.createElement(Button, { fill: "outline", color: "secondary", caption: i18n.pickerModal.cancelButton, onClick: () => props.abort() }),
|
|
@@ -4229,7 +4325,7 @@ function PickerModal(props) {
|
|
|
4229
4325
|
React__namespace.default.createElement(ModalFooter, null, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
|
|
4230
4326
|
}
|
|
4231
4327
|
|
|
4232
|
-
var css$C = {"tooltip":"
|
|
4328
|
+
var css$C = {"tooltip":"KOU0oQ","noShrink":"YSA6qO"};
|
|
4233
4329
|
|
|
4234
4330
|
const PickerTogglerTag = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
4235
4331
|
const tagProps = {
|
|
@@ -4248,7 +4344,7 @@ const PickerTogglerTag = /* @__PURE__ */React__namespace.forwardRef((props, ref)
|
|
|
4248
4344
|
}
|
|
4249
4345
|
});
|
|
4250
4346
|
|
|
4251
|
-
var css$B = {"root":"
|
|
4347
|
+
var css$B = {"root":"wU2S1m"};
|
|
4252
4348
|
|
|
4253
4349
|
const defaultMode = EditMode.FORM;
|
|
4254
4350
|
function applyPickerTogglerMods(mods) {
|
|
@@ -4330,7 +4426,7 @@ function PickerInputComponent(props, ref) {
|
|
|
4330
4426
|
}
|
|
4331
4427
|
const PickerInput = /* @__PURE__ */React__namespace.default.forwardRef(PickerInputComponent);
|
|
4332
4428
|
|
|
4333
|
-
var css$A = {"row":"
|
|
4429
|
+
var css$A = {"row":"crAQhU"};
|
|
4334
4430
|
|
|
4335
4431
|
function PickerListRow(props) {
|
|
4336
4432
|
let label;
|
|
@@ -4350,7 +4446,7 @@ function PickerListRow(props) {
|
|
|
4350
4446
|
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));
|
|
4351
4447
|
}
|
|
4352
4448
|
|
|
4353
|
-
var css$z = {"root":"
|
|
4449
|
+
var css$z = {"root":"Jqz42t"};
|
|
4354
4450
|
|
|
4355
4451
|
function PickerList(props) {
|
|
4356
4452
|
const { context, view, onlySelectedView, getName, getEntityName, appendLastSelected, getSelectedIdsArray, buildRowsList, getMaxDefaultItems, getModalTogglerCaption, } = uuiComponents.usePickerList(props);
|
|
@@ -4385,7 +4481,7 @@ function PickerList(props) {
|
|
|
4385
4481
|
}, selectedRows)));
|
|
4386
4482
|
}
|
|
4387
4483
|
|
|
4388
|
-
var css$y = {"root":"
|
|
4484
|
+
var css$y = {"root":"-JH1tz","wrapper":"zHen-O","align-widgets-top":"_9SSuYh","alignWidgetsTop":"_9SSuYh","align-widgets-center":"_6Uwczu","alignWidgetsCenter":"_6Uwczu"};
|
|
4389
4485
|
|
|
4390
4486
|
function DataTableCell(initialProps) {
|
|
4391
4487
|
const props = { ...initialProps };
|
|
@@ -4435,7 +4531,7 @@ function DataTableCell(initialProps) {
|
|
|
4435
4531
|
return React__namespace.createElement(uuiComponents.DataTableCell, { ...props });
|
|
4436
4532
|
}
|
|
4437
4533
|
|
|
4438
|
-
var css$x = {"root":"
|
|
4534
|
+
var css$x = {"root":"_4-WxN0"};
|
|
4439
4535
|
|
|
4440
4536
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
4441
4537
|
// 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.
|
|
@@ -4451,7 +4547,7 @@ const DataTableRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.DataTableRow,
|
|
|
4451
4547
|
];
|
|
4452
4548
|
}, () => propsMods);
|
|
4453
4549
|
|
|
4454
|
-
var css$w = {"sorting-panel-container":"
|
|
4550
|
+
var css$w = {"sorting-panel-container":"gNJ05Y","sortingPanelContainer":"gNJ05Y"};
|
|
4455
4551
|
|
|
4456
4552
|
const SortingPanelImpl = ({ sortDirection, onSort }) => {
|
|
4457
4553
|
const sortAsc = React.useCallback(() => onSort(sortDirection === 'asc' ? undefined : 'asc'), [onSort]);
|
|
@@ -4473,7 +4569,7 @@ const ColumnHeaderDropdownImpl = (props) => {
|
|
|
4473
4569
|
};
|
|
4474
4570
|
const ColumnHeaderDropdown = /* @__PURE__ */React__namespace.default.memo(ColumnHeaderDropdownImpl);
|
|
4475
4571
|
|
|
4476
|
-
var css$v = {"root":"
|
|
4572
|
+
var css$v = {"root":"haFoNy","caption-wrapper":"dW9UQP","captionWrapper":"dW9UQP","sort-icon":"efDv9x","sortIcon":"efDv9x","dropdown-icon":"kol8Xx","dropdownIcon":"kol8Xx","infoIcon":"fXjpGN","sortInActive":"aFVm6H","align-right":"hmnVog","alignRight":"hmnVog","align-center":"BSFQQr","alignCenter":"BSFQQr","caption":"_1PKy5q","truncate":"rjUUy-","upper-case":"Og40lP","upperCase":"Og40lP","checkbox":"s9DV4r","icon":"Q9WRXf","fold-all-icon":"g5v5hO","foldAllIcon":"g5v5hO","cell-tooltip":"qrhJrM","cellTooltip":"qrhJrM","resizing-marker":"PBp3Cl","resizingMarker":"PBp3Cl","pinned-right":"rosspY","pinnedRight":"rosspY","draggable":"fJD7p-","ghost":"lkZQ9h","is-dragged-out":"qILMIK","isDraggedOut":"qILMIK","dnd-marker-left":"_9LEeJU","dndMarkerLeft":"_9LEeJU","dnd-marker-right":"r-DBx1","dndMarkerRight":"r-DBx1","cell-tooltip-wrapper":"_5UK2gG","cellTooltipWrapper":"_5UK2gG","cell-tooltip-text":"snpLBU","cellTooltipText":"snpLBU","tooltip-caption":"kTHlYp","tooltipCaption":"kTHlYp","tooltip-info":"hOWNTH","tooltipInfo":"hOWNTH"};
|
|
4477
4573
|
|
|
4478
4574
|
function DefaultTooltipContent(column) {
|
|
4479
4575
|
return (React__namespace.default.createElement("div", { className: uuiCore.cx(css$v.cellTooltipWrapper, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaptionTooltip) },
|
|
@@ -4580,7 +4676,7 @@ function DataTableHeaderCell(props) {
|
|
|
4580
4676
|
return (React__namespace.default.createElement(uuiComponents.DataTableHeaderCell, { ...props, renderCellContent: props.column.renderFilter ? renderCellWithFilter : renderCellContent }));
|
|
4581
4677
|
}
|
|
4582
4678
|
|
|
4583
|
-
var css$u = {"root":"
|
|
4679
|
+
var css$u = {"root":"ebuVzD","caption-wrapper":"y9pk5s","captionWrapper":"y9pk5s","align-center":"hqJhf-","alignCenter":"hqJhf-","caption":"JJ4Dij","truncate":"serVGZ","upper-case":"EH8Z0n","upperCase":"EH8Z0n","group-cell-tooltip":"paJSwk","groupCellTooltip":"paJSwk","group-cell-tooltip-wrapper":"CTh-w0","groupCellTooltipWrapper":"CTh-w0","group-cell-tooltip-text":"jdiATY","groupCellTooltipText":"jdiATY","tooltip-caption":"_5s2PdS","tooltipCaption":"_5s2PdS","tooltip-info":"-xeDyA","tooltipInfo":"-xeDyA"};
|
|
4584
4680
|
|
|
4585
4681
|
class DataTableHeaderGroupCell extends React__namespace.Component {
|
|
4586
4682
|
constructor() {
|
|
@@ -4620,7 +4716,7 @@ class DataTableHeaderGroupCell extends React__namespace.Component {
|
|
|
4620
4716
|
}
|
|
4621
4717
|
}
|
|
4622
4718
|
|
|
4623
|
-
var css$t = {"root":"
|
|
4719
|
+
var css$t = {"root":"JTC4cc"};
|
|
4624
4720
|
|
|
4625
4721
|
const DataTableHeaderRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.DataTableHeaderRow, () => [css$t.root, 'uui-dt-vars'], (mods) => {
|
|
4626
4722
|
return ({
|
|
@@ -4728,7 +4824,7 @@ const UUI_FILTERS_PANEL_ITEM_TOGGLER_SELECTION = 'uui-filters-panel-item-toggler
|
|
|
4728
4824
|
const UUI_FILTERS_PANEL_ITEM_TOGGLER_POSTFIX = 'uui-filters-panel-item-toggler-postfix';
|
|
4729
4825
|
const UUI_FILTERS_PANEL_BODY_FOOTER = 'uui-filters-panel-item-footer';
|
|
4730
4826
|
|
|
4731
|
-
var css$s = {"body":"
|
|
4827
|
+
var css$s = {"body":"bb0w3w","header":"aWjSiG","title":"_-9vmX7","removeButton":"Y64saA","with-search":"oQFZaS","withSearch":"oQFZaS"};
|
|
4732
4828
|
|
|
4733
4829
|
function FilterColumnBody(props) {
|
|
4734
4830
|
const [predicate, setPredicate] = React.useState(getDefaultPredicate(props.predicates, props.value));
|
|
@@ -4789,7 +4885,7 @@ const useColumnsWithFilters = (initialColumns, filters) => {
|
|
|
4789
4885
|
return columns;
|
|
4790
4886
|
};
|
|
4791
4887
|
|
|
4792
|
-
var css$r = {"unpin-icon":"
|
|
4888
|
+
var css$r = {"unpin-icon":"_7H8qYt","unpinIcon":"_7H8qYt","pin-toggler-icon":"fufXkN","pinTogglerIcon":"fufXkN"};
|
|
4793
4889
|
|
|
4794
4890
|
function PinIconButton(props) {
|
|
4795
4891
|
const i18nLocal = i18n.tables.columnsConfigurationModal;
|
|
@@ -4840,7 +4936,7 @@ function getUnpinIcon(params) {
|
|
|
4840
4936
|
}
|
|
4841
4937
|
}
|
|
4842
4938
|
|
|
4843
|
-
var css$q = {"row-wrapper":"
|
|
4939
|
+
var css$q = {"row-wrapper":"jXnPOb","rowWrapper":"jXnPOb","pin-icon-button":"FLVoOv","pinIconButton":"FLVoOv","not-pinned":"NyVjOV","notPinned":"NyVjOV","checkbox":"_5ihLSC","drag-handle":"XOx0nK","dragHandle":"XOx0nK","dnd-disabled":"c0k6Ch","dndDisabled":"c0k6Ch"};
|
|
4844
4940
|
|
|
4845
4941
|
const ColumnRow = /* @__PURE__ */React__namespace.memo(function ColumnRow(props) {
|
|
4846
4942
|
const { column } = props;
|
|
@@ -4874,7 +4970,7 @@ const ColumnRow = /* @__PURE__ */React__namespace.memo(function ColumnRow(props)
|
|
|
4874
4970
|
return (React__namespace.createElement(uuiCore.DndActor, { key: column.key, srcData: isDndAllowed && data, dstData: data, canAcceptDrop: onCanAcceptDrop, onDrop: onDrop, render: renderContent }));
|
|
4875
4971
|
});
|
|
4876
4972
|
|
|
4877
|
-
var css$p = {"root":"
|
|
4973
|
+
var css$p = {"root":"CNuaPB","main-panel":"_5wQfkL","mainPanel":"_5wQfkL","group":"Ovxjlu","group-title":"_9l9w5E","groupTitle":"_9l9w5E","group-items":"fI1z11","groupItems":"fI1z11","no-data":"_14r-Vc","noData":"_14r-Vc","no-data-title":"P6zps6","noDataTitle":"P6zps6","no-data-sub-title":"isYv7r","noDataSubTitle":"isYv7r","h-divider":"M9sD-c","hDivider":"M9sD-c","search-area":"XZb8f8","searchArea":"XZb8f8","subgroup-accordion":"Rf-wAP","subgroupAccordion":"Rf-wAP","subgroup":"_7-hc-8","subgroup-title":"b0BTnW","subgroupTitle":"b0BTnW"};
|
|
4878
4974
|
|
|
4879
4975
|
const renderGroupTitle = (title, amount) => (React__namespace.createElement(FlexRow, { cx: css$p.group },
|
|
4880
4976
|
React__namespace.createElement(Text, { size: "none", cx: css$p.groupTitle }, title),
|
|
@@ -4977,7 +5073,7 @@ const getChildrenAndRest = (row, rows) => {
|
|
|
4977
5073
|
return [children, rest];
|
|
4978
5074
|
};
|
|
4979
5075
|
|
|
4980
|
-
var css$o = {"listContainer":"
|
|
5076
|
+
var css$o = {"listContainer":"FeoXKJ","header":"Ysswq8","group":"n4MDD6","stickyHeader":"SSARuE"};
|
|
4981
5077
|
|
|
4982
5078
|
function DataRowsGroup({ row, childRows, renderRow, top = 1, }) {
|
|
4983
5079
|
const rowRef = React.useRef(undefined);
|
|
@@ -5017,7 +5113,7 @@ function DataRowsContainer({ estimatedHeight, listContainerRef, offsetY, rows, r
|
|
|
5017
5113
|
React__namespace.default.createElement(DataRowsGroups, { rows: rows, renderRow: renderRow, top: headerRef?.current?.clientHeight }))));
|
|
5018
5114
|
}
|
|
5019
5115
|
|
|
5020
|
-
var css$n = {"root":"
|
|
5116
|
+
var css$n = {"root":"jhIaZE","sticky-header":"LCtrUj","stickyHeader":"LCtrUj","no-results":"UrQTTF","noResults":"UrQTTF","icon":"BpTDes","title":"cqNR--"};
|
|
5021
5117
|
|
|
5022
5118
|
function DataTable(props) {
|
|
5023
5119
|
const { uuiModals } = uuiCore.useUuiContext();
|
|
@@ -5067,7 +5163,7 @@ function DataTable(props) {
|
|
|
5067
5163
|
: (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 })))));
|
|
5068
5164
|
}
|
|
5069
5165
|
|
|
5070
|
-
var css$m = {"root":"
|
|
5166
|
+
var css$m = {"root":"ocWz4n","title-wrapper":"QL-0F1","titleWrapper":"QL-0F1","title":"CpRE3C","text-wrapper":"NcPGx5","textWrapper":"NcPGx5","selection":"sh170n","postfix":"VP6TJr","selected":"tIkn4b"};
|
|
5071
5167
|
|
|
5072
5168
|
const FilterPanelItemToggler = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5073
5169
|
const togglerPickerOpened = (e) => {
|
|
@@ -5292,7 +5388,7 @@ function FilterRangeDatePickerBody(props) {
|
|
|
5292
5388
|
renderFooter()));
|
|
5293
5389
|
}
|
|
5294
5390
|
|
|
5295
|
-
var css$l = {"container":"
|
|
5391
|
+
var css$l = {"container":"X0AMzp"};
|
|
5296
5392
|
|
|
5297
5393
|
function FilterNumericBody({ min, max, step, ...props }) {
|
|
5298
5394
|
const numericInputProps = { min, max, step };
|
|
@@ -5604,7 +5700,7 @@ function FiltersToolbarImpl(props) {
|
|
|
5604
5700
|
}
|
|
5605
5701
|
const FiltersPanel = /* @__PURE__ */React__namespace.default.memo(FiltersToolbarImpl);
|
|
5606
5702
|
|
|
5607
|
-
var css$k = {"delete-button":"
|
|
5703
|
+
var css$k = {"delete-button":"W7sXHA","deleteButton":"W7sXHA","tab-button":"P8oOHY","tabButton":"P8oOHY","targetOpen":"PNUhuR"};
|
|
5608
5704
|
|
|
5609
5705
|
function PresetActionsDropdown(props) {
|
|
5610
5706
|
const { uuiNotifications } = uuiCore.useUuiContext();
|
|
@@ -5621,7 +5717,14 @@ function PresetActionsDropdown(props) {
|
|
|
5621
5717
|
await navigator.clipboard.writeText(link);
|
|
5622
5718
|
successNotificationHandler('Link copied!');
|
|
5623
5719
|
}, [props.activePresetId, props.preset, props.hasPresetChanged, props.getPresetLink, props.tableState]);
|
|
5624
|
-
const onCopyLink =
|
|
5720
|
+
const onCopyLink = React.useCallback(() => {
|
|
5721
|
+
if (props.onCopyLink) {
|
|
5722
|
+
props.onCopyLink(props.tableState);
|
|
5723
|
+
}
|
|
5724
|
+
else {
|
|
5725
|
+
copyUrlToClipboard();
|
|
5726
|
+
}
|
|
5727
|
+
}, [props.onCopyLink, copyUrlToClipboard]);
|
|
5625
5728
|
const saveInCurrent = React.useCallback(async (preset) => {
|
|
5626
5729
|
const newPreset = {
|
|
5627
5730
|
...preset,
|
|
@@ -5670,8 +5773,8 @@ function PresetActionsDropdown(props) {
|
|
|
5670
5773
|
React__namespace.default.createElement(DropdownMenuButton, { icon: settings.presetsPanel.icons.deleteIcon, caption: "Delete", cx: css$k.deleteButton, onClick: deleteHandler })))));
|
|
5671
5774
|
};
|
|
5672
5775
|
const renderTarget = React.useCallback((dropdownProps) => {
|
|
5673
|
-
return (React__namespace.default.createElement(IconButton, { cx: [css$k.tabButton, dropdownProps.isOpen && css$k.targetOpen], color: props.preset.id === props.activePresetId ? 'primary' : 'neutral', ...dropdownProps, icon: settings.presetsPanel.icons.menuIcon, size: settings.presetsPanel.sizes.dropdownTargetIconButton }));
|
|
5674
|
-
}, []);
|
|
5776
|
+
return (React__namespace.default.createElement(IconButton, { cx: [css$k.tabButton, dropdownProps.isOpen && css$k.targetOpen], color: props.preset.id === props.activePresetId ? 'primary' : 'neutral', ...dropdownProps, icon: settings.presetsPanel.icons.menuIcon, size: settings.presetsPanel.sizes.dropdownTargetIconButton, type: "span", rawProps: { role: 'button' } }));
|
|
5777
|
+
}, [props.preset.id, props.activePresetId]);
|
|
5675
5778
|
return (React__namespace.default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end", middleware: [react.offset(22)] }));
|
|
5676
5779
|
}
|
|
5677
5780
|
|
|
@@ -5680,7 +5783,7 @@ const UUI_PRESETS_PANEL_MORE_BUTTON = 'uui-presets-panel-more-button';
|
|
|
5680
5783
|
const UUI_PRESETS_PANEL_INPUT = 'uui-presets-panel-input';
|
|
5681
5784
|
const UUI_PRESETS_PANEL_PRESET = 'uui-presets-panel-preset';
|
|
5682
5785
|
|
|
5683
|
-
var css$j = {"preset-input-cell":"
|
|
5786
|
+
var css$j = {"preset-input-cell":"_6n1zob","presetInputCell":"_6n1zob","preset-input":"o0w7T6","presetInput":"o0w7T6"};
|
|
5684
5787
|
|
|
5685
5788
|
function PresetInput(props) {
|
|
5686
5789
|
const [presetCaption, setPresetCaption] = React.useState(props.preset?.name || '');
|
|
@@ -5707,7 +5810,7 @@ function PresetInput(props) {
|
|
|
5707
5810
|
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 })));
|
|
5708
5811
|
}
|
|
5709
5812
|
|
|
5710
|
-
var css$i = {"preset":"
|
|
5813
|
+
var css$i = {"preset":"I9ylmM","activePreset":"CUg-Rn"};
|
|
5711
5814
|
|
|
5712
5815
|
function Preset(props) {
|
|
5713
5816
|
const [isRenamePreset, setIsRenamePreset] = React.useState(false);
|
|
@@ -5732,7 +5835,7 @@ function Preset(props) {
|
|
|
5732
5835
|
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 }))));
|
|
5733
5836
|
}
|
|
5734
5837
|
|
|
5735
|
-
var css$h = {"divider":"
|
|
5838
|
+
var css$h = {"divider":"y6-BdY","dropdownDeleteIcon":"eS5KBC","presetsWrapper":"-jz3rU","addPresetContainer":"bftp08","dropContainer":"c7XitO"};
|
|
5736
5839
|
|
|
5737
5840
|
function PresetsPanel(props) {
|
|
5738
5841
|
const [isAddingPreset, setIsAddingPreset] = React.useState(false);
|
|
@@ -5781,9 +5884,9 @@ function PresetsPanel(props) {
|
|
|
5781
5884
|
React__namespace.default.createElement(uuiComponents.AdaptivePanel, { items: getPanelItems() }))));
|
|
5782
5885
|
}
|
|
5783
5886
|
|
|
5784
|
-
var css$g = {"root":"
|
|
5887
|
+
var css$g = {"root":"A68gN9"};
|
|
5785
5888
|
|
|
5786
|
-
var css$f = {"root":"
|
|
5889
|
+
var css$f = {"root":"_52ghc3","burger-content":"SAwG7j","burgerContent":"SAwG7j"};
|
|
5787
5890
|
|
|
5788
5891
|
var _path$3;
|
|
5789
5892
|
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); }
|
|
@@ -5826,7 +5929,7 @@ var SvgNavigationArrowDownOutline = function SvgNavigationArrowDownOutline(props
|
|
|
5826
5929
|
};
|
|
5827
5930
|
var ForwardRef$2 = /*#__PURE__*/React.forwardRef(SvgNavigationArrowDownOutline);
|
|
5828
5931
|
|
|
5829
|
-
var css$e = {"root":"
|
|
5932
|
+
var css$e = {"root":"_1szTwY","button-primary":"aMldJ7","buttonPrimary":"aMldJ7","button-secondary":"GroDEm","buttonSecondary":"GroDEm","hasIcon":"AMOpTD","dropdown":"_2gOJ1A"};
|
|
5830
5933
|
|
|
5831
5934
|
function applyBurgerButtonMods(props) {
|
|
5832
5935
|
return [
|
|
@@ -5851,13 +5954,13 @@ const BurgerButton = /* @__PURE__ */React__namespace.default.forwardRef((props,
|
|
|
5851
5954
|
}, dropdownIcon: ForwardRef$2 }));
|
|
5852
5955
|
});
|
|
5853
5956
|
|
|
5854
|
-
var css$d = {"search-input":"
|
|
5957
|
+
var css$d = {"search-input":"ABpOax","searchInput":"ABpOax"};
|
|
5855
5958
|
|
|
5856
5959
|
function BurgerSearch(props) {
|
|
5857
5960
|
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 }));
|
|
5858
5961
|
}
|
|
5859
5962
|
|
|
5860
|
-
var css$c = {"root":"
|
|
5963
|
+
var css$c = {"root":"G1H2rq","group-header":"k-3Nov","groupHeader":"k-3Nov","group-name":"_66g9Fv","groupName":"_66g9Fv","line":"dmEgrb"};
|
|
5861
5964
|
|
|
5862
5965
|
function BurgerGroupHeader(props) {
|
|
5863
5966
|
return (React__namespace.createElement("div", { className: cx__default.default(css$c.root, css$c.groupHeader, 'uui-burger-group-header') },
|
|
@@ -5865,7 +5968,7 @@ function BurgerGroupHeader(props) {
|
|
|
5865
5968
|
React__namespace.createElement("span", { className: css$c.groupName }, props.caption)));
|
|
5866
5969
|
}
|
|
5867
5970
|
|
|
5868
|
-
var css$b = {"root":"
|
|
5971
|
+
var css$b = {"root":"_4xnuDW","type-primary":"wi0yud","typePrimary":"wi0yud","type-secondary":"_9VRSxx","typeSecondary":"_9VRSxx"};
|
|
5869
5972
|
|
|
5870
5973
|
const MainMenuButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5871
5974
|
const { type, ...clickableProps } = props;
|
|
@@ -5893,7 +5996,7 @@ const MainMenuButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) =
|
|
|
5893
5996
|
props.isDropdown && (React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$P, flipY: props.isOpen }))));
|
|
5894
5997
|
});
|
|
5895
5998
|
|
|
5896
|
-
var css$a = {"dropdown-body":"
|
|
5999
|
+
var css$a = {"dropdown-body":"ajpjE9","dropdownBody":"ajpjE9"};
|
|
5897
6000
|
|
|
5898
6001
|
function MainMenuDropdown(props) {
|
|
5899
6002
|
const handleEscape = (e, onClose, isOpen) => {
|
|
@@ -5939,12 +6042,12 @@ var SvgNavigationGlobalMenuOutlineOutline = function SvgNavigationGlobalMenuOutl
|
|
|
5939
6042
|
};
|
|
5940
6043
|
var ForwardRef$1 = /*#__PURE__*/React.forwardRef(SvgNavigationGlobalMenuOutlineOutline);
|
|
5941
6044
|
|
|
5942
|
-
var css$9 = {"global-menu-btn":"
|
|
6045
|
+
var css$9 = {"global-menu-btn":"iPFHdf","globalMenuBtn":"iPFHdf","global-menu-icon":"g2ZAhi","globalMenuIcon":"g2ZAhi"};
|
|
5943
6046
|
|
|
5944
6047
|
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 },
|
|
5945
6048
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 36, icon: ForwardRef$1, cx: css$9.globalMenuIcon }))));
|
|
5946
6049
|
|
|
5947
|
-
var css$8 = {"container":"
|
|
6050
|
+
var css$8 = {"container":"_35QFDZ","open":"wIhGjR","folding-arrow":"_8yYwEa","foldingArrow":"_8yYwEa"};
|
|
5948
6051
|
|
|
5949
6052
|
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 },
|
|
5950
6053
|
React__namespace.createElement(uuiComponents.Avatar, { size: "36", img: props.avatarUrl }),
|
|
@@ -5952,15 +6055,15 @@ const MainMenuAvatar = /* @__PURE__ */React__namespace.forwardRef((props, ref) =
|
|
|
5952
6055
|
props.isDropdown && (React__namespace.createElement("div", null,
|
|
5953
6056
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, icon: ForwardRef$P, flipY: props.isOpen, cx: css$8.foldingArrow }))))));
|
|
5954
6057
|
|
|
5955
|
-
var css$7 = {"search-input":"
|
|
6058
|
+
var css$7 = {"search-input":"sIWjOH","searchInput":"sIWjOH"};
|
|
5956
6059
|
|
|
5957
6060
|
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 })) })));
|
|
5958
6061
|
|
|
5959
|
-
var css$6 = {"container":"
|
|
6062
|
+
var css$6 = {"container":"_6WmP2N"};
|
|
5960
6063
|
|
|
5961
6064
|
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 })));
|
|
5962
6065
|
|
|
5963
|
-
var css$5 = {"root":"
|
|
6066
|
+
var css$5 = {"root":"wE3yab"};
|
|
5964
6067
|
|
|
5965
6068
|
const Anchor = /* @__PURE__ */uuiCore.withMods(uuiComponents.Anchor, () => [css$5.root]);
|
|
5966
6069
|
|
|
@@ -6018,7 +6121,7 @@ var SvgFileCloudUploadFill = function SvgFileCloudUploadFill(props, ref) {
|
|
|
6018
6121
|
};
|
|
6019
6122
|
var ForwardRef = /*#__PURE__*/React.forwardRef(SvgFileCloudUploadFill);
|
|
6020
6123
|
|
|
6021
|
-
var css$4 = {"root":"
|
|
6124
|
+
var css$4 = {"root":"tgmZ6w","drop-start":"fxIV1h","dropStart":"fxIV1h","drop-over":"SAzEm3","dropOver":"SAzEm3","link":"lu1JIF","drop-area":"gtE0R6","dropArea":"gtE0R6","drop-caption":"oom5dl","dropCaption":"oom5dl","icon-blue":"luMPYq","iconBlue":"luMPYq"};
|
|
6022
6125
|
|
|
6023
6126
|
function DropSpot(props) {
|
|
6024
6127
|
const getInfoText = typeof props.infoText === 'string'
|
|
@@ -6036,7 +6139,7 @@ function DropSpot(props) {
|
|
|
6036
6139
|
return React__namespace.createElement(uuiComponents.DropSpot, { render: renderAttachmentArea, onFilesDropped: props.onUploadFiles });
|
|
6037
6140
|
}
|
|
6038
6141
|
|
|
6039
|
-
var css$3 = {"root":"
|
|
6142
|
+
var css$3 = {"root":"AyyvPx"};
|
|
6040
6143
|
|
|
6041
6144
|
const SvgCircleProgress = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
6042
6145
|
const outsetRadius = props.size / 2 - 1;
|
|
@@ -6047,7 +6150,7 @@ const SvgCircleProgress = /* @__PURE__ */React__namespace.forwardRef((props, ref
|
|
|
6047
6150
|
React__namespace.createElement("circle", { strokeWidth: 1, fill: "transparent", r: outsetRadius, cx: props.size / 2, cy: props.size / 2 })));
|
|
6048
6151
|
});
|
|
6049
6152
|
|
|
6050
|
-
var css$2 = {"root":"
|
|
6153
|
+
var css$2 = {"root":"_55jCqB","file-name":"QN4YvS","fileName":"QN4YvS","default-color":"qwaOM1","defaultColor":"qwaOM1","doc-color":"RF09fF","docColor":"RF09fF","xls-color":"KANFsF","xlsColor":"KANFsF","pdf-color":"_82A2yr","pdfColor":"_82A2yr","movie-color":"y8sXYZ","movieColor":"y8sXYZ","img-color":"OZ78ff","imgColor":"OZ78ff","mov-color":"tSn-s1","movColor":"tSn-s1","error-block":"UfE6rs","errorBlock":"UfE6rs","icons-block":"BgkkFX","iconsBlock":"BgkkFX"};
|
|
6051
6154
|
|
|
6052
6155
|
const FileCard = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
6053
6156
|
const [isLoadingShow, setIsLoadingShow] = React__namespace.useState(true);
|
|
@@ -6167,7 +6270,7 @@ const getErrorPageConfig = () => ({
|
|
|
6167
6270
|
},
|
|
6168
6271
|
});
|
|
6169
6272
|
|
|
6170
|
-
var css$1 = {"container":"
|
|
6273
|
+
var css$1 = {"container":"VGQyoz"};
|
|
6171
6274
|
|
|
6172
6275
|
const ErrorPage = (props) => {
|
|
6173
6276
|
const isMobileScreen = uuiCore.isMobile();
|
|
@@ -6179,10 +6282,10 @@ const ErrorPage = (props) => {
|
|
|
6179
6282
|
props?.supportLink && React__namespace.default.createElement("div", { className: "uui-error-support-link" }, props?.supportLink))));
|
|
6180
6283
|
};
|
|
6181
6284
|
|
|
6182
|
-
var css = {"recovery-spinner":"
|
|
6285
|
+
var css = {"recovery-spinner":"SaXoWn","recoverySpinner":"SaXoWn","recovery-message":"w-sJ7M","recoveryMessage":"w-sJ7M","modal-blocker":"_7ki2Ln","modalBlocker":"_7ki2Ln","modalFadeIn":"ikD6VL"};
|
|
6183
6286
|
|
|
6184
6287
|
function ErrorHandler(props) {
|
|
6185
|
-
const { uuiNotifications, uuiModals, uuiApi } = uuiCore.useUuiContext();
|
|
6288
|
+
const { uuiNotifications, uuiModals, uuiApi, uuiLayout } = uuiCore.useUuiContext();
|
|
6186
6289
|
const { errorType, errorInfo } = uuiCore.useUuiError({
|
|
6187
6290
|
getErrorInfo: props.getErrorInfo,
|
|
6188
6291
|
options: { errorConfig: getErrorPageConfig(), recoveryConfig: getRecoveryMessageConfig() },
|
|
@@ -6202,7 +6305,7 @@ function ErrorHandler(props) {
|
|
|
6202
6305
|
};
|
|
6203
6306
|
const renderRecoveryBlocker = (errorInform) => {
|
|
6204
6307
|
const { title, subtitle } = errorInform;
|
|
6205
|
-
return (React__namespace.default.createElement(ModalBlocker, { key: "recovery-blocker", cx: css.modalBlocker, isActive: true, zIndex:
|
|
6308
|
+
return (React__namespace.default.createElement(ModalBlocker, { key: "recovery-blocker", cx: css.modalBlocker, isActive: true, zIndex: uuiLayout.getTopOverlayZIndex(), success: () => { }, abort: () => { } },
|
|
6206
6309
|
React__namespace.default.createElement(ModalWindow, null,
|
|
6207
6310
|
React__namespace.default.createElement(ModalHeader, { borderBottom: true, title: title }),
|
|
6208
6311
|
React__namespace.default.createElement(Spinner, { cx: css.recoverySpinner }),
|