@epam/uui 5.1.1 → 5.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/dnd/DropMarker.d.ts +2 -4
- package/components/dnd/DropMarker.d.ts.map +1 -1
- package/components/fileUpload/DropSpot.d.ts +15 -0
- package/components/fileUpload/DropSpot.d.ts.map +1 -0
- package/components/fileUpload/FileCard.d.ts +12 -0
- package/components/fileUpload/FileCard.d.ts.map +1 -0
- package/components/fileUpload/SvgCircleProgress.d.ts +9 -0
- package/components/fileUpload/SvgCircleProgress.d.ts.map +1 -0
- package/components/fileUpload/index.d.ts +4 -0
- package/components/fileUpload/index.d.ts.map +1 -0
- package/components/filters/FilterPickerBody.d.ts +4 -4
- package/components/filters/FilterPickerBody.d.ts.map +1 -1
- package/components/filters/FiltersPanel.d.ts.map +1 -1
- package/components/index.d.ts +1 -0
- package/components/index.d.ts.map +1 -1
- package/components/inputs/TimePicker.d.ts +12 -0
- package/components/inputs/TimePicker.d.ts.map +1 -0
- package/components/inputs/TimePickerBody.d.ts +3 -0
- package/components/inputs/TimePickerBody.d.ts.map +1 -0
- package/components/inputs/index.d.ts +1 -0
- package/components/inputs/index.d.ts.map +1 -1
- package/components/navigation/MainMenu/Burger/Burger.d.ts +1 -2
- package/components/navigation/MainMenu/Burger/Burger.d.ts.map +1 -1
- package/components/overlays/Alert.d.ts +2 -0
- package/components/overlays/Alert.d.ts.map +1 -1
- package/components/overlays/Dropdown.d.ts +2 -4
- package/components/overlays/Dropdown.d.ts.map +1 -1
- package/components/overlays/DropdownMenu.d.ts +7 -3
- package/components/overlays/DropdownMenu.d.ts.map +1 -1
- package/components/pickers/PickerInput.d.ts +3 -3
- package/components/pickers/PickerInput.d.ts.map +1 -1
- package/components/widgets/AvatarStack.d.ts +1 -2
- package/components/widgets/AvatarStack.d.ts.map +1 -1
- package/components/widgets/IndeterminateBar.d.ts +7 -0
- package/components/widgets/IndeterminateBar.d.ts.map +1 -0
- package/components/widgets/IndicatorBar.d.ts +8 -0
- package/components/widgets/IndicatorBar.d.ts.map +1 -0
- package/components/widgets/ProgressBar.d.ts +8 -0
- package/components/widgets/ProgressBar.d.ts.map +1 -0
- package/components/widgets/Spinner.d.ts +1 -2
- package/components/widgets/Spinner.d.ts.map +1 -1
- package/components/widgets/index.d.ts +4 -1
- package/components/widgets/index.d.ts.map +1 -1
- package/i18n.d.ts +8 -0
- package/i18n.d.ts.map +1 -1
- package/icons/icons.d.ts +11 -0
- package/icons/icons.d.ts.map +1 -1
- package/index.esm.js +1159 -764
- package/index.esm.js.map +1 -1
- package/index.js +1169 -762
- package/index.js.map +1 -1
- package/package.json +5 -5
- package/stats.html +1 -1
- package/styles.css +1363 -1111
- package/styles.css.map +1 -1
- package/components/widgets/Avatar.d.ts +0 -3
- package/components/widgets/Avatar.d.ts.map +0 -1
package/index.js
CHANGED
|
@@ -6,6 +6,7 @@ var React = require('react');
|
|
|
6
6
|
var cx = require('classnames');
|
|
7
7
|
var FocusLock = require('react-focus-lock');
|
|
8
8
|
var dayjs = require('dayjs');
|
|
9
|
+
var customParseFormat = require('dayjs/plugin/customParseFormat.js');
|
|
9
10
|
var updateLocale = require('dayjs/plugin/updateLocale.js');
|
|
10
11
|
var isoWeek = require('dayjs/plugin/isoWeek.js');
|
|
11
12
|
var sortBy = require('lodash.sortby');
|
|
@@ -34,433 +35,600 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
|
34
35
|
var cx__default = /*#__PURE__*/_interopDefault(cx);
|
|
35
36
|
var FocusLock__default = /*#__PURE__*/_interopDefault(FocusLock);
|
|
36
37
|
var dayjs__default = /*#__PURE__*/_interopDefault(dayjs);
|
|
38
|
+
var customParseFormat__default = /*#__PURE__*/_interopDefault(customParseFormat);
|
|
37
39
|
var updateLocale__default = /*#__PURE__*/_interopDefault(updateLocale);
|
|
38
40
|
var isoWeek__default = /*#__PURE__*/_interopDefault(isoWeek);
|
|
39
41
|
var sortBy__default = /*#__PURE__*/_interopDefault(sortBy);
|
|
40
42
|
|
|
41
|
-
var _path$
|
|
42
|
-
function _extends$
|
|
43
|
+
var _path$1d;
|
|
44
|
+
function _extends$1g() { _extends$1g = 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$1g.apply(this, arguments); }
|
|
43
45
|
var SvgBtnCross12 = function SvgBtnCross12(props, ref) {
|
|
44
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
46
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1g({
|
|
45
47
|
xmlns: "http://www.w3.org/2000/svg",
|
|
46
48
|
width: 12,
|
|
47
49
|
height: 12,
|
|
48
50
|
viewBox: "0 0 12 12",
|
|
49
51
|
ref: ref
|
|
50
|
-
}, props), _path$
|
|
52
|
+
}, props), _path$1d || (_path$1d = /*#__PURE__*/React__namespace.createElement("path", {
|
|
51
53
|
fillRule: "evenodd",
|
|
52
54
|
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"
|
|
53
55
|
})));
|
|
54
56
|
};
|
|
55
|
-
var ForwardRef$
|
|
57
|
+
var ForwardRef$1g = /*#__PURE__*/React.forwardRef(SvgBtnCross12);
|
|
56
58
|
|
|
57
|
-
var _path$
|
|
58
|
-
function _extends$
|
|
59
|
+
var _path$1c;
|
|
60
|
+
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); }
|
|
59
61
|
var SvgBtnCross18 = function SvgBtnCross18(props, ref) {
|
|
60
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
62
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1f({
|
|
61
63
|
xmlns: "http://www.w3.org/2000/svg",
|
|
62
64
|
width: 18,
|
|
63
65
|
height: 18,
|
|
64
66
|
viewBox: "0 0 18 18",
|
|
65
67
|
ref: ref
|
|
66
|
-
}, props), _path$
|
|
68
|
+
}, props), _path$1c || (_path$1c = /*#__PURE__*/React__namespace.createElement("path", {
|
|
67
69
|
fillRule: "evenodd",
|
|
68
70
|
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"
|
|
69
71
|
})));
|
|
70
72
|
};
|
|
71
|
-
var ForwardRef$
|
|
73
|
+
var ForwardRef$1f = /*#__PURE__*/React.forwardRef(SvgBtnCross18);
|
|
72
74
|
|
|
73
|
-
var _path
|
|
74
|
-
function _extends$
|
|
75
|
+
var _path$1b;
|
|
76
|
+
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); }
|
|
75
77
|
var SvgBtnCross24 = function SvgBtnCross24(props, ref) {
|
|
76
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
78
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1e({
|
|
77
79
|
xmlns: "http://www.w3.org/2000/svg",
|
|
78
80
|
width: 24,
|
|
79
81
|
height: 24,
|
|
80
82
|
viewBox: "0 0 24 24",
|
|
81
83
|
ref: ref
|
|
82
|
-
}, props), _path
|
|
84
|
+
}, props), _path$1b || (_path$1b = /*#__PURE__*/React__namespace.createElement("path", {
|
|
83
85
|
fillRule: "evenodd",
|
|
84
86
|
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"
|
|
85
87
|
})));
|
|
86
88
|
};
|
|
87
|
-
var ForwardRef$
|
|
89
|
+
var ForwardRef$1e = /*#__PURE__*/React.forwardRef(SvgBtnCross24);
|
|
88
90
|
|
|
89
|
-
var _path$
|
|
90
|
-
function _extends$
|
|
91
|
+
var _path$1a;
|
|
92
|
+
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); }
|
|
91
93
|
var SvgFoldingArrow12 = function SvgFoldingArrow12(props, ref) {
|
|
92
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
94
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1d({
|
|
93
95
|
xmlns: "http://www.w3.org/2000/svg",
|
|
94
96
|
width: 12,
|
|
95
97
|
height: 12,
|
|
96
98
|
viewBox: "0 0 12 12",
|
|
97
99
|
ref: ref
|
|
98
|
-
}, props), _path$
|
|
100
|
+
}, props), _path$1a || (_path$1a = /*#__PURE__*/React__namespace.createElement("path", {
|
|
99
101
|
fillRule: "evenodd",
|
|
100
102
|
d: "M8.295 4.295 6 6.585l-2.295-2.29L3 5l3 3 3-3z"
|
|
101
103
|
})));
|
|
102
104
|
};
|
|
103
|
-
var ForwardRef$
|
|
105
|
+
var ForwardRef$1d = /*#__PURE__*/React.forwardRef(SvgFoldingArrow12);
|
|
104
106
|
|
|
105
|
-
var _path$
|
|
106
|
-
function _extends$
|
|
107
|
+
var _path$19;
|
|
108
|
+
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); }
|
|
107
109
|
var SvgFoldingArrow18 = function SvgFoldingArrow18(props, ref) {
|
|
108
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
110
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1c({
|
|
109
111
|
xmlns: "http://www.w3.org/2000/svg",
|
|
110
112
|
width: 18,
|
|
111
113
|
height: 18,
|
|
112
114
|
viewBox: "0 0 18 18",
|
|
113
115
|
ref: ref
|
|
114
|
-
}, props), _path$
|
|
116
|
+
}, props), _path$19 || (_path$19 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
115
117
|
fillRule: "evenodd",
|
|
116
118
|
d: "M12.443 6.442 9 9.877 5.558 6.442 4.5 7.5 9 12l4.5-4.5z"
|
|
117
119
|
})));
|
|
118
120
|
};
|
|
119
|
-
var ForwardRef$
|
|
121
|
+
var ForwardRef$1c = /*#__PURE__*/React.forwardRef(SvgFoldingArrow18);
|
|
120
122
|
|
|
121
|
-
var _path$
|
|
122
|
-
function _extends
|
|
123
|
+
var _path$18;
|
|
124
|
+
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); }
|
|
123
125
|
var SvgFoldingArrow24 = function SvgFoldingArrow24(props, ref) {
|
|
124
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends
|
|
126
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1b({
|
|
125
127
|
xmlns: "http://www.w3.org/2000/svg",
|
|
126
128
|
width: 24,
|
|
127
129
|
height: 24,
|
|
128
130
|
viewBox: "0 0 24 24",
|
|
129
131
|
ref: ref
|
|
130
|
-
}, props), _path$
|
|
132
|
+
}, props), _path$18 || (_path$18 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
131
133
|
fillRule: "evenodd",
|
|
132
134
|
d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
|
|
133
135
|
})));
|
|
134
136
|
};
|
|
135
|
-
var ForwardRef
|
|
137
|
+
var ForwardRef$1b = /*#__PURE__*/React.forwardRef(SvgFoldingArrow24);
|
|
136
138
|
|
|
137
|
-
var _path$
|
|
138
|
-
function _extends$
|
|
139
|
+
var _path$17;
|
|
140
|
+
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); }
|
|
139
141
|
var SvgAccept12 = function SvgAccept12(props, ref) {
|
|
140
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
142
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1a({
|
|
141
143
|
xmlns: "http://www.w3.org/2000/svg",
|
|
142
144
|
width: 12,
|
|
143
145
|
height: 12,
|
|
144
146
|
viewBox: "0 0 12 12",
|
|
145
147
|
ref: ref
|
|
146
|
-
}, props), _path$
|
|
148
|
+
}, props), _path$17 || (_path$17 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
147
149
|
fillRule: "evenodd",
|
|
148
150
|
d: "M4.846 6.8 9.462 2 11 3.6 4.846 10l-.77-.8L1 6l1.538-1.6 2.308 2.4z"
|
|
149
151
|
})));
|
|
150
152
|
};
|
|
151
|
-
var ForwardRef$
|
|
153
|
+
var ForwardRef$1a = /*#__PURE__*/React.forwardRef(SvgAccept12);
|
|
152
154
|
|
|
153
|
-
var _path$
|
|
154
|
-
function _extends$
|
|
155
|
+
var _path$16;
|
|
156
|
+
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); }
|
|
155
157
|
var SvgAccept18 = function SvgAccept18(props, ref) {
|
|
156
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
158
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$19({
|
|
157
159
|
xmlns: "http://www.w3.org/2000/svg",
|
|
158
160
|
width: 18,
|
|
159
161
|
height: 18,
|
|
160
162
|
viewBox: "0 0 18 18",
|
|
161
163
|
ref: ref
|
|
162
|
-
}, props), _path$
|
|
164
|
+
}, props), _path$16 || (_path$16 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
163
165
|
fillRule: "evenodd",
|
|
164
166
|
d: "M7.136 11.91 4.034 8.776 3 9.821 7.136 14 16 5.045 14.966 4z"
|
|
165
167
|
})));
|
|
166
168
|
};
|
|
167
|
-
var ForwardRef$
|
|
169
|
+
var ForwardRef$19 = /*#__PURE__*/React.forwardRef(SvgAccept18);
|
|
168
170
|
|
|
169
|
-
var _path$
|
|
170
|
-
function _extends$
|
|
171
|
+
var _path$15;
|
|
172
|
+
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); }
|
|
171
173
|
var SvgAccept24 = function SvgAccept24(props, ref) {
|
|
172
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
174
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$18({
|
|
173
175
|
xmlns: "http://www.w3.org/2000/svg",
|
|
174
176
|
width: 24,
|
|
175
177
|
height: 24,
|
|
176
178
|
viewBox: "0 0 24 24",
|
|
177
179
|
ref: ref
|
|
178
|
-
}, props), _path$
|
|
180
|
+
}, props), _path$15 || (_path$15 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
179
181
|
fillRule: "evenodd",
|
|
180
182
|
d: "m9.727 16.075-4.295-4.388L4 13.149 9.727 19 22 6.463 20.568 5z"
|
|
181
183
|
})));
|
|
182
184
|
};
|
|
183
|
-
var ForwardRef$
|
|
185
|
+
var ForwardRef$18 = /*#__PURE__*/React.forwardRef(SvgAccept24);
|
|
184
186
|
|
|
185
|
-
var _path$
|
|
186
|
-
function _extends$
|
|
187
|
+
var _path$14;
|
|
188
|
+
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); }
|
|
187
189
|
var SvgSearch12 = function SvgSearch12(props, ref) {
|
|
188
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
190
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$17({
|
|
189
191
|
xmlns: "http://www.w3.org/2000/svg",
|
|
190
192
|
width: 12,
|
|
191
193
|
height: 12,
|
|
192
194
|
viewBox: "0 0 12 12",
|
|
193
195
|
ref: ref
|
|
194
|
-
}, props), _path$
|
|
196
|
+
}, props), _path$14 || (_path$14 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
195
197
|
fillRule: "evenodd",
|
|
196
198
|
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"
|
|
197
199
|
})));
|
|
198
200
|
};
|
|
199
|
-
var ForwardRef$
|
|
201
|
+
var ForwardRef$17 = /*#__PURE__*/React.forwardRef(SvgSearch12);
|
|
200
202
|
|
|
201
|
-
var _path$
|
|
202
|
-
function _extends$
|
|
203
|
+
var _path$13;
|
|
204
|
+
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); }
|
|
203
205
|
var SvgSearch18 = function SvgSearch18(props, ref) {
|
|
204
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
206
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$16({
|
|
205
207
|
xmlns: "http://www.w3.org/2000/svg",
|
|
206
208
|
width: 18,
|
|
207
209
|
height: 18,
|
|
208
210
|
viewBox: "0 0 18 18",
|
|
209
211
|
ref: ref
|
|
210
|
-
}, props), _path$
|
|
212
|
+
}, props), _path$13 || (_path$13 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
211
213
|
fillRule: "evenodd",
|
|
212
214
|
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"
|
|
213
215
|
})));
|
|
214
216
|
};
|
|
215
|
-
var ForwardRef$
|
|
217
|
+
var ForwardRef$16 = /*#__PURE__*/React.forwardRef(SvgSearch18);
|
|
216
218
|
|
|
217
|
-
var _path$
|
|
218
|
-
function _extends$
|
|
219
|
+
var _path$12;
|
|
220
|
+
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); }
|
|
219
221
|
var SvgSearch24 = function SvgSearch24(props, ref) {
|
|
220
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
222
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$15({
|
|
221
223
|
xmlns: "http://www.w3.org/2000/svg",
|
|
222
224
|
width: 24,
|
|
223
225
|
height: 24,
|
|
224
226
|
viewBox: "0 0 24 24",
|
|
225
227
|
ref: ref
|
|
226
|
-
}, props), _path$
|
|
228
|
+
}, props), _path$12 || (_path$12 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
227
229
|
fillRule: "evenodd",
|
|
228
230
|
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"
|
|
229
231
|
})));
|
|
230
232
|
};
|
|
231
|
-
var ForwardRef$
|
|
233
|
+
var ForwardRef$15 = /*#__PURE__*/React.forwardRef(SvgSearch24);
|
|
232
234
|
|
|
233
|
-
var _path$
|
|
234
|
-
function _extends$
|
|
235
|
+
var _path$11;
|
|
236
|
+
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); }
|
|
235
237
|
var SvgCalendar12 = function SvgCalendar12(props, ref) {
|
|
236
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
238
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$14({
|
|
237
239
|
xmlns: "http://www.w3.org/2000/svg",
|
|
238
240
|
width: 12,
|
|
239
241
|
height: 12,
|
|
240
242
|
viewBox: "0 0 12 12",
|
|
241
243
|
ref: ref
|
|
242
|
-
}, props), _path$
|
|
244
|
+
}, props), _path$11 || (_path$11 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
243
245
|
fillRule: "evenodd",
|
|
244
246
|
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"
|
|
245
247
|
})));
|
|
246
248
|
};
|
|
247
|
-
var ForwardRef$
|
|
249
|
+
var ForwardRef$14 = /*#__PURE__*/React.forwardRef(SvgCalendar12);
|
|
248
250
|
|
|
249
|
-
var _path$
|
|
250
|
-
function _extends$
|
|
251
|
+
var _path$10;
|
|
252
|
+
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); }
|
|
251
253
|
var SvgCalendar18 = function SvgCalendar18(props, ref) {
|
|
252
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
254
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$13({
|
|
253
255
|
xmlns: "http://www.w3.org/2000/svg",
|
|
254
256
|
width: 18,
|
|
255
257
|
height: 18,
|
|
256
258
|
viewBox: "0 0 18 18",
|
|
257
259
|
ref: ref
|
|
258
|
-
}, props), _path$
|
|
260
|
+
}, props), _path$10 || (_path$10 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
259
261
|
fillRule: "evenodd",
|
|
260
262
|
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"
|
|
261
263
|
})));
|
|
262
264
|
};
|
|
263
|
-
var ForwardRef$
|
|
265
|
+
var ForwardRef$13 = /*#__PURE__*/React.forwardRef(SvgCalendar18);
|
|
264
266
|
|
|
265
|
-
var _path
|
|
266
|
-
function _extends$
|
|
267
|
+
var _path$$;
|
|
268
|
+
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); }
|
|
267
269
|
var SvgCalendar24 = function SvgCalendar24(props, ref) {
|
|
268
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
270
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$12({
|
|
269
271
|
xmlns: "http://www.w3.org/2000/svg",
|
|
270
272
|
width: 24,
|
|
271
273
|
height: 24,
|
|
272
274
|
viewBox: "0 0 24 24",
|
|
273
275
|
ref: ref
|
|
274
|
-
}, props), _path
|
|
276
|
+
}, props), _path$$ || (_path$$ = /*#__PURE__*/React__namespace.createElement("path", {
|
|
275
277
|
fillRule: "evenodd",
|
|
276
278
|
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"
|
|
277
279
|
})));
|
|
278
280
|
};
|
|
279
|
-
var ForwardRef$
|
|
281
|
+
var ForwardRef$12 = /*#__PURE__*/React.forwardRef(SvgCalendar24);
|
|
280
282
|
|
|
281
|
-
var _path$
|
|
282
|
-
function _extends$
|
|
283
|
+
var _path$_;
|
|
284
|
+
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); }
|
|
283
285
|
var SvgInfo12 = function SvgInfo12(props, ref) {
|
|
284
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
286
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$11({
|
|
285
287
|
width: 12,
|
|
286
288
|
height: 12,
|
|
287
289
|
viewBox: "0 0 12 12",
|
|
288
290
|
xmlns: "http://www.w3.org/2000/svg",
|
|
289
291
|
ref: ref
|
|
290
|
-
}, props), _path$
|
|
292
|
+
}, props), _path$_ || (_path$_ = /*#__PURE__*/React__namespace.createElement("path", {
|
|
291
293
|
d: "M6 1C3.24 1 1 3.24 1 6s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm1 8H5V5h2zm0-5c-.471.471-1.529.471-2 0s-.471-1.529 0-2 1.529-.471 2 0 .471 1.529 0 2z",
|
|
292
294
|
fillRule: "evenodd"
|
|
293
295
|
})));
|
|
294
296
|
};
|
|
295
|
-
var ForwardRef$
|
|
297
|
+
var ForwardRef$11 = /*#__PURE__*/React.forwardRef(SvgInfo12);
|
|
296
298
|
|
|
297
|
-
var _path$
|
|
298
|
-
function _extends$
|
|
299
|
+
var _path$Z;
|
|
300
|
+
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); }
|
|
299
301
|
var SvgInfo18 = function SvgInfo18(props, ref) {
|
|
300
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
302
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$10({
|
|
301
303
|
xmlns: "http://www.w3.org/2000/svg",
|
|
302
304
|
width: 18,
|
|
303
305
|
height: 18,
|
|
304
306
|
viewBox: "0 0 18 18",
|
|
305
307
|
ref: ref
|
|
306
|
-
}, props), _path$
|
|
308
|
+
}, props), _path$Z || (_path$Z = /*#__PURE__*/React__namespace.createElement("path", {
|
|
307
309
|
fillRule: "evenodd",
|
|
308
310
|
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"
|
|
309
311
|
})));
|
|
310
312
|
};
|
|
311
|
-
var ForwardRef$
|
|
313
|
+
var ForwardRef$10 = /*#__PURE__*/React.forwardRef(SvgInfo18);
|
|
312
314
|
|
|
313
|
-
var _path$
|
|
314
|
-
function _extends
|
|
315
|
+
var _path$Y;
|
|
316
|
+
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); }
|
|
315
317
|
var SvgInfo24 = function SvgInfo24(props, ref) {
|
|
316
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends
|
|
318
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$$({
|
|
317
319
|
xmlns: "http://www.w3.org/2000/svg",
|
|
318
320
|
width: 24,
|
|
319
321
|
height: 24,
|
|
320
322
|
viewBox: "0 0 24 24",
|
|
321
323
|
ref: ref
|
|
322
|
-
}, props), _path$
|
|
324
|
+
}, props), _path$Y || (_path$Y = /*#__PURE__*/React__namespace.createElement("path", {
|
|
323
325
|
fillRule: "evenodd",
|
|
324
326
|
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"
|
|
325
327
|
})));
|
|
326
328
|
};
|
|
327
|
-
var ForwardRef
|
|
329
|
+
var ForwardRef$$ = /*#__PURE__*/React.forwardRef(SvgInfo24);
|
|
328
330
|
|
|
329
|
-
var _path$
|
|
330
|
-
function _extends$
|
|
331
|
+
var _path$X;
|
|
332
|
+
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); }
|
|
331
333
|
var SvgHelpFill10 = function SvgHelpFill10(props, ref) {
|
|
332
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
334
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$_({
|
|
333
335
|
width: 10,
|
|
334
336
|
height: 10,
|
|
335
337
|
viewBox: "0 0 10 10",
|
|
336
338
|
xmlns: "http://www.w3.org/2000/svg",
|
|
337
339
|
ref: ref
|
|
338
|
-
}, props), _path$
|
|
340
|
+
}, props), _path$X || (_path$X = /*#__PURE__*/React__namespace.createElement("path", {
|
|
339
341
|
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"
|
|
340
342
|
})));
|
|
341
343
|
};
|
|
342
|
-
var ForwardRef$
|
|
344
|
+
var ForwardRef$_ = /*#__PURE__*/React.forwardRef(SvgHelpFill10);
|
|
343
345
|
|
|
344
|
-
var _path$
|
|
345
|
-
function _extends$
|
|
346
|
+
var _path$W;
|
|
347
|
+
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); }
|
|
346
348
|
var SvgHelpFill16 = function SvgHelpFill16(props, ref) {
|
|
347
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
349
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$Z({
|
|
348
350
|
width: 16,
|
|
349
351
|
height: 16,
|
|
350
352
|
viewBox: "0 0 16 16",
|
|
351
353
|
xmlns: "http://www.w3.org/2000/svg",
|
|
352
354
|
ref: ref
|
|
353
|
-
}, props), _path$
|
|
355
|
+
}, props), _path$W || (_path$W = /*#__PURE__*/React__namespace.createElement("path", {
|
|
354
356
|
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"
|
|
355
357
|
})));
|
|
356
358
|
};
|
|
357
|
-
var ForwardRef$
|
|
359
|
+
var ForwardRef$Z = /*#__PURE__*/React.forwardRef(SvgHelpFill16);
|
|
358
360
|
|
|
361
|
+
var _path$V;
|
|
362
|
+
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); }
|
|
363
|
+
var SvgFileFileWord24 = function SvgFileFileWord24(props, ref) {
|
|
364
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$Y({
|
|
365
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
366
|
+
width: 24,
|
|
367
|
+
height: 24,
|
|
368
|
+
viewBox: "0 0 24 24",
|
|
369
|
+
ref: ref
|
|
370
|
+
}, props), _path$V || (_path$V = /*#__PURE__*/React__namespace.createElement("path", {
|
|
371
|
+
fillRule: "evenodd",
|
|
372
|
+
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm1.2 18h-1.4L12 13.2 10.2 20H8.8l-2.2-9h1.5l1.4 6.8 1.8-6.8h1.3l1.8 6.8 1.4-6.8h1.5l-2.1 9zM13 9V3.5L18.5 9H13z",
|
|
373
|
+
clipRule: "evenodd"
|
|
374
|
+
})));
|
|
375
|
+
};
|
|
376
|
+
var ForwardRef$Y = /*#__PURE__*/React.forwardRef(SvgFileFileWord24);
|
|
377
|
+
|
|
378
|
+
var _path$U;
|
|
379
|
+
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); }
|
|
380
|
+
var SvgFileFileExcel24 = function SvgFileFileExcel24(props, ref) {
|
|
381
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$X({
|
|
382
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
383
|
+
width: 24,
|
|
384
|
+
height: 24,
|
|
385
|
+
viewBox: "0 0 24 24",
|
|
386
|
+
ref: ref
|
|
387
|
+
}, props), _path$U || (_path$U = /*#__PURE__*/React__namespace.createElement("path", {
|
|
388
|
+
fillRule: "evenodd",
|
|
389
|
+
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm1.8 18H14l-2-3.4-2 3.4H8.2l2.9-4.5L8.2 11H10l2 3.4 2-3.4h1.8l-2.9 4.5 2.9 4.5zM13 9V3.5L18.5 9H13z",
|
|
390
|
+
clipRule: "evenodd"
|
|
391
|
+
})));
|
|
392
|
+
};
|
|
393
|
+
var ForwardRef$X = /*#__PURE__*/React.forwardRef(SvgFileFileExcel24);
|
|
394
|
+
|
|
395
|
+
var _path$T;
|
|
396
|
+
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); }
|
|
397
|
+
var SvgFileFilePdf24 = function SvgFileFilePdf24(props, ref) {
|
|
398
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$W({
|
|
399
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
400
|
+
width: 24,
|
|
401
|
+
height: 24,
|
|
402
|
+
viewBox: "0 0 24 24",
|
|
403
|
+
ref: ref
|
|
404
|
+
}, props), _path$T || (_path$T = /*#__PURE__*/React__namespace.createElement("path", {
|
|
405
|
+
fillRule: "evenodd",
|
|
406
|
+
d: "M13 9h5.5L13 3.5V9zM6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm4.1 9.4c-.02.04-.29 1.76-2.1 4.69 0 0-3.5 1.82-2.67 3.18.67 1.08 2.32-.04 3.74-2.68 0 0 1.82-.64 4.24-.82 0 0 3.86 1.73 4.39-.11.52-1.86-3.06-1.44-3.7-1.25 0 0-2-1.35-2.5-3.21 0 0 1.14-3.95-.61-3.9-1.75.05-1.09 3.13-.79 4.1zm.81 1.04c.03.01.47 1.21 1.89 2.46 0 0-2.33.46-3.39.9 0 0 1-1.73 1.5-3.36zm3.93 2.72c.58-.16 2.33.15 2.26.48-.06.33-2.26-.48-2.26-.48zM7.77 17c-.53 1.24-1.44 2-1.67 2-.23 0 .7-1.6 1.67-2zm3.14-6.93c0-.07-.36-2.2 0-2.15.54.08 0 2.08 0 2.15z",
|
|
407
|
+
clipRule: "evenodd"
|
|
408
|
+
})));
|
|
409
|
+
};
|
|
410
|
+
var ForwardRef$W = /*#__PURE__*/React.forwardRef(SvgFileFilePdf24);
|
|
411
|
+
|
|
412
|
+
var _path$S;
|
|
413
|
+
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); }
|
|
414
|
+
var SvgFileFileImage24 = function SvgFileFileImage24(props, ref) {
|
|
415
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$V({
|
|
416
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
417
|
+
width: 24,
|
|
418
|
+
height: 24,
|
|
419
|
+
viewBox: "0 0 24 24",
|
|
420
|
+
ref: ref
|
|
421
|
+
}, props), _path$S || (_path$S = /*#__PURE__*/React__namespace.createElement("path", {
|
|
422
|
+
fillRule: "evenodd",
|
|
423
|
+
d: "M13 9h5.5L13 3.5V9zM6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2zm0 18h12v-8l-4 4-2-2-6 6zM8 9a2 2 0 1 0 0 4 2 2 0 0 0 0-4z",
|
|
424
|
+
clipRule: "evenodd"
|
|
425
|
+
})));
|
|
426
|
+
};
|
|
427
|
+
var ForwardRef$V = /*#__PURE__*/React.forwardRef(SvgFileFileImage24);
|
|
428
|
+
|
|
429
|
+
var _path$R, _path2$2;
|
|
430
|
+
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); }
|
|
431
|
+
var SvgFileFileVideo24 = function SvgFileFileVideo24(props, ref) {
|
|
432
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$U({
|
|
433
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
434
|
+
width: 24,
|
|
435
|
+
height: 24,
|
|
436
|
+
viewBox: "0 0 24 24",
|
|
437
|
+
ref: ref
|
|
438
|
+
}, props), _path$R || (_path$R = /*#__PURE__*/React__namespace.createElement("path", {
|
|
439
|
+
d: "M14.992 14 9.5 17.138v-6.276L14.992 14z"
|
|
440
|
+
})), _path2$2 || (_path2$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
441
|
+
fillRule: "evenodd",
|
|
442
|
+
d: "M4 4c0-1.11.89-2 2-2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4zm9-.5V9h5.5L13 3.5zM8.5 9.138v9.724L17.008 14 8.5 9.138z",
|
|
443
|
+
clipRule: "evenodd"
|
|
444
|
+
})));
|
|
445
|
+
};
|
|
446
|
+
var ForwardRef$U = /*#__PURE__*/React.forwardRef(SvgFileFileVideo24);
|
|
447
|
+
|
|
448
|
+
var _path$Q;
|
|
449
|
+
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); }
|
|
450
|
+
var SvgFileFileTable24 = function SvgFileFileTable24(props, ref) {
|
|
451
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$T({
|
|
452
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
453
|
+
width: 24,
|
|
454
|
+
height: 24,
|
|
455
|
+
viewBox: "0 0 24 24",
|
|
456
|
+
ref: ref
|
|
457
|
+
}, props), _path$Q || (_path$Q = /*#__PURE__*/React__namespace.createElement("path", {
|
|
458
|
+
fillRule: "evenodd",
|
|
459
|
+
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm-4 17H7v-2h3v2zm0-3H7v-2h3v2zm0-3H7v-2h3v2zm4 6h-3v-2h3v2zm0-3h-3v-2h3v2zm0-3h-3v-2h3v2zm-1-4V3.5L18.5 9H13z",
|
|
460
|
+
clipRule: "evenodd"
|
|
461
|
+
})));
|
|
462
|
+
};
|
|
463
|
+
var ForwardRef$T = /*#__PURE__*/React.forwardRef(SvgFileFileTable24);
|
|
464
|
+
|
|
465
|
+
var _path$P;
|
|
466
|
+
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); }
|
|
467
|
+
var SvgFileFileText24 = function SvgFileFileText24(props, ref) {
|
|
468
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$S({
|
|
469
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
470
|
+
width: 24,
|
|
471
|
+
height: 24,
|
|
472
|
+
viewBox: "0 0 24 24",
|
|
473
|
+
ref: ref
|
|
474
|
+
}, props), _path$P || (_path$P = /*#__PURE__*/React__namespace.createElement("path", {
|
|
475
|
+
fillRule: "evenodd",
|
|
476
|
+
d: "M13 9h5.5L13 3.5V9zM6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2zm9 16v-2H6v2h9zm3-4v-2H6v2h12z",
|
|
477
|
+
clipRule: "evenodd"
|
|
478
|
+
})));
|
|
479
|
+
};
|
|
480
|
+
var ForwardRef$S = /*#__PURE__*/React.forwardRef(SvgFileFileText24);
|
|
481
|
+
|
|
482
|
+
var _path$O;
|
|
483
|
+
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); }
|
|
484
|
+
var SvgFileFileEml24 = function SvgFileFileEml24(props, ref) {
|
|
485
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$R({
|
|
486
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
487
|
+
width: 24,
|
|
488
|
+
height: 24,
|
|
489
|
+
viewBox: "0 0 24 24",
|
|
490
|
+
ref: ref
|
|
491
|
+
}, props), _path$O || (_path$O = /*#__PURE__*/React__namespace.createElement("path", {
|
|
492
|
+
fillRule: "evenodd",
|
|
493
|
+
d: "M4 4c0-1.11.89-2 2-2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4zm9-.5V9h5.5L13 3.5zM7 18v-4.732l5 3.333 5-3.333V18a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1zm5-2.6 4.688-3.126A.997.997 0 0 0 16 12H8a.997.997 0 0 0-.688.274L12 15.399z",
|
|
494
|
+
clipRule: "evenodd"
|
|
495
|
+
})));
|
|
496
|
+
};
|
|
497
|
+
var ForwardRef$R = /*#__PURE__*/React.forwardRef(SvgFileFileEml24);
|
|
498
|
+
|
|
499
|
+
var _path$N;
|
|
500
|
+
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); }
|
|
501
|
+
var SvgFileFile24 = function SvgFileFile24(props, ref) {
|
|
502
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$Q({
|
|
503
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
504
|
+
width: 24,
|
|
505
|
+
height: 24,
|
|
506
|
+
viewBox: "0 0 24 24",
|
|
507
|
+
ref: ref
|
|
508
|
+
}, props), _path$N || (_path$N = /*#__PURE__*/React__namespace.createElement("path", {
|
|
509
|
+
fillRule: "evenodd",
|
|
510
|
+
d: "M13 9V3.5L18.5 9H13zM6 2c-1.11 0-2 .89-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6H6z",
|
|
511
|
+
clipRule: "evenodd"
|
|
512
|
+
})));
|
|
513
|
+
};
|
|
514
|
+
var ForwardRef$Q = /*#__PURE__*/React.forwardRef(SvgFileFile24);
|
|
515
|
+
|
|
516
|
+
const fileIcons = {
|
|
517
|
+
docIcon: ForwardRef$Y,
|
|
518
|
+
exelIcon: ForwardRef$X,
|
|
519
|
+
pdfIcon: ForwardRef$W,
|
|
520
|
+
imgIcon: ForwardRef$V,
|
|
521
|
+
videoIcon: ForwardRef$U,
|
|
522
|
+
tableIcon: ForwardRef$T,
|
|
523
|
+
textIcon: ForwardRef$S,
|
|
524
|
+
mailIcon: ForwardRef$R,
|
|
525
|
+
fileIcon: ForwardRef$Q,
|
|
526
|
+
};
|
|
359
527
|
const systemIcons = {
|
|
360
528
|
18: {
|
|
361
|
-
clear: ForwardRef$
|
|
362
|
-
foldingArrow: ForwardRef$
|
|
363
|
-
accept: ForwardRef$
|
|
364
|
-
search: ForwardRef$
|
|
365
|
-
calendar: ForwardRef$
|
|
366
|
-
info: ForwardRef$
|
|
367
|
-
help: ForwardRef$
|
|
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$_,
|
|
368
536
|
},
|
|
369
537
|
24: {
|
|
370
|
-
clear: ForwardRef$
|
|
371
|
-
foldingArrow: ForwardRef$
|
|
372
|
-
accept: ForwardRef$
|
|
373
|
-
search: ForwardRef$
|
|
374
|
-
calendar: ForwardRef$
|
|
375
|
-
info: ForwardRef$
|
|
376
|
-
help: ForwardRef$
|
|
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$_,
|
|
377
545
|
},
|
|
378
546
|
30: {
|
|
379
|
-
clear: ForwardRef$
|
|
380
|
-
foldingArrow: ForwardRef$
|
|
381
|
-
accept: ForwardRef$
|
|
382
|
-
search: ForwardRef$
|
|
383
|
-
calendar: ForwardRef$
|
|
384
|
-
info: ForwardRef$
|
|
385
|
-
help: ForwardRef$
|
|
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$_,
|
|
386
554
|
},
|
|
387
555
|
36: {
|
|
388
|
-
clear: ForwardRef$
|
|
389
|
-
foldingArrow: ForwardRef$
|
|
390
|
-
accept: ForwardRef$
|
|
391
|
-
search: ForwardRef$
|
|
392
|
-
calendar: ForwardRef$
|
|
393
|
-
info: ForwardRef$
|
|
394
|
-
help: ForwardRef$
|
|
556
|
+
clear: ForwardRef$1f,
|
|
557
|
+
foldingArrow: ForwardRef$1c,
|
|
558
|
+
accept: ForwardRef$19,
|
|
559
|
+
search: ForwardRef$16,
|
|
560
|
+
calendar: ForwardRef$13,
|
|
561
|
+
info: ForwardRef$10,
|
|
562
|
+
help: ForwardRef$Z,
|
|
395
563
|
},
|
|
396
564
|
42: {
|
|
397
|
-
clear: ForwardRef$
|
|
398
|
-
foldingArrow: ForwardRef$
|
|
399
|
-
accept: ForwardRef$
|
|
400
|
-
search: ForwardRef$
|
|
401
|
-
calendar: ForwardRef$
|
|
402
|
-
info: ForwardRef$
|
|
403
|
-
help: ForwardRef$
|
|
565
|
+
clear: ForwardRef$1f,
|
|
566
|
+
foldingArrow: ForwardRef$1c,
|
|
567
|
+
accept: ForwardRef$19,
|
|
568
|
+
search: ForwardRef$16,
|
|
569
|
+
calendar: ForwardRef$13,
|
|
570
|
+
info: ForwardRef$10,
|
|
571
|
+
help: ForwardRef$Z,
|
|
404
572
|
},
|
|
405
573
|
48: {
|
|
406
|
-
clear: ForwardRef$
|
|
407
|
-
foldingArrow: ForwardRef
|
|
408
|
-
accept: ForwardRef$
|
|
409
|
-
search: ForwardRef$
|
|
410
|
-
calendar: ForwardRef$
|
|
411
|
-
info: ForwardRef
|
|
412
|
-
help: ForwardRef$
|
|
574
|
+
clear: ForwardRef$1e,
|
|
575
|
+
foldingArrow: ForwardRef$1b,
|
|
576
|
+
accept: ForwardRef$18,
|
|
577
|
+
search: ForwardRef$15,
|
|
578
|
+
calendar: ForwardRef$12,
|
|
579
|
+
info: ForwardRef$$,
|
|
580
|
+
help: ForwardRef$Z,
|
|
413
581
|
},
|
|
414
582
|
60: {
|
|
415
|
-
clear: ForwardRef$
|
|
416
|
-
foldingArrow: ForwardRef
|
|
417
|
-
accept: ForwardRef$
|
|
418
|
-
search: ForwardRef$
|
|
419
|
-
calendar: ForwardRef$
|
|
420
|
-
info: ForwardRef
|
|
421
|
-
help: ForwardRef$
|
|
583
|
+
clear: ForwardRef$1e,
|
|
584
|
+
foldingArrow: ForwardRef$1b,
|
|
585
|
+
accept: ForwardRef$18,
|
|
586
|
+
search: ForwardRef$15,
|
|
587
|
+
calendar: ForwardRef$12,
|
|
588
|
+
info: ForwardRef$$,
|
|
589
|
+
help: ForwardRef$Z,
|
|
422
590
|
},
|
|
423
591
|
none: {
|
|
424
|
-
clear: ForwardRef$
|
|
425
|
-
foldingArrow: ForwardRef$
|
|
426
|
-
accept: ForwardRef$
|
|
427
|
-
search: ForwardRef$
|
|
428
|
-
calendar: ForwardRef$
|
|
429
|
-
info: ForwardRef$
|
|
430
|
-
help: ForwardRef$
|
|
592
|
+
clear: ForwardRef$1f,
|
|
593
|
+
foldingArrow: ForwardRef$1c,
|
|
594
|
+
accept: ForwardRef$19,
|
|
595
|
+
search: ForwardRef$16,
|
|
596
|
+
calendar: ForwardRef$13,
|
|
597
|
+
info: ForwardRef$10,
|
|
598
|
+
help: ForwardRef$Z,
|
|
431
599
|
},
|
|
432
600
|
};
|
|
433
601
|
|
|
434
|
-
var buttonCss = {"root":"
|
|
602
|
+
var buttonCss = {"root":"JpCjIx","mode-solid":"_6zPtGA","mode-outline":"_2iO51B","mode-none":"RmMn0j","mode-ghost":"cxjoxx","size-18":"JB5Jx5","size-24":"C9A1e2","size-30":"aJuQ21","size-36":"Wo6J8N","size-42":"U7M3F1","size-48":"ScYtFQ","modeSolid":"_6zPtGA","modeOutline":"_2iO51B","modeNone":"RmMn0j","modeGhost":"cxjoxx","size18":"JB5Jx5","size24":"C9A1e2","size30":"aJuQ21","size36":"Wo6J8N","size42":"U7M3F1","size48":"ScYtFQ"};
|
|
435
603
|
|
|
436
604
|
const allButtonColors = [
|
|
437
605
|
'accent', 'primary', 'secondary', 'negative',
|
|
438
606
|
];
|
|
439
|
-
const defaultSize$
|
|
607
|
+
const defaultSize$b = '36';
|
|
440
608
|
function applyButtonMods(mods) {
|
|
441
609
|
return [
|
|
442
610
|
`button-${mods.color || 'primary'}`,
|
|
443
611
|
buttonCss.root,
|
|
444
|
-
buttonCss[`size-${mods.size || defaultSize$
|
|
612
|
+
buttonCss[`size-${mods.size || defaultSize$b}`],
|
|
445
613
|
buttonCss[`mode-${mods.mode || 'solid'}`],
|
|
446
614
|
];
|
|
447
615
|
}
|
|
448
616
|
const Button = uuiCore.withMods(uuiComponents.Button, applyButtonMods, (props) => ({
|
|
449
|
-
dropdownIcon: systemIcons[props.size || defaultSize$
|
|
450
|
-
clearIcon: systemIcons[props.size || defaultSize$
|
|
617
|
+
dropdownIcon: systemIcons[props.size || defaultSize$b].foldingArrow,
|
|
618
|
+
clearIcon: systemIcons[props.size || defaultSize$b].clear,
|
|
451
619
|
}));
|
|
452
620
|
|
|
453
|
-
var css$
|
|
621
|
+
var css$1f = {"root":"giWQpD"};
|
|
454
622
|
|
|
455
623
|
const allIconColors = [
|
|
456
624
|
'info', 'success', 'warning', 'error', 'secondary', 'default',
|
|
457
625
|
];
|
|
458
626
|
function applyIconButtonMods(mods) {
|
|
459
|
-
return [`icon-button-${mods.color || 'default'}`, css$
|
|
627
|
+
return [`icon-button-${mods.color || 'default'}`, css$1f.root];
|
|
460
628
|
}
|
|
461
629
|
const IconButton = uuiCore.withMods(uuiComponents.IconButton, applyIconButtonMods);
|
|
462
630
|
|
|
463
|
-
var css$
|
|
631
|
+
var css$1e = {"root":"s0ftcp","size-18":"_9JQnmi","size-24":"d61e91","size-30":"_44PB4Z","size-36":"JJjj95","size-42":"_0NDftp","size-48":"y4rInX","size18":"_9JQnmi","size24":"d61e91","size30":"_44PB4Z","size36":"JJjj95","size42":"_0NDftp","size48":"y4rInX"};
|
|
464
632
|
|
|
465
633
|
function getIconClass(props) {
|
|
466
634
|
const classList = {
|
|
@@ -479,38 +647,38 @@ function getIconClass(props) {
|
|
|
479
647
|
return [classList['has-left-icon'] ? 'uui-has-left-icon' : 'uui-no-left-icon', classList['has-right-icon'] ? 'uui-has-right-icon' : 'uui-no-right-icon'];
|
|
480
648
|
}
|
|
481
649
|
|
|
482
|
-
const defaultSize$
|
|
650
|
+
const defaultSize$a = '36';
|
|
483
651
|
const allLinkButtonColors = ['primary', 'secondary', 'contrast'];
|
|
484
652
|
function applyLinkButtonMods(mods) {
|
|
485
653
|
return [
|
|
486
|
-
css$
|
|
487
|
-
css$
|
|
654
|
+
css$1e.root,
|
|
655
|
+
css$1e['size-' + (mods.size || defaultSize$a)],
|
|
488
656
|
...getIconClass(mods),
|
|
489
657
|
`link-button-${mods.color || 'primary'}`,
|
|
490
658
|
];
|
|
491
659
|
}
|
|
492
660
|
const LinkButton = uuiCore.withMods(uuiComponents.Button, applyLinkButtonMods, (props) => ({
|
|
493
|
-
dropdownIcon: systemIcons[props.size || defaultSize$
|
|
494
|
-
clearIcon: systemIcons[props.size || defaultSize$
|
|
661
|
+
dropdownIcon: systemIcons[props.size || defaultSize$a].foldingArrow,
|
|
662
|
+
clearIcon: systemIcons[props.size || defaultSize$a].clear,
|
|
495
663
|
}));
|
|
496
664
|
|
|
497
|
-
var css$
|
|
665
|
+
var css$1d = {"root":"wX3mtt","uui-notification":"B-0tjJ","size-36":"IEjWBy","size-48":"_7mTdFf","size-60":"KvYjMj","uuiNotification":"B-0tjJ","size36":"IEjWBy","size48":"_7mTdFf","size60":"KvYjMj"};
|
|
498
666
|
|
|
499
667
|
function applyTabButtonMods(mods) {
|
|
500
668
|
return [
|
|
501
|
-
css$
|
|
669
|
+
css$1d.root,
|
|
502
670
|
'informer-default',
|
|
503
|
-
css$
|
|
504
|
-
mods.withNotify && css$
|
|
671
|
+
css$1d['size-' + (mods.size || '48')],
|
|
672
|
+
mods.withNotify && css$1d.uuiNotification,
|
|
505
673
|
...getIconClass(mods),
|
|
506
674
|
];
|
|
507
675
|
}
|
|
508
676
|
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) })));
|
|
509
677
|
|
|
510
|
-
var css$
|
|
678
|
+
var css$1c = {"root":"_1SW4ST"};
|
|
511
679
|
|
|
512
680
|
function applyVerticalTabButtonMods() {
|
|
513
|
-
return [css$
|
|
681
|
+
return [css$1c.root];
|
|
514
682
|
}
|
|
515
683
|
const VerticalTabButton = uuiCore.withMods(TabButton, applyVerticalTabButtonMods);
|
|
516
684
|
|
|
@@ -546,89 +714,89 @@ exports.EditMode = void 0;
|
|
|
546
714
|
EditMode["INLINE"] = "inline";
|
|
547
715
|
})(exports.EditMode || (exports.EditMode = {}));
|
|
548
716
|
|
|
549
|
-
var _path$
|
|
550
|
-
function _extends$
|
|
717
|
+
var _path$M;
|
|
718
|
+
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); }
|
|
551
719
|
var SvgCheck12 = function SvgCheck12(props, ref) {
|
|
552
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
720
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$P({
|
|
553
721
|
width: 12,
|
|
554
722
|
height: 12,
|
|
555
723
|
viewBox: "0 0 12 12",
|
|
556
724
|
xmlns: "http://www.w3.org/2000/svg",
|
|
557
725
|
ref: ref
|
|
558
|
-
}, props), _path$
|
|
726
|
+
}, props), _path$M || (_path$M = /*#__PURE__*/React__namespace.createElement("path", {
|
|
559
727
|
fillRule: "evenodd",
|
|
560
728
|
d: "M9.491 3.449 10.51 4.55 5.663 9.024 2.487 6.047l1.026-1.094L5.67 6.975z"
|
|
561
729
|
})));
|
|
562
730
|
};
|
|
563
|
-
var ForwardRef$
|
|
731
|
+
var ForwardRef$P = /*#__PURE__*/React.forwardRef(SvgCheck12);
|
|
564
732
|
|
|
565
|
-
var _path$
|
|
566
|
-
function _extends$
|
|
733
|
+
var _path$L;
|
|
734
|
+
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); }
|
|
567
735
|
var SvgCheck18 = function SvgCheck18(props, ref) {
|
|
568
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
736
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$O({
|
|
569
737
|
width: 18,
|
|
570
738
|
height: 18,
|
|
571
739
|
viewBox: "0 0 18 18",
|
|
572
740
|
xmlns: "http://www.w3.org/2000/svg",
|
|
573
741
|
ref: ref
|
|
574
|
-
}, props), _path$
|
|
742
|
+
}, props), _path$L || (_path$L = /*#__PURE__*/React__namespace.createElement("path", {
|
|
575
743
|
fillRule: "evenodd",
|
|
576
744
|
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"
|
|
577
745
|
})));
|
|
578
746
|
};
|
|
579
|
-
var ForwardRef$
|
|
747
|
+
var ForwardRef$O = /*#__PURE__*/React.forwardRef(SvgCheck18);
|
|
580
748
|
|
|
581
|
-
var _path$
|
|
582
|
-
function _extends$
|
|
749
|
+
var _path$K;
|
|
750
|
+
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); }
|
|
583
751
|
var SvgPartlySelect12 = function SvgPartlySelect12(props, ref) {
|
|
584
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
752
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$N({
|
|
585
753
|
width: 12,
|
|
586
754
|
height: 12,
|
|
587
755
|
viewBox: "0 0 12 12",
|
|
588
756
|
xmlns: "http://www.w3.org/2000/svg",
|
|
589
757
|
ref: ref
|
|
590
|
-
}, props), _path$
|
|
758
|
+
}, props), _path$K || (_path$K = /*#__PURE__*/React__namespace.createElement("path", {
|
|
591
759
|
fillRule: "evenodd",
|
|
592
760
|
d: "M9 5v2H3V5z"
|
|
593
761
|
})));
|
|
594
762
|
};
|
|
595
|
-
var ForwardRef$
|
|
763
|
+
var ForwardRef$N = /*#__PURE__*/React.forwardRef(SvgPartlySelect12);
|
|
596
764
|
|
|
597
|
-
var _path$
|
|
598
|
-
function _extends$
|
|
765
|
+
var _path$J;
|
|
766
|
+
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); }
|
|
599
767
|
var SvgPartlySelect18 = function SvgPartlySelect18(props, ref) {
|
|
600
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
768
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$M({
|
|
601
769
|
width: 18,
|
|
602
770
|
height: 18,
|
|
603
771
|
viewBox: "0 0 18 18",
|
|
604
772
|
xmlns: "http://www.w3.org/2000/svg",
|
|
605
773
|
ref: ref
|
|
606
|
-
}, props), _path$
|
|
774
|
+
}, props), _path$J || (_path$J = /*#__PURE__*/React__namespace.createElement("path", {
|
|
607
775
|
fillRule: "evenodd",
|
|
608
776
|
d: "M14 8v2H4V8z"
|
|
609
777
|
})));
|
|
610
778
|
};
|
|
611
|
-
var ForwardRef$
|
|
779
|
+
var ForwardRef$M = /*#__PURE__*/React.forwardRef(SvgPartlySelect18);
|
|
612
780
|
|
|
613
|
-
var css$
|
|
781
|
+
var css$1b = {"root":"baA0Wz","size-18":"hiLHlQ","size-12":"_0NnqIh","mode-cell":"hUTZ5y","size18":"hiLHlQ","size12":"_0NnqIh","modeCell":"hUTZ5y"};
|
|
614
782
|
|
|
615
783
|
function applyCheckboxMods(mods) {
|
|
616
784
|
return [
|
|
617
|
-
css$
|
|
785
|
+
css$1b.root, css$1b['size-' + (mods.size || '18')], css$1b['mode-' + (mods.mode || 'form')],
|
|
618
786
|
];
|
|
619
787
|
}
|
|
620
788
|
const applyUUICheckboxProps = (props) => ({
|
|
621
|
-
icon: props.size === '12' ? ForwardRef$
|
|
622
|
-
indeterminateIcon: props.size === '12' ? ForwardRef$
|
|
789
|
+
icon: props.size === '12' ? ForwardRef$P : ForwardRef$O,
|
|
790
|
+
indeterminateIcon: props.size === '12' ? ForwardRef$N : ForwardRef$M,
|
|
623
791
|
});
|
|
624
792
|
const Checkbox = uuiCore.withMods(uuiComponents.Checkbox, applyCheckboxMods, applyUUICheckboxProps);
|
|
625
793
|
|
|
626
|
-
var css$
|
|
794
|
+
var css$1a = {"root":"_4hMA0v","size-18":"H7DUm-","size-12":"CtuRyE","size18":"H7DUm-","size12":"CtuRyE"};
|
|
627
795
|
|
|
628
796
|
var _circle;
|
|
629
|
-
function _extends$
|
|
797
|
+
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); }
|
|
630
798
|
var SvgRadioPoint = function SvgRadioPoint(props, ref) {
|
|
631
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
799
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$L({
|
|
632
800
|
width: 18,
|
|
633
801
|
height: 18,
|
|
634
802
|
viewBox: "0 0 18 18",
|
|
@@ -640,18 +808,18 @@ var SvgRadioPoint = function SvgRadioPoint(props, ref) {
|
|
|
640
808
|
r: 6
|
|
641
809
|
})));
|
|
642
810
|
};
|
|
643
|
-
var ForwardRef$
|
|
811
|
+
var ForwardRef$L = /*#__PURE__*/React.forwardRef(SvgRadioPoint);
|
|
644
812
|
|
|
645
813
|
function applyRadioInputMods(mods) {
|
|
646
|
-
return [css$
|
|
814
|
+
return [css$1a.root, css$1a['size-' + (mods.size || '18')]];
|
|
647
815
|
}
|
|
648
|
-
const RadioInput = uuiCore.withMods(uuiComponents.RadioInput, applyRadioInputMods, () => ({ icon: ForwardRef$
|
|
816
|
+
const RadioInput = uuiCore.withMods(uuiComponents.RadioInput, applyRadioInputMods, () => ({ icon: ForwardRef$L }));
|
|
649
817
|
|
|
650
|
-
var css$
|
|
818
|
+
var css$19 = {"root":"VIVWeQ","size-12":"WS-uRX","size-18":"HtuPUi","size-24":"s91x8j","size12":"WS-uRX","size18":"HtuPUi","size24":"s91x8j"};
|
|
651
819
|
|
|
652
820
|
function applySwitchMods(mods) {
|
|
653
821
|
return [
|
|
654
|
-
'switch-vars', css$
|
|
822
|
+
'switch-vars', css$19.root, css$19['size-' + (mods.size || '18')],
|
|
655
823
|
];
|
|
656
824
|
}
|
|
657
825
|
const Switch = uuiCore.withMods(uuiComponents.Switch, applySwitchMods);
|
|
@@ -700,27 +868,27 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
700
868
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
701
869
|
};
|
|
702
870
|
|
|
703
|
-
var textInputCss = {"root":"
|
|
871
|
+
var textInputCss = {"root":"slUBds","mode-form":"UHDI6n","mode-inline":"arzjEf","mode-cell":"-RznVL","size-24":"_8uJHzA","size-30":"_1WE5Xa","size-36":"UKT-u-","size-42":"SStKiT","size-48":"EsV6QA","modeForm":"UHDI6n","modeInline":"arzjEf","modeCell":"-RznVL","size24":"_8uJHzA","size30":"_1WE5Xa","size36":"UKT-u-","size42":"SStKiT","size48":"EsV6QA"};
|
|
704
872
|
|
|
705
|
-
const defaultSize$
|
|
706
|
-
const defaultMode$
|
|
873
|
+
const defaultSize$9 = '36';
|
|
874
|
+
const defaultMode$5 = exports.EditMode.FORM;
|
|
707
875
|
function applyTextInputMods(mods) {
|
|
708
876
|
return [
|
|
709
877
|
textInputCss.root,
|
|
710
|
-
textInputCss['size-' + (mods.size || defaultSize$
|
|
711
|
-
textInputCss['mode-' + (mods.mode || defaultMode$
|
|
878
|
+
textInputCss['size-' + (mods.size || defaultSize$9)],
|
|
879
|
+
textInputCss['mode-' + (mods.mode || defaultMode$5)],
|
|
712
880
|
];
|
|
713
881
|
}
|
|
714
882
|
const TextInput = uuiCore.withMods(uuiComponents.TextInput, applyTextInputMods, (props) => ({
|
|
715
|
-
acceptIcon: systemIcons[props.size || defaultSize$
|
|
716
|
-
cancelIcon: systemIcons[props.size || defaultSize$
|
|
717
|
-
dropdownIcon: systemIcons[props.size || defaultSize$
|
|
883
|
+
acceptIcon: systemIcons[props.size || defaultSize$9].accept,
|
|
884
|
+
cancelIcon: systemIcons[props.size || defaultSize$9].clear,
|
|
885
|
+
dropdownIcon: systemIcons[props.size || defaultSize$9].foldingArrow,
|
|
718
886
|
}));
|
|
719
887
|
const SearchInput = React__namespace.default.forwardRef((props, ref) => {
|
|
720
888
|
// analytics events are sending in IEditableDebouncer, so we need to avoid sending events in TextInput
|
|
721
889
|
const textInputProps = __rest(props, []);
|
|
722
890
|
delete textInputProps.getValueChangeAnalyticsEvent;
|
|
723
|
-
return (React__namespace.default.createElement(uuiCore.IEditableDebouncer, Object.assign({}, props, { render: (iEditable) => (React__namespace.default.createElement(TextInput, Object.assign({ icon: systemIcons[props.size || defaultSize$
|
|
891
|
+
return (React__namespace.default.createElement(uuiCore.IEditableDebouncer, Object.assign({}, props, { render: (iEditable) => (React__namespace.default.createElement(TextInput, Object.assign({ icon: systemIcons[props.size || defaultSize$9].search, onCancel: !!props.value
|
|
724
892
|
// In a lot of places, it is required to check if a clicked element is a part of some other element.
|
|
725
893
|
// Usually, those are global click event handlers. To allow that logic to work correctly, it is necessary
|
|
726
894
|
// to execute the `disappearing` of the cross (setState execution) after the event will pass through all the handlers.
|
|
@@ -729,148 +897,146 @@ const SearchInput = React__namespace.default.forwardRef((props, ref) => {
|
|
|
729
897
|
: undefined, type: "search", inputMode: "search", ref: ref }, textInputProps, iEditable))) })));
|
|
730
898
|
});
|
|
731
899
|
|
|
732
|
-
var css$
|
|
900
|
+
var css$18 = {"root":"-X-Q7f","mode-block":"D-I42-","mode-inline":"UoGiMh","padding-0":"TNWXdT","padding-6":"A9n-64","padding-12":"yIv3jm","padding-18":"SItbyr","modeBlock":"D-I42-","modeInline":"UoGiMh","padding0":"TNWXdT","padding6":"A9n-64","padding12":"yIv3jm","padding18":"SItbyr"};
|
|
733
901
|
|
|
734
902
|
function applyAccordionMods(mods) {
|
|
735
903
|
return [
|
|
736
|
-
css$
|
|
904
|
+
css$18.root, css$18['mode-' + (mods.mode || 'block')], mods.padding && css$18['padding-' + mods.padding],
|
|
737
905
|
];
|
|
738
906
|
}
|
|
739
907
|
const Accordion = uuiCore.withMods(uuiComponents.Accordion, applyAccordionMods, (mods) => ({
|
|
740
908
|
dropdownIcon: mods.dropdownIcon !== null && systemIcons[mods.mode === 'block' ? '60' : '30'].foldingArrow,
|
|
741
909
|
}));
|
|
742
910
|
|
|
743
|
-
var css$
|
|
911
|
+
var css$17 = {"root":"C3NXQZ"};
|
|
744
912
|
|
|
745
|
-
const ControlGroup = uuiCore.withMods(uuiComponents.ControlGroup, () => [css$
|
|
913
|
+
const ControlGroup = uuiCore.withMods(uuiComponents.ControlGroup, () => [css$17.root]);
|
|
746
914
|
|
|
747
|
-
var css
|
|
915
|
+
var css$16 = {"root":"_7ca-Ly","border-bottom":"_9KsWn-","top-shadow":"-oulnc","size-24":"mfFQ3a","size-30":"wREiMJ","size-36":"CGRGmy","size-42":"GjjwCh","size-48":"VqUOS5","padding-6":"y02lUT","padding-12":"vtypkA","padding-18":"h7jOCo","padding-24":"HBf3Lo","margin-24":"zXe0U0","margin-12":"JqoxCt","vPadding-12":"Gwg-bG","vPadding-18":"_0nuDXM","vPadding-24":"_7WJi29","vPadding-36":"arWoNk","vPadding-48":"AzL3Zs","spacing-6":"GJilJA","spacing-12":"VOexu-","spacing-18":"_3frBj5","borderBottom":"_9KsWn-","topShadow":"-oulnc","size24":"mfFQ3a","size30":"wREiMJ","size36":"CGRGmy","size42":"GjjwCh","size48":"VqUOS5","padding6":"y02lUT","padding12":"vtypkA","padding18":"h7jOCo","padding24":"HBf3Lo","margin24":"zXe0U0","margin12":"JqoxCt","vPadding12":"Gwg-bG","vPadding18":"_0nuDXM","vPadding24":"_7WJi29","vPadding36":"arWoNk","vPadding48":"AzL3Zs","spacing6":"GJilJA","spacing12":"VOexu-","spacing18":"_3frBj5"};
|
|
748
916
|
|
|
749
|
-
const FlexCell = uuiCore.withMods(uuiComponents.FlexCell, () => [css
|
|
917
|
+
const FlexCell = uuiCore.withMods(uuiComponents.FlexCell, () => [css$16.flexCell]);
|
|
750
918
|
|
|
751
919
|
const FlexRow = uuiCore.withMods(uuiComponents.FlexRow, (props) => {
|
|
752
920
|
return [
|
|
753
|
-
css
|
|
921
|
+
css$16.root, props.size !== null && css$16['size-' + (props.size || '36')], props.padding && css$16['padding-' + props.padding], props.vPadding && css$16['vPadding-' + props.vPadding], props.margin && css$16['margin-' + props.margin], props.topShadow && css$16.topShadow, props.borderBottom && css$16.borderBottom, props.spacing && css$16['spacing-' + props.spacing],
|
|
754
922
|
];
|
|
755
923
|
});
|
|
756
924
|
|
|
757
|
-
var css$
|
|
925
|
+
var css$15 = {"root":"sjWL23","margin-24":"efp-Af","padding-12":"gws-Rx","padding-24":"pa0dcm","shadow":"dGv-Sn","margin24":"efp-Af","padding12":"gws-Rx","padding24":"pa0dcm"};
|
|
758
926
|
|
|
759
927
|
const Panel = uuiCore.withMods(uuiComponents.VPanel, (props) => [
|
|
760
|
-
'uui-panel', css$
|
|
928
|
+
'uui-panel', css$15.root, props.shadow && css$15.shadow, props.margin && css$15['margin-' + props.margin],
|
|
761
929
|
]);
|
|
762
930
|
|
|
763
|
-
var _path$
|
|
764
|
-
function _extends$
|
|
931
|
+
var _path$I;
|
|
932
|
+
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); }
|
|
765
933
|
var SvgNotificationCheckCircleFill24 = function SvgNotificationCheckCircleFill24(props, ref) {
|
|
766
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
934
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$K({
|
|
767
935
|
xmlns: "http://www.w3.org/2000/svg",
|
|
768
936
|
width: 24,
|
|
769
937
|
height: 24,
|
|
770
938
|
viewBox: "0 0 24 24",
|
|
771
939
|
ref: ref
|
|
772
|
-
}, props), _path$
|
|
940
|
+
}, props), _path$I || (_path$I = /*#__PURE__*/React__namespace.createElement("path", {
|
|
773
941
|
fillRule: "evenodd",
|
|
774
942
|
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"
|
|
775
943
|
})));
|
|
776
944
|
};
|
|
777
|
-
var ForwardRef$
|
|
945
|
+
var ForwardRef$K = /*#__PURE__*/React.forwardRef(SvgNotificationCheckCircleFill24);
|
|
778
946
|
|
|
779
|
-
var _path$
|
|
780
|
-
function _extends$
|
|
947
|
+
var _path$H;
|
|
948
|
+
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); }
|
|
781
949
|
var SvgNotificationWarningFill24 = function SvgNotificationWarningFill24(props, ref) {
|
|
782
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
950
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$J({
|
|
783
951
|
xmlns: "http://www.w3.org/2000/svg",
|
|
784
952
|
width: 24,
|
|
785
953
|
height: 24,
|
|
786
954
|
viewBox: "0 0 24 24",
|
|
787
955
|
ref: ref
|
|
788
|
-
}, props), _path$
|
|
956
|
+
}, props), _path$H || (_path$H = /*#__PURE__*/React__namespace.createElement("path", {
|
|
789
957
|
fillRule: "evenodd",
|
|
790
958
|
d: "M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"
|
|
791
959
|
})));
|
|
792
960
|
};
|
|
793
|
-
var ForwardRef$
|
|
961
|
+
var ForwardRef$J = /*#__PURE__*/React.forwardRef(SvgNotificationWarningFill24);
|
|
794
962
|
|
|
795
|
-
var _path$
|
|
796
|
-
function _extends$
|
|
963
|
+
var _path$G;
|
|
964
|
+
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); }
|
|
797
965
|
var SvgNotificationErrorFill24 = function SvgNotificationErrorFill24(props, ref) {
|
|
798
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
966
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$I({
|
|
799
967
|
xmlns: "http://www.w3.org/2000/svg",
|
|
800
968
|
width: 24,
|
|
801
969
|
height: 24,
|
|
802
970
|
viewBox: "0 0 24 24",
|
|
803
971
|
ref: ref
|
|
804
|
-
}, props), _path$
|
|
972
|
+
}, props), _path$G || (_path$G = /*#__PURE__*/React__namespace.createElement("path", {
|
|
805
973
|
fillRule: "evenodd",
|
|
806
974
|
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"
|
|
807
975
|
})));
|
|
808
976
|
};
|
|
809
|
-
var ForwardRef$
|
|
977
|
+
var ForwardRef$I = /*#__PURE__*/React.forwardRef(SvgNotificationErrorFill24);
|
|
810
978
|
|
|
811
|
-
var _path$
|
|
812
|
-
function _extends$
|
|
979
|
+
var _path$F;
|
|
980
|
+
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); }
|
|
813
981
|
var SvgNotificationHelpFill24 = function SvgNotificationHelpFill24(props, ref) {
|
|
814
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
982
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$H({
|
|
815
983
|
xmlns: "http://www.w3.org/2000/svg",
|
|
816
984
|
width: 24,
|
|
817
985
|
height: 24,
|
|
818
986
|
viewBox: "0 0 24 24",
|
|
819
987
|
ref: ref
|
|
820
|
-
}, props), _path$
|
|
988
|
+
}, props), _path$F || (_path$F = /*#__PURE__*/React__namespace.createElement("path", {
|
|
821
989
|
fillRule: "evenodd",
|
|
822
990
|
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"
|
|
823
991
|
})));
|
|
824
992
|
};
|
|
825
|
-
var ForwardRef$
|
|
993
|
+
var ForwardRef$H = /*#__PURE__*/React.forwardRef(SvgNotificationHelpFill24);
|
|
826
994
|
|
|
827
|
-
var _path$
|
|
828
|
-
function _extends$
|
|
995
|
+
var _path$E;
|
|
996
|
+
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); }
|
|
829
997
|
var SvgNavigationClose24$1 = function SvgNavigationClose24(props, ref) {
|
|
830
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
998
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$G({
|
|
831
999
|
xmlns: "http://www.w3.org/2000/svg",
|
|
832
1000
|
width: 24,
|
|
833
1001
|
height: 24,
|
|
834
1002
|
viewBox: "0 0 24 24",
|
|
835
1003
|
ref: ref
|
|
836
|
-
}, props), _path$
|
|
1004
|
+
}, props), _path$E || (_path$E = /*#__PURE__*/React__namespace.createElement("path", {
|
|
837
1005
|
fillRule: "evenodd",
|
|
838
1006
|
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"
|
|
839
1007
|
})));
|
|
840
1008
|
};
|
|
841
|
-
var ForwardRef$
|
|
1009
|
+
var ForwardRef$G = /*#__PURE__*/React.forwardRef(SvgNavigationClose24$1);
|
|
842
1010
|
|
|
843
|
-
var css$
|
|
1011
|
+
var css$14 = {"root":"kYZwRS","icon-wrapper":"vpV-T-","alert-wrapper":"zpfsSG","size-48":"xZvwu3","size-36":"_2hahC2","action-wrapper":"A6fRpa","action-icon":"pG8FcU","action-link":"NodnNt","close-icon":"_4qAY1G","main-path":"-hhMYh","content":"_8-v5x4","iconWrapper":"vpV-T-","alertWrapper":"zpfsSG","size48":"xZvwu3","size36":"_2hahC2","actionWrapper":"A6fRpa","actionIcon":"pG8FcU","actionLink":"NodnNt","closeIcon":"_4qAY1G","mainPath":"-hhMYh"};
|
|
844
1012
|
|
|
845
|
-
const Alert = React__namespace.forwardRef((props, ref) => (React__namespace.createElement("div", Object.assign({ role: "alert", ref: ref, className: cx__default.default(css$
|
|
846
|
-
React__namespace.createElement("div", { className: css$
|
|
847
|
-
props.icon && (React__namespace.createElement("div", { className: css$
|
|
848
|
-
React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$
|
|
849
|
-
React__namespace.createElement("div", { className: css$
|
|
1013
|
+
const Alert = React__namespace.forwardRef((props, ref) => (React__namespace.createElement("div", Object.assign({ role: "alert", ref: ref, className: cx__default.default(css$14.alertWrapper, `alert-${props.color || 'default'}`, css$14.root, props.cx, (props.size === '36' ? css$14.size36 : css$14.size48)) }, props.rawProps),
|
|
1014
|
+
React__namespace.createElement("div", { className: css$14.mainPath },
|
|
1015
|
+
props.icon && (React__namespace.createElement("div", { className: css$14.iconWrapper },
|
|
1016
|
+
React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$14.actionIcon }))),
|
|
1017
|
+
React__namespace.createElement("div", { className: css$14.content },
|
|
850
1018
|
props.children,
|
|
851
|
-
props.actions && (React__namespace.createElement("div", { className: css$
|
|
852
|
-
props.onClose && React__namespace.createElement(IconButton, { icon: ForwardRef$
|
|
853
|
-
const WarningAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
854
|
-
const SuccessAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
855
|
-
const HintAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
856
|
-
const ErrorAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
return React__namespace.createElement(uuiComponents.Dropdown, Object.assign({}, this.props));
|
|
861
|
-
}
|
|
1019
|
+
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' })))))),
|
|
1020
|
+
props.onClose && React__namespace.createElement(IconButton, { icon: ForwardRef$G, color: "default", onClick: props.onClose, cx: css$14.closeIcon })))));
|
|
1021
|
+
const WarningAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$J, color: "warning", ref: ref }, props)));
|
|
1022
|
+
const SuccessAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$K, color: "success", ref: ref }, props)));
|
|
1023
|
+
const HintAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$H, color: "info", ref: ref }, props)));
|
|
1024
|
+
const ErrorAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$I, color: "error", ref: ref }, props)));
|
|
1025
|
+
|
|
1026
|
+
function Dropdown(props) {
|
|
1027
|
+
return React__namespace.createElement(uuiComponents.Dropdown, Object.assign({}, props));
|
|
862
1028
|
}
|
|
863
1029
|
|
|
864
|
-
var css$
|
|
1030
|
+
var css$13 = {"root":"JsYEG6"};
|
|
865
1031
|
|
|
866
1032
|
function applyDropdownContainerMods(mods) {
|
|
867
1033
|
return [
|
|
868
|
-
css$
|
|
1034
|
+
css$13.root, mods.vPadding && `vPadding-${mods.vPadding}`, mods.padding && `padding-${mods.padding}`,
|
|
869
1035
|
];
|
|
870
1036
|
}
|
|
871
1037
|
const DropdownContainer = uuiCore.withMods(uuiComponents.DropdownContainer, applyDropdownContainerMods);
|
|
872
1038
|
|
|
873
|
-
var css$
|
|
1039
|
+
var css$12 = {"menuRoot":"HSAfTU","bodyRoot":"_-3ktfd","submenuRootItem":"CUtbSR","iconAfter":"GieBi2","iconCheck":"_3TgRS9","splitterRoot":"vgjPzd","splitter":"rYP1DH","headerRoot":"g-sb-u","itemRoot":"_3XpNAE","icon":"QDl-ES","link":"ssSji6"};
|
|
874
1040
|
|
|
875
1041
|
const icons = systemIcons['36'];
|
|
876
1042
|
exports.IDropdownControlKeys = void 0;
|
|
@@ -909,10 +1075,13 @@ function DropdownMenuContainer(props) {
|
|
|
909
1075
|
props.onClose();
|
|
910
1076
|
}
|
|
911
1077
|
};
|
|
912
|
-
return (React__namespace.default.createElement(FocusLock__default.default, { as: "menu", className: css$
|
|
913
|
-
React__namespace.default.createElement(uuiComponents.DropdownContainer, Object.assign({}, props, { rawProps: { tabIndex: -1 } }))));
|
|
1078
|
+
return (React__namespace.default.createElement(FocusLock__default.default, { as: "menu", className: css$12.menuRoot, returnFocus: true, autoFocus: false, ref: menuRef, lockProps: { onKeyDown: handleArrowKeys, tabIndex: -1 } },
|
|
1079
|
+
React__namespace.default.createElement(uuiComponents.DropdownContainer, Object.assign({}, props, { rawProps: Object.assign(Object.assign({}, props.rawProps), { tabIndex: -1 }) }))));
|
|
914
1080
|
}
|
|
915
|
-
const DropdownMenuBody = uuiCore.withMods(DropdownMenuContainer, () => [css$
|
|
1081
|
+
const DropdownMenuBody = uuiCore.withMods(DropdownMenuContainer, () => [css$12.bodyRoot], (props) => {
|
|
1082
|
+
const dropdownRawProps = props.minWidth ? Object.assign(Object.assign({}, props.rawProps), { style: { minWidth: `${props.minWidth}px` } }) : null;
|
|
1083
|
+
return (Object.assign(Object.assign({}, props), { rawProps: dropdownRawProps || props.rawProps }));
|
|
1084
|
+
});
|
|
916
1085
|
const DropdownMenuButton = React__namespace.default.forwardRef((props, ref) => {
|
|
917
1086
|
const context = React.useContext(uuiCore.UuiContext);
|
|
918
1087
|
const { icon, iconPosition, onIconClick, caption, isDisabled, isSelected, isActive, link, href, onClick, toggleDropdownOpening, isDropdown, isOpen, target, } = props;
|
|
@@ -933,32 +1102,32 @@ const DropdownMenuButton = React__namespace.default.forwardRef((props, ref) => {
|
|
|
933
1102
|
const getMenuButtonContent = () => {
|
|
934
1103
|
const isIconBefore = Boolean(icon && iconPosition !== 'right');
|
|
935
1104
|
const isIconAfter = Boolean(icon && iconPosition === 'right');
|
|
936
|
-
const iconElement = (React__namespace.default.createElement(IconButton, { icon: icon, color: isActive ? 'info' : 'default', onClick: onIconClick, cx: uuiCore.cx(css$
|
|
1105
|
+
const iconElement = (React__namespace.default.createElement(IconButton, { icon: icon, color: isActive ? 'info' : 'default', onClick: onIconClick, cx: uuiCore.cx(css$12.icon, iconPosition === 'right' ? css$12.iconAfter : css$12.iconBefore) }));
|
|
937
1106
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
938
1107
|
isIconBefore && iconElement,
|
|
939
|
-
React__namespace.default.createElement(uuiComponents.Text, { cx: css$
|
|
1108
|
+
React__namespace.default.createElement(uuiComponents.Text, { cx: css$12.caption }, caption),
|
|
940
1109
|
isIconAfter && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
941
1110
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
942
1111
|
iconElement))));
|
|
943
1112
|
};
|
|
944
1113
|
const isAnchor = Boolean(link || href);
|
|
945
|
-
const itemClassNames = uuiCore.cx(props.cx, css$
|
|
946
|
-
return isAnchor ? (React__namespace.default.createElement(uuiComponents.Anchor, { cx: uuiCore.cx(css$
|
|
1114
|
+
const itemClassNames = uuiCore.cx(props.cx, css$12.itemRoot, isDisabled && uuiCore.uuiMod.disabled, isActive && uuiCore.uuiMod.active, isOpen && uuiCore.uuiMod.opened);
|
|
1115
|
+
return isAnchor ? (React__namespace.default.createElement(uuiComponents.Anchor, { cx: uuiCore.cx(css$12.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: {
|
|
947
1116
|
tabIndex: isDisabled ? -1 : 0,
|
|
948
1117
|
role: 'menuitem',
|
|
949
1118
|
onKeyDown: isDisabled ? null : handleOpenDropdown,
|
|
950
1119
|
}, cx: itemClassNames, onClick: handleClick, ref: ref },
|
|
951
1120
|
getMenuButtonContent(),
|
|
952
|
-
isSelected && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icons.accept, cx: css$
|
|
1121
|
+
isSelected && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icons.accept, cx: css$12.selectedCheckmark })));
|
|
953
1122
|
});
|
|
954
1123
|
DropdownMenuButton.displayName = 'DropdownMenuButton';
|
|
955
1124
|
function DropdownMenuSplitter(props) {
|
|
956
|
-
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$
|
|
957
|
-
React__namespace.default.createElement("hr", { className: css$
|
|
1125
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$12.splitterRoot) },
|
|
1126
|
+
React__namespace.default.createElement("hr", { className: css$12.splitter })));
|
|
958
1127
|
}
|
|
959
1128
|
function DropdownMenuHeader(props) {
|
|
960
|
-
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$
|
|
961
|
-
React__namespace.default.createElement("span", { className: css$
|
|
1129
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$12.headerRoot) },
|
|
1130
|
+
React__namespace.default.createElement("span", { className: css$12.header }, props.caption)));
|
|
962
1131
|
}
|
|
963
1132
|
function DropdownSubMenu(props) {
|
|
964
1133
|
const subMenuModifiers = [
|
|
@@ -978,7 +1147,7 @@ function DropdownSubMenu(props) {
|
|
|
978
1147
|
];
|
|
979
1148
|
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) => {
|
|
980
1149
|
var { toggleDropdownOpening } = _a, targetProps = __rest(_a, ["toggleDropdownOpening"]);
|
|
981
|
-
return (React__namespace.default.createElement(DropdownMenuButton, Object.assign({ cx: uuiCore.cx(css$
|
|
1150
|
+
return (React__namespace.default.createElement(DropdownMenuButton, Object.assign({ cx: uuiCore.cx(css$12.submenuRootItem), icon: icons.foldingArrow, iconPosition: "right", isDropdown: true, toggleDropdownOpening: toggleDropdownOpening }, props, targetProps)));
|
|
982
1151
|
} }));
|
|
983
1152
|
}
|
|
984
1153
|
function DropdownMenuSwitchButton(props) {
|
|
@@ -995,16 +1164,16 @@ function DropdownMenuSwitchButton(props) {
|
|
|
995
1164
|
onHandleValueChange(!isSelected);
|
|
996
1165
|
}
|
|
997
1166
|
};
|
|
998
|
-
return (React__namespace.default.createElement(uuiComponents.FlexRow, { cx: uuiCore.cx(props.cx, css$
|
|
999
|
-
icon && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icon, cx: css$
|
|
1000
|
-
React__namespace.default.createElement(uuiComponents.Text, { cx: css$
|
|
1167
|
+
return (React__namespace.default.createElement(uuiComponents.FlexRow, { cx: uuiCore.cx(props.cx, css$12.itemRoot, isDisabled && uuiCore.uuiMod.disabled), onClick: () => onHandleValueChange(!isSelected), rawProps: { role: 'menuitem', onKeyDown: handleKeySelect, tabIndex: isDisabled ? -1 : 0 } },
|
|
1168
|
+
icon && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icon, cx: css$12.iconBefore }),
|
|
1169
|
+
React__namespace.default.createElement(uuiComponents.Text, { cx: css$12.caption }, caption),
|
|
1001
1170
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1002
1171
|
React__namespace.default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
1003
1172
|
}
|
|
1004
1173
|
|
|
1005
|
-
var css$
|
|
1174
|
+
var css$11 = {"root":"zwZPGx"};
|
|
1006
1175
|
|
|
1007
|
-
var css$
|
|
1176
|
+
var css$10 = {"line-height-12":"ni57Lf","line-height-18":"OKAXVF","line-height-24":"X56Fq1","line-height-30":"iguoae","font-size-10":"MBBlV9","font-size-12":"X5ywlk","font-size-14":"Uj8gPI","font-size-16":"O8clvg","font-size-18":"zaLxMj","font-size-24":"e-NP4l","v-padding-2":"b8zuNm","v-padding-3":"EEvOeD","v-padding-5":"U8Zpo2","v-padding-6":"wAKImI","v-padding-8":"_8AGks2","v-padding-9":"nkV7Jb","v-padding-11":"DrXT7C","v-padding-12":"Rjqv66","v-padding-14":"EznPYs","v-padding-15":"IHV3J-","v-padding-17":"IdHeYU","v-padding-18":"v-ToBK","v-padding-23":"neQIsZ","v-padding-24":"vGpKKb","lineHeight12":"ni57Lf","lineHeight18":"OKAXVF","lineHeight24":"X56Fq1","lineHeight30":"iguoae","fontSize10":"MBBlV9","fontSize12":"X5ywlk","fontSize14":"Uj8gPI","fontSize16":"O8clvg","fontSize18":"zaLxMj","fontSize24":"e-NP4l","vPadding2":"b8zuNm","vPadding3":"EEvOeD","vPadding5":"U8Zpo2","vPadding6":"wAKImI","vPadding8":"_8AGks2","vPadding9":"nkV7Jb","vPadding11":"DrXT7C","vPadding12":"Rjqv66","vPadding14":"EznPYs","vPadding15":"IHV3J-","vPadding17":"IdHeYU","vPadding18":"v-ToBK","vPadding23":"neQIsZ","vPadding24":"vGpKKb"};
|
|
1008
1177
|
|
|
1009
1178
|
const defaultTextSettings = {
|
|
1010
1179
|
18: { lineHeight: 12, fontSize: 10 },
|
|
@@ -1017,7 +1186,7 @@ const defaultTextSettings = {
|
|
|
1017
1186
|
};
|
|
1018
1187
|
function getTextClasses(props, border) {
|
|
1019
1188
|
if (props.size === 'none') {
|
|
1020
|
-
return [css$
|
|
1189
|
+
return [css$10['line-height-' + props.lineHeight], css$10['font-size-' + props.fontSize]];
|
|
1021
1190
|
}
|
|
1022
1191
|
const setting = {
|
|
1023
1192
|
size: props.size,
|
|
@@ -1026,7 +1195,7 @@ function getTextClasses(props, border) {
|
|
|
1026
1195
|
};
|
|
1027
1196
|
const vPadding = (+setting.size - +setting.lineHeight - (border ? 2 : 0)) / 2;
|
|
1028
1197
|
return [
|
|
1029
|
-
css$
|
|
1198
|
+
css$10['line-height-' + setting.lineHeight], css$10['font-size-' + setting.fontSize], css$10['v-padding-' + vPadding],
|
|
1030
1199
|
];
|
|
1031
1200
|
}
|
|
1032
1201
|
|
|
@@ -1039,12 +1208,12 @@ function applyTextMods(mods) {
|
|
|
1039
1208
|
return [
|
|
1040
1209
|
`uui-font-${mods.font || 'regular'}`,
|
|
1041
1210
|
`uui-text-${mods.color || 'primary'}`,
|
|
1042
|
-
css$
|
|
1211
|
+
css$11.root,
|
|
1043
1212
|
].concat(textClasses);
|
|
1044
1213
|
}
|
|
1045
1214
|
const Text = uuiCore.withMods(uuiComponents.Text, applyTextMods);
|
|
1046
1215
|
|
|
1047
|
-
var css
|
|
1216
|
+
var css$$ = {"container":"iG1OfX","loading-word":"HIfL66","animated-loading":"wUUw4e","skeleton_loading":"_3EKg7P","loadingWord":"HIfL66","animatedLoading":"wUUw4e","skeletonLoading":"_3EKg7P"};
|
|
1048
1217
|
|
|
1049
1218
|
const TextPlaceholder = (props) => {
|
|
1050
1219
|
const pattern = ' ';
|
|
@@ -1056,35 +1225,35 @@ const TextPlaceholder = (props) => {
|
|
|
1056
1225
|
}
|
|
1057
1226
|
return words;
|
|
1058
1227
|
}, [props.wordsCount]);
|
|
1059
|
-
return (React__namespace.createElement("div", Object.assign({ "aria-busy": true, className: css
|
|
1060
|
-
props.cx, css
|
|
1228
|
+
return (React__namespace.createElement("div", Object.assign({ "aria-busy": true, className: css$$.container }, props.rawProps), text.map((it, index) => (React__namespace.createElement("span", { key: index, className: cx__default.default([
|
|
1229
|
+
props.cx, css$$.loadingWord, !props.isNotAnimated && css$$.animatedLoading,
|
|
1061
1230
|
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
1062
1231
|
};
|
|
1063
1232
|
|
|
1064
|
-
var style = {"typography-16":"
|
|
1233
|
+
var style = {"typography-16":"Qdaj0q","typography-14":"chm54T","typography-12":"PF6KKb","typography-uui":"_1nitLC","typography16":"Qdaj0q","typography14":"chm54T","typography12":"PF6KKb","typographyUui":"_1nitLC"};
|
|
1065
1234
|
|
|
1066
1235
|
const RichTextView = uuiCore.withMods(uuiComponents.RichTextView, (mods) => [style.typographyUui, style['typography-' + (mods.size || '14')]]);
|
|
1067
1236
|
|
|
1068
|
-
var css$
|
|
1237
|
+
var css$_ = {"modal-blocker":"aW0rqf","animateModalBlocker":"dGOTvr","modal":"XsznXQ","modal-footer":"yRTRMA","border-top":"Qd2p01","modal-header":"Rx8Vt6","modalBlocker":"aW0rqf","modalFooter":"yRTRMA","borderTop":"Qd2p01","modalHeader":"Rx8Vt6"};
|
|
1069
1238
|
|
|
1070
|
-
const ModalBlocker = uuiCore.withMods(uuiComponents.ModalBlocker, () => [css$
|
|
1071
|
-
const ModalWindow = uuiCore.withMods(uuiComponents.ModalWindow, () => [css$
|
|
1239
|
+
const ModalBlocker = uuiCore.withMods(uuiComponents.ModalBlocker, () => [css$_.modalBlocker]);
|
|
1240
|
+
const ModalWindow = uuiCore.withMods(uuiComponents.ModalWindow, () => [css$_.modal], (props) => ({
|
|
1072
1241
|
style: Object.assign(Object.assign({}, props.style), { width: `${props.width || 420}px`, height: props.height ? `${props.height}px` : 'auto' }),
|
|
1073
1242
|
}));
|
|
1074
1243
|
class ModalHeader extends React__namespace.Component {
|
|
1075
1244
|
render() {
|
|
1076
|
-
return (React__namespace.createElement(FlexRow, { padding: this.props.padding || '24', vPadding: "12", borderBottom: this.props.borderBottom, cx: [css$
|
|
1245
|
+
return (React__namespace.createElement(FlexRow, { padding: this.props.padding || '24', vPadding: "12", borderBottom: this.props.borderBottom, cx: [css$_.modalHeader, this.props.cx], spacing: "12", rawProps: this.props.rawProps },
|
|
1077
1246
|
this.props.title && (React__namespace.createElement(Text, { size: "48", fontSize: "18", font: "semibold" }, this.props.title)),
|
|
1078
1247
|
this.props.children,
|
|
1079
1248
|
this.props.onClose && React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
1080
1249
|
this.props.onClose && (React__namespace.createElement(FlexCell, { shrink: 0, width: "auto" },
|
|
1081
|
-
React__namespace.createElement(IconButton, { icon: ForwardRef$
|
|
1250
|
+
React__namespace.createElement(IconButton, { icon: ForwardRef$G, onClick: this.props.onClose })))));
|
|
1082
1251
|
}
|
|
1083
1252
|
}
|
|
1084
1253
|
class ModalFooter extends React__namespace.Component {
|
|
1085
1254
|
render() {
|
|
1086
1255
|
return (React__namespace.createElement(FlexRow, { spacing: this.props.spacing || '12', cx: [
|
|
1087
|
-
css$
|
|
1256
|
+
css$_.modalFooter, this.props.borderTop && css$_.borderTop, this.props.cx,
|
|
1088
1257
|
], padding: this.props.padding || '24', vPadding: this.props.vPadding || '24', rawProps: this.props.rawProps }, this.props.children));
|
|
1089
1258
|
}
|
|
1090
1259
|
}
|
|
@@ -1170,25 +1339,31 @@ const i18n = Object.assign(Object.assign({}, uuiCore.i18n), { dataPickerBody: {
|
|
|
1170
1339
|
}, confirmationModal: {
|
|
1171
1340
|
discardButton: 'Discard',
|
|
1172
1341
|
saveButton: 'Save',
|
|
1342
|
+
}, fileUpload: {
|
|
1343
|
+
labelStart: 'Drop files to attach or',
|
|
1344
|
+
browse: 'browse',
|
|
1345
|
+
labelEnd: 'your local files',
|
|
1346
|
+
}, fileCard: {
|
|
1347
|
+
fileSizeProgress: ' of ',
|
|
1173
1348
|
} });
|
|
1174
1349
|
|
|
1175
|
-
var _path$
|
|
1176
|
-
function _extends$
|
|
1350
|
+
var _path$D;
|
|
1351
|
+
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); }
|
|
1177
1352
|
var SvgCross = function SvgCross(props, ref) {
|
|
1178
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1353
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$F({
|
|
1179
1354
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1180
1355
|
width: 24,
|
|
1181
1356
|
height: 24,
|
|
1182
1357
|
viewBox: "0 0 24 24",
|
|
1183
1358
|
ref: ref
|
|
1184
|
-
}, props), _path$
|
|
1359
|
+
}, props), _path$D || (_path$D = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1185
1360
|
fillRule: "evenodd",
|
|
1186
1361
|
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"
|
|
1187
1362
|
})));
|
|
1188
1363
|
};
|
|
1189
|
-
var ForwardRef$
|
|
1364
|
+
var ForwardRef$F = /*#__PURE__*/React.forwardRef(SvgCross);
|
|
1190
1365
|
|
|
1191
|
-
var css$
|
|
1366
|
+
var css$Z = {"root":"rpGnfP","icon-wrapper":"r4DgYr","action-wrapper":"gAQvA1","action-link":"uZeR-j","close-icon":"_19x-BM","main-path":"_8LQdhP","content":"z-2e1V","clear-button":"nIyLZr","close-wrapper":"kkwwXm","iconWrapper":"r4DgYr","actionWrapper":"gAQvA1","actionLink":"uZeR-j","closeIcon":"_19x-BM","mainPath":"_8LQdhP","clearButton":"nIyLZr","closeWrapper":"kkwwXm"};
|
|
1192
1367
|
|
|
1193
1368
|
const NotificationCard = React__namespace.default.forwardRef((props, ref) => {
|
|
1194
1369
|
const notificationCardNode = React__namespace.default.useRef(null);
|
|
@@ -1203,34 +1378,34 @@ const NotificationCard = React__namespace.default.forwardRef((props, ref) => {
|
|
|
1203
1378
|
(_b = notificationCardNode.current) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseleave', props.refreshTimer);
|
|
1204
1379
|
};
|
|
1205
1380
|
}, []);
|
|
1206
|
-
return (React__namespace.default.createElement("div", Object.assign({ role: "alert", className: cx__default.default(props.color && `notification-card-${props.color}`, css$
|
|
1207
|
-
React__namespace.default.createElement("div", { className: css$
|
|
1208
|
-
props.icon && (React__namespace.default.createElement("div", { className: css$
|
|
1209
|
-
React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$
|
|
1210
|
-
React__namespace.default.createElement("div", { className: css$
|
|
1381
|
+
return (React__namespace.default.createElement("div", Object.assign({ role: "alert", className: cx__default.default(props.color && `notification-card-${props.color}`, css$Z.root, props.cx), ref: notificationCardNode }, props.rawProps),
|
|
1382
|
+
React__namespace.default.createElement("div", { className: css$Z.mainPath },
|
|
1383
|
+
props.icon && (React__namespace.default.createElement("div", { className: css$Z.iconWrapper },
|
|
1384
|
+
React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$Z.actionIcon }))),
|
|
1385
|
+
React__namespace.default.createElement("div", { className: css$Z.content },
|
|
1211
1386
|
props.children,
|
|
1212
|
-
props.actions && (React__namespace.default.createElement("div", { className: css$
|
|
1213
|
-
props.onClose && (React__namespace.default.createElement("div", { className: css$
|
|
1214
|
-
React__namespace.default.createElement(IconButton, { icon: ForwardRef$
|
|
1387
|
+
props.actions && (React__namespace.default.createElement("div", { className: css$Z.actionWrapper }, props.actions.map((action) => (React__namespace.default.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$Z.actionLink, size: "36", rawProps: action.rawProps })))))),
|
|
1388
|
+
props.onClose && (React__namespace.default.createElement("div", { className: css$Z.closeWrapper },
|
|
1389
|
+
React__namespace.default.createElement(IconButton, { icon: ForwardRef$F, color: "default", onClick: props.onClose, cx: css$Z.closeIcon }))))));
|
|
1215
1390
|
});
|
|
1216
|
-
const WarningNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
1217
|
-
const SuccessNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
1218
|
-
const HintNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
1219
|
-
const ErrorNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
1391
|
+
const WarningNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$J, color: "warning" }, props, { ref: ref, cx: props.cx }))));
|
|
1392
|
+
const SuccessNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$K, color: "success" }, props, { ref: ref, cx: props.cx }))));
|
|
1393
|
+
const HintNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$H, color: "info" }, props, { ref: ref, cx: props.cx }))));
|
|
1394
|
+
const ErrorNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$I, color: "error" }, props, { ref: ref, cx: props.cx }))));
|
|
1220
1395
|
class ClearNotification extends React__namespace.default.Component {
|
|
1221
1396
|
render() {
|
|
1222
|
-
return (React__namespace.default.createElement("div", { className: cx__default.default(css$
|
|
1397
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default(css$Z.notificationWrapper, css$Z.clearButton) },
|
|
1223
1398
|
React__namespace.default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => this.context.uuiNotifications.clearAll() })));
|
|
1224
1399
|
}
|
|
1225
1400
|
}
|
|
1226
1401
|
ClearNotification.contextType = uuiCore.UuiContext;
|
|
1227
1402
|
|
|
1228
|
-
var css$
|
|
1403
|
+
var css$Y = {"root":"XQwwjX"};
|
|
1229
1404
|
|
|
1230
1405
|
function applyTooltipMods(mods) {
|
|
1231
1406
|
return [
|
|
1232
1407
|
`tooltip-${mods.color || 'default'}`,
|
|
1233
|
-
css$
|
|
1408
|
+
css$Y.root,
|
|
1234
1409
|
];
|
|
1235
1410
|
}
|
|
1236
1411
|
const Tooltip = uuiCore.withMods(uuiComponents.Tooltip, applyTooltipMods);
|
|
@@ -1252,20 +1427,20 @@ class ConfirmationModal extends React__namespace.Component {
|
|
|
1252
1427
|
}
|
|
1253
1428
|
}
|
|
1254
1429
|
|
|
1255
|
-
var css$
|
|
1430
|
+
var css$X = {"root":"hnQiDB","size-24":"BSBZYf","size-30":"kNgPYC","size-36":"khsr2J","size-42":"I1zp45","size-48":"_2Mpbqo","size24":"BSBZYf","size30":"kNgPYC","size36":"khsr2J","size42":"I1zp45","size48":"_2Mpbqo"};
|
|
1256
1431
|
|
|
1257
|
-
const defaultSize$
|
|
1432
|
+
const defaultSize$8 = '36';
|
|
1258
1433
|
function applyLabeledInputMods(mods) {
|
|
1259
|
-
return [css$
|
|
1434
|
+
return [css$X.root, css$X['size-' + (mods.size || defaultSize$8)]];
|
|
1260
1435
|
}
|
|
1261
1436
|
const LabeledInput = uuiCore.withMods(uuiComponents.LabeledInput, applyLabeledInputMods, (props) => ({
|
|
1262
1437
|
Tooltip,
|
|
1263
|
-
infoIcon: systemIcons[props.size || defaultSize$
|
|
1438
|
+
infoIcon: systemIcons[props.size || defaultSize$8].help,
|
|
1264
1439
|
}));
|
|
1265
1440
|
|
|
1266
|
-
var css$
|
|
1441
|
+
var css$W = {"root":"dxHTdg"};
|
|
1267
1442
|
|
|
1268
|
-
const RadioGroup = uuiCore.withMods(uuiComponents.RadioGroup, () => [css$
|
|
1443
|
+
const RadioGroup = uuiCore.withMods(uuiComponents.RadioGroup, () => [css$W.root], () => ({ RadioInput }));
|
|
1269
1444
|
|
|
1270
1445
|
function applyScrollBarsMods() {
|
|
1271
1446
|
return [
|
|
@@ -1276,52 +1451,52 @@ const ScrollBars = uuiCore.withMods(uuiComponents.ScrollBars, applyScrollBarsMod
|
|
|
1276
1451
|
|
|
1277
1452
|
const VirtualList = uuiComponents.VirtualList;
|
|
1278
1453
|
|
|
1279
|
-
var css$
|
|
1454
|
+
var css$V = {"root":"SvYA1O"};
|
|
1280
1455
|
|
|
1281
|
-
var css$
|
|
1456
|
+
var css$U = {"root":"cDGW7J","uui-spinner":"rvG-Sp","uuiSpinner":"rvG-Sp"};
|
|
1282
1457
|
|
|
1283
1458
|
function applySpinnerMods() {
|
|
1284
|
-
return [css$
|
|
1459
|
+
return [css$U.root];
|
|
1285
1460
|
}
|
|
1286
1461
|
const Spinner = uuiCore.withMods(uuiComponents.Spinner, applySpinnerMods);
|
|
1287
1462
|
|
|
1288
|
-
const Blocker = uuiCore.withMods(uuiComponents.Blocker, () => [css$
|
|
1463
|
+
const Blocker = uuiCore.withMods(uuiComponents.Blocker, () => [css$V.root], (cmpProps) => ({ renderSpinner: cmpProps.renderSpinner || (() => React__namespace.default.createElement(Spinner, null)) }));
|
|
1289
1464
|
|
|
1290
|
-
var css$
|
|
1465
|
+
var css$T = {"root":"-B-Xr8"};
|
|
1291
1466
|
|
|
1292
|
-
const CheckboxGroup = uuiCore.withMods(uuiComponents.CheckboxGroup, () => [css$
|
|
1467
|
+
const CheckboxGroup = uuiCore.withMods(uuiComponents.CheckboxGroup, () => [css$T.root], () => ({ CheckboxInput: Checkbox }));
|
|
1293
1468
|
|
|
1294
1469
|
function MultiSwitchComponent(props, ref) {
|
|
1295
1470
|
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), mode: 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' } }))))));
|
|
1296
1471
|
}
|
|
1297
1472
|
const MultiSwitch = React__namespace.forwardRef(MultiSwitchComponent);
|
|
1298
1473
|
|
|
1299
|
-
var css$
|
|
1474
|
+
var css$S = {"root":"U8iw3K","size-24":"oVJifS","size-30":"uO4zgx","size-36":"VcaOox","size-42":"Rpn9NB","size-48":"muWu8a","mode-form":"bRR9Oh","mode-cell":"CNh9Ev","size24":"oVJifS","size30":"uO4zgx","size36":"VcaOox","size42":"Rpn9NB","size48":"muWu8a","modeForm":"bRR9Oh","modeCell":"CNh9Ev"};
|
|
1300
1475
|
|
|
1301
|
-
const defaultSize$
|
|
1302
|
-
const defaultMode$
|
|
1476
|
+
const defaultSize$7 = '36';
|
|
1477
|
+
const defaultMode$4 = exports.EditMode.FORM;
|
|
1303
1478
|
function applyNumericInputMods(mods) {
|
|
1304
1479
|
return [
|
|
1305
|
-
textInputCss.root, css$
|
|
1480
|
+
textInputCss.root, css$S.root, css$S['size-' + (mods.size || defaultSize$7)], textInputCss['size-' + (mods.size || defaultSize$7)], textInputCss['mode-' + (mods.mode || defaultMode$4)],
|
|
1306
1481
|
];
|
|
1307
1482
|
}
|
|
1308
1483
|
const NumericInput = uuiCore.withMods(uuiComponents.NumericInput, applyNumericInputMods, (props) => {
|
|
1309
1484
|
var _a, _b;
|
|
1310
1485
|
return ({
|
|
1311
|
-
upIcon: systemIcons[props.size || defaultSize$
|
|
1312
|
-
downIcon: systemIcons[props.size || defaultSize$
|
|
1486
|
+
upIcon: systemIcons[props.size || defaultSize$7].foldingArrow,
|
|
1487
|
+
downIcon: systemIcons[props.size || defaultSize$7].foldingArrow,
|
|
1313
1488
|
align: (_a = props.align) !== null && _a !== void 0 ? _a : (props.mode === 'cell' ? 'right' : 'left'),
|
|
1314
1489
|
disableArrows: (_b = props.disableArrows) !== null && _b !== void 0 ? _b : props.mode === 'cell',
|
|
1315
1490
|
});
|
|
1316
1491
|
});
|
|
1317
1492
|
|
|
1318
|
-
var css$
|
|
1493
|
+
var css$R = {"root":"kXYEPr","mode-form":"fLJC6H","mode-cell":"lMQ2mu","mode-inline":"VHhy-f","size-24":"h9zsJB","size-30":"rUsP1s","size-36":"g4-X-X","size-42":"fskKPB","size-48":"DiULaA","modeForm":"fLJC6H","modeCell":"lMQ2mu","modeInline":"VHhy-f","size24":"h9zsJB","size30":"rUsP1s","size36":"g4-X-X","size42":"fskKPB","size48":"DiULaA"};
|
|
1319
1494
|
|
|
1320
|
-
const defaultSize$
|
|
1321
|
-
const defaultMode$
|
|
1495
|
+
const defaultSize$6 = '36';
|
|
1496
|
+
const defaultMode$3 = exports.EditMode.FORM;
|
|
1322
1497
|
function applyTextAreaMods(mods) {
|
|
1323
1498
|
return [
|
|
1324
|
-
css$
|
|
1499
|
+
css$R.root, css$R['size-' + (mods.size || defaultSize$6)], css$R['mode-' + (mods.mode || defaultMode$3)],
|
|
1325
1500
|
];
|
|
1326
1501
|
}
|
|
1327
1502
|
const TextArea = uuiCore.withMods(uuiComponents.TextArea, applyTextAreaMods, (props) => ({
|
|
@@ -1329,41 +1504,73 @@ const TextArea = uuiCore.withMods(uuiComponents.TextArea, applyTextAreaMods, (pr
|
|
|
1329
1504
|
maxLength: props.mode === exports.EditMode.CELL ? undefined : props.maxLength,
|
|
1330
1505
|
}));
|
|
1331
1506
|
|
|
1332
|
-
var css$
|
|
1507
|
+
var css$Q = {"root":"zUdkJF","icon":"agign7","date-input":"t4kTxW","dateInput":"t4kTxW"};
|
|
1333
1508
|
|
|
1334
|
-
|
|
1335
|
-
|
|
1509
|
+
const TimePickerBody = uuiCore.withMods(uuiComponents.TimePickerBody, () => [css$Q.root], () => ({ addIcon: ForwardRef$1c, subtractIcon: ForwardRef$1c }));
|
|
1510
|
+
|
|
1511
|
+
dayjs__default.default.extend(customParseFormat__default.default);
|
|
1512
|
+
const defaultMode$2 = exports.EditMode.FORM;
|
|
1513
|
+
class TimePicker extends uuiComponents.BaseTimePicker {
|
|
1514
|
+
constructor() {
|
|
1515
|
+
super(...arguments);
|
|
1516
|
+
this.renderInput = (props) => {
|
|
1517
|
+
var _a;
|
|
1518
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1519
|
+
if (this.props.size === '48') {
|
|
1520
|
+
uuiCore.devLogger.warnAboutDeprecatedPropValue({
|
|
1521
|
+
component: 'TimePicker',
|
|
1522
|
+
propName: 'size',
|
|
1523
|
+
propValue: this.props.size,
|
|
1524
|
+
propValueUseInstead: '42',
|
|
1525
|
+
condition: () => ['48'].indexOf(this.props.size) !== -1,
|
|
1526
|
+
});
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1529
|
+
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$Q.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 })));
|
|
1530
|
+
};
|
|
1531
|
+
this.renderBody = (props) => {
|
|
1532
|
+
var _a;
|
|
1533
|
+
return (!this.props.isDisabled && !this.props.isReadonly && (React__namespace.default.createElement(DropdownContainer, Object.assign({}, props),
|
|
1534
|
+
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 })))));
|
|
1535
|
+
};
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1539
|
+
var css$P = {"container":"CVsFmG"};
|
|
1540
|
+
|
|
1541
|
+
var _path$C;
|
|
1542
|
+
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); }
|
|
1336
1543
|
var SvgNavigationChevronLeft18 = function SvgNavigationChevronLeft18(props, ref) {
|
|
1337
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1544
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$E({
|
|
1338
1545
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1339
1546
|
width: 18,
|
|
1340
1547
|
height: 18,
|
|
1341
1548
|
viewBox: "0 0 18 18",
|
|
1342
1549
|
ref: ref
|
|
1343
|
-
}, props), _path$
|
|
1550
|
+
}, props), _path$C || (_path$C = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1344
1551
|
fillRule: "evenodd",
|
|
1345
1552
|
d: "M11.557 5.558 10.5 4.5 6 9l4.5 4.5 1.057-1.057L8.123 9l3.434-3.442z",
|
|
1346
1553
|
clipRule: "evenodd"
|
|
1347
1554
|
})));
|
|
1348
1555
|
};
|
|
1349
|
-
var ForwardRef$
|
|
1556
|
+
var ForwardRef$E = /*#__PURE__*/React.forwardRef(SvgNavigationChevronLeft18);
|
|
1350
1557
|
|
|
1351
|
-
var _path$
|
|
1352
|
-
function _extends$
|
|
1558
|
+
var _path$B;
|
|
1559
|
+
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); }
|
|
1353
1560
|
var SvgNavigationChevronRight18 = function SvgNavigationChevronRight18(props, ref) {
|
|
1354
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1561
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$D({
|
|
1355
1562
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1356
1563
|
width: 18,
|
|
1357
1564
|
height: 18,
|
|
1358
1565
|
viewBox: "0 0 18 18",
|
|
1359
1566
|
ref: ref
|
|
1360
|
-
}, props), _path$
|
|
1567
|
+
}, props), _path$B || (_path$B = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1361
1568
|
fillRule: "evenodd",
|
|
1362
1569
|
d: "M7.5 4.5 6.442 5.558 9.877 9l-3.435 3.443L7.5 13.5 12 9 7.5 4.5z",
|
|
1363
1570
|
clipRule: "evenodd"
|
|
1364
1571
|
})));
|
|
1365
1572
|
};
|
|
1366
|
-
var ForwardRef$
|
|
1573
|
+
var ForwardRef$D = /*#__PURE__*/React.forwardRef(SvgNavigationChevronRight18);
|
|
1367
1574
|
|
|
1368
1575
|
const uuiHeader = {
|
|
1369
1576
|
container: 'uui-datepickerheader-container',
|
|
@@ -1437,17 +1644,17 @@ function DatePickerHeader(props) {
|
|
|
1437
1644
|
var _a, _b, _c;
|
|
1438
1645
|
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()}`;
|
|
1439
1646
|
}, [(_a = props.value) === null || _a === void 0 ? void 0 : _a.view, (_b = props.value) === null || _b === void 0 ? void 0 : _b.displayedDate]);
|
|
1440
|
-
return (React__namespace.createElement("div", { className: cx__default.default(css$
|
|
1647
|
+
return (React__namespace.createElement("div", { className: cx__default.default(css$P.container, uuiHeader.container, props.cx) },
|
|
1441
1648
|
React__namespace.createElement("header", { className: uuiHeader.header },
|
|
1442
|
-
React__namespace.createElement(Button, { icon: ForwardRef$
|
|
1649
|
+
React__namespace.createElement(Button, { icon: ForwardRef$E, color: "secondary", mode: "ghost", cx: uuiHeader.navIconLeft, onClick: () => onLeftNavigationArrow() }),
|
|
1443
1650
|
React__namespace.createElement(Button, { caption: title, mode: "ghost", cx: uuiHeader.navTitle, onClick: () => onCaptionClick(props.value.view) }),
|
|
1444
|
-
React__namespace.createElement(Button, { icon: ForwardRef$
|
|
1651
|
+
React__namespace.createElement(Button, { icon: ForwardRef$D, color: "secondary", mode: "ghost", cx: uuiHeader.navIconRight, onClick: () => onRightNavigationArrow() }))));
|
|
1445
1652
|
}
|
|
1446
1653
|
|
|
1447
|
-
var css$
|
|
1654
|
+
var css$O = {"root":"_1rVzHM"};
|
|
1448
1655
|
|
|
1449
1656
|
function applyDateSelectionMods() {
|
|
1450
|
-
return [css$
|
|
1657
|
+
return [css$O.root];
|
|
1451
1658
|
}
|
|
1452
1659
|
const Calendar = uuiCore.withMods(uuiComponents.Calendar, applyDateSelectionMods);
|
|
1453
1660
|
|
|
@@ -1514,14 +1721,14 @@ class DatePicker extends uuiComponents.BaseDatePicker {
|
|
|
1514
1721
|
}
|
|
1515
1722
|
}
|
|
1516
1723
|
|
|
1517
|
-
var css$
|
|
1724
|
+
var css$N = {"root":"S5Fe-D"};
|
|
1518
1725
|
|
|
1519
1726
|
function applyCalendarPresetsMods() {
|
|
1520
|
-
return [css$
|
|
1727
|
+
return [css$N.root];
|
|
1521
1728
|
}
|
|
1522
1729
|
const CalendarPresets = uuiCore.withMods(uuiComponents.CalendarPresets, applyCalendarPresetsMods, () => ({}));
|
|
1523
1730
|
|
|
1524
|
-
var css$
|
|
1731
|
+
var css$M = {"root":"vgnT35","container":"_29eBA1","day-selection":"_74vqZj","from-picker":"LvdvgA","to-picker":"z-8JRJ","bodes-wrapper":"_2CJiuD","blocker":"JncIpE","daySelection":"_74vqZj","fromPicker":"LvdvgA","toPicker":"z-8JRJ","bodesWrapper":"_2CJiuD"};
|
|
1525
1732
|
|
|
1526
1733
|
dayjs__default.default.extend(isoWeek__default.default);
|
|
1527
1734
|
function weekCount(displayedDate) {
|
|
@@ -1618,16 +1825,16 @@ class RangeDatePickerBody extends React__namespace.Component {
|
|
|
1618
1825
|
};
|
|
1619
1826
|
this.renderDatePicker = () => {
|
|
1620
1827
|
var _a, _b;
|
|
1621
|
-
return (React__namespace.createElement(FlexRow, { cx: [((_a = this.props.value) === null || _a === void 0 ? void 0 : _a.view) === 'DAY_SELECTION' && css$
|
|
1828
|
+
return (React__namespace.createElement(FlexRow, { cx: [((_a = this.props.value) === null || _a === void 0 ? void 0 : _a.view) === 'DAY_SELECTION' && css$M.daySelection, css$M.container], alignItems: "top" },
|
|
1622
1829
|
React__namespace.createElement(FlexCell, { width: "auto" },
|
|
1623
1830
|
React__namespace.createElement(FlexRow, null,
|
|
1624
|
-
React__namespace.createElement(FlexRow, { cx: css$
|
|
1625
|
-
React__namespace.createElement(DatePickerBody, { cx: uuiCore.cx(css$
|
|
1626
|
-
React__namespace.createElement(DatePickerBody, { cx: uuiCore.cx(css$
|
|
1831
|
+
React__namespace.createElement(FlexRow, { cx: css$M.bodesWrapper, alignItems: "top" },
|
|
1832
|
+
React__namespace.createElement(DatePickerBody, { cx: uuiCore.cx(css$M.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 }),
|
|
1833
|
+
React__namespace.createElement(DatePickerBody, { cx: uuiCore.cx(css$M.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 }),
|
|
1627
1834
|
((_b = this.props.value) === null || _b === void 0 ? void 0 : _b.view) !== 'DAY_SELECTION' && (React__namespace.createElement("div", { style: {
|
|
1628
1835
|
left: this.state.activePart === 'from' && '50%',
|
|
1629
1836
|
right: this.state.activePart === 'to' && '50%',
|
|
1630
|
-
}, className: css$
|
|
1837
|
+
}, className: css$M.blocker }))),
|
|
1631
1838
|
this.props.presets && this.renderPresets()),
|
|
1632
1839
|
this.props.renderFooter && this.props.renderFooter())));
|
|
1633
1840
|
};
|
|
@@ -1678,11 +1885,11 @@ class RangeDatePickerBody extends React__namespace.Component {
|
|
|
1678
1885
|
});
|
|
1679
1886
|
}
|
|
1680
1887
|
render() {
|
|
1681
|
-
return (React__namespace.createElement("div", Object.assign({ className: uuiCore.cx(css$
|
|
1888
|
+
return (React__namespace.createElement("div", Object.assign({ className: uuiCore.cx(css$M.root, uuiComponents.uuiDatePickerBodyBase.container, this.props.cx) }, this.props.rawProps), this.renderDatePicker()));
|
|
1682
1889
|
}
|
|
1683
1890
|
}
|
|
1684
1891
|
|
|
1685
|
-
var css$
|
|
1892
|
+
var css$L = {"dropdown-container":"P8hvx7","container":"g-rgzG","button-group":"b4GmUr","date-input":"_2-2M9Y","size-24":"QRGYz9","size-30":"e-W-m3","size-36":"rEeNQJ","size-42":"bA52OF","size-48":"e8L-h-","date-input-group":"tqVphe","separator":"-qvoWt","mode-form":"zypaqY","mode-cell":"JOr0-p","dropdownContainer":"P8hvx7","buttonGroup":"b4GmUr","dateInput":"_2-2M9Y","size24":"QRGYz9","size30":"e-W-m3","size36":"rEeNQJ","size42":"bA52OF","size48":"e8L-h-","dateInputGroup":"tqVphe","modeForm":"zypaqY","modeCell":"JOr0-p"};
|
|
1686
1893
|
|
|
1687
1894
|
const defaultValue = { from: null, to: null };
|
|
1688
1895
|
class RangeDatePicker extends uuiComponents.BaseRangeDatePicker {
|
|
@@ -1701,35 +1908,35 @@ class RangeDatePicker extends uuiComponents.BaseRangeDatePicker {
|
|
|
1701
1908
|
});
|
|
1702
1909
|
}
|
|
1703
1910
|
}
|
|
1704
|
-
return (React__namespace.createElement("div", { className: cx__default.default(this.props.inputCx, css$
|
|
1705
|
-
React__namespace.createElement(TextInput, { icon: systemIcons[this.props.size || '36'].calendar, cx: cx__default.default(css$
|
|
1706
|
-
React__namespace.createElement("div", { className: css$
|
|
1707
|
-
React__namespace.createElement(TextInput, { cx: cx__default.default(css$
|
|
1911
|
+
return (React__namespace.createElement("div", { className: cx__default.default(this.props.inputCx, css$L.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 },
|
|
1912
|
+
React__namespace.createElement(TextInput, { icon: systemIcons[this.props.size || '36'].calendar, cx: cx__default.default(css$L.dateInput, css$L['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 }),
|
|
1913
|
+
React__namespace.createElement("div", { className: css$L.separator }),
|
|
1914
|
+
React__namespace.createElement(TextInput, { cx: cx__default.default(css$L.dateInput, css$L['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 })));
|
|
1708
1915
|
};
|
|
1709
1916
|
}
|
|
1710
1917
|
renderBody(props) {
|
|
1711
1918
|
var _a;
|
|
1712
|
-
return (React__namespace.createElement(DropdownContainer, Object.assign({}, props, { cx: cx__default.default(css$
|
|
1919
|
+
return (React__namespace.createElement(DropdownContainer, Object.assign({}, props, { cx: cx__default.default(css$L.dropdownContainer) }),
|
|
1713
1920
|
React__namespace.createElement(FlexRow, null,
|
|
1714
1921
|
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 }))));
|
|
1715
1922
|
}
|
|
1716
1923
|
}
|
|
1717
1924
|
|
|
1718
|
-
var css$
|
|
1925
|
+
var css$K = {"blocker":"yjIUuA","marker":"trtrnO","top":"zdHyhf","bottom":"Aj4N3E","left":"c1bjoW","right":"Oynlxu","inside":"Q3ai4v"};
|
|
1719
1926
|
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
this.props.enableBlocker && React__namespace.createElement("div", { className: css$E.blocker }),
|
|
1927
|
+
function DropMarker(props) {
|
|
1928
|
+
return props.isDndInProgress
|
|
1929
|
+
? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
1930
|
+
props.enableBlocker && React__namespace.createElement("div", { className: css$K.blocker }),
|
|
1725
1931
|
React__namespace.createElement("div", { className: cx__default.default([
|
|
1726
|
-
css$
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1932
|
+
css$K.marker,
|
|
1933
|
+
css$K[props.position],
|
|
1934
|
+
props === null || props === void 0 ? void 0 : props.cx,
|
|
1935
|
+
]) })))
|
|
1936
|
+
: null;
|
|
1730
1937
|
}
|
|
1731
1938
|
|
|
1732
|
-
var css$
|
|
1939
|
+
var css$J = {"body":"kdmBdv","modal":"_6H5O3-","search-wrapper":"GILTWW","checkbox":"UdfrGY","no-found-size-24":"ss9d1z","no-found-size-30":"FWqJss","no-found-size-36":"OTZTdB","no-found-size-42":"A3LN9Y","searchWrapper":"GILTWW","noFoundSize24":"ss9d1z","noFoundSize30":"FWqJss","noFoundSize36":"OTZTdB","noFoundSize42":"A3LN9Y"};
|
|
1733
1940
|
|
|
1734
1941
|
class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
1735
1942
|
constructor() {
|
|
@@ -1741,16 +1948,16 @@ class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
|
1741
1948
|
if (this.props.renderNotFound) {
|
|
1742
1949
|
return this.props.renderNotFound();
|
|
1743
1950
|
}
|
|
1744
|
-
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$
|
|
1951
|
+
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$J[`no-found-size-${this.props.searchSize || 36}`], grow: 1, textAlign: "center" },
|
|
1745
1952
|
React__namespace.default.createElement(Text, { size: this.props.searchSize || '36' }, i18n.dataPickerBody.noRecordsMessage)));
|
|
1746
1953
|
}
|
|
1747
1954
|
render() {
|
|
1748
1955
|
const searchSize = uuiCore.isMobile() ? '48' : this.props.searchSize || '36';
|
|
1749
1956
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1750
|
-
this.showSearch() && (React__namespace.default.createElement("div", { key: "search", className: css$
|
|
1957
|
+
this.showSearch() && (React__namespace.default.createElement("div", { key: "search", className: css$J.searchWrapper },
|
|
1751
1958
|
React__namespace.default.createElement(uuiComponents.FlexCell, { grow: 1 },
|
|
1752
1959
|
React__namespace.default.createElement(SearchInput, Object.assign({ ref: this.searchRef, placeholder: i18n.dataPickerBody.searchPlaceholder }, this.searchLens.toProps(), { onKeyDown: this.searchKeyDown, size: searchSize }))))),
|
|
1753
|
-
React__namespace.default.createElement(FlexRow, { key: "body", cx: uuiCore.cx(css$
|
|
1960
|
+
React__namespace.default.createElement(FlexRow, { key: "body", cx: uuiCore.cx(css$J.body, css$J[this.props.editMode], css$J[this.props.selectionMode]), rawProps: { style: { maxHeight: this.props.maxHeight } } }, this.props.rowsCount > 0 ? (React__namespace.default.createElement(VirtualList, Object.assign({}, this.lens.toProps(), { rows: this.props.rows, role: "listbox", rawProps: this.props.rawProps, rowsCount: this.props.rowsCount }))) : (this.renderNotFound()))));
|
|
1754
1961
|
}
|
|
1755
1962
|
}
|
|
1756
1963
|
|
|
@@ -1784,37 +1991,37 @@ function DataPickerFooterImpl(props) {
|
|
|
1784
1991
|
}
|
|
1785
1992
|
const DataPickerFooter = React__namespace.default.memo(DataPickerFooterImpl);
|
|
1786
1993
|
|
|
1787
|
-
var css$
|
|
1994
|
+
var css$I = {"header":"vn-nHs","close":"OMq2PW"};
|
|
1788
1995
|
|
|
1789
|
-
var _path$
|
|
1790
|
-
function _extends$
|
|
1996
|
+
var _path$A;
|
|
1997
|
+
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); }
|
|
1791
1998
|
var SvgNavigationClose24 = function SvgNavigationClose24(props, ref) {
|
|
1792
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1999
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$C({
|
|
1793
2000
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1794
2001
|
width: 24,
|
|
1795
2002
|
height: 24,
|
|
1796
2003
|
viewBox: "0 0 24 24",
|
|
1797
2004
|
ref: ref
|
|
1798
|
-
}, props), _path$
|
|
2005
|
+
}, props), _path$A || (_path$A = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1799
2006
|
fillRule: "evenodd",
|
|
1800
2007
|
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 12 19 6.41z",
|
|
1801
2008
|
clipRule: "evenodd"
|
|
1802
2009
|
})));
|
|
1803
2010
|
};
|
|
1804
|
-
var ForwardRef$
|
|
2011
|
+
var ForwardRef$C = /*#__PURE__*/React.forwardRef(SvgNavigationClose24);
|
|
1805
2012
|
|
|
1806
2013
|
const DataPickerHeaderImpl = (props) => {
|
|
1807
2014
|
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
1808
|
-
return (React__namespace.default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: css$
|
|
2015
|
+
return (React__namespace.default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: css$I.header },
|
|
1809
2016
|
React__namespace.default.createElement(Text, { size: "48", font: "semibold" }, title),
|
|
1810
|
-
React__namespace.default.createElement(IconButton, { icon: ForwardRef$
|
|
2017
|
+
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$I.close })));
|
|
1811
2018
|
};
|
|
1812
2019
|
const DataPickerHeader = React__namespace.default.memo(DataPickerHeaderImpl);
|
|
1813
2020
|
|
|
1814
2021
|
var _defs$1, _use;
|
|
1815
|
-
function _extends$
|
|
2022
|
+
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); }
|
|
1816
2023
|
var SvgTreeFoldingArrow = function SvgTreeFoldingArrow(props, ref) {
|
|
1817
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2024
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$B({
|
|
1818
2025
|
width: 18,
|
|
1819
2026
|
height: 18,
|
|
1820
2027
|
viewBox: "0 0 18 18",
|
|
@@ -1832,19 +2039,19 @@ var SvgTreeFoldingArrow = function SvgTreeFoldingArrow(props, ref) {
|
|
|
1832
2039
|
fillRule: "evenodd"
|
|
1833
2040
|
})));
|
|
1834
2041
|
};
|
|
1835
|
-
var ForwardRef$
|
|
2042
|
+
var ForwardRef$B = /*#__PURE__*/React.forwardRef(SvgTreeFoldingArrow);
|
|
1836
2043
|
|
|
1837
|
-
var css$
|
|
2044
|
+
var css$H = {"cell":"LRUyLU","wrapper":"L64u-x","align-widgets-top":"kto44L","size-24":"jNfOwt","folding-arrow":"wly04y","size-30":"ioPNlr","size-36":"_3zFe4p","size-42":"r-3jor","size-48":"bqWV5K","size-60":"V1rsmP","align-widgets-center":"PkBqPA","padding-12":"EfPQH-","padding-24":"ptW8dD","padding-left-12":"_5KAgZv","padding-left-24":"fqGCFt","padding-right-24":"_8yKMp8","drag-handle":"muvtVr","checkbox":"r9WPQG","indent":"xytGRh","folding-arrow-12":"eLfIsA","folding-arrow-18":"SEDGj1","icon-container":"wf6npx","alignWidgetsTop":"kto44L","size24":"jNfOwt","foldingArrow":"wly04y","size30":"ioPNlr","size36":"_3zFe4p","size42":"r-3jor","size48":"bqWV5K","size60":"V1rsmP","alignWidgetsCenter":"PkBqPA","padding12":"EfPQH-","padding24":"ptW8dD","paddingLeft12":"_5KAgZv","paddingLeft24":"fqGCFt","paddingRight24":"_8yKMp8","dragHandle":"muvtVr","foldingArrow12":"eLfIsA","foldingArrow18":"SEDGj1","iconContainer":"wf6npx"};
|
|
1838
2045
|
|
|
1839
2046
|
function DataTableRowAddons(props) {
|
|
1840
2047
|
var _a, _b;
|
|
1841
2048
|
const row = props.rowProps;
|
|
1842
2049
|
const additionalItemSize = +props.size < 30 ? '12' : '18';
|
|
1843
2050
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
1844
|
-
((_a = row.dnd) === null || _a === void 0 ? void 0 : _a.srcData) && React__namespace.createElement(uuiComponents.DragHandle, { key: "dh", cx: css$
|
|
1845
|
-
((_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$
|
|
1846
|
-
row.indent > 0 && (React__namespace.createElement("div", { key: "fold", className: css$
|
|
1847
|
-
css$
|
|
2051
|
+
((_a = row.dnd) === null || _a === void 0 ? void 0 : _a.srcData) && React__namespace.createElement(uuiComponents.DragHandle, { key: "dh", cx: css$H.dragHandle }),
|
|
2052
|
+
((_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$H.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 })),
|
|
2053
|
+
row.indent > 0 && (React__namespace.createElement("div", { key: "fold", className: css$H.indent, style: { marginLeft: (row.indent - 1) * 24 } }, row.isFoldable && (React__namespace.createElement(uuiComponents.IconContainer, { key: "icon", icon: ForwardRef$B, cx: [
|
|
2054
|
+
css$H.foldingArrow, css$H[`folding-arrow-${additionalItemSize}`], uuiCore.uuiMarkers.clickable, css$H.iconContainer,
|
|
1848
2055
|
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row) }))))));
|
|
1849
2056
|
}
|
|
1850
2057
|
function DataTableCell(props) {
|
|
@@ -1862,18 +2069,18 @@ function DataTableCell(props) {
|
|
|
1862
2069
|
props.cx = [
|
|
1863
2070
|
'data-table-cell',
|
|
1864
2071
|
props.cx,
|
|
1865
|
-
css$
|
|
1866
|
-
css$
|
|
1867
|
-
css$
|
|
1868
|
-
props.isFirstColumn && css$
|
|
1869
|
-
props.isLastColumn && css$
|
|
1870
|
-
css$
|
|
2072
|
+
css$H.cell,
|
|
2073
|
+
css$H['size-' + (props.size || '36')],
|
|
2074
|
+
css$H[`padding-${props.padding || (isEditable && !props.rowProps.isLoading && '0') || '12'}`],
|
|
2075
|
+
props.isFirstColumn && css$H[`padding-left-${props.padding || (isEditable && !props.rowProps.isLoading && '12') || '24'}`],
|
|
2076
|
+
props.isLastColumn && css$H['padding-right-24'],
|
|
2077
|
+
css$H[`align-widgets-${props.alignActions || 'top'}`],
|
|
1871
2078
|
(props.border || isEditable) && 'uui-dt-vertical-cell-border',
|
|
1872
2079
|
];
|
|
1873
2080
|
return React__namespace.createElement(uuiComponents.DataTableCell, Object.assign({}, props));
|
|
1874
2081
|
}
|
|
1875
2082
|
|
|
1876
|
-
var css$
|
|
2083
|
+
var css$G = {"root":"S40yph","size-24":"_5pj1iP","size-30":"usSUJj","size-36":"O0TPr6","size-48":"rsdNNq","size-60":"YkEOBb","size24":"_5pj1iP","size30":"usSUJj","size36":"O0TPr6","size48":"rsdNNq","size60":"YkEOBb"};
|
|
1877
2084
|
|
|
1878
2085
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
1879
2086
|
// 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.
|
|
@@ -1885,137 +2092,137 @@ const renderDropMarkers = (props) => React__namespace.createElement(DropMarker,
|
|
|
1885
2092
|
const propsMods = { renderCell, renderDropMarkers };
|
|
1886
2093
|
const DataTableRow = uuiCore.withMods(uuiComponents.DataTableRow, ({ borderBottom = true, size }) => {
|
|
1887
2094
|
return [
|
|
1888
|
-
css$
|
|
2095
|
+
css$G.root, borderBottom && 'uui-dt-row-border', css$G['size-' + (size || '36')],
|
|
1889
2096
|
];
|
|
1890
2097
|
}, () => propsMods);
|
|
1891
2098
|
|
|
1892
|
-
var css$
|
|
2099
|
+
var css$F = {"header-cell":"rlOCKc","config-icon":"B7I0Fe","headerCell":"rlOCKc","configIcon":"B7I0Fe"};
|
|
1893
2100
|
|
|
1894
|
-
var _path$
|
|
1895
|
-
function _extends$
|
|
2101
|
+
var _path$z;
|
|
2102
|
+
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); }
|
|
1896
2103
|
var SvgActionSettings18 = function SvgActionSettings18(props, ref) {
|
|
1897
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2104
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$A({
|
|
1898
2105
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1899
2106
|
width: 18,
|
|
1900
2107
|
height: 18,
|
|
1901
2108
|
viewBox: "0 0 18 18",
|
|
1902
2109
|
ref: ref
|
|
1903
|
-
}, props), _path$
|
|
2110
|
+
}, props), _path$z || (_path$z = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1904
2111
|
fillRule: "evenodd",
|
|
1905
2112
|
d: "M3 9.093a6.083 6.083 0 0 1 0-.186L1.55 7.271a1 1 0 0 1-.118-1.163l1.28-2.216a1 1 0 0 1 1.066-.48l2.14.439a3.81 3.81 0 0 1 .163-.094l.691-2.073A1 1 0 0 1 7.721 1h2.558a1 1 0 0 1 .949.684l.69 2.073c.056.03.11.061.163.094l2.141-.439a1 1 0 0 1 1.067.48l1.279 2.216a1 1 0 0 1-.118 1.163L15 8.907a5.72 5.72 0 0 1 0 .186l1.45 1.636a1 1 0 0 1 .118 1.163l-1.28 2.216a1 1 0 0 1-1.066.48l-2.14-.438a6.215 6.215 0 0 1-.163.093l-.691 2.073a1 1 0 0 1-.949.684H7.721a1 1 0 0 1-.949-.684l-.69-2.073a6.105 6.105 0 0 1-.163-.094l-2.141.439a1 1 0 0 1-1.067-.48l-1.279-2.216a1 1 0 0 1 .118-1.163L3 9.093zM9 12a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",
|
|
1906
2113
|
clipRule: "evenodd"
|
|
1907
2114
|
})));
|
|
1908
2115
|
};
|
|
1909
|
-
var ForwardRef$
|
|
2116
|
+
var ForwardRef$A = /*#__PURE__*/React.forwardRef(SvgActionSettings18);
|
|
1910
2117
|
|
|
1911
|
-
const DataTableHeaderRow = uuiCore.withMods(uuiComponents.DataTableHeaderRow, (
|
|
2118
|
+
const DataTableHeaderRow = uuiCore.withMods(uuiComponents.DataTableHeaderRow, () => [css$F.root], (mods) => ({
|
|
1912
2119
|
renderCell: (props) => React__namespace.createElement(DataTableHeaderCell, Object.assign({}, props, { size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key })),
|
|
1913
|
-
renderConfigButton: () => React__namespace.createElement(IconButton, { key: "configuration", onClick: mods.onConfigButtonClick, cx: css$
|
|
2120
|
+
renderConfigButton: () => React__namespace.createElement(IconButton, { key: "configuration", onClick: mods.onConfigButtonClick, cx: css$F.configIcon, color: "default", icon: ForwardRef$A }),
|
|
1914
2121
|
}));
|
|
1915
2122
|
|
|
1916
|
-
var css$
|
|
2123
|
+
var css$E = {"cell":"DF-Vsz","sort-icon":"l4IOvb","dropdown-icon":"PWI4uz","infoIcon":"DD45AD","resizable":"ZUiCk0","size-24":"SEb7MX","size-30":"PYODSm","size-36":"ntfb-w","size-42":"jNJ6w5","size-48":"Qf1PqB","padding-left-24":"_8KrTNj","padding-right-24":"MimAfu","caption":"vGtIVj","checkbox":"_6vDzvE","icon":"sIkwLb","icon-cell":"_8aWUyJ","align-right":"gWhw4c","align-center":"tm0EBf","tooltip-wrapper":"P5CsnT","cell-tooltip":"Qnbu-P","upper-case":"hESSRh","font-size-14":"hz8RvU","resize-mark":"brEAnP","draggable":"I2yo9H","ghost":"yCoBOI","is-dragged-out":"sybWkA","dnd-marker-left":"DLabjo","dnd-marker-right":"Cz5-3v","cell-tooltip-wrapper":"-FME4L","cell-tooltip-text":"OVpd1a","sortIcon":"l4IOvb","dropdownIcon":"PWI4uz","size24":"SEb7MX","size30":"PYODSm","size36":"ntfb-w","size42":"jNJ6w5","size48":"Qf1PqB","paddingLeft24":"_8KrTNj","paddingRight24":"MimAfu","iconCell":"_8aWUyJ","alignRight":"gWhw4c","alignCenter":"tm0EBf","tooltipWrapper":"P5CsnT","cellTooltip":"Qnbu-P","upperCase":"hESSRh","fontSize14":"hz8RvU","resizeMark":"brEAnP","isDraggedOut":"sybWkA","dndMarkerLeft":"DLabjo","dndMarkerRight":"Cz5-3v","cellTooltipWrapper":"-FME4L","cellTooltipText":"OVpd1a"};
|
|
1917
2124
|
|
|
1918
|
-
var _path$
|
|
1919
|
-
function _extends$
|
|
2125
|
+
var _path$y;
|
|
2126
|
+
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); }
|
|
1920
2127
|
var SvgTableSwap18 = function SvgTableSwap18(props, ref) {
|
|
1921
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2128
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$z({
|
|
1922
2129
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1923
2130
|
width: 18,
|
|
1924
2131
|
height: 18,
|
|
1925
2132
|
viewBox: "0 0 18 18",
|
|
1926
2133
|
ref: ref
|
|
1927
|
-
}, props), _path$
|
|
2134
|
+
}, props), _path$y || (_path$y = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1928
2135
|
fillRule: "evenodd",
|
|
1929
2136
|
d: "M6 1 2 5h3v7h2V5h3L6 1zm7 12V6h-2v7H8l4 4 4-4h-3z",
|
|
1930
2137
|
clipRule: "evenodd"
|
|
1931
2138
|
})));
|
|
1932
2139
|
};
|
|
1933
|
-
var ForwardRef$
|
|
2140
|
+
var ForwardRef$z = /*#__PURE__*/React.forwardRef(SvgTableSwap18);
|
|
1934
2141
|
|
|
1935
|
-
var _path$
|
|
1936
|
-
function _extends$
|
|
2142
|
+
var _path$x;
|
|
2143
|
+
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); }
|
|
1937
2144
|
var SvgTableSortAsc18 = function SvgTableSortAsc18(props, ref) {
|
|
1938
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2145
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$y({
|
|
1939
2146
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1940
2147
|
width: 18,
|
|
1941
2148
|
height: 18,
|
|
1942
2149
|
viewBox: "0 0 18 18",
|
|
1943
2150
|
ref: ref
|
|
1944
|
-
}, props), _path$
|
|
2151
|
+
}, props), _path$x || (_path$x = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1945
2152
|
fillRule: "evenodd",
|
|
1946
2153
|
d: "M10 6v10H8V6H5l4-4 4 4h-3z",
|
|
1947
2154
|
clipRule: "evenodd"
|
|
1948
2155
|
})));
|
|
1949
2156
|
};
|
|
1950
|
-
var ForwardRef$
|
|
2157
|
+
var ForwardRef$y = /*#__PURE__*/React.forwardRef(SvgTableSortAsc18);
|
|
1951
2158
|
|
|
1952
|
-
var _path$
|
|
1953
|
-
function _extends$
|
|
2159
|
+
var _path$w;
|
|
2160
|
+
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); }
|
|
1954
2161
|
var SvgTableSortDesc18 = function SvgTableSortDesc18(props, ref) {
|
|
1955
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2162
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$x({
|
|
1956
2163
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1957
2164
|
width: 18,
|
|
1958
2165
|
height: 18,
|
|
1959
2166
|
viewBox: "0 0 18 18",
|
|
1960
2167
|
ref: ref
|
|
1961
|
-
}, props), _path$
|
|
2168
|
+
}, props), _path$w || (_path$w = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1962
2169
|
fillRule: "evenodd",
|
|
1963
2170
|
d: "M10 12V2H8v10H5l4 4 4-4h-3z",
|
|
1964
2171
|
clipRule: "evenodd"
|
|
1965
2172
|
})));
|
|
1966
2173
|
};
|
|
1967
|
-
var ForwardRef$
|
|
2174
|
+
var ForwardRef$x = /*#__PURE__*/React.forwardRef(SvgTableSortDesc18);
|
|
1968
2175
|
|
|
1969
|
-
var _path$
|
|
1970
|
-
function _extends$
|
|
2176
|
+
var _path$v;
|
|
2177
|
+
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); }
|
|
1971
2178
|
var SvgContentFiltration18 = function SvgContentFiltration18(props, ref) {
|
|
1972
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2179
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$w({
|
|
1973
2180
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1974
2181
|
width: 18,
|
|
1975
2182
|
height: 18,
|
|
1976
2183
|
viewBox: "0 0 18 18",
|
|
1977
2184
|
ref: ref
|
|
1978
|
-
}, props), _path$
|
|
2185
|
+
}, props), _path$v || (_path$v = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1979
2186
|
fillRule: "evenodd",
|
|
1980
2187
|
d: "m8 14 2 2v-5H8v3zM2 3v2h14V3H2zm6 8h2l6-6H2l6 6z",
|
|
1981
2188
|
clipRule: "evenodd"
|
|
1982
2189
|
})));
|
|
1983
2190
|
};
|
|
1984
|
-
var ForwardRef$
|
|
2191
|
+
var ForwardRef$w = /*#__PURE__*/React.forwardRef(SvgContentFiltration18);
|
|
1985
2192
|
|
|
1986
|
-
var _path$
|
|
1987
|
-
function _extends$
|
|
2193
|
+
var _path$u;
|
|
2194
|
+
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); }
|
|
1988
2195
|
var SvgNavigationChevronDown18 = function SvgNavigationChevronDown18(props, ref) {
|
|
1989
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2196
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$v({
|
|
1990
2197
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1991
2198
|
width: 18,
|
|
1992
2199
|
height: 18,
|
|
1993
2200
|
viewBox: "0 0 18 18",
|
|
1994
2201
|
ref: ref
|
|
1995
|
-
}, props), _path$
|
|
2202
|
+
}, props), _path$u || (_path$u = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1996
2203
|
fillRule: "evenodd",
|
|
1997
2204
|
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",
|
|
1998
2205
|
clipRule: "evenodd"
|
|
1999
2206
|
})));
|
|
2000
2207
|
};
|
|
2001
|
-
var ForwardRef$
|
|
2208
|
+
var ForwardRef$v = /*#__PURE__*/React.forwardRef(SvgNavigationChevronDown18);
|
|
2002
2209
|
|
|
2003
|
-
var _path$
|
|
2004
|
-
function _extends$
|
|
2210
|
+
var _path$t;
|
|
2211
|
+
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); }
|
|
2005
2212
|
var SvgNavigationChevronUp18 = function SvgNavigationChevronUp18(props, ref) {
|
|
2006
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2213
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$u({
|
|
2007
2214
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2008
2215
|
width: 18,
|
|
2009
2216
|
height: 18,
|
|
2010
2217
|
viewBox: "0 0 18 18",
|
|
2011
2218
|
ref: ref
|
|
2012
|
-
}, props), _path$
|
|
2219
|
+
}, props), _path$t || (_path$t = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2013
2220
|
fillRule: "evenodd",
|
|
2014
2221
|
d: "m9 6-4.5 4.5 1.058 1.057L9 8.123l3.443 3.434L13.5 10.5 9 6z",
|
|
2015
2222
|
clipRule: "evenodd"
|
|
2016
2223
|
})));
|
|
2017
2224
|
};
|
|
2018
|
-
var ForwardRef$
|
|
2225
|
+
var ForwardRef$u = /*#__PURE__*/React.forwardRef(SvgNavigationChevronUp18);
|
|
2019
2226
|
|
|
2020
2227
|
class DataTableHeaderCell extends React__namespace.Component {
|
|
2021
2228
|
constructor() {
|
|
@@ -2025,29 +2232,29 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
2025
2232
|
};
|
|
2026
2233
|
this.getTextStyle = () => {
|
|
2027
2234
|
if (this.props.textCase === 'upper')
|
|
2028
|
-
return css$
|
|
2029
|
-
return css$
|
|
2235
|
+
return css$E.upperCase;
|
|
2236
|
+
return css$E['font-size-14'];
|
|
2030
2237
|
};
|
|
2031
|
-
this.getTooltipContent = () => (React__namespace.createElement("div", { className: css$
|
|
2032
|
-
React__namespace.createElement(Text, { fontSize: "14", color: "contrast", font: "semibold", cx: css$
|
|
2033
|
-
this.props.column.info && React__namespace.createElement(Text, { fontSize: "12", color: "contrast", cx: css$
|
|
2238
|
+
this.getTooltipContent = () => (React__namespace.createElement("div", { className: css$E.cellTooltipWrapper },
|
|
2239
|
+
React__namespace.createElement(Text, { fontSize: "14", color: "contrast", font: "semibold", cx: css$E.cellTooltipText }, this.props.column.caption),
|
|
2240
|
+
this.props.column.info && React__namespace.createElement(Text, { fontSize: "12", color: "contrast", cx: css$E.cellTooltipText }, this.props.column.info)));
|
|
2034
2241
|
this.getColumnCaption = () => {
|
|
2035
|
-
return (React__namespace.createElement("div", { className: css$
|
|
2036
|
-
React__namespace.createElement("div", { className: uuiCore.cx(css$
|
|
2037
|
-
React__namespace.createElement(Tooltip, { placement: "top", color: "contrast", renderContent: this.getTooltipContent, cx: css$
|
|
2038
|
-
React__namespace.createElement(Text, { key: "text", lineHeight: "30", fontSize: "14", size: "30", cx: uuiCore.cx(css$
|
|
2039
|
-
this.props.column.isSortable && (!this.props.column.renderFilter || this.props.sortDirection) && (React__namespace.createElement(IconButton, { key: "sort", cx: uuiCore.cx(css$
|
|
2040
|
-
this.props.isFilterActive && (React__namespace.createElement(IconButton, { key: "filter", cx: uuiCore.cx(css$
|
|
2041
|
-
this.props.column.renderFilter && (React__namespace.createElement(IconButton, { key: "dropdown", cx: uuiCore.cx(css$
|
|
2242
|
+
return (React__namespace.createElement("div", { className: css$E.tooltipWrapper },
|
|
2243
|
+
React__namespace.createElement("div", { className: uuiCore.cx(css$E.iconCell, css$E['align-' + this.props.column.textAlign], uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaptionWrapper) },
|
|
2244
|
+
React__namespace.createElement(Tooltip, { placement: "top", color: "contrast", renderContent: this.getTooltipContent, cx: css$E.cellTooltip, openDelay: 600 },
|
|
2245
|
+
React__namespace.createElement(Text, { key: "text", lineHeight: "30", fontSize: "14", size: "30", cx: uuiCore.cx(css$E.caption, this.getTextStyle(), uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaption) }, this.props.column.caption)),
|
|
2246
|
+
this.props.column.isSortable && (!this.props.column.renderFilter || this.props.sortDirection) && (React__namespace.createElement(IconButton, { key: "sort", cx: uuiCore.cx(css$E.icon, css$E.sortIcon, this.props.sortDirection && css$E.sortIconActive, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderSortIcon), color: this.props.sortDirection ? 'default' : 'secondary', icon: this.props.sortDirection === 'desc' ? ForwardRef$x : this.props.sortDirection === 'asc' ? ForwardRef$y : ForwardRef$z })),
|
|
2247
|
+
this.props.isFilterActive && (React__namespace.createElement(IconButton, { key: "filter", cx: uuiCore.cx(css$E.icon, !this.props.sortDirection && css$E.filterIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderFilterIcon), color: "default", icon: ForwardRef$w })),
|
|
2248
|
+
this.props.column.renderFilter && (React__namespace.createElement(IconButton, { key: "dropdown", cx: uuiCore.cx(css$E.icon, css$E.dropdownIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderDropdownIcon), color: "secondary", icon: this.state.isDropdownOpen ? ForwardRef$u : ForwardRef$v })))));
|
|
2042
2249
|
};
|
|
2043
2250
|
this.renderHeaderCheckbox = () => this.props.selectAll
|
|
2044
|
-
&& this.props.isFirstColumn && (React__namespace.createElement(Checkbox, Object.assign({ size: +this.props.size < 36 ? '12' : '18' }, this.props.selectAll, { cx: uuiCore.cx(css$
|
|
2045
|
-
this.renderResizeMark = (props) => React__namespace.createElement("div", { onMouseDown: props.onResizeStart, className: uuiCore.cx(css$
|
|
2251
|
+
&& this.props.isFirstColumn && (React__namespace.createElement(Checkbox, Object.assign({ size: +this.props.size < 36 ? '12' : '18' }, this.props.selectAll, { cx: uuiCore.cx(css$E.checkbox, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCheckbox) })));
|
|
2252
|
+
this.renderResizeMark = (props) => React__namespace.createElement("div", { onMouseDown: props.onResizeStart, className: uuiCore.cx(css$E.resizeMark, uuiCore.uuiMarkers.draggable) });
|
|
2046
2253
|
this.renderCellContent = (props, dropdownProps) => (React__namespace.createElement(FlexCell, Object.assign({}, this.props.column, { minWidth: this.props.column.width, ref: (ref) => {
|
|
2047
2254
|
var _a;
|
|
2048
2255
|
props.ref(ref);
|
|
2049
2256
|
(_a = dropdownProps === null || dropdownProps === void 0 ? void 0 : dropdownProps.ref) === null || _a === void 0 ? void 0 : _a.call(dropdownProps, ref);
|
|
2050
|
-
}, cx: uuiCore.cx(uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCell, (this.props.column.isSortable || this.props.isDropdown) && uuiCore.uuiMarkers.clickable, css$
|
|
2257
|
+
}, cx: uuiCore.cx(uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCell, (this.props.column.isSortable || this.props.isDropdown) && uuiCore.uuiMarkers.clickable, css$E.cell, css$E['size-' + (this.props.size || '36')], this.props.isFirstColumn && css$E['padding-left-24'], this.props.isLastColumn && css$E['padding-right-24'], this.props.column.cx, this.props.allowColumnsResizing && css$E.resizable, props.isDraggable && css$E.draggable, props.isDragGhost && css$E.ghost, props.isDraggedOut && css$E.isDraggedOut, props.isDndInProgress && css$E['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) }),
|
|
2051
2258
|
this.renderHeaderCheckbox(),
|
|
2052
2259
|
this.getColumnCaption(),
|
|
2053
2260
|
this.props.allowColumnsResizing && this.renderResizeMark(props)));
|
|
@@ -2084,10 +2291,10 @@ const useColumnsWithFilters = (initialColumns, filters) => {
|
|
|
2084
2291
|
return columns;
|
|
2085
2292
|
};
|
|
2086
2293
|
|
|
2087
|
-
var _path$
|
|
2088
|
-
function _extends$
|
|
2294
|
+
var _path$s, _path2$1, _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;
|
|
2295
|
+
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); }
|
|
2089
2296
|
var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
2090
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2297
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$t({
|
|
2091
2298
|
width: 232,
|
|
2092
2299
|
height: 180,
|
|
2093
2300
|
viewBox: "0 0 232 180",
|
|
@@ -2096,7 +2303,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
2096
2303
|
ref: ref
|
|
2097
2304
|
}, props), /*#__PURE__*/React__namespace.createElement("g", {
|
|
2098
2305
|
clipPath: "url(#a)"
|
|
2099
|
-
}, _path$
|
|
2306
|
+
}, _path$s || (_path$s = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2100
2307
|
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",
|
|
2101
2308
|
fill: "#F5F6FA"
|
|
2102
2309
|
})), _path2$1 || (_path2$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -2222,9 +2429,9 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
2222
2429
|
d: "M0 0h230.897v180H0z"
|
|
2223
2430
|
})))));
|
|
2224
2431
|
};
|
|
2225
|
-
var ForwardRef$
|
|
2432
|
+
var ForwardRef$t = /*#__PURE__*/React.forwardRef(SvgEmptyTable);
|
|
2226
2433
|
|
|
2227
|
-
var css$
|
|
2434
|
+
var css$D = {"sticky-header":"vFzD-l","listContainer":"nZrRM-","table":"kADCE-","no-results":"KCdr2X","no-results-icon":"eMnr02","no-results-title":"_0cZiHG","stickyHeader":"vFzD-l","noResults":"KCdr2X","noResultsIcon":"eMnr02","noResultsTitle":"_0cZiHG"};
|
|
2228
2435
|
|
|
2229
2436
|
function DataTable(props) {
|
|
2230
2437
|
var _a;
|
|
@@ -2238,9 +2445,9 @@ function DataTable(props) {
|
|
|
2238
2445
|
const renderedRows = rows.map((row) => (props.renderRow || renderRow)(Object.assign(Object.assign({}, row), { columns })));
|
|
2239
2446
|
const renderNoResultsBlock = React__namespace.useCallback(() => {
|
|
2240
2447
|
var _a;
|
|
2241
|
-
return (React__namespace.createElement("div", { className: css$
|
|
2242
|
-
React__namespace.createElement(uuiComponents.IconContainer, { cx: css$
|
|
2243
|
-
React__namespace.createElement(Text, { cx: css$
|
|
2448
|
+
return (React__namespace.createElement("div", { className: css$D.noResults }, props.renderNoResultsBlock ? ((_a = props.renderNoResultsBlock) === null || _a === void 0 ? void 0 : _a.call(props)) : (React__namespace.createElement(React__namespace.Fragment, null,
|
|
2449
|
+
React__namespace.createElement(uuiComponents.IconContainer, { cx: css$D.noResultsIcon, icon: ForwardRef$t }),
|
|
2450
|
+
React__namespace.createElement(Text, { cx: css$D.noResultsTitle, fontSize: "24", lineHeight: "30", color: "primary", font: "semibold" }, i18n.tables.noResultsBlock.title),
|
|
2244
2451
|
React__namespace.createElement(Text, { fontSize: "16", lineHeight: "24", font: "regular", color: "primary" }, i18n.tables.noResultsBlock.message)))));
|
|
2245
2452
|
}, [props.renderNoResultsBlock]);
|
|
2246
2453
|
const onConfigurationButtonClick = React__namespace.useCallback(() => {
|
|
@@ -2257,107 +2464,107 @@ function DataTable(props) {
|
|
|
2257
2464
|
props.columns, config, defaultConfig, props.value, props.onValueChange, props.renderColumnsConfigurationModal,
|
|
2258
2465
|
]);
|
|
2259
2466
|
const renderRowsContainer = React__namespace.useCallback(({ listContainerRef, estimatedHeight, offsetY, scrollShadows, }) => (React__namespace.createElement(React__namespace.Fragment, null,
|
|
2260
|
-
React__namespace.createElement("div", { className: css$
|
|
2467
|
+
React__namespace.createElement("div", { className: css$D.stickyHeader },
|
|
2261
2468
|
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 }),
|
|
2262
2469
|
React__namespace.createElement("div", { className: uuiCore.cx(uuiCore.uuiScrollShadows.top, {
|
|
2263
2470
|
[uuiCore.uuiScrollShadows.topVisible]: scrollShadows.verticalTop,
|
|
2264
2471
|
}) })),
|
|
2265
|
-
props.exactRowsCount !== 0 ? (React__namespace.createElement("div", { className: css$
|
|
2472
|
+
props.exactRowsCount !== 0 ? (React__namespace.createElement("div", { className: css$D.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
2266
2473
|
React__namespace.createElement("div", { ref: listContainerRef, role: "rowgroup", style: { marginTop: offsetY }, children: renderedRows }))) : (renderNoResultsBlock === null || renderNoResultsBlock === void 0 ? void 0 : renderNoResultsBlock()))), [
|
|
2267
2474
|
props, columns, rows, renderNoResultsBlock, onConfigurationButtonClick,
|
|
2268
2475
|
]);
|
|
2269
2476
|
return (React__namespace.createElement(uuiComponents.DataTableSelectionProvider, { onCopy: props.onCopy, rows: rows, columns: columns },
|
|
2270
|
-
React__namespace.createElement(VirtualList, { value: props.value, onValueChange: props.onValueChange, onScroll: props.onScroll, rows: renderedRows, rowsCount: props.rowsCount, renderRows: renderRowsContainer, cx: uuiCore.cx(css$
|
|
2477
|
+
React__namespace.createElement(VirtualList, { value: props.value, onValueChange: props.onValueChange, onScroll: props.onScroll, rows: renderedRows, rowsCount: props.rowsCount, renderRows: renderRowsContainer, cx: uuiCore.cx(css$D.table), rawProps: {
|
|
2271
2478
|
role: 'table',
|
|
2272
2479
|
'aria-colcount': columns.length,
|
|
2273
2480
|
'aria-rowcount': props.rowsCount,
|
|
2274
2481
|
} })));
|
|
2275
2482
|
}
|
|
2276
2483
|
|
|
2277
|
-
var styles$1 = {"main-panel":"
|
|
2484
|
+
var styles$1 = {"main-panel":"F3PNdW","group-title":"ih8r1t","group-title-text":"_4KbiKh","group-title-badge":"l3tzL8","group-items":"K5pUMA","no-data":"PYJ-FM","h-divider":"UGBbqc","search-area":"XMkpLh","mainPanel":"F3PNdW","groupTitle":"ih8r1t","groupTitleText":"_4KbiKh","groupTitleBadge":"l3tzL8","groupItems":"K5pUMA","noData":"PYJ-FM","hDivider":"UGBbqc","searchArea":"XMkpLh"};
|
|
2278
2485
|
|
|
2279
|
-
var _path$
|
|
2280
|
-
function _extends$
|
|
2486
|
+
var _path$r;
|
|
2487
|
+
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); }
|
|
2281
2488
|
var SvgNavigationMoreVert18 = function SvgNavigationMoreVert18(props, ref) {
|
|
2282
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2489
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$s({
|
|
2283
2490
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2284
2491
|
width: 18,
|
|
2285
2492
|
height: 18,
|
|
2286
2493
|
viewBox: "0 0 18 18",
|
|
2287
2494
|
ref: ref
|
|
2288
|
-
}, props), _path$
|
|
2495
|
+
}, props), _path$r || (_path$r = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2289
2496
|
fillRule: "evenodd",
|
|
2290
2497
|
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",
|
|
2291
2498
|
clipRule: "evenodd"
|
|
2292
2499
|
})));
|
|
2293
2500
|
};
|
|
2294
|
-
var ForwardRef$
|
|
2501
|
+
var ForwardRef$s = /*#__PURE__*/React.forwardRef(SvgNavigationMoreVert18);
|
|
2295
2502
|
|
|
2296
|
-
var _path$
|
|
2297
|
-
function _extends$
|
|
2503
|
+
var _path$q;
|
|
2504
|
+
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); }
|
|
2298
2505
|
var SvgActionUpdate18 = function SvgActionUpdate18(props, ref) {
|
|
2299
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2506
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$r({
|
|
2300
2507
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2301
2508
|
width: 18,
|
|
2302
2509
|
height: 18,
|
|
2303
2510
|
viewBox: "0 0 18 18",
|
|
2304
2511
|
ref: ref
|
|
2305
|
-
}, props), _path$
|
|
2512
|
+
}, props), _path$q || (_path$q = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2306
2513
|
fillRule: "evenodd",
|
|
2307
2514
|
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",
|
|
2308
2515
|
clipRule: "evenodd"
|
|
2309
2516
|
})));
|
|
2310
2517
|
};
|
|
2311
|
-
var ForwardRef$
|
|
2312
|
-
|
|
2313
|
-
var _path$
|
|
2314
|
-
function _extends$
|
|
2518
|
+
var ForwardRef$r = /*#__PURE__*/React.forwardRef(SvgActionUpdate18);
|
|
2519
|
+
|
|
2520
|
+
var _path$p;
|
|
2521
|
+
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); }
|
|
2315
2522
|
var SvgActionLockFill18 = function SvgActionLockFill18(props, ref) {
|
|
2316
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2523
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
|
|
2317
2524
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2318
2525
|
width: 18,
|
|
2319
2526
|
height: 18,
|
|
2320
2527
|
viewBox: "0 0 18 18",
|
|
2321
2528
|
ref: ref
|
|
2322
|
-
}, props), _path$
|
|
2529
|
+
}, props), _path$p || (_path$p = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2323
2530
|
fillRule: "evenodd",
|
|
2324
2531
|
d: "M5 7V5a4 4 0 1 1 8 0v2a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2zm2 0h4V5a2 2 0 1 0-4 0v2zm2 7a2 2 0 1 0 0-4 2 2 0 0 0 0 4z",
|
|
2325
2532
|
clipRule: "evenodd"
|
|
2326
2533
|
})));
|
|
2327
2534
|
};
|
|
2328
|
-
var ForwardRef$
|
|
2535
|
+
var ForwardRef$q = /*#__PURE__*/React.forwardRef(SvgActionLockFill18);
|
|
2329
2536
|
|
|
2330
|
-
var _path$
|
|
2331
|
-
function _extends$
|
|
2537
|
+
var _path$o;
|
|
2538
|
+
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); }
|
|
2332
2539
|
var SvgActionPinOn18 = function SvgActionPinOn18(props, ref) {
|
|
2333
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2540
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
|
|
2334
2541
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2335
2542
|
width: 18,
|
|
2336
2543
|
height: 18,
|
|
2337
2544
|
viewBox: "0 0 18 18",
|
|
2338
2545
|
ref: ref
|
|
2339
|
-
}, props), _path$
|
|
2546
|
+
}, props), _path$o || (_path$o = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2340
2547
|
fillRule: "evenodd",
|
|
2341
2548
|
d: "M12 9V3h1V2H5v1h1v6l-2 1v1h4v5h2v-5h4v-1l-2-1z",
|
|
2342
2549
|
clipRule: "evenodd"
|
|
2343
2550
|
})));
|
|
2344
2551
|
};
|
|
2345
|
-
var ForwardRef$
|
|
2552
|
+
var ForwardRef$p = /*#__PURE__*/React.forwardRef(SvgActionPinOn18);
|
|
2346
2553
|
|
|
2347
|
-
var _path$
|
|
2348
|
-
function _extends$
|
|
2554
|
+
var _path$n;
|
|
2555
|
+
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); }
|
|
2349
2556
|
var SvgActionPinOff18 = function SvgActionPinOff18(props, ref) {
|
|
2350
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2557
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
|
|
2351
2558
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2352
2559
|
width: 18,
|
|
2353
2560
|
height: 18,
|
|
2354
2561
|
viewBox: "0 0 18 18",
|
|
2355
2562
|
ref: ref
|
|
2356
|
-
}, props), _path$
|
|
2563
|
+
}, props), _path$n || (_path$n = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2357
2564
|
d: "M6 4.586 12.414 11H14v-1l-2-1V3h1V2H5v1h1v1.586zM10 16v-4.586l3.743 3.743.707-.707L3.136 3.136l-.707.707L6 7.414V9l-2 1v1h4v5h2z"
|
|
2358
2565
|
})));
|
|
2359
2566
|
};
|
|
2360
|
-
var ForwardRef$
|
|
2567
|
+
var ForwardRef$o = /*#__PURE__*/React.forwardRef(SvgActionPinOff18);
|
|
2361
2568
|
|
|
2362
2569
|
const i18nLocal = i18n.tables.columnsConfigurationModal;
|
|
2363
2570
|
function PinIconButton(props) {
|
|
@@ -2372,12 +2579,12 @@ function PinIconButton(props) {
|
|
|
2372
2579
|
}, [isPinned, isPinnedAlways]);
|
|
2373
2580
|
const pinIcon = React.useMemo(() => {
|
|
2374
2581
|
if (isPinnedAlways) {
|
|
2375
|
-
return ForwardRef$
|
|
2582
|
+
return ForwardRef$q;
|
|
2376
2583
|
}
|
|
2377
2584
|
if (isPinned) {
|
|
2378
|
-
return isHovered ? ForwardRef$
|
|
2585
|
+
return isHovered ? ForwardRef$o : ForwardRef$p;
|
|
2379
2586
|
}
|
|
2380
|
-
return ForwardRef$
|
|
2587
|
+
return ForwardRef$p;
|
|
2381
2588
|
}, [
|
|
2382
2589
|
isPinnedAlways, isHovered, isPinned,
|
|
2383
2590
|
]);
|
|
@@ -2387,7 +2594,7 @@ function PinIconButton(props) {
|
|
|
2387
2594
|
React__namespace.createElement(IconButton, { icon: pinIcon, onClick: pinClickHandler, isDisabled: isPinnedAlways, color: isPinned ? 'info' : undefined }))));
|
|
2388
2595
|
}
|
|
2389
2596
|
|
|
2390
|
-
var styles = {"row-wrapper":"
|
|
2597
|
+
var styles = {"row-wrapper":"_65bIkl","not-pinned":"JGNbxn","pin-icon-button":"nEzEDM","drag-handle":"hNKRL6","dnd-disabled":"LdmK4o","rowWrapper":"_65bIkl","notPinned":"JGNbxn","pinIconButton":"nEzEDM","dragHandle":"hNKRL6","dndDisabled":"LdmK4o"};
|
|
2391
2598
|
|
|
2392
2599
|
const ColumnRow = React__namespace.memo(function ColumnRow(props) {
|
|
2393
2600
|
const { column } = props;
|
|
@@ -2458,7 +2665,7 @@ function ColumnsConfigurationModal(props) {
|
|
|
2458
2665
|
React__namespace.createElement(SearchInput, { size: "30", value: searchValue, onValueChange: setSearchValue, placeholder: i18n$1.searchPlaceholder }),
|
|
2459
2666
|
React__namespace.createElement(Dropdown, { closeOnTargetClick: true, renderBody: () => (React__namespace.createElement(Panel, { shadow: true },
|
|
2460
2667
|
React__namespace.createElement(DropdownMenuButton, { caption: i18n$1.clearAllButton, onClick: uncheckAll }),
|
|
2461
|
-
React__namespace.createElement(DropdownMenuButton, { caption: i18n$1.selectAllButton, onClick: checkAll }))), renderTarget: (props) => React__namespace.createElement(Button, Object.assign({}, props, { mode: "none", icon: ForwardRef$
|
|
2668
|
+
React__namespace.createElement(DropdownMenuButton, { caption: i18n$1.selectAllButton, onClick: checkAll }))), renderTarget: (props) => React__namespace.createElement(Button, Object.assign({}, props, { mode: "none", icon: ForwardRef$s, size: "30", color: "secondary", isDropdown: false })) })),
|
|
2462
2669
|
React__namespace.createElement(Panel, { cx: styles$1.mainPanel },
|
|
2463
2670
|
React__namespace.createElement(ScrollBars, null,
|
|
2464
2671
|
renderVisible(),
|
|
@@ -2467,22 +2674,22 @@ function ColumnsConfigurationModal(props) {
|
|
|
2467
2674
|
React__namespace.createElement(Text, { fontSize: "24", lineHeight: "30", color: "primary", font: "semibold" }, i18n$1.noResultsFound.text),
|
|
2468
2675
|
React__namespace.createElement(Text, { fontSize: "16", lineHeight: "24", font: "regular", color: "primary" }, i18n$1.noResultsFound.subText))))),
|
|
2469
2676
|
React__namespace.createElement(ModalFooter, { borderTop: true },
|
|
2470
|
-
React__namespace.createElement(LinkButton, { icon: ForwardRef$
|
|
2677
|
+
React__namespace.createElement(LinkButton, { icon: ForwardRef$r, caption: i18n$1.resetToDefaultButton, onClick: reset }),
|
|
2471
2678
|
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
2472
2679
|
React__namespace.createElement(Button, { mode: "none", color: "secondary", caption: i18n$1.cancelButton, onClick: close }),
|
|
2473
2680
|
noVisibleColumns ? (React__namespace.createElement(Tooltip, { content: i18n$1.enableAtLeastOneColumnMessage, placement: "top-end", color: "critical" }, applyButton)) : (applyButton)))));
|
|
2474
2681
|
}
|
|
2475
2682
|
|
|
2476
|
-
var css$
|
|
2683
|
+
var css$C = {"panel":"gUwBYI"};
|
|
2477
2684
|
|
|
2478
|
-
var css$
|
|
2685
|
+
var css$B = {"sorting-panel-container":"UFNhPW","sort-active":"nA1ZnC","sortingPanelContainer":"UFNhPW","sortActive":"nA1ZnC"};
|
|
2479
2686
|
|
|
2480
2687
|
const SortingPanelImpl = ({ sortDirection, onSort }) => {
|
|
2481
2688
|
const sortAsc = React.useCallback(() => onSort(sortDirection === 'asc' ? undefined : 'asc'), [onSort]);
|
|
2482
2689
|
const sortDesc = React.useCallback(() => onSort(sortDirection === 'desc' ? undefined : 'desc'), [onSort]);
|
|
2483
|
-
return (React__namespace.default.createElement(FlexCell, { cx: css$
|
|
2484
|
-
React__namespace.default.createElement(DropdownMenuButton, { isActive: sortDirection === 'asc', caption: i18n.pickerFilterHeader.sortAscending, icon: ForwardRef$
|
|
2485
|
-
React__namespace.default.createElement(DropdownMenuButton, { isActive: sortDirection === 'desc', caption: i18n.pickerFilterHeader.sortDescending, icon: ForwardRef$
|
|
2690
|
+
return (React__namespace.default.createElement(FlexCell, { cx: css$B.sortingPanelContainer },
|
|
2691
|
+
React__namespace.default.createElement(DropdownMenuButton, { isActive: sortDirection === 'asc', caption: i18n.pickerFilterHeader.sortAscending, icon: ForwardRef$y, onClick: sortAsc }),
|
|
2692
|
+
React__namespace.default.createElement(DropdownMenuButton, { isActive: sortDirection === 'desc', caption: i18n.pickerFilterHeader.sortDescending, icon: ForwardRef$x, onClick: sortDesc })));
|
|
2486
2693
|
};
|
|
2487
2694
|
const SortingPanel = React__namespace.default.memo(SortingPanelImpl);
|
|
2488
2695
|
|
|
@@ -2497,63 +2704,63 @@ const ColumnHeaderDropdownImpl = (props) => {
|
|
|
2497
2704
|
width: uuiCore.isMobile() ? document.documentElement.clientWidth : undefined,
|
|
2498
2705
|
}), []);
|
|
2499
2706
|
const closeDropdown = React.useCallback(() => props.onOpenChange(false), [props.onOpenChange]);
|
|
2500
|
-
return (React__namespace.default.createElement(uuiComponents.Dropdown, { renderTarget: props.renderTarget, renderBody: (dropdownProps) => (React__namespace.default.createElement(Panel, { style: style, shadow: true, cx: css$
|
|
2707
|
+
return (React__namespace.default.createElement(uuiComponents.Dropdown, { renderTarget: props.renderTarget, renderBody: (dropdownProps) => (React__namespace.default.createElement(Panel, { style: style, shadow: true, cx: css$C.panel },
|
|
2501
2708
|
React__namespace.default.createElement(MobileDropdownWrapper, { title: props.title, close: closeDropdown },
|
|
2502
2709
|
props.isSortable && React__namespace.default.createElement(SortingPanel, { sortDirection: props.sortDirection, onSort: props.onSort }),
|
|
2503
2710
|
props.renderFilter(dropdownProps)))), modifiers: popperModifiers, value: props.isOpen, onValueChange: props.onOpenChange }));
|
|
2504
2711
|
};
|
|
2505
2712
|
const ColumnHeaderDropdown = React__namespace.default.memo(ColumnHeaderDropdownImpl);
|
|
2506
2713
|
|
|
2507
|
-
var _path$
|
|
2508
|
-
function _extends$
|
|
2714
|
+
var _path$m;
|
|
2715
|
+
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); }
|
|
2509
2716
|
var SvgNotificationDone24 = function SvgNotificationDone24(props, ref) {
|
|
2510
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2717
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
|
|
2511
2718
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2512
2719
|
width: 24,
|
|
2513
2720
|
height: 24,
|
|
2514
2721
|
viewBox: "0 0 24 24",
|
|
2515
2722
|
ref: ref
|
|
2516
|
-
}, props), _path$
|
|
2723
|
+
}, props), _path$m || (_path$m = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2517
2724
|
fillRule: "evenodd",
|
|
2518
2725
|
d: "m9.727 16.075-4.295-4.388L4 13.149 9.727 19 22 6.463 20.568 5 9.728 16.075z",
|
|
2519
2726
|
clipRule: "evenodd"
|
|
2520
2727
|
})));
|
|
2521
2728
|
};
|
|
2522
|
-
var ForwardRef$
|
|
2729
|
+
var ForwardRef$n = /*#__PURE__*/React.forwardRef(SvgNotificationDone24);
|
|
2523
2730
|
|
|
2524
|
-
var _path$
|
|
2525
|
-
function _extends$
|
|
2731
|
+
var _path$l;
|
|
2732
|
+
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); }
|
|
2526
2733
|
var SvgNotificationDone18 = function SvgNotificationDone18(props, ref) {
|
|
2527
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2734
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
|
|
2528
2735
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2529
2736
|
width: 18,
|
|
2530
2737
|
height: 18,
|
|
2531
2738
|
viewBox: "0 0 18 18",
|
|
2532
2739
|
ref: ref
|
|
2533
|
-
}, props), _path$
|
|
2740
|
+
}, props), _path$l || (_path$l = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2534
2741
|
fillRule: "evenodd",
|
|
2535
2742
|
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",
|
|
2536
2743
|
clipRule: "evenodd"
|
|
2537
2744
|
})));
|
|
2538
2745
|
};
|
|
2539
|
-
var ForwardRef$
|
|
2746
|
+
var ForwardRef$m = /*#__PURE__*/React.forwardRef(SvgNotificationDone18);
|
|
2540
2747
|
|
|
2541
|
-
var _path$
|
|
2542
|
-
function _extends$
|
|
2748
|
+
var _path$k;
|
|
2749
|
+
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); }
|
|
2543
2750
|
var SvgNotificationDone12 = function SvgNotificationDone12(props, ref) {
|
|
2544
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2751
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
|
|
2545
2752
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2546
2753
|
width: 12,
|
|
2547
2754
|
height: 12,
|
|
2548
2755
|
viewBox: "0 0 12 12",
|
|
2549
2756
|
ref: ref
|
|
2550
|
-
}, props), _path$
|
|
2757
|
+
}, props), _path$k || (_path$k = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2551
2758
|
d: "M11 3.6 9.462 2 4.846 6.8 2.538 4.4 1 6l3.846 4L11 3.6z"
|
|
2552
2759
|
})));
|
|
2553
2760
|
};
|
|
2554
|
-
var ForwardRef$
|
|
2761
|
+
var ForwardRef$l = /*#__PURE__*/React.forwardRef(SvgNotificationDone12);
|
|
2555
2762
|
|
|
2556
|
-
var css$
|
|
2763
|
+
var css$A = {"render-item":"_56ou4X","icon-wrapper":"Re5fdX","picker-row":"MhcFu0","icon-default":"MnTBQq","icon-primary":"F6B77G","renderItem":"_56ou4X","iconWrapper":"Re5fdX","pickerRow":"MhcFu0","iconDefault":"MnTBQq","iconPrimary":"F6B77G"};
|
|
2557
2764
|
|
|
2558
2765
|
class DataPickerRow extends React__namespace.Component {
|
|
2559
2766
|
constructor() {
|
|
@@ -2561,37 +2768,37 @@ class DataPickerRow extends React__namespace.Component {
|
|
|
2561
2768
|
this.getIcon = (size) => {
|
|
2562
2769
|
switch (size) {
|
|
2563
2770
|
case '24':
|
|
2564
|
-
return ForwardRef$
|
|
2771
|
+
return ForwardRef$l;
|
|
2565
2772
|
case '30':
|
|
2566
|
-
return ForwardRef$
|
|
2773
|
+
return ForwardRef$m;
|
|
2567
2774
|
case '36':
|
|
2568
|
-
return ForwardRef$
|
|
2775
|
+
return ForwardRef$m;
|
|
2569
2776
|
case '42':
|
|
2570
|
-
return ForwardRef$
|
|
2777
|
+
return ForwardRef$n;
|
|
2571
2778
|
default:
|
|
2572
|
-
return ForwardRef$
|
|
2779
|
+
return ForwardRef$m;
|
|
2573
2780
|
}
|
|
2574
2781
|
};
|
|
2575
2782
|
this.column = {
|
|
2576
2783
|
key: 'name',
|
|
2577
2784
|
grow: 1,
|
|
2578
2785
|
width: 0,
|
|
2579
|
-
render: (item, rowProps) => (React__namespace.createElement("div", { key: rowProps.id, className: css$
|
|
2786
|
+
render: (item, rowProps) => (React__namespace.createElement("div", { key: rowProps.id, className: css$A.renderItem },
|
|
2580
2787
|
this.props.renderItem(item, rowProps),
|
|
2581
2788
|
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
2582
|
-
(rowProps.isChildrenSelected || rowProps.isSelected) && (React__namespace.createElement("div", { className: css$
|
|
2583
|
-
React__namespace.createElement(uuiComponents.IconContainer, { icon: this.getIcon(this.props.size), cx: rowProps.isChildrenSelected ? css$
|
|
2789
|
+
(rowProps.isChildrenSelected || rowProps.isSelected) && (React__namespace.createElement("div", { className: css$A.iconWrapper },
|
|
2790
|
+
React__namespace.createElement(uuiComponents.IconContainer, { icon: this.getIcon(this.props.size), cx: rowProps.isChildrenSelected ? css$A.iconDefault : css$A.iconPrimary }))))),
|
|
2584
2791
|
};
|
|
2585
2792
|
this.renderContent = () => {
|
|
2586
2793
|
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' }));
|
|
2587
2794
|
};
|
|
2588
2795
|
}
|
|
2589
2796
|
render() {
|
|
2590
|
-
return React__namespace.createElement(uuiComponents.DataPickerRow, Object.assign({}, this.props, { cx: [css$
|
|
2797
|
+
return React__namespace.createElement(uuiComponents.DataPickerRow, Object.assign({}, this.props, { cx: [css$A.pickerRow, this.props.cx], renderContent: this.renderContent }));
|
|
2591
2798
|
}
|
|
2592
2799
|
}
|
|
2593
2800
|
|
|
2594
|
-
var css$
|
|
2801
|
+
var css$z = {"done":"EHimj8"};
|
|
2595
2802
|
|
|
2596
2803
|
const MobileDropdownWrapper = (props) => {
|
|
2597
2804
|
const isVisible = uuiCore.isMobile();
|
|
@@ -2599,22 +2806,22 @@ const MobileDropdownWrapper = (props) => {
|
|
|
2599
2806
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
2600
2807
|
isVisible && React__namespace.default.createElement(DataPickerHeader, { title: props.title, close: props.close }),
|
|
2601
2808
|
props.children,
|
|
2602
|
-
isVisible && React__namespace.default.createElement(LinkButton, { caption: i18n.pickerInput.doneButton, onClick: () => { var _a; return (_a = props.close) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: css$
|
|
2809
|
+
isVisible && React__namespace.default.createElement(LinkButton, { caption: i18n.pickerInput.doneButton, onClick: () => { var _a; return (_a = props.close) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: css$z.done, size: "48" })));
|
|
2603
2810
|
};
|
|
2604
2811
|
|
|
2605
|
-
var css$
|
|
2812
|
+
var css$y = {"sub-header-wrapper":"JMiMXn","switch":"RPpi5V","no-found-modal-container":"K5hYpI","no-found-modal-container-icon":"DU1y-5","no-found-modal-container-text":"RmyHHB","subHeaderWrapper":"JMiMXn","$switch$":"RPpi5V","noFoundModalContainer":"K5hYpI","noFoundModalContainerIcon":"DU1y-5","noFoundModalContainerText":"RmyHHB"};
|
|
2606
2813
|
|
|
2607
|
-
var _path$
|
|
2608
|
-
function _extends$
|
|
2814
|
+
var _path$j, _path2;
|
|
2815
|
+
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); }
|
|
2609
2816
|
var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
2610
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2817
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
|
|
2611
2818
|
width: 66,
|
|
2612
2819
|
height: 67,
|
|
2613
2820
|
viewBox: "0 0 66 67",
|
|
2614
2821
|
fill: "none",
|
|
2615
2822
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2616
2823
|
ref: ref
|
|
2617
|
-
}, props), _path$
|
|
2824
|
+
}, props), _path$j || (_path$j = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2618
2825
|
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",
|
|
2619
2826
|
fill: "#EBEDF5"
|
|
2620
2827
|
})), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -2624,16 +2831,16 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
|
2624
2831
|
fill: "#6C6F80"
|
|
2625
2832
|
})));
|
|
2626
2833
|
};
|
|
2627
|
-
var ForwardRef$
|
|
2834
|
+
var ForwardRef$k = /*#__PURE__*/React.forwardRef(SvgSearchWithBackground);
|
|
2628
2835
|
|
|
2629
2836
|
class PickerModalImpl extends uuiComponents.PickerModalBase {
|
|
2630
2837
|
constructor() {
|
|
2631
2838
|
super(...arguments);
|
|
2632
2839
|
this.renderNotFound = () => {
|
|
2633
|
-
return this.props.renderNotFound ? (this.props.renderNotFound({ search: this.state.dataSourceState.search, onClose: () => this.props.success(null) })) : (React__namespace.createElement("div", { className: css$
|
|
2634
|
-
React__namespace.createElement(uuiComponents.IconContainer, { cx: css$
|
|
2635
|
-
React__namespace.createElement(Text, { cx: css$
|
|
2636
|
-
React__namespace.createElement(Text, { cx: css$
|
|
2840
|
+
return this.props.renderNotFound ? (this.props.renderNotFound({ search: this.state.dataSourceState.search, onClose: () => this.props.success(null) })) : (React__namespace.createElement("div", { className: css$y.noFoundModalContainer },
|
|
2841
|
+
React__namespace.createElement(uuiComponents.IconContainer, { cx: css$y.noFoundModalContainerIcon, icon: ForwardRef$k }),
|
|
2842
|
+
React__namespace.createElement(Text, { cx: css$y.noFoundModalContainerText, font: "semibold", fontSize: "16", lineHeight: "24", color: "primary", size: "36" }, i18n.dataPickerBody.noRecordsMessage),
|
|
2843
|
+
React__namespace.createElement(Text, { cx: css$y.noFoundModalContainerText, fontSize: "12", lineHeight: "18", font: "regular", color: "primary", size: "36" }, i18n.dataPickerBody.noRecordsSubTitle)));
|
|
2637
2844
|
};
|
|
2638
2845
|
}
|
|
2639
2846
|
renderRow(rowProps) {
|
|
@@ -2655,7 +2862,7 @@ class PickerModalImpl extends uuiComponents.PickerModalBase {
|
|
|
2655
2862
|
return (React__namespace.createElement(ModalBlocker, Object.assign({}, this.props),
|
|
2656
2863
|
React__namespace.createElement(ModalWindow, { width: 600, height: 700 },
|
|
2657
2864
|
React__namespace.createElement(ModalHeader, { title: this.props.caption || i18n.pickerModal.headerTitle, onClose: () => this.props.abort() }),
|
|
2658
|
-
React__namespace.createElement(FlexCell, { cx: css$
|
|
2865
|
+
React__namespace.createElement(FlexCell, { cx: css$y.subHeaderWrapper },
|
|
2659
2866
|
React__namespace.createElement(FlexRow, { vPadding: "24" },
|
|
2660
2867
|
React__namespace.createElement(SearchInput, Object.assign({}, this.lens.prop('dataSourceState').prop('search').toProps(), { onKeyDown: (e) => uuiComponents.handleDataSourceKeyboard({
|
|
2661
2868
|
value: this.getDataSourceState(),
|
|
@@ -2664,7 +2871,7 @@ class PickerModalImpl extends uuiComponents.PickerModalBase {
|
|
|
2664
2871
|
rows: dataRows,
|
|
2665
2872
|
editMode: 'modal',
|
|
2666
2873
|
}, e), autoFocus: true, placeholder: i18n.pickerModal.searchPlaceholder }))),
|
|
2667
|
-
!this.isSingleSelect() && (React__namespace.createElement(Switch, Object.assign({ cx: css$
|
|
2874
|
+
!this.isSingleSelect() && (React__namespace.createElement(Switch, Object.assign({ cx: css$y.switch, size: "18" }, this.stateLens.prop('showSelected').toProps(), { isDisabled: view.getSelectedRowsCount() < 1, label: "Show only selected" }))),
|
|
2668
2875
|
this.props.renderFilter && React__namespace.createElement(FlexCell, { grow: 2 }, this.props.renderFilter(this.lens.prop('dataSourceState').prop('filter').toProps()))),
|
|
2669
2876
|
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" })),
|
|
2670
2877
|
React__namespace.createElement(ModalFooter, { padding: "24", vPadding: "24" }, this.props.renderFooter ? this.props.renderFooter(this.getFooterProps()) : this.renderFooter()))));
|
|
@@ -2681,15 +2888,13 @@ class PickerModal extends React__namespace.Component {
|
|
|
2681
2888
|
}
|
|
2682
2889
|
}
|
|
2683
2890
|
|
|
2684
|
-
|
|
2891
|
+
var css$x = {"root":"z4Dbyq"};
|
|
2685
2892
|
|
|
2686
|
-
|
|
2893
|
+
const AvatarStack = uuiCore.withMods(uuiComponents.AvatarStack, () => [css$x.root]);
|
|
2687
2894
|
|
|
2688
|
-
|
|
2895
|
+
var css$w = {"root":"_1FBEfc","size-18":"t-IUle","fill-transparent":"f36amx","size-24":"c9iy7G","size-30":"GbOmEC","size-36":"ZnULvM","size-42":"KMj-pL","size-48":"XjSM2L","fill-solid":"QI6Bun","fill-semitransparent":"EjXYjy","size18":"t-IUle","fillTransparent":"f36amx","size24":"c9iy7G","size30":"GbOmEC","size36":"ZnULvM","size42":"KMj-pL","size48":"XjSM2L","fillSolid":"QI6Bun","fillSemitransparent":"EjXYjy"};
|
|
2689
2896
|
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
const defaultSize$4 = '36';
|
|
2897
|
+
const defaultSize$5 = '36';
|
|
2693
2898
|
const mapSize$1 = {
|
|
2694
2899
|
48: '48',
|
|
2695
2900
|
42: '48',
|
|
@@ -2700,18 +2905,18 @@ const mapSize$1 = {
|
|
|
2700
2905
|
};
|
|
2701
2906
|
function applyBadgeMods(mods) {
|
|
2702
2907
|
return [
|
|
2703
|
-
css$
|
|
2908
|
+
css$w.root, buttonCss.root, css$w['size-' + (mods.size || defaultSize$5)], css$w['fill-' + (mods.fill || 'solid')], mods.color && `badge-${mods.color}`,
|
|
2704
2909
|
];
|
|
2705
2910
|
}
|
|
2706
2911
|
const Badge = uuiCore.withMods(uuiComponents.Button, applyBadgeMods, (props) => ({
|
|
2707
|
-
dropdownIcon: systemIcons[(props.size && mapSize$1[props.size]) || defaultSize$
|
|
2708
|
-
clearIcon: systemIcons[(props.size && mapSize$1[props.size]) || defaultSize$
|
|
2912
|
+
dropdownIcon: systemIcons[(props.size && mapSize$1[props.size]) || defaultSize$5].foldingArrow,
|
|
2913
|
+
clearIcon: systemIcons[(props.size && mapSize$1[props.size]) || defaultSize$5].clear,
|
|
2709
2914
|
countPosition: 'left',
|
|
2710
2915
|
}));
|
|
2711
2916
|
|
|
2712
|
-
var css$
|
|
2917
|
+
var css$v = {"root":"_6HuxB7","size-18":"DS8ggE","size-24":"-Fnhxw","size-30":"yOOCMO","size-36":"icvkNq","size-42":"Zh6WvR","size-48":"zZ4jPz","size18":"DS8ggE","size24":"-Fnhxw","size30":"yOOCMO","size36":"icvkNq","size42":"Zh6WvR","size48":"zZ4jPz"};
|
|
2713
2918
|
|
|
2714
|
-
const defaultSize$
|
|
2919
|
+
const defaultSize$4 = '36';
|
|
2715
2920
|
const mapSize = {
|
|
2716
2921
|
48: '48',
|
|
2717
2922
|
42: '48',
|
|
@@ -2721,80 +2926,107 @@ const mapSize = {
|
|
|
2721
2926
|
18: '18',
|
|
2722
2927
|
};
|
|
2723
2928
|
function applyTagMods(mods) {
|
|
2724
|
-
return [css$
|
|
2929
|
+
return [css$v['size-' + (mods.size || defaultSize$4)], css$v.root];
|
|
2725
2930
|
}
|
|
2726
2931
|
const Tag = uuiCore.withMods(uuiComponents.Button, applyTagMods, (props) => ({
|
|
2727
|
-
dropdownIcon: systemIcons[mapSize[props.size] || defaultSize$
|
|
2728
|
-
clearIcon: systemIcons[mapSize[props.size] || defaultSize$
|
|
2932
|
+
dropdownIcon: systemIcons[mapSize[props.size] || defaultSize$4].foldingArrow,
|
|
2933
|
+
clearIcon: systemIcons[mapSize[props.size] || defaultSize$4].clear,
|
|
2729
2934
|
}));
|
|
2730
2935
|
|
|
2731
|
-
var css$
|
|
2936
|
+
var css$u = {"root":"Mpnawn","spacer":"hojYcI","mode-ghost":"_5NHMxE","size-24":"HZvvRi","size-30":"o-ZWuo","navigation-size-24":"B4z-Of","navigation-size-30":"zgm7Cn","modeGhost":"_5NHMxE","size24":"HZvvRi","size30":"o-ZWuo","navigationSize24":"B4z-Of","navigationSize30":"zgm7Cn"};
|
|
2732
2937
|
|
|
2733
|
-
var _path$
|
|
2734
|
-
function _extends$
|
|
2938
|
+
var _path$i;
|
|
2939
|
+
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); }
|
|
2735
2940
|
var SvgNavigationChevronLeft12 = function SvgNavigationChevronLeft12(props, ref) {
|
|
2736
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2941
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
|
|
2737
2942
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2738
2943
|
width: 12,
|
|
2739
2944
|
height: 12,
|
|
2740
2945
|
viewBox: "0 0 12 12",
|
|
2741
2946
|
ref: ref
|
|
2742
|
-
}, props), _path$
|
|
2947
|
+
}, props), _path$i || (_path$i = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2743
2948
|
fillRule: "evenodd",
|
|
2744
2949
|
d: "M7.705 3.705 7 3 4 6l3 3 .705-.705L5.415 6l2.29-2.295z",
|
|
2745
2950
|
clipRule: "evenodd"
|
|
2746
2951
|
})));
|
|
2747
2952
|
};
|
|
2748
|
-
var ForwardRef$
|
|
2953
|
+
var ForwardRef$j = /*#__PURE__*/React.forwardRef(SvgNavigationChevronLeft12);
|
|
2749
2954
|
|
|
2750
|
-
var _path$
|
|
2751
|
-
function _extends$
|
|
2955
|
+
var _path$h;
|
|
2956
|
+
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); }
|
|
2752
2957
|
var SvgNavigationChevronRight12 = function SvgNavigationChevronRight12(props, ref) {
|
|
2753
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2958
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
|
|
2754
2959
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2755
2960
|
width: 12,
|
|
2756
2961
|
height: 12,
|
|
2757
2962
|
viewBox: "0 0 12 12",
|
|
2758
2963
|
ref: ref
|
|
2759
|
-
}, props), _path$
|
|
2964
|
+
}, props), _path$h || (_path$h = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2760
2965
|
fillRule: "evenodd",
|
|
2761
2966
|
d: "m5 3-.705.705L6.585 6l-2.29 2.295L5 9l3-3-3-3z",
|
|
2762
2967
|
clipRule: "evenodd"
|
|
2763
2968
|
})));
|
|
2764
2969
|
};
|
|
2765
|
-
var ForwardRef$
|
|
2970
|
+
var ForwardRef$i = /*#__PURE__*/React.forwardRef(SvgNavigationChevronRight12);
|
|
2766
2971
|
|
|
2767
2972
|
function Paginator(props) {
|
|
2768
2973
|
const renderPaginator = (params) => {
|
|
2769
2974
|
var _a, _b;
|
|
2770
|
-
return (React__namespace.default.createElement("nav", Object.assign({ role: "navigation", className: css$
|
|
2771
|
-
React__namespace.default.createElement(Button, { cx: css$
|
|
2975
|
+
return (React__namespace.default.createElement("nav", Object.assign({ role: "navigation", className: css$u.root }, params.rawProps),
|
|
2976
|
+
React__namespace.default.createElement(Button, { cx: css$u[`navigation-size-${(_a = params.size) !== null && _a !== void 0 ? _a : '30'}`], size: params.size, icon: params.size === '30' ? ForwardRef$E : ForwardRef$j, onClick: params.goToPrev, isDisabled: params.isFirst, mode: "outline", color: "secondary" }),
|
|
2772
2977
|
params.pages.map((page, index) => {
|
|
2773
2978
|
var _a, _b;
|
|
2774
2979
|
if (page.type === 'spacer') {
|
|
2775
|
-
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$
|
|
2980
|
+
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$u[`size-${(_a = params.size) !== null && _a !== void 0 ? _a : '30'}`], css$u.spacer), size: params.size, key: `${index}_spacer`, caption: "...", mode: "ghost", color: "secondary", tabIndex: -1 }));
|
|
2776
2981
|
}
|
|
2777
2982
|
else {
|
|
2778
|
-
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$
|
|
2983
|
+
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$u[`size-${(_b = params.size) !== null && _b !== void 0 ? _b : '30'}`], css$u[`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 }, mode: (page.isActive && 'outline') || 'ghost', color: "primary" }));
|
|
2779
2984
|
}
|
|
2780
2985
|
}),
|
|
2781
|
-
React__namespace.default.createElement(Button, { cx: css$
|
|
2986
|
+
React__namespace.default.createElement(Button, { cx: css$u[`navigation-size-${(_b = params.size) !== null && _b !== void 0 ? _b : '30'}`], size: params.size, icon: params.size === '30' ? ForwardRef$D : ForwardRef$i, onClick: params.goToNext, isDisabled: params.isLast, mode: "outline", color: "secondary" })));
|
|
2782
2987
|
};
|
|
2783
2988
|
return React__namespace.default.createElement(uuiComponents.Paginator, Object.assign({}, props, { render: renderPaginator }));
|
|
2784
2989
|
}
|
|
2785
2990
|
|
|
2991
|
+
var css$t = {"root":"t6WzSC","bar":"ulp-n5","progressBar-indeterminate":"MPKS7f","size-12":"_7D-K6l","size-18":"VWcgP3","size-24":"liF52i","progressBarIndeterminate":"MPKS7f","size12":"_7D-K6l","size18":"VWcgP3","size24":"liF52i"};
|
|
2992
|
+
|
|
2993
|
+
const IndeterminateBar = React__namespace.forwardRef((props, ref) => {
|
|
2994
|
+
return (React__namespace.createElement("div", { ref: ref, className: cx__default.default(props.cx, css$t.root, css$t[`size-${props.size || 12}`]) },
|
|
2995
|
+
React__namespace.createElement("div", { className: cx__default.default(css$t.bar) })));
|
|
2996
|
+
});
|
|
2997
|
+
|
|
2998
|
+
var css$s = {"root":"zUlI3h","striped":"h2rHhO","animate-stripes":"DzdN2w","size-12":"-sUknj","size-18":"_16Qq1-","size-24":"y16li0","animateStripes":"DzdN2w","size12":"-sUknj","size18":"_16Qq1-","size24":"y16li0"};
|
|
2999
|
+
|
|
3000
|
+
const defaultSize$3 = '12';
|
|
3001
|
+
function applyProgressBarMods(mods) {
|
|
3002
|
+
const size = mods.size || defaultSize$3;
|
|
3003
|
+
return [
|
|
3004
|
+
css$s.root, css$s[`size-${size}`], mods.striped && css$s.striped,
|
|
3005
|
+
];
|
|
3006
|
+
}
|
|
3007
|
+
const ProgressBar = uuiCore.withMods(uuiComponents.ProgressBar, applyProgressBarMods, (props) => ({
|
|
3008
|
+
hideLabel: props.hideLabel || props.striped,
|
|
3009
|
+
}));
|
|
3010
|
+
|
|
3011
|
+
var css$r = {"root":"Vi6Ju1"};
|
|
3012
|
+
|
|
3013
|
+
const IndicatorBar = React__namespace.forwardRef((props, ref) => {
|
|
3014
|
+
const { progress } = props;
|
|
3015
|
+
return progress || progress === 0 ? (React__namespace.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx__default.default(css$r.root, props.cx), hideLabel: true })) : (React__namespace.createElement(IndeterminateBar, { ref: ref, cx: cx__default.default(css$r.root, props.cx) }));
|
|
3016
|
+
});
|
|
3017
|
+
|
|
2786
3018
|
const MAX_ITEMS = 100;
|
|
2787
3019
|
const getMaxItems = (maxItems) => maxItems || maxItems === 0 ? maxItems : MAX_ITEMS;
|
|
2788
3020
|
|
|
2789
|
-
var css$
|
|
3021
|
+
var css$q = {"root":"qQ7FKw","mode-form":"zr5wm3","mode-cell":"etnhg2","mode-inline":"TvzUCi","size-24":"affBl8","size-30":"MqRln3","size-36":"IM-Eoj","size-42":"zmeU03","size-48":"Hrsxyt","modeForm":"zr5wm3","modeCell":"etnhg2","modeInline":"TvzUCi","size24":"affBl8","size30":"MqRln3","size36":"IM-Eoj","size42":"zmeU03","size48":"Hrsxyt"};
|
|
2790
3022
|
|
|
2791
3023
|
const defaultSize$2 = '36';
|
|
2792
3024
|
const defaultMode = exports.EditMode.FORM;
|
|
2793
3025
|
function applyPickerTogglerMods(mods) {
|
|
2794
3026
|
return [
|
|
2795
|
-
css$
|
|
2796
|
-
css$
|
|
2797
|
-
css$
|
|
3027
|
+
css$q.root,
|
|
3028
|
+
css$q['size-' + (mods.size || defaultSize$2)],
|
|
3029
|
+
css$q['mode-' + (mods.mode || defaultMode)],
|
|
2798
3030
|
];
|
|
2799
3031
|
}
|
|
2800
3032
|
function PickerTogglerComponent(props, ref) {
|
|
@@ -2836,9 +3068,9 @@ function PickerTogglerComponent(props, ref) {
|
|
|
2836
3068
|
}
|
|
2837
3069
|
const PickerToggler = React__namespace.forwardRef(PickerTogglerComponent);
|
|
2838
3070
|
|
|
2839
|
-
var css$
|
|
3071
|
+
var css$p = {"root":"-zvg1U","multiline-vertical-padding-24":"Mrj-92","multiline-vertical-padding-30":"plUjft","multiline-vertical-padding-36":"Gl9iaP","multiline-vertical-padding-42":"Y7Xu7a","multiline-vertical-padding-48":"Wg99y2","text":"r2RRzX","multilineVerticalPadding24":"Mrj-92","multilineVerticalPadding30":"plUjft","multilineVerticalPadding36":"Gl9iaP","multilineVerticalPadding42":"Y7Xu7a","multilineVerticalPadding48":"Wg99y2"};
|
|
2840
3072
|
|
|
2841
|
-
var css$
|
|
3073
|
+
var css$o = {"highlighted-text":"HiwlPt","highlightedText":"HiwlPt"};
|
|
2842
3074
|
|
|
2843
3075
|
const mergeHighlightRanges = (ranges) => {
|
|
2844
3076
|
const mergedRanges = [];
|
|
@@ -2892,7 +3124,7 @@ const getHighlightRanges = (str, search) => {
|
|
|
2892
3124
|
};
|
|
2893
3125
|
const getDecoratedText = (str, ranges) => ranges.map((range, index) => {
|
|
2894
3126
|
const rangeStr = str.substring(range.from, range.to);
|
|
2895
|
-
return (React__namespace.default.createElement("span", Object.assign({ key: `${rangeStr}-${index}` }, (range.isHighlighted ? { className: css$
|
|
3127
|
+
return (React__namespace.default.createElement("span", Object.assign({ key: `${rangeStr}-${index}` }, (range.isHighlighted ? { className: css$o.highlightedText } : {})), rangeStr));
|
|
2896
3128
|
});
|
|
2897
3129
|
const getHighlightedSearchMatches = (str, search) => {
|
|
2898
3130
|
if (!search || !str) {
|
|
@@ -2921,32 +3153,32 @@ class PickerItem extends React__namespace.Component {
|
|
|
2921
3153
|
const { search } = (_a = this.props.dataSourceState) !== null && _a !== void 0 ? _a : {};
|
|
2922
3154
|
const title = highlightSearchMatches ? getHighlightedSearchMatches(this.props.title, search) : this.props.title;
|
|
2923
3155
|
const subtitle = highlightSearchMatches ? getHighlightedSearchMatches(this.props.subtitle, search) : this.props.subtitle;
|
|
2924
|
-
return (React__namespace.createElement(FlexCell, { width: "auto", cx: css$
|
|
2925
|
-
React__namespace.createElement(FlexRow, { size: itemSize, cx: isMultiline && css$
|
|
2926
|
-
avatarUrl && React__namespace.createElement(Avatar, { isLoading: isLoading, img: avatarUrl, size: this.getAvatarSize(itemSize, isMultiline).toString() }),
|
|
3156
|
+
return (React__namespace.createElement(FlexCell, { width: "auto", cx: css$p.root },
|
|
3157
|
+
React__namespace.createElement(FlexRow, { size: itemSize, cx: isMultiline && css$p[`multiline-vertical-padding-${itemSize}`], spacing: "12" },
|
|
3158
|
+
avatarUrl && React__namespace.createElement(uuiComponents.Avatar, { isLoading: isLoading, img: avatarUrl, size: this.getAvatarSize(itemSize, isMultiline).toString() }),
|
|
2927
3159
|
icon && React__namespace.createElement(uuiComponents.IconContainer, { icon: icon }),
|
|
2928
3160
|
React__namespace.createElement(FlexCell, { width: "auto" },
|
|
2929
|
-
title && (React__namespace.createElement(Text, { size: itemSize, cx: css$
|
|
2930
|
-
subtitle && (React__namespace.createElement(Text, { size: itemSize, color: isDisabled ? 'disabled' : 'secondary', cx: css$
|
|
3161
|
+
title && (React__namespace.createElement(Text, { size: itemSize, cx: css$p.text, color: isDisabled ? 'disabled' : 'primary' }, isLoading ? React__namespace.createElement(TextPlaceholder, { wordsCount: 2 }) : title)),
|
|
3162
|
+
subtitle && (React__namespace.createElement(Text, { size: itemSize, color: isDisabled ? 'disabled' : 'secondary', cx: css$p.text }, isLoading ? React__namespace.createElement(TextPlaceholder, { wordsCount: 2 }) : subtitle))))));
|
|
2931
3163
|
}
|
|
2932
3164
|
}
|
|
2933
3165
|
PickerItem.defaultProps = {
|
|
2934
3166
|
highlightSearchMatches: true,
|
|
2935
3167
|
};
|
|
2936
3168
|
|
|
2937
|
-
var css$
|
|
3169
|
+
var css$n = {"panel":"FT2NtQ","footer-wrapper":"L4gtXD","footer-size-24":"x3AzbF","footer-size-30":"tACjUC","footer-size-36":"_0tMFf4","footer-size-42":"O2K2ZN","footer-size-48":"ClAiY1","footerWrapper":"L4gtXD","footerSize24":"x3AzbF","footerSize30":"tACjUC","footerSize36":"_0tMFf4","footerSize42":"O2K2ZN","footerSize48":"ClAiY1"};
|
|
2938
3170
|
|
|
2939
3171
|
const pickerHeight$1 = 300;
|
|
2940
3172
|
const pickerWidth$1 = 360;
|
|
2941
3173
|
class PickerInput extends uuiComponents.PickerInputBase {
|
|
2942
3174
|
constructor() {
|
|
2943
3175
|
super(...arguments);
|
|
2944
|
-
this.renderItem = (item, rowProps) => {
|
|
3176
|
+
this.renderItem = (item, rowProps, dataSourceState) => {
|
|
2945
3177
|
var _a;
|
|
2946
|
-
return (React__namespace.default.createElement(PickerItem, Object.assign({ title: this.getName(item), size: this.getRowSize(), dataSourceState:
|
|
3178
|
+
return (React__namespace.default.createElement(PickerItem, Object.assign({ title: this.getName(item), size: this.getRowSize(), dataSourceState: dataSourceState, highlightSearchMatches: (_a = this.props.highlightSearchMatches) !== null && _a !== void 0 ? _a : true }, rowProps)));
|
|
2947
3179
|
};
|
|
2948
|
-
this.renderRow = (rowProps) => {
|
|
2949
|
-
return this.props.renderRow ? (this.props.renderRow(rowProps,
|
|
3180
|
+
this.renderRow = (rowProps, dataSourceState) => {
|
|
3181
|
+
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) })));
|
|
2950
3182
|
};
|
|
2951
3183
|
}
|
|
2952
3184
|
toggleModalOpening() {
|
|
@@ -2982,11 +3214,11 @@ class PickerInput extends uuiComponents.PickerInputBase {
|
|
|
2982
3214
|
return (React__namespace.default.createElement(uuiCore.IEditableDebouncer, { value: targetProps.value, onValueChange: this.handleTogglerSearchChange, render: (editableProps) => renderTarget(Object.assign(Object.assign(Object.assign({}, this.getTogglerMods()), targetProps), editableProps)) }));
|
|
2983
3215
|
}
|
|
2984
3216
|
renderBody(props, rows) {
|
|
2985
|
-
const renderedDataRows = rows.map((row) => this.renderRow(row));
|
|
3217
|
+
const renderedDataRows = rows.map((row) => this.renderRow(row, this.state.dataSourceState));
|
|
2986
3218
|
const maxHeight = uuiCore.isMobile() ? document.documentElement.clientHeight : this.props.dropdownHeight || pickerHeight$1;
|
|
2987
3219
|
const minBodyWidth = uuiCore.isMobile() ? document.documentElement.clientWidth : this.props.minBodyWidth || pickerWidth$1;
|
|
2988
3220
|
return (React__namespace.default.createElement(Panel, { style: { width: props.togglerWidth > minBodyWidth ? props.togglerWidth : minBodyWidth }, rawProps: { tabIndex: -1 }, cx: [
|
|
2989
|
-
css$
|
|
3221
|
+
css$n.panel, uuiCore.uuiMarkers.lockFocus, this.props.bodyCx,
|
|
2990
3222
|
] },
|
|
2991
3223
|
React__namespace.default.createElement(MobileDropdownWrapper, { title: this.props.entityName, close: () => {
|
|
2992
3224
|
this.returnFocusToInput();
|
|
@@ -3002,7 +3234,7 @@ class PickerInput extends uuiComponents.PickerInputBase {
|
|
|
3002
3234
|
}
|
|
3003
3235
|
}
|
|
3004
3236
|
|
|
3005
|
-
var css$
|
|
3237
|
+
var css$m = {"row":"G7YTz-"};
|
|
3006
3238
|
|
|
3007
3239
|
class PickerListItem extends React__namespace.default.Component {
|
|
3008
3240
|
render() {
|
|
@@ -3020,7 +3252,7 @@ class PickerListItem extends React__namespace.default.Component {
|
|
|
3020
3252
|
else {
|
|
3021
3253
|
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) }));
|
|
3022
3254
|
}
|
|
3023
|
-
return React__namespace.default.createElement("div", { className: css$
|
|
3255
|
+
return React__namespace.default.createElement("div", { className: css$m.row }, component);
|
|
3024
3256
|
}
|
|
3025
3257
|
}
|
|
3026
3258
|
|
|
@@ -3063,7 +3295,7 @@ class PickerList extends uuiComponents.PickerListBase {
|
|
|
3063
3295
|
}
|
|
3064
3296
|
PickerList.contextType = uuiCore.UuiContext;
|
|
3065
3297
|
|
|
3066
|
-
var css$
|
|
3298
|
+
var css$l = {"root":"c2cy1v","title-wrapper":"kBoro-","title":"rfO--J","text-wrapper":"_85-yoK","selection":"tK92h7","postfix":"kVA3p9","selected":"bcbN0k","titleWrapper":"kBoro-","textWrapper":"_85-yoK"};
|
|
3067
3299
|
|
|
3068
3300
|
const defaultSize = '36';
|
|
3069
3301
|
const FilterPanelItemToggler = React__namespace.forwardRef((props, ref) => {
|
|
@@ -3075,18 +3307,18 @@ const FilterPanelItemToggler = React__namespace.forwardRef((props, ref) => {
|
|
|
3075
3307
|
(_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
3076
3308
|
};
|
|
3077
3309
|
const getTitle = props.predicateName ? `${props.title} ${props.predicateName}` : `${props.title}${props.selection ? ':' : ''}`;
|
|
3078
|
-
const getSelectionText = () => props.selection.map((i, index) => (React__namespace.createElement(React__namespace.Fragment,
|
|
3079
|
-
React__namespace.createElement(Text, {
|
|
3310
|
+
const getSelectionText = () => props.selection.map((i, index) => (React__namespace.createElement(React__namespace.Fragment, { key: `${i}${index}` },
|
|
3311
|
+
React__namespace.createElement(Text, { color: "brand", size: props.size, cx: css$l.selection }, i),
|
|
3080
3312
|
(props.postfix || index !== props.selection.length - 1) && React__namespace.createElement("span", null, ",\u00A0"))));
|
|
3081
3313
|
return (React__namespace.createElement(uuiComponents.FlexRow, Object.assign({}, props, { rawProps: {
|
|
3082
3314
|
style: { maxWidth: `${props.maxWidth ? props.maxWidth + 'px' : 'auto'}` },
|
|
3083
3315
|
role: 'button',
|
|
3084
|
-
}, cx: cx__default.default(css$
|
|
3085
|
-
React__namespace.createElement(uuiComponents.FlexRow, { cx: css$
|
|
3086
|
-
React__namespace.createElement(Text, { size: props.size, cx: css$
|
|
3087
|
-
props.selection && (React__namespace.createElement("div", { className: css$
|
|
3316
|
+
}, cx: cx__default.default(css$l.root, uuiCore.uuiElement.inputBox, uuiCore.uuiMarkers.clickable, props.isOpen && uuiCore.uuiMod.opened, ['size-' + (props.size || defaultSize)], props.cx), onClick: togglerPickerOpened, ref: ref }),
|
|
3317
|
+
React__namespace.createElement(uuiComponents.FlexRow, { cx: css$l.titleWrapper },
|
|
3318
|
+
React__namespace.createElement(Text, { size: props.size, cx: css$l.title }, getTitle),
|
|
3319
|
+
props.selection && (React__namespace.createElement("div", { className: css$l.textWrapper },
|
|
3088
3320
|
getSelectionText(),
|
|
3089
|
-
props.postfix && (React__namespace.createElement(Text, { color: "brand", size: props.size, cx: css$
|
|
3321
|
+
props.postfix && (React__namespace.createElement(Text, { color: "brand", size: props.size, cx: css$l.postfix }, props.postfix))))),
|
|
3090
3322
|
!props.isDisabled && React__namespace.createElement(uuiComponents.IconContainer, { icon: systemIcons[props.size || defaultSize].foldingArrow, flipY: props.isOpen, cx: "uui-icon-dropdown" })));
|
|
3091
3323
|
});
|
|
3092
3324
|
|
|
@@ -3115,8 +3347,8 @@ class FilterPickerBody extends uuiComponents.PickerInputBase {
|
|
|
3115
3347
|
shouldShowBody() {
|
|
3116
3348
|
return this.props.isOpen;
|
|
3117
3349
|
}
|
|
3118
|
-
toggleModalOpening(
|
|
3119
|
-
renderTarget(
|
|
3350
|
+
toggleModalOpening() { }
|
|
3351
|
+
renderTarget() {
|
|
3120
3352
|
return React__namespace.createElement("div", null);
|
|
3121
3353
|
}
|
|
3122
3354
|
renderBody(props, rows) {
|
|
@@ -3166,7 +3398,7 @@ class FilterDatePickerBody extends uuiComponents.BaseDatePicker {
|
|
|
3166
3398
|
}
|
|
3167
3399
|
}
|
|
3168
3400
|
|
|
3169
|
-
var css$
|
|
3401
|
+
var css$k = {"date-input":"lNWbGU","size-24":"VjyrWh","size-30":"Z4-Jjm","size-36":"Qaim8R","size-42":"_5rwbck","size-48":"_62rB7g","date-input-group":"jTYQnC","separator":"M9g5Yl","mode-form":"mByNg-","mode-cell":"p5qr-K","dateInput":"lNWbGU","size24":"VjyrWh","size30":"Z4-Jjm","size36":"Qaim8R","size42":"_5rwbck","size48":"_62rB7g","dateInputGroup":"jTYQnC","modeForm":"mByNg-","modeCell":"p5qr-K"};
|
|
3170
3402
|
|
|
3171
3403
|
class FilterRangeDatePickerBody extends uuiComponents.BaseRangeDatePicker {
|
|
3172
3404
|
constructor() {
|
|
@@ -3186,10 +3418,10 @@ class FilterRangeDatePickerBody extends uuiComponents.BaseRangeDatePicker {
|
|
|
3186
3418
|
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 })),
|
|
3187
3419
|
React__namespace.createElement(FlexCell, { alignSelf: "stretch" },
|
|
3188
3420
|
React__namespace.createElement(FlexRow, { padding: "24", vPadding: "12" },
|
|
3189
|
-
React__namespace.createElement("div", { className: cx__default.default(css$
|
|
3190
|
-
React__namespace.createElement(TextInput, { icon: systemIcons['30'].calendar, cx: cx__default.default(css$
|
|
3191
|
-
React__namespace.createElement("div", { className: css$
|
|
3192
|
-
React__namespace.createElement(TextInput, { cx: cx__default.default(css$
|
|
3421
|
+
React__namespace.createElement("div", { className: cx__default.default(css$k.dateInputGroup, this.state.inFocus && uuiCore.uuiMod.focus) },
|
|
3422
|
+
React__namespace.createElement(TextInput, { icon: systemIcons['30'].calendar, cx: cx__default.default(css$k.dateInput, css$k['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') }),
|
|
3423
|
+
React__namespace.createElement("div", { className: css$k.separator }),
|
|
3424
|
+
React__namespace.createElement(TextInput, { cx: cx__default.default(css$k.dateInput, css$k['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') })),
|
|
3193
3425
|
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
3194
3426
|
React__namespace.createElement(LinkButton, { isDisabled: !this.state.inputValue.from && !this.state.inputValue.to, caption: i18n.pickerModal.clearAllButton, onClick: this.handleCancel })))));
|
|
3195
3427
|
}
|
|
@@ -3198,7 +3430,7 @@ class FilterRangeDatePickerBody extends uuiComponents.BaseRangeDatePicker {
|
|
|
3198
3430
|
}
|
|
3199
3431
|
}
|
|
3200
3432
|
|
|
3201
|
-
var css$
|
|
3433
|
+
var css$j = {"container":"pQ20ri"};
|
|
3202
3434
|
|
|
3203
3435
|
function FilterNumericBody(props) {
|
|
3204
3436
|
var _a, _b;
|
|
@@ -3242,7 +3474,7 @@ function FilterNumericBody(props) {
|
|
|
3242
3474
|
if (isInRangePredicate) {
|
|
3243
3475
|
const value = props.value;
|
|
3244
3476
|
return (React__namespace.default.createElement("div", null,
|
|
3245
|
-
React__namespace.default.createElement(FlexRow, { padding: "12", alignItems: "center", spacing: "12", borderBottom: true, cx: css$
|
|
3477
|
+
React__namespace.default.createElement(FlexRow, { padding: "12", alignItems: "center", spacing: "12", borderBottom: true, cx: css$j.container },
|
|
3246
3478
|
React__namespace.default.createElement(FlexCell, { width: "100%" },
|
|
3247
3479
|
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 } })),
|
|
3248
3480
|
React__namespace.default.createElement(FlexCell, { width: "100%" },
|
|
@@ -3250,7 +3482,7 @@ function FilterNumericBody(props) {
|
|
|
3250
3482
|
renderFooter()));
|
|
3251
3483
|
}
|
|
3252
3484
|
return (React__namespace.default.createElement("div", null,
|
|
3253
|
-
React__namespace.default.createElement(FlexRow, { padding: "12", alignItems: "center", borderBottom: true, cx: css$
|
|
3485
|
+
React__namespace.default.createElement(FlexRow, { padding: "12", alignItems: "center", borderBottom: true, cx: css$j.container },
|
|
3254
3486
|
React__namespace.default.createElement(FlexCell, { width: 130 },
|
|
3255
3487
|
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 } }))),
|
|
3256
3488
|
renderFooter()));
|
|
@@ -3271,23 +3503,23 @@ function FilterItemBody(props) {
|
|
|
3271
3503
|
}
|
|
3272
3504
|
}
|
|
3273
3505
|
|
|
3274
|
-
var _path$
|
|
3275
|
-
function _extends$
|
|
3506
|
+
var _path$g;
|
|
3507
|
+
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); }
|
|
3276
3508
|
var SvgActionDeleteforever12 = function SvgActionDeleteforever12(props, ref) {
|
|
3277
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3509
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
|
|
3278
3510
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3279
3511
|
width: 12,
|
|
3280
3512
|
height: 12,
|
|
3281
3513
|
viewBox: "0 0 18 18",
|
|
3282
3514
|
ref: ref
|
|
3283
|
-
}, props), _path$
|
|
3515
|
+
}, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3284
3516
|
fillRule: "evenodd",
|
|
3285
3517
|
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"
|
|
3286
3518
|
})));
|
|
3287
3519
|
};
|
|
3288
|
-
var ForwardRef$
|
|
3520
|
+
var ForwardRef$h = /*#__PURE__*/React.forwardRef(SvgActionDeleteforever12);
|
|
3289
3521
|
|
|
3290
|
-
var css$
|
|
3522
|
+
var css$i = {"header":"_6pBAif","removeButton":"hboOJO","with-search":"_21QAp0","panel":"_5HB-ra","withSearch":"_21QAp0"};
|
|
3291
3523
|
|
|
3292
3524
|
function FiltersToolbarItemImpl(props) {
|
|
3293
3525
|
const { maxCount = 2 } = props;
|
|
@@ -3363,14 +3595,14 @@ function FiltersToolbarItemImpl(props) {
|
|
|
3363
3595
|
};
|
|
3364
3596
|
const renderHeader = (hideTitle) => {
|
|
3365
3597
|
var _a;
|
|
3366
|
-
return (React__namespace.default.createElement("div", { className: cx__default.default(css$
|
|
3598
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default(css$i.header, isPickersType && ((_a = props.showSearch) !== null && _a !== void 0 ? _a : css$i.withSearch)) },
|
|
3367
3599
|
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))),
|
|
3368
|
-
!(props === null || props === void 0 ? void 0 : props.isAlwaysVisible) && (React__namespace.default.createElement(LinkButton, { cx: css$
|
|
3600
|
+
!(props === null || props === void 0 ? void 0 : props.isAlwaysVisible) && (React__namespace.default.createElement(LinkButton, { cx: css$i.removeButton, caption: i18n.filterToolbar.datePicker.removeCaption, onClick: removeOnclickHandler, size: "24", icon: ForwardRef$h }))));
|
|
3369
3601
|
};
|
|
3370
3602
|
const renderBody = (dropdownProps) => {
|
|
3371
3603
|
const hideHeaderTitle = isPickersType && isMobileScreen;
|
|
3372
3604
|
return (React__namespace.default.createElement(DropdownContainer, Object.assign({}, dropdownProps),
|
|
3373
|
-
React__namespace.default.createElement(Panel, { cx: css$
|
|
3605
|
+
React__namespace.default.createElement(Panel, { cx: css$i.panel }, isPickersType ? (React__namespace.default.createElement(MobileDropdownWrapper, { title: props.title, close: () => isOpenChange(false) },
|
|
3374
3606
|
renderHeader(hideHeaderTitle),
|
|
3375
3607
|
React__namespace.default.createElement(FilterItemBody, Object.assign({}, props, dropdownProps, { selectedPredicate: predicate, value: getValue(), onValueChange: onValueChange })))) : (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
3376
3608
|
renderHeader(hideHeaderTitle),
|
|
@@ -3449,20 +3681,20 @@ function FiltersToolbarItemImpl(props) {
|
|
|
3449
3681
|
}
|
|
3450
3682
|
const FiltersPanelItem = React__namespace.default.memo(FiltersToolbarItemImpl);
|
|
3451
3683
|
|
|
3452
|
-
var _path$
|
|
3453
|
-
function _extends$
|
|
3684
|
+
var _path$f;
|
|
3685
|
+
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); }
|
|
3454
3686
|
var SvgActionAdd18 = function SvgActionAdd18(props, ref) {
|
|
3455
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3687
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
|
|
3456
3688
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3457
3689
|
width: 18,
|
|
3458
3690
|
height: 18,
|
|
3459
3691
|
viewBox: "0 0 18 18",
|
|
3460
3692
|
ref: ref
|
|
3461
|
-
}, props), _path$
|
|
3693
|
+
}, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3462
3694
|
d: "M10 2H8v6H2v2h6v6h2v-6h6V8h-6V2z"
|
|
3463
3695
|
})));
|
|
3464
3696
|
};
|
|
3465
|
-
var ForwardRef$
|
|
3697
|
+
var ForwardRef$g = /*#__PURE__*/React.forwardRef(SvgActionAdd18);
|
|
3466
3698
|
|
|
3467
3699
|
const normalizeFilterWithPredicates = (filter) => {
|
|
3468
3700
|
if (!filter) {
|
|
@@ -3514,12 +3746,15 @@ function FiltersToolbarImpl(props) {
|
|
|
3514
3746
|
const newConfig = {};
|
|
3515
3747
|
const newFilter = {};
|
|
3516
3748
|
const sortedOrders = tableState.filtersConfig && sortBy__default.default(tableState.filtersConfig, (f) => f === null || f === void 0 ? void 0 : f.order);
|
|
3517
|
-
let
|
|
3749
|
+
let lastItemOrder = (sortedOrders === null || sortedOrders === void 0 ? void 0 : sortedOrders.length) ? (_a = sortedOrders[sortedOrders.length - 1]) === null || _a === void 0 ? void 0 : _a.order : null;
|
|
3518
3750
|
updatedFilters.forEach((filter) => {
|
|
3519
3751
|
var _a, _b;
|
|
3520
|
-
|
|
3521
|
-
order
|
|
3522
|
-
|
|
3752
|
+
let order = (_b = (_a = tableState === null || tableState === void 0 ? void 0 : tableState.filtersConfig) === null || _a === void 0 ? void 0 : _a[filter === null || filter === void 0 ? void 0 : filter.field]) === null || _b === void 0 ? void 0 : _b.order;
|
|
3753
|
+
if (!order) {
|
|
3754
|
+
order = uuiCore.getOrderBetween(lastItemOrder, null);
|
|
3755
|
+
lastItemOrder = order;
|
|
3756
|
+
}
|
|
3757
|
+
newConfig[filter.field] = { isVisible: true, order: order };
|
|
3523
3758
|
// Remove unselected filters from filter object
|
|
3524
3759
|
if (tableState.filter) {
|
|
3525
3760
|
newFilter[filter.field] = tableState.filter[filter.field];
|
|
@@ -3550,7 +3785,7 @@ function FiltersToolbarImpl(props) {
|
|
|
3550
3785
|
}, [filters, tableState.filtersConfig]);
|
|
3551
3786
|
const renderAddFilterToggler = React.useCallback((togglerProps) => {
|
|
3552
3787
|
var _a;
|
|
3553
|
-
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$
|
|
3788
|
+
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$g, iconPosition: "left", mode: "ghost", color: "primary" }));
|
|
3554
3789
|
}, []);
|
|
3555
3790
|
const getRowOptions = React.useCallback((item) => ({
|
|
3556
3791
|
isDisabled: item.isAlwaysVisible,
|
|
@@ -3571,115 +3806,115 @@ function FiltersToolbarImpl(props) {
|
|
|
3571
3806
|
React__namespace.default.createElement(FiltersPanelItem, Object.assign({}, f, { value: (_a = tableState.filter) === null || _a === void 0 ? void 0 : _a[f.field], onValueChange: handleFilterChange, key: f.field, autoFocus: newFilterId === f.field, removeFilter: removeFilter, size: props.size }))));
|
|
3572
3807
|
}),
|
|
3573
3808
|
!isAllFiltersAlwaysVisible && (React__namespace.default.createElement(PickerInput, { dataSource: dataSource, value: selectedFilters, onValueChange: onFiltersChange, selectionMode: "multi", valueType: "entity", key: newFilterId, renderRow: (props) => (React__namespace.default.createElement(DataPickerRow, Object.assign({}, props, { padding: "12", key: props.key, onCheck: (row) => {
|
|
3574
|
-
props.onCheck(row);
|
|
3809
|
+
props.onCheck && props.onCheck(row);
|
|
3575
3810
|
!row.isChecked && setNewFilterId(row.value.field);
|
|
3576
3811
|
}, renderItem: (item, rowProps) => React__namespace.default.createElement(PickerItem, Object.assign({}, rowProps, { title: item.title })) }))), getName: (i) => i.title, renderToggler: renderAddFilterToggler, emptyValue: [], getRowOptions: getRowOptions, fixedBodyPosition: true, size: props.size }))));
|
|
3577
3812
|
}
|
|
3578
3813
|
const FiltersPanel = React__namespace.default.memo(FiltersToolbarImpl);
|
|
3579
3814
|
|
|
3580
|
-
var css$
|
|
3815
|
+
var css$h = {"divider":"IPfn-9","dropdownDeleteIcon":"ZxuLG3","presetsWrapper":"el2heb","addPresetContainer":"tOi9F8","dropContainer":"-B6u8a"};
|
|
3581
3816
|
|
|
3582
|
-
var css$
|
|
3817
|
+
var css$g = {"preset-dropdown-panel":"Y0Hc-T","delete-row":"-f9ec-","delete-button":"_1NmOzC","targetOpen":"FlxGib","presetDropdownPanel":"Y0Hc-T","deleteRow":"-f9ec-","deleteButton":"_1NmOzC"};
|
|
3583
3818
|
|
|
3584
|
-
var _path$
|
|
3585
|
-
function _extends$
|
|
3819
|
+
var _path$e;
|
|
3820
|
+
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); }
|
|
3586
3821
|
var SvgSaveOutline18 = function SvgSaveOutline18(props, ref) {
|
|
3587
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3822
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
|
|
3588
3823
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3589
3824
|
width: 18,
|
|
3590
3825
|
height: 18,
|
|
3591
3826
|
viewBox: "0 0 18 18",
|
|
3592
3827
|
ref: ref
|
|
3593
|
-
}, props), _path$
|
|
3828
|
+
}, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3594
3829
|
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"
|
|
3595
3830
|
})));
|
|
3596
3831
|
};
|
|
3597
|
-
var ForwardRef$
|
|
3832
|
+
var ForwardRef$f = /*#__PURE__*/React.forwardRef(SvgSaveOutline18);
|
|
3598
3833
|
|
|
3599
|
-
var _path$
|
|
3600
|
-
function _extends$
|
|
3834
|
+
var _path$d;
|
|
3835
|
+
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); }
|
|
3601
3836
|
var SvgContentEditUndo18 = function SvgContentEditUndo18(props, ref) {
|
|
3602
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3837
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
|
|
3603
3838
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3604
3839
|
width: 18,
|
|
3605
3840
|
height: 18,
|
|
3606
3841
|
viewBox: "0 0 18 18",
|
|
3607
3842
|
ref: ref
|
|
3608
|
-
}, props), _path$
|
|
3843
|
+
}, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3609
3844
|
fillRule: "evenodd",
|
|
3610
3845
|
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",
|
|
3611
3846
|
clipRule: "evenodd"
|
|
3612
3847
|
})));
|
|
3613
3848
|
};
|
|
3614
|
-
var ForwardRef$
|
|
3849
|
+
var ForwardRef$e = /*#__PURE__*/React.forwardRef(SvgContentEditUndo18);
|
|
3615
3850
|
|
|
3616
|
-
var _path$
|
|
3617
|
-
function _extends$
|
|
3851
|
+
var _path$c;
|
|
3852
|
+
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); }
|
|
3618
3853
|
var SvgActionCopyContent18 = function SvgActionCopyContent18(props, ref) {
|
|
3619
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3854
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
|
|
3620
3855
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3621
3856
|
width: 18,
|
|
3622
3857
|
height: 18,
|
|
3623
3858
|
viewBox: "0 0 18 18",
|
|
3624
3859
|
ref: ref
|
|
3625
|
-
}, props), _path$
|
|
3860
|
+
}, props), _path$c || (_path$c = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3626
3861
|
fillRule: "evenodd",
|
|
3627
3862
|
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",
|
|
3628
3863
|
clipRule: "evenodd"
|
|
3629
3864
|
})));
|
|
3630
3865
|
};
|
|
3631
|
-
var ForwardRef$
|
|
3866
|
+
var ForwardRef$d = /*#__PURE__*/React.forwardRef(SvgActionCopyContent18);
|
|
3632
3867
|
|
|
3633
|
-
var _path$
|
|
3634
|
-
function _extends$
|
|
3868
|
+
var _path$b;
|
|
3869
|
+
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); }
|
|
3635
3870
|
var SvgContentEdit18 = function SvgContentEdit18(props, ref) {
|
|
3636
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3871
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
|
|
3637
3872
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3638
3873
|
width: 18,
|
|
3639
3874
|
height: 18,
|
|
3640
3875
|
viewBox: "0 0 18 18",
|
|
3641
3876
|
ref: ref
|
|
3642
|
-
}, props), _path$
|
|
3877
|
+
}, props), _path$b || (_path$b = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3643
3878
|
fillRule: "evenodd",
|
|
3644
3879
|
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",
|
|
3645
3880
|
clipRule: "evenodd"
|
|
3646
3881
|
})));
|
|
3647
3882
|
};
|
|
3648
|
-
var ForwardRef$
|
|
3883
|
+
var ForwardRef$c = /*#__PURE__*/React.forwardRef(SvgContentEdit18);
|
|
3649
3884
|
|
|
3650
|
-
var _path$
|
|
3651
|
-
function _extends$
|
|
3885
|
+
var _path$a;
|
|
3886
|
+
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); }
|
|
3652
3887
|
var SvgContentLink18 = function SvgContentLink18(props, ref) {
|
|
3653
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3888
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
|
|
3654
3889
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3655
3890
|
width: 18,
|
|
3656
3891
|
height: 18,
|
|
3657
3892
|
viewBox: "0 0 18 18",
|
|
3658
3893
|
ref: ref
|
|
3659
|
-
}, props), _path$
|
|
3894
|
+
}, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3660
3895
|
fillRule: "evenodd",
|
|
3661
3896
|
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",
|
|
3662
3897
|
clipRule: "evenodd"
|
|
3663
3898
|
})));
|
|
3664
3899
|
};
|
|
3665
|
-
var ForwardRef$
|
|
3900
|
+
var ForwardRef$b = /*#__PURE__*/React.forwardRef(SvgContentLink18);
|
|
3666
3901
|
|
|
3667
|
-
var _path$
|
|
3668
|
-
function _extends$
|
|
3902
|
+
var _path$9;
|
|
3903
|
+
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); }
|
|
3669
3904
|
var SvgActionDeleteforever18 = function SvgActionDeleteforever18(props, ref) {
|
|
3670
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3905
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
|
|
3671
3906
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3672
3907
|
width: 18,
|
|
3673
3908
|
height: 18,
|
|
3674
3909
|
viewBox: "0 0 18 18",
|
|
3675
3910
|
ref: ref
|
|
3676
|
-
}, props), _path$
|
|
3911
|
+
}, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3677
3912
|
fillRule: "evenodd",
|
|
3678
3913
|
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",
|
|
3679
3914
|
clipRule: "evenodd"
|
|
3680
3915
|
})));
|
|
3681
3916
|
};
|
|
3682
|
-
var ForwardRef$
|
|
3917
|
+
var ForwardRef$a = /*#__PURE__*/React.forwardRef(SvgActionDeleteforever18);
|
|
3683
3918
|
|
|
3684
3919
|
function PresetActionsDropdown(props) {
|
|
3685
3920
|
const { uuiNotifications } = uuiCore.useUuiContext();
|
|
@@ -3716,30 +3951,30 @@ function PresetActionsDropdown(props) {
|
|
|
3716
3951
|
]);
|
|
3717
3952
|
const renderBody = () => {
|
|
3718
3953
|
const isReadonlyPreset = props.preset.isReadonly;
|
|
3719
|
-
return (React__namespace.default.createElement(Panel, { shadow: true, cx: css$
|
|
3954
|
+
return (React__namespace.default.createElement(Panel, { shadow: true, cx: css$g.presetDropdownPanel },
|
|
3720
3955
|
props.activePresetId === props.preset.id && props.hasPresetChanged(props.preset) && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
3721
3956
|
!isReadonlyPreset && (React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-save-in-current` },
|
|
3722
|
-
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$
|
|
3957
|
+
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$r, caption: "Save in current", onClick: saveInCurrentHandler }))),
|
|
3723
3958
|
React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-save-as-new` },
|
|
3724
|
-
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$
|
|
3959
|
+
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$f, caption: "Save as new", onClick: props.addPreset })),
|
|
3725
3960
|
React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-discard`, borderBottom: true },
|
|
3726
|
-
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$
|
|
3961
|
+
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$e, caption: "Discard all changes", onClick: discardAllChangesHandler })))),
|
|
3727
3962
|
props.preset.id === props.activePresetId && !isReadonlyPreset && (React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-rename` },
|
|
3728
|
-
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$
|
|
3963
|
+
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$c, caption: "Rename", onClick: props.renamePreset }))),
|
|
3729
3964
|
React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-duplicate` },
|
|
3730
|
-
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$
|
|
3965
|
+
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$d, caption: "Duplicate", onClick: duplicateHandler })),
|
|
3731
3966
|
React__namespace.default.createElement(FlexRow, { borderBottom: true, key: `${props.preset.id}-copyLink` },
|
|
3732
|
-
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$
|
|
3733
|
-
!isReadonlyPreset && (React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-delete`, cx: css$
|
|
3734
|
-
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$
|
|
3967
|
+
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$b, caption: "Copy Link", onClick: copyUrlToClipboard })),
|
|
3968
|
+
!isReadonlyPreset && (React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-delete`, cx: css$g.deleteRow },
|
|
3969
|
+
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$a, caption: "Delete", cx: css$g.deleteButton, onClick: deleteHandler })))));
|
|
3735
3970
|
};
|
|
3736
3971
|
const renderTarget = React.useCallback((dropdownProps) => {
|
|
3737
|
-
return (React__namespace.default.createElement(IconButton, Object.assign({ cx: dropdownProps.isOpen && css$
|
|
3972
|
+
return (React__namespace.default.createElement(IconButton, Object.assign({ cx: dropdownProps.isOpen && css$g.targetOpen, color: props.preset.id === props.activePresetId ? 'info' : 'default' }, dropdownProps, { icon: ForwardRef$s })));
|
|
3738
3973
|
}, []);
|
|
3739
3974
|
return (React__namespace.default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end", modifiers: [{ name: 'offset', options: { offset: [0, 22] } }] }));
|
|
3740
3975
|
}
|
|
3741
3976
|
|
|
3742
|
-
var css$
|
|
3977
|
+
var css$f = {"preset-input-cell":"lcD93R","preset-input":"gpVVel","presetInputCell":"lcD93R","presetInput":"gpVVel"};
|
|
3743
3978
|
|
|
3744
3979
|
function PresetInput(props) {
|
|
3745
3980
|
var _a;
|
|
@@ -3760,11 +3995,11 @@ function PresetInput(props) {
|
|
|
3760
3995
|
}
|
|
3761
3996
|
props.onCancel();
|
|
3762
3997
|
}, [presetCaption.length, props.onCancel]);
|
|
3763
|
-
return (React__namespace.default.createElement(FlexCell, { cx: css$
|
|
3764
|
-
React__namespace.default.createElement(TextInput, { cx: css$
|
|
3998
|
+
return (React__namespace.default.createElement(FlexCell, { cx: css$f.presetInputCell, minWidth: 180 },
|
|
3999
|
+
React__namespace.default.createElement(TextInput, { cx: css$f.presetInput, onValueChange: setPresetCaption, value: presetCaption, onCancel: cancelActionHandler, onAccept: acceptActionHandler, onBlur: newPresetOnBlurHandler, autoFocus: true, maxLength: 50 })));
|
|
3765
4000
|
}
|
|
3766
4001
|
|
|
3767
|
-
var css$
|
|
4002
|
+
var css$e = {"preset":"HI94V9","activePreset":"QjOQF8"};
|
|
3768
4003
|
|
|
3769
4004
|
function Preset(props) {
|
|
3770
4005
|
const [isRenamePreset, setIsRenamePreset] = React.useState(false);
|
|
@@ -3782,23 +4017,23 @@ function Preset(props) {
|
|
|
3782
4017
|
return props.updatePreset(newPreset);
|
|
3783
4018
|
}, [props.preset]);
|
|
3784
4019
|
const isPresetActive = props.activePresetId === props.preset.id;
|
|
3785
|
-
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$
|
|
4020
|
+
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$e.preset, isPresetActive && css$e.activePreset], size: "60", withNotify: isPresetActive && props.hasPresetChanged(props.preset), icon: () => React__namespace.default.createElement(PresetActionsDropdown, Object.assign({ renamePreset: setPresetForRename }, props)), iconPosition: "right", isLinkActive: isPresetActive }))));
|
|
3786
4021
|
}
|
|
3787
4022
|
|
|
3788
|
-
var _path$
|
|
3789
|
-
function _extends$
|
|
4023
|
+
var _path$8;
|
|
4024
|
+
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); }
|
|
3790
4025
|
var SvgContentPlusBold18 = function SvgContentPlusBold18(props, ref) {
|
|
3791
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
4026
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
|
|
3792
4027
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3793
4028
|
width: 18,
|
|
3794
4029
|
height: 18,
|
|
3795
4030
|
viewBox: "0 0 18 18",
|
|
3796
4031
|
ref: ref
|
|
3797
|
-
}, props), _path$
|
|
4032
|
+
}, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3798
4033
|
d: "M10.5 3h-3v4.5H3v3h4.5V15h3v-4.5H15v-3h-4.5V3z"
|
|
3799
4034
|
})));
|
|
3800
4035
|
};
|
|
3801
|
-
var ForwardRef$
|
|
4036
|
+
var ForwardRef$9 = /*#__PURE__*/React.forwardRef(SvgContentPlusBold18);
|
|
3802
4037
|
|
|
3803
4038
|
function PresetsPanel(props) {
|
|
3804
4039
|
const [isAddingPreset, setIsAddingPreset] = React.useState(false);
|
|
@@ -3813,16 +4048,16 @@ function PresetsPanel(props) {
|
|
|
3813
4048
|
return React__namespace.default.createElement(Preset, Object.assign({ key: preset.id, preset: preset, addPreset: setAddingPreset }, presetApi));
|
|
3814
4049
|
};
|
|
3815
4050
|
const renderAddPresetButton = React.useCallback(() => {
|
|
3816
|
-
return (React__namespace.default.createElement("div", { key: "addingPresetBlock", className: css$
|
|
4051
|
+
return (React__namespace.default.createElement("div", { key: "addingPresetBlock", className: css$h.addPresetContainer }, !isAddingPreset ? (React__namespace.default.createElement(Button, { size: "36", onClick: setAddingPreset, caption: i18n.presetPanel.addCaption, icon: ForwardRef$9, iconPosition: "left", mode: "ghost", color: "primary" })) : (React__namespace.default.createElement(PresetInput, { onCancel: cancelAddingPreset, onSuccess: props.createNewPreset }))));
|
|
3817
4052
|
}, [isAddingPreset]);
|
|
3818
4053
|
const onPresetDropdownSelect = (preset) => {
|
|
3819
4054
|
props.choosePreset(preset.preset);
|
|
3820
4055
|
};
|
|
3821
4056
|
const renderMoreButtonDropdown = (item, hiddenItems) => {
|
|
3822
4057
|
return (React__namespace.default.createElement(Dropdown, { key: "more", renderTarget: (props) => (React__namespace.default.createElement(FlexRow, null,
|
|
3823
|
-
React__namespace.default.createElement("div", { className: css$
|
|
3824
|
-
React__namespace.default.createElement(Button, Object.assign({ mode: "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$
|
|
3825
|
-
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$
|
|
4058
|
+
React__namespace.default.createElement("div", { className: css$h.divider }),
|
|
4059
|
+
React__namespace.default.createElement(Button, Object.assign({ mode: "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$h.dropContainer), width: 230 },
|
|
4060
|
+
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$a, iconPosition: "right", cx: css$h.dropdownDeleteIcon, onIconClick: !hiddenItem.preset.isReadonly && (() => props.deletePreset(hiddenItem.preset)) })))))) }));
|
|
3826
4061
|
};
|
|
3827
4062
|
const getPresetPriority = (preset, index) => {
|
|
3828
4063
|
return preset.id === props.activePresetId ? 100499 : 1000 - index;
|
|
@@ -3840,7 +4075,7 @@ function PresetsPanel(props) {
|
|
|
3840
4075
|
];
|
|
3841
4076
|
};
|
|
3842
4077
|
return (React__namespace.default.createElement(FlexCell, { grow: 1, minWidth: 310, rawProps: props.rawProps },
|
|
3843
|
-
React__namespace.default.createElement(FlexRow, { size: null, spacing: "12", cx: css$
|
|
4078
|
+
React__namespace.default.createElement(FlexRow, { size: null, spacing: "12", cx: css$h.presetsWrapper },
|
|
3844
4079
|
React__namespace.default.createElement(uuiComponents.AdaptivePanel, { items: getPanelItems() }))));
|
|
3845
4080
|
}
|
|
3846
4081
|
|
|
@@ -3852,53 +4087,53 @@ const defaultPredicates = {
|
|
|
3852
4087
|
rangeDatePicker: [{ predicate: 'inRange', name: 'In Range', isDefault: true }, { predicate: 'notInRange', name: 'Not in Range' }],
|
|
3853
4088
|
};
|
|
3854
4089
|
|
|
3855
|
-
var css$
|
|
4090
|
+
var css$d = {"root":"gIPtez"};
|
|
3856
4091
|
|
|
3857
|
-
var css$
|
|
4092
|
+
var css$c = {"root":"yd2SbJ","burger-content":"rVcvLb","burgerContent":"rVcvLb"};
|
|
3858
4093
|
|
|
3859
|
-
var _path$
|
|
3860
|
-
function _extends$
|
|
4094
|
+
var _path$7;
|
|
4095
|
+
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); }
|
|
3861
4096
|
var SvgBurger = function SvgBurger(props, ref) {
|
|
3862
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
4097
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
|
|
3863
4098
|
width: 60,
|
|
3864
4099
|
height: 60,
|
|
3865
4100
|
viewBox: "0 0 24 24",
|
|
3866
4101
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3867
4102
|
ref: ref
|
|
3868
|
-
}, props), _path$
|
|
4103
|
+
}, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3869
4104
|
d: "M8 9.2h8v.8H8zM8 14h6v.8H8zm0-2.4h8v.8H8z"
|
|
3870
4105
|
})));
|
|
3871
4106
|
};
|
|
3872
|
-
var ForwardRef$
|
|
4107
|
+
var ForwardRef$8 = /*#__PURE__*/React.forwardRef(SvgBurger);
|
|
3873
4108
|
|
|
3874
|
-
var _path$
|
|
3875
|
-
function _extends$
|
|
4109
|
+
var _path$6;
|
|
4110
|
+
function _extends$7() { _extends$7 = 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$7.apply(this, arguments); }
|
|
3876
4111
|
var SvgBurgerClose = function SvgBurgerClose(props, ref) {
|
|
3877
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
4112
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
|
|
3878
4113
|
width: 60,
|
|
3879
4114
|
height: 60,
|
|
3880
4115
|
viewBox: "0 0 60 60",
|
|
3881
4116
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3882
4117
|
ref: ref
|
|
3883
|
-
}, props), _path$
|
|
4118
|
+
}, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3884
4119
|
d: "M38.543 20 40 21.457 31.456 30 40 38.543 38.543 40 30 31.456 21.457 40 20 38.543 28.543 30 20 21.457 21.457 20 30 28.543 38.543 20Z"
|
|
3885
4120
|
})));
|
|
3886
4121
|
};
|
|
3887
|
-
var ForwardRef$
|
|
4122
|
+
var ForwardRef$7 = /*#__PURE__*/React.forwardRef(SvgBurgerClose);
|
|
3888
4123
|
|
|
3889
4124
|
function applyBurgerMods() {
|
|
3890
|
-
return [css$
|
|
4125
|
+
return [css$c.root];
|
|
3891
4126
|
}
|
|
3892
4127
|
const Burger = uuiCore.withMods(uuiComponents.Burger, applyBurgerMods, () => ({
|
|
3893
|
-
burgerIcon: ForwardRef$
|
|
3894
|
-
crossIcon: ForwardRef$
|
|
3895
|
-
burgerContentCx: css$
|
|
4128
|
+
burgerIcon: ForwardRef$8,
|
|
4129
|
+
crossIcon: ForwardRef$7,
|
|
4130
|
+
burgerContentCx: css$c.burgerContent,
|
|
3896
4131
|
}));
|
|
3897
4132
|
|
|
3898
|
-
var _g, _path$
|
|
3899
|
-
function _extends$
|
|
4133
|
+
var _g, _path$5;
|
|
4134
|
+
function _extends$6() { _extends$6 = 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$6.apply(this, arguments); }
|
|
3900
4135
|
var SvgTriangle = function SvgTriangle(props, ref) {
|
|
3901
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
4136
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
|
|
3902
4137
|
width: 12,
|
|
3903
4138
|
height: 24,
|
|
3904
4139
|
viewBox: "0 0 12 24",
|
|
@@ -3915,21 +4150,21 @@ var SvgTriangle = function SvgTriangle(props, ref) {
|
|
|
3915
4150
|
cx: 12,
|
|
3916
4151
|
cy: 302.65,
|
|
3917
4152
|
r: 18
|
|
3918
|
-
}))), _path$
|
|
4153
|
+
}))), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3919
4154
|
d: "m5 14-4-4h8z"
|
|
3920
4155
|
})));
|
|
3921
4156
|
};
|
|
3922
|
-
var ForwardRef$
|
|
4157
|
+
var ForwardRef$6 = /*#__PURE__*/React.forwardRef(SvgTriangle);
|
|
3923
4158
|
|
|
3924
|
-
var css$
|
|
4159
|
+
var css$b = {"root":"Mv0r1d","button-primary":"keuKOs","button-secondary":"P-WHea","hasIcon":"lvQy56","dropdown":"CmXs-J","buttonPrimary":"keuKOs","buttonSecondary":"P-WHea"};
|
|
3925
4160
|
|
|
3926
4161
|
const BurgerButton = uuiCore.withMods(uuiComponents.Button, (props) => [
|
|
3927
|
-
css$
|
|
3928
|
-
], () => ({ dropdownIcon: ForwardRef$
|
|
4162
|
+
css$b.root, css$b['button-' + (props.type || 'primary')], css$b['indent-' + (props.indentLevel || 0)], props.isDropdown && css$b.dropdown, props.icon && css$b.hasIcon,
|
|
4163
|
+
], () => ({ dropdownIcon: ForwardRef$6, dropdownIconPosition: 'left', role: 'menuitem' }));
|
|
3929
4164
|
|
|
3930
|
-
function _extends$
|
|
4165
|
+
function _extends$5() { _extends$5 = 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$5.apply(this, arguments); }
|
|
3931
4166
|
var SvgMenuInputCancel = function SvgMenuInputCancel(props, ref) {
|
|
3932
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
4167
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
|
|
3933
4168
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3934
4169
|
width: 18,
|
|
3935
4170
|
height: 24,
|
|
@@ -3971,48 +4206,48 @@ var SvgMenuInputCancel = function SvgMenuInputCancel(props, ref) {
|
|
|
3971
4206
|
transform: "matrix(3.77953 0 0 3.77953 -369 -648.52)"
|
|
3972
4207
|
})));
|
|
3973
4208
|
};
|
|
3974
|
-
var ForwardRef$
|
|
4209
|
+
var ForwardRef$5 = /*#__PURE__*/React.forwardRef(SvgMenuInputCancel);
|
|
3975
4210
|
|
|
3976
|
-
var css$
|
|
4211
|
+
var css$a = {"search-input":"QGDn6F","searchInput":"QGDn6F"};
|
|
3977
4212
|
|
|
3978
4213
|
function BurgerSearch(props) {
|
|
3979
|
-
return (React__namespace.createElement(uuiComponents.TextInput, { cx: css$
|
|
4214
|
+
return (React__namespace.createElement(uuiComponents.TextInput, { cx: css$a.searchInput, iconPosition: "left", icon: ForwardRef$16, placeholder: props.placeholder, value: props.value, onValueChange: props.onValueChange, onCancel: props.onCancel, cancelIcon: props.value && ForwardRef$5, autoFocus: true }));
|
|
3980
4215
|
}
|
|
3981
4216
|
|
|
3982
|
-
var css$
|
|
4217
|
+
var css$9 = {"group-header":"qbGYe-","group-name":"FsBdAN","line":"_8XQPVz","groupHeader":"qbGYe-","groupName":"FsBdAN"};
|
|
3983
4218
|
|
|
3984
4219
|
function BurgerGroupHeader(props) {
|
|
3985
|
-
return (React__namespace.createElement("div", { className: css$
|
|
3986
|
-
React__namespace.createElement("hr", { className: css$
|
|
3987
|
-
React__namespace.createElement("span", { className: css$
|
|
4220
|
+
return (React__namespace.createElement("div", { className: css$9.groupHeader },
|
|
4221
|
+
React__namespace.createElement("hr", { className: css$9.line }),
|
|
4222
|
+
React__namespace.createElement("span", { className: css$9.groupName }, props.caption)));
|
|
3988
4223
|
}
|
|
3989
4224
|
|
|
3990
|
-
var css$
|
|
4225
|
+
var css$8 = {"root":"E4xLyU","type-primary":"tyk2y8","type-secondary":"s5MHGc","typePrimary":"tyk2y8","typeSecondary":"s5MHGc"};
|
|
3991
4226
|
|
|
3992
|
-
var _path$
|
|
3993
|
-
function _extends$
|
|
4227
|
+
var _path$4;
|
|
4228
|
+
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); }
|
|
3994
4229
|
var SvgChevronDown24 = function SvgChevronDown24(props, ref) {
|
|
3995
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
4230
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
|
|
3996
4231
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3997
4232
|
width: 24,
|
|
3998
4233
|
height: 24,
|
|
3999
4234
|
viewBox: "0 0 24 24",
|
|
4000
4235
|
ref: ref
|
|
4001
|
-
}, props), _path$
|
|
4236
|
+
}, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4002
4237
|
fillRule: "evenodd",
|
|
4003
4238
|
d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
|
|
4004
4239
|
})));
|
|
4005
4240
|
};
|
|
4006
|
-
var ForwardRef$
|
|
4241
|
+
var ForwardRef$4 = /*#__PURE__*/React.forwardRef(SvgChevronDown24);
|
|
4007
4242
|
|
|
4008
|
-
const MainMenuButton = uuiCore.withMods(uuiComponents.Button, (mods) => [css$
|
|
4243
|
+
const MainMenuButton = uuiCore.withMods(uuiComponents.Button, (mods) => [css$8.root, css$8['type-' + (mods.type || 'primary')]], () => ({ dropdownIcon: ForwardRef$4, role: 'menuitem' }));
|
|
4009
4244
|
|
|
4010
|
-
var css$
|
|
4245
|
+
var css$7 = {"dropdown-body":"_6NH12l","dropdownBody":"_6NH12l"};
|
|
4011
4246
|
|
|
4012
4247
|
class MainMenuDropdown extends React__namespace.Component {
|
|
4013
4248
|
render() {
|
|
4014
4249
|
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) => {
|
|
4015
|
-
return (React__namespace.createElement("div", { className: cx__default.default(css$
|
|
4250
|
+
return (React__namespace.createElement("div", { className: cx__default.default(css$7.dropdownBody) }, this.props.renderBody
|
|
4016
4251
|
? this.props.renderBody(Object.assign({}, props))
|
|
4017
4252
|
: React__namespace.Children.map(this.props.children, (item) => {
|
|
4018
4253
|
if (!item)
|
|
@@ -4029,52 +4264,52 @@ class MainMenuDropdown extends React__namespace.Component {
|
|
|
4029
4264
|
}
|
|
4030
4265
|
|
|
4031
4266
|
function applyMainMenuMods() {
|
|
4032
|
-
return [css$
|
|
4267
|
+
return [css$d.root];
|
|
4033
4268
|
}
|
|
4034
4269
|
const MainMenu = uuiCore.withMods(uuiComponents.MainMenu, applyMainMenuMods, () => ({
|
|
4035
4270
|
Burger,
|
|
4036
4271
|
MainMenuDropdown,
|
|
4037
4272
|
}));
|
|
4038
4273
|
|
|
4039
|
-
var _path;
|
|
4040
|
-
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); }
|
|
4274
|
+
var _path$3;
|
|
4275
|
+
function _extends$3() { _extends$3 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
|
|
4041
4276
|
var SvgGlobalMenu = function SvgGlobalMenu(props, ref) {
|
|
4042
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
4277
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
|
|
4043
4278
|
width: 60,
|
|
4044
4279
|
height: 60,
|
|
4045
4280
|
viewBox: "0 0 24 24",
|
|
4046
4281
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4047
4282
|
ref: ref
|
|
4048
|
-
}, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4283
|
+
}, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4049
4284
|
className: "cls-2",
|
|
4050
4285
|
d: "M12 11.2a.8.8 0 1 1-.8.8.8.8 0 0 1 .8-.8zm3.2 0a.8.8 0 1 1-.8.8.802.802 0 0 1 .8-.8zm-6.4 0a.8.8 0 1 1-.8.8.8.8 0 0 1 .8-.8zM12 7.6a.8.8 0 1 1-.8.8.8.8 0 0 1 .8-.8zm3.2 0a.8.8 0 1 1-.8.8.802.802 0 0 1 .8-.8zm-6.4 0a.8.8 0 1 1-.8.8.8.8 0 0 1 .8-.8zm3.2 7.2a.8.8 0 1 1-.8.8.8.8 0 0 1 .8-.8zm3.2 0a.8.8 0 1 1-.8.8.802.802 0 0 1 .8-.8zm-6.4 0a.8.8 0 1 1-.8.8.8.8 0 0 1 .8-.8z"
|
|
4051
4286
|
})));
|
|
4052
4287
|
};
|
|
4053
|
-
var ForwardRef = /*#__PURE__*/React.forwardRef(SvgGlobalMenu);
|
|
4288
|
+
var ForwardRef$3 = /*#__PURE__*/React.forwardRef(SvgGlobalMenu);
|
|
4054
4289
|
|
|
4055
|
-
var css$
|
|
4290
|
+
var css$6 = {"global-menu-btn":"ChI1fJ","globalMenuIcon":"BZO4dh","globalMenuBtn":"ChI1fJ"};
|
|
4056
4291
|
|
|
4057
|
-
const GlobalMenu = React__namespace.forwardRef((props, ref) => (React__namespace.createElement("button", Object.assign({ ref: ref, id: "global_menu_toggle", className: cx__default.default(css$
|
|
4058
|
-
React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef, cx: css$
|
|
4292
|
+
const GlobalMenu = React__namespace.forwardRef((props, ref) => (React__namespace.createElement("button", Object.assign({ ref: ref, id: "global_menu_toggle", className: cx__default.default(css$6.globalMenuBtn, props.cx) }, props.rawProps),
|
|
4293
|
+
React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$3, cx: css$6.globalMenuIcon }))));
|
|
4059
4294
|
|
|
4060
|
-
var css$
|
|
4295
|
+
var css$5 = {"container":"ccuCSB","open":"lJvtgj"};
|
|
4061
4296
|
|
|
4062
|
-
const MainMenuAvatar = React__namespace.forwardRef((props, ref) => (React__namespace.createElement("button", { ref: ref, className: cx__default.default(css$
|
|
4297
|
+
const MainMenuAvatar = React__namespace.forwardRef((props, ref) => (React__namespace.createElement("button", { ref: ref, className: cx__default.default(css$5.container, props.isDropdown && css$5.dropdown, props.isOpen && css$5.open, props.onClick && uuiCore.uuiMarkers.clickable, props.cx), onClick: props.onClick },
|
|
4063
4298
|
React__namespace.createElement(uuiComponents.Avatar, { size: "36", img: props.avatarUrl }),
|
|
4064
4299
|
props.icon && React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon }),
|
|
4065
4300
|
props.isDropdown && (React__namespace.createElement("div", null,
|
|
4066
|
-
React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$
|
|
4301
|
+
React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$1c, flipY: props.isOpen }))))));
|
|
4067
4302
|
|
|
4068
|
-
var css$
|
|
4303
|
+
var css$4 = {"search-input":"DSs6ii","searchInput":"DSs6ii"};
|
|
4069
4304
|
|
|
4070
4305
|
const MainMenuSearch = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(uuiCore.IEditableDebouncer, Object.assign({}, props, { render: (iEditable) => {
|
|
4071
4306
|
var _a;
|
|
4072
|
-
return (React__namespace.createElement(uuiComponents.TextInput, Object.assign({ iconPosition: "left", icon: ForwardRef$
|
|
4307
|
+
return (React__namespace.createElement(uuiComponents.TextInput, Object.assign({ iconPosition: "left", icon: ForwardRef$16, cancelIcon: ((_a = props.value) === null || _a === void 0 ? void 0 : _a.length) > 0 && ForwardRef$5 }, props, iEditable, { ref: ref, cx: uuiCore.cx(css$4.searchInput, props.cx) }, props.rawProps)));
|
|
4073
4308
|
} }))));
|
|
4074
4309
|
|
|
4075
|
-
var css = {"container":"
|
|
4310
|
+
var css$3 = {"container":"_4LQfTc"};
|
|
4076
4311
|
|
|
4077
|
-
const MainMenuIcon = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(IconButton, Object.assign({ ref: ref, icon: props.icon, cx: uuiCore.cx(props.cx, css.container) }, props))));
|
|
4312
|
+
const MainMenuIcon = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(IconButton, Object.assign({ ref: ref, icon: props.icon, cx: uuiCore.cx(props.cx, css$3.container) }, props))));
|
|
4078
4313
|
|
|
4079
4314
|
const Anchor = uuiComponents.Anchor;
|
|
4080
4315
|
|
|
@@ -4115,6 +4350,171 @@ function useForm(props) {
|
|
|
4115
4350
|
return uuiCore.useForm(Object.assign({ beforeLeave, loadUnsavedChanges }, props));
|
|
4116
4351
|
}
|
|
4117
4352
|
|
|
4353
|
+
var _path$2;
|
|
4354
|
+
function _extends$2() { _extends$2 = 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$2.apply(this, arguments); }
|
|
4355
|
+
var SvgShape = function SvgShape(props, ref) {
|
|
4356
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
|
|
4357
|
+
width: 24,
|
|
4358
|
+
height: 16,
|
|
4359
|
+
viewBox: "0 0 24 16",
|
|
4360
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4361
|
+
ref: ref
|
|
4362
|
+
}, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4363
|
+
fillRule: "evenodd",
|
|
4364
|
+
d: "M14 9v4h-4V9H7l5-5 5 5m2.35-2.97A7.49 7.49 0 0 0 12 0C9.11 0 6.6 1.64 5.35 4.03A6.004 6.004 0 0 0 6 16h13a5 5 0 0 0 5-5c0-2.64-2.05-4.78-4.65-4.97Z"
|
|
4365
|
+
})));
|
|
4366
|
+
};
|
|
4367
|
+
var ForwardRef$2 = /*#__PURE__*/React.forwardRef(SvgShape);
|
|
4368
|
+
|
|
4369
|
+
var css$2 = {"root":"_2pCCt-","drop-start":"_0XBGTR","drop-over":"peenec","link":"zRIV9q","drop-area":"iyyNCh","icon-blue":"TgQueo","dropStart":"_0XBGTR","dropOver":"peenec","dropArea":"iyyNCh","iconBlue":"TgQueo"};
|
|
4370
|
+
|
|
4371
|
+
class DropSpot extends React__namespace.Component {
|
|
4372
|
+
constructor() {
|
|
4373
|
+
super(...arguments);
|
|
4374
|
+
this.renderAttachmentArea = (props) => {
|
|
4375
|
+
return (React__namespace.createElement("div", Object.assign({ className: uuiCore.cx(css$2.root, this.props.cx, props.isDragStart && css$2.dropStart, props.isDraggingOver && css$2.dropOver) }, this.props.rawProps),
|
|
4376
|
+
React__namespace.createElement("div", Object.assign({}, props.eventHandlers, { className: css$2.dropArea }),
|
|
4377
|
+
React__namespace.createElement(FlexRow, { size: "24" },
|
|
4378
|
+
React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$2, cx: css$2.iconBlue }),
|
|
4379
|
+
React__namespace.createElement(Text, { lineHeight: "24", size: "24", fontSize: "14" },
|
|
4380
|
+
' ',
|
|
4381
|
+
i18n.fileUpload.labelStart,
|
|
4382
|
+
' '),
|
|
4383
|
+
React__namespace.createElement(uuiComponents.UploadFileToggler, { onFilesAdded: this.props.onUploadFiles, render: (props) => (React__namespace.createElement(RichTextView, null,
|
|
4384
|
+
React__namespace.createElement(Anchor, Object.assign({}, props, { cx: css$2.link }), i18n.fileUpload.browse))), accept: this.props.accept, single: this.props.single })),
|
|
4385
|
+
this.props.infoText && (React__namespace.createElement(Text, { lineHeight: "24", size: "24", fontSize: "14", color: "secondary" }, this.props.infoText)))));
|
|
4386
|
+
};
|
|
4387
|
+
}
|
|
4388
|
+
render() {
|
|
4389
|
+
return React__namespace.createElement(uuiComponents.DropSpot, { render: this.renderAttachmentArea, onFilesDropped: this.props.onUploadFiles });
|
|
4390
|
+
}
|
|
4391
|
+
}
|
|
4392
|
+
|
|
4393
|
+
var css$1 = {"file-card-wrapper":"bE97s2","file-name":"ASYPzV","error-card-wrapper":"z5inuX","default-color":"dHKLtd","doc-color":"dnlzBX","xls-color":"C0PI3u","pdf-color":"_6AUSsu","movie-color":"H5gdtM","img-color":"zJT9cj","drop-start":"G5n9ns","error-block":"HuDnuX","icons-block":"DfFKra","fileCardWrapper":"bE97s2","fileName":"ASYPzV","errorCardWrapper":"z5inuX","defaultColor":"dHKLtd","docColor":"dnlzBX","xlsColor":"C0PI3u","pdfColor":"_6AUSsu","movieColor":"H5gdtM","imgColor":"zJT9cj","dropStart":"G5n9ns","errorBlock":"HuDnuX","iconsBlock":"DfFKra"};
|
|
4394
|
+
|
|
4395
|
+
var css = {"root":"pT9Xbm"};
|
|
4396
|
+
|
|
4397
|
+
const SvgCircleProgress = React__namespace.forwardRef((props, ref) => {
|
|
4398
|
+
const outsetRadius = props.size / 2 - 1;
|
|
4399
|
+
const insetRadius = props.size / 2 - 3;
|
|
4400
|
+
const circumference = insetRadius * Math.PI;
|
|
4401
|
+
return (React__namespace.createElement("svg", Object.assign({ className: css.root, width: props.size, height: props.size, ref: ref }, props.rawProps),
|
|
4402
|
+
React__namespace.createElement("circle", { stroke: "#ACAFBF", strokeDasharray: circumference, strokeDashoffset: circumference - (props.progress / 100) * circumference, strokeWidth: insetRadius, fill: "transparent", r: insetRadius / 2, cx: props.size / 2, cy: props.size / 2 }),
|
|
4403
|
+
React__namespace.createElement("circle", { stroke: "#ACAFBF", strokeWidth: 1, fill: "transparent", r: outsetRadius, cx: props.size / 2, cy: props.size / 2 })));
|
|
4404
|
+
});
|
|
4405
|
+
|
|
4406
|
+
var _path$1;
|
|
4407
|
+
function _extends$1() { _extends$1 = 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$1.apply(this, arguments); }
|
|
4408
|
+
var SvgNavigationClose18 = function SvgNavigationClose18(props, ref) {
|
|
4409
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
|
|
4410
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4411
|
+
width: 18,
|
|
4412
|
+
height: 18,
|
|
4413
|
+
viewBox: "0 0 18 18",
|
|
4414
|
+
ref: ref
|
|
4415
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4416
|
+
fillRule: "evenodd",
|
|
4417
|
+
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 9l4.193-4.192z",
|
|
4418
|
+
clipRule: "evenodd"
|
|
4419
|
+
})));
|
|
4420
|
+
};
|
|
4421
|
+
var ForwardRef$1 = /*#__PURE__*/React.forwardRef(SvgNavigationClose18);
|
|
4422
|
+
|
|
4423
|
+
var _path;
|
|
4424
|
+
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); }
|
|
4425
|
+
var SvgNotificationErrorFill10 = function SvgNotificationErrorFill10(props, ref) {
|
|
4426
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
4427
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4428
|
+
width: 12,
|
|
4429
|
+
height: 12,
|
|
4430
|
+
viewBox: "0 0 24 24",
|
|
4431
|
+
ref: ref
|
|
4432
|
+
}, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4433
|
+
fillRule: "evenodd",
|
|
4434
|
+
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"
|
|
4435
|
+
})));
|
|
4436
|
+
};
|
|
4437
|
+
var ForwardRef = /*#__PURE__*/React.forwardRef(SvgNotificationErrorFill10);
|
|
4438
|
+
|
|
4439
|
+
const FileCard = React__namespace.forwardRef((props, ref) => {
|
|
4440
|
+
const [isLoadingShow, setIsLoadingShow] = React__namespace.useState(true);
|
|
4441
|
+
const { file } = props;
|
|
4442
|
+
const getIcon = (extension) => {
|
|
4443
|
+
switch (extension) {
|
|
4444
|
+
case 'doc':
|
|
4445
|
+
case 'docx':
|
|
4446
|
+
return React__namespace.createElement(uuiComponents.IconContainer, { size: 24, icon: fileIcons.docIcon, cx: css$1.docColor });
|
|
4447
|
+
case 'xls':
|
|
4448
|
+
case 'xlsx':
|
|
4449
|
+
return React__namespace.createElement(uuiComponents.IconContainer, { size: 24, icon: fileIcons.exelIcon, cx: css$1.xlsColor });
|
|
4450
|
+
case 'pdf':
|
|
4451
|
+
return React__namespace.createElement(uuiComponents.IconContainer, { size: 24, icon: fileIcons.pdfIcon, cx: css$1.pdfColor });
|
|
4452
|
+
case 'gif':
|
|
4453
|
+
case 'jpg':
|
|
4454
|
+
case 'jpeg':
|
|
4455
|
+
case 'svg':
|
|
4456
|
+
case 'png':
|
|
4457
|
+
case 'webp':
|
|
4458
|
+
return React__namespace.createElement(uuiComponents.IconContainer, { size: 24, icon: fileIcons.imgIcon, cx: css$1.imgColor });
|
|
4459
|
+
case 'avi':
|
|
4460
|
+
case 'mov':
|
|
4461
|
+
case 'mp4':
|
|
4462
|
+
case 'wmw':
|
|
4463
|
+
case 'mkv':
|
|
4464
|
+
return React__namespace.createElement(uuiComponents.IconContainer, { size: 24, icon: fileIcons.videoIcon, cx: css$1.movieColor });
|
|
4465
|
+
case 'csv':
|
|
4466
|
+
case 'xml':
|
|
4467
|
+
return React__namespace.createElement(uuiComponents.IconContainer, { size: 24, icon: fileIcons.tableIcon, cx: css$1.defaultColor });
|
|
4468
|
+
case 'rtf':
|
|
4469
|
+
case 'txt':
|
|
4470
|
+
return React__namespace.createElement(uuiComponents.IconContainer, { size: 24, icon: fileIcons.textIcon, cx: css$1.defaultColor });
|
|
4471
|
+
case 'eml':
|
|
4472
|
+
case 'emlx':
|
|
4473
|
+
return React__namespace.createElement(uuiComponents.IconContainer, { size: 24, icon: fileIcons.mailIcon, cx: css$1.defaultColor });
|
|
4474
|
+
default:
|
|
4475
|
+
return React__namespace.createElement(uuiComponents.IconContainer, { size: 24, icon: fileIcons.fileIcon, cx: css$1.defaultColor });
|
|
4476
|
+
}
|
|
4477
|
+
};
|
|
4478
|
+
const { cx: componentCx, width, file: { progress, size, name, extension, error, abortXHR, }, onClick, } = props;
|
|
4479
|
+
const fileExtension = extension || (name === null || name === void 0 ? void 0 : name.split('.').pop());
|
|
4480
|
+
const fileName = name === null || name === void 0 ? void 0 : name.split('.').slice(0, -1).join('');
|
|
4481
|
+
const isLoading = progress < 100;
|
|
4482
|
+
const isCrossShow = ((!isLoadingShow && isLoading) || !isLoading) && onClick;
|
|
4483
|
+
const mouseLeaveHandler = (e) => {
|
|
4484
|
+
e.stopPropagation();
|
|
4485
|
+
setIsLoadingShow(() => true);
|
|
4486
|
+
};
|
|
4487
|
+
const mouseEnterHandler = (e) => {
|
|
4488
|
+
e.stopPropagation();
|
|
4489
|
+
setIsLoadingShow(() => false);
|
|
4490
|
+
};
|
|
4491
|
+
const renderErrorContent = () => (React__namespace.createElement(Tooltip, { content: file.error.message, placement: "bottom-start" },
|
|
4492
|
+
React__namespace.createElement("div", { className: css$1.errorBlock },
|
|
4493
|
+
React__namespace.createElement(ForwardRef, null),
|
|
4494
|
+
"Upload failed")));
|
|
4495
|
+
const renderSuccessfulContent = () => (React__namespace.createElement(Text, { size: "18", fontSize: "14", lineHeight: "18", color: "secondary" },
|
|
4496
|
+
fileExtension && `${fileExtension.toUpperCase()}, `,
|
|
4497
|
+
isLoading && uuiCore.formatBytes((size / 100) * progress, 2, false) + i18n.fileCard.fileSizeProgress,
|
|
4498
|
+
uuiCore.formatBytes(size)));
|
|
4499
|
+
const removeHandler = () => {
|
|
4500
|
+
progress && progress < 100 && abortXHR();
|
|
4501
|
+
onClick();
|
|
4502
|
+
};
|
|
4503
|
+
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 },
|
|
4504
|
+
React__namespace.createElement(FlexRow, { cx: css$1.fileCardRow, size: "36", alignItems: "top", spacing: "6" },
|
|
4505
|
+
fileExtension && getIcon(fileExtension),
|
|
4506
|
+
React__namespace.createElement(FlexCell, { width: "100%" },
|
|
4507
|
+
React__namespace.createElement(Text, { size: "18", fontSize: "14", lineHeight: "18", color: progress < 100 ? 'secondary' : 'primary', cx: css$1.fileName }, fileName),
|
|
4508
|
+
(error === null || error === void 0 ? void 0 : error.isError) ? renderErrorContent() : renderSuccessfulContent()),
|
|
4509
|
+
React__namespace.createElement("div", { className: uuiCore.cx(css$1.iconsBlock), onMouseEnter: mouseEnterHandler, onMouseLeave: mouseLeaveHandler },
|
|
4510
|
+
isLoadingShow && isLoading && React__namespace.createElement(SvgCircleProgress, { progress: progress, size: 18 }),
|
|
4511
|
+
isCrossShow && React__namespace.createElement(IconButton, { icon: ForwardRef$1, onClick: removeHandler })))));
|
|
4512
|
+
});
|
|
4513
|
+
|
|
4514
|
+
Object.defineProperty(exports, 'Avatar', {
|
|
4515
|
+
enumerable: true,
|
|
4516
|
+
get: function () { return uuiComponents.Avatar; }
|
|
4517
|
+
});
|
|
4118
4518
|
Object.defineProperty(exports, 'FlexSpacer', {
|
|
4119
4519
|
enumerable: true,
|
|
4120
4520
|
get: function () { return uuiComponents.FlexSpacer; }
|
|
@@ -4126,7 +4526,6 @@ Object.defineProperty(exports, 'IconContainer', {
|
|
|
4126
4526
|
exports.Accordion = Accordion;
|
|
4127
4527
|
exports.Alert = Alert;
|
|
4128
4528
|
exports.Anchor = Anchor;
|
|
4129
|
-
exports.Avatar = Avatar;
|
|
4130
4529
|
exports.AvatarStack = AvatarStack;
|
|
4131
4530
|
exports.Badge = Badge;
|
|
4132
4531
|
exports.Blocker = Blocker;
|
|
@@ -4155,6 +4554,7 @@ exports.DataTableRow = DataTableRow;
|
|
|
4155
4554
|
exports.DatePicker = DatePicker;
|
|
4156
4555
|
exports.DatePickerBody = DatePickerBody;
|
|
4157
4556
|
exports.DropMarker = DropMarker;
|
|
4557
|
+
exports.DropSpot = DropSpot;
|
|
4158
4558
|
exports.Dropdown = Dropdown;
|
|
4159
4559
|
exports.DropdownContainer = DropdownContainer;
|
|
4160
4560
|
exports.DropdownMenuBody = DropdownMenuBody;
|
|
@@ -4165,6 +4565,7 @@ exports.DropdownMenuSwitchButton = DropdownMenuSwitchButton;
|
|
|
4165
4565
|
exports.DropdownSubMenu = DropdownSubMenu;
|
|
4166
4566
|
exports.ErrorAlert = ErrorAlert;
|
|
4167
4567
|
exports.ErrorNotification = ErrorNotification;
|
|
4568
|
+
exports.FileCard = FileCard;
|
|
4168
4569
|
exports.FilterItemBody = FilterItemBody;
|
|
4169
4570
|
exports.FiltersPanel = FiltersPanel;
|
|
4170
4571
|
exports.FlexCell = FlexCell;
|
|
@@ -4174,6 +4575,8 @@ exports.GlobalMenu = GlobalMenu;
|
|
|
4174
4575
|
exports.HintAlert = HintAlert;
|
|
4175
4576
|
exports.HintNotification = HintNotification;
|
|
4176
4577
|
exports.IconButton = IconButton;
|
|
4578
|
+
exports.IndeterminateBar = IndeterminateBar;
|
|
4579
|
+
exports.IndicatorBar = IndicatorBar;
|
|
4177
4580
|
exports.LabeledInput = LabeledInput;
|
|
4178
4581
|
exports.LinkButton = LinkButton;
|
|
4179
4582
|
exports.MainMenu = MainMenu;
|
|
@@ -4200,6 +4603,7 @@ exports.PickerModal = PickerModal;
|
|
|
4200
4603
|
exports.PickerModalImpl = PickerModalImpl;
|
|
4201
4604
|
exports.PickerToggler = PickerToggler;
|
|
4202
4605
|
exports.PresetsPanel = PresetsPanel;
|
|
4606
|
+
exports.ProgressBar = ProgressBar;
|
|
4203
4607
|
exports.RadioGroup = RadioGroup;
|
|
4204
4608
|
exports.RadioInput = RadioInput;
|
|
4205
4609
|
exports.RangeDatePicker = RangeDatePicker;
|
|
@@ -4210,6 +4614,7 @@ exports.SearchInput = SearchInput;
|
|
|
4210
4614
|
exports.Spinner = Spinner;
|
|
4211
4615
|
exports.SuccessAlert = SuccessAlert;
|
|
4212
4616
|
exports.SuccessNotification = SuccessNotification;
|
|
4617
|
+
exports.SvgCircleProgress = SvgCircleProgress;
|
|
4213
4618
|
exports.Switch = Switch;
|
|
4214
4619
|
exports.TabButton = TabButton;
|
|
4215
4620
|
exports.Tag = Tag;
|
|
@@ -4217,6 +4622,7 @@ exports.Text = Text;
|
|
|
4217
4622
|
exports.TextArea = TextArea;
|
|
4218
4623
|
exports.TextInput = TextInput;
|
|
4219
4624
|
exports.TextPlaceholder = TextPlaceholder;
|
|
4625
|
+
exports.TimePicker = TimePicker;
|
|
4220
4626
|
exports.Tooltip = Tooltip;
|
|
4221
4627
|
exports.VerticalTabButton = VerticalTabButton;
|
|
4222
4628
|
exports.VirtualList = VirtualList;
|
|
@@ -4239,6 +4645,7 @@ exports.applyButtonMods = applyButtonMods;
|
|
|
4239
4645
|
exports.applyCheckboxMods = applyCheckboxMods;
|
|
4240
4646
|
exports.applyDateSelectionMods = applyDateSelectionMods;
|
|
4241
4647
|
exports.applyNumericInputMods = applyNumericInputMods;
|
|
4648
|
+
exports.applyProgressBarMods = applyProgressBarMods;
|
|
4242
4649
|
exports.applySpinnerMods = applySpinnerMods;
|
|
4243
4650
|
exports.applySwitchMods = applySwitchMods;
|
|
4244
4651
|
exports.applyTagMods = applyTagMods;
|