@epam/uui 5.13.3-beta.10 → 5.13.3-beta.12
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/datePickers/DatePicker.d.ts +3 -1
- package/components/datePickers/DatePicker.d.ts.map +1 -1
- package/components/datePickers/RangeDatePicker.d.ts +5 -1
- package/components/datePickers/RangeDatePicker.d.ts.map +1 -1
- 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.esm.js
CHANGED
|
@@ -149,7 +149,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
149
149
|
xmlns: "http://www.w3.org/2000/svg",
|
|
150
150
|
ref: ref
|
|
151
151
|
}, props), /*#__PURE__*/React.createElement("g", {
|
|
152
|
-
clipPath: "url(#
|
|
152
|
+
clipPath: "url(#2m6zpkx4yxsvfr3zj_a)"
|
|
153
153
|
}, _path$J || (_path$J = /*#__PURE__*/React.createElement("path", {
|
|
154
154
|
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",
|
|
155
155
|
fill: "#F5F6FA"
|
|
@@ -170,7 +170,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
170
170
|
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",
|
|
171
171
|
fill: "#1D1E26"
|
|
172
172
|
})), /*#__PURE__*/React.createElement("mask", {
|
|
173
|
-
id: "
|
|
173
|
+
id: "2m6zpk5nlin4o6gfc_b",
|
|
174
174
|
style: {
|
|
175
175
|
maskType: "alpha"
|
|
176
176
|
},
|
|
@@ -183,7 +183,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
183
183
|
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",
|
|
184
184
|
fill: "#9BDEFF"
|
|
185
185
|
}))), _g || (_g = /*#__PURE__*/React.createElement("g", {
|
|
186
|
-
mask: "url(#
|
|
186
|
+
mask: "url(#2m6zpk5nlin4o6gfc_b)",
|
|
187
187
|
fillRule: "evenodd",
|
|
188
188
|
clipRule: "evenodd"
|
|
189
189
|
}, /*#__PURE__*/React.createElement("path", {
|
|
@@ -269,7 +269,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
269
269
|
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",
|
|
270
270
|
fill: "#fff"
|
|
271
271
|
}))), _defs || (_defs = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
272
|
-
id: "
|
|
272
|
+
id: "2m6zpkx4yxsvfr3zj_a"
|
|
273
273
|
}, /*#__PURE__*/React.createElement("path", {
|
|
274
274
|
fill: "#fff",
|
|
275
275
|
transform: "translate(.552)",
|
|
@@ -826,14 +826,14 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
|
826
826
|
};
|
|
827
827
|
var ForwardRef$b = /*#__PURE__*/forwardRef(SvgSearchWithBackground);
|
|
828
828
|
|
|
829
|
-
var css$
|
|
829
|
+
var css$1x = {"root":"HlrjNi","uui-spinner":"QiOPCk","uuiSpinner":"QiOPCk"};
|
|
830
830
|
|
|
831
831
|
function applySpinnerMods() {
|
|
832
|
-
return [css$
|
|
832
|
+
return [css$1x.root, 'uui-spinner'];
|
|
833
833
|
}
|
|
834
834
|
const Spinner = /* @__PURE__ */withMods(Spinner$1, applySpinnerMods);
|
|
835
835
|
|
|
836
|
-
var css$
|
|
836
|
+
var css$1w = {"root":"btBmUb","loading-word":"FC9mnj","loadingWord":"FC9mnj","animated-loading":"JgQp0q","animatedLoading":"JgQp0q","skeleton_loading":"ID2ds5","skeletonLoading":"ID2ds5"};
|
|
837
837
|
|
|
838
838
|
const TextPlaceholder = (props) => {
|
|
839
839
|
const pattern = ' ';
|
|
@@ -845,11 +845,38 @@ const TextPlaceholder = (props) => {
|
|
|
845
845
|
}
|
|
846
846
|
return words;
|
|
847
847
|
}, [props.wordsCount]);
|
|
848
|
-
return (React.createElement("div", { "aria-busy": true, className: cx(css$
|
|
849
|
-
props.cx, css$
|
|
848
|
+
return (React.createElement("div", { "aria-busy": true, className: cx(css$1w.root, 'uui-text-placeholder'), ...props.rawProps }, text.map((it, index) => (React.createElement("span", { key: index, className: cx([
|
|
849
|
+
props.cx, css$1w.loadingWord, !props.isNotAnimated && css$1w.animatedLoading,
|
|
850
850
|
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
851
851
|
};
|
|
852
852
|
|
|
853
|
+
var css$1v = {"root":"pzVFOB","line-height":"y3SFRg","lineHeight":"y3SFRg","font-size":"Qo4NSd","fontSize":"Qo4NSd"};
|
|
854
|
+
|
|
855
|
+
function applyTextMods(mods) {
|
|
856
|
+
return [
|
|
857
|
+
css$1v.root,
|
|
858
|
+
'uui-text',
|
|
859
|
+
`uui-size-${mods.size || settings.text.sizes.default}`,
|
|
860
|
+
(mods.size !== 'none' || mods.lineHeight) && css$1v.lineHeight,
|
|
861
|
+
(mods.size !== 'none' || mods.fontSize) && css$1v.fontSize,
|
|
862
|
+
`uui-color-${mods.color || 'primary'}`,
|
|
863
|
+
`uui-font-weight-${mods.fontWeight || '400'}`,
|
|
864
|
+
`uui-font-style-${mods.fontStyle || 'normal'}`,
|
|
865
|
+
'uui-typography-inline',
|
|
866
|
+
];
|
|
867
|
+
}
|
|
868
|
+
const Text = /* @__PURE__ */withMods(uuiComponents.Text, applyTextMods, (props) => {
|
|
869
|
+
const style = props?.rawProps?.style || {};
|
|
870
|
+
props.fontSize && (style['--uui-text-font-size'] = `${props.fontSize}px`);
|
|
871
|
+
props.lineHeight && (style['--uui-text-line-height'] = `${props.lineHeight}px`);
|
|
872
|
+
return {
|
|
873
|
+
rawProps: {
|
|
874
|
+
...props?.rawProps,
|
|
875
|
+
style: style,
|
|
876
|
+
},
|
|
877
|
+
};
|
|
878
|
+
});
|
|
879
|
+
|
|
853
880
|
const accordionSettings = {
|
|
854
881
|
icons: {
|
|
855
882
|
dropdownIcon: ForwardRef$Q,
|
|
@@ -911,7 +938,8 @@ const countIndicatorSettings = {
|
|
|
911
938
|
},
|
|
912
939
|
};
|
|
913
940
|
const dataTableSettings = {
|
|
914
|
-
renderPlaceholder: () => React__default.createElement(
|
|
941
|
+
renderPlaceholder: (props) => React__default.createElement(Text, { size: props.rowSize },
|
|
942
|
+
React__default.createElement(TextPlaceholder, null)),
|
|
915
943
|
icons: {
|
|
916
944
|
emptyTable: ForwardRef$J,
|
|
917
945
|
header: {
|
|
@@ -1099,7 +1127,8 @@ const paginatorSettings = {
|
|
|
1099
1127
|
},
|
|
1100
1128
|
};
|
|
1101
1129
|
const pickerInputSettings = {
|
|
1102
|
-
renderPlaceholder: () => React__default.createElement(
|
|
1130
|
+
renderPlaceholder: (props) => React__default.createElement(Text, { size: props.rowSize },
|
|
1131
|
+
React__default.createElement(TextPlaceholder, null)),
|
|
1103
1132
|
icons: {
|
|
1104
1133
|
toggler: {
|
|
1105
1134
|
clearIcon: ForwardRef$R,
|
|
@@ -1305,11 +1334,11 @@ const settings = {
|
|
|
1305
1334
|
textInput: textInputSettings,
|
|
1306
1335
|
};
|
|
1307
1336
|
|
|
1308
|
-
var css$
|
|
1337
|
+
var css$1u = {"root":"_1CLRMC"};
|
|
1309
1338
|
|
|
1310
1339
|
function applyButtonMods(mods) {
|
|
1311
1340
|
return [
|
|
1312
|
-
css$
|
|
1341
|
+
css$1u.root,
|
|
1313
1342
|
'uui-button',
|
|
1314
1343
|
`uui-fill-${mods.fill || 'solid'}`,
|
|
1315
1344
|
`uui-color-${mods.color || 'primary'}`,
|
|
@@ -1323,10 +1352,10 @@ const Button = /* @__PURE__ */withMods(uuiComponents.Button, applyButtonMods, ()
|
|
|
1323
1352
|
};
|
|
1324
1353
|
});
|
|
1325
1354
|
|
|
1326
|
-
var css$
|
|
1355
|
+
var css$1t = {"root":"FKYfCc"};
|
|
1327
1356
|
|
|
1328
1357
|
function applyIconButtonMods(props) {
|
|
1329
|
-
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$
|
|
1358
|
+
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$1t.root];
|
|
1330
1359
|
}
|
|
1331
1360
|
const IconButton = /* @__PURE__ */withMods(uuiComponents.IconButton, applyIconButtonMods, (props) => {
|
|
1332
1361
|
const isDeprecated = ['info', 'success', 'error', 'warning'].includes(props.color);
|
|
@@ -1360,7 +1389,7 @@ function getIconClass(props) {
|
|
|
1360
1389
|
return [classList['has-left-icon'] ? 'uui-has-left-icon' : 'uui-no-left-icon', classList['has-right-icon'] ? 'uui-has-right-icon' : 'uui-no-right-icon'];
|
|
1361
1390
|
}
|
|
1362
1391
|
|
|
1363
|
-
var css$
|
|
1392
|
+
var css$1s = {"root":"erbyIH"};
|
|
1364
1393
|
|
|
1365
1394
|
const DEFAULT_COLOR = 'primary';
|
|
1366
1395
|
const LinkButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
@@ -1375,7 +1404,7 @@ const LinkButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1375
1404
|
}
|
|
1376
1405
|
const rootStyles = [
|
|
1377
1406
|
'uui-link_button',
|
|
1378
|
-
css$
|
|
1407
|
+
css$1s.root,
|
|
1379
1408
|
`uui-size-${props.size || settings.linkButton.sizes.default}`,
|
|
1380
1409
|
...getIconClass(props),
|
|
1381
1410
|
`uui-color-${props.color || DEFAULT_COLOR}`,
|
|
@@ -1390,11 +1419,11 @@ const LinkButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1390
1419
|
props.isDropdown && (React.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
1391
1420
|
});
|
|
1392
1421
|
|
|
1393
|
-
var css$
|
|
1422
|
+
var css$1r = {"root":"l-upyA"};
|
|
1394
1423
|
|
|
1395
1424
|
const CountIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
1396
1425
|
return (React__default.createElement("div", { ref: ref, className: cx([
|
|
1397
|
-
css$
|
|
1426
|
+
css$1r.root,
|
|
1398
1427
|
'uui-count_indicator',
|
|
1399
1428
|
`uui-size-${props.size || settings.countIndicator.sizes.default}`,
|
|
1400
1429
|
props.color && `uui-color-${props.color}`,
|
|
@@ -1402,11 +1431,11 @@ const CountIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
|
1402
1431
|
]) }, props.caption));
|
|
1403
1432
|
});
|
|
1404
1433
|
|
|
1405
|
-
var css$
|
|
1434
|
+
var css$1q = {"root":"Dkovx7","withNotify":"f3A00a"};
|
|
1406
1435
|
|
|
1407
1436
|
const TabButton = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
1408
1437
|
const styles = [
|
|
1409
|
-
css$
|
|
1438
|
+
css$1q.root,
|
|
1410
1439
|
'uui-tab-button',
|
|
1411
1440
|
`uui-size-${props.size || settings.tabButton.sizes.default}`,
|
|
1412
1441
|
...getIconClass(props),
|
|
@@ -1423,25 +1452,25 @@ const TabButton = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
1423
1452
|
props.icon && props.iconPosition !== 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1424
1453
|
(props.caption || props.withNotify) && (React__default.createElement("div", { className: cx$1(uuiElement.caption) },
|
|
1425
1454
|
props.caption,
|
|
1426
|
-
props.withNotify && React__default.createElement("div", { className: css$
|
|
1455
|
+
props.withNotify && React__default.createElement("div", { className: css$1q.withNotify }))),
|
|
1427
1456
|
props.icon && props.iconPosition === 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1428
1457
|
props.count !== undefined && props.count !== null && (React__default.createElement(CountIndicator, { color: "neutral", size: settings.tabButton.sizes.countIndicatorMap[props.size || settings.tabButton.sizes.default], caption: props.count })),
|
|
1429
1458
|
props.isDropdown && (React__default.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
1430
1459
|
props.onClear && !props.isDisabled && (React__default.createElement(IconContainer, { cx: uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
1431
1460
|
});
|
|
1432
1461
|
|
|
1433
|
-
var css$
|
|
1462
|
+
var css$1p = {"root":"Q0Ruc7"};
|
|
1434
1463
|
|
|
1435
1464
|
function applyVerticalTabButtonMods() {
|
|
1436
|
-
return [css$
|
|
1465
|
+
return [css$1p.root, 'uui-vertical-tab-button'];
|
|
1437
1466
|
}
|
|
1438
1467
|
const VerticalTabButton = /* @__PURE__ */withMods(TabButton, applyVerticalTabButtonMods);
|
|
1439
1468
|
|
|
1440
|
-
var css$
|
|
1469
|
+
var css$1o = {"root":"HM6nbS"};
|
|
1441
1470
|
|
|
1442
1471
|
function applyCheckboxMods(mods) {
|
|
1443
1472
|
return [
|
|
1444
|
-
css$
|
|
1473
|
+
css$1o.root,
|
|
1445
1474
|
`uui-size-${mods.size || settings.checkbox.sizes.default}`,
|
|
1446
1475
|
'uui-control-mode-' + (mods.mode || 'form'),
|
|
1447
1476
|
'uui-color-primary',
|
|
@@ -1455,11 +1484,11 @@ const applyUUICheckboxProps = (props) => {
|
|
|
1455
1484
|
};
|
|
1456
1485
|
const Checkbox = /* @__PURE__ */withMods(uuiComponents.Checkbox, applyCheckboxMods, applyUUICheckboxProps);
|
|
1457
1486
|
|
|
1458
|
-
var css$
|
|
1487
|
+
var css$1n = {"root":"aAQkh7"};
|
|
1459
1488
|
|
|
1460
1489
|
function applyRadioInputMods(mods) {
|
|
1461
1490
|
return [
|
|
1462
|
-
css$
|
|
1491
|
+
css$1n.root,
|
|
1463
1492
|
`uui-size-${mods.size || settings.radioInput.sizes.default}`,
|
|
1464
1493
|
'uui-radio-input-container',
|
|
1465
1494
|
'uui-color-primary',
|
|
@@ -1467,11 +1496,11 @@ function applyRadioInputMods(mods) {
|
|
|
1467
1496
|
}
|
|
1468
1497
|
const RadioInput = /* @__PURE__ */withMods(RadioInput$1, applyRadioInputMods, (props) => ({ icon: props.icon ? props.icon : settings.radioInput.icons.dotIcon }));
|
|
1469
1498
|
|
|
1470
|
-
var css$
|
|
1499
|
+
var css$1m = {"root":"NLGHbE"};
|
|
1471
1500
|
|
|
1472
1501
|
function applySwitchMods(mods) {
|
|
1473
1502
|
return [
|
|
1474
|
-
css$
|
|
1503
|
+
css$1m.root,
|
|
1475
1504
|
`uui-size-${mods.size || settings.switch.sizes.default}`,
|
|
1476
1505
|
'uui-color-primary',
|
|
1477
1506
|
];
|
|
@@ -1491,7 +1520,7 @@ var EditMode;
|
|
|
1491
1520
|
EditMode["INLINE"] = "inline";
|
|
1492
1521
|
})(EditMode || (EditMode = {}));
|
|
1493
1522
|
|
|
1494
|
-
var textInputCss = {"root":"
|
|
1523
|
+
var textInputCss = {"root":"dTiktO"};
|
|
1495
1524
|
|
|
1496
1525
|
const DEFAULT_MODE$3 = EditMode.FORM;
|
|
1497
1526
|
function applyTextInputMods(mods) {
|
|
@@ -1516,9 +1545,9 @@ const SearchInput = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
1516
1545
|
} }));
|
|
1517
1546
|
});
|
|
1518
1547
|
|
|
1519
|
-
var css$
|
|
1548
|
+
var css$1l = {"root":"GGW3-i"};
|
|
1520
1549
|
|
|
1521
|
-
const ControlGroup = /* @__PURE__ */withMods(ControlGroup$1, () => [css$
|
|
1550
|
+
const ControlGroup = /* @__PURE__ */withMods(ControlGroup$1, () => [css$1l.root, 'uui-control-group']);
|
|
1522
1551
|
|
|
1523
1552
|
function MultiSwitchComponent(props, ref) {
|
|
1524
1553
|
return (React.createElement(ControlGroup, { ref: ref, rawProps: {
|
|
@@ -1532,13 +1561,13 @@ function MultiSwitchComponent(props, ref) {
|
|
|
1532
1561
|
}
|
|
1533
1562
|
const MultiSwitch = /* @__PURE__ */React.forwardRef(MultiSwitchComponent);
|
|
1534
1563
|
|
|
1535
|
-
var css$
|
|
1564
|
+
var css$1k = {"root":"-ITmov"};
|
|
1536
1565
|
|
|
1537
1566
|
const DEFAULT_MODE$2 = EditMode.FORM;
|
|
1538
1567
|
function applyNumericInputMods(mods) {
|
|
1539
1568
|
return [
|
|
1540
1569
|
textInputCss.root,
|
|
1541
|
-
css$
|
|
1570
|
+
css$1k.root,
|
|
1542
1571
|
`uui-size-${mods.size || settings.numericInput.sizes.default}`,
|
|
1543
1572
|
'uui-control-mode-' + (mods.mode || DEFAULT_MODE$2),
|
|
1544
1573
|
];
|
|
@@ -1552,12 +1581,12 @@ const NumericInput = /* @__PURE__ */withMods(NumericInput$1, applyNumericInputMo
|
|
|
1552
1581
|
};
|
|
1553
1582
|
});
|
|
1554
1583
|
|
|
1555
|
-
var css$
|
|
1584
|
+
var css$1j = {"root":"IjvgwK"};
|
|
1556
1585
|
|
|
1557
1586
|
const DEFAULT_MODE$1 = EditMode.FORM;
|
|
1558
1587
|
function applyTextAreaMods(mods) {
|
|
1559
1588
|
return [
|
|
1560
|
-
css$
|
|
1589
|
+
css$1j.root,
|
|
1561
1590
|
'uui-textarea',
|
|
1562
1591
|
'uui-size-' + (mods.size || settings.textArea.sizes.default),
|
|
1563
1592
|
'uui-control-mode-' + (mods.mode || DEFAULT_MODE$1),
|
|
@@ -1593,17 +1622,17 @@ function TREE_SHAKEABLE_INIT$1() {
|
|
|
1593
1622
|
};
|
|
1594
1623
|
}
|
|
1595
1624
|
|
|
1596
|
-
var css$
|
|
1625
|
+
var css$1i = {"root":"_48bVB1","main-path":"AQBIeQ","mainPath":"AQBIeQ","content-wrapper":"-dYW-z","contentWrapper":"-dYW-z","content":"E0KPjS","action-wrapper":"laIRBY","actionWrapper":"laIRBY","icon-wrapper":"NWAeuJ","iconWrapper":"NWAeuJ","icon":"RcUwux","close-icon":"Bi6x8w","closeIcon":"Bi6x8w"};
|
|
1597
1626
|
|
|
1598
|
-
const Alert = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement("div", { role: "alert", ref: ref, className: cx('uui-alert', css$
|
|
1599
|
-
React.createElement("div", { className: css$
|
|
1600
|
-
React.createElement("div", { className: css$
|
|
1601
|
-
props.icon && (React.createElement("div", { className: css$
|
|
1602
|
-
React.createElement(IconContainer, { icon: props.icon, cx: css$
|
|
1603
|
-
React.createElement("div", { className: css$
|
|
1627
|
+
const Alert = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement("div", { role: "alert", ref: ref, className: cx('uui-alert', css$1i.root, props.color && `uui-color-${props.color}`, props.cx, `uui-size-${props.size || settings.alert.sizes.default}`), ...props.rawProps },
|
|
1628
|
+
React.createElement("div", { className: css$1i.mainPath },
|
|
1629
|
+
React.createElement("div", { className: css$1i.contentWrapper },
|
|
1630
|
+
props.icon && (React.createElement("div", { className: css$1i.iconWrapper },
|
|
1631
|
+
React.createElement(IconContainer, { icon: props.icon, cx: css$1i.icon }))),
|
|
1632
|
+
React.createElement("div", { className: css$1i.content },
|
|
1604
1633
|
props.children,
|
|
1605
|
-
props.actions && (React.createElement("div", { className: css$
|
|
1606
|
-
props.onClose && React.createElement(IconButton, { icon: settings.alert.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$
|
|
1634
|
+
props.actions && (React.createElement("div", { className: css$1i.actionWrapper }, props.actions.map((action) => (React.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] }))))))),
|
|
1635
|
+
props.onClose && React.createElement(IconButton, { icon: settings.alert.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$1i.closeIcon })))));
|
|
1607
1636
|
const WarningAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, { icon: settings.alert.icons.warningIcon, color: "warning", ref: ref, ...props }));
|
|
1608
1637
|
const SuccessAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, { icon: settings.alert.icons.successIcon, color: "success", ref: ref, ...props }));
|
|
1609
1638
|
const HintAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, { icon: settings.alert.icons.infoIcon, color: "info", ref: ref, ...props }));
|
|
@@ -1611,18 +1640,18 @@ const ErrorAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createE
|
|
|
1611
1640
|
|
|
1612
1641
|
const Dropdown = /* @__PURE__ */withMods(Dropdown$1);
|
|
1613
1642
|
|
|
1614
|
-
var css$
|
|
1643
|
+
var css$1h = {"root":"YypaBj"};
|
|
1615
1644
|
|
|
1616
1645
|
function applyDropdownContainerMods(mods) {
|
|
1617
1646
|
return [
|
|
1618
|
-
css$
|
|
1647
|
+
css$1h.root,
|
|
1619
1648
|
mods.vPadding && `vPadding-${mods.vPadding}`,
|
|
1620
1649
|
mods.padding && `padding-${mods.padding}`,
|
|
1621
1650
|
];
|
|
1622
1651
|
}
|
|
1623
1652
|
const DropdownContainer = /* @__PURE__ */withMods(uuiComponents.DropdownContainer, applyDropdownContainerMods);
|
|
1624
1653
|
|
|
1625
|
-
var css$
|
|
1654
|
+
var css$1g = {"submenu-root-item-rtl":"VB0wX3","submenuRootItemRtl":"VB0wX3","icon-after":"-p3r7n","iconAfter":"-p3r7n","submenu-root-item":"nY25rL","submenuRootItem":"nY25rL","icon-check":"X-gTsN","iconCheck":"X-gTsN","splitter-root":"gT9KmY","splitterRoot":"gT9KmY","splitter":"q51m78","header-root":"ZU67ml","headerRoot":"ZU67ml","item-root":"ciFD9o","itemRoot":"ciFD9o","icon":"JUzy-k","link":"iocMux","indent":"MHblxP","selected-mark":"SzZHb0","selectedMark":"SzZHb0"};
|
|
1626
1655
|
|
|
1627
1656
|
var IDropdownControlKeys;
|
|
1628
1657
|
(function (IDropdownControlKeys) {
|
|
@@ -1687,29 +1716,29 @@ const DropdownMenuButton = /* @__PURE__ */React__default.forwardRef((props, ref)
|
|
|
1687
1716
|
const getMenuButtonContent = () => {
|
|
1688
1717
|
const isIconBefore = Boolean(icon && iconPosition !== 'right');
|
|
1689
1718
|
const isIconAfter = Boolean(icon && iconPosition === 'right');
|
|
1690
|
-
const iconElement = (React__default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: cx$1(css$
|
|
1719
|
+
const iconElement = (React__default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: cx$1(css$1g.icon, iconPosition === 'right' ? css$1g.iconAfter : css$1g.iconBefore) }));
|
|
1691
1720
|
return (React__default.createElement(React__default.Fragment, null,
|
|
1692
1721
|
isIconBefore && iconElement,
|
|
1693
|
-
React__default.createElement(Text$1, { cx: props.indent && css$
|
|
1722
|
+
React__default.createElement(Text$1, { cx: props.indent && css$1g.indent }, caption),
|
|
1694
1723
|
isIconAfter && (React__default.createElement(React__default.Fragment, null,
|
|
1695
1724
|
React__default.createElement(FlexSpacer, null),
|
|
1696
1725
|
iconElement))));
|
|
1697
1726
|
};
|
|
1698
1727
|
const isAnchor = Boolean(link || href);
|
|
1699
|
-
const itemClassNames = cx$1(props.cx, css$
|
|
1700
|
-
return isAnchor ? (React__default.createElement(Anchor$1, { cx: cx$1(css$
|
|
1728
|
+
const itemClassNames = cx$1(props.cx, css$1g.itemRoot, isDisabled && uuiMod.disabled, isActive && uuiMod.active, isOpen && uuiMod.opened, (!isDisabled && onClick) && uuiMarkers.clickable);
|
|
1729
|
+
return isAnchor ? (React__default.createElement(Anchor$1, { cx: cx$1(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__default.createElement("div", { tabIndex: isDisabled ? -1 : 0, role: "menuitem", onKeyDown: isDisabled ? null : handleOpenDropdown, className: itemClassNames, onClick: handleClick, ref: ref },
|
|
1701
1730
|
getMenuButtonContent(),
|
|
1702
1731
|
isSelected && (React__default.createElement(React__default.Fragment, null,
|
|
1703
1732
|
React__default.createElement(FlexSpacer, null),
|
|
1704
|
-
React__default.createElement(IconContainer, { icon: settings.dropdownMenu.icons.acceptIcon, cx: css$
|
|
1733
|
+
React__default.createElement(IconContainer, { icon: settings.dropdownMenu.icons.acceptIcon, cx: css$1g.selectedMark })))));
|
|
1705
1734
|
});
|
|
1706
1735
|
function DropdownMenuSplitter(props) {
|
|
1707
|
-
return (React__default.createElement("div", { className: cx$1(props.cx, css$
|
|
1708
|
-
React__default.createElement("hr", { className: css$
|
|
1736
|
+
return (React__default.createElement("div", { className: cx$1(props.cx, css$1g.splitterRoot) },
|
|
1737
|
+
React__default.createElement("hr", { className: css$1g.splitter })));
|
|
1709
1738
|
}
|
|
1710
1739
|
function DropdownMenuHeader(props) {
|
|
1711
|
-
return (React__default.createElement("div", { className: cx$1('uui-dropdown-menu-header', props.cx, css$
|
|
1712
|
-
React__default.createElement("span", { className: css$
|
|
1740
|
+
return (React__default.createElement("div", { className: cx$1('uui-dropdown-menu-header', props.cx, css$1g.headerRoot) },
|
|
1741
|
+
React__default.createElement("span", { className: css$1g.header }, props.caption)));
|
|
1713
1742
|
}
|
|
1714
1743
|
function DropdownSubMenu(props) {
|
|
1715
1744
|
const subMenuModifiers = [
|
|
@@ -1729,7 +1758,7 @@ function DropdownSubMenu(props) {
|
|
|
1729
1758
|
},
|
|
1730
1759
|
];
|
|
1731
1760
|
const isRtl = getDir() === 'rtl';
|
|
1732
|
-
return (React__default.createElement(Dropdown$1, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", openDelay: 400, closeDelay: 400, placement: isRtl ? 'left-start' : 'right-start', modifiers: subMenuModifiers, renderBody: (dropdownProps) => !props.isDisabled && (React__default.createElement(DropdownMenuBody, { closeOnKey: IDropdownControlKeys.LEFT_ARROW, ...props, ...dropdownProps })), renderTarget: ({ toggleDropdownOpening, ...targetProps }) => (React__default.createElement(DropdownMenuButton, { cx: cx$1(isRtl ? css$
|
|
1761
|
+
return (React__default.createElement(Dropdown$1, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", openDelay: 400, closeDelay: 400, placement: isRtl ? 'left-start' : 'right-start', modifiers: subMenuModifiers, renderBody: (dropdownProps) => !props.isDisabled && (React__default.createElement(DropdownMenuBody, { closeOnKey: IDropdownControlKeys.LEFT_ARROW, ...props, ...dropdownProps })), renderTarget: ({ toggleDropdownOpening, ...targetProps }) => (React__default.createElement(DropdownMenuButton, { cx: cx$1(isRtl ? css$1g.submenuRootItemRtl : css$1g.submenuRootItem), icon: settings.dropdownMenu.icons.dropdownIcon, iconPosition: "right", isDropdown: true, toggleDropdownOpening: toggleDropdownOpening, ...props, ...targetProps })) }));
|
|
1733
1762
|
}
|
|
1734
1763
|
function DropdownMenuSwitchButton(props) {
|
|
1735
1764
|
const context = useContext(UuiContext);
|
|
@@ -1745,29 +1774,29 @@ function DropdownMenuSwitchButton(props) {
|
|
|
1745
1774
|
onHandleValueChange(!isSelected);
|
|
1746
1775
|
}
|
|
1747
1776
|
};
|
|
1748
|
-
return (React__default.createElement("div", { className: cx$1(props.cx, css$
|
|
1749
|
-
icon && React__default.createElement(IconContainer, { icon: icon, cx: css$
|
|
1777
|
+
return (React__default.createElement("div", { className: cx$1(props.cx, css$1g.itemRoot, isDisabled && uuiMod.disabled, (!isDisabled || onValueChange) && uuiMarkers.clickable), onClick: () => onHandleValueChange(!isSelected), role: "menuitem", onKeyDown: handleKeySelect, tabIndex: isDisabled ? -1 : 0 },
|
|
1778
|
+
icon && React__default.createElement(IconContainer, { icon: icon, cx: css$1g.iconBefore }),
|
|
1750
1779
|
React__default.createElement(Text$1, null, caption),
|
|
1751
1780
|
React__default.createElement(FlexSpacer, null),
|
|
1752
1781
|
React__default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
1753
1782
|
}
|
|
1754
1783
|
|
|
1755
|
-
var css$
|
|
1784
|
+
var css$1f = {"root":"bMBghU","mode-block":"_45cf13","modeBlock":"_45cf13","mode-inline":"Qum9qP","modeInline":"Qum9qP","padding-0":"kZFHND","padding0":"kZFHND","padding-6":"I9OxCP","padding6":"I9OxCP","padding-12":"cCrDj6","padding12":"cCrDj6","padding-18":"fBO-X4","padding18":"fBO-X4"};
|
|
1756
1785
|
|
|
1757
1786
|
function applyAccordionMods(mods) {
|
|
1758
1787
|
return [
|
|
1759
|
-
css$
|
|
1760
|
-
css$
|
|
1761
|
-
mods.padding && css$
|
|
1788
|
+
css$1f.root,
|
|
1789
|
+
css$1f[`mode-${mods.mode || 'block'}`],
|
|
1790
|
+
mods.padding && css$1f['padding-' + mods.padding],
|
|
1762
1791
|
];
|
|
1763
1792
|
}
|
|
1764
1793
|
const Accordion = /* @__PURE__ */withMods(uuiComponents.Accordion, applyAccordionMods, (mods) => ({
|
|
1765
1794
|
dropdownIcon: mods.dropdownIcon !== null && settings.accordion.icons.dropdownIcon,
|
|
1766
1795
|
}));
|
|
1767
1796
|
|
|
1768
|
-
var css$
|
|
1797
|
+
var css$1e = {"root":"_7odpVC","align-items":"xXqZjG","alignItems":"xXqZjG","justify-content":"gZdJ-5","justifyContent":"gZdJ-5","border-top":"k2om3t","borderTop":"k2om3t","border-bottom":"-ptmt2","borderBottom":"-ptmt2","top-shadow":"JChazr","topShadow":"JChazr","padding":"Tnk2zV","margin":"hQ7cWV","vPadding":"cGU3uM","column-gap":"_7bN-54","columnGap":"_7bN-54","row-gap":"oZHYzO","rowGap":"oZHYzO","spacing":"pH6MH0"};
|
|
1769
1798
|
|
|
1770
|
-
const FlexCell = /* @__PURE__ */withMods(FlexCell$1, () => [css$
|
|
1799
|
+
const FlexCell = /* @__PURE__ */withMods(FlexCell$1, () => [css$1e.flexCell]);
|
|
1771
1800
|
|
|
1772
1801
|
const FlexRow = /* @__PURE__ */forwardRef((props, ref) => {
|
|
1773
1802
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -1776,22 +1805,22 @@ const FlexRow = /* @__PURE__ */forwardRef((props, ref) => {
|
|
|
1776
1805
|
}
|
|
1777
1806
|
}
|
|
1778
1807
|
const classNames = cx$1([
|
|
1779
|
-
css$
|
|
1808
|
+
css$1e.root,
|
|
1780
1809
|
'uui-flex-row',
|
|
1781
1810
|
props.onClick && uuiMarkers.clickable,
|
|
1782
1811
|
props.cx,
|
|
1783
1812
|
props.size !== null && 'uui-size-' + (props.size || settings.flexRow.sizes.default),
|
|
1784
|
-
props.alignItems && css$
|
|
1785
|
-
props.justifyContent && css$
|
|
1786
|
-
props.padding && css$
|
|
1787
|
-
props.vPadding && css$
|
|
1788
|
-
props.margin && css$
|
|
1789
|
-
props.topShadow && css$
|
|
1790
|
-
props.borderBottom && css$
|
|
1791
|
-
props.borderTop && css$
|
|
1792
|
-
props.columnGap && css$
|
|
1793
|
-
props.rowGap && css$
|
|
1794
|
-
props.spacing && css$
|
|
1813
|
+
props.alignItems && css$1e.alignItems,
|
|
1814
|
+
props.justifyContent && css$1e.justifyContent,
|
|
1815
|
+
props.padding && css$1e.padding,
|
|
1816
|
+
props.vPadding && css$1e.vPadding,
|
|
1817
|
+
props.margin && css$1e.margin,
|
|
1818
|
+
props.topShadow && css$1e.topShadow,
|
|
1819
|
+
props.borderBottom && css$1e.borderBottom,
|
|
1820
|
+
props.borderTop && css$1e.borderTop,
|
|
1821
|
+
props.columnGap && css$1e.columnGap,
|
|
1822
|
+
props.rowGap && css$1e.rowGap,
|
|
1823
|
+
props.spacing && css$1e.spacing,
|
|
1795
1824
|
props.background && `uui-flex-row-bg-${props.background}`,
|
|
1796
1825
|
]);
|
|
1797
1826
|
const style = {
|
|
@@ -1810,32 +1839,32 @@ const FlexRow = /* @__PURE__ */forwardRef((props, ref) => {
|
|
|
1810
1839
|
} }, props.children));
|
|
1811
1840
|
});
|
|
1812
1841
|
|
|
1813
|
-
var css$
|
|
1842
|
+
var css$1d = {"root":"ARhu1A","margin-24":"bMnY7-","margin24":"bMnY7-","padding-12":"SJniyF","padding12":"SJniyF","padding-24":"TlEdkL","padding24":"TlEdkL","shadow":"_8Lp0Xt","uui-surface-main":"rS3IiL","uuiSurfaceMain":"rS3IiL"};
|
|
1814
1843
|
|
|
1815
1844
|
const Panel = /* @__PURE__ */withMods(VPanel, (props) => [
|
|
1816
1845
|
'uui-panel',
|
|
1817
|
-
css$
|
|
1818
|
-
props.shadow && css$
|
|
1819
|
-
props.margin && css$
|
|
1820
|
-
props.background && css$
|
|
1846
|
+
css$1d.root,
|
|
1847
|
+
props.shadow && css$1d.shadow,
|
|
1848
|
+
props.margin && css$1d['margin-' + props.margin],
|
|
1849
|
+
props.background && css$1d[`uui-${props.background}`],
|
|
1821
1850
|
]);
|
|
1822
1851
|
|
|
1823
|
-
var css$
|
|
1852
|
+
var css$1c = {"root":"_8QrW9r"};
|
|
1824
1853
|
|
|
1825
1854
|
function applyTooltipMods(mods) {
|
|
1826
1855
|
return [
|
|
1827
|
-
css$
|
|
1856
|
+
css$1c.root,
|
|
1828
1857
|
`uui-color-${mods.color || 'inverted'}`,
|
|
1829
1858
|
];
|
|
1830
1859
|
}
|
|
1831
1860
|
const Tooltip = /* @__PURE__ */withMods(uuiComponents.Tooltip, applyTooltipMods);
|
|
1832
1861
|
|
|
1833
|
-
var css$
|
|
1862
|
+
var css$1b = {"root":"xJQPpO"};
|
|
1834
1863
|
|
|
1835
1864
|
function applyLabeledInputMods(mods) {
|
|
1836
1865
|
return [
|
|
1837
1866
|
'uui-labeled-input',
|
|
1838
|
-
css$
|
|
1867
|
+
css$1b.root,
|
|
1839
1868
|
'uui-size-' + (mods.size || settings.labeledInput.sizes.default),
|
|
1840
1869
|
];
|
|
1841
1870
|
}
|
|
@@ -1847,7 +1876,7 @@ function applyLabeledInputProps(props) {
|
|
|
1847
1876
|
}
|
|
1848
1877
|
const LabeledInput = /* @__PURE__ */withMods(uuiComponents.LabeledInput, applyLabeledInputMods, applyLabeledInputProps);
|
|
1849
1878
|
|
|
1850
|
-
var css$
|
|
1879
|
+
var css$1a = {"root":"JkpWpO"};
|
|
1851
1880
|
|
|
1852
1881
|
function RadioGroup(props) {
|
|
1853
1882
|
const direction = props.direction || 'vertical';
|
|
@@ -1856,26 +1885,26 @@ function RadioGroup(props) {
|
|
|
1856
1885
|
props.onValueChange(newVal);
|
|
1857
1886
|
}
|
|
1858
1887
|
};
|
|
1859
|
-
return (React.createElement("fieldset", { ref: props.forwardedRef, className: cx$1(css$
|
|
1888
|
+
return (React.createElement("fieldset", { ref: props.forwardedRef, className: cx$1(css$1a.root, directionMode[direction], props.cx), onFocus: props.onFocus, onBlur: props.onBlur, ...props.rawProps }, props.items.map((i) => {
|
|
1860
1889
|
const { id, name, renderName, ...restItemProps } = i;
|
|
1861
1890
|
return (React.createElement(RadioInput, { name: props.name, renderLabel: i.renderName ? i.renderName : () => i.name, value: props.value === i.id, onValueChange: () => handleChange(i.id), isDisabled: props.isDisabled || i.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, isRequired: props.isRequired, key: i.id.toString(), size: props.size || i.size, ...restItemProps }));
|
|
1862
1891
|
})));
|
|
1863
1892
|
}
|
|
1864
1893
|
|
|
1865
|
-
var css$
|
|
1894
|
+
var css$19 = {"root":"_04Lpo1"};
|
|
1866
1895
|
|
|
1867
1896
|
function applyScrollBarsMods() {
|
|
1868
1897
|
return [
|
|
1869
|
-
css$
|
|
1898
|
+
css$19.root, 'uui-scroll-bars', 'uui-shadow-top', 'uui-shadow-bottom',
|
|
1870
1899
|
];
|
|
1871
1900
|
}
|
|
1872
1901
|
const ScrollBars = /* @__PURE__ */withMods(ScrollBars$1, applyScrollBarsMods);
|
|
1873
1902
|
|
|
1874
|
-
var css$
|
|
1903
|
+
var css$18 = {"scroll-container":"ykFJED","scrollContainer":"ykFJED","list-container":"SjuGEa","listContainer":"SjuGEa"};
|
|
1875
1904
|
|
|
1876
|
-
var css$
|
|
1905
|
+
var css$17 = {"root":"_6QGYfX"};
|
|
1877
1906
|
|
|
1878
|
-
const Blocker = /* @__PURE__ */withMods(Blocker$1, () => [css$
|
|
1907
|
+
const Blocker = /* @__PURE__ */withMods(Blocker$1, () => [css$17.root], () => ({ renderSpinner: settings.blocker.renderSpinner }));
|
|
1879
1908
|
|
|
1880
1909
|
const VirtualList = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1881
1910
|
const { listContainerRef, offsetY, handleScroll, estimatedHeight, scrollContainerRef, } = useVirtualList({
|
|
@@ -1889,7 +1918,7 @@ const VirtualList = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1889
1918
|
const scrollShadows = useScrollShadows({ root: scrollContainerRef.current });
|
|
1890
1919
|
const renderRows = () => props.renderRows?.({
|
|
1891
1920
|
listContainerRef, estimatedHeight, offsetY, scrollShadows,
|
|
1892
|
-
}) || (React.createElement("div", { className: css$
|
|
1921
|
+
}) || (React.createElement("div", { className: css$18.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
1893
1922
|
React.createElement("div", { ref: listContainerRef, role: props.role, style: { marginTop: offsetY } }, props.rows)));
|
|
1894
1923
|
const renderView = ({ style }) => (React.createElement(VirtualListView, { isLoading: props.isLoading, style: style, rawProps: props.rawProps }));
|
|
1895
1924
|
const scrollBarsRef = React.useCallback((scrollbars) => {
|
|
@@ -1897,7 +1926,7 @@ const VirtualList = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1897
1926
|
return;
|
|
1898
1927
|
scrollContainerRef.current = scrollbars.container.firstChild;
|
|
1899
1928
|
}, []);
|
|
1900
|
-
return (React.createElement(ScrollBars, { cx: cx$1(css$
|
|
1929
|
+
return (React.createElement(ScrollBars, { cx: cx$1(css$18.scrollContainer, props.cx, {
|
|
1901
1930
|
[uuiMarkers.scrolledLeft]: scrollShadows.horizontalLeft,
|
|
1902
1931
|
[uuiMarkers.scrolledRight]: scrollShadows.horizontalRight,
|
|
1903
1932
|
[uuiMarkers.scrolledTop]: scrollShadows.verticalTop,
|
|
@@ -1919,7 +1948,7 @@ const VirtualListView = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1919
1948
|
React.createElement(Blocker, { isEnabled: props.isLoading })));
|
|
1920
1949
|
});
|
|
1921
1950
|
|
|
1922
|
-
var css$
|
|
1951
|
+
var css$16 = {"root":"_19uy9M"};
|
|
1923
1952
|
|
|
1924
1953
|
function CheckboxGroup(props) {
|
|
1925
1954
|
const currentValue = props.value || [];
|
|
@@ -1935,16 +1964,16 @@ function CheckboxGroup(props) {
|
|
|
1935
1964
|
}
|
|
1936
1965
|
props.onValueChange(newSelection);
|
|
1937
1966
|
};
|
|
1938
|
-
return (React.createElement("fieldset", { ref: props.forwardedRef, className: cx$1(css$
|
|
1967
|
+
return (React.createElement("fieldset", { ref: props.forwardedRef, className: cx$1(css$16.root, directionMode[direction], props.cx), ...props.rawProps }, props.items.map((i) => {
|
|
1939
1968
|
const { id, name, renderName, ...restItemProps } = i;
|
|
1940
1969
|
return (React.createElement(Checkbox, { renderLabel: i.renderName ? i.renderName : () => i.name, value: currentValue.indexOf(i.id) !== -1, onValueChange: (selected) => handleChange(selected, i.id), isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, isRequired: props.isRequired, key: i.id.toString(), size: props.size || i.size, ...restItemProps }));
|
|
1941
1970
|
})));
|
|
1942
1971
|
}
|
|
1943
1972
|
|
|
1944
|
-
var css$
|
|
1973
|
+
var css$15 = {"root":"A-LMxa","modal-blocker":"_6huqgH","modalBlocker":"_6huqgH","animateModalBlocker":"_3sJkKh","modal":"qXOZTB","modal-footer":"qF-c-8","modalFooter":"qF-c-8","border-top":"QOYHpo","borderTop":"QOYHpo","modal-header":"XipC6l","modalHeader":"XipC6l","border-bottom":"WZ0txC","borderBottom":"WZ0txC"};
|
|
1945
1974
|
|
|
1946
|
-
const ModalBlocker = /* @__PURE__ */withMods(ModalBlocker$1, () => [css$
|
|
1947
|
-
const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css$
|
|
1975
|
+
const ModalBlocker = /* @__PURE__ */withMods(ModalBlocker$1, () => [css$15.modalBlocker]);
|
|
1976
|
+
const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css$15.root, css$15.modal], (props) => {
|
|
1948
1977
|
const width = props.width;
|
|
1949
1978
|
const height = props.height || 'auto';
|
|
1950
1979
|
const maxHeight = isMobile() ? 'var(--uui-modals-mobile-max-height)' : (props.maxHeight || 'var(--uui-modals-max-height)');
|
|
@@ -1958,7 +1987,7 @@ const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css$17.root, c
|
|
|
1958
1987
|
};
|
|
1959
1988
|
});
|
|
1960
1989
|
function ModalHeader(props) {
|
|
1961
|
-
return (React__default.createElement("div", { className: cx(css$
|
|
1990
|
+
return (React__default.createElement("div", { className: cx(css$15.root, css$15.modalHeader, 'uui-modal-header', props.borderBottom && css$15.borderBottom, props.cx), ...props.rawProps, style: {
|
|
1962
1991
|
...props.rawProps?.style,
|
|
1963
1992
|
} },
|
|
1964
1993
|
props.title && (React__default.createElement("div", { className: cx('uui-modal-title', 'uui-typography') }, props.title)),
|
|
@@ -1968,7 +1997,7 @@ function ModalHeader(props) {
|
|
|
1968
1997
|
React__default.createElement(IconButton, { rawProps: { 'aria-label': 'Close modal' }, icon: settings.modal.icons.closeIcon, onClick: props.onClose })))));
|
|
1969
1998
|
}
|
|
1970
1999
|
function ModalFooter(props) {
|
|
1971
|
-
return (React__default.createElement("div", { className: cx(css$
|
|
2000
|
+
return (React__default.createElement("div", { className: cx(css$15.root, css$15.modalFooter, 'uui-modal-footer', props.borderTop && css$15.borderTop, props.cx), ...props.rawProps, style: {
|
|
1972
2001
|
...props.rawProps?.style,
|
|
1973
2002
|
} }, props.children));
|
|
1974
2003
|
}
|
|
@@ -2131,7 +2160,7 @@ const TREE_SHAKEABLE_INIT = () => ({
|
|
|
2131
2160
|
});
|
|
2132
2161
|
const i18n = /* @__PURE__ */TREE_SHAKEABLE_INIT();
|
|
2133
2162
|
|
|
2134
|
-
var css$
|
|
2163
|
+
var css$14 = {"root":"_5Wt--G","icon-wrapper":"D473qY","iconWrapper":"D473qY","action-wrapper":"Rl9z1R","actionWrapper":"Rl9z1R","action-link":"p0wjn3","actionLink":"p0wjn3","close-icon":"PVuzyd","closeIcon":"PVuzyd","main-path":"IDZ8mg","mainPath":"IDZ8mg","content":"lnrjNp","close-wrapper":"YeDhEu","closeWrapper":"YeDhEu","notification-wrapper":"Nha0yW","notificationWrapper":"Nha0yW","clear-button":"QjRPbt","clearButton":"QjRPbt"};
|
|
2135
2164
|
|
|
2136
2165
|
const NotificationCard = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
2137
2166
|
const notificationCardNode = React__default.useRef(null);
|
|
@@ -2144,15 +2173,15 @@ const NotificationCard = /* @__PURE__ */React__default.forwardRef((props, ref) =
|
|
|
2144
2173
|
notificationCardNode.current?.removeEventListener('mouseleave', props.refreshTimer);
|
|
2145
2174
|
};
|
|
2146
2175
|
}, []);
|
|
2147
|
-
return (React__default.createElement("div", { role: "alert", className: cx('uui-notification_card', props.color && `uui-color-${props.color}`, css$
|
|
2148
|
-
React__default.createElement("div", { className: css$
|
|
2149
|
-
props.icon && (React__default.createElement("div", { className: css$
|
|
2176
|
+
return (React__default.createElement("div", { role: "alert", className: cx('uui-notification_card', props.color && `uui-color-${props.color}`, css$14.root, props.cx), ref: notificationCardNode, ...props.rawProps },
|
|
2177
|
+
React__default.createElement("div", { className: css$14.mainPath },
|
|
2178
|
+
props.icon && (React__default.createElement("div", { className: css$14.iconWrapper },
|
|
2150
2179
|
React__default.createElement(IconContainer, { size: 24, icon: props.icon }))),
|
|
2151
|
-
React__default.createElement("div", { className: css$
|
|
2180
|
+
React__default.createElement("div", { className: css$14.content },
|
|
2152
2181
|
props.children,
|
|
2153
|
-
props.actions && (React__default.createElement("div", { className: css$
|
|
2154
|
-
props.onClose && (React__default.createElement("div", { className: css$
|
|
2155
|
-
React__default.createElement(IconButton, { icon: settings.notificationCard.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$
|
|
2182
|
+
props.actions && (React__default.createElement("div", { className: css$14.actionWrapper }, props.actions.map((action) => (React__default.createElement(LinkButton, { key: action.name, caption: action.name, onClick: action.action, cx: css$14.actionLink, size: settings.notificationCard.sizes.action, rawProps: action.rawProps })))))),
|
|
2183
|
+
props.onClose && (React__default.createElement("div", { className: css$14.closeWrapper },
|
|
2184
|
+
React__default.createElement(IconButton, { icon: settings.notificationCard.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$14.closeIcon }))))));
|
|
2156
2185
|
});
|
|
2157
2186
|
const WarningNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, { icon: settings.notificationCard.icons.warningIcon, color: "warning", ...props, ref: ref, cx: props.cx })));
|
|
2158
2187
|
const SuccessNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, { icon: settings.notificationCard.icons.successIcon, color: "success", ...props, ref: ref, cx: props.cx })));
|
|
@@ -2160,11 +2189,11 @@ const HintNotification = /* @__PURE__ */React__default.forwardRef((props, ref) =
|
|
|
2160
2189
|
const ErrorNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, { icon: settings.notificationCard.icons.errorIcon, color: "error", ...props, ref: ref, cx: props.cx })));
|
|
2161
2190
|
function ClearNotification() {
|
|
2162
2191
|
const uuiCtx = useUuiContext();
|
|
2163
|
-
return (React__default.createElement("div", { className: cx(css$
|
|
2192
|
+
return (React__default.createElement("div", { className: cx(css$14.notificationWrapper, css$14.clearButton) },
|
|
2164
2193
|
React__default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => uuiCtx.uuiNotifications.clearAll() })));
|
|
2165
2194
|
}
|
|
2166
2195
|
|
|
2167
|
-
var css$
|
|
2196
|
+
var css$13 = {"footer":"gPv2dT"};
|
|
2168
2197
|
|
|
2169
2198
|
class ConfirmationModal extends React.Component {
|
|
2170
2199
|
render() {
|
|
@@ -2176,7 +2205,7 @@ class ConfirmationModal extends React.Component {
|
|
|
2176
2205
|
React.createElement(ModalWindow, { width: 420 },
|
|
2177
2206
|
React.createElement(ModalHeader, { borderBottom: true, title: this.props.caption, onClose: () => this.props.abort() }),
|
|
2178
2207
|
React.createElement(ScrollBars, null, bodyContent),
|
|
2179
|
-
React.createElement(ModalFooter, { cx: css$
|
|
2208
|
+
React.createElement(ModalFooter, { cx: css$13.footer },
|
|
2180
2209
|
this.props.hideCancelButton || (React.createElement(Button, { caption: i18n.form.modals.discardButton, onClick: () => this.props.success(false), fill: "outline", color: "secondary" })),
|
|
2181
2210
|
React.createElement(Button, { caption: i18n.form.modals.saveButton, onClick: () => this.props.success(true), color: "primary" })))));
|
|
2182
2211
|
}
|
|
@@ -2206,7 +2235,7 @@ function useReliableForceUpdate() {
|
|
|
2206
2235
|
return red[1];
|
|
2207
2236
|
}
|
|
2208
2237
|
|
|
2209
|
-
var css$
|
|
2238
|
+
var css$12 = {"root":"gNHcQR","timepicker-input":"qAjuq0","timepickerInput":"qAjuq0","ltr-always":"zMjNqO","ltrAlways":"zMjNqO"};
|
|
2210
2239
|
|
|
2211
2240
|
const uuiTimePicker = {
|
|
2212
2241
|
container: 'uui-timepicker-container',
|
|
@@ -2245,8 +2274,8 @@ function TimePickerBody(props) {
|
|
|
2245
2274
|
const minutesToSubtract = value.minute() % minutesStep === 0 ? minutesStep : value.minute() % minutesStep;
|
|
2246
2275
|
onMinutesChange(value.subtract(minutesToSubtract, 'm').minute());
|
|
2247
2276
|
};
|
|
2248
|
-
return (React.createElement("div", { className: cx$1(css$
|
|
2249
|
-
React.createElement("div", { className: css$
|
|
2277
|
+
return (React.createElement("div", { className: cx$1(css$12.root, uuiTimePicker.container, props.cx), ref: props.forwardedRef, ...props.rawProps },
|
|
2278
|
+
React.createElement("div", { className: css$12.ltrAlways },
|
|
2250
2279
|
React.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
2251
2280
|
React.createElement(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()) }),
|
|
2252
2281
|
React.createElement(NumericInput$1, { cx: uuiTimePicker.input, onValueChange: onHoursChange, value: +(uuiDayjs.dayjs()
|
|
@@ -2389,7 +2418,7 @@ function TimePicker(props) {
|
|
|
2389
2418
|
state.value && state.inputValue && saveTime(state.value);
|
|
2390
2419
|
};
|
|
2391
2420
|
const renderInput = (inputProps) => {
|
|
2392
|
-
return (React__default.createElement(TextInput, { ...inputProps, onClick: null, size: props.size, isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, cx: [css$
|
|
2421
|
+
return (React__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 }));
|
|
2393
2422
|
};
|
|
2394
2423
|
const renderBody = (bodyProps) => {
|
|
2395
2424
|
const { forwardedRef, onValueChange, ...timePickerBodyProps } = props;
|
|
@@ -2399,27 +2428,27 @@ function TimePicker(props) {
|
|
|
2399
2428
|
return (React__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 }));
|
|
2400
2429
|
}
|
|
2401
2430
|
|
|
2402
|
-
var css$
|
|
2431
|
+
var css$11 = {"root":"OX7cxh"};
|
|
2403
2432
|
|
|
2404
2433
|
function applyInputAddonMods() {
|
|
2405
2434
|
return [
|
|
2406
|
-
css$
|
|
2435
|
+
css$11.root,
|
|
2407
2436
|
];
|
|
2408
2437
|
}
|
|
2409
2438
|
const InputAddon = /* @__PURE__ */withMods(InputAddon$1, applyInputAddonMods);
|
|
2410
2439
|
|
|
2411
|
-
var css$
|
|
2440
|
+
var css$10 = {"root":"xhCShm"};
|
|
2412
2441
|
|
|
2413
2442
|
function applySliderMods() {
|
|
2414
|
-
return [css$
|
|
2443
|
+
return [css$10.root, 'uui-color-neutral'];
|
|
2415
2444
|
}
|
|
2416
2445
|
const Slider = /* @__PURE__ */withMods(Slider$1, applySliderMods);
|
|
2417
2446
|
|
|
2418
|
-
var css
|
|
2447
|
+
var css$$ = {"root":"_92dUYY","tooltip":"aknaHP"};
|
|
2419
2448
|
|
|
2420
2449
|
function applyRatingMods(mods) {
|
|
2421
2450
|
return [
|
|
2422
|
-
css
|
|
2451
|
+
css$$.root,
|
|
2423
2452
|
`uui-size-${mods.size || settings.rating.sizes.default}`,
|
|
2424
2453
|
];
|
|
2425
2454
|
}
|
|
@@ -2429,7 +2458,7 @@ const Rating = /* @__PURE__ */withMods(uuiComponents.Rating, applyRatingMods, (p
|
|
|
2429
2458
|
Tooltip,
|
|
2430
2459
|
}));
|
|
2431
2460
|
|
|
2432
|
-
var css$
|
|
2461
|
+
var css$_ = {"root":"fo00Wi","container":"iL-GFC"};
|
|
2433
2462
|
|
|
2434
2463
|
const defaultFormat = 'MMM D, YYYY';
|
|
2435
2464
|
const valueFormat = 'YYYY-MM-DD';
|
|
@@ -2633,21 +2662,21 @@ function DatePickerHeader({ navIconLeft, navIconRight, value: { month, view }, o
|
|
|
2633
2662
|
}, [view, month]);
|
|
2634
2663
|
const disablePrev = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getPrevYearsList(month));
|
|
2635
2664
|
const disableNext = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getNextYearsList(month));
|
|
2636
|
-
return (React.createElement("div", { className: cx(css$
|
|
2665
|
+
return (React.createElement("div", { className: cx(css$_.root, uuiHeader.container, cx) },
|
|
2637
2666
|
React.createElement("header", { className: uuiHeader.headerNav },
|
|
2638
2667
|
React.createElement(Button, { icon: navIconLeft || settings.datePicker.icons.body.prevIcon, color: "secondary", fill: "ghost", cx: uuiHeader.navIconLeft, onClick: !isDisabled && (() => onLeftNavigationArrow()), isDisabled: disablePrev }),
|
|
2639
2668
|
React.createElement(Button, { caption: title, fill: "ghost", cx: uuiHeader.navTitle, onClick: !isDisabled && (() => onCaptionClick(view)) }),
|
|
2640
2669
|
React.createElement(Button, { icon: navIconRight || settings.datePicker.icons.body.nextIcon, color: "secondary", fill: "ghost", cx: uuiHeader.navIconRight, onClick: !isDisabled && (() => onRightNavigationArrow()), isDisabled: disableNext }))));
|
|
2641
2670
|
}
|
|
2642
2671
|
|
|
2643
|
-
var css
|
|
2672
|
+
var css$Z = {"root":"FPJ0oS"};
|
|
2644
2673
|
|
|
2645
2674
|
function applyDateSelectionMods() {
|
|
2646
|
-
return [css
|
|
2675
|
+
return [css$Z.root, `uui-size-${settings.datePicker.sizes.body}`];
|
|
2647
2676
|
}
|
|
2648
2677
|
const Calendar = /* @__PURE__ */withMods(Calendar$1, applyDateSelectionMods);
|
|
2649
2678
|
|
|
2650
|
-
var css$
|
|
2679
|
+
var css$Y = {"root":"LhW5Ab"};
|
|
2651
2680
|
|
|
2652
2681
|
const uuiDatePickerBody = {
|
|
2653
2682
|
wrapper: 'uui-datepicker-body-wrapper',
|
|
@@ -2691,7 +2720,7 @@ function StatelessDatePickerBodyComp({ renderDay, isHoliday, cx: classes, filter
|
|
|
2691
2720
|
}
|
|
2692
2721
|
};
|
|
2693
2722
|
return (React__default.createElement("div", { ref: ref, className: cx$1(uuiDatePickerBodyBase.container, `uui-size-${settings.datePicker.sizes.body}`, classes), ...rawProps },
|
|
2694
|
-
React__default.createElement("div", { className: cx$1(css$
|
|
2723
|
+
React__default.createElement("div", { className: cx$1(css$Y.root, uuiDatePickerBody.wrapper) },
|
|
2695
2724
|
React__default.createElement(DatePickerHeader, { value: {
|
|
2696
2725
|
view,
|
|
2697
2726
|
month,
|
|
@@ -2773,7 +2802,7 @@ function DatePickerComponent(props, ref) {
|
|
|
2773
2802
|
}
|
|
2774
2803
|
const DatePicker = /* @__PURE__ */React__default.forwardRef(DatePickerComponent);
|
|
2775
2804
|
|
|
2776
|
-
var css$
|
|
2805
|
+
var css$X = {"date-input":"QtIYPZ","dateInput":"QtIYPZ","root":"V9yJjU","separator":"Qee58T"};
|
|
2777
2806
|
|
|
2778
2807
|
const RangeDatePickerInput = /* @__PURE__ */forwardRef(({ isDisabled, isInvalid, isReadonly, size, disableClear, rawProps, value, inFocus, format, onValueChange, onFocusInput, onBlurInput, onClick, getPlaceholder, filter, onKeyDown, id, cx: classes, }, ref) => {
|
|
2779
2808
|
const [inputValue, setInputValue] = useState(toCustomDateRangeFormat(value, format));
|
|
@@ -2816,15 +2845,15 @@ const RangeDatePickerInput = /* @__PURE__ */forwardRef(({ isDisabled, isInvalid,
|
|
|
2816
2845
|
const clearAllowed = !disableClear && inputValue.from && inputValue.to;
|
|
2817
2846
|
return (
|
|
2818
2847
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
2819
|
-
React__default.createElement("div", { ref: ref, className: cx$1(`uui-size-${size || settings.rangeDatePicker.sizes.default}`, 'uui-range-date-picker', classes, css$
|
|
2820
|
-
React__default.createElement(TextInput, { icon: settings.rangeDatePicker.icons.input.calendarIcon, cx: cx$1(css$
|
|
2821
|
-
React__default.createElement("div", { className: css$
|
|
2822
|
-
React__default.createElement(TextInput, { cx: cx$1(css$
|
|
2848
|
+
React__default.createElement("div", { ref: ref, className: cx$1(`uui-size-${size || settings.rangeDatePicker.sizes.default}`, 'uui-range-date-picker', classes, css$X.root, isDisabled && uuiMod.disabled, isReadonly && uuiMod.readonly, isInvalid && uuiMod.invalid, inFocus && uuiMod.focus), onKeyDown: onKeyDown },
|
|
2849
|
+
React__default.createElement(TextInput, { icon: settings.rangeDatePicker.icons.input.calendarIcon, cx: cx$1(css$X.dateInput, inFocus === 'from' && uuiMod.focus), size: size || settings.rangeDatePicker.sizes.default, placeholder: getPlaceholder ? getPlaceholder('from') : i18n.rangeDatePicker.pickerPlaceholderFrom, value: inputValue.from || undefined, onValueChange: (v) => onInputChange(v || '', 'from'), onFocus: (event) => handleFocus(event, 'from'), onBlur: (event) => handleBlur(event, 'from'), isInvalid: isInvalid, isDisabled: isDisabled, isReadonly: isReadonly, isDropdown: false, rawProps: rawProps?.from, onClick: onClick, onKeyDown: onInputKeyDown, id: id }),
|
|
2850
|
+
React__default.createElement("div", { className: css$X.separator }),
|
|
2851
|
+
React__default.createElement(TextInput, { cx: cx$1(css$X.dateInput, inFocus === 'to' && uuiMod.focus), placeholder: getPlaceholder ? getPlaceholder('to') : i18n.rangeDatePicker.pickerPlaceholderTo, size: size || settings.rangeDatePicker.sizes.default, value: inputValue.to || undefined, onCancel: clearAllowed ? () => {
|
|
2823
2852
|
onValueChange(defaultRangeValue);
|
|
2824
2853
|
} : 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 })));
|
|
2825
2854
|
});
|
|
2826
2855
|
|
|
2827
|
-
var css$
|
|
2856
|
+
var css$W = {"root":"jW1SyO"};
|
|
2828
2857
|
|
|
2829
2858
|
const uuiPresets = {
|
|
2830
2859
|
container: 'uui-presets-container',
|
|
@@ -2839,12 +2868,12 @@ const getPresets = (presets) => {
|
|
|
2839
2868
|
})).sort((a, b) => a.order - b.order);
|
|
2840
2869
|
};
|
|
2841
2870
|
function CalendarPresets(props) {
|
|
2842
|
-
return (React.createElement("div", { ref: props.forwardedRef, className: cx$1(uuiPresets.container, css$
|
|
2871
|
+
return (React.createElement("div", { ref: props.forwardedRef, className: cx$1(uuiPresets.container, css$W.root, props.cx), ...props.rawProps },
|
|
2843
2872
|
React.createElement("div", { className: uuiPresets.header }, "Presets"),
|
|
2844
2873
|
getPresets(props.presets).map((item) => (React.createElement(LinkButton, { key: item.key, caption: item.name, onClick: () => props.onPresetSet(item), size: settings.rangeDatePicker.sizes.preset })))));
|
|
2845
2874
|
}
|
|
2846
2875
|
|
|
2847
|
-
var css$
|
|
2876
|
+
var css$V = {"root":"vsAOn2","container":"dtCABR","day-selection":"EYbFG-","daySelection":"EYbFG-","from-picker":"Uh-TXH","fromPicker":"Uh-TXH","to-picker":"agtdr1","toPicker":"agtdr1","bodes-wrapper":"qgLDNm","bodesWrapper":"qgLDNm","blocker":"g-MKsR"};
|
|
2848
2877
|
|
|
2849
2878
|
const uuiRangeDatePickerBody = {
|
|
2850
2879
|
inRange: 'uui-range-datepicker-in-range',
|
|
@@ -2985,21 +3014,21 @@ function RangeDatePickerBodyComp(props, ref) {
|
|
|
2985
3014
|
});
|
|
2986
3015
|
}, presets: presets })));
|
|
2987
3016
|
};
|
|
2988
|
-
return (React__default.createElement("div", { ref: ref, className: cx$1(css$
|
|
2989
|
-
React__default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$
|
|
3017
|
+
return (React__default.createElement("div", { ref: ref, className: cx$1(css$V.root, uuiDatePickerBodyBase.container, props.cx), ...props.rawProps },
|
|
3018
|
+
React__default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$V.daySelection, css$V.container], alignItems: "top" },
|
|
2990
3019
|
React__default.createElement(FlexCell, { width: "auto" },
|
|
2991
3020
|
React__default.createElement(FlexRow, null,
|
|
2992
|
-
React__default.createElement(FlexRow, { cx: css$
|
|
2993
|
-
React__default.createElement(StatelessDatePickerBody, { key: "date-picker-body-left", cx: cx$1(css$
|
|
3021
|
+
React__default.createElement(FlexRow, { cx: css$V.bodesWrapper, alignItems: "top" },
|
|
3022
|
+
React__default.createElement(StatelessDatePickerBody, { key: "date-picker-body-left", cx: cx$1(css$V.fromPicker), ...from, onValueChange: (v) => onBodyValueChange(v, 'from'), onMonthChange: (m) => {
|
|
2994
3023
|
setMonth(m);
|
|
2995
3024
|
}, onViewChange: (v) => setView(v), filter: props.filter, isHoliday: props.isHoliday, renderDay: props.renderDay || renderDay, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'to' }),
|
|
2996
|
-
React__default.createElement(StatelessDatePickerBody, { key: "date-picker-body-right", cx: cx$1(css$
|
|
3025
|
+
React__default.createElement(StatelessDatePickerBody, { key: "date-picker-body-right", cx: cx$1(css$V.toPicker), ...to, onValueChange: (v) => onBodyValueChange(v, 'to'), onMonthChange: (m) => {
|
|
2997
3026
|
setMonth(m.subtract(1, 'month'));
|
|
2998
3027
|
}, onViewChange: (v) => setView(v), filter: props.filter, renderDay: props.renderDay || renderDay, isHoliday: props.isHoliday, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'from' }),
|
|
2999
3028
|
view !== 'DAY_SELECTION' && (React__default.createElement("div", { style: {
|
|
3000
3029
|
left: activeMonth === 'from' ? '50%' : undefined,
|
|
3001
3030
|
right: activeMonth === 'to' ? '50%' : undefined,
|
|
3002
|
-
}, className: css$
|
|
3031
|
+
}, className: css$V.blocker }))),
|
|
3003
3032
|
props.presets && renderPresets(props.presets)),
|
|
3004
3033
|
props.renderFooter && props.renderFooter()))));
|
|
3005
3034
|
}
|
|
@@ -3019,7 +3048,7 @@ const getDayCX = (day, selectedDate) => {
|
|
|
3019
3048
|
return [cx$1(inRange && uuiRangeDatePickerBody.inRange, isFirst && uuiRangeDatePickerBody.firstDayInRangeWrapper, !inRange && isFirst && uuiRangeDatePickerBody.lastDayInRangeWrapper, isLast && uuiRangeDatePickerBody.lastDayInRangeWrapper, !inRange && isLast && uuiRangeDatePickerBody.firstDayInRangeWrapper, (dayValue === fromValue || dayValue === toValue) && uuiDaySelection.selectedDay)];
|
|
3020
3049
|
};
|
|
3021
3050
|
|
|
3022
|
-
var css$
|
|
3051
|
+
var css$U = {"dropdown-container":"gBFgQM","dropdownContainer":"gBFgQM"};
|
|
3023
3052
|
|
|
3024
3053
|
const modifiers = [{
|
|
3025
3054
|
name: 'offset',
|
|
@@ -3063,7 +3092,7 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
3063
3092
|
}
|
|
3064
3093
|
};
|
|
3065
3094
|
const renderBody = (renderProps) => {
|
|
3066
|
-
return (React__default.createElement(DropdownContainer, { ...renderProps, cx: cx(css$
|
|
3095
|
+
return (React__default.createElement(DropdownContainer, { ...renderProps, cx: cx(css$U.dropdownContainer), shards: [targetRef], returnFocus: true },
|
|
3067
3096
|
React__default.createElement(FlexRow, null,
|
|
3068
3097
|
React__default.createElement(RangeDatePickerBody, { cx: cx(props.bodyCx), value: {
|
|
3069
3098
|
selectedDate: _value,
|
|
@@ -3087,51 +3116,24 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
3087
3116
|
}
|
|
3088
3117
|
const RangeDatePicker = /* @__PURE__ */React__default.forwardRef(RangeDatePickerComponent);
|
|
3089
3118
|
|
|
3090
|
-
var css$
|
|
3119
|
+
var css$T = {"root":"fByqef","blocker":"SyhrRR","marker":"VjCrz-","top":"biBnxy","bottom":"s5vTwL","left":"_4ByRE0","right":"MMl2-x","inside":"XS7sMO"};
|
|
3091
3120
|
|
|
3092
3121
|
function DropMarker(props) {
|
|
3093
3122
|
return props.isDndInProgress
|
|
3094
3123
|
? (React.createElement(React.Fragment, null,
|
|
3095
|
-
props.enableBlocker && React.createElement("div", { className: css$
|
|
3124
|
+
props.enableBlocker && React.createElement("div", { className: css$T.blocker }),
|
|
3096
3125
|
React.createElement("div", { className: cx([
|
|
3097
|
-
css$
|
|
3098
|
-
css$
|
|
3099
|
-
css$
|
|
3126
|
+
css$T.root,
|
|
3127
|
+
css$T.marker,
|
|
3128
|
+
css$T[props.position],
|
|
3100
3129
|
props?.cx,
|
|
3101
3130
|
]) })))
|
|
3102
3131
|
: null;
|
|
3103
3132
|
}
|
|
3104
3133
|
|
|
3105
|
-
var css$U = {"root":"_5yyIl6","line-height":"OhcYc1","lineHeight":"OhcYc1","font-size":"VKjIgU","fontSize":"VKjIgU"};
|
|
3106
|
-
|
|
3107
|
-
function applyTextMods(mods) {
|
|
3108
|
-
return [
|
|
3109
|
-
css$U.root,
|
|
3110
|
-
'uui-text',
|
|
3111
|
-
`uui-size-${mods.size || settings.text.sizes.default}`,
|
|
3112
|
-
(mods.size !== 'none' || mods.lineHeight) && css$U.lineHeight,
|
|
3113
|
-
(mods.size !== 'none' || mods.fontSize) && css$U.fontSize,
|
|
3114
|
-
`uui-color-${mods.color || 'primary'}`,
|
|
3115
|
-
`uui-font-weight-${mods.fontWeight || '400'}`,
|
|
3116
|
-
`uui-font-style-${mods.fontStyle || 'normal'}`,
|
|
3117
|
-
'uui-typography-inline',
|
|
3118
|
-
];
|
|
3119
|
-
}
|
|
3120
|
-
const Text = /* @__PURE__ */withMods(uuiComponents.Text, applyTextMods, (props) => {
|
|
3121
|
-
const style = props?.rawProps?.style || {};
|
|
3122
|
-
props.fontSize && (style['--uui-text-font-size'] = `${props.fontSize}px`);
|
|
3123
|
-
props.lineHeight && (style['--uui-text-line-height'] = `${props.lineHeight}px`);
|
|
3124
|
-
return {
|
|
3125
|
-
rawProps: {
|
|
3126
|
-
...props?.rawProps,
|
|
3127
|
-
style: style,
|
|
3128
|
-
},
|
|
3129
|
-
};
|
|
3130
|
-
});
|
|
3131
|
-
|
|
3132
3134
|
const RichTextView = /* @__PURE__ */withMods(uuiComponents.RichTextView, (mods) => ['uui-typography', `uui-typography-size-${mods.size || settings.richTextView.sizes.default}`]);
|
|
3133
3135
|
|
|
3134
|
-
var css$
|
|
3136
|
+
var css$S = {"modal":"IGxHwN","search-wrapper":"zxgdHy","searchWrapper":"zxgdHy","no-data":"blClNS","noData":"blClNS","type-search-to-load-size-24":"_2nRuY9","typeSearchToLoadSize24":"_2nRuY9"};
|
|
3135
3137
|
|
|
3136
3138
|
class DataPickerBody extends PickerBodyBase {
|
|
3137
3139
|
constructor() {
|
|
@@ -3152,7 +3154,7 @@ class DataPickerBody extends PickerBodyBase {
|
|
|
3152
3154
|
});
|
|
3153
3155
|
}
|
|
3154
3156
|
if (this.props.minCharsToSearch && search.length < this.props.minCharsToSearch) {
|
|
3155
|
-
return (React__default.createElement(FlexCell$1, { cx: css$
|
|
3157
|
+
return (React__default.createElement(FlexCell$1, { cx: css$S.noData, grow: 1, textAlign: "center" },
|
|
3156
3158
|
React__default.createElement(Text, { size: this.props.searchSize }, i18n.dataPickerBody.typeSearchToLoadMessage)));
|
|
3157
3159
|
}
|
|
3158
3160
|
if (this.props.rows.length === 0) {
|
|
@@ -3167,25 +3169,23 @@ class DataPickerBody extends PickerBodyBase {
|
|
|
3167
3169
|
}
|
|
3168
3170
|
// Default no record found message for 'NOT_FOUND' and "NO_RECORDS" reason
|
|
3169
3171
|
// TODO: make separate messages for 'NOT_FOUND' and "NO_RECORDS" reason
|
|
3170
|
-
return (React__default.createElement(FlexCell$1, { cx: css$
|
|
3172
|
+
return (React__default.createElement(FlexCell$1, { cx: css$S.noData, grow: 1, textAlign: "center" },
|
|
3171
3173
|
React__default.createElement(Text, { size: this.props.searchSize }, i18n.dataPickerBody.noRecordsMessage)));
|
|
3172
3174
|
}
|
|
3173
3175
|
}
|
|
3174
3176
|
render() {
|
|
3175
3177
|
const searchSize = this.getSearchSize();
|
|
3176
3178
|
return (React__default.createElement(React__default.Fragment, null,
|
|
3177
|
-
this.showSearch() && (React__default.createElement("div", { key: "search", className: cx$1(css$
|
|
3179
|
+
this.showSearch() && (React__default.createElement("div", { key: "search", className: cx$1(css$S.searchWrapper, 'uui-picker_input-body-search') },
|
|
3178
3180
|
React__default.createElement(FlexCell$1, { grow: 1 },
|
|
3179
3181
|
React__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' } })))),
|
|
3180
|
-
React__default.createElement(FlexRow, { key: "body", cx: cx$1('uui-picker_input-body', css$
|
|
3182
|
+
React__default.createElement(FlexRow, { key: "body", cx: cx$1('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
|
|
3181
3183
|
// 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
|
|
3182
3184
|
// we fix this state on next render and shouldn't show empty state.
|
|
3183
3185
|
? this.renderEmpty() : (React__default.createElement(VirtualList, { ...this.lens.toProps(), rows: this.props.rows, rawProps: this.props.rawProps, rowsCount: this.props.rowsCount, isLoading: this.props.isReloading })))));
|
|
3184
3186
|
}
|
|
3185
3187
|
}
|
|
3186
3188
|
|
|
3187
|
-
var css$S = {"footer":"KGxzzk"};
|
|
3188
|
-
|
|
3189
3189
|
function DataPickerFooterImpl(props) {
|
|
3190
3190
|
const { search, clearSelection, view, showSelected, selectionMode, isSearchTooShort, } = props;
|
|
3191
3191
|
const size = isMobile() ? settings.pickerInput.sizes.body.mobileFooterLinkButton : props.size;
|
|
@@ -3198,7 +3198,7 @@ function DataPickerFooterImpl(props) {
|
|
|
3198
3198
|
const isSearching = search?.length;
|
|
3199
3199
|
const hideFooter = (rowsCount === 0 && !hasSelection) || isSearching || (isSinglePicker && props.disableClear);
|
|
3200
3200
|
const showClear = !props.disableClear && (isSinglePicker ? true : (!view.selectAll || hasSelection));
|
|
3201
|
-
return !hideFooter && (React__default.createElement(FlexRow, { cx:
|
|
3201
|
+
return !hideFooter && (React__default.createElement(FlexRow, { cx: "uui-picker_input-footer" },
|
|
3202
3202
|
!isSinglePicker && !isSearchTooShort && ( // Show this switch only for multi mode and when some rows rendered
|
|
3203
3203
|
React__default.createElement(Switch, { size: settings.pickerInput.sizes.body.footerSwitchMap[props.size], value: showSelected.value, isDisabled: !hasSelection, onValueChange: showSelected.onValueChange, label: i18n.pickerInput.showOnlySelectedLabel })),
|
|
3204
3204
|
React__default.createElement(FlexSpacer, null),
|
|
@@ -3210,7 +3210,7 @@ function DataPickerFooterImpl(props) {
|
|
|
3210
3210
|
}
|
|
3211
3211
|
const DataPickerFooter = /* @__PURE__ */React__default.memo(DataPickerFooterImpl);
|
|
3212
3212
|
|
|
3213
|
-
var css$R = {"header":"
|
|
3213
|
+
var css$R = {"header":"yOLyhN","title":"aIm4pe","close":"mVWP-o"};
|
|
3214
3214
|
|
|
3215
3215
|
const DataPickerHeaderImpl = (props) => {
|
|
3216
3216
|
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
@@ -3220,11 +3220,11 @@ const DataPickerHeaderImpl = (props) => {
|
|
|
3220
3220
|
};
|
|
3221
3221
|
const DataPickerHeader = /* @__PURE__ */React__default.memo(DataPickerHeaderImpl);
|
|
3222
3222
|
|
|
3223
|
-
var css$Q = {"root":"
|
|
3223
|
+
var css$Q = {"root":"pi9YGt"};
|
|
3224
3224
|
|
|
3225
3225
|
const AvatarStack = /* @__PURE__ */withMods(AvatarStack$1, () => [css$Q.root]);
|
|
3226
3226
|
|
|
3227
|
-
var css$P = {"root":"
|
|
3227
|
+
var css$P = {"root":"fpnZAL"};
|
|
3228
3228
|
|
|
3229
3229
|
const DEFAULT_FILL = 'solid';
|
|
3230
3230
|
function applyBadgeMods(mods) {
|
|
@@ -3252,7 +3252,7 @@ const Badge = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
3252
3252
|
props.isDropdown && (React__default.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
3253
3253
|
});
|
|
3254
3254
|
|
|
3255
|
-
var css$O = {"root":"
|
|
3255
|
+
var css$O = {"root":"Yt8Evr"};
|
|
3256
3256
|
|
|
3257
3257
|
function applyTagMods(props) {
|
|
3258
3258
|
return [
|
|
@@ -3280,7 +3280,7 @@ const Tag = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
3280
3280
|
props.onClear && !props.isDisabled && (React__default.createElement(IconContainer, { cx: uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
3281
3281
|
});
|
|
3282
3282
|
|
|
3283
|
-
var css$N = {"root":"
|
|
3283
|
+
var css$N = {"root":"_7Ot-mi","page":"PZ7DG4","spacer":"NZicfb","mode-ghost":"_6z84Cd","modeGhost":"_6z84Cd"};
|
|
3284
3284
|
|
|
3285
3285
|
function Paginator(props) {
|
|
3286
3286
|
const renderPaginator = (params) => (React__default.createElement("nav", { role: "navigation", className: cx(css$N.root, 'uui-paginator', `uui-size-${props.size || settings.paginator.sizes.default}`), ...params.rawProps },
|
|
@@ -3297,14 +3297,14 @@ function Paginator(props) {
|
|
|
3297
3297
|
return React__default.createElement(Paginator$1, { ...props, render: renderPaginator });
|
|
3298
3298
|
}
|
|
3299
3299
|
|
|
3300
|
-
var css$M = {"root":"
|
|
3300
|
+
var css$M = {"root":"J2SEjp","progress-bar":"Ck-yOb","progressBar":"Ck-yOb","progressBar-indeterminate":"qMa9wO","progressBarIndeterminate":"qMa9wO","size-12":"zxphIO","size12":"zxphIO","size-18":"_2-KFDa","size18":"_2-KFDa","size-24":"GG7q1K","size24":"GG7q1K"};
|
|
3301
3301
|
|
|
3302
3302
|
const IndeterminateBar = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
3303
3303
|
return (React.createElement("div", { ref: ref, className: cx('uui-indeterminate_bar', props.cx, css$M.root, css$M[`size-${props.size || 12}`]) },
|
|
3304
3304
|
React.createElement("div", { className: cx(css$M.progressBar) })));
|
|
3305
3305
|
});
|
|
3306
3306
|
|
|
3307
|
-
var css$L = {"root":"
|
|
3307
|
+
var css$L = {"root":"_9m-Rsi","striped":"Ol6eI1","animate-stripes":"ICXgRv","animateStripes":"ICXgRv","size-12":"RJ8vf0","size12":"RJ8vf0","size-18":"ddhCyd","size18":"ddhCyd","size-24":"UevXrP","size24":"UevXrP"};
|
|
3308
3308
|
|
|
3309
3309
|
const DEFAULT_SIZE = '12';
|
|
3310
3310
|
function applyProgressBarMods(mods) {
|
|
@@ -3319,14 +3319,14 @@ const ProgressBar = /* @__PURE__ */withMods(uuiComponents.ProgressBar, applyProg
|
|
|
3319
3319
|
hideLabel: props.hideLabel || props.striped,
|
|
3320
3320
|
}));
|
|
3321
3321
|
|
|
3322
|
-
var css$K = {"root":"-
|
|
3322
|
+
var css$K = {"root":"p-9nRd"};
|
|
3323
3323
|
|
|
3324
3324
|
const IndicatorBar = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
3325
3325
|
const { progress } = props;
|
|
3326
3326
|
return progress || progress === 0 ? (React.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx(css$K.root, props.cx), hideLabel: true })) : (React.createElement(IndeterminateBar, { ref: ref, cx: cx(css$K.root, props.cx) }));
|
|
3327
3327
|
});
|
|
3328
3328
|
|
|
3329
|
-
var css$J = {"root":"
|
|
3329
|
+
var css$J = {"root":"EDtF30"};
|
|
3330
3330
|
|
|
3331
3331
|
const StatusIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
3332
3332
|
return (React__default.createElement("div", { ref: ref, className: cx([
|
|
@@ -3341,7 +3341,7 @@ const StatusIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
|
3341
3341
|
React__default.createElement("p", { className: "uui-status_indicator-caption" }, props.caption)));
|
|
3342
3342
|
});
|
|
3343
3343
|
|
|
3344
|
-
var css$I = {"drag-handle":"
|
|
3344
|
+
var css$I = {"drag-handle":"NV0C4h","dragHandle":"NV0C4h","icon-container":"mH80C-","iconContainer":"mH80C-"};
|
|
3345
3345
|
|
|
3346
3346
|
function DataRowAddons(props) {
|
|
3347
3347
|
const row = props.rowProps;
|
|
@@ -3362,15 +3362,13 @@ function DataRowAddons(props) {
|
|
|
3362
3362
|
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row), size: settings.dataTable.sizes.body.iconMap[props.size || settings.dataTable.sizes.body.row] }))))));
|
|
3363
3363
|
}
|
|
3364
3364
|
|
|
3365
|
-
var css$H = {"root":"
|
|
3365
|
+
var css$H = {"root":"hVuHx3","align-widgets-top":"cy5s5i","alignWidgetsTop":"cy5s5i","align-widgets-center":"OMIWVW","alignWidgetsCenter":"OMIWVW","icon-container":"elJGSL","iconContainer":"elJGSL","content-wrapper":"qSIYTw","contentWrapper":"qSIYTw","render-item":"sDf0R7","renderItem":"sDf0R7","icon-wrapper":"XxI2Dx","iconWrapper":"XxI2Dx","icon-default":"wZQcJy","iconDefault":"wZQcJy","selected-mark":"YbhmbW","selectedMark":"YbhmbW"};
|
|
3366
3366
|
|
|
3367
3367
|
function DataPickerCell(props) {
|
|
3368
3368
|
const ref = React.useRef();
|
|
3369
3369
|
let content;
|
|
3370
3370
|
if (props.rowProps.isLoading) {
|
|
3371
|
-
content = (
|
|
3372
|
-
// remove `css.loadingCell` after` removing `margin: 0 3px 3px 0` from `TextPlaceholder` `loadingWord` class styles.
|
|
3373
|
-
React.createElement(Text, { key: "t", size: props.size, cx: css$H.loadingCell }, settings.pickerInput.renderPlaceholder()));
|
|
3371
|
+
content = settings.pickerInput.renderPlaceholder({ rowSize: props.size });
|
|
3374
3372
|
}
|
|
3375
3373
|
else if (props.rowProps.isUnknown) {
|
|
3376
3374
|
content = (React.createElement(Text, { key: "t", size: props.size }, "Unknown"));
|
|
@@ -3402,7 +3400,7 @@ function DataPickerCell(props) {
|
|
|
3402
3400
|
getWrappedContent()));
|
|
3403
3401
|
}
|
|
3404
3402
|
|
|
3405
|
-
var css$G = {"picker-row":"
|
|
3403
|
+
var css$G = {"picker-row":"u4aVkO","pickerRow":"u4aVkO"};
|
|
3406
3404
|
|
|
3407
3405
|
class DataPickerRow extends React.Component {
|
|
3408
3406
|
constructor() {
|
|
@@ -3416,7 +3414,7 @@ class DataPickerRow extends React.Component {
|
|
|
3416
3414
|
}
|
|
3417
3415
|
}
|
|
3418
3416
|
|
|
3419
|
-
var css$F = {"done":"
|
|
3417
|
+
var css$F = {"done":"qo5cK-","container":"_3a7l-f"};
|
|
3420
3418
|
|
|
3421
3419
|
const PickerBodyMobileView = (props) => {
|
|
3422
3420
|
const isMobileView = isMobile();
|
|
@@ -3493,7 +3491,7 @@ const getHighlightedSearchMatches = (str, search) => {
|
|
|
3493
3491
|
return getDecoratedText(str, ranges);
|
|
3494
3492
|
};
|
|
3495
3493
|
|
|
3496
|
-
var css$E = {"root":"
|
|
3494
|
+
var css$E = {"root":"_7rG7WA","column-gap":"q7-a9Y","columnGap":"q7-a9Y","title":"t5nSV0","subtitle":"wO6EFG","disabled":"AW-HA-","multiline":"jRKUUg"};
|
|
3497
3495
|
|
|
3498
3496
|
function PickerItem(props) {
|
|
3499
3497
|
const { highlightSearchMatches = true, size, avatarUrl, isLoading, isDisabled, icon, } = props;
|
|
@@ -3514,7 +3512,7 @@ function getAvatarSize(size, isMultiline) {
|
|
|
3514
3512
|
return settings.pickerInput.sizes.body[isMultiline ? 'itemAvatarMultilineMap' : 'itemAvatarMap'][size];
|
|
3515
3513
|
}
|
|
3516
3514
|
|
|
3517
|
-
var css$D = {"sub-header-wrapper":"
|
|
3515
|
+
var css$D = {"sub-header-wrapper":"GCu3pr","subHeaderWrapper":"GCu3pr","switch":"h3IP4M","no-found-modal-container":"_6UyMS5","noFoundModalContainer":"_6UyMS5","no-found-modal-container-icon":"z1IFvc","noFoundModalContainerIcon":"z1IFvc","no-found-modal-container-text":"HMngP0","noFoundModalContainerText":"HMngP0"};
|
|
3518
3516
|
|
|
3519
3517
|
function PickerModal(props) {
|
|
3520
3518
|
const { view, selection, dataSourceStateLens, dataSourceState, getDataSourceState, getName, clearSelection, getRows, getListProps, getFooterProps, isSingleSelect, handleDataSourceValueChange, } = usePickerModal(props);
|
|
@@ -3569,7 +3567,7 @@ function PickerModal(props) {
|
|
|
3569
3567
|
React__default.createElement(ModalFooter, null, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
|
|
3570
3568
|
}
|
|
3571
3569
|
|
|
3572
|
-
var css$C = {"tooltip":"
|
|
3570
|
+
var css$C = {"tooltip":"MSxmuT"};
|
|
3573
3571
|
|
|
3574
3572
|
const PickerTogglerTag = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
3575
3573
|
const tagProps = {
|
|
@@ -3588,7 +3586,7 @@ const PickerTogglerTag = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
3588
3586
|
}
|
|
3589
3587
|
});
|
|
3590
3588
|
|
|
3591
|
-
var css$B = {"root":"
|
|
3589
|
+
var css$B = {"root":"pR1V4F"};
|
|
3592
3590
|
|
|
3593
3591
|
const defaultMode = EditMode.FORM;
|
|
3594
3592
|
function applyPickerTogglerMods(mods) {
|
|
@@ -3689,7 +3687,7 @@ function PickerInputComponent({ highlightSearchMatches = true, ...props }, ref)
|
|
|
3689
3687
|
}
|
|
3690
3688
|
const PickerInput = /* @__PURE__ */React__default.forwardRef(PickerInputComponent);
|
|
3691
3689
|
|
|
3692
|
-
var css$A = {"row":"
|
|
3690
|
+
var css$A = {"row":"_9kEmvi"};
|
|
3693
3691
|
|
|
3694
3692
|
function PickerListItem(props) {
|
|
3695
3693
|
let label;
|
|
@@ -3709,7 +3707,7 @@ function PickerListItem(props) {
|
|
|
3709
3707
|
return (React__default.createElement("div", { role: "option", "aria-selected": props.isSelectable ? props.isSelected : undefined, "aria-busy": props.isLoading, "aria-posinset": props.index + 1, ...(props.checkbox?.isVisible && { 'aria-checked': props.isChecked }), className: css$A.row }, component));
|
|
3710
3708
|
}
|
|
3711
3709
|
|
|
3712
|
-
var css$z = {"root":"
|
|
3710
|
+
var css$z = {"root":"CsiFxI"};
|
|
3713
3711
|
|
|
3714
3712
|
function PickerList(props) {
|
|
3715
3713
|
const { context, view, onlySelectedView, getName, getEntityName, appendLastSelected, getSelectedIdsArray, buildRowsList, getMaxDefaultItems, dataSourceState, getModalTogglerCaption, } = usePickerList(props);
|
|
@@ -3744,7 +3742,7 @@ function PickerList(props) {
|
|
|
3744
3742
|
}, selectedRows)));
|
|
3745
3743
|
}
|
|
3746
3744
|
|
|
3747
|
-
var css$y = {"root":"
|
|
3745
|
+
var css$y = {"root":"_2G7-G3","wrapper":"K6erF0","align-widgets-top":"xRcA-w","alignWidgetsTop":"xRcA-w","align-widgets-center":"b7hccc","alignWidgetsCenter":"b7hccc"};
|
|
3748
3746
|
|
|
3749
3747
|
function DataTableCell(initialProps) {
|
|
3750
3748
|
const props = { ...initialProps };
|
|
@@ -3752,7 +3750,7 @@ function DataTableCell(initialProps) {
|
|
|
3752
3750
|
props.addons = React.createElement(DataRowAddons, { size: props.size, ...props });
|
|
3753
3751
|
}
|
|
3754
3752
|
props.renderPlaceholder = props.renderPlaceholder
|
|
3755
|
-
|| (() =>
|
|
3753
|
+
|| (() => settings.dataTable.renderPlaceholder({ rowSize: props.size }));
|
|
3756
3754
|
props.renderUnknown = props.renderUnknown
|
|
3757
3755
|
|| (() => (React.createElement(Text, { key: "t", size: props.size }, "Unknown")));
|
|
3758
3756
|
props.renderTooltip = (tooltipProps) => React.createElement(Tooltip, { color: "critical", ...tooltipProps });
|
|
@@ -3792,7 +3790,7 @@ function DataTableCell(initialProps) {
|
|
|
3792
3790
|
return React.createElement(DataTableCell$1, { ...props });
|
|
3793
3791
|
}
|
|
3794
3792
|
|
|
3795
|
-
var css$x = {"root":"
|
|
3793
|
+
var css$x = {"root":"_8mMTJF"};
|
|
3796
3794
|
|
|
3797
3795
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
3798
3796
|
// 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.
|
|
@@ -3808,7 +3806,7 @@ const DataTableRow = /* @__PURE__ */withMods(DataTableRow$1, ({ borderBottom = t
|
|
|
3808
3806
|
];
|
|
3809
3807
|
}, () => propsMods);
|
|
3810
3808
|
|
|
3811
|
-
var css$w = {"sorting-panel-container":"
|
|
3809
|
+
var css$w = {"sorting-panel-container":"-So5mu","sortingPanelContainer":"-So5mu"};
|
|
3812
3810
|
|
|
3813
3811
|
const SortingPanelImpl = ({ sortDirection, onSort }) => {
|
|
3814
3812
|
const sortAsc = useCallback(() => onSort(sortDirection === 'asc' ? undefined : 'asc'), [onSort]);
|
|
@@ -3833,7 +3831,7 @@ const ColumnHeaderDropdownImpl = (props) => {
|
|
|
3833
3831
|
};
|
|
3834
3832
|
const ColumnHeaderDropdown = /* @__PURE__ */React__default.memo(ColumnHeaderDropdownImpl);
|
|
3835
3833
|
|
|
3836
|
-
var css$v = {"root":"
|
|
3834
|
+
var css$v = {"root":"aoh4sT","caption-wrapper":"vun-IB","captionWrapper":"vun-IB","sort-icon":"t-xDuI","sortIcon":"t-xDuI","dropdown-icon":"m-I--L","dropdownIcon":"m-I--L","infoIcon":"WYUAk6","resizable":"_4oMFME","align-right":"kZsKNe","alignRight":"kZsKNe","align-center":"GogNbi","alignCenter":"GogNbi","caption":"a9RE8C","truncate":"ynsfnu","upper-case":"XjZGda","upperCase":"XjZGda","checkbox":"_3yXegH","icon":"UHe-Qq","fold-all-icon":"e836zN","foldAllIcon":"e836zN","cell-tooltip":"f-yTYp","cellTooltip":"f-yTYp","resizing-marker":"CMslwb","resizingMarker":"CMslwb","pinned-right":"TIUp0C","pinnedRight":"TIUp0C","draggable":"uB07BQ","ghost":"eNGEcH","is-dragged-out":"crHVoi","isDraggedOut":"crHVoi","dnd-marker-left":"xSgsO5","dndMarkerLeft":"xSgsO5","dnd-marker-right":"_75hQuX","dndMarkerRight":"_75hQuX","cell-tooltip-wrapper":"IK6q9D","cellTooltipWrapper":"IK6q9D","cell-tooltip-text":"K0b6br","cellTooltipText":"K0b6br","tooltip-caption":"PWcQa2","tooltipCaption":"PWcQa2","tooltip-info":"HIpkaZ","tooltipInfo":"HIpkaZ"};
|
|
3837
3835
|
|
|
3838
3836
|
class DataTableHeaderCell extends React.Component {
|
|
3839
3837
|
constructor() {
|
|
@@ -3927,7 +3925,7 @@ class DataTableHeaderCell extends React.Component {
|
|
|
3927
3925
|
}
|
|
3928
3926
|
}
|
|
3929
3927
|
|
|
3930
|
-
var css$u = {"root":"
|
|
3928
|
+
var css$u = {"root":"ZTXKHS","caption-wrapper":"S2Fwqc","captionWrapper":"S2Fwqc","align-center":"jCb7zc","alignCenter":"jCb7zc","caption":"_3XYY6x","truncate":"jDlvRl","upper-case":"Za5Wm5","upperCase":"Za5Wm5","group-cell-tooltip":"wx7DAW","groupCellTooltip":"wx7DAW","group-cell-tooltip-wrapper":"BbrO1d","groupCellTooltipWrapper":"BbrO1d","group-cell-tooltip-text":"W1QLWx","groupCellTooltipText":"W1QLWx","tooltip-caption":"Ifp9ep","tooltipCaption":"Ifp9ep","tooltip-info":"QP5zWf","tooltipInfo":"QP5zWf"};
|
|
3931
3929
|
|
|
3932
3930
|
class DataTableHeaderGroupCell extends React.Component {
|
|
3933
3931
|
constructor() {
|
|
@@ -3967,7 +3965,7 @@ class DataTableHeaderGroupCell extends React.Component {
|
|
|
3967
3965
|
}
|
|
3968
3966
|
}
|
|
3969
3967
|
|
|
3970
|
-
var css$t = {"root":"
|
|
3968
|
+
var css$t = {"root":"_0FiXwC"};
|
|
3971
3969
|
|
|
3972
3970
|
const DataTableHeaderRow = /* @__PURE__ */withMods(DataTableHeaderRow$1, () => [css$t.root, 'uui-dt-vars'], (mods) => ({
|
|
3973
3971
|
renderCell: (props) => (React.createElement(DataTableHeaderCell, { ...props, size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key, columnsGap: mods.columnsGap })),
|
|
@@ -3980,7 +3978,7 @@ const UUI_FILTERS_PANEL_ADD_BUTTON_BODY = 'uui-filters-panel-add-button-body';
|
|
|
3980
3978
|
const UUI_FILTERS_PANEL_ITEM_BODY = 'uui-filters-panel-item-body';
|
|
3981
3979
|
const UUI_FILTERS_PANEL_ITEM_TOGGLER = 'uui-filters-panel-item-toggler';
|
|
3982
3980
|
|
|
3983
|
-
var css$s = {"root":"
|
|
3981
|
+
var css$s = {"root":"_2xwVnE","title-wrapper":"_8id1fg","titleWrapper":"_8id1fg","title":"d4Wg4C","text-wrapper":"dJqFJG","textWrapper":"dJqFJG","selection":"NTCfFC","postfix":"EP3szt","selected":"_4ZBWT2"};
|
|
3984
3982
|
|
|
3985
3983
|
const FilterPanelItemToggler = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
3986
3984
|
const togglerPickerOpened = (e) => {
|
|
@@ -4148,7 +4146,7 @@ function FilterRangeDatePickerBody(props) {
|
|
|
4148
4146
|
React__default.createElement(LinkButton, { isDisabled: !value.from && !value.to, caption: i18n.pickerModal.clearAllButton, onClick: () => onValueChange(defaultRangeValue) })))));
|
|
4149
4147
|
}
|
|
4150
4148
|
|
|
4151
|
-
var css$r = {"container":"
|
|
4149
|
+
var css$r = {"container":"_0lR-NW"};
|
|
4152
4150
|
|
|
4153
4151
|
function FilterNumericBody(props) {
|
|
4154
4152
|
const isInRangePredicate = props?.selectedPredicate === 'inRange' || props?.selectedPredicate === 'notInRange';
|
|
@@ -4244,7 +4242,7 @@ var SvgActionDeleteOutline = function SvgActionDeleteOutline(props, ref) {
|
|
|
4244
4242
|
};
|
|
4245
4243
|
var ForwardRef$a = /*#__PURE__*/forwardRef(SvgActionDeleteOutline);
|
|
4246
4244
|
|
|
4247
|
-
var css$q = {"header":"
|
|
4245
|
+
var css$q = {"header":"AIFBtD","removeButton":"HKSaaJ","with-search":"sWdoos","withSearch":"sWdoos"};
|
|
4248
4246
|
|
|
4249
4247
|
function useView(props, value) {
|
|
4250
4248
|
const forceUpdate = useForceUpdate();
|
|
@@ -4550,7 +4548,7 @@ function FiltersToolbarImpl(props) {
|
|
|
4550
4548
|
}
|
|
4551
4549
|
const FiltersPanel = /* @__PURE__ */React__default.memo(FiltersToolbarImpl);
|
|
4552
4550
|
|
|
4553
|
-
var css$p = {"divider":"
|
|
4551
|
+
var css$p = {"divider":"wbepyO","dropdownDeleteIcon":"nFEOUi","presetsWrapper":"CigcRw","addPresetContainer":"_2u0apK","dropContainer":"_5kVtOx"};
|
|
4554
4552
|
|
|
4555
4553
|
var _path$9;
|
|
4556
4554
|
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); }
|
|
@@ -4631,7 +4629,7 @@ var SvgContentLinkOutline = function SvgContentLinkOutline(props, ref) {
|
|
|
4631
4629
|
};
|
|
4632
4630
|
var ForwardRef$5 = /*#__PURE__*/forwardRef(SvgContentLinkOutline);
|
|
4633
4631
|
|
|
4634
|
-
var css$o = {"delete-button":"
|
|
4632
|
+
var css$o = {"delete-button":"J2nhYK","deleteButton":"J2nhYK","tab-button":"GHD3ZD","tabButton":"GHD3ZD","targetOpen":"GgWP4f"};
|
|
4635
4633
|
|
|
4636
4634
|
function PresetActionsDropdown(props) {
|
|
4637
4635
|
const { uuiNotifications } = useUuiContext();
|
|
@@ -4698,7 +4696,7 @@ function PresetActionsDropdown(props) {
|
|
|
4698
4696
|
return (React__default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end", modifiers: [{ name: 'offset', options: { offset: [0, 22] } }] }));
|
|
4699
4697
|
}
|
|
4700
4698
|
|
|
4701
|
-
var css$n = {"preset-input-cell":"
|
|
4699
|
+
var css$n = {"preset-input-cell":"t6wwKk","presetInputCell":"t6wwKk","preset-input":"-FBVTO","presetInput":"-FBVTO"};
|
|
4702
4700
|
|
|
4703
4701
|
const UUI_PRESETS_PANEL_ADD_BUTTON = 'uui-presets-panel-add-button';
|
|
4704
4702
|
const UUI_PRESETS_PANEL_MORE_BUTTON = 'uui-presets-panel-more-button';
|
|
@@ -4730,7 +4728,7 @@ function PresetInput(props) {
|
|
|
4730
4728
|
React__default.createElement(TextInput, { cx: css$n.presetInput, onValueChange: setPresetCaption, value: presetCaption, onCancel: cancelActionHandler, onAccept: acceptActionHandler, onBlur: newPresetOnBlurHandler, autoFocus: true, maxLength: 50, isReadonly: readonly })));
|
|
4731
4729
|
}
|
|
4732
4730
|
|
|
4733
|
-
var css$m = {"preset":"
|
|
4731
|
+
var css$m = {"preset":"jg5qkb","activePreset":"_3OuXH-"};
|
|
4734
4732
|
|
|
4735
4733
|
function Preset(props) {
|
|
4736
4734
|
const [isRenamePreset, setIsRenamePreset] = useState(false);
|
|
@@ -4856,7 +4854,7 @@ const useColumnsWithFilters = (initialColumns, filters) => {
|
|
|
4856
4854
|
return columns;
|
|
4857
4855
|
};
|
|
4858
4856
|
|
|
4859
|
-
var css$l = {"unpin-icon":"
|
|
4857
|
+
var css$l = {"unpin-icon":"UKWcoT","unpinIcon":"UKWcoT","pin-toggler-icon":"XwUPLl","pinTogglerIcon":"XwUPLl"};
|
|
4860
4858
|
|
|
4861
4859
|
function PinIconButton(props) {
|
|
4862
4860
|
const i18nLocal = i18n.tables.columnsConfigurationModal;
|
|
@@ -4898,7 +4896,7 @@ function getUnpinIcon(params) {
|
|
|
4898
4896
|
}
|
|
4899
4897
|
}
|
|
4900
4898
|
|
|
4901
|
-
var css$k = {"row-wrapper":"
|
|
4899
|
+
var css$k = {"row-wrapper":"q6dLUk","rowWrapper":"q6dLUk","pin-icon-button":"zKg25p","pinIconButton":"zKg25p","not-pinned":"Ri72oT","notPinned":"Ri72oT","checkbox":"MNKM4o","drag-handle":"_0enX3w","dragHandle":"_0enX3w","dnd-disabled":"_1UWube","dndDisabled":"_1UWube"};
|
|
4902
4900
|
|
|
4903
4901
|
const ColumnRow = /* @__PURE__ */React.memo(function ColumnRow(props) {
|
|
4904
4902
|
const { column } = props;
|
|
@@ -4921,7 +4919,7 @@ const ColumnRow = /* @__PURE__ */React.memo(function ColumnRow(props) {
|
|
|
4921
4919
|
return (React.createElement(DndActor, { key: column.key, srcData: isDndAllowed && data, dstData: data, canAcceptDrop: onCanAcceptDrop, onDrop: onDrop, render: renderContent }));
|
|
4922
4920
|
});
|
|
4923
4921
|
|
|
4924
|
-
var css$j = {"root":"
|
|
4922
|
+
var css$j = {"root":"wWu7ih","main-panel":"_-0whJe","mainPanel":"_-0whJe","group":"LyvRei","group-title":"_5blGby","groupTitle":"_5blGby","group-items":"gPrAnX","groupItems":"gPrAnX","no-data":"nsVsuM","noData":"nsVsuM","no-data-title":"Qtc1LE","noDataTitle":"Qtc1LE","no-data-sub-title":"zpa63B","noDataSubTitle":"zpa63B","h-divider":"ul5Rhr","hDivider":"ul5Rhr","search-area":"_96ITee","searchArea":"_96ITee","subgroup-accordion":"iMrfW4","subgroupAccordion":"iMrfW4","subgroup":"x8ZIJf","subgroup-title":"XwNVoj","subgroupTitle":"XwNVoj"};
|
|
4925
4923
|
|
|
4926
4924
|
const renderGroupTitle = (title, amount) => (React.createElement(FlexRow, { cx: css$j.group },
|
|
4927
4925
|
React.createElement(Text, { size: "none", cx: css$j.groupTitle }, title),
|
|
@@ -5023,7 +5021,7 @@ const getChildrenAndRest = (row, rows) => {
|
|
|
5023
5021
|
return [children, rest];
|
|
5024
5022
|
};
|
|
5025
5023
|
|
|
5026
|
-
var css$i = {"listContainer":"
|
|
5024
|
+
var css$i = {"listContainer":"Ohf2DJ","header":"gki5Y-","group":"qsTt5o","stickyHeader":"X-L-LF"};
|
|
5027
5025
|
|
|
5028
5026
|
function DataRowsGroup({ row, childRows, renderRow, top = 1, }) {
|
|
5029
5027
|
const rowRef = useRef();
|
|
@@ -5063,7 +5061,7 @@ function DataRowsContainer({ estimatedHeight, listContainerRef, offsetY, rows, r
|
|
|
5063
5061
|
React__default.createElement(DataRowsGroups, { rows: rows, renderRow: renderRow, top: headerRef?.current?.clientHeight }))));
|
|
5064
5062
|
}
|
|
5065
5063
|
|
|
5066
|
-
var css$h = {"root":"
|
|
5064
|
+
var css$h = {"root":"o68xlZ","sticky-header":"_1gvsul","stickyHeader":"_1gvsul","no-results":"qJqicE","noResults":"qJqicE","icon":"TEZxvv","title":"u18FGj"};
|
|
5067
5065
|
|
|
5068
5066
|
function DataTable(props) {
|
|
5069
5067
|
const { uuiModals } = useUuiContext();
|
|
@@ -5112,9 +5110,9 @@ function DataTable(props) {
|
|
|
5112
5110
|
} }))));
|
|
5113
5111
|
}
|
|
5114
5112
|
|
|
5115
|
-
var css$g = {"root":"
|
|
5113
|
+
var css$g = {"root":"_3JV-kS"};
|
|
5116
5114
|
|
|
5117
|
-
var css$f = {"root":"
|
|
5115
|
+
var css$f = {"root":"G4NIy8","burger-content":"AfuBQW","burgerContent":"AfuBQW"};
|
|
5118
5116
|
|
|
5119
5117
|
var _path$3;
|
|
5120
5118
|
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); }
|
|
@@ -5157,7 +5155,7 @@ var SvgNavigationArrowDownOutline = function SvgNavigationArrowDownOutline(props
|
|
|
5157
5155
|
};
|
|
5158
5156
|
var ForwardRef$2 = /*#__PURE__*/forwardRef(SvgNavigationArrowDownOutline);
|
|
5159
5157
|
|
|
5160
|
-
var css$e = {"root":"
|
|
5158
|
+
var css$e = {"root":"eKDLfI","button-primary":"LEprLp","buttonPrimary":"LEprLp","button-secondary":"O9KZLQ","buttonSecondary":"O9KZLQ","hasIcon":"suOmTG","dropdown":"VnK3iv"};
|
|
5161
5159
|
|
|
5162
5160
|
const BurgerButton = /* @__PURE__ */withMods(Button$1, (props) => [
|
|
5163
5161
|
css$e.root,
|
|
@@ -5168,13 +5166,13 @@ const BurgerButton = /* @__PURE__ */withMods(Button$1, (props) => [
|
|
|
5168
5166
|
props.icon && css$e.hasIcon,
|
|
5169
5167
|
], () => ({ dropdownIcon: ForwardRef$2, dropdownIconPosition: 'left', role: 'menuitem' }));
|
|
5170
5168
|
|
|
5171
|
-
var css$d = {"search-input":"
|
|
5169
|
+
var css$d = {"search-input":"Yai-Mu","searchInput":"Yai-Mu"};
|
|
5172
5170
|
|
|
5173
5171
|
function BurgerSearch(props) {
|
|
5174
5172
|
return (React.createElement(TextInput$1, { cx: cx(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 }));
|
|
5175
5173
|
}
|
|
5176
5174
|
|
|
5177
|
-
var css$c = {"root":"
|
|
5175
|
+
var css$c = {"root":"YB-Dx5","group-header":"wjMByE","groupHeader":"wjMByE","group-name":"_0pdhml","groupName":"_0pdhml","line":"x0y6QI"};
|
|
5178
5176
|
|
|
5179
5177
|
function BurgerGroupHeader(props) {
|
|
5180
5178
|
return (React.createElement("div", { className: cx(css$c.root, css$c.groupHeader, 'uui-burger-group-header') },
|
|
@@ -5182,7 +5180,7 @@ function BurgerGroupHeader(props) {
|
|
|
5182
5180
|
React.createElement("span", { className: css$c.groupName }, props.caption)));
|
|
5183
5181
|
}
|
|
5184
5182
|
|
|
5185
|
-
var css$b = {"root":"
|
|
5183
|
+
var css$b = {"root":"Hy79cM","type-primary":"_2hIFjT","typePrimary":"_2hIFjT","type-secondary":"mCdEKZ","typeSecondary":"mCdEKZ"};
|
|
5186
5184
|
|
|
5187
5185
|
const MainMenuButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
5188
5186
|
const { type, ...clickableProps } = props;
|
|
@@ -5204,7 +5202,7 @@ const MainMenuButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
5204
5202
|
props.isDropdown && (React.createElement(IconContainer, { icon: ForwardRef$Q, flipY: props.isOpen }))));
|
|
5205
5203
|
});
|
|
5206
5204
|
|
|
5207
|
-
var css$a = {"dropdown-body":"
|
|
5205
|
+
var css$a = {"dropdown-body":"gUNO9k","dropdownBody":"gUNO9k"};
|
|
5208
5206
|
|
|
5209
5207
|
class MainMenuDropdown extends React.Component {
|
|
5210
5208
|
render() {
|
|
@@ -5262,12 +5260,12 @@ var SvgNavigationGlobalMenuOutlineOutline = function SvgNavigationGlobalMenuOutl
|
|
|
5262
5260
|
};
|
|
5263
5261
|
var ForwardRef$1 = /*#__PURE__*/forwardRef(SvgNavigationGlobalMenuOutlineOutline);
|
|
5264
5262
|
|
|
5265
|
-
var css$9 = {"global-menu-btn":"
|
|
5263
|
+
var css$9 = {"global-menu-btn":"Jc5WmT","globalMenuBtn":"Jc5WmT","global-menu-icon":"J8wT2b","globalMenuIcon":"J8wT2b"};
|
|
5266
5264
|
|
|
5267
5265
|
const GlobalMenu = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement("button", { ref: ref, id: "global_menu_toggle", className: cx(css$9.globalMenuBtn, props.cx), ...props.rawProps },
|
|
5268
5266
|
React.createElement(IconContainer, { size: 36, icon: ForwardRef$1, cx: css$9.globalMenuIcon }))));
|
|
5269
5267
|
|
|
5270
|
-
var css$8 = {"container":"
|
|
5268
|
+
var css$8 = {"container":"LqAAYo","open":"cePpc6","folding-arrow":"HWFgbl","foldingArrow":"HWFgbl"};
|
|
5271
5269
|
|
|
5272
5270
|
const MainMenuAvatar = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement("button", { ref: ref, className: cx(css$8.container, props.isDropdown && css$8.dropdown, props.isOpen && css$8.open, props.onClick && uuiMarkers.clickable, props.cx), onClick: props.onClick, ...props.rawProps },
|
|
5273
5271
|
React.createElement(Avatar, { size: "36", img: props.avatarUrl }),
|
|
@@ -5275,15 +5273,15 @@ const MainMenuAvatar = /* @__PURE__ */React.forwardRef((props, ref) => (React.cr
|
|
|
5275
5273
|
props.isDropdown && (React.createElement("div", null,
|
|
5276
5274
|
React.createElement(IconContainer, { size: 18, icon: ForwardRef$Q, flipY: props.isOpen, cx: css$8.foldingArrow }))))));
|
|
5277
5275
|
|
|
5278
|
-
var css$7 = {"search-input":"
|
|
5276
|
+
var css$7 = {"search-input":"_5JrvyS","searchInput":"_5JrvyS"};
|
|
5279
5277
|
|
|
5280
5278
|
const MainMenuSearch = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement(IEditableDebouncer, { ...props, render: (iEditable) => (React.createElement(TextInput$1, { iconPosition: "left", icon: ForwardRef$N, cancelIcon: props.value?.length > 0 && ForwardRef$R, ...props, ...iEditable, ref: ref, cx: cx$1(css$7.searchInput, props.cx), ...props.rawProps })) })));
|
|
5281
5279
|
|
|
5282
|
-
var css$6 = {"container":"
|
|
5280
|
+
var css$6 = {"container":"_8UU8U5"};
|
|
5283
5281
|
|
|
5284
5282
|
const MainMenuIcon = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement(IconButton, { ref: ref, icon: props.icon, cx: cx$1(props.cx, css$6.container), ...props })));
|
|
5285
5283
|
|
|
5286
|
-
var css$5 = {"root":"
|
|
5284
|
+
var css$5 = {"root":"g-2Z1Y"};
|
|
5287
5285
|
|
|
5288
5286
|
const Anchor = /* @__PURE__ */withMods(Anchor$1, () => [css$5.root]);
|
|
5289
5287
|
|
|
@@ -5341,7 +5339,7 @@ var SvgFileCloudUploadFill = function SvgFileCloudUploadFill(props, ref) {
|
|
|
5341
5339
|
};
|
|
5342
5340
|
var ForwardRef = /*#__PURE__*/forwardRef(SvgFileCloudUploadFill);
|
|
5343
5341
|
|
|
5344
|
-
var css$4 = {"root":"
|
|
5342
|
+
var css$4 = {"root":"fjS0RC","drop-start":"wmMCbJ","dropStart":"wmMCbJ","drop-over":"_8dqOuk","dropOver":"_8dqOuk","link":"_89UJQg","drop-area":"_3ku-V7","dropArea":"_3ku-V7","drop-caption":"Szipkv","dropCaption":"Szipkv","icon-blue":"KnvtZK","iconBlue":"KnvtZK"};
|
|
5345
5343
|
|
|
5346
5344
|
function DropSpot(props) {
|
|
5347
5345
|
const getInfoText = typeof props.infoText === 'string'
|
|
@@ -5359,7 +5357,7 @@ function DropSpot(props) {
|
|
|
5359
5357
|
return React.createElement(DropSpot$1, { render: renderAttachmentArea, onFilesDropped: props.onUploadFiles });
|
|
5360
5358
|
}
|
|
5361
5359
|
|
|
5362
|
-
var css$3 = {"root":"
|
|
5360
|
+
var css$3 = {"root":"_0m7OvC"};
|
|
5363
5361
|
|
|
5364
5362
|
const SvgCircleProgress = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
5365
5363
|
const outsetRadius = props.size / 2 - 1;
|
|
@@ -5370,7 +5368,7 @@ const SvgCircleProgress = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
5370
5368
|
React.createElement("circle", { strokeWidth: 1, fill: "transparent", r: outsetRadius, cx: props.size / 2, cy: props.size / 2 })));
|
|
5371
5369
|
});
|
|
5372
5370
|
|
|
5373
|
-
var css$2 = {"root":"
|
|
5371
|
+
var css$2 = {"root":"ApjZSq","file-name":"VZpHYw","fileName":"VZpHYw","default-color":"_92CooI","defaultColor":"_92CooI","doc-color":"_-32ZyZ","docColor":"_-32ZyZ","xls-color":"KAjwIA","xlsColor":"KAjwIA","pdf-color":"kQ6vSP","pdfColor":"kQ6vSP","movie-color":"oRwMtv","movieColor":"oRwMtv","img-color":"hEToDl","imgColor":"hEToDl","mov-color":"vUiEhb","movColor":"vUiEhb","error-block":"U1voCn","errorBlock":"U1voCn","icons-block":"oVCTRi","iconsBlock":"oVCTRi"};
|
|
5374
5372
|
|
|
5375
5373
|
const FileCard = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
5376
5374
|
const [isLoadingShow, setIsLoadingShow] = React.useState(true);
|
|
@@ -5489,7 +5487,7 @@ const getErrorPageConfig = () => ({
|
|
|
5489
5487
|
},
|
|
5490
5488
|
});
|
|
5491
5489
|
|
|
5492
|
-
var css$1 = {"container":"
|
|
5490
|
+
var css$1 = {"container":"ARP6Ym"};
|
|
5493
5491
|
|
|
5494
5492
|
const ErrorPage = (props) => {
|
|
5495
5493
|
const isMobileScreen = isMobile();
|
|
@@ -5501,7 +5499,7 @@ const ErrorPage = (props) => {
|
|
|
5501
5499
|
props?.supportLink && React__default.createElement("div", { className: "uui-error-support-link" }, props?.supportLink))));
|
|
5502
5500
|
};
|
|
5503
5501
|
|
|
5504
|
-
var css = {"recovery-spinner":"
|
|
5502
|
+
var css = {"recovery-spinner":"YXzTqe","recoverySpinner":"YXzTqe","recovery-message":"CIlZL2","recoveryMessage":"CIlZL2","modal-blocker":"FWOIZd","modalBlocker":"FWOIZd","modalFadeIn":"wOpqui"};
|
|
5505
5503
|
|
|
5506
5504
|
function ErrorHandler(props) {
|
|
5507
5505
|
const { uuiNotifications, uuiModals, uuiApi } = useUuiContext();
|