@epam/uui 5.2.0-rc.2 → 5.2.0-rc.3
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/typography.scss +14 -7
- package/components/buttons/Button.d.ts +2 -2
- package/components/buttons/Button.d.ts.map +1 -1
- package/components/buttons/IconButton.d.ts +1 -1
- package/components/buttons/TabButton.d.ts.map +1 -1
- package/components/datePickers/DatePickerBody.d.ts +1 -2
- package/components/datePickers/DatePickerBody.d.ts.map +1 -1
- package/components/datePickers/DatePickerHeader.d.ts.map +1 -1
- package/components/dnd/DropMarker.d.ts.map +1 -1
- package/components/fileUpload/SvgCircleProgress.d.ts.map +1 -1
- package/components/filters/FilterPanelItemToggler.d.ts +1 -1
- package/components/filters/FilterPickerBody.d.ts +5 -17
- package/components/filters/FilterPickerBody.d.ts.map +1 -1
- package/components/filters/FiltersPanelItem.d.ts.map +1 -1
- package/components/inputs/InputAddon.d.ts +4 -0
- package/components/inputs/InputAddon.d.ts.map +1 -0
- package/components/inputs/TextInput.d.ts +1 -1
- package/components/inputs/index.d.ts +1 -0
- package/components/inputs/index.d.ts.map +1 -1
- package/components/layout/Accordion.d.ts.map +1 -1
- package/components/layout/FlexItems/FlexRow.d.ts +1 -0
- package/components/layout/FlexItems/FlexRow.d.ts.map +1 -1
- package/components/layout/FlexItems/Panel.d.ts +1 -0
- package/components/layout/FlexItems/Panel.d.ts.map +1 -1
- package/components/navigation/MainMenu/Burger/BurgerSearch.d.ts.map +1 -1
- package/components/navigation/MainMenu/MainMenuAvatar.d.ts +1 -1
- package/components/navigation/MainMenu/MainMenuDropdown.d.ts.map +1 -1
- package/components/navigation/MainMenu/MainMenuIcon.d.ts +1 -1
- package/components/navigation/MainMenu/MainMenuSearch.d.ts +1 -1
- package/components/overlays/Alert.d.ts +5 -5
- package/components/overlays/Alert.d.ts.map +1 -1
- package/components/overlays/DropdownContainer.d.ts.map +1 -1
- package/components/overlays/DropdownMenu.d.ts +2 -1
- package/components/overlays/DropdownMenu.d.ts.map +1 -1
- package/components/overlays/Modals.d.ts +1 -1
- package/components/overlays/Modals.d.ts.map +1 -1
- package/components/overlays/Tooltip.d.ts +1 -1
- package/components/pickers/DataPickerBody.d.ts +2 -1
- package/components/pickers/DataPickerBody.d.ts.map +1 -1
- package/components/pickers/DataPickerRow.d.ts.map +1 -1
- package/components/pickers/MobileDropdownWrapper.d.ts +5 -2
- package/components/pickers/MobileDropdownWrapper.d.ts.map +1 -1
- package/components/pickers/PickerInput.d.ts +5 -14
- package/components/pickers/PickerInput.d.ts.map +1 -1
- package/components/pickers/PickerList.d.ts +5 -13
- package/components/pickers/PickerList.d.ts.map +1 -1
- package/components/pickers/PickerListItem.d.ts +2 -4
- package/components/pickers/PickerListItem.d.ts.map +1 -1
- package/components/pickers/PickerModal.d.ts +5 -16
- package/components/pickers/PickerModal.d.ts.map +1 -1
- package/components/tables/DataRowsContainer/DataRowsContainer.d.ts +10 -0
- package/components/tables/DataRowsContainer/DataRowsContainer.d.ts.map +1 -0
- package/components/tables/DataRowsContainer/DataRowsGroups.d.ts +10 -0
- package/components/tables/DataRowsContainer/DataRowsGroups.d.ts.map +1 -0
- package/components/tables/DataRowsContainer/index.d.ts +2 -0
- package/components/tables/DataRowsContainer/index.d.ts.map +1 -0
- package/components/tables/DataRowsContainer/utils.d.ts +3 -0
- package/components/tables/DataRowsContainer/utils.d.ts.map +1 -0
- package/components/tables/DataTable.d.ts.map +1 -1
- package/components/tables/DataTableCell.d.ts.map +1 -1
- package/components/tables/columnsConfigurationModal/ColumnRow.d.ts.map +1 -1
- package/components/tables/columnsConfigurationModal/PinIconButton.d.ts.map +1 -1
- package/components/tables/index.d.ts +1 -0
- package/components/tables/index.d.ts.map +1 -1
- package/components/types.d.ts +1 -3
- package/components/types.d.ts.map +1 -1
- package/components/typography/Text.d.ts +1 -1
- package/components/typography/Text.d.ts.map +1 -1
- package/components/widgets/Informer.d.ts +8 -0
- package/components/widgets/Informer.d.ts.map +1 -0
- package/components/widgets/ProgressBar.d.ts.map +1 -1
- package/components/widgets/index.d.ts +1 -0
- package/components/widgets/index.d.ts.map +1 -1
- package/index.esm.js +986 -942
- package/index.esm.js.map +1 -1
- package/index.js +988 -941
- package/index.js.map +1 -1
- package/package.json +5 -5
- package/stats.html +1 -1
- package/styles.css +1768 -1437
- package/styles.css.map +1 -1
package/index.js
CHANGED
|
@@ -7,9 +7,10 @@ var dayjs = require('dayjs');
|
|
|
7
7
|
var customParseFormat = require('dayjs/plugin/customParseFormat.js');
|
|
8
8
|
var updateLocale = require('dayjs/plugin/updateLocale.js');
|
|
9
9
|
var cx = require('classnames');
|
|
10
|
-
var
|
|
10
|
+
var localeData = require('dayjs/plugin/localeData');
|
|
11
11
|
var sortBy = require('lodash.sortby');
|
|
12
12
|
var isoWeek = require('dayjs/plugin/isoWeek.js');
|
|
13
|
+
var FocusLock = require('react-focus-lock');
|
|
13
14
|
|
|
14
15
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
16
|
|
|
@@ -36,14 +37,15 @@ var dayjs__default = /*#__PURE__*/_interopDefault(dayjs);
|
|
|
36
37
|
var customParseFormat__default = /*#__PURE__*/_interopDefault(customParseFormat);
|
|
37
38
|
var updateLocale__default = /*#__PURE__*/_interopDefault(updateLocale);
|
|
38
39
|
var cx__default = /*#__PURE__*/_interopDefault(cx);
|
|
39
|
-
var
|
|
40
|
+
var localeData__default = /*#__PURE__*/_interopDefault(localeData);
|
|
40
41
|
var sortBy__default = /*#__PURE__*/_interopDefault(sortBy);
|
|
41
42
|
var isoWeek__default = /*#__PURE__*/_interopDefault(isoWeek);
|
|
43
|
+
var FocusLock__default = /*#__PURE__*/_interopDefault(FocusLock);
|
|
42
44
|
|
|
43
45
|
var _path$1d;
|
|
44
|
-
function _extends$
|
|
46
|
+
function _extends$1f() { _extends$1f = 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$1f.apply(this, arguments); }
|
|
45
47
|
var SvgBtnCross12 = function SvgBtnCross12(props, ref) {
|
|
46
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
48
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1f({
|
|
47
49
|
xmlns: "http://www.w3.org/2000/svg",
|
|
48
50
|
width: 12,
|
|
49
51
|
height: 12,
|
|
@@ -54,12 +56,12 @@ var SvgBtnCross12 = function SvgBtnCross12(props, ref) {
|
|
|
54
56
|
d: "M9.5 3.205 8.795 2.5 6 5.295 3.205 2.5l-.705.705L5.295 6 2.5 8.795l.705.705L6 6.705 8.795 9.5l.705-.705L6.705 6z"
|
|
55
57
|
})));
|
|
56
58
|
};
|
|
57
|
-
var ForwardRef$
|
|
59
|
+
var ForwardRef$1f = /*#__PURE__*/React.forwardRef(SvgBtnCross12);
|
|
58
60
|
|
|
59
61
|
var _path$1c;
|
|
60
|
-
function _extends$
|
|
62
|
+
function _extends$1e() { _extends$1e = 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$1e.apply(this, arguments); }
|
|
61
63
|
var SvgBtnCross18 = function SvgBtnCross18(props, ref) {
|
|
62
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
64
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1e({
|
|
63
65
|
xmlns: "http://www.w3.org/2000/svg",
|
|
64
66
|
width: 18,
|
|
65
67
|
height: 18,
|
|
@@ -70,12 +72,12 @@ var SvgBtnCross18 = function SvgBtnCross18(props, ref) {
|
|
|
70
72
|
d: "M14.25 4.808 13.193 3.75 9 7.942 4.808 3.75 3.75 4.808 7.942 9 3.75 13.193l1.058 1.057L9 10.057l4.193 4.193 1.057-1.057L10.057 9z"
|
|
71
73
|
})));
|
|
72
74
|
};
|
|
73
|
-
var ForwardRef$
|
|
75
|
+
var ForwardRef$1e = /*#__PURE__*/React.forwardRef(SvgBtnCross18);
|
|
74
76
|
|
|
75
77
|
var _path$1b;
|
|
76
|
-
function _extends$
|
|
78
|
+
function _extends$1d() { _extends$1d = 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$1d.apply(this, arguments); }
|
|
77
79
|
var SvgBtnCross24 = function SvgBtnCross24(props, ref) {
|
|
78
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
80
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1d({
|
|
79
81
|
xmlns: "http://www.w3.org/2000/svg",
|
|
80
82
|
width: 24,
|
|
81
83
|
height: 24,
|
|
@@ -86,12 +88,12 @@ var SvgBtnCross24 = function SvgBtnCross24(props, ref) {
|
|
|
86
88
|
d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
87
89
|
})));
|
|
88
90
|
};
|
|
89
|
-
var ForwardRef$
|
|
91
|
+
var ForwardRef$1d = /*#__PURE__*/React.forwardRef(SvgBtnCross24);
|
|
90
92
|
|
|
91
93
|
var _path$1a;
|
|
92
|
-
function _extends$
|
|
94
|
+
function _extends$1c() { _extends$1c = 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$1c.apply(this, arguments); }
|
|
93
95
|
var SvgFoldingArrow12 = function SvgFoldingArrow12(props, ref) {
|
|
94
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
96
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1c({
|
|
95
97
|
xmlns: "http://www.w3.org/2000/svg",
|
|
96
98
|
width: 12,
|
|
97
99
|
height: 12,
|
|
@@ -102,12 +104,12 @@ var SvgFoldingArrow12 = function SvgFoldingArrow12(props, ref) {
|
|
|
102
104
|
d: "M8.295 4.295 6 6.585l-2.295-2.29L3 5l3 3 3-3z"
|
|
103
105
|
})));
|
|
104
106
|
};
|
|
105
|
-
var ForwardRef$
|
|
107
|
+
var ForwardRef$1c = /*#__PURE__*/React.forwardRef(SvgFoldingArrow12);
|
|
106
108
|
|
|
107
109
|
var _path$19;
|
|
108
|
-
function _extends$
|
|
110
|
+
function _extends$1b() { _extends$1b = 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$1b.apply(this, arguments); }
|
|
109
111
|
var SvgFoldingArrow18 = function SvgFoldingArrow18(props, ref) {
|
|
110
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
112
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1b({
|
|
111
113
|
xmlns: "http://www.w3.org/2000/svg",
|
|
112
114
|
width: 18,
|
|
113
115
|
height: 18,
|
|
@@ -118,12 +120,12 @@ var SvgFoldingArrow18 = function SvgFoldingArrow18(props, ref) {
|
|
|
118
120
|
d: "M12.443 6.442 9 9.877 5.558 6.442 4.5 7.5 9 12l4.5-4.5z"
|
|
119
121
|
})));
|
|
120
122
|
};
|
|
121
|
-
var ForwardRef$
|
|
123
|
+
var ForwardRef$1b = /*#__PURE__*/React.forwardRef(SvgFoldingArrow18);
|
|
122
124
|
|
|
123
125
|
var _path$18;
|
|
124
|
-
function _extends$
|
|
126
|
+
function _extends$1a() { _extends$1a = 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$1a.apply(this, arguments); }
|
|
125
127
|
var SvgFoldingArrow24 = function SvgFoldingArrow24(props, ref) {
|
|
126
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
128
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1a({
|
|
127
129
|
xmlns: "http://www.w3.org/2000/svg",
|
|
128
130
|
width: 24,
|
|
129
131
|
height: 24,
|
|
@@ -134,12 +136,12 @@ var SvgFoldingArrow24 = function SvgFoldingArrow24(props, ref) {
|
|
|
134
136
|
d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
|
|
135
137
|
})));
|
|
136
138
|
};
|
|
137
|
-
var ForwardRef$
|
|
139
|
+
var ForwardRef$1a = /*#__PURE__*/React.forwardRef(SvgFoldingArrow24);
|
|
138
140
|
|
|
139
141
|
var _path$17;
|
|
140
|
-
function _extends$
|
|
142
|
+
function _extends$19() { _extends$19 = 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$19.apply(this, arguments); }
|
|
141
143
|
var SvgAccept12 = function SvgAccept12(props, ref) {
|
|
142
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
144
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$19({
|
|
143
145
|
xmlns: "http://www.w3.org/2000/svg",
|
|
144
146
|
width: 12,
|
|
145
147
|
height: 12,
|
|
@@ -150,12 +152,12 @@ var SvgAccept12 = function SvgAccept12(props, ref) {
|
|
|
150
152
|
d: "M4.846 6.8 9.462 2 11 3.6 4.846 10l-.77-.8L1 6l1.538-1.6 2.308 2.4z"
|
|
151
153
|
})));
|
|
152
154
|
};
|
|
153
|
-
var ForwardRef$
|
|
155
|
+
var ForwardRef$19 = /*#__PURE__*/React.forwardRef(SvgAccept12);
|
|
154
156
|
|
|
155
157
|
var _path$16;
|
|
156
|
-
function _extends$
|
|
158
|
+
function _extends$18() { _extends$18 = 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$18.apply(this, arguments); }
|
|
157
159
|
var SvgAccept18 = function SvgAccept18(props, ref) {
|
|
158
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
160
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$18({
|
|
159
161
|
xmlns: "http://www.w3.org/2000/svg",
|
|
160
162
|
width: 18,
|
|
161
163
|
height: 18,
|
|
@@ -166,12 +168,12 @@ var SvgAccept18 = function SvgAccept18(props, ref) {
|
|
|
166
168
|
d: "M7.136 11.91 4.034 8.776 3 9.821 7.136 14 16 5.045 14.966 4z"
|
|
167
169
|
})));
|
|
168
170
|
};
|
|
169
|
-
var ForwardRef$
|
|
171
|
+
var ForwardRef$18 = /*#__PURE__*/React.forwardRef(SvgAccept18);
|
|
170
172
|
|
|
171
173
|
var _path$15;
|
|
172
|
-
function _extends$
|
|
174
|
+
function _extends$17() { _extends$17 = 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$17.apply(this, arguments); }
|
|
173
175
|
var SvgAccept24 = function SvgAccept24(props, ref) {
|
|
174
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
176
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$17({
|
|
175
177
|
xmlns: "http://www.w3.org/2000/svg",
|
|
176
178
|
width: 24,
|
|
177
179
|
height: 24,
|
|
@@ -182,12 +184,12 @@ var SvgAccept24 = function SvgAccept24(props, ref) {
|
|
|
182
184
|
d: "m9.727 16.075-4.295-4.388L4 13.149 9.727 19 22 6.463 20.568 5z"
|
|
183
185
|
})));
|
|
184
186
|
};
|
|
185
|
-
var ForwardRef$
|
|
187
|
+
var ForwardRef$17 = /*#__PURE__*/React.forwardRef(SvgAccept24);
|
|
186
188
|
|
|
187
189
|
var _path$14;
|
|
188
|
-
function _extends$
|
|
190
|
+
function _extends$16() { _extends$16 = 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$16.apply(this, arguments); }
|
|
189
191
|
var SvgSearch12 = function SvgSearch12(props, ref) {
|
|
190
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
192
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$16({
|
|
191
193
|
xmlns: "http://www.w3.org/2000/svg",
|
|
192
194
|
width: 12,
|
|
193
195
|
height: 12,
|
|
@@ -198,12 +200,12 @@ var SvgSearch12 = function SvgSearch12(props, ref) {
|
|
|
198
200
|
d: "M9.016 8.309 10.707 10l-.707.707-1.691-1.691a4.5 4.5 0 1 1 .707-.707zM5.5 9a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7z"
|
|
199
201
|
})));
|
|
200
202
|
};
|
|
201
|
-
var ForwardRef$
|
|
203
|
+
var ForwardRef$16 = /*#__PURE__*/React.forwardRef(SvgSearch12);
|
|
202
204
|
|
|
203
205
|
var _path$13;
|
|
204
|
-
function _extends$
|
|
206
|
+
function _extends$15() { _extends$15 = 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$15.apply(this, arguments); }
|
|
205
207
|
var SvgSearch18 = function SvgSearch18(props, ref) {
|
|
206
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
208
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$15({
|
|
207
209
|
xmlns: "http://www.w3.org/2000/svg",
|
|
208
210
|
width: 18,
|
|
209
211
|
height: 18,
|
|
@@ -214,12 +216,12 @@ var SvgSearch18 = function SvgSearch18(props, ref) {
|
|
|
214
216
|
d: "M13.749 12.335 16.414 15 15 16.414l-2.665-2.665a6.5 6.5 0 1 1 1.414-1.414zM8.5 13a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9z"
|
|
215
217
|
})));
|
|
216
218
|
};
|
|
217
|
-
var ForwardRef$
|
|
219
|
+
var ForwardRef$15 = /*#__PURE__*/React.forwardRef(SvgSearch18);
|
|
218
220
|
|
|
219
221
|
var _path$12;
|
|
220
|
-
function _extends$
|
|
222
|
+
function _extends$14() { _extends$14 = 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$14.apply(this, arguments); }
|
|
221
223
|
var SvgSearch24 = function SvgSearch24(props, ref) {
|
|
222
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
224
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$14({
|
|
223
225
|
xmlns: "http://www.w3.org/2000/svg",
|
|
224
226
|
width: 24,
|
|
225
227
|
height: 24,
|
|
@@ -230,12 +232,12 @@ var SvgSearch24 = function SvgSearch24(props, ref) {
|
|
|
230
232
|
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"
|
|
231
233
|
})));
|
|
232
234
|
};
|
|
233
|
-
var ForwardRef$
|
|
235
|
+
var ForwardRef$14 = /*#__PURE__*/React.forwardRef(SvgSearch24);
|
|
234
236
|
|
|
235
237
|
var _path$11;
|
|
236
|
-
function _extends$
|
|
238
|
+
function _extends$13() { _extends$13 = 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$13.apply(this, arguments); }
|
|
237
239
|
var SvgCalendar12 = function SvgCalendar12(props, ref) {
|
|
238
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
240
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$13({
|
|
239
241
|
xmlns: "http://www.w3.org/2000/svg",
|
|
240
242
|
width: 12,
|
|
241
243
|
height: 12,
|
|
@@ -246,12 +248,12 @@ var SvgCalendar12 = function SvgCalendar12(props, ref) {
|
|
|
246
248
|
d: "M10 2H9V1H8v1H4V1H3v1H2c-.55 0-1 .45-1 1v7c0 .55.45 1 1 1h8c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1zm0 8H2V4h8v6z"
|
|
247
249
|
})));
|
|
248
250
|
};
|
|
249
|
-
var ForwardRef$
|
|
251
|
+
var ForwardRef$13 = /*#__PURE__*/React.forwardRef(SvgCalendar12);
|
|
250
252
|
|
|
251
253
|
var _path$10;
|
|
252
|
-
function _extends$
|
|
254
|
+
function _extends$12() { _extends$12 = 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$12.apply(this, arguments); }
|
|
253
255
|
var SvgCalendar18 = function SvgCalendar18(props, ref) {
|
|
254
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
256
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$12({
|
|
255
257
|
xmlns: "http://www.w3.org/2000/svg",
|
|
256
258
|
width: 18,
|
|
257
259
|
height: 18,
|
|
@@ -262,12 +264,12 @@ var SvgCalendar18 = function SvgCalendar18(props, ref) {
|
|
|
262
264
|
d: "M14 3V1h-2v2H6V1H4v2C3 3 2 4 2 5v10c0 1 1 2 2 2h10c1 0 2-1 2-2V5c0-1-1-2-2-2zm0 12-10 .048V7h10v8z"
|
|
263
265
|
})));
|
|
264
266
|
};
|
|
265
|
-
var ForwardRef$
|
|
267
|
+
var ForwardRef$12 = /*#__PURE__*/React.forwardRef(SvgCalendar18);
|
|
266
268
|
|
|
267
269
|
var _path$$;
|
|
268
|
-
function _extends$
|
|
270
|
+
function _extends$11() { _extends$11 = 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$11.apply(this, arguments); }
|
|
269
271
|
var SvgCalendar24 = function SvgCalendar24(props, ref) {
|
|
270
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
272
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$11({
|
|
271
273
|
xmlns: "http://www.w3.org/2000/svg",
|
|
272
274
|
width: 24,
|
|
273
275
|
height: 24,
|
|
@@ -278,12 +280,12 @@ var SvgCalendar24 = function SvgCalendar24(props, ref) {
|
|
|
278
280
|
d: "M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V8h16v13z"
|
|
279
281
|
})));
|
|
280
282
|
};
|
|
281
|
-
var ForwardRef$
|
|
283
|
+
var ForwardRef$11 = /*#__PURE__*/React.forwardRef(SvgCalendar24);
|
|
282
284
|
|
|
283
285
|
var _path$_;
|
|
284
|
-
function _extends$
|
|
286
|
+
function _extends$10() { _extends$10 = 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$10.apply(this, arguments); }
|
|
285
287
|
var SvgInfo12 = function SvgInfo12(props, ref) {
|
|
286
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
288
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$10({
|
|
287
289
|
width: 12,
|
|
288
290
|
height: 12,
|
|
289
291
|
viewBox: "0 0 12 12",
|
|
@@ -294,12 +296,12 @@ var SvgInfo12 = function SvgInfo12(props, ref) {
|
|
|
294
296
|
fillRule: "evenodd"
|
|
295
297
|
})));
|
|
296
298
|
};
|
|
297
|
-
var ForwardRef$
|
|
299
|
+
var ForwardRef$10 = /*#__PURE__*/React.forwardRef(SvgInfo12);
|
|
298
300
|
|
|
299
301
|
var _path$Z;
|
|
300
|
-
function _extends
|
|
302
|
+
function _extends$$() { _extends$$ = 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$$.apply(this, arguments); }
|
|
301
303
|
var SvgInfo18 = function SvgInfo18(props, ref) {
|
|
302
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends
|
|
304
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$$({
|
|
303
305
|
xmlns: "http://www.w3.org/2000/svg",
|
|
304
306
|
width: 18,
|
|
305
307
|
height: 18,
|
|
@@ -310,12 +312,12 @@ var SvgInfo18 = function SvgInfo18(props, ref) {
|
|
|
310
312
|
d: "M8 13h2V8H8v5zM9 1C4.584 1 1 4.584 1 9s3.584 8 8 8 8-3.584 8-8-3.584-8-8-8zm0 15c-3.859 0-7-3.141-7-7s3.141-7 7-7 7 3.141 7 7-3.141 7-7 7zM8 7h2V5H8v2z"
|
|
311
313
|
})));
|
|
312
314
|
};
|
|
313
|
-
var ForwardRef
|
|
315
|
+
var ForwardRef$$ = /*#__PURE__*/React.forwardRef(SvgInfo18);
|
|
314
316
|
|
|
315
317
|
var _path$Y;
|
|
316
|
-
function _extends
|
|
318
|
+
function _extends$_() { _extends$_ = 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$_.apply(this, arguments); }
|
|
317
319
|
var SvgInfo24 = function SvgInfo24(props, ref) {
|
|
318
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends
|
|
320
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$_({
|
|
319
321
|
xmlns: "http://www.w3.org/2000/svg",
|
|
320
322
|
width: 24,
|
|
321
323
|
height: 24,
|
|
@@ -326,12 +328,12 @@ var SvgInfo24 = function SvgInfo24(props, ref) {
|
|
|
326
328
|
d: "M11 17h2v-6h-2v6zm1-15C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zM11 9h2V7h-2v2z"
|
|
327
329
|
})));
|
|
328
330
|
};
|
|
329
|
-
var ForwardRef
|
|
331
|
+
var ForwardRef$_ = /*#__PURE__*/React.forwardRef(SvgInfo24);
|
|
330
332
|
|
|
331
333
|
var _path$X;
|
|
332
|
-
function _extends$
|
|
334
|
+
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); }
|
|
333
335
|
var SvgHelpFill10 = function SvgHelpFill10(props, ref) {
|
|
334
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
336
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$Z({
|
|
335
337
|
width: 10,
|
|
336
338
|
height: 10,
|
|
337
339
|
viewBox: "0 0 10 10",
|
|
@@ -341,12 +343,12 @@ var SvgHelpFill10 = function SvgHelpFill10(props, ref) {
|
|
|
341
343
|
d: "M5 0C2.24 0 0 2.24 0 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5Zm.5 7.5h-1v-3h1v3Zm0-4h-1v-1h1v1Z"
|
|
342
344
|
})));
|
|
343
345
|
};
|
|
344
|
-
var ForwardRef$
|
|
346
|
+
var ForwardRef$Z = /*#__PURE__*/React.forwardRef(SvgHelpFill10);
|
|
345
347
|
|
|
346
348
|
var _path$W;
|
|
347
|
-
function _extends$
|
|
349
|
+
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); }
|
|
348
350
|
var SvgHelpFill16 = function SvgHelpFill16(props, ref) {
|
|
349
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
351
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$Y({
|
|
350
352
|
width: 16,
|
|
351
353
|
height: 16,
|
|
352
354
|
viewBox: "0 0 16 16",
|
|
@@ -356,12 +358,12 @@ var SvgHelpFill16 = function SvgHelpFill16(props, ref) {
|
|
|
356
358
|
d: "M7 12h2V7H7v5ZM8 0C3.584 0 0 3.584 0 8s3.584 8 8 8 8-3.584 8-8-3.584-8-8-8Zm0 15c-3.859 0-7-3.141-7-7s3.141-7 7-7 7 3.141 7 7-3.141 7-7 7ZM7 6h2V4H7v2Z"
|
|
357
359
|
})));
|
|
358
360
|
};
|
|
359
|
-
var ForwardRef$
|
|
361
|
+
var ForwardRef$Y = /*#__PURE__*/React.forwardRef(SvgHelpFill16);
|
|
360
362
|
|
|
361
363
|
var _path$V;
|
|
362
|
-
function _extends$
|
|
364
|
+
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); }
|
|
363
365
|
var SvgFileFileWord24 = function SvgFileFileWord24(props, ref) {
|
|
364
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
366
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$X({
|
|
365
367
|
xmlns: "http://www.w3.org/2000/svg",
|
|
366
368
|
width: 24,
|
|
367
369
|
height: 24,
|
|
@@ -373,12 +375,12 @@ var SvgFileFileWord24 = function SvgFileFileWord24(props, ref) {
|
|
|
373
375
|
clipRule: "evenodd"
|
|
374
376
|
})));
|
|
375
377
|
};
|
|
376
|
-
var ForwardRef$
|
|
378
|
+
var ForwardRef$X = /*#__PURE__*/React.forwardRef(SvgFileFileWord24);
|
|
377
379
|
|
|
378
380
|
var _path$U;
|
|
379
|
-
function _extends$
|
|
381
|
+
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); }
|
|
380
382
|
var SvgFileFileExcel24 = function SvgFileFileExcel24(props, ref) {
|
|
381
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
383
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$W({
|
|
382
384
|
xmlns: "http://www.w3.org/2000/svg",
|
|
383
385
|
width: 24,
|
|
384
386
|
height: 24,
|
|
@@ -390,12 +392,12 @@ var SvgFileFileExcel24 = function SvgFileFileExcel24(props, ref) {
|
|
|
390
392
|
clipRule: "evenodd"
|
|
391
393
|
})));
|
|
392
394
|
};
|
|
393
|
-
var ForwardRef$
|
|
395
|
+
var ForwardRef$W = /*#__PURE__*/React.forwardRef(SvgFileFileExcel24);
|
|
394
396
|
|
|
395
397
|
var _path$T;
|
|
396
|
-
function _extends$
|
|
398
|
+
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); }
|
|
397
399
|
var SvgFileFilePdf24 = function SvgFileFilePdf24(props, ref) {
|
|
398
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
400
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$V({
|
|
399
401
|
xmlns: "http://www.w3.org/2000/svg",
|
|
400
402
|
width: 24,
|
|
401
403
|
height: 24,
|
|
@@ -407,12 +409,12 @@ var SvgFileFilePdf24 = function SvgFileFilePdf24(props, ref) {
|
|
|
407
409
|
clipRule: "evenodd"
|
|
408
410
|
})));
|
|
409
411
|
};
|
|
410
|
-
var ForwardRef$
|
|
412
|
+
var ForwardRef$V = /*#__PURE__*/React.forwardRef(SvgFileFilePdf24);
|
|
411
413
|
|
|
412
414
|
var _path$S;
|
|
413
|
-
function _extends$
|
|
415
|
+
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); }
|
|
414
416
|
var SvgFileFileImage24 = function SvgFileFileImage24(props, ref) {
|
|
415
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
417
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$U({
|
|
416
418
|
xmlns: "http://www.w3.org/2000/svg",
|
|
417
419
|
width: 24,
|
|
418
420
|
height: 24,
|
|
@@ -424,12 +426,12 @@ var SvgFileFileImage24 = function SvgFileFileImage24(props, ref) {
|
|
|
424
426
|
clipRule: "evenodd"
|
|
425
427
|
})));
|
|
426
428
|
};
|
|
427
|
-
var ForwardRef$
|
|
429
|
+
var ForwardRef$U = /*#__PURE__*/React.forwardRef(SvgFileFileImage24);
|
|
428
430
|
|
|
429
431
|
var _path$R, _path2$2;
|
|
430
|
-
function _extends$
|
|
432
|
+
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); }
|
|
431
433
|
var SvgFileFileVideo24 = function SvgFileFileVideo24(props, ref) {
|
|
432
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
434
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$T({
|
|
433
435
|
xmlns: "http://www.w3.org/2000/svg",
|
|
434
436
|
width: 24,
|
|
435
437
|
height: 24,
|
|
@@ -443,12 +445,12 @@ var SvgFileFileVideo24 = function SvgFileFileVideo24(props, ref) {
|
|
|
443
445
|
clipRule: "evenodd"
|
|
444
446
|
})));
|
|
445
447
|
};
|
|
446
|
-
var ForwardRef$
|
|
448
|
+
var ForwardRef$T = /*#__PURE__*/React.forwardRef(SvgFileFileVideo24);
|
|
447
449
|
|
|
448
450
|
var _path$Q;
|
|
449
|
-
function _extends$
|
|
451
|
+
function _extends$S() { _extends$S = 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$S.apply(this, arguments); }
|
|
450
452
|
var SvgFileFileTable24 = function SvgFileFileTable24(props, ref) {
|
|
451
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
453
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$S({
|
|
452
454
|
xmlns: "http://www.w3.org/2000/svg",
|
|
453
455
|
width: 24,
|
|
454
456
|
height: 24,
|
|
@@ -460,12 +462,12 @@ var SvgFileFileTable24 = function SvgFileFileTable24(props, ref) {
|
|
|
460
462
|
clipRule: "evenodd"
|
|
461
463
|
})));
|
|
462
464
|
};
|
|
463
|
-
var ForwardRef$
|
|
465
|
+
var ForwardRef$S = /*#__PURE__*/React.forwardRef(SvgFileFileTable24);
|
|
464
466
|
|
|
465
467
|
var _path$P;
|
|
466
|
-
function _extends$
|
|
468
|
+
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); }
|
|
467
469
|
var SvgFileFileText24 = function SvgFileFileText24(props, ref) {
|
|
468
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
470
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$R({
|
|
469
471
|
xmlns: "http://www.w3.org/2000/svg",
|
|
470
472
|
width: 24,
|
|
471
473
|
height: 24,
|
|
@@ -477,12 +479,12 @@ var SvgFileFileText24 = function SvgFileFileText24(props, ref) {
|
|
|
477
479
|
clipRule: "evenodd"
|
|
478
480
|
})));
|
|
479
481
|
};
|
|
480
|
-
var ForwardRef$
|
|
482
|
+
var ForwardRef$R = /*#__PURE__*/React.forwardRef(SvgFileFileText24);
|
|
481
483
|
|
|
482
484
|
var _path$O;
|
|
483
|
-
function _extends$
|
|
485
|
+
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); }
|
|
484
486
|
var SvgFileFileEml24 = function SvgFileFileEml24(props, ref) {
|
|
485
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
487
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$Q({
|
|
486
488
|
xmlns: "http://www.w3.org/2000/svg",
|
|
487
489
|
width: 24,
|
|
488
490
|
height: 24,
|
|
@@ -494,12 +496,12 @@ var SvgFileFileEml24 = function SvgFileFileEml24(props, ref) {
|
|
|
494
496
|
clipRule: "evenodd"
|
|
495
497
|
})));
|
|
496
498
|
};
|
|
497
|
-
var ForwardRef$
|
|
499
|
+
var ForwardRef$Q = /*#__PURE__*/React.forwardRef(SvgFileFileEml24);
|
|
498
500
|
|
|
499
501
|
var _path$N;
|
|
500
|
-
function _extends$
|
|
502
|
+
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); }
|
|
501
503
|
var SvgFileFile24 = function SvgFileFile24(props, ref) {
|
|
502
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
504
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$P({
|
|
503
505
|
xmlns: "http://www.w3.org/2000/svg",
|
|
504
506
|
width: 24,
|
|
505
507
|
height: 24,
|
|
@@ -511,48 +513,21 @@ var SvgFileFile24 = function SvgFileFile24(props, ref) {
|
|
|
511
513
|
clipRule: "evenodd"
|
|
512
514
|
})));
|
|
513
515
|
};
|
|
514
|
-
var ForwardRef$
|
|
516
|
+
var ForwardRef$P = /*#__PURE__*/React.forwardRef(SvgFileFile24);
|
|
515
517
|
|
|
516
518
|
const fileIcons = {
|
|
517
|
-
docIcon: ForwardRef$
|
|
518
|
-
exelIcon: ForwardRef$
|
|
519
|
-
pdfIcon: ForwardRef$
|
|
520
|
-
imgIcon: ForwardRef$
|
|
521
|
-
videoIcon: ForwardRef$
|
|
522
|
-
tableIcon: ForwardRef$
|
|
523
|
-
textIcon: ForwardRef$
|
|
524
|
-
mailIcon: ForwardRef$
|
|
525
|
-
fileIcon: ForwardRef$
|
|
519
|
+
docIcon: ForwardRef$X,
|
|
520
|
+
exelIcon: ForwardRef$W,
|
|
521
|
+
pdfIcon: ForwardRef$V,
|
|
522
|
+
imgIcon: ForwardRef$U,
|
|
523
|
+
videoIcon: ForwardRef$T,
|
|
524
|
+
tableIcon: ForwardRef$S,
|
|
525
|
+
textIcon: ForwardRef$R,
|
|
526
|
+
mailIcon: ForwardRef$Q,
|
|
527
|
+
fileIcon: ForwardRef$P,
|
|
526
528
|
};
|
|
527
529
|
const systemIcons = {
|
|
528
530
|
18: {
|
|
529
|
-
clear: ForwardRef$1g,
|
|
530
|
-
foldingArrow: ForwardRef$1d,
|
|
531
|
-
accept: ForwardRef$1a,
|
|
532
|
-
search: ForwardRef$17,
|
|
533
|
-
calendar: ForwardRef$14,
|
|
534
|
-
info: ForwardRef$11,
|
|
535
|
-
help: ForwardRef$_,
|
|
536
|
-
},
|
|
537
|
-
24: {
|
|
538
|
-
clear: ForwardRef$1g,
|
|
539
|
-
foldingArrow: ForwardRef$1d,
|
|
540
|
-
accept: ForwardRef$1a,
|
|
541
|
-
search: ForwardRef$17,
|
|
542
|
-
calendar: ForwardRef$14,
|
|
543
|
-
info: ForwardRef$11,
|
|
544
|
-
help: ForwardRef$_,
|
|
545
|
-
},
|
|
546
|
-
30: {
|
|
547
|
-
clear: ForwardRef$1f,
|
|
548
|
-
foldingArrow: ForwardRef$1c,
|
|
549
|
-
accept: ForwardRef$19,
|
|
550
|
-
search: ForwardRef$16,
|
|
551
|
-
calendar: ForwardRef$13,
|
|
552
|
-
info: ForwardRef$10,
|
|
553
|
-
help: ForwardRef$_,
|
|
554
|
-
},
|
|
555
|
-
36: {
|
|
556
531
|
clear: ForwardRef$1f,
|
|
557
532
|
foldingArrow: ForwardRef$1c,
|
|
558
533
|
accept: ForwardRef$19,
|
|
@@ -561,7 +536,7 @@ const systemIcons = {
|
|
|
561
536
|
info: ForwardRef$10,
|
|
562
537
|
help: ForwardRef$Z,
|
|
563
538
|
},
|
|
564
|
-
|
|
539
|
+
24: {
|
|
565
540
|
clear: ForwardRef$1f,
|
|
566
541
|
foldingArrow: ForwardRef$1c,
|
|
567
542
|
accept: ForwardRef$19,
|
|
@@ -570,7 +545,7 @@ const systemIcons = {
|
|
|
570
545
|
info: ForwardRef$10,
|
|
571
546
|
help: ForwardRef$Z,
|
|
572
547
|
},
|
|
573
|
-
|
|
548
|
+
30: {
|
|
574
549
|
clear: ForwardRef$1e,
|
|
575
550
|
foldingArrow: ForwardRef$1b,
|
|
576
551
|
accept: ForwardRef$18,
|
|
@@ -579,39 +554,66 @@ const systemIcons = {
|
|
|
579
554
|
info: ForwardRef$$,
|
|
580
555
|
help: ForwardRef$Z,
|
|
581
556
|
},
|
|
582
|
-
|
|
557
|
+
36: {
|
|
583
558
|
clear: ForwardRef$1e,
|
|
584
559
|
foldingArrow: ForwardRef$1b,
|
|
585
560
|
accept: ForwardRef$18,
|
|
586
561
|
search: ForwardRef$15,
|
|
587
562
|
calendar: ForwardRef$12,
|
|
588
563
|
info: ForwardRef$$,
|
|
589
|
-
help: ForwardRef$
|
|
564
|
+
help: ForwardRef$Y,
|
|
565
|
+
},
|
|
566
|
+
42: {
|
|
567
|
+
clear: ForwardRef$1e,
|
|
568
|
+
foldingArrow: ForwardRef$1b,
|
|
569
|
+
accept: ForwardRef$18,
|
|
570
|
+
search: ForwardRef$15,
|
|
571
|
+
calendar: ForwardRef$12,
|
|
572
|
+
info: ForwardRef$$,
|
|
573
|
+
help: ForwardRef$Y,
|
|
574
|
+
},
|
|
575
|
+
48: {
|
|
576
|
+
clear: ForwardRef$1d,
|
|
577
|
+
foldingArrow: ForwardRef$1a,
|
|
578
|
+
accept: ForwardRef$17,
|
|
579
|
+
search: ForwardRef$14,
|
|
580
|
+
calendar: ForwardRef$11,
|
|
581
|
+
info: ForwardRef$_,
|
|
582
|
+
help: ForwardRef$Y,
|
|
583
|
+
},
|
|
584
|
+
60: {
|
|
585
|
+
clear: ForwardRef$1d,
|
|
586
|
+
foldingArrow: ForwardRef$1a,
|
|
587
|
+
accept: ForwardRef$17,
|
|
588
|
+
search: ForwardRef$14,
|
|
589
|
+
calendar: ForwardRef$11,
|
|
590
|
+
info: ForwardRef$_,
|
|
591
|
+
help: ForwardRef$Y,
|
|
590
592
|
},
|
|
591
593
|
none: {
|
|
592
|
-
clear: ForwardRef$
|
|
593
|
-
foldingArrow: ForwardRef$
|
|
594
|
-
accept: ForwardRef$
|
|
595
|
-
search: ForwardRef$
|
|
596
|
-
calendar: ForwardRef$
|
|
597
|
-
info: ForwardRef
|
|
598
|
-
help: ForwardRef$
|
|
594
|
+
clear: ForwardRef$1e,
|
|
595
|
+
foldingArrow: ForwardRef$1b,
|
|
596
|
+
accept: ForwardRef$18,
|
|
597
|
+
search: ForwardRef$15,
|
|
598
|
+
calendar: ForwardRef$12,
|
|
599
|
+
info: ForwardRef$$,
|
|
600
|
+
help: ForwardRef$Y,
|
|
599
601
|
},
|
|
600
602
|
};
|
|
601
603
|
|
|
602
|
-
var css$
|
|
604
|
+
var css$1l = {"root":"_8xDYat","size-18":"CUnR2U","size-24":"n-QNUz","size-30":"WJXZhd","size-36":"GYxQn3","size-42":"JrC7Ne","size-48":"mkEgLj","size18":"CUnR2U","size24":"n-QNUz","size30":"WJXZhd","size36":"GYxQn3","size42":"JrC7Ne","size48":"mkEgLj"};
|
|
603
605
|
|
|
604
606
|
const allButtonColors = [
|
|
605
|
-
'accent', 'primary', 'secondary', '
|
|
607
|
+
'accent', 'primary', 'secondary', 'critical',
|
|
606
608
|
];
|
|
607
609
|
const defaultSize$b = '36';
|
|
608
610
|
function applyButtonMods(mods) {
|
|
609
611
|
return [
|
|
610
|
-
css$
|
|
612
|
+
css$1l.root,
|
|
611
613
|
'uui-button',
|
|
612
614
|
`uui-fill-${mods.fill || 'solid'}`,
|
|
613
615
|
`uui-color-${mods.color || 'primary'}`,
|
|
614
|
-
css$
|
|
616
|
+
css$1l[`size-${mods.size || defaultSize$b}`],
|
|
615
617
|
];
|
|
616
618
|
}
|
|
617
619
|
const Button = uuiCore.withMods(uuiComponents.Button, applyButtonMods, (props) => ({
|
|
@@ -619,17 +621,17 @@ const Button = uuiCore.withMods(uuiComponents.Button, applyButtonMods, (props) =
|
|
|
619
621
|
clearIcon: systemIcons[props.size || defaultSize$b].clear,
|
|
620
622
|
}));
|
|
621
623
|
|
|
622
|
-
var css$
|
|
624
|
+
var css$1k = {"root":"B5z-iP"};
|
|
623
625
|
|
|
624
626
|
const allIconColors = [
|
|
625
|
-
'info', 'success', 'warning', 'error', 'secondary', '
|
|
627
|
+
'info', 'success', 'warning', 'error', 'secondary', 'neutral',
|
|
626
628
|
];
|
|
627
629
|
function applyIconButtonMods(mods) {
|
|
628
|
-
return ['uui-icon_button', `uui-color-${mods.color || '
|
|
630
|
+
return ['uui-icon_button', `uui-color-${mods.color || 'neutral'}`, css$1k.root];
|
|
629
631
|
}
|
|
630
632
|
const IconButton = uuiCore.withMods(uuiComponents.IconButton, applyIconButtonMods);
|
|
631
633
|
|
|
632
|
-
var css$
|
|
634
|
+
var css$1j = {"root":"mWCYfr","size-18":"JGq-lV","size-24":"xKhXMC","size-30":"YBQ-6X","size-36":"jGDPvD","size-42":"lIQCww","size-48":"PgKsfV","size18":"JGq-lV","size24":"xKhXMC","size30":"YBQ-6X","size36":"jGDPvD","size42":"lIQCww","size48":"PgKsfV"};
|
|
633
635
|
|
|
634
636
|
function getIconClass(props) {
|
|
635
637
|
const classList = {
|
|
@@ -653,8 +655,8 @@ const allLinkButtonColors = ['primary', 'secondary', 'contrast'];
|
|
|
653
655
|
function applyLinkButtonMods(mods) {
|
|
654
656
|
return [
|
|
655
657
|
'uui-link_button',
|
|
656
|
-
css$
|
|
657
|
-
css$
|
|
658
|
+
css$1j.root,
|
|
659
|
+
css$1j['size-' + (mods.size || defaultSize$a)],
|
|
658
660
|
...getIconClass(mods),
|
|
659
661
|
`uui-color-${mods.color || 'primary'}`,
|
|
660
662
|
];
|
|
@@ -664,24 +666,23 @@ const LinkButton = uuiCore.withMods(uuiComponents.Button, applyLinkButtonMods, (
|
|
|
664
666
|
clearIcon: systemIcons[props.size || defaultSize$a].clear,
|
|
665
667
|
}));
|
|
666
668
|
|
|
667
|
-
var css$
|
|
669
|
+
var css$1i = {"root":"qRkalt","withNotify":"PZj3JN","size-36":"UKYRFQ","size-48":"_33MZE0","size-60":"Onrb-Z","size36":"UKYRFQ","size48":"_33MZE0","size60":"Onrb-Z"};
|
|
668
670
|
|
|
669
671
|
function applyTabButtonMods(mods) {
|
|
670
672
|
return [
|
|
671
|
-
css$
|
|
673
|
+
css$1i.root,
|
|
672
674
|
'uui-tab-button',
|
|
673
|
-
'
|
|
674
|
-
|
|
675
|
-
mods.withNotify && css$1e.uuiNotification,
|
|
675
|
+
css$1i['size-' + (mods.size || '48')],
|
|
676
|
+
mods.withNotify && css$1i.withNotify,
|
|
676
677
|
...getIconClass(mods),
|
|
677
678
|
];
|
|
678
679
|
}
|
|
679
680
|
const TabButton = uuiCore.withMods(uuiComponents.Button, applyTabButtonMods, (props) => (Object.assign(Object.assign({ dropdownIcon: systemIcons['36'].foldingArrow, clearIcon: systemIcons['36'].clear, countPosition: 'right' }, props), { rawProps: Object.assign({ role: 'tab' }, props.rawProps) })));
|
|
680
681
|
|
|
681
|
-
var css$
|
|
682
|
+
var css$1h = {"root":"P-Xm-d"};
|
|
682
683
|
|
|
683
684
|
function applyVerticalTabButtonMods() {
|
|
684
|
-
return [css$
|
|
685
|
+
return [css$1h.root];
|
|
685
686
|
}
|
|
686
687
|
const VerticalTabButton = uuiCore.withMods(TabButton, applyVerticalTabButtonMods);
|
|
687
688
|
|
|
@@ -698,11 +699,8 @@ const allRowSizes = [
|
|
|
698
699
|
const allSemanticColors = [
|
|
699
700
|
'info', 'success', 'warning', 'error',
|
|
700
701
|
];
|
|
701
|
-
const allButtonSemanticColors = [
|
|
702
|
-
'accent', 'primary', 'secondary', 'negative',
|
|
703
|
-
];
|
|
704
702
|
const allEpamBadgeSemanticColors = [
|
|
705
|
-
'info', 'success', 'warning', 'error', '
|
|
703
|
+
'info', 'success', 'warning', 'error', 'neutral',
|
|
706
704
|
];
|
|
707
705
|
const allTextSizes = [
|
|
708
706
|
'18', '24', '30', '36', '48',
|
|
@@ -718,9 +716,9 @@ exports.EditMode = void 0;
|
|
|
718
716
|
})(exports.EditMode || (exports.EditMode = {}));
|
|
719
717
|
|
|
720
718
|
var _path$M;
|
|
721
|
-
function _extends$
|
|
719
|
+
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); }
|
|
722
720
|
var SvgCheck12 = function SvgCheck12(props, ref) {
|
|
723
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
721
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$O({
|
|
724
722
|
width: 12,
|
|
725
723
|
height: 12,
|
|
726
724
|
viewBox: "0 0 12 12",
|
|
@@ -731,12 +729,12 @@ var SvgCheck12 = function SvgCheck12(props, ref) {
|
|
|
731
729
|
d: "M9.491 3.449 10.51 4.55 5.663 9.024 2.487 6.047l1.026-1.094L5.67 6.975z"
|
|
732
730
|
})));
|
|
733
731
|
};
|
|
734
|
-
var ForwardRef$
|
|
732
|
+
var ForwardRef$O = /*#__PURE__*/React.forwardRef(SvgCheck12);
|
|
735
733
|
|
|
736
734
|
var _path$L;
|
|
737
|
-
function _extends$
|
|
735
|
+
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); }
|
|
738
736
|
var SvgCheck18 = function SvgCheck18(props, ref) {
|
|
739
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
737
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$N({
|
|
740
738
|
width: 18,
|
|
741
739
|
height: 18,
|
|
742
740
|
viewBox: "0 0 18 18",
|
|
@@ -747,12 +745,12 @@ var SvgCheck18 = function SvgCheck18(props, ref) {
|
|
|
747
745
|
d: "m14.247 4.341 1.506 1.318-7.704 8.804-4.756-4.756 1.414-1.414 3.244 3.243z"
|
|
748
746
|
})));
|
|
749
747
|
};
|
|
750
|
-
var ForwardRef$
|
|
748
|
+
var ForwardRef$N = /*#__PURE__*/React.forwardRef(SvgCheck18);
|
|
751
749
|
|
|
752
750
|
var _path$K;
|
|
753
|
-
function _extends$
|
|
751
|
+
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); }
|
|
754
752
|
var SvgPartlySelect12 = function SvgPartlySelect12(props, ref) {
|
|
755
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
753
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$M({
|
|
756
754
|
width: 12,
|
|
757
755
|
height: 12,
|
|
758
756
|
viewBox: "0 0 12 12",
|
|
@@ -763,12 +761,12 @@ var SvgPartlySelect12 = function SvgPartlySelect12(props, ref) {
|
|
|
763
761
|
d: "M9 5v2H3V5z"
|
|
764
762
|
})));
|
|
765
763
|
};
|
|
766
|
-
var ForwardRef$
|
|
764
|
+
var ForwardRef$M = /*#__PURE__*/React.forwardRef(SvgPartlySelect12);
|
|
767
765
|
|
|
768
766
|
var _path$J;
|
|
769
|
-
function _extends$
|
|
767
|
+
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); }
|
|
770
768
|
var SvgPartlySelect18 = function SvgPartlySelect18(props, ref) {
|
|
771
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
769
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$L({
|
|
772
770
|
width: 18,
|
|
773
771
|
height: 18,
|
|
774
772
|
viewBox: "0 0 18 18",
|
|
@@ -779,30 +777,30 @@ var SvgPartlySelect18 = function SvgPartlySelect18(props, ref) {
|
|
|
779
777
|
d: "M14 8v2H4V8z"
|
|
780
778
|
})));
|
|
781
779
|
};
|
|
782
|
-
var ForwardRef$
|
|
780
|
+
var ForwardRef$L = /*#__PURE__*/React.forwardRef(SvgPartlySelect18);
|
|
783
781
|
|
|
784
|
-
var css$
|
|
782
|
+
var css$1g = {"root":"mCn1wd","size-18":"-pnsU7","size-12":"_3NAUAF","mode-cell":"s8ghIq","size18":"-pnsU7","size12":"_3NAUAF","modeCell":"s8ghIq"};
|
|
785
783
|
|
|
786
784
|
function applyCheckboxMods(mods) {
|
|
787
785
|
return [
|
|
788
|
-
css$
|
|
789
|
-
css$
|
|
790
|
-
css$
|
|
786
|
+
css$1g.root,
|
|
787
|
+
css$1g['size-' + (mods.size || '18')],
|
|
788
|
+
css$1g['mode-' + (mods.mode || 'form')],
|
|
791
789
|
'uui-color-primary',
|
|
792
790
|
];
|
|
793
791
|
}
|
|
794
792
|
const applyUUICheckboxProps = (props) => ({
|
|
795
|
-
icon: props.size === '12' ? ForwardRef$
|
|
796
|
-
indeterminateIcon: props.size === '12' ? ForwardRef$
|
|
793
|
+
icon: props.size === '12' ? ForwardRef$O : ForwardRef$N,
|
|
794
|
+
indeterminateIcon: props.size === '12' ? ForwardRef$M : ForwardRef$L,
|
|
797
795
|
});
|
|
798
796
|
const Checkbox = uuiCore.withMods(uuiComponents.Checkbox, applyCheckboxMods, applyUUICheckboxProps);
|
|
799
797
|
|
|
800
|
-
var css$
|
|
798
|
+
var css$1f = {"root":"NDw01S","size-18":"Z7qS3J","size-12":"ylYjgF","size18":"Z7qS3J","size12":"ylYjgF"};
|
|
801
799
|
|
|
802
800
|
var _circle;
|
|
803
|
-
function _extends$
|
|
801
|
+
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); }
|
|
804
802
|
var SvgRadioPoint = function SvgRadioPoint(props, ref) {
|
|
805
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
803
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$K({
|
|
806
804
|
width: 18,
|
|
807
805
|
height: 18,
|
|
808
806
|
viewBox: "0 0 18 18",
|
|
@@ -814,18 +812,18 @@ var SvgRadioPoint = function SvgRadioPoint(props, ref) {
|
|
|
814
812
|
r: 6
|
|
815
813
|
})));
|
|
816
814
|
};
|
|
817
|
-
var ForwardRef$
|
|
815
|
+
var ForwardRef$K = /*#__PURE__*/React.forwardRef(SvgRadioPoint);
|
|
818
816
|
|
|
819
817
|
function applyRadioInputMods(mods) {
|
|
820
|
-
return [css$
|
|
818
|
+
return [css$1f.root, css$1f['size-' + (mods.size || '18')], 'uui-color-primary'];
|
|
821
819
|
}
|
|
822
|
-
const RadioInput = uuiCore.withMods(uuiComponents.RadioInput, applyRadioInputMods, () => ({ icon: ForwardRef$
|
|
820
|
+
const RadioInput = uuiCore.withMods(uuiComponents.RadioInput, applyRadioInputMods, () => ({ icon: ForwardRef$K }));
|
|
823
821
|
|
|
824
|
-
var css$
|
|
822
|
+
var css$1e = {"root":"yswhAi","size-12":"AKebHP","size-18":"SyOckL","size-24":"_1aUprk","size12":"AKebHP","size18":"SyOckL","size24":"_1aUprk"};
|
|
825
823
|
|
|
826
824
|
function applySwitchMods(mods) {
|
|
827
825
|
return [
|
|
828
|
-
css$
|
|
826
|
+
css$1e.root, css$1e['size-' + (mods.size || '18')], 'uui-color-primary',
|
|
829
827
|
];
|
|
830
828
|
}
|
|
831
829
|
const Switch = uuiCore.withMods(uuiComponents.Switch, applySwitchMods);
|
|
@@ -874,7 +872,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
874
872
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
875
873
|
};
|
|
876
874
|
|
|
877
|
-
var textInputCss = {"root":"
|
|
875
|
+
var textInputCss = {"root":"pQN2Hb","mode-form":"jYbWAN","mode-inline":"a15a6A","mode-cell":"iTNCzd","size-24":"LtSJwc","size-30":"V3DpDv","size-36":"G3kf7f","size-42":"_9yiRif","size-48":"LKb2a0","modeForm":"jYbWAN","modeInline":"a15a6A","modeCell":"iTNCzd","size24":"LtSJwc","size30":"V3DpDv","size36":"G3kf7f","size42":"_9yiRif","size48":"LKb2a0"};
|
|
878
876
|
|
|
879
877
|
const defaultSize$9 = '36';
|
|
880
878
|
const defaultMode$5 = exports.EditMode.FORM;
|
|
@@ -903,22 +901,22 @@ const SearchInput = React__namespace.default.forwardRef((props, ref) => {
|
|
|
903
901
|
: undefined, type: "search", inputMode: "search", ref: ref }, textInputProps, iEditable))) })));
|
|
904
902
|
});
|
|
905
903
|
|
|
906
|
-
var css$
|
|
904
|
+
var css$1d = {"root":"XFGIxV"};
|
|
907
905
|
|
|
908
|
-
const ControlGroup = uuiCore.withMods(uuiComponents.ControlGroup, () => [css$
|
|
906
|
+
const ControlGroup = uuiCore.withMods(uuiComponents.ControlGroup, () => [css$1d.root]);
|
|
909
907
|
|
|
910
908
|
function MultiSwitchComponent(props, ref) {
|
|
911
909
|
return (React__namespace.createElement(ControlGroup, { ref: ref, rawProps: Object.assign(Object.assign({}, props.rawProps), { role: 'tablist' }) }, 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 === 'secondary' && props.value === item.id ? 'primary' : props.color || 'primary', size: props.size, rawProps: { 'aria-current': props.value === item.id, role: 'tab' } }))))));
|
|
912
910
|
}
|
|
913
911
|
const MultiSwitch = React__namespace.forwardRef(MultiSwitchComponent);
|
|
914
912
|
|
|
915
|
-
var css$
|
|
913
|
+
var css$1c = {"root":"_2Bn2t-","size-24":"FvOkQz","size-30":"yrVy9l","size-36":"RLTuCt","size-42":"N1Rcf4","size-48":"WExutP","mode-form":"Ozo4-p","mode-cell":"yYTf-L","size24":"FvOkQz","size30":"yrVy9l","size36":"RLTuCt","size42":"N1Rcf4","size48":"WExutP","modeForm":"Ozo4-p","modeCell":"yYTf-L"};
|
|
916
914
|
|
|
917
915
|
const defaultSize$8 = '36';
|
|
918
916
|
const defaultMode$4 = exports.EditMode.FORM;
|
|
919
917
|
function applyNumericInputMods(mods) {
|
|
920
918
|
return [
|
|
921
|
-
textInputCss.root, css$
|
|
919
|
+
textInputCss.root, css$1c.root, css$1c['size-' + (mods.size || defaultSize$8)], textInputCss['size-' + (mods.size || defaultSize$8)], textInputCss['mode-' + (mods.mode || defaultMode$4)],
|
|
922
920
|
];
|
|
923
921
|
}
|
|
924
922
|
const NumericInput = uuiCore.withMods(uuiComponents.NumericInput, applyNumericInputMods, (props) => {
|
|
@@ -931,13 +929,13 @@ const NumericInput = uuiCore.withMods(uuiComponents.NumericInput, applyNumericIn
|
|
|
931
929
|
});
|
|
932
930
|
});
|
|
933
931
|
|
|
934
|
-
var css$
|
|
932
|
+
var css$1b = {"root":"bkrhfN","mode-form":"UAONtW","mode-cell":"yBW8Xe","mode-inline":"Uhf64E","size-24":"_4TYlSr","size-30":"SUQKWW","size-36":"JqlVkG","size-42":"aQfEdH","size-48":"Wa2cTq","modeForm":"UAONtW","modeCell":"yBW8Xe","modeInline":"Uhf64E","size24":"_4TYlSr","size30":"SUQKWW","size36":"JqlVkG","size42":"aQfEdH","size48":"Wa2cTq"};
|
|
935
933
|
|
|
936
934
|
const defaultSize$7 = '36';
|
|
937
935
|
const defaultMode$3 = exports.EditMode.FORM;
|
|
938
936
|
function applyTextAreaMods(mods) {
|
|
939
937
|
return [
|
|
940
|
-
css$
|
|
938
|
+
css$1b.root, css$1b['size-' + (mods.size || defaultSize$7)], css$1b['mode-' + (mods.mode || defaultMode$3)],
|
|
941
939
|
];
|
|
942
940
|
}
|
|
943
941
|
const TextArea = uuiCore.withMods(uuiComponents.TextArea, applyTextAreaMods, (props) => ({
|
|
@@ -945,18 +943,20 @@ const TextArea = uuiCore.withMods(uuiComponents.TextArea, applyTextAreaMods, (pr
|
|
|
945
943
|
maxLength: props.mode === exports.EditMode.CELL ? undefined : props.maxLength,
|
|
946
944
|
}));
|
|
947
945
|
|
|
948
|
-
var css$
|
|
946
|
+
var css$1a = {"root":"Bts3XB"};
|
|
949
947
|
|
|
950
948
|
function applyDropdownContainerMods(mods) {
|
|
951
949
|
return [
|
|
952
|
-
css$
|
|
950
|
+
css$1a.root,
|
|
951
|
+
mods.vPadding && `vPadding-${mods.vPadding}`,
|
|
952
|
+
mods.padding && `padding-${mods.padding}`,
|
|
953
953
|
];
|
|
954
954
|
}
|
|
955
955
|
const DropdownContainer = uuiCore.withMods(uuiComponents.DropdownContainer, applyDropdownContainerMods);
|
|
956
956
|
|
|
957
|
-
var css$
|
|
957
|
+
var css$19 = {"root":"jThuOL","icon":"_0eoPvM","date-input":"wz-piV","dateInput":"wz-piV"};
|
|
958
958
|
|
|
959
|
-
const TimePickerBody = uuiCore.withMods(uuiComponents.TimePickerBody, () => [css$
|
|
959
|
+
const TimePickerBody = uuiCore.withMods(uuiComponents.TimePickerBody, () => [css$19.root], () => ({ addIcon: ForwardRef$1b, subtractIcon: ForwardRef$1b }));
|
|
960
960
|
|
|
961
961
|
dayjs__default.default.extend(customParseFormat__default.default);
|
|
962
962
|
const defaultMode$2 = exports.EditMode.FORM;
|
|
@@ -976,22 +976,31 @@ class TimePicker extends uuiComponents.BaseTimePicker {
|
|
|
976
976
|
});
|
|
977
977
|
}
|
|
978
978
|
}
|
|
979
|
-
return (React__namespace.default.createElement(TextInput, Object.assign({}, props, { onClick: null, size: this.props.size || '36', isDisabled: this.props.isDisabled, isReadonly: this.props.isReadonly, isInvalid: this.props.isInvalid, cx: [css$
|
|
979
|
+
return (React__namespace.default.createElement(TextInput, Object.assign({}, props, { onClick: null, size: this.props.size || '36', isDisabled: this.props.isDisabled, isReadonly: this.props.isReadonly, isInvalid: this.props.isInvalid, cx: [css$19.root, css$19.dateInput, this.props.inputCx], value: this.state.value, onValueChange: this.handleInputChange, onCancel: this.onClear, onFocus: this.handleFocus, onBlur: this.handleBlur, isDropdown: false, placeholder: this.props.placeholder ? this.props.placeholder : this.getFormat(), mode: this.props.mode || defaultMode$2, rawProps: (_a = this.props.rawProps) === null || _a === void 0 ? void 0 : _a.input })));
|
|
980
980
|
};
|
|
981
981
|
this.renderBody = (props) => {
|
|
982
982
|
var _a;
|
|
983
|
-
return (!this.props.isDisabled && !this.props.isReadonly && (React__namespace.default.createElement(DropdownContainer, Object.assign({}, props),
|
|
983
|
+
return (!this.props.isDisabled && !this.props.isReadonly && (React__namespace.default.createElement(DropdownContainer, Object.assign({}, props, { focusLock: false }),
|
|
984
984
|
React__namespace.default.createElement(TimePickerBody, Object.assign({}, this.props, { value: this.props.value !== null ? this.props.value : { hours: null, minutes: null }, rawProps: (_a = this.props.rawProps) === null || _a === void 0 ? void 0 : _a.body, cx: this.props.bodyCx })))));
|
|
985
985
|
};
|
|
986
986
|
}
|
|
987
987
|
}
|
|
988
988
|
|
|
989
|
-
var css$
|
|
989
|
+
var css$18 = {"root":"_5Rd7CG"};
|
|
990
|
+
|
|
991
|
+
function applyInputAddonMods() {
|
|
992
|
+
return [
|
|
993
|
+
css$18.root,
|
|
994
|
+
];
|
|
995
|
+
}
|
|
996
|
+
const InputAddon = uuiCore.withMods(uuiComponents.InputAddon, applyInputAddonMods);
|
|
997
|
+
|
|
998
|
+
var css$17 = {"container":"YgfwCr"};
|
|
990
999
|
|
|
991
1000
|
var _path$I;
|
|
992
|
-
function _extends$
|
|
1001
|
+
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); }
|
|
993
1002
|
var SvgNavigationChevronLeft18 = function SvgNavigationChevronLeft18(props, ref) {
|
|
994
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1003
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$J({
|
|
995
1004
|
xmlns: "http://www.w3.org/2000/svg",
|
|
996
1005
|
width: 18,
|
|
997
1006
|
height: 18,
|
|
@@ -1003,12 +1012,12 @@ var SvgNavigationChevronLeft18 = function SvgNavigationChevronLeft18(props, ref)
|
|
|
1003
1012
|
clipRule: "evenodd"
|
|
1004
1013
|
})));
|
|
1005
1014
|
};
|
|
1006
|
-
var ForwardRef$
|
|
1015
|
+
var ForwardRef$J = /*#__PURE__*/React.forwardRef(SvgNavigationChevronLeft18);
|
|
1007
1016
|
|
|
1008
1017
|
var _path$H;
|
|
1009
|
-
function _extends$
|
|
1018
|
+
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); }
|
|
1010
1019
|
var SvgNavigationChevronRight18 = function SvgNavigationChevronRight18(props, ref) {
|
|
1011
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1020
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$I({
|
|
1012
1021
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1013
1022
|
width: 18,
|
|
1014
1023
|
height: 18,
|
|
@@ -1020,8 +1029,9 @@ var SvgNavigationChevronRight18 = function SvgNavigationChevronRight18(props, re
|
|
|
1020
1029
|
clipRule: "evenodd"
|
|
1021
1030
|
})));
|
|
1022
1031
|
};
|
|
1023
|
-
var ForwardRef$
|
|
1032
|
+
var ForwardRef$I = /*#__PURE__*/React.forwardRef(SvgNavigationChevronRight18);
|
|
1024
1033
|
|
|
1034
|
+
dayjs__default.default.extend(localeData__default.default);
|
|
1025
1035
|
const uuiHeader = {
|
|
1026
1036
|
container: 'uui-datepickerheader-container',
|
|
1027
1037
|
header: 'uui-datepickerheader-header',
|
|
@@ -1094,20 +1104,22 @@ function DatePickerHeader(props) {
|
|
|
1094
1104
|
var _a, _b, _c;
|
|
1095
1105
|
return `${((_a = props.value) === null || _a === void 0 ? void 0 : _a.view) !== 'MONTH_SELECTION' ? dayjs__default.default.months()[(_b = props.value) === null || _b === void 0 ? void 0 : _b.displayedDate.month()] : ''} ${(_c = props.value) === null || _c === void 0 ? void 0 : _c.displayedDate.year()}`;
|
|
1096
1106
|
}, [(_a = props.value) === null || _a === void 0 ? void 0 : _a.view, (_b = props.value) === null || _b === void 0 ? void 0 : _b.displayedDate]);
|
|
1097
|
-
return (React__namespace.createElement("div", { className: cx__default.default(css$
|
|
1107
|
+
return (React__namespace.createElement("div", { className: cx__default.default(css$17.container, uuiHeader.container, props.cx) },
|
|
1098
1108
|
React__namespace.createElement("header", { className: uuiHeader.header },
|
|
1099
|
-
React__namespace.createElement(Button, { icon: ForwardRef$
|
|
1109
|
+
React__namespace.createElement(Button, { icon: props.navIconLeft || ForwardRef$J, color: "secondary", fill: "ghost", cx: uuiHeader.navIconLeft, onClick: () => onLeftNavigationArrow() }),
|
|
1100
1110
|
React__namespace.createElement(Button, { caption: title, fill: "ghost", cx: uuiHeader.navTitle, onClick: () => onCaptionClick(props.value.view) }),
|
|
1101
|
-
React__namespace.createElement(Button, { icon: ForwardRef$
|
|
1111
|
+
React__namespace.createElement(Button, { icon: props.navIconRight || ForwardRef$I, color: "secondary", fill: "ghost", cx: uuiHeader.navIconRight, onClick: () => onRightNavigationArrow() }))));
|
|
1102
1112
|
}
|
|
1103
1113
|
|
|
1104
|
-
var css$
|
|
1114
|
+
var css$16 = {"root":"F9Yc8K"};
|
|
1105
1115
|
|
|
1106
1116
|
function applyDateSelectionMods() {
|
|
1107
|
-
return [css$
|
|
1117
|
+
return [css$16.root];
|
|
1108
1118
|
}
|
|
1109
1119
|
const Calendar = uuiCore.withMods(uuiComponents.Calendar, applyDateSelectionMods);
|
|
1110
1120
|
|
|
1121
|
+
var css$15 = {"root":"OWohPB"};
|
|
1122
|
+
|
|
1111
1123
|
dayjs__default.default.extend(updateLocale__default.default);
|
|
1112
1124
|
const uuiDatePickerBody = {
|
|
1113
1125
|
wrapper: 'uui-datepickerBody-wrapper',
|
|
@@ -1133,8 +1145,8 @@ class DatePickerBody extends uuiComponents.DatePickerBodyBase {
|
|
|
1133
1145
|
return (React__namespace.createElement(Calendar, { value: dayjs__default.default(this.props.value.selectedDate), onValueChange: this.onDayClick, displayedDate: this.props.value.displayedDate, filter: this.props.filter, getDayCX: this.props.getDayCX, renderDay: this.props.renderDay, isHoliday: this.props.isHoliday }));
|
|
1134
1146
|
}
|
|
1135
1147
|
};
|
|
1136
|
-
this.
|
|
1137
|
-
return (React__namespace.createElement("div", { className: uuiCore.cx(uuiDatePickerBody.wrapper, this.props.cx) },
|
|
1148
|
+
this.renderBody = () => {
|
|
1149
|
+
return (React__namespace.createElement("div", { className: uuiCore.cx(css$15.root, uuiDatePickerBody.wrapper, this.props.cx) },
|
|
1138
1150
|
React__namespace.createElement(DatePickerHeader, { value: this.props.value, onValueChange: (newValue) => this.props.setDisplayedDateAndView(newValue.displayedDate, newValue.view) }),
|
|
1139
1151
|
this.getView()));
|
|
1140
1152
|
};
|
|
@@ -1144,9 +1156,9 @@ class DatePickerBody extends uuiComponents.DatePickerBodyBase {
|
|
|
1144
1156
|
}
|
|
1145
1157
|
|
|
1146
1158
|
var _path$G;
|
|
1147
|
-
function _extends$
|
|
1159
|
+
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); }
|
|
1148
1160
|
var SvgNotificationCheckCircleFill24 = function SvgNotificationCheckCircleFill24(props, ref) {
|
|
1149
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1161
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$H({
|
|
1150
1162
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1151
1163
|
width: 24,
|
|
1152
1164
|
height: 24,
|
|
@@ -1157,12 +1169,12 @@ var SvgNotificationCheckCircleFill24 = function SvgNotificationCheckCircleFill24
|
|
|
1157
1169
|
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
|
|
1158
1170
|
})));
|
|
1159
1171
|
};
|
|
1160
|
-
var ForwardRef$
|
|
1172
|
+
var ForwardRef$H = /*#__PURE__*/React.forwardRef(SvgNotificationCheckCircleFill24);
|
|
1161
1173
|
|
|
1162
1174
|
var _path$F;
|
|
1163
|
-
function _extends$
|
|
1175
|
+
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); }
|
|
1164
1176
|
var SvgNotificationWarningFill24 = function SvgNotificationWarningFill24(props, ref) {
|
|
1165
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1177
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$G({
|
|
1166
1178
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1167
1179
|
width: 24,
|
|
1168
1180
|
height: 24,
|
|
@@ -1173,12 +1185,12 @@ var SvgNotificationWarningFill24 = function SvgNotificationWarningFill24(props,
|
|
|
1173
1185
|
d: "M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"
|
|
1174
1186
|
})));
|
|
1175
1187
|
};
|
|
1176
|
-
var ForwardRef$
|
|
1188
|
+
var ForwardRef$G = /*#__PURE__*/React.forwardRef(SvgNotificationWarningFill24);
|
|
1177
1189
|
|
|
1178
1190
|
var _path$E;
|
|
1179
|
-
function _extends$
|
|
1191
|
+
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); }
|
|
1180
1192
|
var SvgNotificationErrorFill24 = function SvgNotificationErrorFill24(props, ref) {
|
|
1181
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1193
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$F({
|
|
1182
1194
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1183
1195
|
width: 24,
|
|
1184
1196
|
height: 24,
|
|
@@ -1189,12 +1201,12 @@ var SvgNotificationErrorFill24 = function SvgNotificationErrorFill24(props, ref)
|
|
|
1189
1201
|
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"
|
|
1190
1202
|
})));
|
|
1191
1203
|
};
|
|
1192
|
-
var ForwardRef$
|
|
1204
|
+
var ForwardRef$F = /*#__PURE__*/React.forwardRef(SvgNotificationErrorFill24);
|
|
1193
1205
|
|
|
1194
1206
|
var _path$D;
|
|
1195
|
-
function _extends$
|
|
1207
|
+
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); }
|
|
1196
1208
|
var SvgNotificationHelpFill24 = function SvgNotificationHelpFill24(props, ref) {
|
|
1197
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1209
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$E({
|
|
1198
1210
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1199
1211
|
width: 24,
|
|
1200
1212
|
height: 24,
|
|
@@ -1205,12 +1217,12 @@ var SvgNotificationHelpFill24 = function SvgNotificationHelpFill24(props, ref) {
|
|
|
1205
1217
|
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"
|
|
1206
1218
|
})));
|
|
1207
1219
|
};
|
|
1208
|
-
var ForwardRef$
|
|
1220
|
+
var ForwardRef$E = /*#__PURE__*/React.forwardRef(SvgNotificationHelpFill24);
|
|
1209
1221
|
|
|
1210
1222
|
var _path$C;
|
|
1211
|
-
function _extends$
|
|
1223
|
+
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); }
|
|
1212
1224
|
var SvgNavigationClose24$1 = function SvgNavigationClose24(props, ref) {
|
|
1213
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1225
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$D({
|
|
1214
1226
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1215
1227
|
width: 24,
|
|
1216
1228
|
height: 24,
|
|
@@ -1221,28 +1233,28 @@ var SvgNavigationClose24$1 = function SvgNavigationClose24(props, ref) {
|
|
|
1221
1233
|
d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
1222
1234
|
})));
|
|
1223
1235
|
};
|
|
1224
|
-
var ForwardRef$
|
|
1236
|
+
var ForwardRef$D = /*#__PURE__*/React.forwardRef(SvgNavigationClose24$1);
|
|
1225
1237
|
|
|
1226
|
-
var css$
|
|
1238
|
+
var css$14 = {"root":"_0ZIked","icon-wrapper":"_323APP","alert-wrapper":"UKzorq","size-48":"jDI03w","size-36":"kUk8dq","action-wrapper":"qb8FPn","action-icon":"RmKnuG","action-link":"ZSsfts","close-icon":"kdwLKQ","main-path":"L-dHhV","content":"hYii3z","iconWrapper":"_323APP","alertWrapper":"UKzorq","size48":"jDI03w","size36":"kUk8dq","actionWrapper":"qb8FPn","actionIcon":"RmKnuG","actionLink":"ZSsfts","closeIcon":"kdwLKQ","mainPath":"L-dHhV"};
|
|
1227
1239
|
|
|
1228
|
-
const Alert = React__namespace.forwardRef((props, ref) => (React__namespace.createElement("div", Object.assign({ role: "alert", ref: ref, className: cx__default.default('uui-alert', css$
|
|
1229
|
-
React__namespace.createElement("div", { className: css$
|
|
1230
|
-
props.icon && (React__namespace.createElement("div", { className: css$
|
|
1231
|
-
React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$
|
|
1232
|
-
React__namespace.createElement("div", { className: css$
|
|
1240
|
+
const Alert = React__namespace.forwardRef((props, ref) => (React__namespace.createElement("div", Object.assign({ role: "alert", ref: ref, className: cx__default.default('uui-alert', css$14.root, css$14.alertWrapper, props.color && `uui-color-${props.color}`, props.cx, (props.size === '36' ? css$14.size36 : css$14.size48)) }, props.rawProps),
|
|
1241
|
+
React__namespace.createElement("div", { className: css$14.mainPath },
|
|
1242
|
+
props.icon && (React__namespace.createElement("div", { className: css$14.iconWrapper },
|
|
1243
|
+
React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$14.actionIcon }))),
|
|
1244
|
+
React__namespace.createElement("div", { className: css$14.content },
|
|
1233
1245
|
props.children,
|
|
1234
|
-
props.actions && (React__namespace.createElement("div", { className: css$
|
|
1235
|
-
props.onClose && React__namespace.createElement(IconButton, { icon: ForwardRef$
|
|
1236
|
-
const WarningAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
1237
|
-
const SuccessAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
1238
|
-
const HintAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
1239
|
-
const ErrorAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
1246
|
+
props.actions && (React__namespace.createElement("div", { className: css$14.actionWrapper }, props.actions.map((action) => (React__namespace.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$14.actionLink, size: (props === null || props === void 0 ? void 0 : props.size) === '36' ? '24' : '30' })))))),
|
|
1247
|
+
props.onClose && React__namespace.createElement(IconButton, { icon: ForwardRef$D, color: "neutral", onClick: props.onClose, cx: css$14.closeIcon })))));
|
|
1248
|
+
const WarningAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$G, color: "warning", ref: ref }, props)));
|
|
1249
|
+
const SuccessAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$H, color: "success", ref: ref }, props)));
|
|
1250
|
+
const HintAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$E, color: "info", ref: ref }, props)));
|
|
1251
|
+
const ErrorAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$F, color: "error", ref: ref }, props)));
|
|
1240
1252
|
|
|
1241
1253
|
function Dropdown(props) {
|
|
1242
1254
|
return React__namespace.createElement(uuiComponents.Dropdown, Object.assign({}, props));
|
|
1243
1255
|
}
|
|
1244
1256
|
|
|
1245
|
-
var css$
|
|
1257
|
+
var css$13 = {"root":"TVXlr1","bodyRoot":"auaShj","submenuRootItem":"HJUFix","iconAfter":"TeH-fd","iconCheck":"adTvjR","splitterRoot":"dO6TV1","splitter":"El14RE","headerRoot":"_5poaht","itemRoot":"_0S-9Mc","icon":"W8Gmap","link":"_2gs-va","indent":"vYWB98"};
|
|
1246
1258
|
|
|
1247
1259
|
const icons = systemIcons['36'];
|
|
1248
1260
|
exports.IDropdownControlKeys = void 0;
|
|
@@ -1256,12 +1268,8 @@ exports.IDropdownControlKeys = void 0;
|
|
|
1256
1268
|
})(exports.IDropdownControlKeys || (exports.IDropdownControlKeys = {}));
|
|
1257
1269
|
function DropdownMenuContainer(props) {
|
|
1258
1270
|
const menuRef = React.useRef(null);
|
|
1259
|
-
const [currentlyFocused, setFocused] = React.useState(
|
|
1271
|
+
const [currentlyFocused, setFocused] = React.useState(0);
|
|
1260
1272
|
const menuItems = menuRef.current ? Array.from(menuRef.current.querySelectorAll(`[role="menuitem"]:not(.${uuiCore.uuiMod.disabled})`)) : [];
|
|
1261
|
-
React.useEffect(() => {
|
|
1262
|
-
var _a;
|
|
1263
|
-
(_a = menuRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
1264
|
-
}, [menuRef.current]);
|
|
1265
1273
|
const changeFocus = (nextFocusedIndex) => {
|
|
1266
1274
|
if (menuItems.length > 0) {
|
|
1267
1275
|
setFocused(nextFocusedIndex);
|
|
@@ -1269,7 +1277,6 @@ function DropdownMenuContainer(props) {
|
|
|
1269
1277
|
}
|
|
1270
1278
|
};
|
|
1271
1279
|
const handleArrowKeys = (e) => {
|
|
1272
|
-
e.stopPropagation();
|
|
1273
1280
|
const lastMenuItemsIndex = menuItems.length - 1;
|
|
1274
1281
|
if (e.key === exports.IDropdownControlKeys.UP_ARROW) {
|
|
1275
1282
|
changeFocus(currentlyFocused > 0 ? currentlyFocused - 1 : lastMenuItemsIndex);
|
|
@@ -1278,15 +1285,15 @@ function DropdownMenuContainer(props) {
|
|
|
1278
1285
|
changeFocus(currentlyFocused < lastMenuItemsIndex ? currentlyFocused + 1 : 0);
|
|
1279
1286
|
}
|
|
1280
1287
|
else if (e.key === props.closeOnKey && props.onClose) {
|
|
1288
|
+
e.stopPropagation();
|
|
1281
1289
|
props.onClose();
|
|
1282
1290
|
}
|
|
1283
1291
|
};
|
|
1284
|
-
return (React__namespace.default.createElement(
|
|
1285
|
-
React__namespace.default.createElement(uuiComponents.DropdownContainer, Object.assign({}, props, { rawProps: Object.assign(Object.assign({}, props.rawProps), { tabIndex: -1 }) }))));
|
|
1292
|
+
return (React__namespace.default.createElement(DropdownContainer, Object.assign({}, props, { rawProps: Object.assign(Object.assign({}, props.rawProps), { role: 'menu' }), ref: menuRef, lockProps: { onKeyDown: handleArrowKeys }, cx: css$13.root })));
|
|
1286
1293
|
}
|
|
1287
|
-
const DropdownMenuBody = uuiCore.withMods(DropdownMenuContainer, () => [css$
|
|
1294
|
+
const DropdownMenuBody = uuiCore.withMods(DropdownMenuContainer, () => [css$13.bodyRoot], (props) => {
|
|
1288
1295
|
const dropdownRawProps = props.minWidth ? Object.assign(Object.assign({}, props.rawProps), { style: { minWidth: `${props.minWidth}px` } }) : null;
|
|
1289
|
-
return (Object.assign(Object.assign({}, props), { rawProps: dropdownRawProps || props.rawProps }));
|
|
1296
|
+
return (Object.assign(Object.assign({ closeOnKey: exports.IDropdownControlKeys.ESCAPE }, props), { rawProps: dropdownRawProps || props.rawProps }));
|
|
1290
1297
|
});
|
|
1291
1298
|
const DropdownMenuButton = React__namespace.default.forwardRef((props, ref) => {
|
|
1292
1299
|
const context = React.useContext(uuiCore.UuiContext);
|
|
@@ -1308,32 +1315,32 @@ const DropdownMenuButton = React__namespace.default.forwardRef((props, ref) => {
|
|
|
1308
1315
|
const getMenuButtonContent = () => {
|
|
1309
1316
|
const isIconBefore = Boolean(icon && iconPosition !== 'right');
|
|
1310
1317
|
const isIconAfter = Boolean(icon && iconPosition === 'right');
|
|
1311
|
-
const iconElement = (React__namespace.default.createElement(IconButton, { icon: icon, color: isActive ? 'info' : '
|
|
1318
|
+
const iconElement = (React__namespace.default.createElement(IconButton, { icon: icon, color: isActive ? 'info' : 'neutral', onClick: onIconClick, cx: uuiCore.cx(css$13.root, css$13.icon, iconPosition === 'right' ? css$13.iconAfter : css$13.iconBefore) }));
|
|
1312
1319
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1313
1320
|
isIconBefore && iconElement,
|
|
1314
|
-
React__namespace.default.createElement(uuiComponents.Text, { cx: css$
|
|
1321
|
+
React__namespace.default.createElement(uuiComponents.Text, { cx: props.indent && css$13.indent }, caption),
|
|
1315
1322
|
isIconAfter && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1316
1323
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1317
1324
|
iconElement))));
|
|
1318
1325
|
};
|
|
1319
1326
|
const isAnchor = Boolean(link || href);
|
|
1320
|
-
const itemClassNames = uuiCore.cx(props.cx, css$
|
|
1321
|
-
return isAnchor ? (React__namespace.default.createElement(uuiComponents.Anchor, { cx: uuiCore.cx(css$
|
|
1327
|
+
const itemClassNames = uuiCore.cx(css$13.root, props.cx, css$13.itemRoot, isDisabled && uuiCore.uuiMod.disabled, isActive && uuiCore.uuiMod.active, isOpen && uuiCore.uuiMod.opened);
|
|
1328
|
+
return isAnchor ? (React__namespace.default.createElement(uuiComponents.Anchor, { cx: uuiCore.cx(css$13.link, itemClassNames), link: link, href: href, rawProps: { role: 'menuitem', tabIndex: isDisabled ? -1 : 0 }, onClick: handleClick, isDisabled: isDisabled, forwardedRef: ref, target: target }, getMenuButtonContent())) : (React__namespace.default.createElement(uuiComponents.FlexRow, { rawProps: {
|
|
1322
1329
|
tabIndex: isDisabled ? -1 : 0,
|
|
1323
1330
|
role: 'menuitem',
|
|
1324
1331
|
onKeyDown: isDisabled ? null : handleOpenDropdown,
|
|
1325
1332
|
}, cx: itemClassNames, onClick: handleClick, ref: ref },
|
|
1326
1333
|
getMenuButtonContent(),
|
|
1327
|
-
isSelected && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icons.accept, cx: css$
|
|
1334
|
+
isSelected && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icons.accept, cx: uuiCore.cx(css$13.root, css$13.selectedCheckmark) })));
|
|
1328
1335
|
});
|
|
1329
1336
|
DropdownMenuButton.displayName = 'DropdownMenuButton';
|
|
1330
1337
|
function DropdownMenuSplitter(props) {
|
|
1331
|
-
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$
|
|
1332
|
-
React__namespace.default.createElement("hr", { className: css$
|
|
1338
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx(css$13.root, props.cx, css$13.splitterRoot) },
|
|
1339
|
+
React__namespace.default.createElement("hr", { className: css$13.splitter })));
|
|
1333
1340
|
}
|
|
1334
1341
|
function DropdownMenuHeader(props) {
|
|
1335
|
-
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$
|
|
1336
|
-
React__namespace.default.createElement("span", { className: css$
|
|
1342
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx('uui-dropdown-menu-header', css$13.root, props.cx, css$13.headerRoot) },
|
|
1343
|
+
React__namespace.default.createElement("span", { className: css$13.header }, props.caption)));
|
|
1337
1344
|
}
|
|
1338
1345
|
function DropdownSubMenu(props) {
|
|
1339
1346
|
const subMenuModifiers = [
|
|
@@ -1353,7 +1360,7 @@ function DropdownSubMenu(props) {
|
|
|
1353
1360
|
];
|
|
1354
1361
|
return (React__namespace.default.createElement(uuiComponents.Dropdown, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", openDelay: 400, closeDelay: 400, placement: "right-start", modifiers: subMenuModifiers, renderBody: (dropdownProps) => React__namespace.default.createElement(DropdownMenuBody, Object.assign({ closeOnKey: exports.IDropdownControlKeys.LEFT_ARROW }, props, dropdownProps)), renderTarget: (_a) => {
|
|
1355
1362
|
var { toggleDropdownOpening } = _a, targetProps = __rest(_a, ["toggleDropdownOpening"]);
|
|
1356
|
-
return (React__namespace.default.createElement(DropdownMenuButton, Object.assign({ cx: uuiCore.cx(css$
|
|
1363
|
+
return (React__namespace.default.createElement(DropdownMenuButton, Object.assign({ cx: uuiCore.cx(css$13.root, css$13.submenuRootItem), icon: icons.foldingArrow, iconPosition: "right", isDropdown: true, toggleDropdownOpening: toggleDropdownOpening }, props, targetProps)));
|
|
1357
1364
|
} }));
|
|
1358
1365
|
}
|
|
1359
1366
|
function DropdownMenuSwitchButton(props) {
|
|
@@ -1370,91 +1377,41 @@ function DropdownMenuSwitchButton(props) {
|
|
|
1370
1377
|
onHandleValueChange(!isSelected);
|
|
1371
1378
|
}
|
|
1372
1379
|
};
|
|
1373
|
-
return (React__namespace.default.createElement(uuiComponents.FlexRow, { cx: uuiCore.cx(props.cx, css$
|
|
1374
|
-
icon && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icon, cx: css$
|
|
1375
|
-
React__namespace.default.createElement(uuiComponents.Text,
|
|
1380
|
+
return (React__namespace.default.createElement(uuiComponents.FlexRow, { cx: uuiCore.cx(props.cx, css$13.itemRoot, isDisabled && uuiCore.uuiMod.disabled), onClick: () => onHandleValueChange(!isSelected), rawProps: { role: 'menuitem', onKeyDown: handleKeySelect, tabIndex: isDisabled ? -1 : 0 } },
|
|
1381
|
+
icon && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icon, cx: css$13.iconBefore }),
|
|
1382
|
+
React__namespace.default.createElement(uuiComponents.Text, null, caption),
|
|
1376
1383
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1377
1384
|
React__namespace.default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
1378
1385
|
}
|
|
1379
1386
|
|
|
1380
|
-
var css$
|
|
1381
|
-
|
|
1382
|
-
function applyAccordionMods(mods) {
|
|
1383
|
-
return [
|
|
1384
|
-
css$10.root, css$10['mode-' + (mods.mode || 'block')], mods.padding && css$10['padding-' + mods.padding],
|
|
1385
|
-
];
|
|
1386
|
-
}
|
|
1387
|
-
const Accordion = uuiCore.withMods(uuiComponents.Accordion, applyAccordionMods, (mods) => ({
|
|
1388
|
-
dropdownIcon: mods.dropdownIcon !== null && systemIcons[mods.mode === 'block' ? '60' : '30'].foldingArrow,
|
|
1389
|
-
}));
|
|
1390
|
-
|
|
1391
|
-
var css$$ = {"root":"YsrMh8","border-bottom":"KBB1Ug","top-shadow":"xxSec4","size-24":"vPFb39","size-30":"j6EIQm","size-36":"dtRUyP","size-42":"xPgcHL","size-48":"F2FDct","padding-6":"xNlhoY","padding-12":"_0hgVzu","padding-18":"_5NvBco","padding-24":"I6qbop","margin-24":"Km5CY2","margin-12":"_4VF5Je","vPadding-12":"cPv0xO","vPadding-18":"T7pKFg","vPadding-24":"qZ4Sf7","vPadding-36":"en0CFJ","vPadding-48":"t1vFJ-","spacing-6":"stIxgh","spacing-12":"Ji-yIq","spacing-18":"HVK8rN","borderBottom":"KBB1Ug","topShadow":"xxSec4","size24":"vPFb39","size30":"j6EIQm","size36":"dtRUyP","size42":"xPgcHL","size48":"F2FDct","padding6":"xNlhoY","padding12":"_0hgVzu","padding18":"_5NvBco","padding24":"I6qbop","margin24":"Km5CY2","margin12":"_4VF5Je","vPadding12":"cPv0xO","vPadding18":"T7pKFg","vPadding24":"qZ4Sf7","vPadding36":"en0CFJ","vPadding48":"t1vFJ-","spacing6":"stIxgh","spacing12":"Ji-yIq","spacing18":"HVK8rN"};
|
|
1387
|
+
var css$12 = {"root":"_87SQ78","border-bottom":"BhVolQ","top-shadow":"K6-qyf","size-24":"T-kMsQ","size-30":"QGrds7","size-36":"pLLgQF","size-42":"pudUNn","size-48":"wR8tBZ","padding-6":"g-NAEE","padding-12":"oYgCBs","padding-18":"mfjWD5","padding-24":"wiwVol","margin-24":"AAGZg-","margin-12":"urWP2V","vPadding-12":"xofbOt","vPadding-18":"SYjpZo","vPadding-24":"B634oC","vPadding-36":"mZSSVi","vPadding-48":"wo4cdC","spacing-6":"qEPx8a","spacing-12":"rWF6qe","spacing-18":"_86V2ct","borderBottom":"BhVolQ","topShadow":"K6-qyf","size24":"T-kMsQ","size30":"QGrds7","size36":"pLLgQF","size42":"pudUNn","size48":"wR8tBZ","padding6":"g-NAEE","padding12":"oYgCBs","padding18":"mfjWD5","padding24":"wiwVol","margin24":"AAGZg-","margin12":"urWP2V","vPadding12":"xofbOt","vPadding18":"SYjpZo","vPadding24":"B634oC","vPadding36":"mZSSVi","vPadding48":"wo4cdC","spacing6":"qEPx8a","spacing12":"rWF6qe","spacing18":"_86V2ct"};
|
|
1392
1388
|
|
|
1393
|
-
const FlexCell = uuiCore.withMods(uuiComponents.FlexCell, () => [css
|
|
1389
|
+
const FlexCell = uuiCore.withMods(uuiComponents.FlexCell, () => [css$12.flexCell]);
|
|
1394
1390
|
|
|
1395
1391
|
const FlexRow = uuiCore.withMods(uuiComponents.FlexRow, (props) => {
|
|
1396
1392
|
return [
|
|
1397
|
-
css
|
|
1393
|
+
css$12.root,
|
|
1394
|
+
props.size !== null && css$12['size-' + (props.size || '36')],
|
|
1395
|
+
props.padding && css$12['padding-' + props.padding],
|
|
1396
|
+
props.vPadding && css$12['vPadding-' + props.vPadding],
|
|
1397
|
+
props.margin && css$12['margin-' + props.margin],
|
|
1398
|
+
props.topShadow && css$12.topShadow,
|
|
1399
|
+
props.borderBottom && css$12.borderBottom,
|
|
1400
|
+
props.spacing && css$12['spacing-' + props.spacing],
|
|
1401
|
+
props.background && `uui-color-${props.background}`,
|
|
1398
1402
|
];
|
|
1399
1403
|
});
|
|
1400
1404
|
|
|
1401
|
-
var css$
|
|
1405
|
+
var css$11 = {"root":"yB0V5j","margin-24":"IBu-rl","padding-12":"LokTzm","padding-24":"O2-rmI","shadow":"B3SHKr","margin24":"IBu-rl","padding12":"LokTzm","padding24":"O2-rmI"};
|
|
1402
1406
|
|
|
1403
1407
|
const Panel = uuiCore.withMods(uuiComponents.VPanel, (props) => [
|
|
1404
|
-
'uui-panel',
|
|
1408
|
+
'uui-panel',
|
|
1409
|
+
css$11.root,
|
|
1410
|
+
props.shadow && css$11.shadow,
|
|
1411
|
+
props.margin && css$11['margin-' + props.margin],
|
|
1412
|
+
props.background && `uui-color-${props.background}`,
|
|
1405
1413
|
]);
|
|
1406
1414
|
|
|
1407
|
-
var css$Z = {"root":"nS0zaK"};
|
|
1408
|
-
|
|
1409
|
-
function applyTooltipMods(mods) {
|
|
1410
|
-
return [
|
|
1411
|
-
`tooltip-${mods.color || 'contrast'}`,
|
|
1412
|
-
css$Z.root,
|
|
1413
|
-
];
|
|
1414
|
-
}
|
|
1415
|
-
const Tooltip = uuiCore.withMods(uuiComponents.Tooltip, applyTooltipMods);
|
|
1416
|
-
|
|
1417
|
-
var css$Y = {"root":"FEpBfY","size-24":"_8BweCF","size-30":"mBezly","size-36":"bIdcUp","size-42":"c08VRt","size-48":"h0xqcR","size24":"_8BweCF","size30":"mBezly","size36":"bIdcUp","size42":"c08VRt","size48":"h0xqcR"};
|
|
1418
|
-
|
|
1419
|
-
const defaultSize$6 = '36';
|
|
1420
|
-
function applyLabeledInputMods(mods) {
|
|
1421
|
-
return [css$Y.root, css$Y['size-' + (mods.size || defaultSize$6)]];
|
|
1422
|
-
}
|
|
1423
|
-
const LabeledInput = uuiCore.withMods(uuiComponents.LabeledInput, applyLabeledInputMods, (props) => ({
|
|
1424
|
-
Tooltip,
|
|
1425
|
-
infoIcon: systemIcons[props.size || defaultSize$6].help,
|
|
1426
|
-
}));
|
|
1427
|
-
|
|
1428
|
-
var css$X = {"root":"dw56tA"};
|
|
1429
|
-
|
|
1430
|
-
const RadioGroup = uuiCore.withMods(uuiComponents.RadioGroup, () => [css$X.root], () => ({ RadioInput }));
|
|
1431
|
-
|
|
1432
|
-
function applyScrollBarsMods() {
|
|
1433
|
-
return [
|
|
1434
|
-
'uui-scroll-bars', 'uui-shadow-top', 'uui-shadow-bottom',
|
|
1435
|
-
];
|
|
1436
|
-
}
|
|
1437
|
-
const ScrollBars = uuiCore.withMods(uuiComponents.ScrollBars, applyScrollBarsMods);
|
|
1438
|
-
|
|
1439
|
-
const VirtualList = uuiComponents.VirtualList;
|
|
1440
|
-
|
|
1441
|
-
var css$W = {"root":"UsK-Rt"};
|
|
1442
|
-
|
|
1443
|
-
var css$V = {"root":"v6o0PL","uui-spinner":"li5HgG","uuiSpinner":"li5HgG"};
|
|
1444
|
-
|
|
1445
|
-
function applySpinnerMods() {
|
|
1446
|
-
return [css$V.root];
|
|
1447
|
-
}
|
|
1448
|
-
const Spinner = uuiCore.withMods(uuiComponents.Spinner, applySpinnerMods);
|
|
1449
|
-
|
|
1450
|
-
const Blocker = uuiCore.withMods(uuiComponents.Blocker, () => [css$W.root], (cmpProps) => ({ renderSpinner: cmpProps.renderSpinner || (() => React__namespace.default.createElement(Spinner, null)) }));
|
|
1451
|
-
|
|
1452
|
-
var css$U = {"root":"_2Wisvp"};
|
|
1453
|
-
|
|
1454
|
-
const CheckboxGroup = uuiCore.withMods(uuiComponents.CheckboxGroup, () => [css$U.root], () => ({ CheckboxInput: Checkbox }));
|
|
1455
|
-
|
|
1456
|
-
var css$T = {"root":"fqA3Q1"};
|
|
1457
|
-
|
|
1458
1415
|
const i18n = Object.assign(Object.assign({}, uuiCore.i18n), { dataPickerBody: {
|
|
1459
1416
|
searchPlaceholder: 'Search',
|
|
1460
1417
|
noRecordsMessage: 'No records found',
|
|
@@ -1544,28 +1501,96 @@ const i18n = Object.assign(Object.assign({}, uuiCore.i18n), { dataPickerBody: {
|
|
|
1544
1501
|
fileSizeProgress: ' of ',
|
|
1545
1502
|
} });
|
|
1546
1503
|
|
|
1547
|
-
var css$
|
|
1504
|
+
var css$10 = {"root":"C9bQDt","mode-block":"LaxMjY","mode-inline":"tyY8xQ","padding-0":"Vxj-Lh","padding-6":"UeinoS","padding-12":"p6NmAi","padding-18":"JEJGBM","modeBlock":"LaxMjY","modeInline":"tyY8xQ","padding0":"Vxj-Lh","padding6":"UeinoS","padding12":"p6NmAi","padding18":"JEJGBM"};
|
|
1505
|
+
|
|
1506
|
+
function applyAccordionMods(mods) {
|
|
1507
|
+
return [
|
|
1508
|
+
css$10.root,
|
|
1509
|
+
css$10['mode-' + (mods.mode || 'block')],
|
|
1510
|
+
mods.padding && css$10['padding-' + mods.padding],
|
|
1511
|
+
];
|
|
1512
|
+
}
|
|
1513
|
+
const Accordion = uuiCore.withMods(uuiComponents.Accordion, applyAccordionMods, (mods) => ({
|
|
1514
|
+
dropdownIcon: mods.dropdownIcon !== null && systemIcons[mods.mode === 'block' ? '60' : '30'].foldingArrow,
|
|
1515
|
+
}));
|
|
1516
|
+
|
|
1517
|
+
var css$$ = {"root":"SCw5ha"};
|
|
1518
|
+
|
|
1519
|
+
function applyTooltipMods(mods) {
|
|
1520
|
+
return [
|
|
1521
|
+
css$$.root,
|
|
1522
|
+
`uui-color-${mods.color || 'contrast'}`,
|
|
1523
|
+
];
|
|
1524
|
+
}
|
|
1525
|
+
const Tooltip = uuiCore.withMods(uuiComponents.Tooltip, applyTooltipMods);
|
|
1526
|
+
|
|
1527
|
+
var css$_ = {"root":"XUfJWg","size-24":"DaZNiN","size-30":"Cl4T2h","size-36":"kAT-fR","size-42":"NlegI9","size-48":"KTodID","size24":"DaZNiN","size30":"Cl4T2h","size36":"kAT-fR","size42":"NlegI9","size48":"KTodID"};
|
|
1528
|
+
|
|
1529
|
+
const defaultSize$6 = '36';
|
|
1530
|
+
function applyLabeledInputMods(mods) {
|
|
1531
|
+
return [css$_.root, css$_['size-' + (mods.size || defaultSize$6)]];
|
|
1532
|
+
}
|
|
1533
|
+
const LabeledInput = uuiCore.withMods(uuiComponents.LabeledInput, applyLabeledInputMods, (props) => ({
|
|
1534
|
+
Tooltip,
|
|
1535
|
+
infoIcon: systemIcons[props.size || defaultSize$6].help,
|
|
1536
|
+
}));
|
|
1537
|
+
|
|
1538
|
+
var css$Z = {"root":"QYIUDV"};
|
|
1539
|
+
|
|
1540
|
+
const RadioGroup = uuiCore.withMods(uuiComponents.RadioGroup, () => [css$Z.root], () => ({ RadioInput }));
|
|
1541
|
+
|
|
1542
|
+
function applyScrollBarsMods() {
|
|
1543
|
+
return [
|
|
1544
|
+
'uui-scroll-bars', 'uui-shadow-top', 'uui-shadow-bottom',
|
|
1545
|
+
];
|
|
1546
|
+
}
|
|
1547
|
+
const ScrollBars = uuiCore.withMods(uuiComponents.ScrollBars, applyScrollBarsMods);
|
|
1548
|
+
|
|
1549
|
+
const VirtualList = uuiComponents.VirtualList;
|
|
1550
|
+
|
|
1551
|
+
var css$Y = {"root":"i3VYZA"};
|
|
1552
|
+
|
|
1553
|
+
var css$X = {"root":"suOYKL","uui-spinner":"o-7gN5","uuiSpinner":"o-7gN5"};
|
|
1554
|
+
|
|
1555
|
+
function applySpinnerMods() {
|
|
1556
|
+
return [css$X.root, 'uui-spinner'];
|
|
1557
|
+
}
|
|
1558
|
+
const Spinner = uuiCore.withMods(uuiComponents.Spinner, applySpinnerMods);
|
|
1559
|
+
|
|
1560
|
+
const Blocker = uuiCore.withMods(uuiComponents.Blocker, () => [css$Y.root], (cmpProps) => ({ renderSpinner: cmpProps.renderSpinner || (() => React__namespace.default.createElement(Spinner, null)) }));
|
|
1561
|
+
|
|
1562
|
+
var css$W = {"root":"u6NUSh"};
|
|
1563
|
+
|
|
1564
|
+
const CheckboxGroup = uuiCore.withMods(uuiComponents.CheckboxGroup, () => [css$W.root], () => ({ CheckboxInput: Checkbox }));
|
|
1565
|
+
|
|
1566
|
+
var css$V = {"body":"VIlCPT","modal":"o5-RsD","search-wrapper":"U12jeR","checkbox":"KLKorc","no-found-size-24":"o7DpqL","no-found-size-30":"guJA44","no-found-size-36":"Z6kmkG","no-found-size-42":"_4pLSof","searchWrapper":"U12jeR","noFoundSize24":"o7DpqL","noFoundSize30":"guJA44","noFoundSize36":"Z6kmkG","noFoundSize42":"_4pLSof"};
|
|
1548
1567
|
|
|
1549
1568
|
class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
1550
1569
|
constructor() {
|
|
1551
1570
|
super(...arguments);
|
|
1552
1571
|
this.lens = uuiCore.Lens.onEditableComponent(this);
|
|
1553
1572
|
this.searchLens = this.lens.prop('search');
|
|
1573
|
+
this.renderRowsContainer = ({ listContainerRef, estimatedHeight, offsetY }) => {
|
|
1574
|
+
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1575
|
+
React__namespace.default.createElement("div", { className: css$V.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
1576
|
+
React__namespace.default.createElement("div", { ref: listContainerRef, role: "listbox", style: { marginTop: offsetY } }, this.props.rows)),
|
|
1577
|
+
React__namespace.default.createElement(Blocker, { isEnabled: this.props.isReloading })));
|
|
1578
|
+
};
|
|
1554
1579
|
}
|
|
1555
1580
|
renderNotFound() {
|
|
1556
1581
|
if (this.props.renderNotFound) {
|
|
1557
1582
|
return this.props.renderNotFound();
|
|
1558
1583
|
}
|
|
1559
|
-
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$
|
|
1584
|
+
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$V[`no-found-size-${this.props.searchSize || 36}`], grow: 1, textAlign: "center" },
|
|
1560
1585
|
React__namespace.default.createElement(Text, { size: this.props.searchSize || '36' }, i18n.dataPickerBody.noRecordsMessage)));
|
|
1561
1586
|
}
|
|
1562
1587
|
render() {
|
|
1563
1588
|
const searchSize = uuiCore.isMobile() ? '48' : this.props.searchSize || '36';
|
|
1564
1589
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1565
|
-
this.showSearch() && (React__namespace.default.createElement("div", { key: "search", className: css$
|
|
1590
|
+
this.showSearch() && (React__namespace.default.createElement("div", { key: "search", className: css$V.searchWrapper },
|
|
1566
1591
|
React__namespace.default.createElement(uuiComponents.FlexCell, { grow: 1 },
|
|
1567
|
-
React__namespace.default.createElement(SearchInput, Object.assign({ ref: this.searchRef, placeholder: i18n.dataPickerBody.searchPlaceholder }, this.searchLens.toProps(), { onKeyDown: this.searchKeyDown, size: searchSize }))))),
|
|
1568
|
-
React__namespace.default.createElement(FlexRow, { key: "body", cx: uuiCore.cx(css$
|
|
1592
|
+
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 }))))),
|
|
1593
|
+
React__namespace.default.createElement(FlexRow, { key: "body", cx: uuiCore.cx(css$V.body, css$V[this.props.editMode], css$V[this.props.selectionMode]), rawProps: { style: { maxHeight: this.props.maxHeight } } }, this.props.rowsCount > 0 ? (React__namespace.default.createElement(VirtualList, Object.assign({}, this.lens.toProps(), { renderRows: this.renderRowsContainer, rawProps: this.props.rawProps, rowsCount: this.props.rowsCount, disableScroll: this.props.isReloading }))) : (this.renderNotFound()))));
|
|
1569
1594
|
}
|
|
1570
1595
|
}
|
|
1571
1596
|
|
|
@@ -1584,27 +1609,27 @@ function DataPickerFooterImpl(props) {
|
|
|
1584
1609
|
const clearAllText = i18n.pickerInput.clearSelectionButton;
|
|
1585
1610
|
const clearSingleText = i18n.pickerInput.clearSelectionButtonSingle;
|
|
1586
1611
|
const selectAllText = i18n.pickerInput.selectAllButton;
|
|
1587
|
-
const handleKeyDown = (e) => {
|
|
1588
|
-
if (!e.shiftKey && e.key === 'Tab')
|
|
1589
|
-
e.preventDefault();
|
|
1590
|
-
};
|
|
1591
1612
|
// show always for multi picker and for single only in case if search not disabled.
|
|
1592
1613
|
const shouldShowFooter = isSinglePicker ? !props.disableClear : true;
|
|
1593
1614
|
return shouldShowFooter && (React__namespace.default.createElement(FlexRow, { padding: "12" },
|
|
1594
1615
|
!isSinglePicker && (React__namespace.default.createElement(Switch, { size: switchSize, value: showSelected.value, isDisabled: !hasSelection, onValueChange: showSelected.onValueChange, label: i18n.pickerInput.showOnlySelectedLabel })),
|
|
1595
1616
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1596
1617
|
React__namespace.default.createElement(FlexCell, { width: "auto", alignSelf: "center" },
|
|
1597
|
-
view.selectAll && (React__namespace.default.createElement(LinkButton, { size: size, caption: hasSelection ? clearAllText : selectAllText, onClick: hasSelection ? clearSelection : () => view.selectAll.onValueChange(true), rawProps: {
|
|
1598
|
-
|
|
1618
|
+
view.selectAll && (React__namespace.default.createElement(LinkButton, { size: size, caption: hasSelection ? clearAllText : selectAllText, onClick: hasSelection ? clearSelection : () => view.selectAll.onValueChange(true), rawProps: {
|
|
1619
|
+
'aria-label': hasSelection ? clearAllText : selectAllText,
|
|
1620
|
+
} })),
|
|
1621
|
+
!view.selectAll && (React__namespace.default.createElement(LinkButton, { isDisabled: !hasSelection, size: size, caption: isSinglePicker ? clearSingleText : clearAllText, onClick: clearSelection, rawProps: {
|
|
1622
|
+
'aria-label': isSinglePicker ? clearSingleText : clearAllText,
|
|
1623
|
+
} })))));
|
|
1599
1624
|
}
|
|
1600
1625
|
const DataPickerFooter = React__namespace.default.memo(DataPickerFooterImpl);
|
|
1601
1626
|
|
|
1602
|
-
var css$
|
|
1627
|
+
var css$U = {"header":"_2SP8Gr","close":"-lAnPH"};
|
|
1603
1628
|
|
|
1604
1629
|
var _path$B;
|
|
1605
|
-
function _extends$
|
|
1630
|
+
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); }
|
|
1606
1631
|
var SvgNavigationClose24 = function SvgNavigationClose24(props, ref) {
|
|
1607
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1632
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$C({
|
|
1608
1633
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1609
1634
|
width: 24,
|
|
1610
1635
|
height: 24,
|
|
@@ -1616,50 +1641,47 @@ var SvgNavigationClose24 = function SvgNavigationClose24(props, ref) {
|
|
|
1616
1641
|
clipRule: "evenodd"
|
|
1617
1642
|
})));
|
|
1618
1643
|
};
|
|
1619
|
-
var ForwardRef$
|
|
1644
|
+
var ForwardRef$C = /*#__PURE__*/React.forwardRef(SvgNavigationClose24);
|
|
1620
1645
|
|
|
1621
1646
|
const DataPickerHeaderImpl = (props) => {
|
|
1622
1647
|
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
1623
|
-
return (React__namespace.default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: css$
|
|
1648
|
+
return (React__namespace.default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: css$U.header },
|
|
1624
1649
|
React__namespace.default.createElement(Text, { size: "48", font: "semibold" }, title),
|
|
1625
|
-
React__namespace.default.createElement(IconButton, { icon: ForwardRef$
|
|
1650
|
+
React__namespace.default.createElement(IconButton, { icon: ForwardRef$C, onClick: () => { var _a; return (_a = props.close) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: css$U.close })));
|
|
1626
1651
|
};
|
|
1627
1652
|
const DataPickerHeader = React__namespace.default.memo(DataPickerHeaderImpl);
|
|
1628
1653
|
|
|
1629
|
-
var
|
|
1630
|
-
function _extends$
|
|
1631
|
-
var
|
|
1632
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1654
|
+
var _path$A;
|
|
1655
|
+
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); }
|
|
1656
|
+
var SvgNavigationChevronDown18 = function SvgNavigationChevronDown18(props, ref) {
|
|
1657
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$B({
|
|
1658
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1633
1659
|
width: 18,
|
|
1634
1660
|
height: 18,
|
|
1635
1661
|
viewBox: "0 0 18 18",
|
|
1636
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1637
|
-
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
1638
1662
|
ref: ref
|
|
1639
|
-
}, props),
|
|
1640
|
-
|
|
1641
|
-
d: "
|
|
1642
|
-
|
|
1643
|
-
width: "100%",
|
|
1644
|
-
height: "100%",
|
|
1645
|
-
xlinkHref: "#a",
|
|
1646
|
-
transform: "translate(3.893 6.02) scale(.8512)",
|
|
1647
|
-
fillRule: "evenodd"
|
|
1663
|
+
}, props), _path$A || (_path$A = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1664
|
+
fillRule: "evenodd",
|
|
1665
|
+
d: "M12.443 6.442 9 9.877 5.558 6.442 4.5 7.5 9 12l4.5-4.5-1.057-1.058z",
|
|
1666
|
+
clipRule: "evenodd"
|
|
1648
1667
|
})));
|
|
1649
1668
|
};
|
|
1650
|
-
var ForwardRef$
|
|
1669
|
+
var ForwardRef$B = /*#__PURE__*/React.forwardRef(SvgNavigationChevronDown18);
|
|
1651
1670
|
|
|
1652
|
-
var css$
|
|
1671
|
+
var css$T = {"cell":"a-eia1","wrapper":"eddJ44","align-widgets-top":"Oxz1nk","size-24":"y7gUwL","folding-arrow":"ZRqECH","size-30":"uIhcWZ","size-36":"_2gou0C","size-42":"n62SC4","size-48":"SE4GaK","size-60":"y5hmTO","align-widgets-center":"_64q22J","padding-12":"iY5j5b","padding-24":"iQXegu","padding-left-12":"_8l6OHX","padding-left-24":"-e717L","padding-right-24":"EeClT9","drag-handle":"yrnuz7","checkbox":"mDtBQB","indent":"g1ocIN","folding-arrow-12":"OOUtlG","folding-arrow-18":"w4x0nL","icon-container":"yCNIse","loading-cell":"PJ4AtR","alignWidgetsTop":"Oxz1nk","size24":"y7gUwL","foldingArrow":"ZRqECH","size30":"uIhcWZ","size36":"_2gou0C","size42":"n62SC4","size48":"SE4GaK","size60":"y5hmTO","alignWidgetsCenter":"_64q22J","padding12":"iY5j5b","padding24":"iQXegu","paddingLeft12":"_8l6OHX","paddingLeft24":"-e717L","paddingRight24":"EeClT9","dragHandle":"yrnuz7","foldingArrow12":"OOUtlG","foldingArrow18":"w4x0nL","iconContainer":"yCNIse","loadingCell":"PJ4AtR"};
|
|
1653
1672
|
|
|
1654
1673
|
function DataTableRowAddons(props) {
|
|
1655
1674
|
var _a, _b;
|
|
1656
1675
|
const row = props.rowProps;
|
|
1657
1676
|
const additionalItemSize = +props.size < 30 ? '12' : '18';
|
|
1658
1677
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
1659
|
-
((_a = row.dnd) === null || _a === void 0 ? void 0 : _a.srcData) && React__namespace.createElement(uuiComponents.DragHandle, { key: "dh", cx: css$
|
|
1660
|
-
((_b = row === null || row === void 0 ? void 0 : row.checkbox) === null || _b === void 0 ? void 0 : _b.isVisible) && (React__namespace.createElement(Checkbox, { key: "cb", cx: css$
|
|
1661
|
-
row.indent > 0 && (React__namespace.createElement("div", { key: "fold", className: css$
|
|
1662
|
-
|
|
1678
|
+
((_a = row.dnd) === null || _a === void 0 ? void 0 : _a.srcData) && React__namespace.createElement(uuiComponents.DragHandle, { key: "dh", cx: css$T.dragHandle }),
|
|
1679
|
+
((_b = row === null || row === void 0 ? void 0 : row.checkbox) === null || _b === void 0 ? void 0 : _b.isVisible) && (React__namespace.createElement(Checkbox, { key: "cb", cx: css$T.checkbox, tabIndex: props.tabIndex, size: additionalItemSize, 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 })),
|
|
1680
|
+
row.indent > 0 && (React__namespace.createElement("div", { key: "fold", className: css$T.indent, style: { marginLeft: (row.indent - 1) * 24 } }, row.isFoldable && (React__namespace.createElement(uuiComponents.IconContainer, { rawProps: {
|
|
1681
|
+
'aria-label': row.isFolded ? 'Unfold' : 'Fold',
|
|
1682
|
+
role: 'button',
|
|
1683
|
+
}, key: "icon", icon: ForwardRef$B, cx: [
|
|
1684
|
+
css$T.foldingArrow, css$T[`folding-arrow-${additionalItemSize}`], uuiCore.uuiMarkers.clickable, css$T.iconContainer,
|
|
1663
1685
|
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row) }))))));
|
|
1664
1686
|
}
|
|
1665
1687
|
function DataTableCell(props) {
|
|
@@ -1668,7 +1690,9 @@ function DataTableCell(props) {
|
|
|
1668
1690
|
props.addons = React__namespace.createElement(DataTableRowAddons, Object.assign({}, props));
|
|
1669
1691
|
}
|
|
1670
1692
|
props.renderPlaceholder = props.renderPlaceholder
|
|
1671
|
-
|| (() => (
|
|
1693
|
+
|| (() => (
|
|
1694
|
+
// remove `css.loadingCell` after` removing `margin: 0 3px 3px 0` from `TextPlaceholder` `loadingWord` class styles.
|
|
1695
|
+
React__namespace.createElement(Text, { key: "t", size: props.size !== '60' ? props.size : '48', cx: css$T.loadingCell },
|
|
1672
1696
|
React__namespace.createElement(TextPlaceholder, null))));
|
|
1673
1697
|
props.renderUnknown = props.renderUnknown
|
|
1674
1698
|
|| (() => (React__namespace.createElement(Text, { key: "t", size: props.size !== '60' ? props.size : '48' }, "Unknown")));
|
|
@@ -1678,67 +1702,67 @@ function DataTableCell(props) {
|
|
|
1678
1702
|
'uui-dt-vars',
|
|
1679
1703
|
'data-table-cell',
|
|
1680
1704
|
props.cx,
|
|
1681
|
-
css$
|
|
1682
|
-
css$
|
|
1683
|
-
css$
|
|
1684
|
-
props.isFirstColumn && css$
|
|
1685
|
-
props.isLastColumn && css$
|
|
1686
|
-
css$
|
|
1705
|
+
css$T.cell,
|
|
1706
|
+
css$T['size-' + (props.size || '36')],
|
|
1707
|
+
css$T[`padding-${props.padding || (isEditable && !props.rowProps.isLoading && '0') || '12'}`],
|
|
1708
|
+
props.isFirstColumn && css$T[`padding-left-${props.padding || (isEditable && !props.rowProps.isLoading && '12') || '24'}`],
|
|
1709
|
+
props.isLastColumn && css$T['padding-right-24'],
|
|
1710
|
+
css$T[`align-widgets-${props.alignActions || 'top'}`],
|
|
1687
1711
|
(props.border || isEditable) && 'uui-dt-vertical-cell-border',
|
|
1688
1712
|
];
|
|
1689
1713
|
return React__namespace.createElement(uuiComponents.DataTableCell, Object.assign({}, props));
|
|
1690
1714
|
}
|
|
1691
1715
|
|
|
1692
|
-
var _path$
|
|
1693
|
-
function _extends$
|
|
1716
|
+
var _path$z;
|
|
1717
|
+
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); }
|
|
1694
1718
|
var SvgNotificationDone24 = function SvgNotificationDone24(props, ref) {
|
|
1695
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1719
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$A({
|
|
1696
1720
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1697
1721
|
width: 24,
|
|
1698
1722
|
height: 24,
|
|
1699
1723
|
viewBox: "0 0 24 24",
|
|
1700
1724
|
ref: ref
|
|
1701
|
-
}, props), _path$
|
|
1725
|
+
}, props), _path$z || (_path$z = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1702
1726
|
fillRule: "evenodd",
|
|
1703
1727
|
d: "m9.727 16.075-4.295-4.388L4 13.149 9.727 19 22 6.463 20.568 5 9.728 16.075z",
|
|
1704
1728
|
clipRule: "evenodd"
|
|
1705
1729
|
})));
|
|
1706
1730
|
};
|
|
1707
|
-
var ForwardRef$
|
|
1731
|
+
var ForwardRef$A = /*#__PURE__*/React.forwardRef(SvgNotificationDone24);
|
|
1708
1732
|
|
|
1709
|
-
var _path$
|
|
1710
|
-
function _extends$
|
|
1733
|
+
var _path$y;
|
|
1734
|
+
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); }
|
|
1711
1735
|
var SvgNotificationDone18 = function SvgNotificationDone18(props, ref) {
|
|
1712
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1736
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$z({
|
|
1713
1737
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1714
1738
|
width: 18,
|
|
1715
1739
|
height: 18,
|
|
1716
1740
|
viewBox: "0 0 18 18",
|
|
1717
1741
|
ref: ref
|
|
1718
|
-
}, props), _path$
|
|
1742
|
+
}, props), _path$y || (_path$y = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1719
1743
|
fillRule: "evenodd",
|
|
1720
1744
|
d: "M7.136 11.91 4.034 8.776 3 9.821 7.136 14 16 5.045 14.966 4l-7.83 7.91z",
|
|
1721
1745
|
clipRule: "evenodd"
|
|
1722
1746
|
})));
|
|
1723
1747
|
};
|
|
1724
|
-
var ForwardRef$
|
|
1748
|
+
var ForwardRef$z = /*#__PURE__*/React.forwardRef(SvgNotificationDone18);
|
|
1725
1749
|
|
|
1726
|
-
var _path$
|
|
1727
|
-
function _extends$
|
|
1750
|
+
var _path$x;
|
|
1751
|
+
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); }
|
|
1728
1752
|
var SvgNotificationDone12 = function SvgNotificationDone12(props, ref) {
|
|
1729
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1753
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$y({
|
|
1730
1754
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1731
1755
|
width: 12,
|
|
1732
1756
|
height: 12,
|
|
1733
1757
|
viewBox: "0 0 12 12",
|
|
1734
1758
|
ref: ref
|
|
1735
|
-
}, props), _path$
|
|
1759
|
+
}, props), _path$x || (_path$x = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1736
1760
|
d: "M11 3.6 9.462 2 4.846 6.8 2.538 4.4 1 6l3.846 4L11 3.6z"
|
|
1737
1761
|
})));
|
|
1738
1762
|
};
|
|
1739
|
-
var ForwardRef$
|
|
1763
|
+
var ForwardRef$y = /*#__PURE__*/React.forwardRef(SvgNotificationDone12);
|
|
1740
1764
|
|
|
1741
|
-
var css$
|
|
1765
|
+
var css$S = {"render-item":"wreqOo","icon-wrapper":"IsbXkM","picker-row":"pitB9v","icon-default":"CAn8HC","icon-primary":"_4--nkQ","renderItem":"wreqOo","iconWrapper":"IsbXkM","pickerRow":"pitB9v","iconDefault":"CAn8HC","iconPrimary":"_4--nkQ"};
|
|
1742
1766
|
|
|
1743
1767
|
class DataPickerRow extends React__namespace.Component {
|
|
1744
1768
|
constructor() {
|
|
@@ -1746,60 +1770,59 @@ class DataPickerRow extends React__namespace.Component {
|
|
|
1746
1770
|
this.getIcon = (size) => {
|
|
1747
1771
|
switch (size) {
|
|
1748
1772
|
case '24':
|
|
1749
|
-
return ForwardRef$
|
|
1773
|
+
return ForwardRef$y;
|
|
1750
1774
|
case '30':
|
|
1751
|
-
return ForwardRef$
|
|
1775
|
+
return ForwardRef$z;
|
|
1752
1776
|
case '36':
|
|
1753
|
-
return ForwardRef$
|
|
1777
|
+
return ForwardRef$z;
|
|
1754
1778
|
case '42':
|
|
1755
|
-
return ForwardRef$B;
|
|
1756
|
-
default:
|
|
1757
1779
|
return ForwardRef$A;
|
|
1780
|
+
default:
|
|
1781
|
+
return ForwardRef$z;
|
|
1758
1782
|
}
|
|
1759
1783
|
};
|
|
1760
1784
|
this.column = {
|
|
1761
1785
|
key: 'name',
|
|
1762
1786
|
grow: 1,
|
|
1763
1787
|
width: 0,
|
|
1764
|
-
render: (item, rowProps) => (React__namespace.createElement("div", { key: rowProps.id, className: css$
|
|
1788
|
+
render: (item, rowProps) => (React__namespace.createElement("div", { key: rowProps.id, className: css$S.renderItem },
|
|
1765
1789
|
this.props.renderItem(item, rowProps),
|
|
1766
1790
|
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
1767
|
-
(rowProps.isChildrenSelected || rowProps.isSelected) && (React__namespace.createElement("div", { className: css$
|
|
1768
|
-
React__namespace.createElement(uuiComponents.IconContainer, { icon: this.getIcon(this.props.size), cx: rowProps.isChildrenSelected ? css$
|
|
1791
|
+
(rowProps.isChildrenSelected || rowProps.isSelected) && (React__namespace.createElement("div", { className: css$S.iconWrapper },
|
|
1792
|
+
React__namespace.createElement(uuiComponents.IconContainer, { icon: this.getIcon(this.props.size), cx: rowProps.isChildrenSelected ? css$S.iconDefault : css$S.iconPrimary, rawProps: { 'aria-label': rowProps.isChildrenSelected
|
|
1793
|
+
? 'Child is selected'
|
|
1794
|
+
: 'Selected' } }))))),
|
|
1769
1795
|
};
|
|
1770
1796
|
this.renderContent = () => {
|
|
1771
1797
|
return (React__namespace.createElement(DataTableCell, { key: "name", size: this.props.size || '36', padding: this.props.padding || '24', isFirstColumn: true, isLastColumn: false, tabIndex: -1, column: this.column, rowProps: this.props, alignActions: this.props.alignActions || 'top' }));
|
|
1772
1798
|
};
|
|
1773
1799
|
}
|
|
1774
1800
|
render() {
|
|
1775
|
-
return React__namespace.createElement(uuiComponents.DataPickerRow, Object.assign({}, this.props, { cx: [css$
|
|
1801
|
+
return React__namespace.createElement(uuiComponents.DataPickerRow, Object.assign({}, this.props, { cx: [css$S.pickerRow, this.props.cx], renderContent: this.renderContent }));
|
|
1776
1802
|
}
|
|
1777
1803
|
}
|
|
1778
1804
|
|
|
1779
|
-
var css$
|
|
1805
|
+
var css$R = {"done":"_1f5JI6","container":"lMBOdO"};
|
|
1780
1806
|
|
|
1781
1807
|
const MobileDropdownWrapper = (props) => {
|
|
1782
|
-
const
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
isVisible && React__namespace.default.createElement(DataPickerHeader, { title: props.title, close: props.close }),
|
|
1808
|
+
const isMobileView = uuiCore.isMobile();
|
|
1809
|
+
return (React__namespace.default.createElement(DropdownContainer, Object.assign({}, props, { cx: [css$R.container, props.cx], rawProps: props.rawProps, onKeyDown: props.onKeyDown, focusLock: props.focusLock, width: props.width }),
|
|
1810
|
+
isMobileView && React__namespace.default.createElement(DataPickerHeader, { title: props.title, close: props.onClose }),
|
|
1786
1811
|
props.children,
|
|
1787
|
-
|
|
1812
|
+
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$R.done, size: "48" })));
|
|
1788
1813
|
};
|
|
1789
1814
|
|
|
1790
|
-
var
|
|
1791
|
-
|
|
1792
|
-
var _path$x, _path2$1;
|
|
1793
|
-
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); }
|
|
1815
|
+
var _path$w, _path2$1;
|
|
1816
|
+
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); }
|
|
1794
1817
|
var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
1795
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1818
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$x({
|
|
1796
1819
|
width: 66,
|
|
1797
1820
|
height: 67,
|
|
1798
1821
|
viewBox: "0 0 66 67",
|
|
1799
1822
|
fill: "none",
|
|
1800
1823
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1801
1824
|
ref: ref
|
|
1802
|
-
}, props), _path$
|
|
1825
|
+
}, props), _path$w || (_path$w = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1803
1826
|
d: "M0 33.5C0 15.275 14.775.5 33 .5s33 14.775 33 33-14.775 33-33 33-33-14.775-33-33Z",
|
|
1804
1827
|
fill: "#EBEDF5"
|
|
1805
1828
|
})), _path2$1 || (_path2$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -1809,68 +1832,54 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
|
1809
1832
|
fill: "#6C6F80"
|
|
1810
1833
|
})));
|
|
1811
1834
|
};
|
|
1812
|
-
var ForwardRef$
|
|
1835
|
+
var ForwardRef$x = /*#__PURE__*/React.forwardRef(SvgSearchWithBackground);
|
|
1813
1836
|
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
return (
|
|
1831
|
-
|
|
1832
|
-
React__namespace.createElement(
|
|
1833
|
-
React__namespace.createElement(
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
this.props.renderFilter && React__namespace.createElement(FlexCell, { grow: 2 }, this.props.renderFilter(this.lens.prop('dataSourceState').prop('filter').toProps()))),
|
|
1854
|
-
React__namespace.createElement(DataPickerBody, Object.assign({}, this.getListProps(), { value: this.getDataSourceState(), onValueChange: this.handleDataSourceValueChange, search: this.lens.prop('dataSourceState').prop('search').toProps(), showSearch: false, rows: rows, renderNotFound: this.renderNotFound, editMode: "modal" })),
|
|
1855
|
-
React__namespace.createElement(ModalFooter, { padding: "24", vPadding: "24" }, this.props.renderFooter ? this.props.renderFooter(this.getFooterProps()) : this.renderFooter()))));
|
|
1856
|
-
}
|
|
1857
|
-
}
|
|
1858
|
-
class PickerModal extends React__namespace.Component {
|
|
1859
|
-
constructor() {
|
|
1860
|
-
super(...arguments);
|
|
1861
|
-
this.state = { selection: this.props.initialValue };
|
|
1862
|
-
this.lens = uuiCore.Lens.onState(this);
|
|
1863
|
-
}
|
|
1864
|
-
render() {
|
|
1865
|
-
return React__namespace.createElement(PickerModalImpl, Object.assign({}, this.props, this.lens.prop('selection').toProps(), { success: () => this.props.success(this.state.selection) }));
|
|
1866
|
-
}
|
|
1837
|
+
var css$Q = {"sub-header-wrapper":"Upn5eX","switch":"JgdYX7","no-found-modal-container":"mdYviJ","no-found-modal-container-icon":"kwBGjR","no-found-modal-container-text":"DfNAQX","subHeaderWrapper":"Upn5eX","$switch$":"JgdYX7","noFoundModalContainer":"mdYviJ","noFoundModalContainerIcon":"kwBGjR","noFoundModalContainerText":"DfNAQX"};
|
|
1838
|
+
|
|
1839
|
+
function PickerModal(props) {
|
|
1840
|
+
const { view, selection, dataSourceStateLens, showSelectedLens, dataSourceState, getDataSourceState, getName, clearSelection, getRows, getListProps, getFooterProps, isSingleSelect, handleDataSourceValueChange, } = uuiComponents.usePickerModal(props);
|
|
1841
|
+
const renderRow = (rowProps) => {
|
|
1842
|
+
return props.renderRow ? (props.renderRow(rowProps, dataSourceState)) : (React__namespace.default.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey, borderBottom: "none", padding: "24", size: "36", renderItem: (i) => React__namespace.default.createElement(Text, { size: "36" }, rowProps.isLoading ? React__namespace.default.createElement(TextPlaceholder, { wordsCount: 2 }) : getName(i)) })));
|
|
1843
|
+
};
|
|
1844
|
+
const renderFooter = () => {
|
|
1845
|
+
const hasSelection = view.getSelectedRowsCount() > 0;
|
|
1846
|
+
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1847
|
+
view.selectAll && (React__namespace.default.createElement(LinkButton, { caption: hasSelection ? i18n.pickerModal.clearAllButton : i18n.pickerModal.selectAllButton, onClick: hasSelection ? () => clearSelection() : () => view.selectAll.onValueChange(true) })),
|
|
1848
|
+
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1849
|
+
React__namespace.default.createElement(Button, { fill: "outline", color: "secondary", caption: i18n.pickerModal.cancelButton, onClick: () => props.abort() }),
|
|
1850
|
+
React__namespace.default.createElement(Button, { color: "accent", caption: i18n.pickerModal.selectButton, onClick: () => props.success(selection) })));
|
|
1851
|
+
};
|
|
1852
|
+
const renderNotFound = () => {
|
|
1853
|
+
return props.renderNotFound ? (props.renderNotFound({ search: dataSourceState.search, onClose: () => props.success(null) })) : (React__namespace.default.createElement("div", { className: css$Q.noFoundModalContainer },
|
|
1854
|
+
React__namespace.default.createElement(uuiComponents.IconContainer, { cx: css$Q.noFoundModalContainerIcon, icon: ForwardRef$x }),
|
|
1855
|
+
React__namespace.default.createElement(Text, { cx: css$Q.noFoundModalContainerText, font: "semibold", fontSize: "16", lineHeight: "24", color: "primary", size: "36" }, i18n.dataPickerBody.noRecordsMessage),
|
|
1856
|
+
React__namespace.default.createElement(Text, { cx: css$Q.noFoundModalContainerText, fontSize: "12", lineHeight: "18", font: "regular", color: "primary", size: "36" }, i18n.dataPickerBody.noRecordsSubTitle)));
|
|
1857
|
+
};
|
|
1858
|
+
const dataRows = getRows();
|
|
1859
|
+
const rows = dataRows.map((row) => renderRow(row));
|
|
1860
|
+
return (React__namespace.default.createElement(ModalBlocker, Object.assign({}, props),
|
|
1861
|
+
React__namespace.default.createElement(ModalWindow, { width: 600, height: 700 },
|
|
1862
|
+
React__namespace.default.createElement(ModalHeader, { title: props.caption || i18n.pickerModal.headerTitle, onClose: () => props.abort() }),
|
|
1863
|
+
React__namespace.default.createElement(FlexCell, { cx: css$Q.subHeaderWrapper },
|
|
1864
|
+
React__namespace.default.createElement(FlexRow, { vPadding: "24" },
|
|
1865
|
+
React__namespace.default.createElement(SearchInput, Object.assign({}, dataSourceStateLens.prop('search').toProps(), { onKeyDown: (e) => uuiComponents.handleDataSourceKeyboard({
|
|
1866
|
+
value: getDataSourceState(),
|
|
1867
|
+
onValueChange: handleDataSourceValueChange,
|
|
1868
|
+
listView: view,
|
|
1869
|
+
rows: dataRows,
|
|
1870
|
+
searchPosition: 'body',
|
|
1871
|
+
}, e), autoFocus: true, placeholder: i18n.pickerModal.searchPlaceholder }))),
|
|
1872
|
+
!isSingleSelect() && (React__namespace.default.createElement(Switch, Object.assign({ cx: css$Q.switch, size: "18" }, showSelectedLens.toProps(), { isDisabled: view.getSelectedRowsCount() < 1, label: "Show only selected" }))),
|
|
1873
|
+
props.renderFilter && React__namespace.default.createElement(FlexCell, { grow: 2 }, props.renderFilter(dataSourceStateLens.prop('filter').toProps()))),
|
|
1874
|
+
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" })),
|
|
1875
|
+
React__namespace.default.createElement(ModalFooter, { padding: "24", vPadding: "24" }, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
|
|
1867
1876
|
}
|
|
1868
1877
|
|
|
1869
|
-
var css$
|
|
1878
|
+
var css$P = {"root":"Cqz3Ry"};
|
|
1870
1879
|
|
|
1871
|
-
const AvatarStack = uuiCore.withMods(uuiComponents.AvatarStack, () => [css$
|
|
1880
|
+
const AvatarStack = uuiCore.withMods(uuiComponents.AvatarStack, () => [css$P.root]);
|
|
1872
1881
|
|
|
1873
|
-
var css$
|
|
1882
|
+
var css$O = {"root":"_8j2Pdp","size-18":"qMV7zC","size-24":"R2OFMy","size-30":"BgaLX3","size-36":"qLi8c3","size-42":"ydCAMA","size-48":"xn-v4s","size18":"qMV7zC","size24":"R2OFMy","size30":"BgaLX3","size36":"qLi8c3","size42":"ydCAMA","size48":"xn-v4s"};
|
|
1874
1883
|
|
|
1875
1884
|
const defaultSize$5 = '36';
|
|
1876
1885
|
const mapSize$1 = {
|
|
@@ -1884,8 +1893,8 @@ const mapSize$1 = {
|
|
|
1884
1893
|
function applyBadgeMods(mods) {
|
|
1885
1894
|
return [
|
|
1886
1895
|
'uui-badge',
|
|
1887
|
-
css$
|
|
1888
|
-
css$
|
|
1896
|
+
css$O.root,
|
|
1897
|
+
css$O['size-' + (mods.size || defaultSize$5)],
|
|
1889
1898
|
`fill-${mods.fill || 'solid'}`,
|
|
1890
1899
|
mods.color && `uui-color-${mods.color}`,
|
|
1891
1900
|
];
|
|
@@ -1896,7 +1905,7 @@ const Badge = uuiCore.withMods(uuiComponents.Button, applyBadgeMods, (props) =>
|
|
|
1896
1905
|
countPosition: 'left',
|
|
1897
1906
|
}));
|
|
1898
1907
|
|
|
1899
|
-
var css$
|
|
1908
|
+
var css$N = {"root":"MS24E-","size-18":"WT3Ivg","size-24":"gGgt8L","size-30":"gY40BV","size-36":"xcA7Nm","size-42":"-PGvxx","size-48":"cpmfsB","size18":"WT3Ivg","size24":"gGgt8L","size30":"gY40BV","size36":"xcA7Nm","size42":"-PGvxx","size48":"cpmfsB"};
|
|
1900
1909
|
|
|
1901
1910
|
const defaultSize$4 = '36';
|
|
1902
1911
|
const mapSize = {
|
|
@@ -1908,107 +1917,120 @@ const mapSize = {
|
|
|
1908
1917
|
18: '18',
|
|
1909
1918
|
};
|
|
1910
1919
|
function applyTagMods(mods) {
|
|
1911
|
-
return [css$
|
|
1920
|
+
return [css$N['size-' + (mods.size || defaultSize$4)], css$N.root, 'uui-color-gray', 'uui-tag'];
|
|
1912
1921
|
}
|
|
1913
1922
|
const Tag = uuiCore.withMods(uuiComponents.Button, applyTagMods, (props) => ({
|
|
1914
1923
|
dropdownIcon: systemIcons[mapSize[props.size] || defaultSize$4].foldingArrow,
|
|
1915
1924
|
clearIcon: systemIcons[mapSize[props.size] || defaultSize$4].clear,
|
|
1916
1925
|
}));
|
|
1917
1926
|
|
|
1918
|
-
var css$
|
|
1927
|
+
var css$M = {"root":"A1e7MR","spacer":"ioSBM8","mode-ghost":"NhTAvE","size-24":"QRazxp","size-30":"un047X","navigation-size-24":"LWOBKR","navigation-size-30":"k3cF4G","modeGhost":"NhTAvE","size24":"QRazxp","size30":"un047X","navigationSize24":"LWOBKR","navigationSize30":"k3cF4G"};
|
|
1919
1928
|
|
|
1920
|
-
var _path$
|
|
1921
|
-
function _extends$
|
|
1929
|
+
var _path$v;
|
|
1930
|
+
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); }
|
|
1922
1931
|
var SvgNavigationChevronLeft12 = function SvgNavigationChevronLeft12(props, ref) {
|
|
1923
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1932
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$w({
|
|
1924
1933
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1925
1934
|
width: 12,
|
|
1926
1935
|
height: 12,
|
|
1927
1936
|
viewBox: "0 0 12 12",
|
|
1928
1937
|
ref: ref
|
|
1929
|
-
}, props), _path$
|
|
1938
|
+
}, props), _path$v || (_path$v = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1930
1939
|
fillRule: "evenodd",
|
|
1931
1940
|
d: "M7.705 3.705 7 3 4 6l3 3 .705-.705L5.415 6l2.29-2.295z",
|
|
1932
1941
|
clipRule: "evenodd"
|
|
1933
1942
|
})));
|
|
1934
1943
|
};
|
|
1935
|
-
var ForwardRef$
|
|
1944
|
+
var ForwardRef$w = /*#__PURE__*/React.forwardRef(SvgNavigationChevronLeft12);
|
|
1936
1945
|
|
|
1937
|
-
var _path$
|
|
1938
|
-
function _extends$
|
|
1946
|
+
var _path$u;
|
|
1947
|
+
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); }
|
|
1939
1948
|
var SvgNavigationChevronRight12 = function SvgNavigationChevronRight12(props, ref) {
|
|
1940
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1949
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$v({
|
|
1941
1950
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1942
1951
|
width: 12,
|
|
1943
1952
|
height: 12,
|
|
1944
1953
|
viewBox: "0 0 12 12",
|
|
1945
1954
|
ref: ref
|
|
1946
|
-
}, props), _path$
|
|
1955
|
+
}, props), _path$u || (_path$u = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1947
1956
|
fillRule: "evenodd",
|
|
1948
1957
|
d: "m5 3-.705.705L6.585 6l-2.29 2.295L5 9l3-3-3-3z",
|
|
1949
1958
|
clipRule: "evenodd"
|
|
1950
1959
|
})));
|
|
1951
1960
|
};
|
|
1952
|
-
var ForwardRef$
|
|
1961
|
+
var ForwardRef$v = /*#__PURE__*/React.forwardRef(SvgNavigationChevronRight12);
|
|
1953
1962
|
|
|
1954
1963
|
function Paginator(props) {
|
|
1955
1964
|
const renderPaginator = (params) => {
|
|
1956
1965
|
var _a, _b;
|
|
1957
|
-
return (React__namespace.default.createElement("nav", Object.assign({ role: "navigation", className: css$
|
|
1958
|
-
React__namespace.default.createElement(Button, { cx: css$
|
|
1966
|
+
return (React__namespace.default.createElement("nav", Object.assign({ role: "navigation", className: cx__default.default(css$M.root, 'uui-paginator') }, params.rawProps),
|
|
1967
|
+
React__namespace.default.createElement(Button, { cx: css$M[`navigation-size-${(_a = params.size) !== null && _a !== void 0 ? _a : '30'}`], size: params.size, icon: params.size === '30' ? ForwardRef$J : ForwardRef$w, onClick: params.goToPrev, isDisabled: params.isFirst, fill: "outline", color: "secondary" }),
|
|
1959
1968
|
params.pages.map((page, index) => {
|
|
1960
1969
|
var _a, _b;
|
|
1961
1970
|
if (page.type === 'spacer') {
|
|
1962
|
-
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$
|
|
1971
|
+
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$M[`size-${(_a = params.size) !== null && _a !== void 0 ? _a : '30'}`], css$M.spacer), size: params.size, key: `${index}_spacer`, caption: "...", fill: "ghost", color: "secondary", tabIndex: -1 }));
|
|
1963
1972
|
}
|
|
1964
1973
|
else {
|
|
1965
|
-
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$
|
|
1974
|
+
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$M[`size-${(_b = params.size) !== null && _b !== void 0 ? _b : '30'}`], css$M[`mode-${!page.isActive && 'ghost'}`]), size: params.size, 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" }));
|
|
1966
1975
|
}
|
|
1967
1976
|
}),
|
|
1968
|
-
React__namespace.default.createElement(Button, { cx: css$
|
|
1977
|
+
React__namespace.default.createElement(Button, { cx: css$M[`navigation-size-${(_b = params.size) !== null && _b !== void 0 ? _b : '30'}`], size: params.size, icon: params.size === '30' ? ForwardRef$I : ForwardRef$v, onClick: params.goToNext, isDisabled: params.isLast, fill: "outline", color: "secondary" })));
|
|
1969
1978
|
};
|
|
1970
1979
|
return React__namespace.default.createElement(uuiComponents.Paginator, Object.assign({}, props, { render: renderPaginator }));
|
|
1971
1980
|
}
|
|
1972
1981
|
|
|
1973
|
-
var css$
|
|
1982
|
+
var css$L = {"root":"ad-0f4","bar":"tnbgJt","progressBar-indeterminate":"_1hGUFm","size-12":"_0qMUN9","size-18":"Ri5BiU","size-24":"abPz-b","progressBarIndeterminate":"_1hGUFm","size12":"_0qMUN9","size18":"Ri5BiU","size24":"abPz-b"};
|
|
1974
1983
|
|
|
1975
1984
|
const IndeterminateBar = React__namespace.forwardRef((props, ref) => {
|
|
1976
|
-
return (React__namespace.createElement("div", { ref: ref, className: cx__default.default(props.cx, css$
|
|
1977
|
-
React__namespace.createElement("div", { className: cx__default.default(css$
|
|
1985
|
+
return (React__namespace.createElement("div", { ref: ref, className: cx__default.default('uui-indeterminate_bar', props.cx, css$L.root, css$L[`size-${props.size || 12}`]) },
|
|
1986
|
+
React__namespace.createElement("div", { className: cx__default.default(css$L.bar) })));
|
|
1978
1987
|
});
|
|
1979
1988
|
|
|
1980
|
-
var css$
|
|
1989
|
+
var css$K = {"root":"euBBqd","striped":"_6Fl2Mx","animate-stripes":"Ixlc0M","size-12":"p3DSUZ","size-18":"yf8gLh","size-24":"Zhpq7s","animateStripes":"Ixlc0M","size12":"p3DSUZ","size18":"yf8gLh","size24":"Zhpq7s"};
|
|
1981
1990
|
|
|
1982
1991
|
const defaultSize$3 = '12';
|
|
1983
1992
|
function applyProgressBarMods(mods) {
|
|
1984
1993
|
const size = mods.size || defaultSize$3;
|
|
1985
1994
|
return [
|
|
1986
|
-
css$
|
|
1995
|
+
css$K.root,
|
|
1996
|
+
css$K[`size-${size}`],
|
|
1997
|
+
mods.striped && css$K.striped,
|
|
1987
1998
|
];
|
|
1988
1999
|
}
|
|
1989
2000
|
const ProgressBar = uuiCore.withMods(uuiComponents.ProgressBar, applyProgressBarMods, (props) => ({
|
|
1990
2001
|
hideLabel: props.hideLabel || props.striped,
|
|
1991
2002
|
}));
|
|
1992
2003
|
|
|
1993
|
-
var css$
|
|
2004
|
+
var css$J = {"root":"-UOWB4"};
|
|
1994
2005
|
|
|
1995
2006
|
const IndicatorBar = React__namespace.forwardRef((props, ref) => {
|
|
1996
2007
|
const { progress } = props;
|
|
1997
|
-
return progress || progress === 0 ? (React__namespace.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx__default.default(css$
|
|
2008
|
+
return progress || progress === 0 ? (React__namespace.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx__default.default(css$J.root, props.cx), hideLabel: true })) : (React__namespace.createElement(IndeterminateBar, { ref: ref, cx: cx__default.default(css$J.root, props.cx) }));
|
|
2009
|
+
});
|
|
2010
|
+
|
|
2011
|
+
var css$I = {"root":"dxRv9o"};
|
|
2012
|
+
|
|
2013
|
+
const Informer = React.forwardRef((props, ref) => {
|
|
2014
|
+
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
2015
|
+
css$I.root,
|
|
2016
|
+
'uui-informer',
|
|
2017
|
+
`size-${props.size || 24}`,
|
|
2018
|
+
props.color && `uui-color-${props.color}`,
|
|
2019
|
+
]) }, props.caption));
|
|
1998
2020
|
});
|
|
1999
2021
|
|
|
2000
2022
|
const MAX_ITEMS = 100;
|
|
2001
2023
|
const getMaxItems = (maxItems) => maxItems || maxItems === 0 ? maxItems : MAX_ITEMS;
|
|
2002
2024
|
|
|
2003
|
-
var css$
|
|
2025
|
+
var css$H = {"root":"F5hGJf","mode-form":"V5eEqK","mode-cell":"zELSkF","mode-inline":"IGw6sX","size-24":"GKVBns","size-30":"pc2fqF","size-36":"N-tzNJ","size-42":"r9535-","size-48":"JPC2so","modeForm":"V5eEqK","modeCell":"zELSkF","modeInline":"IGw6sX","size24":"GKVBns","size30":"pc2fqF","size36":"N-tzNJ","size42":"r9535-","size48":"JPC2so"};
|
|
2004
2026
|
|
|
2005
2027
|
const defaultSize$2 = '36';
|
|
2006
2028
|
const defaultMode$1 = exports.EditMode.FORM;
|
|
2007
2029
|
function applyPickerTogglerMods(mods) {
|
|
2008
2030
|
return [
|
|
2009
|
-
css$
|
|
2010
|
-
css$
|
|
2011
|
-
css$
|
|
2031
|
+
css$H.root,
|
|
2032
|
+
css$H['size-' + (mods.size || defaultSize$2)],
|
|
2033
|
+
css$H['mode-' + (mods.mode || defaultMode$1)],
|
|
2012
2034
|
];
|
|
2013
2035
|
}
|
|
2014
2036
|
function PickerTogglerComponent(props, ref) {
|
|
@@ -2050,9 +2072,9 @@ function PickerTogglerComponent(props, ref) {
|
|
|
2050
2072
|
}
|
|
2051
2073
|
const PickerToggler = React__namespace.forwardRef(PickerTogglerComponent);
|
|
2052
2074
|
|
|
2053
|
-
var css$
|
|
2075
|
+
var css$G = {"root":"_4GLlvh","multiline":"e3jyq6","vertical-padding-24":"SSL5TO","vertical-padding-30":"vqVKRN","vertical-padding-36":"M34pb-","vertical-padding-42":"NcUTrY","vertical-padding-48":"tgBzru","text":"R7W1kt","verticalPadding24":"SSL5TO","verticalPadding30":"vqVKRN","verticalPadding36":"M34pb-","verticalPadding42":"NcUTrY","verticalPadding48":"tgBzru"};
|
|
2054
2076
|
|
|
2055
|
-
var css$
|
|
2077
|
+
var css$F = {"highlighted-text":"lab3ga","highlightedText":"lab3ga"};
|
|
2056
2078
|
|
|
2057
2079
|
const mergeHighlightRanges = (ranges) => {
|
|
2058
2080
|
const mergedRanges = [];
|
|
@@ -2106,7 +2128,7 @@ const getHighlightRanges = (str, search) => {
|
|
|
2106
2128
|
};
|
|
2107
2129
|
const getDecoratedText = (str, ranges) => ranges.map((range, index) => {
|
|
2108
2130
|
const rangeStr = str.substring(range.from, range.to);
|
|
2109
|
-
return (React__namespace.default.createElement("span", Object.assign({ key: `${rangeStr}-${index}` }, (range.isHighlighted ? { className: css$
|
|
2131
|
+
return (React__namespace.default.createElement("span", Object.assign({ key: `${rangeStr}-${index}` }, (range.isHighlighted ? { className: css$F.highlightedText } : {})), rangeStr));
|
|
2110
2132
|
});
|
|
2111
2133
|
const getHighlightedSearchMatches = (str, search) => {
|
|
2112
2134
|
if (!search || !str) {
|
|
@@ -2129,155 +2151,142 @@ class PickerItem extends React__namespace.Component {
|
|
|
2129
2151
|
}
|
|
2130
2152
|
render() {
|
|
2131
2153
|
var _a;
|
|
2132
|
-
const { size, avatarUrl, isLoading, isDisabled, icon, highlightSearchMatches, } = this.props;
|
|
2154
|
+
const { size, avatarUrl, isLoading, isDisabled, icon, highlightSearchMatches, cx, } = this.props;
|
|
2133
2155
|
const itemSize = size && size !== 'none' ? size : defaultSize$1;
|
|
2134
2156
|
const isMultiline = !!(this.props.title && this.props.subtitle);
|
|
2135
2157
|
const { search } = (_a = this.props.dataSourceState) !== null && _a !== void 0 ? _a : {};
|
|
2136
2158
|
const title = highlightSearchMatches ? getHighlightedSearchMatches(this.props.title, search) : this.props.title;
|
|
2137
2159
|
const subtitle = highlightSearchMatches ? getHighlightedSearchMatches(this.props.subtitle, search) : this.props.subtitle;
|
|
2138
|
-
return (React__namespace.createElement(FlexCell, { width: "auto", cx: css$
|
|
2139
|
-
React__namespace.createElement(FlexRow, { size: itemSize, cx: isMultiline && css$
|
|
2160
|
+
return (React__namespace.createElement(FlexCell, { width: "auto", cx: [css$G.root, cx] },
|
|
2161
|
+
React__namespace.createElement(FlexRow, { size: itemSize, cx: isMultiline && [css$G.multiline, css$G[`vertical-padding-${itemSize}`]], spacing: "12" },
|
|
2140
2162
|
avatarUrl && React__namespace.createElement(uuiComponents.Avatar, { isLoading: isLoading, img: avatarUrl, size: this.getAvatarSize(itemSize, isMultiline).toString() }),
|
|
2141
2163
|
icon && React__namespace.createElement(uuiComponents.IconContainer, { icon: icon }),
|
|
2142
2164
|
React__namespace.createElement(FlexCell, { width: "auto" },
|
|
2143
|
-
title && (React__namespace.createElement(Text, { size: itemSize, cx: css$
|
|
2144
|
-
subtitle && (React__namespace.createElement(Text, { size: itemSize, color: isDisabled ? 'disabled' : 'secondary', cx: css$
|
|
2165
|
+
title && (React__namespace.createElement(Text, { size: itemSize, cx: css$G.text, color: isDisabled ? 'disabled' : 'primary' }, isLoading ? React__namespace.createElement(TextPlaceholder, { wordsCount: 2 }) : title)),
|
|
2166
|
+
subtitle && (React__namespace.createElement(Text, { size: itemSize, color: isDisabled ? 'disabled' : 'secondary', cx: css$G.text }, isLoading ? React__namespace.createElement(TextPlaceholder, { wordsCount: 2 }) : subtitle))))));
|
|
2145
2167
|
}
|
|
2146
2168
|
}
|
|
2147
2169
|
PickerItem.defaultProps = {
|
|
2148
2170
|
highlightSearchMatches: true,
|
|
2149
2171
|
};
|
|
2150
2172
|
|
|
2151
|
-
var css$
|
|
2173
|
+
var css$E = {"root":"gIgYz4","panel":"TOIMEd","footer-wrapper":"SwI3Ho","footer-size-24":"_9vxEUn","footer-size-30":"_2hIbhR","footer-size-36":"JAprH4","footer-size-42":"U7jDmC","footer-size-48":"Gqr4HA","footerWrapper":"SwI3Ho","footerSize24":"_9vxEUn","footerSize30":"_2hIbhR","footerSize36":"JAprH4","footerSize42":"U7jDmC","footerSize48":"Gqr4HA"};
|
|
2152
2174
|
|
|
2153
2175
|
const pickerHeight$1 = 300;
|
|
2154
|
-
const pickerWidth
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
};
|
|
2162
|
-
this.renderRow = (rowProps, dataSourceState) => {
|
|
2163
|
-
return this.props.renderRow ? (this.props.renderRow(rowProps, dataSourceState)) : (React__namespace.default.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey, borderBottom: "none", size: this.getRowSize(), padding: this.props.editMode === 'modal' ? '24' : '12', renderItem: (item, itemProps) => this.renderItem(item, itemProps, dataSourceState) })));
|
|
2164
|
-
};
|
|
2165
|
-
}
|
|
2166
|
-
toggleModalOpening() {
|
|
2167
|
-
const _a = this.props, { renderFooter, rawProps } = _a, restProps = __rest(_a, ["renderFooter", "rawProps"]);
|
|
2168
|
-
this.context.uuiModals
|
|
2169
|
-
.show((props) => (React__namespace.default.createElement(PickerModal, Object.assign({}, restProps, { rawProps: rawProps === null || rawProps === void 0 ? void 0 : rawProps.body }, props, { caption: this.getPlaceholder(), initialValue: this.props.value, renderRow: this.renderRow, selectionMode: this.props.selectionMode, valueType: this.props.valueType }))))
|
|
2176
|
+
const pickerWidth = 360;
|
|
2177
|
+
function PickerInput(_a) {
|
|
2178
|
+
var { highlightSearchMatches = true } = _a, props = __rest(_a, ["highlightSearchMatches"]);
|
|
2179
|
+
const toggleModalOpening = () => {
|
|
2180
|
+
const { renderFooter, rawProps } = props, restProps = __rest(props, ["renderFooter", "rawProps"]);
|
|
2181
|
+
context.uuiModals
|
|
2182
|
+
.show((modalProps) => (React__namespace.default.createElement(PickerModal, Object.assign({}, restProps, { rawProps: rawProps === null || rawProps === void 0 ? void 0 : rawProps.body }, modalProps, { caption: getPlaceholder(), initialValue: props.value, renderRow: renderRow, selectionMode: props.selectionMode, valueType: props.valueType }))))
|
|
2170
2183
|
.then((newSelection) => {
|
|
2171
|
-
|
|
2172
|
-
this.returnFocusToInput();
|
|
2184
|
+
handleSelectionValueChange(newSelection);
|
|
2173
2185
|
})
|
|
2174
|
-
.catch(() => {
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2186
|
+
.catch(() => { });
|
|
2187
|
+
};
|
|
2188
|
+
const { context, popperModifiers, getName, getPlaceholder, handleSelectionValueChange, getTogglerProps, getRows, handleTogglerSearchChange, toggleBodyOpening, dataSourceState, getFooterProps, getPickerBodyProps, getListProps, shouldShowBody, getSearchPosition, } = uuiComponents.usePickerInput(Object.assign(Object.assign({}, props), { toggleModalOpening }));
|
|
2189
|
+
const getTogglerMods = () => {
|
|
2190
|
+
return {
|
|
2191
|
+
size: props.size,
|
|
2192
|
+
mode: props.mode ? props.mode : exports.EditMode.FORM,
|
|
2193
|
+
};
|
|
2194
|
+
};
|
|
2195
|
+
const renderTarget = (targetProps) => {
|
|
2196
|
+
const renderTargetFn = props.renderToggler || ((props) => React__namespace.default.createElement(PickerToggler, Object.assign({}, props)));
|
|
2197
|
+
return (React__namespace.default.createElement(uuiCore.IEditableDebouncer, { value: targetProps.value, onValueChange: handleTogglerSearchChange, debounceDelay: props.searchDebounceDelay, render: (editableProps) => renderTargetFn(Object.assign(Object.assign(Object.assign({}, getTogglerMods()), targetProps), editableProps)) }));
|
|
2198
|
+
};
|
|
2199
|
+
const renderFooter = () => {
|
|
2200
|
+
const footerProps = getFooterProps();
|
|
2201
|
+
return props.renderFooter ? props.renderFooter(footerProps) : React__namespace.default.createElement(DataPickerFooter, Object.assign({}, footerProps, { size: props.size }));
|
|
2202
|
+
};
|
|
2203
|
+
const getRowSize = () => {
|
|
2179
2204
|
if (uuiCore.isMobile()) {
|
|
2180
2205
|
return '48';
|
|
2181
2206
|
}
|
|
2182
|
-
return
|
|
2183
|
-
}
|
|
2184
|
-
|
|
2185
|
-
return {
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
};
|
|
2189
|
-
}
|
|
2190
|
-
|
|
2191
|
-
const
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
} },
|
|
2209
|
-
React__namespace.default.createElement(DataPickerBody, Object.assign({}, props, { rows: renderedDataRows, maxHeight: maxHeight, searchSize: this.props.size, editMode: "dropdown", selectionMode: this.props.selectionMode, renderNotFound: this.props.renderNotFound
|
|
2210
|
-
? () => this.props.renderNotFound({
|
|
2211
|
-
search: this.state.dataSourceState.search,
|
|
2212
|
-
onClose: () => this.toggleBodyOpening(false),
|
|
2213
|
-
})
|
|
2214
|
-
: undefined })),
|
|
2215
|
-
this.renderFooter())));
|
|
2216
|
-
}
|
|
2207
|
+
return props.editMode === 'modal' ? '36' : props.size;
|
|
2208
|
+
};
|
|
2209
|
+
const renderItem = (item, rowProps, dsState) => {
|
|
2210
|
+
return (React__namespace.default.createElement(PickerItem, Object.assign({ title: getName(item), size: getRowSize(), dataSourceState: dsState, highlightSearchMatches: highlightSearchMatches }, rowProps)));
|
|
2211
|
+
};
|
|
2212
|
+
const renderRow = (rowProps, dsState) => {
|
|
2213
|
+
return props.renderRow ? (props.renderRow(rowProps, dsState)) : (React__namespace.default.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey, borderBottom: "none", size: getRowSize(), padding: props.editMode === 'modal' ? '24' : '12', renderItem: (item, itemProps) => renderItem(item, itemProps, dsState) })));
|
|
2214
|
+
};
|
|
2215
|
+
const renderBody = (bodyProps, rows) => {
|
|
2216
|
+
const renderedDataRows = rows.map((row) => renderRow(row, dataSourceState));
|
|
2217
|
+
const bodyHeight = uuiCore.isMobile() ? document.documentElement.clientHeight : props.dropdownHeight || pickerHeight$1;
|
|
2218
|
+
const minBodyWidth = props.minBodyWidth || pickerWidth;
|
|
2219
|
+
return (React__namespace.default.createElement(MobileDropdownWrapper, { title: props.entityName, onClose: () => toggleBodyOpening(false), cx: [css$E.panel, css$E.root, props.bodyCx], onKeyDown: bodyProps.onKeyDown, width: bodyProps.togglerWidth > minBodyWidth ? bodyProps.togglerWidth : minBodyWidth, focusLock: getSearchPosition() === 'body' },
|
|
2220
|
+
React__namespace.default.createElement(DataPickerBody, Object.assign({}, bodyProps, { rows: renderedDataRows, maxHeight: bodyHeight, searchSize: props.size, editMode: "dropdown", selectionMode: props.selectionMode, renderNotFound: props.renderNotFound
|
|
2221
|
+
? () => props.renderNotFound({
|
|
2222
|
+
search: dataSourceState.search,
|
|
2223
|
+
onClose: () => toggleBodyOpening(false),
|
|
2224
|
+
})
|
|
2225
|
+
: undefined })),
|
|
2226
|
+
renderFooter()));
|
|
2227
|
+
};
|
|
2228
|
+
const rows = getRows();
|
|
2229
|
+
return (React__namespace.default.createElement(Dropdown, { renderTarget: (dropdownProps) => {
|
|
2230
|
+
const targetProps = getTogglerProps(rows);
|
|
2231
|
+
return renderTarget(Object.assign(Object.assign({}, dropdownProps), targetProps));
|
|
2232
|
+
}, renderBody: (bodyProps) => renderBody(Object.assign(Object.assign(Object.assign({}, bodyProps), getPickerBodyProps(rows)), getListProps()), rows), value: shouldShowBody(), onValueChange: !props.isDisabled && toggleBodyOpening, placement: props.dropdownPlacement, modifiers: popperModifiers, closeBodyOnTogglerHidden: !uuiCore.isMobile(), portalTarget: props.portalTarget }));
|
|
2217
2233
|
}
|
|
2218
2234
|
|
|
2219
|
-
var css$
|
|
2235
|
+
var css$D = {"row":"JzCThO"};
|
|
2220
2236
|
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
}
|
|
2227
|
-
else {
|
|
2228
|
-
label = this.props.getName(this.props.value);
|
|
2229
|
-
}
|
|
2230
|
-
let component;
|
|
2231
|
-
if (this.props.checkbox) {
|
|
2232
|
-
component = (React__namespace.default.createElement(Checkbox, Object.assign({}, this.props.checkbox, { isDisabled: this.props.isLoading || this.props.checkbox.isDisabled || this.props.isDisabled, label: label, value: this.props.isChecked, onValueChange: () => this.props.onCheck(this.props) })));
|
|
2233
|
-
}
|
|
2234
|
-
else {
|
|
2235
|
-
component = (React__namespace.default.createElement(RadioInput, { label: label, value: this.props.isSelected, isDisabled: this.props.isLoading || !this.props.isSelectable || this.props.isDisabled, onValueChange: () => this.props.onSelect(this.props) }));
|
|
2236
|
-
}
|
|
2237
|
-
return React__namespace.default.createElement("div", { className: css$B.row }, component);
|
|
2237
|
+
function PickerListItem(props) {
|
|
2238
|
+
var _a;
|
|
2239
|
+
let label;
|
|
2240
|
+
if (props.isLoading) {
|
|
2241
|
+
label = React__namespace.default.createElement(TextPlaceholder, { wordsCount: 2 });
|
|
2238
2242
|
}
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
class PickerList extends uuiComponents.PickerListBase {
|
|
2242
|
-
constructor() {
|
|
2243
|
-
super(...arguments);
|
|
2244
|
-
this.sessionStartTime = new Date().getTime();
|
|
2245
|
-
this.renderRow = (row) => {
|
|
2246
|
-
return React__namespace.default.createElement(PickerListItem, Object.assign({ getName: (item) => this.getName(item) }, row, { key: row.rowKey }));
|
|
2247
|
-
};
|
|
2248
|
-
this.handleShowPicker = () => {
|
|
2249
|
-
this.context.uuiModals
|
|
2250
|
-
.show((props) => (React__namespace.default.createElement(PickerModal, Object.assign({}, props, this.props, { caption: this.props.placeholder || `Please select ${this.getEntityName() ? this.getEntityName() : ''}`, initialValue: this.props.value, selectionMode: this.props.selectionMode, valueType: this.props.valueType }))))
|
|
2251
|
-
.then((value) => {
|
|
2252
|
-
this.appendLastSelected([...this.getSelectedIdsArray(value)]);
|
|
2253
|
-
this.props.onValueChange(value);
|
|
2254
|
-
});
|
|
2255
|
-
};
|
|
2256
|
-
this.defaultRenderToggler = (props) => React__namespace.default.createElement(LinkButton, Object.assign({ caption: "Show all" }, props));
|
|
2243
|
+
else {
|
|
2244
|
+
label = props.getName(props.value);
|
|
2257
2245
|
}
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
const selectedRows = view.getSelectedRows();
|
|
2262
|
-
const rows = this.buildRowsList();
|
|
2263
|
-
const showPicker = viewProps.totalCount == null || viewProps.totalCount > this.getMaxDefaultItems();
|
|
2264
|
-
const renderToggler = this.props.renderModalToggler || this.defaultRenderToggler;
|
|
2265
|
-
const renderRow = this.props.renderRow || this.renderRow;
|
|
2266
|
-
return (React__namespace.default.createElement("div", null,
|
|
2267
|
-
!rows.length
|
|
2268
|
-
&& (this.props.noOptionsMessage || (React__namespace.default.createElement(Text, { color: "secondary", size: this.props.size }, "No options available"))),
|
|
2269
|
-
rows.map((row) => renderRow(Object.assign(Object.assign({}, row), { isDisabled: this.props.isDisabled }), this.state.dataSourceState)),
|
|
2270
|
-
showPicker
|
|
2271
|
-
&& renderToggler({
|
|
2272
|
-
onClick: this.handleShowPicker,
|
|
2273
|
-
caption: this.getModalTogglerCaption(viewProps.totalCount, view.getSelectedRowsCount()),
|
|
2274
|
-
isDisabled: this.props.isDisabled,
|
|
2275
|
-
}, selectedRows)));
|
|
2246
|
+
let component;
|
|
2247
|
+
if (props.checkbox) {
|
|
2248
|
+
component = (React__namespace.default.createElement(Checkbox, Object.assign({}, props.checkbox, { isDisabled: props.isLoading || props.checkbox.isDisabled || props.isDisabled, label: label, value: props.isChecked, onValueChange: () => props.onCheck(props) })));
|
|
2276
2249
|
}
|
|
2250
|
+
else {
|
|
2251
|
+
component = (React__namespace.default.createElement(RadioInput, { label: label, value: props.isSelected, isDisabled: props.isLoading || !props.isSelectable || props.isDisabled, onValueChange: () => props.onSelect(props) }));
|
|
2252
|
+
}
|
|
2253
|
+
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$D.row }), component));
|
|
2254
|
+
}
|
|
2255
|
+
|
|
2256
|
+
function PickerList(props) {
|
|
2257
|
+
const { context, view, getName, getEntityName, appendLastSelected, getSelectedIdsArray, buildRowsList, getMaxDefaultItems, dataSourceState, getModalTogglerCaption, } = uuiComponents.usePickerList(props);
|
|
2258
|
+
const defaultRenderRow = (row) => {
|
|
2259
|
+
return React__namespace.default.createElement(PickerListItem, Object.assign({ getName: (item) => getName(item) }, row, { key: row.rowKey }));
|
|
2260
|
+
};
|
|
2261
|
+
const handleShowPicker = () => {
|
|
2262
|
+
context.uuiModals
|
|
2263
|
+
.show((modalProps) => (React__namespace.default.createElement(PickerModal, Object.assign({}, modalProps, props, { caption: props.placeholder || `Please select ${getEntityName() ? getEntityName() : ''}`, initialValue: props.value, selectionMode: props.selectionMode, valueType: props.valueType }))))
|
|
2264
|
+
.then((value) => {
|
|
2265
|
+
appendLastSelected([...getSelectedIdsArray(value)]);
|
|
2266
|
+
props.onValueChange(value);
|
|
2267
|
+
})
|
|
2268
|
+
.catch(() => { });
|
|
2269
|
+
};
|
|
2270
|
+
const defaultRenderToggler = (props) => React__namespace.default.createElement(LinkButton, Object.assign({ caption: "Show all" }, props));
|
|
2271
|
+
const viewProps = view.getListProps();
|
|
2272
|
+
const selectedRows = view.getSelectedRows();
|
|
2273
|
+
const rows = buildRowsList();
|
|
2274
|
+
const showPicker = viewProps.totalCount == null || viewProps.totalCount > getMaxDefaultItems();
|
|
2275
|
+
const renderToggler = props.renderModalToggler || defaultRenderToggler;
|
|
2276
|
+
const renderRow = props.renderRow || defaultRenderRow;
|
|
2277
|
+
return (React__namespace.default.createElement("div", null,
|
|
2278
|
+
!rows.length
|
|
2279
|
+
&& (props.noOptionsMessage || (React__namespace.default.createElement(Text, { color: "secondary", size: props.size }, "No options available"))),
|
|
2280
|
+
rows.map((row) => renderRow(Object.assign(Object.assign({}, row), { isDisabled: props.isDisabled }), dataSourceState)),
|
|
2281
|
+
showPicker
|
|
2282
|
+
&& renderToggler({
|
|
2283
|
+
onClick: handleShowPicker,
|
|
2284
|
+
caption: getModalTogglerCaption(viewProps.totalCount, view.getSelectedRowsCount()),
|
|
2285
|
+
isDisabled: props.isDisabled,
|
|
2286
|
+
}, selectedRows)));
|
|
2277
2287
|
}
|
|
2278
|
-
PickerList.contextType = uuiCore.UuiContext;
|
|
2279
2288
|
|
|
2280
|
-
var css$
|
|
2289
|
+
var css$C = {"root":"g6tAWY","title-wrapper":"-edJIm","title":"mfJCw2","text-wrapper":"Pk5ore","selection":"ovY5oj","postfix":"_0ve-Av","selected":"_6aC-2l","titleWrapper":"-edJIm","textWrapper":"Pk5ore"};
|
|
2281
2290
|
|
|
2282
2291
|
const defaultSize = '36';
|
|
2283
2292
|
const FilterPanelItemToggler = React__namespace.forwardRef((props, ref) => {
|
|
@@ -2302,64 +2311,51 @@ const FilterPanelItemToggler = React__namespace.forwardRef((props, ref) => {
|
|
|
2302
2311
|
};
|
|
2303
2312
|
const getTitle = props.predicateName ? `${props.title} ${props.predicateName}` : `${props.title}${props.selection ? ':' : ''}`;
|
|
2304
2313
|
const getSelectionText = () => props.selection.map((i, index) => (React__namespace.createElement(React__namespace.Fragment, { key: `${i}${index}` },
|
|
2305
|
-
React__namespace.createElement(Text, { color: "brand", size: props.size, cx: css$
|
|
2314
|
+
React__namespace.createElement(Text, { color: "brand", size: props.size, cx: css$C.selection }, i),
|
|
2306
2315
|
(props.postfix || index !== props.selection.length - 1) && React__namespace.createElement("span", null, ",\u00A0"))));
|
|
2307
2316
|
return (React__namespace.createElement(uuiComponents.FlexRow, Object.assign({}, props, { rawProps: {
|
|
2308
2317
|
style: { maxWidth: `${props.maxWidth ? props.maxWidth + 'px' : 'auto'}` },
|
|
2309
2318
|
role: 'button',
|
|
2310
2319
|
tabIndex: props.isDisabled ? -1 : 0,
|
|
2311
2320
|
onKeyDown: onKeyDownHandler,
|
|
2312
|
-
}, cx: cx__default.default(css$
|
|
2313
|
-
React__namespace.createElement(uuiComponents.FlexRow, { cx: css$
|
|
2314
|
-
React__namespace.createElement(Text, { size: props.size, cx: css$
|
|
2315
|
-
props.selection && (React__namespace.createElement("div", { className: css$
|
|
2321
|
+
}, cx: cx__default.default(css$C.root, uuiCore.uuiElement.inputBox, uuiCore.uuiMarkers.clickable, props.isOpen && uuiCore.uuiMod.opened, ['size-' + (props.size || defaultSize)], props.cx), onClick: togglerPickerOpened, ref: ref }),
|
|
2322
|
+
React__namespace.createElement(uuiComponents.FlexRow, { cx: css$C.titleWrapper },
|
|
2323
|
+
React__namespace.createElement(Text, { size: props.size, cx: css$C.title }, getTitle),
|
|
2324
|
+
props.selection && (React__namespace.createElement("div", { className: css$C.textWrapper },
|
|
2316
2325
|
getSelectionText(),
|
|
2317
|
-
props.postfix && (React__namespace.createElement(Text, { color: "brand", size: props.size, cx: css$
|
|
2326
|
+
props.postfix && (React__namespace.createElement(Text, { color: "brand", size: props.size, cx: css$C.postfix }, props.postfix))))),
|
|
2318
2327
|
!props.isDisabled && React__namespace.createElement(uuiComponents.IconContainer, { icon: systemIcons[props.size || defaultSize].foldingArrow, flipY: props.isOpen, cx: "uui-icon-dropdown" })));
|
|
2319
2328
|
});
|
|
2320
2329
|
|
|
2321
2330
|
const pickerHeight = 300;
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
return
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
}
|
|
2350
|
-
renderBody(props, rows) {
|
|
2351
|
-
const renderedDataRows = rows.map((props) => this.renderRow(props));
|
|
2352
|
-
const maxHeight = uuiCore.isMobile() ? document.documentElement.clientHeight : this.props.dropdownHeight || pickerHeight;
|
|
2353
|
-
const minBodyWidth = uuiCore.isMobile() ? document.documentElement.clientWidth : this.props.minBodyWidth || pickerWidth;
|
|
2354
|
-
return (React__namespace.createElement(Panel, { style: { width: minBodyWidth }, rawProps: { tabIndex: -1 }, cx: [uuiCore.uuiMarkers.lockFocus] },
|
|
2355
|
-
React__namespace.createElement(DataPickerBody, Object.assign({}, props, { selectionMode: this.props.selectionMode, rows: renderedDataRows, maxHeight: maxHeight, searchSize: "36", editMode: "dropdown" })),
|
|
2356
|
-
this.renderFooter()));
|
|
2357
|
-
}
|
|
2358
|
-
render() {
|
|
2359
|
-
var _a;
|
|
2360
|
-
const rows = this.getRows();
|
|
2361
|
-
return this.renderBody(Object.assign(Object.assign(Object.assign({}, this.getPickerBodyProps(rows)), this.getListProps()), { showSearch: (_a = this.props.showSearch) !== null && _a !== void 0 ? _a : true }), rows);
|
|
2362
|
-
}
|
|
2331
|
+
function FilterPickerBody(props) {
|
|
2332
|
+
const shouldShowBody = () => props.isOpen;
|
|
2333
|
+
const { getName, isSingleSelect, getRows, dataSourceState, getFooterProps, getPickerBodyProps, getListProps, handleDataSourceValueChange, } = uuiComponents.usePickerInput(Object.assign(Object.assign({}, props), { shouldShowBody }));
|
|
2334
|
+
const renderItem = (item, rowProps) => {
|
|
2335
|
+
return React__namespace.createElement(PickerItem, Object.assign({ title: getName(item), size: "36" }, rowProps));
|
|
2336
|
+
};
|
|
2337
|
+
const onSelect = (row) => {
|
|
2338
|
+
props.onClose();
|
|
2339
|
+
handleDataSourceValueChange(Object.assign(Object.assign({}, dataSourceState), { search: '', selectedId: row.id }));
|
|
2340
|
+
};
|
|
2341
|
+
const renderRow = (rowProps) => {
|
|
2342
|
+
if (rowProps.isSelectable && isSingleSelect() && props.editMode !== 'modal') {
|
|
2343
|
+
rowProps.onSelect = onSelect;
|
|
2344
|
+
}
|
|
2345
|
+
return props.renderRow ? (props.renderRow(rowProps, dataSourceState)) : (React__namespace.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey, borderBottom: "none", size: "36", padding: "12", renderItem: renderItem })));
|
|
2346
|
+
};
|
|
2347
|
+
const renderFooter = () => {
|
|
2348
|
+
return React__namespace.createElement(DataPickerFooter, Object.assign({}, getFooterProps(), { size: "36" }));
|
|
2349
|
+
};
|
|
2350
|
+
const renderBody = (bodyProps, rows) => {
|
|
2351
|
+
const renderedDataRows = rows.map((props) => renderRow(props));
|
|
2352
|
+
const maxHeight = uuiCore.isMobile() ? document.documentElement.clientHeight : props.dropdownHeight || pickerHeight;
|
|
2353
|
+
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
2354
|
+
React__namespace.createElement(DataPickerBody, Object.assign({}, bodyProps, { selectionMode: props.selectionMode, rows: renderedDataRows, maxHeight: maxHeight, searchSize: "36", editMode: "dropdown", showSearch: true })),
|
|
2355
|
+
renderFooter()));
|
|
2356
|
+
};
|
|
2357
|
+
const rows = getRows();
|
|
2358
|
+
return renderBody(Object.assign(Object.assign({}, getPickerBodyProps(rows)), getListProps()), rows);
|
|
2363
2359
|
}
|
|
2364
2360
|
|
|
2365
2361
|
class FilterDatePickerBody extends uuiComponents.BaseDatePicker {
|
|
@@ -2394,7 +2390,7 @@ class FilterDatePickerBody extends uuiComponents.BaseDatePicker {
|
|
|
2394
2390
|
}
|
|
2395
2391
|
}
|
|
2396
2392
|
|
|
2397
|
-
var css$
|
|
2393
|
+
var css$B = {"date-input":"SlwlbE","size-24":"r1WHjP","size-30":"K4VED0","size-36":"KiyeGh","size-42":"N1ESEP","size-48":"z8YGjp","date-input-group":"sdetab","separator":"eTnvAg","mode-form":"rcbUqG","mode-cell":"_4-nrq9","dateInput":"SlwlbE","size24":"r1WHjP","size30":"K4VED0","size36":"KiyeGh","size42":"N1ESEP","size48":"z8YGjp","dateInputGroup":"sdetab","modeForm":"rcbUqG","modeCell":"_4-nrq9"};
|
|
2398
2394
|
|
|
2399
2395
|
class FilterRangeDatePickerBody extends uuiComponents.BaseRangeDatePicker {
|
|
2400
2396
|
constructor() {
|
|
@@ -2414,10 +2410,10 @@ class FilterRangeDatePickerBody extends uuiComponents.BaseRangeDatePicker {
|
|
|
2414
2410
|
React__namespace.createElement(RangeDatePickerBody, { value: this.getValue(), onValueChange: this.onRangeChange, filter: this.props.filter, focusPart: this.state.inFocus, changeIsOpen: this.changeIsOpen, presets: this.props.presets })),
|
|
2415
2411
|
React__namespace.createElement(FlexCell, { alignSelf: "stretch" },
|
|
2416
2412
|
React__namespace.createElement(FlexRow, { padding: "24", vPadding: "12" },
|
|
2417
|
-
React__namespace.createElement("div", { className: cx__default.default(css$
|
|
2418
|
-
React__namespace.createElement(TextInput, { icon: systemIcons['30'].calendar, cx: cx__default.default(css$
|
|
2419
|
-
React__namespace.createElement("div", { className: css$
|
|
2420
|
-
React__namespace.createElement(TextInput, { cx: cx__default.default(css$
|
|
2413
|
+
React__namespace.createElement("div", { className: cx__default.default(css$B.dateInputGroup, this.state.inFocus && uuiCore.uuiMod.focus) },
|
|
2414
|
+
React__namespace.createElement(TextInput, { icon: systemIcons['30'].calendar, cx: cx__default.default(css$B.dateInput, css$B['size-30'], this.state.inFocus === 'from' && uuiCore.uuiMod.focus), size: "30", placeholder: i18n.rangeDatePicker.pickerPlaceholderFrom, value: this.state.inputValue.from, onValueChange: this.getChangeHandler('from'), onFocus: (event) => this.handleFocus(event, 'from'), onBlur: (event) => this.handleBlur(event, 'from') }),
|
|
2415
|
+
React__namespace.createElement("div", { className: css$B.separator }),
|
|
2416
|
+
React__namespace.createElement(TextInput, { cx: cx__default.default(css$B.dateInput, css$B['size-30'], this.state.inFocus === 'to' && uuiCore.uuiMod.focus), placeholder: i18n.rangeDatePicker.pickerPlaceholderTo, size: "30", value: this.state.inputValue.to, onCancel: this.state.inputValue.from && this.state.inputValue.to && this.handleCancel, onValueChange: this.getChangeHandler('to'), onFocus: (event) => this.handleFocus(event, 'to'), onBlur: (event) => this.handleBlur(event, 'to') })),
|
|
2421
2417
|
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
2422
2418
|
React__namespace.createElement(LinkButton, { isDisabled: !this.state.inputValue.from && !this.state.inputValue.to, caption: i18n.pickerModal.clearAllButton, onClick: this.handleCancel })))));
|
|
2423
2419
|
}
|
|
@@ -2426,7 +2422,7 @@ class FilterRangeDatePickerBody extends uuiComponents.BaseRangeDatePicker {
|
|
|
2426
2422
|
}
|
|
2427
2423
|
}
|
|
2428
2424
|
|
|
2429
|
-
var css$
|
|
2425
|
+
var css$A = {"container":"eb-CfJ"};
|
|
2430
2426
|
|
|
2431
2427
|
function FilterNumericBody(props) {
|
|
2432
2428
|
var _a, _b;
|
|
@@ -2470,7 +2466,7 @@ function FilterNumericBody(props) {
|
|
|
2470
2466
|
if (isInRangePredicate) {
|
|
2471
2467
|
const value = props.value;
|
|
2472
2468
|
return (React__namespace.default.createElement("div", null,
|
|
2473
|
-
React__namespace.default.createElement(FlexRow, { padding: "12", alignItems: "center", spacing: "12", borderBottom: true, cx: css$
|
|
2469
|
+
React__namespace.default.createElement(FlexRow, { padding: "12", alignItems: "center", spacing: "12", borderBottom: true, cx: css$A.container },
|
|
2474
2470
|
React__namespace.default.createElement(FlexCell, { width: "100%" },
|
|
2475
2471
|
React__namespace.default.createElement(NumericInput, { value: (_a = value === null || value === void 0 ? void 0 : value.from) !== null && _a !== void 0 ? _a : null, onValueChange: rangeValueHandler('from'), size: "36", placeholder: "Min", formatOptions: { maximumFractionDigits: 2 } })),
|
|
2476
2472
|
React__namespace.default.createElement(FlexCell, { width: "100%" },
|
|
@@ -2478,7 +2474,7 @@ function FilterNumericBody(props) {
|
|
|
2478
2474
|
renderFooter()));
|
|
2479
2475
|
}
|
|
2480
2476
|
return (React__namespace.default.createElement("div", null,
|
|
2481
|
-
React__namespace.default.createElement(FlexRow, { padding: "12", alignItems: "center", borderBottom: true, cx: css$
|
|
2477
|
+
React__namespace.default.createElement(FlexRow, { padding: "12", alignItems: "center", borderBottom: true, cx: css$A.container },
|
|
2482
2478
|
React__namespace.default.createElement(FlexCell, { width: 130 },
|
|
2483
2479
|
React__namespace.default.createElement(NumericInput, { value: typeof props.value === 'number' ? props.value : null, onValueChange: props.onValueChange, size: "36", placeholder: "Enter a number", formatOptions: { maximumFractionDigits: 2 } }))),
|
|
2484
2480
|
renderFooter()));
|
|
@@ -2501,23 +2497,23 @@ function FilterItemBody(props) {
|
|
|
2501
2497
|
}
|
|
2502
2498
|
}
|
|
2503
2499
|
|
|
2504
|
-
var _path$
|
|
2505
|
-
function _extends$
|
|
2500
|
+
var _path$t;
|
|
2501
|
+
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); }
|
|
2506
2502
|
var SvgActionDeleteforever12 = function SvgActionDeleteforever12(props, ref) {
|
|
2507
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2503
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$u({
|
|
2508
2504
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2509
2505
|
width: 12,
|
|
2510
2506
|
height: 12,
|
|
2511
2507
|
viewBox: "0 0 18 18",
|
|
2512
2508
|
ref: ref
|
|
2513
|
-
}, props), _path$
|
|
2509
|
+
}, props), _path$t || (_path$t = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2514
2510
|
fillRule: "evenodd",
|
|
2515
2511
|
d: "M14 6v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6h10zm-3-4 1 1h3v2H3V3h3l1-1h4zm-.24 12.1L9 12.36 7.24 14.1l-1.16-1.16 1.74-1.76-1.78-1.8 1.2-1.18L9 10l1.76-1.8 1.18 1.18-1.76 1.8 1.76 1.76-1.18 1.16z"
|
|
2516
2512
|
})));
|
|
2517
2513
|
};
|
|
2518
|
-
var ForwardRef$
|
|
2514
|
+
var ForwardRef$u = /*#__PURE__*/React.forwardRef(SvgActionDeleteforever12);
|
|
2519
2515
|
|
|
2520
|
-
var css$
|
|
2516
|
+
var css$z = {"root":"_--ae2T","header":"I-B3Zr","removeButton":"XHG7rl","with-search":"fVy-Ml","withSearch":"fVy-Ml"};
|
|
2521
2517
|
|
|
2522
2518
|
function FiltersToolbarItemImpl(props) {
|
|
2523
2519
|
const { maxCount = 2 } = props;
|
|
@@ -2593,18 +2589,17 @@ function FiltersToolbarItemImpl(props) {
|
|
|
2593
2589
|
};
|
|
2594
2590
|
const renderHeader = (hideTitle) => {
|
|
2595
2591
|
var _a;
|
|
2596
|
-
return (React__namespace.default.createElement("div", { className: cx__default.default(css$
|
|
2592
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default(css$z.header, isPickersType && ((_a = props.showSearch) !== null && _a !== void 0 ? _a : css$z.withSearch)) },
|
|
2597
2593
|
props.predicates ? (React__namespace.default.createElement(MultiSwitch, { items: props.predicates.map((i) => ({ id: i.predicate, caption: i.name })), value: predicate, onValueChange: changePredicate, size: "24" })) : (!hideTitle && (React__namespace.default.createElement(Text, { color: "secondary", size: "24", fontSize: "14" }, props.title))),
|
|
2598
|
-
!(props === null || props === void 0 ? void 0 : props.isAlwaysVisible) && (React__namespace.default.createElement(LinkButton, { cx: css$
|
|
2594
|
+
!(props === null || props === void 0 ? void 0 : props.isAlwaysVisible) && (React__namespace.default.createElement(LinkButton, { cx: css$z.removeButton, caption: i18n.filterToolbar.datePicker.removeCaption, onClick: removeOnclickHandler, size: "24", icon: ForwardRef$u }))));
|
|
2599
2595
|
};
|
|
2600
2596
|
const renderBody = (dropdownProps) => {
|
|
2601
2597
|
const hideHeaderTitle = isPickersType && isMobileScreen;
|
|
2602
|
-
return (React__namespace.default.createElement(
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
React__namespace.default.createElement(FilterItemBody, Object.assign({}, props, dropdownProps, { selectedPredicate: predicate, value: getValue(), onValueChange: onValueChange })))))));
|
|
2598
|
+
return isPickersType ? (React__namespace.default.createElement(MobileDropdownWrapper, Object.assign({}, dropdownProps, { cx: css$z.root, title: props.title, width: 360, onClose: () => isOpenChange(false) }),
|
|
2599
|
+
renderHeader(hideHeaderTitle),
|
|
2600
|
+
React__namespace.default.createElement(FilterItemBody, Object.assign({}, props, dropdownProps, { selectedPredicate: predicate, value: getValue(), onValueChange: onValueChange })))) : (React__namespace.default.createElement(DropdownContainer, Object.assign({}, dropdownProps),
|
|
2601
|
+
renderHeader(hideHeaderTitle),
|
|
2602
|
+
React__namespace.default.createElement(FilterItemBody, Object.assign({}, props, dropdownProps, { selectedPredicate: predicate, value: getValue(), onValueChange: onValueChange }))));
|
|
2608
2603
|
};
|
|
2609
2604
|
const getValue = () => {
|
|
2610
2605
|
var _a;
|
|
@@ -2683,20 +2678,20 @@ function FiltersToolbarItemImpl(props) {
|
|
|
2683
2678
|
}
|
|
2684
2679
|
const FiltersPanelItem = React__namespace.default.memo(FiltersToolbarItemImpl);
|
|
2685
2680
|
|
|
2686
|
-
var _path$
|
|
2687
|
-
function _extends$
|
|
2681
|
+
var _path$s;
|
|
2682
|
+
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); }
|
|
2688
2683
|
var SvgActionAdd18 = function SvgActionAdd18(props, ref) {
|
|
2689
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2684
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$t({
|
|
2690
2685
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2691
2686
|
width: 18,
|
|
2692
2687
|
height: 18,
|
|
2693
2688
|
viewBox: "0 0 18 18",
|
|
2694
2689
|
ref: ref
|
|
2695
|
-
}, props), _path$
|
|
2690
|
+
}, props), _path$s || (_path$s = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2696
2691
|
d: "M10 2H8v6H2v2h6v6h2v-6h6V8h-6V2z"
|
|
2697
2692
|
})));
|
|
2698
2693
|
};
|
|
2699
|
-
var ForwardRef$
|
|
2694
|
+
var ForwardRef$t = /*#__PURE__*/React.forwardRef(SvgActionAdd18);
|
|
2700
2695
|
|
|
2701
2696
|
const normalizeFilterWithPredicates = (filter) => {
|
|
2702
2697
|
if (!filter) {
|
|
@@ -2787,7 +2782,7 @@ function FiltersToolbarImpl(props) {
|
|
|
2787
2782
|
}, [filters, tableState.filtersConfig]);
|
|
2788
2783
|
const renderAddFilterToggler = React.useCallback((togglerProps) => {
|
|
2789
2784
|
var _a;
|
|
2790
|
-
return (React__namespace.default.createElement(Button, { size: (_a = props.size) !== null && _a !== void 0 ? _a : '36', onClick: togglerProps.onClick, ref: togglerProps.ref, caption: i18n.filterToolbar.addCaption, icon: ForwardRef$
|
|
2785
|
+
return (React__namespace.default.createElement(Button, { size: (_a = props.size) !== null && _a !== void 0 ? _a : '36', onClick: togglerProps.onClick, ref: togglerProps.ref, caption: i18n.filterToolbar.addCaption, icon: ForwardRef$t, iconPosition: "left", fill: "ghost", color: "primary" }));
|
|
2791
2786
|
}, []);
|
|
2792
2787
|
const getRowOptions = React.useCallback((item) => ({
|
|
2793
2788
|
isDisabled: item.isAlwaysVisible,
|
|
@@ -2814,30 +2809,13 @@ function FiltersToolbarImpl(props) {
|
|
|
2814
2809
|
}
|
|
2815
2810
|
const FiltersPanel = React__namespace.default.memo(FiltersToolbarImpl);
|
|
2816
2811
|
|
|
2817
|
-
var css$
|
|
2812
|
+
var css$y = {"divider":"B95GQr","dropdownDeleteIcon":"_2pUECw","presetsWrapper":"_6o3yWT","addPresetContainer":"jReawz","dropContainer":"duOJxw"};
|
|
2818
2813
|
|
|
2819
|
-
var css$
|
|
2820
|
-
|
|
2821
|
-
var _path$s;
|
|
2822
|
-
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); }
|
|
2823
|
-
var SvgNavigationMoreVert18 = function SvgNavigationMoreVert18(props, ref) {
|
|
2824
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$t({
|
|
2825
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2826
|
-
width: 18,
|
|
2827
|
-
height: 18,
|
|
2828
|
-
viewBox: "0 0 18 18",
|
|
2829
|
-
ref: ref
|
|
2830
|
-
}, props), _path$s || (_path$s = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2831
|
-
fillRule: "evenodd",
|
|
2832
|
-
d: "M9 6c.825 0 1.5-.675 1.5-1.5S9.825 3 9 3s-1.5.675-1.5 1.5S8.175 6 9 6zm0 1.5c-.825 0-1.5.675-1.5 1.5s.675 1.5 1.5 1.5 1.5-.675 1.5-1.5S9.825 7.5 9 7.5zM9 12c-.825 0-1.5.675-1.5 1.5S8.175 15 9 15s1.5-.675 1.5-1.5S9.825 12 9 12z",
|
|
2833
|
-
clipRule: "evenodd"
|
|
2834
|
-
})));
|
|
2835
|
-
};
|
|
2836
|
-
var ForwardRef$t = /*#__PURE__*/React.forwardRef(SvgNavigationMoreVert18);
|
|
2814
|
+
var css$x = {"preset-dropdown-panel":"SjXSIv","delete-row":"Wroi25","delete-button":"_1xaMO8","targetOpen":"WCMpar","presetDropdownPanel":"SjXSIv","deleteRow":"Wroi25","deleteButton":"_1xaMO8"};
|
|
2837
2815
|
|
|
2838
2816
|
var _path$r;
|
|
2839
2817
|
function _extends$s() { _extends$s = 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$s.apply(this, arguments); }
|
|
2840
|
-
var
|
|
2818
|
+
var SvgNavigationMoreVert18 = function SvgNavigationMoreVert18(props, ref) {
|
|
2841
2819
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$s({
|
|
2842
2820
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2843
2821
|
width: 18,
|
|
@@ -2846,15 +2824,15 @@ var SvgActionUpdate18 = function SvgActionUpdate18(props, ref) {
|
|
|
2846
2824
|
ref: ref
|
|
2847
2825
|
}, props), _path$r || (_path$r = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2848
2826
|
fillRule: "evenodd",
|
|
2849
|
-
d: "
|
|
2827
|
+
d: "M9 6c.825 0 1.5-.675 1.5-1.5S9.825 3 9 3s-1.5.675-1.5 1.5S8.175 6 9 6zm0 1.5c-.825 0-1.5.675-1.5 1.5s.675 1.5 1.5 1.5 1.5-.675 1.5-1.5S9.825 7.5 9 7.5zM9 12c-.825 0-1.5.675-1.5 1.5S8.175 15 9 15s1.5-.675 1.5-1.5S9.825 12 9 12z",
|
|
2850
2828
|
clipRule: "evenodd"
|
|
2851
2829
|
})));
|
|
2852
2830
|
};
|
|
2853
|
-
var ForwardRef$s = /*#__PURE__*/React.forwardRef(
|
|
2831
|
+
var ForwardRef$s = /*#__PURE__*/React.forwardRef(SvgNavigationMoreVert18);
|
|
2854
2832
|
|
|
2855
2833
|
var _path$q;
|
|
2856
2834
|
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); }
|
|
2857
|
-
var
|
|
2835
|
+
var SvgActionUpdate18 = function SvgActionUpdate18(props, ref) {
|
|
2858
2836
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$r({
|
|
2859
2837
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2860
2838
|
width: 18,
|
|
@@ -2862,14 +2840,16 @@ var SvgSaveOutline18 = function SvgSaveOutline18(props, ref) {
|
|
|
2862
2840
|
viewBox: "0 0 18 18",
|
|
2863
2841
|
ref: ref
|
|
2864
2842
|
}, props), _path$q || (_path$q = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2865
|
-
|
|
2843
|
+
fillRule: "evenodd",
|
|
2844
|
+
d: "M8.007 2A7.004 7.004 0 0 0 1 9a7.004 7.004 0 0 0 11.732 5.16l-1.497-1.347A4.999 4.999 0 0 1 3 9c0-2.763 2.237-5 5-5 2.762 0 5 2.237 5 5h2c0-3.864-3.129-7-6.993-7zM11 9l3 3 3-3h-6z",
|
|
2845
|
+
clipRule: "evenodd"
|
|
2866
2846
|
})));
|
|
2867
2847
|
};
|
|
2868
|
-
var ForwardRef$r = /*#__PURE__*/React.forwardRef(
|
|
2848
|
+
var ForwardRef$r = /*#__PURE__*/React.forwardRef(SvgActionUpdate18);
|
|
2869
2849
|
|
|
2870
2850
|
var _path$p;
|
|
2871
2851
|
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); }
|
|
2872
|
-
var
|
|
2852
|
+
var SvgSaveOutline18 = function SvgSaveOutline18(props, ref) {
|
|
2873
2853
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
|
|
2874
2854
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2875
2855
|
width: 18,
|
|
@@ -2877,16 +2857,14 @@ var SvgContentEditUndo18 = function SvgContentEditUndo18(props, ref) {
|
|
|
2877
2857
|
viewBox: "0 0 18 18",
|
|
2878
2858
|
ref: ref
|
|
2879
2859
|
}, props), _path$p || (_path$p = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2880
|
-
|
|
2881
|
-
d: "M9.375 6A7.848 7.848 0 0 0 4.2 7.95l-2.7-2.7V12h6.75L5.535 9.285a5.965 5.965 0 0 1 3.84-1.41 6.009 6.009 0 0 1 5.7 4.125l1.777-.585C15.81 8.273 12.862 6 9.375 6z",
|
|
2882
|
-
clipRule: "evenodd"
|
|
2860
|
+
d: "M12.75 2.25h-9a1.5 1.5 0 0 0-1.5 1.5v10.5a1.5 1.5 0 0 0 1.5 1.5h10.5c.825 0 1.5-.675 1.5-1.5v-9l-3-3zm1.5 12H3.75V3.75h8.377l2.123 2.122v8.378zM9 9a2.247 2.247 0 0 0-2.25 2.25A2.247 2.247 0 0 0 9 13.5a2.247 2.247 0 0 0 2.25-2.25A2.247 2.247 0 0 0 9 9zM4.5 4.5h6.75v3H4.5v-3z"
|
|
2883
2861
|
})));
|
|
2884
2862
|
};
|
|
2885
|
-
var ForwardRef$q = /*#__PURE__*/React.forwardRef(
|
|
2863
|
+
var ForwardRef$q = /*#__PURE__*/React.forwardRef(SvgSaveOutline18);
|
|
2886
2864
|
|
|
2887
2865
|
var _path$o;
|
|
2888
2866
|
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); }
|
|
2889
|
-
var
|
|
2867
|
+
var SvgContentEditUndo18 = function SvgContentEditUndo18(props, ref) {
|
|
2890
2868
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
|
|
2891
2869
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2892
2870
|
width: 18,
|
|
@@ -2895,15 +2873,15 @@ var SvgActionCopyContent18 = function SvgActionCopyContent18(props, ref) {
|
|
|
2895
2873
|
ref: ref
|
|
2896
2874
|
}, props), _path$o || (_path$o = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2897
2875
|
fillRule: "evenodd",
|
|
2898
|
-
d: "
|
|
2876
|
+
d: "M9.375 6A7.848 7.848 0 0 0 4.2 7.95l-2.7-2.7V12h6.75L5.535 9.285a5.965 5.965 0 0 1 3.84-1.41 6.009 6.009 0 0 1 5.7 4.125l1.777-.585C15.81 8.273 12.862 6 9.375 6z",
|
|
2899
2877
|
clipRule: "evenodd"
|
|
2900
2878
|
})));
|
|
2901
2879
|
};
|
|
2902
|
-
var ForwardRef$p = /*#__PURE__*/React.forwardRef(
|
|
2880
|
+
var ForwardRef$p = /*#__PURE__*/React.forwardRef(SvgContentEditUndo18);
|
|
2903
2881
|
|
|
2904
2882
|
var _path$n;
|
|
2905
2883
|
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); }
|
|
2906
|
-
var
|
|
2884
|
+
var SvgActionCopyContent18 = function SvgActionCopyContent18(props, ref) {
|
|
2907
2885
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
|
|
2908
2886
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2909
2887
|
width: 18,
|
|
@@ -2912,15 +2890,15 @@ var SvgContentEdit18 = function SvgContentEdit18(props, ref) {
|
|
|
2912
2890
|
ref: ref
|
|
2913
2891
|
}, props), _path$n || (_path$n = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2914
2892
|
fillRule: "evenodd",
|
|
2915
|
-
d: "
|
|
2893
|
+
d: "M3 1h8v2H3v8H1V3a2 2 0 0 1 2-2zm2 6a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V7zm10 8H7V7h8v8z",
|
|
2916
2894
|
clipRule: "evenodd"
|
|
2917
2895
|
})));
|
|
2918
2896
|
};
|
|
2919
|
-
var ForwardRef$o = /*#__PURE__*/React.forwardRef(
|
|
2897
|
+
var ForwardRef$o = /*#__PURE__*/React.forwardRef(SvgActionCopyContent18);
|
|
2920
2898
|
|
|
2921
2899
|
var _path$m;
|
|
2922
2900
|
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); }
|
|
2923
|
-
var
|
|
2901
|
+
var SvgContentEdit18 = function SvgContentEdit18(props, ref) {
|
|
2924
2902
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
|
|
2925
2903
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2926
2904
|
width: 18,
|
|
@@ -2929,15 +2907,15 @@ var SvgContentLink18 = function SvgContentLink18(props, ref) {
|
|
|
2929
2907
|
ref: ref
|
|
2930
2908
|
}, props), _path$m || (_path$m = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2931
2909
|
fillRule: "evenodd",
|
|
2932
|
-
d: "
|
|
2910
|
+
d: "M2.25 12.94v2.812h2.813l8.294-8.295-2.812-2.813L2.25 12.94zm13.283-7.658a.747.747 0 0 0 0-1.058L13.777 2.47a.747.747 0 0 0-1.058 0l-1.373 1.373 2.813 2.812 1.373-1.372z",
|
|
2933
2911
|
clipRule: "evenodd"
|
|
2934
2912
|
})));
|
|
2935
2913
|
};
|
|
2936
|
-
var ForwardRef$n = /*#__PURE__*/React.forwardRef(
|
|
2914
|
+
var ForwardRef$n = /*#__PURE__*/React.forwardRef(SvgContentEdit18);
|
|
2937
2915
|
|
|
2938
2916
|
var _path$l;
|
|
2939
2917
|
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); }
|
|
2940
|
-
var
|
|
2918
|
+
var SvgContentLink18 = function SvgContentLink18(props, ref) {
|
|
2941
2919
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
|
|
2942
2920
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2943
2921
|
width: 18,
|
|
@@ -2945,12 +2923,29 @@ var SvgActionDeleteforever18 = function SvgActionDeleteforever18(props, ref) {
|
|
|
2945
2923
|
viewBox: "0 0 18 18",
|
|
2946
2924
|
ref: ref
|
|
2947
2925
|
}, props), _path$l || (_path$l = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2926
|
+
fillRule: "evenodd",
|
|
2927
|
+
d: "M7.943 10.057a.73.73 0 0 1 0 1.066.756.756 0 0 1-1.065 0 3.753 3.753 0 0 1 0-5.303l2.655-2.655a3.753 3.753 0 0 1 5.302 0 3.753 3.753 0 0 1 0 5.302l-1.118 1.118a5.18 5.18 0 0 0-.3-1.815l.353-.36a2.236 2.236 0 0 0 0-3.18 2.236 2.236 0 0 0-3.18 0L7.943 6.877a2.236 2.236 0 0 0 0 3.18zm2.114-3.18a.756.756 0 0 1 1.066 0 3.753 3.753 0 0 1 0 5.303l-2.655 2.655a3.753 3.753 0 0 1-5.303 0 3.753 3.753 0 0 1 0-5.303l1.118-1.117a5.25 5.25 0 0 0 .3 1.823l-.353.352a2.236 2.236 0 0 0 0 3.18 2.236 2.236 0 0 0 3.18 0l2.647-2.647a2.236 2.236 0 0 0 0-3.18.73.73 0 0 1 0-1.066z",
|
|
2928
|
+
clipRule: "evenodd"
|
|
2929
|
+
})));
|
|
2930
|
+
};
|
|
2931
|
+
var ForwardRef$m = /*#__PURE__*/React.forwardRef(SvgContentLink18);
|
|
2932
|
+
|
|
2933
|
+
var _path$k;
|
|
2934
|
+
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); }
|
|
2935
|
+
var SvgActionDeleteforever18 = function SvgActionDeleteforever18(props, ref) {
|
|
2936
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
|
|
2937
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2938
|
+
width: 18,
|
|
2939
|
+
height: 18,
|
|
2940
|
+
viewBox: "0 0 18 18",
|
|
2941
|
+
ref: ref
|
|
2942
|
+
}, props), _path$k || (_path$k = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2948
2943
|
fillRule: "evenodd",
|
|
2949
2944
|
d: "M7 2h4l1 1h3v2H3V3h3l1-1zM4 6h10v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6zm6.76 8.1L9 12.36 7.24 14.1l-1.16-1.16 1.74-1.76-1.78-1.8 1.2-1.18L9 10l1.76-1.8 1.18 1.18-1.76 1.8 1.76 1.76-1.18 1.16z",
|
|
2950
2945
|
clipRule: "evenodd"
|
|
2951
2946
|
})));
|
|
2952
2947
|
};
|
|
2953
|
-
var ForwardRef$
|
|
2948
|
+
var ForwardRef$l = /*#__PURE__*/React.forwardRef(SvgActionDeleteforever18);
|
|
2954
2949
|
|
|
2955
2950
|
function PresetActionsDropdown(props) {
|
|
2956
2951
|
const { uuiNotifications } = uuiCore.useUuiContext();
|
|
@@ -2987,30 +2982,30 @@ function PresetActionsDropdown(props) {
|
|
|
2987
2982
|
]);
|
|
2988
2983
|
const renderBody = () => {
|
|
2989
2984
|
const isReadonlyPreset = props.preset.isReadonly;
|
|
2990
|
-
return (React__namespace.default.createElement(Panel, { shadow: true, cx: css$
|
|
2985
|
+
return (React__namespace.default.createElement(Panel, { background: "surface", shadow: true, cx: css$x.presetDropdownPanel },
|
|
2991
2986
|
props.activePresetId === props.preset.id && props.hasPresetChanged(props.preset) && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
2992
2987
|
!isReadonlyPreset && (React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-save-in-current` },
|
|
2993
|
-
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$
|
|
2988
|
+
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$r, caption: "Save in current", onClick: saveInCurrentHandler }))),
|
|
2994
2989
|
React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-save-as-new` },
|
|
2995
|
-
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$
|
|
2990
|
+
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$q, caption: "Save as new", onClick: props.addPreset })),
|
|
2996
2991
|
React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-discard`, borderBottom: true },
|
|
2997
|
-
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$
|
|
2992
|
+
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$p, caption: "Discard all changes", onClick: discardAllChangesHandler })))),
|
|
2998
2993
|
props.preset.id === props.activePresetId && !isReadonlyPreset && (React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-rename` },
|
|
2999
|
-
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$
|
|
2994
|
+
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$n, caption: "Rename", onClick: props.renamePreset }))),
|
|
3000
2995
|
React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-duplicate` },
|
|
3001
|
-
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$
|
|
2996
|
+
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$o, caption: "Duplicate", onClick: duplicateHandler })),
|
|
3002
2997
|
React__namespace.default.createElement(FlexRow, { borderBottom: true, key: `${props.preset.id}-copyLink` },
|
|
3003
|
-
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$
|
|
3004
|
-
!isReadonlyPreset && (React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-delete`, cx: css$
|
|
3005
|
-
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$
|
|
2998
|
+
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$m, caption: "Copy Link", onClick: copyUrlToClipboard })),
|
|
2999
|
+
!isReadonlyPreset && (React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-delete`, cx: css$x.deleteRow },
|
|
3000
|
+
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$l, caption: "Delete", cx: css$x.deleteButton, onClick: deleteHandler })))));
|
|
3006
3001
|
};
|
|
3007
3002
|
const renderTarget = React.useCallback((dropdownProps) => {
|
|
3008
|
-
return (React__namespace.default.createElement(IconButton, Object.assign({ cx: dropdownProps.isOpen && css$
|
|
3003
|
+
return (React__namespace.default.createElement(IconButton, Object.assign({ cx: dropdownProps.isOpen && css$x.targetOpen, color: props.preset.id === props.activePresetId ? 'info' : 'neutral' }, dropdownProps, { icon: ForwardRef$s })));
|
|
3009
3004
|
}, []);
|
|
3010
3005
|
return (React__namespace.default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end", modifiers: [{ name: 'offset', options: { offset: [0, 22] } }] }));
|
|
3011
3006
|
}
|
|
3012
3007
|
|
|
3013
|
-
var css$
|
|
3008
|
+
var css$w = {"preset-input-cell":"DAkrrp","preset-input":"-pvSxv","presetInputCell":"DAkrrp","presetInput":"-pvSxv"};
|
|
3014
3009
|
|
|
3015
3010
|
function PresetInput(props) {
|
|
3016
3011
|
var _a;
|
|
@@ -3031,11 +3026,11 @@ function PresetInput(props) {
|
|
|
3031
3026
|
}
|
|
3032
3027
|
props.onCancel();
|
|
3033
3028
|
}, [presetCaption.length, props.onCancel]);
|
|
3034
|
-
return (React__namespace.default.createElement(FlexCell, { cx: css$
|
|
3035
|
-
React__namespace.default.createElement(TextInput, { cx: css$
|
|
3029
|
+
return (React__namespace.default.createElement(FlexCell, { cx: css$w.presetInputCell, minWidth: 180 },
|
|
3030
|
+
React__namespace.default.createElement(TextInput, { cx: css$w.presetInput, onValueChange: setPresetCaption, value: presetCaption, onCancel: cancelActionHandler, onAccept: acceptActionHandler, onBlur: newPresetOnBlurHandler, autoFocus: true, maxLength: 50 })));
|
|
3036
3031
|
}
|
|
3037
3032
|
|
|
3038
|
-
var css$
|
|
3033
|
+
var css$v = {"preset":"GjqrSR","activePreset":"ZPPWsj"};
|
|
3039
3034
|
|
|
3040
3035
|
function Preset(props) {
|
|
3041
3036
|
const [isRenamePreset, setIsRenamePreset] = React.useState(false);
|
|
@@ -3053,23 +3048,23 @@ function Preset(props) {
|
|
|
3053
3048
|
return props.updatePreset(newPreset);
|
|
3054
3049
|
}, [props.preset]);
|
|
3055
3050
|
const isPresetActive = props.activePresetId === props.preset.id;
|
|
3056
|
-
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$
|
|
3051
|
+
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$v.preset, isPresetActive && css$v.activePreset], size: "60", withNotify: isPresetActive && props.hasPresetChanged(props.preset), icon: () => React__namespace.default.createElement(PresetActionsDropdown, Object.assign({ renamePreset: setPresetForRename }, props)), iconPosition: "right", isLinkActive: isPresetActive }))));
|
|
3057
3052
|
}
|
|
3058
3053
|
|
|
3059
|
-
var _path$
|
|
3060
|
-
function _extends$
|
|
3054
|
+
var _path$j;
|
|
3055
|
+
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); }
|
|
3061
3056
|
var SvgContentPlusBold18 = function SvgContentPlusBold18(props, ref) {
|
|
3062
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3057
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
|
|
3063
3058
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3064
3059
|
width: 18,
|
|
3065
3060
|
height: 18,
|
|
3066
3061
|
viewBox: "0 0 18 18",
|
|
3067
3062
|
ref: ref
|
|
3068
|
-
}, props), _path$
|
|
3063
|
+
}, props), _path$j || (_path$j = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3069
3064
|
d: "M10.5 3h-3v4.5H3v3h4.5V15h3v-4.5H15v-3h-4.5V3z"
|
|
3070
3065
|
})));
|
|
3071
3066
|
};
|
|
3072
|
-
var ForwardRef$
|
|
3067
|
+
var ForwardRef$k = /*#__PURE__*/React.forwardRef(SvgContentPlusBold18);
|
|
3073
3068
|
|
|
3074
3069
|
function PresetsPanel(props) {
|
|
3075
3070
|
const [isAddingPreset, setIsAddingPreset] = React.useState(false);
|
|
@@ -3084,16 +3079,16 @@ function PresetsPanel(props) {
|
|
|
3084
3079
|
return React__namespace.default.createElement(Preset, Object.assign({ key: preset.id, preset: preset, addPreset: setAddingPreset }, presetApi));
|
|
3085
3080
|
};
|
|
3086
3081
|
const renderAddPresetButton = React.useCallback(() => {
|
|
3087
|
-
return (React__namespace.default.createElement("div", { key: "addingPresetBlock", className: css$
|
|
3082
|
+
return (React__namespace.default.createElement("div", { key: "addingPresetBlock", className: css$y.addPresetContainer }, !isAddingPreset ? (React__namespace.default.createElement(Button, { size: "36", onClick: setAddingPreset, caption: i18n.presetPanel.addCaption, icon: ForwardRef$k, iconPosition: "left", fill: "ghost", color: "primary" })) : (React__namespace.default.createElement(PresetInput, { onCancel: cancelAddingPreset, onSuccess: props.createNewPreset }))));
|
|
3088
3083
|
}, [isAddingPreset]);
|
|
3089
3084
|
const onPresetDropdownSelect = (preset) => {
|
|
3090
3085
|
props.choosePreset(preset.preset);
|
|
3091
3086
|
};
|
|
3092
3087
|
const renderMoreButtonDropdown = (item, hiddenItems) => {
|
|
3093
3088
|
return (React__namespace.default.createElement(Dropdown, { key: "more", renderTarget: (props) => (React__namespace.default.createElement(FlexRow, null,
|
|
3094
|
-
React__namespace.default.createElement("div", { className: css$
|
|
3095
|
-
React__namespace.default.createElement(Button, Object.assign({ fill: "ghost", color: "secondary", caption: `${(hiddenItems === null || hiddenItems === void 0 ? void 0 : hiddenItems.length) || ''} more` }, props)))), renderBody: () => (React__namespace.default.createElement(DropdownContainer, { cx: uuiCore.cx(css$
|
|
3096
|
-
React__namespace.default.createElement(uuiComponents.ScrollBars, null, hiddenItems.map((hiddenItem) => (React__namespace.default.createElement(DropdownMenuButton, { key: hiddenItem.preset.id, onClick: () => onPresetDropdownSelect(hiddenItem), caption: hiddenItem.preset.name, icon: !hiddenItem.preset.isReadonly && ForwardRef$
|
|
3089
|
+
React__namespace.default.createElement("div", { className: css$y.divider }),
|
|
3090
|
+
React__namespace.default.createElement(Button, Object.assign({ fill: "ghost", color: "secondary", caption: `${(hiddenItems === null || hiddenItems === void 0 ? void 0 : hiddenItems.length) || ''} more` }, props)))), renderBody: (propsBody) => (React__namespace.default.createElement(DropdownContainer, Object.assign({ cx: uuiCore.cx(css$y.dropContainer), width: 230 }, propsBody),
|
|
3091
|
+
React__namespace.default.createElement(uuiComponents.ScrollBars, null, hiddenItems.map((hiddenItem) => (React__namespace.default.createElement(DropdownMenuButton, { key: hiddenItem.preset.id, onClick: () => onPresetDropdownSelect(hiddenItem), caption: hiddenItem.preset.name, icon: !hiddenItem.preset.isReadonly && ForwardRef$l, iconPosition: "right", cx: css$y.dropdownDeleteIcon, onIconClick: !hiddenItem.preset.isReadonly && (() => props.deletePreset(hiddenItem.preset)) })))))) }));
|
|
3097
3092
|
};
|
|
3098
3093
|
const getPresetPriority = (preset, index) => {
|
|
3099
3094
|
return preset.id === props.activePresetId ? 100499 : 1000 - index;
|
|
@@ -3111,7 +3106,7 @@ function PresetsPanel(props) {
|
|
|
3111
3106
|
];
|
|
3112
3107
|
};
|
|
3113
3108
|
return (React__namespace.default.createElement(FlexCell, { grow: 1, minWidth: 310, rawProps: props.rawProps },
|
|
3114
|
-
React__namespace.default.createElement(FlexRow, { size: null, spacing: "12", cx: css$
|
|
3109
|
+
React__namespace.default.createElement(FlexRow, { size: null, spacing: "12", cx: css$y.presetsWrapper },
|
|
3115
3110
|
React__namespace.default.createElement(uuiComponents.AdaptivePanel, { items: getPanelItems() }))));
|
|
3116
3111
|
}
|
|
3117
3112
|
|
|
@@ -3149,7 +3144,7 @@ const useColumnsWithFilters = (initialColumns, filters) => {
|
|
|
3149
3144
|
return columns;
|
|
3150
3145
|
};
|
|
3151
3146
|
|
|
3152
|
-
var css$
|
|
3147
|
+
var css$u = {"line-height-12":"gnqeJP","line-height-18":"_0HeJOH","line-height-24":"z17ViQ","line-height-30":"PPpLg-","font-size-10":"JgKxV2","font-size-12":"rvvp2r","font-size-14":"br99be","font-size-16":"AAZdm3","font-size-18":"piDdw-","font-size-24":"ElLMBx","v-padding-2":"_7SkLfV","v-padding-3":"b7eiDk","v-padding-5":"dFlWDe","v-padding-6":"_5BDNpB","v-padding-8":"wo-A43","v-padding-9":"Ls2EKS","v-padding-11":"H8vl9-","v-padding-12":"xC1pJD","v-padding-14":"ss3TWa","v-padding-15":"Ya76--","v-padding-17":"GfKFnD","v-padding-18":"jnpobl","v-padding-23":"MTOI1d","v-padding-24":"OKY02H","lineHeight12":"gnqeJP","lineHeight18":"_0HeJOH","lineHeight24":"z17ViQ","lineHeight30":"PPpLg-","fontSize10":"JgKxV2","fontSize12":"rvvp2r","fontSize14":"br99be","fontSize16":"AAZdm3","fontSize18":"piDdw-","fontSize24":"ElLMBx","vPadding2":"_7SkLfV","vPadding3":"b7eiDk","vPadding5":"dFlWDe","vPadding6":"_5BDNpB","vPadding8":"wo-A43","vPadding9":"Ls2EKS","vPadding11":"H8vl9-","vPadding12":"xC1pJD","vPadding14":"ss3TWa","vPadding15":"Ya76--","vPadding17":"GfKFnD","vPadding18":"jnpobl","vPadding23":"MTOI1d","vPadding24":"OKY02H"};
|
|
3153
3148
|
|
|
3154
3149
|
const defaultTextSettings = {
|
|
3155
3150
|
18: { lineHeight: 12, fontSize: 10 },
|
|
@@ -3162,7 +3157,7 @@ const defaultTextSettings = {
|
|
|
3162
3157
|
};
|
|
3163
3158
|
function getTextClasses(props, border) {
|
|
3164
3159
|
if (props.size === 'none') {
|
|
3165
|
-
return [css$
|
|
3160
|
+
return [css$u['line-height-' + props.lineHeight], css$u['font-size-' + props.fontSize]];
|
|
3166
3161
|
}
|
|
3167
3162
|
const setting = {
|
|
3168
3163
|
size: props.size,
|
|
@@ -3171,10 +3166,12 @@ function getTextClasses(props, border) {
|
|
|
3171
3166
|
};
|
|
3172
3167
|
const vPadding = (+setting.size - +setting.lineHeight - (border ? 2 : 0)) / 2;
|
|
3173
3168
|
return [
|
|
3174
|
-
css$
|
|
3169
|
+
css$u['line-height-' + setting.lineHeight], css$u['font-size-' + setting.fontSize], css$u['v-padding-' + vPadding],
|
|
3175
3170
|
];
|
|
3176
3171
|
}
|
|
3177
3172
|
|
|
3173
|
+
var css$t = {"root":"KPE1S0"};
|
|
3174
|
+
|
|
3178
3175
|
const allTextColors = ['info', 'warning', 'error', 'success', 'brand', 'primary', 'secondary', 'disabled', 'contrast', 'white'];
|
|
3179
3176
|
function applyTextMods(mods) {
|
|
3180
3177
|
const textClasses = getTextClasses({
|
|
@@ -3183,7 +3180,7 @@ function applyTextMods(mods) {
|
|
|
3183
3180
|
fontSize: mods.fontSize,
|
|
3184
3181
|
}, false);
|
|
3185
3182
|
return [
|
|
3186
|
-
css$
|
|
3183
|
+
css$t.root,
|
|
3187
3184
|
'uui-text',
|
|
3188
3185
|
`uui-font-${mods.font || 'regular'}`,
|
|
3189
3186
|
`uui-color-${mods.color || 'primary'}`,
|
|
@@ -3191,7 +3188,7 @@ function applyTextMods(mods) {
|
|
|
3191
3188
|
}
|
|
3192
3189
|
const Text = uuiCore.withMods(uuiComponents.Text, applyTextMods);
|
|
3193
3190
|
|
|
3194
|
-
var css$
|
|
3191
|
+
var css$s = {"root":"_7AQCfe","loading-word":"YIb4i7","animated-loading":"CkgQRN","skeleton_loading":"_4yi-7n","loadingWord":"YIb4i7","animatedLoading":"CkgQRN","skeletonLoading":"_4yi-7n"};
|
|
3195
3192
|
|
|
3196
3193
|
const TextPlaceholder = (props) => {
|
|
3197
3194
|
const pattern = ' ';
|
|
@@ -3203,56 +3200,59 @@ const TextPlaceholder = (props) => {
|
|
|
3203
3200
|
}
|
|
3204
3201
|
return words;
|
|
3205
3202
|
}, [props.wordsCount]);
|
|
3206
|
-
return (React__namespace.createElement("div", Object.assign({ "aria-busy": true, className: css$
|
|
3207
|
-
props.cx, css$
|
|
3203
|
+
return (React__namespace.createElement("div", Object.assign({ "aria-busy": true, className: css$s.root }, props.rawProps), text.map((it, index) => (React__namespace.createElement("span", { key: index, className: cx__default.default([
|
|
3204
|
+
props.cx, css$s.loadingWord, !props.isNotAnimated && css$s.animatedLoading,
|
|
3208
3205
|
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
3209
3206
|
};
|
|
3210
3207
|
|
|
3211
|
-
var style = {"typography-16":"
|
|
3208
|
+
var style = {"typography-16":"baqGMN","typography-14":"kYwine","typography-12":"LK33w5","typography-uui":"thGQKK","typography16":"baqGMN","typography14":"kYwine","typography12":"LK33w5","typographyUui":"thGQKK"};
|
|
3212
3209
|
|
|
3213
3210
|
const RichTextView = uuiCore.withMods(uuiComponents.RichTextView, (mods) => [style.typographyUui, style['typography-' + (mods.size || '14')]]);
|
|
3214
3211
|
|
|
3215
|
-
var css$
|
|
3212
|
+
var css$r = {"root":"e34c9h","modal-blocker":"PU3pdT","animateModalBlocker":"FKW2w-","modal":"ooxJvl","modal-footer":"j5BDA4","border-top":"O-IL2R","modal-header":"_88B-pu","modalBlocker":"PU3pdT","modalFooter":"j5BDA4","borderTop":"O-IL2R","modalHeader":"_88B-pu"};
|
|
3216
3213
|
|
|
3217
|
-
const ModalBlocker = uuiCore.withMods(uuiComponents.ModalBlocker, () => [css$
|
|
3218
|
-
const ModalWindow = uuiCore.withMods(uuiComponents.ModalWindow, () => [css$
|
|
3214
|
+
const ModalBlocker = uuiCore.withMods(uuiComponents.ModalBlocker, () => [css$r.modalBlocker]);
|
|
3215
|
+
const ModalWindow = uuiCore.withMods(uuiComponents.ModalWindow, () => [css$r.root, css$r.modal], (props) => ({
|
|
3219
3216
|
style: Object.assign(Object.assign({}, props.style), { width: `${props.width || 420}px`, height: props.height ? `${props.height}px` : 'auto' }),
|
|
3220
3217
|
}));
|
|
3221
3218
|
class ModalHeader extends React__namespace.Component {
|
|
3222
3219
|
render() {
|
|
3223
|
-
return (React__namespace.createElement(FlexRow, { padding: this.props.padding || '24', vPadding: "12", borderBottom: this.props.borderBottom, cx: [css$
|
|
3220
|
+
return (React__namespace.createElement(FlexRow, { padding: this.props.padding || '24', vPadding: "12", borderBottom: this.props.borderBottom, cx: [css$r.root, css$r.modalHeader, this.props.cx], spacing: "12", rawProps: this.props.rawProps },
|
|
3224
3221
|
this.props.title && (React__namespace.createElement(Text, { size: "48", fontSize: "18", font: "semibold" }, this.props.title)),
|
|
3225
3222
|
this.props.children,
|
|
3226
3223
|
this.props.onClose && React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
3227
3224
|
this.props.onClose && (React__namespace.createElement(FlexCell, { shrink: 0, width: "auto" },
|
|
3228
|
-
React__namespace.createElement(IconButton, { icon: ForwardRef$
|
|
3225
|
+
React__namespace.createElement(IconButton, { rawProps: { 'aria-label': 'Close modal' }, icon: ForwardRef$D, onClick: this.props.onClose })))));
|
|
3229
3226
|
}
|
|
3230
3227
|
}
|
|
3231
3228
|
class ModalFooter extends React__namespace.Component {
|
|
3232
3229
|
render() {
|
|
3233
3230
|
return (React__namespace.createElement(FlexRow, { spacing: this.props.spacing || '12', cx: [
|
|
3234
|
-
css$
|
|
3231
|
+
css$r.root,
|
|
3232
|
+
css$r.modalFooter,
|
|
3233
|
+
this.props.borderTop && css$r.borderTop,
|
|
3234
|
+
this.props.cx,
|
|
3235
3235
|
], padding: this.props.padding || '24', vPadding: this.props.vPadding || '24', rawProps: this.props.rawProps }, this.props.children));
|
|
3236
3236
|
}
|
|
3237
3237
|
}
|
|
3238
3238
|
|
|
3239
|
-
var _path$
|
|
3240
|
-
function _extends$
|
|
3239
|
+
var _path$i;
|
|
3240
|
+
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); }
|
|
3241
3241
|
var SvgCross = function SvgCross(props, ref) {
|
|
3242
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3242
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
|
|
3243
3243
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3244
3244
|
width: 24,
|
|
3245
3245
|
height: 24,
|
|
3246
3246
|
viewBox: "0 0 24 24",
|
|
3247
3247
|
ref: ref
|
|
3248
|
-
}, props), _path$
|
|
3248
|
+
}, props), _path$i || (_path$i = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3249
3249
|
fillRule: "evenodd",
|
|
3250
3250
|
d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
3251
3251
|
})));
|
|
3252
3252
|
};
|
|
3253
|
-
var ForwardRef$
|
|
3253
|
+
var ForwardRef$j = /*#__PURE__*/React.forwardRef(SvgCross);
|
|
3254
3254
|
|
|
3255
|
-
var css$
|
|
3255
|
+
var css$q = {"root":"_2wFC-r","icon-wrapper":"FTaOnv","action-wrapper":"KE9vxb","action-link":"I0ZjlW","close-icon":"jlecMO","main-path":"ZhsbwQ","content":"O5KPzs","clear-button":"jcBccY","close-wrapper":"cIIH5i","iconWrapper":"FTaOnv","actionWrapper":"KE9vxb","actionLink":"I0ZjlW","closeIcon":"jlecMO","mainPath":"ZhsbwQ","clearButton":"jcBccY","closeWrapper":"cIIH5i"};
|
|
3256
3256
|
|
|
3257
3257
|
const NotificationCard = React__namespace.default.forwardRef((props, ref) => {
|
|
3258
3258
|
const notificationCardNode = React__namespace.default.useRef(null);
|
|
@@ -3267,23 +3267,23 @@ const NotificationCard = React__namespace.default.forwardRef((props, ref) => {
|
|
|
3267
3267
|
(_b = notificationCardNode.current) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseleave', props.refreshTimer);
|
|
3268
3268
|
};
|
|
3269
3269
|
}, []);
|
|
3270
|
-
return (React__namespace.default.createElement("div", Object.assign({ role: "alert", className: cx__default.default('uui-notification_card', props.color && `uui-color-${props.color}`, css$
|
|
3271
|
-
React__namespace.default.createElement("div", { className: css$
|
|
3272
|
-
props.icon && (React__namespace.default.createElement("div", { className: css$
|
|
3273
|
-
React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$
|
|
3274
|
-
React__namespace.default.createElement("div", { className: css$
|
|
3270
|
+
return (React__namespace.default.createElement("div", Object.assign({ role: "alert", className: cx__default.default('uui-notification_card', props.color && `uui-color-${props.color}`, css$q.root, props.cx), ref: notificationCardNode }, props.rawProps),
|
|
3271
|
+
React__namespace.default.createElement("div", { className: css$q.mainPath },
|
|
3272
|
+
props.icon && (React__namespace.default.createElement("div", { className: css$q.iconWrapper },
|
|
3273
|
+
React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$q.actionIcon }))),
|
|
3274
|
+
React__namespace.default.createElement("div", { className: css$q.content },
|
|
3275
3275
|
props.children,
|
|
3276
|
-
props.actions && (React__namespace.default.createElement("div", { className: css$
|
|
3277
|
-
props.onClose && (React__namespace.default.createElement("div", { className: css$
|
|
3278
|
-
React__namespace.default.createElement(IconButton, { icon: ForwardRef$
|
|
3276
|
+
props.actions && (React__namespace.default.createElement("div", { className: css$q.actionWrapper }, props.actions.map((action) => (React__namespace.default.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$q.actionLink, size: "36", rawProps: action.rawProps })))))),
|
|
3277
|
+
props.onClose && (React__namespace.default.createElement("div", { className: css$q.closeWrapper },
|
|
3278
|
+
React__namespace.default.createElement(IconButton, { icon: ForwardRef$j, color: "neutral", onClick: props.onClose, cx: css$q.closeIcon }))))));
|
|
3279
3279
|
});
|
|
3280
|
-
const WarningNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
3281
|
-
const SuccessNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
3282
|
-
const HintNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
3283
|
-
const ErrorNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
3280
|
+
const WarningNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$G, color: "warning" }, props, { ref: ref, cx: props.cx }))));
|
|
3281
|
+
const SuccessNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$H, color: "success" }, props, { ref: ref, cx: props.cx }))));
|
|
3282
|
+
const HintNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$E, color: "info" }, props, { ref: ref, cx: props.cx }))));
|
|
3283
|
+
const ErrorNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$F, color: "error" }, props, { ref: ref, cx: props.cx }))));
|
|
3284
3284
|
class ClearNotification extends React__namespace.default.Component {
|
|
3285
3285
|
render() {
|
|
3286
|
-
return (React__namespace.default.createElement("div", { className: cx__default.default(css$
|
|
3286
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default(css$q.notificationWrapper, css$q.clearButton) },
|
|
3287
3287
|
React__namespace.default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => this.context.uuiNotifications.clearAll() })));
|
|
3288
3288
|
}
|
|
3289
3289
|
}
|
|
@@ -3293,7 +3293,7 @@ class ConfirmationModal extends React__namespace.Component {
|
|
|
3293
3293
|
render() {
|
|
3294
3294
|
let bodyContent;
|
|
3295
3295
|
if (this.props.bodyContent) {
|
|
3296
|
-
bodyContent = React__namespace.createElement(Panel, { margin: "24" }, this.props.bodyContent);
|
|
3296
|
+
bodyContent = React__namespace.createElement(Panel, { background: "surface", margin: "24" }, this.props.bodyContent);
|
|
3297
3297
|
}
|
|
3298
3298
|
return (React__namespace.createElement(ModalBlocker, Object.assign({}, this.props),
|
|
3299
3299
|
React__namespace.createElement(ModalWindow, { width: 420 },
|
|
@@ -3328,20 +3328,20 @@ class DatePicker extends uuiComponents.BaseDatePicker {
|
|
|
3328
3328
|
}
|
|
3329
3329
|
renderBody(props) {
|
|
3330
3330
|
var _a, _b, _c;
|
|
3331
|
-
return (React__namespace.default.createElement(DropdownContainer, Object.assign({}, props),
|
|
3331
|
+
return (React__namespace.default.createElement(DropdownContainer, Object.assign({}, props, { focusLock: false }),
|
|
3332
3332
|
React__namespace.default.createElement(DatePickerBody, { cx: uuiCore.cx(this.props.bodyCx), filter: this.props.filter, value: this.getValue(), setSelectedDate: this.setSelectedDate, setDisplayedDateAndView: this.setDisplayedDateAndView, changeIsOpen: this.onToggle, renderDay: this.props.renderDay, isHoliday: this.props.isHoliday, rawProps: (_a = this.props.rawProps) === null || _a === void 0 ? void 0 : _a.body }), (_c = (_b = this.props).renderFooter) === null || _c === void 0 ? void 0 :
|
|
3333
3333
|
_c.call(_b)));
|
|
3334
3334
|
}
|
|
3335
3335
|
}
|
|
3336
3336
|
|
|
3337
|
-
var css$
|
|
3337
|
+
var css$p = {"root":"_8x08oa"};
|
|
3338
3338
|
|
|
3339
3339
|
function applyCalendarPresetsMods() {
|
|
3340
|
-
return [css$
|
|
3340
|
+
return [css$p.root];
|
|
3341
3341
|
}
|
|
3342
3342
|
const CalendarPresets = uuiCore.withMods(uuiComponents.CalendarPresets, applyCalendarPresetsMods, () => ({}));
|
|
3343
3343
|
|
|
3344
|
-
var css$
|
|
3344
|
+
var css$o = {"root":"_7aHaaq","container":"_1tEewG","day-selection":"s4B1Su","from-picker":"_3Acw2X","to-picker":"ZxJ3Lm","bodes-wrapper":"jKftgh","blocker":"jQiH5d","daySelection":"s4B1Su","fromPicker":"_3Acw2X","toPicker":"ZxJ3Lm","bodesWrapper":"jKftgh"};
|
|
3345
3345
|
|
|
3346
3346
|
dayjs__default.default.extend(isoWeek__default.default);
|
|
3347
3347
|
function weekCount(displayedDate) {
|
|
@@ -3438,16 +3438,16 @@ class RangeDatePickerBody extends React__namespace.Component {
|
|
|
3438
3438
|
};
|
|
3439
3439
|
this.renderDatePicker = () => {
|
|
3440
3440
|
var _a, _b;
|
|
3441
|
-
return (React__namespace.createElement(FlexRow, { cx: [((_a = this.props.value) === null || _a === void 0 ? void 0 : _a.view) === 'DAY_SELECTION' && css$
|
|
3441
|
+
return (React__namespace.createElement(FlexRow, { cx: [((_a = this.props.value) === null || _a === void 0 ? void 0 : _a.view) === 'DAY_SELECTION' && css$o.daySelection, css$o.container], alignItems: "top" },
|
|
3442
3442
|
React__namespace.createElement(FlexCell, { width: "auto" },
|
|
3443
3443
|
React__namespace.createElement(FlexRow, null,
|
|
3444
|
-
React__namespace.createElement(FlexRow, { cx: css$
|
|
3445
|
-
React__namespace.createElement(DatePickerBody, { cx: uuiCore.cx(css$
|
|
3446
|
-
React__namespace.createElement(DatePickerBody, { cx: uuiCore.cx(css$
|
|
3444
|
+
React__namespace.createElement(FlexRow, { cx: css$o.bodesWrapper, alignItems: "top" },
|
|
3445
|
+
React__namespace.createElement(DatePickerBody, { cx: uuiCore.cx(css$o.fromPicker), setSelectedDate: (nv) => this.setSelectedDate(nv), value: this.getFromValue(), setDisplayedDateAndView: (displayedDate, view) => this.setDisplayedDateAndView(displayedDate, view, 'from'), getDayCX: this.getDayCX, filter: this.props.filter, renderDay: this.props.renderDay, isHoliday: this.props.isHoliday }),
|
|
3446
|
+
React__namespace.createElement(DatePickerBody, { cx: uuiCore.cx(css$o.toPicker), setSelectedDate: (nv) => this.setSelectedDate(nv), value: this.getToValue(), setDisplayedDateAndView: (displayedDate, view) => this.setDisplayedDateAndView(displayedDate, view, 'to'), getDayCX: this.getDayCX, filter: this.props.filter, renderDay: this.props.renderDay, isHoliday: this.props.isHoliday }),
|
|
3447
3447
|
((_b = this.props.value) === null || _b === void 0 ? void 0 : _b.view) !== 'DAY_SELECTION' && (React__namespace.createElement("div", { style: {
|
|
3448
3448
|
left: this.state.activePart === 'from' && '50%',
|
|
3449
3449
|
right: this.state.activePart === 'to' && '50%',
|
|
3450
|
-
}, className: css$
|
|
3450
|
+
}, className: css$o.blocker }))),
|
|
3451
3451
|
this.props.presets && this.renderPresets()),
|
|
3452
3452
|
this.props.renderFooter && this.props.renderFooter())));
|
|
3453
3453
|
};
|
|
@@ -3498,11 +3498,11 @@ class RangeDatePickerBody extends React__namespace.Component {
|
|
|
3498
3498
|
});
|
|
3499
3499
|
}
|
|
3500
3500
|
render() {
|
|
3501
|
-
return (React__namespace.createElement("div", Object.assign({ className: uuiCore.cx(css$
|
|
3501
|
+
return (React__namespace.createElement("div", Object.assign({ className: uuiCore.cx(css$o.root, uuiComponents.uuiDatePickerBodyBase.container, this.props.cx) }, this.props.rawProps), this.renderDatePicker()));
|
|
3502
3502
|
}
|
|
3503
3503
|
}
|
|
3504
3504
|
|
|
3505
|
-
var css$
|
|
3505
|
+
var css$n = {"dropdown-container":"e6lJqh","date-input":"YX63WL","size-24":"Ok7zil","size-30":"yMd82T","size-36":"JdfbIS","size-42":"qm7zcz","size-48":"yKgMLW","date-input-group":"Cbq1lZ","separator":"wIBvHc","mode-form":"qWi-Xx","mode-cell":"_4U6p4Q","dropdownContainer":"e6lJqh","dateInput":"YX63WL","size24":"Ok7zil","size30":"yMd82T","size36":"JdfbIS","size42":"qm7zcz","size48":"yKgMLW","dateInputGroup":"Cbq1lZ","modeForm":"qWi-Xx","modeCell":"_4U6p4Q"};
|
|
3506
3506
|
|
|
3507
3507
|
const defaultValue = { from: null, to: null };
|
|
3508
3508
|
class RangeDatePicker extends uuiComponents.BaseRangeDatePicker {
|
|
@@ -3521,35 +3521,36 @@ class RangeDatePicker extends uuiComponents.BaseRangeDatePicker {
|
|
|
3521
3521
|
});
|
|
3522
3522
|
}
|
|
3523
3523
|
}
|
|
3524
|
-
return (React__namespace.createElement("div", { className: cx__default.default(this.props.inputCx, css$
|
|
3525
|
-
React__namespace.createElement(TextInput, { icon: systemIcons[this.props.size || '36'].calendar, cx: cx__default.default(css$
|
|
3526
|
-
React__namespace.createElement("div", { className: css$
|
|
3527
|
-
React__namespace.createElement(TextInput, { cx: cx__default.default(css$
|
|
3524
|
+
return (React__namespace.createElement("div", { className: cx__default.default(this.props.inputCx, css$n.dateInputGroup, this.props.isDisabled && uuiCore.uuiMod.disabled, this.props.isReadonly && uuiCore.uuiMod.readonly, this.props.isInvalid && uuiCore.uuiMod.invalid, this.state.inFocus && uuiCore.uuiMod.focus), onClick: !this.props.isDisabled && props.onClick, onBlur: this.handleWrapperBlur, ref: props.ref },
|
|
3525
|
+
React__namespace.createElement(TextInput, { icon: systemIcons[this.props.size || '36'].calendar, cx: cx__default.default(css$n.dateInput, css$n['size-' + (this.props.size || 36)], this.state.inFocus === 'from' && uuiCore.uuiMod.focus), size: this.props.size || '36', placeholder: this.props.getPlaceholder ? this.props.getPlaceholder('from') : i18n.rangeDatePicker.pickerPlaceholderFrom, value: this.state.inputValue.from, onValueChange: this.getChangeHandler('from'), isInvalid: this.props.isInvalid, isDisabled: this.props.isDisabled, isReadonly: this.props.isReadonly, onFocus: (event) => this.handleFocus(event, 'from'), onBlur: (event) => this.handleBlur(event, 'from'), isDropdown: false, rawProps: (_a = this.props.rawProps) === null || _a === void 0 ? void 0 : _a.from }),
|
|
3526
|
+
React__namespace.createElement("div", { className: css$n.separator }),
|
|
3527
|
+
React__namespace.createElement(TextInput, { cx: cx__default.default(css$n.dateInput, css$n['size-' + (this.props.size || 36)], this.state.inFocus === 'to' && uuiCore.uuiMod.focus), placeholder: this.props.getPlaceholder ? this.props.getPlaceholder('to') : i18n.rangeDatePicker.pickerPlaceholderTo, size: this.props.size || '36', value: this.state.inputValue.to, onCancel: this.props.disableClear ? null : this.state.inputValue.from && this.state.inputValue.to && this.handleCancel, onValueChange: this.getChangeHandler('to'), isInvalid: this.props.isInvalid, isDisabled: this.props.isDisabled, isReadonly: this.props.isReadonly, onFocus: (e) => this.handleFocus(e, 'to'), onBlur: (e) => this.handleBlur(e, 'to'), isDropdown: false, rawProps: (_b = this.props.rawProps) === null || _b === void 0 ? void 0 : _b.to })));
|
|
3528
3528
|
};
|
|
3529
3529
|
}
|
|
3530
3530
|
renderBody(props) {
|
|
3531
3531
|
var _a;
|
|
3532
|
-
return (React__namespace.createElement(DropdownContainer, Object.assign({}, props, { cx: cx__default.default(css$
|
|
3532
|
+
return (React__namespace.createElement(DropdownContainer, Object.assign({}, props, { cx: cx__default.default(css$n.dropdownContainer), focusLock: false }),
|
|
3533
3533
|
React__namespace.createElement(FlexRow, null,
|
|
3534
3534
|
React__namespace.createElement(RangeDatePickerBody, { cx: cx__default.default(this.props.bodyCx), value: this.getValue(), onValueChange: this.onRangeChange, filter: this.props.filter, changeIsOpen: this.toggleOpening, presets: this.props.presets, focusPart: this.state.inFocus, renderDay: this.props.renderDay, renderFooter: this.props.renderFooter && (() => this.props.renderFooter(this.props.value || defaultValue)), isHoliday: this.props.isHoliday, rawProps: (_a = this.props.rawProps) === null || _a === void 0 ? void 0 : _a.body }))));
|
|
3535
3535
|
}
|
|
3536
3536
|
}
|
|
3537
3537
|
|
|
3538
|
-
var css$
|
|
3538
|
+
var css$m = {"root":"bZ0nVT","blocker":"qHkRPS","marker":"Qc-vcX","top":"m8OMc-","bottom":"_9Ly0iF","left":"VhmxkW","right":"_5U6Z3S","inside":"cm9htT"};
|
|
3539
3539
|
|
|
3540
3540
|
function DropMarker(props) {
|
|
3541
3541
|
return props.isDndInProgress
|
|
3542
3542
|
? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
3543
|
-
props.enableBlocker && React__namespace.createElement("div", { className: css$
|
|
3543
|
+
props.enableBlocker && React__namespace.createElement("div", { className: css$m.blocker }),
|
|
3544
3544
|
React__namespace.createElement("div", { className: cx__default.default([
|
|
3545
|
-
css$
|
|
3546
|
-
css$
|
|
3545
|
+
css$m.root,
|
|
3546
|
+
css$m.marker,
|
|
3547
|
+
css$m[props.position],
|
|
3547
3548
|
props === null || props === void 0 ? void 0 : props.cx,
|
|
3548
3549
|
]) })))
|
|
3549
3550
|
: null;
|
|
3550
3551
|
}
|
|
3551
3552
|
|
|
3552
|
-
var css$
|
|
3553
|
+
var css$l = {"root":"nyMs2x","size-24":"chkSyn","size-30":"YfZfvb","size-36":"f168Bn","size-48":"f9wik7","size-60":"_7DwaIp","size24":"chkSyn","size30":"YfZfvb","size36":"f168Bn","size48":"f9wik7","size60":"_7DwaIp"};
|
|
3553
3554
|
|
|
3554
3555
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
3555
3556
|
// 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.
|
|
@@ -3561,54 +3562,54 @@ const renderDropMarkers = (props) => React__namespace.createElement(DropMarker,
|
|
|
3561
3562
|
const propsMods = { renderCell, renderDropMarkers };
|
|
3562
3563
|
const DataTableRow = uuiCore.withMods(uuiComponents.DataTableRow, ({ borderBottom = true, size }) => {
|
|
3563
3564
|
return [
|
|
3564
|
-
css$
|
|
3565
|
+
css$l.root, 'uui-dt-vars', borderBottom && 'uui-dt-row-border', css$l['size-' + (size || '36')],
|
|
3565
3566
|
];
|
|
3566
3567
|
}, () => propsMods);
|
|
3567
3568
|
|
|
3568
|
-
var css$
|
|
3569
|
+
var css$k = {"panel":"r1fr9O"};
|
|
3569
3570
|
|
|
3570
|
-
var css$
|
|
3571
|
+
var css$j = {"sorting-panel-container":"g1Vwar","sort-active":"_1qQ-VD","sortingPanelContainer":"g1Vwar","sortActive":"_1qQ-VD"};
|
|
3571
3572
|
|
|
3572
|
-
var _path$
|
|
3573
|
-
function _extends$
|
|
3573
|
+
var _path$h;
|
|
3574
|
+
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); }
|
|
3574
3575
|
var SvgTableSortAsc18 = function SvgTableSortAsc18(props, ref) {
|
|
3575
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3576
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
|
|
3576
3577
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3577
3578
|
width: 18,
|
|
3578
3579
|
height: 18,
|
|
3579
3580
|
viewBox: "0 0 18 18",
|
|
3580
3581
|
ref: ref
|
|
3581
|
-
}, props), _path$
|
|
3582
|
+
}, props), _path$h || (_path$h = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3582
3583
|
fillRule: "evenodd",
|
|
3583
3584
|
d: "M10 6v10H8V6H5l4-4 4 4h-3z",
|
|
3584
3585
|
clipRule: "evenodd"
|
|
3585
3586
|
})));
|
|
3586
3587
|
};
|
|
3587
|
-
var ForwardRef$
|
|
3588
|
+
var ForwardRef$i = /*#__PURE__*/React.forwardRef(SvgTableSortAsc18);
|
|
3588
3589
|
|
|
3589
|
-
var _path$
|
|
3590
|
-
function _extends$
|
|
3590
|
+
var _path$g;
|
|
3591
|
+
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); }
|
|
3591
3592
|
var SvgTableSortDesc18 = function SvgTableSortDesc18(props, ref) {
|
|
3592
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3593
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
|
|
3593
3594
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3594
3595
|
width: 18,
|
|
3595
3596
|
height: 18,
|
|
3596
3597
|
viewBox: "0 0 18 18",
|
|
3597
3598
|
ref: ref
|
|
3598
|
-
}, props), _path$
|
|
3599
|
+
}, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3599
3600
|
fillRule: "evenodd",
|
|
3600
3601
|
d: "M10 12V2H8v10H5l4 4 4-4h-3z",
|
|
3601
3602
|
clipRule: "evenodd"
|
|
3602
3603
|
})));
|
|
3603
3604
|
};
|
|
3604
|
-
var ForwardRef$
|
|
3605
|
+
var ForwardRef$h = /*#__PURE__*/React.forwardRef(SvgTableSortDesc18);
|
|
3605
3606
|
|
|
3606
3607
|
const SortingPanelImpl = ({ sortDirection, onSort }) => {
|
|
3607
3608
|
const sortAsc = React.useCallback(() => onSort(sortDirection === 'asc' ? undefined : 'asc'), [onSort]);
|
|
3608
3609
|
const sortDesc = React.useCallback(() => onSort(sortDirection === 'desc' ? undefined : 'desc'), [onSort]);
|
|
3609
|
-
return (React__namespace.default.createElement(FlexCell, { cx: css$
|
|
3610
|
-
React__namespace.default.createElement(DropdownMenuButton, { isActive: sortDirection === 'asc', caption: i18n.pickerFilterHeader.sortAscending, icon: ForwardRef$
|
|
3611
|
-
React__namespace.default.createElement(DropdownMenuButton, { isActive: sortDirection === 'desc', caption: i18n.pickerFilterHeader.sortDescending, icon: ForwardRef$
|
|
3610
|
+
return (React__namespace.default.createElement(FlexCell, { cx: css$j.sortingPanelContainer },
|
|
3611
|
+
React__namespace.default.createElement(DropdownMenuButton, { isActive: sortDirection === 'asc', caption: i18n.pickerFilterHeader.sortAscending, icon: ForwardRef$i, onClick: sortAsc }),
|
|
3612
|
+
React__namespace.default.createElement(DropdownMenuButton, { isActive: sortDirection === 'desc', caption: i18n.pickerFilterHeader.sortDescending, icon: ForwardRef$h, onClick: sortDesc })));
|
|
3612
3613
|
};
|
|
3613
3614
|
const SortingPanel = React__namespace.default.memo(SortingPanelImpl);
|
|
3614
3615
|
|
|
@@ -3623,35 +3624,18 @@ const ColumnHeaderDropdownImpl = (props) => {
|
|
|
3623
3624
|
width: uuiCore.isMobile() ? document.documentElement.clientWidth : undefined,
|
|
3624
3625
|
}), []);
|
|
3625
3626
|
const closeDropdown = React.useCallback(() => props.onOpenChange(false), [props.onOpenChange]);
|
|
3626
|
-
return (React__namespace.default.createElement(uuiComponents.Dropdown, { renderTarget: props.renderTarget, renderBody: (dropdownProps) => (React__namespace.default.createElement(Panel, { style: style, shadow: true, cx: css$
|
|
3627
|
-
React__namespace.default.createElement(MobileDropdownWrapper, { title: props.title,
|
|
3627
|
+
return (React__namespace.default.createElement(uuiComponents.Dropdown, { renderTarget: props.renderTarget, renderBody: (dropdownProps) => (React__namespace.default.createElement(Panel, { background: "surface", style: style, shadow: true, cx: css$k.panel },
|
|
3628
|
+
React__namespace.default.createElement(MobileDropdownWrapper, { title: props.title, onClose: closeDropdown },
|
|
3628
3629
|
props.isSortable && React__namespace.default.createElement(SortingPanel, { sortDirection: props.sortDirection, onSort: props.onSort }),
|
|
3629
3630
|
props.renderFilter(dropdownProps)))), modifiers: popperModifiers, value: props.isOpen, onValueChange: props.onOpenChange }));
|
|
3630
3631
|
};
|
|
3631
3632
|
const ColumnHeaderDropdown = React__namespace.default.memo(ColumnHeaderDropdownImpl);
|
|
3632
3633
|
|
|
3633
|
-
var css$
|
|
3634
|
-
|
|
3635
|
-
var _path$g;
|
|
3636
|
-
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); }
|
|
3637
|
-
var SvgTableSwap18 = function SvgTableSwap18(props, ref) {
|
|
3638
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
|
|
3639
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
3640
|
-
width: 18,
|
|
3641
|
-
height: 18,
|
|
3642
|
-
viewBox: "0 0 18 18",
|
|
3643
|
-
ref: ref
|
|
3644
|
-
}, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3645
|
-
fillRule: "evenodd",
|
|
3646
|
-
d: "M6 1 2 5h3v7h2V5h3L6 1zm7 12V6h-2v7H8l4 4 4-4h-3z",
|
|
3647
|
-
clipRule: "evenodd"
|
|
3648
|
-
})));
|
|
3649
|
-
};
|
|
3650
|
-
var ForwardRef$h = /*#__PURE__*/React.forwardRef(SvgTableSwap18);
|
|
3634
|
+
var css$i = {"cell":"sJGH-C","sort-icon":"IujieB","dropdown-icon":"Gdb2Ci","infoIcon":"_3dxJZF","resizable":"Yyktb3","size-24":"fbKv6z","size-30":"zSSLS6","size-36":"qxVrMF","size-42":"fg39WD","size-48":"nwGPW0","padding-left-24":"_1ysUy-","padding-right-24":"X8x-O3","caption":"OXgK3-","checkbox":"_2yRY17","icon":"MKD8Qj","icon-cell":"_8vQMUZ","align-right":"Q4Yf-h","align-center":"BaKrBD","tooltip-wrapper":"YjcaTy","cell-tooltip":"_6kLiLR","upper-case":"Wr7wSp","font-size-14":"_2-qUIj","resize-mark":"EZjb6D","draggable":"laEVXa","ghost":"fzPGE-","is-dragged-out":"SE5Cr4","dnd-marker-left":"pmeURy","dnd-marker-right":"WqHnF1","cell-tooltip-wrapper":"Nv9lns","cell-tooltip-text":"m-JwZw","sortIcon":"IujieB","dropdownIcon":"Gdb2Ci","size24":"fbKv6z","size30":"zSSLS6","size36":"qxVrMF","size42":"fg39WD","size48":"nwGPW0","paddingLeft24":"_1ysUy-","paddingRight24":"X8x-O3","iconCell":"_8vQMUZ","alignRight":"Q4Yf-h","alignCenter":"BaKrBD","tooltipWrapper":"YjcaTy","cellTooltip":"_6kLiLR","upperCase":"Wr7wSp","fontSize14":"_2-qUIj","resizeMark":"EZjb6D","isDraggedOut":"SE5Cr4","dndMarkerLeft":"pmeURy","dndMarkerRight":"WqHnF1","cellTooltipWrapper":"Nv9lns","cellTooltipText":"m-JwZw"};
|
|
3651
3635
|
|
|
3652
3636
|
var _path$f;
|
|
3653
3637
|
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); }
|
|
3654
|
-
var
|
|
3638
|
+
var SvgTableSwap18 = function SvgTableSwap18(props, ref) {
|
|
3655
3639
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
|
|
3656
3640
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3657
3641
|
width: 18,
|
|
@@ -3660,15 +3644,15 @@ var SvgContentFiltration18 = function SvgContentFiltration18(props, ref) {
|
|
|
3660
3644
|
ref: ref
|
|
3661
3645
|
}, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3662
3646
|
fillRule: "evenodd",
|
|
3663
|
-
d: "
|
|
3647
|
+
d: "M6 1 2 5h3v7h2V5h3L6 1zm7 12V6h-2v7H8l4 4 4-4h-3z",
|
|
3664
3648
|
clipRule: "evenodd"
|
|
3665
3649
|
})));
|
|
3666
3650
|
};
|
|
3667
|
-
var ForwardRef$g = /*#__PURE__*/React.forwardRef(
|
|
3651
|
+
var ForwardRef$g = /*#__PURE__*/React.forwardRef(SvgTableSwap18);
|
|
3668
3652
|
|
|
3669
3653
|
var _path$e;
|
|
3670
3654
|
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); }
|
|
3671
|
-
var
|
|
3655
|
+
var SvgContentFiltration18 = function SvgContentFiltration18(props, ref) {
|
|
3672
3656
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
|
|
3673
3657
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3674
3658
|
width: 18,
|
|
@@ -3677,11 +3661,11 @@ var SvgNavigationChevronDown18 = function SvgNavigationChevronDown18(props, ref)
|
|
|
3677
3661
|
ref: ref
|
|
3678
3662
|
}, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3679
3663
|
fillRule: "evenodd",
|
|
3680
|
-
d: "
|
|
3664
|
+
d: "m8 14 2 2v-5H8v3zM2 3v2h14V3H2zm6 8h2l6-6H2l6 6z",
|
|
3681
3665
|
clipRule: "evenodd"
|
|
3682
3666
|
})));
|
|
3683
3667
|
};
|
|
3684
|
-
var ForwardRef$f = /*#__PURE__*/React.forwardRef(
|
|
3668
|
+
var ForwardRef$f = /*#__PURE__*/React.forwardRef(SvgContentFiltration18);
|
|
3685
3669
|
|
|
3686
3670
|
var _path$d;
|
|
3687
3671
|
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); }
|
|
@@ -3708,29 +3692,29 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
3708
3692
|
};
|
|
3709
3693
|
this.getTextStyle = () => {
|
|
3710
3694
|
if (this.props.textCase === 'upper')
|
|
3711
|
-
return css$
|
|
3712
|
-
return css$
|
|
3695
|
+
return css$i.upperCase;
|
|
3696
|
+
return css$i['font-size-14'];
|
|
3713
3697
|
};
|
|
3714
|
-
this.getTooltipContent = () => (React__namespace.createElement("div", { className: css$
|
|
3715
|
-
React__namespace.createElement(Text, { fontSize: "14", color: "contrast", font: "semibold", cx: css$
|
|
3716
|
-
this.props.column.info && React__namespace.createElement(Text, { fontSize: "12", color: "contrast", cx: css$
|
|
3698
|
+
this.getTooltipContent = () => (React__namespace.createElement("div", { className: css$i.cellTooltipWrapper },
|
|
3699
|
+
React__namespace.createElement(Text, { fontSize: "14", color: "contrast", font: "semibold", cx: css$i.cellTooltipText }, this.props.column.caption),
|
|
3700
|
+
this.props.column.info && React__namespace.createElement(Text, { fontSize: "12", color: "contrast", cx: css$i.cellTooltipText }, this.props.column.info)));
|
|
3717
3701
|
this.getColumnCaption = () => {
|
|
3718
|
-
return (React__namespace.createElement("div", { className: css$
|
|
3719
|
-
React__namespace.createElement("div", { className: uuiCore.cx(css$
|
|
3720
|
-
React__namespace.createElement(Tooltip, { placement: "top", color: "contrast", renderContent: this.getTooltipContent, cx: css$
|
|
3721
|
-
React__namespace.createElement(Text, { key: "text", lineHeight: "30", fontSize: "14", size: "30", cx: uuiCore.cx(css$
|
|
3722
|
-
this.props.column.isSortable && (!this.props.column.renderFilter || this.props.sortDirection) && (React__namespace.createElement(IconButton, { key: "sort", cx: uuiCore.cx(css$
|
|
3723
|
-
this.props.isFilterActive && (React__namespace.createElement(IconButton, { key: "filter", cx: uuiCore.cx(css$
|
|
3724
|
-
this.props.column.renderFilter && (React__namespace.createElement(IconButton, { key: "dropdown", cx: uuiCore.cx(css$
|
|
3702
|
+
return (React__namespace.createElement("div", { className: css$i.tooltipWrapper },
|
|
3703
|
+
React__namespace.createElement("div", { className: uuiCore.cx(css$i.iconCell, css$i['align-' + this.props.column.textAlign], uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaptionWrapper) },
|
|
3704
|
+
React__namespace.createElement(Tooltip, { placement: "top", color: "contrast", renderContent: this.getTooltipContent, cx: css$i.cellTooltip, openDelay: 600 },
|
|
3705
|
+
React__namespace.createElement(Text, { key: "text", lineHeight: "30", fontSize: "14", size: "30", cx: uuiCore.cx(css$i.caption, this.getTextStyle(), uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaption) }, this.props.column.caption)),
|
|
3706
|
+
this.props.column.isSortable && (!this.props.column.renderFilter || this.props.sortDirection) && (React__namespace.createElement(IconButton, { key: "sort", cx: uuiCore.cx(css$i.icon, css$i.sortIcon, this.props.sortDirection && css$i.sortIconActive, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderSortIcon), color: this.props.sortDirection ? 'neutral' : 'secondary', icon: this.props.sortDirection === 'desc' ? ForwardRef$h : this.props.sortDirection === 'asc' ? ForwardRef$i : ForwardRef$g })),
|
|
3707
|
+
this.props.isFilterActive && (React__namespace.createElement(IconButton, { key: "filter", cx: uuiCore.cx(css$i.icon, !this.props.sortDirection && css$i.filterIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderFilterIcon), color: "neutral", icon: ForwardRef$f })),
|
|
3708
|
+
this.props.column.renderFilter && (React__namespace.createElement(IconButton, { key: "dropdown", cx: uuiCore.cx(css$i.icon, css$i.dropdownIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderDropdownIcon), color: "secondary", icon: this.state.isDropdownOpen ? ForwardRef$e : ForwardRef$B })))));
|
|
3725
3709
|
};
|
|
3726
3710
|
this.renderHeaderCheckbox = () => this.props.selectAll
|
|
3727
|
-
&& this.props.isFirstColumn && (React__namespace.createElement(Checkbox, Object.assign({ size: +this.props.size < 36 ? '12' : '18' }, this.props.selectAll, { cx: uuiCore.cx(css$
|
|
3728
|
-
this.renderResizeMark = (props) => React__namespace.createElement("div", { onMouseDown: props.onResizeStart, className: uuiCore.cx(css$
|
|
3711
|
+
&& this.props.isFirstColumn && (React__namespace.createElement(Checkbox, Object.assign({ size: +this.props.size < 36 ? '12' : '18' }, this.props.selectAll, { cx: uuiCore.cx(css$i.checkbox, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCheckbox) })));
|
|
3712
|
+
this.renderResizeMark = (props) => React__namespace.createElement("div", { onMouseDown: props.onResizeStart, className: uuiCore.cx(css$i.resizeMark, uuiCore.uuiMarkers.draggable) });
|
|
3729
3713
|
this.renderCellContent = (props, dropdownProps) => (React__namespace.createElement(FlexCell, Object.assign({}, this.props.column, { minWidth: this.props.column.width, ref: (ref) => {
|
|
3730
3714
|
var _a;
|
|
3731
3715
|
props.ref(ref);
|
|
3732
3716
|
(_a = dropdownProps === null || dropdownProps === void 0 ? void 0 : dropdownProps.ref) === null || _a === void 0 ? void 0 : _a.call(dropdownProps, ref);
|
|
3733
|
-
}, cx: uuiCore.cx(uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCell, (this.props.column.isSortable || this.props.isDropdown) && uuiCore.uuiMarkers.clickable, css$
|
|
3717
|
+
}, cx: uuiCore.cx(uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCell, (this.props.column.isSortable || this.props.isDropdown) && uuiCore.uuiMarkers.clickable, css$i.cell, css$i['size-' + (this.props.size || '36')], this.props.isFirstColumn && css$i['padding-left-24'], this.props.isLastColumn && css$i['padding-right-24'], this.props.column.cx, this.props.allowColumnsResizing && css$i.resizable, props.isDraggable && css$i.draggable, props.isDragGhost && css$i.ghost, props.isDraggedOut && css$i.isDraggedOut, props.isDndInProgress && css$i['dnd-marker-' + props.position]), onClick: !this.props.column.renderFilter ? props.toggleSort : dropdownProps === null || dropdownProps === void 0 ? void 0 : dropdownProps.onClick, rawProps: Object.assign({ role: 'columnheader', 'aria-sort': this.props.sortDirection === 'asc' ? 'ascending' : this.props.sortDirection ? 'descending' : 'none' }, props.eventHandlers) }),
|
|
3734
3718
|
this.renderHeaderCheckbox(),
|
|
3735
3719
|
this.getColumnCaption(),
|
|
3736
3720
|
this.props.allowColumnsResizing && this.renderResizeMark(props)));
|
|
@@ -3741,7 +3725,7 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
3741
3725
|
}
|
|
3742
3726
|
}
|
|
3743
3727
|
|
|
3744
|
-
var css$
|
|
3728
|
+
var css$h = {"header-cell":"M2DtlP","config-icon":"Wc-ikU","headerCell":"M2DtlP","configIcon":"Wc-ikU"};
|
|
3745
3729
|
|
|
3746
3730
|
var _path$c;
|
|
3747
3731
|
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); }
|
|
@@ -3760,12 +3744,12 @@ var SvgActionSettings18 = function SvgActionSettings18(props, ref) {
|
|
|
3760
3744
|
};
|
|
3761
3745
|
var ForwardRef$d = /*#__PURE__*/React.forwardRef(SvgActionSettings18);
|
|
3762
3746
|
|
|
3763
|
-
const DataTableHeaderRow = uuiCore.withMods(uuiComponents.DataTableHeaderRow, () => [css$
|
|
3747
|
+
const DataTableHeaderRow = uuiCore.withMods(uuiComponents.DataTableHeaderRow, () => [css$h.root, 'uui-dt-vars'], (mods) => ({
|
|
3764
3748
|
renderCell: (props) => React__namespace.createElement(DataTableHeaderCell, Object.assign({}, props, { size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key })),
|
|
3765
|
-
renderConfigButton: () => React__namespace.createElement(IconButton, { key: "configuration", onClick: mods.onConfigButtonClick, cx: css$
|
|
3749
|
+
renderConfigButton: () => React__namespace.createElement(IconButton, { key: "configuration", onClick: mods.onConfigButtonClick, cx: css$h.configIcon, color: "neutral", icon: ForwardRef$d }),
|
|
3766
3750
|
}));
|
|
3767
3751
|
|
|
3768
|
-
var styles$1 = {"main-panel":"
|
|
3752
|
+
var styles$1 = {"main-panel":"ndBPUQ","group-title":"OYT8FZ","group-title-text":"wCAT-Y","group-title-badge":"sLrPLB","group-items":"AXxS5h","no-data":"Ns7EiE","h-divider":"aVxHy2","search-area":"_6BP6Bs","mainPanel":"ndBPUQ","groupTitle":"OYT8FZ","groupTitleText":"wCAT-Y","groupTitleBadge":"sLrPLB","groupItems":"AXxS5h","noData":"Ns7EiE","hDivider":"aVxHy2","searchArea":"_6BP6Bs"};
|
|
3769
3753
|
|
|
3770
3754
|
var _path$b;
|
|
3771
3755
|
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); }
|
|
@@ -3844,7 +3828,7 @@ function PinIconButton(props) {
|
|
|
3844
3828
|
React__namespace.createElement(IconButton, { icon: pinIcon, onClick: pinClickHandler, isDisabled: isPinnedAlways, color: isPinned ? 'info' : undefined }))));
|
|
3845
3829
|
}
|
|
3846
3830
|
|
|
3847
|
-
var styles = {"row-wrapper":"
|
|
3831
|
+
var styles = {"row-wrapper":"_3Cmguf","not-pinned":"BCDWws","pin-icon-button":"lREqHf","checkbox":"_3Fmb5g","drag-handle":"_5bTbKF","dnd-disabled":"WDJFCm","rowWrapper":"_3Cmguf","notPinned":"BCDWws","pinIconButton":"lREqHf","dragHandle":"_5bTbKF","dndDisabled":"WDJFCm"};
|
|
3848
3832
|
|
|
3849
3833
|
const ColumnRow = React__namespace.memo(function ColumnRow(props) {
|
|
3850
3834
|
const { column } = props;
|
|
@@ -3857,21 +3841,20 @@ const ColumnRow = React__namespace.memo(function ColumnRow(props) {
|
|
|
3857
3841
|
const _a = dndActorParams.eventHandlers, { onTouchStart, onPointerDown } = _a, restEventHandlers = __rest(_a, ["onTouchStart", "onPointerDown"]);
|
|
3858
3842
|
const wrapperAttrs = Object.assign(Object.assign({}, (isDndAllowed ? { ref: dndActorParams.ref } : {})), (isDndAllowed ? { rawProps: Object.assign({}, restEventHandlers) } : {}));
|
|
3859
3843
|
const dragHandleRawProps = Object.assign({}, (isDndAllowed ? { onTouchStart, onPointerDown } : {}));
|
|
3844
|
+
const dndActorPropsWithoutRef = __rest(dndActorParams, ["ref"]);
|
|
3860
3845
|
return (React__namespace.createElement(FlexRow, Object.assign({ size: "30", cx: wrapperClasses }, wrapperAttrs),
|
|
3861
|
-
React__namespace.createElement(
|
|
3862
|
-
|
|
3863
|
-
React__namespace.createElement(Checkbox, { key: column.key, label: props.renderItem ? props.renderItem(props.column) : column.caption, value: isVisible, onValueChange: toggleVisibility, isDisabled: column.isAlwaysVisible })),
|
|
3864
|
-
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
3846
|
+
React__namespace.createElement(uuiComponents.DragHandle, { rawProps: dragHandleRawProps, isDisabled: !isDndAllowed, cx: uuiCore.cx(styles.dragHandle, !isDndAllowed && styles.dndDisabled) }),
|
|
3847
|
+
React__namespace.createElement(Checkbox, { key: column.key, label: props.renderItem ? props.renderItem(props.column) : column.caption, value: isVisible, onValueChange: toggleVisibility, isDisabled: column.isAlwaysVisible, cx: styles.checkbox }),
|
|
3865
3848
|
React__namespace.createElement(FlexRow, { size: "30", cx: styles.pinIconButton },
|
|
3866
3849
|
React__namespace.createElement(PinIconButton, { id: column.key, isPinned: !!isPinned, canUnpin: !isPinnedAlways, onTogglePin: togglePin })),
|
|
3867
|
-
React__namespace.createElement(DropMarker, Object.assign({},
|
|
3850
|
+
React__namespace.createElement(DropMarker, Object.assign({}, dndActorPropsWithoutRef))));
|
|
3868
3851
|
};
|
|
3869
3852
|
return (React__namespace.createElement(uuiCore.DndActor, { key: column.key, srcData: data, dstData: data, canAcceptDrop: onCanAcceptDrop, onDrop: onDrop, render: renderContent }));
|
|
3870
3853
|
});
|
|
3871
3854
|
|
|
3872
3855
|
const renderGroupTitle = (title, amount) => (React__namespace.createElement(FlexRow, { size: "24", padding: "24", spacing: "6", cx: styles$1.groupTitle },
|
|
3873
3856
|
React__namespace.createElement(Text, { cx: styles$1.groupTitleText, font: "semibold", lineHeight: "24", fontSize: "14" }, title),
|
|
3874
|
-
React__namespace.createElement(Badge, { cx: styles$1.groupTitleBadge, caption: amount, color: "
|
|
3857
|
+
React__namespace.createElement(Badge, { cx: styles$1.groupTitleBadge, caption: amount, color: "neutral", size: "18" })));
|
|
3875
3858
|
function ColumnsConfigurationModal(props) {
|
|
3876
3859
|
const i18n$1 = i18n.tables.columnsConfigurationModal;
|
|
3877
3860
|
const { columns, columnsConfig: initialColumnsConfig, defaultConfig } = props, modalProps = __rest(props, ["columns", "columnsConfig", "defaultConfig"]);
|
|
@@ -3913,10 +3896,10 @@ function ColumnsConfigurationModal(props) {
|
|
|
3913
3896
|
React__namespace.createElement(ModalHeader, { title: i18n$1.configureColumnsTitle, onClose: close }),
|
|
3914
3897
|
React__namespace.createElement(FlexRow, { padding: "24", borderBottom: true, spacing: "12", cx: styles$1.searchArea },
|
|
3915
3898
|
React__namespace.createElement(SearchInput, { size: "30", value: searchValue, onValueChange: setSearchValue, placeholder: i18n$1.searchPlaceholder }),
|
|
3916
|
-
React__namespace.createElement(Dropdown, { closeOnTargetClick: true, renderBody: () => (React__namespace.createElement(Panel, { shadow: true },
|
|
3899
|
+
React__namespace.createElement(Dropdown, { closeOnTargetClick: true, renderBody: () => (React__namespace.createElement(Panel, { background: "surface", shadow: true },
|
|
3917
3900
|
React__namespace.createElement(DropdownMenuButton, { caption: i18n$1.clearAllButton, onClick: uncheckAll }),
|
|
3918
|
-
React__namespace.createElement(DropdownMenuButton, { caption: i18n$1.selectAllButton, onClick: checkAll }))), renderTarget: (props) => React__namespace.createElement(Button, Object.assign({}, props, { fill: "none", icon: ForwardRef$
|
|
3919
|
-
React__namespace.createElement(Panel, { cx: styles$1.mainPanel },
|
|
3901
|
+
React__namespace.createElement(DropdownMenuButton, { caption: i18n$1.selectAllButton, onClick: checkAll }))), renderTarget: (props) => React__namespace.createElement(Button, Object.assign({}, props, { fill: "none", icon: ForwardRef$s, size: "30", color: "secondary", isDropdown: false })) })),
|
|
3902
|
+
React__namespace.createElement(Panel, { background: "surface", cx: styles$1.mainPanel },
|
|
3920
3903
|
React__namespace.createElement(ScrollBars, null,
|
|
3921
3904
|
renderVisible(),
|
|
3922
3905
|
renderHidden(),
|
|
@@ -3924,12 +3907,67 @@ function ColumnsConfigurationModal(props) {
|
|
|
3924
3907
|
React__namespace.createElement(Text, { fontSize: "24", lineHeight: "30", color: "primary", font: "semibold" }, i18n$1.noResultsFound.text),
|
|
3925
3908
|
React__namespace.createElement(Text, { fontSize: "16", lineHeight: "24", font: "regular", color: "primary" }, i18n$1.noResultsFound.subText))))),
|
|
3926
3909
|
React__namespace.createElement(ModalFooter, { borderTop: true },
|
|
3927
|
-
React__namespace.createElement(LinkButton, { icon: ForwardRef$
|
|
3910
|
+
React__namespace.createElement(LinkButton, { icon: ForwardRef$r, caption: i18n$1.resetToDefaultButton, onClick: reset }),
|
|
3928
3911
|
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
3929
3912
|
React__namespace.createElement(Button, { fill: "none", color: "secondary", caption: i18n$1.cancelButton, onClick: close }),
|
|
3930
3913
|
noVisibleColumns ? (React__namespace.createElement(Tooltip, { content: i18n$1.enableAtLeastOneColumnMessage, placement: "top-end", color: "critical" }, applyButton)) : (applyButton)))));
|
|
3931
3914
|
}
|
|
3932
3915
|
|
|
3916
|
+
var css$g = {"listContainer":"AyNuAd","header":"_6fSx6A","group":"HcUve7","stickyHeader":"QAVdcT"};
|
|
3917
|
+
|
|
3918
|
+
const getChildrenAndRest = (row, rows) => {
|
|
3919
|
+
const firstNotChildIndex = rows.findIndex((other) => other.depth < row.depth || (row.depth === other.depth && other.isPinned));
|
|
3920
|
+
if (firstNotChildIndex === -1) {
|
|
3921
|
+
return [rows, []];
|
|
3922
|
+
}
|
|
3923
|
+
if (firstNotChildIndex === 0) {
|
|
3924
|
+
return [[], rows];
|
|
3925
|
+
}
|
|
3926
|
+
const children = rows.slice(0, firstNotChildIndex);
|
|
3927
|
+
const rest = rows.slice(firstNotChildIndex, rows.length);
|
|
3928
|
+
return [children, rest];
|
|
3929
|
+
};
|
|
3930
|
+
|
|
3931
|
+
function DataRowsGroup({ row, childRows, renderRow, top = 1, }) {
|
|
3932
|
+
var _a, _b;
|
|
3933
|
+
const rowRef = React.useRef();
|
|
3934
|
+
const childrenPinnedTop = row.isPinned ? (top + ((_b = (_a = rowRef.current) === null || _a === void 0 ? void 0 : _a.clientHeight) !== null && _b !== void 0 ? _b : 0)) : top;
|
|
3935
|
+
return (React__namespace.default.createElement("div", { className: css$g.group, key: row.rowKey },
|
|
3936
|
+
React__namespace.default.createElement("div", { className: row.isPinned ? css$g.stickyHeader : css$g.header,
|
|
3937
|
+
// Gaps between pinned parents should be removed by -1 from top height.
|
|
3938
|
+
// Otherwise, sometimes top value is rounded top.
|
|
3939
|
+
style: { zIndex: row.depth + 10, top: top - 1 }, ref: rowRef }, renderRow(row)),
|
|
3940
|
+
childRows.length > 0 && (React__namespace.default.createElement("div", null,
|
|
3941
|
+
React__namespace.default.createElement(DataRowsGroups, { rows: childRows, renderRow: renderRow, top: childrenPinnedTop })))));
|
|
3942
|
+
}
|
|
3943
|
+
const renderRows = (rows, renderRow, top) => {
|
|
3944
|
+
if (!rows.length)
|
|
3945
|
+
return [];
|
|
3946
|
+
const [row, ...rest] = rows;
|
|
3947
|
+
if (!rest.length) {
|
|
3948
|
+
return [renderRow(row)];
|
|
3949
|
+
}
|
|
3950
|
+
const [next] = rest;
|
|
3951
|
+
if (next.depth <= row.depth && !row.isPinned) {
|
|
3952
|
+
return [renderRow(row)].concat(renderRows(rest, renderRow, top));
|
|
3953
|
+
}
|
|
3954
|
+
const [children, otherRows] = getChildrenAndRest(row, rest);
|
|
3955
|
+
const group = (React__namespace.default.createElement(DataRowsGroup, { row: row, childRows: children, renderRow: renderRow, top: top, key: row.rowKey }));
|
|
3956
|
+
return [group].concat(renderRows(otherRows, renderRow, top));
|
|
3957
|
+
};
|
|
3958
|
+
function DataRowsGroups({ rows, renderRow, top = 1, }) {
|
|
3959
|
+
const rowsWithGroups = renderRows(rows, renderRow, top);
|
|
3960
|
+
// eslint-disable-next-line react/jsx-no-useless-fragment
|
|
3961
|
+
return (React__namespace.default.createElement(React__namespace.default.Fragment, null, rowsWithGroups));
|
|
3962
|
+
}
|
|
3963
|
+
|
|
3964
|
+
function DataRowsContainer({ estimatedHeight, listContainerRef, offsetY, rows, renderRow, headerRef, }) {
|
|
3965
|
+
var _a;
|
|
3966
|
+
return (React__namespace.default.createElement("div", { className: css$g.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
3967
|
+
React__namespace.default.createElement("div", { ref: listContainerRef, role: "rowgroup", style: { marginTop: offsetY } },
|
|
3968
|
+
React__namespace.default.createElement(DataRowsGroups, { rows: rows, renderRow: renderRow, top: (_a = headerRef === null || headerRef === void 0 ? void 0 : headerRef.current) === null || _a === void 0 ? void 0 : _a.clientHeight }))));
|
|
3969
|
+
}
|
|
3970
|
+
|
|
3933
3971
|
var _path$8, _path2, _path3, _path4, _path5, _path6, _g$1, _path7, _path8, _path9, _path10, _path11, _path12, _path13, _path14, _path15, _path16, _path17, _path18, _path19, _path20, _path21, _path22, _path23, _path24, _defs;
|
|
3934
3972
|
function _extends$9() { _extends$9 = 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$9.apply(this, arguments); }
|
|
3935
3973
|
var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
@@ -3941,7 +3979,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
3941
3979
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3942
3980
|
ref: ref
|
|
3943
3981
|
}, props), /*#__PURE__*/React__namespace.createElement("g", {
|
|
3944
|
-
clipPath: "url(#
|
|
3982
|
+
clipPath: "url(#4izetwbaxv8azmeb_a)"
|
|
3945
3983
|
}, _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3946
3984
|
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",
|
|
3947
3985
|
fill: "#F5F6FA"
|
|
@@ -3962,7 +4000,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
3962
4000
|
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",
|
|
3963
4001
|
fill: "#1D1E26"
|
|
3964
4002
|
})), /*#__PURE__*/React__namespace.createElement("mask", {
|
|
3965
|
-
id: "
|
|
4003
|
+
id: "4izetwhgipvq72oc6_b",
|
|
3966
4004
|
style: {
|
|
3967
4005
|
maskType: "alpha"
|
|
3968
4006
|
},
|
|
@@ -3975,7 +4013,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
3975
4013
|
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",
|
|
3976
4014
|
fill: "#9BDEFF"
|
|
3977
4015
|
}))), _g$1 || (_g$1 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
3978
|
-
mask: "url(#
|
|
4016
|
+
mask: "url(#4izetwhgipvq72oc6_b)",
|
|
3979
4017
|
fillRule: "evenodd",
|
|
3980
4018
|
clipRule: "evenodd"
|
|
3981
4019
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -4061,7 +4099,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4061
4099
|
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",
|
|
4062
4100
|
fill: "#fff"
|
|
4063
4101
|
}))), _defs || (_defs = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
4064
|
-
id: "
|
|
4102
|
+
id: "4izetwbaxv8azmeb_a"
|
|
4065
4103
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
4066
4104
|
fill: "#fff",
|
|
4067
4105
|
transform: "translate(.552)",
|
|
@@ -4070,18 +4108,19 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4070
4108
|
};
|
|
4071
4109
|
var ForwardRef$9 = /*#__PURE__*/React.forwardRef(SvgEmptyTable);
|
|
4072
4110
|
|
|
4073
|
-
var css$f = {"sticky-header":"
|
|
4111
|
+
var css$f = {"sticky-header":"UK-0j4","table":"xj5vlU","no-results":"Q-qmRZ","no-results-icon":"jKQzRl","no-results-title":"fkjUTM","stickyHeader":"UK-0j4","noResults":"Q-qmRZ","noResultsIcon":"jKQzRl","noResultsTitle":"fkjUTM"};
|
|
4074
4112
|
|
|
4075
4113
|
function DataTable(props) {
|
|
4076
4114
|
var _a;
|
|
4077
4115
|
const { uuiModals } = uuiCore.useUuiContext();
|
|
4116
|
+
const headerRef = React__namespace.useRef();
|
|
4078
4117
|
const columnsWithFilters = useColumnsWithFilters(props.columns, props.filters);
|
|
4079
4118
|
const { columns, config, defaultConfig } = uuiCore.useColumnsConfig(columnsWithFilters, (_a = props.value) === null || _a === void 0 ? void 0 : _a.columnsConfig);
|
|
4080
|
-
const
|
|
4081
|
-
return React__namespace.createElement(DataTableRow, Object.assign({ key: rowProps.rowKey, size: props.size, borderBottom: props.border }, rowProps));
|
|
4119
|
+
const defaultRenderRow = React__namespace.useCallback((rowProps) => {
|
|
4120
|
+
return React__namespace.createElement(DataTableRow, Object.assign({ key: rowProps.rowKey, size: props.size, borderBottom: props.border }, rowProps, { cx: css$f.cell }));
|
|
4082
4121
|
}, []);
|
|
4122
|
+
const renderRow = (row) => { var _a; return ((_a = props.renderRow) !== null && _a !== void 0 ? _a : defaultRenderRow)(Object.assign(Object.assign({}, row), { columns })); };
|
|
4083
4123
|
const rows = props.getRows();
|
|
4084
|
-
const renderedRows = rows.map((row) => (props.renderRow || renderRow)(Object.assign(Object.assign({}, row), { columns })));
|
|
4085
4124
|
const renderNoResultsBlock = React__namespace.useCallback(() => {
|
|
4086
4125
|
var _a;
|
|
4087
4126
|
return (React__namespace.createElement("div", { className: css$f.noResults }, props.renderNoResultsBlock ? ((_a = props.renderNoResultsBlock) === null || _a === void 0 ? void 0 : _a.call(props)) : (React__namespace.createElement(React__namespace.Fragment, null,
|
|
@@ -4102,27 +4141,27 @@ function DataTable(props) {
|
|
|
4102
4141
|
}, [
|
|
4103
4142
|
props.columns, config, defaultConfig, props.value, props.onValueChange, props.renderColumnsConfigurationModal,
|
|
4104
4143
|
]);
|
|
4105
|
-
const renderRowsContainer = React__namespace.useCallback(({ listContainerRef, estimatedHeight, offsetY, scrollShadows
|
|
4106
|
-
React__namespace.createElement("div", { className: css$f.stickyHeader },
|
|
4107
|
-
React__namespace.createElement(DataTableHeaderRow, { columns: columns, onConfigButtonClick: props.showColumnsConfig && onConfigurationButtonClick, selectAll: props.selectAll, size: props.size, textCase: props.headerTextCase, allowColumnsReordering: props.allowColumnsReordering, allowColumnsResizing: props.allowColumnsResizing, value: props.value, onValueChange: props.onValueChange }),
|
|
4144
|
+
const renderRowsContainer = React__namespace.useCallback(({ listContainerRef, estimatedHeight, offsetY, scrollShadows }) => (React__namespace.createElement(React__namespace.Fragment, null,
|
|
4145
|
+
React__namespace.createElement("div", { className: css$f.stickyHeader, ref: headerRef },
|
|
4146
|
+
React__namespace.createElement(DataTableHeaderRow, { columns: columns, onConfigButtonClick: props.showColumnsConfig && onConfigurationButtonClick, selectAll: props.selectAll, size: props.size, textCase: props.headerTextCase, allowColumnsReordering: props.allowColumnsReordering, allowColumnsResizing: props.allowColumnsResizing, value: Object.assign(Object.assign({}, props.value), { columnsConfig: config }), onValueChange: props.onValueChange }),
|
|
4108
4147
|
React__namespace.createElement("div", { className: uuiCore.cx(uuiCore.uuiScrollShadows.top, {
|
|
4109
4148
|
[uuiCore.uuiScrollShadows.topVisible]: scrollShadows.verticalTop,
|
|
4110
4149
|
}) })),
|
|
4111
|
-
props.exactRowsCount !== 0 ? (React__namespace.createElement(
|
|
4112
|
-
|
|
4150
|
+
props.exactRowsCount !== 0 ? (React__namespace.createElement(DataRowsContainer, { headerRef: headerRef, listContainerRef: listContainerRef, estimatedHeight: estimatedHeight, offsetY: offsetY, scrollShadows: scrollShadows, renderRow: renderRow, rows: rows })) : (renderNoResultsBlock === null || renderNoResultsBlock === void 0 ? void 0 : renderNoResultsBlock()),
|
|
4151
|
+
React__namespace.createElement(Blocker, { isEnabled: props.isReloading }))), [
|
|
4113
4152
|
props, columns, rows, renderNoResultsBlock, onConfigurationButtonClick,
|
|
4114
4153
|
]);
|
|
4115
4154
|
return (React__namespace.createElement(uuiComponents.DataTableSelectionProvider, { onCopy: props.onCopy, rows: rows, columns: columns },
|
|
4116
|
-
React__namespace.createElement(VirtualList, { value: props.value, onValueChange: props.onValueChange, onScroll: props.onScroll,
|
|
4155
|
+
React__namespace.createElement(VirtualList, { value: props.value, onValueChange: props.onValueChange, onScroll: props.onScroll, rowsCount: props.rowsCount, renderRows: renderRowsContainer, cx: uuiCore.cx(css$f.table, 'uui-dt-vars'), disableScroll: props.isReloading, rowsSelector: "[role=row]", rawProps: {
|
|
4117
4156
|
role: 'table',
|
|
4118
4157
|
'aria-colcount': columns.length,
|
|
4119
4158
|
'aria-rowcount': props.rowsCount,
|
|
4120
4159
|
} })));
|
|
4121
4160
|
}
|
|
4122
4161
|
|
|
4123
|
-
var css$e = {"root":"
|
|
4162
|
+
var css$e = {"root":"sZ-aKk"};
|
|
4124
4163
|
|
|
4125
|
-
var css$d = {"root":"
|
|
4164
|
+
var css$d = {"root":"qvMp4-","burger-content":"QZJCef","burgerContent":"QZJCef"};
|
|
4126
4165
|
|
|
4127
4166
|
var _path$7;
|
|
4128
4167
|
function _extends$8() { _extends$8 = 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$8.apply(this, arguments); }
|
|
@@ -4189,11 +4228,11 @@ var SvgTriangle = function SvgTriangle(props, ref) {
|
|
|
4189
4228
|
};
|
|
4190
4229
|
var ForwardRef$6 = /*#__PURE__*/React.forwardRef(SvgTriangle);
|
|
4191
4230
|
|
|
4192
|
-
var css$c = {"root":"
|
|
4231
|
+
var css$c = {"root":"ZLGe1w","button-primary":"ar9z3T","button-secondary":"nx0Dd1","hasIcon":"BxYBvl","dropdown":"n8EaG6","buttonPrimary":"ar9z3T","buttonSecondary":"nx0Dd1"};
|
|
4193
4232
|
|
|
4194
4233
|
const BurgerButton = uuiCore.withMods(uuiComponents.Button, (props) => [
|
|
4195
4234
|
css$c.root,
|
|
4196
|
-
'uui-
|
|
4235
|
+
'uui-main_menu-burger-button',
|
|
4197
4236
|
css$c['button-' + (props.type || 'primary')],
|
|
4198
4237
|
css$c['indent-' + (props.indentLevel || 0)],
|
|
4199
4238
|
props.isDropdown && css$c.dropdown,
|
|
@@ -4246,13 +4285,13 @@ var SvgMenuInputCancel = function SvgMenuInputCancel(props, ref) {
|
|
|
4246
4285
|
};
|
|
4247
4286
|
var ForwardRef$5 = /*#__PURE__*/React.forwardRef(SvgMenuInputCancel);
|
|
4248
4287
|
|
|
4249
|
-
var css$b = {"search-input":"
|
|
4288
|
+
var css$b = {"search-input":"wej8gI","searchInput":"wej8gI"};
|
|
4250
4289
|
|
|
4251
4290
|
function BurgerSearch(props) {
|
|
4252
|
-
return (React__namespace.createElement(uuiComponents.TextInput, { cx: cx__default.default(css$b.searchInput, 'uui-
|
|
4291
|
+
return (React__namespace.createElement(uuiComponents.TextInput, { cx: cx__default.default(css$b.searchInput, 'uui-main_menu-burger-search'), iconPosition: "left", icon: ForwardRef$15, placeholder: props.placeholder, value: props.value, onValueChange: props.onValueChange, onCancel: props.onCancel, cancelIcon: props.value && ForwardRef$5 }));
|
|
4253
4292
|
}
|
|
4254
4293
|
|
|
4255
|
-
var css$a = {"root":"
|
|
4294
|
+
var css$a = {"root":"mpQabO","group-header":"JWOBGZ","group-name":"crVrf-","line":"rLH9si","groupHeader":"JWOBGZ","groupName":"crVrf-"};
|
|
4256
4295
|
|
|
4257
4296
|
function BurgerGroupHeader(props) {
|
|
4258
4297
|
return (React__namespace.createElement("div", { className: cx__default.default(css$a.root, css$a.groupHeader, 'uui-burger-group-header') },
|
|
@@ -4260,7 +4299,7 @@ function BurgerGroupHeader(props) {
|
|
|
4260
4299
|
React__namespace.createElement("span", { className: css$a.groupName }, props.caption)));
|
|
4261
4300
|
}
|
|
4262
4301
|
|
|
4263
|
-
var css$9 = {"root":"
|
|
4302
|
+
var css$9 = {"root":"Q31ipb","type-primary":"_0-RgQ-","type-secondary":"HwgUAz","typePrimary":"_0-RgQ-","typeSecondary":"HwgUAz"};
|
|
4264
4303
|
|
|
4265
4304
|
var _path$4;
|
|
4266
4305
|
function _extends$4() { _extends$4 = 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$4.apply(this, arguments); }
|
|
@@ -4280,23 +4319,29 @@ var ForwardRef$4 = /*#__PURE__*/React.forwardRef(SvgChevronDown24);
|
|
|
4280
4319
|
|
|
4281
4320
|
const MainMenuButton = uuiCore.withMods(uuiComponents.Button, (mods) => [css$9.root, css$9['type-' + (mods.type || 'primary')]], () => ({ dropdownIcon: ForwardRef$4, role: 'menuitem' }));
|
|
4282
4321
|
|
|
4283
|
-
var css$8 = {"dropdown-body":"
|
|
4322
|
+
var css$8 = {"dropdown-body":"_2ACwI-","dropdownBody":"_2ACwI-"};
|
|
4284
4323
|
|
|
4285
4324
|
class MainMenuDropdown extends React__namespace.Component {
|
|
4286
4325
|
render() {
|
|
4287
4326
|
return (React__namespace.createElement(uuiComponents.Dropdown, { renderTarget: (props) => (React__namespace.createElement(MainMenuButton, Object.assign({ caption: this.props.caption }, props, { rawProps: this.props.rawProps, isLinkActive: this.props.isLinkActive, isDropdown: true }))), renderBody: (props) => {
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4327
|
+
const handleEscape = (e) => {
|
|
4328
|
+
if (e.key === 'Escape' && props.isOpen) {
|
|
4329
|
+
props.onClose();
|
|
4330
|
+
}
|
|
4331
|
+
};
|
|
4332
|
+
return (React__namespace.createElement(FocusLock__default.default, { returnFocus: true, persistentFocus: true, lockProps: { onKeyDown: handleEscape } },
|
|
4333
|
+
React__namespace.createElement("div", { className: cx__default.default(css$8.dropdownBody, 'uui-main_menu-dropdown') }, this.props.renderBody
|
|
4334
|
+
? this.props.renderBody(Object.assign({}, props))
|
|
4335
|
+
: React__namespace.Children.map(this.props.children, (item) => {
|
|
4336
|
+
if (!item)
|
|
4337
|
+
return item;
|
|
4338
|
+
return React__namespace.createElement(item.type, Object.assign(Object.assign({}, item.props), { onClick: item.props.onClick
|
|
4339
|
+
? () => {
|
|
4340
|
+
item.props.onClick();
|
|
4341
|
+
props.onClose();
|
|
4342
|
+
}
|
|
4343
|
+
: null }));
|
|
4344
|
+
}))));
|
|
4300
4345
|
}, placement: "bottom-start" }));
|
|
4301
4346
|
}
|
|
4302
4347
|
}
|
|
@@ -4304,7 +4349,7 @@ class MainMenuDropdown extends React__namespace.Component {
|
|
|
4304
4349
|
function applyMainMenuMods() {
|
|
4305
4350
|
return [
|
|
4306
4351
|
css$e.root,
|
|
4307
|
-
'uui-
|
|
4352
|
+
'uui-main_menu',
|
|
4308
4353
|
];
|
|
4309
4354
|
}
|
|
4310
4355
|
const MainMenu = uuiCore.withMods(uuiComponents.MainMenu, applyMainMenuMods, () => ({
|
|
@@ -4328,31 +4373,31 @@ var SvgGlobalMenu = function SvgGlobalMenu(props, ref) {
|
|
|
4328
4373
|
};
|
|
4329
4374
|
var ForwardRef$3 = /*#__PURE__*/React.forwardRef(SvgGlobalMenu);
|
|
4330
4375
|
|
|
4331
|
-
var css$7 = {"global-menu-btn":"
|
|
4376
|
+
var css$7 = {"global-menu-btn":"fD1CWC","globalMenuIcon":"_248sm-","globalMenuBtn":"fD1CWC"};
|
|
4332
4377
|
|
|
4333
4378
|
const GlobalMenu = React__namespace.forwardRef((props, ref) => (React__namespace.createElement("button", Object.assign({ ref: ref, id: "global_menu_toggle", className: cx__default.default(css$7.globalMenuBtn, props.cx) }, props.rawProps),
|
|
4334
4379
|
React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$3, cx: css$7.globalMenuIcon }))));
|
|
4335
4380
|
|
|
4336
|
-
var css$6 = {"container":"
|
|
4381
|
+
var css$6 = {"container":"zaRJhv","open":"B0Vf-s"};
|
|
4337
4382
|
|
|
4338
4383
|
const MainMenuAvatar = React__namespace.forwardRef((props, ref) => (React__namespace.createElement("button", { ref: ref, className: cx__default.default(css$6.container, props.isDropdown && css$6.dropdown, props.isOpen && css$6.open, props.onClick && uuiCore.uuiMarkers.clickable, props.cx), onClick: props.onClick },
|
|
4339
4384
|
React__namespace.createElement(uuiComponents.Avatar, { size: "36", img: props.avatarUrl }),
|
|
4340
4385
|
props.icon && React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon }),
|
|
4341
4386
|
props.isDropdown && (React__namespace.createElement("div", null,
|
|
4342
|
-
React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$
|
|
4387
|
+
React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$1b, flipY: props.isOpen }))))));
|
|
4343
4388
|
|
|
4344
|
-
var css$5 = {"search-input":"
|
|
4389
|
+
var css$5 = {"search-input":"i6FH-a","searchInput":"i6FH-a"};
|
|
4345
4390
|
|
|
4346
4391
|
const MainMenuSearch = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(uuiCore.IEditableDebouncer, Object.assign({}, props, { render: (iEditable) => {
|
|
4347
4392
|
var _a;
|
|
4348
|
-
return (React__namespace.createElement(uuiComponents.TextInput, Object.assign({ iconPosition: "left", icon: ForwardRef$
|
|
4393
|
+
return (React__namespace.createElement(uuiComponents.TextInput, Object.assign({ iconPosition: "left", icon: ForwardRef$15, cancelIcon: ((_a = props.value) === null || _a === void 0 ? void 0 : _a.length) > 0 && ForwardRef$5 }, props, iEditable, { ref: ref, cx: uuiCore.cx(css$5.searchInput, props.cx) }, props.rawProps)));
|
|
4349
4394
|
} }))));
|
|
4350
4395
|
|
|
4351
|
-
var css$4 = {"container":"
|
|
4396
|
+
var css$4 = {"container":"U-cezM"};
|
|
4352
4397
|
|
|
4353
4398
|
const MainMenuIcon = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(IconButton, Object.assign({ ref: ref, icon: props.icon, cx: uuiCore.cx(props.cx, css$4.container) }, props))));
|
|
4354
4399
|
|
|
4355
|
-
var css$3 = {"root":"
|
|
4400
|
+
var css$3 = {"root":"Q0jtOk"};
|
|
4356
4401
|
|
|
4357
4402
|
const Anchor = uuiCore.withMods(uuiComponents.Anchor, () => [css$3.root]);
|
|
4358
4403
|
|
|
@@ -4409,7 +4454,7 @@ var SvgShape = function SvgShape(props, ref) {
|
|
|
4409
4454
|
};
|
|
4410
4455
|
var ForwardRef$2 = /*#__PURE__*/React.forwardRef(SvgShape);
|
|
4411
4456
|
|
|
4412
|
-
var css$2 = {"root":"
|
|
4457
|
+
var css$2 = {"root":"czb8eW","drop-start":"WapaHZ","drop-over":"Vd3m5d","link":"cRXq0R","drop-area":"FJXA3j","icon-blue":"Ohqm6b","dropStart":"WapaHZ","dropOver":"Vd3m5d","dropArea":"FJXA3j","iconBlue":"Ohqm6b"};
|
|
4413
4458
|
|
|
4414
4459
|
class DropSpot extends React__namespace.Component {
|
|
4415
4460
|
constructor() {
|
|
@@ -4433,17 +4478,17 @@ class DropSpot extends React__namespace.Component {
|
|
|
4433
4478
|
}
|
|
4434
4479
|
}
|
|
4435
4480
|
|
|
4436
|
-
var css$1 = {"file-card-wrapper":"
|
|
4481
|
+
var css$1 = {"root":"uoIALi","file-card-wrapper":"_4hID-4","file-name":"L2FYye","error-card-wrapper":"dQWmp1","default-color":"yshbvi","doc-color":"WQXcU-","xls-color":"kfeHRw","pdf-color":"luEP1W","mov-color":"oSLb2S","img-color":"LlHfZ0","movie-color":"lAjr0i","error-block":"ZZh9Df","icons-block":"sYd3q-","fileCardWrapper":"_4hID-4","fileName":"L2FYye","errorCardWrapper":"dQWmp1","defaultColor":"yshbvi","docColor":"WQXcU-","xlsColor":"kfeHRw","pdfColor":"luEP1W","movColor":"oSLb2S","imgColor":"LlHfZ0","movieColor":"lAjr0i","errorBlock":"ZZh9Df","iconsBlock":"sYd3q-"};
|
|
4437
4482
|
|
|
4438
|
-
var css = {"root":"
|
|
4483
|
+
var css = {"root":"B93Ai5"};
|
|
4439
4484
|
|
|
4440
4485
|
const SvgCircleProgress = React__namespace.forwardRef((props, ref) => {
|
|
4441
4486
|
const outsetRadius = props.size / 2 - 1;
|
|
4442
4487
|
const insetRadius = props.size / 2 - 3;
|
|
4443
4488
|
const circumference = insetRadius * Math.PI;
|
|
4444
4489
|
return (React__namespace.createElement("svg", Object.assign({ className: css.root, width: props.size, height: props.size, ref: ref }, props.rawProps),
|
|
4445
|
-
React__namespace.createElement("circle", {
|
|
4446
|
-
React__namespace.createElement("circle", {
|
|
4490
|
+
React__namespace.createElement("circle", { strokeDasharray: circumference, strokeDashoffset: circumference - (props.progress / 100) * circumference, strokeWidth: insetRadius, fill: "transparent", r: insetRadius / 2, cx: props.size / 2, cy: props.size / 2 }),
|
|
4491
|
+
React__namespace.createElement("circle", { strokeWidth: 1, fill: "transparent", r: outsetRadius, cx: props.size / 2, cy: props.size / 2 })));
|
|
4447
4492
|
});
|
|
4448
4493
|
|
|
4449
4494
|
var _path$1;
|
|
@@ -4504,7 +4549,7 @@ const FileCard = React__namespace.forwardRef((props, ref) => {
|
|
|
4504
4549
|
case 'mp4':
|
|
4505
4550
|
case 'wmw':
|
|
4506
4551
|
case 'mkv':
|
|
4507
|
-
return React__namespace.createElement(uuiComponents.IconContainer, { size: 24, icon: fileIcons.videoIcon, cx: css$1.
|
|
4552
|
+
return React__namespace.createElement(uuiComponents.IconContainer, { size: 24, icon: fileIcons.videoIcon, cx: css$1.movColor });
|
|
4508
4553
|
case 'csv':
|
|
4509
4554
|
case 'xml':
|
|
4510
4555
|
return React__namespace.createElement(uuiComponents.IconContainer, { size: 24, icon: fileIcons.tableIcon, cx: css$1.defaultColor });
|
|
@@ -4543,7 +4588,7 @@ const FileCard = React__namespace.forwardRef((props, ref) => {
|
|
|
4543
4588
|
progress && progress < 100 && abortXHR();
|
|
4544
4589
|
onClick();
|
|
4545
4590
|
};
|
|
4546
|
-
return (React__namespace.createElement(FlexCell, { ref: ref, cx: uuiCore.cx(css$1.fileCardWrapper, (isLoading || (error === null || error === void 0 ? void 0 : error.isError)) && uuiCore.uuiMod.loading, componentCx, (error === null || error === void 0 ? void 0 : error.isError) && css$1.errorCardWrapper), minWidth: width, width: !width ? '100%' : undefined },
|
|
4591
|
+
return (React__namespace.createElement(FlexCell, { ref: ref, cx: uuiCore.cx(css$1.root, css$1.fileCardWrapper, (isLoading || (error === null || error === void 0 ? void 0 : error.isError)) && uuiCore.uuiMod.loading, componentCx, (error === null || error === void 0 ? void 0 : error.isError) && css$1.errorCardWrapper), minWidth: width, width: !width ? '100%' : undefined },
|
|
4547
4592
|
React__namespace.createElement(FlexRow, { cx: css$1.fileCardRow, size: "36", alignItems: "top", spacing: "6" },
|
|
4548
4593
|
fileExtension && getIcon(fileExtension),
|
|
4549
4594
|
React__namespace.createElement(FlexCell, { width: "100%" },
|
|
@@ -4589,6 +4634,7 @@ exports.DataPickerBody = DataPickerBody;
|
|
|
4589
4634
|
exports.DataPickerFooter = DataPickerFooter;
|
|
4590
4635
|
exports.DataPickerHeader = DataPickerHeader;
|
|
4591
4636
|
exports.DataPickerRow = DataPickerRow;
|
|
4637
|
+
exports.DataRowsContainer = DataRowsContainer;
|
|
4592
4638
|
exports.DataTable = DataTable;
|
|
4593
4639
|
exports.DataTableCell = DataTableCell;
|
|
4594
4640
|
exports.DataTableHeaderCell = DataTableHeaderCell;
|
|
@@ -4620,6 +4666,8 @@ exports.HintNotification = HintNotification;
|
|
|
4620
4666
|
exports.IconButton = IconButton;
|
|
4621
4667
|
exports.IndeterminateBar = IndeterminateBar;
|
|
4622
4668
|
exports.IndicatorBar = IndicatorBar;
|
|
4669
|
+
exports.Informer = Informer;
|
|
4670
|
+
exports.InputAddon = InputAddon;
|
|
4623
4671
|
exports.LabeledInput = LabeledInput;
|
|
4624
4672
|
exports.LinkButton = LinkButton;
|
|
4625
4673
|
exports.MainMenu = MainMenu;
|
|
@@ -4643,7 +4691,6 @@ exports.PickerItem = PickerItem;
|
|
|
4643
4691
|
exports.PickerList = PickerList;
|
|
4644
4692
|
exports.PickerListItem = PickerListItem;
|
|
4645
4693
|
exports.PickerModal = PickerModal;
|
|
4646
|
-
exports.PickerModalImpl = PickerModalImpl;
|
|
4647
4694
|
exports.PickerToggler = PickerToggler;
|
|
4648
4695
|
exports.PresetsPanel = PresetsPanel;
|
|
4649
4696
|
exports.ProgressBar = ProgressBar;
|
|
@@ -4673,7 +4720,6 @@ exports.WarningAlert = WarningAlert;
|
|
|
4673
4720
|
exports.WarningNotification = WarningNotification;
|
|
4674
4721
|
exports.allButtonColors = allButtonColors;
|
|
4675
4722
|
exports.allButtonFills = allButtonFills;
|
|
4676
|
-
exports.allButtonSemanticColors = allButtonSemanticColors;
|
|
4677
4723
|
exports.allEpamBadgeSemanticColors = allEpamBadgeSemanticColors;
|
|
4678
4724
|
exports.allFillStyles = allFillStyles;
|
|
4679
4725
|
exports.allFontStyles = allFontStyles;
|
|
@@ -4688,6 +4734,7 @@ exports.applyBadgeMods = applyBadgeMods;
|
|
|
4688
4734
|
exports.applyButtonMods = applyButtonMods;
|
|
4689
4735
|
exports.applyCheckboxMods = applyCheckboxMods;
|
|
4690
4736
|
exports.applyDateSelectionMods = applyDateSelectionMods;
|
|
4737
|
+
exports.applyInputAddonMods = applyInputAddonMods;
|
|
4691
4738
|
exports.applyNumericInputMods = applyNumericInputMods;
|
|
4692
4739
|
exports.applyProgressBarMods = applyProgressBarMods;
|
|
4693
4740
|
exports.applySpinnerMods = applySpinnerMods;
|