@epam/uui 6.5.0-alpha.0 → 6.5.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/styles/clickable.scss +26 -26
- package/assets/styles/dnd.scss +9 -9
- package/assets/styles/effects.scss +6 -6
- package/assets/styles/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.esm.js
CHANGED
|
@@ -156,7 +156,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
156
156
|
xmlns: "http://www.w3.org/2000/svg",
|
|
157
157
|
ref: ref
|
|
158
158
|
}, props), /*#__PURE__*/React.createElement("g", {
|
|
159
|
-
clipPath: "url(#
|
|
159
|
+
clipPath: "url(#9lohbcgwff4t0z8ao_a)"
|
|
160
160
|
}, _path$I || (_path$I = /*#__PURE__*/React.createElement("path", {
|
|
161
161
|
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",
|
|
162
162
|
fill: "#F5F6FA"
|
|
@@ -177,7 +177,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
177
177
|
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",
|
|
178
178
|
fill: "#1D1E26"
|
|
179
179
|
})), /*#__PURE__*/React.createElement("mask", {
|
|
180
|
-
id: "
|
|
180
|
+
id: "9lohbc5wkdxvlva3h_b",
|
|
181
181
|
style: {
|
|
182
182
|
maskType: "alpha"
|
|
183
183
|
},
|
|
@@ -190,7 +190,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
190
190
|
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",
|
|
191
191
|
fill: "#9BDEFF"
|
|
192
192
|
}))), _g || (_g = /*#__PURE__*/React.createElement("g", {
|
|
193
|
-
mask: "url(#
|
|
193
|
+
mask: "url(#9lohbc5wkdxvlva3h_b)",
|
|
194
194
|
fillRule: "evenodd",
|
|
195
195
|
clipRule: "evenodd"
|
|
196
196
|
}, /*#__PURE__*/React.createElement("path", {
|
|
@@ -276,7 +276,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
276
276
|
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",
|
|
277
277
|
fill: "#fff"
|
|
278
278
|
}))), _defs || (_defs = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
279
|
-
id: "
|
|
279
|
+
id: "9lohbcgwff4t0z8ao_a"
|
|
280
280
|
}, /*#__PURE__*/React.createElement("path", {
|
|
281
281
|
fill: "#fff",
|
|
282
282
|
transform: "translate(.552)",
|
|
@@ -927,14 +927,14 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
|
927
927
|
};
|
|
928
928
|
var ForwardRef$4 = /*#__PURE__*/forwardRef(SvgSearchWithBackground);
|
|
929
929
|
|
|
930
|
-
var css$
|
|
930
|
+
var css$1x = {"root":"-bpbAB","uui-spinner":"_1fFqh2","uuiSpinner":"_1fFqh2"};
|
|
931
931
|
|
|
932
932
|
function applySpinnerMods() {
|
|
933
|
-
return [css$
|
|
933
|
+
return [css$1x.root, 'uui-spinner'];
|
|
934
934
|
}
|
|
935
935
|
const Spinner = /* @__PURE__ */withMods(Spinner$1, applySpinnerMods);
|
|
936
936
|
|
|
937
|
-
var css$
|
|
937
|
+
var css$1w = {"root":"CZRNCb","loading-word":"FNiUWH","loadingWord":"FNiUWH","animated-loading":"_2PrDY8","animatedLoading":"_2PrDY8","skeleton_loading":"maW48T","skeletonLoading":"maW48T"};
|
|
938
938
|
|
|
939
939
|
const TextPlaceholder = (props) => {
|
|
940
940
|
const pattern = ' ';
|
|
@@ -946,20 +946,20 @@ const TextPlaceholder = (props) => {
|
|
|
946
946
|
}
|
|
947
947
|
return words;
|
|
948
948
|
}, [props.wordsCount]);
|
|
949
|
-
return (React.createElement("div", { "aria-busy": true, className: cx(css$
|
|
950
|
-
props.cx, css$
|
|
949
|
+
return (React.createElement("div", { "aria-busy": true, className: cx(css$1w.root, 'uui-text-placeholder'), ...props.rawProps }, text.map((it, index) => (React.createElement("span", { key: index, className: cx([
|
|
950
|
+
props.cx, css$1w.loadingWord, !props.isNotAnimated && css$1w.animatedLoading,
|
|
951
951
|
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
952
952
|
};
|
|
953
953
|
|
|
954
|
-
var css$
|
|
954
|
+
var css$1v = {"root":"Wg-zMe","line-height":"WRAnUW","lineHeight":"WRAnUW","font-size":"XIbWqO","fontSize":"XIbWqO"};
|
|
955
955
|
|
|
956
956
|
function applyTextMods(mods) {
|
|
957
957
|
return [
|
|
958
|
-
css$
|
|
958
|
+
css$1v.root,
|
|
959
959
|
'uui-text',
|
|
960
960
|
`uui-size-${mods.size || settings.text.sizes.default}`,
|
|
961
|
-
(mods.size !== 'none' || mods.lineHeight) && css$
|
|
962
|
-
(mods.size !== 'none' || mods.fontSize) && css$
|
|
961
|
+
(mods.size !== 'none' || mods.lineHeight) && css$1v.lineHeight,
|
|
962
|
+
(mods.size !== 'none' || mods.fontSize) && css$1v.fontSize,
|
|
963
963
|
`uui-color-${mods.color || 'primary'}`,
|
|
964
964
|
`uui-font-weight-${mods.fontWeight || '400'}`,
|
|
965
965
|
`uui-font-style-${mods.fontStyle || 'normal'}`,
|
|
@@ -978,9 +978,9 @@ const Text = /* @__PURE__ */withMods(uuiComponents.Text, applyTextMods, (props)
|
|
|
978
978
|
};
|
|
979
979
|
});
|
|
980
980
|
|
|
981
|
-
var css$
|
|
981
|
+
var css$1u = {"root":"PkVtUU"};
|
|
982
982
|
|
|
983
|
-
const Blocker = /* @__PURE__ */withMods(Blocker$1, () => [css$
|
|
983
|
+
const Blocker = /* @__PURE__ */withMods(Blocker$1, () => [css$1u.root], () => ({ renderSpinner: settings.blocker.renderSpinner }));
|
|
984
984
|
|
|
985
985
|
const accordionSettings = {
|
|
986
986
|
icons: {
|
|
@@ -1349,6 +1349,7 @@ const rangeDatePickerSettings = {
|
|
|
1349
1349
|
sizes: {
|
|
1350
1350
|
default: '36',
|
|
1351
1351
|
preset: '24',
|
|
1352
|
+
mobilePreset: '30',
|
|
1352
1353
|
},
|
|
1353
1354
|
};
|
|
1354
1355
|
const ratingSettings = {
|
|
@@ -1483,11 +1484,11 @@ const settings = {
|
|
|
1483
1484
|
textInput: textInputSettings,
|
|
1484
1485
|
};
|
|
1485
1486
|
|
|
1486
|
-
var css$
|
|
1487
|
+
var css$1t = {"root":"UuLjjr"};
|
|
1487
1488
|
|
|
1488
1489
|
function applyButtonMods(mods) {
|
|
1489
1490
|
return [
|
|
1490
|
-
css$
|
|
1491
|
+
css$1t.root,
|
|
1491
1492
|
'uui-button',
|
|
1492
1493
|
`uui-fill-${mods.fill || 'solid'}`,
|
|
1493
1494
|
`uui-color-${mods.color || 'primary'}`,
|
|
@@ -1501,10 +1502,10 @@ const Button = /* @__PURE__ */withMods(uuiComponents.Button, applyButtonMods, ()
|
|
|
1501
1502
|
};
|
|
1502
1503
|
});
|
|
1503
1504
|
|
|
1504
|
-
var css$
|
|
1505
|
+
var css$1s = {"root":"gcJCb8"};
|
|
1505
1506
|
|
|
1506
1507
|
function applyIconButtonMods(props) {
|
|
1507
|
-
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$
|
|
1508
|
+
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$1s.root];
|
|
1508
1509
|
}
|
|
1509
1510
|
const IconButton = /* @__PURE__ */withMods(uuiComponents.IconButton, applyIconButtonMods, (props) => {
|
|
1510
1511
|
const isDeprecated = ['info', 'success', 'error', 'warning'].includes(props.color);
|
|
@@ -1538,7 +1539,7 @@ function getIconClass(props) {
|
|
|
1538
1539
|
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'];
|
|
1539
1540
|
}
|
|
1540
1541
|
|
|
1541
|
-
var css$
|
|
1542
|
+
var css$1r = {"root":"_7Tdu50"};
|
|
1542
1543
|
|
|
1543
1544
|
const DEFAULT_COLOR = 'primary';
|
|
1544
1545
|
const LinkButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
@@ -1553,7 +1554,7 @@ const LinkButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1553
1554
|
}
|
|
1554
1555
|
const rootStyles = [
|
|
1555
1556
|
'uui-link_button',
|
|
1556
|
-
css$
|
|
1557
|
+
css$1r.root,
|
|
1557
1558
|
`uui-size-${props.size || settings.linkButton.sizes.default}`,
|
|
1558
1559
|
...getIconClass(props),
|
|
1559
1560
|
`uui-color-${props.color || DEFAULT_COLOR}`,
|
|
@@ -1568,11 +1569,11 @@ const LinkButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1568
1569
|
props.isDropdown && (React.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
1569
1570
|
});
|
|
1570
1571
|
|
|
1571
|
-
var css$
|
|
1572
|
+
var css$1q = {"root":"Q89OqQ"};
|
|
1572
1573
|
|
|
1573
1574
|
const CountIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
1574
1575
|
return (React__default.createElement("div", { ref: ref, className: cx([
|
|
1575
|
-
css$
|
|
1576
|
+
css$1q.root,
|
|
1576
1577
|
'uui-count_indicator',
|
|
1577
1578
|
`uui-size-${props.size || settings.countIndicator.sizes.default}`,
|
|
1578
1579
|
props.color && `uui-color-${props.color}`,
|
|
@@ -1580,7 +1581,7 @@ const CountIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
|
1580
1581
|
]) }, props.caption));
|
|
1581
1582
|
});
|
|
1582
1583
|
|
|
1583
|
-
var css$
|
|
1584
|
+
var css$1p = {"root":"uBdryQ","withNotify":"KbbzSx"};
|
|
1584
1585
|
|
|
1585
1586
|
const TabButton = /* @__PURE__ */React__default.forwardRef((props, refExternal) => {
|
|
1586
1587
|
const refLocal = React__default.useRef(null);
|
|
@@ -1592,7 +1593,7 @@ const TabButton = /* @__PURE__ */React__default.forwardRef((props, refExternal)
|
|
|
1592
1593
|
});
|
|
1593
1594
|
const styles = [
|
|
1594
1595
|
isActive && uuiMod.active,
|
|
1595
|
-
css$
|
|
1596
|
+
css$1p.root,
|
|
1596
1597
|
'uui-tab-button',
|
|
1597
1598
|
`uui-size-${props.size || settings.tabButton.sizes.default}`,
|
|
1598
1599
|
...getIconClass(props),
|
|
@@ -1620,26 +1621,26 @@ const TabButton = /* @__PURE__ */React__default.forwardRef((props, refExternal)
|
|
|
1620
1621
|
props.icon && props.iconPosition !== 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1621
1622
|
(props.caption || props.withNotify) && (React__default.createElement("div", { className: cx$1(uuiElement.caption) },
|
|
1622
1623
|
props.caption,
|
|
1623
|
-
props.withNotify && React__default.createElement("div", { className: css$
|
|
1624
|
+
props.withNotify && React__default.createElement("div", { className: css$1p.withNotify }))),
|
|
1624
1625
|
props.icon && props.iconPosition === 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1625
1626
|
props.count !== undefined && props.count !== null && (React__default.createElement(CountIndicator, { color: "neutral", size: settings.tabButton.sizes.countIndicatorMap[props.size || settings.tabButton.sizes.default], caption: props.count })),
|
|
1626
1627
|
props.isDropdown && (React__default.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
1627
1628
|
props.onClear && !props.isDisabled && (React__default.createElement(IconContainer, { cx: uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
1628
1629
|
});
|
|
1629
1630
|
|
|
1630
|
-
var css$
|
|
1631
|
+
var css$1o = {"root":"IFI60C","noLeftPadding":"H4Yrjh","foldingArea":"rFYoXz","onlyFoldable":"_9-8Wqv","captionWrapper":"_2lbvoy","withNotify":"XxsIYg"};
|
|
1631
1632
|
|
|
1632
|
-
var css$
|
|
1633
|
+
var css$1n = {"root":"aHlmL-"};
|
|
1633
1634
|
|
|
1634
|
-
const AvatarStack = /* @__PURE__ */withMods(AvatarStack$1, () => [css$
|
|
1635
|
+
const AvatarStack = /* @__PURE__ */withMods(AvatarStack$1, () => [css$1n.root]);
|
|
1635
1636
|
|
|
1636
|
-
var css$
|
|
1637
|
+
var css$1m = {"root":"_5-9PwS"};
|
|
1637
1638
|
|
|
1638
1639
|
const DEFAULT_FILL = 'solid';
|
|
1639
1640
|
function applyBadgeMods(mods) {
|
|
1640
1641
|
return [
|
|
1641
1642
|
'uui-badge',
|
|
1642
|
-
css$
|
|
1643
|
+
css$1m.root,
|
|
1643
1644
|
`uui-size-${mods.size || settings.badge.sizes.default}`,
|
|
1644
1645
|
`uui-fill-${mods.fill || DEFAULT_FILL}`,
|
|
1645
1646
|
`uui-color-${mods.color || 'info'}`,
|
|
@@ -1661,11 +1662,11 @@ const Badge = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
1661
1662
|
props.isDropdown && (React__default.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
1662
1663
|
});
|
|
1663
1664
|
|
|
1664
|
-
var css$
|
|
1665
|
+
var css$1l = {"root":"rZC4Oc"};
|
|
1665
1666
|
|
|
1666
1667
|
function applyTagMods(props) {
|
|
1667
1668
|
return [
|
|
1668
|
-
css$
|
|
1669
|
+
css$1l.root,
|
|
1669
1670
|
`uui-size-${props.size || settings.tag.sizes.default}`,
|
|
1670
1671
|
`uui-color-${props.color || 'neutral'}`,
|
|
1671
1672
|
`uui-fill-${props.fill || 'solid'}`,
|
|
@@ -1694,11 +1695,11 @@ const Tag = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
1694
1695
|
} }))));
|
|
1695
1696
|
});
|
|
1696
1697
|
|
|
1697
|
-
var css$
|
|
1698
|
+
var css$1k = {"root":"ef4x8T","page":"e8G64P","spacer":"KMyAzQ","mode-ghost":"u-9cl0","modeGhost":"u-9cl0"};
|
|
1698
1699
|
|
|
1699
1700
|
function Paginator(props) {
|
|
1700
1701
|
const renderPaginator = (params) => (React__default.createElement("nav", { role: "navigation", className: cx('uui-paginator', `uui-size-${props.size || settings.paginator.sizes.default}`), ...params.rawProps },
|
|
1701
|
-
React__default.createElement("ul", { className: css$
|
|
1702
|
+
React__default.createElement("ul", { className: css$1k.root },
|
|
1702
1703
|
React__default.createElement("li", null,
|
|
1703
1704
|
React__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: {
|
|
1704
1705
|
'aria-label': 'Previous page',
|
|
@@ -1706,11 +1707,11 @@ function Paginator(props) {
|
|
|
1706
1707
|
params.pages.map((page, index) => {
|
|
1707
1708
|
if (page.type === 'spacer') {
|
|
1708
1709
|
return (React__default.createElement("li", { key: `${index}_spacer` },
|
|
1709
|
-
React__default.createElement(Button, { cx: cx(css$
|
|
1710
|
+
React__default.createElement(Button, { cx: cx(css$1k.spacer, css$1k.page), size: props.size || settings.paginator.sizes.default, caption: "...", fill: "ghost", color: "secondary", tabIndex: -1, isDisabled: props.isDisabled })));
|
|
1710
1711
|
}
|
|
1711
1712
|
else {
|
|
1712
1713
|
return (React__default.createElement("li", { key: page.pageNumber },
|
|
1713
|
-
React__default.createElement(Button, { cx: cx(css$
|
|
1714
|
+
React__default.createElement(Button, { cx: cx(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 })));
|
|
1714
1715
|
}
|
|
1715
1716
|
}),
|
|
1716
1717
|
React__default.createElement("li", null,
|
|
@@ -1720,40 +1721,40 @@ function Paginator(props) {
|
|
|
1720
1721
|
return React__default.createElement(Paginator$1, { ...props, render: renderPaginator });
|
|
1721
1722
|
}
|
|
1722
1723
|
|
|
1723
|
-
var css$
|
|
1724
|
+
var css$1j = {"root":"_51cIS2","progress-bar":"BEZwen","progressBar":"BEZwen","progressBar-indeterminate":"dWYzJ7","progressBarIndeterminate":"dWYzJ7","size-12":"_5tIQz3","size12":"_5tIQz3","size-18":"_104FVJ","size18":"_104FVJ","size-24":"cSKhDN","size24":"cSKhDN"};
|
|
1724
1725
|
|
|
1725
1726
|
const IndeterminateBar = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1726
|
-
return (React.createElement("div", { ref: ref, className: cx('uui-indeterminate_bar', props.cx, css$
|
|
1727
|
-
React.createElement("div", { className: cx(css$
|
|
1727
|
+
return (React.createElement("div", { ref: ref, className: cx('uui-indeterminate_bar', props.cx, css$1j.root, css$1j[`size-${props.size || 12}`]) },
|
|
1728
|
+
React.createElement("div", { className: cx(css$1j.progressBar) })));
|
|
1728
1729
|
});
|
|
1729
1730
|
|
|
1730
|
-
var css$
|
|
1731
|
+
var css$1i = {"root":"-C6R9X","striped":"lAjv1c","animate-stripes":"juBAH-","animateStripes":"juBAH-","size-12":"KmEX7D","size12":"KmEX7D","size-18":"hVqKsC","size18":"hVqKsC","size-24":"mbC4B-","size24":"mbC4B-"};
|
|
1731
1732
|
|
|
1732
1733
|
const DEFAULT_SIZE = '12';
|
|
1733
1734
|
function applyProgressBarMods(mods) {
|
|
1734
1735
|
const size = mods.size || DEFAULT_SIZE;
|
|
1735
1736
|
return [
|
|
1736
|
-
css$
|
|
1737
|
-
css$
|
|
1738
|
-
mods.striped && css$
|
|
1737
|
+
css$1i.root,
|
|
1738
|
+
css$1i[`size-${size}`],
|
|
1739
|
+
mods.striped && css$1i.striped,
|
|
1739
1740
|
];
|
|
1740
1741
|
}
|
|
1741
1742
|
const ProgressBar = /* @__PURE__ */withMods(uuiComponents.ProgressBar, applyProgressBarMods, (props) => ({
|
|
1742
1743
|
hideLabel: props.hideLabel || props.striped,
|
|
1743
1744
|
}));
|
|
1744
1745
|
|
|
1745
|
-
var css$
|
|
1746
|
+
var css$1h = {"root":"KeXYLM"};
|
|
1746
1747
|
|
|
1747
1748
|
const IndicatorBar = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1748
1749
|
const { progress } = props;
|
|
1749
|
-
return progress || progress === 0 ? (React.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx(css$
|
|
1750
|
+
return progress || progress === 0 ? (React.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx(css$1h.root, props.cx), hideLabel: true })) : (React.createElement(IndeterminateBar, { ref: ref, cx: cx(css$1h.root, props.cx) }));
|
|
1750
1751
|
});
|
|
1751
1752
|
|
|
1752
|
-
var css$
|
|
1753
|
+
var css$1g = {"root":"vc48LB"};
|
|
1753
1754
|
|
|
1754
1755
|
const StatusIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
1755
1756
|
return (React__default.createElement("div", { ref: ref, className: cx([
|
|
1756
|
-
css$
|
|
1757
|
+
css$1g.root,
|
|
1757
1758
|
`uui-size-${props.size || settings.statusIndicator.sizes.default}`,
|
|
1758
1759
|
'uui-status_indicator',
|
|
1759
1760
|
`uui-color-${props.color || 'neutral'}`,
|
|
@@ -1764,11 +1765,11 @@ const StatusIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
|
1764
1765
|
React__default.createElement("p", { className: "uui-status_indicator-caption" }, props.caption)));
|
|
1765
1766
|
});
|
|
1766
1767
|
|
|
1767
|
-
var css$
|
|
1768
|
+
var css$1f = {"root":"TroD4d"};
|
|
1768
1769
|
|
|
1769
1770
|
function applyCheckboxMods(mods) {
|
|
1770
1771
|
return [
|
|
1771
|
-
css$
|
|
1772
|
+
css$1f.root,
|
|
1772
1773
|
`uui-size-${mods.size || settings.checkbox.sizes.default}`,
|
|
1773
1774
|
'uui-control-mode-' + (mods.mode || 'form'),
|
|
1774
1775
|
'uui-color-primary',
|
|
@@ -1782,11 +1783,11 @@ const applyUUICheckboxProps = (props) => {
|
|
|
1782
1783
|
};
|
|
1783
1784
|
const Checkbox = /* @__PURE__ */withMods(uuiComponents.Checkbox, applyCheckboxMods, applyUUICheckboxProps);
|
|
1784
1785
|
|
|
1785
|
-
var css$
|
|
1786
|
+
var css$1e = {"root":"CSrWsT"};
|
|
1786
1787
|
|
|
1787
1788
|
function applyRadioInputMods(mods) {
|
|
1788
1789
|
return [
|
|
1789
|
-
css$
|
|
1790
|
+
css$1e.root,
|
|
1790
1791
|
`uui-size-${mods.size || settings.radioInput.sizes.default}`,
|
|
1791
1792
|
'uui-radio-input-container',
|
|
1792
1793
|
'uui-color-primary',
|
|
@@ -1794,11 +1795,11 @@ function applyRadioInputMods(mods) {
|
|
|
1794
1795
|
}
|
|
1795
1796
|
const RadioInput = /* @__PURE__ */withMods(RadioInput$1, applyRadioInputMods, (props) => ({ icon: props.icon ? props.icon : settings.radioInput.icons.dotIcon }));
|
|
1796
1797
|
|
|
1797
|
-
var css$
|
|
1798
|
+
var css$1d = {"root":"zAvEco"};
|
|
1798
1799
|
|
|
1799
1800
|
function applySwitchMods(mods) {
|
|
1800
1801
|
return [
|
|
1801
|
-
css$
|
|
1802
|
+
css$1d.root,
|
|
1802
1803
|
`uui-size-${mods.size || settings.switch.sizes.default}`,
|
|
1803
1804
|
'uui-color-primary',
|
|
1804
1805
|
];
|
|
@@ -1818,7 +1819,7 @@ var EditMode;
|
|
|
1818
1819
|
EditMode["INLINE"] = "inline";
|
|
1819
1820
|
})(EditMode || (EditMode = {}));
|
|
1820
1821
|
|
|
1821
|
-
var textInputCss = {"root":"
|
|
1822
|
+
var textInputCss = {"root":"fr3QWE"};
|
|
1822
1823
|
|
|
1823
1824
|
const DEFAULT_MODE$3 = EditMode.FORM;
|
|
1824
1825
|
function applyTextInputMods(mods) {
|
|
@@ -1843,9 +1844,9 @@ const SearchInput = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
1843
1844
|
} }));
|
|
1844
1845
|
});
|
|
1845
1846
|
|
|
1846
|
-
var css$
|
|
1847
|
+
var css$1c = {"root":"O24FEl"};
|
|
1847
1848
|
|
|
1848
|
-
const ControlGroup = /* @__PURE__ */withMods(ControlGroup$1, () => [css$
|
|
1849
|
+
const ControlGroup = /* @__PURE__ */withMods(ControlGroup$1, () => [css$1c.root, 'uui-control-group']);
|
|
1849
1850
|
|
|
1850
1851
|
function MultiSwitchComponent(props, ref) {
|
|
1851
1852
|
return (React.createElement(ControlGroup, { ref: ref, rawProps: {
|
|
@@ -1859,13 +1860,13 @@ function MultiSwitchComponent(props, ref) {
|
|
|
1859
1860
|
}
|
|
1860
1861
|
const MultiSwitch = /* @__PURE__ */React.forwardRef(MultiSwitchComponent);
|
|
1861
1862
|
|
|
1862
|
-
var css$
|
|
1863
|
+
var css$1b = {"root":"L4QTq6"};
|
|
1863
1864
|
|
|
1864
1865
|
const DEFAULT_MODE$2 = EditMode.FORM;
|
|
1865
1866
|
function applyNumericInputMods(mods) {
|
|
1866
1867
|
return [
|
|
1867
1868
|
textInputCss.root,
|
|
1868
|
-
css$
|
|
1869
|
+
css$1b.root,
|
|
1869
1870
|
`uui-size-${mods.size || settings.numericInput.sizes.default}`,
|
|
1870
1871
|
'uui-control-mode-' + (mods.mode || DEFAULT_MODE$2),
|
|
1871
1872
|
];
|
|
@@ -1879,12 +1880,12 @@ const NumericInput = /* @__PURE__ */withMods(NumericInput$1, applyNumericInputMo
|
|
|
1879
1880
|
};
|
|
1880
1881
|
});
|
|
1881
1882
|
|
|
1882
|
-
var css$
|
|
1883
|
+
var css$1a = {"root":"nDPS5n"};
|
|
1883
1884
|
|
|
1884
1885
|
const DEFAULT_MODE$1 = EditMode.FORM;
|
|
1885
1886
|
function applyTextAreaMods(mods) {
|
|
1886
1887
|
return [
|
|
1887
|
-
css$
|
|
1888
|
+
css$1a.root,
|
|
1888
1889
|
'uui-textarea',
|
|
1889
1890
|
'uui-size-' + (mods.size || settings.textArea.sizes.default),
|
|
1890
1891
|
'uui-control-mode-' + (mods.mode || DEFAULT_MODE$1),
|
|
@@ -1920,18 +1921,18 @@ function TREE_SHAKEABLE_INIT$1() {
|
|
|
1920
1921
|
};
|
|
1921
1922
|
}
|
|
1922
1923
|
|
|
1923
|
-
var css$
|
|
1924
|
+
var css$19 = {"root":"_41H06T"};
|
|
1924
1925
|
|
|
1925
1926
|
function applyDropdownContainerMods(mods) {
|
|
1926
1927
|
return [
|
|
1927
|
-
css$
|
|
1928
|
+
css$19.root,
|
|
1928
1929
|
mods.vPadding && `vPadding-${mods.vPadding}`,
|
|
1929
1930
|
mods.padding && `padding-${mods.padding}`,
|
|
1930
1931
|
];
|
|
1931
1932
|
}
|
|
1932
1933
|
const DropdownContainer = /* @__PURE__ */withMods(uuiComponents.DropdownContainer, applyDropdownContainerMods);
|
|
1933
1934
|
|
|
1934
|
-
var css$
|
|
1935
|
+
var css$18 = {"root":"vr2yFE","timepicker-input":"msulGW","timepickerInput":"msulGW","ltr-always":"a1AWX8","ltrAlways":"a1AWX8"};
|
|
1935
1936
|
|
|
1936
1937
|
const uuiTimePicker = {
|
|
1937
1938
|
container: 'uui-timepicker-container',
|
|
@@ -1970,8 +1971,8 @@ function TimePickerBody(props) {
|
|
|
1970
1971
|
const minutesToSubtract = value.minute() % minutesStep === 0 ? minutesStep : value.minute() % minutesStep;
|
|
1971
1972
|
onMinutesChange(value.subtract(minutesToSubtract, 'm').minute());
|
|
1972
1973
|
};
|
|
1973
|
-
return (React.createElement("div", { className: cx$1(css$
|
|
1974
|
-
React.createElement("div", { className: css$
|
|
1974
|
+
return (React.createElement("div", { className: cx$1(css$18.root, uuiTimePicker.container, props.cx), ref: props.forwardedRef, ...props.rawProps },
|
|
1975
|
+
React.createElement("div", { className: css$18.ltrAlways },
|
|
1975
1976
|
React.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
1976
1977
|
React.createElement(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()) }),
|
|
1977
1978
|
React.createElement(NumericInput$1, { cx: uuiTimePicker.input, onValueChange: onHoursChange, value: +(uuiDayjs.dayjs()
|
|
@@ -2131,7 +2132,7 @@ function TimePickerComponent(props, ref) {
|
|
|
2131
2132
|
}
|
|
2132
2133
|
};
|
|
2133
2134
|
const renderInput = (inputProps) => {
|
|
2134
|
-
return (React__default.createElement(TextInput, { ...inputProps, size: props.size, isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, cx: [css$
|
|
2135
|
+
return (React__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) => {
|
|
2135
2136
|
if (!node)
|
|
2136
2137
|
return;
|
|
2137
2138
|
targetRef.current = node;
|
|
@@ -2152,37 +2153,37 @@ function TimePickerComponent(props, ref) {
|
|
|
2152
2153
|
}
|
|
2153
2154
|
const TimePicker = /* @__PURE__ */React__default.forwardRef(TimePickerComponent);
|
|
2154
2155
|
|
|
2155
|
-
var css$
|
|
2156
|
+
var css$17 = {"root":"_0FDPSo"};
|
|
2156
2157
|
|
|
2157
2158
|
function applyInputAddonMods() {
|
|
2158
2159
|
return [
|
|
2159
|
-
css$
|
|
2160
|
+
css$17.root,
|
|
2160
2161
|
];
|
|
2161
2162
|
}
|
|
2162
2163
|
const InputAddon = /* @__PURE__ */withMods(InputAddon$1, applyInputAddonMods);
|
|
2163
2164
|
|
|
2164
|
-
var css$
|
|
2165
|
+
var css$16 = {"root":"rGRIAm"};
|
|
2165
2166
|
|
|
2166
2167
|
function applySliderMods() {
|
|
2167
|
-
return [css$
|
|
2168
|
+
return [css$16.root, 'uui-color-neutral'];
|
|
2168
2169
|
}
|
|
2169
2170
|
const Slider = /* @__PURE__ */withMods(Slider$1, applySliderMods);
|
|
2170
2171
|
|
|
2171
|
-
var css$
|
|
2172
|
+
var css$15 = {"root":"_0oMzzo"};
|
|
2172
2173
|
|
|
2173
2174
|
function applyTooltipMods(mods) {
|
|
2174
2175
|
return [
|
|
2175
|
-
css$
|
|
2176
|
+
css$15.root,
|
|
2176
2177
|
`uui-color-${mods.color || 'inverted'}`,
|
|
2177
2178
|
];
|
|
2178
2179
|
}
|
|
2179
2180
|
const Tooltip = /* @__PURE__ */withMods(uuiComponents.Tooltip, applyTooltipMods);
|
|
2180
2181
|
|
|
2181
|
-
var css$
|
|
2182
|
+
var css$14 = {"root":"rhT47s","tooltip":"hWQcNY"};
|
|
2182
2183
|
|
|
2183
2184
|
function applyRatingMods(mods) {
|
|
2184
2185
|
return [
|
|
2185
|
-
css$
|
|
2186
|
+
css$14.root,
|
|
2186
2187
|
`uui-size-${mods.size || settings.rating.sizes.default}`,
|
|
2187
2188
|
];
|
|
2188
2189
|
}
|
|
@@ -2192,7 +2193,7 @@ const Rating = /* @__PURE__ */withMods(uuiComponents.Rating, applyRatingMods, (p
|
|
|
2192
2193
|
Tooltip,
|
|
2193
2194
|
}));
|
|
2194
2195
|
|
|
2195
|
-
var css$
|
|
2196
|
+
var css$13 = {"drag-handle-wrapper":"thd3w9","dragHandleWrapper":"thd3w9","with-indent":"ON9GJ-","withIndent":"ON9GJ-","drag-handle":"_2whqdy","dragHandle":"_2whqdy","icon-container":"_--wKxZ","iconContainer":"_--wKxZ"};
|
|
2196
2197
|
|
|
2197
2198
|
function DataRowAddons(props) {
|
|
2198
2199
|
const row = props.rowProps;
|
|
@@ -2209,8 +2210,8 @@ function DataRowAddons(props) {
|
|
|
2209
2210
|
if (props.renderDragHandle) {
|
|
2210
2211
|
return props.renderDragHandle({ rowProps: props.rowProps, eventHandlers: props.eventHandlers });
|
|
2211
2212
|
}
|
|
2212
|
-
return (React__default.createElement("div", { key: "dh", className: cx(css$
|
|
2213
|
-
React__default.createElement(DragHandle, { cx: css$
|
|
2213
|
+
return (React__default.createElement("div", { key: "dh", className: cx(css$13.dragHandleWrapper, row.indent > 0 && css$13.withIndent), style: { width: row.indent > 0 ? (getIndent() + getWidth()) : 0 }, ...props.eventHandlers },
|
|
2214
|
+
React__default.createElement(DragHandle, { cx: css$13.dragHandle })));
|
|
2214
2215
|
};
|
|
2215
2216
|
const handleFold = (e) => {
|
|
2216
2217
|
if (e.key === 'Enter') {
|
|
@@ -2225,7 +2226,7 @@ function DataRowAddons(props) {
|
|
|
2225
2226
|
'aria-label': row.isFolded ? 'Unfold' : 'Fold',
|
|
2226
2227
|
role: 'button',
|
|
2227
2228
|
}, key: "icon", icon: settings.dataTable.icons.body.foldingIcon, cx: [
|
|
2228
|
-
uuiElement.foldingArrow, uuiMarkers.clickable, css$
|
|
2229
|
+
uuiElement.foldingArrow, uuiMarkers.clickable, css$13.iconContainer,
|
|
2229
2230
|
], 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 }))))));
|
|
2230
2231
|
}
|
|
2231
2232
|
|
|
@@ -2236,12 +2237,12 @@ function VerticalTabButtonComponent(props, ref) {
|
|
|
2236
2237
|
isActive: props.isActive,
|
|
2237
2238
|
});
|
|
2238
2239
|
const styles = [
|
|
2239
|
-
css$
|
|
2240
|
+
css$1o.root,
|
|
2240
2241
|
'uui-vertical-tab-button',
|
|
2241
2242
|
`uui-size-${props.size || settings.verticalTabButton.sizes.default}`,
|
|
2242
2243
|
isActive && uuiMod.active,
|
|
2243
|
-
props.indent > 0 && css$
|
|
2244
|
-
!props.onClick && props.onFold && css$
|
|
2244
|
+
props.indent > 0 && css$1o.noLeftPadding,
|
|
2245
|
+
!props.onClick && props.onFold && css$1o.onlyFoldable,
|
|
2245
2246
|
...getIconClass(props),
|
|
2246
2247
|
props.cx,
|
|
2247
2248
|
];
|
|
@@ -2261,16 +2262,16 @@ function VerticalTabButtonComponent(props, ref) {
|
|
|
2261
2262
|
'aria-selected': isActive,
|
|
2262
2263
|
...props.rawProps,
|
|
2263
2264
|
}, cx: styles, ref: ref },
|
|
2264
|
-
props.indent > 0 && (React__default.createElement("div", { key: "fold", className: cx$1(css$
|
|
2265
|
+
props.indent > 0 && (React__default.createElement("div", { key: "fold", className: cx$1(css$1o.foldingArea, props.onFold && uuiMarkers.clickable), style: { '--uui-folding-indent': `${props.indent - 1}` }, onClick: props.onFold }, props.isFoldable && (React__default.createElement(IconContainer, { rawProps: {
|
|
2265
2266
|
'aria-label': props.isFolded ? 'Unfold' : 'Fold',
|
|
2266
2267
|
role: 'button',
|
|
2267
2268
|
}, key: "icon", icon: settings.verticalTabButton.icons.foldingIcon, cx: [
|
|
2268
|
-
uuiElement.foldingArrow, css$
|
|
2269
|
+
uuiElement.foldingArrow, css$1o.iconContainer,
|
|
2269
2270
|
], rotate: props.isFolded ? '90ccw' : '0', size: settings.dataTable.sizes.body.iconMap[props.size || settings.dataTable.sizes.body.row] })))),
|
|
2270
2271
|
props.icon && props.iconPosition !== 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
2271
|
-
(props.caption || props.withNotify) && (React__default.createElement("div", { className: css$
|
|
2272
|
+
(props.caption || props.withNotify) && (React__default.createElement("div", { className: css$1o.captionWrapper },
|
|
2272
2273
|
props.caption && React__default.createElement("div", { className: cx$1(uuiElement.caption, `uui-vertical-tab-button-weight-${props.weight || settings.verticalTabButton.weight}`) }, props.caption),
|
|
2273
|
-
props.withNotify && React__default.createElement("div", { className: css$
|
|
2274
|
+
props.withNotify && React__default.createElement("div", { className: css$1o.withNotify }))),
|
|
2274
2275
|
props.icon && props.iconPosition === 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
2275
2276
|
props.count !== undefined && props.count !== null && (React__default.createElement(CountIndicator, { color: "neutral", size: settings.verticalTabButton.sizes.countIndicatorMap[props.size || settings.verticalTabButton.sizes.default], caption: props.count })),
|
|
2276
2277
|
props.isDropdown && (React__default.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
@@ -2279,17 +2280,17 @@ function VerticalTabButtonComponent(props, ref) {
|
|
|
2279
2280
|
}
|
|
2280
2281
|
const VerticalTabButton = /* @__PURE__ */React__default.forwardRef(VerticalTabButtonComponent);
|
|
2281
2282
|
|
|
2282
|
-
var css$
|
|
2283
|
+
var css$12 = {"root":"fCCifk","main-path":"Y8WzCB","mainPath":"Y8WzCB","content-wrapper":"trwNHU","contentWrapper":"trwNHU","content":"_82YjHo","action-wrapper":"Yucaqi","actionWrapper":"Yucaqi","icon-wrapper":"-hH6K9","iconWrapper":"-hH6K9","icon":"_9NR5gU","close-icon":"CTbucX","closeIcon":"CTbucX"};
|
|
2283
2284
|
|
|
2284
|
-
const Alert = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement("div", { role: "alert", ref: ref, className: cx('uui-alert', css$
|
|
2285
|
-
React.createElement("div", { className: css$
|
|
2286
|
-
React.createElement("div", { className: css$
|
|
2287
|
-
props.icon && (React.createElement("div", { className: css$
|
|
2288
|
-
React.createElement(IconContainer, { icon: props.icon, cx: css$
|
|
2289
|
-
React.createElement("div", { className: css$
|
|
2285
|
+
const Alert = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement("div", { role: "alert", ref: ref, className: cx('uui-alert', css$12.root, props.color && `uui-color-${props.color}`, props.cx, `uui-size-${props.size || settings.alert.sizes.default}`), ...props.rawProps },
|
|
2286
|
+
React.createElement("div", { className: css$12.mainPath },
|
|
2287
|
+
React.createElement("div", { className: css$12.contentWrapper },
|
|
2288
|
+
props.icon && (React.createElement("div", { className: css$12.iconWrapper },
|
|
2289
|
+
React.createElement(IconContainer, { icon: props.icon, cx: css$12.icon }))),
|
|
2290
|
+
React.createElement("div", { className: css$12.content },
|
|
2290
2291
|
props.children,
|
|
2291
|
-
props.actions && (React.createElement("div", { className: css$
|
|
2292
|
-
props.onClose && React.createElement(IconButton, { icon: settings.alert.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$
|
|
2292
|
+
props.actions && (React.createElement("div", { className: css$12.actionWrapper }, props.actions.map((action) => (React.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] }))))))),
|
|
2293
|
+
props.onClose && React.createElement(IconButton, { icon: settings.alert.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$12.closeIcon })))));
|
|
2293
2294
|
const WarningAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, { icon: settings.alert.icons.warningIcon, color: "warning", ref: ref, ...props }));
|
|
2294
2295
|
const SuccessAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, { icon: settings.alert.icons.successIcon, color: "success", ref: ref, ...props }));
|
|
2295
2296
|
const HintAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, { icon: settings.alert.icons.infoIcon, color: "info", ref: ref, ...props }));
|
|
@@ -2297,7 +2298,7 @@ const ErrorAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createE
|
|
|
2297
2298
|
|
|
2298
2299
|
const Dropdown = /* @__PURE__ */withMods(Dropdown$1);
|
|
2299
2300
|
|
|
2300
|
-
var css$
|
|
2301
|
+
var css$11 = {"submenu-root-item-rtl":"LoQsZ1","submenuRootItemRtl":"LoQsZ1","icon-after":"D7k-8S","iconAfter":"D7k-8S","submenu-root-item":"XQyfw0","submenuRootItem":"XQyfw0","icon-check":"PLUUMz","iconCheck":"PLUUMz","splitter-root":"_6vgKvJ","splitterRoot":"_6vgKvJ","splitter":"Gjtkyy","header-root":"sluV-r","headerRoot":"sluV-r","item-root":"ltGPMS","itemRoot":"ltGPMS","icon":"LfY7st","link":"suMBKa","indent":"A3-qpy","selected-mark":"YKgtIU","selectedMark":"YKgtIU"};
|
|
2301
2302
|
|
|
2302
2303
|
var IDropdownControlKeys;
|
|
2303
2304
|
(function (IDropdownControlKeys) {
|
|
@@ -2371,29 +2372,29 @@ const DropdownMenuButton = /* @__PURE__ */React__default.forwardRef((props, ref)
|
|
|
2371
2372
|
const getMenuButtonContent = () => {
|
|
2372
2373
|
const isIconBefore = Boolean(icon && iconPosition !== 'right');
|
|
2373
2374
|
const isIconAfter = Boolean(icon && iconPosition === 'right');
|
|
2374
|
-
const iconElement = (React__default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: cx$1(css$
|
|
2375
|
+
const iconElement = (React__default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: cx$1(css$11.icon, iconPosition === 'right' ? css$11.iconAfter : css$11.iconBefore) }));
|
|
2375
2376
|
return (React__default.createElement(React__default.Fragment, null,
|
|
2376
2377
|
isIconBefore && iconElement,
|
|
2377
|
-
React__default.createElement(Text$1, { cx: props.indent && css$
|
|
2378
|
+
React__default.createElement(Text$1, { cx: props.indent && css$11.indent }, caption),
|
|
2378
2379
|
isIconAfter && (React__default.createElement(React__default.Fragment, null,
|
|
2379
2380
|
React__default.createElement(FlexSpacer, null),
|
|
2380
2381
|
iconElement))));
|
|
2381
2382
|
};
|
|
2382
2383
|
const isAnchor = Boolean(link || href);
|
|
2383
|
-
const itemClassNames = cx$1(props.cx, css$
|
|
2384
|
-
return isAnchor ? (React__default.createElement(Anchor$1, { cx: cx$1(css$
|
|
2384
|
+
const itemClassNames = cx$1(props.cx, css$11.itemRoot, isDisabled && uuiMod.disabled, isActive && uuiMod.active, isOpen && uuiMod.opened, (!isDisabled && onClick) && uuiMarkers.clickable);
|
|
2385
|
+
return isAnchor ? (React__default.createElement(Anchor$1, { cx: cx$1(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__default.createElement("div", { tabIndex: isDisabled ? -1 : 0, role: "menuitem", onKeyDown: isDisabled ? null : handleOpenDropdown, className: itemClassNames, onClick: handleClick, ref: ref, ...props.rawProps },
|
|
2385
2386
|
getMenuButtonContent(),
|
|
2386
2387
|
isSelected && (React__default.createElement(React__default.Fragment, null,
|
|
2387
2388
|
React__default.createElement(FlexSpacer, null),
|
|
2388
|
-
React__default.createElement(IconContainer, { icon: settings.dropdownMenu.icons.acceptIcon, cx: css$
|
|
2389
|
+
React__default.createElement(IconContainer, { icon: settings.dropdownMenu.icons.acceptIcon, cx: css$11.selectedMark })))));
|
|
2389
2390
|
});
|
|
2390
2391
|
function DropdownMenuSplitter(props) {
|
|
2391
|
-
return (React__default.createElement("div", { className: cx$1(props.cx, css$
|
|
2392
|
-
React__default.createElement("hr", { className: css$
|
|
2392
|
+
return (React__default.createElement("div", { className: cx$1(props.cx, css$11.splitterRoot) },
|
|
2393
|
+
React__default.createElement("hr", { className: css$11.splitter })));
|
|
2393
2394
|
}
|
|
2394
2395
|
function DropdownMenuHeader(props) {
|
|
2395
|
-
return (React__default.createElement("div", { className: cx$1('uui-dropdown-menu-header', props.cx, css$
|
|
2396
|
-
React__default.createElement("span", { className: css$
|
|
2396
|
+
return (React__default.createElement("div", { className: cx$1('uui-dropdown-menu-header', props.cx, css$11.headerRoot) },
|
|
2397
|
+
React__default.createElement("span", { className: css$11.header }, props.caption)));
|
|
2397
2398
|
}
|
|
2398
2399
|
function DropdownSubMenu(props) {
|
|
2399
2400
|
const subMenuMiddleware = [
|
|
@@ -2408,7 +2409,7 @@ function DropdownSubMenu(props) {
|
|
|
2408
2409
|
}),
|
|
2409
2410
|
];
|
|
2410
2411
|
const isRtl = getDir() === 'rtl';
|
|
2411
|
-
return (React__default.createElement(Dropdown$1, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", openDelay: 400, closeDelay: 400, placement: isRtl ? 'left-start' : 'right-start', middleware: subMenuMiddleware, renderBody: (dropdownProps) => !props.isDisabled && (React__default.createElement(DropdownMenuBody, { closeOnKey: IDropdownControlKeys.LEFT_ARROW, ...props, ...dropdownProps })), renderTarget: ({ toggleDropdownOpening, ...targetProps }) => (React__default.createElement(DropdownMenuButton, { cx: cx$1(isRtl ? css$
|
|
2412
|
+
return (React__default.createElement(Dropdown$1, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", openDelay: 400, closeDelay: 400, placement: isRtl ? 'left-start' : 'right-start', middleware: subMenuMiddleware, renderBody: (dropdownProps) => !props.isDisabled && (React__default.createElement(DropdownMenuBody, { closeOnKey: IDropdownControlKeys.LEFT_ARROW, ...props, ...dropdownProps })), renderTarget: ({ toggleDropdownOpening, ...targetProps }) => (React__default.createElement(DropdownMenuButton, { cx: cx$1(isRtl ? css$11.submenuRootItemRtl : css$11.submenuRootItem), icon: settings.dropdownMenu.icons.dropdownIcon, iconPosition: "right", isDropdown: true, toggleDropdownOpening: toggleDropdownOpening, ...props, ...targetProps })) }));
|
|
2412
2413
|
}
|
|
2413
2414
|
function DropdownMenuSwitchButton(props) {
|
|
2414
2415
|
const context = useContext(UuiContext);
|
|
@@ -2431,29 +2432,29 @@ function DropdownMenuSwitchButton(props) {
|
|
|
2431
2432
|
return;
|
|
2432
2433
|
onHandleValueChange(!isSelected);
|
|
2433
2434
|
};
|
|
2434
|
-
return (React__default.createElement("div", { className: cx$1(props.cx, css$
|
|
2435
|
-
icon && React__default.createElement(IconContainer, { icon: icon, cx: css$
|
|
2435
|
+
return (React__default.createElement("div", { className: cx$1(props.cx, css$11.itemRoot, isDisabled && uuiMod.disabled, (!isDisabled || onValueChange) && uuiMarkers.clickable), onClick: handleClick, role: "menuitem", onKeyDown: handleKeySelect, tabIndex: isDisabled ? -1 : 0 },
|
|
2436
|
+
icon && React__default.createElement(IconContainer, { icon: icon, cx: css$11.iconBefore }),
|
|
2436
2437
|
React__default.createElement(Text$1, null, caption),
|
|
2437
2438
|
React__default.createElement(FlexSpacer, null),
|
|
2438
2439
|
React__default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange, ref: switchRef })));
|
|
2439
2440
|
}
|
|
2440
2441
|
|
|
2441
|
-
var css
|
|
2442
|
+
var css$10 = {"root":"U3-Md-","mode-block":"VIVbbx","modeBlock":"VIVbbx","mode-inline":"wnxxl9","modeInline":"wnxxl9","padding-0":"_7wi1Wm","padding0":"_7wi1Wm","padding-6":"RJhKC-","padding6":"RJhKC-","padding-12":"_1CFvpf","padding12":"_1CFvpf","padding-18":"Thn503","padding18":"Thn503"};
|
|
2442
2443
|
|
|
2443
2444
|
function applyAccordionMods(mods) {
|
|
2444
2445
|
return [
|
|
2445
|
-
css
|
|
2446
|
-
css
|
|
2447
|
-
mods.padding && css
|
|
2446
|
+
css$10.root,
|
|
2447
|
+
css$10[`mode-${mods.mode || 'block'}`],
|
|
2448
|
+
mods.padding && css$10['padding-' + mods.padding],
|
|
2448
2449
|
];
|
|
2449
2450
|
}
|
|
2450
2451
|
const Accordion = /* @__PURE__ */withMods(uuiComponents.Accordion, applyAccordionMods, (mods) => ({
|
|
2451
2452
|
dropdownIcon: mods.dropdownIcon !== null && settings.accordion.icons.dropdownIcon,
|
|
2452
2453
|
}));
|
|
2453
2454
|
|
|
2454
|
-
var css
|
|
2455
|
+
var css$$ = {"root":"Z-SlmT","align-items":"W-C53l","alignItems":"W-C53l","justify-content":"BhbeRd","justifyContent":"BhbeRd","border-top":"ZIHeU-","borderTop":"ZIHeU-","border-bottom":"zJMY8A","borderBottom":"zJMY8A","top-shadow":"H1pdqB","topShadow":"H1pdqB","padding":"ehBSCa","margin":"_7mfEmz","vPadding":"_42qAX5","column-gap":"MpcFbp","columnGap":"MpcFbp","row-gap":"zv8IUA","rowGap":"zv8IUA","spacing":"-E7kJr"};
|
|
2455
2456
|
|
|
2456
|
-
const FlexCell = /* @__PURE__ */withMods(FlexCell$1, () => [css
|
|
2457
|
+
const FlexCell = /* @__PURE__ */withMods(FlexCell$1, () => [css$$.flexCell]);
|
|
2457
2458
|
|
|
2458
2459
|
const FlexRow = /* @__PURE__ */forwardRef((props, ref) => {
|
|
2459
2460
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -2462,22 +2463,22 @@ const FlexRow = /* @__PURE__ */forwardRef((props, ref) => {
|
|
|
2462
2463
|
}
|
|
2463
2464
|
}
|
|
2464
2465
|
const classNames = cx$1([
|
|
2465
|
-
css
|
|
2466
|
+
css$$.root,
|
|
2466
2467
|
'uui-flex-row',
|
|
2467
2468
|
props.onClick && uuiMarkers.clickable,
|
|
2468
2469
|
props.cx,
|
|
2469
2470
|
props.size !== null && 'uui-size-' + (props.size || settings.flexRow.sizes.default),
|
|
2470
|
-
props.alignItems && css
|
|
2471
|
-
props.justifyContent && css
|
|
2472
|
-
props.padding && css
|
|
2473
|
-
props.vPadding && css
|
|
2474
|
-
props.margin && css
|
|
2475
|
-
props.topShadow && css
|
|
2476
|
-
props.borderBottom && css
|
|
2477
|
-
props.borderTop && css
|
|
2478
|
-
props.columnGap && css
|
|
2479
|
-
props.rowGap && css
|
|
2480
|
-
props.spacing && css
|
|
2471
|
+
props.alignItems && css$$.alignItems,
|
|
2472
|
+
props.justifyContent && css$$.justifyContent,
|
|
2473
|
+
props.padding && css$$.padding,
|
|
2474
|
+
props.vPadding && css$$.vPadding,
|
|
2475
|
+
props.margin && css$$.margin,
|
|
2476
|
+
props.topShadow && css$$.topShadow,
|
|
2477
|
+
props.borderBottom && css$$.borderBottom,
|
|
2478
|
+
props.borderTop && css$$.borderTop,
|
|
2479
|
+
props.columnGap && css$$.columnGap,
|
|
2480
|
+
props.rowGap && css$$.rowGap,
|
|
2481
|
+
props.spacing && css$$.spacing,
|
|
2481
2482
|
props.background && `uui-flex-row-bg-${props.background}`,
|
|
2482
2483
|
]);
|
|
2483
2484
|
let alignItemsValue = props.alignItems;
|
|
@@ -2503,22 +2504,22 @@ const FlexRow = /* @__PURE__ */forwardRef((props, ref) => {
|
|
|
2503
2504
|
} }, props.children));
|
|
2504
2505
|
});
|
|
2505
2506
|
|
|
2506
|
-
var css$
|
|
2507
|
+
var css$_ = {"root":"HGB-2U","margin-24":"uqfsvF","margin24":"uqfsvF","padding-12":"IvWhcQ","padding12":"IvWhcQ","padding-24":"_80IJbz","padding24":"_80IJbz","shadow":"KXuJbL","uui-surface-main":"_9zc2FW","uuiSurfaceMain":"_9zc2FW"};
|
|
2507
2508
|
|
|
2508
2509
|
const Panel = /* @__PURE__ */withMods(VPanel, (props) => [
|
|
2509
2510
|
'uui-panel',
|
|
2510
|
-
css$
|
|
2511
|
-
props.shadow && css$
|
|
2512
|
-
props.margin && css$
|
|
2513
|
-
props.background && css$
|
|
2511
|
+
css$_.root,
|
|
2512
|
+
props.shadow && css$_.shadow,
|
|
2513
|
+
props.margin && css$_['margin-' + props.margin],
|
|
2514
|
+
props.background && css$_[`uui-${props.background}`],
|
|
2514
2515
|
]);
|
|
2515
2516
|
|
|
2516
|
-
var css$
|
|
2517
|
+
var css$Z = {"root":"ni2YI-"};
|
|
2517
2518
|
|
|
2518
2519
|
function applyLabeledInputMods(mods) {
|
|
2519
2520
|
return [
|
|
2520
2521
|
'uui-labeled-input',
|
|
2521
|
-
css$
|
|
2522
|
+
css$Z.root,
|
|
2522
2523
|
'uui-size-' + (mods.size || settings.labeledInput.sizes.default),
|
|
2523
2524
|
];
|
|
2524
2525
|
}
|
|
@@ -2535,7 +2536,7 @@ function applyLabeledInputProps(props) {
|
|
|
2535
2536
|
}
|
|
2536
2537
|
const LabeledInput = /* @__PURE__ */withMods(uuiComponents.LabeledInput, applyLabeledInputMods, applyLabeledInputProps);
|
|
2537
2538
|
|
|
2538
|
-
var css$
|
|
2539
|
+
var css$Y = {"root":"UZhKOX"};
|
|
2539
2540
|
|
|
2540
2541
|
function RadioGroup(props) {
|
|
2541
2542
|
const direction = props.direction || 'vertical';
|
|
@@ -2544,13 +2545,13 @@ function RadioGroup(props) {
|
|
|
2544
2545
|
props.onValueChange(newVal);
|
|
2545
2546
|
}
|
|
2546
2547
|
};
|
|
2547
|
-
return (React.createElement("fieldset", { ref: props.forwardedRef, className: cx$1(css$
|
|
2548
|
+
return (React.createElement("fieldset", { ref: props.forwardedRef, className: cx$1(css$Y.root, directionMode[direction], props.cx), onFocus: props.onFocus, onBlur: props.onBlur, ...props.rawProps }, props.items.map((i) => {
|
|
2548
2549
|
const { id, name, renderName, ...restItemProps } = i;
|
|
2549
2550
|
return (React.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 }));
|
|
2550
2551
|
})));
|
|
2551
2552
|
}
|
|
2552
2553
|
|
|
2553
|
-
var css$
|
|
2554
|
+
var css$X = {"root":"T0M4Za","viewport":"X0b4Uh"};
|
|
2554
2555
|
|
|
2555
2556
|
var uuiScrollbars;
|
|
2556
2557
|
(function (uuiScrollbars) {
|
|
@@ -2624,12 +2625,12 @@ const ScrollBars = /* @__PURE__ */forwardRef((props, ref) => {
|
|
|
2624
2625
|
view: viewportRef.current,
|
|
2625
2626
|
};
|
|
2626
2627
|
}, []);
|
|
2627
|
-
return (React__default.createElement("div", { ref: hostRef, className: cx(css$
|
|
2628
|
-
React__default.createElement("div", { className: css$
|
|
2628
|
+
return (React__default.createElement("div", { ref: hostRef, className: cx(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": "" },
|
|
2629
|
+
React__default.createElement("div", { className: css$X.viewport, "data-overlayscrollbars-contents": "", ref: (node) => { viewportRef.current = node; }, ...rawProps }, children)));
|
|
2629
2630
|
});
|
|
2630
2631
|
ScrollBars.displayName = 'ScrollBars';
|
|
2631
2632
|
|
|
2632
|
-
var css$
|
|
2633
|
+
var css$W = {"scroll-container":"QgfRYz","scrollContainer":"QgfRYz","list-container":"QpcaQM","listContainer":"QpcaQM"};
|
|
2633
2634
|
|
|
2634
2635
|
const VirtualList = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
2635
2636
|
const { listContainerRef, offsetY, handleScroll, estimatedHeight, scrollContainerRef, } = useVirtualList({
|
|
@@ -2645,7 +2646,7 @@ const VirtualList = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
2645
2646
|
const [blockerInset, setBlockerInset] = React__default.useState(null);
|
|
2646
2647
|
const renderRows = () => props.renderRows?.({
|
|
2647
2648
|
listContainerRef, estimatedHeight, offsetY,
|
|
2648
|
-
}) || (React__default.createElement("div", { className: css$
|
|
2649
|
+
}) || (React__default.createElement("div", { className: css$W.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
2649
2650
|
React__default.createElement("div", { ref: listContainerRef, role: props.role, style: { marginTop: offsetY } }, props.rows)));
|
|
2650
2651
|
const scrollBarsRef = React__default.useCallback((scrollbars) => {
|
|
2651
2652
|
if (!scrollbars?.view)
|
|
@@ -2671,7 +2672,7 @@ const VirtualList = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
2671
2672
|
updateBlockerInset();
|
|
2672
2673
|
}
|
|
2673
2674
|
}, [props.isLoading, updateBlockerInset]);
|
|
2674
|
-
return (React__default.createElement(ScrollBars, { cx: cx$1(css$
|
|
2675
|
+
return (React__default.createElement(ScrollBars, { cx: cx$1(css$W.scrollContainer, props.cx), onScroll: handleScroll, ref: scrollBarsRef, rawProps: rawProps, overflowTopEffect: props.overflowTopEffect, overflowBottomEffect: props.overflowBottomEffect, autoHide: props.isLoading ? 'scroll' : undefined },
|
|
2675
2676
|
renderRows(),
|
|
2676
2677
|
React__default.createElement(Blocker, { isEnabled: props.isLoading, inset: blockerInset })));
|
|
2677
2678
|
});
|
|
@@ -2704,7 +2705,7 @@ function Tree(props) {
|
|
|
2704
2705
|
return (React.createElement(VirtualList, { value: value, onValueChange: onValueChange, rowsCount: rowsCount, rows: renderedRows, cx: cx$1(propsCx), role: "tree" }));
|
|
2705
2706
|
}
|
|
2706
2707
|
|
|
2707
|
-
var css$
|
|
2708
|
+
var css$V = {"root":"q56bHV"};
|
|
2708
2709
|
|
|
2709
2710
|
function CheckboxGroup(props) {
|
|
2710
2711
|
const currentValue = props.value || [];
|
|
@@ -2720,7 +2721,7 @@ function CheckboxGroup(props) {
|
|
|
2720
2721
|
}
|
|
2721
2722
|
props.onValueChange(newSelection);
|
|
2722
2723
|
};
|
|
2723
|
-
return (React.createElement("fieldset", { ref: props.forwardedRef, className: cx$1(css$
|
|
2724
|
+
return (React.createElement("fieldset", { ref: props.forwardedRef, className: cx$1(css$V.root, directionMode[direction], props.cx), ...props.rawProps }, props.items.map((i) => {
|
|
2724
2725
|
const { id, name, renderName, ...restItemProps } = i;
|
|
2725
2726
|
return (React.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 }));
|
|
2726
2727
|
})));
|
|
@@ -2806,10 +2807,10 @@ const Tabs = /* @__PURE__ */forwardRef((props, ref) => {
|
|
|
2806
2807
|
});
|
|
2807
2808
|
Tabs.displayName = 'Tabs';
|
|
2808
2809
|
|
|
2809
|
-
var css$
|
|
2810
|
+
var css$U = {"root":"XKnBMo","modal-blocker":"_0O3spk","modalBlocker":"_0O3spk","animateModalBlocker":"kqkoZ6","modal":"d2-FBI","modal-footer":"_1Q1Hzc","modalFooter":"_1Q1Hzc","border-top":"UKcBxb","borderTop":"UKcBxb","modal-header":"cLulyv","modalHeader":"cLulyv","border-bottom":"_4XO1DX","borderBottom":"_4XO1DX"};
|
|
2810
2811
|
|
|
2811
|
-
const ModalBlocker = /* @__PURE__ */withMods(ModalBlocker$1, () => [css$
|
|
2812
|
-
const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css$
|
|
2812
|
+
const ModalBlocker = /* @__PURE__ */withMods(ModalBlocker$1, () => [css$U.modalBlocker]);
|
|
2813
|
+
const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css$U.root, css$U.modal], (props) => {
|
|
2813
2814
|
const width = props.width;
|
|
2814
2815
|
const height = props.height || 'auto';
|
|
2815
2816
|
const maxHeight = isMobile() ? 'var(--uui-modals-mobile-max-height)' : (props.maxHeight || 'var(--uui-modals-max-height)');
|
|
@@ -2823,7 +2824,7 @@ const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css$T.root, cs
|
|
|
2823
2824
|
};
|
|
2824
2825
|
});
|
|
2825
2826
|
function ModalHeader(props) {
|
|
2826
|
-
return (React__default.createElement("div", { className: cx(css$
|
|
2827
|
+
return (React__default.createElement("div", { className: cx(css$U.root, css$U.modalHeader, 'uui-modal-header', props.borderBottom && css$U.borderBottom, props.cx), ...props.rawProps, style: {
|
|
2827
2828
|
...props.rawProps?.style,
|
|
2828
2829
|
} },
|
|
2829
2830
|
props.title && (React__default.createElement("div", { className: cx('uui-modal-title', 'uui-typography') }, props.title)),
|
|
@@ -2833,7 +2834,7 @@ function ModalHeader(props) {
|
|
|
2833
2834
|
React__default.createElement(IconButton, { rawProps: { 'aria-label': 'Close modal' }, icon: settings.modal.icons.closeIcon, onClick: props.onClose })))));
|
|
2834
2835
|
}
|
|
2835
2836
|
function ModalFooter(props) {
|
|
2836
|
-
return (React__default.createElement("div", { className: cx(css$
|
|
2837
|
+
return (React__default.createElement("div", { className: cx(css$U.root, css$U.modalFooter, 'uui-modal-footer', props.borderTop && css$U.borderTop, props.cx), ...props.rawProps, style: {
|
|
2837
2838
|
...props.rawProps?.style,
|
|
2838
2839
|
} }, props.children));
|
|
2839
2840
|
}
|
|
@@ -2879,6 +2880,12 @@ const TREE_SHAKEABLE_INIT = () => ({
|
|
|
2879
2880
|
rangeDatePicker: {
|
|
2880
2881
|
pickerPlaceholderFrom: 'From',
|
|
2881
2882
|
pickerPlaceholderTo: 'To',
|
|
2883
|
+
mobileModalTitle: 'Select date range',
|
|
2884
|
+
mobileModalStartPlaceholder: 'Start',
|
|
2885
|
+
mobileModalEndPlaceholder: 'End',
|
|
2886
|
+
mobileModalCancel: 'Cancel',
|
|
2887
|
+
mobileModalApply: 'Apply',
|
|
2888
|
+
mobileModalClearAll: 'Clear all',
|
|
2882
2889
|
},
|
|
2883
2890
|
tables: {
|
|
2884
2891
|
noResultsBlock: {
|
|
@@ -2999,7 +3006,7 @@ const TREE_SHAKEABLE_INIT = () => ({
|
|
|
2999
3006
|
});
|
|
3000
3007
|
const i18n = /* @__PURE__ */TREE_SHAKEABLE_INIT();
|
|
3001
3008
|
|
|
3002
|
-
var css$
|
|
3009
|
+
var css$T = {"root":"_7shHNH","icon-wrapper":"_975Ysu","iconWrapper":"_975Ysu","action-wrapper":"YbfLOv","actionWrapper":"YbfLOv","close-icon":"ZE2eO-","closeIcon":"ZE2eO-","main-path":"CYyA41","mainPath":"CYyA41","content":"VJ72iQ","close-wrapper":"ZZc4wK","closeWrapper":"ZZc4wK","clear-notifications":"QBrA5Z","clearNotifications":"QBrA5Z"};
|
|
3003
3010
|
|
|
3004
3011
|
const NotificationCard = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
3005
3012
|
const notificationCardNode = React__default.useRef(null);
|
|
@@ -3012,15 +3019,15 @@ const NotificationCard = /* @__PURE__ */React__default.forwardRef((props, ref) =
|
|
|
3012
3019
|
notificationCardNode.current?.removeEventListener('mouseleave', props.refreshTimer);
|
|
3013
3020
|
};
|
|
3014
3021
|
}, []);
|
|
3015
|
-
return (React__default.createElement("div", { role: "alert", className: cx('uui-notification_card', props.color && `uui-color-${props.color}`, css$
|
|
3016
|
-
React__default.createElement("div", { className: css$
|
|
3017
|
-
props.icon && (React__default.createElement("div", { className: css$
|
|
3022
|
+
return (React__default.createElement("div", { role: "alert", className: cx('uui-notification_card', props.color && `uui-color-${props.color}`, css$T.root, props.cx), ref: notificationCardNode, ...props.rawProps },
|
|
3023
|
+
React__default.createElement("div", { className: css$T.mainPath },
|
|
3024
|
+
props.icon && (React__default.createElement("div", { className: css$T.iconWrapper },
|
|
3018
3025
|
React__default.createElement(IconContainer, { size: settings.notificationCard.sizes.icon, icon: props.icon }))),
|
|
3019
|
-
React__default.createElement("div", { className: css$
|
|
3026
|
+
React__default.createElement("div", { className: css$T.content },
|
|
3020
3027
|
props.children,
|
|
3021
|
-
props.actions && (React__default.createElement("div", { className: css$
|
|
3022
|
-
props.onClose && (React__default.createElement("div", { className: cx(css$
|
|
3023
|
-
React__default.createElement(IconButton, { icon: settings.notificationCard.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$
|
|
3028
|
+
props.actions && (React__default.createElement("div", { className: css$T.actionWrapper }, props.actions.map((action) => (React__default.createElement(LinkButton, { key: action.name, caption: action.name, onClick: action.action, cx: css$T.actionLink, size: settings.notificationCard.sizes.action, rawProps: action.rawProps })))))),
|
|
3029
|
+
props.onClose && (React__default.createElement("div", { className: cx(css$T.closeWrapper, 'uui-notification_card-close_icon') },
|
|
3030
|
+
React__default.createElement(IconButton, { icon: settings.notificationCard.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$T.closeIcon }))))));
|
|
3024
3031
|
});
|
|
3025
3032
|
const WarningNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, { icon: settings.notificationCard.icons.warningIcon, color: "warning", ...props, ref: ref, cx: props.cx })));
|
|
3026
3033
|
const SuccessNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, { icon: settings.notificationCard.icons.successIcon, color: "success", ...props, ref: ref, cx: props.cx })));
|
|
@@ -3028,11 +3035,11 @@ const HintNotification = /* @__PURE__ */React__default.forwardRef((props, ref) =
|
|
|
3028
3035
|
const ErrorNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, { icon: settings.notificationCard.icons.errorIcon, color: "error", ...props, ref: ref, cx: props.cx })));
|
|
3029
3036
|
function ClearNotification() {
|
|
3030
3037
|
const uuiCtx = useUuiContext();
|
|
3031
|
-
return (React__default.createElement("div", { className: cx(css$
|
|
3038
|
+
return (React__default.createElement("div", { className: cx(css$T.clearNotifications, 'uui-clear-notifications') },
|
|
3032
3039
|
React__default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => uuiCtx.uuiNotifications.clearAll() })));
|
|
3033
3040
|
}
|
|
3034
3041
|
|
|
3035
|
-
var css$
|
|
3042
|
+
var css$S = {"footer":"_5JYDVq"};
|
|
3036
3043
|
|
|
3037
3044
|
class ConfirmationModal extends React.Component {
|
|
3038
3045
|
render() {
|
|
@@ -3044,7 +3051,7 @@ class ConfirmationModal extends React.Component {
|
|
|
3044
3051
|
React.createElement(ModalWindow, { width: 420 },
|
|
3045
3052
|
React.createElement(ModalHeader, { borderBottom: true, title: this.props.caption, onClose: () => this.props.abort() }),
|
|
3046
3053
|
React.createElement(ScrollBars, null, bodyContent),
|
|
3047
|
-
React.createElement(ModalFooter, { cx: css$
|
|
3054
|
+
React.createElement(ModalFooter, { cx: css$S.footer },
|
|
3048
3055
|
this.props.hideCancelButton || (React.createElement(Button, { caption: i18n.form.modals.discardButton, onClick: () => this.props.success(false), fill: "outline", color: "secondary" })),
|
|
3049
3056
|
React.createElement(Button, { caption: i18n.form.modals.saveButton, onClick: () => this.props.success(true), color: "primary" })))));
|
|
3050
3057
|
}
|
|
@@ -3064,7 +3071,7 @@ function Snackbar(props) {
|
|
|
3064
3071
|
};
|
|
3065
3072
|
items = [clearOperation].concat(items);
|
|
3066
3073
|
}
|
|
3067
|
-
return React.createElement(Snackbar$1, { forwardedRef: props.forwardedRef, notifications: items });
|
|
3074
|
+
return (React.createElement(Snackbar$1, { forwardedRef: props.forwardedRef, notifications: items, zIndex: uuiCtx.uuiLayout.getTopOverlayZIndex() }));
|
|
3068
3075
|
}
|
|
3069
3076
|
/**
|
|
3070
3077
|
* https://legacy.reactjs.org/docs/hooks-faq.html#is-there-something-like-forceupdate
|
|
@@ -3074,9 +3081,10 @@ function useReliableForceUpdate() {
|
|
|
3074
3081
|
return red[1];
|
|
3075
3082
|
}
|
|
3076
3083
|
|
|
3077
|
-
var css$
|
|
3084
|
+
var css$R = {"root":"hUcydF","container":"wmwA82"};
|
|
3078
3085
|
|
|
3079
3086
|
const defaultFormat = 'MMM D, YYYY';
|
|
3087
|
+
const defaultFormatShort = 'MMM D';
|
|
3080
3088
|
const valueFormat = 'YYYY-MM-DD';
|
|
3081
3089
|
const supportedDateFormats = (format) => {
|
|
3082
3090
|
return [
|
|
@@ -3294,21 +3302,21 @@ function DatePickerHeader({ navIconLeft, navIconRight, value: { month, view }, o
|
|
|
3294
3302
|
}, [view, month]);
|
|
3295
3303
|
const disablePrev = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getPrevYearsList(month));
|
|
3296
3304
|
const disableNext = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getNextYearsList(month));
|
|
3297
|
-
return (React.createElement("div", { className: cx(css$
|
|
3305
|
+
return (React.createElement("div", { className: cx(css$R.root, uuiHeader.container, cx) },
|
|
3298
3306
|
React.createElement("header", { className: uuiHeader.headerNav },
|
|
3299
3307
|
React.createElement(Button, { icon: navIconLeft || settings.datePicker.icons.body.prevIcon, color: "secondary", fill: "ghost", cx: uuiHeader.navIconLeft, onClick: !isDisabled && (() => onLeftNavigationArrow()), isDisabled: disablePrev }),
|
|
3300
3308
|
React.createElement(Button, { caption: title, fill: "ghost", cx: uuiHeader.navTitle, onClick: !isDisabled && (() => onCaptionClick(view)) }),
|
|
3301
3309
|
React.createElement(Button, { icon: navIconRight || settings.datePicker.icons.body.nextIcon, color: "secondary", fill: "ghost", cx: uuiHeader.navIconRight, onClick: !isDisabled && (() => onRightNavigationArrow()), isDisabled: disableNext }))));
|
|
3302
3310
|
}
|
|
3303
3311
|
|
|
3304
|
-
var css$
|
|
3312
|
+
var css$Q = {"root":"OWIGm-"};
|
|
3305
3313
|
|
|
3306
|
-
function applyDateSelectionMods() {
|
|
3307
|
-
return [css$
|
|
3314
|
+
function applyDateSelectionMods(mods) {
|
|
3315
|
+
return [css$Q.root, `uui-size-${mods.size ?? settings.datePicker.sizes.body}`];
|
|
3308
3316
|
}
|
|
3309
3317
|
const Calendar = /* @__PURE__ */withMods(Calendar$1, applyDateSelectionMods);
|
|
3310
3318
|
|
|
3311
|
-
var css$
|
|
3319
|
+
var css$P = {"root":"fSa2z0"};
|
|
3312
3320
|
|
|
3313
3321
|
const uuiDatePickerBody = {
|
|
3314
3322
|
wrapper: 'uui-datepicker-body-wrapper',
|
|
@@ -3327,7 +3335,7 @@ function DatePickerBodyComp(props, ref) {
|
|
|
3327
3335
|
return (React__default.createElement(StatelessDatePickerBody, { ref: ref, ...props, month: month, view: view, onValueChange: onValueChange, onMonthChange: (m) => setMonth(m), onViewChange: (v) => setView(v) }));
|
|
3328
3336
|
}
|
|
3329
3337
|
const StatelessDatePickerBody = /* @__PURE__ */forwardRef(StatelessDatePickerBodyComp);
|
|
3330
|
-
function StatelessDatePickerBodyComp({ renderDay, isHoliday, cx: classes, filter, rawProps, value, month, view, onValueChange, onMonthChange, onViewChange, isDisabled, }, ref) {
|
|
3338
|
+
function StatelessDatePickerBodyComp({ renderDay, isHoliday, cx: classes, filter, rawProps, value, month, view, onValueChange, onMonthChange, onViewChange, isDisabled, size, }, ref) {
|
|
3331
3339
|
const selectedDate = useMemo(() => uuiDayjs.dayjs(value), [value]);
|
|
3332
3340
|
const onMonthClick = (newDate) => {
|
|
3333
3341
|
onMonthChange(newDate);
|
|
@@ -3349,11 +3357,11 @@ function StatelessDatePickerBodyComp({ renderDay, isHoliday, cx: classes, filter
|
|
|
3349
3357
|
case 'YEAR_SELECTION':
|
|
3350
3358
|
return (React__default.createElement(YearSelection, { selectedDate: selectedDate, value: month, onValueChange: onYearClick }));
|
|
3351
3359
|
case 'DAY_SELECTION':
|
|
3352
|
-
return (React__default.createElement(Calendar, { value: selectedDate, month: month, onValueChange: onDayClick, filter: filter, renderDay: renderDay, isHoliday: isHoliday, isDisabled: isDisabled }));
|
|
3360
|
+
return (React__default.createElement(Calendar, { value: selectedDate, month: month, onValueChange: onDayClick, filter: filter, renderDay: renderDay, isHoliday: isHoliday, isDisabled: isDisabled, size: size }));
|
|
3353
3361
|
}
|
|
3354
3362
|
};
|
|
3355
|
-
return (React__default.createElement("div", { ref: ref, className: cx$1(uuiDatePickerBodyBase.container, `uui-size-${settings.datePicker.sizes.body}`, classes), ...rawProps },
|
|
3356
|
-
React__default.createElement("div", { className: cx$1(css$
|
|
3363
|
+
return (React__default.createElement("div", { ref: ref, className: cx$1(uuiDatePickerBodyBase.container, `uui-size-${size ?? settings.datePicker.sizes.body}`, classes), ...rawProps },
|
|
3364
|
+
React__default.createElement("div", { className: cx$1(css$P.root, uuiDatePickerBody.wrapper) },
|
|
3357
3365
|
React__default.createElement(DatePickerHeader, { value: {
|
|
3358
3366
|
view,
|
|
3359
3367
|
month,
|
|
@@ -3435,9 +3443,9 @@ function DatePickerComponent(props, ref) {
|
|
|
3435
3443
|
}
|
|
3436
3444
|
const DatePicker = /* @__PURE__ */React__default.forwardRef(DatePickerComponent);
|
|
3437
3445
|
|
|
3438
|
-
var css$
|
|
3446
|
+
var css$O = {"date-input":"DagCAJ","dateInput":"DagCAJ","root":"kivC-5","separator":"wO39Qo"};
|
|
3439
3447
|
|
|
3440
|
-
const RangeDatePickerInput = /* @__PURE__ */forwardRef(({ isDisabled, isInvalid, isReadonly, size, disableClear, rawProps, value, inFocus, format, onValueChange, onFocusInput, onBlurInput, onClick, getPlaceholder, filter, onKeyDown, preventEmptyFromDate, preventEmptyToDate, id, cx: classes, }, ref) => {
|
|
3448
|
+
const RangeDatePickerInput = /* @__PURE__ */forwardRef(({ isDisabled, isInvalid, isReadonly, size, disableClear, rawProps, value, inFocus, format, onValueChange, onFocusInput, onBlurInput, onClick, getPlaceholder, filter, onKeyDown, onIconClick, preventEmptyFromDate, preventEmptyToDate, id, cx: classes, }, ref) => {
|
|
3441
3449
|
const [inputValue, setInputValue] = useState(toCustomDateRangeFormat(value, format));
|
|
3442
3450
|
useEffect(() => {
|
|
3443
3451
|
setInputValue(toCustomDateRangeFormat(value, format));
|
|
@@ -3506,13 +3514,13 @@ const RangeDatePickerInput = /* @__PURE__ */forwardRef(({ isDisabled, isInvalid,
|
|
|
3506
3514
|
&& ((value.from && !preventEmptyFromDate) || (value.to && !preventEmptyToDate));
|
|
3507
3515
|
return (
|
|
3508
3516
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
3509
|
-
React__default.createElement("div", { ref: ref, className: cx$1(`uui-size-${size || settings.rangeDatePicker.sizes.default}`, 'uui-range-date-picker', classes, css$
|
|
3510
|
-
React__default.createElement(TextInput, { icon: settings.rangeDatePicker.icons.input.calendarIcon, cx: cx$1(css$
|
|
3511
|
-
React__default.createElement("div", { className: css$
|
|
3512
|
-
React__default.createElement(TextInput, { cx: cx$1(css$
|
|
3517
|
+
React__default.createElement("div", { ref: ref, className: cx$1(`uui-size-${size || settings.rangeDatePicker.sizes.default}`, 'uui-range-date-picker', classes, css$O.root, isDisabled && uuiMod.disabled, isReadonly && uuiMod.readonly, isInvalid && uuiMod.invalid, inFocus && uuiMod.focus), onKeyDown: onKeyDown },
|
|
3518
|
+
React__default.createElement(TextInput, { icon: settings.rangeDatePicker.icons.input.calendarIcon, cx: cx$1(css$O.dateInput, inFocus === 'from' && 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 }),
|
|
3519
|
+
React__default.createElement("div", { className: css$O.separator }),
|
|
3520
|
+
React__default.createElement(TextInput, { cx: cx$1(css$O.dateInput, inFocus === 'to' && 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 })));
|
|
3513
3521
|
});
|
|
3514
3522
|
|
|
3515
|
-
var css$
|
|
3523
|
+
var css$N = {"root":"lauh2W"};
|
|
3516
3524
|
|
|
3517
3525
|
const uuiPresets = {
|
|
3518
3526
|
container: 'uui-presets-container',
|
|
@@ -3527,12 +3535,14 @@ const getPresets = (presets) => {
|
|
|
3527
3535
|
})).sort((a, b) => a.order - b.order);
|
|
3528
3536
|
};
|
|
3529
3537
|
function CalendarPresets(props) {
|
|
3530
|
-
|
|
3538
|
+
const isMobileView = isMobile();
|
|
3539
|
+
const presetSize = isMobileView ? settings.rangeDatePicker.sizes.mobilePreset : settings.rangeDatePicker.sizes.preset;
|
|
3540
|
+
return (React.createElement("div", { ref: props.forwardedRef, className: cx$1(uuiPresets.container, css$N.root, props.cx), ...props.rawProps },
|
|
3531
3541
|
React.createElement("div", { className: uuiPresets.header }, "Presets"),
|
|
3532
|
-
getPresets(props.presets).map((item) => (React.createElement(LinkButton, { key: item.key, caption: item.name, onClick: () => props.onPresetSet(item), size:
|
|
3542
|
+
getPresets(props.presets).map((item) => (React.createElement(LinkButton, { key: item.key, caption: item.name, onClick: () => props.onPresetSet(item), size: presetSize })))));
|
|
3533
3543
|
}
|
|
3534
3544
|
|
|
3535
|
-
var css$
|
|
3545
|
+
var css$M = {"root":"-jHoSJ","container":"DKsALl","day-selection":"F0dQOL","daySelection":"F0dQOL","mobile":"-UCgAD","from-picker":"_-4GzyN","fromPicker":"_-4GzyN","to-picker":"Yp6EPW","toPicker":"Yp6EPW","bodes-wrapper":"A9xQa2","bodesWrapper":"A9xQa2","blocker":"_5nS4ST"};
|
|
3536
3546
|
|
|
3537
3547
|
const uuiRangeDatePickerBody = {
|
|
3538
3548
|
inRange: 'uui-range-datepicker-in-range',
|
|
@@ -3613,9 +3623,14 @@ function RangeDatePickerBodyComp(props, ref) {
|
|
|
3613
3623
|
const selectedDate = _selectedDate || defaultRangeValue; // also handles null in comparison to default value
|
|
3614
3624
|
const [view, setView] = useState('DAY_SELECTION');
|
|
3615
3625
|
const [disabledPanel, setDisabledPanel] = useState(null);
|
|
3616
|
-
const [month, setMonth] = useState(() =>
|
|
3617
|
-
|
|
3618
|
-
|
|
3626
|
+
const [month, setMonth] = useState(() => getDisplayedMonth(selectedDate, inFocus, initialViewMonth));
|
|
3627
|
+
const isMobileView = isMobile();
|
|
3628
|
+
useEffect(() => {
|
|
3629
|
+
if (isMobileView && selectedDate[inFocus]) {
|
|
3630
|
+
setMonth(getDisplayedMonth(selectedDate, inFocus, initialViewMonth));
|
|
3631
|
+
setView('DAY_SELECTION');
|
|
3632
|
+
}
|
|
3633
|
+
}, [selectedDate, inFocus, initialViewMonth]);
|
|
3619
3634
|
const getRange = (newValue) => {
|
|
3620
3635
|
if (!filter || filter(uuiDayjs.dayjs(newValue))) {
|
|
3621
3636
|
if (inFocus === 'from') {
|
|
@@ -3662,7 +3677,7 @@ function RangeDatePickerBodyComp(props, ref) {
|
|
|
3662
3677
|
};
|
|
3663
3678
|
const renderPresets = (presets) => {
|
|
3664
3679
|
return (React__default.createElement(React__default.Fragment, null,
|
|
3665
|
-
React__default.createElement("div", { className: uuiRangeDatePickerBody.separator }),
|
|
3680
|
+
!isMobileView && React__default.createElement("div", { className: uuiRangeDatePickerBody.separator }),
|
|
3666
3681
|
React__default.createElement(CalendarPresets, { onPresetSet: (presetVal) => {
|
|
3667
3682
|
// enable day if smth other were selected
|
|
3668
3683
|
setView('DAY_SELECTION');
|
|
@@ -3679,35 +3694,37 @@ function RangeDatePickerBodyComp(props, ref) {
|
|
|
3679
3694
|
};
|
|
3680
3695
|
useLayoutEffectSafeForSsr(() => {
|
|
3681
3696
|
const monthToSet = getDisplayedMonth(selectedDate, inFocus, initialViewMonth);
|
|
3682
|
-
//
|
|
3683
|
-
const shouldNotIgnoreUpdate =
|
|
3697
|
+
// Desktop: sync when displayed month differs from left or right panel anchor. Mobile: single month only.
|
|
3698
|
+
const shouldNotIgnoreUpdate = isMobileView
|
|
3699
|
+
? !uuiDayjs.dayjs(month).isSame(monthToSet, 'month')
|
|
3700
|
+
: !(uuiDayjs.dayjs(month).isSame(monthToSet, 'month') || uuiDayjs.dayjs(month).add(1, 'month').isSame(monthToSet, 'month'));
|
|
3684
3701
|
if (shouldNotIgnoreUpdate) {
|
|
3685
3702
|
setMonth(monthToSet);
|
|
3686
3703
|
}
|
|
3687
3704
|
}, [selectedDate]);
|
|
3688
|
-
return (React__default.createElement("div", { ref: ref, className: cx(css$
|
|
3689
|
-
React__default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$
|
|
3690
|
-
React__default.createElement(FlexCell, { width: "auto" },
|
|
3691
|
-
React__default.createElement(FlexRow,
|
|
3692
|
-
React__default.createElement(FlexRow, { cx: css$
|
|
3693
|
-
React__default.createElement(StatelessDatePickerBody, { key: "date-picker-body-left", cx: cx(css$
|
|
3705
|
+
return (React__default.createElement("div", { ref: ref, className: cx(css$M.root, uuiDatePickerBodyBase.container, props.cx), ...props.rawProps, "aria-multiselectable": "true" },
|
|
3706
|
+
React__default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$M.daySelection, isMobileView && css$M.mobile, css$M.container], alignItems: "top" },
|
|
3707
|
+
React__default.createElement(FlexCell, { width: "auto", grow: 1 },
|
|
3708
|
+
React__default.createElement(FlexRow, { alignItems: isMobileView ? 'stretch' : undefined },
|
|
3709
|
+
React__default.createElement(FlexRow, { cx: css$M.bodesWrapper, alignItems: "top" },
|
|
3710
|
+
React__default.createElement(StatelessDatePickerBody, { key: "date-picker-body-left", cx: cx(css$M.fromPicker), ...from, onValueChange: (v) => onBodyValueChange(v), onMonthChange: (m) => {
|
|
3694
3711
|
setMonth(m);
|
|
3695
3712
|
}, onViewChange: (v) => {
|
|
3696
3713
|
setView(v);
|
|
3697
3714
|
setDisabledPanel(v !== 'DAY_SELECTION' ? 'right' : null);
|
|
3698
|
-
}, filter: props.filter, isHoliday: props.isHoliday, renderDay: props.renderDay || renderDay, isDisabled: disabledPanel === 'left' }),
|
|
3699
|
-
React__default.createElement(StatelessDatePickerBody, { key: "date-picker-body-right", cx: cx(css$
|
|
3715
|
+
}, filter: props.filter, isHoliday: props.isHoliday, renderDay: props.renderDay || renderDay, isDisabled: disabledPanel === 'left', size: isMobileView ? '36' : undefined }),
|
|
3716
|
+
!isMobileView && (React__default.createElement(StatelessDatePickerBody, { key: "date-picker-body-right", cx: cx(css$M.toPicker), ...to, onValueChange: (v) => onBodyValueChange(v), onMonthChange: (m) => {
|
|
3700
3717
|
setMonth(m.subtract(1, 'month'));
|
|
3701
3718
|
}, onViewChange: (v) => {
|
|
3702
3719
|
setView(v);
|
|
3703
3720
|
setDisabledPanel(v !== 'DAY_SELECTION' ? 'left' : null);
|
|
3704
|
-
}, filter: props.filter, renderDay: props.renderDay || renderDay, isHoliday: props.isHoliday, isDisabled: disabledPanel === 'right' }),
|
|
3705
|
-
view !== 'DAY_SELECTION' && (React__default.createElement("div", { style: {
|
|
3721
|
+
}, filter: props.filter, renderDay: props.renderDay || renderDay, isHoliday: props.isHoliday, isDisabled: disabledPanel === 'right' })),
|
|
3722
|
+
!isMobileView && view !== 'DAY_SELECTION' && (React__default.createElement("div", { style: {
|
|
3706
3723
|
left: disabledPanel === 'right' ? '50%' : undefined,
|
|
3707
3724
|
right: disabledPanel === 'left' ? '50%' : undefined,
|
|
3708
|
-
}, className: css$
|
|
3725
|
+
}, className: css$M.blocker }))),
|
|
3709
3726
|
props.presets && renderPresets(props.presets)),
|
|
3710
|
-
props.renderFooter && props.renderFooter()))));
|
|
3727
|
+
props.renderFooter && (React__default.createElement("div", { className: "uui-range-datepicker-body-footer" }, props.renderFooter()))))));
|
|
3711
3728
|
}
|
|
3712
3729
|
const getDayCX = ({ inRange, isFirst, isLast }) => {
|
|
3713
3730
|
return [
|
|
@@ -3734,7 +3751,48 @@ const getDayState = (day, selectedDate) => {
|
|
|
3734
3751
|
};
|
|
3735
3752
|
};
|
|
3736
3753
|
|
|
3737
|
-
var css$
|
|
3754
|
+
var css$L = {"root":"VSgNsB","modal-title":"d7fK8R","modalTitle":"d7fK8R","range-selector":"_19UJz6","rangeSelector":"_19UJz6","range-selector-button":"Ig4ijh","rangeSelectorButton":"Ig4ijh","header-range-separator":"QZ-ddQ","headerRangeSeparator":"QZ-ddQ","body":"YWoAoo"};
|
|
3755
|
+
|
|
3756
|
+
function RangeDatePickerModal({ success, abort, isActive, zIndex, key, pickerProps, initialValue, }) {
|
|
3757
|
+
const [modalValue, setModalValue] = useState(initialValue);
|
|
3758
|
+
const [inFocus, setInFocus] = useState(pickerProps.initialInFocus ?? 'from');
|
|
3759
|
+
const onModalBodyValueChange = (newValue) => {
|
|
3760
|
+
setInFocus(newValue.inFocus ?? inFocus);
|
|
3761
|
+
setModalValue(newValue.selectedDate);
|
|
3762
|
+
};
|
|
3763
|
+
const onClearAll = useCallback(() => {
|
|
3764
|
+
setModalValue((prevValue) => ({
|
|
3765
|
+
from: pickerProps.preventEmptyFromDate ? prevValue.from : null,
|
|
3766
|
+
to: pickerProps.preventEmptyToDate ? prevValue.to : null,
|
|
3767
|
+
}));
|
|
3768
|
+
}, [pickerProps.preventEmptyFromDate, pickerProps.preventEmptyToDate]);
|
|
3769
|
+
const getDateButtonCaption = (date, placeholder) => {
|
|
3770
|
+
return date ? toCustomDateFormat(date, defaultFormatShort) : placeholder;
|
|
3771
|
+
};
|
|
3772
|
+
const startDateButtonCaption = useMemo(() => getDateButtonCaption(modalValue?.from ?? null, i18n.rangeDatePicker.mobileModalStartPlaceholder), [modalValue?.from]);
|
|
3773
|
+
const endDateButtonCaption = useMemo(() => getDateButtonCaption(modalValue?.to ?? null, i18n.rangeDatePicker.mobileModalEndPlaceholder), [modalValue?.to]);
|
|
3774
|
+
const hideClearButton = pickerProps.disableClear || (pickerProps.preventEmptyToDate && pickerProps.preventEmptyFromDate);
|
|
3775
|
+
const renderModalHeaderTitle = () => {
|
|
3776
|
+
return (React__default.createElement(FlexCell, null,
|
|
3777
|
+
React__default.createElement("h4", { className: css$L.modalTitle }, i18n.rangeDatePicker.mobileModalTitle),
|
|
3778
|
+
React__default.createElement("h2", { className: css$L.rangeSelector },
|
|
3779
|
+
React__default.createElement(LinkButton, { cx: css$L.rangeSelectorButton, color: inFocus === 'from' ? 'primary' : 'secondary', size: "36", caption: startDateButtonCaption, onClick: () => setInFocus('from') }),
|
|
3780
|
+
React__default.createElement("span", { className: css$L.headerRangeSeparator }, " \u2013 "),
|
|
3781
|
+
React__default.createElement(LinkButton, { cx: css$L.rangeSelectorButton, color: inFocus === 'to' ? 'primary' : 'secondary', size: "36", caption: endDateButtonCaption, onClick: () => setInFocus('to') }))));
|
|
3782
|
+
};
|
|
3783
|
+
return (React__default.createElement(ModalBlocker, { key: key, isActive: isActive, zIndex: zIndex, success: () => success(modalValue), abort: abort },
|
|
3784
|
+
React__default.createElement(ModalWindow, { cx: css$L.root },
|
|
3785
|
+
React__default.createElement(ModalHeader, { title: renderModalHeaderTitle(), borderBottom: true, onClose: abort }),
|
|
3786
|
+
React__default.createElement(FlexRow, { cx: css$L.body, alignItems: "stretch" },
|
|
3787
|
+
React__default.createElement(RangeDatePickerBody, { cx: cx(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 })),
|
|
3788
|
+
React__default.createElement(ModalFooter, { borderTop: true },
|
|
3789
|
+
!hideClearButton && React__default.createElement(Button, { fill: "ghost", color: "primary", caption: i18n.rangeDatePicker.mobileModalClearAll, onClick: onClearAll, icon: ForwardRef$D }),
|
|
3790
|
+
React__default.createElement(FlexSpacer, null),
|
|
3791
|
+
React__default.createElement(Button, { fill: "outline", color: "secondary", caption: i18n.rangeDatePicker.mobileModalCancel, onClick: abort }),
|
|
3792
|
+
React__default.createElement(Button, { color: "primary", caption: i18n.rangeDatePicker.mobileModalApply, onClick: () => success(modalValue) })))));
|
|
3793
|
+
}
|
|
3794
|
+
|
|
3795
|
+
var css$K = {"dropdown-container":"fE4YH2","dropdownContainer":"fE4YH2"};
|
|
3738
3796
|
|
|
3739
3797
|
function RangeDatePickerComponent(props, ref) {
|
|
3740
3798
|
const { value: _value, format = defaultFormat, size = settings.rangeDatePicker.sizes.default } = props;
|
|
@@ -3742,7 +3800,8 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
3742
3800
|
const context = useUuiContext();
|
|
3743
3801
|
const [isOpen, setIsOpen] = useState(false);
|
|
3744
3802
|
const [inFocus, setInFocus] = useState(null);
|
|
3745
|
-
const targetRef =
|
|
3803
|
+
const targetRef = useRef(null);
|
|
3804
|
+
const isMobileView = isMobile();
|
|
3746
3805
|
useImperativeHandle(ref, () => targetRef.current);
|
|
3747
3806
|
const onValueChange = (newValue) => {
|
|
3748
3807
|
const fromChanged = value?.from !== newValue?.from;
|
|
@@ -3777,32 +3836,68 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
3777
3836
|
onOpenChange(false);
|
|
3778
3837
|
}
|
|
3779
3838
|
};
|
|
3780
|
-
const renderBody = (renderProps) => {
|
|
3781
|
-
return (React__default.createElement(DropdownContainer, { ...renderProps, cx: cx(css$K.dropdownContainer), shards: [targetRef], returnFocus: true },
|
|
3782
|
-
React__default.createElement(FlexRow, null,
|
|
3783
|
-
React__default.createElement(RangeDatePickerBody, { cx: cx(props.bodyCx), value: {
|
|
3784
|
-
selectedDate: _value,
|
|
3785
|
-
inFocus,
|
|
3786
|
-
}, onValueChange: onBodyValueChange, filter: props.filter, presets: props.presets, renderDay: props.renderDay, renderFooter: () => {
|
|
3787
|
-
return props.renderFooter?.(value);
|
|
3788
|
-
}, isHoliday: props.isHoliday, rawProps: props.rawProps?.body, preventEmptyToDate: props.preventEmptyToDate, preventEmptyFromDate: props.preventEmptyFromDate, initialViewMonth: props.initialViewMonth }))));
|
|
3789
|
-
};
|
|
3790
3839
|
const handleEscape = (e) => {
|
|
3791
3840
|
if (e.key === 'Escape' && isOpen) {
|
|
3792
3841
|
e.preventDefault();
|
|
3793
3842
|
onOpenChange(false);
|
|
3794
3843
|
}
|
|
3795
3844
|
};
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3845
|
+
const openModal = () => {
|
|
3846
|
+
if (props.isDisabled || props.isReadonly)
|
|
3847
|
+
return;
|
|
3848
|
+
const valueBeforeOpen = { ...value };
|
|
3849
|
+
props.onOpenChange?.(true);
|
|
3850
|
+
context.uuiModals.show((modalProps) => (React__default.createElement(RangeDatePickerModal, { ...modalProps, pickerProps: { ...props, initialInFocus: inFocus }, initialValue: valueBeforeOpen })))
|
|
3851
|
+
.then((result) => {
|
|
3852
|
+
if (result) {
|
|
3853
|
+
onValueChange(result);
|
|
3854
|
+
}
|
|
3855
|
+
})
|
|
3856
|
+
.catch(() => {
|
|
3857
|
+
onValueChange(valueBeforeOpen);
|
|
3858
|
+
})
|
|
3859
|
+
.finally(() => {
|
|
3860
|
+
props.onOpenChange?.(false);
|
|
3861
|
+
});
|
|
3862
|
+
};
|
|
3863
|
+
const onInputClick = (dropdownRenderProps) => {
|
|
3864
|
+
if (isMobileView) {
|
|
3865
|
+
openModal();
|
|
3866
|
+
}
|
|
3867
|
+
else {
|
|
3868
|
+
dropdownRenderProps?.toggleDropdownOpening?.(true);
|
|
3869
|
+
}
|
|
3870
|
+
};
|
|
3871
|
+
const renderInput = (dropdownRenderProps) => (React__default.createElement(RangeDatePickerInput, { id: props.id, ref: (node) => {
|
|
3872
|
+
dropdownRenderProps?.ref?.(node);
|
|
3873
|
+
targetRef.current = node;
|
|
3874
|
+
}, 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) => {
|
|
3875
|
+
props.onFocus?.(e, type);
|
|
3876
|
+
setInFocus(type);
|
|
3877
|
+
}, onBlurInput: (e, type) => {
|
|
3878
|
+
props.onBlur?.(e, type);
|
|
3879
|
+
(!isOpen || isMobileView) && setInFocus(null);
|
|
3880
|
+
}, onKeyDown: !isMobileView ? handleEscape : undefined, preventEmptyFromDate: props.preventEmptyFromDate, preventEmptyToDate: props.preventEmptyToDate }));
|
|
3881
|
+
if (isMobileView) {
|
|
3882
|
+
const mobileTogglerProps = {
|
|
3883
|
+
isOpen: false,
|
|
3884
|
+
toggleDropdownOpening: openModal,
|
|
3885
|
+
onClick: openModal,
|
|
3886
|
+
ref: (node) => {
|
|
3887
|
+
targetRef.current = node;
|
|
3888
|
+
},
|
|
3889
|
+
};
|
|
3890
|
+
const customTarget = props.renderTarget?.(mobileTogglerProps);
|
|
3891
|
+
return (React__default.isValidElement(customTarget) ? customTarget : renderInput());
|
|
3892
|
+
}
|
|
3893
|
+
const renderBody = (renderProps) => (React__default.createElement(DropdownContainer, { ...renderProps, cx: css$K.dropdownContainer, shards: [targetRef], returnFocus: true },
|
|
3894
|
+
React__default.createElement(FlexRow, null,
|
|
3895
|
+
React__default.createElement(RangeDatePickerBody, { cx: cx(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 }))));
|
|
3896
|
+
return (React__default.createElement(Dropdown$1, { renderTarget: (rp) => props.renderTarget?.(rp) || renderInput(rp), renderBody: renderBody, onValueChange: onOpenChange, value: isOpen, middleware: [offset(6)], placement: props.placement, ref: ref }));
|
|
3802
3897
|
}
|
|
3803
3898
|
const RangeDatePicker = /* @__PURE__ */React__default.forwardRef(RangeDatePickerComponent);
|
|
3804
3899
|
|
|
3805
|
-
var css$J = {"root":"
|
|
3900
|
+
var css$J = {"root":"maTKp4","blocker":"gYjwcI","marker":"Ff4Pem","top":"I0IWd3","bottom":"VnDksB","left":"NnyvlD","right":"XUX7Ti","inside":"CvOpcI"};
|
|
3806
3901
|
|
|
3807
3902
|
function DropMarker(props) {
|
|
3808
3903
|
return props.isDndInProgress
|
|
@@ -3817,9 +3912,9 @@ function DropMarker(props) {
|
|
|
3817
3912
|
: null;
|
|
3818
3913
|
}
|
|
3819
3914
|
|
|
3820
|
-
var css$I = {"root":"
|
|
3915
|
+
var css$I = {"root":"g-azNb","search-wrapper":"JHMbZN","searchWrapper":"JHMbZN","no-data":"_-4M4vI","noData":"_-4M4vI","empty-status-announcer":"LkRzVU","emptyStatusAnnouncer":"LkRzVU"};
|
|
3821
3916
|
|
|
3822
|
-
var css$H = {"picker-row":"
|
|
3917
|
+
var css$H = {"picker-row":"hYBwLX","pickerRow":"hYBwLX","align-widgets-top":"_6Hepcm","alignWidgetsTop":"_6Hepcm","row-content":"SMnTSq","rowContent":"SMnTSq","align-widgets-center":"F6ufsC","alignWidgetsCenter":"F6ufsC","icon-container":"xuXXsH","iconContainer":"xuXXsH","content-wrapper":"_6OAqMx","contentWrapper":"_6OAqMx","icon-wrapper":"SWfkLg","iconWrapper":"SWfkLg","icon-default":"nW0aHI","iconDefault":"nW0aHI","selected-mark":"lUqefC","selectedMark":"lUqefC"};
|
|
3823
3918
|
|
|
3824
3919
|
const mergeHighlightRanges = (ranges) => {
|
|
3825
3920
|
const mergedRanges = [];
|
|
@@ -3886,7 +3981,7 @@ const getHighlightedSearchMatches = (str, search) => {
|
|
|
3886
3981
|
return getDecoratedText(str, ranges);
|
|
3887
3982
|
};
|
|
3888
3983
|
|
|
3889
|
-
var css$G = {"root":"
|
|
3984
|
+
var css$G = {"root":"XVZ0ZG","column-gap":"nOU9VB","columnGap":"nOU9VB","title":"XbAzli","subtitle":"SXIiEv","disabled":"ygP3K7","multiline":"s5-Gyb"};
|
|
3890
3985
|
|
|
3891
3986
|
function PickerItem(props) {
|
|
3892
3987
|
const { highlightSearchMatches = true, size, avatarUrl, isLoading, isDisabled, icon, } = props;
|
|
@@ -4112,7 +4207,7 @@ function DataPickerFooterImpl(props) {
|
|
|
4112
4207
|
}
|
|
4113
4208
|
const DataPickerFooter = /* @__PURE__ */React__default.memo(DataPickerFooterImpl);
|
|
4114
4209
|
|
|
4115
|
-
var css$F = {"header":"
|
|
4210
|
+
var css$F = {"header":"-Mb28k","title":"ax8PlP","close":"NoGLtT"};
|
|
4116
4211
|
|
|
4117
4212
|
const DataPickerMobileHeaderImpl = (props) => {
|
|
4118
4213
|
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
@@ -4122,7 +4217,7 @@ const DataPickerMobileHeaderImpl = (props) => {
|
|
|
4122
4217
|
};
|
|
4123
4218
|
const DataPickerMobileHeader = /* @__PURE__ */React__default.memo(DataPickerMobileHeaderImpl);
|
|
4124
4219
|
|
|
4125
|
-
var css$E = {"done":"
|
|
4220
|
+
var css$E = {"done":"zefP-H","container":"PCAgME"};
|
|
4126
4221
|
|
|
4127
4222
|
const PickerBodyMobileView = (props) => {
|
|
4128
4223
|
const isMobileView = isMobile();
|
|
@@ -4134,7 +4229,7 @@ const PickerBodyMobileView = (props) => {
|
|
|
4134
4229
|
isMobileView && (React__default.createElement(LinkButton, { caption: i18n.pickerInput.doneButton, onClick: () => props.onClose?.(), cx: css$E.done, size: settings.pickerInput.sizes.body.mobileFooterLinkButton }))));
|
|
4135
4230
|
};
|
|
4136
4231
|
|
|
4137
|
-
var css$D = {"sub-header-wrapper":"
|
|
4232
|
+
var css$D = {"sub-header-wrapper":"j5kReQ","subHeaderWrapper":"j5kReQ","switch":"wTgQjb","search":"_4HWXVh","no-found-modal-container":"QP5BBm","noFoundModalContainer":"QP5BBm","no-found-modal-container-icon":"MiGWYg","noFoundModalContainerIcon":"MiGWYg","no-found-modal-container-text":"H6zS0F","noFoundModalContainerText":"H6zS0F","body":"_1c-rqy"};
|
|
4138
4233
|
|
|
4139
4234
|
function PickerModal(props) {
|
|
4140
4235
|
const { view, selection, dataSourceStateLens, dataSourceState, getName, clearSelection, getRows, getListProps, getFooterProps, isSingleSelect, handleDataSourceValueChange, } = usePickerModal(props);
|
|
@@ -4148,8 +4243,9 @@ function PickerModal(props) {
|
|
|
4148
4243
|
const isEmptyRowsAndHasNoSelection = (rowsCount === 0 || !hasSelection);
|
|
4149
4244
|
const showClear = !props.disableClear && (isSingleSelect() ? true : (!view.selectAll || hasSelection));
|
|
4150
4245
|
const isClearDisabled = isSearching || isEmptyRowsAndHasNoSelection;
|
|
4246
|
+
const isSelectAllDisabled = isSearching;
|
|
4151
4247
|
return (React__default.createElement(React__default.Fragment, null,
|
|
4152
|
-
view.selectAll && !hasSelection && (React__default.createElement(LinkButton, { caption: i18n.pickerModal.selectAllButton, onClick: () => view.selectAll.onValueChange(true) })),
|
|
4248
|
+
view.selectAll && !hasSelection && (React__default.createElement(LinkButton, { caption: i18n.pickerModal.selectAllButton, onClick: () => view.selectAll.onValueChange(true), isDisabled: isSelectAllDisabled })),
|
|
4153
4249
|
showClear && (React__default.createElement(LinkButton, { caption: isSingleSelect() ? i18n.pickerModal.clearButton : i18n.pickerModal.clearAllButton, onClick: () => clearSelection(), isDisabled: isClearDisabled })),
|
|
4154
4250
|
React__default.createElement(FlexSpacer, null),
|
|
4155
4251
|
React__default.createElement(Button, { fill: "outline", color: "secondary", caption: i18n.pickerModal.cancelButton, onClick: () => props.abort() }),
|
|
@@ -4195,7 +4291,7 @@ function PickerModal(props) {
|
|
|
4195
4291
|
React__default.createElement(ModalFooter, null, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
|
|
4196
4292
|
}
|
|
4197
4293
|
|
|
4198
|
-
var css$C = {"tooltip":"
|
|
4294
|
+
var css$C = {"tooltip":"eIVRis","noShrink":"LXn8Mh"};
|
|
4199
4295
|
|
|
4200
4296
|
const PickerTogglerTag = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
4201
4297
|
const tagProps = {
|
|
@@ -4214,7 +4310,7 @@ const PickerTogglerTag = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
4214
4310
|
}
|
|
4215
4311
|
});
|
|
4216
4312
|
|
|
4217
|
-
var css$B = {"root":"
|
|
4313
|
+
var css$B = {"root":"L8USrH"};
|
|
4218
4314
|
|
|
4219
4315
|
const defaultMode = EditMode.FORM;
|
|
4220
4316
|
function applyPickerTogglerMods(mods) {
|
|
@@ -4296,7 +4392,7 @@ function PickerInputComponent(props, ref) {
|
|
|
4296
4392
|
}
|
|
4297
4393
|
const PickerInput = /* @__PURE__ */React__default.forwardRef(PickerInputComponent);
|
|
4298
4394
|
|
|
4299
|
-
var css$A = {"row":"
|
|
4395
|
+
var css$A = {"row":"lRAjnR"};
|
|
4300
4396
|
|
|
4301
4397
|
function PickerListRow(props) {
|
|
4302
4398
|
let label;
|
|
@@ -4316,7 +4412,7 @@ function PickerListRow(props) {
|
|
|
4316
4412
|
return (React__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));
|
|
4317
4413
|
}
|
|
4318
4414
|
|
|
4319
|
-
var css$z = {"root":"
|
|
4415
|
+
var css$z = {"root":"MfXVcE"};
|
|
4320
4416
|
|
|
4321
4417
|
function PickerList(props) {
|
|
4322
4418
|
const { context, view, onlySelectedView, getName, getEntityName, appendLastSelected, getSelectedIdsArray, buildRowsList, getMaxDefaultItems, getModalTogglerCaption, } = usePickerList(props);
|
|
@@ -4351,7 +4447,7 @@ function PickerList(props) {
|
|
|
4351
4447
|
}, selectedRows)));
|
|
4352
4448
|
}
|
|
4353
4449
|
|
|
4354
|
-
var css$y = {"root":"
|
|
4450
|
+
var css$y = {"root":"uZ2Iff","wrapper":"IuoS6S","align-widgets-top":"kBOnKx","alignWidgetsTop":"kBOnKx","align-widgets-center":"u95m29","alignWidgetsCenter":"u95m29"};
|
|
4355
4451
|
|
|
4356
4452
|
function DataTableCell(initialProps) {
|
|
4357
4453
|
const props = { ...initialProps };
|
|
@@ -4401,7 +4497,7 @@ function DataTableCell(initialProps) {
|
|
|
4401
4497
|
return React.createElement(DataTableCell$1, { ...props });
|
|
4402
4498
|
}
|
|
4403
4499
|
|
|
4404
|
-
var css$x = {"root":"
|
|
4500
|
+
var css$x = {"root":"HzWMvC"};
|
|
4405
4501
|
|
|
4406
4502
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
4407
4503
|
// 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.
|
|
@@ -4417,7 +4513,7 @@ const DataTableRow = /* @__PURE__ */withMods(DataTableRow$1, ({ borderBottom = t
|
|
|
4417
4513
|
];
|
|
4418
4514
|
}, () => propsMods);
|
|
4419
4515
|
|
|
4420
|
-
var css$w = {"sorting-panel-container":"
|
|
4516
|
+
var css$w = {"sorting-panel-container":"hQ3TXR","sortingPanelContainer":"hQ3TXR"};
|
|
4421
4517
|
|
|
4422
4518
|
const SortingPanelImpl = ({ sortDirection, onSort }) => {
|
|
4423
4519
|
const sortAsc = useCallback(() => onSort(sortDirection === 'asc' ? undefined : 'asc'), [onSort]);
|
|
@@ -4439,7 +4535,7 @@ const ColumnHeaderDropdownImpl = (props) => {
|
|
|
4439
4535
|
};
|
|
4440
4536
|
const ColumnHeaderDropdown = /* @__PURE__ */React__default.memo(ColumnHeaderDropdownImpl);
|
|
4441
4537
|
|
|
4442
|
-
var css$v = {"root":"
|
|
4538
|
+
var css$v = {"root":"NZc-5s","caption-wrapper":"-KU0WS","captionWrapper":"-KU0WS","sort-icon":"-PD0q-","sortIcon":"-PD0q-","dropdown-icon":"e1tAA8","dropdownIcon":"e1tAA8","infoIcon":"ccjQLB","sortInActive":"FT9gxO","align-right":"m11YXm","alignRight":"m11YXm","align-center":"ypHU9O","alignCenter":"ypHU9O","caption":"ykoctV","truncate":"z3aVQ0","upper-case":"lwcyv5","upperCase":"lwcyv5","checkbox":"RkkkyD","icon":"Hw8NQ4","fold-all-icon":"CGqLvA","foldAllIcon":"CGqLvA","cell-tooltip":"wI1QeH","cellTooltip":"wI1QeH","resizing-marker":"l6Mg8J","resizingMarker":"l6Mg8J","pinned-right":"js1CMU","pinnedRight":"js1CMU","draggable":"ZuOdmh","ghost":"KhpHLS","is-dragged-out":"FILfda","isDraggedOut":"FILfda","dnd-marker-left":"D-dJho","dndMarkerLeft":"D-dJho","dnd-marker-right":"Oe1ICL","dndMarkerRight":"Oe1ICL","cell-tooltip-wrapper":"uvmSEg","cellTooltipWrapper":"uvmSEg","cell-tooltip-text":"G7fK2h","cellTooltipText":"G7fK2h","tooltip-caption":"lnr6kY","tooltipCaption":"lnr6kY","tooltip-info":"RJmkRt","tooltipInfo":"RJmkRt"};
|
|
4443
4539
|
|
|
4444
4540
|
function DefaultTooltipContent(column) {
|
|
4445
4541
|
return (React__default.createElement("div", { className: cx$1(css$v.cellTooltipWrapper, uuiDataTableHeaderCell.uuiTableHeaderCaptionTooltip) },
|
|
@@ -4546,7 +4642,7 @@ function DataTableHeaderCell(props) {
|
|
|
4546
4642
|
return (React__default.createElement(DataTableHeaderCell$1, { ...props, renderCellContent: props.column.renderFilter ? renderCellWithFilter : renderCellContent }));
|
|
4547
4643
|
}
|
|
4548
4644
|
|
|
4549
|
-
var css$u = {"root":"
|
|
4645
|
+
var css$u = {"root":"TgVDKm","caption-wrapper":"xkmLVf","captionWrapper":"xkmLVf","align-center":"_8zHMCK","alignCenter":"_8zHMCK","caption":"_4phdT0","truncate":"eQZHj7","upper-case":"xmIT9c","upperCase":"xmIT9c","group-cell-tooltip":"F5zBLG","groupCellTooltip":"F5zBLG","group-cell-tooltip-wrapper":"_08kLnz","groupCellTooltipWrapper":"_08kLnz","group-cell-tooltip-text":"cD4YrM","groupCellTooltipText":"cD4YrM","tooltip-caption":"aTbKVi","tooltipCaption":"aTbKVi","tooltip-info":"ScLDLv","tooltipInfo":"ScLDLv"};
|
|
4550
4646
|
|
|
4551
4647
|
class DataTableHeaderGroupCell extends React.Component {
|
|
4552
4648
|
constructor() {
|
|
@@ -4586,7 +4682,7 @@ class DataTableHeaderGroupCell extends React.Component {
|
|
|
4586
4682
|
}
|
|
4587
4683
|
}
|
|
4588
4684
|
|
|
4589
|
-
var css$t = {"root":"
|
|
4685
|
+
var css$t = {"root":"lAeVhN"};
|
|
4590
4686
|
|
|
4591
4687
|
const DataTableHeaderRow = /* @__PURE__ */withMods(DataTableHeaderRow$1, () => [css$t.root, 'uui-dt-vars'], (mods) => {
|
|
4592
4688
|
return ({
|
|
@@ -4694,7 +4790,7 @@ const UUI_FILTERS_PANEL_ITEM_TOGGLER_SELECTION = 'uui-filters-panel-item-toggler
|
|
|
4694
4790
|
const UUI_FILTERS_PANEL_ITEM_TOGGLER_POSTFIX = 'uui-filters-panel-item-toggler-postfix';
|
|
4695
4791
|
const UUI_FILTERS_PANEL_BODY_FOOTER = 'uui-filters-panel-item-footer';
|
|
4696
4792
|
|
|
4697
|
-
var css$s = {"body":"
|
|
4793
|
+
var css$s = {"body":"TqSg0j","header":"bOBsSW","title":"Tbo4nZ","removeButton":"cooe-z","with-search":"_2NAhMN","withSearch":"_2NAhMN"};
|
|
4698
4794
|
|
|
4699
4795
|
function FilterColumnBody(props) {
|
|
4700
4796
|
const [predicate, setPredicate] = useState(getDefaultPredicate(props.predicates, props.value));
|
|
@@ -4755,7 +4851,7 @@ const useColumnsWithFilters = (initialColumns, filters) => {
|
|
|
4755
4851
|
return columns;
|
|
4756
4852
|
};
|
|
4757
4853
|
|
|
4758
|
-
var css$r = {"unpin-icon":"
|
|
4854
|
+
var css$r = {"unpin-icon":"vXmzyX","unpinIcon":"vXmzyX","pin-toggler-icon":"zVzaKP","pinTogglerIcon":"zVzaKP"};
|
|
4759
4855
|
|
|
4760
4856
|
function PinIconButton(props) {
|
|
4761
4857
|
const i18nLocal = i18n.tables.columnsConfigurationModal;
|
|
@@ -4806,7 +4902,7 @@ function getUnpinIcon(params) {
|
|
|
4806
4902
|
}
|
|
4807
4903
|
}
|
|
4808
4904
|
|
|
4809
|
-
var css$q = {"row-wrapper":"
|
|
4905
|
+
var css$q = {"row-wrapper":"pLaZwu","rowWrapper":"pLaZwu","pin-icon-button":"N-ctBI","pinIconButton":"N-ctBI","not-pinned":"Z4u1KG","notPinned":"Z4u1KG","checkbox":"_8HyNGS","drag-handle":"L6T6iF","dragHandle":"L6T6iF","dnd-disabled":"tiNByr","dndDisabled":"tiNByr"};
|
|
4810
4906
|
|
|
4811
4907
|
const ColumnRow = /* @__PURE__ */React.memo(function ColumnRow(props) {
|
|
4812
4908
|
const { column } = props;
|
|
@@ -4840,7 +4936,7 @@ const ColumnRow = /* @__PURE__ */React.memo(function ColumnRow(props) {
|
|
|
4840
4936
|
return (React.createElement(DndActor, { key: column.key, srcData: isDndAllowed && data, dstData: data, canAcceptDrop: onCanAcceptDrop, onDrop: onDrop, render: renderContent }));
|
|
4841
4937
|
});
|
|
4842
4938
|
|
|
4843
|
-
var css$p = {"root":"
|
|
4939
|
+
var css$p = {"root":"VwnALR","main-panel":"Q6rotp","mainPanel":"Q6rotp","group":"yPjm-a","group-title":"_1PGI8F","groupTitle":"_1PGI8F","group-items":"TuT-BF","groupItems":"TuT-BF","no-data":"oVgjJ-","noData":"oVgjJ-","no-data-title":"zoOPZQ","noDataTitle":"zoOPZQ","no-data-sub-title":"LPbWaH","noDataSubTitle":"LPbWaH","h-divider":"EoqjDD","hDivider":"EoqjDD","search-area":"_6NP8Q1","searchArea":"_6NP8Q1","subgroup-accordion":"WXihFd","subgroupAccordion":"WXihFd","subgroup":"sGweJS","subgroup-title":"WrPpJS","subgroupTitle":"WrPpJS"};
|
|
4844
4940
|
|
|
4845
4941
|
const renderGroupTitle = (title, amount) => (React.createElement(FlexRow, { cx: css$p.group },
|
|
4846
4942
|
React.createElement(Text, { size: "none", cx: css$p.groupTitle }, title),
|
|
@@ -4943,7 +5039,7 @@ const getChildrenAndRest = (row, rows) => {
|
|
|
4943
5039
|
return [children, rest];
|
|
4944
5040
|
};
|
|
4945
5041
|
|
|
4946
|
-
var css$o = {"listContainer":"
|
|
5042
|
+
var css$o = {"listContainer":"N4bXhB","header":"y4a8Mi","group":"GyltNi","stickyHeader":"P3k0U1"};
|
|
4947
5043
|
|
|
4948
5044
|
function DataRowsGroup({ row, childRows, renderRow, top = 1, }) {
|
|
4949
5045
|
const rowRef = useRef(undefined);
|
|
@@ -4983,7 +5079,7 @@ function DataRowsContainer({ estimatedHeight, listContainerRef, offsetY, rows, r
|
|
|
4983
5079
|
React__default.createElement(DataRowsGroups, { rows: rows, renderRow: renderRow, top: headerRef?.current?.clientHeight }))));
|
|
4984
5080
|
}
|
|
4985
5081
|
|
|
4986
|
-
var css$n = {"root":"
|
|
5082
|
+
var css$n = {"root":"CxwTDc","sticky-header":"jcc8QT","stickyHeader":"jcc8QT","no-results":"zJOAxT","noResults":"zJOAxT","icon":"qr5PGN","title":"oYOMxA"};
|
|
4987
5083
|
|
|
4988
5084
|
function DataTable(props) {
|
|
4989
5085
|
const { uuiModals } = useUuiContext();
|
|
@@ -5033,7 +5129,7 @@ function DataTable(props) {
|
|
|
5033
5129
|
: (React.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 })))));
|
|
5034
5130
|
}
|
|
5035
5131
|
|
|
5036
|
-
var css$m = {"root":"
|
|
5132
|
+
var css$m = {"root":"xbzO0M","title-wrapper":"OEwiXb","titleWrapper":"OEwiXb","title":"gQoYpG","text-wrapper":"Rz0ngv","textWrapper":"Rz0ngv","selection":"_8xsWzs","postfix":"Ufcptz","selected":"MpN-D7"};
|
|
5037
5133
|
|
|
5038
5134
|
const FilterPanelItemToggler = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
5039
5135
|
const togglerPickerOpened = (e) => {
|
|
@@ -5258,7 +5354,7 @@ function FilterRangeDatePickerBody(props) {
|
|
|
5258
5354
|
renderFooter()));
|
|
5259
5355
|
}
|
|
5260
5356
|
|
|
5261
|
-
var css$l = {"container":"
|
|
5357
|
+
var css$l = {"container":"qbiGby"};
|
|
5262
5358
|
|
|
5263
5359
|
function FilterNumericBody({ min, max, step, ...props }) {
|
|
5264
5360
|
const numericInputProps = { min, max, step };
|
|
@@ -5570,7 +5666,7 @@ function FiltersToolbarImpl(props) {
|
|
|
5570
5666
|
}
|
|
5571
5667
|
const FiltersPanel = /* @__PURE__ */React__default.memo(FiltersToolbarImpl);
|
|
5572
5668
|
|
|
5573
|
-
var css$k = {"delete-button":"
|
|
5669
|
+
var css$k = {"delete-button":"vLzS1-","deleteButton":"vLzS1-","tab-button":"WI7PCI","tabButton":"WI7PCI","targetOpen":"_6YWvCG"};
|
|
5574
5670
|
|
|
5575
5671
|
function PresetActionsDropdown(props) {
|
|
5576
5672
|
const { uuiNotifications } = useUuiContext();
|
|
@@ -5587,7 +5683,14 @@ function PresetActionsDropdown(props) {
|
|
|
5587
5683
|
await navigator.clipboard.writeText(link);
|
|
5588
5684
|
successNotificationHandler('Link copied!');
|
|
5589
5685
|
}, [props.activePresetId, props.preset, props.hasPresetChanged, props.getPresetLink, props.tableState]);
|
|
5590
|
-
const onCopyLink =
|
|
5686
|
+
const onCopyLink = useCallback(() => {
|
|
5687
|
+
if (props.onCopyLink) {
|
|
5688
|
+
props.onCopyLink(props.tableState);
|
|
5689
|
+
}
|
|
5690
|
+
else {
|
|
5691
|
+
copyUrlToClipboard();
|
|
5692
|
+
}
|
|
5693
|
+
}, [props.onCopyLink, copyUrlToClipboard]);
|
|
5591
5694
|
const saveInCurrent = useCallback(async (preset) => {
|
|
5592
5695
|
const newPreset = {
|
|
5593
5696
|
...preset,
|
|
@@ -5636,8 +5739,8 @@ function PresetActionsDropdown(props) {
|
|
|
5636
5739
|
React__default.createElement(DropdownMenuButton, { icon: settings.presetsPanel.icons.deleteIcon, caption: "Delete", cx: css$k.deleteButton, onClick: deleteHandler })))));
|
|
5637
5740
|
};
|
|
5638
5741
|
const renderTarget = useCallback((dropdownProps) => {
|
|
5639
|
-
return (React__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 }));
|
|
5640
|
-
}, []);
|
|
5742
|
+
return (React__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' } }));
|
|
5743
|
+
}, [props.preset.id, props.activePresetId]);
|
|
5641
5744
|
return (React__default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end", middleware: [offset(22)] }));
|
|
5642
5745
|
}
|
|
5643
5746
|
|
|
@@ -5646,7 +5749,7 @@ const UUI_PRESETS_PANEL_MORE_BUTTON = 'uui-presets-panel-more-button';
|
|
|
5646
5749
|
const UUI_PRESETS_PANEL_INPUT = 'uui-presets-panel-input';
|
|
5647
5750
|
const UUI_PRESETS_PANEL_PRESET = 'uui-presets-panel-preset';
|
|
5648
5751
|
|
|
5649
|
-
var css$j = {"preset-input-cell":"
|
|
5752
|
+
var css$j = {"preset-input-cell":"VK8sko","presetInputCell":"VK8sko","preset-input":"wqPixg","presetInput":"wqPixg"};
|
|
5650
5753
|
|
|
5651
5754
|
function PresetInput(props) {
|
|
5652
5755
|
const [presetCaption, setPresetCaption] = useState(props.preset?.name || '');
|
|
@@ -5673,7 +5776,7 @@ function PresetInput(props) {
|
|
|
5673
5776
|
React__default.createElement(TextInput, { cx: css$j.presetInput, onValueChange: setPresetCaption, value: presetCaption, onCancel: cancelActionHandler, onAccept: acceptActionHandler, onBlur: newPresetOnBlurHandler, autoFocus: true, maxLength: 50, isReadonly: readonly })));
|
|
5674
5777
|
}
|
|
5675
5778
|
|
|
5676
|
-
var css$i = {"preset":"
|
|
5779
|
+
var css$i = {"preset":"NRLIuK","activePreset":"rgoxly"};
|
|
5677
5780
|
|
|
5678
5781
|
function Preset(props) {
|
|
5679
5782
|
const [isRenamePreset, setIsRenamePreset] = useState(false);
|
|
@@ -5698,7 +5801,7 @@ function Preset(props) {
|
|
|
5698
5801
|
return (React__default.createElement(FlexCell, { key: props.preset.id, alignSelf: "center", width: "auto" }, isRenamePreset ? (React__default.createElement(PresetInput, { onCancel: cancelRenamePreset, onSuccess: handlePresetRename, preset: props.preset })) : (React__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 }))));
|
|
5699
5802
|
}
|
|
5700
5803
|
|
|
5701
|
-
var css$h = {"divider":"
|
|
5804
|
+
var css$h = {"divider":"cJmZbS","dropdownDeleteIcon":"yS24VW","presetsWrapper":"ylCHN0","addPresetContainer":"ZTn-O0","dropContainer":"ntSo0n"};
|
|
5702
5805
|
|
|
5703
5806
|
function PresetsPanel(props) {
|
|
5704
5807
|
const [isAddingPreset, setIsAddingPreset] = useState(false);
|
|
@@ -5747,9 +5850,9 @@ function PresetsPanel(props) {
|
|
|
5747
5850
|
React__default.createElement(AdaptivePanel, { items: getPanelItems() }))));
|
|
5748
5851
|
}
|
|
5749
5852
|
|
|
5750
|
-
var css$g = {"root":"
|
|
5853
|
+
var css$g = {"root":"BJbjH7"};
|
|
5751
5854
|
|
|
5752
|
-
var css$f = {"root":"
|
|
5855
|
+
var css$f = {"root":"jWjjXh","burger-content":"gBgXmQ","burgerContent":"gBgXmQ"};
|
|
5753
5856
|
|
|
5754
5857
|
var _path$3;
|
|
5755
5858
|
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); }
|
|
@@ -5792,7 +5895,7 @@ var SvgNavigationArrowDownOutline = function SvgNavigationArrowDownOutline(props
|
|
|
5792
5895
|
};
|
|
5793
5896
|
var ForwardRef$2 = /*#__PURE__*/forwardRef(SvgNavigationArrowDownOutline);
|
|
5794
5897
|
|
|
5795
|
-
var css$e = {"root":"
|
|
5898
|
+
var css$e = {"root":"idyGIS","button-primary":"f9IR-H","buttonPrimary":"f9IR-H","button-secondary":"-V53iA","buttonSecondary":"-V53iA","hasIcon":"hlXDzD","dropdown":"zM-AIS"};
|
|
5796
5899
|
|
|
5797
5900
|
function applyBurgerButtonMods(props) {
|
|
5798
5901
|
return [
|
|
@@ -5817,13 +5920,13 @@ const BurgerButton = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
5817
5920
|
}, dropdownIcon: ForwardRef$2 }));
|
|
5818
5921
|
});
|
|
5819
5922
|
|
|
5820
|
-
var css$d = {"search-input":"
|
|
5923
|
+
var css$d = {"search-input":"QcMS5W","searchInput":"QcMS5W"};
|
|
5821
5924
|
|
|
5822
5925
|
function BurgerSearch(props) {
|
|
5823
5926
|
return (React.createElement(TextInput$1, { cx: cx(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 }));
|
|
5824
5927
|
}
|
|
5825
5928
|
|
|
5826
|
-
var css$c = {"root":"
|
|
5929
|
+
var css$c = {"root":"geTTK-","group-header":"gpeTOQ","groupHeader":"gpeTOQ","group-name":"gle-Hb","groupName":"gle-Hb","line":"qelIMc"};
|
|
5827
5930
|
|
|
5828
5931
|
function BurgerGroupHeader(props) {
|
|
5829
5932
|
return (React.createElement("div", { className: cx(css$c.root, css$c.groupHeader, 'uui-burger-group-header') },
|
|
@@ -5831,7 +5934,7 @@ function BurgerGroupHeader(props) {
|
|
|
5831
5934
|
React.createElement("span", { className: css$c.groupName }, props.caption)));
|
|
5832
5935
|
}
|
|
5833
5936
|
|
|
5834
|
-
var css$b = {"root":"
|
|
5937
|
+
var css$b = {"root":"UO9-Do","type-primary":"PIlpNQ","typePrimary":"PIlpNQ","type-secondary":"qU1eGt","typeSecondary":"qU1eGt"};
|
|
5835
5938
|
|
|
5836
5939
|
const MainMenuButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
5837
5940
|
const { type, ...clickableProps } = props;
|
|
@@ -5859,7 +5962,7 @@ const MainMenuButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
5859
5962
|
props.isDropdown && (React.createElement(IconContainer, { icon: ForwardRef$P, flipY: props.isOpen }))));
|
|
5860
5963
|
});
|
|
5861
5964
|
|
|
5862
|
-
var css$a = {"dropdown-body":"
|
|
5965
|
+
var css$a = {"dropdown-body":"PPSgL5","dropdownBody":"PPSgL5"};
|
|
5863
5966
|
|
|
5864
5967
|
function MainMenuDropdown(props) {
|
|
5865
5968
|
const handleEscape = (e, onClose, isOpen) => {
|
|
@@ -5905,12 +6008,12 @@ var SvgNavigationGlobalMenuOutlineOutline = function SvgNavigationGlobalMenuOutl
|
|
|
5905
6008
|
};
|
|
5906
6009
|
var ForwardRef$1 = /*#__PURE__*/forwardRef(SvgNavigationGlobalMenuOutlineOutline);
|
|
5907
6010
|
|
|
5908
|
-
var css$9 = {"global-menu-btn":"
|
|
6011
|
+
var css$9 = {"global-menu-btn":"GzyI7l","globalMenuBtn":"GzyI7l","global-menu-icon":"GDsii-","globalMenuIcon":"GDsii-"};
|
|
5909
6012
|
|
|
5910
6013
|
const GlobalMenu = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement("button", { ref: ref, id: "global_menu_toggle", className: cx(css$9.globalMenuBtn, props.cx), ...props.rawProps },
|
|
5911
6014
|
React.createElement(IconContainer, { size: 36, icon: ForwardRef$1, cx: css$9.globalMenuIcon }))));
|
|
5912
6015
|
|
|
5913
|
-
var css$8 = {"container":"
|
|
6016
|
+
var css$8 = {"container":"EgMfTI","open":"jY4JMk","folding-arrow":"_1fZfAN","foldingArrow":"_1fZfAN"};
|
|
5914
6017
|
|
|
5915
6018
|
const MainMenuAvatar = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement("button", { ref: ref, className: cx(css$8.container, props.isDropdown && css$8.dropdown, props.isOpen && css$8.open, props.onClick && uuiMarkers.clickable, props.cx), onClick: props.onClick, ...props.rawProps },
|
|
5916
6019
|
React.createElement(Avatar, { size: "36", img: props.avatarUrl }),
|
|
@@ -5918,15 +6021,15 @@ const MainMenuAvatar = /* @__PURE__ */React.forwardRef((props, ref) => (React.cr
|
|
|
5918
6021
|
props.isDropdown && (React.createElement("div", null,
|
|
5919
6022
|
React.createElement(IconContainer, { size: 18, icon: ForwardRef$P, flipY: props.isOpen, cx: css$8.foldingArrow }))))));
|
|
5920
6023
|
|
|
5921
|
-
var css$7 = {"search-input":"
|
|
6024
|
+
var css$7 = {"search-input":"jqwFHC","searchInput":"jqwFHC"};
|
|
5922
6025
|
|
|
5923
6026
|
const MainMenuSearch = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement(IEditableDebouncer, { ...props, render: (iEditable) => (React.createElement(TextInput$1, { iconPosition: "left", icon: ForwardRef$M, cancelIcon: props.value?.length > 0 && ForwardRef$Q, ...props, ...iEditable, ref: ref, cx: cx$1(css$7.searchInput, props.cx), ...props.rawProps })) })));
|
|
5924
6027
|
|
|
5925
|
-
var css$6 = {"container":"
|
|
6028
|
+
var css$6 = {"container":"vIbwOT"};
|
|
5926
6029
|
|
|
5927
6030
|
const MainMenuIcon = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement(IconButton, { ref: ref, icon: props.icon, cx: cx$1(props.cx, css$6.container), ...props })));
|
|
5928
6031
|
|
|
5929
|
-
var css$5 = {"root":"
|
|
6032
|
+
var css$5 = {"root":"HwvGG9"};
|
|
5930
6033
|
|
|
5931
6034
|
const Anchor = /* @__PURE__ */withMods(Anchor$1, () => [css$5.root]);
|
|
5932
6035
|
|
|
@@ -5984,7 +6087,7 @@ var SvgFileCloudUploadFill = function SvgFileCloudUploadFill(props, ref) {
|
|
|
5984
6087
|
};
|
|
5985
6088
|
var ForwardRef = /*#__PURE__*/forwardRef(SvgFileCloudUploadFill);
|
|
5986
6089
|
|
|
5987
|
-
var css$4 = {"root":"
|
|
6090
|
+
var css$4 = {"root":"FAoAqT","drop-start":"AQOVEh","dropStart":"AQOVEh","drop-over":"mKidgs","dropOver":"mKidgs","link":"VFwgyg","drop-area":"_2Tgn-D","dropArea":"_2Tgn-D","drop-caption":"XhopP-","dropCaption":"XhopP-","icon-blue":"tBJTvU","iconBlue":"tBJTvU"};
|
|
5988
6091
|
|
|
5989
6092
|
function DropSpot(props) {
|
|
5990
6093
|
const getInfoText = typeof props.infoText === 'string'
|
|
@@ -6002,7 +6105,7 @@ function DropSpot(props) {
|
|
|
6002
6105
|
return React.createElement(DropSpot$1, { render: renderAttachmentArea, onFilesDropped: props.onUploadFiles });
|
|
6003
6106
|
}
|
|
6004
6107
|
|
|
6005
|
-
var css$3 = {"root":"
|
|
6108
|
+
var css$3 = {"root":"eyY55a"};
|
|
6006
6109
|
|
|
6007
6110
|
const SvgCircleProgress = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
6008
6111
|
const outsetRadius = props.size / 2 - 1;
|
|
@@ -6013,7 +6116,7 @@ const SvgCircleProgress = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
6013
6116
|
React.createElement("circle", { strokeWidth: 1, fill: "transparent", r: outsetRadius, cx: props.size / 2, cy: props.size / 2 })));
|
|
6014
6117
|
});
|
|
6015
6118
|
|
|
6016
|
-
var css$2 = {"root":"
|
|
6119
|
+
var css$2 = {"root":"NZb9mK","file-name":"_9OqPzX","fileName":"_9OqPzX","default-color":"_87a0ZB","defaultColor":"_87a0ZB","doc-color":"-ebvNn","docColor":"-ebvNn","xls-color":"_0Vf8-h","xlsColor":"_0Vf8-h","pdf-color":"EI5IoV","pdfColor":"EI5IoV","movie-color":"vvcpQ9","movieColor":"vvcpQ9","img-color":"X-bUQp","imgColor":"X-bUQp","mov-color":"WO1L82","movColor":"WO1L82","error-block":"QF6Ux8","errorBlock":"QF6Ux8","icons-block":"UJNQEl","iconsBlock":"UJNQEl"};
|
|
6017
6120
|
|
|
6018
6121
|
const FileCard = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
6019
6122
|
const [isLoadingShow, setIsLoadingShow] = React.useState(true);
|
|
@@ -6133,7 +6236,7 @@ const getErrorPageConfig = () => ({
|
|
|
6133
6236
|
},
|
|
6134
6237
|
});
|
|
6135
6238
|
|
|
6136
|
-
var css$1 = {"container":"
|
|
6239
|
+
var css$1 = {"container":"a4-QzV"};
|
|
6137
6240
|
|
|
6138
6241
|
const ErrorPage = (props) => {
|
|
6139
6242
|
const isMobileScreen = isMobile();
|
|
@@ -6145,10 +6248,10 @@ const ErrorPage = (props) => {
|
|
|
6145
6248
|
props?.supportLink && React__default.createElement("div", { className: "uui-error-support-link" }, props?.supportLink))));
|
|
6146
6249
|
};
|
|
6147
6250
|
|
|
6148
|
-
var css = {"recovery-spinner":"
|
|
6251
|
+
var css = {"recovery-spinner":"AjJ461","recoverySpinner":"AjJ461","recovery-message":"xNogIo","recoveryMessage":"xNogIo","modal-blocker":"_78gUq2","modalBlocker":"_78gUq2","modalFadeIn":"BjVnvb"};
|
|
6149
6252
|
|
|
6150
6253
|
function ErrorHandler(props) {
|
|
6151
|
-
const { uuiNotifications, uuiModals, uuiApi } = useUuiContext();
|
|
6254
|
+
const { uuiNotifications, uuiModals, uuiApi, uuiLayout } = useUuiContext();
|
|
6152
6255
|
const { errorType, errorInfo } = useUuiError({
|
|
6153
6256
|
getErrorInfo: props.getErrorInfo,
|
|
6154
6257
|
options: { errorConfig: getErrorPageConfig(), recoveryConfig: getRecoveryMessageConfig() },
|
|
@@ -6168,7 +6271,7 @@ function ErrorHandler(props) {
|
|
|
6168
6271
|
};
|
|
6169
6272
|
const renderRecoveryBlocker = (errorInform) => {
|
|
6170
6273
|
const { title, subtitle } = errorInform;
|
|
6171
|
-
return (React__default.createElement(ModalBlocker, { key: "recovery-blocker", cx: css.modalBlocker, isActive: true, zIndex:
|
|
6274
|
+
return (React__default.createElement(ModalBlocker, { key: "recovery-blocker", cx: css.modalBlocker, isActive: true, zIndex: uuiLayout.getTopOverlayZIndex(), success: () => { }, abort: () => { } },
|
|
6172
6275
|
React__default.createElement(ModalWindow, null,
|
|
6173
6276
|
React__default.createElement(ModalHeader, { borderBottom: true, title: title }),
|
|
6174
6277
|
React__default.createElement(Spinner, { cx: css.recoverySpinner }),
|