@epam/uui 5.13.3-beta.10 → 5.13.3-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/pickers/DataPickerCell.d.ts.map +1 -1
- package/components/pickers/DataPickerFooter.d.ts +1 -0
- package/components/pickers/DataPickerFooter.d.ts.map +1 -1
- package/components/tables/DataTableCell.d.ts.map +1 -1
- package/index.esm.js +243 -245
- package/index.esm.js.map +1 -1
- package/index.js +243 -245
- package/index.js.map +1 -1
- package/package.json +5 -5
- package/settings.d.ts +6 -2
- package/settings.d.ts.map +1 -1
- package/stats.html +1 -1
- package/styles.css +1055 -1059
- 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(#00v3wu9hmpw9hsfbr_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: "00v3wuw379j41cyf_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(#00v3wuw379j41cyf_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: "00v3wu9hmpw9hsfbr_a"
|
|
306
306
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
307
307
|
fill: "#fff",
|
|
308
308
|
transform: "translate(.552)",
|
|
@@ -859,14 +859,14 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
|
859
859
|
};
|
|
860
860
|
var ForwardRef$b = /*#__PURE__*/React.forwardRef(SvgSearchWithBackground);
|
|
861
861
|
|
|
862
|
-
var css$
|
|
862
|
+
var css$1x = {"root":"lT8il7","uui-spinner":"Ltp-Yo","uuiSpinner":"Ltp-Yo"};
|
|
863
863
|
|
|
864
864
|
function applySpinnerMods() {
|
|
865
|
-
return [css$
|
|
865
|
+
return [css$1x.root, 'uui-spinner'];
|
|
866
866
|
}
|
|
867
867
|
const Spinner = /* @__PURE__ */uuiCore.withMods(uuiComponents.Spinner, applySpinnerMods);
|
|
868
868
|
|
|
869
|
-
var css$
|
|
869
|
+
var css$1w = {"root":"J6pmRG","loading-word":"syuJlZ","loadingWord":"syuJlZ","animated-loading":"LN1aNS","animatedLoading":"LN1aNS","skeleton_loading":"M7NS6f","skeletonLoading":"M7NS6f"};
|
|
870
870
|
|
|
871
871
|
const TextPlaceholder = (props) => {
|
|
872
872
|
const pattern = ' ';
|
|
@@ -878,11 +878,38 @@ const TextPlaceholder = (props) => {
|
|
|
878
878
|
}
|
|
879
879
|
return words;
|
|
880
880
|
}, [props.wordsCount]);
|
|
881
|
-
return (React__namespace.createElement("div", { "aria-busy": true, className: cx__default.default(css$
|
|
882
|
-
props.cx, css$
|
|
881
|
+
return (React__namespace.createElement("div", { "aria-busy": true, className: cx__default.default(css$1w.root, 'uui-text-placeholder'), ...props.rawProps }, text.map((it, index) => (React__namespace.createElement("span", { key: index, className: cx__default.default([
|
|
882
|
+
props.cx, css$1w.loadingWord, !props.isNotAnimated && css$1w.animatedLoading,
|
|
883
883
|
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
884
884
|
};
|
|
885
885
|
|
|
886
|
+
var css$1v = {"root":"ylDE5V","line-height":"m-6511","lineHeight":"m-6511","font-size":"xpHY2c","fontSize":"xpHY2c"};
|
|
887
|
+
|
|
888
|
+
function applyTextMods(mods) {
|
|
889
|
+
return [
|
|
890
|
+
css$1v.root,
|
|
891
|
+
'uui-text',
|
|
892
|
+
`uui-size-${mods.size || settings.text.sizes.default}`,
|
|
893
|
+
(mods.size !== 'none' || mods.lineHeight) && css$1v.lineHeight,
|
|
894
|
+
(mods.size !== 'none' || mods.fontSize) && css$1v.fontSize,
|
|
895
|
+
`uui-color-${mods.color || 'primary'}`,
|
|
896
|
+
`uui-font-weight-${mods.fontWeight || '400'}`,
|
|
897
|
+
`uui-font-style-${mods.fontStyle || 'normal'}`,
|
|
898
|
+
'uui-typography-inline',
|
|
899
|
+
];
|
|
900
|
+
}
|
|
901
|
+
const Text = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Text, applyTextMods, (props) => {
|
|
902
|
+
const style = props?.rawProps?.style || {};
|
|
903
|
+
props.fontSize && (style['--uui-text-font-size'] = `${props.fontSize}px`);
|
|
904
|
+
props.lineHeight && (style['--uui-text-line-height'] = `${props.lineHeight}px`);
|
|
905
|
+
return {
|
|
906
|
+
rawProps: {
|
|
907
|
+
...props?.rawProps,
|
|
908
|
+
style: style,
|
|
909
|
+
},
|
|
910
|
+
};
|
|
911
|
+
});
|
|
912
|
+
|
|
886
913
|
const accordionSettings = {
|
|
887
914
|
icons: {
|
|
888
915
|
dropdownIcon: ForwardRef$Q,
|
|
@@ -944,7 +971,8 @@ const countIndicatorSettings = {
|
|
|
944
971
|
},
|
|
945
972
|
};
|
|
946
973
|
const dataTableSettings = {
|
|
947
|
-
renderPlaceholder: () => React__namespace.default.createElement(
|
|
974
|
+
renderPlaceholder: (props) => React__namespace.default.createElement(Text, { size: props.rowSize },
|
|
975
|
+
React__namespace.default.createElement(TextPlaceholder, null)),
|
|
948
976
|
icons: {
|
|
949
977
|
emptyTable: ForwardRef$J,
|
|
950
978
|
header: {
|
|
@@ -1132,7 +1160,8 @@ const paginatorSettings = {
|
|
|
1132
1160
|
},
|
|
1133
1161
|
};
|
|
1134
1162
|
const pickerInputSettings = {
|
|
1135
|
-
renderPlaceholder: () => React__namespace.default.createElement(
|
|
1163
|
+
renderPlaceholder: (props) => React__namespace.default.createElement(Text, { size: props.rowSize },
|
|
1164
|
+
React__namespace.default.createElement(TextPlaceholder, null)),
|
|
1136
1165
|
icons: {
|
|
1137
1166
|
toggler: {
|
|
1138
1167
|
clearIcon: ForwardRef$R,
|
|
@@ -1338,11 +1367,11 @@ const settings = {
|
|
|
1338
1367
|
textInput: textInputSettings,
|
|
1339
1368
|
};
|
|
1340
1369
|
|
|
1341
|
-
var css$
|
|
1370
|
+
var css$1u = {"root":"RGCmoj"};
|
|
1342
1371
|
|
|
1343
1372
|
function applyButtonMods(mods) {
|
|
1344
1373
|
return [
|
|
1345
|
-
css$
|
|
1374
|
+
css$1u.root,
|
|
1346
1375
|
'uui-button',
|
|
1347
1376
|
`uui-fill-${mods.fill || 'solid'}`,
|
|
1348
1377
|
`uui-color-${mods.color || 'primary'}`,
|
|
@@ -1356,10 +1385,10 @@ const Button = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Button,
|
|
|
1356
1385
|
};
|
|
1357
1386
|
});
|
|
1358
1387
|
|
|
1359
|
-
var css$
|
|
1388
|
+
var css$1t = {"root":"af51dx"};
|
|
1360
1389
|
|
|
1361
1390
|
function applyIconButtonMods(props) {
|
|
1362
|
-
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$
|
|
1391
|
+
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$1t.root];
|
|
1363
1392
|
}
|
|
1364
1393
|
const IconButton = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.IconButton, applyIconButtonMods, (props) => {
|
|
1365
1394
|
const isDeprecated = ['info', 'success', 'error', 'warning'].includes(props.color);
|
|
@@ -1393,7 +1422,7 @@ function getIconClass(props) {
|
|
|
1393
1422
|
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'];
|
|
1394
1423
|
}
|
|
1395
1424
|
|
|
1396
|
-
var css$
|
|
1425
|
+
var css$1s = {"root":"zoHJ0E"};
|
|
1397
1426
|
|
|
1398
1427
|
const DEFAULT_COLOR = 'primary';
|
|
1399
1428
|
const LinkButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
@@ -1408,7 +1437,7 @@ const LinkButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
1408
1437
|
}
|
|
1409
1438
|
const rootStyles = [
|
|
1410
1439
|
'uui-link_button',
|
|
1411
|
-
css$
|
|
1440
|
+
css$1s.root,
|
|
1412
1441
|
`uui-size-${props.size || settings.linkButton.sizes.default}`,
|
|
1413
1442
|
...getIconClass(props),
|
|
1414
1443
|
`uui-color-${props.color || DEFAULT_COLOR}`,
|
|
@@ -1423,11 +1452,11 @@ const LinkButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
1423
1452
|
props.isDropdown && (React__namespace.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
1424
1453
|
});
|
|
1425
1454
|
|
|
1426
|
-
var css$
|
|
1455
|
+
var css$1r = {"root":"hfZNzs"};
|
|
1427
1456
|
|
|
1428
1457
|
const CountIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1429
1458
|
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
1430
|
-
css$
|
|
1459
|
+
css$1r.root,
|
|
1431
1460
|
'uui-count_indicator',
|
|
1432
1461
|
`uui-size-${props.size || settings.countIndicator.sizes.default}`,
|
|
1433
1462
|
props.color && `uui-color-${props.color}`,
|
|
@@ -1435,11 +1464,11 @@ const CountIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1435
1464
|
]) }, props.caption));
|
|
1436
1465
|
});
|
|
1437
1466
|
|
|
1438
|
-
var css$
|
|
1467
|
+
var css$1q = {"root":"rwt5yG","withNotify":"_7LMflq"};
|
|
1439
1468
|
|
|
1440
1469
|
const TabButton = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
1441
1470
|
const styles = [
|
|
1442
|
-
css$
|
|
1471
|
+
css$1q.root,
|
|
1443
1472
|
'uui-tab-button',
|
|
1444
1473
|
`uui-size-${props.size || settings.tabButton.sizes.default}`,
|
|
1445
1474
|
...getIconClass(props),
|
|
@@ -1456,25 +1485,25 @@ const TabButton = /* @__PURE__ */React__namespace.default.forwardRef((props, ref
|
|
|
1456
1485
|
props.icon && props.iconPosition !== 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1457
1486
|
(props.caption || props.withNotify) && (React__namespace.default.createElement("div", { className: uuiCore.cx(uuiCore.uuiElement.caption) },
|
|
1458
1487
|
props.caption,
|
|
1459
|
-
props.withNotify && React__namespace.default.createElement("div", { className: css$
|
|
1488
|
+
props.withNotify && React__namespace.default.createElement("div", { className: css$1q.withNotify }))),
|
|
1460
1489
|
props.icon && props.iconPosition === 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1461
1490
|
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 })),
|
|
1462
1491
|
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
1463
1492
|
props.onClear && !props.isDisabled && (React__namespace.default.createElement(uuiComponents.IconContainer, { cx: uuiCore.uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
1464
1493
|
});
|
|
1465
1494
|
|
|
1466
|
-
var css$
|
|
1495
|
+
var css$1p = {"root":"yWUdk0"};
|
|
1467
1496
|
|
|
1468
1497
|
function applyVerticalTabButtonMods() {
|
|
1469
|
-
return [css$
|
|
1498
|
+
return [css$1p.root, 'uui-vertical-tab-button'];
|
|
1470
1499
|
}
|
|
1471
1500
|
const VerticalTabButton = /* @__PURE__ */uuiCore.withMods(TabButton, applyVerticalTabButtonMods);
|
|
1472
1501
|
|
|
1473
|
-
var css$
|
|
1502
|
+
var css$1o = {"root":"_4wLfSU"};
|
|
1474
1503
|
|
|
1475
1504
|
function applyCheckboxMods(mods) {
|
|
1476
1505
|
return [
|
|
1477
|
-
css$
|
|
1506
|
+
css$1o.root,
|
|
1478
1507
|
`uui-size-${mods.size || settings.checkbox.sizes.default}`,
|
|
1479
1508
|
'uui-control-mode-' + (mods.mode || 'form'),
|
|
1480
1509
|
'uui-color-primary',
|
|
@@ -1488,11 +1517,11 @@ const applyUUICheckboxProps = (props) => {
|
|
|
1488
1517
|
};
|
|
1489
1518
|
const Checkbox = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Checkbox, applyCheckboxMods, applyUUICheckboxProps);
|
|
1490
1519
|
|
|
1491
|
-
var css$
|
|
1520
|
+
var css$1n = {"root":"HroqD6"};
|
|
1492
1521
|
|
|
1493
1522
|
function applyRadioInputMods(mods) {
|
|
1494
1523
|
return [
|
|
1495
|
-
css$
|
|
1524
|
+
css$1n.root,
|
|
1496
1525
|
`uui-size-${mods.size || settings.radioInput.sizes.default}`,
|
|
1497
1526
|
'uui-radio-input-container',
|
|
1498
1527
|
'uui-color-primary',
|
|
@@ -1500,11 +1529,11 @@ function applyRadioInputMods(mods) {
|
|
|
1500
1529
|
}
|
|
1501
1530
|
const RadioInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.RadioInput, applyRadioInputMods, (props) => ({ icon: props.icon ? props.icon : settings.radioInput.icons.dotIcon }));
|
|
1502
1531
|
|
|
1503
|
-
var css$
|
|
1532
|
+
var css$1m = {"root":"-SQe-0"};
|
|
1504
1533
|
|
|
1505
1534
|
function applySwitchMods(mods) {
|
|
1506
1535
|
return [
|
|
1507
|
-
css$
|
|
1536
|
+
css$1m.root,
|
|
1508
1537
|
`uui-size-${mods.size || settings.switch.sizes.default}`,
|
|
1509
1538
|
'uui-color-primary',
|
|
1510
1539
|
];
|
|
@@ -1524,7 +1553,7 @@ var EditMode;
|
|
|
1524
1553
|
EditMode["INLINE"] = "inline";
|
|
1525
1554
|
})(EditMode || (EditMode = {}));
|
|
1526
1555
|
|
|
1527
|
-
var textInputCss = {"root":"
|
|
1556
|
+
var textInputCss = {"root":"BLuLu4"};
|
|
1528
1557
|
|
|
1529
1558
|
const DEFAULT_MODE$3 = EditMode.FORM;
|
|
1530
1559
|
function applyTextInputMods(mods) {
|
|
@@ -1549,9 +1578,9 @@ const SearchInput = /* @__PURE__ */React__namespace.default.forwardRef((props, r
|
|
|
1549
1578
|
} }));
|
|
1550
1579
|
});
|
|
1551
1580
|
|
|
1552
|
-
var css$
|
|
1581
|
+
var css$1l = {"root":"v6IAk-"};
|
|
1553
1582
|
|
|
1554
|
-
const ControlGroup = /* @__PURE__ */uuiCore.withMods(uuiComponents.ControlGroup, () => [css$
|
|
1583
|
+
const ControlGroup = /* @__PURE__ */uuiCore.withMods(uuiComponents.ControlGroup, () => [css$1l.root, 'uui-control-group']);
|
|
1555
1584
|
|
|
1556
1585
|
function MultiSwitchComponent(props, ref) {
|
|
1557
1586
|
return (React__namespace.createElement(ControlGroup, { ref: ref, rawProps: {
|
|
@@ -1565,13 +1594,13 @@ function MultiSwitchComponent(props, ref) {
|
|
|
1565
1594
|
}
|
|
1566
1595
|
const MultiSwitch = /* @__PURE__ */React__namespace.forwardRef(MultiSwitchComponent);
|
|
1567
1596
|
|
|
1568
|
-
var css$
|
|
1597
|
+
var css$1k = {"root":"X-aUTq"};
|
|
1569
1598
|
|
|
1570
1599
|
const DEFAULT_MODE$2 = EditMode.FORM;
|
|
1571
1600
|
function applyNumericInputMods(mods) {
|
|
1572
1601
|
return [
|
|
1573
1602
|
textInputCss.root,
|
|
1574
|
-
css$
|
|
1603
|
+
css$1k.root,
|
|
1575
1604
|
`uui-size-${mods.size || settings.numericInput.sizes.default}`,
|
|
1576
1605
|
'uui-control-mode-' + (mods.mode || DEFAULT_MODE$2),
|
|
1577
1606
|
];
|
|
@@ -1585,12 +1614,12 @@ const NumericInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.NumericInput,
|
|
|
1585
1614
|
};
|
|
1586
1615
|
});
|
|
1587
1616
|
|
|
1588
|
-
var css$
|
|
1617
|
+
var css$1j = {"root":"UYZaLu"};
|
|
1589
1618
|
|
|
1590
1619
|
const DEFAULT_MODE$1 = EditMode.FORM;
|
|
1591
1620
|
function applyTextAreaMods(mods) {
|
|
1592
1621
|
return [
|
|
1593
|
-
css$
|
|
1622
|
+
css$1j.root,
|
|
1594
1623
|
'uui-textarea',
|
|
1595
1624
|
'uui-size-' + (mods.size || settings.textArea.sizes.default),
|
|
1596
1625
|
'uui-control-mode-' + (mods.mode || DEFAULT_MODE$1),
|
|
@@ -1626,17 +1655,17 @@ function TREE_SHAKEABLE_INIT$1() {
|
|
|
1626
1655
|
};
|
|
1627
1656
|
}
|
|
1628
1657
|
|
|
1629
|
-
var css$
|
|
1658
|
+
var css$1i = {"root":"_7iW3Pa","main-path":"_5g3WUo","mainPath":"_5g3WUo","content-wrapper":"bR2eks","contentWrapper":"bR2eks","content":"hpLMgH","action-wrapper":"oKFEmM","actionWrapper":"oKFEmM","icon-wrapper":"JXzT-o","iconWrapper":"JXzT-o","icon":"_7s7UKs","close-icon":"FDAtBk","closeIcon":"FDAtBk"};
|
|
1630
1659
|
|
|
1631
|
-
const Alert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("div", { role: "alert", ref: ref, className: cx__default.default('uui-alert', css$
|
|
1632
|
-
React__namespace.createElement("div", { className: css$
|
|
1633
|
-
React__namespace.createElement("div", { className: css$
|
|
1634
|
-
props.icon && (React__namespace.createElement("div", { className: css$
|
|
1635
|
-
React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$
|
|
1636
|
-
React__namespace.createElement("div", { className: css$
|
|
1660
|
+
const Alert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("div", { role: "alert", ref: ref, className: cx__default.default('uui-alert', css$1i.root, props.color && `uui-color-${props.color}`, props.cx, `uui-size-${props.size || settings.alert.sizes.default}`), ...props.rawProps },
|
|
1661
|
+
React__namespace.createElement("div", { className: css$1i.mainPath },
|
|
1662
|
+
React__namespace.createElement("div", { className: css$1i.contentWrapper },
|
|
1663
|
+
props.icon && (React__namespace.createElement("div", { className: css$1i.iconWrapper },
|
|
1664
|
+
React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$1i.icon }))),
|
|
1665
|
+
React__namespace.createElement("div", { className: css$1i.content },
|
|
1637
1666
|
props.children,
|
|
1638
|
-
props.actions && (React__namespace.createElement("div", { className: css$
|
|
1639
|
-
props.onClose && React__namespace.createElement(IconButton, { icon: settings.alert.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$
|
|
1667
|
+
props.actions && (React__namespace.createElement("div", { className: css$1i.actionWrapper }, props.actions.map((action) => (React__namespace.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$1i.actionLink, size: settings.alert.sizes.actionMap[props.size || settings.alert.sizes.default] }))))))),
|
|
1668
|
+
props.onClose && React__namespace.createElement(IconButton, { icon: settings.alert.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$1i.closeIcon })))));
|
|
1640
1669
|
const WarningAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, { icon: settings.alert.icons.warningIcon, color: "warning", ref: ref, ...props }));
|
|
1641
1670
|
const SuccessAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, { icon: settings.alert.icons.successIcon, color: "success", ref: ref, ...props }));
|
|
1642
1671
|
const HintAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, { icon: settings.alert.icons.infoIcon, color: "info", ref: ref, ...props }));
|
|
@@ -1644,18 +1673,18 @@ const ErrorAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => Re
|
|
|
1644
1673
|
|
|
1645
1674
|
const Dropdown = /* @__PURE__ */uuiCore.withMods(uuiComponents.Dropdown);
|
|
1646
1675
|
|
|
1647
|
-
var css$
|
|
1676
|
+
var css$1h = {"root":"feGmZN"};
|
|
1648
1677
|
|
|
1649
1678
|
function applyDropdownContainerMods(mods) {
|
|
1650
1679
|
return [
|
|
1651
|
-
css$
|
|
1680
|
+
css$1h.root,
|
|
1652
1681
|
mods.vPadding && `vPadding-${mods.vPadding}`,
|
|
1653
1682
|
mods.padding && `padding-${mods.padding}`,
|
|
1654
1683
|
];
|
|
1655
1684
|
}
|
|
1656
1685
|
const DropdownContainer = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.DropdownContainer, applyDropdownContainerMods);
|
|
1657
1686
|
|
|
1658
|
-
var css$
|
|
1687
|
+
var css$1g = {"submenu-root-item-rtl":"DmYcX6","submenuRootItemRtl":"DmYcX6","icon-after":"Mq6Qep","iconAfter":"Mq6Qep","submenu-root-item":"-KlPL-","submenuRootItem":"-KlPL-","icon-check":"wbivRt","iconCheck":"wbivRt","splitter-root":"gvd2D-","splitterRoot":"gvd2D-","splitter":"ZJRQ35","header-root":"B2r6Uc","headerRoot":"B2r6Uc","item-root":"Xjd57P","itemRoot":"Xjd57P","icon":"dkm6bb","link":"qE9QU9","indent":"QqxbDr","selected-mark":"xfIBEO","selectedMark":"xfIBEO"};
|
|
1659
1688
|
|
|
1660
1689
|
exports.IDropdownControlKeys = void 0;
|
|
1661
1690
|
(function (IDropdownControlKeys) {
|
|
@@ -1720,29 +1749,29 @@ const DropdownMenuButton = /* @__PURE__ */React__namespace.default.forwardRef((p
|
|
|
1720
1749
|
const getMenuButtonContent = () => {
|
|
1721
1750
|
const isIconBefore = Boolean(icon && iconPosition !== 'right');
|
|
1722
1751
|
const isIconAfter = Boolean(icon && iconPosition === 'right');
|
|
1723
|
-
const iconElement = (React__namespace.default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: uuiCore.cx(css$
|
|
1752
|
+
const iconElement = (React__namespace.default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: uuiCore.cx(css$1g.icon, iconPosition === 'right' ? css$1g.iconAfter : css$1g.iconBefore) }));
|
|
1724
1753
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1725
1754
|
isIconBefore && iconElement,
|
|
1726
|
-
React__namespace.default.createElement(uuiComponents.Text, { cx: props.indent && css$
|
|
1755
|
+
React__namespace.default.createElement(uuiComponents.Text, { cx: props.indent && css$1g.indent }, caption),
|
|
1727
1756
|
isIconAfter && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1728
1757
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1729
1758
|
iconElement))));
|
|
1730
1759
|
};
|
|
1731
1760
|
const isAnchor = Boolean(link || href);
|
|
1732
|
-
const itemClassNames = uuiCore.cx(props.cx, css$
|
|
1733
|
-
return isAnchor ? (React__namespace.default.createElement(uuiComponents.Anchor, { cx: uuiCore.cx(css$
|
|
1761
|
+
const itemClassNames = uuiCore.cx(props.cx, css$1g.itemRoot, isDisabled && uuiCore.uuiMod.disabled, isActive && uuiCore.uuiMod.active, isOpen && uuiCore.uuiMod.opened, (!isDisabled && onClick) && uuiCore.uuiMarkers.clickable);
|
|
1762
|
+
return isAnchor ? (React__namespace.default.createElement(uuiComponents.Anchor, { cx: uuiCore.cx(css$1g.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 },
|
|
1734
1763
|
getMenuButtonContent(),
|
|
1735
1764
|
isSelected && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1736
1765
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1737
|
-
React__namespace.default.createElement(uuiComponents.IconContainer, { icon: settings.dropdownMenu.icons.acceptIcon, cx: css$
|
|
1766
|
+
React__namespace.default.createElement(uuiComponents.IconContainer, { icon: settings.dropdownMenu.icons.acceptIcon, cx: css$1g.selectedMark })))));
|
|
1738
1767
|
});
|
|
1739
1768
|
function DropdownMenuSplitter(props) {
|
|
1740
|
-
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$
|
|
1741
|
-
React__namespace.default.createElement("hr", { className: css$
|
|
1769
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$1g.splitterRoot) },
|
|
1770
|
+
React__namespace.default.createElement("hr", { className: css$1g.splitter })));
|
|
1742
1771
|
}
|
|
1743
1772
|
function DropdownMenuHeader(props) {
|
|
1744
|
-
return (React__namespace.default.createElement("div", { className: uuiCore.cx('uui-dropdown-menu-header', props.cx, css$
|
|
1745
|
-
React__namespace.default.createElement("span", { className: css$
|
|
1773
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx('uui-dropdown-menu-header', props.cx, css$1g.headerRoot) },
|
|
1774
|
+
React__namespace.default.createElement("span", { className: css$1g.header }, props.caption)));
|
|
1746
1775
|
}
|
|
1747
1776
|
function DropdownSubMenu(props) {
|
|
1748
1777
|
const subMenuModifiers = [
|
|
@@ -1762,7 +1791,7 @@ function DropdownSubMenu(props) {
|
|
|
1762
1791
|
},
|
|
1763
1792
|
];
|
|
1764
1793
|
const isRtl = uuiCore.getDir() === 'rtl';
|
|
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$
|
|
1794
|
+
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$1g.submenuRootItemRtl : css$1g.submenuRootItem), icon: settings.dropdownMenu.icons.dropdownIcon, iconPosition: "right", isDropdown: true, toggleDropdownOpening: toggleDropdownOpening, ...props, ...targetProps })) }));
|
|
1766
1795
|
}
|
|
1767
1796
|
function DropdownMenuSwitchButton(props) {
|
|
1768
1797
|
const context = React.useContext(uuiCore.UuiContext);
|
|
@@ -1778,29 +1807,29 @@ function DropdownMenuSwitchButton(props) {
|
|
|
1778
1807
|
onHandleValueChange(!isSelected);
|
|
1779
1808
|
}
|
|
1780
1809
|
};
|
|
1781
|
-
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$
|
|
1782
|
-
icon && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icon, cx: css$
|
|
1810
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$1g.itemRoot, isDisabled && uuiCore.uuiMod.disabled, (!isDisabled || onValueChange) && uuiCore.uuiMarkers.clickable), onClick: () => onHandleValueChange(!isSelected), role: "menuitem", onKeyDown: handleKeySelect, tabIndex: isDisabled ? -1 : 0 },
|
|
1811
|
+
icon && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icon, cx: css$1g.iconBefore }),
|
|
1783
1812
|
React__namespace.default.createElement(uuiComponents.Text, null, caption),
|
|
1784
1813
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1785
1814
|
React__namespace.default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
1786
1815
|
}
|
|
1787
1816
|
|
|
1788
|
-
var css$
|
|
1817
|
+
var css$1f = {"root":"_5CvukL","mode-block":"_28n9FZ","modeBlock":"_28n9FZ","mode-inline":"hVIEP5","modeInline":"hVIEP5","padding-0":"MKk4Gy","padding0":"MKk4Gy","padding-6":"uGECOy","padding6":"uGECOy","padding-12":"xRQRMa","padding12":"xRQRMa","padding-18":"gDwGMD","padding18":"gDwGMD"};
|
|
1789
1818
|
|
|
1790
1819
|
function applyAccordionMods(mods) {
|
|
1791
1820
|
return [
|
|
1792
|
-
css$
|
|
1793
|
-
css$
|
|
1794
|
-
mods.padding && css$
|
|
1821
|
+
css$1f.root,
|
|
1822
|
+
css$1f[`mode-${mods.mode || 'block'}`],
|
|
1823
|
+
mods.padding && css$1f['padding-' + mods.padding],
|
|
1795
1824
|
];
|
|
1796
1825
|
}
|
|
1797
1826
|
const Accordion = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Accordion, applyAccordionMods, (mods) => ({
|
|
1798
1827
|
dropdownIcon: mods.dropdownIcon !== null && settings.accordion.icons.dropdownIcon,
|
|
1799
1828
|
}));
|
|
1800
1829
|
|
|
1801
|
-
var css$
|
|
1830
|
+
var css$1e = {"root":"k8eeDw","align-items":"daLVSl","alignItems":"daLVSl","justify-content":"nYGpTT","justifyContent":"nYGpTT","border-top":"e2yK2g","borderTop":"e2yK2g","border-bottom":"KIzQ2i","borderBottom":"KIzQ2i","top-shadow":"qvMvLs","topShadow":"qvMvLs","padding":"p-tw1R","margin":"JXAIe5","vPadding":"rgs9OV","column-gap":"ZkBNgw","columnGap":"ZkBNgw","row-gap":"_5DVR0F","rowGap":"_5DVR0F","spacing":"gI2k8g"};
|
|
1802
1831
|
|
|
1803
|
-
const FlexCell = /* @__PURE__ */uuiCore.withMods(uuiComponents.FlexCell, () => [css$
|
|
1832
|
+
const FlexCell = /* @__PURE__ */uuiCore.withMods(uuiComponents.FlexCell, () => [css$1e.flexCell]);
|
|
1804
1833
|
|
|
1805
1834
|
const FlexRow = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1806
1835
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -1809,22 +1838,22 @@ const FlexRow = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1809
1838
|
}
|
|
1810
1839
|
}
|
|
1811
1840
|
const classNames = uuiCore.cx([
|
|
1812
|
-
css$
|
|
1841
|
+
css$1e.root,
|
|
1813
1842
|
'uui-flex-row',
|
|
1814
1843
|
props.onClick && uuiCore.uuiMarkers.clickable,
|
|
1815
1844
|
props.cx,
|
|
1816
1845
|
props.size !== null && 'uui-size-' + (props.size || settings.flexRow.sizes.default),
|
|
1817
|
-
props.alignItems && css$
|
|
1818
|
-
props.justifyContent && css$
|
|
1819
|
-
props.padding && css$
|
|
1820
|
-
props.vPadding && css$
|
|
1821
|
-
props.margin && css$
|
|
1822
|
-
props.topShadow && css$
|
|
1823
|
-
props.borderBottom && css$
|
|
1824
|
-
props.borderTop && css$
|
|
1825
|
-
props.columnGap && css$
|
|
1826
|
-
props.rowGap && css$
|
|
1827
|
-
props.spacing && css$
|
|
1846
|
+
props.alignItems && css$1e.alignItems,
|
|
1847
|
+
props.justifyContent && css$1e.justifyContent,
|
|
1848
|
+
props.padding && css$1e.padding,
|
|
1849
|
+
props.vPadding && css$1e.vPadding,
|
|
1850
|
+
props.margin && css$1e.margin,
|
|
1851
|
+
props.topShadow && css$1e.topShadow,
|
|
1852
|
+
props.borderBottom && css$1e.borderBottom,
|
|
1853
|
+
props.borderTop && css$1e.borderTop,
|
|
1854
|
+
props.columnGap && css$1e.columnGap,
|
|
1855
|
+
props.rowGap && css$1e.rowGap,
|
|
1856
|
+
props.spacing && css$1e.spacing,
|
|
1828
1857
|
props.background && `uui-flex-row-bg-${props.background}`,
|
|
1829
1858
|
]);
|
|
1830
1859
|
const style = {
|
|
@@ -1843,32 +1872,32 @@ const FlexRow = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1843
1872
|
} }, props.children));
|
|
1844
1873
|
});
|
|
1845
1874
|
|
|
1846
|
-
var css$
|
|
1875
|
+
var css$1d = {"root":"ogt-u1","margin-24":"GbuoP4","margin24":"GbuoP4","padding-12":"CN3JPv","padding12":"CN3JPv","padding-24":"r-6a2s","padding24":"r-6a2s","shadow":"_7c6l7H","uui-surface-main":"GE-60F","uuiSurfaceMain":"GE-60F"};
|
|
1847
1876
|
|
|
1848
1877
|
const Panel = /* @__PURE__ */uuiCore.withMods(uuiComponents.VPanel, (props) => [
|
|
1849
1878
|
'uui-panel',
|
|
1850
|
-
css$
|
|
1851
|
-
props.shadow && css$
|
|
1852
|
-
props.margin && css$
|
|
1853
|
-
props.background && css$
|
|
1879
|
+
css$1d.root,
|
|
1880
|
+
props.shadow && css$1d.shadow,
|
|
1881
|
+
props.margin && css$1d['margin-' + props.margin],
|
|
1882
|
+
props.background && css$1d[`uui-${props.background}`],
|
|
1854
1883
|
]);
|
|
1855
1884
|
|
|
1856
|
-
var css$
|
|
1885
|
+
var css$1c = {"root":"_3OCjZu"};
|
|
1857
1886
|
|
|
1858
1887
|
function applyTooltipMods(mods) {
|
|
1859
1888
|
return [
|
|
1860
|
-
css$
|
|
1889
|
+
css$1c.root,
|
|
1861
1890
|
`uui-color-${mods.color || 'inverted'}`,
|
|
1862
1891
|
];
|
|
1863
1892
|
}
|
|
1864
1893
|
const Tooltip = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Tooltip, applyTooltipMods);
|
|
1865
1894
|
|
|
1866
|
-
var css$
|
|
1895
|
+
var css$1b = {"root":"yCRUhW"};
|
|
1867
1896
|
|
|
1868
1897
|
function applyLabeledInputMods(mods) {
|
|
1869
1898
|
return [
|
|
1870
1899
|
'uui-labeled-input',
|
|
1871
|
-
css$
|
|
1900
|
+
css$1b.root,
|
|
1872
1901
|
'uui-size-' + (mods.size || settings.labeledInput.sizes.default),
|
|
1873
1902
|
];
|
|
1874
1903
|
}
|
|
@@ -1880,7 +1909,7 @@ function applyLabeledInputProps(props) {
|
|
|
1880
1909
|
}
|
|
1881
1910
|
const LabeledInput = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.LabeledInput, applyLabeledInputMods, applyLabeledInputProps);
|
|
1882
1911
|
|
|
1883
|
-
var css$
|
|
1912
|
+
var css$1a = {"root":"Qmr9zU"};
|
|
1884
1913
|
|
|
1885
1914
|
function RadioGroup(props) {
|
|
1886
1915
|
const direction = props.direction || 'vertical';
|
|
@@ -1889,26 +1918,26 @@ function RadioGroup(props) {
|
|
|
1889
1918
|
props.onValueChange(newVal);
|
|
1890
1919
|
}
|
|
1891
1920
|
};
|
|
1892
|
-
return (React__namespace.createElement("fieldset", { ref: props.forwardedRef, className: uuiCore.cx(css$
|
|
1921
|
+
return (React__namespace.createElement("fieldset", { ref: props.forwardedRef, className: uuiCore.cx(css$1a.root, uuiCore.directionMode[direction], props.cx), onFocus: props.onFocus, onBlur: props.onBlur, ...props.rawProps }, props.items.map((i) => {
|
|
1893
1922
|
const { id, name, renderName, ...restItemProps } = i;
|
|
1894
1923
|
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 }));
|
|
1895
1924
|
})));
|
|
1896
1925
|
}
|
|
1897
1926
|
|
|
1898
|
-
var css$
|
|
1927
|
+
var css$19 = {"root":"_6Y4M76"};
|
|
1899
1928
|
|
|
1900
1929
|
function applyScrollBarsMods() {
|
|
1901
1930
|
return [
|
|
1902
|
-
css$
|
|
1931
|
+
css$19.root, 'uui-scroll-bars', 'uui-shadow-top', 'uui-shadow-bottom',
|
|
1903
1932
|
];
|
|
1904
1933
|
}
|
|
1905
1934
|
const ScrollBars = /* @__PURE__ */uuiCore.withMods(uuiComponents.ScrollBars, applyScrollBarsMods);
|
|
1906
1935
|
|
|
1907
|
-
var css$
|
|
1936
|
+
var css$18 = {"scroll-container":"_-7Dxnn","scrollContainer":"_-7Dxnn","list-container":"mqyIKD","listContainer":"mqyIKD"};
|
|
1908
1937
|
|
|
1909
|
-
var css$
|
|
1938
|
+
var css$17 = {"root":"bLzBZM"};
|
|
1910
1939
|
|
|
1911
|
-
const Blocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.Blocker, () => [css$
|
|
1940
|
+
const Blocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.Blocker, () => [css$17.root], () => ({ renderSpinner: settings.blocker.renderSpinner }));
|
|
1912
1941
|
|
|
1913
1942
|
const VirtualList = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
1914
1943
|
const { listContainerRef, offsetY, handleScroll, estimatedHeight, scrollContainerRef, } = uuiCore.useVirtualList({
|
|
@@ -1922,7 +1951,7 @@ const VirtualList = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
1922
1951
|
const scrollShadows = uuiCore.useScrollShadows({ root: scrollContainerRef.current });
|
|
1923
1952
|
const renderRows = () => props.renderRows?.({
|
|
1924
1953
|
listContainerRef, estimatedHeight, offsetY, scrollShadows,
|
|
1925
|
-
}) || (React__namespace.createElement("div", { className: css$
|
|
1954
|
+
}) || (React__namespace.createElement("div", { className: css$18.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
1926
1955
|
React__namespace.createElement("div", { ref: listContainerRef, role: props.role, style: { marginTop: offsetY } }, props.rows)));
|
|
1927
1956
|
const renderView = ({ style }) => (React__namespace.createElement(VirtualListView, { isLoading: props.isLoading, style: style, rawProps: props.rawProps }));
|
|
1928
1957
|
const scrollBarsRef = React__namespace.useCallback((scrollbars) => {
|
|
@@ -1930,7 +1959,7 @@ const VirtualList = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
1930
1959
|
return;
|
|
1931
1960
|
scrollContainerRef.current = scrollbars.container.firstChild;
|
|
1932
1961
|
}, []);
|
|
1933
|
-
return (React__namespace.createElement(ScrollBars, { cx: uuiCore.cx(css$
|
|
1962
|
+
return (React__namespace.createElement(ScrollBars, { cx: uuiCore.cx(css$18.scrollContainer, props.cx, {
|
|
1934
1963
|
[uuiCore.uuiMarkers.scrolledLeft]: scrollShadows.horizontalLeft,
|
|
1935
1964
|
[uuiCore.uuiMarkers.scrolledRight]: scrollShadows.horizontalRight,
|
|
1936
1965
|
[uuiCore.uuiMarkers.scrolledTop]: scrollShadows.verticalTop,
|
|
@@ -1952,7 +1981,7 @@ const VirtualListView = /* @__PURE__ */React__namespace.forwardRef((props, ref)
|
|
|
1952
1981
|
React__namespace.createElement(Blocker, { isEnabled: props.isLoading })));
|
|
1953
1982
|
});
|
|
1954
1983
|
|
|
1955
|
-
var css$
|
|
1984
|
+
var css$16 = {"root":"HOtXGZ"};
|
|
1956
1985
|
|
|
1957
1986
|
function CheckboxGroup(props) {
|
|
1958
1987
|
const currentValue = props.value || [];
|
|
@@ -1968,16 +1997,16 @@ function CheckboxGroup(props) {
|
|
|
1968
1997
|
}
|
|
1969
1998
|
props.onValueChange(newSelection);
|
|
1970
1999
|
};
|
|
1971
|
-
return (React__namespace.createElement("fieldset", { ref: props.forwardedRef, className: uuiCore.cx(css$
|
|
2000
|
+
return (React__namespace.createElement("fieldset", { ref: props.forwardedRef, className: uuiCore.cx(css$16.root, uuiCore.directionMode[direction], props.cx), ...props.rawProps }, props.items.map((i) => {
|
|
1972
2001
|
const { id, name, renderName, ...restItemProps } = i;
|
|
1973
2002
|
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 }));
|
|
1974
2003
|
})));
|
|
1975
2004
|
}
|
|
1976
2005
|
|
|
1977
|
-
var css$
|
|
2006
|
+
var css$15 = {"root":"a7DcZQ","modal-blocker":"Pi64Ya","modalBlocker":"Pi64Ya","animateModalBlocker":"tZG-m2","modal":"_0DpMKi","modal-footer":"mIM3os","modalFooter":"mIM3os","border-top":"w3-ZCQ","borderTop":"w3-ZCQ","modal-header":"jy2jUn","modalHeader":"jy2jUn","border-bottom":"N8TqO5","borderBottom":"N8TqO5"};
|
|
1978
2007
|
|
|
1979
|
-
const ModalBlocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalBlocker, () => [css$
|
|
1980
|
-
const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, () => [css$
|
|
2008
|
+
const ModalBlocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalBlocker, () => [css$15.modalBlocker]);
|
|
2009
|
+
const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, () => [css$15.root, css$15.modal], (props) => {
|
|
1981
2010
|
const width = props.width;
|
|
1982
2011
|
const height = props.height || 'auto';
|
|
1983
2012
|
const maxHeight = uuiCore.isMobile() ? 'var(--uui-modals-mobile-max-height)' : (props.maxHeight || 'var(--uui-modals-max-height)');
|
|
@@ -1991,7 +2020,7 @@ const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, (
|
|
|
1991
2020
|
};
|
|
1992
2021
|
});
|
|
1993
2022
|
function ModalHeader(props) {
|
|
1994
|
-
return (React__namespace.default.createElement("div", { className: cx__default.default(css$
|
|
2023
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default(css$15.root, css$15.modalHeader, 'uui-modal-header', props.borderBottom && css$15.borderBottom, props.cx), ...props.rawProps, style: {
|
|
1995
2024
|
...props.rawProps?.style,
|
|
1996
2025
|
} },
|
|
1997
2026
|
props.title && (React__namespace.default.createElement("div", { className: cx__default.default('uui-modal-title', 'uui-typography') }, props.title)),
|
|
@@ -2001,7 +2030,7 @@ function ModalHeader(props) {
|
|
|
2001
2030
|
React__namespace.default.createElement(IconButton, { rawProps: { 'aria-label': 'Close modal' }, icon: settings.modal.icons.closeIcon, onClick: props.onClose })))));
|
|
2002
2031
|
}
|
|
2003
2032
|
function ModalFooter(props) {
|
|
2004
|
-
return (React__namespace.default.createElement("div", { className: cx__default.default(css$
|
|
2033
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default(css$15.root, css$15.modalFooter, 'uui-modal-footer', props.borderTop && css$15.borderTop, props.cx), ...props.rawProps, style: {
|
|
2005
2034
|
...props.rawProps?.style,
|
|
2006
2035
|
} }, props.children));
|
|
2007
2036
|
}
|
|
@@ -2164,7 +2193,7 @@ const TREE_SHAKEABLE_INIT = () => ({
|
|
|
2164
2193
|
});
|
|
2165
2194
|
const i18n = /* @__PURE__ */TREE_SHAKEABLE_INIT();
|
|
2166
2195
|
|
|
2167
|
-
var css$
|
|
2196
|
+
var css$14 = {"root":"eaSWnB","icon-wrapper":"k73cGX","iconWrapper":"k73cGX","action-wrapper":"_8NnI6l","actionWrapper":"_8NnI6l","action-link":"_4rBhn-","actionLink":"_4rBhn-","close-icon":"c8ShMl","closeIcon":"c8ShMl","main-path":"WtJ4AK","mainPath":"WtJ4AK","content":"Q5D-S7","close-wrapper":"l-JoBd","closeWrapper":"l-JoBd","notification-wrapper":"_8L9GQP","notificationWrapper":"_8L9GQP","clear-button":"cE6rQN","clearButton":"cE6rQN"};
|
|
2168
2197
|
|
|
2169
2198
|
const NotificationCard = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
2170
2199
|
const notificationCardNode = React__namespace.default.useRef(null);
|
|
@@ -2177,15 +2206,15 @@ const NotificationCard = /* @__PURE__ */React__namespace.default.forwardRef((pro
|
|
|
2177
2206
|
notificationCardNode.current?.removeEventListener('mouseleave', props.refreshTimer);
|
|
2178
2207
|
};
|
|
2179
2208
|
}, []);
|
|
2180
|
-
return (React__namespace.default.createElement("div", { role: "alert", className: cx__default.default('uui-notification_card', props.color && `uui-color-${props.color}`, css$
|
|
2181
|
-
React__namespace.default.createElement("div", { className: css$
|
|
2182
|
-
props.icon && (React__namespace.default.createElement("div", { className: css$
|
|
2209
|
+
return (React__namespace.default.createElement("div", { role: "alert", className: cx__default.default('uui-notification_card', props.color && `uui-color-${props.color}`, css$14.root, props.cx), ref: notificationCardNode, ...props.rawProps },
|
|
2210
|
+
React__namespace.default.createElement("div", { className: css$14.mainPath },
|
|
2211
|
+
props.icon && (React__namespace.default.createElement("div", { className: css$14.iconWrapper },
|
|
2183
2212
|
React__namespace.default.createElement(uuiComponents.IconContainer, { size: 24, icon: props.icon }))),
|
|
2184
|
-
React__namespace.default.createElement("div", { className: css$
|
|
2213
|
+
React__namespace.default.createElement("div", { className: css$14.content },
|
|
2185
2214
|
props.children,
|
|
2186
|
-
props.actions && (React__namespace.default.createElement("div", { className: css$
|
|
2187
|
-
props.onClose && (React__namespace.default.createElement("div", { className: css$
|
|
2188
|
-
React__namespace.default.createElement(IconButton, { icon: settings.notificationCard.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$
|
|
2215
|
+
props.actions && (React__namespace.default.createElement("div", { className: css$14.actionWrapper }, props.actions.map((action) => (React__namespace.default.createElement(LinkButton, { key: action.name, caption: action.name, onClick: action.action, cx: css$14.actionLink, size: settings.notificationCard.sizes.action, rawProps: action.rawProps })))))),
|
|
2216
|
+
props.onClose && (React__namespace.default.createElement("div", { className: css$14.closeWrapper },
|
|
2217
|
+
React__namespace.default.createElement(IconButton, { icon: settings.notificationCard.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$14.closeIcon }))))));
|
|
2189
2218
|
});
|
|
2190
2219
|
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 })));
|
|
2191
2220
|
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 })));
|
|
@@ -2193,11 +2222,11 @@ const HintNotification = /* @__PURE__ */React__namespace.default.forwardRef((pro
|
|
|
2193
2222
|
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 })));
|
|
2194
2223
|
function ClearNotification() {
|
|
2195
2224
|
const uuiCtx = uuiCore.useUuiContext();
|
|
2196
|
-
return (React__namespace.default.createElement("div", { className: cx__default.default(css$
|
|
2225
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default(css$14.notificationWrapper, css$14.clearButton) },
|
|
2197
2226
|
React__namespace.default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => uuiCtx.uuiNotifications.clearAll() })));
|
|
2198
2227
|
}
|
|
2199
2228
|
|
|
2200
|
-
var css$
|
|
2229
|
+
var css$13 = {"footer":"YnEQlR"};
|
|
2201
2230
|
|
|
2202
2231
|
class ConfirmationModal extends React__namespace.Component {
|
|
2203
2232
|
render() {
|
|
@@ -2209,7 +2238,7 @@ class ConfirmationModal extends React__namespace.Component {
|
|
|
2209
2238
|
React__namespace.createElement(ModalWindow, { width: 420 },
|
|
2210
2239
|
React__namespace.createElement(ModalHeader, { borderBottom: true, title: this.props.caption, onClose: () => this.props.abort() }),
|
|
2211
2240
|
React__namespace.createElement(ScrollBars, null, bodyContent),
|
|
2212
|
-
React__namespace.createElement(ModalFooter, { cx: css$
|
|
2241
|
+
React__namespace.createElement(ModalFooter, { cx: css$13.footer },
|
|
2213
2242
|
this.props.hideCancelButton || (React__namespace.createElement(Button, { caption: i18n.form.modals.discardButton, onClick: () => this.props.success(false), fill: "outline", color: "secondary" })),
|
|
2214
2243
|
React__namespace.createElement(Button, { caption: i18n.form.modals.saveButton, onClick: () => this.props.success(true), color: "primary" })))));
|
|
2215
2244
|
}
|
|
@@ -2239,7 +2268,7 @@ function useReliableForceUpdate() {
|
|
|
2239
2268
|
return red[1];
|
|
2240
2269
|
}
|
|
2241
2270
|
|
|
2242
|
-
var css$
|
|
2271
|
+
var css$12 = {"root":"_2Ynwsk","timepicker-input":"agnYHu","timepickerInput":"agnYHu","ltr-always":"-RVjIo","ltrAlways":"-RVjIo"};
|
|
2243
2272
|
|
|
2244
2273
|
const uuiTimePicker = {
|
|
2245
2274
|
container: 'uui-timepicker-container',
|
|
@@ -2278,8 +2307,8 @@ function TimePickerBody(props) {
|
|
|
2278
2307
|
const minutesToSubtract = value.minute() % minutesStep === 0 ? minutesStep : value.minute() % minutesStep;
|
|
2279
2308
|
onMinutesChange(value.subtract(minutesToSubtract, 'm').minute());
|
|
2280
2309
|
};
|
|
2281
|
-
return (React__namespace.createElement("div", { className: uuiCore.cx(css$
|
|
2282
|
-
React__namespace.createElement("div", { className: css$
|
|
2310
|
+
return (React__namespace.createElement("div", { className: uuiCore.cx(css$12.root, uuiTimePicker.container, props.cx), ref: props.forwardedRef, ...props.rawProps },
|
|
2311
|
+
React__namespace.createElement("div", { className: css$12.ltrAlways },
|
|
2283
2312
|
React__namespace.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
2284
2313
|
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()) }),
|
|
2285
2314
|
React__namespace.createElement(uuiComponents.NumericInput, { cx: uuiTimePicker.input, onValueChange: onHoursChange, value: +(uuiDayjs.dayjs()
|
|
@@ -2422,7 +2451,7 @@ function TimePicker(props) {
|
|
|
2422
2451
|
state.value && state.inputValue && saveTime(state.value);
|
|
2423
2452
|
};
|
|
2424
2453
|
const renderInput = (inputProps) => {
|
|
2425
|
-
return (React__namespace.default.createElement(TextInput, { ...inputProps, onClick: null, size: props.size, isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, cx: [css$
|
|
2454
|
+
return (React__namespace.default.createElement(TextInput, { ...inputProps, onClick: null, size: props.size, isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, cx: [css$12.root, css$12.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 }));
|
|
2426
2455
|
};
|
|
2427
2456
|
const renderBody = (bodyProps) => {
|
|
2428
2457
|
const { forwardedRef, onValueChange, ...timePickerBodyProps } = props;
|
|
@@ -2432,27 +2461,27 @@ function TimePicker(props) {
|
|
|
2432
2461
|
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 }));
|
|
2433
2462
|
}
|
|
2434
2463
|
|
|
2435
|
-
var css$
|
|
2464
|
+
var css$11 = {"root":"Mh6sMX"};
|
|
2436
2465
|
|
|
2437
2466
|
function applyInputAddonMods() {
|
|
2438
2467
|
return [
|
|
2439
|
-
css$
|
|
2468
|
+
css$11.root,
|
|
2440
2469
|
];
|
|
2441
2470
|
}
|
|
2442
2471
|
const InputAddon = /* @__PURE__ */uuiCore.withMods(uuiComponents.InputAddon, applyInputAddonMods);
|
|
2443
2472
|
|
|
2444
|
-
var css$
|
|
2473
|
+
var css$10 = {"root":"vjbDyM"};
|
|
2445
2474
|
|
|
2446
2475
|
function applySliderMods() {
|
|
2447
|
-
return [css$
|
|
2476
|
+
return [css$10.root, 'uui-color-neutral'];
|
|
2448
2477
|
}
|
|
2449
2478
|
const Slider = /* @__PURE__ */uuiCore.withMods(uuiComponents.Slider, applySliderMods);
|
|
2450
2479
|
|
|
2451
|
-
var css
|
|
2480
|
+
var css$$ = {"root":"t6IDqu","tooltip":"_60cWOd"};
|
|
2452
2481
|
|
|
2453
2482
|
function applyRatingMods(mods) {
|
|
2454
2483
|
return [
|
|
2455
|
-
css
|
|
2484
|
+
css$$.root,
|
|
2456
2485
|
`uui-size-${mods.size || settings.rating.sizes.default}`,
|
|
2457
2486
|
];
|
|
2458
2487
|
}
|
|
@@ -2462,7 +2491,7 @@ const Rating = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Rating,
|
|
|
2462
2491
|
Tooltip,
|
|
2463
2492
|
}));
|
|
2464
2493
|
|
|
2465
|
-
var css$
|
|
2494
|
+
var css$_ = {"root":"v-yTAM","container":"vcCPcf"};
|
|
2466
2495
|
|
|
2467
2496
|
const defaultFormat = 'MMM D, YYYY';
|
|
2468
2497
|
const valueFormat = 'YYYY-MM-DD';
|
|
@@ -2666,21 +2695,21 @@ function DatePickerHeader({ navIconLeft, navIconRight, value: { month, view }, o
|
|
|
2666
2695
|
}, [view, month]);
|
|
2667
2696
|
const disablePrev = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getPrevYearsList(month));
|
|
2668
2697
|
const disableNext = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getNextYearsList(month));
|
|
2669
|
-
return (React__namespace.createElement("div", { className: cx__default.default(css$
|
|
2698
|
+
return (React__namespace.createElement("div", { className: cx__default.default(css$_.root, uuiHeader.container, cx__default.default) },
|
|
2670
2699
|
React__namespace.createElement("header", { className: uuiHeader.headerNav },
|
|
2671
2700
|
React__namespace.createElement(Button, { icon: navIconLeft || settings.datePicker.icons.body.prevIcon, color: "secondary", fill: "ghost", cx: uuiHeader.navIconLeft, onClick: !isDisabled && (() => onLeftNavigationArrow()), isDisabled: disablePrev }),
|
|
2672
2701
|
React__namespace.createElement(Button, { caption: title, fill: "ghost", cx: uuiHeader.navTitle, onClick: !isDisabled && (() => onCaptionClick(view)) }),
|
|
2673
2702
|
React__namespace.createElement(Button, { icon: navIconRight || settings.datePicker.icons.body.nextIcon, color: "secondary", fill: "ghost", cx: uuiHeader.navIconRight, onClick: !isDisabled && (() => onRightNavigationArrow()), isDisabled: disableNext }))));
|
|
2674
2703
|
}
|
|
2675
2704
|
|
|
2676
|
-
var css
|
|
2705
|
+
var css$Z = {"root":"DtooIy"};
|
|
2677
2706
|
|
|
2678
2707
|
function applyDateSelectionMods() {
|
|
2679
|
-
return [css
|
|
2708
|
+
return [css$Z.root, `uui-size-${settings.datePicker.sizes.body}`];
|
|
2680
2709
|
}
|
|
2681
2710
|
const Calendar = /* @__PURE__ */uuiCore.withMods(uuiComponents.Calendar, applyDateSelectionMods);
|
|
2682
2711
|
|
|
2683
|
-
var css$
|
|
2712
|
+
var css$Y = {"root":"Irzmgm"};
|
|
2684
2713
|
|
|
2685
2714
|
const uuiDatePickerBody = {
|
|
2686
2715
|
wrapper: 'uui-datepicker-body-wrapper',
|
|
@@ -2724,7 +2753,7 @@ function StatelessDatePickerBodyComp({ renderDay, isHoliday, cx: classes, filter
|
|
|
2724
2753
|
}
|
|
2725
2754
|
};
|
|
2726
2755
|
return (React__namespace.default.createElement("div", { ref: ref, className: uuiCore.cx(uuiDatePickerBodyBase.container, `uui-size-${settings.datePicker.sizes.body}`, classes), ...rawProps },
|
|
2727
|
-
React__namespace.default.createElement("div", { className: uuiCore.cx(css$
|
|
2756
|
+
React__namespace.default.createElement("div", { className: uuiCore.cx(css$Y.root, uuiDatePickerBody.wrapper) },
|
|
2728
2757
|
React__namespace.default.createElement(DatePickerHeader, { value: {
|
|
2729
2758
|
view,
|
|
2730
2759
|
month,
|
|
@@ -2806,7 +2835,7 @@ function DatePickerComponent(props, ref) {
|
|
|
2806
2835
|
}
|
|
2807
2836
|
const DatePicker = /* @__PURE__ */React__namespace.default.forwardRef(DatePickerComponent);
|
|
2808
2837
|
|
|
2809
|
-
var css$
|
|
2838
|
+
var css$X = {"date-input":"_9E6Lq7","dateInput":"_9E6Lq7","root":"fA0K1m","separator":"nNqL7U"};
|
|
2810
2839
|
|
|
2811
2840
|
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) => {
|
|
2812
2841
|
const [inputValue, setInputValue] = React.useState(toCustomDateRangeFormat(value, format));
|
|
@@ -2849,15 +2878,15 @@ const RangeDatePickerInput = /* @__PURE__ */React.forwardRef(({ isDisabled, isIn
|
|
|
2849
2878
|
const clearAllowed = !disableClear && inputValue.from && inputValue.to;
|
|
2850
2879
|
return (
|
|
2851
2880
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
2852
|
-
React__namespace.default.createElement("div", { ref: ref, className: uuiCore.cx(`uui-size-${size || settings.rangeDatePicker.sizes.default}`, 'uui-range-date-picker', classes, css$
|
|
2853
|
-
React__namespace.default.createElement(TextInput, { icon: settings.rangeDatePicker.icons.input.calendarIcon, cx: uuiCore.cx(css$
|
|
2854
|
-
React__namespace.default.createElement("div", { className: css$
|
|
2855
|
-
React__namespace.default.createElement(TextInput, { cx: uuiCore.cx(css$
|
|
2881
|
+
React__namespace.default.createElement("div", { ref: ref, className: uuiCore.cx(`uui-size-${size || settings.rangeDatePicker.sizes.default}`, 'uui-range-date-picker', classes, css$X.root, isDisabled && uuiCore.uuiMod.disabled, isReadonly && uuiCore.uuiMod.readonly, isInvalid && uuiCore.uuiMod.invalid, inFocus && uuiCore.uuiMod.focus), onKeyDown: onKeyDown },
|
|
2882
|
+
React__namespace.default.createElement(TextInput, { icon: settings.rangeDatePicker.icons.input.calendarIcon, cx: uuiCore.cx(css$X.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 }),
|
|
2883
|
+
React__namespace.default.createElement("div", { className: css$X.separator }),
|
|
2884
|
+
React__namespace.default.createElement(TextInput, { cx: uuiCore.cx(css$X.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 ? () => {
|
|
2856
2885
|
onValueChange(defaultRangeValue);
|
|
2857
2886
|
} : 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 })));
|
|
2858
2887
|
});
|
|
2859
2888
|
|
|
2860
|
-
var css$
|
|
2889
|
+
var css$W = {"root":"_2-Glz9"};
|
|
2861
2890
|
|
|
2862
2891
|
const uuiPresets = {
|
|
2863
2892
|
container: 'uui-presets-container',
|
|
@@ -2872,12 +2901,12 @@ const getPresets = (presets) => {
|
|
|
2872
2901
|
})).sort((a, b) => a.order - b.order);
|
|
2873
2902
|
};
|
|
2874
2903
|
function CalendarPresets(props) {
|
|
2875
|
-
return (React__namespace.createElement("div", { ref: props.forwardedRef, className: uuiCore.cx(uuiPresets.container, css$
|
|
2904
|
+
return (React__namespace.createElement("div", { ref: props.forwardedRef, className: uuiCore.cx(uuiPresets.container, css$W.root, props.cx), ...props.rawProps },
|
|
2876
2905
|
React__namespace.createElement("div", { className: uuiPresets.header }, "Presets"),
|
|
2877
2906
|
getPresets(props.presets).map((item) => (React__namespace.createElement(LinkButton, { key: item.key, caption: item.name, onClick: () => props.onPresetSet(item), size: settings.rangeDatePicker.sizes.preset })))));
|
|
2878
2907
|
}
|
|
2879
2908
|
|
|
2880
|
-
var css$
|
|
2909
|
+
var css$V = {"root":"WMiVXg","container":"tnIjE5","day-selection":"G0ULmw","daySelection":"G0ULmw","from-picker":"-GCWl2","fromPicker":"-GCWl2","to-picker":"W1XN2m","toPicker":"W1XN2m","bodes-wrapper":"_0J6obL","bodesWrapper":"_0J6obL","blocker":"_93Zilr"};
|
|
2881
2910
|
|
|
2882
2911
|
const uuiRangeDatePickerBody = {
|
|
2883
2912
|
inRange: 'uui-range-datepicker-in-range',
|
|
@@ -3018,21 +3047,21 @@ function RangeDatePickerBodyComp(props, ref) {
|
|
|
3018
3047
|
});
|
|
3019
3048
|
}, presets: presets })));
|
|
3020
3049
|
};
|
|
3021
|
-
return (React__namespace.default.createElement("div", { ref: ref, className: uuiCore.cx(css$
|
|
3022
|
-
React__namespace.default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$
|
|
3050
|
+
return (React__namespace.default.createElement("div", { ref: ref, className: uuiCore.cx(css$V.root, uuiDatePickerBodyBase.container, props.cx), ...props.rawProps },
|
|
3051
|
+
React__namespace.default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$V.daySelection, css$V.container], alignItems: "top" },
|
|
3023
3052
|
React__namespace.default.createElement(FlexCell, { width: "auto" },
|
|
3024
3053
|
React__namespace.default.createElement(FlexRow, null,
|
|
3025
|
-
React__namespace.default.createElement(FlexRow, { cx: css$
|
|
3026
|
-
React__namespace.default.createElement(StatelessDatePickerBody, { key: "date-picker-body-left", cx: uuiCore.cx(css$
|
|
3054
|
+
React__namespace.default.createElement(FlexRow, { cx: css$V.bodesWrapper, alignItems: "top" },
|
|
3055
|
+
React__namespace.default.createElement(StatelessDatePickerBody, { key: "date-picker-body-left", cx: uuiCore.cx(css$V.fromPicker), ...from, onValueChange: (v) => onBodyValueChange(v, 'from'), onMonthChange: (m) => {
|
|
3027
3056
|
setMonth(m);
|
|
3028
3057
|
}, onViewChange: (v) => setView(v), filter: props.filter, isHoliday: props.isHoliday, renderDay: props.renderDay || renderDay, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'to' }),
|
|
3029
|
-
React__namespace.default.createElement(StatelessDatePickerBody, { key: "date-picker-body-right", cx: uuiCore.cx(css$
|
|
3058
|
+
React__namespace.default.createElement(StatelessDatePickerBody, { key: "date-picker-body-right", cx: uuiCore.cx(css$V.toPicker), ...to, onValueChange: (v) => onBodyValueChange(v, 'to'), onMonthChange: (m) => {
|
|
3030
3059
|
setMonth(m.subtract(1, 'month'));
|
|
3031
3060
|
}, onViewChange: (v) => setView(v), filter: props.filter, renderDay: props.renderDay || renderDay, isHoliday: props.isHoliday, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'from' }),
|
|
3032
3061
|
view !== 'DAY_SELECTION' && (React__namespace.default.createElement("div", { style: {
|
|
3033
3062
|
left: activeMonth === 'from' ? '50%' : undefined,
|
|
3034
3063
|
right: activeMonth === 'to' ? '50%' : undefined,
|
|
3035
|
-
}, className: css$
|
|
3064
|
+
}, className: css$V.blocker }))),
|
|
3036
3065
|
props.presets && renderPresets(props.presets)),
|
|
3037
3066
|
props.renderFooter && props.renderFooter()))));
|
|
3038
3067
|
}
|
|
@@ -3052,7 +3081,7 @@ const getDayCX = (day, selectedDate) => {
|
|
|
3052
3081
|
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)];
|
|
3053
3082
|
};
|
|
3054
3083
|
|
|
3055
|
-
var css$
|
|
3084
|
+
var css$U = {"dropdown-container":"ZodwOc","dropdownContainer":"ZodwOc"};
|
|
3056
3085
|
|
|
3057
3086
|
const modifiers = [{
|
|
3058
3087
|
name: 'offset',
|
|
@@ -3096,7 +3125,7 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
3096
3125
|
}
|
|
3097
3126
|
};
|
|
3098
3127
|
const renderBody = (renderProps) => {
|
|
3099
|
-
return (React__namespace.default.createElement(DropdownContainer, { ...renderProps, cx: cx__default.default(css$
|
|
3128
|
+
return (React__namespace.default.createElement(DropdownContainer, { ...renderProps, cx: cx__default.default(css$U.dropdownContainer), shards: [targetRef], returnFocus: true },
|
|
3100
3129
|
React__namespace.default.createElement(FlexRow, null,
|
|
3101
3130
|
React__namespace.default.createElement(RangeDatePickerBody, { cx: cx__default.default(props.bodyCx), value: {
|
|
3102
3131
|
selectedDate: _value,
|
|
@@ -3120,51 +3149,24 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
3120
3149
|
}
|
|
3121
3150
|
const RangeDatePicker = /* @__PURE__ */React__namespace.default.forwardRef(RangeDatePickerComponent);
|
|
3122
3151
|
|
|
3123
|
-
var css$
|
|
3152
|
+
var css$T = {"root":"viX6F9","blocker":"C6j8Jq","marker":"k7NAia","top":"SEfXlM","bottom":"AjmXE5","left":"_7qcYC5","right":"FG49Or","inside":"BUo-Wk"};
|
|
3124
3153
|
|
|
3125
3154
|
function DropMarker(props) {
|
|
3126
3155
|
return props.isDndInProgress
|
|
3127
3156
|
? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
3128
|
-
props.enableBlocker && React__namespace.createElement("div", { className: css$
|
|
3157
|
+
props.enableBlocker && React__namespace.createElement("div", { className: css$T.blocker }),
|
|
3129
3158
|
React__namespace.createElement("div", { className: cx__default.default([
|
|
3130
|
-
css$
|
|
3131
|
-
css$
|
|
3132
|
-
css$
|
|
3159
|
+
css$T.root,
|
|
3160
|
+
css$T.marker,
|
|
3161
|
+
css$T[props.position],
|
|
3133
3162
|
props?.cx,
|
|
3134
3163
|
]) })))
|
|
3135
3164
|
: null;
|
|
3136
3165
|
}
|
|
3137
3166
|
|
|
3138
|
-
var css$U = {"root":"_5yyIl6","line-height":"OhcYc1","lineHeight":"OhcYc1","font-size":"VKjIgU","fontSize":"VKjIgU"};
|
|
3139
|
-
|
|
3140
|
-
function applyTextMods(mods) {
|
|
3141
|
-
return [
|
|
3142
|
-
css$U.root,
|
|
3143
|
-
'uui-text',
|
|
3144
|
-
`uui-size-${mods.size || settings.text.sizes.default}`,
|
|
3145
|
-
(mods.size !== 'none' || mods.lineHeight) && css$U.lineHeight,
|
|
3146
|
-
(mods.size !== 'none' || mods.fontSize) && css$U.fontSize,
|
|
3147
|
-
`uui-color-${mods.color || 'primary'}`,
|
|
3148
|
-
`uui-font-weight-${mods.fontWeight || '400'}`,
|
|
3149
|
-
`uui-font-style-${mods.fontStyle || 'normal'}`,
|
|
3150
|
-
'uui-typography-inline',
|
|
3151
|
-
];
|
|
3152
|
-
}
|
|
3153
|
-
const Text = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Text, applyTextMods, (props) => {
|
|
3154
|
-
const style = props?.rawProps?.style || {};
|
|
3155
|
-
props.fontSize && (style['--uui-text-font-size'] = `${props.fontSize}px`);
|
|
3156
|
-
props.lineHeight && (style['--uui-text-line-height'] = `${props.lineHeight}px`);
|
|
3157
|
-
return {
|
|
3158
|
-
rawProps: {
|
|
3159
|
-
...props?.rawProps,
|
|
3160
|
-
style: style,
|
|
3161
|
-
},
|
|
3162
|
-
};
|
|
3163
|
-
});
|
|
3164
|
-
|
|
3165
3167
|
const RichTextView = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.RichTextView, (mods) => ['uui-typography', `uui-typography-size-${mods.size || settings.richTextView.sizes.default}`]);
|
|
3166
3168
|
|
|
3167
|
-
var css$
|
|
3169
|
+
var css$S = {"modal":"LO-0ge","search-wrapper":"_0Hv78q","searchWrapper":"_0Hv78q","no-data":"CZLauV","noData":"CZLauV","type-search-to-load-size-24":"_9GQNCs","typeSearchToLoadSize24":"_9GQNCs"};
|
|
3168
3170
|
|
|
3169
3171
|
class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
3170
3172
|
constructor() {
|
|
@@ -3185,7 +3187,7 @@ class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
|
3185
3187
|
});
|
|
3186
3188
|
}
|
|
3187
3189
|
if (this.props.minCharsToSearch && search.length < this.props.minCharsToSearch) {
|
|
3188
|
-
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$
|
|
3190
|
+
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$S.noData, grow: 1, textAlign: "center" },
|
|
3189
3191
|
React__namespace.default.createElement(Text, { size: this.props.searchSize }, i18n.dataPickerBody.typeSearchToLoadMessage)));
|
|
3190
3192
|
}
|
|
3191
3193
|
if (this.props.rows.length === 0) {
|
|
@@ -3200,25 +3202,23 @@ class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
|
3200
3202
|
}
|
|
3201
3203
|
// Default no record found message for 'NOT_FOUND' and "NO_RECORDS" reason
|
|
3202
3204
|
// TODO: make separate messages for 'NOT_FOUND' and "NO_RECORDS" reason
|
|
3203
|
-
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$
|
|
3205
|
+
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$S.noData, grow: 1, textAlign: "center" },
|
|
3204
3206
|
React__namespace.default.createElement(Text, { size: this.props.searchSize }, i18n.dataPickerBody.noRecordsMessage)));
|
|
3205
3207
|
}
|
|
3206
3208
|
}
|
|
3207
3209
|
render() {
|
|
3208
3210
|
const searchSize = this.getSearchSize();
|
|
3209
3211
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
3210
|
-
this.showSearch() && (React__namespace.default.createElement("div", { key: "search", className: uuiCore.cx(css$
|
|
3212
|
+
this.showSearch() && (React__namespace.default.createElement("div", { key: "search", className: uuiCore.cx(css$S.searchWrapper, 'uui-picker_input-body-search') },
|
|
3211
3213
|
React__namespace.default.createElement(uuiComponents.FlexCell, { grow: 1 },
|
|
3212
3214
|
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' } })))),
|
|
3213
|
-
React__namespace.default.createElement(FlexRow, { key: "body", cx: uuiCore.cx('uui-picker_input-body', css$
|
|
3215
|
+
React__namespace.default.createElement(FlexRow, { key: "body", cx: uuiCore.cx('uui-picker_input-body', css$S[this.props.editMode], css$S[this.props.selectionMode]), rawProps: { style: { maxHeight: this.props.maxHeight, maxWidth: this.props.maxWidth } } }, this.props.rows.length === 0 && this.props.value.topIndex === 0
|
|
3214
3216
|
// 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
|
|
3215
3217
|
// we fix this state on next render and shouldn't show empty state.
|
|
3216
3218
|
? 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 })))));
|
|
3217
3219
|
}
|
|
3218
3220
|
}
|
|
3219
3221
|
|
|
3220
|
-
var css$S = {"footer":"KGxzzk"};
|
|
3221
|
-
|
|
3222
3222
|
function DataPickerFooterImpl(props) {
|
|
3223
3223
|
const { search, clearSelection, view, showSelected, selectionMode, isSearchTooShort, } = props;
|
|
3224
3224
|
const size = uuiCore.isMobile() ? settings.pickerInput.sizes.body.mobileFooterLinkButton : props.size;
|
|
@@ -3231,7 +3231,7 @@ function DataPickerFooterImpl(props) {
|
|
|
3231
3231
|
const isSearching = search?.length;
|
|
3232
3232
|
const hideFooter = (rowsCount === 0 && !hasSelection) || isSearching || (isSinglePicker && props.disableClear);
|
|
3233
3233
|
const showClear = !props.disableClear && (isSinglePicker ? true : (!view.selectAll || hasSelection));
|
|
3234
|
-
return !hideFooter && (React__namespace.default.createElement(FlexRow, { cx:
|
|
3234
|
+
return !hideFooter && (React__namespace.default.createElement(FlexRow, { cx: "uui-picker_input-footer" },
|
|
3235
3235
|
!isSinglePicker && !isSearchTooShort && ( // Show this switch only for multi mode and when some rows rendered
|
|
3236
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 })),
|
|
3237
3237
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
@@ -3243,7 +3243,7 @@ function DataPickerFooterImpl(props) {
|
|
|
3243
3243
|
}
|
|
3244
3244
|
const DataPickerFooter = /* @__PURE__ */React__namespace.default.memo(DataPickerFooterImpl);
|
|
3245
3245
|
|
|
3246
|
-
var css$R = {"header":"
|
|
3246
|
+
var css$R = {"header":"_2uPIeX","title":"pb27SQ","close":"aT2wUR"};
|
|
3247
3247
|
|
|
3248
3248
|
const DataPickerHeaderImpl = (props) => {
|
|
3249
3249
|
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
@@ -3253,11 +3253,11 @@ const DataPickerHeaderImpl = (props) => {
|
|
|
3253
3253
|
};
|
|
3254
3254
|
const DataPickerHeader = /* @__PURE__ */React__namespace.default.memo(DataPickerHeaderImpl);
|
|
3255
3255
|
|
|
3256
|
-
var css$Q = {"root":"
|
|
3256
|
+
var css$Q = {"root":"iPnhjb"};
|
|
3257
3257
|
|
|
3258
3258
|
const AvatarStack = /* @__PURE__ */uuiCore.withMods(uuiComponents.AvatarStack, () => [css$Q.root]);
|
|
3259
3259
|
|
|
3260
|
-
var css$P = {"root":"
|
|
3260
|
+
var css$P = {"root":"WkS6e8"};
|
|
3261
3261
|
|
|
3262
3262
|
const DEFAULT_FILL = 'solid';
|
|
3263
3263
|
function applyBadgeMods(mods) {
|
|
@@ -3285,7 +3285,7 @@ const Badge = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) =>
|
|
|
3285
3285
|
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
3286
3286
|
});
|
|
3287
3287
|
|
|
3288
|
-
var css$O = {"root":"
|
|
3288
|
+
var css$O = {"root":"FnHZ9u"};
|
|
3289
3289
|
|
|
3290
3290
|
function applyTagMods(props) {
|
|
3291
3291
|
return [
|
|
@@ -3313,7 +3313,7 @@ const Tag = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
|
3313
3313
|
props.onClear && !props.isDisabled && (React__namespace.default.createElement(uuiComponents.IconContainer, { cx: uuiCore.uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
3314
3314
|
});
|
|
3315
3315
|
|
|
3316
|
-
var css$N = {"root":"
|
|
3316
|
+
var css$N = {"root":"VjeqzI","page":"_9-1c9K","spacer":"dxjGGM","mode-ghost":"wG4iS5","modeGhost":"wG4iS5"};
|
|
3317
3317
|
|
|
3318
3318
|
function Paginator(props) {
|
|
3319
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 },
|
|
@@ -3330,14 +3330,14 @@ function Paginator(props) {
|
|
|
3330
3330
|
return React__namespace.default.createElement(uuiComponents.Paginator, { ...props, render: renderPaginator });
|
|
3331
3331
|
}
|
|
3332
3332
|
|
|
3333
|
-
var css$M = {"root":"
|
|
3333
|
+
var css$M = {"root":"SWbi--","progress-bar":"_5cFot8","progressBar":"_5cFot8","progressBar-indeterminate":"s-SG4W","progressBarIndeterminate":"s-SG4W","size-12":"ozCU6R","size12":"ozCU6R","size-18":"_8uORty","size18":"_8uORty","size-24":"j3K6AQ","size24":"j3K6AQ"};
|
|
3334
3334
|
|
|
3335
3335
|
const IndeterminateBar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
3336
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
3337
|
React__namespace.createElement("div", { className: cx__default.default(css$M.progressBar) })));
|
|
3338
3338
|
});
|
|
3339
3339
|
|
|
3340
|
-
var css$L = {"root":"
|
|
3340
|
+
var css$L = {"root":"_0--e2Q","striped":"f-wefX","animate-stripes":"lWuC-3","animateStripes":"lWuC-3","size-12":"xwZ63p","size12":"xwZ63p","size-18":"AXvm4p","size18":"AXvm4p","size-24":"KCFjfL","size24":"KCFjfL"};
|
|
3341
3341
|
|
|
3342
3342
|
const DEFAULT_SIZE = '12';
|
|
3343
3343
|
function applyProgressBarMods(mods) {
|
|
@@ -3352,14 +3352,14 @@ const ProgressBar = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Pro
|
|
|
3352
3352
|
hideLabel: props.hideLabel || props.striped,
|
|
3353
3353
|
}));
|
|
3354
3354
|
|
|
3355
|
-
var css$K = {"root":"-
|
|
3355
|
+
var css$K = {"root":"PH-yG1"};
|
|
3356
3356
|
|
|
3357
3357
|
const IndicatorBar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
3358
3358
|
const { progress } = props;
|
|
3359
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
3360
|
});
|
|
3361
3361
|
|
|
3362
|
-
var css$J = {"root":"
|
|
3362
|
+
var css$J = {"root":"f2f0A6"};
|
|
3363
3363
|
|
|
3364
3364
|
const StatusIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
3365
3365
|
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
@@ -3374,7 +3374,7 @@ const StatusIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
3374
3374
|
React__namespace.default.createElement("p", { className: "uui-status_indicator-caption" }, props.caption)));
|
|
3375
3375
|
});
|
|
3376
3376
|
|
|
3377
|
-
var css$I = {"drag-handle":"
|
|
3377
|
+
var css$I = {"drag-handle":"N18RfW","dragHandle":"N18RfW","icon-container":"wTWXki","iconContainer":"wTWXki"};
|
|
3378
3378
|
|
|
3379
3379
|
function DataRowAddons(props) {
|
|
3380
3380
|
const row = props.rowProps;
|
|
@@ -3395,15 +3395,13 @@ function DataRowAddons(props) {
|
|
|
3395
3395
|
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row), size: settings.dataTable.sizes.body.iconMap[props.size || settings.dataTable.sizes.body.row] }))))));
|
|
3396
3396
|
}
|
|
3397
3397
|
|
|
3398
|
-
var css$H = {"root":"
|
|
3398
|
+
var css$H = {"root":"Gh08Kk","align-widgets-top":"_9SWD5a","alignWidgetsTop":"_9SWD5a","align-widgets-center":"_3ElKKA","alignWidgetsCenter":"_3ElKKA","icon-container":"YBmnUd","iconContainer":"YBmnUd","content-wrapper":"-uHeRN","contentWrapper":"-uHeRN","render-item":"hjSTlb","renderItem":"hjSTlb","icon-wrapper":"YLpeD5","iconWrapper":"YLpeD5","icon-default":"-Yuy--","iconDefault":"-Yuy--","selected-mark":"czCCuG","selectedMark":"czCCuG"};
|
|
3399
3399
|
|
|
3400
3400
|
function DataPickerCell(props) {
|
|
3401
3401
|
const ref = React__namespace.useRef();
|
|
3402
3402
|
let content;
|
|
3403
3403
|
if (props.rowProps.isLoading) {
|
|
3404
|
-
content = (
|
|
3405
|
-
// remove `css.loadingCell` after` removing `margin: 0 3px 3px 0` from `TextPlaceholder` `loadingWord` class styles.
|
|
3406
|
-
React__namespace.createElement(Text, { key: "t", size: props.size, cx: css$H.loadingCell }, settings.pickerInput.renderPlaceholder()));
|
|
3404
|
+
content = settings.pickerInput.renderPlaceholder({ rowSize: props.size });
|
|
3407
3405
|
}
|
|
3408
3406
|
else if (props.rowProps.isUnknown) {
|
|
3409
3407
|
content = (React__namespace.createElement(Text, { key: "t", size: props.size }, "Unknown"));
|
|
@@ -3435,7 +3433,7 @@ function DataPickerCell(props) {
|
|
|
3435
3433
|
getWrappedContent()));
|
|
3436
3434
|
}
|
|
3437
3435
|
|
|
3438
|
-
var css$G = {"picker-row":"
|
|
3436
|
+
var css$G = {"picker-row":"ytFq3d","pickerRow":"ytFq3d"};
|
|
3439
3437
|
|
|
3440
3438
|
class DataPickerRow extends React__namespace.Component {
|
|
3441
3439
|
constructor() {
|
|
@@ -3449,7 +3447,7 @@ class DataPickerRow extends React__namespace.Component {
|
|
|
3449
3447
|
}
|
|
3450
3448
|
}
|
|
3451
3449
|
|
|
3452
|
-
var css$F = {"done":"
|
|
3450
|
+
var css$F = {"done":"hkpu2I","container":"HbjGUP"};
|
|
3453
3451
|
|
|
3454
3452
|
const PickerBodyMobileView = (props) => {
|
|
3455
3453
|
const isMobileView = uuiCore.isMobile();
|
|
@@ -3526,7 +3524,7 @@ const getHighlightedSearchMatches = (str, search) => {
|
|
|
3526
3524
|
return getDecoratedText(str, ranges);
|
|
3527
3525
|
};
|
|
3528
3526
|
|
|
3529
|
-
var css$E = {"root":"
|
|
3527
|
+
var css$E = {"root":"_2dLER3","column-gap":"TtH-k5","columnGap":"TtH-k5","title":"eR2yko","subtitle":"XKh5-q","disabled":"HnOqfw","multiline":"Mh2Dsm"};
|
|
3530
3528
|
|
|
3531
3529
|
function PickerItem(props) {
|
|
3532
3530
|
const { highlightSearchMatches = true, size, avatarUrl, isLoading, isDisabled, icon, } = props;
|
|
@@ -3547,7 +3545,7 @@ function getAvatarSize(size, isMultiline) {
|
|
|
3547
3545
|
return settings.pickerInput.sizes.body[isMultiline ? 'itemAvatarMultilineMap' : 'itemAvatarMap'][size];
|
|
3548
3546
|
}
|
|
3549
3547
|
|
|
3550
|
-
var css$D = {"sub-header-wrapper":"
|
|
3548
|
+
var css$D = {"sub-header-wrapper":"FcH9yU","subHeaderWrapper":"FcH9yU","switch":"i2ItvS","no-found-modal-container":"houlsn","noFoundModalContainer":"houlsn","no-found-modal-container-icon":"AlI5wz","noFoundModalContainerIcon":"AlI5wz","no-found-modal-container-text":"zpqrOc","noFoundModalContainerText":"zpqrOc"};
|
|
3551
3549
|
|
|
3552
3550
|
function PickerModal(props) {
|
|
3553
3551
|
const { view, selection, dataSourceStateLens, dataSourceState, getDataSourceState, getName, clearSelection, getRows, getListProps, getFooterProps, isSingleSelect, handleDataSourceValueChange, } = uuiComponents.usePickerModal(props);
|
|
@@ -3602,7 +3600,7 @@ function PickerModal(props) {
|
|
|
3602
3600
|
React__namespace.default.createElement(ModalFooter, null, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
|
|
3603
3601
|
}
|
|
3604
3602
|
|
|
3605
|
-
var css$C = {"tooltip":"
|
|
3603
|
+
var css$C = {"tooltip":"AnSd6-"};
|
|
3606
3604
|
|
|
3607
3605
|
const PickerTogglerTag = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
3608
3606
|
const tagProps = {
|
|
@@ -3621,7 +3619,7 @@ const PickerTogglerTag = /* @__PURE__ */React__namespace.forwardRef((props, ref)
|
|
|
3621
3619
|
}
|
|
3622
3620
|
});
|
|
3623
3621
|
|
|
3624
|
-
var css$B = {"root":"
|
|
3622
|
+
var css$B = {"root":"UChqVS"};
|
|
3625
3623
|
|
|
3626
3624
|
const defaultMode = EditMode.FORM;
|
|
3627
3625
|
function applyPickerTogglerMods(mods) {
|
|
@@ -3722,7 +3720,7 @@ function PickerInputComponent({ highlightSearchMatches = true, ...props }, ref)
|
|
|
3722
3720
|
}
|
|
3723
3721
|
const PickerInput = /* @__PURE__ */React__namespace.default.forwardRef(PickerInputComponent);
|
|
3724
3722
|
|
|
3725
|
-
var css$A = {"row":"
|
|
3723
|
+
var css$A = {"row":"sAxESU"};
|
|
3726
3724
|
|
|
3727
3725
|
function PickerListItem(props) {
|
|
3728
3726
|
let label;
|
|
@@ -3742,7 +3740,7 @@ function PickerListItem(props) {
|
|
|
3742
3740
|
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));
|
|
3743
3741
|
}
|
|
3744
3742
|
|
|
3745
|
-
var css$z = {"root":"
|
|
3743
|
+
var css$z = {"root":"PO0ywP"};
|
|
3746
3744
|
|
|
3747
3745
|
function PickerList(props) {
|
|
3748
3746
|
const { context, view, onlySelectedView, getName, getEntityName, appendLastSelected, getSelectedIdsArray, buildRowsList, getMaxDefaultItems, dataSourceState, getModalTogglerCaption, } = uuiComponents.usePickerList(props);
|
|
@@ -3777,7 +3775,7 @@ function PickerList(props) {
|
|
|
3777
3775
|
}, selectedRows)));
|
|
3778
3776
|
}
|
|
3779
3777
|
|
|
3780
|
-
var css$y = {"root":"
|
|
3778
|
+
var css$y = {"root":"LnPKn8","wrapper":"poTKE2","align-widgets-top":"pw50ng","alignWidgetsTop":"pw50ng","align-widgets-center":"zoTFaE","alignWidgetsCenter":"zoTFaE"};
|
|
3781
3779
|
|
|
3782
3780
|
function DataTableCell(initialProps) {
|
|
3783
3781
|
const props = { ...initialProps };
|
|
@@ -3785,7 +3783,7 @@ function DataTableCell(initialProps) {
|
|
|
3785
3783
|
props.addons = React__namespace.createElement(DataRowAddons, { size: props.size, ...props });
|
|
3786
3784
|
}
|
|
3787
3785
|
props.renderPlaceholder = props.renderPlaceholder
|
|
3788
|
-
|| (() =>
|
|
3786
|
+
|| (() => settings.dataTable.renderPlaceholder({ rowSize: props.size }));
|
|
3789
3787
|
props.renderUnknown = props.renderUnknown
|
|
3790
3788
|
|| (() => (React__namespace.createElement(Text, { key: "t", size: props.size }, "Unknown")));
|
|
3791
3789
|
props.renderTooltip = (tooltipProps) => React__namespace.createElement(Tooltip, { color: "critical", ...tooltipProps });
|
|
@@ -3825,7 +3823,7 @@ function DataTableCell(initialProps) {
|
|
|
3825
3823
|
return React__namespace.createElement(uuiComponents.DataTableCell, { ...props });
|
|
3826
3824
|
}
|
|
3827
3825
|
|
|
3828
|
-
var css$x = {"root":"
|
|
3826
|
+
var css$x = {"root":"zqwdl-"};
|
|
3829
3827
|
|
|
3830
3828
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
3831
3829
|
// 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.
|
|
@@ -3841,7 +3839,7 @@ const DataTableRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.DataTableRow,
|
|
|
3841
3839
|
];
|
|
3842
3840
|
}, () => propsMods);
|
|
3843
3841
|
|
|
3844
|
-
var css$w = {"sorting-panel-container":"
|
|
3842
|
+
var css$w = {"sorting-panel-container":"KTSips","sortingPanelContainer":"KTSips"};
|
|
3845
3843
|
|
|
3846
3844
|
const SortingPanelImpl = ({ sortDirection, onSort }) => {
|
|
3847
3845
|
const sortAsc = React.useCallback(() => onSort(sortDirection === 'asc' ? undefined : 'asc'), [onSort]);
|
|
@@ -3866,7 +3864,7 @@ const ColumnHeaderDropdownImpl = (props) => {
|
|
|
3866
3864
|
};
|
|
3867
3865
|
const ColumnHeaderDropdown = /* @__PURE__ */React__namespace.default.memo(ColumnHeaderDropdownImpl);
|
|
3868
3866
|
|
|
3869
|
-
var css$v = {"root":"
|
|
3867
|
+
var css$v = {"root":"DtobLp","caption-wrapper":"_8L2tj4","captionWrapper":"_8L2tj4","sort-icon":"NKUDhr","sortIcon":"NKUDhr","dropdown-icon":"WHQMOM","dropdownIcon":"WHQMOM","infoIcon":"ft6BzC","resizable":"_0xA-AB","align-right":"O1S3eo","alignRight":"O1S3eo","align-center":"JjlZ-3","alignCenter":"JjlZ-3","caption":"wgmBIr","truncate":"BsDWrN","upper-case":"aAr45L","upperCase":"aAr45L","checkbox":"_3OYlGj","icon":"q8HtL7","fold-all-icon":"U-4O2D","foldAllIcon":"U-4O2D","cell-tooltip":"_1s1jHb","cellTooltip":"_1s1jHb","resizing-marker":"hbMsXX","resizingMarker":"hbMsXX","pinned-right":"Rapez1","pinnedRight":"Rapez1","draggable":"aceCvl","ghost":"cAp7Hc","is-dragged-out":"utPUYh","isDraggedOut":"utPUYh","dnd-marker-left":"NkNYZr","dndMarkerLeft":"NkNYZr","dnd-marker-right":"UmsWvd","dndMarkerRight":"UmsWvd","cell-tooltip-wrapper":"qqsOO-","cellTooltipWrapper":"qqsOO-","cell-tooltip-text":"eWXtLz","cellTooltipText":"eWXtLz","tooltip-caption":"uCPDfd","tooltipCaption":"uCPDfd","tooltip-info":"iC-ZvO","tooltipInfo":"iC-ZvO"};
|
|
3870
3868
|
|
|
3871
3869
|
class DataTableHeaderCell extends React__namespace.Component {
|
|
3872
3870
|
constructor() {
|
|
@@ -3960,7 +3958,7 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
3960
3958
|
}
|
|
3961
3959
|
}
|
|
3962
3960
|
|
|
3963
|
-
var css$u = {"root":"
|
|
3961
|
+
var css$u = {"root":"BKV7YL","caption-wrapper":"_09PFkN","captionWrapper":"_09PFkN","align-center":"tyhd6B","alignCenter":"tyhd6B","caption":"VDPGbO","truncate":"c7dWjC","upper-case":"pRNyJ9","upperCase":"pRNyJ9","group-cell-tooltip":"_1uiLeP","groupCellTooltip":"_1uiLeP","group-cell-tooltip-wrapper":"bfzLBK","groupCellTooltipWrapper":"bfzLBK","group-cell-tooltip-text":"EQu1nO","groupCellTooltipText":"EQu1nO","tooltip-caption":"myAWQW","tooltipCaption":"myAWQW","tooltip-info":"_9G2uez","tooltipInfo":"_9G2uez"};
|
|
3964
3962
|
|
|
3965
3963
|
class DataTableHeaderGroupCell extends React__namespace.Component {
|
|
3966
3964
|
constructor() {
|
|
@@ -4000,7 +3998,7 @@ class DataTableHeaderGroupCell extends React__namespace.Component {
|
|
|
4000
3998
|
}
|
|
4001
3999
|
}
|
|
4002
4000
|
|
|
4003
|
-
var css$t = {"root":"
|
|
4001
|
+
var css$t = {"root":"R6zorr"};
|
|
4004
4002
|
|
|
4005
4003
|
const DataTableHeaderRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.DataTableHeaderRow, () => [css$t.root, 'uui-dt-vars'], (mods) => ({
|
|
4006
4004
|
renderCell: (props) => (React__namespace.createElement(DataTableHeaderCell, { ...props, size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key, columnsGap: mods.columnsGap })),
|
|
@@ -4013,7 +4011,7 @@ const UUI_FILTERS_PANEL_ADD_BUTTON_BODY = 'uui-filters-panel-add-button-body';
|
|
|
4013
4011
|
const UUI_FILTERS_PANEL_ITEM_BODY = 'uui-filters-panel-item-body';
|
|
4014
4012
|
const UUI_FILTERS_PANEL_ITEM_TOGGLER = 'uui-filters-panel-item-toggler';
|
|
4015
4013
|
|
|
4016
|
-
var css$s = {"root":"
|
|
4014
|
+
var css$s = {"root":"_8qcSn3","title-wrapper":"STe-R-","titleWrapper":"STe-R-","title":"wAUsDj","text-wrapper":"dik8kB","textWrapper":"dik8kB","selection":"sC4jGR","postfix":"_41deNy","selected":"_2vL54k"};
|
|
4017
4015
|
|
|
4018
4016
|
const FilterPanelItemToggler = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
4019
4017
|
const togglerPickerOpened = (e) => {
|
|
@@ -4181,7 +4179,7 @@ function FilterRangeDatePickerBody(props) {
|
|
|
4181
4179
|
React__namespace.default.createElement(LinkButton, { isDisabled: !value.from && !value.to, caption: i18n.pickerModal.clearAllButton, onClick: () => onValueChange(defaultRangeValue) })))));
|
|
4182
4180
|
}
|
|
4183
4181
|
|
|
4184
|
-
var css$r = {"container":"
|
|
4182
|
+
var css$r = {"container":"LceOMM"};
|
|
4185
4183
|
|
|
4186
4184
|
function FilterNumericBody(props) {
|
|
4187
4185
|
const isInRangePredicate = props?.selectedPredicate === 'inRange' || props?.selectedPredicate === 'notInRange';
|
|
@@ -4277,7 +4275,7 @@ var SvgActionDeleteOutline = function SvgActionDeleteOutline(props, ref) {
|
|
|
4277
4275
|
};
|
|
4278
4276
|
var ForwardRef$a = /*#__PURE__*/React.forwardRef(SvgActionDeleteOutline);
|
|
4279
4277
|
|
|
4280
|
-
var css$q = {"header":"
|
|
4278
|
+
var css$q = {"header":"CxND9E","removeButton":"HavBQt","with-search":"uJeWbW","withSearch":"uJeWbW"};
|
|
4281
4279
|
|
|
4282
4280
|
function useView(props, value) {
|
|
4283
4281
|
const forceUpdate = uuiCore.useForceUpdate();
|
|
@@ -4583,7 +4581,7 @@ function FiltersToolbarImpl(props) {
|
|
|
4583
4581
|
}
|
|
4584
4582
|
const FiltersPanel = /* @__PURE__ */React__namespace.default.memo(FiltersToolbarImpl);
|
|
4585
4583
|
|
|
4586
|
-
var css$p = {"divider":"
|
|
4584
|
+
var css$p = {"divider":"peZ6yB","dropdownDeleteIcon":"_8gNZR3","presetsWrapper":"Rmlxqn","addPresetContainer":"eYJ-uR","dropContainer":"MmXF0F"};
|
|
4587
4585
|
|
|
4588
4586
|
var _path$9;
|
|
4589
4587
|
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); }
|
|
@@ -4664,7 +4662,7 @@ var SvgContentLinkOutline = function SvgContentLinkOutline(props, ref) {
|
|
|
4664
4662
|
};
|
|
4665
4663
|
var ForwardRef$5 = /*#__PURE__*/React.forwardRef(SvgContentLinkOutline);
|
|
4666
4664
|
|
|
4667
|
-
var css$o = {"delete-button":"
|
|
4665
|
+
var css$o = {"delete-button":"ELeF4D","deleteButton":"ELeF4D","tab-button":"YVTZDR","tabButton":"YVTZDR","targetOpen":"xge902"};
|
|
4668
4666
|
|
|
4669
4667
|
function PresetActionsDropdown(props) {
|
|
4670
4668
|
const { uuiNotifications } = uuiCore.useUuiContext();
|
|
@@ -4731,7 +4729,7 @@ function PresetActionsDropdown(props) {
|
|
|
4731
4729
|
return (React__namespace.default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end", modifiers: [{ name: 'offset', options: { offset: [0, 22] } }] }));
|
|
4732
4730
|
}
|
|
4733
4731
|
|
|
4734
|
-
var css$n = {"preset-input-cell":"
|
|
4732
|
+
var css$n = {"preset-input-cell":"k8PDrv","presetInputCell":"k8PDrv","preset-input":"rLqP9t","presetInput":"rLqP9t"};
|
|
4735
4733
|
|
|
4736
4734
|
const UUI_PRESETS_PANEL_ADD_BUTTON = 'uui-presets-panel-add-button';
|
|
4737
4735
|
const UUI_PRESETS_PANEL_MORE_BUTTON = 'uui-presets-panel-more-button';
|
|
@@ -4763,7 +4761,7 @@ function PresetInput(props) {
|
|
|
4763
4761
|
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 })));
|
|
4764
4762
|
}
|
|
4765
4763
|
|
|
4766
|
-
var css$m = {"preset":"
|
|
4764
|
+
var css$m = {"preset":"X-ipT2","activePreset":"pAAlOe"};
|
|
4767
4765
|
|
|
4768
4766
|
function Preset(props) {
|
|
4769
4767
|
const [isRenamePreset, setIsRenamePreset] = React.useState(false);
|
|
@@ -4889,7 +4887,7 @@ const useColumnsWithFilters = (initialColumns, filters) => {
|
|
|
4889
4887
|
return columns;
|
|
4890
4888
|
};
|
|
4891
4889
|
|
|
4892
|
-
var css$l = {"unpin-icon":"
|
|
4890
|
+
var css$l = {"unpin-icon":"xhRRXP","unpinIcon":"xhRRXP","pin-toggler-icon":"Ww2Xpi","pinTogglerIcon":"Ww2Xpi"};
|
|
4893
4891
|
|
|
4894
4892
|
function PinIconButton(props) {
|
|
4895
4893
|
const i18nLocal = i18n.tables.columnsConfigurationModal;
|
|
@@ -4931,7 +4929,7 @@ function getUnpinIcon(params) {
|
|
|
4931
4929
|
}
|
|
4932
4930
|
}
|
|
4933
4931
|
|
|
4934
|
-
var css$k = {"row-wrapper":"
|
|
4932
|
+
var css$k = {"row-wrapper":"Kq0u-g","rowWrapper":"Kq0u-g","pin-icon-button":"FsP3mk","pinIconButton":"FsP3mk","not-pinned":"gcZpkD","notPinned":"gcZpkD","checkbox":"bNlRhQ","drag-handle":"g9DDG-","dragHandle":"g9DDG-","dnd-disabled":"xiDvE-","dndDisabled":"xiDvE-"};
|
|
4935
4933
|
|
|
4936
4934
|
const ColumnRow = /* @__PURE__ */React__namespace.memo(function ColumnRow(props) {
|
|
4937
4935
|
const { column } = props;
|
|
@@ -4954,7 +4952,7 @@ const ColumnRow = /* @__PURE__ */React__namespace.memo(function ColumnRow(props)
|
|
|
4954
4952
|
return (React__namespace.createElement(uuiCore.DndActor, { key: column.key, srcData: isDndAllowed && data, dstData: data, canAcceptDrop: onCanAcceptDrop, onDrop: onDrop, render: renderContent }));
|
|
4955
4953
|
});
|
|
4956
4954
|
|
|
4957
|
-
var css$j = {"root":"
|
|
4955
|
+
var css$j = {"root":"ixRIru","main-panel":"rw73Mj","mainPanel":"rw73Mj","group":"_5FM-MW","group-title":"lZsiEP","groupTitle":"lZsiEP","group-items":"-tPEZb","groupItems":"-tPEZb","no-data":"qJeFEW","noData":"qJeFEW","no-data-title":"_5RDMpJ","noDataTitle":"_5RDMpJ","no-data-sub-title":"_-76OKl","noDataSubTitle":"_-76OKl","h-divider":"YzCSyp","hDivider":"YzCSyp","search-area":"zH5jDP","searchArea":"zH5jDP","subgroup-accordion":"kJBbYU","subgroupAccordion":"kJBbYU","subgroup":"_0N72lN","subgroup-title":"TrCSkO","subgroupTitle":"TrCSkO"};
|
|
4958
4956
|
|
|
4959
4957
|
const renderGroupTitle = (title, amount) => (React__namespace.createElement(FlexRow, { cx: css$j.group },
|
|
4960
4958
|
React__namespace.createElement(Text, { size: "none", cx: css$j.groupTitle }, title),
|
|
@@ -5056,7 +5054,7 @@ const getChildrenAndRest = (row, rows) => {
|
|
|
5056
5054
|
return [children, rest];
|
|
5057
5055
|
};
|
|
5058
5056
|
|
|
5059
|
-
var css$i = {"listContainer":"
|
|
5057
|
+
var css$i = {"listContainer":"_65FTPM","header":"qdiP2a","group":"_4OSDa0","stickyHeader":"KaNPhC"};
|
|
5060
5058
|
|
|
5061
5059
|
function DataRowsGroup({ row, childRows, renderRow, top = 1, }) {
|
|
5062
5060
|
const rowRef = React.useRef();
|
|
@@ -5096,7 +5094,7 @@ function DataRowsContainer({ estimatedHeight, listContainerRef, offsetY, rows, r
|
|
|
5096
5094
|
React__namespace.default.createElement(DataRowsGroups, { rows: rows, renderRow: renderRow, top: headerRef?.current?.clientHeight }))));
|
|
5097
5095
|
}
|
|
5098
5096
|
|
|
5099
|
-
var css$h = {"root":"
|
|
5097
|
+
var css$h = {"root":"_7tA7Ur","sticky-header":"kLsdEF","stickyHeader":"kLsdEF","no-results":"_5-lNRa","noResults":"_5-lNRa","icon":"ClZ2Ik","title":"QHRKj2"};
|
|
5100
5098
|
|
|
5101
5099
|
function DataTable(props) {
|
|
5102
5100
|
const { uuiModals } = uuiCore.useUuiContext();
|
|
@@ -5145,9 +5143,9 @@ function DataTable(props) {
|
|
|
5145
5143
|
} }))));
|
|
5146
5144
|
}
|
|
5147
5145
|
|
|
5148
|
-
var css$g = {"root":"
|
|
5146
|
+
var css$g = {"root":"_9BeTNg"};
|
|
5149
5147
|
|
|
5150
|
-
var css$f = {"root":"
|
|
5148
|
+
var css$f = {"root":"bhNFlG","burger-content":"OYv2V-","burgerContent":"OYv2V-"};
|
|
5151
5149
|
|
|
5152
5150
|
var _path$3;
|
|
5153
5151
|
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); }
|
|
@@ -5190,7 +5188,7 @@ var SvgNavigationArrowDownOutline = function SvgNavigationArrowDownOutline(props
|
|
|
5190
5188
|
};
|
|
5191
5189
|
var ForwardRef$2 = /*#__PURE__*/React.forwardRef(SvgNavigationArrowDownOutline);
|
|
5192
5190
|
|
|
5193
|
-
var css$e = {"root":"
|
|
5191
|
+
var css$e = {"root":"M5dNn1","button-primary":"LdZ8NB","buttonPrimary":"LdZ8NB","button-secondary":"-gMdur","buttonSecondary":"-gMdur","hasIcon":"G1ogfs","dropdown":"UAPB4K"};
|
|
5194
5192
|
|
|
5195
5193
|
const BurgerButton = /* @__PURE__ */uuiCore.withMods(uuiComponents.Button, (props) => [
|
|
5196
5194
|
css$e.root,
|
|
@@ -5201,13 +5199,13 @@ const BurgerButton = /* @__PURE__ */uuiCore.withMods(uuiComponents.Button, (prop
|
|
|
5201
5199
|
props.icon && css$e.hasIcon,
|
|
5202
5200
|
], () => ({ dropdownIcon: ForwardRef$2, dropdownIconPosition: 'left', role: 'menuitem' }));
|
|
5203
5201
|
|
|
5204
|
-
var css$d = {"search-input":"
|
|
5202
|
+
var css$d = {"search-input":"wW--Oj","searchInput":"wW--Oj"};
|
|
5205
5203
|
|
|
5206
5204
|
function BurgerSearch(props) {
|
|
5207
5205
|
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 }));
|
|
5208
5206
|
}
|
|
5209
5207
|
|
|
5210
|
-
var css$c = {"root":"
|
|
5208
|
+
var css$c = {"root":"ViR-KC","group-header":"Tc88T6","groupHeader":"Tc88T6","group-name":"hrsm0f","groupName":"hrsm0f","line":"pEKJJz"};
|
|
5211
5209
|
|
|
5212
5210
|
function BurgerGroupHeader(props) {
|
|
5213
5211
|
return (React__namespace.createElement("div", { className: cx__default.default(css$c.root, css$c.groupHeader, 'uui-burger-group-header') },
|
|
@@ -5215,7 +5213,7 @@ function BurgerGroupHeader(props) {
|
|
|
5215
5213
|
React__namespace.createElement("span", { className: css$c.groupName }, props.caption)));
|
|
5216
5214
|
}
|
|
5217
5215
|
|
|
5218
|
-
var css$b = {"root":"-
|
|
5216
|
+
var css$b = {"root":"AQmYK-","type-primary":"HVa9q1","typePrimary":"HVa9q1","type-secondary":"hk-x0O","typeSecondary":"hk-x0O"};
|
|
5219
5217
|
|
|
5220
5218
|
const MainMenuButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5221
5219
|
const { type, ...clickableProps } = props;
|
|
@@ -5237,7 +5235,7 @@ const MainMenuButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) =
|
|
|
5237
5235
|
props.isDropdown && (React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$Q, flipY: props.isOpen }))));
|
|
5238
5236
|
});
|
|
5239
5237
|
|
|
5240
|
-
var css$a = {"dropdown-body":"
|
|
5238
|
+
var css$a = {"dropdown-body":"nu7nUz","dropdownBody":"nu7nUz"};
|
|
5241
5239
|
|
|
5242
5240
|
class MainMenuDropdown extends React__namespace.Component {
|
|
5243
5241
|
render() {
|
|
@@ -5295,12 +5293,12 @@ var SvgNavigationGlobalMenuOutlineOutline = function SvgNavigationGlobalMenuOutl
|
|
|
5295
5293
|
};
|
|
5296
5294
|
var ForwardRef$1 = /*#__PURE__*/React.forwardRef(SvgNavigationGlobalMenuOutlineOutline);
|
|
5297
5295
|
|
|
5298
|
-
var css$9 = {"global-menu-btn":"
|
|
5296
|
+
var css$9 = {"global-menu-btn":"J1KB8-","globalMenuBtn":"J1KB8-","global-menu-icon":"COSxSw","globalMenuIcon":"COSxSw"};
|
|
5299
5297
|
|
|
5300
5298
|
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 },
|
|
5301
5299
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 36, icon: ForwardRef$1, cx: css$9.globalMenuIcon }))));
|
|
5302
5300
|
|
|
5303
|
-
var css$8 = {"container":"
|
|
5301
|
+
var css$8 = {"container":"M2FK-s","open":"JgmGjS","folding-arrow":"bvletb","foldingArrow":"bvletb"};
|
|
5304
5302
|
|
|
5305
5303
|
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 },
|
|
5306
5304
|
React__namespace.createElement(uuiComponents.Avatar, { size: "36", img: props.avatarUrl }),
|
|
@@ -5308,15 +5306,15 @@ const MainMenuAvatar = /* @__PURE__ */React__namespace.forwardRef((props, ref) =
|
|
|
5308
5306
|
props.isDropdown && (React__namespace.createElement("div", null,
|
|
5309
5307
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, icon: ForwardRef$Q, flipY: props.isOpen, cx: css$8.foldingArrow }))))));
|
|
5310
5308
|
|
|
5311
|
-
var css$7 = {"search-input":"
|
|
5309
|
+
var css$7 = {"search-input":"A94GJg","searchInput":"A94GJg"};
|
|
5312
5310
|
|
|
5313
5311
|
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 })) })));
|
|
5314
5312
|
|
|
5315
|
-
var css$6 = {"container":"
|
|
5313
|
+
var css$6 = {"container":"lUhHjj"};
|
|
5316
5314
|
|
|
5317
5315
|
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 })));
|
|
5318
5316
|
|
|
5319
|
-
var css$5 = {"root":"
|
|
5317
|
+
var css$5 = {"root":"guez0w"};
|
|
5320
5318
|
|
|
5321
5319
|
const Anchor = /* @__PURE__ */uuiCore.withMods(uuiComponents.Anchor, () => [css$5.root]);
|
|
5322
5320
|
|
|
@@ -5374,7 +5372,7 @@ var SvgFileCloudUploadFill = function SvgFileCloudUploadFill(props, ref) {
|
|
|
5374
5372
|
};
|
|
5375
5373
|
var ForwardRef = /*#__PURE__*/React.forwardRef(SvgFileCloudUploadFill);
|
|
5376
5374
|
|
|
5377
|
-
var css$4 = {"root":"
|
|
5375
|
+
var css$4 = {"root":"_9i4W3h","drop-start":"jACi28","dropStart":"jACi28","drop-over":"Fy0zmb","dropOver":"Fy0zmb","link":"ajOWu-","drop-area":"v1Vzz8","dropArea":"v1Vzz8","drop-caption":"xSC5UP","dropCaption":"xSC5UP","icon-blue":"TKmz3v","iconBlue":"TKmz3v"};
|
|
5378
5376
|
|
|
5379
5377
|
function DropSpot(props) {
|
|
5380
5378
|
const getInfoText = typeof props.infoText === 'string'
|
|
@@ -5392,7 +5390,7 @@ function DropSpot(props) {
|
|
|
5392
5390
|
return React__namespace.createElement(uuiComponents.DropSpot, { render: renderAttachmentArea, onFilesDropped: props.onUploadFiles });
|
|
5393
5391
|
}
|
|
5394
5392
|
|
|
5395
|
-
var css$3 = {"root":"
|
|
5393
|
+
var css$3 = {"root":"_8EvdTZ"};
|
|
5396
5394
|
|
|
5397
5395
|
const SvgCircleProgress = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5398
5396
|
const outsetRadius = props.size / 2 - 1;
|
|
@@ -5403,7 +5401,7 @@ const SvgCircleProgress = /* @__PURE__ */React__namespace.forwardRef((props, ref
|
|
|
5403
5401
|
React__namespace.createElement("circle", { strokeWidth: 1, fill: "transparent", r: outsetRadius, cx: props.size / 2, cy: props.size / 2 })));
|
|
5404
5402
|
});
|
|
5405
5403
|
|
|
5406
|
-
var css$2 = {"root":"
|
|
5404
|
+
var css$2 = {"root":"YupJrV","file-name":"o0JuqN","fileName":"o0JuqN","default-color":"tp0RxW","defaultColor":"tp0RxW","doc-color":"-DgvaJ","docColor":"-DgvaJ","xls-color":"oQiwXL","xlsColor":"oQiwXL","pdf-color":"KBqZzg","pdfColor":"KBqZzg","movie-color":"-oZz9x","movieColor":"-oZz9x","img-color":"mc6C2t","imgColor":"mc6C2t","mov-color":"-kinsM","movColor":"-kinsM","error-block":"OS1wOc","errorBlock":"OS1wOc","icons-block":"_5fCCkN","iconsBlock":"_5fCCkN"};
|
|
5407
5405
|
|
|
5408
5406
|
const FileCard = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5409
5407
|
const [isLoadingShow, setIsLoadingShow] = React__namespace.useState(true);
|
|
@@ -5522,7 +5520,7 @@ const getErrorPageConfig = () => ({
|
|
|
5522
5520
|
},
|
|
5523
5521
|
});
|
|
5524
5522
|
|
|
5525
|
-
var css$1 = {"container":"
|
|
5523
|
+
var css$1 = {"container":"dRwaBm"};
|
|
5526
5524
|
|
|
5527
5525
|
const ErrorPage = (props) => {
|
|
5528
5526
|
const isMobileScreen = uuiCore.isMobile();
|
|
@@ -5534,7 +5532,7 @@ const ErrorPage = (props) => {
|
|
|
5534
5532
|
props?.supportLink && React__namespace.default.createElement("div", { className: "uui-error-support-link" }, props?.supportLink))));
|
|
5535
5533
|
};
|
|
5536
5534
|
|
|
5537
|
-
var css = {"recovery-spinner":"
|
|
5535
|
+
var css = {"recovery-spinner":"Ht0crH","recoverySpinner":"Ht0crH","recovery-message":"_5EADbQ","recoveryMessage":"_5EADbQ","modal-blocker":"Gwau3k","modalBlocker":"Gwau3k","modalFadeIn":"wemycR"};
|
|
5538
5536
|
|
|
5539
5537
|
function ErrorHandler(props) {
|
|
5540
5538
|
const { uuiNotifications, uuiModals, uuiApi } = uuiCore.useUuiContext();
|