@epam/uui 5.0.0-alpha.4 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/styles/buttonLayout.scss +67 -67
- package/assets/styles/controlLayout.scss +28 -28
- package/assets/styles/dnd.scss +9 -0
- package/assets/styles/effects.scss +10 -10
- package/assets/styles/icons.scss +19 -19
- package/assets/styles/index.scss +8 -8
- package/assets/styles/inputs.scss +70 -70
- package/assets/styles/text-size.scss +37 -37
- package/assets/styles/{typography-mixins.scss → typography.scss} +163 -159
- package/components/buttons/LinkButton.d.ts +3 -0
- package/components/buttons/LinkButton.d.ts.map +1 -1
- package/components/buttons/TabButton.d.ts.map +1 -1
- package/components/filters/{FilterDataPickerBody.d.ts → FilterDatePickerBody.d.ts} +2 -2
- package/components/filters/{FilterDataPickerBody.d.ts.map → FilterDatePickerBody.d.ts.map} +1 -1
- package/components/filters/FilterPanelItemToggler.d.ts.map +1 -1
- package/components/filters/FilterPickerBody.d.ts +1 -0
- package/components/filters/FilterPickerBody.d.ts.map +1 -1
- package/components/filters/FilterRangeDatePickerBody.d.ts.map +1 -1
- package/components/filters/FiltersPanel.d.ts +1 -0
- package/components/filters/FiltersPanel.d.ts.map +1 -1
- package/components/filters/FiltersPanelItem.d.ts +1 -0
- package/components/filters/FiltersPanelItem.d.ts.map +1 -1
- package/components/forms/Form.d.ts.map +1 -1
- package/components/pickers/MobileDropdownWrapper.d.ts.map +1 -1
- package/components/tables/DataTableCell.d.ts.map +1 -1
- package/components/tables/columnsConfigurationModal/ColumnsConfigurationModal.d.ts.map +1 -1
- package/components/typography/RichTextView.d.ts +1 -2
- package/components/typography/RichTextView.d.ts.map +1 -1
- package/components/typography/Text.d.ts +2 -3
- package/components/typography/Text.d.ts.map +1 -1
- package/components/widgets/Badge.d.ts +1 -2
- package/components/widgets/Badge.d.ts.map +1 -1
- package/i18n.d.ts +1 -1
- package/index.d.ts +0 -1
- package/index.d.ts.map +1 -1
- package/index.esm.js +513 -473
- package/index.esm.js.map +1 -1
- package/index.js +513 -472
- package/index.js.map +1 -1
- package/package.json +5 -5
- package/readme.md +4 -4
- package/stats.html +19 -1
- package/styles.css +98 -126
- package/styles.css.map +1 -1
- package/assets/styles/font-faces.scss +0 -52
- package/assets/styles/layout-mixins.scss +0 -9
- package/assets/styles/prettifyScrollBar.scss +0 -53
package/index.js
CHANGED
|
@@ -32,335 +32,353 @@ var cx__default = /*#__PURE__*/_interopDefault(cx);
|
|
|
32
32
|
var FocusLock__default = /*#__PURE__*/_interopDefault(FocusLock);
|
|
33
33
|
var sortBy__default = /*#__PURE__*/_interopDefault(sortBy);
|
|
34
34
|
|
|
35
|
-
var _path$
|
|
36
|
-
function _extends$
|
|
35
|
+
var _path$12;
|
|
36
|
+
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); }
|
|
37
37
|
var SvgBtnCross12 = function SvgBtnCross12(props, ref) {
|
|
38
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
38
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$15({
|
|
39
39
|
xmlns: "http://www.w3.org/2000/svg",
|
|
40
40
|
width: 12,
|
|
41
41
|
height: 12,
|
|
42
42
|
viewBox: "0 0 12 12",
|
|
43
43
|
ref: ref
|
|
44
|
-
}, props), _path$
|
|
44
|
+
}, props), _path$12 || (_path$12 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
45
45
|
fillRule: "evenodd",
|
|
46
46
|
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"
|
|
47
47
|
})));
|
|
48
48
|
};
|
|
49
|
-
var ForwardRef$
|
|
49
|
+
var ForwardRef$15 = /*#__PURE__*/React.forwardRef(SvgBtnCross12);
|
|
50
50
|
|
|
51
|
-
var _path$
|
|
52
|
-
function _extends$
|
|
51
|
+
var _path$11;
|
|
52
|
+
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); }
|
|
53
53
|
var SvgBtnCross18 = function SvgBtnCross18(props, ref) {
|
|
54
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
54
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$14({
|
|
55
55
|
xmlns: "http://www.w3.org/2000/svg",
|
|
56
56
|
width: 18,
|
|
57
57
|
height: 18,
|
|
58
58
|
viewBox: "0 0 18 18",
|
|
59
59
|
ref: ref
|
|
60
|
-
}, props), _path$
|
|
60
|
+
}, props), _path$11 || (_path$11 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
61
61
|
fillRule: "evenodd",
|
|
62
62
|
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"
|
|
63
63
|
})));
|
|
64
64
|
};
|
|
65
|
-
var ForwardRef$
|
|
65
|
+
var ForwardRef$14 = /*#__PURE__*/React.forwardRef(SvgBtnCross18);
|
|
66
66
|
|
|
67
|
-
var _path
|
|
68
|
-
function _extends$
|
|
67
|
+
var _path$10;
|
|
68
|
+
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); }
|
|
69
69
|
var SvgBtnCross24 = function SvgBtnCross24(props, ref) {
|
|
70
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
70
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$13({
|
|
71
71
|
xmlns: "http://www.w3.org/2000/svg",
|
|
72
72
|
width: 24,
|
|
73
73
|
height: 24,
|
|
74
74
|
viewBox: "0 0 24 24",
|
|
75
75
|
ref: ref
|
|
76
|
-
}, props), _path
|
|
76
|
+
}, props), _path$10 || (_path$10 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
77
77
|
fillRule: "evenodd",
|
|
78
78
|
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"
|
|
79
79
|
})));
|
|
80
80
|
};
|
|
81
|
-
var ForwardRef$
|
|
81
|
+
var ForwardRef$13 = /*#__PURE__*/React.forwardRef(SvgBtnCross24);
|
|
82
82
|
|
|
83
|
-
var _path
|
|
84
|
-
function _extends$
|
|
83
|
+
var _path$$;
|
|
84
|
+
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); }
|
|
85
85
|
var SvgFoldingArrow12 = function SvgFoldingArrow12(props, ref) {
|
|
86
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
86
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$12({
|
|
87
87
|
xmlns: "http://www.w3.org/2000/svg",
|
|
88
88
|
width: 12,
|
|
89
89
|
height: 12,
|
|
90
90
|
viewBox: "0 0 12 12",
|
|
91
91
|
ref: ref
|
|
92
|
-
}, props), _path
|
|
92
|
+
}, props), _path$$ || (_path$$ = /*#__PURE__*/React__namespace.createElement("path", {
|
|
93
93
|
fillRule: "evenodd",
|
|
94
94
|
d: "M8.295 4.295 6 6.585l-2.295-2.29L3 5l3 3 3-3z"
|
|
95
95
|
})));
|
|
96
96
|
};
|
|
97
|
-
var ForwardRef$
|
|
97
|
+
var ForwardRef$12 = /*#__PURE__*/React.forwardRef(SvgFoldingArrow12);
|
|
98
98
|
|
|
99
|
-
var _path$
|
|
100
|
-
function _extends$
|
|
99
|
+
var _path$_;
|
|
100
|
+
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); }
|
|
101
101
|
var SvgFoldingArrow18 = function SvgFoldingArrow18(props, ref) {
|
|
102
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
102
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$11({
|
|
103
103
|
xmlns: "http://www.w3.org/2000/svg",
|
|
104
104
|
width: 18,
|
|
105
105
|
height: 18,
|
|
106
106
|
viewBox: "0 0 18 18",
|
|
107
107
|
ref: ref
|
|
108
|
-
}, props), _path$
|
|
108
|
+
}, props), _path$_ || (_path$_ = /*#__PURE__*/React__namespace.createElement("path", {
|
|
109
109
|
fillRule: "evenodd",
|
|
110
110
|
d: "M12.443 6.442 9 9.877 5.558 6.442 4.5 7.5 9 12l4.5-4.5z"
|
|
111
111
|
})));
|
|
112
112
|
};
|
|
113
|
-
var ForwardRef$
|
|
113
|
+
var ForwardRef$11 = /*#__PURE__*/React.forwardRef(SvgFoldingArrow18);
|
|
114
114
|
|
|
115
|
-
var _path$
|
|
116
|
-
function _extends
|
|
115
|
+
var _path$Z;
|
|
116
|
+
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); }
|
|
117
117
|
var SvgFoldingArrow24 = function SvgFoldingArrow24(props, ref) {
|
|
118
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends
|
|
118
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$10({
|
|
119
119
|
xmlns: "http://www.w3.org/2000/svg",
|
|
120
120
|
width: 24,
|
|
121
121
|
height: 24,
|
|
122
122
|
viewBox: "0 0 24 24",
|
|
123
123
|
ref: ref
|
|
124
|
-
}, props), _path$
|
|
124
|
+
}, props), _path$Z || (_path$Z = /*#__PURE__*/React__namespace.createElement("path", {
|
|
125
125
|
fillRule: "evenodd",
|
|
126
126
|
d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
|
|
127
127
|
})));
|
|
128
128
|
};
|
|
129
|
-
var ForwardRef
|
|
129
|
+
var ForwardRef$10 = /*#__PURE__*/React.forwardRef(SvgFoldingArrow24);
|
|
130
130
|
|
|
131
|
-
var _path$
|
|
132
|
-
function _extends
|
|
131
|
+
var _path$Y;
|
|
132
|
+
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); }
|
|
133
133
|
var SvgAccept12 = function SvgAccept12(props, ref) {
|
|
134
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends
|
|
134
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$$({
|
|
135
135
|
xmlns: "http://www.w3.org/2000/svg",
|
|
136
136
|
width: 12,
|
|
137
137
|
height: 12,
|
|
138
138
|
viewBox: "0 0 12 12",
|
|
139
139
|
ref: ref
|
|
140
|
-
}, props), _path$
|
|
140
|
+
}, props), _path$Y || (_path$Y = /*#__PURE__*/React__namespace.createElement("path", {
|
|
141
141
|
fillRule: "evenodd",
|
|
142
142
|
d: "M4.846 6.8 9.462 2 11 3.6 4.846 10l-.77-.8L1 6l1.538-1.6 2.308 2.4z"
|
|
143
143
|
})));
|
|
144
144
|
};
|
|
145
|
-
var ForwardRef
|
|
145
|
+
var ForwardRef$$ = /*#__PURE__*/React.forwardRef(SvgAccept12);
|
|
146
146
|
|
|
147
|
-
var _path$
|
|
148
|
-
function _extends$
|
|
147
|
+
var _path$X;
|
|
148
|
+
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); }
|
|
149
149
|
var SvgAccept18 = function SvgAccept18(props, ref) {
|
|
150
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
150
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$_({
|
|
151
151
|
xmlns: "http://www.w3.org/2000/svg",
|
|
152
152
|
width: 18,
|
|
153
153
|
height: 18,
|
|
154
154
|
viewBox: "0 0 18 18",
|
|
155
155
|
ref: ref
|
|
156
|
-
}, props), _path$
|
|
156
|
+
}, props), _path$X || (_path$X = /*#__PURE__*/React__namespace.createElement("path", {
|
|
157
157
|
fillRule: "evenodd",
|
|
158
158
|
d: "M7.136 11.91 4.034 8.776 3 9.821 7.136 14 16 5.045 14.966 4z"
|
|
159
159
|
})));
|
|
160
160
|
};
|
|
161
|
-
var ForwardRef$
|
|
161
|
+
var ForwardRef$_ = /*#__PURE__*/React.forwardRef(SvgAccept18);
|
|
162
162
|
|
|
163
|
-
var _path$
|
|
164
|
-
function _extends$
|
|
163
|
+
var _path$W;
|
|
164
|
+
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); }
|
|
165
165
|
var SvgAccept24 = function SvgAccept24(props, ref) {
|
|
166
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
166
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$Z({
|
|
167
167
|
xmlns: "http://www.w3.org/2000/svg",
|
|
168
168
|
width: 24,
|
|
169
169
|
height: 24,
|
|
170
170
|
viewBox: "0 0 24 24",
|
|
171
171
|
ref: ref
|
|
172
|
-
}, props), _path$
|
|
172
|
+
}, props), _path$W || (_path$W = /*#__PURE__*/React__namespace.createElement("path", {
|
|
173
173
|
fillRule: "evenodd",
|
|
174
174
|
d: "m9.727 16.075-4.295-4.388L4 13.149 9.727 19 22 6.463 20.568 5z"
|
|
175
175
|
})));
|
|
176
176
|
};
|
|
177
|
-
var ForwardRef$
|
|
177
|
+
var ForwardRef$Z = /*#__PURE__*/React.forwardRef(SvgAccept24);
|
|
178
178
|
|
|
179
|
-
var _path$
|
|
180
|
-
function _extends$
|
|
179
|
+
var _path$V;
|
|
180
|
+
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); }
|
|
181
181
|
var SvgSearch12 = function SvgSearch12(props, ref) {
|
|
182
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
182
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$Y({
|
|
183
183
|
xmlns: "http://www.w3.org/2000/svg",
|
|
184
184
|
width: 12,
|
|
185
185
|
height: 12,
|
|
186
186
|
viewBox: "0 0 12 12",
|
|
187
187
|
ref: ref
|
|
188
|
-
}, props), _path$
|
|
188
|
+
}, props), _path$V || (_path$V = /*#__PURE__*/React__namespace.createElement("path", {
|
|
189
189
|
fillRule: "evenodd",
|
|
190
190
|
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"
|
|
191
191
|
})));
|
|
192
192
|
};
|
|
193
|
-
var ForwardRef$
|
|
193
|
+
var ForwardRef$Y = /*#__PURE__*/React.forwardRef(SvgSearch12);
|
|
194
194
|
|
|
195
|
-
var _path$
|
|
196
|
-
function _extends$
|
|
195
|
+
var _path$U;
|
|
196
|
+
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); }
|
|
197
197
|
var SvgSearch18 = function SvgSearch18(props, ref) {
|
|
198
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
198
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$X({
|
|
199
199
|
xmlns: "http://www.w3.org/2000/svg",
|
|
200
200
|
width: 18,
|
|
201
201
|
height: 18,
|
|
202
202
|
viewBox: "0 0 18 18",
|
|
203
203
|
ref: ref
|
|
204
|
-
}, props), _path$
|
|
204
|
+
}, props), _path$U || (_path$U = /*#__PURE__*/React__namespace.createElement("path", {
|
|
205
205
|
fillRule: "evenodd",
|
|
206
206
|
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"
|
|
207
207
|
})));
|
|
208
208
|
};
|
|
209
|
-
var ForwardRef$
|
|
209
|
+
var ForwardRef$X = /*#__PURE__*/React.forwardRef(SvgSearch18);
|
|
210
210
|
|
|
211
|
-
var _path$
|
|
212
|
-
function _extends$
|
|
211
|
+
var _path$T;
|
|
212
|
+
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); }
|
|
213
213
|
var SvgSearch24 = function SvgSearch24(props, ref) {
|
|
214
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
214
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$W({
|
|
215
215
|
xmlns: "http://www.w3.org/2000/svg",
|
|
216
216
|
width: 24,
|
|
217
217
|
height: 24,
|
|
218
218
|
viewBox: "0 0 24 24",
|
|
219
219
|
ref: ref
|
|
220
|
-
}, props), _path$
|
|
220
|
+
}, props), _path$T || (_path$T = /*#__PURE__*/React__namespace.createElement("path", {
|
|
221
221
|
fillRule: "evenodd",
|
|
222
222
|
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"
|
|
223
223
|
})));
|
|
224
224
|
};
|
|
225
|
-
var ForwardRef$
|
|
225
|
+
var ForwardRef$W = /*#__PURE__*/React.forwardRef(SvgSearch24);
|
|
226
226
|
|
|
227
|
-
var _path$
|
|
228
|
-
function _extends$
|
|
227
|
+
var _path$S;
|
|
228
|
+
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); }
|
|
229
229
|
var SvgCalendar12 = function SvgCalendar12(props, ref) {
|
|
230
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
230
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$V({
|
|
231
231
|
xmlns: "http://www.w3.org/2000/svg",
|
|
232
232
|
width: 12,
|
|
233
233
|
height: 12,
|
|
234
234
|
viewBox: "0 0 12 12",
|
|
235
235
|
ref: ref
|
|
236
|
-
}, props), _path$
|
|
236
|
+
}, props), _path$S || (_path$S = /*#__PURE__*/React__namespace.createElement("path", {
|
|
237
237
|
fillRule: "evenodd",
|
|
238
238
|
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"
|
|
239
239
|
})));
|
|
240
240
|
};
|
|
241
|
-
var ForwardRef$
|
|
241
|
+
var ForwardRef$V = /*#__PURE__*/React.forwardRef(SvgCalendar12);
|
|
242
242
|
|
|
243
|
-
var _path$
|
|
244
|
-
function _extends$
|
|
243
|
+
var _path$R;
|
|
244
|
+
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); }
|
|
245
245
|
var SvgCalendar18 = function SvgCalendar18(props, ref) {
|
|
246
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
246
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$U({
|
|
247
247
|
xmlns: "http://www.w3.org/2000/svg",
|
|
248
248
|
width: 18,
|
|
249
249
|
height: 18,
|
|
250
250
|
viewBox: "0 0 18 18",
|
|
251
251
|
ref: ref
|
|
252
|
-
}, props), _path$
|
|
252
|
+
}, props), _path$R || (_path$R = /*#__PURE__*/React__namespace.createElement("path", {
|
|
253
253
|
fillRule: "evenodd",
|
|
254
254
|
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"
|
|
255
255
|
})));
|
|
256
256
|
};
|
|
257
|
-
var ForwardRef$
|
|
257
|
+
var ForwardRef$U = /*#__PURE__*/React.forwardRef(SvgCalendar18);
|
|
258
258
|
|
|
259
|
-
var _path$
|
|
260
|
-
function _extends$
|
|
259
|
+
var _path$Q;
|
|
260
|
+
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); }
|
|
261
261
|
var SvgCalendar24 = function SvgCalendar24(props, ref) {
|
|
262
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
262
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$T({
|
|
263
263
|
xmlns: "http://www.w3.org/2000/svg",
|
|
264
264
|
width: 24,
|
|
265
265
|
height: 24,
|
|
266
266
|
viewBox: "0 0 24 24",
|
|
267
267
|
ref: ref
|
|
268
|
-
}, props), _path$
|
|
268
|
+
}, props), _path$Q || (_path$Q = /*#__PURE__*/React__namespace.createElement("path", {
|
|
269
269
|
fillRule: "evenodd",
|
|
270
270
|
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"
|
|
271
271
|
})));
|
|
272
272
|
};
|
|
273
|
-
var ForwardRef$
|
|
273
|
+
var ForwardRef$T = /*#__PURE__*/React.forwardRef(SvgCalendar24);
|
|
274
274
|
|
|
275
|
-
var _path$
|
|
276
|
-
function _extends$
|
|
275
|
+
var _path$P;
|
|
276
|
+
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); }
|
|
277
277
|
var SvgInfo12 = function SvgInfo12(props, ref) {
|
|
278
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
278
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$S({
|
|
279
279
|
width: 12,
|
|
280
280
|
height: 12,
|
|
281
281
|
viewBox: "0 0 12 12",
|
|
282
282
|
xmlns: "http://www.w3.org/2000/svg",
|
|
283
283
|
ref: ref
|
|
284
|
-
}, props), _path$
|
|
284
|
+
}, props), _path$P || (_path$P = /*#__PURE__*/React__namespace.createElement("path", {
|
|
285
285
|
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",
|
|
286
286
|
fillRule: "evenodd"
|
|
287
287
|
})));
|
|
288
288
|
};
|
|
289
|
-
var ForwardRef$
|
|
289
|
+
var ForwardRef$S = /*#__PURE__*/React.forwardRef(SvgInfo12);
|
|
290
290
|
|
|
291
|
-
var _path$
|
|
292
|
-
function _extends$
|
|
291
|
+
var _path$O;
|
|
292
|
+
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); }
|
|
293
293
|
var SvgInfo18 = function SvgInfo18(props, ref) {
|
|
294
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
294
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$R({
|
|
295
295
|
xmlns: "http://www.w3.org/2000/svg",
|
|
296
296
|
width: 18,
|
|
297
297
|
height: 18,
|
|
298
298
|
viewBox: "0 0 18 18",
|
|
299
299
|
ref: ref
|
|
300
|
-
}, props), _path$
|
|
300
|
+
}, props), _path$O || (_path$O = /*#__PURE__*/React__namespace.createElement("path", {
|
|
301
301
|
fillRule: "evenodd",
|
|
302
302
|
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"
|
|
303
303
|
})));
|
|
304
304
|
};
|
|
305
|
-
var ForwardRef$
|
|
305
|
+
var ForwardRef$R = /*#__PURE__*/React.forwardRef(SvgInfo18);
|
|
306
306
|
|
|
307
|
-
var _path$
|
|
308
|
-
function _extends$
|
|
307
|
+
var _path$N;
|
|
308
|
+
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); }
|
|
309
309
|
var SvgInfo24 = function SvgInfo24(props, ref) {
|
|
310
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
310
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$Q({
|
|
311
311
|
xmlns: "http://www.w3.org/2000/svg",
|
|
312
312
|
width: 24,
|
|
313
313
|
height: 24,
|
|
314
314
|
viewBox: "0 0 24 24",
|
|
315
315
|
ref: ref
|
|
316
|
-
}, props), _path$
|
|
316
|
+
}, props), _path$N || (_path$N = /*#__PURE__*/React__namespace.createElement("path", {
|
|
317
317
|
fillRule: "evenodd",
|
|
318
318
|
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"
|
|
319
319
|
})));
|
|
320
320
|
};
|
|
321
|
-
var ForwardRef$
|
|
321
|
+
var ForwardRef$Q = /*#__PURE__*/React.forwardRef(SvgInfo24);
|
|
322
322
|
|
|
323
|
-
var _path$
|
|
324
|
-
function _extends$
|
|
323
|
+
var _path$M;
|
|
324
|
+
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); }
|
|
325
325
|
var SvgHelpFill10 = function SvgHelpFill10(props, ref) {
|
|
326
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
326
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$P({
|
|
327
327
|
width: 10,
|
|
328
328
|
height: 10,
|
|
329
329
|
viewBox: "0 0 10 10",
|
|
330
330
|
xmlns: "http://www.w3.org/2000/svg",
|
|
331
331
|
ref: ref
|
|
332
|
-
}, props), _path$
|
|
332
|
+
}, props), _path$M || (_path$M = /*#__PURE__*/React__namespace.createElement("path", {
|
|
333
333
|
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"
|
|
334
334
|
})));
|
|
335
335
|
};
|
|
336
|
-
var ForwardRef$
|
|
336
|
+
var ForwardRef$P = /*#__PURE__*/React.forwardRef(SvgHelpFill10);
|
|
337
337
|
|
|
338
|
-
var _path$
|
|
339
|
-
function _extends$
|
|
338
|
+
var _path$L;
|
|
339
|
+
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); }
|
|
340
340
|
var SvgHelpFill16 = function SvgHelpFill16(props, ref) {
|
|
341
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
341
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$O({
|
|
342
342
|
width: 16,
|
|
343
343
|
height: 16,
|
|
344
344
|
viewBox: "0 0 16 16",
|
|
345
345
|
xmlns: "http://www.w3.org/2000/svg",
|
|
346
346
|
ref: ref
|
|
347
|
-
}, props), _path$
|
|
347
|
+
}, props), _path$L || (_path$L = /*#__PURE__*/React__namespace.createElement("path", {
|
|
348
348
|
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"
|
|
349
349
|
})));
|
|
350
350
|
};
|
|
351
|
-
var ForwardRef$
|
|
351
|
+
var ForwardRef$O = /*#__PURE__*/React.forwardRef(SvgHelpFill16);
|
|
352
352
|
|
|
353
353
|
const systemIcons = {
|
|
354
354
|
18: {
|
|
355
|
+
clear: ForwardRef$15,
|
|
356
|
+
foldingArrow: ForwardRef$12,
|
|
357
|
+
accept: ForwardRef$$,
|
|
358
|
+
search: ForwardRef$Y,
|
|
359
|
+
calendar: ForwardRef$V,
|
|
360
|
+
info: ForwardRef$S,
|
|
361
|
+
help: ForwardRef$P,
|
|
362
|
+
},
|
|
363
|
+
24: {
|
|
364
|
+
clear: ForwardRef$15,
|
|
365
|
+
foldingArrow: ForwardRef$12,
|
|
366
|
+
accept: ForwardRef$$,
|
|
367
|
+
search: ForwardRef$Y,
|
|
368
|
+
calendar: ForwardRef$V,
|
|
369
|
+
info: ForwardRef$S,
|
|
370
|
+
help: ForwardRef$P,
|
|
371
|
+
},
|
|
372
|
+
30: {
|
|
355
373
|
clear: ForwardRef$14,
|
|
356
374
|
foldingArrow: ForwardRef$11,
|
|
357
375
|
accept: ForwardRef$_,
|
|
358
376
|
search: ForwardRef$X,
|
|
359
377
|
calendar: ForwardRef$U,
|
|
360
378
|
info: ForwardRef$R,
|
|
361
|
-
help: ForwardRef$
|
|
379
|
+
help: ForwardRef$P,
|
|
362
380
|
},
|
|
363
|
-
|
|
381
|
+
36: {
|
|
364
382
|
clear: ForwardRef$14,
|
|
365
383
|
foldingArrow: ForwardRef$11,
|
|
366
384
|
accept: ForwardRef$_,
|
|
@@ -369,59 +387,41 @@ const systemIcons = {
|
|
|
369
387
|
info: ForwardRef$R,
|
|
370
388
|
help: ForwardRef$O,
|
|
371
389
|
},
|
|
372
|
-
|
|
373
|
-
clear: ForwardRef$
|
|
374
|
-
foldingArrow: ForwardRef$
|
|
375
|
-
accept: ForwardRef$
|
|
376
|
-
search: ForwardRef$
|
|
377
|
-
calendar: ForwardRef$
|
|
378
|
-
info: ForwardRef$
|
|
390
|
+
42: {
|
|
391
|
+
clear: ForwardRef$14,
|
|
392
|
+
foldingArrow: ForwardRef$11,
|
|
393
|
+
accept: ForwardRef$_,
|
|
394
|
+
search: ForwardRef$X,
|
|
395
|
+
calendar: ForwardRef$U,
|
|
396
|
+
info: ForwardRef$R,
|
|
379
397
|
help: ForwardRef$O,
|
|
380
398
|
},
|
|
381
|
-
|
|
399
|
+
48: {
|
|
382
400
|
clear: ForwardRef$13,
|
|
383
401
|
foldingArrow: ForwardRef$10,
|
|
384
402
|
accept: ForwardRef$Z,
|
|
385
403
|
search: ForwardRef$W,
|
|
386
404
|
calendar: ForwardRef$T,
|
|
387
405
|
info: ForwardRef$Q,
|
|
388
|
-
help: ForwardRef$
|
|
406
|
+
help: ForwardRef$O,
|
|
389
407
|
},
|
|
390
|
-
|
|
408
|
+
60: {
|
|
391
409
|
clear: ForwardRef$13,
|
|
392
410
|
foldingArrow: ForwardRef$10,
|
|
393
411
|
accept: ForwardRef$Z,
|
|
394
412
|
search: ForwardRef$W,
|
|
395
413
|
calendar: ForwardRef$T,
|
|
396
414
|
info: ForwardRef$Q,
|
|
397
|
-
help: ForwardRef$
|
|
398
|
-
},
|
|
399
|
-
48: {
|
|
400
|
-
clear: ForwardRef$12,
|
|
401
|
-
foldingArrow: ForwardRef$$,
|
|
402
|
-
accept: ForwardRef$Y,
|
|
403
|
-
search: ForwardRef$V,
|
|
404
|
-
calendar: ForwardRef$S,
|
|
405
|
-
info: ForwardRef$P,
|
|
406
|
-
help: ForwardRef$N,
|
|
407
|
-
},
|
|
408
|
-
60: {
|
|
409
|
-
clear: ForwardRef$12,
|
|
410
|
-
foldingArrow: ForwardRef$$,
|
|
411
|
-
accept: ForwardRef$Y,
|
|
412
|
-
search: ForwardRef$V,
|
|
413
|
-
calendar: ForwardRef$S,
|
|
414
|
-
info: ForwardRef$P,
|
|
415
|
-
help: ForwardRef$N,
|
|
415
|
+
help: ForwardRef$O,
|
|
416
416
|
},
|
|
417
417
|
none: {
|
|
418
|
-
clear: ForwardRef$
|
|
419
|
-
foldingArrow: ForwardRef$
|
|
420
|
-
accept: ForwardRef$
|
|
421
|
-
search: ForwardRef$
|
|
422
|
-
calendar: ForwardRef$
|
|
423
|
-
info: ForwardRef$
|
|
424
|
-
help: ForwardRef$
|
|
418
|
+
clear: ForwardRef$14,
|
|
419
|
+
foldingArrow: ForwardRef$11,
|
|
420
|
+
accept: ForwardRef$_,
|
|
421
|
+
search: ForwardRef$X,
|
|
422
|
+
calendar: ForwardRef$U,
|
|
423
|
+
info: ForwardRef$R,
|
|
424
|
+
help: ForwardRef$O,
|
|
425
425
|
},
|
|
426
426
|
};
|
|
427
427
|
|
|
@@ -474,11 +474,13 @@ function getIconClass(props) {
|
|
|
474
474
|
}
|
|
475
475
|
|
|
476
476
|
const defaultSize$9 = '36';
|
|
477
|
+
const allLinkButtonColors = ['primary', 'secondary', 'contrast'];
|
|
477
478
|
function applyLinkButtonMods(mods) {
|
|
478
479
|
return [
|
|
479
480
|
css$12.root,
|
|
480
481
|
css$12['size-' + (mods.size || defaultSize$9)],
|
|
481
482
|
...getIconClass(mods),
|
|
483
|
+
`link-button-${mods.color || 'primary'}`,
|
|
482
484
|
];
|
|
483
485
|
}
|
|
484
486
|
const LinkButton = uuiCore.withMods(uuiComponents.Button, applyLinkButtonMods, (props) => ({
|
|
@@ -490,7 +492,11 @@ var css$11 = {"root":"TabButton-module_root__8Z4AH","uui-notification":"TabButto
|
|
|
490
492
|
|
|
491
493
|
function applyTabButtonMods(mods) {
|
|
492
494
|
return [
|
|
493
|
-
css$11.root,
|
|
495
|
+
css$11.root,
|
|
496
|
+
'informer-default',
|
|
497
|
+
css$11['size-' + (mods.size || '48')],
|
|
498
|
+
mods.withNotify && css$11.uuiNotification,
|
|
499
|
+
...getIconClass(mods),
|
|
494
500
|
];
|
|
495
501
|
}
|
|
496
502
|
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) })));
|
|
@@ -534,69 +540,69 @@ exports.EditMode = void 0;
|
|
|
534
540
|
EditMode["INLINE"] = "inline";
|
|
535
541
|
})(exports.EditMode || (exports.EditMode = {}));
|
|
536
542
|
|
|
537
|
-
var _path$
|
|
538
|
-
function _extends$
|
|
543
|
+
var _path$K;
|
|
544
|
+
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); }
|
|
539
545
|
var SvgCheck12 = function SvgCheck12(props, ref) {
|
|
540
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
546
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$N({
|
|
541
547
|
width: 12,
|
|
542
548
|
height: 12,
|
|
543
549
|
viewBox: "0 0 12 12",
|
|
544
550
|
xmlns: "http://www.w3.org/2000/svg",
|
|
545
551
|
ref: ref
|
|
546
|
-
}, props), _path$
|
|
552
|
+
}, props), _path$K || (_path$K = /*#__PURE__*/React__namespace.createElement("path", {
|
|
547
553
|
fillRule: "evenodd",
|
|
548
554
|
d: "M9.491 3.449 10.51 4.55 5.663 9.024 2.487 6.047l1.026-1.094L5.67 6.975z"
|
|
549
555
|
})));
|
|
550
556
|
};
|
|
551
|
-
var ForwardRef$
|
|
557
|
+
var ForwardRef$N = /*#__PURE__*/React.forwardRef(SvgCheck12);
|
|
552
558
|
|
|
553
|
-
var _path$
|
|
554
|
-
function _extends$
|
|
559
|
+
var _path$J;
|
|
560
|
+
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); }
|
|
555
561
|
var SvgCheck18 = function SvgCheck18(props, ref) {
|
|
556
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
562
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$M({
|
|
557
563
|
width: 18,
|
|
558
564
|
height: 18,
|
|
559
565
|
viewBox: "0 0 18 18",
|
|
560
566
|
xmlns: "http://www.w3.org/2000/svg",
|
|
561
567
|
ref: ref
|
|
562
|
-
}, props), _path$
|
|
568
|
+
}, props), _path$J || (_path$J = /*#__PURE__*/React__namespace.createElement("path", {
|
|
563
569
|
fillRule: "evenodd",
|
|
564
570
|
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"
|
|
565
571
|
})));
|
|
566
572
|
};
|
|
567
|
-
var ForwardRef$
|
|
573
|
+
var ForwardRef$M = /*#__PURE__*/React.forwardRef(SvgCheck18);
|
|
568
574
|
|
|
569
|
-
var _path$
|
|
570
|
-
function _extends$
|
|
575
|
+
var _path$I;
|
|
576
|
+
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); }
|
|
571
577
|
var SvgPartlySelect12 = function SvgPartlySelect12(props, ref) {
|
|
572
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
578
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$L({
|
|
573
579
|
width: 12,
|
|
574
580
|
height: 12,
|
|
575
581
|
viewBox: "0 0 12 12",
|
|
576
582
|
xmlns: "http://www.w3.org/2000/svg",
|
|
577
583
|
ref: ref
|
|
578
|
-
}, props), _path$
|
|
584
|
+
}, props), _path$I || (_path$I = /*#__PURE__*/React__namespace.createElement("path", {
|
|
579
585
|
fillRule: "evenodd",
|
|
580
586
|
d: "M9 5v2H3V5z"
|
|
581
587
|
})));
|
|
582
588
|
};
|
|
583
|
-
var ForwardRef$
|
|
589
|
+
var ForwardRef$L = /*#__PURE__*/React.forwardRef(SvgPartlySelect12);
|
|
584
590
|
|
|
585
|
-
var _path$
|
|
586
|
-
function _extends$
|
|
591
|
+
var _path$H;
|
|
592
|
+
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); }
|
|
587
593
|
var SvgPartlySelect18 = function SvgPartlySelect18(props, ref) {
|
|
588
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
594
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$K({
|
|
589
595
|
width: 18,
|
|
590
596
|
height: 18,
|
|
591
597
|
viewBox: "0 0 18 18",
|
|
592
598
|
xmlns: "http://www.w3.org/2000/svg",
|
|
593
599
|
ref: ref
|
|
594
|
-
}, props), _path$
|
|
600
|
+
}, props), _path$H || (_path$H = /*#__PURE__*/React__namespace.createElement("path", {
|
|
595
601
|
fillRule: "evenodd",
|
|
596
602
|
d: "M14 8v2H4V8z"
|
|
597
603
|
})));
|
|
598
604
|
};
|
|
599
|
-
var ForwardRef$
|
|
605
|
+
var ForwardRef$K = /*#__PURE__*/React.forwardRef(SvgPartlySelect18);
|
|
600
606
|
|
|
601
607
|
var css$$ = {"root":"Checkbox-module_root__EazHx","size-18":"Checkbox-module_size-18__IUFwO","size-12":"Checkbox-module_size-12__xKb3K","mode-cell":"Checkbox-module_mode-cell__O3Zfg","size18":"Checkbox-module_size-18__IUFwO","size12":"Checkbox-module_size-12__xKb3K","modeCell":"Checkbox-module_mode-cell__O3Zfg"};
|
|
602
608
|
|
|
@@ -606,17 +612,17 @@ function applyCheckboxMods(mods) {
|
|
|
606
612
|
];
|
|
607
613
|
}
|
|
608
614
|
const applyUUICheckboxProps = (props) => ({
|
|
609
|
-
icon: props.size === '12' ? ForwardRef$
|
|
610
|
-
indeterminateIcon: props.size === '12' ? ForwardRef$
|
|
615
|
+
icon: props.size === '12' ? ForwardRef$N : ForwardRef$M,
|
|
616
|
+
indeterminateIcon: props.size === '12' ? ForwardRef$L : ForwardRef$K,
|
|
611
617
|
});
|
|
612
618
|
const Checkbox = uuiCore.withMods(uuiComponents.Checkbox, applyCheckboxMods, applyUUICheckboxProps);
|
|
613
619
|
|
|
614
620
|
var css$_ = {"root":"RadioInput-module_root__bRFVI","size-18":"RadioInput-module_size-18__UYM5r","size-12":"RadioInput-module_size-12__oYoyV","size18":"RadioInput-module_size-18__UYM5r","size12":"RadioInput-module_size-12__oYoyV"};
|
|
615
621
|
|
|
616
622
|
var _circle;
|
|
617
|
-
function _extends$
|
|
623
|
+
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); }
|
|
618
624
|
var SvgRadioPoint = function SvgRadioPoint(props, ref) {
|
|
619
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
625
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$J({
|
|
620
626
|
width: 18,
|
|
621
627
|
height: 18,
|
|
622
628
|
viewBox: "0 0 18 18",
|
|
@@ -628,12 +634,12 @@ var SvgRadioPoint = function SvgRadioPoint(props, ref) {
|
|
|
628
634
|
r: 6
|
|
629
635
|
})));
|
|
630
636
|
};
|
|
631
|
-
var ForwardRef$
|
|
637
|
+
var ForwardRef$J = /*#__PURE__*/React.forwardRef(SvgRadioPoint);
|
|
632
638
|
|
|
633
639
|
function applyRadioInputMods(mods) {
|
|
634
640
|
return [css$_.root, css$_['size-' + (mods.size || '18')]];
|
|
635
641
|
}
|
|
636
|
-
const RadioInput = uuiCore.withMods(uuiComponents.RadioInput, applyRadioInputMods, () => ({ icon: ForwardRef$
|
|
642
|
+
const RadioInput = uuiCore.withMods(uuiComponents.RadioInput, applyRadioInputMods, () => ({ icon: ForwardRef$J }));
|
|
637
643
|
|
|
638
644
|
var css$Z = {"root":"Switch-module_root__-uM9q","size-12":"Switch-module_size-12__3txg-","size-18":"Switch-module_size-18__RiCkg","size-24":"Switch-module_size-24__XRE9d","size12":"Switch-module_size-12__3txg-","size18":"Switch-module_size-18__RiCkg","size24":"Switch-module_size-24__XRE9d"};
|
|
639
645
|
|
|
@@ -658,6 +664,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
658
664
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
659
665
|
PERFORMANCE OF THIS SOFTWARE.
|
|
660
666
|
***************************************************************************** */
|
|
667
|
+
/* global Reflect, Promise */
|
|
668
|
+
|
|
661
669
|
|
|
662
670
|
function __rest(s, e) {
|
|
663
671
|
var t = {};
|
|
@@ -741,85 +749,85 @@ const Panel = uuiCore.withMods(uuiComponents.VPanel, (props) => [
|
|
|
741
749
|
'uui-panel', css$V.root, props.shadow && css$V.shadow, props.margin && css$V['margin-' + props.margin],
|
|
742
750
|
]);
|
|
743
751
|
|
|
744
|
-
var _path$
|
|
745
|
-
function _extends$
|
|
752
|
+
var _path$G;
|
|
753
|
+
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); }
|
|
746
754
|
var SvgNotificationCheckCircleFill24 = function SvgNotificationCheckCircleFill24(props, ref) {
|
|
747
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
755
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$I({
|
|
748
756
|
xmlns: "http://www.w3.org/2000/svg",
|
|
749
757
|
width: 24,
|
|
750
758
|
height: 24,
|
|
751
759
|
viewBox: "0 0 24 24",
|
|
752
760
|
ref: ref
|
|
753
|
-
}, props), _path$
|
|
761
|
+
}, props), _path$G || (_path$G = /*#__PURE__*/React__namespace.createElement("path", {
|
|
754
762
|
fillRule: "evenodd",
|
|
755
763
|
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"
|
|
756
764
|
})));
|
|
757
765
|
};
|
|
758
|
-
var ForwardRef$
|
|
766
|
+
var ForwardRef$I = /*#__PURE__*/React.forwardRef(SvgNotificationCheckCircleFill24);
|
|
759
767
|
|
|
760
|
-
var _path$
|
|
761
|
-
function _extends$
|
|
768
|
+
var _path$F;
|
|
769
|
+
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); }
|
|
762
770
|
var SvgNotificationWarningFill24 = function SvgNotificationWarningFill24(props, ref) {
|
|
763
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
771
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$H({
|
|
764
772
|
xmlns: "http://www.w3.org/2000/svg",
|
|
765
773
|
width: 24,
|
|
766
774
|
height: 24,
|
|
767
775
|
viewBox: "0 0 24 24",
|
|
768
776
|
ref: ref
|
|
769
|
-
}, props), _path$
|
|
777
|
+
}, props), _path$F || (_path$F = /*#__PURE__*/React__namespace.createElement("path", {
|
|
770
778
|
fillRule: "evenodd",
|
|
771
779
|
d: "M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"
|
|
772
780
|
})));
|
|
773
781
|
};
|
|
774
|
-
var ForwardRef$
|
|
782
|
+
var ForwardRef$H = /*#__PURE__*/React.forwardRef(SvgNotificationWarningFill24);
|
|
775
783
|
|
|
776
|
-
var _path$
|
|
777
|
-
function _extends$
|
|
784
|
+
var _path$E;
|
|
785
|
+
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); }
|
|
778
786
|
var SvgNotificationErrorFill24 = function SvgNotificationErrorFill24(props, ref) {
|
|
779
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
787
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$G({
|
|
780
788
|
xmlns: "http://www.w3.org/2000/svg",
|
|
781
789
|
width: 24,
|
|
782
790
|
height: 24,
|
|
783
791
|
viewBox: "0 0 24 24",
|
|
784
792
|
ref: ref
|
|
785
|
-
}, props), _path$
|
|
793
|
+
}, props), _path$E || (_path$E = /*#__PURE__*/React__namespace.createElement("path", {
|
|
786
794
|
fillRule: "evenodd",
|
|
787
795
|
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"
|
|
788
796
|
})));
|
|
789
797
|
};
|
|
790
|
-
var ForwardRef$
|
|
798
|
+
var ForwardRef$G = /*#__PURE__*/React.forwardRef(SvgNotificationErrorFill24);
|
|
791
799
|
|
|
792
|
-
var _path$
|
|
793
|
-
function _extends$
|
|
800
|
+
var _path$D;
|
|
801
|
+
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); }
|
|
794
802
|
var SvgNotificationHelpFill24 = function SvgNotificationHelpFill24(props, ref) {
|
|
795
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
803
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$F({
|
|
796
804
|
xmlns: "http://www.w3.org/2000/svg",
|
|
797
805
|
width: 24,
|
|
798
806
|
height: 24,
|
|
799
807
|
viewBox: "0 0 24 24",
|
|
800
808
|
ref: ref
|
|
801
|
-
}, props), _path$
|
|
809
|
+
}, props), _path$D || (_path$D = /*#__PURE__*/React__namespace.createElement("path", {
|
|
802
810
|
fillRule: "evenodd",
|
|
803
811
|
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"
|
|
804
812
|
})));
|
|
805
813
|
};
|
|
806
|
-
var ForwardRef$
|
|
814
|
+
var ForwardRef$F = /*#__PURE__*/React.forwardRef(SvgNotificationHelpFill24);
|
|
807
815
|
|
|
808
|
-
var _path$
|
|
809
|
-
function _extends$
|
|
816
|
+
var _path$C;
|
|
817
|
+
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); }
|
|
810
818
|
var SvgNavigationClose24$1 = function SvgNavigationClose24(props, ref) {
|
|
811
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
819
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$E({
|
|
812
820
|
xmlns: "http://www.w3.org/2000/svg",
|
|
813
821
|
width: 24,
|
|
814
822
|
height: 24,
|
|
815
823
|
viewBox: "0 0 24 24",
|
|
816
824
|
ref: ref
|
|
817
|
-
}, props), _path$
|
|
825
|
+
}, props), _path$C || (_path$C = /*#__PURE__*/React__namespace.createElement("path", {
|
|
818
826
|
fillRule: "evenodd",
|
|
819
827
|
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"
|
|
820
828
|
})));
|
|
821
829
|
};
|
|
822
|
-
var ForwardRef$
|
|
830
|
+
var ForwardRef$E = /*#__PURE__*/React.forwardRef(SvgNavigationClose24$1);
|
|
823
831
|
|
|
824
832
|
var css$U = {"root":"Alert-module_root__vWIgd","icon-wrapper":"Alert-module_icon-wrapper__eCMNq","alert-wrapper":"Alert-module_alert-wrapper__aSltE","action-wrapper":"Alert-module_action-wrapper__fzVI-","action-icon":"Alert-module_action-icon__PUBtv","action-link":"Alert-module_action-link__S0nRl","close-icon":"Alert-module_close-icon__vtbPn","main-path":"Alert-module_main-path__pW0Ya","content":"Alert-module_content__F-yZG","iconWrapper":"Alert-module_icon-wrapper__eCMNq","alertWrapper":"Alert-module_alert-wrapper__aSltE","actionWrapper":"Alert-module_action-wrapper__fzVI-","actionIcon":"Alert-module_action-icon__PUBtv","actionLink":"Alert-module_action-link__S0nRl","closeIcon":"Alert-module_close-icon__vtbPn","mainPath":"Alert-module_main-path__pW0Ya"};
|
|
825
833
|
|
|
@@ -830,11 +838,11 @@ const Alert = React__namespace.forwardRef((props, ref) => (React__namespace.crea
|
|
|
830
838
|
React__namespace.createElement("div", { className: css$U.content },
|
|
831
839
|
props.children,
|
|
832
840
|
props.actions && (React__namespace.createElement("div", { className: css$U.actionWrapper }, props.actions.map((action) => (React__namespace.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$U.actionLink, size: "30" })))))),
|
|
833
|
-
props.onClose && React__namespace.createElement(IconButton, { icon: ForwardRef$
|
|
834
|
-
const WarningAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
835
|
-
const SuccessAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
836
|
-
const HintAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
837
|
-
const ErrorAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
841
|
+
props.onClose && React__namespace.createElement(IconButton, { icon: ForwardRef$E, color: "default", onClick: props.onClose, cx: css$U.closeIcon })))));
|
|
842
|
+
const WarningAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$H, color: "warning", ref: ref }, props)));
|
|
843
|
+
const SuccessAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$I, color: "success", ref: ref }, props)));
|
|
844
|
+
const HintAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$F, color: "info", ref: ref }, props)));
|
|
845
|
+
const ErrorAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$G, color: "error", ref: ref }, props)));
|
|
838
846
|
|
|
839
847
|
class Dropdown extends React__namespace.Component {
|
|
840
848
|
render() {
|
|
@@ -1027,9 +1035,9 @@ const TextPlaceholder = (props) => {
|
|
|
1027
1035
|
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
1028
1036
|
};
|
|
1029
1037
|
|
|
1030
|
-
var style = {"typography-
|
|
1038
|
+
var style = {"typography-16":"RichTextView-module_typography-16__DrhKc","typography-14":"RichTextView-module_typography-14__1oY8c","typography-12":"RichTextView-module_typography-12__4jZjv","typography-uui":"RichTextView-module_typography-uui__neFbE","typography16":"RichTextView-module_typography-16__DrhKc","typography14":"RichTextView-module_typography-14__1oY8c","typography12":"RichTextView-module_typography-12__4jZjv","typographyUui":"RichTextView-module_typography-uui__neFbE"};
|
|
1031
1039
|
|
|
1032
|
-
const RichTextView = uuiCore.withMods(uuiComponents.RichTextView, (mods) => [style.
|
|
1040
|
+
const RichTextView = uuiCore.withMods(uuiComponents.RichTextView, (mods) => [style.typographyUui, style['typography-' + (mods.size || '14')]]);
|
|
1033
1041
|
|
|
1034
1042
|
var css$O = {"modal-blocker":"Modals-module_modal-blocker__Lwee9","animateModalBlocker":"Modals-module_animateModalBlocker__CY-CF","modal":"Modals-module_modal__JUe8A","modal-footer":"Modals-module_modal-footer__SsHtf","border-top":"Modals-module_border-top__1yL5h","modal-header":"Modals-module_modal-header__FNwre","modalBlocker":"Modals-module_modal-blocker__Lwee9","modalFooter":"Modals-module_modal-footer__SsHtf","borderTop":"Modals-module_border-top__1yL5h","modalHeader":"Modals-module_modal-header__FNwre"};
|
|
1035
1043
|
|
|
@@ -1044,7 +1052,7 @@ class ModalHeader extends React__namespace.Component {
|
|
|
1044
1052
|
this.props.children,
|
|
1045
1053
|
this.props.onClose && React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
1046
1054
|
this.props.onClose && (React__namespace.createElement(FlexCell, { shrink: 0, width: "auto" },
|
|
1047
|
-
React__namespace.createElement(IconButton, { icon: ForwardRef$
|
|
1055
|
+
React__namespace.createElement(IconButton, { icon: ForwardRef$E, onClick: this.props.onClose })))));
|
|
1048
1056
|
}
|
|
1049
1057
|
}
|
|
1050
1058
|
class ModalFooter extends React__namespace.Component {
|
|
@@ -1071,6 +1079,7 @@ const i18n = Object.assign(Object.assign({}, uuiCore.i18n), { dataPickerBody: {
|
|
|
1071
1079
|
clearSelectionButton: 'CLEAR ALL',
|
|
1072
1080
|
clearSelectionButtonSingle: 'CLEAR',
|
|
1073
1081
|
selectAllButton: 'SELECT ALL',
|
|
1082
|
+
doneButton: 'DONE',
|
|
1074
1083
|
}, notificationCard: {
|
|
1075
1084
|
closeAllNotificationsButton: 'CLOSE ALL NOTIFICATIONS',
|
|
1076
1085
|
}, form: {
|
|
@@ -1129,7 +1138,6 @@ const i18n = Object.assign(Object.assign({}, uuiCore.i18n), { dataPickerBody: {
|
|
|
1129
1138
|
},
|
|
1130
1139
|
pickerInput: {
|
|
1131
1140
|
itemsPlaceholder: 'items',
|
|
1132
|
-
emptyValueCaption: 'ALL',
|
|
1133
1141
|
},
|
|
1134
1142
|
}, presetPanel: {
|
|
1135
1143
|
addCaption: 'Add Preset',
|
|
@@ -1138,21 +1146,21 @@ const i18n = Object.assign(Object.assign({}, uuiCore.i18n), { dataPickerBody: {
|
|
|
1138
1146
|
saveButton: 'Save',
|
|
1139
1147
|
} });
|
|
1140
1148
|
|
|
1141
|
-
var _path$
|
|
1142
|
-
function _extends$
|
|
1149
|
+
var _path$B;
|
|
1150
|
+
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); }
|
|
1143
1151
|
var SvgCross = function SvgCross(props, ref) {
|
|
1144
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1152
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$D({
|
|
1145
1153
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1146
1154
|
width: 24,
|
|
1147
1155
|
height: 24,
|
|
1148
1156
|
viewBox: "0 0 24 24",
|
|
1149
1157
|
ref: ref
|
|
1150
|
-
}, props), _path$
|
|
1158
|
+
}, props), _path$B || (_path$B = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1151
1159
|
fillRule: "evenodd",
|
|
1152
1160
|
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"
|
|
1153
1161
|
})));
|
|
1154
1162
|
};
|
|
1155
|
-
var ForwardRef$
|
|
1163
|
+
var ForwardRef$D = /*#__PURE__*/React.forwardRef(SvgCross);
|
|
1156
1164
|
|
|
1157
1165
|
var css$N = {"root":"NotificationCard-module_root__jT-mn","icon-wrapper":"NotificationCard-module_icon-wrapper__89tan","action-wrapper":"NotificationCard-module_action-wrapper__6Z1Zy","action-link":"NotificationCard-module_action-link__O0HeC","close-icon":"NotificationCard-module_close-icon__DTQiT","main-path":"NotificationCard-module_main-path__npnav","content":"NotificationCard-module_content__-vDj4","clear-button":"NotificationCard-module_clear-button__BjWZo","close-wrapper":"NotificationCard-module_close-wrapper__x3PkP","iconWrapper":"NotificationCard-module_icon-wrapper__89tan","actionWrapper":"NotificationCard-module_action-wrapper__6Z1Zy","actionLink":"NotificationCard-module_action-link__O0HeC","closeIcon":"NotificationCard-module_close-icon__DTQiT","mainPath":"NotificationCard-module_main-path__npnav","clearButton":"NotificationCard-module_clear-button__BjWZo","closeWrapper":"NotificationCard-module_close-wrapper__x3PkP"};
|
|
1158
1166
|
|
|
@@ -1177,12 +1185,12 @@ const NotificationCard = React__namespace.default.forwardRef((props, ref) => {
|
|
|
1177
1185
|
props.children,
|
|
1178
1186
|
props.actions && (React__namespace.default.createElement("div", { className: css$N.actionWrapper }, props.actions.map((action) => (React__namespace.default.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$N.actionLink, size: "36", rawProps: action.rawProps })))))),
|
|
1179
1187
|
props.onClose && (React__namespace.default.createElement("div", { className: css$N.closeWrapper },
|
|
1180
|
-
React__namespace.default.createElement(IconButton, { icon: ForwardRef$
|
|
1188
|
+
React__namespace.default.createElement(IconButton, { icon: ForwardRef$D, color: "default", onClick: props.onClose, cx: css$N.closeIcon }))))));
|
|
1181
1189
|
});
|
|
1182
|
-
const WarningNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
1183
|
-
const SuccessNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
1184
|
-
const HintNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
1185
|
-
const ErrorNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
1190
|
+
const WarningNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$H, color: "warning" }, props, { ref: ref, cx: props.cx }))));
|
|
1191
|
+
const SuccessNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$I, color: "success" }, props, { ref: ref, cx: props.cx }))));
|
|
1192
|
+
const HintNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$F, color: "info" }, props, { ref: ref, cx: props.cx }))));
|
|
1193
|
+
const ErrorNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$G, color: "error" }, props, { ref: ref, cx: props.cx }))));
|
|
1186
1194
|
class ClearNotification extends React__namespace.default.Component {
|
|
1187
1195
|
render() {
|
|
1188
1196
|
return (React__namespace.default.createElement("div", { className: cx__default.default(css$N.notificationWrapper, css$N.clearButton) },
|
|
@@ -1195,7 +1203,7 @@ var css$M = {"root":"Tooltip-module_root__UVOiW"};
|
|
|
1195
1203
|
|
|
1196
1204
|
function applyTooltipMods(mods) {
|
|
1197
1205
|
return [
|
|
1198
|
-
`tooltip-${mods.color}`,
|
|
1206
|
+
`tooltip-${mods.color || 'default'}`,
|
|
1199
1207
|
css$M.root,
|
|
1200
1208
|
];
|
|
1201
1209
|
}
|
|
@@ -1302,7 +1310,7 @@ var calendarCss = {"root":"Calendar-module_root__ldDAb"};
|
|
|
1302
1310
|
function applyDatePickerBodyMods() {
|
|
1303
1311
|
return [css$E.root, calendarCss.root];
|
|
1304
1312
|
}
|
|
1305
|
-
const DatePickerBody = uuiCore.withMods(uuiComponents.DatePickerBody, applyDatePickerBodyMods, () => ({ navIconLeft: ForwardRef$
|
|
1313
|
+
const DatePickerBody = uuiCore.withMods(uuiComponents.DatePickerBody, applyDatePickerBodyMods, () => ({ navIconLeft: ForwardRef$11, navIconRight: ForwardRef$11 }));
|
|
1306
1314
|
|
|
1307
1315
|
const defaultMode$1 = exports.EditMode.FORM;
|
|
1308
1316
|
class DatePicker extends uuiComponents.BaseDatePicker {
|
|
@@ -1336,8 +1344,8 @@ function applyRangeDatePickerBodyMods() {
|
|
|
1336
1344
|
];
|
|
1337
1345
|
}
|
|
1338
1346
|
const RangeDatePickerBody = uuiCore.withMods(uuiComponents.RangeDatePickerBody, applyRangeDatePickerBodyMods, () => ({
|
|
1339
|
-
navIconLeft: ForwardRef$
|
|
1340
|
-
navIconRight: ForwardRef$
|
|
1347
|
+
navIconLeft: ForwardRef$11,
|
|
1348
|
+
navIconRight: ForwardRef$11,
|
|
1341
1349
|
}));
|
|
1342
1350
|
|
|
1343
1351
|
var css$D = {"dropdown-container":"RangeDatePicker-module_dropdown-container__EFIZT","container":"RangeDatePicker-module_container__H7FRF","button-group":"RangeDatePicker-module_button-group__Stksa","date-input":"RangeDatePicker-module_date-input__as2iX","size-24":"RangeDatePicker-module_size-24__yXj-X","size-30":"RangeDatePicker-module_size-30__4sP-J","size-36":"RangeDatePicker-module_size-36__j5YP2","size-42":"RangeDatePicker-module_size-42__nGrsk","size-48":"RangeDatePicker-module_size-48__WKbFa","date-input-group":"RangeDatePicker-module_date-input-group__lJSYu","separator":"RangeDatePicker-module_separator__OZtZc","mode-form":"RangeDatePicker-module_mode-form__KkODO","mode-cell":"RangeDatePicker-module_mode-cell__YvZw5","dropdownContainer":"RangeDatePicker-module_dropdown-container__EFIZT","buttonGroup":"RangeDatePicker-module_button-group__Stksa","dateInput":"RangeDatePicker-module_date-input__as2iX","size24":"RangeDatePicker-module_size-24__yXj-X","size30":"RangeDatePicker-module_size-30__4sP-J","size36":"RangeDatePicker-module_size-36__j5YP2","size42":"RangeDatePicker-module_size-42__nGrsk","size48":"RangeDatePicker-module_size-48__WKbFa","dateInputGroup":"RangeDatePicker-module_date-input-group__lJSYu","modeForm":"RangeDatePicker-module_mode-form__KkODO","modeCell":"RangeDatePicker-module_mode-cell__YvZw5"};
|
|
@@ -1431,35 +1439,35 @@ const DataPickerFooter = React__namespace.default.memo(DataPickerFooterImpl);
|
|
|
1431
1439
|
|
|
1432
1440
|
var css$A = {"header":"DataPickerHeader-module_header__TkXlz","close":"DataPickerHeader-module_close__Tiy0j"};
|
|
1433
1441
|
|
|
1434
|
-
var _path$
|
|
1435
|
-
function _extends$
|
|
1442
|
+
var _path$A;
|
|
1443
|
+
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); }
|
|
1436
1444
|
var SvgNavigationClose24 = function SvgNavigationClose24(props, ref) {
|
|
1437
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1445
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$C({
|
|
1438
1446
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1439
1447
|
width: 24,
|
|
1440
1448
|
height: 24,
|
|
1441
1449
|
viewBox: "0 0 24 24",
|
|
1442
1450
|
ref: ref
|
|
1443
|
-
}, props), _path$
|
|
1451
|
+
}, props), _path$A || (_path$A = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1444
1452
|
fillRule: "evenodd",
|
|
1445
1453
|
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",
|
|
1446
1454
|
clipRule: "evenodd"
|
|
1447
1455
|
})));
|
|
1448
1456
|
};
|
|
1449
|
-
var ForwardRef$
|
|
1457
|
+
var ForwardRef$C = /*#__PURE__*/React.forwardRef(SvgNavigationClose24);
|
|
1450
1458
|
|
|
1451
1459
|
const DataPickerHeaderImpl = (props) => {
|
|
1452
1460
|
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
1453
|
-
return (React__namespace.default.createElement(FlexRow, { alignItems: "center", borderBottom: true,
|
|
1454
|
-
React__namespace.default.createElement(Text, { font: "semibold" }, title),
|
|
1455
|
-
React__namespace.default.createElement(IconButton, { icon: ForwardRef$
|
|
1461
|
+
return (React__namespace.default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: css$A.header },
|
|
1462
|
+
React__namespace.default.createElement(Text, { size: "48", font: "semibold" }, title),
|
|
1463
|
+
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$A.close })));
|
|
1456
1464
|
};
|
|
1457
1465
|
const DataPickerHeader = React__namespace.default.memo(DataPickerHeaderImpl);
|
|
1458
1466
|
|
|
1459
1467
|
var _defs$1, _use;
|
|
1460
|
-
function _extends$
|
|
1468
|
+
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); }
|
|
1461
1469
|
var SvgTreeFoldingArrow = function SvgTreeFoldingArrow(props, ref) {
|
|
1462
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1470
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$B({
|
|
1463
1471
|
width: 18,
|
|
1464
1472
|
height: 18,
|
|
1465
1473
|
viewBox: "0 0 18 18",
|
|
@@ -1477,7 +1485,7 @@ var SvgTreeFoldingArrow = function SvgTreeFoldingArrow(props, ref) {
|
|
|
1477
1485
|
fillRule: "evenodd"
|
|
1478
1486
|
})));
|
|
1479
1487
|
};
|
|
1480
|
-
var ForwardRef$
|
|
1488
|
+
var ForwardRef$B = /*#__PURE__*/React.forwardRef(SvgTreeFoldingArrow);
|
|
1481
1489
|
|
|
1482
1490
|
var css$z = {"cell":"DataTableCell-module_cell__9v8pk","wrapper":"DataTableCell-module_wrapper__u7ey2","align-widgets-top":"DataTableCell-module_align-widgets-top__-ZRCt","size-24":"DataTableCell-module_size-24__kAlRh","folding-arrow":"DataTableCell-module_folding-arrow__M3UXW","size-30":"DataTableCell-module_size-30__gy4mJ","size-36":"DataTableCell-module_size-36__t3pLn","size-42":"DataTableCell-module_size-42__IXd3P","size-48":"DataTableCell-module_size-48__jCi7Y","size-60":"DataTableCell-module_size-60__O0Mmg","align-widgets-center":"DataTableCell-module_align-widgets-center__l51gX","padding-12":"DataTableCell-module_padding-12__xRP39","padding-24":"DataTableCell-module_padding-24__0aJJb","padding-left-12":"DataTableCell-module_padding-left-12__XINwI","padding-left-24":"DataTableCell-module_padding-left-24__79hBi","padding-right-24":"DataTableCell-module_padding-right-24__BA0Z0","drag-handle":"DataTableCell-module_drag-handle__NiIxM","checkbox":"DataTableCell-module_checkbox__CAENf","indent":"DataTableCell-module_indent__qWJ5l","folding-arrow-12":"DataTableCell-module_folding-arrow-12__YGg1P","folding-arrow-18":"DataTableCell-module_folding-arrow-18__E0R4O","icon-container":"DataTableCell-module_icon-container__IcTL1","alignWidgetsTop":"DataTableCell-module_align-widgets-top__-ZRCt","size24":"DataTableCell-module_size-24__kAlRh","foldingArrow":"DataTableCell-module_folding-arrow__M3UXW","size30":"DataTableCell-module_size-30__gy4mJ","size36":"DataTableCell-module_size-36__t3pLn","size42":"DataTableCell-module_size-42__IXd3P","size48":"DataTableCell-module_size-48__jCi7Y","size60":"DataTableCell-module_size-60__O0Mmg","alignWidgetsCenter":"DataTableCell-module_align-widgets-center__l51gX","padding12":"DataTableCell-module_padding-12__xRP39","padding24":"DataTableCell-module_padding-24__0aJJb","paddingLeft12":"DataTableCell-module_padding-left-12__XINwI","paddingLeft24":"DataTableCell-module_padding-left-24__79hBi","paddingRight24":"DataTableCell-module_padding-right-24__BA0Z0","dragHandle":"DataTableCell-module_drag-handle__NiIxM","foldingArrow12":"DataTableCell-module_folding-arrow-12__YGg1P","foldingArrow18":"DataTableCell-module_folding-arrow-18__E0R4O","iconContainer":"DataTableCell-module_icon-container__IcTL1"};
|
|
1483
1491
|
|
|
@@ -1488,7 +1496,7 @@ function DataTableRowAddons(props) {
|
|
|
1488
1496
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
1489
1497
|
((_a = row.dnd) === null || _a === void 0 ? void 0 : _a.srcData) && React__namespace.createElement(uuiComponents.DragHandle, { key: "dh", cx: css$z.dragHandle }),
|
|
1490
1498
|
((_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$z.checkbox, tabIndex: props.tabIndex, size: additionalItemSize, value: row.isChecked, indeterminate: !row.isChecked && row.isChildrenChecked, onValueChange: () => row.onCheck(row), isDisabled: row.checkbox.isDisabled, isInvalid: row.checkbox.isInvalid })),
|
|
1491
|
-
row.indent > 0 && (React__namespace.createElement("div", { key: "fold", className: css$z.indent, style: { marginLeft: (row.indent - 1) * 24 } }, row.isFoldable && (React__namespace.createElement(uuiComponents.IconContainer, { key: "icon", icon: ForwardRef$
|
|
1499
|
+
row.indent > 0 && (React__namespace.createElement("div", { key: "fold", className: css$z.indent, style: { marginLeft: (row.indent - 1) * 24 } }, row.isFoldable && (React__namespace.createElement(uuiComponents.IconContainer, { key: "icon", icon: ForwardRef$B, cx: [
|
|
1492
1500
|
css$z.foldingArrow, css$z[`folding-arrow-${additionalItemSize}`], uuiCore.uuiMarkers.clickable, css$z.iconContainer,
|
|
1493
1501
|
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row) }))))));
|
|
1494
1502
|
}
|
|
@@ -1505,7 +1513,15 @@ function DataTableCell(props) {
|
|
|
1505
1513
|
props.renderTooltip = (tooltipProps) => React__namespace.createElement(Tooltip, Object.assign({ color: "critical" }, tooltipProps));
|
|
1506
1514
|
const isEditable = !!props.onValueChange;
|
|
1507
1515
|
props.cx = [
|
|
1508
|
-
'data-table-cell',
|
|
1516
|
+
'data-table-cell',
|
|
1517
|
+
props.cx,
|
|
1518
|
+
css$z.cell,
|
|
1519
|
+
css$z['size-' + (props.size || '36')],
|
|
1520
|
+
css$z[`padding-${props.padding || (isEditable && !props.rowProps.isLoading && '0') || '12'}`],
|
|
1521
|
+
props.isFirstColumn && css$z[`padding-left-${props.padding || '24'}`],
|
|
1522
|
+
props.isLastColumn && css$z['padding-right-24'],
|
|
1523
|
+
css$z[`align-widgets-${props.alignActions || 'top'}`],
|
|
1524
|
+
(props.border || isEditable) && 'uui-dt-vertical-cell-border',
|
|
1509
1525
|
];
|
|
1510
1526
|
return React__namespace.createElement(uuiComponents.DataTableCell, Object.assign({}, props));
|
|
1511
1527
|
}
|
|
@@ -1528,33 +1544,50 @@ const DataTableRow = uuiCore.withMods(uuiComponents.DataTableRow, ({ borderBotto
|
|
|
1528
1544
|
|
|
1529
1545
|
var css$x = {"header-cell":"DataTableHeaderRow-module_header-cell__-GovH","config-icon":"DataTableHeaderRow-module_config-icon__7pmnq","headerCell":"DataTableHeaderRow-module_header-cell__-GovH","configIcon":"DataTableHeaderRow-module_config-icon__7pmnq"};
|
|
1530
1546
|
|
|
1531
|
-
var _path$
|
|
1532
|
-
function _extends$
|
|
1547
|
+
var _path$z;
|
|
1548
|
+
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); }
|
|
1533
1549
|
var SvgActionSettings18 = function SvgActionSettings18(props, ref) {
|
|
1534
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1550
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$A({
|
|
1535
1551
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1536
1552
|
width: 18,
|
|
1537
1553
|
height: 18,
|
|
1538
1554
|
viewBox: "0 0 18 18",
|
|
1539
1555
|
ref: ref
|
|
1540
|
-
}, props), _path$
|
|
1556
|
+
}, props), _path$z || (_path$z = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1541
1557
|
fillRule: "evenodd",
|
|
1542
1558
|
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",
|
|
1543
1559
|
clipRule: "evenodd"
|
|
1544
1560
|
})));
|
|
1545
1561
|
};
|
|
1546
|
-
var ForwardRef$
|
|
1562
|
+
var ForwardRef$A = /*#__PURE__*/React.forwardRef(SvgActionSettings18);
|
|
1547
1563
|
|
|
1548
1564
|
const DataTableHeaderRow = uuiCore.withMods(uuiComponents.DataTableHeaderRow, (mods) => [css$x.root], (mods) => ({
|
|
1549
1565
|
renderCell: (props) => React__namespace.createElement(DataTableHeaderCell, Object.assign({}, props, { size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key })),
|
|
1550
|
-
renderConfigButton: () => React__namespace.createElement(IconButton, { key: "configuration", onClick: mods.onConfigButtonClick, cx: css$x.configIcon, color: "default", icon: ForwardRef$
|
|
1566
|
+
renderConfigButton: () => React__namespace.createElement(IconButton, { key: "configuration", onClick: mods.onConfigButtonClick, cx: css$x.configIcon, color: "default", icon: ForwardRef$A }),
|
|
1551
1567
|
}));
|
|
1552
1568
|
|
|
1553
1569
|
var css$w = {"cell":"DataTableHeaderCell-module_cell__AGrCC","sort-icon":"DataTableHeaderCell-module_sort-icon__cDeMX","dropdown-icon":"DataTableHeaderCell-module_dropdown-icon__anyqy","infoIcon":"DataTableHeaderCell-module_infoIcon__ztuKT","resizable":"DataTableHeaderCell-module_resizable__KE4Ta","size-24":"DataTableHeaderCell-module_size-24__xl3Bc","size-30":"DataTableHeaderCell-module_size-30__eNSl8","size-36":"DataTableHeaderCell-module_size-36__uF7G7","size-42":"DataTableHeaderCell-module_size-42__cyLfW","size-48":"DataTableHeaderCell-module_size-48__fgE-c","padding-left-24":"DataTableHeaderCell-module_padding-left-24__y2KH8","padding-right-24":"DataTableHeaderCell-module_padding-right-24__-XKyz","caption":"DataTableHeaderCell-module_caption__ZOlWT","checkbox":"DataTableHeaderCell-module_checkbox__Mm1wC","icon":"DataTableHeaderCell-module_icon__liZ4c","icon-cell":"DataTableHeaderCell-module_icon-cell__9AUCT","align-right":"DataTableHeaderCell-module_align-right__Hzx-a","align-center":"DataTableHeaderCell-module_align-center__Lfdr4","tooltip-wrapper":"DataTableHeaderCell-module_tooltip-wrapper__ulCpX","cell-tooltip":"DataTableHeaderCell-module_cell-tooltip__JHAxY","upper-case":"DataTableHeaderCell-module_upper-case__AdtWJ","font-size-14":"DataTableHeaderCell-module_font-size-14__RSTks","resize-mark":"DataTableHeaderCell-module_resize-mark__NBp0G","draggable":"DataTableHeaderCell-module_draggable__hz5pE","ghost":"DataTableHeaderCell-module_ghost__-iISU","is-dragged-out":"DataTableHeaderCell-module_is-dragged-out__Qicd4","dnd-marker-left":"DataTableHeaderCell-module_dnd-marker-left__tZ1iw","dnd-marker-right":"DataTableHeaderCell-module_dnd-marker-right__nT0Cc","sortIcon":"DataTableHeaderCell-module_sort-icon__cDeMX","dropdownIcon":"DataTableHeaderCell-module_dropdown-icon__anyqy","size24":"DataTableHeaderCell-module_size-24__xl3Bc","size30":"DataTableHeaderCell-module_size-30__eNSl8","size36":"DataTableHeaderCell-module_size-36__uF7G7","size42":"DataTableHeaderCell-module_size-42__cyLfW","size48":"DataTableHeaderCell-module_size-48__fgE-c","paddingLeft24":"DataTableHeaderCell-module_padding-left-24__y2KH8","paddingRight24":"DataTableHeaderCell-module_padding-right-24__-XKyz","iconCell":"DataTableHeaderCell-module_icon-cell__9AUCT","alignRight":"DataTableHeaderCell-module_align-right__Hzx-a","alignCenter":"DataTableHeaderCell-module_align-center__Lfdr4","tooltipWrapper":"DataTableHeaderCell-module_tooltip-wrapper__ulCpX","cellTooltip":"DataTableHeaderCell-module_cell-tooltip__JHAxY","upperCase":"DataTableHeaderCell-module_upper-case__AdtWJ","fontSize14":"DataTableHeaderCell-module_font-size-14__RSTks","resizeMark":"DataTableHeaderCell-module_resize-mark__NBp0G","isDraggedOut":"DataTableHeaderCell-module_is-dragged-out__Qicd4","dndMarkerLeft":"DataTableHeaderCell-module_dnd-marker-left__tZ1iw","dndMarkerRight":"DataTableHeaderCell-module_dnd-marker-right__nT0Cc"};
|
|
1554
1570
|
|
|
1571
|
+
var _path$y;
|
|
1572
|
+
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); }
|
|
1573
|
+
var SvgTableSwap18 = function SvgTableSwap18(props, ref) {
|
|
1574
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$z({
|
|
1575
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1576
|
+
width: 18,
|
|
1577
|
+
height: 18,
|
|
1578
|
+
viewBox: "0 0 18 18",
|
|
1579
|
+
ref: ref
|
|
1580
|
+
}, props), _path$y || (_path$y = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1581
|
+
fillRule: "evenodd",
|
|
1582
|
+
d: "M6 1 2 5h3v7h2V5h3L6 1zm7 12V6h-2v7H8l4 4 4-4h-3z",
|
|
1583
|
+
clipRule: "evenodd"
|
|
1584
|
+
})));
|
|
1585
|
+
};
|
|
1586
|
+
var ForwardRef$z = /*#__PURE__*/React.forwardRef(SvgTableSwap18);
|
|
1587
|
+
|
|
1555
1588
|
var _path$x;
|
|
1556
1589
|
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); }
|
|
1557
|
-
var
|
|
1590
|
+
var SvgTableSortAsc18 = function SvgTableSortAsc18(props, ref) {
|
|
1558
1591
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$y({
|
|
1559
1592
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1560
1593
|
width: 18,
|
|
@@ -1563,15 +1596,15 @@ var SvgTableSwap18 = function SvgTableSwap18(props, ref) {
|
|
|
1563
1596
|
ref: ref
|
|
1564
1597
|
}, props), _path$x || (_path$x = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1565
1598
|
fillRule: "evenodd",
|
|
1566
|
-
d: "
|
|
1599
|
+
d: "M10 6v10H8V6H5l4-4 4 4h-3z",
|
|
1567
1600
|
clipRule: "evenodd"
|
|
1568
1601
|
})));
|
|
1569
1602
|
};
|
|
1570
|
-
var ForwardRef$y = /*#__PURE__*/React.forwardRef(
|
|
1603
|
+
var ForwardRef$y = /*#__PURE__*/React.forwardRef(SvgTableSortAsc18);
|
|
1571
1604
|
|
|
1572
1605
|
var _path$w;
|
|
1573
1606
|
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); }
|
|
1574
|
-
var
|
|
1607
|
+
var SvgTableSortDesc18 = function SvgTableSortDesc18(props, ref) {
|
|
1575
1608
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$x({
|
|
1576
1609
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1577
1610
|
width: 18,
|
|
@@ -1580,15 +1613,15 @@ var SvgTableSortAsc18 = function SvgTableSortAsc18(props, ref) {
|
|
|
1580
1613
|
ref: ref
|
|
1581
1614
|
}, props), _path$w || (_path$w = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1582
1615
|
fillRule: "evenodd",
|
|
1583
|
-
d: "M10
|
|
1616
|
+
d: "M10 12V2H8v10H5l4 4 4-4h-3z",
|
|
1584
1617
|
clipRule: "evenodd"
|
|
1585
1618
|
})));
|
|
1586
1619
|
};
|
|
1587
|
-
var ForwardRef$x = /*#__PURE__*/React.forwardRef(
|
|
1620
|
+
var ForwardRef$x = /*#__PURE__*/React.forwardRef(SvgTableSortDesc18);
|
|
1588
1621
|
|
|
1589
1622
|
var _path$v;
|
|
1590
1623
|
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); }
|
|
1591
|
-
var
|
|
1624
|
+
var SvgContentFiltration18 = function SvgContentFiltration18(props, ref) {
|
|
1592
1625
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$w({
|
|
1593
1626
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1594
1627
|
width: 18,
|
|
@@ -1597,15 +1630,15 @@ var SvgTableSortDesc18 = function SvgTableSortDesc18(props, ref) {
|
|
|
1597
1630
|
ref: ref
|
|
1598
1631
|
}, props), _path$v || (_path$v = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1599
1632
|
fillRule: "evenodd",
|
|
1600
|
-
d: "
|
|
1633
|
+
d: "m8 14 2 2v-5H8v3zM2 3v2h14V3H2zm6 8h2l6-6H2l6 6z",
|
|
1601
1634
|
clipRule: "evenodd"
|
|
1602
1635
|
})));
|
|
1603
1636
|
};
|
|
1604
|
-
var ForwardRef$w = /*#__PURE__*/React.forwardRef(
|
|
1637
|
+
var ForwardRef$w = /*#__PURE__*/React.forwardRef(SvgContentFiltration18);
|
|
1605
1638
|
|
|
1606
1639
|
var _path$u;
|
|
1607
1640
|
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); }
|
|
1608
|
-
var
|
|
1641
|
+
var SvgNavigationChevronDown18 = function SvgNavigationChevronDown18(props, ref) {
|
|
1609
1642
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$v({
|
|
1610
1643
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1611
1644
|
width: 18,
|
|
@@ -1614,15 +1647,15 @@ var SvgContentFiltration18 = function SvgContentFiltration18(props, ref) {
|
|
|
1614
1647
|
ref: ref
|
|
1615
1648
|
}, props), _path$u || (_path$u = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1616
1649
|
fillRule: "evenodd",
|
|
1617
|
-
d: "
|
|
1650
|
+
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",
|
|
1618
1651
|
clipRule: "evenodd"
|
|
1619
1652
|
})));
|
|
1620
1653
|
};
|
|
1621
|
-
var ForwardRef$v = /*#__PURE__*/React.forwardRef(
|
|
1654
|
+
var ForwardRef$v = /*#__PURE__*/React.forwardRef(SvgNavigationChevronDown18);
|
|
1622
1655
|
|
|
1623
1656
|
var _path$t;
|
|
1624
1657
|
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); }
|
|
1625
|
-
var
|
|
1658
|
+
var SvgNavigationChevronUp18 = function SvgNavigationChevronUp18(props, ref) {
|
|
1626
1659
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$u({
|
|
1627
1660
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1628
1661
|
width: 18,
|
|
@@ -1631,15 +1664,15 @@ var SvgNavigationChevronDown18 = function SvgNavigationChevronDown18(props, ref)
|
|
|
1631
1664
|
ref: ref
|
|
1632
1665
|
}, props), _path$t || (_path$t = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1633
1666
|
fillRule: "evenodd",
|
|
1634
|
-
d: "
|
|
1667
|
+
d: "m9 6-4.5 4.5 1.058 1.057L9 8.123l3.443 3.434L13.5 10.5 9 6z",
|
|
1635
1668
|
clipRule: "evenodd"
|
|
1636
1669
|
})));
|
|
1637
1670
|
};
|
|
1638
|
-
var ForwardRef$u = /*#__PURE__*/React.forwardRef(
|
|
1671
|
+
var ForwardRef$u = /*#__PURE__*/React.forwardRef(SvgNavigationChevronUp18);
|
|
1639
1672
|
|
|
1640
1673
|
var _path$s;
|
|
1641
1674
|
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); }
|
|
1642
|
-
var
|
|
1675
|
+
var SvgNotificationInfoOutline18 = function SvgNotificationInfoOutline18(props, ref) {
|
|
1643
1676
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$t({
|
|
1644
1677
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1645
1678
|
width: 18,
|
|
@@ -1647,29 +1680,12 @@ var SvgNavigationChevronUp18 = function SvgNavigationChevronUp18(props, ref) {
|
|
|
1647
1680
|
viewBox: "0 0 18 18",
|
|
1648
1681
|
ref: ref
|
|
1649
1682
|
}, props), _path$s || (_path$s = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1650
|
-
fillRule: "evenodd",
|
|
1651
|
-
d: "m9 6-4.5 4.5 1.058 1.057L9 8.123l3.443 3.434L13.5 10.5 9 6z",
|
|
1652
|
-
clipRule: "evenodd"
|
|
1653
|
-
})));
|
|
1654
|
-
};
|
|
1655
|
-
var ForwardRef$t = /*#__PURE__*/React.forwardRef(SvgNavigationChevronUp18);
|
|
1656
|
-
|
|
1657
|
-
var _path$r;
|
|
1658
|
-
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); }
|
|
1659
|
-
var SvgNotificationInfoOutline18 = function SvgNotificationInfoOutline18(props, ref) {
|
|
1660
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$s({
|
|
1661
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1662
|
-
width: 18,
|
|
1663
|
-
height: 18,
|
|
1664
|
-
viewBox: "0 0 18 18",
|
|
1665
|
-
ref: ref
|
|
1666
|
-
}, props), _path$r || (_path$r = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1667
1683
|
fillRule: "evenodd",
|
|
1668
1684
|
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",
|
|
1669
1685
|
clipRule: "evenodd"
|
|
1670
1686
|
})));
|
|
1671
1687
|
};
|
|
1672
|
-
var ForwardRef$
|
|
1688
|
+
var ForwardRef$t = /*#__PURE__*/React.forwardRef(SvgNotificationInfoOutline18);
|
|
1673
1689
|
|
|
1674
1690
|
class DataTableHeaderCell extends React__namespace.Component {
|
|
1675
1691
|
constructor() {
|
|
@@ -1686,10 +1702,10 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
1686
1702
|
React__namespace.createElement(Tooltip, { trigger: "hover", placement: "bottom-start", renderContent: !this.state.isDropdownOpen && this.props.column.info ? () => this.props.column.info : null, color: "default", cx: css$w.cellTooltip, offset: [-12, 12] },
|
|
1687
1703
|
React__namespace.createElement("div", { className: uuiCore.cx(css$w.iconCell, css$w['align-' + this.props.column.textAlign], uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaptionWrapper) },
|
|
1688
1704
|
React__namespace.createElement(Text, { key: "text", lineHeight: "30", fontSize: "14", size: "30", cx: uuiCore.cx(css$w.caption, this.getTextStyle(), uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaption) }, this.props.column.caption),
|
|
1689
|
-
this.props.column.info && (React__namespace.createElement(IconButton, { key: "info", cx: uuiCore.cx(css$w.icon, css$w.infoIcon, this.props.sortDirection && css$w.sortIconActive, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderSortIcon), color: "secondary", icon: ForwardRef$
|
|
1690
|
-
this.props.column.isSortable && (!this.props.column.renderFilter || this.props.sortDirection) && (React__namespace.createElement(IconButton, { key: "sort", cx: uuiCore.cx(css$w.icon, css$w.sortIcon, this.props.sortDirection && css$w.sortIconActive, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderSortIcon), color: this.props.sortDirection ? 'default' : 'secondary', icon: this.props.sortDirection === 'desc' ? ForwardRef$
|
|
1691
|
-
this.props.isFilterActive && (React__namespace.createElement(IconButton, { key: "filter", cx: uuiCore.cx(css$w.icon, !this.props.sortDirection && css$w.filterIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderFilterIcon), color: "default", icon: ForwardRef$
|
|
1692
|
-
this.props.column.renderFilter && (React__namespace.createElement(IconButton, { key: "dropdown", cx: uuiCore.cx(css$w.icon, css$w.dropdownIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderDropdownIcon), color: "secondary", icon: this.state.isDropdownOpen ? ForwardRef$
|
|
1705
|
+
this.props.column.info && (React__namespace.createElement(IconButton, { key: "info", cx: uuiCore.cx(css$w.icon, css$w.infoIcon, this.props.sortDirection && css$w.sortIconActive, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderSortIcon), color: "secondary", icon: ForwardRef$t })),
|
|
1706
|
+
this.props.column.isSortable && (!this.props.column.renderFilter || this.props.sortDirection) && (React__namespace.createElement(IconButton, { key: "sort", cx: uuiCore.cx(css$w.icon, css$w.sortIcon, this.props.sortDirection && css$w.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 })),
|
|
1707
|
+
this.props.isFilterActive && (React__namespace.createElement(IconButton, { key: "filter", cx: uuiCore.cx(css$w.icon, !this.props.sortDirection && css$w.filterIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderFilterIcon), color: "default", icon: ForwardRef$w })),
|
|
1708
|
+
this.props.column.renderFilter && (React__namespace.createElement(IconButton, { key: "dropdown", cx: uuiCore.cx(css$w.icon, css$w.dropdownIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderDropdownIcon), color: "secondary", icon: this.state.isDropdownOpen ? ForwardRef$u : ForwardRef$v }))))));
|
|
1693
1709
|
this.renderHeaderCheckbox = () => this.props.selectAll
|
|
1694
1710
|
&& this.props.isFirstColumn && (React__namespace.createElement(Checkbox, Object.assign({ size: +this.props.size < 36 ? '12' : '18' }, this.props.selectAll, { cx: uuiCore.cx(css$w.checkbox, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCheckbox) })));
|
|
1695
1711
|
this.renderResizeMark = (props) => React__namespace.createElement("div", { onMouseDown: props.onResizeStart, className: uuiCore.cx(css$w.resizeMark, uuiCore.uuiMarkers.draggable) });
|
|
@@ -1734,10 +1750,10 @@ const useColumnsWithFilters = (initialColumns, filters) => {
|
|
|
1734
1750
|
return columns;
|
|
1735
1751
|
};
|
|
1736
1752
|
|
|
1737
|
-
var _path$
|
|
1738
|
-
function _extends$
|
|
1753
|
+
var _path$r, _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;
|
|
1754
|
+
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); }
|
|
1739
1755
|
var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
1740
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1756
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$s({
|
|
1741
1757
|
width: 232,
|
|
1742
1758
|
height: 180,
|
|
1743
1759
|
viewBox: "0 0 232 180",
|
|
@@ -1746,7 +1762,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
1746
1762
|
ref: ref
|
|
1747
1763
|
}, props), /*#__PURE__*/React__namespace.createElement("g", {
|
|
1748
1764
|
clipPath: "url(#a)"
|
|
1749
|
-
}, _path$
|
|
1765
|
+
}, _path$r || (_path$r = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1750
1766
|
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",
|
|
1751
1767
|
fill: "#F5F6FA"
|
|
1752
1768
|
})), _path2$1 || (_path2$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -1872,7 +1888,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
1872
1888
|
d: "M0 0h230.897v180H0z"
|
|
1873
1889
|
})))));
|
|
1874
1890
|
};
|
|
1875
|
-
var ForwardRef$
|
|
1891
|
+
var ForwardRef$s = /*#__PURE__*/React.forwardRef(SvgEmptyTable);
|
|
1876
1892
|
|
|
1877
1893
|
var css$v = {"sticky-header":"DataTable-module_sticky-header__g-Ods","listContainer":"DataTable-module_listContainer__yR0QP","table":"DataTable-module_table__UPgfH","no-results":"DataTable-module_no-results__0TI-p","no-results-icon":"DataTable-module_no-results-icon__w-p5I","no-results-title":"DataTable-module_no-results-title__QIMfi","stickyHeader":"DataTable-module_sticky-header__g-Ods","noResults":"DataTable-module_no-results__0TI-p","noResultsIcon":"DataTable-module_no-results-icon__w-p5I","noResultsTitle":"DataTable-module_no-results-title__QIMfi"};
|
|
1878
1894
|
|
|
@@ -1889,7 +1905,7 @@ function DataTable(props) {
|
|
|
1889
1905
|
const renderNoResultsBlock = React__namespace.useCallback(() => {
|
|
1890
1906
|
var _a;
|
|
1891
1907
|
return (React__namespace.createElement("div", { className: css$v.noResults }, props.renderNoResultsBlock ? ((_a = props.renderNoResultsBlock) === null || _a === void 0 ? void 0 : _a.call(props)) : (React__namespace.createElement(React__namespace.Fragment, null,
|
|
1892
|
-
React__namespace.createElement(uuiComponents.IconContainer, { cx: css$v.noResultsIcon, icon: ForwardRef$
|
|
1908
|
+
React__namespace.createElement(uuiComponents.IconContainer, { cx: css$v.noResultsIcon, icon: ForwardRef$s }),
|
|
1893
1909
|
React__namespace.createElement(Text, { cx: css$v.noResultsTitle, fontSize: "24", lineHeight: "30", color: "primary", font: "semibold" }, i18n.tables.noResultsBlock.title),
|
|
1894
1910
|
React__namespace.createElement(Text, { fontSize: "16", lineHeight: "24", font: "regular", color: "primary" }, i18n.tables.noResultsBlock.message)))));
|
|
1895
1911
|
}, [props.renderNoResultsBlock]);
|
|
@@ -1923,108 +1939,108 @@ function DataTable(props) {
|
|
|
1923
1939
|
|
|
1924
1940
|
var styles$1 = {"main-panel":"ColumnsConfigurationModal-module_main-panel__4w6PV","group-title":"ColumnsConfigurationModal-module_group-title__YQ24j","group-title-text":"ColumnsConfigurationModal-module_group-title-text__Uu-cT","group-title-badge":"ColumnsConfigurationModal-module_group-title-badge__7PUJ9","group-items":"ColumnsConfigurationModal-module_group-items__gni54","no-data":"ColumnsConfigurationModal-module_no-data__chQEC","h-divider":"ColumnsConfigurationModal-module_h-divider__5NbQX","search-area":"ColumnsConfigurationModal-module_search-area__8lhwH","mainPanel":"ColumnsConfigurationModal-module_main-panel__4w6PV","groupTitle":"ColumnsConfigurationModal-module_group-title__YQ24j","groupTitleText":"ColumnsConfigurationModal-module_group-title-text__Uu-cT","groupTitleBadge":"ColumnsConfigurationModal-module_group-title-badge__7PUJ9","groupItems":"ColumnsConfigurationModal-module_group-items__gni54","noData":"ColumnsConfigurationModal-module_no-data__chQEC","hDivider":"ColumnsConfigurationModal-module_h-divider__5NbQX","searchArea":"ColumnsConfigurationModal-module_search-area__8lhwH"};
|
|
1925
1941
|
|
|
1926
|
-
var _path$
|
|
1927
|
-
function _extends$
|
|
1942
|
+
var _path$q;
|
|
1943
|
+
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); }
|
|
1928
1944
|
var SvgNavigationMoreVert18 = function SvgNavigationMoreVert18(props, ref) {
|
|
1929
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1945
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$r({
|
|
1930
1946
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1931
1947
|
width: 18,
|
|
1932
1948
|
height: 18,
|
|
1933
1949
|
viewBox: "0 0 18 18",
|
|
1934
1950
|
ref: ref
|
|
1935
|
-
}, props), _path$
|
|
1951
|
+
}, props), _path$q || (_path$q = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1936
1952
|
fillRule: "evenodd",
|
|
1937
1953
|
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",
|
|
1938
1954
|
clipRule: "evenodd"
|
|
1939
1955
|
})));
|
|
1940
1956
|
};
|
|
1941
|
-
var ForwardRef$
|
|
1957
|
+
var ForwardRef$r = /*#__PURE__*/React.forwardRef(SvgNavigationMoreVert18);
|
|
1942
1958
|
|
|
1943
|
-
var _path$
|
|
1944
|
-
function _extends$
|
|
1959
|
+
var _path$p;
|
|
1960
|
+
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); }
|
|
1945
1961
|
var SvgActionUpdate18 = function SvgActionUpdate18(props, ref) {
|
|
1946
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1962
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
|
|
1947
1963
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1948
1964
|
width: 18,
|
|
1949
1965
|
height: 18,
|
|
1950
1966
|
viewBox: "0 0 18 18",
|
|
1951
1967
|
ref: ref
|
|
1952
|
-
}, props), _path$
|
|
1968
|
+
}, props), _path$p || (_path$p = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1953
1969
|
fillRule: "evenodd",
|
|
1954
1970
|
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",
|
|
1955
1971
|
clipRule: "evenodd"
|
|
1956
1972
|
})));
|
|
1957
1973
|
};
|
|
1958
|
-
var ForwardRef$
|
|
1974
|
+
var ForwardRef$q = /*#__PURE__*/React.forwardRef(SvgActionUpdate18);
|
|
1959
1975
|
|
|
1960
|
-
var _path$
|
|
1961
|
-
function _extends$
|
|
1976
|
+
var _path$o;
|
|
1977
|
+
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); }
|
|
1962
1978
|
var SvgActionLockFill18 = function SvgActionLockFill18(props, ref) {
|
|
1963
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1979
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
|
|
1964
1980
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1965
1981
|
width: 18,
|
|
1966
1982
|
height: 18,
|
|
1967
1983
|
viewBox: "0 0 18 18",
|
|
1968
1984
|
ref: ref
|
|
1969
|
-
}, props), _path$
|
|
1985
|
+
}, props), _path$o || (_path$o = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1970
1986
|
fillRule: "evenodd",
|
|
1971
1987
|
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",
|
|
1972
1988
|
clipRule: "evenodd"
|
|
1973
1989
|
})));
|
|
1974
1990
|
};
|
|
1975
|
-
var ForwardRef$
|
|
1991
|
+
var ForwardRef$p = /*#__PURE__*/React.forwardRef(SvgActionLockFill18);
|
|
1976
1992
|
|
|
1977
|
-
var _path$
|
|
1978
|
-
function _extends$
|
|
1993
|
+
var _path$n;
|
|
1994
|
+
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); }
|
|
1979
1995
|
var SvgActionPinOn18 = function SvgActionPinOn18(props, ref) {
|
|
1980
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1996
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
|
|
1981
1997
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1982
1998
|
width: 18,
|
|
1983
1999
|
height: 18,
|
|
1984
2000
|
viewBox: "0 0 18 18",
|
|
1985
2001
|
ref: ref
|
|
1986
|
-
}, props), _path$
|
|
2002
|
+
}, props), _path$n || (_path$n = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1987
2003
|
fillRule: "evenodd",
|
|
1988
2004
|
d: "M12 9V3h1V2H5v1h1v6l-2 1v1h4v5h2v-5h4v-1l-2-1z",
|
|
1989
2005
|
clipRule: "evenodd"
|
|
1990
2006
|
})));
|
|
1991
2007
|
};
|
|
1992
|
-
var ForwardRef$
|
|
2008
|
+
var ForwardRef$o = /*#__PURE__*/React.forwardRef(SvgActionPinOn18);
|
|
1993
2009
|
|
|
1994
|
-
var _path$
|
|
1995
|
-
function _extends$
|
|
2010
|
+
var _path$m;
|
|
2011
|
+
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); }
|
|
1996
2012
|
var SvgActionPinOff18 = function SvgActionPinOff18(props, ref) {
|
|
1997
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2013
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
|
|
1998
2014
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1999
2015
|
width: 18,
|
|
2000
2016
|
height: 18,
|
|
2001
2017
|
viewBox: "0 0 18 18",
|
|
2002
2018
|
ref: ref
|
|
2003
|
-
}, props), _path$
|
|
2019
|
+
}, props), _path$m || (_path$m = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2004
2020
|
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"
|
|
2005
2021
|
})));
|
|
2006
2022
|
};
|
|
2007
|
-
var ForwardRef$
|
|
2023
|
+
var ForwardRef$n = /*#__PURE__*/React.forwardRef(SvgActionPinOff18);
|
|
2008
2024
|
|
|
2009
|
-
const i18nLocal
|
|
2025
|
+
const i18nLocal = i18n.tables.columnsConfigurationModal;
|
|
2010
2026
|
function PinIconButton(props) {
|
|
2011
2027
|
const [isHovered, setIsHovered] = React.useState(false);
|
|
2012
2028
|
const { id, onTogglePin, isPinned, canUnpin, } = props;
|
|
2013
2029
|
const isPinnedAlways = isPinned && !canUnpin;
|
|
2014
2030
|
const tooltipText = React.useMemo(() => {
|
|
2015
2031
|
if (isPinned) {
|
|
2016
|
-
return isPinnedAlways ? i18nLocal
|
|
2032
|
+
return isPinnedAlways ? i18nLocal.lockedColumnPinButton : i18nLocal.unPinColumnButton;
|
|
2017
2033
|
}
|
|
2018
|
-
return i18nLocal
|
|
2034
|
+
return i18nLocal.pinColumnButton;
|
|
2019
2035
|
}, [isPinned, isPinnedAlways]);
|
|
2020
2036
|
const pinIcon = React.useMemo(() => {
|
|
2021
2037
|
if (isPinnedAlways) {
|
|
2022
|
-
return ForwardRef$
|
|
2038
|
+
return ForwardRef$p;
|
|
2023
2039
|
}
|
|
2024
2040
|
if (isPinned) {
|
|
2025
|
-
return isHovered ? ForwardRef$
|
|
2041
|
+
return isHovered ? ForwardRef$n : ForwardRef$o;
|
|
2026
2042
|
}
|
|
2027
|
-
return ForwardRef$
|
|
2043
|
+
return ForwardRef$o;
|
|
2028
2044
|
}, [
|
|
2029
2045
|
isPinnedAlways, isHovered, isPinned,
|
|
2030
2046
|
]);
|
|
@@ -2059,11 +2075,11 @@ const ColumnRow = React__namespace.memo(function ColumnRow(props) {
|
|
|
2059
2075
|
return (React__namespace.createElement(uuiCore.DndActor, { key: column.key, srcData: data, dstData: data, canAcceptDrop: onCanAcceptDrop, onDrop: onDrop, render: renderContent }));
|
|
2060
2076
|
});
|
|
2061
2077
|
|
|
2062
|
-
const i18nLocal = i18n.tables.columnsConfigurationModal;
|
|
2063
2078
|
const renderGroupTitle = (title, amount) => (React__namespace.createElement(FlexRow, { size: "24", padding: "24", spacing: "6", cx: styles$1.groupTitle },
|
|
2064
2079
|
React__namespace.createElement(Text, { cx: styles$1.groupTitleText, font: "semibold", lineHeight: "24", fontSize: "14" }, title),
|
|
2065
2080
|
React__namespace.createElement(Badge, { cx: styles$1.groupTitleBadge, caption: amount, color: "default", size: "18" })));
|
|
2066
2081
|
function ColumnsConfigurationModal(props) {
|
|
2082
|
+
const i18n$1 = i18n.tables.columnsConfigurationModal;
|
|
2067
2083
|
const { columns, columnsConfig: initialColumnsConfig, defaultConfig } = props, modalProps = __rest(props, ["columns", "columnsConfig", "defaultConfig"]);
|
|
2068
2084
|
const { groupedColumns, searchValue, columnsConfig, reset, checkAll, uncheckAll, setSearchValue, } = uuiComponents.useColumnsConfiguration({
|
|
2069
2085
|
initialColumnsConfig,
|
|
@@ -2081,7 +2097,7 @@ function ColumnsConfigurationModal(props) {
|
|
|
2081
2097
|
}
|
|
2082
2098
|
const hasDivider = !!(amountPinned && amountUnPinned);
|
|
2083
2099
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
2084
|
-
renderGroupTitle(
|
|
2100
|
+
renderGroupTitle(i18n$1.displayedSectionTitle, amountPinned + amountUnPinned),
|
|
2085
2101
|
!!amountPinned && (React__namespace.createElement(FlexRow, { cx: styles$1.groupItems, size: "30" }, groupedColumns.displayedPinned.map((c) => (React__namespace.createElement(ColumnRow, { column: c, key: c.key }))))),
|
|
2086
2102
|
hasDivider && React__namespace.createElement("div", { className: styles$1.hDivider }),
|
|
2087
2103
|
!!amountUnPinned && (React__namespace.createElement(FlexRow, { cx: styles$1.groupItems, size: "30" }, groupedColumns.displayedUnpinned.map((c) => (React__namespace.createElement(ColumnRow, { column: c, key: c.key })))))));
|
|
@@ -2092,31 +2108,31 @@ function ColumnsConfigurationModal(props) {
|
|
|
2092
2108
|
return null;
|
|
2093
2109
|
}
|
|
2094
2110
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
2095
|
-
renderGroupTitle(
|
|
2111
|
+
renderGroupTitle(i18n$1.hiddenSectionTitle, amountHidden),
|
|
2096
2112
|
React__namespace.createElement(FlexRow, { cx: styles$1.groupItems, size: "30" }, groupedColumns.hidden.map((c) => (React__namespace.createElement(ColumnRow, { column: c, key: c.key }))))));
|
|
2097
2113
|
};
|
|
2098
2114
|
const noVisibleColumns = React.useMemo(() => !groupedColumns.displayedPinned.length && !groupedColumns.displayedUnpinned.length, [groupedColumns.displayedPinned, groupedColumns.displayedUnpinned]);
|
|
2099
|
-
const applyButton = React__namespace.createElement(Button, { caption:
|
|
2115
|
+
const applyButton = React__namespace.createElement(Button, { caption: i18n$1.applyButton, isDisabled: noVisibleColumns, color: "accent", onClick: apply });
|
|
2100
2116
|
return (React__namespace.createElement(ModalBlocker, Object.assign({}, modalProps),
|
|
2101
2117
|
React__namespace.createElement(ModalWindow, { height: 700 },
|
|
2102
|
-
React__namespace.createElement(ModalHeader, { title:
|
|
2118
|
+
React__namespace.createElement(ModalHeader, { title: i18n$1.configureColumnsTitle, onClose: close }),
|
|
2103
2119
|
React__namespace.createElement(FlexRow, { padding: "24", borderBottom: true, spacing: "12", cx: styles$1.searchArea },
|
|
2104
|
-
React__namespace.createElement(SearchInput, { size: "30", value: searchValue, onValueChange: setSearchValue, placeholder:
|
|
2120
|
+
React__namespace.createElement(SearchInput, { size: "30", value: searchValue, onValueChange: setSearchValue, placeholder: i18n$1.searchPlaceholder }),
|
|
2105
2121
|
React__namespace.createElement(Dropdown, { closeOnTargetClick: true, renderBody: () => (React__namespace.createElement(Panel, { shadow: true },
|
|
2106
|
-
React__namespace.createElement(DropdownMenuButton, { caption:
|
|
2107
|
-
React__namespace.createElement(DropdownMenuButton, { caption:
|
|
2122
|
+
React__namespace.createElement(DropdownMenuButton, { caption: i18n$1.clearAllButton, onClick: uncheckAll }),
|
|
2123
|
+
React__namespace.createElement(DropdownMenuButton, { caption: i18n$1.selectAllButton, onClick: checkAll }))), renderTarget: (props) => React__namespace.createElement(Button, Object.assign({}, props, { mode: "none", icon: ForwardRef$r, size: "30", color: "secondary", isDropdown: false })) })),
|
|
2108
2124
|
React__namespace.createElement(Panel, { cx: styles$1.mainPanel },
|
|
2109
2125
|
React__namespace.createElement(ScrollBars, null,
|
|
2110
2126
|
renderVisible(),
|
|
2111
2127
|
renderHidden(),
|
|
2112
2128
|
isNoData && (React__namespace.createElement(FlexRow, { cx: styles$1.noData },
|
|
2113
|
-
React__namespace.createElement(Text, { fontSize: "24", lineHeight: "30", color: "primary", font: "semibold" },
|
|
2114
|
-
React__namespace.createElement(Text, { fontSize: "16", lineHeight: "24", font: "regular", color: "primary" },
|
|
2129
|
+
React__namespace.createElement(Text, { fontSize: "24", lineHeight: "30", color: "primary", font: "semibold" }, i18n$1.noResultsFound.text),
|
|
2130
|
+
React__namespace.createElement(Text, { fontSize: "16", lineHeight: "24", font: "regular", color: "primary" }, i18n$1.noResultsFound.subText))))),
|
|
2115
2131
|
React__namespace.createElement(ModalFooter, { borderTop: true },
|
|
2116
|
-
React__namespace.createElement(LinkButton, { icon: ForwardRef$
|
|
2132
|
+
React__namespace.createElement(LinkButton, { icon: ForwardRef$q, caption: i18n$1.resetToDefaultButton, onClick: reset }),
|
|
2117
2133
|
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
2118
|
-
React__namespace.createElement(Button, { mode: "none", color: "secondary", caption:
|
|
2119
|
-
noVisibleColumns ? (React__namespace.createElement(Tooltip, { content:
|
|
2134
|
+
React__namespace.createElement(Button, { mode: "none", color: "secondary", caption: i18n$1.cancelButton, onClick: close }),
|
|
2135
|
+
noVisibleColumns ? (React__namespace.createElement(Tooltip, { content: i18n$1.enableAtLeastOneColumnMessage, placement: "top-end", color: "critical" }, applyButton)) : (applyButton)))));
|
|
2120
2136
|
}
|
|
2121
2137
|
|
|
2122
2138
|
var css$u = {"panel":"ColumnHeaderDropdown-module_panel__8EgfJ"};
|
|
@@ -2127,8 +2143,8 @@ const SortingPanelImpl = ({ sortDirection, onSort }) => {
|
|
|
2127
2143
|
const sortAsc = React.useCallback(() => onSort(sortDirection === 'asc' ? undefined : 'asc'), [onSort]);
|
|
2128
2144
|
const sortDesc = React.useCallback(() => onSort(sortDirection === 'desc' ? undefined : 'desc'), [onSort]);
|
|
2129
2145
|
return (React__namespace.default.createElement(FlexCell, { cx: css$t.sortingPanelContainer },
|
|
2130
|
-
React__namespace.default.createElement(DropdownMenuButton, { isActive: sortDirection === 'asc', caption: i18n.pickerFilterHeader.sortAscending, icon: ForwardRef$
|
|
2131
|
-
React__namespace.default.createElement(DropdownMenuButton, { isActive: sortDirection === 'desc', caption: i18n.pickerFilterHeader.sortDescending, icon: ForwardRef$
|
|
2146
|
+
React__namespace.default.createElement(DropdownMenuButton, { isActive: sortDirection === 'asc', caption: i18n.pickerFilterHeader.sortAscending, icon: ForwardRef$y, onClick: sortAsc }),
|
|
2147
|
+
React__namespace.default.createElement(DropdownMenuButton, { isActive: sortDirection === 'desc', caption: i18n.pickerFilterHeader.sortDescending, icon: ForwardRef$x, onClick: sortDesc })));
|
|
2132
2148
|
};
|
|
2133
2149
|
const SortingPanel = React__namespace.default.memo(SortingPanelImpl);
|
|
2134
2150
|
|
|
@@ -2150,54 +2166,54 @@ const ColumnHeaderDropdownImpl = (props) => {
|
|
|
2150
2166
|
};
|
|
2151
2167
|
const ColumnHeaderDropdown = React__namespace.default.memo(ColumnHeaderDropdownImpl);
|
|
2152
2168
|
|
|
2153
|
-
var _path$
|
|
2154
|
-
function _extends$
|
|
2169
|
+
var _path$l;
|
|
2170
|
+
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); }
|
|
2155
2171
|
var SvgNotificationDone24 = function SvgNotificationDone24(props, ref) {
|
|
2156
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2172
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
|
|
2157
2173
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2158
2174
|
width: 24,
|
|
2159
2175
|
height: 24,
|
|
2160
2176
|
viewBox: "0 0 24 24",
|
|
2161
2177
|
ref: ref
|
|
2162
|
-
}, props), _path$
|
|
2178
|
+
}, props), _path$l || (_path$l = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2163
2179
|
fillRule: "evenodd",
|
|
2164
2180
|
d: "m9.727 16.075-4.295-4.388L4 13.149 9.727 19 22 6.463 20.568 5 9.728 16.075z",
|
|
2165
2181
|
clipRule: "evenodd"
|
|
2166
2182
|
})));
|
|
2167
2183
|
};
|
|
2168
|
-
var ForwardRef$
|
|
2184
|
+
var ForwardRef$m = /*#__PURE__*/React.forwardRef(SvgNotificationDone24);
|
|
2169
2185
|
|
|
2170
|
-
var _path$
|
|
2171
|
-
function _extends$
|
|
2186
|
+
var _path$k;
|
|
2187
|
+
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); }
|
|
2172
2188
|
var SvgNotificationDone18 = function SvgNotificationDone18(props, ref) {
|
|
2173
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2189
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
|
|
2174
2190
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2175
2191
|
width: 18,
|
|
2176
2192
|
height: 18,
|
|
2177
2193
|
viewBox: "0 0 18 18",
|
|
2178
2194
|
ref: ref
|
|
2179
|
-
}, props), _path$
|
|
2195
|
+
}, props), _path$k || (_path$k = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2180
2196
|
fillRule: "evenodd",
|
|
2181
2197
|
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",
|
|
2182
2198
|
clipRule: "evenodd"
|
|
2183
2199
|
})));
|
|
2184
2200
|
};
|
|
2185
|
-
var ForwardRef$
|
|
2201
|
+
var ForwardRef$l = /*#__PURE__*/React.forwardRef(SvgNotificationDone18);
|
|
2186
2202
|
|
|
2187
|
-
var _path$
|
|
2188
|
-
function _extends$
|
|
2203
|
+
var _path$j;
|
|
2204
|
+
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); }
|
|
2189
2205
|
var SvgNotificationDone12 = function SvgNotificationDone12(props, ref) {
|
|
2190
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2206
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
|
|
2191
2207
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2192
2208
|
width: 12,
|
|
2193
2209
|
height: 12,
|
|
2194
2210
|
viewBox: "0 0 12 12",
|
|
2195
2211
|
ref: ref
|
|
2196
|
-
}, props), _path$
|
|
2212
|
+
}, props), _path$j || (_path$j = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2197
2213
|
d: "M11 3.6 9.462 2 4.846 6.8 2.538 4.4 1 6l3.846 4L11 3.6z"
|
|
2198
2214
|
})));
|
|
2199
2215
|
};
|
|
2200
|
-
var ForwardRef$
|
|
2216
|
+
var ForwardRef$k = /*#__PURE__*/React.forwardRef(SvgNotificationDone12);
|
|
2201
2217
|
|
|
2202
2218
|
var css$s = {"render-item":"DataPickerRow-module_render-item__Xg-KM","icon-wrapper":"DataPickerRow-module_icon-wrapper__2iHGZ","picker-row":"DataPickerRow-module_picker-row__dKixb","icon-default":"DataPickerRow-module_icon-default__gW-Xp","icon-primary":"DataPickerRow-module_icon-primary__QfDbw","renderItem":"DataPickerRow-module_render-item__Xg-KM","iconWrapper":"DataPickerRow-module_icon-wrapper__2iHGZ","pickerRow":"DataPickerRow-module_picker-row__dKixb","iconDefault":"DataPickerRow-module_icon-default__gW-Xp","iconPrimary":"DataPickerRow-module_icon-primary__QfDbw"};
|
|
2203
2219
|
|
|
@@ -2207,15 +2223,15 @@ class DataPickerRow extends React__namespace.Component {
|
|
|
2207
2223
|
this.getIcon = (size) => {
|
|
2208
2224
|
switch (size) {
|
|
2209
2225
|
case '24':
|
|
2210
|
-
return ForwardRef$j;
|
|
2211
|
-
case '30':
|
|
2212
2226
|
return ForwardRef$k;
|
|
2227
|
+
case '30':
|
|
2228
|
+
return ForwardRef$l;
|
|
2213
2229
|
case '36':
|
|
2214
|
-
return ForwardRef$k;
|
|
2215
|
-
case '42':
|
|
2216
2230
|
return ForwardRef$l;
|
|
2231
|
+
case '42':
|
|
2232
|
+
return ForwardRef$m;
|
|
2217
2233
|
default:
|
|
2218
|
-
return ForwardRef$
|
|
2234
|
+
return ForwardRef$l;
|
|
2219
2235
|
}
|
|
2220
2236
|
};
|
|
2221
2237
|
this.column = {
|
|
@@ -2245,22 +2261,22 @@ const MobileDropdownWrapper = (props) => {
|
|
|
2245
2261
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
2246
2262
|
isVisible && React__namespace.default.createElement(DataPickerHeader, { title: props.title, close: props.close }),
|
|
2247
2263
|
props.children,
|
|
2248
|
-
isVisible && React__namespace.default.createElement(LinkButton, { caption:
|
|
2264
|
+
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$r.done, size: "48" })));
|
|
2249
2265
|
};
|
|
2250
2266
|
|
|
2251
2267
|
var css$q = {"sub-header-wrapper":"PickerModal-module_sub-header-wrapper__PVjxt","switch":"PickerModal-module_switch__4ZWZ-","no-found-modal-container":"PickerModal-module_no-found-modal-container__zufRW","no-found-modal-container-icon":"PickerModal-module_no-found-modal-container-icon__RXBf4","no-found-modal-container-text":"PickerModal-module_no-found-modal-container-text__TgKzv","subHeaderWrapper":"PickerModal-module_sub-header-wrapper__PVjxt","$switch$":"PickerModal-module_switch__4ZWZ-","noFoundModalContainer":"PickerModal-module_no-found-modal-container__zufRW","noFoundModalContainerIcon":"PickerModal-module_no-found-modal-container-icon__RXBf4","noFoundModalContainerText":"PickerModal-module_no-found-modal-container-text__TgKzv"};
|
|
2252
2268
|
|
|
2253
|
-
var _path$
|
|
2254
|
-
function _extends$
|
|
2269
|
+
var _path$i, _path2;
|
|
2270
|
+
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); }
|
|
2255
2271
|
var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
2256
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2272
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
|
|
2257
2273
|
width: 66,
|
|
2258
2274
|
height: 67,
|
|
2259
2275
|
viewBox: "0 0 66 67",
|
|
2260
2276
|
fill: "none",
|
|
2261
2277
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2262
2278
|
ref: ref
|
|
2263
|
-
}, props), _path$
|
|
2279
|
+
}, props), _path$i || (_path$i = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2264
2280
|
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",
|
|
2265
2281
|
fill: "#EBEDF5"
|
|
2266
2282
|
})), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -2270,14 +2286,14 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
|
2270
2286
|
fill: "#6C6F80"
|
|
2271
2287
|
})));
|
|
2272
2288
|
};
|
|
2273
|
-
var ForwardRef$
|
|
2289
|
+
var ForwardRef$j = /*#__PURE__*/React.forwardRef(SvgSearchWithBackground);
|
|
2274
2290
|
|
|
2275
2291
|
class PickerModalImpl extends uuiComponents.PickerModalBase {
|
|
2276
2292
|
constructor() {
|
|
2277
2293
|
super(...arguments);
|
|
2278
2294
|
this.renderNotFound = () => {
|
|
2279
2295
|
return this.props.renderNotFound ? (this.props.renderNotFound({ search: this.state.dataSourceState.search, onClose: () => this.props.success(null) })) : (React__namespace.createElement("div", { className: css$q.noFoundModalContainer },
|
|
2280
|
-
React__namespace.createElement(uuiComponents.IconContainer, { cx: css$q.noFoundModalContainerIcon, icon: ForwardRef$
|
|
2296
|
+
React__namespace.createElement(uuiComponents.IconContainer, { cx: css$q.noFoundModalContainerIcon, icon: ForwardRef$j }),
|
|
2281
2297
|
React__namespace.createElement(Text, { cx: css$q.noFoundModalContainerText, font: "semibold", fontSize: "16", lineHeight: "24", color: "primary", size: "36" }, i18n.dataPickerBody.noRecordsMessage),
|
|
2282
2298
|
React__namespace.createElement(Text, { cx: css$q.noFoundModalContainerText, fontSize: "12", lineHeight: "18", font: "regular", color: "primary", size: "36" }, i18n.dataPickerBody.noRecordsSubTitle)));
|
|
2283
2299
|
};
|
|
@@ -2376,79 +2392,79 @@ const Tag = uuiCore.withMods(uuiComponents.Button, applyTagMods, (props) => ({
|
|
|
2376
2392
|
|
|
2377
2393
|
var css$m = {"root":"Paginator-module_root__d1jwS","spacer":"Paginator-module_spacer__8AhYN","mode-ghost":"Paginator-module_mode-ghost__-NfIp","size-24":"Paginator-module_size-24__zPh-d","size-30":"Paginator-module_size-30__R4PVg","navigation-size-24":"Paginator-module_navigation-size-24__gxUQ8","navigation-size-30":"Paginator-module_navigation-size-30__ZRsLp","modeGhost":"Paginator-module_mode-ghost__-NfIp","size24":"Paginator-module_size-24__zPh-d","size30":"Paginator-module_size-30__R4PVg","navigationSize24":"Paginator-module_navigation-size-24__gxUQ8","navigationSize30":"Paginator-module_navigation-size-30__ZRsLp"};
|
|
2378
2394
|
|
|
2379
|
-
var _path$
|
|
2380
|
-
function _extends$
|
|
2395
|
+
var _path$h;
|
|
2396
|
+
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); }
|
|
2381
2397
|
var SvgNavigationChevronLeft12 = function SvgNavigationChevronLeft12(props, ref) {
|
|
2382
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2398
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
|
|
2383
2399
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2384
2400
|
width: 12,
|
|
2385
2401
|
height: 12,
|
|
2386
2402
|
viewBox: "0 0 12 12",
|
|
2387
2403
|
ref: ref
|
|
2388
|
-
}, props), _path$
|
|
2404
|
+
}, props), _path$h || (_path$h = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2389
2405
|
fillRule: "evenodd",
|
|
2390
2406
|
d: "M7.705 3.705 7 3 4 6l3 3 .705-.705L5.415 6l2.29-2.295z",
|
|
2391
2407
|
clipRule: "evenodd"
|
|
2392
2408
|
})));
|
|
2393
2409
|
};
|
|
2394
|
-
var ForwardRef$
|
|
2410
|
+
var ForwardRef$i = /*#__PURE__*/React.forwardRef(SvgNavigationChevronLeft12);
|
|
2395
2411
|
|
|
2396
|
-
var _path$
|
|
2397
|
-
function _extends$
|
|
2412
|
+
var _path$g;
|
|
2413
|
+
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); }
|
|
2398
2414
|
var SvgNavigationChevronRight12 = function SvgNavigationChevronRight12(props, ref) {
|
|
2399
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2415
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
|
|
2400
2416
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2401
2417
|
width: 12,
|
|
2402
2418
|
height: 12,
|
|
2403
2419
|
viewBox: "0 0 12 12",
|
|
2404
2420
|
ref: ref
|
|
2405
|
-
}, props), _path$
|
|
2421
|
+
}, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2406
2422
|
fillRule: "evenodd",
|
|
2407
2423
|
d: "m5 3-.705.705L6.585 6l-2.29 2.295L5 9l3-3-3-3z",
|
|
2408
2424
|
clipRule: "evenodd"
|
|
2409
2425
|
})));
|
|
2410
2426
|
};
|
|
2411
|
-
var ForwardRef$
|
|
2427
|
+
var ForwardRef$h = /*#__PURE__*/React.forwardRef(SvgNavigationChevronRight12);
|
|
2412
2428
|
|
|
2413
|
-
var _path$
|
|
2414
|
-
function _extends$
|
|
2429
|
+
var _path$f;
|
|
2430
|
+
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); }
|
|
2415
2431
|
var SvgNavigationChevronLeft18 = function SvgNavigationChevronLeft18(props, ref) {
|
|
2416
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2432
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
|
|
2417
2433
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2418
2434
|
width: 18,
|
|
2419
2435
|
height: 18,
|
|
2420
2436
|
viewBox: "0 0 18 18",
|
|
2421
2437
|
ref: ref
|
|
2422
|
-
}, props), _path$
|
|
2438
|
+
}, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2423
2439
|
fillRule: "evenodd",
|
|
2424
2440
|
d: "M11.557 5.558 10.5 4.5 6 9l4.5 4.5 1.057-1.057L8.123 9l3.434-3.442z",
|
|
2425
2441
|
clipRule: "evenodd"
|
|
2426
2442
|
})));
|
|
2427
2443
|
};
|
|
2428
|
-
var ForwardRef$
|
|
2444
|
+
var ForwardRef$g = /*#__PURE__*/React.forwardRef(SvgNavigationChevronLeft18);
|
|
2429
2445
|
|
|
2430
|
-
var _path$
|
|
2431
|
-
function _extends$
|
|
2446
|
+
var _path$e;
|
|
2447
|
+
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); }
|
|
2432
2448
|
var SvgNavigationChevronRight18 = function SvgNavigationChevronRight18(props, ref) {
|
|
2433
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2449
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
|
|
2434
2450
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2435
2451
|
width: 18,
|
|
2436
2452
|
height: 18,
|
|
2437
2453
|
viewBox: "0 0 18 18",
|
|
2438
2454
|
ref: ref
|
|
2439
|
-
}, props), _path$
|
|
2455
|
+
}, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2440
2456
|
fillRule: "evenodd",
|
|
2441
2457
|
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",
|
|
2442
2458
|
clipRule: "evenodd"
|
|
2443
2459
|
})));
|
|
2444
2460
|
};
|
|
2445
|
-
var ForwardRef$
|
|
2461
|
+
var ForwardRef$f = /*#__PURE__*/React.forwardRef(SvgNavigationChevronRight18);
|
|
2446
2462
|
|
|
2447
2463
|
function Paginator(props) {
|
|
2448
2464
|
const renderPaginator = (params) => {
|
|
2449
2465
|
var _a, _b;
|
|
2450
2466
|
return (React__namespace.default.createElement("nav", Object.assign({ role: "navigation", className: css$m.root }, params.rawProps),
|
|
2451
|
-
React__namespace.default.createElement(Button, { cx: css$m[`navigation-size-${(_a = params.size) !== null && _a !== void 0 ? _a : '30'}`], size: params.size, icon: params.size === '30' ? ForwardRef$
|
|
2467
|
+
React__namespace.default.createElement(Button, { cx: css$m[`navigation-size-${(_a = params.size) !== null && _a !== void 0 ? _a : '30'}`], size: params.size, icon: params.size === '30' ? ForwardRef$g : ForwardRef$i, onClick: params.goToPrev, isDisabled: params.isFirst, mode: "outline", color: "secondary" }),
|
|
2452
2468
|
params.pages.map((page, index) => {
|
|
2453
2469
|
var _a, _b;
|
|
2454
2470
|
if (page.type === 'spacer') {
|
|
@@ -2458,7 +2474,7 @@ function Paginator(props) {
|
|
|
2458
2474
|
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$m[`size-${(_b = params.size) !== null && _b !== void 0 ? _b : '30'}`], css$m[`mode-${!page.isActive && 'ghost'}`]), size: params.size, key: page.pageNumber, caption: page.pageNumber, onClick: () => { var _a; return (_a = page.onClick) === null || _a === void 0 ? void 0 : _a.call(page); }, rawProps: { 'aria-current': page.isActive }, mode: (page.isActive && 'outline') || 'ghost', color: "primary" }));
|
|
2459
2475
|
}
|
|
2460
2476
|
}),
|
|
2461
|
-
React__namespace.default.createElement(Button, { cx: css$m[`navigation-size-${(_b = params.size) !== null && _b !== void 0 ? _b : '30'}`], size: params.size, icon: params.size === '30' ? ForwardRef$
|
|
2477
|
+
React__namespace.default.createElement(Button, { cx: css$m[`navigation-size-${(_b = params.size) !== null && _b !== void 0 ? _b : '30'}`], size: params.size, icon: params.size === '30' ? ForwardRef$f : ForwardRef$h, onClick: params.goToNext, isDisabled: params.isLast, mode: "outline", color: "secondary" })));
|
|
2462
2478
|
};
|
|
2463
2479
|
return React__namespace.default.createElement(uuiComponents.Paginator, Object.assign({}, props, { render: renderPaginator }));
|
|
2464
2480
|
}
|
|
@@ -2670,16 +2686,19 @@ PickerList.contextType = uuiCore.UuiContext;
|
|
|
2670
2686
|
|
|
2671
2687
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
2672
2688
|
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
};
|
|
2689
|
+
function getDefaultExportFromCjs (x) {
|
|
2690
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
2691
|
+
}
|
|
2692
|
+
|
|
2693
|
+
var dayjs_min = {exports: {}};
|
|
2678
2694
|
|
|
2679
2695
|
(function (module, exports) {
|
|
2680
|
-
!function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",f="month",h="quarter",c="year",d="date",$="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},g={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,f),s=n-i<0,u=e.clone().add(r+(s?-1:1),f);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:f,y:c,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},D="en",v={};v[D]=M;var p=function(t){return t instanceof _},S=function(t,e,n){var r;if(!t)return D;if("string"==typeof t)v[t]&&(r=t),e&&(v[t]=e,r=t);else {var i=t.name;v[i]=t,r=i;}return !n&&r&&(D=r),r||!n&&D},w=function(t,e){if(p(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},O=g;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t);}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(l);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return O},m.isValid=function(){return !(this.$d.toString()===$)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<w(t)},m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!O.u(e)||e,h=O.p(t),$=function(t,e){var i=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},l=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,g="set"+(this.$u?"UTC":"");switch(h){case c:return r?$(1,0):$(31,11);case f:return r?$(1,M):$(0,M+1);case o:var D=this.$locale().weekStart||0,v=(y<D?y+7:y)-D;return $(r?m-v:m+(6-v),M);case a:case d:return l(g+"Hours",0);case u:return l(g+"Minutes",1);case s:return l(g+"Seconds",2);case i:return l(g+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=O.p(t),h="set"+(this.$u?"UTC":""),$=(n={},n[a]=h+"Date",n[d]=h+"Date",n[f]=h+"Month",n[c]=h+"FullYear",n[u]=h+"Hours",n[s]=h+"Minutes",n[i]=h+"Seconds",n[r]=h+"Milliseconds",n)[o],l=o===a?this.$D+(e-this.$W):e;if(o===f||o===c){var y=this.clone().set(d,1);y.$d[$](l),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else $&&this.$d[$](l);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[O.p(t)]()},m.add=function(r,h){var d,$=this;r=Number(r);var l=O.p(h),y=function(t){var e=w($);return O.w(e.date(e.date()+Math.round(t*r)),$)};if(l===f)return this.set(f,this.$M+r);if(l===c)return this.set(c,this.$y+r);if(l===a)return y(1);if(l===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[l]||1,m=this.$d.getTime()+r*M;return O.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||$;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,f=n.months,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].substr(0,s)},c=function(t){return O.s(s%12||12,t,"0")},d=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},l={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:O.s(a+1,2,"0"),MMM:h(n.monthsShort,a,f,3),MMMM:h(f,a),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:h(n.weekdaysMin,this.$W,o,2),ddd:h(n.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(s),HH:O.s(s,2,"0"),h:c(1),hh:c(2),a:d(s,u,!0),A:d(s,u,!1),m:String(u),mm:O.s(u,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:i};return r.replace(y,(function(t,e){return e||l[t]||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,$){var l,y=O.p(d),M=w(r),m=(M.utcOffset()-this.utcOffset())*e,g=this-M,D=O.m(this,M);return D=(l={},l[c]=D/12,l[f]=D,l[h]=D/3,l[o]=(g-m)/6048e5,l[a]=(g-m)/864e5,l[u]=g/n,l[s]=g/e,l[i]=g/t,l)[y]||g,$?D:O.a(D)},m.daysInMonth=function(){return this.endOf(f).$D},m.$locale=function(){return v[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),b=_.prototype;return w.prototype=b,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",f],["$y",c],["$D",d]].forEach((function(t){b[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),w.extend=function(t,e){return t.$i||(t(e,_,w),t.$i=!0),w},w.locale=S,w.isDayjs=p,w.unix=function(t){return w(1e3*t)},w.en=v[D],w.Ls=v,w.p={},w}));
|
|
2696
|
+
!function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",f="month",h="quarter",c="year",d="date",$="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},g={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,f),s=n-i<0,u=e.clone().add(r+(s?-1:1),f);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:f,y:c,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},D="en",v={};v[D]=M;var p=function(t){return t instanceof _},S=function(t,e,n){var r;if(!t)return D;if("string"==typeof t)v[t]&&(r=t),e&&(v[t]=e,r=t);else {var i=t.name;v[i]=t,r=i;}return !n&&r&&(D=r),r||!n&&D},w=function(t,e){if(p(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},O=g;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t);}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(l);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return O},m.isValid=function(){return !(this.$d.toString()===$)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<w(t)},m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!O.u(e)||e,h=O.p(t),$=function(t,e){var i=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},l=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,g="set"+(this.$u?"UTC":"");switch(h){case c:return r?$(1,0):$(31,11);case f:return r?$(1,M):$(0,M+1);case o:var D=this.$locale().weekStart||0,v=(y<D?y+7:y)-D;return $(r?m-v:m+(6-v),M);case a:case d:return l(g+"Hours",0);case u:return l(g+"Minutes",1);case s:return l(g+"Seconds",2);case i:return l(g+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=O.p(t),h="set"+(this.$u?"UTC":""),$=(n={},n[a]=h+"Date",n[d]=h+"Date",n[f]=h+"Month",n[c]=h+"FullYear",n[u]=h+"Hours",n[s]=h+"Minutes",n[i]=h+"Seconds",n[r]=h+"Milliseconds",n)[o],l=o===a?this.$D+(e-this.$W):e;if(o===f||o===c){var y=this.clone().set(d,1);y.$d[$](l),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else $&&this.$d[$](l);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[O.p(t)]()},m.add=function(r,h){var d,$=this;r=Number(r);var l=O.p(h),y=function(t){var e=w($);return O.w(e.date(e.date()+Math.round(t*r)),$)};if(l===f)return this.set(f,this.$M+r);if(l===c)return this.set(c,this.$y+r);if(l===a)return y(1);if(l===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[l]||1,m=this.$d.getTime()+r*M;return O.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||$;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,f=n.months,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].substr(0,s)},c=function(t){return O.s(s%12||12,t,"0")},d=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},l={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:O.s(a+1,2,"0"),MMM:h(n.monthsShort,a,f,3),MMMM:h(f,a),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:h(n.weekdaysMin,this.$W,o,2),ddd:h(n.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(s),HH:O.s(s,2,"0"),h:c(1),hh:c(2),a:d(s,u,!0),A:d(s,u,!1),m:String(u),mm:O.s(u,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:i};return r.replace(y,(function(t,e){return e||l[t]||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,$){var l,y=O.p(d),M=w(r),m=(M.utcOffset()-this.utcOffset())*e,g=this-M,D=O.m(this,M);return D=(l={},l[c]=D/12,l[f]=D,l[h]=D/3,l[o]=(g-m)/6048e5,l[a]=(g-m)/864e5,l[u]=g/n,l[s]=g/e,l[i]=g/t,l)[y]||g,$?D:O.a(D)},m.daysInMonth=function(){return this.endOf(f).$D},m.$locale=function(){return v[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),b=_.prototype;return w.prototype=b,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",f],["$y",c],["$D",d]].forEach((function(t){b[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),w.extend=function(t,e){return t.$i||(t(e,_,w),t.$i=!0),w},w.locale=S,w.isDayjs=p,w.unix=function(t){return w(1e3*t)},w.en=v[D],w.Ls=v,w.p={},w}));
|
|
2681
2697
|
} (dayjs_min));
|
|
2682
2698
|
|
|
2699
|
+
var dayjs_minExports = dayjs_min.exports;
|
|
2700
|
+
var dayjs = /*@__PURE__*/getDefaultExportFromCjs(dayjs_minExports);
|
|
2701
|
+
|
|
2683
2702
|
var css$h = {"root":"FilterPanelItemToggler-module_root__6HJLW","title-wrapper":"FilterPanelItemToggler-module_title-wrapper__07dD8","title":"FilterPanelItemToggler-module_title__JaXtY","text-wrapper":"FilterPanelItemToggler-module_text-wrapper__kRoKs","selection":"FilterPanelItemToggler-module_selection__K9tGx","postfix":"FilterPanelItemToggler-module_postfix__MpS3n","selected":"FilterPanelItemToggler-module_selected__FEPzr","titleWrapper":"FilterPanelItemToggler-module_title-wrapper__07dD8","textWrapper":"FilterPanelItemToggler-module_text-wrapper__kRoKs"};
|
|
2684
2703
|
|
|
2685
2704
|
const defaultSize = '36';
|
|
@@ -2691,16 +2710,16 @@ const FilterPanelItemToggler = React__namespace.forwardRef((props, ref) => {
|
|
|
2691
2710
|
e.preventDefault();
|
|
2692
2711
|
(_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
2693
2712
|
};
|
|
2694
|
-
const getTitle = props.predicateName ? `${props.title} ${props.predicateName}` : `${props.title}
|
|
2713
|
+
const getTitle = props.predicateName ? `${props.title} ${props.predicateName}` : `${props.title}${props.selection ? ':' : ''}`;
|
|
2695
2714
|
return (React__namespace.createElement(uuiComponents.FlexRow, Object.assign({}, props, { rawProps: {
|
|
2696
2715
|
style: { maxWidth: `${props.maxWidth ? props.maxWidth + 'px' : 'auto'}` },
|
|
2697
2716
|
role: 'button',
|
|
2698
2717
|
}, cx: cx__default.default(css$h.root, uuiCore.uuiElement.inputBox, uuiCore.uuiMarkers.clickable, props.isOpen && uuiCore.uuiMod.opened, ['size-' + (props.size || defaultSize)], props.cx), onClick: togglerPickerOpened, ref: ref }),
|
|
2699
2718
|
React__namespace.createElement(uuiComponents.FlexRow, { cx: css$h.titleWrapper },
|
|
2700
|
-
React__namespace.createElement(Text, { cx: css$h.title }, getTitle),
|
|
2701
|
-
React__namespace.createElement("div", { className: css$h.textWrapper },
|
|
2702
|
-
React__namespace.createElement(Text, { color: "brand", cx: css$h.selection }, props.selection),
|
|
2703
|
-
props.postfix && (React__namespace.createElement(Text, { color: "brand", cx: css$h.postfix }, props.postfix)))),
|
|
2719
|
+
React__namespace.createElement(Text, { size: props.size, cx: css$h.title }, getTitle),
|
|
2720
|
+
props.selection && (React__namespace.createElement("div", { className: css$h.textWrapper },
|
|
2721
|
+
React__namespace.createElement(Text, { color: "brand", size: props.size, cx: css$h.selection }, props.selection),
|
|
2722
|
+
props.postfix && (React__namespace.createElement(Text, { color: "brand", size: props.size, cx: css$h.postfix }, props.postfix))))),
|
|
2704
2723
|
!props.isDisabled && React__namespace.createElement(uuiComponents.IconContainer, { icon: systemIcons[props.size || defaultSize].foldingArrow, flipY: props.isOpen, cx: "uui-icon-dropdown" })));
|
|
2705
2724
|
});
|
|
2706
2725
|
|
|
@@ -2738,16 +2757,17 @@ class FilterPickerBody extends uuiComponents.PickerInputBase {
|
|
|
2738
2757
|
const maxHeight = uuiCore.isMobile() ? document.documentElement.clientHeight : this.props.dropdownHeight || pickerHeight;
|
|
2739
2758
|
const minBodyWidth = uuiCore.isMobile() ? document.documentElement.clientWidth : this.props.minBodyWidth || pickerWidth;
|
|
2740
2759
|
return (React__namespace.createElement(Panel, { style: { width: minBodyWidth }, rawProps: { tabIndex: -1 }, cx: [uuiCore.uuiMarkers.lockFocus] },
|
|
2741
|
-
React__namespace.createElement(DataPickerBody, Object.assign({}, props, { selectionMode: this.props.selectionMode, rows: renderedDataRows, maxHeight: maxHeight, searchSize: "36", editMode: "dropdown"
|
|
2760
|
+
React__namespace.createElement(DataPickerBody, Object.assign({}, props, { selectionMode: this.props.selectionMode, rows: renderedDataRows, maxHeight: maxHeight, searchSize: "36", editMode: "dropdown" })),
|
|
2742
2761
|
this.renderFooter()));
|
|
2743
2762
|
}
|
|
2744
2763
|
render() {
|
|
2764
|
+
var _a;
|
|
2745
2765
|
const rows = this.getRows();
|
|
2746
|
-
return this.renderBody(Object.assign(Object.assign({}, this.getPickerBodyProps(rows)), this.getListProps()), rows);
|
|
2766
|
+
return this.renderBody(Object.assign(Object.assign(Object.assign({}, this.getPickerBodyProps(rows)), this.getListProps()), { showSearch: (_a = this.props.showSearch) !== null && _a !== void 0 ? _a : true }), rows);
|
|
2747
2767
|
}
|
|
2748
2768
|
}
|
|
2749
2769
|
|
|
2750
|
-
class
|
|
2770
|
+
class FilterDatePickerBody extends uuiComponents.BaseDatePicker {
|
|
2751
2771
|
constructor() {
|
|
2752
2772
|
super(...arguments);
|
|
2753
2773
|
this.state = Object.assign(Object.assign({}, super.getValue()), { isOpen: false, inputValue: null });
|
|
@@ -2770,7 +2790,7 @@ class FilterDataPickerBody extends uuiComponents.BaseDatePicker {
|
|
|
2770
2790
|
React__namespace.default.createElement(DatePickerBody, { filter: this.props.filter, value: this.getValue(), setSelectedDate: this.setSelectedDate, setDisplayedDateAndView: this.setDisplayedDateAndView, changeIsOpen: this.onToggleHandler, renderDay: this.props.renderDay, isHoliday: this.props.isHoliday, rawProps: (_a = this.props.rawProps) === null || _a === void 0 ? void 0 : _a.body })),
|
|
2771
2791
|
React__namespace.default.createElement(FlexCell, { alignSelf: "stretch" },
|
|
2772
2792
|
React__namespace.default.createElement(FlexRow, { padding: "24", vPadding: "12" },
|
|
2773
|
-
React__namespace.default.createElement(Text, null, this.state.selectedDate ?
|
|
2793
|
+
React__namespace.default.createElement(Text, null, this.state.selectedDate ? dayjs(this.state.selectedDate).format('MMM DD, YYYY') : ''),
|
|
2774
2794
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
2775
2795
|
React__namespace.default.createElement(LinkButton, { isDisabled: !this.state.selectedDate, caption: i18n.filterToolbar.datePicker.clearCaption, onClick: this.handleCancel })))));
|
|
2776
2796
|
}
|
|
@@ -2849,17 +2869,17 @@ function FilterNumericBody(props) {
|
|
|
2849
2869
|
if (isInRangePredicate) {
|
|
2850
2870
|
const value = props.value;
|
|
2851
2871
|
return (React__namespace.default.createElement("div", null,
|
|
2852
|
-
React__namespace.default.createElement(FlexRow, { padding: "12", vPadding: "24", alignItems: "center", spacing: "12", borderBottom: true },
|
|
2872
|
+
React__namespace.default.createElement(FlexRow, { padding: "12", vPadding: "24", alignItems: "center", spacing: "12", borderBottom: true, rawProps: { style: { paddingTop: '3px' } } },
|
|
2853
2873
|
React__namespace.default.createElement(FlexCell, { width: "100%" },
|
|
2854
|
-
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: "
|
|
2874
|
+
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 } })),
|
|
2855
2875
|
React__namespace.default.createElement(FlexCell, { width: "100%" },
|
|
2856
|
-
React__namespace.default.createElement(NumericInput, { value: (_b = value === null || value === void 0 ? void 0 : value.to) !== null && _b !== void 0 ? _b : null, onValueChange: rangeValueHandler('to'), size: "
|
|
2876
|
+
React__namespace.default.createElement(NumericInput, { value: (_b = value === null || value === void 0 ? void 0 : value.to) !== null && _b !== void 0 ? _b : null, onValueChange: rangeValueHandler('to'), size: "36", placeholder: "Max", formatOptions: { maximumFractionDigits: 2 } }))),
|
|
2857
2877
|
renderFooter()));
|
|
2858
2878
|
}
|
|
2859
2879
|
return (React__namespace.default.createElement("div", null,
|
|
2860
|
-
React__namespace.default.createElement(FlexRow, { padding: "12", vPadding: "24", alignItems: "center", borderBottom: true },
|
|
2880
|
+
React__namespace.default.createElement(FlexRow, { padding: "12", vPadding: "24", alignItems: "center", borderBottom: true, rawProps: { style: { paddingTop: '3px' } } },
|
|
2861
2881
|
React__namespace.default.createElement(FlexCell, { width: 130 },
|
|
2862
|
-
React__namespace.default.createElement(NumericInput, { value: typeof props.value === 'number' ? props.value : null, onValueChange: props.onValueChange, size: "
|
|
2882
|
+
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 } }))),
|
|
2863
2883
|
renderFooter()));
|
|
2864
2884
|
}
|
|
2865
2885
|
|
|
@@ -2872,29 +2892,29 @@ function FilterItemBody(props) {
|
|
|
2872
2892
|
case 'multiPicker':
|
|
2873
2893
|
return React__namespace.default.createElement(FilterPickerBody, Object.assign({}, props, { selectionMode: "multi", valueType: "id" }));
|
|
2874
2894
|
case 'datePicker':
|
|
2875
|
-
return React__namespace.default.createElement(
|
|
2895
|
+
return React__namespace.default.createElement(FilterDatePickerBody, Object.assign({}, props, { format: props.format || 'DD/MM/YYYY' }));
|
|
2876
2896
|
case 'rangeDatePicker':
|
|
2877
2897
|
return React__namespace.default.createElement(FilterRangeDatePickerBody, Object.assign({}, props, { format: props.format || 'DD/MM/YYYY', value: props.value || { from: null, to: null } }));
|
|
2878
2898
|
}
|
|
2879
2899
|
}
|
|
2880
2900
|
|
|
2881
|
-
var _path$
|
|
2882
|
-
function _extends$
|
|
2901
|
+
var _path$d;
|
|
2902
|
+
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); }
|
|
2883
2903
|
var SvgActionDeleteforever12 = function SvgActionDeleteforever12(props, ref) {
|
|
2884
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2904
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
|
|
2885
2905
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2886
2906
|
width: 12,
|
|
2887
2907
|
height: 12,
|
|
2888
2908
|
viewBox: "0 0 18 18",
|
|
2889
2909
|
ref: ref
|
|
2890
|
-
}, props), _path$
|
|
2910
|
+
}, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2891
2911
|
fillRule: "evenodd",
|
|
2892
2912
|
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"
|
|
2893
2913
|
})));
|
|
2894
2914
|
};
|
|
2895
|
-
var ForwardRef$
|
|
2915
|
+
var ForwardRef$e = /*#__PURE__*/React.forwardRef(SvgActionDeleteforever12);
|
|
2896
2916
|
|
|
2897
|
-
var css$f = {"header":"FiltersPanelItem-module_header__hqSIh","removeButton":"FiltersPanelItem-module_removeButton__dWD-9","panel":"FiltersPanelItem-module_panel__EfHsL"};
|
|
2917
|
+
var css$f = {"header":"FiltersPanelItem-module_header__hqSIh","removeButton":"FiltersPanelItem-module_removeButton__dWD-9","with-search":"FiltersPanelItem-module_with-search__sPAwy","panel":"FiltersPanelItem-module_panel__EfHsL","withSearch":"FiltersPanelItem-module_with-search__sPAwy"};
|
|
2898
2918
|
|
|
2899
2919
|
function FiltersToolbarItemImpl(props) {
|
|
2900
2920
|
const isPickersType = (props === null || props === void 0 ? void 0 : props.type) === 'multiPicker' || (props === null || props === void 0 ? void 0 : props.type) === 'singlePicker';
|
|
@@ -2967,16 +2987,21 @@ function FiltersToolbarItemImpl(props) {
|
|
|
2967
2987
|
}
|
|
2968
2988
|
setPredicate(val);
|
|
2969
2989
|
};
|
|
2970
|
-
const renderHeader = () =>
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2990
|
+
const renderHeader = (hideTitle) => {
|
|
2991
|
+
var _a;
|
|
2992
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default(css$f.header, isPickersType && ((_a = props.showSearch) !== null && _a !== void 0 ? _a : css$f.withSearch)) },
|
|
2993
|
+
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))),
|
|
2994
|
+
!(props === null || props === void 0 ? void 0 : props.isAlwaysVisible) && (React__namespace.default.createElement(LinkButton, { cx: css$f.removeButton, caption: i18n.filterToolbar.datePicker.removeCaption, onClick: removeOnclickHandler, size: "24", icon: ForwardRef$e }))));
|
|
2995
|
+
};
|
|
2996
|
+
const renderBody = (dropdownProps) => {
|
|
2997
|
+
const hideHeaderTitle = isPickersType && isMobileScreen;
|
|
2998
|
+
return (React__namespace.default.createElement(DropdownContainer, Object.assign({}, dropdownProps),
|
|
2999
|
+
React__namespace.default.createElement(Panel, { cx: css$f.panel }, isPickersType ? (React__namespace.default.createElement(MobileDropdownWrapper, { title: props.title, close: () => isOpenChange(false) },
|
|
3000
|
+
renderHeader(hideHeaderTitle),
|
|
2977
3001
|
React__namespace.default.createElement(FilterItemBody, Object.assign({}, props, dropdownProps, { selectedPredicate: predicate, value: getValue(), onValueChange: onValueChange })))) : (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
2978
|
-
renderHeader(),
|
|
2979
|
-
React__namespace.default.createElement(FilterItemBody, Object.assign({}, props, dropdownProps, { selectedPredicate: predicate, value: getValue(), onValueChange: onValueChange })))))))
|
|
3002
|
+
renderHeader(hideHeaderTitle),
|
|
3003
|
+
React__namespace.default.createElement(FilterItemBody, Object.assign({}, props, dropdownProps, { selectedPredicate: predicate, value: getValue(), onValueChange: onValueChange })))))));
|
|
3004
|
+
};
|
|
2980
3005
|
const getValue = () => {
|
|
2981
3006
|
var _a;
|
|
2982
3007
|
return predicate ? (_a = props.value) === null || _a === void 0 ? void 0 : _a[predicate] : props.value;
|
|
@@ -3004,7 +3029,7 @@ function FiltersToolbarItemImpl(props) {
|
|
|
3004
3029
|
isLoading = item.isLoading;
|
|
3005
3030
|
return getPickerItemName(item, props);
|
|
3006
3031
|
})
|
|
3007
|
-
: [
|
|
3032
|
+
: [currentValue];
|
|
3008
3033
|
const selectionText = isLoading ? selection : selection.join(', ');
|
|
3009
3034
|
return { selection: selectionText, postfix };
|
|
3010
3035
|
}
|
|
@@ -3012,7 +3037,7 @@ function FiltersToolbarItemImpl(props) {
|
|
|
3012
3037
|
const isRangePredicate = predicate === 'inRange' || predicate === 'notInRange';
|
|
3013
3038
|
const decimalFormat = (val) => uuiCore.getSeparatedValue(val, { maximumFractionDigits: 2 });
|
|
3014
3039
|
if ((isRangePredicate && !currentValue) || (!isRangePredicate && !currentValue && currentValue !== 0)) {
|
|
3015
|
-
return { selection:
|
|
3040
|
+
return { selection: currentValue };
|
|
3016
3041
|
}
|
|
3017
3042
|
const selection = isRangePredicate
|
|
3018
3043
|
? `${!(currentValue === null || currentValue === void 0 ? void 0 : currentValue.from) && (currentValue === null || currentValue === void 0 ? void 0 : currentValue.from) !== 0 ? 'Min' : decimalFormat(currentValue === null || currentValue === void 0 ? void 0 : currentValue.from)} - ${!(currentValue === null || currentValue === void 0 ? void 0 : currentValue.to) && (currentValue === null || currentValue === void 0 ? void 0 : currentValue.to) !== 0 ? 'Max' : decimalFormat(currentValue === null || currentValue === void 0 ? void 0 : currentValue.to)}`
|
|
@@ -3022,49 +3047,49 @@ function FiltersToolbarItemImpl(props) {
|
|
|
3022
3047
|
case 'singlePicker': {
|
|
3023
3048
|
const view = props.dataSource.getView({}, forceUpdate);
|
|
3024
3049
|
if (currentValue === null || currentValue === undefined) {
|
|
3025
|
-
return { selection:
|
|
3050
|
+
return { selection: currentValue };
|
|
3026
3051
|
}
|
|
3027
3052
|
const item = view.getById(currentValue, null);
|
|
3028
3053
|
const selection = getPickerItemName(item, props);
|
|
3029
3054
|
return { selection };
|
|
3030
3055
|
}
|
|
3031
3056
|
case 'datePicker': {
|
|
3032
|
-
return { selection: currentValue ?
|
|
3057
|
+
return { selection: currentValue ? dayjs(currentValue).format(props.format || defaultFormat) : i18n.filterToolbar.datePicker.placeholder };
|
|
3033
3058
|
}
|
|
3034
3059
|
case 'rangeDatePicker': {
|
|
3035
3060
|
if (!currentValue || (!currentValue.from && !currentValue.to)) {
|
|
3036
3061
|
return { selection: i18n.filterToolbar.rangeDatePicker.emptyPickerPlaceholder };
|
|
3037
3062
|
}
|
|
3038
3063
|
const currentValueFrom = (currentValue === null || currentValue === void 0 ? void 0 : currentValue.from)
|
|
3039
|
-
?
|
|
3064
|
+
? dayjs(currentValue === null || currentValue === void 0 ? void 0 : currentValue.from).format(props.format || defaultFormat)
|
|
3040
3065
|
: i18n.filterToolbar.rangeDatePicker.emptyPlaceholderFrom;
|
|
3041
3066
|
const currentValueTo = (currentValue === null || currentValue === void 0 ? void 0 : currentValue.to)
|
|
3042
|
-
?
|
|
3067
|
+
? dayjs(currentValue === null || currentValue === void 0 ? void 0 : currentValue.to).format(props.format || defaultFormat)
|
|
3043
3068
|
: i18n.filterToolbar.rangeDatePicker.emptyPlaceholderTo;
|
|
3044
3069
|
const selection = `${currentValueFrom} - ${currentValueTo}`;
|
|
3045
3070
|
return { selection };
|
|
3046
3071
|
}
|
|
3047
3072
|
}
|
|
3048
3073
|
};
|
|
3049
|
-
const renderTarget = (dropdownProps) => (React__namespace.default.createElement(FilterPanelItemToggler, Object.assign({}, dropdownProps, getTogglerValue(), { title: props.title, predicateName: props.value ? predicateName : null, maxWidth: props.type === 'datePicker' || props.type === 'rangeDatePicker' ? null : '300' })));
|
|
3074
|
+
const renderTarget = (dropdownProps) => (React__namespace.default.createElement(FilterPanelItemToggler, Object.assign({}, dropdownProps, getTogglerValue(), { title: props.title, predicateName: props.value ? predicateName : null, maxWidth: props.type === 'datePicker' || props.type === 'rangeDatePicker' ? null : '300', size: props.size })));
|
|
3050
3075
|
return (React__namespace.default.createElement(uuiComponents.Dropdown, { renderTarget: renderTarget, renderBody: renderBody, closeBodyOnTogglerHidden: !uuiCore.isMobile(), value: isOpen, onValueChange: isOpenChange, modifiers: popperModifiers }));
|
|
3051
3076
|
}
|
|
3052
3077
|
const FiltersPanelItem = React__namespace.default.memo(FiltersToolbarItemImpl);
|
|
3053
3078
|
|
|
3054
|
-
var _path$
|
|
3055
|
-
function _extends$
|
|
3056
|
-
var
|
|
3057
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3079
|
+
var _path$c;
|
|
3080
|
+
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); }
|
|
3081
|
+
var SvgActionAdd18 = function SvgActionAdd18(props, ref) {
|
|
3082
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
|
|
3058
3083
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3059
3084
|
width: 18,
|
|
3060
3085
|
height: 18,
|
|
3061
3086
|
viewBox: "0 0 18 18",
|
|
3062
3087
|
ref: ref
|
|
3063
|
-
}, props), _path$
|
|
3064
|
-
d: "M10
|
|
3088
|
+
}, props), _path$c || (_path$c = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3089
|
+
d: "M10 2H8v6H2v2h6v6h2v-6h6V8h-6V2z"
|
|
3065
3090
|
})));
|
|
3066
3091
|
};
|
|
3067
|
-
var ForwardRef$
|
|
3092
|
+
var ForwardRef$d = /*#__PURE__*/React.forwardRef(SvgActionAdd18);
|
|
3068
3093
|
|
|
3069
3094
|
const normalizeFilterWithPredicates = (filter) => {
|
|
3070
3095
|
if (!filter) {
|
|
@@ -3111,13 +3136,13 @@ function FiltersToolbarImpl(props) {
|
|
|
3111
3136
|
items: filters,
|
|
3112
3137
|
getId: (item) => item.field,
|
|
3113
3138
|
}, []);
|
|
3114
|
-
const onFiltersChange = (
|
|
3139
|
+
const onFiltersChange = (updatedFilters) => {
|
|
3115
3140
|
var _a;
|
|
3116
3141
|
const newConfig = {};
|
|
3117
3142
|
const newFilter = {};
|
|
3118
3143
|
const sortedOrders = tableState.filtersConfig && sortBy__default.default(tableState.filtersConfig, (f) => f === null || f === void 0 ? void 0 : f.order);
|
|
3119
3144
|
let order = (sortedOrders === null || sortedOrders === void 0 ? void 0 : sortedOrders.length) ? (_a = sortedOrders[sortedOrders.length - 1]) === null || _a === void 0 ? void 0 : _a.order : null;
|
|
3120
|
-
|
|
3145
|
+
updatedFilters.forEach((filter) => {
|
|
3121
3146
|
var _a, _b;
|
|
3122
3147
|
const newOrder = ((_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) || uuiCore.getOrderBetween(order, null);
|
|
3123
3148
|
order = newOrder;
|
|
@@ -3150,8 +3175,9 @@ function FiltersToolbarImpl(props) {
|
|
|
3150
3175
|
const sortedActiveFilters = React.useMemo(() => {
|
|
3151
3176
|
return sortBy__default.default(selectedFilters, (f) => { var _a, _b; return (_b = (_a = tableState.filtersConfig) === null || _a === void 0 ? void 0 : _a[f.field]) === null || _b === void 0 ? void 0 : _b.order; });
|
|
3152
3177
|
}, [filters, tableState.filtersConfig]);
|
|
3153
|
-
const renderAddFilterToggler = React.useCallback((
|
|
3154
|
-
|
|
3178
|
+
const renderAddFilterToggler = React.useCallback((togglerProps) => {
|
|
3179
|
+
var _a;
|
|
3180
|
+
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$d, iconPosition: "left", mode: "ghost", color: "primary" }));
|
|
3155
3181
|
}, []);
|
|
3156
3182
|
const getRowOptions = React.useCallback((item) => ({
|
|
3157
3183
|
isDisabled: item.isAlwaysVisible,
|
|
@@ -3169,12 +3195,12 @@ function FiltersToolbarImpl(props) {
|
|
|
3169
3195
|
sortedActiveFilters.map((f) => {
|
|
3170
3196
|
var _a;
|
|
3171
3197
|
return (React__namespace.default.createElement(uuiComponents.FlexCell, { width: "auto", key: f.field },
|
|
3172
|
-
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 }))));
|
|
3198
|
+
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 }))));
|
|
3173
3199
|
}),
|
|
3174
3200
|
!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) => {
|
|
3175
3201
|
props.onCheck(row);
|
|
3176
3202
|
!row.isChecked && setNewFilterId(row.value.field);
|
|
3177
|
-
}, 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 }))));
|
|
3203
|
+
}, 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 }))));
|
|
3178
3204
|
}
|
|
3179
3205
|
const FiltersPanel = React__namespace.default.memo(FiltersToolbarImpl);
|
|
3180
3206
|
|
|
@@ -3182,105 +3208,105 @@ var css$e = {"divider":"PresetsPanel-module_divider__vk5zN","dropdownDeleteIcon"
|
|
|
3182
3208
|
|
|
3183
3209
|
var css$d = {"preset-dropdown-panel":"PresetActionsDropdown-module_preset-dropdown-panel__7QqJq","delete-row":"PresetActionsDropdown-module_delete-row__Akkel","delete-button":"PresetActionsDropdown-module_delete-button__PUypn","targetOpen":"PresetActionsDropdown-module_targetOpen__d1eob","presetDropdownPanel":"PresetActionsDropdown-module_preset-dropdown-panel__7QqJq","deleteRow":"PresetActionsDropdown-module_delete-row__Akkel","deleteButton":"PresetActionsDropdown-module_delete-button__PUypn"};
|
|
3184
3210
|
|
|
3185
|
-
var _path$
|
|
3186
|
-
function _extends$
|
|
3211
|
+
var _path$b;
|
|
3212
|
+
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); }
|
|
3187
3213
|
var SvgSaveOutline18 = function SvgSaveOutline18(props, ref) {
|
|
3188
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3214
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
|
|
3189
3215
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3190
3216
|
width: 18,
|
|
3191
3217
|
height: 18,
|
|
3192
3218
|
viewBox: "0 0 18 18",
|
|
3193
3219
|
ref: ref
|
|
3194
|
-
}, props), _path$
|
|
3220
|
+
}, props), _path$b || (_path$b = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3195
3221
|
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"
|
|
3196
3222
|
})));
|
|
3197
3223
|
};
|
|
3198
|
-
var ForwardRef$
|
|
3224
|
+
var ForwardRef$c = /*#__PURE__*/React.forwardRef(SvgSaveOutline18);
|
|
3199
3225
|
|
|
3200
|
-
var _path$
|
|
3201
|
-
function _extends$
|
|
3226
|
+
var _path$a;
|
|
3227
|
+
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); }
|
|
3202
3228
|
var SvgContentEditUndo18 = function SvgContentEditUndo18(props, ref) {
|
|
3203
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3229
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
|
|
3204
3230
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3205
3231
|
width: 18,
|
|
3206
3232
|
height: 18,
|
|
3207
3233
|
viewBox: "0 0 18 18",
|
|
3208
3234
|
ref: ref
|
|
3209
|
-
}, props), _path$
|
|
3235
|
+
}, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3210
3236
|
fillRule: "evenodd",
|
|
3211
3237
|
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",
|
|
3212
3238
|
clipRule: "evenodd"
|
|
3213
3239
|
})));
|
|
3214
3240
|
};
|
|
3215
|
-
var ForwardRef$
|
|
3241
|
+
var ForwardRef$b = /*#__PURE__*/React.forwardRef(SvgContentEditUndo18);
|
|
3216
3242
|
|
|
3217
|
-
var _path$
|
|
3218
|
-
function _extends$
|
|
3243
|
+
var _path$9;
|
|
3244
|
+
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); }
|
|
3219
3245
|
var SvgActionCopyContent18 = function SvgActionCopyContent18(props, ref) {
|
|
3220
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3246
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
|
|
3221
3247
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3222
3248
|
width: 18,
|
|
3223
3249
|
height: 18,
|
|
3224
3250
|
viewBox: "0 0 18 18",
|
|
3225
3251
|
ref: ref
|
|
3226
|
-
}, props), _path$
|
|
3252
|
+
}, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3227
3253
|
fillRule: "evenodd",
|
|
3228
3254
|
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",
|
|
3229
3255
|
clipRule: "evenodd"
|
|
3230
3256
|
})));
|
|
3231
3257
|
};
|
|
3232
|
-
var ForwardRef$
|
|
3258
|
+
var ForwardRef$a = /*#__PURE__*/React.forwardRef(SvgActionCopyContent18);
|
|
3233
3259
|
|
|
3234
|
-
var _path$
|
|
3235
|
-
function _extends$
|
|
3260
|
+
var _path$8;
|
|
3261
|
+
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); }
|
|
3236
3262
|
var SvgContentEdit18 = function SvgContentEdit18(props, ref) {
|
|
3237
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3263
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
|
|
3238
3264
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3239
3265
|
width: 18,
|
|
3240
3266
|
height: 18,
|
|
3241
3267
|
viewBox: "0 0 18 18",
|
|
3242
3268
|
ref: ref
|
|
3243
|
-
}, props), _path$
|
|
3269
|
+
}, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3244
3270
|
fillRule: "evenodd",
|
|
3245
3271
|
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",
|
|
3246
3272
|
clipRule: "evenodd"
|
|
3247
3273
|
})));
|
|
3248
3274
|
};
|
|
3249
|
-
var ForwardRef$
|
|
3275
|
+
var ForwardRef$9 = /*#__PURE__*/React.forwardRef(SvgContentEdit18);
|
|
3250
3276
|
|
|
3251
|
-
var _path$
|
|
3252
|
-
function _extends$
|
|
3277
|
+
var _path$7;
|
|
3278
|
+
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); }
|
|
3253
3279
|
var SvgContentLink18 = function SvgContentLink18(props, ref) {
|
|
3254
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3280
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
|
|
3255
3281
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3256
3282
|
width: 18,
|
|
3257
3283
|
height: 18,
|
|
3258
3284
|
viewBox: "0 0 18 18",
|
|
3259
3285
|
ref: ref
|
|
3260
|
-
}, props), _path$
|
|
3286
|
+
}, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3261
3287
|
fillRule: "evenodd",
|
|
3262
3288
|
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",
|
|
3263
3289
|
clipRule: "evenodd"
|
|
3264
3290
|
})));
|
|
3265
3291
|
};
|
|
3266
|
-
var ForwardRef$
|
|
3292
|
+
var ForwardRef$8 = /*#__PURE__*/React.forwardRef(SvgContentLink18);
|
|
3267
3293
|
|
|
3268
|
-
var _path$
|
|
3269
|
-
function _extends$
|
|
3294
|
+
var _path$6;
|
|
3295
|
+
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); }
|
|
3270
3296
|
var SvgActionDeleteforever18 = function SvgActionDeleteforever18(props, ref) {
|
|
3271
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3297
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
|
|
3272
3298
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3273
3299
|
width: 18,
|
|
3274
3300
|
height: 18,
|
|
3275
3301
|
viewBox: "0 0 18 18",
|
|
3276
3302
|
ref: ref
|
|
3277
|
-
}, props), _path$
|
|
3303
|
+
}, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3278
3304
|
fillRule: "evenodd",
|
|
3279
3305
|
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",
|
|
3280
3306
|
clipRule: "evenodd"
|
|
3281
3307
|
})));
|
|
3282
3308
|
};
|
|
3283
|
-
var ForwardRef$
|
|
3309
|
+
var ForwardRef$7 = /*#__PURE__*/React.forwardRef(SvgActionDeleteforever18);
|
|
3284
3310
|
|
|
3285
3311
|
function PresetActionsDropdown(props) {
|
|
3286
3312
|
const { uuiNotifications } = uuiCore.useUuiContext();
|
|
@@ -3320,22 +3346,22 @@ function PresetActionsDropdown(props) {
|
|
|
3320
3346
|
return (React__namespace.default.createElement(Panel, { shadow: true, cx: css$d.presetDropdownPanel },
|
|
3321
3347
|
props.activePresetId === props.preset.id && props.hasPresetChanged(props.preset) && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
3322
3348
|
!isReadonlyPreset && (React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-save-in-current` },
|
|
3323
|
-
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$
|
|
3349
|
+
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$q, caption: "Save in current", onClick: saveInCurrentHandler }))),
|
|
3324
3350
|
React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-save-as-new` },
|
|
3325
|
-
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$
|
|
3351
|
+
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$c, caption: "Save as new", onClick: props.addPreset })),
|
|
3326
3352
|
React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-discard`, borderBottom: true },
|
|
3327
|
-
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$
|
|
3353
|
+
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$b, caption: "Discard all changes", onClick: discardAllChangesHandler })))),
|
|
3328
3354
|
props.preset.id === props.activePresetId && !isReadonlyPreset && (React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-rename` },
|
|
3329
|
-
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$
|
|
3355
|
+
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$9, caption: "Rename", onClick: props.renamePreset }))),
|
|
3330
3356
|
React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-duplicate` },
|
|
3331
|
-
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$
|
|
3357
|
+
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$a, caption: "Duplicate", onClick: duplicateHandler })),
|
|
3332
3358
|
React__namespace.default.createElement(FlexRow, { borderBottom: true, key: `${props.preset.id}-copyLink` },
|
|
3333
|
-
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$
|
|
3359
|
+
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$8, caption: "Copy Link", onClick: copyUrlToClipboard })),
|
|
3334
3360
|
!isReadonlyPreset && (React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-delete`, cx: css$d.deleteRow },
|
|
3335
|
-
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$
|
|
3361
|
+
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$7, caption: "Delete", cx: css$d.deleteButton, onClick: deleteHandler })))));
|
|
3336
3362
|
};
|
|
3337
3363
|
const renderTarget = React.useCallback((dropdownProps) => {
|
|
3338
|
-
return (React__namespace.default.createElement(IconButton, Object.assign({ cx: dropdownProps.isOpen && css$d.targetOpen, color: props.preset.id === props.activePresetId ? 'info' : 'default' }, dropdownProps, { icon: ForwardRef$
|
|
3364
|
+
return (React__namespace.default.createElement(IconButton, Object.assign({ cx: dropdownProps.isOpen && css$d.targetOpen, color: props.preset.id === props.activePresetId ? 'info' : 'default' }, dropdownProps, { icon: ForwardRef$r })));
|
|
3339
3365
|
}, []);
|
|
3340
3366
|
return (React__namespace.default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end", modifiers: [{ name: 'offset', options: { offset: [0, 22] } }] }));
|
|
3341
3367
|
}
|
|
@@ -3386,6 +3412,21 @@ function Preset(props) {
|
|
|
3386
3412
|
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$b.preset, isPresetActive && css$b.activePreset], size: "60", withNotify: isPresetActive && props.hasPresetChanged(props.preset), icon: () => React__namespace.default.createElement(PresetActionsDropdown, Object.assign({ renamePreset: setPresetForRename }, props)), iconPosition: "right", isLinkActive: isPresetActive }))));
|
|
3387
3413
|
}
|
|
3388
3414
|
|
|
3415
|
+
var _path$5;
|
|
3416
|
+
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); }
|
|
3417
|
+
var SvgContentPlusBold18 = function SvgContentPlusBold18(props, ref) {
|
|
3418
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
|
|
3419
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3420
|
+
width: 18,
|
|
3421
|
+
height: 18,
|
|
3422
|
+
viewBox: "0 0 18 18",
|
|
3423
|
+
ref: ref
|
|
3424
|
+
}, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3425
|
+
d: "M10.5 3h-3v4.5H3v3h4.5V15h3v-4.5H15v-3h-4.5V3z"
|
|
3426
|
+
})));
|
|
3427
|
+
};
|
|
3428
|
+
var ForwardRef$6 = /*#__PURE__*/React.forwardRef(SvgContentPlusBold18);
|
|
3429
|
+
|
|
3389
3430
|
function PresetsPanel(props) {
|
|
3390
3431
|
const [isAddingPreset, setIsAddingPreset] = React.useState(false);
|
|
3391
3432
|
const setAddingPreset = React.useCallback(() => {
|
|
@@ -3399,7 +3440,7 @@ function PresetsPanel(props) {
|
|
|
3399
3440
|
return React__namespace.default.createElement(Preset, Object.assign({ key: preset.id, preset: preset, addPreset: setAddingPreset }, presetApi));
|
|
3400
3441
|
};
|
|
3401
3442
|
const renderAddPresetButton = React.useCallback(() => {
|
|
3402
|
-
return (React__namespace.default.createElement("div", { key: "addingPresetBlock", className: css$e.addPresetContainer }, !isAddingPreset ? (React__namespace.default.createElement(Button, { size: "36", onClick: setAddingPreset, caption: i18n.presetPanel.addCaption, icon: ForwardRef$
|
|
3443
|
+
return (React__namespace.default.createElement("div", { key: "addingPresetBlock", className: css$e.addPresetContainer }, !isAddingPreset ? (React__namespace.default.createElement(Button, { size: "36", onClick: setAddingPreset, caption: i18n.presetPanel.addCaption, icon: ForwardRef$6, iconPosition: "left", mode: "ghost", color: "primary" })) : (React__namespace.default.createElement(PresetInput, { onCancel: cancelAddingPreset, onSuccess: props.createNewPreset }))));
|
|
3403
3444
|
}, [isAddingPreset]);
|
|
3404
3445
|
const onPresetDropdownSelect = (preset) => {
|
|
3405
3446
|
props.choosePreset(preset.preset);
|
|
@@ -3408,7 +3449,7 @@ function PresetsPanel(props) {
|
|
|
3408
3449
|
return (React__namespace.default.createElement(Dropdown, { key: "more", renderTarget: (props) => (React__namespace.default.createElement(FlexRow, null,
|
|
3409
3450
|
React__namespace.default.createElement("div", { className: css$e.divider }),
|
|
3410
3451
|
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$e.dropContainer), width: 230 },
|
|
3411
|
-
React__namespace.default.createElement(uuiComponents.ScrollBars, null, hiddenItems.map((
|
|
3452
|
+
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$7, iconPosition: "right", cx: css$e.dropdownDeleteIcon, onIconClick: !hiddenItem.preset.isReadonly && (() => props.deletePreset(hiddenItem.preset)) })))))) }));
|
|
3412
3453
|
};
|
|
3413
3454
|
const getPresetPriority = (preset, index) => {
|
|
3414
3455
|
return preset.id === props.activePresetId ? 100499 : 1000 - index;
|
|
@@ -3591,7 +3632,7 @@ var ForwardRef$1 = /*#__PURE__*/React.forwardRef(SvgMenuInputCancel);
|
|
|
3591
3632
|
var css$6 = {"search-input":"BurgerSearch-module_search-input__ot3xM","searchInput":"BurgerSearch-module_search-input__ot3xM"};
|
|
3592
3633
|
|
|
3593
3634
|
function BurgerSearch(props) {
|
|
3594
|
-
return (React__namespace.createElement(uuiComponents.TextInput, { cx: css$6.searchInput, iconPosition: "left", icon: ForwardRef$
|
|
3635
|
+
return (React__namespace.createElement(uuiComponents.TextInput, { cx: css$6.searchInput, iconPosition: "left", icon: ForwardRef$X, placeholder: props.placeholder, value: props.value, onValueChange: props.onValueChange, onCancel: props.onCancel, cancelIcon: props.value && ForwardRef$1, autoFocus: true }));
|
|
3595
3636
|
}
|
|
3596
3637
|
|
|
3597
3638
|
var css$5 = {"group-header":"BurgerGroupHeader-module_group-header__RPFIE","group-name":"BurgerGroupHeader-module_group-name__9SbW-","line":"BurgerGroupHeader-module_line__i1Bu-","groupHeader":"BurgerGroupHeader-module_group-header__RPFIE","groupName":"BurgerGroupHeader-module_group-name__9SbW-"};
|
|
@@ -3608,13 +3649,13 @@ const MainMenuAvatar = React__namespace.forwardRef((props, ref) => (React__names
|
|
|
3608
3649
|
React__namespace.createElement(uuiComponents.Avatar, { size: "36", img: props.avatarUrl }),
|
|
3609
3650
|
props.icon && React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon }),
|
|
3610
3651
|
props.isDropdown && (React__namespace.createElement("div", null,
|
|
3611
|
-
React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$
|
|
3652
|
+
React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$11, flipY: props.isOpen }))))));
|
|
3612
3653
|
|
|
3613
3654
|
var css$3 = {"search-input":"MainMenuSearch-module_search-input__AdkL1","searchInput":"MainMenuSearch-module_search-input__AdkL1"};
|
|
3614
3655
|
|
|
3615
3656
|
const MainMenuSearch = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(uuiCore.IEditableDebouncer, Object.assign({}, props, { render: (iEditable) => {
|
|
3616
3657
|
var _a;
|
|
3617
|
-
return (React__namespace.createElement(uuiComponents.TextInput, Object.assign({ iconPosition: "left", icon: ForwardRef$
|
|
3658
|
+
return (React__namespace.createElement(uuiComponents.TextInput, Object.assign({ iconPosition: "left", icon: ForwardRef$X, cancelIcon: ((_a = props.value) === null || _a === void 0 ? void 0 : _a.length) > 0 && ForwardRef$1 }, props, iEditable, { ref: ref, cx: uuiCore.cx(css$3.searchInput, props.cx) }, props.rawProps)));
|
|
3618
3659
|
} }))));
|
|
3619
3660
|
|
|
3620
3661
|
var css$2 = {"container":"MainMenuIcon-module_container__6NlKF"};
|
|
@@ -3678,8 +3719,7 @@ function Form(props) {
|
|
|
3678
3719
|
},
|
|
3679
3720
|
] }),
|
|
3680
3721
|
React__namespace.createElement(RichTextView, null,
|
|
3681
|
-
React__namespace.createElement(Text, { size: "36" }, i18n.form.notifications.unsavedChangesMessage)))), { duration: 5, position: 'bot-left' })
|
|
3682
|
-
.catch(() => null);
|
|
3722
|
+
React__namespace.createElement(Text, { size: "36" }, i18n.form.notifications.unsavedChangesMessage)))), { duration: 5, position: 'bot-left' });
|
|
3683
3723
|
};
|
|
3684
3724
|
return React__namespace.createElement(uuiCore.Form, Object.assign({ loadUnsavedChanges: loadUnsavedChanges, beforeLeave: beforeLeave }, props));
|
|
3685
3725
|
}
|
|
@@ -3816,6 +3856,7 @@ exports.allEpamBadgeSemanticColors = allEpamBadgeSemanticColors;
|
|
|
3816
3856
|
exports.allFillStyles = allFillStyles;
|
|
3817
3857
|
exports.allFontStyles = allFontStyles;
|
|
3818
3858
|
exports.allIconColors = allIconColors;
|
|
3859
|
+
exports.allLinkButtonColors = allLinkButtonColors;
|
|
3819
3860
|
exports.allRowSizes = allRowSizes;
|
|
3820
3861
|
exports.allSemanticColors = allSemanticColors;
|
|
3821
3862
|
exports.allSizes = allSizes;
|