@epam/uui 5.2.0-rc.1 → 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 +988 -943
- package/index.esm.js.map +1 -1
- package/index.js +990 -942
- 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":"tbgwCL","border-bottom":"iwje0H","top-shadow":"_3So7xQ","size-24":"Ow-XX4","size-30":"soxBaO","size-36":"Gyo35r","size-42":"NkxY7H","size-48":"AA4Sog","padding-6":"QwsNEV","padding-12":"frd4g0","padding-18":"BvlE1L","padding-24":"faz4ou","margin-24":"_6OjcmT","margin-12":"mqq9Kk","vPadding-12":"MDJps0","vPadding-18":"jDRKd6","vPadding-24":"qjxD0b","vPadding-36":"_973vFo","vPadding-48":"SEibAr","spacing-6":"ZV-d1y","spacing-12":"TzgrkY","spacing-18":"LGQXGg","borderBottom":"iwje0H","topShadow":"_3So7xQ","size24":"Ow-XX4","size30":"soxBaO","size36":"Gyo35r","size42":"NkxY7H","size48":"AA4Sog","padding6":"QwsNEV","padding12":"frd4g0","padding18":"BvlE1L","padding24":"faz4ou","margin24":"_6OjcmT","margin12":"mqq9Kk","vPadding12":"MDJps0","vPadding18":"jDRKd6","vPadding24":"qjxD0b","vPadding36":"_973vFo","vPadding48":"SEibAr","spacing6":"ZV-d1y","spacing12":"TzgrkY","spacing18":"LGQXGg"};
|
|
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":"e2cfXp"};
|
|
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":"_6P9yfJ","size-24":"_6J69TO","size-30":"VK0FMi","size-36":"vnG8wA","size-42":"yzHcV0","size-48":"c-TKeo","size24":"_6J69TO","size30":"VK0FMi","size36":"vnG8wA","size42":"yzHcV0","size48":"c-TKeo"};
|
|
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":"xnzZXv"};
|
|
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":"rjT1Gf"};
|
|
1442
|
-
|
|
1443
|
-
var css$V = {"root":"QWgHtB","uui-spinner":"hGD-6B","uuiSpinner":"hGD-6B"};
|
|
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":"_2JXNhd"};
|
|
1453
|
-
|
|
1454
|
-
const CheckboxGroup = uuiCore.withMods(uuiComponents.CheckboxGroup, () => [css$U.root], () => ({ CheckboxInput: Checkbox }));
|
|
1455
|
-
|
|
1456
|
-
var css$T = {"root":"OWVGiv"};
|
|
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,76 +1690,79 @@ 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")));
|
|
1675
1699
|
props.renderTooltip = (tooltipProps) => React__namespace.createElement(Tooltip, Object.assign({ color: "critical" }, tooltipProps));
|
|
1676
1700
|
const isEditable = !!props.onValueChange;
|
|
1677
1701
|
props.cx = [
|
|
1702
|
+
'uui-dt-vars',
|
|
1678
1703
|
'data-table-cell',
|
|
1679
1704
|
props.cx,
|
|
1680
|
-
css$
|
|
1681
|
-
css$
|
|
1682
|
-
css$
|
|
1683
|
-
props.isFirstColumn && css$
|
|
1684
|
-
props.isLastColumn && css$
|
|
1685
|
-
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'}`],
|
|
1686
1711
|
(props.border || isEditable) && 'uui-dt-vertical-cell-border',
|
|
1687
1712
|
];
|
|
1688
1713
|
return React__namespace.createElement(uuiComponents.DataTableCell, Object.assign({}, props));
|
|
1689
1714
|
}
|
|
1690
1715
|
|
|
1691
|
-
var _path$
|
|
1692
|
-
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); }
|
|
1693
1718
|
var SvgNotificationDone24 = function SvgNotificationDone24(props, ref) {
|
|
1694
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1719
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$A({
|
|
1695
1720
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1696
1721
|
width: 24,
|
|
1697
1722
|
height: 24,
|
|
1698
1723
|
viewBox: "0 0 24 24",
|
|
1699
1724
|
ref: ref
|
|
1700
|
-
}, props), _path$
|
|
1725
|
+
}, props), _path$z || (_path$z = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1701
1726
|
fillRule: "evenodd",
|
|
1702
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",
|
|
1703
1728
|
clipRule: "evenodd"
|
|
1704
1729
|
})));
|
|
1705
1730
|
};
|
|
1706
|
-
var ForwardRef$
|
|
1731
|
+
var ForwardRef$A = /*#__PURE__*/React.forwardRef(SvgNotificationDone24);
|
|
1707
1732
|
|
|
1708
|
-
var _path$
|
|
1709
|
-
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); }
|
|
1710
1735
|
var SvgNotificationDone18 = function SvgNotificationDone18(props, ref) {
|
|
1711
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1736
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$z({
|
|
1712
1737
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1713
1738
|
width: 18,
|
|
1714
1739
|
height: 18,
|
|
1715
1740
|
viewBox: "0 0 18 18",
|
|
1716
1741
|
ref: ref
|
|
1717
|
-
}, props), _path$
|
|
1742
|
+
}, props), _path$y || (_path$y = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1718
1743
|
fillRule: "evenodd",
|
|
1719
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",
|
|
1720
1745
|
clipRule: "evenodd"
|
|
1721
1746
|
})));
|
|
1722
1747
|
};
|
|
1723
|
-
var ForwardRef$
|
|
1748
|
+
var ForwardRef$z = /*#__PURE__*/React.forwardRef(SvgNotificationDone18);
|
|
1724
1749
|
|
|
1725
|
-
var _path$
|
|
1726
|
-
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); }
|
|
1727
1752
|
var SvgNotificationDone12 = function SvgNotificationDone12(props, ref) {
|
|
1728
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1753
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$y({
|
|
1729
1754
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1730
1755
|
width: 12,
|
|
1731
1756
|
height: 12,
|
|
1732
1757
|
viewBox: "0 0 12 12",
|
|
1733
1758
|
ref: ref
|
|
1734
|
-
}, props), _path$
|
|
1759
|
+
}, props), _path$x || (_path$x = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1735
1760
|
d: "M11 3.6 9.462 2 4.846 6.8 2.538 4.4 1 6l3.846 4L11 3.6z"
|
|
1736
1761
|
})));
|
|
1737
1762
|
};
|
|
1738
|
-
var ForwardRef$
|
|
1763
|
+
var ForwardRef$y = /*#__PURE__*/React.forwardRef(SvgNotificationDone12);
|
|
1739
1764
|
|
|
1740
|
-
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"};
|
|
1741
1766
|
|
|
1742
1767
|
class DataPickerRow extends React__namespace.Component {
|
|
1743
1768
|
constructor() {
|
|
@@ -1745,60 +1770,59 @@ class DataPickerRow extends React__namespace.Component {
|
|
|
1745
1770
|
this.getIcon = (size) => {
|
|
1746
1771
|
switch (size) {
|
|
1747
1772
|
case '24':
|
|
1748
|
-
return ForwardRef$
|
|
1773
|
+
return ForwardRef$y;
|
|
1749
1774
|
case '30':
|
|
1750
|
-
return ForwardRef$
|
|
1775
|
+
return ForwardRef$z;
|
|
1751
1776
|
case '36':
|
|
1752
|
-
return ForwardRef$
|
|
1777
|
+
return ForwardRef$z;
|
|
1753
1778
|
case '42':
|
|
1754
|
-
return ForwardRef$B;
|
|
1755
|
-
default:
|
|
1756
1779
|
return ForwardRef$A;
|
|
1780
|
+
default:
|
|
1781
|
+
return ForwardRef$z;
|
|
1757
1782
|
}
|
|
1758
1783
|
};
|
|
1759
1784
|
this.column = {
|
|
1760
1785
|
key: 'name',
|
|
1761
1786
|
grow: 1,
|
|
1762
1787
|
width: 0,
|
|
1763
|
-
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 },
|
|
1764
1789
|
this.props.renderItem(item, rowProps),
|
|
1765
1790
|
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
1766
|
-
(rowProps.isChildrenSelected || rowProps.isSelected) && (React__namespace.createElement("div", { className: css$
|
|
1767
|
-
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' } }))))),
|
|
1768
1795
|
};
|
|
1769
1796
|
this.renderContent = () => {
|
|
1770
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' }));
|
|
1771
1798
|
};
|
|
1772
1799
|
}
|
|
1773
1800
|
render() {
|
|
1774
|
-
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 }));
|
|
1775
1802
|
}
|
|
1776
1803
|
}
|
|
1777
1804
|
|
|
1778
|
-
var css$
|
|
1805
|
+
var css$R = {"done":"_1f5JI6","container":"lMBOdO"};
|
|
1779
1806
|
|
|
1780
1807
|
const MobileDropdownWrapper = (props) => {
|
|
1781
|
-
const
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
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 }),
|
|
1785
1811
|
props.children,
|
|
1786
|
-
|
|
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" })));
|
|
1787
1813
|
};
|
|
1788
1814
|
|
|
1789
|
-
var
|
|
1790
|
-
|
|
1791
|
-
var _path$x, _path2$1;
|
|
1792
|
-
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); }
|
|
1793
1817
|
var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
1794
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1818
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$x({
|
|
1795
1819
|
width: 66,
|
|
1796
1820
|
height: 67,
|
|
1797
1821
|
viewBox: "0 0 66 67",
|
|
1798
1822
|
fill: "none",
|
|
1799
1823
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1800
1824
|
ref: ref
|
|
1801
|
-
}, props), _path$
|
|
1825
|
+
}, props), _path$w || (_path$w = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1802
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",
|
|
1803
1827
|
fill: "#EBEDF5"
|
|
1804
1828
|
})), _path2$1 || (_path2$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -1808,68 +1832,54 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
|
1808
1832
|
fill: "#6C6F80"
|
|
1809
1833
|
})));
|
|
1810
1834
|
};
|
|
1811
|
-
var ForwardRef$
|
|
1835
|
+
var ForwardRef$x = /*#__PURE__*/React.forwardRef(SvgSearchWithBackground);
|
|
1812
1836
|
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
return (
|
|
1830
|
-
|
|
1831
|
-
React__namespace.createElement(
|
|
1832
|
-
React__namespace.createElement(
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
this.props.renderFilter && React__namespace.createElement(FlexCell, { grow: 2 }, this.props.renderFilter(this.lens.prop('dataSourceState').prop('filter').toProps()))),
|
|
1853
|
-
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" })),
|
|
1854
|
-
React__namespace.createElement(ModalFooter, { padding: "24", vPadding: "24" }, this.props.renderFooter ? this.props.renderFooter(this.getFooterProps()) : this.renderFooter()))));
|
|
1855
|
-
}
|
|
1856
|
-
}
|
|
1857
|
-
class PickerModal extends React__namespace.Component {
|
|
1858
|
-
constructor() {
|
|
1859
|
-
super(...arguments);
|
|
1860
|
-
this.state = { selection: this.props.initialValue };
|
|
1861
|
-
this.lens = uuiCore.Lens.onState(this);
|
|
1862
|
-
}
|
|
1863
|
-
render() {
|
|
1864
|
-
return React__namespace.createElement(PickerModalImpl, Object.assign({}, this.props, this.lens.prop('selection').toProps(), { success: () => this.props.success(this.state.selection) }));
|
|
1865
|
-
}
|
|
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()))));
|
|
1866
1876
|
}
|
|
1867
1877
|
|
|
1868
|
-
var css$
|
|
1878
|
+
var css$P = {"root":"Cqz3Ry"};
|
|
1869
1879
|
|
|
1870
|
-
const AvatarStack = uuiCore.withMods(uuiComponents.AvatarStack, () => [css$
|
|
1880
|
+
const AvatarStack = uuiCore.withMods(uuiComponents.AvatarStack, () => [css$P.root]);
|
|
1871
1881
|
|
|
1872
|
-
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"};
|
|
1873
1883
|
|
|
1874
1884
|
const defaultSize$5 = '36';
|
|
1875
1885
|
const mapSize$1 = {
|
|
@@ -1883,8 +1893,8 @@ const mapSize$1 = {
|
|
|
1883
1893
|
function applyBadgeMods(mods) {
|
|
1884
1894
|
return [
|
|
1885
1895
|
'uui-badge',
|
|
1886
|
-
css$
|
|
1887
|
-
css$
|
|
1896
|
+
css$O.root,
|
|
1897
|
+
css$O['size-' + (mods.size || defaultSize$5)],
|
|
1888
1898
|
`fill-${mods.fill || 'solid'}`,
|
|
1889
1899
|
mods.color && `uui-color-${mods.color}`,
|
|
1890
1900
|
];
|
|
@@ -1895,7 +1905,7 @@ const Badge = uuiCore.withMods(uuiComponents.Button, applyBadgeMods, (props) =>
|
|
|
1895
1905
|
countPosition: 'left',
|
|
1896
1906
|
}));
|
|
1897
1907
|
|
|
1898
|
-
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"};
|
|
1899
1909
|
|
|
1900
1910
|
const defaultSize$4 = '36';
|
|
1901
1911
|
const mapSize = {
|
|
@@ -1907,107 +1917,120 @@ const mapSize = {
|
|
|
1907
1917
|
18: '18',
|
|
1908
1918
|
};
|
|
1909
1919
|
function applyTagMods(mods) {
|
|
1910
|
-
return [css$
|
|
1920
|
+
return [css$N['size-' + (mods.size || defaultSize$4)], css$N.root, 'uui-color-gray', 'uui-tag'];
|
|
1911
1921
|
}
|
|
1912
1922
|
const Tag = uuiCore.withMods(uuiComponents.Button, applyTagMods, (props) => ({
|
|
1913
1923
|
dropdownIcon: systemIcons[mapSize[props.size] || defaultSize$4].foldingArrow,
|
|
1914
1924
|
clearIcon: systemIcons[mapSize[props.size] || defaultSize$4].clear,
|
|
1915
1925
|
}));
|
|
1916
1926
|
|
|
1917
|
-
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"};
|
|
1918
1928
|
|
|
1919
|
-
var _path$
|
|
1920
|
-
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); }
|
|
1921
1931
|
var SvgNavigationChevronLeft12 = function SvgNavigationChevronLeft12(props, ref) {
|
|
1922
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1932
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$w({
|
|
1923
1933
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1924
1934
|
width: 12,
|
|
1925
1935
|
height: 12,
|
|
1926
1936
|
viewBox: "0 0 12 12",
|
|
1927
1937
|
ref: ref
|
|
1928
|
-
}, props), _path$
|
|
1938
|
+
}, props), _path$v || (_path$v = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1929
1939
|
fillRule: "evenodd",
|
|
1930
1940
|
d: "M7.705 3.705 7 3 4 6l3 3 .705-.705L5.415 6l2.29-2.295z",
|
|
1931
1941
|
clipRule: "evenodd"
|
|
1932
1942
|
})));
|
|
1933
1943
|
};
|
|
1934
|
-
var ForwardRef$
|
|
1944
|
+
var ForwardRef$w = /*#__PURE__*/React.forwardRef(SvgNavigationChevronLeft12);
|
|
1935
1945
|
|
|
1936
|
-
var _path$
|
|
1937
|
-
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); }
|
|
1938
1948
|
var SvgNavigationChevronRight12 = function SvgNavigationChevronRight12(props, ref) {
|
|
1939
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1949
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$v({
|
|
1940
1950
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1941
1951
|
width: 12,
|
|
1942
1952
|
height: 12,
|
|
1943
1953
|
viewBox: "0 0 12 12",
|
|
1944
1954
|
ref: ref
|
|
1945
|
-
}, props), _path$
|
|
1955
|
+
}, props), _path$u || (_path$u = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1946
1956
|
fillRule: "evenodd",
|
|
1947
1957
|
d: "m5 3-.705.705L6.585 6l-2.29 2.295L5 9l3-3-3-3z",
|
|
1948
1958
|
clipRule: "evenodd"
|
|
1949
1959
|
})));
|
|
1950
1960
|
};
|
|
1951
|
-
var ForwardRef$
|
|
1961
|
+
var ForwardRef$v = /*#__PURE__*/React.forwardRef(SvgNavigationChevronRight12);
|
|
1952
1962
|
|
|
1953
1963
|
function Paginator(props) {
|
|
1954
1964
|
const renderPaginator = (params) => {
|
|
1955
1965
|
var _a, _b;
|
|
1956
|
-
return (React__namespace.default.createElement("nav", Object.assign({ role: "navigation", className: css$
|
|
1957
|
-
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" }),
|
|
1958
1968
|
params.pages.map((page, index) => {
|
|
1959
1969
|
var _a, _b;
|
|
1960
1970
|
if (page.type === 'spacer') {
|
|
1961
|
-
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 }));
|
|
1962
1972
|
}
|
|
1963
1973
|
else {
|
|
1964
|
-
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" }));
|
|
1965
1975
|
}
|
|
1966
1976
|
}),
|
|
1967
|
-
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" })));
|
|
1968
1978
|
};
|
|
1969
1979
|
return React__namespace.default.createElement(uuiComponents.Paginator, Object.assign({}, props, { render: renderPaginator }));
|
|
1970
1980
|
}
|
|
1971
1981
|
|
|
1972
|
-
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"};
|
|
1973
1983
|
|
|
1974
1984
|
const IndeterminateBar = React__namespace.forwardRef((props, ref) => {
|
|
1975
|
-
return (React__namespace.createElement("div", { ref: ref, className: cx__default.default(props.cx, css$
|
|
1976
|
-
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) })));
|
|
1977
1987
|
});
|
|
1978
1988
|
|
|
1979
|
-
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"};
|
|
1980
1990
|
|
|
1981
1991
|
const defaultSize$3 = '12';
|
|
1982
1992
|
function applyProgressBarMods(mods) {
|
|
1983
1993
|
const size = mods.size || defaultSize$3;
|
|
1984
1994
|
return [
|
|
1985
|
-
css$
|
|
1995
|
+
css$K.root,
|
|
1996
|
+
css$K[`size-${size}`],
|
|
1997
|
+
mods.striped && css$K.striped,
|
|
1986
1998
|
];
|
|
1987
1999
|
}
|
|
1988
2000
|
const ProgressBar = uuiCore.withMods(uuiComponents.ProgressBar, applyProgressBarMods, (props) => ({
|
|
1989
2001
|
hideLabel: props.hideLabel || props.striped,
|
|
1990
2002
|
}));
|
|
1991
2003
|
|
|
1992
|
-
var css$
|
|
2004
|
+
var css$J = {"root":"-UOWB4"};
|
|
1993
2005
|
|
|
1994
2006
|
const IndicatorBar = React__namespace.forwardRef((props, ref) => {
|
|
1995
2007
|
const { progress } = props;
|
|
1996
|
-
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));
|
|
1997
2020
|
});
|
|
1998
2021
|
|
|
1999
2022
|
const MAX_ITEMS = 100;
|
|
2000
2023
|
const getMaxItems = (maxItems) => maxItems || maxItems === 0 ? maxItems : MAX_ITEMS;
|
|
2001
2024
|
|
|
2002
|
-
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"};
|
|
2003
2026
|
|
|
2004
2027
|
const defaultSize$2 = '36';
|
|
2005
2028
|
const defaultMode$1 = exports.EditMode.FORM;
|
|
2006
2029
|
function applyPickerTogglerMods(mods) {
|
|
2007
2030
|
return [
|
|
2008
|
-
css$
|
|
2009
|
-
css$
|
|
2010
|
-
css$
|
|
2031
|
+
css$H.root,
|
|
2032
|
+
css$H['size-' + (mods.size || defaultSize$2)],
|
|
2033
|
+
css$H['mode-' + (mods.mode || defaultMode$1)],
|
|
2011
2034
|
];
|
|
2012
2035
|
}
|
|
2013
2036
|
function PickerTogglerComponent(props, ref) {
|
|
@@ -2049,9 +2072,9 @@ function PickerTogglerComponent(props, ref) {
|
|
|
2049
2072
|
}
|
|
2050
2073
|
const PickerToggler = React__namespace.forwardRef(PickerTogglerComponent);
|
|
2051
2074
|
|
|
2052
|
-
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"};
|
|
2053
2076
|
|
|
2054
|
-
var css$
|
|
2077
|
+
var css$F = {"highlighted-text":"lab3ga","highlightedText":"lab3ga"};
|
|
2055
2078
|
|
|
2056
2079
|
const mergeHighlightRanges = (ranges) => {
|
|
2057
2080
|
const mergedRanges = [];
|
|
@@ -2105,7 +2128,7 @@ const getHighlightRanges = (str, search) => {
|
|
|
2105
2128
|
};
|
|
2106
2129
|
const getDecoratedText = (str, ranges) => ranges.map((range, index) => {
|
|
2107
2130
|
const rangeStr = str.substring(range.from, range.to);
|
|
2108
|
-
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));
|
|
2109
2132
|
});
|
|
2110
2133
|
const getHighlightedSearchMatches = (str, search) => {
|
|
2111
2134
|
if (!search || !str) {
|
|
@@ -2128,155 +2151,142 @@ class PickerItem extends React__namespace.Component {
|
|
|
2128
2151
|
}
|
|
2129
2152
|
render() {
|
|
2130
2153
|
var _a;
|
|
2131
|
-
const { size, avatarUrl, isLoading, isDisabled, icon, highlightSearchMatches, } = this.props;
|
|
2154
|
+
const { size, avatarUrl, isLoading, isDisabled, icon, highlightSearchMatches, cx, } = this.props;
|
|
2132
2155
|
const itemSize = size && size !== 'none' ? size : defaultSize$1;
|
|
2133
2156
|
const isMultiline = !!(this.props.title && this.props.subtitle);
|
|
2134
2157
|
const { search } = (_a = this.props.dataSourceState) !== null && _a !== void 0 ? _a : {};
|
|
2135
2158
|
const title = highlightSearchMatches ? getHighlightedSearchMatches(this.props.title, search) : this.props.title;
|
|
2136
2159
|
const subtitle = highlightSearchMatches ? getHighlightedSearchMatches(this.props.subtitle, search) : this.props.subtitle;
|
|
2137
|
-
return (React__namespace.createElement(FlexCell, { width: "auto", cx: css$
|
|
2138
|
-
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" },
|
|
2139
2162
|
avatarUrl && React__namespace.createElement(uuiComponents.Avatar, { isLoading: isLoading, img: avatarUrl, size: this.getAvatarSize(itemSize, isMultiline).toString() }),
|
|
2140
2163
|
icon && React__namespace.createElement(uuiComponents.IconContainer, { icon: icon }),
|
|
2141
2164
|
React__namespace.createElement(FlexCell, { width: "auto" },
|
|
2142
|
-
title && (React__namespace.createElement(Text, { size: itemSize, cx: css$
|
|
2143
|
-
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))))));
|
|
2144
2167
|
}
|
|
2145
2168
|
}
|
|
2146
2169
|
PickerItem.defaultProps = {
|
|
2147
2170
|
highlightSearchMatches: true,
|
|
2148
2171
|
};
|
|
2149
2172
|
|
|
2150
|
-
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"};
|
|
2151
2174
|
|
|
2152
2175
|
const pickerHeight$1 = 300;
|
|
2153
|
-
const pickerWidth
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
};
|
|
2161
|
-
this.renderRow = (rowProps, dataSourceState) => {
|
|
2162
|
-
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) })));
|
|
2163
|
-
};
|
|
2164
|
-
}
|
|
2165
|
-
toggleModalOpening() {
|
|
2166
|
-
const _a = this.props, { renderFooter, rawProps } = _a, restProps = __rest(_a, ["renderFooter", "rawProps"]);
|
|
2167
|
-
this.context.uuiModals
|
|
2168
|
-
.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 }))))
|
|
2169
2183
|
.then((newSelection) => {
|
|
2170
|
-
|
|
2171
|
-
this.returnFocusToInput();
|
|
2184
|
+
handleSelectionValueChange(newSelection);
|
|
2172
2185
|
})
|
|
2173
|
-
.catch(() => {
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
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 = () => {
|
|
2178
2204
|
if (uuiCore.isMobile()) {
|
|
2179
2205
|
return '48';
|
|
2180
2206
|
}
|
|
2181
|
-
return
|
|
2182
|
-
}
|
|
2183
|
-
|
|
2184
|
-
return {
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
};
|
|
2188
|
-
}
|
|
2189
|
-
|
|
2190
|
-
const
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
} },
|
|
2208
|
-
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
|
|
2209
|
-
? () => this.props.renderNotFound({
|
|
2210
|
-
search: this.state.dataSourceState.search,
|
|
2211
|
-
onClose: () => this.toggleBodyOpening(false),
|
|
2212
|
-
})
|
|
2213
|
-
: undefined })),
|
|
2214
|
-
this.renderFooter())));
|
|
2215
|
-
}
|
|
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 }));
|
|
2216
2233
|
}
|
|
2217
2234
|
|
|
2218
|
-
var css$
|
|
2235
|
+
var css$D = {"row":"JzCThO"};
|
|
2219
2236
|
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
}
|
|
2226
|
-
else {
|
|
2227
|
-
label = this.props.getName(this.props.value);
|
|
2228
|
-
}
|
|
2229
|
-
let component;
|
|
2230
|
-
if (this.props.checkbox) {
|
|
2231
|
-
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) })));
|
|
2232
|
-
}
|
|
2233
|
-
else {
|
|
2234
|
-
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) }));
|
|
2235
|
-
}
|
|
2236
|
-
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 });
|
|
2237
2242
|
}
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
class PickerList extends uuiComponents.PickerListBase {
|
|
2241
|
-
constructor() {
|
|
2242
|
-
super(...arguments);
|
|
2243
|
-
this.sessionStartTime = new Date().getTime();
|
|
2244
|
-
this.renderRow = (row) => {
|
|
2245
|
-
return React__namespace.default.createElement(PickerListItem, Object.assign({ getName: (item) => this.getName(item) }, row, { key: row.rowKey }));
|
|
2246
|
-
};
|
|
2247
|
-
this.handleShowPicker = () => {
|
|
2248
|
-
this.context.uuiModals
|
|
2249
|
-
.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 }))))
|
|
2250
|
-
.then((value) => {
|
|
2251
|
-
this.appendLastSelected([...this.getSelectedIdsArray(value)]);
|
|
2252
|
-
this.props.onValueChange(value);
|
|
2253
|
-
});
|
|
2254
|
-
};
|
|
2255
|
-
this.defaultRenderToggler = (props) => React__namespace.default.createElement(LinkButton, Object.assign({ caption: "Show all" }, props));
|
|
2243
|
+
else {
|
|
2244
|
+
label = props.getName(props.value);
|
|
2256
2245
|
}
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
const selectedRows = view.getSelectedRows();
|
|
2261
|
-
const rows = this.buildRowsList();
|
|
2262
|
-
const showPicker = viewProps.totalCount == null || viewProps.totalCount > this.getMaxDefaultItems();
|
|
2263
|
-
const renderToggler = this.props.renderModalToggler || this.defaultRenderToggler;
|
|
2264
|
-
const renderRow = this.props.renderRow || this.renderRow;
|
|
2265
|
-
return (React__namespace.default.createElement("div", null,
|
|
2266
|
-
!rows.length
|
|
2267
|
-
&& (this.props.noOptionsMessage || (React__namespace.default.createElement(Text, { color: "secondary", size: this.props.size }, "No options available"))),
|
|
2268
|
-
rows.map((row) => renderRow(Object.assign(Object.assign({}, row), { isDisabled: this.props.isDisabled }), this.state.dataSourceState)),
|
|
2269
|
-
showPicker
|
|
2270
|
-
&& renderToggler({
|
|
2271
|
-
onClick: this.handleShowPicker,
|
|
2272
|
-
caption: this.getModalTogglerCaption(viewProps.totalCount, view.getSelectedRowsCount()),
|
|
2273
|
-
isDisabled: this.props.isDisabled,
|
|
2274
|
-
}, 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) })));
|
|
2275
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)));
|
|
2276
2287
|
}
|
|
2277
|
-
PickerList.contextType = uuiCore.UuiContext;
|
|
2278
2288
|
|
|
2279
|
-
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"};
|
|
2280
2290
|
|
|
2281
2291
|
const defaultSize = '36';
|
|
2282
2292
|
const FilterPanelItemToggler = React__namespace.forwardRef((props, ref) => {
|
|
@@ -2301,64 +2311,51 @@ const FilterPanelItemToggler = React__namespace.forwardRef((props, ref) => {
|
|
|
2301
2311
|
};
|
|
2302
2312
|
const getTitle = props.predicateName ? `${props.title} ${props.predicateName}` : `${props.title}${props.selection ? ':' : ''}`;
|
|
2303
2313
|
const getSelectionText = () => props.selection.map((i, index) => (React__namespace.createElement(React__namespace.Fragment, { key: `${i}${index}` },
|
|
2304
|
-
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),
|
|
2305
2315
|
(props.postfix || index !== props.selection.length - 1) && React__namespace.createElement("span", null, ",\u00A0"))));
|
|
2306
2316
|
return (React__namespace.createElement(uuiComponents.FlexRow, Object.assign({}, props, { rawProps: {
|
|
2307
2317
|
style: { maxWidth: `${props.maxWidth ? props.maxWidth + 'px' : 'auto'}` },
|
|
2308
2318
|
role: 'button',
|
|
2309
2319
|
tabIndex: props.isDisabled ? -1 : 0,
|
|
2310
2320
|
onKeyDown: onKeyDownHandler,
|
|
2311
|
-
}, cx: cx__default.default(css$
|
|
2312
|
-
React__namespace.createElement(uuiComponents.FlexRow, { cx: css$
|
|
2313
|
-
React__namespace.createElement(Text, { size: props.size, cx: css$
|
|
2314
|
-
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 },
|
|
2315
2325
|
getSelectionText(),
|
|
2316
|
-
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))))),
|
|
2317
2327
|
!props.isDisabled && React__namespace.createElement(uuiComponents.IconContainer, { icon: systemIcons[props.size || defaultSize].foldingArrow, flipY: props.isOpen, cx: "uui-icon-dropdown" })));
|
|
2318
2328
|
});
|
|
2319
2329
|
|
|
2320
2330
|
const pickerHeight = 300;
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
return
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
}
|
|
2349
|
-
renderBody(props, rows) {
|
|
2350
|
-
const renderedDataRows = rows.map((props) => this.renderRow(props));
|
|
2351
|
-
const maxHeight = uuiCore.isMobile() ? document.documentElement.clientHeight : this.props.dropdownHeight || pickerHeight;
|
|
2352
|
-
const minBodyWidth = uuiCore.isMobile() ? document.documentElement.clientWidth : this.props.minBodyWidth || pickerWidth;
|
|
2353
|
-
return (React__namespace.createElement(Panel, { style: { width: minBodyWidth }, rawProps: { tabIndex: -1 }, cx: [uuiCore.uuiMarkers.lockFocus] },
|
|
2354
|
-
React__namespace.createElement(DataPickerBody, Object.assign({}, props, { selectionMode: this.props.selectionMode, rows: renderedDataRows, maxHeight: maxHeight, searchSize: "36", editMode: "dropdown" })),
|
|
2355
|
-
this.renderFooter()));
|
|
2356
|
-
}
|
|
2357
|
-
render() {
|
|
2358
|
-
var _a;
|
|
2359
|
-
const rows = this.getRows();
|
|
2360
|
-
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);
|
|
2361
|
-
}
|
|
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);
|
|
2362
2359
|
}
|
|
2363
2360
|
|
|
2364
2361
|
class FilterDatePickerBody extends uuiComponents.BaseDatePicker {
|
|
@@ -2393,7 +2390,7 @@ class FilterDatePickerBody extends uuiComponents.BaseDatePicker {
|
|
|
2393
2390
|
}
|
|
2394
2391
|
}
|
|
2395
2392
|
|
|
2396
|
-
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"};
|
|
2397
2394
|
|
|
2398
2395
|
class FilterRangeDatePickerBody extends uuiComponents.BaseRangeDatePicker {
|
|
2399
2396
|
constructor() {
|
|
@@ -2413,10 +2410,10 @@ class FilterRangeDatePickerBody extends uuiComponents.BaseRangeDatePicker {
|
|
|
2413
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 })),
|
|
2414
2411
|
React__namespace.createElement(FlexCell, { alignSelf: "stretch" },
|
|
2415
2412
|
React__namespace.createElement(FlexRow, { padding: "24", vPadding: "12" },
|
|
2416
|
-
React__namespace.createElement("div", { className: cx__default.default(css$
|
|
2417
|
-
React__namespace.createElement(TextInput, { icon: systemIcons['30'].calendar, cx: cx__default.default(css$
|
|
2418
|
-
React__namespace.createElement("div", { className: css$
|
|
2419
|
-
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') })),
|
|
2420
2417
|
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
2421
2418
|
React__namespace.createElement(LinkButton, { isDisabled: !this.state.inputValue.from && !this.state.inputValue.to, caption: i18n.pickerModal.clearAllButton, onClick: this.handleCancel })))));
|
|
2422
2419
|
}
|
|
@@ -2425,7 +2422,7 @@ class FilterRangeDatePickerBody extends uuiComponents.BaseRangeDatePicker {
|
|
|
2425
2422
|
}
|
|
2426
2423
|
}
|
|
2427
2424
|
|
|
2428
|
-
var css$
|
|
2425
|
+
var css$A = {"container":"eb-CfJ"};
|
|
2429
2426
|
|
|
2430
2427
|
function FilterNumericBody(props) {
|
|
2431
2428
|
var _a, _b;
|
|
@@ -2469,7 +2466,7 @@ function FilterNumericBody(props) {
|
|
|
2469
2466
|
if (isInRangePredicate) {
|
|
2470
2467
|
const value = props.value;
|
|
2471
2468
|
return (React__namespace.default.createElement("div", null,
|
|
2472
|
-
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 },
|
|
2473
2470
|
React__namespace.default.createElement(FlexCell, { width: "100%" },
|
|
2474
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 } })),
|
|
2475
2472
|
React__namespace.default.createElement(FlexCell, { width: "100%" },
|
|
@@ -2477,7 +2474,7 @@ function FilterNumericBody(props) {
|
|
|
2477
2474
|
renderFooter()));
|
|
2478
2475
|
}
|
|
2479
2476
|
return (React__namespace.default.createElement("div", null,
|
|
2480
|
-
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 },
|
|
2481
2478
|
React__namespace.default.createElement(FlexCell, { width: 130 },
|
|
2482
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 } }))),
|
|
2483
2480
|
renderFooter()));
|
|
@@ -2500,23 +2497,23 @@ function FilterItemBody(props) {
|
|
|
2500
2497
|
}
|
|
2501
2498
|
}
|
|
2502
2499
|
|
|
2503
|
-
var _path$
|
|
2504
|
-
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); }
|
|
2505
2502
|
var SvgActionDeleteforever12 = function SvgActionDeleteforever12(props, ref) {
|
|
2506
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2503
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$u({
|
|
2507
2504
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2508
2505
|
width: 12,
|
|
2509
2506
|
height: 12,
|
|
2510
2507
|
viewBox: "0 0 18 18",
|
|
2511
2508
|
ref: ref
|
|
2512
|
-
}, props), _path$
|
|
2509
|
+
}, props), _path$t || (_path$t = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2513
2510
|
fillRule: "evenodd",
|
|
2514
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"
|
|
2515
2512
|
})));
|
|
2516
2513
|
};
|
|
2517
|
-
var ForwardRef$
|
|
2514
|
+
var ForwardRef$u = /*#__PURE__*/React.forwardRef(SvgActionDeleteforever12);
|
|
2518
2515
|
|
|
2519
|
-
var css$
|
|
2516
|
+
var css$z = {"root":"_--ae2T","header":"I-B3Zr","removeButton":"XHG7rl","with-search":"fVy-Ml","withSearch":"fVy-Ml"};
|
|
2520
2517
|
|
|
2521
2518
|
function FiltersToolbarItemImpl(props) {
|
|
2522
2519
|
const { maxCount = 2 } = props;
|
|
@@ -2592,18 +2589,17 @@ function FiltersToolbarItemImpl(props) {
|
|
|
2592
2589
|
};
|
|
2593
2590
|
const renderHeader = (hideTitle) => {
|
|
2594
2591
|
var _a;
|
|
2595
|
-
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)) },
|
|
2596
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))),
|
|
2597
|
-
!(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 }))));
|
|
2598
2595
|
};
|
|
2599
2596
|
const renderBody = (dropdownProps) => {
|
|
2600
2597
|
const hideHeaderTitle = isPickersType && isMobileScreen;
|
|
2601
|
-
return (React__namespace.default.createElement(
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
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 }))));
|
|
2607
2603
|
};
|
|
2608
2604
|
const getValue = () => {
|
|
2609
2605
|
var _a;
|
|
@@ -2682,20 +2678,20 @@ function FiltersToolbarItemImpl(props) {
|
|
|
2682
2678
|
}
|
|
2683
2679
|
const FiltersPanelItem = React__namespace.default.memo(FiltersToolbarItemImpl);
|
|
2684
2680
|
|
|
2685
|
-
var _path$
|
|
2686
|
-
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); }
|
|
2687
2683
|
var SvgActionAdd18 = function SvgActionAdd18(props, ref) {
|
|
2688
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2684
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$t({
|
|
2689
2685
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2690
2686
|
width: 18,
|
|
2691
2687
|
height: 18,
|
|
2692
2688
|
viewBox: "0 0 18 18",
|
|
2693
2689
|
ref: ref
|
|
2694
|
-
}, props), _path$
|
|
2690
|
+
}, props), _path$s || (_path$s = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2695
2691
|
d: "M10 2H8v6H2v2h6v6h2v-6h6V8h-6V2z"
|
|
2696
2692
|
})));
|
|
2697
2693
|
};
|
|
2698
|
-
var ForwardRef$
|
|
2694
|
+
var ForwardRef$t = /*#__PURE__*/React.forwardRef(SvgActionAdd18);
|
|
2699
2695
|
|
|
2700
2696
|
const normalizeFilterWithPredicates = (filter) => {
|
|
2701
2697
|
if (!filter) {
|
|
@@ -2786,7 +2782,7 @@ function FiltersToolbarImpl(props) {
|
|
|
2786
2782
|
}, [filters, tableState.filtersConfig]);
|
|
2787
2783
|
const renderAddFilterToggler = React.useCallback((togglerProps) => {
|
|
2788
2784
|
var _a;
|
|
2789
|
-
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" }));
|
|
2790
2786
|
}, []);
|
|
2791
2787
|
const getRowOptions = React.useCallback((item) => ({
|
|
2792
2788
|
isDisabled: item.isAlwaysVisible,
|
|
@@ -2813,30 +2809,13 @@ function FiltersToolbarImpl(props) {
|
|
|
2813
2809
|
}
|
|
2814
2810
|
const FiltersPanel = React__namespace.default.memo(FiltersToolbarImpl);
|
|
2815
2811
|
|
|
2816
|
-
var css$
|
|
2812
|
+
var css$y = {"divider":"B95GQr","dropdownDeleteIcon":"_2pUECw","presetsWrapper":"_6o3yWT","addPresetContainer":"jReawz","dropContainer":"duOJxw"};
|
|
2817
2813
|
|
|
2818
|
-
var css$
|
|
2819
|
-
|
|
2820
|
-
var _path$s;
|
|
2821
|
-
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); }
|
|
2822
|
-
var SvgNavigationMoreVert18 = function SvgNavigationMoreVert18(props, ref) {
|
|
2823
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$t({
|
|
2824
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2825
|
-
width: 18,
|
|
2826
|
-
height: 18,
|
|
2827
|
-
viewBox: "0 0 18 18",
|
|
2828
|
-
ref: ref
|
|
2829
|
-
}, props), _path$s || (_path$s = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2830
|
-
fillRule: "evenodd",
|
|
2831
|
-
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",
|
|
2832
|
-
clipRule: "evenodd"
|
|
2833
|
-
})));
|
|
2834
|
-
};
|
|
2835
|
-
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"};
|
|
2836
2815
|
|
|
2837
2816
|
var _path$r;
|
|
2838
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); }
|
|
2839
|
-
var
|
|
2818
|
+
var SvgNavigationMoreVert18 = function SvgNavigationMoreVert18(props, ref) {
|
|
2840
2819
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$s({
|
|
2841
2820
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2842
2821
|
width: 18,
|
|
@@ -2845,15 +2824,15 @@ var SvgActionUpdate18 = function SvgActionUpdate18(props, ref) {
|
|
|
2845
2824
|
ref: ref
|
|
2846
2825
|
}, props), _path$r || (_path$r = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2847
2826
|
fillRule: "evenodd",
|
|
2848
|
-
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",
|
|
2849
2828
|
clipRule: "evenodd"
|
|
2850
2829
|
})));
|
|
2851
2830
|
};
|
|
2852
|
-
var ForwardRef$s = /*#__PURE__*/React.forwardRef(
|
|
2831
|
+
var ForwardRef$s = /*#__PURE__*/React.forwardRef(SvgNavigationMoreVert18);
|
|
2853
2832
|
|
|
2854
2833
|
var _path$q;
|
|
2855
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); }
|
|
2856
|
-
var
|
|
2835
|
+
var SvgActionUpdate18 = function SvgActionUpdate18(props, ref) {
|
|
2857
2836
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$r({
|
|
2858
2837
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2859
2838
|
width: 18,
|
|
@@ -2861,14 +2840,16 @@ var SvgSaveOutline18 = function SvgSaveOutline18(props, ref) {
|
|
|
2861
2840
|
viewBox: "0 0 18 18",
|
|
2862
2841
|
ref: ref
|
|
2863
2842
|
}, props), _path$q || (_path$q = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2864
|
-
|
|
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"
|
|
2865
2846
|
})));
|
|
2866
2847
|
};
|
|
2867
|
-
var ForwardRef$r = /*#__PURE__*/React.forwardRef(
|
|
2848
|
+
var ForwardRef$r = /*#__PURE__*/React.forwardRef(SvgActionUpdate18);
|
|
2868
2849
|
|
|
2869
2850
|
var _path$p;
|
|
2870
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); }
|
|
2871
|
-
var
|
|
2852
|
+
var SvgSaveOutline18 = function SvgSaveOutline18(props, ref) {
|
|
2872
2853
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
|
|
2873
2854
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2874
2855
|
width: 18,
|
|
@@ -2876,16 +2857,14 @@ var SvgContentEditUndo18 = function SvgContentEditUndo18(props, ref) {
|
|
|
2876
2857
|
viewBox: "0 0 18 18",
|
|
2877
2858
|
ref: ref
|
|
2878
2859
|
}, props), _path$p || (_path$p = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2879
|
-
|
|
2880
|
-
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",
|
|
2881
|
-
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"
|
|
2882
2861
|
})));
|
|
2883
2862
|
};
|
|
2884
|
-
var ForwardRef$q = /*#__PURE__*/React.forwardRef(
|
|
2863
|
+
var ForwardRef$q = /*#__PURE__*/React.forwardRef(SvgSaveOutline18);
|
|
2885
2864
|
|
|
2886
2865
|
var _path$o;
|
|
2887
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); }
|
|
2888
|
-
var
|
|
2867
|
+
var SvgContentEditUndo18 = function SvgContentEditUndo18(props, ref) {
|
|
2889
2868
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
|
|
2890
2869
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2891
2870
|
width: 18,
|
|
@@ -2894,15 +2873,15 @@ var SvgActionCopyContent18 = function SvgActionCopyContent18(props, ref) {
|
|
|
2894
2873
|
ref: ref
|
|
2895
2874
|
}, props), _path$o || (_path$o = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2896
2875
|
fillRule: "evenodd",
|
|
2897
|
-
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",
|
|
2898
2877
|
clipRule: "evenodd"
|
|
2899
2878
|
})));
|
|
2900
2879
|
};
|
|
2901
|
-
var ForwardRef$p = /*#__PURE__*/React.forwardRef(
|
|
2880
|
+
var ForwardRef$p = /*#__PURE__*/React.forwardRef(SvgContentEditUndo18);
|
|
2902
2881
|
|
|
2903
2882
|
var _path$n;
|
|
2904
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); }
|
|
2905
|
-
var
|
|
2884
|
+
var SvgActionCopyContent18 = function SvgActionCopyContent18(props, ref) {
|
|
2906
2885
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
|
|
2907
2886
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2908
2887
|
width: 18,
|
|
@@ -2911,15 +2890,15 @@ var SvgContentEdit18 = function SvgContentEdit18(props, ref) {
|
|
|
2911
2890
|
ref: ref
|
|
2912
2891
|
}, props), _path$n || (_path$n = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2913
2892
|
fillRule: "evenodd",
|
|
2914
|
-
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",
|
|
2915
2894
|
clipRule: "evenodd"
|
|
2916
2895
|
})));
|
|
2917
2896
|
};
|
|
2918
|
-
var ForwardRef$o = /*#__PURE__*/React.forwardRef(
|
|
2897
|
+
var ForwardRef$o = /*#__PURE__*/React.forwardRef(SvgActionCopyContent18);
|
|
2919
2898
|
|
|
2920
2899
|
var _path$m;
|
|
2921
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); }
|
|
2922
|
-
var
|
|
2901
|
+
var SvgContentEdit18 = function SvgContentEdit18(props, ref) {
|
|
2923
2902
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
|
|
2924
2903
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2925
2904
|
width: 18,
|
|
@@ -2928,15 +2907,15 @@ var SvgContentLink18 = function SvgContentLink18(props, ref) {
|
|
|
2928
2907
|
ref: ref
|
|
2929
2908
|
}, props), _path$m || (_path$m = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2930
2909
|
fillRule: "evenodd",
|
|
2931
|
-
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",
|
|
2932
2911
|
clipRule: "evenodd"
|
|
2933
2912
|
})));
|
|
2934
2913
|
};
|
|
2935
|
-
var ForwardRef$n = /*#__PURE__*/React.forwardRef(
|
|
2914
|
+
var ForwardRef$n = /*#__PURE__*/React.forwardRef(SvgContentEdit18);
|
|
2936
2915
|
|
|
2937
2916
|
var _path$l;
|
|
2938
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); }
|
|
2939
|
-
var
|
|
2918
|
+
var SvgContentLink18 = function SvgContentLink18(props, ref) {
|
|
2940
2919
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
|
|
2941
2920
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2942
2921
|
width: 18,
|
|
@@ -2944,12 +2923,29 @@ var SvgActionDeleteforever18 = function SvgActionDeleteforever18(props, ref) {
|
|
|
2944
2923
|
viewBox: "0 0 18 18",
|
|
2945
2924
|
ref: ref
|
|
2946
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", {
|
|
2947
2943
|
fillRule: "evenodd",
|
|
2948
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",
|
|
2949
2945
|
clipRule: "evenodd"
|
|
2950
2946
|
})));
|
|
2951
2947
|
};
|
|
2952
|
-
var ForwardRef$
|
|
2948
|
+
var ForwardRef$l = /*#__PURE__*/React.forwardRef(SvgActionDeleteforever18);
|
|
2953
2949
|
|
|
2954
2950
|
function PresetActionsDropdown(props) {
|
|
2955
2951
|
const { uuiNotifications } = uuiCore.useUuiContext();
|
|
@@ -2986,30 +2982,30 @@ function PresetActionsDropdown(props) {
|
|
|
2986
2982
|
]);
|
|
2987
2983
|
const renderBody = () => {
|
|
2988
2984
|
const isReadonlyPreset = props.preset.isReadonly;
|
|
2989
|
-
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 },
|
|
2990
2986
|
props.activePresetId === props.preset.id && props.hasPresetChanged(props.preset) && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
2991
2987
|
!isReadonlyPreset && (React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-save-in-current` },
|
|
2992
|
-
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$
|
|
2988
|
+
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$r, caption: "Save in current", onClick: saveInCurrentHandler }))),
|
|
2993
2989
|
React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-save-as-new` },
|
|
2994
|
-
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$
|
|
2990
|
+
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$q, caption: "Save as new", onClick: props.addPreset })),
|
|
2995
2991
|
React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-discard`, borderBottom: true },
|
|
2996
|
-
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$
|
|
2992
|
+
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$p, caption: "Discard all changes", onClick: discardAllChangesHandler })))),
|
|
2997
2993
|
props.preset.id === props.activePresetId && !isReadonlyPreset && (React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-rename` },
|
|
2998
|
-
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$
|
|
2994
|
+
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$n, caption: "Rename", onClick: props.renamePreset }))),
|
|
2999
2995
|
React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-duplicate` },
|
|
3000
|
-
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$
|
|
2996
|
+
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$o, caption: "Duplicate", onClick: duplicateHandler })),
|
|
3001
2997
|
React__namespace.default.createElement(FlexRow, { borderBottom: true, key: `${props.preset.id}-copyLink` },
|
|
3002
|
-
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$
|
|
3003
|
-
!isReadonlyPreset && (React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-delete`, cx: css$
|
|
3004
|
-
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 })))));
|
|
3005
3001
|
};
|
|
3006
3002
|
const renderTarget = React.useCallback((dropdownProps) => {
|
|
3007
|
-
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 })));
|
|
3008
3004
|
}, []);
|
|
3009
3005
|
return (React__namespace.default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end", modifiers: [{ name: 'offset', options: { offset: [0, 22] } }] }));
|
|
3010
3006
|
}
|
|
3011
3007
|
|
|
3012
|
-
var css$
|
|
3008
|
+
var css$w = {"preset-input-cell":"DAkrrp","preset-input":"-pvSxv","presetInputCell":"DAkrrp","presetInput":"-pvSxv"};
|
|
3013
3009
|
|
|
3014
3010
|
function PresetInput(props) {
|
|
3015
3011
|
var _a;
|
|
@@ -3030,11 +3026,11 @@ function PresetInput(props) {
|
|
|
3030
3026
|
}
|
|
3031
3027
|
props.onCancel();
|
|
3032
3028
|
}, [presetCaption.length, props.onCancel]);
|
|
3033
|
-
return (React__namespace.default.createElement(FlexCell, { cx: css$
|
|
3034
|
-
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 })));
|
|
3035
3031
|
}
|
|
3036
3032
|
|
|
3037
|
-
var css$
|
|
3033
|
+
var css$v = {"preset":"GjqrSR","activePreset":"ZPPWsj"};
|
|
3038
3034
|
|
|
3039
3035
|
function Preset(props) {
|
|
3040
3036
|
const [isRenamePreset, setIsRenamePreset] = React.useState(false);
|
|
@@ -3052,23 +3048,23 @@ function Preset(props) {
|
|
|
3052
3048
|
return props.updatePreset(newPreset);
|
|
3053
3049
|
}, [props.preset]);
|
|
3054
3050
|
const isPresetActive = props.activePresetId === props.preset.id;
|
|
3055
|
-
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 }))));
|
|
3056
3052
|
}
|
|
3057
3053
|
|
|
3058
|
-
var _path$
|
|
3059
|
-
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); }
|
|
3060
3056
|
var SvgContentPlusBold18 = function SvgContentPlusBold18(props, ref) {
|
|
3061
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3057
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
|
|
3062
3058
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3063
3059
|
width: 18,
|
|
3064
3060
|
height: 18,
|
|
3065
3061
|
viewBox: "0 0 18 18",
|
|
3066
3062
|
ref: ref
|
|
3067
|
-
}, props), _path$
|
|
3063
|
+
}, props), _path$j || (_path$j = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3068
3064
|
d: "M10.5 3h-3v4.5H3v3h4.5V15h3v-4.5H15v-3h-4.5V3z"
|
|
3069
3065
|
})));
|
|
3070
3066
|
};
|
|
3071
|
-
var ForwardRef$
|
|
3067
|
+
var ForwardRef$k = /*#__PURE__*/React.forwardRef(SvgContentPlusBold18);
|
|
3072
3068
|
|
|
3073
3069
|
function PresetsPanel(props) {
|
|
3074
3070
|
const [isAddingPreset, setIsAddingPreset] = React.useState(false);
|
|
@@ -3083,16 +3079,16 @@ function PresetsPanel(props) {
|
|
|
3083
3079
|
return React__namespace.default.createElement(Preset, Object.assign({ key: preset.id, preset: preset, addPreset: setAddingPreset }, presetApi));
|
|
3084
3080
|
};
|
|
3085
3081
|
const renderAddPresetButton = React.useCallback(() => {
|
|
3086
|
-
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 }))));
|
|
3087
3083
|
}, [isAddingPreset]);
|
|
3088
3084
|
const onPresetDropdownSelect = (preset) => {
|
|
3089
3085
|
props.choosePreset(preset.preset);
|
|
3090
3086
|
};
|
|
3091
3087
|
const renderMoreButtonDropdown = (item, hiddenItems) => {
|
|
3092
3088
|
return (React__namespace.default.createElement(Dropdown, { key: "more", renderTarget: (props) => (React__namespace.default.createElement(FlexRow, null,
|
|
3093
|
-
React__namespace.default.createElement("div", { className: css$
|
|
3094
|
-
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$
|
|
3095
|
-
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)) })))))) }));
|
|
3096
3092
|
};
|
|
3097
3093
|
const getPresetPriority = (preset, index) => {
|
|
3098
3094
|
return preset.id === props.activePresetId ? 100499 : 1000 - index;
|
|
@@ -3110,7 +3106,7 @@ function PresetsPanel(props) {
|
|
|
3110
3106
|
];
|
|
3111
3107
|
};
|
|
3112
3108
|
return (React__namespace.default.createElement(FlexCell, { grow: 1, minWidth: 310, rawProps: props.rawProps },
|
|
3113
|
-
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 },
|
|
3114
3110
|
React__namespace.default.createElement(uuiComponents.AdaptivePanel, { items: getPanelItems() }))));
|
|
3115
3111
|
}
|
|
3116
3112
|
|
|
@@ -3148,7 +3144,7 @@ const useColumnsWithFilters = (initialColumns, filters) => {
|
|
|
3148
3144
|
return columns;
|
|
3149
3145
|
};
|
|
3150
3146
|
|
|
3151
|
-
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"};
|
|
3152
3148
|
|
|
3153
3149
|
const defaultTextSettings = {
|
|
3154
3150
|
18: { lineHeight: 12, fontSize: 10 },
|
|
@@ -3161,7 +3157,7 @@ const defaultTextSettings = {
|
|
|
3161
3157
|
};
|
|
3162
3158
|
function getTextClasses(props, border) {
|
|
3163
3159
|
if (props.size === 'none') {
|
|
3164
|
-
return [css$
|
|
3160
|
+
return [css$u['line-height-' + props.lineHeight], css$u['font-size-' + props.fontSize]];
|
|
3165
3161
|
}
|
|
3166
3162
|
const setting = {
|
|
3167
3163
|
size: props.size,
|
|
@@ -3170,10 +3166,12 @@ function getTextClasses(props, border) {
|
|
|
3170
3166
|
};
|
|
3171
3167
|
const vPadding = (+setting.size - +setting.lineHeight - (border ? 2 : 0)) / 2;
|
|
3172
3168
|
return [
|
|
3173
|
-
css$
|
|
3169
|
+
css$u['line-height-' + setting.lineHeight], css$u['font-size-' + setting.fontSize], css$u['v-padding-' + vPadding],
|
|
3174
3170
|
];
|
|
3175
3171
|
}
|
|
3176
3172
|
|
|
3173
|
+
var css$t = {"root":"KPE1S0"};
|
|
3174
|
+
|
|
3177
3175
|
const allTextColors = ['info', 'warning', 'error', 'success', 'brand', 'primary', 'secondary', 'disabled', 'contrast', 'white'];
|
|
3178
3176
|
function applyTextMods(mods) {
|
|
3179
3177
|
const textClasses = getTextClasses({
|
|
@@ -3182,7 +3180,7 @@ function applyTextMods(mods) {
|
|
|
3182
3180
|
fontSize: mods.fontSize,
|
|
3183
3181
|
}, false);
|
|
3184
3182
|
return [
|
|
3185
|
-
css$
|
|
3183
|
+
css$t.root,
|
|
3186
3184
|
'uui-text',
|
|
3187
3185
|
`uui-font-${mods.font || 'regular'}`,
|
|
3188
3186
|
`uui-color-${mods.color || 'primary'}`,
|
|
@@ -3190,7 +3188,7 @@ function applyTextMods(mods) {
|
|
|
3190
3188
|
}
|
|
3191
3189
|
const Text = uuiCore.withMods(uuiComponents.Text, applyTextMods);
|
|
3192
3190
|
|
|
3193
|
-
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"};
|
|
3194
3192
|
|
|
3195
3193
|
const TextPlaceholder = (props) => {
|
|
3196
3194
|
const pattern = ' ';
|
|
@@ -3202,56 +3200,59 @@ const TextPlaceholder = (props) => {
|
|
|
3202
3200
|
}
|
|
3203
3201
|
return words;
|
|
3204
3202
|
}, [props.wordsCount]);
|
|
3205
|
-
return (React__namespace.createElement("div", Object.assign({ "aria-busy": true, className: css$
|
|
3206
|
-
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,
|
|
3207
3205
|
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
3208
3206
|
};
|
|
3209
3207
|
|
|
3210
|
-
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"};
|
|
3211
3209
|
|
|
3212
3210
|
const RichTextView = uuiCore.withMods(uuiComponents.RichTextView, (mods) => [style.typographyUui, style['typography-' + (mods.size || '14')]]);
|
|
3213
3211
|
|
|
3214
|
-
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"};
|
|
3215
3213
|
|
|
3216
|
-
const ModalBlocker = uuiCore.withMods(uuiComponents.ModalBlocker, () => [css$
|
|
3217
|
-
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) => ({
|
|
3218
3216
|
style: Object.assign(Object.assign({}, props.style), { width: `${props.width || 420}px`, height: props.height ? `${props.height}px` : 'auto' }),
|
|
3219
3217
|
}));
|
|
3220
3218
|
class ModalHeader extends React__namespace.Component {
|
|
3221
3219
|
render() {
|
|
3222
|
-
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 },
|
|
3223
3221
|
this.props.title && (React__namespace.createElement(Text, { size: "48", fontSize: "18", font: "semibold" }, this.props.title)),
|
|
3224
3222
|
this.props.children,
|
|
3225
3223
|
this.props.onClose && React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
3226
3224
|
this.props.onClose && (React__namespace.createElement(FlexCell, { shrink: 0, width: "auto" },
|
|
3227
|
-
React__namespace.createElement(IconButton, { icon: ForwardRef$
|
|
3225
|
+
React__namespace.createElement(IconButton, { rawProps: { 'aria-label': 'Close modal' }, icon: ForwardRef$D, onClick: this.props.onClose })))));
|
|
3228
3226
|
}
|
|
3229
3227
|
}
|
|
3230
3228
|
class ModalFooter extends React__namespace.Component {
|
|
3231
3229
|
render() {
|
|
3232
3230
|
return (React__namespace.createElement(FlexRow, { spacing: this.props.spacing || '12', cx: [
|
|
3233
|
-
css$
|
|
3231
|
+
css$r.root,
|
|
3232
|
+
css$r.modalFooter,
|
|
3233
|
+
this.props.borderTop && css$r.borderTop,
|
|
3234
|
+
this.props.cx,
|
|
3234
3235
|
], padding: this.props.padding || '24', vPadding: this.props.vPadding || '24', rawProps: this.props.rawProps }, this.props.children));
|
|
3235
3236
|
}
|
|
3236
3237
|
}
|
|
3237
3238
|
|
|
3238
|
-
var _path$
|
|
3239
|
-
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); }
|
|
3240
3241
|
var SvgCross = function SvgCross(props, ref) {
|
|
3241
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3242
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
|
|
3242
3243
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3243
3244
|
width: 24,
|
|
3244
3245
|
height: 24,
|
|
3245
3246
|
viewBox: "0 0 24 24",
|
|
3246
3247
|
ref: ref
|
|
3247
|
-
}, props), _path$
|
|
3248
|
+
}, props), _path$i || (_path$i = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3248
3249
|
fillRule: "evenodd",
|
|
3249
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"
|
|
3250
3251
|
})));
|
|
3251
3252
|
};
|
|
3252
|
-
var ForwardRef$
|
|
3253
|
+
var ForwardRef$j = /*#__PURE__*/React.forwardRef(SvgCross);
|
|
3253
3254
|
|
|
3254
|
-
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"};
|
|
3255
3256
|
|
|
3256
3257
|
const NotificationCard = React__namespace.default.forwardRef((props, ref) => {
|
|
3257
3258
|
const notificationCardNode = React__namespace.default.useRef(null);
|
|
@@ -3266,23 +3267,23 @@ const NotificationCard = React__namespace.default.forwardRef((props, ref) => {
|
|
|
3266
3267
|
(_b = notificationCardNode.current) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseleave', props.refreshTimer);
|
|
3267
3268
|
};
|
|
3268
3269
|
}, []);
|
|
3269
|
-
return (React__namespace.default.createElement("div", Object.assign({ role: "alert", className: cx__default.default('uui-notification_card', props.color && `uui-color-${props.color}`, css$
|
|
3270
|
-
React__namespace.default.createElement("div", { className: css$
|
|
3271
|
-
props.icon && (React__namespace.default.createElement("div", { className: css$
|
|
3272
|
-
React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$
|
|
3273
|
-
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 },
|
|
3274
3275
|
props.children,
|
|
3275
|
-
props.actions && (React__namespace.default.createElement("div", { className: css$
|
|
3276
|
-
props.onClose && (React__namespace.default.createElement("div", { className: css$
|
|
3277
|
-
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 }))))));
|
|
3278
3279
|
});
|
|
3279
|
-
const WarningNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
3280
|
-
const SuccessNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
3281
|
-
const HintNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
3282
|
-
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 }))));
|
|
3283
3284
|
class ClearNotification extends React__namespace.default.Component {
|
|
3284
3285
|
render() {
|
|
3285
|
-
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) },
|
|
3286
3287
|
React__namespace.default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => this.context.uuiNotifications.clearAll() })));
|
|
3287
3288
|
}
|
|
3288
3289
|
}
|
|
@@ -3292,7 +3293,7 @@ class ConfirmationModal extends React__namespace.Component {
|
|
|
3292
3293
|
render() {
|
|
3293
3294
|
let bodyContent;
|
|
3294
3295
|
if (this.props.bodyContent) {
|
|
3295
|
-
bodyContent = React__namespace.createElement(Panel, { margin: "24" }, this.props.bodyContent);
|
|
3296
|
+
bodyContent = React__namespace.createElement(Panel, { background: "surface", margin: "24" }, this.props.bodyContent);
|
|
3296
3297
|
}
|
|
3297
3298
|
return (React__namespace.createElement(ModalBlocker, Object.assign({}, this.props),
|
|
3298
3299
|
React__namespace.createElement(ModalWindow, { width: 420 },
|
|
@@ -3327,20 +3328,20 @@ class DatePicker extends uuiComponents.BaseDatePicker {
|
|
|
3327
3328
|
}
|
|
3328
3329
|
renderBody(props) {
|
|
3329
3330
|
var _a, _b, _c;
|
|
3330
|
-
return (React__namespace.default.createElement(DropdownContainer, Object.assign({}, props),
|
|
3331
|
+
return (React__namespace.default.createElement(DropdownContainer, Object.assign({}, props, { focusLock: false }),
|
|
3331
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 :
|
|
3332
3333
|
_c.call(_b)));
|
|
3333
3334
|
}
|
|
3334
3335
|
}
|
|
3335
3336
|
|
|
3336
|
-
var css$
|
|
3337
|
+
var css$p = {"root":"_8x08oa"};
|
|
3337
3338
|
|
|
3338
3339
|
function applyCalendarPresetsMods() {
|
|
3339
|
-
return [css$
|
|
3340
|
+
return [css$p.root];
|
|
3340
3341
|
}
|
|
3341
3342
|
const CalendarPresets = uuiCore.withMods(uuiComponents.CalendarPresets, applyCalendarPresetsMods, () => ({}));
|
|
3342
3343
|
|
|
3343
|
-
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"};
|
|
3344
3345
|
|
|
3345
3346
|
dayjs__default.default.extend(isoWeek__default.default);
|
|
3346
3347
|
function weekCount(displayedDate) {
|
|
@@ -3437,16 +3438,16 @@ class RangeDatePickerBody extends React__namespace.Component {
|
|
|
3437
3438
|
};
|
|
3438
3439
|
this.renderDatePicker = () => {
|
|
3439
3440
|
var _a, _b;
|
|
3440
|
-
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" },
|
|
3441
3442
|
React__namespace.createElement(FlexCell, { width: "auto" },
|
|
3442
3443
|
React__namespace.createElement(FlexRow, null,
|
|
3443
|
-
React__namespace.createElement(FlexRow, { cx: css$
|
|
3444
|
-
React__namespace.createElement(DatePickerBody, { cx: uuiCore.cx(css$
|
|
3445
|
-
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 }),
|
|
3446
3447
|
((_b = this.props.value) === null || _b === void 0 ? void 0 : _b.view) !== 'DAY_SELECTION' && (React__namespace.createElement("div", { style: {
|
|
3447
3448
|
left: this.state.activePart === 'from' && '50%',
|
|
3448
3449
|
right: this.state.activePart === 'to' && '50%',
|
|
3449
|
-
}, className: css$
|
|
3450
|
+
}, className: css$o.blocker }))),
|
|
3450
3451
|
this.props.presets && this.renderPresets()),
|
|
3451
3452
|
this.props.renderFooter && this.props.renderFooter())));
|
|
3452
3453
|
};
|
|
@@ -3497,11 +3498,11 @@ class RangeDatePickerBody extends React__namespace.Component {
|
|
|
3497
3498
|
});
|
|
3498
3499
|
}
|
|
3499
3500
|
render() {
|
|
3500
|
-
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()));
|
|
3501
3502
|
}
|
|
3502
3503
|
}
|
|
3503
3504
|
|
|
3504
|
-
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"};
|
|
3505
3506
|
|
|
3506
3507
|
const defaultValue = { from: null, to: null };
|
|
3507
3508
|
class RangeDatePicker extends uuiComponents.BaseRangeDatePicker {
|
|
@@ -3520,35 +3521,36 @@ class RangeDatePicker extends uuiComponents.BaseRangeDatePicker {
|
|
|
3520
3521
|
});
|
|
3521
3522
|
}
|
|
3522
3523
|
}
|
|
3523
|
-
return (React__namespace.createElement("div", { className: cx__default.default(this.props.inputCx, css$
|
|
3524
|
-
React__namespace.createElement(TextInput, { icon: systemIcons[this.props.size || '36'].calendar, cx: cx__default.default(css$
|
|
3525
|
-
React__namespace.createElement("div", { className: css$
|
|
3526
|
-
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 })));
|
|
3527
3528
|
};
|
|
3528
3529
|
}
|
|
3529
3530
|
renderBody(props) {
|
|
3530
3531
|
var _a;
|
|
3531
|
-
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 }),
|
|
3532
3533
|
React__namespace.createElement(FlexRow, null,
|
|
3533
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 }))));
|
|
3534
3535
|
}
|
|
3535
3536
|
}
|
|
3536
3537
|
|
|
3537
|
-
var css$
|
|
3538
|
+
var css$m = {"root":"bZ0nVT","blocker":"qHkRPS","marker":"Qc-vcX","top":"m8OMc-","bottom":"_9Ly0iF","left":"VhmxkW","right":"_5U6Z3S","inside":"cm9htT"};
|
|
3538
3539
|
|
|
3539
3540
|
function DropMarker(props) {
|
|
3540
3541
|
return props.isDndInProgress
|
|
3541
3542
|
? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
3542
|
-
props.enableBlocker && React__namespace.createElement("div", { className: css$
|
|
3543
|
+
props.enableBlocker && React__namespace.createElement("div", { className: css$m.blocker }),
|
|
3543
3544
|
React__namespace.createElement("div", { className: cx__default.default([
|
|
3544
|
-
css$
|
|
3545
|
-
css$
|
|
3545
|
+
css$m.root,
|
|
3546
|
+
css$m.marker,
|
|
3547
|
+
css$m[props.position],
|
|
3546
3548
|
props === null || props === void 0 ? void 0 : props.cx,
|
|
3547
3549
|
]) })))
|
|
3548
3550
|
: null;
|
|
3549
3551
|
}
|
|
3550
3552
|
|
|
3551
|
-
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"};
|
|
3552
3554
|
|
|
3553
3555
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
3554
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.
|
|
@@ -3560,54 +3562,54 @@ const renderDropMarkers = (props) => React__namespace.createElement(DropMarker,
|
|
|
3560
3562
|
const propsMods = { renderCell, renderDropMarkers };
|
|
3561
3563
|
const DataTableRow = uuiCore.withMods(uuiComponents.DataTableRow, ({ borderBottom = true, size }) => {
|
|
3562
3564
|
return [
|
|
3563
|
-
css$
|
|
3565
|
+
css$l.root, 'uui-dt-vars', borderBottom && 'uui-dt-row-border', css$l['size-' + (size || '36')],
|
|
3564
3566
|
];
|
|
3565
3567
|
}, () => propsMods);
|
|
3566
3568
|
|
|
3567
|
-
var css$
|
|
3569
|
+
var css$k = {"panel":"r1fr9O"};
|
|
3568
3570
|
|
|
3569
|
-
var css$
|
|
3571
|
+
var css$j = {"sorting-panel-container":"g1Vwar","sort-active":"_1qQ-VD","sortingPanelContainer":"g1Vwar","sortActive":"_1qQ-VD"};
|
|
3570
3572
|
|
|
3571
|
-
var _path$
|
|
3572
|
-
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); }
|
|
3573
3575
|
var SvgTableSortAsc18 = function SvgTableSortAsc18(props, ref) {
|
|
3574
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3576
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
|
|
3575
3577
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3576
3578
|
width: 18,
|
|
3577
3579
|
height: 18,
|
|
3578
3580
|
viewBox: "0 0 18 18",
|
|
3579
3581
|
ref: ref
|
|
3580
|
-
}, props), _path$
|
|
3582
|
+
}, props), _path$h || (_path$h = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3581
3583
|
fillRule: "evenodd",
|
|
3582
3584
|
d: "M10 6v10H8V6H5l4-4 4 4h-3z",
|
|
3583
3585
|
clipRule: "evenodd"
|
|
3584
3586
|
})));
|
|
3585
3587
|
};
|
|
3586
|
-
var ForwardRef$
|
|
3588
|
+
var ForwardRef$i = /*#__PURE__*/React.forwardRef(SvgTableSortAsc18);
|
|
3587
3589
|
|
|
3588
|
-
var _path$
|
|
3589
|
-
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); }
|
|
3590
3592
|
var SvgTableSortDesc18 = function SvgTableSortDesc18(props, ref) {
|
|
3591
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3593
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
|
|
3592
3594
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3593
3595
|
width: 18,
|
|
3594
3596
|
height: 18,
|
|
3595
3597
|
viewBox: "0 0 18 18",
|
|
3596
3598
|
ref: ref
|
|
3597
|
-
}, props), _path$
|
|
3599
|
+
}, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3598
3600
|
fillRule: "evenodd",
|
|
3599
3601
|
d: "M10 12V2H8v10H5l4 4 4-4h-3z",
|
|
3600
3602
|
clipRule: "evenodd"
|
|
3601
3603
|
})));
|
|
3602
3604
|
};
|
|
3603
|
-
var ForwardRef$
|
|
3605
|
+
var ForwardRef$h = /*#__PURE__*/React.forwardRef(SvgTableSortDesc18);
|
|
3604
3606
|
|
|
3605
3607
|
const SortingPanelImpl = ({ sortDirection, onSort }) => {
|
|
3606
3608
|
const sortAsc = React.useCallback(() => onSort(sortDirection === 'asc' ? undefined : 'asc'), [onSort]);
|
|
3607
3609
|
const sortDesc = React.useCallback(() => onSort(sortDirection === 'desc' ? undefined : 'desc'), [onSort]);
|
|
3608
|
-
return (React__namespace.default.createElement(FlexCell, { cx: css$
|
|
3609
|
-
React__namespace.default.createElement(DropdownMenuButton, { isActive: sortDirection === 'asc', caption: i18n.pickerFilterHeader.sortAscending, icon: ForwardRef$
|
|
3610
|
-
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 })));
|
|
3611
3613
|
};
|
|
3612
3614
|
const SortingPanel = React__namespace.default.memo(SortingPanelImpl);
|
|
3613
3615
|
|
|
@@ -3622,35 +3624,18 @@ const ColumnHeaderDropdownImpl = (props) => {
|
|
|
3622
3624
|
width: uuiCore.isMobile() ? document.documentElement.clientWidth : undefined,
|
|
3623
3625
|
}), []);
|
|
3624
3626
|
const closeDropdown = React.useCallback(() => props.onOpenChange(false), [props.onOpenChange]);
|
|
3625
|
-
return (React__namespace.default.createElement(uuiComponents.Dropdown, { renderTarget: props.renderTarget, renderBody: (dropdownProps) => (React__namespace.default.createElement(Panel, { style: style, shadow: true, cx: css$
|
|
3626
|
-
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 },
|
|
3627
3629
|
props.isSortable && React__namespace.default.createElement(SortingPanel, { sortDirection: props.sortDirection, onSort: props.onSort }),
|
|
3628
3630
|
props.renderFilter(dropdownProps)))), modifiers: popperModifiers, value: props.isOpen, onValueChange: props.onOpenChange }));
|
|
3629
3631
|
};
|
|
3630
3632
|
const ColumnHeaderDropdown = React__namespace.default.memo(ColumnHeaderDropdownImpl);
|
|
3631
3633
|
|
|
3632
|
-
var css$
|
|
3633
|
-
|
|
3634
|
-
var _path$g;
|
|
3635
|
-
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); }
|
|
3636
|
-
var SvgTableSwap18 = function SvgTableSwap18(props, ref) {
|
|
3637
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
|
|
3638
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
3639
|
-
width: 18,
|
|
3640
|
-
height: 18,
|
|
3641
|
-
viewBox: "0 0 18 18",
|
|
3642
|
-
ref: ref
|
|
3643
|
-
}, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3644
|
-
fillRule: "evenodd",
|
|
3645
|
-
d: "M6 1 2 5h3v7h2V5h3L6 1zm7 12V6h-2v7H8l4 4 4-4h-3z",
|
|
3646
|
-
clipRule: "evenodd"
|
|
3647
|
-
})));
|
|
3648
|
-
};
|
|
3649
|
-
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"};
|
|
3650
3635
|
|
|
3651
3636
|
var _path$f;
|
|
3652
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); }
|
|
3653
|
-
var
|
|
3638
|
+
var SvgTableSwap18 = function SvgTableSwap18(props, ref) {
|
|
3654
3639
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
|
|
3655
3640
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3656
3641
|
width: 18,
|
|
@@ -3659,15 +3644,15 @@ var SvgContentFiltration18 = function SvgContentFiltration18(props, ref) {
|
|
|
3659
3644
|
ref: ref
|
|
3660
3645
|
}, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3661
3646
|
fillRule: "evenodd",
|
|
3662
|
-
d: "
|
|
3647
|
+
d: "M6 1 2 5h3v7h2V5h3L6 1zm7 12V6h-2v7H8l4 4 4-4h-3z",
|
|
3663
3648
|
clipRule: "evenodd"
|
|
3664
3649
|
})));
|
|
3665
3650
|
};
|
|
3666
|
-
var ForwardRef$g = /*#__PURE__*/React.forwardRef(
|
|
3651
|
+
var ForwardRef$g = /*#__PURE__*/React.forwardRef(SvgTableSwap18);
|
|
3667
3652
|
|
|
3668
3653
|
var _path$e;
|
|
3669
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); }
|
|
3670
|
-
var
|
|
3655
|
+
var SvgContentFiltration18 = function SvgContentFiltration18(props, ref) {
|
|
3671
3656
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
|
|
3672
3657
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3673
3658
|
width: 18,
|
|
@@ -3676,11 +3661,11 @@ var SvgNavigationChevronDown18 = function SvgNavigationChevronDown18(props, ref)
|
|
|
3676
3661
|
ref: ref
|
|
3677
3662
|
}, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3678
3663
|
fillRule: "evenodd",
|
|
3679
|
-
d: "
|
|
3664
|
+
d: "m8 14 2 2v-5H8v3zM2 3v2h14V3H2zm6 8h2l6-6H2l6 6z",
|
|
3680
3665
|
clipRule: "evenodd"
|
|
3681
3666
|
})));
|
|
3682
3667
|
};
|
|
3683
|
-
var ForwardRef$f = /*#__PURE__*/React.forwardRef(
|
|
3668
|
+
var ForwardRef$f = /*#__PURE__*/React.forwardRef(SvgContentFiltration18);
|
|
3684
3669
|
|
|
3685
3670
|
var _path$d;
|
|
3686
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); }
|
|
@@ -3707,40 +3692,40 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
3707
3692
|
};
|
|
3708
3693
|
this.getTextStyle = () => {
|
|
3709
3694
|
if (this.props.textCase === 'upper')
|
|
3710
|
-
return css$
|
|
3711
|
-
return css$
|
|
3695
|
+
return css$i.upperCase;
|
|
3696
|
+
return css$i['font-size-14'];
|
|
3712
3697
|
};
|
|
3713
|
-
this.getTooltipContent = () => (React__namespace.createElement("div", { className: css$
|
|
3714
|
-
React__namespace.createElement(Text, { fontSize: "14", color: "contrast", font: "semibold", cx: css$
|
|
3715
|
-
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)));
|
|
3716
3701
|
this.getColumnCaption = () => {
|
|
3717
|
-
return (React__namespace.createElement("div", { className: css$
|
|
3718
|
-
React__namespace.createElement("div", { className: uuiCore.cx(css$
|
|
3719
|
-
React__namespace.createElement(Tooltip, { placement: "top", color: "contrast", renderContent: this.getTooltipContent, cx: css$
|
|
3720
|
-
React__namespace.createElement(Text, { key: "text", lineHeight: "30", fontSize: "14", size: "30", cx: uuiCore.cx(css$
|
|
3721
|
-
this.props.column.isSortable && (!this.props.column.renderFilter || this.props.sortDirection) && (React__namespace.createElement(IconButton, { key: "sort", cx: uuiCore.cx(css$
|
|
3722
|
-
this.props.isFilterActive && (React__namespace.createElement(IconButton, { key: "filter", cx: uuiCore.cx(css$
|
|
3723
|
-
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 })))));
|
|
3724
3709
|
};
|
|
3725
3710
|
this.renderHeaderCheckbox = () => this.props.selectAll
|
|
3726
|
-
&& this.props.isFirstColumn && (React__namespace.createElement(Checkbox, Object.assign({ size: +this.props.size < 36 ? '12' : '18' }, this.props.selectAll, { cx: uuiCore.cx(css$
|
|
3727
|
-
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) });
|
|
3728
3713
|
this.renderCellContent = (props, dropdownProps) => (React__namespace.createElement(FlexCell, Object.assign({}, this.props.column, { minWidth: this.props.column.width, ref: (ref) => {
|
|
3729
3714
|
var _a;
|
|
3730
3715
|
props.ref(ref);
|
|
3731
3716
|
(_a = dropdownProps === null || dropdownProps === void 0 ? void 0 : dropdownProps.ref) === null || _a === void 0 ? void 0 : _a.call(dropdownProps, ref);
|
|
3732
|
-
}, 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) }),
|
|
3733
3718
|
this.renderHeaderCheckbox(),
|
|
3734
3719
|
this.getColumnCaption(),
|
|
3735
3720
|
this.props.allowColumnsResizing && this.renderResizeMark(props)));
|
|
3736
3721
|
this.renderCellWithFilter = (props) => (React__namespace.createElement(ColumnHeaderDropdown, { isOpen: this.state.isDropdownOpen, isSortable: this.props.column.isSortable, renderTarget: (dropdownProps) => this.renderCellContent(props, dropdownProps), renderFilter: this.props.renderFilter, onSort: this.props.onSort, sortDirection: this.props.sortDirection, onOpenChange: (isDropdownOpen) => this.setState({ isDropdownOpen }), title: this.props.column.caption }));
|
|
3737
3722
|
}
|
|
3738
3723
|
render() {
|
|
3739
|
-
return React__namespace.createElement(uuiComponents.DataTableHeaderCell, Object.assign({}, this.props, { renderCellContent: this.props.column.renderFilter ? this.renderCellWithFilter : this.renderCellContent }));
|
|
3724
|
+
return React__namespace.createElement(uuiComponents.DataTableHeaderCell, Object.assign({}, this.props, { cx: "uui-dt-vars", renderCellContent: this.props.column.renderFilter ? this.renderCellWithFilter : this.renderCellContent }));
|
|
3740
3725
|
}
|
|
3741
3726
|
}
|
|
3742
3727
|
|
|
3743
|
-
var css$
|
|
3728
|
+
var css$h = {"header-cell":"M2DtlP","config-icon":"Wc-ikU","headerCell":"M2DtlP","configIcon":"Wc-ikU"};
|
|
3744
3729
|
|
|
3745
3730
|
var _path$c;
|
|
3746
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); }
|
|
@@ -3759,12 +3744,12 @@ var SvgActionSettings18 = function SvgActionSettings18(props, ref) {
|
|
|
3759
3744
|
};
|
|
3760
3745
|
var ForwardRef$d = /*#__PURE__*/React.forwardRef(SvgActionSettings18);
|
|
3761
3746
|
|
|
3762
|
-
const DataTableHeaderRow = uuiCore.withMods(uuiComponents.DataTableHeaderRow, () => [css$
|
|
3747
|
+
const DataTableHeaderRow = uuiCore.withMods(uuiComponents.DataTableHeaderRow, () => [css$h.root, 'uui-dt-vars'], (mods) => ({
|
|
3763
3748
|
renderCell: (props) => React__namespace.createElement(DataTableHeaderCell, Object.assign({}, props, { size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key })),
|
|
3764
|
-
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 }),
|
|
3765
3750
|
}));
|
|
3766
3751
|
|
|
3767
|
-
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"};
|
|
3768
3753
|
|
|
3769
3754
|
var _path$b;
|
|
3770
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); }
|
|
@@ -3843,7 +3828,7 @@ function PinIconButton(props) {
|
|
|
3843
3828
|
React__namespace.createElement(IconButton, { icon: pinIcon, onClick: pinClickHandler, isDisabled: isPinnedAlways, color: isPinned ? 'info' : undefined }))));
|
|
3844
3829
|
}
|
|
3845
3830
|
|
|
3846
|
-
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"};
|
|
3847
3832
|
|
|
3848
3833
|
const ColumnRow = React__namespace.memo(function ColumnRow(props) {
|
|
3849
3834
|
const { column } = props;
|
|
@@ -3856,21 +3841,20 @@ const ColumnRow = React__namespace.memo(function ColumnRow(props) {
|
|
|
3856
3841
|
const _a = dndActorParams.eventHandlers, { onTouchStart, onPointerDown } = _a, restEventHandlers = __rest(_a, ["onTouchStart", "onPointerDown"]);
|
|
3857
3842
|
const wrapperAttrs = Object.assign(Object.assign({}, (isDndAllowed ? { ref: dndActorParams.ref } : {})), (isDndAllowed ? { rawProps: Object.assign({}, restEventHandlers) } : {}));
|
|
3858
3843
|
const dragHandleRawProps = Object.assign({}, (isDndAllowed ? { onTouchStart, onPointerDown } : {}));
|
|
3844
|
+
const dndActorPropsWithoutRef = __rest(dndActorParams, ["ref"]);
|
|
3859
3845
|
return (React__namespace.createElement(FlexRow, Object.assign({ size: "30", cx: wrapperClasses }, wrapperAttrs),
|
|
3860
|
-
React__namespace.createElement(
|
|
3861
|
-
|
|
3862
|
-
React__namespace.createElement(Checkbox, { key: column.key, label: props.renderItem ? props.renderItem(props.column) : column.caption, value: isVisible, onValueChange: toggleVisibility, isDisabled: column.isAlwaysVisible })),
|
|
3863
|
-
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 }),
|
|
3864
3848
|
React__namespace.createElement(FlexRow, { size: "30", cx: styles.pinIconButton },
|
|
3865
3849
|
React__namespace.createElement(PinIconButton, { id: column.key, isPinned: !!isPinned, canUnpin: !isPinnedAlways, onTogglePin: togglePin })),
|
|
3866
|
-
React__namespace.createElement(DropMarker, Object.assign({},
|
|
3850
|
+
React__namespace.createElement(DropMarker, Object.assign({}, dndActorPropsWithoutRef))));
|
|
3867
3851
|
};
|
|
3868
3852
|
return (React__namespace.createElement(uuiCore.DndActor, { key: column.key, srcData: data, dstData: data, canAcceptDrop: onCanAcceptDrop, onDrop: onDrop, render: renderContent }));
|
|
3869
3853
|
});
|
|
3870
3854
|
|
|
3871
3855
|
const renderGroupTitle = (title, amount) => (React__namespace.createElement(FlexRow, { size: "24", padding: "24", spacing: "6", cx: styles$1.groupTitle },
|
|
3872
3856
|
React__namespace.createElement(Text, { cx: styles$1.groupTitleText, font: "semibold", lineHeight: "24", fontSize: "14" }, title),
|
|
3873
|
-
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" })));
|
|
3874
3858
|
function ColumnsConfigurationModal(props) {
|
|
3875
3859
|
const i18n$1 = i18n.tables.columnsConfigurationModal;
|
|
3876
3860
|
const { columns, columnsConfig: initialColumnsConfig, defaultConfig } = props, modalProps = __rest(props, ["columns", "columnsConfig", "defaultConfig"]);
|
|
@@ -3912,10 +3896,10 @@ function ColumnsConfigurationModal(props) {
|
|
|
3912
3896
|
React__namespace.createElement(ModalHeader, { title: i18n$1.configureColumnsTitle, onClose: close }),
|
|
3913
3897
|
React__namespace.createElement(FlexRow, { padding: "24", borderBottom: true, spacing: "12", cx: styles$1.searchArea },
|
|
3914
3898
|
React__namespace.createElement(SearchInput, { size: "30", value: searchValue, onValueChange: setSearchValue, placeholder: i18n$1.searchPlaceholder }),
|
|
3915
|
-
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 },
|
|
3916
3900
|
React__namespace.createElement(DropdownMenuButton, { caption: i18n$1.clearAllButton, onClick: uncheckAll }),
|
|
3917
|
-
React__namespace.createElement(DropdownMenuButton, { caption: i18n$1.selectAllButton, onClick: checkAll }))), renderTarget: (props) => React__namespace.createElement(Button, Object.assign({}, props, { fill: "none", icon: ForwardRef$
|
|
3918
|
-
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 },
|
|
3919
3903
|
React__namespace.createElement(ScrollBars, null,
|
|
3920
3904
|
renderVisible(),
|
|
3921
3905
|
renderHidden(),
|
|
@@ -3923,12 +3907,67 @@ function ColumnsConfigurationModal(props) {
|
|
|
3923
3907
|
React__namespace.createElement(Text, { fontSize: "24", lineHeight: "30", color: "primary", font: "semibold" }, i18n$1.noResultsFound.text),
|
|
3924
3908
|
React__namespace.createElement(Text, { fontSize: "16", lineHeight: "24", font: "regular", color: "primary" }, i18n$1.noResultsFound.subText))))),
|
|
3925
3909
|
React__namespace.createElement(ModalFooter, { borderTop: true },
|
|
3926
|
-
React__namespace.createElement(LinkButton, { icon: ForwardRef$
|
|
3910
|
+
React__namespace.createElement(LinkButton, { icon: ForwardRef$r, caption: i18n$1.resetToDefaultButton, onClick: reset }),
|
|
3927
3911
|
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
3928
3912
|
React__namespace.createElement(Button, { fill: "none", color: "secondary", caption: i18n$1.cancelButton, onClick: close }),
|
|
3929
3913
|
noVisibleColumns ? (React__namespace.createElement(Tooltip, { content: i18n$1.enableAtLeastOneColumnMessage, placement: "top-end", color: "critical" }, applyButton)) : (applyButton)))));
|
|
3930
3914
|
}
|
|
3931
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
|
+
|
|
3932
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;
|
|
3933
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); }
|
|
3934
3973
|
var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
@@ -3940,7 +3979,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
3940
3979
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3941
3980
|
ref: ref
|
|
3942
3981
|
}, props), /*#__PURE__*/React__namespace.createElement("g", {
|
|
3943
|
-
clipPath: "url(#
|
|
3982
|
+
clipPath: "url(#4izetwbaxv8azmeb_a)"
|
|
3944
3983
|
}, _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3945
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",
|
|
3946
3985
|
fill: "#F5F6FA"
|
|
@@ -3961,7 +4000,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
3961
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",
|
|
3962
4001
|
fill: "#1D1E26"
|
|
3963
4002
|
})), /*#__PURE__*/React__namespace.createElement("mask", {
|
|
3964
|
-
id: "
|
|
4003
|
+
id: "4izetwhgipvq72oc6_b",
|
|
3965
4004
|
style: {
|
|
3966
4005
|
maskType: "alpha"
|
|
3967
4006
|
},
|
|
@@ -3974,7 +4013,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
3974
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",
|
|
3975
4014
|
fill: "#9BDEFF"
|
|
3976
4015
|
}))), _g$1 || (_g$1 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
3977
|
-
mask: "url(#
|
|
4016
|
+
mask: "url(#4izetwhgipvq72oc6_b)",
|
|
3978
4017
|
fillRule: "evenodd",
|
|
3979
4018
|
clipRule: "evenodd"
|
|
3980
4019
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -4060,7 +4099,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4060
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",
|
|
4061
4100
|
fill: "#fff"
|
|
4062
4101
|
}))), _defs || (_defs = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
4063
|
-
id: "
|
|
4102
|
+
id: "4izetwbaxv8azmeb_a"
|
|
4064
4103
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
4065
4104
|
fill: "#fff",
|
|
4066
4105
|
transform: "translate(.552)",
|
|
@@ -4069,18 +4108,19 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
4069
4108
|
};
|
|
4070
4109
|
var ForwardRef$9 = /*#__PURE__*/React.forwardRef(SvgEmptyTable);
|
|
4071
4110
|
|
|
4072
|
-
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"};
|
|
4073
4112
|
|
|
4074
4113
|
function DataTable(props) {
|
|
4075
4114
|
var _a;
|
|
4076
4115
|
const { uuiModals } = uuiCore.useUuiContext();
|
|
4116
|
+
const headerRef = React__namespace.useRef();
|
|
4077
4117
|
const columnsWithFilters = useColumnsWithFilters(props.columns, props.filters);
|
|
4078
4118
|
const { columns, config, defaultConfig } = uuiCore.useColumnsConfig(columnsWithFilters, (_a = props.value) === null || _a === void 0 ? void 0 : _a.columnsConfig);
|
|
4079
|
-
const
|
|
4080
|
-
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 }));
|
|
4081
4121
|
}, []);
|
|
4122
|
+
const renderRow = (row) => { var _a; return ((_a = props.renderRow) !== null && _a !== void 0 ? _a : defaultRenderRow)(Object.assign(Object.assign({}, row), { columns })); };
|
|
4082
4123
|
const rows = props.getRows();
|
|
4083
|
-
const renderedRows = rows.map((row) => (props.renderRow || renderRow)(Object.assign(Object.assign({}, row), { columns })));
|
|
4084
4124
|
const renderNoResultsBlock = React__namespace.useCallback(() => {
|
|
4085
4125
|
var _a;
|
|
4086
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,
|
|
@@ -4101,27 +4141,27 @@ function DataTable(props) {
|
|
|
4101
4141
|
}, [
|
|
4102
4142
|
props.columns, config, defaultConfig, props.value, props.onValueChange, props.renderColumnsConfigurationModal,
|
|
4103
4143
|
]);
|
|
4104
|
-
const renderRowsContainer = React__namespace.useCallback(({ listContainerRef, estimatedHeight, offsetY, scrollShadows
|
|
4105
|
-
React__namespace.createElement("div", { className: css$f.stickyHeader },
|
|
4106
|
-
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 }),
|
|
4107
4147
|
React__namespace.createElement("div", { className: uuiCore.cx(uuiCore.uuiScrollShadows.top, {
|
|
4108
4148
|
[uuiCore.uuiScrollShadows.topVisible]: scrollShadows.verticalTop,
|
|
4109
4149
|
}) })),
|
|
4110
|
-
props.exactRowsCount !== 0 ? (React__namespace.createElement(
|
|
4111
|
-
|
|
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 }))), [
|
|
4112
4152
|
props, columns, rows, renderNoResultsBlock, onConfigurationButtonClick,
|
|
4113
4153
|
]);
|
|
4114
4154
|
return (React__namespace.createElement(uuiComponents.DataTableSelectionProvider, { onCopy: props.onCopy, rows: rows, columns: columns },
|
|
4115
|
-
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: {
|
|
4116
4156
|
role: 'table',
|
|
4117
4157
|
'aria-colcount': columns.length,
|
|
4118
4158
|
'aria-rowcount': props.rowsCount,
|
|
4119
4159
|
} })));
|
|
4120
4160
|
}
|
|
4121
4161
|
|
|
4122
|
-
var css$e = {"root":"
|
|
4162
|
+
var css$e = {"root":"sZ-aKk"};
|
|
4123
4163
|
|
|
4124
|
-
var css$d = {"root":"
|
|
4164
|
+
var css$d = {"root":"qvMp4-","burger-content":"QZJCef","burgerContent":"QZJCef"};
|
|
4125
4165
|
|
|
4126
4166
|
var _path$7;
|
|
4127
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); }
|
|
@@ -4188,11 +4228,11 @@ var SvgTriangle = function SvgTriangle(props, ref) {
|
|
|
4188
4228
|
};
|
|
4189
4229
|
var ForwardRef$6 = /*#__PURE__*/React.forwardRef(SvgTriangle);
|
|
4190
4230
|
|
|
4191
|
-
var css$c = {"root":"
|
|
4231
|
+
var css$c = {"root":"ZLGe1w","button-primary":"ar9z3T","button-secondary":"nx0Dd1","hasIcon":"BxYBvl","dropdown":"n8EaG6","buttonPrimary":"ar9z3T","buttonSecondary":"nx0Dd1"};
|
|
4192
4232
|
|
|
4193
4233
|
const BurgerButton = uuiCore.withMods(uuiComponents.Button, (props) => [
|
|
4194
4234
|
css$c.root,
|
|
4195
|
-
'uui-
|
|
4235
|
+
'uui-main_menu-burger-button',
|
|
4196
4236
|
css$c['button-' + (props.type || 'primary')],
|
|
4197
4237
|
css$c['indent-' + (props.indentLevel || 0)],
|
|
4198
4238
|
props.isDropdown && css$c.dropdown,
|
|
@@ -4245,13 +4285,13 @@ var SvgMenuInputCancel = function SvgMenuInputCancel(props, ref) {
|
|
|
4245
4285
|
};
|
|
4246
4286
|
var ForwardRef$5 = /*#__PURE__*/React.forwardRef(SvgMenuInputCancel);
|
|
4247
4287
|
|
|
4248
|
-
var css$b = {"search-input":"
|
|
4288
|
+
var css$b = {"search-input":"wej8gI","searchInput":"wej8gI"};
|
|
4249
4289
|
|
|
4250
4290
|
function BurgerSearch(props) {
|
|
4251
|
-
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 }));
|
|
4252
4292
|
}
|
|
4253
4293
|
|
|
4254
|
-
var css$a = {"root":"
|
|
4294
|
+
var css$a = {"root":"mpQabO","group-header":"JWOBGZ","group-name":"crVrf-","line":"rLH9si","groupHeader":"JWOBGZ","groupName":"crVrf-"};
|
|
4255
4295
|
|
|
4256
4296
|
function BurgerGroupHeader(props) {
|
|
4257
4297
|
return (React__namespace.createElement("div", { className: cx__default.default(css$a.root, css$a.groupHeader, 'uui-burger-group-header') },
|
|
@@ -4259,7 +4299,7 @@ function BurgerGroupHeader(props) {
|
|
|
4259
4299
|
React__namespace.createElement("span", { className: css$a.groupName }, props.caption)));
|
|
4260
4300
|
}
|
|
4261
4301
|
|
|
4262
|
-
var css$9 = {"root":"
|
|
4302
|
+
var css$9 = {"root":"Q31ipb","type-primary":"_0-RgQ-","type-secondary":"HwgUAz","typePrimary":"_0-RgQ-","typeSecondary":"HwgUAz"};
|
|
4263
4303
|
|
|
4264
4304
|
var _path$4;
|
|
4265
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); }
|
|
@@ -4279,23 +4319,29 @@ var ForwardRef$4 = /*#__PURE__*/React.forwardRef(SvgChevronDown24);
|
|
|
4279
4319
|
|
|
4280
4320
|
const MainMenuButton = uuiCore.withMods(uuiComponents.Button, (mods) => [css$9.root, css$9['type-' + (mods.type || 'primary')]], () => ({ dropdownIcon: ForwardRef$4, role: 'menuitem' }));
|
|
4281
4321
|
|
|
4282
|
-
var css$8 = {"dropdown-body":"
|
|
4322
|
+
var css$8 = {"dropdown-body":"_2ACwI-","dropdownBody":"_2ACwI-"};
|
|
4283
4323
|
|
|
4284
4324
|
class MainMenuDropdown extends React__namespace.Component {
|
|
4285
4325
|
render() {
|
|
4286
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) => {
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
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
|
+
}))));
|
|
4299
4345
|
}, placement: "bottom-start" }));
|
|
4300
4346
|
}
|
|
4301
4347
|
}
|
|
@@ -4303,7 +4349,7 @@ class MainMenuDropdown extends React__namespace.Component {
|
|
|
4303
4349
|
function applyMainMenuMods() {
|
|
4304
4350
|
return [
|
|
4305
4351
|
css$e.root,
|
|
4306
|
-
'uui-
|
|
4352
|
+
'uui-main_menu',
|
|
4307
4353
|
];
|
|
4308
4354
|
}
|
|
4309
4355
|
const MainMenu = uuiCore.withMods(uuiComponents.MainMenu, applyMainMenuMods, () => ({
|
|
@@ -4327,31 +4373,31 @@ var SvgGlobalMenu = function SvgGlobalMenu(props, ref) {
|
|
|
4327
4373
|
};
|
|
4328
4374
|
var ForwardRef$3 = /*#__PURE__*/React.forwardRef(SvgGlobalMenu);
|
|
4329
4375
|
|
|
4330
|
-
var css$7 = {"global-menu-btn":"
|
|
4376
|
+
var css$7 = {"global-menu-btn":"fD1CWC","globalMenuIcon":"_248sm-","globalMenuBtn":"fD1CWC"};
|
|
4331
4377
|
|
|
4332
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),
|
|
4333
4379
|
React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$3, cx: css$7.globalMenuIcon }))));
|
|
4334
4380
|
|
|
4335
|
-
var css$6 = {"container":"
|
|
4381
|
+
var css$6 = {"container":"zaRJhv","open":"B0Vf-s"};
|
|
4336
4382
|
|
|
4337
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 },
|
|
4338
4384
|
React__namespace.createElement(uuiComponents.Avatar, { size: "36", img: props.avatarUrl }),
|
|
4339
4385
|
props.icon && React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon }),
|
|
4340
4386
|
props.isDropdown && (React__namespace.createElement("div", null,
|
|
4341
|
-
React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$
|
|
4387
|
+
React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$1b, flipY: props.isOpen }))))));
|
|
4342
4388
|
|
|
4343
|
-
var css$5 = {"search-input":"
|
|
4389
|
+
var css$5 = {"search-input":"i6FH-a","searchInput":"i6FH-a"};
|
|
4344
4390
|
|
|
4345
4391
|
const MainMenuSearch = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(uuiCore.IEditableDebouncer, Object.assign({}, props, { render: (iEditable) => {
|
|
4346
4392
|
var _a;
|
|
4347
|
-
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)));
|
|
4348
4394
|
} }))));
|
|
4349
4395
|
|
|
4350
|
-
var css$4 = {"container":"
|
|
4396
|
+
var css$4 = {"container":"U-cezM"};
|
|
4351
4397
|
|
|
4352
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))));
|
|
4353
4399
|
|
|
4354
|
-
var css$3 = {"root":"
|
|
4400
|
+
var css$3 = {"root":"Q0jtOk"};
|
|
4355
4401
|
|
|
4356
4402
|
const Anchor = uuiCore.withMods(uuiComponents.Anchor, () => [css$3.root]);
|
|
4357
4403
|
|
|
@@ -4408,7 +4454,7 @@ var SvgShape = function SvgShape(props, ref) {
|
|
|
4408
4454
|
};
|
|
4409
4455
|
var ForwardRef$2 = /*#__PURE__*/React.forwardRef(SvgShape);
|
|
4410
4456
|
|
|
4411
|
-
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"};
|
|
4412
4458
|
|
|
4413
4459
|
class DropSpot extends React__namespace.Component {
|
|
4414
4460
|
constructor() {
|
|
@@ -4432,17 +4478,17 @@ class DropSpot extends React__namespace.Component {
|
|
|
4432
4478
|
}
|
|
4433
4479
|
}
|
|
4434
4480
|
|
|
4435
|
-
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-"};
|
|
4436
4482
|
|
|
4437
|
-
var css = {"root":"
|
|
4483
|
+
var css = {"root":"B93Ai5"};
|
|
4438
4484
|
|
|
4439
4485
|
const SvgCircleProgress = React__namespace.forwardRef((props, ref) => {
|
|
4440
4486
|
const outsetRadius = props.size / 2 - 1;
|
|
4441
4487
|
const insetRadius = props.size / 2 - 3;
|
|
4442
4488
|
const circumference = insetRadius * Math.PI;
|
|
4443
4489
|
return (React__namespace.createElement("svg", Object.assign({ className: css.root, width: props.size, height: props.size, ref: ref }, props.rawProps),
|
|
4444
|
-
React__namespace.createElement("circle", {
|
|
4445
|
-
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 })));
|
|
4446
4492
|
});
|
|
4447
4493
|
|
|
4448
4494
|
var _path$1;
|
|
@@ -4503,7 +4549,7 @@ const FileCard = React__namespace.forwardRef((props, ref) => {
|
|
|
4503
4549
|
case 'mp4':
|
|
4504
4550
|
case 'wmw':
|
|
4505
4551
|
case 'mkv':
|
|
4506
|
-
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 });
|
|
4507
4553
|
case 'csv':
|
|
4508
4554
|
case 'xml':
|
|
4509
4555
|
return React__namespace.createElement(uuiComponents.IconContainer, { size: 24, icon: fileIcons.tableIcon, cx: css$1.defaultColor });
|
|
@@ -4542,7 +4588,7 @@ const FileCard = React__namespace.forwardRef((props, ref) => {
|
|
|
4542
4588
|
progress && progress < 100 && abortXHR();
|
|
4543
4589
|
onClick();
|
|
4544
4590
|
};
|
|
4545
|
-
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 },
|
|
4546
4592
|
React__namespace.createElement(FlexRow, { cx: css$1.fileCardRow, size: "36", alignItems: "top", spacing: "6" },
|
|
4547
4593
|
fileExtension && getIcon(fileExtension),
|
|
4548
4594
|
React__namespace.createElement(FlexCell, { width: "100%" },
|
|
@@ -4588,6 +4634,7 @@ exports.DataPickerBody = DataPickerBody;
|
|
|
4588
4634
|
exports.DataPickerFooter = DataPickerFooter;
|
|
4589
4635
|
exports.DataPickerHeader = DataPickerHeader;
|
|
4590
4636
|
exports.DataPickerRow = DataPickerRow;
|
|
4637
|
+
exports.DataRowsContainer = DataRowsContainer;
|
|
4591
4638
|
exports.DataTable = DataTable;
|
|
4592
4639
|
exports.DataTableCell = DataTableCell;
|
|
4593
4640
|
exports.DataTableHeaderCell = DataTableHeaderCell;
|
|
@@ -4619,6 +4666,8 @@ exports.HintNotification = HintNotification;
|
|
|
4619
4666
|
exports.IconButton = IconButton;
|
|
4620
4667
|
exports.IndeterminateBar = IndeterminateBar;
|
|
4621
4668
|
exports.IndicatorBar = IndicatorBar;
|
|
4669
|
+
exports.Informer = Informer;
|
|
4670
|
+
exports.InputAddon = InputAddon;
|
|
4622
4671
|
exports.LabeledInput = LabeledInput;
|
|
4623
4672
|
exports.LinkButton = LinkButton;
|
|
4624
4673
|
exports.MainMenu = MainMenu;
|
|
@@ -4642,7 +4691,6 @@ exports.PickerItem = PickerItem;
|
|
|
4642
4691
|
exports.PickerList = PickerList;
|
|
4643
4692
|
exports.PickerListItem = PickerListItem;
|
|
4644
4693
|
exports.PickerModal = PickerModal;
|
|
4645
|
-
exports.PickerModalImpl = PickerModalImpl;
|
|
4646
4694
|
exports.PickerToggler = PickerToggler;
|
|
4647
4695
|
exports.PresetsPanel = PresetsPanel;
|
|
4648
4696
|
exports.ProgressBar = ProgressBar;
|
|
@@ -4672,7 +4720,6 @@ exports.WarningAlert = WarningAlert;
|
|
|
4672
4720
|
exports.WarningNotification = WarningNotification;
|
|
4673
4721
|
exports.allButtonColors = allButtonColors;
|
|
4674
4722
|
exports.allButtonFills = allButtonFills;
|
|
4675
|
-
exports.allButtonSemanticColors = allButtonSemanticColors;
|
|
4676
4723
|
exports.allEpamBadgeSemanticColors = allEpamBadgeSemanticColors;
|
|
4677
4724
|
exports.allFillStyles = allFillStyles;
|
|
4678
4725
|
exports.allFontStyles = allFontStyles;
|
|
@@ -4687,6 +4734,7 @@ exports.applyBadgeMods = applyBadgeMods;
|
|
|
4687
4734
|
exports.applyButtonMods = applyButtonMods;
|
|
4688
4735
|
exports.applyCheckboxMods = applyCheckboxMods;
|
|
4689
4736
|
exports.applyDateSelectionMods = applyDateSelectionMods;
|
|
4737
|
+
exports.applyInputAddonMods = applyInputAddonMods;
|
|
4690
4738
|
exports.applyNumericInputMods = applyNumericInputMods;
|
|
4691
4739
|
exports.applyProgressBarMods = applyProgressBarMods;
|
|
4692
4740
|
exports.applySpinnerMods = applySpinnerMods;
|