@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.js
CHANGED
|
@@ -49,9 +49,24 @@ var customParseFormat__default = /*#__PURE__*/_interopDefault(customParseFormat)
|
|
|
49
49
|
var isoWeek__default = /*#__PURE__*/_interopDefault(isoWeek);
|
|
50
50
|
var FocusLock__default = /*#__PURE__*/_interopDefault(FocusLock);
|
|
51
51
|
|
|
52
|
+
var _path$R;
|
|
53
|
+
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); }
|
|
54
|
+
var SvgNavigationCloseOutline = function SvgNavigationCloseOutline(props, ref) {
|
|
55
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$R({
|
|
56
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
57
|
+
width: 24,
|
|
58
|
+
height: 24,
|
|
59
|
+
viewBox: "0 0 24 24",
|
|
60
|
+
ref: ref
|
|
61
|
+
}, props), _path$R || (_path$R = /*#__PURE__*/React__namespace.createElement("path", {
|
|
62
|
+
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"
|
|
63
|
+
})));
|
|
64
|
+
};
|
|
65
|
+
var ForwardRef$R = /*#__PURE__*/React.forwardRef(SvgNavigationCloseOutline);
|
|
66
|
+
|
|
52
67
|
var _path$Q;
|
|
53
68
|
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); }
|
|
54
|
-
var
|
|
69
|
+
var SvgNavigationChevronDownOutline = function SvgNavigationChevronDownOutline(props, ref) {
|
|
55
70
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$Q({
|
|
56
71
|
xmlns: "http://www.w3.org/2000/svg",
|
|
57
72
|
width: 24,
|
|
@@ -59,14 +74,14 @@ var SvgNavigationCloseOutline = function SvgNavigationCloseOutline(props, ref) {
|
|
|
59
74
|
viewBox: "0 0 24 24",
|
|
60
75
|
ref: ref
|
|
61
76
|
}, props), _path$Q || (_path$Q = /*#__PURE__*/React__namespace.createElement("path", {
|
|
62
|
-
d: "
|
|
77
|
+
d: "M5.414 8.086 4 9.5l8 8 8-8-1.414-1.414L12 14.672 5.414 8.086z"
|
|
63
78
|
})));
|
|
64
79
|
};
|
|
65
|
-
var ForwardRef$Q = /*#__PURE__*/React.forwardRef(
|
|
80
|
+
var ForwardRef$Q = /*#__PURE__*/React.forwardRef(SvgNavigationChevronDownOutline);
|
|
66
81
|
|
|
67
82
|
var _path$P;
|
|
68
83
|
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); }
|
|
69
|
-
var
|
|
84
|
+
var SvgNotificationDoneOutline = function SvgNotificationDoneOutline(props, ref) {
|
|
70
85
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$P({
|
|
71
86
|
xmlns: "http://www.w3.org/2000/svg",
|
|
72
87
|
width: 24,
|
|
@@ -74,14 +89,14 @@ var SvgNavigationChevronDownOutline = function SvgNavigationChevronDownOutline(p
|
|
|
74
89
|
viewBox: "0 0 24 24",
|
|
75
90
|
ref: ref
|
|
76
91
|
}, props), _path$P || (_path$P = /*#__PURE__*/React__namespace.createElement("path", {
|
|
77
|
-
d: "
|
|
92
|
+
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"
|
|
78
93
|
})));
|
|
79
94
|
};
|
|
80
|
-
var ForwardRef$P = /*#__PURE__*/React.forwardRef(
|
|
95
|
+
var ForwardRef$P = /*#__PURE__*/React.forwardRef(SvgNotificationDoneOutline);
|
|
81
96
|
|
|
82
97
|
var _path$O;
|
|
83
98
|
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); }
|
|
84
|
-
var
|
|
99
|
+
var SvgActionSearchOutline = function SvgActionSearchOutline(props, ref) {
|
|
85
100
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$O({
|
|
86
101
|
xmlns: "http://www.w3.org/2000/svg",
|
|
87
102
|
width: 24,
|
|
@@ -89,14 +104,16 @@ var SvgNotificationDoneOutline = function SvgNotificationDoneOutline(props, ref)
|
|
|
89
104
|
viewBox: "0 0 24 24",
|
|
90
105
|
ref: ref
|
|
91
106
|
}, props), _path$O || (_path$O = /*#__PURE__*/React__namespace.createElement("path", {
|
|
92
|
-
|
|
107
|
+
fillRule: "evenodd",
|
|
108
|
+
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",
|
|
109
|
+
clipRule: "evenodd"
|
|
93
110
|
})));
|
|
94
111
|
};
|
|
95
|
-
var ForwardRef$O = /*#__PURE__*/React.forwardRef(
|
|
112
|
+
var ForwardRef$O = /*#__PURE__*/React.forwardRef(SvgActionSearchOutline);
|
|
96
113
|
|
|
97
114
|
var _path$N;
|
|
98
115
|
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); }
|
|
99
|
-
var
|
|
116
|
+
var SvgActionCalendarFill = function SvgActionCalendarFill(props, ref) {
|
|
100
117
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$N({
|
|
101
118
|
xmlns: "http://www.w3.org/2000/svg",
|
|
102
119
|
width: 24,
|
|
@@ -104,16 +121,14 @@ var SvgActionSearchOutline = function SvgActionSearchOutline(props, ref) {
|
|
|
104
121
|
viewBox: "0 0 24 24",
|
|
105
122
|
ref: ref
|
|
106
123
|
}, props), _path$N || (_path$N = /*#__PURE__*/React__namespace.createElement("path", {
|
|
107
|
-
|
|
108
|
-
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",
|
|
109
|
-
clipRule: "evenodd"
|
|
124
|
+
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"
|
|
110
125
|
})));
|
|
111
126
|
};
|
|
112
|
-
var ForwardRef$N = /*#__PURE__*/React.forwardRef(
|
|
127
|
+
var ForwardRef$N = /*#__PURE__*/React.forwardRef(SvgActionCalendarFill);
|
|
113
128
|
|
|
114
129
|
var _path$M;
|
|
115
130
|
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); }
|
|
116
|
-
var
|
|
131
|
+
var SvgNotificationInfoOutline = function SvgNotificationInfoOutline(props, ref) {
|
|
117
132
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$M({
|
|
118
133
|
xmlns: "http://www.w3.org/2000/svg",
|
|
119
134
|
width: 24,
|
|
@@ -121,14 +136,14 @@ var SvgActionCalendarFill = function SvgActionCalendarFill(props, ref) {
|
|
|
121
136
|
viewBox: "0 0 24 24",
|
|
122
137
|
ref: ref
|
|
123
138
|
}, props), _path$M || (_path$M = /*#__PURE__*/React__namespace.createElement("path", {
|
|
124
|
-
d: "
|
|
139
|
+
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"
|
|
125
140
|
})));
|
|
126
141
|
};
|
|
127
|
-
var ForwardRef$M = /*#__PURE__*/React.forwardRef(
|
|
142
|
+
var ForwardRef$M = /*#__PURE__*/React.forwardRef(SvgNotificationInfoOutline);
|
|
128
143
|
|
|
129
144
|
var _path$L;
|
|
130
145
|
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); }
|
|
131
|
-
var
|
|
146
|
+
var SvgFileFileWordFill = function SvgFileFileWordFill(props, ref) {
|
|
132
147
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$L({
|
|
133
148
|
xmlns: "http://www.w3.org/2000/svg",
|
|
134
149
|
width: 24,
|
|
@@ -136,14 +151,16 @@ var SvgNotificationInfoOutline = function SvgNotificationInfoOutline(props, ref)
|
|
|
136
151
|
viewBox: "0 0 24 24",
|
|
137
152
|
ref: ref
|
|
138
153
|
}, props), _path$L || (_path$L = /*#__PURE__*/React__namespace.createElement("path", {
|
|
139
|
-
|
|
154
|
+
fillRule: "evenodd",
|
|
155
|
+
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",
|
|
156
|
+
clipRule: "evenodd"
|
|
140
157
|
})));
|
|
141
158
|
};
|
|
142
|
-
var ForwardRef$L = /*#__PURE__*/React.forwardRef(
|
|
159
|
+
var ForwardRef$L = /*#__PURE__*/React.forwardRef(SvgFileFileWordFill);
|
|
143
160
|
|
|
144
161
|
var _path$K;
|
|
145
162
|
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); }
|
|
146
|
-
var
|
|
163
|
+
var SvgFileFileExcelFill = function SvgFileFileExcelFill(props, ref) {
|
|
147
164
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$K({
|
|
148
165
|
xmlns: "http://www.w3.org/2000/svg",
|
|
149
166
|
width: 24,
|
|
@@ -152,15 +169,15 @@ var SvgFileFileWordFill = function SvgFileFileWordFill(props, ref) {
|
|
|
152
169
|
ref: ref
|
|
153
170
|
}, props), _path$K || (_path$K = /*#__PURE__*/React__namespace.createElement("path", {
|
|
154
171
|
fillRule: "evenodd",
|
|
155
|
-
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm1.
|
|
172
|
+
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",
|
|
156
173
|
clipRule: "evenodd"
|
|
157
174
|
})));
|
|
158
175
|
};
|
|
159
|
-
var ForwardRef$K = /*#__PURE__*/React.forwardRef(
|
|
176
|
+
var ForwardRef$K = /*#__PURE__*/React.forwardRef(SvgFileFileExcelFill);
|
|
160
177
|
|
|
161
178
|
var _path$J;
|
|
162
179
|
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); }
|
|
163
|
-
var
|
|
180
|
+
var SvgFileFilePdfFill = function SvgFileFilePdfFill(props, ref) {
|
|
164
181
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$J({
|
|
165
182
|
xmlns: "http://www.w3.org/2000/svg",
|
|
166
183
|
width: 24,
|
|
@@ -169,15 +186,15 @@ var SvgFileFileExcelFill = function SvgFileFileExcelFill(props, ref) {
|
|
|
169
186
|
ref: ref
|
|
170
187
|
}, props), _path$J || (_path$J = /*#__PURE__*/React__namespace.createElement("path", {
|
|
171
188
|
fillRule: "evenodd",
|
|
172
|
-
d: "
|
|
189
|
+
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",
|
|
173
190
|
clipRule: "evenodd"
|
|
174
191
|
})));
|
|
175
192
|
};
|
|
176
|
-
var ForwardRef$J = /*#__PURE__*/React.forwardRef(
|
|
193
|
+
var ForwardRef$J = /*#__PURE__*/React.forwardRef(SvgFileFilePdfFill);
|
|
177
194
|
|
|
178
195
|
var _path$I;
|
|
179
196
|
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); }
|
|
180
|
-
var
|
|
197
|
+
var SvgFileFileImageFill = function SvgFileFileImageFill(props, ref) {
|
|
181
198
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$I({
|
|
182
199
|
xmlns: "http://www.w3.org/2000/svg",
|
|
183
200
|
width: 24,
|
|
@@ -186,15 +203,15 @@ var SvgFileFilePdfFill = function SvgFileFilePdfFill(props, ref) {
|
|
|
186
203
|
ref: ref
|
|
187
204
|
}, props), _path$I || (_path$I = /*#__PURE__*/React__namespace.createElement("path", {
|
|
188
205
|
fillRule: "evenodd",
|
|
189
|
-
d: "M13 9h5.5L13 3.5V9zM6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-
|
|
206
|
+
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",
|
|
190
207
|
clipRule: "evenodd"
|
|
191
208
|
})));
|
|
192
209
|
};
|
|
193
|
-
var ForwardRef$I = /*#__PURE__*/React.forwardRef(
|
|
210
|
+
var ForwardRef$I = /*#__PURE__*/React.forwardRef(SvgFileFileImageFill);
|
|
194
211
|
|
|
195
|
-
var _path$H;
|
|
212
|
+
var _path$H, _path2$5;
|
|
196
213
|
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); }
|
|
197
|
-
var
|
|
214
|
+
var SvgFileFileVideoFill = function SvgFileFileVideoFill(props, ref) {
|
|
198
215
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$H({
|
|
199
216
|
xmlns: "http://www.w3.org/2000/svg",
|
|
200
217
|
width: 24,
|
|
@@ -202,16 +219,18 @@ var SvgFileFileImageFill = function SvgFileFileImageFill(props, ref) {
|
|
|
202
219
|
viewBox: "0 0 24 24",
|
|
203
220
|
ref: ref
|
|
204
221
|
}, props), _path$H || (_path$H = /*#__PURE__*/React__namespace.createElement("path", {
|
|
222
|
+
d: "M14.992 14 9.5 17.138v-6.276L14.992 14z"
|
|
223
|
+
})), _path2$5 || (_path2$5 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
205
224
|
fillRule: "evenodd",
|
|
206
|
-
d: "
|
|
225
|
+
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",
|
|
207
226
|
clipRule: "evenodd"
|
|
208
227
|
})));
|
|
209
228
|
};
|
|
210
|
-
var ForwardRef$H = /*#__PURE__*/React.forwardRef(
|
|
229
|
+
var ForwardRef$H = /*#__PURE__*/React.forwardRef(SvgFileFileVideoFill);
|
|
211
230
|
|
|
212
|
-
var _path$G
|
|
231
|
+
var _path$G;
|
|
213
232
|
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); }
|
|
214
|
-
var
|
|
233
|
+
var SvgFileFileTableFill = function SvgFileFileTableFill(props, ref) {
|
|
215
234
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$G({
|
|
216
235
|
xmlns: "http://www.w3.org/2000/svg",
|
|
217
236
|
width: 24,
|
|
@@ -219,18 +238,16 @@ var SvgFileFileVideoFill = function SvgFileFileVideoFill(props, ref) {
|
|
|
219
238
|
viewBox: "0 0 24 24",
|
|
220
239
|
ref: ref
|
|
221
240
|
}, props), _path$G || (_path$G = /*#__PURE__*/React__namespace.createElement("path", {
|
|
222
|
-
d: "M14.992 14 9.5 17.138v-6.276L14.992 14z"
|
|
223
|
-
})), _path2$5 || (_path2$5 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
224
241
|
fillRule: "evenodd",
|
|
225
|
-
d: "
|
|
242
|
+
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",
|
|
226
243
|
clipRule: "evenodd"
|
|
227
244
|
})));
|
|
228
245
|
};
|
|
229
|
-
var ForwardRef$G = /*#__PURE__*/React.forwardRef(
|
|
246
|
+
var ForwardRef$G = /*#__PURE__*/React.forwardRef(SvgFileFileTableFill);
|
|
230
247
|
|
|
231
248
|
var _path$F;
|
|
232
249
|
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); }
|
|
233
|
-
var
|
|
250
|
+
var SvgFileFileTextFill = function SvgFileFileTextFill(props, ref) {
|
|
234
251
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$F({
|
|
235
252
|
xmlns: "http://www.w3.org/2000/svg",
|
|
236
253
|
width: 24,
|
|
@@ -239,15 +256,15 @@ var SvgFileFileTableFill = function SvgFileFileTableFill(props, ref) {
|
|
|
239
256
|
ref: ref
|
|
240
257
|
}, props), _path$F || (_path$F = /*#__PURE__*/React__namespace.createElement("path", {
|
|
241
258
|
fillRule: "evenodd",
|
|
242
|
-
d: "
|
|
259
|
+
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",
|
|
243
260
|
clipRule: "evenodd"
|
|
244
261
|
})));
|
|
245
262
|
};
|
|
246
|
-
var ForwardRef$F = /*#__PURE__*/React.forwardRef(
|
|
263
|
+
var ForwardRef$F = /*#__PURE__*/React.forwardRef(SvgFileFileTextFill);
|
|
247
264
|
|
|
248
265
|
var _path$E;
|
|
249
266
|
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); }
|
|
250
|
-
var
|
|
267
|
+
var SvgFileFileEmlFill = function SvgFileFileEmlFill(props, ref) {
|
|
251
268
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$E({
|
|
252
269
|
xmlns: "http://www.w3.org/2000/svg",
|
|
253
270
|
width: 24,
|
|
@@ -256,15 +273,15 @@ var SvgFileFileTextFill = function SvgFileFileTextFill(props, ref) {
|
|
|
256
273
|
ref: ref
|
|
257
274
|
}, props), _path$E || (_path$E = /*#__PURE__*/React__namespace.createElement("path", {
|
|
258
275
|
fillRule: "evenodd",
|
|
259
|
-
d: "
|
|
276
|
+
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",
|
|
260
277
|
clipRule: "evenodd"
|
|
261
278
|
})));
|
|
262
279
|
};
|
|
263
|
-
var ForwardRef$E = /*#__PURE__*/React.forwardRef(
|
|
280
|
+
var ForwardRef$E = /*#__PURE__*/React.forwardRef(SvgFileFileEmlFill);
|
|
264
281
|
|
|
265
282
|
var _path$D;
|
|
266
283
|
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); }
|
|
267
|
-
var
|
|
284
|
+
var SvgFileFileFill = function SvgFileFileFill(props, ref) {
|
|
268
285
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$D({
|
|
269
286
|
xmlns: "http://www.w3.org/2000/svg",
|
|
270
287
|
width: 24,
|
|
@@ -272,51 +289,35 @@ var SvgFileFileEmlFill = function SvgFileFileEmlFill(props, ref) {
|
|
|
272
289
|
viewBox: "0 0 24 24",
|
|
273
290
|
ref: ref
|
|
274
291
|
}, props), _path$D || (_path$D = /*#__PURE__*/React__namespace.createElement("path", {
|
|
275
|
-
fillRule: "evenodd",
|
|
276
|
-
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",
|
|
277
|
-
clipRule: "evenodd"
|
|
278
|
-
})));
|
|
279
|
-
};
|
|
280
|
-
var ForwardRef$D = /*#__PURE__*/React.forwardRef(SvgFileFileEmlFill);
|
|
281
|
-
|
|
282
|
-
var _path$C;
|
|
283
|
-
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); }
|
|
284
|
-
var SvgFileFileFill = function SvgFileFileFill(props, ref) {
|
|
285
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$C({
|
|
286
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
287
|
-
width: 24,
|
|
288
|
-
height: 24,
|
|
289
|
-
viewBox: "0 0 24 24",
|
|
290
|
-
ref: ref
|
|
291
|
-
}, props), _path$C || (_path$C = /*#__PURE__*/React__namespace.createElement("path", {
|
|
292
292
|
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"
|
|
293
293
|
})));
|
|
294
294
|
};
|
|
295
|
-
var ForwardRef$
|
|
295
|
+
var ForwardRef$D = /*#__PURE__*/React.forwardRef(SvgFileFileFill);
|
|
296
296
|
|
|
297
297
|
const fileIcons = {
|
|
298
|
-
docIcon: ForwardRef$
|
|
299
|
-
exelIcon: ForwardRef$
|
|
300
|
-
pdfIcon: ForwardRef$
|
|
301
|
-
imgIcon: ForwardRef$
|
|
302
|
-
videoIcon: ForwardRef$
|
|
303
|
-
tableIcon: ForwardRef$
|
|
304
|
-
textIcon: ForwardRef$
|
|
305
|
-
mailIcon: ForwardRef$
|
|
306
|
-
fileIcon: ForwardRef$
|
|
298
|
+
docIcon: ForwardRef$L,
|
|
299
|
+
exelIcon: ForwardRef$K,
|
|
300
|
+
pdfIcon: ForwardRef$J,
|
|
301
|
+
imgIcon: ForwardRef$I,
|
|
302
|
+
videoIcon: ForwardRef$H,
|
|
303
|
+
tableIcon: ForwardRef$G,
|
|
304
|
+
textIcon: ForwardRef$F,
|
|
305
|
+
mailIcon: ForwardRef$E,
|
|
306
|
+
fileIcon: ForwardRef$D,
|
|
307
307
|
};
|
|
308
308
|
const systemIcons = {
|
|
309
|
-
clear: ForwardRef$
|
|
310
|
-
foldingArrow: ForwardRef$
|
|
311
|
-
accept: ForwardRef$
|
|
312
|
-
search: ForwardRef$
|
|
313
|
-
calendar: ForwardRef$
|
|
314
|
-
info: ForwardRef$
|
|
309
|
+
clear: ForwardRef$R,
|
|
310
|
+
foldingArrow: ForwardRef$Q,
|
|
311
|
+
accept: ForwardRef$P,
|
|
312
|
+
search: ForwardRef$O,
|
|
313
|
+
calendar: ForwardRef$N,
|
|
314
|
+
info: ForwardRef$M,
|
|
315
315
|
};
|
|
316
316
|
|
|
317
317
|
const settings = {
|
|
318
318
|
sizes: {
|
|
319
319
|
defaults: {
|
|
320
|
+
alert: '48',
|
|
320
321
|
badge: '36',
|
|
321
322
|
button: '36',
|
|
322
323
|
checkbox: '18',
|
|
@@ -335,6 +336,13 @@ const settings = {
|
|
|
335
336
|
labeledInput: '36',
|
|
336
337
|
statusIndicator: '24',
|
|
337
338
|
paginator: '30',
|
|
339
|
+
rating: '18',
|
|
340
|
+
},
|
|
341
|
+
alert: {
|
|
342
|
+
action: {
|
|
343
|
+
36: '24',
|
|
344
|
+
48: '30',
|
|
345
|
+
},
|
|
338
346
|
},
|
|
339
347
|
tag: {
|
|
340
348
|
countIndicator: {
|
|
@@ -547,6 +555,25 @@ const settings = {
|
|
|
547
555
|
},
|
|
548
556
|
truncate: ['48'],
|
|
549
557
|
},
|
|
558
|
+
groupCell: {
|
|
559
|
+
defaults: {
|
|
560
|
+
size: '36',
|
|
561
|
+
padding: '12',
|
|
562
|
+
paddingEdge: '24',
|
|
563
|
+
},
|
|
564
|
+
columnCaption: {
|
|
565
|
+
fontSize: '14',
|
|
566
|
+
fontWeight: '400',
|
|
567
|
+
size: '18',
|
|
568
|
+
uppercase: '12',
|
|
569
|
+
},
|
|
570
|
+
iconSize: {
|
|
571
|
+
36: '18',
|
|
572
|
+
48: '18',
|
|
573
|
+
60: '18',
|
|
574
|
+
},
|
|
575
|
+
truncate: ['48'],
|
|
576
|
+
},
|
|
550
577
|
},
|
|
551
578
|
},
|
|
552
579
|
body: {
|
|
@@ -595,11 +622,11 @@ const settings = {
|
|
|
595
622
|
},
|
|
596
623
|
};
|
|
597
624
|
|
|
598
|
-
var css$
|
|
625
|
+
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"};
|
|
599
626
|
|
|
600
627
|
function applyButtonMods(mods) {
|
|
601
628
|
return [
|
|
602
|
-
css$
|
|
629
|
+
css$1y.root,
|
|
603
630
|
'uui-button',
|
|
604
631
|
`uui-fill-${mods.fill || 'solid'}`,
|
|
605
632
|
`uui-color-${mods.color || 'primary'}`,
|
|
@@ -613,10 +640,10 @@ const Button = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Button,
|
|
|
613
640
|
};
|
|
614
641
|
});
|
|
615
642
|
|
|
616
|
-
var css$
|
|
643
|
+
var css$1x = {"root":"l38xLY"};
|
|
617
644
|
|
|
618
645
|
function applyIconButtonMods(props) {
|
|
619
|
-
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$
|
|
646
|
+
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$1x.root];
|
|
620
647
|
}
|
|
621
648
|
const IconButton = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.IconButton, applyIconButtonMods, (props) => {
|
|
622
649
|
const isDeprecated = ['info', 'success', 'error', 'warning'].includes(props.color);
|
|
@@ -650,7 +677,7 @@ function getIconClass(props) {
|
|
|
650
677
|
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'];
|
|
651
678
|
}
|
|
652
679
|
|
|
653
|
-
var css$
|
|
680
|
+
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"};
|
|
654
681
|
|
|
655
682
|
const DEFAULT_COLOR = 'primary';
|
|
656
683
|
const DEFAULT_WEIGHT = 'semibold';
|
|
@@ -666,7 +693,7 @@ const LinkButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
666
693
|
}
|
|
667
694
|
const rootStyles = [
|
|
668
695
|
'uui-link_button',
|
|
669
|
-
css$
|
|
696
|
+
css$1w.root,
|
|
670
697
|
`uui-size-${props.size || settings.sizes.defaults.linkButton}`,
|
|
671
698
|
...getIconClass(props),
|
|
672
699
|
`uui-color-${props.color || DEFAULT_COLOR}`,
|
|
@@ -681,11 +708,11 @@ const LinkButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
681
708
|
props.isDropdown && (React__namespace.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
682
709
|
});
|
|
683
710
|
|
|
684
|
-
var css$
|
|
711
|
+
var css$1v = {"root":"AK7DaS"};
|
|
685
712
|
|
|
686
713
|
const CountIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
687
714
|
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
688
|
-
css$
|
|
715
|
+
css$1v.root,
|
|
689
716
|
'uui-count_indicator',
|
|
690
717
|
`uui-size-${props.size || settings.sizes.defaults.countIndicator}`,
|
|
691
718
|
props.color && `uui-color-${props.color}`,
|
|
@@ -693,11 +720,11 @@ const CountIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
693
720
|
]) }, props.caption));
|
|
694
721
|
});
|
|
695
722
|
|
|
696
|
-
var css$
|
|
723
|
+
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"};
|
|
697
724
|
|
|
698
725
|
const TabButton = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
699
726
|
const styles = [
|
|
700
|
-
css$
|
|
727
|
+
css$1u.root,
|
|
701
728
|
'uui-tab-button',
|
|
702
729
|
`uui-size-${props.size || settings.sizes.defaults.tabButton}`,
|
|
703
730
|
...getIconClass(props),
|
|
@@ -709,48 +736,48 @@ const TabButton = /* @__PURE__ */React__namespace.default.forwardRef((props, ref
|
|
|
709
736
|
props.icon && props.iconPosition !== 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
710
737
|
(props.caption || props.withNotify) && (React__namespace.default.createElement("div", { className: uuiCore.cx(uuiCore.uuiElement.caption) },
|
|
711
738
|
props.caption,
|
|
712
|
-
props.withNotify && React__namespace.default.createElement("div", { className: css$
|
|
739
|
+
props.withNotify && React__namespace.default.createElement("div", { className: css$1u.withNotify }))),
|
|
713
740
|
props.icon && props.iconPosition === 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
714
741
|
props.count !== undefined && props.count !== null && (React__namespace.default.createElement(CountIndicator, { color: "neutral", size: settings.sizes.tabButton.countIndicator[props.size || settings.sizes.defaults.tabButton], caption: props.count })),
|
|
715
742
|
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
716
743
|
props.onClear && !props.isDisabled && (React__namespace.default.createElement(uuiComponents.IconContainer, { cx: uuiCore.uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
717
744
|
});
|
|
718
745
|
|
|
719
|
-
var css$
|
|
746
|
+
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"};
|
|
720
747
|
|
|
721
748
|
function applyVerticalTabButtonMods() {
|
|
722
|
-
return [css$
|
|
749
|
+
return [css$1t.root, 'uui-vertical-tab-button'];
|
|
723
750
|
}
|
|
724
751
|
const VerticalTabButton = /* @__PURE__ */uuiCore.withMods(TabButton, applyVerticalTabButtonMods);
|
|
725
752
|
|
|
726
|
-
var _path$
|
|
727
|
-
function _extends$
|
|
753
|
+
var _path$C;
|
|
754
|
+
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); }
|
|
728
755
|
var SvgContentMinusOutline = function SvgContentMinusOutline(props, ref) {
|
|
729
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
756
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$C({
|
|
730
757
|
xmlns: "http://www.w3.org/2000/svg",
|
|
731
758
|
width: 24,
|
|
732
759
|
height: 24,
|
|
733
760
|
viewBox: "0 0 24 24",
|
|
734
761
|
ref: ref
|
|
735
|
-
}, props), _path$
|
|
762
|
+
}, props), _path$C || (_path$C = /*#__PURE__*/React__namespace.createElement("path", {
|
|
736
763
|
d: "M19 10.5H5v3h14v-3z"
|
|
737
764
|
})));
|
|
738
765
|
};
|
|
739
|
-
var ForwardRef$
|
|
766
|
+
var ForwardRef$C = /*#__PURE__*/React.forwardRef(SvgContentMinusOutline);
|
|
740
767
|
|
|
741
|
-
var css$
|
|
768
|
+
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"};
|
|
742
769
|
|
|
743
770
|
function applyCheckboxMods(mods) {
|
|
744
771
|
return [
|
|
745
|
-
css$
|
|
772
|
+
css$1s.root,
|
|
746
773
|
`uui-size-${mods.size || settings.sizes.defaults.checkbox}`,
|
|
747
|
-
css$
|
|
774
|
+
css$1s['mode-' + (mods.mode || 'form')],
|
|
748
775
|
'uui-color-primary',
|
|
749
776
|
];
|
|
750
777
|
}
|
|
751
778
|
const applyUUICheckboxProps = (props) => {
|
|
752
|
-
const defaultIcon = ForwardRef$
|
|
753
|
-
const defaultIndeterminateIcon = ForwardRef$
|
|
779
|
+
const defaultIcon = ForwardRef$P;
|
|
780
|
+
const defaultIndeterminateIcon = ForwardRef$C;
|
|
754
781
|
return {
|
|
755
782
|
icon: props.icon ? props.icon : defaultIcon,
|
|
756
783
|
indeterminateIcon: props.indeterminateIcon ? props.indeterminateIcon : defaultIndeterminateIcon,
|
|
@@ -758,38 +785,38 @@ const applyUUICheckboxProps = (props) => {
|
|
|
758
785
|
};
|
|
759
786
|
const Checkbox = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Checkbox, applyCheckboxMods, applyUUICheckboxProps);
|
|
760
787
|
|
|
761
|
-
var _path$
|
|
762
|
-
function _extends$
|
|
788
|
+
var _path$B;
|
|
789
|
+
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); }
|
|
763
790
|
var SvgRadioDotFill = function SvgRadioDotFill(props, ref) {
|
|
764
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
791
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$B({
|
|
765
792
|
xmlns: "http://www.w3.org/2000/svg",
|
|
766
793
|
width: 24,
|
|
767
794
|
height: 24,
|
|
768
795
|
viewBox: "0 0 24 24",
|
|
769
796
|
ref: ref
|
|
770
|
-
}, props), _path$
|
|
797
|
+
}, props), _path$B || (_path$B = /*#__PURE__*/React__namespace.createElement("path", {
|
|
771
798
|
d: "M12 19a7 7 0 1 0 0-14 7 7 0 0 0 0 14z"
|
|
772
799
|
})));
|
|
773
800
|
};
|
|
774
|
-
var ForwardRef$
|
|
801
|
+
var ForwardRef$B = /*#__PURE__*/React.forwardRef(SvgRadioDotFill);
|
|
775
802
|
|
|
776
|
-
var css$
|
|
803
|
+
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"};
|
|
777
804
|
|
|
778
805
|
function applyRadioInputMods(mods) {
|
|
779
806
|
return [
|
|
780
|
-
css$
|
|
807
|
+
css$1r.root,
|
|
781
808
|
`uui-size-${mods.size || settings.sizes.defaults.radioInput}`,
|
|
782
809
|
'uui-radio-input-container',
|
|
783
810
|
'uui-color-primary',
|
|
784
811
|
];
|
|
785
812
|
}
|
|
786
|
-
const RadioInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.RadioInput, applyRadioInputMods, (props) => ({ icon: props.icon ? props.icon : ForwardRef$
|
|
813
|
+
const RadioInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.RadioInput, applyRadioInputMods, (props) => ({ icon: props.icon ? props.icon : ForwardRef$B }));
|
|
787
814
|
|
|
788
|
-
var css$
|
|
815
|
+
var css$1q = {"root":"u4SGkZ"};
|
|
789
816
|
|
|
790
817
|
function applySwitchMods(mods) {
|
|
791
818
|
return [
|
|
792
|
-
css$
|
|
819
|
+
css$1q.root,
|
|
793
820
|
`uui-size-${mods.size || settings.sizes.defaults.switch}`,
|
|
794
821
|
'uui-color-primary',
|
|
795
822
|
];
|
|
@@ -853,7 +880,7 @@ var EditMode;
|
|
|
853
880
|
EditMode["INLINE"] = "inline";
|
|
854
881
|
})(EditMode || (EditMode = {}));
|
|
855
882
|
|
|
856
|
-
var textInputCss = {"uui-typography":"
|
|
883
|
+
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"};
|
|
857
884
|
|
|
858
885
|
const DEFAULT_MODE$3 = EditMode.FORM;
|
|
859
886
|
function applyTextInputMods(mods) {
|
|
@@ -879,22 +906,22 @@ const SearchInput = /* @__PURE__ */React__namespace.default.forwardRef((props, r
|
|
|
879
906
|
} })));
|
|
880
907
|
});
|
|
881
908
|
|
|
882
|
-
var css$
|
|
909
|
+
var css$1p = {"root":"-UksMn"};
|
|
883
910
|
|
|
884
|
-
const ControlGroup = /* @__PURE__ */uuiCore.withMods(uuiComponents.ControlGroup, () => [css$
|
|
911
|
+
const ControlGroup = /* @__PURE__ */uuiCore.withMods(uuiComponents.ControlGroup, () => [css$1p.root, 'uui-control-group']);
|
|
885
912
|
|
|
886
913
|
function MultiSwitchComponent(props, ref) {
|
|
887
914
|
return (React__namespace.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__namespace.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' } }))))));
|
|
888
915
|
}
|
|
889
916
|
const MultiSwitch = /* @__PURE__ */React__namespace.forwardRef(MultiSwitchComponent);
|
|
890
917
|
|
|
891
|
-
var css$
|
|
918
|
+
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"};
|
|
892
919
|
|
|
893
920
|
const DEFAULT_MODE$2 = EditMode.FORM;
|
|
894
921
|
function applyNumericInputMods(mods) {
|
|
895
922
|
return [
|
|
896
923
|
textInputCss.root,
|
|
897
|
-
css$
|
|
924
|
+
css$1o.root,
|
|
898
925
|
`uui-size-${mods.size || settings.sizes.defaults.numericInput}`,
|
|
899
926
|
textInputCss['mode-' + (mods.mode || DEFAULT_MODE$2)],
|
|
900
927
|
];
|
|
@@ -909,15 +936,15 @@ const NumericInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.NumericInput,
|
|
|
909
936
|
};
|
|
910
937
|
});
|
|
911
938
|
|
|
912
|
-
var css$
|
|
939
|
+
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"};
|
|
913
940
|
|
|
914
941
|
const DEFAULT_MODE$1 = EditMode.FORM;
|
|
915
942
|
function applyTextAreaMods(mods) {
|
|
916
943
|
return [
|
|
917
|
-
css$
|
|
944
|
+
css$1n.root,
|
|
918
945
|
'uui-textarea',
|
|
919
946
|
'uui-size-' + (mods.size || settings.sizes.defaults.textArea),
|
|
920
|
-
css$
|
|
947
|
+
css$1n['mode-' + (mods.mode || DEFAULT_MODE$1)],
|
|
921
948
|
];
|
|
922
949
|
}
|
|
923
950
|
const TextArea = /* @__PURE__ */uuiCore.withMods(uuiComponents.TextArea, applyTextAreaMods, (props) => {
|
|
@@ -950,95 +977,96 @@ function TREE_SHAKEABLE_INIT$1() {
|
|
|
950
977
|
};
|
|
951
978
|
}
|
|
952
979
|
|
|
953
|
-
var _path$
|
|
954
|
-
function _extends$
|
|
980
|
+
var _path$A;
|
|
981
|
+
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); }
|
|
955
982
|
var SvgNotificationCheckFill = function SvgNotificationCheckFill(props, ref) {
|
|
956
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
983
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$A({
|
|
957
984
|
xmlns: "http://www.w3.org/2000/svg",
|
|
958
985
|
width: 24,
|
|
959
986
|
height: 24,
|
|
960
987
|
viewBox: "0 0 24 24",
|
|
961
988
|
ref: ref
|
|
962
|
-
}, props), _path$
|
|
989
|
+
}, props), _path$A || (_path$A = /*#__PURE__*/React__namespace.createElement("path", {
|
|
963
990
|
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"
|
|
964
991
|
})));
|
|
965
992
|
};
|
|
966
|
-
var ForwardRef$
|
|
993
|
+
var ForwardRef$A = /*#__PURE__*/React.forwardRef(SvgNotificationCheckFill);
|
|
967
994
|
|
|
968
|
-
var _path$
|
|
969
|
-
function _extends$
|
|
995
|
+
var _path$z;
|
|
996
|
+
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); }
|
|
970
997
|
var SvgNotificationWarningFill = function SvgNotificationWarningFill(props, ref) {
|
|
971
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
998
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$z({
|
|
972
999
|
xmlns: "http://www.w3.org/2000/svg",
|
|
973
1000
|
width: 24,
|
|
974
1001
|
height: 24,
|
|
975
1002
|
viewBox: "0 0 24 24",
|
|
976
1003
|
ref: ref
|
|
977
|
-
}, props), _path$
|
|
1004
|
+
}, props), _path$z || (_path$z = /*#__PURE__*/React__namespace.createElement("path", {
|
|
978
1005
|
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"
|
|
979
1006
|
})));
|
|
980
1007
|
};
|
|
981
|
-
var ForwardRef$
|
|
1008
|
+
var ForwardRef$z = /*#__PURE__*/React.forwardRef(SvgNotificationWarningFill);
|
|
982
1009
|
|
|
983
|
-
var _path$
|
|
984
|
-
function _extends$
|
|
1010
|
+
var _path$y;
|
|
1011
|
+
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); }
|
|
985
1012
|
var SvgNotificationErrorFill = function SvgNotificationErrorFill(props, ref) {
|
|
986
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1013
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$y({
|
|
987
1014
|
xmlns: "http://www.w3.org/2000/svg",
|
|
988
1015
|
width: 24,
|
|
989
1016
|
height: 24,
|
|
990
1017
|
viewBox: "0 0 24 24",
|
|
991
1018
|
ref: ref
|
|
992
|
-
}, props), _path$
|
|
1019
|
+
}, props), _path$y || (_path$y = /*#__PURE__*/React__namespace.createElement("path", {
|
|
993
1020
|
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"
|
|
994
1021
|
})));
|
|
995
1022
|
};
|
|
996
|
-
var ForwardRef$
|
|
1023
|
+
var ForwardRef$y = /*#__PURE__*/React.forwardRef(SvgNotificationErrorFill);
|
|
997
1024
|
|
|
998
|
-
var _path$
|
|
999
|
-
function _extends$
|
|
1025
|
+
var _path$x;
|
|
1026
|
+
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); }
|
|
1000
1027
|
var SvgNotificationInfoFill = function SvgNotificationInfoFill(props, ref) {
|
|
1001
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1028
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$x({
|
|
1002
1029
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1003
1030
|
width: 24,
|
|
1004
1031
|
height: 24,
|
|
1005
1032
|
viewBox: "0 0 24 24",
|
|
1006
1033
|
ref: ref
|
|
1007
|
-
}, props), _path$
|
|
1034
|
+
}, props), _path$x || (_path$x = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1008
1035
|
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"
|
|
1009
1036
|
})));
|
|
1010
1037
|
};
|
|
1011
|
-
var ForwardRef$
|
|
1012
|
-
|
|
1013
|
-
var css$
|
|
1014
|
-
|
|
1015
|
-
const Alert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("div", Object.assign({ role: "alert", ref: ref, className: cx__default.default('uui-alert', css$
|
|
1016
|
-
React__namespace.createElement("div", { className: css$
|
|
1017
|
-
|
|
1018
|
-
React__namespace.createElement(
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
const
|
|
1025
|
-
const
|
|
1026
|
-
const
|
|
1038
|
+
var ForwardRef$x = /*#__PURE__*/React.forwardRef(SvgNotificationInfoFill);
|
|
1039
|
+
|
|
1040
|
+
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"};
|
|
1041
|
+
|
|
1042
|
+
const Alert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("div", Object.assign({ role: "alert", ref: ref, className: cx__default.default('uui-alert', css$1m.root, props.color && `uui-color-${props.color}`, props.cx, `uui-size-${props.size || settings.sizes.defaults.alert}`) }, props.rawProps),
|
|
1043
|
+
React__namespace.createElement("div", { className: css$1m.mainPath },
|
|
1044
|
+
React__namespace.createElement("div", { className: css$1m.contentWrapper },
|
|
1045
|
+
props.icon && (React__namespace.createElement("div", { className: css$1m.iconWrapper },
|
|
1046
|
+
React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$1m.icon }))),
|
|
1047
|
+
React__namespace.createElement("div", { className: css$1m.content },
|
|
1048
|
+
props.children,
|
|
1049
|
+
props.actions && (React__namespace.createElement("div", { className: css$1m.actionWrapper }, props.actions.map((action) => (React__namespace.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] }))))))),
|
|
1050
|
+
props.onClose && React__namespace.createElement(IconButton, { icon: ForwardRef$R, color: "neutral", onClick: props.onClose, cx: css$1m.closeIcon })))));
|
|
1051
|
+
const WarningAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$z, color: "warning", ref: ref }, props)));
|
|
1052
|
+
const SuccessAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$A, color: "success", ref: ref }, props)));
|
|
1053
|
+
const HintAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$x, color: "info", ref: ref }, props)));
|
|
1054
|
+
const ErrorAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$y, color: "error", ref: ref }, props)));
|
|
1027
1055
|
|
|
1028
1056
|
const Dropdown = /* @__PURE__ */uuiCore.withMods(uuiComponents.Dropdown);
|
|
1029
1057
|
|
|
1030
|
-
var css$
|
|
1058
|
+
var css$1l = {"root":"yr1ZfS"};
|
|
1031
1059
|
|
|
1032
1060
|
function applyDropdownContainerMods(mods) {
|
|
1033
1061
|
return [
|
|
1034
|
-
css$
|
|
1062
|
+
css$1l.root,
|
|
1035
1063
|
mods.vPadding && `vPadding-${mods.vPadding}`,
|
|
1036
1064
|
mods.padding && `padding-${mods.padding}`,
|
|
1037
1065
|
];
|
|
1038
1066
|
}
|
|
1039
1067
|
const DropdownContainer = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.DropdownContainer, applyDropdownContainerMods);
|
|
1040
1068
|
|
|
1041
|
-
var css$
|
|
1069
|
+
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"};
|
|
1042
1070
|
|
|
1043
1071
|
exports.IDropdownControlKeys = void 0;
|
|
1044
1072
|
(function (IDropdownControlKeys) {
|
|
@@ -1099,17 +1127,17 @@ const DropdownMenuButton = /* @__PURE__ */React__namespace.default.forwardRef((p
|
|
|
1099
1127
|
const getMenuButtonContent = () => {
|
|
1100
1128
|
const isIconBefore = Boolean(icon && iconPosition !== 'right');
|
|
1101
1129
|
const isIconAfter = Boolean(icon && iconPosition === 'right');
|
|
1102
|
-
const iconElement = (React__namespace.default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: uuiCore.cx(css$
|
|
1130
|
+
const iconElement = (React__namespace.default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: uuiCore.cx(css$1k.icon, iconPosition === 'right' ? css$1k.iconAfter : css$1k.iconBefore) }));
|
|
1103
1131
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1104
1132
|
isIconBefore && iconElement,
|
|
1105
|
-
React__namespace.default.createElement(uuiComponents.Text, { cx: props.indent && css$
|
|
1133
|
+
React__namespace.default.createElement(uuiComponents.Text, { cx: props.indent && css$1k.indent }, caption),
|
|
1106
1134
|
isIconAfter && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1107
1135
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1108
1136
|
iconElement))));
|
|
1109
1137
|
};
|
|
1110
1138
|
const isAnchor = Boolean(link || href);
|
|
1111
|
-
const itemClassNames = uuiCore.cx(props.cx, css$
|
|
1112
|
-
return isAnchor ? (React__namespace.default.createElement(uuiComponents.Anchor, { cx: uuiCore.cx(css$
|
|
1139
|
+
const itemClassNames = uuiCore.cx(props.cx, css$1k.itemRoot, isDisabled && uuiCore.uuiMod.disabled, isActive && uuiCore.uuiMod.active, isOpen && uuiCore.uuiMod.opened);
|
|
1140
|
+
return isAnchor ? (React__namespace.default.createElement(uuiComponents.Anchor, { cx: uuiCore.cx(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__namespace.default.createElement(uuiComponents.FlexRow, { rawProps: {
|
|
1113
1141
|
tabIndex: isDisabled ? -1 : 0,
|
|
1114
1142
|
role: 'menuitem',
|
|
1115
1143
|
onKeyDown: isDisabled ? null : handleOpenDropdown,
|
|
@@ -1117,15 +1145,15 @@ const DropdownMenuButton = /* @__PURE__ */React__namespace.default.forwardRef((p
|
|
|
1117
1145
|
getMenuButtonContent(),
|
|
1118
1146
|
isSelected && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1119
1147
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1120
|
-
React__namespace.default.createElement(uuiComponents.IconContainer, { icon: systemIcons.accept, cx: css$
|
|
1148
|
+
React__namespace.default.createElement(uuiComponents.IconContainer, { icon: systemIcons.accept, cx: css$1k.selectedMark })))));
|
|
1121
1149
|
});
|
|
1122
1150
|
function DropdownMenuSplitter(props) {
|
|
1123
|
-
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$
|
|
1124
|
-
React__namespace.default.createElement("hr", { className: css$
|
|
1151
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$1k.splitterRoot) },
|
|
1152
|
+
React__namespace.default.createElement("hr", { className: css$1k.splitter })));
|
|
1125
1153
|
}
|
|
1126
1154
|
function DropdownMenuHeader(props) {
|
|
1127
|
-
return (React__namespace.default.createElement("div", { className: uuiCore.cx('uui-dropdown-menu-header', props.cx, css$
|
|
1128
|
-
React__namespace.default.createElement("span", { className: css$
|
|
1155
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx('uui-dropdown-menu-header', props.cx, css$1k.headerRoot) },
|
|
1156
|
+
React__namespace.default.createElement("span", { className: css$1k.header }, props.caption)));
|
|
1129
1157
|
}
|
|
1130
1158
|
function DropdownSubMenu(props) {
|
|
1131
1159
|
const subMenuModifiers = [
|
|
@@ -1147,7 +1175,7 @@ function DropdownSubMenu(props) {
|
|
|
1147
1175
|
const isRtl = (window === null || window === void 0 ? void 0 : window.document.dir) === 'rtl';
|
|
1148
1176
|
return (React__namespace.default.createElement(uuiComponents.Dropdown, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", openDelay: 400, closeDelay: 400, placement: isRtl ? 'left-start' : 'right-start', modifiers: subMenuModifiers, renderBody: (dropdownProps) => !props.isDisabled && (React__namespace.default.createElement(DropdownMenuBody, Object.assign({ closeOnKey: exports.IDropdownControlKeys.LEFT_ARROW }, props, dropdownProps))), renderTarget: (_a) => {
|
|
1149
1177
|
var { toggleDropdownOpening } = _a, targetProps = __rest(_a, ["toggleDropdownOpening"]);
|
|
1150
|
-
return (React__namespace.default.createElement(DropdownMenuButton, Object.assign({ cx: uuiCore.cx(isRtl ? css$
|
|
1178
|
+
return (React__namespace.default.createElement(DropdownMenuButton, Object.assign({ cx: uuiCore.cx(isRtl ? css$1k.submenuRootItemRtl : css$1k.submenuRootItem), icon: systemIcons.foldingArrow, iconPosition: "right", isDropdown: true, toggleDropdownOpening: toggleDropdownOpening }, props, targetProps)));
|
|
1151
1179
|
} }));
|
|
1152
1180
|
}
|
|
1153
1181
|
function DropdownMenuSwitchButton(props) {
|
|
@@ -1164,29 +1192,29 @@ function DropdownMenuSwitchButton(props) {
|
|
|
1164
1192
|
onHandleValueChange(!isSelected);
|
|
1165
1193
|
}
|
|
1166
1194
|
};
|
|
1167
|
-
return (React__namespace.default.createElement(uuiComponents.FlexRow, { cx: uuiCore.cx(props.cx, css$
|
|
1168
|
-
icon && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icon, cx: css$
|
|
1195
|
+
return (React__namespace.default.createElement(uuiComponents.FlexRow, { cx: uuiCore.cx(props.cx, css$1k.itemRoot, isDisabled && uuiCore.uuiMod.disabled), onClick: () => onHandleValueChange(!isSelected), rawProps: { role: 'menuitem', onKeyDown: handleKeySelect, tabIndex: isDisabled ? -1 : 0 } },
|
|
1196
|
+
icon && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icon, cx: css$1k.iconBefore }),
|
|
1169
1197
|
React__namespace.default.createElement(uuiComponents.Text, null, caption),
|
|
1170
1198
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1171
1199
|
React__namespace.default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
1172
1200
|
}
|
|
1173
1201
|
|
|
1174
|
-
var css$
|
|
1202
|
+
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"};
|
|
1175
1203
|
|
|
1176
1204
|
function applyAccordionMods(mods) {
|
|
1177
1205
|
return [
|
|
1178
|
-
css$
|
|
1179
|
-
css$
|
|
1180
|
-
mods.padding && css$
|
|
1206
|
+
css$1j.root,
|
|
1207
|
+
css$1j[`mode-${mods.mode || 'block'}`],
|
|
1208
|
+
mods.padding && css$1j['padding-' + mods.padding],
|
|
1181
1209
|
];
|
|
1182
1210
|
}
|
|
1183
1211
|
const Accordion = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Accordion, applyAccordionMods, (mods) => ({
|
|
1184
1212
|
dropdownIcon: mods.dropdownIcon !== null && systemIcons.foldingArrow,
|
|
1185
1213
|
}));
|
|
1186
1214
|
|
|
1187
|
-
var css$
|
|
1215
|
+
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"};
|
|
1188
1216
|
|
|
1189
|
-
const FlexCell = /* @__PURE__ */uuiCore.withMods(uuiComponents.FlexCell, () => [css$
|
|
1217
|
+
const FlexCell = /* @__PURE__ */uuiCore.withMods(uuiComponents.FlexCell, () => [css$1i.flexCell]);
|
|
1190
1218
|
|
|
1191
1219
|
const FlexRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.FlexRow, (props) => {
|
|
1192
1220
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -1195,54 +1223,54 @@ const FlexRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.FlexRow, (props) =
|
|
|
1195
1223
|
}
|
|
1196
1224
|
}
|
|
1197
1225
|
return [
|
|
1198
|
-
css$
|
|
1226
|
+
css$1i.root,
|
|
1199
1227
|
props.size !== null && 'uui-size-' + (props.size || '36'),
|
|
1200
|
-
props.padding && css$
|
|
1201
|
-
props.vPadding && css$
|
|
1202
|
-
props.margin && css$
|
|
1203
|
-
props.topShadow && css$
|
|
1204
|
-
props.borderBottom && css$
|
|
1205
|
-
props.borderTop && css$
|
|
1206
|
-
props.spacing && css$
|
|
1207
|
-
props.background && css$
|
|
1228
|
+
props.padding && css$1i['padding-' + props.padding],
|
|
1229
|
+
props.vPadding && css$1i['vPadding-' + props.vPadding],
|
|
1230
|
+
props.margin && css$1i['margin-' + props.margin],
|
|
1231
|
+
props.topShadow && css$1i.topShadow,
|
|
1232
|
+
props.borderBottom && css$1i.borderBottom,
|
|
1233
|
+
props.borderTop && css$1i.borderTop,
|
|
1234
|
+
props.spacing && css$1i['spacing-' + props.spacing],
|
|
1235
|
+
props.background && css$1i[`uui-${props.background}`],
|
|
1208
1236
|
];
|
|
1209
1237
|
});
|
|
1210
1238
|
|
|
1211
|
-
var css$
|
|
1239
|
+
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"};
|
|
1212
1240
|
|
|
1213
1241
|
const Panel = /* @__PURE__ */uuiCore.withMods(uuiComponents.VPanel, (props) => [
|
|
1214
1242
|
'uui-panel',
|
|
1215
|
-
css$
|
|
1216
|
-
props.shadow && css$
|
|
1217
|
-
props.margin && css$
|
|
1218
|
-
props.background && css$
|
|
1243
|
+
css$1h.root,
|
|
1244
|
+
props.shadow && css$1h.shadow,
|
|
1245
|
+
props.margin && css$1h['margin-' + props.margin],
|
|
1246
|
+
props.background && css$1h[`uui-${props.background}`],
|
|
1219
1247
|
]);
|
|
1220
1248
|
|
|
1221
|
-
var css$
|
|
1249
|
+
var css$1g = {"root":"LZGau1"};
|
|
1222
1250
|
|
|
1223
1251
|
function applyTooltipMods(mods) {
|
|
1224
1252
|
return [
|
|
1225
|
-
css$
|
|
1253
|
+
css$1g.root,
|
|
1226
1254
|
`uui-color-${mods.color || 'inverted'}`,
|
|
1227
1255
|
];
|
|
1228
1256
|
}
|
|
1229
1257
|
const Tooltip = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Tooltip, applyTooltipMods);
|
|
1230
1258
|
|
|
1231
|
-
var css$
|
|
1259
|
+
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"};
|
|
1232
1260
|
|
|
1233
1261
|
function applyLabeledInputMods(mods) {
|
|
1234
1262
|
return [
|
|
1235
1263
|
'uui-labeled-input',
|
|
1236
|
-
css$
|
|
1264
|
+
css$1f.root,
|
|
1237
1265
|
'uui-size-' + (mods.size || settings.sizes.defaults.labeledInput),
|
|
1238
1266
|
];
|
|
1239
1267
|
}
|
|
1240
1268
|
const LabeledInput = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.LabeledInput, applyLabeledInputMods, (props) => ({
|
|
1241
1269
|
Tooltip: props.Tooltip || Tooltip,
|
|
1242
|
-
infoIcon: props.infoIcon || (settings.sizes.labeledInput.fillIcon.includes(props.size) ? ForwardRef$
|
|
1270
|
+
infoIcon: props.infoIcon || (settings.sizes.labeledInput.fillIcon.includes(props.size) ? ForwardRef$x : ForwardRef$M),
|
|
1243
1271
|
}));
|
|
1244
1272
|
|
|
1245
|
-
var css$
|
|
1273
|
+
var css$1e = {"root":"lVVYkK"};
|
|
1246
1274
|
|
|
1247
1275
|
function RadioGroup(props) {
|
|
1248
1276
|
const direction = props.direction || 'vertical';
|
|
@@ -1251,34 +1279,34 @@ function RadioGroup(props) {
|
|
|
1251
1279
|
props.onValueChange(newVal);
|
|
1252
1280
|
}
|
|
1253
1281
|
};
|
|
1254
|
-
return (React__namespace.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: uuiCore.cx(css$
|
|
1282
|
+
return (React__namespace.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: uuiCore.cx(css$1e.root, uuiCore.directionMode[direction], props.cx), onFocus: props.onFocus, onBlur: props.onBlur }, props.rawProps), props.items.map((i) => {
|
|
1255
1283
|
const restItemProps = __rest(i, ["id", "name", "renderName"]);
|
|
1256
1284
|
return (React__namespace.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)));
|
|
1257
1285
|
})));
|
|
1258
1286
|
}
|
|
1259
1287
|
|
|
1260
|
-
var css$
|
|
1288
|
+
var css$1d = {"root":"BFVP-q"};
|
|
1261
1289
|
|
|
1262
1290
|
function applyScrollBarsMods() {
|
|
1263
1291
|
return [
|
|
1264
|
-
css$
|
|
1292
|
+
css$1d.root, 'uui-scroll-bars', 'uui-shadow-top', 'uui-shadow-bottom',
|
|
1265
1293
|
];
|
|
1266
1294
|
}
|
|
1267
1295
|
const ScrollBars = /* @__PURE__ */uuiCore.withMods(uuiComponents.ScrollBars, applyScrollBarsMods);
|
|
1268
1296
|
|
|
1269
|
-
var css$
|
|
1297
|
+
var css$1c = {"scroll-container":"wm3FFF","scrollContainer":"wm3FFF","list-container":"FjyvHJ","listContainer":"FjyvHJ"};
|
|
1270
1298
|
|
|
1271
|
-
var css$
|
|
1299
|
+
var css$1b = {"root":"xTx-HH"};
|
|
1272
1300
|
|
|
1273
|
-
const AvatarStack = /* @__PURE__ */uuiCore.withMods(uuiComponents.AvatarStack, () => [css$
|
|
1301
|
+
const AvatarStack = /* @__PURE__ */uuiCore.withMods(uuiComponents.AvatarStack, () => [css$1b.root]);
|
|
1274
1302
|
|
|
1275
|
-
var css$
|
|
1303
|
+
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"};
|
|
1276
1304
|
|
|
1277
1305
|
const DEFAULT_FILL = 'solid';
|
|
1278
1306
|
function applyBadgeMods(mods) {
|
|
1279
1307
|
return [
|
|
1280
1308
|
'uui-badge',
|
|
1281
|
-
css$
|
|
1309
|
+
css$1a.root,
|
|
1282
1310
|
`uui-size-${mods.size || settings.sizes.defaults.badge}`,
|
|
1283
1311
|
`uui-fill-${mods.fill || DEFAULT_FILL}`,
|
|
1284
1312
|
`uui-color-${mods.color || 'info'}`,
|
|
@@ -1296,11 +1324,11 @@ const Badge = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) =>
|
|
|
1296
1324
|
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
1297
1325
|
});
|
|
1298
1326
|
|
|
1299
|
-
var css$
|
|
1327
|
+
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-"};
|
|
1300
1328
|
|
|
1301
1329
|
function applyTagMods(props) {
|
|
1302
1330
|
return [
|
|
1303
|
-
css$
|
|
1331
|
+
css$19.root,
|
|
1304
1332
|
`uui-size-${props.size || settings.sizes.defaults.tag}`,
|
|
1305
1333
|
`uui-color-${props.color || 'neutral'}`,
|
|
1306
1334
|
`uui-fill-${props.fill || 'solid'}`,
|
|
@@ -1320,94 +1348,94 @@ const Tag = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
|
1320
1348
|
props.onClear && !props.isDisabled && (React__namespace.default.createElement(uuiComponents.IconContainer, { cx: uuiCore.uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
1321
1349
|
});
|
|
1322
1350
|
|
|
1323
|
-
var css$
|
|
1351
|
+
var css$18 = {"root":"_4VTEQq","uui-spinner":"TAaiFU","uuiSpinner":"TAaiFU"};
|
|
1324
1352
|
|
|
1325
1353
|
function applySpinnerMods() {
|
|
1326
|
-
return [css$
|
|
1354
|
+
return [css$18.root, 'uui-spinner'];
|
|
1327
1355
|
}
|
|
1328
1356
|
const Spinner = /* @__PURE__ */uuiCore.withMods(uuiComponents.Spinner, applySpinnerMods);
|
|
1329
1357
|
|
|
1330
|
-
var _path$
|
|
1331
|
-
function _extends$
|
|
1358
|
+
var _path$w;
|
|
1359
|
+
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); }
|
|
1332
1360
|
var SvgNavigationChevronLeftOutline = function SvgNavigationChevronLeftOutline(props, ref) {
|
|
1333
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1361
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$w({
|
|
1334
1362
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1335
1363
|
width: 24,
|
|
1336
1364
|
height: 24,
|
|
1337
1365
|
viewBox: "0 0 24 24",
|
|
1338
1366
|
ref: ref
|
|
1339
|
-
}, props), _path$
|
|
1367
|
+
}, props), _path$w || (_path$w = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1340
1368
|
d: "M15.914 5.414 14.5 4l-8 8 8 8 1.414-1.414L9.328 12l6.586-6.586z"
|
|
1341
1369
|
})));
|
|
1342
1370
|
};
|
|
1343
|
-
var ForwardRef$
|
|
1371
|
+
var ForwardRef$w = /*#__PURE__*/React.forwardRef(SvgNavigationChevronLeftOutline);
|
|
1344
1372
|
|
|
1345
|
-
var _path$
|
|
1346
|
-
function _extends$
|
|
1373
|
+
var _path$v;
|
|
1374
|
+
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); }
|
|
1347
1375
|
var SvgNavigationChevronRightOutline = function SvgNavigationChevronRightOutline(props, ref) {
|
|
1348
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1376
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$v({
|
|
1349
1377
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1350
1378
|
width: 24,
|
|
1351
1379
|
height: 24,
|
|
1352
1380
|
viewBox: "0 0 24 24",
|
|
1353
1381
|
ref: ref
|
|
1354
|
-
}, props), _path$
|
|
1382
|
+
}, props), _path$v || (_path$v = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1355
1383
|
d: "M8.086 18.586 9.5 20l8-8-8-8-1.414 1.414L14.672 12l-6.586 6.586z"
|
|
1356
1384
|
})));
|
|
1357
1385
|
};
|
|
1358
|
-
var ForwardRef$
|
|
1386
|
+
var ForwardRef$v = /*#__PURE__*/React.forwardRef(SvgNavigationChevronRightOutline);
|
|
1359
1387
|
|
|
1360
|
-
var css$
|
|
1388
|
+
var css$17 = {"root":"taIwL-","page":"a0c9EI","spacer":"gYwB6k","mode-ghost":"_6gm-xU","modeGhost":"_6gm-xU"};
|
|
1361
1389
|
|
|
1362
1390
|
function Paginator(props) {
|
|
1363
|
-
const renderPaginator = (params) => (React__namespace.default.createElement("nav", Object.assign({ role: "navigation", className: cx__default.default(css$
|
|
1364
|
-
React__namespace.default.createElement(Button, { size: props.size || settings.sizes.defaults.paginator, icon: ForwardRef$
|
|
1391
|
+
const renderPaginator = (params) => (React__namespace.default.createElement("nav", Object.assign({ role: "navigation", className: cx__default.default(css$17.root, 'uui-paginator', `uui-size-${props.size || settings.sizes.defaults.paginator}`) }, params.rawProps),
|
|
1392
|
+
React__namespace.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" }),
|
|
1365
1393
|
params.pages.map((page, index) => {
|
|
1366
1394
|
if (page.type === 'spacer') {
|
|
1367
|
-
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$
|
|
1395
|
+
return (React__namespace.default.createElement(Button, { cx: cx__default.default(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 }));
|
|
1368
1396
|
}
|
|
1369
1397
|
else {
|
|
1370
|
-
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$
|
|
1398
|
+
return (React__namespace.default.createElement(Button, { cx: cx__default.default(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 }));
|
|
1371
1399
|
}
|
|
1372
1400
|
}),
|
|
1373
|
-
React__namespace.default.createElement(Button, { size: props.size || settings.sizes.defaults.paginator, icon: ForwardRef$
|
|
1401
|
+
React__namespace.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" })));
|
|
1374
1402
|
return React__namespace.default.createElement(uuiComponents.Paginator, Object.assign({}, props, { render: renderPaginator }));
|
|
1375
1403
|
}
|
|
1376
1404
|
|
|
1377
|
-
var css$
|
|
1405
|
+
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"};
|
|
1378
1406
|
|
|
1379
1407
|
const IndeterminateBar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
1380
|
-
return (React__namespace.createElement("div", { ref: ref, className: cx__default.default('uui-indeterminate_bar', props.cx, css$
|
|
1381
|
-
React__namespace.createElement("div", { className: cx__default.default(css$
|
|
1408
|
+
return (React__namespace.createElement("div", { ref: ref, className: cx__default.default('uui-indeterminate_bar', props.cx, css$16.root, css$16[`size-${props.size || 12}`]) },
|
|
1409
|
+
React__namespace.createElement("div", { className: cx__default.default(css$16.progressBar) })));
|
|
1382
1410
|
});
|
|
1383
1411
|
|
|
1384
|
-
var css$
|
|
1412
|
+
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"};
|
|
1385
1413
|
|
|
1386
1414
|
const DEFAULT_SIZE = '12';
|
|
1387
1415
|
function applyProgressBarMods(mods) {
|
|
1388
1416
|
const size = mods.size || DEFAULT_SIZE;
|
|
1389
1417
|
return [
|
|
1390
|
-
css$
|
|
1391
|
-
css$
|
|
1392
|
-
mods.striped && css$
|
|
1418
|
+
css$15.root,
|
|
1419
|
+
css$15[`size-${size}`],
|
|
1420
|
+
mods.striped && css$15.striped,
|
|
1393
1421
|
];
|
|
1394
1422
|
}
|
|
1395
1423
|
const ProgressBar = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.ProgressBar, applyProgressBarMods, (props) => ({
|
|
1396
1424
|
hideLabel: props.hideLabel || props.striped,
|
|
1397
1425
|
}));
|
|
1398
1426
|
|
|
1399
|
-
var css$
|
|
1427
|
+
var css$14 = {"root":"TKJniY"};
|
|
1400
1428
|
|
|
1401
1429
|
const IndicatorBar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
1402
1430
|
const { progress } = props;
|
|
1403
|
-
return progress || progress === 0 ? (React__namespace.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx__default.default(css$
|
|
1431
|
+
return progress || progress === 0 ? (React__namespace.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx__default.default(css$14.root, props.cx), hideLabel: true })) : (React__namespace.createElement(IndeterminateBar, { ref: ref, cx: cx__default.default(css$14.root, props.cx) }));
|
|
1404
1432
|
});
|
|
1405
1433
|
|
|
1406
|
-
var css$
|
|
1434
|
+
var css$13 = {"root":"QkSwyC"};
|
|
1407
1435
|
|
|
1408
1436
|
const StatusIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1409
1437
|
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
1410
|
-
css$
|
|
1438
|
+
css$13.root,
|
|
1411
1439
|
`uui-size-${props.size || settings.sizes.defaults.statusIndicator}`,
|
|
1412
1440
|
'uui-status_indicator',
|
|
1413
1441
|
`uui-color-${props.color || 'neutral'}`,
|
|
@@ -1418,7 +1446,7 @@ const StatusIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
|
1418
1446
|
React__namespace.default.createElement("p", { className: "uui-status_indicator-caption" }, props.caption)));
|
|
1419
1447
|
});
|
|
1420
1448
|
|
|
1421
|
-
var css$
|
|
1449
|
+
var css$12 = {"drag-handle":"DtPwOU","dragHandle":"DtPwOU","icon-container":"johVCs","iconContainer":"johVCs"};
|
|
1422
1450
|
|
|
1423
1451
|
function DataRowAddons(props) {
|
|
1424
1452
|
var _a, _b;
|
|
@@ -1430,19 +1458,19 @@ function DataRowAddons(props) {
|
|
|
1430
1458
|
return settings.sizes.rowAddons.indentWidth[props.size] || settings.sizes.rowAddons.defaults.indentWidth;
|
|
1431
1459
|
};
|
|
1432
1460
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1433
|
-
((_a = row.dnd) === null || _a === void 0 ? void 0 : _a.srcData) && React__namespace.default.createElement(uuiComponents.DragHandle, { key: "dh", cx: css$
|
|
1461
|
+
((_a = row.dnd) === null || _a === void 0 ? void 0 : _a.srcData) && React__namespace.default.createElement(uuiComponents.DragHandle, { key: "dh", cx: css$12.dragHandle, rawProps: Object.assign({}, props.eventHandlers) }),
|
|
1434
1462
|
((_b = row === null || row === void 0 ? void 0 : row.checkbox) === null || _b === void 0 ? void 0 : _b.isVisible) && (React__namespace.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 })),
|
|
1435
1463
|
row.indent > 0 && (React__namespace.default.createElement("div", { key: "fold", className: cx__default.default('uui-dr_addons-indent', `uui-size-${props.size}`), style: { marginInlineStart: getIndent(), width: getWidth() } }, row.isFoldable && (React__namespace.default.createElement(uuiComponents.IconContainer, { rawProps: {
|
|
1436
1464
|
'aria-label': row.isFolded ? 'Unfold' : 'Fold',
|
|
1437
1465
|
role: 'button',
|
|
1438
|
-
}, key: "icon", icon: ForwardRef$
|
|
1439
|
-
uuiCore.uuiElement.foldingArrow, uuiCore.uuiMarkers.clickable, css$
|
|
1466
|
+
}, key: "icon", icon: ForwardRef$Q, cx: [
|
|
1467
|
+
uuiCore.uuiElement.foldingArrow, uuiCore.uuiMarkers.clickable, css$12.iconContainer,
|
|
1440
1468
|
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row), size: settings.sizes.rowAddons.icon[props.size] || settings.sizes.rowAddons.defaults.icon }))))));
|
|
1441
1469
|
}
|
|
1442
1470
|
|
|
1443
|
-
var css
|
|
1471
|
+
var css$11 = {"root":"KcDEuI"};
|
|
1444
1472
|
|
|
1445
|
-
const Blocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.Blocker, () => [css
|
|
1473
|
+
const Blocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.Blocker, () => [css$11.root], (cmpProps) => ({ renderSpinner: cmpProps.renderSpinner || (() => React__namespace.default.createElement(Spinner, null)) }));
|
|
1446
1474
|
|
|
1447
1475
|
const VirtualList = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
1448
1476
|
const { listContainerRef, offsetY, handleScroll, estimatedHeight, scrollContainerRef, } = uuiCore.useVirtualList({
|
|
@@ -1458,7 +1486,7 @@ const VirtualList = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
1458
1486
|
var _a;
|
|
1459
1487
|
return ((_a = props.renderRows) === null || _a === void 0 ? void 0 : _a.call(props, {
|
|
1460
1488
|
listContainerRef, estimatedHeight, offsetY, scrollShadows,
|
|
1461
|
-
})) || (React__namespace.createElement("div", { className: css$
|
|
1489
|
+
})) || (React__namespace.createElement("div", { className: css$1c.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
1462
1490
|
React__namespace.createElement("div", { ref: listContainerRef, role: props.role, style: { marginTop: offsetY } }, props.rows)));
|
|
1463
1491
|
};
|
|
1464
1492
|
const renderView = ({ style }) => (React__namespace.createElement(VirtualListView, { isLoading: props.isLoading, style: style, rawProps: props.rawProps }));
|
|
@@ -1468,7 +1496,7 @@ const VirtualList = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
1468
1496
|
return;
|
|
1469
1497
|
scrollContainerRef.current = scrollbars.container.firstChild;
|
|
1470
1498
|
}, []);
|
|
1471
|
-
return (React__namespace.createElement(ScrollBars, { cx: uuiCore.cx(css$
|
|
1499
|
+
return (React__namespace.createElement(ScrollBars, { cx: uuiCore.cx(css$1c.scrollContainer, props.cx, {
|
|
1472
1500
|
[uuiCore.uuiMarkers.scrolledLeft]: scrollShadows.horizontalLeft,
|
|
1473
1501
|
[uuiCore.uuiMarkers.scrolledRight]: scrollShadows.horizontalRight,
|
|
1474
1502
|
[uuiCore.uuiMarkers.scrolledTop]: scrollShadows.verticalTop,
|
|
@@ -1481,7 +1509,7 @@ const VirtualListView = /* @__PURE__ */React__namespace.forwardRef((props, ref)
|
|
|
1481
1509
|
React__namespace.createElement(Blocker, { isEnabled: props.isLoading })));
|
|
1482
1510
|
});
|
|
1483
1511
|
|
|
1484
|
-
var css$
|
|
1512
|
+
var css$10 = {"root":"x9tPpn"};
|
|
1485
1513
|
|
|
1486
1514
|
function CheckboxGroup(props) {
|
|
1487
1515
|
const currentValue = props.value || [];
|
|
@@ -1497,60 +1525,16 @@ function CheckboxGroup(props) {
|
|
|
1497
1525
|
}
|
|
1498
1526
|
props.onValueChange(newSelection);
|
|
1499
1527
|
};
|
|
1500
|
-
return (React__namespace.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: uuiCore.cx(css$
|
|
1528
|
+
return (React__namespace.createElement("fieldset", Object.assign({ ref: props.forwardedRef, className: uuiCore.cx(css$10.root, uuiCore.directionMode[direction], props.cx) }, props.rawProps), props.items.map((i) => {
|
|
1501
1529
|
const restItemProps = __rest(i, ["id", "name", "renderName"]);
|
|
1502
1530
|
return (React__namespace.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)));
|
|
1503
1531
|
})));
|
|
1504
1532
|
}
|
|
1505
1533
|
|
|
1506
|
-
var css
|
|
1507
|
-
|
|
1508
|
-
function applyTextMods(mods) {
|
|
1509
|
-
return [
|
|
1510
|
-
css$Z.root,
|
|
1511
|
-
'uui-text',
|
|
1512
|
-
`uui-size-${mods.size || settings.sizes.defaults.text}`,
|
|
1513
|
-
(mods.size !== 'none' || mods.lineHeight) && css$Z.lineHeight,
|
|
1514
|
-
(mods.size !== 'none' || mods.fontSize) && css$Z.fontSize,
|
|
1515
|
-
`uui-color-${mods.color || 'primary'}`,
|
|
1516
|
-
`uui-font-weight-${mods.fontWeight || '400'}`,
|
|
1517
|
-
`uui-font-style-${mods.fontStyle || 'normal'}`,
|
|
1518
|
-
'uui-typography',
|
|
1519
|
-
];
|
|
1520
|
-
}
|
|
1521
|
-
const Text = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Text, applyTextMods, (props) => {
|
|
1522
|
-
var _a;
|
|
1523
|
-
const style = ((_a = props === null || props === void 0 ? void 0 : props.rawProps) === null || _a === void 0 ? void 0 : _a.style) || {};
|
|
1524
|
-
props.fontSize && (style['--uui-text-font-size'] = `${props.fontSize}px`);
|
|
1525
|
-
props.lineHeight && (style['--uui-text-line-height'] = `${props.lineHeight}px`);
|
|
1526
|
-
return {
|
|
1527
|
-
rawProps: Object.assign(Object.assign({}, props === null || props === void 0 ? void 0 : props.rawProps), { style: style }),
|
|
1528
|
-
};
|
|
1529
|
-
});
|
|
1530
|
-
|
|
1531
|
-
var css$Y = {"root":"St4c-s","loading-word":"-DYCSx","animated-loading":"d0oAb0","skeleton_loading":"_2oky-D","loadingWord":"-DYCSx","animatedLoading":"d0oAb0","skeletonLoading":"_2oky-D"};
|
|
1532
|
-
|
|
1533
|
-
const TextPlaceholder = (props) => {
|
|
1534
|
-
const pattern = ' ';
|
|
1535
|
-
const text = React__namespace.useMemo(() => {
|
|
1536
|
-
const words = [];
|
|
1537
|
-
for (let i = 0; i < (props.wordsCount || 1); i++) {
|
|
1538
|
-
const lengthWord = Math.floor(Math.random() * 10 + 8);
|
|
1539
|
-
words.push(pattern.repeat(lengthWord));
|
|
1540
|
-
}
|
|
1541
|
-
return words;
|
|
1542
|
-
}, [props.wordsCount]);
|
|
1543
|
-
return (React__namespace.createElement("div", Object.assign({ "aria-busy": true, className: cx__default.default(css$Y.root, 'uui-text-placeholder') }, props.rawProps), text.map((it, index) => (React__namespace.createElement("span", { key: index, className: cx__default.default([
|
|
1544
|
-
props.cx, css$Y.loadingWord, !props.isNotAnimated && css$Y.animatedLoading,
|
|
1545
|
-
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
1546
|
-
};
|
|
1547
|
-
|
|
1548
|
-
const RichTextView = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.RichTextView, (mods) => ['uui-typography', `uui-typography-size-${mods.size || '14'}`]);
|
|
1549
|
-
|
|
1550
|
-
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"};
|
|
1534
|
+
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"};
|
|
1551
1535
|
|
|
1552
|
-
const ModalBlocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalBlocker, () => [css
|
|
1553
|
-
const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, () => [css
|
|
1536
|
+
const ModalBlocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalBlocker, () => [css$$.modalBlocker]);
|
|
1537
|
+
const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, () => [css$$.root, css$$.modal], (props) => {
|
|
1554
1538
|
const width = props.width || settings.sizes.modal.window.defaults.width;
|
|
1555
1539
|
const height = props.height || 'auto';
|
|
1556
1540
|
const maxHeight = uuiCore.isMobile() ? '100dvh' : (props.maxHeight || '80dvh');
|
|
@@ -1562,19 +1546,19 @@ const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, (
|
|
|
1562
1546
|
});
|
|
1563
1547
|
class ModalHeader extends React__namespace.default.Component {
|
|
1564
1548
|
render() {
|
|
1565
|
-
return (React__namespace.default.createElement(FlexRow, { padding: this.props.padding || '24', vPadding: "
|
|
1566
|
-
this.props.title && (React__namespace.default.createElement(
|
|
1549
|
+
return (React__namespace.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 },
|
|
1550
|
+
this.props.title && (React__namespace.default.createElement("div", { className: cx__default.default('uui-modal-title', 'uui-typography') }, this.props.title)),
|
|
1567
1551
|
this.props.children,
|
|
1568
1552
|
this.props.onClose && React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1569
1553
|
this.props.onClose && (React__namespace.default.createElement(FlexCell, { shrink: 0, width: "auto" },
|
|
1570
|
-
React__namespace.default.createElement(IconButton, { rawProps: { 'aria-label': 'Close modal' }, icon: ForwardRef$
|
|
1554
|
+
React__namespace.default.createElement(IconButton, { rawProps: { 'aria-label': 'Close modal' }, icon: ForwardRef$R, onClick: this.props.onClose })))));
|
|
1571
1555
|
}
|
|
1572
1556
|
}
|
|
1573
1557
|
class ModalFooter extends React__namespace.default.Component {
|
|
1574
1558
|
render() {
|
|
1575
1559
|
return (React__namespace.default.createElement(FlexRow, { columnGap: this.props.columnGap || '12', cx: [
|
|
1576
|
-
css
|
|
1577
|
-
css
|
|
1560
|
+
css$$.root,
|
|
1561
|
+
css$$.modalFooter,
|
|
1578
1562
|
this.props.cx,
|
|
1579
1563
|
], borderTop: this.props.borderTop, padding: this.props.padding || '24', vPadding: this.props.vPadding || '24', rawProps: this.props.rawProps }, this.props.children));
|
|
1580
1564
|
}
|
|
@@ -1718,25 +1702,26 @@ const TREE_SHAKEABLE_INIT = () => (Object.assign(Object.assign({}, uuiCore.i18n)
|
|
|
1718
1702
|
subtitle: 'We are trying to recover. Please wait.',
|
|
1719
1703
|
},
|
|
1720
1704
|
},
|
|
1705
|
+
supportLink: undefined,
|
|
1721
1706
|
} }));
|
|
1722
1707
|
const i18n = /* @__PURE__ */TREE_SHAKEABLE_INIT();
|
|
1723
1708
|
|
|
1724
|
-
var _path$
|
|
1725
|
-
function _extends$
|
|
1709
|
+
var _path$u;
|
|
1710
|
+
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); }
|
|
1726
1711
|
var SvgNotificationHelpFill = function SvgNotificationHelpFill(props, ref) {
|
|
1727
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1712
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$u({
|
|
1728
1713
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1729
1714
|
width: 24,
|
|
1730
1715
|
height: 24,
|
|
1731
1716
|
viewBox: "0 0 24 24",
|
|
1732
1717
|
ref: ref
|
|
1733
|
-
}, props), _path$
|
|
1718
|
+
}, props), _path$u || (_path$u = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1734
1719
|
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"
|
|
1735
1720
|
})));
|
|
1736
1721
|
};
|
|
1737
|
-
var ForwardRef$
|
|
1722
|
+
var ForwardRef$u = /*#__PURE__*/React.forwardRef(SvgNotificationHelpFill);
|
|
1738
1723
|
|
|
1739
|
-
var css$
|
|
1724
|
+
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"};
|
|
1740
1725
|
|
|
1741
1726
|
const NotificationCard = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
1742
1727
|
const notificationCardNode = React__namespace.default.useRef(null);
|
|
@@ -1751,27 +1736,27 @@ const NotificationCard = /* @__PURE__ */React__namespace.default.forwardRef((pro
|
|
|
1751
1736
|
(_b = notificationCardNode.current) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseleave', props.refreshTimer);
|
|
1752
1737
|
};
|
|
1753
1738
|
}, []);
|
|
1754
|
-
return (React__namespace.default.createElement("div", Object.assign({ role: "alert", className: cx__default.default('uui-notification_card', props.color && `uui-color-${props.color}`, css$
|
|
1755
|
-
React__namespace.default.createElement("div", { className: css$
|
|
1756
|
-
props.icon && (React__namespace.default.createElement("div", { className: css$
|
|
1739
|
+
return (React__namespace.default.createElement("div", Object.assign({ role: "alert", className: cx__default.default('uui-notification_card', props.color && `uui-color-${props.color}`, css$_.root, props.cx), ref: notificationCardNode }, props.rawProps),
|
|
1740
|
+
React__namespace.default.createElement("div", { className: css$_.mainPath },
|
|
1741
|
+
props.icon && (React__namespace.default.createElement("div", { className: css$_.iconWrapper },
|
|
1757
1742
|
React__namespace.default.createElement(uuiComponents.IconContainer, { size: 24, icon: props.icon }))),
|
|
1758
|
-
React__namespace.default.createElement("div", { className: css$
|
|
1743
|
+
React__namespace.default.createElement("div", { className: css$_.content },
|
|
1759
1744
|
props.children,
|
|
1760
|
-
props.actions && (React__namespace.default.createElement("div", { className: css$
|
|
1761
|
-
props.onClose && (React__namespace.default.createElement("div", { className: css$
|
|
1762
|
-
React__namespace.default.createElement(IconButton, { icon: ForwardRef$
|
|
1745
|
+
props.actions && (React__namespace.default.createElement("div", { className: css$_.actionWrapper }, props.actions.map((action) => (React__namespace.default.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$_.actionLink, size: "36", rawProps: action.rawProps })))))),
|
|
1746
|
+
props.onClose && (React__namespace.default.createElement("div", { className: css$_.closeWrapper },
|
|
1747
|
+
React__namespace.default.createElement(IconButton, { icon: ForwardRef$R, color: "neutral", onClick: props.onClose, cx: css$_.closeIcon }))))));
|
|
1763
1748
|
});
|
|
1764
|
-
const WarningNotification = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
1765
|
-
const SuccessNotification = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
1766
|
-
const HintNotification = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
1767
|
-
const ErrorNotification = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
1749
|
+
const WarningNotification = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$z, color: "warning" }, props, { ref: ref, cx: props.cx }))));
|
|
1750
|
+
const SuccessNotification = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$A, color: "success" }, props, { ref: ref, cx: props.cx }))));
|
|
1751
|
+
const HintNotification = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$u, color: "info" }, props, { ref: ref, cx: props.cx }))));
|
|
1752
|
+
const ErrorNotification = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$y, color: "error" }, props, { ref: ref, cx: props.cx }))));
|
|
1768
1753
|
function ClearNotification() {
|
|
1769
1754
|
const uuiCtx = uuiCore.useUuiContext();
|
|
1770
|
-
return (React__namespace.default.createElement("div", { className: cx__default.default(css$
|
|
1755
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default(css$_.notificationWrapper, css$_.clearButton) },
|
|
1771
1756
|
React__namespace.default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => uuiCtx.uuiNotifications.clearAll() })));
|
|
1772
1757
|
}
|
|
1773
1758
|
|
|
1774
|
-
var css$
|
|
1759
|
+
var css$Z = {"footer":"v5gs-u"};
|
|
1775
1760
|
|
|
1776
1761
|
class ConfirmationModal extends React__namespace.Component {
|
|
1777
1762
|
render() {
|
|
@@ -1783,7 +1768,7 @@ class ConfirmationModal extends React__namespace.Component {
|
|
|
1783
1768
|
React__namespace.createElement(ModalWindow, { width: 420 },
|
|
1784
1769
|
React__namespace.createElement(ModalHeader, { borderBottom: true, title: this.props.caption, onClose: () => this.props.abort() }),
|
|
1785
1770
|
React__namespace.createElement(ScrollBars, null, bodyContent),
|
|
1786
|
-
React__namespace.createElement(ModalFooter, { cx: css$
|
|
1771
|
+
React__namespace.createElement(ModalFooter, { cx: css$Z.footer },
|
|
1787
1772
|
this.props.hideCancelButton || (React__namespace.createElement(Button, { caption: i18n.form.modals.discardButton, onClick: () => this.props.success(false), fill: "outline", color: "secondary" })),
|
|
1788
1773
|
React__namespace.createElement(Button, { caption: i18n.form.modals.saveButton, onClick: () => this.props.success(true), color: "primary" })))));
|
|
1789
1774
|
}
|
|
@@ -1813,7 +1798,7 @@ function useReliableForceUpdate() {
|
|
|
1813
1798
|
return red[1];
|
|
1814
1799
|
}
|
|
1815
1800
|
|
|
1816
|
-
var css$
|
|
1801
|
+
var css$Y = {"root":"MZSjfy","timepicker-input":"Ywx66E","timepickerInput":"Ywx66E","ltr-always":"C697kO","ltrAlways":"C697kO"};
|
|
1817
1802
|
|
|
1818
1803
|
const uuiTimePicker = {
|
|
1819
1804
|
container: 'uui-timepicker-container',
|
|
@@ -1852,23 +1837,23 @@ function TimePickerBody(props) {
|
|
|
1852
1837
|
const minutesToSubtract = value.minute() % minutesStep === 0 ? minutesStep : value.minute() % minutesStep;
|
|
1853
1838
|
onMinutesChange(value.subtract(minutesToSubtract, 'm').minute());
|
|
1854
1839
|
};
|
|
1855
|
-
return (React__namespace.createElement("div", Object.assign({ className: uuiCore.cx(css$
|
|
1856
|
-
React__namespace.createElement("div", { className: css$
|
|
1840
|
+
return (React__namespace.createElement("div", Object.assign({ className: uuiCore.cx(css$Y.root, uuiTimePicker.container, props.cx), ref: props.forwardedRef }, props.rawProps),
|
|
1841
|
+
React__namespace.createElement("div", { className: css$Y.ltrAlways },
|
|
1857
1842
|
React__namespace.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
1858
|
-
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment hours' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$
|
|
1843
|
+
React__namespace.createElement(uuiComponents.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()) }),
|
|
1859
1844
|
React__namespace.createElement(uuiComponents.NumericInput, { cx: uuiTimePicker.input, onValueChange: onHoursChange, value: +(uuiDayjs.dayjs()
|
|
1860
1845
|
.set(props.value)
|
|
1861
1846
|
.format(MAX_HOURS === FORMAT_12H ? 'hh' : 'HH')), min: MIN_HOURS, max: MAX_HOURS }),
|
|
1862
|
-
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, rawProps: { 'aria-label': 'Decrement hours' }, cx: uuiTimePicker.iconDown, icon: ForwardRef$
|
|
1847
|
+
React__namespace.createElement(uuiComponents.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()) })),
|
|
1863
1848
|
React__namespace.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
1864
|
-
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment minutes' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$
|
|
1849
|
+
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment minutes' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$Q, onClick: handleMinutesUpClick }),
|
|
1865
1850
|
React__namespace.createElement(uuiComponents.NumericInput, { cx: uuiTimePicker.input, onValueChange: onMinutesChange, value: +uuiDayjs.dayjs().set(props.value).format('m'), min: MIN_MINUTES, max: MAX_MINUTES }),
|
|
1866
|
-
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, rawProps: { 'aria-label': 'Decrement minutes' }, cx: uuiTimePicker.iconDown, icon: ForwardRef$
|
|
1851
|
+
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, rawProps: { 'aria-label': 'Decrement minutes' }, cx: uuiTimePicker.iconDown, icon: ForwardRef$Q, onClick: handleMinutesDownClick }))),
|
|
1867
1852
|
MAX_HOURS === FORMAT_12H && (React__namespace.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
1868
|
-
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, cx: uuiTimePicker.iconUp, icon: ForwardRef$
|
|
1853
|
+
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, cx: uuiTimePicker.iconUp, icon: ForwardRef$Q, onClick: onTimeTypeChange }),
|
|
1869
1854
|
React__namespace.createElement(uuiComponents.TextInput, { cx: uuiTimePicker.input, onValueChange: () => {
|
|
1870
1855
|
}, isReadonly: true, value: uuiDayjs.dayjs().set(props.value).format('A') }),
|
|
1871
|
-
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, cx: uuiTimePicker.iconDown, icon: ForwardRef$
|
|
1856
|
+
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, cx: uuiTimePicker.iconDown, icon: ForwardRef$Q, onClick: onTimeTypeChange })))));
|
|
1872
1857
|
}
|
|
1873
1858
|
|
|
1874
1859
|
const getMeridian = (newValue, format) => {
|
|
@@ -1995,7 +1980,7 @@ function TimePicker(props) {
|
|
|
1995
1980
|
};
|
|
1996
1981
|
const renderInput = (inputProps) => {
|
|
1997
1982
|
var _a;
|
|
1998
|
-
return (React__namespace.default.createElement(TextInput, Object.assign({}, inputProps, { onClick: null, size: props.size || '36', isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, cx: [css$
|
|
1983
|
+
return (React__namespace.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 })));
|
|
1999
1984
|
};
|
|
2000
1985
|
const renderBody = (bodyProps) => {
|
|
2001
1986
|
var _a;
|
|
@@ -2006,22 +1991,52 @@ function TimePicker(props) {
|
|
|
2006
1991
|
return (React__namespace.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 }));
|
|
2007
1992
|
}
|
|
2008
1993
|
|
|
2009
|
-
var css$
|
|
1994
|
+
var css$X = {"root":"g0x9XC"};
|
|
2010
1995
|
|
|
2011
1996
|
function applyInputAddonMods() {
|
|
2012
1997
|
return [
|
|
2013
|
-
css$
|
|
1998
|
+
css$X.root,
|
|
2014
1999
|
];
|
|
2015
2000
|
}
|
|
2016
2001
|
const InputAddon = /* @__PURE__ */uuiCore.withMods(uuiComponents.InputAddon, applyInputAddonMods);
|
|
2017
2002
|
|
|
2018
|
-
var css$
|
|
2003
|
+
var css$W = {"root":"_5ewzvx"};
|
|
2019
2004
|
|
|
2020
2005
|
function applySliderMods() {
|
|
2021
|
-
return [css$
|
|
2006
|
+
return [css$W.root, 'uui-color-neutral'];
|
|
2022
2007
|
}
|
|
2023
2008
|
const Slider = /* @__PURE__ */uuiCore.withMods(uuiComponents.Slider, applySliderMods);
|
|
2024
2009
|
|
|
2010
|
+
var _path$t;
|
|
2011
|
+
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); }
|
|
2012
|
+
var SvgStarFilled = function SvgStarFilled(props, ref) {
|
|
2013
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$t({
|
|
2014
|
+
width: 24,
|
|
2015
|
+
height: 24,
|
|
2016
|
+
viewBox: "0 0 24 24",
|
|
2017
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2018
|
+
ref: ref
|
|
2019
|
+
}, props), _path$t || (_path$t = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2020
|
+
fillRule: "evenodd",
|
|
2021
|
+
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"
|
|
2022
|
+
})));
|
|
2023
|
+
};
|
|
2024
|
+
var ForwardRef$t = /*#__PURE__*/React.forwardRef(SvgStarFilled);
|
|
2025
|
+
|
|
2026
|
+
var css$V = {"root":"_5hi37a","tooltip":"GUohZm"};
|
|
2027
|
+
|
|
2028
|
+
function applyRatingMods(mods) {
|
|
2029
|
+
return [
|
|
2030
|
+
css$V.root,
|
|
2031
|
+
`uui-size-${mods.size || settings.sizes.defaults.rating}`,
|
|
2032
|
+
];
|
|
2033
|
+
}
|
|
2034
|
+
const Rating = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Rating, applyRatingMods, (props) => ({
|
|
2035
|
+
filledStarIcon: props.icon || ForwardRef$t,
|
|
2036
|
+
emptyStarIcon: props.icon || ForwardRef$t,
|
|
2037
|
+
Tooltip,
|
|
2038
|
+
}));
|
|
2039
|
+
|
|
2025
2040
|
const defaultFormat = 'MMM D, YYYY';
|
|
2026
2041
|
const valueFormat = 'YYYY-MM-DD';
|
|
2027
2042
|
const supportedDateFormats = (format) => {
|
|
@@ -2150,7 +2165,7 @@ const getNextYearsList = (currentDate) => {
|
|
|
2150
2165
|
return currentDate.add(16, 'year');
|
|
2151
2166
|
};
|
|
2152
2167
|
|
|
2153
|
-
var css$
|
|
2168
|
+
var css$U = {"root":"IKlpq1","container":"_4OuiG1"};
|
|
2154
2169
|
|
|
2155
2170
|
const uuiHeader = {
|
|
2156
2171
|
container: 'uui-datepicker-header-container',
|
|
@@ -2227,21 +2242,21 @@ function DatePickerHeader({ navIconLeft, navIconRight, value: { month, view }, o
|
|
|
2227
2242
|
}, [view, month]);
|
|
2228
2243
|
const disablePrev = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getPrevYearsList(month));
|
|
2229
2244
|
const disableNext = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getNextYearsList(month));
|
|
2230
|
-
return (React__namespace.createElement("div", { className: cx__default.default(css$
|
|
2245
|
+
return (React__namespace.createElement("div", { className: cx__default.default(css$U.root, uuiHeader.container, cx__default.default) },
|
|
2231
2246
|
React__namespace.createElement("header", { className: uuiHeader.headerNav },
|
|
2232
|
-
React__namespace.createElement(Button, { icon: navIconLeft || ForwardRef$
|
|
2247
|
+
React__namespace.createElement(Button, { icon: navIconLeft || ForwardRef$w, color: "secondary", fill: "ghost", cx: uuiHeader.navIconLeft, onClick: !isDisabled && (() => onLeftNavigationArrow()), isDisabled: disablePrev }),
|
|
2233
2248
|
React__namespace.createElement(Button, { caption: title, fill: "ghost", cx: uuiHeader.navTitle, onClick: !isDisabled && (() => onCaptionClick(view)) }),
|
|
2234
|
-
React__namespace.createElement(Button, { icon: navIconRight || ForwardRef$
|
|
2249
|
+
React__namespace.createElement(Button, { icon: navIconRight || ForwardRef$v, color: "secondary", fill: "ghost", cx: uuiHeader.navIconRight, onClick: !isDisabled && (() => onRightNavigationArrow()), isDisabled: disableNext }))));
|
|
2235
2250
|
}
|
|
2236
2251
|
|
|
2237
|
-
var css$
|
|
2252
|
+
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"};
|
|
2238
2253
|
|
|
2239
2254
|
function applyDateSelectionMods() {
|
|
2240
|
-
return [css$
|
|
2255
|
+
return [css$T.root, `uui-size-${settings.sizes.defaults.datePicker}`];
|
|
2241
2256
|
}
|
|
2242
2257
|
const Calendar = /* @__PURE__ */uuiCore.withMods(uuiComponents.Calendar, applyDateSelectionMods);
|
|
2243
2258
|
|
|
2244
|
-
var css$
|
|
2259
|
+
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"};
|
|
2245
2260
|
|
|
2246
2261
|
const uuiDatePickerBody = {
|
|
2247
2262
|
wrapper: 'uui-datepicker-body-wrapper',
|
|
@@ -2285,7 +2300,7 @@ function StatelessDatePickerBodyComp({ renderDay, isHoliday, cx: classes, filter
|
|
|
2285
2300
|
}
|
|
2286
2301
|
};
|
|
2287
2302
|
return (React__namespace.default.createElement("div", Object.assign({ ref: ref, className: uuiCore.cx(uuiDatePickerBodyBase.container, `uui-size-${settings.sizes.defaults.datePicker}`, classes) }, rawProps),
|
|
2288
|
-
React__namespace.default.createElement("div", { className: uuiCore.cx(css$
|
|
2303
|
+
React__namespace.default.createElement("div", { className: uuiCore.cx(css$S.root, uuiDatePickerBody.wrapper) },
|
|
2289
2304
|
React__namespace.default.createElement(DatePickerHeader, { value: {
|
|
2290
2305
|
view,
|
|
2291
2306
|
month,
|
|
@@ -2372,7 +2387,7 @@ function DatePickerComponent(props, ref) {
|
|
|
2372
2387
|
}
|
|
2373
2388
|
const DatePicker = /* @__PURE__ */React__namespace.default.forwardRef(DatePickerComponent);
|
|
2374
2389
|
|
|
2375
|
-
var css$
|
|
2390
|
+
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"};
|
|
2376
2391
|
|
|
2377
2392
|
const RangeDatePickerInput = /* @__PURE__ */React.forwardRef(({ isDisabled, isInvalid, isReadonly, size, disableClear, rawProps, value, inFocus, format, onValueChange, onFocusInput, onBlurInput, onClick, getPlaceholder, filter, onKeyDown, id, cx: classes, }, ref) => {
|
|
2378
2393
|
const [inputValue, setInputValue] = React.useState(toCustomDateRangeFormat(value, format));
|
|
@@ -2406,15 +2421,15 @@ const RangeDatePickerInput = /* @__PURE__ */React.forwardRef(({ isDisabled, isIn
|
|
|
2406
2421
|
const clearAllowed = !disableClear && inputValue.from && inputValue.to;
|
|
2407
2422
|
return (
|
|
2408
2423
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
2409
|
-
React__namespace.default.createElement("div", { ref: ref, className: uuiCore.cx(`uui-size-${size || settings.sizes.defaults.rangeDatePicker}`, 'uui-range-date-picker', classes, css$
|
|
2410
|
-
React__namespace.default.createElement(TextInput, { icon: systemIcons.calendar, cx: uuiCore.cx(css$
|
|
2411
|
-
React__namespace.default.createElement("div", { className: css$
|
|
2412
|
-
React__namespace.default.createElement(TextInput, { cx: uuiCore.cx(css$
|
|
2424
|
+
React__namespace.default.createElement("div", { ref: ref, className: uuiCore.cx(`uui-size-${size || settings.sizes.defaults.rangeDatePicker}`, 'uui-range-date-picker', classes, css$R.root, isDisabled && uuiCore.uuiMod.disabled, isReadonly && uuiCore.uuiMod.readonly, isInvalid && uuiCore.uuiMod.invalid, inFocus && uuiCore.uuiMod.focus), onKeyDown: onKeyDown },
|
|
2425
|
+
React__namespace.default.createElement(TextInput, { icon: systemIcons.calendar, cx: uuiCore.cx(css$R.dateInput, inFocus === 'from' && uuiCore.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 }),
|
|
2426
|
+
React__namespace.default.createElement("div", { className: css$R.separator }),
|
|
2427
|
+
React__namespace.default.createElement(TextInput, { cx: uuiCore.cx(css$R.dateInput, inFocus === 'to' && uuiCore.uuiMod.focus), placeholder: getPlaceholder ? getPlaceholder('to') : i18n.rangeDatePicker.pickerPlaceholderTo, size: size || settings.sizes.defaults.rangeDatePicker, value: inputValue.to || undefined, onCancel: clearAllowed ? () => {
|
|
2413
2428
|
onValueChange(defaultRangeValue);
|
|
2414
2429
|
} : 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 })));
|
|
2415
2430
|
});
|
|
2416
2431
|
|
|
2417
|
-
var css$
|
|
2432
|
+
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"};
|
|
2418
2433
|
|
|
2419
2434
|
const uuiPresets = {
|
|
2420
2435
|
container: 'uui-presets-container',
|
|
@@ -2425,12 +2440,12 @@ const getPresets = (presets) => {
|
|
|
2425
2440
|
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);
|
|
2426
2441
|
};
|
|
2427
2442
|
function CalendarPresets(props) {
|
|
2428
|
-
return (React__namespace.createElement("div", Object.assign({ ref: props.forwardedRef, className: uuiCore.cx(uuiPresets.container, css$
|
|
2443
|
+
return (React__namespace.createElement("div", Object.assign({ ref: props.forwardedRef, className: uuiCore.cx(uuiPresets.container, css$Q.root, props.cx) }, props.rawProps),
|
|
2429
2444
|
React__namespace.createElement("div", { className: uuiPresets.header }, "Presets"),
|
|
2430
2445
|
getPresets(props.presets).map((item) => (React__namespace.createElement(LinkButton, { key: item.key, caption: item.name, onClick: () => props.onPresetSet(item), size: "24" })))));
|
|
2431
2446
|
}
|
|
2432
2447
|
|
|
2433
|
-
var css$
|
|
2448
|
+
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"};
|
|
2434
2449
|
|
|
2435
2450
|
const uuiRangeDatePickerBody = {
|
|
2436
2451
|
inRange: 'uui-range-datepicker-in-range',
|
|
@@ -2571,21 +2586,21 @@ function RangeDatePickerBodyComp(props, ref) {
|
|
|
2571
2586
|
});
|
|
2572
2587
|
}, presets: presets })));
|
|
2573
2588
|
};
|
|
2574
|
-
return (React__namespace.default.createElement("div", Object.assign({ ref: ref, className: uuiCore.cx(css$
|
|
2575
|
-
React__namespace.default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$
|
|
2589
|
+
return (React__namespace.default.createElement("div", Object.assign({ ref: ref, className: uuiCore.cx(css$P.root, uuiDatePickerBodyBase.container, props.cx) }, props.rawProps),
|
|
2590
|
+
React__namespace.default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$P.daySelection, css$P.container], alignItems: "top" },
|
|
2576
2591
|
React__namespace.default.createElement(FlexCell, { width: "auto" },
|
|
2577
2592
|
React__namespace.default.createElement(FlexRow, null,
|
|
2578
|
-
React__namespace.default.createElement(FlexRow, { cx: css$
|
|
2579
|
-
React__namespace.default.createElement(StatelessDatePickerBody, Object.assign({ key: "date-picker-body-left", cx: uuiCore.cx(css$
|
|
2593
|
+
React__namespace.default.createElement(FlexRow, { cx: css$P.bodesWrapper, alignItems: "top" },
|
|
2594
|
+
React__namespace.default.createElement(StatelessDatePickerBody, Object.assign({ key: "date-picker-body-left", cx: uuiCore.cx(css$P.fromPicker) }, from, { onValueChange: (v) => onBodyValueChange(v, 'from'), onMonthChange: (m) => {
|
|
2580
2595
|
setMonth(m);
|
|
2581
2596
|
}, onViewChange: (v) => setView(v), filter: props.filter, isHoliday: props.isHoliday, renderDay: props.renderDay || renderDay, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'to' })),
|
|
2582
|
-
React__namespace.default.createElement(StatelessDatePickerBody, Object.assign({ key: "date-picker-body-right", cx: uuiCore.cx(css$
|
|
2597
|
+
React__namespace.default.createElement(StatelessDatePickerBody, Object.assign({ key: "date-picker-body-right", cx: uuiCore.cx(css$P.toPicker) }, to, { onValueChange: (v) => onBodyValueChange(v, 'to'), onMonthChange: (m) => {
|
|
2583
2598
|
setMonth(m.subtract(1, 'month'));
|
|
2584
2599
|
}, onViewChange: (v) => setView(v), filter: props.filter, renderDay: props.renderDay || renderDay, isHoliday: props.isHoliday, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'from' })),
|
|
2585
2600
|
view !== 'DAY_SELECTION' && (React__namespace.default.createElement("div", { style: {
|
|
2586
2601
|
left: activeMonth === 'from' ? '50%' : undefined,
|
|
2587
2602
|
right: activeMonth === 'to' ? '50%' : undefined,
|
|
2588
|
-
}, className: css$
|
|
2603
|
+
}, className: css$P.blocker }))),
|
|
2589
2604
|
props.presets && renderPresets(props.presets)),
|
|
2590
2605
|
props.renderFooter && props.renderFooter()))));
|
|
2591
2606
|
}
|
|
@@ -2605,7 +2620,7 @@ const getDayCX = (day, selectedDate) => {
|
|
|
2605
2620
|
return [uuiCore.cx(inRange && uuiRangeDatePickerBody.inRange, isFirst && uuiRangeDatePickerBody.firstDayInRangeWrapper, !inRange && isFirst && uuiRangeDatePickerBody.lastDayInRangeWrapper, isLast && uuiRangeDatePickerBody.lastDayInRangeWrapper, !inRange && isLast && uuiRangeDatePickerBody.firstDayInRangeWrapper, (dayValue === fromValue || dayValue === toValue) && uuiComponents.uuiDaySelection.selectedDay)];
|
|
2606
2621
|
};
|
|
2607
2622
|
|
|
2608
|
-
var css$
|
|
2623
|
+
var css$O = {"dropdown-container":"A1mRtn","dropdownContainer":"A1mRtn"};
|
|
2609
2624
|
|
|
2610
2625
|
const modifiers = [{
|
|
2611
2626
|
name: 'offset',
|
|
@@ -2652,7 +2667,7 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
2652
2667
|
};
|
|
2653
2668
|
const renderBody = (renderProps) => {
|
|
2654
2669
|
var _a;
|
|
2655
|
-
return (React__namespace.default.createElement(DropdownContainer, Object.assign({}, renderProps, { cx: cx__default.default(css$
|
|
2670
|
+
return (React__namespace.default.createElement(DropdownContainer, Object.assign({}, renderProps, { cx: cx__default.default(css$O.dropdownContainer), shards: [targetRef], returnFocus: (node) => {
|
|
2656
2671
|
console.log('lock', node);
|
|
2657
2672
|
return true;
|
|
2658
2673
|
} }),
|
|
@@ -2682,22 +2697,66 @@ function RangeDatePickerComponent(props, ref) {
|
|
|
2682
2697
|
}
|
|
2683
2698
|
const RangeDatePicker = /* @__PURE__ */React__namespace.default.forwardRef(RangeDatePickerComponent);
|
|
2684
2699
|
|
|
2685
|
-
var css$
|
|
2700
|
+
var css$N = {"root":"pJK5Jq","blocker":"zVrjNh","marker":"hwXqJt","top":"BLseOz","bottom":"PBzzta","left":"r7cKgi","right":"mzfXf4","inside":"aVNP1X"};
|
|
2686
2701
|
|
|
2687
2702
|
function DropMarker(props) {
|
|
2688
2703
|
return props.isDndInProgress
|
|
2689
2704
|
? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
2690
|
-
props.enableBlocker && React__namespace.createElement("div", { className: css$
|
|
2705
|
+
props.enableBlocker && React__namespace.createElement("div", { className: css$N.blocker }),
|
|
2691
2706
|
React__namespace.createElement("div", { className: cx__default.default([
|
|
2692
|
-
css$
|
|
2693
|
-
css$
|
|
2694
|
-
css$
|
|
2707
|
+
css$N.root,
|
|
2708
|
+
css$N.marker,
|
|
2709
|
+
css$N[props.position],
|
|
2695
2710
|
props === null || props === void 0 ? void 0 : props.cx,
|
|
2696
2711
|
]) })))
|
|
2697
2712
|
: null;
|
|
2698
2713
|
}
|
|
2699
2714
|
|
|
2700
|
-
var css$
|
|
2715
|
+
var css$M = {"root":"evhtvL","line-height":"_184w2a","lineHeight":"_184w2a","font-size":"WlU92J","fontSize":"WlU92J"};
|
|
2716
|
+
|
|
2717
|
+
function applyTextMods(mods) {
|
|
2718
|
+
return [
|
|
2719
|
+
css$M.root,
|
|
2720
|
+
'uui-text',
|
|
2721
|
+
`uui-size-${mods.size || settings.sizes.defaults.text}`,
|
|
2722
|
+
(mods.size !== 'none' || mods.lineHeight) && css$M.lineHeight,
|
|
2723
|
+
(mods.size !== 'none' || mods.fontSize) && css$M.fontSize,
|
|
2724
|
+
`uui-color-${mods.color || 'primary'}`,
|
|
2725
|
+
`uui-font-weight-${mods.fontWeight || '400'}`,
|
|
2726
|
+
`uui-font-style-${mods.fontStyle || 'normal'}`,
|
|
2727
|
+
'uui-typography',
|
|
2728
|
+
];
|
|
2729
|
+
}
|
|
2730
|
+
const Text = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Text, applyTextMods, (props) => {
|
|
2731
|
+
var _a;
|
|
2732
|
+
const style = ((_a = props === null || props === void 0 ? void 0 : props.rawProps) === null || _a === void 0 ? void 0 : _a.style) || {};
|
|
2733
|
+
props.fontSize && (style['--uui-text-font-size'] = `${props.fontSize}px`);
|
|
2734
|
+
props.lineHeight && (style['--uui-text-line-height'] = `${props.lineHeight}px`);
|
|
2735
|
+
return {
|
|
2736
|
+
rawProps: Object.assign(Object.assign({}, props === null || props === void 0 ? void 0 : props.rawProps), { style: style }),
|
|
2737
|
+
};
|
|
2738
|
+
});
|
|
2739
|
+
|
|
2740
|
+
var css$L = {"root":"NH88VS","loading-word":"I9KNWr","loadingWord":"I9KNWr","animated-loading":"CBCaFX","animatedLoading":"CBCaFX","skeleton_loading":"Eu3w87","skeletonLoading":"Eu3w87"};
|
|
2741
|
+
|
|
2742
|
+
const TextPlaceholder = (props) => {
|
|
2743
|
+
const pattern = ' ';
|
|
2744
|
+
const text = React__namespace.useMemo(() => {
|
|
2745
|
+
const words = [];
|
|
2746
|
+
for (let i = 0; i < (props.wordsCount || 1); i++) {
|
|
2747
|
+
const lengthWord = Math.floor(Math.random() * 10 + 8);
|
|
2748
|
+
words.push(pattern.repeat(lengthWord));
|
|
2749
|
+
}
|
|
2750
|
+
return words;
|
|
2751
|
+
}, [props.wordsCount]);
|
|
2752
|
+
return (React__namespace.createElement("div", Object.assign({ "aria-busy": true, className: cx__default.default(css$L.root, 'uui-text-placeholder') }, props.rawProps), text.map((it, index) => (React__namespace.createElement("span", { key: index, className: cx__default.default([
|
|
2753
|
+
props.cx, css$L.loadingWord, !props.isNotAnimated && css$L.animatedLoading,
|
|
2754
|
+
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
2755
|
+
};
|
|
2756
|
+
|
|
2757
|
+
const RichTextView = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.RichTextView, (mods) => ['uui-typography', `uui-typography-size-${mods.size || '14'}`]);
|
|
2758
|
+
|
|
2759
|
+
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"};
|
|
2701
2760
|
|
|
2702
2761
|
class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
2703
2762
|
constructor() {
|
|
@@ -2716,7 +2775,7 @@ class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
|
2716
2775
|
});
|
|
2717
2776
|
}
|
|
2718
2777
|
if (this.props.minCharsToSearch && search.length < this.props.minCharsToSearch) {
|
|
2719
|
-
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$
|
|
2778
|
+
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$K.noData, grow: 1, textAlign: "center" },
|
|
2720
2779
|
React__namespace.default.createElement(Text, { size: this.props.searchSize }, i18n.dataPickerBody.typeSearchToLoadMessage)));
|
|
2721
2780
|
}
|
|
2722
2781
|
if (this.props.rows.length === 0) {
|
|
@@ -2731,21 +2790,21 @@ class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
|
2731
2790
|
}
|
|
2732
2791
|
// Default no record found message for 'NOT_FOUND' and "NO_RECORDS" reason
|
|
2733
2792
|
// TODO: make separate messages for 'NOT_FOUND' and "NO_RECORDS" reason
|
|
2734
|
-
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$
|
|
2793
|
+
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$K.noData, grow: 1, textAlign: "center" },
|
|
2735
2794
|
React__namespace.default.createElement(Text, { size: this.props.searchSize }, i18n.dataPickerBody.noRecordsMessage)));
|
|
2736
2795
|
}
|
|
2737
2796
|
}
|
|
2738
2797
|
render() {
|
|
2739
2798
|
const searchSize = this.getSearchSize();
|
|
2740
2799
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
2741
|
-
this.showSearch() && (React__namespace.default.createElement("div", { key: "search", className: css$
|
|
2800
|
+
this.showSearch() && (React__namespace.default.createElement("div", { key: "search", className: css$K.searchWrapper },
|
|
2742
2801
|
React__namespace.default.createElement(uuiComponents.FlexCell, { grow: 1 },
|
|
2743
2802
|
React__namespace.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' } }))))),
|
|
2744
|
-
React__namespace.default.createElement(FlexRow, { key: "body", cx: uuiCore.cx('uui-picker_input-body', css$
|
|
2803
|
+
React__namespace.default.createElement(FlexRow, { key: "body", cx: uuiCore.cx('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__namespace.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())));
|
|
2745
2804
|
}
|
|
2746
2805
|
}
|
|
2747
2806
|
|
|
2748
|
-
var css$
|
|
2807
|
+
var css$J = {"footer":"TgJGGD"};
|
|
2749
2808
|
|
|
2750
2809
|
function DataPickerFooterImpl(props) {
|
|
2751
2810
|
const { search, clearSelection, view, showSelected, selectionMode, isSearchTooShort, } = props;
|
|
@@ -2759,7 +2818,7 @@ function DataPickerFooterImpl(props) {
|
|
|
2759
2818
|
const isSearching = search === null || search === void 0 ? void 0 : search.length;
|
|
2760
2819
|
const hideFooter = isSearchTooShort || rowsCount === 0 || isSearching || (isSinglePicker && props.disableClear);
|
|
2761
2820
|
const showClear = !props.disableClear && (isSinglePicker ? true : (!view.selectAll || hasSelection));
|
|
2762
|
-
return !hideFooter && (React__namespace.default.createElement(FlexRow, { cx: css$
|
|
2821
|
+
return !hideFooter && (React__namespace.default.createElement(FlexRow, { cx: css$J.footer },
|
|
2763
2822
|
!isSinglePicker && (React__namespace.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 })),
|
|
2764
2823
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
2765
2824
|
React__namespace.default.createElement(FlexCell, { width: "auto", alignSelf: "center" },
|
|
@@ -2770,13 +2829,13 @@ function DataPickerFooterImpl(props) {
|
|
|
2770
2829
|
}
|
|
2771
2830
|
const DataPickerFooter = /* @__PURE__ */React__namespace.default.memo(DataPickerFooterImpl);
|
|
2772
2831
|
|
|
2773
|
-
var css$
|
|
2832
|
+
var css$I = {"header":"WYWC9u","title":"IqVcjn","close":"BcGvT1"};
|
|
2774
2833
|
|
|
2775
2834
|
const DataPickerHeaderImpl = (props) => {
|
|
2776
2835
|
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
2777
|
-
return (React__namespace.default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: css$
|
|
2778
|
-
React__namespace.default.createElement(Text, { size: settings.sizes.pickerInput.body.mobile.header.titleSize, cx: css$
|
|
2779
|
-
React__namespace.default.createElement(IconButton, { icon: ForwardRef$
|
|
2836
|
+
return (React__namespace.default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: css$I.header },
|
|
2837
|
+
React__namespace.default.createElement(Text, { size: settings.sizes.pickerInput.body.mobile.header.titleSize, cx: css$I.title }, title),
|
|
2838
|
+
React__namespace.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 })));
|
|
2780
2839
|
};
|
|
2781
2840
|
const DataPickerHeader = /* @__PURE__ */React__namespace.default.memo(DataPickerHeaderImpl);
|
|
2782
2841
|
|
|
@@ -2795,7 +2854,7 @@ var SvgNotificationDoneFill = function SvgNotificationDoneFill(props, ref) {
|
|
|
2795
2854
|
};
|
|
2796
2855
|
var ForwardRef$s = /*#__PURE__*/React.forwardRef(SvgNotificationDoneFill);
|
|
2797
2856
|
|
|
2798
|
-
var css$
|
|
2857
|
+
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"};
|
|
2799
2858
|
|
|
2800
2859
|
function DataPickerCell(props) {
|
|
2801
2860
|
const ref = React__namespace.useRef();
|
|
@@ -2803,28 +2862,28 @@ function DataPickerCell(props) {
|
|
|
2803
2862
|
if (props.rowProps.isLoading) {
|
|
2804
2863
|
content = (
|
|
2805
2864
|
// remove `css.loadingCell` after` removing `margin: 0 3px 3px 0` from `TextPlaceholder` `loadingWord` class styles.
|
|
2806
|
-
React__namespace.createElement(Text, { key: "t", size: settings.sizes.pickerInput.body.dropdown.row.cell.text[props.size], cx: css$
|
|
2865
|
+
React__namespace.createElement(Text, { key: "t", size: settings.sizes.pickerInput.body.dropdown.row.cell.text[props.size], cx: css$H.loadingCell },
|
|
2807
2866
|
React__namespace.createElement(TextPlaceholder, null)));
|
|
2808
2867
|
}
|
|
2809
2868
|
else if (props.rowProps.isUnknown) {
|
|
2810
2869
|
content = (React__namespace.createElement(Text, { key: "t", size: settings.sizes.pickerInput.body.dropdown.row.cell.text[props.size] }, "Unknown"));
|
|
2811
2870
|
}
|
|
2812
2871
|
else {
|
|
2813
|
-
content = (React__namespace.createElement("div", { key: `${props.rowProps.id}`, className: css$
|
|
2872
|
+
content = (React__namespace.createElement("div", { key: `${props.rowProps.id}`, className: css$H.renderItem },
|
|
2814
2873
|
props.renderItem(props.rowProps.value, props.rowProps),
|
|
2815
2874
|
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
2816
|
-
(props.rowProps.isChildrenSelected || props.rowProps.isSelected) && (React__namespace.createElement("div", { className: uuiCore.cx(css$
|
|
2817
|
-
React__namespace.createElement(uuiComponents.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$
|
|
2875
|
+
(props.rowProps.isChildrenSelected || props.rowProps.isSelected) && (React__namespace.createElement("div", { className: uuiCore.cx(css$H.iconWrapper, uuiCore.uuiMod.selected) },
|
|
2876
|
+
React__namespace.createElement(uuiComponents.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
|
|
2818
2877
|
? 'Child is selected'
|
|
2819
2878
|
: 'Selected' } })))));
|
|
2820
2879
|
}
|
|
2821
|
-
const getWrappedContent = () => (React__namespace.createElement("div", { className: css$
|
|
2880
|
+
const getWrappedContent = () => (React__namespace.createElement("div", { className: css$H.contentWrapper }, content));
|
|
2822
2881
|
return (React__namespace.createElement(FlexCell, { ref: ref, grow: 1, width: 0, minWidth: 0, rawProps: { role: 'cell' }, cx: [
|
|
2823
|
-
css$
|
|
2882
|
+
css$H.root,
|
|
2824
2883
|
props.cx,
|
|
2825
2884
|
'data-picker-cell',
|
|
2826
2885
|
props.size && `uui-size-${props.size}`,
|
|
2827
|
-
css$
|
|
2886
|
+
css$H[`align-widgets-${props.alignActions || 'top'}`],
|
|
2828
2887
|
], style: props.padding && {
|
|
2829
2888
|
'--uui-data_picker_cell-horizontal-padding': `${props.padding}px`,
|
|
2830
2889
|
} },
|
|
@@ -2832,7 +2891,7 @@ function DataPickerCell(props) {
|
|
|
2832
2891
|
getWrappedContent()));
|
|
2833
2892
|
}
|
|
2834
2893
|
|
|
2835
|
-
var css$
|
|
2894
|
+
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"};
|
|
2836
2895
|
|
|
2837
2896
|
class DataPickerRow extends React__namespace.Component {
|
|
2838
2897
|
constructor() {
|
|
@@ -2842,20 +2901,20 @@ class DataPickerRow extends React__namespace.Component {
|
|
|
2842
2901
|
};
|
|
2843
2902
|
}
|
|
2844
2903
|
render() {
|
|
2845
|
-
return (React__namespace.createElement(uuiComponents.DataPickerRow, Object.assign({}, this.props, { cx: [css$
|
|
2904
|
+
return (React__namespace.createElement(uuiComponents.DataPickerRow, Object.assign({}, this.props, { cx: [css$G.pickerRow, this.props.cx], renderContent: this.renderContent })));
|
|
2846
2905
|
}
|
|
2847
2906
|
}
|
|
2848
2907
|
|
|
2849
|
-
var css$
|
|
2908
|
+
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"};
|
|
2850
2909
|
|
|
2851
2910
|
const PickerBodyMobileView = (props) => {
|
|
2852
2911
|
const isMobileView = uuiCore.isMobile();
|
|
2853
2912
|
const maxWidth = isMobileView ? 'auto' : props.maxWidth;
|
|
2854
2913
|
const maxHeight = isMobileView ? 'auto' : props.maxHeight;
|
|
2855
|
-
return (React__namespace.default.createElement(DropdownContainer, Object.assign({}, props, { maxWidth: maxWidth, maxHeight: maxHeight, cx: [css$
|
|
2914
|
+
return (React__namespace.default.createElement(DropdownContainer, Object.assign({}, props, { maxWidth: maxWidth, maxHeight: maxHeight, cx: [css$F.container, props.cx], autoFocus: true }),
|
|
2856
2915
|
isMobileView && React__namespace.default.createElement(DataPickerHeader, { title: props.title, close: props.onClose }),
|
|
2857
2916
|
props.children,
|
|
2858
|
-
isMobileView && React__namespace.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$
|
|
2917
|
+
isMobileView && React__namespace.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 })));
|
|
2859
2918
|
};
|
|
2860
2919
|
|
|
2861
2920
|
var _path$r, _path2$4;
|
|
@@ -2880,7 +2939,7 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
|
2880
2939
|
};
|
|
2881
2940
|
var ForwardRef$r = /*#__PURE__*/React.forwardRef(SvgSearchWithBackground);
|
|
2882
2941
|
|
|
2883
|
-
var css$
|
|
2942
|
+
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"};
|
|
2884
2943
|
|
|
2885
2944
|
const mergeHighlightRanges = (ranges) => {
|
|
2886
2945
|
const mergedRanges = [];
|
|
@@ -2947,7 +3006,7 @@ const getHighlightedSearchMatches = (str, search) => {
|
|
|
2947
3006
|
return getDecoratedText(str, ranges);
|
|
2948
3007
|
};
|
|
2949
3008
|
|
|
2950
|
-
var css$
|
|
3009
|
+
var css$D = {"root":"tEDNpE","column-gap":"ewMnYD","columnGap":"ewMnYD","multiline":"pY-mW8","text":"WyX3dn"};
|
|
2951
3010
|
|
|
2952
3011
|
function PickerItem(props) {
|
|
2953
3012
|
var _a;
|
|
@@ -2957,13 +3016,13 @@ function PickerItem(props) {
|
|
|
2957
3016
|
const { search } = (_a = props.dataSourceState) !== null && _a !== void 0 ? _a : {};
|
|
2958
3017
|
const title = highlightSearchMatches ? getHighlightedSearchMatches(props.title, search) : props.title;
|
|
2959
3018
|
const subtitle = highlightSearchMatches ? getHighlightedSearchMatches(props.subtitle, search) : props.subtitle;
|
|
2960
|
-
return (React__namespace.createElement(FlexCell, { width: "auto", cx: [css$
|
|
2961
|
-
React__namespace.createElement(FlexRow, { size: itemSize, cx: [isMultiline && css$
|
|
3019
|
+
return (React__namespace.createElement(FlexCell, { width: "auto", cx: [css$D.root, 'uui-typography', cx] },
|
|
3020
|
+
React__namespace.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` } } },
|
|
2962
3021
|
avatarUrl && (React__namespace.createElement(uuiComponents.Avatar, { isLoading: isLoading, img: avatarUrl, size: getAvatarSize(itemSize, isMultiline).toString() })),
|
|
2963
3022
|
icon && React__namespace.createElement(uuiComponents.IconContainer, { icon: icon }),
|
|
2964
3023
|
React__namespace.createElement(FlexCell, { width: "auto" },
|
|
2965
|
-
title && (React__namespace.createElement(Text, { size: itemSize, cx: css$
|
|
2966
|
-
subtitle && (React__namespace.createElement(Text, { size: itemSize, color: isDisabled ? 'disabled' : 'secondary', cx: css$
|
|
3024
|
+
title && (React__namespace.createElement(Text, { size: itemSize, cx: css$D.text, color: isDisabled ? 'disabled' : 'primary' }, isLoading ? React__namespace.createElement(TextPlaceholder, { wordsCount: 2 }) : title)),
|
|
3025
|
+
subtitle && (React__namespace.createElement(Text, { size: itemSize, color: isDisabled ? 'disabled' : 'secondary', cx: css$D.text }, isLoading ? React__namespace.createElement(TextPlaceholder, { wordsCount: 2 }) : subtitle))))));
|
|
2967
3026
|
}
|
|
2968
3027
|
function getAvatarSize(size, isMultiline) {
|
|
2969
3028
|
return settings.sizes.pickerInput.body.dropdown.row.cell.item.avatar[isMultiline ? 'multiline' : 'rest'][size];
|
|
@@ -2997,17 +3056,17 @@ function PickerModal(props) {
|
|
|
2997
3056
|
React__namespace.default.createElement(Button, { color: "primary", caption: i18n.pickerModal.selectButton, onClick: () => props.success(selection) })));
|
|
2998
3057
|
};
|
|
2999
3058
|
const renderNotFound = () => {
|
|
3000
|
-
return props.renderNotFound ? (props.renderNotFound({ search: dataSourceState.search, onClose: () => props.success(null) })) : (React__namespace.default.createElement("div", { className: css$
|
|
3001
|
-
React__namespace.default.createElement(uuiComponents.IconContainer, { cx: css$
|
|
3002
|
-
React__namespace.default.createElement(Text, { cx: css$
|
|
3003
|
-
React__namespace.default.createElement(Text, { cx: css$
|
|
3059
|
+
return props.renderNotFound ? (props.renderNotFound({ search: dataSourceState.search, onClose: () => props.success(null) })) : (React__namespace.default.createElement("div", { className: css$E.noFoundModalContainer },
|
|
3060
|
+
React__namespace.default.createElement(uuiComponents.IconContainer, { cx: css$E.noFoundModalContainerIcon, icon: ForwardRef$r }),
|
|
3061
|
+
React__namespace.default.createElement(Text, { cx: css$E.noFoundModalContainerText, fontWeight: "600", fontSize: "16", lineHeight: "24", color: "primary", size: "36" }, i18n.dataPickerBody.noRecordsMessage),
|
|
3062
|
+
React__namespace.default.createElement(Text, { cx: css$E.noFoundModalContainerText, fontSize: "12", lineHeight: "18", color: "primary", size: "36" }, i18n.dataPickerBody.noRecordsSubTitle)));
|
|
3004
3063
|
};
|
|
3005
3064
|
const dataRows = getRows();
|
|
3006
3065
|
const rows = dataRows.map((row) => renderRow(row));
|
|
3007
3066
|
return (React__namespace.default.createElement(ModalBlocker, Object.assign({}, props),
|
|
3008
3067
|
React__namespace.default.createElement(ModalWindow, { width: 600, height: 700 },
|
|
3009
3068
|
React__namespace.default.createElement(ModalHeader, { title: props.caption || i18n.pickerModal.headerTitle, onClose: () => props.abort() }),
|
|
3010
|
-
React__namespace.default.createElement(FlexCell, { cx: css$
|
|
3069
|
+
React__namespace.default.createElement(FlexCell, { cx: css$E.subHeaderWrapper },
|
|
3011
3070
|
React__namespace.default.createElement(FlexRow, { vPadding: "24" },
|
|
3012
3071
|
React__namespace.default.createElement(SearchInput, Object.assign({}, dataSourceStateLens.prop('search').toProps(), { onKeyDown: (e) => uuiComponents.handleDataSourceKeyboard({
|
|
3013
3072
|
value: getDataSourceState(),
|
|
@@ -3016,20 +3075,20 @@ function PickerModal(props) {
|
|
|
3016
3075
|
rows: dataRows,
|
|
3017
3076
|
searchPosition: 'body',
|
|
3018
3077
|
}, e), autoFocus: true, placeholder: i18n.pickerModal.searchPlaceholder, rawProps: { dir: 'auto' } }))),
|
|
3019
|
-
!isSingleSelect() && (React__namespace.default.createElement(Switch, Object.assign({ cx: css$
|
|
3078
|
+
!isSingleSelect() && (React__namespace.default.createElement(Switch, Object.assign({ cx: css$E.switch, size: "18" }, getFooterProps().showSelected, { isDisabled: view.getSelectedRowsCount() < 1, label: "Show only selected" }))),
|
|
3020
3079
|
props.renderFilter && React__namespace.default.createElement(FlexCell, { grow: 2 }, props.renderFilter(dataSourceStateLens.prop('filter').toProps()))),
|
|
3021
3080
|
React__namespace.default.createElement(DataPickerBody, Object.assign({}, getListProps(), { value: getDataSourceState(), onValueChange: handleDataSourceValueChange, search: dataSourceStateLens.prop('search').toProps(), showSearch: false, rows: rows, renderNotFound: renderNotFound, editMode: "modal" })),
|
|
3022
3081
|
React__namespace.default.createElement(ModalFooter, { padding: "24", vPadding: "24" }, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
|
|
3023
3082
|
}
|
|
3024
3083
|
|
|
3025
|
-
var css$
|
|
3084
|
+
var css$C = {"tooltip":"iPNJyX"};
|
|
3026
3085
|
|
|
3027
3086
|
const PickerTogglerTag = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
3028
3087
|
var _a;
|
|
3029
3088
|
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__namespace.createElement(TextPlaceholder, null) : props.caption });
|
|
3030
3089
|
if (props.isCollapsed) {
|
|
3031
3090
|
const collapsedRows = props.collapsedRows.map((row) => props.getName(row.value)).join(', ');
|
|
3032
|
-
return (React__namespace.createElement(Tooltip, { key: "selected", content: collapsedRows, closeDelay: 150, closeOnMouseLeave: "boundary", cx: css$
|
|
3091
|
+
return (React__namespace.createElement(Tooltip, { key: "selected", content: collapsedRows, closeDelay: 150, closeOnMouseLeave: "boundary", cx: css$C.tooltip },
|
|
3033
3092
|
React__namespace.createElement(Tag, Object.assign({ ref: ref, rawProps: { role: 'option' } }, tagProps))));
|
|
3034
3093
|
}
|
|
3035
3094
|
else {
|
|
@@ -3037,15 +3096,15 @@ const PickerTogglerTag = /* @__PURE__ */React__namespace.forwardRef((props, ref)
|
|
|
3037
3096
|
}
|
|
3038
3097
|
});
|
|
3039
3098
|
|
|
3040
|
-
var css$
|
|
3099
|
+
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"};
|
|
3041
3100
|
|
|
3042
3101
|
const defaultMode = EditMode.FORM;
|
|
3043
3102
|
function applyPickerTogglerMods(mods) {
|
|
3044
3103
|
return [
|
|
3045
|
-
css$
|
|
3104
|
+
css$B.root,
|
|
3046
3105
|
'uui-picker_toggler',
|
|
3047
3106
|
`uui-size-${mods.size || settings.sizes.pickerInput.toggler.defaults.size}`,
|
|
3048
|
-
css$
|
|
3107
|
+
css$B['mode-' + (mods.mode || defaultMode)],
|
|
3049
3108
|
];
|
|
3050
3109
|
}
|
|
3051
3110
|
function PickerTogglerComponent(props, ref) {
|
|
@@ -3134,7 +3193,7 @@ function PickerInputComponent(_a, ref) {
|
|
|
3134
3193
|
}
|
|
3135
3194
|
const PickerInput = /* @__PURE__ */React__namespace.default.forwardRef(PickerInputComponent);
|
|
3136
3195
|
|
|
3137
|
-
var css$
|
|
3196
|
+
var css$A = {"row":"SGlRzY"};
|
|
3138
3197
|
|
|
3139
3198
|
function PickerListItem(props) {
|
|
3140
3199
|
var _a;
|
|
@@ -3152,10 +3211,10 @@ function PickerListItem(props) {
|
|
|
3152
3211
|
else {
|
|
3153
3212
|
component = (React__namespace.default.createElement(RadioInput, { label: label, value: props.isSelected, isDisabled: props.isLoading || !props.isSelectable || props.isDisabled, onValueChange: () => props.onSelect(props) }));
|
|
3154
3213
|
}
|
|
3155
|
-
return (React__namespace.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$
|
|
3214
|
+
return (React__namespace.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));
|
|
3156
3215
|
}
|
|
3157
3216
|
|
|
3158
|
-
var css$
|
|
3217
|
+
var css$z = {"root":"sXTYin"};
|
|
3159
3218
|
|
|
3160
3219
|
function PickerList(props) {
|
|
3161
3220
|
const { context, view, onlySelectedView, getName, getEntityName, appendLastSelected, getSelectedIdsArray, buildRowsList, getMaxDefaultItems, dataSourceState, getModalTogglerCaption, } = uuiComponents.usePickerList(props);
|
|
@@ -3178,7 +3237,7 @@ function PickerList(props) {
|
|
|
3178
3237
|
const showPicker = viewProps.totalCount == null || viewProps.totalCount > getMaxDefaultItems();
|
|
3179
3238
|
const renderToggler = props.renderModalToggler || defaultRenderToggler;
|
|
3180
3239
|
const renderRow = props.renderRow || defaultRenderRow;
|
|
3181
|
-
return (React__namespace.default.createElement("div", { className: cx__default.default('uui-picker-list', css$
|
|
3240
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default('uui-picker-list', css$z.root) },
|
|
3182
3241
|
!rows.length
|
|
3183
3242
|
&& (props.noOptionsMessage || (React__namespace.default.createElement(Text, { color: "secondary", size: props.size }, "No options available"))),
|
|
3184
3243
|
rows.map((row) => renderRow(Object.assign(Object.assign({}, row), { isDisabled: props.isDisabled }), dataSourceState)),
|
|
@@ -3190,7 +3249,7 @@ function PickerList(props) {
|
|
|
3190
3249
|
}, selectedRows)));
|
|
3191
3250
|
}
|
|
3192
3251
|
|
|
3193
|
-
var css$
|
|
3252
|
+
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"};
|
|
3194
3253
|
|
|
3195
3254
|
function DataTableCell(initialProps) {
|
|
3196
3255
|
const props = Object.assign({}, initialProps);
|
|
@@ -3224,12 +3283,12 @@ function DataTableCell(initialProps) {
|
|
|
3224
3283
|
};
|
|
3225
3284
|
props.cx = [
|
|
3226
3285
|
'data-table-cell',
|
|
3227
|
-
css$
|
|
3286
|
+
css$y.root,
|
|
3228
3287
|
props.cx,
|
|
3229
3288
|
'uui-size-' + (props.size || settings.sizes.dataTable.body.row.cell.defaults.size),
|
|
3230
3289
|
props.isFirstColumn && 'uui-dt-first-column',
|
|
3231
3290
|
props.isLastColumn && 'uui-dt-last-column',
|
|
3232
|
-
css$
|
|
3291
|
+
css$y[`align-widgets-${props.alignActions || 'top'}`],
|
|
3233
3292
|
(props.border || isEditable) && 'uui-dt-vertical-cell-border',
|
|
3234
3293
|
];
|
|
3235
3294
|
props.style = {
|
|
@@ -3239,7 +3298,7 @@ function DataTableCell(initialProps) {
|
|
|
3239
3298
|
return React__namespace.createElement(uuiComponents.DataTableCell, Object.assign({}, props));
|
|
3240
3299
|
}
|
|
3241
3300
|
|
|
3242
|
-
var css$
|
|
3301
|
+
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"};
|
|
3243
3302
|
|
|
3244
3303
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
3245
3304
|
// 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.
|
|
@@ -3251,11 +3310,11 @@ const renderDropMarkers = (props) => React__namespace.createElement(DropMarker,
|
|
|
3251
3310
|
const propsMods = { renderCell, renderDropMarkers };
|
|
3252
3311
|
const DataTableRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.DataTableRow, ({ borderBottom = true, size }) => {
|
|
3253
3312
|
return [
|
|
3254
|
-
css$
|
|
3313
|
+
css$x.root, 'uui-dt-vars', borderBottom && 'uui-dt-row-border', `uui-size-${size || settings.sizes.dataTable.body.row.default}`,
|
|
3255
3314
|
];
|
|
3256
3315
|
}, () => propsMods);
|
|
3257
3316
|
|
|
3258
|
-
var css$
|
|
3317
|
+
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"};
|
|
3259
3318
|
|
|
3260
3319
|
var _path$q;
|
|
3261
3320
|
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); }
|
|
@@ -3290,7 +3349,7 @@ var ForwardRef$p = /*#__PURE__*/React.forwardRef(SvgTableSortDescOutline);
|
|
|
3290
3349
|
const SortingPanelImpl = ({ sortDirection, onSort }) => {
|
|
3291
3350
|
const sortAsc = React.useCallback(() => onSort(sortDirection === 'asc' ? undefined : 'asc'), [onSort]);
|
|
3292
3351
|
const sortDesc = React.useCallback(() => onSort(sortDirection === 'desc' ? undefined : 'desc'), [onSort]);
|
|
3293
|
-
return (React__namespace.default.createElement(FlexCell, { cx: uuiCore.cx(css$
|
|
3352
|
+
return (React__namespace.default.createElement(FlexCell, { cx: uuiCore.cx(css$w.sortingPanelContainer, 'uui-dropdownMenu-body') },
|
|
3294
3353
|
React__namespace.default.createElement(DropdownMenuButton, { isActive: sortDirection === 'asc', caption: i18n.pickerFilterHeader.sortAscending, icon: ForwardRef$q, onClick: sortAsc }),
|
|
3295
3354
|
React__namespace.default.createElement(DropdownMenuButton, { isActive: sortDirection === 'desc', caption: i18n.pickerFilterHeader.sortDescending, icon: ForwardRef$p, onClick: sortDesc })));
|
|
3296
3355
|
};
|
|
@@ -3385,7 +3444,7 @@ var SvgNavigationExpandAllOutline = function SvgNavigationExpandAllOutline(props
|
|
|
3385
3444
|
};
|
|
3386
3445
|
var ForwardRef$k = /*#__PURE__*/React.forwardRef(SvgNavigationExpandAllOutline);
|
|
3387
3446
|
|
|
3388
|
-
var css$
|
|
3447
|
+
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"};
|
|
3389
3448
|
|
|
3390
3449
|
class DataTableHeaderCell extends React__namespace.Component {
|
|
3391
3450
|
constructor() {
|
|
@@ -3393,27 +3452,27 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
3393
3452
|
this.state = {
|
|
3394
3453
|
isDropdownOpen: null,
|
|
3395
3454
|
};
|
|
3396
|
-
this.getTooltipContent = (column) => (React__namespace.createElement("div", { className: uuiCore.cx(css$
|
|
3397
|
-
React__namespace.createElement(Text, { cx: [css$
|
|
3398
|
-
column.info && (React__namespace.createElement(Text, { cx: [css$
|
|
3455
|
+
this.getTooltipContent = (column) => (React__namespace.createElement("div", { className: uuiCore.cx(css$v.cellTooltipWrapper, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaptionTooltip) },
|
|
3456
|
+
React__namespace.createElement(Text, { cx: [css$v.cellTooltipText, css$v.tooltipCaption] }, column.caption),
|
|
3457
|
+
column.info && (React__namespace.createElement(Text, { cx: [css$v.cellTooltipText, css$v.tooltipInfo] }, column.info))));
|
|
3399
3458
|
this.getColumnCaption = () => {
|
|
3400
3459
|
const renderTooltip = this.props.column.renderTooltip || this.getTooltipContent;
|
|
3401
3460
|
const captionCx = [
|
|
3402
|
-
css$
|
|
3403
|
-
this.props.textCase === 'upper' && css$
|
|
3461
|
+
css$v.caption,
|
|
3462
|
+
this.props.textCase === 'upper' && css$v.upperCase,
|
|
3404
3463
|
uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaption,
|
|
3405
|
-
settings.sizes.dataTable.header.row.cell.truncate.includes(this.props.size) && css$
|
|
3464
|
+
settings.sizes.dataTable.header.row.cell.truncate.includes(this.props.size) && css$v.truncate,
|
|
3406
3465
|
];
|
|
3407
|
-
return (React__namespace.createElement("div", { className: uuiCore.cx(css$
|
|
3408
|
-
React__namespace.createElement(Tooltip, { placement: "top", color: "inverted", content: renderTooltip(this.props.column), cx: css$
|
|
3466
|
+
return (React__namespace.createElement("div", { className: uuiCore.cx(css$v.captionWrapper, css$v['align-' + this.props.column.textAlign], uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaptionWrapper) },
|
|
3467
|
+
React__namespace.createElement(Tooltip, { placement: "top", color: "inverted", content: renderTooltip(this.props.column), cx: css$v.cellTooltip, openDelay: 600 },
|
|
3409
3468
|
React__namespace.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)),
|
|
3410
|
-
this.props.column.isSortable && (!this.props.column.renderFilter || this.props.sortDirection) && (React__namespace.createElement(IconButton, { key: "sort", cx: uuiCore.cx(css$
|
|
3411
|
-
this.props.isFilterActive && (React__namespace.createElement(IconButton, { key: "filter", cx: uuiCore.cx(css$
|
|
3412
|
-
this.props.column.renderFilter && (React__namespace.createElement(IconButton, { key: "dropdown", cx: uuiCore.cx(css$
|
|
3469
|
+
this.props.column.isSortable && (!this.props.column.renderFilter || this.props.sortDirection) && (React__namespace.createElement(IconButton, { key: "sort", cx: uuiCore.cx(css$v.icon, css$v.sortIcon, this.props.sortDirection && css$v.sortIconActive, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderSortIcon), color: this.props.sortDirection ? 'neutral' : 'secondary', icon: this.props.sortDirection === 'desc' ? ForwardRef$p : this.props.sortDirection === 'asc' ? ForwardRef$q : ForwardRef$o })),
|
|
3470
|
+
this.props.isFilterActive && (React__namespace.createElement(IconButton, { key: "filter", cx: uuiCore.cx(css$v.icon, !this.props.sortDirection && css$v.filterIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderFilterIcon), color: "neutral", icon: ForwardRef$n })),
|
|
3471
|
+
this.props.column.renderFilter && (React__namespace.createElement(IconButton, { key: "dropdown", cx: uuiCore.cx(css$v.icon, css$v.dropdownIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderDropdownIcon), color: "secondary", icon: this.state.isDropdownOpen ? ForwardRef$m : ForwardRef$Q }))));
|
|
3413
3472
|
};
|
|
3414
3473
|
this.renderHeaderCheckbox = () => {
|
|
3415
3474
|
if (this.props.selectAll && this.props.isFirstColumn) {
|
|
3416
|
-
return (React__namespace.createElement(Checkbox, Object.assign({ size: settings.sizes.dataTable.header.row.cell.checkbox[this.props.size] }, this.props.selectAll, { cx: uuiCore.cx(css$
|
|
3475
|
+
return (React__namespace.createElement(Checkbox, Object.assign({ size: settings.sizes.dataTable.header.row.cell.checkbox[this.props.size] }, this.props.selectAll, { cx: uuiCore.cx(css$v.checkbox, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCheckbox) })));
|
|
3417
3476
|
}
|
|
3418
3477
|
};
|
|
3419
3478
|
this.renderFoldAllIcon = () => {
|
|
@@ -3421,14 +3480,14 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
3421
3480
|
return (React__namespace.createElement(Tooltip, { content: this.props.areAllFolded
|
|
3422
3481
|
? i18n.tables.columnHeader.expandAllTooltip
|
|
3423
3482
|
: i18n.tables.columnHeader.collapseAllTooltip },
|
|
3424
|
-
React__namespace.createElement(IconButton, { color: "secondary", cx: uuiCore.cx(css$
|
|
3483
|
+
React__namespace.createElement(IconButton, { color: "secondary", cx: uuiCore.cx(css$v.icon, css$v.foldAllIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderFoldAllIcon), icon: this.props.areAllFolded ? ForwardRef$k : ForwardRef$l, onClick: this.props.onFoldAll, rawProps: {
|
|
3425
3484
|
'aria-label': this.props.areAllFolded ? 'Expand All' : 'Collapse All',
|
|
3426
3485
|
'aria-expanded': !!this.props.areAllFolded,
|
|
3427
3486
|
} })));
|
|
3428
3487
|
}
|
|
3429
3488
|
};
|
|
3430
3489
|
this.renderResizingMarker = (props) => {
|
|
3431
|
-
return (React__namespace.createElement("div", { role: "separator", onMouseDown: props.onResizeStart, className: uuiCore.cx(css$
|
|
3490
|
+
return (React__namespace.createElement("div", { role: "separator", onMouseDown: props.onResizeStart, className: uuiCore.cx(css$v.resizingMarker, uuiCore.uuiMarkers.draggable, uuiCore.uuiMarkers.clickable) }));
|
|
3432
3491
|
};
|
|
3433
3492
|
this.getLeftPadding = () => {
|
|
3434
3493
|
const { columnsGap, isFirstColumn } = this.props;
|
|
@@ -3460,7 +3519,7 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
3460
3519
|
var _a;
|
|
3461
3520
|
props.ref(ref);
|
|
3462
3521
|
(_a = dropdownProps === null || dropdownProps === void 0 ? void 0 : dropdownProps.ref) === null || _a === void 0 ? void 0 : _a.call(dropdownProps, ref);
|
|
3463
|
-
}, cx: uuiCore.cx(uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCell, (this.props.column.isSortable || this.props.isDropdown) && uuiCore.uuiMarkers.clickable, css$
|
|
3522
|
+
}, cx: uuiCore.cx(uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCell, (this.props.column.isSortable || this.props.isDropdown) && uuiCore.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 },
|
|
3464
3523
|
this.renderHeaderCheckbox(),
|
|
3465
3524
|
this.renderFoldAllIcon(),
|
|
3466
3525
|
this.getColumnCaption(),
|
|
@@ -3491,10 +3550,65 @@ var SvgActionSettingsFill = function SvgActionSettingsFill(props, ref) {
|
|
|
3491
3550
|
};
|
|
3492
3551
|
var ForwardRef$j = /*#__PURE__*/React.forwardRef(SvgActionSettingsFill);
|
|
3493
3552
|
|
|
3494
|
-
var css$
|
|
3553
|
+
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"};
|
|
3554
|
+
|
|
3555
|
+
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"};
|
|
3495
3556
|
|
|
3496
|
-
|
|
3557
|
+
class DataTableHeaderGroupCell extends React__namespace.Component {
|
|
3558
|
+
constructor() {
|
|
3559
|
+
super(...arguments);
|
|
3560
|
+
this.getTooltipContent = (column) => (React__namespace.createElement("div", { className: uuiCore.cx(css$t.groupCellTooltipWrapper, uuiCore.uuiDataTableHeaderGroupCell.uuiTableHeaderGroupCaptionTooltip) },
|
|
3561
|
+
React__namespace.createElement(Text, { cx: [css$t.groupCellTooltipText, css$t.tooltipCaption] }, column.caption),
|
|
3562
|
+
column.info && (React__namespace.createElement(Text, { cx: [css$t.groupCellTooltipText, css$t.tooltipInfo] }, column.info))));
|
|
3563
|
+
this.getColumnCaption = () => {
|
|
3564
|
+
const renderTooltip = this.props.group.renderTooltip || this.getTooltipContent;
|
|
3565
|
+
const captionCx = [
|
|
3566
|
+
css$t.caption,
|
|
3567
|
+
this.props.textCase === 'upper' && css$t.upperCase,
|
|
3568
|
+
uuiCore.uuiDataTableHeaderGroupCell.uuiTableHeaderGroupCaption,
|
|
3569
|
+
settings.sizes.dataTable.header.row.groupCell.truncate.includes(this.props.size) && css$t.truncate,
|
|
3570
|
+
];
|
|
3571
|
+
return (React__namespace.createElement("div", { className: uuiCore.cx(css$t.captionWrapper, css$t['align-' + this.props.group.textAlign], uuiCore.uuiDataTableHeaderGroupCell.uuiTableHeaderGroupCaptionWrapper) },
|
|
3572
|
+
React__namespace.createElement(Tooltip, { placement: "top", color: "inverted", content: renderTooltip(this.props.group), cx: css$t.groupCellTooltip, openDelay: 600 },
|
|
3573
|
+
React__namespace.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))));
|
|
3574
|
+
};
|
|
3575
|
+
this.getLeftPadding = () => {
|
|
3576
|
+
const { columnsGap, isFirstCell } = this.props;
|
|
3577
|
+
if (columnsGap)
|
|
3578
|
+
return isFirstCell ? columnsGap : +columnsGap / 2;
|
|
3579
|
+
return isFirstCell ? settings.sizes.dataTable.header.row.groupCell.defaults.paddingEdge : settings.sizes.dataTable.header.row.groupCell.defaults.padding;
|
|
3580
|
+
};
|
|
3581
|
+
this.getRightPadding = () => {
|
|
3582
|
+
const { columnsGap, isLastCell } = this.props;
|
|
3583
|
+
if (columnsGap)
|
|
3584
|
+
return isLastCell ? columnsGap : +columnsGap / 2;
|
|
3585
|
+
return isLastCell ? settings.sizes.dataTable.header.row.groupCell.defaults.paddingEdge : settings.sizes.dataTable.header.row.groupCell.defaults.padding;
|
|
3586
|
+
};
|
|
3587
|
+
this.renderCellContent = (props) => {
|
|
3588
|
+
const computeStyles = {
|
|
3589
|
+
'--uui-dt-header-group-cell-padding-start': `${this.getLeftPadding()}px`,
|
|
3590
|
+
'--uui-dt-header-group-cell-padding-end': `${this.getRightPadding()}px`,
|
|
3591
|
+
};
|
|
3592
|
+
return (React__namespace.createElement(uuiComponents.DataTableCellContainer, { column: this.props.group, ref: (ref) => {
|
|
3593
|
+
props.ref(ref);
|
|
3594
|
+
}, cx: uuiCore.cx(uuiCore.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()));
|
|
3595
|
+
};
|
|
3596
|
+
}
|
|
3597
|
+
render() {
|
|
3598
|
+
if (this.props.group.renderHeaderCell) {
|
|
3599
|
+
return this.props.group.renderHeaderCell(this.props);
|
|
3600
|
+
}
|
|
3601
|
+
const computeStyles = {
|
|
3602
|
+
'--uui-dt-header-group-cell-padding-start': `${this.getLeftPadding()}px`,
|
|
3603
|
+
'--uui-dt-header-group-cell-padding-end': `${this.getRightPadding()}px`,
|
|
3604
|
+
};
|
|
3605
|
+
return (React__namespace.createElement(uuiComponents.DataTableCellContainer, { column: this.props.group, cx: uuiCore.cx(uuiCore.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()));
|
|
3606
|
+
}
|
|
3607
|
+
}
|
|
3608
|
+
|
|
3609
|
+
const DataTableHeaderRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.DataTableHeaderRow, () => [css$u.root, 'uui-dt-vars'], (mods) => ({
|
|
3497
3610
|
renderCell: (props) => (React__namespace.createElement(DataTableHeaderCell, Object.assign({}, props, { size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key, columnsGap: mods.columnsGap }))),
|
|
3611
|
+
renderGroupCell: (props) => (React__namespace.createElement(DataTableHeaderGroupCell, Object.assign({}, props, { size: mods.size, textCase: mods.textCase || 'normal', key: props.key, columnsGap: mods.columnsGap }))),
|
|
3498
3612
|
renderConfigButton: () => (React__namespace.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 })),
|
|
3499
3613
|
}));
|
|
3500
3614
|
|
|
@@ -3503,7 +3617,7 @@ const UUI_FILTERS_PANEL_ADD_BUTTON_BODY = 'uui-filters-panel-add-button-body';
|
|
|
3503
3617
|
const UUI_FILTERS_PANEL_ITEM_BODY = 'uui-filters-panel-item-body';
|
|
3504
3618
|
const UUI_FILTERS_PANEL_ITEM_TOGGLER = 'uui-filters-panel-item-toggler';
|
|
3505
3619
|
|
|
3506
|
-
var css$s = {"uui-typography":"
|
|
3620
|
+
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"};
|
|
3507
3621
|
|
|
3508
3622
|
const defaultSize = '36';
|
|
3509
3623
|
const FilterPanelItemToggler = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
@@ -3634,7 +3748,7 @@ function FilterRangeDatePickerBody(props) {
|
|
|
3634
3748
|
const context = uuiCore.useUuiContext();
|
|
3635
3749
|
const onOpenChange = (newIsOpen) => {
|
|
3636
3750
|
var _a, _b;
|
|
3637
|
-
|
|
3751
|
+
{
|
|
3638
3752
|
(_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
3639
3753
|
}
|
|
3640
3754
|
(_b = props.onOpenChange) === null || _b === void 0 ? void 0 : _b.call(props, newIsOpen);
|
|
@@ -3681,7 +3795,7 @@ function FilterRangeDatePickerBody(props) {
|
|
|
3681
3795
|
React__namespace.default.createElement(LinkButton, { isDisabled: !value.from && !value.to, caption: i18n.pickerModal.clearAllButton, onClick: () => onValueChange(defaultRangeValue) })))));
|
|
3682
3796
|
}
|
|
3683
3797
|
|
|
3684
|
-
var css$r = {"container":"
|
|
3798
|
+
var css$r = {"container":"_14kw-Q"};
|
|
3685
3799
|
|
|
3686
3800
|
function FilterNumericBody(props) {
|
|
3687
3801
|
var _a, _b;
|
|
@@ -3779,7 +3893,7 @@ var SvgActionDeleteOutline = function SvgActionDeleteOutline(props, ref) {
|
|
|
3779
3893
|
};
|
|
3780
3894
|
var ForwardRef$i = /*#__PURE__*/React.forwardRef(SvgActionDeleteOutline);
|
|
3781
3895
|
|
|
3782
|
-
var css$q = {"uui-typography":"
|
|
3896
|
+
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"};
|
|
3783
3897
|
|
|
3784
3898
|
function useView(props, value) {
|
|
3785
3899
|
const forceUpdate = uuiCore.useForceUpdate();
|
|
@@ -4100,7 +4214,7 @@ function FiltersToolbarImpl(props) {
|
|
|
4100
4214
|
}
|
|
4101
4215
|
const FiltersPanel = /* @__PURE__ */React__namespace.default.memo(FiltersToolbarImpl);
|
|
4102
4216
|
|
|
4103
|
-
var css$p = {"divider":"
|
|
4217
|
+
var css$p = {"divider":"WUoHol","dropdownDeleteIcon":"EURDQT","presetsWrapper":"ue2wPg","addPresetContainer":"bSJiS6","dropContainer":"caIP9m"};
|
|
4104
4218
|
|
|
4105
4219
|
var _path$g;
|
|
4106
4220
|
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); }
|
|
@@ -4213,7 +4327,7 @@ var SvgContentLinkOutline = function SvgContentLinkOutline(props, ref) {
|
|
|
4213
4327
|
};
|
|
4214
4328
|
var ForwardRef$a = /*#__PURE__*/React.forwardRef(SvgContentLinkOutline);
|
|
4215
4329
|
|
|
4216
|
-
var css$o = {"delete-button":"
|
|
4330
|
+
var css$o = {"delete-button":"nofb7J","deleteButton":"nofb7J","tab-button":"N-tFt6","tabButton":"N-tFt6","targetOpen":"qXwPW-"};
|
|
4217
4331
|
|
|
4218
4332
|
function PresetActionsDropdown(props) {
|
|
4219
4333
|
const { uuiNotifications } = uuiCore.useUuiContext();
|
|
@@ -4254,12 +4368,14 @@ function PresetActionsDropdown(props) {
|
|
|
4254
4368
|
const isRenameAvailable = props.preset.id === props.activePresetId && !isReadonlyPreset;
|
|
4255
4369
|
return (React__namespace.default.createElement(DropdownMenuBody, Object.assign({}, dropdownProps),
|
|
4256
4370
|
isPresetChanged && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
4257
|
-
!isReadonlyPreset && (React__namespace.default.createElement(DropdownMenuButton, { key: `${props.preset.id}-save-in-current`, icon: ForwardRef$f, caption: "Save in current", onClick: saveInCurrentHandler })),
|
|
4258
|
-
React__namespace.default.createElement(DropdownMenuButton, { key: `${props.preset.id}-save-as-new`, icon: ForwardRef$e, caption: "Save as new",
|
|
4259
|
-
|
|
4371
|
+
!isReadonlyPreset && (React__namespace.default.createElement(DropdownMenuButton, { key: `${props.preset.id}-save-in-current`, icon: ForwardRef$f, caption: "Save in current", onClick: () => { dropdownProps.onClose(); saveInCurrentHandler(); } })),
|
|
4372
|
+
React__namespace.default.createElement(DropdownMenuButton, { key: `${props.preset.id}-save-as-new`, icon: ForwardRef$e, caption: "Save as new",
|
|
4373
|
+
// 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
|
|
4374
|
+
onClick: () => { dropdownProps.onClose(); setTimeout(() => props.addPreset(), 0); } }),
|
|
4375
|
+
React__namespace.default.createElement(DropdownMenuButton, { key: `${props.preset.id}-discard`, icon: ForwardRef$d, caption: "Discard all changes", onClick: () => { dropdownProps.onClose(); discardAllChangesHandler(); } }),
|
|
4260
4376
|
React__namespace.default.createElement(DropdownMenuSplitter, { key: "discard-splitter" }))),
|
|
4261
4377
|
isRenameAvailable && (React__namespace.default.createElement(DropdownMenuButton, { key: `${props.preset.id}-rename`, icon: ForwardRef$b, caption: "Rename", onClick: props.renamePreset })),
|
|
4262
|
-
React__namespace.default.createElement(DropdownMenuButton, { key: `${props.preset.id}-duplicate`, icon: ForwardRef$c, caption: "Duplicate", onClick: duplicateHandler }),
|
|
4378
|
+
React__namespace.default.createElement(DropdownMenuButton, { key: `${props.preset.id}-duplicate`, icon: ForwardRef$c, caption: "Duplicate", onClick: () => { dropdownProps.onClose(); duplicateHandler(); } }),
|
|
4263
4379
|
React__namespace.default.createElement(DropdownMenuButton, { key: `${props.preset.id}-copyLink`, icon: ForwardRef$a, caption: "Copy Link", onClick: copyUrlToClipboard }),
|
|
4264
4380
|
!isReadonlyPreset && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
4265
4381
|
React__namespace.default.createElement(DropdownMenuSplitter, { key: "delete-splitter" }),
|
|
@@ -4271,7 +4387,7 @@ function PresetActionsDropdown(props) {
|
|
|
4271
4387
|
return (React__namespace.default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end", modifiers: [{ name: 'offset', options: { offset: [0, 22] } }] }));
|
|
4272
4388
|
}
|
|
4273
4389
|
|
|
4274
|
-
var css$n = {"preset-input-cell":"
|
|
4390
|
+
var css$n = {"preset-input-cell":"Dn-BMn","presetInputCell":"Dn-BMn","preset-input":"SsrZgS","presetInput":"SsrZgS"};
|
|
4275
4391
|
|
|
4276
4392
|
const UUI_PRESETS_PANEL_ADD_BUTTON = 'uui-presets-panel-add-button';
|
|
4277
4393
|
const UUI_PRESETS_PANEL_MORE_BUTTON = 'uui-presets-panel-more-button';
|
|
@@ -4304,7 +4420,7 @@ function PresetInput(props) {
|
|
|
4304
4420
|
React__namespace.default.createElement(TextInput, { cx: css$n.presetInput, onValueChange: setPresetCaption, value: presetCaption, onCancel: cancelActionHandler, onAccept: acceptActionHandler, onBlur: newPresetOnBlurHandler, autoFocus: true, maxLength: 50, isReadonly: readonly })));
|
|
4305
4421
|
}
|
|
4306
4422
|
|
|
4307
|
-
var css$m = {"preset":"
|
|
4423
|
+
var css$m = {"preset":"NClphZ","activePreset":"ypn8yA"};
|
|
4308
4424
|
|
|
4309
4425
|
function Preset(props) {
|
|
4310
4426
|
const [isRenamePreset, setIsRenamePreset] = React.useState(false);
|
|
@@ -4322,7 +4438,8 @@ function Preset(props) {
|
|
|
4322
4438
|
return props.updatePreset(newPreset);
|
|
4323
4439
|
}, [props.preset]);
|
|
4324
4440
|
const isPresetActive = props.activePresetId === props.preset.id;
|
|
4325
|
-
|
|
4441
|
+
const PresetActionsDropdownComponent = React.useCallback(() => React__namespace.default.createElement(PresetActionsDropdown, Object.assign({ renamePreset: setPresetForRename }, props)), [props.preset, props.tableState, props.activePresetId]);
|
|
4442
|
+
return (React__namespace.default.createElement(FlexCell, { key: props.preset.id, alignSelf: "center", width: "auto" }, isRenamePreset ? (React__namespace.default.createElement(PresetInput, { onCancel: cancelRenamePreset, onSuccess: handlePresetRename, preset: props.preset })) : (React__namespace.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 }))));
|
|
4326
4443
|
}
|
|
4327
4444
|
|
|
4328
4445
|
var _path$9;
|
|
@@ -4478,7 +4595,7 @@ var SvgTableGroupColumnRightFill = function SvgTableGroupColumnRightFill(props,
|
|
|
4478
4595
|
};
|
|
4479
4596
|
var ForwardRef$6 = /*#__PURE__*/React.forwardRef(SvgTableGroupColumnRightFill);
|
|
4480
4597
|
|
|
4481
|
-
var css$l = {"unpin-icon":"
|
|
4598
|
+
var css$l = {"unpin-icon":"Nicm0o","unpinIcon":"Nicm0o","pin-toggler-icon":"Ar8l5q","pinTogglerIcon":"Ar8l5q"};
|
|
4482
4599
|
|
|
4483
4600
|
function PinIconButton(props) {
|
|
4484
4601
|
const i18nLocal = i18n.tables.columnsConfigurationModal;
|
|
@@ -4537,7 +4654,7 @@ var SvgActionDragIndicator18 = function SvgActionDragIndicator18(props, ref) {
|
|
|
4537
4654
|
};
|
|
4538
4655
|
var ForwardRef$5 = /*#__PURE__*/React.forwardRef(SvgActionDragIndicator18);
|
|
4539
4656
|
|
|
4540
|
-
var css$k = {"uui-typography":"
|
|
4657
|
+
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"};
|
|
4541
4658
|
|
|
4542
4659
|
const ColumnRow = /* @__PURE__ */React__namespace.memo(function ColumnRow(props) {
|
|
4543
4660
|
const { column } = props;
|
|
@@ -4560,7 +4677,7 @@ const ColumnRow = /* @__PURE__ */React__namespace.memo(function ColumnRow(props)
|
|
|
4560
4677
|
return (React__namespace.createElement(uuiCore.DndActor, { key: column.key, srcData: isDndAllowed && data, dstData: data, canAcceptDrop: onCanAcceptDrop, onDrop: onDrop, render: renderContent }));
|
|
4561
4678
|
});
|
|
4562
4679
|
|
|
4563
|
-
var css$j = {"uui-typography":"
|
|
4680
|
+
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"};
|
|
4564
4681
|
|
|
4565
4682
|
const renderGroupTitle = (title, amount) => (React__namespace.createElement(FlexRow, { cx: css$j.group },
|
|
4566
4683
|
React__namespace.createElement(Text, { size: "none", cx: css$j.groupTitle }, title),
|
|
@@ -4637,7 +4754,7 @@ function SubGroup(props) {
|
|
|
4637
4754
|
const content = (React__namespace.createElement(FlexRow, { cx: css$j.groupItems, size: settings.sizes.dataTable.columnsConfigurationModal.columnRow }, items.map((c) => (React__namespace.createElement(ColumnRow, { column: c, key: c.key, renderItem: renderItem })))));
|
|
4638
4755
|
if (isCollapsible) {
|
|
4639
4756
|
const renderTitle = (isOpened) => {
|
|
4640
|
-
const toggleIcon = isOpened ? ForwardRef$
|
|
4757
|
+
const toggleIcon = isOpened ? ForwardRef$Q : ForwardRef$v;
|
|
4641
4758
|
return (React__namespace.createElement(FlexRow, { cx: uuiCore.cx(css$j.subgroup) },
|
|
4642
4759
|
React__namespace.createElement(uuiComponents.IconContainer, { size: settings.sizes.dataTable.columnsConfigurationModal.subgroupIcon, icon: toggleIcon }),
|
|
4643
4760
|
React__namespace.createElement(Text, { size: "none", color: "tertiary", cx: css$j.subgroupTitle }, title)));
|
|
@@ -4649,7 +4766,7 @@ function SubGroup(props) {
|
|
|
4649
4766
|
return null;
|
|
4650
4767
|
}
|
|
4651
4768
|
|
|
4652
|
-
var css$i = {"listContainer":"
|
|
4769
|
+
var css$i = {"listContainer":"K-ETk4","header":"_9iM73l","group":"G-EGKa","stickyHeader":"t76FIc"};
|
|
4653
4770
|
|
|
4654
4771
|
const getChildrenAndRest = (row, rows) => {
|
|
4655
4772
|
const firstNotChildIndex = rows.findIndex((other) => other.depth < row.depth || (row.depth === other.depth && other.isPinned));
|
|
@@ -4715,7 +4832,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4715
4832
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4716
4833
|
ref: ref
|
|
4717
4834
|
}, props), /*#__PURE__*/React__namespace.createElement("g", {
|
|
4718
|
-
clipPath: "url(#
|
|
4835
|
+
clipPath: "url(#zslffuwbe3x0hyms_a)"
|
|
4719
4836
|
}, _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4720
4837
|
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",
|
|
4721
4838
|
fill: "#F5F6FA"
|
|
@@ -4736,7 +4853,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4736
4853
|
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",
|
|
4737
4854
|
fill: "#1D1E26"
|
|
4738
4855
|
})), /*#__PURE__*/React__namespace.createElement("mask", {
|
|
4739
|
-
id: "
|
|
4856
|
+
id: "zslffuefrkrogn54_b",
|
|
4740
4857
|
style: {
|
|
4741
4858
|
maskType: "alpha"
|
|
4742
4859
|
},
|
|
@@ -4749,7 +4866,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4749
4866
|
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",
|
|
4750
4867
|
fill: "#9BDEFF"
|
|
4751
4868
|
}))), _g || (_g = /*#__PURE__*/React__namespace.createElement("g", {
|
|
4752
|
-
mask: "url(#
|
|
4869
|
+
mask: "url(#zslffuefrkrogn54_b)",
|
|
4753
4870
|
fillRule: "evenodd",
|
|
4754
4871
|
clipRule: "evenodd"
|
|
4755
4872
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -4835,7 +4952,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4835
4952
|
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",
|
|
4836
4953
|
fill: "#fff"
|
|
4837
4954
|
}))), _defs || (_defs = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
4838
|
-
id: "
|
|
4955
|
+
id: "zslffuwbe3x0hyms_a"
|
|
4839
4956
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
4840
4957
|
fill: "#fff",
|
|
4841
4958
|
transform: "translate(.552)",
|
|
@@ -4844,7 +4961,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4844
4961
|
};
|
|
4845
4962
|
var ForwardRef$4 = /*#__PURE__*/React.forwardRef(SvgEmptyTable);
|
|
4846
4963
|
|
|
4847
|
-
var css$h = {"root":"
|
|
4964
|
+
var css$h = {"root":"NooTnf","sticky-header":"IXbZMo","stickyHeader":"IXbZMo","no-results":"_90wEUV","noResults":"_90wEUV","icon":"_91Kmhl","title":"wjVG8n"};
|
|
4848
4965
|
|
|
4849
4966
|
function DataTable(props) {
|
|
4850
4967
|
var _a, _b, _c, _d;
|
|
@@ -4879,7 +4996,7 @@ function DataTable(props) {
|
|
|
4879
4996
|
]);
|
|
4880
4997
|
const renderRowsContainer = React__namespace.useCallback(({ listContainerRef, estimatedHeight, offsetY, scrollShadows }) => (React__namespace.createElement(React__namespace.Fragment, null,
|
|
4881
4998
|
React__namespace.createElement("div", { className: css$h.stickyHeader, ref: headerRef },
|
|
4882
|
-
React__namespace.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 }),
|
|
4999
|
+
React__namespace.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 }),
|
|
4883
5000
|
React__namespace.createElement("div", { className: uuiCore.cx(uuiCore.uuiScrollShadows.top, {
|
|
4884
5001
|
[uuiCore.uuiScrollShadows.topVisible]: scrollShadows.verticalTop,
|
|
4885
5002
|
}) })),
|
|
@@ -4895,9 +5012,9 @@ function DataTable(props) {
|
|
|
4895
5012
|
} }))));
|
|
4896
5013
|
}
|
|
4897
5014
|
|
|
4898
|
-
var css$g = {"root":"
|
|
5015
|
+
var css$g = {"root":"ysccK0"};
|
|
4899
5016
|
|
|
4900
|
-
var css$f = {"root":"
|
|
5017
|
+
var css$f = {"root":"NV1wxU","burger-content":"LnKa9I","burgerContent":"LnKa9I"};
|
|
4901
5018
|
|
|
4902
5019
|
var _path$3;
|
|
4903
5020
|
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); }
|
|
@@ -4919,7 +5036,7 @@ function applyBurgerMods() {
|
|
|
4919
5036
|
}
|
|
4920
5037
|
const Burger = /* @__PURE__ */uuiCore.withMods(uuiComponents.Burger, applyBurgerMods, () => ({
|
|
4921
5038
|
burgerIcon: ForwardRef$3,
|
|
4922
|
-
crossIcon: ForwardRef$
|
|
5039
|
+
crossIcon: ForwardRef$R,
|
|
4923
5040
|
burgerContentCx: css$f.burgerContent,
|
|
4924
5041
|
}));
|
|
4925
5042
|
|
|
@@ -4940,7 +5057,7 @@ var SvgNavigationArrowDownOutline = function SvgNavigationArrowDownOutline(props
|
|
|
4940
5057
|
};
|
|
4941
5058
|
var ForwardRef$2 = /*#__PURE__*/React.forwardRef(SvgNavigationArrowDownOutline);
|
|
4942
5059
|
|
|
4943
|
-
var css$e = {"uui-typography":"
|
|
5060
|
+
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"};
|
|
4944
5061
|
|
|
4945
5062
|
const BurgerButton = /* @__PURE__ */uuiCore.withMods(uuiComponents.Button, (props) => [
|
|
4946
5063
|
css$e.root,
|
|
@@ -4951,13 +5068,13 @@ const BurgerButton = /* @__PURE__ */uuiCore.withMods(uuiComponents.Button, (prop
|
|
|
4951
5068
|
props.icon && css$e.hasIcon,
|
|
4952
5069
|
], () => ({ dropdownIcon: ForwardRef$2, dropdownIconPosition: 'left', role: 'menuitem' }));
|
|
4953
5070
|
|
|
4954
|
-
var css$d = {"search-input":"
|
|
5071
|
+
var css$d = {"search-input":"i1iw2c","searchInput":"i1iw2c"};
|
|
4955
5072
|
|
|
4956
5073
|
function BurgerSearch(props) {
|
|
4957
|
-
return (React__namespace.createElement(uuiComponents.TextInput, { cx: cx__default.default(css$d.searchInput, 'uui-main_menu-burger-search'), iconPosition: "left", icon: ForwardRef$
|
|
5074
|
+
return (React__namespace.createElement(uuiComponents.TextInput, { cx: cx__default.default(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 }));
|
|
4958
5075
|
}
|
|
4959
5076
|
|
|
4960
|
-
var css$c = {"root":"
|
|
5077
|
+
var css$c = {"root":"tEiErd","group-header":"jBZk12","groupHeader":"jBZk12","group-name":"WuI71n","groupName":"WuI71n","line":"UxGgi8"};
|
|
4961
5078
|
|
|
4962
5079
|
function BurgerGroupHeader(props) {
|
|
4963
5080
|
return (React__namespace.createElement("div", { className: cx__default.default(css$c.root, css$c.groupHeader, 'uui-burger-group-header') },
|
|
@@ -4965,7 +5082,7 @@ function BurgerGroupHeader(props) {
|
|
|
4965
5082
|
React__namespace.createElement("span", { className: css$c.groupName }, props.caption)));
|
|
4966
5083
|
}
|
|
4967
5084
|
|
|
4968
|
-
var css$b = {"uui-typography":"
|
|
5085
|
+
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"};
|
|
4969
5086
|
|
|
4970
5087
|
const MainMenuButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
4971
5088
|
const { type } = props, clickableProps = __rest(props, ["type"]);
|
|
@@ -4978,10 +5095,10 @@ const MainMenuButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) =
|
|
|
4978
5095
|
props.caption && (React__namespace.createElement("div", { className: uuiCore.uuiElement.caption }, props.caption)),
|
|
4979
5096
|
props.count !== undefined && props.count !== null && (React__namespace.createElement(CountIndicator, { caption: props.count, color: "neutral", size: "18" })),
|
|
4980
5097
|
props.icon && props.iconPosition === 'right' && (React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: props.onIconClick })),
|
|
4981
|
-
props.isDropdown && (React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$
|
|
5098
|
+
props.isDropdown && (React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$Q, flipY: props.isOpen }))));
|
|
4982
5099
|
});
|
|
4983
5100
|
|
|
4984
|
-
var css$a = {"dropdown-body":"
|
|
5101
|
+
var css$a = {"dropdown-body":"_-3Qts7","dropdownBody":"_-3Qts7"};
|
|
4985
5102
|
|
|
4986
5103
|
class MainMenuDropdown extends React__namespace.Component {
|
|
4987
5104
|
render() {
|
|
@@ -5036,31 +5153,31 @@ var SvgNavigationGlobalMenuOutlineOutline = function SvgNavigationGlobalMenuOutl
|
|
|
5036
5153
|
};
|
|
5037
5154
|
var ForwardRef$1 = /*#__PURE__*/React.forwardRef(SvgNavigationGlobalMenuOutlineOutline);
|
|
5038
5155
|
|
|
5039
|
-
var css$9 = {"global-menu-btn":"
|
|
5156
|
+
var css$9 = {"global-menu-btn":"EvIOVk","globalMenuBtn":"EvIOVk","global-menu-icon":"IV2Nbc","globalMenuIcon":"IV2Nbc"};
|
|
5040
5157
|
|
|
5041
5158
|
const GlobalMenu = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("button", Object.assign({ ref: ref, id: "global_menu_toggle", className: cx__default.default(css$9.globalMenuBtn, props.cx) }, props.rawProps),
|
|
5042
5159
|
React__namespace.createElement(uuiComponents.IconContainer, { size: 36, icon: ForwardRef$1, cx: css$9.globalMenuIcon }))));
|
|
5043
5160
|
|
|
5044
|
-
var css$8 = {"container":"
|
|
5161
|
+
var css$8 = {"container":"_6otY3S","open":"_0jh-Rd","folding-arrow":"cg4DT5","foldingArrow":"cg4DT5"};
|
|
5045
5162
|
|
|
5046
5163
|
const MainMenuAvatar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("button", { ref: ref, className: cx__default.default(css$8.container, props.isDropdown && css$8.dropdown, props.isOpen && css$8.open, props.onClick && uuiCore.uuiMarkers.clickable, props.cx), onClick: props.onClick },
|
|
5047
5164
|
React__namespace.createElement(uuiComponents.Avatar, { size: "36", img: props.avatarUrl }),
|
|
5048
5165
|
props.icon && React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon }),
|
|
5049
5166
|
props.isDropdown && (React__namespace.createElement("div", null,
|
|
5050
|
-
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, icon: ForwardRef$
|
|
5167
|
+
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, icon: ForwardRef$Q, flipY: props.isOpen, cx: css$8.foldingArrow }))))));
|
|
5051
5168
|
|
|
5052
|
-
var css$7 = {"search-input":"
|
|
5169
|
+
var css$7 = {"search-input":"vLCki4","searchInput":"vLCki4"};
|
|
5053
5170
|
|
|
5054
5171
|
const MainMenuSearch = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement(uuiCore.IEditableDebouncer, Object.assign({}, props, { render: (iEditable) => {
|
|
5055
5172
|
var _a;
|
|
5056
|
-
return (React__namespace.createElement(uuiComponents.TextInput, Object.assign({ iconPosition: "left", icon: ForwardRef$
|
|
5173
|
+
return (React__namespace.createElement(uuiComponents.TextInput, 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: uuiCore.cx(css$7.searchInput, props.cx) }, props.rawProps)));
|
|
5057
5174
|
} }))));
|
|
5058
5175
|
|
|
5059
|
-
var css$6 = {"container":"
|
|
5176
|
+
var css$6 = {"container":"_03hE-9"};
|
|
5060
5177
|
|
|
5061
5178
|
const MainMenuIcon = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement(IconButton, Object.assign({ ref: ref, icon: props.icon, cx: uuiCore.cx(props.cx, css$6.container) }, props))));
|
|
5062
5179
|
|
|
5063
|
-
var css$5 = {"root":"
|
|
5180
|
+
var css$5 = {"root":"uRVbSA"};
|
|
5064
5181
|
|
|
5065
5182
|
const Anchor = /* @__PURE__ */uuiCore.withMods(uuiComponents.Anchor, () => [css$5.root]);
|
|
5066
5183
|
|
|
@@ -5118,7 +5235,7 @@ var SvgFileCloudUploadFill = function SvgFileCloudUploadFill(props, ref) {
|
|
|
5118
5235
|
};
|
|
5119
5236
|
var ForwardRef = /*#__PURE__*/React.forwardRef(SvgFileCloudUploadFill);
|
|
5120
5237
|
|
|
5121
|
-
var css$4 = {"root":"
|
|
5238
|
+
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"};
|
|
5122
5239
|
|
|
5123
5240
|
function DropSpot(props) {
|
|
5124
5241
|
const getInfoText = typeof props.infoText === 'string'
|
|
@@ -5136,9 +5253,9 @@ function DropSpot(props) {
|
|
|
5136
5253
|
return React__namespace.createElement(uuiComponents.DropSpot, { render: renderAttachmentArea, onFilesDropped: props.onUploadFiles });
|
|
5137
5254
|
}
|
|
5138
5255
|
|
|
5139
|
-
var css$3 = {"uui-typography":"
|
|
5256
|
+
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"};
|
|
5140
5257
|
|
|
5141
|
-
var css$2 = {"root":"
|
|
5258
|
+
var css$2 = {"root":"ciOnoq"};
|
|
5142
5259
|
|
|
5143
5260
|
const SvgCircleProgress = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5144
5261
|
const outsetRadius = props.size / 2 - 1;
|
|
@@ -5203,7 +5320,7 @@ const FileCard = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
5203
5320
|
};
|
|
5204
5321
|
const renderErrorContent = () => (React__namespace.createElement(Tooltip, { content: file.error.message, placement: "bottom-start" },
|
|
5205
5322
|
React__namespace.createElement("div", { className: css$3.errorBlock },
|
|
5206
|
-
React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$
|
|
5323
|
+
React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$y, size: 12 }),
|
|
5207
5324
|
i18n.fileCard.failedUploadErrorMessage)));
|
|
5208
5325
|
const renderSuccessfulContent = () => (React__namespace.createElement(Text, { size: "18", fontSize: "14", lineHeight: "18", color: "tertiary" },
|
|
5209
5326
|
fileExtension && `${fileExtension.toUpperCase()}, `,
|
|
@@ -5221,7 +5338,7 @@ const FileCard = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
|
5221
5338
|
(error === null || error === void 0 ? void 0 : error.isError) ? renderErrorContent() : renderSuccessfulContent()),
|
|
5222
5339
|
React__namespace.createElement("div", { className: uuiCore.cx(css$3.iconsBlock), onMouseEnter: mouseEnterHandler, onMouseLeave: mouseLeaveHandler },
|
|
5223
5340
|
isLoadingShow && isLoading && React__namespace.createElement(SvgCircleProgress, { progress: progress, size: 18 }),
|
|
5224
|
-
isCrossShow && React__namespace.createElement(IconButton, { icon: ForwardRef$
|
|
5341
|
+
isCrossShow && React__namespace.createElement(IconButton, { icon: ForwardRef$R, onClick: removeHandler })))));
|
|
5225
5342
|
});
|
|
5226
5343
|
|
|
5227
5344
|
const getRecoveryMessageConfig = () => ({
|
|
@@ -5248,22 +5365,25 @@ const getErrorPageConfig = () => ({
|
|
|
5248
5365
|
mobileImageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-illustrations/L_Error_500_Monochrome.svg',
|
|
5249
5366
|
title: i18n.errorHandler.errorPageConfig.serverError.title,
|
|
5250
5367
|
subtitle: i18n.errorHandler.errorPageConfig.serverError.subtitle,
|
|
5368
|
+
supportLink: i18n.errorHandler.supportLink,
|
|
5251
5369
|
},
|
|
5252
5370
|
serviceUnavailable: {
|
|
5253
5371
|
imageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-illustrations/L_Error_503_Monochrome.svg',
|
|
5254
5372
|
mobileImageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-illustrations/L_Error_503_Monochrome.svg',
|
|
5255
5373
|
title: i18n.errorHandler.errorPageConfig.serviceUnavailable.title,
|
|
5256
5374
|
subtitle: i18n.errorHandler.errorPageConfig.serviceUnavailable.subtitle,
|
|
5375
|
+
supportLink: i18n.errorHandler.supportLink,
|
|
5257
5376
|
},
|
|
5258
5377
|
default: {
|
|
5259
5378
|
imageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-illustrations/L_Empty_Monochrome.svg',
|
|
5260
5379
|
mobileImageUrl: 'https://static.cdn.epam.com/uploads/690afa39a93c88c4dd13758fe1d869d5/EPM-UUI/error-pages-illustrations/L_Empty_Monochrome.svg',
|
|
5261
5380
|
title: i18n.errorHandler.errorPageConfig.default.title,
|
|
5262
5381
|
subtitle: i18n.errorHandler.errorPageConfig.default.subtitle,
|
|
5382
|
+
supportLink: i18n.errorHandler.supportLink,
|
|
5263
5383
|
},
|
|
5264
5384
|
});
|
|
5265
5385
|
|
|
5266
|
-
var css$1 = {"container":"
|
|
5386
|
+
var css$1 = {"container":"_5gu0D9"};
|
|
5267
5387
|
|
|
5268
5388
|
const ErrorPage = (props) => {
|
|
5269
5389
|
const isMobileScreen = uuiCore.isMobile();
|
|
@@ -5271,10 +5391,11 @@ const ErrorPage = (props) => {
|
|
|
5271
5391
|
React__namespace.default.createElement("div", { className: "uui-error-content" },
|
|
5272
5392
|
React__namespace.default.createElement("img", { className: "uui-error-image", src: isMobileScreen && props.mobileImageUrl ? props.mobileImageUrl : props.imageUrl, alt: "ERROR OCCURRED!" }),
|
|
5273
5393
|
React__namespace.default.createElement("div", { className: "uui-error-title" }, props.title),
|
|
5274
|
-
React__namespace.default.createElement("div", { className: "uui-error-subtitle" }, props.subtitle)
|
|
5394
|
+
React__namespace.default.createElement("div", { className: "uui-error-subtitle" }, props.subtitle),
|
|
5395
|
+
React__namespace.default.createElement("div", { className: "uui-error-support-link" }, props === null || props === void 0 ? void 0 : props.supportLink))));
|
|
5275
5396
|
};
|
|
5276
5397
|
|
|
5277
|
-
var css = {"recovery-spinner":"
|
|
5398
|
+
var css = {"recovery-spinner":"MDkORu","recoverySpinner":"MDkORu","recovery-message":"p8UsBu","recoveryMessage":"p8UsBu","modal-blocker":"XZznBv","modalBlocker":"XZznBv","modalFadeIn":"Aj4asz"};
|
|
5278
5399
|
|
|
5279
5400
|
function ErrorHandler(props) {
|
|
5280
5401
|
const { uuiNotifications, uuiModals, uuiApi } = uuiCore.useUuiContext();
|
|
@@ -5435,6 +5556,7 @@ exports.RadioInput = RadioInput;
|
|
|
5435
5556
|
exports.RangeDatePicker = RangeDatePicker;
|
|
5436
5557
|
exports.RangeDatePickerBody = RangeDatePickerBody;
|
|
5437
5558
|
exports.RangeDatePickerInput = RangeDatePickerInput;
|
|
5559
|
+
exports.Rating = Rating;
|
|
5438
5560
|
exports.RichTextView = RichTextView;
|
|
5439
5561
|
exports.ScrollBars = ScrollBars;
|
|
5440
5562
|
exports.SearchInput = SearchInput;
|