@epam/uui 5.13.3-beta.1 → 5.13.3-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/styles/inputs.scss +4 -4
- package/components/inputs/MultiSwitch.d.ts +4 -9
- package/components/inputs/MultiSwitch.d.ts.map +1 -1
- package/components/inputs/RadioInput.d.ts +6 -7
- package/components/inputs/RadioInput.d.ts.map +1 -1
- package/components/layout/Blocker.d.ts +2 -2
- package/components/layout/Blocker.d.ts.map +1 -1
- package/components/overlays/Tooltip.d.ts +4 -1
- package/components/overlays/Tooltip.d.ts.map +1 -1
- package/components/pickers/DataPickerBody.d.ts +3 -3
- package/components/pickers/DataPickerBody.d.ts.map +1 -1
- package/components/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/DataTable.d.ts +3 -1
- package/components/tables/DataTable.d.ts.map +1 -1
- package/components/tables/DataTableCell.d.ts.map +1 -1
- package/components/tables/DataTableRow.d.ts +5 -3
- package/components/tables/DataTableRow.d.ts.map +1 -1
- package/components/tables/types.d.ts +0 -2
- package/components/tables/types.d.ts.map +1 -1
- package/components/typography/Text.d.ts +5 -5
- package/components/typography/Text.d.ts.map +1 -1
- package/index.esm.js +415 -408
- package/index.esm.js.map +1 -1
- package/index.js +414 -407
- package/index.js.map +1 -1
- package/package.json +5 -5
- package/settings.d.ts +18 -4
- package/settings.d.ts.map +1 -1
- package/stats.html +1 -1
- package/styles.css +1569 -1581
- package/styles.css.map +1 -1
package/index.js
CHANGED
|
@@ -182,7 +182,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
182
182
|
xmlns: "http://www.w3.org/2000/svg",
|
|
183
183
|
ref: ref
|
|
184
184
|
}, props), /*#__PURE__*/React__namespace.createElement("g", {
|
|
185
|
-
clipPath: "url(#
|
|
185
|
+
clipPath: "url(#00v3wu9hmpw9hsfbr_a)"
|
|
186
186
|
}, _path$J || (_path$J = /*#__PURE__*/React__namespace.createElement("path", {
|
|
187
187
|
d: "M150.585 1.535C49.483-11.495 27.481 61.805 45.725 97.481c10.581 20.69-39.64 70.792 17.744 81.468 27.538 5.123 36-13.341 62.433-10.655 35.4 3.6 148.167-4.73 88.349-78.915-31.713-39.335 1.026-79.506-63.666-87.844Z",
|
|
188
188
|
fill: "#F5F6FA"
|
|
@@ -203,7 +203,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
203
203
|
d: "M86.786 22.982c-2.55 0-4.965 2.07-4.965 4.552V120.6c0 2.484 2.4 4.572 4.965 4.572h88.101c2.582 0 4.986-2.089 4.986-4.572V27.534c0-2.464-2.418-4.552-4.986-4.552h-88.1Zm-5.793 4.552c0-3.022 2.874-5.38 5.793-5.38h88.101c2.935 0 5.814 2.374 5.814 5.38V120.6c0 3.021-2.86 5.4-5.814 5.4h-88.1c-2.94 0-5.794-2.381-5.794-5.4V27.534Z",
|
|
204
204
|
fill: "#1D1E26"
|
|
205
205
|
})), /*#__PURE__*/React__namespace.createElement("mask", {
|
|
206
|
-
id: "
|
|
206
|
+
id: "00v3wuw379j41cyf_b",
|
|
207
207
|
style: {
|
|
208
208
|
maskType: "alpha"
|
|
209
209
|
},
|
|
@@ -216,7 +216,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
216
216
|
d: "M174.887 125.586h-88.1c-2.752 0-5.38-2.234-5.38-4.986V27.534c0-2.752 2.644-4.966 5.38-4.966h88.1c2.752 0 5.4 2.23 5.4 4.966V120.6c0 2.752-2.632 4.986-5.4 4.986Z",
|
|
217
217
|
fill: "#9BDEFF"
|
|
218
218
|
}))), _g || (_g = /*#__PURE__*/React__namespace.createElement("g", {
|
|
219
|
-
mask: "url(#
|
|
219
|
+
mask: "url(#00v3wuw379j41cyf_b)",
|
|
220
220
|
fillRule: "evenodd",
|
|
221
221
|
clipRule: "evenodd"
|
|
222
222
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -302,7 +302,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
302
302
|
d: "M24.73 96.184a.414.414 0 0 1 .581.06l48.646 59.751a.413.413 0 1 1-.642.523L24.67 96.766a.414.414 0 0 1 .06-.582Z",
|
|
303
303
|
fill: "#fff"
|
|
304
304
|
}))), _defs || (_defs = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
305
|
-
id: "
|
|
305
|
+
id: "00v3wu9hmpw9hsfbr_a"
|
|
306
306
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
307
307
|
fill: "#fff",
|
|
308
308
|
transform: "translate(.552)",
|
|
@@ -859,6 +859,57 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
|
859
859
|
};
|
|
860
860
|
var ForwardRef$b = /*#__PURE__*/React.forwardRef(SvgSearchWithBackground);
|
|
861
861
|
|
|
862
|
+
var css$1x = {"root":"lT8il7","uui-spinner":"Ltp-Yo","uuiSpinner":"Ltp-Yo"};
|
|
863
|
+
|
|
864
|
+
function applySpinnerMods() {
|
|
865
|
+
return [css$1x.root, 'uui-spinner'];
|
|
866
|
+
}
|
|
867
|
+
const Spinner = /* @__PURE__ */uuiCore.withMods(uuiComponents.Spinner, applySpinnerMods);
|
|
868
|
+
|
|
869
|
+
var css$1w = {"root":"J6pmRG","loading-word":"syuJlZ","loadingWord":"syuJlZ","animated-loading":"LN1aNS","animatedLoading":"LN1aNS","skeleton_loading":"M7NS6f","skeletonLoading":"M7NS6f"};
|
|
870
|
+
|
|
871
|
+
const TextPlaceholder = (props) => {
|
|
872
|
+
const pattern = ' ';
|
|
873
|
+
const text = React__namespace.useMemo(() => {
|
|
874
|
+
const words = [];
|
|
875
|
+
for (let i = 0; i < (props.wordsCount || 1); i++) {
|
|
876
|
+
const lengthWord = Math.floor(Math.random() * 10 + 8);
|
|
877
|
+
words.push(pattern.repeat(lengthWord));
|
|
878
|
+
}
|
|
879
|
+
return words;
|
|
880
|
+
}, [props.wordsCount]);
|
|
881
|
+
return (React__namespace.createElement("div", { "aria-busy": true, className: cx__default.default(css$1w.root, 'uui-text-placeholder'), ...props.rawProps }, text.map((it, index) => (React__namespace.createElement("span", { key: index, className: cx__default.default([
|
|
882
|
+
props.cx, css$1w.loadingWord, !props.isNotAnimated && css$1w.animatedLoading,
|
|
883
|
+
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
884
|
+
};
|
|
885
|
+
|
|
886
|
+
var css$1v = {"root":"ylDE5V","line-height":"m-6511","lineHeight":"m-6511","font-size":"xpHY2c","fontSize":"xpHY2c"};
|
|
887
|
+
|
|
888
|
+
function applyTextMods(mods) {
|
|
889
|
+
return [
|
|
890
|
+
css$1v.root,
|
|
891
|
+
'uui-text',
|
|
892
|
+
`uui-size-${mods.size || settings.text.sizes.default}`,
|
|
893
|
+
(mods.size !== 'none' || mods.lineHeight) && css$1v.lineHeight,
|
|
894
|
+
(mods.size !== 'none' || mods.fontSize) && css$1v.fontSize,
|
|
895
|
+
`uui-color-${mods.color || 'primary'}`,
|
|
896
|
+
`uui-font-weight-${mods.fontWeight || '400'}`,
|
|
897
|
+
`uui-font-style-${mods.fontStyle || 'normal'}`,
|
|
898
|
+
'uui-typography-inline',
|
|
899
|
+
];
|
|
900
|
+
}
|
|
901
|
+
const Text = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Text, applyTextMods, (props) => {
|
|
902
|
+
const style = props?.rawProps?.style || {};
|
|
903
|
+
props.fontSize && (style['--uui-text-font-size'] = `${props.fontSize}px`);
|
|
904
|
+
props.lineHeight && (style['--uui-text-line-height'] = `${props.lineHeight}px`);
|
|
905
|
+
return {
|
|
906
|
+
rawProps: {
|
|
907
|
+
...props?.rawProps,
|
|
908
|
+
style: style,
|
|
909
|
+
},
|
|
910
|
+
};
|
|
911
|
+
});
|
|
912
|
+
|
|
862
913
|
const accordionSettings = {
|
|
863
914
|
icons: {
|
|
864
915
|
dropdownIcon: ForwardRef$Q,
|
|
@@ -920,6 +971,8 @@ const countIndicatorSettings = {
|
|
|
920
971
|
},
|
|
921
972
|
};
|
|
922
973
|
const dataTableSettings = {
|
|
974
|
+
renderPlaceholder: (props) => React__namespace.default.createElement(Text, { size: props.rowSize },
|
|
975
|
+
React__namespace.default.createElement(TextPlaceholder, null)),
|
|
923
976
|
icons: {
|
|
924
977
|
emptyTable: ForwardRef$J,
|
|
925
978
|
header: {
|
|
@@ -1107,6 +1160,8 @@ const paginatorSettings = {
|
|
|
1107
1160
|
},
|
|
1108
1161
|
};
|
|
1109
1162
|
const pickerInputSettings = {
|
|
1163
|
+
renderPlaceholder: (props) => React__namespace.default.createElement(Text, { size: props.rowSize },
|
|
1164
|
+
React__namespace.default.createElement(TextPlaceholder, null)),
|
|
1110
1165
|
icons: {
|
|
1111
1166
|
toggler: {
|
|
1112
1167
|
clearIcon: ForwardRef$R,
|
|
@@ -1173,6 +1228,9 @@ const pickerInputSettings = {
|
|
|
1173
1228
|
mobileFooterLinkButton: '48',
|
|
1174
1229
|
mobileRow: '48',
|
|
1175
1230
|
mobileSearchInput: '48',
|
|
1231
|
+
getSearchSize: ({ pickerSize }) => {
|
|
1232
|
+
return pickerSize;
|
|
1233
|
+
},
|
|
1176
1234
|
},
|
|
1177
1235
|
},
|
|
1178
1236
|
};
|
|
@@ -1271,11 +1329,15 @@ const textInputSettings = {
|
|
|
1271
1329
|
default: '36',
|
|
1272
1330
|
},
|
|
1273
1331
|
};
|
|
1332
|
+
const blockerSettings = {
|
|
1333
|
+
renderSpinner: () => React__namespace.default.createElement(Spinner, null),
|
|
1334
|
+
};
|
|
1274
1335
|
const settings = {
|
|
1275
1336
|
accordion: accordionSettings,
|
|
1276
1337
|
alert: alertSettings,
|
|
1277
1338
|
badge: badgeSettings,
|
|
1278
1339
|
button: buttonSettings,
|
|
1340
|
+
blocker: blockerSettings,
|
|
1279
1341
|
checkbox: checkboxSettings,
|
|
1280
1342
|
countIndicator: countIndicatorSettings,
|
|
1281
1343
|
dataTable: dataTableSettings,
|
|
@@ -1305,11 +1367,11 @@ const settings = {
|
|
|
1305
1367
|
textInput: textInputSettings,
|
|
1306
1368
|
};
|
|
1307
1369
|
|
|
1308
|
-
var css$
|
|
1370
|
+
var css$1u = {"root":"RGCmoj"};
|
|
1309
1371
|
|
|
1310
1372
|
function applyButtonMods(mods) {
|
|
1311
1373
|
return [
|
|
1312
|
-
css$
|
|
1374
|
+
css$1u.root,
|
|
1313
1375
|
'uui-button',
|
|
1314
1376
|
`uui-fill-${mods.fill || 'solid'}`,
|
|
1315
1377
|
`uui-color-${mods.color || 'primary'}`,
|
|
@@ -1323,10 +1385,10 @@ const Button = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Button,
|
|
|
1323
1385
|
};
|
|
1324
1386
|
});
|
|
1325
1387
|
|
|
1326
|
-
var css$
|
|
1388
|
+
var css$1t = {"root":"af51dx"};
|
|
1327
1389
|
|
|
1328
1390
|
function applyIconButtonMods(props) {
|
|
1329
|
-
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$
|
|
1391
|
+
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$1t.root];
|
|
1330
1392
|
}
|
|
1331
1393
|
const IconButton = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.IconButton, applyIconButtonMods, (props) => {
|
|
1332
1394
|
const isDeprecated = ['info', 'success', 'error', 'warning'].includes(props.color);
|
|
@@ -1360,7 +1422,7 @@ function getIconClass(props) {
|
|
|
1360
1422
|
return [classList['has-left-icon'] ? 'uui-has-left-icon' : 'uui-no-left-icon', classList['has-right-icon'] ? 'uui-has-right-icon' : 'uui-no-right-icon'];
|
|
1361
1423
|
}
|
|
1362
1424
|
|
|
1363
|
-
var css$
|
|
1425
|
+
var css$1s = {"root":"zoHJ0E"};
|
|
1364
1426
|
|
|
1365
1427
|
const DEFAULT_COLOR = 'primary';
|
|
1366
1428
|
const LinkButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
@@ -1375,7 +1437,7 @@ const LinkButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
1375
1437
|
}
|
|
1376
1438
|
const rootStyles = [
|
|
1377
1439
|
'uui-link_button',
|
|
1378
|
-
css$
|
|
1440
|
+
css$1s.root,
|
|
1379
1441
|
`uui-size-${props.size || settings.linkButton.sizes.default}`,
|
|
1380
1442
|
...getIconClass(props),
|
|
1381
1443
|
`uui-color-${props.color || DEFAULT_COLOR}`,
|
|
@@ -1390,11 +1452,11 @@ const LinkButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
1390
1452
|
props.isDropdown && (React__namespace.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
1391
1453
|
});
|
|
1392
1454
|
|
|
1393
|
-
var css$
|
|
1455
|
+
var css$1r = {"root":"hfZNzs"};
|
|
1394
1456
|
|
|
1395
1457
|
const CountIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1396
1458
|
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
1397
|
-
css$
|
|
1459
|
+
css$1r.root,
|
|
1398
1460
|
'uui-count_indicator',
|
|
1399
1461
|
`uui-size-${props.size || settings.countIndicator.sizes.default}`,
|
|
1400
1462
|
props.color && `uui-color-${props.color}`,
|
|
@@ -1402,11 +1464,11 @@ const CountIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1402
1464
|
]) }, props.caption));
|
|
1403
1465
|
});
|
|
1404
1466
|
|
|
1405
|
-
var css$
|
|
1467
|
+
var css$1q = {"root":"rwt5yG","withNotify":"_7LMflq"};
|
|
1406
1468
|
|
|
1407
1469
|
const TabButton = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
1408
1470
|
const styles = [
|
|
1409
|
-
css$
|
|
1471
|
+
css$1q.root,
|
|
1410
1472
|
'uui-tab-button',
|
|
1411
1473
|
`uui-size-${props.size || settings.tabButton.sizes.default}`,
|
|
1412
1474
|
...getIconClass(props),
|
|
@@ -1423,27 +1485,27 @@ const TabButton = /* @__PURE__ */React__namespace.default.forwardRef((props, ref
|
|
|
1423
1485
|
props.icon && props.iconPosition !== 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1424
1486
|
(props.caption || props.withNotify) && (React__namespace.default.createElement("div", { className: uuiCore.cx(uuiCore.uuiElement.caption) },
|
|
1425
1487
|
props.caption,
|
|
1426
|
-
props.withNotify && React__namespace.default.createElement("div", { className: css$
|
|
1488
|
+
props.withNotify && React__namespace.default.createElement("div", { className: css$1q.withNotify }))),
|
|
1427
1489
|
props.icon && props.iconPosition === 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1428
1490
|
props.count !== undefined && props.count !== null && (React__namespace.default.createElement(CountIndicator, { color: "neutral", size: settings.tabButton.sizes.countIndicatorMap[props.size || settings.tabButton.sizes.default], caption: props.count })),
|
|
1429
1491
|
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
1430
1492
|
props.onClear && !props.isDisabled && (React__namespace.default.createElement(uuiComponents.IconContainer, { cx: uuiCore.uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
1431
1493
|
});
|
|
1432
1494
|
|
|
1433
|
-
var css$
|
|
1495
|
+
var css$1p = {"root":"yWUdk0"};
|
|
1434
1496
|
|
|
1435
1497
|
function applyVerticalTabButtonMods() {
|
|
1436
|
-
return [css$
|
|
1498
|
+
return [css$1p.root, 'uui-vertical-tab-button'];
|
|
1437
1499
|
}
|
|
1438
1500
|
const VerticalTabButton = /* @__PURE__ */uuiCore.withMods(TabButton, applyVerticalTabButtonMods);
|
|
1439
1501
|
|
|
1440
|
-
var css$
|
|
1502
|
+
var css$1o = {"root":"_4wLfSU"};
|
|
1441
1503
|
|
|
1442
1504
|
function applyCheckboxMods(mods) {
|
|
1443
1505
|
return [
|
|
1444
|
-
css$
|
|
1506
|
+
css$1o.root,
|
|
1445
1507
|
`uui-size-${mods.size || settings.checkbox.sizes.default}`,
|
|
1446
|
-
|
|
1508
|
+
'uui-control-mode-' + (mods.mode || 'form'),
|
|
1447
1509
|
'uui-color-primary',
|
|
1448
1510
|
];
|
|
1449
1511
|
}
|
|
@@ -1455,11 +1517,11 @@ const applyUUICheckboxProps = (props) => {
|
|
|
1455
1517
|
};
|
|
1456
1518
|
const Checkbox = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Checkbox, applyCheckboxMods, applyUUICheckboxProps);
|
|
1457
1519
|
|
|
1458
|
-
var css$
|
|
1520
|
+
var css$1n = {"root":"HroqD6"};
|
|
1459
1521
|
|
|
1460
1522
|
function applyRadioInputMods(mods) {
|
|
1461
1523
|
return [
|
|
1462
|
-
css$
|
|
1524
|
+
css$1n.root,
|
|
1463
1525
|
`uui-size-${mods.size || settings.radioInput.sizes.default}`,
|
|
1464
1526
|
'uui-radio-input-container',
|
|
1465
1527
|
'uui-color-primary',
|
|
@@ -1467,11 +1529,11 @@ function applyRadioInputMods(mods) {
|
|
|
1467
1529
|
}
|
|
1468
1530
|
const RadioInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.RadioInput, applyRadioInputMods, (props) => ({ icon: props.icon ? props.icon : settings.radioInput.icons.dotIcon }));
|
|
1469
1531
|
|
|
1470
|
-
var css$
|
|
1532
|
+
var css$1m = {"root":"-SQe-0"};
|
|
1471
1533
|
|
|
1472
1534
|
function applySwitchMods(mods) {
|
|
1473
1535
|
return [
|
|
1474
|
-
css$
|
|
1536
|
+
css$1m.root,
|
|
1475
1537
|
`uui-size-${mods.size || settings.switch.sizes.default}`,
|
|
1476
1538
|
'uui-color-primary',
|
|
1477
1539
|
];
|
|
@@ -1491,14 +1553,14 @@ var EditMode;
|
|
|
1491
1553
|
EditMode["INLINE"] = "inline";
|
|
1492
1554
|
})(EditMode || (EditMode = {}));
|
|
1493
1555
|
|
|
1494
|
-
var textInputCss = {"root":"
|
|
1556
|
+
var textInputCss = {"root":"BLuLu4"};
|
|
1495
1557
|
|
|
1496
1558
|
const DEFAULT_MODE$3 = EditMode.FORM;
|
|
1497
1559
|
function applyTextInputMods(mods) {
|
|
1498
1560
|
return [
|
|
1499
1561
|
textInputCss.root,
|
|
1500
1562
|
`uui-size-${mods.size || settings.textInput.sizes.default}`,
|
|
1501
|
-
|
|
1563
|
+
'uui-control-mode-' + (mods.mode || DEFAULT_MODE$3),
|
|
1502
1564
|
];
|
|
1503
1565
|
}
|
|
1504
1566
|
const TextInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.TextInput, applyTextInputMods, () => ({
|
|
@@ -1516,9 +1578,9 @@ const SearchInput = /* @__PURE__ */React__namespace.default.forwardRef((props, r
|
|
|
1516
1578
|
} }));
|
|
1517
1579
|
});
|
|
1518
1580
|
|
|
1519
|
-
var css$
|
|
1581
|
+
var css$1l = {"root":"v6IAk-"};
|
|
1520
1582
|
|
|
1521
|
-
const ControlGroup = /* @__PURE__ */uuiCore.withMods(uuiComponents.ControlGroup, () => [css$
|
|
1583
|
+
const ControlGroup = /* @__PURE__ */uuiCore.withMods(uuiComponents.ControlGroup, () => [css$1l.root, 'uui-control-group']);
|
|
1522
1584
|
|
|
1523
1585
|
function MultiSwitchComponent(props, ref) {
|
|
1524
1586
|
return (React__namespace.createElement(ControlGroup, { ref: ref, rawProps: {
|
|
@@ -1532,15 +1594,15 @@ function MultiSwitchComponent(props, ref) {
|
|
|
1532
1594
|
}
|
|
1533
1595
|
const MultiSwitch = /* @__PURE__ */React__namespace.forwardRef(MultiSwitchComponent);
|
|
1534
1596
|
|
|
1535
|
-
var css$
|
|
1597
|
+
var css$1k = {"root":"X-aUTq"};
|
|
1536
1598
|
|
|
1537
1599
|
const DEFAULT_MODE$2 = EditMode.FORM;
|
|
1538
1600
|
function applyNumericInputMods(mods) {
|
|
1539
1601
|
return [
|
|
1540
1602
|
textInputCss.root,
|
|
1541
|
-
css$
|
|
1603
|
+
css$1k.root,
|
|
1542
1604
|
`uui-size-${mods.size || settings.numericInput.sizes.default}`,
|
|
1543
|
-
|
|
1605
|
+
'uui-control-mode-' + (mods.mode || DEFAULT_MODE$2),
|
|
1544
1606
|
];
|
|
1545
1607
|
}
|
|
1546
1608
|
const NumericInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.NumericInput, applyNumericInputMods, (props) => {
|
|
@@ -1552,15 +1614,15 @@ const NumericInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.NumericInput,
|
|
|
1552
1614
|
};
|
|
1553
1615
|
});
|
|
1554
1616
|
|
|
1555
|
-
var css$
|
|
1617
|
+
var css$1j = {"root":"UYZaLu"};
|
|
1556
1618
|
|
|
1557
1619
|
const DEFAULT_MODE$1 = EditMode.FORM;
|
|
1558
1620
|
function applyTextAreaMods(mods) {
|
|
1559
1621
|
return [
|
|
1560
|
-
css$
|
|
1622
|
+
css$1j.root,
|
|
1561
1623
|
'uui-textarea',
|
|
1562
1624
|
'uui-size-' + (mods.size || settings.textArea.sizes.default),
|
|
1563
|
-
|
|
1625
|
+
'uui-control-mode-' + (mods.mode || DEFAULT_MODE$1),
|
|
1564
1626
|
];
|
|
1565
1627
|
}
|
|
1566
1628
|
const TextArea = /* @__PURE__ */uuiCore.withMods(uuiComponents.TextArea, applyTextAreaMods, (props) => {
|
|
@@ -1593,17 +1655,17 @@ function TREE_SHAKEABLE_INIT$1() {
|
|
|
1593
1655
|
};
|
|
1594
1656
|
}
|
|
1595
1657
|
|
|
1596
|
-
var css$
|
|
1658
|
+
var css$1i = {"root":"_7iW3Pa","main-path":"_5g3WUo","mainPath":"_5g3WUo","content-wrapper":"bR2eks","contentWrapper":"bR2eks","content":"hpLMgH","action-wrapper":"oKFEmM","actionWrapper":"oKFEmM","icon-wrapper":"JXzT-o","iconWrapper":"JXzT-o","icon":"_7s7UKs","close-icon":"FDAtBk","closeIcon":"FDAtBk"};
|
|
1597
1659
|
|
|
1598
|
-
const Alert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("div", { role: "alert", ref: ref, className: cx__default.default('uui-alert', css$
|
|
1599
|
-
React__namespace.createElement("div", { className: css$
|
|
1600
|
-
React__namespace.createElement("div", { className: css$
|
|
1601
|
-
props.icon && (React__namespace.createElement("div", { className: css$
|
|
1602
|
-
React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$
|
|
1603
|
-
React__namespace.createElement("div", { className: css$
|
|
1660
|
+
const Alert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("div", { role: "alert", ref: ref, className: cx__default.default('uui-alert', css$1i.root, props.color && `uui-color-${props.color}`, props.cx, `uui-size-${props.size || settings.alert.sizes.default}`), ...props.rawProps },
|
|
1661
|
+
React__namespace.createElement("div", { className: css$1i.mainPath },
|
|
1662
|
+
React__namespace.createElement("div", { className: css$1i.contentWrapper },
|
|
1663
|
+
props.icon && (React__namespace.createElement("div", { className: css$1i.iconWrapper },
|
|
1664
|
+
React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$1i.icon }))),
|
|
1665
|
+
React__namespace.createElement("div", { className: css$1i.content },
|
|
1604
1666
|
props.children,
|
|
1605
|
-
props.actions && (React__namespace.createElement("div", { className: css$
|
|
1606
|
-
props.onClose && React__namespace.createElement(IconButton, { icon: settings.alert.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$
|
|
1667
|
+
props.actions && (React__namespace.createElement("div", { className: css$1i.actionWrapper }, props.actions.map((action) => (React__namespace.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$1i.actionLink, size: settings.alert.sizes.actionMap[props.size || settings.alert.sizes.default] }))))))),
|
|
1668
|
+
props.onClose && React__namespace.createElement(IconButton, { icon: settings.alert.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$1i.closeIcon })))));
|
|
1607
1669
|
const WarningAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, { icon: settings.alert.icons.warningIcon, color: "warning", ref: ref, ...props }));
|
|
1608
1670
|
const SuccessAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, { icon: settings.alert.icons.successIcon, color: "success", ref: ref, ...props }));
|
|
1609
1671
|
const HintAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, { icon: settings.alert.icons.infoIcon, color: "info", ref: ref, ...props }));
|
|
@@ -1611,18 +1673,18 @@ const ErrorAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => Re
|
|
|
1611
1673
|
|
|
1612
1674
|
const Dropdown = /* @__PURE__ */uuiCore.withMods(uuiComponents.Dropdown);
|
|
1613
1675
|
|
|
1614
|
-
var css$
|
|
1676
|
+
var css$1h = {"root":"feGmZN"};
|
|
1615
1677
|
|
|
1616
1678
|
function applyDropdownContainerMods(mods) {
|
|
1617
1679
|
return [
|
|
1618
|
-
css$
|
|
1680
|
+
css$1h.root,
|
|
1619
1681
|
mods.vPadding && `vPadding-${mods.vPadding}`,
|
|
1620
1682
|
mods.padding && `padding-${mods.padding}`,
|
|
1621
1683
|
];
|
|
1622
1684
|
}
|
|
1623
1685
|
const DropdownContainer = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.DropdownContainer, applyDropdownContainerMods);
|
|
1624
1686
|
|
|
1625
|
-
var css$
|
|
1687
|
+
var css$1g = {"submenu-root-item-rtl":"DmYcX6","submenuRootItemRtl":"DmYcX6","icon-after":"Mq6Qep","iconAfter":"Mq6Qep","submenu-root-item":"-KlPL-","submenuRootItem":"-KlPL-","icon-check":"wbivRt","iconCheck":"wbivRt","splitter-root":"gvd2D-","splitterRoot":"gvd2D-","splitter":"ZJRQ35","header-root":"B2r6Uc","headerRoot":"B2r6Uc","item-root":"Xjd57P","itemRoot":"Xjd57P","icon":"dkm6bb","link":"qE9QU9","indent":"QqxbDr","selected-mark":"xfIBEO","selectedMark":"xfIBEO"};
|
|
1626
1688
|
|
|
1627
1689
|
exports.IDropdownControlKeys = void 0;
|
|
1628
1690
|
(function (IDropdownControlKeys) {
|
|
@@ -1687,29 +1749,29 @@ const DropdownMenuButton = /* @__PURE__ */React__namespace.default.forwardRef((p
|
|
|
1687
1749
|
const getMenuButtonContent = () => {
|
|
1688
1750
|
const isIconBefore = Boolean(icon && iconPosition !== 'right');
|
|
1689
1751
|
const isIconAfter = Boolean(icon && iconPosition === 'right');
|
|
1690
|
-
const iconElement = (React__namespace.default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: uuiCore.cx(css$
|
|
1752
|
+
const iconElement = (React__namespace.default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: uuiCore.cx(css$1g.icon, iconPosition === 'right' ? css$1g.iconAfter : css$1g.iconBefore) }));
|
|
1691
1753
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1692
1754
|
isIconBefore && iconElement,
|
|
1693
|
-
React__namespace.default.createElement(uuiComponents.Text, { cx: props.indent && css$
|
|
1755
|
+
React__namespace.default.createElement(uuiComponents.Text, { cx: props.indent && css$1g.indent }, caption),
|
|
1694
1756
|
isIconAfter && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1695
1757
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1696
1758
|
iconElement))));
|
|
1697
1759
|
};
|
|
1698
1760
|
const isAnchor = Boolean(link || href);
|
|
1699
|
-
const itemClassNames = uuiCore.cx(props.cx, css$
|
|
1700
|
-
return isAnchor ? (React__namespace.default.createElement(uuiComponents.Anchor, { cx: uuiCore.cx(css$
|
|
1761
|
+
const itemClassNames = uuiCore.cx(props.cx, css$1g.itemRoot, isDisabled && uuiCore.uuiMod.disabled, isActive && uuiCore.uuiMod.active, isOpen && uuiCore.uuiMod.opened, (!isDisabled && onClick) && uuiCore.uuiMarkers.clickable);
|
|
1762
|
+
return isAnchor ? (React__namespace.default.createElement(uuiComponents.Anchor, { cx: uuiCore.cx(css$1g.link, itemClassNames), link: link, href: href, rawProps: { role: 'menuitem', tabIndex: isDisabled ? -1 : 0 }, onClick: handleClick, isLinkActive: isActive, isDisabled: isDisabled, target: target }, getMenuButtonContent())) : (React__namespace.default.createElement("div", { tabIndex: isDisabled ? -1 : 0, role: "menuitem", onKeyDown: isDisabled ? null : handleOpenDropdown, className: itemClassNames, onClick: handleClick, ref: ref },
|
|
1701
1763
|
getMenuButtonContent(),
|
|
1702
1764
|
isSelected && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1703
1765
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1704
|
-
React__namespace.default.createElement(uuiComponents.IconContainer, { icon: settings.dropdownMenu.icons.acceptIcon, cx: css$
|
|
1766
|
+
React__namespace.default.createElement(uuiComponents.IconContainer, { icon: settings.dropdownMenu.icons.acceptIcon, cx: css$1g.selectedMark })))));
|
|
1705
1767
|
});
|
|
1706
1768
|
function DropdownMenuSplitter(props) {
|
|
1707
|
-
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$
|
|
1708
|
-
React__namespace.default.createElement("hr", { className: css$
|
|
1769
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$1g.splitterRoot) },
|
|
1770
|
+
React__namespace.default.createElement("hr", { className: css$1g.splitter })));
|
|
1709
1771
|
}
|
|
1710
1772
|
function DropdownMenuHeader(props) {
|
|
1711
|
-
return (React__namespace.default.createElement("div", { className: uuiCore.cx('uui-dropdown-menu-header', props.cx, css$
|
|
1712
|
-
React__namespace.default.createElement("span", { className: css$
|
|
1773
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx('uui-dropdown-menu-header', props.cx, css$1g.headerRoot) },
|
|
1774
|
+
React__namespace.default.createElement("span", { className: css$1g.header }, props.caption)));
|
|
1713
1775
|
}
|
|
1714
1776
|
function DropdownSubMenu(props) {
|
|
1715
1777
|
const subMenuModifiers = [
|
|
@@ -1729,7 +1791,7 @@ function DropdownSubMenu(props) {
|
|
|
1729
1791
|
},
|
|
1730
1792
|
];
|
|
1731
1793
|
const isRtl = uuiCore.getDir() === 'rtl';
|
|
1732
|
-
return (React__namespace.default.createElement(uuiComponents.Dropdown, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", openDelay: 400, closeDelay: 400, placement: isRtl ? 'left-start' : 'right-start', modifiers: subMenuModifiers, renderBody: (dropdownProps) => !props.isDisabled && (React__namespace.default.createElement(DropdownMenuBody, { closeOnKey: exports.IDropdownControlKeys.LEFT_ARROW, ...props, ...dropdownProps })), renderTarget: ({ toggleDropdownOpening, ...targetProps }) => (React__namespace.default.createElement(DropdownMenuButton, { cx: uuiCore.cx(isRtl ? css$
|
|
1794
|
+
return (React__namespace.default.createElement(uuiComponents.Dropdown, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", openDelay: 400, closeDelay: 400, placement: isRtl ? 'left-start' : 'right-start', modifiers: subMenuModifiers, renderBody: (dropdownProps) => !props.isDisabled && (React__namespace.default.createElement(DropdownMenuBody, { closeOnKey: exports.IDropdownControlKeys.LEFT_ARROW, ...props, ...dropdownProps })), renderTarget: ({ toggleDropdownOpening, ...targetProps }) => (React__namespace.default.createElement(DropdownMenuButton, { cx: uuiCore.cx(isRtl ? css$1g.submenuRootItemRtl : css$1g.submenuRootItem), icon: settings.dropdownMenu.icons.dropdownIcon, iconPosition: "right", isDropdown: true, toggleDropdownOpening: toggleDropdownOpening, ...props, ...targetProps })) }));
|
|
1733
1795
|
}
|
|
1734
1796
|
function DropdownMenuSwitchButton(props) {
|
|
1735
1797
|
const context = React.useContext(uuiCore.UuiContext);
|
|
@@ -1745,29 +1807,29 @@ function DropdownMenuSwitchButton(props) {
|
|
|
1745
1807
|
onHandleValueChange(!isSelected);
|
|
1746
1808
|
}
|
|
1747
1809
|
};
|
|
1748
|
-
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$
|
|
1749
|
-
icon && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icon, cx: css$
|
|
1810
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$1g.itemRoot, isDisabled && uuiCore.uuiMod.disabled, (!isDisabled || onValueChange) && uuiCore.uuiMarkers.clickable), onClick: () => onHandleValueChange(!isSelected), role: "menuitem", onKeyDown: handleKeySelect, tabIndex: isDisabled ? -1 : 0 },
|
|
1811
|
+
icon && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icon, cx: css$1g.iconBefore }),
|
|
1750
1812
|
React__namespace.default.createElement(uuiComponents.Text, null, caption),
|
|
1751
1813
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1752
1814
|
React__namespace.default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
1753
1815
|
}
|
|
1754
1816
|
|
|
1755
|
-
var css$
|
|
1817
|
+
var css$1f = {"root":"_5CvukL","mode-block":"_28n9FZ","modeBlock":"_28n9FZ","mode-inline":"hVIEP5","modeInline":"hVIEP5","padding-0":"MKk4Gy","padding0":"MKk4Gy","padding-6":"uGECOy","padding6":"uGECOy","padding-12":"xRQRMa","padding12":"xRQRMa","padding-18":"gDwGMD","padding18":"gDwGMD"};
|
|
1756
1818
|
|
|
1757
1819
|
function applyAccordionMods(mods) {
|
|
1758
1820
|
return [
|
|
1759
|
-
css$
|
|
1760
|
-
css$
|
|
1761
|
-
mods.padding && css$
|
|
1821
|
+
css$1f.root,
|
|
1822
|
+
css$1f[`mode-${mods.mode || 'block'}`],
|
|
1823
|
+
mods.padding && css$1f['padding-' + mods.padding],
|
|
1762
1824
|
];
|
|
1763
1825
|
}
|
|
1764
1826
|
const Accordion = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Accordion, applyAccordionMods, (mods) => ({
|
|
1765
1827
|
dropdownIcon: mods.dropdownIcon !== null && settings.accordion.icons.dropdownIcon,
|
|
1766
1828
|
}));
|
|
1767
1829
|
|
|
1768
|
-
var css$
|
|
1830
|
+
var css$1e = {"root":"k8eeDw","align-items":"daLVSl","alignItems":"daLVSl","justify-content":"nYGpTT","justifyContent":"nYGpTT","border-top":"e2yK2g","borderTop":"e2yK2g","border-bottom":"KIzQ2i","borderBottom":"KIzQ2i","top-shadow":"qvMvLs","topShadow":"qvMvLs","padding":"p-tw1R","margin":"JXAIe5","vPadding":"rgs9OV","column-gap":"ZkBNgw","columnGap":"ZkBNgw","row-gap":"_5DVR0F","rowGap":"_5DVR0F","spacing":"gI2k8g"};
|
|
1769
1831
|
|
|
1770
|
-
const FlexCell = /* @__PURE__ */uuiCore.withMods(uuiComponents.FlexCell, () => [css$
|
|
1832
|
+
const FlexCell = /* @__PURE__ */uuiCore.withMods(uuiComponents.FlexCell, () => [css$1e.flexCell]);
|
|
1771
1833
|
|
|
1772
1834
|
const FlexRow = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1773
1835
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -1776,23 +1838,23 @@ const FlexRow = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1776
1838
|
}
|
|
1777
1839
|
}
|
|
1778
1840
|
const classNames = uuiCore.cx([
|
|
1779
|
-
css$
|
|
1841
|
+
css$1e.root,
|
|
1780
1842
|
'uui-flex-row',
|
|
1781
1843
|
props.onClick && uuiCore.uuiMarkers.clickable,
|
|
1782
1844
|
props.cx,
|
|
1783
1845
|
props.size !== null && 'uui-size-' + (props.size || settings.flexRow.sizes.default),
|
|
1784
|
-
props.alignItems && css$
|
|
1785
|
-
props.justifyContent && css$
|
|
1786
|
-
props.padding && css$
|
|
1787
|
-
props.vPadding && css$
|
|
1788
|
-
props.margin && css$
|
|
1789
|
-
props.topShadow && css$
|
|
1790
|
-
props.borderBottom && css$
|
|
1791
|
-
props.borderTop && css$
|
|
1792
|
-
props.columnGap && css$
|
|
1793
|
-
props.rowGap && css$
|
|
1794
|
-
props.spacing && css$
|
|
1795
|
-
props.background &&
|
|
1846
|
+
props.alignItems && css$1e.alignItems,
|
|
1847
|
+
props.justifyContent && css$1e.justifyContent,
|
|
1848
|
+
props.padding && css$1e.padding,
|
|
1849
|
+
props.vPadding && css$1e.vPadding,
|
|
1850
|
+
props.margin && css$1e.margin,
|
|
1851
|
+
props.topShadow && css$1e.topShadow,
|
|
1852
|
+
props.borderBottom && css$1e.borderBottom,
|
|
1853
|
+
props.borderTop && css$1e.borderTop,
|
|
1854
|
+
props.columnGap && css$1e.columnGap,
|
|
1855
|
+
props.rowGap && css$1e.rowGap,
|
|
1856
|
+
props.spacing && css$1e.spacing,
|
|
1857
|
+
props.background && `uui-flex-row-bg-${props.background}`,
|
|
1796
1858
|
]);
|
|
1797
1859
|
const style = {
|
|
1798
1860
|
...(props.alignItems && { '--uui-flex-row-align-items': props.alignItems }),
|
|
@@ -1810,32 +1872,32 @@ const FlexRow = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1810
1872
|
} }, props.children));
|
|
1811
1873
|
});
|
|
1812
1874
|
|
|
1813
|
-
var css$
|
|
1875
|
+
var css$1d = {"root":"ogt-u1","margin-24":"GbuoP4","margin24":"GbuoP4","padding-12":"CN3JPv","padding12":"CN3JPv","padding-24":"r-6a2s","padding24":"r-6a2s","shadow":"_7c6l7H","uui-surface-main":"GE-60F","uuiSurfaceMain":"GE-60F"};
|
|
1814
1876
|
|
|
1815
1877
|
const Panel = /* @__PURE__ */uuiCore.withMods(uuiComponents.VPanel, (props) => [
|
|
1816
1878
|
'uui-panel',
|
|
1817
|
-
css$
|
|
1818
|
-
props.shadow && css$
|
|
1819
|
-
props.margin && css$
|
|
1820
|
-
props.background && css$
|
|
1879
|
+
css$1d.root,
|
|
1880
|
+
props.shadow && css$1d.shadow,
|
|
1881
|
+
props.margin && css$1d['margin-' + props.margin],
|
|
1882
|
+
props.background && css$1d[`uui-${props.background}`],
|
|
1821
1883
|
]);
|
|
1822
1884
|
|
|
1823
|
-
var css$
|
|
1885
|
+
var css$1c = {"root":"_3OCjZu"};
|
|
1824
1886
|
|
|
1825
1887
|
function applyTooltipMods(mods) {
|
|
1826
1888
|
return [
|
|
1827
|
-
css$
|
|
1889
|
+
css$1c.root,
|
|
1828
1890
|
`uui-color-${mods.color || 'inverted'}`,
|
|
1829
1891
|
];
|
|
1830
1892
|
}
|
|
1831
1893
|
const Tooltip = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Tooltip, applyTooltipMods);
|
|
1832
1894
|
|
|
1833
|
-
var css$
|
|
1895
|
+
var css$1b = {"root":"yCRUhW"};
|
|
1834
1896
|
|
|
1835
1897
|
function applyLabeledInputMods(mods) {
|
|
1836
1898
|
return [
|
|
1837
1899
|
'uui-labeled-input',
|
|
1838
|
-
css$
|
|
1900
|
+
css$1b.root,
|
|
1839
1901
|
'uui-size-' + (mods.size || settings.labeledInput.sizes.default),
|
|
1840
1902
|
];
|
|
1841
1903
|
}
|
|
@@ -1847,7 +1909,7 @@ function applyLabeledInputProps(props) {
|
|
|
1847
1909
|
}
|
|
1848
1910
|
const LabeledInput = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.LabeledInput, applyLabeledInputMods, applyLabeledInputProps);
|
|
1849
1911
|
|
|
1850
|
-
var css$
|
|
1912
|
+
var css$1a = {"root":"Qmr9zU"};
|
|
1851
1913
|
|
|
1852
1914
|
function RadioGroup(props) {
|
|
1853
1915
|
const direction = props.direction || 'vertical';
|
|
@@ -1856,175 +1918,26 @@ function RadioGroup(props) {
|
|
|
1856
1918
|
props.onValueChange(newVal);
|
|
1857
1919
|
}
|
|
1858
1920
|
};
|
|
1859
|
-
return (React__namespace.createElement("fieldset", { ref: props.forwardedRef, className: uuiCore.cx(css$
|
|
1921
|
+
return (React__namespace.createElement("fieldset", { ref: props.forwardedRef, className: uuiCore.cx(css$1a.root, uuiCore.directionMode[direction], props.cx), onFocus: props.onFocus, onBlur: props.onBlur, ...props.rawProps }, props.items.map((i) => {
|
|
1860
1922
|
const { id, name, renderName, ...restItemProps } = i;
|
|
1861
1923
|
return (React__namespace.createElement(RadioInput, { name: props.name, renderLabel: i.renderName ? i.renderName : () => i.name, value: props.value === i.id, onValueChange: () => handleChange(i.id), isDisabled: props.isDisabled || i.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, isRequired: props.isRequired, key: i.id.toString(), size: props.size || i.size, ...restItemProps }));
|
|
1862
1924
|
})));
|
|
1863
1925
|
}
|
|
1864
1926
|
|
|
1865
|
-
var css$
|
|
1927
|
+
var css$19 = {"root":"_6Y4M76"};
|
|
1866
1928
|
|
|
1867
1929
|
function applyScrollBarsMods() {
|
|
1868
1930
|
return [
|
|
1869
|
-
css$
|
|
1931
|
+
css$19.root, 'uui-scroll-bars', 'uui-shadow-top', 'uui-shadow-bottom',
|
|
1870
1932
|
];
|
|
1871
1933
|
}
|
|
1872
1934
|
const ScrollBars = /* @__PURE__ */uuiCore.withMods(uuiComponents.ScrollBars, applyScrollBarsMods);
|
|
1873
1935
|
|
|
1874
|
-
var css$
|
|
1875
|
-
|
|
1876
|
-
var css$1b = {"root":"A-LcV7"};
|
|
1877
|
-
|
|
1878
|
-
const AvatarStack = /* @__PURE__ */uuiCore.withMods(uuiComponents.AvatarStack, () => [css$1b.root]);
|
|
1879
|
-
|
|
1880
|
-
var css$1a = {"root":"pI0XDB"};
|
|
1881
|
-
|
|
1882
|
-
const DEFAULT_FILL = 'solid';
|
|
1883
|
-
function applyBadgeMods(mods) {
|
|
1884
|
-
return [
|
|
1885
|
-
'uui-badge',
|
|
1886
|
-
css$1a.root,
|
|
1887
|
-
`uui-size-${mods.size || settings.badge.sizes.default}`,
|
|
1888
|
-
`uui-fill-${mods.fill || DEFAULT_FILL}`,
|
|
1889
|
-
`uui-color-${mods.color || 'info'}`,
|
|
1890
|
-
];
|
|
1891
|
-
}
|
|
1892
|
-
const Badge = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
1893
|
-
const styles = [applyBadgeMods(props), props.cx];
|
|
1894
|
-
const DropdownIcon = props.dropdownIcon ? props.dropdownIcon : settings.badge.icons.dropdownIcon;
|
|
1895
|
-
return (React__namespace.default.createElement(uuiComponents.Clickable, { ...props, rawProps: {
|
|
1896
|
-
'aria-haspopup': props.isDropdown,
|
|
1897
|
-
'aria-expanded': props.isOpen,
|
|
1898
|
-
...props.rawProps,
|
|
1899
|
-
}, cx: styles, ref: ref },
|
|
1900
|
-
(props.indicator && props.fill === 'outline') && (React__namespace.default.createElement("div", { className: "uui-indicator" })),
|
|
1901
|
-
props.icon && props.iconPosition !== 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1902
|
-
props.caption && (React__namespace.default.createElement("div", { className: uuiCore.uuiElement.caption }, props.caption)),
|
|
1903
|
-
props.count !== undefined && props.count !== null && (React__namespace.default.createElement(CountIndicator, { key: "count-indicator", color: null, size: settings.badge.sizes.countIndicatorMap[props.size || settings.badge.sizes.default], caption: props.count })),
|
|
1904
|
-
props.icon && props.iconPosition === 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1905
|
-
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
1906
|
-
});
|
|
1907
|
-
|
|
1908
|
-
var css$19 = {"root":"Ftvz0Y"};
|
|
1909
|
-
|
|
1910
|
-
function applyTagMods(props) {
|
|
1911
|
-
return [
|
|
1912
|
-
css$19.root,
|
|
1913
|
-
`uui-size-${props.size || settings.tag.sizes.default}`,
|
|
1914
|
-
`uui-color-${props.color || 'neutral'}`,
|
|
1915
|
-
`uui-fill-${props.fill || 'solid'}`,
|
|
1916
|
-
'uui-tag',
|
|
1917
|
-
];
|
|
1918
|
-
}
|
|
1919
|
-
const Tag = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
1920
|
-
const styles = [applyTagMods(props), props.cx];
|
|
1921
|
-
const ClearIcon = props.clearIcon ? props.clearIcon : settings.tag.icons.clearIcon;
|
|
1922
|
-
const DropdownIcon = props.dropdownIcon ? props.dropdownIcon : settings.tag.icons.dropdownIcon;
|
|
1923
|
-
return (React__namespace.default.createElement(uuiComponents.Clickable, { ...props, rawProps: {
|
|
1924
|
-
'aria-haspopup': props.isDropdown,
|
|
1925
|
-
'aria-expanded': props.isOpen,
|
|
1926
|
-
...props.rawProps,
|
|
1927
|
-
}, cx: styles, ref: ref },
|
|
1928
|
-
props.icon && props.iconPosition !== 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1929
|
-
props.caption && (React__namespace.default.createElement("div", { className: uuiCore.uuiElement.caption }, props.caption)),
|
|
1930
|
-
props.count !== undefined && props.count !== null && (React__namespace.default.createElement(CountIndicator, { color: (!props.color || props.color === 'neutral') ? 'white' : props.color, size: settings.tag.sizes.countIndicatorMap[(props.size || settings.tag.sizes.default)], caption: props.count })),
|
|
1931
|
-
props.icon && props.iconPosition === 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1932
|
-
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
1933
|
-
props.onClear && !props.isDisabled && (React__namespace.default.createElement(uuiComponents.IconContainer, { cx: uuiCore.uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
1934
|
-
});
|
|
1935
|
-
|
|
1936
|
-
var css$18 = {"root":"tPKiRI","uui-spinner":"UuVbeS","uuiSpinner":"UuVbeS"};
|
|
1937
|
-
|
|
1938
|
-
function applySpinnerMods() {
|
|
1939
|
-
return [css$18.root, 'uui-spinner'];
|
|
1940
|
-
}
|
|
1941
|
-
const Spinner = /* @__PURE__ */uuiCore.withMods(uuiComponents.Spinner, applySpinnerMods);
|
|
1942
|
-
|
|
1943
|
-
var css$17 = {"root":"bVhVLB","page":"tRIKIa","spacer":"vs76XL","mode-ghost":"_3bmhcC","modeGhost":"_3bmhcC"};
|
|
1944
|
-
|
|
1945
|
-
function Paginator(props) {
|
|
1946
|
-
const renderPaginator = (params) => (React__namespace.default.createElement("nav", { role: "navigation", className: cx__default.default(css$17.root, 'uui-paginator', `uui-size-${props.size || settings.paginator.sizes.default}`), ...params.rawProps },
|
|
1947
|
-
React__namespace.default.createElement(Button, { size: props.size || settings.paginator.sizes.default, icon: settings.paginator.icons.leftArrowIcon, onClick: params.goToPrev, isDisabled: params.isFirst || props.isDisabled, fill: "outline", color: "secondary" }),
|
|
1948
|
-
params.pages.map((page, index) => {
|
|
1949
|
-
if (page.type === 'spacer') {
|
|
1950
|
-
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$17.spacer, css$17.page), size: props.size || settings.paginator.sizes.default, key: `${index}_spacer`, caption: "...", fill: "ghost", color: "secondary", tabIndex: -1, isDisabled: props.isDisabled }));
|
|
1951
|
-
}
|
|
1952
|
-
else {
|
|
1953
|
-
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$17[`mode-${!page.isActive && 'ghost'}`], css$17.page), size: props.size || settings.paginator.sizes.default, key: page.pageNumber, caption: page.pageNumber, onClick: () => page.onClick?.(), rawProps: { 'aria-current': page.isActive }, fill: (page.isActive && 'outline') || 'ghost', color: "primary", isDisabled: props.isDisabled }));
|
|
1954
|
-
}
|
|
1955
|
-
}),
|
|
1956
|
-
React__namespace.default.createElement(Button, { size: props.size || settings.paginator.sizes.default, icon: settings.paginator.icons.rightArrowIcon, onClick: params.goToNext, isDisabled: params.isLast || props.isDisabled, fill: "outline", color: "secondary" })));
|
|
1957
|
-
return React__namespace.default.createElement(uuiComponents.Paginator, { ...props, render: renderPaginator });
|
|
1958
|
-
}
|
|
1959
|
-
|
|
1960
|
-
var css$16 = {"root":"LFS9pC","progress-bar":"ASDnK-","progressBar":"ASDnK-","progressBar-indeterminate":"ERsYQL","progressBarIndeterminate":"ERsYQL","size-12":"ZnkekL","size12":"ZnkekL","size-18":"_9h6xEf","size18":"_9h6xEf","size-24":"rR20bm","size24":"rR20bm"};
|
|
1961
|
-
|
|
1962
|
-
const IndeterminateBar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
1963
|
-
return (React__namespace.createElement("div", { ref: ref, className: cx__default.default('uui-indeterminate_bar', props.cx, css$16.root, css$16[`size-${props.size || 12}`]) },
|
|
1964
|
-
React__namespace.createElement("div", { className: cx__default.default(css$16.progressBar) })));
|
|
1965
|
-
});
|
|
1966
|
-
|
|
1967
|
-
var css$15 = {"root":"jS6oxI","striped":"_04-nOH","animate-stripes":"w4N9Ja","animateStripes":"w4N9Ja","size-12":"PXYEHp","size12":"PXYEHp","size-18":"XPWZ-q","size18":"XPWZ-q","size-24":"_18XToF","size24":"_18XToF"};
|
|
1968
|
-
|
|
1969
|
-
const DEFAULT_SIZE = '12';
|
|
1970
|
-
function applyProgressBarMods(mods) {
|
|
1971
|
-
const size = mods.size || DEFAULT_SIZE;
|
|
1972
|
-
return [
|
|
1973
|
-
css$15.root,
|
|
1974
|
-
css$15[`size-${size}`],
|
|
1975
|
-
mods.striped && css$15.striped,
|
|
1976
|
-
];
|
|
1977
|
-
}
|
|
1978
|
-
const ProgressBar = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.ProgressBar, applyProgressBarMods, (props) => ({
|
|
1979
|
-
hideLabel: props.hideLabel || props.striped,
|
|
1980
|
-
}));
|
|
1981
|
-
|
|
1982
|
-
var css$14 = {"root":"X0tApn"};
|
|
1983
|
-
|
|
1984
|
-
const IndicatorBar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
1985
|
-
const { progress } = props;
|
|
1986
|
-
return progress || progress === 0 ? (React__namespace.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx__default.default(css$14.root, props.cx), hideLabel: true })) : (React__namespace.createElement(IndeterminateBar, { ref: ref, cx: cx__default.default(css$14.root, props.cx) }));
|
|
1987
|
-
});
|
|
1936
|
+
var css$18 = {"scroll-container":"_-7Dxnn","scrollContainer":"_-7Dxnn","list-container":"mqyIKD","listContainer":"mqyIKD"};
|
|
1988
1937
|
|
|
1989
|
-
var css$
|
|
1938
|
+
var css$17 = {"root":"bLzBZM"};
|
|
1990
1939
|
|
|
1991
|
-
const
|
|
1992
|
-
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
1993
|
-
css$13.root,
|
|
1994
|
-
`uui-size-${props.size || settings.statusIndicator.sizes.default}`,
|
|
1995
|
-
'uui-status_indicator',
|
|
1996
|
-
`uui-color-${props.color || 'neutral'}`,
|
|
1997
|
-
`uui-fill-${props.fill || 'solid'}`,
|
|
1998
|
-
props.cx,
|
|
1999
|
-
]) },
|
|
2000
|
-
React__namespace.default.createElement("div", { className: "uui-status_indicator-dot" }),
|
|
2001
|
-
React__namespace.default.createElement("p", { className: "uui-status_indicator-caption" }, props.caption)));
|
|
2002
|
-
});
|
|
2003
|
-
|
|
2004
|
-
var css$12 = {"drag-handle":"LtM8AD","dragHandle":"LtM8AD","icon-container":"skSuXc","iconContainer":"skSuXc"};
|
|
2005
|
-
|
|
2006
|
-
function DataRowAddons(props) {
|
|
2007
|
-
const row = props.rowProps;
|
|
2008
|
-
const getIndent = () => {
|
|
2009
|
-
return (row.indent - 1) * settings.dataTable.sizes.body.indentUnitMap[props.size || settings.dataTable.sizes.body.row];
|
|
2010
|
-
};
|
|
2011
|
-
const getWidth = () => {
|
|
2012
|
-
return settings.dataTable.sizes.body.indentWidthMap[props.size || settings.dataTable.sizes.body.row];
|
|
2013
|
-
};
|
|
2014
|
-
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
2015
|
-
row.dnd?.srcData && React__namespace.default.createElement(uuiComponents.DragHandle, { key: "dh", cx: css$12.dragHandle, rawProps: { ...props.eventHandlers } }),
|
|
2016
|
-
row?.checkbox?.isVisible && (React__namespace.default.createElement(Checkbox, { key: "cb", cx: "uui-dr_addons-checkbox", tabIndex: props.tabIndex, size: settings.dataTable.sizes.body.checkboxMap[props.size], value: row.isChecked, indeterminate: !row.isChecked && row.isChildrenChecked, onValueChange: () => row.onCheck?.(row), isDisabled: row.checkbox.isDisabled, isInvalid: row.checkbox.isInvalid })),
|
|
2017
|
-
row.indent > 0 && (React__namespace.default.createElement("div", { key: "fold", className: cx__default.default('uui-dr_addons-indent', `uui-size-${props.size}`), style: { marginInlineStart: getIndent(), width: getWidth() } }, row.isFoldable && (React__namespace.default.createElement(uuiComponents.IconContainer, { rawProps: {
|
|
2018
|
-
'aria-label': row.isFolded ? 'Unfold' : 'Fold',
|
|
2019
|
-
role: 'button',
|
|
2020
|
-
}, key: "icon", icon: settings.dataTable.icons.body.foldingIcon, cx: [
|
|
2021
|
-
uuiCore.uuiElement.foldingArrow, uuiCore.uuiMarkers.clickable, css$12.iconContainer,
|
|
2022
|
-
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row), size: settings.dataTable.sizes.body.iconMap[props.size || settings.dataTable.sizes.body.row] }))))));
|
|
2023
|
-
}
|
|
2024
|
-
|
|
2025
|
-
var css$11 = {"root":"Mkd0ey"};
|
|
2026
|
-
|
|
2027
|
-
const Blocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.Blocker, () => [css$11.root], (cmpProps) => ({ renderSpinner: cmpProps.renderSpinner || (() => React__namespace.default.createElement(Spinner, null)) }));
|
|
1940
|
+
const Blocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.Blocker, () => [css$17.root], () => ({ renderSpinner: settings.blocker.renderSpinner }));
|
|
2028
1941
|
|
|
2029
1942
|
const VirtualList = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
2030
1943
|
const { listContainerRef, offsetY, handleScroll, estimatedHeight, scrollContainerRef, } = uuiCore.useVirtualList({
|
|
@@ -2038,7 +1951,7 @@ const VirtualList = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
2038
1951
|
const scrollShadows = uuiCore.useScrollShadows({ root: scrollContainerRef.current });
|
|
2039
1952
|
const renderRows = () => props.renderRows?.({
|
|
2040
1953
|
listContainerRef, estimatedHeight, offsetY, scrollShadows,
|
|
2041
|
-
}) || (React__namespace.createElement("div", { className: css$
|
|
1954
|
+
}) || (React__namespace.createElement("div", { className: css$18.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
2042
1955
|
React__namespace.createElement("div", { ref: listContainerRef, role: props.role, style: { marginTop: offsetY } }, props.rows)));
|
|
2043
1956
|
const renderView = ({ style }) => (React__namespace.createElement(VirtualListView, { isLoading: props.isLoading, style: style, rawProps: props.rawProps }));
|
|
2044
1957
|
const scrollBarsRef = React__namespace.useCallback((scrollbars) => {
|
|
@@ -2046,7 +1959,7 @@ const VirtualList = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
2046
1959
|
return;
|
|
2047
1960
|
scrollContainerRef.current = scrollbars.container.firstChild;
|
|
2048
1961
|
}, []);
|
|
2049
|
-
return (React__namespace.createElement(ScrollBars, { cx: uuiCore.cx(css$
|
|
1962
|
+
return (React__namespace.createElement(ScrollBars, { cx: uuiCore.cx(css$18.scrollContainer, props.cx, {
|
|
2050
1963
|
[uuiCore.uuiMarkers.scrolledLeft]: scrollShadows.horizontalLeft,
|
|
2051
1964
|
[uuiCore.uuiMarkers.scrolledRight]: scrollShadows.horizontalRight,
|
|
2052
1965
|
[uuiCore.uuiMarkers.scrolledTop]: scrollShadows.verticalTop,
|
|
@@ -2068,7 +1981,7 @@ const VirtualListView = /* @__PURE__ */React__namespace.forwardRef((props, ref)
|
|
|
2068
1981
|
React__namespace.createElement(Blocker, { isEnabled: props.isLoading })));
|
|
2069
1982
|
});
|
|
2070
1983
|
|
|
2071
|
-
var css$
|
|
1984
|
+
var css$16 = {"root":"HOtXGZ"};
|
|
2072
1985
|
|
|
2073
1986
|
function CheckboxGroup(props) {
|
|
2074
1987
|
const currentValue = props.value || [];
|
|
@@ -2084,16 +1997,16 @@ function CheckboxGroup(props) {
|
|
|
2084
1997
|
}
|
|
2085
1998
|
props.onValueChange(newSelection);
|
|
2086
1999
|
};
|
|
2087
|
-
return (React__namespace.createElement("fieldset", { ref: props.forwardedRef, className: uuiCore.cx(css$
|
|
2000
|
+
return (React__namespace.createElement("fieldset", { ref: props.forwardedRef, className: uuiCore.cx(css$16.root, uuiCore.directionMode[direction], props.cx), ...props.rawProps }, props.items.map((i) => {
|
|
2088
2001
|
const { id, name, renderName, ...restItemProps } = i;
|
|
2089
2002
|
return (React__namespace.createElement(Checkbox, { renderLabel: i.renderName ? i.renderName : () => i.name, value: currentValue.indexOf(i.id) !== -1, onValueChange: (selected) => handleChange(selected, i.id), isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, isRequired: props.isRequired, key: i.id.toString(), size: props.size || i.size, ...restItemProps }));
|
|
2090
2003
|
})));
|
|
2091
2004
|
}
|
|
2092
2005
|
|
|
2093
|
-
var css
|
|
2006
|
+
var css$15 = {"root":"a7DcZQ","modal-blocker":"Pi64Ya","modalBlocker":"Pi64Ya","animateModalBlocker":"tZG-m2","modal":"_0DpMKi","modal-footer":"mIM3os","modalFooter":"mIM3os","border-top":"w3-ZCQ","borderTop":"w3-ZCQ","modal-header":"jy2jUn","modalHeader":"jy2jUn","border-bottom":"N8TqO5","borderBottom":"N8TqO5"};
|
|
2094
2007
|
|
|
2095
|
-
const ModalBlocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalBlocker, () => [css
|
|
2096
|
-
const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, () => [css
|
|
2008
|
+
const ModalBlocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalBlocker, () => [css$15.modalBlocker]);
|
|
2009
|
+
const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, () => [css$15.root, css$15.modal], (props) => {
|
|
2097
2010
|
const width = props.width;
|
|
2098
2011
|
const height = props.height || 'auto';
|
|
2099
2012
|
const maxHeight = uuiCore.isMobile() ? 'var(--uui-modals-mobile-max-height)' : (props.maxHeight || 'var(--uui-modals-max-height)');
|
|
@@ -2107,7 +2020,7 @@ const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, (
|
|
|
2107
2020
|
};
|
|
2108
2021
|
});
|
|
2109
2022
|
function ModalHeader(props) {
|
|
2110
|
-
return (React__namespace.default.createElement("div", { className: cx__default.default(css
|
|
2023
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default(css$15.root, css$15.modalHeader, 'uui-modal-header', props.borderBottom && css$15.borderBottom, props.cx), ...props.rawProps, style: {
|
|
2111
2024
|
...props.rawProps?.style,
|
|
2112
2025
|
} },
|
|
2113
2026
|
props.title && (React__namespace.default.createElement("div", { className: cx__default.default('uui-modal-title', 'uui-typography') }, props.title)),
|
|
@@ -2117,7 +2030,7 @@ function ModalHeader(props) {
|
|
|
2117
2030
|
React__namespace.default.createElement(IconButton, { rawProps: { 'aria-label': 'Close modal' }, icon: settings.modal.icons.closeIcon, onClick: props.onClose })))));
|
|
2118
2031
|
}
|
|
2119
2032
|
function ModalFooter(props) {
|
|
2120
|
-
return (React__namespace.default.createElement("div", { className: cx__default.default(css
|
|
2033
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default(css$15.root, css$15.modalFooter, 'uui-modal-footer', props.borderTop && css$15.borderTop, props.cx), ...props.rawProps, style: {
|
|
2121
2034
|
...props.rawProps?.style,
|
|
2122
2035
|
} }, props.children));
|
|
2123
2036
|
}
|
|
@@ -2280,7 +2193,7 @@ const TREE_SHAKEABLE_INIT = () => ({
|
|
|
2280
2193
|
});
|
|
2281
2194
|
const i18n = /* @__PURE__ */TREE_SHAKEABLE_INIT();
|
|
2282
2195
|
|
|
2283
|
-
var css$
|
|
2196
|
+
var css$14 = {"root":"eaSWnB","icon-wrapper":"k73cGX","iconWrapper":"k73cGX","action-wrapper":"_8NnI6l","actionWrapper":"_8NnI6l","action-link":"_4rBhn-","actionLink":"_4rBhn-","close-icon":"c8ShMl","closeIcon":"c8ShMl","main-path":"WtJ4AK","mainPath":"WtJ4AK","content":"Q5D-S7","close-wrapper":"l-JoBd","closeWrapper":"l-JoBd","notification-wrapper":"_8L9GQP","notificationWrapper":"_8L9GQP","clear-button":"cE6rQN","clearButton":"cE6rQN"};
|
|
2284
2197
|
|
|
2285
2198
|
const NotificationCard = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
2286
2199
|
const notificationCardNode = React__namespace.default.useRef(null);
|
|
@@ -2293,15 +2206,15 @@ const NotificationCard = /* @__PURE__ */React__namespace.default.forwardRef((pro
|
|
|
2293
2206
|
notificationCardNode.current?.removeEventListener('mouseleave', props.refreshTimer);
|
|
2294
2207
|
};
|
|
2295
2208
|
}, []);
|
|
2296
|
-
return (React__namespace.default.createElement("div", { role: "alert", className: cx__default.default('uui-notification_card', props.color && `uui-color-${props.color}`, css$
|
|
2297
|
-
React__namespace.default.createElement("div", { className: css$
|
|
2298
|
-
props.icon && (React__namespace.default.createElement("div", { className: css$
|
|
2209
|
+
return (React__namespace.default.createElement("div", { role: "alert", className: cx__default.default('uui-notification_card', props.color && `uui-color-${props.color}`, css$14.root, props.cx), ref: notificationCardNode, ...props.rawProps },
|
|
2210
|
+
React__namespace.default.createElement("div", { className: css$14.mainPath },
|
|
2211
|
+
props.icon && (React__namespace.default.createElement("div", { className: css$14.iconWrapper },
|
|
2299
2212
|
React__namespace.default.createElement(uuiComponents.IconContainer, { size: 24, icon: props.icon }))),
|
|
2300
|
-
React__namespace.default.createElement("div", { className: css$
|
|
2213
|
+
React__namespace.default.createElement("div", { className: css$14.content },
|
|
2301
2214
|
props.children,
|
|
2302
|
-
props.actions && (React__namespace.default.createElement("div", { className: css$
|
|
2303
|
-
props.onClose && (React__namespace.default.createElement("div", { className: css$
|
|
2304
|
-
React__namespace.default.createElement(IconButton, { icon: settings.notificationCard.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$
|
|
2215
|
+
props.actions && (React__namespace.default.createElement("div", { className: css$14.actionWrapper }, props.actions.map((action) => (React__namespace.default.createElement(LinkButton, { key: action.name, caption: action.name, onClick: action.action, cx: css$14.actionLink, size: settings.notificationCard.sizes.action, rawProps: action.rawProps })))))),
|
|
2216
|
+
props.onClose && (React__namespace.default.createElement("div", { className: css$14.closeWrapper },
|
|
2217
|
+
React__namespace.default.createElement(IconButton, { icon: settings.notificationCard.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$14.closeIcon }))))));
|
|
2305
2218
|
});
|
|
2306
2219
|
const WarningNotification = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, { icon: settings.notificationCard.icons.warningIcon, color: "warning", ...props, ref: ref, cx: props.cx })));
|
|
2307
2220
|
const SuccessNotification = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, { icon: settings.notificationCard.icons.successIcon, color: "success", ...props, ref: ref, cx: props.cx })));
|
|
@@ -2309,11 +2222,11 @@ const HintNotification = /* @__PURE__ */React__namespace.default.forwardRef((pro
|
|
|
2309
2222
|
const ErrorNotification = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, { icon: settings.notificationCard.icons.errorIcon, color: "error", ...props, ref: ref, cx: props.cx })));
|
|
2310
2223
|
function ClearNotification() {
|
|
2311
2224
|
const uuiCtx = uuiCore.useUuiContext();
|
|
2312
|
-
return (React__namespace.default.createElement("div", { className: cx__default.default(css$
|
|
2225
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default(css$14.notificationWrapper, css$14.clearButton) },
|
|
2313
2226
|
React__namespace.default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => uuiCtx.uuiNotifications.clearAll() })));
|
|
2314
2227
|
}
|
|
2315
2228
|
|
|
2316
|
-
var css$
|
|
2229
|
+
var css$13 = {"footer":"YnEQlR"};
|
|
2317
2230
|
|
|
2318
2231
|
class ConfirmationModal extends React__namespace.Component {
|
|
2319
2232
|
render() {
|
|
@@ -2325,7 +2238,7 @@ class ConfirmationModal extends React__namespace.Component {
|
|
|
2325
2238
|
React__namespace.createElement(ModalWindow, { width: 420 },
|
|
2326
2239
|
React__namespace.createElement(ModalHeader, { borderBottom: true, title: this.props.caption, onClose: () => this.props.abort() }),
|
|
2327
2240
|
React__namespace.createElement(ScrollBars, null, bodyContent),
|
|
2328
|
-
React__namespace.createElement(ModalFooter, { cx: css$
|
|
2241
|
+
React__namespace.createElement(ModalFooter, { cx: css$13.footer },
|
|
2329
2242
|
this.props.hideCancelButton || (React__namespace.createElement(Button, { caption: i18n.form.modals.discardButton, onClick: () => this.props.success(false), fill: "outline", color: "secondary" })),
|
|
2330
2243
|
React__namespace.createElement(Button, { caption: i18n.form.modals.saveButton, onClick: () => this.props.success(true), color: "primary" })))));
|
|
2331
2244
|
}
|
|
@@ -2355,7 +2268,7 @@ function useReliableForceUpdate() {
|
|
|
2355
2268
|
return red[1];
|
|
2356
2269
|
}
|
|
2357
2270
|
|
|
2358
|
-
var css$
|
|
2271
|
+
var css$12 = {"root":"_2Ynwsk","timepicker-input":"agnYHu","timepickerInput":"agnYHu","ltr-always":"-RVjIo","ltrAlways":"-RVjIo"};
|
|
2359
2272
|
|
|
2360
2273
|
const uuiTimePicker = {
|
|
2361
2274
|
container: 'uui-timepicker-container',
|
|
@@ -2394,8 +2307,8 @@ function TimePickerBody(props) {
|
|
|
2394
2307
|
const minutesToSubtract = value.minute() % minutesStep === 0 ? minutesStep : value.minute() % minutesStep;
|
|
2395
2308
|
onMinutesChange(value.subtract(minutesToSubtract, 'm').minute());
|
|
2396
2309
|
};
|
|
2397
|
-
return (React__namespace.createElement("div", { className: uuiCore.cx(css$
|
|
2398
|
-
React__namespace.createElement("div", { className: css$
|
|
2310
|
+
return (React__namespace.createElement("div", { className: uuiCore.cx(css$12.root, uuiTimePicker.container, props.cx), ref: props.forwardedRef, ...props.rawProps },
|
|
2311
|
+
React__namespace.createElement("div", { className: css$12.ltrAlways },
|
|
2399
2312
|
React__namespace.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
2400
2313
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment hours' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$Q, onClick: () => onHoursChange(uuiDayjs.dayjs().set(props.value).add(1, 'h').hour()) }),
|
|
2401
2314
|
React__namespace.createElement(uuiComponents.NumericInput, { cx: uuiTimePicker.input, onValueChange: onHoursChange, value: +(uuiDayjs.dayjs()
|
|
@@ -2538,7 +2451,7 @@ function TimePicker(props) {
|
|
|
2538
2451
|
state.value && state.inputValue && saveTime(state.value);
|
|
2539
2452
|
};
|
|
2540
2453
|
const renderInput = (inputProps) => {
|
|
2541
|
-
return (React__namespace.default.createElement(TextInput, { ...inputProps, onClick: null, size: props.size, isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, cx: [css$
|
|
2454
|
+
return (React__namespace.default.createElement(TextInput, { ...inputProps, onClick: null, size: props.size, isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, cx: [css$12.root, css$12.timepickerInput, props.inputCx], value: state.inputValue, onValueChange: handleInputChange, onCancel: !props.disableClear && onClear, onFocus: handleFocus, onBlur: handleBlur, isDropdown: false, placeholder: props.placeholder ? props.placeholder : getFormat(), mode: props.mode || DEFAULT_MODE, rawProps: props.rawProps?.input }));
|
|
2542
2455
|
};
|
|
2543
2456
|
const renderBody = (bodyProps) => {
|
|
2544
2457
|
const { forwardedRef, onValueChange, ...timePickerBodyProps } = props;
|
|
@@ -2548,27 +2461,27 @@ function TimePicker(props) {
|
|
|
2548
2461
|
return (React__namespace.default.createElement(Dropdown, { renderTarget: (targetProps) => (props.renderTarget ? props.renderTarget(targetProps) : renderInput(targetProps)), renderBody: (bodyProps) => !props.isDisabled && !props.isReadonly && renderBody(bodyProps), onValueChange: !props.isDisabled && !props.isReadonly ? onToggle : null, value: state.isOpen, modifiers: [{ name: 'offset', options: { offset: [0, 6] } }], forwardedRef: props.forwardedRef }));
|
|
2549
2462
|
}
|
|
2550
2463
|
|
|
2551
|
-
var css$
|
|
2464
|
+
var css$11 = {"root":"Mh6sMX"};
|
|
2552
2465
|
|
|
2553
2466
|
function applyInputAddonMods() {
|
|
2554
2467
|
return [
|
|
2555
|
-
css$
|
|
2468
|
+
css$11.root,
|
|
2556
2469
|
];
|
|
2557
2470
|
}
|
|
2558
2471
|
const InputAddon = /* @__PURE__ */uuiCore.withMods(uuiComponents.InputAddon, applyInputAddonMods);
|
|
2559
2472
|
|
|
2560
|
-
var css$
|
|
2473
|
+
var css$10 = {"root":"vjbDyM"};
|
|
2561
2474
|
|
|
2562
2475
|
function applySliderMods() {
|
|
2563
|
-
return [css$
|
|
2476
|
+
return [css$10.root, 'uui-color-neutral'];
|
|
2564
2477
|
}
|
|
2565
2478
|
const Slider = /* @__PURE__ */uuiCore.withMods(uuiComponents.Slider, applySliderMods);
|
|
2566
2479
|
|
|
2567
|
-
var css
|
|
2480
|
+
var css$$ = {"root":"t6IDqu","tooltip":"_60cWOd"};
|
|
2568
2481
|
|
|
2569
2482
|
function applyRatingMods(mods) {
|
|
2570
2483
|
return [
|
|
2571
|
-
css
|
|
2484
|
+
css$$.root,
|
|
2572
2485
|
`uui-size-${mods.size || settings.rating.sizes.default}`,
|
|
2573
2486
|
];
|
|
2574
2487
|
}
|
|
@@ -2578,7 +2491,7 @@ const Rating = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Rating,
|
|
|
2578
2491
|
Tooltip,
|
|
2579
2492
|
}));
|
|
2580
2493
|
|
|
2581
|
-
var css$
|
|
2494
|
+
var css$_ = {"root":"v-yTAM","container":"vcCPcf"};
|
|
2582
2495
|
|
|
2583
2496
|
const defaultFormat = 'MMM D, YYYY';
|
|
2584
2497
|
const valueFormat = 'YYYY-MM-DD';
|
|
@@ -2782,21 +2695,21 @@ function DatePickerHeader({ navIconLeft, navIconRight, value: { month, view }, o
|
|
|
2782
2695
|
}, [view, month]);
|
|
2783
2696
|
const disablePrev = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getPrevYearsList(month));
|
|
2784
2697
|
const disableNext = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getNextYearsList(month));
|
|
2785
|
-
return (React__namespace.createElement("div", { className: cx__default.default(css$
|
|
2698
|
+
return (React__namespace.createElement("div", { className: cx__default.default(css$_.root, uuiHeader.container, cx__default.default) },
|
|
2786
2699
|
React__namespace.createElement("header", { className: uuiHeader.headerNav },
|
|
2787
2700
|
React__namespace.createElement(Button, { icon: navIconLeft || settings.datePicker.icons.body.prevIcon, color: "secondary", fill: "ghost", cx: uuiHeader.navIconLeft, onClick: !isDisabled && (() => onLeftNavigationArrow()), isDisabled: disablePrev }),
|
|
2788
2701
|
React__namespace.createElement(Button, { caption: title, fill: "ghost", cx: uuiHeader.navTitle, onClick: !isDisabled && (() => onCaptionClick(view)) }),
|
|
2789
2702
|
React__namespace.createElement(Button, { icon: navIconRight || settings.datePicker.icons.body.nextIcon, color: "secondary", fill: "ghost", cx: uuiHeader.navIconRight, onClick: !isDisabled && (() => onRightNavigationArrow()), isDisabled: disableNext }))));
|
|
2790
2703
|
}
|
|
2791
2704
|
|
|
2792
|
-
var css$
|
|
2705
|
+
var css$Z = {"root":"DtooIy"};
|
|
2793
2706
|
|
|
2794
2707
|
function applyDateSelectionMods() {
|
|
2795
|
-
return [css$
|
|
2708
|
+
return [css$Z.root, `uui-size-${settings.datePicker.sizes.body}`];
|
|
2796
2709
|
}
|
|
2797
2710
|
const Calendar = /* @__PURE__ */uuiCore.withMods(uuiComponents.Calendar, applyDateSelectionMods);
|
|
2798
2711
|
|
|
2799
|
-
var css$
|
|
2712
|
+
var css$Y = {"root":"Irzmgm"};
|
|
2800
2713
|
|
|
2801
2714
|
const uuiDatePickerBody = {
|
|
2802
2715
|
wrapper: 'uui-datepicker-body-wrapper',
|
|
@@ -2840,7 +2753,7 @@ function StatelessDatePickerBodyComp({ renderDay, isHoliday, cx: classes, filter
|
|
|
2840
2753
|
}
|
|
2841
2754
|
};
|
|
2842
2755
|
return (React__namespace.default.createElement("div", { ref: ref, className: uuiCore.cx(uuiDatePickerBodyBase.container, `uui-size-${settings.datePicker.sizes.body}`, classes), ...rawProps },
|
|
2843
|
-
React__namespace.default.createElement("div", { className: uuiCore.cx(css$
|
|
2756
|
+
React__namespace.default.createElement("div", { className: uuiCore.cx(css$Y.root, uuiDatePickerBody.wrapper) },
|
|
2844
2757
|
React__namespace.default.createElement(DatePickerHeader, { value: {
|
|
2845
2758
|
view,
|
|
2846
2759
|
month,
|
|
@@ -2922,7 +2835,7 @@ function DatePickerComponent(props, ref) {
|
|
|
2922
2835
|
}
|
|
2923
2836
|
const DatePicker = /* @__PURE__ */React__namespace.default.forwardRef(DatePickerComponent);
|
|
2924
2837
|
|
|
2925
|
-
var css$
|
|
2838
|
+
var css$X = {"date-input":"_9E6Lq7","dateInput":"_9E6Lq7","root":"fA0K1m","separator":"nNqL7U"};
|
|
2926
2839
|
|
|
2927
2840
|
const RangeDatePickerInput = /* @__PURE__ */React.forwardRef(({ isDisabled, isInvalid, isReadonly, size, disableClear, rawProps, value, inFocus, format, onValueChange, onFocusInput, onBlurInput, onClick, getPlaceholder, filter, onKeyDown, id, cx: classes, }, ref) => {
|
|
2928
2841
|
const [inputValue, setInputValue] = React.useState(toCustomDateRangeFormat(value, format));
|
|
@@ -2965,15 +2878,15 @@ const RangeDatePickerInput = /* @__PURE__ */React.forwardRef(({ isDisabled, isIn
|
|
|
2965
2878
|
const clearAllowed = !disableClear && inputValue.from && inputValue.to;
|
|
2966
2879
|
return (
|
|
2967
2880
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
2968
|
-
React__namespace.default.createElement("div", { ref: ref, className: uuiCore.cx(`uui-size-${size || settings.rangeDatePicker.sizes.default}`, 'uui-range-date-picker', classes, css$
|
|
2969
|
-
React__namespace.default.createElement(TextInput, { icon: settings.rangeDatePicker.icons.input.calendarIcon, cx: uuiCore.cx(css$
|
|
2970
|
-
React__namespace.default.createElement("div", { className: css$
|
|
2971
|
-
React__namespace.default.createElement(TextInput, { cx: uuiCore.cx(css$
|
|
2881
|
+
React__namespace.default.createElement("div", { ref: ref, className: uuiCore.cx(`uui-size-${size || settings.rangeDatePicker.sizes.default}`, 'uui-range-date-picker', classes, css$X.root, isDisabled && uuiCore.uuiMod.disabled, isReadonly && uuiCore.uuiMod.readonly, isInvalid && uuiCore.uuiMod.invalid, inFocus && uuiCore.uuiMod.focus), onKeyDown: onKeyDown },
|
|
2882
|
+
React__namespace.default.createElement(TextInput, { icon: settings.rangeDatePicker.icons.input.calendarIcon, cx: uuiCore.cx(css$X.dateInput, inFocus === 'from' && uuiCore.uuiMod.focus), size: size || settings.rangeDatePicker.sizes.default, placeholder: getPlaceholder ? getPlaceholder('from') : i18n.rangeDatePicker.pickerPlaceholderFrom, value: inputValue.from || undefined, onValueChange: (v) => onInputChange(v || '', 'from'), onFocus: (event) => handleFocus(event, 'from'), onBlur: (event) => handleBlur(event, 'from'), isInvalid: isInvalid, isDisabled: isDisabled, isReadonly: isReadonly, isDropdown: false, rawProps: rawProps?.from, onClick: onClick, onKeyDown: onInputKeyDown, id: id }),
|
|
2883
|
+
React__namespace.default.createElement("div", { className: css$X.separator }),
|
|
2884
|
+
React__namespace.default.createElement(TextInput, { cx: uuiCore.cx(css$X.dateInput, inFocus === 'to' && uuiCore.uuiMod.focus), placeholder: getPlaceholder ? getPlaceholder('to') : i18n.rangeDatePicker.pickerPlaceholderTo, size: size || settings.rangeDatePicker.sizes.default, value: inputValue.to || undefined, onCancel: clearAllowed ? () => {
|
|
2972
2885
|
onValueChange(defaultRangeValue);
|
|
2973
2886
|
} : undefined, onValueChange: (v) => onInputChange(v || '', 'to'), onFocus: (e) => handleFocus(e, 'to'), onBlur: (e) => handleBlur(e, 'to'), isInvalid: isInvalid, isDisabled: isDisabled, isReadonly: isReadonly, isDropdown: false, rawProps: rawProps?.to, onClick: onClick, onKeyDown: onInputKeyDown })));
|
|
2974
2887
|
});
|
|
2975
2888
|
|
|
2976
|
-
var css$
|
|
2889
|
+
var css$W = {"root":"_2-Glz9"};
|
|
2977
2890
|
|
|
2978
2891
|
const uuiPresets = {
|
|
2979
2892
|
container: 'uui-presets-container',
|
|
@@ -2988,12 +2901,12 @@ const getPresets = (presets) => {
|
|
|
2988
2901
|
})).sort((a, b) => a.order - b.order);
|
|
2989
2902
|
};
|
|
2990
2903
|
function CalendarPresets(props) {
|
|
2991
|
-
return (React__namespace.createElement("div", { ref: props.forwardedRef, className: uuiCore.cx(uuiPresets.container, css$
|
|
2904
|
+
return (React__namespace.createElement("div", { ref: props.forwardedRef, className: uuiCore.cx(uuiPresets.container, css$W.root, props.cx), ...props.rawProps },
|
|
2992
2905
|
React__namespace.createElement("div", { className: uuiPresets.header }, "Presets"),
|
|
2993
2906
|
getPresets(props.presets).map((item) => (React__namespace.createElement(LinkButton, { key: item.key, caption: item.name, onClick: () => props.onPresetSet(item), size: settings.rangeDatePicker.sizes.preset })))));
|
|
2994
2907
|
}
|
|
2995
2908
|
|
|
2996
|
-
var css$
|
|
2909
|
+
var css$V = {"root":"WMiVXg","container":"tnIjE5","day-selection":"G0ULmw","daySelection":"G0ULmw","from-picker":"-GCWl2","fromPicker":"-GCWl2","to-picker":"W1XN2m","toPicker":"W1XN2m","bodes-wrapper":"_0J6obL","bodesWrapper":"_0J6obL","blocker":"_93Zilr"};
|
|
2997
2910
|
|
|
2998
2911
|
const uuiRangeDatePickerBody = {
|
|
2999
2912
|
inRange: 'uui-range-datepicker-in-range',
|
|
@@ -3134,21 +3047,21 @@ function RangeDatePickerBodyComp(props, ref) {
|
|
|
3134
3047
|
});
|
|
3135
3048
|
}, presets: presets })));
|
|
3136
3049
|
};
|
|
3137
|
-
return (React__namespace.default.createElement("div", { ref: ref, className: uuiCore.cx(css$
|
|
3138
|
-
React__namespace.default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$
|
|
3050
|
+
return (React__namespace.default.createElement("div", { ref: ref, className: uuiCore.cx(css$V.root, uuiDatePickerBodyBase.container, props.cx), ...props.rawProps },
|
|
3051
|
+
React__namespace.default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$V.daySelection, css$V.container], alignItems: "top" },
|
|
3139
3052
|
React__namespace.default.createElement(FlexCell, { width: "auto" },
|
|
3140
3053
|
React__namespace.default.createElement(FlexRow, null,
|
|
3141
|
-
React__namespace.default.createElement(FlexRow, { cx: css$
|
|
3142
|
-
React__namespace.default.createElement(StatelessDatePickerBody, { key: "date-picker-body-left", cx: uuiCore.cx(css$
|
|
3054
|
+
React__namespace.default.createElement(FlexRow, { cx: css$V.bodesWrapper, alignItems: "top" },
|
|
3055
|
+
React__namespace.default.createElement(StatelessDatePickerBody, { key: "date-picker-body-left", cx: uuiCore.cx(css$V.fromPicker), ...from, onValueChange: (v) => onBodyValueChange(v, 'from'), onMonthChange: (m) => {
|
|
3143
3056
|
setMonth(m);
|
|
3144
3057
|
}, onViewChange: (v) => setView(v), filter: props.filter, isHoliday: props.isHoliday, renderDay: props.renderDay || renderDay, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'to' }),
|
|
3145
|
-
React__namespace.default.createElement(StatelessDatePickerBody, { key: "date-picker-body-right", cx: uuiCore.cx(css$
|
|
3058
|
+
React__namespace.default.createElement(StatelessDatePickerBody, { key: "date-picker-body-right", cx: uuiCore.cx(css$V.toPicker), ...to, onValueChange: (v) => onBodyValueChange(v, 'to'), onMonthChange: (m) => {
|
|
3146
3059
|
setMonth(m.subtract(1, 'month'));
|
|
3147
3060
|
}, onViewChange: (v) => setView(v), filter: props.filter, renderDay: props.renderDay || renderDay, isHoliday: props.isHoliday, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'from' }),
|
|
3148
3061
|
view !== 'DAY_SELECTION' && (React__namespace.default.createElement("div", { style: {
|
|
3149
3062
|
left: activeMonth === 'from' ? '50%' : undefined,
|
|
3150
3063
|
right: activeMonth === 'to' ? '50%' : undefined,
|
|
3151
|
-
}, className: css$
|
|
3064
|
+
}, className: css$V.blocker }))),
|
|
3152
3065
|
props.presets && renderPresets(props.presets)),
|
|
3153
3066
|
props.renderFooter && props.renderFooter()))));
|
|
3154
3067
|
}
|
|
@@ -3168,7 +3081,7 @@ const getDayCX = (day, selectedDate) => {
|
|
|
3168
3081
|
return [uuiCore.cx(inRange && uuiRangeDatePickerBody.inRange, isFirst && uuiRangeDatePickerBody.firstDayInRangeWrapper, !inRange && isFirst && uuiRangeDatePickerBody.lastDayInRangeWrapper, isLast && uuiRangeDatePickerBody.lastDayInRangeWrapper, !inRange && isLast && uuiRangeDatePickerBody.firstDayInRangeWrapper, (dayValue === fromValue || dayValue === toValue) && uuiComponents.uuiDaySelection.selectedDay)];
|
|
3169
3082
|
};
|
|
3170
3083
|
|
|
3171
|
-
var css$
|
|
3084
|
+
var css$U = {"dropdown-container":"ZodwOc","dropdownContainer":"ZodwOc"};
|
|
3172
3085
|
|
|
3173
3086
|
const modifiers = [{
|
|
3174
3087
|
name: 'offset',
|
|
@@ -3212,7 +3125,7 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
3212
3125
|
}
|
|
3213
3126
|
};
|
|
3214
3127
|
const renderBody = (renderProps) => {
|
|
3215
|
-
return (React__namespace.default.createElement(DropdownContainer, { ...renderProps, cx: cx__default.default(css$
|
|
3128
|
+
return (React__namespace.default.createElement(DropdownContainer, { ...renderProps, cx: cx__default.default(css$U.dropdownContainer), shards: [targetRef], returnFocus: true },
|
|
3216
3129
|
React__namespace.default.createElement(FlexRow, null,
|
|
3217
3130
|
React__namespace.default.createElement(RangeDatePickerBody, { cx: cx__default.default(props.bodyCx), value: {
|
|
3218
3131
|
selectedDate: _value,
|
|
@@ -3236,75 +3149,33 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
3236
3149
|
}
|
|
3237
3150
|
const RangeDatePicker = /* @__PURE__ */React__namespace.default.forwardRef(RangeDatePickerComponent);
|
|
3238
3151
|
|
|
3239
|
-
var css$
|
|
3152
|
+
var css$T = {"root":"viX6F9","blocker":"C6j8Jq","marker":"k7NAia","top":"SEfXlM","bottom":"AjmXE5","left":"_7qcYC5","right":"FG49Or","inside":"BUo-Wk"};
|
|
3240
3153
|
|
|
3241
3154
|
function DropMarker(props) {
|
|
3242
3155
|
return props.isDndInProgress
|
|
3243
3156
|
? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
3244
|
-
props.enableBlocker && React__namespace.createElement("div", { className: css$
|
|
3157
|
+
props.enableBlocker && React__namespace.createElement("div", { className: css$T.blocker }),
|
|
3245
3158
|
React__namespace.createElement("div", { className: cx__default.default([
|
|
3246
|
-
css$
|
|
3247
|
-
css$
|
|
3248
|
-
css$
|
|
3159
|
+
css$T.root,
|
|
3160
|
+
css$T.marker,
|
|
3161
|
+
css$T[props.position],
|
|
3249
3162
|
props?.cx,
|
|
3250
3163
|
]) })))
|
|
3251
3164
|
: null;
|
|
3252
3165
|
}
|
|
3253
3166
|
|
|
3254
|
-
var css$M = {"root":"IDkfre","line-height":"m4OVST","lineHeight":"m4OVST","font-size":"WBSH1V","fontSize":"WBSH1V"};
|
|
3255
|
-
|
|
3256
|
-
function applyTextMods(mods) {
|
|
3257
|
-
return [
|
|
3258
|
-
css$M.root,
|
|
3259
|
-
'uui-text',
|
|
3260
|
-
`uui-size-${mods.size || settings.text.sizes.default}`,
|
|
3261
|
-
(mods.size !== 'none' || mods.lineHeight) && css$M.lineHeight,
|
|
3262
|
-
(mods.size !== 'none' || mods.fontSize) && css$M.fontSize,
|
|
3263
|
-
`uui-color-${mods.color || 'primary'}`,
|
|
3264
|
-
`uui-font-weight-${mods.fontWeight || '400'}`,
|
|
3265
|
-
`uui-font-style-${mods.fontStyle || 'normal'}`,
|
|
3266
|
-
'uui-typography-inline',
|
|
3267
|
-
];
|
|
3268
|
-
}
|
|
3269
|
-
const Text = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Text, applyTextMods, (props) => {
|
|
3270
|
-
const style = props?.rawProps?.style || {};
|
|
3271
|
-
props.fontSize && (style['--uui-text-font-size'] = `${props.fontSize}px`);
|
|
3272
|
-
props.lineHeight && (style['--uui-text-line-height'] = `${props.lineHeight}px`);
|
|
3273
|
-
return {
|
|
3274
|
-
rawProps: {
|
|
3275
|
-
...props?.rawProps,
|
|
3276
|
-
style: style,
|
|
3277
|
-
},
|
|
3278
|
-
};
|
|
3279
|
-
});
|
|
3280
|
-
|
|
3281
|
-
var css$L = {"root":"vH0avy","loading-word":"YgeacI","loadingWord":"YgeacI","animated-loading":"_3gO8sd","animatedLoading":"_3gO8sd","skeleton_loading":"HsK8mv","skeletonLoading":"HsK8mv"};
|
|
3282
|
-
|
|
3283
|
-
const TextPlaceholder = (props) => {
|
|
3284
|
-
const pattern = ' ';
|
|
3285
|
-
const text = React__namespace.useMemo(() => {
|
|
3286
|
-
const words = [];
|
|
3287
|
-
for (let i = 0; i < (props.wordsCount || 1); i++) {
|
|
3288
|
-
const lengthWord = Math.floor(Math.random() * 10 + 8);
|
|
3289
|
-
words.push(pattern.repeat(lengthWord));
|
|
3290
|
-
}
|
|
3291
|
-
return words;
|
|
3292
|
-
}, [props.wordsCount]);
|
|
3293
|
-
return (React__namespace.createElement("div", { "aria-busy": true, className: cx__default.default(css$L.root, 'uui-text-placeholder'), ...props.rawProps }, text.map((it, index) => (React__namespace.createElement("span", { key: index, className: cx__default.default([
|
|
3294
|
-
props.cx, css$L.loadingWord, !props.isNotAnimated && css$L.animatedLoading,
|
|
3295
|
-
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
3296
|
-
};
|
|
3297
|
-
|
|
3298
3167
|
const RichTextView = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.RichTextView, (mods) => ['uui-typography', `uui-typography-size-${mods.size || settings.richTextView.sizes.default}`]);
|
|
3299
3168
|
|
|
3300
|
-
var css$
|
|
3169
|
+
var css$S = {"modal":"LO-0ge","search-wrapper":"_0Hv78q","searchWrapper":"_0Hv78q","no-data":"CZLauV","noData":"CZLauV","type-search-to-load-size-24":"_9GQNCs","typeSearchToLoadSize24":"_9GQNCs"};
|
|
3301
3170
|
|
|
3302
3171
|
class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
3303
3172
|
constructor() {
|
|
3304
3173
|
super(...arguments);
|
|
3305
3174
|
this.lens = uuiCore.Lens.onEditableComponent(this);
|
|
3306
3175
|
this.searchLens = this.lens.prop('search').default('');
|
|
3307
|
-
this.getSearchSize = () => (uuiCore.isMobile()
|
|
3176
|
+
this.getSearchSize = () => (uuiCore.isMobile()
|
|
3177
|
+
? settings.pickerInput.sizes.body.mobileSearchInput
|
|
3178
|
+
: settings.pickerInput.sizes.body.getSearchSize({ pickerSize: this.props.searchSize }));
|
|
3308
3179
|
}
|
|
3309
3180
|
renderEmpty() {
|
|
3310
3181
|
const search = this.searchLens.get();
|
|
@@ -3316,7 +3187,7 @@ class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
|
3316
3187
|
});
|
|
3317
3188
|
}
|
|
3318
3189
|
if (this.props.minCharsToSearch && search.length < this.props.minCharsToSearch) {
|
|
3319
|
-
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$
|
|
3190
|
+
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$S.noData, grow: 1, textAlign: "center" },
|
|
3320
3191
|
React__namespace.default.createElement(Text, { size: this.props.searchSize }, i18n.dataPickerBody.typeSearchToLoadMessage)));
|
|
3321
3192
|
}
|
|
3322
3193
|
if (this.props.rows.length === 0) {
|
|
@@ -3331,25 +3202,23 @@ class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
|
3331
3202
|
}
|
|
3332
3203
|
// Default no record found message for 'NOT_FOUND' and "NO_RECORDS" reason
|
|
3333
3204
|
// TODO: make separate messages for 'NOT_FOUND' and "NO_RECORDS" reason
|
|
3334
|
-
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$
|
|
3205
|
+
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$S.noData, grow: 1, textAlign: "center" },
|
|
3335
3206
|
React__namespace.default.createElement(Text, { size: this.props.searchSize }, i18n.dataPickerBody.noRecordsMessage)));
|
|
3336
3207
|
}
|
|
3337
3208
|
}
|
|
3338
3209
|
render() {
|
|
3339
3210
|
const searchSize = this.getSearchSize();
|
|
3340
3211
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
3341
|
-
this.showSearch() && (React__namespace.default.createElement("div", { key: "search", className: uuiCore.cx(css$
|
|
3212
|
+
this.showSearch() && (React__namespace.default.createElement("div", { key: "search", className: uuiCore.cx(css$S.searchWrapper, 'uui-picker_input-body-search') },
|
|
3342
3213
|
React__namespace.default.createElement(uuiComponents.FlexCell, { grow: 1 },
|
|
3343
3214
|
React__namespace.default.createElement(SearchInput, { ref: this.searchRef, placeholder: i18n.dataPickerBody.searchPlaceholder, ...this.searchLens.toProps(), onKeyDown: this.searchKeyDown, size: searchSize, debounceDelay: this.props.searchDebounceDelay, rawProps: { dir: 'auto' } })))),
|
|
3344
|
-
React__namespace.default.createElement(FlexRow, { key: "body", cx: uuiCore.cx('uui-picker_input-body', css$
|
|
3215
|
+
React__namespace.default.createElement(FlexRow, { key: "body", cx: uuiCore.cx('uui-picker_input-body', css$S[this.props.editMode], css$S[this.props.selectionMode]), rawProps: { style: { maxHeight: this.props.maxHeight, maxWidth: this.props.maxWidth } } }, this.props.rows.length === 0 && this.props.value.topIndex === 0
|
|
3345
3216
|
// We need to also ensure that topIndex === 0, because we can have state were there is no rows but topIndex > 0, in case when we scrolled lover than we have rows
|
|
3346
3217
|
// we fix this state on next render and shouldn't show empty state.
|
|
3347
3218
|
? this.renderEmpty() : (React__namespace.default.createElement(VirtualList, { ...this.lens.toProps(), rows: this.props.rows, rawProps: this.props.rawProps, rowsCount: this.props.rowsCount, isLoading: this.props.isReloading })))));
|
|
3348
3219
|
}
|
|
3349
3220
|
}
|
|
3350
3221
|
|
|
3351
|
-
var css$J = {"footer":"Xiqpbk"};
|
|
3352
|
-
|
|
3353
3222
|
function DataPickerFooterImpl(props) {
|
|
3354
3223
|
const { search, clearSelection, view, showSelected, selectionMode, isSearchTooShort, } = props;
|
|
3355
3224
|
const size = uuiCore.isMobile() ? settings.pickerInput.sizes.body.mobileFooterLinkButton : props.size;
|
|
@@ -3362,7 +3231,7 @@ function DataPickerFooterImpl(props) {
|
|
|
3362
3231
|
const isSearching = search?.length;
|
|
3363
3232
|
const hideFooter = (rowsCount === 0 && !hasSelection) || isSearching || (isSinglePicker && props.disableClear);
|
|
3364
3233
|
const showClear = !props.disableClear && (isSinglePicker ? true : (!view.selectAll || hasSelection));
|
|
3365
|
-
return !hideFooter && (React__namespace.default.createElement(FlexRow, { cx:
|
|
3234
|
+
return !hideFooter && (React__namespace.default.createElement(FlexRow, { cx: "uui-picker_input-footer" },
|
|
3366
3235
|
!isSinglePicker && !isSearchTooShort && ( // Show this switch only for multi mode and when some rows rendered
|
|
3367
3236
|
React__namespace.default.createElement(Switch, { size: settings.pickerInput.sizes.body.footerSwitchMap[props.size], value: showSelected.value, isDisabled: !hasSelection, onValueChange: showSelected.onValueChange, label: i18n.pickerInput.showOnlySelectedLabel })),
|
|
3368
3237
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
@@ -3374,26 +3243,165 @@ function DataPickerFooterImpl(props) {
|
|
|
3374
3243
|
}
|
|
3375
3244
|
const DataPickerFooter = /* @__PURE__ */React__namespace.default.memo(DataPickerFooterImpl);
|
|
3376
3245
|
|
|
3377
|
-
var css$
|
|
3246
|
+
var css$R = {"header":"_2uPIeX","title":"pb27SQ","close":"aT2wUR"};
|
|
3378
3247
|
|
|
3379
3248
|
const DataPickerHeaderImpl = (props) => {
|
|
3380
3249
|
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
3381
|
-
return (React__namespace.default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: [css$
|
|
3382
|
-
React__namespace.default.createElement("div", { className: css$
|
|
3383
|
-
React__namespace.default.createElement(IconButton, { icon: settings.pickerInput.icons.body.pickerBodyMobileHeaderCloseIcon, onClick: () => props.close?.(), cx: css$
|
|
3250
|
+
return (React__namespace.default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: [css$R.header, 'uui-picker_input-body-header'] },
|
|
3251
|
+
React__namespace.default.createElement("div", { className: css$R.title }, title),
|
|
3252
|
+
React__namespace.default.createElement(IconButton, { icon: settings.pickerInput.icons.body.pickerBodyMobileHeaderCloseIcon, onClick: () => props.close?.(), cx: css$R.close })));
|
|
3384
3253
|
};
|
|
3385
3254
|
const DataPickerHeader = /* @__PURE__ */React__namespace.default.memo(DataPickerHeaderImpl);
|
|
3386
3255
|
|
|
3387
|
-
var css$
|
|
3256
|
+
var css$Q = {"root":"iPnhjb"};
|
|
3257
|
+
|
|
3258
|
+
const AvatarStack = /* @__PURE__ */uuiCore.withMods(uuiComponents.AvatarStack, () => [css$Q.root]);
|
|
3259
|
+
|
|
3260
|
+
var css$P = {"root":"WkS6e8"};
|
|
3261
|
+
|
|
3262
|
+
const DEFAULT_FILL = 'solid';
|
|
3263
|
+
function applyBadgeMods(mods) {
|
|
3264
|
+
return [
|
|
3265
|
+
'uui-badge',
|
|
3266
|
+
css$P.root,
|
|
3267
|
+
`uui-size-${mods.size || settings.badge.sizes.default}`,
|
|
3268
|
+
`uui-fill-${mods.fill || DEFAULT_FILL}`,
|
|
3269
|
+
`uui-color-${mods.color || 'info'}`,
|
|
3270
|
+
];
|
|
3271
|
+
}
|
|
3272
|
+
const Badge = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
3273
|
+
const styles = [applyBadgeMods(props), props.cx];
|
|
3274
|
+
const DropdownIcon = props.dropdownIcon ? props.dropdownIcon : settings.badge.icons.dropdownIcon;
|
|
3275
|
+
return (React__namespace.default.createElement(uuiComponents.Clickable, { ...props, rawProps: {
|
|
3276
|
+
'aria-haspopup': props.isDropdown,
|
|
3277
|
+
'aria-expanded': props.isOpen,
|
|
3278
|
+
...props.rawProps,
|
|
3279
|
+
}, cx: styles, ref: ref },
|
|
3280
|
+
(props.indicator && props.fill === 'outline') && (React__namespace.default.createElement("div", { className: "uui-indicator" })),
|
|
3281
|
+
props.icon && props.iconPosition !== 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
3282
|
+
props.caption && (React__namespace.default.createElement("div", { className: uuiCore.uuiElement.caption }, props.caption)),
|
|
3283
|
+
props.count !== undefined && props.count !== null && (React__namespace.default.createElement(CountIndicator, { key: "count-indicator", color: null, size: settings.badge.sizes.countIndicatorMap[props.size || settings.badge.sizes.default], caption: props.count })),
|
|
3284
|
+
props.icon && props.iconPosition === 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
3285
|
+
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
3286
|
+
});
|
|
3287
|
+
|
|
3288
|
+
var css$O = {"root":"FnHZ9u"};
|
|
3289
|
+
|
|
3290
|
+
function applyTagMods(props) {
|
|
3291
|
+
return [
|
|
3292
|
+
css$O.root,
|
|
3293
|
+
`uui-size-${props.size || settings.tag.sizes.default}`,
|
|
3294
|
+
`uui-color-${props.color || 'neutral'}`,
|
|
3295
|
+
`uui-fill-${props.fill || 'solid'}`,
|
|
3296
|
+
'uui-tag',
|
|
3297
|
+
];
|
|
3298
|
+
}
|
|
3299
|
+
const Tag = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
3300
|
+
const styles = [applyTagMods(props), props.cx];
|
|
3301
|
+
const ClearIcon = props.clearIcon ? props.clearIcon : settings.tag.icons.clearIcon;
|
|
3302
|
+
const DropdownIcon = props.dropdownIcon ? props.dropdownIcon : settings.tag.icons.dropdownIcon;
|
|
3303
|
+
return (React__namespace.default.createElement(uuiComponents.Clickable, { ...props, rawProps: {
|
|
3304
|
+
'aria-haspopup': props.isDropdown,
|
|
3305
|
+
'aria-expanded': props.isOpen,
|
|
3306
|
+
...props.rawProps,
|
|
3307
|
+
}, cx: styles, ref: ref },
|
|
3308
|
+
props.icon && props.iconPosition !== 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
3309
|
+
props.caption && (React__namespace.default.createElement("div", { className: uuiCore.uuiElement.caption }, props.caption)),
|
|
3310
|
+
props.count !== undefined && props.count !== null && (React__namespace.default.createElement(CountIndicator, { color: (!props.color || props.color === 'neutral') ? 'white' : props.color, size: settings.tag.sizes.countIndicatorMap[(props.size || settings.tag.sizes.default)], caption: props.count })),
|
|
3311
|
+
props.icon && props.iconPosition === 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
3312
|
+
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
3313
|
+
props.onClear && !props.isDisabled && (React__namespace.default.createElement(uuiComponents.IconContainer, { cx: uuiCore.uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
3314
|
+
});
|
|
3315
|
+
|
|
3316
|
+
var css$N = {"root":"VjeqzI","page":"_9-1c9K","spacer":"dxjGGM","mode-ghost":"wG4iS5","modeGhost":"wG4iS5"};
|
|
3317
|
+
|
|
3318
|
+
function Paginator(props) {
|
|
3319
|
+
const renderPaginator = (params) => (React__namespace.default.createElement("nav", { role: "navigation", className: cx__default.default(css$N.root, 'uui-paginator', `uui-size-${props.size || settings.paginator.sizes.default}`), ...params.rawProps },
|
|
3320
|
+
React__namespace.default.createElement(Button, { size: props.size || settings.paginator.sizes.default, icon: settings.paginator.icons.leftArrowIcon, onClick: params.goToPrev, isDisabled: params.isFirst || props.isDisabled, fill: "outline", color: "secondary" }),
|
|
3321
|
+
params.pages.map((page, index) => {
|
|
3322
|
+
if (page.type === 'spacer') {
|
|
3323
|
+
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$N.spacer, css$N.page), size: props.size || settings.paginator.sizes.default, key: `${index}_spacer`, caption: "...", fill: "ghost", color: "secondary", tabIndex: -1, isDisabled: props.isDisabled }));
|
|
3324
|
+
}
|
|
3325
|
+
else {
|
|
3326
|
+
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$N[`mode-${!page.isActive && 'ghost'}`], css$N.page), size: props.size || settings.paginator.sizes.default, key: page.pageNumber, caption: page.pageNumber, onClick: () => page.onClick?.(), rawProps: { 'aria-current': page.isActive }, fill: (page.isActive && 'outline') || 'ghost', color: "primary", isDisabled: props.isDisabled }));
|
|
3327
|
+
}
|
|
3328
|
+
}),
|
|
3329
|
+
React__namespace.default.createElement(Button, { size: props.size || settings.paginator.sizes.default, icon: settings.paginator.icons.rightArrowIcon, onClick: params.goToNext, isDisabled: params.isLast || props.isDisabled, fill: "outline", color: "secondary" })));
|
|
3330
|
+
return React__namespace.default.createElement(uuiComponents.Paginator, { ...props, render: renderPaginator });
|
|
3331
|
+
}
|
|
3332
|
+
|
|
3333
|
+
var css$M = {"root":"SWbi--","progress-bar":"_5cFot8","progressBar":"_5cFot8","progressBar-indeterminate":"s-SG4W","progressBarIndeterminate":"s-SG4W","size-12":"ozCU6R","size12":"ozCU6R","size-18":"_8uORty","size18":"_8uORty","size-24":"j3K6AQ","size24":"j3K6AQ"};
|
|
3334
|
+
|
|
3335
|
+
const IndeterminateBar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
3336
|
+
return (React__namespace.createElement("div", { ref: ref, className: cx__default.default('uui-indeterminate_bar', props.cx, css$M.root, css$M[`size-${props.size || 12}`]) },
|
|
3337
|
+
React__namespace.createElement("div", { className: cx__default.default(css$M.progressBar) })));
|
|
3338
|
+
});
|
|
3339
|
+
|
|
3340
|
+
var css$L = {"root":"_0--e2Q","striped":"f-wefX","animate-stripes":"lWuC-3","animateStripes":"lWuC-3","size-12":"xwZ63p","size12":"xwZ63p","size-18":"AXvm4p","size18":"AXvm4p","size-24":"KCFjfL","size24":"KCFjfL"};
|
|
3341
|
+
|
|
3342
|
+
const DEFAULT_SIZE = '12';
|
|
3343
|
+
function applyProgressBarMods(mods) {
|
|
3344
|
+
const size = mods.size || DEFAULT_SIZE;
|
|
3345
|
+
return [
|
|
3346
|
+
css$L.root,
|
|
3347
|
+
css$L[`size-${size}`],
|
|
3348
|
+
mods.striped && css$L.striped,
|
|
3349
|
+
];
|
|
3350
|
+
}
|
|
3351
|
+
const ProgressBar = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.ProgressBar, applyProgressBarMods, (props) => ({
|
|
3352
|
+
hideLabel: props.hideLabel || props.striped,
|
|
3353
|
+
}));
|
|
3354
|
+
|
|
3355
|
+
var css$K = {"root":"PH-yG1"};
|
|
3356
|
+
|
|
3357
|
+
const IndicatorBar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
3358
|
+
const { progress } = props;
|
|
3359
|
+
return progress || progress === 0 ? (React__namespace.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx__default.default(css$K.root, props.cx), hideLabel: true })) : (React__namespace.createElement(IndeterminateBar, { ref: ref, cx: cx__default.default(css$K.root, props.cx) }));
|
|
3360
|
+
});
|
|
3361
|
+
|
|
3362
|
+
var css$J = {"root":"f2f0A6"};
|
|
3363
|
+
|
|
3364
|
+
const StatusIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
3365
|
+
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
3366
|
+
css$J.root,
|
|
3367
|
+
`uui-size-${props.size || settings.statusIndicator.sizes.default}`,
|
|
3368
|
+
'uui-status_indicator',
|
|
3369
|
+
`uui-color-${props.color || 'neutral'}`,
|
|
3370
|
+
`uui-fill-${props.fill || 'solid'}`,
|
|
3371
|
+
props.cx,
|
|
3372
|
+
]) },
|
|
3373
|
+
React__namespace.default.createElement("div", { className: "uui-status_indicator-dot" }),
|
|
3374
|
+
React__namespace.default.createElement("p", { className: "uui-status_indicator-caption" }, props.caption)));
|
|
3375
|
+
});
|
|
3376
|
+
|
|
3377
|
+
var css$I = {"drag-handle":"N18RfW","dragHandle":"N18RfW","icon-container":"wTWXki","iconContainer":"wTWXki"};
|
|
3378
|
+
|
|
3379
|
+
function DataRowAddons(props) {
|
|
3380
|
+
const row = props.rowProps;
|
|
3381
|
+
const getIndent = () => {
|
|
3382
|
+
return (row.indent - 1) * settings.dataTable.sizes.body.indentUnitMap[props.size || settings.dataTable.sizes.body.row];
|
|
3383
|
+
};
|
|
3384
|
+
const getWidth = () => {
|
|
3385
|
+
return settings.dataTable.sizes.body.indentWidthMap[props.size || settings.dataTable.sizes.body.row];
|
|
3386
|
+
};
|
|
3387
|
+
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
3388
|
+
row.dnd?.srcData && React__namespace.default.createElement(uuiComponents.DragHandle, { key: "dh", cx: css$I.dragHandle, rawProps: { ...props.eventHandlers } }),
|
|
3389
|
+
row?.checkbox?.isVisible && (React__namespace.default.createElement(Checkbox, { key: "cb", cx: "uui-dr_addons-checkbox", tabIndex: props.tabIndex, size: settings.dataTable.sizes.body.checkboxMap[props.size], value: row.isChecked, indeterminate: !row.isChecked && row.isChildrenChecked, onValueChange: () => row.onCheck?.(row), isDisabled: row.checkbox.isDisabled, isInvalid: row.checkbox.isInvalid })),
|
|
3390
|
+
row.indent > 0 && (React__namespace.default.createElement("div", { key: "fold", className: cx__default.default('uui-dr_addons-indent', `uui-size-${props.size || settings.dataTable.sizes.body.row}`), style: { marginInlineStart: getIndent(), width: getWidth() } }, row.isFoldable && (React__namespace.default.createElement(uuiComponents.IconContainer, { rawProps: {
|
|
3391
|
+
'aria-label': row.isFolded ? 'Unfold' : 'Fold',
|
|
3392
|
+
role: 'button',
|
|
3393
|
+
}, key: "icon", icon: settings.dataTable.icons.body.foldingIcon, cx: [
|
|
3394
|
+
uuiCore.uuiElement.foldingArrow, uuiCore.uuiMarkers.clickable, css$I.iconContainer,
|
|
3395
|
+
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row), size: settings.dataTable.sizes.body.iconMap[props.size || settings.dataTable.sizes.body.row] }))))));
|
|
3396
|
+
}
|
|
3397
|
+
|
|
3398
|
+
var css$H = {"root":"Gh08Kk","align-widgets-top":"_9SWD5a","alignWidgetsTop":"_9SWD5a","align-widgets-center":"_3ElKKA","alignWidgetsCenter":"_3ElKKA","icon-container":"YBmnUd","iconContainer":"YBmnUd","content-wrapper":"-uHeRN","contentWrapper":"-uHeRN","render-item":"hjSTlb","renderItem":"hjSTlb","icon-wrapper":"YLpeD5","iconWrapper":"YLpeD5","icon-default":"-Yuy--","iconDefault":"-Yuy--","selected-mark":"czCCuG","selectedMark":"czCCuG"};
|
|
3388
3399
|
|
|
3389
3400
|
function DataPickerCell(props) {
|
|
3390
3401
|
const ref = React__namespace.useRef();
|
|
3391
3402
|
let content;
|
|
3392
3403
|
if (props.rowProps.isLoading) {
|
|
3393
|
-
content = (
|
|
3394
|
-
// remove `css.loadingCell` after` removing `margin: 0 3px 3px 0` from `TextPlaceholder` `loadingWord` class styles.
|
|
3395
|
-
React__namespace.createElement(Text, { key: "t", size: props.size, cx: css$H.loadingCell },
|
|
3396
|
-
React__namespace.createElement(TextPlaceholder, null)));
|
|
3404
|
+
content = settings.pickerInput.renderPlaceholder({ rowSize: props.size });
|
|
3397
3405
|
}
|
|
3398
3406
|
else if (props.rowProps.isUnknown) {
|
|
3399
3407
|
content = (React__namespace.createElement(Text, { key: "t", size: props.size }, "Unknown"));
|
|
@@ -3425,7 +3433,7 @@ function DataPickerCell(props) {
|
|
|
3425
3433
|
getWrappedContent()));
|
|
3426
3434
|
}
|
|
3427
3435
|
|
|
3428
|
-
var css$G = {"picker-row":"
|
|
3436
|
+
var css$G = {"picker-row":"ytFq3d","pickerRow":"ytFq3d"};
|
|
3429
3437
|
|
|
3430
3438
|
class DataPickerRow extends React__namespace.Component {
|
|
3431
3439
|
constructor() {
|
|
@@ -3439,7 +3447,7 @@ class DataPickerRow extends React__namespace.Component {
|
|
|
3439
3447
|
}
|
|
3440
3448
|
}
|
|
3441
3449
|
|
|
3442
|
-
var css$F = {"done":"
|
|
3450
|
+
var css$F = {"done":"hkpu2I","container":"HbjGUP"};
|
|
3443
3451
|
|
|
3444
3452
|
const PickerBodyMobileView = (props) => {
|
|
3445
3453
|
const isMobileView = uuiCore.isMobile();
|
|
@@ -3516,7 +3524,7 @@ const getHighlightedSearchMatches = (str, search) => {
|
|
|
3516
3524
|
return getDecoratedText(str, ranges);
|
|
3517
3525
|
};
|
|
3518
3526
|
|
|
3519
|
-
var css$E = {"root":"
|
|
3527
|
+
var css$E = {"root":"_2dLER3","column-gap":"TtH-k5","columnGap":"TtH-k5","title":"eR2yko","subtitle":"XKh5-q","disabled":"HnOqfw","multiline":"Mh2Dsm"};
|
|
3520
3528
|
|
|
3521
3529
|
function PickerItem(props) {
|
|
3522
3530
|
const { highlightSearchMatches = true, size, avatarUrl, isLoading, isDisabled, icon, } = props;
|
|
@@ -3537,7 +3545,7 @@ function getAvatarSize(size, isMultiline) {
|
|
|
3537
3545
|
return settings.pickerInput.sizes.body[isMultiline ? 'itemAvatarMultilineMap' : 'itemAvatarMap'][size];
|
|
3538
3546
|
}
|
|
3539
3547
|
|
|
3540
|
-
var css$D = {"sub-header-wrapper":"
|
|
3548
|
+
var css$D = {"sub-header-wrapper":"FcH9yU","subHeaderWrapper":"FcH9yU","switch":"i2ItvS","no-found-modal-container":"houlsn","noFoundModalContainer":"houlsn","no-found-modal-container-icon":"AlI5wz","noFoundModalContainerIcon":"AlI5wz","no-found-modal-container-text":"zpqrOc","noFoundModalContainerText":"zpqrOc"};
|
|
3541
3549
|
|
|
3542
3550
|
function PickerModal(props) {
|
|
3543
3551
|
const { view, selection, dataSourceStateLens, dataSourceState, getDataSourceState, getName, clearSelection, getRows, getListProps, getFooterProps, isSingleSelect, handleDataSourceValueChange, } = uuiComponents.usePickerModal(props);
|
|
@@ -3592,7 +3600,7 @@ function PickerModal(props) {
|
|
|
3592
3600
|
React__namespace.default.createElement(ModalFooter, null, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
|
|
3593
3601
|
}
|
|
3594
3602
|
|
|
3595
|
-
var css$C = {"tooltip":"
|
|
3603
|
+
var css$C = {"tooltip":"AnSd6-"};
|
|
3596
3604
|
|
|
3597
3605
|
const PickerTogglerTag = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
3598
3606
|
const tagProps = {
|
|
@@ -3611,7 +3619,7 @@ const PickerTogglerTag = /* @__PURE__ */React__namespace.forwardRef((props, ref)
|
|
|
3611
3619
|
}
|
|
3612
3620
|
});
|
|
3613
3621
|
|
|
3614
|
-
var css$B = {"root":"
|
|
3622
|
+
var css$B = {"root":"UChqVS"};
|
|
3615
3623
|
|
|
3616
3624
|
const defaultMode = EditMode.FORM;
|
|
3617
3625
|
function applyPickerTogglerMods(mods) {
|
|
@@ -3619,7 +3627,7 @@ function applyPickerTogglerMods(mods) {
|
|
|
3619
3627
|
css$B.root,
|
|
3620
3628
|
'uui-picker_toggler',
|
|
3621
3629
|
`uui-size-${mods.size || settings.pickerInput.sizes.toggler.default}`,
|
|
3622
|
-
|
|
3630
|
+
'uui-control-mode-' + (mods.mode || defaultMode),
|
|
3623
3631
|
];
|
|
3624
3632
|
}
|
|
3625
3633
|
function PickerTogglerComponent(props, ref) {
|
|
@@ -3712,7 +3720,7 @@ function PickerInputComponent({ highlightSearchMatches = true, ...props }, ref)
|
|
|
3712
3720
|
}
|
|
3713
3721
|
const PickerInput = /* @__PURE__ */React__namespace.default.forwardRef(PickerInputComponent);
|
|
3714
3722
|
|
|
3715
|
-
var css$A = {"row":"
|
|
3723
|
+
var css$A = {"row":"sAxESU"};
|
|
3716
3724
|
|
|
3717
3725
|
function PickerListItem(props) {
|
|
3718
3726
|
let label;
|
|
@@ -3732,7 +3740,7 @@ function PickerListItem(props) {
|
|
|
3732
3740
|
return (React__namespace.default.createElement("div", { role: "option", "aria-selected": props.isSelectable ? props.isSelected : undefined, "aria-busy": props.isLoading, "aria-posinset": props.index + 1, ...(props.checkbox?.isVisible && { 'aria-checked': props.isChecked }), className: css$A.row }, component));
|
|
3733
3741
|
}
|
|
3734
3742
|
|
|
3735
|
-
var css$z = {"root":"
|
|
3743
|
+
var css$z = {"root":"PO0ywP"};
|
|
3736
3744
|
|
|
3737
3745
|
function PickerList(props) {
|
|
3738
3746
|
const { context, view, onlySelectedView, getName, getEntityName, appendLastSelected, getSelectedIdsArray, buildRowsList, getMaxDefaultItems, dataSourceState, getModalTogglerCaption, } = uuiComponents.usePickerList(props);
|
|
@@ -3767,7 +3775,7 @@ function PickerList(props) {
|
|
|
3767
3775
|
}, selectedRows)));
|
|
3768
3776
|
}
|
|
3769
3777
|
|
|
3770
|
-
var css$y = {"root":"
|
|
3778
|
+
var css$y = {"root":"LnPKn8","wrapper":"poTKE2","align-widgets-top":"pw50ng","alignWidgetsTop":"pw50ng","align-widgets-center":"zoTFaE","alignWidgetsCenter":"zoTFaE"};
|
|
3771
3779
|
|
|
3772
3780
|
function DataTableCell(initialProps) {
|
|
3773
3781
|
const props = { ...initialProps };
|
|
@@ -3775,8 +3783,7 @@ function DataTableCell(initialProps) {
|
|
|
3775
3783
|
props.addons = React__namespace.createElement(DataRowAddons, { size: props.size, ...props });
|
|
3776
3784
|
}
|
|
3777
3785
|
props.renderPlaceholder = props.renderPlaceholder
|
|
3778
|
-
|| (() =>
|
|
3779
|
-
React__namespace.createElement(TextPlaceholder, { isNotAnimated: true }))));
|
|
3786
|
+
|| (() => settings.dataTable.renderPlaceholder({ rowSize: props.size }));
|
|
3780
3787
|
props.renderUnknown = props.renderUnknown
|
|
3781
3788
|
|| (() => (React__namespace.createElement(Text, { key: "t", size: props.size }, "Unknown")));
|
|
3782
3789
|
props.renderTooltip = (tooltipProps) => React__namespace.createElement(Tooltip, { color: "critical", ...tooltipProps });
|
|
@@ -3816,7 +3823,7 @@ function DataTableCell(initialProps) {
|
|
|
3816
3823
|
return React__namespace.createElement(uuiComponents.DataTableCell, { ...props });
|
|
3817
3824
|
}
|
|
3818
3825
|
|
|
3819
|
-
var css$x = {"root":"
|
|
3826
|
+
var css$x = {"root":"zqwdl-"};
|
|
3820
3827
|
|
|
3821
3828
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
3822
3829
|
// As we need our mods to style the cell properly, we extract them from DataTableCellProps.rowProps, which is a hack, but it's reliable enough.
|
|
@@ -3832,7 +3839,7 @@ const DataTableRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.DataTableRow,
|
|
|
3832
3839
|
];
|
|
3833
3840
|
}, () => propsMods);
|
|
3834
3841
|
|
|
3835
|
-
var css$w = {"sorting-panel-container":"
|
|
3842
|
+
var css$w = {"sorting-panel-container":"KTSips","sortingPanelContainer":"KTSips"};
|
|
3836
3843
|
|
|
3837
3844
|
const SortingPanelImpl = ({ sortDirection, onSort }) => {
|
|
3838
3845
|
const sortAsc = React.useCallback(() => onSort(sortDirection === 'asc' ? undefined : 'asc'), [onSort]);
|
|
@@ -3857,7 +3864,7 @@ const ColumnHeaderDropdownImpl = (props) => {
|
|
|
3857
3864
|
};
|
|
3858
3865
|
const ColumnHeaderDropdown = /* @__PURE__ */React__namespace.default.memo(ColumnHeaderDropdownImpl);
|
|
3859
3866
|
|
|
3860
|
-
var css$v = {"root":"
|
|
3867
|
+
var css$v = {"root":"DtobLp","caption-wrapper":"_8L2tj4","captionWrapper":"_8L2tj4","sort-icon":"NKUDhr","sortIcon":"NKUDhr","dropdown-icon":"WHQMOM","dropdownIcon":"WHQMOM","infoIcon":"ft6BzC","resizable":"_0xA-AB","align-right":"O1S3eo","alignRight":"O1S3eo","align-center":"JjlZ-3","alignCenter":"JjlZ-3","caption":"wgmBIr","truncate":"BsDWrN","upper-case":"aAr45L","upperCase":"aAr45L","checkbox":"_3OYlGj","icon":"q8HtL7","fold-all-icon":"U-4O2D","foldAllIcon":"U-4O2D","cell-tooltip":"_1s1jHb","cellTooltip":"_1s1jHb","resizing-marker":"hbMsXX","resizingMarker":"hbMsXX","pinned-right":"Rapez1","pinnedRight":"Rapez1","draggable":"aceCvl","ghost":"cAp7Hc","is-dragged-out":"utPUYh","isDraggedOut":"utPUYh","dnd-marker-left":"NkNYZr","dndMarkerLeft":"NkNYZr","dnd-marker-right":"UmsWvd","dndMarkerRight":"UmsWvd","cell-tooltip-wrapper":"qqsOO-","cellTooltipWrapper":"qqsOO-","cell-tooltip-text":"eWXtLz","cellTooltipText":"eWXtLz","tooltip-caption":"uCPDfd","tooltipCaption":"uCPDfd","tooltip-info":"iC-ZvO","tooltipInfo":"iC-ZvO"};
|
|
3861
3868
|
|
|
3862
3869
|
class DataTableHeaderCell extends React__namespace.Component {
|
|
3863
3870
|
constructor() {
|
|
@@ -3951,7 +3958,7 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
3951
3958
|
}
|
|
3952
3959
|
}
|
|
3953
3960
|
|
|
3954
|
-
var css$u = {"root":"
|
|
3961
|
+
var css$u = {"root":"BKV7YL","caption-wrapper":"_09PFkN","captionWrapper":"_09PFkN","align-center":"tyhd6B","alignCenter":"tyhd6B","caption":"VDPGbO","truncate":"c7dWjC","upper-case":"pRNyJ9","upperCase":"pRNyJ9","group-cell-tooltip":"_1uiLeP","groupCellTooltip":"_1uiLeP","group-cell-tooltip-wrapper":"bfzLBK","groupCellTooltipWrapper":"bfzLBK","group-cell-tooltip-text":"EQu1nO","groupCellTooltipText":"EQu1nO","tooltip-caption":"myAWQW","tooltipCaption":"myAWQW","tooltip-info":"_9G2uez","tooltipInfo":"_9G2uez"};
|
|
3955
3962
|
|
|
3956
3963
|
class DataTableHeaderGroupCell extends React__namespace.Component {
|
|
3957
3964
|
constructor() {
|
|
@@ -3991,7 +3998,7 @@ class DataTableHeaderGroupCell extends React__namespace.Component {
|
|
|
3991
3998
|
}
|
|
3992
3999
|
}
|
|
3993
4000
|
|
|
3994
|
-
var css$t = {"root":"
|
|
4001
|
+
var css$t = {"root":"R6zorr"};
|
|
3995
4002
|
|
|
3996
4003
|
const DataTableHeaderRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.DataTableHeaderRow, () => [css$t.root, 'uui-dt-vars'], (mods) => ({
|
|
3997
4004
|
renderCell: (props) => (React__namespace.createElement(DataTableHeaderCell, { ...props, size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key, columnsGap: mods.columnsGap })),
|
|
@@ -4004,7 +4011,7 @@ const UUI_FILTERS_PANEL_ADD_BUTTON_BODY = 'uui-filters-panel-add-button-body';
|
|
|
4004
4011
|
const UUI_FILTERS_PANEL_ITEM_BODY = 'uui-filters-panel-item-body';
|
|
4005
4012
|
const UUI_FILTERS_PANEL_ITEM_TOGGLER = 'uui-filters-panel-item-toggler';
|
|
4006
4013
|
|
|
4007
|
-
var css$s = {"root":"
|
|
4014
|
+
var css$s = {"root":"_8qcSn3","title-wrapper":"STe-R-","titleWrapper":"STe-R-","title":"wAUsDj","text-wrapper":"dik8kB","textWrapper":"dik8kB","selection":"sC4jGR","postfix":"_41deNy","selected":"_2vL54k"};
|
|
4008
4015
|
|
|
4009
4016
|
const FilterPanelItemToggler = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
4010
4017
|
const togglerPickerOpened = (e) => {
|
|
@@ -4172,7 +4179,7 @@ function FilterRangeDatePickerBody(props) {
|
|
|
4172
4179
|
React__namespace.default.createElement(LinkButton, { isDisabled: !value.from && !value.to, caption: i18n.pickerModal.clearAllButton, onClick: () => onValueChange(defaultRangeValue) })))));
|
|
4173
4180
|
}
|
|
4174
4181
|
|
|
4175
|
-
var css$r = {"container":"
|
|
4182
|
+
var css$r = {"container":"LceOMM"};
|
|
4176
4183
|
|
|
4177
4184
|
function FilterNumericBody(props) {
|
|
4178
4185
|
const isInRangePredicate = props?.selectedPredicate === 'inRange' || props?.selectedPredicate === 'notInRange';
|
|
@@ -4268,7 +4275,7 @@ var SvgActionDeleteOutline = function SvgActionDeleteOutline(props, ref) {
|
|
|
4268
4275
|
};
|
|
4269
4276
|
var ForwardRef$a = /*#__PURE__*/React.forwardRef(SvgActionDeleteOutline);
|
|
4270
4277
|
|
|
4271
|
-
var css$q = {"header":"
|
|
4278
|
+
var css$q = {"header":"CxND9E","removeButton":"HavBQt","with-search":"uJeWbW","withSearch":"uJeWbW"};
|
|
4272
4279
|
|
|
4273
4280
|
function useView(props, value) {
|
|
4274
4281
|
const forceUpdate = uuiCore.useForceUpdate();
|
|
@@ -4574,7 +4581,7 @@ function FiltersToolbarImpl(props) {
|
|
|
4574
4581
|
}
|
|
4575
4582
|
const FiltersPanel = /* @__PURE__ */React__namespace.default.memo(FiltersToolbarImpl);
|
|
4576
4583
|
|
|
4577
|
-
var css$p = {"divider":"
|
|
4584
|
+
var css$p = {"divider":"peZ6yB","dropdownDeleteIcon":"_8gNZR3","presetsWrapper":"Rmlxqn","addPresetContainer":"eYJ-uR","dropContainer":"MmXF0F"};
|
|
4578
4585
|
|
|
4579
4586
|
var _path$9;
|
|
4580
4587
|
function _extends$9() { return _extends$9 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$9.apply(null, arguments); }
|
|
@@ -4655,7 +4662,7 @@ var SvgContentLinkOutline = function SvgContentLinkOutline(props, ref) {
|
|
|
4655
4662
|
};
|
|
4656
4663
|
var ForwardRef$5 = /*#__PURE__*/React.forwardRef(SvgContentLinkOutline);
|
|
4657
4664
|
|
|
4658
|
-
var css$o = {"delete-button":"
|
|
4665
|
+
var css$o = {"delete-button":"ELeF4D","deleteButton":"ELeF4D","tab-button":"YVTZDR","tabButton":"YVTZDR","targetOpen":"xge902"};
|
|
4659
4666
|
|
|
4660
4667
|
function PresetActionsDropdown(props) {
|
|
4661
4668
|
const { uuiNotifications } = uuiCore.useUuiContext();
|
|
@@ -4722,7 +4729,7 @@ function PresetActionsDropdown(props) {
|
|
|
4722
4729
|
return (React__namespace.default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end", modifiers: [{ name: 'offset', options: { offset: [0, 22] } }] }));
|
|
4723
4730
|
}
|
|
4724
4731
|
|
|
4725
|
-
var css$n = {"preset-input-cell":"
|
|
4732
|
+
var css$n = {"preset-input-cell":"k8PDrv","presetInputCell":"k8PDrv","preset-input":"rLqP9t","presetInput":"rLqP9t"};
|
|
4726
4733
|
|
|
4727
4734
|
const UUI_PRESETS_PANEL_ADD_BUTTON = 'uui-presets-panel-add-button';
|
|
4728
4735
|
const UUI_PRESETS_PANEL_MORE_BUTTON = 'uui-presets-panel-more-button';
|
|
@@ -4754,7 +4761,7 @@ function PresetInput(props) {
|
|
|
4754
4761
|
React__namespace.default.createElement(TextInput, { cx: css$n.presetInput, onValueChange: setPresetCaption, value: presetCaption, onCancel: cancelActionHandler, onAccept: acceptActionHandler, onBlur: newPresetOnBlurHandler, autoFocus: true, maxLength: 50, isReadonly: readonly })));
|
|
4755
4762
|
}
|
|
4756
4763
|
|
|
4757
|
-
var css$m = {"preset":"
|
|
4764
|
+
var css$m = {"preset":"X-ipT2","activePreset":"pAAlOe"};
|
|
4758
4765
|
|
|
4759
4766
|
function Preset(props) {
|
|
4760
4767
|
const [isRenamePreset, setIsRenamePreset] = React.useState(false);
|
|
@@ -4880,7 +4887,7 @@ const useColumnsWithFilters = (initialColumns, filters) => {
|
|
|
4880
4887
|
return columns;
|
|
4881
4888
|
};
|
|
4882
4889
|
|
|
4883
|
-
var css$l = {"unpin-icon":"
|
|
4890
|
+
var css$l = {"unpin-icon":"xhRRXP","unpinIcon":"xhRRXP","pin-toggler-icon":"Ww2Xpi","pinTogglerIcon":"Ww2Xpi"};
|
|
4884
4891
|
|
|
4885
4892
|
function PinIconButton(props) {
|
|
4886
4893
|
const i18nLocal = i18n.tables.columnsConfigurationModal;
|
|
@@ -4922,7 +4929,7 @@ function getUnpinIcon(params) {
|
|
|
4922
4929
|
}
|
|
4923
4930
|
}
|
|
4924
4931
|
|
|
4925
|
-
var css$k = {"row-wrapper":"
|
|
4932
|
+
var css$k = {"row-wrapper":"Kq0u-g","rowWrapper":"Kq0u-g","pin-icon-button":"FsP3mk","pinIconButton":"FsP3mk","not-pinned":"gcZpkD","notPinned":"gcZpkD","checkbox":"bNlRhQ","drag-handle":"g9DDG-","dragHandle":"g9DDG-","dnd-disabled":"xiDvE-","dndDisabled":"xiDvE-"};
|
|
4926
4933
|
|
|
4927
4934
|
const ColumnRow = /* @__PURE__ */React__namespace.memo(function ColumnRow(props) {
|
|
4928
4935
|
const { column } = props;
|
|
@@ -4945,7 +4952,7 @@ const ColumnRow = /* @__PURE__ */React__namespace.memo(function ColumnRow(props)
|
|
|
4945
4952
|
return (React__namespace.createElement(uuiCore.DndActor, { key: column.key, srcData: isDndAllowed && data, dstData: data, canAcceptDrop: onCanAcceptDrop, onDrop: onDrop, render: renderContent }));
|
|
4946
4953
|
});
|
|
4947
4954
|
|
|
4948
|
-
var css$j = {"root":"
|
|
4955
|
+
var css$j = {"root":"ixRIru","main-panel":"rw73Mj","mainPanel":"rw73Mj","group":"_5FM-MW","group-title":"lZsiEP","groupTitle":"lZsiEP","group-items":"-tPEZb","groupItems":"-tPEZb","no-data":"qJeFEW","noData":"qJeFEW","no-data-title":"_5RDMpJ","noDataTitle":"_5RDMpJ","no-data-sub-title":"_-76OKl","noDataSubTitle":"_-76OKl","h-divider":"YzCSyp","hDivider":"YzCSyp","search-area":"zH5jDP","searchArea":"zH5jDP","subgroup-accordion":"kJBbYU","subgroupAccordion":"kJBbYU","subgroup":"_0N72lN","subgroup-title":"TrCSkO","subgroupTitle":"TrCSkO"};
|
|
4949
4956
|
|
|
4950
4957
|
const renderGroupTitle = (title, amount) => (React__namespace.createElement(FlexRow, { cx: css$j.group },
|
|
4951
4958
|
React__namespace.createElement(Text, { size: "none", cx: css$j.groupTitle }, title),
|
|
@@ -5047,7 +5054,7 @@ const getChildrenAndRest = (row, rows) => {
|
|
|
5047
5054
|
return [children, rest];
|
|
5048
5055
|
};
|
|
5049
5056
|
|
|
5050
|
-
var css$i = {"listContainer":"
|
|
5057
|
+
var css$i = {"listContainer":"_65FTPM","header":"qdiP2a","group":"_4OSDa0","stickyHeader":"KaNPhC"};
|
|
5051
5058
|
|
|
5052
5059
|
function DataRowsGroup({ row, childRows, renderRow, top = 1, }) {
|
|
5053
5060
|
const rowRef = React.useRef();
|
|
@@ -5087,7 +5094,7 @@ function DataRowsContainer({ estimatedHeight, listContainerRef, offsetY, rows, r
|
|
|
5087
5094
|
React__namespace.default.createElement(DataRowsGroups, { rows: rows, renderRow: renderRow, top: headerRef?.current?.clientHeight }))));
|
|
5088
5095
|
}
|
|
5089
5096
|
|
|
5090
|
-
var css$h = {"root":"
|
|
5097
|
+
var css$h = {"root":"_7tA7Ur","sticky-header":"kLsdEF","stickyHeader":"kLsdEF","no-results":"_5-lNRa","noResults":"_5-lNRa","icon":"ClZ2Ik","title":"QHRKj2"};
|
|
5091
5098
|
|
|
5092
5099
|
function DataTable(props) {
|
|
5093
5100
|
const { uuiModals } = uuiCore.useUuiContext();
|
|
@@ -5136,9 +5143,9 @@ function DataTable(props) {
|
|
|
5136
5143
|
} }))));
|
|
5137
5144
|
}
|
|
5138
5145
|
|
|
5139
|
-
var css$g = {"root":"
|
|
5146
|
+
var css$g = {"root":"_9BeTNg"};
|
|
5140
5147
|
|
|
5141
|
-
var css$f = {"root":"
|
|
5148
|
+
var css$f = {"root":"bhNFlG","burger-content":"OYv2V-","burgerContent":"OYv2V-"};
|
|
5142
5149
|
|
|
5143
5150
|
var _path$3;
|
|
5144
5151
|
function _extends$3() { return _extends$3 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$3.apply(null, arguments); }
|
|
@@ -5181,7 +5188,7 @@ var SvgNavigationArrowDownOutline = function SvgNavigationArrowDownOutline(props
|
|
|
5181
5188
|
};
|
|
5182
5189
|
var ForwardRef$2 = /*#__PURE__*/React.forwardRef(SvgNavigationArrowDownOutline);
|
|
5183
5190
|
|
|
5184
|
-
var css$e = {"root":"
|
|
5191
|
+
var css$e = {"root":"M5dNn1","button-primary":"LdZ8NB","buttonPrimary":"LdZ8NB","button-secondary":"-gMdur","buttonSecondary":"-gMdur","hasIcon":"G1ogfs","dropdown":"UAPB4K"};
|
|
5185
5192
|
|
|
5186
5193
|
const BurgerButton = /* @__PURE__ */uuiCore.withMods(uuiComponents.Button, (props) => [
|
|
5187
5194
|
css$e.root,
|
|
@@ -5192,13 +5199,13 @@ const BurgerButton = /* @__PURE__ */uuiCore.withMods(uuiComponents.Button, (prop
|
|
|
5192
5199
|
props.icon && css$e.hasIcon,
|
|
5193
5200
|
], () => ({ dropdownIcon: ForwardRef$2, dropdownIconPosition: 'left', role: 'menuitem' }));
|
|
5194
5201
|
|
|
5195
|
-
var css$d = {"search-input":"
|
|
5202
|
+
var css$d = {"search-input":"wW--Oj","searchInput":"wW--Oj"};
|
|
5196
5203
|
|
|
5197
5204
|
function BurgerSearch(props) {
|
|
5198
5205
|
return (React__namespace.createElement(uuiComponents.TextInput, { cx: cx__default.default(css$d.searchInput, 'uui-main_menu-burger-search'), iconPosition: "left", icon: ForwardRef$N, placeholder: props.placeholder, value: props.value, onValueChange: props.onValueChange, onCancel: props.onCancel, cancelIcon: props.value && ForwardRef$R }));
|
|
5199
5206
|
}
|
|
5200
5207
|
|
|
5201
|
-
var css$c = {"root":"
|
|
5208
|
+
var css$c = {"root":"ViR-KC","group-header":"Tc88T6","groupHeader":"Tc88T6","group-name":"hrsm0f","groupName":"hrsm0f","line":"pEKJJz"};
|
|
5202
5209
|
|
|
5203
5210
|
function BurgerGroupHeader(props) {
|
|
5204
5211
|
return (React__namespace.createElement("div", { className: cx__default.default(css$c.root, css$c.groupHeader, 'uui-burger-group-header') },
|
|
@@ -5206,7 +5213,7 @@ function BurgerGroupHeader(props) {
|
|
|
5206
5213
|
React__namespace.createElement("span", { className: css$c.groupName }, props.caption)));
|
|
5207
5214
|
}
|
|
5208
5215
|
|
|
5209
|
-
var css$b = {"root":"
|
|
5216
|
+
var css$b = {"root":"AQmYK-","type-primary":"HVa9q1","typePrimary":"HVa9q1","type-secondary":"hk-x0O","typeSecondary":"hk-x0O"};
|
|
5210
5217
|
|
|
5211
5218
|
const MainMenuButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5212
5219
|
const { type, ...clickableProps } = props;
|
|
@@ -5228,7 +5235,7 @@ const MainMenuButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) =
|
|
|
5228
5235
|
props.isDropdown && (React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$Q, flipY: props.isOpen }))));
|
|
5229
5236
|
});
|
|
5230
5237
|
|
|
5231
|
-
var css$a = {"dropdown-body":"
|
|
5238
|
+
var css$a = {"dropdown-body":"nu7nUz","dropdownBody":"nu7nUz"};
|
|
5232
5239
|
|
|
5233
5240
|
class MainMenuDropdown extends React__namespace.Component {
|
|
5234
5241
|
render() {
|
|
@@ -5286,12 +5293,12 @@ var SvgNavigationGlobalMenuOutlineOutline = function SvgNavigationGlobalMenuOutl
|
|
|
5286
5293
|
};
|
|
5287
5294
|
var ForwardRef$1 = /*#__PURE__*/React.forwardRef(SvgNavigationGlobalMenuOutlineOutline);
|
|
5288
5295
|
|
|
5289
|
-
var css$9 = {"global-menu-btn":"
|
|
5296
|
+
var css$9 = {"global-menu-btn":"J1KB8-","globalMenuBtn":"J1KB8-","global-menu-icon":"COSxSw","globalMenuIcon":"COSxSw"};
|
|
5290
5297
|
|
|
5291
5298
|
const GlobalMenu = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("button", { ref: ref, id: "global_menu_toggle", className: cx__default.default(css$9.globalMenuBtn, props.cx), ...props.rawProps },
|
|
5292
5299
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 36, icon: ForwardRef$1, cx: css$9.globalMenuIcon }))));
|
|
5293
5300
|
|
|
5294
|
-
var css$8 = {"container":"
|
|
5301
|
+
var css$8 = {"container":"M2FK-s","open":"JgmGjS","folding-arrow":"bvletb","foldingArrow":"bvletb"};
|
|
5295
5302
|
|
|
5296
5303
|
const MainMenuAvatar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("button", { ref: ref, className: cx__default.default(css$8.container, props.isDropdown && css$8.dropdown, props.isOpen && css$8.open, props.onClick && uuiCore.uuiMarkers.clickable, props.cx), onClick: props.onClick, ...props.rawProps },
|
|
5297
5304
|
React__namespace.createElement(uuiComponents.Avatar, { size: "36", img: props.avatarUrl }),
|
|
@@ -5299,15 +5306,15 @@ const MainMenuAvatar = /* @__PURE__ */React__namespace.forwardRef((props, ref) =
|
|
|
5299
5306
|
props.isDropdown && (React__namespace.createElement("div", null,
|
|
5300
5307
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, icon: ForwardRef$Q, flipY: props.isOpen, cx: css$8.foldingArrow }))))));
|
|
5301
5308
|
|
|
5302
|
-
var css$7 = {"search-input":"
|
|
5309
|
+
var css$7 = {"search-input":"A94GJg","searchInput":"A94GJg"};
|
|
5303
5310
|
|
|
5304
5311
|
const MainMenuSearch = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement(uuiCore.IEditableDebouncer, { ...props, render: (iEditable) => (React__namespace.createElement(uuiComponents.TextInput, { iconPosition: "left", icon: ForwardRef$N, cancelIcon: props.value?.length > 0 && ForwardRef$R, ...props, ...iEditable, ref: ref, cx: uuiCore.cx(css$7.searchInput, props.cx), ...props.rawProps })) })));
|
|
5305
5312
|
|
|
5306
|
-
var css$6 = {"container":"
|
|
5313
|
+
var css$6 = {"container":"lUhHjj"};
|
|
5307
5314
|
|
|
5308
5315
|
const MainMenuIcon = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement(IconButton, { ref: ref, icon: props.icon, cx: uuiCore.cx(props.cx, css$6.container), ...props })));
|
|
5309
5316
|
|
|
5310
|
-
var css$5 = {"root":"
|
|
5317
|
+
var css$5 = {"root":"guez0w"};
|
|
5311
5318
|
|
|
5312
5319
|
const Anchor = /* @__PURE__ */uuiCore.withMods(uuiComponents.Anchor, () => [css$5.root]);
|
|
5313
5320
|
|
|
@@ -5365,7 +5372,7 @@ var SvgFileCloudUploadFill = function SvgFileCloudUploadFill(props, ref) {
|
|
|
5365
5372
|
};
|
|
5366
5373
|
var ForwardRef = /*#__PURE__*/React.forwardRef(SvgFileCloudUploadFill);
|
|
5367
5374
|
|
|
5368
|
-
var css$4 = {"root":"
|
|
5375
|
+
var css$4 = {"root":"_9i4W3h","drop-start":"jACi28","dropStart":"jACi28","drop-over":"Fy0zmb","dropOver":"Fy0zmb","link":"ajOWu-","drop-area":"v1Vzz8","dropArea":"v1Vzz8","drop-caption":"xSC5UP","dropCaption":"xSC5UP","icon-blue":"TKmz3v","iconBlue":"TKmz3v"};
|
|
5369
5376
|
|
|
5370
5377
|
function DropSpot(props) {
|
|
5371
5378
|
const getInfoText = typeof props.infoText === 'string'
|
|
@@ -5383,7 +5390,7 @@ function DropSpot(props) {
|
|
|
5383
5390
|
return React__namespace.createElement(uuiComponents.DropSpot, { render: renderAttachmentArea, onFilesDropped: props.onUploadFiles });
|
|
5384
5391
|
}
|
|
5385
5392
|
|
|
5386
|
-
var css$3 = {"root":"
|
|
5393
|
+
var css$3 = {"root":"_8EvdTZ"};
|
|
5387
5394
|
|
|
5388
5395
|
const SvgCircleProgress = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5389
5396
|
const outsetRadius = props.size / 2 - 1;
|
|
@@ -5394,7 +5401,7 @@ const SvgCircleProgress = /* @__PURE__ */React__namespace.forwardRef((props, ref
|
|
|
5394
5401
|
React__namespace.createElement("circle", { strokeWidth: 1, fill: "transparent", r: outsetRadius, cx: props.size / 2, cy: props.size / 2 })));
|
|
5395
5402
|
});
|
|
5396
5403
|
|
|
5397
|
-
var css$2 = {"root":"
|
|
5404
|
+
var css$2 = {"root":"YupJrV","file-name":"o0JuqN","fileName":"o0JuqN","default-color":"tp0RxW","defaultColor":"tp0RxW","doc-color":"-DgvaJ","docColor":"-DgvaJ","xls-color":"oQiwXL","xlsColor":"oQiwXL","pdf-color":"KBqZzg","pdfColor":"KBqZzg","movie-color":"-oZz9x","movieColor":"-oZz9x","img-color":"mc6C2t","imgColor":"mc6C2t","mov-color":"-kinsM","movColor":"-kinsM","error-block":"OS1wOc","errorBlock":"OS1wOc","icons-block":"_5fCCkN","iconsBlock":"_5fCCkN"};
|
|
5398
5405
|
|
|
5399
5406
|
const FileCard = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5400
5407
|
const [isLoadingShow, setIsLoadingShow] = React__namespace.useState(true);
|
|
@@ -5513,7 +5520,7 @@ const getErrorPageConfig = () => ({
|
|
|
5513
5520
|
},
|
|
5514
5521
|
});
|
|
5515
5522
|
|
|
5516
|
-
var css$1 = {"container":"
|
|
5523
|
+
var css$1 = {"container":"dRwaBm"};
|
|
5517
5524
|
|
|
5518
5525
|
const ErrorPage = (props) => {
|
|
5519
5526
|
const isMobileScreen = uuiCore.isMobile();
|
|
@@ -5525,7 +5532,7 @@ const ErrorPage = (props) => {
|
|
|
5525
5532
|
props?.supportLink && React__namespace.default.createElement("div", { className: "uui-error-support-link" }, props?.supportLink))));
|
|
5526
5533
|
};
|
|
5527
5534
|
|
|
5528
|
-
var css = {"recovery-spinner":"
|
|
5535
|
+
var css = {"recovery-spinner":"Ht0crH","recoverySpinner":"Ht0crH","recovery-message":"_5EADbQ","recoveryMessage":"_5EADbQ","modal-blocker":"Gwau3k","modalBlocker":"Gwau3k","modalFadeIn":"wemycR"};
|
|
5529
5536
|
|
|
5530
5537
|
function ErrorHandler(props) {
|
|
5531
5538
|
const { uuiNotifications, uuiModals, uuiApi } = uuiCore.useUuiContext();
|