@epam/uui 5.13.3-beta.1 → 5.13.3-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/styles/inputs.scss +4 -4
- package/components/inputs/MultiSwitch.d.ts +4 -9
- package/components/inputs/MultiSwitch.d.ts.map +1 -1
- package/components/inputs/RadioInput.d.ts +6 -7
- package/components/inputs/RadioInput.d.ts.map +1 -1
- package/components/layout/Blocker.d.ts +2 -2
- package/components/layout/Blocker.d.ts.map +1 -1
- package/components/overlays/Tooltip.d.ts +4 -1
- package/components/overlays/Tooltip.d.ts.map +1 -1
- package/components/pickers/DataPickerBody.d.ts +3 -3
- package/components/pickers/DataPickerBody.d.ts.map +1 -1
- package/components/tables/DataTable.d.ts +3 -1
- package/components/tables/DataTable.d.ts.map +1 -1
- package/components/tables/DataTableRow.d.ts +5 -3
- package/components/tables/DataTableRow.d.ts.map +1 -1
- package/components/tables/types.d.ts +0 -2
- package/components/tables/types.d.ts.map +1 -1
- package/components/typography/Text.d.ts +5 -5
- package/components/typography/Text.d.ts.map +1 -1
- package/index.esm.js +391 -382
- package/index.esm.js.map +1 -1
- package/index.js +390 -381
- package/index.js.map +1 -1
- package/package.json +5 -5
- package/settings.d.ts +14 -4
- package/settings.d.ts.map +1 -1
- package/stats.html +1 -1
- package/styles.css +2089 -2097
- 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(#zvwqw98vc6oliys27_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: "zvwqw97lb71v4zltk_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(#zvwqw97lb71v4zltk_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: "zvwqw98vc6oliys27_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":"_9HFqQ2","uui-spinner":"Ssj06T","uuiSpinner":"Ssj06T"};
|
|
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":"zsauYS","loading-word":"_74xdD1","loadingWord":"_74xdD1","animated-loading":"L9KBNn","animatedLoading":"L9KBNn","skeleton_loading":"P6hZru","skeletonLoading":"P6hZru"};
|
|
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,
|
|
@@ -1173,6 +1199,9 @@ const pickerInputSettings = {
|
|
|
1173
1199
|
mobileFooterLinkButton: '48',
|
|
1174
1200
|
mobileRow: '48',
|
|
1175
1201
|
mobileSearchInput: '48',
|
|
1202
|
+
getSearchSize: ({ pickerSize }) => {
|
|
1203
|
+
return pickerSize;
|
|
1204
|
+
},
|
|
1176
1205
|
},
|
|
1177
1206
|
},
|
|
1178
1207
|
};
|
|
@@ -1271,11 +1300,15 @@ const textInputSettings = {
|
|
|
1271
1300
|
default: '36',
|
|
1272
1301
|
},
|
|
1273
1302
|
};
|
|
1303
|
+
const blockerSettings = {
|
|
1304
|
+
renderSpinner: () => React__namespace.default.createElement(Spinner, null),
|
|
1305
|
+
};
|
|
1274
1306
|
const settings = {
|
|
1275
1307
|
accordion: accordionSettings,
|
|
1276
1308
|
alert: alertSettings,
|
|
1277
1309
|
badge: badgeSettings,
|
|
1278
1310
|
button: buttonSettings,
|
|
1311
|
+
blocker: blockerSettings,
|
|
1279
1312
|
checkbox: checkboxSettings,
|
|
1280
1313
|
countIndicator: countIndicatorSettings,
|
|
1281
1314
|
dataTable: dataTableSettings,
|
|
@@ -1305,11 +1338,11 @@ const settings = {
|
|
|
1305
1338
|
textInput: textInputSettings,
|
|
1306
1339
|
};
|
|
1307
1340
|
|
|
1308
|
-
var css$
|
|
1341
|
+
var css$1w = {"root":"zkypdG"};
|
|
1309
1342
|
|
|
1310
1343
|
function applyButtonMods(mods) {
|
|
1311
1344
|
return [
|
|
1312
|
-
css$
|
|
1345
|
+
css$1w.root,
|
|
1313
1346
|
'uui-button',
|
|
1314
1347
|
`uui-fill-${mods.fill || 'solid'}`,
|
|
1315
1348
|
`uui-color-${mods.color || 'primary'}`,
|
|
@@ -1323,10 +1356,10 @@ const Button = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Button,
|
|
|
1323
1356
|
};
|
|
1324
1357
|
});
|
|
1325
1358
|
|
|
1326
|
-
var css$
|
|
1359
|
+
var css$1v = {"root":"narzoG"};
|
|
1327
1360
|
|
|
1328
1361
|
function applyIconButtonMods(props) {
|
|
1329
|
-
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$
|
|
1362
|
+
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$1v.root];
|
|
1330
1363
|
}
|
|
1331
1364
|
const IconButton = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.IconButton, applyIconButtonMods, (props) => {
|
|
1332
1365
|
const isDeprecated = ['info', 'success', 'error', 'warning'].includes(props.color);
|
|
@@ -1360,7 +1393,7 @@ function getIconClass(props) {
|
|
|
1360
1393
|
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
1394
|
}
|
|
1362
1395
|
|
|
1363
|
-
var css$
|
|
1396
|
+
var css$1u = {"root":"z3vw1q"};
|
|
1364
1397
|
|
|
1365
1398
|
const DEFAULT_COLOR = 'primary';
|
|
1366
1399
|
const LinkButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
@@ -1375,7 +1408,7 @@ const LinkButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
1375
1408
|
}
|
|
1376
1409
|
const rootStyles = [
|
|
1377
1410
|
'uui-link_button',
|
|
1378
|
-
css$
|
|
1411
|
+
css$1u.root,
|
|
1379
1412
|
`uui-size-${props.size || settings.linkButton.sizes.default}`,
|
|
1380
1413
|
...getIconClass(props),
|
|
1381
1414
|
`uui-color-${props.color || DEFAULT_COLOR}`,
|
|
@@ -1390,11 +1423,11 @@ const LinkButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
1390
1423
|
props.isDropdown && (React__namespace.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
1391
1424
|
});
|
|
1392
1425
|
|
|
1393
|
-
var css$
|
|
1426
|
+
var css$1t = {"root":"EF2EZr"};
|
|
1394
1427
|
|
|
1395
1428
|
const CountIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1396
1429
|
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
1397
|
-
css$
|
|
1430
|
+
css$1t.root,
|
|
1398
1431
|
'uui-count_indicator',
|
|
1399
1432
|
`uui-size-${props.size || settings.countIndicator.sizes.default}`,
|
|
1400
1433
|
props.color && `uui-color-${props.color}`,
|
|
@@ -1402,11 +1435,11 @@ const CountIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1402
1435
|
]) }, props.caption));
|
|
1403
1436
|
});
|
|
1404
1437
|
|
|
1405
|
-
var css$
|
|
1438
|
+
var css$1s = {"root":"-hOUcq","withNotify":"_9SVkXR"};
|
|
1406
1439
|
|
|
1407
1440
|
const TabButton = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
1408
1441
|
const styles = [
|
|
1409
|
-
css$
|
|
1442
|
+
css$1s.root,
|
|
1410
1443
|
'uui-tab-button',
|
|
1411
1444
|
`uui-size-${props.size || settings.tabButton.sizes.default}`,
|
|
1412
1445
|
...getIconClass(props),
|
|
@@ -1423,27 +1456,27 @@ const TabButton = /* @__PURE__ */React__namespace.default.forwardRef((props, ref
|
|
|
1423
1456
|
props.icon && props.iconPosition !== 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1424
1457
|
(props.caption || props.withNotify) && (React__namespace.default.createElement("div", { className: uuiCore.cx(uuiCore.uuiElement.caption) },
|
|
1425
1458
|
props.caption,
|
|
1426
|
-
props.withNotify && React__namespace.default.createElement("div", { className: css$
|
|
1459
|
+
props.withNotify && React__namespace.default.createElement("div", { className: css$1s.withNotify }))),
|
|
1427
1460
|
props.icon && props.iconPosition === 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1428
1461
|
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
1462
|
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
1430
1463
|
props.onClear && !props.isDisabled && (React__namespace.default.createElement(uuiComponents.IconContainer, { cx: uuiCore.uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
1431
1464
|
});
|
|
1432
1465
|
|
|
1433
|
-
var css$
|
|
1466
|
+
var css$1r = {"root":"QDHUyv"};
|
|
1434
1467
|
|
|
1435
1468
|
function applyVerticalTabButtonMods() {
|
|
1436
|
-
return [css$
|
|
1469
|
+
return [css$1r.root, 'uui-vertical-tab-button'];
|
|
1437
1470
|
}
|
|
1438
1471
|
const VerticalTabButton = /* @__PURE__ */uuiCore.withMods(TabButton, applyVerticalTabButtonMods);
|
|
1439
1472
|
|
|
1440
|
-
var css$
|
|
1473
|
+
var css$1q = {"root":"WOGKbM"};
|
|
1441
1474
|
|
|
1442
1475
|
function applyCheckboxMods(mods) {
|
|
1443
1476
|
return [
|
|
1444
|
-
css$
|
|
1477
|
+
css$1q.root,
|
|
1445
1478
|
`uui-size-${mods.size || settings.checkbox.sizes.default}`,
|
|
1446
|
-
|
|
1479
|
+
'uui-control-mode-' + (mods.mode || 'form'),
|
|
1447
1480
|
'uui-color-primary',
|
|
1448
1481
|
];
|
|
1449
1482
|
}
|
|
@@ -1455,11 +1488,11 @@ const applyUUICheckboxProps = (props) => {
|
|
|
1455
1488
|
};
|
|
1456
1489
|
const Checkbox = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Checkbox, applyCheckboxMods, applyUUICheckboxProps);
|
|
1457
1490
|
|
|
1458
|
-
var css$
|
|
1491
|
+
var css$1p = {"root":"BKdwKG"};
|
|
1459
1492
|
|
|
1460
1493
|
function applyRadioInputMods(mods) {
|
|
1461
1494
|
return [
|
|
1462
|
-
css$
|
|
1495
|
+
css$1p.root,
|
|
1463
1496
|
`uui-size-${mods.size || settings.radioInput.sizes.default}`,
|
|
1464
1497
|
'uui-radio-input-container',
|
|
1465
1498
|
'uui-color-primary',
|
|
@@ -1467,11 +1500,11 @@ function applyRadioInputMods(mods) {
|
|
|
1467
1500
|
}
|
|
1468
1501
|
const RadioInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.RadioInput, applyRadioInputMods, (props) => ({ icon: props.icon ? props.icon : settings.radioInput.icons.dotIcon }));
|
|
1469
1502
|
|
|
1470
|
-
var css$
|
|
1503
|
+
var css$1o = {"root":"UymHYi"};
|
|
1471
1504
|
|
|
1472
1505
|
function applySwitchMods(mods) {
|
|
1473
1506
|
return [
|
|
1474
|
-
css$
|
|
1507
|
+
css$1o.root,
|
|
1475
1508
|
`uui-size-${mods.size || settings.switch.sizes.default}`,
|
|
1476
1509
|
'uui-color-primary',
|
|
1477
1510
|
];
|
|
@@ -1491,14 +1524,14 @@ var EditMode;
|
|
|
1491
1524
|
EditMode["INLINE"] = "inline";
|
|
1492
1525
|
})(EditMode || (EditMode = {}));
|
|
1493
1526
|
|
|
1494
|
-
var textInputCss = {"root":"
|
|
1527
|
+
var textInputCss = {"root":"Ww8OPj"};
|
|
1495
1528
|
|
|
1496
1529
|
const DEFAULT_MODE$3 = EditMode.FORM;
|
|
1497
1530
|
function applyTextInputMods(mods) {
|
|
1498
1531
|
return [
|
|
1499
1532
|
textInputCss.root,
|
|
1500
1533
|
`uui-size-${mods.size || settings.textInput.sizes.default}`,
|
|
1501
|
-
|
|
1534
|
+
'uui-control-mode-' + (mods.mode || DEFAULT_MODE$3),
|
|
1502
1535
|
];
|
|
1503
1536
|
}
|
|
1504
1537
|
const TextInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.TextInput, applyTextInputMods, () => ({
|
|
@@ -1516,9 +1549,9 @@ const SearchInput = /* @__PURE__ */React__namespace.default.forwardRef((props, r
|
|
|
1516
1549
|
} }));
|
|
1517
1550
|
});
|
|
1518
1551
|
|
|
1519
|
-
var css$
|
|
1552
|
+
var css$1n = {"root":"Q-XttA"};
|
|
1520
1553
|
|
|
1521
|
-
const ControlGroup = /* @__PURE__ */uuiCore.withMods(uuiComponents.ControlGroup, () => [css$
|
|
1554
|
+
const ControlGroup = /* @__PURE__ */uuiCore.withMods(uuiComponents.ControlGroup, () => [css$1n.root, 'uui-control-group']);
|
|
1522
1555
|
|
|
1523
1556
|
function MultiSwitchComponent(props, ref) {
|
|
1524
1557
|
return (React__namespace.createElement(ControlGroup, { ref: ref, rawProps: {
|
|
@@ -1532,15 +1565,15 @@ function MultiSwitchComponent(props, ref) {
|
|
|
1532
1565
|
}
|
|
1533
1566
|
const MultiSwitch = /* @__PURE__ */React__namespace.forwardRef(MultiSwitchComponent);
|
|
1534
1567
|
|
|
1535
|
-
var css$
|
|
1568
|
+
var css$1m = {"root":"ZAERvd"};
|
|
1536
1569
|
|
|
1537
1570
|
const DEFAULT_MODE$2 = EditMode.FORM;
|
|
1538
1571
|
function applyNumericInputMods(mods) {
|
|
1539
1572
|
return [
|
|
1540
1573
|
textInputCss.root,
|
|
1541
|
-
css$
|
|
1574
|
+
css$1m.root,
|
|
1542
1575
|
`uui-size-${mods.size || settings.numericInput.sizes.default}`,
|
|
1543
|
-
|
|
1576
|
+
'uui-control-mode-' + (mods.mode || DEFAULT_MODE$2),
|
|
1544
1577
|
];
|
|
1545
1578
|
}
|
|
1546
1579
|
const NumericInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.NumericInput, applyNumericInputMods, (props) => {
|
|
@@ -1552,15 +1585,15 @@ const NumericInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.NumericInput,
|
|
|
1552
1585
|
};
|
|
1553
1586
|
});
|
|
1554
1587
|
|
|
1555
|
-
var css$
|
|
1588
|
+
var css$1l = {"root":"KpZtVw"};
|
|
1556
1589
|
|
|
1557
1590
|
const DEFAULT_MODE$1 = EditMode.FORM;
|
|
1558
1591
|
function applyTextAreaMods(mods) {
|
|
1559
1592
|
return [
|
|
1560
|
-
css$
|
|
1593
|
+
css$1l.root,
|
|
1561
1594
|
'uui-textarea',
|
|
1562
1595
|
'uui-size-' + (mods.size || settings.textArea.sizes.default),
|
|
1563
|
-
|
|
1596
|
+
'uui-control-mode-' + (mods.mode || DEFAULT_MODE$1),
|
|
1564
1597
|
];
|
|
1565
1598
|
}
|
|
1566
1599
|
const TextArea = /* @__PURE__ */uuiCore.withMods(uuiComponents.TextArea, applyTextAreaMods, (props) => {
|
|
@@ -1593,17 +1626,17 @@ function TREE_SHAKEABLE_INIT$1() {
|
|
|
1593
1626
|
};
|
|
1594
1627
|
}
|
|
1595
1628
|
|
|
1596
|
-
var css$
|
|
1629
|
+
var css$1k = {"root":"FSrCqj","main-path":"mHzTS4","mainPath":"mHzTS4","content-wrapper":"EmvPG9","contentWrapper":"EmvPG9","content":"MhuZQK","action-wrapper":"rBdAXw","actionWrapper":"rBdAXw","icon-wrapper":"C6izkk","iconWrapper":"C6izkk","icon":"EvBwqK","close-icon":"DD1rPc","closeIcon":"DD1rPc"};
|
|
1597
1630
|
|
|
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$
|
|
1631
|
+
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 },
|
|
1632
|
+
React__namespace.createElement("div", { className: css$1k.mainPath },
|
|
1633
|
+
React__namespace.createElement("div", { className: css$1k.contentWrapper },
|
|
1634
|
+
props.icon && (React__namespace.createElement("div", { className: css$1k.iconWrapper },
|
|
1635
|
+
React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$1k.icon }))),
|
|
1636
|
+
React__namespace.createElement("div", { className: css$1k.content },
|
|
1604
1637
|
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$
|
|
1638
|
+
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] }))))))),
|
|
1639
|
+
props.onClose && React__namespace.createElement(IconButton, { icon: settings.alert.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$1k.closeIcon })))));
|
|
1607
1640
|
const WarningAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, { icon: settings.alert.icons.warningIcon, color: "warning", ref: ref, ...props }));
|
|
1608
1641
|
const SuccessAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, { icon: settings.alert.icons.successIcon, color: "success", ref: ref, ...props }));
|
|
1609
1642
|
const HintAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, { icon: settings.alert.icons.infoIcon, color: "info", ref: ref, ...props }));
|
|
@@ -1611,18 +1644,18 @@ const ErrorAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => Re
|
|
|
1611
1644
|
|
|
1612
1645
|
const Dropdown = /* @__PURE__ */uuiCore.withMods(uuiComponents.Dropdown);
|
|
1613
1646
|
|
|
1614
|
-
var css$
|
|
1647
|
+
var css$1j = {"root":"E71GS0"};
|
|
1615
1648
|
|
|
1616
1649
|
function applyDropdownContainerMods(mods) {
|
|
1617
1650
|
return [
|
|
1618
|
-
css$
|
|
1651
|
+
css$1j.root,
|
|
1619
1652
|
mods.vPadding && `vPadding-${mods.vPadding}`,
|
|
1620
1653
|
mods.padding && `padding-${mods.padding}`,
|
|
1621
1654
|
];
|
|
1622
1655
|
}
|
|
1623
1656
|
const DropdownContainer = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.DropdownContainer, applyDropdownContainerMods);
|
|
1624
1657
|
|
|
1625
|
-
var css$
|
|
1658
|
+
var css$1i = {"submenu-root-item-rtl":"xYn5Ep","submenuRootItemRtl":"xYn5Ep","icon-after":"JrCStS","iconAfter":"JrCStS","submenu-root-item":"Rdk6Vo","submenuRootItem":"Rdk6Vo","icon-check":"z3-S0m","iconCheck":"z3-S0m","splitter-root":"nPKxzv","splitterRoot":"nPKxzv","splitter":"_1lhAYN","header-root":"s3FV1M","headerRoot":"s3FV1M","item-root":"_4g1puI","itemRoot":"_4g1puI","icon":"TbjIZ0","link":"TXjFr8","indent":"Sk0hqH","selected-mark":"mhiPb4","selectedMark":"mhiPb4"};
|
|
1626
1659
|
|
|
1627
1660
|
exports.IDropdownControlKeys = void 0;
|
|
1628
1661
|
(function (IDropdownControlKeys) {
|
|
@@ -1687,29 +1720,29 @@ const DropdownMenuButton = /* @__PURE__ */React__namespace.default.forwardRef((p
|
|
|
1687
1720
|
const getMenuButtonContent = () => {
|
|
1688
1721
|
const isIconBefore = Boolean(icon && iconPosition !== 'right');
|
|
1689
1722
|
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$
|
|
1723
|
+
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
1724
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1692
1725
|
isIconBefore && iconElement,
|
|
1693
|
-
React__namespace.default.createElement(uuiComponents.Text, { cx: props.indent && css$
|
|
1726
|
+
React__namespace.default.createElement(uuiComponents.Text, { cx: props.indent && css$1i.indent }, caption),
|
|
1694
1727
|
isIconAfter && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1695
1728
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1696
1729
|
iconElement))));
|
|
1697
1730
|
};
|
|
1698
1731
|
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$
|
|
1732
|
+
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);
|
|
1733
|
+
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
1734
|
getMenuButtonContent(),
|
|
1702
1735
|
isSelected && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1703
1736
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1704
|
-
React__namespace.default.createElement(uuiComponents.IconContainer, { icon: settings.dropdownMenu.icons.acceptIcon, cx: css$
|
|
1737
|
+
React__namespace.default.createElement(uuiComponents.IconContainer, { icon: settings.dropdownMenu.icons.acceptIcon, cx: css$1i.selectedMark })))));
|
|
1705
1738
|
});
|
|
1706
1739
|
function DropdownMenuSplitter(props) {
|
|
1707
|
-
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$
|
|
1708
|
-
React__namespace.default.createElement("hr", { className: css$
|
|
1740
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$1i.splitterRoot) },
|
|
1741
|
+
React__namespace.default.createElement("hr", { className: css$1i.splitter })));
|
|
1709
1742
|
}
|
|
1710
1743
|
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$
|
|
1744
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx('uui-dropdown-menu-header', props.cx, css$1i.headerRoot) },
|
|
1745
|
+
React__namespace.default.createElement("span", { className: css$1i.header }, props.caption)));
|
|
1713
1746
|
}
|
|
1714
1747
|
function DropdownSubMenu(props) {
|
|
1715
1748
|
const subMenuModifiers = [
|
|
@@ -1729,7 +1762,7 @@ function DropdownSubMenu(props) {
|
|
|
1729
1762
|
},
|
|
1730
1763
|
];
|
|
1731
1764
|
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$
|
|
1765
|
+
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
1766
|
}
|
|
1734
1767
|
function DropdownMenuSwitchButton(props) {
|
|
1735
1768
|
const context = React.useContext(uuiCore.UuiContext);
|
|
@@ -1745,29 +1778,29 @@ function DropdownMenuSwitchButton(props) {
|
|
|
1745
1778
|
onHandleValueChange(!isSelected);
|
|
1746
1779
|
}
|
|
1747
1780
|
};
|
|
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$
|
|
1781
|
+
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 },
|
|
1782
|
+
icon && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icon, cx: css$1i.iconBefore }),
|
|
1750
1783
|
React__namespace.default.createElement(uuiComponents.Text, null, caption),
|
|
1751
1784
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1752
1785
|
React__namespace.default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
1753
1786
|
}
|
|
1754
1787
|
|
|
1755
|
-
var css$
|
|
1788
|
+
var css$1h = {"root":"TDNqK9","mode-block":"g8yYBF","modeBlock":"g8yYBF","mode-inline":"zTef0o","modeInline":"zTef0o","padding-0":"VBAFcm","padding0":"VBAFcm","padding-6":"-vwj9q","padding6":"-vwj9q","padding-12":"wlDFAW","padding12":"wlDFAW","padding-18":"_-0hhh0","padding18":"_-0hhh0"};
|
|
1756
1789
|
|
|
1757
1790
|
function applyAccordionMods(mods) {
|
|
1758
1791
|
return [
|
|
1759
|
-
css$
|
|
1760
|
-
css$
|
|
1761
|
-
mods.padding && css$
|
|
1792
|
+
css$1h.root,
|
|
1793
|
+
css$1h[`mode-${mods.mode || 'block'}`],
|
|
1794
|
+
mods.padding && css$1h['padding-' + mods.padding],
|
|
1762
1795
|
];
|
|
1763
1796
|
}
|
|
1764
1797
|
const Accordion = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Accordion, applyAccordionMods, (mods) => ({
|
|
1765
1798
|
dropdownIcon: mods.dropdownIcon !== null && settings.accordion.icons.dropdownIcon,
|
|
1766
1799
|
}));
|
|
1767
1800
|
|
|
1768
|
-
var css$
|
|
1801
|
+
var css$1g = {"root":"s4Ixua","align-items":"IxdHus","alignItems":"IxdHus","justify-content":"y0ffPw","justifyContent":"y0ffPw","border-top":"FCSqoX","borderTop":"FCSqoX","border-bottom":"IcZmRR","borderBottom":"IcZmRR","top-shadow":"_8-Hvhu","topShadow":"_8-Hvhu","padding":"dNbg-l","margin":"yzmsBF","vPadding":"OBn-Pb","column-gap":"ZyMcmB","columnGap":"ZyMcmB","row-gap":"ZgwMrT","rowGap":"ZgwMrT","spacing":"UbSTkX"};
|
|
1769
1802
|
|
|
1770
|
-
const FlexCell = /* @__PURE__ */uuiCore.withMods(uuiComponents.FlexCell, () => [css$
|
|
1803
|
+
const FlexCell = /* @__PURE__ */uuiCore.withMods(uuiComponents.FlexCell, () => [css$1g.flexCell]);
|
|
1771
1804
|
|
|
1772
1805
|
const FlexRow = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1773
1806
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -1776,23 +1809,23 @@ const FlexRow = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1776
1809
|
}
|
|
1777
1810
|
}
|
|
1778
1811
|
const classNames = uuiCore.cx([
|
|
1779
|
-
css$
|
|
1812
|
+
css$1g.root,
|
|
1780
1813
|
'uui-flex-row',
|
|
1781
1814
|
props.onClick && uuiCore.uuiMarkers.clickable,
|
|
1782
1815
|
props.cx,
|
|
1783
1816
|
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 &&
|
|
1817
|
+
props.alignItems && css$1g.alignItems,
|
|
1818
|
+
props.justifyContent && css$1g.justifyContent,
|
|
1819
|
+
props.padding && css$1g.padding,
|
|
1820
|
+
props.vPadding && css$1g.vPadding,
|
|
1821
|
+
props.margin && css$1g.margin,
|
|
1822
|
+
props.topShadow && css$1g.topShadow,
|
|
1823
|
+
props.borderBottom && css$1g.borderBottom,
|
|
1824
|
+
props.borderTop && css$1g.borderTop,
|
|
1825
|
+
props.columnGap && css$1g.columnGap,
|
|
1826
|
+
props.rowGap && css$1g.rowGap,
|
|
1827
|
+
props.spacing && css$1g.spacing,
|
|
1828
|
+
props.background && `uui-flex-row-bg-${props.background}`,
|
|
1796
1829
|
]);
|
|
1797
1830
|
const style = {
|
|
1798
1831
|
...(props.alignItems && { '--uui-flex-row-align-items': props.alignItems }),
|
|
@@ -1810,32 +1843,32 @@ const FlexRow = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1810
1843
|
} }, props.children));
|
|
1811
1844
|
});
|
|
1812
1845
|
|
|
1813
|
-
var css$
|
|
1846
|
+
var css$1f = {"root":"XX2600","margin-24":"BvR97f","margin24":"BvR97f","padding-12":"DM8noW","padding12":"DM8noW","padding-24":"fTJPEO","padding24":"fTJPEO","shadow":"_4DLKBy","uui-surface-main":"P3uVJ-","uuiSurfaceMain":"P3uVJ-"};
|
|
1814
1847
|
|
|
1815
1848
|
const Panel = /* @__PURE__ */uuiCore.withMods(uuiComponents.VPanel, (props) => [
|
|
1816
1849
|
'uui-panel',
|
|
1817
|
-
css$
|
|
1818
|
-
props.shadow && css$
|
|
1819
|
-
props.margin && css$
|
|
1820
|
-
props.background && css$
|
|
1850
|
+
css$1f.root,
|
|
1851
|
+
props.shadow && css$1f.shadow,
|
|
1852
|
+
props.margin && css$1f['margin-' + props.margin],
|
|
1853
|
+
props.background && css$1f[`uui-${props.background}`],
|
|
1821
1854
|
]);
|
|
1822
1855
|
|
|
1823
|
-
var css$
|
|
1856
|
+
var css$1e = {"root":"bRFUkH"};
|
|
1824
1857
|
|
|
1825
1858
|
function applyTooltipMods(mods) {
|
|
1826
1859
|
return [
|
|
1827
|
-
css$
|
|
1860
|
+
css$1e.root,
|
|
1828
1861
|
`uui-color-${mods.color || 'inverted'}`,
|
|
1829
1862
|
];
|
|
1830
1863
|
}
|
|
1831
1864
|
const Tooltip = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Tooltip, applyTooltipMods);
|
|
1832
1865
|
|
|
1833
|
-
var css$
|
|
1866
|
+
var css$1d = {"root":"h4liyi"};
|
|
1834
1867
|
|
|
1835
1868
|
function applyLabeledInputMods(mods) {
|
|
1836
1869
|
return [
|
|
1837
1870
|
'uui-labeled-input',
|
|
1838
|
-
css$
|
|
1871
|
+
css$1d.root,
|
|
1839
1872
|
'uui-size-' + (mods.size || settings.labeledInput.sizes.default),
|
|
1840
1873
|
];
|
|
1841
1874
|
}
|
|
@@ -1847,7 +1880,7 @@ function applyLabeledInputProps(props) {
|
|
|
1847
1880
|
}
|
|
1848
1881
|
const LabeledInput = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.LabeledInput, applyLabeledInputMods, applyLabeledInputProps);
|
|
1849
1882
|
|
|
1850
|
-
var css$
|
|
1883
|
+
var css$1c = {"root":"QHm5Gk"};
|
|
1851
1884
|
|
|
1852
1885
|
function RadioGroup(props) {
|
|
1853
1886
|
const direction = props.direction || 'vertical';
|
|
@@ -1856,175 +1889,26 @@ function RadioGroup(props) {
|
|
|
1856
1889
|
props.onValueChange(newVal);
|
|
1857
1890
|
}
|
|
1858
1891
|
};
|
|
1859
|
-
return (React__namespace.createElement("fieldset", { ref: props.forwardedRef, className: uuiCore.cx(css$
|
|
1892
|
+
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
1893
|
const { id, name, renderName, ...restItemProps } = i;
|
|
1861
1894
|
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
1895
|
})));
|
|
1863
1896
|
}
|
|
1864
1897
|
|
|
1865
|
-
var css$
|
|
1898
|
+
var css$1b = {"root":"Jnt3ic"};
|
|
1866
1899
|
|
|
1867
1900
|
function applyScrollBarsMods() {
|
|
1868
1901
|
return [
|
|
1869
|
-
css$
|
|
1902
|
+
css$1b.root, 'uui-scroll-bars', 'uui-shadow-top', 'uui-shadow-bottom',
|
|
1870
1903
|
];
|
|
1871
1904
|
}
|
|
1872
1905
|
const ScrollBars = /* @__PURE__ */uuiCore.withMods(uuiComponents.ScrollBars, applyScrollBarsMods);
|
|
1873
1906
|
|
|
1874
|
-
var css$
|
|
1875
|
-
|
|
1876
|
-
var css$1b = {"root":"A-LcV7"};
|
|
1877
|
-
|
|
1878
|
-
const AvatarStack = /* @__PURE__ */uuiCore.withMods(uuiComponents.AvatarStack, () => [css$1b.root]);
|
|
1879
|
-
|
|
1880
|
-
var css$1a = {"root":"pI0XDB"};
|
|
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":"Ftvz0Y"};
|
|
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":"tPKiRI","uui-spinner":"UuVbeS","uuiSpinner":"UuVbeS"};
|
|
1937
|
-
|
|
1938
|
-
function applySpinnerMods() {
|
|
1939
|
-
return [css$18.root, 'uui-spinner'];
|
|
1940
|
-
}
|
|
1941
|
-
const Spinner = /* @__PURE__ */uuiCore.withMods(uuiComponents.Spinner, applySpinnerMods);
|
|
1942
|
-
|
|
1943
|
-
var css$17 = {"root":"bVhVLB","page":"tRIKIa","spacer":"vs76XL","mode-ghost":"_3bmhcC","modeGhost":"_3bmhcC"};
|
|
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":"LFS9pC","progress-bar":"ASDnK-","progressBar":"ASDnK-","progressBar-indeterminate":"ERsYQL","progressBarIndeterminate":"ERsYQL","size-12":"ZnkekL","size12":"ZnkekL","size-18":"_9h6xEf","size18":"_9h6xEf","size-24":"rR20bm","size24":"rR20bm"};
|
|
1961
|
-
|
|
1962
|
-
const IndeterminateBar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
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":"jS6oxI","striped":"_04-nOH","animate-stripes":"w4N9Ja","animateStripes":"w4N9Ja","size-12":"PXYEHp","size12":"PXYEHp","size-18":"XPWZ-q","size18":"XPWZ-q","size-24":"_18XToF","size24":"_18XToF"};
|
|
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":"X0tApn"};
|
|
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":"EjAjHC"};
|
|
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":"LtM8AD","dragHandle":"LtM8AD","icon-container":"skSuXc","iconContainer":"skSuXc"};
|
|
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
|
-
}
|
|
1907
|
+
var css$1a = {"scroll-container":"_21BEMc","scrollContainer":"_21BEMc","list-container":"_4rLwv4","listContainer":"_4rLwv4"};
|
|
2024
1908
|
|
|
2025
|
-
var css$
|
|
1909
|
+
var css$19 = {"root":"CrbNdl"};
|
|
2026
1910
|
|
|
2027
|
-
const Blocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.Blocker, () => [css$
|
|
1911
|
+
const Blocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.Blocker, () => [css$19.root], () => ({ renderSpinner: settings.blocker.renderSpinner }));
|
|
2028
1912
|
|
|
2029
1913
|
const VirtualList = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
2030
1914
|
const { listContainerRef, offsetY, handleScroll, estimatedHeight, scrollContainerRef, } = uuiCore.useVirtualList({
|
|
@@ -2038,7 +1922,7 @@ const VirtualList = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
2038
1922
|
const scrollShadows = uuiCore.useScrollShadows({ root: scrollContainerRef.current });
|
|
2039
1923
|
const renderRows = () => props.renderRows?.({
|
|
2040
1924
|
listContainerRef, estimatedHeight, offsetY, scrollShadows,
|
|
2041
|
-
}) || (React__namespace.createElement("div", { className: css$
|
|
1925
|
+
}) || (React__namespace.createElement("div", { className: css$1a.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
2042
1926
|
React__namespace.createElement("div", { ref: listContainerRef, role: props.role, style: { marginTop: offsetY } }, props.rows)));
|
|
2043
1927
|
const renderView = ({ style }) => (React__namespace.createElement(VirtualListView, { isLoading: props.isLoading, style: style, rawProps: props.rawProps }));
|
|
2044
1928
|
const scrollBarsRef = React__namespace.useCallback((scrollbars) => {
|
|
@@ -2046,7 +1930,7 @@ const VirtualList = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
2046
1930
|
return;
|
|
2047
1931
|
scrollContainerRef.current = scrollbars.container.firstChild;
|
|
2048
1932
|
}, []);
|
|
2049
|
-
return (React__namespace.createElement(ScrollBars, { cx: uuiCore.cx(css$
|
|
1933
|
+
return (React__namespace.createElement(ScrollBars, { cx: uuiCore.cx(css$1a.scrollContainer, props.cx, {
|
|
2050
1934
|
[uuiCore.uuiMarkers.scrolledLeft]: scrollShadows.horizontalLeft,
|
|
2051
1935
|
[uuiCore.uuiMarkers.scrolledRight]: scrollShadows.horizontalRight,
|
|
2052
1936
|
[uuiCore.uuiMarkers.scrolledTop]: scrollShadows.verticalTop,
|
|
@@ -2068,7 +1952,7 @@ const VirtualListView = /* @__PURE__ */React__namespace.forwardRef((props, ref)
|
|
|
2068
1952
|
React__namespace.createElement(Blocker, { isEnabled: props.isLoading })));
|
|
2069
1953
|
});
|
|
2070
1954
|
|
|
2071
|
-
var css$
|
|
1955
|
+
var css$18 = {"root":"xIDJ-f"};
|
|
2072
1956
|
|
|
2073
1957
|
function CheckboxGroup(props) {
|
|
2074
1958
|
const currentValue = props.value || [];
|
|
@@ -2084,16 +1968,16 @@ function CheckboxGroup(props) {
|
|
|
2084
1968
|
}
|
|
2085
1969
|
props.onValueChange(newSelection);
|
|
2086
1970
|
};
|
|
2087
|
-
return (React__namespace.createElement("fieldset", { ref: props.forwardedRef, className: uuiCore.cx(css$
|
|
1971
|
+
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
1972
|
const { id, name, renderName, ...restItemProps } = i;
|
|
2089
1973
|
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
1974
|
})));
|
|
2091
1975
|
}
|
|
2092
1976
|
|
|
2093
|
-
var css
|
|
1977
|
+
var css$17 = {"root":"_4kZHm6","modal-blocker":"ohNrPY","modalBlocker":"ohNrPY","animateModalBlocker":"_6-O3xs","modal":"XMfhta","modal-footer":"_6MQnPd","modalFooter":"_6MQnPd","border-top":"_-7nubK","borderTop":"_-7nubK","modal-header":"_8bQQrQ","modalHeader":"_8bQQrQ","border-bottom":"b1eTCS","borderBottom":"b1eTCS"};
|
|
2094
1978
|
|
|
2095
|
-
const ModalBlocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalBlocker, () => [css
|
|
2096
|
-
const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, () => [css
|
|
1979
|
+
const ModalBlocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalBlocker, () => [css$17.modalBlocker]);
|
|
1980
|
+
const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, () => [css$17.root, css$17.modal], (props) => {
|
|
2097
1981
|
const width = props.width;
|
|
2098
1982
|
const height = props.height || 'auto';
|
|
2099
1983
|
const maxHeight = uuiCore.isMobile() ? 'var(--uui-modals-mobile-max-height)' : (props.maxHeight || 'var(--uui-modals-max-height)');
|
|
@@ -2107,7 +1991,7 @@ const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, (
|
|
|
2107
1991
|
};
|
|
2108
1992
|
});
|
|
2109
1993
|
function ModalHeader(props) {
|
|
2110
|
-
return (React__namespace.default.createElement("div", { className: cx__default.default(css
|
|
1994
|
+
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
1995
|
...props.rawProps?.style,
|
|
2112
1996
|
} },
|
|
2113
1997
|
props.title && (React__namespace.default.createElement("div", { className: cx__default.default('uui-modal-title', 'uui-typography') }, props.title)),
|
|
@@ -2117,7 +2001,7 @@ function ModalHeader(props) {
|
|
|
2117
2001
|
React__namespace.default.createElement(IconButton, { rawProps: { 'aria-label': 'Close modal' }, icon: settings.modal.icons.closeIcon, onClick: props.onClose })))));
|
|
2118
2002
|
}
|
|
2119
2003
|
function ModalFooter(props) {
|
|
2120
|
-
return (React__namespace.default.createElement("div", { className: cx__default.default(css
|
|
2004
|
+
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
2005
|
...props.rawProps?.style,
|
|
2122
2006
|
} }, props.children));
|
|
2123
2007
|
}
|
|
@@ -2280,7 +2164,7 @@ const TREE_SHAKEABLE_INIT = () => ({
|
|
|
2280
2164
|
});
|
|
2281
2165
|
const i18n = /* @__PURE__ */TREE_SHAKEABLE_INIT();
|
|
2282
2166
|
|
|
2283
|
-
var css$
|
|
2167
|
+
var css$16 = {"root":"_83r3qq","icon-wrapper":"j1pR0c","iconWrapper":"j1pR0c","action-wrapper":"o0SgNN","actionWrapper":"o0SgNN","action-link":"AXXFs0","actionLink":"AXXFs0","close-icon":"c0929B","closeIcon":"c0929B","main-path":"_2UNvbp","mainPath":"_2UNvbp","content":"-nee61","close-wrapper":"wd7bda","closeWrapper":"wd7bda","notification-wrapper":"tVsCh-","notificationWrapper":"tVsCh-","clear-button":"YGyp5J","clearButton":"YGyp5J"};
|
|
2284
2168
|
|
|
2285
2169
|
const NotificationCard = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
2286
2170
|
const notificationCardNode = React__namespace.default.useRef(null);
|
|
@@ -2293,15 +2177,15 @@ const NotificationCard = /* @__PURE__ */React__namespace.default.forwardRef((pro
|
|
|
2293
2177
|
notificationCardNode.current?.removeEventListener('mouseleave', props.refreshTimer);
|
|
2294
2178
|
};
|
|
2295
2179
|
}, []);
|
|
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$
|
|
2180
|
+
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 },
|
|
2181
|
+
React__namespace.default.createElement("div", { className: css$16.mainPath },
|
|
2182
|
+
props.icon && (React__namespace.default.createElement("div", { className: css$16.iconWrapper },
|
|
2299
2183
|
React__namespace.default.createElement(uuiComponents.IconContainer, { size: 24, icon: props.icon }))),
|
|
2300
|
-
React__namespace.default.createElement("div", { className: css$
|
|
2184
|
+
React__namespace.default.createElement("div", { className: css$16.content },
|
|
2301
2185
|
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$
|
|
2186
|
+
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 })))))),
|
|
2187
|
+
props.onClose && (React__namespace.default.createElement("div", { className: css$16.closeWrapper },
|
|
2188
|
+
React__namespace.default.createElement(IconButton, { icon: settings.notificationCard.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$16.closeIcon }))))));
|
|
2305
2189
|
});
|
|
2306
2190
|
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
2191
|
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 +2193,11 @@ const HintNotification = /* @__PURE__ */React__namespace.default.forwardRef((pro
|
|
|
2309
2193
|
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
2194
|
function ClearNotification() {
|
|
2311
2195
|
const uuiCtx = uuiCore.useUuiContext();
|
|
2312
|
-
return (React__namespace.default.createElement("div", { className: cx__default.default(css$
|
|
2196
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default(css$16.notificationWrapper, css$16.clearButton) },
|
|
2313
2197
|
React__namespace.default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => uuiCtx.uuiNotifications.clearAll() })));
|
|
2314
2198
|
}
|
|
2315
2199
|
|
|
2316
|
-
var css$
|
|
2200
|
+
var css$15 = {"footer":"F38tlt"};
|
|
2317
2201
|
|
|
2318
2202
|
class ConfirmationModal extends React__namespace.Component {
|
|
2319
2203
|
render() {
|
|
@@ -2325,7 +2209,7 @@ class ConfirmationModal extends React__namespace.Component {
|
|
|
2325
2209
|
React__namespace.createElement(ModalWindow, { width: 420 },
|
|
2326
2210
|
React__namespace.createElement(ModalHeader, { borderBottom: true, title: this.props.caption, onClose: () => this.props.abort() }),
|
|
2327
2211
|
React__namespace.createElement(ScrollBars, null, bodyContent),
|
|
2328
|
-
React__namespace.createElement(ModalFooter, { cx: css$
|
|
2212
|
+
React__namespace.createElement(ModalFooter, { cx: css$15.footer },
|
|
2329
2213
|
this.props.hideCancelButton || (React__namespace.createElement(Button, { caption: i18n.form.modals.discardButton, onClick: () => this.props.success(false), fill: "outline", color: "secondary" })),
|
|
2330
2214
|
React__namespace.createElement(Button, { caption: i18n.form.modals.saveButton, onClick: () => this.props.success(true), color: "primary" })))));
|
|
2331
2215
|
}
|
|
@@ -2355,7 +2239,7 @@ function useReliableForceUpdate() {
|
|
|
2355
2239
|
return red[1];
|
|
2356
2240
|
}
|
|
2357
2241
|
|
|
2358
|
-
var css$
|
|
2242
|
+
var css$14 = {"root":"lDd8af","timepicker-input":"_3PsexC","timepickerInput":"_3PsexC","ltr-always":"WRdAft","ltrAlways":"WRdAft"};
|
|
2359
2243
|
|
|
2360
2244
|
const uuiTimePicker = {
|
|
2361
2245
|
container: 'uui-timepicker-container',
|
|
@@ -2394,8 +2278,8 @@ function TimePickerBody(props) {
|
|
|
2394
2278
|
const minutesToSubtract = value.minute() % minutesStep === 0 ? minutesStep : value.minute() % minutesStep;
|
|
2395
2279
|
onMinutesChange(value.subtract(minutesToSubtract, 'm').minute());
|
|
2396
2280
|
};
|
|
2397
|
-
return (React__namespace.createElement("div", { className: uuiCore.cx(css$
|
|
2398
|
-
React__namespace.createElement("div", { className: css$
|
|
2281
|
+
return (React__namespace.createElement("div", { className: uuiCore.cx(css$14.root, uuiTimePicker.container, props.cx), ref: props.forwardedRef, ...props.rawProps },
|
|
2282
|
+
React__namespace.createElement("div", { className: css$14.ltrAlways },
|
|
2399
2283
|
React__namespace.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
2400
2284
|
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
2285
|
React__namespace.createElement(uuiComponents.NumericInput, { cx: uuiTimePicker.input, onValueChange: onHoursChange, value: +(uuiDayjs.dayjs()
|
|
@@ -2538,7 +2422,7 @@ function TimePicker(props) {
|
|
|
2538
2422
|
state.value && state.inputValue && saveTime(state.value);
|
|
2539
2423
|
};
|
|
2540
2424
|
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$
|
|
2425
|
+
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
2426
|
};
|
|
2543
2427
|
const renderBody = (bodyProps) => {
|
|
2544
2428
|
const { forwardedRef, onValueChange, ...timePickerBodyProps } = props;
|
|
@@ -2548,27 +2432,27 @@ function TimePicker(props) {
|
|
|
2548
2432
|
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
2433
|
}
|
|
2550
2434
|
|
|
2551
|
-
var css$
|
|
2435
|
+
var css$13 = {"root":"BBGglx"};
|
|
2552
2436
|
|
|
2553
2437
|
function applyInputAddonMods() {
|
|
2554
2438
|
return [
|
|
2555
|
-
css$
|
|
2439
|
+
css$13.root,
|
|
2556
2440
|
];
|
|
2557
2441
|
}
|
|
2558
2442
|
const InputAddon = /* @__PURE__ */uuiCore.withMods(uuiComponents.InputAddon, applyInputAddonMods);
|
|
2559
2443
|
|
|
2560
|
-
var css$
|
|
2444
|
+
var css$12 = {"root":"q-Npk1"};
|
|
2561
2445
|
|
|
2562
2446
|
function applySliderMods() {
|
|
2563
|
-
return [css$
|
|
2447
|
+
return [css$12.root, 'uui-color-neutral'];
|
|
2564
2448
|
}
|
|
2565
2449
|
const Slider = /* @__PURE__ */uuiCore.withMods(uuiComponents.Slider, applySliderMods);
|
|
2566
2450
|
|
|
2567
|
-
var css$
|
|
2451
|
+
var css$11 = {"root":"oVtrpi","tooltip":"nbALtz"};
|
|
2568
2452
|
|
|
2569
2453
|
function applyRatingMods(mods) {
|
|
2570
2454
|
return [
|
|
2571
|
-
css$
|
|
2455
|
+
css$11.root,
|
|
2572
2456
|
`uui-size-${mods.size || settings.rating.sizes.default}`,
|
|
2573
2457
|
];
|
|
2574
2458
|
}
|
|
@@ -2578,7 +2462,7 @@ const Rating = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Rating,
|
|
|
2578
2462
|
Tooltip,
|
|
2579
2463
|
}));
|
|
2580
2464
|
|
|
2581
|
-
var css$
|
|
2465
|
+
var css$10 = {"root":"pzatO3","container":"WMyq4h"};
|
|
2582
2466
|
|
|
2583
2467
|
const defaultFormat = 'MMM D, YYYY';
|
|
2584
2468
|
const valueFormat = 'YYYY-MM-DD';
|
|
@@ -2782,21 +2666,21 @@ function DatePickerHeader({ navIconLeft, navIconRight, value: { month, view }, o
|
|
|
2782
2666
|
}, [view, month]);
|
|
2783
2667
|
const disablePrev = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getPrevYearsList(month));
|
|
2784
2668
|
const disableNext = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getNextYearsList(month));
|
|
2785
|
-
return (React__namespace.createElement("div", { className: cx__default.default(css$
|
|
2669
|
+
return (React__namespace.createElement("div", { className: cx__default.default(css$10.root, uuiHeader.container, cx__default.default) },
|
|
2786
2670
|
React__namespace.createElement("header", { className: uuiHeader.headerNav },
|
|
2787
2671
|
React__namespace.createElement(Button, { icon: navIconLeft || settings.datePicker.icons.body.prevIcon, color: "secondary", fill: "ghost", cx: uuiHeader.navIconLeft, onClick: !isDisabled && (() => onLeftNavigationArrow()), isDisabled: disablePrev }),
|
|
2788
2672
|
React__namespace.createElement(Button, { caption: title, fill: "ghost", cx: uuiHeader.navTitle, onClick: !isDisabled && (() => onCaptionClick(view)) }),
|
|
2789
2673
|
React__namespace.createElement(Button, { icon: navIconRight || settings.datePicker.icons.body.nextIcon, color: "secondary", fill: "ghost", cx: uuiHeader.navIconRight, onClick: !isDisabled && (() => onRightNavigationArrow()), isDisabled: disableNext }))));
|
|
2790
2674
|
}
|
|
2791
2675
|
|
|
2792
|
-
var css
|
|
2676
|
+
var css$$ = {"root":"EIB1Bp"};
|
|
2793
2677
|
|
|
2794
2678
|
function applyDateSelectionMods() {
|
|
2795
|
-
return [css
|
|
2679
|
+
return [css$$.root, `uui-size-${settings.datePicker.sizes.body}`];
|
|
2796
2680
|
}
|
|
2797
2681
|
const Calendar = /* @__PURE__ */uuiCore.withMods(uuiComponents.Calendar, applyDateSelectionMods);
|
|
2798
2682
|
|
|
2799
|
-
var css$
|
|
2683
|
+
var css$_ = {"root":"_6Fn7-S"};
|
|
2800
2684
|
|
|
2801
2685
|
const uuiDatePickerBody = {
|
|
2802
2686
|
wrapper: 'uui-datepicker-body-wrapper',
|
|
@@ -2840,7 +2724,7 @@ function StatelessDatePickerBodyComp({ renderDay, isHoliday, cx: classes, filter
|
|
|
2840
2724
|
}
|
|
2841
2725
|
};
|
|
2842
2726
|
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$
|
|
2727
|
+
React__namespace.default.createElement("div", { className: uuiCore.cx(css$_.root, uuiDatePickerBody.wrapper) },
|
|
2844
2728
|
React__namespace.default.createElement(DatePickerHeader, { value: {
|
|
2845
2729
|
view,
|
|
2846
2730
|
month,
|
|
@@ -2922,7 +2806,7 @@ function DatePickerComponent(props, ref) {
|
|
|
2922
2806
|
}
|
|
2923
2807
|
const DatePicker = /* @__PURE__ */React__namespace.default.forwardRef(DatePickerComponent);
|
|
2924
2808
|
|
|
2925
|
-
var css$
|
|
2809
|
+
var css$Z = {"date-input":"ODsX3x","dateInput":"ODsX3x","root":"FOz-TU","separator":"FEYDRc"};
|
|
2926
2810
|
|
|
2927
2811
|
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
2812
|
const [inputValue, setInputValue] = React.useState(toCustomDateRangeFormat(value, format));
|
|
@@ -2965,15 +2849,15 @@ const RangeDatePickerInput = /* @__PURE__ */React.forwardRef(({ isDisabled, isIn
|
|
|
2965
2849
|
const clearAllowed = !disableClear && inputValue.from && inputValue.to;
|
|
2966
2850
|
return (
|
|
2967
2851
|
// 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$
|
|
2852
|
+
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 },
|
|
2853
|
+
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 }),
|
|
2854
|
+
React__namespace.default.createElement("div", { className: css$Z.separator }),
|
|
2855
|
+
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
2856
|
onValueChange(defaultRangeValue);
|
|
2973
2857
|
} : 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
2858
|
});
|
|
2975
2859
|
|
|
2976
|
-
var css$
|
|
2860
|
+
var css$Y = {"root":"ITOzlb"};
|
|
2977
2861
|
|
|
2978
2862
|
const uuiPresets = {
|
|
2979
2863
|
container: 'uui-presets-container',
|
|
@@ -2988,12 +2872,12 @@ const getPresets = (presets) => {
|
|
|
2988
2872
|
})).sort((a, b) => a.order - b.order);
|
|
2989
2873
|
};
|
|
2990
2874
|
function CalendarPresets(props) {
|
|
2991
|
-
return (React__namespace.createElement("div", { ref: props.forwardedRef, className: uuiCore.cx(uuiPresets.container, css$
|
|
2875
|
+
return (React__namespace.createElement("div", { ref: props.forwardedRef, className: uuiCore.cx(uuiPresets.container, css$Y.root, props.cx), ...props.rawProps },
|
|
2992
2876
|
React__namespace.createElement("div", { className: uuiPresets.header }, "Presets"),
|
|
2993
2877
|
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
2878
|
}
|
|
2995
2879
|
|
|
2996
|
-
var css$
|
|
2880
|
+
var css$X = {"root":"AN--PP","container":"CLMCQD","day-selection":"OJlODS","daySelection":"OJlODS","from-picker":"iXDN6y","fromPicker":"iXDN6y","to-picker":"xgZccC","toPicker":"xgZccC","bodes-wrapper":"eoPBD7","bodesWrapper":"eoPBD7","blocker":"guOOWS"};
|
|
2997
2881
|
|
|
2998
2882
|
const uuiRangeDatePickerBody = {
|
|
2999
2883
|
inRange: 'uui-range-datepicker-in-range',
|
|
@@ -3134,21 +3018,21 @@ function RangeDatePickerBodyComp(props, ref) {
|
|
|
3134
3018
|
});
|
|
3135
3019
|
}, presets: presets })));
|
|
3136
3020
|
};
|
|
3137
|
-
return (React__namespace.default.createElement("div", { ref: ref, className: uuiCore.cx(css$
|
|
3138
|
-
React__namespace.default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$
|
|
3021
|
+
return (React__namespace.default.createElement("div", { ref: ref, className: uuiCore.cx(css$X.root, uuiDatePickerBodyBase.container, props.cx), ...props.rawProps },
|
|
3022
|
+
React__namespace.default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$X.daySelection, css$X.container], alignItems: "top" },
|
|
3139
3023
|
React__namespace.default.createElement(FlexCell, { width: "auto" },
|
|
3140
3024
|
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$
|
|
3025
|
+
React__namespace.default.createElement(FlexRow, { cx: css$X.bodesWrapper, alignItems: "top" },
|
|
3026
|
+
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
3027
|
setMonth(m);
|
|
3144
3028
|
}, 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$
|
|
3029
|
+
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
3030
|
setMonth(m.subtract(1, 'month'));
|
|
3147
3031
|
}, onViewChange: (v) => setView(v), filter: props.filter, renderDay: props.renderDay || renderDay, isHoliday: props.isHoliday, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'from' }),
|
|
3148
3032
|
view !== 'DAY_SELECTION' && (React__namespace.default.createElement("div", { style: {
|
|
3149
3033
|
left: activeMonth === 'from' ? '50%' : undefined,
|
|
3150
3034
|
right: activeMonth === 'to' ? '50%' : undefined,
|
|
3151
|
-
}, className: css$
|
|
3035
|
+
}, className: css$X.blocker }))),
|
|
3152
3036
|
props.presets && renderPresets(props.presets)),
|
|
3153
3037
|
props.renderFooter && props.renderFooter()))));
|
|
3154
3038
|
}
|
|
@@ -3168,7 +3052,7 @@ const getDayCX = (day, selectedDate) => {
|
|
|
3168
3052
|
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
3053
|
};
|
|
3170
3054
|
|
|
3171
|
-
var css$
|
|
3055
|
+
var css$W = {"dropdown-container":"_3H7GWU","dropdownContainer":"_3H7GWU"};
|
|
3172
3056
|
|
|
3173
3057
|
const modifiers = [{
|
|
3174
3058
|
name: 'offset',
|
|
@@ -3212,7 +3096,7 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
3212
3096
|
}
|
|
3213
3097
|
};
|
|
3214
3098
|
const renderBody = (renderProps) => {
|
|
3215
|
-
return (React__namespace.default.createElement(DropdownContainer, { ...renderProps, cx: cx__default.default(css$
|
|
3099
|
+
return (React__namespace.default.createElement(DropdownContainer, { ...renderProps, cx: cx__default.default(css$W.dropdownContainer), shards: [targetRef], returnFocus: true },
|
|
3216
3100
|
React__namespace.default.createElement(FlexRow, null,
|
|
3217
3101
|
React__namespace.default.createElement(RangeDatePickerBody, { cx: cx__default.default(props.bodyCx), value: {
|
|
3218
3102
|
selectedDate: _value,
|
|
@@ -3236,30 +3120,30 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
3236
3120
|
}
|
|
3237
3121
|
const RangeDatePicker = /* @__PURE__ */React__namespace.default.forwardRef(RangeDatePickerComponent);
|
|
3238
3122
|
|
|
3239
|
-
var css$
|
|
3123
|
+
var css$V = {"root":"SOTr48","blocker":"s4VrrJ","marker":"_60hb7Q","top":"qkvN9e","bottom":"T3leQU","left":"q4VQqs","right":"K-CN7Z","inside":"WOfKhG"};
|
|
3240
3124
|
|
|
3241
3125
|
function DropMarker(props) {
|
|
3242
3126
|
return props.isDndInProgress
|
|
3243
3127
|
? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
3244
|
-
props.enableBlocker && React__namespace.createElement("div", { className: css$
|
|
3128
|
+
props.enableBlocker && React__namespace.createElement("div", { className: css$V.blocker }),
|
|
3245
3129
|
React__namespace.createElement("div", { className: cx__default.default([
|
|
3246
|
-
css$
|
|
3247
|
-
css$
|
|
3248
|
-
css$
|
|
3130
|
+
css$V.root,
|
|
3131
|
+
css$V.marker,
|
|
3132
|
+
css$V[props.position],
|
|
3249
3133
|
props?.cx,
|
|
3250
3134
|
]) })))
|
|
3251
3135
|
: null;
|
|
3252
3136
|
}
|
|
3253
3137
|
|
|
3254
|
-
var css$
|
|
3138
|
+
var css$U = {"root":"_5yyIl6","line-height":"OhcYc1","lineHeight":"OhcYc1","font-size":"VKjIgU","fontSize":"VKjIgU"};
|
|
3255
3139
|
|
|
3256
3140
|
function applyTextMods(mods) {
|
|
3257
3141
|
return [
|
|
3258
|
-
css$
|
|
3142
|
+
css$U.root,
|
|
3259
3143
|
'uui-text',
|
|
3260
3144
|
`uui-size-${mods.size || settings.text.sizes.default}`,
|
|
3261
|
-
(mods.size !== 'none' || mods.lineHeight) && css$
|
|
3262
|
-
(mods.size !== 'none' || mods.fontSize) && css$
|
|
3145
|
+
(mods.size !== 'none' || mods.lineHeight) && css$U.lineHeight,
|
|
3146
|
+
(mods.size !== 'none' || mods.fontSize) && css$U.fontSize,
|
|
3263
3147
|
`uui-color-${mods.color || 'primary'}`,
|
|
3264
3148
|
`uui-font-weight-${mods.fontWeight || '400'}`,
|
|
3265
3149
|
`uui-font-style-${mods.fontStyle || 'normal'}`,
|
|
@@ -3278,33 +3162,18 @@ const Text = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Text, appl
|
|
|
3278
3162
|
};
|
|
3279
3163
|
});
|
|
3280
3164
|
|
|
3281
|
-
var css$L = {"root":"vH0avy","loading-word":"YgeacI","loadingWord":"YgeacI","animated-loading":"_3gO8sd","animatedLoading":"_3gO8sd","skeleton_loading":"HsK8mv","skeletonLoading":"HsK8mv"};
|
|
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
3165
|
const RichTextView = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.RichTextView, (mods) => ['uui-typography', `uui-typography-size-${mods.size || settings.richTextView.sizes.default}`]);
|
|
3299
3166
|
|
|
3300
|
-
var css$
|
|
3167
|
+
var css$T = {"modal":"_4Y0p3-","search-wrapper":"aDAYG6","searchWrapper":"aDAYG6","no-data":"meqgGV","noData":"meqgGV","type-search-to-load-size-24":"AjvNyS","typeSearchToLoadSize24":"AjvNyS"};
|
|
3301
3168
|
|
|
3302
3169
|
class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
3303
3170
|
constructor() {
|
|
3304
3171
|
super(...arguments);
|
|
3305
3172
|
this.lens = uuiCore.Lens.onEditableComponent(this);
|
|
3306
3173
|
this.searchLens = this.lens.prop('search').default('');
|
|
3307
|
-
this.getSearchSize = () => (uuiCore.isMobile()
|
|
3174
|
+
this.getSearchSize = () => (uuiCore.isMobile()
|
|
3175
|
+
? settings.pickerInput.sizes.body.mobileSearchInput
|
|
3176
|
+
: settings.pickerInput.sizes.body.getSearchSize({ pickerSize: this.props.searchSize }));
|
|
3308
3177
|
}
|
|
3309
3178
|
renderEmpty() {
|
|
3310
3179
|
const search = this.searchLens.get();
|
|
@@ -3316,7 +3185,7 @@ class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
|
3316
3185
|
});
|
|
3317
3186
|
}
|
|
3318
3187
|
if (this.props.minCharsToSearch && search.length < this.props.minCharsToSearch) {
|
|
3319
|
-
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$
|
|
3188
|
+
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$T.noData, grow: 1, textAlign: "center" },
|
|
3320
3189
|
React__namespace.default.createElement(Text, { size: this.props.searchSize }, i18n.dataPickerBody.typeSearchToLoadMessage)));
|
|
3321
3190
|
}
|
|
3322
3191
|
if (this.props.rows.length === 0) {
|
|
@@ -3331,24 +3200,24 @@ class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
|
3331
3200
|
}
|
|
3332
3201
|
// Default no record found message for 'NOT_FOUND' and "NO_RECORDS" reason
|
|
3333
3202
|
// TODO: make separate messages for 'NOT_FOUND' and "NO_RECORDS" reason
|
|
3334
|
-
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$
|
|
3203
|
+
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$T.noData, grow: 1, textAlign: "center" },
|
|
3335
3204
|
React__namespace.default.createElement(Text, { size: this.props.searchSize }, i18n.dataPickerBody.noRecordsMessage)));
|
|
3336
3205
|
}
|
|
3337
3206
|
}
|
|
3338
3207
|
render() {
|
|
3339
3208
|
const searchSize = this.getSearchSize();
|
|
3340
3209
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
3341
|
-
this.showSearch() && (React__namespace.default.createElement("div", { key: "search", className: uuiCore.cx(css$
|
|
3210
|
+
this.showSearch() && (React__namespace.default.createElement("div", { key: "search", className: uuiCore.cx(css$T.searchWrapper, 'uui-picker_input-body-search') },
|
|
3342
3211
|
React__namespace.default.createElement(uuiComponents.FlexCell, { grow: 1 },
|
|
3343
3212
|
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$
|
|
3213
|
+
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
3214
|
// 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
3215
|
// we fix this state on next render and shouldn't show empty state.
|
|
3347
3216
|
? 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
3217
|
}
|
|
3349
3218
|
}
|
|
3350
3219
|
|
|
3351
|
-
var css$
|
|
3220
|
+
var css$S = {"footer":"KGxzzk"};
|
|
3352
3221
|
|
|
3353
3222
|
function DataPickerFooterImpl(props) {
|
|
3354
3223
|
const { search, clearSelection, view, showSelected, selectionMode, isSearchTooShort, } = props;
|
|
@@ -3362,7 +3231,7 @@ function DataPickerFooterImpl(props) {
|
|
|
3362
3231
|
const isSearching = search?.length;
|
|
3363
3232
|
const hideFooter = (rowsCount === 0 && !hasSelection) || isSearching || (isSinglePicker && props.disableClear);
|
|
3364
3233
|
const showClear = !props.disableClear && (isSinglePicker ? true : (!view.selectAll || hasSelection));
|
|
3365
|
-
return !hideFooter && (React__namespace.default.createElement(FlexRow, { cx: css$
|
|
3234
|
+
return !hideFooter && (React__namespace.default.createElement(FlexRow, { cx: css$S.footer },
|
|
3366
3235
|
!isSinglePicker && !isSearchTooShort && ( // Show this switch only for multi mode and when some rows rendered
|
|
3367
3236
|
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
3237
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
@@ -3374,17 +3243,159 @@ function DataPickerFooterImpl(props) {
|
|
|
3374
3243
|
}
|
|
3375
3244
|
const DataPickerFooter = /* @__PURE__ */React__namespace.default.memo(DataPickerFooterImpl);
|
|
3376
3245
|
|
|
3377
|
-
var css$
|
|
3246
|
+
var css$R = {"header":"iX--pi","title":"_5QYG8c","close":"DLQmLG"};
|
|
3378
3247
|
|
|
3379
3248
|
const DataPickerHeaderImpl = (props) => {
|
|
3380
3249
|
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$
|
|
3250
|
+
return (React__namespace.default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: [css$R.header, 'uui-picker_input-body-header'] },
|
|
3251
|
+
React__namespace.default.createElement("div", { className: css$R.title }, title),
|
|
3252
|
+
React__namespace.default.createElement(IconButton, { icon: settings.pickerInput.icons.body.pickerBodyMobileHeaderCloseIcon, onClick: () => props.close?.(), cx: css$R.close })));
|
|
3384
3253
|
};
|
|
3385
3254
|
const DataPickerHeader = /* @__PURE__ */React__namespace.default.memo(DataPickerHeaderImpl);
|
|
3386
3255
|
|
|
3387
|
-
var css$
|
|
3256
|
+
var css$Q = {"root":"doFse3"};
|
|
3257
|
+
|
|
3258
|
+
const AvatarStack = /* @__PURE__ */uuiCore.withMods(uuiComponents.AvatarStack, () => [css$Q.root]);
|
|
3259
|
+
|
|
3260
|
+
var css$P = {"root":"W43bX5"};
|
|
3261
|
+
|
|
3262
|
+
const DEFAULT_FILL = 'solid';
|
|
3263
|
+
function applyBadgeMods(mods) {
|
|
3264
|
+
return [
|
|
3265
|
+
'uui-badge',
|
|
3266
|
+
css$P.root,
|
|
3267
|
+
`uui-size-${mods.size || settings.badge.sizes.default}`,
|
|
3268
|
+
`uui-fill-${mods.fill || DEFAULT_FILL}`,
|
|
3269
|
+
`uui-color-${mods.color || 'info'}`,
|
|
3270
|
+
];
|
|
3271
|
+
}
|
|
3272
|
+
const Badge = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
3273
|
+
const styles = [applyBadgeMods(props), props.cx];
|
|
3274
|
+
const DropdownIcon = props.dropdownIcon ? props.dropdownIcon : settings.badge.icons.dropdownIcon;
|
|
3275
|
+
return (React__namespace.default.createElement(uuiComponents.Clickable, { ...props, rawProps: {
|
|
3276
|
+
'aria-haspopup': props.isDropdown,
|
|
3277
|
+
'aria-expanded': props.isOpen,
|
|
3278
|
+
...props.rawProps,
|
|
3279
|
+
}, cx: styles, ref: ref },
|
|
3280
|
+
(props.indicator && props.fill === 'outline') && (React__namespace.default.createElement("div", { className: "uui-indicator" })),
|
|
3281
|
+
props.icon && props.iconPosition !== 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
3282
|
+
props.caption && (React__namespace.default.createElement("div", { className: uuiCore.uuiElement.caption }, props.caption)),
|
|
3283
|
+
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 })),
|
|
3284
|
+
props.icon && props.iconPosition === 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
3285
|
+
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
3286
|
+
});
|
|
3287
|
+
|
|
3288
|
+
var css$O = {"root":"jfUF11"};
|
|
3289
|
+
|
|
3290
|
+
function applyTagMods(props) {
|
|
3291
|
+
return [
|
|
3292
|
+
css$O.root,
|
|
3293
|
+
`uui-size-${props.size || settings.tag.sizes.default}`,
|
|
3294
|
+
`uui-color-${props.color || 'neutral'}`,
|
|
3295
|
+
`uui-fill-${props.fill || 'solid'}`,
|
|
3296
|
+
'uui-tag',
|
|
3297
|
+
];
|
|
3298
|
+
}
|
|
3299
|
+
const Tag = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
3300
|
+
const styles = [applyTagMods(props), props.cx];
|
|
3301
|
+
const ClearIcon = props.clearIcon ? props.clearIcon : settings.tag.icons.clearIcon;
|
|
3302
|
+
const DropdownIcon = props.dropdownIcon ? props.dropdownIcon : settings.tag.icons.dropdownIcon;
|
|
3303
|
+
return (React__namespace.default.createElement(uuiComponents.Clickable, { ...props, rawProps: {
|
|
3304
|
+
'aria-haspopup': props.isDropdown,
|
|
3305
|
+
'aria-expanded': props.isOpen,
|
|
3306
|
+
...props.rawProps,
|
|
3307
|
+
}, cx: styles, ref: ref },
|
|
3308
|
+
props.icon && props.iconPosition !== 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
3309
|
+
props.caption && (React__namespace.default.createElement("div", { className: uuiCore.uuiElement.caption }, props.caption)),
|
|
3310
|
+
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 })),
|
|
3311
|
+
props.icon && props.iconPosition === 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
3312
|
+
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
3313
|
+
props.onClear && !props.isDisabled && (React__namespace.default.createElement(uuiComponents.IconContainer, { cx: uuiCore.uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
3314
|
+
});
|
|
3315
|
+
|
|
3316
|
+
var css$N = {"root":"vck9zn","page":"o20D9o","spacer":"e89s1q","mode-ghost":"dlpjTa","modeGhost":"dlpjTa"};
|
|
3317
|
+
|
|
3318
|
+
function Paginator(props) {
|
|
3319
|
+
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 },
|
|
3320
|
+
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" }),
|
|
3321
|
+
params.pages.map((page, index) => {
|
|
3322
|
+
if (page.type === 'spacer') {
|
|
3323
|
+
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 }));
|
|
3324
|
+
}
|
|
3325
|
+
else {
|
|
3326
|
+
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 }));
|
|
3327
|
+
}
|
|
3328
|
+
}),
|
|
3329
|
+
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" })));
|
|
3330
|
+
return React__namespace.default.createElement(uuiComponents.Paginator, { ...props, render: renderPaginator });
|
|
3331
|
+
}
|
|
3332
|
+
|
|
3333
|
+
var css$M = {"root":"BRpJMh","progress-bar":"Uaq4dc","progressBar":"Uaq4dc","progressBar-indeterminate":"Ojl-3B","progressBarIndeterminate":"Ojl-3B","size-12":"sE4Knn","size12":"sE4Knn","size-18":"HmgcL-","size18":"HmgcL-","size-24":"ftWXEA","size24":"ftWXEA"};
|
|
3334
|
+
|
|
3335
|
+
const IndeterminateBar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
3336
|
+
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}`]) },
|
|
3337
|
+
React__namespace.createElement("div", { className: cx__default.default(css$M.progressBar) })));
|
|
3338
|
+
});
|
|
3339
|
+
|
|
3340
|
+
var css$L = {"root":"SSlZaq","striped":"_5kZZBi","animate-stripes":"kdymei","animateStripes":"kdymei","size-12":"E0pMyM","size12":"E0pMyM","size-18":"Kqg6Zu","size18":"Kqg6Zu","size-24":"gIjGDq","size24":"gIjGDq"};
|
|
3341
|
+
|
|
3342
|
+
const DEFAULT_SIZE = '12';
|
|
3343
|
+
function applyProgressBarMods(mods) {
|
|
3344
|
+
const size = mods.size || DEFAULT_SIZE;
|
|
3345
|
+
return [
|
|
3346
|
+
css$L.root,
|
|
3347
|
+
css$L[`size-${size}`],
|
|
3348
|
+
mods.striped && css$L.striped,
|
|
3349
|
+
];
|
|
3350
|
+
}
|
|
3351
|
+
const ProgressBar = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.ProgressBar, applyProgressBarMods, (props) => ({
|
|
3352
|
+
hideLabel: props.hideLabel || props.striped,
|
|
3353
|
+
}));
|
|
3354
|
+
|
|
3355
|
+
var css$K = {"root":"-E9mEB"};
|
|
3356
|
+
|
|
3357
|
+
const IndicatorBar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
3358
|
+
const { progress } = props;
|
|
3359
|
+
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) }));
|
|
3360
|
+
});
|
|
3361
|
+
|
|
3362
|
+
var css$J = {"root":"ZnfTiH"};
|
|
3363
|
+
|
|
3364
|
+
const StatusIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
3365
|
+
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
3366
|
+
css$J.root,
|
|
3367
|
+
`uui-size-${props.size || settings.statusIndicator.sizes.default}`,
|
|
3368
|
+
'uui-status_indicator',
|
|
3369
|
+
`uui-color-${props.color || 'neutral'}`,
|
|
3370
|
+
`uui-fill-${props.fill || 'solid'}`,
|
|
3371
|
+
props.cx,
|
|
3372
|
+
]) },
|
|
3373
|
+
React__namespace.default.createElement("div", { className: "uui-status_indicator-dot" }),
|
|
3374
|
+
React__namespace.default.createElement("p", { className: "uui-status_indicator-caption" }, props.caption)));
|
|
3375
|
+
});
|
|
3376
|
+
|
|
3377
|
+
var css$I = {"drag-handle":"otJktq","dragHandle":"otJktq","icon-container":"moTc6G","iconContainer":"moTc6G"};
|
|
3378
|
+
|
|
3379
|
+
function DataRowAddons(props) {
|
|
3380
|
+
const row = props.rowProps;
|
|
3381
|
+
const getIndent = () => {
|
|
3382
|
+
return (row.indent - 1) * settings.dataTable.sizes.body.indentUnitMap[props.size || settings.dataTable.sizes.body.row];
|
|
3383
|
+
};
|
|
3384
|
+
const getWidth = () => {
|
|
3385
|
+
return settings.dataTable.sizes.body.indentWidthMap[props.size || settings.dataTable.sizes.body.row];
|
|
3386
|
+
};
|
|
3387
|
+
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
3388
|
+
row.dnd?.srcData && React__namespace.default.createElement(uuiComponents.DragHandle, { key: "dh", cx: css$I.dragHandle, rawProps: { ...props.eventHandlers } }),
|
|
3389
|
+
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 })),
|
|
3390
|
+
row.indent > 0 && (React__namespace.default.createElement("div", { key: "fold", className: cx__default.default('uui-dr_addons-indent', `uui-size-${props.size || settings.dataTable.sizes.body.row}`), style: { marginInlineStart: getIndent(), width: getWidth() } }, row.isFoldable && (React__namespace.default.createElement(uuiComponents.IconContainer, { rawProps: {
|
|
3391
|
+
'aria-label': row.isFolded ? 'Unfold' : 'Fold',
|
|
3392
|
+
role: 'button',
|
|
3393
|
+
}, key: "icon", icon: settings.dataTable.icons.body.foldingIcon, cx: [
|
|
3394
|
+
uuiCore.uuiElement.foldingArrow, uuiCore.uuiMarkers.clickable, css$I.iconContainer,
|
|
3395
|
+
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row), size: settings.dataTable.sizes.body.iconMap[props.size || settings.dataTable.sizes.body.row] }))))));
|
|
3396
|
+
}
|
|
3397
|
+
|
|
3398
|
+
var css$H = {"root":"coBbF9","align-widgets-top":"_7z2Opd","alignWidgetsTop":"_7z2Opd","align-widgets-center":"_3wr0qE","alignWidgetsCenter":"_3wr0qE","icon-container":"mpnktg","iconContainer":"mpnktg","loading-cell":"lLXvAC","loadingCell":"lLXvAC","content-wrapper":"rLVdMl","contentWrapper":"rLVdMl","render-item":"rLbWpI","renderItem":"rLbWpI","icon-wrapper":"_405zwH","iconWrapper":"_405zwH","icon-default":"_6CSeu1","iconDefault":"_6CSeu1","selected-mark":"BMbc9R","selectedMark":"BMbc9R"};
|
|
3388
3399
|
|
|
3389
3400
|
function DataPickerCell(props) {
|
|
3390
3401
|
const ref = React__namespace.useRef();
|
|
@@ -3392,8 +3403,7 @@ function DataPickerCell(props) {
|
|
|
3392
3403
|
if (props.rowProps.isLoading) {
|
|
3393
3404
|
content = (
|
|
3394
3405
|
// 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)));
|
|
3406
|
+
React__namespace.createElement(Text, { key: "t", size: props.size, cx: css$H.loadingCell }, settings.pickerInput.renderPlaceholder()));
|
|
3397
3407
|
}
|
|
3398
3408
|
else if (props.rowProps.isUnknown) {
|
|
3399
3409
|
content = (React__namespace.createElement(Text, { key: "t", size: props.size }, "Unknown"));
|
|
@@ -3425,7 +3435,7 @@ function DataPickerCell(props) {
|
|
|
3425
3435
|
getWrappedContent()));
|
|
3426
3436
|
}
|
|
3427
3437
|
|
|
3428
|
-
var css$G = {"picker-row":"
|
|
3438
|
+
var css$G = {"picker-row":"UxWzAm","pickerRow":"UxWzAm"};
|
|
3429
3439
|
|
|
3430
3440
|
class DataPickerRow extends React__namespace.Component {
|
|
3431
3441
|
constructor() {
|
|
@@ -3439,7 +3449,7 @@ class DataPickerRow extends React__namespace.Component {
|
|
|
3439
3449
|
}
|
|
3440
3450
|
}
|
|
3441
3451
|
|
|
3442
|
-
var css$F = {"done":"
|
|
3452
|
+
var css$F = {"done":"WVDzh8","container":"nHQuYo"};
|
|
3443
3453
|
|
|
3444
3454
|
const PickerBodyMobileView = (props) => {
|
|
3445
3455
|
const isMobileView = uuiCore.isMobile();
|
|
@@ -3516,7 +3526,7 @@ const getHighlightedSearchMatches = (str, search) => {
|
|
|
3516
3526
|
return getDecoratedText(str, ranges);
|
|
3517
3527
|
};
|
|
3518
3528
|
|
|
3519
|
-
var css$E = {"root":"
|
|
3529
|
+
var css$E = {"root":"tJmbBE","column-gap":"upUK0d","columnGap":"upUK0d","title":"GT2fe9","subtitle":"MTwtBb","disabled":"YpsiS7","multiline":"ytfJ-n"};
|
|
3520
3530
|
|
|
3521
3531
|
function PickerItem(props) {
|
|
3522
3532
|
const { highlightSearchMatches = true, size, avatarUrl, isLoading, isDisabled, icon, } = props;
|
|
@@ -3537,7 +3547,7 @@ function getAvatarSize(size, isMultiline) {
|
|
|
3537
3547
|
return settings.pickerInput.sizes.body[isMultiline ? 'itemAvatarMultilineMap' : 'itemAvatarMap'][size];
|
|
3538
3548
|
}
|
|
3539
3549
|
|
|
3540
|
-
var css$D = {"sub-header-wrapper":"
|
|
3550
|
+
var css$D = {"sub-header-wrapper":"LtxHkG","subHeaderWrapper":"LtxHkG","switch":"teG4RC","no-found-modal-container":"SEji1H","noFoundModalContainer":"SEji1H","no-found-modal-container-icon":"QWEXQn","noFoundModalContainerIcon":"QWEXQn","no-found-modal-container-text":"osLTjF","noFoundModalContainerText":"osLTjF"};
|
|
3541
3551
|
|
|
3542
3552
|
function PickerModal(props) {
|
|
3543
3553
|
const { view, selection, dataSourceStateLens, dataSourceState, getDataSourceState, getName, clearSelection, getRows, getListProps, getFooterProps, isSingleSelect, handleDataSourceValueChange, } = uuiComponents.usePickerModal(props);
|
|
@@ -3592,7 +3602,7 @@ function PickerModal(props) {
|
|
|
3592
3602
|
React__namespace.default.createElement(ModalFooter, null, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
|
|
3593
3603
|
}
|
|
3594
3604
|
|
|
3595
|
-
var css$C = {"tooltip":"
|
|
3605
|
+
var css$C = {"tooltip":"s2kIwA"};
|
|
3596
3606
|
|
|
3597
3607
|
const PickerTogglerTag = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
3598
3608
|
const tagProps = {
|
|
@@ -3611,7 +3621,7 @@ const PickerTogglerTag = /* @__PURE__ */React__namespace.forwardRef((props, ref)
|
|
|
3611
3621
|
}
|
|
3612
3622
|
});
|
|
3613
3623
|
|
|
3614
|
-
var css$B = {"root":"
|
|
3624
|
+
var css$B = {"root":"vu-HKj"};
|
|
3615
3625
|
|
|
3616
3626
|
const defaultMode = EditMode.FORM;
|
|
3617
3627
|
function applyPickerTogglerMods(mods) {
|
|
@@ -3619,7 +3629,7 @@ function applyPickerTogglerMods(mods) {
|
|
|
3619
3629
|
css$B.root,
|
|
3620
3630
|
'uui-picker_toggler',
|
|
3621
3631
|
`uui-size-${mods.size || settings.pickerInput.sizes.toggler.default}`,
|
|
3622
|
-
|
|
3632
|
+
'uui-control-mode-' + (mods.mode || defaultMode),
|
|
3623
3633
|
];
|
|
3624
3634
|
}
|
|
3625
3635
|
function PickerTogglerComponent(props, ref) {
|
|
@@ -3712,7 +3722,7 @@ function PickerInputComponent({ highlightSearchMatches = true, ...props }, ref)
|
|
|
3712
3722
|
}
|
|
3713
3723
|
const PickerInput = /* @__PURE__ */React__namespace.default.forwardRef(PickerInputComponent);
|
|
3714
3724
|
|
|
3715
|
-
var css$A = {"row":"
|
|
3725
|
+
var css$A = {"row":"nCUeZJ"};
|
|
3716
3726
|
|
|
3717
3727
|
function PickerListItem(props) {
|
|
3718
3728
|
let label;
|
|
@@ -3732,7 +3742,7 @@ function PickerListItem(props) {
|
|
|
3732
3742
|
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
3743
|
}
|
|
3734
3744
|
|
|
3735
|
-
var css$z = {"root":"
|
|
3745
|
+
var css$z = {"root":"_2zNDIn"};
|
|
3736
3746
|
|
|
3737
3747
|
function PickerList(props) {
|
|
3738
3748
|
const { context, view, onlySelectedView, getName, getEntityName, appendLastSelected, getSelectedIdsArray, buildRowsList, getMaxDefaultItems, dataSourceState, getModalTogglerCaption, } = uuiComponents.usePickerList(props);
|
|
@@ -3767,7 +3777,7 @@ function PickerList(props) {
|
|
|
3767
3777
|
}, selectedRows)));
|
|
3768
3778
|
}
|
|
3769
3779
|
|
|
3770
|
-
var css$y = {"root":"
|
|
3780
|
+
var css$y = {"root":"RhCNsR","wrapper":"VQjVcN","align-widgets-top":"z-SAN5","alignWidgetsTop":"z-SAN5","align-widgets-center":"GegYop","alignWidgetsCenter":"GegYop"};
|
|
3771
3781
|
|
|
3772
3782
|
function DataTableCell(initialProps) {
|
|
3773
3783
|
const props = { ...initialProps };
|
|
@@ -3775,8 +3785,7 @@ function DataTableCell(initialProps) {
|
|
|
3775
3785
|
props.addons = React__namespace.createElement(DataRowAddons, { size: props.size, ...props });
|
|
3776
3786
|
}
|
|
3777
3787
|
props.renderPlaceholder = props.renderPlaceholder
|
|
3778
|
-
|| (() => (React__namespace.createElement(Text, { key: "t", size: props.size },
|
|
3779
|
-
React__namespace.createElement(TextPlaceholder, { isNotAnimated: true }))));
|
|
3788
|
+
|| (() => (React__namespace.createElement(Text, { key: "t", size: props.size }, settings.dataTable.renderPlaceholder())));
|
|
3780
3789
|
props.renderUnknown = props.renderUnknown
|
|
3781
3790
|
|| (() => (React__namespace.createElement(Text, { key: "t", size: props.size }, "Unknown")));
|
|
3782
3791
|
props.renderTooltip = (tooltipProps) => React__namespace.createElement(Tooltip, { color: "critical", ...tooltipProps });
|
|
@@ -3816,7 +3825,7 @@ function DataTableCell(initialProps) {
|
|
|
3816
3825
|
return React__namespace.createElement(uuiComponents.DataTableCell, { ...props });
|
|
3817
3826
|
}
|
|
3818
3827
|
|
|
3819
|
-
var css$x = {"root":"
|
|
3828
|
+
var css$x = {"root":"rosH-Q"};
|
|
3820
3829
|
|
|
3821
3830
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
3822
3831
|
// 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 +3841,7 @@ const DataTableRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.DataTableRow,
|
|
|
3832
3841
|
];
|
|
3833
3842
|
}, () => propsMods);
|
|
3834
3843
|
|
|
3835
|
-
var css$w = {"sorting-panel-container":"
|
|
3844
|
+
var css$w = {"sorting-panel-container":"QNLpCR","sortingPanelContainer":"QNLpCR"};
|
|
3836
3845
|
|
|
3837
3846
|
const SortingPanelImpl = ({ sortDirection, onSort }) => {
|
|
3838
3847
|
const sortAsc = React.useCallback(() => onSort(sortDirection === 'asc' ? undefined : 'asc'), [onSort]);
|
|
@@ -3857,7 +3866,7 @@ const ColumnHeaderDropdownImpl = (props) => {
|
|
|
3857
3866
|
};
|
|
3858
3867
|
const ColumnHeaderDropdown = /* @__PURE__ */React__namespace.default.memo(ColumnHeaderDropdownImpl);
|
|
3859
3868
|
|
|
3860
|
-
var css$v = {"root":"
|
|
3869
|
+
var css$v = {"root":"pfOroH","caption-wrapper":"fHHFtY","captionWrapper":"fHHFtY","sort-icon":"gueiqG","sortIcon":"gueiqG","dropdown-icon":"Nm3nut","dropdownIcon":"Nm3nut","infoIcon":"_538J-g","resizable":"v9jhmA","align-right":"IanQYF","alignRight":"IanQYF","align-center":"_5iQ9Mr","alignCenter":"_5iQ9Mr","caption":"K9AABm","truncate":"recvRz","upper-case":"FcmDaz","upperCase":"FcmDaz","checkbox":"qUz8nS","icon":"PNBFRP","fold-all-icon":"IBODcS","foldAllIcon":"IBODcS","cell-tooltip":"OcBUA1","cellTooltip":"OcBUA1","resizing-marker":"yKjIs1","resizingMarker":"yKjIs1","pinned-right":"q73PJ8","pinnedRight":"q73PJ8","draggable":"_3-E6eX","ghost":"_7o2ad8","is-dragged-out":"xaGXmP","isDraggedOut":"xaGXmP","dnd-marker-left":"M1PcQY","dndMarkerLeft":"M1PcQY","dnd-marker-right":"Kcj2Tu","dndMarkerRight":"Kcj2Tu","cell-tooltip-wrapper":"vxstNe","cellTooltipWrapper":"vxstNe","cell-tooltip-text":"xnbQ--","cellTooltipText":"xnbQ--","tooltip-caption":"XrFti6","tooltipCaption":"XrFti6","tooltip-info":"oN3Bec","tooltipInfo":"oN3Bec"};
|
|
3861
3870
|
|
|
3862
3871
|
class DataTableHeaderCell extends React__namespace.Component {
|
|
3863
3872
|
constructor() {
|
|
@@ -3951,7 +3960,7 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
3951
3960
|
}
|
|
3952
3961
|
}
|
|
3953
3962
|
|
|
3954
|
-
var css$u = {"root":"
|
|
3963
|
+
var css$u = {"root":"kEUThp","caption-wrapper":"_5n5NQj","captionWrapper":"_5n5NQj","align-center":"VElgs8","alignCenter":"VElgs8","caption":"ZWa37s","truncate":"IDf8TA","upper-case":"gCcVs6","upperCase":"gCcVs6","group-cell-tooltip":"_1qwVhh","groupCellTooltip":"_1qwVhh","group-cell-tooltip-wrapper":"zDGITW","groupCellTooltipWrapper":"zDGITW","group-cell-tooltip-text":"wWZ4Qn","groupCellTooltipText":"wWZ4Qn","tooltip-caption":"M2-2NJ","tooltipCaption":"M2-2NJ","tooltip-info":"_2tsqyp","tooltipInfo":"_2tsqyp"};
|
|
3955
3964
|
|
|
3956
3965
|
class DataTableHeaderGroupCell extends React__namespace.Component {
|
|
3957
3966
|
constructor() {
|
|
@@ -3991,7 +4000,7 @@ class DataTableHeaderGroupCell extends React__namespace.Component {
|
|
|
3991
4000
|
}
|
|
3992
4001
|
}
|
|
3993
4002
|
|
|
3994
|
-
var css$t = {"root":"
|
|
4003
|
+
var css$t = {"root":"Aw0bYD"};
|
|
3995
4004
|
|
|
3996
4005
|
const DataTableHeaderRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.DataTableHeaderRow, () => [css$t.root, 'uui-dt-vars'], (mods) => ({
|
|
3997
4006
|
renderCell: (props) => (React__namespace.createElement(DataTableHeaderCell, { ...props, size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key, columnsGap: mods.columnsGap })),
|
|
@@ -4004,7 +4013,7 @@ const UUI_FILTERS_PANEL_ADD_BUTTON_BODY = 'uui-filters-panel-add-button-body';
|
|
|
4004
4013
|
const UUI_FILTERS_PANEL_ITEM_BODY = 'uui-filters-panel-item-body';
|
|
4005
4014
|
const UUI_FILTERS_PANEL_ITEM_TOGGLER = 'uui-filters-panel-item-toggler';
|
|
4006
4015
|
|
|
4007
|
-
var css$s = {"root":"
|
|
4016
|
+
var css$s = {"root":"CzbPWY","title-wrapper":"A1z8AJ","titleWrapper":"A1z8AJ","title":"ITzIxi","text-wrapper":"DtMfNa","textWrapper":"DtMfNa","selection":"EgRQmQ","postfix":"wTJjox","selected":"E3TxhO"};
|
|
4008
4017
|
|
|
4009
4018
|
const FilterPanelItemToggler = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
4010
4019
|
const togglerPickerOpened = (e) => {
|
|
@@ -4172,7 +4181,7 @@ function FilterRangeDatePickerBody(props) {
|
|
|
4172
4181
|
React__namespace.default.createElement(LinkButton, { isDisabled: !value.from && !value.to, caption: i18n.pickerModal.clearAllButton, onClick: () => onValueChange(defaultRangeValue) })))));
|
|
4173
4182
|
}
|
|
4174
4183
|
|
|
4175
|
-
var css$r = {"container":"
|
|
4184
|
+
var css$r = {"container":"_5g4CVT"};
|
|
4176
4185
|
|
|
4177
4186
|
function FilterNumericBody(props) {
|
|
4178
4187
|
const isInRangePredicate = props?.selectedPredicate === 'inRange' || props?.selectedPredicate === 'notInRange';
|
|
@@ -4268,7 +4277,7 @@ var SvgActionDeleteOutline = function SvgActionDeleteOutline(props, ref) {
|
|
|
4268
4277
|
};
|
|
4269
4278
|
var ForwardRef$a = /*#__PURE__*/React.forwardRef(SvgActionDeleteOutline);
|
|
4270
4279
|
|
|
4271
|
-
var css$q = {"header":"
|
|
4280
|
+
var css$q = {"header":"cie9kL","removeButton":"CQL02u","with-search":"ZtkyFI","withSearch":"ZtkyFI"};
|
|
4272
4281
|
|
|
4273
4282
|
function useView(props, value) {
|
|
4274
4283
|
const forceUpdate = uuiCore.useForceUpdate();
|
|
@@ -4574,7 +4583,7 @@ function FiltersToolbarImpl(props) {
|
|
|
4574
4583
|
}
|
|
4575
4584
|
const FiltersPanel = /* @__PURE__ */React__namespace.default.memo(FiltersToolbarImpl);
|
|
4576
4585
|
|
|
4577
|
-
var css$p = {"divider":"
|
|
4586
|
+
var css$p = {"divider":"ccnHOj","dropdownDeleteIcon":"HF5tty","presetsWrapper":"Ldg63G","addPresetContainer":"pALtKU","dropContainer":"pqS348"};
|
|
4578
4587
|
|
|
4579
4588
|
var _path$9;
|
|
4580
4589
|
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 +4664,7 @@ var SvgContentLinkOutline = function SvgContentLinkOutline(props, ref) {
|
|
|
4655
4664
|
};
|
|
4656
4665
|
var ForwardRef$5 = /*#__PURE__*/React.forwardRef(SvgContentLinkOutline);
|
|
4657
4666
|
|
|
4658
|
-
var css$o = {"delete-button":"
|
|
4667
|
+
var css$o = {"delete-button":"YEJr5L","deleteButton":"YEJr5L","tab-button":"DaiNMu","tabButton":"DaiNMu","targetOpen":"R8rwLb"};
|
|
4659
4668
|
|
|
4660
4669
|
function PresetActionsDropdown(props) {
|
|
4661
4670
|
const { uuiNotifications } = uuiCore.useUuiContext();
|
|
@@ -4722,7 +4731,7 @@ function PresetActionsDropdown(props) {
|
|
|
4722
4731
|
return (React__namespace.default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end", modifiers: [{ name: 'offset', options: { offset: [0, 22] } }] }));
|
|
4723
4732
|
}
|
|
4724
4733
|
|
|
4725
|
-
var css$n = {"preset-input-cell":"
|
|
4734
|
+
var css$n = {"preset-input-cell":"nWPwT1","presetInputCell":"nWPwT1","preset-input":"vbTSzk","presetInput":"vbTSzk"};
|
|
4726
4735
|
|
|
4727
4736
|
const UUI_PRESETS_PANEL_ADD_BUTTON = 'uui-presets-panel-add-button';
|
|
4728
4737
|
const UUI_PRESETS_PANEL_MORE_BUTTON = 'uui-presets-panel-more-button';
|
|
@@ -4754,7 +4763,7 @@ function PresetInput(props) {
|
|
|
4754
4763
|
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
4764
|
}
|
|
4756
4765
|
|
|
4757
|
-
var css$m = {"preset":"
|
|
4766
|
+
var css$m = {"preset":"FvfJ0L","activePreset":"hb9Cop"};
|
|
4758
4767
|
|
|
4759
4768
|
function Preset(props) {
|
|
4760
4769
|
const [isRenamePreset, setIsRenamePreset] = React.useState(false);
|
|
@@ -4880,7 +4889,7 @@ const useColumnsWithFilters = (initialColumns, filters) => {
|
|
|
4880
4889
|
return columns;
|
|
4881
4890
|
};
|
|
4882
4891
|
|
|
4883
|
-
var css$l = {"unpin-icon":"
|
|
4892
|
+
var css$l = {"unpin-icon":"D-tMnZ","unpinIcon":"D-tMnZ","pin-toggler-icon":"FO0ACy","pinTogglerIcon":"FO0ACy"};
|
|
4884
4893
|
|
|
4885
4894
|
function PinIconButton(props) {
|
|
4886
4895
|
const i18nLocal = i18n.tables.columnsConfigurationModal;
|
|
@@ -4922,7 +4931,7 @@ function getUnpinIcon(params) {
|
|
|
4922
4931
|
}
|
|
4923
4932
|
}
|
|
4924
4933
|
|
|
4925
|
-
var css$k = {"row-wrapper":"
|
|
4934
|
+
var css$k = {"row-wrapper":"hBIxVC","rowWrapper":"hBIxVC","pin-icon-button":"zyhtPC","pinIconButton":"zyhtPC","not-pinned":"JGLq-A","notPinned":"JGLq-A","checkbox":"n29N4q","drag-handle":"mevN5b","dragHandle":"mevN5b","dnd-disabled":"_8zOhei","dndDisabled":"_8zOhei"};
|
|
4926
4935
|
|
|
4927
4936
|
const ColumnRow = /* @__PURE__ */React__namespace.memo(function ColumnRow(props) {
|
|
4928
4937
|
const { column } = props;
|
|
@@ -4945,7 +4954,7 @@ const ColumnRow = /* @__PURE__ */React__namespace.memo(function ColumnRow(props)
|
|
|
4945
4954
|
return (React__namespace.createElement(uuiCore.DndActor, { key: column.key, srcData: isDndAllowed && data, dstData: data, canAcceptDrop: onCanAcceptDrop, onDrop: onDrop, render: renderContent }));
|
|
4946
4955
|
});
|
|
4947
4956
|
|
|
4948
|
-
var css$j = {"root":"
|
|
4957
|
+
var css$j = {"root":"uunCen","main-panel":"U44Hmj","mainPanel":"U44Hmj","group":"LT32Cx","group-title":"lSdN6w","groupTitle":"lSdN6w","group-items":"-uLMF0","groupItems":"-uLMF0","no-data":"SO6pXA","noData":"SO6pXA","no-data-title":"_7FEo9u","noDataTitle":"_7FEo9u","no-data-sub-title":"VddFsK","noDataSubTitle":"VddFsK","h-divider":"VgJrfR","hDivider":"VgJrfR","search-area":"Qqlyns","searchArea":"Qqlyns","subgroup-accordion":"bVzyIO","subgroupAccordion":"bVzyIO","subgroup":"gtSPpX","subgroup-title":"Dyi3Ra","subgroupTitle":"Dyi3Ra"};
|
|
4949
4958
|
|
|
4950
4959
|
const renderGroupTitle = (title, amount) => (React__namespace.createElement(FlexRow, { cx: css$j.group },
|
|
4951
4960
|
React__namespace.createElement(Text, { size: "none", cx: css$j.groupTitle }, title),
|
|
@@ -5047,7 +5056,7 @@ const getChildrenAndRest = (row, rows) => {
|
|
|
5047
5056
|
return [children, rest];
|
|
5048
5057
|
};
|
|
5049
5058
|
|
|
5050
|
-
var css$i = {"listContainer":"
|
|
5059
|
+
var css$i = {"listContainer":"u1BrdG","header":"zQ9KYP","group":"x3r2cH","stickyHeader":"c2j5Dt"};
|
|
5051
5060
|
|
|
5052
5061
|
function DataRowsGroup({ row, childRows, renderRow, top = 1, }) {
|
|
5053
5062
|
const rowRef = React.useRef();
|
|
@@ -5087,7 +5096,7 @@ function DataRowsContainer({ estimatedHeight, listContainerRef, offsetY, rows, r
|
|
|
5087
5096
|
React__namespace.default.createElement(DataRowsGroups, { rows: rows, renderRow: renderRow, top: headerRef?.current?.clientHeight }))));
|
|
5088
5097
|
}
|
|
5089
5098
|
|
|
5090
|
-
var css$h = {"root":"
|
|
5099
|
+
var css$h = {"root":"v7pINd","sticky-header":"B24K9g","stickyHeader":"B24K9g","no-results":"_-2rDZW","noResults":"_-2rDZW","icon":"Qe-cfb","title":"_5quWZa"};
|
|
5091
5100
|
|
|
5092
5101
|
function DataTable(props) {
|
|
5093
5102
|
const { uuiModals } = uuiCore.useUuiContext();
|
|
@@ -5136,9 +5145,9 @@ function DataTable(props) {
|
|
|
5136
5145
|
} }))));
|
|
5137
5146
|
}
|
|
5138
5147
|
|
|
5139
|
-
var css$g = {"root":"
|
|
5148
|
+
var css$g = {"root":"OtfZaT"};
|
|
5140
5149
|
|
|
5141
|
-
var css$f = {"root":"
|
|
5150
|
+
var css$f = {"root":"pe-p7i","burger-content":"TO-7Sj","burgerContent":"TO-7Sj"};
|
|
5142
5151
|
|
|
5143
5152
|
var _path$3;
|
|
5144
5153
|
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 +5190,7 @@ var SvgNavigationArrowDownOutline = function SvgNavigationArrowDownOutline(props
|
|
|
5181
5190
|
};
|
|
5182
5191
|
var ForwardRef$2 = /*#__PURE__*/React.forwardRef(SvgNavigationArrowDownOutline);
|
|
5183
5192
|
|
|
5184
|
-
var css$e = {"root":"
|
|
5193
|
+
var css$e = {"root":"Epmq7E","button-primary":"r3UwdN","buttonPrimary":"r3UwdN","button-secondary":"I2odi3","buttonSecondary":"I2odi3","hasIcon":"bIYl6T","dropdown":"N-Qjne"};
|
|
5185
5194
|
|
|
5186
5195
|
const BurgerButton = /* @__PURE__ */uuiCore.withMods(uuiComponents.Button, (props) => [
|
|
5187
5196
|
css$e.root,
|
|
@@ -5192,13 +5201,13 @@ const BurgerButton = /* @__PURE__ */uuiCore.withMods(uuiComponents.Button, (prop
|
|
|
5192
5201
|
props.icon && css$e.hasIcon,
|
|
5193
5202
|
], () => ({ dropdownIcon: ForwardRef$2, dropdownIconPosition: 'left', role: 'menuitem' }));
|
|
5194
5203
|
|
|
5195
|
-
var css$d = {"search-input":"
|
|
5204
|
+
var css$d = {"search-input":"lOkWdE","searchInput":"lOkWdE"};
|
|
5196
5205
|
|
|
5197
5206
|
function BurgerSearch(props) {
|
|
5198
5207
|
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
5208
|
}
|
|
5200
5209
|
|
|
5201
|
-
var css$c = {"root":"
|
|
5210
|
+
var css$c = {"root":"y9lP8R","group-header":"R2aNi6","groupHeader":"R2aNi6","group-name":"JKUiIt","groupName":"JKUiIt","line":"p8aRVT"};
|
|
5202
5211
|
|
|
5203
5212
|
function BurgerGroupHeader(props) {
|
|
5204
5213
|
return (React__namespace.createElement("div", { className: cx__default.default(css$c.root, css$c.groupHeader, 'uui-burger-group-header') },
|
|
@@ -5206,7 +5215,7 @@ function BurgerGroupHeader(props) {
|
|
|
5206
5215
|
React__namespace.createElement("span", { className: css$c.groupName }, props.caption)));
|
|
5207
5216
|
}
|
|
5208
5217
|
|
|
5209
|
-
var css$b = {"root":"
|
|
5218
|
+
var css$b = {"root":"-LC7Uy","type-primary":"jH4LJ4","typePrimary":"jH4LJ4","type-secondary":"EjabHp","typeSecondary":"EjabHp"};
|
|
5210
5219
|
|
|
5211
5220
|
const MainMenuButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5212
5221
|
const { type, ...clickableProps } = props;
|
|
@@ -5228,7 +5237,7 @@ const MainMenuButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) =
|
|
|
5228
5237
|
props.isDropdown && (React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$Q, flipY: props.isOpen }))));
|
|
5229
5238
|
});
|
|
5230
5239
|
|
|
5231
|
-
var css$a = {"dropdown-body":"
|
|
5240
|
+
var css$a = {"dropdown-body":"CQVDpF","dropdownBody":"CQVDpF"};
|
|
5232
5241
|
|
|
5233
5242
|
class MainMenuDropdown extends React__namespace.Component {
|
|
5234
5243
|
render() {
|
|
@@ -5286,12 +5295,12 @@ var SvgNavigationGlobalMenuOutlineOutline = function SvgNavigationGlobalMenuOutl
|
|
|
5286
5295
|
};
|
|
5287
5296
|
var ForwardRef$1 = /*#__PURE__*/React.forwardRef(SvgNavigationGlobalMenuOutlineOutline);
|
|
5288
5297
|
|
|
5289
|
-
var css$9 = {"global-menu-btn":"
|
|
5298
|
+
var css$9 = {"global-menu-btn":"t-YBhs","globalMenuBtn":"t-YBhs","global-menu-icon":"-tBEtA","globalMenuIcon":"-tBEtA"};
|
|
5290
5299
|
|
|
5291
5300
|
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
5301
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 36, icon: ForwardRef$1, cx: css$9.globalMenuIcon }))));
|
|
5293
5302
|
|
|
5294
|
-
var css$8 = {"container":"
|
|
5303
|
+
var css$8 = {"container":"Xazrs0","open":"Zg1tOd","folding-arrow":"ore1ch","foldingArrow":"ore1ch"};
|
|
5295
5304
|
|
|
5296
5305
|
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
5306
|
React__namespace.createElement(uuiComponents.Avatar, { size: "36", img: props.avatarUrl }),
|
|
@@ -5299,15 +5308,15 @@ const MainMenuAvatar = /* @__PURE__ */React__namespace.forwardRef((props, ref) =
|
|
|
5299
5308
|
props.isDropdown && (React__namespace.createElement("div", null,
|
|
5300
5309
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, icon: ForwardRef$Q, flipY: props.isOpen, cx: css$8.foldingArrow }))))));
|
|
5301
5310
|
|
|
5302
|
-
var css$7 = {"search-input":"
|
|
5311
|
+
var css$7 = {"search-input":"EnIXpz","searchInput":"EnIXpz"};
|
|
5303
5312
|
|
|
5304
5313
|
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
5314
|
|
|
5306
|
-
var css$6 = {"container":"
|
|
5315
|
+
var css$6 = {"container":"F5lZm-"};
|
|
5307
5316
|
|
|
5308
5317
|
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
5318
|
|
|
5310
|
-
var css$5 = {"root":"
|
|
5319
|
+
var css$5 = {"root":"GvpSgM"};
|
|
5311
5320
|
|
|
5312
5321
|
const Anchor = /* @__PURE__ */uuiCore.withMods(uuiComponents.Anchor, () => [css$5.root]);
|
|
5313
5322
|
|
|
@@ -5365,7 +5374,7 @@ var SvgFileCloudUploadFill = function SvgFileCloudUploadFill(props, ref) {
|
|
|
5365
5374
|
};
|
|
5366
5375
|
var ForwardRef = /*#__PURE__*/React.forwardRef(SvgFileCloudUploadFill);
|
|
5367
5376
|
|
|
5368
|
-
var css$4 = {"root":"
|
|
5377
|
+
var css$4 = {"root":"c7--a4","drop-start":"ycaV-F","dropStart":"ycaV-F","drop-over":"ifKjnY","dropOver":"ifKjnY","link":"yPHDkZ","drop-area":"R5yx-L","dropArea":"R5yx-L","drop-caption":"_7b9gsO","dropCaption":"_7b9gsO","icon-blue":"X4MMEA","iconBlue":"X4MMEA"};
|
|
5369
5378
|
|
|
5370
5379
|
function DropSpot(props) {
|
|
5371
5380
|
const getInfoText = typeof props.infoText === 'string'
|
|
@@ -5383,7 +5392,7 @@ function DropSpot(props) {
|
|
|
5383
5392
|
return React__namespace.createElement(uuiComponents.DropSpot, { render: renderAttachmentArea, onFilesDropped: props.onUploadFiles });
|
|
5384
5393
|
}
|
|
5385
5394
|
|
|
5386
|
-
var css$3 = {"root":"
|
|
5395
|
+
var css$3 = {"root":"iR0pUe"};
|
|
5387
5396
|
|
|
5388
5397
|
const SvgCircleProgress = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5389
5398
|
const outsetRadius = props.size / 2 - 1;
|
|
@@ -5394,7 +5403,7 @@ const SvgCircleProgress = /* @__PURE__ */React__namespace.forwardRef((props, ref
|
|
|
5394
5403
|
React__namespace.createElement("circle", { strokeWidth: 1, fill: "transparent", r: outsetRadius, cx: props.size / 2, cy: props.size / 2 })));
|
|
5395
5404
|
});
|
|
5396
5405
|
|
|
5397
|
-
var css$2 = {"root":"
|
|
5406
|
+
var css$2 = {"root":"n5P-Ch","file-name":"CM2e-v","fileName":"CM2e-v","default-color":"im3iGK","defaultColor":"im3iGK","doc-color":"Xcqvoz","docColor":"Xcqvoz","xls-color":"Bb-qpD","xlsColor":"Bb-qpD","pdf-color":"BXCz6-","pdfColor":"BXCz6-","movie-color":"-RskFM","movieColor":"-RskFM","img-color":"zGMP9L","imgColor":"zGMP9L","mov-color":"D9-hMj","movColor":"D9-hMj","error-block":"OrtOFc","errorBlock":"OrtOFc","icons-block":"Jesxlt","iconsBlock":"Jesxlt"};
|
|
5398
5407
|
|
|
5399
5408
|
const FileCard = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5400
5409
|
const [isLoadingShow, setIsLoadingShow] = React__namespace.useState(true);
|
|
@@ -5513,7 +5522,7 @@ const getErrorPageConfig = () => ({
|
|
|
5513
5522
|
},
|
|
5514
5523
|
});
|
|
5515
5524
|
|
|
5516
|
-
var css$1 = {"container":"
|
|
5525
|
+
var css$1 = {"container":"_-8iBKl"};
|
|
5517
5526
|
|
|
5518
5527
|
const ErrorPage = (props) => {
|
|
5519
5528
|
const isMobileScreen = uuiCore.isMobile();
|
|
@@ -5525,7 +5534,7 @@ const ErrorPage = (props) => {
|
|
|
5525
5534
|
props?.supportLink && React__namespace.default.createElement("div", { className: "uui-error-support-link" }, props?.supportLink))));
|
|
5526
5535
|
};
|
|
5527
5536
|
|
|
5528
|
-
var css = {"recovery-spinner":"
|
|
5537
|
+
var css = {"recovery-spinner":"VsM91N","recoverySpinner":"VsM91N","recovery-message":"MU1gQP","recoveryMessage":"MU1gQP","modal-blocker":"-x8QHj","modalBlocker":"-x8QHj","modalFadeIn":"oocA4y"};
|
|
5529
5538
|
|
|
5530
5539
|
function ErrorHandler(props) {
|
|
5531
5540
|
const { uuiNotifications, uuiModals, uuiApi } = uuiCore.useUuiContext();
|