@epam/uui 5.13.3-beta.1 → 5.13.3-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/styles/inputs.scss +4 -4
- package/components/inputs/MultiSwitch.d.ts +4 -9
- package/components/inputs/MultiSwitch.d.ts.map +1 -1
- package/components/inputs/RadioInput.d.ts +6 -7
- package/components/inputs/RadioInput.d.ts.map +1 -1
- package/components/layout/Blocker.d.ts +2 -2
- package/components/layout/Blocker.d.ts.map +1 -1
- package/components/overlays/Tooltip.d.ts +4 -1
- package/components/overlays/Tooltip.d.ts.map +1 -1
- package/components/pickers/DataPickerBody.d.ts +3 -3
- package/components/pickers/DataPickerBody.d.ts.map +1 -1
- package/components/pickers/DataPickerCell.d.ts.map +1 -1
- package/components/pickers/DataPickerFooter.d.ts +1 -0
- package/components/pickers/DataPickerFooter.d.ts.map +1 -1
- package/components/tables/DataTable.d.ts +3 -1
- package/components/tables/DataTable.d.ts.map +1 -1
- package/components/tables/DataTableCell.d.ts.map +1 -1
- package/components/tables/DataTableRow.d.ts +5 -3
- package/components/tables/DataTableRow.d.ts.map +1 -1
- package/components/tables/types.d.ts +0 -2
- package/components/tables/types.d.ts.map +1 -1
- package/components/typography/Text.d.ts +5 -5
- package/components/typography/Text.d.ts.map +1 -1
- package/index.esm.js +415 -408
- package/index.esm.js.map +1 -1
- package/index.js +414 -407
- package/index.js.map +1 -1
- package/package.json +5 -5
- package/settings.d.ts +18 -4
- package/settings.d.ts.map +1 -1
- package/stats.html +1 -1
- package/styles.css +1569 -1581
- package/styles.css.map +1 -1
package/index.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(#00v3wu9hmpw9hsfbr_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: "00v3wuw379j41cyf_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(#00v3wuw379j41cyf_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: "00v3wu9hmpw9hsfbr_a"
|
|
273
273
|
}, /*#__PURE__*/React.createElement("path", {
|
|
274
274
|
fill: "#fff",
|
|
275
275
|
transform: "translate(.552)",
|
|
@@ -826,6 +826,57 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
|
826
826
|
};
|
|
827
827
|
var ForwardRef$b = /*#__PURE__*/forwardRef(SvgSearchWithBackground);
|
|
828
828
|
|
|
829
|
+
var css$1x = {"root":"lT8il7","uui-spinner":"Ltp-Yo","uuiSpinner":"Ltp-Yo"};
|
|
830
|
+
|
|
831
|
+
function applySpinnerMods() {
|
|
832
|
+
return [css$1x.root, 'uui-spinner'];
|
|
833
|
+
}
|
|
834
|
+
const Spinner = /* @__PURE__ */withMods(Spinner$1, applySpinnerMods);
|
|
835
|
+
|
|
836
|
+
var css$1w = {"root":"J6pmRG","loading-word":"syuJlZ","loadingWord":"syuJlZ","animated-loading":"LN1aNS","animatedLoading":"LN1aNS","skeleton_loading":"M7NS6f","skeletonLoading":"M7NS6f"};
|
|
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$1w.root, 'uui-text-placeholder'), ...props.rawProps }, text.map((it, index) => (React.createElement("span", { key: index, className: cx([
|
|
849
|
+
props.cx, css$1w.loadingWord, !props.isNotAnimated && css$1w.animatedLoading,
|
|
850
|
+
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
851
|
+
};
|
|
852
|
+
|
|
853
|
+
var css$1v = {"root":"ylDE5V","line-height":"m-6511","lineHeight":"m-6511","font-size":"xpHY2c","fontSize":"xpHY2c"};
|
|
854
|
+
|
|
855
|
+
function applyTextMods(mods) {
|
|
856
|
+
return [
|
|
857
|
+
css$1v.root,
|
|
858
|
+
'uui-text',
|
|
859
|
+
`uui-size-${mods.size || settings.text.sizes.default}`,
|
|
860
|
+
(mods.size !== 'none' || mods.lineHeight) && css$1v.lineHeight,
|
|
861
|
+
(mods.size !== 'none' || mods.fontSize) && css$1v.fontSize,
|
|
862
|
+
`uui-color-${mods.color || 'primary'}`,
|
|
863
|
+
`uui-font-weight-${mods.fontWeight || '400'}`,
|
|
864
|
+
`uui-font-style-${mods.fontStyle || 'normal'}`,
|
|
865
|
+
'uui-typography-inline',
|
|
866
|
+
];
|
|
867
|
+
}
|
|
868
|
+
const Text = /* @__PURE__ */withMods(uuiComponents.Text, applyTextMods, (props) => {
|
|
869
|
+
const style = props?.rawProps?.style || {};
|
|
870
|
+
props.fontSize && (style['--uui-text-font-size'] = `${props.fontSize}px`);
|
|
871
|
+
props.lineHeight && (style['--uui-text-line-height'] = `${props.lineHeight}px`);
|
|
872
|
+
return {
|
|
873
|
+
rawProps: {
|
|
874
|
+
...props?.rawProps,
|
|
875
|
+
style: style,
|
|
876
|
+
},
|
|
877
|
+
};
|
|
878
|
+
});
|
|
879
|
+
|
|
829
880
|
const accordionSettings = {
|
|
830
881
|
icons: {
|
|
831
882
|
dropdownIcon: ForwardRef$Q,
|
|
@@ -887,6 +938,8 @@ const countIndicatorSettings = {
|
|
|
887
938
|
},
|
|
888
939
|
};
|
|
889
940
|
const dataTableSettings = {
|
|
941
|
+
renderPlaceholder: (props) => React__default.createElement(Text, { size: props.rowSize },
|
|
942
|
+
React__default.createElement(TextPlaceholder, null)),
|
|
890
943
|
icons: {
|
|
891
944
|
emptyTable: ForwardRef$J,
|
|
892
945
|
header: {
|
|
@@ -1074,6 +1127,8 @@ const paginatorSettings = {
|
|
|
1074
1127
|
},
|
|
1075
1128
|
};
|
|
1076
1129
|
const pickerInputSettings = {
|
|
1130
|
+
renderPlaceholder: (props) => React__default.createElement(Text, { size: props.rowSize },
|
|
1131
|
+
React__default.createElement(TextPlaceholder, null)),
|
|
1077
1132
|
icons: {
|
|
1078
1133
|
toggler: {
|
|
1079
1134
|
clearIcon: ForwardRef$R,
|
|
@@ -1140,6 +1195,9 @@ const pickerInputSettings = {
|
|
|
1140
1195
|
mobileFooterLinkButton: '48',
|
|
1141
1196
|
mobileRow: '48',
|
|
1142
1197
|
mobileSearchInput: '48',
|
|
1198
|
+
getSearchSize: ({ pickerSize }) => {
|
|
1199
|
+
return pickerSize;
|
|
1200
|
+
},
|
|
1143
1201
|
},
|
|
1144
1202
|
},
|
|
1145
1203
|
};
|
|
@@ -1238,11 +1296,15 @@ const textInputSettings = {
|
|
|
1238
1296
|
default: '36',
|
|
1239
1297
|
},
|
|
1240
1298
|
};
|
|
1299
|
+
const blockerSettings = {
|
|
1300
|
+
renderSpinner: () => React__default.createElement(Spinner, null),
|
|
1301
|
+
};
|
|
1241
1302
|
const settings = {
|
|
1242
1303
|
accordion: accordionSettings,
|
|
1243
1304
|
alert: alertSettings,
|
|
1244
1305
|
badge: badgeSettings,
|
|
1245
1306
|
button: buttonSettings,
|
|
1307
|
+
blocker: blockerSettings,
|
|
1246
1308
|
checkbox: checkboxSettings,
|
|
1247
1309
|
countIndicator: countIndicatorSettings,
|
|
1248
1310
|
dataTable: dataTableSettings,
|
|
@@ -1272,11 +1334,11 @@ const settings = {
|
|
|
1272
1334
|
textInput: textInputSettings,
|
|
1273
1335
|
};
|
|
1274
1336
|
|
|
1275
|
-
var css$
|
|
1337
|
+
var css$1u = {"root":"RGCmoj"};
|
|
1276
1338
|
|
|
1277
1339
|
function applyButtonMods(mods) {
|
|
1278
1340
|
return [
|
|
1279
|
-
css$
|
|
1341
|
+
css$1u.root,
|
|
1280
1342
|
'uui-button',
|
|
1281
1343
|
`uui-fill-${mods.fill || 'solid'}`,
|
|
1282
1344
|
`uui-color-${mods.color || 'primary'}`,
|
|
@@ -1290,10 +1352,10 @@ const Button = /* @__PURE__ */withMods(uuiComponents.Button, applyButtonMods, ()
|
|
|
1290
1352
|
};
|
|
1291
1353
|
});
|
|
1292
1354
|
|
|
1293
|
-
var css$
|
|
1355
|
+
var css$1t = {"root":"af51dx"};
|
|
1294
1356
|
|
|
1295
1357
|
function applyIconButtonMods(props) {
|
|
1296
|
-
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$
|
|
1358
|
+
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$1t.root];
|
|
1297
1359
|
}
|
|
1298
1360
|
const IconButton = /* @__PURE__ */withMods(uuiComponents.IconButton, applyIconButtonMods, (props) => {
|
|
1299
1361
|
const isDeprecated = ['info', 'success', 'error', 'warning'].includes(props.color);
|
|
@@ -1327,7 +1389,7 @@ function getIconClass(props) {
|
|
|
1327
1389
|
return [classList['has-left-icon'] ? 'uui-has-left-icon' : 'uui-no-left-icon', classList['has-right-icon'] ? 'uui-has-right-icon' : 'uui-no-right-icon'];
|
|
1328
1390
|
}
|
|
1329
1391
|
|
|
1330
|
-
var css$
|
|
1392
|
+
var css$1s = {"root":"zoHJ0E"};
|
|
1331
1393
|
|
|
1332
1394
|
const DEFAULT_COLOR = 'primary';
|
|
1333
1395
|
const LinkButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
@@ -1342,7 +1404,7 @@ const LinkButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1342
1404
|
}
|
|
1343
1405
|
const rootStyles = [
|
|
1344
1406
|
'uui-link_button',
|
|
1345
|
-
css$
|
|
1407
|
+
css$1s.root,
|
|
1346
1408
|
`uui-size-${props.size || settings.linkButton.sizes.default}`,
|
|
1347
1409
|
...getIconClass(props),
|
|
1348
1410
|
`uui-color-${props.color || DEFAULT_COLOR}`,
|
|
@@ -1357,11 +1419,11 @@ const LinkButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1357
1419
|
props.isDropdown && (React.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
1358
1420
|
});
|
|
1359
1421
|
|
|
1360
|
-
var css$
|
|
1422
|
+
var css$1r = {"root":"hfZNzs"};
|
|
1361
1423
|
|
|
1362
1424
|
const CountIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
1363
1425
|
return (React__default.createElement("div", { ref: ref, className: cx([
|
|
1364
|
-
css$
|
|
1426
|
+
css$1r.root,
|
|
1365
1427
|
'uui-count_indicator',
|
|
1366
1428
|
`uui-size-${props.size || settings.countIndicator.sizes.default}`,
|
|
1367
1429
|
props.color && `uui-color-${props.color}`,
|
|
@@ -1369,11 +1431,11 @@ const CountIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
|
1369
1431
|
]) }, props.caption));
|
|
1370
1432
|
});
|
|
1371
1433
|
|
|
1372
|
-
var css$
|
|
1434
|
+
var css$1q = {"root":"rwt5yG","withNotify":"_7LMflq"};
|
|
1373
1435
|
|
|
1374
1436
|
const TabButton = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
1375
1437
|
const styles = [
|
|
1376
|
-
css$
|
|
1438
|
+
css$1q.root,
|
|
1377
1439
|
'uui-tab-button',
|
|
1378
1440
|
`uui-size-${props.size || settings.tabButton.sizes.default}`,
|
|
1379
1441
|
...getIconClass(props),
|
|
@@ -1390,27 +1452,27 @@ const TabButton = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
1390
1452
|
props.icon && props.iconPosition !== 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1391
1453
|
(props.caption || props.withNotify) && (React__default.createElement("div", { className: cx$1(uuiElement.caption) },
|
|
1392
1454
|
props.caption,
|
|
1393
|
-
props.withNotify && React__default.createElement("div", { className: css$
|
|
1455
|
+
props.withNotify && React__default.createElement("div", { className: css$1q.withNotify }))),
|
|
1394
1456
|
props.icon && props.iconPosition === 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1395
1457
|
props.count !== undefined && props.count !== null && (React__default.createElement(CountIndicator, { color: "neutral", size: settings.tabButton.sizes.countIndicatorMap[props.size || settings.tabButton.sizes.default], caption: props.count })),
|
|
1396
1458
|
props.isDropdown && (React__default.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
1397
1459
|
props.onClear && !props.isDisabled && (React__default.createElement(IconContainer, { cx: uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
1398
1460
|
});
|
|
1399
1461
|
|
|
1400
|
-
var css$
|
|
1462
|
+
var css$1p = {"root":"yWUdk0"};
|
|
1401
1463
|
|
|
1402
1464
|
function applyVerticalTabButtonMods() {
|
|
1403
|
-
return [css$
|
|
1465
|
+
return [css$1p.root, 'uui-vertical-tab-button'];
|
|
1404
1466
|
}
|
|
1405
1467
|
const VerticalTabButton = /* @__PURE__ */withMods(TabButton, applyVerticalTabButtonMods);
|
|
1406
1468
|
|
|
1407
|
-
var css$
|
|
1469
|
+
var css$1o = {"root":"_4wLfSU"};
|
|
1408
1470
|
|
|
1409
1471
|
function applyCheckboxMods(mods) {
|
|
1410
1472
|
return [
|
|
1411
|
-
css$
|
|
1473
|
+
css$1o.root,
|
|
1412
1474
|
`uui-size-${mods.size || settings.checkbox.sizes.default}`,
|
|
1413
|
-
|
|
1475
|
+
'uui-control-mode-' + (mods.mode || 'form'),
|
|
1414
1476
|
'uui-color-primary',
|
|
1415
1477
|
];
|
|
1416
1478
|
}
|
|
@@ -1422,11 +1484,11 @@ const applyUUICheckboxProps = (props) => {
|
|
|
1422
1484
|
};
|
|
1423
1485
|
const Checkbox = /* @__PURE__ */withMods(uuiComponents.Checkbox, applyCheckboxMods, applyUUICheckboxProps);
|
|
1424
1486
|
|
|
1425
|
-
var css$
|
|
1487
|
+
var css$1n = {"root":"HroqD6"};
|
|
1426
1488
|
|
|
1427
1489
|
function applyRadioInputMods(mods) {
|
|
1428
1490
|
return [
|
|
1429
|
-
css$
|
|
1491
|
+
css$1n.root,
|
|
1430
1492
|
`uui-size-${mods.size || settings.radioInput.sizes.default}`,
|
|
1431
1493
|
'uui-radio-input-container',
|
|
1432
1494
|
'uui-color-primary',
|
|
@@ -1434,11 +1496,11 @@ function applyRadioInputMods(mods) {
|
|
|
1434
1496
|
}
|
|
1435
1497
|
const RadioInput = /* @__PURE__ */withMods(RadioInput$1, applyRadioInputMods, (props) => ({ icon: props.icon ? props.icon : settings.radioInput.icons.dotIcon }));
|
|
1436
1498
|
|
|
1437
|
-
var css$
|
|
1499
|
+
var css$1m = {"root":"-SQe-0"};
|
|
1438
1500
|
|
|
1439
1501
|
function applySwitchMods(mods) {
|
|
1440
1502
|
return [
|
|
1441
|
-
css$
|
|
1503
|
+
css$1m.root,
|
|
1442
1504
|
`uui-size-${mods.size || settings.switch.sizes.default}`,
|
|
1443
1505
|
'uui-color-primary',
|
|
1444
1506
|
];
|
|
@@ -1458,14 +1520,14 @@ var EditMode;
|
|
|
1458
1520
|
EditMode["INLINE"] = "inline";
|
|
1459
1521
|
})(EditMode || (EditMode = {}));
|
|
1460
1522
|
|
|
1461
|
-
var textInputCss = {"root":"
|
|
1523
|
+
var textInputCss = {"root":"BLuLu4"};
|
|
1462
1524
|
|
|
1463
1525
|
const DEFAULT_MODE$3 = EditMode.FORM;
|
|
1464
1526
|
function applyTextInputMods(mods) {
|
|
1465
1527
|
return [
|
|
1466
1528
|
textInputCss.root,
|
|
1467
1529
|
`uui-size-${mods.size || settings.textInput.sizes.default}`,
|
|
1468
|
-
|
|
1530
|
+
'uui-control-mode-' + (mods.mode || DEFAULT_MODE$3),
|
|
1469
1531
|
];
|
|
1470
1532
|
}
|
|
1471
1533
|
const TextInput = /* @__PURE__ */withMods(TextInput$1, applyTextInputMods, () => ({
|
|
@@ -1483,9 +1545,9 @@ const SearchInput = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
1483
1545
|
} }));
|
|
1484
1546
|
});
|
|
1485
1547
|
|
|
1486
|
-
var css$
|
|
1548
|
+
var css$1l = {"root":"v6IAk-"};
|
|
1487
1549
|
|
|
1488
|
-
const ControlGroup = /* @__PURE__ */withMods(ControlGroup$1, () => [css$
|
|
1550
|
+
const ControlGroup = /* @__PURE__ */withMods(ControlGroup$1, () => [css$1l.root, 'uui-control-group']);
|
|
1489
1551
|
|
|
1490
1552
|
function MultiSwitchComponent(props, ref) {
|
|
1491
1553
|
return (React.createElement(ControlGroup, { ref: ref, rawProps: {
|
|
@@ -1499,15 +1561,15 @@ function MultiSwitchComponent(props, ref) {
|
|
|
1499
1561
|
}
|
|
1500
1562
|
const MultiSwitch = /* @__PURE__ */React.forwardRef(MultiSwitchComponent);
|
|
1501
1563
|
|
|
1502
|
-
var css$
|
|
1564
|
+
var css$1k = {"root":"X-aUTq"};
|
|
1503
1565
|
|
|
1504
1566
|
const DEFAULT_MODE$2 = EditMode.FORM;
|
|
1505
1567
|
function applyNumericInputMods(mods) {
|
|
1506
1568
|
return [
|
|
1507
1569
|
textInputCss.root,
|
|
1508
|
-
css$
|
|
1570
|
+
css$1k.root,
|
|
1509
1571
|
`uui-size-${mods.size || settings.numericInput.sizes.default}`,
|
|
1510
|
-
|
|
1572
|
+
'uui-control-mode-' + (mods.mode || DEFAULT_MODE$2),
|
|
1511
1573
|
];
|
|
1512
1574
|
}
|
|
1513
1575
|
const NumericInput = /* @__PURE__ */withMods(NumericInput$1, applyNumericInputMods, (props) => {
|
|
@@ -1519,15 +1581,15 @@ const NumericInput = /* @__PURE__ */withMods(NumericInput$1, applyNumericInputMo
|
|
|
1519
1581
|
};
|
|
1520
1582
|
});
|
|
1521
1583
|
|
|
1522
|
-
var css$
|
|
1584
|
+
var css$1j = {"root":"UYZaLu"};
|
|
1523
1585
|
|
|
1524
1586
|
const DEFAULT_MODE$1 = EditMode.FORM;
|
|
1525
1587
|
function applyTextAreaMods(mods) {
|
|
1526
1588
|
return [
|
|
1527
|
-
css$
|
|
1589
|
+
css$1j.root,
|
|
1528
1590
|
'uui-textarea',
|
|
1529
1591
|
'uui-size-' + (mods.size || settings.textArea.sizes.default),
|
|
1530
|
-
|
|
1592
|
+
'uui-control-mode-' + (mods.mode || DEFAULT_MODE$1),
|
|
1531
1593
|
];
|
|
1532
1594
|
}
|
|
1533
1595
|
const TextArea = /* @__PURE__ */withMods(TextArea$1, applyTextAreaMods, (props) => {
|
|
@@ -1560,17 +1622,17 @@ function TREE_SHAKEABLE_INIT$1() {
|
|
|
1560
1622
|
};
|
|
1561
1623
|
}
|
|
1562
1624
|
|
|
1563
|
-
var css$
|
|
1625
|
+
var css$1i = {"root":"_7iW3Pa","main-path":"_5g3WUo","mainPath":"_5g3WUo","content-wrapper":"bR2eks","contentWrapper":"bR2eks","content":"hpLMgH","action-wrapper":"oKFEmM","actionWrapper":"oKFEmM","icon-wrapper":"JXzT-o","iconWrapper":"JXzT-o","icon":"_7s7UKs","close-icon":"FDAtBk","closeIcon":"FDAtBk"};
|
|
1564
1626
|
|
|
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$
|
|
1627
|
+
const Alert = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement("div", { role: "alert", ref: ref, className: cx('uui-alert', css$1i.root, props.color && `uui-color-${props.color}`, props.cx, `uui-size-${props.size || settings.alert.sizes.default}`), ...props.rawProps },
|
|
1628
|
+
React.createElement("div", { className: css$1i.mainPath },
|
|
1629
|
+
React.createElement("div", { className: css$1i.contentWrapper },
|
|
1630
|
+
props.icon && (React.createElement("div", { className: css$1i.iconWrapper },
|
|
1631
|
+
React.createElement(IconContainer, { icon: props.icon, cx: css$1i.icon }))),
|
|
1632
|
+
React.createElement("div", { className: css$1i.content },
|
|
1571
1633
|
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$
|
|
1634
|
+
props.actions && (React.createElement("div", { className: css$1i.actionWrapper }, props.actions.map((action) => (React.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$1i.actionLink, size: settings.alert.sizes.actionMap[props.size || settings.alert.sizes.default] }))))))),
|
|
1635
|
+
props.onClose && React.createElement(IconButton, { icon: settings.alert.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$1i.closeIcon })))));
|
|
1574
1636
|
const WarningAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, { icon: settings.alert.icons.warningIcon, color: "warning", ref: ref, ...props }));
|
|
1575
1637
|
const SuccessAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, { icon: settings.alert.icons.successIcon, color: "success", ref: ref, ...props }));
|
|
1576
1638
|
const HintAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, { icon: settings.alert.icons.infoIcon, color: "info", ref: ref, ...props }));
|
|
@@ -1578,18 +1640,18 @@ const ErrorAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createE
|
|
|
1578
1640
|
|
|
1579
1641
|
const Dropdown = /* @__PURE__ */withMods(Dropdown$1);
|
|
1580
1642
|
|
|
1581
|
-
var css$
|
|
1643
|
+
var css$1h = {"root":"feGmZN"};
|
|
1582
1644
|
|
|
1583
1645
|
function applyDropdownContainerMods(mods) {
|
|
1584
1646
|
return [
|
|
1585
|
-
css$
|
|
1647
|
+
css$1h.root,
|
|
1586
1648
|
mods.vPadding && `vPadding-${mods.vPadding}`,
|
|
1587
1649
|
mods.padding && `padding-${mods.padding}`,
|
|
1588
1650
|
];
|
|
1589
1651
|
}
|
|
1590
1652
|
const DropdownContainer = /* @__PURE__ */withMods(uuiComponents.DropdownContainer, applyDropdownContainerMods);
|
|
1591
1653
|
|
|
1592
|
-
var css$
|
|
1654
|
+
var css$1g = {"submenu-root-item-rtl":"DmYcX6","submenuRootItemRtl":"DmYcX6","icon-after":"Mq6Qep","iconAfter":"Mq6Qep","submenu-root-item":"-KlPL-","submenuRootItem":"-KlPL-","icon-check":"wbivRt","iconCheck":"wbivRt","splitter-root":"gvd2D-","splitterRoot":"gvd2D-","splitter":"ZJRQ35","header-root":"B2r6Uc","headerRoot":"B2r6Uc","item-root":"Xjd57P","itemRoot":"Xjd57P","icon":"dkm6bb","link":"qE9QU9","indent":"QqxbDr","selected-mark":"xfIBEO","selectedMark":"xfIBEO"};
|
|
1593
1655
|
|
|
1594
1656
|
var IDropdownControlKeys;
|
|
1595
1657
|
(function (IDropdownControlKeys) {
|
|
@@ -1654,29 +1716,29 @@ const DropdownMenuButton = /* @__PURE__ */React__default.forwardRef((props, ref)
|
|
|
1654
1716
|
const getMenuButtonContent = () => {
|
|
1655
1717
|
const isIconBefore = Boolean(icon && iconPosition !== 'right');
|
|
1656
1718
|
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$
|
|
1719
|
+
const iconElement = (React__default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: cx$1(css$1g.icon, iconPosition === 'right' ? css$1g.iconAfter : css$1g.iconBefore) }));
|
|
1658
1720
|
return (React__default.createElement(React__default.Fragment, null,
|
|
1659
1721
|
isIconBefore && iconElement,
|
|
1660
|
-
React__default.createElement(Text$1, { cx: props.indent && css$
|
|
1722
|
+
React__default.createElement(Text$1, { cx: props.indent && css$1g.indent }, caption),
|
|
1661
1723
|
isIconAfter && (React__default.createElement(React__default.Fragment, null,
|
|
1662
1724
|
React__default.createElement(FlexSpacer, null),
|
|
1663
1725
|
iconElement))));
|
|
1664
1726
|
};
|
|
1665
1727
|
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$
|
|
1728
|
+
const itemClassNames = cx$1(props.cx, css$1g.itemRoot, isDisabled && uuiMod.disabled, isActive && uuiMod.active, isOpen && uuiMod.opened, (!isDisabled && onClick) && uuiMarkers.clickable);
|
|
1729
|
+
return isAnchor ? (React__default.createElement(Anchor$1, { cx: cx$1(css$1g.link, itemClassNames), link: link, href: href, rawProps: { role: 'menuitem', tabIndex: isDisabled ? -1 : 0 }, onClick: handleClick, isLinkActive: isActive, isDisabled: isDisabled, target: target }, getMenuButtonContent())) : (React__default.createElement("div", { tabIndex: isDisabled ? -1 : 0, role: "menuitem", onKeyDown: isDisabled ? null : handleOpenDropdown, className: itemClassNames, onClick: handleClick, ref: ref },
|
|
1668
1730
|
getMenuButtonContent(),
|
|
1669
1731
|
isSelected && (React__default.createElement(React__default.Fragment, null,
|
|
1670
1732
|
React__default.createElement(FlexSpacer, null),
|
|
1671
|
-
React__default.createElement(IconContainer, { icon: settings.dropdownMenu.icons.acceptIcon, cx: css$
|
|
1733
|
+
React__default.createElement(IconContainer, { icon: settings.dropdownMenu.icons.acceptIcon, cx: css$1g.selectedMark })))));
|
|
1672
1734
|
});
|
|
1673
1735
|
function DropdownMenuSplitter(props) {
|
|
1674
|
-
return (React__default.createElement("div", { className: cx$1(props.cx, css$
|
|
1675
|
-
React__default.createElement("hr", { className: css$
|
|
1736
|
+
return (React__default.createElement("div", { className: cx$1(props.cx, css$1g.splitterRoot) },
|
|
1737
|
+
React__default.createElement("hr", { className: css$1g.splitter })));
|
|
1676
1738
|
}
|
|
1677
1739
|
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$
|
|
1740
|
+
return (React__default.createElement("div", { className: cx$1('uui-dropdown-menu-header', props.cx, css$1g.headerRoot) },
|
|
1741
|
+
React__default.createElement("span", { className: css$1g.header }, props.caption)));
|
|
1680
1742
|
}
|
|
1681
1743
|
function DropdownSubMenu(props) {
|
|
1682
1744
|
const subMenuModifiers = [
|
|
@@ -1696,7 +1758,7 @@ function DropdownSubMenu(props) {
|
|
|
1696
1758
|
},
|
|
1697
1759
|
];
|
|
1698
1760
|
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$
|
|
1761
|
+
return (React__default.createElement(Dropdown$1, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", openDelay: 400, closeDelay: 400, placement: isRtl ? 'left-start' : 'right-start', modifiers: subMenuModifiers, renderBody: (dropdownProps) => !props.isDisabled && (React__default.createElement(DropdownMenuBody, { closeOnKey: IDropdownControlKeys.LEFT_ARROW, ...props, ...dropdownProps })), renderTarget: ({ toggleDropdownOpening, ...targetProps }) => (React__default.createElement(DropdownMenuButton, { cx: cx$1(isRtl ? css$1g.submenuRootItemRtl : css$1g.submenuRootItem), icon: settings.dropdownMenu.icons.dropdownIcon, iconPosition: "right", isDropdown: true, toggleDropdownOpening: toggleDropdownOpening, ...props, ...targetProps })) }));
|
|
1700
1762
|
}
|
|
1701
1763
|
function DropdownMenuSwitchButton(props) {
|
|
1702
1764
|
const context = useContext(UuiContext);
|
|
@@ -1712,29 +1774,29 @@ function DropdownMenuSwitchButton(props) {
|
|
|
1712
1774
|
onHandleValueChange(!isSelected);
|
|
1713
1775
|
}
|
|
1714
1776
|
};
|
|
1715
|
-
return (React__default.createElement("div", { className: cx$1(props.cx, css$
|
|
1716
|
-
icon && React__default.createElement(IconContainer, { icon: icon, cx: css$
|
|
1777
|
+
return (React__default.createElement("div", { className: cx$1(props.cx, css$1g.itemRoot, isDisabled && uuiMod.disabled, (!isDisabled || onValueChange) && uuiMarkers.clickable), onClick: () => onHandleValueChange(!isSelected), role: "menuitem", onKeyDown: handleKeySelect, tabIndex: isDisabled ? -1 : 0 },
|
|
1778
|
+
icon && React__default.createElement(IconContainer, { icon: icon, cx: css$1g.iconBefore }),
|
|
1717
1779
|
React__default.createElement(Text$1, null, caption),
|
|
1718
1780
|
React__default.createElement(FlexSpacer, null),
|
|
1719
1781
|
React__default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
1720
1782
|
}
|
|
1721
1783
|
|
|
1722
|
-
var css$
|
|
1784
|
+
var css$1f = {"root":"_5CvukL","mode-block":"_28n9FZ","modeBlock":"_28n9FZ","mode-inline":"hVIEP5","modeInline":"hVIEP5","padding-0":"MKk4Gy","padding0":"MKk4Gy","padding-6":"uGECOy","padding6":"uGECOy","padding-12":"xRQRMa","padding12":"xRQRMa","padding-18":"gDwGMD","padding18":"gDwGMD"};
|
|
1723
1785
|
|
|
1724
1786
|
function applyAccordionMods(mods) {
|
|
1725
1787
|
return [
|
|
1726
|
-
css$
|
|
1727
|
-
css$
|
|
1728
|
-
mods.padding && css$
|
|
1788
|
+
css$1f.root,
|
|
1789
|
+
css$1f[`mode-${mods.mode || 'block'}`],
|
|
1790
|
+
mods.padding && css$1f['padding-' + mods.padding],
|
|
1729
1791
|
];
|
|
1730
1792
|
}
|
|
1731
1793
|
const Accordion = /* @__PURE__ */withMods(uuiComponents.Accordion, applyAccordionMods, (mods) => ({
|
|
1732
1794
|
dropdownIcon: mods.dropdownIcon !== null && settings.accordion.icons.dropdownIcon,
|
|
1733
1795
|
}));
|
|
1734
1796
|
|
|
1735
|
-
var css$
|
|
1797
|
+
var css$1e = {"root":"k8eeDw","align-items":"daLVSl","alignItems":"daLVSl","justify-content":"nYGpTT","justifyContent":"nYGpTT","border-top":"e2yK2g","borderTop":"e2yK2g","border-bottom":"KIzQ2i","borderBottom":"KIzQ2i","top-shadow":"qvMvLs","topShadow":"qvMvLs","padding":"p-tw1R","margin":"JXAIe5","vPadding":"rgs9OV","column-gap":"ZkBNgw","columnGap":"ZkBNgw","row-gap":"_5DVR0F","rowGap":"_5DVR0F","spacing":"gI2k8g"};
|
|
1736
1798
|
|
|
1737
|
-
const FlexCell = /* @__PURE__ */withMods(FlexCell$1, () => [css$
|
|
1799
|
+
const FlexCell = /* @__PURE__ */withMods(FlexCell$1, () => [css$1e.flexCell]);
|
|
1738
1800
|
|
|
1739
1801
|
const FlexRow = /* @__PURE__ */forwardRef((props, ref) => {
|
|
1740
1802
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -1743,23 +1805,23 @@ const FlexRow = /* @__PURE__ */forwardRef((props, ref) => {
|
|
|
1743
1805
|
}
|
|
1744
1806
|
}
|
|
1745
1807
|
const classNames = cx$1([
|
|
1746
|
-
css$
|
|
1808
|
+
css$1e.root,
|
|
1747
1809
|
'uui-flex-row',
|
|
1748
1810
|
props.onClick && uuiMarkers.clickable,
|
|
1749
1811
|
props.cx,
|
|
1750
1812
|
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 &&
|
|
1813
|
+
props.alignItems && css$1e.alignItems,
|
|
1814
|
+
props.justifyContent && css$1e.justifyContent,
|
|
1815
|
+
props.padding && css$1e.padding,
|
|
1816
|
+
props.vPadding && css$1e.vPadding,
|
|
1817
|
+
props.margin && css$1e.margin,
|
|
1818
|
+
props.topShadow && css$1e.topShadow,
|
|
1819
|
+
props.borderBottom && css$1e.borderBottom,
|
|
1820
|
+
props.borderTop && css$1e.borderTop,
|
|
1821
|
+
props.columnGap && css$1e.columnGap,
|
|
1822
|
+
props.rowGap && css$1e.rowGap,
|
|
1823
|
+
props.spacing && css$1e.spacing,
|
|
1824
|
+
props.background && `uui-flex-row-bg-${props.background}`,
|
|
1763
1825
|
]);
|
|
1764
1826
|
const style = {
|
|
1765
1827
|
...(props.alignItems && { '--uui-flex-row-align-items': props.alignItems }),
|
|
@@ -1777,32 +1839,32 @@ const FlexRow = /* @__PURE__ */forwardRef((props, ref) => {
|
|
|
1777
1839
|
} }, props.children));
|
|
1778
1840
|
});
|
|
1779
1841
|
|
|
1780
|
-
var css$
|
|
1842
|
+
var css$1d = {"root":"ogt-u1","margin-24":"GbuoP4","margin24":"GbuoP4","padding-12":"CN3JPv","padding12":"CN3JPv","padding-24":"r-6a2s","padding24":"r-6a2s","shadow":"_7c6l7H","uui-surface-main":"GE-60F","uuiSurfaceMain":"GE-60F"};
|
|
1781
1843
|
|
|
1782
1844
|
const Panel = /* @__PURE__ */withMods(VPanel, (props) => [
|
|
1783
1845
|
'uui-panel',
|
|
1784
|
-
css$
|
|
1785
|
-
props.shadow && css$
|
|
1786
|
-
props.margin && css$
|
|
1787
|
-
props.background && css$
|
|
1846
|
+
css$1d.root,
|
|
1847
|
+
props.shadow && css$1d.shadow,
|
|
1848
|
+
props.margin && css$1d['margin-' + props.margin],
|
|
1849
|
+
props.background && css$1d[`uui-${props.background}`],
|
|
1788
1850
|
]);
|
|
1789
1851
|
|
|
1790
|
-
var css$
|
|
1852
|
+
var css$1c = {"root":"_3OCjZu"};
|
|
1791
1853
|
|
|
1792
1854
|
function applyTooltipMods(mods) {
|
|
1793
1855
|
return [
|
|
1794
|
-
css$
|
|
1856
|
+
css$1c.root,
|
|
1795
1857
|
`uui-color-${mods.color || 'inverted'}`,
|
|
1796
1858
|
];
|
|
1797
1859
|
}
|
|
1798
1860
|
const Tooltip = /* @__PURE__ */withMods(uuiComponents.Tooltip, applyTooltipMods);
|
|
1799
1861
|
|
|
1800
|
-
var css$
|
|
1862
|
+
var css$1b = {"root":"yCRUhW"};
|
|
1801
1863
|
|
|
1802
1864
|
function applyLabeledInputMods(mods) {
|
|
1803
1865
|
return [
|
|
1804
1866
|
'uui-labeled-input',
|
|
1805
|
-
css$
|
|
1867
|
+
css$1b.root,
|
|
1806
1868
|
'uui-size-' + (mods.size || settings.labeledInput.sizes.default),
|
|
1807
1869
|
];
|
|
1808
1870
|
}
|
|
@@ -1814,7 +1876,7 @@ function applyLabeledInputProps(props) {
|
|
|
1814
1876
|
}
|
|
1815
1877
|
const LabeledInput = /* @__PURE__ */withMods(uuiComponents.LabeledInput, applyLabeledInputMods, applyLabeledInputProps);
|
|
1816
1878
|
|
|
1817
|
-
var css$
|
|
1879
|
+
var css$1a = {"root":"Qmr9zU"};
|
|
1818
1880
|
|
|
1819
1881
|
function RadioGroup(props) {
|
|
1820
1882
|
const direction = props.direction || 'vertical';
|
|
@@ -1823,175 +1885,26 @@ function RadioGroup(props) {
|
|
|
1823
1885
|
props.onValueChange(newVal);
|
|
1824
1886
|
}
|
|
1825
1887
|
};
|
|
1826
|
-
return (React.createElement("fieldset", { ref: props.forwardedRef, className: cx$1(css$
|
|
1888
|
+
return (React.createElement("fieldset", { ref: props.forwardedRef, className: cx$1(css$1a.root, directionMode[direction], props.cx), onFocus: props.onFocus, onBlur: props.onBlur, ...props.rawProps }, props.items.map((i) => {
|
|
1827
1889
|
const { id, name, renderName, ...restItemProps } = i;
|
|
1828
1890
|
return (React.createElement(RadioInput, { name: props.name, renderLabel: i.renderName ? i.renderName : () => i.name, value: props.value === i.id, onValueChange: () => handleChange(i.id), isDisabled: props.isDisabled || i.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, isRequired: props.isRequired, key: i.id.toString(), size: props.size || i.size, ...restItemProps }));
|
|
1829
1891
|
})));
|
|
1830
1892
|
}
|
|
1831
1893
|
|
|
1832
|
-
var css$
|
|
1894
|
+
var css$19 = {"root":"_6Y4M76"};
|
|
1833
1895
|
|
|
1834
1896
|
function applyScrollBarsMods() {
|
|
1835
1897
|
return [
|
|
1836
|
-
css$
|
|
1898
|
+
css$19.root, 'uui-scroll-bars', 'uui-shadow-top', 'uui-shadow-bottom',
|
|
1837
1899
|
];
|
|
1838
1900
|
}
|
|
1839
1901
|
const ScrollBars = /* @__PURE__ */withMods(ScrollBars$1, applyScrollBarsMods);
|
|
1840
1902
|
|
|
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
|
-
});
|
|
1903
|
+
var css$18 = {"scroll-container":"_-7Dxnn","scrollContainer":"_-7Dxnn","list-container":"mqyIKD","listContainer":"mqyIKD"};
|
|
1955
1904
|
|
|
1956
|
-
var css$
|
|
1905
|
+
var css$17 = {"root":"bLzBZM"};
|
|
1957
1906
|
|
|
1958
|
-
const
|
|
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
|
-
}
|
|
1991
|
-
|
|
1992
|
-
var css$11 = {"root":"Mkd0ey"};
|
|
1993
|
-
|
|
1994
|
-
const Blocker = /* @__PURE__ */withMods(Blocker$1, () => [css$11.root], (cmpProps) => ({ renderSpinner: cmpProps.renderSpinner || (() => React__default.createElement(Spinner, null)) }));
|
|
1907
|
+
const Blocker = /* @__PURE__ */withMods(Blocker$1, () => [css$17.root], () => ({ renderSpinner: settings.blocker.renderSpinner }));
|
|
1995
1908
|
|
|
1996
1909
|
const VirtualList = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1997
1910
|
const { listContainerRef, offsetY, handleScroll, estimatedHeight, scrollContainerRef, } = useVirtualList({
|
|
@@ -2005,7 +1918,7 @@ const VirtualList = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
2005
1918
|
const scrollShadows = useScrollShadows({ root: scrollContainerRef.current });
|
|
2006
1919
|
const renderRows = () => props.renderRows?.({
|
|
2007
1920
|
listContainerRef, estimatedHeight, offsetY, scrollShadows,
|
|
2008
|
-
}) || (React.createElement("div", { className: css$
|
|
1921
|
+
}) || (React.createElement("div", { className: css$18.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
2009
1922
|
React.createElement("div", { ref: listContainerRef, role: props.role, style: { marginTop: offsetY } }, props.rows)));
|
|
2010
1923
|
const renderView = ({ style }) => (React.createElement(VirtualListView, { isLoading: props.isLoading, style: style, rawProps: props.rawProps }));
|
|
2011
1924
|
const scrollBarsRef = React.useCallback((scrollbars) => {
|
|
@@ -2013,7 +1926,7 @@ const VirtualList = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
2013
1926
|
return;
|
|
2014
1927
|
scrollContainerRef.current = scrollbars.container.firstChild;
|
|
2015
1928
|
}, []);
|
|
2016
|
-
return (React.createElement(ScrollBars, { cx: cx$1(css$
|
|
1929
|
+
return (React.createElement(ScrollBars, { cx: cx$1(css$18.scrollContainer, props.cx, {
|
|
2017
1930
|
[uuiMarkers.scrolledLeft]: scrollShadows.horizontalLeft,
|
|
2018
1931
|
[uuiMarkers.scrolledRight]: scrollShadows.horizontalRight,
|
|
2019
1932
|
[uuiMarkers.scrolledTop]: scrollShadows.verticalTop,
|
|
@@ -2035,7 +1948,7 @@ const VirtualListView = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
2035
1948
|
React.createElement(Blocker, { isEnabled: props.isLoading })));
|
|
2036
1949
|
});
|
|
2037
1950
|
|
|
2038
|
-
var css$
|
|
1951
|
+
var css$16 = {"root":"HOtXGZ"};
|
|
2039
1952
|
|
|
2040
1953
|
function CheckboxGroup(props) {
|
|
2041
1954
|
const currentValue = props.value || [];
|
|
@@ -2051,16 +1964,16 @@ function CheckboxGroup(props) {
|
|
|
2051
1964
|
}
|
|
2052
1965
|
props.onValueChange(newSelection);
|
|
2053
1966
|
};
|
|
2054
|
-
return (React.createElement("fieldset", { ref: props.forwardedRef, className: cx$1(css$
|
|
1967
|
+
return (React.createElement("fieldset", { ref: props.forwardedRef, className: cx$1(css$16.root, directionMode[direction], props.cx), ...props.rawProps }, props.items.map((i) => {
|
|
2055
1968
|
const { id, name, renderName, ...restItemProps } = i;
|
|
2056
1969
|
return (React.createElement(Checkbox, { renderLabel: i.renderName ? i.renderName : () => i.name, value: currentValue.indexOf(i.id) !== -1, onValueChange: (selected) => handleChange(selected, i.id), isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, isRequired: props.isRequired, key: i.id.toString(), size: props.size || i.size, ...restItemProps }));
|
|
2057
1970
|
})));
|
|
2058
1971
|
}
|
|
2059
1972
|
|
|
2060
|
-
var css
|
|
1973
|
+
var css$15 = {"root":"a7DcZQ","modal-blocker":"Pi64Ya","modalBlocker":"Pi64Ya","animateModalBlocker":"tZG-m2","modal":"_0DpMKi","modal-footer":"mIM3os","modalFooter":"mIM3os","border-top":"w3-ZCQ","borderTop":"w3-ZCQ","modal-header":"jy2jUn","modalHeader":"jy2jUn","border-bottom":"N8TqO5","borderBottom":"N8TqO5"};
|
|
2061
1974
|
|
|
2062
|
-
const ModalBlocker = /* @__PURE__ */withMods(ModalBlocker$1, () => [css
|
|
2063
|
-
const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css
|
|
1975
|
+
const ModalBlocker = /* @__PURE__ */withMods(ModalBlocker$1, () => [css$15.modalBlocker]);
|
|
1976
|
+
const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css$15.root, css$15.modal], (props) => {
|
|
2064
1977
|
const width = props.width;
|
|
2065
1978
|
const height = props.height || 'auto';
|
|
2066
1979
|
const maxHeight = isMobile() ? 'var(--uui-modals-mobile-max-height)' : (props.maxHeight || 'var(--uui-modals-max-height)');
|
|
@@ -2074,7 +1987,7 @@ const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css$$.root, cs
|
|
|
2074
1987
|
};
|
|
2075
1988
|
});
|
|
2076
1989
|
function ModalHeader(props) {
|
|
2077
|
-
return (React__default.createElement("div", { className: cx(css
|
|
1990
|
+
return (React__default.createElement("div", { className: cx(css$15.root, css$15.modalHeader, 'uui-modal-header', props.borderBottom && css$15.borderBottom, props.cx), ...props.rawProps, style: {
|
|
2078
1991
|
...props.rawProps?.style,
|
|
2079
1992
|
} },
|
|
2080
1993
|
props.title && (React__default.createElement("div", { className: cx('uui-modal-title', 'uui-typography') }, props.title)),
|
|
@@ -2084,7 +1997,7 @@ function ModalHeader(props) {
|
|
|
2084
1997
|
React__default.createElement(IconButton, { rawProps: { 'aria-label': 'Close modal' }, icon: settings.modal.icons.closeIcon, onClick: props.onClose })))));
|
|
2085
1998
|
}
|
|
2086
1999
|
function ModalFooter(props) {
|
|
2087
|
-
return (React__default.createElement("div", { className: cx(css
|
|
2000
|
+
return (React__default.createElement("div", { className: cx(css$15.root, css$15.modalFooter, 'uui-modal-footer', props.borderTop && css$15.borderTop, props.cx), ...props.rawProps, style: {
|
|
2088
2001
|
...props.rawProps?.style,
|
|
2089
2002
|
} }, props.children));
|
|
2090
2003
|
}
|
|
@@ -2247,7 +2160,7 @@ const TREE_SHAKEABLE_INIT = () => ({
|
|
|
2247
2160
|
});
|
|
2248
2161
|
const i18n = /* @__PURE__ */TREE_SHAKEABLE_INIT();
|
|
2249
2162
|
|
|
2250
|
-
var css$
|
|
2163
|
+
var css$14 = {"root":"eaSWnB","icon-wrapper":"k73cGX","iconWrapper":"k73cGX","action-wrapper":"_8NnI6l","actionWrapper":"_8NnI6l","action-link":"_4rBhn-","actionLink":"_4rBhn-","close-icon":"c8ShMl","closeIcon":"c8ShMl","main-path":"WtJ4AK","mainPath":"WtJ4AK","content":"Q5D-S7","close-wrapper":"l-JoBd","closeWrapper":"l-JoBd","notification-wrapper":"_8L9GQP","notificationWrapper":"_8L9GQP","clear-button":"cE6rQN","clearButton":"cE6rQN"};
|
|
2251
2164
|
|
|
2252
2165
|
const NotificationCard = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
2253
2166
|
const notificationCardNode = React__default.useRef(null);
|
|
@@ -2260,15 +2173,15 @@ const NotificationCard = /* @__PURE__ */React__default.forwardRef((props, ref) =
|
|
|
2260
2173
|
notificationCardNode.current?.removeEventListener('mouseleave', props.refreshTimer);
|
|
2261
2174
|
};
|
|
2262
2175
|
}, []);
|
|
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$
|
|
2176
|
+
return (React__default.createElement("div", { role: "alert", className: cx('uui-notification_card', props.color && `uui-color-${props.color}`, css$14.root, props.cx), ref: notificationCardNode, ...props.rawProps },
|
|
2177
|
+
React__default.createElement("div", { className: css$14.mainPath },
|
|
2178
|
+
props.icon && (React__default.createElement("div", { className: css$14.iconWrapper },
|
|
2266
2179
|
React__default.createElement(IconContainer, { size: 24, icon: props.icon }))),
|
|
2267
|
-
React__default.createElement("div", { className: css$
|
|
2180
|
+
React__default.createElement("div", { className: css$14.content },
|
|
2268
2181
|
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$
|
|
2182
|
+
props.actions && (React__default.createElement("div", { className: css$14.actionWrapper }, props.actions.map((action) => (React__default.createElement(LinkButton, { key: action.name, caption: action.name, onClick: action.action, cx: css$14.actionLink, size: settings.notificationCard.sizes.action, rawProps: action.rawProps })))))),
|
|
2183
|
+
props.onClose && (React__default.createElement("div", { className: css$14.closeWrapper },
|
|
2184
|
+
React__default.createElement(IconButton, { icon: settings.notificationCard.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$14.closeIcon }))))));
|
|
2272
2185
|
});
|
|
2273
2186
|
const WarningNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, { icon: settings.notificationCard.icons.warningIcon, color: "warning", ...props, ref: ref, cx: props.cx })));
|
|
2274
2187
|
const SuccessNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, { icon: settings.notificationCard.icons.successIcon, color: "success", ...props, ref: ref, cx: props.cx })));
|
|
@@ -2276,11 +2189,11 @@ const HintNotification = /* @__PURE__ */React__default.forwardRef((props, ref) =
|
|
|
2276
2189
|
const ErrorNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, { icon: settings.notificationCard.icons.errorIcon, color: "error", ...props, ref: ref, cx: props.cx })));
|
|
2277
2190
|
function ClearNotification() {
|
|
2278
2191
|
const uuiCtx = useUuiContext();
|
|
2279
|
-
return (React__default.createElement("div", { className: cx(css$
|
|
2192
|
+
return (React__default.createElement("div", { className: cx(css$14.notificationWrapper, css$14.clearButton) },
|
|
2280
2193
|
React__default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => uuiCtx.uuiNotifications.clearAll() })));
|
|
2281
2194
|
}
|
|
2282
2195
|
|
|
2283
|
-
var css$
|
|
2196
|
+
var css$13 = {"footer":"YnEQlR"};
|
|
2284
2197
|
|
|
2285
2198
|
class ConfirmationModal extends React.Component {
|
|
2286
2199
|
render() {
|
|
@@ -2292,7 +2205,7 @@ class ConfirmationModal extends React.Component {
|
|
|
2292
2205
|
React.createElement(ModalWindow, { width: 420 },
|
|
2293
2206
|
React.createElement(ModalHeader, { borderBottom: true, title: this.props.caption, onClose: () => this.props.abort() }),
|
|
2294
2207
|
React.createElement(ScrollBars, null, bodyContent),
|
|
2295
|
-
React.createElement(ModalFooter, { cx: css$
|
|
2208
|
+
React.createElement(ModalFooter, { cx: css$13.footer },
|
|
2296
2209
|
this.props.hideCancelButton || (React.createElement(Button, { caption: i18n.form.modals.discardButton, onClick: () => this.props.success(false), fill: "outline", color: "secondary" })),
|
|
2297
2210
|
React.createElement(Button, { caption: i18n.form.modals.saveButton, onClick: () => this.props.success(true), color: "primary" })))));
|
|
2298
2211
|
}
|
|
@@ -2322,7 +2235,7 @@ function useReliableForceUpdate() {
|
|
|
2322
2235
|
return red[1];
|
|
2323
2236
|
}
|
|
2324
2237
|
|
|
2325
|
-
var css$
|
|
2238
|
+
var css$12 = {"root":"_2Ynwsk","timepicker-input":"agnYHu","timepickerInput":"agnYHu","ltr-always":"-RVjIo","ltrAlways":"-RVjIo"};
|
|
2326
2239
|
|
|
2327
2240
|
const uuiTimePicker = {
|
|
2328
2241
|
container: 'uui-timepicker-container',
|
|
@@ -2361,8 +2274,8 @@ function TimePickerBody(props) {
|
|
|
2361
2274
|
const minutesToSubtract = value.minute() % minutesStep === 0 ? minutesStep : value.minute() % minutesStep;
|
|
2362
2275
|
onMinutesChange(value.subtract(minutesToSubtract, 'm').minute());
|
|
2363
2276
|
};
|
|
2364
|
-
return (React.createElement("div", { className: cx$1(css$
|
|
2365
|
-
React.createElement("div", { className: css$
|
|
2277
|
+
return (React.createElement("div", { className: cx$1(css$12.root, uuiTimePicker.container, props.cx), ref: props.forwardedRef, ...props.rawProps },
|
|
2278
|
+
React.createElement("div", { className: css$12.ltrAlways },
|
|
2366
2279
|
React.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
2367
2280
|
React.createElement(IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment hours' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$Q, onClick: () => onHoursChange(uuiDayjs.dayjs().set(props.value).add(1, 'h').hour()) }),
|
|
2368
2281
|
React.createElement(NumericInput$1, { cx: uuiTimePicker.input, onValueChange: onHoursChange, value: +(uuiDayjs.dayjs()
|
|
@@ -2505,7 +2418,7 @@ function TimePicker(props) {
|
|
|
2505
2418
|
state.value && state.inputValue && saveTime(state.value);
|
|
2506
2419
|
};
|
|
2507
2420
|
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$
|
|
2421
|
+
return (React__default.createElement(TextInput, { ...inputProps, onClick: null, size: props.size, isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, cx: [css$12.root, css$12.timepickerInput, props.inputCx], value: state.inputValue, onValueChange: handleInputChange, onCancel: !props.disableClear && onClear, onFocus: handleFocus, onBlur: handleBlur, isDropdown: false, placeholder: props.placeholder ? props.placeholder : getFormat(), mode: props.mode || DEFAULT_MODE, rawProps: props.rawProps?.input }));
|
|
2509
2422
|
};
|
|
2510
2423
|
const renderBody = (bodyProps) => {
|
|
2511
2424
|
const { forwardedRef, onValueChange, ...timePickerBodyProps } = props;
|
|
@@ -2515,27 +2428,27 @@ function TimePicker(props) {
|
|
|
2515
2428
|
return (React__default.createElement(Dropdown, { renderTarget: (targetProps) => (props.renderTarget ? props.renderTarget(targetProps) : renderInput(targetProps)), renderBody: (bodyProps) => !props.isDisabled && !props.isReadonly && renderBody(bodyProps), onValueChange: !props.isDisabled && !props.isReadonly ? onToggle : null, value: state.isOpen, modifiers: [{ name: 'offset', options: { offset: [0, 6] } }], forwardedRef: props.forwardedRef }));
|
|
2516
2429
|
}
|
|
2517
2430
|
|
|
2518
|
-
var css$
|
|
2431
|
+
var css$11 = {"root":"Mh6sMX"};
|
|
2519
2432
|
|
|
2520
2433
|
function applyInputAddonMods() {
|
|
2521
2434
|
return [
|
|
2522
|
-
css$
|
|
2435
|
+
css$11.root,
|
|
2523
2436
|
];
|
|
2524
2437
|
}
|
|
2525
2438
|
const InputAddon = /* @__PURE__ */withMods(InputAddon$1, applyInputAddonMods);
|
|
2526
2439
|
|
|
2527
|
-
var css$
|
|
2440
|
+
var css$10 = {"root":"vjbDyM"};
|
|
2528
2441
|
|
|
2529
2442
|
function applySliderMods() {
|
|
2530
|
-
return [css$
|
|
2443
|
+
return [css$10.root, 'uui-color-neutral'];
|
|
2531
2444
|
}
|
|
2532
2445
|
const Slider = /* @__PURE__ */withMods(Slider$1, applySliderMods);
|
|
2533
2446
|
|
|
2534
|
-
var css
|
|
2447
|
+
var css$$ = {"root":"t6IDqu","tooltip":"_60cWOd"};
|
|
2535
2448
|
|
|
2536
2449
|
function applyRatingMods(mods) {
|
|
2537
2450
|
return [
|
|
2538
|
-
css
|
|
2451
|
+
css$$.root,
|
|
2539
2452
|
`uui-size-${mods.size || settings.rating.sizes.default}`,
|
|
2540
2453
|
];
|
|
2541
2454
|
}
|
|
@@ -2545,7 +2458,7 @@ const Rating = /* @__PURE__ */withMods(uuiComponents.Rating, applyRatingMods, (p
|
|
|
2545
2458
|
Tooltip,
|
|
2546
2459
|
}));
|
|
2547
2460
|
|
|
2548
|
-
var css$
|
|
2461
|
+
var css$_ = {"root":"v-yTAM","container":"vcCPcf"};
|
|
2549
2462
|
|
|
2550
2463
|
const defaultFormat = 'MMM D, YYYY';
|
|
2551
2464
|
const valueFormat = 'YYYY-MM-DD';
|
|
@@ -2749,21 +2662,21 @@ function DatePickerHeader({ navIconLeft, navIconRight, value: { month, view }, o
|
|
|
2749
2662
|
}, [view, month]);
|
|
2750
2663
|
const disablePrev = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getPrevYearsList(month));
|
|
2751
2664
|
const disableNext = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getNextYearsList(month));
|
|
2752
|
-
return (React.createElement("div", { className: cx(css$
|
|
2665
|
+
return (React.createElement("div", { className: cx(css$_.root, uuiHeader.container, cx) },
|
|
2753
2666
|
React.createElement("header", { className: uuiHeader.headerNav },
|
|
2754
2667
|
React.createElement(Button, { icon: navIconLeft || settings.datePicker.icons.body.prevIcon, color: "secondary", fill: "ghost", cx: uuiHeader.navIconLeft, onClick: !isDisabled && (() => onLeftNavigationArrow()), isDisabled: disablePrev }),
|
|
2755
2668
|
React.createElement(Button, { caption: title, fill: "ghost", cx: uuiHeader.navTitle, onClick: !isDisabled && (() => onCaptionClick(view)) }),
|
|
2756
2669
|
React.createElement(Button, { icon: navIconRight || settings.datePicker.icons.body.nextIcon, color: "secondary", fill: "ghost", cx: uuiHeader.navIconRight, onClick: !isDisabled && (() => onRightNavigationArrow()), isDisabled: disableNext }))));
|
|
2757
2670
|
}
|
|
2758
2671
|
|
|
2759
|
-
var css$
|
|
2672
|
+
var css$Z = {"root":"DtooIy"};
|
|
2760
2673
|
|
|
2761
2674
|
function applyDateSelectionMods() {
|
|
2762
|
-
return [css$
|
|
2675
|
+
return [css$Z.root, `uui-size-${settings.datePicker.sizes.body}`];
|
|
2763
2676
|
}
|
|
2764
2677
|
const Calendar = /* @__PURE__ */withMods(Calendar$1, applyDateSelectionMods);
|
|
2765
2678
|
|
|
2766
|
-
var css$
|
|
2679
|
+
var css$Y = {"root":"Irzmgm"};
|
|
2767
2680
|
|
|
2768
2681
|
const uuiDatePickerBody = {
|
|
2769
2682
|
wrapper: 'uui-datepicker-body-wrapper',
|
|
@@ -2807,7 +2720,7 @@ function StatelessDatePickerBodyComp({ renderDay, isHoliday, cx: classes, filter
|
|
|
2807
2720
|
}
|
|
2808
2721
|
};
|
|
2809
2722
|
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$
|
|
2723
|
+
React__default.createElement("div", { className: cx$1(css$Y.root, uuiDatePickerBody.wrapper) },
|
|
2811
2724
|
React__default.createElement(DatePickerHeader, { value: {
|
|
2812
2725
|
view,
|
|
2813
2726
|
month,
|
|
@@ -2889,7 +2802,7 @@ function DatePickerComponent(props, ref) {
|
|
|
2889
2802
|
}
|
|
2890
2803
|
const DatePicker = /* @__PURE__ */React__default.forwardRef(DatePickerComponent);
|
|
2891
2804
|
|
|
2892
|
-
var css$
|
|
2805
|
+
var css$X = {"date-input":"_9E6Lq7","dateInput":"_9E6Lq7","root":"fA0K1m","separator":"nNqL7U"};
|
|
2893
2806
|
|
|
2894
2807
|
const RangeDatePickerInput = /* @__PURE__ */forwardRef(({ isDisabled, isInvalid, isReadonly, size, disableClear, rawProps, value, inFocus, format, onValueChange, onFocusInput, onBlurInput, onClick, getPlaceholder, filter, onKeyDown, id, cx: classes, }, ref) => {
|
|
2895
2808
|
const [inputValue, setInputValue] = useState(toCustomDateRangeFormat(value, format));
|
|
@@ -2932,15 +2845,15 @@ const RangeDatePickerInput = /* @__PURE__ */forwardRef(({ isDisabled, isInvalid,
|
|
|
2932
2845
|
const clearAllowed = !disableClear && inputValue.from && inputValue.to;
|
|
2933
2846
|
return (
|
|
2934
2847
|
// 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$
|
|
2848
|
+
React__default.createElement("div", { ref: ref, className: cx$1(`uui-size-${size || settings.rangeDatePicker.sizes.default}`, 'uui-range-date-picker', classes, css$X.root, isDisabled && uuiMod.disabled, isReadonly && uuiMod.readonly, isInvalid && uuiMod.invalid, inFocus && uuiMod.focus), onKeyDown: onKeyDown },
|
|
2849
|
+
React__default.createElement(TextInput, { icon: settings.rangeDatePicker.icons.input.calendarIcon, cx: cx$1(css$X.dateInput, inFocus === 'from' && uuiMod.focus), size: size || settings.rangeDatePicker.sizes.default, placeholder: getPlaceholder ? getPlaceholder('from') : i18n.rangeDatePicker.pickerPlaceholderFrom, value: inputValue.from || undefined, onValueChange: (v) => onInputChange(v || '', 'from'), onFocus: (event) => handleFocus(event, 'from'), onBlur: (event) => handleBlur(event, 'from'), isInvalid: isInvalid, isDisabled: isDisabled, isReadonly: isReadonly, isDropdown: false, rawProps: rawProps?.from, onClick: onClick, onKeyDown: onInputKeyDown, id: id }),
|
|
2850
|
+
React__default.createElement("div", { className: css$X.separator }),
|
|
2851
|
+
React__default.createElement(TextInput, { cx: cx$1(css$X.dateInput, inFocus === 'to' && uuiMod.focus), placeholder: getPlaceholder ? getPlaceholder('to') : i18n.rangeDatePicker.pickerPlaceholderTo, size: size || settings.rangeDatePicker.sizes.default, value: inputValue.to || undefined, onCancel: clearAllowed ? () => {
|
|
2939
2852
|
onValueChange(defaultRangeValue);
|
|
2940
2853
|
} : undefined, onValueChange: (v) => onInputChange(v || '', 'to'), onFocus: (e) => handleFocus(e, 'to'), onBlur: (e) => handleBlur(e, 'to'), isInvalid: isInvalid, isDisabled: isDisabled, isReadonly: isReadonly, isDropdown: false, rawProps: rawProps?.to, onClick: onClick, onKeyDown: onInputKeyDown })));
|
|
2941
2854
|
});
|
|
2942
2855
|
|
|
2943
|
-
var css$
|
|
2856
|
+
var css$W = {"root":"_2-Glz9"};
|
|
2944
2857
|
|
|
2945
2858
|
const uuiPresets = {
|
|
2946
2859
|
container: 'uui-presets-container',
|
|
@@ -2955,12 +2868,12 @@ const getPresets = (presets) => {
|
|
|
2955
2868
|
})).sort((a, b) => a.order - b.order);
|
|
2956
2869
|
};
|
|
2957
2870
|
function CalendarPresets(props) {
|
|
2958
|
-
return (React.createElement("div", { ref: props.forwardedRef, className: cx$1(uuiPresets.container, css$
|
|
2871
|
+
return (React.createElement("div", { ref: props.forwardedRef, className: cx$1(uuiPresets.container, css$W.root, props.cx), ...props.rawProps },
|
|
2959
2872
|
React.createElement("div", { className: uuiPresets.header }, "Presets"),
|
|
2960
2873
|
getPresets(props.presets).map((item) => (React.createElement(LinkButton, { key: item.key, caption: item.name, onClick: () => props.onPresetSet(item), size: settings.rangeDatePicker.sizes.preset })))));
|
|
2961
2874
|
}
|
|
2962
2875
|
|
|
2963
|
-
var css$
|
|
2876
|
+
var css$V = {"root":"WMiVXg","container":"tnIjE5","day-selection":"G0ULmw","daySelection":"G0ULmw","from-picker":"-GCWl2","fromPicker":"-GCWl2","to-picker":"W1XN2m","toPicker":"W1XN2m","bodes-wrapper":"_0J6obL","bodesWrapper":"_0J6obL","blocker":"_93Zilr"};
|
|
2964
2877
|
|
|
2965
2878
|
const uuiRangeDatePickerBody = {
|
|
2966
2879
|
inRange: 'uui-range-datepicker-in-range',
|
|
@@ -3101,21 +3014,21 @@ function RangeDatePickerBodyComp(props, ref) {
|
|
|
3101
3014
|
});
|
|
3102
3015
|
}, presets: presets })));
|
|
3103
3016
|
};
|
|
3104
|
-
return (React__default.createElement("div", { ref: ref, className: cx$1(css$
|
|
3105
|
-
React__default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$
|
|
3017
|
+
return (React__default.createElement("div", { ref: ref, className: cx$1(css$V.root, uuiDatePickerBodyBase.container, props.cx), ...props.rawProps },
|
|
3018
|
+
React__default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$V.daySelection, css$V.container], alignItems: "top" },
|
|
3106
3019
|
React__default.createElement(FlexCell, { width: "auto" },
|
|
3107
3020
|
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$
|
|
3021
|
+
React__default.createElement(FlexRow, { cx: css$V.bodesWrapper, alignItems: "top" },
|
|
3022
|
+
React__default.createElement(StatelessDatePickerBody, { key: "date-picker-body-left", cx: cx$1(css$V.fromPicker), ...from, onValueChange: (v) => onBodyValueChange(v, 'from'), onMonthChange: (m) => {
|
|
3110
3023
|
setMonth(m);
|
|
3111
3024
|
}, 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$
|
|
3025
|
+
React__default.createElement(StatelessDatePickerBody, { key: "date-picker-body-right", cx: cx$1(css$V.toPicker), ...to, onValueChange: (v) => onBodyValueChange(v, 'to'), onMonthChange: (m) => {
|
|
3113
3026
|
setMonth(m.subtract(1, 'month'));
|
|
3114
3027
|
}, onViewChange: (v) => setView(v), filter: props.filter, renderDay: props.renderDay || renderDay, isHoliday: props.isHoliday, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'from' }),
|
|
3115
3028
|
view !== 'DAY_SELECTION' && (React__default.createElement("div", { style: {
|
|
3116
3029
|
left: activeMonth === 'from' ? '50%' : undefined,
|
|
3117
3030
|
right: activeMonth === 'to' ? '50%' : undefined,
|
|
3118
|
-
}, className: css$
|
|
3031
|
+
}, className: css$V.blocker }))),
|
|
3119
3032
|
props.presets && renderPresets(props.presets)),
|
|
3120
3033
|
props.renderFooter && props.renderFooter()))));
|
|
3121
3034
|
}
|
|
@@ -3135,7 +3048,7 @@ const getDayCX = (day, selectedDate) => {
|
|
|
3135
3048
|
return [cx$1(inRange && uuiRangeDatePickerBody.inRange, isFirst && uuiRangeDatePickerBody.firstDayInRangeWrapper, !inRange && isFirst && uuiRangeDatePickerBody.lastDayInRangeWrapper, isLast && uuiRangeDatePickerBody.lastDayInRangeWrapper, !inRange && isLast && uuiRangeDatePickerBody.firstDayInRangeWrapper, (dayValue === fromValue || dayValue === toValue) && uuiDaySelection.selectedDay)];
|
|
3136
3049
|
};
|
|
3137
3050
|
|
|
3138
|
-
var css$
|
|
3051
|
+
var css$U = {"dropdown-container":"ZodwOc","dropdownContainer":"ZodwOc"};
|
|
3139
3052
|
|
|
3140
3053
|
const modifiers = [{
|
|
3141
3054
|
name: 'offset',
|
|
@@ -3179,7 +3092,7 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
3179
3092
|
}
|
|
3180
3093
|
};
|
|
3181
3094
|
const renderBody = (renderProps) => {
|
|
3182
|
-
return (React__default.createElement(DropdownContainer, { ...renderProps, cx: cx(css$
|
|
3095
|
+
return (React__default.createElement(DropdownContainer, { ...renderProps, cx: cx(css$U.dropdownContainer), shards: [targetRef], returnFocus: true },
|
|
3183
3096
|
React__default.createElement(FlexRow, null,
|
|
3184
3097
|
React__default.createElement(RangeDatePickerBody, { cx: cx(props.bodyCx), value: {
|
|
3185
3098
|
selectedDate: _value,
|
|
@@ -3203,75 +3116,33 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
3203
3116
|
}
|
|
3204
3117
|
const RangeDatePicker = /* @__PURE__ */React__default.forwardRef(RangeDatePickerComponent);
|
|
3205
3118
|
|
|
3206
|
-
var css$
|
|
3119
|
+
var css$T = {"root":"viX6F9","blocker":"C6j8Jq","marker":"k7NAia","top":"SEfXlM","bottom":"AjmXE5","left":"_7qcYC5","right":"FG49Or","inside":"BUo-Wk"};
|
|
3207
3120
|
|
|
3208
3121
|
function DropMarker(props) {
|
|
3209
3122
|
return props.isDndInProgress
|
|
3210
3123
|
? (React.createElement(React.Fragment, null,
|
|
3211
|
-
props.enableBlocker && React.createElement("div", { className: css$
|
|
3124
|
+
props.enableBlocker && React.createElement("div", { className: css$T.blocker }),
|
|
3212
3125
|
React.createElement("div", { className: cx([
|
|
3213
|
-
css$
|
|
3214
|
-
css$
|
|
3215
|
-
css$
|
|
3126
|
+
css$T.root,
|
|
3127
|
+
css$T.marker,
|
|
3128
|
+
css$T[props.position],
|
|
3216
3129
|
props?.cx,
|
|
3217
3130
|
]) })))
|
|
3218
3131
|
: null;
|
|
3219
3132
|
}
|
|
3220
3133
|
|
|
3221
|
-
var css$M = {"root":"IDkfre","line-height":"m4OVST","lineHeight":"m4OVST","font-size":"WBSH1V","fontSize":"WBSH1V"};
|
|
3222
|
-
|
|
3223
|
-
function applyTextMods(mods) {
|
|
3224
|
-
return [
|
|
3225
|
-
css$M.root,
|
|
3226
|
-
'uui-text',
|
|
3227
|
-
`uui-size-${mods.size || settings.text.sizes.default}`,
|
|
3228
|
-
(mods.size !== 'none' || mods.lineHeight) && css$M.lineHeight,
|
|
3229
|
-
(mods.size !== 'none' || mods.fontSize) && css$M.fontSize,
|
|
3230
|
-
`uui-color-${mods.color || 'primary'}`,
|
|
3231
|
-
`uui-font-weight-${mods.fontWeight || '400'}`,
|
|
3232
|
-
`uui-font-style-${mods.fontStyle || 'normal'}`,
|
|
3233
|
-
'uui-typography-inline',
|
|
3234
|
-
];
|
|
3235
|
-
}
|
|
3236
|
-
const Text = /* @__PURE__ */withMods(uuiComponents.Text, applyTextMods, (props) => {
|
|
3237
|
-
const style = props?.rawProps?.style || {};
|
|
3238
|
-
props.fontSize && (style['--uui-text-font-size'] = `${props.fontSize}px`);
|
|
3239
|
-
props.lineHeight && (style['--uui-text-line-height'] = `${props.lineHeight}px`);
|
|
3240
|
-
return {
|
|
3241
|
-
rawProps: {
|
|
3242
|
-
...props?.rawProps,
|
|
3243
|
-
style: style,
|
|
3244
|
-
},
|
|
3245
|
-
};
|
|
3246
|
-
});
|
|
3247
|
-
|
|
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
3134
|
const RichTextView = /* @__PURE__ */withMods(uuiComponents.RichTextView, (mods) => ['uui-typography', `uui-typography-size-${mods.size || settings.richTextView.sizes.default}`]);
|
|
3266
3135
|
|
|
3267
|
-
var css$
|
|
3136
|
+
var css$S = {"modal":"LO-0ge","search-wrapper":"_0Hv78q","searchWrapper":"_0Hv78q","no-data":"CZLauV","noData":"CZLauV","type-search-to-load-size-24":"_9GQNCs","typeSearchToLoadSize24":"_9GQNCs"};
|
|
3268
3137
|
|
|
3269
3138
|
class DataPickerBody extends PickerBodyBase {
|
|
3270
3139
|
constructor() {
|
|
3271
3140
|
super(...arguments);
|
|
3272
3141
|
this.lens = Lens.onEditableComponent(this);
|
|
3273
3142
|
this.searchLens = this.lens.prop('search').default('');
|
|
3274
|
-
this.getSearchSize = () => (isMobile()
|
|
3143
|
+
this.getSearchSize = () => (isMobile()
|
|
3144
|
+
? settings.pickerInput.sizes.body.mobileSearchInput
|
|
3145
|
+
: settings.pickerInput.sizes.body.getSearchSize({ pickerSize: this.props.searchSize }));
|
|
3275
3146
|
}
|
|
3276
3147
|
renderEmpty() {
|
|
3277
3148
|
const search = this.searchLens.get();
|
|
@@ -3283,7 +3154,7 @@ class DataPickerBody extends PickerBodyBase {
|
|
|
3283
3154
|
});
|
|
3284
3155
|
}
|
|
3285
3156
|
if (this.props.minCharsToSearch && search.length < this.props.minCharsToSearch) {
|
|
3286
|
-
return (React__default.createElement(FlexCell$1, { cx: css$
|
|
3157
|
+
return (React__default.createElement(FlexCell$1, { cx: css$S.noData, grow: 1, textAlign: "center" },
|
|
3287
3158
|
React__default.createElement(Text, { size: this.props.searchSize }, i18n.dataPickerBody.typeSearchToLoadMessage)));
|
|
3288
3159
|
}
|
|
3289
3160
|
if (this.props.rows.length === 0) {
|
|
@@ -3298,25 +3169,23 @@ class DataPickerBody extends PickerBodyBase {
|
|
|
3298
3169
|
}
|
|
3299
3170
|
// Default no record found message for 'NOT_FOUND' and "NO_RECORDS" reason
|
|
3300
3171
|
// TODO: make separate messages for 'NOT_FOUND' and "NO_RECORDS" reason
|
|
3301
|
-
return (React__default.createElement(FlexCell$1, { cx: css$
|
|
3172
|
+
return (React__default.createElement(FlexCell$1, { cx: css$S.noData, grow: 1, textAlign: "center" },
|
|
3302
3173
|
React__default.createElement(Text, { size: this.props.searchSize }, i18n.dataPickerBody.noRecordsMessage)));
|
|
3303
3174
|
}
|
|
3304
3175
|
}
|
|
3305
3176
|
render() {
|
|
3306
3177
|
const searchSize = this.getSearchSize();
|
|
3307
3178
|
return (React__default.createElement(React__default.Fragment, null,
|
|
3308
|
-
this.showSearch() && (React__default.createElement("div", { key: "search", className: cx$1(css$
|
|
3179
|
+
this.showSearch() && (React__default.createElement("div", { key: "search", className: cx$1(css$S.searchWrapper, 'uui-picker_input-body-search') },
|
|
3309
3180
|
React__default.createElement(FlexCell$1, { grow: 1 },
|
|
3310
3181
|
React__default.createElement(SearchInput, { ref: this.searchRef, placeholder: i18n.dataPickerBody.searchPlaceholder, ...this.searchLens.toProps(), onKeyDown: this.searchKeyDown, size: searchSize, debounceDelay: this.props.searchDebounceDelay, rawProps: { dir: 'auto' } })))),
|
|
3311
|
-
React__default.createElement(FlexRow, { key: "body", cx: cx$1('uui-picker_input-body', css$
|
|
3182
|
+
React__default.createElement(FlexRow, { key: "body", cx: cx$1('uui-picker_input-body', css$S[this.props.editMode], css$S[this.props.selectionMode]), rawProps: { style: { maxHeight: this.props.maxHeight, maxWidth: this.props.maxWidth } } }, this.props.rows.length === 0 && this.props.value.topIndex === 0
|
|
3312
3183
|
// We need to also ensure that topIndex === 0, because we can have state were there is no rows but topIndex > 0, in case when we scrolled lover than we have rows
|
|
3313
3184
|
// we fix this state on next render and shouldn't show empty state.
|
|
3314
3185
|
? this.renderEmpty() : (React__default.createElement(VirtualList, { ...this.lens.toProps(), rows: this.props.rows, rawProps: this.props.rawProps, rowsCount: this.props.rowsCount, isLoading: this.props.isReloading })))));
|
|
3315
3186
|
}
|
|
3316
3187
|
}
|
|
3317
3188
|
|
|
3318
|
-
var css$J = {"footer":"Xiqpbk"};
|
|
3319
|
-
|
|
3320
3189
|
function DataPickerFooterImpl(props) {
|
|
3321
3190
|
const { search, clearSelection, view, showSelected, selectionMode, isSearchTooShort, } = props;
|
|
3322
3191
|
const size = isMobile() ? settings.pickerInput.sizes.body.mobileFooterLinkButton : props.size;
|
|
@@ -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:
|
|
3201
|
+
return !hideFooter && (React__default.createElement(FlexRow, { cx: "uui-picker_input-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,26 +3210,165 @@ function DataPickerFooterImpl(props) {
|
|
|
3341
3210
|
}
|
|
3342
3211
|
const DataPickerFooter = /* @__PURE__ */React__default.memo(DataPickerFooterImpl);
|
|
3343
3212
|
|
|
3344
|
-
var css$
|
|
3213
|
+
var css$R = {"header":"_2uPIeX","title":"pb27SQ","close":"aT2wUR"};
|
|
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":"iPnhjb"};
|
|
3224
|
+
|
|
3225
|
+
const AvatarStack = /* @__PURE__ */withMods(AvatarStack$1, () => [css$Q.root]);
|
|
3226
|
+
|
|
3227
|
+
var css$P = {"root":"WkS6e8"};
|
|
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":"FnHZ9u"};
|
|
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":"VjeqzI","page":"_9-1c9K","spacer":"dxjGGM","mode-ghost":"wG4iS5","modeGhost":"wG4iS5"};
|
|
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":"SWbi--","progress-bar":"_5cFot8","progressBar":"_5cFot8","progressBar-indeterminate":"s-SG4W","progressBarIndeterminate":"s-SG4W","size-12":"ozCU6R","size12":"ozCU6R","size-18":"_8uORty","size18":"_8uORty","size-24":"j3K6AQ","size24":"j3K6AQ"};
|
|
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":"_0--e2Q","striped":"f-wefX","animate-stripes":"lWuC-3","animateStripes":"lWuC-3","size-12":"xwZ63p","size12":"xwZ63p","size-18":"AXvm4p","size18":"AXvm4p","size-24":"KCFjfL","size24":"KCFjfL"};
|
|
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":"PH-yG1"};
|
|
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":"f2f0A6"};
|
|
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":"N18RfW","dragHandle":"N18RfW","icon-container":"wTWXki","iconContainer":"wTWXki"};
|
|
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":"Gh08Kk","align-widgets-top":"_9SWD5a","alignWidgetsTop":"_9SWD5a","align-widgets-center":"_3ElKKA","alignWidgetsCenter":"_3ElKKA","icon-container":"YBmnUd","iconContainer":"YBmnUd","content-wrapper":"-uHeRN","contentWrapper":"-uHeRN","render-item":"hjSTlb","renderItem":"hjSTlb","icon-wrapper":"YLpeD5","iconWrapper":"YLpeD5","icon-default":"-Yuy--","iconDefault":"-Yuy--","selected-mark":"czCCuG","selectedMark":"czCCuG"};
|
|
3355
3366
|
|
|
3356
3367
|
function DataPickerCell(props) {
|
|
3357
3368
|
const ref = React.useRef();
|
|
3358
3369
|
let content;
|
|
3359
3370
|
if (props.rowProps.isLoading) {
|
|
3360
|
-
content = (
|
|
3361
|
-
// 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)));
|
|
3371
|
+
content = settings.pickerInput.renderPlaceholder({ rowSize: props.size });
|
|
3364
3372
|
}
|
|
3365
3373
|
else if (props.rowProps.isUnknown) {
|
|
3366
3374
|
content = (React.createElement(Text, { key: "t", size: props.size }, "Unknown"));
|
|
@@ -3392,7 +3400,7 @@ function DataPickerCell(props) {
|
|
|
3392
3400
|
getWrappedContent()));
|
|
3393
3401
|
}
|
|
3394
3402
|
|
|
3395
|
-
var css$G = {"picker-row":"
|
|
3403
|
+
var css$G = {"picker-row":"ytFq3d","pickerRow":"ytFq3d"};
|
|
3396
3404
|
|
|
3397
3405
|
class DataPickerRow extends React.Component {
|
|
3398
3406
|
constructor() {
|
|
@@ -3406,7 +3414,7 @@ class DataPickerRow extends React.Component {
|
|
|
3406
3414
|
}
|
|
3407
3415
|
}
|
|
3408
3416
|
|
|
3409
|
-
var css$F = {"done":"
|
|
3417
|
+
var css$F = {"done":"hkpu2I","container":"HbjGUP"};
|
|
3410
3418
|
|
|
3411
3419
|
const PickerBodyMobileView = (props) => {
|
|
3412
3420
|
const isMobileView = isMobile();
|
|
@@ -3483,7 +3491,7 @@ const getHighlightedSearchMatches = (str, search) => {
|
|
|
3483
3491
|
return getDecoratedText(str, ranges);
|
|
3484
3492
|
};
|
|
3485
3493
|
|
|
3486
|
-
var css$E = {"root":"
|
|
3494
|
+
var css$E = {"root":"_2dLER3","column-gap":"TtH-k5","columnGap":"TtH-k5","title":"eR2yko","subtitle":"XKh5-q","disabled":"HnOqfw","multiline":"Mh2Dsm"};
|
|
3487
3495
|
|
|
3488
3496
|
function PickerItem(props) {
|
|
3489
3497
|
const { highlightSearchMatches = true, size, avatarUrl, isLoading, isDisabled, icon, } = props;
|
|
@@ -3504,7 +3512,7 @@ function getAvatarSize(size, isMultiline) {
|
|
|
3504
3512
|
return settings.pickerInput.sizes.body[isMultiline ? 'itemAvatarMultilineMap' : 'itemAvatarMap'][size];
|
|
3505
3513
|
}
|
|
3506
3514
|
|
|
3507
|
-
var css$D = {"sub-header-wrapper":"
|
|
3515
|
+
var css$D = {"sub-header-wrapper":"FcH9yU","subHeaderWrapper":"FcH9yU","switch":"i2ItvS","no-found-modal-container":"houlsn","noFoundModalContainer":"houlsn","no-found-modal-container-icon":"AlI5wz","noFoundModalContainerIcon":"AlI5wz","no-found-modal-container-text":"zpqrOc","noFoundModalContainerText":"zpqrOc"};
|
|
3508
3516
|
|
|
3509
3517
|
function PickerModal(props) {
|
|
3510
3518
|
const { view, selection, dataSourceStateLens, dataSourceState, getDataSourceState, getName, clearSelection, getRows, getListProps, getFooterProps, isSingleSelect, handleDataSourceValueChange, } = usePickerModal(props);
|
|
@@ -3559,7 +3567,7 @@ function PickerModal(props) {
|
|
|
3559
3567
|
React__default.createElement(ModalFooter, null, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
|
|
3560
3568
|
}
|
|
3561
3569
|
|
|
3562
|
-
var css$C = {"tooltip":"
|
|
3570
|
+
var css$C = {"tooltip":"AnSd6-"};
|
|
3563
3571
|
|
|
3564
3572
|
const PickerTogglerTag = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
3565
3573
|
const tagProps = {
|
|
@@ -3578,7 +3586,7 @@ const PickerTogglerTag = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
3578
3586
|
}
|
|
3579
3587
|
});
|
|
3580
3588
|
|
|
3581
|
-
var css$B = {"root":"
|
|
3589
|
+
var css$B = {"root":"UChqVS"};
|
|
3582
3590
|
|
|
3583
3591
|
const defaultMode = EditMode.FORM;
|
|
3584
3592
|
function applyPickerTogglerMods(mods) {
|
|
@@ -3586,7 +3594,7 @@ function applyPickerTogglerMods(mods) {
|
|
|
3586
3594
|
css$B.root,
|
|
3587
3595
|
'uui-picker_toggler',
|
|
3588
3596
|
`uui-size-${mods.size || settings.pickerInput.sizes.toggler.default}`,
|
|
3589
|
-
|
|
3597
|
+
'uui-control-mode-' + (mods.mode || defaultMode),
|
|
3590
3598
|
];
|
|
3591
3599
|
}
|
|
3592
3600
|
function PickerTogglerComponent(props, ref) {
|
|
@@ -3679,7 +3687,7 @@ function PickerInputComponent({ highlightSearchMatches = true, ...props }, ref)
|
|
|
3679
3687
|
}
|
|
3680
3688
|
const PickerInput = /* @__PURE__ */React__default.forwardRef(PickerInputComponent);
|
|
3681
3689
|
|
|
3682
|
-
var css$A = {"row":"
|
|
3690
|
+
var css$A = {"row":"sAxESU"};
|
|
3683
3691
|
|
|
3684
3692
|
function PickerListItem(props) {
|
|
3685
3693
|
let label;
|
|
@@ -3699,7 +3707,7 @@ function PickerListItem(props) {
|
|
|
3699
3707
|
return (React__default.createElement("div", { role: "option", "aria-selected": props.isSelectable ? props.isSelected : undefined, "aria-busy": props.isLoading, "aria-posinset": props.index + 1, ...(props.checkbox?.isVisible && { 'aria-checked': props.isChecked }), className: css$A.row }, component));
|
|
3700
3708
|
}
|
|
3701
3709
|
|
|
3702
|
-
var css$z = {"root":"
|
|
3710
|
+
var css$z = {"root":"PO0ywP"};
|
|
3703
3711
|
|
|
3704
3712
|
function PickerList(props) {
|
|
3705
3713
|
const { context, view, onlySelectedView, getName, getEntityName, appendLastSelected, getSelectedIdsArray, buildRowsList, getMaxDefaultItems, dataSourceState, getModalTogglerCaption, } = usePickerList(props);
|
|
@@ -3734,7 +3742,7 @@ function PickerList(props) {
|
|
|
3734
3742
|
}, selectedRows)));
|
|
3735
3743
|
}
|
|
3736
3744
|
|
|
3737
|
-
var css$y = {"root":"
|
|
3745
|
+
var css$y = {"root":"LnPKn8","wrapper":"poTKE2","align-widgets-top":"pw50ng","alignWidgetsTop":"pw50ng","align-widgets-center":"zoTFaE","alignWidgetsCenter":"zoTFaE"};
|
|
3738
3746
|
|
|
3739
3747
|
function DataTableCell(initialProps) {
|
|
3740
3748
|
const props = { ...initialProps };
|
|
@@ -3742,8 +3750,7 @@ function DataTableCell(initialProps) {
|
|
|
3742
3750
|
props.addons = React.createElement(DataRowAddons, { size: props.size, ...props });
|
|
3743
3751
|
}
|
|
3744
3752
|
props.renderPlaceholder = props.renderPlaceholder
|
|
3745
|
-
|| (() =>
|
|
3746
|
-
React.createElement(TextPlaceholder, { isNotAnimated: true }))));
|
|
3753
|
+
|| (() => settings.dataTable.renderPlaceholder({ rowSize: props.size }));
|
|
3747
3754
|
props.renderUnknown = props.renderUnknown
|
|
3748
3755
|
|| (() => (React.createElement(Text, { key: "t", size: props.size }, "Unknown")));
|
|
3749
3756
|
props.renderTooltip = (tooltipProps) => React.createElement(Tooltip, { color: "critical", ...tooltipProps });
|
|
@@ -3783,7 +3790,7 @@ function DataTableCell(initialProps) {
|
|
|
3783
3790
|
return React.createElement(DataTableCell$1, { ...props });
|
|
3784
3791
|
}
|
|
3785
3792
|
|
|
3786
|
-
var css$x = {"root":"
|
|
3793
|
+
var css$x = {"root":"zqwdl-"};
|
|
3787
3794
|
|
|
3788
3795
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
3789
3796
|
// As we need our mods to style the cell properly, we extract them from DataTableCellProps.rowProps, which is a hack, but it's reliable enough.
|
|
@@ -3799,7 +3806,7 @@ const DataTableRow = /* @__PURE__ */withMods(DataTableRow$1, ({ borderBottom = t
|
|
|
3799
3806
|
];
|
|
3800
3807
|
}, () => propsMods);
|
|
3801
3808
|
|
|
3802
|
-
var css$w = {"sorting-panel-container":"
|
|
3809
|
+
var css$w = {"sorting-panel-container":"KTSips","sortingPanelContainer":"KTSips"};
|
|
3803
3810
|
|
|
3804
3811
|
const SortingPanelImpl = ({ sortDirection, onSort }) => {
|
|
3805
3812
|
const sortAsc = useCallback(() => onSort(sortDirection === 'asc' ? undefined : 'asc'), [onSort]);
|
|
@@ -3824,7 +3831,7 @@ const ColumnHeaderDropdownImpl = (props) => {
|
|
|
3824
3831
|
};
|
|
3825
3832
|
const ColumnHeaderDropdown = /* @__PURE__ */React__default.memo(ColumnHeaderDropdownImpl);
|
|
3826
3833
|
|
|
3827
|
-
var css$v = {"root":"
|
|
3834
|
+
var css$v = {"root":"DtobLp","caption-wrapper":"_8L2tj4","captionWrapper":"_8L2tj4","sort-icon":"NKUDhr","sortIcon":"NKUDhr","dropdown-icon":"WHQMOM","dropdownIcon":"WHQMOM","infoIcon":"ft6BzC","resizable":"_0xA-AB","align-right":"O1S3eo","alignRight":"O1S3eo","align-center":"JjlZ-3","alignCenter":"JjlZ-3","caption":"wgmBIr","truncate":"BsDWrN","upper-case":"aAr45L","upperCase":"aAr45L","checkbox":"_3OYlGj","icon":"q8HtL7","fold-all-icon":"U-4O2D","foldAllIcon":"U-4O2D","cell-tooltip":"_1s1jHb","cellTooltip":"_1s1jHb","resizing-marker":"hbMsXX","resizingMarker":"hbMsXX","pinned-right":"Rapez1","pinnedRight":"Rapez1","draggable":"aceCvl","ghost":"cAp7Hc","is-dragged-out":"utPUYh","isDraggedOut":"utPUYh","dnd-marker-left":"NkNYZr","dndMarkerLeft":"NkNYZr","dnd-marker-right":"UmsWvd","dndMarkerRight":"UmsWvd","cell-tooltip-wrapper":"qqsOO-","cellTooltipWrapper":"qqsOO-","cell-tooltip-text":"eWXtLz","cellTooltipText":"eWXtLz","tooltip-caption":"uCPDfd","tooltipCaption":"uCPDfd","tooltip-info":"iC-ZvO","tooltipInfo":"iC-ZvO"};
|
|
3828
3835
|
|
|
3829
3836
|
class DataTableHeaderCell extends React.Component {
|
|
3830
3837
|
constructor() {
|
|
@@ -3918,7 +3925,7 @@ class DataTableHeaderCell extends React.Component {
|
|
|
3918
3925
|
}
|
|
3919
3926
|
}
|
|
3920
3927
|
|
|
3921
|
-
var css$u = {"root":"
|
|
3928
|
+
var css$u = {"root":"BKV7YL","caption-wrapper":"_09PFkN","captionWrapper":"_09PFkN","align-center":"tyhd6B","alignCenter":"tyhd6B","caption":"VDPGbO","truncate":"c7dWjC","upper-case":"pRNyJ9","upperCase":"pRNyJ9","group-cell-tooltip":"_1uiLeP","groupCellTooltip":"_1uiLeP","group-cell-tooltip-wrapper":"bfzLBK","groupCellTooltipWrapper":"bfzLBK","group-cell-tooltip-text":"EQu1nO","groupCellTooltipText":"EQu1nO","tooltip-caption":"myAWQW","tooltipCaption":"myAWQW","tooltip-info":"_9G2uez","tooltipInfo":"_9G2uez"};
|
|
3922
3929
|
|
|
3923
3930
|
class DataTableHeaderGroupCell extends React.Component {
|
|
3924
3931
|
constructor() {
|
|
@@ -3958,7 +3965,7 @@ class DataTableHeaderGroupCell extends React.Component {
|
|
|
3958
3965
|
}
|
|
3959
3966
|
}
|
|
3960
3967
|
|
|
3961
|
-
var css$t = {"root":"
|
|
3968
|
+
var css$t = {"root":"R6zorr"};
|
|
3962
3969
|
|
|
3963
3970
|
const DataTableHeaderRow = /* @__PURE__ */withMods(DataTableHeaderRow$1, () => [css$t.root, 'uui-dt-vars'], (mods) => ({
|
|
3964
3971
|
renderCell: (props) => (React.createElement(DataTableHeaderCell, { ...props, size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key, columnsGap: mods.columnsGap })),
|
|
@@ -3971,7 +3978,7 @@ const UUI_FILTERS_PANEL_ADD_BUTTON_BODY = 'uui-filters-panel-add-button-body';
|
|
|
3971
3978
|
const UUI_FILTERS_PANEL_ITEM_BODY = 'uui-filters-panel-item-body';
|
|
3972
3979
|
const UUI_FILTERS_PANEL_ITEM_TOGGLER = 'uui-filters-panel-item-toggler';
|
|
3973
3980
|
|
|
3974
|
-
var css$s = {"root":"
|
|
3981
|
+
var css$s = {"root":"_8qcSn3","title-wrapper":"STe-R-","titleWrapper":"STe-R-","title":"wAUsDj","text-wrapper":"dik8kB","textWrapper":"dik8kB","selection":"sC4jGR","postfix":"_41deNy","selected":"_2vL54k"};
|
|
3975
3982
|
|
|
3976
3983
|
const FilterPanelItemToggler = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
3977
3984
|
const togglerPickerOpened = (e) => {
|
|
@@ -4139,7 +4146,7 @@ function FilterRangeDatePickerBody(props) {
|
|
|
4139
4146
|
React__default.createElement(LinkButton, { isDisabled: !value.from && !value.to, caption: i18n.pickerModal.clearAllButton, onClick: () => onValueChange(defaultRangeValue) })))));
|
|
4140
4147
|
}
|
|
4141
4148
|
|
|
4142
|
-
var css$r = {"container":"
|
|
4149
|
+
var css$r = {"container":"LceOMM"};
|
|
4143
4150
|
|
|
4144
4151
|
function FilterNumericBody(props) {
|
|
4145
4152
|
const isInRangePredicate = props?.selectedPredicate === 'inRange' || props?.selectedPredicate === 'notInRange';
|
|
@@ -4235,7 +4242,7 @@ var SvgActionDeleteOutline = function SvgActionDeleteOutline(props, ref) {
|
|
|
4235
4242
|
};
|
|
4236
4243
|
var ForwardRef$a = /*#__PURE__*/forwardRef(SvgActionDeleteOutline);
|
|
4237
4244
|
|
|
4238
|
-
var css$q = {"header":"
|
|
4245
|
+
var css$q = {"header":"CxND9E","removeButton":"HavBQt","with-search":"uJeWbW","withSearch":"uJeWbW"};
|
|
4239
4246
|
|
|
4240
4247
|
function useView(props, value) {
|
|
4241
4248
|
const forceUpdate = useForceUpdate();
|
|
@@ -4541,7 +4548,7 @@ function FiltersToolbarImpl(props) {
|
|
|
4541
4548
|
}
|
|
4542
4549
|
const FiltersPanel = /* @__PURE__ */React__default.memo(FiltersToolbarImpl);
|
|
4543
4550
|
|
|
4544
|
-
var css$p = {"divider":"
|
|
4551
|
+
var css$p = {"divider":"peZ6yB","dropdownDeleteIcon":"_8gNZR3","presetsWrapper":"Rmlxqn","addPresetContainer":"eYJ-uR","dropContainer":"MmXF0F"};
|
|
4545
4552
|
|
|
4546
4553
|
var _path$9;
|
|
4547
4554
|
function _extends$9() { return _extends$9 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$9.apply(null, arguments); }
|
|
@@ -4622,7 +4629,7 @@ var SvgContentLinkOutline = function SvgContentLinkOutline(props, ref) {
|
|
|
4622
4629
|
};
|
|
4623
4630
|
var ForwardRef$5 = /*#__PURE__*/forwardRef(SvgContentLinkOutline);
|
|
4624
4631
|
|
|
4625
|
-
var css$o = {"delete-button":"
|
|
4632
|
+
var css$o = {"delete-button":"ELeF4D","deleteButton":"ELeF4D","tab-button":"YVTZDR","tabButton":"YVTZDR","targetOpen":"xge902"};
|
|
4626
4633
|
|
|
4627
4634
|
function PresetActionsDropdown(props) {
|
|
4628
4635
|
const { uuiNotifications } = useUuiContext();
|
|
@@ -4689,7 +4696,7 @@ function PresetActionsDropdown(props) {
|
|
|
4689
4696
|
return (React__default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end", modifiers: [{ name: 'offset', options: { offset: [0, 22] } }] }));
|
|
4690
4697
|
}
|
|
4691
4698
|
|
|
4692
|
-
var css$n = {"preset-input-cell":"
|
|
4699
|
+
var css$n = {"preset-input-cell":"k8PDrv","presetInputCell":"k8PDrv","preset-input":"rLqP9t","presetInput":"rLqP9t"};
|
|
4693
4700
|
|
|
4694
4701
|
const UUI_PRESETS_PANEL_ADD_BUTTON = 'uui-presets-panel-add-button';
|
|
4695
4702
|
const UUI_PRESETS_PANEL_MORE_BUTTON = 'uui-presets-panel-more-button';
|
|
@@ -4721,7 +4728,7 @@ function PresetInput(props) {
|
|
|
4721
4728
|
React__default.createElement(TextInput, { cx: css$n.presetInput, onValueChange: setPresetCaption, value: presetCaption, onCancel: cancelActionHandler, onAccept: acceptActionHandler, onBlur: newPresetOnBlurHandler, autoFocus: true, maxLength: 50, isReadonly: readonly })));
|
|
4722
4729
|
}
|
|
4723
4730
|
|
|
4724
|
-
var css$m = {"preset":"
|
|
4731
|
+
var css$m = {"preset":"X-ipT2","activePreset":"pAAlOe"};
|
|
4725
4732
|
|
|
4726
4733
|
function Preset(props) {
|
|
4727
4734
|
const [isRenamePreset, setIsRenamePreset] = useState(false);
|
|
@@ -4847,7 +4854,7 @@ const useColumnsWithFilters = (initialColumns, filters) => {
|
|
|
4847
4854
|
return columns;
|
|
4848
4855
|
};
|
|
4849
4856
|
|
|
4850
|
-
var css$l = {"unpin-icon":"
|
|
4857
|
+
var css$l = {"unpin-icon":"xhRRXP","unpinIcon":"xhRRXP","pin-toggler-icon":"Ww2Xpi","pinTogglerIcon":"Ww2Xpi"};
|
|
4851
4858
|
|
|
4852
4859
|
function PinIconButton(props) {
|
|
4853
4860
|
const i18nLocal = i18n.tables.columnsConfigurationModal;
|
|
@@ -4889,7 +4896,7 @@ function getUnpinIcon(params) {
|
|
|
4889
4896
|
}
|
|
4890
4897
|
}
|
|
4891
4898
|
|
|
4892
|
-
var css$k = {"row-wrapper":"
|
|
4899
|
+
var css$k = {"row-wrapper":"Kq0u-g","rowWrapper":"Kq0u-g","pin-icon-button":"FsP3mk","pinIconButton":"FsP3mk","not-pinned":"gcZpkD","notPinned":"gcZpkD","checkbox":"bNlRhQ","drag-handle":"g9DDG-","dragHandle":"g9DDG-","dnd-disabled":"xiDvE-","dndDisabled":"xiDvE-"};
|
|
4893
4900
|
|
|
4894
4901
|
const ColumnRow = /* @__PURE__ */React.memo(function ColumnRow(props) {
|
|
4895
4902
|
const { column } = props;
|
|
@@ -4912,7 +4919,7 @@ const ColumnRow = /* @__PURE__ */React.memo(function ColumnRow(props) {
|
|
|
4912
4919
|
return (React.createElement(DndActor, { key: column.key, srcData: isDndAllowed && data, dstData: data, canAcceptDrop: onCanAcceptDrop, onDrop: onDrop, render: renderContent }));
|
|
4913
4920
|
});
|
|
4914
4921
|
|
|
4915
|
-
var css$j = {"root":"
|
|
4922
|
+
var css$j = {"root":"ixRIru","main-panel":"rw73Mj","mainPanel":"rw73Mj","group":"_5FM-MW","group-title":"lZsiEP","groupTitle":"lZsiEP","group-items":"-tPEZb","groupItems":"-tPEZb","no-data":"qJeFEW","noData":"qJeFEW","no-data-title":"_5RDMpJ","noDataTitle":"_5RDMpJ","no-data-sub-title":"_-76OKl","noDataSubTitle":"_-76OKl","h-divider":"YzCSyp","hDivider":"YzCSyp","search-area":"zH5jDP","searchArea":"zH5jDP","subgroup-accordion":"kJBbYU","subgroupAccordion":"kJBbYU","subgroup":"_0N72lN","subgroup-title":"TrCSkO","subgroupTitle":"TrCSkO"};
|
|
4916
4923
|
|
|
4917
4924
|
const renderGroupTitle = (title, amount) => (React.createElement(FlexRow, { cx: css$j.group },
|
|
4918
4925
|
React.createElement(Text, { size: "none", cx: css$j.groupTitle }, title),
|
|
@@ -5014,7 +5021,7 @@ const getChildrenAndRest = (row, rows) => {
|
|
|
5014
5021
|
return [children, rest];
|
|
5015
5022
|
};
|
|
5016
5023
|
|
|
5017
|
-
var css$i = {"listContainer":"
|
|
5024
|
+
var css$i = {"listContainer":"_65FTPM","header":"qdiP2a","group":"_4OSDa0","stickyHeader":"KaNPhC"};
|
|
5018
5025
|
|
|
5019
5026
|
function DataRowsGroup({ row, childRows, renderRow, top = 1, }) {
|
|
5020
5027
|
const rowRef = useRef();
|
|
@@ -5054,7 +5061,7 @@ function DataRowsContainer({ estimatedHeight, listContainerRef, offsetY, rows, r
|
|
|
5054
5061
|
React__default.createElement(DataRowsGroups, { rows: rows, renderRow: renderRow, top: headerRef?.current?.clientHeight }))));
|
|
5055
5062
|
}
|
|
5056
5063
|
|
|
5057
|
-
var css$h = {"root":"
|
|
5064
|
+
var css$h = {"root":"_7tA7Ur","sticky-header":"kLsdEF","stickyHeader":"kLsdEF","no-results":"_5-lNRa","noResults":"_5-lNRa","icon":"ClZ2Ik","title":"QHRKj2"};
|
|
5058
5065
|
|
|
5059
5066
|
function DataTable(props) {
|
|
5060
5067
|
const { uuiModals } = useUuiContext();
|
|
@@ -5103,9 +5110,9 @@ function DataTable(props) {
|
|
|
5103
5110
|
} }))));
|
|
5104
5111
|
}
|
|
5105
5112
|
|
|
5106
|
-
var css$g = {"root":"
|
|
5113
|
+
var css$g = {"root":"_9BeTNg"};
|
|
5107
5114
|
|
|
5108
|
-
var css$f = {"root":"
|
|
5115
|
+
var css$f = {"root":"bhNFlG","burger-content":"OYv2V-","burgerContent":"OYv2V-"};
|
|
5109
5116
|
|
|
5110
5117
|
var _path$3;
|
|
5111
5118
|
function _extends$3() { return _extends$3 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$3.apply(null, arguments); }
|
|
@@ -5148,7 +5155,7 @@ var SvgNavigationArrowDownOutline = function SvgNavigationArrowDownOutline(props
|
|
|
5148
5155
|
};
|
|
5149
5156
|
var ForwardRef$2 = /*#__PURE__*/forwardRef(SvgNavigationArrowDownOutline);
|
|
5150
5157
|
|
|
5151
|
-
var css$e = {"root":"
|
|
5158
|
+
var css$e = {"root":"M5dNn1","button-primary":"LdZ8NB","buttonPrimary":"LdZ8NB","button-secondary":"-gMdur","buttonSecondary":"-gMdur","hasIcon":"G1ogfs","dropdown":"UAPB4K"};
|
|
5152
5159
|
|
|
5153
5160
|
const BurgerButton = /* @__PURE__ */withMods(Button$1, (props) => [
|
|
5154
5161
|
css$e.root,
|
|
@@ -5159,13 +5166,13 @@ const BurgerButton = /* @__PURE__ */withMods(Button$1, (props) => [
|
|
|
5159
5166
|
props.icon && css$e.hasIcon,
|
|
5160
5167
|
], () => ({ dropdownIcon: ForwardRef$2, dropdownIconPosition: 'left', role: 'menuitem' }));
|
|
5161
5168
|
|
|
5162
|
-
var css$d = {"search-input":"
|
|
5169
|
+
var css$d = {"search-input":"wW--Oj","searchInput":"wW--Oj"};
|
|
5163
5170
|
|
|
5164
5171
|
function BurgerSearch(props) {
|
|
5165
5172
|
return (React.createElement(TextInput$1, { cx: cx(css$d.searchInput, 'uui-main_menu-burger-search'), iconPosition: "left", icon: ForwardRef$N, placeholder: props.placeholder, value: props.value, onValueChange: props.onValueChange, onCancel: props.onCancel, cancelIcon: props.value && ForwardRef$R }));
|
|
5166
5173
|
}
|
|
5167
5174
|
|
|
5168
|
-
var css$c = {"root":"
|
|
5175
|
+
var css$c = {"root":"ViR-KC","group-header":"Tc88T6","groupHeader":"Tc88T6","group-name":"hrsm0f","groupName":"hrsm0f","line":"pEKJJz"};
|
|
5169
5176
|
|
|
5170
5177
|
function BurgerGroupHeader(props) {
|
|
5171
5178
|
return (React.createElement("div", { className: cx(css$c.root, css$c.groupHeader, 'uui-burger-group-header') },
|
|
@@ -5173,7 +5180,7 @@ function BurgerGroupHeader(props) {
|
|
|
5173
5180
|
React.createElement("span", { className: css$c.groupName }, props.caption)));
|
|
5174
5181
|
}
|
|
5175
5182
|
|
|
5176
|
-
var css$b = {"root":"
|
|
5183
|
+
var css$b = {"root":"AQmYK-","type-primary":"HVa9q1","typePrimary":"HVa9q1","type-secondary":"hk-x0O","typeSecondary":"hk-x0O"};
|
|
5177
5184
|
|
|
5178
5185
|
const MainMenuButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
5179
5186
|
const { type, ...clickableProps } = props;
|
|
@@ -5195,7 +5202,7 @@ const MainMenuButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
5195
5202
|
props.isDropdown && (React.createElement(IconContainer, { icon: ForwardRef$Q, flipY: props.isOpen }))));
|
|
5196
5203
|
});
|
|
5197
5204
|
|
|
5198
|
-
var css$a = {"dropdown-body":"
|
|
5205
|
+
var css$a = {"dropdown-body":"nu7nUz","dropdownBody":"nu7nUz"};
|
|
5199
5206
|
|
|
5200
5207
|
class MainMenuDropdown extends React.Component {
|
|
5201
5208
|
render() {
|
|
@@ -5253,12 +5260,12 @@ var SvgNavigationGlobalMenuOutlineOutline = function SvgNavigationGlobalMenuOutl
|
|
|
5253
5260
|
};
|
|
5254
5261
|
var ForwardRef$1 = /*#__PURE__*/forwardRef(SvgNavigationGlobalMenuOutlineOutline);
|
|
5255
5262
|
|
|
5256
|
-
var css$9 = {"global-menu-btn":"
|
|
5263
|
+
var css$9 = {"global-menu-btn":"J1KB8-","globalMenuBtn":"J1KB8-","global-menu-icon":"COSxSw","globalMenuIcon":"COSxSw"};
|
|
5257
5264
|
|
|
5258
5265
|
const GlobalMenu = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement("button", { ref: ref, id: "global_menu_toggle", className: cx(css$9.globalMenuBtn, props.cx), ...props.rawProps },
|
|
5259
5266
|
React.createElement(IconContainer, { size: 36, icon: ForwardRef$1, cx: css$9.globalMenuIcon }))));
|
|
5260
5267
|
|
|
5261
|
-
var css$8 = {"container":"
|
|
5268
|
+
var css$8 = {"container":"M2FK-s","open":"JgmGjS","folding-arrow":"bvletb","foldingArrow":"bvletb"};
|
|
5262
5269
|
|
|
5263
5270
|
const MainMenuAvatar = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement("button", { ref: ref, className: cx(css$8.container, props.isDropdown && css$8.dropdown, props.isOpen && css$8.open, props.onClick && uuiMarkers.clickable, props.cx), onClick: props.onClick, ...props.rawProps },
|
|
5264
5271
|
React.createElement(Avatar, { size: "36", img: props.avatarUrl }),
|
|
@@ -5266,15 +5273,15 @@ const MainMenuAvatar = /* @__PURE__ */React.forwardRef((props, ref) => (React.cr
|
|
|
5266
5273
|
props.isDropdown && (React.createElement("div", null,
|
|
5267
5274
|
React.createElement(IconContainer, { size: 18, icon: ForwardRef$Q, flipY: props.isOpen, cx: css$8.foldingArrow }))))));
|
|
5268
5275
|
|
|
5269
|
-
var css$7 = {"search-input":"
|
|
5276
|
+
var css$7 = {"search-input":"A94GJg","searchInput":"A94GJg"};
|
|
5270
5277
|
|
|
5271
5278
|
const MainMenuSearch = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement(IEditableDebouncer, { ...props, render: (iEditable) => (React.createElement(TextInput$1, { iconPosition: "left", icon: ForwardRef$N, cancelIcon: props.value?.length > 0 && ForwardRef$R, ...props, ...iEditable, ref: ref, cx: cx$1(css$7.searchInput, props.cx), ...props.rawProps })) })));
|
|
5272
5279
|
|
|
5273
|
-
var css$6 = {"container":"
|
|
5280
|
+
var css$6 = {"container":"lUhHjj"};
|
|
5274
5281
|
|
|
5275
5282
|
const MainMenuIcon = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement(IconButton, { ref: ref, icon: props.icon, cx: cx$1(props.cx, css$6.container), ...props })));
|
|
5276
5283
|
|
|
5277
|
-
var css$5 = {"root":"
|
|
5284
|
+
var css$5 = {"root":"guez0w"};
|
|
5278
5285
|
|
|
5279
5286
|
const Anchor = /* @__PURE__ */withMods(Anchor$1, () => [css$5.root]);
|
|
5280
5287
|
|
|
@@ -5332,7 +5339,7 @@ var SvgFileCloudUploadFill = function SvgFileCloudUploadFill(props, ref) {
|
|
|
5332
5339
|
};
|
|
5333
5340
|
var ForwardRef = /*#__PURE__*/forwardRef(SvgFileCloudUploadFill);
|
|
5334
5341
|
|
|
5335
|
-
var css$4 = {"root":"
|
|
5342
|
+
var css$4 = {"root":"_9i4W3h","drop-start":"jACi28","dropStart":"jACi28","drop-over":"Fy0zmb","dropOver":"Fy0zmb","link":"ajOWu-","drop-area":"v1Vzz8","dropArea":"v1Vzz8","drop-caption":"xSC5UP","dropCaption":"xSC5UP","icon-blue":"TKmz3v","iconBlue":"TKmz3v"};
|
|
5336
5343
|
|
|
5337
5344
|
function DropSpot(props) {
|
|
5338
5345
|
const getInfoText = typeof props.infoText === 'string'
|
|
@@ -5350,7 +5357,7 @@ function DropSpot(props) {
|
|
|
5350
5357
|
return React.createElement(DropSpot$1, { render: renderAttachmentArea, onFilesDropped: props.onUploadFiles });
|
|
5351
5358
|
}
|
|
5352
5359
|
|
|
5353
|
-
var css$3 = {"root":"
|
|
5360
|
+
var css$3 = {"root":"_8EvdTZ"};
|
|
5354
5361
|
|
|
5355
5362
|
const SvgCircleProgress = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
5356
5363
|
const outsetRadius = props.size / 2 - 1;
|
|
@@ -5361,7 +5368,7 @@ const SvgCircleProgress = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
5361
5368
|
React.createElement("circle", { strokeWidth: 1, fill: "transparent", r: outsetRadius, cx: props.size / 2, cy: props.size / 2 })));
|
|
5362
5369
|
});
|
|
5363
5370
|
|
|
5364
|
-
var css$2 = {"root":"
|
|
5371
|
+
var css$2 = {"root":"YupJrV","file-name":"o0JuqN","fileName":"o0JuqN","default-color":"tp0RxW","defaultColor":"tp0RxW","doc-color":"-DgvaJ","docColor":"-DgvaJ","xls-color":"oQiwXL","xlsColor":"oQiwXL","pdf-color":"KBqZzg","pdfColor":"KBqZzg","movie-color":"-oZz9x","movieColor":"-oZz9x","img-color":"mc6C2t","imgColor":"mc6C2t","mov-color":"-kinsM","movColor":"-kinsM","error-block":"OS1wOc","errorBlock":"OS1wOc","icons-block":"_5fCCkN","iconsBlock":"_5fCCkN"};
|
|
5365
5372
|
|
|
5366
5373
|
const FileCard = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
5367
5374
|
const [isLoadingShow, setIsLoadingShow] = React.useState(true);
|
|
@@ -5480,7 +5487,7 @@ const getErrorPageConfig = () => ({
|
|
|
5480
5487
|
},
|
|
5481
5488
|
});
|
|
5482
5489
|
|
|
5483
|
-
var css$1 = {"container":"
|
|
5490
|
+
var css$1 = {"container":"dRwaBm"};
|
|
5484
5491
|
|
|
5485
5492
|
const ErrorPage = (props) => {
|
|
5486
5493
|
const isMobileScreen = isMobile();
|
|
@@ -5492,7 +5499,7 @@ const ErrorPage = (props) => {
|
|
|
5492
5499
|
props?.supportLink && React__default.createElement("div", { className: "uui-error-support-link" }, props?.supportLink))));
|
|
5493
5500
|
};
|
|
5494
5501
|
|
|
5495
|
-
var css = {"recovery-spinner":"
|
|
5502
|
+
var css = {"recovery-spinner":"Ht0crH","recoverySpinner":"Ht0crH","recovery-message":"_5EADbQ","recoveryMessage":"_5EADbQ","modal-blocker":"Gwau3k","modalBlocker":"Gwau3k","modalFadeIn":"wemycR"};
|
|
5496
5503
|
|
|
5497
5504
|
function ErrorHandler(props) {
|
|
5498
5505
|
const { uuiNotifications, uuiModals, uuiApi } = useUuiContext();
|