@epam/uui 5.13.3-beta.4 → 5.13.3-beta.6
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/layout/Blocker.d.ts +2 -2
- package/components/layout/Blocker.d.ts.map +1 -1
- package/index.esm.js +382 -378
- package/index.esm.js.map +1 -1
- package/index.js +381 -377
- package/index.js.map +1 -1
- package/package.json +5 -5
- package/settings.d.ts +8 -1
- package/settings.d.ts.map +1 -1
- package/stats.html +1 -1
- package/styles.css +2082 -2090
- package/styles.css.map +1 -1
package/index.js
CHANGED
|
@@ -182,7 +182,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
182
182
|
xmlns: "http://www.w3.org/2000/svg",
|
|
183
183
|
ref: ref
|
|
184
184
|
}, props), /*#__PURE__*/React__namespace.createElement("g", {
|
|
185
|
-
clipPath: "url(#
|
|
185
|
+
clipPath: "url(#opwl57ko678gmoct_a)"
|
|
186
186
|
}, _path$J || (_path$J = /*#__PURE__*/React__namespace.createElement("path", {
|
|
187
187
|
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",
|
|
188
188
|
fill: "#F5F6FA"
|
|
@@ -203,7 +203,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
203
203
|
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",
|
|
204
204
|
fill: "#1D1E26"
|
|
205
205
|
})), /*#__PURE__*/React__namespace.createElement("mask", {
|
|
206
|
-
id: "
|
|
206
|
+
id: "opwl572601dkv95xg_b",
|
|
207
207
|
style: {
|
|
208
208
|
maskType: "alpha"
|
|
209
209
|
},
|
|
@@ -216,7 +216,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
216
216
|
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",
|
|
217
217
|
fill: "#9BDEFF"
|
|
218
218
|
}))), _g || (_g = /*#__PURE__*/React__namespace.createElement("g", {
|
|
219
|
-
mask: "url(#
|
|
219
|
+
mask: "url(#opwl572601dkv95xg_b)",
|
|
220
220
|
fillRule: "evenodd",
|
|
221
221
|
clipRule: "evenodd"
|
|
222
222
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -302,7 +302,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
302
302
|
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",
|
|
303
303
|
fill: "#fff"
|
|
304
304
|
}))), _defs || (_defs = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
305
|
-
id: "
|
|
305
|
+
id: "opwl57ko678gmoct_a"
|
|
306
306
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
307
307
|
fill: "#fff",
|
|
308
308
|
transform: "translate(.552)",
|
|
@@ -859,6 +859,30 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
|
859
859
|
};
|
|
860
860
|
var ForwardRef$b = /*#__PURE__*/React.forwardRef(SvgSearchWithBackground);
|
|
861
861
|
|
|
862
|
+
var css$1y = {"root":"OLzlqd","uui-spinner":"lc-cES","uuiSpinner":"lc-cES"};
|
|
863
|
+
|
|
864
|
+
function applySpinnerMods() {
|
|
865
|
+
return [css$1y.root, 'uui-spinner'];
|
|
866
|
+
}
|
|
867
|
+
const Spinner = /* @__PURE__ */uuiCore.withMods(uuiComponents.Spinner, applySpinnerMods);
|
|
868
|
+
|
|
869
|
+
var css$1x = {"root":"MVuiXk","loading-word":"vQ95FH","loadingWord":"vQ95FH","animated-loading":"K4B-4E","animatedLoading":"K4B-4E","skeleton_loading":"DJts8Q","skeletonLoading":"DJts8Q"};
|
|
870
|
+
|
|
871
|
+
const TextPlaceholder = (props) => {
|
|
872
|
+
const pattern = ' ';
|
|
873
|
+
const text = React__namespace.useMemo(() => {
|
|
874
|
+
const words = [];
|
|
875
|
+
for (let i = 0; i < (props.wordsCount || 1); i++) {
|
|
876
|
+
const lengthWord = Math.floor(Math.random() * 10 + 8);
|
|
877
|
+
words.push(pattern.repeat(lengthWord));
|
|
878
|
+
}
|
|
879
|
+
return words;
|
|
880
|
+
}, [props.wordsCount]);
|
|
881
|
+
return (React__namespace.createElement("div", { "aria-busy": true, className: cx__default.default(css$1x.root, 'uui-text-placeholder'), ...props.rawProps }, text.map((it, index) => (React__namespace.createElement("span", { key: index, className: cx__default.default([
|
|
882
|
+
props.cx, css$1x.loadingWord, !props.isNotAnimated && css$1x.animatedLoading,
|
|
883
|
+
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
884
|
+
};
|
|
885
|
+
|
|
862
886
|
const accordionSettings = {
|
|
863
887
|
icons: {
|
|
864
888
|
dropdownIcon: ForwardRef$Q,
|
|
@@ -920,6 +944,7 @@ const countIndicatorSettings = {
|
|
|
920
944
|
},
|
|
921
945
|
};
|
|
922
946
|
const dataTableSettings = {
|
|
947
|
+
renderPlaceholder: () => React__namespace.default.createElement(TextPlaceholder, { isNotAnimated: true }),
|
|
923
948
|
icons: {
|
|
924
949
|
emptyTable: ForwardRef$J,
|
|
925
950
|
header: {
|
|
@@ -1107,6 +1132,7 @@ const paginatorSettings = {
|
|
|
1107
1132
|
},
|
|
1108
1133
|
};
|
|
1109
1134
|
const pickerInputSettings = {
|
|
1135
|
+
renderPlaceholder: () => React__namespace.default.createElement(TextPlaceholder, null),
|
|
1110
1136
|
icons: {
|
|
1111
1137
|
toggler: {
|
|
1112
1138
|
clearIcon: ForwardRef$R,
|
|
@@ -1271,11 +1297,15 @@ const textInputSettings = {
|
|
|
1271
1297
|
default: '36',
|
|
1272
1298
|
},
|
|
1273
1299
|
};
|
|
1300
|
+
const blockerSettings = {
|
|
1301
|
+
renderSpinner: () => React__namespace.default.createElement(Spinner, null),
|
|
1302
|
+
};
|
|
1274
1303
|
const settings = {
|
|
1275
1304
|
accordion: accordionSettings,
|
|
1276
1305
|
alert: alertSettings,
|
|
1277
1306
|
badge: badgeSettings,
|
|
1278
1307
|
button: buttonSettings,
|
|
1308
|
+
blocker: blockerSettings,
|
|
1279
1309
|
checkbox: checkboxSettings,
|
|
1280
1310
|
countIndicator: countIndicatorSettings,
|
|
1281
1311
|
dataTable: dataTableSettings,
|
|
@@ -1305,11 +1335,11 @@ const settings = {
|
|
|
1305
1335
|
textInput: textInputSettings,
|
|
1306
1336
|
};
|
|
1307
1337
|
|
|
1308
|
-
var css$
|
|
1338
|
+
var css$1w = {"root":"iUZr-z"};
|
|
1309
1339
|
|
|
1310
1340
|
function applyButtonMods(mods) {
|
|
1311
1341
|
return [
|
|
1312
|
-
css$
|
|
1342
|
+
css$1w.root,
|
|
1313
1343
|
'uui-button',
|
|
1314
1344
|
`uui-fill-${mods.fill || 'solid'}`,
|
|
1315
1345
|
`uui-color-${mods.color || 'primary'}`,
|
|
@@ -1323,10 +1353,10 @@ const Button = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Button,
|
|
|
1323
1353
|
};
|
|
1324
1354
|
});
|
|
1325
1355
|
|
|
1326
|
-
var css$
|
|
1356
|
+
var css$1v = {"root":"ElcSgC"};
|
|
1327
1357
|
|
|
1328
1358
|
function applyIconButtonMods(props) {
|
|
1329
|
-
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$
|
|
1359
|
+
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$1v.root];
|
|
1330
1360
|
}
|
|
1331
1361
|
const IconButton = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.IconButton, applyIconButtonMods, (props) => {
|
|
1332
1362
|
const isDeprecated = ['info', 'success', 'error', 'warning'].includes(props.color);
|
|
@@ -1360,7 +1390,7 @@ function getIconClass(props) {
|
|
|
1360
1390
|
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'];
|
|
1361
1391
|
}
|
|
1362
1392
|
|
|
1363
|
-
var css$
|
|
1393
|
+
var css$1u = {"root":"gsbkw-"};
|
|
1364
1394
|
|
|
1365
1395
|
const DEFAULT_COLOR = 'primary';
|
|
1366
1396
|
const LinkButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
@@ -1375,7 +1405,7 @@ const LinkButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
1375
1405
|
}
|
|
1376
1406
|
const rootStyles = [
|
|
1377
1407
|
'uui-link_button',
|
|
1378
|
-
css$
|
|
1408
|
+
css$1u.root,
|
|
1379
1409
|
`uui-size-${props.size || settings.linkButton.sizes.default}`,
|
|
1380
1410
|
...getIconClass(props),
|
|
1381
1411
|
`uui-color-${props.color || DEFAULT_COLOR}`,
|
|
@@ -1390,11 +1420,11 @@ const LinkButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
1390
1420
|
props.isDropdown && (React__namespace.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
1391
1421
|
});
|
|
1392
1422
|
|
|
1393
|
-
var css$
|
|
1423
|
+
var css$1t = {"root":"_1gRdJq"};
|
|
1394
1424
|
|
|
1395
1425
|
const CountIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1396
1426
|
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
1397
|
-
css$
|
|
1427
|
+
css$1t.root,
|
|
1398
1428
|
'uui-count_indicator',
|
|
1399
1429
|
`uui-size-${props.size || settings.countIndicator.sizes.default}`,
|
|
1400
1430
|
props.color && `uui-color-${props.color}`,
|
|
@@ -1402,11 +1432,11 @@ const CountIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1402
1432
|
]) }, props.caption));
|
|
1403
1433
|
});
|
|
1404
1434
|
|
|
1405
|
-
var css$
|
|
1435
|
+
var css$1s = {"root":"IGH-FC","withNotify":"JC-G4N"};
|
|
1406
1436
|
|
|
1407
1437
|
const TabButton = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
1408
1438
|
const styles = [
|
|
1409
|
-
css$
|
|
1439
|
+
css$1s.root,
|
|
1410
1440
|
'uui-tab-button',
|
|
1411
1441
|
`uui-size-${props.size || settings.tabButton.sizes.default}`,
|
|
1412
1442
|
...getIconClass(props),
|
|
@@ -1423,27 +1453,27 @@ const TabButton = /* @__PURE__ */React__namespace.default.forwardRef((props, ref
|
|
|
1423
1453
|
props.icon && props.iconPosition !== 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1424
1454
|
(props.caption || props.withNotify) && (React__namespace.default.createElement("div", { className: uuiCore.cx(uuiCore.uuiElement.caption) },
|
|
1425
1455
|
props.caption,
|
|
1426
|
-
props.withNotify && React__namespace.default.createElement("div", { className: css$
|
|
1456
|
+
props.withNotify && React__namespace.default.createElement("div", { className: css$1s.withNotify }))),
|
|
1427
1457
|
props.icon && props.iconPosition === 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1428
1458
|
props.count !== undefined && props.count !== null && (React__namespace.default.createElement(CountIndicator, { color: "neutral", size: settings.tabButton.sizes.countIndicatorMap[props.size || settings.tabButton.sizes.default], caption: props.count })),
|
|
1429
1459
|
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
1430
1460
|
props.onClear && !props.isDisabled && (React__namespace.default.createElement(uuiComponents.IconContainer, { cx: uuiCore.uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
1431
1461
|
});
|
|
1432
1462
|
|
|
1433
|
-
var css$
|
|
1463
|
+
var css$1r = {"root":"_8-VLva"};
|
|
1434
1464
|
|
|
1435
1465
|
function applyVerticalTabButtonMods() {
|
|
1436
|
-
return [css$
|
|
1466
|
+
return [css$1r.root, 'uui-vertical-tab-button'];
|
|
1437
1467
|
}
|
|
1438
1468
|
const VerticalTabButton = /* @__PURE__ */uuiCore.withMods(TabButton, applyVerticalTabButtonMods);
|
|
1439
1469
|
|
|
1440
|
-
var css$
|
|
1470
|
+
var css$1q = {"root":"JWazRN","mode-cell":"uYqs-B","modeCell":"uYqs-B"};
|
|
1441
1471
|
|
|
1442
1472
|
function applyCheckboxMods(mods) {
|
|
1443
1473
|
return [
|
|
1444
|
-
css$
|
|
1474
|
+
css$1q.root,
|
|
1445
1475
|
`uui-size-${mods.size || settings.checkbox.sizes.default}`,
|
|
1446
|
-
css$
|
|
1476
|
+
css$1q['mode-' + (mods.mode || 'form')],
|
|
1447
1477
|
'uui-color-primary',
|
|
1448
1478
|
];
|
|
1449
1479
|
}
|
|
@@ -1455,11 +1485,11 @@ const applyUUICheckboxProps = (props) => {
|
|
|
1455
1485
|
};
|
|
1456
1486
|
const Checkbox = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Checkbox, applyCheckboxMods, applyUUICheckboxProps);
|
|
1457
1487
|
|
|
1458
|
-
var css$
|
|
1488
|
+
var css$1p = {"root":"Y30m1A"};
|
|
1459
1489
|
|
|
1460
1490
|
function applyRadioInputMods(mods) {
|
|
1461
1491
|
return [
|
|
1462
|
-
css$
|
|
1492
|
+
css$1p.root,
|
|
1463
1493
|
`uui-size-${mods.size || settings.radioInput.sizes.default}`,
|
|
1464
1494
|
'uui-radio-input-container',
|
|
1465
1495
|
'uui-color-primary',
|
|
@@ -1467,11 +1497,11 @@ function applyRadioInputMods(mods) {
|
|
|
1467
1497
|
}
|
|
1468
1498
|
const RadioInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.RadioInput, applyRadioInputMods, (props) => ({ icon: props.icon ? props.icon : settings.radioInput.icons.dotIcon }));
|
|
1469
1499
|
|
|
1470
|
-
var css$
|
|
1500
|
+
var css$1o = {"root":"-VefN5"};
|
|
1471
1501
|
|
|
1472
1502
|
function applySwitchMods(mods) {
|
|
1473
1503
|
return [
|
|
1474
|
-
css$
|
|
1504
|
+
css$1o.root,
|
|
1475
1505
|
`uui-size-${mods.size || settings.switch.sizes.default}`,
|
|
1476
1506
|
'uui-color-primary',
|
|
1477
1507
|
];
|
|
@@ -1491,7 +1521,7 @@ var EditMode;
|
|
|
1491
1521
|
EditMode["INLINE"] = "inline";
|
|
1492
1522
|
})(EditMode || (EditMode = {}));
|
|
1493
1523
|
|
|
1494
|
-
var textInputCss = {"root":"
|
|
1524
|
+
var textInputCss = {"root":"NEWIUu","mode-form":"vrwCqc","modeForm":"vrwCqc","mode-inline":"HsUXpZ","modeInline":"HsUXpZ","mode-cell":"Q0HKR-","modeCell":"Q0HKR-"};
|
|
1495
1525
|
|
|
1496
1526
|
const DEFAULT_MODE$3 = EditMode.FORM;
|
|
1497
1527
|
function applyTextInputMods(mods) {
|
|
@@ -1516,9 +1546,9 @@ const SearchInput = /* @__PURE__ */React__namespace.default.forwardRef((props, r
|
|
|
1516
1546
|
} }));
|
|
1517
1547
|
});
|
|
1518
1548
|
|
|
1519
|
-
var css$
|
|
1549
|
+
var css$1n = {"root":"sC22k5"};
|
|
1520
1550
|
|
|
1521
|
-
const ControlGroup = /* @__PURE__ */uuiCore.withMods(uuiComponents.ControlGroup, () => [css$
|
|
1551
|
+
const ControlGroup = /* @__PURE__ */uuiCore.withMods(uuiComponents.ControlGroup, () => [css$1n.root, 'uui-control-group']);
|
|
1522
1552
|
|
|
1523
1553
|
function MultiSwitchComponent(props, ref) {
|
|
1524
1554
|
return (React__namespace.createElement(ControlGroup, { ref: ref, rawProps: {
|
|
@@ -1532,13 +1562,13 @@ function MultiSwitchComponent(props, ref) {
|
|
|
1532
1562
|
}
|
|
1533
1563
|
const MultiSwitch = /* @__PURE__ */React__namespace.forwardRef(MultiSwitchComponent);
|
|
1534
1564
|
|
|
1535
|
-
var css$
|
|
1565
|
+
var css$1m = {"root":"_5QEBUX","mode-form":"UcrWR5","modeForm":"UcrWR5","mode-cell":"DSdLQA","modeCell":"DSdLQA"};
|
|
1536
1566
|
|
|
1537
1567
|
const DEFAULT_MODE$2 = EditMode.FORM;
|
|
1538
1568
|
function applyNumericInputMods(mods) {
|
|
1539
1569
|
return [
|
|
1540
1570
|
textInputCss.root,
|
|
1541
|
-
css$
|
|
1571
|
+
css$1m.root,
|
|
1542
1572
|
`uui-size-${mods.size || settings.numericInput.sizes.default}`,
|
|
1543
1573
|
textInputCss['mode-' + (mods.mode || DEFAULT_MODE$2)],
|
|
1544
1574
|
];
|
|
@@ -1552,15 +1582,15 @@ const NumericInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.NumericInput,
|
|
|
1552
1582
|
};
|
|
1553
1583
|
});
|
|
1554
1584
|
|
|
1555
|
-
var css$
|
|
1585
|
+
var css$1l = {"root":"zCzjYE","mode-form":"qe6wh6","modeForm":"qe6wh6","mode-cell":"y9-knd","modeCell":"y9-knd","mode-inline":"A-en-U","modeInline":"A-en-U"};
|
|
1556
1586
|
|
|
1557
1587
|
const DEFAULT_MODE$1 = EditMode.FORM;
|
|
1558
1588
|
function applyTextAreaMods(mods) {
|
|
1559
1589
|
return [
|
|
1560
|
-
css$
|
|
1590
|
+
css$1l.root,
|
|
1561
1591
|
'uui-textarea',
|
|
1562
1592
|
'uui-size-' + (mods.size || settings.textArea.sizes.default),
|
|
1563
|
-
css$
|
|
1593
|
+
css$1l['mode-' + (mods.mode || DEFAULT_MODE$1)],
|
|
1564
1594
|
];
|
|
1565
1595
|
}
|
|
1566
1596
|
const TextArea = /* @__PURE__ */uuiCore.withMods(uuiComponents.TextArea, applyTextAreaMods, (props) => {
|
|
@@ -1593,17 +1623,17 @@ function TREE_SHAKEABLE_INIT$1() {
|
|
|
1593
1623
|
};
|
|
1594
1624
|
}
|
|
1595
1625
|
|
|
1596
|
-
var css$
|
|
1626
|
+
var css$1k = {"root":"bJvxfk","main-path":"U-nbSz","mainPath":"U-nbSz","content-wrapper":"BOjLzi","contentWrapper":"BOjLzi","content":"ldX-9c","action-wrapper":"Gw8j43","actionWrapper":"Gw8j43","icon-wrapper":"Hj4d8Q","iconWrapper":"Hj4d8Q","icon":"-g0HYO","close-icon":"-lx4xz","closeIcon":"-lx4xz"};
|
|
1597
1627
|
|
|
1598
|
-
const Alert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("div", { role: "alert", ref: ref, className: cx__default.default('uui-alert', css$
|
|
1599
|
-
React__namespace.createElement("div", { className: css$
|
|
1600
|
-
React__namespace.createElement("div", { className: css$
|
|
1601
|
-
props.icon && (React__namespace.createElement("div", { className: css$
|
|
1602
|
-
React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$
|
|
1603
|
-
React__namespace.createElement("div", { className: css$
|
|
1628
|
+
const Alert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("div", { role: "alert", ref: ref, className: cx__default.default('uui-alert', css$1k.root, props.color && `uui-color-${props.color}`, props.cx, `uui-size-${props.size || settings.alert.sizes.default}`), ...props.rawProps },
|
|
1629
|
+
React__namespace.createElement("div", { className: css$1k.mainPath },
|
|
1630
|
+
React__namespace.createElement("div", { className: css$1k.contentWrapper },
|
|
1631
|
+
props.icon && (React__namespace.createElement("div", { className: css$1k.iconWrapper },
|
|
1632
|
+
React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$1k.icon }))),
|
|
1633
|
+
React__namespace.createElement("div", { className: css$1k.content },
|
|
1604
1634
|
props.children,
|
|
1605
|
-
props.actions && (React__namespace.createElement("div", { className: css$
|
|
1606
|
-
props.onClose && React__namespace.createElement(IconButton, { icon: settings.alert.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$
|
|
1635
|
+
props.actions && (React__namespace.createElement("div", { className: css$1k.actionWrapper }, props.actions.map((action) => (React__namespace.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$1k.actionLink, size: settings.alert.sizes.actionMap[props.size || settings.alert.sizes.default] }))))))),
|
|
1636
|
+
props.onClose && React__namespace.createElement(IconButton, { icon: settings.alert.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$1k.closeIcon })))));
|
|
1607
1637
|
const WarningAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, { icon: settings.alert.icons.warningIcon, color: "warning", ref: ref, ...props }));
|
|
1608
1638
|
const SuccessAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, { icon: settings.alert.icons.successIcon, color: "success", ref: ref, ...props }));
|
|
1609
1639
|
const HintAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, { icon: settings.alert.icons.infoIcon, color: "info", ref: ref, ...props }));
|
|
@@ -1611,18 +1641,18 @@ const ErrorAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => Re
|
|
|
1611
1641
|
|
|
1612
1642
|
const Dropdown = /* @__PURE__ */uuiCore.withMods(uuiComponents.Dropdown);
|
|
1613
1643
|
|
|
1614
|
-
var css$
|
|
1644
|
+
var css$1j = {"root":"yX0tAZ"};
|
|
1615
1645
|
|
|
1616
1646
|
function applyDropdownContainerMods(mods) {
|
|
1617
1647
|
return [
|
|
1618
|
-
css$
|
|
1648
|
+
css$1j.root,
|
|
1619
1649
|
mods.vPadding && `vPadding-${mods.vPadding}`,
|
|
1620
1650
|
mods.padding && `padding-${mods.padding}`,
|
|
1621
1651
|
];
|
|
1622
1652
|
}
|
|
1623
1653
|
const DropdownContainer = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.DropdownContainer, applyDropdownContainerMods);
|
|
1624
1654
|
|
|
1625
|
-
var css$
|
|
1655
|
+
var css$1i = {"submenu-root-item-rtl":"E5Gvrn","submenuRootItemRtl":"E5Gvrn","icon-after":"L4V53I","iconAfter":"L4V53I","submenu-root-item":"iVvgXA","submenuRootItem":"iVvgXA","icon-check":"_1N1I42","iconCheck":"_1N1I42","splitter-root":"TJKB8R","splitterRoot":"TJKB8R","splitter":"kgB3bG","header-root":"_61hi4o","headerRoot":"_61hi4o","item-root":"QKh4gx","itemRoot":"QKh4gx","icon":"gDAQh1","link":"PnOKWz","indent":"NTUjuK","selected-mark":"t7P5a3","selectedMark":"t7P5a3"};
|
|
1626
1656
|
|
|
1627
1657
|
exports.IDropdownControlKeys = void 0;
|
|
1628
1658
|
(function (IDropdownControlKeys) {
|
|
@@ -1687,29 +1717,29 @@ const DropdownMenuButton = /* @__PURE__ */React__namespace.default.forwardRef((p
|
|
|
1687
1717
|
const getMenuButtonContent = () => {
|
|
1688
1718
|
const isIconBefore = Boolean(icon && iconPosition !== 'right');
|
|
1689
1719
|
const isIconAfter = Boolean(icon && iconPosition === 'right');
|
|
1690
|
-
const iconElement = (React__namespace.default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: uuiCore.cx(css$
|
|
1720
|
+
const iconElement = (React__namespace.default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: uuiCore.cx(css$1i.icon, iconPosition === 'right' ? css$1i.iconAfter : css$1i.iconBefore) }));
|
|
1691
1721
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1692
1722
|
isIconBefore && iconElement,
|
|
1693
|
-
React__namespace.default.createElement(uuiComponents.Text, { cx: props.indent && css$
|
|
1723
|
+
React__namespace.default.createElement(uuiComponents.Text, { cx: props.indent && css$1i.indent }, caption),
|
|
1694
1724
|
isIconAfter && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1695
1725
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1696
1726
|
iconElement))));
|
|
1697
1727
|
};
|
|
1698
1728
|
const isAnchor = Boolean(link || href);
|
|
1699
|
-
const itemClassNames = uuiCore.cx(props.cx, css$
|
|
1700
|
-
return isAnchor ? (React__namespace.default.createElement(uuiComponents.Anchor, { cx: uuiCore.cx(css$
|
|
1729
|
+
const itemClassNames = uuiCore.cx(props.cx, css$1i.itemRoot, isDisabled && uuiCore.uuiMod.disabled, isActive && uuiCore.uuiMod.active, isOpen && uuiCore.uuiMod.opened, (!isDisabled && onClick) && uuiCore.uuiMarkers.clickable);
|
|
1730
|
+
return isAnchor ? (React__namespace.default.createElement(uuiComponents.Anchor, { cx: uuiCore.cx(css$1i.link, itemClassNames), link: link, href: href, rawProps: { role: 'menuitem', tabIndex: isDisabled ? -1 : 0 }, onClick: handleClick, isLinkActive: isActive, 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 },
|
|
1701
1731
|
getMenuButtonContent(),
|
|
1702
1732
|
isSelected && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1703
1733
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1704
|
-
React__namespace.default.createElement(uuiComponents.IconContainer, { icon: settings.dropdownMenu.icons.acceptIcon, cx: css$
|
|
1734
|
+
React__namespace.default.createElement(uuiComponents.IconContainer, { icon: settings.dropdownMenu.icons.acceptIcon, cx: css$1i.selectedMark })))));
|
|
1705
1735
|
});
|
|
1706
1736
|
function DropdownMenuSplitter(props) {
|
|
1707
|
-
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$
|
|
1708
|
-
React__namespace.default.createElement("hr", { className: css$
|
|
1737
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$1i.splitterRoot) },
|
|
1738
|
+
React__namespace.default.createElement("hr", { className: css$1i.splitter })));
|
|
1709
1739
|
}
|
|
1710
1740
|
function DropdownMenuHeader(props) {
|
|
1711
|
-
return (React__namespace.default.createElement("div", { className: uuiCore.cx('uui-dropdown-menu-header', props.cx, css$
|
|
1712
|
-
React__namespace.default.createElement("span", { className: css$
|
|
1741
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx('uui-dropdown-menu-header', props.cx, css$1i.headerRoot) },
|
|
1742
|
+
React__namespace.default.createElement("span", { className: css$1i.header }, props.caption)));
|
|
1713
1743
|
}
|
|
1714
1744
|
function DropdownSubMenu(props) {
|
|
1715
1745
|
const subMenuModifiers = [
|
|
@@ -1729,7 +1759,7 @@ function DropdownSubMenu(props) {
|
|
|
1729
1759
|
},
|
|
1730
1760
|
];
|
|
1731
1761
|
const isRtl = uuiCore.getDir() === 'rtl';
|
|
1732
|
-
return (React__namespace.default.createElement(uuiComponents.Dropdown, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", openDelay: 400, closeDelay: 400, placement: isRtl ? 'left-start' : 'right-start', modifiers: subMenuModifiers, 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$
|
|
1762
|
+
return (React__namespace.default.createElement(uuiComponents.Dropdown, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", openDelay: 400, closeDelay: 400, placement: isRtl ? 'left-start' : 'right-start', modifiers: subMenuModifiers, 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$1i.submenuRootItemRtl : css$1i.submenuRootItem), icon: settings.dropdownMenu.icons.dropdownIcon, iconPosition: "right", isDropdown: true, toggleDropdownOpening: toggleDropdownOpening, ...props, ...targetProps })) }));
|
|
1733
1763
|
}
|
|
1734
1764
|
function DropdownMenuSwitchButton(props) {
|
|
1735
1765
|
const context = React.useContext(uuiCore.UuiContext);
|
|
@@ -1745,29 +1775,29 @@ function DropdownMenuSwitchButton(props) {
|
|
|
1745
1775
|
onHandleValueChange(!isSelected);
|
|
1746
1776
|
}
|
|
1747
1777
|
};
|
|
1748
|
-
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$
|
|
1749
|
-
icon && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icon, cx: css$
|
|
1778
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$1i.itemRoot, isDisabled && uuiCore.uuiMod.disabled, (!isDisabled || onValueChange) && uuiCore.uuiMarkers.clickable), onClick: () => onHandleValueChange(!isSelected), role: "menuitem", onKeyDown: handleKeySelect, tabIndex: isDisabled ? -1 : 0 },
|
|
1779
|
+
icon && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icon, cx: css$1i.iconBefore }),
|
|
1750
1780
|
React__namespace.default.createElement(uuiComponents.Text, null, caption),
|
|
1751
1781
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1752
1782
|
React__namespace.default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
1753
1783
|
}
|
|
1754
1784
|
|
|
1755
|
-
var css$
|
|
1785
|
+
var css$1h = {"root":"_7TFk1a","mode-block":"UUnqTv","modeBlock":"UUnqTv","mode-inline":"MIwkIt","modeInline":"MIwkIt","padding-0":"_7ZN6fG","padding0":"_7ZN6fG","padding-6":"oOd-hP","padding6":"oOd-hP","padding-12":"VwuxBa","padding12":"VwuxBa","padding-18":"_8DIewP","padding18":"_8DIewP"};
|
|
1756
1786
|
|
|
1757
1787
|
function applyAccordionMods(mods) {
|
|
1758
1788
|
return [
|
|
1759
|
-
css$
|
|
1760
|
-
css$
|
|
1761
|
-
mods.padding && css$
|
|
1789
|
+
css$1h.root,
|
|
1790
|
+
css$1h[`mode-${mods.mode || 'block'}`],
|
|
1791
|
+
mods.padding && css$1h['padding-' + mods.padding],
|
|
1762
1792
|
];
|
|
1763
1793
|
}
|
|
1764
1794
|
const Accordion = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Accordion, applyAccordionMods, (mods) => ({
|
|
1765
1795
|
dropdownIcon: mods.dropdownIcon !== null && settings.accordion.icons.dropdownIcon,
|
|
1766
1796
|
}));
|
|
1767
1797
|
|
|
1768
|
-
var css$
|
|
1798
|
+
var css$1g = {"root":"d-Q-fB","align-items":"WpVkcA","alignItems":"WpVkcA","justify-content":"AR8PDs","justifyContent":"AR8PDs","border-top":"_6mIROn","borderTop":"_6mIROn","border-bottom":"_4cm3o6","borderBottom":"_4cm3o6","top-shadow":"xqnXas","topShadow":"xqnXas","padding":"iRUiTf","margin":"_22xkZv","vPadding":"TJitE9","column-gap":"_6bydUj","columnGap":"_6bydUj","row-gap":"vvK1Rf","rowGap":"vvK1Rf","spacing":"jTol3I"};
|
|
1769
1799
|
|
|
1770
|
-
const FlexCell = /* @__PURE__ */uuiCore.withMods(uuiComponents.FlexCell, () => [css$
|
|
1800
|
+
const FlexCell = /* @__PURE__ */uuiCore.withMods(uuiComponents.FlexCell, () => [css$1g.flexCell]);
|
|
1771
1801
|
|
|
1772
1802
|
const FlexRow = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1773
1803
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -1776,23 +1806,23 @@ const FlexRow = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1776
1806
|
}
|
|
1777
1807
|
}
|
|
1778
1808
|
const classNames = uuiCore.cx([
|
|
1779
|
-
css$
|
|
1809
|
+
css$1g.root,
|
|
1780
1810
|
'uui-flex-row',
|
|
1781
1811
|
props.onClick && uuiCore.uuiMarkers.clickable,
|
|
1782
1812
|
props.cx,
|
|
1783
1813
|
props.size !== null && 'uui-size-' + (props.size || settings.flexRow.sizes.default),
|
|
1784
|
-
props.alignItems && css$
|
|
1785
|
-
props.justifyContent && css$
|
|
1786
|
-
props.padding && css$
|
|
1787
|
-
props.vPadding && css$
|
|
1788
|
-
props.margin && css$
|
|
1789
|
-
props.topShadow && css$
|
|
1790
|
-
props.borderBottom && css$
|
|
1791
|
-
props.borderTop && css$
|
|
1792
|
-
props.columnGap && css$
|
|
1793
|
-
props.rowGap && css$
|
|
1794
|
-
props.spacing && css$
|
|
1795
|
-
props.background &&
|
|
1814
|
+
props.alignItems && css$1g.alignItems,
|
|
1815
|
+
props.justifyContent && css$1g.justifyContent,
|
|
1816
|
+
props.padding && css$1g.padding,
|
|
1817
|
+
props.vPadding && css$1g.vPadding,
|
|
1818
|
+
props.margin && css$1g.margin,
|
|
1819
|
+
props.topShadow && css$1g.topShadow,
|
|
1820
|
+
props.borderBottom && css$1g.borderBottom,
|
|
1821
|
+
props.borderTop && css$1g.borderTop,
|
|
1822
|
+
props.columnGap && css$1g.columnGap,
|
|
1823
|
+
props.rowGap && css$1g.rowGap,
|
|
1824
|
+
props.spacing && css$1g.spacing,
|
|
1825
|
+
props.background && `uui-flex-row-bg-${props.background}`,
|
|
1796
1826
|
]);
|
|
1797
1827
|
const style = {
|
|
1798
1828
|
...(props.alignItems && { '--uui-flex-row-align-items': props.alignItems }),
|
|
@@ -1810,32 +1840,32 @@ const FlexRow = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1810
1840
|
} }, props.children));
|
|
1811
1841
|
});
|
|
1812
1842
|
|
|
1813
|
-
var css$
|
|
1843
|
+
var css$1f = {"root":"e7ufIk","margin-24":"OTd1ba","margin24":"OTd1ba","padding-12":"ChUgMF","padding12":"ChUgMF","padding-24":"WF5wvr","padding24":"WF5wvr","shadow":"O6ad1l","uui-surface-main":"CzP7A8","uuiSurfaceMain":"CzP7A8"};
|
|
1814
1844
|
|
|
1815
1845
|
const Panel = /* @__PURE__ */uuiCore.withMods(uuiComponents.VPanel, (props) => [
|
|
1816
1846
|
'uui-panel',
|
|
1817
|
-
css$
|
|
1818
|
-
props.shadow && css$
|
|
1819
|
-
props.margin && css$
|
|
1820
|
-
props.background && css$
|
|
1847
|
+
css$1f.root,
|
|
1848
|
+
props.shadow && css$1f.shadow,
|
|
1849
|
+
props.margin && css$1f['margin-' + props.margin],
|
|
1850
|
+
props.background && css$1f[`uui-${props.background}`],
|
|
1821
1851
|
]);
|
|
1822
1852
|
|
|
1823
|
-
var css$
|
|
1853
|
+
var css$1e = {"root":"V0Ma84"};
|
|
1824
1854
|
|
|
1825
1855
|
function applyTooltipMods(mods) {
|
|
1826
1856
|
return [
|
|
1827
|
-
css$
|
|
1857
|
+
css$1e.root,
|
|
1828
1858
|
`uui-color-${mods.color || 'inverted'}`,
|
|
1829
1859
|
];
|
|
1830
1860
|
}
|
|
1831
1861
|
const Tooltip = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Tooltip, applyTooltipMods);
|
|
1832
1862
|
|
|
1833
|
-
var css$
|
|
1863
|
+
var css$1d = {"root":"ZM0rjq"};
|
|
1834
1864
|
|
|
1835
1865
|
function applyLabeledInputMods(mods) {
|
|
1836
1866
|
return [
|
|
1837
1867
|
'uui-labeled-input',
|
|
1838
|
-
css$
|
|
1868
|
+
css$1d.root,
|
|
1839
1869
|
'uui-size-' + (mods.size || settings.labeledInput.sizes.default),
|
|
1840
1870
|
];
|
|
1841
1871
|
}
|
|
@@ -1847,7 +1877,7 @@ function applyLabeledInputProps(props) {
|
|
|
1847
1877
|
}
|
|
1848
1878
|
const LabeledInput = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.LabeledInput, applyLabeledInputMods, applyLabeledInputProps);
|
|
1849
1879
|
|
|
1850
|
-
var css$
|
|
1880
|
+
var css$1c = {"root":"ePAxgt"};
|
|
1851
1881
|
|
|
1852
1882
|
function RadioGroup(props) {
|
|
1853
1883
|
const direction = props.direction || 'vertical';
|
|
@@ -1856,175 +1886,26 @@ function RadioGroup(props) {
|
|
|
1856
1886
|
props.onValueChange(newVal);
|
|
1857
1887
|
}
|
|
1858
1888
|
};
|
|
1859
|
-
return (React__namespace.createElement("fieldset", { ref: props.forwardedRef, className: uuiCore.cx(css$
|
|
1889
|
+
return (React__namespace.createElement("fieldset", { ref: props.forwardedRef, className: uuiCore.cx(css$1c.root, uuiCore.directionMode[direction], props.cx), onFocus: props.onFocus, onBlur: props.onBlur, ...props.rawProps }, props.items.map((i) => {
|
|
1860
1890
|
const { id, name, renderName, ...restItemProps } = i;
|
|
1861
1891
|
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 }));
|
|
1862
1892
|
})));
|
|
1863
1893
|
}
|
|
1864
1894
|
|
|
1865
|
-
var css$
|
|
1895
|
+
var css$1b = {"root":"kgCowl"};
|
|
1866
1896
|
|
|
1867
1897
|
function applyScrollBarsMods() {
|
|
1868
1898
|
return [
|
|
1869
|
-
css$
|
|
1899
|
+
css$1b.root, 'uui-scroll-bars', 'uui-shadow-top', 'uui-shadow-bottom',
|
|
1870
1900
|
];
|
|
1871
1901
|
}
|
|
1872
1902
|
const ScrollBars = /* @__PURE__ */uuiCore.withMods(uuiComponents.ScrollBars, applyScrollBarsMods);
|
|
1873
1903
|
|
|
1874
|
-
var css$
|
|
1875
|
-
|
|
1876
|
-
var css$1b = {"root":"CFBjtt"};
|
|
1877
|
-
|
|
1878
|
-
const AvatarStack = /* @__PURE__ */uuiCore.withMods(uuiComponents.AvatarStack, () => [css$1b.root]);
|
|
1879
|
-
|
|
1880
|
-
var css$1a = {"root":"V8W3pw"};
|
|
1881
|
-
|
|
1882
|
-
const DEFAULT_FILL = 'solid';
|
|
1883
|
-
function applyBadgeMods(mods) {
|
|
1884
|
-
return [
|
|
1885
|
-
'uui-badge',
|
|
1886
|
-
css$1a.root,
|
|
1887
|
-
`uui-size-${mods.size || settings.badge.sizes.default}`,
|
|
1888
|
-
`uui-fill-${mods.fill || DEFAULT_FILL}`,
|
|
1889
|
-
`uui-color-${mods.color || 'info'}`,
|
|
1890
|
-
];
|
|
1891
|
-
}
|
|
1892
|
-
const Badge = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
1893
|
-
const styles = [applyBadgeMods(props), props.cx];
|
|
1894
|
-
const DropdownIcon = props.dropdownIcon ? props.dropdownIcon : settings.badge.icons.dropdownIcon;
|
|
1895
|
-
return (React__namespace.default.createElement(uuiComponents.Clickable, { ...props, rawProps: {
|
|
1896
|
-
'aria-haspopup': props.isDropdown,
|
|
1897
|
-
'aria-expanded': props.isOpen,
|
|
1898
|
-
...props.rawProps,
|
|
1899
|
-
}, cx: styles, ref: ref },
|
|
1900
|
-
(props.indicator && props.fill === 'outline') && (React__namespace.default.createElement("div", { className: "uui-indicator" })),
|
|
1901
|
-
props.icon && props.iconPosition !== 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1902
|
-
props.caption && (React__namespace.default.createElement("div", { className: uuiCore.uuiElement.caption }, props.caption)),
|
|
1903
|
-
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 })),
|
|
1904
|
-
props.icon && props.iconPosition === 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1905
|
-
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
1906
|
-
});
|
|
1907
|
-
|
|
1908
|
-
var css$19 = {"root":"_99RtV-"};
|
|
1909
|
-
|
|
1910
|
-
function applyTagMods(props) {
|
|
1911
|
-
return [
|
|
1912
|
-
css$19.root,
|
|
1913
|
-
`uui-size-${props.size || settings.tag.sizes.default}`,
|
|
1914
|
-
`uui-color-${props.color || 'neutral'}`,
|
|
1915
|
-
`uui-fill-${props.fill || 'solid'}`,
|
|
1916
|
-
'uui-tag',
|
|
1917
|
-
];
|
|
1918
|
-
}
|
|
1919
|
-
const Tag = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
1920
|
-
const styles = [applyTagMods(props), props.cx];
|
|
1921
|
-
const ClearIcon = props.clearIcon ? props.clearIcon : settings.tag.icons.clearIcon;
|
|
1922
|
-
const DropdownIcon = props.dropdownIcon ? props.dropdownIcon : settings.tag.icons.dropdownIcon;
|
|
1923
|
-
return (React__namespace.default.createElement(uuiComponents.Clickable, { ...props, rawProps: {
|
|
1924
|
-
'aria-haspopup': props.isDropdown,
|
|
1925
|
-
'aria-expanded': props.isOpen,
|
|
1926
|
-
...props.rawProps,
|
|
1927
|
-
}, cx: styles, ref: ref },
|
|
1928
|
-
props.icon && props.iconPosition !== 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1929
|
-
props.caption && (React__namespace.default.createElement("div", { className: uuiCore.uuiElement.caption }, props.caption)),
|
|
1930
|
-
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 })),
|
|
1931
|
-
props.icon && props.iconPosition === 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1932
|
-
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
1933
|
-
props.onClear && !props.isDisabled && (React__namespace.default.createElement(uuiComponents.IconContainer, { cx: uuiCore.uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
1934
|
-
});
|
|
1935
|
-
|
|
1936
|
-
var css$18 = {"root":"MKA8Es","uui-spinner":"Cg6J-G","uuiSpinner":"Cg6J-G"};
|
|
1904
|
+
var css$1a = {"scroll-container":"_--s0ho","scrollContainer":"_--s0ho","list-container":"_-96U1-","listContainer":"_-96U1-"};
|
|
1937
1905
|
|
|
1938
|
-
|
|
1939
|
-
return [css$18.root, 'uui-spinner'];
|
|
1940
|
-
}
|
|
1941
|
-
const Spinner = /* @__PURE__ */uuiCore.withMods(uuiComponents.Spinner, applySpinnerMods);
|
|
1942
|
-
|
|
1943
|
-
var css$17 = {"root":"_5MUWQj","page":"DLinp4","spacer":"kzpIIm","mode-ghost":"_7W6v0O","modeGhost":"_7W6v0O"};
|
|
1944
|
-
|
|
1945
|
-
function Paginator(props) {
|
|
1946
|
-
const renderPaginator = (params) => (React__namespace.default.createElement("nav", { role: "navigation", className: cx__default.default(css$17.root, 'uui-paginator', `uui-size-${props.size || settings.paginator.sizes.default}`), ...params.rawProps },
|
|
1947
|
-
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" }),
|
|
1948
|
-
params.pages.map((page, index) => {
|
|
1949
|
-
if (page.type === 'spacer') {
|
|
1950
|
-
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$17.spacer, css$17.page), size: props.size || settings.paginator.sizes.default, key: `${index}_spacer`, caption: "...", fill: "ghost", color: "secondary", tabIndex: -1, isDisabled: props.isDisabled }));
|
|
1951
|
-
}
|
|
1952
|
-
else {
|
|
1953
|
-
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$17[`mode-${!page.isActive && 'ghost'}`], css$17.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 }));
|
|
1954
|
-
}
|
|
1955
|
-
}),
|
|
1956
|
-
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" })));
|
|
1957
|
-
return React__namespace.default.createElement(uuiComponents.Paginator, { ...props, render: renderPaginator });
|
|
1958
|
-
}
|
|
1959
|
-
|
|
1960
|
-
var css$16 = {"root":"aWoUxT","progress-bar":"i5Jybj","progressBar":"i5Jybj","progressBar-indeterminate":"NVvlu9","progressBarIndeterminate":"NVvlu9","size-12":"iMv1JJ","size12":"iMv1JJ","size-18":"xgI1ES","size18":"xgI1ES","size-24":"_4Ic0U7","size24":"_4Ic0U7"};
|
|
1906
|
+
var css$19 = {"root":"vY5vPW"};
|
|
1961
1907
|
|
|
1962
|
-
const
|
|
1963
|
-
return (React__namespace.createElement("div", { ref: ref, className: cx__default.default('uui-indeterminate_bar', props.cx, css$16.root, css$16[`size-${props.size || 12}`]) },
|
|
1964
|
-
React__namespace.createElement("div", { className: cx__default.default(css$16.progressBar) })));
|
|
1965
|
-
});
|
|
1966
|
-
|
|
1967
|
-
var css$15 = {"root":"t-Nk49","striped":"_6-sPRE","animate-stripes":"mZaW2D","animateStripes":"mZaW2D","size-12":"tiW043","size12":"tiW043","size-18":"C1ZL6Y","size18":"C1ZL6Y","size-24":"GkvDh5","size24":"GkvDh5"};
|
|
1968
|
-
|
|
1969
|
-
const DEFAULT_SIZE = '12';
|
|
1970
|
-
function applyProgressBarMods(mods) {
|
|
1971
|
-
const size = mods.size || DEFAULT_SIZE;
|
|
1972
|
-
return [
|
|
1973
|
-
css$15.root,
|
|
1974
|
-
css$15[`size-${size}`],
|
|
1975
|
-
mods.striped && css$15.striped,
|
|
1976
|
-
];
|
|
1977
|
-
}
|
|
1978
|
-
const ProgressBar = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.ProgressBar, applyProgressBarMods, (props) => ({
|
|
1979
|
-
hideLabel: props.hideLabel || props.striped,
|
|
1980
|
-
}));
|
|
1981
|
-
|
|
1982
|
-
var css$14 = {"root":"GHekfs"};
|
|
1983
|
-
|
|
1984
|
-
const IndicatorBar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
1985
|
-
const { progress } = props;
|
|
1986
|
-
return progress || progress === 0 ? (React__namespace.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx__default.default(css$14.root, props.cx), hideLabel: true })) : (React__namespace.createElement(IndeterminateBar, { ref: ref, cx: cx__default.default(css$14.root, props.cx) }));
|
|
1987
|
-
});
|
|
1988
|
-
|
|
1989
|
-
var css$13 = {"root":"rUlaLv"};
|
|
1990
|
-
|
|
1991
|
-
const StatusIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1992
|
-
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
1993
|
-
css$13.root,
|
|
1994
|
-
`uui-size-${props.size || settings.statusIndicator.sizes.default}`,
|
|
1995
|
-
'uui-status_indicator',
|
|
1996
|
-
`uui-color-${props.color || 'neutral'}`,
|
|
1997
|
-
`uui-fill-${props.fill || 'solid'}`,
|
|
1998
|
-
props.cx,
|
|
1999
|
-
]) },
|
|
2000
|
-
React__namespace.default.createElement("div", { className: "uui-status_indicator-dot" }),
|
|
2001
|
-
React__namespace.default.createElement("p", { className: "uui-status_indicator-caption" }, props.caption)));
|
|
2002
|
-
});
|
|
2003
|
-
|
|
2004
|
-
var css$12 = {"drag-handle":"z-Irr7","dragHandle":"z-Irr7","icon-container":"EMA7jG","iconContainer":"EMA7jG"};
|
|
2005
|
-
|
|
2006
|
-
function DataRowAddons(props) {
|
|
2007
|
-
const row = props.rowProps;
|
|
2008
|
-
const getIndent = () => {
|
|
2009
|
-
return (row.indent - 1) * settings.dataTable.sizes.body.indentUnitMap[props.size || settings.dataTable.sizes.body.row];
|
|
2010
|
-
};
|
|
2011
|
-
const getWidth = () => {
|
|
2012
|
-
return settings.dataTable.sizes.body.indentWidthMap[props.size || settings.dataTable.sizes.body.row];
|
|
2013
|
-
};
|
|
2014
|
-
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
2015
|
-
row.dnd?.srcData && React__namespace.default.createElement(uuiComponents.DragHandle, { key: "dh", cx: css$12.dragHandle, rawProps: { ...props.eventHandlers } }),
|
|
2016
|
-
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 })),
|
|
2017
|
-
row.indent > 0 && (React__namespace.default.createElement("div", { key: "fold", className: cx__default.default('uui-dr_addons-indent', `uui-size-${props.size}`), style: { marginInlineStart: getIndent(), width: getWidth() } }, row.isFoldable && (React__namespace.default.createElement(uuiComponents.IconContainer, { rawProps: {
|
|
2018
|
-
'aria-label': row.isFolded ? 'Unfold' : 'Fold',
|
|
2019
|
-
role: 'button',
|
|
2020
|
-
}, key: "icon", icon: settings.dataTable.icons.body.foldingIcon, cx: [
|
|
2021
|
-
uuiCore.uuiElement.foldingArrow, uuiCore.uuiMarkers.clickable, css$12.iconContainer,
|
|
2022
|
-
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row), size: settings.dataTable.sizes.body.iconMap[props.size || settings.dataTable.sizes.body.row] }))))));
|
|
2023
|
-
}
|
|
2024
|
-
|
|
2025
|
-
var css$11 = {"root":"E55IS2"};
|
|
2026
|
-
|
|
2027
|
-
const Blocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.Blocker, () => [css$11.root], (cmpProps) => ({ renderSpinner: cmpProps.renderSpinner || (() => React__namespace.default.createElement(Spinner, null)) }));
|
|
1908
|
+
const Blocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.Blocker, () => [css$19.root], () => ({ renderSpinner: settings.blocker.renderSpinner }));
|
|
2028
1909
|
|
|
2029
1910
|
const VirtualList = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
2030
1911
|
const { listContainerRef, offsetY, handleScroll, estimatedHeight, scrollContainerRef, } = uuiCore.useVirtualList({
|
|
@@ -2038,7 +1919,7 @@ const VirtualList = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
2038
1919
|
const scrollShadows = uuiCore.useScrollShadows({ root: scrollContainerRef.current });
|
|
2039
1920
|
const renderRows = () => props.renderRows?.({
|
|
2040
1921
|
listContainerRef, estimatedHeight, offsetY, scrollShadows,
|
|
2041
|
-
}) || (React__namespace.createElement("div", { className: css$
|
|
1922
|
+
}) || (React__namespace.createElement("div", { className: css$1a.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
2042
1923
|
React__namespace.createElement("div", { ref: listContainerRef, role: props.role, style: { marginTop: offsetY } }, props.rows)));
|
|
2043
1924
|
const renderView = ({ style }) => (React__namespace.createElement(VirtualListView, { isLoading: props.isLoading, style: style, rawProps: props.rawProps }));
|
|
2044
1925
|
const scrollBarsRef = React__namespace.useCallback((scrollbars) => {
|
|
@@ -2046,7 +1927,7 @@ const VirtualList = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
2046
1927
|
return;
|
|
2047
1928
|
scrollContainerRef.current = scrollbars.container.firstChild;
|
|
2048
1929
|
}, []);
|
|
2049
|
-
return (React__namespace.createElement(ScrollBars, { cx: uuiCore.cx(css$
|
|
1930
|
+
return (React__namespace.createElement(ScrollBars, { cx: uuiCore.cx(css$1a.scrollContainer, props.cx, {
|
|
2050
1931
|
[uuiCore.uuiMarkers.scrolledLeft]: scrollShadows.horizontalLeft,
|
|
2051
1932
|
[uuiCore.uuiMarkers.scrolledRight]: scrollShadows.horizontalRight,
|
|
2052
1933
|
[uuiCore.uuiMarkers.scrolledTop]: scrollShadows.verticalTop,
|
|
@@ -2068,7 +1949,7 @@ const VirtualListView = /* @__PURE__ */React__namespace.forwardRef((props, ref)
|
|
|
2068
1949
|
React__namespace.createElement(Blocker, { isEnabled: props.isLoading })));
|
|
2069
1950
|
});
|
|
2070
1951
|
|
|
2071
|
-
var css$
|
|
1952
|
+
var css$18 = {"root":"wBEXJf"};
|
|
2072
1953
|
|
|
2073
1954
|
function CheckboxGroup(props) {
|
|
2074
1955
|
const currentValue = props.value || [];
|
|
@@ -2084,16 +1965,16 @@ function CheckboxGroup(props) {
|
|
|
2084
1965
|
}
|
|
2085
1966
|
props.onValueChange(newSelection);
|
|
2086
1967
|
};
|
|
2087
|
-
return (React__namespace.createElement("fieldset", { ref: props.forwardedRef, className: uuiCore.cx(css$
|
|
1968
|
+
return (React__namespace.createElement("fieldset", { ref: props.forwardedRef, className: uuiCore.cx(css$18.root, uuiCore.directionMode[direction], props.cx), ...props.rawProps }, props.items.map((i) => {
|
|
2088
1969
|
const { id, name, renderName, ...restItemProps } = i;
|
|
2089
1970
|
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 }));
|
|
2090
1971
|
})));
|
|
2091
1972
|
}
|
|
2092
1973
|
|
|
2093
|
-
var css
|
|
1974
|
+
var css$17 = {"root":"qVXluU","modal-blocker":"FeZ1Nj","modalBlocker":"FeZ1Nj","animateModalBlocker":"_6Y3xUq","modal":"UULFzK","modal-footer":"NgPq43","modalFooter":"NgPq43","border-top":"HRnBN5","borderTop":"HRnBN5","modal-header":"_79e3JN","modalHeader":"_79e3JN","border-bottom":"syNGdA","borderBottom":"syNGdA"};
|
|
2094
1975
|
|
|
2095
|
-
const ModalBlocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalBlocker, () => [css
|
|
2096
|
-
const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, () => [css
|
|
1976
|
+
const ModalBlocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalBlocker, () => [css$17.modalBlocker]);
|
|
1977
|
+
const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, () => [css$17.root, css$17.modal], (props) => {
|
|
2097
1978
|
const width = props.width;
|
|
2098
1979
|
const height = props.height || 'auto';
|
|
2099
1980
|
const maxHeight = uuiCore.isMobile() ? 'var(--uui-modals-mobile-max-height)' : (props.maxHeight || 'var(--uui-modals-max-height)');
|
|
@@ -2107,7 +1988,7 @@ const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, (
|
|
|
2107
1988
|
};
|
|
2108
1989
|
});
|
|
2109
1990
|
function ModalHeader(props) {
|
|
2110
|
-
return (React__namespace.default.createElement("div", { className: cx__default.default(css
|
|
1991
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default(css$17.root, css$17.modalHeader, 'uui-modal-header', props.borderBottom && css$17.borderBottom, props.cx), ...props.rawProps, style: {
|
|
2111
1992
|
...props.rawProps?.style,
|
|
2112
1993
|
} },
|
|
2113
1994
|
props.title && (React__namespace.default.createElement("div", { className: cx__default.default('uui-modal-title', 'uui-typography') }, props.title)),
|
|
@@ -2117,7 +1998,7 @@ function ModalHeader(props) {
|
|
|
2117
1998
|
React__namespace.default.createElement(IconButton, { rawProps: { 'aria-label': 'Close modal' }, icon: settings.modal.icons.closeIcon, onClick: props.onClose })))));
|
|
2118
1999
|
}
|
|
2119
2000
|
function ModalFooter(props) {
|
|
2120
|
-
return (React__namespace.default.createElement("div", { className: cx__default.default(css
|
|
2001
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default(css$17.root, css$17.modalFooter, 'uui-modal-footer', props.borderTop && css$17.borderTop, props.cx), ...props.rawProps, style: {
|
|
2121
2002
|
...props.rawProps?.style,
|
|
2122
2003
|
} }, props.children));
|
|
2123
2004
|
}
|
|
@@ -2280,7 +2161,7 @@ const TREE_SHAKEABLE_INIT = () => ({
|
|
|
2280
2161
|
});
|
|
2281
2162
|
const i18n = /* @__PURE__ */TREE_SHAKEABLE_INIT();
|
|
2282
2163
|
|
|
2283
|
-
var css$
|
|
2164
|
+
var css$16 = {"root":"r-d70Z","icon-wrapper":"_8ZgdD-","iconWrapper":"_8ZgdD-","action-wrapper":"u4deOz","actionWrapper":"u4deOz","action-link":"R-SvAa","actionLink":"R-SvAa","close-icon":"Qap3ZG","closeIcon":"Qap3ZG","main-path":"rdyFZW","mainPath":"rdyFZW","content":"aZvXQt","close-wrapper":"k3TafT","closeWrapper":"k3TafT","notification-wrapper":"zornVJ","notificationWrapper":"zornVJ","clear-button":"JUjSaR","clearButton":"JUjSaR"};
|
|
2284
2165
|
|
|
2285
2166
|
const NotificationCard = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
2286
2167
|
const notificationCardNode = React__namespace.default.useRef(null);
|
|
@@ -2293,15 +2174,15 @@ const NotificationCard = /* @__PURE__ */React__namespace.default.forwardRef((pro
|
|
|
2293
2174
|
notificationCardNode.current?.removeEventListener('mouseleave', props.refreshTimer);
|
|
2294
2175
|
};
|
|
2295
2176
|
}, []);
|
|
2296
|
-
return (React__namespace.default.createElement("div", { role: "alert", className: cx__default.default('uui-notification_card', props.color && `uui-color-${props.color}`, css$
|
|
2297
|
-
React__namespace.default.createElement("div", { className: css$
|
|
2298
|
-
props.icon && (React__namespace.default.createElement("div", { className: css$
|
|
2177
|
+
return (React__namespace.default.createElement("div", { role: "alert", className: cx__default.default('uui-notification_card', props.color && `uui-color-${props.color}`, css$16.root, props.cx), ref: notificationCardNode, ...props.rawProps },
|
|
2178
|
+
React__namespace.default.createElement("div", { className: css$16.mainPath },
|
|
2179
|
+
props.icon && (React__namespace.default.createElement("div", { className: css$16.iconWrapper },
|
|
2299
2180
|
React__namespace.default.createElement(uuiComponents.IconContainer, { size: 24, icon: props.icon }))),
|
|
2300
|
-
React__namespace.default.createElement("div", { className: css$
|
|
2181
|
+
React__namespace.default.createElement("div", { className: css$16.content },
|
|
2301
2182
|
props.children,
|
|
2302
|
-
props.actions && (React__namespace.default.createElement("div", { className: css$
|
|
2303
|
-
props.onClose && (React__namespace.default.createElement("div", { className: css$
|
|
2304
|
-
React__namespace.default.createElement(IconButton, { icon: settings.notificationCard.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$
|
|
2183
|
+
props.actions && (React__namespace.default.createElement("div", { className: css$16.actionWrapper }, props.actions.map((action) => (React__namespace.default.createElement(LinkButton, { key: action.name, caption: action.name, onClick: action.action, cx: css$16.actionLink, size: settings.notificationCard.sizes.action, rawProps: action.rawProps })))))),
|
|
2184
|
+
props.onClose && (React__namespace.default.createElement("div", { className: css$16.closeWrapper },
|
|
2185
|
+
React__namespace.default.createElement(IconButton, { icon: settings.notificationCard.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$16.closeIcon }))))));
|
|
2305
2186
|
});
|
|
2306
2187
|
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 })));
|
|
2307
2188
|
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 })));
|
|
@@ -2309,11 +2190,11 @@ const HintNotification = /* @__PURE__ */React__namespace.default.forwardRef((pro
|
|
|
2309
2190
|
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 })));
|
|
2310
2191
|
function ClearNotification() {
|
|
2311
2192
|
const uuiCtx = uuiCore.useUuiContext();
|
|
2312
|
-
return (React__namespace.default.createElement("div", { className: cx__default.default(css$
|
|
2193
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default(css$16.notificationWrapper, css$16.clearButton) },
|
|
2313
2194
|
React__namespace.default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => uuiCtx.uuiNotifications.clearAll() })));
|
|
2314
2195
|
}
|
|
2315
2196
|
|
|
2316
|
-
var css$
|
|
2197
|
+
var css$15 = {"footer":"yfBCW5"};
|
|
2317
2198
|
|
|
2318
2199
|
class ConfirmationModal extends React__namespace.Component {
|
|
2319
2200
|
render() {
|
|
@@ -2325,7 +2206,7 @@ class ConfirmationModal extends React__namespace.Component {
|
|
|
2325
2206
|
React__namespace.createElement(ModalWindow, { width: 420 },
|
|
2326
2207
|
React__namespace.createElement(ModalHeader, { borderBottom: true, title: this.props.caption, onClose: () => this.props.abort() }),
|
|
2327
2208
|
React__namespace.createElement(ScrollBars, null, bodyContent),
|
|
2328
|
-
React__namespace.createElement(ModalFooter, { cx: css$
|
|
2209
|
+
React__namespace.createElement(ModalFooter, { cx: css$15.footer },
|
|
2329
2210
|
this.props.hideCancelButton || (React__namespace.createElement(Button, { caption: i18n.form.modals.discardButton, onClick: () => this.props.success(false), fill: "outline", color: "secondary" })),
|
|
2330
2211
|
React__namespace.createElement(Button, { caption: i18n.form.modals.saveButton, onClick: () => this.props.success(true), color: "primary" })))));
|
|
2331
2212
|
}
|
|
@@ -2355,7 +2236,7 @@ function useReliableForceUpdate() {
|
|
|
2355
2236
|
return red[1];
|
|
2356
2237
|
}
|
|
2357
2238
|
|
|
2358
|
-
var css$
|
|
2239
|
+
var css$14 = {"root":"aIUkWA","timepicker-input":"Vmnt5a","timepickerInput":"Vmnt5a","ltr-always":"_0-xKHe","ltrAlways":"_0-xKHe"};
|
|
2359
2240
|
|
|
2360
2241
|
const uuiTimePicker = {
|
|
2361
2242
|
container: 'uui-timepicker-container',
|
|
@@ -2394,8 +2275,8 @@ function TimePickerBody(props) {
|
|
|
2394
2275
|
const minutesToSubtract = value.minute() % minutesStep === 0 ? minutesStep : value.minute() % minutesStep;
|
|
2395
2276
|
onMinutesChange(value.subtract(minutesToSubtract, 'm').minute());
|
|
2396
2277
|
};
|
|
2397
|
-
return (React__namespace.createElement("div", { className: uuiCore.cx(css$
|
|
2398
|
-
React__namespace.createElement("div", { className: css$
|
|
2278
|
+
return (React__namespace.createElement("div", { className: uuiCore.cx(css$14.root, uuiTimePicker.container, props.cx), ref: props.forwardedRef, ...props.rawProps },
|
|
2279
|
+
React__namespace.createElement("div", { className: css$14.ltrAlways },
|
|
2399
2280
|
React__namespace.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
2400
2281
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment hours' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$Q, onClick: () => onHoursChange(uuiDayjs.dayjs().set(props.value).add(1, 'h').hour()) }),
|
|
2401
2282
|
React__namespace.createElement(uuiComponents.NumericInput, { cx: uuiTimePicker.input, onValueChange: onHoursChange, value: +(uuiDayjs.dayjs()
|
|
@@ -2538,7 +2419,7 @@ function TimePicker(props) {
|
|
|
2538
2419
|
state.value && state.inputValue && saveTime(state.value);
|
|
2539
2420
|
};
|
|
2540
2421
|
const renderInput = (inputProps) => {
|
|
2541
|
-
return (React__namespace.default.createElement(TextInput, { ...inputProps, onClick: null, size: props.size, isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, cx: [css$
|
|
2422
|
+
return (React__namespace.default.createElement(TextInput, { ...inputProps, onClick: null, size: props.size, isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, cx: [css$14.root, css$14.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 }));
|
|
2542
2423
|
};
|
|
2543
2424
|
const renderBody = (bodyProps) => {
|
|
2544
2425
|
const { forwardedRef, onValueChange, ...timePickerBodyProps } = props;
|
|
@@ -2548,27 +2429,27 @@ function TimePicker(props) {
|
|
|
2548
2429
|
return (React__namespace.default.createElement(Dropdown, { renderTarget: (targetProps) => (props.renderTarget ? props.renderTarget(targetProps) : renderInput(targetProps)), renderBody: (bodyProps) => !props.isDisabled && !props.isReadonly && renderBody(bodyProps), onValueChange: !props.isDisabled && !props.isReadonly ? onToggle : null, value: state.isOpen, modifiers: [{ name: 'offset', options: { offset: [0, 6] } }], forwardedRef: props.forwardedRef }));
|
|
2549
2430
|
}
|
|
2550
2431
|
|
|
2551
|
-
var css$
|
|
2432
|
+
var css$13 = {"root":"dXrY3g"};
|
|
2552
2433
|
|
|
2553
2434
|
function applyInputAddonMods() {
|
|
2554
2435
|
return [
|
|
2555
|
-
css$
|
|
2436
|
+
css$13.root,
|
|
2556
2437
|
];
|
|
2557
2438
|
}
|
|
2558
2439
|
const InputAddon = /* @__PURE__ */uuiCore.withMods(uuiComponents.InputAddon, applyInputAddonMods);
|
|
2559
2440
|
|
|
2560
|
-
var css$
|
|
2441
|
+
var css$12 = {"root":"xbI--u"};
|
|
2561
2442
|
|
|
2562
2443
|
function applySliderMods() {
|
|
2563
|
-
return [css$
|
|
2444
|
+
return [css$12.root, 'uui-color-neutral'];
|
|
2564
2445
|
}
|
|
2565
2446
|
const Slider = /* @__PURE__ */uuiCore.withMods(uuiComponents.Slider, applySliderMods);
|
|
2566
2447
|
|
|
2567
|
-
var css$
|
|
2448
|
+
var css$11 = {"root":"mL-ZMs","tooltip":"vbKTDz"};
|
|
2568
2449
|
|
|
2569
2450
|
function applyRatingMods(mods) {
|
|
2570
2451
|
return [
|
|
2571
|
-
css$
|
|
2452
|
+
css$11.root,
|
|
2572
2453
|
`uui-size-${mods.size || settings.rating.sizes.default}`,
|
|
2573
2454
|
];
|
|
2574
2455
|
}
|
|
@@ -2578,7 +2459,7 @@ const Rating = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Rating,
|
|
|
2578
2459
|
Tooltip,
|
|
2579
2460
|
}));
|
|
2580
2461
|
|
|
2581
|
-
var css$
|
|
2462
|
+
var css$10 = {"root":"GhizQ4","container":"EAwcbO"};
|
|
2582
2463
|
|
|
2583
2464
|
const defaultFormat = 'MMM D, YYYY';
|
|
2584
2465
|
const valueFormat = 'YYYY-MM-DD';
|
|
@@ -2782,21 +2663,21 @@ function DatePickerHeader({ navIconLeft, navIconRight, value: { month, view }, o
|
|
|
2782
2663
|
}, [view, month]);
|
|
2783
2664
|
const disablePrev = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getPrevYearsList(month));
|
|
2784
2665
|
const disableNext = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getNextYearsList(month));
|
|
2785
|
-
return (React__namespace.createElement("div", { className: cx__default.default(css$
|
|
2666
|
+
return (React__namespace.createElement("div", { className: cx__default.default(css$10.root, uuiHeader.container, cx__default.default) },
|
|
2786
2667
|
React__namespace.createElement("header", { className: uuiHeader.headerNav },
|
|
2787
2668
|
React__namespace.createElement(Button, { icon: navIconLeft || settings.datePicker.icons.body.prevIcon, color: "secondary", fill: "ghost", cx: uuiHeader.navIconLeft, onClick: !isDisabled && (() => onLeftNavigationArrow()), isDisabled: disablePrev }),
|
|
2788
2669
|
React__namespace.createElement(Button, { caption: title, fill: "ghost", cx: uuiHeader.navTitle, onClick: !isDisabled && (() => onCaptionClick(view)) }),
|
|
2789
2670
|
React__namespace.createElement(Button, { icon: navIconRight || settings.datePicker.icons.body.nextIcon, color: "secondary", fill: "ghost", cx: uuiHeader.navIconRight, onClick: !isDisabled && (() => onRightNavigationArrow()), isDisabled: disableNext }))));
|
|
2790
2671
|
}
|
|
2791
2672
|
|
|
2792
|
-
var css
|
|
2673
|
+
var css$$ = {"root":"_8zTHRg"};
|
|
2793
2674
|
|
|
2794
2675
|
function applyDateSelectionMods() {
|
|
2795
|
-
return [css
|
|
2676
|
+
return [css$$.root, `uui-size-${settings.datePicker.sizes.body}`];
|
|
2796
2677
|
}
|
|
2797
2678
|
const Calendar = /* @__PURE__ */uuiCore.withMods(uuiComponents.Calendar, applyDateSelectionMods);
|
|
2798
2679
|
|
|
2799
|
-
var css$
|
|
2680
|
+
var css$_ = {"root":"KUBbjx"};
|
|
2800
2681
|
|
|
2801
2682
|
const uuiDatePickerBody = {
|
|
2802
2683
|
wrapper: 'uui-datepicker-body-wrapper',
|
|
@@ -2840,7 +2721,7 @@ function StatelessDatePickerBodyComp({ renderDay, isHoliday, cx: classes, filter
|
|
|
2840
2721
|
}
|
|
2841
2722
|
};
|
|
2842
2723
|
return (React__namespace.default.createElement("div", { ref: ref, className: uuiCore.cx(uuiDatePickerBodyBase.container, `uui-size-${settings.datePicker.sizes.body}`, classes), ...rawProps },
|
|
2843
|
-
React__namespace.default.createElement("div", { className: uuiCore.cx(css$
|
|
2724
|
+
React__namespace.default.createElement("div", { className: uuiCore.cx(css$_.root, uuiDatePickerBody.wrapper) },
|
|
2844
2725
|
React__namespace.default.createElement(DatePickerHeader, { value: {
|
|
2845
2726
|
view,
|
|
2846
2727
|
month,
|
|
@@ -2922,7 +2803,7 @@ function DatePickerComponent(props, ref) {
|
|
|
2922
2803
|
}
|
|
2923
2804
|
const DatePicker = /* @__PURE__ */React__namespace.default.forwardRef(DatePickerComponent);
|
|
2924
2805
|
|
|
2925
|
-
var css$
|
|
2806
|
+
var css$Z = {"date-input":"tzkHsk","dateInput":"tzkHsk","root":"ANmkSw","separator":"Xy-z61","mode-form":"XSP1Kd","modeForm":"XSP1Kd","mode-cell":"bSU-AA","modeCell":"bSU-AA"};
|
|
2926
2807
|
|
|
2927
2808
|
const RangeDatePickerInput = /* @__PURE__ */React.forwardRef(({ isDisabled, isInvalid, isReadonly, size, disableClear, rawProps, value, inFocus, format, onValueChange, onFocusInput, onBlurInput, onClick, getPlaceholder, filter, onKeyDown, id, cx: classes, }, ref) => {
|
|
2928
2809
|
const [inputValue, setInputValue] = React.useState(toCustomDateRangeFormat(value, format));
|
|
@@ -2965,15 +2846,15 @@ const RangeDatePickerInput = /* @__PURE__ */React.forwardRef(({ isDisabled, isIn
|
|
|
2965
2846
|
const clearAllowed = !disableClear && inputValue.from && inputValue.to;
|
|
2966
2847
|
return (
|
|
2967
2848
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
2968
|
-
React__namespace.default.createElement("div", { ref: ref, className: uuiCore.cx(`uui-size-${size || settings.rangeDatePicker.sizes.default}`, 'uui-range-date-picker', classes, css$
|
|
2969
|
-
React__namespace.default.createElement(TextInput, { icon: settings.rangeDatePicker.icons.input.calendarIcon, cx: uuiCore.cx(css$
|
|
2970
|
-
React__namespace.default.createElement("div", { className: css$
|
|
2971
|
-
React__namespace.default.createElement(TextInput, { cx: uuiCore.cx(css$
|
|
2849
|
+
React__namespace.default.createElement("div", { ref: ref, className: uuiCore.cx(`uui-size-${size || settings.rangeDatePicker.sizes.default}`, 'uui-range-date-picker', classes, css$Z.root, isDisabled && uuiCore.uuiMod.disabled, isReadonly && uuiCore.uuiMod.readonly, isInvalid && uuiCore.uuiMod.invalid, inFocus && uuiCore.uuiMod.focus), onKeyDown: onKeyDown },
|
|
2850
|
+
React__namespace.default.createElement(TextInput, { icon: settings.rangeDatePicker.icons.input.calendarIcon, cx: uuiCore.cx(css$Z.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 }),
|
|
2851
|
+
React__namespace.default.createElement("div", { className: css$Z.separator }),
|
|
2852
|
+
React__namespace.default.createElement(TextInput, { cx: uuiCore.cx(css$Z.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 ? () => {
|
|
2972
2853
|
onValueChange(defaultRangeValue);
|
|
2973
2854
|
} : 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 })));
|
|
2974
2855
|
});
|
|
2975
2856
|
|
|
2976
|
-
var css$
|
|
2857
|
+
var css$Y = {"root":"_1-2ivJ"};
|
|
2977
2858
|
|
|
2978
2859
|
const uuiPresets = {
|
|
2979
2860
|
container: 'uui-presets-container',
|
|
@@ -2988,12 +2869,12 @@ const getPresets = (presets) => {
|
|
|
2988
2869
|
})).sort((a, b) => a.order - b.order);
|
|
2989
2870
|
};
|
|
2990
2871
|
function CalendarPresets(props) {
|
|
2991
|
-
return (React__namespace.createElement("div", { ref: props.forwardedRef, className: uuiCore.cx(uuiPresets.container, css$
|
|
2872
|
+
return (React__namespace.createElement("div", { ref: props.forwardedRef, className: uuiCore.cx(uuiPresets.container, css$Y.root, props.cx), ...props.rawProps },
|
|
2992
2873
|
React__namespace.createElement("div", { className: uuiPresets.header }, "Presets"),
|
|
2993
2874
|
getPresets(props.presets).map((item) => (React__namespace.createElement(LinkButton, { key: item.key, caption: item.name, onClick: () => props.onPresetSet(item), size: settings.rangeDatePicker.sizes.preset })))));
|
|
2994
2875
|
}
|
|
2995
2876
|
|
|
2996
|
-
var css$
|
|
2877
|
+
var css$X = {"root":"C6kzmJ","container":"M59ghC","day-selection":"HBi--o","daySelection":"HBi--o","from-picker":"Qzb0WQ","fromPicker":"Qzb0WQ","to-picker":"q-pk67","toPicker":"q-pk67","bodes-wrapper":"qbNc-t","bodesWrapper":"qbNc-t","blocker":"ntKRHH"};
|
|
2997
2878
|
|
|
2998
2879
|
const uuiRangeDatePickerBody = {
|
|
2999
2880
|
inRange: 'uui-range-datepicker-in-range',
|
|
@@ -3134,21 +3015,21 @@ function RangeDatePickerBodyComp(props, ref) {
|
|
|
3134
3015
|
});
|
|
3135
3016
|
}, presets: presets })));
|
|
3136
3017
|
};
|
|
3137
|
-
return (React__namespace.default.createElement("div", { ref: ref, className: uuiCore.cx(css$
|
|
3138
|
-
React__namespace.default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$
|
|
3018
|
+
return (React__namespace.default.createElement("div", { ref: ref, className: uuiCore.cx(css$X.root, uuiDatePickerBodyBase.container, props.cx), ...props.rawProps },
|
|
3019
|
+
React__namespace.default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$X.daySelection, css$X.container], alignItems: "top" },
|
|
3139
3020
|
React__namespace.default.createElement(FlexCell, { width: "auto" },
|
|
3140
3021
|
React__namespace.default.createElement(FlexRow, null,
|
|
3141
|
-
React__namespace.default.createElement(FlexRow, { cx: css$
|
|
3142
|
-
React__namespace.default.createElement(StatelessDatePickerBody, { key: "date-picker-body-left", cx: uuiCore.cx(css$
|
|
3022
|
+
React__namespace.default.createElement(FlexRow, { cx: css$X.bodesWrapper, alignItems: "top" },
|
|
3023
|
+
React__namespace.default.createElement(StatelessDatePickerBody, { key: "date-picker-body-left", cx: uuiCore.cx(css$X.fromPicker), ...from, onValueChange: (v) => onBodyValueChange(v, 'from'), onMonthChange: (m) => {
|
|
3143
3024
|
setMonth(m);
|
|
3144
3025
|
}, onViewChange: (v) => setView(v), filter: props.filter, isHoliday: props.isHoliday, renderDay: props.renderDay || renderDay, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'to' }),
|
|
3145
|
-
React__namespace.default.createElement(StatelessDatePickerBody, { key: "date-picker-body-right", cx: uuiCore.cx(css$
|
|
3026
|
+
React__namespace.default.createElement(StatelessDatePickerBody, { key: "date-picker-body-right", cx: uuiCore.cx(css$X.toPicker), ...to, onValueChange: (v) => onBodyValueChange(v, 'to'), onMonthChange: (m) => {
|
|
3146
3027
|
setMonth(m.subtract(1, 'month'));
|
|
3147
3028
|
}, onViewChange: (v) => setView(v), filter: props.filter, renderDay: props.renderDay || renderDay, isHoliday: props.isHoliday, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'from' }),
|
|
3148
3029
|
view !== 'DAY_SELECTION' && (React__namespace.default.createElement("div", { style: {
|
|
3149
3030
|
left: activeMonth === 'from' ? '50%' : undefined,
|
|
3150
3031
|
right: activeMonth === 'to' ? '50%' : undefined,
|
|
3151
|
-
}, className: css$
|
|
3032
|
+
}, className: css$X.blocker }))),
|
|
3152
3033
|
props.presets && renderPresets(props.presets)),
|
|
3153
3034
|
props.renderFooter && props.renderFooter()))));
|
|
3154
3035
|
}
|
|
@@ -3168,7 +3049,7 @@ const getDayCX = (day, selectedDate) => {
|
|
|
3168
3049
|
return [uuiCore.cx(inRange && uuiRangeDatePickerBody.inRange, isFirst && uuiRangeDatePickerBody.firstDayInRangeWrapper, !inRange && isFirst && uuiRangeDatePickerBody.lastDayInRangeWrapper, isLast && uuiRangeDatePickerBody.lastDayInRangeWrapper, !inRange && isLast && uuiRangeDatePickerBody.firstDayInRangeWrapper, (dayValue === fromValue || dayValue === toValue) && uuiComponents.uuiDaySelection.selectedDay)];
|
|
3169
3050
|
};
|
|
3170
3051
|
|
|
3171
|
-
var css$
|
|
3052
|
+
var css$W = {"dropdown-container":"M-PAM5","dropdownContainer":"M-PAM5"};
|
|
3172
3053
|
|
|
3173
3054
|
const modifiers = [{
|
|
3174
3055
|
name: 'offset',
|
|
@@ -3212,7 +3093,7 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
3212
3093
|
}
|
|
3213
3094
|
};
|
|
3214
3095
|
const renderBody = (renderProps) => {
|
|
3215
|
-
return (React__namespace.default.createElement(DropdownContainer, { ...renderProps, cx: cx__default.default(css$
|
|
3096
|
+
return (React__namespace.default.createElement(DropdownContainer, { ...renderProps, cx: cx__default.default(css$W.dropdownContainer), shards: [targetRef], returnFocus: true },
|
|
3216
3097
|
React__namespace.default.createElement(FlexRow, null,
|
|
3217
3098
|
React__namespace.default.createElement(RangeDatePickerBody, { cx: cx__default.default(props.bodyCx), value: {
|
|
3218
3099
|
selectedDate: _value,
|
|
@@ -3236,30 +3117,30 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
3236
3117
|
}
|
|
3237
3118
|
const RangeDatePicker = /* @__PURE__ */React__namespace.default.forwardRef(RangeDatePickerComponent);
|
|
3238
3119
|
|
|
3239
|
-
var css$
|
|
3120
|
+
var css$V = {"root":"yXuyET","blocker":"N5dd1r","marker":"yM2cRE","top":"lcWVdB","bottom":"jimZFF","left":"qH1C4H","right":"kQGIw1","inside":"ne-ILw"};
|
|
3240
3121
|
|
|
3241
3122
|
function DropMarker(props) {
|
|
3242
3123
|
return props.isDndInProgress
|
|
3243
3124
|
? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
3244
|
-
props.enableBlocker && React__namespace.createElement("div", { className: css$
|
|
3125
|
+
props.enableBlocker && React__namespace.createElement("div", { className: css$V.blocker }),
|
|
3245
3126
|
React__namespace.createElement("div", { className: cx__default.default([
|
|
3246
|
-
css$
|
|
3247
|
-
css$
|
|
3248
|
-
css$
|
|
3127
|
+
css$V.root,
|
|
3128
|
+
css$V.marker,
|
|
3129
|
+
css$V[props.position],
|
|
3249
3130
|
props?.cx,
|
|
3250
3131
|
]) })))
|
|
3251
3132
|
: null;
|
|
3252
3133
|
}
|
|
3253
3134
|
|
|
3254
|
-
var css$
|
|
3135
|
+
var css$U = {"root":"-uB4Nf","line-height":"WMU0mq","lineHeight":"WMU0mq","font-size":"CXtxWV","fontSize":"CXtxWV"};
|
|
3255
3136
|
|
|
3256
3137
|
function applyTextMods(mods) {
|
|
3257
3138
|
return [
|
|
3258
|
-
css$
|
|
3139
|
+
css$U.root,
|
|
3259
3140
|
'uui-text',
|
|
3260
3141
|
`uui-size-${mods.size || settings.text.sizes.default}`,
|
|
3261
|
-
(mods.size !== 'none' || mods.lineHeight) && css$
|
|
3262
|
-
(mods.size !== 'none' || mods.fontSize) && css$
|
|
3142
|
+
(mods.size !== 'none' || mods.lineHeight) && css$U.lineHeight,
|
|
3143
|
+
(mods.size !== 'none' || mods.fontSize) && css$U.fontSize,
|
|
3263
3144
|
`uui-color-${mods.color || 'primary'}`,
|
|
3264
3145
|
`uui-font-weight-${mods.fontWeight || '400'}`,
|
|
3265
3146
|
`uui-font-style-${mods.fontStyle || 'normal'}`,
|
|
@@ -3278,26 +3159,9 @@ const Text = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Text, appl
|
|
|
3278
3159
|
};
|
|
3279
3160
|
});
|
|
3280
3161
|
|
|
3281
|
-
var css$L = {"root":"iBJD1U","loading-word":"nl6Jr6","loadingWord":"nl6Jr6","animated-loading":"jcXHOz","animatedLoading":"jcXHOz","skeleton_loading":"xiGFmD","skeletonLoading":"xiGFmD"};
|
|
3282
|
-
|
|
3283
|
-
const TextPlaceholder = (props) => {
|
|
3284
|
-
const pattern = ' ';
|
|
3285
|
-
const text = React__namespace.useMemo(() => {
|
|
3286
|
-
const words = [];
|
|
3287
|
-
for (let i = 0; i < (props.wordsCount || 1); i++) {
|
|
3288
|
-
const lengthWord = Math.floor(Math.random() * 10 + 8);
|
|
3289
|
-
words.push(pattern.repeat(lengthWord));
|
|
3290
|
-
}
|
|
3291
|
-
return words;
|
|
3292
|
-
}, [props.wordsCount]);
|
|
3293
|
-
return (React__namespace.createElement("div", { "aria-busy": true, className: cx__default.default(css$L.root, 'uui-text-placeholder'), ...props.rawProps }, text.map((it, index) => (React__namespace.createElement("span", { key: index, className: cx__default.default([
|
|
3294
|
-
props.cx, css$L.loadingWord, !props.isNotAnimated && css$L.animatedLoading,
|
|
3295
|
-
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
3296
|
-
};
|
|
3297
|
-
|
|
3298
3162
|
const RichTextView = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.RichTextView, (mods) => ['uui-typography', `uui-typography-size-${mods.size || settings.richTextView.sizes.default}`]);
|
|
3299
3163
|
|
|
3300
|
-
var css$
|
|
3164
|
+
var css$T = {"modal":"-epZc3","search-wrapper":"tkQlgk","searchWrapper":"tkQlgk","no-data":"oGIrZd","noData":"oGIrZd","type-search-to-load-size-24":"_60e06z","typeSearchToLoadSize24":"_60e06z"};
|
|
3301
3165
|
|
|
3302
3166
|
class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
3303
3167
|
constructor() {
|
|
@@ -3316,7 +3180,7 @@ class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
|
3316
3180
|
});
|
|
3317
3181
|
}
|
|
3318
3182
|
if (this.props.minCharsToSearch && search.length < this.props.minCharsToSearch) {
|
|
3319
|
-
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$
|
|
3183
|
+
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$T.noData, grow: 1, textAlign: "center" },
|
|
3320
3184
|
React__namespace.default.createElement(Text, { size: this.props.searchSize }, i18n.dataPickerBody.typeSearchToLoadMessage)));
|
|
3321
3185
|
}
|
|
3322
3186
|
if (this.props.rows.length === 0) {
|
|
@@ -3331,24 +3195,24 @@ class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
|
3331
3195
|
}
|
|
3332
3196
|
// Default no record found message for 'NOT_FOUND' and "NO_RECORDS" reason
|
|
3333
3197
|
// TODO: make separate messages for 'NOT_FOUND' and "NO_RECORDS" reason
|
|
3334
|
-
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$
|
|
3198
|
+
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$T.noData, grow: 1, textAlign: "center" },
|
|
3335
3199
|
React__namespace.default.createElement(Text, { size: this.props.searchSize }, i18n.dataPickerBody.noRecordsMessage)));
|
|
3336
3200
|
}
|
|
3337
3201
|
}
|
|
3338
3202
|
render() {
|
|
3339
3203
|
const searchSize = this.getSearchSize();
|
|
3340
3204
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
3341
|
-
this.showSearch() && (React__namespace.default.createElement("div", { key: "search", className: uuiCore.cx(css$
|
|
3205
|
+
this.showSearch() && (React__namespace.default.createElement("div", { key: "search", className: uuiCore.cx(css$T.searchWrapper, 'uui-picker_input-body-search') },
|
|
3342
3206
|
React__namespace.default.createElement(uuiComponents.FlexCell, { grow: 1 },
|
|
3343
3207
|
React__namespace.default.createElement(SearchInput, { ref: this.searchRef, placeholder: i18n.dataPickerBody.searchPlaceholder, ...this.searchLens.toProps(), onKeyDown: this.searchKeyDown, size: searchSize, debounceDelay: this.props.searchDebounceDelay, rawProps: { dir: 'auto' } })))),
|
|
3344
|
-
React__namespace.default.createElement(FlexRow, { key: "body", cx: uuiCore.cx('uui-picker_input-body', css$
|
|
3208
|
+
React__namespace.default.createElement(FlexRow, { key: "body", cx: uuiCore.cx('uui-picker_input-body', css$T[this.props.editMode], css$T[this.props.selectionMode]), rawProps: { style: { maxHeight: this.props.maxHeight, maxWidth: this.props.maxWidth } } }, this.props.rows.length === 0 && this.props.value.topIndex === 0
|
|
3345
3209
|
// We need to also ensure that topIndex === 0, because we can have state were there is no rows but topIndex > 0, in case when we scrolled lover than we have rows
|
|
3346
3210
|
// we fix this state on next render and shouldn't show empty state.
|
|
3347
3211
|
? this.renderEmpty() : (React__namespace.default.createElement(VirtualList, { ...this.lens.toProps(), rows: this.props.rows, rawProps: this.props.rawProps, rowsCount: this.props.rowsCount, isLoading: this.props.isReloading })))));
|
|
3348
3212
|
}
|
|
3349
3213
|
}
|
|
3350
3214
|
|
|
3351
|
-
var css$
|
|
3215
|
+
var css$S = {"footer":"aHp1QJ"};
|
|
3352
3216
|
|
|
3353
3217
|
function DataPickerFooterImpl(props) {
|
|
3354
3218
|
const { search, clearSelection, view, showSelected, selectionMode, isSearchTooShort, } = props;
|
|
@@ -3362,7 +3226,7 @@ function DataPickerFooterImpl(props) {
|
|
|
3362
3226
|
const isSearching = search?.length;
|
|
3363
3227
|
const hideFooter = (rowsCount === 0 && !hasSelection) || isSearching || (isSinglePicker && props.disableClear);
|
|
3364
3228
|
const showClear = !props.disableClear && (isSinglePicker ? true : (!view.selectAll || hasSelection));
|
|
3365
|
-
return !hideFooter && (React__namespace.default.createElement(FlexRow, { cx: css$
|
|
3229
|
+
return !hideFooter && (React__namespace.default.createElement(FlexRow, { cx: css$S.footer },
|
|
3366
3230
|
!isSinglePicker && !isSearchTooShort && ( // Show this switch only for multi mode and when some rows rendered
|
|
3367
3231
|
React__namespace.default.createElement(Switch, { size: settings.pickerInput.sizes.body.footerSwitchMap[props.size], value: showSelected.value, isDisabled: !hasSelection, onValueChange: showSelected.onValueChange, label: i18n.pickerInput.showOnlySelectedLabel })),
|
|
3368
3232
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
@@ -3374,17 +3238,159 @@ function DataPickerFooterImpl(props) {
|
|
|
3374
3238
|
}
|
|
3375
3239
|
const DataPickerFooter = /* @__PURE__ */React__namespace.default.memo(DataPickerFooterImpl);
|
|
3376
3240
|
|
|
3377
|
-
var css$
|
|
3241
|
+
var css$R = {"header":"Xh3NOh","title":"jgH9TH","close":"wiAN3Y"};
|
|
3378
3242
|
|
|
3379
3243
|
const DataPickerHeaderImpl = (props) => {
|
|
3380
3244
|
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
3381
|
-
return (React__namespace.default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: [css$
|
|
3382
|
-
React__namespace.default.createElement("div", { className: css$
|
|
3383
|
-
React__namespace.default.createElement(IconButton, { icon: settings.pickerInput.icons.body.pickerBodyMobileHeaderCloseIcon, onClick: () => props.close?.(), cx: css$
|
|
3245
|
+
return (React__namespace.default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: [css$R.header, 'uui-picker_input-body-header'] },
|
|
3246
|
+
React__namespace.default.createElement("div", { className: css$R.title }, title),
|
|
3247
|
+
React__namespace.default.createElement(IconButton, { icon: settings.pickerInput.icons.body.pickerBodyMobileHeaderCloseIcon, onClick: () => props.close?.(), cx: css$R.close })));
|
|
3384
3248
|
};
|
|
3385
3249
|
const DataPickerHeader = /* @__PURE__ */React__namespace.default.memo(DataPickerHeaderImpl);
|
|
3386
3250
|
|
|
3387
|
-
var css$
|
|
3251
|
+
var css$Q = {"root":"qmChf4"};
|
|
3252
|
+
|
|
3253
|
+
const AvatarStack = /* @__PURE__ */uuiCore.withMods(uuiComponents.AvatarStack, () => [css$Q.root]);
|
|
3254
|
+
|
|
3255
|
+
var css$P = {"root":"y4qe6c"};
|
|
3256
|
+
|
|
3257
|
+
const DEFAULT_FILL = 'solid';
|
|
3258
|
+
function applyBadgeMods(mods) {
|
|
3259
|
+
return [
|
|
3260
|
+
'uui-badge',
|
|
3261
|
+
css$P.root,
|
|
3262
|
+
`uui-size-${mods.size || settings.badge.sizes.default}`,
|
|
3263
|
+
`uui-fill-${mods.fill || DEFAULT_FILL}`,
|
|
3264
|
+
`uui-color-${mods.color || 'info'}`,
|
|
3265
|
+
];
|
|
3266
|
+
}
|
|
3267
|
+
const Badge = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
3268
|
+
const styles = [applyBadgeMods(props), props.cx];
|
|
3269
|
+
const DropdownIcon = props.dropdownIcon ? props.dropdownIcon : settings.badge.icons.dropdownIcon;
|
|
3270
|
+
return (React__namespace.default.createElement(uuiComponents.Clickable, { ...props, rawProps: {
|
|
3271
|
+
'aria-haspopup': props.isDropdown,
|
|
3272
|
+
'aria-expanded': props.isOpen,
|
|
3273
|
+
...props.rawProps,
|
|
3274
|
+
}, cx: styles, ref: ref },
|
|
3275
|
+
(props.indicator && props.fill === 'outline') && (React__namespace.default.createElement("div", { className: "uui-indicator" })),
|
|
3276
|
+
props.icon && props.iconPosition !== 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
3277
|
+
props.caption && (React__namespace.default.createElement("div", { className: uuiCore.uuiElement.caption }, props.caption)),
|
|
3278
|
+
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 })),
|
|
3279
|
+
props.icon && props.iconPosition === 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
3280
|
+
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
3281
|
+
});
|
|
3282
|
+
|
|
3283
|
+
var css$O = {"root":"lkjETM"};
|
|
3284
|
+
|
|
3285
|
+
function applyTagMods(props) {
|
|
3286
|
+
return [
|
|
3287
|
+
css$O.root,
|
|
3288
|
+
`uui-size-${props.size || settings.tag.sizes.default}`,
|
|
3289
|
+
`uui-color-${props.color || 'neutral'}`,
|
|
3290
|
+
`uui-fill-${props.fill || 'solid'}`,
|
|
3291
|
+
'uui-tag',
|
|
3292
|
+
];
|
|
3293
|
+
}
|
|
3294
|
+
const Tag = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
3295
|
+
const styles = [applyTagMods(props), props.cx];
|
|
3296
|
+
const ClearIcon = props.clearIcon ? props.clearIcon : settings.tag.icons.clearIcon;
|
|
3297
|
+
const DropdownIcon = props.dropdownIcon ? props.dropdownIcon : settings.tag.icons.dropdownIcon;
|
|
3298
|
+
return (React__namespace.default.createElement(uuiComponents.Clickable, { ...props, rawProps: {
|
|
3299
|
+
'aria-haspopup': props.isDropdown,
|
|
3300
|
+
'aria-expanded': props.isOpen,
|
|
3301
|
+
...props.rawProps,
|
|
3302
|
+
}, cx: styles, ref: ref },
|
|
3303
|
+
props.icon && props.iconPosition !== 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
3304
|
+
props.caption && (React__namespace.default.createElement("div", { className: uuiCore.uuiElement.caption }, props.caption)),
|
|
3305
|
+
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 })),
|
|
3306
|
+
props.icon && props.iconPosition === 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
3307
|
+
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
3308
|
+
props.onClear && !props.isDisabled && (React__namespace.default.createElement(uuiComponents.IconContainer, { cx: uuiCore.uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
3309
|
+
});
|
|
3310
|
+
|
|
3311
|
+
var css$N = {"root":"fQb-Dw","page":"FD3Pjt","spacer":"ZIxNHJ","mode-ghost":"in7osj","modeGhost":"in7osj"};
|
|
3312
|
+
|
|
3313
|
+
function Paginator(props) {
|
|
3314
|
+
const renderPaginator = (params) => (React__namespace.default.createElement("nav", { role: "navigation", className: cx__default.default(css$N.root, 'uui-paginator', `uui-size-${props.size || settings.paginator.sizes.default}`), ...params.rawProps },
|
|
3315
|
+
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" }),
|
|
3316
|
+
params.pages.map((page, index) => {
|
|
3317
|
+
if (page.type === 'spacer') {
|
|
3318
|
+
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$N.spacer, css$N.page), size: props.size || settings.paginator.sizes.default, key: `${index}_spacer`, caption: "...", fill: "ghost", color: "secondary", tabIndex: -1, isDisabled: props.isDisabled }));
|
|
3319
|
+
}
|
|
3320
|
+
else {
|
|
3321
|
+
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$N[`mode-${!page.isActive && 'ghost'}`], css$N.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 }));
|
|
3322
|
+
}
|
|
3323
|
+
}),
|
|
3324
|
+
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" })));
|
|
3325
|
+
return React__namespace.default.createElement(uuiComponents.Paginator, { ...props, render: renderPaginator });
|
|
3326
|
+
}
|
|
3327
|
+
|
|
3328
|
+
var css$M = {"root":"-smroZ","progress-bar":"FfgO5p","progressBar":"FfgO5p","progressBar-indeterminate":"tK3xSU","progressBarIndeterminate":"tK3xSU","size-12":"JSOCnj","size12":"JSOCnj","size-18":"lsvm-L","size18":"lsvm-L","size-24":"ZbBI1e","size24":"ZbBI1e"};
|
|
3329
|
+
|
|
3330
|
+
const IndeterminateBar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
3331
|
+
return (React__namespace.createElement("div", { ref: ref, className: cx__default.default('uui-indeterminate_bar', props.cx, css$M.root, css$M[`size-${props.size || 12}`]) },
|
|
3332
|
+
React__namespace.createElement("div", { className: cx__default.default(css$M.progressBar) })));
|
|
3333
|
+
});
|
|
3334
|
+
|
|
3335
|
+
var css$L = {"root":"_7mxkL8","striped":"yXqNQC","animate-stripes":"TIiRpU","animateStripes":"TIiRpU","size-12":"hgoJva","size12":"hgoJva","size-18":"eF6bdw","size18":"eF6bdw","size-24":"_5CgMyp","size24":"_5CgMyp"};
|
|
3336
|
+
|
|
3337
|
+
const DEFAULT_SIZE = '12';
|
|
3338
|
+
function applyProgressBarMods(mods) {
|
|
3339
|
+
const size = mods.size || DEFAULT_SIZE;
|
|
3340
|
+
return [
|
|
3341
|
+
css$L.root,
|
|
3342
|
+
css$L[`size-${size}`],
|
|
3343
|
+
mods.striped && css$L.striped,
|
|
3344
|
+
];
|
|
3345
|
+
}
|
|
3346
|
+
const ProgressBar = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.ProgressBar, applyProgressBarMods, (props) => ({
|
|
3347
|
+
hideLabel: props.hideLabel || props.striped,
|
|
3348
|
+
}));
|
|
3349
|
+
|
|
3350
|
+
var css$K = {"root":"_6ZNAdU"};
|
|
3351
|
+
|
|
3352
|
+
const IndicatorBar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
3353
|
+
const { progress } = props;
|
|
3354
|
+
return progress || progress === 0 ? (React__namespace.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx__default.default(css$K.root, props.cx), hideLabel: true })) : (React__namespace.createElement(IndeterminateBar, { ref: ref, cx: cx__default.default(css$K.root, props.cx) }));
|
|
3355
|
+
});
|
|
3356
|
+
|
|
3357
|
+
var css$J = {"root":"-tXIEB"};
|
|
3358
|
+
|
|
3359
|
+
const StatusIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
3360
|
+
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
3361
|
+
css$J.root,
|
|
3362
|
+
`uui-size-${props.size || settings.statusIndicator.sizes.default}`,
|
|
3363
|
+
'uui-status_indicator',
|
|
3364
|
+
`uui-color-${props.color || 'neutral'}`,
|
|
3365
|
+
`uui-fill-${props.fill || 'solid'}`,
|
|
3366
|
+
props.cx,
|
|
3367
|
+
]) },
|
|
3368
|
+
React__namespace.default.createElement("div", { className: "uui-status_indicator-dot" }),
|
|
3369
|
+
React__namespace.default.createElement("p", { className: "uui-status_indicator-caption" }, props.caption)));
|
|
3370
|
+
});
|
|
3371
|
+
|
|
3372
|
+
var css$I = {"drag-handle":"Byw5m7","dragHandle":"Byw5m7","icon-container":"ptrnrS","iconContainer":"ptrnrS"};
|
|
3373
|
+
|
|
3374
|
+
function DataRowAddons(props) {
|
|
3375
|
+
const row = props.rowProps;
|
|
3376
|
+
const getIndent = () => {
|
|
3377
|
+
return (row.indent - 1) * settings.dataTable.sizes.body.indentUnitMap[props.size || settings.dataTable.sizes.body.row];
|
|
3378
|
+
};
|
|
3379
|
+
const getWidth = () => {
|
|
3380
|
+
return settings.dataTable.sizes.body.indentWidthMap[props.size || settings.dataTable.sizes.body.row];
|
|
3381
|
+
};
|
|
3382
|
+
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
3383
|
+
row.dnd?.srcData && React__namespace.default.createElement(uuiComponents.DragHandle, { key: "dh", cx: css$I.dragHandle, rawProps: { ...props.eventHandlers } }),
|
|
3384
|
+
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 })),
|
|
3385
|
+
row.indent > 0 && (React__namespace.default.createElement("div", { key: "fold", className: cx__default.default('uui-dr_addons-indent', `uui-size-${props.size}`), style: { marginInlineStart: getIndent(), width: getWidth() } }, row.isFoldable && (React__namespace.default.createElement(uuiComponents.IconContainer, { rawProps: {
|
|
3386
|
+
'aria-label': row.isFolded ? 'Unfold' : 'Fold',
|
|
3387
|
+
role: 'button',
|
|
3388
|
+
}, key: "icon", icon: settings.dataTable.icons.body.foldingIcon, cx: [
|
|
3389
|
+
uuiCore.uuiElement.foldingArrow, uuiCore.uuiMarkers.clickable, css$I.iconContainer,
|
|
3390
|
+
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row), size: settings.dataTable.sizes.body.iconMap[props.size || settings.dataTable.sizes.body.row] }))))));
|
|
3391
|
+
}
|
|
3392
|
+
|
|
3393
|
+
var css$H = {"root":"-N3CWw","align-widgets-top":"DQPaMj","alignWidgetsTop":"DQPaMj","align-widgets-center":"OVlRb8","alignWidgetsCenter":"OVlRb8","icon-container":"CBPZU-","iconContainer":"CBPZU-","loading-cell":"BCUogW","loadingCell":"BCUogW","content-wrapper":"xKZJOx","contentWrapper":"xKZJOx","render-item":"kk8Szx","renderItem":"kk8Szx","icon-wrapper":"GasdAg","iconWrapper":"GasdAg","icon-default":"Xtb-p6","iconDefault":"Xtb-p6","selected-mark":"_8HbyrB","selectedMark":"_8HbyrB"};
|
|
3388
3394
|
|
|
3389
3395
|
function DataPickerCell(props) {
|
|
3390
3396
|
const ref = React__namespace.useRef();
|
|
@@ -3392,8 +3398,7 @@ function DataPickerCell(props) {
|
|
|
3392
3398
|
if (props.rowProps.isLoading) {
|
|
3393
3399
|
content = (
|
|
3394
3400
|
// remove `css.loadingCell` after` removing `margin: 0 3px 3px 0` from `TextPlaceholder` `loadingWord` class styles.
|
|
3395
|
-
React__namespace.createElement(Text, { key: "t", size: props.size, cx: css$H.loadingCell },
|
|
3396
|
-
React__namespace.createElement(TextPlaceholder, null)));
|
|
3401
|
+
React__namespace.createElement(Text, { key: "t", size: props.size, cx: css$H.loadingCell }, settings.pickerInput.renderPlaceholder()));
|
|
3397
3402
|
}
|
|
3398
3403
|
else if (props.rowProps.isUnknown) {
|
|
3399
3404
|
content = (React__namespace.createElement(Text, { key: "t", size: props.size }, "Unknown"));
|
|
@@ -3425,7 +3430,7 @@ function DataPickerCell(props) {
|
|
|
3425
3430
|
getWrappedContent()));
|
|
3426
3431
|
}
|
|
3427
3432
|
|
|
3428
|
-
var css$G = {"picker-row":"
|
|
3433
|
+
var css$G = {"picker-row":"msc37k","pickerRow":"msc37k"};
|
|
3429
3434
|
|
|
3430
3435
|
class DataPickerRow extends React__namespace.Component {
|
|
3431
3436
|
constructor() {
|
|
@@ -3439,7 +3444,7 @@ class DataPickerRow extends React__namespace.Component {
|
|
|
3439
3444
|
}
|
|
3440
3445
|
}
|
|
3441
3446
|
|
|
3442
|
-
var css$F = {"done":"
|
|
3447
|
+
var css$F = {"done":"hJW-s8","container":"alaYb-"};
|
|
3443
3448
|
|
|
3444
3449
|
const PickerBodyMobileView = (props) => {
|
|
3445
3450
|
const isMobileView = uuiCore.isMobile();
|
|
@@ -3516,7 +3521,7 @@ const getHighlightedSearchMatches = (str, search) => {
|
|
|
3516
3521
|
return getDecoratedText(str, ranges);
|
|
3517
3522
|
};
|
|
3518
3523
|
|
|
3519
|
-
var css$E = {"root":"
|
|
3524
|
+
var css$E = {"root":"RA86Nl","column-gap":"MMAxij","columnGap":"MMAxij","title":"wfto9u","subtitle":"_9FR9xr","disabled":"fEeXWa","multiline":"_0230ms"};
|
|
3520
3525
|
|
|
3521
3526
|
function PickerItem(props) {
|
|
3522
3527
|
const { highlightSearchMatches = true, size, avatarUrl, isLoading, isDisabled, icon, } = props;
|
|
@@ -3537,7 +3542,7 @@ function getAvatarSize(size, isMultiline) {
|
|
|
3537
3542
|
return settings.pickerInput.sizes.body[isMultiline ? 'itemAvatarMultilineMap' : 'itemAvatarMap'][size];
|
|
3538
3543
|
}
|
|
3539
3544
|
|
|
3540
|
-
var css$D = {"sub-header-wrapper":"
|
|
3545
|
+
var css$D = {"sub-header-wrapper":"-Xfnve","subHeaderWrapper":"-Xfnve","switch":"vWtThq","no-found-modal-container":"_0xl76W","noFoundModalContainer":"_0xl76W","no-found-modal-container-icon":"f25sjz","noFoundModalContainerIcon":"f25sjz","no-found-modal-container-text":"dkNH-1","noFoundModalContainerText":"dkNH-1"};
|
|
3541
3546
|
|
|
3542
3547
|
function PickerModal(props) {
|
|
3543
3548
|
const { view, selection, dataSourceStateLens, dataSourceState, getDataSourceState, getName, clearSelection, getRows, getListProps, getFooterProps, isSingleSelect, handleDataSourceValueChange, } = uuiComponents.usePickerModal(props);
|
|
@@ -3592,7 +3597,7 @@ function PickerModal(props) {
|
|
|
3592
3597
|
React__namespace.default.createElement(ModalFooter, null, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
|
|
3593
3598
|
}
|
|
3594
3599
|
|
|
3595
|
-
var css$C = {"tooltip":"
|
|
3600
|
+
var css$C = {"tooltip":"wwTyxH"};
|
|
3596
3601
|
|
|
3597
3602
|
const PickerTogglerTag = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
3598
3603
|
const tagProps = {
|
|
@@ -3611,7 +3616,7 @@ const PickerTogglerTag = /* @__PURE__ */React__namespace.forwardRef((props, ref)
|
|
|
3611
3616
|
}
|
|
3612
3617
|
});
|
|
3613
3618
|
|
|
3614
|
-
var css$B = {"root":"
|
|
3619
|
+
var css$B = {"root":"CAvCYH","mode-form":"OGeq0z","modeForm":"OGeq0z","mode-cell":"I-NGib","modeCell":"I-NGib","mode-inline":"I89UxR","modeInline":"I89UxR"};
|
|
3615
3620
|
|
|
3616
3621
|
const defaultMode = EditMode.FORM;
|
|
3617
3622
|
function applyPickerTogglerMods(mods) {
|
|
@@ -3712,7 +3717,7 @@ function PickerInputComponent({ highlightSearchMatches = true, ...props }, ref)
|
|
|
3712
3717
|
}
|
|
3713
3718
|
const PickerInput = /* @__PURE__ */React__namespace.default.forwardRef(PickerInputComponent);
|
|
3714
3719
|
|
|
3715
|
-
var css$A = {"row":"
|
|
3720
|
+
var css$A = {"row":"jNNNeD"};
|
|
3716
3721
|
|
|
3717
3722
|
function PickerListItem(props) {
|
|
3718
3723
|
let label;
|
|
@@ -3732,7 +3737,7 @@ function PickerListItem(props) {
|
|
|
3732
3737
|
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));
|
|
3733
3738
|
}
|
|
3734
3739
|
|
|
3735
|
-
var css$z = {"root":"
|
|
3740
|
+
var css$z = {"root":"HcTpU5"};
|
|
3736
3741
|
|
|
3737
3742
|
function PickerList(props) {
|
|
3738
3743
|
const { context, view, onlySelectedView, getName, getEntityName, appendLastSelected, getSelectedIdsArray, buildRowsList, getMaxDefaultItems, dataSourceState, getModalTogglerCaption, } = uuiComponents.usePickerList(props);
|
|
@@ -3767,7 +3772,7 @@ function PickerList(props) {
|
|
|
3767
3772
|
}, selectedRows)));
|
|
3768
3773
|
}
|
|
3769
3774
|
|
|
3770
|
-
var css$y = {"root":"
|
|
3775
|
+
var css$y = {"root":"VtLkh-","wrapper":"U8po1N","align-widgets-top":"-f8vwb","alignWidgetsTop":"-f8vwb","align-widgets-center":"_8cBqD-","alignWidgetsCenter":"_8cBqD-"};
|
|
3771
3776
|
|
|
3772
3777
|
function DataTableCell(initialProps) {
|
|
3773
3778
|
const props = { ...initialProps };
|
|
@@ -3775,8 +3780,7 @@ function DataTableCell(initialProps) {
|
|
|
3775
3780
|
props.addons = React__namespace.createElement(DataRowAddons, { size: props.size, ...props });
|
|
3776
3781
|
}
|
|
3777
3782
|
props.renderPlaceholder = props.renderPlaceholder
|
|
3778
|
-
|| (() => (React__namespace.createElement(Text, { key: "t", size: props.size },
|
|
3779
|
-
React__namespace.createElement(TextPlaceholder, { isNotAnimated: true }))));
|
|
3783
|
+
|| (() => (React__namespace.createElement(Text, { key: "t", size: props.size }, settings.dataTable.renderPlaceholder())));
|
|
3780
3784
|
props.renderUnknown = props.renderUnknown
|
|
3781
3785
|
|| (() => (React__namespace.createElement(Text, { key: "t", size: props.size }, "Unknown")));
|
|
3782
3786
|
props.renderTooltip = (tooltipProps) => React__namespace.createElement(Tooltip, { color: "critical", ...tooltipProps });
|
|
@@ -3816,7 +3820,7 @@ function DataTableCell(initialProps) {
|
|
|
3816
3820
|
return React__namespace.createElement(uuiComponents.DataTableCell, { ...props });
|
|
3817
3821
|
}
|
|
3818
3822
|
|
|
3819
|
-
var css$x = {"root":"
|
|
3823
|
+
var css$x = {"root":"_1VDQpZ"};
|
|
3820
3824
|
|
|
3821
3825
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
3822
3826
|
// 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.
|
|
@@ -3832,7 +3836,7 @@ const DataTableRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.DataTableRow,
|
|
|
3832
3836
|
];
|
|
3833
3837
|
}, () => propsMods);
|
|
3834
3838
|
|
|
3835
|
-
var css$w = {"sorting-panel-container":"
|
|
3839
|
+
var css$w = {"sorting-panel-container":"tJOLVj","sortingPanelContainer":"tJOLVj"};
|
|
3836
3840
|
|
|
3837
3841
|
const SortingPanelImpl = ({ sortDirection, onSort }) => {
|
|
3838
3842
|
const sortAsc = React.useCallback(() => onSort(sortDirection === 'asc' ? undefined : 'asc'), [onSort]);
|
|
@@ -3857,7 +3861,7 @@ const ColumnHeaderDropdownImpl = (props) => {
|
|
|
3857
3861
|
};
|
|
3858
3862
|
const ColumnHeaderDropdown = /* @__PURE__ */React__namespace.default.memo(ColumnHeaderDropdownImpl);
|
|
3859
3863
|
|
|
3860
|
-
var css$v = {"root":"
|
|
3864
|
+
var css$v = {"root":"_48b-nR","caption-wrapper":"hywdjT","captionWrapper":"hywdjT","sort-icon":"piYC7o","sortIcon":"piYC7o","dropdown-icon":"kExqVJ","dropdownIcon":"kExqVJ","infoIcon":"y24y8e","resizable":"_8szJs3","align-right":"kIF82w","alignRight":"kIF82w","align-center":"Rd7Jzu","alignCenter":"Rd7Jzu","caption":"IJcumt","truncate":"q5Slbb","upper-case":"c-1a1s","upperCase":"c-1a1s","checkbox":"RHTeKT","icon":"_1qQRXR","fold-all-icon":"qjSeCs","foldAllIcon":"qjSeCs","cell-tooltip":"T6MvfP","cellTooltip":"T6MvfP","resizing-marker":"ImiMuh","resizingMarker":"ImiMuh","pinned-right":"evQ2nn","pinnedRight":"evQ2nn","draggable":"IT5YeF","ghost":"Zl-Dj5","is-dragged-out":"SNiLeG","isDraggedOut":"SNiLeG","dnd-marker-left":"kpWgCc","dndMarkerLeft":"kpWgCc","dnd-marker-right":"idjE1d","dndMarkerRight":"idjE1d","cell-tooltip-wrapper":"qnxiUl","cellTooltipWrapper":"qnxiUl","cell-tooltip-text":"MqWydU","cellTooltipText":"MqWydU","tooltip-caption":"RxeZTe","tooltipCaption":"RxeZTe","tooltip-info":"ANz59x","tooltipInfo":"ANz59x"};
|
|
3861
3865
|
|
|
3862
3866
|
class DataTableHeaderCell extends React__namespace.Component {
|
|
3863
3867
|
constructor() {
|
|
@@ -3951,7 +3955,7 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
3951
3955
|
}
|
|
3952
3956
|
}
|
|
3953
3957
|
|
|
3954
|
-
var css$u = {"root":"
|
|
3958
|
+
var css$u = {"root":"Y8JWtm","caption-wrapper":"hrFKIY","captionWrapper":"hrFKIY","align-center":"vPCZZ9","alignCenter":"vPCZZ9","caption":"WOEEpa","truncate":"o3h-ud","upper-case":"gt5XQS","upperCase":"gt5XQS","group-cell-tooltip":"a1-yAA","groupCellTooltip":"a1-yAA","group-cell-tooltip-wrapper":"ZMi6Bx","groupCellTooltipWrapper":"ZMi6Bx","group-cell-tooltip-text":"O1jRN9","groupCellTooltipText":"O1jRN9","tooltip-caption":"Xqzhaq","tooltipCaption":"Xqzhaq","tooltip-info":"iA10Zw","tooltipInfo":"iA10Zw"};
|
|
3955
3959
|
|
|
3956
3960
|
class DataTableHeaderGroupCell extends React__namespace.Component {
|
|
3957
3961
|
constructor() {
|
|
@@ -3991,7 +3995,7 @@ class DataTableHeaderGroupCell extends React__namespace.Component {
|
|
|
3991
3995
|
}
|
|
3992
3996
|
}
|
|
3993
3997
|
|
|
3994
|
-
var css$t = {"root":"
|
|
3998
|
+
var css$t = {"root":"kMOrYG"};
|
|
3995
3999
|
|
|
3996
4000
|
const DataTableHeaderRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.DataTableHeaderRow, () => [css$t.root, 'uui-dt-vars'], (mods) => ({
|
|
3997
4001
|
renderCell: (props) => (React__namespace.createElement(DataTableHeaderCell, { ...props, size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key, columnsGap: mods.columnsGap })),
|
|
@@ -4004,7 +4008,7 @@ const UUI_FILTERS_PANEL_ADD_BUTTON_BODY = 'uui-filters-panel-add-button-body';
|
|
|
4004
4008
|
const UUI_FILTERS_PANEL_ITEM_BODY = 'uui-filters-panel-item-body';
|
|
4005
4009
|
const UUI_FILTERS_PANEL_ITEM_TOGGLER = 'uui-filters-panel-item-toggler';
|
|
4006
4010
|
|
|
4007
|
-
var css$s = {"root":"
|
|
4011
|
+
var css$s = {"root":"wvydVB","title-wrapper":"TBME5K","titleWrapper":"TBME5K","title":"E6cDIN","text-wrapper":"A6RI-Q","textWrapper":"A6RI-Q","selection":"EFb0qg","postfix":"KebYoR","selected":"zD9HRm"};
|
|
4008
4012
|
|
|
4009
4013
|
const FilterPanelItemToggler = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
4010
4014
|
const togglerPickerOpened = (e) => {
|
|
@@ -4172,7 +4176,7 @@ function FilterRangeDatePickerBody(props) {
|
|
|
4172
4176
|
React__namespace.default.createElement(LinkButton, { isDisabled: !value.from && !value.to, caption: i18n.pickerModal.clearAllButton, onClick: () => onValueChange(defaultRangeValue) })))));
|
|
4173
4177
|
}
|
|
4174
4178
|
|
|
4175
|
-
var css$r = {"container":"
|
|
4179
|
+
var css$r = {"container":"g48nXw"};
|
|
4176
4180
|
|
|
4177
4181
|
function FilterNumericBody(props) {
|
|
4178
4182
|
const isInRangePredicate = props?.selectedPredicate === 'inRange' || props?.selectedPredicate === 'notInRange';
|
|
@@ -4268,7 +4272,7 @@ var SvgActionDeleteOutline = function SvgActionDeleteOutline(props, ref) {
|
|
|
4268
4272
|
};
|
|
4269
4273
|
var ForwardRef$a = /*#__PURE__*/React.forwardRef(SvgActionDeleteOutline);
|
|
4270
4274
|
|
|
4271
|
-
var css$q = {"header":"
|
|
4275
|
+
var css$q = {"header":"nQfOa5","removeButton":"zzWsa3","with-search":"x7Z6oG","withSearch":"x7Z6oG"};
|
|
4272
4276
|
|
|
4273
4277
|
function useView(props, value) {
|
|
4274
4278
|
const forceUpdate = uuiCore.useForceUpdate();
|
|
@@ -4574,7 +4578,7 @@ function FiltersToolbarImpl(props) {
|
|
|
4574
4578
|
}
|
|
4575
4579
|
const FiltersPanel = /* @__PURE__ */React__namespace.default.memo(FiltersToolbarImpl);
|
|
4576
4580
|
|
|
4577
|
-
var css$p = {"divider":"
|
|
4581
|
+
var css$p = {"divider":"mO66Fe","dropdownDeleteIcon":"P77zbO","presetsWrapper":"Agr0L-","addPresetContainer":"fNeloQ","dropContainer":"_093SE1"};
|
|
4578
4582
|
|
|
4579
4583
|
var _path$9;
|
|
4580
4584
|
function _extends$9() { return _extends$9 = 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$9.apply(null, arguments); }
|
|
@@ -4655,7 +4659,7 @@ var SvgContentLinkOutline = function SvgContentLinkOutline(props, ref) {
|
|
|
4655
4659
|
};
|
|
4656
4660
|
var ForwardRef$5 = /*#__PURE__*/React.forwardRef(SvgContentLinkOutline);
|
|
4657
4661
|
|
|
4658
|
-
var css$o = {"delete-button":"
|
|
4662
|
+
var css$o = {"delete-button":"_8cri2K","deleteButton":"_8cri2K","tab-button":"G-ZnLp","tabButton":"G-ZnLp","targetOpen":"n5wk67"};
|
|
4659
4663
|
|
|
4660
4664
|
function PresetActionsDropdown(props) {
|
|
4661
4665
|
const { uuiNotifications } = uuiCore.useUuiContext();
|
|
@@ -4722,7 +4726,7 @@ function PresetActionsDropdown(props) {
|
|
|
4722
4726
|
return (React__namespace.default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end", modifiers: [{ name: 'offset', options: { offset: [0, 22] } }] }));
|
|
4723
4727
|
}
|
|
4724
4728
|
|
|
4725
|
-
var css$n = {"preset-input-cell":"
|
|
4729
|
+
var css$n = {"preset-input-cell":"VxWJV-","presetInputCell":"VxWJV-","preset-input":"P-aZ3-","presetInput":"P-aZ3-"};
|
|
4726
4730
|
|
|
4727
4731
|
const UUI_PRESETS_PANEL_ADD_BUTTON = 'uui-presets-panel-add-button';
|
|
4728
4732
|
const UUI_PRESETS_PANEL_MORE_BUTTON = 'uui-presets-panel-more-button';
|
|
@@ -4754,7 +4758,7 @@ function PresetInput(props) {
|
|
|
4754
4758
|
React__namespace.default.createElement(TextInput, { cx: css$n.presetInput, onValueChange: setPresetCaption, value: presetCaption, onCancel: cancelActionHandler, onAccept: acceptActionHandler, onBlur: newPresetOnBlurHandler, autoFocus: true, maxLength: 50, isReadonly: readonly })));
|
|
4755
4759
|
}
|
|
4756
4760
|
|
|
4757
|
-
var css$m = {"preset":"
|
|
4761
|
+
var css$m = {"preset":"qrjGRX","activePreset":"LDB8M3"};
|
|
4758
4762
|
|
|
4759
4763
|
function Preset(props) {
|
|
4760
4764
|
const [isRenamePreset, setIsRenamePreset] = React.useState(false);
|
|
@@ -4880,7 +4884,7 @@ const useColumnsWithFilters = (initialColumns, filters) => {
|
|
|
4880
4884
|
return columns;
|
|
4881
4885
|
};
|
|
4882
4886
|
|
|
4883
|
-
var css$l = {"unpin-icon":"
|
|
4887
|
+
var css$l = {"unpin-icon":"tCZZBq","unpinIcon":"tCZZBq","pin-toggler-icon":"WK-Zkr","pinTogglerIcon":"WK-Zkr"};
|
|
4884
4888
|
|
|
4885
4889
|
function PinIconButton(props) {
|
|
4886
4890
|
const i18nLocal = i18n.tables.columnsConfigurationModal;
|
|
@@ -4922,7 +4926,7 @@ function getUnpinIcon(params) {
|
|
|
4922
4926
|
}
|
|
4923
4927
|
}
|
|
4924
4928
|
|
|
4925
|
-
var css$k = {"row-wrapper":"
|
|
4929
|
+
var css$k = {"row-wrapper":"_935DPP","rowWrapper":"_935DPP","pin-icon-button":"f33Kpw","pinIconButton":"f33Kpw","not-pinned":"FuOd73","notPinned":"FuOd73","checkbox":"_2hjqnd","drag-handle":"BvD5Mv","dragHandle":"BvD5Mv","dnd-disabled":"-w5E2R","dndDisabled":"-w5E2R"};
|
|
4926
4930
|
|
|
4927
4931
|
const ColumnRow = /* @__PURE__ */React__namespace.memo(function ColumnRow(props) {
|
|
4928
4932
|
const { column } = props;
|
|
@@ -4945,7 +4949,7 @@ const ColumnRow = /* @__PURE__ */React__namespace.memo(function ColumnRow(props)
|
|
|
4945
4949
|
return (React__namespace.createElement(uuiCore.DndActor, { key: column.key, srcData: isDndAllowed && data, dstData: data, canAcceptDrop: onCanAcceptDrop, onDrop: onDrop, render: renderContent }));
|
|
4946
4950
|
});
|
|
4947
4951
|
|
|
4948
|
-
var css$j = {"root":"
|
|
4952
|
+
var css$j = {"root":"JL9oRO","main-panel":"p495vP","mainPanel":"p495vP","group":"EysJCx","group-title":"Vf6eax","groupTitle":"Vf6eax","group-items":"zBXnE9","groupItems":"zBXnE9","no-data":"HCZhdn","noData":"HCZhdn","no-data-title":"A-tXy4","noDataTitle":"A-tXy4","no-data-sub-title":"_60rm3y","noDataSubTitle":"_60rm3y","h-divider":"s2VXEB","hDivider":"s2VXEB","search-area":"sSnnnp","searchArea":"sSnnnp","subgroup-accordion":"Y9ArFM","subgroupAccordion":"Y9ArFM","subgroup":"a-keBB","subgroup-title":"CeK-M9","subgroupTitle":"CeK-M9"};
|
|
4949
4953
|
|
|
4950
4954
|
const renderGroupTitle = (title, amount) => (React__namespace.createElement(FlexRow, { cx: css$j.group },
|
|
4951
4955
|
React__namespace.createElement(Text, { size: "none", cx: css$j.groupTitle }, title),
|
|
@@ -5047,7 +5051,7 @@ const getChildrenAndRest = (row, rows) => {
|
|
|
5047
5051
|
return [children, rest];
|
|
5048
5052
|
};
|
|
5049
5053
|
|
|
5050
|
-
var css$i = {"listContainer":"
|
|
5054
|
+
var css$i = {"listContainer":"tIehST","header":"_7IWGL0","group":"_6GtYZi","stickyHeader":"rkhO6X"};
|
|
5051
5055
|
|
|
5052
5056
|
function DataRowsGroup({ row, childRows, renderRow, top = 1, }) {
|
|
5053
5057
|
const rowRef = React.useRef();
|
|
@@ -5087,7 +5091,7 @@ function DataRowsContainer({ estimatedHeight, listContainerRef, offsetY, rows, r
|
|
|
5087
5091
|
React__namespace.default.createElement(DataRowsGroups, { rows: rows, renderRow: renderRow, top: headerRef?.current?.clientHeight }))));
|
|
5088
5092
|
}
|
|
5089
5093
|
|
|
5090
|
-
var css$h = {"root":"
|
|
5094
|
+
var css$h = {"root":"hOJPeb","sticky-header":"bZU6Oa","stickyHeader":"bZU6Oa","no-results":"YG-8vF","noResults":"YG-8vF","icon":"TiXzch","title":"PnwFJC"};
|
|
5091
5095
|
|
|
5092
5096
|
function DataTable(props) {
|
|
5093
5097
|
const { uuiModals } = uuiCore.useUuiContext();
|
|
@@ -5136,9 +5140,9 @@ function DataTable(props) {
|
|
|
5136
5140
|
} }))));
|
|
5137
5141
|
}
|
|
5138
5142
|
|
|
5139
|
-
var css$g = {"root":"
|
|
5143
|
+
var css$g = {"root":"-cFzxG"};
|
|
5140
5144
|
|
|
5141
|
-
var css$f = {"root":"
|
|
5145
|
+
var css$f = {"root":"rRzCna","burger-content":"_7vJ4jU","burgerContent":"_7vJ4jU"};
|
|
5142
5146
|
|
|
5143
5147
|
var _path$3;
|
|
5144
5148
|
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); }
|
|
@@ -5181,7 +5185,7 @@ var SvgNavigationArrowDownOutline = function SvgNavigationArrowDownOutline(props
|
|
|
5181
5185
|
};
|
|
5182
5186
|
var ForwardRef$2 = /*#__PURE__*/React.forwardRef(SvgNavigationArrowDownOutline);
|
|
5183
5187
|
|
|
5184
|
-
var css$e = {"root":"
|
|
5188
|
+
var css$e = {"root":"KMbiBY","button-primary":"djY9E-","buttonPrimary":"djY9E-","button-secondary":"odcBUV","buttonSecondary":"odcBUV","hasIcon":"_5f74DJ","dropdown":"_3fqYF4"};
|
|
5185
5189
|
|
|
5186
5190
|
const BurgerButton = /* @__PURE__ */uuiCore.withMods(uuiComponents.Button, (props) => [
|
|
5187
5191
|
css$e.root,
|
|
@@ -5192,13 +5196,13 @@ const BurgerButton = /* @__PURE__ */uuiCore.withMods(uuiComponents.Button, (prop
|
|
|
5192
5196
|
props.icon && css$e.hasIcon,
|
|
5193
5197
|
], () => ({ dropdownIcon: ForwardRef$2, dropdownIconPosition: 'left', role: 'menuitem' }));
|
|
5194
5198
|
|
|
5195
|
-
var css$d = {"search-input":"
|
|
5199
|
+
var css$d = {"search-input":"HUb9-x","searchInput":"HUb9-x"};
|
|
5196
5200
|
|
|
5197
5201
|
function BurgerSearch(props) {
|
|
5198
5202
|
return (React__namespace.createElement(uuiComponents.TextInput, { cx: cx__default.default(css$d.searchInput, 'uui-main_menu-burger-search'), iconPosition: "left", icon: ForwardRef$N, placeholder: props.placeholder, value: props.value, onValueChange: props.onValueChange, onCancel: props.onCancel, cancelIcon: props.value && ForwardRef$R }));
|
|
5199
5203
|
}
|
|
5200
5204
|
|
|
5201
|
-
var css$c = {"root":"
|
|
5205
|
+
var css$c = {"root":"o7fuFq","group-header":"_1LoMKB","groupHeader":"_1LoMKB","group-name":"U-2UaX","groupName":"U-2UaX","line":"CXzh-S"};
|
|
5202
5206
|
|
|
5203
5207
|
function BurgerGroupHeader(props) {
|
|
5204
5208
|
return (React__namespace.createElement("div", { className: cx__default.default(css$c.root, css$c.groupHeader, 'uui-burger-group-header') },
|
|
@@ -5206,7 +5210,7 @@ function BurgerGroupHeader(props) {
|
|
|
5206
5210
|
React__namespace.createElement("span", { className: css$c.groupName }, props.caption)));
|
|
5207
5211
|
}
|
|
5208
5212
|
|
|
5209
|
-
var css$b = {"root":"
|
|
5213
|
+
var css$b = {"root":"U4Uiy-","type-primary":"hOaf8O","typePrimary":"hOaf8O","type-secondary":"xX6Uxs","typeSecondary":"xX6Uxs"};
|
|
5210
5214
|
|
|
5211
5215
|
const MainMenuButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5212
5216
|
const { type, ...clickableProps } = props;
|
|
@@ -5228,7 +5232,7 @@ const MainMenuButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) =
|
|
|
5228
5232
|
props.isDropdown && (React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$Q, flipY: props.isOpen }))));
|
|
5229
5233
|
});
|
|
5230
5234
|
|
|
5231
|
-
var css$a = {"dropdown-body":"
|
|
5235
|
+
var css$a = {"dropdown-body":"Mf-hmd","dropdownBody":"Mf-hmd"};
|
|
5232
5236
|
|
|
5233
5237
|
class MainMenuDropdown extends React__namespace.Component {
|
|
5234
5238
|
render() {
|
|
@@ -5286,12 +5290,12 @@ var SvgNavigationGlobalMenuOutlineOutline = function SvgNavigationGlobalMenuOutl
|
|
|
5286
5290
|
};
|
|
5287
5291
|
var ForwardRef$1 = /*#__PURE__*/React.forwardRef(SvgNavigationGlobalMenuOutlineOutline);
|
|
5288
5292
|
|
|
5289
|
-
var css$9 = {"global-menu-btn":"
|
|
5293
|
+
var css$9 = {"global-menu-btn":"JmoqJT","globalMenuBtn":"JmoqJT","global-menu-icon":"lYiH8m","globalMenuIcon":"lYiH8m"};
|
|
5290
5294
|
|
|
5291
5295
|
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 },
|
|
5292
5296
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 36, icon: ForwardRef$1, cx: css$9.globalMenuIcon }))));
|
|
5293
5297
|
|
|
5294
|
-
var css$8 = {"container":"
|
|
5298
|
+
var css$8 = {"container":"SVX3-g","open":"kF8a7A","folding-arrow":"-PgI0F","foldingArrow":"-PgI0F"};
|
|
5295
5299
|
|
|
5296
5300
|
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 },
|
|
5297
5301
|
React__namespace.createElement(uuiComponents.Avatar, { size: "36", img: props.avatarUrl }),
|
|
@@ -5299,15 +5303,15 @@ const MainMenuAvatar = /* @__PURE__ */React__namespace.forwardRef((props, ref) =
|
|
|
5299
5303
|
props.isDropdown && (React__namespace.createElement("div", null,
|
|
5300
5304
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, icon: ForwardRef$Q, flipY: props.isOpen, cx: css$8.foldingArrow }))))));
|
|
5301
5305
|
|
|
5302
|
-
var css$7 = {"search-input":"
|
|
5306
|
+
var css$7 = {"search-input":"v5KLg-","searchInput":"v5KLg-"};
|
|
5303
5307
|
|
|
5304
5308
|
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$N, cancelIcon: props.value?.length > 0 && ForwardRef$R, ...props, ...iEditable, ref: ref, cx: uuiCore.cx(css$7.searchInput, props.cx), ...props.rawProps })) })));
|
|
5305
5309
|
|
|
5306
|
-
var css$6 = {"container":"
|
|
5310
|
+
var css$6 = {"container":"wsXb0y"};
|
|
5307
5311
|
|
|
5308
5312
|
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 })));
|
|
5309
5313
|
|
|
5310
|
-
var css$5 = {"root":"
|
|
5314
|
+
var css$5 = {"root":"L3O88I"};
|
|
5311
5315
|
|
|
5312
5316
|
const Anchor = /* @__PURE__ */uuiCore.withMods(uuiComponents.Anchor, () => [css$5.root]);
|
|
5313
5317
|
|
|
@@ -5365,7 +5369,7 @@ var SvgFileCloudUploadFill = function SvgFileCloudUploadFill(props, ref) {
|
|
|
5365
5369
|
};
|
|
5366
5370
|
var ForwardRef = /*#__PURE__*/React.forwardRef(SvgFileCloudUploadFill);
|
|
5367
5371
|
|
|
5368
|
-
var css$4 = {"root":"
|
|
5372
|
+
var css$4 = {"root":"Z9LBwe","drop-start":"KQbex5","dropStart":"KQbex5","drop-over":"Q9mcm9","dropOver":"Q9mcm9","link":"MKspmO","drop-area":"g73Oij","dropArea":"g73Oij","drop-caption":"bE6XOj","dropCaption":"bE6XOj","icon-blue":"_0x2cc9","iconBlue":"_0x2cc9"};
|
|
5369
5373
|
|
|
5370
5374
|
function DropSpot(props) {
|
|
5371
5375
|
const getInfoText = typeof props.infoText === 'string'
|
|
@@ -5383,7 +5387,7 @@ function DropSpot(props) {
|
|
|
5383
5387
|
return React__namespace.createElement(uuiComponents.DropSpot, { render: renderAttachmentArea, onFilesDropped: props.onUploadFiles });
|
|
5384
5388
|
}
|
|
5385
5389
|
|
|
5386
|
-
var css$3 = {"root":"
|
|
5390
|
+
var css$3 = {"root":"k5S-A1"};
|
|
5387
5391
|
|
|
5388
5392
|
const SvgCircleProgress = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5389
5393
|
const outsetRadius = props.size / 2 - 1;
|
|
@@ -5394,7 +5398,7 @@ const SvgCircleProgress = /* @__PURE__ */React__namespace.forwardRef((props, ref
|
|
|
5394
5398
|
React__namespace.createElement("circle", { strokeWidth: 1, fill: "transparent", r: outsetRadius, cx: props.size / 2, cy: props.size / 2 })));
|
|
5395
5399
|
});
|
|
5396
5400
|
|
|
5397
|
-
var css$2 = {"root":"
|
|
5401
|
+
var css$2 = {"root":"JYXcOX","file-name":"JRXglE","fileName":"JRXglE","default-color":"N1NuBl","defaultColor":"N1NuBl","doc-color":"R-doN2","docColor":"R-doN2","xls-color":"O7C8jQ","xlsColor":"O7C8jQ","pdf-color":"XV-18d","pdfColor":"XV-18d","movie-color":"a0v9o-","movieColor":"a0v9o-","img-color":"akFypy","imgColor":"akFypy","mov-color":"ng1Azq","movColor":"ng1Azq","error-block":"UAmsnK","errorBlock":"UAmsnK","icons-block":"_185xl2","iconsBlock":"_185xl2"};
|
|
5398
5402
|
|
|
5399
5403
|
const FileCard = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5400
5404
|
const [isLoadingShow, setIsLoadingShow] = React__namespace.useState(true);
|
|
@@ -5513,7 +5517,7 @@ const getErrorPageConfig = () => ({
|
|
|
5513
5517
|
},
|
|
5514
5518
|
});
|
|
5515
5519
|
|
|
5516
|
-
var css$1 = {"container":"
|
|
5520
|
+
var css$1 = {"container":"LcPv1O"};
|
|
5517
5521
|
|
|
5518
5522
|
const ErrorPage = (props) => {
|
|
5519
5523
|
const isMobileScreen = uuiCore.isMobile();
|
|
@@ -5525,7 +5529,7 @@ const ErrorPage = (props) => {
|
|
|
5525
5529
|
props?.supportLink && React__namespace.default.createElement("div", { className: "uui-error-support-link" }, props?.supportLink))));
|
|
5526
5530
|
};
|
|
5527
5531
|
|
|
5528
|
-
var css = {"recovery-spinner":"
|
|
5532
|
+
var css = {"recovery-spinner":"ozAw6k","recoverySpinner":"ozAw6k","recovery-message":"-d8i-4","recoveryMessage":"-d8i-4","modal-blocker":"sUw9oj","modalBlocker":"sUw9oj","modalFadeIn":"Q6Mg0I"};
|
|
5529
5533
|
|
|
5530
5534
|
function ErrorHandler(props) {
|
|
5531
5535
|
const { uuiNotifications, uuiModals, uuiApi } = uuiCore.useUuiContext();
|