@epam/uui 6.2.0-alpha.2 → 6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/buttons/LinkButton.d.ts +2 -2
- package/components/buttons/LinkButton.d.ts.map +1 -1
- package/components/buttons/TabButton.d.ts +2 -2
- package/components/buttons/TabButton.d.ts.map +1 -1
- package/components/buttons/VerticalTabButton.d.ts +61 -4
- package/components/buttons/VerticalTabButton.d.ts.map +1 -1
- package/components/filters/PresetPanel/Preset.d.ts +1 -0
- package/components/filters/PresetPanel/Preset.d.ts.map +1 -1
- package/components/filters/PresetPanel/PresetActionsDropdown.d.ts +1 -0
- package/components/filters/PresetPanel/PresetActionsDropdown.d.ts.map +1 -1
- package/components/filters/PresetPanel/PresetsPanel.d.ts +2 -0
- package/components/filters/PresetPanel/PresetsPanel.d.ts.map +1 -1
- package/components/layout/Tree.d.ts +41 -0
- package/components/layout/Tree.d.ts.map +1 -0
- package/components/layout/index.d.ts +1 -0
- package/components/layout/index.d.ts.map +1 -1
- package/components/navigation/MainMenu/Burger/BurgerButton.d.ts +5 -5
- package/components/navigation/MainMenu/Burger/BurgerButton.d.ts.map +1 -1
- package/components/navigation/MainMenu/MainMenuButton.d.ts +3 -3
- package/components/navigation/MainMenu/MainMenuButton.d.ts.map +1 -1
- package/components/navigation/MainMenu/MainMenuDropdown.d.ts +2 -4
- package/components/navigation/MainMenu/MainMenuDropdown.d.ts.map +1 -1
- package/components/navigation/index.d.ts +1 -0
- package/components/navigation/index.d.ts.map +1 -1
- package/components/overlays/DropdownMenu.d.ts.map +1 -1
- package/components/pickers/PickerItem.d.ts.map +1 -1
- package/index.esm.js +510 -406
- package/index.esm.js.map +1 -1
- package/index.js +514 -401
- package/index.js.map +1 -1
- package/package.json +5 -5
- package/settings.d.ts +16 -1
- package/settings.d.ts.map +1 -1
- package/stats.html +1 -1
- package/styles.css +3054 -2921
- package/styles.css.map +1 -1
package/index.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as uuiComponents from '@epam/uui-components';
|
|
2
|
-
import { Spinner as Spinner$1, Blocker as Blocker$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, InputAddon as InputAddon$1, Slider as Slider$1, Anchor as Anchor$1, FlexSpacer, Text as Text$1, FlexCell as FlexCell$1, VPanel, ScrollBars as ScrollBars$1, ModalBlocker as ModalBlocker$1, ModalWindow as ModalWindow$1, Snackbar as Snackbar$1, Calendar as Calendar$1, YearSelection, MonthSelection, Day, uuiDaySelection,
|
|
3
|
-
export { Avatar, DataTableCellContainer, FlexSpacer, IconContainer } from '@epam/uui-components';
|
|
4
|
-
import { withMods, devLogger, uuiElement, cx as cx$1, uuiMarkers, IEditableDebouncer, isFocusReceiverInsideFocusLock, UuiContext,
|
|
2
|
+
import { Spinner as Spinner$1, Blocker as Blocker$1, Clickable, IconContainer, AvatarStack as AvatarStack$1, Paginator as Paginator$1, RadioInput as RadioInput$1, TextInput as TextInput$1, ControlGroup as ControlGroup$1, NumericInput as NumericInput$1, TextArea as TextArea$1, Dropdown as Dropdown$1, InputAddon as InputAddon$1, Slider as Slider$1, DragHandle, Anchor as Anchor$1, FlexSpacer, Text as Text$1, FlexCell as FlexCell$1, VPanel, ScrollBars as ScrollBars$1, ModalBlocker as ModalBlocker$1, ModalWindow as ModalWindow$1, Snackbar as Snackbar$1, Calendar as Calendar$1, YearSelection, MonthSelection, Day, uuiDaySelection, 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, useColumnsConfiguration, Accordion as Accordion$1, DataTableSelectionProvider, DataTableFocusProvider, useShowSelected, usePickerApi, AdaptivePanel, Burger as Burger$1, Button as Button$1, DropSpot as DropSpot$1, UploadFileToggler, ErrorCatch } from '@epam/uui-components';
|
|
3
|
+
export { Avatar, DataTableCellContainer, FlexSpacer, IconContainer, MainMenuCustomElement, MainMenuLogo } from '@epam/uui-components';
|
|
4
|
+
import { withMods, devLogger, uuiElement, useIsActive, uuiMod, cx as cx$1, uuiMarkers, IEditableDebouncer, isFocusReceiverInsideFocusLock, UuiContext, getDir, isEventTargetInsideClickable, directionMode, useVirtualList, useScrollShadows, isMobile, i18n as i18n$1, useUuiContext, useLayoutEffectSafeForSsr, usePrevious, mobilePositioning, uuiDataTableHeaderCell, uuiDataTableHeaderGroupCell, DndActor, uuiDndState, useColumnsConfig, uuiScrollShadows, useForceUpdate, getSeparatedValue, useArrayDataSource, orderBy, getOrderBetween, Form as Form$1, useForm as useForm$1, formatBytes, useUuiError } from '@epam/uui-core';
|
|
5
5
|
import * as React from 'react';
|
|
6
|
-
import React__default, { forwardRef, useState, useEffect, useContext, useRef,
|
|
6
|
+
import React__default, { forwardRef, useState, useEffect, useContext, useRef, useMemo, useReducer, useImperativeHandle, useCallback, Fragment } from 'react';
|
|
7
7
|
import cx from 'classnames';
|
|
8
8
|
import { offset } from '@floating-ui/react';
|
|
9
9
|
import dayjs from 'dayjs';
|
|
@@ -120,7 +120,9 @@ var SvgNotificationInfoOutline = function SvgNotificationInfoOutline(props, ref)
|
|
|
120
120
|
viewBox: "0 0 24 24",
|
|
121
121
|
ref: ref
|
|
122
122
|
}, props), _path$K || (_path$K = /*#__PURE__*/React.createElement("path", {
|
|
123
|
-
|
|
123
|
+
fillRule: "evenodd",
|
|
124
|
+
d: "M11 17h2v-6h-2v6zm1-15C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zM11 9h2V7h-2v2z",
|
|
125
|
+
clipRule: "evenodd"
|
|
124
126
|
})));
|
|
125
127
|
};
|
|
126
128
|
var ForwardRef$K = /*#__PURE__*/forwardRef(SvgNotificationInfoOutline);
|
|
@@ -135,7 +137,9 @@ var SvgNotificationInfoFill = function SvgNotificationInfoFill(props, ref) {
|
|
|
135
137
|
viewBox: "0 0 24 24",
|
|
136
138
|
ref: ref
|
|
137
139
|
}, props), _path$J || (_path$J = /*#__PURE__*/React.createElement("path", {
|
|
138
|
-
|
|
140
|
+
fillRule: "evenodd",
|
|
141
|
+
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z",
|
|
142
|
+
clipRule: "evenodd"
|
|
139
143
|
})));
|
|
140
144
|
};
|
|
141
145
|
var ForwardRef$J = /*#__PURE__*/forwardRef(SvgNotificationInfoFill);
|
|
@@ -151,7 +155,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
151
155
|
xmlns: "http://www.w3.org/2000/svg",
|
|
152
156
|
ref: ref
|
|
153
157
|
}, props), /*#__PURE__*/React.createElement("g", {
|
|
154
|
-
clipPath: "url(#
|
|
158
|
+
clipPath: "url(#yqxngil7x52qx4twn_a)"
|
|
155
159
|
}, _path$I || (_path$I = /*#__PURE__*/React.createElement("path", {
|
|
156
160
|
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",
|
|
157
161
|
fill: "#F5F6FA"
|
|
@@ -172,7 +176,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
172
176
|
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",
|
|
173
177
|
fill: "#1D1E26"
|
|
174
178
|
})), /*#__PURE__*/React.createElement("mask", {
|
|
175
|
-
id: "
|
|
179
|
+
id: "yqxngibavdrndpbws_b",
|
|
176
180
|
style: {
|
|
177
181
|
maskType: "alpha"
|
|
178
182
|
},
|
|
@@ -185,7 +189,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
185
189
|
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",
|
|
186
190
|
fill: "#9BDEFF"
|
|
187
191
|
}))), _g || (_g = /*#__PURE__*/React.createElement("g", {
|
|
188
|
-
mask: "url(#
|
|
192
|
+
mask: "url(#yqxngibavdrndpbws_b)",
|
|
189
193
|
fillRule: "evenodd",
|
|
190
194
|
clipRule: "evenodd"
|
|
191
195
|
}, /*#__PURE__*/React.createElement("path", {
|
|
@@ -271,7 +275,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
271
275
|
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",
|
|
272
276
|
fill: "#fff"
|
|
273
277
|
}))), _defs || (_defs = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
274
|
-
id: "
|
|
278
|
+
id: "yqxngil7x52qx4twn_a"
|
|
275
279
|
}, /*#__PURE__*/React.createElement("path", {
|
|
276
280
|
fill: "#fff",
|
|
277
281
|
transform: "translate(.552)",
|
|
@@ -759,7 +763,7 @@ var SvgFileFileExcelFill = function SvgFileFileExcelFill(props, ref) {
|
|
|
759
763
|
ref: ref
|
|
760
764
|
}, props), _path$d || (_path$d = /*#__PURE__*/React.createElement("path", {
|
|
761
765
|
fillRule: "evenodd",
|
|
762
|
-
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-
|
|
766
|
+
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm2 16-1.5 1.5L12 17l-2.5 2.5L8 18l2.5-2.5L8 13l1.5-1.5L12 14l2.5-2.5L16 13l-2.5 2.5L16 18zm-3-9V3.5L18.5 9H13z",
|
|
763
767
|
clipRule: "evenodd"
|
|
764
768
|
})));
|
|
765
769
|
};
|
|
@@ -809,10 +813,10 @@ var SvgFileFileVideoFill = function SvgFileFileVideoFill(props, ref) {
|
|
|
809
813
|
viewBox: "0 0 24 24",
|
|
810
814
|
ref: ref
|
|
811
815
|
}, props), _path$a || (_path$a = /*#__PURE__*/React.createElement("path", {
|
|
812
|
-
d: "
|
|
816
|
+
d: "m14 15-5 3v-6l5 3z"
|
|
813
817
|
})), _path2$1 || (_path2$1 = /*#__PURE__*/React.createElement("path", {
|
|
814
818
|
fillRule: "evenodd",
|
|
815
|
-
d: "M4 4c0-1.11.89-2 2-2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4zm9-.5V9h5.5L13 3.5zM8
|
|
819
|
+
d: "M4 4c0-1.11.89-2 2-2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4zm9-.5V9h5.5L13 3.5zM8 10v10l8-5-8-5z",
|
|
816
820
|
clipRule: "evenodd"
|
|
817
821
|
})));
|
|
818
822
|
};
|
|
@@ -829,7 +833,7 @@ var SvgFileFileTableFill = function SvgFileFileTableFill(props, ref) {
|
|
|
829
833
|
ref: ref
|
|
830
834
|
}, props), _path$9 || (_path$9 = /*#__PURE__*/React.createElement("path", {
|
|
831
835
|
fillRule: "evenodd",
|
|
832
|
-
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-
|
|
836
|
+
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zM9 19H6v-2h3v2zm0-3H6v-2h3v2zm0-3H6v-2h3v2zm4 6h-3v-2h3v2zm0-3h-3v-2h3v2zm0-3h-3v-2h3v2zm0-4V3.5L18.5 9H13z",
|
|
833
837
|
clipRule: "evenodd"
|
|
834
838
|
})));
|
|
835
839
|
};
|
|
@@ -922,14 +926,14 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
|
922
926
|
};
|
|
923
927
|
var ForwardRef$4 = /*#__PURE__*/forwardRef(SvgSearchWithBackground);
|
|
924
928
|
|
|
925
|
-
var css$1w = {"root":"
|
|
929
|
+
var css$1w = {"root":"hg0ux0","uui-spinner":"dLpTPh","uuiSpinner":"dLpTPh"};
|
|
926
930
|
|
|
927
931
|
function applySpinnerMods() {
|
|
928
932
|
return [css$1w.root, 'uui-spinner'];
|
|
929
933
|
}
|
|
930
934
|
const Spinner = /* @__PURE__ */withMods(Spinner$1, applySpinnerMods);
|
|
931
935
|
|
|
932
|
-
var css$1v = {"root":"
|
|
936
|
+
var css$1v = {"root":"StHx2D","loading-word":"n2b-qa","loadingWord":"n2b-qa","animated-loading":"_90z0qL","animatedLoading":"_90z0qL","skeleton_loading":"_28XDvH","skeletonLoading":"_28XDvH"};
|
|
933
937
|
|
|
934
938
|
const TextPlaceholder = (props) => {
|
|
935
939
|
const pattern = ' ';
|
|
@@ -946,7 +950,7 @@ const TextPlaceholder = (props) => {
|
|
|
946
950
|
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
947
951
|
};
|
|
948
952
|
|
|
949
|
-
var css$1u = {"root":"
|
|
953
|
+
var css$1u = {"root":"_57AaT8","line-height":"QBtxhX","lineHeight":"QBtxhX","font-size":"_21cBsU","fontSize":"_21cBsU"};
|
|
950
954
|
|
|
951
955
|
function applyTextMods(mods) {
|
|
952
956
|
return [
|
|
@@ -973,7 +977,7 @@ const Text = /* @__PURE__ */withMods(uuiComponents.Text, applyTextMods, (props)
|
|
|
973
977
|
};
|
|
974
978
|
});
|
|
975
979
|
|
|
976
|
-
var css$1t = {"root":"
|
|
980
|
+
var css$1t = {"root":"jGr-EP"};
|
|
977
981
|
|
|
978
982
|
const Blocker = /* @__PURE__ */withMods(Blocker$1, () => [css$1t.root], () => ({ renderSpinner: settings.blocker.renderSpinner }));
|
|
979
983
|
|
|
@@ -1384,6 +1388,22 @@ const tabButtonSettings = {
|
|
|
1384
1388
|
},
|
|
1385
1389
|
},
|
|
1386
1390
|
};
|
|
1391
|
+
const verticalTabButtonSettings = {
|
|
1392
|
+
icons: {
|
|
1393
|
+
clearIcon: ForwardRef$Q,
|
|
1394
|
+
foldingIcon: ForwardRef$P,
|
|
1395
|
+
dropdownIcon: ForwardRef$P,
|
|
1396
|
+
},
|
|
1397
|
+
sizes: {
|
|
1398
|
+
default: '48',
|
|
1399
|
+
countIndicatorMap: {
|
|
1400
|
+
30: '18',
|
|
1401
|
+
36: '18',
|
|
1402
|
+
48: '18',
|
|
1403
|
+
},
|
|
1404
|
+
},
|
|
1405
|
+
weight: 'semibold',
|
|
1406
|
+
};
|
|
1387
1407
|
const tagSettings = {
|
|
1388
1408
|
icons: {
|
|
1389
1409
|
clearIcon: ForwardRef$Q,
|
|
@@ -1455,13 +1475,14 @@ const settings = {
|
|
|
1455
1475
|
statusIndicator: statusIndicatorSettings,
|
|
1456
1476
|
switch: switchSettings,
|
|
1457
1477
|
tabButton: tabButtonSettings,
|
|
1478
|
+
verticalTabButton: verticalTabButtonSettings,
|
|
1458
1479
|
tag: tagSettings,
|
|
1459
1480
|
text: textSettings,
|
|
1460
1481
|
textArea: textAreaSettings,
|
|
1461
1482
|
textInput: textInputSettings,
|
|
1462
1483
|
};
|
|
1463
1484
|
|
|
1464
|
-
var css$1s = {"root":"
|
|
1485
|
+
var css$1s = {"root":"SR8RJb"};
|
|
1465
1486
|
|
|
1466
1487
|
function applyButtonMods(mods) {
|
|
1467
1488
|
return [
|
|
@@ -1479,7 +1500,7 @@ const Button = /* @__PURE__ */withMods(uuiComponents.Button, applyButtonMods, ()
|
|
|
1479
1500
|
};
|
|
1480
1501
|
});
|
|
1481
1502
|
|
|
1482
|
-
var css$1r = {"root":"
|
|
1503
|
+
var css$1r = {"root":"_1dZe0N"};
|
|
1483
1504
|
|
|
1484
1505
|
function applyIconButtonMods(props) {
|
|
1485
1506
|
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$1r.root];
|
|
@@ -1516,7 +1537,7 @@ function getIconClass(props) {
|
|
|
1516
1537
|
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'];
|
|
1517
1538
|
}
|
|
1518
1539
|
|
|
1519
|
-
var css$1q = {"root":"
|
|
1540
|
+
var css$1q = {"root":"_1EyVrV"};
|
|
1520
1541
|
|
|
1521
1542
|
const DEFAULT_COLOR = 'primary';
|
|
1522
1543
|
const LinkButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
@@ -1546,7 +1567,7 @@ const LinkButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1546
1567
|
props.isDropdown && (React.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
1547
1568
|
});
|
|
1548
1569
|
|
|
1549
|
-
var css$1p = {"root":"
|
|
1570
|
+
var css$1p = {"root":"nDrvBH"};
|
|
1550
1571
|
|
|
1551
1572
|
const CountIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
1552
1573
|
return (React__default.createElement("div", { ref: ref, className: cx([
|
|
@@ -1558,10 +1579,16 @@ const CountIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
|
1558
1579
|
]) }, props.caption));
|
|
1559
1580
|
});
|
|
1560
1581
|
|
|
1561
|
-
var css$1o = {"root":"
|
|
1582
|
+
var css$1o = {"root":"yeDi6j","withNotify":"_0sIeUG"};
|
|
1562
1583
|
|
|
1563
1584
|
const TabButton = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
1585
|
+
const { isActive } = useIsActive({
|
|
1586
|
+
isLinkActive: props.isLinkActive,
|
|
1587
|
+
link: props.link,
|
|
1588
|
+
isActive: props.isActive,
|
|
1589
|
+
});
|
|
1564
1590
|
const styles = [
|
|
1591
|
+
isActive && uuiMod.active,
|
|
1565
1592
|
css$1o.root,
|
|
1566
1593
|
'uui-tab-button',
|
|
1567
1594
|
`uui-size-${props.size || settings.tabButton.sizes.default}`,
|
|
@@ -1586,18 +1613,134 @@ const TabButton = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
1586
1613
|
props.onClear && !props.isDisabled && (React__default.createElement(IconContainer, { cx: uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
1587
1614
|
});
|
|
1588
1615
|
|
|
1589
|
-
var css$1n = {"root":"
|
|
1616
|
+
var css$1n = {"root":"fjU1aJ","noLeftPadding":"IMErJL","foldingArea":"Dq35m6","onlyFoldable":"_5yB0ZL","captionWrapper":"y9Xln-","withNotify":"DyWm7v"};
|
|
1617
|
+
|
|
1618
|
+
var css$1m = {"root":"vfgS47"};
|
|
1619
|
+
|
|
1620
|
+
const AvatarStack = /* @__PURE__ */withMods(AvatarStack$1, () => [css$1m.root]);
|
|
1590
1621
|
|
|
1591
|
-
|
|
1592
|
-
|
|
1622
|
+
var css$1l = {"root":"WcDOil"};
|
|
1623
|
+
|
|
1624
|
+
const DEFAULT_FILL = 'solid';
|
|
1625
|
+
function applyBadgeMods(mods) {
|
|
1626
|
+
return [
|
|
1627
|
+
'uui-badge',
|
|
1628
|
+
css$1l.root,
|
|
1629
|
+
`uui-size-${mods.size || settings.badge.sizes.default}`,
|
|
1630
|
+
`uui-fill-${mods.fill || DEFAULT_FILL}`,
|
|
1631
|
+
`uui-color-${mods.color || 'info'}`,
|
|
1632
|
+
];
|
|
1593
1633
|
}
|
|
1594
|
-
const
|
|
1634
|
+
const Badge = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
1635
|
+
const styles = [applyBadgeMods(props), props.cx];
|
|
1636
|
+
const DropdownIcon = props.dropdownIcon ? props.dropdownIcon : settings.badge.icons.dropdownIcon;
|
|
1637
|
+
return (React__default.createElement(Clickable, { ...props, rawProps: {
|
|
1638
|
+
'aria-haspopup': props.isDropdown,
|
|
1639
|
+
'aria-expanded': props.isOpen,
|
|
1640
|
+
...props.rawProps,
|
|
1641
|
+
}, cx: styles, ref: ref },
|
|
1642
|
+
(props.indicator && props.fill === 'outline') && (React__default.createElement("div", { className: "uui-indicator" })),
|
|
1643
|
+
props.icon && props.iconPosition !== 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1644
|
+
props.caption && (React__default.createElement("div", { className: uuiElement.caption }, props.caption)),
|
|
1645
|
+
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 })),
|
|
1646
|
+
props.icon && props.iconPosition === 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1647
|
+
props.isDropdown && (React__default.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
1648
|
+
});
|
|
1595
1649
|
|
|
1596
|
-
var css$
|
|
1650
|
+
var css$1k = {"root":"kPrZII"};
|
|
1651
|
+
|
|
1652
|
+
function applyTagMods(props) {
|
|
1653
|
+
return [
|
|
1654
|
+
css$1k.root,
|
|
1655
|
+
`uui-size-${props.size || settings.tag.sizes.default}`,
|
|
1656
|
+
`uui-color-${props.color || 'neutral'}`,
|
|
1657
|
+
`uui-fill-${props.fill || 'solid'}`,
|
|
1658
|
+
'uui-tag',
|
|
1659
|
+
];
|
|
1660
|
+
}
|
|
1661
|
+
const Tag = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
1662
|
+
const styles = [applyTagMods(props), props.cx];
|
|
1663
|
+
const ClearIcon = props.clearIcon ? props.clearIcon : settings.tag.icons.clearIcon;
|
|
1664
|
+
const DropdownIcon = props.dropdownIcon ? props.dropdownIcon : settings.tag.icons.dropdownIcon;
|
|
1665
|
+
return (React__default.createElement(Clickable, { ...props, rawProps: {
|
|
1666
|
+
'aria-haspopup': props.isDropdown,
|
|
1667
|
+
'aria-expanded': props.isOpen,
|
|
1668
|
+
...props.rawProps,
|
|
1669
|
+
}, cx: styles, ref: ref },
|
|
1670
|
+
props.icon && props.iconPosition !== 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1671
|
+
props.caption && (React__default.createElement("div", { className: uuiElement.caption }, props.caption)),
|
|
1672
|
+
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 })),
|
|
1673
|
+
props.icon && props.iconPosition === 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1674
|
+
props.isDropdown && (React__default.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
1675
|
+
props.onClear && !props.isDisabled && (React__default.createElement(IconContainer, { cx: uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
1676
|
+
});
|
|
1677
|
+
|
|
1678
|
+
var css$1j = {"root":"Elp8Rf","page":"zQw1gf","spacer":"S9RWzE","mode-ghost":"nQX-4b","modeGhost":"nQX-4b"};
|
|
1679
|
+
|
|
1680
|
+
function Paginator(props) {
|
|
1681
|
+
const renderPaginator = (params) => (React__default.createElement("nav", { role: "navigation", className: cx(css$1j.root, 'uui-paginator', `uui-size-${props.size || settings.paginator.sizes.default}`), ...params.rawProps },
|
|
1682
|
+
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" }),
|
|
1683
|
+
params.pages.map((page, index) => {
|
|
1684
|
+
if (page.type === 'spacer') {
|
|
1685
|
+
return (React__default.createElement(Button, { cx: cx(css$1j.spacer, css$1j.page), size: props.size || settings.paginator.sizes.default, key: `${index}_spacer`, caption: "...", fill: "ghost", color: "secondary", tabIndex: -1, isDisabled: props.isDisabled }));
|
|
1686
|
+
}
|
|
1687
|
+
else {
|
|
1688
|
+
return (React__default.createElement(Button, { cx: cx(css$1j[`mode-${!page.isActive && 'ghost'}`], css$1j.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 }));
|
|
1689
|
+
}
|
|
1690
|
+
}),
|
|
1691
|
+
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" })));
|
|
1692
|
+
return React__default.createElement(Paginator$1, { ...props, render: renderPaginator });
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1695
|
+
var css$1i = {"root":"vhIxQ9","progress-bar":"pozs0V","progressBar":"pozs0V","progressBar-indeterminate":"gRJ3yy","progressBarIndeterminate":"gRJ3yy","size-12":"Gi2A94","size12":"Gi2A94","size-18":"Pr17su","size18":"Pr17su","size-24":"T0nZ95","size24":"T0nZ95"};
|
|
1696
|
+
|
|
1697
|
+
const IndeterminateBar = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1698
|
+
return (React.createElement("div", { ref: ref, className: cx('uui-indeterminate_bar', props.cx, css$1i.root, css$1i[`size-${props.size || 12}`]) },
|
|
1699
|
+
React.createElement("div", { className: cx(css$1i.progressBar) })));
|
|
1700
|
+
});
|
|
1701
|
+
|
|
1702
|
+
var css$1h = {"root":"wuzmu-","striped":"JoscLR","animate-stripes":"uqDgIM","animateStripes":"uqDgIM","size-12":"qK3Wno","size12":"qK3Wno","size-18":"ZblyNp","size18":"ZblyNp","size-24":"pG9dMv","size24":"pG9dMv"};
|
|
1703
|
+
|
|
1704
|
+
const DEFAULT_SIZE = '12';
|
|
1705
|
+
function applyProgressBarMods(mods) {
|
|
1706
|
+
const size = mods.size || DEFAULT_SIZE;
|
|
1707
|
+
return [
|
|
1708
|
+
css$1h.root,
|
|
1709
|
+
css$1h[`size-${size}`],
|
|
1710
|
+
mods.striped && css$1h.striped,
|
|
1711
|
+
];
|
|
1712
|
+
}
|
|
1713
|
+
const ProgressBar = /* @__PURE__ */withMods(uuiComponents.ProgressBar, applyProgressBarMods, (props) => ({
|
|
1714
|
+
hideLabel: props.hideLabel || props.striped,
|
|
1715
|
+
}));
|
|
1716
|
+
|
|
1717
|
+
var css$1g = {"root":"hpZhtt"};
|
|
1718
|
+
|
|
1719
|
+
const IndicatorBar = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1720
|
+
const { progress } = props;
|
|
1721
|
+
return progress || progress === 0 ? (React.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx(css$1g.root, props.cx), hideLabel: true })) : (React.createElement(IndeterminateBar, { ref: ref, cx: cx(css$1g.root, props.cx) }));
|
|
1722
|
+
});
|
|
1723
|
+
|
|
1724
|
+
var css$1f = {"root":"qUeWV-"};
|
|
1725
|
+
|
|
1726
|
+
const StatusIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
1727
|
+
return (React__default.createElement("div", { ref: ref, className: cx([
|
|
1728
|
+
css$1f.root,
|
|
1729
|
+
`uui-size-${props.size || settings.statusIndicator.sizes.default}`,
|
|
1730
|
+
'uui-status_indicator',
|
|
1731
|
+
`uui-color-${props.color || 'neutral'}`,
|
|
1732
|
+
`uui-fill-${props.fill || 'solid'}`,
|
|
1733
|
+
props.cx,
|
|
1734
|
+
]) },
|
|
1735
|
+
React__default.createElement("div", { className: "uui-status_indicator-dot" }),
|
|
1736
|
+
React__default.createElement("p", { className: "uui-status_indicator-caption" }, props.caption)));
|
|
1737
|
+
});
|
|
1738
|
+
|
|
1739
|
+
var css$1e = {"root":"SSMIJB"};
|
|
1597
1740
|
|
|
1598
1741
|
function applyCheckboxMods(mods) {
|
|
1599
1742
|
return [
|
|
1600
|
-
css$
|
|
1743
|
+
css$1e.root,
|
|
1601
1744
|
`uui-size-${mods.size || settings.checkbox.sizes.default}`,
|
|
1602
1745
|
'uui-control-mode-' + (mods.mode || 'form'),
|
|
1603
1746
|
'uui-color-primary',
|
|
@@ -1611,11 +1754,11 @@ const applyUUICheckboxProps = (props) => {
|
|
|
1611
1754
|
};
|
|
1612
1755
|
const Checkbox = /* @__PURE__ */withMods(uuiComponents.Checkbox, applyCheckboxMods, applyUUICheckboxProps);
|
|
1613
1756
|
|
|
1614
|
-
var css$
|
|
1757
|
+
var css$1d = {"root":"sL80J9"};
|
|
1615
1758
|
|
|
1616
1759
|
function applyRadioInputMods(mods) {
|
|
1617
1760
|
return [
|
|
1618
|
-
css$
|
|
1761
|
+
css$1d.root,
|
|
1619
1762
|
`uui-size-${mods.size || settings.radioInput.sizes.default}`,
|
|
1620
1763
|
'uui-radio-input-container',
|
|
1621
1764
|
'uui-color-primary',
|
|
@@ -1623,11 +1766,11 @@ function applyRadioInputMods(mods) {
|
|
|
1623
1766
|
}
|
|
1624
1767
|
const RadioInput = /* @__PURE__ */withMods(RadioInput$1, applyRadioInputMods, (props) => ({ icon: props.icon ? props.icon : settings.radioInput.icons.dotIcon }));
|
|
1625
1768
|
|
|
1626
|
-
var css$
|
|
1769
|
+
var css$1c = {"root":"Yqq3Qx"};
|
|
1627
1770
|
|
|
1628
1771
|
function applySwitchMods(mods) {
|
|
1629
1772
|
return [
|
|
1630
|
-
css$
|
|
1773
|
+
css$1c.root,
|
|
1631
1774
|
`uui-size-${mods.size || settings.switch.sizes.default}`,
|
|
1632
1775
|
'uui-color-primary',
|
|
1633
1776
|
];
|
|
@@ -1647,7 +1790,7 @@ var EditMode;
|
|
|
1647
1790
|
EditMode["INLINE"] = "inline";
|
|
1648
1791
|
})(EditMode || (EditMode = {}));
|
|
1649
1792
|
|
|
1650
|
-
var textInputCss = {"root":"
|
|
1793
|
+
var textInputCss = {"root":"ZrE20o"};
|
|
1651
1794
|
|
|
1652
1795
|
const DEFAULT_MODE$3 = EditMode.FORM;
|
|
1653
1796
|
function applyTextInputMods(mods) {
|
|
@@ -1672,9 +1815,9 @@ const SearchInput = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
1672
1815
|
} }));
|
|
1673
1816
|
});
|
|
1674
1817
|
|
|
1675
|
-
var css$
|
|
1818
|
+
var css$1b = {"root":"M12JiO"};
|
|
1676
1819
|
|
|
1677
|
-
const ControlGroup = /* @__PURE__ */withMods(ControlGroup$1, () => [css$
|
|
1820
|
+
const ControlGroup = /* @__PURE__ */withMods(ControlGroup$1, () => [css$1b.root, 'uui-control-group']);
|
|
1678
1821
|
|
|
1679
1822
|
function MultiSwitchComponent(props, ref) {
|
|
1680
1823
|
return (React.createElement(ControlGroup, { ref: ref, rawProps: {
|
|
@@ -1688,13 +1831,13 @@ function MultiSwitchComponent(props, ref) {
|
|
|
1688
1831
|
}
|
|
1689
1832
|
const MultiSwitch = /* @__PURE__ */React.forwardRef(MultiSwitchComponent);
|
|
1690
1833
|
|
|
1691
|
-
var css$
|
|
1834
|
+
var css$1a = {"root":"Ipri2m"};
|
|
1692
1835
|
|
|
1693
1836
|
const DEFAULT_MODE$2 = EditMode.FORM;
|
|
1694
1837
|
function applyNumericInputMods(mods) {
|
|
1695
1838
|
return [
|
|
1696
1839
|
textInputCss.root,
|
|
1697
|
-
css$
|
|
1840
|
+
css$1a.root,
|
|
1698
1841
|
`uui-size-${mods.size || settings.numericInput.sizes.default}`,
|
|
1699
1842
|
'uui-control-mode-' + (mods.mode || DEFAULT_MODE$2),
|
|
1700
1843
|
];
|
|
@@ -1708,12 +1851,12 @@ const NumericInput = /* @__PURE__ */withMods(NumericInput$1, applyNumericInputMo
|
|
|
1708
1851
|
};
|
|
1709
1852
|
});
|
|
1710
1853
|
|
|
1711
|
-
var css$
|
|
1854
|
+
var css$19 = {"root":"tBbHl2"};
|
|
1712
1855
|
|
|
1713
1856
|
const DEFAULT_MODE$1 = EditMode.FORM;
|
|
1714
1857
|
function applyTextAreaMods(mods) {
|
|
1715
1858
|
return [
|
|
1716
|
-
css$
|
|
1859
|
+
css$19.root,
|
|
1717
1860
|
'uui-textarea',
|
|
1718
1861
|
'uui-size-' + (mods.size || settings.textArea.sizes.default),
|
|
1719
1862
|
'uui-control-mode-' + (mods.mode || DEFAULT_MODE$1),
|
|
@@ -1749,18 +1892,18 @@ function TREE_SHAKEABLE_INIT$1() {
|
|
|
1749
1892
|
};
|
|
1750
1893
|
}
|
|
1751
1894
|
|
|
1752
|
-
var css$
|
|
1895
|
+
var css$18 = {"root":"tVEelg"};
|
|
1753
1896
|
|
|
1754
1897
|
function applyDropdownContainerMods(mods) {
|
|
1755
1898
|
return [
|
|
1756
|
-
css$
|
|
1899
|
+
css$18.root,
|
|
1757
1900
|
mods.vPadding && `vPadding-${mods.vPadding}`,
|
|
1758
1901
|
mods.padding && `padding-${mods.padding}`,
|
|
1759
1902
|
];
|
|
1760
1903
|
}
|
|
1761
1904
|
const DropdownContainer = /* @__PURE__ */withMods(uuiComponents.DropdownContainer, applyDropdownContainerMods);
|
|
1762
1905
|
|
|
1763
|
-
var css$
|
|
1906
|
+
var css$17 = {"root":"v6lTlF","timepicker-input":"snWvI4","timepickerInput":"snWvI4","ltr-always":"ZOQ3cu","ltrAlways":"ZOQ3cu"};
|
|
1764
1907
|
|
|
1765
1908
|
const uuiTimePicker = {
|
|
1766
1909
|
container: 'uui-timepicker-container',
|
|
@@ -1799,8 +1942,8 @@ function TimePickerBody(props) {
|
|
|
1799
1942
|
const minutesToSubtract = value.minute() % minutesStep === 0 ? minutesStep : value.minute() % minutesStep;
|
|
1800
1943
|
onMinutesChange(value.subtract(minutesToSubtract, 'm').minute());
|
|
1801
1944
|
};
|
|
1802
|
-
return (React.createElement("div", { className: cx$1(css$
|
|
1803
|
-
React.createElement("div", { className: css$
|
|
1945
|
+
return (React.createElement("div", { className: cx$1(css$17.root, uuiTimePicker.container, props.cx), ref: props.forwardedRef, ...props.rawProps },
|
|
1946
|
+
React.createElement("div", { className: css$17.ltrAlways },
|
|
1804
1947
|
React.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
1805
1948
|
React.createElement(IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment hours' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$P, onClick: () => onHoursChange(uuiDayjs.dayjs().set(props.value).add(1, 'h').hour()) }),
|
|
1806
1949
|
React.createElement(NumericInput$1, { cx: uuiTimePicker.input, onValueChange: onHoursChange, value: +(uuiDayjs.dayjs()
|
|
@@ -1943,7 +2086,7 @@ function TimePickerComponent(props, ref) {
|
|
|
1943
2086
|
state.value && state.inputValue && saveTime(state.value);
|
|
1944
2087
|
};
|
|
1945
2088
|
const renderInput = (inputProps) => {
|
|
1946
|
-
return (React__default.createElement(TextInput, { ...inputProps, onClick: null, size: props.size, isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, cx: [css$
|
|
2089
|
+
return (React__default.createElement(TextInput, { ...inputProps, onClick: null, size: props.size, isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, cx: [css$17.root, css$17.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 }));
|
|
1947
2090
|
};
|
|
1948
2091
|
const renderBody = (bodyProps) => {
|
|
1949
2092
|
const { forwardedRef, onValueChange, ...timePickerBodyProps } = props;
|
|
@@ -1954,37 +2097,37 @@ function TimePickerComponent(props, ref) {
|
|
|
1954
2097
|
}
|
|
1955
2098
|
const TimePicker = /* @__PURE__ */React__default.forwardRef(TimePickerComponent);
|
|
1956
2099
|
|
|
1957
|
-
var css$
|
|
2100
|
+
var css$16 = {"root":"MmwXUN"};
|
|
1958
2101
|
|
|
1959
2102
|
function applyInputAddonMods() {
|
|
1960
2103
|
return [
|
|
1961
|
-
css$
|
|
2104
|
+
css$16.root,
|
|
1962
2105
|
];
|
|
1963
2106
|
}
|
|
1964
2107
|
const InputAddon = /* @__PURE__ */withMods(InputAddon$1, applyInputAddonMods);
|
|
1965
2108
|
|
|
1966
|
-
var css$
|
|
2109
|
+
var css$15 = {"root":"eD3ydC"};
|
|
1967
2110
|
|
|
1968
2111
|
function applySliderMods() {
|
|
1969
|
-
return [css$
|
|
2112
|
+
return [css$15.root, 'uui-color-neutral'];
|
|
1970
2113
|
}
|
|
1971
2114
|
const Slider = /* @__PURE__ */withMods(Slider$1, applySliderMods);
|
|
1972
2115
|
|
|
1973
|
-
var css$
|
|
2116
|
+
var css$14 = {"root":"_4AmZXx"};
|
|
1974
2117
|
|
|
1975
2118
|
function applyTooltipMods(mods) {
|
|
1976
2119
|
return [
|
|
1977
|
-
css$
|
|
2120
|
+
css$14.root,
|
|
1978
2121
|
`uui-color-${mods.color || 'inverted'}`,
|
|
1979
2122
|
];
|
|
1980
2123
|
}
|
|
1981
2124
|
const Tooltip = /* @__PURE__ */withMods(uuiComponents.Tooltip, applyTooltipMods);
|
|
1982
2125
|
|
|
1983
|
-
var css$
|
|
2126
|
+
var css$13 = {"root":"Cxs-JE","tooltip":"oYTMu4"};
|
|
1984
2127
|
|
|
1985
2128
|
function applyRatingMods(mods) {
|
|
1986
2129
|
return [
|
|
1987
|
-
css$
|
|
2130
|
+
css$13.root,
|
|
1988
2131
|
`uui-size-${mods.size || settings.rating.sizes.default}`,
|
|
1989
2132
|
];
|
|
1990
2133
|
}
|
|
@@ -1994,17 +2137,94 @@ const Rating = /* @__PURE__ */withMods(uuiComponents.Rating, applyRatingMods, (p
|
|
|
1994
2137
|
Tooltip,
|
|
1995
2138
|
}));
|
|
1996
2139
|
|
|
1997
|
-
var css$
|
|
2140
|
+
var css$12 = {"drag-handle-wrapper":"O9g2nI","dragHandleWrapper":"O9g2nI","with-indent":"uDs70V","withIndent":"uDs70V","drag-handle":"b0Eh-1","dragHandle":"b0Eh-1","icon-container":"I62G80","iconContainer":"I62G80"};
|
|
1998
2141
|
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2142
|
+
function DataRowAddons(props) {
|
|
2143
|
+
const row = props.rowProps;
|
|
2144
|
+
const getIndent = () => {
|
|
2145
|
+
return (row.indent - 1) * settings.dataTable.sizes.body.indentUnitMap[props.size || settings.dataTable.sizes.body.row];
|
|
2146
|
+
};
|
|
2147
|
+
const getWidth = () => {
|
|
2148
|
+
return settings.dataTable.sizes.body.indentWidthMap[props.size || settings.dataTable.sizes.body.row];
|
|
2149
|
+
};
|
|
2150
|
+
const renderDragHandle = () => {
|
|
2151
|
+
if (props.renderDragHandle) {
|
|
2152
|
+
return props.renderDragHandle({ rowProps: props.rowProps, eventHandlers: props.eventHandlers });
|
|
2153
|
+
}
|
|
2154
|
+
return (React__default.createElement("div", { key: "dh", className: cx(css$12.dragHandleWrapper, row.indent > 0 && css$12.withIndent), style: { width: row.indent > 0 ? (getIndent() + getWidth()) : 0 }, ...props.eventHandlers },
|
|
2155
|
+
React__default.createElement(DragHandle, { cx: css$12.dragHandle })));
|
|
2156
|
+
};
|
|
2157
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
2158
|
+
row.dnd?.srcData && renderDragHandle(),
|
|
2159
|
+
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 })),
|
|
2160
|
+
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: {
|
|
2161
|
+
'aria-label': row.isFolded ? 'Unfold' : 'Fold',
|
|
2162
|
+
role: 'button',
|
|
2163
|
+
}, key: "icon", icon: settings.dataTable.icons.body.foldingIcon, cx: [
|
|
2164
|
+
uuiElement.foldingArrow, uuiMarkers.clickable, css$12.iconContainer,
|
|
2165
|
+
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row), size: settings.dataTable.sizes.body.iconMap[props.size || settings.dataTable.sizes.body.row] }))))));
|
|
2166
|
+
}
|
|
2167
|
+
|
|
2168
|
+
function VerticalTabButtonComponent(props, ref) {
|
|
2169
|
+
const { isActive } = useIsActive({
|
|
2170
|
+
isLinkActive: props.isLinkActive,
|
|
2171
|
+
link: props.link,
|
|
2172
|
+
isActive: props.isActive,
|
|
2173
|
+
});
|
|
2174
|
+
const styles = [
|
|
2175
|
+
css$1n.root,
|
|
2176
|
+
'uui-vertical-tab-button',
|
|
2177
|
+
`uui-size-${props.size || settings.verticalTabButton.sizes.default}`,
|
|
2178
|
+
isActive && uuiMod.active,
|
|
2179
|
+
props.indent > 0 && css$1n.noLeftPadding,
|
|
2180
|
+
!props.onClick && props.onFold && css$1n.onlyFoldable,
|
|
2181
|
+
...getIconClass(props),
|
|
2182
|
+
props.cx,
|
|
2183
|
+
];
|
|
2184
|
+
if (props.count !== undefined && props.count !== null) {
|
|
2185
|
+
devLogger.warn('VerticalTabButton: count prop is deprecated. Use renderAddons prop instead.');
|
|
2186
|
+
}
|
|
2187
|
+
if (props.onClear !== undefined && props.onClear !== null) {
|
|
2188
|
+
devLogger.warn('VerticalTabButton: onClear prop is deprecated. Use renderAddons prop instead.');
|
|
2189
|
+
}
|
|
2190
|
+
if (props.clearIcon !== undefined && props.clearIcon !== null) {
|
|
2191
|
+
devLogger.warn('VerticalTabButton: clearIcon prop is deprecated. Use renderAddons prop instead.');
|
|
2192
|
+
}
|
|
2193
|
+
const DropdownIcon = props.dropdownIcon ? props.dropdownIcon : settings.verticalTabButton.icons.dropdownIcon;
|
|
2194
|
+
const ClearIcon = props.clearIcon ? props.clearIcon : settings.verticalTabButton.icons.clearIcon;
|
|
2195
|
+
return (React__default.createElement(Clickable, { ...props, onClick: props.onClick || props.onFold, rawProps: {
|
|
2196
|
+
role: 'tab',
|
|
2197
|
+
...props.rawProps,
|
|
2198
|
+
}, cx: styles, ref: ref },
|
|
2199
|
+
props.indent > 0 && (React__default.createElement("div", { key: "fold", className: cx$1(css$1n.foldingArea, props.onFold && uuiMarkers.clickable), style: { '--uui-folding-indent': `${props.indent - 1}` }, onClick: props.onFold }, props.isFoldable && (React__default.createElement(IconContainer, { rawProps: {
|
|
2200
|
+
'aria-label': props.isFolded ? 'Unfold' : 'Fold',
|
|
2201
|
+
role: 'button',
|
|
2202
|
+
}, key: "icon", icon: settings.verticalTabButton.icons.foldingIcon, cx: [
|
|
2203
|
+
uuiElement.foldingArrow, css$1n.iconContainer,
|
|
2204
|
+
], rotate: props.isFolded ? '90ccw' : '0', size: settings.dataTable.sizes.body.iconMap[props.size || settings.dataTable.sizes.body.row] })))),
|
|
2205
|
+
props.icon && props.iconPosition !== 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
2206
|
+
(props.caption || props.withNotify) && (React__default.createElement("div", { className: css$1n.captionWrapper },
|
|
2207
|
+
props.caption && React__default.createElement("div", { className: cx$1(uuiElement.caption, `uui-vertical-tab-button-weight-${props.weight || settings.verticalTabButton.weight}`) }, props.caption),
|
|
2208
|
+
props.withNotify && React__default.createElement("div", { className: css$1n.withNotify }))),
|
|
2209
|
+
props.icon && props.iconPosition === 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
2210
|
+
props.count !== undefined && props.count !== null && (React__default.createElement(CountIndicator, { color: "neutral", size: settings.verticalTabButton.sizes.countIndicatorMap[props.size || settings.verticalTabButton.sizes.default], caption: props.count })),
|
|
2211
|
+
props.isDropdown && (React__default.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
2212
|
+
props.onClear && !props.isDisabled && (React__default.createElement(IconContainer, { cx: uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear })),
|
|
2213
|
+
props.renderAddons && props.renderAddons()));
|
|
2214
|
+
}
|
|
2215
|
+
const VerticalTabButton = /* @__PURE__ */React__default.forwardRef(VerticalTabButtonComponent);
|
|
2216
|
+
|
|
2217
|
+
var css$11 = {"root":"Q2076c","main-path":"PtWhns","mainPath":"PtWhns","content-wrapper":"q0DVA2","contentWrapper":"q0DVA2","content":"lA2ze0","action-wrapper":"EVYECe","actionWrapper":"EVYECe","icon-wrapper":"oVoOfy","iconWrapper":"oVoOfy","icon":"Mqzicb","close-icon":"ZezkoQ","closeIcon":"ZezkoQ"};
|
|
2218
|
+
|
|
2219
|
+
const Alert = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement("div", { role: "alert", ref: ref, className: cx('uui-alert', css$11.root, props.color && `uui-color-${props.color}`, props.cx, `uui-size-${props.size || settings.alert.sizes.default}`), ...props.rawProps },
|
|
2220
|
+
React.createElement("div", { className: css$11.mainPath },
|
|
2221
|
+
React.createElement("div", { className: css$11.contentWrapper },
|
|
2222
|
+
props.icon && (React.createElement("div", { className: css$11.iconWrapper },
|
|
2223
|
+
React.createElement(IconContainer, { icon: props.icon, cx: css$11.icon }))),
|
|
2224
|
+
React.createElement("div", { className: css$11.content },
|
|
2005
2225
|
props.children,
|
|
2006
|
-
props.actions && (React.createElement("div", { className: css$
|
|
2007
|
-
props.onClose && React.createElement(IconButton, { icon: settings.alert.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$
|
|
2226
|
+
props.actions && (React.createElement("div", { className: css$11.actionWrapper }, props.actions.map((action) => (React.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$11.actionLink, size: settings.alert.sizes.actionMap[props.size || settings.alert.sizes.default] }))))))),
|
|
2227
|
+
props.onClose && React.createElement(IconButton, { icon: settings.alert.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$11.closeIcon })))));
|
|
2008
2228
|
const WarningAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, { icon: settings.alert.icons.warningIcon, color: "warning", ref: ref, ...props }));
|
|
2009
2229
|
const SuccessAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, { icon: settings.alert.icons.successIcon, color: "success", ref: ref, ...props }));
|
|
2010
2230
|
const HintAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, { icon: settings.alert.icons.infoIcon, color: "info", ref: ref, ...props }));
|
|
@@ -2012,7 +2232,7 @@ const ErrorAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createE
|
|
|
2012
2232
|
|
|
2013
2233
|
const Dropdown = /* @__PURE__ */withMods(Dropdown$1);
|
|
2014
2234
|
|
|
2015
|
-
var css$
|
|
2235
|
+
var css$10 = {"submenu-root-item-rtl":"YpFLUa","submenuRootItemRtl":"YpFLUa","icon-after":"NhGFmF","iconAfter":"NhGFmF","submenu-root-item":"_7--gFj","submenuRootItem":"_7--gFj","icon-check":"mnjr0c","iconCheck":"mnjr0c","splitter-root":"fHWLWD","splitterRoot":"fHWLWD","splitter":"IJDpbg","header-root":"-rFZXp","headerRoot":"-rFZXp","item-root":"APUUt-","itemRoot":"APUUt-","icon":"_7og0ci","link":"_1Nzp0S","indent":"Zawp1N","selected-mark":"ptEhwV","selectedMark":"ptEhwV"};
|
|
2016
2236
|
|
|
2017
2237
|
var IDropdownControlKeys;
|
|
2018
2238
|
(function (IDropdownControlKeys) {
|
|
@@ -2077,29 +2297,29 @@ const DropdownMenuButton = /* @__PURE__ */React__default.forwardRef((props, ref)
|
|
|
2077
2297
|
const getMenuButtonContent = () => {
|
|
2078
2298
|
const isIconBefore = Boolean(icon && iconPosition !== 'right');
|
|
2079
2299
|
const isIconAfter = Boolean(icon && iconPosition === 'right');
|
|
2080
|
-
const iconElement = (React__default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: cx$1(css$
|
|
2300
|
+
const iconElement = (React__default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: cx$1(css$10.icon, iconPosition === 'right' ? css$10.iconAfter : css$10.iconBefore) }));
|
|
2081
2301
|
return (React__default.createElement(React__default.Fragment, null,
|
|
2082
2302
|
isIconBefore && iconElement,
|
|
2083
|
-
React__default.createElement(Text$1, { cx: props.indent && css$
|
|
2303
|
+
React__default.createElement(Text$1, { cx: props.indent && css$10.indent }, caption),
|
|
2084
2304
|
isIconAfter && (React__default.createElement(React__default.Fragment, null,
|
|
2085
2305
|
React__default.createElement(FlexSpacer, null),
|
|
2086
2306
|
iconElement))));
|
|
2087
2307
|
};
|
|
2088
2308
|
const isAnchor = Boolean(link || href);
|
|
2089
|
-
const itemClassNames = cx$1(props.cx, css$
|
|
2090
|
-
return isAnchor ? (React__default.createElement(Anchor$1, { cx: cx$1(css$
|
|
2309
|
+
const itemClassNames = cx$1(props.cx, css$10.itemRoot, isDisabled && uuiMod.disabled, isActive && uuiMod.active, isOpen && uuiMod.opened, (!isDisabled && onClick) && uuiMarkers.clickable);
|
|
2310
|
+
return isAnchor ? (React__default.createElement(Anchor$1, { cx: cx$1(css$10.link, itemClassNames), link: link, href: href, rawProps: { role: 'menuitem', tabIndex: isDisabled ? -1 : 0 }, onClick: handleClick, 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 },
|
|
2091
2311
|
getMenuButtonContent(),
|
|
2092
2312
|
isSelected && (React__default.createElement(React__default.Fragment, null,
|
|
2093
2313
|
React__default.createElement(FlexSpacer, null),
|
|
2094
|
-
React__default.createElement(IconContainer, { icon: settings.dropdownMenu.icons.acceptIcon, cx: css$
|
|
2314
|
+
React__default.createElement(IconContainer, { icon: settings.dropdownMenu.icons.acceptIcon, cx: css$10.selectedMark })))));
|
|
2095
2315
|
});
|
|
2096
2316
|
function DropdownMenuSplitter(props) {
|
|
2097
|
-
return (React__default.createElement("div", { className: cx$1(props.cx, css$
|
|
2098
|
-
React__default.createElement("hr", { className: css$
|
|
2317
|
+
return (React__default.createElement("div", { className: cx$1(props.cx, css$10.splitterRoot) },
|
|
2318
|
+
React__default.createElement("hr", { className: css$10.splitter })));
|
|
2099
2319
|
}
|
|
2100
2320
|
function DropdownMenuHeader(props) {
|
|
2101
|
-
return (React__default.createElement("div", { className: cx$1('uui-dropdown-menu-header', props.cx, css$
|
|
2102
|
-
React__default.createElement("span", { className: css$
|
|
2321
|
+
return (React__default.createElement("div", { className: cx$1('uui-dropdown-menu-header', props.cx, css$10.headerRoot) },
|
|
2322
|
+
React__default.createElement("span", { className: css$10.header }, props.caption)));
|
|
2103
2323
|
}
|
|
2104
2324
|
function DropdownSubMenu(props) {
|
|
2105
2325
|
const subMenuMiddleware = [
|
|
@@ -2114,7 +2334,7 @@ function DropdownSubMenu(props) {
|
|
|
2114
2334
|
}),
|
|
2115
2335
|
];
|
|
2116
2336
|
const isRtl = getDir() === 'rtl';
|
|
2117
|
-
return (React__default.createElement(Dropdown$1, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", openDelay: 400, closeDelay: 400, placement: isRtl ? 'left-start' : 'right-start', middleware: subMenuMiddleware, 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$
|
|
2337
|
+
return (React__default.createElement(Dropdown$1, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", openDelay: 400, closeDelay: 400, placement: isRtl ? 'left-start' : 'right-start', middleware: subMenuMiddleware, 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$10.submenuRootItemRtl : css$10.submenuRootItem), icon: settings.dropdownMenu.icons.dropdownIcon, iconPosition: "right", isDropdown: true, toggleDropdownOpening: toggleDropdownOpening, ...props, ...targetProps })) }));
|
|
2118
2338
|
}
|
|
2119
2339
|
function DropdownMenuSwitchButton(props) {
|
|
2120
2340
|
const context = useContext(UuiContext);
|
|
@@ -2130,29 +2350,29 @@ function DropdownMenuSwitchButton(props) {
|
|
|
2130
2350
|
onHandleValueChange(!isSelected);
|
|
2131
2351
|
}
|
|
2132
2352
|
};
|
|
2133
|
-
return (React__default.createElement("div", { className: cx$1(props.cx, css$
|
|
2134
|
-
icon && React__default.createElement(IconContainer, { icon: icon, cx: css$
|
|
2353
|
+
return (React__default.createElement("div", { className: cx$1(props.cx, css$10.itemRoot, isDisabled && uuiMod.disabled, (!isDisabled || onValueChange) && uuiMarkers.clickable), onClick: () => onHandleValueChange(!isSelected), role: "menuitem", onKeyDown: handleKeySelect, tabIndex: isDisabled ? -1 : 0 },
|
|
2354
|
+
icon && React__default.createElement(IconContainer, { icon: icon, cx: css$10.iconBefore }),
|
|
2135
2355
|
React__default.createElement(Text$1, null, caption),
|
|
2136
2356
|
React__default.createElement(FlexSpacer, null),
|
|
2137
2357
|
React__default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
2138
2358
|
}
|
|
2139
2359
|
|
|
2140
|
-
var css
|
|
2360
|
+
var css$$ = {"root":"mVBoLW","mode-block":"xr5Q3f","modeBlock":"xr5Q3f","mode-inline":"UZQL88","modeInline":"UZQL88","padding-0":"vIjOHF","padding0":"vIjOHF","padding-6":"FByQid","padding6":"FByQid","padding-12":"_2gjjpE","padding12":"_2gjjpE","padding-18":"_0ZnoQj","padding18":"_0ZnoQj"};
|
|
2141
2361
|
|
|
2142
2362
|
function applyAccordionMods(mods) {
|
|
2143
2363
|
return [
|
|
2144
|
-
css
|
|
2145
|
-
css
|
|
2146
|
-
mods.padding && css
|
|
2364
|
+
css$$.root,
|
|
2365
|
+
css$$[`mode-${mods.mode || 'block'}`],
|
|
2366
|
+
mods.padding && css$$['padding-' + mods.padding],
|
|
2147
2367
|
];
|
|
2148
2368
|
}
|
|
2149
2369
|
const Accordion = /* @__PURE__ */withMods(uuiComponents.Accordion, applyAccordionMods, (mods) => ({
|
|
2150
2370
|
dropdownIcon: mods.dropdownIcon !== null && settings.accordion.icons.dropdownIcon,
|
|
2151
2371
|
}));
|
|
2152
2372
|
|
|
2153
|
-
var css$
|
|
2373
|
+
var css$_ = {"root":"or-LGB","align-items":"gQavrR","alignItems":"gQavrR","justify-content":"_5R-bAR","justifyContent":"_5R-bAR","border-top":"EXawvI","borderTop":"EXawvI","border-bottom":"Jr1DA2","borderBottom":"Jr1DA2","top-shadow":"mLDNO8","topShadow":"mLDNO8","padding":"ocwUAY","margin":"_1F822J","vPadding":"hPOXwK","column-gap":"_8fcsP9","columnGap":"_8fcsP9","row-gap":"_0CBol8","rowGap":"_0CBol8","spacing":"axRVsv"};
|
|
2154
2374
|
|
|
2155
|
-
const FlexCell = /* @__PURE__ */withMods(FlexCell$1, () => [css$
|
|
2375
|
+
const FlexCell = /* @__PURE__ */withMods(FlexCell$1, () => [css$_.flexCell]);
|
|
2156
2376
|
|
|
2157
2377
|
const FlexRow = /* @__PURE__ */forwardRef((props, ref) => {
|
|
2158
2378
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -2161,22 +2381,22 @@ const FlexRow = /* @__PURE__ */forwardRef((props, ref) => {
|
|
|
2161
2381
|
}
|
|
2162
2382
|
}
|
|
2163
2383
|
const classNames = cx$1([
|
|
2164
|
-
css$
|
|
2384
|
+
css$_.root,
|
|
2165
2385
|
'uui-flex-row',
|
|
2166
2386
|
props.onClick && uuiMarkers.clickable,
|
|
2167
2387
|
props.cx,
|
|
2168
2388
|
props.size !== null && 'uui-size-' + (props.size || settings.flexRow.sizes.default),
|
|
2169
|
-
props.alignItems && css$
|
|
2170
|
-
props.justifyContent && css$
|
|
2171
|
-
props.padding && css$
|
|
2172
|
-
props.vPadding && css$
|
|
2173
|
-
props.margin && css$
|
|
2174
|
-
props.topShadow && css$
|
|
2175
|
-
props.borderBottom && css$
|
|
2176
|
-
props.borderTop && css$
|
|
2177
|
-
props.columnGap && css$
|
|
2178
|
-
props.rowGap && css$
|
|
2179
|
-
props.spacing && css$
|
|
2389
|
+
props.alignItems && css$_.alignItems,
|
|
2390
|
+
props.justifyContent && css$_.justifyContent,
|
|
2391
|
+
props.padding && css$_.padding,
|
|
2392
|
+
props.vPadding && css$_.vPadding,
|
|
2393
|
+
props.margin && css$_.margin,
|
|
2394
|
+
props.topShadow && css$_.topShadow,
|
|
2395
|
+
props.borderBottom && css$_.borderBottom,
|
|
2396
|
+
props.borderTop && css$_.borderTop,
|
|
2397
|
+
props.columnGap && css$_.columnGap,
|
|
2398
|
+
props.rowGap && css$_.rowGap,
|
|
2399
|
+
props.spacing && css$_.spacing,
|
|
2180
2400
|
props.background && `uui-flex-row-bg-${props.background}`,
|
|
2181
2401
|
]);
|
|
2182
2402
|
let alignItemsValue = props.alignItems;
|
|
@@ -2202,22 +2422,22 @@ const FlexRow = /* @__PURE__ */forwardRef((props, ref) => {
|
|
|
2202
2422
|
} }, props.children));
|
|
2203
2423
|
});
|
|
2204
2424
|
|
|
2205
|
-
var css$
|
|
2425
|
+
var css$Z = {"root":"_0HdaRS","margin-24":"wscOss","margin24":"wscOss","padding-12":"TW7e6A","padding12":"TW7e6A","padding-24":"VANOgE","padding24":"VANOgE","shadow":"yIWjTA","uui-surface-main":"G8-rfN","uuiSurfaceMain":"G8-rfN"};
|
|
2206
2426
|
|
|
2207
2427
|
const Panel = /* @__PURE__ */withMods(VPanel, (props) => [
|
|
2208
2428
|
'uui-panel',
|
|
2209
|
-
css$
|
|
2210
|
-
props.shadow && css$
|
|
2211
|
-
props.margin && css$
|
|
2212
|
-
props.background && css$
|
|
2429
|
+
css$Z.root,
|
|
2430
|
+
props.shadow && css$Z.shadow,
|
|
2431
|
+
props.margin && css$Z['margin-' + props.margin],
|
|
2432
|
+
props.background && css$Z[`uui-${props.background}`],
|
|
2213
2433
|
]);
|
|
2214
2434
|
|
|
2215
|
-
var css$
|
|
2435
|
+
var css$Y = {"root":"OpdXDI"};
|
|
2216
2436
|
|
|
2217
2437
|
function applyLabeledInputMods(mods) {
|
|
2218
2438
|
return [
|
|
2219
2439
|
'uui-labeled-input',
|
|
2220
|
-
css$
|
|
2440
|
+
css$Y.root,
|
|
2221
2441
|
'uui-size-' + (mods.size || settings.labeledInput.sizes.default),
|
|
2222
2442
|
];
|
|
2223
2443
|
}
|
|
@@ -2229,7 +2449,7 @@ function applyLabeledInputProps(props) {
|
|
|
2229
2449
|
}
|
|
2230
2450
|
const LabeledInput = /* @__PURE__ */withMods(uuiComponents.LabeledInput, applyLabeledInputMods, applyLabeledInputProps);
|
|
2231
2451
|
|
|
2232
|
-
var css$
|
|
2452
|
+
var css$X = {"root":"A-FGtz"};
|
|
2233
2453
|
|
|
2234
2454
|
function RadioGroup(props) {
|
|
2235
2455
|
const direction = props.direction || 'vertical';
|
|
@@ -2238,22 +2458,22 @@ function RadioGroup(props) {
|
|
|
2238
2458
|
props.onValueChange(newVal);
|
|
2239
2459
|
}
|
|
2240
2460
|
};
|
|
2241
|
-
return (React.createElement("fieldset", { ref: props.forwardedRef, className: cx$1(css$
|
|
2461
|
+
return (React.createElement("fieldset", { ref: props.forwardedRef, className: cx$1(css$X.root, directionMode[direction], props.cx), onFocus: props.onFocus, onBlur: props.onBlur, ...props.rawProps }, props.items.map((i) => {
|
|
2242
2462
|
const { id, name, renderName, ...restItemProps } = i;
|
|
2243
2463
|
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 }));
|
|
2244
2464
|
})));
|
|
2245
2465
|
}
|
|
2246
2466
|
|
|
2247
|
-
var css$
|
|
2467
|
+
var css$W = {"root":"oxpPtB"};
|
|
2248
2468
|
|
|
2249
2469
|
function applyScrollBarsMods() {
|
|
2250
2470
|
return [
|
|
2251
|
-
css$
|
|
2471
|
+
css$W.root, 'uui-scroll-bars', 'uui-shadow-top', 'uui-shadow-bottom',
|
|
2252
2472
|
];
|
|
2253
2473
|
}
|
|
2254
2474
|
const ScrollBars = /* @__PURE__ */withMods(ScrollBars$1, applyScrollBarsMods);
|
|
2255
2475
|
|
|
2256
|
-
var css$
|
|
2476
|
+
var css$V = {"scroll-container":"_5eIPxb","scrollContainer":"_5eIPxb","list-container":"nkQnrp","listContainer":"nkQnrp"};
|
|
2257
2477
|
|
|
2258
2478
|
const VirtualList = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
2259
2479
|
const { listContainerRef, offsetY, handleScroll, estimatedHeight, scrollContainerRef, } = useVirtualList({
|
|
@@ -2267,7 +2487,7 @@ const VirtualList = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
2267
2487
|
const scrollShadows = useScrollShadows({ root: scrollContainerRef.current });
|
|
2268
2488
|
const renderRows = () => props.renderRows?.({
|
|
2269
2489
|
listContainerRef, estimatedHeight, offsetY, scrollShadows,
|
|
2270
|
-
}) || (React.createElement("div", { className: css$
|
|
2490
|
+
}) || (React.createElement("div", { className: css$V.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
2271
2491
|
React.createElement("div", { ref: listContainerRef, role: props.role, style: { marginTop: offsetY } }, props.rows)));
|
|
2272
2492
|
const renderView = ({ style }) => (React.createElement(VirtualListView, { isLoading: props.isLoading, style: style, rawProps: props.rawProps, renderBlocker: props.renderBlocker }));
|
|
2273
2493
|
const scrollBarsRef = React.useCallback((scrollbars) => {
|
|
@@ -2275,7 +2495,7 @@ const VirtualList = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
2275
2495
|
return;
|
|
2276
2496
|
scrollContainerRef.current = scrollbars.container.firstChild;
|
|
2277
2497
|
}, []);
|
|
2278
|
-
return (React.createElement(ScrollBars, { cx: cx$1(css$
|
|
2498
|
+
return (React.createElement(ScrollBars, { cx: cx$1(css$V.scrollContainer, props.cx, {
|
|
2279
2499
|
[uuiMarkers.scrolledLeft]: scrollShadows.horizontalLeft,
|
|
2280
2500
|
[uuiMarkers.scrolledRight]: scrollShadows.horizontalRight,
|
|
2281
2501
|
[uuiMarkers.scrolledTop]: scrollShadows.verticalTop,
|
|
@@ -2297,7 +2517,35 @@ const VirtualListView = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
2297
2517
|
props.renderBlocker ? props.renderBlocker({ isLoading: props.isLoading }) : React.createElement(Blocker, { isEnabled: props.isLoading })));
|
|
2298
2518
|
});
|
|
2299
2519
|
|
|
2300
|
-
|
|
2520
|
+
const RichTextView = /* @__PURE__ */withMods(uuiComponents.RichTextView, (mods) => ['uui-typography', `uui-typography-size-${mods.size || settings.richTextView.sizes.default}`]);
|
|
2521
|
+
|
|
2522
|
+
function TreeRowRenderer(props) {
|
|
2523
|
+
const { row, size } = props;
|
|
2524
|
+
const handleClick = React.useCallback(() => {
|
|
2525
|
+
const cb = row.onClick || row.onSelect;
|
|
2526
|
+
if (cb && !row.isDisabled) {
|
|
2527
|
+
cb(row);
|
|
2528
|
+
}
|
|
2529
|
+
}, [row]);
|
|
2530
|
+
const handleFold = React.useCallback(() => row.onFold && row.onFold(row), [row]);
|
|
2531
|
+
const renderAddons = React.useCallback(() => props.renderAddons && props.renderAddons(row), [props.renderAddons, row]);
|
|
2532
|
+
const isActive = row.isSelected;
|
|
2533
|
+
const getCaption = React.useCallback((value) => {
|
|
2534
|
+
return props.getCaption(value);
|
|
2535
|
+
}, [props.getCaption]);
|
|
2536
|
+
return (React.createElement(VerticalTabButton, { ...row, isActive: isActive, caption: row.isLoading ? React.createElement(TextPlaceholder, null) : getCaption(row.value), size: size, onClick: (row.onClick || row.onSelect) ? handleClick : undefined, link: row.link, onFold: row.onFold ? handleFold : undefined, weight: (row.isChildrenSelected || row.isSelected || isActive) ? 'semibold' : 'regular', renderAddons: renderAddons }));
|
|
2537
|
+
}
|
|
2538
|
+
const MemoizedTreeRowRenderer = /* @__PURE__ */React.memo(TreeRowRenderer);
|
|
2539
|
+
function Tree(props) {
|
|
2540
|
+
const { view, renderRow, size = '36', cx: propsCx, value, onValueChange, } = props;
|
|
2541
|
+
const rows = view.getVisibleRows();
|
|
2542
|
+
const rowsCount = view.getListProps().rowsCount ?? rows.length;
|
|
2543
|
+
const renderRowFunction = renderRow || (({ key, ...row }) => (React.createElement(MemoizedTreeRowRenderer, { key: key, row: row, size: size, getCaption: props.getCaption, renderAddons: props.renderAddons })));
|
|
2544
|
+
const renderedRows = useMemo(() => rows.map((row) => renderRowFunction(row)), [rows, renderRowFunction, size]);
|
|
2545
|
+
return (React.createElement(VirtualList, { value: value, onValueChange: onValueChange, rowsCount: rowsCount, rows: renderedRows, cx: cx$1(propsCx), role: "tree" }));
|
|
2546
|
+
}
|
|
2547
|
+
|
|
2548
|
+
var css$U = {"root":"ZWH4Jq"};
|
|
2301
2549
|
|
|
2302
2550
|
function CheckboxGroup(props) {
|
|
2303
2551
|
const currentValue = props.value || [];
|
|
@@ -2313,16 +2561,16 @@ function CheckboxGroup(props) {
|
|
|
2313
2561
|
}
|
|
2314
2562
|
props.onValueChange(newSelection);
|
|
2315
2563
|
};
|
|
2316
|
-
return (React.createElement("fieldset", { ref: props.forwardedRef, className: cx$1(css$
|
|
2564
|
+
return (React.createElement("fieldset", { ref: props.forwardedRef, className: cx$1(css$U.root, directionMode[direction], props.cx), ...props.rawProps }, props.items.map((i) => {
|
|
2317
2565
|
const { id, name, renderName, ...restItemProps } = i;
|
|
2318
2566
|
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 }));
|
|
2319
2567
|
})));
|
|
2320
2568
|
}
|
|
2321
2569
|
|
|
2322
|
-
var css$
|
|
2570
|
+
var css$T = {"root":"uJElha","modal-blocker":"xYD5eb","modalBlocker":"xYD5eb","animateModalBlocker":"s6L8sR","modal":"buo8iX","modal-footer":"_1-Stuw","modalFooter":"_1-Stuw","border-top":"gA2QOE","borderTop":"gA2QOE","modal-header":"lMLcm5","modalHeader":"lMLcm5","border-bottom":"sulsSn","borderBottom":"sulsSn"};
|
|
2323
2571
|
|
|
2324
|
-
const ModalBlocker = /* @__PURE__ */withMods(ModalBlocker$1, () => [css$
|
|
2325
|
-
const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css$
|
|
2572
|
+
const ModalBlocker = /* @__PURE__ */withMods(ModalBlocker$1, () => [css$T.modalBlocker]);
|
|
2573
|
+
const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css$T.root, css$T.modal], (props) => {
|
|
2326
2574
|
const width = props.width;
|
|
2327
2575
|
const height = props.height || 'auto';
|
|
2328
2576
|
const maxHeight = isMobile() ? 'var(--uui-modals-mobile-max-height)' : (props.maxHeight || 'var(--uui-modals-max-height)');
|
|
@@ -2336,7 +2584,7 @@ const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css$10.root, c
|
|
|
2336
2584
|
};
|
|
2337
2585
|
});
|
|
2338
2586
|
function ModalHeader(props) {
|
|
2339
|
-
return (React__default.createElement("div", { className: cx(css$
|
|
2587
|
+
return (React__default.createElement("div", { className: cx(css$T.root, css$T.modalHeader, 'uui-modal-header', props.borderBottom && css$T.borderBottom, props.cx), ...props.rawProps, style: {
|
|
2340
2588
|
...props.rawProps?.style,
|
|
2341
2589
|
} },
|
|
2342
2590
|
props.title && (React__default.createElement("div", { className: cx('uui-modal-title', 'uui-typography') }, props.title)),
|
|
@@ -2346,7 +2594,7 @@ function ModalHeader(props) {
|
|
|
2346
2594
|
React__default.createElement(IconButton, { rawProps: { 'aria-label': 'Close modal' }, icon: settings.modal.icons.closeIcon, onClick: props.onClose })))));
|
|
2347
2595
|
}
|
|
2348
2596
|
function ModalFooter(props) {
|
|
2349
|
-
return (React__default.createElement("div", { className: cx(css$
|
|
2597
|
+
return (React__default.createElement("div", { className: cx(css$T.root, css$T.modalFooter, 'uui-modal-footer', props.borderTop && css$T.borderTop, props.cx), ...props.rawProps, style: {
|
|
2350
2598
|
...props.rawProps?.style,
|
|
2351
2599
|
} }, props.children));
|
|
2352
2600
|
}
|
|
@@ -2511,7 +2759,7 @@ const TREE_SHAKEABLE_INIT = () => ({
|
|
|
2511
2759
|
});
|
|
2512
2760
|
const i18n = /* @__PURE__ */TREE_SHAKEABLE_INIT();
|
|
2513
2761
|
|
|
2514
|
-
var css
|
|
2762
|
+
var css$S = {"root":"nCiB38","icon-wrapper":"O-zcGy","iconWrapper":"O-zcGy","action-wrapper":"y-7SIi","actionWrapper":"y-7SIi","close-icon":"fcTSmE","closeIcon":"fcTSmE","main-path":"G-efK0","mainPath":"G-efK0","content":"lkS2A3","close-wrapper":"ZC6vZ8","closeWrapper":"ZC6vZ8","clear-notifications":"aDBAE0","clearNotifications":"aDBAE0"};
|
|
2515
2763
|
|
|
2516
2764
|
const NotificationCard = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
2517
2765
|
const notificationCardNode = React__default.useRef(null);
|
|
@@ -2524,15 +2772,15 @@ const NotificationCard = /* @__PURE__ */React__default.forwardRef((props, ref) =
|
|
|
2524
2772
|
notificationCardNode.current?.removeEventListener('mouseleave', props.refreshTimer);
|
|
2525
2773
|
};
|
|
2526
2774
|
}, []);
|
|
2527
|
-
return (React__default.createElement("div", { role: "alert", className: cx('uui-notification_card', props.color && `uui-color-${props.color}`, css
|
|
2528
|
-
React__default.createElement("div", { className: css
|
|
2529
|
-
props.icon && (React__default.createElement("div", { className: css
|
|
2775
|
+
return (React__default.createElement("div", { role: "alert", className: cx('uui-notification_card', props.color && `uui-color-${props.color}`, css$S.root, props.cx), ref: notificationCardNode, ...props.rawProps },
|
|
2776
|
+
React__default.createElement("div", { className: css$S.mainPath },
|
|
2777
|
+
props.icon && (React__default.createElement("div", { className: css$S.iconWrapper },
|
|
2530
2778
|
React__default.createElement(IconContainer, { size: settings.notificationCard.sizes.icon, icon: props.icon }))),
|
|
2531
|
-
React__default.createElement("div", { className: css
|
|
2779
|
+
React__default.createElement("div", { className: css$S.content },
|
|
2532
2780
|
props.children,
|
|
2533
|
-
props.actions && (React__default.createElement("div", { className: css
|
|
2534
|
-
props.onClose && (React__default.createElement("div", { className: cx(css
|
|
2535
|
-
React__default.createElement(IconButton, { icon: settings.notificationCard.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css
|
|
2781
|
+
props.actions && (React__default.createElement("div", { className: css$S.actionWrapper }, props.actions.map((action) => (React__default.createElement(LinkButton, { key: action.name, caption: action.name, onClick: action.action, cx: css$S.actionLink, size: settings.notificationCard.sizes.action, rawProps: action.rawProps })))))),
|
|
2782
|
+
props.onClose && (React__default.createElement("div", { className: cx(css$S.closeWrapper, 'uui-notification_card-close_icon') },
|
|
2783
|
+
React__default.createElement(IconButton, { icon: settings.notificationCard.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$S.closeIcon }))))));
|
|
2536
2784
|
});
|
|
2537
2785
|
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 })));
|
|
2538
2786
|
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 })));
|
|
@@ -2540,11 +2788,11 @@ const HintNotification = /* @__PURE__ */React__default.forwardRef((props, ref) =
|
|
|
2540
2788
|
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 })));
|
|
2541
2789
|
function ClearNotification() {
|
|
2542
2790
|
const uuiCtx = useUuiContext();
|
|
2543
|
-
return (React__default.createElement("div", { className: cx(css
|
|
2791
|
+
return (React__default.createElement("div", { className: cx(css$S.clearNotifications, 'uui-clear-notifications') },
|
|
2544
2792
|
React__default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => uuiCtx.uuiNotifications.clearAll() })));
|
|
2545
2793
|
}
|
|
2546
2794
|
|
|
2547
|
-
var css$
|
|
2795
|
+
var css$R = {"footer":"BXu-K-"};
|
|
2548
2796
|
|
|
2549
2797
|
class ConfirmationModal extends React.Component {
|
|
2550
2798
|
render() {
|
|
@@ -2556,7 +2804,7 @@ class ConfirmationModal extends React.Component {
|
|
|
2556
2804
|
React.createElement(ModalWindow, { width: 420 },
|
|
2557
2805
|
React.createElement(ModalHeader, { borderBottom: true, title: this.props.caption, onClose: () => this.props.abort() }),
|
|
2558
2806
|
React.createElement(ScrollBars, null, bodyContent),
|
|
2559
|
-
React.createElement(ModalFooter, { cx: css$
|
|
2807
|
+
React.createElement(ModalFooter, { cx: css$R.footer },
|
|
2560
2808
|
this.props.hideCancelButton || (React.createElement(Button, { caption: i18n.form.modals.discardButton, onClick: () => this.props.success(false), fill: "outline", color: "secondary" })),
|
|
2561
2809
|
React.createElement(Button, { caption: i18n.form.modals.saveButton, onClick: () => this.props.success(true), color: "primary" })))));
|
|
2562
2810
|
}
|
|
@@ -2586,7 +2834,7 @@ function useReliableForceUpdate() {
|
|
|
2586
2834
|
return red[1];
|
|
2587
2835
|
}
|
|
2588
2836
|
|
|
2589
|
-
var css$
|
|
2837
|
+
var css$Q = {"root":"Kehh-v","container":"_9AWgBo"};
|
|
2590
2838
|
|
|
2591
2839
|
const defaultFormat = 'MMM D, YYYY';
|
|
2592
2840
|
const valueFormat = 'YYYY-MM-DD';
|
|
@@ -2797,21 +3045,21 @@ function DatePickerHeader({ navIconLeft, navIconRight, value: { month, view }, o
|
|
|
2797
3045
|
}, [view, month]);
|
|
2798
3046
|
const disablePrev = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getPrevYearsList(month));
|
|
2799
3047
|
const disableNext = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getNextYearsList(month));
|
|
2800
|
-
return (React.createElement("div", { className: cx(css$
|
|
3048
|
+
return (React.createElement("div", { className: cx(css$Q.root, uuiHeader.container, cx) },
|
|
2801
3049
|
React.createElement("header", { className: uuiHeader.headerNav },
|
|
2802
3050
|
React.createElement(Button, { icon: navIconLeft || settings.datePicker.icons.body.prevIcon, color: "secondary", fill: "ghost", cx: uuiHeader.navIconLeft, onClick: !isDisabled && (() => onLeftNavigationArrow()), isDisabled: disablePrev }),
|
|
2803
3051
|
React.createElement(Button, { caption: title, fill: "ghost", cx: uuiHeader.navTitle, onClick: !isDisabled && (() => onCaptionClick(view)) }),
|
|
2804
3052
|
React.createElement(Button, { icon: navIconRight || settings.datePicker.icons.body.nextIcon, color: "secondary", fill: "ghost", cx: uuiHeader.navIconRight, onClick: !isDisabled && (() => onRightNavigationArrow()), isDisabled: disableNext }))));
|
|
2805
3053
|
}
|
|
2806
3054
|
|
|
2807
|
-
var css$
|
|
3055
|
+
var css$P = {"root":"RoEgIt"};
|
|
2808
3056
|
|
|
2809
3057
|
function applyDateSelectionMods() {
|
|
2810
|
-
return [css$
|
|
3058
|
+
return [css$P.root, `uui-size-${settings.datePicker.sizes.body}`];
|
|
2811
3059
|
}
|
|
2812
3060
|
const Calendar = /* @__PURE__ */withMods(Calendar$1, applyDateSelectionMods);
|
|
2813
3061
|
|
|
2814
|
-
var css$
|
|
3062
|
+
var css$O = {"root":"cIwFTj"};
|
|
2815
3063
|
|
|
2816
3064
|
const uuiDatePickerBody = {
|
|
2817
3065
|
wrapper: 'uui-datepicker-body-wrapper',
|
|
@@ -2855,7 +3103,7 @@ function StatelessDatePickerBodyComp({ renderDay, isHoliday, cx: classes, filter
|
|
|
2855
3103
|
}
|
|
2856
3104
|
};
|
|
2857
3105
|
return (React__default.createElement("div", { ref: ref, className: cx$1(uuiDatePickerBodyBase.container, `uui-size-${settings.datePicker.sizes.body}`, classes), ...rawProps },
|
|
2858
|
-
React__default.createElement("div", { className: cx$1(css$
|
|
3106
|
+
React__default.createElement("div", { className: cx$1(css$O.root, uuiDatePickerBody.wrapper) },
|
|
2859
3107
|
React__default.createElement(DatePickerHeader, { value: {
|
|
2860
3108
|
view,
|
|
2861
3109
|
month,
|
|
@@ -2932,7 +3180,7 @@ function DatePickerComponent(props, ref) {
|
|
|
2932
3180
|
}
|
|
2933
3181
|
const DatePicker = /* @__PURE__ */React__default.forwardRef(DatePickerComponent);
|
|
2934
3182
|
|
|
2935
|
-
var css$
|
|
3183
|
+
var css$N = {"date-input":"_2tZSi7","dateInput":"_2tZSi7","root":"NV5l08","separator":"_38ISk1"};
|
|
2936
3184
|
|
|
2937
3185
|
const RangeDatePickerInput = /* @__PURE__ */forwardRef(({ isDisabled, isInvalid, isReadonly, size, disableClear, rawProps, value, inFocus, format, onValueChange, onFocusInput, onBlurInput, onClick, getPlaceholder, filter, onKeyDown, preventEmptyFromDate, preventEmptyToDate, id, cx: classes, }, ref) => {
|
|
2938
3186
|
const [inputValue, setInputValue] = useState(toCustomDateRangeFormat(value, format));
|
|
@@ -2997,13 +3245,13 @@ const RangeDatePickerInput = /* @__PURE__ */forwardRef(({ isDisabled, isInvalid,
|
|
|
2997
3245
|
const clearAllowed = !disableClear && !(preventEmptyFromDate && preventEmptyToDate) && inputValue.from && inputValue.to;
|
|
2998
3246
|
return (
|
|
2999
3247
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
3000
|
-
React__default.createElement("div", { ref: ref, className: cx$1(`uui-size-${size || settings.rangeDatePicker.sizes.default}`, 'uui-range-date-picker', classes, css$
|
|
3001
|
-
React__default.createElement(TextInput, { icon: settings.rangeDatePicker.icons.input.calendarIcon, cx: cx$1(css$
|
|
3002
|
-
React__default.createElement("div", { className: css$
|
|
3003
|
-
React__default.createElement(TextInput, { cx: cx$1(css$
|
|
3248
|
+
React__default.createElement("div", { ref: ref, className: cx$1(`uui-size-${size || settings.rangeDatePicker.sizes.default}`, 'uui-range-date-picker', classes, css$N.root, isDisabled && uuiMod.disabled, isReadonly && uuiMod.readonly, isInvalid && uuiMod.invalid, inFocus && uuiMod.focus), onKeyDown: onKeyDown },
|
|
3249
|
+
React__default.createElement(TextInput, { icon: settings.rangeDatePicker.icons.input.calendarIcon, cx: cx$1(css$N.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 }),
|
|
3250
|
+
React__default.createElement("div", { className: css$N.separator }),
|
|
3251
|
+
React__default.createElement(TextInput, { cx: cx$1(css$N.dateInput, inFocus === 'to' && uuiMod.focus), placeholder: getPlaceholder ? getPlaceholder('to') : i18n.rangeDatePicker.pickerPlaceholderTo, size: size || settings.rangeDatePicker.sizes.default, value: inputValue.to || undefined, onCancel: clearAllowed ? onClear : 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 })));
|
|
3004
3252
|
});
|
|
3005
3253
|
|
|
3006
|
-
var css$
|
|
3254
|
+
var css$M = {"root":"JXWS7P"};
|
|
3007
3255
|
|
|
3008
3256
|
const uuiPresets = {
|
|
3009
3257
|
container: 'uui-presets-container',
|
|
@@ -3018,12 +3266,12 @@ const getPresets = (presets) => {
|
|
|
3018
3266
|
})).sort((a, b) => a.order - b.order);
|
|
3019
3267
|
};
|
|
3020
3268
|
function CalendarPresets(props) {
|
|
3021
|
-
return (React.createElement("div", { ref: props.forwardedRef, className: cx$1(uuiPresets.container, css$
|
|
3269
|
+
return (React.createElement("div", { ref: props.forwardedRef, className: cx$1(uuiPresets.container, css$M.root, props.cx), ...props.rawProps },
|
|
3022
3270
|
React.createElement("div", { className: uuiPresets.header }, "Presets"),
|
|
3023
3271
|
getPresets(props.presets).map((item) => (React.createElement(LinkButton, { key: item.key, caption: item.name, onClick: () => props.onPresetSet(item), size: settings.rangeDatePicker.sizes.preset })))));
|
|
3024
3272
|
}
|
|
3025
3273
|
|
|
3026
|
-
var css$
|
|
3274
|
+
var css$L = {"root":"BRPQ2v","container":"eq16uM","day-selection":"VMBu16","daySelection":"VMBu16","from-picker":"-VtEZ-","fromPicker":"-VtEZ-","to-picker":"xUOMw5","toPicker":"xUOMw5","bodes-wrapper":"fNJvww","bodesWrapper":"fNJvww","blocker":"jS9UMi"};
|
|
3027
3275
|
|
|
3028
3276
|
const uuiRangeDatePickerBody = {
|
|
3029
3277
|
inRange: 'uui-range-datepicker-in-range',
|
|
@@ -3176,18 +3424,18 @@ function RangeDatePickerBodyComp(props, ref) {
|
|
|
3176
3424
|
setMonth(monthToSet);
|
|
3177
3425
|
}
|
|
3178
3426
|
}, [selectedDate]);
|
|
3179
|
-
return (React__default.createElement("div", { ref: ref, className: cx(css$
|
|
3180
|
-
React__default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$
|
|
3427
|
+
return (React__default.createElement("div", { ref: ref, className: cx(css$L.root, uuiDatePickerBodyBase.container, props.cx), ...props.rawProps, "aria-multiselectable": "true" },
|
|
3428
|
+
React__default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$L.daySelection, css$L.container], alignItems: "top" },
|
|
3181
3429
|
React__default.createElement(FlexCell, { width: "auto" },
|
|
3182
3430
|
React__default.createElement(FlexRow, null,
|
|
3183
|
-
React__default.createElement(FlexRow, { cx: css$
|
|
3184
|
-
React__default.createElement(StatelessDatePickerBody, { key: "date-picker-body-left", cx: cx(css$
|
|
3431
|
+
React__default.createElement(FlexRow, { cx: css$L.bodesWrapper, alignItems: "top" },
|
|
3432
|
+
React__default.createElement(StatelessDatePickerBody, { key: "date-picker-body-left", cx: cx(css$L.fromPicker), ...from, onValueChange: (v) => onBodyValueChange(v), onMonthChange: (m) => {
|
|
3185
3433
|
setMonth(m);
|
|
3186
3434
|
}, onViewChange: (v) => {
|
|
3187
3435
|
setView(v);
|
|
3188
3436
|
setDisabledPanel(v !== 'DAY_SELECTION' ? 'right' : null);
|
|
3189
3437
|
}, filter: props.filter, isHoliday: props.isHoliday, renderDay: props.renderDay || renderDay, isDisabled: disabledPanel === 'left' }),
|
|
3190
|
-
React__default.createElement(StatelessDatePickerBody, { key: "date-picker-body-right", cx: cx(css$
|
|
3438
|
+
React__default.createElement(StatelessDatePickerBody, { key: "date-picker-body-right", cx: cx(css$L.toPicker), ...to, onValueChange: (v) => onBodyValueChange(v), onMonthChange: (m) => {
|
|
3191
3439
|
setMonth(m.subtract(1, 'month'));
|
|
3192
3440
|
}, onViewChange: (v) => {
|
|
3193
3441
|
setView(v);
|
|
@@ -3196,7 +3444,7 @@ function RangeDatePickerBodyComp(props, ref) {
|
|
|
3196
3444
|
view !== 'DAY_SELECTION' && (React__default.createElement("div", { style: {
|
|
3197
3445
|
left: disabledPanel === 'right' ? '50%' : undefined,
|
|
3198
3446
|
right: disabledPanel === 'left' ? '50%' : undefined,
|
|
3199
|
-
}, className: css$
|
|
3447
|
+
}, className: css$L.blocker }))),
|
|
3200
3448
|
props.presets && renderPresets(props.presets)),
|
|
3201
3449
|
props.renderFooter && props.renderFooter()))));
|
|
3202
3450
|
}
|
|
@@ -3225,7 +3473,7 @@ const getDayState = (day, selectedDate) => {
|
|
|
3225
3473
|
};
|
|
3226
3474
|
};
|
|
3227
3475
|
|
|
3228
|
-
var css$
|
|
3476
|
+
var css$K = {"dropdown-container":"nLCSbA","dropdownContainer":"nLCSbA"};
|
|
3229
3477
|
|
|
3230
3478
|
function RangeDatePickerComponent(props, ref) {
|
|
3231
3479
|
const { value: _value, format = defaultFormat, size = settings.rangeDatePicker.sizes.default } = props;
|
|
@@ -3269,7 +3517,7 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
3269
3517
|
}
|
|
3270
3518
|
};
|
|
3271
3519
|
const renderBody = (renderProps) => {
|
|
3272
|
-
return (React__default.createElement(DropdownContainer, { ...renderProps, cx: cx(css$
|
|
3520
|
+
return (React__default.createElement(DropdownContainer, { ...renderProps, cx: cx(css$K.dropdownContainer), shards: [targetRef], returnFocus: true },
|
|
3273
3521
|
React__default.createElement(FlexRow, null,
|
|
3274
3522
|
React__default.createElement(RangeDatePickerBody, { cx: cx(props.bodyCx), value: {
|
|
3275
3523
|
selectedDate: _value,
|
|
@@ -3293,175 +3541,24 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
3293
3541
|
}
|
|
3294
3542
|
const RangeDatePicker = /* @__PURE__ */React__default.forwardRef(RangeDatePickerComponent);
|
|
3295
3543
|
|
|
3296
|
-
var css$
|
|
3544
|
+
var css$J = {"root":"VGpmp6","blocker":"PgZcIt","marker":"nLWkhp","top":"UCiZiy","bottom":"wRKnPg","left":"ZkVMaX","right":"n7-q6w","inside":"_6lbD0m"};
|
|
3297
3545
|
|
|
3298
3546
|
function DropMarker(props) {
|
|
3299
3547
|
return props.isDndInProgress
|
|
3300
3548
|
? (React.createElement(React.Fragment, null,
|
|
3301
|
-
props.enableBlocker && React.createElement("div", { className: css$
|
|
3549
|
+
props.enableBlocker && React.createElement("div", { className: css$J.blocker }),
|
|
3302
3550
|
React.createElement("div", { className: cx([
|
|
3303
|
-
css$
|
|
3304
|
-
css$
|
|
3305
|
-
css$
|
|
3551
|
+
css$J.root,
|
|
3552
|
+
css$J.marker,
|
|
3553
|
+
css$J[props.position],
|
|
3306
3554
|
props?.cx,
|
|
3307
3555
|
]) })))
|
|
3308
3556
|
: null;
|
|
3309
3557
|
}
|
|
3310
3558
|
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
var css$R = {"search-wrapper":"cV-MZn","searchWrapper":"cV-MZn","no-data":"Y5kqHg","noData":"Y5kqHg"};
|
|
3314
|
-
|
|
3315
|
-
var css$Q = {"picker-row":"_1xhV55","pickerRow":"_1xhV55","align-widgets-top":"p5XSxH","alignWidgetsTop":"p5XSxH","row-content":"dlHw-8","rowContent":"dlHw-8","align-widgets-center":"OyAt2X","alignWidgetsCenter":"OyAt2X","icon-container":"_08h-iq","iconContainer":"_08h-iq","content-wrapper":"fVienB","contentWrapper":"fVienB","icon-wrapper":"_94m5Ka","iconWrapper":"_94m5Ka","icon-default":"VfnBoS","iconDefault":"VfnBoS","selected-mark":"jDp6J-","selectedMark":"jDp6J-"};
|
|
3316
|
-
|
|
3317
|
-
var css$P = {"root":"_86NRQl"};
|
|
3318
|
-
|
|
3319
|
-
const AvatarStack = /* @__PURE__ */withMods(AvatarStack$1, () => [css$P.root]);
|
|
3320
|
-
|
|
3321
|
-
var css$O = {"root":"_4qT-dg"};
|
|
3322
|
-
|
|
3323
|
-
const DEFAULT_FILL = 'solid';
|
|
3324
|
-
function applyBadgeMods(mods) {
|
|
3325
|
-
return [
|
|
3326
|
-
'uui-badge',
|
|
3327
|
-
css$O.root,
|
|
3328
|
-
`uui-size-${mods.size || settings.badge.sizes.default}`,
|
|
3329
|
-
`uui-fill-${mods.fill || DEFAULT_FILL}`,
|
|
3330
|
-
`uui-color-${mods.color || 'info'}`,
|
|
3331
|
-
];
|
|
3332
|
-
}
|
|
3333
|
-
const Badge = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
3334
|
-
const styles = [applyBadgeMods(props), props.cx];
|
|
3335
|
-
const DropdownIcon = props.dropdownIcon ? props.dropdownIcon : settings.badge.icons.dropdownIcon;
|
|
3336
|
-
return (React__default.createElement(Clickable, { ...props, rawProps: {
|
|
3337
|
-
'aria-haspopup': props.isDropdown,
|
|
3338
|
-
'aria-expanded': props.isOpen,
|
|
3339
|
-
...props.rawProps,
|
|
3340
|
-
}, cx: styles, ref: ref },
|
|
3341
|
-
(props.indicator && props.fill === 'outline') && (React__default.createElement("div", { className: "uui-indicator" })),
|
|
3342
|
-
props.icon && props.iconPosition !== 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
3343
|
-
props.caption && (React__default.createElement("div", { className: uuiElement.caption }, props.caption)),
|
|
3344
|
-
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 })),
|
|
3345
|
-
props.icon && props.iconPosition === 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
3346
|
-
props.isDropdown && (React__default.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
3347
|
-
});
|
|
3348
|
-
|
|
3349
|
-
var css$N = {"root":"LNHyR-"};
|
|
3350
|
-
|
|
3351
|
-
function applyTagMods(props) {
|
|
3352
|
-
return [
|
|
3353
|
-
css$N.root,
|
|
3354
|
-
`uui-size-${props.size || settings.tag.sizes.default}`,
|
|
3355
|
-
`uui-color-${props.color || 'neutral'}`,
|
|
3356
|
-
`uui-fill-${props.fill || 'solid'}`,
|
|
3357
|
-
'uui-tag',
|
|
3358
|
-
];
|
|
3359
|
-
}
|
|
3360
|
-
const Tag = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
3361
|
-
const styles = [applyTagMods(props), props.cx];
|
|
3362
|
-
const ClearIcon = props.clearIcon ? props.clearIcon : settings.tag.icons.clearIcon;
|
|
3363
|
-
const DropdownIcon = props.dropdownIcon ? props.dropdownIcon : settings.tag.icons.dropdownIcon;
|
|
3364
|
-
return (React__default.createElement(Clickable, { ...props, rawProps: {
|
|
3365
|
-
'aria-haspopup': props.isDropdown,
|
|
3366
|
-
'aria-expanded': props.isOpen,
|
|
3367
|
-
...props.rawProps,
|
|
3368
|
-
}, cx: styles, ref: ref },
|
|
3369
|
-
props.icon && props.iconPosition !== 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
3370
|
-
props.caption && (React__default.createElement("div", { className: uuiElement.caption }, props.caption)),
|
|
3371
|
-
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 })),
|
|
3372
|
-
props.icon && props.iconPosition === 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
3373
|
-
props.isDropdown && (React__default.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
3374
|
-
props.onClear && !props.isDisabled && (React__default.createElement(IconContainer, { cx: uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
3375
|
-
});
|
|
3376
|
-
|
|
3377
|
-
var css$M = {"root":"FKoLYk","page":"-Ra7SI","spacer":"Oi9A1x","mode-ghost":"TpZYzP","modeGhost":"TpZYzP"};
|
|
3378
|
-
|
|
3379
|
-
function Paginator(props) {
|
|
3380
|
-
const renderPaginator = (params) => (React__default.createElement("nav", { role: "navigation", className: cx(css$M.root, 'uui-paginator', `uui-size-${props.size || settings.paginator.sizes.default}`), ...params.rawProps },
|
|
3381
|
-
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" }),
|
|
3382
|
-
params.pages.map((page, index) => {
|
|
3383
|
-
if (page.type === 'spacer') {
|
|
3384
|
-
return (React__default.createElement(Button, { cx: cx(css$M.spacer, css$M.page), size: props.size || settings.paginator.sizes.default, key: `${index}_spacer`, caption: "...", fill: "ghost", color: "secondary", tabIndex: -1, isDisabled: props.isDisabled }));
|
|
3385
|
-
}
|
|
3386
|
-
else {
|
|
3387
|
-
return (React__default.createElement(Button, { cx: cx(css$M[`mode-${!page.isActive && 'ghost'}`], css$M.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 }));
|
|
3388
|
-
}
|
|
3389
|
-
}),
|
|
3390
|
-
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" })));
|
|
3391
|
-
return React__default.createElement(Paginator$1, { ...props, render: renderPaginator });
|
|
3392
|
-
}
|
|
3393
|
-
|
|
3394
|
-
var css$L = {"root":"O49G0H","progress-bar":"oX3pvS","progressBar":"oX3pvS","progressBar-indeterminate":"QKuEjD","progressBarIndeterminate":"QKuEjD","size-12":"S-U8PS","size12":"S-U8PS","size-18":"QqQq--","size18":"QqQq--","size-24":"QZ9aGj","size24":"QZ9aGj"};
|
|
3559
|
+
var css$I = {"search-wrapper":"xT6L7x","searchWrapper":"xT6L7x","no-data":"yb7j-G","noData":"yb7j-G"};
|
|
3395
3560
|
|
|
3396
|
-
|
|
3397
|
-
return (React.createElement("div", { ref: ref, className: cx('uui-indeterminate_bar', props.cx, css$L.root, css$L[`size-${props.size || 12}`]) },
|
|
3398
|
-
React.createElement("div", { className: cx(css$L.progressBar) })));
|
|
3399
|
-
});
|
|
3400
|
-
|
|
3401
|
-
var css$K = {"root":"REaQX3","striped":"W0h6gP","animate-stripes":"_5I3FMZ","animateStripes":"_5I3FMZ","size-12":"qEKAxJ","size12":"qEKAxJ","size-18":"n5uxU0","size18":"n5uxU0","size-24":"rHeOEd","size24":"rHeOEd"};
|
|
3402
|
-
|
|
3403
|
-
const DEFAULT_SIZE = '12';
|
|
3404
|
-
function applyProgressBarMods(mods) {
|
|
3405
|
-
const size = mods.size || DEFAULT_SIZE;
|
|
3406
|
-
return [
|
|
3407
|
-
css$K.root,
|
|
3408
|
-
css$K[`size-${size}`],
|
|
3409
|
-
mods.striped && css$K.striped,
|
|
3410
|
-
];
|
|
3411
|
-
}
|
|
3412
|
-
const ProgressBar = /* @__PURE__ */withMods(uuiComponents.ProgressBar, applyProgressBarMods, (props) => ({
|
|
3413
|
-
hideLabel: props.hideLabel || props.striped,
|
|
3414
|
-
}));
|
|
3415
|
-
|
|
3416
|
-
var css$J = {"root":"_0sp5PJ"};
|
|
3417
|
-
|
|
3418
|
-
const IndicatorBar = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
3419
|
-
const { progress } = props;
|
|
3420
|
-
return progress || progress === 0 ? (React.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx(css$J.root, props.cx), hideLabel: true })) : (React.createElement(IndeterminateBar, { ref: ref, cx: cx(css$J.root, props.cx) }));
|
|
3421
|
-
});
|
|
3422
|
-
|
|
3423
|
-
var css$I = {"root":"_9sFjB5"};
|
|
3424
|
-
|
|
3425
|
-
const StatusIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
3426
|
-
return (React__default.createElement("div", { ref: ref, className: cx([
|
|
3427
|
-
css$I.root,
|
|
3428
|
-
`uui-size-${props.size || settings.statusIndicator.sizes.default}`,
|
|
3429
|
-
'uui-status_indicator',
|
|
3430
|
-
`uui-color-${props.color || 'neutral'}`,
|
|
3431
|
-
`uui-fill-${props.fill || 'solid'}`,
|
|
3432
|
-
props.cx,
|
|
3433
|
-
]) },
|
|
3434
|
-
React__default.createElement("div", { className: "uui-status_indicator-dot" }),
|
|
3435
|
-
React__default.createElement("p", { className: "uui-status_indicator-caption" }, props.caption)));
|
|
3436
|
-
});
|
|
3437
|
-
|
|
3438
|
-
var css$H = {"drag-handle-wrapper":"m60Juc","dragHandleWrapper":"m60Juc","with-indent":"INTgRy","withIndent":"INTgRy","drag-handle":"waOWlA","dragHandle":"waOWlA","icon-container":"J0-rxs","iconContainer":"J0-rxs"};
|
|
3439
|
-
|
|
3440
|
-
function DataRowAddons(props) {
|
|
3441
|
-
const row = props.rowProps;
|
|
3442
|
-
const getIndent = () => {
|
|
3443
|
-
return (row.indent - 1) * settings.dataTable.sizes.body.indentUnitMap[props.size || settings.dataTable.sizes.body.row];
|
|
3444
|
-
};
|
|
3445
|
-
const getWidth = () => {
|
|
3446
|
-
return settings.dataTable.sizes.body.indentWidthMap[props.size || settings.dataTable.sizes.body.row];
|
|
3447
|
-
};
|
|
3448
|
-
const renderDragHandle = () => {
|
|
3449
|
-
if (props.renderDragHandle) {
|
|
3450
|
-
return props.renderDragHandle({ rowProps: props.rowProps, eventHandlers: props.eventHandlers });
|
|
3451
|
-
}
|
|
3452
|
-
return (React__default.createElement("div", { key: "dh", className: cx(css$H.dragHandleWrapper, row.indent > 0 && css$H.withIndent), style: { width: row.indent > 0 ? (getIndent() + getWidth()) : 0 }, ...props.eventHandlers },
|
|
3453
|
-
React__default.createElement(DragHandle, { cx: css$H.dragHandle })));
|
|
3454
|
-
};
|
|
3455
|
-
return (React__default.createElement(React__default.Fragment, null,
|
|
3456
|
-
row.dnd?.srcData && renderDragHandle(),
|
|
3457
|
-
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 })),
|
|
3458
|
-
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: {
|
|
3459
|
-
'aria-label': row.isFolded ? 'Unfold' : 'Fold',
|
|
3460
|
-
role: 'button',
|
|
3461
|
-
}, key: "icon", icon: settings.dataTable.icons.body.foldingIcon, cx: [
|
|
3462
|
-
uuiElement.foldingArrow, uuiMarkers.clickable, css$H.iconContainer,
|
|
3463
|
-
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row), size: settings.dataTable.sizes.body.iconMap[props.size || settings.dataTable.sizes.body.row] }))))));
|
|
3464
|
-
}
|
|
3561
|
+
var css$H = {"picker-row":"X8qUF3","pickerRow":"X8qUF3","align-widgets-top":"_-0oA5q","alignWidgetsTop":"_-0oA5q","row-content":"YEAMbJ","rowContent":"YEAMbJ","align-widgets-center":"wo0jIu","alignWidgetsCenter":"wo0jIu","icon-container":"YsNuRS","iconContainer":"YsNuRS","content-wrapper":"wC-c08","contentWrapper":"wC-c08","icon-wrapper":"JNvvU4","iconWrapper":"JNvvU4","icon-default":"BR2utH","iconDefault":"BR2utH","selected-mark":"AqhCFH","selectedMark":"AqhCFH"};
|
|
3465
3562
|
|
|
3466
3563
|
const mergeHighlightRanges = (ranges) => {
|
|
3467
3564
|
const mergedRanges = [];
|
|
@@ -3528,7 +3625,7 @@ const getHighlightedSearchMatches = (str, search) => {
|
|
|
3528
3625
|
return getDecoratedText(str, ranges);
|
|
3529
3626
|
};
|
|
3530
3627
|
|
|
3531
|
-
var css$G = {"root":"
|
|
3628
|
+
var css$G = {"root":"GS82I7","column-gap":"JXVA03","columnGap":"JXVA03","title":"et0-va","subtitle":"i1VrBt","disabled":"pFYF01","multiline":"_4RcmRb"};
|
|
3532
3629
|
|
|
3533
3630
|
function PickerItem(props) {
|
|
3534
3631
|
const { highlightSearchMatches = true, size, avatarUrl, isLoading, isDisabled, icon, } = props;
|
|
@@ -3536,14 +3633,13 @@ function PickerItem(props) {
|
|
|
3536
3633
|
const isMultiline = !!(props.title && props.subtitle);
|
|
3537
3634
|
const { search } = props.dataSourceState ?? {};
|
|
3538
3635
|
const title = highlightSearchMatches ? getHighlightedSearchMatches(props.title, search) : props.title;
|
|
3539
|
-
const subtitle = highlightSearchMatches ? getHighlightedSearchMatches(props.subtitle, search) : props.subtitle;
|
|
3540
3636
|
return (React.createElement(FlexCell, { width: "auto", cx: [css$G.root, 'uui-picker_input-item', 'uui-typography', props.cx] },
|
|
3541
3637
|
React.createElement(FlexRow, { size: itemSize, cx: [isMultiline && css$G.multiline, css$G.columnGap], rawProps: { style: { '--uui-picker_item-vertical-padding': `${settings.pickerInput.sizes.body.itemVerticalPaddingMap[itemSize]}px` } } },
|
|
3542
3638
|
avatarUrl && (React.createElement(Avatar, { isLoading: isLoading, img: avatarUrl, size: getAvatarSize(itemSize, isMultiline) })),
|
|
3543
3639
|
icon && React.createElement(IconContainer, { icon: icon }),
|
|
3544
3640
|
React.createElement(FlexCell, { width: "auto" },
|
|
3545
3641
|
title && (React.createElement("div", { className: cx(css$G.title, isDisabled && css$G.disabled, `uui-size-${itemSize}`) }, title)),
|
|
3546
|
-
subtitle && (React.createElement("div", { className: cx(css$G.subtitle, isDisabled && css$G.disabled, `uui-size-${itemSize}`) }, subtitle))))));
|
|
3642
|
+
props.subtitle && (React.createElement("div", { className: cx(css$G.subtitle, isDisabled && css$G.disabled, `uui-size-${itemSize}`) }, props.subtitle))))));
|
|
3547
3643
|
}
|
|
3548
3644
|
function getAvatarSize(size, isMultiline) {
|
|
3549
3645
|
return settings.pickerInput.sizes.body[isMultiline ? 'itemAvatarMultilineMap' : 'itemAvatarMap'][size];
|
|
@@ -3591,19 +3687,19 @@ function DataPickerRow(props) {
|
|
|
3591
3687
|
content = (React.createElement(React.Fragment, null,
|
|
3592
3688
|
renderRowItem(props.value, props),
|
|
3593
3689
|
React.createElement(FlexSpacer, null),
|
|
3594
|
-
(props.isChildrenSelected || props.isSelected) && (React.createElement("div", { className: cx$1(css$
|
|
3595
|
-
React.createElement(IconContainer, { size: settings.pickerInput.sizes.body.selectIconMap[props.size], icon: SelectIcon, cx: props.isChildrenSelected ? css$
|
|
3690
|
+
(props.isChildrenSelected || props.isSelected) && (React.createElement("div", { className: cx$1(css$H.iconWrapper, 'uui-picker_input-row-select_icon', uuiMod.selected) },
|
|
3691
|
+
React.createElement(IconContainer, { size: settings.pickerInput.sizes.body.selectIconMap[props.size], icon: SelectIcon, cx: props.isChildrenSelected ? css$H.iconDefault : css$H.selectedMark, rawProps: { 'aria-label': props.isChildrenSelected
|
|
3596
3692
|
? 'Child is selected'
|
|
3597
3693
|
: 'Selected' } })))));
|
|
3598
3694
|
}
|
|
3599
|
-
return (React.createElement(FlexCell, { grow: 1, width: 0, minWidth: 0, cx: css$
|
|
3695
|
+
return (React.createElement(FlexCell, { grow: 1, width: 0, minWidth: 0, cx: css$H.rowContent },
|
|
3600
3696
|
React.createElement(DataRowAddons, { size: props.size, rowProps: props, tabIndex: -1 }),
|
|
3601
|
-
React.createElement("div", { className: css$
|
|
3697
|
+
React.createElement("div", { className: css$H.contentWrapper }, content)));
|
|
3602
3698
|
};
|
|
3603
3699
|
const clickHandler = props.onClick || props.onSelect || props.onFold || props.onCheck;
|
|
3604
3700
|
return (
|
|
3605
3701
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
3606
|
-
React.createElement("div", { onClick: clickHandler && ((e) => !isEventTargetInsideClickable(e) && clickHandler(props)), role: "option", "aria-busy": props.isLoading, "aria-posinset": props.index + 1, "aria-checked": props.checkbox?.isVisible ? props.isChecked : null, "aria-selected": props.isSelectable ? props.isSelected : null, ref: rowNode, className: cx$1(css$
|
|
3702
|
+
React.createElement("div", { onClick: clickHandler && ((e) => !isEventTargetInsideClickable(e) && clickHandler(props)), role: "option", "aria-busy": props.isLoading, "aria-posinset": props.index + 1, "aria-checked": props.checkbox?.isVisible ? props.isChecked : null, "aria-selected": props.isSelectable ? props.isSelected : null, ref: rowNode, className: cx$1(css$H.pickerRow, 'uui-picker_input-row', `uui-size-${props.size || settings.pickerInput.sizes.body.row}`, css$H[`align-widgets-${props.alignActions || 'top'}`], clickHandler && props.isFocused && uuiMod.focus, clickHandler && uuiMarkers.clickable, props.cx), style: props.padding && {
|
|
3607
3703
|
'--uui-data_picker-horizontal-padding': `${props.padding}px`,
|
|
3608
3704
|
}, ...props.rawProps }, renderContent()));
|
|
3609
3705
|
}
|
|
@@ -3631,7 +3727,7 @@ function DataPickerBody({ highlightSearchMatches = true, ...props }) {
|
|
|
3631
3727
|
});
|
|
3632
3728
|
}
|
|
3633
3729
|
if (props.minCharsToSearch && search.length < props.minCharsToSearch) {
|
|
3634
|
-
return (React__default.createElement(FlexCell$1, { cx: css$
|
|
3730
|
+
return (React__default.createElement(FlexCell$1, { cx: css$I.noData, grow: 1, textAlign: "center" },
|
|
3635
3731
|
React__default.createElement(Text, { size: props.searchSize }, i18n.dataPickerBody.typeSearchToLoadMessage)));
|
|
3636
3732
|
}
|
|
3637
3733
|
if (props.rows.length === 0) {
|
|
@@ -3644,7 +3740,7 @@ function DataPickerBody({ highlightSearchMatches = true, ...props }) {
|
|
|
3644
3740
|
search: search,
|
|
3645
3741
|
});
|
|
3646
3742
|
}
|
|
3647
|
-
return (React__default.createElement(FlexCell$1, { cx: css$
|
|
3743
|
+
return (React__default.createElement(FlexCell$1, { cx: css$I.noData, grow: 1, textAlign: "center" },
|
|
3648
3744
|
React__default.createElement(Text, { size: props.searchSize }, i18n.dataPickerBody.noRecordsMessage)));
|
|
3649
3745
|
}
|
|
3650
3746
|
};
|
|
@@ -3663,7 +3759,7 @@ function DataPickerBody({ highlightSearchMatches = true, ...props }) {
|
|
|
3663
3759
|
: settings.pickerInput.sizes.body.getSearchSize({ pickerSize: props.searchSize });
|
|
3664
3760
|
const renderedDataRows = useMemo(() => props.rows.map((row) => renderRow(row, props.value)), [props.rows, props.value]);
|
|
3665
3761
|
return (React__default.createElement(React__default.Fragment, null,
|
|
3666
|
-
showSearch && (React__default.createElement("div", { key: "search", className: cx$1(css$
|
|
3762
|
+
showSearch && (React__default.createElement("div", { key: "search", className: cx$1(css$I.searchWrapper, 'uui-picker_input-body-search') },
|
|
3667
3763
|
React__default.createElement(FlexCell$1, { grow: 1 },
|
|
3668
3764
|
React__default.createElement(MoveFocusInside, null,
|
|
3669
3765
|
React__default.createElement(SearchInput, { placeholder: i18n.dataPickerBody.searchPlaceholder, value: props.value.search, onValueChange: (newVal) => props.onValueChange({ ...props.value, search: newVal }), onKeyDown: searchKeyDown, size: searchSize, debounceDelay: props.searchDebounceDelay, rawProps: { dir: 'auto' } }))))),
|
|
@@ -3702,7 +3798,7 @@ function DataPickerFooterImpl(props) {
|
|
|
3702
3798
|
}
|
|
3703
3799
|
const DataPickerFooter = /* @__PURE__ */React__default.memo(DataPickerFooterImpl);
|
|
3704
3800
|
|
|
3705
|
-
var css$F = {"header":"
|
|
3801
|
+
var css$F = {"header":"NQqV9H","title":"EZGqV3","close":"_4yrAj8"};
|
|
3706
3802
|
|
|
3707
3803
|
const DataPickerMobileHeaderImpl = (props) => {
|
|
3708
3804
|
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
@@ -3712,7 +3808,7 @@ const DataPickerMobileHeaderImpl = (props) => {
|
|
|
3712
3808
|
};
|
|
3713
3809
|
const DataPickerMobileHeader = /* @__PURE__ */React__default.memo(DataPickerMobileHeaderImpl);
|
|
3714
3810
|
|
|
3715
|
-
var css$E = {"done":"
|
|
3811
|
+
var css$E = {"done":"-noL9F","container":"mvjfRX"};
|
|
3716
3812
|
|
|
3717
3813
|
const PickerBodyMobileView = (props) => {
|
|
3718
3814
|
const isMobileView = isMobile();
|
|
@@ -3724,7 +3820,7 @@ const PickerBodyMobileView = (props) => {
|
|
|
3724
3820
|
isMobileView && (React__default.createElement(LinkButton, { caption: i18n.pickerInput.doneButton, onClick: () => props.onClose?.(), cx: css$E.done, size: settings.pickerInput.sizes.body.mobileFooterLinkButton }))));
|
|
3725
3821
|
};
|
|
3726
3822
|
|
|
3727
|
-
var css$D = {"sub-header-wrapper":"
|
|
3823
|
+
var css$D = {"sub-header-wrapper":"pw-VR6","subHeaderWrapper":"pw-VR6","switch":"_4eMeQa","no-found-modal-container":"f7lJFw","noFoundModalContainer":"f7lJFw","no-found-modal-container-icon":"x-f5cT","noFoundModalContainerIcon":"x-f5cT","no-found-modal-container-text":"xLalBW","noFoundModalContainerText":"xLalBW","body":"RyPydl"};
|
|
3728
3824
|
|
|
3729
3825
|
function PickerModal(props) {
|
|
3730
3826
|
const { view, selection, dataSourceStateLens, dataSourceState, getName, clearSelection, getRows, getListProps, getFooterProps, isSingleSelect, handleDataSourceValueChange, } = usePickerModal(props);
|
|
@@ -3770,7 +3866,7 @@ function PickerModal(props) {
|
|
|
3770
3866
|
React__default.createElement(ModalFooter, null, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
|
|
3771
3867
|
}
|
|
3772
3868
|
|
|
3773
|
-
var css$C = {"tooltip":"
|
|
3869
|
+
var css$C = {"tooltip":"KKR5Hz"};
|
|
3774
3870
|
|
|
3775
3871
|
const PickerTogglerTag = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
3776
3872
|
const tagProps = {
|
|
@@ -3789,7 +3885,7 @@ const PickerTogglerTag = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
3789
3885
|
}
|
|
3790
3886
|
});
|
|
3791
3887
|
|
|
3792
|
-
var css$B = {"root":"
|
|
3888
|
+
var css$B = {"root":"_6BDOSN"};
|
|
3793
3889
|
|
|
3794
3890
|
const defaultMode = EditMode.FORM;
|
|
3795
3891
|
function applyPickerTogglerMods(mods) {
|
|
@@ -3871,7 +3967,7 @@ function PickerInputComponent(props, ref) {
|
|
|
3871
3967
|
}
|
|
3872
3968
|
const PickerInput = /* @__PURE__ */React__default.forwardRef(PickerInputComponent);
|
|
3873
3969
|
|
|
3874
|
-
var css$A = {"row":"
|
|
3970
|
+
var css$A = {"row":"XqEcUZ"};
|
|
3875
3971
|
|
|
3876
3972
|
function PickerListRow(props) {
|
|
3877
3973
|
let label;
|
|
@@ -3891,7 +3987,7 @@ function PickerListRow(props) {
|
|
|
3891
3987
|
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));
|
|
3892
3988
|
}
|
|
3893
3989
|
|
|
3894
|
-
var css$z = {"root":"
|
|
3990
|
+
var css$z = {"root":"Mo5mcj"};
|
|
3895
3991
|
|
|
3896
3992
|
function PickerList(props) {
|
|
3897
3993
|
const { context, view, onlySelectedView, getName, getEntityName, appendLastSelected, getSelectedIdsArray, buildRowsList, getMaxDefaultItems, getModalTogglerCaption, } = usePickerList(props);
|
|
@@ -3926,7 +4022,7 @@ function PickerList(props) {
|
|
|
3926
4022
|
}, selectedRows)));
|
|
3927
4023
|
}
|
|
3928
4024
|
|
|
3929
|
-
var css$y = {"root":"
|
|
4025
|
+
var css$y = {"root":"_-1fghw","wrapper":"_6OVFLW","align-widgets-top":"OZsjsh","alignWidgetsTop":"OZsjsh","align-widgets-center":"XJ-X6-","alignWidgetsCenter":"XJ-X6-"};
|
|
3930
4026
|
|
|
3931
4027
|
function DataTableCell(initialProps) {
|
|
3932
4028
|
const props = { ...initialProps };
|
|
@@ -3976,7 +4072,7 @@ function DataTableCell(initialProps) {
|
|
|
3976
4072
|
return React.createElement(DataTableCell$1, { ...props });
|
|
3977
4073
|
}
|
|
3978
4074
|
|
|
3979
|
-
var css$x = {"root":"
|
|
4075
|
+
var css$x = {"root":"wsv7pR"};
|
|
3980
4076
|
|
|
3981
4077
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
3982
4078
|
// 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.
|
|
@@ -3992,7 +4088,7 @@ const DataTableRow = /* @__PURE__ */withMods(DataTableRow$1, ({ borderBottom = t
|
|
|
3992
4088
|
];
|
|
3993
4089
|
}, () => propsMods);
|
|
3994
4090
|
|
|
3995
|
-
var css$w = {"sorting-panel-container":"
|
|
4091
|
+
var css$w = {"sorting-panel-container":"yWeO0t","sortingPanelContainer":"yWeO0t"};
|
|
3996
4092
|
|
|
3997
4093
|
const SortingPanelImpl = ({ sortDirection, onSort }) => {
|
|
3998
4094
|
const sortAsc = useCallback(() => onSort(sortDirection === 'asc' ? undefined : 'asc'), [onSort]);
|
|
@@ -4012,7 +4108,7 @@ const ColumnHeaderDropdownImpl = (props) => {
|
|
|
4012
4108
|
};
|
|
4013
4109
|
const ColumnHeaderDropdown = /* @__PURE__ */React__default.memo(ColumnHeaderDropdownImpl);
|
|
4014
4110
|
|
|
4015
|
-
var css$v = {"root":"
|
|
4111
|
+
var css$v = {"root":"b4757w","caption-wrapper":"naqhO4","captionWrapper":"naqhO4","sort-icon":"W1ER8j","sortIcon":"W1ER8j","dropdown-icon":"SmyQ4p","dropdownIcon":"SmyQ4p","infoIcon":"PCHDjW","align-right":"gzLwwv","alignRight":"gzLwwv","align-center":"qaWypb","alignCenter":"qaWypb","caption":"XkiMr0","truncate":"xLvRDD","upper-case":"UBHmx4","upperCase":"UBHmx4","checkbox":"OTBbz2","icon":"w-U0fW","fold-all-icon":"e8tRmY","foldAllIcon":"e8tRmY","cell-tooltip":"PMtDXK","cellTooltip":"PMtDXK","resizing-marker":"_-53OVU","resizingMarker":"_-53OVU","pinned-right":"wyOrGa","pinnedRight":"wyOrGa","draggable":"i5xueY","ghost":"BqoNqL","is-dragged-out":"L8uO1Z","isDraggedOut":"L8uO1Z","dnd-marker-left":"EfFJJ5","dndMarkerLeft":"EfFJJ5","dnd-marker-right":"dNe4Gg","dndMarkerRight":"dNe4Gg","cell-tooltip-wrapper":"xu68Er","cellTooltipWrapper":"xu68Er","cell-tooltip-text":"_8-BkJU","cellTooltipText":"_8-BkJU","tooltip-caption":"b-72Aj","tooltipCaption":"b-72Aj","tooltip-info":"ifHrZu","tooltipInfo":"ifHrZu"};
|
|
4016
4112
|
|
|
4017
4113
|
class DataTableHeaderCell extends React.Component {
|
|
4018
4114
|
constructor() {
|
|
@@ -4106,7 +4202,7 @@ class DataTableHeaderCell extends React.Component {
|
|
|
4106
4202
|
}
|
|
4107
4203
|
}
|
|
4108
4204
|
|
|
4109
|
-
var css$u = {"root":"
|
|
4205
|
+
var css$u = {"root":"nTQW5Z","caption-wrapper":"CfTFgF","captionWrapper":"CfTFgF","align-center":"B-QRPf","alignCenter":"B-QRPf","caption":"hLnjIF","truncate":"_0Rq4Bu","upper-case":"HjRRlY","upperCase":"HjRRlY","group-cell-tooltip":"LpIW7M","groupCellTooltip":"LpIW7M","group-cell-tooltip-wrapper":"tXPS1H","groupCellTooltipWrapper":"tXPS1H","group-cell-tooltip-text":"f4U-22","groupCellTooltipText":"f4U-22","tooltip-caption":"A4h6nf","tooltipCaption":"A4h6nf","tooltip-info":"-e0QVE","tooltipInfo":"-e0QVE"};
|
|
4110
4206
|
|
|
4111
4207
|
class DataTableHeaderGroupCell extends React.Component {
|
|
4112
4208
|
constructor() {
|
|
@@ -4146,7 +4242,7 @@ class DataTableHeaderGroupCell extends React.Component {
|
|
|
4146
4242
|
}
|
|
4147
4243
|
}
|
|
4148
4244
|
|
|
4149
|
-
var css$t = {"root":"
|
|
4245
|
+
var css$t = {"root":"ZoDNIU"};
|
|
4150
4246
|
|
|
4151
4247
|
const DataTableHeaderRow = /* @__PURE__ */withMods(DataTableHeaderRow$1, () => [css$t.root, 'uui-dt-vars'], (mods) => ({
|
|
4152
4248
|
renderCell: (props) => (React.createElement(DataTableHeaderCell, { ...props, size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key, columnsGap: mods.columnsGap })),
|
|
@@ -4242,7 +4338,7 @@ const UUI_FILTERS_PANEL_ITEM_TOGGLER_SELECTION = 'uui-filters-panel-item-toggler
|
|
|
4242
4338
|
const UUI_FILTERS_PANEL_ITEM_TOGGLER_POSTFIX = 'uui-filters-panel-item-toggler-postfix';
|
|
4243
4339
|
const UUI_FILTERS_PANEL_BODY_FOOTER = 'uui-filters-panel-item-footer';
|
|
4244
4340
|
|
|
4245
|
-
var css$s = {"body":"
|
|
4341
|
+
var css$s = {"body":"_4Ixn2c","header":"s2bmwZ","title":"dZJlcD","removeButton":"LtHPkg","with-search":"CPCFHX","withSearch":"CPCFHX"};
|
|
4246
4342
|
|
|
4247
4343
|
function FilterColumnBody(props) {
|
|
4248
4344
|
const [predicate, setPredicate] = useState(getDefaultPredicate(props.predicates, props.value));
|
|
@@ -4303,7 +4399,7 @@ const useColumnsWithFilters = (initialColumns, filters) => {
|
|
|
4303
4399
|
return columns;
|
|
4304
4400
|
};
|
|
4305
4401
|
|
|
4306
|
-
var css$r = {"unpin-icon":"
|
|
4402
|
+
var css$r = {"unpin-icon":"Vwl9-L","unpinIcon":"Vwl9-L","pin-toggler-icon":"dxdZPu","pinTogglerIcon":"dxdZPu"};
|
|
4307
4403
|
|
|
4308
4404
|
function PinIconButton(props) {
|
|
4309
4405
|
const i18nLocal = i18n.tables.columnsConfigurationModal;
|
|
@@ -4345,7 +4441,7 @@ function getUnpinIcon(params) {
|
|
|
4345
4441
|
}
|
|
4346
4442
|
}
|
|
4347
4443
|
|
|
4348
|
-
var css$q = {"row-wrapper":"
|
|
4444
|
+
var css$q = {"row-wrapper":"hW9VxK","rowWrapper":"hW9VxK","pin-icon-button":"pTpMzl","pinIconButton":"pTpMzl","not-pinned":"xkwn3G","notPinned":"xkwn3G","checkbox":"bYsMGJ","drag-handle":"Z3jkmJ","dragHandle":"Z3jkmJ","dnd-disabled":"kNlTt-","dndDisabled":"kNlTt-"};
|
|
4349
4445
|
|
|
4350
4446
|
const ColumnRow = /* @__PURE__ */React.memo(function ColumnRow(props) {
|
|
4351
4447
|
const { column } = props;
|
|
@@ -4368,7 +4464,7 @@ const ColumnRow = /* @__PURE__ */React.memo(function ColumnRow(props) {
|
|
|
4368
4464
|
return (React.createElement(DndActor, { key: column.key, srcData: isDndAllowed && data, dstData: data, canAcceptDrop: onCanAcceptDrop, onDrop: onDrop, render: renderContent }));
|
|
4369
4465
|
});
|
|
4370
4466
|
|
|
4371
|
-
var css$p = {"root":"
|
|
4467
|
+
var css$p = {"root":"h2kKw1","main-panel":"wbLxSw","mainPanel":"wbLxSw","group":"_01mC0F","group-title":"qrU7pu","groupTitle":"qrU7pu","group-items":"_4Se-rL","groupItems":"_4Se-rL","no-data":"e2OMxc","noData":"e2OMxc","no-data-title":"jlgzxT","noDataTitle":"jlgzxT","no-data-sub-title":"XpH-38","noDataSubTitle":"XpH-38","h-divider":"j7aofd","hDivider":"j7aofd","search-area":"-JP4zK","searchArea":"-JP4zK","subgroup-accordion":"_768iQh","subgroupAccordion":"_768iQh","subgroup":"fZn8BC","subgroup-title":"Hcy17j","subgroupTitle":"Hcy17j"};
|
|
4372
4468
|
|
|
4373
4469
|
const renderGroupTitle = (title, amount) => (React.createElement(FlexRow, { cx: css$p.group },
|
|
4374
4470
|
React.createElement(Text, { size: "none", cx: css$p.groupTitle }, title),
|
|
@@ -4470,7 +4566,7 @@ const getChildrenAndRest = (row, rows) => {
|
|
|
4470
4566
|
return [children, rest];
|
|
4471
4567
|
};
|
|
4472
4568
|
|
|
4473
|
-
var css$o = {"listContainer":"
|
|
4569
|
+
var css$o = {"listContainer":"q4XfOM","header":"yEAyo7","group":"n3NxKs","stickyHeader":"dZHT7W"};
|
|
4474
4570
|
|
|
4475
4571
|
function DataRowsGroup({ row, childRows, renderRow, top = 1, }) {
|
|
4476
4572
|
const rowRef = useRef(undefined);
|
|
@@ -4510,7 +4606,7 @@ function DataRowsContainer({ estimatedHeight, listContainerRef, offsetY, rows, r
|
|
|
4510
4606
|
React__default.createElement(DataRowsGroups, { rows: rows, renderRow: renderRow, top: headerRef?.current?.clientHeight }))));
|
|
4511
4607
|
}
|
|
4512
4608
|
|
|
4513
|
-
var css$n = {"root":"
|
|
4609
|
+
var css$n = {"root":"GkdlCQ","sticky-header":"bQeT--","stickyHeader":"bQeT--","no-results":"IGoPZy","noResults":"IGoPZy","icon":"uhFwKr","title":"u-9W3w"};
|
|
4514
4610
|
|
|
4515
4611
|
function DataTable(props) {
|
|
4516
4612
|
const { uuiModals } = useUuiContext();
|
|
@@ -4562,7 +4658,7 @@ function DataTable(props) {
|
|
|
4562
4658
|
: (React.createElement(VirtualList, { value: props.value, onValueChange: props.onValueChange, onScroll: props.onScroll, rowsCount: props.rowsCount, renderRows: renderTableBody, cx: classes, isLoading: props.isReloading, rowsSelector: "[role=row]", rawProps: rawProps })))));
|
|
4563
4659
|
}
|
|
4564
4660
|
|
|
4565
|
-
var css$m = {"root":"
|
|
4661
|
+
var css$m = {"root":"GyNc5R","title-wrapper":"a2AIB7","titleWrapper":"a2AIB7","title":"pIKrqL","text-wrapper":"lyouu6","textWrapper":"lyouu6","selection":"nxjlPq","postfix":"wnx4gr","selected":"PQAmMq"};
|
|
4566
4662
|
|
|
4567
4663
|
const FilterPanelItemToggler = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
4568
4664
|
const togglerPickerOpened = (e) => {
|
|
@@ -4786,7 +4882,7 @@ function FilterRangeDatePickerBody(props) {
|
|
|
4786
4882
|
renderFooter()));
|
|
4787
4883
|
}
|
|
4788
4884
|
|
|
4789
|
-
var css$l = {"container":"
|
|
4885
|
+
var css$l = {"container":"_1Pzf3M"};
|
|
4790
4886
|
|
|
4791
4887
|
function FilterNumericBody(props) {
|
|
4792
4888
|
const isInRangePredicate = props?.selectedPredicate === 'inRange' || props?.selectedPredicate === 'notInRange';
|
|
@@ -5097,14 +5193,24 @@ function FiltersToolbarImpl(props) {
|
|
|
5097
5193
|
}
|
|
5098
5194
|
const FiltersPanel = /* @__PURE__ */React__default.memo(FiltersToolbarImpl);
|
|
5099
5195
|
|
|
5100
|
-
var css$k = {"delete-button":"
|
|
5196
|
+
var css$k = {"delete-button":"BgcNFt","deleteButton":"BgcNFt","tab-button":"Urs7Hb","tabButton":"Urs7Hb","targetOpen":"_99xTOz"};
|
|
5101
5197
|
|
|
5102
5198
|
function PresetActionsDropdown(props) {
|
|
5103
5199
|
const { uuiNotifications } = useUuiContext();
|
|
5200
|
+
const successNotificationHandler = useCallback((text) => {
|
|
5201
|
+
uuiNotifications
|
|
5202
|
+
.show((props) => (React__default.createElement(SuccessNotification, { ...props },
|
|
5203
|
+
React__default.createElement("div", { className: "uui-presets-panel-notification-text" }, text))), { duration: 3 })
|
|
5204
|
+
.catch(() => null);
|
|
5205
|
+
}, []);
|
|
5104
5206
|
const copyUrlToClipboard = useCallback(async () => {
|
|
5105
|
-
|
|
5207
|
+
const isPresetChanged = props.activePresetId === props.preset.id && props.hasPresetChanged(props.preset);
|
|
5208
|
+
const preset = isPresetChanged ? { ...props.preset, ...props.tableState } : props.preset;
|
|
5209
|
+
const link = props.getPresetLink(preset);
|
|
5210
|
+
await navigator.clipboard.writeText(link);
|
|
5106
5211
|
successNotificationHandler('Link copied!');
|
|
5107
|
-
}, []);
|
|
5212
|
+
}, [props.activePresetId, props.preset, props.hasPresetChanged, props.getPresetLink, props.tableState]);
|
|
5213
|
+
const onCopyLink = props.onCopyLink ? props.onCopyLink : copyUrlToClipboard;
|
|
5108
5214
|
const saveInCurrent = useCallback(async (preset) => {
|
|
5109
5215
|
const newPreset = {
|
|
5110
5216
|
...preset,
|
|
@@ -5119,12 +5225,6 @@ function PresetActionsDropdown(props) {
|
|
|
5119
5225
|
}, [
|
|
5120
5226
|
props.tableState.filter, props.tableState.columnsConfig, props.tableState.filtersConfig,
|
|
5121
5227
|
]);
|
|
5122
|
-
const successNotificationHandler = useCallback((text) => {
|
|
5123
|
-
uuiNotifications
|
|
5124
|
-
.show((props) => (React__default.createElement(SuccessNotification, { ...props },
|
|
5125
|
-
React__default.createElement("div", { className: "uui-presets-panel-notification-text" }, text))), { duration: 3 })
|
|
5126
|
-
.catch(() => null);
|
|
5127
|
-
}, []);
|
|
5128
5228
|
const saveInCurrentHandler = useCallback(() => {
|
|
5129
5229
|
saveInCurrent(props.preset);
|
|
5130
5230
|
}, [props.preset]);
|
|
@@ -5152,8 +5252,8 @@ function PresetActionsDropdown(props) {
|
|
|
5152
5252
|
React__default.createElement(DropdownMenuButton, { key: `${props.preset.id}-discard`, icon: settings.presetsPanel.icons.discardChangesIcon, caption: "Discard all changes", onClick: () => { dropdownProps.onClose(); discardAllChangesHandler(); } }),
|
|
5153
5253
|
React__default.createElement(DropdownMenuSplitter, { key: "discard-splitter" }))),
|
|
5154
5254
|
isRenameAvailable && (React__default.createElement(DropdownMenuButton, { key: `${props.preset.id}-rename`, icon: settings.presetsPanel.icons.renameIcon, caption: "Rename", onClick: props.renamePreset })),
|
|
5155
|
-
React__default.createElement(DropdownMenuButton, { key: `${props.preset.id}-duplicate`, icon: settings.presetsPanel.icons.copyIcon, caption: "Duplicate", onClick: () => { dropdownProps.onClose(); duplicateHandler(); } }),
|
|
5156
|
-
React__default.createElement(DropdownMenuButton, { key: `${props.preset.id}-copyLink`, icon: settings.presetsPanel.icons.copyLinkIcon, caption: "Copy Link", onClick:
|
|
5255
|
+
!isPresetChanged && (React__default.createElement(DropdownMenuButton, { key: `${props.preset.id}-duplicate`, icon: settings.presetsPanel.icons.copyIcon, caption: "Duplicate", onClick: () => { dropdownProps.onClose(); duplicateHandler(); } })),
|
|
5256
|
+
props.onCopyLink !== null && (React__default.createElement(DropdownMenuButton, { key: `${props.preset.id}-copyLink`, icon: settings.presetsPanel.icons.copyLinkIcon, caption: "Copy Link", onClick: onCopyLink })),
|
|
5157
5257
|
!isReadonlyPreset && (React__default.createElement(React__default.Fragment, null,
|
|
5158
5258
|
React__default.createElement(DropdownMenuSplitter, { key: "delete-splitter" }),
|
|
5159
5259
|
React__default.createElement(DropdownMenuButton, { icon: settings.presetsPanel.icons.deleteIcon, caption: "Delete", cx: css$k.deleteButton, onClick: deleteHandler })))));
|
|
@@ -5169,7 +5269,7 @@ const UUI_PRESETS_PANEL_MORE_BUTTON = 'uui-presets-panel-more-button';
|
|
|
5169
5269
|
const UUI_PRESETS_PANEL_INPUT = 'uui-presets-panel-input';
|
|
5170
5270
|
const UUI_PRESETS_PANEL_PRESET = 'uui-presets-panel-preset';
|
|
5171
5271
|
|
|
5172
|
-
var css$j = {"preset-input-cell":"
|
|
5272
|
+
var css$j = {"preset-input-cell":"cwvFx2","presetInputCell":"cwvFx2","preset-input":"jkvIku","presetInput":"jkvIku"};
|
|
5173
5273
|
|
|
5174
5274
|
function PresetInput(props) {
|
|
5175
5275
|
const [presetCaption, setPresetCaption] = useState(props.preset?.name || '');
|
|
@@ -5196,7 +5296,7 @@ function PresetInput(props) {
|
|
|
5196
5296
|
React__default.createElement(TextInput, { cx: css$j.presetInput, onValueChange: setPresetCaption, value: presetCaption, onCancel: cancelActionHandler, onAccept: acceptActionHandler, onBlur: newPresetOnBlurHandler, autoFocus: true, maxLength: 50, isReadonly: readonly })));
|
|
5197
5297
|
}
|
|
5198
5298
|
|
|
5199
|
-
var css$i = {"preset":"
|
|
5299
|
+
var css$i = {"preset":"Dye5l0","activePreset":"f-5V5b"};
|
|
5200
5300
|
|
|
5201
5301
|
function Preset(props) {
|
|
5202
5302
|
const [isRenamePreset, setIsRenamePreset] = useState(false);
|
|
@@ -5218,10 +5318,10 @@ function Preset(props) {
|
|
|
5218
5318
|
}, [props.preset]);
|
|
5219
5319
|
const isPresetActive = props.activePresetId === props.preset.id;
|
|
5220
5320
|
const PresetActionsDropdownComponent = useCallback(() => React__default.createElement(PresetActionsDropdown, { renamePreset: setPresetForRename, ...props }), [props.preset, props.tableState, props.activePresetId]);
|
|
5221
|
-
return (React__default.createElement(FlexCell, { key: props.preset.id, alignSelf: "center", width: "auto" }, isRenamePreset ? (React__default.createElement(PresetInput, { onCancel: cancelRenamePreset, onSuccess: handlePresetRename, preset: props.preset })) : (React__default.createElement(TabButton, { caption: props.preset.name, onClick: !isPresetActive && choosePresetHandler, cx: [css$i.preset, isPresetActive && css$i.activePreset, UUI_PRESETS_PANEL_PRESET], size: settings.presetsPanel.sizes.tabButton, withNotify: isPresetActive && props.hasPresetChanged(props.preset), icon: PresetActionsDropdownComponent, iconPosition: "right",
|
|
5321
|
+
return (React__default.createElement(FlexCell, { key: props.preset.id, alignSelf: "center", width: "auto" }, isRenamePreset ? (React__default.createElement(PresetInput, { onCancel: cancelRenamePreset, onSuccess: handlePresetRename, preset: props.preset })) : (React__default.createElement(TabButton, { caption: props.preset.name, onClick: !isPresetActive && choosePresetHandler, cx: [css$i.preset, isPresetActive && css$i.activePreset, UUI_PRESETS_PANEL_PRESET], size: settings.presetsPanel.sizes.tabButton, withNotify: isPresetActive && props.hasPresetChanged(props.preset), icon: PresetActionsDropdownComponent, iconPosition: "right", isActive: isPresetActive }))));
|
|
5222
5322
|
}
|
|
5223
5323
|
|
|
5224
|
-
var css$h = {"divider":"
|
|
5324
|
+
var css$h = {"divider":"KHh8Zw","dropdownDeleteIcon":"UN1qU6","presetsWrapper":"_8MsJOo","addPresetContainer":"uK2DuH","dropContainer":"JgZTNZ"};
|
|
5225
5325
|
|
|
5226
5326
|
function PresetsPanel(props) {
|
|
5227
5327
|
const [isAddingPreset, setIsAddingPreset] = useState(false);
|
|
@@ -5270,9 +5370,9 @@ function PresetsPanel(props) {
|
|
|
5270
5370
|
React__default.createElement(AdaptivePanel, { items: getPanelItems() }))));
|
|
5271
5371
|
}
|
|
5272
5372
|
|
|
5273
|
-
var css$g = {"root":"
|
|
5373
|
+
var css$g = {"root":"CfPVgr"};
|
|
5274
5374
|
|
|
5275
|
-
var css$f = {"root":"
|
|
5375
|
+
var css$f = {"root":"nx7RBH","burger-content":"jyN-38","burgerContent":"jyN-38"};
|
|
5276
5376
|
|
|
5277
5377
|
var _path$3;
|
|
5278
5378
|
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); }
|
|
@@ -5315,24 +5415,38 @@ var SvgNavigationArrowDownOutline = function SvgNavigationArrowDownOutline(props
|
|
|
5315
5415
|
};
|
|
5316
5416
|
var ForwardRef$2 = /*#__PURE__*/forwardRef(SvgNavigationArrowDownOutline);
|
|
5317
5417
|
|
|
5318
|
-
var css$e = {"root":"
|
|
5418
|
+
var css$e = {"root":"aSfkhg","button-primary":"FGHk2Z","buttonPrimary":"FGHk2Z","button-secondary":"DCpiox","buttonSecondary":"DCpiox","hasIcon":"_02T-H0","dropdown":"tHICjI"};
|
|
5319
5419
|
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5420
|
+
function applyBurgerButtonMods(props) {
|
|
5421
|
+
return [
|
|
5422
|
+
css$e.root,
|
|
5423
|
+
'uui-main_menu-burger-button',
|
|
5424
|
+
css$e['button-' + (props.type || 'primary')],
|
|
5425
|
+
css$e['indent-' + (props.indentLevel || 0)],
|
|
5426
|
+
props.isActive && uuiMod.active,
|
|
5427
|
+
props.isDropdown && css$e.dropdown,
|
|
5428
|
+
props.icon && css$e.hasIcon,
|
|
5429
|
+
];
|
|
5430
|
+
}
|
|
5431
|
+
const BurgerButton = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
5432
|
+
const { isActive } = useIsActive({
|
|
5433
|
+
isLinkActive: props.isLinkActive,
|
|
5434
|
+
link: props.link,
|
|
5435
|
+
isActive: props.isActive,
|
|
5436
|
+
});
|
|
5437
|
+
return (React__default.createElement(Button$1, { ...props, ref: ref, cx: applyBurgerButtonMods({ ...props, isActive }), rawProps: {
|
|
5438
|
+
...props.rawProps,
|
|
5439
|
+
role: 'menuitem',
|
|
5440
|
+
}, dropdownIcon: ForwardRef$2 }));
|
|
5441
|
+
});
|
|
5328
5442
|
|
|
5329
|
-
var css$d = {"search-input":"
|
|
5443
|
+
var css$d = {"search-input":"-AUA1G","searchInput":"-AUA1G"};
|
|
5330
5444
|
|
|
5331
5445
|
function BurgerSearch(props) {
|
|
5332
5446
|
return (React.createElement(TextInput$1, { cx: cx(css$d.searchInput, 'uui-main_menu-burger-search'), iconPosition: "left", icon: ForwardRef$M, placeholder: props.placeholder, value: props.value, onValueChange: props.onValueChange, onCancel: props.onCancel, cancelIcon: props.value && ForwardRef$Q }));
|
|
5333
5447
|
}
|
|
5334
5448
|
|
|
5335
|
-
var css$c = {"root":"
|
|
5449
|
+
var css$c = {"root":"dxTVgr","group-header":"_2IAhvh","groupHeader":"_2IAhvh","group-name":"BisoKj","groupName":"BisoKj","line":"Vw-Qxb"};
|
|
5336
5450
|
|
|
5337
5451
|
function BurgerGroupHeader(props) {
|
|
5338
5452
|
return (React.createElement("div", { className: cx(css$c.root, css$c.groupHeader, 'uui-burger-group-header') },
|
|
@@ -5340,19 +5454,25 @@ function BurgerGroupHeader(props) {
|
|
|
5340
5454
|
React.createElement("span", { className: css$c.groupName }, props.caption)));
|
|
5341
5455
|
}
|
|
5342
5456
|
|
|
5343
|
-
var css$b = {"root":"
|
|
5457
|
+
var css$b = {"root":"_2Cznnq","type-primary":"-IkhrK","typePrimary":"-IkhrK","type-secondary":"_59s4v0","typeSecondary":"_59s4v0"};
|
|
5344
5458
|
|
|
5345
5459
|
const MainMenuButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
5346
5460
|
const { type, ...clickableProps } = props;
|
|
5461
|
+
const { isActive } = useIsActive({
|
|
5462
|
+
isLinkActive: props.isLinkActive,
|
|
5463
|
+
link: props.link,
|
|
5464
|
+
isActive: props.isActive,
|
|
5465
|
+
});
|
|
5347
5466
|
return (React.createElement(Clickable, { ...clickableProps, rawProps: {
|
|
5348
5467
|
'aria-expanded': props.isOpen,
|
|
5349
|
-
'aria-current':
|
|
5468
|
+
'aria-current': isActive
|
|
5350
5469
|
? 'page'
|
|
5351
5470
|
: undefined,
|
|
5352
5471
|
...props.rawProps,
|
|
5353
5472
|
}, cx: [
|
|
5354
5473
|
css$b.root,
|
|
5355
5474
|
css$b['type-' + (type || 'primary')],
|
|
5475
|
+
isActive && uuiMod.active,
|
|
5356
5476
|
props.cx,
|
|
5357
5477
|
], ref: ref },
|
|
5358
5478
|
props.icon && props.iconPosition !== 'right' && (React.createElement(IconContainer, { icon: props.icon, onClick: props.onIconClick })),
|
|
@@ -5362,34 +5482,18 @@ const MainMenuButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
5362
5482
|
props.isDropdown && (React.createElement(IconContainer, { icon: ForwardRef$P, flipY: props.isOpen }))));
|
|
5363
5483
|
});
|
|
5364
5484
|
|
|
5365
|
-
var css$a = {"dropdown-body":"
|
|
5485
|
+
var css$a = {"dropdown-body":"qC5nxf","dropdownBody":"qC5nxf"};
|
|
5366
5486
|
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
? this.props.renderBody({ ...props })
|
|
5378
|
-
: React.Children.map(this.props.children, (item) => {
|
|
5379
|
-
if (!item)
|
|
5380
|
-
return item;
|
|
5381
|
-
return React.createElement(item.type, {
|
|
5382
|
-
...item.props,
|
|
5383
|
-
onClick: item.props.onClick
|
|
5384
|
-
? () => {
|
|
5385
|
-
item.props.onClick();
|
|
5386
|
-
props.onClose();
|
|
5387
|
-
}
|
|
5388
|
-
: null,
|
|
5389
|
-
});
|
|
5390
|
-
}))));
|
|
5391
|
-
}, placement: "bottom-start" }));
|
|
5392
|
-
}
|
|
5487
|
+
function MainMenuDropdown(props) {
|
|
5488
|
+
const handleEscape = (e, onClose, isOpen) => {
|
|
5489
|
+
if (e.key === 'Escape' && isOpen) {
|
|
5490
|
+
onClose();
|
|
5491
|
+
}
|
|
5492
|
+
};
|
|
5493
|
+
return (React__default.createElement(Dropdown$1, { renderTarget: (dropdownProps) => (React__default.createElement(MainMenuButton, { caption: props.caption, ...dropdownProps, rawProps: props.rawProps, isActive: props.isActive, isDropdown: true })), renderBody: (dropdownBodyProps) => (React__default.createElement(FocusLock, { returnFocus: true, persistentFocus: true, lockProps: {
|
|
5494
|
+
onKeyDown: (e) => handleEscape(e, dropdownBodyProps.onClose, dropdownBodyProps.isOpen),
|
|
5495
|
+
} },
|
|
5496
|
+
React__default.createElement("div", { className: cx(css$a.dropdownBody, 'uui-main_menu-dropdown', props.cx) }, props.renderBody({ ...dropdownBodyProps })))), placement: "bottom-start" }));
|
|
5393
5497
|
}
|
|
5394
5498
|
|
|
5395
5499
|
function applyMainMenuMods() {
|
|
@@ -5421,12 +5525,12 @@ var SvgNavigationGlobalMenuOutlineOutline = function SvgNavigationGlobalMenuOutl
|
|
|
5421
5525
|
};
|
|
5422
5526
|
var ForwardRef$1 = /*#__PURE__*/forwardRef(SvgNavigationGlobalMenuOutlineOutline);
|
|
5423
5527
|
|
|
5424
|
-
var css$9 = {"global-menu-btn":"
|
|
5528
|
+
var css$9 = {"global-menu-btn":"Zgx50Q","globalMenuBtn":"Zgx50Q","global-menu-icon":"ptbChi","globalMenuIcon":"ptbChi"};
|
|
5425
5529
|
|
|
5426
5530
|
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 },
|
|
5427
5531
|
React.createElement(IconContainer, { size: 36, icon: ForwardRef$1, cx: css$9.globalMenuIcon }))));
|
|
5428
5532
|
|
|
5429
|
-
var css$8 = {"container":"
|
|
5533
|
+
var css$8 = {"container":"JOg9EY","open":"_9Xp0Gk","folding-arrow":"_42X9dZ","foldingArrow":"_42X9dZ"};
|
|
5430
5534
|
|
|
5431
5535
|
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 },
|
|
5432
5536
|
React.createElement(Avatar, { size: "36", img: props.avatarUrl }),
|
|
@@ -5434,15 +5538,15 @@ const MainMenuAvatar = /* @__PURE__ */React.forwardRef((props, ref) => (React.cr
|
|
|
5434
5538
|
props.isDropdown && (React.createElement("div", null,
|
|
5435
5539
|
React.createElement(IconContainer, { size: 18, icon: ForwardRef$P, flipY: props.isOpen, cx: css$8.foldingArrow }))))));
|
|
5436
5540
|
|
|
5437
|
-
var css$7 = {"search-input":"
|
|
5541
|
+
var css$7 = {"search-input":"LWtnwu","searchInput":"LWtnwu"};
|
|
5438
5542
|
|
|
5439
5543
|
const MainMenuSearch = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement(IEditableDebouncer, { ...props, render: (iEditable) => (React.createElement(TextInput$1, { iconPosition: "left", icon: ForwardRef$M, cancelIcon: props.value?.length > 0 && ForwardRef$Q, ...props, ...iEditable, ref: ref, cx: cx$1(css$7.searchInput, props.cx), ...props.rawProps })) })));
|
|
5440
5544
|
|
|
5441
|
-
var css$6 = {"container":"
|
|
5545
|
+
var css$6 = {"container":"d-E4Ii"};
|
|
5442
5546
|
|
|
5443
5547
|
const MainMenuIcon = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement(IconButton, { ref: ref, icon: props.icon, cx: cx$1(props.cx, css$6.container), ...props })));
|
|
5444
5548
|
|
|
5445
|
-
var css$5 = {"root":"
|
|
5549
|
+
var css$5 = {"root":"IRUUJv"};
|
|
5446
5550
|
|
|
5447
5551
|
const Anchor = /* @__PURE__ */withMods(Anchor$1, () => [css$5.root]);
|
|
5448
5552
|
|
|
@@ -5500,7 +5604,7 @@ var SvgFileCloudUploadFill = function SvgFileCloudUploadFill(props, ref) {
|
|
|
5500
5604
|
};
|
|
5501
5605
|
var ForwardRef = /*#__PURE__*/forwardRef(SvgFileCloudUploadFill);
|
|
5502
5606
|
|
|
5503
|
-
var css$4 = {"root":"
|
|
5607
|
+
var css$4 = {"root":"tcm7tF","drop-start":"lSg-VV","dropStart":"lSg-VV","drop-over":"_8fZSzw","dropOver":"_8fZSzw","link":"ZtYJFd","drop-area":"g8N6qt","dropArea":"g8N6qt","drop-caption":"_13ruEY","dropCaption":"_13ruEY","icon-blue":"sNjEhT","iconBlue":"sNjEhT"};
|
|
5504
5608
|
|
|
5505
5609
|
function DropSpot(props) {
|
|
5506
5610
|
const getInfoText = typeof props.infoText === 'string'
|
|
@@ -5518,7 +5622,7 @@ function DropSpot(props) {
|
|
|
5518
5622
|
return React.createElement(DropSpot$1, { render: renderAttachmentArea, onFilesDropped: props.onUploadFiles });
|
|
5519
5623
|
}
|
|
5520
5624
|
|
|
5521
|
-
var css$3 = {"root":"
|
|
5625
|
+
var css$3 = {"root":"_8KeYyk"};
|
|
5522
5626
|
|
|
5523
5627
|
const SvgCircleProgress = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
5524
5628
|
const outsetRadius = props.size / 2 - 1;
|
|
@@ -5529,7 +5633,7 @@ const SvgCircleProgress = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
5529
5633
|
React.createElement("circle", { strokeWidth: 1, fill: "transparent", r: outsetRadius, cx: props.size / 2, cy: props.size / 2 })));
|
|
5530
5634
|
});
|
|
5531
5635
|
|
|
5532
|
-
var css$2 = {"root":"
|
|
5636
|
+
var css$2 = {"root":"k2RJTn","file-name":"zlZ4b-","fileName":"zlZ4b-","default-color":"d8xlQ4","defaultColor":"d8xlQ4","doc-color":"_5hOH57","docColor":"_5hOH57","xls-color":"xGVIvZ","xlsColor":"xGVIvZ","pdf-color":"_74zO-v","pdfColor":"_74zO-v","movie-color":"_6E4yt-","movieColor":"_6E4yt-","img-color":"_243-4q","imgColor":"_243-4q","mov-color":"bej-U1","movColor":"bej-U1","error-block":"_6WDRWV","errorBlock":"_6WDRWV","icons-block":"MknJ5f","iconsBlock":"MknJ5f"};
|
|
5533
5637
|
|
|
5534
5638
|
const FileCard = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
5535
5639
|
const [isLoadingShow, setIsLoadingShow] = React.useState(true);
|
|
@@ -5648,7 +5752,7 @@ const getErrorPageConfig = () => ({
|
|
|
5648
5752
|
},
|
|
5649
5753
|
});
|
|
5650
5754
|
|
|
5651
|
-
var css$1 = {"container":"
|
|
5755
|
+
var css$1 = {"container":"OXiYOQ"};
|
|
5652
5756
|
|
|
5653
5757
|
const ErrorPage = (props) => {
|
|
5654
5758
|
const isMobileScreen = isMobile();
|
|
@@ -5660,7 +5764,7 @@ const ErrorPage = (props) => {
|
|
|
5660
5764
|
props?.supportLink && React__default.createElement("div", { className: "uui-error-support-link" }, props?.supportLink))));
|
|
5661
5765
|
};
|
|
5662
5766
|
|
|
5663
|
-
var css = {"recovery-spinner":"
|
|
5767
|
+
var css = {"recovery-spinner":"M9-nnX","recoverySpinner":"M9-nnX","recovery-message":"_8vzTQg","recoveryMessage":"_8vzTQg","modal-blocker":"XgXrc3","modalBlocker":"XgXrc3","modalFadeIn":"_1j1hZh"};
|
|
5664
5768
|
|
|
5665
5769
|
function ErrorHandler(props) {
|
|
5666
5770
|
const { uuiNotifications, uuiModals, uuiApi } = useUuiContext();
|
|
@@ -5711,5 +5815,5 @@ function ErrorHandler(props) {
|
|
|
5711
5815
|
errorType === 'recovery' && renderRecoveryBlocker(errorInfo)));
|
|
5712
5816
|
}
|
|
5713
5817
|
|
|
5714
|
-
export { Accordion, Alert, Anchor, AvatarStack, Badge, Blocker, Burger, BurgerButton, BurgerGroupHeader, BurgerSearch, Button, Calendar, Checkbox, CheckboxGroup, ClearNotification, ColumnHeaderDropdown, ColumnsConfigurationModal, ConfirmationModal, ControlGroup, CountIndicator, DataPickerBody, DataPickerFooter, DataPickerMobileHeader, DataPickerRow, DataRowAddons, DataRowsContainer, DataTable, DataTableCell, DataTableHeaderCell, DataTableHeaderRow, DataTableRow, DatePicker, DatePickerBody, DatePickerComponent, DropMarker, DropSpot, Dropdown, DropdownContainer, DropdownMenuBody, DropdownMenuButton, DropdownMenuHeader, DropdownMenuSplitter, DropdownMenuSwitchButton, DropdownSubMenu, ErrorAlert, ErrorHandler, ErrorNotification, ErrorPage, FileCard, FilterDatePickerBodyFooter, FilterItemBody, FilterPickerBody, FilterRangeDatePickerBodyFooter, FiltersPanel, FlexCell, FlexRow, Form, GlobalMenu, HintAlert, HintNotification, IDropdownControlKeys, IconButton, IndeterminateBar, IndicatorBar, InputAddon, LabeledInput, LinkButton, MainMenu, MainMenuAvatar, MainMenuButton, MainMenuDropdown, MainMenuIcon, MainMenuSearch, ModalBlocker, ModalFooter, ModalHeader, ModalWindow, MultiSwitch, NotificationCard, NumericInput, Paginator, Panel, PickerBodyMobileView, PickerInput, PickerItem, PickerList, PickerListRow, PickerModal, PickerToggler, PickerTogglerTag, PresetsPanel, ProgressBar, RadioGroup, RadioInput, RangeDatePicker, RangeDatePickerBody, RangeDatePickerInput, Rating, RichTextView, ScrollBars, SearchInput, Slider, Snackbar, Spinner, StatusIndicator, SuccessAlert, SuccessNotification, SvgCircleProgress, Switch, TabButton, Tag, Text, TextArea, TextInput, TextPlaceholder, TimePicker, TimePickerBody, TimePickerComponent, Tooltip, VerticalTabButton, VirtualList, WarningAlert, WarningNotification, applyDateSelectionMods, defaultPredicates, getDefaultPredicate, getErrorPageConfig, getHighlightRanges, getHighlightedSearchMatches, getRecoveryMessageConfig, i18n, propsMods, rangeDatePickerPresets, renderCell, renderDropMarkers, settings, useColumnsWithFilters, useForm, uuiDatePickerBody, uuiRangeDatePickerBody, uuiTimePicker };
|
|
5818
|
+
export { Accordion, Alert, Anchor, AvatarStack, Badge, Blocker, Burger, BurgerButton, BurgerGroupHeader, BurgerSearch, Button, Calendar, Checkbox, CheckboxGroup, ClearNotification, ColumnHeaderDropdown, ColumnsConfigurationModal, ConfirmationModal, ControlGroup, CountIndicator, DataPickerBody, DataPickerFooter, DataPickerMobileHeader, DataPickerRow, DataRowAddons, DataRowsContainer, DataTable, DataTableCell, DataTableHeaderCell, DataTableHeaderRow, DataTableRow, DatePicker, DatePickerBody, DatePickerComponent, DropMarker, DropSpot, Dropdown, DropdownContainer, DropdownMenuBody, DropdownMenuButton, DropdownMenuHeader, DropdownMenuSplitter, DropdownMenuSwitchButton, DropdownSubMenu, ErrorAlert, ErrorHandler, ErrorNotification, ErrorPage, FileCard, FilterDatePickerBodyFooter, FilterItemBody, FilterPickerBody, FilterRangeDatePickerBodyFooter, FiltersPanel, FlexCell, FlexRow, Form, GlobalMenu, HintAlert, HintNotification, IDropdownControlKeys, IconButton, IndeterminateBar, IndicatorBar, InputAddon, LabeledInput, LinkButton, MainMenu, MainMenuAvatar, MainMenuButton, MainMenuDropdown, MainMenuIcon, MainMenuSearch, ModalBlocker, ModalFooter, ModalHeader, ModalWindow, MultiSwitch, NotificationCard, NumericInput, Paginator, Panel, PickerBodyMobileView, PickerInput, PickerItem, PickerList, PickerListRow, PickerModal, PickerToggler, PickerTogglerTag, PresetsPanel, ProgressBar, RadioGroup, RadioInput, RangeDatePicker, RangeDatePickerBody, RangeDatePickerInput, Rating, RichTextView, ScrollBars, SearchInput, Slider, Snackbar, Spinner, StatusIndicator, SuccessAlert, SuccessNotification, SvgCircleProgress, Switch, TabButton, Tag, Text, TextArea, TextInput, TextPlaceholder, TimePicker, TimePickerBody, TimePickerComponent, Tooltip, Tree, VerticalTabButton, VirtualList, WarningAlert, WarningNotification, applyDateSelectionMods, defaultPredicates, getDefaultPredicate, getErrorPageConfig, getHighlightRanges, getHighlightedSearchMatches, getRecoveryMessageConfig, i18n, propsMods, rangeDatePickerPresets, renderCell, renderDropMarkers, settings, useColumnsWithFilters, useForm, uuiDatePickerBody, uuiRangeDatePickerBody, uuiTimePicker };
|
|
5715
5819
|
//# sourceMappingURL=index.esm.js.map
|