@epam/uui 5.13.3-beta.4 → 5.13.3-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/layout/Blocker.d.ts +2 -2
- package/components/layout/Blocker.d.ts.map +1 -1
- package/index.esm.js +382 -378
- package/index.esm.js.map +1 -1
- package/index.js +381 -377
- package/index.js.map +1 -1
- package/package.json +5 -5
- package/settings.d.ts +8 -1
- package/settings.d.ts.map +1 -1
- package/stats.html +1 -1
- package/styles.css +2082 -2090
- package/styles.css.map +1 -1
package/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as uuiComponents from '@epam/uui-components';
|
|
2
|
-
import { Clickable, IconContainer, RadioInput as RadioInput$1, TextInput as TextInput$1, ControlGroup as ControlGroup$1, NumericInput as NumericInput$1, TextArea as TextArea$1, Dropdown as Dropdown$1, Anchor as Anchor$1, FlexSpacer, Text as Text$1, FlexCell as FlexCell$1, VPanel, ScrollBars as ScrollBars$1,
|
|
2
|
+
import { Spinner as Spinner$1, Clickable, IconContainer, RadioInput as RadioInput$1, TextInput as TextInput$1, ControlGroup as ControlGroup$1, NumericInput as NumericInput$1, TextArea as TextArea$1, Dropdown as Dropdown$1, Anchor as Anchor$1, FlexSpacer, Text as Text$1, FlexCell as FlexCell$1, VPanel, ScrollBars as ScrollBars$1, Blocker as Blocker$1, ModalBlocker as ModalBlocker$1, ModalWindow as ModalWindow$1, Snackbar as Snackbar$1, InputAddon as InputAddon$1, Slider as Slider$1, Calendar as Calendar$1, YearSelection, MonthSelection, Day, uuiDaySelection, PickerBodyBase, AvatarStack as AvatarStack$1, Paginator as Paginator$1, DragHandle, DataPickerRow as DataPickerRow$1, Avatar, usePickerModal, handleDataSourceKeyboard, PickerToggler as PickerToggler$1, usePickerInput, usePickerList, DataTableCell as DataTableCell$1, DataTableRow as DataTableRow$1, DataTableCellContainer, DataTableHeaderCell as DataTableHeaderCell$1, DataTableHeaderRow as DataTableHeaderRow$1, AdaptivePanel, useColumnsConfiguration, Accordion as Accordion$1, DataTableSelectionProvider, DataTableFocusProvider, Burger as Burger$1, Button as Button$1, DropSpot as DropSpot$1, UploadFileToggler, ErrorCatch } from '@epam/uui-components';
|
|
3
3
|
export { Avatar, DataTableCellContainer, FlexSpacer, IconContainer } from '@epam/uui-components';
|
|
4
4
|
import { withMods, devLogger, uuiElement, cx as cx$1, uuiMarkers, IEditableDebouncer, UuiContext, uuiMod, getDir, isEventTargetInsideClickable, directionMode, useVirtualList, useScrollShadows, isMobile, i18n as i18n$1, useUuiContext, isFocusReceiverInsideFocusLock, Lens, mobilePopperModifier, uuiDataTableHeaderCell, uuiDataTableHeaderGroupCell, usePrevious, useForceUpdate, getSeparatedValue, useArrayDataSource, orderBy, getOrderBetween, DndActor, uuiDndState, useColumnsConfig, uuiScrollShadows, Form as Form$1, useForm as useForm$1, formatBytes, useUuiError } from '@epam/uui-core';
|
|
5
5
|
import * as React from 'react';
|
|
@@ -149,7 +149,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
149
149
|
xmlns: "http://www.w3.org/2000/svg",
|
|
150
150
|
ref: ref
|
|
151
151
|
}, props), /*#__PURE__*/React.createElement("g", {
|
|
152
|
-
clipPath: "url(#
|
|
152
|
+
clipPath: "url(#opwl57ko678gmoct_a)"
|
|
153
153
|
}, _path$J || (_path$J = /*#__PURE__*/React.createElement("path", {
|
|
154
154
|
d: "M150.585 1.535C49.483-11.495 27.481 61.805 45.725 97.481c10.581 20.69-39.64 70.792 17.744 81.468 27.538 5.123 36-13.341 62.433-10.655 35.4 3.6 148.167-4.73 88.349-78.915-31.713-39.335 1.026-79.506-63.666-87.844Z",
|
|
155
155
|
fill: "#F5F6FA"
|
|
@@ -170,7 +170,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
170
170
|
d: "M86.786 22.982c-2.55 0-4.965 2.07-4.965 4.552V120.6c0 2.484 2.4 4.572 4.965 4.572h88.101c2.582 0 4.986-2.089 4.986-4.572V27.534c0-2.464-2.418-4.552-4.986-4.552h-88.1Zm-5.793 4.552c0-3.022 2.874-5.38 5.793-5.38h88.101c2.935 0 5.814 2.374 5.814 5.38V120.6c0 3.021-2.86 5.4-5.814 5.4h-88.1c-2.94 0-5.794-2.381-5.794-5.4V27.534Z",
|
|
171
171
|
fill: "#1D1E26"
|
|
172
172
|
})), /*#__PURE__*/React.createElement("mask", {
|
|
173
|
-
id: "
|
|
173
|
+
id: "opwl572601dkv95xg_b",
|
|
174
174
|
style: {
|
|
175
175
|
maskType: "alpha"
|
|
176
176
|
},
|
|
@@ -183,7 +183,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
183
183
|
d: "M174.887 125.586h-88.1c-2.752 0-5.38-2.234-5.38-4.986V27.534c0-2.752 2.644-4.966 5.38-4.966h88.1c2.752 0 5.4 2.23 5.4 4.966V120.6c0 2.752-2.632 4.986-5.4 4.986Z",
|
|
184
184
|
fill: "#9BDEFF"
|
|
185
185
|
}))), _g || (_g = /*#__PURE__*/React.createElement("g", {
|
|
186
|
-
mask: "url(#
|
|
186
|
+
mask: "url(#opwl572601dkv95xg_b)",
|
|
187
187
|
fillRule: "evenodd",
|
|
188
188
|
clipRule: "evenodd"
|
|
189
189
|
}, /*#__PURE__*/React.createElement("path", {
|
|
@@ -269,7 +269,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
269
269
|
d: "M24.73 96.184a.414.414 0 0 1 .581.06l48.646 59.751a.413.413 0 1 1-.642.523L24.67 96.766a.414.414 0 0 1 .06-.582Z",
|
|
270
270
|
fill: "#fff"
|
|
271
271
|
}))), _defs || (_defs = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
272
|
-
id: "
|
|
272
|
+
id: "opwl57ko678gmoct_a"
|
|
273
273
|
}, /*#__PURE__*/React.createElement("path", {
|
|
274
274
|
fill: "#fff",
|
|
275
275
|
transform: "translate(.552)",
|
|
@@ -826,6 +826,30 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
|
826
826
|
};
|
|
827
827
|
var ForwardRef$b = /*#__PURE__*/forwardRef(SvgSearchWithBackground);
|
|
828
828
|
|
|
829
|
+
var css$1y = {"root":"OLzlqd","uui-spinner":"lc-cES","uuiSpinner":"lc-cES"};
|
|
830
|
+
|
|
831
|
+
function applySpinnerMods() {
|
|
832
|
+
return [css$1y.root, 'uui-spinner'];
|
|
833
|
+
}
|
|
834
|
+
const Spinner = /* @__PURE__ */withMods(Spinner$1, applySpinnerMods);
|
|
835
|
+
|
|
836
|
+
var css$1x = {"root":"MVuiXk","loading-word":"vQ95FH","loadingWord":"vQ95FH","animated-loading":"K4B-4E","animatedLoading":"K4B-4E","skeleton_loading":"DJts8Q","skeletonLoading":"DJts8Q"};
|
|
837
|
+
|
|
838
|
+
const TextPlaceholder = (props) => {
|
|
839
|
+
const pattern = ' ';
|
|
840
|
+
const text = React.useMemo(() => {
|
|
841
|
+
const words = [];
|
|
842
|
+
for (let i = 0; i < (props.wordsCount || 1); i++) {
|
|
843
|
+
const lengthWord = Math.floor(Math.random() * 10 + 8);
|
|
844
|
+
words.push(pattern.repeat(lengthWord));
|
|
845
|
+
}
|
|
846
|
+
return words;
|
|
847
|
+
}, [props.wordsCount]);
|
|
848
|
+
return (React.createElement("div", { "aria-busy": true, className: cx(css$1x.root, 'uui-text-placeholder'), ...props.rawProps }, text.map((it, index) => (React.createElement("span", { key: index, className: cx([
|
|
849
|
+
props.cx, css$1x.loadingWord, !props.isNotAnimated && css$1x.animatedLoading,
|
|
850
|
+
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
851
|
+
};
|
|
852
|
+
|
|
829
853
|
const accordionSettings = {
|
|
830
854
|
icons: {
|
|
831
855
|
dropdownIcon: ForwardRef$Q,
|
|
@@ -887,6 +911,7 @@ const countIndicatorSettings = {
|
|
|
887
911
|
},
|
|
888
912
|
};
|
|
889
913
|
const dataTableSettings = {
|
|
914
|
+
renderPlaceholder: () => React__default.createElement(TextPlaceholder, { isNotAnimated: true }),
|
|
890
915
|
icons: {
|
|
891
916
|
emptyTable: ForwardRef$J,
|
|
892
917
|
header: {
|
|
@@ -1074,6 +1099,7 @@ const paginatorSettings = {
|
|
|
1074
1099
|
},
|
|
1075
1100
|
};
|
|
1076
1101
|
const pickerInputSettings = {
|
|
1102
|
+
renderPlaceholder: () => React__default.createElement(TextPlaceholder, null),
|
|
1077
1103
|
icons: {
|
|
1078
1104
|
toggler: {
|
|
1079
1105
|
clearIcon: ForwardRef$R,
|
|
@@ -1238,11 +1264,15 @@ const textInputSettings = {
|
|
|
1238
1264
|
default: '36',
|
|
1239
1265
|
},
|
|
1240
1266
|
};
|
|
1267
|
+
const blockerSettings = {
|
|
1268
|
+
renderSpinner: () => React__default.createElement(Spinner, null),
|
|
1269
|
+
};
|
|
1241
1270
|
const settings = {
|
|
1242
1271
|
accordion: accordionSettings,
|
|
1243
1272
|
alert: alertSettings,
|
|
1244
1273
|
badge: badgeSettings,
|
|
1245
1274
|
button: buttonSettings,
|
|
1275
|
+
blocker: blockerSettings,
|
|
1246
1276
|
checkbox: checkboxSettings,
|
|
1247
1277
|
countIndicator: countIndicatorSettings,
|
|
1248
1278
|
dataTable: dataTableSettings,
|
|
@@ -1272,11 +1302,11 @@ const settings = {
|
|
|
1272
1302
|
textInput: textInputSettings,
|
|
1273
1303
|
};
|
|
1274
1304
|
|
|
1275
|
-
var css$
|
|
1305
|
+
var css$1w = {"root":"iUZr-z"};
|
|
1276
1306
|
|
|
1277
1307
|
function applyButtonMods(mods) {
|
|
1278
1308
|
return [
|
|
1279
|
-
css$
|
|
1309
|
+
css$1w.root,
|
|
1280
1310
|
'uui-button',
|
|
1281
1311
|
`uui-fill-${mods.fill || 'solid'}`,
|
|
1282
1312
|
`uui-color-${mods.color || 'primary'}`,
|
|
@@ -1290,10 +1320,10 @@ const Button = /* @__PURE__ */withMods(uuiComponents.Button, applyButtonMods, ()
|
|
|
1290
1320
|
};
|
|
1291
1321
|
});
|
|
1292
1322
|
|
|
1293
|
-
var css$
|
|
1323
|
+
var css$1v = {"root":"ElcSgC"};
|
|
1294
1324
|
|
|
1295
1325
|
function applyIconButtonMods(props) {
|
|
1296
|
-
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$
|
|
1326
|
+
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$1v.root];
|
|
1297
1327
|
}
|
|
1298
1328
|
const IconButton = /* @__PURE__ */withMods(uuiComponents.IconButton, applyIconButtonMods, (props) => {
|
|
1299
1329
|
const isDeprecated = ['info', 'success', 'error', 'warning'].includes(props.color);
|
|
@@ -1327,7 +1357,7 @@ function getIconClass(props) {
|
|
|
1327
1357
|
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'];
|
|
1328
1358
|
}
|
|
1329
1359
|
|
|
1330
|
-
var css$
|
|
1360
|
+
var css$1u = {"root":"gsbkw-"};
|
|
1331
1361
|
|
|
1332
1362
|
const DEFAULT_COLOR = 'primary';
|
|
1333
1363
|
const LinkButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
@@ -1342,7 +1372,7 @@ const LinkButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1342
1372
|
}
|
|
1343
1373
|
const rootStyles = [
|
|
1344
1374
|
'uui-link_button',
|
|
1345
|
-
css$
|
|
1375
|
+
css$1u.root,
|
|
1346
1376
|
`uui-size-${props.size || settings.linkButton.sizes.default}`,
|
|
1347
1377
|
...getIconClass(props),
|
|
1348
1378
|
`uui-color-${props.color || DEFAULT_COLOR}`,
|
|
@@ -1357,11 +1387,11 @@ const LinkButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1357
1387
|
props.isDropdown && (React.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
1358
1388
|
});
|
|
1359
1389
|
|
|
1360
|
-
var css$
|
|
1390
|
+
var css$1t = {"root":"_1gRdJq"};
|
|
1361
1391
|
|
|
1362
1392
|
const CountIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
1363
1393
|
return (React__default.createElement("div", { ref: ref, className: cx([
|
|
1364
|
-
css$
|
|
1394
|
+
css$1t.root,
|
|
1365
1395
|
'uui-count_indicator',
|
|
1366
1396
|
`uui-size-${props.size || settings.countIndicator.sizes.default}`,
|
|
1367
1397
|
props.color && `uui-color-${props.color}`,
|
|
@@ -1369,11 +1399,11 @@ const CountIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
|
1369
1399
|
]) }, props.caption));
|
|
1370
1400
|
});
|
|
1371
1401
|
|
|
1372
|
-
var css$
|
|
1402
|
+
var css$1s = {"root":"IGH-FC","withNotify":"JC-G4N"};
|
|
1373
1403
|
|
|
1374
1404
|
const TabButton = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
1375
1405
|
const styles = [
|
|
1376
|
-
css$
|
|
1406
|
+
css$1s.root,
|
|
1377
1407
|
'uui-tab-button',
|
|
1378
1408
|
`uui-size-${props.size || settings.tabButton.sizes.default}`,
|
|
1379
1409
|
...getIconClass(props),
|
|
@@ -1390,27 +1420,27 @@ const TabButton = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
1390
1420
|
props.icon && props.iconPosition !== 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1391
1421
|
(props.caption || props.withNotify) && (React__default.createElement("div", { className: cx$1(uuiElement.caption) },
|
|
1392
1422
|
props.caption,
|
|
1393
|
-
props.withNotify && React__default.createElement("div", { className: css$
|
|
1423
|
+
props.withNotify && React__default.createElement("div", { className: css$1s.withNotify }))),
|
|
1394
1424
|
props.icon && props.iconPosition === 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1395
1425
|
props.count !== undefined && props.count !== null && (React__default.createElement(CountIndicator, { color: "neutral", size: settings.tabButton.sizes.countIndicatorMap[props.size || settings.tabButton.sizes.default], caption: props.count })),
|
|
1396
1426
|
props.isDropdown && (React__default.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
1397
1427
|
props.onClear && !props.isDisabled && (React__default.createElement(IconContainer, { cx: uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
1398
1428
|
});
|
|
1399
1429
|
|
|
1400
|
-
var css$
|
|
1430
|
+
var css$1r = {"root":"_8-VLva"};
|
|
1401
1431
|
|
|
1402
1432
|
function applyVerticalTabButtonMods() {
|
|
1403
|
-
return [css$
|
|
1433
|
+
return [css$1r.root, 'uui-vertical-tab-button'];
|
|
1404
1434
|
}
|
|
1405
1435
|
const VerticalTabButton = /* @__PURE__ */withMods(TabButton, applyVerticalTabButtonMods);
|
|
1406
1436
|
|
|
1407
|
-
var css$
|
|
1437
|
+
var css$1q = {"root":"JWazRN","mode-cell":"uYqs-B","modeCell":"uYqs-B"};
|
|
1408
1438
|
|
|
1409
1439
|
function applyCheckboxMods(mods) {
|
|
1410
1440
|
return [
|
|
1411
|
-
css$
|
|
1441
|
+
css$1q.root,
|
|
1412
1442
|
`uui-size-${mods.size || settings.checkbox.sizes.default}`,
|
|
1413
|
-
css$
|
|
1443
|
+
css$1q['mode-' + (mods.mode || 'form')],
|
|
1414
1444
|
'uui-color-primary',
|
|
1415
1445
|
];
|
|
1416
1446
|
}
|
|
@@ -1422,11 +1452,11 @@ const applyUUICheckboxProps = (props) => {
|
|
|
1422
1452
|
};
|
|
1423
1453
|
const Checkbox = /* @__PURE__ */withMods(uuiComponents.Checkbox, applyCheckboxMods, applyUUICheckboxProps);
|
|
1424
1454
|
|
|
1425
|
-
var css$
|
|
1455
|
+
var css$1p = {"root":"Y30m1A"};
|
|
1426
1456
|
|
|
1427
1457
|
function applyRadioInputMods(mods) {
|
|
1428
1458
|
return [
|
|
1429
|
-
css$
|
|
1459
|
+
css$1p.root,
|
|
1430
1460
|
`uui-size-${mods.size || settings.radioInput.sizes.default}`,
|
|
1431
1461
|
'uui-radio-input-container',
|
|
1432
1462
|
'uui-color-primary',
|
|
@@ -1434,11 +1464,11 @@ function applyRadioInputMods(mods) {
|
|
|
1434
1464
|
}
|
|
1435
1465
|
const RadioInput = /* @__PURE__ */withMods(RadioInput$1, applyRadioInputMods, (props) => ({ icon: props.icon ? props.icon : settings.radioInput.icons.dotIcon }));
|
|
1436
1466
|
|
|
1437
|
-
var css$
|
|
1467
|
+
var css$1o = {"root":"-VefN5"};
|
|
1438
1468
|
|
|
1439
1469
|
function applySwitchMods(mods) {
|
|
1440
1470
|
return [
|
|
1441
|
-
css$
|
|
1471
|
+
css$1o.root,
|
|
1442
1472
|
`uui-size-${mods.size || settings.switch.sizes.default}`,
|
|
1443
1473
|
'uui-color-primary',
|
|
1444
1474
|
];
|
|
@@ -1458,7 +1488,7 @@ var EditMode;
|
|
|
1458
1488
|
EditMode["INLINE"] = "inline";
|
|
1459
1489
|
})(EditMode || (EditMode = {}));
|
|
1460
1490
|
|
|
1461
|
-
var textInputCss = {"root":"
|
|
1491
|
+
var textInputCss = {"root":"NEWIUu","mode-form":"vrwCqc","modeForm":"vrwCqc","mode-inline":"HsUXpZ","modeInline":"HsUXpZ","mode-cell":"Q0HKR-","modeCell":"Q0HKR-"};
|
|
1462
1492
|
|
|
1463
1493
|
const DEFAULT_MODE$3 = EditMode.FORM;
|
|
1464
1494
|
function applyTextInputMods(mods) {
|
|
@@ -1483,9 +1513,9 @@ const SearchInput = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
1483
1513
|
} }));
|
|
1484
1514
|
});
|
|
1485
1515
|
|
|
1486
|
-
var css$
|
|
1516
|
+
var css$1n = {"root":"sC22k5"};
|
|
1487
1517
|
|
|
1488
|
-
const ControlGroup = /* @__PURE__ */withMods(ControlGroup$1, () => [css$
|
|
1518
|
+
const ControlGroup = /* @__PURE__ */withMods(ControlGroup$1, () => [css$1n.root, 'uui-control-group']);
|
|
1489
1519
|
|
|
1490
1520
|
function MultiSwitchComponent(props, ref) {
|
|
1491
1521
|
return (React.createElement(ControlGroup, { ref: ref, rawProps: {
|
|
@@ -1499,13 +1529,13 @@ function MultiSwitchComponent(props, ref) {
|
|
|
1499
1529
|
}
|
|
1500
1530
|
const MultiSwitch = /* @__PURE__ */React.forwardRef(MultiSwitchComponent);
|
|
1501
1531
|
|
|
1502
|
-
var css$
|
|
1532
|
+
var css$1m = {"root":"_5QEBUX","mode-form":"UcrWR5","modeForm":"UcrWR5","mode-cell":"DSdLQA","modeCell":"DSdLQA"};
|
|
1503
1533
|
|
|
1504
1534
|
const DEFAULT_MODE$2 = EditMode.FORM;
|
|
1505
1535
|
function applyNumericInputMods(mods) {
|
|
1506
1536
|
return [
|
|
1507
1537
|
textInputCss.root,
|
|
1508
|
-
css$
|
|
1538
|
+
css$1m.root,
|
|
1509
1539
|
`uui-size-${mods.size || settings.numericInput.sizes.default}`,
|
|
1510
1540
|
textInputCss['mode-' + (mods.mode || DEFAULT_MODE$2)],
|
|
1511
1541
|
];
|
|
@@ -1519,15 +1549,15 @@ const NumericInput = /* @__PURE__ */withMods(NumericInput$1, applyNumericInputMo
|
|
|
1519
1549
|
};
|
|
1520
1550
|
});
|
|
1521
1551
|
|
|
1522
|
-
var css$
|
|
1552
|
+
var css$1l = {"root":"zCzjYE","mode-form":"qe6wh6","modeForm":"qe6wh6","mode-cell":"y9-knd","modeCell":"y9-knd","mode-inline":"A-en-U","modeInline":"A-en-U"};
|
|
1523
1553
|
|
|
1524
1554
|
const DEFAULT_MODE$1 = EditMode.FORM;
|
|
1525
1555
|
function applyTextAreaMods(mods) {
|
|
1526
1556
|
return [
|
|
1527
|
-
css$
|
|
1557
|
+
css$1l.root,
|
|
1528
1558
|
'uui-textarea',
|
|
1529
1559
|
'uui-size-' + (mods.size || settings.textArea.sizes.default),
|
|
1530
|
-
css$
|
|
1560
|
+
css$1l['mode-' + (mods.mode || DEFAULT_MODE$1)],
|
|
1531
1561
|
];
|
|
1532
1562
|
}
|
|
1533
1563
|
const TextArea = /* @__PURE__ */withMods(TextArea$1, applyTextAreaMods, (props) => {
|
|
@@ -1560,17 +1590,17 @@ function TREE_SHAKEABLE_INIT$1() {
|
|
|
1560
1590
|
};
|
|
1561
1591
|
}
|
|
1562
1592
|
|
|
1563
|
-
var css$
|
|
1593
|
+
var css$1k = {"root":"bJvxfk","main-path":"U-nbSz","mainPath":"U-nbSz","content-wrapper":"BOjLzi","contentWrapper":"BOjLzi","content":"ldX-9c","action-wrapper":"Gw8j43","actionWrapper":"Gw8j43","icon-wrapper":"Hj4d8Q","iconWrapper":"Hj4d8Q","icon":"-g0HYO","close-icon":"-lx4xz","closeIcon":"-lx4xz"};
|
|
1564
1594
|
|
|
1565
|
-
const Alert = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement("div", { role: "alert", ref: ref, className: cx('uui-alert', css$
|
|
1566
|
-
React.createElement("div", { className: css$
|
|
1567
|
-
React.createElement("div", { className: css$
|
|
1568
|
-
props.icon && (React.createElement("div", { className: css$
|
|
1569
|
-
React.createElement(IconContainer, { icon: props.icon, cx: css$
|
|
1570
|
-
React.createElement("div", { className: css$
|
|
1595
|
+
const Alert = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement("div", { role: "alert", ref: ref, className: cx('uui-alert', css$1k.root, props.color && `uui-color-${props.color}`, props.cx, `uui-size-${props.size || settings.alert.sizes.default}`), ...props.rawProps },
|
|
1596
|
+
React.createElement("div", { className: css$1k.mainPath },
|
|
1597
|
+
React.createElement("div", { className: css$1k.contentWrapper },
|
|
1598
|
+
props.icon && (React.createElement("div", { className: css$1k.iconWrapper },
|
|
1599
|
+
React.createElement(IconContainer, { icon: props.icon, cx: css$1k.icon }))),
|
|
1600
|
+
React.createElement("div", { className: css$1k.content },
|
|
1571
1601
|
props.children,
|
|
1572
|
-
props.actions && (React.createElement("div", { className: css$
|
|
1573
|
-
props.onClose && React.createElement(IconButton, { icon: settings.alert.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$
|
|
1602
|
+
props.actions && (React.createElement("div", { className: css$1k.actionWrapper }, props.actions.map((action) => (React.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$1k.actionLink, size: settings.alert.sizes.actionMap[props.size || settings.alert.sizes.default] }))))))),
|
|
1603
|
+
props.onClose && React.createElement(IconButton, { icon: settings.alert.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$1k.closeIcon })))));
|
|
1574
1604
|
const WarningAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, { icon: settings.alert.icons.warningIcon, color: "warning", ref: ref, ...props }));
|
|
1575
1605
|
const SuccessAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, { icon: settings.alert.icons.successIcon, color: "success", ref: ref, ...props }));
|
|
1576
1606
|
const HintAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, { icon: settings.alert.icons.infoIcon, color: "info", ref: ref, ...props }));
|
|
@@ -1578,18 +1608,18 @@ const ErrorAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createE
|
|
|
1578
1608
|
|
|
1579
1609
|
const Dropdown = /* @__PURE__ */withMods(Dropdown$1);
|
|
1580
1610
|
|
|
1581
|
-
var css$
|
|
1611
|
+
var css$1j = {"root":"yX0tAZ"};
|
|
1582
1612
|
|
|
1583
1613
|
function applyDropdownContainerMods(mods) {
|
|
1584
1614
|
return [
|
|
1585
|
-
css$
|
|
1615
|
+
css$1j.root,
|
|
1586
1616
|
mods.vPadding && `vPadding-${mods.vPadding}`,
|
|
1587
1617
|
mods.padding && `padding-${mods.padding}`,
|
|
1588
1618
|
];
|
|
1589
1619
|
}
|
|
1590
1620
|
const DropdownContainer = /* @__PURE__ */withMods(uuiComponents.DropdownContainer, applyDropdownContainerMods);
|
|
1591
1621
|
|
|
1592
|
-
var css$
|
|
1622
|
+
var css$1i = {"submenu-root-item-rtl":"E5Gvrn","submenuRootItemRtl":"E5Gvrn","icon-after":"L4V53I","iconAfter":"L4V53I","submenu-root-item":"iVvgXA","submenuRootItem":"iVvgXA","icon-check":"_1N1I42","iconCheck":"_1N1I42","splitter-root":"TJKB8R","splitterRoot":"TJKB8R","splitter":"kgB3bG","header-root":"_61hi4o","headerRoot":"_61hi4o","item-root":"QKh4gx","itemRoot":"QKh4gx","icon":"gDAQh1","link":"PnOKWz","indent":"NTUjuK","selected-mark":"t7P5a3","selectedMark":"t7P5a3"};
|
|
1593
1623
|
|
|
1594
1624
|
var IDropdownControlKeys;
|
|
1595
1625
|
(function (IDropdownControlKeys) {
|
|
@@ -1654,29 +1684,29 @@ const DropdownMenuButton = /* @__PURE__ */React__default.forwardRef((props, ref)
|
|
|
1654
1684
|
const getMenuButtonContent = () => {
|
|
1655
1685
|
const isIconBefore = Boolean(icon && iconPosition !== 'right');
|
|
1656
1686
|
const isIconAfter = Boolean(icon && iconPosition === 'right');
|
|
1657
|
-
const iconElement = (React__default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: cx$1(css$
|
|
1687
|
+
const iconElement = (React__default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: cx$1(css$1i.icon, iconPosition === 'right' ? css$1i.iconAfter : css$1i.iconBefore) }));
|
|
1658
1688
|
return (React__default.createElement(React__default.Fragment, null,
|
|
1659
1689
|
isIconBefore && iconElement,
|
|
1660
|
-
React__default.createElement(Text$1, { cx: props.indent && css$
|
|
1690
|
+
React__default.createElement(Text$1, { cx: props.indent && css$1i.indent }, caption),
|
|
1661
1691
|
isIconAfter && (React__default.createElement(React__default.Fragment, null,
|
|
1662
1692
|
React__default.createElement(FlexSpacer, null),
|
|
1663
1693
|
iconElement))));
|
|
1664
1694
|
};
|
|
1665
1695
|
const isAnchor = Boolean(link || href);
|
|
1666
|
-
const itemClassNames = cx$1(props.cx, css$
|
|
1667
|
-
return isAnchor ? (React__default.createElement(Anchor$1, { cx: cx$1(css$
|
|
1696
|
+
const itemClassNames = cx$1(props.cx, css$1i.itemRoot, isDisabled && uuiMod.disabled, isActive && uuiMod.active, isOpen && uuiMod.opened, (!isDisabled && onClick) && uuiMarkers.clickable);
|
|
1697
|
+
return isAnchor ? (React__default.createElement(Anchor$1, { cx: cx$1(css$1i.link, itemClassNames), link: link, href: href, rawProps: { role: 'menuitem', tabIndex: isDisabled ? -1 : 0 }, onClick: handleClick, isLinkActive: isActive, isDisabled: isDisabled, target: target }, getMenuButtonContent())) : (React__default.createElement("div", { tabIndex: isDisabled ? -1 : 0, role: "menuitem", onKeyDown: isDisabled ? null : handleOpenDropdown, className: itemClassNames, onClick: handleClick, ref: ref },
|
|
1668
1698
|
getMenuButtonContent(),
|
|
1669
1699
|
isSelected && (React__default.createElement(React__default.Fragment, null,
|
|
1670
1700
|
React__default.createElement(FlexSpacer, null),
|
|
1671
|
-
React__default.createElement(IconContainer, { icon: settings.dropdownMenu.icons.acceptIcon, cx: css$
|
|
1701
|
+
React__default.createElement(IconContainer, { icon: settings.dropdownMenu.icons.acceptIcon, cx: css$1i.selectedMark })))));
|
|
1672
1702
|
});
|
|
1673
1703
|
function DropdownMenuSplitter(props) {
|
|
1674
|
-
return (React__default.createElement("div", { className: cx$1(props.cx, css$
|
|
1675
|
-
React__default.createElement("hr", { className: css$
|
|
1704
|
+
return (React__default.createElement("div", { className: cx$1(props.cx, css$1i.splitterRoot) },
|
|
1705
|
+
React__default.createElement("hr", { className: css$1i.splitter })));
|
|
1676
1706
|
}
|
|
1677
1707
|
function DropdownMenuHeader(props) {
|
|
1678
|
-
return (React__default.createElement("div", { className: cx$1('uui-dropdown-menu-header', props.cx, css$
|
|
1679
|
-
React__default.createElement("span", { className: css$
|
|
1708
|
+
return (React__default.createElement("div", { className: cx$1('uui-dropdown-menu-header', props.cx, css$1i.headerRoot) },
|
|
1709
|
+
React__default.createElement("span", { className: css$1i.header }, props.caption)));
|
|
1680
1710
|
}
|
|
1681
1711
|
function DropdownSubMenu(props) {
|
|
1682
1712
|
const subMenuModifiers = [
|
|
@@ -1696,7 +1726,7 @@ function DropdownSubMenu(props) {
|
|
|
1696
1726
|
},
|
|
1697
1727
|
];
|
|
1698
1728
|
const isRtl = getDir() === 'rtl';
|
|
1699
|
-
return (React__default.createElement(Dropdown$1, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", openDelay: 400, closeDelay: 400, placement: isRtl ? 'left-start' : 'right-start', modifiers: subMenuModifiers, renderBody: (dropdownProps) => !props.isDisabled && (React__default.createElement(DropdownMenuBody, { closeOnKey: IDropdownControlKeys.LEFT_ARROW, ...props, ...dropdownProps })), renderTarget: ({ toggleDropdownOpening, ...targetProps }) => (React__default.createElement(DropdownMenuButton, { cx: cx$1(isRtl ? css$
|
|
1729
|
+
return (React__default.createElement(Dropdown$1, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", openDelay: 400, closeDelay: 400, placement: isRtl ? 'left-start' : 'right-start', modifiers: subMenuModifiers, renderBody: (dropdownProps) => !props.isDisabled && (React__default.createElement(DropdownMenuBody, { closeOnKey: IDropdownControlKeys.LEFT_ARROW, ...props, ...dropdownProps })), renderTarget: ({ toggleDropdownOpening, ...targetProps }) => (React__default.createElement(DropdownMenuButton, { cx: cx$1(isRtl ? css$1i.submenuRootItemRtl : css$1i.submenuRootItem), icon: settings.dropdownMenu.icons.dropdownIcon, iconPosition: "right", isDropdown: true, toggleDropdownOpening: toggleDropdownOpening, ...props, ...targetProps })) }));
|
|
1700
1730
|
}
|
|
1701
1731
|
function DropdownMenuSwitchButton(props) {
|
|
1702
1732
|
const context = useContext(UuiContext);
|
|
@@ -1712,29 +1742,29 @@ function DropdownMenuSwitchButton(props) {
|
|
|
1712
1742
|
onHandleValueChange(!isSelected);
|
|
1713
1743
|
}
|
|
1714
1744
|
};
|
|
1715
|
-
return (React__default.createElement("div", { className: cx$1(props.cx, css$
|
|
1716
|
-
icon && React__default.createElement(IconContainer, { icon: icon, cx: css$
|
|
1745
|
+
return (React__default.createElement("div", { className: cx$1(props.cx, css$1i.itemRoot, isDisabled && uuiMod.disabled, (!isDisabled || onValueChange) && uuiMarkers.clickable), onClick: () => onHandleValueChange(!isSelected), role: "menuitem", onKeyDown: handleKeySelect, tabIndex: isDisabled ? -1 : 0 },
|
|
1746
|
+
icon && React__default.createElement(IconContainer, { icon: icon, cx: css$1i.iconBefore }),
|
|
1717
1747
|
React__default.createElement(Text$1, null, caption),
|
|
1718
1748
|
React__default.createElement(FlexSpacer, null),
|
|
1719
1749
|
React__default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
1720
1750
|
}
|
|
1721
1751
|
|
|
1722
|
-
var css$
|
|
1752
|
+
var css$1h = {"root":"_7TFk1a","mode-block":"UUnqTv","modeBlock":"UUnqTv","mode-inline":"MIwkIt","modeInline":"MIwkIt","padding-0":"_7ZN6fG","padding0":"_7ZN6fG","padding-6":"oOd-hP","padding6":"oOd-hP","padding-12":"VwuxBa","padding12":"VwuxBa","padding-18":"_8DIewP","padding18":"_8DIewP"};
|
|
1723
1753
|
|
|
1724
1754
|
function applyAccordionMods(mods) {
|
|
1725
1755
|
return [
|
|
1726
|
-
css$
|
|
1727
|
-
css$
|
|
1728
|
-
mods.padding && css$
|
|
1756
|
+
css$1h.root,
|
|
1757
|
+
css$1h[`mode-${mods.mode || 'block'}`],
|
|
1758
|
+
mods.padding && css$1h['padding-' + mods.padding],
|
|
1729
1759
|
];
|
|
1730
1760
|
}
|
|
1731
1761
|
const Accordion = /* @__PURE__ */withMods(uuiComponents.Accordion, applyAccordionMods, (mods) => ({
|
|
1732
1762
|
dropdownIcon: mods.dropdownIcon !== null && settings.accordion.icons.dropdownIcon,
|
|
1733
1763
|
}));
|
|
1734
1764
|
|
|
1735
|
-
var css$
|
|
1765
|
+
var css$1g = {"root":"d-Q-fB","align-items":"WpVkcA","alignItems":"WpVkcA","justify-content":"AR8PDs","justifyContent":"AR8PDs","border-top":"_6mIROn","borderTop":"_6mIROn","border-bottom":"_4cm3o6","borderBottom":"_4cm3o6","top-shadow":"xqnXas","topShadow":"xqnXas","padding":"iRUiTf","margin":"_22xkZv","vPadding":"TJitE9","column-gap":"_6bydUj","columnGap":"_6bydUj","row-gap":"vvK1Rf","rowGap":"vvK1Rf","spacing":"jTol3I"};
|
|
1736
1766
|
|
|
1737
|
-
const FlexCell = /* @__PURE__ */withMods(FlexCell$1, () => [css$
|
|
1767
|
+
const FlexCell = /* @__PURE__ */withMods(FlexCell$1, () => [css$1g.flexCell]);
|
|
1738
1768
|
|
|
1739
1769
|
const FlexRow = /* @__PURE__ */forwardRef((props, ref) => {
|
|
1740
1770
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -1743,23 +1773,23 @@ const FlexRow = /* @__PURE__ */forwardRef((props, ref) => {
|
|
|
1743
1773
|
}
|
|
1744
1774
|
}
|
|
1745
1775
|
const classNames = cx$1([
|
|
1746
|
-
css$
|
|
1776
|
+
css$1g.root,
|
|
1747
1777
|
'uui-flex-row',
|
|
1748
1778
|
props.onClick && uuiMarkers.clickable,
|
|
1749
1779
|
props.cx,
|
|
1750
1780
|
props.size !== null && 'uui-size-' + (props.size || settings.flexRow.sizes.default),
|
|
1751
|
-
props.alignItems && css$
|
|
1752
|
-
props.justifyContent && css$
|
|
1753
|
-
props.padding && css$
|
|
1754
|
-
props.vPadding && css$
|
|
1755
|
-
props.margin && css$
|
|
1756
|
-
props.topShadow && css$
|
|
1757
|
-
props.borderBottom && css$
|
|
1758
|
-
props.borderTop && css$
|
|
1759
|
-
props.columnGap && css$
|
|
1760
|
-
props.rowGap && css$
|
|
1761
|
-
props.spacing && css$
|
|
1762
|
-
props.background &&
|
|
1781
|
+
props.alignItems && css$1g.alignItems,
|
|
1782
|
+
props.justifyContent && css$1g.justifyContent,
|
|
1783
|
+
props.padding && css$1g.padding,
|
|
1784
|
+
props.vPadding && css$1g.vPadding,
|
|
1785
|
+
props.margin && css$1g.margin,
|
|
1786
|
+
props.topShadow && css$1g.topShadow,
|
|
1787
|
+
props.borderBottom && css$1g.borderBottom,
|
|
1788
|
+
props.borderTop && css$1g.borderTop,
|
|
1789
|
+
props.columnGap && css$1g.columnGap,
|
|
1790
|
+
props.rowGap && css$1g.rowGap,
|
|
1791
|
+
props.spacing && css$1g.spacing,
|
|
1792
|
+
props.background && `uui-flex-row-bg-${props.background}`,
|
|
1763
1793
|
]);
|
|
1764
1794
|
const style = {
|
|
1765
1795
|
...(props.alignItems && { '--uui-flex-row-align-items': props.alignItems }),
|
|
@@ -1777,32 +1807,32 @@ const FlexRow = /* @__PURE__ */forwardRef((props, ref) => {
|
|
|
1777
1807
|
} }, props.children));
|
|
1778
1808
|
});
|
|
1779
1809
|
|
|
1780
|
-
var css$
|
|
1810
|
+
var css$1f = {"root":"e7ufIk","margin-24":"OTd1ba","margin24":"OTd1ba","padding-12":"ChUgMF","padding12":"ChUgMF","padding-24":"WF5wvr","padding24":"WF5wvr","shadow":"O6ad1l","uui-surface-main":"CzP7A8","uuiSurfaceMain":"CzP7A8"};
|
|
1781
1811
|
|
|
1782
1812
|
const Panel = /* @__PURE__ */withMods(VPanel, (props) => [
|
|
1783
1813
|
'uui-panel',
|
|
1784
|
-
css$
|
|
1785
|
-
props.shadow && css$
|
|
1786
|
-
props.margin && css$
|
|
1787
|
-
props.background && css$
|
|
1814
|
+
css$1f.root,
|
|
1815
|
+
props.shadow && css$1f.shadow,
|
|
1816
|
+
props.margin && css$1f['margin-' + props.margin],
|
|
1817
|
+
props.background && css$1f[`uui-${props.background}`],
|
|
1788
1818
|
]);
|
|
1789
1819
|
|
|
1790
|
-
var css$
|
|
1820
|
+
var css$1e = {"root":"V0Ma84"};
|
|
1791
1821
|
|
|
1792
1822
|
function applyTooltipMods(mods) {
|
|
1793
1823
|
return [
|
|
1794
|
-
css$
|
|
1824
|
+
css$1e.root,
|
|
1795
1825
|
`uui-color-${mods.color || 'inverted'}`,
|
|
1796
1826
|
];
|
|
1797
1827
|
}
|
|
1798
1828
|
const Tooltip = /* @__PURE__ */withMods(uuiComponents.Tooltip, applyTooltipMods);
|
|
1799
1829
|
|
|
1800
|
-
var css$
|
|
1830
|
+
var css$1d = {"root":"ZM0rjq"};
|
|
1801
1831
|
|
|
1802
1832
|
function applyLabeledInputMods(mods) {
|
|
1803
1833
|
return [
|
|
1804
1834
|
'uui-labeled-input',
|
|
1805
|
-
css$
|
|
1835
|
+
css$1d.root,
|
|
1806
1836
|
'uui-size-' + (mods.size || settings.labeledInput.sizes.default),
|
|
1807
1837
|
];
|
|
1808
1838
|
}
|
|
@@ -1814,7 +1844,7 @@ function applyLabeledInputProps(props) {
|
|
|
1814
1844
|
}
|
|
1815
1845
|
const LabeledInput = /* @__PURE__ */withMods(uuiComponents.LabeledInput, applyLabeledInputMods, applyLabeledInputProps);
|
|
1816
1846
|
|
|
1817
|
-
var css$
|
|
1847
|
+
var css$1c = {"root":"ePAxgt"};
|
|
1818
1848
|
|
|
1819
1849
|
function RadioGroup(props) {
|
|
1820
1850
|
const direction = props.direction || 'vertical';
|
|
@@ -1823,175 +1853,26 @@ function RadioGroup(props) {
|
|
|
1823
1853
|
props.onValueChange(newVal);
|
|
1824
1854
|
}
|
|
1825
1855
|
};
|
|
1826
|
-
return (React.createElement("fieldset", { ref: props.forwardedRef, className: cx$1(css$
|
|
1856
|
+
return (React.createElement("fieldset", { ref: props.forwardedRef, className: cx$1(css$1c.root, directionMode[direction], props.cx), onFocus: props.onFocus, onBlur: props.onBlur, ...props.rawProps }, props.items.map((i) => {
|
|
1827
1857
|
const { id, name, renderName, ...restItemProps } = i;
|
|
1828
1858
|
return (React.createElement(RadioInput, { name: props.name, renderLabel: i.renderName ? i.renderName : () => i.name, value: props.value === i.id, onValueChange: () => handleChange(i.id), isDisabled: props.isDisabled || i.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, isRequired: props.isRequired, key: i.id.toString(), size: props.size || i.size, ...restItemProps }));
|
|
1829
1859
|
})));
|
|
1830
1860
|
}
|
|
1831
1861
|
|
|
1832
|
-
var css$
|
|
1862
|
+
var css$1b = {"root":"kgCowl"};
|
|
1833
1863
|
|
|
1834
1864
|
function applyScrollBarsMods() {
|
|
1835
1865
|
return [
|
|
1836
|
-
css$
|
|
1866
|
+
css$1b.root, 'uui-scroll-bars', 'uui-shadow-top', 'uui-shadow-bottom',
|
|
1837
1867
|
];
|
|
1838
1868
|
}
|
|
1839
1869
|
const ScrollBars = /* @__PURE__ */withMods(ScrollBars$1, applyScrollBarsMods);
|
|
1840
1870
|
|
|
1841
|
-
var css$
|
|
1842
|
-
|
|
1843
|
-
var css$1b = {"root":"CFBjtt"};
|
|
1844
|
-
|
|
1845
|
-
const AvatarStack = /* @__PURE__ */withMods(AvatarStack$1, () => [css$1b.root]);
|
|
1846
|
-
|
|
1847
|
-
var css$1a = {"root":"V8W3pw"};
|
|
1848
|
-
|
|
1849
|
-
const DEFAULT_FILL = 'solid';
|
|
1850
|
-
function applyBadgeMods(mods) {
|
|
1851
|
-
return [
|
|
1852
|
-
'uui-badge',
|
|
1853
|
-
css$1a.root,
|
|
1854
|
-
`uui-size-${mods.size || settings.badge.sizes.default}`,
|
|
1855
|
-
`uui-fill-${mods.fill || DEFAULT_FILL}`,
|
|
1856
|
-
`uui-color-${mods.color || 'info'}`,
|
|
1857
|
-
];
|
|
1858
|
-
}
|
|
1859
|
-
const Badge = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
1860
|
-
const styles = [applyBadgeMods(props), props.cx];
|
|
1861
|
-
const DropdownIcon = props.dropdownIcon ? props.dropdownIcon : settings.badge.icons.dropdownIcon;
|
|
1862
|
-
return (React__default.createElement(Clickable, { ...props, rawProps: {
|
|
1863
|
-
'aria-haspopup': props.isDropdown,
|
|
1864
|
-
'aria-expanded': props.isOpen,
|
|
1865
|
-
...props.rawProps,
|
|
1866
|
-
}, cx: styles, ref: ref },
|
|
1867
|
-
(props.indicator && props.fill === 'outline') && (React__default.createElement("div", { className: "uui-indicator" })),
|
|
1868
|
-
props.icon && props.iconPosition !== 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1869
|
-
props.caption && (React__default.createElement("div", { className: uuiElement.caption }, props.caption)),
|
|
1870
|
-
props.count !== undefined && props.count !== null && (React__default.createElement(CountIndicator, { key: "count-indicator", color: null, size: settings.badge.sizes.countIndicatorMap[props.size || settings.badge.sizes.default], caption: props.count })),
|
|
1871
|
-
props.icon && props.iconPosition === 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1872
|
-
props.isDropdown && (React__default.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
1873
|
-
});
|
|
1874
|
-
|
|
1875
|
-
var css$19 = {"root":"_99RtV-"};
|
|
1876
|
-
|
|
1877
|
-
function applyTagMods(props) {
|
|
1878
|
-
return [
|
|
1879
|
-
css$19.root,
|
|
1880
|
-
`uui-size-${props.size || settings.tag.sizes.default}`,
|
|
1881
|
-
`uui-color-${props.color || 'neutral'}`,
|
|
1882
|
-
`uui-fill-${props.fill || 'solid'}`,
|
|
1883
|
-
'uui-tag',
|
|
1884
|
-
];
|
|
1885
|
-
}
|
|
1886
|
-
const Tag = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
1887
|
-
const styles = [applyTagMods(props), props.cx];
|
|
1888
|
-
const ClearIcon = props.clearIcon ? props.clearIcon : settings.tag.icons.clearIcon;
|
|
1889
|
-
const DropdownIcon = props.dropdownIcon ? props.dropdownIcon : settings.tag.icons.dropdownIcon;
|
|
1890
|
-
return (React__default.createElement(Clickable, { ...props, rawProps: {
|
|
1891
|
-
'aria-haspopup': props.isDropdown,
|
|
1892
|
-
'aria-expanded': props.isOpen,
|
|
1893
|
-
...props.rawProps,
|
|
1894
|
-
}, cx: styles, ref: ref },
|
|
1895
|
-
props.icon && props.iconPosition !== 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1896
|
-
props.caption && (React__default.createElement("div", { className: uuiElement.caption }, props.caption)),
|
|
1897
|
-
props.count !== undefined && props.count !== null && (React__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 })),
|
|
1898
|
-
props.icon && props.iconPosition === 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1899
|
-
props.isDropdown && (React__default.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
1900
|
-
props.onClear && !props.isDisabled && (React__default.createElement(IconContainer, { cx: uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
1901
|
-
});
|
|
1902
|
-
|
|
1903
|
-
var css$18 = {"root":"MKA8Es","uui-spinner":"Cg6J-G","uuiSpinner":"Cg6J-G"};
|
|
1871
|
+
var css$1a = {"scroll-container":"_--s0ho","scrollContainer":"_--s0ho","list-container":"_-96U1-","listContainer":"_-96U1-"};
|
|
1904
1872
|
|
|
1905
|
-
|
|
1906
|
-
return [css$18.root, 'uui-spinner'];
|
|
1907
|
-
}
|
|
1908
|
-
const Spinner = /* @__PURE__ */withMods(Spinner$1, applySpinnerMods);
|
|
1909
|
-
|
|
1910
|
-
var css$17 = {"root":"_5MUWQj","page":"DLinp4","spacer":"kzpIIm","mode-ghost":"_7W6v0O","modeGhost":"_7W6v0O"};
|
|
1911
|
-
|
|
1912
|
-
function Paginator(props) {
|
|
1913
|
-
const renderPaginator = (params) => (React__default.createElement("nav", { role: "navigation", className: cx(css$17.root, 'uui-paginator', `uui-size-${props.size || settings.paginator.sizes.default}`), ...params.rawProps },
|
|
1914
|
-
React__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" }),
|
|
1915
|
-
params.pages.map((page, index) => {
|
|
1916
|
-
if (page.type === 'spacer') {
|
|
1917
|
-
return (React__default.createElement(Button, { cx: cx(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 }));
|
|
1918
|
-
}
|
|
1919
|
-
else {
|
|
1920
|
-
return (React__default.createElement(Button, { cx: cx(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 }));
|
|
1921
|
-
}
|
|
1922
|
-
}),
|
|
1923
|
-
React__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" })));
|
|
1924
|
-
return React__default.createElement(Paginator$1, { ...props, render: renderPaginator });
|
|
1925
|
-
}
|
|
1926
|
-
|
|
1927
|
-
var css$16 = {"root":"aWoUxT","progress-bar":"i5Jybj","progressBar":"i5Jybj","progressBar-indeterminate":"NVvlu9","progressBarIndeterminate":"NVvlu9","size-12":"iMv1JJ","size12":"iMv1JJ","size-18":"xgI1ES","size18":"xgI1ES","size-24":"_4Ic0U7","size24":"_4Ic0U7"};
|
|
1873
|
+
var css$19 = {"root":"vY5vPW"};
|
|
1928
1874
|
|
|
1929
|
-
const
|
|
1930
|
-
return (React.createElement("div", { ref: ref, className: cx('uui-indeterminate_bar', props.cx, css$16.root, css$16[`size-${props.size || 12}`]) },
|
|
1931
|
-
React.createElement("div", { className: cx(css$16.progressBar) })));
|
|
1932
|
-
});
|
|
1933
|
-
|
|
1934
|
-
var css$15 = {"root":"t-Nk49","striped":"_6-sPRE","animate-stripes":"mZaW2D","animateStripes":"mZaW2D","size-12":"tiW043","size12":"tiW043","size-18":"C1ZL6Y","size18":"C1ZL6Y","size-24":"GkvDh5","size24":"GkvDh5"};
|
|
1935
|
-
|
|
1936
|
-
const DEFAULT_SIZE = '12';
|
|
1937
|
-
function applyProgressBarMods(mods) {
|
|
1938
|
-
const size = mods.size || DEFAULT_SIZE;
|
|
1939
|
-
return [
|
|
1940
|
-
css$15.root,
|
|
1941
|
-
css$15[`size-${size}`],
|
|
1942
|
-
mods.striped && css$15.striped,
|
|
1943
|
-
];
|
|
1944
|
-
}
|
|
1945
|
-
const ProgressBar = /* @__PURE__ */withMods(uuiComponents.ProgressBar, applyProgressBarMods, (props) => ({
|
|
1946
|
-
hideLabel: props.hideLabel || props.striped,
|
|
1947
|
-
}));
|
|
1948
|
-
|
|
1949
|
-
var css$14 = {"root":"GHekfs"};
|
|
1950
|
-
|
|
1951
|
-
const IndicatorBar = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1952
|
-
const { progress } = props;
|
|
1953
|
-
return progress || progress === 0 ? (React.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx(css$14.root, props.cx), hideLabel: true })) : (React.createElement(IndeterminateBar, { ref: ref, cx: cx(css$14.root, props.cx) }));
|
|
1954
|
-
});
|
|
1955
|
-
|
|
1956
|
-
var css$13 = {"root":"rUlaLv"};
|
|
1957
|
-
|
|
1958
|
-
const StatusIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
1959
|
-
return (React__default.createElement("div", { ref: ref, className: cx([
|
|
1960
|
-
css$13.root,
|
|
1961
|
-
`uui-size-${props.size || settings.statusIndicator.sizes.default}`,
|
|
1962
|
-
'uui-status_indicator',
|
|
1963
|
-
`uui-color-${props.color || 'neutral'}`,
|
|
1964
|
-
`uui-fill-${props.fill || 'solid'}`,
|
|
1965
|
-
props.cx,
|
|
1966
|
-
]) },
|
|
1967
|
-
React__default.createElement("div", { className: "uui-status_indicator-dot" }),
|
|
1968
|
-
React__default.createElement("p", { className: "uui-status_indicator-caption" }, props.caption)));
|
|
1969
|
-
});
|
|
1970
|
-
|
|
1971
|
-
var css$12 = {"drag-handle":"z-Irr7","dragHandle":"z-Irr7","icon-container":"EMA7jG","iconContainer":"EMA7jG"};
|
|
1972
|
-
|
|
1973
|
-
function DataRowAddons(props) {
|
|
1974
|
-
const row = props.rowProps;
|
|
1975
|
-
const getIndent = () => {
|
|
1976
|
-
return (row.indent - 1) * settings.dataTable.sizes.body.indentUnitMap[props.size || settings.dataTable.sizes.body.row];
|
|
1977
|
-
};
|
|
1978
|
-
const getWidth = () => {
|
|
1979
|
-
return settings.dataTable.sizes.body.indentWidthMap[props.size || settings.dataTable.sizes.body.row];
|
|
1980
|
-
};
|
|
1981
|
-
return (React__default.createElement(React__default.Fragment, null,
|
|
1982
|
-
row.dnd?.srcData && React__default.createElement(DragHandle, { key: "dh", cx: css$12.dragHandle, rawProps: { ...props.eventHandlers } }),
|
|
1983
|
-
row?.checkbox?.isVisible && (React__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 })),
|
|
1984
|
-
row.indent > 0 && (React__default.createElement("div", { key: "fold", className: cx('uui-dr_addons-indent', `uui-size-${props.size}`), style: { marginInlineStart: getIndent(), width: getWidth() } }, row.isFoldable && (React__default.createElement(IconContainer, { rawProps: {
|
|
1985
|
-
'aria-label': row.isFolded ? 'Unfold' : 'Fold',
|
|
1986
|
-
role: 'button',
|
|
1987
|
-
}, key: "icon", icon: settings.dataTable.icons.body.foldingIcon, cx: [
|
|
1988
|
-
uuiElement.foldingArrow, uuiMarkers.clickable, css$12.iconContainer,
|
|
1989
|
-
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row), size: settings.dataTable.sizes.body.iconMap[props.size || settings.dataTable.sizes.body.row] }))))));
|
|
1990
|
-
}
|
|
1991
|
-
|
|
1992
|
-
var css$11 = {"root":"E55IS2"};
|
|
1993
|
-
|
|
1994
|
-
const Blocker = /* @__PURE__ */withMods(Blocker$1, () => [css$11.root], (cmpProps) => ({ renderSpinner: cmpProps.renderSpinner || (() => React__default.createElement(Spinner, null)) }));
|
|
1875
|
+
const Blocker = /* @__PURE__ */withMods(Blocker$1, () => [css$19.root], () => ({ renderSpinner: settings.blocker.renderSpinner }));
|
|
1995
1876
|
|
|
1996
1877
|
const VirtualList = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1997
1878
|
const { listContainerRef, offsetY, handleScroll, estimatedHeight, scrollContainerRef, } = useVirtualList({
|
|
@@ -2005,7 +1886,7 @@ const VirtualList = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
2005
1886
|
const scrollShadows = useScrollShadows({ root: scrollContainerRef.current });
|
|
2006
1887
|
const renderRows = () => props.renderRows?.({
|
|
2007
1888
|
listContainerRef, estimatedHeight, offsetY, scrollShadows,
|
|
2008
|
-
}) || (React.createElement("div", { className: css$
|
|
1889
|
+
}) || (React.createElement("div", { className: css$1a.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
2009
1890
|
React.createElement("div", { ref: listContainerRef, role: props.role, style: { marginTop: offsetY } }, props.rows)));
|
|
2010
1891
|
const renderView = ({ style }) => (React.createElement(VirtualListView, { isLoading: props.isLoading, style: style, rawProps: props.rawProps }));
|
|
2011
1892
|
const scrollBarsRef = React.useCallback((scrollbars) => {
|
|
@@ -2013,7 +1894,7 @@ const VirtualList = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
2013
1894
|
return;
|
|
2014
1895
|
scrollContainerRef.current = scrollbars.container.firstChild;
|
|
2015
1896
|
}, []);
|
|
2016
|
-
return (React.createElement(ScrollBars, { cx: cx$1(css$
|
|
1897
|
+
return (React.createElement(ScrollBars, { cx: cx$1(css$1a.scrollContainer, props.cx, {
|
|
2017
1898
|
[uuiMarkers.scrolledLeft]: scrollShadows.horizontalLeft,
|
|
2018
1899
|
[uuiMarkers.scrolledRight]: scrollShadows.horizontalRight,
|
|
2019
1900
|
[uuiMarkers.scrolledTop]: scrollShadows.verticalTop,
|
|
@@ -2035,7 +1916,7 @@ const VirtualListView = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
2035
1916
|
React.createElement(Blocker, { isEnabled: props.isLoading })));
|
|
2036
1917
|
});
|
|
2037
1918
|
|
|
2038
|
-
var css$
|
|
1919
|
+
var css$18 = {"root":"wBEXJf"};
|
|
2039
1920
|
|
|
2040
1921
|
function CheckboxGroup(props) {
|
|
2041
1922
|
const currentValue = props.value || [];
|
|
@@ -2051,16 +1932,16 @@ function CheckboxGroup(props) {
|
|
|
2051
1932
|
}
|
|
2052
1933
|
props.onValueChange(newSelection);
|
|
2053
1934
|
};
|
|
2054
|
-
return (React.createElement("fieldset", { ref: props.forwardedRef, className: cx$1(css$
|
|
1935
|
+
return (React.createElement("fieldset", { ref: props.forwardedRef, className: cx$1(css$18.root, directionMode[direction], props.cx), ...props.rawProps }, props.items.map((i) => {
|
|
2055
1936
|
const { id, name, renderName, ...restItemProps } = i;
|
|
2056
1937
|
return (React.createElement(Checkbox, { renderLabel: i.renderName ? i.renderName : () => i.name, value: currentValue.indexOf(i.id) !== -1, onValueChange: (selected) => handleChange(selected, i.id), isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, isRequired: props.isRequired, key: i.id.toString(), size: props.size || i.size, ...restItemProps }));
|
|
2057
1938
|
})));
|
|
2058
1939
|
}
|
|
2059
1940
|
|
|
2060
|
-
var css
|
|
1941
|
+
var css$17 = {"root":"qVXluU","modal-blocker":"FeZ1Nj","modalBlocker":"FeZ1Nj","animateModalBlocker":"_6Y3xUq","modal":"UULFzK","modal-footer":"NgPq43","modalFooter":"NgPq43","border-top":"HRnBN5","borderTop":"HRnBN5","modal-header":"_79e3JN","modalHeader":"_79e3JN","border-bottom":"syNGdA","borderBottom":"syNGdA"};
|
|
2061
1942
|
|
|
2062
|
-
const ModalBlocker = /* @__PURE__ */withMods(ModalBlocker$1, () => [css
|
|
2063
|
-
const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css
|
|
1943
|
+
const ModalBlocker = /* @__PURE__ */withMods(ModalBlocker$1, () => [css$17.modalBlocker]);
|
|
1944
|
+
const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css$17.root, css$17.modal], (props) => {
|
|
2064
1945
|
const width = props.width;
|
|
2065
1946
|
const height = props.height || 'auto';
|
|
2066
1947
|
const maxHeight = isMobile() ? 'var(--uui-modals-mobile-max-height)' : (props.maxHeight || 'var(--uui-modals-max-height)');
|
|
@@ -2074,7 +1955,7 @@ const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css$$.root, cs
|
|
|
2074
1955
|
};
|
|
2075
1956
|
});
|
|
2076
1957
|
function ModalHeader(props) {
|
|
2077
|
-
return (React__default.createElement("div", { className: cx(css
|
|
1958
|
+
return (React__default.createElement("div", { className: cx(css$17.root, css$17.modalHeader, 'uui-modal-header', props.borderBottom && css$17.borderBottom, props.cx), ...props.rawProps, style: {
|
|
2078
1959
|
...props.rawProps?.style,
|
|
2079
1960
|
} },
|
|
2080
1961
|
props.title && (React__default.createElement("div", { className: cx('uui-modal-title', 'uui-typography') }, props.title)),
|
|
@@ -2084,7 +1965,7 @@ function ModalHeader(props) {
|
|
|
2084
1965
|
React__default.createElement(IconButton, { rawProps: { 'aria-label': 'Close modal' }, icon: settings.modal.icons.closeIcon, onClick: props.onClose })))));
|
|
2085
1966
|
}
|
|
2086
1967
|
function ModalFooter(props) {
|
|
2087
|
-
return (React__default.createElement("div", { className: cx(css
|
|
1968
|
+
return (React__default.createElement("div", { className: cx(css$17.root, css$17.modalFooter, 'uui-modal-footer', props.borderTop && css$17.borderTop, props.cx), ...props.rawProps, style: {
|
|
2088
1969
|
...props.rawProps?.style,
|
|
2089
1970
|
} }, props.children));
|
|
2090
1971
|
}
|
|
@@ -2247,7 +2128,7 @@ const TREE_SHAKEABLE_INIT = () => ({
|
|
|
2247
2128
|
});
|
|
2248
2129
|
const i18n = /* @__PURE__ */TREE_SHAKEABLE_INIT();
|
|
2249
2130
|
|
|
2250
|
-
var css$
|
|
2131
|
+
var css$16 = {"root":"r-d70Z","icon-wrapper":"_8ZgdD-","iconWrapper":"_8ZgdD-","action-wrapper":"u4deOz","actionWrapper":"u4deOz","action-link":"R-SvAa","actionLink":"R-SvAa","close-icon":"Qap3ZG","closeIcon":"Qap3ZG","main-path":"rdyFZW","mainPath":"rdyFZW","content":"aZvXQt","close-wrapper":"k3TafT","closeWrapper":"k3TafT","notification-wrapper":"zornVJ","notificationWrapper":"zornVJ","clear-button":"JUjSaR","clearButton":"JUjSaR"};
|
|
2251
2132
|
|
|
2252
2133
|
const NotificationCard = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
2253
2134
|
const notificationCardNode = React__default.useRef(null);
|
|
@@ -2260,15 +2141,15 @@ const NotificationCard = /* @__PURE__ */React__default.forwardRef((props, ref) =
|
|
|
2260
2141
|
notificationCardNode.current?.removeEventListener('mouseleave', props.refreshTimer);
|
|
2261
2142
|
};
|
|
2262
2143
|
}, []);
|
|
2263
|
-
return (React__default.createElement("div", { role: "alert", className: cx('uui-notification_card', props.color && `uui-color-${props.color}`, css$
|
|
2264
|
-
React__default.createElement("div", { className: css$
|
|
2265
|
-
props.icon && (React__default.createElement("div", { className: css$
|
|
2144
|
+
return (React__default.createElement("div", { role: "alert", className: cx('uui-notification_card', props.color && `uui-color-${props.color}`, css$16.root, props.cx), ref: notificationCardNode, ...props.rawProps },
|
|
2145
|
+
React__default.createElement("div", { className: css$16.mainPath },
|
|
2146
|
+
props.icon && (React__default.createElement("div", { className: css$16.iconWrapper },
|
|
2266
2147
|
React__default.createElement(IconContainer, { size: 24, icon: props.icon }))),
|
|
2267
|
-
React__default.createElement("div", { className: css$
|
|
2148
|
+
React__default.createElement("div", { className: css$16.content },
|
|
2268
2149
|
props.children,
|
|
2269
|
-
props.actions && (React__default.createElement("div", { className: css$
|
|
2270
|
-
props.onClose && (React__default.createElement("div", { className: css$
|
|
2271
|
-
React__default.createElement(IconButton, { icon: settings.notificationCard.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$
|
|
2150
|
+
props.actions && (React__default.createElement("div", { className: css$16.actionWrapper }, props.actions.map((action) => (React__default.createElement(LinkButton, { key: action.name, caption: action.name, onClick: action.action, cx: css$16.actionLink, size: settings.notificationCard.sizes.action, rawProps: action.rawProps })))))),
|
|
2151
|
+
props.onClose && (React__default.createElement("div", { className: css$16.closeWrapper },
|
|
2152
|
+
React__default.createElement(IconButton, { icon: settings.notificationCard.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$16.closeIcon }))))));
|
|
2272
2153
|
});
|
|
2273
2154
|
const WarningNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, { icon: settings.notificationCard.icons.warningIcon, color: "warning", ...props, ref: ref, cx: props.cx })));
|
|
2274
2155
|
const SuccessNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, { icon: settings.notificationCard.icons.successIcon, color: "success", ...props, ref: ref, cx: props.cx })));
|
|
@@ -2276,11 +2157,11 @@ const HintNotification = /* @__PURE__ */React__default.forwardRef((props, ref) =
|
|
|
2276
2157
|
const ErrorNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, { icon: settings.notificationCard.icons.errorIcon, color: "error", ...props, ref: ref, cx: props.cx })));
|
|
2277
2158
|
function ClearNotification() {
|
|
2278
2159
|
const uuiCtx = useUuiContext();
|
|
2279
|
-
return (React__default.createElement("div", { className: cx(css$
|
|
2160
|
+
return (React__default.createElement("div", { className: cx(css$16.notificationWrapper, css$16.clearButton) },
|
|
2280
2161
|
React__default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => uuiCtx.uuiNotifications.clearAll() })));
|
|
2281
2162
|
}
|
|
2282
2163
|
|
|
2283
|
-
var css$
|
|
2164
|
+
var css$15 = {"footer":"yfBCW5"};
|
|
2284
2165
|
|
|
2285
2166
|
class ConfirmationModal extends React.Component {
|
|
2286
2167
|
render() {
|
|
@@ -2292,7 +2173,7 @@ class ConfirmationModal extends React.Component {
|
|
|
2292
2173
|
React.createElement(ModalWindow, { width: 420 },
|
|
2293
2174
|
React.createElement(ModalHeader, { borderBottom: true, title: this.props.caption, onClose: () => this.props.abort() }),
|
|
2294
2175
|
React.createElement(ScrollBars, null, bodyContent),
|
|
2295
|
-
React.createElement(ModalFooter, { cx: css$
|
|
2176
|
+
React.createElement(ModalFooter, { cx: css$15.footer },
|
|
2296
2177
|
this.props.hideCancelButton || (React.createElement(Button, { caption: i18n.form.modals.discardButton, onClick: () => this.props.success(false), fill: "outline", color: "secondary" })),
|
|
2297
2178
|
React.createElement(Button, { caption: i18n.form.modals.saveButton, onClick: () => this.props.success(true), color: "primary" })))));
|
|
2298
2179
|
}
|
|
@@ -2322,7 +2203,7 @@ function useReliableForceUpdate() {
|
|
|
2322
2203
|
return red[1];
|
|
2323
2204
|
}
|
|
2324
2205
|
|
|
2325
|
-
var css$
|
|
2206
|
+
var css$14 = {"root":"aIUkWA","timepicker-input":"Vmnt5a","timepickerInput":"Vmnt5a","ltr-always":"_0-xKHe","ltrAlways":"_0-xKHe"};
|
|
2326
2207
|
|
|
2327
2208
|
const uuiTimePicker = {
|
|
2328
2209
|
container: 'uui-timepicker-container',
|
|
@@ -2361,8 +2242,8 @@ function TimePickerBody(props) {
|
|
|
2361
2242
|
const minutesToSubtract = value.minute() % minutesStep === 0 ? minutesStep : value.minute() % minutesStep;
|
|
2362
2243
|
onMinutesChange(value.subtract(minutesToSubtract, 'm').minute());
|
|
2363
2244
|
};
|
|
2364
|
-
return (React.createElement("div", { className: cx$1(css$
|
|
2365
|
-
React.createElement("div", { className: css$
|
|
2245
|
+
return (React.createElement("div", { className: cx$1(css$14.root, uuiTimePicker.container, props.cx), ref: props.forwardedRef, ...props.rawProps },
|
|
2246
|
+
React.createElement("div", { className: css$14.ltrAlways },
|
|
2366
2247
|
React.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
2367
2248
|
React.createElement(IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment hours' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$Q, onClick: () => onHoursChange(uuiDayjs.dayjs().set(props.value).add(1, 'h').hour()) }),
|
|
2368
2249
|
React.createElement(NumericInput$1, { cx: uuiTimePicker.input, onValueChange: onHoursChange, value: +(uuiDayjs.dayjs()
|
|
@@ -2505,7 +2386,7 @@ function TimePicker(props) {
|
|
|
2505
2386
|
state.value && state.inputValue && saveTime(state.value);
|
|
2506
2387
|
};
|
|
2507
2388
|
const renderInput = (inputProps) => {
|
|
2508
|
-
return (React__default.createElement(TextInput, { ...inputProps, onClick: null, size: props.size, isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, cx: [css$
|
|
2389
|
+
return (React__default.createElement(TextInput, { ...inputProps, onClick: null, size: props.size, isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, cx: [css$14.root, css$14.timepickerInput, props.inputCx], value: state.inputValue, onValueChange: handleInputChange, onCancel: !props.disableClear && onClear, onFocus: handleFocus, onBlur: handleBlur, isDropdown: false, placeholder: props.placeholder ? props.placeholder : getFormat(), mode: props.mode || DEFAULT_MODE, rawProps: props.rawProps?.input }));
|
|
2509
2390
|
};
|
|
2510
2391
|
const renderBody = (bodyProps) => {
|
|
2511
2392
|
const { forwardedRef, onValueChange, ...timePickerBodyProps } = props;
|
|
@@ -2515,27 +2396,27 @@ function TimePicker(props) {
|
|
|
2515
2396
|
return (React__default.createElement(Dropdown, { renderTarget: (targetProps) => (props.renderTarget ? props.renderTarget(targetProps) : renderInput(targetProps)), renderBody: (bodyProps) => !props.isDisabled && !props.isReadonly && renderBody(bodyProps), onValueChange: !props.isDisabled && !props.isReadonly ? onToggle : null, value: state.isOpen, modifiers: [{ name: 'offset', options: { offset: [0, 6] } }], forwardedRef: props.forwardedRef }));
|
|
2516
2397
|
}
|
|
2517
2398
|
|
|
2518
|
-
var css$
|
|
2399
|
+
var css$13 = {"root":"dXrY3g"};
|
|
2519
2400
|
|
|
2520
2401
|
function applyInputAddonMods() {
|
|
2521
2402
|
return [
|
|
2522
|
-
css$
|
|
2403
|
+
css$13.root,
|
|
2523
2404
|
];
|
|
2524
2405
|
}
|
|
2525
2406
|
const InputAddon = /* @__PURE__ */withMods(InputAddon$1, applyInputAddonMods);
|
|
2526
2407
|
|
|
2527
|
-
var css$
|
|
2408
|
+
var css$12 = {"root":"xbI--u"};
|
|
2528
2409
|
|
|
2529
2410
|
function applySliderMods() {
|
|
2530
|
-
return [css$
|
|
2411
|
+
return [css$12.root, 'uui-color-neutral'];
|
|
2531
2412
|
}
|
|
2532
2413
|
const Slider = /* @__PURE__ */withMods(Slider$1, applySliderMods);
|
|
2533
2414
|
|
|
2534
|
-
var css$
|
|
2415
|
+
var css$11 = {"root":"mL-ZMs","tooltip":"vbKTDz"};
|
|
2535
2416
|
|
|
2536
2417
|
function applyRatingMods(mods) {
|
|
2537
2418
|
return [
|
|
2538
|
-
css$
|
|
2419
|
+
css$11.root,
|
|
2539
2420
|
`uui-size-${mods.size || settings.rating.sizes.default}`,
|
|
2540
2421
|
];
|
|
2541
2422
|
}
|
|
@@ -2545,7 +2426,7 @@ const Rating = /* @__PURE__ */withMods(uuiComponents.Rating, applyRatingMods, (p
|
|
|
2545
2426
|
Tooltip,
|
|
2546
2427
|
}));
|
|
2547
2428
|
|
|
2548
|
-
var css$
|
|
2429
|
+
var css$10 = {"root":"GhizQ4","container":"EAwcbO"};
|
|
2549
2430
|
|
|
2550
2431
|
const defaultFormat = 'MMM D, YYYY';
|
|
2551
2432
|
const valueFormat = 'YYYY-MM-DD';
|
|
@@ -2749,21 +2630,21 @@ function DatePickerHeader({ navIconLeft, navIconRight, value: { month, view }, o
|
|
|
2749
2630
|
}, [view, month]);
|
|
2750
2631
|
const disablePrev = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getPrevYearsList(month));
|
|
2751
2632
|
const disableNext = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getNextYearsList(month));
|
|
2752
|
-
return (React.createElement("div", { className: cx(css$
|
|
2633
|
+
return (React.createElement("div", { className: cx(css$10.root, uuiHeader.container, cx) },
|
|
2753
2634
|
React.createElement("header", { className: uuiHeader.headerNav },
|
|
2754
2635
|
React.createElement(Button, { icon: navIconLeft || settings.datePicker.icons.body.prevIcon, color: "secondary", fill: "ghost", cx: uuiHeader.navIconLeft, onClick: !isDisabled && (() => onLeftNavigationArrow()), isDisabled: disablePrev }),
|
|
2755
2636
|
React.createElement(Button, { caption: title, fill: "ghost", cx: uuiHeader.navTitle, onClick: !isDisabled && (() => onCaptionClick(view)) }),
|
|
2756
2637
|
React.createElement(Button, { icon: navIconRight || settings.datePicker.icons.body.nextIcon, color: "secondary", fill: "ghost", cx: uuiHeader.navIconRight, onClick: !isDisabled && (() => onRightNavigationArrow()), isDisabled: disableNext }))));
|
|
2757
2638
|
}
|
|
2758
2639
|
|
|
2759
|
-
var css
|
|
2640
|
+
var css$$ = {"root":"_8zTHRg"};
|
|
2760
2641
|
|
|
2761
2642
|
function applyDateSelectionMods() {
|
|
2762
|
-
return [css
|
|
2643
|
+
return [css$$.root, `uui-size-${settings.datePicker.sizes.body}`];
|
|
2763
2644
|
}
|
|
2764
2645
|
const Calendar = /* @__PURE__ */withMods(Calendar$1, applyDateSelectionMods);
|
|
2765
2646
|
|
|
2766
|
-
var css$
|
|
2647
|
+
var css$_ = {"root":"KUBbjx"};
|
|
2767
2648
|
|
|
2768
2649
|
const uuiDatePickerBody = {
|
|
2769
2650
|
wrapper: 'uui-datepicker-body-wrapper',
|
|
@@ -2807,7 +2688,7 @@ function StatelessDatePickerBodyComp({ renderDay, isHoliday, cx: classes, filter
|
|
|
2807
2688
|
}
|
|
2808
2689
|
};
|
|
2809
2690
|
return (React__default.createElement("div", { ref: ref, className: cx$1(uuiDatePickerBodyBase.container, `uui-size-${settings.datePicker.sizes.body}`, classes), ...rawProps },
|
|
2810
|
-
React__default.createElement("div", { className: cx$1(css$
|
|
2691
|
+
React__default.createElement("div", { className: cx$1(css$_.root, uuiDatePickerBody.wrapper) },
|
|
2811
2692
|
React__default.createElement(DatePickerHeader, { value: {
|
|
2812
2693
|
view,
|
|
2813
2694
|
month,
|
|
@@ -2889,7 +2770,7 @@ function DatePickerComponent(props, ref) {
|
|
|
2889
2770
|
}
|
|
2890
2771
|
const DatePicker = /* @__PURE__ */React__default.forwardRef(DatePickerComponent);
|
|
2891
2772
|
|
|
2892
|
-
var css$
|
|
2773
|
+
var css$Z = {"date-input":"tzkHsk","dateInput":"tzkHsk","root":"ANmkSw","separator":"Xy-z61","mode-form":"XSP1Kd","modeForm":"XSP1Kd","mode-cell":"bSU-AA","modeCell":"bSU-AA"};
|
|
2893
2774
|
|
|
2894
2775
|
const RangeDatePickerInput = /* @__PURE__ */forwardRef(({ isDisabled, isInvalid, isReadonly, size, disableClear, rawProps, value, inFocus, format, onValueChange, onFocusInput, onBlurInput, onClick, getPlaceholder, filter, onKeyDown, id, cx: classes, }, ref) => {
|
|
2895
2776
|
const [inputValue, setInputValue] = useState(toCustomDateRangeFormat(value, format));
|
|
@@ -2932,15 +2813,15 @@ const RangeDatePickerInput = /* @__PURE__ */forwardRef(({ isDisabled, isInvalid,
|
|
|
2932
2813
|
const clearAllowed = !disableClear && inputValue.from && inputValue.to;
|
|
2933
2814
|
return (
|
|
2934
2815
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
2935
|
-
React__default.createElement("div", { ref: ref, className: cx$1(`uui-size-${size || settings.rangeDatePicker.sizes.default}`, 'uui-range-date-picker', classes, css$
|
|
2936
|
-
React__default.createElement(TextInput, { icon: settings.rangeDatePicker.icons.input.calendarIcon, cx: cx$1(css$
|
|
2937
|
-
React__default.createElement("div", { className: css$
|
|
2938
|
-
React__default.createElement(TextInput, { cx: cx$1(css$
|
|
2816
|
+
React__default.createElement("div", { ref: ref, className: cx$1(`uui-size-${size || settings.rangeDatePicker.sizes.default}`, 'uui-range-date-picker', classes, css$Z.root, isDisabled && uuiMod.disabled, isReadonly && uuiMod.readonly, isInvalid && uuiMod.invalid, inFocus && uuiMod.focus), onKeyDown: onKeyDown },
|
|
2817
|
+
React__default.createElement(TextInput, { icon: settings.rangeDatePicker.icons.input.calendarIcon, cx: cx$1(css$Z.dateInput, inFocus === 'from' && uuiMod.focus), size: size || settings.rangeDatePicker.sizes.default, placeholder: getPlaceholder ? getPlaceholder('from') : i18n.rangeDatePicker.pickerPlaceholderFrom, value: inputValue.from || undefined, onValueChange: (v) => onInputChange(v || '', 'from'), onFocus: (event) => handleFocus(event, 'from'), onBlur: (event) => handleBlur(event, 'from'), isInvalid: isInvalid, isDisabled: isDisabled, isReadonly: isReadonly, isDropdown: false, rawProps: rawProps?.from, onClick: onClick, onKeyDown: onInputKeyDown, id: id }),
|
|
2818
|
+
React__default.createElement("div", { className: css$Z.separator }),
|
|
2819
|
+
React__default.createElement(TextInput, { cx: cx$1(css$Z.dateInput, inFocus === 'to' && uuiMod.focus), placeholder: getPlaceholder ? getPlaceholder('to') : i18n.rangeDatePicker.pickerPlaceholderTo, size: size || settings.rangeDatePicker.sizes.default, value: inputValue.to || undefined, onCancel: clearAllowed ? () => {
|
|
2939
2820
|
onValueChange(defaultRangeValue);
|
|
2940
2821
|
} : 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 })));
|
|
2941
2822
|
});
|
|
2942
2823
|
|
|
2943
|
-
var css$
|
|
2824
|
+
var css$Y = {"root":"_1-2ivJ"};
|
|
2944
2825
|
|
|
2945
2826
|
const uuiPresets = {
|
|
2946
2827
|
container: 'uui-presets-container',
|
|
@@ -2955,12 +2836,12 @@ const getPresets = (presets) => {
|
|
|
2955
2836
|
})).sort((a, b) => a.order - b.order);
|
|
2956
2837
|
};
|
|
2957
2838
|
function CalendarPresets(props) {
|
|
2958
|
-
return (React.createElement("div", { ref: props.forwardedRef, className: cx$1(uuiPresets.container, css$
|
|
2839
|
+
return (React.createElement("div", { ref: props.forwardedRef, className: cx$1(uuiPresets.container, css$Y.root, props.cx), ...props.rawProps },
|
|
2959
2840
|
React.createElement("div", { className: uuiPresets.header }, "Presets"),
|
|
2960
2841
|
getPresets(props.presets).map((item) => (React.createElement(LinkButton, { key: item.key, caption: item.name, onClick: () => props.onPresetSet(item), size: settings.rangeDatePicker.sizes.preset })))));
|
|
2961
2842
|
}
|
|
2962
2843
|
|
|
2963
|
-
var css$
|
|
2844
|
+
var css$X = {"root":"C6kzmJ","container":"M59ghC","day-selection":"HBi--o","daySelection":"HBi--o","from-picker":"Qzb0WQ","fromPicker":"Qzb0WQ","to-picker":"q-pk67","toPicker":"q-pk67","bodes-wrapper":"qbNc-t","bodesWrapper":"qbNc-t","blocker":"ntKRHH"};
|
|
2964
2845
|
|
|
2965
2846
|
const uuiRangeDatePickerBody = {
|
|
2966
2847
|
inRange: 'uui-range-datepicker-in-range',
|
|
@@ -3101,21 +2982,21 @@ function RangeDatePickerBodyComp(props, ref) {
|
|
|
3101
2982
|
});
|
|
3102
2983
|
}, presets: presets })));
|
|
3103
2984
|
};
|
|
3104
|
-
return (React__default.createElement("div", { ref: ref, className: cx$1(css$
|
|
3105
|
-
React__default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$
|
|
2985
|
+
return (React__default.createElement("div", { ref: ref, className: cx$1(css$X.root, uuiDatePickerBodyBase.container, props.cx), ...props.rawProps },
|
|
2986
|
+
React__default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$X.daySelection, css$X.container], alignItems: "top" },
|
|
3106
2987
|
React__default.createElement(FlexCell, { width: "auto" },
|
|
3107
2988
|
React__default.createElement(FlexRow, null,
|
|
3108
|
-
React__default.createElement(FlexRow, { cx: css$
|
|
3109
|
-
React__default.createElement(StatelessDatePickerBody, { key: "date-picker-body-left", cx: cx$1(css$
|
|
2989
|
+
React__default.createElement(FlexRow, { cx: css$X.bodesWrapper, alignItems: "top" },
|
|
2990
|
+
React__default.createElement(StatelessDatePickerBody, { key: "date-picker-body-left", cx: cx$1(css$X.fromPicker), ...from, onValueChange: (v) => onBodyValueChange(v, 'from'), onMonthChange: (m) => {
|
|
3110
2991
|
setMonth(m);
|
|
3111
2992
|
}, onViewChange: (v) => setView(v), filter: props.filter, isHoliday: props.isHoliday, renderDay: props.renderDay || renderDay, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'to' }),
|
|
3112
|
-
React__default.createElement(StatelessDatePickerBody, { key: "date-picker-body-right", cx: cx$1(css$
|
|
2993
|
+
React__default.createElement(StatelessDatePickerBody, { key: "date-picker-body-right", cx: cx$1(css$X.toPicker), ...to, onValueChange: (v) => onBodyValueChange(v, 'to'), onMonthChange: (m) => {
|
|
3113
2994
|
setMonth(m.subtract(1, 'month'));
|
|
3114
2995
|
}, onViewChange: (v) => setView(v), filter: props.filter, renderDay: props.renderDay || renderDay, isHoliday: props.isHoliday, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'from' }),
|
|
3115
2996
|
view !== 'DAY_SELECTION' && (React__default.createElement("div", { style: {
|
|
3116
2997
|
left: activeMonth === 'from' ? '50%' : undefined,
|
|
3117
2998
|
right: activeMonth === 'to' ? '50%' : undefined,
|
|
3118
|
-
}, className: css$
|
|
2999
|
+
}, className: css$X.blocker }))),
|
|
3119
3000
|
props.presets && renderPresets(props.presets)),
|
|
3120
3001
|
props.renderFooter && props.renderFooter()))));
|
|
3121
3002
|
}
|
|
@@ -3135,7 +3016,7 @@ const getDayCX = (day, selectedDate) => {
|
|
|
3135
3016
|
return [cx$1(inRange && uuiRangeDatePickerBody.inRange, isFirst && uuiRangeDatePickerBody.firstDayInRangeWrapper, !inRange && isFirst && uuiRangeDatePickerBody.lastDayInRangeWrapper, isLast && uuiRangeDatePickerBody.lastDayInRangeWrapper, !inRange && isLast && uuiRangeDatePickerBody.firstDayInRangeWrapper, (dayValue === fromValue || dayValue === toValue) && uuiDaySelection.selectedDay)];
|
|
3136
3017
|
};
|
|
3137
3018
|
|
|
3138
|
-
var css$
|
|
3019
|
+
var css$W = {"dropdown-container":"M-PAM5","dropdownContainer":"M-PAM5"};
|
|
3139
3020
|
|
|
3140
3021
|
const modifiers = [{
|
|
3141
3022
|
name: 'offset',
|
|
@@ -3179,7 +3060,7 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
3179
3060
|
}
|
|
3180
3061
|
};
|
|
3181
3062
|
const renderBody = (renderProps) => {
|
|
3182
|
-
return (React__default.createElement(DropdownContainer, { ...renderProps, cx: cx(css$
|
|
3063
|
+
return (React__default.createElement(DropdownContainer, { ...renderProps, cx: cx(css$W.dropdownContainer), shards: [targetRef], returnFocus: true },
|
|
3183
3064
|
React__default.createElement(FlexRow, null,
|
|
3184
3065
|
React__default.createElement(RangeDatePickerBody, { cx: cx(props.bodyCx), value: {
|
|
3185
3066
|
selectedDate: _value,
|
|
@@ -3203,30 +3084,30 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
3203
3084
|
}
|
|
3204
3085
|
const RangeDatePicker = /* @__PURE__ */React__default.forwardRef(RangeDatePickerComponent);
|
|
3205
3086
|
|
|
3206
|
-
var css$
|
|
3087
|
+
var css$V = {"root":"yXuyET","blocker":"N5dd1r","marker":"yM2cRE","top":"lcWVdB","bottom":"jimZFF","left":"qH1C4H","right":"kQGIw1","inside":"ne-ILw"};
|
|
3207
3088
|
|
|
3208
3089
|
function DropMarker(props) {
|
|
3209
3090
|
return props.isDndInProgress
|
|
3210
3091
|
? (React.createElement(React.Fragment, null,
|
|
3211
|
-
props.enableBlocker && React.createElement("div", { className: css$
|
|
3092
|
+
props.enableBlocker && React.createElement("div", { className: css$V.blocker }),
|
|
3212
3093
|
React.createElement("div", { className: cx([
|
|
3213
|
-
css$
|
|
3214
|
-
css$
|
|
3215
|
-
css$
|
|
3094
|
+
css$V.root,
|
|
3095
|
+
css$V.marker,
|
|
3096
|
+
css$V[props.position],
|
|
3216
3097
|
props?.cx,
|
|
3217
3098
|
]) })))
|
|
3218
3099
|
: null;
|
|
3219
3100
|
}
|
|
3220
3101
|
|
|
3221
|
-
var css$
|
|
3102
|
+
var css$U = {"root":"-uB4Nf","line-height":"WMU0mq","lineHeight":"WMU0mq","font-size":"CXtxWV","fontSize":"CXtxWV"};
|
|
3222
3103
|
|
|
3223
3104
|
function applyTextMods(mods) {
|
|
3224
3105
|
return [
|
|
3225
|
-
css$
|
|
3106
|
+
css$U.root,
|
|
3226
3107
|
'uui-text',
|
|
3227
3108
|
`uui-size-${mods.size || settings.text.sizes.default}`,
|
|
3228
|
-
(mods.size !== 'none' || mods.lineHeight) && css$
|
|
3229
|
-
(mods.size !== 'none' || mods.fontSize) && css$
|
|
3109
|
+
(mods.size !== 'none' || mods.lineHeight) && css$U.lineHeight,
|
|
3110
|
+
(mods.size !== 'none' || mods.fontSize) && css$U.fontSize,
|
|
3230
3111
|
`uui-color-${mods.color || 'primary'}`,
|
|
3231
3112
|
`uui-font-weight-${mods.fontWeight || '400'}`,
|
|
3232
3113
|
`uui-font-style-${mods.fontStyle || 'normal'}`,
|
|
@@ -3245,26 +3126,9 @@ const Text = /* @__PURE__ */withMods(uuiComponents.Text, applyTextMods, (props)
|
|
|
3245
3126
|
};
|
|
3246
3127
|
});
|
|
3247
3128
|
|
|
3248
|
-
var css$L = {"root":"iBJD1U","loading-word":"nl6Jr6","loadingWord":"nl6Jr6","animated-loading":"jcXHOz","animatedLoading":"jcXHOz","skeleton_loading":"xiGFmD","skeletonLoading":"xiGFmD"};
|
|
3249
|
-
|
|
3250
|
-
const TextPlaceholder = (props) => {
|
|
3251
|
-
const pattern = ' ';
|
|
3252
|
-
const text = React.useMemo(() => {
|
|
3253
|
-
const words = [];
|
|
3254
|
-
for (let i = 0; i < (props.wordsCount || 1); i++) {
|
|
3255
|
-
const lengthWord = Math.floor(Math.random() * 10 + 8);
|
|
3256
|
-
words.push(pattern.repeat(lengthWord));
|
|
3257
|
-
}
|
|
3258
|
-
return words;
|
|
3259
|
-
}, [props.wordsCount]);
|
|
3260
|
-
return (React.createElement("div", { "aria-busy": true, className: cx(css$L.root, 'uui-text-placeholder'), ...props.rawProps }, text.map((it, index) => (React.createElement("span", { key: index, className: cx([
|
|
3261
|
-
props.cx, css$L.loadingWord, !props.isNotAnimated && css$L.animatedLoading,
|
|
3262
|
-
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
3263
|
-
};
|
|
3264
|
-
|
|
3265
3129
|
const RichTextView = /* @__PURE__ */withMods(uuiComponents.RichTextView, (mods) => ['uui-typography', `uui-typography-size-${mods.size || settings.richTextView.sizes.default}`]);
|
|
3266
3130
|
|
|
3267
|
-
var css$
|
|
3131
|
+
var css$T = {"modal":"-epZc3","search-wrapper":"tkQlgk","searchWrapper":"tkQlgk","no-data":"oGIrZd","noData":"oGIrZd","type-search-to-load-size-24":"_60e06z","typeSearchToLoadSize24":"_60e06z"};
|
|
3268
3132
|
|
|
3269
3133
|
class DataPickerBody extends PickerBodyBase {
|
|
3270
3134
|
constructor() {
|
|
@@ -3283,7 +3147,7 @@ class DataPickerBody extends PickerBodyBase {
|
|
|
3283
3147
|
});
|
|
3284
3148
|
}
|
|
3285
3149
|
if (this.props.minCharsToSearch && search.length < this.props.minCharsToSearch) {
|
|
3286
|
-
return (React__default.createElement(FlexCell$1, { cx: css$
|
|
3150
|
+
return (React__default.createElement(FlexCell$1, { cx: css$T.noData, grow: 1, textAlign: "center" },
|
|
3287
3151
|
React__default.createElement(Text, { size: this.props.searchSize }, i18n.dataPickerBody.typeSearchToLoadMessage)));
|
|
3288
3152
|
}
|
|
3289
3153
|
if (this.props.rows.length === 0) {
|
|
@@ -3298,24 +3162,24 @@ class DataPickerBody extends PickerBodyBase {
|
|
|
3298
3162
|
}
|
|
3299
3163
|
// Default no record found message for 'NOT_FOUND' and "NO_RECORDS" reason
|
|
3300
3164
|
// TODO: make separate messages for 'NOT_FOUND' and "NO_RECORDS" reason
|
|
3301
|
-
return (React__default.createElement(FlexCell$1, { cx: css$
|
|
3165
|
+
return (React__default.createElement(FlexCell$1, { cx: css$T.noData, grow: 1, textAlign: "center" },
|
|
3302
3166
|
React__default.createElement(Text, { size: this.props.searchSize }, i18n.dataPickerBody.noRecordsMessage)));
|
|
3303
3167
|
}
|
|
3304
3168
|
}
|
|
3305
3169
|
render() {
|
|
3306
3170
|
const searchSize = this.getSearchSize();
|
|
3307
3171
|
return (React__default.createElement(React__default.Fragment, null,
|
|
3308
|
-
this.showSearch() && (React__default.createElement("div", { key: "search", className: cx$1(css$
|
|
3172
|
+
this.showSearch() && (React__default.createElement("div", { key: "search", className: cx$1(css$T.searchWrapper, 'uui-picker_input-body-search') },
|
|
3309
3173
|
React__default.createElement(FlexCell$1, { grow: 1 },
|
|
3310
3174
|
React__default.createElement(SearchInput, { ref: this.searchRef, placeholder: i18n.dataPickerBody.searchPlaceholder, ...this.searchLens.toProps(), onKeyDown: this.searchKeyDown, size: searchSize, debounceDelay: this.props.searchDebounceDelay, rawProps: { dir: 'auto' } })))),
|
|
3311
|
-
React__default.createElement(FlexRow, { key: "body", cx: cx$1('uui-picker_input-body', css$
|
|
3175
|
+
React__default.createElement(FlexRow, { key: "body", cx: cx$1('uui-picker_input-body', css$T[this.props.editMode], css$T[this.props.selectionMode]), rawProps: { style: { maxHeight: this.props.maxHeight, maxWidth: this.props.maxWidth } } }, this.props.rows.length === 0 && this.props.value.topIndex === 0
|
|
3312
3176
|
// 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
|
|
3313
3177
|
// we fix this state on next render and shouldn't show empty state.
|
|
3314
3178
|
? this.renderEmpty() : (React__default.createElement(VirtualList, { ...this.lens.toProps(), rows: this.props.rows, rawProps: this.props.rawProps, rowsCount: this.props.rowsCount, isLoading: this.props.isReloading })))));
|
|
3315
3179
|
}
|
|
3316
3180
|
}
|
|
3317
3181
|
|
|
3318
|
-
var css$
|
|
3182
|
+
var css$S = {"footer":"aHp1QJ"};
|
|
3319
3183
|
|
|
3320
3184
|
function DataPickerFooterImpl(props) {
|
|
3321
3185
|
const { search, clearSelection, view, showSelected, selectionMode, isSearchTooShort, } = props;
|
|
@@ -3329,7 +3193,7 @@ function DataPickerFooterImpl(props) {
|
|
|
3329
3193
|
const isSearching = search?.length;
|
|
3330
3194
|
const hideFooter = (rowsCount === 0 && !hasSelection) || isSearching || (isSinglePicker && props.disableClear);
|
|
3331
3195
|
const showClear = !props.disableClear && (isSinglePicker ? true : (!view.selectAll || hasSelection));
|
|
3332
|
-
return !hideFooter && (React__default.createElement(FlexRow, { cx: css$
|
|
3196
|
+
return !hideFooter && (React__default.createElement(FlexRow, { cx: css$S.footer },
|
|
3333
3197
|
!isSinglePicker && !isSearchTooShort && ( // Show this switch only for multi mode and when some rows rendered
|
|
3334
3198
|
React__default.createElement(Switch, { size: settings.pickerInput.sizes.body.footerSwitchMap[props.size], value: showSelected.value, isDisabled: !hasSelection, onValueChange: showSelected.onValueChange, label: i18n.pickerInput.showOnlySelectedLabel })),
|
|
3335
3199
|
React__default.createElement(FlexSpacer, null),
|
|
@@ -3341,17 +3205,159 @@ function DataPickerFooterImpl(props) {
|
|
|
3341
3205
|
}
|
|
3342
3206
|
const DataPickerFooter = /* @__PURE__ */React__default.memo(DataPickerFooterImpl);
|
|
3343
3207
|
|
|
3344
|
-
var css$
|
|
3208
|
+
var css$R = {"header":"Xh3NOh","title":"jgH9TH","close":"wiAN3Y"};
|
|
3345
3209
|
|
|
3346
3210
|
const DataPickerHeaderImpl = (props) => {
|
|
3347
3211
|
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
3348
|
-
return (React__default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: [css$
|
|
3349
|
-
React__default.createElement("div", { className: css$
|
|
3350
|
-
React__default.createElement(IconButton, { icon: settings.pickerInput.icons.body.pickerBodyMobileHeaderCloseIcon, onClick: () => props.close?.(), cx: css$
|
|
3212
|
+
return (React__default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: [css$R.header, 'uui-picker_input-body-header'] },
|
|
3213
|
+
React__default.createElement("div", { className: css$R.title }, title),
|
|
3214
|
+
React__default.createElement(IconButton, { icon: settings.pickerInput.icons.body.pickerBodyMobileHeaderCloseIcon, onClick: () => props.close?.(), cx: css$R.close })));
|
|
3351
3215
|
};
|
|
3352
3216
|
const DataPickerHeader = /* @__PURE__ */React__default.memo(DataPickerHeaderImpl);
|
|
3353
3217
|
|
|
3354
|
-
var css$
|
|
3218
|
+
var css$Q = {"root":"qmChf4"};
|
|
3219
|
+
|
|
3220
|
+
const AvatarStack = /* @__PURE__ */withMods(AvatarStack$1, () => [css$Q.root]);
|
|
3221
|
+
|
|
3222
|
+
var css$P = {"root":"y4qe6c"};
|
|
3223
|
+
|
|
3224
|
+
const DEFAULT_FILL = 'solid';
|
|
3225
|
+
function applyBadgeMods(mods) {
|
|
3226
|
+
return [
|
|
3227
|
+
'uui-badge',
|
|
3228
|
+
css$P.root,
|
|
3229
|
+
`uui-size-${mods.size || settings.badge.sizes.default}`,
|
|
3230
|
+
`uui-fill-${mods.fill || DEFAULT_FILL}`,
|
|
3231
|
+
`uui-color-${mods.color || 'info'}`,
|
|
3232
|
+
];
|
|
3233
|
+
}
|
|
3234
|
+
const Badge = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
3235
|
+
const styles = [applyBadgeMods(props), props.cx];
|
|
3236
|
+
const DropdownIcon = props.dropdownIcon ? props.dropdownIcon : settings.badge.icons.dropdownIcon;
|
|
3237
|
+
return (React__default.createElement(Clickable, { ...props, rawProps: {
|
|
3238
|
+
'aria-haspopup': props.isDropdown,
|
|
3239
|
+
'aria-expanded': props.isOpen,
|
|
3240
|
+
...props.rawProps,
|
|
3241
|
+
}, cx: styles, ref: ref },
|
|
3242
|
+
(props.indicator && props.fill === 'outline') && (React__default.createElement("div", { className: "uui-indicator" })),
|
|
3243
|
+
props.icon && props.iconPosition !== 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
3244
|
+
props.caption && (React__default.createElement("div", { className: uuiElement.caption }, props.caption)),
|
|
3245
|
+
props.count !== undefined && props.count !== null && (React__default.createElement(CountIndicator, { key: "count-indicator", color: null, size: settings.badge.sizes.countIndicatorMap[props.size || settings.badge.sizes.default], caption: props.count })),
|
|
3246
|
+
props.icon && props.iconPosition === 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
3247
|
+
props.isDropdown && (React__default.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
3248
|
+
});
|
|
3249
|
+
|
|
3250
|
+
var css$O = {"root":"lkjETM"};
|
|
3251
|
+
|
|
3252
|
+
function applyTagMods(props) {
|
|
3253
|
+
return [
|
|
3254
|
+
css$O.root,
|
|
3255
|
+
`uui-size-${props.size || settings.tag.sizes.default}`,
|
|
3256
|
+
`uui-color-${props.color || 'neutral'}`,
|
|
3257
|
+
`uui-fill-${props.fill || 'solid'}`,
|
|
3258
|
+
'uui-tag',
|
|
3259
|
+
];
|
|
3260
|
+
}
|
|
3261
|
+
const Tag = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
3262
|
+
const styles = [applyTagMods(props), props.cx];
|
|
3263
|
+
const ClearIcon = props.clearIcon ? props.clearIcon : settings.tag.icons.clearIcon;
|
|
3264
|
+
const DropdownIcon = props.dropdownIcon ? props.dropdownIcon : settings.tag.icons.dropdownIcon;
|
|
3265
|
+
return (React__default.createElement(Clickable, { ...props, rawProps: {
|
|
3266
|
+
'aria-haspopup': props.isDropdown,
|
|
3267
|
+
'aria-expanded': props.isOpen,
|
|
3268
|
+
...props.rawProps,
|
|
3269
|
+
}, cx: styles, ref: ref },
|
|
3270
|
+
props.icon && props.iconPosition !== 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
3271
|
+
props.caption && (React__default.createElement("div", { className: uuiElement.caption }, props.caption)),
|
|
3272
|
+
props.count !== undefined && props.count !== null && (React__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 })),
|
|
3273
|
+
props.icon && props.iconPosition === 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
3274
|
+
props.isDropdown && (React__default.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
3275
|
+
props.onClear && !props.isDisabled && (React__default.createElement(IconContainer, { cx: uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
3276
|
+
});
|
|
3277
|
+
|
|
3278
|
+
var css$N = {"root":"fQb-Dw","page":"FD3Pjt","spacer":"ZIxNHJ","mode-ghost":"in7osj","modeGhost":"in7osj"};
|
|
3279
|
+
|
|
3280
|
+
function Paginator(props) {
|
|
3281
|
+
const renderPaginator = (params) => (React__default.createElement("nav", { role: "navigation", className: cx(css$N.root, 'uui-paginator', `uui-size-${props.size || settings.paginator.sizes.default}`), ...params.rawProps },
|
|
3282
|
+
React__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" }),
|
|
3283
|
+
params.pages.map((page, index) => {
|
|
3284
|
+
if (page.type === 'spacer') {
|
|
3285
|
+
return (React__default.createElement(Button, { cx: cx(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 }));
|
|
3286
|
+
}
|
|
3287
|
+
else {
|
|
3288
|
+
return (React__default.createElement(Button, { cx: cx(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 }));
|
|
3289
|
+
}
|
|
3290
|
+
}),
|
|
3291
|
+
React__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" })));
|
|
3292
|
+
return React__default.createElement(Paginator$1, { ...props, render: renderPaginator });
|
|
3293
|
+
}
|
|
3294
|
+
|
|
3295
|
+
var css$M = {"root":"-smroZ","progress-bar":"FfgO5p","progressBar":"FfgO5p","progressBar-indeterminate":"tK3xSU","progressBarIndeterminate":"tK3xSU","size-12":"JSOCnj","size12":"JSOCnj","size-18":"lsvm-L","size18":"lsvm-L","size-24":"ZbBI1e","size24":"ZbBI1e"};
|
|
3296
|
+
|
|
3297
|
+
const IndeterminateBar = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
3298
|
+
return (React.createElement("div", { ref: ref, className: cx('uui-indeterminate_bar', props.cx, css$M.root, css$M[`size-${props.size || 12}`]) },
|
|
3299
|
+
React.createElement("div", { className: cx(css$M.progressBar) })));
|
|
3300
|
+
});
|
|
3301
|
+
|
|
3302
|
+
var css$L = {"root":"_7mxkL8","striped":"yXqNQC","animate-stripes":"TIiRpU","animateStripes":"TIiRpU","size-12":"hgoJva","size12":"hgoJva","size-18":"eF6bdw","size18":"eF6bdw","size-24":"_5CgMyp","size24":"_5CgMyp"};
|
|
3303
|
+
|
|
3304
|
+
const DEFAULT_SIZE = '12';
|
|
3305
|
+
function applyProgressBarMods(mods) {
|
|
3306
|
+
const size = mods.size || DEFAULT_SIZE;
|
|
3307
|
+
return [
|
|
3308
|
+
css$L.root,
|
|
3309
|
+
css$L[`size-${size}`],
|
|
3310
|
+
mods.striped && css$L.striped,
|
|
3311
|
+
];
|
|
3312
|
+
}
|
|
3313
|
+
const ProgressBar = /* @__PURE__ */withMods(uuiComponents.ProgressBar, applyProgressBarMods, (props) => ({
|
|
3314
|
+
hideLabel: props.hideLabel || props.striped,
|
|
3315
|
+
}));
|
|
3316
|
+
|
|
3317
|
+
var css$K = {"root":"_6ZNAdU"};
|
|
3318
|
+
|
|
3319
|
+
const IndicatorBar = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
3320
|
+
const { progress } = props;
|
|
3321
|
+
return progress || progress === 0 ? (React.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx(css$K.root, props.cx), hideLabel: true })) : (React.createElement(IndeterminateBar, { ref: ref, cx: cx(css$K.root, props.cx) }));
|
|
3322
|
+
});
|
|
3323
|
+
|
|
3324
|
+
var css$J = {"root":"-tXIEB"};
|
|
3325
|
+
|
|
3326
|
+
const StatusIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
3327
|
+
return (React__default.createElement("div", { ref: ref, className: cx([
|
|
3328
|
+
css$J.root,
|
|
3329
|
+
`uui-size-${props.size || settings.statusIndicator.sizes.default}`,
|
|
3330
|
+
'uui-status_indicator',
|
|
3331
|
+
`uui-color-${props.color || 'neutral'}`,
|
|
3332
|
+
`uui-fill-${props.fill || 'solid'}`,
|
|
3333
|
+
props.cx,
|
|
3334
|
+
]) },
|
|
3335
|
+
React__default.createElement("div", { className: "uui-status_indicator-dot" }),
|
|
3336
|
+
React__default.createElement("p", { className: "uui-status_indicator-caption" }, props.caption)));
|
|
3337
|
+
});
|
|
3338
|
+
|
|
3339
|
+
var css$I = {"drag-handle":"Byw5m7","dragHandle":"Byw5m7","icon-container":"ptrnrS","iconContainer":"ptrnrS"};
|
|
3340
|
+
|
|
3341
|
+
function DataRowAddons(props) {
|
|
3342
|
+
const row = props.rowProps;
|
|
3343
|
+
const getIndent = () => {
|
|
3344
|
+
return (row.indent - 1) * settings.dataTable.sizes.body.indentUnitMap[props.size || settings.dataTable.sizes.body.row];
|
|
3345
|
+
};
|
|
3346
|
+
const getWidth = () => {
|
|
3347
|
+
return settings.dataTable.sizes.body.indentWidthMap[props.size || settings.dataTable.sizes.body.row];
|
|
3348
|
+
};
|
|
3349
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
3350
|
+
row.dnd?.srcData && React__default.createElement(DragHandle, { key: "dh", cx: css$I.dragHandle, rawProps: { ...props.eventHandlers } }),
|
|
3351
|
+
row?.checkbox?.isVisible && (React__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 })),
|
|
3352
|
+
row.indent > 0 && (React__default.createElement("div", { key: "fold", className: cx('uui-dr_addons-indent', `uui-size-${props.size}`), style: { marginInlineStart: getIndent(), width: getWidth() } }, row.isFoldable && (React__default.createElement(IconContainer, { rawProps: {
|
|
3353
|
+
'aria-label': row.isFolded ? 'Unfold' : 'Fold',
|
|
3354
|
+
role: 'button',
|
|
3355
|
+
}, key: "icon", icon: settings.dataTable.icons.body.foldingIcon, cx: [
|
|
3356
|
+
uuiElement.foldingArrow, uuiMarkers.clickable, css$I.iconContainer,
|
|
3357
|
+
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row), size: settings.dataTable.sizes.body.iconMap[props.size || settings.dataTable.sizes.body.row] }))))));
|
|
3358
|
+
}
|
|
3359
|
+
|
|
3360
|
+
var css$H = {"root":"-N3CWw","align-widgets-top":"DQPaMj","alignWidgetsTop":"DQPaMj","align-widgets-center":"OVlRb8","alignWidgetsCenter":"OVlRb8","icon-container":"CBPZU-","iconContainer":"CBPZU-","loading-cell":"BCUogW","loadingCell":"BCUogW","content-wrapper":"xKZJOx","contentWrapper":"xKZJOx","render-item":"kk8Szx","renderItem":"kk8Szx","icon-wrapper":"GasdAg","iconWrapper":"GasdAg","icon-default":"Xtb-p6","iconDefault":"Xtb-p6","selected-mark":"_8HbyrB","selectedMark":"_8HbyrB"};
|
|
3355
3361
|
|
|
3356
3362
|
function DataPickerCell(props) {
|
|
3357
3363
|
const ref = React.useRef();
|
|
@@ -3359,8 +3365,7 @@ function DataPickerCell(props) {
|
|
|
3359
3365
|
if (props.rowProps.isLoading) {
|
|
3360
3366
|
content = (
|
|
3361
3367
|
// remove `css.loadingCell` after` removing `margin: 0 3px 3px 0` from `TextPlaceholder` `loadingWord` class styles.
|
|
3362
|
-
React.createElement(Text, { key: "t", size: props.size, cx: css$H.loadingCell },
|
|
3363
|
-
React.createElement(TextPlaceholder, null)));
|
|
3368
|
+
React.createElement(Text, { key: "t", size: props.size, cx: css$H.loadingCell }, settings.pickerInput.renderPlaceholder()));
|
|
3364
3369
|
}
|
|
3365
3370
|
else if (props.rowProps.isUnknown) {
|
|
3366
3371
|
content = (React.createElement(Text, { key: "t", size: props.size }, "Unknown"));
|
|
@@ -3392,7 +3397,7 @@ function DataPickerCell(props) {
|
|
|
3392
3397
|
getWrappedContent()));
|
|
3393
3398
|
}
|
|
3394
3399
|
|
|
3395
|
-
var css$G = {"picker-row":"
|
|
3400
|
+
var css$G = {"picker-row":"msc37k","pickerRow":"msc37k"};
|
|
3396
3401
|
|
|
3397
3402
|
class DataPickerRow extends React.Component {
|
|
3398
3403
|
constructor() {
|
|
@@ -3406,7 +3411,7 @@ class DataPickerRow extends React.Component {
|
|
|
3406
3411
|
}
|
|
3407
3412
|
}
|
|
3408
3413
|
|
|
3409
|
-
var css$F = {"done":"
|
|
3414
|
+
var css$F = {"done":"hJW-s8","container":"alaYb-"};
|
|
3410
3415
|
|
|
3411
3416
|
const PickerBodyMobileView = (props) => {
|
|
3412
3417
|
const isMobileView = isMobile();
|
|
@@ -3483,7 +3488,7 @@ const getHighlightedSearchMatches = (str, search) => {
|
|
|
3483
3488
|
return getDecoratedText(str, ranges);
|
|
3484
3489
|
};
|
|
3485
3490
|
|
|
3486
|
-
var css$E = {"root":"
|
|
3491
|
+
var css$E = {"root":"RA86Nl","column-gap":"MMAxij","columnGap":"MMAxij","title":"wfto9u","subtitle":"_9FR9xr","disabled":"fEeXWa","multiline":"_0230ms"};
|
|
3487
3492
|
|
|
3488
3493
|
function PickerItem(props) {
|
|
3489
3494
|
const { highlightSearchMatches = true, size, avatarUrl, isLoading, isDisabled, icon, } = props;
|
|
@@ -3504,7 +3509,7 @@ function getAvatarSize(size, isMultiline) {
|
|
|
3504
3509
|
return settings.pickerInput.sizes.body[isMultiline ? 'itemAvatarMultilineMap' : 'itemAvatarMap'][size];
|
|
3505
3510
|
}
|
|
3506
3511
|
|
|
3507
|
-
var css$D = {"sub-header-wrapper":"
|
|
3512
|
+
var css$D = {"sub-header-wrapper":"-Xfnve","subHeaderWrapper":"-Xfnve","switch":"vWtThq","no-found-modal-container":"_0xl76W","noFoundModalContainer":"_0xl76W","no-found-modal-container-icon":"f25sjz","noFoundModalContainerIcon":"f25sjz","no-found-modal-container-text":"dkNH-1","noFoundModalContainerText":"dkNH-1"};
|
|
3508
3513
|
|
|
3509
3514
|
function PickerModal(props) {
|
|
3510
3515
|
const { view, selection, dataSourceStateLens, dataSourceState, getDataSourceState, getName, clearSelection, getRows, getListProps, getFooterProps, isSingleSelect, handleDataSourceValueChange, } = usePickerModal(props);
|
|
@@ -3559,7 +3564,7 @@ function PickerModal(props) {
|
|
|
3559
3564
|
React__default.createElement(ModalFooter, null, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
|
|
3560
3565
|
}
|
|
3561
3566
|
|
|
3562
|
-
var css$C = {"tooltip":"
|
|
3567
|
+
var css$C = {"tooltip":"wwTyxH"};
|
|
3563
3568
|
|
|
3564
3569
|
const PickerTogglerTag = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
3565
3570
|
const tagProps = {
|
|
@@ -3578,7 +3583,7 @@ const PickerTogglerTag = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
3578
3583
|
}
|
|
3579
3584
|
});
|
|
3580
3585
|
|
|
3581
|
-
var css$B = {"root":"
|
|
3586
|
+
var css$B = {"root":"CAvCYH","mode-form":"OGeq0z","modeForm":"OGeq0z","mode-cell":"I-NGib","modeCell":"I-NGib","mode-inline":"I89UxR","modeInline":"I89UxR"};
|
|
3582
3587
|
|
|
3583
3588
|
const defaultMode = EditMode.FORM;
|
|
3584
3589
|
function applyPickerTogglerMods(mods) {
|
|
@@ -3679,7 +3684,7 @@ function PickerInputComponent({ highlightSearchMatches = true, ...props }, ref)
|
|
|
3679
3684
|
}
|
|
3680
3685
|
const PickerInput = /* @__PURE__ */React__default.forwardRef(PickerInputComponent);
|
|
3681
3686
|
|
|
3682
|
-
var css$A = {"row":"
|
|
3687
|
+
var css$A = {"row":"jNNNeD"};
|
|
3683
3688
|
|
|
3684
3689
|
function PickerListItem(props) {
|
|
3685
3690
|
let label;
|
|
@@ -3699,7 +3704,7 @@ function PickerListItem(props) {
|
|
|
3699
3704
|
return (React__default.createElement("div", { role: "option", "aria-selected": props.isSelectable ? props.isSelected : undefined, "aria-busy": props.isLoading, "aria-posinset": props.index + 1, ...(props.checkbox?.isVisible && { 'aria-checked': props.isChecked }), className: css$A.row }, component));
|
|
3700
3705
|
}
|
|
3701
3706
|
|
|
3702
|
-
var css$z = {"root":"
|
|
3707
|
+
var css$z = {"root":"HcTpU5"};
|
|
3703
3708
|
|
|
3704
3709
|
function PickerList(props) {
|
|
3705
3710
|
const { context, view, onlySelectedView, getName, getEntityName, appendLastSelected, getSelectedIdsArray, buildRowsList, getMaxDefaultItems, dataSourceState, getModalTogglerCaption, } = usePickerList(props);
|
|
@@ -3734,7 +3739,7 @@ function PickerList(props) {
|
|
|
3734
3739
|
}, selectedRows)));
|
|
3735
3740
|
}
|
|
3736
3741
|
|
|
3737
|
-
var css$y = {"root":"
|
|
3742
|
+
var css$y = {"root":"VtLkh-","wrapper":"U8po1N","align-widgets-top":"-f8vwb","alignWidgetsTop":"-f8vwb","align-widgets-center":"_8cBqD-","alignWidgetsCenter":"_8cBqD-"};
|
|
3738
3743
|
|
|
3739
3744
|
function DataTableCell(initialProps) {
|
|
3740
3745
|
const props = { ...initialProps };
|
|
@@ -3742,8 +3747,7 @@ function DataTableCell(initialProps) {
|
|
|
3742
3747
|
props.addons = React.createElement(DataRowAddons, { size: props.size, ...props });
|
|
3743
3748
|
}
|
|
3744
3749
|
props.renderPlaceholder = props.renderPlaceholder
|
|
3745
|
-
|| (() => (React.createElement(Text, { key: "t", size: props.size },
|
|
3746
|
-
React.createElement(TextPlaceholder, { isNotAnimated: true }))));
|
|
3750
|
+
|| (() => (React.createElement(Text, { key: "t", size: props.size }, settings.dataTable.renderPlaceholder())));
|
|
3747
3751
|
props.renderUnknown = props.renderUnknown
|
|
3748
3752
|
|| (() => (React.createElement(Text, { key: "t", size: props.size }, "Unknown")));
|
|
3749
3753
|
props.renderTooltip = (tooltipProps) => React.createElement(Tooltip, { color: "critical", ...tooltipProps });
|
|
@@ -3783,7 +3787,7 @@ function DataTableCell(initialProps) {
|
|
|
3783
3787
|
return React.createElement(DataTableCell$1, { ...props });
|
|
3784
3788
|
}
|
|
3785
3789
|
|
|
3786
|
-
var css$x = {"root":"
|
|
3790
|
+
var css$x = {"root":"_1VDQpZ"};
|
|
3787
3791
|
|
|
3788
3792
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
3789
3793
|
// 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.
|
|
@@ -3799,7 +3803,7 @@ const DataTableRow = /* @__PURE__ */withMods(DataTableRow$1, ({ borderBottom = t
|
|
|
3799
3803
|
];
|
|
3800
3804
|
}, () => propsMods);
|
|
3801
3805
|
|
|
3802
|
-
var css$w = {"sorting-panel-container":"
|
|
3806
|
+
var css$w = {"sorting-panel-container":"tJOLVj","sortingPanelContainer":"tJOLVj"};
|
|
3803
3807
|
|
|
3804
3808
|
const SortingPanelImpl = ({ sortDirection, onSort }) => {
|
|
3805
3809
|
const sortAsc = useCallback(() => onSort(sortDirection === 'asc' ? undefined : 'asc'), [onSort]);
|
|
@@ -3824,7 +3828,7 @@ const ColumnHeaderDropdownImpl = (props) => {
|
|
|
3824
3828
|
};
|
|
3825
3829
|
const ColumnHeaderDropdown = /* @__PURE__ */React__default.memo(ColumnHeaderDropdownImpl);
|
|
3826
3830
|
|
|
3827
|
-
var css$v = {"root":"
|
|
3831
|
+
var css$v = {"root":"_48b-nR","caption-wrapper":"hywdjT","captionWrapper":"hywdjT","sort-icon":"piYC7o","sortIcon":"piYC7o","dropdown-icon":"kExqVJ","dropdownIcon":"kExqVJ","infoIcon":"y24y8e","resizable":"_8szJs3","align-right":"kIF82w","alignRight":"kIF82w","align-center":"Rd7Jzu","alignCenter":"Rd7Jzu","caption":"IJcumt","truncate":"q5Slbb","upper-case":"c-1a1s","upperCase":"c-1a1s","checkbox":"RHTeKT","icon":"_1qQRXR","fold-all-icon":"qjSeCs","foldAllIcon":"qjSeCs","cell-tooltip":"T6MvfP","cellTooltip":"T6MvfP","resizing-marker":"ImiMuh","resizingMarker":"ImiMuh","pinned-right":"evQ2nn","pinnedRight":"evQ2nn","draggable":"IT5YeF","ghost":"Zl-Dj5","is-dragged-out":"SNiLeG","isDraggedOut":"SNiLeG","dnd-marker-left":"kpWgCc","dndMarkerLeft":"kpWgCc","dnd-marker-right":"idjE1d","dndMarkerRight":"idjE1d","cell-tooltip-wrapper":"qnxiUl","cellTooltipWrapper":"qnxiUl","cell-tooltip-text":"MqWydU","cellTooltipText":"MqWydU","tooltip-caption":"RxeZTe","tooltipCaption":"RxeZTe","tooltip-info":"ANz59x","tooltipInfo":"ANz59x"};
|
|
3828
3832
|
|
|
3829
3833
|
class DataTableHeaderCell extends React.Component {
|
|
3830
3834
|
constructor() {
|
|
@@ -3918,7 +3922,7 @@ class DataTableHeaderCell extends React.Component {
|
|
|
3918
3922
|
}
|
|
3919
3923
|
}
|
|
3920
3924
|
|
|
3921
|
-
var css$u = {"root":"
|
|
3925
|
+
var css$u = {"root":"Y8JWtm","caption-wrapper":"hrFKIY","captionWrapper":"hrFKIY","align-center":"vPCZZ9","alignCenter":"vPCZZ9","caption":"WOEEpa","truncate":"o3h-ud","upper-case":"gt5XQS","upperCase":"gt5XQS","group-cell-tooltip":"a1-yAA","groupCellTooltip":"a1-yAA","group-cell-tooltip-wrapper":"ZMi6Bx","groupCellTooltipWrapper":"ZMi6Bx","group-cell-tooltip-text":"O1jRN9","groupCellTooltipText":"O1jRN9","tooltip-caption":"Xqzhaq","tooltipCaption":"Xqzhaq","tooltip-info":"iA10Zw","tooltipInfo":"iA10Zw"};
|
|
3922
3926
|
|
|
3923
3927
|
class DataTableHeaderGroupCell extends React.Component {
|
|
3924
3928
|
constructor() {
|
|
@@ -3958,7 +3962,7 @@ class DataTableHeaderGroupCell extends React.Component {
|
|
|
3958
3962
|
}
|
|
3959
3963
|
}
|
|
3960
3964
|
|
|
3961
|
-
var css$t = {"root":"
|
|
3965
|
+
var css$t = {"root":"kMOrYG"};
|
|
3962
3966
|
|
|
3963
3967
|
const DataTableHeaderRow = /* @__PURE__ */withMods(DataTableHeaderRow$1, () => [css$t.root, 'uui-dt-vars'], (mods) => ({
|
|
3964
3968
|
renderCell: (props) => (React.createElement(DataTableHeaderCell, { ...props, size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key, columnsGap: mods.columnsGap })),
|
|
@@ -3971,7 +3975,7 @@ const UUI_FILTERS_PANEL_ADD_BUTTON_BODY = 'uui-filters-panel-add-button-body';
|
|
|
3971
3975
|
const UUI_FILTERS_PANEL_ITEM_BODY = 'uui-filters-panel-item-body';
|
|
3972
3976
|
const UUI_FILTERS_PANEL_ITEM_TOGGLER = 'uui-filters-panel-item-toggler';
|
|
3973
3977
|
|
|
3974
|
-
var css$s = {"root":"
|
|
3978
|
+
var css$s = {"root":"wvydVB","title-wrapper":"TBME5K","titleWrapper":"TBME5K","title":"E6cDIN","text-wrapper":"A6RI-Q","textWrapper":"A6RI-Q","selection":"EFb0qg","postfix":"KebYoR","selected":"zD9HRm"};
|
|
3975
3979
|
|
|
3976
3980
|
const FilterPanelItemToggler = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
3977
3981
|
const togglerPickerOpened = (e) => {
|
|
@@ -4139,7 +4143,7 @@ function FilterRangeDatePickerBody(props) {
|
|
|
4139
4143
|
React__default.createElement(LinkButton, { isDisabled: !value.from && !value.to, caption: i18n.pickerModal.clearAllButton, onClick: () => onValueChange(defaultRangeValue) })))));
|
|
4140
4144
|
}
|
|
4141
4145
|
|
|
4142
|
-
var css$r = {"container":"
|
|
4146
|
+
var css$r = {"container":"g48nXw"};
|
|
4143
4147
|
|
|
4144
4148
|
function FilterNumericBody(props) {
|
|
4145
4149
|
const isInRangePredicate = props?.selectedPredicate === 'inRange' || props?.selectedPredicate === 'notInRange';
|
|
@@ -4235,7 +4239,7 @@ var SvgActionDeleteOutline = function SvgActionDeleteOutline(props, ref) {
|
|
|
4235
4239
|
};
|
|
4236
4240
|
var ForwardRef$a = /*#__PURE__*/forwardRef(SvgActionDeleteOutline);
|
|
4237
4241
|
|
|
4238
|
-
var css$q = {"header":"
|
|
4242
|
+
var css$q = {"header":"nQfOa5","removeButton":"zzWsa3","with-search":"x7Z6oG","withSearch":"x7Z6oG"};
|
|
4239
4243
|
|
|
4240
4244
|
function useView(props, value) {
|
|
4241
4245
|
const forceUpdate = useForceUpdate();
|
|
@@ -4541,7 +4545,7 @@ function FiltersToolbarImpl(props) {
|
|
|
4541
4545
|
}
|
|
4542
4546
|
const FiltersPanel = /* @__PURE__ */React__default.memo(FiltersToolbarImpl);
|
|
4543
4547
|
|
|
4544
|
-
var css$p = {"divider":"
|
|
4548
|
+
var css$p = {"divider":"mO66Fe","dropdownDeleteIcon":"P77zbO","presetsWrapper":"Agr0L-","addPresetContainer":"fNeloQ","dropContainer":"_093SE1"};
|
|
4545
4549
|
|
|
4546
4550
|
var _path$9;
|
|
4547
4551
|
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); }
|
|
@@ -4622,7 +4626,7 @@ var SvgContentLinkOutline = function SvgContentLinkOutline(props, ref) {
|
|
|
4622
4626
|
};
|
|
4623
4627
|
var ForwardRef$5 = /*#__PURE__*/forwardRef(SvgContentLinkOutline);
|
|
4624
4628
|
|
|
4625
|
-
var css$o = {"delete-button":"
|
|
4629
|
+
var css$o = {"delete-button":"_8cri2K","deleteButton":"_8cri2K","tab-button":"G-ZnLp","tabButton":"G-ZnLp","targetOpen":"n5wk67"};
|
|
4626
4630
|
|
|
4627
4631
|
function PresetActionsDropdown(props) {
|
|
4628
4632
|
const { uuiNotifications } = useUuiContext();
|
|
@@ -4689,7 +4693,7 @@ function PresetActionsDropdown(props) {
|
|
|
4689
4693
|
return (React__default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end", modifiers: [{ name: 'offset', options: { offset: [0, 22] } }] }));
|
|
4690
4694
|
}
|
|
4691
4695
|
|
|
4692
|
-
var css$n = {"preset-input-cell":"
|
|
4696
|
+
var css$n = {"preset-input-cell":"VxWJV-","presetInputCell":"VxWJV-","preset-input":"P-aZ3-","presetInput":"P-aZ3-"};
|
|
4693
4697
|
|
|
4694
4698
|
const UUI_PRESETS_PANEL_ADD_BUTTON = 'uui-presets-panel-add-button';
|
|
4695
4699
|
const UUI_PRESETS_PANEL_MORE_BUTTON = 'uui-presets-panel-more-button';
|
|
@@ -4721,7 +4725,7 @@ function PresetInput(props) {
|
|
|
4721
4725
|
React__default.createElement(TextInput, { cx: css$n.presetInput, onValueChange: setPresetCaption, value: presetCaption, onCancel: cancelActionHandler, onAccept: acceptActionHandler, onBlur: newPresetOnBlurHandler, autoFocus: true, maxLength: 50, isReadonly: readonly })));
|
|
4722
4726
|
}
|
|
4723
4727
|
|
|
4724
|
-
var css$m = {"preset":"
|
|
4728
|
+
var css$m = {"preset":"qrjGRX","activePreset":"LDB8M3"};
|
|
4725
4729
|
|
|
4726
4730
|
function Preset(props) {
|
|
4727
4731
|
const [isRenamePreset, setIsRenamePreset] = useState(false);
|
|
@@ -4847,7 +4851,7 @@ const useColumnsWithFilters = (initialColumns, filters) => {
|
|
|
4847
4851
|
return columns;
|
|
4848
4852
|
};
|
|
4849
4853
|
|
|
4850
|
-
var css$l = {"unpin-icon":"
|
|
4854
|
+
var css$l = {"unpin-icon":"tCZZBq","unpinIcon":"tCZZBq","pin-toggler-icon":"WK-Zkr","pinTogglerIcon":"WK-Zkr"};
|
|
4851
4855
|
|
|
4852
4856
|
function PinIconButton(props) {
|
|
4853
4857
|
const i18nLocal = i18n.tables.columnsConfigurationModal;
|
|
@@ -4889,7 +4893,7 @@ function getUnpinIcon(params) {
|
|
|
4889
4893
|
}
|
|
4890
4894
|
}
|
|
4891
4895
|
|
|
4892
|
-
var css$k = {"row-wrapper":"
|
|
4896
|
+
var css$k = {"row-wrapper":"_935DPP","rowWrapper":"_935DPP","pin-icon-button":"f33Kpw","pinIconButton":"f33Kpw","not-pinned":"FuOd73","notPinned":"FuOd73","checkbox":"_2hjqnd","drag-handle":"BvD5Mv","dragHandle":"BvD5Mv","dnd-disabled":"-w5E2R","dndDisabled":"-w5E2R"};
|
|
4893
4897
|
|
|
4894
4898
|
const ColumnRow = /* @__PURE__ */React.memo(function ColumnRow(props) {
|
|
4895
4899
|
const { column } = props;
|
|
@@ -4912,7 +4916,7 @@ const ColumnRow = /* @__PURE__ */React.memo(function ColumnRow(props) {
|
|
|
4912
4916
|
return (React.createElement(DndActor, { key: column.key, srcData: isDndAllowed && data, dstData: data, canAcceptDrop: onCanAcceptDrop, onDrop: onDrop, render: renderContent }));
|
|
4913
4917
|
});
|
|
4914
4918
|
|
|
4915
|
-
var css$j = {"root":"
|
|
4919
|
+
var css$j = {"root":"JL9oRO","main-panel":"p495vP","mainPanel":"p495vP","group":"EysJCx","group-title":"Vf6eax","groupTitle":"Vf6eax","group-items":"zBXnE9","groupItems":"zBXnE9","no-data":"HCZhdn","noData":"HCZhdn","no-data-title":"A-tXy4","noDataTitle":"A-tXy4","no-data-sub-title":"_60rm3y","noDataSubTitle":"_60rm3y","h-divider":"s2VXEB","hDivider":"s2VXEB","search-area":"sSnnnp","searchArea":"sSnnnp","subgroup-accordion":"Y9ArFM","subgroupAccordion":"Y9ArFM","subgroup":"a-keBB","subgroup-title":"CeK-M9","subgroupTitle":"CeK-M9"};
|
|
4916
4920
|
|
|
4917
4921
|
const renderGroupTitle = (title, amount) => (React.createElement(FlexRow, { cx: css$j.group },
|
|
4918
4922
|
React.createElement(Text, { size: "none", cx: css$j.groupTitle }, title),
|
|
@@ -5014,7 +5018,7 @@ const getChildrenAndRest = (row, rows) => {
|
|
|
5014
5018
|
return [children, rest];
|
|
5015
5019
|
};
|
|
5016
5020
|
|
|
5017
|
-
var css$i = {"listContainer":"
|
|
5021
|
+
var css$i = {"listContainer":"tIehST","header":"_7IWGL0","group":"_6GtYZi","stickyHeader":"rkhO6X"};
|
|
5018
5022
|
|
|
5019
5023
|
function DataRowsGroup({ row, childRows, renderRow, top = 1, }) {
|
|
5020
5024
|
const rowRef = useRef();
|
|
@@ -5054,7 +5058,7 @@ function DataRowsContainer({ estimatedHeight, listContainerRef, offsetY, rows, r
|
|
|
5054
5058
|
React__default.createElement(DataRowsGroups, { rows: rows, renderRow: renderRow, top: headerRef?.current?.clientHeight }))));
|
|
5055
5059
|
}
|
|
5056
5060
|
|
|
5057
|
-
var css$h = {"root":"
|
|
5061
|
+
var css$h = {"root":"hOJPeb","sticky-header":"bZU6Oa","stickyHeader":"bZU6Oa","no-results":"YG-8vF","noResults":"YG-8vF","icon":"TiXzch","title":"PnwFJC"};
|
|
5058
5062
|
|
|
5059
5063
|
function DataTable(props) {
|
|
5060
5064
|
const { uuiModals } = useUuiContext();
|
|
@@ -5103,9 +5107,9 @@ function DataTable(props) {
|
|
|
5103
5107
|
} }))));
|
|
5104
5108
|
}
|
|
5105
5109
|
|
|
5106
|
-
var css$g = {"root":"
|
|
5110
|
+
var css$g = {"root":"-cFzxG"};
|
|
5107
5111
|
|
|
5108
|
-
var css$f = {"root":"
|
|
5112
|
+
var css$f = {"root":"rRzCna","burger-content":"_7vJ4jU","burgerContent":"_7vJ4jU"};
|
|
5109
5113
|
|
|
5110
5114
|
var _path$3;
|
|
5111
5115
|
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); }
|
|
@@ -5148,7 +5152,7 @@ var SvgNavigationArrowDownOutline = function SvgNavigationArrowDownOutline(props
|
|
|
5148
5152
|
};
|
|
5149
5153
|
var ForwardRef$2 = /*#__PURE__*/forwardRef(SvgNavigationArrowDownOutline);
|
|
5150
5154
|
|
|
5151
|
-
var css$e = {"root":"
|
|
5155
|
+
var css$e = {"root":"KMbiBY","button-primary":"djY9E-","buttonPrimary":"djY9E-","button-secondary":"odcBUV","buttonSecondary":"odcBUV","hasIcon":"_5f74DJ","dropdown":"_3fqYF4"};
|
|
5152
5156
|
|
|
5153
5157
|
const BurgerButton = /* @__PURE__ */withMods(Button$1, (props) => [
|
|
5154
5158
|
css$e.root,
|
|
@@ -5159,13 +5163,13 @@ const BurgerButton = /* @__PURE__ */withMods(Button$1, (props) => [
|
|
|
5159
5163
|
props.icon && css$e.hasIcon,
|
|
5160
5164
|
], () => ({ dropdownIcon: ForwardRef$2, dropdownIconPosition: 'left', role: 'menuitem' }));
|
|
5161
5165
|
|
|
5162
|
-
var css$d = {"search-input":"
|
|
5166
|
+
var css$d = {"search-input":"HUb9-x","searchInput":"HUb9-x"};
|
|
5163
5167
|
|
|
5164
5168
|
function BurgerSearch(props) {
|
|
5165
5169
|
return (React.createElement(TextInput$1, { cx: cx(css$d.searchInput, 'uui-main_menu-burger-search'), iconPosition: "left", icon: ForwardRef$N, placeholder: props.placeholder, value: props.value, onValueChange: props.onValueChange, onCancel: props.onCancel, cancelIcon: props.value && ForwardRef$R }));
|
|
5166
5170
|
}
|
|
5167
5171
|
|
|
5168
|
-
var css$c = {"root":"
|
|
5172
|
+
var css$c = {"root":"o7fuFq","group-header":"_1LoMKB","groupHeader":"_1LoMKB","group-name":"U-2UaX","groupName":"U-2UaX","line":"CXzh-S"};
|
|
5169
5173
|
|
|
5170
5174
|
function BurgerGroupHeader(props) {
|
|
5171
5175
|
return (React.createElement("div", { className: cx(css$c.root, css$c.groupHeader, 'uui-burger-group-header') },
|
|
@@ -5173,7 +5177,7 @@ function BurgerGroupHeader(props) {
|
|
|
5173
5177
|
React.createElement("span", { className: css$c.groupName }, props.caption)));
|
|
5174
5178
|
}
|
|
5175
5179
|
|
|
5176
|
-
var css$b = {"root":"
|
|
5180
|
+
var css$b = {"root":"U4Uiy-","type-primary":"hOaf8O","typePrimary":"hOaf8O","type-secondary":"xX6Uxs","typeSecondary":"xX6Uxs"};
|
|
5177
5181
|
|
|
5178
5182
|
const MainMenuButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
5179
5183
|
const { type, ...clickableProps } = props;
|
|
@@ -5195,7 +5199,7 @@ const MainMenuButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
5195
5199
|
props.isDropdown && (React.createElement(IconContainer, { icon: ForwardRef$Q, flipY: props.isOpen }))));
|
|
5196
5200
|
});
|
|
5197
5201
|
|
|
5198
|
-
var css$a = {"dropdown-body":"
|
|
5202
|
+
var css$a = {"dropdown-body":"Mf-hmd","dropdownBody":"Mf-hmd"};
|
|
5199
5203
|
|
|
5200
5204
|
class MainMenuDropdown extends React.Component {
|
|
5201
5205
|
render() {
|
|
@@ -5253,12 +5257,12 @@ var SvgNavigationGlobalMenuOutlineOutline = function SvgNavigationGlobalMenuOutl
|
|
|
5253
5257
|
};
|
|
5254
5258
|
var ForwardRef$1 = /*#__PURE__*/forwardRef(SvgNavigationGlobalMenuOutlineOutline);
|
|
5255
5259
|
|
|
5256
|
-
var css$9 = {"global-menu-btn":"
|
|
5260
|
+
var css$9 = {"global-menu-btn":"JmoqJT","globalMenuBtn":"JmoqJT","global-menu-icon":"lYiH8m","globalMenuIcon":"lYiH8m"};
|
|
5257
5261
|
|
|
5258
5262
|
const GlobalMenu = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement("button", { ref: ref, id: "global_menu_toggle", className: cx(css$9.globalMenuBtn, props.cx), ...props.rawProps },
|
|
5259
5263
|
React.createElement(IconContainer, { size: 36, icon: ForwardRef$1, cx: css$9.globalMenuIcon }))));
|
|
5260
5264
|
|
|
5261
|
-
var css$8 = {"container":"
|
|
5265
|
+
var css$8 = {"container":"SVX3-g","open":"kF8a7A","folding-arrow":"-PgI0F","foldingArrow":"-PgI0F"};
|
|
5262
5266
|
|
|
5263
5267
|
const MainMenuAvatar = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement("button", { ref: ref, className: cx(css$8.container, props.isDropdown && css$8.dropdown, props.isOpen && css$8.open, props.onClick && uuiMarkers.clickable, props.cx), onClick: props.onClick, ...props.rawProps },
|
|
5264
5268
|
React.createElement(Avatar, { size: "36", img: props.avatarUrl }),
|
|
@@ -5266,15 +5270,15 @@ const MainMenuAvatar = /* @__PURE__ */React.forwardRef((props, ref) => (React.cr
|
|
|
5266
5270
|
props.isDropdown && (React.createElement("div", null,
|
|
5267
5271
|
React.createElement(IconContainer, { size: 18, icon: ForwardRef$Q, flipY: props.isOpen, cx: css$8.foldingArrow }))))));
|
|
5268
5272
|
|
|
5269
|
-
var css$7 = {"search-input":"
|
|
5273
|
+
var css$7 = {"search-input":"v5KLg-","searchInput":"v5KLg-"};
|
|
5270
5274
|
|
|
5271
5275
|
const MainMenuSearch = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement(IEditableDebouncer, { ...props, render: (iEditable) => (React.createElement(TextInput$1, { iconPosition: "left", icon: ForwardRef$N, cancelIcon: props.value?.length > 0 && ForwardRef$R, ...props, ...iEditable, ref: ref, cx: cx$1(css$7.searchInput, props.cx), ...props.rawProps })) })));
|
|
5272
5276
|
|
|
5273
|
-
var css$6 = {"container":"
|
|
5277
|
+
var css$6 = {"container":"wsXb0y"};
|
|
5274
5278
|
|
|
5275
5279
|
const MainMenuIcon = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement(IconButton, { ref: ref, icon: props.icon, cx: cx$1(props.cx, css$6.container), ...props })));
|
|
5276
5280
|
|
|
5277
|
-
var css$5 = {"root":"
|
|
5281
|
+
var css$5 = {"root":"L3O88I"};
|
|
5278
5282
|
|
|
5279
5283
|
const Anchor = /* @__PURE__ */withMods(Anchor$1, () => [css$5.root]);
|
|
5280
5284
|
|
|
@@ -5332,7 +5336,7 @@ var SvgFileCloudUploadFill = function SvgFileCloudUploadFill(props, ref) {
|
|
|
5332
5336
|
};
|
|
5333
5337
|
var ForwardRef = /*#__PURE__*/forwardRef(SvgFileCloudUploadFill);
|
|
5334
5338
|
|
|
5335
|
-
var css$4 = {"root":"
|
|
5339
|
+
var css$4 = {"root":"Z9LBwe","drop-start":"KQbex5","dropStart":"KQbex5","drop-over":"Q9mcm9","dropOver":"Q9mcm9","link":"MKspmO","drop-area":"g73Oij","dropArea":"g73Oij","drop-caption":"bE6XOj","dropCaption":"bE6XOj","icon-blue":"_0x2cc9","iconBlue":"_0x2cc9"};
|
|
5336
5340
|
|
|
5337
5341
|
function DropSpot(props) {
|
|
5338
5342
|
const getInfoText = typeof props.infoText === 'string'
|
|
@@ -5350,7 +5354,7 @@ function DropSpot(props) {
|
|
|
5350
5354
|
return React.createElement(DropSpot$1, { render: renderAttachmentArea, onFilesDropped: props.onUploadFiles });
|
|
5351
5355
|
}
|
|
5352
5356
|
|
|
5353
|
-
var css$3 = {"root":"
|
|
5357
|
+
var css$3 = {"root":"k5S-A1"};
|
|
5354
5358
|
|
|
5355
5359
|
const SvgCircleProgress = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
5356
5360
|
const outsetRadius = props.size / 2 - 1;
|
|
@@ -5361,7 +5365,7 @@ const SvgCircleProgress = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
5361
5365
|
React.createElement("circle", { strokeWidth: 1, fill: "transparent", r: outsetRadius, cx: props.size / 2, cy: props.size / 2 })));
|
|
5362
5366
|
});
|
|
5363
5367
|
|
|
5364
|
-
var css$2 = {"root":"
|
|
5368
|
+
var css$2 = {"root":"JYXcOX","file-name":"JRXglE","fileName":"JRXglE","default-color":"N1NuBl","defaultColor":"N1NuBl","doc-color":"R-doN2","docColor":"R-doN2","xls-color":"O7C8jQ","xlsColor":"O7C8jQ","pdf-color":"XV-18d","pdfColor":"XV-18d","movie-color":"a0v9o-","movieColor":"a0v9o-","img-color":"akFypy","imgColor":"akFypy","mov-color":"ng1Azq","movColor":"ng1Azq","error-block":"UAmsnK","errorBlock":"UAmsnK","icons-block":"_185xl2","iconsBlock":"_185xl2"};
|
|
5365
5369
|
|
|
5366
5370
|
const FileCard = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
5367
5371
|
const [isLoadingShow, setIsLoadingShow] = React.useState(true);
|
|
@@ -5480,7 +5484,7 @@ const getErrorPageConfig = () => ({
|
|
|
5480
5484
|
},
|
|
5481
5485
|
});
|
|
5482
5486
|
|
|
5483
|
-
var css$1 = {"container":"
|
|
5487
|
+
var css$1 = {"container":"LcPv1O"};
|
|
5484
5488
|
|
|
5485
5489
|
const ErrorPage = (props) => {
|
|
5486
5490
|
const isMobileScreen = isMobile();
|
|
@@ -5492,7 +5496,7 @@ const ErrorPage = (props) => {
|
|
|
5492
5496
|
props?.supportLink && React__default.createElement("div", { className: "uui-error-support-link" }, props?.supportLink))));
|
|
5493
5497
|
};
|
|
5494
5498
|
|
|
5495
|
-
var css = {"recovery-spinner":"
|
|
5499
|
+
var css = {"recovery-spinner":"ozAw6k","recoverySpinner":"ozAw6k","recovery-message":"-d8i-4","recoveryMessage":"-d8i-4","modal-blocker":"sUw9oj","modalBlocker":"sUw9oj","modalFadeIn":"Q6Mg0I"};
|
|
5496
5500
|
|
|
5497
5501
|
function ErrorHandler(props) {
|
|
5498
5502
|
const { uuiNotifications, uuiModals, uuiApi } = useUuiContext();
|