@epam/uui 5.13.3-beta.1 → 5.13.3-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/styles/inputs.scss +4 -4
- package/components/inputs/MultiSwitch.d.ts +4 -9
- package/components/inputs/MultiSwitch.d.ts.map +1 -1
- package/components/inputs/RadioInput.d.ts +6 -7
- package/components/inputs/RadioInput.d.ts.map +1 -1
- package/components/layout/Blocker.d.ts +2 -2
- package/components/layout/Blocker.d.ts.map +1 -1
- package/components/overlays/Tooltip.d.ts +4 -1
- package/components/overlays/Tooltip.d.ts.map +1 -1
- package/components/pickers/DataPickerBody.d.ts +3 -3
- package/components/pickers/DataPickerBody.d.ts.map +1 -1
- package/components/tables/DataTable.d.ts +3 -1
- package/components/tables/DataTable.d.ts.map +1 -1
- package/components/tables/DataTableRow.d.ts +5 -3
- package/components/tables/DataTableRow.d.ts.map +1 -1
- package/components/tables/types.d.ts +0 -2
- package/components/tables/types.d.ts.map +1 -1
- package/components/typography/Text.d.ts +5 -5
- package/components/typography/Text.d.ts.map +1 -1
- package/index.esm.js +391 -382
- package/index.esm.js.map +1 -1
- package/index.js +390 -381
- package/index.js.map +1 -1
- package/package.json +5 -5
- package/settings.d.ts +14 -4
- package/settings.d.ts.map +1 -1
- package/stats.html +1 -1
- package/styles.css +2089 -2097
- package/styles.css.map +1 -1
package/index.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(#zvwqw98vc6oliys27_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: "zvwqw97lb71v4zltk_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(#zvwqw97lb71v4zltk_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: "zvwqw98vc6oliys27_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":"_9HFqQ2","uui-spinner":"Ssj06T","uuiSpinner":"Ssj06T"};
|
|
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":"zsauYS","loading-word":"_74xdD1","loadingWord":"_74xdD1","animated-loading":"L9KBNn","animatedLoading":"L9KBNn","skeleton_loading":"P6hZru","skeletonLoading":"P6hZru"};
|
|
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,
|
|
@@ -1140,6 +1166,9 @@ const pickerInputSettings = {
|
|
|
1140
1166
|
mobileFooterLinkButton: '48',
|
|
1141
1167
|
mobileRow: '48',
|
|
1142
1168
|
mobileSearchInput: '48',
|
|
1169
|
+
getSearchSize: ({ pickerSize }) => {
|
|
1170
|
+
return pickerSize;
|
|
1171
|
+
},
|
|
1143
1172
|
},
|
|
1144
1173
|
},
|
|
1145
1174
|
};
|
|
@@ -1238,11 +1267,15 @@ const textInputSettings = {
|
|
|
1238
1267
|
default: '36',
|
|
1239
1268
|
},
|
|
1240
1269
|
};
|
|
1270
|
+
const blockerSettings = {
|
|
1271
|
+
renderSpinner: () => React__default.createElement(Spinner, null),
|
|
1272
|
+
};
|
|
1241
1273
|
const settings = {
|
|
1242
1274
|
accordion: accordionSettings,
|
|
1243
1275
|
alert: alertSettings,
|
|
1244
1276
|
badge: badgeSettings,
|
|
1245
1277
|
button: buttonSettings,
|
|
1278
|
+
blocker: blockerSettings,
|
|
1246
1279
|
checkbox: checkboxSettings,
|
|
1247
1280
|
countIndicator: countIndicatorSettings,
|
|
1248
1281
|
dataTable: dataTableSettings,
|
|
@@ -1272,11 +1305,11 @@ const settings = {
|
|
|
1272
1305
|
textInput: textInputSettings,
|
|
1273
1306
|
};
|
|
1274
1307
|
|
|
1275
|
-
var css$
|
|
1308
|
+
var css$1w = {"root":"zkypdG"};
|
|
1276
1309
|
|
|
1277
1310
|
function applyButtonMods(mods) {
|
|
1278
1311
|
return [
|
|
1279
|
-
css$
|
|
1312
|
+
css$1w.root,
|
|
1280
1313
|
'uui-button',
|
|
1281
1314
|
`uui-fill-${mods.fill || 'solid'}`,
|
|
1282
1315
|
`uui-color-${mods.color || 'primary'}`,
|
|
@@ -1290,10 +1323,10 @@ const Button = /* @__PURE__ */withMods(uuiComponents.Button, applyButtonMods, ()
|
|
|
1290
1323
|
};
|
|
1291
1324
|
});
|
|
1292
1325
|
|
|
1293
|
-
var css$
|
|
1326
|
+
var css$1v = {"root":"narzoG"};
|
|
1294
1327
|
|
|
1295
1328
|
function applyIconButtonMods(props) {
|
|
1296
|
-
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$
|
|
1329
|
+
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$1v.root];
|
|
1297
1330
|
}
|
|
1298
1331
|
const IconButton = /* @__PURE__ */withMods(uuiComponents.IconButton, applyIconButtonMods, (props) => {
|
|
1299
1332
|
const isDeprecated = ['info', 'success', 'error', 'warning'].includes(props.color);
|
|
@@ -1327,7 +1360,7 @@ function getIconClass(props) {
|
|
|
1327
1360
|
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
1361
|
}
|
|
1329
1362
|
|
|
1330
|
-
var css$
|
|
1363
|
+
var css$1u = {"root":"z3vw1q"};
|
|
1331
1364
|
|
|
1332
1365
|
const DEFAULT_COLOR = 'primary';
|
|
1333
1366
|
const LinkButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
@@ -1342,7 +1375,7 @@ const LinkButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1342
1375
|
}
|
|
1343
1376
|
const rootStyles = [
|
|
1344
1377
|
'uui-link_button',
|
|
1345
|
-
css$
|
|
1378
|
+
css$1u.root,
|
|
1346
1379
|
`uui-size-${props.size || settings.linkButton.sizes.default}`,
|
|
1347
1380
|
...getIconClass(props),
|
|
1348
1381
|
`uui-color-${props.color || DEFAULT_COLOR}`,
|
|
@@ -1357,11 +1390,11 @@ const LinkButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1357
1390
|
props.isDropdown && (React.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
1358
1391
|
});
|
|
1359
1392
|
|
|
1360
|
-
var css$
|
|
1393
|
+
var css$1t = {"root":"EF2EZr"};
|
|
1361
1394
|
|
|
1362
1395
|
const CountIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
1363
1396
|
return (React__default.createElement("div", { ref: ref, className: cx([
|
|
1364
|
-
css$
|
|
1397
|
+
css$1t.root,
|
|
1365
1398
|
'uui-count_indicator',
|
|
1366
1399
|
`uui-size-${props.size || settings.countIndicator.sizes.default}`,
|
|
1367
1400
|
props.color && `uui-color-${props.color}`,
|
|
@@ -1369,11 +1402,11 @@ const CountIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
|
1369
1402
|
]) }, props.caption));
|
|
1370
1403
|
});
|
|
1371
1404
|
|
|
1372
|
-
var css$
|
|
1405
|
+
var css$1s = {"root":"-hOUcq","withNotify":"_9SVkXR"};
|
|
1373
1406
|
|
|
1374
1407
|
const TabButton = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
1375
1408
|
const styles = [
|
|
1376
|
-
css$
|
|
1409
|
+
css$1s.root,
|
|
1377
1410
|
'uui-tab-button',
|
|
1378
1411
|
`uui-size-${props.size || settings.tabButton.sizes.default}`,
|
|
1379
1412
|
...getIconClass(props),
|
|
@@ -1390,27 +1423,27 @@ const TabButton = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
1390
1423
|
props.icon && props.iconPosition !== 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1391
1424
|
(props.caption || props.withNotify) && (React__default.createElement("div", { className: cx$1(uuiElement.caption) },
|
|
1392
1425
|
props.caption,
|
|
1393
|
-
props.withNotify && React__default.createElement("div", { className: css$
|
|
1426
|
+
props.withNotify && React__default.createElement("div", { className: css$1s.withNotify }))),
|
|
1394
1427
|
props.icon && props.iconPosition === 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1395
1428
|
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
1429
|
props.isDropdown && (React__default.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
1397
1430
|
props.onClear && !props.isDisabled && (React__default.createElement(IconContainer, { cx: uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
1398
1431
|
});
|
|
1399
1432
|
|
|
1400
|
-
var css$
|
|
1433
|
+
var css$1r = {"root":"QDHUyv"};
|
|
1401
1434
|
|
|
1402
1435
|
function applyVerticalTabButtonMods() {
|
|
1403
|
-
return [css$
|
|
1436
|
+
return [css$1r.root, 'uui-vertical-tab-button'];
|
|
1404
1437
|
}
|
|
1405
1438
|
const VerticalTabButton = /* @__PURE__ */withMods(TabButton, applyVerticalTabButtonMods);
|
|
1406
1439
|
|
|
1407
|
-
var css$
|
|
1440
|
+
var css$1q = {"root":"WOGKbM"};
|
|
1408
1441
|
|
|
1409
1442
|
function applyCheckboxMods(mods) {
|
|
1410
1443
|
return [
|
|
1411
|
-
css$
|
|
1444
|
+
css$1q.root,
|
|
1412
1445
|
`uui-size-${mods.size || settings.checkbox.sizes.default}`,
|
|
1413
|
-
|
|
1446
|
+
'uui-control-mode-' + (mods.mode || 'form'),
|
|
1414
1447
|
'uui-color-primary',
|
|
1415
1448
|
];
|
|
1416
1449
|
}
|
|
@@ -1422,11 +1455,11 @@ const applyUUICheckboxProps = (props) => {
|
|
|
1422
1455
|
};
|
|
1423
1456
|
const Checkbox = /* @__PURE__ */withMods(uuiComponents.Checkbox, applyCheckboxMods, applyUUICheckboxProps);
|
|
1424
1457
|
|
|
1425
|
-
var css$
|
|
1458
|
+
var css$1p = {"root":"BKdwKG"};
|
|
1426
1459
|
|
|
1427
1460
|
function applyRadioInputMods(mods) {
|
|
1428
1461
|
return [
|
|
1429
|
-
css$
|
|
1462
|
+
css$1p.root,
|
|
1430
1463
|
`uui-size-${mods.size || settings.radioInput.sizes.default}`,
|
|
1431
1464
|
'uui-radio-input-container',
|
|
1432
1465
|
'uui-color-primary',
|
|
@@ -1434,11 +1467,11 @@ function applyRadioInputMods(mods) {
|
|
|
1434
1467
|
}
|
|
1435
1468
|
const RadioInput = /* @__PURE__ */withMods(RadioInput$1, applyRadioInputMods, (props) => ({ icon: props.icon ? props.icon : settings.radioInput.icons.dotIcon }));
|
|
1436
1469
|
|
|
1437
|
-
var css$
|
|
1470
|
+
var css$1o = {"root":"UymHYi"};
|
|
1438
1471
|
|
|
1439
1472
|
function applySwitchMods(mods) {
|
|
1440
1473
|
return [
|
|
1441
|
-
css$
|
|
1474
|
+
css$1o.root,
|
|
1442
1475
|
`uui-size-${mods.size || settings.switch.sizes.default}`,
|
|
1443
1476
|
'uui-color-primary',
|
|
1444
1477
|
];
|
|
@@ -1458,14 +1491,14 @@ var EditMode;
|
|
|
1458
1491
|
EditMode["INLINE"] = "inline";
|
|
1459
1492
|
})(EditMode || (EditMode = {}));
|
|
1460
1493
|
|
|
1461
|
-
var textInputCss = {"root":"
|
|
1494
|
+
var textInputCss = {"root":"Ww8OPj"};
|
|
1462
1495
|
|
|
1463
1496
|
const DEFAULT_MODE$3 = EditMode.FORM;
|
|
1464
1497
|
function applyTextInputMods(mods) {
|
|
1465
1498
|
return [
|
|
1466
1499
|
textInputCss.root,
|
|
1467
1500
|
`uui-size-${mods.size || settings.textInput.sizes.default}`,
|
|
1468
|
-
|
|
1501
|
+
'uui-control-mode-' + (mods.mode || DEFAULT_MODE$3),
|
|
1469
1502
|
];
|
|
1470
1503
|
}
|
|
1471
1504
|
const TextInput = /* @__PURE__ */withMods(TextInput$1, applyTextInputMods, () => ({
|
|
@@ -1483,9 +1516,9 @@ const SearchInput = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
1483
1516
|
} }));
|
|
1484
1517
|
});
|
|
1485
1518
|
|
|
1486
|
-
var css$
|
|
1519
|
+
var css$1n = {"root":"Q-XttA"};
|
|
1487
1520
|
|
|
1488
|
-
const ControlGroup = /* @__PURE__ */withMods(ControlGroup$1, () => [css$
|
|
1521
|
+
const ControlGroup = /* @__PURE__ */withMods(ControlGroup$1, () => [css$1n.root, 'uui-control-group']);
|
|
1489
1522
|
|
|
1490
1523
|
function MultiSwitchComponent(props, ref) {
|
|
1491
1524
|
return (React.createElement(ControlGroup, { ref: ref, rawProps: {
|
|
@@ -1499,15 +1532,15 @@ function MultiSwitchComponent(props, ref) {
|
|
|
1499
1532
|
}
|
|
1500
1533
|
const MultiSwitch = /* @__PURE__ */React.forwardRef(MultiSwitchComponent);
|
|
1501
1534
|
|
|
1502
|
-
var css$
|
|
1535
|
+
var css$1m = {"root":"ZAERvd"};
|
|
1503
1536
|
|
|
1504
1537
|
const DEFAULT_MODE$2 = EditMode.FORM;
|
|
1505
1538
|
function applyNumericInputMods(mods) {
|
|
1506
1539
|
return [
|
|
1507
1540
|
textInputCss.root,
|
|
1508
|
-
css$
|
|
1541
|
+
css$1m.root,
|
|
1509
1542
|
`uui-size-${mods.size || settings.numericInput.sizes.default}`,
|
|
1510
|
-
|
|
1543
|
+
'uui-control-mode-' + (mods.mode || DEFAULT_MODE$2),
|
|
1511
1544
|
];
|
|
1512
1545
|
}
|
|
1513
1546
|
const NumericInput = /* @__PURE__ */withMods(NumericInput$1, applyNumericInputMods, (props) => {
|
|
@@ -1519,15 +1552,15 @@ const NumericInput = /* @__PURE__ */withMods(NumericInput$1, applyNumericInputMo
|
|
|
1519
1552
|
};
|
|
1520
1553
|
});
|
|
1521
1554
|
|
|
1522
|
-
var css$
|
|
1555
|
+
var css$1l = {"root":"KpZtVw"};
|
|
1523
1556
|
|
|
1524
1557
|
const DEFAULT_MODE$1 = EditMode.FORM;
|
|
1525
1558
|
function applyTextAreaMods(mods) {
|
|
1526
1559
|
return [
|
|
1527
|
-
css$
|
|
1560
|
+
css$1l.root,
|
|
1528
1561
|
'uui-textarea',
|
|
1529
1562
|
'uui-size-' + (mods.size || settings.textArea.sizes.default),
|
|
1530
|
-
|
|
1563
|
+
'uui-control-mode-' + (mods.mode || DEFAULT_MODE$1),
|
|
1531
1564
|
];
|
|
1532
1565
|
}
|
|
1533
1566
|
const TextArea = /* @__PURE__ */withMods(TextArea$1, applyTextAreaMods, (props) => {
|
|
@@ -1560,17 +1593,17 @@ function TREE_SHAKEABLE_INIT$1() {
|
|
|
1560
1593
|
};
|
|
1561
1594
|
}
|
|
1562
1595
|
|
|
1563
|
-
var css$
|
|
1596
|
+
var css$1k = {"root":"FSrCqj","main-path":"mHzTS4","mainPath":"mHzTS4","content-wrapper":"EmvPG9","contentWrapper":"EmvPG9","content":"MhuZQK","action-wrapper":"rBdAXw","actionWrapper":"rBdAXw","icon-wrapper":"C6izkk","iconWrapper":"C6izkk","icon":"EvBwqK","close-icon":"DD1rPc","closeIcon":"DD1rPc"};
|
|
1564
1597
|
|
|
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$
|
|
1598
|
+
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 },
|
|
1599
|
+
React.createElement("div", { className: css$1k.mainPath },
|
|
1600
|
+
React.createElement("div", { className: css$1k.contentWrapper },
|
|
1601
|
+
props.icon && (React.createElement("div", { className: css$1k.iconWrapper },
|
|
1602
|
+
React.createElement(IconContainer, { icon: props.icon, cx: css$1k.icon }))),
|
|
1603
|
+
React.createElement("div", { className: css$1k.content },
|
|
1571
1604
|
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$
|
|
1605
|
+
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] }))))))),
|
|
1606
|
+
props.onClose && React.createElement(IconButton, { icon: settings.alert.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$1k.closeIcon })))));
|
|
1574
1607
|
const WarningAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, { icon: settings.alert.icons.warningIcon, color: "warning", ref: ref, ...props }));
|
|
1575
1608
|
const SuccessAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, { icon: settings.alert.icons.successIcon, color: "success", ref: ref, ...props }));
|
|
1576
1609
|
const HintAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, { icon: settings.alert.icons.infoIcon, color: "info", ref: ref, ...props }));
|
|
@@ -1578,18 +1611,18 @@ const ErrorAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createE
|
|
|
1578
1611
|
|
|
1579
1612
|
const Dropdown = /* @__PURE__ */withMods(Dropdown$1);
|
|
1580
1613
|
|
|
1581
|
-
var css$
|
|
1614
|
+
var css$1j = {"root":"E71GS0"};
|
|
1582
1615
|
|
|
1583
1616
|
function applyDropdownContainerMods(mods) {
|
|
1584
1617
|
return [
|
|
1585
|
-
css$
|
|
1618
|
+
css$1j.root,
|
|
1586
1619
|
mods.vPadding && `vPadding-${mods.vPadding}`,
|
|
1587
1620
|
mods.padding && `padding-${mods.padding}`,
|
|
1588
1621
|
];
|
|
1589
1622
|
}
|
|
1590
1623
|
const DropdownContainer = /* @__PURE__ */withMods(uuiComponents.DropdownContainer, applyDropdownContainerMods);
|
|
1591
1624
|
|
|
1592
|
-
var css$
|
|
1625
|
+
var css$1i = {"submenu-root-item-rtl":"xYn5Ep","submenuRootItemRtl":"xYn5Ep","icon-after":"JrCStS","iconAfter":"JrCStS","submenu-root-item":"Rdk6Vo","submenuRootItem":"Rdk6Vo","icon-check":"z3-S0m","iconCheck":"z3-S0m","splitter-root":"nPKxzv","splitterRoot":"nPKxzv","splitter":"_1lhAYN","header-root":"s3FV1M","headerRoot":"s3FV1M","item-root":"_4g1puI","itemRoot":"_4g1puI","icon":"TbjIZ0","link":"TXjFr8","indent":"Sk0hqH","selected-mark":"mhiPb4","selectedMark":"mhiPb4"};
|
|
1593
1626
|
|
|
1594
1627
|
var IDropdownControlKeys;
|
|
1595
1628
|
(function (IDropdownControlKeys) {
|
|
@@ -1654,29 +1687,29 @@ const DropdownMenuButton = /* @__PURE__ */React__default.forwardRef((props, ref)
|
|
|
1654
1687
|
const getMenuButtonContent = () => {
|
|
1655
1688
|
const isIconBefore = Boolean(icon && iconPosition !== 'right');
|
|
1656
1689
|
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$
|
|
1690
|
+
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
1691
|
return (React__default.createElement(React__default.Fragment, null,
|
|
1659
1692
|
isIconBefore && iconElement,
|
|
1660
|
-
React__default.createElement(Text$1, { cx: props.indent && css$
|
|
1693
|
+
React__default.createElement(Text$1, { cx: props.indent && css$1i.indent }, caption),
|
|
1661
1694
|
isIconAfter && (React__default.createElement(React__default.Fragment, null,
|
|
1662
1695
|
React__default.createElement(FlexSpacer, null),
|
|
1663
1696
|
iconElement))));
|
|
1664
1697
|
};
|
|
1665
1698
|
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$
|
|
1699
|
+
const itemClassNames = cx$1(props.cx, css$1i.itemRoot, isDisabled && uuiMod.disabled, isActive && uuiMod.active, isOpen && uuiMod.opened, (!isDisabled && onClick) && uuiMarkers.clickable);
|
|
1700
|
+
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
1701
|
getMenuButtonContent(),
|
|
1669
1702
|
isSelected && (React__default.createElement(React__default.Fragment, null,
|
|
1670
1703
|
React__default.createElement(FlexSpacer, null),
|
|
1671
|
-
React__default.createElement(IconContainer, { icon: settings.dropdownMenu.icons.acceptIcon, cx: css$
|
|
1704
|
+
React__default.createElement(IconContainer, { icon: settings.dropdownMenu.icons.acceptIcon, cx: css$1i.selectedMark })))));
|
|
1672
1705
|
});
|
|
1673
1706
|
function DropdownMenuSplitter(props) {
|
|
1674
|
-
return (React__default.createElement("div", { className: cx$1(props.cx, css$
|
|
1675
|
-
React__default.createElement("hr", { className: css$
|
|
1707
|
+
return (React__default.createElement("div", { className: cx$1(props.cx, css$1i.splitterRoot) },
|
|
1708
|
+
React__default.createElement("hr", { className: css$1i.splitter })));
|
|
1676
1709
|
}
|
|
1677
1710
|
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$
|
|
1711
|
+
return (React__default.createElement("div", { className: cx$1('uui-dropdown-menu-header', props.cx, css$1i.headerRoot) },
|
|
1712
|
+
React__default.createElement("span", { className: css$1i.header }, props.caption)));
|
|
1680
1713
|
}
|
|
1681
1714
|
function DropdownSubMenu(props) {
|
|
1682
1715
|
const subMenuModifiers = [
|
|
@@ -1696,7 +1729,7 @@ function DropdownSubMenu(props) {
|
|
|
1696
1729
|
},
|
|
1697
1730
|
];
|
|
1698
1731
|
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$
|
|
1732
|
+
return (React__default.createElement(Dropdown$1, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", openDelay: 400, closeDelay: 400, placement: isRtl ? 'left-start' : 'right-start', modifiers: subMenuModifiers, renderBody: (dropdownProps) => !props.isDisabled && (React__default.createElement(DropdownMenuBody, { closeOnKey: IDropdownControlKeys.LEFT_ARROW, ...props, ...dropdownProps })), renderTarget: ({ toggleDropdownOpening, ...targetProps }) => (React__default.createElement(DropdownMenuButton, { cx: cx$1(isRtl ? css$1i.submenuRootItemRtl : css$1i.submenuRootItem), icon: settings.dropdownMenu.icons.dropdownIcon, iconPosition: "right", isDropdown: true, toggleDropdownOpening: toggleDropdownOpening, ...props, ...targetProps })) }));
|
|
1700
1733
|
}
|
|
1701
1734
|
function DropdownMenuSwitchButton(props) {
|
|
1702
1735
|
const context = useContext(UuiContext);
|
|
@@ -1712,29 +1745,29 @@ function DropdownMenuSwitchButton(props) {
|
|
|
1712
1745
|
onHandleValueChange(!isSelected);
|
|
1713
1746
|
}
|
|
1714
1747
|
};
|
|
1715
|
-
return (React__default.createElement("div", { className: cx$1(props.cx, css$
|
|
1716
|
-
icon && React__default.createElement(IconContainer, { icon: icon, cx: css$
|
|
1748
|
+
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 },
|
|
1749
|
+
icon && React__default.createElement(IconContainer, { icon: icon, cx: css$1i.iconBefore }),
|
|
1717
1750
|
React__default.createElement(Text$1, null, caption),
|
|
1718
1751
|
React__default.createElement(FlexSpacer, null),
|
|
1719
1752
|
React__default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
1720
1753
|
}
|
|
1721
1754
|
|
|
1722
|
-
var css$
|
|
1755
|
+
var css$1h = {"root":"TDNqK9","mode-block":"g8yYBF","modeBlock":"g8yYBF","mode-inline":"zTef0o","modeInline":"zTef0o","padding-0":"VBAFcm","padding0":"VBAFcm","padding-6":"-vwj9q","padding6":"-vwj9q","padding-12":"wlDFAW","padding12":"wlDFAW","padding-18":"_-0hhh0","padding18":"_-0hhh0"};
|
|
1723
1756
|
|
|
1724
1757
|
function applyAccordionMods(mods) {
|
|
1725
1758
|
return [
|
|
1726
|
-
css$
|
|
1727
|
-
css$
|
|
1728
|
-
mods.padding && css$
|
|
1759
|
+
css$1h.root,
|
|
1760
|
+
css$1h[`mode-${mods.mode || 'block'}`],
|
|
1761
|
+
mods.padding && css$1h['padding-' + mods.padding],
|
|
1729
1762
|
];
|
|
1730
1763
|
}
|
|
1731
1764
|
const Accordion = /* @__PURE__ */withMods(uuiComponents.Accordion, applyAccordionMods, (mods) => ({
|
|
1732
1765
|
dropdownIcon: mods.dropdownIcon !== null && settings.accordion.icons.dropdownIcon,
|
|
1733
1766
|
}));
|
|
1734
1767
|
|
|
1735
|
-
var css$
|
|
1768
|
+
var css$1g = {"root":"s4Ixua","align-items":"IxdHus","alignItems":"IxdHus","justify-content":"y0ffPw","justifyContent":"y0ffPw","border-top":"FCSqoX","borderTop":"FCSqoX","border-bottom":"IcZmRR","borderBottom":"IcZmRR","top-shadow":"_8-Hvhu","topShadow":"_8-Hvhu","padding":"dNbg-l","margin":"yzmsBF","vPadding":"OBn-Pb","column-gap":"ZyMcmB","columnGap":"ZyMcmB","row-gap":"ZgwMrT","rowGap":"ZgwMrT","spacing":"UbSTkX"};
|
|
1736
1769
|
|
|
1737
|
-
const FlexCell = /* @__PURE__ */withMods(FlexCell$1, () => [css$
|
|
1770
|
+
const FlexCell = /* @__PURE__ */withMods(FlexCell$1, () => [css$1g.flexCell]);
|
|
1738
1771
|
|
|
1739
1772
|
const FlexRow = /* @__PURE__ */forwardRef((props, ref) => {
|
|
1740
1773
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -1743,23 +1776,23 @@ const FlexRow = /* @__PURE__ */forwardRef((props, ref) => {
|
|
|
1743
1776
|
}
|
|
1744
1777
|
}
|
|
1745
1778
|
const classNames = cx$1([
|
|
1746
|
-
css$
|
|
1779
|
+
css$1g.root,
|
|
1747
1780
|
'uui-flex-row',
|
|
1748
1781
|
props.onClick && uuiMarkers.clickable,
|
|
1749
1782
|
props.cx,
|
|
1750
1783
|
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 &&
|
|
1784
|
+
props.alignItems && css$1g.alignItems,
|
|
1785
|
+
props.justifyContent && css$1g.justifyContent,
|
|
1786
|
+
props.padding && css$1g.padding,
|
|
1787
|
+
props.vPadding && css$1g.vPadding,
|
|
1788
|
+
props.margin && css$1g.margin,
|
|
1789
|
+
props.topShadow && css$1g.topShadow,
|
|
1790
|
+
props.borderBottom && css$1g.borderBottom,
|
|
1791
|
+
props.borderTop && css$1g.borderTop,
|
|
1792
|
+
props.columnGap && css$1g.columnGap,
|
|
1793
|
+
props.rowGap && css$1g.rowGap,
|
|
1794
|
+
props.spacing && css$1g.spacing,
|
|
1795
|
+
props.background && `uui-flex-row-bg-${props.background}`,
|
|
1763
1796
|
]);
|
|
1764
1797
|
const style = {
|
|
1765
1798
|
...(props.alignItems && { '--uui-flex-row-align-items': props.alignItems }),
|
|
@@ -1777,32 +1810,32 @@ const FlexRow = /* @__PURE__ */forwardRef((props, ref) => {
|
|
|
1777
1810
|
} }, props.children));
|
|
1778
1811
|
});
|
|
1779
1812
|
|
|
1780
|
-
var css$
|
|
1813
|
+
var css$1f = {"root":"XX2600","margin-24":"BvR97f","margin24":"BvR97f","padding-12":"DM8noW","padding12":"DM8noW","padding-24":"fTJPEO","padding24":"fTJPEO","shadow":"_4DLKBy","uui-surface-main":"P3uVJ-","uuiSurfaceMain":"P3uVJ-"};
|
|
1781
1814
|
|
|
1782
1815
|
const Panel = /* @__PURE__ */withMods(VPanel, (props) => [
|
|
1783
1816
|
'uui-panel',
|
|
1784
|
-
css$
|
|
1785
|
-
props.shadow && css$
|
|
1786
|
-
props.margin && css$
|
|
1787
|
-
props.background && css$
|
|
1817
|
+
css$1f.root,
|
|
1818
|
+
props.shadow && css$1f.shadow,
|
|
1819
|
+
props.margin && css$1f['margin-' + props.margin],
|
|
1820
|
+
props.background && css$1f[`uui-${props.background}`],
|
|
1788
1821
|
]);
|
|
1789
1822
|
|
|
1790
|
-
var css$
|
|
1823
|
+
var css$1e = {"root":"bRFUkH"};
|
|
1791
1824
|
|
|
1792
1825
|
function applyTooltipMods(mods) {
|
|
1793
1826
|
return [
|
|
1794
|
-
css$
|
|
1827
|
+
css$1e.root,
|
|
1795
1828
|
`uui-color-${mods.color || 'inverted'}`,
|
|
1796
1829
|
];
|
|
1797
1830
|
}
|
|
1798
1831
|
const Tooltip = /* @__PURE__ */withMods(uuiComponents.Tooltip, applyTooltipMods);
|
|
1799
1832
|
|
|
1800
|
-
var css$
|
|
1833
|
+
var css$1d = {"root":"h4liyi"};
|
|
1801
1834
|
|
|
1802
1835
|
function applyLabeledInputMods(mods) {
|
|
1803
1836
|
return [
|
|
1804
1837
|
'uui-labeled-input',
|
|
1805
|
-
css$
|
|
1838
|
+
css$1d.root,
|
|
1806
1839
|
'uui-size-' + (mods.size || settings.labeledInput.sizes.default),
|
|
1807
1840
|
];
|
|
1808
1841
|
}
|
|
@@ -1814,7 +1847,7 @@ function applyLabeledInputProps(props) {
|
|
|
1814
1847
|
}
|
|
1815
1848
|
const LabeledInput = /* @__PURE__ */withMods(uuiComponents.LabeledInput, applyLabeledInputMods, applyLabeledInputProps);
|
|
1816
1849
|
|
|
1817
|
-
var css$
|
|
1850
|
+
var css$1c = {"root":"QHm5Gk"};
|
|
1818
1851
|
|
|
1819
1852
|
function RadioGroup(props) {
|
|
1820
1853
|
const direction = props.direction || 'vertical';
|
|
@@ -1823,175 +1856,26 @@ function RadioGroup(props) {
|
|
|
1823
1856
|
props.onValueChange(newVal);
|
|
1824
1857
|
}
|
|
1825
1858
|
};
|
|
1826
|
-
return (React.createElement("fieldset", { ref: props.forwardedRef, className: cx$1(css$
|
|
1859
|
+
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
1860
|
const { id, name, renderName, ...restItemProps } = i;
|
|
1828
1861
|
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
1862
|
})));
|
|
1830
1863
|
}
|
|
1831
1864
|
|
|
1832
|
-
var css$
|
|
1865
|
+
var css$1b = {"root":"Jnt3ic"};
|
|
1833
1866
|
|
|
1834
1867
|
function applyScrollBarsMods() {
|
|
1835
1868
|
return [
|
|
1836
|
-
css$
|
|
1869
|
+
css$1b.root, 'uui-scroll-bars', 'uui-shadow-top', 'uui-shadow-bottom',
|
|
1837
1870
|
];
|
|
1838
1871
|
}
|
|
1839
1872
|
const ScrollBars = /* @__PURE__ */withMods(ScrollBars$1, applyScrollBarsMods);
|
|
1840
1873
|
|
|
1841
|
-
var css$
|
|
1842
|
-
|
|
1843
|
-
var css$1b = {"root":"A-LcV7"};
|
|
1844
|
-
|
|
1845
|
-
const AvatarStack = /* @__PURE__ */withMods(AvatarStack$1, () => [css$1b.root]);
|
|
1846
|
-
|
|
1847
|
-
var css$1a = {"root":"pI0XDB"};
|
|
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":"Ftvz0Y"};
|
|
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":"tPKiRI","uui-spinner":"UuVbeS","uuiSpinner":"UuVbeS"};
|
|
1904
|
-
|
|
1905
|
-
function applySpinnerMods() {
|
|
1906
|
-
return [css$18.root, 'uui-spinner'];
|
|
1907
|
-
}
|
|
1908
|
-
const Spinner = /* @__PURE__ */withMods(Spinner$1, applySpinnerMods);
|
|
1909
|
-
|
|
1910
|
-
var css$17 = {"root":"bVhVLB","page":"tRIKIa","spacer":"vs76XL","mode-ghost":"_3bmhcC","modeGhost":"_3bmhcC"};
|
|
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":"LFS9pC","progress-bar":"ASDnK-","progressBar":"ASDnK-","progressBar-indeterminate":"ERsYQL","progressBarIndeterminate":"ERsYQL","size-12":"ZnkekL","size12":"ZnkekL","size-18":"_9h6xEf","size18":"_9h6xEf","size-24":"rR20bm","size24":"rR20bm"};
|
|
1928
|
-
|
|
1929
|
-
const IndeterminateBar = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
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":"jS6oxI","striped":"_04-nOH","animate-stripes":"w4N9Ja","animateStripes":"w4N9Ja","size-12":"PXYEHp","size12":"PXYEHp","size-18":"XPWZ-q","size18":"XPWZ-q","size-24":"_18XToF","size24":"_18XToF"};
|
|
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":"X0tApn"};
|
|
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":"EjAjHC"};
|
|
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":"LtM8AD","dragHandle":"LtM8AD","icon-container":"skSuXc","iconContainer":"skSuXc"};
|
|
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
|
-
}
|
|
1874
|
+
var css$1a = {"scroll-container":"_21BEMc","scrollContainer":"_21BEMc","list-container":"_4rLwv4","listContainer":"_4rLwv4"};
|
|
1991
1875
|
|
|
1992
|
-
var css$
|
|
1876
|
+
var css$19 = {"root":"CrbNdl"};
|
|
1993
1877
|
|
|
1994
|
-
const Blocker = /* @__PURE__ */withMods(Blocker$1, () => [css$
|
|
1878
|
+
const Blocker = /* @__PURE__ */withMods(Blocker$1, () => [css$19.root], () => ({ renderSpinner: settings.blocker.renderSpinner }));
|
|
1995
1879
|
|
|
1996
1880
|
const VirtualList = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1997
1881
|
const { listContainerRef, offsetY, handleScroll, estimatedHeight, scrollContainerRef, } = useVirtualList({
|
|
@@ -2005,7 +1889,7 @@ const VirtualList = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
2005
1889
|
const scrollShadows = useScrollShadows({ root: scrollContainerRef.current });
|
|
2006
1890
|
const renderRows = () => props.renderRows?.({
|
|
2007
1891
|
listContainerRef, estimatedHeight, offsetY, scrollShadows,
|
|
2008
|
-
}) || (React.createElement("div", { className: css$
|
|
1892
|
+
}) || (React.createElement("div", { className: css$1a.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
2009
1893
|
React.createElement("div", { ref: listContainerRef, role: props.role, style: { marginTop: offsetY } }, props.rows)));
|
|
2010
1894
|
const renderView = ({ style }) => (React.createElement(VirtualListView, { isLoading: props.isLoading, style: style, rawProps: props.rawProps }));
|
|
2011
1895
|
const scrollBarsRef = React.useCallback((scrollbars) => {
|
|
@@ -2013,7 +1897,7 @@ const VirtualList = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
2013
1897
|
return;
|
|
2014
1898
|
scrollContainerRef.current = scrollbars.container.firstChild;
|
|
2015
1899
|
}, []);
|
|
2016
|
-
return (React.createElement(ScrollBars, { cx: cx$1(css$
|
|
1900
|
+
return (React.createElement(ScrollBars, { cx: cx$1(css$1a.scrollContainer, props.cx, {
|
|
2017
1901
|
[uuiMarkers.scrolledLeft]: scrollShadows.horizontalLeft,
|
|
2018
1902
|
[uuiMarkers.scrolledRight]: scrollShadows.horizontalRight,
|
|
2019
1903
|
[uuiMarkers.scrolledTop]: scrollShadows.verticalTop,
|
|
@@ -2035,7 +1919,7 @@ const VirtualListView = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
2035
1919
|
React.createElement(Blocker, { isEnabled: props.isLoading })));
|
|
2036
1920
|
});
|
|
2037
1921
|
|
|
2038
|
-
var css$
|
|
1922
|
+
var css$18 = {"root":"xIDJ-f"};
|
|
2039
1923
|
|
|
2040
1924
|
function CheckboxGroup(props) {
|
|
2041
1925
|
const currentValue = props.value || [];
|
|
@@ -2051,16 +1935,16 @@ function CheckboxGroup(props) {
|
|
|
2051
1935
|
}
|
|
2052
1936
|
props.onValueChange(newSelection);
|
|
2053
1937
|
};
|
|
2054
|
-
return (React.createElement("fieldset", { ref: props.forwardedRef, className: cx$1(css$
|
|
1938
|
+
return (React.createElement("fieldset", { ref: props.forwardedRef, className: cx$1(css$18.root, directionMode[direction], props.cx), ...props.rawProps }, props.items.map((i) => {
|
|
2055
1939
|
const { id, name, renderName, ...restItemProps } = i;
|
|
2056
1940
|
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
1941
|
})));
|
|
2058
1942
|
}
|
|
2059
1943
|
|
|
2060
|
-
var css
|
|
1944
|
+
var css$17 = {"root":"_4kZHm6","modal-blocker":"ohNrPY","modalBlocker":"ohNrPY","animateModalBlocker":"_6-O3xs","modal":"XMfhta","modal-footer":"_6MQnPd","modalFooter":"_6MQnPd","border-top":"_-7nubK","borderTop":"_-7nubK","modal-header":"_8bQQrQ","modalHeader":"_8bQQrQ","border-bottom":"b1eTCS","borderBottom":"b1eTCS"};
|
|
2061
1945
|
|
|
2062
|
-
const ModalBlocker = /* @__PURE__ */withMods(ModalBlocker$1, () => [css
|
|
2063
|
-
const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css
|
|
1946
|
+
const ModalBlocker = /* @__PURE__ */withMods(ModalBlocker$1, () => [css$17.modalBlocker]);
|
|
1947
|
+
const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css$17.root, css$17.modal], (props) => {
|
|
2064
1948
|
const width = props.width;
|
|
2065
1949
|
const height = props.height || 'auto';
|
|
2066
1950
|
const maxHeight = isMobile() ? 'var(--uui-modals-mobile-max-height)' : (props.maxHeight || 'var(--uui-modals-max-height)');
|
|
@@ -2074,7 +1958,7 @@ const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css$$.root, cs
|
|
|
2074
1958
|
};
|
|
2075
1959
|
});
|
|
2076
1960
|
function ModalHeader(props) {
|
|
2077
|
-
return (React__default.createElement("div", { className: cx(css
|
|
1961
|
+
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
1962
|
...props.rawProps?.style,
|
|
2079
1963
|
} },
|
|
2080
1964
|
props.title && (React__default.createElement("div", { className: cx('uui-modal-title', 'uui-typography') }, props.title)),
|
|
@@ -2084,7 +1968,7 @@ function ModalHeader(props) {
|
|
|
2084
1968
|
React__default.createElement(IconButton, { rawProps: { 'aria-label': 'Close modal' }, icon: settings.modal.icons.closeIcon, onClick: props.onClose })))));
|
|
2085
1969
|
}
|
|
2086
1970
|
function ModalFooter(props) {
|
|
2087
|
-
return (React__default.createElement("div", { className: cx(css
|
|
1971
|
+
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
1972
|
...props.rawProps?.style,
|
|
2089
1973
|
} }, props.children));
|
|
2090
1974
|
}
|
|
@@ -2247,7 +2131,7 @@ const TREE_SHAKEABLE_INIT = () => ({
|
|
|
2247
2131
|
});
|
|
2248
2132
|
const i18n = /* @__PURE__ */TREE_SHAKEABLE_INIT();
|
|
2249
2133
|
|
|
2250
|
-
var css$
|
|
2134
|
+
var css$16 = {"root":"_83r3qq","icon-wrapper":"j1pR0c","iconWrapper":"j1pR0c","action-wrapper":"o0SgNN","actionWrapper":"o0SgNN","action-link":"AXXFs0","actionLink":"AXXFs0","close-icon":"c0929B","closeIcon":"c0929B","main-path":"_2UNvbp","mainPath":"_2UNvbp","content":"-nee61","close-wrapper":"wd7bda","closeWrapper":"wd7bda","notification-wrapper":"tVsCh-","notificationWrapper":"tVsCh-","clear-button":"YGyp5J","clearButton":"YGyp5J"};
|
|
2251
2135
|
|
|
2252
2136
|
const NotificationCard = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
2253
2137
|
const notificationCardNode = React__default.useRef(null);
|
|
@@ -2260,15 +2144,15 @@ const NotificationCard = /* @__PURE__ */React__default.forwardRef((props, ref) =
|
|
|
2260
2144
|
notificationCardNode.current?.removeEventListener('mouseleave', props.refreshTimer);
|
|
2261
2145
|
};
|
|
2262
2146
|
}, []);
|
|
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$
|
|
2147
|
+
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 },
|
|
2148
|
+
React__default.createElement("div", { className: css$16.mainPath },
|
|
2149
|
+
props.icon && (React__default.createElement("div", { className: css$16.iconWrapper },
|
|
2266
2150
|
React__default.createElement(IconContainer, { size: 24, icon: props.icon }))),
|
|
2267
|
-
React__default.createElement("div", { className: css$
|
|
2151
|
+
React__default.createElement("div", { className: css$16.content },
|
|
2268
2152
|
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$
|
|
2153
|
+
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 })))))),
|
|
2154
|
+
props.onClose && (React__default.createElement("div", { className: css$16.closeWrapper },
|
|
2155
|
+
React__default.createElement(IconButton, { icon: settings.notificationCard.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$16.closeIcon }))))));
|
|
2272
2156
|
});
|
|
2273
2157
|
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
2158
|
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 +2160,11 @@ const HintNotification = /* @__PURE__ */React__default.forwardRef((props, ref) =
|
|
|
2276
2160
|
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
2161
|
function ClearNotification() {
|
|
2278
2162
|
const uuiCtx = useUuiContext();
|
|
2279
|
-
return (React__default.createElement("div", { className: cx(css$
|
|
2163
|
+
return (React__default.createElement("div", { className: cx(css$16.notificationWrapper, css$16.clearButton) },
|
|
2280
2164
|
React__default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => uuiCtx.uuiNotifications.clearAll() })));
|
|
2281
2165
|
}
|
|
2282
2166
|
|
|
2283
|
-
var css$
|
|
2167
|
+
var css$15 = {"footer":"F38tlt"};
|
|
2284
2168
|
|
|
2285
2169
|
class ConfirmationModal extends React.Component {
|
|
2286
2170
|
render() {
|
|
@@ -2292,7 +2176,7 @@ class ConfirmationModal extends React.Component {
|
|
|
2292
2176
|
React.createElement(ModalWindow, { width: 420 },
|
|
2293
2177
|
React.createElement(ModalHeader, { borderBottom: true, title: this.props.caption, onClose: () => this.props.abort() }),
|
|
2294
2178
|
React.createElement(ScrollBars, null, bodyContent),
|
|
2295
|
-
React.createElement(ModalFooter, { cx: css$
|
|
2179
|
+
React.createElement(ModalFooter, { cx: css$15.footer },
|
|
2296
2180
|
this.props.hideCancelButton || (React.createElement(Button, { caption: i18n.form.modals.discardButton, onClick: () => this.props.success(false), fill: "outline", color: "secondary" })),
|
|
2297
2181
|
React.createElement(Button, { caption: i18n.form.modals.saveButton, onClick: () => this.props.success(true), color: "primary" })))));
|
|
2298
2182
|
}
|
|
@@ -2322,7 +2206,7 @@ function useReliableForceUpdate() {
|
|
|
2322
2206
|
return red[1];
|
|
2323
2207
|
}
|
|
2324
2208
|
|
|
2325
|
-
var css$
|
|
2209
|
+
var css$14 = {"root":"lDd8af","timepicker-input":"_3PsexC","timepickerInput":"_3PsexC","ltr-always":"WRdAft","ltrAlways":"WRdAft"};
|
|
2326
2210
|
|
|
2327
2211
|
const uuiTimePicker = {
|
|
2328
2212
|
container: 'uui-timepicker-container',
|
|
@@ -2361,8 +2245,8 @@ function TimePickerBody(props) {
|
|
|
2361
2245
|
const minutesToSubtract = value.minute() % minutesStep === 0 ? minutesStep : value.minute() % minutesStep;
|
|
2362
2246
|
onMinutesChange(value.subtract(minutesToSubtract, 'm').minute());
|
|
2363
2247
|
};
|
|
2364
|
-
return (React.createElement("div", { className: cx$1(css$
|
|
2365
|
-
React.createElement("div", { className: css$
|
|
2248
|
+
return (React.createElement("div", { className: cx$1(css$14.root, uuiTimePicker.container, props.cx), ref: props.forwardedRef, ...props.rawProps },
|
|
2249
|
+
React.createElement("div", { className: css$14.ltrAlways },
|
|
2366
2250
|
React.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
2367
2251
|
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
2252
|
React.createElement(NumericInput$1, { cx: uuiTimePicker.input, onValueChange: onHoursChange, value: +(uuiDayjs.dayjs()
|
|
@@ -2505,7 +2389,7 @@ function TimePicker(props) {
|
|
|
2505
2389
|
state.value && state.inputValue && saveTime(state.value);
|
|
2506
2390
|
};
|
|
2507
2391
|
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$
|
|
2392
|
+
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
2393
|
};
|
|
2510
2394
|
const renderBody = (bodyProps) => {
|
|
2511
2395
|
const { forwardedRef, onValueChange, ...timePickerBodyProps } = props;
|
|
@@ -2515,27 +2399,27 @@ function TimePicker(props) {
|
|
|
2515
2399
|
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
2400
|
}
|
|
2517
2401
|
|
|
2518
|
-
var css$
|
|
2402
|
+
var css$13 = {"root":"BBGglx"};
|
|
2519
2403
|
|
|
2520
2404
|
function applyInputAddonMods() {
|
|
2521
2405
|
return [
|
|
2522
|
-
css$
|
|
2406
|
+
css$13.root,
|
|
2523
2407
|
];
|
|
2524
2408
|
}
|
|
2525
2409
|
const InputAddon = /* @__PURE__ */withMods(InputAddon$1, applyInputAddonMods);
|
|
2526
2410
|
|
|
2527
|
-
var css$
|
|
2411
|
+
var css$12 = {"root":"q-Npk1"};
|
|
2528
2412
|
|
|
2529
2413
|
function applySliderMods() {
|
|
2530
|
-
return [css$
|
|
2414
|
+
return [css$12.root, 'uui-color-neutral'];
|
|
2531
2415
|
}
|
|
2532
2416
|
const Slider = /* @__PURE__ */withMods(Slider$1, applySliderMods);
|
|
2533
2417
|
|
|
2534
|
-
var css$
|
|
2418
|
+
var css$11 = {"root":"oVtrpi","tooltip":"nbALtz"};
|
|
2535
2419
|
|
|
2536
2420
|
function applyRatingMods(mods) {
|
|
2537
2421
|
return [
|
|
2538
|
-
css$
|
|
2422
|
+
css$11.root,
|
|
2539
2423
|
`uui-size-${mods.size || settings.rating.sizes.default}`,
|
|
2540
2424
|
];
|
|
2541
2425
|
}
|
|
@@ -2545,7 +2429,7 @@ const Rating = /* @__PURE__ */withMods(uuiComponents.Rating, applyRatingMods, (p
|
|
|
2545
2429
|
Tooltip,
|
|
2546
2430
|
}));
|
|
2547
2431
|
|
|
2548
|
-
var css$
|
|
2432
|
+
var css$10 = {"root":"pzatO3","container":"WMyq4h"};
|
|
2549
2433
|
|
|
2550
2434
|
const defaultFormat = 'MMM D, YYYY';
|
|
2551
2435
|
const valueFormat = 'YYYY-MM-DD';
|
|
@@ -2749,21 +2633,21 @@ function DatePickerHeader({ navIconLeft, navIconRight, value: { month, view }, o
|
|
|
2749
2633
|
}, [view, month]);
|
|
2750
2634
|
const disablePrev = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getPrevYearsList(month));
|
|
2751
2635
|
const disableNext = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getNextYearsList(month));
|
|
2752
|
-
return (React.createElement("div", { className: cx(css$
|
|
2636
|
+
return (React.createElement("div", { className: cx(css$10.root, uuiHeader.container, cx) },
|
|
2753
2637
|
React.createElement("header", { className: uuiHeader.headerNav },
|
|
2754
2638
|
React.createElement(Button, { icon: navIconLeft || settings.datePicker.icons.body.prevIcon, color: "secondary", fill: "ghost", cx: uuiHeader.navIconLeft, onClick: !isDisabled && (() => onLeftNavigationArrow()), isDisabled: disablePrev }),
|
|
2755
2639
|
React.createElement(Button, { caption: title, fill: "ghost", cx: uuiHeader.navTitle, onClick: !isDisabled && (() => onCaptionClick(view)) }),
|
|
2756
2640
|
React.createElement(Button, { icon: navIconRight || settings.datePicker.icons.body.nextIcon, color: "secondary", fill: "ghost", cx: uuiHeader.navIconRight, onClick: !isDisabled && (() => onRightNavigationArrow()), isDisabled: disableNext }))));
|
|
2757
2641
|
}
|
|
2758
2642
|
|
|
2759
|
-
var css
|
|
2643
|
+
var css$$ = {"root":"EIB1Bp"};
|
|
2760
2644
|
|
|
2761
2645
|
function applyDateSelectionMods() {
|
|
2762
|
-
return [css
|
|
2646
|
+
return [css$$.root, `uui-size-${settings.datePicker.sizes.body}`];
|
|
2763
2647
|
}
|
|
2764
2648
|
const Calendar = /* @__PURE__ */withMods(Calendar$1, applyDateSelectionMods);
|
|
2765
2649
|
|
|
2766
|
-
var css$
|
|
2650
|
+
var css$_ = {"root":"_6Fn7-S"};
|
|
2767
2651
|
|
|
2768
2652
|
const uuiDatePickerBody = {
|
|
2769
2653
|
wrapper: 'uui-datepicker-body-wrapper',
|
|
@@ -2807,7 +2691,7 @@ function StatelessDatePickerBodyComp({ renderDay, isHoliday, cx: classes, filter
|
|
|
2807
2691
|
}
|
|
2808
2692
|
};
|
|
2809
2693
|
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$
|
|
2694
|
+
React__default.createElement("div", { className: cx$1(css$_.root, uuiDatePickerBody.wrapper) },
|
|
2811
2695
|
React__default.createElement(DatePickerHeader, { value: {
|
|
2812
2696
|
view,
|
|
2813
2697
|
month,
|
|
@@ -2889,7 +2773,7 @@ function DatePickerComponent(props, ref) {
|
|
|
2889
2773
|
}
|
|
2890
2774
|
const DatePicker = /* @__PURE__ */React__default.forwardRef(DatePickerComponent);
|
|
2891
2775
|
|
|
2892
|
-
var css$
|
|
2776
|
+
var css$Z = {"date-input":"ODsX3x","dateInput":"ODsX3x","root":"FOz-TU","separator":"FEYDRc"};
|
|
2893
2777
|
|
|
2894
2778
|
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
2779
|
const [inputValue, setInputValue] = useState(toCustomDateRangeFormat(value, format));
|
|
@@ -2932,15 +2816,15 @@ const RangeDatePickerInput = /* @__PURE__ */forwardRef(({ isDisabled, isInvalid,
|
|
|
2932
2816
|
const clearAllowed = !disableClear && inputValue.from && inputValue.to;
|
|
2933
2817
|
return (
|
|
2934
2818
|
// 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$
|
|
2819
|
+
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 },
|
|
2820
|
+
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 }),
|
|
2821
|
+
React__default.createElement("div", { className: css$Z.separator }),
|
|
2822
|
+
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
2823
|
onValueChange(defaultRangeValue);
|
|
2940
2824
|
} : 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
2825
|
});
|
|
2942
2826
|
|
|
2943
|
-
var css$
|
|
2827
|
+
var css$Y = {"root":"ITOzlb"};
|
|
2944
2828
|
|
|
2945
2829
|
const uuiPresets = {
|
|
2946
2830
|
container: 'uui-presets-container',
|
|
@@ -2955,12 +2839,12 @@ const getPresets = (presets) => {
|
|
|
2955
2839
|
})).sort((a, b) => a.order - b.order);
|
|
2956
2840
|
};
|
|
2957
2841
|
function CalendarPresets(props) {
|
|
2958
|
-
return (React.createElement("div", { ref: props.forwardedRef, className: cx$1(uuiPresets.container, css$
|
|
2842
|
+
return (React.createElement("div", { ref: props.forwardedRef, className: cx$1(uuiPresets.container, css$Y.root, props.cx), ...props.rawProps },
|
|
2959
2843
|
React.createElement("div", { className: uuiPresets.header }, "Presets"),
|
|
2960
2844
|
getPresets(props.presets).map((item) => (React.createElement(LinkButton, { key: item.key, caption: item.name, onClick: () => props.onPresetSet(item), size: settings.rangeDatePicker.sizes.preset })))));
|
|
2961
2845
|
}
|
|
2962
2846
|
|
|
2963
|
-
var css$
|
|
2847
|
+
var css$X = {"root":"AN--PP","container":"CLMCQD","day-selection":"OJlODS","daySelection":"OJlODS","from-picker":"iXDN6y","fromPicker":"iXDN6y","to-picker":"xgZccC","toPicker":"xgZccC","bodes-wrapper":"eoPBD7","bodesWrapper":"eoPBD7","blocker":"guOOWS"};
|
|
2964
2848
|
|
|
2965
2849
|
const uuiRangeDatePickerBody = {
|
|
2966
2850
|
inRange: 'uui-range-datepicker-in-range',
|
|
@@ -3101,21 +2985,21 @@ function RangeDatePickerBodyComp(props, ref) {
|
|
|
3101
2985
|
});
|
|
3102
2986
|
}, presets: presets })));
|
|
3103
2987
|
};
|
|
3104
|
-
return (React__default.createElement("div", { ref: ref, className: cx$1(css$
|
|
3105
|
-
React__default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$
|
|
2988
|
+
return (React__default.createElement("div", { ref: ref, className: cx$1(css$X.root, uuiDatePickerBodyBase.container, props.cx), ...props.rawProps },
|
|
2989
|
+
React__default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$X.daySelection, css$X.container], alignItems: "top" },
|
|
3106
2990
|
React__default.createElement(FlexCell, { width: "auto" },
|
|
3107
2991
|
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$
|
|
2992
|
+
React__default.createElement(FlexRow, { cx: css$X.bodesWrapper, alignItems: "top" },
|
|
2993
|
+
React__default.createElement(StatelessDatePickerBody, { key: "date-picker-body-left", cx: cx$1(css$X.fromPicker), ...from, onValueChange: (v) => onBodyValueChange(v, 'from'), onMonthChange: (m) => {
|
|
3110
2994
|
setMonth(m);
|
|
3111
2995
|
}, 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$
|
|
2996
|
+
React__default.createElement(StatelessDatePickerBody, { key: "date-picker-body-right", cx: cx$1(css$X.toPicker), ...to, onValueChange: (v) => onBodyValueChange(v, 'to'), onMonthChange: (m) => {
|
|
3113
2997
|
setMonth(m.subtract(1, 'month'));
|
|
3114
2998
|
}, onViewChange: (v) => setView(v), filter: props.filter, renderDay: props.renderDay || renderDay, isHoliday: props.isHoliday, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'from' }),
|
|
3115
2999
|
view !== 'DAY_SELECTION' && (React__default.createElement("div", { style: {
|
|
3116
3000
|
left: activeMonth === 'from' ? '50%' : undefined,
|
|
3117
3001
|
right: activeMonth === 'to' ? '50%' : undefined,
|
|
3118
|
-
}, className: css$
|
|
3002
|
+
}, className: css$X.blocker }))),
|
|
3119
3003
|
props.presets && renderPresets(props.presets)),
|
|
3120
3004
|
props.renderFooter && props.renderFooter()))));
|
|
3121
3005
|
}
|
|
@@ -3135,7 +3019,7 @@ const getDayCX = (day, selectedDate) => {
|
|
|
3135
3019
|
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
3020
|
};
|
|
3137
3021
|
|
|
3138
|
-
var css$
|
|
3022
|
+
var css$W = {"dropdown-container":"_3H7GWU","dropdownContainer":"_3H7GWU"};
|
|
3139
3023
|
|
|
3140
3024
|
const modifiers = [{
|
|
3141
3025
|
name: 'offset',
|
|
@@ -3179,7 +3063,7 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
3179
3063
|
}
|
|
3180
3064
|
};
|
|
3181
3065
|
const renderBody = (renderProps) => {
|
|
3182
|
-
return (React__default.createElement(DropdownContainer, { ...renderProps, cx: cx(css$
|
|
3066
|
+
return (React__default.createElement(DropdownContainer, { ...renderProps, cx: cx(css$W.dropdownContainer), shards: [targetRef], returnFocus: true },
|
|
3183
3067
|
React__default.createElement(FlexRow, null,
|
|
3184
3068
|
React__default.createElement(RangeDatePickerBody, { cx: cx(props.bodyCx), value: {
|
|
3185
3069
|
selectedDate: _value,
|
|
@@ -3203,30 +3087,30 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
3203
3087
|
}
|
|
3204
3088
|
const RangeDatePicker = /* @__PURE__ */React__default.forwardRef(RangeDatePickerComponent);
|
|
3205
3089
|
|
|
3206
|
-
var css$
|
|
3090
|
+
var css$V = {"root":"SOTr48","blocker":"s4VrrJ","marker":"_60hb7Q","top":"qkvN9e","bottom":"T3leQU","left":"q4VQqs","right":"K-CN7Z","inside":"WOfKhG"};
|
|
3207
3091
|
|
|
3208
3092
|
function DropMarker(props) {
|
|
3209
3093
|
return props.isDndInProgress
|
|
3210
3094
|
? (React.createElement(React.Fragment, null,
|
|
3211
|
-
props.enableBlocker && React.createElement("div", { className: css$
|
|
3095
|
+
props.enableBlocker && React.createElement("div", { className: css$V.blocker }),
|
|
3212
3096
|
React.createElement("div", { className: cx([
|
|
3213
|
-
css$
|
|
3214
|
-
css$
|
|
3215
|
-
css$
|
|
3097
|
+
css$V.root,
|
|
3098
|
+
css$V.marker,
|
|
3099
|
+
css$V[props.position],
|
|
3216
3100
|
props?.cx,
|
|
3217
3101
|
]) })))
|
|
3218
3102
|
: null;
|
|
3219
3103
|
}
|
|
3220
3104
|
|
|
3221
|
-
var css$
|
|
3105
|
+
var css$U = {"root":"_5yyIl6","line-height":"OhcYc1","lineHeight":"OhcYc1","font-size":"VKjIgU","fontSize":"VKjIgU"};
|
|
3222
3106
|
|
|
3223
3107
|
function applyTextMods(mods) {
|
|
3224
3108
|
return [
|
|
3225
|
-
css$
|
|
3109
|
+
css$U.root,
|
|
3226
3110
|
'uui-text',
|
|
3227
3111
|
`uui-size-${mods.size || settings.text.sizes.default}`,
|
|
3228
|
-
(mods.size !== 'none' || mods.lineHeight) && css$
|
|
3229
|
-
(mods.size !== 'none' || mods.fontSize) && css$
|
|
3112
|
+
(mods.size !== 'none' || mods.lineHeight) && css$U.lineHeight,
|
|
3113
|
+
(mods.size !== 'none' || mods.fontSize) && css$U.fontSize,
|
|
3230
3114
|
`uui-color-${mods.color || 'primary'}`,
|
|
3231
3115
|
`uui-font-weight-${mods.fontWeight || '400'}`,
|
|
3232
3116
|
`uui-font-style-${mods.fontStyle || 'normal'}`,
|
|
@@ -3245,33 +3129,18 @@ const Text = /* @__PURE__ */withMods(uuiComponents.Text, applyTextMods, (props)
|
|
|
3245
3129
|
};
|
|
3246
3130
|
});
|
|
3247
3131
|
|
|
3248
|
-
var css$L = {"root":"vH0avy","loading-word":"YgeacI","loadingWord":"YgeacI","animated-loading":"_3gO8sd","animatedLoading":"_3gO8sd","skeleton_loading":"HsK8mv","skeletonLoading":"HsK8mv"};
|
|
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
3132
|
const RichTextView = /* @__PURE__ */withMods(uuiComponents.RichTextView, (mods) => ['uui-typography', `uui-typography-size-${mods.size || settings.richTextView.sizes.default}`]);
|
|
3266
3133
|
|
|
3267
|
-
var css$
|
|
3134
|
+
var css$T = {"modal":"_4Y0p3-","search-wrapper":"aDAYG6","searchWrapper":"aDAYG6","no-data":"meqgGV","noData":"meqgGV","type-search-to-load-size-24":"AjvNyS","typeSearchToLoadSize24":"AjvNyS"};
|
|
3268
3135
|
|
|
3269
3136
|
class DataPickerBody extends PickerBodyBase {
|
|
3270
3137
|
constructor() {
|
|
3271
3138
|
super(...arguments);
|
|
3272
3139
|
this.lens = Lens.onEditableComponent(this);
|
|
3273
3140
|
this.searchLens = this.lens.prop('search').default('');
|
|
3274
|
-
this.getSearchSize = () => (isMobile()
|
|
3141
|
+
this.getSearchSize = () => (isMobile()
|
|
3142
|
+
? settings.pickerInput.sizes.body.mobileSearchInput
|
|
3143
|
+
: settings.pickerInput.sizes.body.getSearchSize({ pickerSize: this.props.searchSize }));
|
|
3275
3144
|
}
|
|
3276
3145
|
renderEmpty() {
|
|
3277
3146
|
const search = this.searchLens.get();
|
|
@@ -3283,7 +3152,7 @@ class DataPickerBody extends PickerBodyBase {
|
|
|
3283
3152
|
});
|
|
3284
3153
|
}
|
|
3285
3154
|
if (this.props.minCharsToSearch && search.length < this.props.minCharsToSearch) {
|
|
3286
|
-
return (React__default.createElement(FlexCell$1, { cx: css$
|
|
3155
|
+
return (React__default.createElement(FlexCell$1, { cx: css$T.noData, grow: 1, textAlign: "center" },
|
|
3287
3156
|
React__default.createElement(Text, { size: this.props.searchSize }, i18n.dataPickerBody.typeSearchToLoadMessage)));
|
|
3288
3157
|
}
|
|
3289
3158
|
if (this.props.rows.length === 0) {
|
|
@@ -3298,24 +3167,24 @@ class DataPickerBody extends PickerBodyBase {
|
|
|
3298
3167
|
}
|
|
3299
3168
|
// Default no record found message for 'NOT_FOUND' and "NO_RECORDS" reason
|
|
3300
3169
|
// TODO: make separate messages for 'NOT_FOUND' and "NO_RECORDS" reason
|
|
3301
|
-
return (React__default.createElement(FlexCell$1, { cx: css$
|
|
3170
|
+
return (React__default.createElement(FlexCell$1, { cx: css$T.noData, grow: 1, textAlign: "center" },
|
|
3302
3171
|
React__default.createElement(Text, { size: this.props.searchSize }, i18n.dataPickerBody.noRecordsMessage)));
|
|
3303
3172
|
}
|
|
3304
3173
|
}
|
|
3305
3174
|
render() {
|
|
3306
3175
|
const searchSize = this.getSearchSize();
|
|
3307
3176
|
return (React__default.createElement(React__default.Fragment, null,
|
|
3308
|
-
this.showSearch() && (React__default.createElement("div", { key: "search", className: cx$1(css$
|
|
3177
|
+
this.showSearch() && (React__default.createElement("div", { key: "search", className: cx$1(css$T.searchWrapper, 'uui-picker_input-body-search') },
|
|
3309
3178
|
React__default.createElement(FlexCell$1, { grow: 1 },
|
|
3310
3179
|
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$
|
|
3180
|
+
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
3181
|
// 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
3182
|
// we fix this state on next render and shouldn't show empty state.
|
|
3314
3183
|
? 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
3184
|
}
|
|
3316
3185
|
}
|
|
3317
3186
|
|
|
3318
|
-
var css$
|
|
3187
|
+
var css$S = {"footer":"KGxzzk"};
|
|
3319
3188
|
|
|
3320
3189
|
function DataPickerFooterImpl(props) {
|
|
3321
3190
|
const { search, clearSelection, view, showSelected, selectionMode, isSearchTooShort, } = props;
|
|
@@ -3329,7 +3198,7 @@ function DataPickerFooterImpl(props) {
|
|
|
3329
3198
|
const isSearching = search?.length;
|
|
3330
3199
|
const hideFooter = (rowsCount === 0 && !hasSelection) || isSearching || (isSinglePicker && props.disableClear);
|
|
3331
3200
|
const showClear = !props.disableClear && (isSinglePicker ? true : (!view.selectAll || hasSelection));
|
|
3332
|
-
return !hideFooter && (React__default.createElement(FlexRow, { cx: css$
|
|
3201
|
+
return !hideFooter && (React__default.createElement(FlexRow, { cx: css$S.footer },
|
|
3333
3202
|
!isSinglePicker && !isSearchTooShort && ( // Show this switch only for multi mode and when some rows rendered
|
|
3334
3203
|
React__default.createElement(Switch, { size: settings.pickerInput.sizes.body.footerSwitchMap[props.size], value: showSelected.value, isDisabled: !hasSelection, onValueChange: showSelected.onValueChange, label: i18n.pickerInput.showOnlySelectedLabel })),
|
|
3335
3204
|
React__default.createElement(FlexSpacer, null),
|
|
@@ -3341,17 +3210,159 @@ function DataPickerFooterImpl(props) {
|
|
|
3341
3210
|
}
|
|
3342
3211
|
const DataPickerFooter = /* @__PURE__ */React__default.memo(DataPickerFooterImpl);
|
|
3343
3212
|
|
|
3344
|
-
var css$
|
|
3213
|
+
var css$R = {"header":"iX--pi","title":"_5QYG8c","close":"DLQmLG"};
|
|
3345
3214
|
|
|
3346
3215
|
const DataPickerHeaderImpl = (props) => {
|
|
3347
3216
|
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$
|
|
3217
|
+
return (React__default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: [css$R.header, 'uui-picker_input-body-header'] },
|
|
3218
|
+
React__default.createElement("div", { className: css$R.title }, title),
|
|
3219
|
+
React__default.createElement(IconButton, { icon: settings.pickerInput.icons.body.pickerBodyMobileHeaderCloseIcon, onClick: () => props.close?.(), cx: css$R.close })));
|
|
3351
3220
|
};
|
|
3352
3221
|
const DataPickerHeader = /* @__PURE__ */React__default.memo(DataPickerHeaderImpl);
|
|
3353
3222
|
|
|
3354
|
-
var css$
|
|
3223
|
+
var css$Q = {"root":"doFse3"};
|
|
3224
|
+
|
|
3225
|
+
const AvatarStack = /* @__PURE__ */withMods(AvatarStack$1, () => [css$Q.root]);
|
|
3226
|
+
|
|
3227
|
+
var css$P = {"root":"W43bX5"};
|
|
3228
|
+
|
|
3229
|
+
const DEFAULT_FILL = 'solid';
|
|
3230
|
+
function applyBadgeMods(mods) {
|
|
3231
|
+
return [
|
|
3232
|
+
'uui-badge',
|
|
3233
|
+
css$P.root,
|
|
3234
|
+
`uui-size-${mods.size || settings.badge.sizes.default}`,
|
|
3235
|
+
`uui-fill-${mods.fill || DEFAULT_FILL}`,
|
|
3236
|
+
`uui-color-${mods.color || 'info'}`,
|
|
3237
|
+
];
|
|
3238
|
+
}
|
|
3239
|
+
const Badge = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
3240
|
+
const styles = [applyBadgeMods(props), props.cx];
|
|
3241
|
+
const DropdownIcon = props.dropdownIcon ? props.dropdownIcon : settings.badge.icons.dropdownIcon;
|
|
3242
|
+
return (React__default.createElement(Clickable, { ...props, rawProps: {
|
|
3243
|
+
'aria-haspopup': props.isDropdown,
|
|
3244
|
+
'aria-expanded': props.isOpen,
|
|
3245
|
+
...props.rawProps,
|
|
3246
|
+
}, cx: styles, ref: ref },
|
|
3247
|
+
(props.indicator && props.fill === 'outline') && (React__default.createElement("div", { className: "uui-indicator" })),
|
|
3248
|
+
props.icon && props.iconPosition !== 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
3249
|
+
props.caption && (React__default.createElement("div", { className: uuiElement.caption }, props.caption)),
|
|
3250
|
+
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 })),
|
|
3251
|
+
props.icon && props.iconPosition === 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
3252
|
+
props.isDropdown && (React__default.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
3253
|
+
});
|
|
3254
|
+
|
|
3255
|
+
var css$O = {"root":"jfUF11"};
|
|
3256
|
+
|
|
3257
|
+
function applyTagMods(props) {
|
|
3258
|
+
return [
|
|
3259
|
+
css$O.root,
|
|
3260
|
+
`uui-size-${props.size || settings.tag.sizes.default}`,
|
|
3261
|
+
`uui-color-${props.color || 'neutral'}`,
|
|
3262
|
+
`uui-fill-${props.fill || 'solid'}`,
|
|
3263
|
+
'uui-tag',
|
|
3264
|
+
];
|
|
3265
|
+
}
|
|
3266
|
+
const Tag = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
3267
|
+
const styles = [applyTagMods(props), props.cx];
|
|
3268
|
+
const ClearIcon = props.clearIcon ? props.clearIcon : settings.tag.icons.clearIcon;
|
|
3269
|
+
const DropdownIcon = props.dropdownIcon ? props.dropdownIcon : settings.tag.icons.dropdownIcon;
|
|
3270
|
+
return (React__default.createElement(Clickable, { ...props, rawProps: {
|
|
3271
|
+
'aria-haspopup': props.isDropdown,
|
|
3272
|
+
'aria-expanded': props.isOpen,
|
|
3273
|
+
...props.rawProps,
|
|
3274
|
+
}, cx: styles, ref: ref },
|
|
3275
|
+
props.icon && props.iconPosition !== 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
3276
|
+
props.caption && (React__default.createElement("div", { className: uuiElement.caption }, props.caption)),
|
|
3277
|
+
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 })),
|
|
3278
|
+
props.icon && props.iconPosition === 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
3279
|
+
props.isDropdown && (React__default.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
3280
|
+
props.onClear && !props.isDisabled && (React__default.createElement(IconContainer, { cx: uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
3281
|
+
});
|
|
3282
|
+
|
|
3283
|
+
var css$N = {"root":"vck9zn","page":"o20D9o","spacer":"e89s1q","mode-ghost":"dlpjTa","modeGhost":"dlpjTa"};
|
|
3284
|
+
|
|
3285
|
+
function Paginator(props) {
|
|
3286
|
+
const renderPaginator = (params) => (React__default.createElement("nav", { role: "navigation", className: cx(css$N.root, 'uui-paginator', `uui-size-${props.size || settings.paginator.sizes.default}`), ...params.rawProps },
|
|
3287
|
+
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" }),
|
|
3288
|
+
params.pages.map((page, index) => {
|
|
3289
|
+
if (page.type === 'spacer') {
|
|
3290
|
+
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 }));
|
|
3291
|
+
}
|
|
3292
|
+
else {
|
|
3293
|
+
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 }));
|
|
3294
|
+
}
|
|
3295
|
+
}),
|
|
3296
|
+
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" })));
|
|
3297
|
+
return React__default.createElement(Paginator$1, { ...props, render: renderPaginator });
|
|
3298
|
+
}
|
|
3299
|
+
|
|
3300
|
+
var css$M = {"root":"BRpJMh","progress-bar":"Uaq4dc","progressBar":"Uaq4dc","progressBar-indeterminate":"Ojl-3B","progressBarIndeterminate":"Ojl-3B","size-12":"sE4Knn","size12":"sE4Knn","size-18":"HmgcL-","size18":"HmgcL-","size-24":"ftWXEA","size24":"ftWXEA"};
|
|
3301
|
+
|
|
3302
|
+
const IndeterminateBar = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
3303
|
+
return (React.createElement("div", { ref: ref, className: cx('uui-indeterminate_bar', props.cx, css$M.root, css$M[`size-${props.size || 12}`]) },
|
|
3304
|
+
React.createElement("div", { className: cx(css$M.progressBar) })));
|
|
3305
|
+
});
|
|
3306
|
+
|
|
3307
|
+
var css$L = {"root":"SSlZaq","striped":"_5kZZBi","animate-stripes":"kdymei","animateStripes":"kdymei","size-12":"E0pMyM","size12":"E0pMyM","size-18":"Kqg6Zu","size18":"Kqg6Zu","size-24":"gIjGDq","size24":"gIjGDq"};
|
|
3308
|
+
|
|
3309
|
+
const DEFAULT_SIZE = '12';
|
|
3310
|
+
function applyProgressBarMods(mods) {
|
|
3311
|
+
const size = mods.size || DEFAULT_SIZE;
|
|
3312
|
+
return [
|
|
3313
|
+
css$L.root,
|
|
3314
|
+
css$L[`size-${size}`],
|
|
3315
|
+
mods.striped && css$L.striped,
|
|
3316
|
+
];
|
|
3317
|
+
}
|
|
3318
|
+
const ProgressBar = /* @__PURE__ */withMods(uuiComponents.ProgressBar, applyProgressBarMods, (props) => ({
|
|
3319
|
+
hideLabel: props.hideLabel || props.striped,
|
|
3320
|
+
}));
|
|
3321
|
+
|
|
3322
|
+
var css$K = {"root":"-E9mEB"};
|
|
3323
|
+
|
|
3324
|
+
const IndicatorBar = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
3325
|
+
const { progress } = props;
|
|
3326
|
+
return progress || progress === 0 ? (React.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx(css$K.root, props.cx), hideLabel: true })) : (React.createElement(IndeterminateBar, { ref: ref, cx: cx(css$K.root, props.cx) }));
|
|
3327
|
+
});
|
|
3328
|
+
|
|
3329
|
+
var css$J = {"root":"ZnfTiH"};
|
|
3330
|
+
|
|
3331
|
+
const StatusIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
3332
|
+
return (React__default.createElement("div", { ref: ref, className: cx([
|
|
3333
|
+
css$J.root,
|
|
3334
|
+
`uui-size-${props.size || settings.statusIndicator.sizes.default}`,
|
|
3335
|
+
'uui-status_indicator',
|
|
3336
|
+
`uui-color-${props.color || 'neutral'}`,
|
|
3337
|
+
`uui-fill-${props.fill || 'solid'}`,
|
|
3338
|
+
props.cx,
|
|
3339
|
+
]) },
|
|
3340
|
+
React__default.createElement("div", { className: "uui-status_indicator-dot" }),
|
|
3341
|
+
React__default.createElement("p", { className: "uui-status_indicator-caption" }, props.caption)));
|
|
3342
|
+
});
|
|
3343
|
+
|
|
3344
|
+
var css$I = {"drag-handle":"otJktq","dragHandle":"otJktq","icon-container":"moTc6G","iconContainer":"moTc6G"};
|
|
3345
|
+
|
|
3346
|
+
function DataRowAddons(props) {
|
|
3347
|
+
const row = props.rowProps;
|
|
3348
|
+
const getIndent = () => {
|
|
3349
|
+
return (row.indent - 1) * settings.dataTable.sizes.body.indentUnitMap[props.size || settings.dataTable.sizes.body.row];
|
|
3350
|
+
};
|
|
3351
|
+
const getWidth = () => {
|
|
3352
|
+
return settings.dataTable.sizes.body.indentWidthMap[props.size || settings.dataTable.sizes.body.row];
|
|
3353
|
+
};
|
|
3354
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
3355
|
+
row.dnd?.srcData && React__default.createElement(DragHandle, { key: "dh", cx: css$I.dragHandle, rawProps: { ...props.eventHandlers } }),
|
|
3356
|
+
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 })),
|
|
3357
|
+
row.indent > 0 && (React__default.createElement("div", { key: "fold", className: cx('uui-dr_addons-indent', `uui-size-${props.size || settings.dataTable.sizes.body.row}`), style: { marginInlineStart: getIndent(), width: getWidth() } }, row.isFoldable && (React__default.createElement(IconContainer, { rawProps: {
|
|
3358
|
+
'aria-label': row.isFolded ? 'Unfold' : 'Fold',
|
|
3359
|
+
role: 'button',
|
|
3360
|
+
}, key: "icon", icon: settings.dataTable.icons.body.foldingIcon, cx: [
|
|
3361
|
+
uuiElement.foldingArrow, uuiMarkers.clickable, css$I.iconContainer,
|
|
3362
|
+
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row), size: settings.dataTable.sizes.body.iconMap[props.size || settings.dataTable.sizes.body.row] }))))));
|
|
3363
|
+
}
|
|
3364
|
+
|
|
3365
|
+
var css$H = {"root":"coBbF9","align-widgets-top":"_7z2Opd","alignWidgetsTop":"_7z2Opd","align-widgets-center":"_3wr0qE","alignWidgetsCenter":"_3wr0qE","icon-container":"mpnktg","iconContainer":"mpnktg","loading-cell":"lLXvAC","loadingCell":"lLXvAC","content-wrapper":"rLVdMl","contentWrapper":"rLVdMl","render-item":"rLbWpI","renderItem":"rLbWpI","icon-wrapper":"_405zwH","iconWrapper":"_405zwH","icon-default":"_6CSeu1","iconDefault":"_6CSeu1","selected-mark":"BMbc9R","selectedMark":"BMbc9R"};
|
|
3355
3366
|
|
|
3356
3367
|
function DataPickerCell(props) {
|
|
3357
3368
|
const ref = React.useRef();
|
|
@@ -3359,8 +3370,7 @@ function DataPickerCell(props) {
|
|
|
3359
3370
|
if (props.rowProps.isLoading) {
|
|
3360
3371
|
content = (
|
|
3361
3372
|
// 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)));
|
|
3373
|
+
React.createElement(Text, { key: "t", size: props.size, cx: css$H.loadingCell }, settings.pickerInput.renderPlaceholder()));
|
|
3364
3374
|
}
|
|
3365
3375
|
else if (props.rowProps.isUnknown) {
|
|
3366
3376
|
content = (React.createElement(Text, { key: "t", size: props.size }, "Unknown"));
|
|
@@ -3392,7 +3402,7 @@ function DataPickerCell(props) {
|
|
|
3392
3402
|
getWrappedContent()));
|
|
3393
3403
|
}
|
|
3394
3404
|
|
|
3395
|
-
var css$G = {"picker-row":"
|
|
3405
|
+
var css$G = {"picker-row":"UxWzAm","pickerRow":"UxWzAm"};
|
|
3396
3406
|
|
|
3397
3407
|
class DataPickerRow extends React.Component {
|
|
3398
3408
|
constructor() {
|
|
@@ -3406,7 +3416,7 @@ class DataPickerRow extends React.Component {
|
|
|
3406
3416
|
}
|
|
3407
3417
|
}
|
|
3408
3418
|
|
|
3409
|
-
var css$F = {"done":"
|
|
3419
|
+
var css$F = {"done":"WVDzh8","container":"nHQuYo"};
|
|
3410
3420
|
|
|
3411
3421
|
const PickerBodyMobileView = (props) => {
|
|
3412
3422
|
const isMobileView = isMobile();
|
|
@@ -3483,7 +3493,7 @@ const getHighlightedSearchMatches = (str, search) => {
|
|
|
3483
3493
|
return getDecoratedText(str, ranges);
|
|
3484
3494
|
};
|
|
3485
3495
|
|
|
3486
|
-
var css$E = {"root":"
|
|
3496
|
+
var css$E = {"root":"tJmbBE","column-gap":"upUK0d","columnGap":"upUK0d","title":"GT2fe9","subtitle":"MTwtBb","disabled":"YpsiS7","multiline":"ytfJ-n"};
|
|
3487
3497
|
|
|
3488
3498
|
function PickerItem(props) {
|
|
3489
3499
|
const { highlightSearchMatches = true, size, avatarUrl, isLoading, isDisabled, icon, } = props;
|
|
@@ -3504,7 +3514,7 @@ function getAvatarSize(size, isMultiline) {
|
|
|
3504
3514
|
return settings.pickerInput.sizes.body[isMultiline ? 'itemAvatarMultilineMap' : 'itemAvatarMap'][size];
|
|
3505
3515
|
}
|
|
3506
3516
|
|
|
3507
|
-
var css$D = {"sub-header-wrapper":"
|
|
3517
|
+
var css$D = {"sub-header-wrapper":"LtxHkG","subHeaderWrapper":"LtxHkG","switch":"teG4RC","no-found-modal-container":"SEji1H","noFoundModalContainer":"SEji1H","no-found-modal-container-icon":"QWEXQn","noFoundModalContainerIcon":"QWEXQn","no-found-modal-container-text":"osLTjF","noFoundModalContainerText":"osLTjF"};
|
|
3508
3518
|
|
|
3509
3519
|
function PickerModal(props) {
|
|
3510
3520
|
const { view, selection, dataSourceStateLens, dataSourceState, getDataSourceState, getName, clearSelection, getRows, getListProps, getFooterProps, isSingleSelect, handleDataSourceValueChange, } = usePickerModal(props);
|
|
@@ -3559,7 +3569,7 @@ function PickerModal(props) {
|
|
|
3559
3569
|
React__default.createElement(ModalFooter, null, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
|
|
3560
3570
|
}
|
|
3561
3571
|
|
|
3562
|
-
var css$C = {"tooltip":"
|
|
3572
|
+
var css$C = {"tooltip":"s2kIwA"};
|
|
3563
3573
|
|
|
3564
3574
|
const PickerTogglerTag = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
3565
3575
|
const tagProps = {
|
|
@@ -3578,7 +3588,7 @@ const PickerTogglerTag = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
3578
3588
|
}
|
|
3579
3589
|
});
|
|
3580
3590
|
|
|
3581
|
-
var css$B = {"root":"
|
|
3591
|
+
var css$B = {"root":"vu-HKj"};
|
|
3582
3592
|
|
|
3583
3593
|
const defaultMode = EditMode.FORM;
|
|
3584
3594
|
function applyPickerTogglerMods(mods) {
|
|
@@ -3586,7 +3596,7 @@ function applyPickerTogglerMods(mods) {
|
|
|
3586
3596
|
css$B.root,
|
|
3587
3597
|
'uui-picker_toggler',
|
|
3588
3598
|
`uui-size-${mods.size || settings.pickerInput.sizes.toggler.default}`,
|
|
3589
|
-
|
|
3599
|
+
'uui-control-mode-' + (mods.mode || defaultMode),
|
|
3590
3600
|
];
|
|
3591
3601
|
}
|
|
3592
3602
|
function PickerTogglerComponent(props, ref) {
|
|
@@ -3679,7 +3689,7 @@ function PickerInputComponent({ highlightSearchMatches = true, ...props }, ref)
|
|
|
3679
3689
|
}
|
|
3680
3690
|
const PickerInput = /* @__PURE__ */React__default.forwardRef(PickerInputComponent);
|
|
3681
3691
|
|
|
3682
|
-
var css$A = {"row":"
|
|
3692
|
+
var css$A = {"row":"nCUeZJ"};
|
|
3683
3693
|
|
|
3684
3694
|
function PickerListItem(props) {
|
|
3685
3695
|
let label;
|
|
@@ -3699,7 +3709,7 @@ function PickerListItem(props) {
|
|
|
3699
3709
|
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
3710
|
}
|
|
3701
3711
|
|
|
3702
|
-
var css$z = {"root":"
|
|
3712
|
+
var css$z = {"root":"_2zNDIn"};
|
|
3703
3713
|
|
|
3704
3714
|
function PickerList(props) {
|
|
3705
3715
|
const { context, view, onlySelectedView, getName, getEntityName, appendLastSelected, getSelectedIdsArray, buildRowsList, getMaxDefaultItems, dataSourceState, getModalTogglerCaption, } = usePickerList(props);
|
|
@@ -3734,7 +3744,7 @@ function PickerList(props) {
|
|
|
3734
3744
|
}, selectedRows)));
|
|
3735
3745
|
}
|
|
3736
3746
|
|
|
3737
|
-
var css$y = {"root":"
|
|
3747
|
+
var css$y = {"root":"RhCNsR","wrapper":"VQjVcN","align-widgets-top":"z-SAN5","alignWidgetsTop":"z-SAN5","align-widgets-center":"GegYop","alignWidgetsCenter":"GegYop"};
|
|
3738
3748
|
|
|
3739
3749
|
function DataTableCell(initialProps) {
|
|
3740
3750
|
const props = { ...initialProps };
|
|
@@ -3742,8 +3752,7 @@ function DataTableCell(initialProps) {
|
|
|
3742
3752
|
props.addons = React.createElement(DataRowAddons, { size: props.size, ...props });
|
|
3743
3753
|
}
|
|
3744
3754
|
props.renderPlaceholder = props.renderPlaceholder
|
|
3745
|
-
|| (() => (React.createElement(Text, { key: "t", size: props.size },
|
|
3746
|
-
React.createElement(TextPlaceholder, { isNotAnimated: true }))));
|
|
3755
|
+
|| (() => (React.createElement(Text, { key: "t", size: props.size }, settings.dataTable.renderPlaceholder())));
|
|
3747
3756
|
props.renderUnknown = props.renderUnknown
|
|
3748
3757
|
|| (() => (React.createElement(Text, { key: "t", size: props.size }, "Unknown")));
|
|
3749
3758
|
props.renderTooltip = (tooltipProps) => React.createElement(Tooltip, { color: "critical", ...tooltipProps });
|
|
@@ -3783,7 +3792,7 @@ function DataTableCell(initialProps) {
|
|
|
3783
3792
|
return React.createElement(DataTableCell$1, { ...props });
|
|
3784
3793
|
}
|
|
3785
3794
|
|
|
3786
|
-
var css$x = {"root":"
|
|
3795
|
+
var css$x = {"root":"rosH-Q"};
|
|
3787
3796
|
|
|
3788
3797
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
3789
3798
|
// 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 +3808,7 @@ const DataTableRow = /* @__PURE__ */withMods(DataTableRow$1, ({ borderBottom = t
|
|
|
3799
3808
|
];
|
|
3800
3809
|
}, () => propsMods);
|
|
3801
3810
|
|
|
3802
|
-
var css$w = {"sorting-panel-container":"
|
|
3811
|
+
var css$w = {"sorting-panel-container":"QNLpCR","sortingPanelContainer":"QNLpCR"};
|
|
3803
3812
|
|
|
3804
3813
|
const SortingPanelImpl = ({ sortDirection, onSort }) => {
|
|
3805
3814
|
const sortAsc = useCallback(() => onSort(sortDirection === 'asc' ? undefined : 'asc'), [onSort]);
|
|
@@ -3824,7 +3833,7 @@ const ColumnHeaderDropdownImpl = (props) => {
|
|
|
3824
3833
|
};
|
|
3825
3834
|
const ColumnHeaderDropdown = /* @__PURE__ */React__default.memo(ColumnHeaderDropdownImpl);
|
|
3826
3835
|
|
|
3827
|
-
var css$v = {"root":"
|
|
3836
|
+
var css$v = {"root":"pfOroH","caption-wrapper":"fHHFtY","captionWrapper":"fHHFtY","sort-icon":"gueiqG","sortIcon":"gueiqG","dropdown-icon":"Nm3nut","dropdownIcon":"Nm3nut","infoIcon":"_538J-g","resizable":"v9jhmA","align-right":"IanQYF","alignRight":"IanQYF","align-center":"_5iQ9Mr","alignCenter":"_5iQ9Mr","caption":"K9AABm","truncate":"recvRz","upper-case":"FcmDaz","upperCase":"FcmDaz","checkbox":"qUz8nS","icon":"PNBFRP","fold-all-icon":"IBODcS","foldAllIcon":"IBODcS","cell-tooltip":"OcBUA1","cellTooltip":"OcBUA1","resizing-marker":"yKjIs1","resizingMarker":"yKjIs1","pinned-right":"q73PJ8","pinnedRight":"q73PJ8","draggable":"_3-E6eX","ghost":"_7o2ad8","is-dragged-out":"xaGXmP","isDraggedOut":"xaGXmP","dnd-marker-left":"M1PcQY","dndMarkerLeft":"M1PcQY","dnd-marker-right":"Kcj2Tu","dndMarkerRight":"Kcj2Tu","cell-tooltip-wrapper":"vxstNe","cellTooltipWrapper":"vxstNe","cell-tooltip-text":"xnbQ--","cellTooltipText":"xnbQ--","tooltip-caption":"XrFti6","tooltipCaption":"XrFti6","tooltip-info":"oN3Bec","tooltipInfo":"oN3Bec"};
|
|
3828
3837
|
|
|
3829
3838
|
class DataTableHeaderCell extends React.Component {
|
|
3830
3839
|
constructor() {
|
|
@@ -3918,7 +3927,7 @@ class DataTableHeaderCell extends React.Component {
|
|
|
3918
3927
|
}
|
|
3919
3928
|
}
|
|
3920
3929
|
|
|
3921
|
-
var css$u = {"root":"
|
|
3930
|
+
var css$u = {"root":"kEUThp","caption-wrapper":"_5n5NQj","captionWrapper":"_5n5NQj","align-center":"VElgs8","alignCenter":"VElgs8","caption":"ZWa37s","truncate":"IDf8TA","upper-case":"gCcVs6","upperCase":"gCcVs6","group-cell-tooltip":"_1qwVhh","groupCellTooltip":"_1qwVhh","group-cell-tooltip-wrapper":"zDGITW","groupCellTooltipWrapper":"zDGITW","group-cell-tooltip-text":"wWZ4Qn","groupCellTooltipText":"wWZ4Qn","tooltip-caption":"M2-2NJ","tooltipCaption":"M2-2NJ","tooltip-info":"_2tsqyp","tooltipInfo":"_2tsqyp"};
|
|
3922
3931
|
|
|
3923
3932
|
class DataTableHeaderGroupCell extends React.Component {
|
|
3924
3933
|
constructor() {
|
|
@@ -3958,7 +3967,7 @@ class DataTableHeaderGroupCell extends React.Component {
|
|
|
3958
3967
|
}
|
|
3959
3968
|
}
|
|
3960
3969
|
|
|
3961
|
-
var css$t = {"root":"
|
|
3970
|
+
var css$t = {"root":"Aw0bYD"};
|
|
3962
3971
|
|
|
3963
3972
|
const DataTableHeaderRow = /* @__PURE__ */withMods(DataTableHeaderRow$1, () => [css$t.root, 'uui-dt-vars'], (mods) => ({
|
|
3964
3973
|
renderCell: (props) => (React.createElement(DataTableHeaderCell, { ...props, size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key, columnsGap: mods.columnsGap })),
|
|
@@ -3971,7 +3980,7 @@ const UUI_FILTERS_PANEL_ADD_BUTTON_BODY = 'uui-filters-panel-add-button-body';
|
|
|
3971
3980
|
const UUI_FILTERS_PANEL_ITEM_BODY = 'uui-filters-panel-item-body';
|
|
3972
3981
|
const UUI_FILTERS_PANEL_ITEM_TOGGLER = 'uui-filters-panel-item-toggler';
|
|
3973
3982
|
|
|
3974
|
-
var css$s = {"root":"
|
|
3983
|
+
var css$s = {"root":"CzbPWY","title-wrapper":"A1z8AJ","titleWrapper":"A1z8AJ","title":"ITzIxi","text-wrapper":"DtMfNa","textWrapper":"DtMfNa","selection":"EgRQmQ","postfix":"wTJjox","selected":"E3TxhO"};
|
|
3975
3984
|
|
|
3976
3985
|
const FilterPanelItemToggler = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
3977
3986
|
const togglerPickerOpened = (e) => {
|
|
@@ -4139,7 +4148,7 @@ function FilterRangeDatePickerBody(props) {
|
|
|
4139
4148
|
React__default.createElement(LinkButton, { isDisabled: !value.from && !value.to, caption: i18n.pickerModal.clearAllButton, onClick: () => onValueChange(defaultRangeValue) })))));
|
|
4140
4149
|
}
|
|
4141
4150
|
|
|
4142
|
-
var css$r = {"container":"
|
|
4151
|
+
var css$r = {"container":"_5g4CVT"};
|
|
4143
4152
|
|
|
4144
4153
|
function FilterNumericBody(props) {
|
|
4145
4154
|
const isInRangePredicate = props?.selectedPredicate === 'inRange' || props?.selectedPredicate === 'notInRange';
|
|
@@ -4235,7 +4244,7 @@ var SvgActionDeleteOutline = function SvgActionDeleteOutline(props, ref) {
|
|
|
4235
4244
|
};
|
|
4236
4245
|
var ForwardRef$a = /*#__PURE__*/forwardRef(SvgActionDeleteOutline);
|
|
4237
4246
|
|
|
4238
|
-
var css$q = {"header":"
|
|
4247
|
+
var css$q = {"header":"cie9kL","removeButton":"CQL02u","with-search":"ZtkyFI","withSearch":"ZtkyFI"};
|
|
4239
4248
|
|
|
4240
4249
|
function useView(props, value) {
|
|
4241
4250
|
const forceUpdate = useForceUpdate();
|
|
@@ -4541,7 +4550,7 @@ function FiltersToolbarImpl(props) {
|
|
|
4541
4550
|
}
|
|
4542
4551
|
const FiltersPanel = /* @__PURE__ */React__default.memo(FiltersToolbarImpl);
|
|
4543
4552
|
|
|
4544
|
-
var css$p = {"divider":"
|
|
4553
|
+
var css$p = {"divider":"ccnHOj","dropdownDeleteIcon":"HF5tty","presetsWrapper":"Ldg63G","addPresetContainer":"pALtKU","dropContainer":"pqS348"};
|
|
4545
4554
|
|
|
4546
4555
|
var _path$9;
|
|
4547
4556
|
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 +4631,7 @@ var SvgContentLinkOutline = function SvgContentLinkOutline(props, ref) {
|
|
|
4622
4631
|
};
|
|
4623
4632
|
var ForwardRef$5 = /*#__PURE__*/forwardRef(SvgContentLinkOutline);
|
|
4624
4633
|
|
|
4625
|
-
var css$o = {"delete-button":"
|
|
4634
|
+
var css$o = {"delete-button":"YEJr5L","deleteButton":"YEJr5L","tab-button":"DaiNMu","tabButton":"DaiNMu","targetOpen":"R8rwLb"};
|
|
4626
4635
|
|
|
4627
4636
|
function PresetActionsDropdown(props) {
|
|
4628
4637
|
const { uuiNotifications } = useUuiContext();
|
|
@@ -4689,7 +4698,7 @@ function PresetActionsDropdown(props) {
|
|
|
4689
4698
|
return (React__default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end", modifiers: [{ name: 'offset', options: { offset: [0, 22] } }] }));
|
|
4690
4699
|
}
|
|
4691
4700
|
|
|
4692
|
-
var css$n = {"preset-input-cell":"
|
|
4701
|
+
var css$n = {"preset-input-cell":"nWPwT1","presetInputCell":"nWPwT1","preset-input":"vbTSzk","presetInput":"vbTSzk"};
|
|
4693
4702
|
|
|
4694
4703
|
const UUI_PRESETS_PANEL_ADD_BUTTON = 'uui-presets-panel-add-button';
|
|
4695
4704
|
const UUI_PRESETS_PANEL_MORE_BUTTON = 'uui-presets-panel-more-button';
|
|
@@ -4721,7 +4730,7 @@ function PresetInput(props) {
|
|
|
4721
4730
|
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
4731
|
}
|
|
4723
4732
|
|
|
4724
|
-
var css$m = {"preset":"
|
|
4733
|
+
var css$m = {"preset":"FvfJ0L","activePreset":"hb9Cop"};
|
|
4725
4734
|
|
|
4726
4735
|
function Preset(props) {
|
|
4727
4736
|
const [isRenamePreset, setIsRenamePreset] = useState(false);
|
|
@@ -4847,7 +4856,7 @@ const useColumnsWithFilters = (initialColumns, filters) => {
|
|
|
4847
4856
|
return columns;
|
|
4848
4857
|
};
|
|
4849
4858
|
|
|
4850
|
-
var css$l = {"unpin-icon":"
|
|
4859
|
+
var css$l = {"unpin-icon":"D-tMnZ","unpinIcon":"D-tMnZ","pin-toggler-icon":"FO0ACy","pinTogglerIcon":"FO0ACy"};
|
|
4851
4860
|
|
|
4852
4861
|
function PinIconButton(props) {
|
|
4853
4862
|
const i18nLocal = i18n.tables.columnsConfigurationModal;
|
|
@@ -4889,7 +4898,7 @@ function getUnpinIcon(params) {
|
|
|
4889
4898
|
}
|
|
4890
4899
|
}
|
|
4891
4900
|
|
|
4892
|
-
var css$k = {"row-wrapper":"
|
|
4901
|
+
var css$k = {"row-wrapper":"hBIxVC","rowWrapper":"hBIxVC","pin-icon-button":"zyhtPC","pinIconButton":"zyhtPC","not-pinned":"JGLq-A","notPinned":"JGLq-A","checkbox":"n29N4q","drag-handle":"mevN5b","dragHandle":"mevN5b","dnd-disabled":"_8zOhei","dndDisabled":"_8zOhei"};
|
|
4893
4902
|
|
|
4894
4903
|
const ColumnRow = /* @__PURE__ */React.memo(function ColumnRow(props) {
|
|
4895
4904
|
const { column } = props;
|
|
@@ -4912,7 +4921,7 @@ const ColumnRow = /* @__PURE__ */React.memo(function ColumnRow(props) {
|
|
|
4912
4921
|
return (React.createElement(DndActor, { key: column.key, srcData: isDndAllowed && data, dstData: data, canAcceptDrop: onCanAcceptDrop, onDrop: onDrop, render: renderContent }));
|
|
4913
4922
|
});
|
|
4914
4923
|
|
|
4915
|
-
var css$j = {"root":"
|
|
4924
|
+
var css$j = {"root":"uunCen","main-panel":"U44Hmj","mainPanel":"U44Hmj","group":"LT32Cx","group-title":"lSdN6w","groupTitle":"lSdN6w","group-items":"-uLMF0","groupItems":"-uLMF0","no-data":"SO6pXA","noData":"SO6pXA","no-data-title":"_7FEo9u","noDataTitle":"_7FEo9u","no-data-sub-title":"VddFsK","noDataSubTitle":"VddFsK","h-divider":"VgJrfR","hDivider":"VgJrfR","search-area":"Qqlyns","searchArea":"Qqlyns","subgroup-accordion":"bVzyIO","subgroupAccordion":"bVzyIO","subgroup":"gtSPpX","subgroup-title":"Dyi3Ra","subgroupTitle":"Dyi3Ra"};
|
|
4916
4925
|
|
|
4917
4926
|
const renderGroupTitle = (title, amount) => (React.createElement(FlexRow, { cx: css$j.group },
|
|
4918
4927
|
React.createElement(Text, { size: "none", cx: css$j.groupTitle }, title),
|
|
@@ -5014,7 +5023,7 @@ const getChildrenAndRest = (row, rows) => {
|
|
|
5014
5023
|
return [children, rest];
|
|
5015
5024
|
};
|
|
5016
5025
|
|
|
5017
|
-
var css$i = {"listContainer":"
|
|
5026
|
+
var css$i = {"listContainer":"u1BrdG","header":"zQ9KYP","group":"x3r2cH","stickyHeader":"c2j5Dt"};
|
|
5018
5027
|
|
|
5019
5028
|
function DataRowsGroup({ row, childRows, renderRow, top = 1, }) {
|
|
5020
5029
|
const rowRef = useRef();
|
|
@@ -5054,7 +5063,7 @@ function DataRowsContainer({ estimatedHeight, listContainerRef, offsetY, rows, r
|
|
|
5054
5063
|
React__default.createElement(DataRowsGroups, { rows: rows, renderRow: renderRow, top: headerRef?.current?.clientHeight }))));
|
|
5055
5064
|
}
|
|
5056
5065
|
|
|
5057
|
-
var css$h = {"root":"
|
|
5066
|
+
var css$h = {"root":"v7pINd","sticky-header":"B24K9g","stickyHeader":"B24K9g","no-results":"_-2rDZW","noResults":"_-2rDZW","icon":"Qe-cfb","title":"_5quWZa"};
|
|
5058
5067
|
|
|
5059
5068
|
function DataTable(props) {
|
|
5060
5069
|
const { uuiModals } = useUuiContext();
|
|
@@ -5103,9 +5112,9 @@ function DataTable(props) {
|
|
|
5103
5112
|
} }))));
|
|
5104
5113
|
}
|
|
5105
5114
|
|
|
5106
|
-
var css$g = {"root":"
|
|
5115
|
+
var css$g = {"root":"OtfZaT"};
|
|
5107
5116
|
|
|
5108
|
-
var css$f = {"root":"
|
|
5117
|
+
var css$f = {"root":"pe-p7i","burger-content":"TO-7Sj","burgerContent":"TO-7Sj"};
|
|
5109
5118
|
|
|
5110
5119
|
var _path$3;
|
|
5111
5120
|
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 +5157,7 @@ var SvgNavigationArrowDownOutline = function SvgNavigationArrowDownOutline(props
|
|
|
5148
5157
|
};
|
|
5149
5158
|
var ForwardRef$2 = /*#__PURE__*/forwardRef(SvgNavigationArrowDownOutline);
|
|
5150
5159
|
|
|
5151
|
-
var css$e = {"root":"
|
|
5160
|
+
var css$e = {"root":"Epmq7E","button-primary":"r3UwdN","buttonPrimary":"r3UwdN","button-secondary":"I2odi3","buttonSecondary":"I2odi3","hasIcon":"bIYl6T","dropdown":"N-Qjne"};
|
|
5152
5161
|
|
|
5153
5162
|
const BurgerButton = /* @__PURE__ */withMods(Button$1, (props) => [
|
|
5154
5163
|
css$e.root,
|
|
@@ -5159,13 +5168,13 @@ const BurgerButton = /* @__PURE__ */withMods(Button$1, (props) => [
|
|
|
5159
5168
|
props.icon && css$e.hasIcon,
|
|
5160
5169
|
], () => ({ dropdownIcon: ForwardRef$2, dropdownIconPosition: 'left', role: 'menuitem' }));
|
|
5161
5170
|
|
|
5162
|
-
var css$d = {"search-input":"
|
|
5171
|
+
var css$d = {"search-input":"lOkWdE","searchInput":"lOkWdE"};
|
|
5163
5172
|
|
|
5164
5173
|
function BurgerSearch(props) {
|
|
5165
5174
|
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
5175
|
}
|
|
5167
5176
|
|
|
5168
|
-
var css$c = {"root":"
|
|
5177
|
+
var css$c = {"root":"y9lP8R","group-header":"R2aNi6","groupHeader":"R2aNi6","group-name":"JKUiIt","groupName":"JKUiIt","line":"p8aRVT"};
|
|
5169
5178
|
|
|
5170
5179
|
function BurgerGroupHeader(props) {
|
|
5171
5180
|
return (React.createElement("div", { className: cx(css$c.root, css$c.groupHeader, 'uui-burger-group-header') },
|
|
@@ -5173,7 +5182,7 @@ function BurgerGroupHeader(props) {
|
|
|
5173
5182
|
React.createElement("span", { className: css$c.groupName }, props.caption)));
|
|
5174
5183
|
}
|
|
5175
5184
|
|
|
5176
|
-
var css$b = {"root":"
|
|
5185
|
+
var css$b = {"root":"-LC7Uy","type-primary":"jH4LJ4","typePrimary":"jH4LJ4","type-secondary":"EjabHp","typeSecondary":"EjabHp"};
|
|
5177
5186
|
|
|
5178
5187
|
const MainMenuButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
5179
5188
|
const { type, ...clickableProps } = props;
|
|
@@ -5195,7 +5204,7 @@ const MainMenuButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
5195
5204
|
props.isDropdown && (React.createElement(IconContainer, { icon: ForwardRef$Q, flipY: props.isOpen }))));
|
|
5196
5205
|
});
|
|
5197
5206
|
|
|
5198
|
-
var css$a = {"dropdown-body":"
|
|
5207
|
+
var css$a = {"dropdown-body":"CQVDpF","dropdownBody":"CQVDpF"};
|
|
5199
5208
|
|
|
5200
5209
|
class MainMenuDropdown extends React.Component {
|
|
5201
5210
|
render() {
|
|
@@ -5253,12 +5262,12 @@ var SvgNavigationGlobalMenuOutlineOutline = function SvgNavigationGlobalMenuOutl
|
|
|
5253
5262
|
};
|
|
5254
5263
|
var ForwardRef$1 = /*#__PURE__*/forwardRef(SvgNavigationGlobalMenuOutlineOutline);
|
|
5255
5264
|
|
|
5256
|
-
var css$9 = {"global-menu-btn":"
|
|
5265
|
+
var css$9 = {"global-menu-btn":"t-YBhs","globalMenuBtn":"t-YBhs","global-menu-icon":"-tBEtA","globalMenuIcon":"-tBEtA"};
|
|
5257
5266
|
|
|
5258
5267
|
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
5268
|
React.createElement(IconContainer, { size: 36, icon: ForwardRef$1, cx: css$9.globalMenuIcon }))));
|
|
5260
5269
|
|
|
5261
|
-
var css$8 = {"container":"
|
|
5270
|
+
var css$8 = {"container":"Xazrs0","open":"Zg1tOd","folding-arrow":"ore1ch","foldingArrow":"ore1ch"};
|
|
5262
5271
|
|
|
5263
5272
|
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
5273
|
React.createElement(Avatar, { size: "36", img: props.avatarUrl }),
|
|
@@ -5266,15 +5275,15 @@ const MainMenuAvatar = /* @__PURE__ */React.forwardRef((props, ref) => (React.cr
|
|
|
5266
5275
|
props.isDropdown && (React.createElement("div", null,
|
|
5267
5276
|
React.createElement(IconContainer, { size: 18, icon: ForwardRef$Q, flipY: props.isOpen, cx: css$8.foldingArrow }))))));
|
|
5268
5277
|
|
|
5269
|
-
var css$7 = {"search-input":"
|
|
5278
|
+
var css$7 = {"search-input":"EnIXpz","searchInput":"EnIXpz"};
|
|
5270
5279
|
|
|
5271
5280
|
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
5281
|
|
|
5273
|
-
var css$6 = {"container":"
|
|
5282
|
+
var css$6 = {"container":"F5lZm-"};
|
|
5274
5283
|
|
|
5275
5284
|
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
5285
|
|
|
5277
|
-
var css$5 = {"root":"
|
|
5286
|
+
var css$5 = {"root":"GvpSgM"};
|
|
5278
5287
|
|
|
5279
5288
|
const Anchor = /* @__PURE__ */withMods(Anchor$1, () => [css$5.root]);
|
|
5280
5289
|
|
|
@@ -5332,7 +5341,7 @@ var SvgFileCloudUploadFill = function SvgFileCloudUploadFill(props, ref) {
|
|
|
5332
5341
|
};
|
|
5333
5342
|
var ForwardRef = /*#__PURE__*/forwardRef(SvgFileCloudUploadFill);
|
|
5334
5343
|
|
|
5335
|
-
var css$4 = {"root":"
|
|
5344
|
+
var css$4 = {"root":"c7--a4","drop-start":"ycaV-F","dropStart":"ycaV-F","drop-over":"ifKjnY","dropOver":"ifKjnY","link":"yPHDkZ","drop-area":"R5yx-L","dropArea":"R5yx-L","drop-caption":"_7b9gsO","dropCaption":"_7b9gsO","icon-blue":"X4MMEA","iconBlue":"X4MMEA"};
|
|
5336
5345
|
|
|
5337
5346
|
function DropSpot(props) {
|
|
5338
5347
|
const getInfoText = typeof props.infoText === 'string'
|
|
@@ -5350,7 +5359,7 @@ function DropSpot(props) {
|
|
|
5350
5359
|
return React.createElement(DropSpot$1, { render: renderAttachmentArea, onFilesDropped: props.onUploadFiles });
|
|
5351
5360
|
}
|
|
5352
5361
|
|
|
5353
|
-
var css$3 = {"root":"
|
|
5362
|
+
var css$3 = {"root":"iR0pUe"};
|
|
5354
5363
|
|
|
5355
5364
|
const SvgCircleProgress = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
5356
5365
|
const outsetRadius = props.size / 2 - 1;
|
|
@@ -5361,7 +5370,7 @@ const SvgCircleProgress = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
5361
5370
|
React.createElement("circle", { strokeWidth: 1, fill: "transparent", r: outsetRadius, cx: props.size / 2, cy: props.size / 2 })));
|
|
5362
5371
|
});
|
|
5363
5372
|
|
|
5364
|
-
var css$2 = {"root":"
|
|
5373
|
+
var css$2 = {"root":"n5P-Ch","file-name":"CM2e-v","fileName":"CM2e-v","default-color":"im3iGK","defaultColor":"im3iGK","doc-color":"Xcqvoz","docColor":"Xcqvoz","xls-color":"Bb-qpD","xlsColor":"Bb-qpD","pdf-color":"BXCz6-","pdfColor":"BXCz6-","movie-color":"-RskFM","movieColor":"-RskFM","img-color":"zGMP9L","imgColor":"zGMP9L","mov-color":"D9-hMj","movColor":"D9-hMj","error-block":"OrtOFc","errorBlock":"OrtOFc","icons-block":"Jesxlt","iconsBlock":"Jesxlt"};
|
|
5365
5374
|
|
|
5366
5375
|
const FileCard = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
5367
5376
|
const [isLoadingShow, setIsLoadingShow] = React.useState(true);
|
|
@@ -5480,7 +5489,7 @@ const getErrorPageConfig = () => ({
|
|
|
5480
5489
|
},
|
|
5481
5490
|
});
|
|
5482
5491
|
|
|
5483
|
-
var css$1 = {"container":"
|
|
5492
|
+
var css$1 = {"container":"_-8iBKl"};
|
|
5484
5493
|
|
|
5485
5494
|
const ErrorPage = (props) => {
|
|
5486
5495
|
const isMobileScreen = isMobile();
|
|
@@ -5492,7 +5501,7 @@ const ErrorPage = (props) => {
|
|
|
5492
5501
|
props?.supportLink && React__default.createElement("div", { className: "uui-error-support-link" }, props?.supportLink))));
|
|
5493
5502
|
};
|
|
5494
5503
|
|
|
5495
|
-
var css = {"recovery-spinner":"
|
|
5504
|
+
var css = {"recovery-spinner":"VsM91N","recoverySpinner":"VsM91N","recovery-message":"MU1gQP","recoveryMessage":"MU1gQP","modal-blocker":"-x8QHj","modalBlocker":"-x8QHj","modalFadeIn":"oocA4y"};
|
|
5496
5505
|
|
|
5497
5506
|
function ErrorHandler(props) {
|
|
5498
5507
|
const { uuiNotifications, uuiModals, uuiApi } = useUuiContext();
|