@epam/uui 5.11.0-rc.0 → 5.11.1-rc.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/assets/styles/effects.scss +1 -2
- package/assets/styles/typography.scss +2 -1
- package/components/errors/ErrorPage.d.ts.map +1 -1
- package/components/errors/config.d.ts +4 -0
- package/components/errors/config.d.ts.map +1 -1
- package/components/filters/PresetPanel/Preset.d.ts.map +1 -1
- package/components/filters/PresetPanel/PresetActionsDropdown.d.ts.map +1 -1
- package/components/inputs/Rating.d.ts +25 -0
- package/components/inputs/Rating.d.ts.map +1 -0
- package/components/inputs/index.d.ts +1 -0
- package/components/inputs/index.d.ts.map +1 -1
- package/components/overlays/Alert.d.ts.map +1 -1
- package/components/overlays/Modals.d.ts.map +1 -1
- package/components/tables/DataTable.d.ts +3 -1
- package/components/tables/DataTable.d.ts.map +1 -1
- package/components/tables/DataTableHeaderGroupCell.d.ts +16 -0
- package/components/tables/DataTableHeaderGroupCell.d.ts.map +1 -0
- package/components/tables/DataTableHeaderRow.d.ts.map +1 -1
- package/i18n.d.ts +2 -0
- package/i18n.d.ts.map +1 -1
- package/index.esm.js +602 -481
- package/index.esm.js.map +1 -1
- package/index.js +601 -479
- package/index.js.map +1 -1
- package/package.json +5 -5
- package/settings.d.ts.map +1 -1
- package/settings.types.d.ts +18 -0
- package/settings.types.d.ts.map +1 -1
- package/stats.html +1 -1
- package/styles.css +2967 -2682
- package/styles.css.map +1 -1
package/index.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as uuiComponents from '@epam/uui-components';
|
|
2
2
|
import { Clickable, IconContainer, RadioInput as RadioInput$1, TextInput as TextInput$1, ControlGroup as ControlGroup$1, NumericInput as NumericInput$1, TextArea as TextArea$1, Dropdown as Dropdown$1, Anchor as Anchor$1, FlexRow as FlexRow$1, FlexSpacer, Text as Text$1, FlexCell as FlexCell$1, VPanel, ScrollBars as ScrollBars$1, AvatarStack as AvatarStack$1, Spinner as Spinner$1, Paginator as Paginator$1, DragHandle, Blocker as Blocker$1, ModalBlocker as ModalBlocker$1, ModalWindow as ModalWindow$1, Snackbar as Snackbar$1, InputAddon as InputAddon$1, Slider as Slider$1, Calendar as Calendar$1, YearSelection, MonthSelection, Day, uuiDaySelection, PickerBodyBase, DataPickerRow as DataPickerRow$1, Avatar, usePickerModal, handleDataSourceKeyboard, PickerToggler as PickerToggler$1, usePickerInput, usePickerList, DataTableCell as DataTableCell$1, DataTableRow as DataTableRow$1, DataTableCellContainer, DataTableHeaderCell as DataTableHeaderCell$1, DataTableHeaderRow as DataTableHeaderRow$1, AdaptivePanel, useColumnsConfiguration, Accordion as Accordion$1, DataTableSelectionProvider, DataTableFocusProvider, Burger as Burger$1, Button as Button$1, DropSpot as DropSpot$1, UploadFileToggler, ErrorCatch } from '@epam/uui-components';
|
|
3
3
|
export { Avatar, DataTableCellContainer, FlexSpacer, IconContainer } from '@epam/uui-components';
|
|
4
|
-
import { withMods, devLogger, uuiElement, cx as cx$1, uuiMarkers, IEditableDebouncer, UuiContext, uuiMod, directionMode, useVirtualList, useScrollShadows, isMobile, i18n as i18n$1, useUuiContext, isFocusReceiverInsideFocusLock, Lens, mobilePopperModifier, uuiDataTableHeaderCell, usePrevious, useForceUpdate, getSeparatedValue, useArrayDataSource, orderBy, getOrderBetween, DndActor, uuiDndState, useColumnsConfig, uuiScrollShadows, Form as Form$1, useForm as useForm$1, formatBytes, useUuiError } from '@epam/uui-core';
|
|
4
|
+
import { withMods, devLogger, uuiElement, cx as cx$1, uuiMarkers, IEditableDebouncer, UuiContext, uuiMod, directionMode, useVirtualList, useScrollShadows, isMobile, i18n as i18n$1, useUuiContext, isFocusReceiverInsideFocusLock, Lens, mobilePopperModifier, uuiDataTableHeaderCell, uuiDataTableHeaderGroupCell, usePrevious, useForceUpdate, getSeparatedValue, useArrayDataSource, orderBy, getOrderBetween, DndActor, uuiDndState, useColumnsConfig, uuiScrollShadows, Form as Form$1, useForm as useForm$1, formatBytes, useUuiError } from '@epam/uui-core';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import React__default, { forwardRef, useContext, useRef, useState, useEffect, useReducer, useImperativeHandle, useCallback, useMemo, Fragment } from 'react';
|
|
7
7
|
import cx from 'classnames';
|
|
@@ -16,9 +16,24 @@ import customParseFormat from 'dayjs/plugin/customParseFormat.js';
|
|
|
16
16
|
import isoWeek from 'dayjs/plugin/isoWeek.js';
|
|
17
17
|
import FocusLock from 'react-focus-lock';
|
|
18
18
|
|
|
19
|
+
var _path$R;
|
|
20
|
+
function _extends$R() { _extends$R = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$R.apply(this, arguments); }
|
|
21
|
+
var SvgNavigationCloseOutline = function SvgNavigationCloseOutline(props, ref) {
|
|
22
|
+
return /*#__PURE__*/React.createElement("svg", _extends$R({
|
|
23
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
24
|
+
width: 24,
|
|
25
|
+
height: 24,
|
|
26
|
+
viewBox: "0 0 24 24",
|
|
27
|
+
ref: ref
|
|
28
|
+
}, props), _path$R || (_path$R = /*#__PURE__*/React.createElement("path", {
|
|
29
|
+
d: "M6.4 19 5 17.6l5.6-5.6L5 6.4 6.4 5l5.6 5.6L17.6 5 19 6.4 13.4 12l5.6 5.6-1.4 1.4-5.6-5.6L6.4 19z"
|
|
30
|
+
})));
|
|
31
|
+
};
|
|
32
|
+
var ForwardRef$R = /*#__PURE__*/forwardRef(SvgNavigationCloseOutline);
|
|
33
|
+
|
|
19
34
|
var _path$Q;
|
|
20
35
|
function _extends$Q() { _extends$Q = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$Q.apply(this, arguments); }
|
|
21
|
-
var
|
|
36
|
+
var SvgNavigationChevronDownOutline = function SvgNavigationChevronDownOutline(props, ref) {
|
|
22
37
|
return /*#__PURE__*/React.createElement("svg", _extends$Q({
|
|
23
38
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24
39
|
width: 24,
|
|
@@ -26,14 +41,14 @@ var SvgNavigationCloseOutline = function SvgNavigationCloseOutline(props, ref) {
|
|
|
26
41
|
viewBox: "0 0 24 24",
|
|
27
42
|
ref: ref
|
|
28
43
|
}, props), _path$Q || (_path$Q = /*#__PURE__*/React.createElement("path", {
|
|
29
|
-
d: "
|
|
44
|
+
d: "M5.414 8.086 4 9.5l8 8 8-8-1.414-1.414L12 14.672 5.414 8.086z"
|
|
30
45
|
})));
|
|
31
46
|
};
|
|
32
|
-
var ForwardRef$Q = /*#__PURE__*/forwardRef(
|
|
47
|
+
var ForwardRef$Q = /*#__PURE__*/forwardRef(SvgNavigationChevronDownOutline);
|
|
33
48
|
|
|
34
49
|
var _path$P;
|
|
35
50
|
function _extends$P() { _extends$P = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$P.apply(this, arguments); }
|
|
36
|
-
var
|
|
51
|
+
var SvgNotificationDoneOutline = function SvgNotificationDoneOutline(props, ref) {
|
|
37
52
|
return /*#__PURE__*/React.createElement("svg", _extends$P({
|
|
38
53
|
xmlns: "http://www.w3.org/2000/svg",
|
|
39
54
|
width: 24,
|
|
@@ -41,14 +56,14 @@ var SvgNavigationChevronDownOutline = function SvgNavigationChevronDownOutline(p
|
|
|
41
56
|
viewBox: "0 0 24 24",
|
|
42
57
|
ref: ref
|
|
43
58
|
}, props), _path$P || (_path$P = /*#__PURE__*/React.createElement("path", {
|
|
44
|
-
d: "
|
|
59
|
+
d: "m20.503 7.4-1.778-1.78-9.175 9.176-4.275-4.275L3.496 12.3l6.054 6.053L20.503 7.4z"
|
|
45
60
|
})));
|
|
46
61
|
};
|
|
47
|
-
var ForwardRef$P = /*#__PURE__*/forwardRef(
|
|
62
|
+
var ForwardRef$P = /*#__PURE__*/forwardRef(SvgNotificationDoneOutline);
|
|
48
63
|
|
|
49
64
|
var _path$O;
|
|
50
65
|
function _extends$O() { _extends$O = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$O.apply(this, arguments); }
|
|
51
|
-
var
|
|
66
|
+
var SvgActionSearchOutline = function SvgActionSearchOutline(props, ref) {
|
|
52
67
|
return /*#__PURE__*/React.createElement("svg", _extends$O({
|
|
53
68
|
xmlns: "http://www.w3.org/2000/svg",
|
|
54
69
|
width: 24,
|
|
@@ -56,14 +71,16 @@ var SvgNotificationDoneOutline = function SvgNotificationDoneOutline(props, ref)
|
|
|
56
71
|
viewBox: "0 0 24 24",
|
|
57
72
|
ref: ref
|
|
58
73
|
}, props), _path$O || (_path$O = /*#__PURE__*/React.createElement("path", {
|
|
59
|
-
|
|
74
|
+
fillRule: "evenodd",
|
|
75
|
+
d: "M17.32 15.906 21.414 20 20 21.414l-4.094-4.094a8 8 0 1 1 1.414-1.414zM11 17a6 6 0 1 0 0-12 6 6 0 0 0 0 12z",
|
|
76
|
+
clipRule: "evenodd"
|
|
60
77
|
})));
|
|
61
78
|
};
|
|
62
|
-
var ForwardRef$O = /*#__PURE__*/forwardRef(
|
|
79
|
+
var ForwardRef$O = /*#__PURE__*/forwardRef(SvgActionSearchOutline);
|
|
63
80
|
|
|
64
81
|
var _path$N;
|
|
65
82
|
function _extends$N() { _extends$N = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$N.apply(this, arguments); }
|
|
66
|
-
var
|
|
83
|
+
var SvgActionCalendarFill = function SvgActionCalendarFill(props, ref) {
|
|
67
84
|
return /*#__PURE__*/React.createElement("svg", _extends$N({
|
|
68
85
|
xmlns: "http://www.w3.org/2000/svg",
|
|
69
86
|
width: 24,
|
|
@@ -71,16 +88,14 @@ var SvgActionSearchOutline = function SvgActionSearchOutline(props, ref) {
|
|
|
71
88
|
viewBox: "0 0 24 24",
|
|
72
89
|
ref: ref
|
|
73
90
|
}, props), _path$N || (_path$N = /*#__PURE__*/React.createElement("path", {
|
|
74
|
-
|
|
75
|
-
d: "M17.32 15.906 21.414 20 20 21.414l-4.094-4.094a8 8 0 1 1 1.414-1.414zM11 17a6 6 0 1 0 0-12 6 6 0 0 0 0 12z",
|
|
76
|
-
clipRule: "evenodd"
|
|
91
|
+
d: "M5 22a1.93 1.93 0 0 1-1.413-.587A1.928 1.928 0 0 1 3 20V6c0-.55.196-1.02.587-1.412A1.927 1.927 0 0 1 5 4h1V2h2v2h8V2h2v2h1c.55 0 1.021.196 1.413.588.391.391.587.862.587 1.412v14a1.93 1.93 0 0 1-.587 1.413A1.928 1.928 0 0 1 19 22H5zm0-2h14V10H5v10z"
|
|
77
92
|
})));
|
|
78
93
|
};
|
|
79
|
-
var ForwardRef$N = /*#__PURE__*/forwardRef(
|
|
94
|
+
var ForwardRef$N = /*#__PURE__*/forwardRef(SvgActionCalendarFill);
|
|
80
95
|
|
|
81
96
|
var _path$M;
|
|
82
97
|
function _extends$M() { _extends$M = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$M.apply(this, arguments); }
|
|
83
|
-
var
|
|
98
|
+
var SvgNotificationInfoOutline = function SvgNotificationInfoOutline(props, ref) {
|
|
84
99
|
return /*#__PURE__*/React.createElement("svg", _extends$M({
|
|
85
100
|
xmlns: "http://www.w3.org/2000/svg",
|
|
86
101
|
width: 24,
|
|
@@ -88,14 +103,14 @@ var SvgActionCalendarFill = function SvgActionCalendarFill(props, ref) {
|
|
|
88
103
|
viewBox: "0 0 24 24",
|
|
89
104
|
ref: ref
|
|
90
105
|
}, props), _path$M || (_path$M = /*#__PURE__*/React.createElement("path", {
|
|
91
|
-
d: "
|
|
106
|
+
d: "M11 17h2v-6h-2v6zm1-8a.968.968 0 0 0 .713-.288A.967.967 0 0 0 13 8a.97.97 0 0 0-.287-.713A.97.97 0 0 0 12 7a.967.967 0 0 0-.712.287A.968.968 0 0 0 11 8c0 .283.096.52.288.712A.965.965 0 0 0 12 9zm0 13a9.733 9.733 0 0 1-3.9-.788 10.092 10.092 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.733 9.733 0 0 1 2 12a9.74 9.74 0 0 1 .788-3.9 10.092 10.092 0 0 1 2.137-3.175c.9-.9 1.958-1.613 3.175-2.138A9.743 9.743 0 0 1 12 2a9.74 9.74 0 0 1 3.9.787 10.105 10.105 0 0 1 3.175 2.138c.9.9 1.612 1.958 2.137 3.175A9.733 9.733 0 0 1 22 12a9.733 9.733 0 0 1-.788 3.9 10.092 10.092 0 0 1-2.137 3.175c-.9.9-1.958 1.612-3.175 2.137A9.733 9.733 0 0 1 12 22zm0-2c2.233 0 4.125-.775 5.675-2.325C19.225 16.125 20 14.233 20 12c0-2.233-.775-4.125-2.325-5.675C16.125 4.775 14.233 4 12 4c-2.233 0-4.125.775-5.675 2.325C4.775 7.875 4 9.767 4 12c0 2.233.775 4.125 2.325 5.675C7.875 19.225 9.767 20 12 20z"
|
|
92
107
|
})));
|
|
93
108
|
};
|
|
94
|
-
var ForwardRef$M = /*#__PURE__*/forwardRef(
|
|
109
|
+
var ForwardRef$M = /*#__PURE__*/forwardRef(SvgNotificationInfoOutline);
|
|
95
110
|
|
|
96
111
|
var _path$L;
|
|
97
112
|
function _extends$L() { _extends$L = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$L.apply(this, arguments); }
|
|
98
|
-
var
|
|
113
|
+
var SvgFileFileWordFill = function SvgFileFileWordFill(props, ref) {
|
|
99
114
|
return /*#__PURE__*/React.createElement("svg", _extends$L({
|
|
100
115
|
xmlns: "http://www.w3.org/2000/svg",
|
|
101
116
|
width: 24,
|
|
@@ -103,14 +118,16 @@ var SvgNotificationInfoOutline = function SvgNotificationInfoOutline(props, ref)
|
|
|
103
118
|
viewBox: "0 0 24 24",
|
|
104
119
|
ref: ref
|
|
105
120
|
}, props), _path$L || (_path$L = /*#__PURE__*/React.createElement("path", {
|
|
106
|
-
|
|
121
|
+
fillRule: "evenodd",
|
|
122
|
+
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm1.2 18h-1.4L12 13.2 10.2 20H8.8l-2.2-9h1.5l1.4 6.8 1.8-6.8h1.3l1.8 6.8 1.4-6.8h1.5l-2.1 9zM13 9V3.5L18.5 9H13z",
|
|
123
|
+
clipRule: "evenodd"
|
|
107
124
|
})));
|
|
108
125
|
};
|
|
109
|
-
var ForwardRef$L = /*#__PURE__*/forwardRef(
|
|
126
|
+
var ForwardRef$L = /*#__PURE__*/forwardRef(SvgFileFileWordFill);
|
|
110
127
|
|
|
111
128
|
var _path$K;
|
|
112
129
|
function _extends$K() { _extends$K = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$K.apply(this, arguments); }
|
|
113
|
-
var
|
|
130
|
+
var SvgFileFileExcelFill = function SvgFileFileExcelFill(props, ref) {
|
|
114
131
|
return /*#__PURE__*/React.createElement("svg", _extends$K({
|
|
115
132
|
xmlns: "http://www.w3.org/2000/svg",
|
|
116
133
|
width: 24,
|
|
@@ -119,15 +136,15 @@ var SvgFileFileWordFill = function SvgFileFileWordFill(props, ref) {
|
|
|
119
136
|
ref: ref
|
|
120
137
|
}, props), _path$K || (_path$K = /*#__PURE__*/React.createElement("path", {
|
|
121
138
|
fillRule: "evenodd",
|
|
122
|
-
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm1.
|
|
139
|
+
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm1.8 18H14l-2-3.4-2 3.4H8.2l2.9-4.5L8.2 11H10l2 3.4 2-3.4h1.8l-2.9 4.5 2.9 4.5zM13 9V3.5L18.5 9H13z",
|
|
123
140
|
clipRule: "evenodd"
|
|
124
141
|
})));
|
|
125
142
|
};
|
|
126
|
-
var ForwardRef$K = /*#__PURE__*/forwardRef(
|
|
143
|
+
var ForwardRef$K = /*#__PURE__*/forwardRef(SvgFileFileExcelFill);
|
|
127
144
|
|
|
128
145
|
var _path$J;
|
|
129
146
|
function _extends$J() { _extends$J = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$J.apply(this, arguments); }
|
|
130
|
-
var
|
|
147
|
+
var SvgFileFilePdfFill = function SvgFileFilePdfFill(props, ref) {
|
|
131
148
|
return /*#__PURE__*/React.createElement("svg", _extends$J({
|
|
132
149
|
xmlns: "http://www.w3.org/2000/svg",
|
|
133
150
|
width: 24,
|
|
@@ -136,15 +153,15 @@ var SvgFileFileExcelFill = function SvgFileFileExcelFill(props, ref) {
|
|
|
136
153
|
ref: ref
|
|
137
154
|
}, props), _path$J || (_path$J = /*#__PURE__*/React.createElement("path", {
|
|
138
155
|
fillRule: "evenodd",
|
|
139
|
-
d: "
|
|
156
|
+
d: "M13 9h5.5L13 3.5V9zM6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm4.1 9.4c-.02.04-.29 1.76-2.1 4.69 0 0-3.5 1.82-2.67 3.18.67 1.08 2.32-.04 3.74-2.68 0 0 1.82-.64 4.24-.82 0 0 3.86 1.73 4.39-.11.52-1.86-3.06-1.44-3.7-1.25 0 0-2-1.35-2.5-3.21 0 0 1.14-3.95-.61-3.9-1.75.05-1.09 3.13-.79 4.1zm.81 1.04c.03.01.47 1.21 1.89 2.46 0 0-2.33.46-3.39.9 0 0 1-1.73 1.5-3.36zm3.93 2.72c.58-.16 2.33.15 2.26.48-.06.33-2.26-.48-2.26-.48zM7.77 17c-.53 1.24-1.44 2-1.67 2-.23 0 .7-1.6 1.67-2zm3.14-6.93c0-.07-.36-2.2 0-2.15.54.08 0 2.08 0 2.15z",
|
|
140
157
|
clipRule: "evenodd"
|
|
141
158
|
})));
|
|
142
159
|
};
|
|
143
|
-
var ForwardRef$J = /*#__PURE__*/forwardRef(
|
|
160
|
+
var ForwardRef$J = /*#__PURE__*/forwardRef(SvgFileFilePdfFill);
|
|
144
161
|
|
|
145
162
|
var _path$I;
|
|
146
163
|
function _extends$I() { _extends$I = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$I.apply(this, arguments); }
|
|
147
|
-
var
|
|
164
|
+
var SvgFileFileImageFill = function SvgFileFileImageFill(props, ref) {
|
|
148
165
|
return /*#__PURE__*/React.createElement("svg", _extends$I({
|
|
149
166
|
xmlns: "http://www.w3.org/2000/svg",
|
|
150
167
|
width: 24,
|
|
@@ -153,15 +170,15 @@ var SvgFileFilePdfFill = function SvgFileFilePdfFill(props, ref) {
|
|
|
153
170
|
ref: ref
|
|
154
171
|
}, props), _path$I || (_path$I = /*#__PURE__*/React.createElement("path", {
|
|
155
172
|
fillRule: "evenodd",
|
|
156
|
-
d: "M13 9h5.5L13 3.5V9zM6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-
|
|
173
|
+
d: "M13 9h5.5L13 3.5V9zM6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2zm0 18h12v-8l-4 4-2-2-6 6zM8 9a2 2 0 1 0 0 4 2 2 0 0 0 0-4z",
|
|
157
174
|
clipRule: "evenodd"
|
|
158
175
|
})));
|
|
159
176
|
};
|
|
160
|
-
var ForwardRef$I = /*#__PURE__*/forwardRef(
|
|
177
|
+
var ForwardRef$I = /*#__PURE__*/forwardRef(SvgFileFileImageFill);
|
|
161
178
|
|
|
162
|
-
var _path$H;
|
|
179
|
+
var _path$H, _path2$5;
|
|
163
180
|
function _extends$H() { _extends$H = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$H.apply(this, arguments); }
|
|
164
|
-
var
|
|
181
|
+
var SvgFileFileVideoFill = function SvgFileFileVideoFill(props, ref) {
|
|
165
182
|
return /*#__PURE__*/React.createElement("svg", _extends$H({
|
|
166
183
|
xmlns: "http://www.w3.org/2000/svg",
|
|
167
184
|
width: 24,
|
|
@@ -169,16 +186,18 @@ var SvgFileFileImageFill = function SvgFileFileImageFill(props, ref) {
|
|
|
169
186
|
viewBox: "0 0 24 24",
|
|
170
187
|
ref: ref
|
|
171
188
|
}, props), _path$H || (_path$H = /*#__PURE__*/React.createElement("path", {
|
|
189
|
+
d: "M14.992 14 9.5 17.138v-6.276L14.992 14z"
|
|
190
|
+
})), _path2$5 || (_path2$5 = /*#__PURE__*/React.createElement("path", {
|
|
172
191
|
fillRule: "evenodd",
|
|
173
|
-
d: "
|
|
192
|
+
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.5 9.138v9.724L17.008 14 8.5 9.138z",
|
|
174
193
|
clipRule: "evenodd"
|
|
175
194
|
})));
|
|
176
195
|
};
|
|
177
|
-
var ForwardRef$H = /*#__PURE__*/forwardRef(
|
|
196
|
+
var ForwardRef$H = /*#__PURE__*/forwardRef(SvgFileFileVideoFill);
|
|
178
197
|
|
|
179
|
-
var _path$G
|
|
198
|
+
var _path$G;
|
|
180
199
|
function _extends$G() { _extends$G = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$G.apply(this, arguments); }
|
|
181
|
-
var
|
|
200
|
+
var SvgFileFileTableFill = function SvgFileFileTableFill(props, ref) {
|
|
182
201
|
return /*#__PURE__*/React.createElement("svg", _extends$G({
|
|
183
202
|
xmlns: "http://www.w3.org/2000/svg",
|
|
184
203
|
width: 24,
|
|
@@ -186,18 +205,16 @@ var SvgFileFileVideoFill = function SvgFileFileVideoFill(props, ref) {
|
|
|
186
205
|
viewBox: "0 0 24 24",
|
|
187
206
|
ref: ref
|
|
188
207
|
}, props), _path$G || (_path$G = /*#__PURE__*/React.createElement("path", {
|
|
189
|
-
d: "M14.992 14 9.5 17.138v-6.276L14.992 14z"
|
|
190
|
-
})), _path2$5 || (_path2$5 = /*#__PURE__*/React.createElement("path", {
|
|
191
208
|
fillRule: "evenodd",
|
|
192
|
-
d: "
|
|
209
|
+
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm-4 17H7v-2h3v2zm0-3H7v-2h3v2zm0-3H7v-2h3v2zm4 6h-3v-2h3v2zm0-3h-3v-2h3v2zm0-3h-3v-2h3v2zm-1-4V3.5L18.5 9H13z",
|
|
193
210
|
clipRule: "evenodd"
|
|
194
211
|
})));
|
|
195
212
|
};
|
|
196
|
-
var ForwardRef$G = /*#__PURE__*/forwardRef(
|
|
213
|
+
var ForwardRef$G = /*#__PURE__*/forwardRef(SvgFileFileTableFill);
|
|
197
214
|
|
|
198
215
|
var _path$F;
|
|
199
216
|
function _extends$F() { _extends$F = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$F.apply(this, arguments); }
|
|
200
|
-
var
|
|
217
|
+
var SvgFileFileTextFill = function SvgFileFileTextFill(props, ref) {
|
|
201
218
|
return /*#__PURE__*/React.createElement("svg", _extends$F({
|
|
202
219
|
xmlns: "http://www.w3.org/2000/svg",
|
|
203
220
|
width: 24,
|
|
@@ -206,15 +223,15 @@ var SvgFileFileTableFill = function SvgFileFileTableFill(props, ref) {
|
|
|
206
223
|
ref: ref
|
|
207
224
|
}, props), _path$F || (_path$F = /*#__PURE__*/React.createElement("path", {
|
|
208
225
|
fillRule: "evenodd",
|
|
209
|
-
d: "
|
|
226
|
+
d: "M13 9h5.5L13 3.5V9zM6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2zm9 16v-2H6v2h9zm3-4v-2H6v2h12z",
|
|
210
227
|
clipRule: "evenodd"
|
|
211
228
|
})));
|
|
212
229
|
};
|
|
213
|
-
var ForwardRef$F = /*#__PURE__*/forwardRef(
|
|
230
|
+
var ForwardRef$F = /*#__PURE__*/forwardRef(SvgFileFileTextFill);
|
|
214
231
|
|
|
215
232
|
var _path$E;
|
|
216
233
|
function _extends$E() { _extends$E = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$E.apply(this, arguments); }
|
|
217
|
-
var
|
|
234
|
+
var SvgFileFileEmlFill = function SvgFileFileEmlFill(props, ref) {
|
|
218
235
|
return /*#__PURE__*/React.createElement("svg", _extends$E({
|
|
219
236
|
xmlns: "http://www.w3.org/2000/svg",
|
|
220
237
|
width: 24,
|
|
@@ -223,15 +240,15 @@ var SvgFileFileTextFill = function SvgFileFileTextFill(props, ref) {
|
|
|
223
240
|
ref: ref
|
|
224
241
|
}, props), _path$E || (_path$E = /*#__PURE__*/React.createElement("path", {
|
|
225
242
|
fillRule: "evenodd",
|
|
226
|
-
d: "
|
|
243
|
+
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.5zM7 18v-4.732l5 3.333 5-3.333V18a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1zm5-2.6 4.688-3.126A.997.997 0 0 0 16 12H8a.997.997 0 0 0-.688.274L12 15.399z",
|
|
227
244
|
clipRule: "evenodd"
|
|
228
245
|
})));
|
|
229
246
|
};
|
|
230
|
-
var ForwardRef$E = /*#__PURE__*/forwardRef(
|
|
247
|
+
var ForwardRef$E = /*#__PURE__*/forwardRef(SvgFileFileEmlFill);
|
|
231
248
|
|
|
232
249
|
var _path$D;
|
|
233
250
|
function _extends$D() { _extends$D = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$D.apply(this, arguments); }
|
|
234
|
-
var
|
|
251
|
+
var SvgFileFileFill = function SvgFileFileFill(props, ref) {
|
|
235
252
|
return /*#__PURE__*/React.createElement("svg", _extends$D({
|
|
236
253
|
xmlns: "http://www.w3.org/2000/svg",
|
|
237
254
|
width: 24,
|
|
@@ -239,51 +256,35 @@ var SvgFileFileEmlFill = function SvgFileFileEmlFill(props, ref) {
|
|
|
239
256
|
viewBox: "0 0 24 24",
|
|
240
257
|
ref: ref
|
|
241
258
|
}, props), _path$D || (_path$D = /*#__PURE__*/React.createElement("path", {
|
|
242
|
-
fillRule: "evenodd",
|
|
243
|
-
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.5zM7 18v-4.732l5 3.333 5-3.333V18a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1zm5-2.6 4.688-3.126A.997.997 0 0 0 16 12H8a.997.997 0 0 0-.688.274L12 15.399z",
|
|
244
|
-
clipRule: "evenodd"
|
|
245
|
-
})));
|
|
246
|
-
};
|
|
247
|
-
var ForwardRef$D = /*#__PURE__*/forwardRef(SvgFileFileEmlFill);
|
|
248
|
-
|
|
249
|
-
var _path$C;
|
|
250
|
-
function _extends$C() { _extends$C = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$C.apply(this, arguments); }
|
|
251
|
-
var SvgFileFileFill = function SvgFileFileFill(props, ref) {
|
|
252
|
-
return /*#__PURE__*/React.createElement("svg", _extends$C({
|
|
253
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
254
|
-
width: 24,
|
|
255
|
-
height: 24,
|
|
256
|
-
viewBox: "0 0 24 24",
|
|
257
|
-
ref: ref
|
|
258
|
-
}, props), _path$C || (_path$C = /*#__PURE__*/React.createElement("path", {
|
|
259
259
|
d: "M6 22c-.55 0-1.02-.196-1.412-.587A1.927 1.927 0 0 1 4 20V4c0-.55.196-1.021.588-1.413A1.925 1.925 0 0 1 6 2h8l6 6v12a1.93 1.93 0 0 1-.587 1.413A1.928 1.928 0 0 1 18 22H6zm7-13h5l-5-5v5z"
|
|
260
260
|
})));
|
|
261
261
|
};
|
|
262
|
-
var ForwardRef$
|
|
262
|
+
var ForwardRef$D = /*#__PURE__*/forwardRef(SvgFileFileFill);
|
|
263
263
|
|
|
264
264
|
const fileIcons = {
|
|
265
|
-
docIcon: ForwardRef$
|
|
266
|
-
exelIcon: ForwardRef$
|
|
267
|
-
pdfIcon: ForwardRef$
|
|
268
|
-
imgIcon: ForwardRef$
|
|
269
|
-
videoIcon: ForwardRef$
|
|
270
|
-
tableIcon: ForwardRef$
|
|
271
|
-
textIcon: ForwardRef$
|
|
272
|
-
mailIcon: ForwardRef$
|
|
273
|
-
fileIcon: ForwardRef$
|
|
265
|
+
docIcon: ForwardRef$L,
|
|
266
|
+
exelIcon: ForwardRef$K,
|
|
267
|
+
pdfIcon: ForwardRef$J,
|
|
268
|
+
imgIcon: ForwardRef$I,
|
|
269
|
+
videoIcon: ForwardRef$H,
|
|
270
|
+
tableIcon: ForwardRef$G,
|
|
271
|
+
textIcon: ForwardRef$F,
|
|
272
|
+
mailIcon: ForwardRef$E,
|
|
273
|
+
fileIcon: ForwardRef$D,
|
|
274
274
|
};
|
|
275
275
|
const systemIcons = {
|
|
276
|
-
clear: ForwardRef$
|
|
277
|
-
foldingArrow: ForwardRef$
|
|
278
|
-
accept: ForwardRef$
|
|
279
|
-
search: ForwardRef$
|
|
280
|
-
calendar: ForwardRef$
|
|
281
|
-
info: ForwardRef$
|
|
276
|
+
clear: ForwardRef$R,
|
|
277
|
+
foldingArrow: ForwardRef$Q,
|
|
278
|
+
accept: ForwardRef$P,
|
|
279
|
+
search: ForwardRef$O,
|
|
280
|
+
calendar: ForwardRef$N,
|
|
281
|
+
info: ForwardRef$M,
|
|
282
282
|
};
|
|
283
283
|
|
|
284
284
|
const settings = {
|
|
285
285
|
sizes: {
|
|
286
286
|
defaults: {
|
|
287
|
+
alert: '48',
|
|
287
288
|
badge: '36',
|
|
288
289
|
button: '36',
|
|
289
290
|
checkbox: '18',
|
|
@@ -302,6 +303,13 @@ const settings = {
|
|
|
302
303
|
labeledInput: '36',
|
|
303
304
|
statusIndicator: '24',
|
|
304
305
|
paginator: '30',
|
|
306
|
+
rating: '18',
|
|
307
|
+
},
|
|
308
|
+
alert: {
|
|
309
|
+
action: {
|
|
310
|
+
36: '24',
|
|
311
|
+
48: '30',
|
|
312
|
+
},
|
|
305
313
|
},
|
|
306
314
|
tag: {
|
|
307
315
|
countIndicator: {
|
|
@@ -514,6 +522,25 @@ const settings = {
|
|
|
514
522
|
},
|
|
515
523
|
truncate: ['48'],
|
|
516
524
|
},
|
|
525
|
+
groupCell: {
|
|
526
|
+
defaults: {
|
|
527
|
+
size: '36',
|
|
528
|
+
padding: '12',
|
|
529
|
+
paddingEdge: '24',
|
|
530
|
+
},
|
|
531
|
+
columnCaption: {
|
|
532
|
+
fontSize: '14',
|
|
533
|
+
fontWeight: '400',
|
|
534
|
+
size: '18',
|
|
535
|
+
uppercase: '12',
|
|
536
|
+
},
|
|
537
|
+
iconSize: {
|
|
538
|
+
36: '18',
|
|
539
|
+
48: '18',
|
|
540
|
+
60: '18',
|
|
541
|
+
},
|
|
542
|
+
truncate: ['48'],
|
|
543
|
+
},
|
|
517
544
|
},
|
|
518
545
|
},
|
|
519
546
|
body: {
|
|
@@ -562,11 +589,11 @@ const settings = {
|
|
|
562
589
|
},
|
|
563
590
|
};
|
|
564
591
|
|
|
565
|
-
var css$
|
|
592
|
+
var css$1y = {"uui-typography":"J9F0Yv","uuiTypography":"J9F0Yv","hero-header":"VReReM","heroHeader":"VReReM","promo-header":"tHLGjF","promoHeader":"tHLGjF","uui-critical":"DLZwkn","uuiCritical":"DLZwkn","uui-info":"sBgxUY","uuiInfo":"sBgxUY","uui-success":"QQMd27","uuiSuccess":"QQMd27","uui-warning":"FVc1Te","uuiWarning":"FVc1Te","uui-highlight":"ppU43y","uuiHighlight":"ppU43y","uui-typography-size-12":"hB1xK-","uuiTypographySize12":"hB1xK-","uui-typography-size-14":"_5rAoDW","uuiTypographySize14":"_5rAoDW","uui-typography-size-16":"r-z-NQ","uuiTypographySize16":"r-z-NQ","root":"hoCSdn"};
|
|
566
593
|
|
|
567
594
|
function applyButtonMods(mods) {
|
|
568
595
|
return [
|
|
569
|
-
css$
|
|
596
|
+
css$1y.root,
|
|
570
597
|
'uui-button',
|
|
571
598
|
`uui-fill-${mods.fill || 'solid'}`,
|
|
572
599
|
`uui-color-${mods.color || 'primary'}`,
|
|
@@ -580,10 +607,10 @@ const Button = /* @__PURE__ */withMods(uuiComponents.Button, applyButtonMods, ()
|
|
|
580
607
|
};
|
|
581
608
|
});
|
|
582
609
|
|
|
583
|
-
var css$
|
|
610
|
+
var css$1x = {"root":"l38xLY"};
|
|
584
611
|
|
|
585
612
|
function applyIconButtonMods(props) {
|
|
586
|
-
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$
|
|
613
|
+
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$1x.root];
|
|
587
614
|
}
|
|
588
615
|
const IconButton = /* @__PURE__ */withMods(uuiComponents.IconButton, applyIconButtonMods, (props) => {
|
|
589
616
|
const isDeprecated = ['info', 'success', 'error', 'warning'].includes(props.color);
|
|
@@ -617,7 +644,7 @@ function getIconClass(props) {
|
|
|
617
644
|
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'];
|
|
618
645
|
}
|
|
619
646
|
|
|
620
|
-
var css$
|
|
647
|
+
var css$1w = {"uui-typography":"qdQNt6","uuiTypography":"qdQNt6","hero-header":"Q61TeP","heroHeader":"Q61TeP","promo-header":"Y3-k15","promoHeader":"Y3-k15","uui-critical":"_5FM1RG","uuiCritical":"_5FM1RG","uui-info":"_15mtnP","uuiInfo":"_15mtnP","uui-success":"TchaMK","uuiSuccess":"TchaMK","uui-warning":"D0f800","uuiWarning":"D0f800","uui-highlight":"v7Kx-y","uuiHighlight":"v7Kx-y","uui-typography-size-12":"g9LFq2","uuiTypographySize12":"g9LFq2","uui-typography-size-14":"UJbvxz","uuiTypographySize14":"UJbvxz","uui-typography-size-16":"ViRFb2","uuiTypographySize16":"ViRFb2","root":"sfTGVG"};
|
|
621
648
|
|
|
622
649
|
const DEFAULT_COLOR = 'primary';
|
|
623
650
|
const DEFAULT_WEIGHT = 'semibold';
|
|
@@ -633,7 +660,7 @@ const LinkButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
633
660
|
}
|
|
634
661
|
const rootStyles = [
|
|
635
662
|
'uui-link_button',
|
|
636
|
-
css$
|
|
663
|
+
css$1w.root,
|
|
637
664
|
`uui-size-${props.size || settings.sizes.defaults.linkButton}`,
|
|
638
665
|
...getIconClass(props),
|
|
639
666
|
`uui-color-${props.color || DEFAULT_COLOR}`,
|
|
@@ -648,11 +675,11 @@ const LinkButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
648
675
|
props.isDropdown && (React.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
649
676
|
});
|
|
650
677
|
|
|
651
|
-
var css$
|
|
678
|
+
var css$1v = {"root":"AK7DaS"};
|
|
652
679
|
|
|
653
680
|
const CountIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
654
681
|
return (React__default.createElement("div", { ref: ref, className: cx([
|
|
655
|
-
css$
|
|
682
|
+
css$1v.root,
|
|
656
683
|
'uui-count_indicator',
|
|
657
684
|
`uui-size-${props.size || settings.sizes.defaults.countIndicator}`,
|
|
658
685
|
props.color && `uui-color-${props.color}`,
|
|
@@ -660,11 +687,11 @@ const CountIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
|
660
687
|
]) }, props.caption));
|
|
661
688
|
});
|
|
662
689
|
|
|
663
|
-
var css$
|
|
690
|
+
var css$1u = {"uui-typography":"cbl9MC","uuiTypography":"cbl9MC","hero-header":"kkoAHA","heroHeader":"kkoAHA","promo-header":"hWcSse","promoHeader":"hWcSse","uui-critical":"t4oxm0","uuiCritical":"t4oxm0","uui-info":"MkvWES","uuiInfo":"MkvWES","uui-success":"JgAzVp","uuiSuccess":"JgAzVp","uui-warning":"Mxztkz","uuiWarning":"Mxztkz","uui-highlight":"_8-ZVT8","uuiHighlight":"_8-ZVT8","uui-typography-size-12":"eJwhfH","uuiTypographySize12":"eJwhfH","uui-typography-size-14":"rHTgfV","uuiTypographySize14":"rHTgfV","uui-typography-size-16":"Ijf-jk","uuiTypographySize16":"Ijf-jk","root":"kNnKB8","withNotify":"cjUkE4"};
|
|
664
691
|
|
|
665
692
|
const TabButton = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
666
693
|
const styles = [
|
|
667
|
-
css$
|
|
694
|
+
css$1u.root,
|
|
668
695
|
'uui-tab-button',
|
|
669
696
|
`uui-size-${props.size || settings.sizes.defaults.tabButton}`,
|
|
670
697
|
...getIconClass(props),
|
|
@@ -676,48 +703,48 @@ const TabButton = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
676
703
|
props.icon && props.iconPosition !== 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
677
704
|
(props.caption || props.withNotify) && (React__default.createElement("div", { className: cx$1(uuiElement.caption) },
|
|
678
705
|
props.caption,
|
|
679
|
-
props.withNotify && React__default.createElement("div", { className: css$
|
|
706
|
+
props.withNotify && React__default.createElement("div", { className: css$1u.withNotify }))),
|
|
680
707
|
props.icon && props.iconPosition === 'right' && (React__default.createElement(IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
681
708
|
props.count !== undefined && props.count !== null && (React__default.createElement(CountIndicator, { color: "neutral", size: settings.sizes.tabButton.countIndicator[props.size || settings.sizes.defaults.tabButton], caption: props.count })),
|
|
682
709
|
props.isDropdown && (React__default.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
683
710
|
props.onClear && !props.isDisabled && (React__default.createElement(IconContainer, { cx: uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
684
711
|
});
|
|
685
712
|
|
|
686
|
-
var css$
|
|
713
|
+
var css$1t = {"uui-typography":"vW0uwe","uuiTypography":"vW0uwe","hero-header":"rsU-3q","heroHeader":"rsU-3q","promo-header":"FXqUtR","promoHeader":"FXqUtR","uui-critical":"_12AtpJ","uuiCritical":"_12AtpJ","uui-info":"LAeKTz","uuiInfo":"LAeKTz","uui-success":"XMon2-","uuiSuccess":"XMon2-","uui-warning":"f7x8A5","uuiWarning":"f7x8A5","uui-highlight":"xNQVBO","uuiHighlight":"xNQVBO","uui-typography-size-12":"ylf7HJ","uuiTypographySize12":"ylf7HJ","uui-typography-size-14":"_8Ww-bC","uuiTypographySize14":"_8Ww-bC","uui-typography-size-16":"P-wQdX","uuiTypographySize16":"P-wQdX","root":"ALXCN6"};
|
|
687
714
|
|
|
688
715
|
function applyVerticalTabButtonMods() {
|
|
689
|
-
return [css$
|
|
716
|
+
return [css$1t.root, 'uui-vertical-tab-button'];
|
|
690
717
|
}
|
|
691
718
|
const VerticalTabButton = /* @__PURE__ */withMods(TabButton, applyVerticalTabButtonMods);
|
|
692
719
|
|
|
693
|
-
var _path$
|
|
694
|
-
function _extends$
|
|
720
|
+
var _path$C;
|
|
721
|
+
function _extends$C() { _extends$C = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$C.apply(this, arguments); }
|
|
695
722
|
var SvgContentMinusOutline = function SvgContentMinusOutline(props, ref) {
|
|
696
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
723
|
+
return /*#__PURE__*/React.createElement("svg", _extends$C({
|
|
697
724
|
xmlns: "http://www.w3.org/2000/svg",
|
|
698
725
|
width: 24,
|
|
699
726
|
height: 24,
|
|
700
727
|
viewBox: "0 0 24 24",
|
|
701
728
|
ref: ref
|
|
702
|
-
}, props), _path$
|
|
729
|
+
}, props), _path$C || (_path$C = /*#__PURE__*/React.createElement("path", {
|
|
703
730
|
d: "M19 10.5H5v3h14v-3z"
|
|
704
731
|
})));
|
|
705
732
|
};
|
|
706
|
-
var ForwardRef$
|
|
733
|
+
var ForwardRef$C = /*#__PURE__*/forwardRef(SvgContentMinusOutline);
|
|
707
734
|
|
|
708
|
-
var css$
|
|
735
|
+
var css$1s = {"uui-typography":"DQccUr","uuiTypography":"DQccUr","hero-header":"RaijP6","heroHeader":"RaijP6","promo-header":"k5HNPf","promoHeader":"k5HNPf","uui-critical":"aPpsYc","uuiCritical":"aPpsYc","uui-info":"o4QdoJ","uuiInfo":"o4QdoJ","uui-success":"W1PW0O","uuiSuccess":"W1PW0O","uui-warning":"D28vgU","uuiWarning":"D28vgU","uui-highlight":"_0rN1KB","uuiHighlight":"_0rN1KB","uui-typography-size-12":"MZhFDG","uuiTypographySize12":"MZhFDG","uui-typography-size-14":"rqpsQD","uuiTypographySize14":"rqpsQD","uui-typography-size-16":"bamILv","uuiTypographySize16":"bamILv","root":"TCKCkl","mode-cell":"At8Put","modeCell":"At8Put"};
|
|
709
736
|
|
|
710
737
|
function applyCheckboxMods(mods) {
|
|
711
738
|
return [
|
|
712
|
-
css$
|
|
739
|
+
css$1s.root,
|
|
713
740
|
`uui-size-${mods.size || settings.sizes.defaults.checkbox}`,
|
|
714
|
-
css$
|
|
741
|
+
css$1s['mode-' + (mods.mode || 'form')],
|
|
715
742
|
'uui-color-primary',
|
|
716
743
|
];
|
|
717
744
|
}
|
|
718
745
|
const applyUUICheckboxProps = (props) => {
|
|
719
|
-
const defaultIcon = ForwardRef$
|
|
720
|
-
const defaultIndeterminateIcon = ForwardRef$
|
|
746
|
+
const defaultIcon = ForwardRef$P;
|
|
747
|
+
const defaultIndeterminateIcon = ForwardRef$C;
|
|
721
748
|
return {
|
|
722
749
|
icon: props.icon ? props.icon : defaultIcon,
|
|
723
750
|
indeterminateIcon: props.indeterminateIcon ? props.indeterminateIcon : defaultIndeterminateIcon,
|
|
@@ -725,38 +752,38 @@ const applyUUICheckboxProps = (props) => {
|
|
|
725
752
|
};
|
|
726
753
|
const Checkbox = /* @__PURE__ */withMods(uuiComponents.Checkbox, applyCheckboxMods, applyUUICheckboxProps);
|
|
727
754
|
|
|
728
|
-
var _path$
|
|
729
|
-
function _extends$
|
|
755
|
+
var _path$B;
|
|
756
|
+
function _extends$B() { _extends$B = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$B.apply(this, arguments); }
|
|
730
757
|
var SvgRadioDotFill = function SvgRadioDotFill(props, ref) {
|
|
731
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
758
|
+
return /*#__PURE__*/React.createElement("svg", _extends$B({
|
|
732
759
|
xmlns: "http://www.w3.org/2000/svg",
|
|
733
760
|
width: 24,
|
|
734
761
|
height: 24,
|
|
735
762
|
viewBox: "0 0 24 24",
|
|
736
763
|
ref: ref
|
|
737
|
-
}, props), _path$
|
|
764
|
+
}, props), _path$B || (_path$B = /*#__PURE__*/React.createElement("path", {
|
|
738
765
|
d: "M12 19a7 7 0 1 0 0-14 7 7 0 0 0 0 14z"
|
|
739
766
|
})));
|
|
740
767
|
};
|
|
741
|
-
var ForwardRef$
|
|
768
|
+
var ForwardRef$B = /*#__PURE__*/forwardRef(SvgRadioDotFill);
|
|
742
769
|
|
|
743
|
-
var css$
|
|
770
|
+
var css$1r = {"uui-typography":"jaY3XZ","uuiTypography":"jaY3XZ","hero-header":"_9Kwgun","heroHeader":"_9Kwgun","promo-header":"rvZs5u","promoHeader":"rvZs5u","uui-critical":"bltBkV","uuiCritical":"bltBkV","uui-info":"OwELnv","uuiInfo":"OwELnv","uui-success":"O9FV6K","uuiSuccess":"O9FV6K","uui-warning":"b2oBd2","uuiWarning":"b2oBd2","uui-highlight":"Vax1-G","uuiHighlight":"Vax1-G","uui-typography-size-12":"Tek2ef","uuiTypographySize12":"Tek2ef","uui-typography-size-14":"diyJoi","uuiTypographySize14":"diyJoi","uui-typography-size-16":"OyMRoH","uuiTypographySize16":"OyMRoH","root":"HJAVSZ"};
|
|
744
771
|
|
|
745
772
|
function applyRadioInputMods(mods) {
|
|
746
773
|
return [
|
|
747
|
-
css$
|
|
774
|
+
css$1r.root,
|
|
748
775
|
`uui-size-${mods.size || settings.sizes.defaults.radioInput}`,
|
|
749
776
|
'uui-radio-input-container',
|
|
750
777
|
'uui-color-primary',
|
|
751
778
|
];
|
|
752
779
|
}
|
|
753
|
-
const RadioInput = /* @__PURE__ */withMods(RadioInput$1, applyRadioInputMods, (props) => ({ icon: props.icon ? props.icon : ForwardRef$
|
|
780
|
+
const RadioInput = /* @__PURE__ */withMods(RadioInput$1, applyRadioInputMods, (props) => ({ icon: props.icon ? props.icon : ForwardRef$B }));
|
|
754
781
|
|
|
755
|
-
var css$
|
|
782
|
+
var css$1q = {"root":"u4SGkZ"};
|
|
756
783
|
|
|
757
784
|
function applySwitchMods(mods) {
|
|
758
785
|
return [
|
|
759
|
-
css$
|
|
786
|
+
css$1q.root,
|
|
760
787
|
`uui-size-${mods.size || settings.sizes.defaults.switch}`,
|
|
761
788
|
'uui-color-primary',
|
|
762
789
|
];
|
|
@@ -820,7 +847,7 @@ var EditMode;
|
|
|
820
847
|
EditMode["INLINE"] = "inline";
|
|
821
848
|
})(EditMode || (EditMode = {}));
|
|
822
849
|
|
|
823
|
-
var textInputCss = {"uui-typography":"
|
|
850
|
+
var textInputCss = {"uui-typography":"c1E6zM","uuiTypography":"c1E6zM","hero-header":"hryxst","heroHeader":"hryxst","promo-header":"IC8KRR","promoHeader":"IC8KRR","uui-critical":"UDb7rn","uuiCritical":"UDb7rn","uui-info":"rq22sm","uuiInfo":"rq22sm","uui-success":"ao5xXI","uuiSuccess":"ao5xXI","uui-warning":"_3iKnTZ","uuiWarning":"_3iKnTZ","uui-highlight":"Fn1QyD","uuiHighlight":"Fn1QyD","uui-typography-size-12":"yzFKxg","uuiTypographySize12":"yzFKxg","uui-typography-size-14":"pd45en","uuiTypographySize14":"pd45en","uui-typography-size-16":"pNnxNO","uuiTypographySize16":"pNnxNO","root":"FKapts","mode-form":"_9Y6NIQ","modeForm":"_9Y6NIQ","mode-inline":"GdnWiN","modeInline":"GdnWiN","mode-cell":"t-x6Yj","modeCell":"t-x6Yj"};
|
|
824
851
|
|
|
825
852
|
const DEFAULT_MODE$3 = EditMode.FORM;
|
|
826
853
|
function applyTextInputMods(mods) {
|
|
@@ -846,22 +873,22 @@ const SearchInput = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
846
873
|
} })));
|
|
847
874
|
});
|
|
848
875
|
|
|
849
|
-
var css$
|
|
876
|
+
var css$1p = {"root":"-UksMn"};
|
|
850
877
|
|
|
851
|
-
const ControlGroup = /* @__PURE__ */withMods(ControlGroup$1, () => [css$
|
|
878
|
+
const ControlGroup = /* @__PURE__ */withMods(ControlGroup$1, () => [css$1p.root, 'uui-control-group']);
|
|
852
879
|
|
|
853
880
|
function MultiSwitchComponent(props, ref) {
|
|
854
881
|
return (React.createElement(ControlGroup, { ref: ref, rawProps: Object.assign(Object.assign({}, props.rawProps), { role: 'tablist', 'aria-invalid': props.isInvalid, 'aria-required': props.isRequired, 'aria-disabled': props.isDisabled, 'aria-readonly': props.isReadonly }) }, props.items.map((item, index) => (React.createElement(Button, Object.assign({}, props, item, { isDisabled: props.isDisabled, key: index + '-' + item.id, onClick: () => props.onValueChange(item.id), fill: props.value === item.id ? 'solid' : 'outline', color: props.color, size: props.size, rawProps: { 'aria-current': props.value === item.id, role: 'tab' } }))))));
|
|
855
882
|
}
|
|
856
883
|
const MultiSwitch = /* @__PURE__ */React.forwardRef(MultiSwitchComponent);
|
|
857
884
|
|
|
858
|
-
var css$
|
|
885
|
+
var css$1o = {"uui-typography":"cvC9E5","uuiTypography":"cvC9E5","hero-header":"k3ZLbr","heroHeader":"k3ZLbr","promo-header":"ycXdbc","promoHeader":"ycXdbc","uui-critical":"YqdIaI","uuiCritical":"YqdIaI","uui-info":"PcBxz9","uuiInfo":"PcBxz9","uui-success":"_5NmxaM","uuiSuccess":"_5NmxaM","uui-warning":"oYGjH4","uuiWarning":"oYGjH4","uui-highlight":"uh8a19","uuiHighlight":"uh8a19","uui-typography-size-12":"ZYqiJQ","uuiTypographySize12":"ZYqiJQ","uui-typography-size-14":"aKxUwy","uuiTypographySize14":"aKxUwy","uui-typography-size-16":"_6nhtKA","uuiTypographySize16":"_6nhtKA","root":"E-N6Jj","mode-form":"G-9ONx","modeForm":"G-9ONx","mode-cell":"dQ0Oar","modeCell":"dQ0Oar"};
|
|
859
886
|
|
|
860
887
|
const DEFAULT_MODE$2 = EditMode.FORM;
|
|
861
888
|
function applyNumericInputMods(mods) {
|
|
862
889
|
return [
|
|
863
890
|
textInputCss.root,
|
|
864
|
-
css$
|
|
891
|
+
css$1o.root,
|
|
865
892
|
`uui-size-${mods.size || settings.sizes.defaults.numericInput}`,
|
|
866
893
|
textInputCss['mode-' + (mods.mode || DEFAULT_MODE$2)],
|
|
867
894
|
];
|
|
@@ -876,15 +903,15 @@ const NumericInput = /* @__PURE__ */withMods(NumericInput$1, applyNumericInputMo
|
|
|
876
903
|
};
|
|
877
904
|
});
|
|
878
905
|
|
|
879
|
-
var css$
|
|
906
|
+
var css$1n = {"uui-typography":"_3bZDf8","uuiTypography":"_3bZDf8","hero-header":"toYAZI","heroHeader":"toYAZI","promo-header":"_0QVlvP","promoHeader":"_0QVlvP","uui-critical":"P5Z9dZ","uuiCritical":"P5Z9dZ","uui-info":"Ynfqq5","uuiInfo":"Ynfqq5","uui-success":"xJVEc6","uuiSuccess":"xJVEc6","uui-warning":"_5Ueeqf","uuiWarning":"_5Ueeqf","uui-highlight":"_9SzP3h","uuiHighlight":"_9SzP3h","uui-typography-size-12":"_1M8yZT","uuiTypographySize12":"_1M8yZT","uui-typography-size-14":"Jqt1bT","uuiTypographySize14":"Jqt1bT","uui-typography-size-16":"_7nrAMW","uuiTypographySize16":"_7nrAMW","root":"pIstVs","mode-form":"VfOL2n","modeForm":"VfOL2n","mode-cell":"zOlTEy","modeCell":"zOlTEy","mode-inline":"eGqF8M","modeInline":"eGqF8M"};
|
|
880
907
|
|
|
881
908
|
const DEFAULT_MODE$1 = EditMode.FORM;
|
|
882
909
|
function applyTextAreaMods(mods) {
|
|
883
910
|
return [
|
|
884
|
-
css$
|
|
911
|
+
css$1n.root,
|
|
885
912
|
'uui-textarea',
|
|
886
913
|
'uui-size-' + (mods.size || settings.sizes.defaults.textArea),
|
|
887
|
-
css$
|
|
914
|
+
css$1n['mode-' + (mods.mode || DEFAULT_MODE$1)],
|
|
888
915
|
];
|
|
889
916
|
}
|
|
890
917
|
const TextArea = /* @__PURE__ */withMods(TextArea$1, applyTextAreaMods, (props) => {
|
|
@@ -917,95 +944,96 @@ function TREE_SHAKEABLE_INIT$1() {
|
|
|
917
944
|
};
|
|
918
945
|
}
|
|
919
946
|
|
|
920
|
-
var _path$
|
|
921
|
-
function _extends$
|
|
947
|
+
var _path$A;
|
|
948
|
+
function _extends$A() { _extends$A = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$A.apply(this, arguments); }
|
|
922
949
|
var SvgNotificationCheckFill = function SvgNotificationCheckFill(props, ref) {
|
|
923
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
950
|
+
return /*#__PURE__*/React.createElement("svg", _extends$A({
|
|
924
951
|
xmlns: "http://www.w3.org/2000/svg",
|
|
925
952
|
width: 24,
|
|
926
953
|
height: 24,
|
|
927
954
|
viewBox: "0 0 24 24",
|
|
928
955
|
ref: ref
|
|
929
|
-
}, props), _path$
|
|
956
|
+
}, props), _path$A || (_path$A = /*#__PURE__*/React.createElement("path", {
|
|
930
957
|
d: "m10.6 16.6 7.05-7.05-1.4-1.4-5.65 5.65-2.85-2.85-1.4 1.4 4.25 4.25zM12 22a9.733 9.733 0 0 1-3.9-.788 10.092 10.092 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.733 9.733 0 0 1 2 12a9.74 9.74 0 0 1 .788-3.9 10.092 10.092 0 0 1 2.137-3.175c.9-.9 1.958-1.613 3.175-2.138A9.743 9.743 0 0 1 12 2a9.74 9.74 0 0 1 3.9.787 10.105 10.105 0 0 1 3.175 2.138c.9.9 1.612 1.958 2.137 3.175A9.733 9.733 0 0 1 22 12a9.733 9.733 0 0 1-.788 3.9 10.092 10.092 0 0 1-2.137 3.175c-.9.9-1.958 1.612-3.175 2.137A9.733 9.733 0 0 1 12 22z"
|
|
931
958
|
})));
|
|
932
959
|
};
|
|
933
|
-
var ForwardRef$
|
|
960
|
+
var ForwardRef$A = /*#__PURE__*/forwardRef(SvgNotificationCheckFill);
|
|
934
961
|
|
|
935
|
-
var _path$
|
|
936
|
-
function _extends$
|
|
962
|
+
var _path$z;
|
|
963
|
+
function _extends$z() { _extends$z = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$z.apply(this, arguments); }
|
|
937
964
|
var SvgNotificationWarningFill = function SvgNotificationWarningFill(props, ref) {
|
|
938
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
965
|
+
return /*#__PURE__*/React.createElement("svg", _extends$z({
|
|
939
966
|
xmlns: "http://www.w3.org/2000/svg",
|
|
940
967
|
width: 24,
|
|
941
968
|
height: 24,
|
|
942
969
|
viewBox: "0 0 24 24",
|
|
943
970
|
ref: ref
|
|
944
|
-
}, props), _path$
|
|
971
|
+
}, props), _path$z || (_path$z = /*#__PURE__*/React.createElement("path", {
|
|
945
972
|
d: "M1 21 12 2l11 19H1zm11-3a.968.968 0 0 0 .713-.288A.967.967 0 0 0 13 17a.967.967 0 0 0-.287-.712A.968.968 0 0 0 12 16a.965.965 0 0 0-.712.288A.965.965 0 0 0 11 17c0 .283.096.52.288.712A.965.965 0 0 0 12 18zm-1-3h2v-5h-2v5z"
|
|
946
973
|
})));
|
|
947
974
|
};
|
|
948
|
-
var ForwardRef$
|
|
975
|
+
var ForwardRef$z = /*#__PURE__*/forwardRef(SvgNotificationWarningFill);
|
|
949
976
|
|
|
950
|
-
var _path$
|
|
951
|
-
function _extends$
|
|
977
|
+
var _path$y;
|
|
978
|
+
function _extends$y() { _extends$y = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$y.apply(this, arguments); }
|
|
952
979
|
var SvgNotificationErrorFill = function SvgNotificationErrorFill(props, ref) {
|
|
953
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
980
|
+
return /*#__PURE__*/React.createElement("svg", _extends$y({
|
|
954
981
|
xmlns: "http://www.w3.org/2000/svg",
|
|
955
982
|
width: 24,
|
|
956
983
|
height: 24,
|
|
957
984
|
viewBox: "0 0 24 24",
|
|
958
985
|
ref: ref
|
|
959
|
-
}, props), _path$
|
|
986
|
+
}, props), _path$y || (_path$y = /*#__PURE__*/React.createElement("path", {
|
|
960
987
|
d: "M12 17a.968.968 0 0 0 .713-.288A.967.967 0 0 0 13 16a.97.97 0 0 0-.287-.713A.97.97 0 0 0 12 15a.967.967 0 0 0-.712.287A.968.968 0 0 0 11 16c0 .283.096.52.288.712A.965.965 0 0 0 12 17zm-1-4h2V7h-2v6zm1 9a9.733 9.733 0 0 1-3.9-.788 10.092 10.092 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.733 9.733 0 0 1 2 12a9.74 9.74 0 0 1 .788-3.9 10.092 10.092 0 0 1 2.137-3.175c.9-.9 1.958-1.613 3.175-2.138A9.743 9.743 0 0 1 12 2a9.74 9.74 0 0 1 3.9.787 10.105 10.105 0 0 1 3.175 2.138c.9.9 1.612 1.958 2.137 3.175A9.733 9.733 0 0 1 22 12a9.733 9.733 0 0 1-.788 3.9 10.092 10.092 0 0 1-2.137 3.175c-.9.9-1.958 1.612-3.175 2.137A9.733 9.733 0 0 1 12 22z"
|
|
961
988
|
})));
|
|
962
989
|
};
|
|
963
|
-
var ForwardRef$
|
|
990
|
+
var ForwardRef$y = /*#__PURE__*/forwardRef(SvgNotificationErrorFill);
|
|
964
991
|
|
|
965
|
-
var _path$
|
|
966
|
-
function _extends$
|
|
992
|
+
var _path$x;
|
|
993
|
+
function _extends$x() { _extends$x = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$x.apply(this, arguments); }
|
|
967
994
|
var SvgNotificationInfoFill = function SvgNotificationInfoFill(props, ref) {
|
|
968
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
995
|
+
return /*#__PURE__*/React.createElement("svg", _extends$x({
|
|
969
996
|
xmlns: "http://www.w3.org/2000/svg",
|
|
970
997
|
width: 24,
|
|
971
998
|
height: 24,
|
|
972
999
|
viewBox: "0 0 24 24",
|
|
973
1000
|
ref: ref
|
|
974
|
-
}, props), _path$
|
|
1001
|
+
}, props), _path$x || (_path$x = /*#__PURE__*/React.createElement("path", {
|
|
975
1002
|
d: "M11 17h2v-6h-2v6zm1-8a.968.968 0 0 0 .713-.288A.967.967 0 0 0 13 8a.97.97 0 0 0-.287-.713A.97.97 0 0 0 12 7a.967.967 0 0 0-.712.287A.968.968 0 0 0 11 8c0 .283.096.52.288.712A.965.965 0 0 0 12 9zm0 13a9.733 9.733 0 0 1-3.9-.788 10.092 10.092 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.733 9.733 0 0 1 2 12a9.74 9.74 0 0 1 .788-3.9 10.092 10.092 0 0 1 2.137-3.175c.9-.9 1.958-1.613 3.175-2.138A9.743 9.743 0 0 1 12 2a9.74 9.74 0 0 1 3.9.787 10.105 10.105 0 0 1 3.175 2.138c.9.9 1.612 1.958 2.137 3.175A9.733 9.733 0 0 1 22 12a9.733 9.733 0 0 1-.788 3.9 10.092 10.092 0 0 1-2.137 3.175c-.9.9-1.958 1.612-3.175 2.137A9.733 9.733 0 0 1 12 22z"
|
|
976
1003
|
})));
|
|
977
1004
|
};
|
|
978
|
-
var ForwardRef$
|
|
979
|
-
|
|
980
|
-
var css$
|
|
981
|
-
|
|
982
|
-
const Alert = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement("div", Object.assign({ role: "alert", ref: ref, className: cx('uui-alert', css$
|
|
983
|
-
React.createElement("div", { className: css$
|
|
984
|
-
|
|
985
|
-
React.createElement(
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
const
|
|
992
|
-
const
|
|
993
|
-
const
|
|
1005
|
+
var ForwardRef$x = /*#__PURE__*/forwardRef(SvgNotificationInfoFill);
|
|
1006
|
+
|
|
1007
|
+
var css$1m = {"uui-typography":"HWTwsP","uuiTypography":"HWTwsP","hero-header":"S87K1Y","heroHeader":"S87K1Y","promo-header":"ErTD0d","promoHeader":"ErTD0d","uui-critical":"eBB-E-","uuiCritical":"eBB-E-","uui-info":"g39ReE","uuiInfo":"g39ReE","uui-success":"AWAkqJ","uuiSuccess":"AWAkqJ","uui-warning":"_8U9E0Q","uuiWarning":"_8U9E0Q","uui-highlight":"TT9fWI","uuiHighlight":"TT9fWI","uui-typography-size-12":"e-RLsF","uuiTypographySize12":"e-RLsF","uui-typography-size-14":"podbdR","uuiTypographySize14":"podbdR","uui-typography-size-16":"SJ1LYW","uuiTypographySize16":"SJ1LYW","root":"Y3EN-t","main-path":"KrkNm3","mainPath":"KrkNm3","content-wrapper":"VzQa9h","contentWrapper":"VzQa9h","content":"_8IwZ1i","action-wrapper":"G9TGRp","actionWrapper":"G9TGRp","icon-wrapper":"_0-Yx1E","iconWrapper":"_0-Yx1E","icon":"MSH2tZ","close-icon":"OZB7T4","closeIcon":"OZB7T4"};
|
|
1008
|
+
|
|
1009
|
+
const Alert = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement("div", Object.assign({ role: "alert", ref: ref, className: cx('uui-alert', css$1m.root, props.color && `uui-color-${props.color}`, props.cx, `uui-size-${props.size || settings.sizes.defaults.alert}`) }, props.rawProps),
|
|
1010
|
+
React.createElement("div", { className: css$1m.mainPath },
|
|
1011
|
+
React.createElement("div", { className: css$1m.contentWrapper },
|
|
1012
|
+
props.icon && (React.createElement("div", { className: css$1m.iconWrapper },
|
|
1013
|
+
React.createElement(IconContainer, { icon: props.icon, cx: css$1m.icon }))),
|
|
1014
|
+
React.createElement("div", { className: css$1m.content },
|
|
1015
|
+
props.children,
|
|
1016
|
+
props.actions && (React.createElement("div", { className: css$1m.actionWrapper }, props.actions.map((action) => (React.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$1m.actionLink, size: settings.sizes.alert.action[props.size || settings.sizes.defaults.alert] }))))))),
|
|
1017
|
+
props.onClose && React.createElement(IconButton, { icon: ForwardRef$R, color: "neutral", onClick: props.onClose, cx: css$1m.closeIcon })))));
|
|
1018
|
+
const WarningAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$z, color: "warning", ref: ref }, props)));
|
|
1019
|
+
const SuccessAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$A, color: "success", ref: ref }, props)));
|
|
1020
|
+
const HintAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$x, color: "info", ref: ref }, props)));
|
|
1021
|
+
const ErrorAlert = /* @__PURE__ */React.forwardRef((props, ref) => React.createElement(Alert, Object.assign({ icon: ForwardRef$y, color: "error", ref: ref }, props)));
|
|
994
1022
|
|
|
995
1023
|
const Dropdown = /* @__PURE__ */withMods(Dropdown$1);
|
|
996
1024
|
|
|
997
|
-
var css$
|
|
1025
|
+
var css$1l = {"root":"yr1ZfS"};
|
|
998
1026
|
|
|
999
1027
|
function applyDropdownContainerMods(mods) {
|
|
1000
1028
|
return [
|
|
1001
|
-
css$
|
|
1029
|
+
css$1l.root,
|
|
1002
1030
|
mods.vPadding && `vPadding-${mods.vPadding}`,
|
|
1003
1031
|
mods.padding && `padding-${mods.padding}`,
|
|
1004
1032
|
];
|
|
1005
1033
|
}
|
|
1006
1034
|
const DropdownContainer = /* @__PURE__ */withMods(uuiComponents.DropdownContainer, applyDropdownContainerMods);
|
|
1007
1035
|
|
|
1008
|
-
var css$
|
|
1036
|
+
var css$1k = {"uui-typography":"yL2G1R","uuiTypography":"yL2G1R","hero-header":"u6E83x","heroHeader":"u6E83x","promo-header":"HfIb3N","promoHeader":"HfIb3N","uui-critical":"vjBgWl","uuiCritical":"vjBgWl","uui-info":"TS1FcQ","uuiInfo":"TS1FcQ","uui-success":"_0uQ673","uuiSuccess":"_0uQ673","uui-warning":"NwXTV7","uuiWarning":"NwXTV7","uui-highlight":"vruTWu","uuiHighlight":"vruTWu","uui-typography-size-12":"_4WLGbC","uuiTypographySize12":"_4WLGbC","uui-typography-size-14":"JthH6C","uuiTypographySize14":"JthH6C","uui-typography-size-16":"f9fRfa","uuiTypographySize16":"f9fRfa","submenu-root-item-rtl":"InbstL","submenuRootItemRtl":"InbstL","icon-after":"zpJd6q","iconAfter":"zpJd6q","submenu-root-item":"PPjiSU","submenuRootItem":"PPjiSU","icon-check":"D-Fz29","iconCheck":"D-Fz29","splitter-root":"nhVyFF","splitterRoot":"nhVyFF","splitter":"SP9TgY","header-root":"zC68mG","headerRoot":"zC68mG","item-root":"NgaKno","itemRoot":"NgaKno","icon":"LQbwtZ","link":"INu1xn","indent":"NHB9YG","selected-mark":"VnBFIM","selectedMark":"VnBFIM"};
|
|
1009
1037
|
|
|
1010
1038
|
var IDropdownControlKeys;
|
|
1011
1039
|
(function (IDropdownControlKeys) {
|
|
@@ -1066,17 +1094,17 @@ const DropdownMenuButton = /* @__PURE__ */React__default.forwardRef((props, ref)
|
|
|
1066
1094
|
const getMenuButtonContent = () => {
|
|
1067
1095
|
const isIconBefore = Boolean(icon && iconPosition !== 'right');
|
|
1068
1096
|
const isIconAfter = Boolean(icon && iconPosition === 'right');
|
|
1069
|
-
const iconElement = (React__default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: cx$1(css$
|
|
1097
|
+
const iconElement = (React__default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: cx$1(css$1k.icon, iconPosition === 'right' ? css$1k.iconAfter : css$1k.iconBefore) }));
|
|
1070
1098
|
return (React__default.createElement(React__default.Fragment, null,
|
|
1071
1099
|
isIconBefore && iconElement,
|
|
1072
|
-
React__default.createElement(Text$1, { cx: props.indent && css$
|
|
1100
|
+
React__default.createElement(Text$1, { cx: props.indent && css$1k.indent }, caption),
|
|
1073
1101
|
isIconAfter && (React__default.createElement(React__default.Fragment, null,
|
|
1074
1102
|
React__default.createElement(FlexSpacer, null),
|
|
1075
1103
|
iconElement))));
|
|
1076
1104
|
};
|
|
1077
1105
|
const isAnchor = Boolean(link || href);
|
|
1078
|
-
const itemClassNames = cx$1(props.cx, css$
|
|
1079
|
-
return isAnchor ? (React__default.createElement(Anchor$1, { cx: cx$1(css$
|
|
1106
|
+
const itemClassNames = cx$1(props.cx, css$1k.itemRoot, isDisabled && uuiMod.disabled, isActive && uuiMod.active, isOpen && uuiMod.opened);
|
|
1107
|
+
return isAnchor ? (React__default.createElement(Anchor$1, { cx: cx$1(css$1k.link, itemClassNames), link: link, href: href, rawProps: { role: 'menuitem', tabIndex: isDisabled ? -1 : 0 }, onClick: handleClick, isLinkActive: isActive, isDisabled: isDisabled, target: target }, getMenuButtonContent())) : (React__default.createElement(FlexRow$1, { rawProps: {
|
|
1080
1108
|
tabIndex: isDisabled ? -1 : 0,
|
|
1081
1109
|
role: 'menuitem',
|
|
1082
1110
|
onKeyDown: isDisabled ? null : handleOpenDropdown,
|
|
@@ -1084,15 +1112,15 @@ const DropdownMenuButton = /* @__PURE__ */React__default.forwardRef((props, ref)
|
|
|
1084
1112
|
getMenuButtonContent(),
|
|
1085
1113
|
isSelected && (React__default.createElement(React__default.Fragment, null,
|
|
1086
1114
|
React__default.createElement(FlexSpacer, null),
|
|
1087
|
-
React__default.createElement(IconContainer, { icon: systemIcons.accept, cx: css$
|
|
1115
|
+
React__default.createElement(IconContainer, { icon: systemIcons.accept, cx: css$1k.selectedMark })))));
|
|
1088
1116
|
});
|
|
1089
1117
|
function DropdownMenuSplitter(props) {
|
|
1090
|
-
return (React__default.createElement("div", { className: cx$1(props.cx, css$
|
|
1091
|
-
React__default.createElement("hr", { className: css$
|
|
1118
|
+
return (React__default.createElement("div", { className: cx$1(props.cx, css$1k.splitterRoot) },
|
|
1119
|
+
React__default.createElement("hr", { className: css$1k.splitter })));
|
|
1092
1120
|
}
|
|
1093
1121
|
function DropdownMenuHeader(props) {
|
|
1094
|
-
return (React__default.createElement("div", { className: cx$1('uui-dropdown-menu-header', props.cx, css$
|
|
1095
|
-
React__default.createElement("span", { className: css$
|
|
1122
|
+
return (React__default.createElement("div", { className: cx$1('uui-dropdown-menu-header', props.cx, css$1k.headerRoot) },
|
|
1123
|
+
React__default.createElement("span", { className: css$1k.header }, props.caption)));
|
|
1096
1124
|
}
|
|
1097
1125
|
function DropdownSubMenu(props) {
|
|
1098
1126
|
const subMenuModifiers = [
|
|
@@ -1114,7 +1142,7 @@ function DropdownSubMenu(props) {
|
|
|
1114
1142
|
const isRtl = (window === null || window === void 0 ? void 0 : window.document.dir) === 'rtl';
|
|
1115
1143
|
return (React__default.createElement(Dropdown$1, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", openDelay: 400, closeDelay: 400, placement: isRtl ? 'left-start' : 'right-start', modifiers: subMenuModifiers, renderBody: (dropdownProps) => !props.isDisabled && (React__default.createElement(DropdownMenuBody, Object.assign({ closeOnKey: IDropdownControlKeys.LEFT_ARROW }, props, dropdownProps))), renderTarget: (_a) => {
|
|
1116
1144
|
var { toggleDropdownOpening } = _a, targetProps = __rest(_a, ["toggleDropdownOpening"]);
|
|
1117
|
-
return (React__default.createElement(DropdownMenuButton, Object.assign({ cx: cx$1(isRtl ? css$
|
|
1145
|
+
return (React__default.createElement(DropdownMenuButton, Object.assign({ cx: cx$1(isRtl ? css$1k.submenuRootItemRtl : css$1k.submenuRootItem), icon: systemIcons.foldingArrow, iconPosition: "right", isDropdown: true, toggleDropdownOpening: toggleDropdownOpening }, props, targetProps)));
|
|
1118
1146
|
} }));
|
|
1119
1147
|
}
|
|
1120
1148
|
function DropdownMenuSwitchButton(props) {
|
|
@@ -1131,29 +1159,29 @@ function DropdownMenuSwitchButton(props) {
|
|
|
1131
1159
|
onHandleValueChange(!isSelected);
|
|
1132
1160
|
}
|
|
1133
1161
|
};
|
|
1134
|
-
return (React__default.createElement(FlexRow$1, { cx: cx$1(props.cx, css$
|
|
1135
|
-
icon && React__default.createElement(IconContainer, { icon: icon, cx: css$
|
|
1162
|
+
return (React__default.createElement(FlexRow$1, { cx: cx$1(props.cx, css$1k.itemRoot, isDisabled && uuiMod.disabled), onClick: () => onHandleValueChange(!isSelected), rawProps: { role: 'menuitem', onKeyDown: handleKeySelect, tabIndex: isDisabled ? -1 : 0 } },
|
|
1163
|
+
icon && React__default.createElement(IconContainer, { icon: icon, cx: css$1k.iconBefore }),
|
|
1136
1164
|
React__default.createElement(Text$1, null, caption),
|
|
1137
1165
|
React__default.createElement(FlexSpacer, null),
|
|
1138
1166
|
React__default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
1139
1167
|
}
|
|
1140
1168
|
|
|
1141
|
-
var css$
|
|
1169
|
+
var css$1j = {"uui-typography":"tJ5ReB","uuiTypography":"tJ5ReB","hero-header":"Bz6h48","heroHeader":"Bz6h48","promo-header":"ev6NBH","promoHeader":"ev6NBH","uui-critical":"ElhTl-","uuiCritical":"ElhTl-","uui-info":"MoLvxB","uuiInfo":"MoLvxB","uui-success":"hE4Pv6","uuiSuccess":"hE4Pv6","uui-warning":"_4Z9UK7","uuiWarning":"_4Z9UK7","uui-highlight":"aO1euL","uuiHighlight":"aO1euL","uui-typography-size-12":"MI4bZN","uuiTypographySize12":"MI4bZN","uui-typography-size-14":"_5ivDdV","uuiTypographySize14":"_5ivDdV","uui-typography-size-16":"xoPY6N","uuiTypographySize16":"xoPY6N","root":"_1s9MKj","mode-block":"xgwaE6","modeBlock":"xgwaE6","mode-inline":"va2-Vj","modeInline":"va2-Vj","padding-0":"L-lKt-","padding0":"L-lKt-","padding-6":"gfTITF","padding6":"gfTITF","padding-12":"MIJ0Lq","padding12":"MIJ0Lq","padding-18":"veSZWb","padding18":"veSZWb"};
|
|
1142
1170
|
|
|
1143
1171
|
function applyAccordionMods(mods) {
|
|
1144
1172
|
return [
|
|
1145
|
-
css$
|
|
1146
|
-
css$
|
|
1147
|
-
mods.padding && css$
|
|
1173
|
+
css$1j.root,
|
|
1174
|
+
css$1j[`mode-${mods.mode || 'block'}`],
|
|
1175
|
+
mods.padding && css$1j['padding-' + mods.padding],
|
|
1148
1176
|
];
|
|
1149
1177
|
}
|
|
1150
1178
|
const Accordion = /* @__PURE__ */withMods(uuiComponents.Accordion, applyAccordionMods, (mods) => ({
|
|
1151
1179
|
dropdownIcon: mods.dropdownIcon !== null && systemIcons.foldingArrow,
|
|
1152
1180
|
}));
|
|
1153
1181
|
|
|
1154
|
-
var css$
|
|
1182
|
+
var css$1i = {"uui-typography":"_3w-ph0","uuiTypography":"_3w-ph0","hero-header":"lmiIWE","heroHeader":"lmiIWE","promo-header":"wQ59M5","promoHeader":"wQ59M5","uui-critical":"_3VClnA","uuiCritical":"_3VClnA","uui-info":"tIeb4B","uuiInfo":"tIeb4B","uui-success":"z4K-ul","uuiSuccess":"z4K-ul","uui-warning":"rNHjIp","uuiWarning":"rNHjIp","uui-highlight":"rhrDM-","uuiHighlight":"rhrDM-","uui-typography-size-12":"ACYjEC","uuiTypographySize12":"ACYjEC","uui-typography-size-14":"tGgHwK","uuiTypographySize14":"tGgHwK","uui-typography-size-16":"PiT3pq","uuiTypographySize16":"PiT3pq","root":"FJHiiy","border-top":"_5N6Pf-","borderTop":"_5N6Pf-","border-bottom":"_---kjD","borderBottom":"_---kjD","top-shadow":"Mf2Olm","topShadow":"Mf2Olm","padding-6":"_8ridhK","padding6":"_8ridhK","padding-12":"OMVlcX","padding12":"OMVlcX","padding-18":"dREilp","padding18":"dREilp","padding-24":"xRRPmF","padding24":"xRRPmF","margin-24":"J-sIuf","margin24":"J-sIuf","margin-12":"JkVzSh","margin12":"JkVzSh","vPadding-12":"_7d9NIq","vPadding12":"_7d9NIq","vPadding-18":"XCjJtb","vPadding18":"XCjJtb","vPadding-24":"_5Oop5C","vPadding24":"_5Oop5C","vPadding-36":"QoUP1d","vPadding36":"QoUP1d","vPadding-48":"wmZ-62","vPadding48":"wmZ-62","spacing-6":"VxKML8","spacing6":"VxKML8","spacing-12":"LTB9xp","spacing12":"LTB9xp","spacing-18":"elVpOT","spacing18":"elVpOT","uui-surface-main":"KY-d-j","uuiSurfaceMain":"KY-d-j"};
|
|
1155
1183
|
|
|
1156
|
-
const FlexCell = /* @__PURE__ */withMods(FlexCell$1, () => [css$
|
|
1184
|
+
const FlexCell = /* @__PURE__ */withMods(FlexCell$1, () => [css$1i.flexCell]);
|
|
1157
1185
|
|
|
1158
1186
|
const FlexRow = /* @__PURE__ */withMods(FlexRow$1, (props) => {
|
|
1159
1187
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -1162,54 +1190,54 @@ const FlexRow = /* @__PURE__ */withMods(FlexRow$1, (props) => {
|
|
|
1162
1190
|
}
|
|
1163
1191
|
}
|
|
1164
1192
|
return [
|
|
1165
|
-
css$
|
|
1193
|
+
css$1i.root,
|
|
1166
1194
|
props.size !== null && 'uui-size-' + (props.size || '36'),
|
|
1167
|
-
props.padding && css$
|
|
1168
|
-
props.vPadding && css$
|
|
1169
|
-
props.margin && css$
|
|
1170
|
-
props.topShadow && css$
|
|
1171
|
-
props.borderBottom && css$
|
|
1172
|
-
props.borderTop && css$
|
|
1173
|
-
props.spacing && css$
|
|
1174
|
-
props.background && css$
|
|
1195
|
+
props.padding && css$1i['padding-' + props.padding],
|
|
1196
|
+
props.vPadding && css$1i['vPadding-' + props.vPadding],
|
|
1197
|
+
props.margin && css$1i['margin-' + props.margin],
|
|
1198
|
+
props.topShadow && css$1i.topShadow,
|
|
1199
|
+
props.borderBottom && css$1i.borderBottom,
|
|
1200
|
+
props.borderTop && css$1i.borderTop,
|
|
1201
|
+
props.spacing && css$1i['spacing-' + props.spacing],
|
|
1202
|
+
props.background && css$1i[`uui-${props.background}`],
|
|
1175
1203
|
];
|
|
1176
1204
|
});
|
|
1177
1205
|
|
|
1178
|
-
var css$
|
|
1206
|
+
var css$1h = {"root":"KO863m","margin-24":"wrJRGk","margin24":"wrJRGk","padding-12":"opOilq","padding12":"opOilq","padding-24":"_5hukYs","padding24":"_5hukYs","shadow":"IQlNLa","uui-surface-main":"OIgcvF","uuiSurfaceMain":"OIgcvF"};
|
|
1179
1207
|
|
|
1180
1208
|
const Panel = /* @__PURE__ */withMods(VPanel, (props) => [
|
|
1181
1209
|
'uui-panel',
|
|
1182
|
-
css$
|
|
1183
|
-
props.shadow && css$
|
|
1184
|
-
props.margin && css$
|
|
1185
|
-
props.background && css$
|
|
1210
|
+
css$1h.root,
|
|
1211
|
+
props.shadow && css$1h.shadow,
|
|
1212
|
+
props.margin && css$1h['margin-' + props.margin],
|
|
1213
|
+
props.background && css$1h[`uui-${props.background}`],
|
|
1186
1214
|
]);
|
|
1187
1215
|
|
|
1188
|
-
var css$
|
|
1216
|
+
var css$1g = {"root":"LZGau1"};
|
|
1189
1217
|
|
|
1190
1218
|
function applyTooltipMods(mods) {
|
|
1191
1219
|
return [
|
|
1192
|
-
css$
|
|
1220
|
+
css$1g.root,
|
|
1193
1221
|
`uui-color-${mods.color || 'inverted'}`,
|
|
1194
1222
|
];
|
|
1195
1223
|
}
|
|
1196
1224
|
const Tooltip = /* @__PURE__ */withMods(uuiComponents.Tooltip, applyTooltipMods);
|
|
1197
1225
|
|
|
1198
|
-
var css$
|
|
1226
|
+
var css$1f = {"uui-typography":"XQVPio","uuiTypography":"XQVPio","hero-header":"oDtmmx","heroHeader":"oDtmmx","promo-header":"syi7we","promoHeader":"syi7we","uui-critical":"kbbmCy","uuiCritical":"kbbmCy","uui-info":"_0jX8L0","uuiInfo":"_0jX8L0","uui-success":"Uu1l7r","uuiSuccess":"Uu1l7r","uui-warning":"-chxlD","uuiWarning":"-chxlD","uui-highlight":"AcNzql","uuiHighlight":"AcNzql","uui-typography-size-12":"mz5zlm","uuiTypographySize12":"mz5zlm","uui-typography-size-14":"cM3Fck","uuiTypographySize14":"cM3Fck","uui-typography-size-16":"JskUye","uuiTypographySize16":"JskUye","root":"uVFE2q"};
|
|
1199
1227
|
|
|
1200
1228
|
function applyLabeledInputMods(mods) {
|
|
1201
1229
|
return [
|
|
1202
1230
|
'uui-labeled-input',
|
|
1203
|
-
css$
|
|
1231
|
+
css$1f.root,
|
|
1204
1232
|
'uui-size-' + (mods.size || settings.sizes.defaults.labeledInput),
|
|
1205
1233
|
];
|
|
1206
1234
|
}
|
|
1207
1235
|
const LabeledInput = /* @__PURE__ */withMods(uuiComponents.LabeledInput, applyLabeledInputMods, (props) => ({
|
|
1208
1236
|
Tooltip: props.Tooltip || Tooltip,
|
|
1209
|
-
infoIcon: props.infoIcon || (settings.sizes.labeledInput.fillIcon.includes(props.size) ? ForwardRef$
|
|
1237
|
+
infoIcon: props.infoIcon || (settings.sizes.labeledInput.fillIcon.includes(props.size) ? ForwardRef$x : ForwardRef$M),
|
|
1210
1238
|
}));
|
|
1211
1239
|
|
|
1212
|
-
var css$
|
|
1240
|
+
var css$1e = {"root":"lVVYkK"};
|
|
1213
1241
|
|
|
1214
1242
|
function RadioGroup(props) {
|
|
1215
1243
|
const direction = props.direction || 'vertical';
|
|
@@ -1218,34 +1246,34 @@ function RadioGroup(props) {
|
|
|
1218
1246
|
props.onValueChange(newVal);
|
|
1219
1247
|
}
|
|
1220
1248
|
};
|
|
1221
|
-
return (React.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: cx$1(css$
|
|
1249
|
+
return (React.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: cx$1(css$1e.root, directionMode[direction], props.cx), onFocus: props.onFocus, onBlur: props.onBlur }, props.rawProps), props.items.map((i) => {
|
|
1222
1250
|
const restItemProps = __rest(i, ["id", "name", "renderName"]);
|
|
1223
1251
|
return (React.createElement(RadioInput, Object.assign({ 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)));
|
|
1224
1252
|
})));
|
|
1225
1253
|
}
|
|
1226
1254
|
|
|
1227
|
-
var css$
|
|
1255
|
+
var css$1d = {"root":"BFVP-q"};
|
|
1228
1256
|
|
|
1229
1257
|
function applyScrollBarsMods() {
|
|
1230
1258
|
return [
|
|
1231
|
-
css$
|
|
1259
|
+
css$1d.root, 'uui-scroll-bars', 'uui-shadow-top', 'uui-shadow-bottom',
|
|
1232
1260
|
];
|
|
1233
1261
|
}
|
|
1234
1262
|
const ScrollBars = /* @__PURE__ */withMods(ScrollBars$1, applyScrollBarsMods);
|
|
1235
1263
|
|
|
1236
|
-
var css$
|
|
1264
|
+
var css$1c = {"scroll-container":"wm3FFF","scrollContainer":"wm3FFF","list-container":"FjyvHJ","listContainer":"FjyvHJ"};
|
|
1237
1265
|
|
|
1238
|
-
var css$
|
|
1266
|
+
var css$1b = {"root":"xTx-HH"};
|
|
1239
1267
|
|
|
1240
|
-
const AvatarStack = /* @__PURE__ */withMods(AvatarStack$1, () => [css$
|
|
1268
|
+
const AvatarStack = /* @__PURE__ */withMods(AvatarStack$1, () => [css$1b.root]);
|
|
1241
1269
|
|
|
1242
|
-
var css$
|
|
1270
|
+
var css$1a = {"uui-typography":"omeBJf","uuiTypography":"omeBJf","hero-header":"KrcSIz","heroHeader":"KrcSIz","promo-header":"PbtcFt","promoHeader":"PbtcFt","uui-critical":"-LTK8w","uuiCritical":"-LTK8w","uui-info":"IIqZ4d","uuiInfo":"IIqZ4d","uui-success":"yoUmrQ","uuiSuccess":"yoUmrQ","uui-warning":"bM8IZ6","uuiWarning":"bM8IZ6","uui-highlight":"g-kHDU","uuiHighlight":"g-kHDU","uui-typography-size-12":"XmceiP","uuiTypographySize12":"XmceiP","uui-typography-size-14":"L69Jqz","uuiTypographySize14":"L69Jqz","uui-typography-size-16":"SHIyC3","uuiTypographySize16":"SHIyC3","root":"_8GuXQY"};
|
|
1243
1271
|
|
|
1244
1272
|
const DEFAULT_FILL = 'solid';
|
|
1245
1273
|
function applyBadgeMods(mods) {
|
|
1246
1274
|
return [
|
|
1247
1275
|
'uui-badge',
|
|
1248
|
-
css$
|
|
1276
|
+
css$1a.root,
|
|
1249
1277
|
`uui-size-${mods.size || settings.sizes.defaults.badge}`,
|
|
1250
1278
|
`uui-fill-${mods.fill || DEFAULT_FILL}`,
|
|
1251
1279
|
`uui-color-${mods.color || 'info'}`,
|
|
@@ -1263,11 +1291,11 @@ const Badge = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
1263
1291
|
props.isDropdown && (React__default.createElement(IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
1264
1292
|
});
|
|
1265
1293
|
|
|
1266
|
-
var css$
|
|
1294
|
+
var css$19 = {"uui-typography":"AQhy4v","uuiTypography":"AQhy4v","hero-header":"rTAA2t","heroHeader":"rTAA2t","promo-header":"MtVS6T","promoHeader":"MtVS6T","uui-critical":"lYfaM5","uuiCritical":"lYfaM5","uui-info":"jijbkU","uuiInfo":"jijbkU","uui-success":"yufIQ9","uuiSuccess":"yufIQ9","uui-warning":"nVvh4o","uuiWarning":"nVvh4o","uui-highlight":"soQhfQ","uuiHighlight":"soQhfQ","uui-typography-size-12":"f9JIO0","uuiTypographySize12":"f9JIO0","uui-typography-size-14":"_57lFU5","uuiTypographySize14":"_57lFU5","uui-typography-size-16":"_8UeN-o","uuiTypographySize16":"_8UeN-o","root":"pQTLk-"};
|
|
1267
1295
|
|
|
1268
1296
|
function applyTagMods(props) {
|
|
1269
1297
|
return [
|
|
1270
|
-
css$
|
|
1298
|
+
css$19.root,
|
|
1271
1299
|
`uui-size-${props.size || settings.sizes.defaults.tag}`,
|
|
1272
1300
|
`uui-color-${props.color || 'neutral'}`,
|
|
1273
1301
|
`uui-fill-${props.fill || 'solid'}`,
|
|
@@ -1287,94 +1315,94 @@ const Tag = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
|
1287
1315
|
props.onClear && !props.isDisabled && (React__default.createElement(IconContainer, { cx: uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
1288
1316
|
});
|
|
1289
1317
|
|
|
1290
|
-
var css$
|
|
1318
|
+
var css$18 = {"root":"_4VTEQq","uui-spinner":"TAaiFU","uuiSpinner":"TAaiFU"};
|
|
1291
1319
|
|
|
1292
1320
|
function applySpinnerMods() {
|
|
1293
|
-
return [css$
|
|
1321
|
+
return [css$18.root, 'uui-spinner'];
|
|
1294
1322
|
}
|
|
1295
1323
|
const Spinner = /* @__PURE__ */withMods(Spinner$1, applySpinnerMods);
|
|
1296
1324
|
|
|
1297
|
-
var _path$
|
|
1298
|
-
function _extends$
|
|
1325
|
+
var _path$w;
|
|
1326
|
+
function _extends$w() { _extends$w = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$w.apply(this, arguments); }
|
|
1299
1327
|
var SvgNavigationChevronLeftOutline = function SvgNavigationChevronLeftOutline(props, ref) {
|
|
1300
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
1328
|
+
return /*#__PURE__*/React.createElement("svg", _extends$w({
|
|
1301
1329
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1302
1330
|
width: 24,
|
|
1303
1331
|
height: 24,
|
|
1304
1332
|
viewBox: "0 0 24 24",
|
|
1305
1333
|
ref: ref
|
|
1306
|
-
}, props), _path$
|
|
1334
|
+
}, props), _path$w || (_path$w = /*#__PURE__*/React.createElement("path", {
|
|
1307
1335
|
d: "M15.914 5.414 14.5 4l-8 8 8 8 1.414-1.414L9.328 12l6.586-6.586z"
|
|
1308
1336
|
})));
|
|
1309
1337
|
};
|
|
1310
|
-
var ForwardRef$
|
|
1338
|
+
var ForwardRef$w = /*#__PURE__*/forwardRef(SvgNavigationChevronLeftOutline);
|
|
1311
1339
|
|
|
1312
|
-
var _path$
|
|
1313
|
-
function _extends$
|
|
1340
|
+
var _path$v;
|
|
1341
|
+
function _extends$v() { _extends$v = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$v.apply(this, arguments); }
|
|
1314
1342
|
var SvgNavigationChevronRightOutline = function SvgNavigationChevronRightOutline(props, ref) {
|
|
1315
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
1343
|
+
return /*#__PURE__*/React.createElement("svg", _extends$v({
|
|
1316
1344
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1317
1345
|
width: 24,
|
|
1318
1346
|
height: 24,
|
|
1319
1347
|
viewBox: "0 0 24 24",
|
|
1320
1348
|
ref: ref
|
|
1321
|
-
}, props), _path$
|
|
1349
|
+
}, props), _path$v || (_path$v = /*#__PURE__*/React.createElement("path", {
|
|
1322
1350
|
d: "M8.086 18.586 9.5 20l8-8-8-8-1.414 1.414L14.672 12l-6.586 6.586z"
|
|
1323
1351
|
})));
|
|
1324
1352
|
};
|
|
1325
|
-
var ForwardRef$
|
|
1353
|
+
var ForwardRef$v = /*#__PURE__*/forwardRef(SvgNavigationChevronRightOutline);
|
|
1326
1354
|
|
|
1327
|
-
var css$
|
|
1355
|
+
var css$17 = {"root":"taIwL-","page":"a0c9EI","spacer":"gYwB6k","mode-ghost":"_6gm-xU","modeGhost":"_6gm-xU"};
|
|
1328
1356
|
|
|
1329
1357
|
function Paginator(props) {
|
|
1330
|
-
const renderPaginator = (params) => (React__default.createElement("nav", Object.assign({ role: "navigation", className: cx(css$
|
|
1331
|
-
React__default.createElement(Button, { size: props.size || settings.sizes.defaults.paginator, icon: ForwardRef$
|
|
1358
|
+
const renderPaginator = (params) => (React__default.createElement("nav", Object.assign({ role: "navigation", className: cx(css$17.root, 'uui-paginator', `uui-size-${props.size || settings.sizes.defaults.paginator}`) }, params.rawProps),
|
|
1359
|
+
React__default.createElement(Button, { size: props.size || settings.sizes.defaults.paginator, icon: ForwardRef$w, onClick: params.goToPrev, isDisabled: params.isFirst || props.isDisabled, fill: "outline", color: "secondary" }),
|
|
1332
1360
|
params.pages.map((page, index) => {
|
|
1333
1361
|
if (page.type === 'spacer') {
|
|
1334
|
-
return (React__default.createElement(Button, { cx: cx(css$
|
|
1362
|
+
return (React__default.createElement(Button, { cx: cx(css$17.spacer, css$17.page), size: props.size || settings.sizes.defaults.paginator, key: `${index}_spacer`, caption: "...", fill: "ghost", color: "secondary", tabIndex: -1, isDisabled: props.isDisabled }));
|
|
1335
1363
|
}
|
|
1336
1364
|
else {
|
|
1337
|
-
return (React__default.createElement(Button, { cx: cx(css$
|
|
1365
|
+
return (React__default.createElement(Button, { cx: cx(css$17[`mode-${!page.isActive && 'ghost'}`], css$17.page), size: props.size || settings.sizes.defaults.paginator, key: page.pageNumber, caption: page.pageNumber, onClick: () => { var _a; return (_a = page.onClick) === null || _a === void 0 ? void 0 : _a.call(page); }, rawProps: { 'aria-current': page.isActive }, fill: (page.isActive && 'outline') || 'ghost', color: "primary", isDisabled: props.isDisabled }));
|
|
1338
1366
|
}
|
|
1339
1367
|
}),
|
|
1340
|
-
React__default.createElement(Button, { size: props.size || settings.sizes.defaults.paginator, icon: ForwardRef$
|
|
1368
|
+
React__default.createElement(Button, { size: props.size || settings.sizes.defaults.paginator, icon: ForwardRef$v, onClick: params.goToNext, isDisabled: params.isLast || props.isDisabled, fill: "outline", color: "secondary" })));
|
|
1341
1369
|
return React__default.createElement(Paginator$1, Object.assign({}, props, { render: renderPaginator }));
|
|
1342
1370
|
}
|
|
1343
1371
|
|
|
1344
|
-
var css$
|
|
1372
|
+
var css$16 = {"root":"Wq4Cfl","progress-bar":"udXVIQ","progressBar":"udXVIQ","progressBar-indeterminate":"e544hG","progressBarIndeterminate":"e544hG","size-12":"m3Kkps","size12":"m3Kkps","size-18":"x-k7IY","size18":"x-k7IY","size-24":"w-svs1","size24":"w-svs1"};
|
|
1345
1373
|
|
|
1346
1374
|
const IndeterminateBar = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1347
|
-
return (React.createElement("div", { ref: ref, className: cx('uui-indeterminate_bar', props.cx, css$
|
|
1348
|
-
React.createElement("div", { className: cx(css$
|
|
1375
|
+
return (React.createElement("div", { ref: ref, className: cx('uui-indeterminate_bar', props.cx, css$16.root, css$16[`size-${props.size || 12}`]) },
|
|
1376
|
+
React.createElement("div", { className: cx(css$16.progressBar) })));
|
|
1349
1377
|
});
|
|
1350
1378
|
|
|
1351
|
-
var css$
|
|
1379
|
+
var css$15 = {"root":"Y9OC-K","striped":"-qGV2t","animate-stripes":"vaRVOG","animateStripes":"vaRVOG","size-12":"Rz5XjK","size12":"Rz5XjK","size-18":"avR49C","size18":"avR49C","size-24":"m9L6f5","size24":"m9L6f5"};
|
|
1352
1380
|
|
|
1353
1381
|
const DEFAULT_SIZE = '12';
|
|
1354
1382
|
function applyProgressBarMods(mods) {
|
|
1355
1383
|
const size = mods.size || DEFAULT_SIZE;
|
|
1356
1384
|
return [
|
|
1357
|
-
css$
|
|
1358
|
-
css$
|
|
1359
|
-
mods.striped && css$
|
|
1385
|
+
css$15.root,
|
|
1386
|
+
css$15[`size-${size}`],
|
|
1387
|
+
mods.striped && css$15.striped,
|
|
1360
1388
|
];
|
|
1361
1389
|
}
|
|
1362
1390
|
const ProgressBar = /* @__PURE__ */withMods(uuiComponents.ProgressBar, applyProgressBarMods, (props) => ({
|
|
1363
1391
|
hideLabel: props.hideLabel || props.striped,
|
|
1364
1392
|
}));
|
|
1365
1393
|
|
|
1366
|
-
var css$
|
|
1394
|
+
var css$14 = {"root":"TKJniY"};
|
|
1367
1395
|
|
|
1368
1396
|
const IndicatorBar = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1369
1397
|
const { progress } = props;
|
|
1370
|
-
return progress || progress === 0 ? (React.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx(css$
|
|
1398
|
+
return progress || progress === 0 ? (React.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx(css$14.root, props.cx), hideLabel: true })) : (React.createElement(IndeterminateBar, { ref: ref, cx: cx(css$14.root, props.cx) }));
|
|
1371
1399
|
});
|
|
1372
1400
|
|
|
1373
|
-
var css$
|
|
1401
|
+
var css$13 = {"root":"QkSwyC"};
|
|
1374
1402
|
|
|
1375
1403
|
const StatusIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
1376
1404
|
return (React__default.createElement("div", { ref: ref, className: cx([
|
|
1377
|
-
css$
|
|
1405
|
+
css$13.root,
|
|
1378
1406
|
`uui-size-${props.size || settings.sizes.defaults.statusIndicator}`,
|
|
1379
1407
|
'uui-status_indicator',
|
|
1380
1408
|
`uui-color-${props.color || 'neutral'}`,
|
|
@@ -1385,7 +1413,7 @@ const StatusIndicator = /* @__PURE__ */forwardRef((props, ref) => {
|
|
|
1385
1413
|
React__default.createElement("p", { className: "uui-status_indicator-caption" }, props.caption)));
|
|
1386
1414
|
});
|
|
1387
1415
|
|
|
1388
|
-
var css$
|
|
1416
|
+
var css$12 = {"drag-handle":"DtPwOU","dragHandle":"DtPwOU","icon-container":"johVCs","iconContainer":"johVCs"};
|
|
1389
1417
|
|
|
1390
1418
|
function DataRowAddons(props) {
|
|
1391
1419
|
var _a, _b;
|
|
@@ -1397,19 +1425,19 @@ function DataRowAddons(props) {
|
|
|
1397
1425
|
return settings.sizes.rowAddons.indentWidth[props.size] || settings.sizes.rowAddons.defaults.indentWidth;
|
|
1398
1426
|
};
|
|
1399
1427
|
return (React__default.createElement(React__default.Fragment, null,
|
|
1400
|
-
((_a = row.dnd) === null || _a === void 0 ? void 0 : _a.srcData) && React__default.createElement(DragHandle, { key: "dh", cx: css$
|
|
1428
|
+
((_a = row.dnd) === null || _a === void 0 ? void 0 : _a.srcData) && React__default.createElement(DragHandle, { key: "dh", cx: css$12.dragHandle, rawProps: Object.assign({}, props.eventHandlers) }),
|
|
1401
1429
|
((_b = row === null || row === void 0 ? void 0 : row.checkbox) === null || _b === void 0 ? void 0 : _b.isVisible) && (React__default.createElement(Checkbox, { key: "cb", cx: "uui-dr_addons-checkbox", tabIndex: props.tabIndex, size: settings.sizes.rowAddons.checkbox[props.size], value: row.isChecked, indeterminate: !row.isChecked && row.isChildrenChecked, onValueChange: () => { var _a; return (_a = row.onCheck) === null || _a === void 0 ? void 0 : _a.call(row, row); }, isDisabled: row.checkbox.isDisabled, isInvalid: row.checkbox.isInvalid })),
|
|
1402
1430
|
row.indent > 0 && (React__default.createElement("div", { key: "fold", className: cx('uui-dr_addons-indent', `uui-size-${props.size}`), style: { marginInlineStart: getIndent(), width: getWidth() } }, row.isFoldable && (React__default.createElement(IconContainer, { rawProps: {
|
|
1403
1431
|
'aria-label': row.isFolded ? 'Unfold' : 'Fold',
|
|
1404
1432
|
role: 'button',
|
|
1405
|
-
}, key: "icon", icon: ForwardRef$
|
|
1406
|
-
uuiElement.foldingArrow, uuiMarkers.clickable, css$
|
|
1433
|
+
}, key: "icon", icon: ForwardRef$Q, cx: [
|
|
1434
|
+
uuiElement.foldingArrow, uuiMarkers.clickable, css$12.iconContainer,
|
|
1407
1435
|
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row), size: settings.sizes.rowAddons.icon[props.size] || settings.sizes.rowAddons.defaults.icon }))))));
|
|
1408
1436
|
}
|
|
1409
1437
|
|
|
1410
|
-
var css
|
|
1438
|
+
var css$11 = {"root":"KcDEuI"};
|
|
1411
1439
|
|
|
1412
|
-
const Blocker = /* @__PURE__ */withMods(Blocker$1, () => [css
|
|
1440
|
+
const Blocker = /* @__PURE__ */withMods(Blocker$1, () => [css$11.root], (cmpProps) => ({ renderSpinner: cmpProps.renderSpinner || (() => React__default.createElement(Spinner, null)) }));
|
|
1413
1441
|
|
|
1414
1442
|
const VirtualList = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1415
1443
|
const { listContainerRef, offsetY, handleScroll, estimatedHeight, scrollContainerRef, } = useVirtualList({
|
|
@@ -1425,7 +1453,7 @@ const VirtualList = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1425
1453
|
var _a;
|
|
1426
1454
|
return ((_a = props.renderRows) === null || _a === void 0 ? void 0 : _a.call(props, {
|
|
1427
1455
|
listContainerRef, estimatedHeight, offsetY, scrollShadows,
|
|
1428
|
-
})) || (React.createElement("div", { className: css$
|
|
1456
|
+
})) || (React.createElement("div", { className: css$1c.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
1429
1457
|
React.createElement("div", { ref: listContainerRef, role: props.role, style: { marginTop: offsetY } }, props.rows)));
|
|
1430
1458
|
};
|
|
1431
1459
|
const renderView = ({ style }) => (React.createElement(VirtualListView, { isLoading: props.isLoading, style: style, rawProps: props.rawProps }));
|
|
@@ -1435,7 +1463,7 @@ const VirtualList = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1435
1463
|
return;
|
|
1436
1464
|
scrollContainerRef.current = scrollbars.container.firstChild;
|
|
1437
1465
|
}, []);
|
|
1438
|
-
return (React.createElement(ScrollBars, { cx: cx$1(css$
|
|
1466
|
+
return (React.createElement(ScrollBars, { cx: cx$1(css$1c.scrollContainer, props.cx, {
|
|
1439
1467
|
[uuiMarkers.scrolledLeft]: scrollShadows.horizontalLeft,
|
|
1440
1468
|
[uuiMarkers.scrolledRight]: scrollShadows.horizontalRight,
|
|
1441
1469
|
[uuiMarkers.scrolledTop]: scrollShadows.verticalTop,
|
|
@@ -1448,7 +1476,7 @@ const VirtualListView = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1448
1476
|
React.createElement(Blocker, { isEnabled: props.isLoading })));
|
|
1449
1477
|
});
|
|
1450
1478
|
|
|
1451
|
-
var css$
|
|
1479
|
+
var css$10 = {"root":"x9tPpn"};
|
|
1452
1480
|
|
|
1453
1481
|
function CheckboxGroup(props) {
|
|
1454
1482
|
const currentValue = props.value || [];
|
|
@@ -1464,60 +1492,16 @@ function CheckboxGroup(props) {
|
|
|
1464
1492
|
}
|
|
1465
1493
|
props.onValueChange(newSelection);
|
|
1466
1494
|
};
|
|
1467
|
-
return (React.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: cx$1(css$
|
|
1495
|
+
return (React.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: cx$1(css$10.root, directionMode[direction], props.cx) }, props.rawProps), props.items.map((i) => {
|
|
1468
1496
|
const restItemProps = __rest(i, ["id", "name", "renderName"]);
|
|
1469
1497
|
return (React.createElement(Checkbox, Object.assign({ 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)));
|
|
1470
1498
|
})));
|
|
1471
1499
|
}
|
|
1472
1500
|
|
|
1473
|
-
var css
|
|
1474
|
-
|
|
1475
|
-
function applyTextMods(mods) {
|
|
1476
|
-
return [
|
|
1477
|
-
css$Z.root,
|
|
1478
|
-
'uui-text',
|
|
1479
|
-
`uui-size-${mods.size || settings.sizes.defaults.text}`,
|
|
1480
|
-
(mods.size !== 'none' || mods.lineHeight) && css$Z.lineHeight,
|
|
1481
|
-
(mods.size !== 'none' || mods.fontSize) && css$Z.fontSize,
|
|
1482
|
-
`uui-color-${mods.color || 'primary'}`,
|
|
1483
|
-
`uui-font-weight-${mods.fontWeight || '400'}`,
|
|
1484
|
-
`uui-font-style-${mods.fontStyle || 'normal'}`,
|
|
1485
|
-
'uui-typography',
|
|
1486
|
-
];
|
|
1487
|
-
}
|
|
1488
|
-
const Text = /* @__PURE__ */withMods(uuiComponents.Text, applyTextMods, (props) => {
|
|
1489
|
-
var _a;
|
|
1490
|
-
const style = ((_a = props === null || props === void 0 ? void 0 : props.rawProps) === null || _a === void 0 ? void 0 : _a.style) || {};
|
|
1491
|
-
props.fontSize && (style['--uui-text-font-size'] = `${props.fontSize}px`);
|
|
1492
|
-
props.lineHeight && (style['--uui-text-line-height'] = `${props.lineHeight}px`);
|
|
1493
|
-
return {
|
|
1494
|
-
rawProps: Object.assign(Object.assign({}, props === null || props === void 0 ? void 0 : props.rawProps), { style: style }),
|
|
1495
|
-
};
|
|
1496
|
-
});
|
|
1497
|
-
|
|
1498
|
-
var css$Y = {"root":"St4c-s","loading-word":"-DYCSx","animated-loading":"d0oAb0","skeleton_loading":"_2oky-D","loadingWord":"-DYCSx","animatedLoading":"d0oAb0","skeletonLoading":"_2oky-D"};
|
|
1499
|
-
|
|
1500
|
-
const TextPlaceholder = (props) => {
|
|
1501
|
-
const pattern = ' ';
|
|
1502
|
-
const text = React.useMemo(() => {
|
|
1503
|
-
const words = [];
|
|
1504
|
-
for (let i = 0; i < (props.wordsCount || 1); i++) {
|
|
1505
|
-
const lengthWord = Math.floor(Math.random() * 10 + 8);
|
|
1506
|
-
words.push(pattern.repeat(lengthWord));
|
|
1507
|
-
}
|
|
1508
|
-
return words;
|
|
1509
|
-
}, [props.wordsCount]);
|
|
1510
|
-
return (React.createElement("div", Object.assign({ "aria-busy": true, className: cx(css$Y.root, 'uui-text-placeholder') }, props.rawProps), text.map((it, index) => (React.createElement("span", { key: index, className: cx([
|
|
1511
|
-
props.cx, css$Y.loadingWord, !props.isNotAnimated && css$Y.animatedLoading,
|
|
1512
|
-
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
1513
|
-
};
|
|
1514
|
-
|
|
1515
|
-
const RichTextView = /* @__PURE__ */withMods(uuiComponents.RichTextView, (mods) => ['uui-typography', `uui-typography-size-${mods.size || '14'}`]);
|
|
1516
|
-
|
|
1517
|
-
var css$X = {"uui-typography":"_0ccqKC","hero-header":"KckQiI","promo-header":"KxKPiL","uui-critical":"k1dXpL","uui-info":"zMB1fH","uui-success":"SUU4Hp","uui-warning":"pNaUE-","uui-highlight":"UfmBTR","uui-typography-size-12":"ywb3fi","uui-typography-size-14":"_4FQGnt","uui-typography-size-16":"_7NAAYY","root":"ckpq2c","modal-blocker":"axZzJa","animateModalBlocker":"X6GbLJ","modal":"ICz2Zj","modal-footer":"y8VUNA","modal-header":"r-aW-Z","uuiTypography":"_0ccqKC","heroHeader":"KckQiI","promoHeader":"KxKPiL","uuiCritical":"k1dXpL","uuiInfo":"zMB1fH","uuiSuccess":"SUU4Hp","uuiWarning":"pNaUE-","uuiHighlight":"UfmBTR","uuiTypographySize12":"ywb3fi","uuiTypographySize14":"_4FQGnt","uuiTypographySize16":"_7NAAYY","modalBlocker":"axZzJa","modalFooter":"y8VUNA","modalHeader":"r-aW-Z"};
|
|
1501
|
+
var css$$ = {"uui-typography":"UaIBUQ","uuiTypography":"UaIBUQ","hero-header":"sRZEB-","heroHeader":"sRZEB-","promo-header":"_1qaTh4","promoHeader":"_1qaTh4","uui-critical":"ritavP","uuiCritical":"ritavP","uui-info":"l4a7h7","uuiInfo":"l4a7h7","uui-success":"visifc","uuiSuccess":"visifc","uui-warning":"z-p6-W","uuiWarning":"z-p6-W","uui-highlight":"BHcj6q","uuiHighlight":"BHcj6q","uui-typography-size-12":"_-72Rmn","uuiTypographySize12":"_-72Rmn","uui-typography-size-14":"_5O-JG6","uuiTypographySize14":"_5O-JG6","uui-typography-size-16":"bro--i","uuiTypographySize16":"bro--i","root":"-kSY4W","modal-blocker":"_99CSq4","modalBlocker":"_99CSq4","animateModalBlocker":"kOiL-t","modal":"LrQl-R","modal-footer":"qOnsCD","modalFooter":"qOnsCD","modal-header":"uGoT73","modalHeader":"uGoT73"};
|
|
1518
1502
|
|
|
1519
|
-
const ModalBlocker = /* @__PURE__ */withMods(ModalBlocker$1, () => [css
|
|
1520
|
-
const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css
|
|
1503
|
+
const ModalBlocker = /* @__PURE__ */withMods(ModalBlocker$1, () => [css$$.modalBlocker]);
|
|
1504
|
+
const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css$$.root, css$$.modal], (props) => {
|
|
1521
1505
|
const width = props.width || settings.sizes.modal.window.defaults.width;
|
|
1522
1506
|
const height = props.height || 'auto';
|
|
1523
1507
|
const maxHeight = isMobile() ? '100dvh' : (props.maxHeight || '80dvh');
|
|
@@ -1529,19 +1513,19 @@ const ModalWindow = /* @__PURE__ */withMods(ModalWindow$1, () => [css$X.root, cs
|
|
|
1529
1513
|
});
|
|
1530
1514
|
class ModalHeader extends React__default.Component {
|
|
1531
1515
|
render() {
|
|
1532
|
-
return (React__default.createElement(FlexRow, { padding: this.props.padding || '24', vPadding: "
|
|
1533
|
-
this.props.title && (React__default.createElement(
|
|
1516
|
+
return (React__default.createElement(FlexRow, { padding: this.props.padding || '24', size: null, vPadding: "36", borderBottom: this.props.borderBottom, cx: [css$$.root, css$$.modalHeader, this.props.cx], columnGap: "12", rawProps: this.props.rawProps },
|
|
1517
|
+
this.props.title && (React__default.createElement("div", { className: cx('uui-modal-title', 'uui-typography') }, this.props.title)),
|
|
1534
1518
|
this.props.children,
|
|
1535
1519
|
this.props.onClose && React__default.createElement(FlexSpacer, null),
|
|
1536
1520
|
this.props.onClose && (React__default.createElement(FlexCell, { shrink: 0, width: "auto" },
|
|
1537
|
-
React__default.createElement(IconButton, { rawProps: { 'aria-label': 'Close modal' }, icon: ForwardRef$
|
|
1521
|
+
React__default.createElement(IconButton, { rawProps: { 'aria-label': 'Close modal' }, icon: ForwardRef$R, onClick: this.props.onClose })))));
|
|
1538
1522
|
}
|
|
1539
1523
|
}
|
|
1540
1524
|
class ModalFooter extends React__default.Component {
|
|
1541
1525
|
render() {
|
|
1542
1526
|
return (React__default.createElement(FlexRow, { columnGap: this.props.columnGap || '12', cx: [
|
|
1543
|
-
css
|
|
1544
|
-
css
|
|
1527
|
+
css$$.root,
|
|
1528
|
+
css$$.modalFooter,
|
|
1545
1529
|
this.props.cx,
|
|
1546
1530
|
], borderTop: this.props.borderTop, padding: this.props.padding || '24', vPadding: this.props.vPadding || '24', rawProps: this.props.rawProps }, this.props.children));
|
|
1547
1531
|
}
|
|
@@ -1685,25 +1669,26 @@ const TREE_SHAKEABLE_INIT = () => (Object.assign(Object.assign({}, i18n$1), { da
|
|
|
1685
1669
|
subtitle: 'We are trying to recover. Please wait.',
|
|
1686
1670
|
},
|
|
1687
1671
|
},
|
|
1672
|
+
supportLink: undefined,
|
|
1688
1673
|
} }));
|
|
1689
1674
|
const i18n = /* @__PURE__ */TREE_SHAKEABLE_INIT();
|
|
1690
1675
|
|
|
1691
|
-
var _path$
|
|
1692
|
-
function _extends$
|
|
1676
|
+
var _path$u;
|
|
1677
|
+
function _extends$u() { _extends$u = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$u.apply(this, arguments); }
|
|
1693
1678
|
var SvgNotificationHelpFill = function SvgNotificationHelpFill(props, ref) {
|
|
1694
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
1679
|
+
return /*#__PURE__*/React.createElement("svg", _extends$u({
|
|
1695
1680
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1696
1681
|
width: 24,
|
|
1697
1682
|
height: 24,
|
|
1698
1683
|
viewBox: "0 0 24 24",
|
|
1699
1684
|
ref: ref
|
|
1700
|
-
}, props), _path$
|
|
1685
|
+
}, props), _path$u || (_path$u = /*#__PURE__*/React.createElement("path", {
|
|
1701
1686
|
d: "M11.95 18c.35 0 .646-.121.888-.363.241-.241.362-.537.362-.887s-.12-.646-.362-.887a1.208 1.208 0 0 0-.888-.363c-.35 0-.646.121-.888.363a1.206 1.206 0 0 0-.362.887c0 .35.12.646.362.887.242.242.538.363.888.363zm-.9-3.85h1.85c0-.55.063-.983.188-1.3.125-.317.479-.75 1.062-1.3a7.483 7.483 0 0 0 1.025-1.238c.25-.391.375-.862.375-1.412 0-.933-.342-1.65-1.025-2.15-.683-.5-1.492-.75-2.425-.75-.95 0-1.72.25-2.312.75-.592.5-1.005 1.1-1.238 1.8l1.65.65c.083-.3.271-.625.563-.975.291-.35.737-.525 1.337-.525.533 0 .933.146 1.2.437.267.292.4.613.4.963 0 .333-.1.646-.3.937-.2.292-.45.563-.75.813-.733.65-1.183 1.142-1.35 1.475-.167.333-.25.942-.25 1.825zM12 22a9.733 9.733 0 0 1-3.9-.788 10.092 10.092 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.733 9.733 0 0 1 2 12a9.74 9.74 0 0 1 .788-3.9 10.092 10.092 0 0 1 2.137-3.175c.9-.9 1.958-1.613 3.175-2.138A9.743 9.743 0 0 1 12 2a9.74 9.74 0 0 1 3.9.787 10.105 10.105 0 0 1 3.175 2.138c.9.9 1.612 1.958 2.137 3.175A9.733 9.733 0 0 1 22 12a9.733 9.733 0 0 1-.788 3.9 10.092 10.092 0 0 1-2.137 3.175c-.9.9-1.958 1.612-3.175 2.137A9.733 9.733 0 0 1 12 22z"
|
|
1702
1687
|
})));
|
|
1703
1688
|
};
|
|
1704
|
-
var ForwardRef$
|
|
1689
|
+
var ForwardRef$u = /*#__PURE__*/forwardRef(SvgNotificationHelpFill);
|
|
1705
1690
|
|
|
1706
|
-
var css$
|
|
1691
|
+
var css$_ = {"uui-typography":"A5tu7D","uuiTypography":"A5tu7D","hero-header":"L81i-W","heroHeader":"L81i-W","promo-header":"-lcIHf","promoHeader":"-lcIHf","uui-critical":"xDPYKS","uuiCritical":"xDPYKS","uui-info":"u0qM5m","uuiInfo":"u0qM5m","uui-success":"_9Wrvtc","uuiSuccess":"_9Wrvtc","uui-warning":"OJqCa5","uuiWarning":"OJqCa5","uui-highlight":"QnwZPs","uuiHighlight":"QnwZPs","uui-typography-size-12":"JOesrW","uuiTypographySize12":"JOesrW","uui-typography-size-14":"k-c5Tm","uuiTypographySize14":"k-c5Tm","uui-typography-size-16":"jPYlP-","uuiTypographySize16":"jPYlP-","root":"D7WfYa","icon-wrapper":"ZZuDTA","iconWrapper":"ZZuDTA","action-wrapper":"_2d1DXy","actionWrapper":"_2d1DXy","action-link":"YUzqpB","actionLink":"YUzqpB","close-icon":"qPgvcV","closeIcon":"qPgvcV","main-path":"DuLD-F","mainPath":"DuLD-F","content":"_7jLtE6","close-wrapper":"J6L7LQ","closeWrapper":"J6L7LQ","notification-wrapper":"aMcumV","notificationWrapper":"aMcumV","clear-button":"ghlGxR","clearButton":"ghlGxR"};
|
|
1707
1692
|
|
|
1708
1693
|
const NotificationCard = /* @__PURE__ */React__default.forwardRef((props, ref) => {
|
|
1709
1694
|
const notificationCardNode = React__default.useRef(null);
|
|
@@ -1718,27 +1703,27 @@ const NotificationCard = /* @__PURE__ */React__default.forwardRef((props, ref) =
|
|
|
1718
1703
|
(_b = notificationCardNode.current) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseleave', props.refreshTimer);
|
|
1719
1704
|
};
|
|
1720
1705
|
}, []);
|
|
1721
|
-
return (React__default.createElement("div", Object.assign({ role: "alert", className: cx('uui-notification_card', props.color && `uui-color-${props.color}`, css$
|
|
1722
|
-
React__default.createElement("div", { className: css$
|
|
1723
|
-
props.icon && (React__default.createElement("div", { className: css$
|
|
1706
|
+
return (React__default.createElement("div", Object.assign({ role: "alert", className: cx('uui-notification_card', props.color && `uui-color-${props.color}`, css$_.root, props.cx), ref: notificationCardNode }, props.rawProps),
|
|
1707
|
+
React__default.createElement("div", { className: css$_.mainPath },
|
|
1708
|
+
props.icon && (React__default.createElement("div", { className: css$_.iconWrapper },
|
|
1724
1709
|
React__default.createElement(IconContainer, { size: 24, icon: props.icon }))),
|
|
1725
|
-
React__default.createElement("div", { className: css$
|
|
1710
|
+
React__default.createElement("div", { className: css$_.content },
|
|
1726
1711
|
props.children,
|
|
1727
|
-
props.actions && (React__default.createElement("div", { className: css$
|
|
1728
|
-
props.onClose && (React__default.createElement("div", { className: css$
|
|
1729
|
-
React__default.createElement(IconButton, { icon: ForwardRef$
|
|
1712
|
+
props.actions && (React__default.createElement("div", { className: css$_.actionWrapper }, props.actions.map((action) => (React__default.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$_.actionLink, size: "36", rawProps: action.rawProps })))))),
|
|
1713
|
+
props.onClose && (React__default.createElement("div", { className: css$_.closeWrapper },
|
|
1714
|
+
React__default.createElement(IconButton, { icon: ForwardRef$R, color: "neutral", onClick: props.onClose, cx: css$_.closeIcon }))))));
|
|
1730
1715
|
});
|
|
1731
|
-
const WarningNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
1732
|
-
const SuccessNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
1733
|
-
const HintNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
1734
|
-
const ErrorNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
1716
|
+
const WarningNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$z, color: "warning" }, props, { ref: ref, cx: props.cx }))));
|
|
1717
|
+
const SuccessNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$A, color: "success" }, props, { ref: ref, cx: props.cx }))));
|
|
1718
|
+
const HintNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$u, color: "info" }, props, { ref: ref, cx: props.cx }))));
|
|
1719
|
+
const ErrorNotification = /* @__PURE__ */React__default.forwardRef((props, ref) => (React__default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$y, color: "error" }, props, { ref: ref, cx: props.cx }))));
|
|
1735
1720
|
function ClearNotification() {
|
|
1736
1721
|
const uuiCtx = useUuiContext();
|
|
1737
|
-
return (React__default.createElement("div", { className: cx(css$
|
|
1722
|
+
return (React__default.createElement("div", { className: cx(css$_.notificationWrapper, css$_.clearButton) },
|
|
1738
1723
|
React__default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => uuiCtx.uuiNotifications.clearAll() })));
|
|
1739
1724
|
}
|
|
1740
1725
|
|
|
1741
|
-
var css$
|
|
1726
|
+
var css$Z = {"footer":"v5gs-u"};
|
|
1742
1727
|
|
|
1743
1728
|
class ConfirmationModal extends React.Component {
|
|
1744
1729
|
render() {
|
|
@@ -1750,7 +1735,7 @@ class ConfirmationModal extends React.Component {
|
|
|
1750
1735
|
React.createElement(ModalWindow, { width: 420 },
|
|
1751
1736
|
React.createElement(ModalHeader, { borderBottom: true, title: this.props.caption, onClose: () => this.props.abort() }),
|
|
1752
1737
|
React.createElement(ScrollBars, null, bodyContent),
|
|
1753
|
-
React.createElement(ModalFooter, { cx: css$
|
|
1738
|
+
React.createElement(ModalFooter, { cx: css$Z.footer },
|
|
1754
1739
|
this.props.hideCancelButton || (React.createElement(Button, { caption: i18n.form.modals.discardButton, onClick: () => this.props.success(false), fill: "outline", color: "secondary" })),
|
|
1755
1740
|
React.createElement(Button, { caption: i18n.form.modals.saveButton, onClick: () => this.props.success(true), color: "primary" })))));
|
|
1756
1741
|
}
|
|
@@ -1780,7 +1765,7 @@ function useReliableForceUpdate() {
|
|
|
1780
1765
|
return red[1];
|
|
1781
1766
|
}
|
|
1782
1767
|
|
|
1783
|
-
var css$
|
|
1768
|
+
var css$Y = {"root":"MZSjfy","timepicker-input":"Ywx66E","timepickerInput":"Ywx66E","ltr-always":"C697kO","ltrAlways":"C697kO"};
|
|
1784
1769
|
|
|
1785
1770
|
const uuiTimePicker = {
|
|
1786
1771
|
container: 'uui-timepicker-container',
|
|
@@ -1819,23 +1804,23 @@ function TimePickerBody(props) {
|
|
|
1819
1804
|
const minutesToSubtract = value.minute() % minutesStep === 0 ? minutesStep : value.minute() % minutesStep;
|
|
1820
1805
|
onMinutesChange(value.subtract(minutesToSubtract, 'm').minute());
|
|
1821
1806
|
};
|
|
1822
|
-
return (React.createElement("div", Object.assign({ className: cx$1(css$
|
|
1823
|
-
React.createElement("div", { className: css$
|
|
1807
|
+
return (React.createElement("div", Object.assign({ className: cx$1(css$Y.root, uuiTimePicker.container, props.cx), ref: props.forwardedRef }, props.rawProps),
|
|
1808
|
+
React.createElement("div", { className: css$Y.ltrAlways },
|
|
1824
1809
|
React.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
1825
|
-
React.createElement(IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment hours' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$
|
|
1810
|
+
React.createElement(IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment hours' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$Q, onClick: () => onHoursChange(uuiDayjs.dayjs().set(props.value).add(1, 'h').hour()) }),
|
|
1826
1811
|
React.createElement(NumericInput$1, { cx: uuiTimePicker.input, onValueChange: onHoursChange, value: +(uuiDayjs.dayjs()
|
|
1827
1812
|
.set(props.value)
|
|
1828
1813
|
.format(MAX_HOURS === FORMAT_12H ? 'hh' : 'HH')), min: MIN_HOURS, max: MAX_HOURS }),
|
|
1829
|
-
React.createElement(IconContainer, { size: 18, rawProps: { 'aria-label': 'Decrement hours' }, cx: uuiTimePicker.iconDown, icon: ForwardRef$
|
|
1814
|
+
React.createElement(IconContainer, { size: 18, rawProps: { 'aria-label': 'Decrement hours' }, cx: uuiTimePicker.iconDown, icon: ForwardRef$Q, onClick: () => onHoursChange(uuiDayjs.dayjs().set(props.value).subtract(1, 'h').hour()) })),
|
|
1830
1815
|
React.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
1831
|
-
React.createElement(IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment minutes' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$
|
|
1816
|
+
React.createElement(IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment minutes' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$Q, onClick: handleMinutesUpClick }),
|
|
1832
1817
|
React.createElement(NumericInput$1, { cx: uuiTimePicker.input, onValueChange: onMinutesChange, value: +uuiDayjs.dayjs().set(props.value).format('m'), min: MIN_MINUTES, max: MAX_MINUTES }),
|
|
1833
|
-
React.createElement(IconContainer, { size: 18, rawProps: { 'aria-label': 'Decrement minutes' }, cx: uuiTimePicker.iconDown, icon: ForwardRef$
|
|
1818
|
+
React.createElement(IconContainer, { size: 18, rawProps: { 'aria-label': 'Decrement minutes' }, cx: uuiTimePicker.iconDown, icon: ForwardRef$Q, onClick: handleMinutesDownClick }))),
|
|
1834
1819
|
MAX_HOURS === FORMAT_12H && (React.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
1835
|
-
React.createElement(IconContainer, { size: 18, cx: uuiTimePicker.iconUp, icon: ForwardRef$
|
|
1820
|
+
React.createElement(IconContainer, { size: 18, cx: uuiTimePicker.iconUp, icon: ForwardRef$Q, onClick: onTimeTypeChange }),
|
|
1836
1821
|
React.createElement(TextInput$1, { cx: uuiTimePicker.input, onValueChange: () => {
|
|
1837
1822
|
}, isReadonly: true, value: uuiDayjs.dayjs().set(props.value).format('A') }),
|
|
1838
|
-
React.createElement(IconContainer, { size: 18, cx: uuiTimePicker.iconDown, icon: ForwardRef$
|
|
1823
|
+
React.createElement(IconContainer, { size: 18, cx: uuiTimePicker.iconDown, icon: ForwardRef$Q, onClick: onTimeTypeChange })))));
|
|
1839
1824
|
}
|
|
1840
1825
|
|
|
1841
1826
|
const getMeridian = (newValue, format) => {
|
|
@@ -1962,7 +1947,7 @@ function TimePicker(props) {
|
|
|
1962
1947
|
};
|
|
1963
1948
|
const renderInput = (inputProps) => {
|
|
1964
1949
|
var _a;
|
|
1965
|
-
return (React__default.createElement(TextInput, Object.assign({}, inputProps, { onClick: null, size: props.size || '36', isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, cx: [css$
|
|
1950
|
+
return (React__default.createElement(TextInput, Object.assign({}, inputProps, { onClick: null, size: props.size || '36', isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, cx: [css$Y.root, css$Y.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: (_a = props.rawProps) === null || _a === void 0 ? void 0 : _a.input })));
|
|
1966
1951
|
};
|
|
1967
1952
|
const renderBody = (bodyProps) => {
|
|
1968
1953
|
var _a;
|
|
@@ -1973,22 +1958,52 @@ function TimePicker(props) {
|
|
|
1973
1958
|
return (React__default.createElement(Dropdown, { renderTarget: (targetProps) => (props.renderTarget ? props.renderTarget(targetProps) : renderInput(targetProps)), renderBody: (bodyProps) => !props.isDisabled && !props.isReadonly && renderBody(bodyProps), onValueChange: !props.isDisabled && !props.isReadonly ? onToggle : null, value: state.isOpen, modifiers: [{ name: 'offset', options: { offset: [0, 6] } }], forwardedRef: props.forwardedRef }));
|
|
1974
1959
|
}
|
|
1975
1960
|
|
|
1976
|
-
var css$
|
|
1961
|
+
var css$X = {"root":"g0x9XC"};
|
|
1977
1962
|
|
|
1978
1963
|
function applyInputAddonMods() {
|
|
1979
1964
|
return [
|
|
1980
|
-
css$
|
|
1965
|
+
css$X.root,
|
|
1981
1966
|
];
|
|
1982
1967
|
}
|
|
1983
1968
|
const InputAddon = /* @__PURE__ */withMods(InputAddon$1, applyInputAddonMods);
|
|
1984
1969
|
|
|
1985
|
-
var css$
|
|
1970
|
+
var css$W = {"root":"_5ewzvx"};
|
|
1986
1971
|
|
|
1987
1972
|
function applySliderMods() {
|
|
1988
|
-
return [css$
|
|
1973
|
+
return [css$W.root, 'uui-color-neutral'];
|
|
1989
1974
|
}
|
|
1990
1975
|
const Slider = /* @__PURE__ */withMods(Slider$1, applySliderMods);
|
|
1991
1976
|
|
|
1977
|
+
var _path$t;
|
|
1978
|
+
function _extends$t() { _extends$t = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$t.apply(this, arguments); }
|
|
1979
|
+
var SvgStarFilled = function SvgStarFilled(props, ref) {
|
|
1980
|
+
return /*#__PURE__*/React.createElement("svg", _extends$t({
|
|
1981
|
+
width: 24,
|
|
1982
|
+
height: 24,
|
|
1983
|
+
viewBox: "0 0 24 24",
|
|
1984
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1985
|
+
ref: ref
|
|
1986
|
+
}, props), _path$t || (_path$t = /*#__PURE__*/React.createElement("path", {
|
|
1987
|
+
fillRule: "evenodd",
|
|
1988
|
+
d: "M8.917 8.268 12.01 2l3.093 6.268 6.917 1.005-5.005 4.878 1.182 6.889-6.187-3.252-6.186 3.252 1.181-6.889L2 9.273z"
|
|
1989
|
+
})));
|
|
1990
|
+
};
|
|
1991
|
+
var ForwardRef$t = /*#__PURE__*/forwardRef(SvgStarFilled);
|
|
1992
|
+
|
|
1993
|
+
var css$V = {"root":"_5hi37a","tooltip":"GUohZm"};
|
|
1994
|
+
|
|
1995
|
+
function applyRatingMods(mods) {
|
|
1996
|
+
return [
|
|
1997
|
+
css$V.root,
|
|
1998
|
+
`uui-size-${mods.size || settings.sizes.defaults.rating}`,
|
|
1999
|
+
];
|
|
2000
|
+
}
|
|
2001
|
+
const Rating = /* @__PURE__ */withMods(uuiComponents.Rating, applyRatingMods, (props) => ({
|
|
2002
|
+
filledStarIcon: props.icon || ForwardRef$t,
|
|
2003
|
+
emptyStarIcon: props.icon || ForwardRef$t,
|
|
2004
|
+
Tooltip,
|
|
2005
|
+
}));
|
|
2006
|
+
|
|
1992
2007
|
const defaultFormat = 'MMM D, YYYY';
|
|
1993
2008
|
const valueFormat = 'YYYY-MM-DD';
|
|
1994
2009
|
const supportedDateFormats = (format) => {
|
|
@@ -2117,7 +2132,7 @@ const getNextYearsList = (currentDate) => {
|
|
|
2117
2132
|
return currentDate.add(16, 'year');
|
|
2118
2133
|
};
|
|
2119
2134
|
|
|
2120
|
-
var css$
|
|
2135
|
+
var css$U = {"root":"IKlpq1","container":"_4OuiG1"};
|
|
2121
2136
|
|
|
2122
2137
|
const uuiHeader = {
|
|
2123
2138
|
container: 'uui-datepicker-header-container',
|
|
@@ -2194,21 +2209,21 @@ function DatePickerHeader({ navIconLeft, navIconRight, value: { month, view }, o
|
|
|
2194
2209
|
}, [view, month]);
|
|
2195
2210
|
const disablePrev = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getPrevYearsList(month));
|
|
2196
2211
|
const disableNext = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getNextYearsList(month));
|
|
2197
|
-
return (React.createElement("div", { className: cx(css$
|
|
2212
|
+
return (React.createElement("div", { className: cx(css$U.root, uuiHeader.container, cx) },
|
|
2198
2213
|
React.createElement("header", { className: uuiHeader.headerNav },
|
|
2199
|
-
React.createElement(Button, { icon: navIconLeft || ForwardRef$
|
|
2214
|
+
React.createElement(Button, { icon: navIconLeft || ForwardRef$w, color: "secondary", fill: "ghost", cx: uuiHeader.navIconLeft, onClick: !isDisabled && (() => onLeftNavigationArrow()), isDisabled: disablePrev }),
|
|
2200
2215
|
React.createElement(Button, { caption: title, fill: "ghost", cx: uuiHeader.navTitle, onClick: !isDisabled && (() => onCaptionClick(view)) }),
|
|
2201
|
-
React.createElement(Button, { icon: navIconRight || ForwardRef$
|
|
2216
|
+
React.createElement(Button, { icon: navIconRight || ForwardRef$v, color: "secondary", fill: "ghost", cx: uuiHeader.navIconRight, onClick: !isDisabled && (() => onRightNavigationArrow()), isDisabled: disableNext }))));
|
|
2202
2217
|
}
|
|
2203
2218
|
|
|
2204
|
-
var css$
|
|
2219
|
+
var css$T = {"uui-typography":"ukdbDq","uuiTypography":"ukdbDq","hero-header":"fofNhS","heroHeader":"fofNhS","promo-header":"_0TJIS4","promoHeader":"_0TJIS4","uui-critical":"vF2pMi","uuiCritical":"vF2pMi","uui-info":"QPuwnb","uuiInfo":"QPuwnb","uui-success":"OEMrlw","uuiSuccess":"OEMrlw","uui-warning":"HhTDIE","uuiWarning":"HhTDIE","uui-highlight":"n-GkuB","uuiHighlight":"n-GkuB","uui-typography-size-12":"L-L-OZ","uuiTypographySize12":"L-L-OZ","uui-typography-size-14":"_1Kl-D3","uuiTypographySize14":"_1Kl-D3","uui-typography-size-16":"IhyvaD","uuiTypographySize16":"IhyvaD","root":"hrQw-Q"};
|
|
2205
2220
|
|
|
2206
2221
|
function applyDateSelectionMods() {
|
|
2207
|
-
return [css$
|
|
2222
|
+
return [css$T.root, `uui-size-${settings.sizes.defaults.datePicker}`];
|
|
2208
2223
|
}
|
|
2209
2224
|
const Calendar = /* @__PURE__ */withMods(Calendar$1, applyDateSelectionMods);
|
|
2210
2225
|
|
|
2211
|
-
var css$
|
|
2226
|
+
var css$S = {"uui-typography":"_0BWOnO","uuiTypography":"_0BWOnO","hero-header":"raqG7r","heroHeader":"raqG7r","promo-header":"tjN37K","promoHeader":"tjN37K","uui-critical":"D86bJe","uuiCritical":"D86bJe","uui-info":"_16yHJT","uuiInfo":"_16yHJT","uui-success":"_6aR253","uuiSuccess":"_6aR253","uui-warning":"_6PGLwV","uuiWarning":"_6PGLwV","uui-highlight":"uPDouR","uuiHighlight":"uPDouR","uui-typography-size-12":"CSZUAM","uuiTypographySize12":"CSZUAM","uui-typography-size-14":"_8EiyRK","uuiTypographySize14":"_8EiyRK","uui-typography-size-16":"H71U2a","uuiTypographySize16":"H71U2a","root":"_69hvHb"};
|
|
2212
2227
|
|
|
2213
2228
|
const uuiDatePickerBody = {
|
|
2214
2229
|
wrapper: 'uui-datepicker-body-wrapper',
|
|
@@ -2252,7 +2267,7 @@ function StatelessDatePickerBodyComp({ renderDay, isHoliday, cx: classes, filter
|
|
|
2252
2267
|
}
|
|
2253
2268
|
};
|
|
2254
2269
|
return (React__default.createElement("div", Object.assign({ ref: ref, className: cx$1(uuiDatePickerBodyBase.container, `uui-size-${settings.sizes.defaults.datePicker}`, classes) }, rawProps),
|
|
2255
|
-
React__default.createElement("div", { className: cx$1(css$
|
|
2270
|
+
React__default.createElement("div", { className: cx$1(css$S.root, uuiDatePickerBody.wrapper) },
|
|
2256
2271
|
React__default.createElement(DatePickerHeader, { value: {
|
|
2257
2272
|
view,
|
|
2258
2273
|
month,
|
|
@@ -2339,7 +2354,7 @@ function DatePickerComponent(props, ref) {
|
|
|
2339
2354
|
}
|
|
2340
2355
|
const DatePicker = /* @__PURE__ */React__default.forwardRef(DatePickerComponent);
|
|
2341
2356
|
|
|
2342
|
-
var css$
|
|
2357
|
+
var css$R = {"uui-typography":"MEYtbQ","uuiTypography":"MEYtbQ","hero-header":"p8HJo6","heroHeader":"p8HJo6","promo-header":"FPA5EF","promoHeader":"FPA5EF","uui-critical":"yHSQYb","uuiCritical":"yHSQYb","uui-info":"rBUs7Q","uuiInfo":"rBUs7Q","uui-success":"TFP57v","uuiSuccess":"TFP57v","uui-warning":"FR19rr","uuiWarning":"FR19rr","uui-highlight":"_8XmFSS","uuiHighlight":"_8XmFSS","uui-typography-size-12":"wIXixZ","uuiTypographySize12":"wIXixZ","uui-typography-size-14":"jQzdBc","uuiTypographySize14":"jQzdBc","uui-typography-size-16":"p8Gijh","uuiTypographySize16":"p8Gijh","date-input":"_1UznQZ","dateInput":"_1UznQZ","root":"_1W8igF","separator":"F3aMlS","mode-form":"qclRuX","modeForm":"qclRuX","mode-cell":"TfkzQo","modeCell":"TfkzQo"};
|
|
2343
2358
|
|
|
2344
2359
|
const RangeDatePickerInput = /* @__PURE__ */forwardRef(({ isDisabled, isInvalid, isReadonly, size, disableClear, rawProps, value, inFocus, format, onValueChange, onFocusInput, onBlurInput, onClick, getPlaceholder, filter, onKeyDown, id, cx: classes, }, ref) => {
|
|
2345
2360
|
const [inputValue, setInputValue] = useState(toCustomDateRangeFormat(value, format));
|
|
@@ -2373,15 +2388,15 @@ const RangeDatePickerInput = /* @__PURE__ */forwardRef(({ isDisabled, isInvalid,
|
|
|
2373
2388
|
const clearAllowed = !disableClear && inputValue.from && inputValue.to;
|
|
2374
2389
|
return (
|
|
2375
2390
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
2376
|
-
React__default.createElement("div", { ref: ref, className: cx$1(`uui-size-${size || settings.sizes.defaults.rangeDatePicker}`, 'uui-range-date-picker', classes, css$
|
|
2377
|
-
React__default.createElement(TextInput, { icon: systemIcons.calendar, cx: cx$1(css$
|
|
2378
|
-
React__default.createElement("div", { className: css$
|
|
2379
|
-
React__default.createElement(TextInput, { cx: cx$1(css$
|
|
2391
|
+
React__default.createElement("div", { ref: ref, className: cx$1(`uui-size-${size || settings.sizes.defaults.rangeDatePicker}`, 'uui-range-date-picker', classes, css$R.root, isDisabled && uuiMod.disabled, isReadonly && uuiMod.readonly, isInvalid && uuiMod.invalid, inFocus && uuiMod.focus), onKeyDown: onKeyDown },
|
|
2392
|
+
React__default.createElement(TextInput, { icon: systemIcons.calendar, cx: cx$1(css$R.dateInput, inFocus === 'from' && uuiMod.focus), size: size || settings.sizes.defaults.rangeDatePicker, 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 === null || rawProps === void 0 ? void 0 : rawProps.from, onClick: onClick, onKeyDown: onInputKeyDown, id: id }),
|
|
2393
|
+
React__default.createElement("div", { className: css$R.separator }),
|
|
2394
|
+
React__default.createElement(TextInput, { cx: cx$1(css$R.dateInput, inFocus === 'to' && uuiMod.focus), placeholder: getPlaceholder ? getPlaceholder('to') : i18n.rangeDatePicker.pickerPlaceholderTo, size: size || settings.sizes.defaults.rangeDatePicker, value: inputValue.to || undefined, onCancel: clearAllowed ? () => {
|
|
2380
2395
|
onValueChange(defaultRangeValue);
|
|
2381
2396
|
} : 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 === null || rawProps === void 0 ? void 0 : rawProps.to, onClick: onClick, onKeyDown: onInputKeyDown })));
|
|
2382
2397
|
});
|
|
2383
2398
|
|
|
2384
|
-
var css$
|
|
2399
|
+
var css$Q = {"uui-typography":"UfqYIe","uuiTypography":"UfqYIe","hero-header":"srO50g","heroHeader":"srO50g","promo-header":"NO-IpH","promoHeader":"NO-IpH","uui-critical":"_8LISMi","uuiCritical":"_8LISMi","uui-info":"dBWGtp","uuiInfo":"dBWGtp","uui-success":"vJGk3F","uuiSuccess":"vJGk3F","uui-warning":"w2vLvZ","uuiWarning":"w2vLvZ","uui-highlight":"iRR9yk","uuiHighlight":"iRR9yk","uui-typography-size-12":"-cBCkf","uuiTypographySize12":"-cBCkf","uui-typography-size-14":"_6461Rg","uuiTypographySize14":"_6461Rg","uui-typography-size-16":"fZvbX7","uuiTypographySize16":"fZvbX7","root":"_7-3BPP"};
|
|
2385
2400
|
|
|
2386
2401
|
const uuiPresets = {
|
|
2387
2402
|
container: 'uui-presets-container',
|
|
@@ -2392,12 +2407,12 @@ const getPresets = (presets) => {
|
|
|
2392
2407
|
return Object.keys(presets).map((key) => (Object.assign(Object.assign({}, presets[key].getRange()), { name: presets[key].name, key }))).sort((a, b) => a.order - b.order);
|
|
2393
2408
|
};
|
|
2394
2409
|
function CalendarPresets(props) {
|
|
2395
|
-
return (React.createElement("div", Object.assign({ ref: props.forwardedRef, className: cx$1(uuiPresets.container, css$
|
|
2410
|
+
return (React.createElement("div", Object.assign({ ref: props.forwardedRef, className: cx$1(uuiPresets.container, css$Q.root, props.cx) }, props.rawProps),
|
|
2396
2411
|
React.createElement("div", { className: uuiPresets.header }, "Presets"),
|
|
2397
2412
|
getPresets(props.presets).map((item) => (React.createElement(LinkButton, { key: item.key, caption: item.name, onClick: () => props.onPresetSet(item), size: "24" })))));
|
|
2398
2413
|
}
|
|
2399
2414
|
|
|
2400
|
-
var css$
|
|
2415
|
+
var css$P = {"uui-typography":"yZH0GN","uuiTypography":"yZH0GN","hero-header":"FHA4XR","heroHeader":"FHA4XR","promo-header":"_8-1z-r","promoHeader":"_8-1z-r","uui-critical":"cZBZ4M","uuiCritical":"cZBZ4M","uui-info":"DW75Wy","uuiInfo":"DW75Wy","uui-success":"rX9YL7","uuiSuccess":"rX9YL7","uui-warning":"ji3xE7","uuiWarning":"ji3xE7","uui-highlight":"pSo0ry","uuiHighlight":"pSo0ry","uui-typography-size-12":"EGOpXU","uuiTypographySize12":"EGOpXU","uui-typography-size-14":"Hct3C-","uuiTypographySize14":"Hct3C-","uui-typography-size-16":"GF9YN4","uuiTypographySize16":"GF9YN4","root":"-ILCul","container":"USeFWr","day-selection":"kd1-IV","daySelection":"kd1-IV","from-picker":"IK7Hp6","fromPicker":"IK7Hp6","to-picker":"ftcAfy","toPicker":"ftcAfy","bodes-wrapper":"UlgAo-","bodesWrapper":"UlgAo-","blocker":"xWRQgu"};
|
|
2401
2416
|
|
|
2402
2417
|
const uuiRangeDatePickerBody = {
|
|
2403
2418
|
inRange: 'uui-range-datepicker-in-range',
|
|
@@ -2538,21 +2553,21 @@ function RangeDatePickerBodyComp(props, ref) {
|
|
|
2538
2553
|
});
|
|
2539
2554
|
}, presets: presets })));
|
|
2540
2555
|
};
|
|
2541
|
-
return (React__default.createElement("div", Object.assign({ ref: ref, className: cx$1(css$
|
|
2542
|
-
React__default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$
|
|
2556
|
+
return (React__default.createElement("div", Object.assign({ ref: ref, className: cx$1(css$P.root, uuiDatePickerBodyBase.container, props.cx) }, props.rawProps),
|
|
2557
|
+
React__default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$P.daySelection, css$P.container], alignItems: "top" },
|
|
2543
2558
|
React__default.createElement(FlexCell, { width: "auto" },
|
|
2544
2559
|
React__default.createElement(FlexRow, null,
|
|
2545
|
-
React__default.createElement(FlexRow, { cx: css$
|
|
2546
|
-
React__default.createElement(StatelessDatePickerBody, Object.assign({ key: "date-picker-body-left", cx: cx$1(css$
|
|
2560
|
+
React__default.createElement(FlexRow, { cx: css$P.bodesWrapper, alignItems: "top" },
|
|
2561
|
+
React__default.createElement(StatelessDatePickerBody, Object.assign({ key: "date-picker-body-left", cx: cx$1(css$P.fromPicker) }, from, { onValueChange: (v) => onBodyValueChange(v, 'from'), onMonthChange: (m) => {
|
|
2547
2562
|
setMonth(m);
|
|
2548
2563
|
}, onViewChange: (v) => setView(v), filter: props.filter, isHoliday: props.isHoliday, renderDay: props.renderDay || renderDay, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'to' })),
|
|
2549
|
-
React__default.createElement(StatelessDatePickerBody, Object.assign({ key: "date-picker-body-right", cx: cx$1(css$
|
|
2564
|
+
React__default.createElement(StatelessDatePickerBody, Object.assign({ key: "date-picker-body-right", cx: cx$1(css$P.toPicker) }, to, { onValueChange: (v) => onBodyValueChange(v, 'to'), onMonthChange: (m) => {
|
|
2550
2565
|
setMonth(m.subtract(1, 'month'));
|
|
2551
2566
|
}, onViewChange: (v) => setView(v), filter: props.filter, renderDay: props.renderDay || renderDay, isHoliday: props.isHoliday, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'from' })),
|
|
2552
2567
|
view !== 'DAY_SELECTION' && (React__default.createElement("div", { style: {
|
|
2553
2568
|
left: activeMonth === 'from' ? '50%' : undefined,
|
|
2554
2569
|
right: activeMonth === 'to' ? '50%' : undefined,
|
|
2555
|
-
}, className: css$
|
|
2570
|
+
}, className: css$P.blocker }))),
|
|
2556
2571
|
props.presets && renderPresets(props.presets)),
|
|
2557
2572
|
props.renderFooter && props.renderFooter()))));
|
|
2558
2573
|
}
|
|
@@ -2572,7 +2587,7 @@ const getDayCX = (day, selectedDate) => {
|
|
|
2572
2587
|
return [cx$1(inRange && uuiRangeDatePickerBody.inRange, isFirst && uuiRangeDatePickerBody.firstDayInRangeWrapper, !inRange && isFirst && uuiRangeDatePickerBody.lastDayInRangeWrapper, isLast && uuiRangeDatePickerBody.lastDayInRangeWrapper, !inRange && isLast && uuiRangeDatePickerBody.firstDayInRangeWrapper, (dayValue === fromValue || dayValue === toValue) && uuiDaySelection.selectedDay)];
|
|
2573
2588
|
};
|
|
2574
2589
|
|
|
2575
|
-
var css$
|
|
2590
|
+
var css$O = {"dropdown-container":"A1mRtn","dropdownContainer":"A1mRtn"};
|
|
2576
2591
|
|
|
2577
2592
|
const modifiers = [{
|
|
2578
2593
|
name: 'offset',
|
|
@@ -2619,7 +2634,7 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
2619
2634
|
};
|
|
2620
2635
|
const renderBody = (renderProps) => {
|
|
2621
2636
|
var _a;
|
|
2622
|
-
return (React__default.createElement(DropdownContainer, Object.assign({}, renderProps, { cx: cx(css$
|
|
2637
|
+
return (React__default.createElement(DropdownContainer, Object.assign({}, renderProps, { cx: cx(css$O.dropdownContainer), shards: [targetRef], returnFocus: (node) => {
|
|
2623
2638
|
console.log('lock', node);
|
|
2624
2639
|
return true;
|
|
2625
2640
|
} }),
|
|
@@ -2649,22 +2664,66 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
2649
2664
|
}
|
|
2650
2665
|
const RangeDatePicker = /* @__PURE__ */React__default.forwardRef(RangeDatePickerComponent);
|
|
2651
2666
|
|
|
2652
|
-
var css$
|
|
2667
|
+
var css$N = {"root":"pJK5Jq","blocker":"zVrjNh","marker":"hwXqJt","top":"BLseOz","bottom":"PBzzta","left":"r7cKgi","right":"mzfXf4","inside":"aVNP1X"};
|
|
2653
2668
|
|
|
2654
2669
|
function DropMarker(props) {
|
|
2655
2670
|
return props.isDndInProgress
|
|
2656
2671
|
? (React.createElement(React.Fragment, null,
|
|
2657
|
-
props.enableBlocker && React.createElement("div", { className: css$
|
|
2672
|
+
props.enableBlocker && React.createElement("div", { className: css$N.blocker }),
|
|
2658
2673
|
React.createElement("div", { className: cx([
|
|
2659
|
-
css$
|
|
2660
|
-
css$
|
|
2661
|
-
css$
|
|
2674
|
+
css$N.root,
|
|
2675
|
+
css$N.marker,
|
|
2676
|
+
css$N[props.position],
|
|
2662
2677
|
props === null || props === void 0 ? void 0 : props.cx,
|
|
2663
2678
|
]) })))
|
|
2664
2679
|
: null;
|
|
2665
2680
|
}
|
|
2666
2681
|
|
|
2667
|
-
var css$
|
|
2682
|
+
var css$M = {"root":"evhtvL","line-height":"_184w2a","lineHeight":"_184w2a","font-size":"WlU92J","fontSize":"WlU92J"};
|
|
2683
|
+
|
|
2684
|
+
function applyTextMods(mods) {
|
|
2685
|
+
return [
|
|
2686
|
+
css$M.root,
|
|
2687
|
+
'uui-text',
|
|
2688
|
+
`uui-size-${mods.size || settings.sizes.defaults.text}`,
|
|
2689
|
+
(mods.size !== 'none' || mods.lineHeight) && css$M.lineHeight,
|
|
2690
|
+
(mods.size !== 'none' || mods.fontSize) && css$M.fontSize,
|
|
2691
|
+
`uui-color-${mods.color || 'primary'}`,
|
|
2692
|
+
`uui-font-weight-${mods.fontWeight || '400'}`,
|
|
2693
|
+
`uui-font-style-${mods.fontStyle || 'normal'}`,
|
|
2694
|
+
'uui-typography',
|
|
2695
|
+
];
|
|
2696
|
+
}
|
|
2697
|
+
const Text = /* @__PURE__ */withMods(uuiComponents.Text, applyTextMods, (props) => {
|
|
2698
|
+
var _a;
|
|
2699
|
+
const style = ((_a = props === null || props === void 0 ? void 0 : props.rawProps) === null || _a === void 0 ? void 0 : _a.style) || {};
|
|
2700
|
+
props.fontSize && (style['--uui-text-font-size'] = `${props.fontSize}px`);
|
|
2701
|
+
props.lineHeight && (style['--uui-text-line-height'] = `${props.lineHeight}px`);
|
|
2702
|
+
return {
|
|
2703
|
+
rawProps: Object.assign(Object.assign({}, props === null || props === void 0 ? void 0 : props.rawProps), { style: style }),
|
|
2704
|
+
};
|
|
2705
|
+
});
|
|
2706
|
+
|
|
2707
|
+
var css$L = {"root":"NH88VS","loading-word":"I9KNWr","loadingWord":"I9KNWr","animated-loading":"CBCaFX","animatedLoading":"CBCaFX","skeleton_loading":"Eu3w87","skeletonLoading":"Eu3w87"};
|
|
2708
|
+
|
|
2709
|
+
const TextPlaceholder = (props) => {
|
|
2710
|
+
const pattern = ' ';
|
|
2711
|
+
const text = React.useMemo(() => {
|
|
2712
|
+
const words = [];
|
|
2713
|
+
for (let i = 0; i < (props.wordsCount || 1); i++) {
|
|
2714
|
+
const lengthWord = Math.floor(Math.random() * 10 + 8);
|
|
2715
|
+
words.push(pattern.repeat(lengthWord));
|
|
2716
|
+
}
|
|
2717
|
+
return words;
|
|
2718
|
+
}, [props.wordsCount]);
|
|
2719
|
+
return (React.createElement("div", Object.assign({ "aria-busy": true, className: cx(css$L.root, 'uui-text-placeholder') }, props.rawProps), text.map((it, index) => (React.createElement("span", { key: index, className: cx([
|
|
2720
|
+
props.cx, css$L.loadingWord, !props.isNotAnimated && css$L.animatedLoading,
|
|
2721
|
+
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
2722
|
+
};
|
|
2723
|
+
|
|
2724
|
+
const RichTextView = /* @__PURE__ */withMods(uuiComponents.RichTextView, (mods) => ['uui-typography', `uui-typography-size-${mods.size || '14'}`]);
|
|
2725
|
+
|
|
2726
|
+
var css$K = {"uui-typography":"y-rFup","uuiTypography":"y-rFup","hero-header":"ZPE5wM","heroHeader":"ZPE5wM","promo-header":"YnoVWn","promoHeader":"YnoVWn","uui-critical":"N8yexm","uuiCritical":"N8yexm","uui-info":"W-HTf-","uuiInfo":"W-HTf-","uui-success":"DIIv1k","uuiSuccess":"DIIv1k","uui-warning":"F2Iqk4","uuiWarning":"F2Iqk4","uui-highlight":"KMB0Zf","uuiHighlight":"KMB0Zf","uui-typography-size-12":"_6SbfKb","uuiTypographySize12":"_6SbfKb","uui-typography-size-14":"Ad9b2k","uuiTypographySize14":"Ad9b2k","uui-typography-size-16":"UxTVQ2","uuiTypographySize16":"UxTVQ2","modal":"-Zk1C1","search-wrapper":"bylDi3","searchWrapper":"bylDi3","no-data":"-Kwjt-","noData":"-Kwjt-","type-search-to-load-size-24":"mYSL16","typeSearchToLoadSize24":"mYSL16"};
|
|
2668
2727
|
|
|
2669
2728
|
class DataPickerBody extends PickerBodyBase {
|
|
2670
2729
|
constructor() {
|
|
@@ -2683,7 +2742,7 @@ class DataPickerBody extends PickerBodyBase {
|
|
|
2683
2742
|
});
|
|
2684
2743
|
}
|
|
2685
2744
|
if (this.props.minCharsToSearch && search.length < this.props.minCharsToSearch) {
|
|
2686
|
-
return (React__default.createElement(FlexCell$1, { cx: css$
|
|
2745
|
+
return (React__default.createElement(FlexCell$1, { cx: css$K.noData, grow: 1, textAlign: "center" },
|
|
2687
2746
|
React__default.createElement(Text, { size: this.props.searchSize }, i18n.dataPickerBody.typeSearchToLoadMessage)));
|
|
2688
2747
|
}
|
|
2689
2748
|
if (this.props.rows.length === 0) {
|
|
@@ -2698,21 +2757,21 @@ class DataPickerBody extends PickerBodyBase {
|
|
|
2698
2757
|
}
|
|
2699
2758
|
// Default no record found message for 'NOT_FOUND' and "NO_RECORDS" reason
|
|
2700
2759
|
// TODO: make separate messages for 'NOT_FOUND' and "NO_RECORDS" reason
|
|
2701
|
-
return (React__default.createElement(FlexCell$1, { cx: css$
|
|
2760
|
+
return (React__default.createElement(FlexCell$1, { cx: css$K.noData, grow: 1, textAlign: "center" },
|
|
2702
2761
|
React__default.createElement(Text, { size: this.props.searchSize }, i18n.dataPickerBody.noRecordsMessage)));
|
|
2703
2762
|
}
|
|
2704
2763
|
}
|
|
2705
2764
|
render() {
|
|
2706
2765
|
const searchSize = this.getSearchSize();
|
|
2707
2766
|
return (React__default.createElement(React__default.Fragment, null,
|
|
2708
|
-
this.showSearch() && (React__default.createElement("div", { key: "search", className: css$
|
|
2767
|
+
this.showSearch() && (React__default.createElement("div", { key: "search", className: css$K.searchWrapper },
|
|
2709
2768
|
React__default.createElement(FlexCell$1, { grow: 1 },
|
|
2710
2769
|
React__default.createElement(SearchInput, Object.assign({ ref: this.searchRef, placeholder: i18n.dataPickerBody.searchPlaceholder }, this.searchLens.toProps(), { onKeyDown: this.searchKeyDown, size: searchSize, debounceDelay: this.props.searchDebounceDelay, rawProps: { dir: 'auto' } }))))),
|
|
2711
|
-
React__default.createElement(FlexRow, { key: "body", cx: cx$1('uui-picker_input-body', css$
|
|
2770
|
+
React__default.createElement(FlexRow, { key: "body", cx: cx$1('uui-picker_input-body', css$K[this.props.editMode], css$K[this.props.selectionMode]), rawProps: { style: { maxHeight: this.props.maxHeight, maxWidth: this.props.maxWidth } } }, this.props.rows.length > 0 ? (React__default.createElement(VirtualList, Object.assign({}, this.lens.toProps(), { rows: this.props.rows, rawProps: this.props.rawProps, rowsCount: this.props.rowsCount, isLoading: this.props.isReloading }))) : this.renderEmpty())));
|
|
2712
2771
|
}
|
|
2713
2772
|
}
|
|
2714
2773
|
|
|
2715
|
-
var css$
|
|
2774
|
+
var css$J = {"footer":"TgJGGD"};
|
|
2716
2775
|
|
|
2717
2776
|
function DataPickerFooterImpl(props) {
|
|
2718
2777
|
const { search, clearSelection, view, showSelected, selectionMode, isSearchTooShort, } = props;
|
|
@@ -2726,7 +2785,7 @@ function DataPickerFooterImpl(props) {
|
|
|
2726
2785
|
const isSearching = search === null || search === void 0 ? void 0 : search.length;
|
|
2727
2786
|
const hideFooter = isSearchTooShort || rowsCount === 0 || isSearching || (isSinglePicker && props.disableClear);
|
|
2728
2787
|
const showClear = !props.disableClear && (isSinglePicker ? true : (!view.selectAll || hasSelection));
|
|
2729
|
-
return !hideFooter && (React__default.createElement(FlexRow, { cx: css$
|
|
2788
|
+
return !hideFooter && (React__default.createElement(FlexRow, { cx: css$J.footer },
|
|
2730
2789
|
!isSinglePicker && (React__default.createElement(Switch, { size: settings.sizes.pickerInput.body.dropdown.footer.switch[props.size], value: showSelected.value, isDisabled: !hasSelection, onValueChange: showSelected.onValueChange, label: i18n.pickerInput.showOnlySelectedLabel })),
|
|
2731
2790
|
React__default.createElement(FlexSpacer, null),
|
|
2732
2791
|
React__default.createElement(FlexCell, { width: "auto", alignSelf: "center" },
|
|
@@ -2737,13 +2796,13 @@ function DataPickerFooterImpl(props) {
|
|
|
2737
2796
|
}
|
|
2738
2797
|
const DataPickerFooter = /* @__PURE__ */React__default.memo(DataPickerFooterImpl);
|
|
2739
2798
|
|
|
2740
|
-
var css$
|
|
2799
|
+
var css$I = {"header":"WYWC9u","title":"IqVcjn","close":"BcGvT1"};
|
|
2741
2800
|
|
|
2742
2801
|
const DataPickerHeaderImpl = (props) => {
|
|
2743
2802
|
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
2744
|
-
return (React__default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: css$
|
|
2745
|
-
React__default.createElement(Text, { size: settings.sizes.pickerInput.body.mobile.header.titleSize, cx: css$
|
|
2746
|
-
React__default.createElement(IconButton, { icon: ForwardRef$
|
|
2803
|
+
return (React__default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: css$I.header },
|
|
2804
|
+
React__default.createElement(Text, { size: settings.sizes.pickerInput.body.mobile.header.titleSize, cx: css$I.title }, title),
|
|
2805
|
+
React__default.createElement(IconButton, { icon: ForwardRef$R, onClick: () => { var _a; return (_a = props.close) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: css$I.close })));
|
|
2747
2806
|
};
|
|
2748
2807
|
const DataPickerHeader = /* @__PURE__ */React__default.memo(DataPickerHeaderImpl);
|
|
2749
2808
|
|
|
@@ -2762,7 +2821,7 @@ var SvgNotificationDoneFill = function SvgNotificationDoneFill(props, ref) {
|
|
|
2762
2821
|
};
|
|
2763
2822
|
var ForwardRef$s = /*#__PURE__*/forwardRef(SvgNotificationDoneFill);
|
|
2764
2823
|
|
|
2765
|
-
var css$
|
|
2824
|
+
var css$H = {"uui-typography":"K00gTh","uuiTypography":"K00gTh","hero-header":"CWgu3z","heroHeader":"CWgu3z","promo-header":"CLSAcN","promoHeader":"CLSAcN","uui-critical":"MVa9oJ","uuiCritical":"MVa9oJ","uui-info":"EzEBcf","uuiInfo":"EzEBcf","uui-success":"og104M","uuiSuccess":"og104M","uui-warning":"eaVsoi","uuiWarning":"eaVsoi","uui-highlight":"uh7nS0","uuiHighlight":"uh7nS0","uui-typography-size-12":"sqpz-f","uuiTypographySize12":"sqpz-f","uui-typography-size-14":"b72WqI","uuiTypographySize14":"b72WqI","uui-typography-size-16":"_2-uNs0","uuiTypographySize16":"_2-uNs0","root":"u0MDJ4","align-widgets-top":"_2kfsaO","alignWidgetsTop":"_2kfsaO","align-widgets-center":"S0bFue","alignWidgetsCenter":"S0bFue","icon-container":"lUSKP5","iconContainer":"lUSKP5","loading-cell":"Ghljvg","loadingCell":"Ghljvg","content-wrapper":"ikmInM","contentWrapper":"ikmInM","render-item":"CvnlzK","renderItem":"CvnlzK","icon-wrapper":"HOg4tb","iconWrapper":"HOg4tb","icon-default":"VZc2aD","iconDefault":"VZc2aD","selected-mark":"mlj-I8","selectedMark":"mlj-I8"};
|
|
2766
2825
|
|
|
2767
2826
|
function DataPickerCell(props) {
|
|
2768
2827
|
const ref = React.useRef();
|
|
@@ -2770,28 +2829,28 @@ function DataPickerCell(props) {
|
|
|
2770
2829
|
if (props.rowProps.isLoading) {
|
|
2771
2830
|
content = (
|
|
2772
2831
|
// remove `css.loadingCell` after` removing `margin: 0 3px 3px 0` from `TextPlaceholder` `loadingWord` class styles.
|
|
2773
|
-
React.createElement(Text, { key: "t", size: settings.sizes.pickerInput.body.dropdown.row.cell.text[props.size], cx: css$
|
|
2832
|
+
React.createElement(Text, { key: "t", size: settings.sizes.pickerInput.body.dropdown.row.cell.text[props.size], cx: css$H.loadingCell },
|
|
2774
2833
|
React.createElement(TextPlaceholder, null)));
|
|
2775
2834
|
}
|
|
2776
2835
|
else if (props.rowProps.isUnknown) {
|
|
2777
2836
|
content = (React.createElement(Text, { key: "t", size: settings.sizes.pickerInput.body.dropdown.row.cell.text[props.size] }, "Unknown"));
|
|
2778
2837
|
}
|
|
2779
2838
|
else {
|
|
2780
|
-
content = (React.createElement("div", { key: `${props.rowProps.id}`, className: css$
|
|
2839
|
+
content = (React.createElement("div", { key: `${props.rowProps.id}`, className: css$H.renderItem },
|
|
2781
2840
|
props.renderItem(props.rowProps.value, props.rowProps),
|
|
2782
2841
|
React.createElement(FlexSpacer, null),
|
|
2783
|
-
(props.rowProps.isChildrenSelected || props.rowProps.isSelected) && (React.createElement("div", { className: cx$1(css$
|
|
2784
|
-
React.createElement(IconContainer, { size: settings.sizes.pickerInput.body.dropdown.row.cell.icon[props.size], icon: settings.sizes.pickerInput.body.dropdown.row.cell.isBoldSelectionIcon[props.size] ? ForwardRef$s : ForwardRef$
|
|
2842
|
+
(props.rowProps.isChildrenSelected || props.rowProps.isSelected) && (React.createElement("div", { className: cx$1(css$H.iconWrapper, uuiMod.selected) },
|
|
2843
|
+
React.createElement(IconContainer, { size: settings.sizes.pickerInput.body.dropdown.row.cell.icon[props.size], icon: settings.sizes.pickerInput.body.dropdown.row.cell.isBoldSelectionIcon[props.size] ? ForwardRef$s : ForwardRef$P, cx: props.rowProps.isChildrenSelected ? css$H.iconDefault : css$H.selectedMark, rawProps: { 'aria-label': props.rowProps.isChildrenSelected
|
|
2785
2844
|
? 'Child is selected'
|
|
2786
2845
|
: 'Selected' } })))));
|
|
2787
2846
|
}
|
|
2788
|
-
const getWrappedContent = () => (React.createElement("div", { className: css$
|
|
2847
|
+
const getWrappedContent = () => (React.createElement("div", { className: css$H.contentWrapper }, content));
|
|
2789
2848
|
return (React.createElement(FlexCell, { ref: ref, grow: 1, width: 0, minWidth: 0, rawProps: { role: 'cell' }, cx: [
|
|
2790
|
-
css$
|
|
2849
|
+
css$H.root,
|
|
2791
2850
|
props.cx,
|
|
2792
2851
|
'data-picker-cell',
|
|
2793
2852
|
props.size && `uui-size-${props.size}`,
|
|
2794
|
-
css$
|
|
2853
|
+
css$H[`align-widgets-${props.alignActions || 'top'}`],
|
|
2795
2854
|
], style: props.padding && {
|
|
2796
2855
|
'--uui-data_picker_cell-horizontal-padding': `${props.padding}px`,
|
|
2797
2856
|
} },
|
|
@@ -2799,7 +2858,7 @@ function DataPickerCell(props) {
|
|
|
2799
2858
|
getWrappedContent()));
|
|
2800
2859
|
}
|
|
2801
2860
|
|
|
2802
|
-
var css$
|
|
2861
|
+
var css$G = {"uui-typography":"-EwErA","uuiTypography":"-EwErA","hero-header":"w33u-G","heroHeader":"w33u-G","promo-header":"u4T-39","promoHeader":"u4T-39","uui-critical":"BbYYm6","uuiCritical":"BbYYm6","uui-info":"hBPUIo","uuiInfo":"hBPUIo","uui-success":"G67--9","uuiSuccess":"G67--9","uui-warning":"PA5wmv","uuiWarning":"PA5wmv","uui-highlight":"p-HEC4","uuiHighlight":"p-HEC4","uui-typography-size-12":"_0HLnjQ","uuiTypographySize12":"_0HLnjQ","uui-typography-size-14":"eMH33m","uuiTypographySize14":"eMH33m","uui-typography-size-16":"ubYvBY","uuiTypographySize16":"ubYvBY","picker-row":"qAxx-u","pickerRow":"qAxx-u"};
|
|
2803
2862
|
|
|
2804
2863
|
class DataPickerRow extends React.Component {
|
|
2805
2864
|
constructor() {
|
|
@@ -2809,20 +2868,20 @@ class DataPickerRow extends React.Component {
|
|
|
2809
2868
|
};
|
|
2810
2869
|
}
|
|
2811
2870
|
render() {
|
|
2812
|
-
return (React.createElement(DataPickerRow$1, Object.assign({}, this.props, { cx: [css$
|
|
2871
|
+
return (React.createElement(DataPickerRow$1, Object.assign({}, this.props, { cx: [css$G.pickerRow, this.props.cx], renderContent: this.renderContent })));
|
|
2813
2872
|
}
|
|
2814
2873
|
}
|
|
2815
2874
|
|
|
2816
|
-
var css$
|
|
2875
|
+
var css$F = {"uui-typography":"aS7FW6","uuiTypography":"aS7FW6","hero-header":"_7GquDI","heroHeader":"_7GquDI","promo-header":"HwYvvy","promoHeader":"HwYvvy","uui-critical":"URvWOo","uuiCritical":"URvWOo","uui-info":"DTHFNn","uuiInfo":"DTHFNn","uui-success":"ObiCMg","uuiSuccess":"ObiCMg","uui-warning":"gq31NT","uuiWarning":"gq31NT","uui-highlight":"pcw7MA","uuiHighlight":"pcw7MA","uui-typography-size-12":"m5Y0i0","uuiTypographySize12":"m5Y0i0","uui-typography-size-14":"j1neW9","uuiTypographySize14":"j1neW9","uui-typography-size-16":"Br4rYQ","uuiTypographySize16":"Br4rYQ","done":"-kYvHL","container":"nIStzk"};
|
|
2817
2876
|
|
|
2818
2877
|
const PickerBodyMobileView = (props) => {
|
|
2819
2878
|
const isMobileView = isMobile();
|
|
2820
2879
|
const maxWidth = isMobileView ? 'auto' : props.maxWidth;
|
|
2821
2880
|
const maxHeight = isMobileView ? 'auto' : props.maxHeight;
|
|
2822
|
-
return (React__default.createElement(DropdownContainer, Object.assign({}, props, { maxWidth: maxWidth, maxHeight: maxHeight, cx: [css$
|
|
2881
|
+
return (React__default.createElement(DropdownContainer, Object.assign({}, props, { maxWidth: maxWidth, maxHeight: maxHeight, cx: [css$F.container, props.cx], autoFocus: true }),
|
|
2823
2882
|
isMobileView && React__default.createElement(DataPickerHeader, { title: props.title, close: props.onClose }),
|
|
2824
2883
|
props.children,
|
|
2825
|
-
isMobileView && React__default.createElement(LinkButton, { caption: i18n.pickerInput.doneButton, onClick: () => { var _a; return (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: css$
|
|
2884
|
+
isMobileView && React__default.createElement(LinkButton, { caption: i18n.pickerInput.doneButton, onClick: () => { var _a; return (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: css$F.done, size: settings.sizes.pickerInput.body.mobile.footer.linkButton })));
|
|
2826
2885
|
};
|
|
2827
2886
|
|
|
2828
2887
|
var _path$r, _path2$4;
|
|
@@ -2847,7 +2906,7 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
|
2847
2906
|
};
|
|
2848
2907
|
var ForwardRef$r = /*#__PURE__*/forwardRef(SvgSearchWithBackground);
|
|
2849
2908
|
|
|
2850
|
-
var css$
|
|
2909
|
+
var css$E = {"uui-typography":"vqv4WY","uuiTypography":"vqv4WY","hero-header":"N0UiFq","heroHeader":"N0UiFq","promo-header":"zWFjLe","promoHeader":"zWFjLe","uui-critical":"kB-H6r","uuiCritical":"kB-H6r","uui-info":"o4gmd1","uuiInfo":"o4gmd1","uui-success":"rjSAYb","uuiSuccess":"rjSAYb","uui-warning":"b5t-5g","uuiWarning":"b5t-5g","uui-highlight":"xEc9YH","uuiHighlight":"xEc9YH","uui-typography-size-12":"OacvH5","uuiTypographySize12":"OacvH5","uui-typography-size-14":"V2SBvN","uuiTypographySize14":"V2SBvN","uui-typography-size-16":"Zdm-BC","uuiTypographySize16":"Zdm-BC","sub-header-wrapper":"_9l1Eyu","subHeaderWrapper":"_9l1Eyu","switch":"w-ken5","no-found-modal-container":"XNM9Om","noFoundModalContainer":"XNM9Om","no-found-modal-container-icon":"gwD15N","noFoundModalContainerIcon":"gwD15N","no-found-modal-container-text":"zf3eye","noFoundModalContainerText":"zf3eye"};
|
|
2851
2910
|
|
|
2852
2911
|
const mergeHighlightRanges = (ranges) => {
|
|
2853
2912
|
const mergedRanges = [];
|
|
@@ -2914,7 +2973,7 @@ const getHighlightedSearchMatches = (str, search) => {
|
|
|
2914
2973
|
return getDecoratedText(str, ranges);
|
|
2915
2974
|
};
|
|
2916
2975
|
|
|
2917
|
-
var css$
|
|
2976
|
+
var css$D = {"root":"tEDNpE","column-gap":"ewMnYD","columnGap":"ewMnYD","multiline":"pY-mW8","text":"WyX3dn"};
|
|
2918
2977
|
|
|
2919
2978
|
function PickerItem(props) {
|
|
2920
2979
|
var _a;
|
|
@@ -2924,13 +2983,13 @@ function PickerItem(props) {
|
|
|
2924
2983
|
const { search } = (_a = props.dataSourceState) !== null && _a !== void 0 ? _a : {};
|
|
2925
2984
|
const title = highlightSearchMatches ? getHighlightedSearchMatches(props.title, search) : props.title;
|
|
2926
2985
|
const subtitle = highlightSearchMatches ? getHighlightedSearchMatches(props.subtitle, search) : props.subtitle;
|
|
2927
|
-
return (React.createElement(FlexCell, { width: "auto", cx: [css$
|
|
2928
|
-
React.createElement(FlexRow, { size: itemSize, cx: [isMultiline && css$
|
|
2986
|
+
return (React.createElement(FlexCell, { width: "auto", cx: [css$D.root, 'uui-typography', cx] },
|
|
2987
|
+
React.createElement(FlexRow, { size: itemSize, cx: [isMultiline && css$D.multiline, css$D.columnGap], rawProps: { style: { '--uui-picker_item-vertical-padding': `${settings.sizes.pickerInput.body.dropdown.row.cell.item.verticalPadding[itemSize]}px` } } },
|
|
2929
2988
|
avatarUrl && (React.createElement(Avatar, { isLoading: isLoading, img: avatarUrl, size: getAvatarSize(itemSize, isMultiline).toString() })),
|
|
2930
2989
|
icon && React.createElement(IconContainer, { icon: icon }),
|
|
2931
2990
|
React.createElement(FlexCell, { width: "auto" },
|
|
2932
|
-
title && (React.createElement(Text, { size: itemSize, cx: css$
|
|
2933
|
-
subtitle && (React.createElement(Text, { size: itemSize, color: isDisabled ? 'disabled' : 'secondary', cx: css$
|
|
2991
|
+
title && (React.createElement(Text, { size: itemSize, cx: css$D.text, color: isDisabled ? 'disabled' : 'primary' }, isLoading ? React.createElement(TextPlaceholder, { wordsCount: 2 }) : title)),
|
|
2992
|
+
subtitle && (React.createElement(Text, { size: itemSize, color: isDisabled ? 'disabled' : 'secondary', cx: css$D.text }, isLoading ? React.createElement(TextPlaceholder, { wordsCount: 2 }) : subtitle))))));
|
|
2934
2993
|
}
|
|
2935
2994
|
function getAvatarSize(size, isMultiline) {
|
|
2936
2995
|
return settings.sizes.pickerInput.body.dropdown.row.cell.item.avatar[isMultiline ? 'multiline' : 'rest'][size];
|
|
@@ -2964,17 +3023,17 @@ function PickerModal(props) {
|
|
|
2964
3023
|
React__default.createElement(Button, { color: "primary", caption: i18n.pickerModal.selectButton, onClick: () => props.success(selection) })));
|
|
2965
3024
|
};
|
|
2966
3025
|
const renderNotFound = () => {
|
|
2967
|
-
return props.renderNotFound ? (props.renderNotFound({ search: dataSourceState.search, onClose: () => props.success(null) })) : (React__default.createElement("div", { className: css$
|
|
2968
|
-
React__default.createElement(IconContainer, { cx: css$
|
|
2969
|
-
React__default.createElement(Text, { cx: css$
|
|
2970
|
-
React__default.createElement(Text, { cx: css$
|
|
3026
|
+
return props.renderNotFound ? (props.renderNotFound({ search: dataSourceState.search, onClose: () => props.success(null) })) : (React__default.createElement("div", { className: css$E.noFoundModalContainer },
|
|
3027
|
+
React__default.createElement(IconContainer, { cx: css$E.noFoundModalContainerIcon, icon: ForwardRef$r }),
|
|
3028
|
+
React__default.createElement(Text, { cx: css$E.noFoundModalContainerText, fontWeight: "600", fontSize: "16", lineHeight: "24", color: "primary", size: "36" }, i18n.dataPickerBody.noRecordsMessage),
|
|
3029
|
+
React__default.createElement(Text, { cx: css$E.noFoundModalContainerText, fontSize: "12", lineHeight: "18", color: "primary", size: "36" }, i18n.dataPickerBody.noRecordsSubTitle)));
|
|
2971
3030
|
};
|
|
2972
3031
|
const dataRows = getRows();
|
|
2973
3032
|
const rows = dataRows.map((row) => renderRow(row));
|
|
2974
3033
|
return (React__default.createElement(ModalBlocker, Object.assign({}, props),
|
|
2975
3034
|
React__default.createElement(ModalWindow, { width: 600, height: 700 },
|
|
2976
3035
|
React__default.createElement(ModalHeader, { title: props.caption || i18n.pickerModal.headerTitle, onClose: () => props.abort() }),
|
|
2977
|
-
React__default.createElement(FlexCell, { cx: css$
|
|
3036
|
+
React__default.createElement(FlexCell, { cx: css$E.subHeaderWrapper },
|
|
2978
3037
|
React__default.createElement(FlexRow, { vPadding: "24" },
|
|
2979
3038
|
React__default.createElement(SearchInput, Object.assign({}, dataSourceStateLens.prop('search').toProps(), { onKeyDown: (e) => handleDataSourceKeyboard({
|
|
2980
3039
|
value: getDataSourceState(),
|
|
@@ -2983,20 +3042,20 @@ function PickerModal(props) {
|
|
|
2983
3042
|
rows: dataRows,
|
|
2984
3043
|
searchPosition: 'body',
|
|
2985
3044
|
}, e), autoFocus: true, placeholder: i18n.pickerModal.searchPlaceholder, rawProps: { dir: 'auto' } }))),
|
|
2986
|
-
!isSingleSelect() && (React__default.createElement(Switch, Object.assign({ cx: css$
|
|
3045
|
+
!isSingleSelect() && (React__default.createElement(Switch, Object.assign({ cx: css$E.switch, size: "18" }, getFooterProps().showSelected, { isDisabled: view.getSelectedRowsCount() < 1, label: "Show only selected" }))),
|
|
2987
3046
|
props.renderFilter && React__default.createElement(FlexCell, { grow: 2 }, props.renderFilter(dataSourceStateLens.prop('filter').toProps()))),
|
|
2988
3047
|
React__default.createElement(DataPickerBody, Object.assign({}, getListProps(), { value: getDataSourceState(), onValueChange: handleDataSourceValueChange, search: dataSourceStateLens.prop('search').toProps(), showSearch: false, rows: rows, renderNotFound: renderNotFound, editMode: "modal" })),
|
|
2989
3048
|
React__default.createElement(ModalFooter, { padding: "24", vPadding: "24" }, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
|
|
2990
3049
|
}
|
|
2991
3050
|
|
|
2992
|
-
var css$
|
|
3051
|
+
var css$C = {"tooltip":"iPNJyX"};
|
|
2993
3052
|
|
|
2994
3053
|
const PickerTogglerTag = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
2995
3054
|
var _a;
|
|
2996
3055
|
const tagProps = Object.assign(Object.assign({}, props), { tabIndex: -1, size: settings.sizes.pickerInput.toggler.tag[props.size], caption: ((_a = props.rowProps) === null || _a === void 0 ? void 0 : _a.isLoading) ? React.createElement(TextPlaceholder, null) : props.caption });
|
|
2997
3056
|
if (props.isCollapsed) {
|
|
2998
3057
|
const collapsedRows = props.collapsedRows.map((row) => props.getName(row.value)).join(', ');
|
|
2999
|
-
return (React.createElement(Tooltip, { key: "selected", content: collapsedRows, closeDelay: 150, closeOnMouseLeave: "boundary", cx: css$
|
|
3058
|
+
return (React.createElement(Tooltip, { key: "selected", content: collapsedRows, closeDelay: 150, closeOnMouseLeave: "boundary", cx: css$C.tooltip },
|
|
3000
3059
|
React.createElement(Tag, Object.assign({ ref: ref, rawProps: { role: 'option' } }, tagProps))));
|
|
3001
3060
|
}
|
|
3002
3061
|
else {
|
|
@@ -3004,15 +3063,15 @@ const PickerTogglerTag = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
3004
3063
|
}
|
|
3005
3064
|
});
|
|
3006
3065
|
|
|
3007
|
-
var css$
|
|
3066
|
+
var css$B = {"uui-typography":"elgNOM","uuiTypography":"elgNOM","hero-header":"PLDfw0","heroHeader":"PLDfw0","promo-header":"_71BxwL","promoHeader":"_71BxwL","uui-critical":"Iw4mxU","uuiCritical":"Iw4mxU","uui-info":"KNy6ZS","uuiInfo":"KNy6ZS","uui-success":"kgzf1p","uuiSuccess":"kgzf1p","uui-warning":"pqMd2x","uuiWarning":"pqMd2x","uui-highlight":"Ia04tO","uuiHighlight":"Ia04tO","uui-typography-size-12":"_2kPl7M","uuiTypographySize12":"_2kPl7M","uui-typography-size-14":"Ns9pH5","uuiTypographySize14":"Ns9pH5","uui-typography-size-16":"G2p6GC","uuiTypographySize16":"G2p6GC","root":"MAgHLa","mode-form":"KYaJW4","modeForm":"KYaJW4","mode-cell":"wAhF0l","modeCell":"wAhF0l","mode-inline":"LEr3uB","modeInline":"LEr3uB"};
|
|
3008
3067
|
|
|
3009
3068
|
const defaultMode = EditMode.FORM;
|
|
3010
3069
|
function applyPickerTogglerMods(mods) {
|
|
3011
3070
|
return [
|
|
3012
|
-
css$
|
|
3071
|
+
css$B.root,
|
|
3013
3072
|
'uui-picker_toggler',
|
|
3014
3073
|
`uui-size-${mods.size || settings.sizes.pickerInput.toggler.defaults.size}`,
|
|
3015
|
-
css$
|
|
3074
|
+
css$B['mode-' + (mods.mode || defaultMode)],
|
|
3016
3075
|
];
|
|
3017
3076
|
}
|
|
3018
3077
|
function PickerTogglerComponent(props, ref) {
|
|
@@ -3101,7 +3160,7 @@ function PickerInputComponent(_a, ref) {
|
|
|
3101
3160
|
}
|
|
3102
3161
|
const PickerInput = /* @__PURE__ */React__default.forwardRef(PickerInputComponent);
|
|
3103
3162
|
|
|
3104
|
-
var css$
|
|
3163
|
+
var css$A = {"row":"SGlRzY"};
|
|
3105
3164
|
|
|
3106
3165
|
function PickerListItem(props) {
|
|
3107
3166
|
var _a;
|
|
@@ -3119,10 +3178,10 @@ function PickerListItem(props) {
|
|
|
3119
3178
|
else {
|
|
3120
3179
|
component = (React__default.createElement(RadioInput, { label: label, value: props.isSelected, isDisabled: props.isLoading || !props.isSelectable || props.isDisabled, onValueChange: () => props.onSelect(props) }));
|
|
3121
3180
|
}
|
|
3122
|
-
return (React__default.createElement("div", Object.assign({ role: "option", "aria-selected": props.isSelectable ? props.isSelected : undefined, "aria-busy": props.isLoading, "aria-posinset": props.index + 1 }, (((_a = props.checkbox) === null || _a === void 0 ? void 0 : _a.isVisible) && { 'aria-checked': props.isChecked }), { className: css$
|
|
3181
|
+
return (React__default.createElement("div", Object.assign({ role: "option", "aria-selected": props.isSelectable ? props.isSelected : undefined, "aria-busy": props.isLoading, "aria-posinset": props.index + 1 }, (((_a = props.checkbox) === null || _a === void 0 ? void 0 : _a.isVisible) && { 'aria-checked': props.isChecked }), { className: css$A.row }), component));
|
|
3123
3182
|
}
|
|
3124
3183
|
|
|
3125
|
-
var css$
|
|
3184
|
+
var css$z = {"root":"sXTYin"};
|
|
3126
3185
|
|
|
3127
3186
|
function PickerList(props) {
|
|
3128
3187
|
const { context, view, onlySelectedView, getName, getEntityName, appendLastSelected, getSelectedIdsArray, buildRowsList, getMaxDefaultItems, dataSourceState, getModalTogglerCaption, } = usePickerList(props);
|
|
@@ -3145,7 +3204,7 @@ function PickerList(props) {
|
|
|
3145
3204
|
const showPicker = viewProps.totalCount == null || viewProps.totalCount > getMaxDefaultItems();
|
|
3146
3205
|
const renderToggler = props.renderModalToggler || defaultRenderToggler;
|
|
3147
3206
|
const renderRow = props.renderRow || defaultRenderRow;
|
|
3148
|
-
return (React__default.createElement("div", { className: cx('uui-picker-list', css$
|
|
3207
|
+
return (React__default.createElement("div", { className: cx('uui-picker-list', css$z.root) },
|
|
3149
3208
|
!rows.length
|
|
3150
3209
|
&& (props.noOptionsMessage || (React__default.createElement(Text, { color: "secondary", size: props.size }, "No options available"))),
|
|
3151
3210
|
rows.map((row) => renderRow(Object.assign(Object.assign({}, row), { isDisabled: props.isDisabled }), dataSourceState)),
|
|
@@ -3157,7 +3216,7 @@ function PickerList(props) {
|
|
|
3157
3216
|
}, selectedRows)));
|
|
3158
3217
|
}
|
|
3159
3218
|
|
|
3160
|
-
var css$
|
|
3219
|
+
var css$y = {"uui-typography":"_9sR1YC","uuiTypography":"_9sR1YC","hero-header":"GjX40w","heroHeader":"GjX40w","promo-header":"zwisP1","promoHeader":"zwisP1","uui-critical":"_6Cl4nw","uuiCritical":"_6Cl4nw","uui-info":"M7Q6vY","uuiInfo":"M7Q6vY","uui-success":"aUXtuM","uuiSuccess":"aUXtuM","uui-warning":"WaIyor","uuiWarning":"WaIyor","uui-highlight":"zOTUtB","uuiHighlight":"zOTUtB","uui-typography-size-12":"whtkaK","uuiTypographySize12":"whtkaK","uui-typography-size-14":"ydc-jZ","uuiTypographySize14":"ydc-jZ","uui-typography-size-16":"iXELgt","uuiTypographySize16":"iXELgt","root":"y5BZ-G","wrapper":"-v6rLZ","align-widgets-top":"KEeg69","alignWidgetsTop":"KEeg69","align-widgets-center":"m2H05a","alignWidgetsCenter":"m2H05a"};
|
|
3161
3220
|
|
|
3162
3221
|
function DataTableCell(initialProps) {
|
|
3163
3222
|
const props = Object.assign({}, initialProps);
|
|
@@ -3191,12 +3250,12 @@ function DataTableCell(initialProps) {
|
|
|
3191
3250
|
};
|
|
3192
3251
|
props.cx = [
|
|
3193
3252
|
'data-table-cell',
|
|
3194
|
-
css$
|
|
3253
|
+
css$y.root,
|
|
3195
3254
|
props.cx,
|
|
3196
3255
|
'uui-size-' + (props.size || settings.sizes.dataTable.body.row.cell.defaults.size),
|
|
3197
3256
|
props.isFirstColumn && 'uui-dt-first-column',
|
|
3198
3257
|
props.isLastColumn && 'uui-dt-last-column',
|
|
3199
|
-
css$
|
|
3258
|
+
css$y[`align-widgets-${props.alignActions || 'top'}`],
|
|
3200
3259
|
(props.border || isEditable) && 'uui-dt-vertical-cell-border',
|
|
3201
3260
|
];
|
|
3202
3261
|
props.style = {
|
|
@@ -3206,7 +3265,7 @@ function DataTableCell(initialProps) {
|
|
|
3206
3265
|
return React.createElement(DataTableCell$1, Object.assign({}, props));
|
|
3207
3266
|
}
|
|
3208
3267
|
|
|
3209
|
-
var css$
|
|
3268
|
+
var css$x = {"uui-typography":"MgFZrF","uuiTypography":"MgFZrF","hero-header":"NWRdaL","heroHeader":"NWRdaL","promo-header":"aeaIqj","promoHeader":"aeaIqj","uui-critical":"TMUwRn","uuiCritical":"TMUwRn","uui-info":"N-HygM","uuiInfo":"N-HygM","uui-success":"n-LaAS","uuiSuccess":"n-LaAS","uui-warning":"_2S3n1u","uuiWarning":"_2S3n1u","uui-highlight":"O4sIrc","uuiHighlight":"O4sIrc","uui-typography-size-12":"_5MV71e","uuiTypographySize12":"_5MV71e","uui-typography-size-14":"HxQB29","uuiTypographySize14":"HxQB29","uui-typography-size-16":"-gbefa","uuiTypographySize16":"-gbefa","root":"RKtP5y"};
|
|
3210
3269
|
|
|
3211
3270
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
3212
3271
|
// 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.
|
|
@@ -3218,11 +3277,11 @@ const renderDropMarkers = (props) => React.createElement(DropMarker, Object.assi
|
|
|
3218
3277
|
const propsMods = { renderCell, renderDropMarkers };
|
|
3219
3278
|
const DataTableRow = /* @__PURE__ */withMods(DataTableRow$1, ({ borderBottom = true, size }) => {
|
|
3220
3279
|
return [
|
|
3221
|
-
css$
|
|
3280
|
+
css$x.root, 'uui-dt-vars', borderBottom && 'uui-dt-row-border', `uui-size-${size || settings.sizes.dataTable.body.row.default}`,
|
|
3222
3281
|
];
|
|
3223
3282
|
}, () => propsMods);
|
|
3224
3283
|
|
|
3225
|
-
var css$
|
|
3284
|
+
var css$w = {"uui-typography":"_8aXuDP","uuiTypography":"_8aXuDP","hero-header":"SYUMQ9","heroHeader":"SYUMQ9","promo-header":"_5hHNL4","promoHeader":"_5hHNL4","uui-critical":"H9BuUo","uuiCritical":"H9BuUo","uui-info":"-QLZPV","uuiInfo":"-QLZPV","uui-success":"JPywlv","uuiSuccess":"JPywlv","uui-warning":"LH62sY","uuiWarning":"LH62sY","uui-highlight":"NJimv2","uuiHighlight":"NJimv2","uui-typography-size-12":"j3lzY6","uuiTypographySize12":"j3lzY6","uui-typography-size-14":"_61X9N9","uuiTypographySize14":"_61X9N9","uui-typography-size-16":"IQCWgu","uuiTypographySize16":"IQCWgu","sorting-panel-container":"b8m05I","sortingPanelContainer":"b8m05I"};
|
|
3226
3285
|
|
|
3227
3286
|
var _path$q;
|
|
3228
3287
|
function _extends$q() { _extends$q = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$q.apply(this, arguments); }
|
|
@@ -3257,7 +3316,7 @@ var ForwardRef$p = /*#__PURE__*/forwardRef(SvgTableSortDescOutline);
|
|
|
3257
3316
|
const SortingPanelImpl = ({ sortDirection, onSort }) => {
|
|
3258
3317
|
const sortAsc = useCallback(() => onSort(sortDirection === 'asc' ? undefined : 'asc'), [onSort]);
|
|
3259
3318
|
const sortDesc = useCallback(() => onSort(sortDirection === 'desc' ? undefined : 'desc'), [onSort]);
|
|
3260
|
-
return (React__default.createElement(FlexCell, { cx: cx$1(css$
|
|
3319
|
+
return (React__default.createElement(FlexCell, { cx: cx$1(css$w.sortingPanelContainer, 'uui-dropdownMenu-body') },
|
|
3261
3320
|
React__default.createElement(DropdownMenuButton, { isActive: sortDirection === 'asc', caption: i18n.pickerFilterHeader.sortAscending, icon: ForwardRef$q, onClick: sortAsc }),
|
|
3262
3321
|
React__default.createElement(DropdownMenuButton, { isActive: sortDirection === 'desc', caption: i18n.pickerFilterHeader.sortDescending, icon: ForwardRef$p, onClick: sortDesc })));
|
|
3263
3322
|
};
|
|
@@ -3352,7 +3411,7 @@ var SvgNavigationExpandAllOutline = function SvgNavigationExpandAllOutline(props
|
|
|
3352
3411
|
};
|
|
3353
3412
|
var ForwardRef$k = /*#__PURE__*/forwardRef(SvgNavigationExpandAllOutline);
|
|
3354
3413
|
|
|
3355
|
-
var css$
|
|
3414
|
+
var css$v = {"uui-typography":"WxUB7G","uuiTypography":"WxUB7G","hero-header":"_3HKlPv","heroHeader":"_3HKlPv","promo-header":"_5FBhqQ","promoHeader":"_5FBhqQ","uui-critical":"G7RzbV","uuiCritical":"G7RzbV","uui-info":"NqvTsS","uuiInfo":"NqvTsS","uui-success":"_9N5QDV","uuiSuccess":"_9N5QDV","uui-warning":"qU4y8g","uuiWarning":"qU4y8g","uui-highlight":"CsPUvI","uuiHighlight":"CsPUvI","uui-typography-size-12":"VGBf5T","uuiTypographySize12":"VGBf5T","uui-typography-size-14":"CI--ik","uuiTypographySize14":"CI--ik","uui-typography-size-16":"GC6n55","uuiTypographySize16":"GC6n55","root":"Xbxpq-","caption-wrapper":"_5iMiMM","captionWrapper":"_5iMiMM","sort-icon":"nnW--a","sortIcon":"nnW--a","dropdown-icon":"_8hZbbZ","dropdownIcon":"_8hZbbZ","infoIcon":"_7OlxEh","resizable":"DFDh7w","align-right":"KcBgcC","alignRight":"KcBgcC","align-center":"wUCUbt","alignCenter":"wUCUbt","caption":"G8wvGd","truncate":"FG8soj","checkbox":"vTv8l4","icon":"GczrGo","fold-all-icon":"EINOJZ","foldAllIcon":"EINOJZ","cell-tooltip":"Q6PaHL","cellTooltip":"Q6PaHL","upper-case":"V2z2rm","upperCase":"V2z2rm","resizing-marker":"_6SMMRj","resizingMarker":"_6SMMRj","pinned-right":"TzND2G","pinnedRight":"TzND2G","draggable":"_0vF0lf","ghost":"_0f1eQx","is-dragged-out":"_9Fg680","isDraggedOut":"_9Fg680","dnd-marker-left":"hMke-8","dndMarkerLeft":"hMke-8","dnd-marker-right":"pXBgpc","dndMarkerRight":"pXBgpc","cell-tooltip-wrapper":"AJEVXx","cellTooltipWrapper":"AJEVXx","cell-tooltip-text":"_0H4T9O","cellTooltipText":"_0H4T9O","tooltip-caption":"Aft4Rx","tooltipCaption":"Aft4Rx","tooltip-info":"aMTlKp","tooltipInfo":"aMTlKp"};
|
|
3356
3415
|
|
|
3357
3416
|
class DataTableHeaderCell extends React.Component {
|
|
3358
3417
|
constructor() {
|
|
@@ -3360,27 +3419,27 @@ class DataTableHeaderCell extends React.Component {
|
|
|
3360
3419
|
this.state = {
|
|
3361
3420
|
isDropdownOpen: null,
|
|
3362
3421
|
};
|
|
3363
|
-
this.getTooltipContent = (column) => (React.createElement("div", { className: cx$1(css$
|
|
3364
|
-
React.createElement(Text, { cx: [css$
|
|
3365
|
-
column.info && (React.createElement(Text, { cx: [css$
|
|
3422
|
+
this.getTooltipContent = (column) => (React.createElement("div", { className: cx$1(css$v.cellTooltipWrapper, uuiDataTableHeaderCell.uuiTableHeaderCaptionTooltip) },
|
|
3423
|
+
React.createElement(Text, { cx: [css$v.cellTooltipText, css$v.tooltipCaption] }, column.caption),
|
|
3424
|
+
column.info && (React.createElement(Text, { cx: [css$v.cellTooltipText, css$v.tooltipInfo] }, column.info))));
|
|
3366
3425
|
this.getColumnCaption = () => {
|
|
3367
3426
|
const renderTooltip = this.props.column.renderTooltip || this.getTooltipContent;
|
|
3368
3427
|
const captionCx = [
|
|
3369
|
-
css$
|
|
3370
|
-
this.props.textCase === 'upper' && css$
|
|
3428
|
+
css$v.caption,
|
|
3429
|
+
this.props.textCase === 'upper' && css$v.upperCase,
|
|
3371
3430
|
uuiDataTableHeaderCell.uuiTableHeaderCaption,
|
|
3372
|
-
settings.sizes.dataTable.header.row.cell.truncate.includes(this.props.size) && css$
|
|
3431
|
+
settings.sizes.dataTable.header.row.cell.truncate.includes(this.props.size) && css$v.truncate,
|
|
3373
3432
|
];
|
|
3374
|
-
return (React.createElement("div", { className: cx$1(css$
|
|
3375
|
-
React.createElement(Tooltip, { placement: "top", color: "inverted", content: renderTooltip(this.props.column), cx: css$
|
|
3433
|
+
return (React.createElement("div", { className: cx$1(css$v.captionWrapper, css$v['align-' + this.props.column.textAlign], uuiDataTableHeaderCell.uuiTableHeaderCaptionWrapper) },
|
|
3434
|
+
React.createElement(Tooltip, { placement: "top", color: "inverted", content: renderTooltip(this.props.column), cx: css$v.cellTooltip, openDelay: 600 },
|
|
3376
3435
|
React.createElement(Text, { key: "text", fontSize: settings.sizes.dataTable.header.row.cell.columnCaption[this.props.textCase === 'upper' ? 'uppercase' : 'fontSize'], size: settings.sizes.dataTable.header.row.cell.columnCaption.size, cx: captionCx }, this.props.column.caption)),
|
|
3377
|
-
this.props.column.isSortable && (!this.props.column.renderFilter || this.props.sortDirection) && (React.createElement(IconButton, { key: "sort", cx: cx$1(css$
|
|
3378
|
-
this.props.isFilterActive && (React.createElement(IconButton, { key: "filter", cx: cx$1(css$
|
|
3379
|
-
this.props.column.renderFilter && (React.createElement(IconButton, { key: "dropdown", cx: cx$1(css$
|
|
3436
|
+
this.props.column.isSortable && (!this.props.column.renderFilter || this.props.sortDirection) && (React.createElement(IconButton, { key: "sort", cx: cx$1(css$v.icon, css$v.sortIcon, this.props.sortDirection && css$v.sortIconActive, uuiDataTableHeaderCell.uuiTableHeaderSortIcon), color: this.props.sortDirection ? 'neutral' : 'secondary', icon: this.props.sortDirection === 'desc' ? ForwardRef$p : this.props.sortDirection === 'asc' ? ForwardRef$q : ForwardRef$o })),
|
|
3437
|
+
this.props.isFilterActive && (React.createElement(IconButton, { key: "filter", cx: cx$1(css$v.icon, !this.props.sortDirection && css$v.filterIcon, uuiDataTableHeaderCell.uuiTableHeaderFilterIcon), color: "neutral", icon: ForwardRef$n })),
|
|
3438
|
+
this.props.column.renderFilter && (React.createElement(IconButton, { key: "dropdown", cx: cx$1(css$v.icon, css$v.dropdownIcon, uuiDataTableHeaderCell.uuiTableHeaderDropdownIcon), color: "secondary", icon: this.state.isDropdownOpen ? ForwardRef$m : ForwardRef$Q }))));
|
|
3380
3439
|
};
|
|
3381
3440
|
this.renderHeaderCheckbox = () => {
|
|
3382
3441
|
if (this.props.selectAll && this.props.isFirstColumn) {
|
|
3383
|
-
return (React.createElement(Checkbox, Object.assign({ size: settings.sizes.dataTable.header.row.cell.checkbox[this.props.size] }, this.props.selectAll, { cx: cx$1(css$
|
|
3442
|
+
return (React.createElement(Checkbox, Object.assign({ size: settings.sizes.dataTable.header.row.cell.checkbox[this.props.size] }, this.props.selectAll, { cx: cx$1(css$v.checkbox, uuiDataTableHeaderCell.uuiTableHeaderCheckbox) })));
|
|
3384
3443
|
}
|
|
3385
3444
|
};
|
|
3386
3445
|
this.renderFoldAllIcon = () => {
|
|
@@ -3388,14 +3447,14 @@ class DataTableHeaderCell extends React.Component {
|
|
|
3388
3447
|
return (React.createElement(Tooltip, { content: this.props.areAllFolded
|
|
3389
3448
|
? i18n.tables.columnHeader.expandAllTooltip
|
|
3390
3449
|
: i18n.tables.columnHeader.collapseAllTooltip },
|
|
3391
|
-
React.createElement(IconButton, { color: "secondary", cx: cx$1(css$
|
|
3450
|
+
React.createElement(IconButton, { color: "secondary", cx: cx$1(css$v.icon, css$v.foldAllIcon, uuiDataTableHeaderCell.uuiTableHeaderFoldAllIcon), icon: this.props.areAllFolded ? ForwardRef$k : ForwardRef$l, onClick: this.props.onFoldAll, rawProps: {
|
|
3392
3451
|
'aria-label': this.props.areAllFolded ? 'Expand All' : 'Collapse All',
|
|
3393
3452
|
'aria-expanded': !!this.props.areAllFolded,
|
|
3394
3453
|
} })));
|
|
3395
3454
|
}
|
|
3396
3455
|
};
|
|
3397
3456
|
this.renderResizingMarker = (props) => {
|
|
3398
|
-
return (React.createElement("div", { role: "separator", onMouseDown: props.onResizeStart, className: cx$1(css$
|
|
3457
|
+
return (React.createElement("div", { role: "separator", onMouseDown: props.onResizeStart, className: cx$1(css$v.resizingMarker, uuiMarkers.draggable, uuiMarkers.clickable) }));
|
|
3399
3458
|
};
|
|
3400
3459
|
this.getLeftPadding = () => {
|
|
3401
3460
|
const { columnsGap, isFirstColumn } = this.props;
|
|
@@ -3427,7 +3486,7 @@ class DataTableHeaderCell extends React.Component {
|
|
|
3427
3486
|
var _a;
|
|
3428
3487
|
props.ref(ref);
|
|
3429
3488
|
(_a = dropdownProps === null || dropdownProps === void 0 ? void 0 : dropdownProps.ref) === null || _a === void 0 ? void 0 : _a.call(dropdownProps, ref);
|
|
3430
|
-
}, cx: cx$1(uuiDataTableHeaderCell.uuiTableHeaderCell, (this.props.column.isSortable || this.props.isDropdown) && uuiMarkers.clickable, css$
|
|
3489
|
+
}, cx: cx$1(uuiDataTableHeaderCell.uuiTableHeaderCell, (this.props.column.isSortable || this.props.isDropdown) && uuiMarkers.clickable, css$v.root, `uui-size-${this.props.size || settings.sizes.dataTable.header.row.cell.defaults.size}`, this.props.isFirstColumn && 'uui-dt-header-first-column', this.props.isLastColumn && 'uui-dt-header-last-column', this.props.column.fix && css$v['pinned-' + this.props.column.fix], isResizable && css$v.resizable, props.isDraggable && css$v.draggable, props.isDragGhost && css$v.ghost, props.isDraggedOut && css$v.isDraggedOut, props.isDndInProgress && css$v['dnd-marker-' + props.position]), onClick: onClickEvent, rawProps: Object.assign({ role: 'columnheader', 'aria-sort': this.props.sortDirection === 'asc' ? 'ascending' : this.props.sortDirection ? 'descending' : 'none' }, props.eventHandlers), style: computeStyles },
|
|
3431
3490
|
this.renderHeaderCheckbox(),
|
|
3432
3491
|
this.renderFoldAllIcon(),
|
|
3433
3492
|
this.getColumnCaption(),
|
|
@@ -3458,10 +3517,65 @@ var SvgActionSettingsFill = function SvgActionSettingsFill(props, ref) {
|
|
|
3458
3517
|
};
|
|
3459
3518
|
var ForwardRef$j = /*#__PURE__*/forwardRef(SvgActionSettingsFill);
|
|
3460
3519
|
|
|
3461
|
-
var css$
|
|
3520
|
+
var css$u = {"uui-typography":"V1C42Q","uuiTypography":"V1C42Q","hero-header":"_3jY06p","heroHeader":"_3jY06p","promo-header":"C3ZNOA","promoHeader":"C3ZNOA","uui-critical":"Q2dq4Z","uuiCritical":"Q2dq4Z","uui-info":"inoPp3","uuiInfo":"inoPp3","uui-success":"LGa6B4","uuiSuccess":"LGa6B4","uui-warning":"S4jIdc","uuiWarning":"S4jIdc","uui-highlight":"vsDULv","uuiHighlight":"vsDULv","uui-typography-size-12":"w1d3-N","uuiTypographySize12":"w1d3-N","uui-typography-size-14":"BLqt5-","uuiTypographySize14":"BLqt5-","uui-typography-size-16":"pD3qU3","uuiTypographySize16":"pD3qU3","root":"bdxZo7"};
|
|
3521
|
+
|
|
3522
|
+
var css$t = {"uui-typography":"-vbA9o","uuiTypography":"-vbA9o","hero-header":"_6MtY9q","heroHeader":"_6MtY9q","promo-header":"HqIiPL","promoHeader":"HqIiPL","uui-critical":"Ksr2Gx","uuiCritical":"Ksr2Gx","uui-info":"iff1of","uuiInfo":"iff1of","uui-success":"_58Cc9s","uuiSuccess":"_58Cc9s","uui-warning":"WFq1EB","uuiWarning":"WFq1EB","uui-highlight":"dBxxyg","uuiHighlight":"dBxxyg","uui-typography-size-12":"_7tyVur","uuiTypographySize12":"_7tyVur","uui-typography-size-14":"_5JHLFM","uuiTypographySize14":"_5JHLFM","uui-typography-size-16":"XFdhdn","uuiTypographySize16":"XFdhdn","root":"oVfl3E","caption-wrapper":"X0fN9Y","captionWrapper":"X0fN9Y","align-center":"VhAsj9","alignCenter":"VhAsj9","caption":"QG4m-U","truncate":"L-AaWJ","group-cell-tooltip":"SPrAH6","groupCellTooltip":"SPrAH6","upper-case":"DoYTHI","upperCase":"DoYTHI","group-cell-tooltip-wrapper":"bf9f5l","groupCellTooltipWrapper":"bf9f5l","group-cell-tooltip-text":"JnQTfQ","groupCellTooltipText":"JnQTfQ","tooltip-caption":"ASciOP","tooltipCaption":"ASciOP","tooltip-info":"aEGGTJ","tooltipInfo":"aEGGTJ"};
|
|
3462
3523
|
|
|
3463
|
-
|
|
3524
|
+
class DataTableHeaderGroupCell extends React.Component {
|
|
3525
|
+
constructor() {
|
|
3526
|
+
super(...arguments);
|
|
3527
|
+
this.getTooltipContent = (column) => (React.createElement("div", { className: cx$1(css$t.groupCellTooltipWrapper, uuiDataTableHeaderGroupCell.uuiTableHeaderGroupCaptionTooltip) },
|
|
3528
|
+
React.createElement(Text, { cx: [css$t.groupCellTooltipText, css$t.tooltipCaption] }, column.caption),
|
|
3529
|
+
column.info && (React.createElement(Text, { cx: [css$t.groupCellTooltipText, css$t.tooltipInfo] }, column.info))));
|
|
3530
|
+
this.getColumnCaption = () => {
|
|
3531
|
+
const renderTooltip = this.props.group.renderTooltip || this.getTooltipContent;
|
|
3532
|
+
const captionCx = [
|
|
3533
|
+
css$t.caption,
|
|
3534
|
+
this.props.textCase === 'upper' && css$t.upperCase,
|
|
3535
|
+
uuiDataTableHeaderGroupCell.uuiTableHeaderGroupCaption,
|
|
3536
|
+
settings.sizes.dataTable.header.row.groupCell.truncate.includes(this.props.size) && css$t.truncate,
|
|
3537
|
+
];
|
|
3538
|
+
return (React.createElement("div", { className: cx$1(css$t.captionWrapper, css$t['align-' + this.props.group.textAlign], uuiDataTableHeaderGroupCell.uuiTableHeaderGroupCaptionWrapper) },
|
|
3539
|
+
React.createElement(Tooltip, { placement: "top", color: "inverted", content: renderTooltip(this.props.group), cx: css$t.groupCellTooltip, openDelay: 600 },
|
|
3540
|
+
React.createElement(Text, { key: "text", fontSize: settings.sizes.dataTable.header.row.groupCell.columnCaption[this.props.textCase === 'upper' ? 'uppercase' : 'fontSize'], size: settings.sizes.dataTable.header.row.groupCell.columnCaption.size, cx: captionCx }, this.props.group.caption))));
|
|
3541
|
+
};
|
|
3542
|
+
this.getLeftPadding = () => {
|
|
3543
|
+
const { columnsGap, isFirstCell } = this.props;
|
|
3544
|
+
if (columnsGap)
|
|
3545
|
+
return isFirstCell ? columnsGap : +columnsGap / 2;
|
|
3546
|
+
return isFirstCell ? settings.sizes.dataTable.header.row.groupCell.defaults.paddingEdge : settings.sizes.dataTable.header.row.groupCell.defaults.padding;
|
|
3547
|
+
};
|
|
3548
|
+
this.getRightPadding = () => {
|
|
3549
|
+
const { columnsGap, isLastCell } = this.props;
|
|
3550
|
+
if (columnsGap)
|
|
3551
|
+
return isLastCell ? columnsGap : +columnsGap / 2;
|
|
3552
|
+
return isLastCell ? settings.sizes.dataTable.header.row.groupCell.defaults.paddingEdge : settings.sizes.dataTable.header.row.groupCell.defaults.padding;
|
|
3553
|
+
};
|
|
3554
|
+
this.renderCellContent = (props) => {
|
|
3555
|
+
const computeStyles = {
|
|
3556
|
+
'--uui-dt-header-group-cell-padding-start': `${this.getLeftPadding()}px`,
|
|
3557
|
+
'--uui-dt-header-group-cell-padding-end': `${this.getRightPadding()}px`,
|
|
3558
|
+
};
|
|
3559
|
+
return (React.createElement(DataTableCellContainer, { column: this.props.group, ref: (ref) => {
|
|
3560
|
+
props.ref(ref);
|
|
3561
|
+
}, cx: cx$1(uuiDataTableHeaderGroupCell.uuiTableHeaderGroupCell, css$t.root, `uui-size-${this.props.size || settings.sizes.dataTable.header.row.groupCell.defaults.size}`, this.props.isFirstCell && 'uui-dt-header-first-column', this.props.isLastCell && 'uui-dt-header-last-column'), rawProps: Object.assign({ role: 'columnheader' }, props.eventHandlers), style: computeStyles }, this.getColumnCaption()));
|
|
3562
|
+
};
|
|
3563
|
+
}
|
|
3564
|
+
render() {
|
|
3565
|
+
if (this.props.group.renderHeaderCell) {
|
|
3566
|
+
return this.props.group.renderHeaderCell(this.props);
|
|
3567
|
+
}
|
|
3568
|
+
const computeStyles = {
|
|
3569
|
+
'--uui-dt-header-group-cell-padding-start': `${this.getLeftPadding()}px`,
|
|
3570
|
+
'--uui-dt-header-group-cell-padding-end': `${this.getRightPadding()}px`,
|
|
3571
|
+
};
|
|
3572
|
+
return (React.createElement(DataTableCellContainer, { column: this.props.group, cx: cx$1(uuiDataTableHeaderGroupCell.uuiTableHeaderGroupCell, css$t.root, `uui-size-${this.props.size || settings.sizes.dataTable.header.row.groupCell.defaults.size}`, this.props.isFirstCell && 'uui-dt-header-first-column', this.props.isLastCell && 'uui-dt-header-last-column'), rawProps: { role: 'columnheader' }, style: computeStyles }, this.getColumnCaption()));
|
|
3573
|
+
}
|
|
3574
|
+
}
|
|
3575
|
+
|
|
3576
|
+
const DataTableHeaderRow = /* @__PURE__ */withMods(DataTableHeaderRow$1, () => [css$u.root, 'uui-dt-vars'], (mods) => ({
|
|
3464
3577
|
renderCell: (props) => (React.createElement(DataTableHeaderCell, Object.assign({}, props, { size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key, columnsGap: mods.columnsGap }))),
|
|
3578
|
+
renderGroupCell: (props) => (React.createElement(DataTableHeaderGroupCell, Object.assign({}, props, { size: mods.size, textCase: mods.textCase || 'normal', key: props.key, columnsGap: mods.columnsGap }))),
|
|
3465
3579
|
renderConfigButton: () => (React.createElement(IconButton, { key: "configuration", onClick: mods.onConfigButtonClick, cx: ['config-icon', `uui-size-${settings.sizes.dataTable.header.row.cell.iconSize[mods.size || settings.sizes.dataTable.header.row.default]}`], color: "neutral", icon: ForwardRef$j })),
|
|
3466
3580
|
}));
|
|
3467
3581
|
|
|
@@ -3470,7 +3584,7 @@ const UUI_FILTERS_PANEL_ADD_BUTTON_BODY = 'uui-filters-panel-add-button-body';
|
|
|
3470
3584
|
const UUI_FILTERS_PANEL_ITEM_BODY = 'uui-filters-panel-item-body';
|
|
3471
3585
|
const UUI_FILTERS_PANEL_ITEM_TOGGLER = 'uui-filters-panel-item-toggler';
|
|
3472
3586
|
|
|
3473
|
-
var css$s = {"uui-typography":"
|
|
3587
|
+
var css$s = {"uui-typography":"LsX-QX","uuiTypography":"LsX-QX","hero-header":"_0Ou81v","heroHeader":"_0Ou81v","promo-header":"_2mp821","promoHeader":"_2mp821","uui-critical":"LTMLK-","uuiCritical":"LTMLK-","uui-info":"BkwyBD","uuiInfo":"BkwyBD","uui-success":"v2Vh3u","uuiSuccess":"v2Vh3u","uui-warning":"OCtJGi","uuiWarning":"OCtJGi","uui-highlight":"_3Fs6TM","uuiHighlight":"_3Fs6TM","uui-typography-size-12":"jlBrkN","uuiTypographySize12":"jlBrkN","uui-typography-size-14":"tRtxxV","uuiTypographySize14":"tRtxxV","uui-typography-size-16":"EcgKB0","uuiTypographySize16":"EcgKB0","root":"J-bngz","title-wrapper":"rpUs0E","titleWrapper":"rpUs0E","title":"_4ugTMf","text-wrapper":"qXV68s","textWrapper":"qXV68s","selection":"yFGU9J","postfix":"_2Im7GA","selected":"K1QKbk"};
|
|
3474
3588
|
|
|
3475
3589
|
const defaultSize = '36';
|
|
3476
3590
|
const FilterPanelItemToggler = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
@@ -3601,7 +3715,7 @@ function FilterRangeDatePickerBody(props) {
|
|
|
3601
3715
|
const context = useUuiContext();
|
|
3602
3716
|
const onOpenChange = (newIsOpen) => {
|
|
3603
3717
|
var _a, _b;
|
|
3604
|
-
|
|
3718
|
+
{
|
|
3605
3719
|
(_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
3606
3720
|
}
|
|
3607
3721
|
(_b = props.onOpenChange) === null || _b === void 0 ? void 0 : _b.call(props, newIsOpen);
|
|
@@ -3648,7 +3762,7 @@ function FilterRangeDatePickerBody(props) {
|
|
|
3648
3762
|
React__default.createElement(LinkButton, { isDisabled: !value.from && !value.to, caption: i18n.pickerModal.clearAllButton, onClick: () => onValueChange(defaultRangeValue) })))));
|
|
3649
3763
|
}
|
|
3650
3764
|
|
|
3651
|
-
var css$r = {"container":"
|
|
3765
|
+
var css$r = {"container":"_14kw-Q"};
|
|
3652
3766
|
|
|
3653
3767
|
function FilterNumericBody(props) {
|
|
3654
3768
|
var _a, _b;
|
|
@@ -3746,7 +3860,7 @@ var SvgActionDeleteOutline = function SvgActionDeleteOutline(props, ref) {
|
|
|
3746
3860
|
};
|
|
3747
3861
|
var ForwardRef$i = /*#__PURE__*/forwardRef(SvgActionDeleteOutline);
|
|
3748
3862
|
|
|
3749
|
-
var css$q = {"uui-typography":"
|
|
3863
|
+
var css$q = {"uui-typography":"D8RB3e","uuiTypography":"D8RB3e","hero-header":"f3nas0","heroHeader":"f3nas0","promo-header":"ZgPBn7","promoHeader":"ZgPBn7","uui-critical":"zY6daX","uuiCritical":"zY6daX","uui-info":"oeTWy1","uuiInfo":"oeTWy1","uui-success":"yIySO-","uuiSuccess":"yIySO-","uui-warning":"j4adTr","uuiWarning":"j4adTr","uui-highlight":"rzO12l","uuiHighlight":"rzO12l","uui-typography-size-12":"Xmt5jB","uuiTypographySize12":"Xmt5jB","uui-typography-size-14":"DGk--L","uuiTypographySize14":"DGk--L","uui-typography-size-16":"shMth9","uuiTypographySize16":"shMth9","header":"GRWR3U","removeButton":"_9ukNQJ","with-search":"pXO0-F","withSearch":"pXO0-F"};
|
|
3750
3864
|
|
|
3751
3865
|
function useView(props, value) {
|
|
3752
3866
|
const forceUpdate = useForceUpdate();
|
|
@@ -4067,7 +4181,7 @@ function FiltersToolbarImpl(props) {
|
|
|
4067
4181
|
}
|
|
4068
4182
|
const FiltersPanel = /* @__PURE__ */React__default.memo(FiltersToolbarImpl);
|
|
4069
4183
|
|
|
4070
|
-
var css$p = {"divider":"
|
|
4184
|
+
var css$p = {"divider":"WUoHol","dropdownDeleteIcon":"EURDQT","presetsWrapper":"ue2wPg","addPresetContainer":"bSJiS6","dropContainer":"caIP9m"};
|
|
4071
4185
|
|
|
4072
4186
|
var _path$g;
|
|
4073
4187
|
function _extends$g() { _extends$g = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$g.apply(this, arguments); }
|
|
@@ -4180,7 +4294,7 @@ var SvgContentLinkOutline = function SvgContentLinkOutline(props, ref) {
|
|
|
4180
4294
|
};
|
|
4181
4295
|
var ForwardRef$a = /*#__PURE__*/forwardRef(SvgContentLinkOutline);
|
|
4182
4296
|
|
|
4183
|
-
var css$o = {"delete-button":"
|
|
4297
|
+
var css$o = {"delete-button":"nofb7J","deleteButton":"nofb7J","tab-button":"N-tFt6","tabButton":"N-tFt6","targetOpen":"qXwPW-"};
|
|
4184
4298
|
|
|
4185
4299
|
function PresetActionsDropdown(props) {
|
|
4186
4300
|
const { uuiNotifications } = useUuiContext();
|
|
@@ -4221,12 +4335,14 @@ function PresetActionsDropdown(props) {
|
|
|
4221
4335
|
const isRenameAvailable = props.preset.id === props.activePresetId && !isReadonlyPreset;
|
|
4222
4336
|
return (React__default.createElement(DropdownMenuBody, Object.assign({}, dropdownProps),
|
|
4223
4337
|
isPresetChanged && (React__default.createElement(React__default.Fragment, null,
|
|
4224
|
-
!isReadonlyPreset && (React__default.createElement(DropdownMenuButton, { key: `${props.preset.id}-save-in-current`, icon: ForwardRef$f, caption: "Save in current", onClick: saveInCurrentHandler })),
|
|
4225
|
-
React__default.createElement(DropdownMenuButton, { key: `${props.preset.id}-save-as-new`, icon: ForwardRef$e, caption: "Save as new",
|
|
4226
|
-
|
|
4338
|
+
!isReadonlyPreset && (React__default.createElement(DropdownMenuButton, { key: `${props.preset.id}-save-in-current`, icon: ForwardRef$f, caption: "Save in current", onClick: () => { dropdownProps.onClose(); saveInCurrentHandler(); } })),
|
|
4339
|
+
React__default.createElement(DropdownMenuButton, { key: `${props.preset.id}-save-as-new`, icon: ForwardRef$e, caption: "Save as new",
|
|
4340
|
+
// We add setTimeout to call addPreset after dropdown will be closed, since dropdown has focus lock, and it broke autofocus on add new preset input
|
|
4341
|
+
onClick: () => { dropdownProps.onClose(); setTimeout(() => props.addPreset(), 0); } }),
|
|
4342
|
+
React__default.createElement(DropdownMenuButton, { key: `${props.preset.id}-discard`, icon: ForwardRef$d, caption: "Discard all changes", onClick: () => { dropdownProps.onClose(); discardAllChangesHandler(); } }),
|
|
4227
4343
|
React__default.createElement(DropdownMenuSplitter, { key: "discard-splitter" }))),
|
|
4228
4344
|
isRenameAvailable && (React__default.createElement(DropdownMenuButton, { key: `${props.preset.id}-rename`, icon: ForwardRef$b, caption: "Rename", onClick: props.renamePreset })),
|
|
4229
|
-
React__default.createElement(DropdownMenuButton, { key: `${props.preset.id}-duplicate`, icon: ForwardRef$c, caption: "Duplicate", onClick: duplicateHandler }),
|
|
4345
|
+
React__default.createElement(DropdownMenuButton, { key: `${props.preset.id}-duplicate`, icon: ForwardRef$c, caption: "Duplicate", onClick: () => { dropdownProps.onClose(); duplicateHandler(); } }),
|
|
4230
4346
|
React__default.createElement(DropdownMenuButton, { key: `${props.preset.id}-copyLink`, icon: ForwardRef$a, caption: "Copy Link", onClick: copyUrlToClipboard }),
|
|
4231
4347
|
!isReadonlyPreset && (React__default.createElement(React__default.Fragment, null,
|
|
4232
4348
|
React__default.createElement(DropdownMenuSplitter, { key: "delete-splitter" }),
|
|
@@ -4238,7 +4354,7 @@ function PresetActionsDropdown(props) {
|
|
|
4238
4354
|
return (React__default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end", modifiers: [{ name: 'offset', options: { offset: [0, 22] } }] }));
|
|
4239
4355
|
}
|
|
4240
4356
|
|
|
4241
|
-
var css$n = {"preset-input-cell":"
|
|
4357
|
+
var css$n = {"preset-input-cell":"Dn-BMn","presetInputCell":"Dn-BMn","preset-input":"SsrZgS","presetInput":"SsrZgS"};
|
|
4242
4358
|
|
|
4243
4359
|
const UUI_PRESETS_PANEL_ADD_BUTTON = 'uui-presets-panel-add-button';
|
|
4244
4360
|
const UUI_PRESETS_PANEL_MORE_BUTTON = 'uui-presets-panel-more-button';
|
|
@@ -4271,7 +4387,7 @@ function PresetInput(props) {
|
|
|
4271
4387
|
React__default.createElement(TextInput, { cx: css$n.presetInput, onValueChange: setPresetCaption, value: presetCaption, onCancel: cancelActionHandler, onAccept: acceptActionHandler, onBlur: newPresetOnBlurHandler, autoFocus: true, maxLength: 50, isReadonly: readonly })));
|
|
4272
4388
|
}
|
|
4273
4389
|
|
|
4274
|
-
var css$m = {"preset":"
|
|
4390
|
+
var css$m = {"preset":"NClphZ","activePreset":"ypn8yA"};
|
|
4275
4391
|
|
|
4276
4392
|
function Preset(props) {
|
|
4277
4393
|
const [isRenamePreset, setIsRenamePreset] = useState(false);
|
|
@@ -4289,7 +4405,8 @@ function Preset(props) {
|
|
|
4289
4405
|
return props.updatePreset(newPreset);
|
|
4290
4406
|
}, [props.preset]);
|
|
4291
4407
|
const isPresetActive = props.activePresetId === props.preset.id;
|
|
4292
|
-
|
|
4408
|
+
const PresetActionsDropdownComponent = useCallback(() => React__default.createElement(PresetActionsDropdown, Object.assign({ renamePreset: setPresetForRename }, props)), [props.preset, props.tableState, props.activePresetId]);
|
|
4409
|
+
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$m.preset, isPresetActive && css$m.activePreset, UUI_PRESETS_PANEL_PRESET], size: "60", withNotify: isPresetActive && props.hasPresetChanged(props.preset), icon: PresetActionsDropdownComponent, iconPosition: "right", isLinkActive: isPresetActive }))));
|
|
4293
4410
|
}
|
|
4294
4411
|
|
|
4295
4412
|
var _path$9;
|
|
@@ -4445,7 +4562,7 @@ var SvgTableGroupColumnRightFill = function SvgTableGroupColumnRightFill(props,
|
|
|
4445
4562
|
};
|
|
4446
4563
|
var ForwardRef$6 = /*#__PURE__*/forwardRef(SvgTableGroupColumnRightFill);
|
|
4447
4564
|
|
|
4448
|
-
var css$l = {"unpin-icon":"
|
|
4565
|
+
var css$l = {"unpin-icon":"Nicm0o","unpinIcon":"Nicm0o","pin-toggler-icon":"Ar8l5q","pinTogglerIcon":"Ar8l5q"};
|
|
4449
4566
|
|
|
4450
4567
|
function PinIconButton(props) {
|
|
4451
4568
|
const i18nLocal = i18n.tables.columnsConfigurationModal;
|
|
@@ -4504,7 +4621,7 @@ var SvgActionDragIndicator18 = function SvgActionDragIndicator18(props, ref) {
|
|
|
4504
4621
|
};
|
|
4505
4622
|
var ForwardRef$5 = /*#__PURE__*/forwardRef(SvgActionDragIndicator18);
|
|
4506
4623
|
|
|
4507
|
-
var css$k = {"uui-typography":"
|
|
4624
|
+
var css$k = {"uui-typography":"hfRTVq","uuiTypography":"hfRTVq","hero-header":"OU0AUx","heroHeader":"OU0AUx","promo-header":"r-9kU-","promoHeader":"r-9kU-","uui-critical":"Cwo-6p","uuiCritical":"Cwo-6p","uui-info":"Vze-Gg","uuiInfo":"Vze-Gg","uui-success":"L0hb6K","uuiSuccess":"L0hb6K","uui-warning":"n7qYbc","uuiWarning":"n7qYbc","uui-highlight":"_8HRIpN","uuiHighlight":"_8HRIpN","uui-typography-size-12":"_3z3LR-","uuiTypographySize12":"_3z3LR-","uui-typography-size-14":"IaCmch","uuiTypographySize14":"IaCmch","uui-typography-size-16":"yElhd5","uuiTypographySize16":"yElhd5","row-wrapper":"_8veK-v","rowWrapper":"_8veK-v","pin-icon-button":"H-iSoW","pinIconButton":"H-iSoW","not-pinned":"Kd6ZZu","notPinned":"Kd6ZZu","checkbox":"Y7mSyX","drag-handle":"Z33b4E","dragHandle":"Z33b4E","dnd-disabled":"MDQR6W","dndDisabled":"MDQR6W"};
|
|
4508
4625
|
|
|
4509
4626
|
const ColumnRow = /* @__PURE__ */React.memo(function ColumnRow(props) {
|
|
4510
4627
|
const { column } = props;
|
|
@@ -4527,7 +4644,7 @@ const ColumnRow = /* @__PURE__ */React.memo(function ColumnRow(props) {
|
|
|
4527
4644
|
return (React.createElement(DndActor, { key: column.key, srcData: isDndAllowed && data, dstData: data, canAcceptDrop: onCanAcceptDrop, onDrop: onDrop, render: renderContent }));
|
|
4528
4645
|
});
|
|
4529
4646
|
|
|
4530
|
-
var css$j = {"uui-typography":"
|
|
4647
|
+
var css$j = {"uui-typography":"hdjLyK","uuiTypography":"hdjLyK","hero-header":"SR-VsF","heroHeader":"SR-VsF","promo-header":"_1UlWSL","promoHeader":"_1UlWSL","uui-critical":"uiSXNK","uuiCritical":"uiSXNK","uui-info":"_2Kl32S","uuiInfo":"_2Kl32S","uui-success":"SjlGZN","uuiSuccess":"SjlGZN","uui-warning":"LdfJsS","uuiWarning":"LdfJsS","uui-highlight":"gTYVph","uuiHighlight":"gTYVph","uui-typography-size-12":"qvCcuR","uuiTypographySize12":"qvCcuR","uui-typography-size-14":"gJjxI-","uuiTypographySize14":"gJjxI-","uui-typography-size-16":"L4Q7oG","uuiTypographySize16":"L4Q7oG","root":"dK3DyX","main-panel":"kH6-jn","mainPanel":"kH6-jn","group":"OP5eLZ","group-title":"fSeTHO","groupTitle":"fSeTHO","group-items":"LnouUb","groupItems":"LnouUb","no-data":"LE-nho","noData":"LE-nho","no-data-title":"wtdbnk","noDataTitle":"wtdbnk","no-data-sub-title":"w-VtxK","noDataSubTitle":"w-VtxK","h-divider":"g62fQY","hDivider":"g62fQY","search-area":"Sflq0g","searchArea":"Sflq0g","subgroup-accordion":"isAVrA","subgroupAccordion":"isAVrA","subgroup":"GX6552","subgroup-title":"Whgn5e","subgroupTitle":"Whgn5e"};
|
|
4531
4648
|
|
|
4532
4649
|
const renderGroupTitle = (title, amount) => (React.createElement(FlexRow, { cx: css$j.group },
|
|
4533
4650
|
React.createElement(Text, { size: "none", cx: css$j.groupTitle }, title),
|
|
@@ -4604,7 +4721,7 @@ function SubGroup(props) {
|
|
|
4604
4721
|
const content = (React.createElement(FlexRow, { cx: css$j.groupItems, size: settings.sizes.dataTable.columnsConfigurationModal.columnRow }, items.map((c) => (React.createElement(ColumnRow, { column: c, key: c.key, renderItem: renderItem })))));
|
|
4605
4722
|
if (isCollapsible) {
|
|
4606
4723
|
const renderTitle = (isOpened) => {
|
|
4607
|
-
const toggleIcon = isOpened ? ForwardRef$
|
|
4724
|
+
const toggleIcon = isOpened ? ForwardRef$Q : ForwardRef$v;
|
|
4608
4725
|
return (React.createElement(FlexRow, { cx: cx$1(css$j.subgroup) },
|
|
4609
4726
|
React.createElement(IconContainer, { size: settings.sizes.dataTable.columnsConfigurationModal.subgroupIcon, icon: toggleIcon }),
|
|
4610
4727
|
React.createElement(Text, { size: "none", color: "tertiary", cx: css$j.subgroupTitle }, title)));
|
|
@@ -4616,7 +4733,7 @@ function SubGroup(props) {
|
|
|
4616
4733
|
return null;
|
|
4617
4734
|
}
|
|
4618
4735
|
|
|
4619
|
-
var css$i = {"listContainer":"
|
|
4736
|
+
var css$i = {"listContainer":"K-ETk4","header":"_9iM73l","group":"G-EGKa","stickyHeader":"t76FIc"};
|
|
4620
4737
|
|
|
4621
4738
|
const getChildrenAndRest = (row, rows) => {
|
|
4622
4739
|
const firstNotChildIndex = rows.findIndex((other) => other.depth < row.depth || (row.depth === other.depth && other.isPinned));
|
|
@@ -4682,7 +4799,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4682
4799
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4683
4800
|
ref: ref
|
|
4684
4801
|
}, props), /*#__PURE__*/React.createElement("g", {
|
|
4685
|
-
clipPath: "url(#
|
|
4802
|
+
clipPath: "url(#zslffuwbe3x0hyms_a)"
|
|
4686
4803
|
}, _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
|
|
4687
4804
|
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",
|
|
4688
4805
|
fill: "#F5F6FA"
|
|
@@ -4703,7 +4820,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4703
4820
|
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",
|
|
4704
4821
|
fill: "#1D1E26"
|
|
4705
4822
|
})), /*#__PURE__*/React.createElement("mask", {
|
|
4706
|
-
id: "
|
|
4823
|
+
id: "zslffuefrkrogn54_b",
|
|
4707
4824
|
style: {
|
|
4708
4825
|
maskType: "alpha"
|
|
4709
4826
|
},
|
|
@@ -4716,7 +4833,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4716
4833
|
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",
|
|
4717
4834
|
fill: "#9BDEFF"
|
|
4718
4835
|
}))), _g || (_g = /*#__PURE__*/React.createElement("g", {
|
|
4719
|
-
mask: "url(#
|
|
4836
|
+
mask: "url(#zslffuefrkrogn54_b)",
|
|
4720
4837
|
fillRule: "evenodd",
|
|
4721
4838
|
clipRule: "evenodd"
|
|
4722
4839
|
}, /*#__PURE__*/React.createElement("path", {
|
|
@@ -4802,7 +4919,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4802
4919
|
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",
|
|
4803
4920
|
fill: "#fff"
|
|
4804
4921
|
}))), _defs || (_defs = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
4805
|
-
id: "
|
|
4922
|
+
id: "zslffuwbe3x0hyms_a"
|
|
4806
4923
|
}, /*#__PURE__*/React.createElement("path", {
|
|
4807
4924
|
fill: "#fff",
|
|
4808
4925
|
transform: "translate(.552)",
|
|
@@ -4811,7 +4928,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4811
4928
|
};
|
|
4812
4929
|
var ForwardRef$4 = /*#__PURE__*/forwardRef(SvgEmptyTable);
|
|
4813
4930
|
|
|
4814
|
-
var css$h = {"root":"
|
|
4931
|
+
var css$h = {"root":"NooTnf","sticky-header":"IXbZMo","stickyHeader":"IXbZMo","no-results":"_90wEUV","noResults":"_90wEUV","icon":"_91Kmhl","title":"wjVG8n"};
|
|
4815
4932
|
|
|
4816
4933
|
function DataTable(props) {
|
|
4817
4934
|
var _a, _b, _c, _d;
|
|
@@ -4846,7 +4963,7 @@ function DataTable(props) {
|
|
|
4846
4963
|
]);
|
|
4847
4964
|
const renderRowsContainer = React.useCallback(({ listContainerRef, estimatedHeight, offsetY, scrollShadows }) => (React.createElement(React.Fragment, null,
|
|
4848
4965
|
React.createElement("div", { className: css$h.stickyHeader, ref: headerRef },
|
|
4849
|
-
React.createElement(DataTableHeaderRow, { columns: columns, onConfigButtonClick: props.showColumnsConfig && onConfigurationButtonClick, selectAll: props.selectAll, size: props.headerSize || settings.sizes.dataTable.header.row.default, textCase: props.headerTextCase, allowColumnsReordering: props.allowColumnsReordering, allowColumnsResizing: props.allowColumnsResizing, showFoldAll: props.showFoldAll, value: Object.assign(Object.assign({}, props.value), { columnsConfig: config }), onValueChange: props.onValueChange, columnsGap: props.columnsGap }),
|
|
4966
|
+
React.createElement(DataTableHeaderRow, { columns: columns, columnGroups: props.columnGroups, onConfigButtonClick: props.showColumnsConfig && onConfigurationButtonClick, selectAll: props.selectAll, size: props.headerSize || settings.sizes.dataTable.header.row.default, textCase: props.headerTextCase, allowColumnsReordering: props.allowColumnsReordering, allowColumnsResizing: props.allowColumnsResizing, showFoldAll: props.showFoldAll, value: Object.assign(Object.assign({}, props.value), { columnsConfig: config }), onValueChange: props.onValueChange, columnsGap: props.columnsGap }),
|
|
4850
4967
|
React.createElement("div", { className: cx$1(uuiScrollShadows.top, {
|
|
4851
4968
|
[uuiScrollShadows.topVisible]: scrollShadows.verticalTop,
|
|
4852
4969
|
}) })),
|
|
@@ -4862,9 +4979,9 @@ function DataTable(props) {
|
|
|
4862
4979
|
} }))));
|
|
4863
4980
|
}
|
|
4864
4981
|
|
|
4865
|
-
var css$g = {"root":"
|
|
4982
|
+
var css$g = {"root":"ysccK0"};
|
|
4866
4983
|
|
|
4867
|
-
var css$f = {"root":"
|
|
4984
|
+
var css$f = {"root":"NV1wxU","burger-content":"LnKa9I","burgerContent":"LnKa9I"};
|
|
4868
4985
|
|
|
4869
4986
|
var _path$3;
|
|
4870
4987
|
function _extends$3() { _extends$3 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
|
|
@@ -4886,7 +5003,7 @@ function applyBurgerMods() {
|
|
|
4886
5003
|
}
|
|
4887
5004
|
const Burger = /* @__PURE__ */withMods(Burger$1, applyBurgerMods, () => ({
|
|
4888
5005
|
burgerIcon: ForwardRef$3,
|
|
4889
|
-
crossIcon: ForwardRef$
|
|
5006
|
+
crossIcon: ForwardRef$R,
|
|
4890
5007
|
burgerContentCx: css$f.burgerContent,
|
|
4891
5008
|
}));
|
|
4892
5009
|
|
|
@@ -4907,7 +5024,7 @@ var SvgNavigationArrowDownOutline = function SvgNavigationArrowDownOutline(props
|
|
|
4907
5024
|
};
|
|
4908
5025
|
var ForwardRef$2 = /*#__PURE__*/forwardRef(SvgNavigationArrowDownOutline);
|
|
4909
5026
|
|
|
4910
|
-
var css$e = {"uui-typography":"
|
|
5027
|
+
var css$e = {"uui-typography":"ge6lrr","uuiTypography":"ge6lrr","hero-header":"R6ootK","heroHeader":"R6ootK","promo-header":"n-WTz1","promoHeader":"n-WTz1","uui-critical":"_8x2eyy","uuiCritical":"_8x2eyy","uui-info":"DB5Jh6","uuiInfo":"DB5Jh6","uui-success":"D3-5xg","uuiSuccess":"D3-5xg","uui-warning":"P5eAAr","uuiWarning":"P5eAAr","uui-highlight":"v5c-y3","uuiHighlight":"v5c-y3","uui-typography-size-12":"fYedE4","uuiTypographySize12":"fYedE4","uui-typography-size-14":"mrk0gV","uuiTypographySize14":"mrk0gV","uui-typography-size-16":"Nv5eod","uuiTypographySize16":"Nv5eod","root":"TGdMwl","button-primary":"bSgADo","buttonPrimary":"bSgADo","button-secondary":"fztJU-","buttonSecondary":"fztJU-","hasIcon":"_1ycqPX","dropdown":"JHDUEZ"};
|
|
4911
5028
|
|
|
4912
5029
|
const BurgerButton = /* @__PURE__ */withMods(Button$1, (props) => [
|
|
4913
5030
|
css$e.root,
|
|
@@ -4918,13 +5035,13 @@ const BurgerButton = /* @__PURE__ */withMods(Button$1, (props) => [
|
|
|
4918
5035
|
props.icon && css$e.hasIcon,
|
|
4919
5036
|
], () => ({ dropdownIcon: ForwardRef$2, dropdownIconPosition: 'left', role: 'menuitem' }));
|
|
4920
5037
|
|
|
4921
|
-
var css$d = {"search-input":"
|
|
5038
|
+
var css$d = {"search-input":"i1iw2c","searchInput":"i1iw2c"};
|
|
4922
5039
|
|
|
4923
5040
|
function BurgerSearch(props) {
|
|
4924
|
-
return (React.createElement(TextInput$1, { cx: cx(css$d.searchInput, 'uui-main_menu-burger-search'), iconPosition: "left", icon: ForwardRef$
|
|
5041
|
+
return (React.createElement(TextInput$1, { cx: cx(css$d.searchInput, 'uui-main_menu-burger-search'), iconPosition: "left", icon: ForwardRef$O, placeholder: props.placeholder, value: props.value, onValueChange: props.onValueChange, onCancel: props.onCancel, cancelIcon: props.value && ForwardRef$R }));
|
|
4925
5042
|
}
|
|
4926
5043
|
|
|
4927
|
-
var css$c = {"root":"
|
|
5044
|
+
var css$c = {"root":"tEiErd","group-header":"jBZk12","groupHeader":"jBZk12","group-name":"WuI71n","groupName":"WuI71n","line":"UxGgi8"};
|
|
4928
5045
|
|
|
4929
5046
|
function BurgerGroupHeader(props) {
|
|
4930
5047
|
return (React.createElement("div", { className: cx(css$c.root, css$c.groupHeader, 'uui-burger-group-header') },
|
|
@@ -4932,7 +5049,7 @@ function BurgerGroupHeader(props) {
|
|
|
4932
5049
|
React.createElement("span", { className: css$c.groupName }, props.caption)));
|
|
4933
5050
|
}
|
|
4934
5051
|
|
|
4935
|
-
var css$b = {"uui-typography":"
|
|
5052
|
+
var css$b = {"uui-typography":"S7G9sC","uuiTypography":"S7G9sC","hero-header":"Gjasnq","heroHeader":"Gjasnq","promo-header":"Tk67qC","promoHeader":"Tk67qC","uui-critical":"PTp1Un","uuiCritical":"PTp1Un","uui-info":"WZRCAb","uuiInfo":"WZRCAb","uui-success":"VtHsU0","uuiSuccess":"VtHsU0","uui-warning":"lzORec","uuiWarning":"lzORec","uui-highlight":"-uUWad","uuiHighlight":"-uUWad","uui-typography-size-12":"_9jZlIJ","uuiTypographySize12":"_9jZlIJ","uui-typography-size-14":"STZlQ8","uuiTypographySize14":"STZlQ8","uui-typography-size-16":"a5Wg0C","uuiTypographySize16":"a5Wg0C","root":"d8L9XE","type-primary":"WL9hwD","typePrimary":"WL9hwD","type-secondary":"TDnu0n","typeSecondary":"TDnu0n"};
|
|
4936
5053
|
|
|
4937
5054
|
const MainMenuButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
4938
5055
|
const { type } = props, clickableProps = __rest(props, ["type"]);
|
|
@@ -4945,10 +5062,10 @@ const MainMenuButton = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
4945
5062
|
props.caption && (React.createElement("div", { className: uuiElement.caption }, props.caption)),
|
|
4946
5063
|
props.count !== undefined && props.count !== null && (React.createElement(CountIndicator, { caption: props.count, color: "neutral", size: "18" })),
|
|
4947
5064
|
props.icon && props.iconPosition === 'right' && (React.createElement(IconContainer, { icon: props.icon, onClick: props.onIconClick })),
|
|
4948
|
-
props.isDropdown && (React.createElement(IconContainer, { icon: ForwardRef$
|
|
5065
|
+
props.isDropdown && (React.createElement(IconContainer, { icon: ForwardRef$Q, flipY: props.isOpen }))));
|
|
4949
5066
|
});
|
|
4950
5067
|
|
|
4951
|
-
var css$a = {"dropdown-body":"
|
|
5068
|
+
var css$a = {"dropdown-body":"_-3Qts7","dropdownBody":"_-3Qts7"};
|
|
4952
5069
|
|
|
4953
5070
|
class MainMenuDropdown extends React.Component {
|
|
4954
5071
|
render() {
|
|
@@ -5003,31 +5120,31 @@ var SvgNavigationGlobalMenuOutlineOutline = function SvgNavigationGlobalMenuOutl
|
|
|
5003
5120
|
};
|
|
5004
5121
|
var ForwardRef$1 = /*#__PURE__*/forwardRef(SvgNavigationGlobalMenuOutlineOutline);
|
|
5005
5122
|
|
|
5006
|
-
var css$9 = {"global-menu-btn":"
|
|
5123
|
+
var css$9 = {"global-menu-btn":"EvIOVk","globalMenuBtn":"EvIOVk","global-menu-icon":"IV2Nbc","globalMenuIcon":"IV2Nbc"};
|
|
5007
5124
|
|
|
5008
5125
|
const GlobalMenu = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement("button", Object.assign({ ref: ref, id: "global_menu_toggle", className: cx(css$9.globalMenuBtn, props.cx) }, props.rawProps),
|
|
5009
5126
|
React.createElement(IconContainer, { size: 36, icon: ForwardRef$1, cx: css$9.globalMenuIcon }))));
|
|
5010
5127
|
|
|
5011
|
-
var css$8 = {"container":"
|
|
5128
|
+
var css$8 = {"container":"_6otY3S","open":"_0jh-Rd","folding-arrow":"cg4DT5","foldingArrow":"cg4DT5"};
|
|
5012
5129
|
|
|
5013
5130
|
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 },
|
|
5014
5131
|
React.createElement(Avatar, { size: "36", img: props.avatarUrl }),
|
|
5015
5132
|
props.icon && React.createElement(IconContainer, { icon: props.icon }),
|
|
5016
5133
|
props.isDropdown && (React.createElement("div", null,
|
|
5017
|
-
React.createElement(IconContainer, { size: 18, icon: ForwardRef$
|
|
5134
|
+
React.createElement(IconContainer, { size: 18, icon: ForwardRef$Q, flipY: props.isOpen, cx: css$8.foldingArrow }))))));
|
|
5018
5135
|
|
|
5019
|
-
var css$7 = {"search-input":"
|
|
5136
|
+
var css$7 = {"search-input":"vLCki4","searchInput":"vLCki4"};
|
|
5020
5137
|
|
|
5021
5138
|
const MainMenuSearch = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement(IEditableDebouncer, Object.assign({}, props, { render: (iEditable) => {
|
|
5022
5139
|
var _a;
|
|
5023
|
-
return (React.createElement(TextInput$1, Object.assign({ iconPosition: "left", icon: ForwardRef$
|
|
5140
|
+
return (React.createElement(TextInput$1, Object.assign({ iconPosition: "left", icon: ForwardRef$O, cancelIcon: ((_a = props.value) === null || _a === void 0 ? void 0 : _a.length) > 0 && ForwardRef$R }, props, iEditable, { ref: ref, cx: cx$1(css$7.searchInput, props.cx) }, props.rawProps)));
|
|
5024
5141
|
} }))));
|
|
5025
5142
|
|
|
5026
|
-
var css$6 = {"container":"
|
|
5143
|
+
var css$6 = {"container":"_03hE-9"};
|
|
5027
5144
|
|
|
5028
5145
|
const MainMenuIcon = /* @__PURE__ */React.forwardRef((props, ref) => (React.createElement(IconButton, Object.assign({ ref: ref, icon: props.icon, cx: cx$1(props.cx, css$6.container) }, props))));
|
|
5029
5146
|
|
|
5030
|
-
var css$5 = {"root":"
|
|
5147
|
+
var css$5 = {"root":"uRVbSA"};
|
|
5031
5148
|
|
|
5032
5149
|
const Anchor = /* @__PURE__ */withMods(Anchor$1, () => [css$5.root]);
|
|
5033
5150
|
|
|
@@ -5085,7 +5202,7 @@ var SvgFileCloudUploadFill = function SvgFileCloudUploadFill(props, ref) {
|
|
|
5085
5202
|
};
|
|
5086
5203
|
var ForwardRef = /*#__PURE__*/forwardRef(SvgFileCloudUploadFill);
|
|
5087
5204
|
|
|
5088
|
-
var css$4 = {"root":"
|
|
5205
|
+
var css$4 = {"root":"S1bF7m","drop-start":"Gel8mZ","dropStart":"Gel8mZ","drop-over":"SN4q4H","dropOver":"SN4q4H","link":"Ur1m7i","drop-area":"vDdcWQ","dropArea":"vDdcWQ","drop-caption":"KyKK48","dropCaption":"KyKK48","icon-blue":"z099Tq","iconBlue":"z099Tq"};
|
|
5089
5206
|
|
|
5090
5207
|
function DropSpot(props) {
|
|
5091
5208
|
const getInfoText = typeof props.infoText === 'string'
|
|
@@ -5103,9 +5220,9 @@ function DropSpot(props) {
|
|
|
5103
5220
|
return React.createElement(DropSpot$1, { render: renderAttachmentArea, onFilesDropped: props.onUploadFiles });
|
|
5104
5221
|
}
|
|
5105
5222
|
|
|
5106
|
-
var css$3 = {"uui-typography":"
|
|
5223
|
+
var css$3 = {"uui-typography":"BTHLK7","uuiTypography":"BTHLK7","hero-header":"K-KlRs","heroHeader":"K-KlRs","promo-header":"ADlt4r","promoHeader":"ADlt4r","uui-critical":"Qp164z","uuiCritical":"Qp164z","uui-info":"PKAC-w","uuiInfo":"PKAC-w","uui-success":"NY25bG","uuiSuccess":"NY25bG","uui-warning":"GL-9e-","uuiWarning":"GL-9e-","uui-highlight":"_51dkE9","uuiHighlight":"_51dkE9","uui-typography-size-12":"VJFKvf","uuiTypographySize12":"VJFKvf","uui-typography-size-14":"iUp3iS","uuiTypographySize14":"iUp3iS","uui-typography-size-16":"_3nuaRf","uuiTypographySize16":"_3nuaRf","root":"b92utw","file-name":"_3iBS25","fileName":"_3iBS25","default-color":"ytSSnl","defaultColor":"ytSSnl","doc-color":"XdPvL4","docColor":"XdPvL4","xls-color":"AxoQBu","xlsColor":"AxoQBu","pdf-color":"WyTchL","pdfColor":"WyTchL","movie-color":"_9owr3w","movieColor":"_9owr3w","img-color":"S1ISHc","imgColor":"S1ISHc","mov-color":"IjjZdf","movColor":"IjjZdf","error-block":"xwE-ta","errorBlock":"xwE-ta","icons-block":"_5mXXPJ","iconsBlock":"_5mXXPJ"};
|
|
5107
5224
|
|
|
5108
|
-
var css$2 = {"root":"
|
|
5225
|
+
var css$2 = {"root":"ciOnoq"};
|
|
5109
5226
|
|
|
5110
5227
|
const SvgCircleProgress = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
5111
5228
|
const outsetRadius = props.size / 2 - 1;
|
|
@@ -5170,7 +5287,7 @@ const FileCard = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
5170
5287
|
};
|
|
5171
5288
|
const renderErrorContent = () => (React.createElement(Tooltip, { content: file.error.message, placement: "bottom-start" },
|
|
5172
5289
|
React.createElement("div", { className: css$3.errorBlock },
|
|
5173
|
-
React.createElement(IconContainer, { icon: ForwardRef$
|
|
5290
|
+
React.createElement(IconContainer, { icon: ForwardRef$y, size: 12 }),
|
|
5174
5291
|
i18n.fileCard.failedUploadErrorMessage)));
|
|
5175
5292
|
const renderSuccessfulContent = () => (React.createElement(Text, { size: "18", fontSize: "14", lineHeight: "18", color: "tertiary" },
|
|
5176
5293
|
fileExtension && `${fileExtension.toUpperCase()}, `,
|
|
@@ -5188,7 +5305,7 @@ const FileCard = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
5188
5305
|
(error === null || error === void 0 ? void 0 : error.isError) ? renderErrorContent() : renderSuccessfulContent()),
|
|
5189
5306
|
React.createElement("div", { className: cx$1(css$3.iconsBlock), onMouseEnter: mouseEnterHandler, onMouseLeave: mouseLeaveHandler },
|
|
5190
5307
|
isLoadingShow && isLoading && React.createElement(SvgCircleProgress, { progress: progress, size: 18 }),
|
|
5191
|
-
isCrossShow && React.createElement(IconButton, { icon: ForwardRef$
|
|
5308
|
+
isCrossShow && React.createElement(IconButton, { icon: ForwardRef$R, onClick: removeHandler })))));
|
|
5192
5309
|
});
|
|
5193
5310
|
|
|
5194
5311
|
const getRecoveryMessageConfig = () => ({
|
|
@@ -5215,22 +5332,25 @@ const getErrorPageConfig = () => ({
|
|
|
5215
5332
|
mobileImageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-illustrations/L_Error_500_Monochrome.svg',
|
|
5216
5333
|
title: i18n.errorHandler.errorPageConfig.serverError.title,
|
|
5217
5334
|
subtitle: i18n.errorHandler.errorPageConfig.serverError.subtitle,
|
|
5335
|
+
supportLink: i18n.errorHandler.supportLink,
|
|
5218
5336
|
},
|
|
5219
5337
|
serviceUnavailable: {
|
|
5220
5338
|
imageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-illustrations/L_Error_503_Monochrome.svg',
|
|
5221
5339
|
mobileImageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-illustrations/L_Error_503_Monochrome.svg',
|
|
5222
5340
|
title: i18n.errorHandler.errorPageConfig.serviceUnavailable.title,
|
|
5223
5341
|
subtitle: i18n.errorHandler.errorPageConfig.serviceUnavailable.subtitle,
|
|
5342
|
+
supportLink: i18n.errorHandler.supportLink,
|
|
5224
5343
|
},
|
|
5225
5344
|
default: {
|
|
5226
5345
|
imageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-illustrations/L_Empty_Monochrome.svg',
|
|
5227
5346
|
mobileImageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-illustrations/L_Empty_Monochrome.svg',
|
|
5228
5347
|
title: i18n.errorHandler.errorPageConfig.default.title,
|
|
5229
5348
|
subtitle: i18n.errorHandler.errorPageConfig.default.subtitle,
|
|
5349
|
+
supportLink: i18n.errorHandler.supportLink,
|
|
5230
5350
|
},
|
|
5231
5351
|
});
|
|
5232
5352
|
|
|
5233
|
-
var css$1 = {"container":"
|
|
5353
|
+
var css$1 = {"container":"_5gu0D9"};
|
|
5234
5354
|
|
|
5235
5355
|
const ErrorPage = (props) => {
|
|
5236
5356
|
const isMobileScreen = isMobile();
|
|
@@ -5238,10 +5358,11 @@ const ErrorPage = (props) => {
|
|
|
5238
5358
|
React__default.createElement("div", { className: "uui-error-content" },
|
|
5239
5359
|
React__default.createElement("img", { className: "uui-error-image", src: isMobileScreen && props.mobileImageUrl ? props.mobileImageUrl : props.imageUrl, alt: "ERROR OCCURRED!" }),
|
|
5240
5360
|
React__default.createElement("div", { className: "uui-error-title" }, props.title),
|
|
5241
|
-
React__default.createElement("div", { className: "uui-error-subtitle" }, props.subtitle)
|
|
5361
|
+
React__default.createElement("div", { className: "uui-error-subtitle" }, props.subtitle),
|
|
5362
|
+
React__default.createElement("div", { className: "uui-error-support-link" }, props === null || props === void 0 ? void 0 : props.supportLink))));
|
|
5242
5363
|
};
|
|
5243
5364
|
|
|
5244
|
-
var css = {"recovery-spinner":"
|
|
5365
|
+
var css = {"recovery-spinner":"MDkORu","recoverySpinner":"MDkORu","recovery-message":"p8UsBu","recoveryMessage":"p8UsBu","modal-blocker":"XZznBv","modalBlocker":"XZznBv","modalFadeIn":"Aj4asz"};
|
|
5245
5366
|
|
|
5246
5367
|
function ErrorHandler(props) {
|
|
5247
5368
|
const { uuiNotifications, uuiModals, uuiApi } = useUuiContext();
|
|
@@ -5292,5 +5413,5 @@ function ErrorHandler(props) {
|
|
|
5292
5413
|
errorType === 'recovery' && renderRecoveryBlocker(errorInfo)));
|
|
5293
5414
|
}
|
|
5294
5415
|
|
|
5295
|
-
export { Accordion, Alert, Anchor, AvatarStack, Badge, Blocker, Burger, BurgerButton, BurgerGroupHeader, BurgerSearch, Button, Calendar, Checkbox, CheckboxGroup, ClearNotification, ColumnHeaderDropdown, ColumnsConfigurationModal, ConfirmationModal, ControlGroup, CountIndicator, DataPickerBody, DataPickerFooter, DataPickerHeader, 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, FilterItemBody, FilterPickerBody, 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, PickerListItem, PickerModal, PickerToggler, PickerTogglerTag, PresetsPanel, ProgressBar, RadioGroup, RadioInput, RangeDatePicker, RangeDatePickerBody, RangeDatePickerInput, RichTextView, ScrollBars, SearchInput, Slider, Snackbar, Spinner, StatusIndicator, SuccessAlert, SuccessNotification, SvgCircleProgress, Switch, TabButton, Tag, Text, TextArea, TextInput, TextPlaceholder, TimePicker, TimePickerBody, Tooltip, VerticalTabButton, VirtualList, WarningAlert, WarningNotification, applyDateSelectionMods, defaultPredicates, getErrorPageConfig, getHighlightRanges, getHighlightedSearchMatches, getRecoveryMessageConfig, i18n, propsMods, rangeDatePickerPresets, renderCell, renderDropMarkers, settings, useColumnsWithFilters, useForm, uuiDatePickerBody, uuiRangeDatePickerBody, uuiTimePicker };
|
|
5416
|
+
export { Accordion, Alert, Anchor, AvatarStack, Badge, Blocker, Burger, BurgerButton, BurgerGroupHeader, BurgerSearch, Button, Calendar, Checkbox, CheckboxGroup, ClearNotification, ColumnHeaderDropdown, ColumnsConfigurationModal, ConfirmationModal, ControlGroup, CountIndicator, DataPickerBody, DataPickerFooter, DataPickerHeader, 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, FilterItemBody, FilterPickerBody, 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, PickerListItem, 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, Tooltip, VerticalTabButton, VirtualList, WarningAlert, WarningNotification, applyDateSelectionMods, defaultPredicates, getErrorPageConfig, getHighlightRanges, getHighlightedSearchMatches, getRecoveryMessageConfig, i18n, propsMods, rangeDatePickerPresets, renderCell, renderDropMarkers, settings, useColumnsWithFilters, useForm, uuiDatePickerBody, uuiRangeDatePickerBody, uuiTimePicker };
|
|
5296
5417
|
//# sourceMappingURL=index.esm.js.map
|