@epam/uui 6.2.0-alpha.1 → 6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/buttons/LinkButton.d.ts +2 -2
- package/components/buttons/LinkButton.d.ts.map +1 -1
- package/components/buttons/TabButton.d.ts +2 -2
- package/components/buttons/TabButton.d.ts.map +1 -1
- package/components/buttons/VerticalTabButton.d.ts +61 -4
- package/components/buttons/VerticalTabButton.d.ts.map +1 -1
- package/components/filters/PresetPanel/Preset.d.ts +1 -0
- package/components/filters/PresetPanel/Preset.d.ts.map +1 -1
- package/components/filters/PresetPanel/PresetActionsDropdown.d.ts +1 -0
- package/components/filters/PresetPanel/PresetActionsDropdown.d.ts.map +1 -1
- package/components/filters/PresetPanel/PresetsPanel.d.ts +2 -0
- package/components/filters/PresetPanel/PresetsPanel.d.ts.map +1 -1
- package/components/layout/Tree.d.ts +41 -0
- package/components/layout/Tree.d.ts.map +1 -0
- package/components/layout/index.d.ts +1 -0
- package/components/layout/index.d.ts.map +1 -1
- package/components/navigation/MainMenu/Burger/BurgerButton.d.ts +5 -5
- package/components/navigation/MainMenu/Burger/BurgerButton.d.ts.map +1 -1
- package/components/navigation/MainMenu/MainMenuButton.d.ts +3 -3
- package/components/navigation/MainMenu/MainMenuButton.d.ts.map +1 -1
- package/components/navigation/MainMenu/MainMenuDropdown.d.ts +2 -4
- package/components/navigation/MainMenu/MainMenuDropdown.d.ts.map +1 -1
- package/components/navigation/index.d.ts +1 -0
- package/components/navigation/index.d.ts.map +1 -1
- package/components/overlays/DropdownMenu.d.ts.map +1 -1
- package/components/pickers/PickerItem.d.ts.map +1 -1
- package/components/widgets/DataRowAddons.d.ts.map +1 -1
- package/index.esm.js +510 -400
- package/index.esm.js.map +1 -1
- package/index.js +514 -395
- package/index.js.map +1 -1
- package/package.json +5 -5
- package/settings.d.ts +16 -1
- package/settings.d.ts.map +1 -1
- package/stats.html +1 -1
- package/styles.css +3054 -2921
- package/styles.css.map +1 -1
package/index.js
CHANGED
|
@@ -154,7 +154,9 @@ var SvgNotificationInfoOutline = function SvgNotificationInfoOutline(props, ref)
|
|
|
154
154
|
viewBox: "0 0 24 24",
|
|
155
155
|
ref: ref
|
|
156
156
|
}, props), _path$K || (_path$K = /*#__PURE__*/React__namespace.createElement("path", {
|
|
157
|
-
|
|
157
|
+
fillRule: "evenodd",
|
|
158
|
+
d: "M11 17h2v-6h-2v6zm1-15C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zM11 9h2V7h-2v2z",
|
|
159
|
+
clipRule: "evenodd"
|
|
158
160
|
})));
|
|
159
161
|
};
|
|
160
162
|
var ForwardRef$K = /*#__PURE__*/React.forwardRef(SvgNotificationInfoOutline);
|
|
@@ -169,7 +171,9 @@ var SvgNotificationInfoFill = function SvgNotificationInfoFill(props, ref) {
|
|
|
169
171
|
viewBox: "0 0 24 24",
|
|
170
172
|
ref: ref
|
|
171
173
|
}, props), _path$J || (_path$J = /*#__PURE__*/React__namespace.createElement("path", {
|
|
172
|
-
|
|
174
|
+
fillRule: "evenodd",
|
|
175
|
+
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z",
|
|
176
|
+
clipRule: "evenodd"
|
|
173
177
|
})));
|
|
174
178
|
};
|
|
175
179
|
var ForwardRef$J = /*#__PURE__*/React.forwardRef(SvgNotificationInfoFill);
|
|
@@ -185,7 +189,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
185
189
|
xmlns: "http://www.w3.org/2000/svg",
|
|
186
190
|
ref: ref
|
|
187
191
|
}, props), /*#__PURE__*/React__namespace.createElement("g", {
|
|
188
|
-
clipPath: "url(#
|
|
192
|
+
clipPath: "url(#yqxngil7x52qx4twn_a)"
|
|
189
193
|
}, _path$I || (_path$I = /*#__PURE__*/React__namespace.createElement("path", {
|
|
190
194
|
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",
|
|
191
195
|
fill: "#F5F6FA"
|
|
@@ -206,7 +210,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
206
210
|
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",
|
|
207
211
|
fill: "#1D1E26"
|
|
208
212
|
})), /*#__PURE__*/React__namespace.createElement("mask", {
|
|
209
|
-
id: "
|
|
213
|
+
id: "yqxngibavdrndpbws_b",
|
|
210
214
|
style: {
|
|
211
215
|
maskType: "alpha"
|
|
212
216
|
},
|
|
@@ -219,7 +223,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
219
223
|
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",
|
|
220
224
|
fill: "#9BDEFF"
|
|
221
225
|
}))), _g || (_g = /*#__PURE__*/React__namespace.createElement("g", {
|
|
222
|
-
mask: "url(#
|
|
226
|
+
mask: "url(#yqxngibavdrndpbws_b)",
|
|
223
227
|
fillRule: "evenodd",
|
|
224
228
|
clipRule: "evenodd"
|
|
225
229
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -305,7 +309,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
305
309
|
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",
|
|
306
310
|
fill: "#fff"
|
|
307
311
|
}))), _defs || (_defs = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
308
|
-
id: "
|
|
312
|
+
id: "yqxngil7x52qx4twn_a"
|
|
309
313
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
310
314
|
fill: "#fff",
|
|
311
315
|
transform: "translate(.552)",
|
|
@@ -793,7 +797,7 @@ var SvgFileFileExcelFill = function SvgFileFileExcelFill(props, ref) {
|
|
|
793
797
|
ref: ref
|
|
794
798
|
}, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
|
|
795
799
|
fillRule: "evenodd",
|
|
796
|
-
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-
|
|
800
|
+
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm2 16-1.5 1.5L12 17l-2.5 2.5L8 18l2.5-2.5L8 13l1.5-1.5L12 14l2.5-2.5L16 13l-2.5 2.5L16 18zm-3-9V3.5L18.5 9H13z",
|
|
797
801
|
clipRule: "evenodd"
|
|
798
802
|
})));
|
|
799
803
|
};
|
|
@@ -843,10 +847,10 @@ var SvgFileFileVideoFill = function SvgFileFileVideoFill(props, ref) {
|
|
|
843
847
|
viewBox: "0 0 24 24",
|
|
844
848
|
ref: ref
|
|
845
849
|
}, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
|
|
846
|
-
d: "
|
|
850
|
+
d: "m14 15-5 3v-6l5 3z"
|
|
847
851
|
})), _path2$1 || (_path2$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
848
852
|
fillRule: "evenodd",
|
|
849
|
-
d: "M4 4c0-1.11.89-2 2-2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4zm9-.5V9h5.5L13 3.5zM8
|
|
853
|
+
d: "M4 4c0-1.11.89-2 2-2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4zm9-.5V9h5.5L13 3.5zM8 10v10l8-5-8-5z",
|
|
850
854
|
clipRule: "evenodd"
|
|
851
855
|
})));
|
|
852
856
|
};
|
|
@@ -863,7 +867,7 @@ var SvgFileFileTableFill = function SvgFileFileTableFill(props, ref) {
|
|
|
863
867
|
ref: ref
|
|
864
868
|
}, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
865
869
|
fillRule: "evenodd",
|
|
866
|
-
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-
|
|
870
|
+
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zM9 19H6v-2h3v2zm0-3H6v-2h3v2zm0-3H6v-2h3v2zm4 6h-3v-2h3v2zm0-3h-3v-2h3v2zm0-3h-3v-2h3v2zm0-4V3.5L18.5 9H13z",
|
|
867
871
|
clipRule: "evenodd"
|
|
868
872
|
})));
|
|
869
873
|
};
|
|
@@ -956,14 +960,14 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
|
956
960
|
};
|
|
957
961
|
var ForwardRef$4 = /*#__PURE__*/React.forwardRef(SvgSearchWithBackground);
|
|
958
962
|
|
|
959
|
-
var css$1w = {"root":"
|
|
963
|
+
var css$1w = {"root":"hg0ux0","uui-spinner":"dLpTPh","uuiSpinner":"dLpTPh"};
|
|
960
964
|
|
|
961
965
|
function applySpinnerMods() {
|
|
962
966
|
return [css$1w.root, 'uui-spinner'];
|
|
963
967
|
}
|
|
964
968
|
const Spinner = /* @__PURE__ */uuiCore.withMods(uuiComponents.Spinner, applySpinnerMods);
|
|
965
969
|
|
|
966
|
-
var css$1v = {"root":"
|
|
970
|
+
var css$1v = {"root":"StHx2D","loading-word":"n2b-qa","loadingWord":"n2b-qa","animated-loading":"_90z0qL","animatedLoading":"_90z0qL","skeleton_loading":"_28XDvH","skeletonLoading":"_28XDvH"};
|
|
967
971
|
|
|
968
972
|
const TextPlaceholder = (props) => {
|
|
969
973
|
const pattern = ' ';
|
|
@@ -980,7 +984,7 @@ const TextPlaceholder = (props) => {
|
|
|
980
984
|
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
981
985
|
};
|
|
982
986
|
|
|
983
|
-
var css$1u = {"root":"
|
|
987
|
+
var css$1u = {"root":"_57AaT8","line-height":"QBtxhX","lineHeight":"QBtxhX","font-size":"_21cBsU","fontSize":"_21cBsU"};
|
|
984
988
|
|
|
985
989
|
function applyTextMods(mods) {
|
|
986
990
|
return [
|
|
@@ -1007,7 +1011,7 @@ const Text = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Text, appl
|
|
|
1007
1011
|
};
|
|
1008
1012
|
});
|
|
1009
1013
|
|
|
1010
|
-
var css$1t = {"root":"
|
|
1014
|
+
var css$1t = {"root":"jGr-EP"};
|
|
1011
1015
|
|
|
1012
1016
|
const Blocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.Blocker, () => [css$1t.root], () => ({ renderSpinner: settings.blocker.renderSpinner }));
|
|
1013
1017
|
|
|
@@ -1418,6 +1422,22 @@ const tabButtonSettings = {
|
|
|
1418
1422
|
},
|
|
1419
1423
|
},
|
|
1420
1424
|
};
|
|
1425
|
+
const verticalTabButtonSettings = {
|
|
1426
|
+
icons: {
|
|
1427
|
+
clearIcon: ForwardRef$Q,
|
|
1428
|
+
foldingIcon: ForwardRef$P,
|
|
1429
|
+
dropdownIcon: ForwardRef$P,
|
|
1430
|
+
},
|
|
1431
|
+
sizes: {
|
|
1432
|
+
default: '48',
|
|
1433
|
+
countIndicatorMap: {
|
|
1434
|
+
30: '18',
|
|
1435
|
+
36: '18',
|
|
1436
|
+
48: '18',
|
|
1437
|
+
},
|
|
1438
|
+
},
|
|
1439
|
+
weight: 'semibold',
|
|
1440
|
+
};
|
|
1421
1441
|
const tagSettings = {
|
|
1422
1442
|
icons: {
|
|
1423
1443
|
clearIcon: ForwardRef$Q,
|
|
@@ -1489,13 +1509,14 @@ const settings = {
|
|
|
1489
1509
|
statusIndicator: statusIndicatorSettings,
|
|
1490
1510
|
switch: switchSettings,
|
|
1491
1511
|
tabButton: tabButtonSettings,
|
|
1512
|
+
verticalTabButton: verticalTabButtonSettings,
|
|
1492
1513
|
tag: tagSettings,
|
|
1493
1514
|
text: textSettings,
|
|
1494
1515
|
textArea: textAreaSettings,
|
|
1495
1516
|
textInput: textInputSettings,
|
|
1496
1517
|
};
|
|
1497
1518
|
|
|
1498
|
-
var css$1s = {"root":"
|
|
1519
|
+
var css$1s = {"root":"SR8RJb"};
|
|
1499
1520
|
|
|
1500
1521
|
function applyButtonMods(mods) {
|
|
1501
1522
|
return [
|
|
@@ -1513,7 +1534,7 @@ const Button = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Button,
|
|
|
1513
1534
|
};
|
|
1514
1535
|
});
|
|
1515
1536
|
|
|
1516
|
-
var css$1r = {"root":"
|
|
1537
|
+
var css$1r = {"root":"_1dZe0N"};
|
|
1517
1538
|
|
|
1518
1539
|
function applyIconButtonMods(props) {
|
|
1519
1540
|
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$1r.root];
|
|
@@ -1550,7 +1571,7 @@ function getIconClass(props) {
|
|
|
1550
1571
|
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'];
|
|
1551
1572
|
}
|
|
1552
1573
|
|
|
1553
|
-
var css$1q = {"root":"
|
|
1574
|
+
var css$1q = {"root":"_1EyVrV"};
|
|
1554
1575
|
|
|
1555
1576
|
const DEFAULT_COLOR = 'primary';
|
|
1556
1577
|
const LinkButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
@@ -1580,7 +1601,7 @@ const LinkButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
1580
1601
|
props.isDropdown && (React__namespace.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
1581
1602
|
});
|
|
1582
1603
|
|
|
1583
|
-
var css$1p = {"root":"
|
|
1604
|
+
var css$1p = {"root":"nDrvBH"};
|
|
1584
1605
|
|
|
1585
1606
|
const CountIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1586
1607
|
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
@@ -1592,10 +1613,16 @@ const CountIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1592
1613
|
]) }, props.caption));
|
|
1593
1614
|
});
|
|
1594
1615
|
|
|
1595
|
-
var css$1o = {"root":"
|
|
1616
|
+
var css$1o = {"root":"yeDi6j","withNotify":"_0sIeUG"};
|
|
1596
1617
|
|
|
1597
1618
|
const TabButton = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
1619
|
+
const { isActive } = uuiCore.useIsActive({
|
|
1620
|
+
isLinkActive: props.isLinkActive,
|
|
1621
|
+
link: props.link,
|
|
1622
|
+
isActive: props.isActive,
|
|
1623
|
+
});
|
|
1598
1624
|
const styles = [
|
|
1625
|
+
isActive && uuiCore.uuiMod.active,
|
|
1599
1626
|
css$1o.root,
|
|
1600
1627
|
'uui-tab-button',
|
|
1601
1628
|
`uui-size-${props.size || settings.tabButton.sizes.default}`,
|
|
@@ -1620,18 +1647,134 @@ const TabButton = /* @__PURE__ */React__namespace.default.forwardRef((props, ref
|
|
|
1620
1647
|
props.onClear && !props.isDisabled && (React__namespace.default.createElement(uuiComponents.IconContainer, { cx: uuiCore.uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
1621
1648
|
});
|
|
1622
1649
|
|
|
1623
|
-
var css$1n = {"root":"
|
|
1650
|
+
var css$1n = {"root":"fjU1aJ","noLeftPadding":"IMErJL","foldingArea":"Dq35m6","onlyFoldable":"_5yB0ZL","captionWrapper":"y9Xln-","withNotify":"DyWm7v"};
|
|
1651
|
+
|
|
1652
|
+
var css$1m = {"root":"vfgS47"};
|
|
1653
|
+
|
|
1654
|
+
const AvatarStack = /* @__PURE__ */uuiCore.withMods(uuiComponents.AvatarStack, () => [css$1m.root]);
|
|
1655
|
+
|
|
1656
|
+
var css$1l = {"root":"WcDOil"};
|
|
1657
|
+
|
|
1658
|
+
const DEFAULT_FILL = 'solid';
|
|
1659
|
+
function applyBadgeMods(mods) {
|
|
1660
|
+
return [
|
|
1661
|
+
'uui-badge',
|
|
1662
|
+
css$1l.root,
|
|
1663
|
+
`uui-size-${mods.size || settings.badge.sizes.default}`,
|
|
1664
|
+
`uui-fill-${mods.fill || DEFAULT_FILL}`,
|
|
1665
|
+
`uui-color-${mods.color || 'info'}`,
|
|
1666
|
+
];
|
|
1667
|
+
}
|
|
1668
|
+
const Badge = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
1669
|
+
const styles = [applyBadgeMods(props), props.cx];
|
|
1670
|
+
const DropdownIcon = props.dropdownIcon ? props.dropdownIcon : settings.badge.icons.dropdownIcon;
|
|
1671
|
+
return (React__namespace.default.createElement(uuiComponents.Clickable, { ...props, rawProps: {
|
|
1672
|
+
'aria-haspopup': props.isDropdown,
|
|
1673
|
+
'aria-expanded': props.isOpen,
|
|
1674
|
+
...props.rawProps,
|
|
1675
|
+
}, cx: styles, ref: ref },
|
|
1676
|
+
(props.indicator && props.fill === 'outline') && (React__namespace.default.createElement("div", { className: "uui-indicator" })),
|
|
1677
|
+
props.icon && props.iconPosition !== 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1678
|
+
props.caption && (React__namespace.default.createElement("div", { className: uuiCore.uuiElement.caption }, props.caption)),
|
|
1679
|
+
props.count !== undefined && props.count !== null && (React__namespace.default.createElement(CountIndicator, { key: "count-indicator", color: null, size: settings.badge.sizes.countIndicatorMap[props.size || settings.badge.sizes.default], caption: props.count })),
|
|
1680
|
+
props.icon && props.iconPosition === 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1681
|
+
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
1682
|
+
});
|
|
1683
|
+
|
|
1684
|
+
var css$1k = {"root":"kPrZII"};
|
|
1685
|
+
|
|
1686
|
+
function applyTagMods(props) {
|
|
1687
|
+
return [
|
|
1688
|
+
css$1k.root,
|
|
1689
|
+
`uui-size-${props.size || settings.tag.sizes.default}`,
|
|
1690
|
+
`uui-color-${props.color || 'neutral'}`,
|
|
1691
|
+
`uui-fill-${props.fill || 'solid'}`,
|
|
1692
|
+
'uui-tag',
|
|
1693
|
+
];
|
|
1694
|
+
}
|
|
1695
|
+
const Tag = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
1696
|
+
const styles = [applyTagMods(props), props.cx];
|
|
1697
|
+
const ClearIcon = props.clearIcon ? props.clearIcon : settings.tag.icons.clearIcon;
|
|
1698
|
+
const DropdownIcon = props.dropdownIcon ? props.dropdownIcon : settings.tag.icons.dropdownIcon;
|
|
1699
|
+
return (React__namespace.default.createElement(uuiComponents.Clickable, { ...props, rawProps: {
|
|
1700
|
+
'aria-haspopup': props.isDropdown,
|
|
1701
|
+
'aria-expanded': props.isOpen,
|
|
1702
|
+
...props.rawProps,
|
|
1703
|
+
}, cx: styles, ref: ref },
|
|
1704
|
+
props.icon && props.iconPosition !== 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1705
|
+
props.caption && (React__namespace.default.createElement("div", { className: uuiCore.uuiElement.caption }, props.caption)),
|
|
1706
|
+
props.count !== undefined && props.count !== null && (React__namespace.default.createElement(CountIndicator, { color: (!props.color || props.color === 'neutral') ? 'white' : props.color, size: settings.tag.sizes.countIndicatorMap[(props.size || settings.tag.sizes.default)], caption: props.count })),
|
|
1707
|
+
props.icon && props.iconPosition === 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1708
|
+
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
1709
|
+
props.onClear && !props.isDisabled && (React__namespace.default.createElement(uuiComponents.IconContainer, { cx: uuiCore.uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
1710
|
+
});
|
|
1711
|
+
|
|
1712
|
+
var css$1j = {"root":"Elp8Rf","page":"zQw1gf","spacer":"S9RWzE","mode-ghost":"nQX-4b","modeGhost":"nQX-4b"};
|
|
1713
|
+
|
|
1714
|
+
function Paginator(props) {
|
|
1715
|
+
const renderPaginator = (params) => (React__namespace.default.createElement("nav", { role: "navigation", className: cx__default.default(css$1j.root, 'uui-paginator', `uui-size-${props.size || settings.paginator.sizes.default}`), ...params.rawProps },
|
|
1716
|
+
React__namespace.default.createElement(Button, { size: props.size || settings.paginator.sizes.default, icon: settings.paginator.icons.leftArrowIcon, onClick: params.goToPrev, isDisabled: params.isFirst || props.isDisabled, fill: "outline", color: "secondary" }),
|
|
1717
|
+
params.pages.map((page, index) => {
|
|
1718
|
+
if (page.type === 'spacer') {
|
|
1719
|
+
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$1j.spacer, css$1j.page), size: props.size || settings.paginator.sizes.default, key: `${index}_spacer`, caption: "...", fill: "ghost", color: "secondary", tabIndex: -1, isDisabled: props.isDisabled }));
|
|
1720
|
+
}
|
|
1721
|
+
else {
|
|
1722
|
+
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$1j[`mode-${!page.isActive && 'ghost'}`], css$1j.page), size: props.size || settings.paginator.sizes.default, key: page.pageNumber, caption: page.pageNumber, onClick: () => page.onClick?.(), rawProps: { 'aria-current': page.isActive }, fill: (page.isActive && 'outline') || 'ghost', color: "primary", isDisabled: props.isDisabled }));
|
|
1723
|
+
}
|
|
1724
|
+
}),
|
|
1725
|
+
React__namespace.default.createElement(Button, { size: props.size || settings.paginator.sizes.default, icon: settings.paginator.icons.rightArrowIcon, onClick: params.goToNext, isDisabled: params.isLast || props.isDisabled, fill: "outline", color: "secondary" })));
|
|
1726
|
+
return React__namespace.default.createElement(uuiComponents.Paginator, { ...props, render: renderPaginator });
|
|
1727
|
+
}
|
|
1728
|
+
|
|
1729
|
+
var css$1i = {"root":"vhIxQ9","progress-bar":"pozs0V","progressBar":"pozs0V","progressBar-indeterminate":"gRJ3yy","progressBarIndeterminate":"gRJ3yy","size-12":"Gi2A94","size12":"Gi2A94","size-18":"Pr17su","size18":"Pr17su","size-24":"T0nZ95","size24":"T0nZ95"};
|
|
1730
|
+
|
|
1731
|
+
const IndeterminateBar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
1732
|
+
return (React__namespace.createElement("div", { ref: ref, className: cx__default.default('uui-indeterminate_bar', props.cx, css$1i.root, css$1i[`size-${props.size || 12}`]) },
|
|
1733
|
+
React__namespace.createElement("div", { className: cx__default.default(css$1i.progressBar) })));
|
|
1734
|
+
});
|
|
1735
|
+
|
|
1736
|
+
var css$1h = {"root":"wuzmu-","striped":"JoscLR","animate-stripes":"uqDgIM","animateStripes":"uqDgIM","size-12":"qK3Wno","size12":"qK3Wno","size-18":"ZblyNp","size18":"ZblyNp","size-24":"pG9dMv","size24":"pG9dMv"};
|
|
1624
1737
|
|
|
1625
|
-
|
|
1626
|
-
|
|
1738
|
+
const DEFAULT_SIZE = '12';
|
|
1739
|
+
function applyProgressBarMods(mods) {
|
|
1740
|
+
const size = mods.size || DEFAULT_SIZE;
|
|
1741
|
+
return [
|
|
1742
|
+
css$1h.root,
|
|
1743
|
+
css$1h[`size-${size}`],
|
|
1744
|
+
mods.striped && css$1h.striped,
|
|
1745
|
+
];
|
|
1627
1746
|
}
|
|
1628
|
-
const
|
|
1747
|
+
const ProgressBar = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.ProgressBar, applyProgressBarMods, (props) => ({
|
|
1748
|
+
hideLabel: props.hideLabel || props.striped,
|
|
1749
|
+
}));
|
|
1629
1750
|
|
|
1630
|
-
var css$
|
|
1751
|
+
var css$1g = {"root":"hpZhtt"};
|
|
1752
|
+
|
|
1753
|
+
const IndicatorBar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
1754
|
+
const { progress } = props;
|
|
1755
|
+
return progress || progress === 0 ? (React__namespace.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx__default.default(css$1g.root, props.cx), hideLabel: true })) : (React__namespace.createElement(IndeterminateBar, { ref: ref, cx: cx__default.default(css$1g.root, props.cx) }));
|
|
1756
|
+
});
|
|
1757
|
+
|
|
1758
|
+
var css$1f = {"root":"qUeWV-"};
|
|
1759
|
+
|
|
1760
|
+
const StatusIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1761
|
+
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
1762
|
+
css$1f.root,
|
|
1763
|
+
`uui-size-${props.size || settings.statusIndicator.sizes.default}`,
|
|
1764
|
+
'uui-status_indicator',
|
|
1765
|
+
`uui-color-${props.color || 'neutral'}`,
|
|
1766
|
+
`uui-fill-${props.fill || 'solid'}`,
|
|
1767
|
+
props.cx,
|
|
1768
|
+
]) },
|
|
1769
|
+
React__namespace.default.createElement("div", { className: "uui-status_indicator-dot" }),
|
|
1770
|
+
React__namespace.default.createElement("p", { className: "uui-status_indicator-caption" }, props.caption)));
|
|
1771
|
+
});
|
|
1772
|
+
|
|
1773
|
+
var css$1e = {"root":"SSMIJB"};
|
|
1631
1774
|
|
|
1632
1775
|
function applyCheckboxMods(mods) {
|
|
1633
1776
|
return [
|
|
1634
|
-
css$
|
|
1777
|
+
css$1e.root,
|
|
1635
1778
|
`uui-size-${mods.size || settings.checkbox.sizes.default}`,
|
|
1636
1779
|
'uui-control-mode-' + (mods.mode || 'form'),
|
|
1637
1780
|
'uui-color-primary',
|
|
@@ -1645,11 +1788,11 @@ const applyUUICheckboxProps = (props) => {
|
|
|
1645
1788
|
};
|
|
1646
1789
|
const Checkbox = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Checkbox, applyCheckboxMods, applyUUICheckboxProps);
|
|
1647
1790
|
|
|
1648
|
-
var css$
|
|
1791
|
+
var css$1d = {"root":"sL80J9"};
|
|
1649
1792
|
|
|
1650
1793
|
function applyRadioInputMods(mods) {
|
|
1651
1794
|
return [
|
|
1652
|
-
css$
|
|
1795
|
+
css$1d.root,
|
|
1653
1796
|
`uui-size-${mods.size || settings.radioInput.sizes.default}`,
|
|
1654
1797
|
'uui-radio-input-container',
|
|
1655
1798
|
'uui-color-primary',
|
|
@@ -1657,11 +1800,11 @@ function applyRadioInputMods(mods) {
|
|
|
1657
1800
|
}
|
|
1658
1801
|
const RadioInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.RadioInput, applyRadioInputMods, (props) => ({ icon: props.icon ? props.icon : settings.radioInput.icons.dotIcon }));
|
|
1659
1802
|
|
|
1660
|
-
var css$
|
|
1803
|
+
var css$1c = {"root":"Yqq3Qx"};
|
|
1661
1804
|
|
|
1662
1805
|
function applySwitchMods(mods) {
|
|
1663
1806
|
return [
|
|
1664
|
-
css$
|
|
1807
|
+
css$1c.root,
|
|
1665
1808
|
`uui-size-${mods.size || settings.switch.sizes.default}`,
|
|
1666
1809
|
'uui-color-primary',
|
|
1667
1810
|
];
|
|
@@ -1681,7 +1824,7 @@ var EditMode;
|
|
|
1681
1824
|
EditMode["INLINE"] = "inline";
|
|
1682
1825
|
})(EditMode || (EditMode = {}));
|
|
1683
1826
|
|
|
1684
|
-
var textInputCss = {"root":"
|
|
1827
|
+
var textInputCss = {"root":"ZrE20o"};
|
|
1685
1828
|
|
|
1686
1829
|
const DEFAULT_MODE$3 = EditMode.FORM;
|
|
1687
1830
|
function applyTextInputMods(mods) {
|
|
@@ -1706,9 +1849,9 @@ const SearchInput = /* @__PURE__ */React__namespace.default.forwardRef((props, r
|
|
|
1706
1849
|
} }));
|
|
1707
1850
|
});
|
|
1708
1851
|
|
|
1709
|
-
var css$
|
|
1852
|
+
var css$1b = {"root":"M12JiO"};
|
|
1710
1853
|
|
|
1711
|
-
const ControlGroup = /* @__PURE__ */uuiCore.withMods(uuiComponents.ControlGroup, () => [css$
|
|
1854
|
+
const ControlGroup = /* @__PURE__ */uuiCore.withMods(uuiComponents.ControlGroup, () => [css$1b.root, 'uui-control-group']);
|
|
1712
1855
|
|
|
1713
1856
|
function MultiSwitchComponent(props, ref) {
|
|
1714
1857
|
return (React__namespace.createElement(ControlGroup, { ref: ref, rawProps: {
|
|
@@ -1722,13 +1865,13 @@ function MultiSwitchComponent(props, ref) {
|
|
|
1722
1865
|
}
|
|
1723
1866
|
const MultiSwitch = /* @__PURE__ */React__namespace.forwardRef(MultiSwitchComponent);
|
|
1724
1867
|
|
|
1725
|
-
var css$
|
|
1868
|
+
var css$1a = {"root":"Ipri2m"};
|
|
1726
1869
|
|
|
1727
1870
|
const DEFAULT_MODE$2 = EditMode.FORM;
|
|
1728
1871
|
function applyNumericInputMods(mods) {
|
|
1729
1872
|
return [
|
|
1730
1873
|
textInputCss.root,
|
|
1731
|
-
css$
|
|
1874
|
+
css$1a.root,
|
|
1732
1875
|
`uui-size-${mods.size || settings.numericInput.sizes.default}`,
|
|
1733
1876
|
'uui-control-mode-' + (mods.mode || DEFAULT_MODE$2),
|
|
1734
1877
|
];
|
|
@@ -1742,12 +1885,12 @@ const NumericInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.NumericInput,
|
|
|
1742
1885
|
};
|
|
1743
1886
|
});
|
|
1744
1887
|
|
|
1745
|
-
var css$
|
|
1888
|
+
var css$19 = {"root":"tBbHl2"};
|
|
1746
1889
|
|
|
1747
1890
|
const DEFAULT_MODE$1 = EditMode.FORM;
|
|
1748
1891
|
function applyTextAreaMods(mods) {
|
|
1749
1892
|
return [
|
|
1750
|
-
css$
|
|
1893
|
+
css$19.root,
|
|
1751
1894
|
'uui-textarea',
|
|
1752
1895
|
'uui-size-' + (mods.size || settings.textArea.sizes.default),
|
|
1753
1896
|
'uui-control-mode-' + (mods.mode || DEFAULT_MODE$1),
|
|
@@ -1783,18 +1926,18 @@ function TREE_SHAKEABLE_INIT$1() {
|
|
|
1783
1926
|
};
|
|
1784
1927
|
}
|
|
1785
1928
|
|
|
1786
|
-
var css$
|
|
1929
|
+
var css$18 = {"root":"tVEelg"};
|
|
1787
1930
|
|
|
1788
1931
|
function applyDropdownContainerMods(mods) {
|
|
1789
1932
|
return [
|
|
1790
|
-
css$
|
|
1933
|
+
css$18.root,
|
|
1791
1934
|
mods.vPadding && `vPadding-${mods.vPadding}`,
|
|
1792
1935
|
mods.padding && `padding-${mods.padding}`,
|
|
1793
1936
|
];
|
|
1794
1937
|
}
|
|
1795
1938
|
const DropdownContainer = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.DropdownContainer, applyDropdownContainerMods);
|
|
1796
1939
|
|
|
1797
|
-
var css$
|
|
1940
|
+
var css$17 = {"root":"v6lTlF","timepicker-input":"snWvI4","timepickerInput":"snWvI4","ltr-always":"ZOQ3cu","ltrAlways":"ZOQ3cu"};
|
|
1798
1941
|
|
|
1799
1942
|
const uuiTimePicker = {
|
|
1800
1943
|
container: 'uui-timepicker-container',
|
|
@@ -1833,8 +1976,8 @@ function TimePickerBody(props) {
|
|
|
1833
1976
|
const minutesToSubtract = value.minute() % minutesStep === 0 ? minutesStep : value.minute() % minutesStep;
|
|
1834
1977
|
onMinutesChange(value.subtract(minutesToSubtract, 'm').minute());
|
|
1835
1978
|
};
|
|
1836
|
-
return (React__namespace.createElement("div", { className: uuiCore.cx(css$
|
|
1837
|
-
React__namespace.createElement("div", { className: css$
|
|
1979
|
+
return (React__namespace.createElement("div", { className: uuiCore.cx(css$17.root, uuiTimePicker.container, props.cx), ref: props.forwardedRef, ...props.rawProps },
|
|
1980
|
+
React__namespace.createElement("div", { className: css$17.ltrAlways },
|
|
1838
1981
|
React__namespace.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
1839
1982
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment hours' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$P, onClick: () => onHoursChange(uuiDayjs.dayjs().set(props.value).add(1, 'h').hour()) }),
|
|
1840
1983
|
React__namespace.createElement(uuiComponents.NumericInput, { cx: uuiTimePicker.input, onValueChange: onHoursChange, value: +(uuiDayjs.dayjs()
|
|
@@ -1977,7 +2120,7 @@ function TimePickerComponent(props, ref) {
|
|
|
1977
2120
|
state.value && state.inputValue && saveTime(state.value);
|
|
1978
2121
|
};
|
|
1979
2122
|
const renderInput = (inputProps) => {
|
|
1980
|
-
return (React__namespace.default.createElement(TextInput, { ...inputProps, onClick: null, size: props.size, isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, cx: [css$
|
|
2123
|
+
return (React__namespace.default.createElement(TextInput, { ...inputProps, onClick: null, size: props.size, isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, cx: [css$17.root, css$17.timepickerInput, props.inputCx], value: state.inputValue, onValueChange: handleInputChange, onCancel: !props.disableClear && onClear, onFocus: handleFocus, onBlur: handleBlur, isDropdown: false, placeholder: props.placeholder ? props.placeholder : getFormat(), mode: props.mode || DEFAULT_MODE, rawProps: props.rawProps?.input }));
|
|
1981
2124
|
};
|
|
1982
2125
|
const renderBody = (bodyProps) => {
|
|
1983
2126
|
const { forwardedRef, onValueChange, ...timePickerBodyProps } = props;
|
|
@@ -1988,37 +2131,37 @@ function TimePickerComponent(props, ref) {
|
|
|
1988
2131
|
}
|
|
1989
2132
|
const TimePicker = /* @__PURE__ */React__namespace.default.forwardRef(TimePickerComponent);
|
|
1990
2133
|
|
|
1991
|
-
var css$
|
|
2134
|
+
var css$16 = {"root":"MmwXUN"};
|
|
1992
2135
|
|
|
1993
2136
|
function applyInputAddonMods() {
|
|
1994
2137
|
return [
|
|
1995
|
-
css$
|
|
2138
|
+
css$16.root,
|
|
1996
2139
|
];
|
|
1997
2140
|
}
|
|
1998
2141
|
const InputAddon = /* @__PURE__ */uuiCore.withMods(uuiComponents.InputAddon, applyInputAddonMods);
|
|
1999
2142
|
|
|
2000
|
-
var css$
|
|
2143
|
+
var css$15 = {"root":"eD3ydC"};
|
|
2001
2144
|
|
|
2002
2145
|
function applySliderMods() {
|
|
2003
|
-
return [css$
|
|
2146
|
+
return [css$15.root, 'uui-color-neutral'];
|
|
2004
2147
|
}
|
|
2005
2148
|
const Slider = /* @__PURE__ */uuiCore.withMods(uuiComponents.Slider, applySliderMods);
|
|
2006
2149
|
|
|
2007
|
-
var css$
|
|
2150
|
+
var css$14 = {"root":"_4AmZXx"};
|
|
2008
2151
|
|
|
2009
2152
|
function applyTooltipMods(mods) {
|
|
2010
2153
|
return [
|
|
2011
|
-
css$
|
|
2154
|
+
css$14.root,
|
|
2012
2155
|
`uui-color-${mods.color || 'inverted'}`,
|
|
2013
2156
|
];
|
|
2014
2157
|
}
|
|
2015
2158
|
const Tooltip = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Tooltip, applyTooltipMods);
|
|
2016
2159
|
|
|
2017
|
-
var css$
|
|
2160
|
+
var css$13 = {"root":"Cxs-JE","tooltip":"oYTMu4"};
|
|
2018
2161
|
|
|
2019
2162
|
function applyRatingMods(mods) {
|
|
2020
2163
|
return [
|
|
2021
|
-
css$
|
|
2164
|
+
css$13.root,
|
|
2022
2165
|
`uui-size-${mods.size || settings.rating.sizes.default}`,
|
|
2023
2166
|
];
|
|
2024
2167
|
}
|
|
@@ -2028,17 +2171,94 @@ const Rating = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Rating,
|
|
|
2028
2171
|
Tooltip,
|
|
2029
2172
|
}));
|
|
2030
2173
|
|
|
2031
|
-
var css$
|
|
2174
|
+
var css$12 = {"drag-handle-wrapper":"O9g2nI","dragHandleWrapper":"O9g2nI","with-indent":"uDs70V","withIndent":"uDs70V","drag-handle":"b0Eh-1","dragHandle":"b0Eh-1","icon-container":"I62G80","iconContainer":"I62G80"};
|
|
2175
|
+
|
|
2176
|
+
function DataRowAddons(props) {
|
|
2177
|
+
const row = props.rowProps;
|
|
2178
|
+
const getIndent = () => {
|
|
2179
|
+
return (row.indent - 1) * settings.dataTable.sizes.body.indentUnitMap[props.size || settings.dataTable.sizes.body.row];
|
|
2180
|
+
};
|
|
2181
|
+
const getWidth = () => {
|
|
2182
|
+
return settings.dataTable.sizes.body.indentWidthMap[props.size || settings.dataTable.sizes.body.row];
|
|
2183
|
+
};
|
|
2184
|
+
const renderDragHandle = () => {
|
|
2185
|
+
if (props.renderDragHandle) {
|
|
2186
|
+
return props.renderDragHandle({ rowProps: props.rowProps, eventHandlers: props.eventHandlers });
|
|
2187
|
+
}
|
|
2188
|
+
return (React__namespace.default.createElement("div", { key: "dh", className: cx__default.default(css$12.dragHandleWrapper, row.indent > 0 && css$12.withIndent), style: { width: row.indent > 0 ? (getIndent() + getWidth()) : 0 }, ...props.eventHandlers },
|
|
2189
|
+
React__namespace.default.createElement(uuiComponents.DragHandle, { cx: css$12.dragHandle })));
|
|
2190
|
+
};
|
|
2191
|
+
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
2192
|
+
row.dnd?.srcData && renderDragHandle(),
|
|
2193
|
+
row?.checkbox?.isVisible && (React__namespace.default.createElement(Checkbox, { key: "cb", cx: "uui-dr_addons-checkbox", tabIndex: props.tabIndex, size: settings.dataTable.sizes.body.checkboxMap[props.size], value: row.isChecked, indeterminate: !row.isChecked && row.isChildrenChecked, onValueChange: () => row.onCheck?.(row), isDisabled: row.checkbox.isDisabled, isInvalid: row.checkbox.isInvalid })),
|
|
2194
|
+
row.indent > 0 && (React__namespace.default.createElement("div", { key: "fold", className: cx__default.default('uui-dr_addons-indent', `uui-size-${props.size || settings.dataTable.sizes.body.row}`), style: { marginInlineStart: getIndent(), width: getWidth() } }, row.isFoldable && (React__namespace.default.createElement(uuiComponents.IconContainer, { rawProps: {
|
|
2195
|
+
'aria-label': row.isFolded ? 'Unfold' : 'Fold',
|
|
2196
|
+
role: 'button',
|
|
2197
|
+
}, key: "icon", icon: settings.dataTable.icons.body.foldingIcon, cx: [
|
|
2198
|
+
uuiCore.uuiElement.foldingArrow, uuiCore.uuiMarkers.clickable, css$12.iconContainer,
|
|
2199
|
+
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row), size: settings.dataTable.sizes.body.iconMap[props.size || settings.dataTable.sizes.body.row] }))))));
|
|
2200
|
+
}
|
|
2032
2201
|
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2202
|
+
function VerticalTabButtonComponent(props, ref) {
|
|
2203
|
+
const { isActive } = uuiCore.useIsActive({
|
|
2204
|
+
isLinkActive: props.isLinkActive,
|
|
2205
|
+
link: props.link,
|
|
2206
|
+
isActive: props.isActive,
|
|
2207
|
+
});
|
|
2208
|
+
const styles = [
|
|
2209
|
+
css$1n.root,
|
|
2210
|
+
'uui-vertical-tab-button',
|
|
2211
|
+
`uui-size-${props.size || settings.verticalTabButton.sizes.default}`,
|
|
2212
|
+
isActive && uuiCore.uuiMod.active,
|
|
2213
|
+
props.indent > 0 && css$1n.noLeftPadding,
|
|
2214
|
+
!props.onClick && props.onFold && css$1n.onlyFoldable,
|
|
2215
|
+
...getIconClass(props),
|
|
2216
|
+
props.cx,
|
|
2217
|
+
];
|
|
2218
|
+
if (props.count !== undefined && props.count !== null) {
|
|
2219
|
+
uuiCore.devLogger.warn('VerticalTabButton: count prop is deprecated. Use renderAddons prop instead.');
|
|
2220
|
+
}
|
|
2221
|
+
if (props.onClear !== undefined && props.onClear !== null) {
|
|
2222
|
+
uuiCore.devLogger.warn('VerticalTabButton: onClear prop is deprecated. Use renderAddons prop instead.');
|
|
2223
|
+
}
|
|
2224
|
+
if (props.clearIcon !== undefined && props.clearIcon !== null) {
|
|
2225
|
+
uuiCore.devLogger.warn('VerticalTabButton: clearIcon prop is deprecated. Use renderAddons prop instead.');
|
|
2226
|
+
}
|
|
2227
|
+
const DropdownIcon = props.dropdownIcon ? props.dropdownIcon : settings.verticalTabButton.icons.dropdownIcon;
|
|
2228
|
+
const ClearIcon = props.clearIcon ? props.clearIcon : settings.verticalTabButton.icons.clearIcon;
|
|
2229
|
+
return (React__namespace.default.createElement(uuiComponents.Clickable, { ...props, onClick: props.onClick || props.onFold, rawProps: {
|
|
2230
|
+
role: 'tab',
|
|
2231
|
+
...props.rawProps,
|
|
2232
|
+
}, cx: styles, ref: ref },
|
|
2233
|
+
props.indent > 0 && (React__namespace.default.createElement("div", { key: "fold", className: uuiCore.cx(css$1n.foldingArea, props.onFold && uuiCore.uuiMarkers.clickable), style: { '--uui-folding-indent': `${props.indent - 1}` }, onClick: props.onFold }, props.isFoldable && (React__namespace.default.createElement(uuiComponents.IconContainer, { rawProps: {
|
|
2234
|
+
'aria-label': props.isFolded ? 'Unfold' : 'Fold',
|
|
2235
|
+
role: 'button',
|
|
2236
|
+
}, key: "icon", icon: settings.verticalTabButton.icons.foldingIcon, cx: [
|
|
2237
|
+
uuiCore.uuiElement.foldingArrow, css$1n.iconContainer,
|
|
2238
|
+
], rotate: props.isFolded ? '90ccw' : '0', size: settings.dataTable.sizes.body.iconMap[props.size || settings.dataTable.sizes.body.row] })))),
|
|
2239
|
+
props.icon && props.iconPosition !== 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
2240
|
+
(props.caption || props.withNotify) && (React__namespace.default.createElement("div", { className: css$1n.captionWrapper },
|
|
2241
|
+
props.caption && React__namespace.default.createElement("div", { className: uuiCore.cx(uuiCore.uuiElement.caption, `uui-vertical-tab-button-weight-${props.weight || settings.verticalTabButton.weight}`) }, props.caption),
|
|
2242
|
+
props.withNotify && React__namespace.default.createElement("div", { className: css$1n.withNotify }))),
|
|
2243
|
+
props.icon && props.iconPosition === 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
2244
|
+
props.count !== undefined && props.count !== null && (React__namespace.default.createElement(CountIndicator, { color: "neutral", size: settings.verticalTabButton.sizes.countIndicatorMap[props.size || settings.verticalTabButton.sizes.default], caption: props.count })),
|
|
2245
|
+
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
2246
|
+
props.onClear && !props.isDisabled && (React__namespace.default.createElement(uuiComponents.IconContainer, { cx: uuiCore.uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear })),
|
|
2247
|
+
props.renderAddons && props.renderAddons()));
|
|
2248
|
+
}
|
|
2249
|
+
const VerticalTabButton = /* @__PURE__ */React__namespace.default.forwardRef(VerticalTabButtonComponent);
|
|
2250
|
+
|
|
2251
|
+
var css$11 = {"root":"Q2076c","main-path":"PtWhns","mainPath":"PtWhns","content-wrapper":"q0DVA2","contentWrapper":"q0DVA2","content":"lA2ze0","action-wrapper":"EVYECe","actionWrapper":"EVYECe","icon-wrapper":"oVoOfy","iconWrapper":"oVoOfy","icon":"Mqzicb","close-icon":"ZezkoQ","closeIcon":"ZezkoQ"};
|
|
2252
|
+
|
|
2253
|
+
const Alert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("div", { role: "alert", ref: ref, className: cx__default.default('uui-alert', css$11.root, props.color && `uui-color-${props.color}`, props.cx, `uui-size-${props.size || settings.alert.sizes.default}`), ...props.rawProps },
|
|
2254
|
+
React__namespace.createElement("div", { className: css$11.mainPath },
|
|
2255
|
+
React__namespace.createElement("div", { className: css$11.contentWrapper },
|
|
2256
|
+
props.icon && (React__namespace.createElement("div", { className: css$11.iconWrapper },
|
|
2257
|
+
React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$11.icon }))),
|
|
2258
|
+
React__namespace.createElement("div", { className: css$11.content },
|
|
2039
2259
|
props.children,
|
|
2040
|
-
props.actions && (React__namespace.createElement("div", { className: css$
|
|
2041
|
-
props.onClose && React__namespace.createElement(IconButton, { icon: settings.alert.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$
|
|
2260
|
+
props.actions && (React__namespace.createElement("div", { className: css$11.actionWrapper }, props.actions.map((action) => (React__namespace.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$11.actionLink, size: settings.alert.sizes.actionMap[props.size || settings.alert.sizes.default] }))))))),
|
|
2261
|
+
props.onClose && React__namespace.createElement(IconButton, { icon: settings.alert.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$11.closeIcon })))));
|
|
2042
2262
|
const WarningAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, { icon: settings.alert.icons.warningIcon, color: "warning", ref: ref, ...props }));
|
|
2043
2263
|
const SuccessAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, { icon: settings.alert.icons.successIcon, color: "success", ref: ref, ...props }));
|
|
2044
2264
|
const HintAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, { icon: settings.alert.icons.infoIcon, color: "info", ref: ref, ...props }));
|
|
@@ -2046,7 +2266,7 @@ const ErrorAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => Re
|
|
|
2046
2266
|
|
|
2047
2267
|
const Dropdown = /* @__PURE__ */uuiCore.withMods(uuiComponents.Dropdown);
|
|
2048
2268
|
|
|
2049
|
-
var css$
|
|
2269
|
+
var css$10 = {"submenu-root-item-rtl":"YpFLUa","submenuRootItemRtl":"YpFLUa","icon-after":"NhGFmF","iconAfter":"NhGFmF","submenu-root-item":"_7--gFj","submenuRootItem":"_7--gFj","icon-check":"mnjr0c","iconCheck":"mnjr0c","splitter-root":"fHWLWD","splitterRoot":"fHWLWD","splitter":"IJDpbg","header-root":"-rFZXp","headerRoot":"-rFZXp","item-root":"APUUt-","itemRoot":"APUUt-","icon":"_7og0ci","link":"_1Nzp0S","indent":"Zawp1N","selected-mark":"ptEhwV","selectedMark":"ptEhwV"};
|
|
2050
2270
|
|
|
2051
2271
|
exports.IDropdownControlKeys = void 0;
|
|
2052
2272
|
(function (IDropdownControlKeys) {
|
|
@@ -2111,29 +2331,29 @@ const DropdownMenuButton = /* @__PURE__ */React__namespace.default.forwardRef((p
|
|
|
2111
2331
|
const getMenuButtonContent = () => {
|
|
2112
2332
|
const isIconBefore = Boolean(icon && iconPosition !== 'right');
|
|
2113
2333
|
const isIconAfter = Boolean(icon && iconPosition === 'right');
|
|
2114
|
-
const iconElement = (React__namespace.default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: uuiCore.cx(css$
|
|
2334
|
+
const iconElement = (React__namespace.default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: uuiCore.cx(css$10.icon, iconPosition === 'right' ? css$10.iconAfter : css$10.iconBefore) }));
|
|
2115
2335
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
2116
2336
|
isIconBefore && iconElement,
|
|
2117
|
-
React__namespace.default.createElement(uuiComponents.Text, { cx: props.indent && css$
|
|
2337
|
+
React__namespace.default.createElement(uuiComponents.Text, { cx: props.indent && css$10.indent }, caption),
|
|
2118
2338
|
isIconAfter && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
2119
2339
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
2120
2340
|
iconElement))));
|
|
2121
2341
|
};
|
|
2122
2342
|
const isAnchor = Boolean(link || href);
|
|
2123
|
-
const itemClassNames = uuiCore.cx(props.cx, css$
|
|
2124
|
-
return isAnchor ? (React__namespace.default.createElement(uuiComponents.Anchor, { cx: uuiCore.cx(css$
|
|
2343
|
+
const itemClassNames = uuiCore.cx(props.cx, css$10.itemRoot, isDisabled && uuiCore.uuiMod.disabled, isActive && uuiCore.uuiMod.active, isOpen && uuiCore.uuiMod.opened, (!isDisabled && onClick) && uuiCore.uuiMarkers.clickable);
|
|
2344
|
+
return isAnchor ? (React__namespace.default.createElement(uuiComponents.Anchor, { cx: uuiCore.cx(css$10.link, itemClassNames), link: link, href: href, rawProps: { role: 'menuitem', tabIndex: isDisabled ? -1 : 0 }, onClick: handleClick, isDisabled: isDisabled, target: target }, getMenuButtonContent())) : (React__namespace.default.createElement("div", { tabIndex: isDisabled ? -1 : 0, role: "menuitem", onKeyDown: isDisabled ? null : handleOpenDropdown, className: itemClassNames, onClick: handleClick, ref: ref },
|
|
2125
2345
|
getMenuButtonContent(),
|
|
2126
2346
|
isSelected && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
2127
2347
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
2128
|
-
React__namespace.default.createElement(uuiComponents.IconContainer, { icon: settings.dropdownMenu.icons.acceptIcon, cx: css$
|
|
2348
|
+
React__namespace.default.createElement(uuiComponents.IconContainer, { icon: settings.dropdownMenu.icons.acceptIcon, cx: css$10.selectedMark })))));
|
|
2129
2349
|
});
|
|
2130
2350
|
function DropdownMenuSplitter(props) {
|
|
2131
|
-
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$
|
|
2132
|
-
React__namespace.default.createElement("hr", { className: css$
|
|
2351
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$10.splitterRoot) },
|
|
2352
|
+
React__namespace.default.createElement("hr", { className: css$10.splitter })));
|
|
2133
2353
|
}
|
|
2134
2354
|
function DropdownMenuHeader(props) {
|
|
2135
|
-
return (React__namespace.default.createElement("div", { className: uuiCore.cx('uui-dropdown-menu-header', props.cx, css$
|
|
2136
|
-
React__namespace.default.createElement("span", { className: css$
|
|
2355
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx('uui-dropdown-menu-header', props.cx, css$10.headerRoot) },
|
|
2356
|
+
React__namespace.default.createElement("span", { className: css$10.header }, props.caption)));
|
|
2137
2357
|
}
|
|
2138
2358
|
function DropdownSubMenu(props) {
|
|
2139
2359
|
const subMenuMiddleware = [
|
|
@@ -2148,7 +2368,7 @@ function DropdownSubMenu(props) {
|
|
|
2148
2368
|
}),
|
|
2149
2369
|
];
|
|
2150
2370
|
const isRtl = uuiCore.getDir() === 'rtl';
|
|
2151
|
-
return (React__namespace.default.createElement(uuiComponents.Dropdown, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", openDelay: 400, closeDelay: 400, placement: isRtl ? 'left-start' : 'right-start', middleware: subMenuMiddleware, renderBody: (dropdownProps) => !props.isDisabled && (React__namespace.default.createElement(DropdownMenuBody, { closeOnKey: exports.IDropdownControlKeys.LEFT_ARROW, ...props, ...dropdownProps })), renderTarget: ({ toggleDropdownOpening, ...targetProps }) => (React__namespace.default.createElement(DropdownMenuButton, { cx: uuiCore.cx(isRtl ? css$
|
|
2371
|
+
return (React__namespace.default.createElement(uuiComponents.Dropdown, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", openDelay: 400, closeDelay: 400, placement: isRtl ? 'left-start' : 'right-start', middleware: subMenuMiddleware, renderBody: (dropdownProps) => !props.isDisabled && (React__namespace.default.createElement(DropdownMenuBody, { closeOnKey: exports.IDropdownControlKeys.LEFT_ARROW, ...props, ...dropdownProps })), renderTarget: ({ toggleDropdownOpening, ...targetProps }) => (React__namespace.default.createElement(DropdownMenuButton, { cx: uuiCore.cx(isRtl ? css$10.submenuRootItemRtl : css$10.submenuRootItem), icon: settings.dropdownMenu.icons.dropdownIcon, iconPosition: "right", isDropdown: true, toggleDropdownOpening: toggleDropdownOpening, ...props, ...targetProps })) }));
|
|
2152
2372
|
}
|
|
2153
2373
|
function DropdownMenuSwitchButton(props) {
|
|
2154
2374
|
const context = React.useContext(uuiCore.UuiContext);
|
|
@@ -2164,29 +2384,29 @@ function DropdownMenuSwitchButton(props) {
|
|
|
2164
2384
|
onHandleValueChange(!isSelected);
|
|
2165
2385
|
}
|
|
2166
2386
|
};
|
|
2167
|
-
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$
|
|
2168
|
-
icon && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icon, cx: css$
|
|
2387
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$10.itemRoot, isDisabled && uuiCore.uuiMod.disabled, (!isDisabled || onValueChange) && uuiCore.uuiMarkers.clickable), onClick: () => onHandleValueChange(!isSelected), role: "menuitem", onKeyDown: handleKeySelect, tabIndex: isDisabled ? -1 : 0 },
|
|
2388
|
+
icon && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icon, cx: css$10.iconBefore }),
|
|
2169
2389
|
React__namespace.default.createElement(uuiComponents.Text, null, caption),
|
|
2170
2390
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
2171
2391
|
React__namespace.default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
2172
2392
|
}
|
|
2173
2393
|
|
|
2174
|
-
var css
|
|
2394
|
+
var css$$ = {"root":"mVBoLW","mode-block":"xr5Q3f","modeBlock":"xr5Q3f","mode-inline":"UZQL88","modeInline":"UZQL88","padding-0":"vIjOHF","padding0":"vIjOHF","padding-6":"FByQid","padding6":"FByQid","padding-12":"_2gjjpE","padding12":"_2gjjpE","padding-18":"_0ZnoQj","padding18":"_0ZnoQj"};
|
|
2175
2395
|
|
|
2176
2396
|
function applyAccordionMods(mods) {
|
|
2177
2397
|
return [
|
|
2178
|
-
css
|
|
2179
|
-
css
|
|
2180
|
-
mods.padding && css
|
|
2398
|
+
css$$.root,
|
|
2399
|
+
css$$[`mode-${mods.mode || 'block'}`],
|
|
2400
|
+
mods.padding && css$$['padding-' + mods.padding],
|
|
2181
2401
|
];
|
|
2182
2402
|
}
|
|
2183
2403
|
const Accordion = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Accordion, applyAccordionMods, (mods) => ({
|
|
2184
2404
|
dropdownIcon: mods.dropdownIcon !== null && settings.accordion.icons.dropdownIcon,
|
|
2185
2405
|
}));
|
|
2186
2406
|
|
|
2187
|
-
var css$
|
|
2407
|
+
var css$_ = {"root":"or-LGB","align-items":"gQavrR","alignItems":"gQavrR","justify-content":"_5R-bAR","justifyContent":"_5R-bAR","border-top":"EXawvI","borderTop":"EXawvI","border-bottom":"Jr1DA2","borderBottom":"Jr1DA2","top-shadow":"mLDNO8","topShadow":"mLDNO8","padding":"ocwUAY","margin":"_1F822J","vPadding":"hPOXwK","column-gap":"_8fcsP9","columnGap":"_8fcsP9","row-gap":"_0CBol8","rowGap":"_0CBol8","spacing":"axRVsv"};
|
|
2188
2408
|
|
|
2189
|
-
const FlexCell = /* @__PURE__ */uuiCore.withMods(uuiComponents.FlexCell, () => [css$
|
|
2409
|
+
const FlexCell = /* @__PURE__ */uuiCore.withMods(uuiComponents.FlexCell, () => [css$_.flexCell]);
|
|
2190
2410
|
|
|
2191
2411
|
const FlexRow = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
2192
2412
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -2195,22 +2415,22 @@ const FlexRow = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
2195
2415
|
}
|
|
2196
2416
|
}
|
|
2197
2417
|
const classNames = uuiCore.cx([
|
|
2198
|
-
css$
|
|
2418
|
+
css$_.root,
|
|
2199
2419
|
'uui-flex-row',
|
|
2200
2420
|
props.onClick && uuiCore.uuiMarkers.clickable,
|
|
2201
2421
|
props.cx,
|
|
2202
2422
|
props.size !== null && 'uui-size-' + (props.size || settings.flexRow.sizes.default),
|
|
2203
|
-
props.alignItems && css$
|
|
2204
|
-
props.justifyContent && css$
|
|
2205
|
-
props.padding && css$
|
|
2206
|
-
props.vPadding && css$
|
|
2207
|
-
props.margin && css$
|
|
2208
|
-
props.topShadow && css$
|
|
2209
|
-
props.borderBottom && css$
|
|
2210
|
-
props.borderTop && css$
|
|
2211
|
-
props.columnGap && css$
|
|
2212
|
-
props.rowGap && css$
|
|
2213
|
-
props.spacing && css$
|
|
2423
|
+
props.alignItems && css$_.alignItems,
|
|
2424
|
+
props.justifyContent && css$_.justifyContent,
|
|
2425
|
+
props.padding && css$_.padding,
|
|
2426
|
+
props.vPadding && css$_.vPadding,
|
|
2427
|
+
props.margin && css$_.margin,
|
|
2428
|
+
props.topShadow && css$_.topShadow,
|
|
2429
|
+
props.borderBottom && css$_.borderBottom,
|
|
2430
|
+
props.borderTop && css$_.borderTop,
|
|
2431
|
+
props.columnGap && css$_.columnGap,
|
|
2432
|
+
props.rowGap && css$_.rowGap,
|
|
2433
|
+
props.spacing && css$_.spacing,
|
|
2214
2434
|
props.background && `uui-flex-row-bg-${props.background}`,
|
|
2215
2435
|
]);
|
|
2216
2436
|
let alignItemsValue = props.alignItems;
|
|
@@ -2236,22 +2456,22 @@ const FlexRow = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
2236
2456
|
} }, props.children));
|
|
2237
2457
|
});
|
|
2238
2458
|
|
|
2239
|
-
var css$
|
|
2459
|
+
var css$Z = {"root":"_0HdaRS","margin-24":"wscOss","margin24":"wscOss","padding-12":"TW7e6A","padding12":"TW7e6A","padding-24":"VANOgE","padding24":"VANOgE","shadow":"yIWjTA","uui-surface-main":"G8-rfN","uuiSurfaceMain":"G8-rfN"};
|
|
2240
2460
|
|
|
2241
2461
|
const Panel = /* @__PURE__ */uuiCore.withMods(uuiComponents.VPanel, (props) => [
|
|
2242
2462
|
'uui-panel',
|
|
2243
|
-
css$
|
|
2244
|
-
props.shadow && css$
|
|
2245
|
-
props.margin && css$
|
|
2246
|
-
props.background && css$
|
|
2463
|
+
css$Z.root,
|
|
2464
|
+
props.shadow && css$Z.shadow,
|
|
2465
|
+
props.margin && css$Z['margin-' + props.margin],
|
|
2466
|
+
props.background && css$Z[`uui-${props.background}`],
|
|
2247
2467
|
]);
|
|
2248
2468
|
|
|
2249
|
-
var css$
|
|
2469
|
+
var css$Y = {"root":"OpdXDI"};
|
|
2250
2470
|
|
|
2251
2471
|
function applyLabeledInputMods(mods) {
|
|
2252
2472
|
return [
|
|
2253
2473
|
'uui-labeled-input',
|
|
2254
|
-
css$
|
|
2474
|
+
css$Y.root,
|
|
2255
2475
|
'uui-size-' + (mods.size || settings.labeledInput.sizes.default),
|
|
2256
2476
|
];
|
|
2257
2477
|
}
|
|
@@ -2263,7 +2483,7 @@ function applyLabeledInputProps(props) {
|
|
|
2263
2483
|
}
|
|
2264
2484
|
const LabeledInput = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.LabeledInput, applyLabeledInputMods, applyLabeledInputProps);
|
|
2265
2485
|
|
|
2266
|
-
var css$
|
|
2486
|
+
var css$X = {"root":"A-FGtz"};
|
|
2267
2487
|
|
|
2268
2488
|
function RadioGroup(props) {
|
|
2269
2489
|
const direction = props.direction || 'vertical';
|
|
@@ -2272,22 +2492,22 @@ function RadioGroup(props) {
|
|
|
2272
2492
|
props.onValueChange(newVal);
|
|
2273
2493
|
}
|
|
2274
2494
|
};
|
|
2275
|
-
return (React__namespace.createElement("fieldset", { ref: props.forwardedRef, className: uuiCore.cx(css$
|
|
2495
|
+
return (React__namespace.createElement("fieldset", { ref: props.forwardedRef, className: uuiCore.cx(css$X.root, uuiCore.directionMode[direction], props.cx), onFocus: props.onFocus, onBlur: props.onBlur, ...props.rawProps }, props.items.map((i) => {
|
|
2276
2496
|
const { id, name, renderName, ...restItemProps } = i;
|
|
2277
2497
|
return (React__namespace.createElement(RadioInput, { name: props.name, renderLabel: i.renderName ? i.renderName : () => i.name, value: props.value === i.id, onValueChange: () => handleChange(i.id), isDisabled: props.isDisabled || i.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, isRequired: props.isRequired, key: i.id.toString(), size: props.size || i.size, ...restItemProps }));
|
|
2278
2498
|
})));
|
|
2279
2499
|
}
|
|
2280
2500
|
|
|
2281
|
-
var css$
|
|
2501
|
+
var css$W = {"root":"oxpPtB"};
|
|
2282
2502
|
|
|
2283
2503
|
function applyScrollBarsMods() {
|
|
2284
2504
|
return [
|
|
2285
|
-
css$
|
|
2505
|
+
css$W.root, 'uui-scroll-bars', 'uui-shadow-top', 'uui-shadow-bottom',
|
|
2286
2506
|
];
|
|
2287
2507
|
}
|
|
2288
2508
|
const ScrollBars = /* @__PURE__ */uuiCore.withMods(uuiComponents.ScrollBars, applyScrollBarsMods);
|
|
2289
2509
|
|
|
2290
|
-
var css$
|
|
2510
|
+
var css$V = {"scroll-container":"_5eIPxb","scrollContainer":"_5eIPxb","list-container":"nkQnrp","listContainer":"nkQnrp"};
|
|
2291
2511
|
|
|
2292
2512
|
const VirtualList = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
2293
2513
|
const { listContainerRef, offsetY, handleScroll, estimatedHeight, scrollContainerRef, } = uuiCore.useVirtualList({
|
|
@@ -2301,7 +2521,7 @@ const VirtualList = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
2301
2521
|
const scrollShadows = uuiCore.useScrollShadows({ root: scrollContainerRef.current });
|
|
2302
2522
|
const renderRows = () => props.renderRows?.({
|
|
2303
2523
|
listContainerRef, estimatedHeight, offsetY, scrollShadows,
|
|
2304
|
-
}) || (React__namespace.createElement("div", { className: css$
|
|
2524
|
+
}) || (React__namespace.createElement("div", { className: css$V.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
2305
2525
|
React__namespace.createElement("div", { ref: listContainerRef, role: props.role, style: { marginTop: offsetY } }, props.rows)));
|
|
2306
2526
|
const renderView = ({ style }) => (React__namespace.createElement(VirtualListView, { isLoading: props.isLoading, style: style, rawProps: props.rawProps, renderBlocker: props.renderBlocker }));
|
|
2307
2527
|
const scrollBarsRef = React__namespace.useCallback((scrollbars) => {
|
|
@@ -2309,7 +2529,7 @@ const VirtualList = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
2309
2529
|
return;
|
|
2310
2530
|
scrollContainerRef.current = scrollbars.container.firstChild;
|
|
2311
2531
|
}, []);
|
|
2312
|
-
return (React__namespace.createElement(ScrollBars, { cx: uuiCore.cx(css$
|
|
2532
|
+
return (React__namespace.createElement(ScrollBars, { cx: uuiCore.cx(css$V.scrollContainer, props.cx, {
|
|
2313
2533
|
[uuiCore.uuiMarkers.scrolledLeft]: scrollShadows.horizontalLeft,
|
|
2314
2534
|
[uuiCore.uuiMarkers.scrolledRight]: scrollShadows.horizontalRight,
|
|
2315
2535
|
[uuiCore.uuiMarkers.scrolledTop]: scrollShadows.verticalTop,
|
|
@@ -2331,7 +2551,35 @@ const VirtualListView = /* @__PURE__ */React__namespace.forwardRef((props, ref)
|
|
|
2331
2551
|
props.renderBlocker ? props.renderBlocker({ isLoading: props.isLoading }) : React__namespace.createElement(Blocker, { isEnabled: props.isLoading })));
|
|
2332
2552
|
});
|
|
2333
2553
|
|
|
2334
|
-
|
|
2554
|
+
const RichTextView = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.RichTextView, (mods) => ['uui-typography', `uui-typography-size-${mods.size || settings.richTextView.sizes.default}`]);
|
|
2555
|
+
|
|
2556
|
+
function TreeRowRenderer(props) {
|
|
2557
|
+
const { row, size } = props;
|
|
2558
|
+
const handleClick = React__namespace.useCallback(() => {
|
|
2559
|
+
const cb = row.onClick || row.onSelect;
|
|
2560
|
+
if (cb && !row.isDisabled) {
|
|
2561
|
+
cb(row);
|
|
2562
|
+
}
|
|
2563
|
+
}, [row]);
|
|
2564
|
+
const handleFold = React__namespace.useCallback(() => row.onFold && row.onFold(row), [row]);
|
|
2565
|
+
const renderAddons = React__namespace.useCallback(() => props.renderAddons && props.renderAddons(row), [props.renderAddons, row]);
|
|
2566
|
+
const isActive = row.isSelected;
|
|
2567
|
+
const getCaption = React__namespace.useCallback((value) => {
|
|
2568
|
+
return props.getCaption(value);
|
|
2569
|
+
}, [props.getCaption]);
|
|
2570
|
+
return (React__namespace.createElement(VerticalTabButton, { ...row, isActive: isActive, caption: row.isLoading ? React__namespace.createElement(TextPlaceholder, null) : getCaption(row.value), size: size, onClick: (row.onClick || row.onSelect) ? handleClick : undefined, link: row.link, onFold: row.onFold ? handleFold : undefined, weight: (row.isChildrenSelected || row.isSelected || isActive) ? 'semibold' : 'regular', renderAddons: renderAddons }));
|
|
2571
|
+
}
|
|
2572
|
+
const MemoizedTreeRowRenderer = /* @__PURE__ */React__namespace.memo(TreeRowRenderer);
|
|
2573
|
+
function Tree(props) {
|
|
2574
|
+
const { view, renderRow, size = '36', cx: propsCx, value, onValueChange, } = props;
|
|
2575
|
+
const rows = view.getVisibleRows();
|
|
2576
|
+
const rowsCount = view.getListProps().rowsCount ?? rows.length;
|
|
2577
|
+
const renderRowFunction = renderRow || (({ key, ...row }) => (React__namespace.createElement(MemoizedTreeRowRenderer, { key: key, row: row, size: size, getCaption: props.getCaption, renderAddons: props.renderAddons })));
|
|
2578
|
+
const renderedRows = React.useMemo(() => rows.map((row) => renderRowFunction(row)), [rows, renderRowFunction, size]);
|
|
2579
|
+
return (React__namespace.createElement(VirtualList, { value: value, onValueChange: onValueChange, rowsCount: rowsCount, rows: renderedRows, cx: uuiCore.cx(propsCx), role: "tree" }));
|
|
2580
|
+
}
|
|
2581
|
+
|
|
2582
|
+
var css$U = {"root":"ZWH4Jq"};
|
|
2335
2583
|
|
|
2336
2584
|
function CheckboxGroup(props) {
|
|
2337
2585
|
const currentValue = props.value || [];
|
|
@@ -2347,16 +2595,16 @@ function CheckboxGroup(props) {
|
|
|
2347
2595
|
}
|
|
2348
2596
|
props.onValueChange(newSelection);
|
|
2349
2597
|
};
|
|
2350
|
-
return (React__namespace.createElement("fieldset", { ref: props.forwardedRef, className: uuiCore.cx(css$
|
|
2598
|
+
return (React__namespace.createElement("fieldset", { ref: props.forwardedRef, className: uuiCore.cx(css$U.root, uuiCore.directionMode[direction], props.cx), ...props.rawProps }, props.items.map((i) => {
|
|
2351
2599
|
const { id, name, renderName, ...restItemProps } = i;
|
|
2352
2600
|
return (React__namespace.createElement(Checkbox, { renderLabel: i.renderName ? i.renderName : () => i.name, value: currentValue.indexOf(i.id) !== -1, onValueChange: (selected) => handleChange(selected, i.id), isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, isRequired: props.isRequired, key: i.id.toString(), size: props.size || i.size, ...restItemProps }));
|
|
2353
2601
|
})));
|
|
2354
2602
|
}
|
|
2355
2603
|
|
|
2356
|
-
var css$
|
|
2604
|
+
var css$T = {"root":"uJElha","modal-blocker":"xYD5eb","modalBlocker":"xYD5eb","animateModalBlocker":"s6L8sR","modal":"buo8iX","modal-footer":"_1-Stuw","modalFooter":"_1-Stuw","border-top":"gA2QOE","borderTop":"gA2QOE","modal-header":"lMLcm5","modalHeader":"lMLcm5","border-bottom":"sulsSn","borderBottom":"sulsSn"};
|
|
2357
2605
|
|
|
2358
|
-
const ModalBlocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalBlocker, () => [css$
|
|
2359
|
-
const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, () => [css$
|
|
2606
|
+
const ModalBlocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalBlocker, () => [css$T.modalBlocker]);
|
|
2607
|
+
const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, () => [css$T.root, css$T.modal], (props) => {
|
|
2360
2608
|
const width = props.width;
|
|
2361
2609
|
const height = props.height || 'auto';
|
|
2362
2610
|
const maxHeight = uuiCore.isMobile() ? 'var(--uui-modals-mobile-max-height)' : (props.maxHeight || 'var(--uui-modals-max-height)');
|
|
@@ -2370,7 +2618,7 @@ const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, (
|
|
|
2370
2618
|
};
|
|
2371
2619
|
});
|
|
2372
2620
|
function ModalHeader(props) {
|
|
2373
|
-
return (React__namespace.default.createElement("div", { className: cx__default.default(css$
|
|
2621
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default(css$T.root, css$T.modalHeader, 'uui-modal-header', props.borderBottom && css$T.borderBottom, props.cx), ...props.rawProps, style: {
|
|
2374
2622
|
...props.rawProps?.style,
|
|
2375
2623
|
} },
|
|
2376
2624
|
props.title && (React__namespace.default.createElement("div", { className: cx__default.default('uui-modal-title', 'uui-typography') }, props.title)),
|
|
@@ -2380,7 +2628,7 @@ function ModalHeader(props) {
|
|
|
2380
2628
|
React__namespace.default.createElement(IconButton, { rawProps: { 'aria-label': 'Close modal' }, icon: settings.modal.icons.closeIcon, onClick: props.onClose })))));
|
|
2381
2629
|
}
|
|
2382
2630
|
function ModalFooter(props) {
|
|
2383
|
-
return (React__namespace.default.createElement("div", { className: cx__default.default(css$
|
|
2631
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default(css$T.root, css$T.modalFooter, 'uui-modal-footer', props.borderTop && css$T.borderTop, props.cx), ...props.rawProps, style: {
|
|
2384
2632
|
...props.rawProps?.style,
|
|
2385
2633
|
} }, props.children));
|
|
2386
2634
|
}
|
|
@@ -2545,7 +2793,7 @@ const TREE_SHAKEABLE_INIT = () => ({
|
|
|
2545
2793
|
});
|
|
2546
2794
|
const i18n = /* @__PURE__ */TREE_SHAKEABLE_INIT();
|
|
2547
2795
|
|
|
2548
|
-
var css
|
|
2796
|
+
var css$S = {"root":"nCiB38","icon-wrapper":"O-zcGy","iconWrapper":"O-zcGy","action-wrapper":"y-7SIi","actionWrapper":"y-7SIi","close-icon":"fcTSmE","closeIcon":"fcTSmE","main-path":"G-efK0","mainPath":"G-efK0","content":"lkS2A3","close-wrapper":"ZC6vZ8","closeWrapper":"ZC6vZ8","clear-notifications":"aDBAE0","clearNotifications":"aDBAE0"};
|
|
2549
2797
|
|
|
2550
2798
|
const NotificationCard = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
2551
2799
|
const notificationCardNode = React__namespace.default.useRef(null);
|
|
@@ -2558,15 +2806,15 @@ const NotificationCard = /* @__PURE__ */React__namespace.default.forwardRef((pro
|
|
|
2558
2806
|
notificationCardNode.current?.removeEventListener('mouseleave', props.refreshTimer);
|
|
2559
2807
|
};
|
|
2560
2808
|
}, []);
|
|
2561
|
-
return (React__namespace.default.createElement("div", { role: "alert", className: cx__default.default('uui-notification_card', props.color && `uui-color-${props.color}`, css
|
|
2562
|
-
React__namespace.default.createElement("div", { className: css
|
|
2563
|
-
props.icon && (React__namespace.default.createElement("div", { className: css
|
|
2809
|
+
return (React__namespace.default.createElement("div", { role: "alert", className: cx__default.default('uui-notification_card', props.color && `uui-color-${props.color}`, css$S.root, props.cx), ref: notificationCardNode, ...props.rawProps },
|
|
2810
|
+
React__namespace.default.createElement("div", { className: css$S.mainPath },
|
|
2811
|
+
props.icon && (React__namespace.default.createElement("div", { className: css$S.iconWrapper },
|
|
2564
2812
|
React__namespace.default.createElement(uuiComponents.IconContainer, { size: settings.notificationCard.sizes.icon, icon: props.icon }))),
|
|
2565
|
-
React__namespace.default.createElement("div", { className: css
|
|
2813
|
+
React__namespace.default.createElement("div", { className: css$S.content },
|
|
2566
2814
|
props.children,
|
|
2567
|
-
props.actions && (React__namespace.default.createElement("div", { className: css
|
|
2568
|
-
props.onClose && (React__namespace.default.createElement("div", { className: cx__default.default(css
|
|
2569
|
-
React__namespace.default.createElement(IconButton, { icon: settings.notificationCard.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css
|
|
2815
|
+
props.actions && (React__namespace.default.createElement("div", { className: css$S.actionWrapper }, props.actions.map((action) => (React__namespace.default.createElement(LinkButton, { key: action.name, caption: action.name, onClick: action.action, cx: css$S.actionLink, size: settings.notificationCard.sizes.action, rawProps: action.rawProps })))))),
|
|
2816
|
+
props.onClose && (React__namespace.default.createElement("div", { className: cx__default.default(css$S.closeWrapper, 'uui-notification_card-close_icon') },
|
|
2817
|
+
React__namespace.default.createElement(IconButton, { icon: settings.notificationCard.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$S.closeIcon }))))));
|
|
2570
2818
|
});
|
|
2571
2819
|
const WarningNotification = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, { icon: settings.notificationCard.icons.warningIcon, color: "warning", ...props, ref: ref, cx: props.cx })));
|
|
2572
2820
|
const SuccessNotification = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, { icon: settings.notificationCard.icons.successIcon, color: "success", ...props, ref: ref, cx: props.cx })));
|
|
@@ -2574,11 +2822,11 @@ const HintNotification = /* @__PURE__ */React__namespace.default.forwardRef((pro
|
|
|
2574
2822
|
const ErrorNotification = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, { icon: settings.notificationCard.icons.errorIcon, color: "error", ...props, ref: ref, cx: props.cx })));
|
|
2575
2823
|
function ClearNotification() {
|
|
2576
2824
|
const uuiCtx = uuiCore.useUuiContext();
|
|
2577
|
-
return (React__namespace.default.createElement("div", { className: cx__default.default(css
|
|
2825
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default(css$S.clearNotifications, 'uui-clear-notifications') },
|
|
2578
2826
|
React__namespace.default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => uuiCtx.uuiNotifications.clearAll() })));
|
|
2579
2827
|
}
|
|
2580
2828
|
|
|
2581
|
-
var css$
|
|
2829
|
+
var css$R = {"footer":"BXu-K-"};
|
|
2582
2830
|
|
|
2583
2831
|
class ConfirmationModal extends React__namespace.Component {
|
|
2584
2832
|
render() {
|
|
@@ -2590,7 +2838,7 @@ class ConfirmationModal extends React__namespace.Component {
|
|
|
2590
2838
|
React__namespace.createElement(ModalWindow, { width: 420 },
|
|
2591
2839
|
React__namespace.createElement(ModalHeader, { borderBottom: true, title: this.props.caption, onClose: () => this.props.abort() }),
|
|
2592
2840
|
React__namespace.createElement(ScrollBars, null, bodyContent),
|
|
2593
|
-
React__namespace.createElement(ModalFooter, { cx: css$
|
|
2841
|
+
React__namespace.createElement(ModalFooter, { cx: css$R.footer },
|
|
2594
2842
|
this.props.hideCancelButton || (React__namespace.createElement(Button, { caption: i18n.form.modals.discardButton, onClick: () => this.props.success(false), fill: "outline", color: "secondary" })),
|
|
2595
2843
|
React__namespace.createElement(Button, { caption: i18n.form.modals.saveButton, onClick: () => this.props.success(true), color: "primary" })))));
|
|
2596
2844
|
}
|
|
@@ -2620,7 +2868,7 @@ function useReliableForceUpdate() {
|
|
|
2620
2868
|
return red[1];
|
|
2621
2869
|
}
|
|
2622
2870
|
|
|
2623
|
-
var css$
|
|
2871
|
+
var css$Q = {"root":"Kehh-v","container":"_9AWgBo"};
|
|
2624
2872
|
|
|
2625
2873
|
const defaultFormat = 'MMM D, YYYY';
|
|
2626
2874
|
const valueFormat = 'YYYY-MM-DD';
|
|
@@ -2831,21 +3079,21 @@ function DatePickerHeader({ navIconLeft, navIconRight, value: { month, view }, o
|
|
|
2831
3079
|
}, [view, month]);
|
|
2832
3080
|
const disablePrev = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getPrevYearsList(month));
|
|
2833
3081
|
const disableNext = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getNextYearsList(month));
|
|
2834
|
-
return (React__namespace.createElement("div", { className: cx__default.default(css$
|
|
3082
|
+
return (React__namespace.createElement("div", { className: cx__default.default(css$Q.root, uuiHeader.container, cx__default.default) },
|
|
2835
3083
|
React__namespace.createElement("header", { className: uuiHeader.headerNav },
|
|
2836
3084
|
React__namespace.createElement(Button, { icon: navIconLeft || settings.datePicker.icons.body.prevIcon, color: "secondary", fill: "ghost", cx: uuiHeader.navIconLeft, onClick: !isDisabled && (() => onLeftNavigationArrow()), isDisabled: disablePrev }),
|
|
2837
3085
|
React__namespace.createElement(Button, { caption: title, fill: "ghost", cx: uuiHeader.navTitle, onClick: !isDisabled && (() => onCaptionClick(view)) }),
|
|
2838
3086
|
React__namespace.createElement(Button, { icon: navIconRight || settings.datePicker.icons.body.nextIcon, color: "secondary", fill: "ghost", cx: uuiHeader.navIconRight, onClick: !isDisabled && (() => onRightNavigationArrow()), isDisabled: disableNext }))));
|
|
2839
3087
|
}
|
|
2840
3088
|
|
|
2841
|
-
var css$
|
|
3089
|
+
var css$P = {"root":"RoEgIt"};
|
|
2842
3090
|
|
|
2843
3091
|
function applyDateSelectionMods() {
|
|
2844
|
-
return [css$
|
|
3092
|
+
return [css$P.root, `uui-size-${settings.datePicker.sizes.body}`];
|
|
2845
3093
|
}
|
|
2846
3094
|
const Calendar = /* @__PURE__ */uuiCore.withMods(uuiComponents.Calendar, applyDateSelectionMods);
|
|
2847
3095
|
|
|
2848
|
-
var css$
|
|
3096
|
+
var css$O = {"root":"cIwFTj"};
|
|
2849
3097
|
|
|
2850
3098
|
const uuiDatePickerBody = {
|
|
2851
3099
|
wrapper: 'uui-datepicker-body-wrapper',
|
|
@@ -2889,7 +3137,7 @@ function StatelessDatePickerBodyComp({ renderDay, isHoliday, cx: classes, filter
|
|
|
2889
3137
|
}
|
|
2890
3138
|
};
|
|
2891
3139
|
return (React__namespace.default.createElement("div", { ref: ref, className: uuiCore.cx(uuiDatePickerBodyBase.container, `uui-size-${settings.datePicker.sizes.body}`, classes), ...rawProps },
|
|
2892
|
-
React__namespace.default.createElement("div", { className: uuiCore.cx(css$
|
|
3140
|
+
React__namespace.default.createElement("div", { className: uuiCore.cx(css$O.root, uuiDatePickerBody.wrapper) },
|
|
2893
3141
|
React__namespace.default.createElement(DatePickerHeader, { value: {
|
|
2894
3142
|
view,
|
|
2895
3143
|
month,
|
|
@@ -2966,7 +3214,7 @@ function DatePickerComponent(props, ref) {
|
|
|
2966
3214
|
}
|
|
2967
3215
|
const DatePicker = /* @__PURE__ */React__namespace.default.forwardRef(DatePickerComponent);
|
|
2968
3216
|
|
|
2969
|
-
var css$
|
|
3217
|
+
var css$N = {"date-input":"_2tZSi7","dateInput":"_2tZSi7","root":"NV5l08","separator":"_38ISk1"};
|
|
2970
3218
|
|
|
2971
3219
|
const RangeDatePickerInput = /* @__PURE__ */React.forwardRef(({ isDisabled, isInvalid, isReadonly, size, disableClear, rawProps, value, inFocus, format, onValueChange, onFocusInput, onBlurInput, onClick, getPlaceholder, filter, onKeyDown, preventEmptyFromDate, preventEmptyToDate, id, cx: classes, }, ref) => {
|
|
2972
3220
|
const [inputValue, setInputValue] = React.useState(toCustomDateRangeFormat(value, format));
|
|
@@ -3031,13 +3279,13 @@ const RangeDatePickerInput = /* @__PURE__ */React.forwardRef(({ isDisabled, isIn
|
|
|
3031
3279
|
const clearAllowed = !disableClear && !(preventEmptyFromDate && preventEmptyToDate) && inputValue.from && inputValue.to;
|
|
3032
3280
|
return (
|
|
3033
3281
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
3034
|
-
React__namespace.default.createElement("div", { ref: ref, className: uuiCore.cx(`uui-size-${size || settings.rangeDatePicker.sizes.default}`, 'uui-range-date-picker', classes, css$
|
|
3035
|
-
React__namespace.default.createElement(TextInput, { icon: settings.rangeDatePicker.icons.input.calendarIcon, cx: uuiCore.cx(css$
|
|
3036
|
-
React__namespace.default.createElement("div", { className: css$
|
|
3037
|
-
React__namespace.default.createElement(TextInput, { cx: uuiCore.cx(css$
|
|
3282
|
+
React__namespace.default.createElement("div", { ref: ref, className: uuiCore.cx(`uui-size-${size || settings.rangeDatePicker.sizes.default}`, 'uui-range-date-picker', classes, css$N.root, isDisabled && uuiCore.uuiMod.disabled, isReadonly && uuiCore.uuiMod.readonly, isInvalid && uuiCore.uuiMod.invalid, inFocus && uuiCore.uuiMod.focus), onKeyDown: onKeyDown },
|
|
3283
|
+
React__namespace.default.createElement(TextInput, { icon: settings.rangeDatePicker.icons.input.calendarIcon, cx: uuiCore.cx(css$N.dateInput, inFocus === 'from' && uuiCore.uuiMod.focus), size: size || settings.rangeDatePicker.sizes.default, placeholder: getPlaceholder ? getPlaceholder('from') : i18n.rangeDatePicker.pickerPlaceholderFrom, value: inputValue.from || undefined, onValueChange: (v) => onInputChange(v || '', 'from'), onFocus: (event) => handleFocus(event, 'from'), onBlur: (event) => handleBlur(event, 'from'), isInvalid: isInvalid, isDisabled: isDisabled, isReadonly: isReadonly, isDropdown: false, rawProps: rawProps?.from, onClick: onClick, onKeyDown: onInputKeyDown, id: id }),
|
|
3284
|
+
React__namespace.default.createElement("div", { className: css$N.separator }),
|
|
3285
|
+
React__namespace.default.createElement(TextInput, { cx: uuiCore.cx(css$N.dateInput, inFocus === 'to' && uuiCore.uuiMod.focus), placeholder: getPlaceholder ? getPlaceholder('to') : i18n.rangeDatePicker.pickerPlaceholderTo, size: size || settings.rangeDatePicker.sizes.default, value: inputValue.to || undefined, onCancel: clearAllowed ? onClear : undefined, onValueChange: (v) => onInputChange(v || '', 'to'), onFocus: (e) => handleFocus(e, 'to'), onBlur: (e) => handleBlur(e, 'to'), isInvalid: isInvalid, isDisabled: isDisabled, isReadonly: isReadonly, isDropdown: false, rawProps: rawProps?.to, onClick: onClick, onKeyDown: onInputKeyDown })));
|
|
3038
3286
|
});
|
|
3039
3287
|
|
|
3040
|
-
var css$
|
|
3288
|
+
var css$M = {"root":"JXWS7P"};
|
|
3041
3289
|
|
|
3042
3290
|
const uuiPresets = {
|
|
3043
3291
|
container: 'uui-presets-container',
|
|
@@ -3052,12 +3300,12 @@ const getPresets = (presets) => {
|
|
|
3052
3300
|
})).sort((a, b) => a.order - b.order);
|
|
3053
3301
|
};
|
|
3054
3302
|
function CalendarPresets(props) {
|
|
3055
|
-
return (React__namespace.createElement("div", { ref: props.forwardedRef, className: uuiCore.cx(uuiPresets.container, css$
|
|
3303
|
+
return (React__namespace.createElement("div", { ref: props.forwardedRef, className: uuiCore.cx(uuiPresets.container, css$M.root, props.cx), ...props.rawProps },
|
|
3056
3304
|
React__namespace.createElement("div", { className: uuiPresets.header }, "Presets"),
|
|
3057
3305
|
getPresets(props.presets).map((item) => (React__namespace.createElement(LinkButton, { key: item.key, caption: item.name, onClick: () => props.onPresetSet(item), size: settings.rangeDatePicker.sizes.preset })))));
|
|
3058
3306
|
}
|
|
3059
3307
|
|
|
3060
|
-
var css$
|
|
3308
|
+
var css$L = {"root":"BRPQ2v","container":"eq16uM","day-selection":"VMBu16","daySelection":"VMBu16","from-picker":"-VtEZ-","fromPicker":"-VtEZ-","to-picker":"xUOMw5","toPicker":"xUOMw5","bodes-wrapper":"fNJvww","bodesWrapper":"fNJvww","blocker":"jS9UMi"};
|
|
3061
3309
|
|
|
3062
3310
|
const uuiRangeDatePickerBody = {
|
|
3063
3311
|
inRange: 'uui-range-datepicker-in-range',
|
|
@@ -3210,18 +3458,18 @@ function RangeDatePickerBodyComp(props, ref) {
|
|
|
3210
3458
|
setMonth(monthToSet);
|
|
3211
3459
|
}
|
|
3212
3460
|
}, [selectedDate]);
|
|
3213
|
-
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default(css$
|
|
3214
|
-
React__namespace.default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$
|
|
3461
|
+
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default(css$L.root, uuiDatePickerBodyBase.container, props.cx), ...props.rawProps, "aria-multiselectable": "true" },
|
|
3462
|
+
React__namespace.default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$L.daySelection, css$L.container], alignItems: "top" },
|
|
3215
3463
|
React__namespace.default.createElement(FlexCell, { width: "auto" },
|
|
3216
3464
|
React__namespace.default.createElement(FlexRow, null,
|
|
3217
|
-
React__namespace.default.createElement(FlexRow, { cx: css$
|
|
3218
|
-
React__namespace.default.createElement(StatelessDatePickerBody, { key: "date-picker-body-left", cx: cx__default.default(css$
|
|
3465
|
+
React__namespace.default.createElement(FlexRow, { cx: css$L.bodesWrapper, alignItems: "top" },
|
|
3466
|
+
React__namespace.default.createElement(StatelessDatePickerBody, { key: "date-picker-body-left", cx: cx__default.default(css$L.fromPicker), ...from, onValueChange: (v) => onBodyValueChange(v), onMonthChange: (m) => {
|
|
3219
3467
|
setMonth(m);
|
|
3220
3468
|
}, onViewChange: (v) => {
|
|
3221
3469
|
setView(v);
|
|
3222
3470
|
setDisabledPanel(v !== 'DAY_SELECTION' ? 'right' : null);
|
|
3223
3471
|
}, filter: props.filter, isHoliday: props.isHoliday, renderDay: props.renderDay || renderDay, isDisabled: disabledPanel === 'left' }),
|
|
3224
|
-
React__namespace.default.createElement(StatelessDatePickerBody, { key: "date-picker-body-right", cx: cx__default.default(css$
|
|
3472
|
+
React__namespace.default.createElement(StatelessDatePickerBody, { key: "date-picker-body-right", cx: cx__default.default(css$L.toPicker), ...to, onValueChange: (v) => onBodyValueChange(v), onMonthChange: (m) => {
|
|
3225
3473
|
setMonth(m.subtract(1, 'month'));
|
|
3226
3474
|
}, onViewChange: (v) => {
|
|
3227
3475
|
setView(v);
|
|
@@ -3230,7 +3478,7 @@ function RangeDatePickerBodyComp(props, ref) {
|
|
|
3230
3478
|
view !== 'DAY_SELECTION' && (React__namespace.default.createElement("div", { style: {
|
|
3231
3479
|
left: disabledPanel === 'right' ? '50%' : undefined,
|
|
3232
3480
|
right: disabledPanel === 'left' ? '50%' : undefined,
|
|
3233
|
-
}, className: css$
|
|
3481
|
+
}, className: css$L.blocker }))),
|
|
3234
3482
|
props.presets && renderPresets(props.presets)),
|
|
3235
3483
|
props.renderFooter && props.renderFooter()))));
|
|
3236
3484
|
}
|
|
@@ -3259,7 +3507,7 @@ const getDayState = (day, selectedDate) => {
|
|
|
3259
3507
|
};
|
|
3260
3508
|
};
|
|
3261
3509
|
|
|
3262
|
-
var css$
|
|
3510
|
+
var css$K = {"dropdown-container":"nLCSbA","dropdownContainer":"nLCSbA"};
|
|
3263
3511
|
|
|
3264
3512
|
function RangeDatePickerComponent(props, ref) {
|
|
3265
3513
|
const { value: _value, format = defaultFormat, size = settings.rangeDatePicker.sizes.default } = props;
|
|
@@ -3303,7 +3551,7 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
3303
3551
|
}
|
|
3304
3552
|
};
|
|
3305
3553
|
const renderBody = (renderProps) => {
|
|
3306
|
-
return (React__namespace.default.createElement(DropdownContainer, { ...renderProps, cx: cx__default.default(css$
|
|
3554
|
+
return (React__namespace.default.createElement(DropdownContainer, { ...renderProps, cx: cx__default.default(css$K.dropdownContainer), shards: [targetRef], returnFocus: true },
|
|
3307
3555
|
React__namespace.default.createElement(FlexRow, null,
|
|
3308
3556
|
React__namespace.default.createElement(RangeDatePickerBody, { cx: cx__default.default(props.bodyCx), value: {
|
|
3309
3557
|
selectedDate: _value,
|
|
@@ -3327,169 +3575,24 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
3327
3575
|
}
|
|
3328
3576
|
const RangeDatePicker = /* @__PURE__ */React__namespace.default.forwardRef(RangeDatePickerComponent);
|
|
3329
3577
|
|
|
3330
|
-
var css$
|
|
3578
|
+
var css$J = {"root":"VGpmp6","blocker":"PgZcIt","marker":"nLWkhp","top":"UCiZiy","bottom":"wRKnPg","left":"ZkVMaX","right":"n7-q6w","inside":"_6lbD0m"};
|
|
3331
3579
|
|
|
3332
3580
|
function DropMarker(props) {
|
|
3333
3581
|
return props.isDndInProgress
|
|
3334
3582
|
? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
3335
|
-
props.enableBlocker && React__namespace.createElement("div", { className: css$
|
|
3583
|
+
props.enableBlocker && React__namespace.createElement("div", { className: css$J.blocker }),
|
|
3336
3584
|
React__namespace.createElement("div", { className: cx__default.default([
|
|
3337
|
-
css$
|
|
3338
|
-
css$
|
|
3339
|
-
css$
|
|
3585
|
+
css$J.root,
|
|
3586
|
+
css$J.marker,
|
|
3587
|
+
css$J[props.position],
|
|
3340
3588
|
props?.cx,
|
|
3341
3589
|
]) })))
|
|
3342
3590
|
: null;
|
|
3343
3591
|
}
|
|
3344
3592
|
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
var css$R = {"search-wrapper":"_8BgQp0","searchWrapper":"_8BgQp0","no-data":"yqTypp","noData":"yqTypp"};
|
|
3348
|
-
|
|
3349
|
-
var css$Q = {"picker-row":"C-GfJT","pickerRow":"C-GfJT","align-widgets-top":"zKlyn9","alignWidgetsTop":"zKlyn9","row-content":"C5AwCP","rowContent":"C5AwCP","align-widgets-center":"_0Lk02B","alignWidgetsCenter":"_0Lk02B","icon-container":"tMYRMb","iconContainer":"tMYRMb","content-wrapper":"PDHA8t","contentWrapper":"PDHA8t","icon-wrapper":"-u-X-o","iconWrapper":"-u-X-o","icon-default":"_3iuS-p","iconDefault":"_3iuS-p","selected-mark":"LEqmBj","selectedMark":"LEqmBj"};
|
|
3350
|
-
|
|
3351
|
-
var css$P = {"root":"_0fDfl0"};
|
|
3352
|
-
|
|
3353
|
-
const AvatarStack = /* @__PURE__ */uuiCore.withMods(uuiComponents.AvatarStack, () => [css$P.root]);
|
|
3354
|
-
|
|
3355
|
-
var css$O = {"root":"G5G6C5"};
|
|
3356
|
-
|
|
3357
|
-
const DEFAULT_FILL = 'solid';
|
|
3358
|
-
function applyBadgeMods(mods) {
|
|
3359
|
-
return [
|
|
3360
|
-
'uui-badge',
|
|
3361
|
-
css$O.root,
|
|
3362
|
-
`uui-size-${mods.size || settings.badge.sizes.default}`,
|
|
3363
|
-
`uui-fill-${mods.fill || DEFAULT_FILL}`,
|
|
3364
|
-
`uui-color-${mods.color || 'info'}`,
|
|
3365
|
-
];
|
|
3366
|
-
}
|
|
3367
|
-
const Badge = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
3368
|
-
const styles = [applyBadgeMods(props), props.cx];
|
|
3369
|
-
const DropdownIcon = props.dropdownIcon ? props.dropdownIcon : settings.badge.icons.dropdownIcon;
|
|
3370
|
-
return (React__namespace.default.createElement(uuiComponents.Clickable, { ...props, rawProps: {
|
|
3371
|
-
'aria-haspopup': props.isDropdown,
|
|
3372
|
-
'aria-expanded': props.isOpen,
|
|
3373
|
-
...props.rawProps,
|
|
3374
|
-
}, cx: styles, ref: ref },
|
|
3375
|
-
(props.indicator && props.fill === 'outline') && (React__namespace.default.createElement("div", { className: "uui-indicator" })),
|
|
3376
|
-
props.icon && props.iconPosition !== 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
3377
|
-
props.caption && (React__namespace.default.createElement("div", { className: uuiCore.uuiElement.caption }, props.caption)),
|
|
3378
|
-
props.count !== undefined && props.count !== null && (React__namespace.default.createElement(CountIndicator, { key: "count-indicator", color: null, size: settings.badge.sizes.countIndicatorMap[props.size || settings.badge.sizes.default], caption: props.count })),
|
|
3379
|
-
props.icon && props.iconPosition === 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
3380
|
-
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
3381
|
-
});
|
|
3593
|
+
var css$I = {"search-wrapper":"xT6L7x","searchWrapper":"xT6L7x","no-data":"yb7j-G","noData":"yb7j-G"};
|
|
3382
3594
|
|
|
3383
|
-
var css$
|
|
3384
|
-
|
|
3385
|
-
function applyTagMods(props) {
|
|
3386
|
-
return [
|
|
3387
|
-
css$N.root,
|
|
3388
|
-
`uui-size-${props.size || settings.tag.sizes.default}`,
|
|
3389
|
-
`uui-color-${props.color || 'neutral'}`,
|
|
3390
|
-
`uui-fill-${props.fill || 'solid'}`,
|
|
3391
|
-
'uui-tag',
|
|
3392
|
-
];
|
|
3393
|
-
}
|
|
3394
|
-
const Tag = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
3395
|
-
const styles = [applyTagMods(props), props.cx];
|
|
3396
|
-
const ClearIcon = props.clearIcon ? props.clearIcon : settings.tag.icons.clearIcon;
|
|
3397
|
-
const DropdownIcon = props.dropdownIcon ? props.dropdownIcon : settings.tag.icons.dropdownIcon;
|
|
3398
|
-
return (React__namespace.default.createElement(uuiComponents.Clickable, { ...props, rawProps: {
|
|
3399
|
-
'aria-haspopup': props.isDropdown,
|
|
3400
|
-
'aria-expanded': props.isOpen,
|
|
3401
|
-
...props.rawProps,
|
|
3402
|
-
}, cx: styles, ref: ref },
|
|
3403
|
-
props.icon && props.iconPosition !== 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
3404
|
-
props.caption && (React__namespace.default.createElement("div", { className: uuiCore.uuiElement.caption }, props.caption)),
|
|
3405
|
-
props.count !== undefined && props.count !== null && (React__namespace.default.createElement(CountIndicator, { color: (!props.color || props.color === 'neutral') ? 'white' : props.color, size: settings.tag.sizes.countIndicatorMap[(props.size || settings.tag.sizes.default)], caption: props.count })),
|
|
3406
|
-
props.icon && props.iconPosition === 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
3407
|
-
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
3408
|
-
props.onClear && !props.isDisabled && (React__namespace.default.createElement(uuiComponents.IconContainer, { cx: uuiCore.uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
3409
|
-
});
|
|
3410
|
-
|
|
3411
|
-
var css$M = {"root":"Yg35V7","page":"loh5yC","spacer":"_9MtNxN","mode-ghost":"txYmoC","modeGhost":"txYmoC"};
|
|
3412
|
-
|
|
3413
|
-
function Paginator(props) {
|
|
3414
|
-
const renderPaginator = (params) => (React__namespace.default.createElement("nav", { role: "navigation", className: cx__default.default(css$M.root, 'uui-paginator', `uui-size-${props.size || settings.paginator.sizes.default}`), ...params.rawProps },
|
|
3415
|
-
React__namespace.default.createElement(Button, { size: props.size || settings.paginator.sizes.default, icon: settings.paginator.icons.leftArrowIcon, onClick: params.goToPrev, isDisabled: params.isFirst || props.isDisabled, fill: "outline", color: "secondary" }),
|
|
3416
|
-
params.pages.map((page, index) => {
|
|
3417
|
-
if (page.type === 'spacer') {
|
|
3418
|
-
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$M.spacer, css$M.page), size: props.size || settings.paginator.sizes.default, key: `${index}_spacer`, caption: "...", fill: "ghost", color: "secondary", tabIndex: -1, isDisabled: props.isDisabled }));
|
|
3419
|
-
}
|
|
3420
|
-
else {
|
|
3421
|
-
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$M[`mode-${!page.isActive && 'ghost'}`], css$M.page), size: props.size || settings.paginator.sizes.default, key: page.pageNumber, caption: page.pageNumber, onClick: () => page.onClick?.(), rawProps: { 'aria-current': page.isActive }, fill: (page.isActive && 'outline') || 'ghost', color: "primary", isDisabled: props.isDisabled }));
|
|
3422
|
-
}
|
|
3423
|
-
}),
|
|
3424
|
-
React__namespace.default.createElement(Button, { size: props.size || settings.paginator.sizes.default, icon: settings.paginator.icons.rightArrowIcon, onClick: params.goToNext, isDisabled: params.isLast || props.isDisabled, fill: "outline", color: "secondary" })));
|
|
3425
|
-
return React__namespace.default.createElement(uuiComponents.Paginator, { ...props, render: renderPaginator });
|
|
3426
|
-
}
|
|
3427
|
-
|
|
3428
|
-
var css$L = {"root":"KwtrlV","progress-bar":"QOg-JM","progressBar":"QOg-JM","progressBar-indeterminate":"ofNDml","progressBarIndeterminate":"ofNDml","size-12":"ywf2rA","size12":"ywf2rA","size-18":"UoJo19","size18":"UoJo19","size-24":"YCy6h8","size24":"YCy6h8"};
|
|
3429
|
-
|
|
3430
|
-
const IndeterminateBar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
3431
|
-
return (React__namespace.createElement("div", { ref: ref, className: cx__default.default('uui-indeterminate_bar', props.cx, css$L.root, css$L[`size-${props.size || 12}`]) },
|
|
3432
|
-
React__namespace.createElement("div", { className: cx__default.default(css$L.progressBar) })));
|
|
3433
|
-
});
|
|
3434
|
-
|
|
3435
|
-
var css$K = {"root":"iEwjaX","striped":"Fa-Xg2","animate-stripes":"wW2v8P","animateStripes":"wW2v8P","size-12":"-topj7","size12":"-topj7","size-18":"A4swnj","size18":"A4swnj","size-24":"-GURK9","size24":"-GURK9"};
|
|
3436
|
-
|
|
3437
|
-
const DEFAULT_SIZE = '12';
|
|
3438
|
-
function applyProgressBarMods(mods) {
|
|
3439
|
-
const size = mods.size || DEFAULT_SIZE;
|
|
3440
|
-
return [
|
|
3441
|
-
css$K.root,
|
|
3442
|
-
css$K[`size-${size}`],
|
|
3443
|
-
mods.striped && css$K.striped,
|
|
3444
|
-
];
|
|
3445
|
-
}
|
|
3446
|
-
const ProgressBar = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.ProgressBar, applyProgressBarMods, (props) => ({
|
|
3447
|
-
hideLabel: props.hideLabel || props.striped,
|
|
3448
|
-
}));
|
|
3449
|
-
|
|
3450
|
-
var css$J = {"root":"jkoKPL"};
|
|
3451
|
-
|
|
3452
|
-
const IndicatorBar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
3453
|
-
const { progress } = props;
|
|
3454
|
-
return progress || progress === 0 ? (React__namespace.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx__default.default(css$J.root, props.cx), hideLabel: true })) : (React__namespace.createElement(IndeterminateBar, { ref: ref, cx: cx__default.default(css$J.root, props.cx) }));
|
|
3455
|
-
});
|
|
3456
|
-
|
|
3457
|
-
var css$I = {"root":"b7kSHL"};
|
|
3458
|
-
|
|
3459
|
-
const StatusIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
3460
|
-
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
3461
|
-
css$I.root,
|
|
3462
|
-
`uui-size-${props.size || settings.statusIndicator.sizes.default}`,
|
|
3463
|
-
'uui-status_indicator',
|
|
3464
|
-
`uui-color-${props.color || 'neutral'}`,
|
|
3465
|
-
`uui-fill-${props.fill || 'solid'}`,
|
|
3466
|
-
props.cx,
|
|
3467
|
-
]) },
|
|
3468
|
-
React__namespace.default.createElement("div", { className: "uui-status_indicator-dot" }),
|
|
3469
|
-
React__namespace.default.createElement("p", { className: "uui-status_indicator-caption" }, props.caption)));
|
|
3470
|
-
});
|
|
3471
|
-
|
|
3472
|
-
var css$H = {"drag-handle-wrapper":"_4R-E9h","dragHandleWrapper":"_4R-E9h","with-indent":"_1S86xu","withIndent":"_1S86xu","drag-handle":"dN-S5X","dragHandle":"dN-S5X","icon-container":"m4zb4P","iconContainer":"m4zb4P"};
|
|
3473
|
-
|
|
3474
|
-
function DataRowAddons(props) {
|
|
3475
|
-
const row = props.rowProps;
|
|
3476
|
-
const getIndent = () => {
|
|
3477
|
-
return (row.indent - 1) * settings.dataTable.sizes.body.indentUnitMap[props.size || settings.dataTable.sizes.body.row];
|
|
3478
|
-
};
|
|
3479
|
-
const getWidth = () => {
|
|
3480
|
-
return settings.dataTable.sizes.body.indentWidthMap[props.size || settings.dataTable.sizes.body.row];
|
|
3481
|
-
};
|
|
3482
|
-
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
3483
|
-
row.dnd?.srcData && props.renderDragHandle ? props.renderDragHandle({ rowProps: props.rowProps, eventHandlers: props.eventHandlers }) : (React__namespace.default.createElement("div", { key: "dh", className: cx__default.default(css$H.dragHandleWrapper, row.indent > 0 && css$H.withIndent), style: { width: row.indent > 0 ? (getIndent() + getWidth()) : 0 }, ...props.eventHandlers },
|
|
3484
|
-
React__namespace.default.createElement(uuiComponents.DragHandle, { cx: css$H.dragHandle }))),
|
|
3485
|
-
row?.checkbox?.isVisible && (React__namespace.default.createElement(Checkbox, { key: "cb", cx: "uui-dr_addons-checkbox", tabIndex: props.tabIndex, size: settings.dataTable.sizes.body.checkboxMap[props.size], value: row.isChecked, indeterminate: !row.isChecked && row.isChildrenChecked, onValueChange: () => row.onCheck?.(row), isDisabled: row.checkbox.isDisabled, isInvalid: row.checkbox.isInvalid })),
|
|
3486
|
-
row.indent > 0 && (React__namespace.default.createElement("div", { key: "fold", className: cx__default.default('uui-dr_addons-indent', `uui-size-${props.size || settings.dataTable.sizes.body.row}`), style: { marginInlineStart: getIndent(), width: getWidth() } }, row.isFoldable && (React__namespace.default.createElement(uuiComponents.IconContainer, { rawProps: {
|
|
3487
|
-
'aria-label': row.isFolded ? 'Unfold' : 'Fold',
|
|
3488
|
-
role: 'button',
|
|
3489
|
-
}, key: "icon", icon: settings.dataTable.icons.body.foldingIcon, cx: [
|
|
3490
|
-
uuiCore.uuiElement.foldingArrow, uuiCore.uuiMarkers.clickable, css$H.iconContainer,
|
|
3491
|
-
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row), size: settings.dataTable.sizes.body.iconMap[props.size || settings.dataTable.sizes.body.row] }))))));
|
|
3492
|
-
}
|
|
3595
|
+
var css$H = {"picker-row":"X8qUF3","pickerRow":"X8qUF3","align-widgets-top":"_-0oA5q","alignWidgetsTop":"_-0oA5q","row-content":"YEAMbJ","rowContent":"YEAMbJ","align-widgets-center":"wo0jIu","alignWidgetsCenter":"wo0jIu","icon-container":"YsNuRS","iconContainer":"YsNuRS","content-wrapper":"wC-c08","contentWrapper":"wC-c08","icon-wrapper":"JNvvU4","iconWrapper":"JNvvU4","icon-default":"BR2utH","iconDefault":"BR2utH","selected-mark":"AqhCFH","selectedMark":"AqhCFH"};
|
|
3493
3596
|
|
|
3494
3597
|
const mergeHighlightRanges = (ranges) => {
|
|
3495
3598
|
const mergedRanges = [];
|
|
@@ -3556,7 +3659,7 @@ const getHighlightedSearchMatches = (str, search) => {
|
|
|
3556
3659
|
return getDecoratedText(str, ranges);
|
|
3557
3660
|
};
|
|
3558
3661
|
|
|
3559
|
-
var css$G = {"root":"
|
|
3662
|
+
var css$G = {"root":"GS82I7","column-gap":"JXVA03","columnGap":"JXVA03","title":"et0-va","subtitle":"i1VrBt","disabled":"pFYF01","multiline":"_4RcmRb"};
|
|
3560
3663
|
|
|
3561
3664
|
function PickerItem(props) {
|
|
3562
3665
|
const { highlightSearchMatches = true, size, avatarUrl, isLoading, isDisabled, icon, } = props;
|
|
@@ -3564,14 +3667,13 @@ function PickerItem(props) {
|
|
|
3564
3667
|
const isMultiline = !!(props.title && props.subtitle);
|
|
3565
3668
|
const { search } = props.dataSourceState ?? {};
|
|
3566
3669
|
const title = highlightSearchMatches ? getHighlightedSearchMatches(props.title, search) : props.title;
|
|
3567
|
-
const subtitle = highlightSearchMatches ? getHighlightedSearchMatches(props.subtitle, search) : props.subtitle;
|
|
3568
3670
|
return (React__namespace.createElement(FlexCell, { width: "auto", cx: [css$G.root, 'uui-picker_input-item', 'uui-typography', props.cx] },
|
|
3569
3671
|
React__namespace.createElement(FlexRow, { size: itemSize, cx: [isMultiline && css$G.multiline, css$G.columnGap], rawProps: { style: { '--uui-picker_item-vertical-padding': `${settings.pickerInput.sizes.body.itemVerticalPaddingMap[itemSize]}px` } } },
|
|
3570
3672
|
avatarUrl && (React__namespace.createElement(uuiComponents.Avatar, { isLoading: isLoading, img: avatarUrl, size: getAvatarSize(itemSize, isMultiline) })),
|
|
3571
3673
|
icon && React__namespace.createElement(uuiComponents.IconContainer, { icon: icon }),
|
|
3572
3674
|
React__namespace.createElement(FlexCell, { width: "auto" },
|
|
3573
3675
|
title && (React__namespace.createElement("div", { className: cx__default.default(css$G.title, isDisabled && css$G.disabled, `uui-size-${itemSize}`) }, title)),
|
|
3574
|
-
subtitle && (React__namespace.createElement("div", { className: cx__default.default(css$G.subtitle, isDisabled && css$G.disabled, `uui-size-${itemSize}`) }, subtitle))))));
|
|
3676
|
+
props.subtitle && (React__namespace.createElement("div", { className: cx__default.default(css$G.subtitle, isDisabled && css$G.disabled, `uui-size-${itemSize}`) }, props.subtitle))))));
|
|
3575
3677
|
}
|
|
3576
3678
|
function getAvatarSize(size, isMultiline) {
|
|
3577
3679
|
return settings.pickerInput.sizes.body[isMultiline ? 'itemAvatarMultilineMap' : 'itemAvatarMap'][size];
|
|
@@ -3619,19 +3721,19 @@ function DataPickerRow(props) {
|
|
|
3619
3721
|
content = (React__namespace.createElement(React__namespace.Fragment, null,
|
|
3620
3722
|
renderRowItem(props.value, props),
|
|
3621
3723
|
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
3622
|
-
(props.isChildrenSelected || props.isSelected) && (React__namespace.createElement("div", { className: uuiCore.cx(css$
|
|
3623
|
-
React__namespace.createElement(uuiComponents.IconContainer, { size: settings.pickerInput.sizes.body.selectIconMap[props.size], icon: SelectIcon, cx: props.isChildrenSelected ? css$
|
|
3724
|
+
(props.isChildrenSelected || props.isSelected) && (React__namespace.createElement("div", { className: uuiCore.cx(css$H.iconWrapper, 'uui-picker_input-row-select_icon', uuiCore.uuiMod.selected) },
|
|
3725
|
+
React__namespace.createElement(uuiComponents.IconContainer, { size: settings.pickerInput.sizes.body.selectIconMap[props.size], icon: SelectIcon, cx: props.isChildrenSelected ? css$H.iconDefault : css$H.selectedMark, rawProps: { 'aria-label': props.isChildrenSelected
|
|
3624
3726
|
? 'Child is selected'
|
|
3625
3727
|
: 'Selected' } })))));
|
|
3626
3728
|
}
|
|
3627
|
-
return (React__namespace.createElement(FlexCell, { grow: 1, width: 0, minWidth: 0, cx: css$
|
|
3729
|
+
return (React__namespace.createElement(FlexCell, { grow: 1, width: 0, minWidth: 0, cx: css$H.rowContent },
|
|
3628
3730
|
React__namespace.createElement(DataRowAddons, { size: props.size, rowProps: props, tabIndex: -1 }),
|
|
3629
|
-
React__namespace.createElement("div", { className: css$
|
|
3731
|
+
React__namespace.createElement("div", { className: css$H.contentWrapper }, content)));
|
|
3630
3732
|
};
|
|
3631
3733
|
const clickHandler = props.onClick || props.onSelect || props.onFold || props.onCheck;
|
|
3632
3734
|
return (
|
|
3633
3735
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
3634
|
-
React__namespace.createElement("div", { onClick: clickHandler && ((e) => !uuiCore.isEventTargetInsideClickable(e) && clickHandler(props)), role: "option", "aria-busy": props.isLoading, "aria-posinset": props.index + 1, "aria-checked": props.checkbox?.isVisible ? props.isChecked : null, "aria-selected": props.isSelectable ? props.isSelected : null, ref: rowNode, className: uuiCore.cx(css$
|
|
3736
|
+
React__namespace.createElement("div", { onClick: clickHandler && ((e) => !uuiCore.isEventTargetInsideClickable(e) && clickHandler(props)), role: "option", "aria-busy": props.isLoading, "aria-posinset": props.index + 1, "aria-checked": props.checkbox?.isVisible ? props.isChecked : null, "aria-selected": props.isSelectable ? props.isSelected : null, ref: rowNode, className: uuiCore.cx(css$H.pickerRow, 'uui-picker_input-row', `uui-size-${props.size || settings.pickerInput.sizes.body.row}`, css$H[`align-widgets-${props.alignActions || 'top'}`], clickHandler && props.isFocused && uuiCore.uuiMod.focus, clickHandler && uuiCore.uuiMarkers.clickable, props.cx), style: props.padding && {
|
|
3635
3737
|
'--uui-data_picker-horizontal-padding': `${props.padding}px`,
|
|
3636
3738
|
}, ...props.rawProps }, renderContent()));
|
|
3637
3739
|
}
|
|
@@ -3659,7 +3761,7 @@ function DataPickerBody({ highlightSearchMatches = true, ...props }) {
|
|
|
3659
3761
|
});
|
|
3660
3762
|
}
|
|
3661
3763
|
if (props.minCharsToSearch && search.length < props.minCharsToSearch) {
|
|
3662
|
-
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$
|
|
3764
|
+
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$I.noData, grow: 1, textAlign: "center" },
|
|
3663
3765
|
React__namespace.default.createElement(Text, { size: props.searchSize }, i18n.dataPickerBody.typeSearchToLoadMessage)));
|
|
3664
3766
|
}
|
|
3665
3767
|
if (props.rows.length === 0) {
|
|
@@ -3672,7 +3774,7 @@ function DataPickerBody({ highlightSearchMatches = true, ...props }) {
|
|
|
3672
3774
|
search: search,
|
|
3673
3775
|
});
|
|
3674
3776
|
}
|
|
3675
|
-
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$
|
|
3777
|
+
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$I.noData, grow: 1, textAlign: "center" },
|
|
3676
3778
|
React__namespace.default.createElement(Text, { size: props.searchSize }, i18n.dataPickerBody.noRecordsMessage)));
|
|
3677
3779
|
}
|
|
3678
3780
|
};
|
|
@@ -3691,7 +3793,7 @@ function DataPickerBody({ highlightSearchMatches = true, ...props }) {
|
|
|
3691
3793
|
: settings.pickerInput.sizes.body.getSearchSize({ pickerSize: props.searchSize });
|
|
3692
3794
|
const renderedDataRows = React.useMemo(() => props.rows.map((row) => renderRow(row, props.value)), [props.rows, props.value]);
|
|
3693
3795
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
3694
|
-
showSearch && (React__namespace.default.createElement("div", { key: "search", className: uuiCore.cx(css$
|
|
3796
|
+
showSearch && (React__namespace.default.createElement("div", { key: "search", className: uuiCore.cx(css$I.searchWrapper, 'uui-picker_input-body-search') },
|
|
3695
3797
|
React__namespace.default.createElement(uuiComponents.FlexCell, { grow: 1 },
|
|
3696
3798
|
React__namespace.default.createElement(FocusLock.MoveFocusInside, null,
|
|
3697
3799
|
React__namespace.default.createElement(SearchInput, { placeholder: i18n.dataPickerBody.searchPlaceholder, value: props.value.search, onValueChange: (newVal) => props.onValueChange({ ...props.value, search: newVal }), onKeyDown: searchKeyDown, size: searchSize, debounceDelay: props.searchDebounceDelay, rawProps: { dir: 'auto' } }))))),
|
|
@@ -3730,7 +3832,7 @@ function DataPickerFooterImpl(props) {
|
|
|
3730
3832
|
}
|
|
3731
3833
|
const DataPickerFooter = /* @__PURE__ */React__namespace.default.memo(DataPickerFooterImpl);
|
|
3732
3834
|
|
|
3733
|
-
var css$F = {"header":"
|
|
3835
|
+
var css$F = {"header":"NQqV9H","title":"EZGqV3","close":"_4yrAj8"};
|
|
3734
3836
|
|
|
3735
3837
|
const DataPickerMobileHeaderImpl = (props) => {
|
|
3736
3838
|
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
@@ -3740,7 +3842,7 @@ const DataPickerMobileHeaderImpl = (props) => {
|
|
|
3740
3842
|
};
|
|
3741
3843
|
const DataPickerMobileHeader = /* @__PURE__ */React__namespace.default.memo(DataPickerMobileHeaderImpl);
|
|
3742
3844
|
|
|
3743
|
-
var css$E = {"done":"
|
|
3845
|
+
var css$E = {"done":"-noL9F","container":"mvjfRX"};
|
|
3744
3846
|
|
|
3745
3847
|
const PickerBodyMobileView = (props) => {
|
|
3746
3848
|
const isMobileView = uuiCore.isMobile();
|
|
@@ -3752,7 +3854,7 @@ const PickerBodyMobileView = (props) => {
|
|
|
3752
3854
|
isMobileView && (React__namespace.default.createElement(LinkButton, { caption: i18n.pickerInput.doneButton, onClick: () => props.onClose?.(), cx: css$E.done, size: settings.pickerInput.sizes.body.mobileFooterLinkButton }))));
|
|
3753
3855
|
};
|
|
3754
3856
|
|
|
3755
|
-
var css$D = {"sub-header-wrapper":"
|
|
3857
|
+
var css$D = {"sub-header-wrapper":"pw-VR6","subHeaderWrapper":"pw-VR6","switch":"_4eMeQa","no-found-modal-container":"f7lJFw","noFoundModalContainer":"f7lJFw","no-found-modal-container-icon":"x-f5cT","noFoundModalContainerIcon":"x-f5cT","no-found-modal-container-text":"xLalBW","noFoundModalContainerText":"xLalBW","body":"RyPydl"};
|
|
3756
3858
|
|
|
3757
3859
|
function PickerModal(props) {
|
|
3758
3860
|
const { view, selection, dataSourceStateLens, dataSourceState, getName, clearSelection, getRows, getListProps, getFooterProps, isSingleSelect, handleDataSourceValueChange, } = uuiComponents.usePickerModal(props);
|
|
@@ -3798,7 +3900,7 @@ function PickerModal(props) {
|
|
|
3798
3900
|
React__namespace.default.createElement(ModalFooter, null, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
|
|
3799
3901
|
}
|
|
3800
3902
|
|
|
3801
|
-
var css$C = {"tooltip":"
|
|
3903
|
+
var css$C = {"tooltip":"KKR5Hz"};
|
|
3802
3904
|
|
|
3803
3905
|
const PickerTogglerTag = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
3804
3906
|
const tagProps = {
|
|
@@ -3817,7 +3919,7 @@ const PickerTogglerTag = /* @__PURE__ */React__namespace.forwardRef((props, ref)
|
|
|
3817
3919
|
}
|
|
3818
3920
|
});
|
|
3819
3921
|
|
|
3820
|
-
var css$B = {"root":"
|
|
3922
|
+
var css$B = {"root":"_6BDOSN"};
|
|
3821
3923
|
|
|
3822
3924
|
const defaultMode = EditMode.FORM;
|
|
3823
3925
|
function applyPickerTogglerMods(mods) {
|
|
@@ -3899,7 +4001,7 @@ function PickerInputComponent(props, ref) {
|
|
|
3899
4001
|
}
|
|
3900
4002
|
const PickerInput = /* @__PURE__ */React__namespace.default.forwardRef(PickerInputComponent);
|
|
3901
4003
|
|
|
3902
|
-
var css$A = {"row":"
|
|
4004
|
+
var css$A = {"row":"XqEcUZ"};
|
|
3903
4005
|
|
|
3904
4006
|
function PickerListRow(props) {
|
|
3905
4007
|
let label;
|
|
@@ -3919,7 +4021,7 @@ function PickerListRow(props) {
|
|
|
3919
4021
|
return (React__namespace.default.createElement("div", { role: "option", "aria-selected": props.isSelectable ? props.isSelected : undefined, "aria-busy": props.isLoading, "aria-posinset": props.index + 1, ...(props.checkbox?.isVisible && { 'aria-checked': props.isChecked }), className: css$A.row }, component));
|
|
3920
4022
|
}
|
|
3921
4023
|
|
|
3922
|
-
var css$z = {"root":"
|
|
4024
|
+
var css$z = {"root":"Mo5mcj"};
|
|
3923
4025
|
|
|
3924
4026
|
function PickerList(props) {
|
|
3925
4027
|
const { context, view, onlySelectedView, getName, getEntityName, appendLastSelected, getSelectedIdsArray, buildRowsList, getMaxDefaultItems, getModalTogglerCaption, } = uuiComponents.usePickerList(props);
|
|
@@ -3954,7 +4056,7 @@ function PickerList(props) {
|
|
|
3954
4056
|
}, selectedRows)));
|
|
3955
4057
|
}
|
|
3956
4058
|
|
|
3957
|
-
var css$y = {"root":"
|
|
4059
|
+
var css$y = {"root":"_-1fghw","wrapper":"_6OVFLW","align-widgets-top":"OZsjsh","alignWidgetsTop":"OZsjsh","align-widgets-center":"XJ-X6-","alignWidgetsCenter":"XJ-X6-"};
|
|
3958
4060
|
|
|
3959
4061
|
function DataTableCell(initialProps) {
|
|
3960
4062
|
const props = { ...initialProps };
|
|
@@ -4004,7 +4106,7 @@ function DataTableCell(initialProps) {
|
|
|
4004
4106
|
return React__namespace.createElement(uuiComponents.DataTableCell, { ...props });
|
|
4005
4107
|
}
|
|
4006
4108
|
|
|
4007
|
-
var css$x = {"root":"
|
|
4109
|
+
var css$x = {"root":"wsv7pR"};
|
|
4008
4110
|
|
|
4009
4111
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
4010
4112
|
// 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.
|
|
@@ -4020,7 +4122,7 @@ const DataTableRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.DataTableRow,
|
|
|
4020
4122
|
];
|
|
4021
4123
|
}, () => propsMods);
|
|
4022
4124
|
|
|
4023
|
-
var css$w = {"sorting-panel-container":"
|
|
4125
|
+
var css$w = {"sorting-panel-container":"yWeO0t","sortingPanelContainer":"yWeO0t"};
|
|
4024
4126
|
|
|
4025
4127
|
const SortingPanelImpl = ({ sortDirection, onSort }) => {
|
|
4026
4128
|
const sortAsc = React.useCallback(() => onSort(sortDirection === 'asc' ? undefined : 'asc'), [onSort]);
|
|
@@ -4040,7 +4142,7 @@ const ColumnHeaderDropdownImpl = (props) => {
|
|
|
4040
4142
|
};
|
|
4041
4143
|
const ColumnHeaderDropdown = /* @__PURE__ */React__namespace.default.memo(ColumnHeaderDropdownImpl);
|
|
4042
4144
|
|
|
4043
|
-
var css$v = {"root":"
|
|
4145
|
+
var css$v = {"root":"b4757w","caption-wrapper":"naqhO4","captionWrapper":"naqhO4","sort-icon":"W1ER8j","sortIcon":"W1ER8j","dropdown-icon":"SmyQ4p","dropdownIcon":"SmyQ4p","infoIcon":"PCHDjW","align-right":"gzLwwv","alignRight":"gzLwwv","align-center":"qaWypb","alignCenter":"qaWypb","caption":"XkiMr0","truncate":"xLvRDD","upper-case":"UBHmx4","upperCase":"UBHmx4","checkbox":"OTBbz2","icon":"w-U0fW","fold-all-icon":"e8tRmY","foldAllIcon":"e8tRmY","cell-tooltip":"PMtDXK","cellTooltip":"PMtDXK","resizing-marker":"_-53OVU","resizingMarker":"_-53OVU","pinned-right":"wyOrGa","pinnedRight":"wyOrGa","draggable":"i5xueY","ghost":"BqoNqL","is-dragged-out":"L8uO1Z","isDraggedOut":"L8uO1Z","dnd-marker-left":"EfFJJ5","dndMarkerLeft":"EfFJJ5","dnd-marker-right":"dNe4Gg","dndMarkerRight":"dNe4Gg","cell-tooltip-wrapper":"xu68Er","cellTooltipWrapper":"xu68Er","cell-tooltip-text":"_8-BkJU","cellTooltipText":"_8-BkJU","tooltip-caption":"b-72Aj","tooltipCaption":"b-72Aj","tooltip-info":"ifHrZu","tooltipInfo":"ifHrZu"};
|
|
4044
4146
|
|
|
4045
4147
|
class DataTableHeaderCell extends React__namespace.Component {
|
|
4046
4148
|
constructor() {
|
|
@@ -4134,7 +4236,7 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
4134
4236
|
}
|
|
4135
4237
|
}
|
|
4136
4238
|
|
|
4137
|
-
var css$u = {"root":"
|
|
4239
|
+
var css$u = {"root":"nTQW5Z","caption-wrapper":"CfTFgF","captionWrapper":"CfTFgF","align-center":"B-QRPf","alignCenter":"B-QRPf","caption":"hLnjIF","truncate":"_0Rq4Bu","upper-case":"HjRRlY","upperCase":"HjRRlY","group-cell-tooltip":"LpIW7M","groupCellTooltip":"LpIW7M","group-cell-tooltip-wrapper":"tXPS1H","groupCellTooltipWrapper":"tXPS1H","group-cell-tooltip-text":"f4U-22","groupCellTooltipText":"f4U-22","tooltip-caption":"A4h6nf","tooltipCaption":"A4h6nf","tooltip-info":"-e0QVE","tooltipInfo":"-e0QVE"};
|
|
4138
4240
|
|
|
4139
4241
|
class DataTableHeaderGroupCell extends React__namespace.Component {
|
|
4140
4242
|
constructor() {
|
|
@@ -4174,7 +4276,7 @@ class DataTableHeaderGroupCell extends React__namespace.Component {
|
|
|
4174
4276
|
}
|
|
4175
4277
|
}
|
|
4176
4278
|
|
|
4177
|
-
var css$t = {"root":"
|
|
4279
|
+
var css$t = {"root":"ZoDNIU"};
|
|
4178
4280
|
|
|
4179
4281
|
const DataTableHeaderRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.DataTableHeaderRow, () => [css$t.root, 'uui-dt-vars'], (mods) => ({
|
|
4180
4282
|
renderCell: (props) => (React__namespace.createElement(DataTableHeaderCell, { ...props, size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key, columnsGap: mods.columnsGap })),
|
|
@@ -4270,7 +4372,7 @@ const UUI_FILTERS_PANEL_ITEM_TOGGLER_SELECTION = 'uui-filters-panel-item-toggler
|
|
|
4270
4372
|
const UUI_FILTERS_PANEL_ITEM_TOGGLER_POSTFIX = 'uui-filters-panel-item-toggler-postfix';
|
|
4271
4373
|
const UUI_FILTERS_PANEL_BODY_FOOTER = 'uui-filters-panel-item-footer';
|
|
4272
4374
|
|
|
4273
|
-
var css$s = {"body":"
|
|
4375
|
+
var css$s = {"body":"_4Ixn2c","header":"s2bmwZ","title":"dZJlcD","removeButton":"LtHPkg","with-search":"CPCFHX","withSearch":"CPCFHX"};
|
|
4274
4376
|
|
|
4275
4377
|
function FilterColumnBody(props) {
|
|
4276
4378
|
const [predicate, setPredicate] = React.useState(getDefaultPredicate(props.predicates, props.value));
|
|
@@ -4331,7 +4433,7 @@ const useColumnsWithFilters = (initialColumns, filters) => {
|
|
|
4331
4433
|
return columns;
|
|
4332
4434
|
};
|
|
4333
4435
|
|
|
4334
|
-
var css$r = {"unpin-icon":"
|
|
4436
|
+
var css$r = {"unpin-icon":"Vwl9-L","unpinIcon":"Vwl9-L","pin-toggler-icon":"dxdZPu","pinTogglerIcon":"dxdZPu"};
|
|
4335
4437
|
|
|
4336
4438
|
function PinIconButton(props) {
|
|
4337
4439
|
const i18nLocal = i18n.tables.columnsConfigurationModal;
|
|
@@ -4373,7 +4475,7 @@ function getUnpinIcon(params) {
|
|
|
4373
4475
|
}
|
|
4374
4476
|
}
|
|
4375
4477
|
|
|
4376
|
-
var css$q = {"row-wrapper":"
|
|
4478
|
+
var css$q = {"row-wrapper":"hW9VxK","rowWrapper":"hW9VxK","pin-icon-button":"pTpMzl","pinIconButton":"pTpMzl","not-pinned":"xkwn3G","notPinned":"xkwn3G","checkbox":"bYsMGJ","drag-handle":"Z3jkmJ","dragHandle":"Z3jkmJ","dnd-disabled":"kNlTt-","dndDisabled":"kNlTt-"};
|
|
4377
4479
|
|
|
4378
4480
|
const ColumnRow = /* @__PURE__ */React__namespace.memo(function ColumnRow(props) {
|
|
4379
4481
|
const { column } = props;
|
|
@@ -4396,7 +4498,7 @@ const ColumnRow = /* @__PURE__ */React__namespace.memo(function ColumnRow(props)
|
|
|
4396
4498
|
return (React__namespace.createElement(uuiCore.DndActor, { key: column.key, srcData: isDndAllowed && data, dstData: data, canAcceptDrop: onCanAcceptDrop, onDrop: onDrop, render: renderContent }));
|
|
4397
4499
|
});
|
|
4398
4500
|
|
|
4399
|
-
var css$p = {"root":"
|
|
4501
|
+
var css$p = {"root":"h2kKw1","main-panel":"wbLxSw","mainPanel":"wbLxSw","group":"_01mC0F","group-title":"qrU7pu","groupTitle":"qrU7pu","group-items":"_4Se-rL","groupItems":"_4Se-rL","no-data":"e2OMxc","noData":"e2OMxc","no-data-title":"jlgzxT","noDataTitle":"jlgzxT","no-data-sub-title":"XpH-38","noDataSubTitle":"XpH-38","h-divider":"j7aofd","hDivider":"j7aofd","search-area":"-JP4zK","searchArea":"-JP4zK","subgroup-accordion":"_768iQh","subgroupAccordion":"_768iQh","subgroup":"fZn8BC","subgroup-title":"Hcy17j","subgroupTitle":"Hcy17j"};
|
|
4400
4502
|
|
|
4401
4503
|
const renderGroupTitle = (title, amount) => (React__namespace.createElement(FlexRow, { cx: css$p.group },
|
|
4402
4504
|
React__namespace.createElement(Text, { size: "none", cx: css$p.groupTitle }, title),
|
|
@@ -4498,7 +4600,7 @@ const getChildrenAndRest = (row, rows) => {
|
|
|
4498
4600
|
return [children, rest];
|
|
4499
4601
|
};
|
|
4500
4602
|
|
|
4501
|
-
var css$o = {"listContainer":"
|
|
4603
|
+
var css$o = {"listContainer":"q4XfOM","header":"yEAyo7","group":"n3NxKs","stickyHeader":"dZHT7W"};
|
|
4502
4604
|
|
|
4503
4605
|
function DataRowsGroup({ row, childRows, renderRow, top = 1, }) {
|
|
4504
4606
|
const rowRef = React.useRef(undefined);
|
|
@@ -4538,7 +4640,7 @@ function DataRowsContainer({ estimatedHeight, listContainerRef, offsetY, rows, r
|
|
|
4538
4640
|
React__namespace.default.createElement(DataRowsGroups, { rows: rows, renderRow: renderRow, top: headerRef?.current?.clientHeight }))));
|
|
4539
4641
|
}
|
|
4540
4642
|
|
|
4541
|
-
var css$n = {"root":"
|
|
4643
|
+
var css$n = {"root":"GkdlCQ","sticky-header":"bQeT--","stickyHeader":"bQeT--","no-results":"IGoPZy","noResults":"IGoPZy","icon":"uhFwKr","title":"u-9W3w"};
|
|
4542
4644
|
|
|
4543
4645
|
function DataTable(props) {
|
|
4544
4646
|
const { uuiModals } = uuiCore.useUuiContext();
|
|
@@ -4590,7 +4692,7 @@ function DataTable(props) {
|
|
|
4590
4692
|
: (React__namespace.createElement(VirtualList, { value: props.value, onValueChange: props.onValueChange, onScroll: props.onScroll, rowsCount: props.rowsCount, renderRows: renderTableBody, cx: classes, isLoading: props.isReloading, rowsSelector: "[role=row]", rawProps: rawProps })))));
|
|
4591
4693
|
}
|
|
4592
4694
|
|
|
4593
|
-
var css$m = {"root":"
|
|
4695
|
+
var css$m = {"root":"GyNc5R","title-wrapper":"a2AIB7","titleWrapper":"a2AIB7","title":"pIKrqL","text-wrapper":"lyouu6","textWrapper":"lyouu6","selection":"nxjlPq","postfix":"wnx4gr","selected":"PQAmMq"};
|
|
4594
4696
|
|
|
4595
4697
|
const FilterPanelItemToggler = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
4596
4698
|
const togglerPickerOpened = (e) => {
|
|
@@ -4814,7 +4916,7 @@ function FilterRangeDatePickerBody(props) {
|
|
|
4814
4916
|
renderFooter()));
|
|
4815
4917
|
}
|
|
4816
4918
|
|
|
4817
|
-
var css$l = {"container":"
|
|
4919
|
+
var css$l = {"container":"_1Pzf3M"};
|
|
4818
4920
|
|
|
4819
4921
|
function FilterNumericBody(props) {
|
|
4820
4922
|
const isInRangePredicate = props?.selectedPredicate === 'inRange' || props?.selectedPredicate === 'notInRange';
|
|
@@ -5125,14 +5227,24 @@ function FiltersToolbarImpl(props) {
|
|
|
5125
5227
|
}
|
|
5126
5228
|
const FiltersPanel = /* @__PURE__ */React__namespace.default.memo(FiltersToolbarImpl);
|
|
5127
5229
|
|
|
5128
|
-
var css$k = {"delete-button":"
|
|
5230
|
+
var css$k = {"delete-button":"BgcNFt","deleteButton":"BgcNFt","tab-button":"Urs7Hb","tabButton":"Urs7Hb","targetOpen":"_99xTOz"};
|
|
5129
5231
|
|
|
5130
5232
|
function PresetActionsDropdown(props) {
|
|
5131
5233
|
const { uuiNotifications } = uuiCore.useUuiContext();
|
|
5234
|
+
const successNotificationHandler = React.useCallback((text) => {
|
|
5235
|
+
uuiNotifications
|
|
5236
|
+
.show((props) => (React__namespace.default.createElement(SuccessNotification, { ...props },
|
|
5237
|
+
React__namespace.default.createElement("div", { className: "uui-presets-panel-notification-text" }, text))), { duration: 3 })
|
|
5238
|
+
.catch(() => null);
|
|
5239
|
+
}, []);
|
|
5132
5240
|
const copyUrlToClipboard = React.useCallback(async () => {
|
|
5133
|
-
|
|
5241
|
+
const isPresetChanged = props.activePresetId === props.preset.id && props.hasPresetChanged(props.preset);
|
|
5242
|
+
const preset = isPresetChanged ? { ...props.preset, ...props.tableState } : props.preset;
|
|
5243
|
+
const link = props.getPresetLink(preset);
|
|
5244
|
+
await navigator.clipboard.writeText(link);
|
|
5134
5245
|
successNotificationHandler('Link copied!');
|
|
5135
|
-
}, []);
|
|
5246
|
+
}, [props.activePresetId, props.preset, props.hasPresetChanged, props.getPresetLink, props.tableState]);
|
|
5247
|
+
const onCopyLink = props.onCopyLink ? props.onCopyLink : copyUrlToClipboard;
|
|
5136
5248
|
const saveInCurrent = React.useCallback(async (preset) => {
|
|
5137
5249
|
const newPreset = {
|
|
5138
5250
|
...preset,
|
|
@@ -5147,12 +5259,6 @@ function PresetActionsDropdown(props) {
|
|
|
5147
5259
|
}, [
|
|
5148
5260
|
props.tableState.filter, props.tableState.columnsConfig, props.tableState.filtersConfig,
|
|
5149
5261
|
]);
|
|
5150
|
-
const successNotificationHandler = React.useCallback((text) => {
|
|
5151
|
-
uuiNotifications
|
|
5152
|
-
.show((props) => (React__namespace.default.createElement(SuccessNotification, { ...props },
|
|
5153
|
-
React__namespace.default.createElement("div", { className: "uui-presets-panel-notification-text" }, text))), { duration: 3 })
|
|
5154
|
-
.catch(() => null);
|
|
5155
|
-
}, []);
|
|
5156
5262
|
const saveInCurrentHandler = React.useCallback(() => {
|
|
5157
5263
|
saveInCurrent(props.preset);
|
|
5158
5264
|
}, [props.preset]);
|
|
@@ -5180,8 +5286,8 @@ function PresetActionsDropdown(props) {
|
|
|
5180
5286
|
React__namespace.default.createElement(DropdownMenuButton, { key: `${props.preset.id}-discard`, icon: settings.presetsPanel.icons.discardChangesIcon, caption: "Discard all changes", onClick: () => { dropdownProps.onClose(); discardAllChangesHandler(); } }),
|
|
5181
5287
|
React__namespace.default.createElement(DropdownMenuSplitter, { key: "discard-splitter" }))),
|
|
5182
5288
|
isRenameAvailable && (React__namespace.default.createElement(DropdownMenuButton, { key: `${props.preset.id}-rename`, icon: settings.presetsPanel.icons.renameIcon, caption: "Rename", onClick: props.renamePreset })),
|
|
5183
|
-
React__namespace.default.createElement(DropdownMenuButton, { key: `${props.preset.id}-duplicate`, icon: settings.presetsPanel.icons.copyIcon, caption: "Duplicate", onClick: () => { dropdownProps.onClose(); duplicateHandler(); } }),
|
|
5184
|
-
React__namespace.default.createElement(DropdownMenuButton, { key: `${props.preset.id}-copyLink`, icon: settings.presetsPanel.icons.copyLinkIcon, caption: "Copy Link", onClick:
|
|
5289
|
+
!isPresetChanged && (React__namespace.default.createElement(DropdownMenuButton, { key: `${props.preset.id}-duplicate`, icon: settings.presetsPanel.icons.copyIcon, caption: "Duplicate", onClick: () => { dropdownProps.onClose(); duplicateHandler(); } })),
|
|
5290
|
+
props.onCopyLink !== null && (React__namespace.default.createElement(DropdownMenuButton, { key: `${props.preset.id}-copyLink`, icon: settings.presetsPanel.icons.copyLinkIcon, caption: "Copy Link", onClick: onCopyLink })),
|
|
5185
5291
|
!isReadonlyPreset && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
5186
5292
|
React__namespace.default.createElement(DropdownMenuSplitter, { key: "delete-splitter" }),
|
|
5187
5293
|
React__namespace.default.createElement(DropdownMenuButton, { icon: settings.presetsPanel.icons.deleteIcon, caption: "Delete", cx: css$k.deleteButton, onClick: deleteHandler })))));
|
|
@@ -5197,7 +5303,7 @@ const UUI_PRESETS_PANEL_MORE_BUTTON = 'uui-presets-panel-more-button';
|
|
|
5197
5303
|
const UUI_PRESETS_PANEL_INPUT = 'uui-presets-panel-input';
|
|
5198
5304
|
const UUI_PRESETS_PANEL_PRESET = 'uui-presets-panel-preset';
|
|
5199
5305
|
|
|
5200
|
-
var css$j = {"preset-input-cell":"
|
|
5306
|
+
var css$j = {"preset-input-cell":"cwvFx2","presetInputCell":"cwvFx2","preset-input":"jkvIku","presetInput":"jkvIku"};
|
|
5201
5307
|
|
|
5202
5308
|
function PresetInput(props) {
|
|
5203
5309
|
const [presetCaption, setPresetCaption] = React.useState(props.preset?.name || '');
|
|
@@ -5224,7 +5330,7 @@ function PresetInput(props) {
|
|
|
5224
5330
|
React__namespace.default.createElement(TextInput, { cx: css$j.presetInput, onValueChange: setPresetCaption, value: presetCaption, onCancel: cancelActionHandler, onAccept: acceptActionHandler, onBlur: newPresetOnBlurHandler, autoFocus: true, maxLength: 50, isReadonly: readonly })));
|
|
5225
5331
|
}
|
|
5226
5332
|
|
|
5227
|
-
var css$i = {"preset":"
|
|
5333
|
+
var css$i = {"preset":"Dye5l0","activePreset":"f-5V5b"};
|
|
5228
5334
|
|
|
5229
5335
|
function Preset(props) {
|
|
5230
5336
|
const [isRenamePreset, setIsRenamePreset] = React.useState(false);
|
|
@@ -5246,10 +5352,10 @@ function Preset(props) {
|
|
|
5246
5352
|
}, [props.preset]);
|
|
5247
5353
|
const isPresetActive = props.activePresetId === props.preset.id;
|
|
5248
5354
|
const PresetActionsDropdownComponent = React.useCallback(() => React__namespace.default.createElement(PresetActionsDropdown, { renamePreset: setPresetForRename, ...props }), [props.preset, props.tableState, props.activePresetId]);
|
|
5249
|
-
return (React__namespace.default.createElement(FlexCell, { key: props.preset.id, alignSelf: "center", width: "auto" }, isRenamePreset ? (React__namespace.default.createElement(PresetInput, { onCancel: cancelRenamePreset, onSuccess: handlePresetRename, preset: props.preset })) : (React__namespace.default.createElement(TabButton, { caption: props.preset.name, onClick: !isPresetActive && choosePresetHandler, cx: [css$i.preset, isPresetActive && css$i.activePreset, UUI_PRESETS_PANEL_PRESET], size: settings.presetsPanel.sizes.tabButton, withNotify: isPresetActive && props.hasPresetChanged(props.preset), icon: PresetActionsDropdownComponent, iconPosition: "right",
|
|
5355
|
+
return (React__namespace.default.createElement(FlexCell, { key: props.preset.id, alignSelf: "center", width: "auto" }, isRenamePreset ? (React__namespace.default.createElement(PresetInput, { onCancel: cancelRenamePreset, onSuccess: handlePresetRename, preset: props.preset })) : (React__namespace.default.createElement(TabButton, { caption: props.preset.name, onClick: !isPresetActive && choosePresetHandler, cx: [css$i.preset, isPresetActive && css$i.activePreset, UUI_PRESETS_PANEL_PRESET], size: settings.presetsPanel.sizes.tabButton, withNotify: isPresetActive && props.hasPresetChanged(props.preset), icon: PresetActionsDropdownComponent, iconPosition: "right", isActive: isPresetActive }))));
|
|
5250
5356
|
}
|
|
5251
5357
|
|
|
5252
|
-
var css$h = {"divider":"
|
|
5358
|
+
var css$h = {"divider":"KHh8Zw","dropdownDeleteIcon":"UN1qU6","presetsWrapper":"_8MsJOo","addPresetContainer":"uK2DuH","dropContainer":"JgZTNZ"};
|
|
5253
5359
|
|
|
5254
5360
|
function PresetsPanel(props) {
|
|
5255
5361
|
const [isAddingPreset, setIsAddingPreset] = React.useState(false);
|
|
@@ -5298,9 +5404,9 @@ function PresetsPanel(props) {
|
|
|
5298
5404
|
React__namespace.default.createElement(uuiComponents.AdaptivePanel, { items: getPanelItems() }))));
|
|
5299
5405
|
}
|
|
5300
5406
|
|
|
5301
|
-
var css$g = {"root":"
|
|
5407
|
+
var css$g = {"root":"CfPVgr"};
|
|
5302
5408
|
|
|
5303
|
-
var css$f = {"root":"
|
|
5409
|
+
var css$f = {"root":"nx7RBH","burger-content":"jyN-38","burgerContent":"jyN-38"};
|
|
5304
5410
|
|
|
5305
5411
|
var _path$3;
|
|
5306
5412
|
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); }
|
|
@@ -5343,24 +5449,38 @@ var SvgNavigationArrowDownOutline = function SvgNavigationArrowDownOutline(props
|
|
|
5343
5449
|
};
|
|
5344
5450
|
var ForwardRef$2 = /*#__PURE__*/React.forwardRef(SvgNavigationArrowDownOutline);
|
|
5345
5451
|
|
|
5346
|
-
var css$e = {"root":"
|
|
5452
|
+
var css$e = {"root":"aSfkhg","button-primary":"FGHk2Z","buttonPrimary":"FGHk2Z","button-secondary":"DCpiox","buttonSecondary":"DCpiox","hasIcon":"_02T-H0","dropdown":"tHICjI"};
|
|
5347
5453
|
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
5454
|
+
function applyBurgerButtonMods(props) {
|
|
5455
|
+
return [
|
|
5456
|
+
css$e.root,
|
|
5457
|
+
'uui-main_menu-burger-button',
|
|
5458
|
+
css$e['button-' + (props.type || 'primary')],
|
|
5459
|
+
css$e['indent-' + (props.indentLevel || 0)],
|
|
5460
|
+
props.isActive && uuiCore.uuiMod.active,
|
|
5461
|
+
props.isDropdown && css$e.dropdown,
|
|
5462
|
+
props.icon && css$e.hasIcon,
|
|
5463
|
+
];
|
|
5464
|
+
}
|
|
5465
|
+
const BurgerButton = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
5466
|
+
const { isActive } = uuiCore.useIsActive({
|
|
5467
|
+
isLinkActive: props.isLinkActive,
|
|
5468
|
+
link: props.link,
|
|
5469
|
+
isActive: props.isActive,
|
|
5470
|
+
});
|
|
5471
|
+
return (React__namespace.default.createElement(uuiComponents.Button, { ...props, ref: ref, cx: applyBurgerButtonMods({ ...props, isActive }), rawProps: {
|
|
5472
|
+
...props.rawProps,
|
|
5473
|
+
role: 'menuitem',
|
|
5474
|
+
}, dropdownIcon: ForwardRef$2 }));
|
|
5475
|
+
});
|
|
5356
5476
|
|
|
5357
|
-
var css$d = {"search-input":"-
|
|
5477
|
+
var css$d = {"search-input":"-AUA1G","searchInput":"-AUA1G"};
|
|
5358
5478
|
|
|
5359
5479
|
function BurgerSearch(props) {
|
|
5360
5480
|
return (React__namespace.createElement(uuiComponents.TextInput, { cx: cx__default.default(css$d.searchInput, 'uui-main_menu-burger-search'), iconPosition: "left", icon: ForwardRef$M, placeholder: props.placeholder, value: props.value, onValueChange: props.onValueChange, onCancel: props.onCancel, cancelIcon: props.value && ForwardRef$Q }));
|
|
5361
5481
|
}
|
|
5362
5482
|
|
|
5363
|
-
var css$c = {"root":"
|
|
5483
|
+
var css$c = {"root":"dxTVgr","group-header":"_2IAhvh","groupHeader":"_2IAhvh","group-name":"BisoKj","groupName":"BisoKj","line":"Vw-Qxb"};
|
|
5364
5484
|
|
|
5365
5485
|
function BurgerGroupHeader(props) {
|
|
5366
5486
|
return (React__namespace.createElement("div", { className: cx__default.default(css$c.root, css$c.groupHeader, 'uui-burger-group-header') },
|
|
@@ -5368,19 +5488,25 @@ function BurgerGroupHeader(props) {
|
|
|
5368
5488
|
React__namespace.createElement("span", { className: css$c.groupName }, props.caption)));
|
|
5369
5489
|
}
|
|
5370
5490
|
|
|
5371
|
-
var css$b = {"root":"
|
|
5491
|
+
var css$b = {"root":"_2Cznnq","type-primary":"-IkhrK","typePrimary":"-IkhrK","type-secondary":"_59s4v0","typeSecondary":"_59s4v0"};
|
|
5372
5492
|
|
|
5373
5493
|
const MainMenuButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5374
5494
|
const { type, ...clickableProps } = props;
|
|
5495
|
+
const { isActive } = uuiCore.useIsActive({
|
|
5496
|
+
isLinkActive: props.isLinkActive,
|
|
5497
|
+
link: props.link,
|
|
5498
|
+
isActive: props.isActive,
|
|
5499
|
+
});
|
|
5375
5500
|
return (React__namespace.createElement(uuiComponents.Clickable, { ...clickableProps, rawProps: {
|
|
5376
5501
|
'aria-expanded': props.isOpen,
|
|
5377
|
-
'aria-current':
|
|
5502
|
+
'aria-current': isActive
|
|
5378
5503
|
? 'page'
|
|
5379
5504
|
: undefined,
|
|
5380
5505
|
...props.rawProps,
|
|
5381
5506
|
}, cx: [
|
|
5382
5507
|
css$b.root,
|
|
5383
5508
|
css$b['type-' + (type || 'primary')],
|
|
5509
|
+
isActive && uuiCore.uuiMod.active,
|
|
5384
5510
|
props.cx,
|
|
5385
5511
|
], ref: ref },
|
|
5386
5512
|
props.icon && props.iconPosition !== 'right' && (React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: props.onIconClick })),
|
|
@@ -5390,34 +5516,18 @@ const MainMenuButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) =
|
|
|
5390
5516
|
props.isDropdown && (React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$P, flipY: props.isOpen }))));
|
|
5391
5517
|
});
|
|
5392
5518
|
|
|
5393
|
-
var css$a = {"dropdown-body":"
|
|
5519
|
+
var css$a = {"dropdown-body":"qC5nxf","dropdownBody":"qC5nxf"};
|
|
5394
5520
|
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
? this.props.renderBody({ ...props })
|
|
5406
|
-
: React__namespace.Children.map(this.props.children, (item) => {
|
|
5407
|
-
if (!item)
|
|
5408
|
-
return item;
|
|
5409
|
-
return React__namespace.createElement(item.type, {
|
|
5410
|
-
...item.props,
|
|
5411
|
-
onClick: item.props.onClick
|
|
5412
|
-
? () => {
|
|
5413
|
-
item.props.onClick();
|
|
5414
|
-
props.onClose();
|
|
5415
|
-
}
|
|
5416
|
-
: null,
|
|
5417
|
-
});
|
|
5418
|
-
}))));
|
|
5419
|
-
}, placement: "bottom-start" }));
|
|
5420
|
-
}
|
|
5521
|
+
function MainMenuDropdown(props) {
|
|
5522
|
+
const handleEscape = (e, onClose, isOpen) => {
|
|
5523
|
+
if (e.key === 'Escape' && isOpen) {
|
|
5524
|
+
onClose();
|
|
5525
|
+
}
|
|
5526
|
+
};
|
|
5527
|
+
return (React__namespace.default.createElement(uuiComponents.Dropdown, { renderTarget: (dropdownProps) => (React__namespace.default.createElement(MainMenuButton, { caption: props.caption, ...dropdownProps, rawProps: props.rawProps, isActive: props.isActive, isDropdown: true })), renderBody: (dropdownBodyProps) => (React__namespace.default.createElement(FocusLock__default.default, { returnFocus: true, persistentFocus: true, lockProps: {
|
|
5528
|
+
onKeyDown: (e) => handleEscape(e, dropdownBodyProps.onClose, dropdownBodyProps.isOpen),
|
|
5529
|
+
} },
|
|
5530
|
+
React__namespace.default.createElement("div", { className: cx__default.default(css$a.dropdownBody, 'uui-main_menu-dropdown', props.cx) }, props.renderBody({ ...dropdownBodyProps })))), placement: "bottom-start" }));
|
|
5421
5531
|
}
|
|
5422
5532
|
|
|
5423
5533
|
function applyMainMenuMods() {
|
|
@@ -5449,12 +5559,12 @@ var SvgNavigationGlobalMenuOutlineOutline = function SvgNavigationGlobalMenuOutl
|
|
|
5449
5559
|
};
|
|
5450
5560
|
var ForwardRef$1 = /*#__PURE__*/React.forwardRef(SvgNavigationGlobalMenuOutlineOutline);
|
|
5451
5561
|
|
|
5452
|
-
var css$9 = {"global-menu-btn":"
|
|
5562
|
+
var css$9 = {"global-menu-btn":"Zgx50Q","globalMenuBtn":"Zgx50Q","global-menu-icon":"ptbChi","globalMenuIcon":"ptbChi"};
|
|
5453
5563
|
|
|
5454
5564
|
const GlobalMenu = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("button", { ref: ref, id: "global_menu_toggle", className: cx__default.default(css$9.globalMenuBtn, props.cx), ...props.rawProps },
|
|
5455
5565
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 36, icon: ForwardRef$1, cx: css$9.globalMenuIcon }))));
|
|
5456
5566
|
|
|
5457
|
-
var css$8 = {"container":"
|
|
5567
|
+
var css$8 = {"container":"JOg9EY","open":"_9Xp0Gk","folding-arrow":"_42X9dZ","foldingArrow":"_42X9dZ"};
|
|
5458
5568
|
|
|
5459
5569
|
const MainMenuAvatar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("button", { ref: ref, className: cx__default.default(css$8.container, props.isDropdown && css$8.dropdown, props.isOpen && css$8.open, props.onClick && uuiCore.uuiMarkers.clickable, props.cx), onClick: props.onClick, ...props.rawProps },
|
|
5460
5570
|
React__namespace.createElement(uuiComponents.Avatar, { size: "36", img: props.avatarUrl }),
|
|
@@ -5462,15 +5572,15 @@ const MainMenuAvatar = /* @__PURE__ */React__namespace.forwardRef((props, ref) =
|
|
|
5462
5572
|
props.isDropdown && (React__namespace.createElement("div", null,
|
|
5463
5573
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, icon: ForwardRef$P, flipY: props.isOpen, cx: css$8.foldingArrow }))))));
|
|
5464
5574
|
|
|
5465
|
-
var css$7 = {"search-input":"
|
|
5575
|
+
var css$7 = {"search-input":"LWtnwu","searchInput":"LWtnwu"};
|
|
5466
5576
|
|
|
5467
5577
|
const MainMenuSearch = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement(uuiCore.IEditableDebouncer, { ...props, render: (iEditable) => (React__namespace.createElement(uuiComponents.TextInput, { iconPosition: "left", icon: ForwardRef$M, cancelIcon: props.value?.length > 0 && ForwardRef$Q, ...props, ...iEditable, ref: ref, cx: uuiCore.cx(css$7.searchInput, props.cx), ...props.rawProps })) })));
|
|
5468
5578
|
|
|
5469
|
-
var css$6 = {"container":"
|
|
5579
|
+
var css$6 = {"container":"d-E4Ii"};
|
|
5470
5580
|
|
|
5471
5581
|
const MainMenuIcon = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement(IconButton, { ref: ref, icon: props.icon, cx: uuiCore.cx(props.cx, css$6.container), ...props })));
|
|
5472
5582
|
|
|
5473
|
-
var css$5 = {"root":"
|
|
5583
|
+
var css$5 = {"root":"IRUUJv"};
|
|
5474
5584
|
|
|
5475
5585
|
const Anchor = /* @__PURE__ */uuiCore.withMods(uuiComponents.Anchor, () => [css$5.root]);
|
|
5476
5586
|
|
|
@@ -5528,7 +5638,7 @@ var SvgFileCloudUploadFill = function SvgFileCloudUploadFill(props, ref) {
|
|
|
5528
5638
|
};
|
|
5529
5639
|
var ForwardRef = /*#__PURE__*/React.forwardRef(SvgFileCloudUploadFill);
|
|
5530
5640
|
|
|
5531
|
-
var css$4 = {"root":"
|
|
5641
|
+
var css$4 = {"root":"tcm7tF","drop-start":"lSg-VV","dropStart":"lSg-VV","drop-over":"_8fZSzw","dropOver":"_8fZSzw","link":"ZtYJFd","drop-area":"g8N6qt","dropArea":"g8N6qt","drop-caption":"_13ruEY","dropCaption":"_13ruEY","icon-blue":"sNjEhT","iconBlue":"sNjEhT"};
|
|
5532
5642
|
|
|
5533
5643
|
function DropSpot(props) {
|
|
5534
5644
|
const getInfoText = typeof props.infoText === 'string'
|
|
@@ -5546,7 +5656,7 @@ function DropSpot(props) {
|
|
|
5546
5656
|
return React__namespace.createElement(uuiComponents.DropSpot, { render: renderAttachmentArea, onFilesDropped: props.onUploadFiles });
|
|
5547
5657
|
}
|
|
5548
5658
|
|
|
5549
|
-
var css$3 = {"root":"
|
|
5659
|
+
var css$3 = {"root":"_8KeYyk"};
|
|
5550
5660
|
|
|
5551
5661
|
const SvgCircleProgress = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5552
5662
|
const outsetRadius = props.size / 2 - 1;
|
|
@@ -5557,7 +5667,7 @@ const SvgCircleProgress = /* @__PURE__ */React__namespace.forwardRef((props, ref
|
|
|
5557
5667
|
React__namespace.createElement("circle", { strokeWidth: 1, fill: "transparent", r: outsetRadius, cx: props.size / 2, cy: props.size / 2 })));
|
|
5558
5668
|
});
|
|
5559
5669
|
|
|
5560
|
-
var css$2 = {"root":"
|
|
5670
|
+
var css$2 = {"root":"k2RJTn","file-name":"zlZ4b-","fileName":"zlZ4b-","default-color":"d8xlQ4","defaultColor":"d8xlQ4","doc-color":"_5hOH57","docColor":"_5hOH57","xls-color":"xGVIvZ","xlsColor":"xGVIvZ","pdf-color":"_74zO-v","pdfColor":"_74zO-v","movie-color":"_6E4yt-","movieColor":"_6E4yt-","img-color":"_243-4q","imgColor":"_243-4q","mov-color":"bej-U1","movColor":"bej-U1","error-block":"_6WDRWV","errorBlock":"_6WDRWV","icons-block":"MknJ5f","iconsBlock":"MknJ5f"};
|
|
5561
5671
|
|
|
5562
5672
|
const FileCard = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5563
5673
|
const [isLoadingShow, setIsLoadingShow] = React__namespace.useState(true);
|
|
@@ -5676,7 +5786,7 @@ const getErrorPageConfig = () => ({
|
|
|
5676
5786
|
},
|
|
5677
5787
|
});
|
|
5678
5788
|
|
|
5679
|
-
var css$1 = {"container":"
|
|
5789
|
+
var css$1 = {"container":"OXiYOQ"};
|
|
5680
5790
|
|
|
5681
5791
|
const ErrorPage = (props) => {
|
|
5682
5792
|
const isMobileScreen = uuiCore.isMobile();
|
|
@@ -5688,7 +5798,7 @@ const ErrorPage = (props) => {
|
|
|
5688
5798
|
props?.supportLink && React__namespace.default.createElement("div", { className: "uui-error-support-link" }, props?.supportLink))));
|
|
5689
5799
|
};
|
|
5690
5800
|
|
|
5691
|
-
var css = {"recovery-spinner":"
|
|
5801
|
+
var css = {"recovery-spinner":"M9-nnX","recoverySpinner":"M9-nnX","recovery-message":"_8vzTQg","recoveryMessage":"_8vzTQg","modal-blocker":"XgXrc3","modalBlocker":"XgXrc3","modalFadeIn":"_1j1hZh"};
|
|
5692
5802
|
|
|
5693
5803
|
function ErrorHandler(props) {
|
|
5694
5804
|
const { uuiNotifications, uuiModals, uuiApi } = uuiCore.useUuiContext();
|
|
@@ -5755,6 +5865,14 @@ Object.defineProperty(exports, "IconContainer", {
|
|
|
5755
5865
|
enumerable: true,
|
|
5756
5866
|
get: function () { return uuiComponents.IconContainer; }
|
|
5757
5867
|
});
|
|
5868
|
+
Object.defineProperty(exports, "MainMenuCustomElement", {
|
|
5869
|
+
enumerable: true,
|
|
5870
|
+
get: function () { return uuiComponents.MainMenuCustomElement; }
|
|
5871
|
+
});
|
|
5872
|
+
Object.defineProperty(exports, "MainMenuLogo", {
|
|
5873
|
+
enumerable: true,
|
|
5874
|
+
get: function () { return uuiComponents.MainMenuLogo; }
|
|
5875
|
+
});
|
|
5758
5876
|
exports.Accordion = Accordion;
|
|
5759
5877
|
exports.Alert = Alert;
|
|
5760
5878
|
exports.Anchor = Anchor;
|
|
@@ -5873,6 +5991,7 @@ exports.TimePicker = TimePicker;
|
|
|
5873
5991
|
exports.TimePickerBody = TimePickerBody;
|
|
5874
5992
|
exports.TimePickerComponent = TimePickerComponent;
|
|
5875
5993
|
exports.Tooltip = Tooltip;
|
|
5994
|
+
exports.Tree = Tree;
|
|
5876
5995
|
exports.VerticalTabButton = VerticalTabButton;
|
|
5877
5996
|
exports.VirtualList = VirtualList;
|
|
5878
5997
|
exports.WarningAlert = WarningAlert;
|