@epam/uui 5.1.0 → 5.1.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/components/datePickers/DatePicker.d.ts.map +1 -1
- package/components/datePickers/DatePickerBody.d.ts +17 -3
- package/components/datePickers/DatePickerBody.d.ts.map +1 -1
- package/components/datePickers/DatePickerHeader.d.ts +16 -0
- package/components/datePickers/DatePickerHeader.d.ts.map +1 -0
- package/components/datePickers/RangeDatePicker.d.ts +1 -1
- package/components/datePickers/RangeDatePicker.d.ts.map +1 -1
- package/components/datePickers/RangeDatePickerBody.d.ts +34 -3
- package/components/datePickers/RangeDatePickerBody.d.ts.map +1 -1
- package/components/filters/FilterNumericBody.d.ts.map +1 -1
- package/components/filters/FilterPanelItemToggler.d.ts +1 -1
- package/components/filters/FilterPanelItemToggler.d.ts.map +1 -1
- package/components/filters/FilterRangeDatePickerBody.d.ts +3 -2
- package/components/filters/FilterRangeDatePickerBody.d.ts.map +1 -1
- package/components/filters/FiltersPanelItem.d.ts.map +1 -1
- package/components/inputs/TextArea.d.ts +1 -2
- package/components/inputs/TextArea.d.ts.map +1 -1
- package/components/layout/FlexItems/FlexCell.d.ts +3 -4
- package/components/layout/FlexItems/FlexCell.d.ts.map +1 -1
- package/components/layout/FlexItems/FlexRow.d.ts.map +1 -1
- package/components/navigation/MainMenu/MainMenu.d.ts.map +1 -1
- package/components/overlays/DropdownMenu.d.ts.map +1 -1
- package/components/pickers/PickerInput.d.ts.map +1 -1
- package/components/pickers/PickerItem.d.ts +10 -1
- package/components/pickers/PickerItem.d.ts.map +1 -1
- package/components/pickers/highlight.d.ts +8 -0
- package/components/pickers/highlight.d.ts.map +1 -0
- package/components/pickers/index.d.ts +1 -0
- package/components/pickers/index.d.ts.map +1 -1
- package/components/tables/DataTable.d.ts +2 -1
- package/components/tables/DataTable.d.ts.map +1 -1
- package/components/tables/DataTableHeaderCell.d.ts +1 -0
- package/components/tables/DataTableHeaderCell.d.ts.map +1 -1
- package/components/tables/columnsConfigurationModal/ColumnRow.d.ts +4 -2
- package/components/tables/columnsConfigurationModal/ColumnRow.d.ts.map +1 -1
- package/components/tables/columnsConfigurationModal/ColumnsConfigurationModal.d.ts +4 -3
- package/components/tables/columnsConfigurationModal/ColumnsConfigurationModal.d.ts.map +1 -1
- package/index.esm.js +1102 -734
- package/index.esm.js.map +1 -1
- package/index.js +1112 -738
- package/index.js.map +1 -1
- package/package.json +6 -8
- package/stats.html +90 -1429
- package/styles.css +1305 -1301
- package/styles.css.map +1 -1
package/index.js
CHANGED
|
@@ -5,6 +5,9 @@ var uuiCore = require('@epam/uui-core');
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var cx = require('classnames');
|
|
7
7
|
var FocusLock = require('react-focus-lock');
|
|
8
|
+
var dayjs = require('dayjs');
|
|
9
|
+
var updateLocale = require('dayjs/plugin/updateLocale.js');
|
|
10
|
+
var isoWeek = require('dayjs/plugin/isoWeek.js');
|
|
8
11
|
var sortBy = require('lodash.sortby');
|
|
9
12
|
|
|
10
13
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -30,355 +33,331 @@ function _interopNamespace(e) {
|
|
|
30
33
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
31
34
|
var cx__default = /*#__PURE__*/_interopDefault(cx);
|
|
32
35
|
var FocusLock__default = /*#__PURE__*/_interopDefault(FocusLock);
|
|
36
|
+
var dayjs__default = /*#__PURE__*/_interopDefault(dayjs);
|
|
37
|
+
var updateLocale__default = /*#__PURE__*/_interopDefault(updateLocale);
|
|
38
|
+
var isoWeek__default = /*#__PURE__*/_interopDefault(isoWeek);
|
|
33
39
|
var sortBy__default = /*#__PURE__*/_interopDefault(sortBy);
|
|
34
40
|
|
|
35
|
-
var _path$
|
|
36
|
-
function _extends$
|
|
41
|
+
var _path$11;
|
|
42
|
+
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); }
|
|
37
43
|
var SvgBtnCross12 = function SvgBtnCross12(props, ref) {
|
|
38
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
44
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$14({
|
|
39
45
|
xmlns: "http://www.w3.org/2000/svg",
|
|
40
46
|
width: 12,
|
|
41
47
|
height: 12,
|
|
42
48
|
viewBox: "0 0 12 12",
|
|
43
49
|
ref: ref
|
|
44
|
-
}, props), _path$
|
|
50
|
+
}, props), _path$11 || (_path$11 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
45
51
|
fillRule: "evenodd",
|
|
46
52
|
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
53
|
})));
|
|
48
54
|
};
|
|
49
|
-
var ForwardRef$
|
|
55
|
+
var ForwardRef$14 = /*#__PURE__*/React.forwardRef(SvgBtnCross12);
|
|
50
56
|
|
|
51
|
-
var _path$
|
|
52
|
-
function _extends$
|
|
57
|
+
var _path$10;
|
|
58
|
+
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); }
|
|
53
59
|
var SvgBtnCross18 = function SvgBtnCross18(props, ref) {
|
|
54
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
60
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$13({
|
|
55
61
|
xmlns: "http://www.w3.org/2000/svg",
|
|
56
62
|
width: 18,
|
|
57
63
|
height: 18,
|
|
58
64
|
viewBox: "0 0 18 18",
|
|
59
65
|
ref: ref
|
|
60
|
-
}, props), _path$
|
|
66
|
+
}, props), _path$10 || (_path$10 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
61
67
|
fillRule: "evenodd",
|
|
62
68
|
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
69
|
})));
|
|
64
70
|
};
|
|
65
|
-
var ForwardRef$
|
|
71
|
+
var ForwardRef$13 = /*#__PURE__*/React.forwardRef(SvgBtnCross18);
|
|
66
72
|
|
|
67
|
-
var _path
|
|
68
|
-
function _extends$
|
|
73
|
+
var _path$$;
|
|
74
|
+
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); }
|
|
69
75
|
var SvgBtnCross24 = function SvgBtnCross24(props, ref) {
|
|
70
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
76
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$12({
|
|
71
77
|
xmlns: "http://www.w3.org/2000/svg",
|
|
72
78
|
width: 24,
|
|
73
79
|
height: 24,
|
|
74
80
|
viewBox: "0 0 24 24",
|
|
75
81
|
ref: ref
|
|
76
|
-
}, props), _path
|
|
82
|
+
}, props), _path$$ || (_path$$ = /*#__PURE__*/React__namespace.createElement("path", {
|
|
77
83
|
fillRule: "evenodd",
|
|
78
84
|
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
85
|
})));
|
|
80
86
|
};
|
|
81
|
-
var ForwardRef$
|
|
87
|
+
var ForwardRef$12 = /*#__PURE__*/React.forwardRef(SvgBtnCross24);
|
|
82
88
|
|
|
83
|
-
var _path
|
|
84
|
-
function _extends$
|
|
89
|
+
var _path$_;
|
|
90
|
+
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); }
|
|
85
91
|
var SvgFoldingArrow12 = function SvgFoldingArrow12(props, ref) {
|
|
86
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
92
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$11({
|
|
87
93
|
xmlns: "http://www.w3.org/2000/svg",
|
|
88
94
|
width: 12,
|
|
89
95
|
height: 12,
|
|
90
96
|
viewBox: "0 0 12 12",
|
|
91
97
|
ref: ref
|
|
92
|
-
}, props), _path
|
|
98
|
+
}, props), _path$_ || (_path$_ = /*#__PURE__*/React__namespace.createElement("path", {
|
|
93
99
|
fillRule: "evenodd",
|
|
94
100
|
d: "M8.295 4.295 6 6.585l-2.295-2.29L3 5l3 3 3-3z"
|
|
95
101
|
})));
|
|
96
102
|
};
|
|
97
|
-
var ForwardRef$
|
|
103
|
+
var ForwardRef$11 = /*#__PURE__*/React.forwardRef(SvgFoldingArrow12);
|
|
98
104
|
|
|
99
|
-
var _path$
|
|
100
|
-
function _extends$
|
|
105
|
+
var _path$Z;
|
|
106
|
+
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); }
|
|
101
107
|
var SvgFoldingArrow18 = function SvgFoldingArrow18(props, ref) {
|
|
102
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
108
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$10({
|
|
103
109
|
xmlns: "http://www.w3.org/2000/svg",
|
|
104
110
|
width: 18,
|
|
105
111
|
height: 18,
|
|
106
112
|
viewBox: "0 0 18 18",
|
|
107
113
|
ref: ref
|
|
108
|
-
}, props), _path$
|
|
114
|
+
}, props), _path$Z || (_path$Z = /*#__PURE__*/React__namespace.createElement("path", {
|
|
109
115
|
fillRule: "evenodd",
|
|
110
116
|
d: "M12.443 6.442 9 9.877 5.558 6.442 4.5 7.5 9 12l4.5-4.5z"
|
|
111
117
|
})));
|
|
112
118
|
};
|
|
113
|
-
var ForwardRef$
|
|
119
|
+
var ForwardRef$10 = /*#__PURE__*/React.forwardRef(SvgFoldingArrow18);
|
|
114
120
|
|
|
115
|
-
var _path$
|
|
116
|
-
function _extends
|
|
121
|
+
var _path$Y;
|
|
122
|
+
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); }
|
|
117
123
|
var SvgFoldingArrow24 = function SvgFoldingArrow24(props, ref) {
|
|
118
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends
|
|
124
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$$({
|
|
119
125
|
xmlns: "http://www.w3.org/2000/svg",
|
|
120
126
|
width: 24,
|
|
121
127
|
height: 24,
|
|
122
128
|
viewBox: "0 0 24 24",
|
|
123
129
|
ref: ref
|
|
124
|
-
}, props), _path$
|
|
130
|
+
}, props), _path$Y || (_path$Y = /*#__PURE__*/React__namespace.createElement("path", {
|
|
125
131
|
fillRule: "evenodd",
|
|
126
132
|
d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
|
|
127
133
|
})));
|
|
128
134
|
};
|
|
129
|
-
var ForwardRef
|
|
135
|
+
var ForwardRef$$ = /*#__PURE__*/React.forwardRef(SvgFoldingArrow24);
|
|
130
136
|
|
|
131
|
-
var _path$
|
|
132
|
-
function _extends
|
|
137
|
+
var _path$X;
|
|
138
|
+
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
139
|
var SvgAccept12 = function SvgAccept12(props, ref) {
|
|
134
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends
|
|
140
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$_({
|
|
135
141
|
xmlns: "http://www.w3.org/2000/svg",
|
|
136
142
|
width: 12,
|
|
137
143
|
height: 12,
|
|
138
144
|
viewBox: "0 0 12 12",
|
|
139
145
|
ref: ref
|
|
140
|
-
}, props), _path$
|
|
146
|
+
}, props), _path$X || (_path$X = /*#__PURE__*/React__namespace.createElement("path", {
|
|
141
147
|
fillRule: "evenodd",
|
|
142
148
|
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
149
|
})));
|
|
144
150
|
};
|
|
145
|
-
var ForwardRef
|
|
151
|
+
var ForwardRef$_ = /*#__PURE__*/React.forwardRef(SvgAccept12);
|
|
146
152
|
|
|
147
|
-
var _path$
|
|
148
|
-
function _extends$
|
|
153
|
+
var _path$W;
|
|
154
|
+
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); }
|
|
149
155
|
var SvgAccept18 = function SvgAccept18(props, ref) {
|
|
150
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
156
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$Z({
|
|
151
157
|
xmlns: "http://www.w3.org/2000/svg",
|
|
152
158
|
width: 18,
|
|
153
159
|
height: 18,
|
|
154
160
|
viewBox: "0 0 18 18",
|
|
155
161
|
ref: ref
|
|
156
|
-
}, props), _path$
|
|
162
|
+
}, props), _path$W || (_path$W = /*#__PURE__*/React__namespace.createElement("path", {
|
|
157
163
|
fillRule: "evenodd",
|
|
158
164
|
d: "M7.136 11.91 4.034 8.776 3 9.821 7.136 14 16 5.045 14.966 4z"
|
|
159
165
|
})));
|
|
160
166
|
};
|
|
161
|
-
var ForwardRef$
|
|
167
|
+
var ForwardRef$Z = /*#__PURE__*/React.forwardRef(SvgAccept18);
|
|
162
168
|
|
|
163
|
-
var _path$
|
|
164
|
-
function _extends$
|
|
169
|
+
var _path$V;
|
|
170
|
+
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); }
|
|
165
171
|
var SvgAccept24 = function SvgAccept24(props, ref) {
|
|
166
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
172
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$Y({
|
|
167
173
|
xmlns: "http://www.w3.org/2000/svg",
|
|
168
174
|
width: 24,
|
|
169
175
|
height: 24,
|
|
170
176
|
viewBox: "0 0 24 24",
|
|
171
177
|
ref: ref
|
|
172
|
-
}, props), _path$
|
|
178
|
+
}, props), _path$V || (_path$V = /*#__PURE__*/React__namespace.createElement("path", {
|
|
173
179
|
fillRule: "evenodd",
|
|
174
180
|
d: "m9.727 16.075-4.295-4.388L4 13.149 9.727 19 22 6.463 20.568 5z"
|
|
175
181
|
})));
|
|
176
182
|
};
|
|
177
|
-
var ForwardRef$
|
|
183
|
+
var ForwardRef$Y = /*#__PURE__*/React.forwardRef(SvgAccept24);
|
|
178
184
|
|
|
179
|
-
var _path$
|
|
180
|
-
function _extends$
|
|
185
|
+
var _path$U;
|
|
186
|
+
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); }
|
|
181
187
|
var SvgSearch12 = function SvgSearch12(props, ref) {
|
|
182
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
188
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$X({
|
|
183
189
|
xmlns: "http://www.w3.org/2000/svg",
|
|
184
190
|
width: 12,
|
|
185
191
|
height: 12,
|
|
186
192
|
viewBox: "0 0 12 12",
|
|
187
193
|
ref: ref
|
|
188
|
-
}, props), _path$
|
|
194
|
+
}, props), _path$U || (_path$U = /*#__PURE__*/React__namespace.createElement("path", {
|
|
189
195
|
fillRule: "evenodd",
|
|
190
196
|
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
197
|
})));
|
|
192
198
|
};
|
|
193
|
-
var ForwardRef$
|
|
199
|
+
var ForwardRef$X = /*#__PURE__*/React.forwardRef(SvgSearch12);
|
|
194
200
|
|
|
195
|
-
var _path$
|
|
196
|
-
function _extends$
|
|
201
|
+
var _path$T;
|
|
202
|
+
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); }
|
|
197
203
|
var SvgSearch18 = function SvgSearch18(props, ref) {
|
|
198
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
204
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$W({
|
|
199
205
|
xmlns: "http://www.w3.org/2000/svg",
|
|
200
206
|
width: 18,
|
|
201
207
|
height: 18,
|
|
202
208
|
viewBox: "0 0 18 18",
|
|
203
209
|
ref: ref
|
|
204
|
-
}, props), _path$
|
|
210
|
+
}, props), _path$T || (_path$T = /*#__PURE__*/React__namespace.createElement("path", {
|
|
205
211
|
fillRule: "evenodd",
|
|
206
212
|
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
213
|
})));
|
|
208
214
|
};
|
|
209
|
-
var ForwardRef$
|
|
215
|
+
var ForwardRef$W = /*#__PURE__*/React.forwardRef(SvgSearch18);
|
|
210
216
|
|
|
211
|
-
var _path$
|
|
212
|
-
function _extends$
|
|
217
|
+
var _path$S;
|
|
218
|
+
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); }
|
|
213
219
|
var SvgSearch24 = function SvgSearch24(props, ref) {
|
|
214
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
220
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$V({
|
|
215
221
|
xmlns: "http://www.w3.org/2000/svg",
|
|
216
222
|
width: 24,
|
|
217
223
|
height: 24,
|
|
218
224
|
viewBox: "0 0 24 24",
|
|
219
225
|
ref: ref
|
|
220
|
-
}, props), _path$
|
|
226
|
+
}, props), _path$S || (_path$S = /*#__PURE__*/React__namespace.createElement("path", {
|
|
221
227
|
fillRule: "evenodd",
|
|
222
228
|
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
229
|
})));
|
|
224
230
|
};
|
|
225
|
-
var ForwardRef$
|
|
231
|
+
var ForwardRef$V = /*#__PURE__*/React.forwardRef(SvgSearch24);
|
|
226
232
|
|
|
227
|
-
var _path$
|
|
228
|
-
function _extends$
|
|
233
|
+
var _path$R;
|
|
234
|
+
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); }
|
|
229
235
|
var SvgCalendar12 = function SvgCalendar12(props, ref) {
|
|
230
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
236
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$U({
|
|
231
237
|
xmlns: "http://www.w3.org/2000/svg",
|
|
232
238
|
width: 12,
|
|
233
239
|
height: 12,
|
|
234
240
|
viewBox: "0 0 12 12",
|
|
235
241
|
ref: ref
|
|
236
|
-
}, props), _path$
|
|
242
|
+
}, props), _path$R || (_path$R = /*#__PURE__*/React__namespace.createElement("path", {
|
|
237
243
|
fillRule: "evenodd",
|
|
238
244
|
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
245
|
})));
|
|
240
246
|
};
|
|
241
|
-
var ForwardRef$
|
|
247
|
+
var ForwardRef$U = /*#__PURE__*/React.forwardRef(SvgCalendar12);
|
|
242
248
|
|
|
243
|
-
var _path$
|
|
244
|
-
function _extends$
|
|
249
|
+
var _path$Q;
|
|
250
|
+
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); }
|
|
245
251
|
var SvgCalendar18 = function SvgCalendar18(props, ref) {
|
|
246
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
252
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$T({
|
|
247
253
|
xmlns: "http://www.w3.org/2000/svg",
|
|
248
254
|
width: 18,
|
|
249
255
|
height: 18,
|
|
250
256
|
viewBox: "0 0 18 18",
|
|
251
257
|
ref: ref
|
|
252
|
-
}, props), _path$
|
|
258
|
+
}, props), _path$Q || (_path$Q = /*#__PURE__*/React__namespace.createElement("path", {
|
|
253
259
|
fillRule: "evenodd",
|
|
254
260
|
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
261
|
})));
|
|
256
262
|
};
|
|
257
|
-
var ForwardRef$
|
|
263
|
+
var ForwardRef$T = /*#__PURE__*/React.forwardRef(SvgCalendar18);
|
|
258
264
|
|
|
259
|
-
var _path$
|
|
260
|
-
function _extends$
|
|
265
|
+
var _path$P;
|
|
266
|
+
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); }
|
|
261
267
|
var SvgCalendar24 = function SvgCalendar24(props, ref) {
|
|
262
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
268
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$S({
|
|
263
269
|
xmlns: "http://www.w3.org/2000/svg",
|
|
264
270
|
width: 24,
|
|
265
271
|
height: 24,
|
|
266
272
|
viewBox: "0 0 24 24",
|
|
267
273
|
ref: ref
|
|
268
|
-
}, props), _path$
|
|
274
|
+
}, props), _path$P || (_path$P = /*#__PURE__*/React__namespace.createElement("path", {
|
|
269
275
|
fillRule: "evenodd",
|
|
270
276
|
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
277
|
})));
|
|
272
278
|
};
|
|
273
|
-
var ForwardRef$
|
|
279
|
+
var ForwardRef$S = /*#__PURE__*/React.forwardRef(SvgCalendar24);
|
|
274
280
|
|
|
275
|
-
var _path$
|
|
276
|
-
function _extends$
|
|
281
|
+
var _path$O;
|
|
282
|
+
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); }
|
|
277
283
|
var SvgInfo12 = function SvgInfo12(props, ref) {
|
|
278
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
284
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$R({
|
|
279
285
|
width: 12,
|
|
280
286
|
height: 12,
|
|
281
287
|
viewBox: "0 0 12 12",
|
|
282
288
|
xmlns: "http://www.w3.org/2000/svg",
|
|
283
289
|
ref: ref
|
|
284
|
-
}, props), _path$
|
|
290
|
+
}, props), _path$O || (_path$O = /*#__PURE__*/React__namespace.createElement("path", {
|
|
285
291
|
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
292
|
fillRule: "evenodd"
|
|
287
293
|
})));
|
|
288
294
|
};
|
|
289
|
-
var ForwardRef$
|
|
295
|
+
var ForwardRef$R = /*#__PURE__*/React.forwardRef(SvgInfo12);
|
|
290
296
|
|
|
291
|
-
var _path$
|
|
292
|
-
function _extends$
|
|
297
|
+
var _path$N;
|
|
298
|
+
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); }
|
|
293
299
|
var SvgInfo18 = function SvgInfo18(props, ref) {
|
|
294
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
300
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$Q({
|
|
295
301
|
xmlns: "http://www.w3.org/2000/svg",
|
|
296
302
|
width: 18,
|
|
297
303
|
height: 18,
|
|
298
304
|
viewBox: "0 0 18 18",
|
|
299
305
|
ref: ref
|
|
300
|
-
}, props), _path$
|
|
306
|
+
}, props), _path$N || (_path$N = /*#__PURE__*/React__namespace.createElement("path", {
|
|
301
307
|
fillRule: "evenodd",
|
|
302
308
|
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
309
|
})));
|
|
304
310
|
};
|
|
305
|
-
var ForwardRef$
|
|
311
|
+
var ForwardRef$Q = /*#__PURE__*/React.forwardRef(SvgInfo18);
|
|
306
312
|
|
|
307
|
-
var _path$
|
|
308
|
-
function _extends$
|
|
313
|
+
var _path$M;
|
|
314
|
+
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); }
|
|
309
315
|
var SvgInfo24 = function SvgInfo24(props, ref) {
|
|
310
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
316
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$P({
|
|
311
317
|
xmlns: "http://www.w3.org/2000/svg",
|
|
312
318
|
width: 24,
|
|
313
319
|
height: 24,
|
|
314
320
|
viewBox: "0 0 24 24",
|
|
315
321
|
ref: ref
|
|
316
|
-
}, props), _path$
|
|
322
|
+
}, props), _path$M || (_path$M = /*#__PURE__*/React__namespace.createElement("path", {
|
|
317
323
|
fillRule: "evenodd",
|
|
318
324
|
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
325
|
})));
|
|
320
326
|
};
|
|
321
|
-
var ForwardRef$
|
|
327
|
+
var ForwardRef$P = /*#__PURE__*/React.forwardRef(SvgInfo24);
|
|
322
328
|
|
|
323
|
-
var _path$
|
|
324
|
-
function _extends$
|
|
329
|
+
var _path$L;
|
|
330
|
+
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); }
|
|
325
331
|
var SvgHelpFill10 = function SvgHelpFill10(props, ref) {
|
|
326
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
332
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$O({
|
|
327
333
|
width: 10,
|
|
328
334
|
height: 10,
|
|
329
335
|
viewBox: "0 0 10 10",
|
|
330
336
|
xmlns: "http://www.w3.org/2000/svg",
|
|
331
337
|
ref: ref
|
|
332
|
-
}, props), _path$
|
|
338
|
+
}, props), _path$L || (_path$L = /*#__PURE__*/React__namespace.createElement("path", {
|
|
333
339
|
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
340
|
})));
|
|
335
341
|
};
|
|
336
|
-
var ForwardRef$
|
|
342
|
+
var ForwardRef$O = /*#__PURE__*/React.forwardRef(SvgHelpFill10);
|
|
337
343
|
|
|
338
|
-
var _path$
|
|
339
|
-
function _extends$
|
|
344
|
+
var _path$K;
|
|
345
|
+
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); }
|
|
340
346
|
var SvgHelpFill16 = function SvgHelpFill16(props, ref) {
|
|
341
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
347
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$N({
|
|
342
348
|
width: 16,
|
|
343
349
|
height: 16,
|
|
344
350
|
viewBox: "0 0 16 16",
|
|
345
351
|
xmlns: "http://www.w3.org/2000/svg",
|
|
346
352
|
ref: ref
|
|
347
|
-
}, props), _path$
|
|
353
|
+
}, props), _path$K || (_path$K = /*#__PURE__*/React__namespace.createElement("path", {
|
|
348
354
|
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
355
|
})));
|
|
350
356
|
};
|
|
351
|
-
var ForwardRef$
|
|
357
|
+
var ForwardRef$N = /*#__PURE__*/React.forwardRef(SvgHelpFill16);
|
|
352
358
|
|
|
353
359
|
const systemIcons = {
|
|
354
360
|
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: {
|
|
373
|
-
clear: ForwardRef$14,
|
|
374
|
-
foldingArrow: ForwardRef$11,
|
|
375
|
-
accept: ForwardRef$_,
|
|
376
|
-
search: ForwardRef$X,
|
|
377
|
-
calendar: ForwardRef$U,
|
|
378
|
-
info: ForwardRef$R,
|
|
379
|
-
help: ForwardRef$P,
|
|
380
|
-
},
|
|
381
|
-
36: {
|
|
382
361
|
clear: ForwardRef$14,
|
|
383
362
|
foldingArrow: ForwardRef$11,
|
|
384
363
|
accept: ForwardRef$_,
|
|
@@ -387,7 +366,7 @@ const systemIcons = {
|
|
|
387
366
|
info: ForwardRef$R,
|
|
388
367
|
help: ForwardRef$O,
|
|
389
368
|
},
|
|
390
|
-
|
|
369
|
+
24: {
|
|
391
370
|
clear: ForwardRef$14,
|
|
392
371
|
foldingArrow: ForwardRef$11,
|
|
393
372
|
accept: ForwardRef$_,
|
|
@@ -396,7 +375,7 @@ const systemIcons = {
|
|
|
396
375
|
info: ForwardRef$R,
|
|
397
376
|
help: ForwardRef$O,
|
|
398
377
|
},
|
|
399
|
-
|
|
378
|
+
30: {
|
|
400
379
|
clear: ForwardRef$13,
|
|
401
380
|
foldingArrow: ForwardRef$10,
|
|
402
381
|
accept: ForwardRef$Z,
|
|
@@ -405,27 +384,54 @@ const systemIcons = {
|
|
|
405
384
|
info: ForwardRef$Q,
|
|
406
385
|
help: ForwardRef$O,
|
|
407
386
|
},
|
|
408
|
-
|
|
387
|
+
36: {
|
|
409
388
|
clear: ForwardRef$13,
|
|
410
389
|
foldingArrow: ForwardRef$10,
|
|
411
390
|
accept: ForwardRef$Z,
|
|
412
391
|
search: ForwardRef$W,
|
|
413
392
|
calendar: ForwardRef$T,
|
|
414
393
|
info: ForwardRef$Q,
|
|
415
|
-
help: ForwardRef$
|
|
394
|
+
help: ForwardRef$N,
|
|
395
|
+
},
|
|
396
|
+
42: {
|
|
397
|
+
clear: ForwardRef$13,
|
|
398
|
+
foldingArrow: ForwardRef$10,
|
|
399
|
+
accept: ForwardRef$Z,
|
|
400
|
+
search: ForwardRef$W,
|
|
401
|
+
calendar: ForwardRef$T,
|
|
402
|
+
info: ForwardRef$Q,
|
|
403
|
+
help: ForwardRef$N,
|
|
404
|
+
},
|
|
405
|
+
48: {
|
|
406
|
+
clear: ForwardRef$12,
|
|
407
|
+
foldingArrow: ForwardRef$$,
|
|
408
|
+
accept: ForwardRef$Y,
|
|
409
|
+
search: ForwardRef$V,
|
|
410
|
+
calendar: ForwardRef$S,
|
|
411
|
+
info: ForwardRef$P,
|
|
412
|
+
help: ForwardRef$N,
|
|
413
|
+
},
|
|
414
|
+
60: {
|
|
415
|
+
clear: ForwardRef$12,
|
|
416
|
+
foldingArrow: ForwardRef$$,
|
|
417
|
+
accept: ForwardRef$Y,
|
|
418
|
+
search: ForwardRef$V,
|
|
419
|
+
calendar: ForwardRef$S,
|
|
420
|
+
info: ForwardRef$P,
|
|
421
|
+
help: ForwardRef$N,
|
|
416
422
|
},
|
|
417
423
|
none: {
|
|
418
|
-
clear: ForwardRef$
|
|
419
|
-
foldingArrow: ForwardRef$
|
|
420
|
-
accept: ForwardRef$
|
|
421
|
-
search: ForwardRef$
|
|
422
|
-
calendar: ForwardRef$
|
|
423
|
-
info: ForwardRef$
|
|
424
|
-
help: ForwardRef$
|
|
424
|
+
clear: ForwardRef$13,
|
|
425
|
+
foldingArrow: ForwardRef$10,
|
|
426
|
+
accept: ForwardRef$Z,
|
|
427
|
+
search: ForwardRef$W,
|
|
428
|
+
calendar: ForwardRef$T,
|
|
429
|
+
info: ForwardRef$Q,
|
|
430
|
+
help: ForwardRef$N,
|
|
425
431
|
},
|
|
426
432
|
};
|
|
427
433
|
|
|
428
|
-
var buttonCss = {"root":"
|
|
434
|
+
var buttonCss = {"root":"_8VqrY8","mode-solid":"J0cSO1","mode-outline":"c3go-D","mode-none":"_4E3SpU","mode-ghost":"_20eYu6","size-18":"FbC1rL","size-24":"whlLZ1","size-30":"I5D9TX","size-36":"_6VRMC8","size-42":"dvQ3Dz","size-48":"QCfqGx","modeSolid":"J0cSO1","modeOutline":"c3go-D","modeNone":"_4E3SpU","modeGhost":"_20eYu6","size18":"FbC1rL","size24":"whlLZ1","size30":"I5D9TX","size36":"_6VRMC8","size42":"dvQ3Dz","size48":"QCfqGx"};
|
|
429
435
|
|
|
430
436
|
const allButtonColors = [
|
|
431
437
|
'accent', 'primary', 'secondary', 'negative',
|
|
@@ -444,17 +450,17 @@ const Button = uuiCore.withMods(uuiComponents.Button, applyButtonMods, (props) =
|
|
|
444
450
|
clearIcon: systemIcons[props.size || defaultSize$a].clear,
|
|
445
451
|
}));
|
|
446
452
|
|
|
447
|
-
var css$
|
|
453
|
+
var css$18 = {"root":"PJgbfC"};
|
|
448
454
|
|
|
449
455
|
const allIconColors = [
|
|
450
456
|
'info', 'success', 'warning', 'error', 'secondary', 'default',
|
|
451
457
|
];
|
|
452
458
|
function applyIconButtonMods(mods) {
|
|
453
|
-
return [`icon-button-${mods.color || 'default'}`, css$
|
|
459
|
+
return [`icon-button-${mods.color || 'default'}`, css$18.root];
|
|
454
460
|
}
|
|
455
461
|
const IconButton = uuiCore.withMods(uuiComponents.IconButton, applyIconButtonMods);
|
|
456
462
|
|
|
457
|
-
var css$
|
|
463
|
+
var css$17 = {"root":"wdtlHa","size-18":"Y3e51Y","size-24":"VRtARV","size-30":"_9Wqcrk","size-36":"p6AnYX","size-42":"P7GjFG","size-48":"FxlIWP","size18":"Y3e51Y","size24":"VRtARV","size30":"_9Wqcrk","size36":"p6AnYX","size42":"P7GjFG","size48":"FxlIWP"};
|
|
458
464
|
|
|
459
465
|
function getIconClass(props) {
|
|
460
466
|
const classList = {
|
|
@@ -477,8 +483,8 @@ const defaultSize$9 = '36';
|
|
|
477
483
|
const allLinkButtonColors = ['primary', 'secondary', 'contrast'];
|
|
478
484
|
function applyLinkButtonMods(mods) {
|
|
479
485
|
return [
|
|
480
|
-
css$
|
|
481
|
-
css$
|
|
486
|
+
css$17.root,
|
|
487
|
+
css$17['size-' + (mods.size || defaultSize$9)],
|
|
482
488
|
...getIconClass(mods),
|
|
483
489
|
`link-button-${mods.color || 'primary'}`,
|
|
484
490
|
];
|
|
@@ -488,23 +494,23 @@ const LinkButton = uuiCore.withMods(uuiComponents.Button, applyLinkButtonMods, (
|
|
|
488
494
|
clearIcon: systemIcons[props.size || defaultSize$9].clear,
|
|
489
495
|
}));
|
|
490
496
|
|
|
491
|
-
var css$
|
|
497
|
+
var css$16 = {"root":"wkx91-","uui-notification":"GltTci","size-36":"NX0-h3","size-48":"yo-Gjm","size-60":"_8Nc4Zp","uuiNotification":"GltTci","size36":"NX0-h3","size48":"yo-Gjm","size60":"_8Nc4Zp"};
|
|
492
498
|
|
|
493
499
|
function applyTabButtonMods(mods) {
|
|
494
500
|
return [
|
|
495
|
-
css$
|
|
501
|
+
css$16.root,
|
|
496
502
|
'informer-default',
|
|
497
|
-
css$
|
|
498
|
-
mods.withNotify && css$
|
|
503
|
+
css$16['size-' + (mods.size || '48')],
|
|
504
|
+
mods.withNotify && css$16.uuiNotification,
|
|
499
505
|
...getIconClass(mods),
|
|
500
506
|
];
|
|
501
507
|
}
|
|
502
508
|
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) })));
|
|
503
509
|
|
|
504
|
-
var css$
|
|
510
|
+
var css$15 = {"root":"_6UuXuZ"};
|
|
505
511
|
|
|
506
512
|
function applyVerticalTabButtonMods() {
|
|
507
|
-
return [css$
|
|
513
|
+
return [css$15.root];
|
|
508
514
|
}
|
|
509
515
|
const VerticalTabButton = uuiCore.withMods(TabButton, applyVerticalTabButtonMods);
|
|
510
516
|
|
|
@@ -540,89 +546,89 @@ exports.EditMode = void 0;
|
|
|
540
546
|
EditMode["INLINE"] = "inline";
|
|
541
547
|
})(exports.EditMode || (exports.EditMode = {}));
|
|
542
548
|
|
|
543
|
-
var _path$
|
|
544
|
-
function _extends$
|
|
549
|
+
var _path$J;
|
|
550
|
+
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); }
|
|
545
551
|
var SvgCheck12 = function SvgCheck12(props, ref) {
|
|
546
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
552
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$M({
|
|
547
553
|
width: 12,
|
|
548
554
|
height: 12,
|
|
549
555
|
viewBox: "0 0 12 12",
|
|
550
556
|
xmlns: "http://www.w3.org/2000/svg",
|
|
551
557
|
ref: ref
|
|
552
|
-
}, props), _path$
|
|
558
|
+
}, props), _path$J || (_path$J = /*#__PURE__*/React__namespace.createElement("path", {
|
|
553
559
|
fillRule: "evenodd",
|
|
554
560
|
d: "M9.491 3.449 10.51 4.55 5.663 9.024 2.487 6.047l1.026-1.094L5.67 6.975z"
|
|
555
561
|
})));
|
|
556
562
|
};
|
|
557
|
-
var ForwardRef$
|
|
563
|
+
var ForwardRef$M = /*#__PURE__*/React.forwardRef(SvgCheck12);
|
|
558
564
|
|
|
559
|
-
var _path$
|
|
560
|
-
function _extends$
|
|
565
|
+
var _path$I;
|
|
566
|
+
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); }
|
|
561
567
|
var SvgCheck18 = function SvgCheck18(props, ref) {
|
|
562
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
568
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$L({
|
|
563
569
|
width: 18,
|
|
564
570
|
height: 18,
|
|
565
571
|
viewBox: "0 0 18 18",
|
|
566
572
|
xmlns: "http://www.w3.org/2000/svg",
|
|
567
573
|
ref: ref
|
|
568
|
-
}, props), _path$
|
|
574
|
+
}, props), _path$I || (_path$I = /*#__PURE__*/React__namespace.createElement("path", {
|
|
569
575
|
fillRule: "evenodd",
|
|
570
576
|
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"
|
|
571
577
|
})));
|
|
572
578
|
};
|
|
573
|
-
var ForwardRef$
|
|
579
|
+
var ForwardRef$L = /*#__PURE__*/React.forwardRef(SvgCheck18);
|
|
574
580
|
|
|
575
|
-
var _path$
|
|
576
|
-
function _extends$
|
|
581
|
+
var _path$H;
|
|
582
|
+
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); }
|
|
577
583
|
var SvgPartlySelect12 = function SvgPartlySelect12(props, ref) {
|
|
578
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
584
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$K({
|
|
579
585
|
width: 12,
|
|
580
586
|
height: 12,
|
|
581
587
|
viewBox: "0 0 12 12",
|
|
582
588
|
xmlns: "http://www.w3.org/2000/svg",
|
|
583
589
|
ref: ref
|
|
584
|
-
}, props), _path$
|
|
590
|
+
}, props), _path$H || (_path$H = /*#__PURE__*/React__namespace.createElement("path", {
|
|
585
591
|
fillRule: "evenodd",
|
|
586
592
|
d: "M9 5v2H3V5z"
|
|
587
593
|
})));
|
|
588
594
|
};
|
|
589
|
-
var ForwardRef$
|
|
595
|
+
var ForwardRef$K = /*#__PURE__*/React.forwardRef(SvgPartlySelect12);
|
|
590
596
|
|
|
591
|
-
var _path$
|
|
592
|
-
function _extends$
|
|
597
|
+
var _path$G;
|
|
598
|
+
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); }
|
|
593
599
|
var SvgPartlySelect18 = function SvgPartlySelect18(props, ref) {
|
|
594
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
600
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$J({
|
|
595
601
|
width: 18,
|
|
596
602
|
height: 18,
|
|
597
603
|
viewBox: "0 0 18 18",
|
|
598
604
|
xmlns: "http://www.w3.org/2000/svg",
|
|
599
605
|
ref: ref
|
|
600
|
-
}, props), _path$
|
|
606
|
+
}, props), _path$G || (_path$G = /*#__PURE__*/React__namespace.createElement("path", {
|
|
601
607
|
fillRule: "evenodd",
|
|
602
608
|
d: "M14 8v2H4V8z"
|
|
603
609
|
})));
|
|
604
610
|
};
|
|
605
|
-
var ForwardRef$
|
|
611
|
+
var ForwardRef$J = /*#__PURE__*/React.forwardRef(SvgPartlySelect18);
|
|
606
612
|
|
|
607
|
-
var css
|
|
613
|
+
var css$14 = {"root":"f9KDxU","size-18":"_0HLNAf","size-12":"Mj9CmD","mode-cell":"o4uXIT","size18":"_0HLNAf","size12":"Mj9CmD","modeCell":"o4uXIT"};
|
|
608
614
|
|
|
609
615
|
function applyCheckboxMods(mods) {
|
|
610
616
|
return [
|
|
611
|
-
css
|
|
617
|
+
css$14.root, css$14['size-' + (mods.size || '18')], css$14['mode-' + (mods.mode || 'form')],
|
|
612
618
|
];
|
|
613
619
|
}
|
|
614
620
|
const applyUUICheckboxProps = (props) => ({
|
|
615
|
-
icon: props.size === '12' ? ForwardRef$
|
|
616
|
-
indeterminateIcon: props.size === '12' ? ForwardRef$
|
|
621
|
+
icon: props.size === '12' ? ForwardRef$M : ForwardRef$L,
|
|
622
|
+
indeterminateIcon: props.size === '12' ? ForwardRef$K : ForwardRef$J,
|
|
617
623
|
});
|
|
618
624
|
const Checkbox = uuiCore.withMods(uuiComponents.Checkbox, applyCheckboxMods, applyUUICheckboxProps);
|
|
619
625
|
|
|
620
|
-
var css$
|
|
626
|
+
var css$13 = {"root":"EREKhe","size-18":"_4Qft9T","size-12":"ICBM98","size18":"_4Qft9T","size12":"ICBM98"};
|
|
621
627
|
|
|
622
628
|
var _circle;
|
|
623
|
-
function _extends$
|
|
629
|
+
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); }
|
|
624
630
|
var SvgRadioPoint = function SvgRadioPoint(props, ref) {
|
|
625
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
631
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$I({
|
|
626
632
|
width: 18,
|
|
627
633
|
height: 18,
|
|
628
634
|
viewBox: "0 0 18 18",
|
|
@@ -634,18 +640,18 @@ var SvgRadioPoint = function SvgRadioPoint(props, ref) {
|
|
|
634
640
|
r: 6
|
|
635
641
|
})));
|
|
636
642
|
};
|
|
637
|
-
var ForwardRef$
|
|
643
|
+
var ForwardRef$I = /*#__PURE__*/React.forwardRef(SvgRadioPoint);
|
|
638
644
|
|
|
639
645
|
function applyRadioInputMods(mods) {
|
|
640
|
-
return [css$
|
|
646
|
+
return [css$13.root, css$13['size-' + (mods.size || '18')]];
|
|
641
647
|
}
|
|
642
|
-
const RadioInput = uuiCore.withMods(uuiComponents.RadioInput, applyRadioInputMods, () => ({ icon: ForwardRef$
|
|
648
|
+
const RadioInput = uuiCore.withMods(uuiComponents.RadioInput, applyRadioInputMods, () => ({ icon: ForwardRef$I }));
|
|
643
649
|
|
|
644
|
-
var css$
|
|
650
|
+
var css$12 = {"root":"-AtOII","size-12":"IWvYBg","size-18":"MHLJ05","size-24":"Wh1fv6","size12":"IWvYBg","size18":"MHLJ05","size24":"Wh1fv6"};
|
|
645
651
|
|
|
646
652
|
function applySwitchMods(mods) {
|
|
647
653
|
return [
|
|
648
|
-
'switch-vars', css$
|
|
654
|
+
'switch-vars', css$12.root, css$12['size-' + (mods.size || '18')],
|
|
649
655
|
];
|
|
650
656
|
}
|
|
651
657
|
const Switch = uuiCore.withMods(uuiComponents.Switch, applySwitchMods);
|
|
@@ -664,7 +670,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
664
670
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
665
671
|
PERFORMANCE OF THIS SOFTWARE.
|
|
666
672
|
***************************************************************************** */
|
|
667
|
-
/* global Reflect, Promise */
|
|
673
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
668
674
|
|
|
669
675
|
|
|
670
676
|
function __rest(s, e) {
|
|
@@ -687,9 +693,14 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
687
693
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
688
694
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
689
695
|
});
|
|
690
|
-
}
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
699
|
+
var e = new Error(message);
|
|
700
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
701
|
+
};
|
|
691
702
|
|
|
692
|
-
var textInputCss = {"root":"
|
|
703
|
+
var textInputCss = {"root":"GJMm1R","mode-form":"_5hAkUR","mode-inline":"-tI-P6","mode-cell":"ytSYhn","size-24":"W3XcQE","size-30":"uIDEjj","size-36":"rUoG4e","size-42":"V2ntbp","size-48":"LLcDun","modeForm":"_5hAkUR","modeInline":"-tI-P6","modeCell":"ytSYhn","size24":"W3XcQE","size30":"uIDEjj","size36":"rUoG4e","size42":"V2ntbp","size48":"LLcDun"};
|
|
693
704
|
|
|
694
705
|
const defaultSize$8 = '36';
|
|
695
706
|
const defaultMode$4 = exports.EditMode.FORM;
|
|
@@ -718,131 +729,131 @@ const SearchInput = React__namespace.default.forwardRef((props, ref) => {
|
|
|
718
729
|
: undefined, type: "search", inputMode: "search", ref: ref }, textInputProps, iEditable))) })));
|
|
719
730
|
});
|
|
720
731
|
|
|
721
|
-
var css$
|
|
732
|
+
var css$11 = {"root":"wlkpfY","mode-block":"ATY7Dj","mode-inline":"V1-OSv","padding-0":"NFsyZK","padding-6":"oX47lN","padding-12":"qBguVf","padding-18":"vKbCmJ","modeBlock":"ATY7Dj","modeInline":"V1-OSv","padding0":"NFsyZK","padding6":"oX47lN","padding12":"qBguVf","padding18":"vKbCmJ"};
|
|
722
733
|
|
|
723
734
|
function applyAccordionMods(mods) {
|
|
724
735
|
return [
|
|
725
|
-
css$
|
|
736
|
+
css$11.root, css$11['mode-' + (mods.mode || 'block')], mods.padding && css$11['padding-' + mods.padding],
|
|
726
737
|
];
|
|
727
738
|
}
|
|
728
739
|
const Accordion = uuiCore.withMods(uuiComponents.Accordion, applyAccordionMods, (mods) => ({
|
|
729
740
|
dropdownIcon: mods.dropdownIcon !== null && systemIcons[mods.mode === 'block' ? '60' : '30'].foldingArrow,
|
|
730
741
|
}));
|
|
731
742
|
|
|
732
|
-
var css$
|
|
743
|
+
var css$10 = {"root":"ZkXdC8"};
|
|
733
744
|
|
|
734
|
-
const ControlGroup = uuiCore.withMods(uuiComponents.ControlGroup, () => [css$
|
|
745
|
+
const ControlGroup = uuiCore.withMods(uuiComponents.ControlGroup, () => [css$10.root]);
|
|
735
746
|
|
|
736
|
-
var css
|
|
747
|
+
var css$$ = {"root":"L9F42D","border-bottom":"_25OoIr","top-shadow":"bh7Vna","size-24":"avN-Wf","size-30":"_4a50jF","size-36":"YWwn1y","size-42":"I8-1--","size-48":"KI98J8","padding-6":"C6dO4l","padding-12":"Djwgqi","padding-18":"_7VZNrQ","padding-24":"_4xpFC5","margin-24":"P2cS7N","margin-12":"ks2Ges","vPadding-12":"FCxO4c","vPadding-18":"_4BOCW7","vPadding-24":"uovHLQ","vPadding-36":"x6G5tk","vPadding-48":"_91Mta0","spacing-6":"U6ze-i","spacing-12":"ip2W5s","spacing-18":"WXYMwg","borderBottom":"_25OoIr","topShadow":"bh7Vna","size24":"avN-Wf","size30":"_4a50jF","size36":"YWwn1y","size42":"I8-1--","size48":"KI98J8","padding6":"C6dO4l","padding12":"Djwgqi","padding18":"_7VZNrQ","padding24":"_4xpFC5","margin24":"P2cS7N","margin12":"ks2Ges","vPadding12":"FCxO4c","vPadding18":"_4BOCW7","vPadding24":"uovHLQ","vPadding36":"x6G5tk","vPadding48":"_91Mta0","spacing6":"U6ze-i","spacing12":"ip2W5s","spacing18":"WXYMwg"};
|
|
737
748
|
|
|
738
|
-
const FlexCell = uuiCore.withMods(uuiComponents.FlexCell, (
|
|
749
|
+
const FlexCell = uuiCore.withMods(uuiComponents.FlexCell, () => [css$$.flexCell]);
|
|
739
750
|
|
|
740
751
|
const FlexRow = uuiCore.withMods(uuiComponents.FlexRow, (props) => {
|
|
741
752
|
return [
|
|
742
|
-
css
|
|
753
|
+
css$$.root, props.size !== null && css$$['size-' + (props.size || '36')], props.padding && css$$['padding-' + props.padding], props.vPadding && css$$['vPadding-' + props.vPadding], props.margin && css$$['margin-' + props.margin], props.topShadow && css$$.topShadow, props.borderBottom && css$$.borderBottom, props.spacing && css$$['spacing-' + props.spacing],
|
|
743
754
|
];
|
|
744
755
|
});
|
|
745
756
|
|
|
746
|
-
var css$
|
|
757
|
+
var css$_ = {"root":"_75cfoV","margin-24":"r8-hwl","padding-12":"NNNuW5","padding-24":"vHd6oa","shadow":"pVQN-r","margin24":"r8-hwl","padding12":"NNNuW5","padding24":"vHd6oa"};
|
|
747
758
|
|
|
748
759
|
const Panel = uuiCore.withMods(uuiComponents.VPanel, (props) => [
|
|
749
|
-
'uui-panel', css$
|
|
760
|
+
'uui-panel', css$_.root, props.shadow && css$_.shadow, props.margin && css$_['margin-' + props.margin],
|
|
750
761
|
]);
|
|
751
762
|
|
|
752
|
-
var _path$
|
|
753
|
-
function _extends$
|
|
763
|
+
var _path$F;
|
|
764
|
+
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); }
|
|
754
765
|
var SvgNotificationCheckCircleFill24 = function SvgNotificationCheckCircleFill24(props, ref) {
|
|
755
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
766
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$H({
|
|
756
767
|
xmlns: "http://www.w3.org/2000/svg",
|
|
757
768
|
width: 24,
|
|
758
769
|
height: 24,
|
|
759
770
|
viewBox: "0 0 24 24",
|
|
760
771
|
ref: ref
|
|
761
|
-
}, props), _path$
|
|
772
|
+
}, props), _path$F || (_path$F = /*#__PURE__*/React__namespace.createElement("path", {
|
|
762
773
|
fillRule: "evenodd",
|
|
763
774
|
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"
|
|
764
775
|
})));
|
|
765
776
|
};
|
|
766
|
-
var ForwardRef$
|
|
777
|
+
var ForwardRef$H = /*#__PURE__*/React.forwardRef(SvgNotificationCheckCircleFill24);
|
|
767
778
|
|
|
768
|
-
var _path$
|
|
769
|
-
function _extends$
|
|
779
|
+
var _path$E;
|
|
780
|
+
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); }
|
|
770
781
|
var SvgNotificationWarningFill24 = function SvgNotificationWarningFill24(props, ref) {
|
|
771
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
782
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$G({
|
|
772
783
|
xmlns: "http://www.w3.org/2000/svg",
|
|
773
784
|
width: 24,
|
|
774
785
|
height: 24,
|
|
775
786
|
viewBox: "0 0 24 24",
|
|
776
787
|
ref: ref
|
|
777
|
-
}, props), _path$
|
|
788
|
+
}, props), _path$E || (_path$E = /*#__PURE__*/React__namespace.createElement("path", {
|
|
778
789
|
fillRule: "evenodd",
|
|
779
790
|
d: "M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"
|
|
780
791
|
})));
|
|
781
792
|
};
|
|
782
|
-
var ForwardRef$
|
|
793
|
+
var ForwardRef$G = /*#__PURE__*/React.forwardRef(SvgNotificationWarningFill24);
|
|
783
794
|
|
|
784
|
-
var _path$
|
|
785
|
-
function _extends$
|
|
795
|
+
var _path$D;
|
|
796
|
+
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); }
|
|
786
797
|
var SvgNotificationErrorFill24 = function SvgNotificationErrorFill24(props, ref) {
|
|
787
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
798
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$F({
|
|
788
799
|
xmlns: "http://www.w3.org/2000/svg",
|
|
789
800
|
width: 24,
|
|
790
801
|
height: 24,
|
|
791
802
|
viewBox: "0 0 24 24",
|
|
792
803
|
ref: ref
|
|
793
|
-
}, props), _path$
|
|
804
|
+
}, props), _path$D || (_path$D = /*#__PURE__*/React__namespace.createElement("path", {
|
|
794
805
|
fillRule: "evenodd",
|
|
795
806
|
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"
|
|
796
807
|
})));
|
|
797
808
|
};
|
|
798
|
-
var ForwardRef$
|
|
809
|
+
var ForwardRef$F = /*#__PURE__*/React.forwardRef(SvgNotificationErrorFill24);
|
|
799
810
|
|
|
800
|
-
var _path$
|
|
801
|
-
function _extends$
|
|
811
|
+
var _path$C;
|
|
812
|
+
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); }
|
|
802
813
|
var SvgNotificationHelpFill24 = function SvgNotificationHelpFill24(props, ref) {
|
|
803
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
814
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$E({
|
|
804
815
|
xmlns: "http://www.w3.org/2000/svg",
|
|
805
816
|
width: 24,
|
|
806
817
|
height: 24,
|
|
807
818
|
viewBox: "0 0 24 24",
|
|
808
819
|
ref: ref
|
|
809
|
-
}, props), _path$
|
|
820
|
+
}, props), _path$C || (_path$C = /*#__PURE__*/React__namespace.createElement("path", {
|
|
810
821
|
fillRule: "evenodd",
|
|
811
822
|
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"
|
|
812
823
|
})));
|
|
813
824
|
};
|
|
814
|
-
var ForwardRef$
|
|
825
|
+
var ForwardRef$E = /*#__PURE__*/React.forwardRef(SvgNotificationHelpFill24);
|
|
815
826
|
|
|
816
|
-
var _path$
|
|
817
|
-
function _extends$
|
|
827
|
+
var _path$B;
|
|
828
|
+
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); }
|
|
818
829
|
var SvgNavigationClose24$1 = function SvgNavigationClose24(props, ref) {
|
|
819
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
830
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$D({
|
|
820
831
|
xmlns: "http://www.w3.org/2000/svg",
|
|
821
832
|
width: 24,
|
|
822
833
|
height: 24,
|
|
823
834
|
viewBox: "0 0 24 24",
|
|
824
835
|
ref: ref
|
|
825
|
-
}, props), _path$
|
|
836
|
+
}, props), _path$B || (_path$B = /*#__PURE__*/React__namespace.createElement("path", {
|
|
826
837
|
fillRule: "evenodd",
|
|
827
838
|
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"
|
|
828
839
|
})));
|
|
829
840
|
};
|
|
830
|
-
var ForwardRef$
|
|
841
|
+
var ForwardRef$D = /*#__PURE__*/React.forwardRef(SvgNavigationClose24$1);
|
|
831
842
|
|
|
832
|
-
var css$
|
|
843
|
+
var css$Z = {"root":"_2Thw1n","icon-wrapper":"z2bOw3","alert-wrapper":"_2NMEeW","action-wrapper":"_57O3WA","action-icon":"mlOF-K","action-link":"Tu366D","close-icon":"UXPlmR","main-path":"zyVGqR","content":"yvHLqF","iconWrapper":"z2bOw3","alertWrapper":"_2NMEeW","actionWrapper":"_57O3WA","actionIcon":"mlOF-K","actionLink":"Tu366D","closeIcon":"UXPlmR","mainPath":"zyVGqR"};
|
|
833
844
|
|
|
834
|
-
const Alert = React__namespace.forwardRef((props, ref) => (React__namespace.createElement("div", Object.assign({ role: "alert", ref: ref, className: cx__default.default(css$
|
|
835
|
-
React__namespace.createElement("div", { className: css$
|
|
836
|
-
props.icon && (React__namespace.createElement("div", { className: css$
|
|
837
|
-
React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$
|
|
838
|
-
React__namespace.createElement("div", { className: css$
|
|
845
|
+
const Alert = React__namespace.forwardRef((props, ref) => (React__namespace.createElement("div", Object.assign({ role: "alert", ref: ref, className: cx__default.default(css$Z.alertWrapper, `alert-${props.color || 'default'}`, css$Z.root, props.cx) }, props.rawProps),
|
|
846
|
+
React__namespace.createElement("div", { className: css$Z.mainPath },
|
|
847
|
+
props.icon && (React__namespace.createElement("div", { className: css$Z.iconWrapper },
|
|
848
|
+
React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$Z.actionIcon }))),
|
|
849
|
+
React__namespace.createElement("div", { className: css$Z.content },
|
|
839
850
|
props.children,
|
|
840
|
-
props.actions && (React__namespace.createElement("div", { className: css$
|
|
841
|
-
props.onClose && React__namespace.createElement(IconButton, { icon: ForwardRef$
|
|
842
|
-
const WarningAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
843
|
-
const SuccessAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
844
|
-
const HintAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
845
|
-
const ErrorAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$
|
|
851
|
+
props.actions && (React__namespace.createElement("div", { className: css$Z.actionWrapper }, props.actions.map((action) => (React__namespace.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$Z.actionLink, size: "30" })))))),
|
|
852
|
+
props.onClose && React__namespace.createElement(IconButton, { icon: ForwardRef$D, color: "default", onClick: props.onClose, cx: css$Z.closeIcon })))));
|
|
853
|
+
const WarningAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$G, color: "warning", ref: ref }, props)));
|
|
854
|
+
const SuccessAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$H, color: "success", ref: ref }, props)));
|
|
855
|
+
const HintAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$E, color: "info", ref: ref }, props)));
|
|
856
|
+
const ErrorAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$F, color: "error", ref: ref }, props)));
|
|
846
857
|
|
|
847
858
|
class Dropdown extends React__namespace.Component {
|
|
848
859
|
render() {
|
|
@@ -850,16 +861,16 @@ class Dropdown extends React__namespace.Component {
|
|
|
850
861
|
}
|
|
851
862
|
}
|
|
852
863
|
|
|
853
|
-
var css$
|
|
864
|
+
var css$Y = {"root":"_8ToT4D"};
|
|
854
865
|
|
|
855
866
|
function applyDropdownContainerMods(mods) {
|
|
856
867
|
return [
|
|
857
|
-
css$
|
|
868
|
+
css$Y.root, mods.vPadding && `vPadding-${mods.vPadding}`, mods.padding && `padding-${mods.padding}`,
|
|
858
869
|
];
|
|
859
870
|
}
|
|
860
871
|
const DropdownContainer = uuiCore.withMods(uuiComponents.DropdownContainer, applyDropdownContainerMods);
|
|
861
872
|
|
|
862
|
-
var css$
|
|
873
|
+
var css$X = {"menuRoot":"x3hIV3","bodyRoot":"KJMqO-","submenuRootItem":"FVZ2LP","iconAfter":"ANYUZ-","iconCheck":"SlyqHl","splitterRoot":"LkAzjS","splitter":"b90dig","headerRoot":"o-WYzo","itemRoot":"REJPky","icon":"mRdW9l","link":"f3N9tu"};
|
|
863
874
|
|
|
864
875
|
const icons = systemIcons['36'];
|
|
865
876
|
exports.IDropdownControlKeys = void 0;
|
|
@@ -898,10 +909,10 @@ function DropdownMenuContainer(props) {
|
|
|
898
909
|
props.onClose();
|
|
899
910
|
}
|
|
900
911
|
};
|
|
901
|
-
return (React__namespace.default.createElement(FocusLock__default.default, { as: "menu", className: css$
|
|
912
|
+
return (React__namespace.default.createElement(FocusLock__default.default, { as: "menu", className: css$X.menuRoot, returnFocus: true, autoFocus: false, ref: menuRef, lockProps: { onKeyDown: handleArrowKeys, tabIndex: -1 } },
|
|
902
913
|
React__namespace.default.createElement(uuiComponents.DropdownContainer, Object.assign({}, props, { rawProps: { tabIndex: -1 } }))));
|
|
903
914
|
}
|
|
904
|
-
const DropdownMenuBody = uuiCore.withMods(DropdownMenuContainer, () => [css$
|
|
915
|
+
const DropdownMenuBody = uuiCore.withMods(DropdownMenuContainer, () => [css$X.bodyRoot], ({ style }) => ({ style }));
|
|
905
916
|
const DropdownMenuButton = React__namespace.default.forwardRef((props, ref) => {
|
|
906
917
|
const context = React.useContext(uuiCore.UuiContext);
|
|
907
918
|
const { icon, iconPosition, onIconClick, caption, isDisabled, isSelected, isActive, link, href, onClick, toggleDropdownOpening, isDropdown, isOpen, target, } = props;
|
|
@@ -922,37 +933,52 @@ const DropdownMenuButton = React__namespace.default.forwardRef((props, ref) => {
|
|
|
922
933
|
const getMenuButtonContent = () => {
|
|
923
934
|
const isIconBefore = Boolean(icon && iconPosition !== 'right');
|
|
924
935
|
const isIconAfter = Boolean(icon && iconPosition === 'right');
|
|
925
|
-
const iconElement = (React__namespace.default.createElement(IconButton, { icon: icon, color: isActive ? 'info' : 'default', onClick: onIconClick, cx: uuiCore.cx(css$
|
|
936
|
+
const iconElement = (React__namespace.default.createElement(IconButton, { icon: icon, color: isActive ? 'info' : 'default', onClick: onIconClick, cx: uuiCore.cx(css$X.icon, iconPosition === 'right' ? css$X.iconAfter : css$X.iconBefore) }));
|
|
926
937
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
927
938
|
isIconBefore && iconElement,
|
|
928
|
-
React__namespace.default.createElement(uuiComponents.Text, { cx: css$
|
|
939
|
+
React__namespace.default.createElement(uuiComponents.Text, { cx: css$X.caption }, caption),
|
|
929
940
|
isIconAfter && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
930
941
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
931
942
|
iconElement))));
|
|
932
943
|
};
|
|
933
944
|
const isAnchor = Boolean(link || href);
|
|
934
|
-
const itemClassNames = uuiCore.cx(props.cx, css$
|
|
935
|
-
return isAnchor ? (React__namespace.default.createElement(uuiComponents.Anchor, { cx: uuiCore.cx(css$
|
|
945
|
+
const itemClassNames = uuiCore.cx(props.cx, css$X.itemRoot, isDisabled && uuiCore.uuiMod.disabled, isActive && uuiCore.uuiMod.active, isOpen && uuiCore.uuiMod.opened);
|
|
946
|
+
return isAnchor ? (React__namespace.default.createElement(uuiComponents.Anchor, { cx: uuiCore.cx(css$X.link, itemClassNames), link: link, href: href, rawProps: { role: 'menuitem', tabIndex: isDisabled ? -1 : 0 }, onClick: handleClick, isDisabled: isDisabled, forwardedRef: ref, target: target }, getMenuButtonContent())) : (React__namespace.default.createElement(uuiComponents.FlexRow, { rawProps: {
|
|
936
947
|
tabIndex: isDisabled ? -1 : 0,
|
|
937
948
|
role: 'menuitem',
|
|
938
949
|
onKeyDown: isDisabled ? null : handleOpenDropdown,
|
|
939
950
|
}, cx: itemClassNames, onClick: handleClick, ref: ref },
|
|
940
951
|
getMenuButtonContent(),
|
|
941
|
-
isSelected && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icons.accept, cx: css$
|
|
952
|
+
isSelected && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icons.accept, cx: css$X.selectedCheckmark })));
|
|
942
953
|
});
|
|
943
954
|
DropdownMenuButton.displayName = 'DropdownMenuButton';
|
|
944
955
|
function DropdownMenuSplitter(props) {
|
|
945
|
-
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$
|
|
946
|
-
React__namespace.default.createElement("hr", { className: css$
|
|
956
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$X.splitterRoot) },
|
|
957
|
+
React__namespace.default.createElement("hr", { className: css$X.splitter })));
|
|
947
958
|
}
|
|
948
959
|
function DropdownMenuHeader(props) {
|
|
949
|
-
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$
|
|
950
|
-
React__namespace.default.createElement("span", { className: css$
|
|
960
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$X.headerRoot) },
|
|
961
|
+
React__namespace.default.createElement("span", { className: css$X.header }, props.caption)));
|
|
951
962
|
}
|
|
952
963
|
function DropdownSubMenu(props) {
|
|
953
|
-
|
|
964
|
+
const subMenuModifiers = [
|
|
965
|
+
{
|
|
966
|
+
name: 'offset',
|
|
967
|
+
options: {
|
|
968
|
+
offset: ({ placement }) => {
|
|
969
|
+
if (placement === 'right-start') {
|
|
970
|
+
return [-6, 0];
|
|
971
|
+
}
|
|
972
|
+
else {
|
|
973
|
+
return [6, 0];
|
|
974
|
+
}
|
|
975
|
+
},
|
|
976
|
+
},
|
|
977
|
+
},
|
|
978
|
+
];
|
|
979
|
+
return (React__namespace.default.createElement(uuiComponents.Dropdown, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", openDelay: 400, closeDelay: 400, placement: "right-start", modifiers: subMenuModifiers, renderBody: (dropdownProps) => React__namespace.default.createElement(DropdownMenuBody, Object.assign({ closeOnKey: exports.IDropdownControlKeys.LEFT_ARROW }, props, dropdownProps)), renderTarget: (_a) => {
|
|
954
980
|
var { toggleDropdownOpening } = _a, targetProps = __rest(_a, ["toggleDropdownOpening"]);
|
|
955
|
-
return (React__namespace.default.createElement(DropdownMenuButton, Object.assign({ cx: uuiCore.cx(css$
|
|
981
|
+
return (React__namespace.default.createElement(DropdownMenuButton, Object.assign({ cx: uuiCore.cx(css$X.submenuRootItem), icon: icons.foldingArrow, iconPosition: "right", isDropdown: true, toggleDropdownOpening: toggleDropdownOpening }, props, targetProps)));
|
|
956
982
|
} }));
|
|
957
983
|
}
|
|
958
984
|
function DropdownMenuSwitchButton(props) {
|
|
@@ -969,16 +995,16 @@ function DropdownMenuSwitchButton(props) {
|
|
|
969
995
|
onHandleValueChange(!isSelected);
|
|
970
996
|
}
|
|
971
997
|
};
|
|
972
|
-
return (React__namespace.default.createElement(uuiComponents.FlexRow, { cx: uuiCore.cx(props.cx, css$
|
|
973
|
-
icon && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icon, cx: css$
|
|
974
|
-
React__namespace.default.createElement(uuiComponents.Text, { cx: css$
|
|
998
|
+
return (React__namespace.default.createElement(uuiComponents.FlexRow, { cx: uuiCore.cx(props.cx, css$X.itemRoot, isDisabled && uuiCore.uuiMod.disabled), onClick: () => onHandleValueChange(!isSelected), rawProps: { role: 'menuitem', onKeyDown: handleKeySelect, tabIndex: isDisabled ? -1 : 0 } },
|
|
999
|
+
icon && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icon, cx: css$X.iconBefore }),
|
|
1000
|
+
React__namespace.default.createElement(uuiComponents.Text, { cx: css$X.caption }, caption),
|
|
975
1001
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
976
1002
|
React__namespace.default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
977
1003
|
}
|
|
978
1004
|
|
|
979
|
-
var css$
|
|
1005
|
+
var css$W = {"root":"_4R-was"};
|
|
980
1006
|
|
|
981
|
-
var css$
|
|
1007
|
+
var css$V = {"line-height-12":"c0gZxd","line-height-18":"_9yC5Xy","line-height-24":"fCRI8r","line-height-30":"cB-KTw","font-size-10":"_5hgTXq","font-size-12":"ehPTyN","font-size-14":"A14tMj","font-size-16":"j84TsK","font-size-18":"oru0vD","font-size-24":"lzjAGG","v-padding-2":"vfRjQs","v-padding-3":"eBe-9I","v-padding-5":"K1iwm5","v-padding-6":"-jVtMF","v-padding-8":"ubhaOD","v-padding-9":"QQK4gd","v-padding-11":"bxpPyC","v-padding-12":"E4XFxU","v-padding-14":"k2CYTE","v-padding-15":"iDnA47","v-padding-17":"_1Ixion","v-padding-18":"_0VchC1","v-padding-23":"iCrk4G","v-padding-24":"NxnczC","lineHeight12":"c0gZxd","lineHeight18":"_9yC5Xy","lineHeight24":"fCRI8r","lineHeight30":"cB-KTw","fontSize10":"_5hgTXq","fontSize12":"ehPTyN","fontSize14":"A14tMj","fontSize16":"j84TsK","fontSize18":"oru0vD","fontSize24":"lzjAGG","vPadding2":"vfRjQs","vPadding3":"eBe-9I","vPadding5":"K1iwm5","vPadding6":"-jVtMF","vPadding8":"ubhaOD","vPadding9":"QQK4gd","vPadding11":"bxpPyC","vPadding12":"E4XFxU","vPadding14":"k2CYTE","vPadding15":"iDnA47","vPadding17":"_1Ixion","vPadding18":"_0VchC1","vPadding23":"iCrk4G","vPadding24":"NxnczC"};
|
|
982
1008
|
|
|
983
1009
|
const defaultTextSettings = {
|
|
984
1010
|
18: { lineHeight: 12, fontSize: 10 },
|
|
@@ -991,7 +1017,7 @@ const defaultTextSettings = {
|
|
|
991
1017
|
};
|
|
992
1018
|
function getTextClasses(props, border) {
|
|
993
1019
|
if (props.size === 'none') {
|
|
994
|
-
return [css$
|
|
1020
|
+
return [css$V['line-height-' + props.lineHeight], css$V['font-size-' + props.fontSize]];
|
|
995
1021
|
}
|
|
996
1022
|
const setting = {
|
|
997
1023
|
size: props.size,
|
|
@@ -1000,7 +1026,7 @@ function getTextClasses(props, border) {
|
|
|
1000
1026
|
};
|
|
1001
1027
|
const vPadding = (+setting.size - +setting.lineHeight - (border ? 2 : 0)) / 2;
|
|
1002
1028
|
return [
|
|
1003
|
-
css$
|
|
1029
|
+
css$V['line-height-' + setting.lineHeight], css$V['font-size-' + setting.fontSize], css$V['v-padding-' + vPadding],
|
|
1004
1030
|
];
|
|
1005
1031
|
}
|
|
1006
1032
|
|
|
@@ -1013,12 +1039,12 @@ function applyTextMods(mods) {
|
|
|
1013
1039
|
return [
|
|
1014
1040
|
`uui-font-${mods.font || 'regular'}`,
|
|
1015
1041
|
`uui-text-${mods.color || 'primary'}`,
|
|
1016
|
-
css$
|
|
1042
|
+
css$W.root,
|
|
1017
1043
|
].concat(textClasses);
|
|
1018
1044
|
}
|
|
1019
1045
|
const Text = uuiCore.withMods(uuiComponents.Text, applyTextMods);
|
|
1020
1046
|
|
|
1021
|
-
var css$
|
|
1047
|
+
var css$U = {"container":"rl2ylZ","loading-word":"aDyVY7","animated-loading":"w-Csef","skeleton_loading":"ouebvS","loadingWord":"aDyVY7","animatedLoading":"w-Csef","skeletonLoading":"ouebvS"};
|
|
1022
1048
|
|
|
1023
1049
|
const TextPlaceholder = (props) => {
|
|
1024
1050
|
const pattern = ' ';
|
|
@@ -1030,35 +1056,35 @@ const TextPlaceholder = (props) => {
|
|
|
1030
1056
|
}
|
|
1031
1057
|
return words;
|
|
1032
1058
|
}, [props.wordsCount]);
|
|
1033
|
-
return (React__namespace.createElement("div", Object.assign({ "aria-busy": true, className: css$
|
|
1034
|
-
props.cx, css$
|
|
1059
|
+
return (React__namespace.createElement("div", Object.assign({ "aria-busy": true, className: css$U.container }, props.rawProps), text.map((it, index) => (React__namespace.createElement("span", { key: index, className: cx__default.default([
|
|
1060
|
+
props.cx, css$U.loadingWord, !props.isNotAnimated && css$U.animatedLoading,
|
|
1035
1061
|
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
1036
1062
|
};
|
|
1037
1063
|
|
|
1038
|
-
var style = {"typography-16":"
|
|
1064
|
+
var style = {"typography-16":"_0ufxpM","typography-14":"_5WJ0MW","typography-12":"DOpYmb","typography-uui":"q8DmOv","typography16":"_0ufxpM","typography14":"_5WJ0MW","typography12":"DOpYmb","typographyUui":"q8DmOv"};
|
|
1039
1065
|
|
|
1040
1066
|
const RichTextView = uuiCore.withMods(uuiComponents.RichTextView, (mods) => [style.typographyUui, style['typography-' + (mods.size || '14')]]);
|
|
1041
1067
|
|
|
1042
|
-
var css$
|
|
1068
|
+
var css$T = {"modal-blocker":"qknKYi","animateModalBlocker":"kCacrK","modal":"WL50aU","modal-footer":"gS78hC","border-top":"_12mkcR","modal-header":"_1EggyR","modalBlocker":"qknKYi","modalFooter":"gS78hC","borderTop":"_12mkcR","modalHeader":"_1EggyR"};
|
|
1043
1069
|
|
|
1044
|
-
const ModalBlocker = uuiCore.withMods(uuiComponents.ModalBlocker, () => [css$
|
|
1045
|
-
const ModalWindow = uuiCore.withMods(uuiComponents.ModalWindow, () => [css$
|
|
1070
|
+
const ModalBlocker = uuiCore.withMods(uuiComponents.ModalBlocker, () => [css$T.modalBlocker]);
|
|
1071
|
+
const ModalWindow = uuiCore.withMods(uuiComponents.ModalWindow, () => [css$T.modal], (props) => ({
|
|
1046
1072
|
style: Object.assign(Object.assign({}, props.style), { width: `${props.width || 420}px`, height: props.height ? `${props.height}px` : 'auto' }),
|
|
1047
1073
|
}));
|
|
1048
1074
|
class ModalHeader extends React__namespace.Component {
|
|
1049
1075
|
render() {
|
|
1050
|
-
return (React__namespace.createElement(FlexRow, { padding: this.props.padding || '24', vPadding: "12", borderBottom: this.props.borderBottom, cx: [css$
|
|
1076
|
+
return (React__namespace.createElement(FlexRow, { padding: this.props.padding || '24', vPadding: "12", borderBottom: this.props.borderBottom, cx: [css$T.modalHeader, this.props.cx], spacing: "12", rawProps: this.props.rawProps },
|
|
1051
1077
|
this.props.title && (React__namespace.createElement(Text, { size: "48", fontSize: "18", font: "semibold" }, this.props.title)),
|
|
1052
1078
|
this.props.children,
|
|
1053
1079
|
this.props.onClose && React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
1054
1080
|
this.props.onClose && (React__namespace.createElement(FlexCell, { shrink: 0, width: "auto" },
|
|
1055
|
-
React__namespace.createElement(IconButton, { icon: ForwardRef$
|
|
1081
|
+
React__namespace.createElement(IconButton, { icon: ForwardRef$D, onClick: this.props.onClose })))));
|
|
1056
1082
|
}
|
|
1057
1083
|
}
|
|
1058
1084
|
class ModalFooter extends React__namespace.Component {
|
|
1059
1085
|
render() {
|
|
1060
1086
|
return (React__namespace.createElement(FlexRow, { spacing: this.props.spacing || '12', cx: [
|
|
1061
|
-
css$
|
|
1087
|
+
css$T.modalFooter, this.props.borderTop && css$T.borderTop, this.props.cx,
|
|
1062
1088
|
], padding: this.props.padding || '24', vPadding: this.props.vPadding || '24', rawProps: this.props.rawProps }, this.props.children));
|
|
1063
1089
|
}
|
|
1064
1090
|
}
|
|
@@ -1146,23 +1172,23 @@ const i18n = Object.assign(Object.assign({}, uuiCore.i18n), { dataPickerBody: {
|
|
|
1146
1172
|
saveButton: 'Save',
|
|
1147
1173
|
} });
|
|
1148
1174
|
|
|
1149
|
-
var _path$
|
|
1150
|
-
function _extends$
|
|
1175
|
+
var _path$A;
|
|
1176
|
+
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); }
|
|
1151
1177
|
var SvgCross = function SvgCross(props, ref) {
|
|
1152
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1178
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$C({
|
|
1153
1179
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1154
1180
|
width: 24,
|
|
1155
1181
|
height: 24,
|
|
1156
1182
|
viewBox: "0 0 24 24",
|
|
1157
1183
|
ref: ref
|
|
1158
|
-
}, props), _path$
|
|
1184
|
+
}, props), _path$A || (_path$A = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1159
1185
|
fillRule: "evenodd",
|
|
1160
1186
|
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"
|
|
1161
1187
|
})));
|
|
1162
1188
|
};
|
|
1163
|
-
var ForwardRef$
|
|
1189
|
+
var ForwardRef$C = /*#__PURE__*/React.forwardRef(SvgCross);
|
|
1164
1190
|
|
|
1165
|
-
var css$
|
|
1191
|
+
var css$S = {"root":"IVcab3","icon-wrapper":"m2lJiF","action-wrapper":"M6Ap5E","action-link":"EHclP4","close-icon":"ZkJ1l3","main-path":"zaU1iM","content":"oLOWJH","clear-button":"YioTpr","close-wrapper":"TM2PsZ","iconWrapper":"m2lJiF","actionWrapper":"M6Ap5E","actionLink":"EHclP4","closeIcon":"ZkJ1l3","mainPath":"zaU1iM","clearButton":"YioTpr","closeWrapper":"TM2PsZ"};
|
|
1166
1192
|
|
|
1167
1193
|
const NotificationCard = React__namespace.default.forwardRef((props, ref) => {
|
|
1168
1194
|
const notificationCardNode = React__namespace.default.useRef(null);
|
|
@@ -1177,34 +1203,34 @@ const NotificationCard = React__namespace.default.forwardRef((props, ref) => {
|
|
|
1177
1203
|
(_b = notificationCardNode.current) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseleave', props.refreshTimer);
|
|
1178
1204
|
};
|
|
1179
1205
|
}, []);
|
|
1180
|
-
return (React__namespace.default.createElement("div", Object.assign({ role: "alert", className: cx__default.default(props.color && `notification-card-${props.color}`, css$
|
|
1181
|
-
React__namespace.default.createElement("div", { className: css$
|
|
1182
|
-
props.icon && (React__namespace.default.createElement("div", { className: css$
|
|
1183
|
-
React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$
|
|
1184
|
-
React__namespace.default.createElement("div", { className: css$
|
|
1206
|
+
return (React__namespace.default.createElement("div", Object.assign({ role: "alert", className: cx__default.default(props.color && `notification-card-${props.color}`, css$S.root, props.cx), ref: notificationCardNode }, props.rawProps),
|
|
1207
|
+
React__namespace.default.createElement("div", { className: css$S.mainPath },
|
|
1208
|
+
props.icon && (React__namespace.default.createElement("div", { className: css$S.iconWrapper },
|
|
1209
|
+
React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$S.actionIcon }))),
|
|
1210
|
+
React__namespace.default.createElement("div", { className: css$S.content },
|
|
1185
1211
|
props.children,
|
|
1186
|
-
props.actions && (React__namespace.default.createElement("div", { className: css$
|
|
1187
|
-
props.onClose && (React__namespace.default.createElement("div", { className: css$
|
|
1188
|
-
React__namespace.default.createElement(IconButton, { icon: ForwardRef$
|
|
1212
|
+
props.actions && (React__namespace.default.createElement("div", { className: css$S.actionWrapper }, props.actions.map((action) => (React__namespace.default.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$S.actionLink, size: "36", rawProps: action.rawProps })))))),
|
|
1213
|
+
props.onClose && (React__namespace.default.createElement("div", { className: css$S.closeWrapper },
|
|
1214
|
+
React__namespace.default.createElement(IconButton, { icon: ForwardRef$C, color: "default", onClick: props.onClose, cx: css$S.closeIcon }))))));
|
|
1189
1215
|
});
|
|
1190
|
-
const WarningNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
1191
|
-
const SuccessNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
1192
|
-
const HintNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
1193
|
-
const ErrorNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
1216
|
+
const WarningNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$G, color: "warning" }, props, { ref: ref, cx: props.cx }))));
|
|
1217
|
+
const SuccessNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$H, color: "success" }, props, { ref: ref, cx: props.cx }))));
|
|
1218
|
+
const HintNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$E, color: "info" }, props, { ref: ref, cx: props.cx }))));
|
|
1219
|
+
const ErrorNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$F, color: "error" }, props, { ref: ref, cx: props.cx }))));
|
|
1194
1220
|
class ClearNotification extends React__namespace.default.Component {
|
|
1195
1221
|
render() {
|
|
1196
|
-
return (React__namespace.default.createElement("div", { className: cx__default.default(css$
|
|
1222
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default(css$S.notificationWrapper, css$S.clearButton) },
|
|
1197
1223
|
React__namespace.default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => this.context.uuiNotifications.clearAll() })));
|
|
1198
1224
|
}
|
|
1199
1225
|
}
|
|
1200
1226
|
ClearNotification.contextType = uuiCore.UuiContext;
|
|
1201
1227
|
|
|
1202
|
-
var css$
|
|
1228
|
+
var css$R = {"root":"_957aEn"};
|
|
1203
1229
|
|
|
1204
1230
|
function applyTooltipMods(mods) {
|
|
1205
1231
|
return [
|
|
1206
1232
|
`tooltip-${mods.color || 'default'}`,
|
|
1207
|
-
css$
|
|
1233
|
+
css$R.root,
|
|
1208
1234
|
];
|
|
1209
1235
|
}
|
|
1210
1236
|
const Tooltip = uuiCore.withMods(uuiComponents.Tooltip, applyTooltipMods);
|
|
@@ -1226,20 +1252,20 @@ class ConfirmationModal extends React__namespace.Component {
|
|
|
1226
1252
|
}
|
|
1227
1253
|
}
|
|
1228
1254
|
|
|
1229
|
-
var css$
|
|
1255
|
+
var css$Q = {"root":"wGE9K-","size-24":"UFFThX","size-30":"A5Mgow","size-36":"r8Zg1Z","size-42":"vfPkkz","size-48":"_2nwLin","size24":"UFFThX","size30":"A5Mgow","size36":"r8Zg1Z","size42":"vfPkkz","size48":"_2nwLin"};
|
|
1230
1256
|
|
|
1231
1257
|
const defaultSize$7 = '36';
|
|
1232
1258
|
function applyLabeledInputMods(mods) {
|
|
1233
|
-
return [css$
|
|
1259
|
+
return [css$Q.root, css$Q['size-' + (mods.size || defaultSize$7)]];
|
|
1234
1260
|
}
|
|
1235
1261
|
const LabeledInput = uuiCore.withMods(uuiComponents.LabeledInput, applyLabeledInputMods, (props) => ({
|
|
1236
1262
|
Tooltip,
|
|
1237
1263
|
infoIcon: systemIcons[props.size || defaultSize$7].help,
|
|
1238
1264
|
}));
|
|
1239
1265
|
|
|
1240
|
-
var css$
|
|
1266
|
+
var css$P = {"root":"EqKe8Q"};
|
|
1241
1267
|
|
|
1242
|
-
const RadioGroup = uuiCore.withMods(uuiComponents.RadioGroup, () => [css$
|
|
1268
|
+
const RadioGroup = uuiCore.withMods(uuiComponents.RadioGroup, () => [css$P.root], () => ({ RadioInput }));
|
|
1243
1269
|
|
|
1244
1270
|
function applyScrollBarsMods() {
|
|
1245
1271
|
return [
|
|
@@ -1250,33 +1276,33 @@ const ScrollBars = uuiCore.withMods(uuiComponents.ScrollBars, applyScrollBarsMod
|
|
|
1250
1276
|
|
|
1251
1277
|
const VirtualList = uuiComponents.VirtualList;
|
|
1252
1278
|
|
|
1253
|
-
var css$
|
|
1279
|
+
var css$O = {"root":"SiQkg5"};
|
|
1254
1280
|
|
|
1255
|
-
var css$
|
|
1281
|
+
var css$N = {"root":"eqwqy3","uui-spinner":"bBunG9","uuiSpinner":"bBunG9"};
|
|
1256
1282
|
|
|
1257
1283
|
function applySpinnerMods() {
|
|
1258
|
-
return [css$
|
|
1284
|
+
return [css$N.root];
|
|
1259
1285
|
}
|
|
1260
1286
|
const Spinner = uuiCore.withMods(uuiComponents.Spinner, applySpinnerMods);
|
|
1261
1287
|
|
|
1262
|
-
const Blocker = uuiCore.withMods(uuiComponents.Blocker, () => [css$
|
|
1288
|
+
const Blocker = uuiCore.withMods(uuiComponents.Blocker, () => [css$O.root], (cmpProps) => ({ renderSpinner: cmpProps.renderSpinner || (() => React__namespace.default.createElement(Spinner, null)) }));
|
|
1263
1289
|
|
|
1264
|
-
var css$
|
|
1290
|
+
var css$M = {"root":"IgOq-b"};
|
|
1265
1291
|
|
|
1266
|
-
const CheckboxGroup = uuiCore.withMods(uuiComponents.CheckboxGroup, () => [css$
|
|
1292
|
+
const CheckboxGroup = uuiCore.withMods(uuiComponents.CheckboxGroup, () => [css$M.root], () => ({ CheckboxInput: Checkbox }));
|
|
1267
1293
|
|
|
1268
1294
|
function MultiSwitchComponent(props, ref) {
|
|
1269
1295
|
return (React__namespace.createElement(ControlGroup, { ref: ref, rawProps: Object.assign(Object.assign({}, props.rawProps), { role: 'tablist' }) }, props.items.map((item, index) => (React__namespace.createElement(Button, Object.assign({}, props, item, { isDisabled: props.isDisabled, key: index + '-' + item.id, onClick: () => props.onValueChange(item.id), mode: props.value === item.id ? 'solid' : 'outline', color: props.color === 'secondary' && props.value === item.id ? 'primary' : props.color || 'primary', size: props.size, rawProps: { 'aria-current': props.value === item.id, role: 'tab' } }))))));
|
|
1270
1296
|
}
|
|
1271
1297
|
const MultiSwitch = React__namespace.forwardRef(MultiSwitchComponent);
|
|
1272
1298
|
|
|
1273
|
-
var css$
|
|
1299
|
+
var css$L = {"root":"tQgnC2","size-24":"_4Ilrzi","size-30":"QzjOsY","size-36":"emuo91","size-42":"aQmhD6","size-48":"TiP4l4","mode-form":"jABptA","mode-cell":"CNrdLy","size24":"_4Ilrzi","size30":"QzjOsY","size36":"emuo91","size42":"aQmhD6","size48":"TiP4l4","modeForm":"jABptA","modeCell":"CNrdLy"};
|
|
1274
1300
|
|
|
1275
1301
|
const defaultSize$6 = '36';
|
|
1276
1302
|
const defaultMode$3 = exports.EditMode.FORM;
|
|
1277
1303
|
function applyNumericInputMods(mods) {
|
|
1278
1304
|
return [
|
|
1279
|
-
textInputCss.root, css$
|
|
1305
|
+
textInputCss.root, css$L.root, css$L['size-' + (mods.size || defaultSize$6)], textInputCss['size-' + (mods.size || defaultSize$6)], textInputCss['mode-' + (mods.mode || defaultMode$3)],
|
|
1280
1306
|
];
|
|
1281
1307
|
}
|
|
1282
1308
|
const NumericInput = uuiCore.withMods(uuiComponents.NumericInput, applyNumericInputMods, (props) => {
|
|
@@ -1289,13 +1315,13 @@ const NumericInput = uuiCore.withMods(uuiComponents.NumericInput, applyNumericIn
|
|
|
1289
1315
|
});
|
|
1290
1316
|
});
|
|
1291
1317
|
|
|
1292
|
-
var css$
|
|
1318
|
+
var css$K = {"root":"IrfUNO","mode-form":"QHi0PB","mode-cell":"BQVvZp","mode-inline":"tzDpCJ","size-24":"_2f-59F","size-30":"IuLOXr","size-36":"BAiEhK","size-42":"ykcDF8","size-48":"uiljYH","modeForm":"QHi0PB","modeCell":"BQVvZp","modeInline":"tzDpCJ","size24":"_2f-59F","size30":"IuLOXr","size36":"BAiEhK","size42":"ykcDF8","size48":"uiljYH"};
|
|
1293
1319
|
|
|
1294
1320
|
const defaultSize$5 = '36';
|
|
1295
1321
|
const defaultMode$2 = exports.EditMode.FORM;
|
|
1296
1322
|
function applyTextAreaMods(mods) {
|
|
1297
1323
|
return [
|
|
1298
|
-
css$
|
|
1324
|
+
css$K.root, css$K['size-' + (mods.size || defaultSize$5)], css$K['mode-' + (mods.mode || defaultMode$2)],
|
|
1299
1325
|
];
|
|
1300
1326
|
}
|
|
1301
1327
|
const TextArea = uuiCore.withMods(uuiComponents.TextArea, applyTextAreaMods, (props) => ({
|
|
@@ -1303,14 +1329,162 @@ const TextArea = uuiCore.withMods(uuiComponents.TextArea, applyTextAreaMods, (pr
|
|
|
1303
1329
|
maxLength: props.mode === exports.EditMode.CELL ? undefined : props.maxLength,
|
|
1304
1330
|
}));
|
|
1305
1331
|
|
|
1306
|
-
var css$
|
|
1332
|
+
var css$J = {"container":"X3dVi9"};
|
|
1333
|
+
|
|
1334
|
+
var _path$z;
|
|
1335
|
+
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); }
|
|
1336
|
+
var SvgNavigationChevronLeft18 = function SvgNavigationChevronLeft18(props, ref) {
|
|
1337
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$B({
|
|
1338
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1339
|
+
width: 18,
|
|
1340
|
+
height: 18,
|
|
1341
|
+
viewBox: "0 0 18 18",
|
|
1342
|
+
ref: ref
|
|
1343
|
+
}, props), _path$z || (_path$z = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1344
|
+
fillRule: "evenodd",
|
|
1345
|
+
d: "M11.557 5.558 10.5 4.5 6 9l4.5 4.5 1.057-1.057L8.123 9l3.434-3.442z",
|
|
1346
|
+
clipRule: "evenodd"
|
|
1347
|
+
})));
|
|
1348
|
+
};
|
|
1349
|
+
var ForwardRef$B = /*#__PURE__*/React.forwardRef(SvgNavigationChevronLeft18);
|
|
1350
|
+
|
|
1351
|
+
var _path$y;
|
|
1352
|
+
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); }
|
|
1353
|
+
var SvgNavigationChevronRight18 = function SvgNavigationChevronRight18(props, ref) {
|
|
1354
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$A({
|
|
1355
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1356
|
+
width: 18,
|
|
1357
|
+
height: 18,
|
|
1358
|
+
viewBox: "0 0 18 18",
|
|
1359
|
+
ref: ref
|
|
1360
|
+
}, props), _path$y || (_path$y = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1361
|
+
fillRule: "evenodd",
|
|
1362
|
+
d: "M7.5 4.5 6.442 5.558 9.877 9l-3.435 3.443L7.5 13.5 12 9 7.5 4.5z",
|
|
1363
|
+
clipRule: "evenodd"
|
|
1364
|
+
})));
|
|
1365
|
+
};
|
|
1366
|
+
var ForwardRef$A = /*#__PURE__*/React.forwardRef(SvgNavigationChevronRight18);
|
|
1367
|
+
|
|
1368
|
+
const uuiHeader = {
|
|
1369
|
+
container: 'uui-datepickerheader-container',
|
|
1370
|
+
header: 'uui-datepickerheader-header',
|
|
1371
|
+
navTitle: 'uui-datepickerheader-nav-title',
|
|
1372
|
+
navIconRight: 'uui-datepickerheader-nav-icon-right',
|
|
1373
|
+
navIconLeft: 'uui-datepickerheader-nav-icon-left',
|
|
1374
|
+
};
|
|
1375
|
+
function DatePickerHeader(props) {
|
|
1376
|
+
var _a, _b;
|
|
1377
|
+
const getPrevMonthFromCurrent = (currentDate) => {
|
|
1378
|
+
return currentDate.subtract(1, 'month');
|
|
1379
|
+
};
|
|
1380
|
+
const getNextMonthFromCurrent = (currentDate) => {
|
|
1381
|
+
return currentDate.add(1, 'month');
|
|
1382
|
+
};
|
|
1383
|
+
const getPrevYearFromCurrent = (currentDate) => {
|
|
1384
|
+
return currentDate.subtract(1, 'year');
|
|
1385
|
+
};
|
|
1386
|
+
const getNextYearFromCurrent = (currentDate) => {
|
|
1387
|
+
return currentDate.add(1, 'year');
|
|
1388
|
+
};
|
|
1389
|
+
const getPrevListYearFromCurrent = (currentDate) => {
|
|
1390
|
+
return currentDate.subtract(16, 'year');
|
|
1391
|
+
};
|
|
1392
|
+
const getNextListYearFromCurrent = (currentDate) => {
|
|
1393
|
+
return currentDate.add(16, 'year');
|
|
1394
|
+
};
|
|
1395
|
+
const onLeftNavigationArrow = () => {
|
|
1396
|
+
switch (props.value.view) {
|
|
1397
|
+
case 'DAY_SELECTION':
|
|
1398
|
+
props.onValueChange(Object.assign(Object.assign({}, props.value), { displayedDate: getPrevMonthFromCurrent(props.value.displayedDate) }));
|
|
1399
|
+
break;
|
|
1400
|
+
case 'MONTH_SELECTION':
|
|
1401
|
+
props.onValueChange(Object.assign(Object.assign({}, props.value), { displayedDate: getPrevYearFromCurrent(props.value.displayedDate) }));
|
|
1402
|
+
break;
|
|
1403
|
+
case 'YEAR_SELECTION':
|
|
1404
|
+
props.onValueChange(Object.assign(Object.assign({}, props.value), { displayedDate: getPrevListYearFromCurrent(props.value.displayedDate) }));
|
|
1405
|
+
break;
|
|
1406
|
+
}
|
|
1407
|
+
};
|
|
1408
|
+
const onRightNavigationArrow = () => {
|
|
1409
|
+
switch (props.value.view) {
|
|
1410
|
+
case 'DAY_SELECTION':
|
|
1411
|
+
props.onValueChange(Object.assign(Object.assign({}, props.value), { displayedDate: getNextMonthFromCurrent(props.value.displayedDate) }));
|
|
1412
|
+
break;
|
|
1413
|
+
case 'MONTH_SELECTION':
|
|
1414
|
+
props.onValueChange(Object.assign(Object.assign({}, props.value), { displayedDate: getNextYearFromCurrent(props.value.displayedDate) }));
|
|
1415
|
+
break;
|
|
1416
|
+
case 'YEAR_SELECTION':
|
|
1417
|
+
props.onValueChange(Object.assign(Object.assign({}, props.value), { displayedDate: getNextListYearFromCurrent(props.value.displayedDate) }));
|
|
1418
|
+
break;
|
|
1419
|
+
}
|
|
1420
|
+
};
|
|
1421
|
+
const onCaptionClick = (view) => {
|
|
1422
|
+
let nextView;
|
|
1423
|
+
switch (view) {
|
|
1424
|
+
case 'DAY_SELECTION':
|
|
1425
|
+
nextView = 'MONTH_SELECTION';
|
|
1426
|
+
break;
|
|
1427
|
+
case 'MONTH_SELECTION':
|
|
1428
|
+
nextView = 'YEAR_SELECTION';
|
|
1429
|
+
break;
|
|
1430
|
+
case 'YEAR_SELECTION':
|
|
1431
|
+
nextView = 'DAY_SELECTION';
|
|
1432
|
+
break;
|
|
1433
|
+
}
|
|
1434
|
+
props.onValueChange(Object.assign(Object.assign({}, props.value), { view: nextView }));
|
|
1435
|
+
};
|
|
1436
|
+
const title = React__namespace.useMemo(() => {
|
|
1437
|
+
var _a, _b, _c;
|
|
1438
|
+
return `${((_a = props.value) === null || _a === void 0 ? void 0 : _a.view) !== 'MONTH_SELECTION' ? dayjs__default.default.months()[(_b = props.value) === null || _b === void 0 ? void 0 : _b.displayedDate.month()] : ''} ${(_c = props.value) === null || _c === void 0 ? void 0 : _c.displayedDate.year()}`;
|
|
1439
|
+
}, [(_a = props.value) === null || _a === void 0 ? void 0 : _a.view, (_b = props.value) === null || _b === void 0 ? void 0 : _b.displayedDate]);
|
|
1440
|
+
return (React__namespace.createElement("div", { className: cx__default.default(css$J.container, uuiHeader.container, props.cx) },
|
|
1441
|
+
React__namespace.createElement("header", { className: uuiHeader.header },
|
|
1442
|
+
React__namespace.createElement(Button, { icon: ForwardRef$B, color: "secondary", mode: "ghost", cx: uuiHeader.navIconLeft, onClick: () => onLeftNavigationArrow() }),
|
|
1443
|
+
React__namespace.createElement(Button, { caption: title, mode: "ghost", cx: uuiHeader.navTitle, onClick: () => onCaptionClick(props.value.view) }),
|
|
1444
|
+
React__namespace.createElement(Button, { icon: ForwardRef$A, color: "secondary", mode: "ghost", cx: uuiHeader.navIconRight, onClick: () => onRightNavigationArrow() }))));
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
var css$I = {"root":"mB6uW5"};
|
|
1307
1448
|
|
|
1308
|
-
|
|
1449
|
+
function applyDateSelectionMods() {
|
|
1450
|
+
return [css$I.root];
|
|
1451
|
+
}
|
|
1452
|
+
const Calendar = uuiCore.withMods(uuiComponents.Calendar, applyDateSelectionMods);
|
|
1309
1453
|
|
|
1310
|
-
|
|
1311
|
-
|
|
1454
|
+
dayjs__default.default.extend(updateLocale__default.default);
|
|
1455
|
+
const uuiDatePickerBody = {
|
|
1456
|
+
wrapper: 'uui-datepickerBody-wrapper',
|
|
1457
|
+
separator: 'uui-datepickerBody-separator',
|
|
1458
|
+
};
|
|
1459
|
+
class DatePickerBody extends uuiComponents.DatePickerBodyBase {
|
|
1460
|
+
constructor(props) {
|
|
1461
|
+
super(props);
|
|
1462
|
+
this.onDayClick = (day) => {
|
|
1463
|
+
if (!this.props.filter || this.props.filter(day)) {
|
|
1464
|
+
this.props.setSelectedDate(day.format(uuiComponents.valueFormat));
|
|
1465
|
+
}
|
|
1466
|
+
this.props.changeIsOpen && this.props.changeIsOpen(false);
|
|
1467
|
+
};
|
|
1468
|
+
this.getView = () => {
|
|
1469
|
+
var _a;
|
|
1470
|
+
switch ((_a = this.props.value) === null || _a === void 0 ? void 0 : _a.view) {
|
|
1471
|
+
case 'MONTH_SELECTION':
|
|
1472
|
+
return (React__namespace.createElement(uuiComponents.MonthSelection, { selectedDate: dayjs__default.default(this.props.value.selectedDate), value: this.props.value.displayedDate, onValueChange: this.onMonthClick }));
|
|
1473
|
+
case 'YEAR_SELECTION':
|
|
1474
|
+
return (React__namespace.createElement(uuiComponents.YearSelection, { selectedDate: dayjs__default.default(this.props.value.selectedDate), value: this.props.value.displayedDate, onValueChange: this.onYearClick }));
|
|
1475
|
+
case 'DAY_SELECTION':
|
|
1476
|
+
return (React__namespace.createElement(Calendar, { value: dayjs__default.default(this.props.value.selectedDate), onValueChange: this.onDayClick, displayedDate: this.props.value.displayedDate, filter: this.props.filter, getDayCX: this.props.getDayCX, renderDay: this.props.renderDay, isHoliday: this.props.isHoliday }));
|
|
1477
|
+
}
|
|
1478
|
+
};
|
|
1479
|
+
this.renderDatePicker = () => {
|
|
1480
|
+
return (React__namespace.createElement("div", { className: uuiCore.cx(uuiDatePickerBody.wrapper, this.props.cx) },
|
|
1481
|
+
React__namespace.createElement(DatePickerHeader, { value: this.props.value, onValueChange: (newValue) => this.props.setDisplayedDateAndView(newValue.displayedDate, newValue.view) }),
|
|
1482
|
+
this.getView()));
|
|
1483
|
+
};
|
|
1484
|
+
dayjs__default.default.locale('en');
|
|
1485
|
+
dayjs__default.default.updateLocale(uuiComponents.i18n.datePicker.locale, { weekStart: 1 });
|
|
1486
|
+
}
|
|
1312
1487
|
}
|
|
1313
|
-
const DatePickerBody = uuiCore.withMods(uuiComponents.DatePickerBody, applyDatePickerBodyMods, () => ({ navIconLeft: ForwardRef$11, navIconRight: ForwardRef$11 }));
|
|
1314
1488
|
|
|
1315
1489
|
const defaultMode$1 = exports.EditMode.FORM;
|
|
1316
1490
|
class DatePicker extends uuiComponents.BaseDatePicker {
|
|
@@ -1318,6 +1492,17 @@ class DatePicker extends uuiComponents.BaseDatePicker {
|
|
|
1318
1492
|
super(...arguments);
|
|
1319
1493
|
this.renderInput = (props) => {
|
|
1320
1494
|
var _a;
|
|
1495
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1496
|
+
if (this.props.size === '48') {
|
|
1497
|
+
uuiCore.devLogger.warnAboutDeprecatedPropValue({
|
|
1498
|
+
component: 'DatePicker',
|
|
1499
|
+
propName: 'size',
|
|
1500
|
+
propValue: this.props.size,
|
|
1501
|
+
propValueUseInstead: '42',
|
|
1502
|
+
condition: () => ['48'].indexOf(this.props.size) !== -1,
|
|
1503
|
+
});
|
|
1504
|
+
}
|
|
1505
|
+
}
|
|
1321
1506
|
return (React__namespace.default.createElement(TextInput, Object.assign({}, props, { onClick: null, isDropdown: false, cx: uuiCore.cx(this.props.inputCx, this.state.isOpen && uuiCore.uuiMod.focus), icon: this.props.mode !== exports.EditMode.CELL && systemIcons[this.props.size || '36'].calendar, iconPosition: this.props.iconPosition || 'left', placeholder: this.props.placeholder ? this.props.placeholder : this.getFormat(), size: this.props.size || '36', value: this.state.inputValue, onValueChange: this.handleInputChange, onCancel: this.props.disableClear || !this.state.inputValue ? undefined : this.handleCancel, isInvalid: this.props.isInvalid, isDisabled: this.props.isDisabled, isReadonly: this.props.isReadonly, tabIndex: this.props.isReadonly || this.props.isDisabled ? -1 : 0, onFocus: this.handleFocus, onBlur: this.handleBlur, mode: this.props.mode || defaultMode$1, rawProps: (_a = this.props.rawProps) === null || _a === void 0 ? void 0 : _a.input })));
|
|
1322
1507
|
};
|
|
1323
1508
|
}
|
|
@@ -1329,26 +1514,175 @@ class DatePicker extends uuiComponents.BaseDatePicker {
|
|
|
1329
1514
|
}
|
|
1330
1515
|
}
|
|
1331
1516
|
|
|
1332
|
-
|
|
1333
|
-
return [calendarCss.root];
|
|
1334
|
-
}
|
|
1335
|
-
const Calendar = uuiCore.withMods(uuiComponents.Calendar, applyDateSelectionMods);
|
|
1336
|
-
|
|
1337
|
-
var rangeCss = {"root":"RangeDatePickerBody-module_root__9hfbE"};
|
|
1517
|
+
var css$H = {"root":"-K5IC3"};
|
|
1338
1518
|
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1519
|
+
function applyCalendarPresetsMods() {
|
|
1520
|
+
return [css$H.root];
|
|
1521
|
+
}
|
|
1522
|
+
const CalendarPresets = uuiCore.withMods(uuiComponents.CalendarPresets, applyCalendarPresetsMods, () => ({}));
|
|
1523
|
+
|
|
1524
|
+
var css$G = {"root":"Lbu--e","container":"AFrppk","day-selection":"lVzx5V","from-picker":"_3QR6wl","to-picker":"T7G-b1","bodes-wrapper":"R94tJn","blocker":"_7UCNa0","daySelection":"lVzx5V","fromPicker":"_3QR6wl","toPicker":"T7G-b1","bodesWrapper":"R94tJn"};
|
|
1525
|
+
|
|
1526
|
+
dayjs__default.default.extend(isoWeek__default.default);
|
|
1527
|
+
function weekCount(displayedDate) {
|
|
1528
|
+
let days = [];
|
|
1529
|
+
const dayOfLastWeekInPrevMonth = displayedDate.subtract(1, 'month').endOf('month').day();
|
|
1530
|
+
days = days.concat(new Array(dayOfLastWeekInPrevMonth).fill(undefined));
|
|
1531
|
+
// get days of current month
|
|
1532
|
+
days = days.concat(new Array(displayedDate.endOf('month').date()).fill(undefined));
|
|
1533
|
+
return uuiCore.arrayToMatrix(days, 7).length;
|
|
1534
|
+
}
|
|
1535
|
+
const uuiRangeDatePickerBody = {
|
|
1536
|
+
inRange: 'uui-range-datepicker-in-range',
|
|
1537
|
+
firstDayInRangeWrapper: 'uui-range-datepicker-first-day-in-range-wrapper',
|
|
1538
|
+
lastDayInRangeWrapper: 'uui-range-datepicker-last-day-in-range-wrapper',
|
|
1539
|
+
separator: 'uui-range-datepicker-separator',
|
|
1540
|
+
};
|
|
1541
|
+
const rangeDatePickerPresets = {
|
|
1542
|
+
today: {
|
|
1543
|
+
name: 'Today',
|
|
1544
|
+
getRange: () => ({ from: dayjs__default.default().toString(), to: undefined, order: 1 }),
|
|
1545
|
+
},
|
|
1546
|
+
thisWeek: {
|
|
1547
|
+
name: 'This Week',
|
|
1548
|
+
getRange: () => ({ from: dayjs__default.default().startOf('isoWeek').toString(), to: dayjs__default.default().endOf('isoWeek').toString(), order: 2 }),
|
|
1549
|
+
},
|
|
1550
|
+
lastWeek: {
|
|
1551
|
+
name: 'Last Week',
|
|
1552
|
+
getRange: () => ({ from: dayjs__default.default().startOf('isoWeek').subtract(1, 'week').toString(), to: dayjs__default.default().endOf('isoWeek').subtract(1, 'week').toString(), order: 3 }),
|
|
1553
|
+
},
|
|
1554
|
+
thisMonth: {
|
|
1555
|
+
name: 'This Month',
|
|
1556
|
+
getRange: () => ({ from: dayjs__default.default().startOf('month').toString(), to: dayjs__default.default().endOf('month').toString(), order: 4 }),
|
|
1557
|
+
},
|
|
1558
|
+
lastMonth: {
|
|
1559
|
+
name: 'Last Month',
|
|
1560
|
+
getRange: () => ({ from: dayjs__default.default().startOf('month').subtract(1, 'month').toString(), to: dayjs__default.default().subtract(1, 'month').endOf('month').toString(), order: 5 }),
|
|
1561
|
+
},
|
|
1562
|
+
last3Month: {
|
|
1563
|
+
name: 'Last 3 Months',
|
|
1564
|
+
getRange: () => ({ from: dayjs__default.default().startOf('month').subtract(3, 'month').toString(), to: dayjs__default.default().subtract(1, 'month').endOf('month').toString(), order: 5 }),
|
|
1565
|
+
},
|
|
1566
|
+
thisYear: {
|
|
1567
|
+
name: 'This Year',
|
|
1568
|
+
getRange: () => ({ from: dayjs__default.default().startOf('year').toString(), to: dayjs__default.default().endOf('year').toString(), order: 7 }),
|
|
1569
|
+
},
|
|
1570
|
+
lastYear: {
|
|
1571
|
+
name: 'Last Year',
|
|
1572
|
+
getRange: () => ({ from: dayjs__default.default().startOf('year').subtract(1, 'year').toString(), to: dayjs__default.default().subtract(1, 'year').endOf('year').toString(), order: 8 }),
|
|
1573
|
+
},
|
|
1574
|
+
};
|
|
1575
|
+
class RangeDatePickerBody extends React__namespace.Component {
|
|
1576
|
+
constructor() {
|
|
1577
|
+
super(...arguments);
|
|
1578
|
+
this.state = {
|
|
1579
|
+
activePart: null,
|
|
1580
|
+
};
|
|
1581
|
+
this.getDayCX = (day) => {
|
|
1582
|
+
var _a, _b;
|
|
1583
|
+
const dayValue = day.valueOf();
|
|
1584
|
+
const fromValue = ((_a = this.props.value) === null || _a === void 0 ? void 0 : _a.selectedDate.from) ? dayjs__default.default(this.props.value.selectedDate.from).valueOf() : null;
|
|
1585
|
+
const toValue = ((_b = this.props.value) === null || _b === void 0 ? void 0 : _b.selectedDate.to) ? dayjs__default.default(this.props.value.selectedDate.to).valueOf() : null;
|
|
1586
|
+
const inRange = dayValue >= fromValue && dayValue <= toValue && fromValue !== toValue && fromValue && toValue;
|
|
1587
|
+
const isFirst = dayValue === fromValue;
|
|
1588
|
+
const isLast = dayValue === toValue;
|
|
1589
|
+
return [
|
|
1590
|
+
inRange && uuiRangeDatePickerBody.inRange,
|
|
1591
|
+
isFirst && uuiRangeDatePickerBody.firstDayInRangeWrapper,
|
|
1592
|
+
!inRange && isFirst && uuiRangeDatePickerBody.lastDayInRangeWrapper,
|
|
1593
|
+
isLast && uuiRangeDatePickerBody.lastDayInRangeWrapper,
|
|
1594
|
+
!inRange && isLast && uuiRangeDatePickerBody.firstDayInRangeWrapper,
|
|
1595
|
+
(dayValue === fromValue || dayValue === toValue) && uuiComponents.uuiDaySelection.selectedDay,
|
|
1596
|
+
];
|
|
1597
|
+
};
|
|
1598
|
+
this.getFromValue = () => {
|
|
1599
|
+
var _a;
|
|
1600
|
+
return Object.assign(Object.assign({}, this.props.value), { view: this.state.activePart === 'from' ? this.props.value.view : 'DAY_SELECTION', selectedDate: (_a = this.props.value) === null || _a === void 0 ? void 0 : _a.selectedDate.from });
|
|
1601
|
+
};
|
|
1602
|
+
this.getToValue = () => {
|
|
1603
|
+
if (!this.props.value)
|
|
1604
|
+
return;
|
|
1605
|
+
return Object.assign(Object.assign({}, this.props.value), { view: this.state.activePart === 'to' ? this.props.value.view : 'DAY_SELECTION', displayedDate: this.props.value.displayedDate.add(1, 'month'), selectedDate: this.props.value.selectedDate.to });
|
|
1606
|
+
};
|
|
1607
|
+
this.renderPresets = () => {
|
|
1608
|
+
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
1609
|
+
React__namespace.createElement("div", { className: uuiRangeDatePickerBody.separator }),
|
|
1610
|
+
React__namespace.createElement(CalendarPresets, { forwardedRef: this.props.forwardedRef, onPresetSet: (presetVal) => {
|
|
1611
|
+
this.props.onValueChange({
|
|
1612
|
+
view: 'DAY_SELECTION',
|
|
1613
|
+
selectedDate: { from: dayjs__default.default(presetVal.from).format(uuiComponents.valueFormat), to: dayjs__default.default(presetVal.to).format(uuiComponents.valueFormat) },
|
|
1614
|
+
displayedDate: dayjs__default.default(presetVal.from),
|
|
1615
|
+
});
|
|
1616
|
+
this.props.changeIsOpen(false);
|
|
1617
|
+
}, presets: this.props.presets })));
|
|
1618
|
+
};
|
|
1619
|
+
this.renderDatePicker = () => {
|
|
1620
|
+
var _a, _b;
|
|
1621
|
+
return (React__namespace.createElement(FlexRow, { cx: [((_a = this.props.value) === null || _a === void 0 ? void 0 : _a.view) === 'DAY_SELECTION' && css$G.daySelection, css$G.container], alignItems: "top" },
|
|
1622
|
+
React__namespace.createElement(FlexCell, { width: "auto" },
|
|
1623
|
+
React__namespace.createElement(FlexRow, null,
|
|
1624
|
+
React__namespace.createElement(FlexRow, { cx: css$G.bodesWrapper, alignItems: "top" },
|
|
1625
|
+
React__namespace.createElement(DatePickerBody, { cx: uuiCore.cx(css$G.fromPicker), setSelectedDate: (nv) => this.setSelectedDate(nv), value: this.getFromValue(), setDisplayedDateAndView: (displayedDate, view) => this.setDisplayedDateAndView(displayedDate, view, 'from'), getDayCX: this.getDayCX, filter: this.props.filter, renderDay: this.props.renderDay, isHoliday: this.props.isHoliday }),
|
|
1626
|
+
React__namespace.createElement(DatePickerBody, { cx: uuiCore.cx(css$G.toPicker), setSelectedDate: (nv) => this.setSelectedDate(nv), value: this.getToValue(), setDisplayedDateAndView: (displayedDate, view) => this.setDisplayedDateAndView(displayedDate, view, 'to'), getDayCX: this.getDayCX, filter: this.props.filter, renderDay: this.props.renderDay, isHoliday: this.props.isHoliday }),
|
|
1627
|
+
((_b = this.props.value) === null || _b === void 0 ? void 0 : _b.view) !== 'DAY_SELECTION' && (React__namespace.createElement("div", { style: {
|
|
1628
|
+
left: this.state.activePart === 'from' && '50%',
|
|
1629
|
+
right: this.state.activePart === 'to' && '50%',
|
|
1630
|
+
}, className: css$G.blocker }))),
|
|
1631
|
+
this.props.presets && this.renderPresets()),
|
|
1632
|
+
this.props.renderFooter && this.props.renderFooter())));
|
|
1633
|
+
};
|
|
1634
|
+
}
|
|
1635
|
+
getRange(selectedDate) {
|
|
1636
|
+
const newRange = { from: null, to: null };
|
|
1637
|
+
const currentRange = this.props.value.selectedDate;
|
|
1638
|
+
if (!this.props.filter || this.props.filter(dayjs__default.default(selectedDate))) {
|
|
1639
|
+
if (this.props.focusPart === 'from') {
|
|
1640
|
+
if (dayjs__default.default(selectedDate).valueOf() <= dayjs__default.default(currentRange.to).valueOf()) {
|
|
1641
|
+
newRange.from = selectedDate;
|
|
1642
|
+
newRange.to = currentRange.to;
|
|
1643
|
+
}
|
|
1644
|
+
else {
|
|
1645
|
+
newRange.from = selectedDate;
|
|
1646
|
+
newRange.to = null;
|
|
1647
|
+
}
|
|
1648
|
+
}
|
|
1649
|
+
if (this.props.focusPart === 'to') {
|
|
1650
|
+
if (!currentRange.from) {
|
|
1651
|
+
newRange.to = selectedDate;
|
|
1652
|
+
}
|
|
1653
|
+
else if (dayjs__default.default(selectedDate).valueOf() >= dayjs__default.default(currentRange.from).valueOf()) {
|
|
1654
|
+
newRange.from = currentRange.from;
|
|
1655
|
+
newRange.to = selectedDate;
|
|
1656
|
+
}
|
|
1657
|
+
else {
|
|
1658
|
+
newRange.from = selectedDate;
|
|
1659
|
+
newRange.to = null;
|
|
1660
|
+
}
|
|
1661
|
+
}
|
|
1662
|
+
}
|
|
1663
|
+
return newRange;
|
|
1664
|
+
}
|
|
1665
|
+
setSelectedDate(selectedDate) {
|
|
1666
|
+
const range = this.getRange(selectedDate);
|
|
1667
|
+
this.props.onValueChange(Object.assign(Object.assign({}, this.props.value), { selectedDate: range }));
|
|
1668
|
+
if (range.from && range.to && this.props.focusPart === 'to') {
|
|
1669
|
+
this.props.changeIsOpen(false);
|
|
1670
|
+
}
|
|
1671
|
+
}
|
|
1672
|
+
setDisplayedDateAndView(displayedDate, view, part) {
|
|
1673
|
+
this.setState({ activePart: part });
|
|
1674
|
+
this.props.onValueChange({
|
|
1675
|
+
selectedDate: this.props.value.selectedDate,
|
|
1676
|
+
displayedDate: part === 'from' ? displayedDate : displayedDate.subtract(1, 'month'),
|
|
1677
|
+
view: view,
|
|
1678
|
+
});
|
|
1679
|
+
}
|
|
1680
|
+
render() {
|
|
1681
|
+
return (React__namespace.createElement("div", Object.assign({ className: uuiCore.cx(css$G.root, uuiComponents.uuiDatePickerBodyBase.container, this.props.cx) }, this.props.rawProps), this.renderDatePicker()));
|
|
1682
|
+
}
|
|
1345
1683
|
}
|
|
1346
|
-
const RangeDatePickerBody = uuiCore.withMods(uuiComponents.RangeDatePickerBody, applyRangeDatePickerBodyMods, () => ({
|
|
1347
|
-
navIconLeft: ForwardRef$11,
|
|
1348
|
-
navIconRight: ForwardRef$11,
|
|
1349
|
-
}));
|
|
1350
1684
|
|
|
1351
|
-
var css$
|
|
1685
|
+
var css$F = {"dropdown-container":"xd3Nzu","container":"dRyWIe","button-group":"_6TH8dH","date-input":"xCZg80","size-24":"HH3ooz","size-30":"BHJ5CH","size-36":"Ijc-pg","size-42":"yRgDf3","size-48":"XSq2vh","date-input-group":"gTuQ6v","separator":"QhkaPo","mode-form":"cn0SP5","mode-cell":"ZyaB6g","dropdownContainer":"xd3Nzu","buttonGroup":"_6TH8dH","dateInput":"xCZg80","size24":"HH3ooz","size30":"BHJ5CH","size36":"Ijc-pg","size42":"yRgDf3","size48":"XSq2vh","dateInputGroup":"gTuQ6v","modeForm":"cn0SP5","modeCell":"ZyaB6g"};
|
|
1352
1686
|
|
|
1353
1687
|
const defaultValue = { from: null, to: null };
|
|
1354
1688
|
class RangeDatePicker extends uuiComponents.BaseRangeDatePicker {
|
|
@@ -1356,35 +1690,46 @@ class RangeDatePicker extends uuiComponents.BaseRangeDatePicker {
|
|
|
1356
1690
|
super(...arguments);
|
|
1357
1691
|
this.renderInput = (props) => {
|
|
1358
1692
|
var _a, _b;
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1693
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1694
|
+
if (this.props.size === '48') {
|
|
1695
|
+
uuiCore.devLogger.warnAboutDeprecatedPropValue({
|
|
1696
|
+
component: 'RangeDatePicker',
|
|
1697
|
+
propName: 'size',
|
|
1698
|
+
propValue: this.props.size,
|
|
1699
|
+
propValueUseInstead: '42',
|
|
1700
|
+
condition: () => ['48'].indexOf(this.props.size) !== -1,
|
|
1701
|
+
});
|
|
1702
|
+
}
|
|
1703
|
+
}
|
|
1704
|
+
return (React__namespace.createElement("div", { className: cx__default.default(this.props.inputCx, css$F.dateInputGroup, this.props.isDisabled && uuiCore.uuiMod.disabled, this.props.isReadonly && uuiCore.uuiMod.readonly, this.props.isInvalid && uuiCore.uuiMod.invalid, this.state.inFocus && uuiCore.uuiMod.focus), onClick: !this.props.isDisabled && props.onClick, onBlur: this.handleWrapperBlur, ref: props.ref },
|
|
1705
|
+
React__namespace.createElement(TextInput, { icon: systemIcons[this.props.size || '36'].calendar, cx: cx__default.default(css$F.dateInput, css$F['size-' + (this.props.size || 36)], this.state.inFocus === 'from' && uuiCore.uuiMod.focus), size: this.props.size || '36', placeholder: this.props.getPlaceholder ? this.props.getPlaceholder('from') : i18n.rangeDatePicker.pickerPlaceholderFrom, value: this.state.inputValue.from, onValueChange: this.getChangeHandler('from'), isInvalid: this.props.isInvalid, isDisabled: this.props.isDisabled, isReadonly: this.props.isReadonly, onFocus: (event) => this.handleFocus(event, 'from'), onBlur: (event) => this.handleBlur(event, 'from'), isDropdown: false, rawProps: (_a = this.props.rawProps) === null || _a === void 0 ? void 0 : _a.from }),
|
|
1706
|
+
React__namespace.createElement("div", { className: css$F.separator }),
|
|
1707
|
+
React__namespace.createElement(TextInput, { cx: cx__default.default(css$F.dateInput, css$F['size-' + (this.props.size || 36)], this.state.inFocus === 'to' && uuiCore.uuiMod.focus), placeholder: this.props.getPlaceholder ? this.props.getPlaceholder('to') : i18n.rangeDatePicker.pickerPlaceholderTo, size: this.props.size || '36', value: this.state.inputValue.to, onCancel: this.props.disableClear ? null : this.state.inputValue.from && this.state.inputValue.to && this.handleCancel, onValueChange: this.getChangeHandler('to'), isInvalid: this.props.isInvalid, isDisabled: this.props.isDisabled, isReadonly: this.props.isReadonly, onFocus: (e) => this.handleFocus(e, 'to'), onBlur: (e) => this.handleBlur(e, 'to'), isDropdown: false, rawProps: (_b = this.props.rawProps) === null || _b === void 0 ? void 0 : _b.to })));
|
|
1363
1708
|
};
|
|
1364
1709
|
}
|
|
1365
1710
|
renderBody(props) {
|
|
1366
1711
|
var _a;
|
|
1367
|
-
return (React__namespace.createElement(DropdownContainer, Object.assign({}, props, { cx: cx__default.default(css$
|
|
1712
|
+
return (React__namespace.createElement(DropdownContainer, Object.assign({}, props, { cx: cx__default.default(css$F.dropdownContainer) }),
|
|
1368
1713
|
React__namespace.createElement(FlexRow, null,
|
|
1369
1714
|
React__namespace.createElement(RangeDatePickerBody, { cx: cx__default.default(this.props.bodyCx), value: this.getValue(), onValueChange: this.onRangeChange, filter: this.props.filter, changeIsOpen: this.toggleOpening, presets: this.props.presets, focusPart: this.state.inFocus, renderDay: this.props.renderDay, renderFooter: this.props.renderFooter && (() => this.props.renderFooter(this.props.value || defaultValue)), isHoliday: this.props.isHoliday, rawProps: (_a = this.props.rawProps) === null || _a === void 0 ? void 0 : _a.body }))));
|
|
1370
1715
|
}
|
|
1371
1716
|
}
|
|
1372
1717
|
|
|
1373
|
-
var css$
|
|
1718
|
+
var css$E = {"blocker":"UP8Z6M","marker":"rg5TRj","top":"YIyHSI","bottom":"-Z1eDb","left":"mzhzuK","right":"_8p8pbV","inside":"ZUW7Os"};
|
|
1374
1719
|
|
|
1375
1720
|
class DropMarker extends React__namespace.Component {
|
|
1376
1721
|
render() {
|
|
1377
1722
|
var _a;
|
|
1378
1723
|
return this.props.isDndInProgress ? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
1379
|
-
this.props.enableBlocker && React__namespace.createElement("div", { className: css$
|
|
1724
|
+
this.props.enableBlocker && React__namespace.createElement("div", { className: css$E.blocker }),
|
|
1380
1725
|
React__namespace.createElement("div", { className: cx__default.default([
|
|
1381
|
-
css$
|
|
1726
|
+
css$E.marker, css$E[this.props.position],
|
|
1382
1727
|
(_a = this.props) === null || _a === void 0 ? void 0 : _a.cx,
|
|
1383
1728
|
]) }))) : null;
|
|
1384
1729
|
}
|
|
1385
1730
|
}
|
|
1386
1731
|
|
|
1387
|
-
var css$
|
|
1732
|
+
var css$D = {"body":"lUcfam","modal":"fX2fPJ","search-wrapper":"rfnkkA","checkbox":"mmvkpI","no-found-size-24":"hjx-jK","no-found-size-30":"Ym5Eaq","no-found-size-36":"yTv8gk","no-found-size-42":"WHsYmz","searchWrapper":"rfnkkA","noFoundSize24":"hjx-jK","noFoundSize30":"Ym5Eaq","noFoundSize36":"yTv8gk","noFoundSize42":"WHsYmz"};
|
|
1388
1733
|
|
|
1389
1734
|
class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
1390
1735
|
constructor() {
|
|
@@ -1396,16 +1741,16 @@ class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
|
1396
1741
|
if (this.props.renderNotFound) {
|
|
1397
1742
|
return this.props.renderNotFound();
|
|
1398
1743
|
}
|
|
1399
|
-
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$
|
|
1744
|
+
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$D[`no-found-size-${this.props.searchSize || 36}`], grow: 1, textAlign: "center" },
|
|
1400
1745
|
React__namespace.default.createElement(Text, { size: this.props.searchSize || '36' }, i18n.dataPickerBody.noRecordsMessage)));
|
|
1401
1746
|
}
|
|
1402
1747
|
render() {
|
|
1403
1748
|
const searchSize = uuiCore.isMobile() ? '48' : this.props.searchSize || '36';
|
|
1404
1749
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1405
|
-
this.showSearch() && (React__namespace.default.createElement("div", { key: "search", className: css$
|
|
1750
|
+
this.showSearch() && (React__namespace.default.createElement("div", { key: "search", className: css$D.searchWrapper },
|
|
1406
1751
|
React__namespace.default.createElement(uuiComponents.FlexCell, { grow: 1 },
|
|
1407
1752
|
React__namespace.default.createElement(SearchInput, Object.assign({ ref: this.searchRef, placeholder: i18n.dataPickerBody.searchPlaceholder }, this.searchLens.toProps(), { onKeyDown: this.searchKeyDown, size: searchSize }))))),
|
|
1408
|
-
React__namespace.default.createElement(FlexRow, { key: "body", cx: uuiCore.cx(css$
|
|
1753
|
+
React__namespace.default.createElement(FlexRow, { key: "body", cx: uuiCore.cx(css$D.body, css$D[this.props.editMode], css$D[this.props.selectionMode]), rawProps: { style: { maxHeight: this.props.maxHeight } } }, this.props.rowsCount > 0 ? (React__namespace.default.createElement(VirtualList, Object.assign({}, this.lens.toProps(), { rows: this.props.rows, role: "listbox", rawProps: this.props.rawProps, rowsCount: this.props.rowsCount }))) : (this.renderNotFound()))));
|
|
1409
1754
|
}
|
|
1410
1755
|
}
|
|
1411
1756
|
|
|
@@ -1439,37 +1784,37 @@ function DataPickerFooterImpl(props) {
|
|
|
1439
1784
|
}
|
|
1440
1785
|
const DataPickerFooter = React__namespace.default.memo(DataPickerFooterImpl);
|
|
1441
1786
|
|
|
1442
|
-
var css$
|
|
1787
|
+
var css$C = {"header":"ZyxGTe","close":"_1d324m"};
|
|
1443
1788
|
|
|
1444
|
-
var _path$
|
|
1445
|
-
function _extends$
|
|
1789
|
+
var _path$x;
|
|
1790
|
+
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); }
|
|
1446
1791
|
var SvgNavigationClose24 = function SvgNavigationClose24(props, ref) {
|
|
1447
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1792
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$z({
|
|
1448
1793
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1449
1794
|
width: 24,
|
|
1450
1795
|
height: 24,
|
|
1451
1796
|
viewBox: "0 0 24 24",
|
|
1452
1797
|
ref: ref
|
|
1453
|
-
}, props), _path$
|
|
1798
|
+
}, props), _path$x || (_path$x = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1454
1799
|
fillRule: "evenodd",
|
|
1455
1800
|
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",
|
|
1456
1801
|
clipRule: "evenodd"
|
|
1457
1802
|
})));
|
|
1458
1803
|
};
|
|
1459
|
-
var ForwardRef$
|
|
1804
|
+
var ForwardRef$z = /*#__PURE__*/React.forwardRef(SvgNavigationClose24);
|
|
1460
1805
|
|
|
1461
1806
|
const DataPickerHeaderImpl = (props) => {
|
|
1462
1807
|
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
1463
|
-
return (React__namespace.default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: css$
|
|
1808
|
+
return (React__namespace.default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: css$C.header },
|
|
1464
1809
|
React__namespace.default.createElement(Text, { size: "48", font: "semibold" }, title),
|
|
1465
|
-
React__namespace.default.createElement(IconButton, { icon: ForwardRef$
|
|
1810
|
+
React__namespace.default.createElement(IconButton, { icon: ForwardRef$z, onClick: () => { var _a; return (_a = props.close) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: css$C.close })));
|
|
1466
1811
|
};
|
|
1467
1812
|
const DataPickerHeader = React__namespace.default.memo(DataPickerHeaderImpl);
|
|
1468
1813
|
|
|
1469
1814
|
var _defs$1, _use;
|
|
1470
|
-
function _extends$
|
|
1815
|
+
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); }
|
|
1471
1816
|
var SvgTreeFoldingArrow = function SvgTreeFoldingArrow(props, ref) {
|
|
1472
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1817
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$y({
|
|
1473
1818
|
width: 18,
|
|
1474
1819
|
height: 18,
|
|
1475
1820
|
viewBox: "0 0 18 18",
|
|
@@ -1487,19 +1832,19 @@ var SvgTreeFoldingArrow = function SvgTreeFoldingArrow(props, ref) {
|
|
|
1487
1832
|
fillRule: "evenodd"
|
|
1488
1833
|
})));
|
|
1489
1834
|
};
|
|
1490
|
-
var ForwardRef$
|
|
1835
|
+
var ForwardRef$y = /*#__PURE__*/React.forwardRef(SvgTreeFoldingArrow);
|
|
1491
1836
|
|
|
1492
|
-
var css$
|
|
1837
|
+
var css$B = {"cell":"_023AAv","wrapper":"RCSxqf","align-widgets-top":"_-6LpN6","size-24":"_1ztRBP","folding-arrow":"VmbxQO","size-30":"pnsuEY","size-36":"_2kN36N","size-42":"yHxowC","size-48":"O1ApU-","size-60":"_5l6Vtc","align-widgets-center":"_2Jro9f","padding-12":"U7a9TS","padding-24":"QE8d2v","padding-left-12":"mQSH4K","padding-left-24":"r7Z0Xg","padding-right-24":"_1t-9-p","drag-handle":"qwiR9M","checkbox":"V9SAs8","indent":"TNF-T9","folding-arrow-12":"_4-Ub0b","folding-arrow-18":"JnzNaZ","icon-container":"fILYrH","alignWidgetsTop":"_-6LpN6","size24":"_1ztRBP","foldingArrow":"VmbxQO","size30":"pnsuEY","size36":"_2kN36N","size42":"yHxowC","size48":"O1ApU-","size60":"_5l6Vtc","alignWidgetsCenter":"_2Jro9f","padding12":"U7a9TS","padding24":"QE8d2v","paddingLeft12":"mQSH4K","paddingLeft24":"r7Z0Xg","paddingRight24":"_1t-9-p","dragHandle":"qwiR9M","foldingArrow12":"_4-Ub0b","foldingArrow18":"JnzNaZ","iconContainer":"fILYrH"};
|
|
1493
1838
|
|
|
1494
1839
|
function DataTableRowAddons(props) {
|
|
1495
1840
|
var _a, _b;
|
|
1496
1841
|
const row = props.rowProps;
|
|
1497
1842
|
const additionalItemSize = +props.size < 30 ? '12' : '18';
|
|
1498
1843
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
1499
|
-
((_a = row.dnd) === null || _a === void 0 ? void 0 : _a.srcData) && React__namespace.createElement(uuiComponents.DragHandle, { key: "dh", cx: css$
|
|
1500
|
-
((_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$
|
|
1501
|
-
row.indent > 0 && (React__namespace.createElement("div", { key: "fold", className: css$
|
|
1502
|
-
css$
|
|
1844
|
+
((_a = row.dnd) === null || _a === void 0 ? void 0 : _a.srcData) && React__namespace.createElement(uuiComponents.DragHandle, { key: "dh", cx: css$B.dragHandle }),
|
|
1845
|
+
((_b = row === null || row === void 0 ? void 0 : row.checkbox) === null || _b === void 0 ? void 0 : _b.isVisible) && (React__namespace.createElement(Checkbox, { key: "cb", cx: css$B.checkbox, tabIndex: props.tabIndex, size: additionalItemSize, value: row.isChecked, indeterminate: !row.isChecked && row.isChildrenChecked, onValueChange: () => { var _a; return (_a = row.onCheck) === null || _a === void 0 ? void 0 : _a.call(row, row); }, isDisabled: row.checkbox.isDisabled, isInvalid: row.checkbox.isInvalid })),
|
|
1846
|
+
row.indent > 0 && (React__namespace.createElement("div", { key: "fold", className: css$B.indent, style: { marginLeft: (row.indent - 1) * 24 } }, row.isFoldable && (React__namespace.createElement(uuiComponents.IconContainer, { key: "icon", icon: ForwardRef$y, cx: [
|
|
1847
|
+
css$B.foldingArrow, css$B[`folding-arrow-${additionalItemSize}`], uuiCore.uuiMarkers.clickable, css$B.iconContainer,
|
|
1503
1848
|
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row) }))))));
|
|
1504
1849
|
}
|
|
1505
1850
|
function DataTableCell(props) {
|
|
@@ -1517,18 +1862,18 @@ function DataTableCell(props) {
|
|
|
1517
1862
|
props.cx = [
|
|
1518
1863
|
'data-table-cell',
|
|
1519
1864
|
props.cx,
|
|
1520
|
-
css$
|
|
1521
|
-
css$
|
|
1522
|
-
css$
|
|
1523
|
-
props.isFirstColumn && css$
|
|
1524
|
-
props.isLastColumn && css$
|
|
1525
|
-
css$
|
|
1865
|
+
css$B.cell,
|
|
1866
|
+
css$B['size-' + (props.size || '36')],
|
|
1867
|
+
css$B[`padding-${props.padding || (isEditable && !props.rowProps.isLoading && '0') || '12'}`],
|
|
1868
|
+
props.isFirstColumn && css$B[`padding-left-${props.padding || '24'}`],
|
|
1869
|
+
props.isLastColumn && css$B['padding-right-24'],
|
|
1870
|
+
css$B[`align-widgets-${props.alignActions || 'top'}`],
|
|
1526
1871
|
(props.border || isEditable) && 'uui-dt-vertical-cell-border',
|
|
1527
1872
|
];
|
|
1528
1873
|
return React__namespace.createElement(uuiComponents.DataTableCell, Object.assign({}, props));
|
|
1529
1874
|
}
|
|
1530
1875
|
|
|
1531
|
-
var css$
|
|
1876
|
+
var css$A = {"root":"SdWcGc","size-24":"_7wE5FN","size-30":"BZ1I3d","size-36":"s4E5In","size-48":"FFft6M","size-60":"j9QghM","size24":"_7wE5FN","size30":"BZ1I3d","size36":"s4E5In","size48":"FFft6M","size60":"j9QghM"};
|
|
1532
1877
|
|
|
1533
1878
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
1534
1879
|
// As we need our mods to style the cell properly, we extract them from DataTableCellProps.rowProps, which is a hack, but it's reliable enough.
|
|
@@ -1540,154 +1885,137 @@ const renderDropMarkers = (props) => React__namespace.createElement(DropMarker,
|
|
|
1540
1885
|
const propsMods = { renderCell, renderDropMarkers };
|
|
1541
1886
|
const DataTableRow = uuiCore.withMods(uuiComponents.DataTableRow, ({ borderBottom = true, size }) => {
|
|
1542
1887
|
return [
|
|
1543
|
-
css$
|
|
1888
|
+
css$A.root, borderBottom && 'uui-dt-row-border', css$A['size-' + (size || '36')],
|
|
1544
1889
|
];
|
|
1545
1890
|
}, () => propsMods);
|
|
1546
1891
|
|
|
1547
|
-
var css$
|
|
1892
|
+
var css$z = {"header-cell":"_8imNSh","config-icon":"HkGVuX","headerCell":"_8imNSh","configIcon":"HkGVuX"};
|
|
1548
1893
|
|
|
1549
|
-
var _path$
|
|
1550
|
-
function _extends$
|
|
1894
|
+
var _path$w;
|
|
1895
|
+
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); }
|
|
1551
1896
|
var SvgActionSettings18 = function SvgActionSettings18(props, ref) {
|
|
1552
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1897
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$x({
|
|
1553
1898
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1554
1899
|
width: 18,
|
|
1555
1900
|
height: 18,
|
|
1556
1901
|
viewBox: "0 0 18 18",
|
|
1557
1902
|
ref: ref
|
|
1558
|
-
}, props), _path$
|
|
1903
|
+
}, props), _path$w || (_path$w = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1559
1904
|
fillRule: "evenodd",
|
|
1560
1905
|
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",
|
|
1561
1906
|
clipRule: "evenodd"
|
|
1562
1907
|
})));
|
|
1563
1908
|
};
|
|
1564
|
-
var ForwardRef$
|
|
1909
|
+
var ForwardRef$x = /*#__PURE__*/React.forwardRef(SvgActionSettings18);
|
|
1565
1910
|
|
|
1566
|
-
const DataTableHeaderRow = uuiCore.withMods(uuiComponents.DataTableHeaderRow, (mods) => [css$
|
|
1911
|
+
const DataTableHeaderRow = uuiCore.withMods(uuiComponents.DataTableHeaderRow, (mods) => [css$z.root], (mods) => ({
|
|
1567
1912
|
renderCell: (props) => React__namespace.createElement(DataTableHeaderCell, Object.assign({}, props, { size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key })),
|
|
1568
|
-
renderConfigButton: () => React__namespace.createElement(IconButton, { key: "configuration", onClick: mods.onConfigButtonClick, cx: css$
|
|
1913
|
+
renderConfigButton: () => React__namespace.createElement(IconButton, { key: "configuration", onClick: mods.onConfigButtonClick, cx: css$z.configIcon, color: "default", icon: ForwardRef$x }),
|
|
1569
1914
|
}));
|
|
1570
1915
|
|
|
1571
|
-
var css$
|
|
1916
|
+
var css$y = {"cell":"f92Voj","sort-icon":"kBIPQT","dropdown-icon":"_4wL5h7","infoIcon":"_3kv0Ou","resizable":"OguAeu","size-24":"KCxb1v","size-30":"hXpCGG","size-36":"cMn8B0","size-42":"cKF4V4","size-48":"_9Ubrx9","padding-left-24":"es13AN","padding-right-24":"quoVOM","caption":"x6aUj3","checkbox":"_6z6hrg","icon":"vhIt7R","icon-cell":"heHNOs","align-right":"TwQ966","align-center":"MuWmhp","tooltip-wrapper":"v3eKuR","cell-tooltip":"iRlzGR","upper-case":"bRr-hu","font-size-14":"OFWDew","resize-mark":"p5FF1E","draggable":"_4TWRQh","ghost":"wz7OqY","is-dragged-out":"wTwyO9","dnd-marker-left":"DGkPT4","dnd-marker-right":"_0zb6Vt","cell-tooltip-wrapper":"XTKaNv","cell-tooltip-text":"Vbyba2","sortIcon":"kBIPQT","dropdownIcon":"_4wL5h7","size24":"KCxb1v","size30":"hXpCGG","size36":"cMn8B0","size42":"cKF4V4","size48":"_9Ubrx9","paddingLeft24":"es13AN","paddingRight24":"quoVOM","iconCell":"heHNOs","alignRight":"TwQ966","alignCenter":"MuWmhp","tooltipWrapper":"v3eKuR","cellTooltip":"iRlzGR","upperCase":"bRr-hu","fontSize14":"OFWDew","resizeMark":"p5FF1E","isDraggedOut":"wTwyO9","dndMarkerLeft":"DGkPT4","dndMarkerRight":"_0zb6Vt","cellTooltipWrapper":"XTKaNv","cellTooltipText":"Vbyba2"};
|
|
1572
1917
|
|
|
1573
|
-
var _path$
|
|
1574
|
-
function _extends$
|
|
1918
|
+
var _path$v;
|
|
1919
|
+
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); }
|
|
1575
1920
|
var SvgTableSwap18 = function SvgTableSwap18(props, ref) {
|
|
1576
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1921
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$w({
|
|
1577
1922
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1578
1923
|
width: 18,
|
|
1579
1924
|
height: 18,
|
|
1580
1925
|
viewBox: "0 0 18 18",
|
|
1581
1926
|
ref: ref
|
|
1582
|
-
}, props), _path$
|
|
1927
|
+
}, props), _path$v || (_path$v = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1583
1928
|
fillRule: "evenodd",
|
|
1584
1929
|
d: "M6 1 2 5h3v7h2V5h3L6 1zm7 12V6h-2v7H8l4 4 4-4h-3z",
|
|
1585
1930
|
clipRule: "evenodd"
|
|
1586
1931
|
})));
|
|
1587
1932
|
};
|
|
1588
|
-
var ForwardRef$
|
|
1933
|
+
var ForwardRef$w = /*#__PURE__*/React.forwardRef(SvgTableSwap18);
|
|
1589
1934
|
|
|
1590
|
-
var _path$
|
|
1591
|
-
function _extends$
|
|
1935
|
+
var _path$u;
|
|
1936
|
+
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); }
|
|
1592
1937
|
var SvgTableSortAsc18 = function SvgTableSortAsc18(props, ref) {
|
|
1593
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1938
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$v({
|
|
1594
1939
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1595
1940
|
width: 18,
|
|
1596
1941
|
height: 18,
|
|
1597
1942
|
viewBox: "0 0 18 18",
|
|
1598
1943
|
ref: ref
|
|
1599
|
-
}, props), _path$
|
|
1944
|
+
}, props), _path$u || (_path$u = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1600
1945
|
fillRule: "evenodd",
|
|
1601
1946
|
d: "M10 6v10H8V6H5l4-4 4 4h-3z",
|
|
1602
1947
|
clipRule: "evenodd"
|
|
1603
1948
|
})));
|
|
1604
1949
|
};
|
|
1605
|
-
var ForwardRef$
|
|
1950
|
+
var ForwardRef$v = /*#__PURE__*/React.forwardRef(SvgTableSortAsc18);
|
|
1606
1951
|
|
|
1607
|
-
var _path$
|
|
1608
|
-
function _extends$
|
|
1952
|
+
var _path$t;
|
|
1953
|
+
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); }
|
|
1609
1954
|
var SvgTableSortDesc18 = function SvgTableSortDesc18(props, ref) {
|
|
1610
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1955
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$u({
|
|
1611
1956
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1612
1957
|
width: 18,
|
|
1613
1958
|
height: 18,
|
|
1614
1959
|
viewBox: "0 0 18 18",
|
|
1615
1960
|
ref: ref
|
|
1616
|
-
}, props), _path$
|
|
1961
|
+
}, props), _path$t || (_path$t = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1617
1962
|
fillRule: "evenodd",
|
|
1618
1963
|
d: "M10 12V2H8v10H5l4 4 4-4h-3z",
|
|
1619
1964
|
clipRule: "evenodd"
|
|
1620
1965
|
})));
|
|
1621
1966
|
};
|
|
1622
|
-
var ForwardRef$
|
|
1967
|
+
var ForwardRef$u = /*#__PURE__*/React.forwardRef(SvgTableSortDesc18);
|
|
1623
1968
|
|
|
1624
|
-
var _path$
|
|
1625
|
-
function _extends$
|
|
1969
|
+
var _path$s;
|
|
1970
|
+
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); }
|
|
1626
1971
|
var SvgContentFiltration18 = function SvgContentFiltration18(props, ref) {
|
|
1627
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1972
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$t({
|
|
1628
1973
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1629
1974
|
width: 18,
|
|
1630
1975
|
height: 18,
|
|
1631
1976
|
viewBox: "0 0 18 18",
|
|
1632
1977
|
ref: ref
|
|
1633
|
-
}, props), _path$
|
|
1978
|
+
}, props), _path$s || (_path$s = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1634
1979
|
fillRule: "evenodd",
|
|
1635
1980
|
d: "m8 14 2 2v-5H8v3zM2 3v2h14V3H2zm6 8h2l6-6H2l6 6z",
|
|
1636
1981
|
clipRule: "evenodd"
|
|
1637
1982
|
})));
|
|
1638
1983
|
};
|
|
1639
|
-
var ForwardRef$
|
|
1984
|
+
var ForwardRef$t = /*#__PURE__*/React.forwardRef(SvgContentFiltration18);
|
|
1640
1985
|
|
|
1641
|
-
var _path$
|
|
1642
|
-
function _extends$
|
|
1986
|
+
var _path$r;
|
|
1987
|
+
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); }
|
|
1643
1988
|
var SvgNavigationChevronDown18 = function SvgNavigationChevronDown18(props, ref) {
|
|
1644
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1645
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1646
|
-
width: 18,
|
|
1647
|
-
height: 18,
|
|
1648
|
-
viewBox: "0 0 18 18",
|
|
1649
|
-
ref: ref
|
|
1650
|
-
}, props), _path$u || (_path$u = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1651
|
-
fillRule: "evenodd",
|
|
1652
|
-
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",
|
|
1653
|
-
clipRule: "evenodd"
|
|
1654
|
-
})));
|
|
1655
|
-
};
|
|
1656
|
-
var ForwardRef$v = /*#__PURE__*/React.forwardRef(SvgNavigationChevronDown18);
|
|
1657
|
-
|
|
1658
|
-
var _path$t;
|
|
1659
|
-
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); }
|
|
1660
|
-
var SvgNavigationChevronUp18 = function SvgNavigationChevronUp18(props, ref) {
|
|
1661
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$u({
|
|
1989
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$s({
|
|
1662
1990
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1663
1991
|
width: 18,
|
|
1664
1992
|
height: 18,
|
|
1665
1993
|
viewBox: "0 0 18 18",
|
|
1666
1994
|
ref: ref
|
|
1667
|
-
}, props), _path$
|
|
1995
|
+
}, props), _path$r || (_path$r = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1668
1996
|
fillRule: "evenodd",
|
|
1669
|
-
d: "
|
|
1997
|
+
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",
|
|
1670
1998
|
clipRule: "evenodd"
|
|
1671
1999
|
})));
|
|
1672
2000
|
};
|
|
1673
|
-
var ForwardRef$
|
|
2001
|
+
var ForwardRef$s = /*#__PURE__*/React.forwardRef(SvgNavigationChevronDown18);
|
|
1674
2002
|
|
|
1675
|
-
var _path$
|
|
1676
|
-
function _extends$
|
|
1677
|
-
var
|
|
1678
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2003
|
+
var _path$q;
|
|
2004
|
+
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); }
|
|
2005
|
+
var SvgNavigationChevronUp18 = function SvgNavigationChevronUp18(props, ref) {
|
|
2006
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$r({
|
|
1679
2007
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1680
2008
|
width: 18,
|
|
1681
2009
|
height: 18,
|
|
1682
2010
|
viewBox: "0 0 18 18",
|
|
1683
2011
|
ref: ref
|
|
1684
|
-
}, props), _path$
|
|
2012
|
+
}, props), _path$q || (_path$q = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1685
2013
|
fillRule: "evenodd",
|
|
1686
|
-
d: "
|
|
2014
|
+
d: "m9 6-4.5 4.5 1.058 1.057L9 8.123l3.443 3.434L13.5 10.5 9 6z",
|
|
1687
2015
|
clipRule: "evenodd"
|
|
1688
2016
|
})));
|
|
1689
2017
|
};
|
|
1690
|
-
var ForwardRef$
|
|
2018
|
+
var ForwardRef$r = /*#__PURE__*/React.forwardRef(SvgNavigationChevronUp18);
|
|
1691
2019
|
|
|
1692
2020
|
class DataTableHeaderCell extends React__namespace.Component {
|
|
1693
2021
|
constructor() {
|
|
@@ -1697,25 +2025,29 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
1697
2025
|
};
|
|
1698
2026
|
this.getTextStyle = () => {
|
|
1699
2027
|
if (this.props.textCase === 'upper')
|
|
1700
|
-
return css$
|
|
1701
|
-
return css$
|
|
2028
|
+
return css$y.upperCase;
|
|
2029
|
+
return css$y['font-size-14'];
|
|
2030
|
+
};
|
|
2031
|
+
this.getTooltipContent = () => (React__namespace.createElement("div", { className: css$y.cellTooltipWrapper },
|
|
2032
|
+
React__namespace.createElement(Text, { fontSize: "14", color: "contrast", font: "semibold", cx: css$y.cellTooltipText }, this.props.column.caption),
|
|
2033
|
+
this.props.column.info && React__namespace.createElement(Text, { fontSize: "12", color: "contrast", cx: css$y.cellTooltipText }, this.props.column.info)));
|
|
2034
|
+
this.getColumnCaption = () => {
|
|
2035
|
+
return (React__namespace.createElement("div", { className: css$y.tooltipWrapper },
|
|
2036
|
+
React__namespace.createElement("div", { className: uuiCore.cx(css$y.iconCell, css$y['align-' + this.props.column.textAlign], uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaptionWrapper) },
|
|
2037
|
+
React__namespace.createElement(Tooltip, { placement: "top", color: "contrast", renderContent: this.getTooltipContent, cx: css$y.cellTooltip, openDelay: 600 },
|
|
2038
|
+
React__namespace.createElement(Text, { key: "text", lineHeight: "30", fontSize: "14", size: "30", cx: uuiCore.cx(css$y.caption, this.getTextStyle(), uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaption) }, this.props.column.caption)),
|
|
2039
|
+
this.props.column.isSortable && (!this.props.column.renderFilter || this.props.sortDirection) && (React__namespace.createElement(IconButton, { key: "sort", cx: uuiCore.cx(css$y.icon, css$y.sortIcon, this.props.sortDirection && css$y.sortIconActive, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderSortIcon), color: this.props.sortDirection ? 'default' : 'secondary', icon: this.props.sortDirection === 'desc' ? ForwardRef$u : this.props.sortDirection === 'asc' ? ForwardRef$v : ForwardRef$w })),
|
|
2040
|
+
this.props.isFilterActive && (React__namespace.createElement(IconButton, { key: "filter", cx: uuiCore.cx(css$y.icon, !this.props.sortDirection && css$y.filterIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderFilterIcon), color: "default", icon: ForwardRef$t })),
|
|
2041
|
+
this.props.column.renderFilter && (React__namespace.createElement(IconButton, { key: "dropdown", cx: uuiCore.cx(css$y.icon, css$y.dropdownIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderDropdownIcon), color: "secondary", icon: this.state.isDropdownOpen ? ForwardRef$r : ForwardRef$s })))));
|
|
1702
2042
|
};
|
|
1703
|
-
this.getColumnCaption = () => (React__namespace.createElement("div", { className: css$w.tooltipWrapper },
|
|
1704
|
-
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] },
|
|
1705
|
-
React__namespace.createElement("div", { className: uuiCore.cx(css$w.iconCell, css$w['align-' + this.props.column.textAlign], uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaptionWrapper) },
|
|
1706
|
-
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),
|
|
1707
|
-
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 })),
|
|
1708
|
-
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 })),
|
|
1709
|
-
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 })),
|
|
1710
|
-
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 }))))));
|
|
1711
2043
|
this.renderHeaderCheckbox = () => this.props.selectAll
|
|
1712
|
-
&& this.props.isFirstColumn && (React__namespace.createElement(Checkbox, Object.assign({ size: +this.props.size < 36 ? '12' : '18' }, this.props.selectAll, { cx: uuiCore.cx(css$
|
|
1713
|
-
this.renderResizeMark = (props) => React__namespace.createElement("div", { onMouseDown: props.onResizeStart, className: uuiCore.cx(css$
|
|
2044
|
+
&& this.props.isFirstColumn && (React__namespace.createElement(Checkbox, Object.assign({ size: +this.props.size < 36 ? '12' : '18' }, this.props.selectAll, { cx: uuiCore.cx(css$y.checkbox, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCheckbox) })));
|
|
2045
|
+
this.renderResizeMark = (props) => React__namespace.createElement("div", { onMouseDown: props.onResizeStart, className: uuiCore.cx(css$y.resizeMark, uuiCore.uuiMarkers.draggable) });
|
|
1714
2046
|
this.renderCellContent = (props, dropdownProps) => (React__namespace.createElement(FlexCell, Object.assign({}, this.props.column, { minWidth: this.props.column.width, ref: (ref) => {
|
|
1715
2047
|
var _a;
|
|
1716
2048
|
props.ref(ref);
|
|
1717
2049
|
(_a = dropdownProps === null || dropdownProps === void 0 ? void 0 : dropdownProps.ref) === null || _a === void 0 ? void 0 : _a.call(dropdownProps, ref);
|
|
1718
|
-
}, cx: uuiCore.cx(uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCell, (this.props.column.isSortable || this.props.isDropdown) && uuiCore.uuiMarkers.clickable, css$
|
|
2050
|
+
}, cx: uuiCore.cx(uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCell, (this.props.column.isSortable || this.props.isDropdown) && uuiCore.uuiMarkers.clickable, css$y.cell, css$y['size-' + (this.props.size || '36')], this.props.isFirstColumn && css$y['padding-left-24'], this.props.isLastColumn && css$y['padding-right-24'], this.props.column.cx, this.props.allowColumnsResizing && css$y.resizable, props.isDraggable && css$y.draggable, props.isDragGhost && css$y.ghost, props.isDraggedOut && css$y.isDraggedOut, props.isDndInProgress && css$y['dnd-marker-' + props.position]), onClick: !this.props.column.renderFilter ? props.toggleSort : dropdownProps === null || dropdownProps === void 0 ? void 0 : dropdownProps.onClick, rawProps: Object.assign({ role: 'columnheader', 'aria-sort': this.props.sortDirection === 'asc' ? 'ascending' : this.props.sortDirection ? 'descending' : 'none' }, props.eventHandlers) }),
|
|
1719
2051
|
this.renderHeaderCheckbox(),
|
|
1720
2052
|
this.getColumnCaption(),
|
|
1721
2053
|
this.props.allowColumnsResizing && this.renderResizeMark(props)));
|
|
@@ -1752,10 +2084,10 @@ const useColumnsWithFilters = (initialColumns, filters) => {
|
|
|
1752
2084
|
return columns;
|
|
1753
2085
|
};
|
|
1754
2086
|
|
|
1755
|
-
var _path$
|
|
1756
|
-
function _extends$
|
|
2087
|
+
var _path$p, _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;
|
|
2088
|
+
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); }
|
|
1757
2089
|
var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
1758
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2090
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
|
|
1759
2091
|
width: 232,
|
|
1760
2092
|
height: 180,
|
|
1761
2093
|
viewBox: "0 0 232 180",
|
|
@@ -1764,7 +2096,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
1764
2096
|
ref: ref
|
|
1765
2097
|
}, props), /*#__PURE__*/React__namespace.createElement("g", {
|
|
1766
2098
|
clipPath: "url(#a)"
|
|
1767
|
-
}, _path$
|
|
2099
|
+
}, _path$p || (_path$p = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1768
2100
|
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",
|
|
1769
2101
|
fill: "#F5F6FA"
|
|
1770
2102
|
})), _path2$1 || (_path2$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -1890,9 +2222,9 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
1890
2222
|
d: "M0 0h230.897v180H0z"
|
|
1891
2223
|
})))));
|
|
1892
2224
|
};
|
|
1893
|
-
var ForwardRef$
|
|
2225
|
+
var ForwardRef$q = /*#__PURE__*/React.forwardRef(SvgEmptyTable);
|
|
1894
2226
|
|
|
1895
|
-
var css$
|
|
2227
|
+
var css$x = {"sticky-header":"SfowPg","listContainer":"pV82s6","table":"RRaqCW","no-results":"_8g-jNr","no-results-icon":"NLktk6","no-results-title":"JcfJwP","stickyHeader":"SfowPg","noResults":"_8g-jNr","noResultsIcon":"NLktk6","noResultsTitle":"JcfJwP"};
|
|
1896
2228
|
|
|
1897
2229
|
function DataTable(props) {
|
|
1898
2230
|
var _a;
|
|
@@ -1906,123 +2238,126 @@ function DataTable(props) {
|
|
|
1906
2238
|
const renderedRows = rows.map((row) => (props.renderRow || renderRow)(Object.assign(Object.assign({}, row), { columns })));
|
|
1907
2239
|
const renderNoResultsBlock = React__namespace.useCallback(() => {
|
|
1908
2240
|
var _a;
|
|
1909
|
-
return (React__namespace.createElement("div", { className: css$
|
|
1910
|
-
React__namespace.createElement(uuiComponents.IconContainer, { cx: css$
|
|
1911
|
-
React__namespace.createElement(Text, { cx: css$
|
|
2241
|
+
return (React__namespace.createElement("div", { className: css$x.noResults }, props.renderNoResultsBlock ? ((_a = props.renderNoResultsBlock) === null || _a === void 0 ? void 0 : _a.call(props)) : (React__namespace.createElement(React__namespace.Fragment, null,
|
|
2242
|
+
React__namespace.createElement(uuiComponents.IconContainer, { cx: css$x.noResultsIcon, icon: ForwardRef$q }),
|
|
2243
|
+
React__namespace.createElement(Text, { cx: css$x.noResultsTitle, fontSize: "24", lineHeight: "30", color: "primary", font: "semibold" }, i18n.tables.noResultsBlock.title),
|
|
1912
2244
|
React__namespace.createElement(Text, { fontSize: "16", lineHeight: "24", font: "regular", color: "primary" }, i18n.tables.noResultsBlock.message)))));
|
|
1913
2245
|
}, [props.renderNoResultsBlock]);
|
|
1914
2246
|
const onConfigurationButtonClick = React__namespace.useCallback(() => {
|
|
2247
|
+
const configProps = { columns: props.columns, columnsConfig: Object.assign({}, config), defaultConfig };
|
|
1915
2248
|
uuiModals
|
|
1916
2249
|
.show((modalProps) => {
|
|
1917
|
-
return (
|
|
2250
|
+
return (props.renderColumnsConfigurationModal
|
|
2251
|
+
? props.renderColumnsConfigurationModal(Object.assign(Object.assign({}, configProps), modalProps))
|
|
2252
|
+
: (React__namespace.createElement(ColumnsConfigurationModal, Object.assign({}, modalProps, { columns: props.columns, columnsConfig: config, defaultConfig: defaultConfig }))));
|
|
1918
2253
|
})
|
|
1919
2254
|
.then((columnsConfig) => props.onValueChange(Object.assign(Object.assign({}, props.value), { columnsConfig })))
|
|
1920
2255
|
.catch(() => null);
|
|
1921
2256
|
}, [
|
|
1922
|
-
props.columns, config, defaultConfig, props.value, props.onValueChange,
|
|
2257
|
+
props.columns, config, defaultConfig, props.value, props.onValueChange, props.renderColumnsConfigurationModal,
|
|
1923
2258
|
]);
|
|
1924
2259
|
const renderRowsContainer = React__namespace.useCallback(({ listContainerRef, estimatedHeight, offsetY, scrollShadows, }) => (React__namespace.createElement(React__namespace.Fragment, null,
|
|
1925
|
-
React__namespace.createElement("div", { className: css$
|
|
2260
|
+
React__namespace.createElement("div", { className: css$x.stickyHeader },
|
|
1926
2261
|
React__namespace.createElement(DataTableHeaderRow, { columns: columns, onConfigButtonClick: props.showColumnsConfig && onConfigurationButtonClick, selectAll: props.selectAll, size: props.size, textCase: props.headerTextCase, allowColumnsReordering: props.allowColumnsReordering, allowColumnsResizing: props.allowColumnsResizing, value: props.value, onValueChange: props.onValueChange }),
|
|
1927
2262
|
React__namespace.createElement("div", { className: uuiCore.cx(uuiCore.uuiScrollShadows.top, {
|
|
1928
2263
|
[uuiCore.uuiScrollShadows.topVisible]: scrollShadows.verticalTop,
|
|
1929
2264
|
}) })),
|
|
1930
|
-
props.exactRowsCount !== 0 ? (React__namespace.createElement("div", { className: css$
|
|
2265
|
+
props.exactRowsCount !== 0 ? (React__namespace.createElement("div", { className: css$x.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
1931
2266
|
React__namespace.createElement("div", { ref: listContainerRef, role: "rowgroup", style: { marginTop: offsetY }, children: renderedRows }))) : (renderNoResultsBlock === null || renderNoResultsBlock === void 0 ? void 0 : renderNoResultsBlock()))), [
|
|
1932
2267
|
props, columns, rows, renderNoResultsBlock, onConfigurationButtonClick,
|
|
1933
2268
|
]);
|
|
1934
2269
|
return (React__namespace.createElement(uuiComponents.DataTableSelectionProvider, { onCopy: props.onCopy, rows: rows, columns: columns },
|
|
1935
|
-
React__namespace.createElement(VirtualList, { value: props.value, onValueChange: props.onValueChange, onScroll: props.onScroll, rows: renderedRows, rowsCount: props.rowsCount, renderRows: renderRowsContainer, cx: uuiCore.cx(css$
|
|
2270
|
+
React__namespace.createElement(VirtualList, { value: props.value, onValueChange: props.onValueChange, onScroll: props.onScroll, rows: renderedRows, rowsCount: props.rowsCount, renderRows: renderRowsContainer, cx: uuiCore.cx(css$x.table), rawProps: {
|
|
1936
2271
|
role: 'table',
|
|
1937
2272
|
'aria-colcount': columns.length,
|
|
1938
2273
|
'aria-rowcount': props.rowsCount,
|
|
1939
2274
|
} })));
|
|
1940
2275
|
}
|
|
1941
2276
|
|
|
1942
|
-
var styles$1 = {"main-panel":"
|
|
2277
|
+
var styles$1 = {"main-panel":"eWnYjN","group-title":"aHgXng","group-title-text":"QeY1fs","group-title-badge":"IGW7hZ","group-items":"_1cIeIe","no-data":"GfP7QX","h-divider":"Kfk6Sg","search-area":"_8EBvHT","mainPanel":"eWnYjN","groupTitle":"aHgXng","groupTitleText":"QeY1fs","groupTitleBadge":"IGW7hZ","groupItems":"_1cIeIe","noData":"GfP7QX","hDivider":"Kfk6Sg","searchArea":"_8EBvHT"};
|
|
1943
2278
|
|
|
1944
|
-
var _path$
|
|
1945
|
-
function _extends$
|
|
2279
|
+
var _path$o;
|
|
2280
|
+
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); }
|
|
1946
2281
|
var SvgNavigationMoreVert18 = function SvgNavigationMoreVert18(props, ref) {
|
|
1947
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2282
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
|
|
1948
2283
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1949
2284
|
width: 18,
|
|
1950
2285
|
height: 18,
|
|
1951
2286
|
viewBox: "0 0 18 18",
|
|
1952
2287
|
ref: ref
|
|
1953
|
-
}, props), _path$
|
|
2288
|
+
}, props), _path$o || (_path$o = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1954
2289
|
fillRule: "evenodd",
|
|
1955
2290
|
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",
|
|
1956
2291
|
clipRule: "evenodd"
|
|
1957
2292
|
})));
|
|
1958
2293
|
};
|
|
1959
|
-
var ForwardRef$
|
|
2294
|
+
var ForwardRef$p = /*#__PURE__*/React.forwardRef(SvgNavigationMoreVert18);
|
|
1960
2295
|
|
|
1961
|
-
var _path$
|
|
1962
|
-
function _extends$
|
|
2296
|
+
var _path$n;
|
|
2297
|
+
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); }
|
|
1963
2298
|
var SvgActionUpdate18 = function SvgActionUpdate18(props, ref) {
|
|
1964
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2299
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
|
|
1965
2300
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1966
2301
|
width: 18,
|
|
1967
2302
|
height: 18,
|
|
1968
2303
|
viewBox: "0 0 18 18",
|
|
1969
2304
|
ref: ref
|
|
1970
|
-
}, props), _path$
|
|
2305
|
+
}, props), _path$n || (_path$n = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1971
2306
|
fillRule: "evenodd",
|
|
1972
2307
|
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",
|
|
1973
2308
|
clipRule: "evenodd"
|
|
1974
2309
|
})));
|
|
1975
2310
|
};
|
|
1976
|
-
var ForwardRef$
|
|
2311
|
+
var ForwardRef$o = /*#__PURE__*/React.forwardRef(SvgActionUpdate18);
|
|
1977
2312
|
|
|
1978
|
-
var _path$
|
|
1979
|
-
function _extends$
|
|
2313
|
+
var _path$m;
|
|
2314
|
+
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); }
|
|
1980
2315
|
var SvgActionLockFill18 = function SvgActionLockFill18(props, ref) {
|
|
1981
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2316
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
|
|
1982
2317
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1983
2318
|
width: 18,
|
|
1984
2319
|
height: 18,
|
|
1985
2320
|
viewBox: "0 0 18 18",
|
|
1986
2321
|
ref: ref
|
|
1987
|
-
}, props), _path$
|
|
2322
|
+
}, props), _path$m || (_path$m = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1988
2323
|
fillRule: "evenodd",
|
|
1989
2324
|
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",
|
|
1990
2325
|
clipRule: "evenodd"
|
|
1991
2326
|
})));
|
|
1992
2327
|
};
|
|
1993
|
-
var ForwardRef$
|
|
2328
|
+
var ForwardRef$n = /*#__PURE__*/React.forwardRef(SvgActionLockFill18);
|
|
1994
2329
|
|
|
1995
|
-
var _path$
|
|
1996
|
-
function _extends$
|
|
2330
|
+
var _path$l;
|
|
2331
|
+
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); }
|
|
1997
2332
|
var SvgActionPinOn18 = function SvgActionPinOn18(props, ref) {
|
|
1998
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2333
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
|
|
1999
2334
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2000
2335
|
width: 18,
|
|
2001
2336
|
height: 18,
|
|
2002
2337
|
viewBox: "0 0 18 18",
|
|
2003
2338
|
ref: ref
|
|
2004
|
-
}, props), _path$
|
|
2339
|
+
}, props), _path$l || (_path$l = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2005
2340
|
fillRule: "evenodd",
|
|
2006
2341
|
d: "M12 9V3h1V2H5v1h1v6l-2 1v1h4v5h2v-5h4v-1l-2-1z",
|
|
2007
2342
|
clipRule: "evenodd"
|
|
2008
2343
|
})));
|
|
2009
2344
|
};
|
|
2010
|
-
var ForwardRef$
|
|
2345
|
+
var ForwardRef$m = /*#__PURE__*/React.forwardRef(SvgActionPinOn18);
|
|
2011
2346
|
|
|
2012
|
-
var _path$
|
|
2013
|
-
function _extends$
|
|
2347
|
+
var _path$k;
|
|
2348
|
+
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); }
|
|
2014
2349
|
var SvgActionPinOff18 = function SvgActionPinOff18(props, ref) {
|
|
2015
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2350
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
|
|
2016
2351
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2017
2352
|
width: 18,
|
|
2018
2353
|
height: 18,
|
|
2019
2354
|
viewBox: "0 0 18 18",
|
|
2020
2355
|
ref: ref
|
|
2021
|
-
}, props), _path$
|
|
2356
|
+
}, props), _path$k || (_path$k = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2022
2357
|
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"
|
|
2023
2358
|
})));
|
|
2024
2359
|
};
|
|
2025
|
-
var ForwardRef$
|
|
2360
|
+
var ForwardRef$l = /*#__PURE__*/React.forwardRef(SvgActionPinOff18);
|
|
2026
2361
|
|
|
2027
2362
|
const i18nLocal = i18n.tables.columnsConfigurationModal;
|
|
2028
2363
|
function PinIconButton(props) {
|
|
@@ -2037,12 +2372,12 @@ function PinIconButton(props) {
|
|
|
2037
2372
|
}, [isPinned, isPinnedAlways]);
|
|
2038
2373
|
const pinIcon = React.useMemo(() => {
|
|
2039
2374
|
if (isPinnedAlways) {
|
|
2040
|
-
return ForwardRef$
|
|
2375
|
+
return ForwardRef$n;
|
|
2041
2376
|
}
|
|
2042
2377
|
if (isPinned) {
|
|
2043
|
-
return isHovered ? ForwardRef$
|
|
2378
|
+
return isHovered ? ForwardRef$l : ForwardRef$m;
|
|
2044
2379
|
}
|
|
2045
|
-
return ForwardRef$
|
|
2380
|
+
return ForwardRef$m;
|
|
2046
2381
|
}, [
|
|
2047
2382
|
isPinnedAlways, isHovered, isPinned,
|
|
2048
2383
|
]);
|
|
@@ -2052,7 +2387,7 @@ function PinIconButton(props) {
|
|
|
2052
2387
|
React__namespace.createElement(IconButton, { icon: pinIcon, onClick: pinClickHandler, isDisabled: isPinnedAlways, color: isPinned ? 'info' : undefined }))));
|
|
2053
2388
|
}
|
|
2054
2389
|
|
|
2055
|
-
var styles = {"row-wrapper":"
|
|
2390
|
+
var styles = {"row-wrapper":"DnKOH2","not-pinned":"W4fKas","pin-icon-button":"_9ZZSqT","drag-handle":"ISEnyP","dnd-disabled":"X8lBii","rowWrapper":"DnKOH2","notPinned":"W4fKas","pinIconButton":"_9ZZSqT","dragHandle":"ISEnyP","dndDisabled":"X8lBii"};
|
|
2056
2391
|
|
|
2057
2392
|
const ColumnRow = React__namespace.memo(function ColumnRow(props) {
|
|
2058
2393
|
const { column } = props;
|
|
@@ -2068,7 +2403,7 @@ const ColumnRow = React__namespace.memo(function ColumnRow(props) {
|
|
|
2068
2403
|
return (React__namespace.createElement(FlexRow, Object.assign({ size: "30", cx: wrapperClasses }, wrapperAttrs),
|
|
2069
2404
|
React__namespace.createElement(FlexRow, { size: "30", spacing: "6", cx: styles.title },
|
|
2070
2405
|
React__namespace.createElement(uuiComponents.DragHandle, { rawProps: dragHandleRawProps, isDisabled: !isDndAllowed, cx: uuiCore.cx(styles.dragHandle, !isDndAllowed && styles.dndDisabled) }),
|
|
2071
|
-
React__namespace.createElement(Checkbox, { key: column.key, label: column.caption, value: isVisible, onValueChange: toggleVisibility, isDisabled: column.isAlwaysVisible })),
|
|
2406
|
+
React__namespace.createElement(Checkbox, { key: column.key, label: props.renderItem ? props.renderItem(props.column) : column.caption, value: isVisible, onValueChange: toggleVisibility, isDisabled: column.isAlwaysVisible })),
|
|
2072
2407
|
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
2073
2408
|
React__namespace.createElement(FlexRow, { size: "30", cx: styles.pinIconButton },
|
|
2074
2409
|
React__namespace.createElement(PinIconButton, { id: column.key, isPinned: !!isPinned, canUnpin: !isPinnedAlways, onTogglePin: togglePin })),
|
|
@@ -2087,6 +2422,7 @@ function ColumnsConfigurationModal(props) {
|
|
|
2087
2422
|
initialColumnsConfig,
|
|
2088
2423
|
columns,
|
|
2089
2424
|
defaultConfig,
|
|
2425
|
+
getSearchFields: props.getSearchFields,
|
|
2090
2426
|
});
|
|
2091
2427
|
const apply = React.useCallback(() => modalProps.success(columnsConfig), [columnsConfig, modalProps]);
|
|
2092
2428
|
const close = React.useCallback(() => modalProps.abort(), [modalProps]);
|
|
@@ -2100,9 +2436,9 @@ function ColumnsConfigurationModal(props) {
|
|
|
2100
2436
|
const hasDivider = !!(amountPinned && amountUnPinned);
|
|
2101
2437
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
2102
2438
|
renderGroupTitle(i18n$1.displayedSectionTitle, amountPinned + amountUnPinned),
|
|
2103
|
-
!!amountPinned && (React__namespace.createElement(FlexRow, { cx: styles$1.groupItems, size: "30" }, groupedColumns.displayedPinned.map((c) => (React__namespace.createElement(ColumnRow, { column: c, key: c.key }))))),
|
|
2439
|
+
!!amountPinned && (React__namespace.createElement(FlexRow, { cx: styles$1.groupItems, size: "30" }, groupedColumns.displayedPinned.map((c) => (React__namespace.createElement(ColumnRow, { column: c, key: c.key, renderItem: props.renderItem }))))),
|
|
2104
2440
|
hasDivider && React__namespace.createElement("div", { className: styles$1.hDivider }),
|
|
2105
|
-
!!amountUnPinned && (React__namespace.createElement(FlexRow, { cx: styles$1.groupItems, size: "30" }, groupedColumns.displayedUnpinned.map((c) => (React__namespace.createElement(ColumnRow, { column: c, key: c.key })))))));
|
|
2441
|
+
!!amountUnPinned && (React__namespace.createElement(FlexRow, { cx: styles$1.groupItems, size: "30" }, groupedColumns.displayedUnpinned.map((c) => (React__namespace.createElement(ColumnRow, { column: c, key: c.key, renderItem: props.renderItem })))))));
|
|
2106
2442
|
};
|
|
2107
2443
|
const renderHidden = () => {
|
|
2108
2444
|
const amountHidden = groupedColumns.hidden.length;
|
|
@@ -2111,10 +2447,10 @@ function ColumnsConfigurationModal(props) {
|
|
|
2111
2447
|
}
|
|
2112
2448
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
2113
2449
|
renderGroupTitle(i18n$1.hiddenSectionTitle, amountHidden),
|
|
2114
|
-
React__namespace.createElement(FlexRow, { cx: styles$1.groupItems, size: "30" }, groupedColumns.hidden.map((c) => (React__namespace.createElement(ColumnRow, { column: c, key: c.key }))))));
|
|
2450
|
+
React__namespace.createElement(FlexRow, { cx: styles$1.groupItems, size: "30" }, groupedColumns.hidden.map((c) => (React__namespace.createElement(ColumnRow, { column: c, key: c.key, renderItem: props.renderItem }))))));
|
|
2115
2451
|
};
|
|
2116
2452
|
const noVisibleColumns = React.useMemo(() => !groupedColumns.displayedPinned.length && !groupedColumns.displayedUnpinned.length, [groupedColumns.displayedPinned, groupedColumns.displayedUnpinned]);
|
|
2117
|
-
const applyButton = React__namespace.createElement(Button, { caption: i18n$1.applyButton, isDisabled: noVisibleColumns, color: "
|
|
2453
|
+
const applyButton = React__namespace.createElement(Button, { caption: i18n$1.applyButton, isDisabled: noVisibleColumns, color: "primary", onClick: apply });
|
|
2118
2454
|
return (React__namespace.createElement(ModalBlocker, Object.assign({}, modalProps),
|
|
2119
2455
|
React__namespace.createElement(ModalWindow, { height: 700 },
|
|
2120
2456
|
React__namespace.createElement(ModalHeader, { title: i18n$1.configureColumnsTitle, onClose: close }),
|
|
@@ -2122,7 +2458,7 @@ function ColumnsConfigurationModal(props) {
|
|
|
2122
2458
|
React__namespace.createElement(SearchInput, { size: "30", value: searchValue, onValueChange: setSearchValue, placeholder: i18n$1.searchPlaceholder }),
|
|
2123
2459
|
React__namespace.createElement(Dropdown, { closeOnTargetClick: true, renderBody: () => (React__namespace.createElement(Panel, { shadow: true },
|
|
2124
2460
|
React__namespace.createElement(DropdownMenuButton, { caption: i18n$1.clearAllButton, onClick: uncheckAll }),
|
|
2125
|
-
React__namespace.createElement(DropdownMenuButton, { caption: i18n$1.selectAllButton, onClick: checkAll }))), renderTarget: (props) => React__namespace.createElement(Button, Object.assign({}, props, { mode: "none", icon: ForwardRef$
|
|
2461
|
+
React__namespace.createElement(DropdownMenuButton, { caption: i18n$1.selectAllButton, onClick: checkAll }))), renderTarget: (props) => React__namespace.createElement(Button, Object.assign({}, props, { mode: "none", icon: ForwardRef$p, size: "30", color: "secondary", isDropdown: false })) })),
|
|
2126
2462
|
React__namespace.createElement(Panel, { cx: styles$1.mainPanel },
|
|
2127
2463
|
React__namespace.createElement(ScrollBars, null,
|
|
2128
2464
|
renderVisible(),
|
|
@@ -2131,22 +2467,22 @@ function ColumnsConfigurationModal(props) {
|
|
|
2131
2467
|
React__namespace.createElement(Text, { fontSize: "24", lineHeight: "30", color: "primary", font: "semibold" }, i18n$1.noResultsFound.text),
|
|
2132
2468
|
React__namespace.createElement(Text, { fontSize: "16", lineHeight: "24", font: "regular", color: "primary" }, i18n$1.noResultsFound.subText))))),
|
|
2133
2469
|
React__namespace.createElement(ModalFooter, { borderTop: true },
|
|
2134
|
-
React__namespace.createElement(LinkButton, { icon: ForwardRef$
|
|
2470
|
+
React__namespace.createElement(LinkButton, { icon: ForwardRef$o, caption: i18n$1.resetToDefaultButton, onClick: reset }),
|
|
2135
2471
|
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
2136
2472
|
React__namespace.createElement(Button, { mode: "none", color: "secondary", caption: i18n$1.cancelButton, onClick: close }),
|
|
2137
2473
|
noVisibleColumns ? (React__namespace.createElement(Tooltip, { content: i18n$1.enableAtLeastOneColumnMessage, placement: "top-end", color: "critical" }, applyButton)) : (applyButton)))));
|
|
2138
2474
|
}
|
|
2139
2475
|
|
|
2140
|
-
var css$
|
|
2476
|
+
var css$w = {"panel":"E0IYu9"};
|
|
2141
2477
|
|
|
2142
|
-
var css$
|
|
2478
|
+
var css$v = {"sorting-panel-container":"WeS65g","sort-active":"DwaTcF","sortingPanelContainer":"WeS65g","sortActive":"DwaTcF"};
|
|
2143
2479
|
|
|
2144
2480
|
const SortingPanelImpl = ({ sortDirection, onSort }) => {
|
|
2145
2481
|
const sortAsc = React.useCallback(() => onSort(sortDirection === 'asc' ? undefined : 'asc'), [onSort]);
|
|
2146
2482
|
const sortDesc = React.useCallback(() => onSort(sortDirection === 'desc' ? undefined : 'desc'), [onSort]);
|
|
2147
|
-
return (React__namespace.default.createElement(FlexCell, { cx: css$
|
|
2148
|
-
React__namespace.default.createElement(DropdownMenuButton, { isActive: sortDirection === 'asc', caption: i18n.pickerFilterHeader.sortAscending, icon: ForwardRef$
|
|
2149
|
-
React__namespace.default.createElement(DropdownMenuButton, { isActive: sortDirection === 'desc', caption: i18n.pickerFilterHeader.sortDescending, icon: ForwardRef$
|
|
2483
|
+
return (React__namespace.default.createElement(FlexCell, { cx: css$v.sortingPanelContainer },
|
|
2484
|
+
React__namespace.default.createElement(DropdownMenuButton, { isActive: sortDirection === 'asc', caption: i18n.pickerFilterHeader.sortAscending, icon: ForwardRef$v, onClick: sortAsc }),
|
|
2485
|
+
React__namespace.default.createElement(DropdownMenuButton, { isActive: sortDirection === 'desc', caption: i18n.pickerFilterHeader.sortDescending, icon: ForwardRef$u, onClick: sortDesc })));
|
|
2150
2486
|
};
|
|
2151
2487
|
const SortingPanel = React__namespace.default.memo(SortingPanelImpl);
|
|
2152
2488
|
|
|
@@ -2161,63 +2497,63 @@ const ColumnHeaderDropdownImpl = (props) => {
|
|
|
2161
2497
|
width: uuiCore.isMobile() ? document.documentElement.clientWidth : undefined,
|
|
2162
2498
|
}), []);
|
|
2163
2499
|
const closeDropdown = React.useCallback(() => props.onOpenChange(false), [props.onOpenChange]);
|
|
2164
|
-
return (React__namespace.default.createElement(uuiComponents.Dropdown, { renderTarget: props.renderTarget, renderBody: (dropdownProps) => (React__namespace.default.createElement(Panel, { style: style, shadow: true, cx: css$
|
|
2500
|
+
return (React__namespace.default.createElement(uuiComponents.Dropdown, { renderTarget: props.renderTarget, renderBody: (dropdownProps) => (React__namespace.default.createElement(Panel, { style: style, shadow: true, cx: css$w.panel },
|
|
2165
2501
|
React__namespace.default.createElement(MobileDropdownWrapper, { title: props.title, close: closeDropdown },
|
|
2166
2502
|
props.isSortable && React__namespace.default.createElement(SortingPanel, { sortDirection: props.sortDirection, onSort: props.onSort }),
|
|
2167
2503
|
props.renderFilter(dropdownProps)))), modifiers: popperModifiers, value: props.isOpen, onValueChange: props.onOpenChange }));
|
|
2168
2504
|
};
|
|
2169
2505
|
const ColumnHeaderDropdown = React__namespace.default.memo(ColumnHeaderDropdownImpl);
|
|
2170
2506
|
|
|
2171
|
-
var _path$
|
|
2172
|
-
function _extends$
|
|
2507
|
+
var _path$j;
|
|
2508
|
+
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); }
|
|
2173
2509
|
var SvgNotificationDone24 = function SvgNotificationDone24(props, ref) {
|
|
2174
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2510
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
|
|
2175
2511
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2176
2512
|
width: 24,
|
|
2177
2513
|
height: 24,
|
|
2178
2514
|
viewBox: "0 0 24 24",
|
|
2179
2515
|
ref: ref
|
|
2180
|
-
}, props), _path$
|
|
2516
|
+
}, props), _path$j || (_path$j = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2181
2517
|
fillRule: "evenodd",
|
|
2182
2518
|
d: "m9.727 16.075-4.295-4.388L4 13.149 9.727 19 22 6.463 20.568 5 9.728 16.075z",
|
|
2183
2519
|
clipRule: "evenodd"
|
|
2184
2520
|
})));
|
|
2185
2521
|
};
|
|
2186
|
-
var ForwardRef$
|
|
2522
|
+
var ForwardRef$k = /*#__PURE__*/React.forwardRef(SvgNotificationDone24);
|
|
2187
2523
|
|
|
2188
|
-
var _path$
|
|
2189
|
-
function _extends$
|
|
2524
|
+
var _path$i;
|
|
2525
|
+
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); }
|
|
2190
2526
|
var SvgNotificationDone18 = function SvgNotificationDone18(props, ref) {
|
|
2191
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2527
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
|
|
2192
2528
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2193
2529
|
width: 18,
|
|
2194
2530
|
height: 18,
|
|
2195
2531
|
viewBox: "0 0 18 18",
|
|
2196
2532
|
ref: ref
|
|
2197
|
-
}, props), _path$
|
|
2533
|
+
}, props), _path$i || (_path$i = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2198
2534
|
fillRule: "evenodd",
|
|
2199
2535
|
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",
|
|
2200
2536
|
clipRule: "evenodd"
|
|
2201
2537
|
})));
|
|
2202
2538
|
};
|
|
2203
|
-
var ForwardRef$
|
|
2539
|
+
var ForwardRef$j = /*#__PURE__*/React.forwardRef(SvgNotificationDone18);
|
|
2204
2540
|
|
|
2205
|
-
var _path$
|
|
2206
|
-
function _extends$
|
|
2541
|
+
var _path$h;
|
|
2542
|
+
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); }
|
|
2207
2543
|
var SvgNotificationDone12 = function SvgNotificationDone12(props, ref) {
|
|
2208
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2544
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
|
|
2209
2545
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2210
2546
|
width: 12,
|
|
2211
2547
|
height: 12,
|
|
2212
2548
|
viewBox: "0 0 12 12",
|
|
2213
2549
|
ref: ref
|
|
2214
|
-
}, props), _path$
|
|
2550
|
+
}, props), _path$h || (_path$h = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2215
2551
|
d: "M11 3.6 9.462 2 4.846 6.8 2.538 4.4 1 6l3.846 4L11 3.6z"
|
|
2216
2552
|
})));
|
|
2217
2553
|
};
|
|
2218
|
-
var ForwardRef$
|
|
2554
|
+
var ForwardRef$i = /*#__PURE__*/React.forwardRef(SvgNotificationDone12);
|
|
2219
2555
|
|
|
2220
|
-
var css$
|
|
2556
|
+
var css$u = {"render-item":"W0hH7J","icon-wrapper":"X0WXAb","picker-row":"RIFFkg","icon-default":"wJMIKA","icon-primary":"nmVr5l","renderItem":"W0hH7J","iconWrapper":"X0WXAb","pickerRow":"RIFFkg","iconDefault":"wJMIKA","iconPrimary":"nmVr5l"};
|
|
2221
2557
|
|
|
2222
2558
|
class DataPickerRow extends React__namespace.Component {
|
|
2223
2559
|
constructor() {
|
|
@@ -2225,37 +2561,37 @@ class DataPickerRow extends React__namespace.Component {
|
|
|
2225
2561
|
this.getIcon = (size) => {
|
|
2226
2562
|
switch (size) {
|
|
2227
2563
|
case '24':
|
|
2228
|
-
return ForwardRef$
|
|
2564
|
+
return ForwardRef$i;
|
|
2229
2565
|
case '30':
|
|
2230
|
-
return ForwardRef$
|
|
2566
|
+
return ForwardRef$j;
|
|
2231
2567
|
case '36':
|
|
2232
|
-
return ForwardRef$
|
|
2568
|
+
return ForwardRef$j;
|
|
2233
2569
|
case '42':
|
|
2234
|
-
return ForwardRef$
|
|
2570
|
+
return ForwardRef$k;
|
|
2235
2571
|
default:
|
|
2236
|
-
return ForwardRef$
|
|
2572
|
+
return ForwardRef$j;
|
|
2237
2573
|
}
|
|
2238
2574
|
};
|
|
2239
2575
|
this.column = {
|
|
2240
2576
|
key: 'name',
|
|
2241
2577
|
grow: 1,
|
|
2242
2578
|
width: 0,
|
|
2243
|
-
render: (item, rowProps) => (React__namespace.createElement("div", { key: rowProps.id, className: css$
|
|
2579
|
+
render: (item, rowProps) => (React__namespace.createElement("div", { key: rowProps.id, className: css$u.renderItem },
|
|
2244
2580
|
this.props.renderItem(item, rowProps),
|
|
2245
2581
|
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
2246
|
-
(rowProps.isChildrenSelected || rowProps.isSelected) && (React__namespace.createElement("div", { className: css$
|
|
2247
|
-
React__namespace.createElement(uuiComponents.IconContainer, { icon: this.getIcon(this.props.size), cx: rowProps.isChildrenSelected ? css$
|
|
2582
|
+
(rowProps.isChildrenSelected || rowProps.isSelected) && (React__namespace.createElement("div", { className: css$u.iconWrapper },
|
|
2583
|
+
React__namespace.createElement(uuiComponents.IconContainer, { icon: this.getIcon(this.props.size), cx: rowProps.isChildrenSelected ? css$u.iconDefault : css$u.iconPrimary }))))),
|
|
2248
2584
|
};
|
|
2249
2585
|
this.renderContent = () => {
|
|
2250
2586
|
return (React__namespace.createElement(DataTableCell, { key: "name", size: this.props.size || '36', padding: this.props.padding || '24', isFirstColumn: true, isLastColumn: false, tabIndex: -1, column: this.column, rowProps: this.props, alignActions: this.props.alignActions || 'top' }));
|
|
2251
2587
|
};
|
|
2252
2588
|
}
|
|
2253
2589
|
render() {
|
|
2254
|
-
return React__namespace.createElement(uuiComponents.DataPickerRow, Object.assign({}, this.props, { cx: [css$
|
|
2590
|
+
return React__namespace.createElement(uuiComponents.DataPickerRow, Object.assign({}, this.props, { cx: [css$u.pickerRow, this.props.cx], renderContent: this.renderContent }));
|
|
2255
2591
|
}
|
|
2256
2592
|
}
|
|
2257
2593
|
|
|
2258
|
-
var css$
|
|
2594
|
+
var css$t = {"done":"qrDRvV"};
|
|
2259
2595
|
|
|
2260
2596
|
const MobileDropdownWrapper = (props) => {
|
|
2261
2597
|
const isVisible = uuiCore.isMobile();
|
|
@@ -2263,22 +2599,22 @@ const MobileDropdownWrapper = (props) => {
|
|
|
2263
2599
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
2264
2600
|
isVisible && React__namespace.default.createElement(DataPickerHeader, { title: props.title, close: props.close }),
|
|
2265
2601
|
props.children,
|
|
2266
|
-
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$
|
|
2602
|
+
isVisible && React__namespace.default.createElement(LinkButton, { caption: i18n.pickerInput.doneButton, onClick: () => { var _a; return (_a = props.close) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: css$t.done, size: "48" })));
|
|
2267
2603
|
};
|
|
2268
2604
|
|
|
2269
|
-
var css$
|
|
2605
|
+
var css$s = {"sub-header-wrapper":"WSzC03","switch":"hV5Nfj","no-found-modal-container":"YElJZE","no-found-modal-container-icon":"lQ7S2x","no-found-modal-container-text":"_60wOtJ","subHeaderWrapper":"WSzC03","$switch$":"hV5Nfj","noFoundModalContainer":"YElJZE","noFoundModalContainerIcon":"lQ7S2x","noFoundModalContainerText":"_60wOtJ"};
|
|
2270
2606
|
|
|
2271
|
-
var _path$
|
|
2272
|
-
function _extends$
|
|
2607
|
+
var _path$g, _path2;
|
|
2608
|
+
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); }
|
|
2273
2609
|
var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
2274
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2610
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
|
|
2275
2611
|
width: 66,
|
|
2276
2612
|
height: 67,
|
|
2277
2613
|
viewBox: "0 0 66 67",
|
|
2278
2614
|
fill: "none",
|
|
2279
2615
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2280
2616
|
ref: ref
|
|
2281
|
-
}, props), _path$
|
|
2617
|
+
}, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2282
2618
|
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",
|
|
2283
2619
|
fill: "#EBEDF5"
|
|
2284
2620
|
})), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -2288,16 +2624,16 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
|
2288
2624
|
fill: "#6C6F80"
|
|
2289
2625
|
})));
|
|
2290
2626
|
};
|
|
2291
|
-
var ForwardRef$
|
|
2627
|
+
var ForwardRef$h = /*#__PURE__*/React.forwardRef(SvgSearchWithBackground);
|
|
2292
2628
|
|
|
2293
2629
|
class PickerModalImpl extends uuiComponents.PickerModalBase {
|
|
2294
2630
|
constructor() {
|
|
2295
2631
|
super(...arguments);
|
|
2296
2632
|
this.renderNotFound = () => {
|
|
2297
|
-
return this.props.renderNotFound ? (this.props.renderNotFound({ search: this.state.dataSourceState.search, onClose: () => this.props.success(null) })) : (React__namespace.createElement("div", { className: css$
|
|
2298
|
-
React__namespace.createElement(uuiComponents.IconContainer, { cx: css$
|
|
2299
|
-
React__namespace.createElement(Text, { cx: css$
|
|
2300
|
-
React__namespace.createElement(Text, { cx: css$
|
|
2633
|
+
return this.props.renderNotFound ? (this.props.renderNotFound({ search: this.state.dataSourceState.search, onClose: () => this.props.success(null) })) : (React__namespace.createElement("div", { className: css$s.noFoundModalContainer },
|
|
2634
|
+
React__namespace.createElement(uuiComponents.IconContainer, { cx: css$s.noFoundModalContainerIcon, icon: ForwardRef$h }),
|
|
2635
|
+
React__namespace.createElement(Text, { cx: css$s.noFoundModalContainerText, font: "semibold", fontSize: "16", lineHeight: "24", color: "primary", size: "36" }, i18n.dataPickerBody.noRecordsMessage),
|
|
2636
|
+
React__namespace.createElement(Text, { cx: css$s.noFoundModalContainerText, fontSize: "12", lineHeight: "18", font: "regular", color: "primary", size: "36" }, i18n.dataPickerBody.noRecordsSubTitle)));
|
|
2301
2637
|
};
|
|
2302
2638
|
}
|
|
2303
2639
|
renderRow(rowProps) {
|
|
@@ -2319,7 +2655,7 @@ class PickerModalImpl extends uuiComponents.PickerModalBase {
|
|
|
2319
2655
|
return (React__namespace.createElement(ModalBlocker, Object.assign({}, this.props),
|
|
2320
2656
|
React__namespace.createElement(ModalWindow, { width: 600, height: 700 },
|
|
2321
2657
|
React__namespace.createElement(ModalHeader, { title: this.props.caption || i18n.pickerModal.headerTitle, onClose: () => this.props.abort() }),
|
|
2322
|
-
React__namespace.createElement(FlexCell, { cx: css$
|
|
2658
|
+
React__namespace.createElement(FlexCell, { cx: css$s.subHeaderWrapper },
|
|
2323
2659
|
React__namespace.createElement(FlexRow, { vPadding: "24" },
|
|
2324
2660
|
React__namespace.createElement(SearchInput, Object.assign({}, this.lens.prop('dataSourceState').prop('search').toProps(), { onKeyDown: (e) => uuiComponents.handleDataSourceKeyboard({
|
|
2325
2661
|
value: this.getDataSourceState(),
|
|
@@ -2328,7 +2664,7 @@ class PickerModalImpl extends uuiComponents.PickerModalBase {
|
|
|
2328
2664
|
rows: dataRows,
|
|
2329
2665
|
editMode: 'modal',
|
|
2330
2666
|
}, e), autoFocus: true, placeholder: i18n.pickerModal.searchPlaceholder }))),
|
|
2331
|
-
!this.isSingleSelect() && (React__namespace.createElement(Switch, Object.assign({ cx: css$
|
|
2667
|
+
!this.isSingleSelect() && (React__namespace.createElement(Switch, Object.assign({ cx: css$s.switch, size: "18" }, this.stateLens.prop('showSelected').toProps(), { isDisabled: view.getSelectedRowsCount() < 1, label: "Show only selected" }))),
|
|
2332
2668
|
this.props.renderFilter && React__namespace.createElement(FlexCell, { grow: 2 }, this.props.renderFilter(this.lens.prop('dataSourceState').prop('filter').toProps()))),
|
|
2333
2669
|
React__namespace.createElement(DataPickerBody, Object.assign({}, this.getListProps(), { value: this.getDataSourceState(), onValueChange: this.handleDataSourceValueChange, search: this.lens.prop('dataSourceState').prop('search').toProps(), showSearch: false, rows: rows, renderNotFound: this.renderNotFound, editMode: "modal" })),
|
|
2334
2670
|
React__namespace.createElement(ModalFooter, { padding: "24", vPadding: "24" }, this.props.renderFooter ? this.props.renderFooter(this.getFooterProps()) : this.renderFooter()))));
|
|
@@ -2347,11 +2683,11 @@ class PickerModal extends React__namespace.Component {
|
|
|
2347
2683
|
|
|
2348
2684
|
const Avatar = uuiCore.withMods(uuiComponents.Avatar, () => []);
|
|
2349
2685
|
|
|
2350
|
-
var css$
|
|
2686
|
+
var css$r = {"root":"-oBec6"};
|
|
2351
2687
|
|
|
2352
|
-
const AvatarStack = uuiCore.withMods(uuiComponents.AvatarStack, () => [css$
|
|
2688
|
+
const AvatarStack = uuiCore.withMods(uuiComponents.AvatarStack, () => [css$r.root]);
|
|
2353
2689
|
|
|
2354
|
-
var css$
|
|
2690
|
+
var css$q = {"root":"wKHFhx","size-18":"w7pXyW","fill-transparent":"fOo0lm","size-24":"CF-nIu","size-30":"_3oRQvj","size-36":"H-8uEN","size-42":"bBOuDW","size-48":"-Jy2kB","fill-solid":"Y-bw-4","fill-semitransparent":"peZYl3","size18":"w7pXyW","fillTransparent":"fOo0lm","size24":"CF-nIu","size30":"_3oRQvj","size36":"H-8uEN","size42":"bBOuDW","size48":"-Jy2kB","fillSolid":"Y-bw-4","fillSemitransparent":"peZYl3"};
|
|
2355
2691
|
|
|
2356
2692
|
const defaultSize$4 = '36';
|
|
2357
2693
|
const mapSize$1 = {
|
|
@@ -2364,7 +2700,7 @@ const mapSize$1 = {
|
|
|
2364
2700
|
};
|
|
2365
2701
|
function applyBadgeMods(mods) {
|
|
2366
2702
|
return [
|
|
2367
|
-
css$
|
|
2703
|
+
css$q.root, buttonCss.root, css$q['size-' + (mods.size || defaultSize$4)], css$q['fill-' + (mods.fill || 'solid')], mods.color && `badge-${mods.color}`,
|
|
2368
2704
|
];
|
|
2369
2705
|
}
|
|
2370
2706
|
const Badge = uuiCore.withMods(uuiComponents.Button, applyBadgeMods, (props) => ({
|
|
@@ -2373,7 +2709,7 @@ const Badge = uuiCore.withMods(uuiComponents.Button, applyBadgeMods, (props) =>
|
|
|
2373
2709
|
countPosition: 'left',
|
|
2374
2710
|
}));
|
|
2375
2711
|
|
|
2376
|
-
var css$
|
|
2712
|
+
var css$p = {"root":"_0eseTq","size-18":"Jea6b6","size-24":"pwZKr3","size-30":"_2xnIcj","size-36":"F7WEm0","size-42":"Y6mEiq","size-48":"KfgBys","size18":"Jea6b6","size24":"pwZKr3","size30":"_2xnIcj","size36":"F7WEm0","size42":"Y6mEiq","size48":"KfgBys"};
|
|
2377
2713
|
|
|
2378
2714
|
const defaultSize$3 = '36';
|
|
2379
2715
|
const mapSize = {
|
|
@@ -2385,98 +2721,64 @@ const mapSize = {
|
|
|
2385
2721
|
18: '18',
|
|
2386
2722
|
};
|
|
2387
2723
|
function applyTagMods(mods) {
|
|
2388
|
-
return [css$
|
|
2724
|
+
return [css$p['size-' + (mods.size || defaultSize$3)], css$p.root];
|
|
2389
2725
|
}
|
|
2390
2726
|
const Tag = uuiCore.withMods(uuiComponents.Button, applyTagMods, (props) => ({
|
|
2391
2727
|
dropdownIcon: systemIcons[mapSize[props.size] || defaultSize$3].foldingArrow,
|
|
2392
2728
|
clearIcon: systemIcons[mapSize[props.size] || defaultSize$3].clear,
|
|
2393
2729
|
}));
|
|
2394
2730
|
|
|
2395
|
-
var css$
|
|
2731
|
+
var css$o = {"root":"AaOTyQ","spacer":"bpm7Wm","mode-ghost":"fWp85D","size-24":"HI-Bqs","size-30":"WLF8lF","navigation-size-24":"x82Xz-","navigation-size-30":"_0sElWb","modeGhost":"fWp85D","size24":"HI-Bqs","size30":"WLF8lF","navigationSize24":"x82Xz-","navigationSize30":"_0sElWb"};
|
|
2396
2732
|
|
|
2397
|
-
var _path$
|
|
2398
|
-
function _extends$
|
|
2733
|
+
var _path$f;
|
|
2734
|
+
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); }
|
|
2399
2735
|
var SvgNavigationChevronLeft12 = function SvgNavigationChevronLeft12(props, ref) {
|
|
2400
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2736
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
|
|
2401
2737
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2402
2738
|
width: 12,
|
|
2403
2739
|
height: 12,
|
|
2404
2740
|
viewBox: "0 0 12 12",
|
|
2405
2741
|
ref: ref
|
|
2406
|
-
}, props), _path$
|
|
2742
|
+
}, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2407
2743
|
fillRule: "evenodd",
|
|
2408
2744
|
d: "M7.705 3.705 7 3 4 6l3 3 .705-.705L5.415 6l2.29-2.295z",
|
|
2409
2745
|
clipRule: "evenodd"
|
|
2410
2746
|
})));
|
|
2411
2747
|
};
|
|
2412
|
-
var ForwardRef$
|
|
2748
|
+
var ForwardRef$g = /*#__PURE__*/React.forwardRef(SvgNavigationChevronLeft12);
|
|
2413
2749
|
|
|
2414
|
-
var _path$
|
|
2415
|
-
function _extends$
|
|
2750
|
+
var _path$e;
|
|
2751
|
+
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); }
|
|
2416
2752
|
var SvgNavigationChevronRight12 = function SvgNavigationChevronRight12(props, ref) {
|
|
2417
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2753
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
|
|
2418
2754
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2419
2755
|
width: 12,
|
|
2420
2756
|
height: 12,
|
|
2421
2757
|
viewBox: "0 0 12 12",
|
|
2422
2758
|
ref: ref
|
|
2423
|
-
}, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2424
|
-
fillRule: "evenodd",
|
|
2425
|
-
d: "m5 3-.705.705L6.585 6l-2.29 2.295L5 9l3-3-3-3z",
|
|
2426
|
-
clipRule: "evenodd"
|
|
2427
|
-
})));
|
|
2428
|
-
};
|
|
2429
|
-
var ForwardRef$h = /*#__PURE__*/React.forwardRef(SvgNavigationChevronRight12);
|
|
2430
|
-
|
|
2431
|
-
var _path$f;
|
|
2432
|
-
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); }
|
|
2433
|
-
var SvgNavigationChevronLeft18 = function SvgNavigationChevronLeft18(props, ref) {
|
|
2434
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
|
|
2435
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2436
|
-
width: 18,
|
|
2437
|
-
height: 18,
|
|
2438
|
-
viewBox: "0 0 18 18",
|
|
2439
|
-
ref: ref
|
|
2440
|
-
}, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2441
|
-
fillRule: "evenodd",
|
|
2442
|
-
d: "M11.557 5.558 10.5 4.5 6 9l4.5 4.5 1.057-1.057L8.123 9l3.434-3.442z",
|
|
2443
|
-
clipRule: "evenodd"
|
|
2444
|
-
})));
|
|
2445
|
-
};
|
|
2446
|
-
var ForwardRef$g = /*#__PURE__*/React.forwardRef(SvgNavigationChevronLeft18);
|
|
2447
|
-
|
|
2448
|
-
var _path$e;
|
|
2449
|
-
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); }
|
|
2450
|
-
var SvgNavigationChevronRight18 = function SvgNavigationChevronRight18(props, ref) {
|
|
2451
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
|
|
2452
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2453
|
-
width: 18,
|
|
2454
|
-
height: 18,
|
|
2455
|
-
viewBox: "0 0 18 18",
|
|
2456
|
-
ref: ref
|
|
2457
2759
|
}, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2458
2760
|
fillRule: "evenodd",
|
|
2459
|
-
d: "
|
|
2761
|
+
d: "m5 3-.705.705L6.585 6l-2.29 2.295L5 9l3-3-3-3z",
|
|
2460
2762
|
clipRule: "evenodd"
|
|
2461
2763
|
})));
|
|
2462
2764
|
};
|
|
2463
|
-
var ForwardRef$f = /*#__PURE__*/React.forwardRef(
|
|
2765
|
+
var ForwardRef$f = /*#__PURE__*/React.forwardRef(SvgNavigationChevronRight12);
|
|
2464
2766
|
|
|
2465
2767
|
function Paginator(props) {
|
|
2466
2768
|
const renderPaginator = (params) => {
|
|
2467
2769
|
var _a, _b;
|
|
2468
|
-
return (React__namespace.default.createElement("nav", Object.assign({ role: "navigation", className: css$
|
|
2469
|
-
React__namespace.default.createElement(Button, { cx: css$
|
|
2770
|
+
return (React__namespace.default.createElement("nav", Object.assign({ role: "navigation", className: css$o.root }, params.rawProps),
|
|
2771
|
+
React__namespace.default.createElement(Button, { cx: css$o[`navigation-size-${(_a = params.size) !== null && _a !== void 0 ? _a : '30'}`], size: params.size, icon: params.size === '30' ? ForwardRef$B : ForwardRef$g, onClick: params.goToPrev, isDisabled: params.isFirst, mode: "outline", color: "secondary" }),
|
|
2470
2772
|
params.pages.map((page, index) => {
|
|
2471
2773
|
var _a, _b;
|
|
2472
2774
|
if (page.type === 'spacer') {
|
|
2473
|
-
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$
|
|
2775
|
+
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$o[`size-${(_a = params.size) !== null && _a !== void 0 ? _a : '30'}`], css$o.spacer), size: params.size, key: `${index}_spacer`, caption: "...", mode: "ghost", color: "secondary", tabIndex: -1 }));
|
|
2474
2776
|
}
|
|
2475
2777
|
else {
|
|
2476
|
-
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$
|
|
2778
|
+
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$o[`size-${(_b = params.size) !== null && _b !== void 0 ? _b : '30'}`], css$o[`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" }));
|
|
2477
2779
|
}
|
|
2478
2780
|
}),
|
|
2479
|
-
React__namespace.default.createElement(Button, { cx: css$
|
|
2781
|
+
React__namespace.default.createElement(Button, { cx: css$o[`navigation-size-${(_b = params.size) !== null && _b !== void 0 ? _b : '30'}`], size: params.size, icon: params.size === '30' ? ForwardRef$A : ForwardRef$f, onClick: params.goToNext, isDisabled: params.isLast, mode: "outline", color: "secondary" })));
|
|
2480
2782
|
};
|
|
2481
2783
|
return React__namespace.default.createElement(uuiComponents.Paginator, Object.assign({}, props, { render: renderPaginator }));
|
|
2482
2784
|
}
|
|
@@ -2484,15 +2786,15 @@ function Paginator(props) {
|
|
|
2484
2786
|
const MAX_ITEMS = 100;
|
|
2485
2787
|
const getMaxItems = (maxItems) => maxItems || maxItems === 0 ? maxItems : MAX_ITEMS;
|
|
2486
2788
|
|
|
2487
|
-
var css$
|
|
2789
|
+
var css$n = {"root":"zaJcLR","mode-form":"GLv2id","mode-cell":"UrsZiK","mode-inline":"_4jlNsY","size-24":"g10eQ4","size-30":"nIVbgv","size-36":"_2TAIms","size-42":"miafml","size-48":"gZvySS","modeForm":"GLv2id","modeCell":"UrsZiK","modeInline":"_4jlNsY","size24":"g10eQ4","size30":"nIVbgv","size36":"_2TAIms","size42":"miafml","size48":"gZvySS"};
|
|
2488
2790
|
|
|
2489
2791
|
const defaultSize$2 = '36';
|
|
2490
2792
|
const defaultMode = exports.EditMode.FORM;
|
|
2491
2793
|
function applyPickerTogglerMods(mods) {
|
|
2492
2794
|
return [
|
|
2493
|
-
css$
|
|
2494
|
-
css$
|
|
2495
|
-
css$
|
|
2795
|
+
css$n.root,
|
|
2796
|
+
css$n['size-' + (mods.size || defaultSize$2)],
|
|
2797
|
+
css$n['mode-' + (mods.mode || defaultMode)],
|
|
2496
2798
|
];
|
|
2497
2799
|
}
|
|
2498
2800
|
function PickerTogglerComponent(props, ref) {
|
|
@@ -2534,7 +2836,74 @@ function PickerTogglerComponent(props, ref) {
|
|
|
2534
2836
|
}
|
|
2535
2837
|
const PickerToggler = React__namespace.forwardRef(PickerTogglerComponent);
|
|
2536
2838
|
|
|
2537
|
-
var css$
|
|
2839
|
+
var css$m = {"root":"_5a2qra","multiline-vertical-padding-24":"QXral7","multiline-vertical-padding-30":"p9YtXn","multiline-vertical-padding-36":"FzKiHJ","multiline-vertical-padding-42":"xO59zQ","multiline-vertical-padding-48":"e0XRIj","text":"_5Q1Rll","multilineVerticalPadding24":"QXral7","multilineVerticalPadding30":"p9YtXn","multilineVerticalPadding36":"FzKiHJ","multilineVerticalPadding42":"xO59zQ","multilineVerticalPadding48":"e0XRIj"};
|
|
2840
|
+
|
|
2841
|
+
var css$l = {"highlighted-text":"KiHlg-","highlightedText":"KiHlg-"};
|
|
2842
|
+
|
|
2843
|
+
const mergeHighlightRanges = (ranges) => {
|
|
2844
|
+
const mergedRanges = [];
|
|
2845
|
+
ranges.forEach((range) => {
|
|
2846
|
+
if (!mergedRanges.length) {
|
|
2847
|
+
mergedRanges.push(Object.assign(Object.assign({}, range), { isHighlighted: true }));
|
|
2848
|
+
}
|
|
2849
|
+
const lastRange = mergedRanges[mergedRanges.length - 1];
|
|
2850
|
+
if (range.from >= lastRange.from && range.from <= lastRange.to && range.to > lastRange.to) {
|
|
2851
|
+
lastRange.to = range.to;
|
|
2852
|
+
}
|
|
2853
|
+
if (lastRange.to < range.from) {
|
|
2854
|
+
mergedRanges.push(Object.assign(Object.assign({}, range), { isHighlighted: true }));
|
|
2855
|
+
}
|
|
2856
|
+
});
|
|
2857
|
+
return mergedRanges;
|
|
2858
|
+
};
|
|
2859
|
+
const addNotHighlightedRanges = (ranges, str) => {
|
|
2860
|
+
const allRanges = [];
|
|
2861
|
+
ranges.forEach((range, index) => {
|
|
2862
|
+
if (index === 0 && range.from !== 0) {
|
|
2863
|
+
allRanges.push({ from: 0, to: range.from, isHighlighted: false });
|
|
2864
|
+
}
|
|
2865
|
+
const prevRange = ranges[index - 1];
|
|
2866
|
+
if (prevRange && prevRange.to < range.from) {
|
|
2867
|
+
allRanges.push({ from: prevRange.to, to: range.from, isHighlighted: false });
|
|
2868
|
+
}
|
|
2869
|
+
allRanges.push(range);
|
|
2870
|
+
const lastIndex = ranges.length - 1;
|
|
2871
|
+
if (index === lastIndex && range.to < str.length) {
|
|
2872
|
+
allRanges.push({ from: range.to, to: str.length, isHighlighted: false });
|
|
2873
|
+
}
|
|
2874
|
+
});
|
|
2875
|
+
return allRanges;
|
|
2876
|
+
};
|
|
2877
|
+
const getHighlightRanges = (str, search) => {
|
|
2878
|
+
const words = search
|
|
2879
|
+
.split(' ')
|
|
2880
|
+
.filter(Boolean)
|
|
2881
|
+
.map((word) => word.trim().replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&')) // esape regex characters inside the string
|
|
2882
|
+
.map((word) => new RegExp(word, 'ig'));
|
|
2883
|
+
const matches = words.flatMap((word) => [...str.matchAll(word)]);
|
|
2884
|
+
const ranges = matches
|
|
2885
|
+
.map((match) => ({ from: match.index, to: match[0].length + match.index, isHighlighted: true }))
|
|
2886
|
+
.sort((range1, range2) => range1.from - range2.from);
|
|
2887
|
+
if (!ranges) {
|
|
2888
|
+
return [];
|
|
2889
|
+
}
|
|
2890
|
+
const mergedRanges = mergeHighlightRanges(ranges);
|
|
2891
|
+
return addNotHighlightedRanges(mergedRanges, str);
|
|
2892
|
+
};
|
|
2893
|
+
const getDecoratedText = (str, ranges) => ranges.map((range, index) => {
|
|
2894
|
+
const rangeStr = str.substring(range.from, range.to);
|
|
2895
|
+
return (React__namespace.default.createElement("span", Object.assign({ key: `${rangeStr}-${index}` }, (range.isHighlighted ? { className: css$l.highlightedText } : {})), rangeStr));
|
|
2896
|
+
});
|
|
2897
|
+
const getHighlightedSearchMatches = (str, search) => {
|
|
2898
|
+
if (!search || !str) {
|
|
2899
|
+
return str;
|
|
2900
|
+
}
|
|
2901
|
+
const ranges = getHighlightRanges(str, search);
|
|
2902
|
+
if (!ranges.length) {
|
|
2903
|
+
return str;
|
|
2904
|
+
}
|
|
2905
|
+
return getDecoratedText(str, ranges);
|
|
2906
|
+
};
|
|
2538
2907
|
|
|
2539
2908
|
const defaultSize$1 = '36';
|
|
2540
2909
|
class PickerItem extends React__namespace.Component {
|
|
@@ -2545,20 +2914,27 @@ class PickerItem extends React__namespace.Component {
|
|
|
2545
2914
|
};
|
|
2546
2915
|
}
|
|
2547
2916
|
render() {
|
|
2548
|
-
|
|
2917
|
+
var _a;
|
|
2918
|
+
const { size, avatarUrl, isLoading, isDisabled, icon, highlightSearchMatches, } = this.props;
|
|
2549
2919
|
const itemSize = size && size !== 'none' ? size : defaultSize$1;
|
|
2550
|
-
const isMultiline = !!(title && subtitle);
|
|
2551
|
-
|
|
2552
|
-
|
|
2920
|
+
const isMultiline = !!(this.props.title && this.props.subtitle);
|
|
2921
|
+
const { search } = (_a = this.props.dataSourceState) !== null && _a !== void 0 ? _a : {};
|
|
2922
|
+
const title = highlightSearchMatches ? getHighlightedSearchMatches(this.props.title, search) : this.props.title;
|
|
2923
|
+
const subtitle = highlightSearchMatches ? getHighlightedSearchMatches(this.props.subtitle, search) : this.props.subtitle;
|
|
2924
|
+
return (React__namespace.createElement(FlexCell, { width: "auto", cx: css$m.root },
|
|
2925
|
+
React__namespace.createElement(FlexRow, { size: itemSize, cx: isMultiline && css$m[`multiline-vertical-padding-${itemSize}`], spacing: "12" },
|
|
2553
2926
|
avatarUrl && React__namespace.createElement(Avatar, { isLoading: isLoading, img: avatarUrl, size: this.getAvatarSize(itemSize, isMultiline).toString() }),
|
|
2554
2927
|
icon && React__namespace.createElement(uuiComponents.IconContainer, { icon: icon }),
|
|
2555
2928
|
React__namespace.createElement(FlexCell, { width: "auto" },
|
|
2556
|
-
title && (React__namespace.createElement(Text, { size: itemSize, cx: css$
|
|
2557
|
-
subtitle && (React__namespace.createElement(Text, { size: itemSize, color: isDisabled ? 'disabled' : 'secondary', cx: css$
|
|
2929
|
+
title && (React__namespace.createElement(Text, { size: itemSize, cx: css$m.text, color: isDisabled ? 'disabled' : 'primary' }, isLoading ? React__namespace.createElement(TextPlaceholder, { wordsCount: 2 }) : title)),
|
|
2930
|
+
subtitle && (React__namespace.createElement(Text, { size: itemSize, color: isDisabled ? 'disabled' : 'secondary', cx: css$m.text }, isLoading ? React__namespace.createElement(TextPlaceholder, { wordsCount: 2 }) : subtitle))))));
|
|
2558
2931
|
}
|
|
2559
2932
|
}
|
|
2933
|
+
PickerItem.defaultProps = {
|
|
2934
|
+
highlightSearchMatches: true,
|
|
2935
|
+
};
|
|
2560
2936
|
|
|
2561
|
-
var css$
|
|
2937
|
+
var css$k = {"panel":"_76eV3F","footer-wrapper":"dLVX7n","footer-size-24":"ghdfL3","footer-size-30":"RkfP11","footer-size-36":"om-lU1","footer-size-42":"mDl19f","footer-size-48":"iM5hB5","footerWrapper":"dLVX7n","footerSize24":"ghdfL3","footerSize30":"RkfP11","footerSize36":"om-lU1","footerSize42":"mDl19f","footerSize48":"iM5hB5"};
|
|
2562
2938
|
|
|
2563
2939
|
const pickerHeight$1 = 300;
|
|
2564
2940
|
const pickerWidth$1 = 360;
|
|
@@ -2566,7 +2942,8 @@ class PickerInput extends uuiComponents.PickerInputBase {
|
|
|
2566
2942
|
constructor() {
|
|
2567
2943
|
super(...arguments);
|
|
2568
2944
|
this.renderItem = (item, rowProps) => {
|
|
2569
|
-
|
|
2945
|
+
var _a;
|
|
2946
|
+
return (React__namespace.default.createElement(PickerItem, Object.assign({ title: this.getName(item), size: this.getRowSize(), dataSourceState: this.state.dataSourceState, highlightSearchMatches: (_a = this.props.highlightSearchMatches) !== null && _a !== void 0 ? _a : true }, rowProps)));
|
|
2570
2947
|
};
|
|
2571
2948
|
this.renderRow = (rowProps) => {
|
|
2572
2949
|
return this.props.renderRow ? (this.props.renderRow(rowProps, this.state.dataSourceState)) : (React__namespace.default.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey, borderBottom: "none", size: this.getRowSize(), padding: this.props.editMode === 'modal' ? '24' : '12', renderItem: this.renderItem })));
|
|
@@ -2609,7 +2986,7 @@ class PickerInput extends uuiComponents.PickerInputBase {
|
|
|
2609
2986
|
const maxHeight = uuiCore.isMobile() ? document.documentElement.clientHeight : this.props.dropdownHeight || pickerHeight$1;
|
|
2610
2987
|
const minBodyWidth = uuiCore.isMobile() ? document.documentElement.clientWidth : this.props.minBodyWidth || pickerWidth$1;
|
|
2611
2988
|
return (React__namespace.default.createElement(Panel, { style: { width: props.togglerWidth > minBodyWidth ? props.togglerWidth : minBodyWidth }, rawProps: { tabIndex: -1 }, cx: [
|
|
2612
|
-
css$
|
|
2989
|
+
css$k.panel, uuiCore.uuiMarkers.lockFocus, this.props.bodyCx,
|
|
2613
2990
|
] },
|
|
2614
2991
|
React__namespace.default.createElement(MobileDropdownWrapper, { title: this.props.entityName, close: () => {
|
|
2615
2992
|
this.returnFocusToInput();
|
|
@@ -2625,7 +3002,7 @@ class PickerInput extends uuiComponents.PickerInputBase {
|
|
|
2625
3002
|
}
|
|
2626
3003
|
}
|
|
2627
3004
|
|
|
2628
|
-
var css$
|
|
3005
|
+
var css$j = {"row":"X01tFd"};
|
|
2629
3006
|
|
|
2630
3007
|
class PickerListItem extends React__namespace.default.Component {
|
|
2631
3008
|
render() {
|
|
@@ -2643,7 +3020,7 @@ class PickerListItem extends React__namespace.default.Component {
|
|
|
2643
3020
|
else {
|
|
2644
3021
|
component = (React__namespace.default.createElement(RadioInput, { label: label, value: this.props.isSelected, isDisabled: this.props.isLoading || !this.props.isSelectable || this.props.isDisabled, onValueChange: () => this.props.onSelect(this.props) }));
|
|
2645
3022
|
}
|
|
2646
|
-
return React__namespace.default.createElement("div", { className: css$
|
|
3023
|
+
return React__namespace.default.createElement("div", { className: css$j.row }, component);
|
|
2647
3024
|
}
|
|
2648
3025
|
}
|
|
2649
3026
|
|
|
@@ -2686,22 +3063,7 @@ class PickerList extends uuiComponents.PickerListBase {
|
|
|
2686
3063
|
}
|
|
2687
3064
|
PickerList.contextType = uuiCore.UuiContext;
|
|
2688
3065
|
|
|
2689
|
-
var
|
|
2690
|
-
|
|
2691
|
-
function getDefaultExportFromCjs (x) {
|
|
2692
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
2693
|
-
}
|
|
2694
|
-
|
|
2695
|
-
var dayjs_min = {exports: {}};
|
|
2696
|
-
|
|
2697
|
-
(function (module, exports) {
|
|
2698
|
-
!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}));
|
|
2699
|
-
} (dayjs_min));
|
|
2700
|
-
|
|
2701
|
-
var dayjs_minExports = dayjs_min.exports;
|
|
2702
|
-
var dayjs = /*@__PURE__*/getDefaultExportFromCjs(dayjs_minExports);
|
|
2703
|
-
|
|
2704
|
-
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"};
|
|
3066
|
+
var css$i = {"root":"Jyw9gm","title-wrapper":"GtHTwK","title":"YFB6-x","text-wrapper":"LKBWJP","selection":"_9HMfaW","postfix":"RbBwvf","selected":"_1vAzM7","titleWrapper":"GtHTwK","textWrapper":"LKBWJP"};
|
|
2705
3067
|
|
|
2706
3068
|
const defaultSize = '36';
|
|
2707
3069
|
const FilterPanelItemToggler = React__namespace.forwardRef((props, ref) => {
|
|
@@ -2713,15 +3075,18 @@ const FilterPanelItemToggler = React__namespace.forwardRef((props, ref) => {
|
|
|
2713
3075
|
(_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
2714
3076
|
};
|
|
2715
3077
|
const getTitle = props.predicateName ? `${props.title} ${props.predicateName}` : `${props.title}${props.selection ? ':' : ''}`;
|
|
3078
|
+
const getSelectionText = () => props.selection.map((i, index) => (React__namespace.createElement(React__namespace.Fragment, null,
|
|
3079
|
+
React__namespace.createElement(Text, { key: index, color: "brand", size: props.size, cx: css$i.selection }, i),
|
|
3080
|
+
(props.postfix || index !== props.selection.length - 1) && React__namespace.createElement("span", null, ",\u00A0"))));
|
|
2716
3081
|
return (React__namespace.createElement(uuiComponents.FlexRow, Object.assign({}, props, { rawProps: {
|
|
2717
3082
|
style: { maxWidth: `${props.maxWidth ? props.maxWidth + 'px' : 'auto'}` },
|
|
2718
3083
|
role: 'button',
|
|
2719
|
-
}, cx: cx__default.default(css$
|
|
2720
|
-
React__namespace.createElement(uuiComponents.FlexRow, { cx: css$
|
|
2721
|
-
React__namespace.createElement(Text, { size: props.size, cx: css$
|
|
2722
|
-
props.selection && (React__namespace.createElement("div", { className: css$
|
|
2723
|
-
|
|
2724
|
-
props.postfix && (React__namespace.createElement(Text, { color: "brand", size: props.size, cx: css$
|
|
3084
|
+
}, cx: cx__default.default(css$i.root, uuiCore.uuiElement.inputBox, uuiCore.uuiMarkers.clickable, props.isOpen && uuiCore.uuiMod.opened, ['size-' + (props.size || defaultSize)], props.cx), onClick: togglerPickerOpened, ref: ref }),
|
|
3085
|
+
React__namespace.createElement(uuiComponents.FlexRow, { cx: css$i.titleWrapper },
|
|
3086
|
+
React__namespace.createElement(Text, { size: props.size, cx: css$i.title }, getTitle),
|
|
3087
|
+
props.selection && (React__namespace.createElement("div", { className: css$i.textWrapper },
|
|
3088
|
+
getSelectionText(),
|
|
3089
|
+
props.postfix && (React__namespace.createElement(Text, { color: "brand", size: props.size, cx: css$i.postfix }, props.postfix))))),
|
|
2725
3090
|
!props.isDisabled && React__namespace.createElement(uuiComponents.IconContainer, { icon: systemIcons[props.size || defaultSize].foldingArrow, flipY: props.isOpen, cx: "uui-icon-dropdown" })));
|
|
2726
3091
|
});
|
|
2727
3092
|
|
|
@@ -2792,7 +3157,7 @@ class FilterDatePickerBody extends uuiComponents.BaseDatePicker {
|
|
|
2792
3157
|
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 })),
|
|
2793
3158
|
React__namespace.default.createElement(FlexCell, { alignSelf: "stretch" },
|
|
2794
3159
|
React__namespace.default.createElement(FlexRow, { padding: "24", vPadding: "12" },
|
|
2795
|
-
React__namespace.default.createElement(Text, null, this.state.selectedDate ?
|
|
3160
|
+
React__namespace.default.createElement(Text, null, this.state.selectedDate ? dayjs__default.default(this.state.selectedDate).format('MMM DD, YYYY') : ''),
|
|
2796
3161
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
2797
3162
|
React__namespace.default.createElement(LinkButton, { isDisabled: !this.state.selectedDate, caption: i18n.filterToolbar.datePicker.clearCaption, onClick: this.handleCancel })))));
|
|
2798
3163
|
}
|
|
@@ -2801,12 +3166,16 @@ class FilterDatePickerBody extends uuiComponents.BaseDatePicker {
|
|
|
2801
3166
|
}
|
|
2802
3167
|
}
|
|
2803
3168
|
|
|
2804
|
-
var css$
|
|
3169
|
+
var css$h = {"date-input":"-ecBzI","size-24":"pwnnti","size-30":"q-fs4F","size-36":"ylkDl9","size-42":"_3sNjn6","size-48":"y9Ec40","date-input-group":"xgM-N-","separator":"G4xUC5","mode-form":"OcfLDo","mode-cell":"MEBVvi","dateInput":"-ecBzI","size24":"pwnnti","size30":"q-fs4F","size36":"ylkDl9","size42":"_3sNjn6","size48":"y9Ec40","dateInputGroup":"xgM-N-","modeForm":"OcfLDo","modeCell":"MEBVvi"};
|
|
2805
3170
|
|
|
2806
3171
|
class FilterRangeDatePickerBody extends uuiComponents.BaseRangeDatePicker {
|
|
2807
3172
|
constructor() {
|
|
2808
3173
|
super(...arguments);
|
|
2809
3174
|
this.state = Object.assign(Object.assign({}, super.getInitialState()), { inFocus: 'from' });
|
|
3175
|
+
this.changeIsOpen = (open) => {
|
|
3176
|
+
this.toggleOpening(open);
|
|
3177
|
+
this.props.onClose();
|
|
3178
|
+
};
|
|
2810
3179
|
this.renderInput = () => {
|
|
2811
3180
|
return null;
|
|
2812
3181
|
};
|
|
@@ -2814,13 +3183,13 @@ class FilterRangeDatePickerBody extends uuiComponents.BaseRangeDatePicker {
|
|
|
2814
3183
|
renderBody() {
|
|
2815
3184
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
2816
3185
|
React__namespace.createElement(FlexRow, { borderBottom: true },
|
|
2817
|
-
React__namespace.createElement(RangeDatePickerBody, { value: this.getValue(), onValueChange: this.onRangeChange, filter: this.props.filter, focusPart: this.state.inFocus, changeIsOpen: this.
|
|
3186
|
+
React__namespace.createElement(RangeDatePickerBody, { value: this.getValue(), onValueChange: this.onRangeChange, filter: this.props.filter, focusPart: this.state.inFocus, changeIsOpen: this.changeIsOpen, presets: this.props.presets })),
|
|
2818
3187
|
React__namespace.createElement(FlexCell, { alignSelf: "stretch" },
|
|
2819
3188
|
React__namespace.createElement(FlexRow, { padding: "24", vPadding: "12" },
|
|
2820
|
-
React__namespace.createElement("div", { className: cx__default.default(css$
|
|
2821
|
-
React__namespace.createElement(TextInput, { icon: systemIcons['30'].calendar, cx: cx__default.default(css$
|
|
2822
|
-
React__namespace.createElement("div", { className: css$
|
|
2823
|
-
React__namespace.createElement(TextInput, { cx: cx__default.default(css$
|
|
3189
|
+
React__namespace.createElement("div", { className: cx__default.default(css$h.dateInputGroup, this.state.inFocus && uuiCore.uuiMod.focus) },
|
|
3190
|
+
React__namespace.createElement(TextInput, { icon: systemIcons['30'].calendar, cx: cx__default.default(css$h.dateInput, css$h['size-30'], this.state.inFocus === 'from' && uuiCore.uuiMod.focus), size: "30", placeholder: i18n.rangeDatePicker.pickerPlaceholderFrom, value: this.state.inputValue.from, onValueChange: this.getChangeHandler('from'), onFocus: (event) => this.handleFocus(event, 'from'), onBlur: (event) => this.handleBlur(event, 'from') }),
|
|
3191
|
+
React__namespace.createElement("div", { className: css$h.separator }),
|
|
3192
|
+
React__namespace.createElement(TextInput, { cx: cx__default.default(css$h.dateInput, css$h['size-30'], this.state.inFocus === 'to' && uuiCore.uuiMod.focus), placeholder: i18n.rangeDatePicker.pickerPlaceholderTo, size: "30", value: this.state.inputValue.to, onCancel: this.state.inputValue.from && this.state.inputValue.to && this.handleCancel, onValueChange: this.getChangeHandler('to'), onFocus: (event) => this.handleFocus(event, 'to'), onBlur: (event) => this.handleBlur(event, 'to') })),
|
|
2824
3193
|
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
2825
3194
|
React__namespace.createElement(LinkButton, { isDisabled: !this.state.inputValue.from && !this.state.inputValue.to, caption: i18n.pickerModal.clearAllButton, onClick: this.handleCancel })))));
|
|
2826
3195
|
}
|
|
@@ -2829,6 +3198,8 @@ class FilterRangeDatePickerBody extends uuiComponents.BaseRangeDatePicker {
|
|
|
2829
3198
|
}
|
|
2830
3199
|
}
|
|
2831
3200
|
|
|
3201
|
+
var css$g = {"container":"F1W-1y"};
|
|
3202
|
+
|
|
2832
3203
|
function FilterNumericBody(props) {
|
|
2833
3204
|
var _a, _b;
|
|
2834
3205
|
const isInRangePredicate = (props === null || props === void 0 ? void 0 : props.selectedPredicate) === 'inRange' || (props === null || props === void 0 ? void 0 : props.selectedPredicate) === 'notInRange';
|
|
@@ -2871,7 +3242,7 @@ function FilterNumericBody(props) {
|
|
|
2871
3242
|
if (isInRangePredicate) {
|
|
2872
3243
|
const value = props.value;
|
|
2873
3244
|
return (React__namespace.default.createElement("div", null,
|
|
2874
|
-
React__namespace.default.createElement(FlexRow, { padding: "12",
|
|
3245
|
+
React__namespace.default.createElement(FlexRow, { padding: "12", alignItems: "center", spacing: "12", borderBottom: true, cx: css$g.container },
|
|
2875
3246
|
React__namespace.default.createElement(FlexCell, { width: "100%" },
|
|
2876
3247
|
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 } })),
|
|
2877
3248
|
React__namespace.default.createElement(FlexCell, { width: "100%" },
|
|
@@ -2879,7 +3250,7 @@ function FilterNumericBody(props) {
|
|
|
2879
3250
|
renderFooter()));
|
|
2880
3251
|
}
|
|
2881
3252
|
return (React__namespace.default.createElement("div", null,
|
|
2882
|
-
React__namespace.default.createElement(FlexRow, { padding: "12",
|
|
3253
|
+
React__namespace.default.createElement(FlexRow, { padding: "12", alignItems: "center", borderBottom: true, cx: css$g.container },
|
|
2883
3254
|
React__namespace.default.createElement(FlexCell, { width: 130 },
|
|
2884
3255
|
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 } }))),
|
|
2885
3256
|
renderFooter()));
|
|
@@ -2916,9 +3287,10 @@ var SvgActionDeleteforever12 = function SvgActionDeleteforever12(props, ref) {
|
|
|
2916
3287
|
};
|
|
2917
3288
|
var ForwardRef$e = /*#__PURE__*/React.forwardRef(SvgActionDeleteforever12);
|
|
2918
3289
|
|
|
2919
|
-
var css$f = {"header":"
|
|
3290
|
+
var css$f = {"header":"jRIFsI","removeButton":"mLf7Zx","with-search":"mSZHMj","panel":"sKiDnb","withSearch":"mSZHMj"};
|
|
2920
3291
|
|
|
2921
3292
|
function FiltersToolbarItemImpl(props) {
|
|
3293
|
+
const { maxCount = 2 } = props;
|
|
2922
3294
|
const isPickersType = (props === null || props === void 0 ? void 0 : props.type) === 'multiPicker' || (props === null || props === void 0 ? void 0 : props.type) === 'singlePicker';
|
|
2923
3295
|
const isMobileScreen = uuiCore.isMobile();
|
|
2924
3296
|
const popperModifiers = React.useMemo(() => {
|
|
@@ -3023,53 +3395,52 @@ function FiltersToolbarItemImpl(props) {
|
|
|
3023
3395
|
switch (props.type) {
|
|
3024
3396
|
case 'multiPicker': {
|
|
3025
3397
|
const view = props.dataSource.getView({}, forceUpdate);
|
|
3026
|
-
const postfix = (currentValue === null || currentValue === void 0 ? void 0 : currentValue.length) > 2 ? ` +${(currentValue.length - 2).toString()} ${i18n.filterToolbar.pickerInput.itemsPlaceholder}` : null;
|
|
3027
3398
|
let isLoading = false;
|
|
3028
3399
|
const selection = currentValue
|
|
3029
|
-
? currentValue === null || currentValue === void 0 ? void 0 : currentValue.slice(0,
|
|
3400
|
+
? currentValue === null || currentValue === void 0 ? void 0 : currentValue.slice(0, maxCount).map((i) => {
|
|
3030
3401
|
const item = view.getById(i, null);
|
|
3031
3402
|
isLoading = item.isLoading;
|
|
3032
3403
|
return getPickerItemName(item, props);
|
|
3033
3404
|
})
|
|
3034
|
-
:
|
|
3035
|
-
const
|
|
3036
|
-
return { selection
|
|
3405
|
+
: currentValue;
|
|
3406
|
+
const postfix = (!isLoading && (currentValue === null || currentValue === void 0 ? void 0 : currentValue.length) > maxCount) ? ` +${(currentValue.length - maxCount).toString()} ${i18n.filterToolbar.pickerInput.itemsPlaceholder}` : null;
|
|
3407
|
+
return { selection, postfix };
|
|
3037
3408
|
}
|
|
3038
3409
|
case 'numeric': {
|
|
3039
3410
|
const isRangePredicate = predicate === 'inRange' || predicate === 'notInRange';
|
|
3040
3411
|
const decimalFormat = (val) => uuiCore.getSeparatedValue(val, { maximumFractionDigits: 2 });
|
|
3041
3412
|
if ((isRangePredicate && !currentValue) || (!isRangePredicate && !currentValue && currentValue !== 0)) {
|
|
3042
|
-
return { selection:
|
|
3413
|
+
return { selection: undefined };
|
|
3043
3414
|
}
|
|
3044
3415
|
const selection = isRangePredicate
|
|
3045
3416
|
? `${!(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)}`
|
|
3046
3417
|
: `${!currentValue && currentValue !== 0 ? 'ALL' : decimalFormat(currentValue)}`;
|
|
3047
|
-
return { selection };
|
|
3418
|
+
return { selection: [selection] };
|
|
3048
3419
|
}
|
|
3049
3420
|
case 'singlePicker': {
|
|
3050
3421
|
const view = props.dataSource.getView({}, forceUpdate);
|
|
3051
3422
|
if (currentValue === null || currentValue === undefined) {
|
|
3052
|
-
return { selection:
|
|
3423
|
+
return { selection: undefined };
|
|
3053
3424
|
}
|
|
3054
3425
|
const item = view.getById(currentValue, null);
|
|
3055
3426
|
const selection = getPickerItemName(item, props);
|
|
3056
|
-
return { selection };
|
|
3427
|
+
return { selection: [selection] };
|
|
3057
3428
|
}
|
|
3058
3429
|
case 'datePicker': {
|
|
3059
|
-
return { selection: currentValue ?
|
|
3430
|
+
return { selection: currentValue ? [dayjs__default.default(currentValue).format(props.format || defaultFormat)] : currentValue };
|
|
3060
3431
|
}
|
|
3061
3432
|
case 'rangeDatePicker': {
|
|
3062
3433
|
if (!currentValue || (!currentValue.from && !currentValue.to)) {
|
|
3063
|
-
return { selection:
|
|
3434
|
+
return { selection: undefined };
|
|
3064
3435
|
}
|
|
3065
3436
|
const currentValueFrom = (currentValue === null || currentValue === void 0 ? void 0 : currentValue.from)
|
|
3066
|
-
?
|
|
3437
|
+
? dayjs__default.default(currentValue === null || currentValue === void 0 ? void 0 : currentValue.from).format(props.format || defaultFormat)
|
|
3067
3438
|
: i18n.filterToolbar.rangeDatePicker.emptyPlaceholderFrom;
|
|
3068
3439
|
const currentValueTo = (currentValue === null || currentValue === void 0 ? void 0 : currentValue.to)
|
|
3069
|
-
?
|
|
3440
|
+
? dayjs__default.default(currentValue === null || currentValue === void 0 ? void 0 : currentValue.to).format(props.format || defaultFormat)
|
|
3070
3441
|
: i18n.filterToolbar.rangeDatePicker.emptyPlaceholderTo;
|
|
3071
3442
|
const selection = `${currentValueFrom} - ${currentValueTo}`;
|
|
3072
|
-
return { selection };
|
|
3443
|
+
return { selection: [selection] };
|
|
3073
3444
|
}
|
|
3074
3445
|
}
|
|
3075
3446
|
};
|
|
@@ -3206,9 +3577,9 @@ function FiltersToolbarImpl(props) {
|
|
|
3206
3577
|
}
|
|
3207
3578
|
const FiltersPanel = React__namespace.default.memo(FiltersToolbarImpl);
|
|
3208
3579
|
|
|
3209
|
-
var css$e = {"divider":"
|
|
3580
|
+
var css$e = {"divider":"MDnNWz","dropdownDeleteIcon":"Vd3PlN","presetsWrapper":"jYiW9G","addPresetContainer":"xLidLo","dropContainer":"tFbLLz"};
|
|
3210
3581
|
|
|
3211
|
-
var css$d = {"preset-dropdown-panel":"
|
|
3582
|
+
var css$d = {"preset-dropdown-panel":"c2EfyR","delete-row":"Flkvfl","delete-button":"OKERxk","targetOpen":"W5YKAD","presetDropdownPanel":"c2EfyR","deleteRow":"Flkvfl","deleteButton":"OKERxk"};
|
|
3212
3583
|
|
|
3213
3584
|
var _path$b;
|
|
3214
3585
|
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); }
|
|
@@ -3348,7 +3719,7 @@ function PresetActionsDropdown(props) {
|
|
|
3348
3719
|
return (React__namespace.default.createElement(Panel, { shadow: true, cx: css$d.presetDropdownPanel },
|
|
3349
3720
|
props.activePresetId === props.preset.id && props.hasPresetChanged(props.preset) && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
3350
3721
|
!isReadonlyPreset && (React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-save-in-current` },
|
|
3351
|
-
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$
|
|
3722
|
+
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$o, caption: "Save in current", onClick: saveInCurrentHandler }))),
|
|
3352
3723
|
React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-save-as-new` },
|
|
3353
3724
|
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$c, caption: "Save as new", onClick: props.addPreset })),
|
|
3354
3725
|
React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-discard`, borderBottom: true },
|
|
@@ -3363,12 +3734,12 @@ function PresetActionsDropdown(props) {
|
|
|
3363
3734
|
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$7, caption: "Delete", cx: css$d.deleteButton, onClick: deleteHandler })))));
|
|
3364
3735
|
};
|
|
3365
3736
|
const renderTarget = React.useCallback((dropdownProps) => {
|
|
3366
|
-
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$
|
|
3737
|
+
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$p })));
|
|
3367
3738
|
}, []);
|
|
3368
3739
|
return (React__namespace.default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end", modifiers: [{ name: 'offset', options: { offset: [0, 22] } }] }));
|
|
3369
3740
|
}
|
|
3370
3741
|
|
|
3371
|
-
var css$c = {"preset-input-cell":"
|
|
3742
|
+
var css$c = {"preset-input-cell":"vUxmY-","preset-input":"Q2zG4D","presetInputCell":"vUxmY-","presetInput":"Q2zG4D"};
|
|
3372
3743
|
|
|
3373
3744
|
function PresetInput(props) {
|
|
3374
3745
|
var _a;
|
|
@@ -3393,7 +3764,7 @@ function PresetInput(props) {
|
|
|
3393
3764
|
React__namespace.default.createElement(TextInput, { cx: css$c.presetInput, onValueChange: setPresetCaption, value: presetCaption, onCancel: cancelActionHandler, onAccept: acceptActionHandler, onBlur: newPresetOnBlurHandler, autoFocus: true, maxLength: 50 })));
|
|
3394
3765
|
}
|
|
3395
3766
|
|
|
3396
|
-
var css$b = {"preset":"
|
|
3767
|
+
var css$b = {"preset":"LkHKYv","activePreset":"X5qfz4"};
|
|
3397
3768
|
|
|
3398
3769
|
function Preset(props) {
|
|
3399
3770
|
const [isRenamePreset, setIsRenamePreset] = React.useState(false);
|
|
@@ -3481,19 +3852,13 @@ const defaultPredicates = {
|
|
|
3481
3852
|
rangeDatePicker: [{ predicate: 'inRange', name: 'In Range', isDefault: true }, { predicate: 'notInRange', name: 'Not in Range' }],
|
|
3482
3853
|
};
|
|
3483
3854
|
|
|
3484
|
-
var css$a = {"root":"
|
|
3855
|
+
var css$a = {"root":"ku9N6M"};
|
|
3485
3856
|
|
|
3486
|
-
|
|
3487
|
-
return [css$a.root];
|
|
3488
|
-
}
|
|
3489
|
-
const MainMenu = uuiCore.withMods(uuiComponents.MainMenu, applyMainMenuMods, () => ({
|
|
3490
|
-
Burger,
|
|
3491
|
-
MainMenuDropdown,
|
|
3492
|
-
}));
|
|
3857
|
+
var css$9 = {"root":"_1Eu1XE","burger-content":"HArkk-","burgerContent":"HArkk-"};
|
|
3493
3858
|
|
|
3494
3859
|
var _path$4;
|
|
3495
3860
|
function _extends$5() { _extends$5 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
|
|
3496
|
-
var
|
|
3861
|
+
var SvgBurger = function SvgBurger(props, ref) {
|
|
3497
3862
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
|
|
3498
3863
|
width: 60,
|
|
3499
3864
|
height: 60,
|
|
@@ -3501,62 +3866,39 @@ var SvgGlobalMenu = function SvgGlobalMenu(props, ref) {
|
|
|
3501
3866
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3502
3867
|
ref: ref
|
|
3503
3868
|
}, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3504
|
-
|
|
3505
|
-
d: "M12 11.2a.8.8 0 1 1-.8.8.8.8 0 0 1 .8-.8zm3.2 0a.8.8 0 1 1-.8.8.802.802 0 0 1 .8-.8zm-6.4 0a.8.8 0 1 1-.8.8.8.8 0 0 1 .8-.8zM12 7.6a.8.8 0 1 1-.8.8.8.8 0 0 1 .8-.8zm3.2 0a.8.8 0 1 1-.8.8.802.802 0 0 1 .8-.8zm-6.4 0a.8.8 0 1 1-.8.8.8.8 0 0 1 .8-.8zm3.2 7.2a.8.8 0 1 1-.8.8.8.8 0 0 1 .8-.8zm3.2 0a.8.8 0 1 1-.8.8.802.802 0 0 1 .8-.8zm-6.4 0a.8.8 0 1 1-.8.8.8.8 0 0 1 .8-.8z"
|
|
3869
|
+
d: "M8 9.2h8v.8H8zM8 14h6v.8H8zm0-2.4h8v.8H8z"
|
|
3506
3870
|
})));
|
|
3507
3871
|
};
|
|
3508
|
-
var ForwardRef$5 = /*#__PURE__*/React.forwardRef(
|
|
3509
|
-
|
|
3510
|
-
var css$9 = {"global-menu-btn":"GlobalMenu-module_global-menu-btn__VNGyq","globalMenuIcon":"GlobalMenu-module_globalMenuIcon__BTMLp","globalMenuBtn":"GlobalMenu-module_global-menu-btn__VNGyq"};
|
|
3511
|
-
|
|
3512
|
-
const GlobalMenu = React__namespace.forwardRef((props, ref) => (React__namespace.createElement("button", Object.assign({ ref: ref, id: "global_menu_toggle", className: cx__default.default(css$9.globalMenuBtn, props.cx) }, props.rawProps),
|
|
3513
|
-
React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$5, cx: css$9.globalMenuIcon }))));
|
|
3514
|
-
|
|
3515
|
-
var css$8 = {"root":"Burger-module_root__RyM45","burger-content":"Burger-module_burger-content__bbDNZ","burgerContent":"Burger-module_burger-content__bbDNZ"};
|
|
3872
|
+
var ForwardRef$5 = /*#__PURE__*/React.forwardRef(SvgBurger);
|
|
3516
3873
|
|
|
3517
3874
|
var _path$3;
|
|
3518
3875
|
function _extends$4() { _extends$4 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
|
|
3519
|
-
var SvgBurger = function SvgBurger(props, ref) {
|
|
3520
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
|
|
3521
|
-
width: 60,
|
|
3522
|
-
height: 60,
|
|
3523
|
-
viewBox: "0 0 24 24",
|
|
3524
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
3525
|
-
ref: ref
|
|
3526
|
-
}, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3527
|
-
d: "M8 9.2h8v.8H8zM8 14h6v.8H8zm0-2.4h8v.8H8z"
|
|
3528
|
-
})));
|
|
3529
|
-
};
|
|
3530
|
-
var ForwardRef$4 = /*#__PURE__*/React.forwardRef(SvgBurger);
|
|
3531
|
-
|
|
3532
|
-
var _path$2;
|
|
3533
|
-
function _extends$3() { _extends$3 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
|
|
3534
3876
|
var SvgBurgerClose = function SvgBurgerClose(props, ref) {
|
|
3535
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3877
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
|
|
3536
3878
|
width: 60,
|
|
3537
3879
|
height: 60,
|
|
3538
3880
|
viewBox: "0 0 60 60",
|
|
3539
3881
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3540
3882
|
ref: ref
|
|
3541
|
-
}, props), _path$
|
|
3883
|
+
}, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3542
3884
|
d: "M38.543 20 40 21.457 31.456 30 40 38.543 38.543 40 30 31.456 21.457 40 20 38.543 28.543 30 20 21.457 21.457 20 30 28.543 38.543 20Z"
|
|
3543
3885
|
})));
|
|
3544
3886
|
};
|
|
3545
|
-
var ForwardRef$
|
|
3887
|
+
var ForwardRef$4 = /*#__PURE__*/React.forwardRef(SvgBurgerClose);
|
|
3546
3888
|
|
|
3547
3889
|
function applyBurgerMods() {
|
|
3548
|
-
return [css$
|
|
3890
|
+
return [css$9.root];
|
|
3549
3891
|
}
|
|
3550
3892
|
const Burger = uuiCore.withMods(uuiComponents.Burger, applyBurgerMods, () => ({
|
|
3551
|
-
burgerIcon: ForwardRef$
|
|
3552
|
-
crossIcon: ForwardRef$
|
|
3553
|
-
burgerContentCx: css$
|
|
3893
|
+
burgerIcon: ForwardRef$5,
|
|
3894
|
+
crossIcon: ForwardRef$4,
|
|
3895
|
+
burgerContentCx: css$9.burgerContent,
|
|
3554
3896
|
}));
|
|
3555
3897
|
|
|
3556
|
-
var _g, _path$
|
|
3557
|
-
function _extends$
|
|
3898
|
+
var _g, _path$2;
|
|
3899
|
+
function _extends$3() { _extends$3 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
|
|
3558
3900
|
var SvgTriangle = function SvgTriangle(props, ref) {
|
|
3559
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3901
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
|
|
3560
3902
|
width: 12,
|
|
3561
3903
|
height: 24,
|
|
3562
3904
|
viewBox: "0 0 12 24",
|
|
@@ -3573,21 +3915,21 @@ var SvgTriangle = function SvgTriangle(props, ref) {
|
|
|
3573
3915
|
cx: 12,
|
|
3574
3916
|
cy: 302.65,
|
|
3575
3917
|
r: 18
|
|
3576
|
-
}))), _path$
|
|
3918
|
+
}))), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3577
3919
|
d: "m5 14-4-4h8z"
|
|
3578
3920
|
})));
|
|
3579
3921
|
};
|
|
3580
|
-
var ForwardRef$
|
|
3922
|
+
var ForwardRef$3 = /*#__PURE__*/React.forwardRef(SvgTriangle);
|
|
3581
3923
|
|
|
3582
|
-
var css$
|
|
3924
|
+
var css$8 = {"root":"zAjemh","button-primary":"pzY3LX","button-secondary":"c5TsnA","hasIcon":"_9gEwVf","dropdown":"TfhNho","buttonPrimary":"pzY3LX","buttonSecondary":"c5TsnA"};
|
|
3583
3925
|
|
|
3584
3926
|
const BurgerButton = uuiCore.withMods(uuiComponents.Button, (props) => [
|
|
3585
|
-
css$
|
|
3586
|
-
], () => ({ dropdownIcon: ForwardRef$
|
|
3927
|
+
css$8.root, css$8['button-' + (props.type || 'primary')], css$8['indent-' + (props.indentLevel || 0)], props.isDropdown && css$8.dropdown, props.icon && css$8.hasIcon,
|
|
3928
|
+
], () => ({ dropdownIcon: ForwardRef$3, dropdownIconPosition: 'left', role: 'menuitem' }));
|
|
3587
3929
|
|
|
3588
|
-
function _extends$
|
|
3930
|
+
function _extends$2() { _extends$2 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
|
|
3589
3931
|
var SvgMenuInputCancel = function SvgMenuInputCancel(props, ref) {
|
|
3590
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3932
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
|
|
3591
3933
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3592
3934
|
width: 18,
|
|
3593
3935
|
height: 24,
|
|
@@ -3629,67 +3971,48 @@ var SvgMenuInputCancel = function SvgMenuInputCancel(props, ref) {
|
|
|
3629
3971
|
transform: "matrix(3.77953 0 0 3.77953 -369 -648.52)"
|
|
3630
3972
|
})));
|
|
3631
3973
|
};
|
|
3632
|
-
var ForwardRef$
|
|
3974
|
+
var ForwardRef$2 = /*#__PURE__*/React.forwardRef(SvgMenuInputCancel);
|
|
3633
3975
|
|
|
3634
|
-
var css$
|
|
3976
|
+
var css$7 = {"search-input":"-A2C1p","searchInput":"-A2C1p"};
|
|
3635
3977
|
|
|
3636
3978
|
function BurgerSearch(props) {
|
|
3637
|
-
return (React__namespace.createElement(uuiComponents.TextInput, { cx: css$
|
|
3979
|
+
return (React__namespace.createElement(uuiComponents.TextInput, { cx: css$7.searchInput, iconPosition: "left", icon: ForwardRef$W, placeholder: props.placeholder, value: props.value, onValueChange: props.onValueChange, onCancel: props.onCancel, cancelIcon: props.value && ForwardRef$2, autoFocus: true }));
|
|
3638
3980
|
}
|
|
3639
3981
|
|
|
3640
|
-
var css$
|
|
3982
|
+
var css$6 = {"group-header":"mbhWD6","group-name":"EZhmB1","line":"iHRlJA","groupHeader":"mbhWD6","groupName":"EZhmB1"};
|
|
3641
3983
|
|
|
3642
3984
|
function BurgerGroupHeader(props) {
|
|
3643
|
-
return (React__namespace.createElement("div", { className: css$
|
|
3644
|
-
React__namespace.createElement("hr", { className: css$
|
|
3645
|
-
React__namespace.createElement("span", { className: css$
|
|
3985
|
+
return (React__namespace.createElement("div", { className: css$6.groupHeader },
|
|
3986
|
+
React__namespace.createElement("hr", { className: css$6.line }),
|
|
3987
|
+
React__namespace.createElement("span", { className: css$6.groupName }, props.caption)));
|
|
3646
3988
|
}
|
|
3647
3989
|
|
|
3648
|
-
var css$
|
|
3649
|
-
|
|
3650
|
-
const MainMenuAvatar = React__namespace.forwardRef((props, ref) => (React__namespace.createElement("button", { ref: ref, className: cx__default.default(css$4.container, props.isDropdown && css$4.dropdown, props.isOpen && css$4.open, props.onClick && uuiCore.uuiMarkers.clickable, props.cx), onClick: props.onClick },
|
|
3651
|
-
React__namespace.createElement(uuiComponents.Avatar, { size: "36", img: props.avatarUrl }),
|
|
3652
|
-
props.icon && React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon }),
|
|
3653
|
-
props.isDropdown && (React__namespace.createElement("div", null,
|
|
3654
|
-
React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$11, flipY: props.isOpen }))))));
|
|
3655
|
-
|
|
3656
|
-
var css$3 = {"search-input":"MainMenuSearch-module_search-input__AdkL1","searchInput":"MainMenuSearch-module_search-input__AdkL1"};
|
|
3657
|
-
|
|
3658
|
-
const MainMenuSearch = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(uuiCore.IEditableDebouncer, Object.assign({}, props, { render: (iEditable) => {
|
|
3659
|
-
var _a;
|
|
3660
|
-
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)));
|
|
3661
|
-
} }))));
|
|
3662
|
-
|
|
3663
|
-
var css$2 = {"container":"MainMenuIcon-module_container__6NlKF"};
|
|
3664
|
-
|
|
3665
|
-
const MainMenuIcon = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(IconButton, Object.assign({ ref: ref, icon: props.icon, cx: uuiCore.cx(props.cx, css$2.container) }, props))));
|
|
3990
|
+
var css$5 = {"root":"C4i0f0","type-primary":"AKRoaq","type-secondary":"KN8snq","typePrimary":"AKRoaq","typeSecondary":"KN8snq"};
|
|
3666
3991
|
|
|
3667
|
-
var
|
|
3668
|
-
|
|
3669
|
-
var _path;
|
|
3670
|
-
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); }
|
|
3992
|
+
var _path$1;
|
|
3993
|
+
function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
|
|
3671
3994
|
var SvgChevronDown24 = function SvgChevronDown24(props, ref) {
|
|
3672
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
3995
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
|
|
3673
3996
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3674
3997
|
width: 24,
|
|
3675
3998
|
height: 24,
|
|
3676
3999
|
viewBox: "0 0 24 24",
|
|
3677
4000
|
ref: ref
|
|
3678
|
-
}, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4001
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3679
4002
|
fillRule: "evenodd",
|
|
3680
4003
|
d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
|
|
3681
4004
|
})));
|
|
3682
4005
|
};
|
|
3683
|
-
var ForwardRef = /*#__PURE__*/React.forwardRef(SvgChevronDown24);
|
|
4006
|
+
var ForwardRef$1 = /*#__PURE__*/React.forwardRef(SvgChevronDown24);
|
|
3684
4007
|
|
|
3685
|
-
const MainMenuButton = uuiCore.withMods(uuiComponents.Button, (mods) => [css$
|
|
4008
|
+
const MainMenuButton = uuiCore.withMods(uuiComponents.Button, (mods) => [css$5.root, css$5['type-' + (mods.type || 'primary')]], () => ({ dropdownIcon: ForwardRef$1, role: 'menuitem' }));
|
|
3686
4009
|
|
|
3687
|
-
var css = {"dropdown-body":"
|
|
4010
|
+
var css$4 = {"dropdown-body":"_5zLnDY","dropdownBody":"_5zLnDY"};
|
|
3688
4011
|
|
|
3689
4012
|
class MainMenuDropdown extends React__namespace.Component {
|
|
3690
4013
|
render() {
|
|
3691
4014
|
return (React__namespace.createElement(uuiComponents.Dropdown, { renderTarget: (props) => (React__namespace.createElement(MainMenuButton, Object.assign({ caption: this.props.caption }, props, { rawProps: this.props.rawProps, isLinkActive: this.props.isLinkActive, isDropdown: true }))), renderBody: (props) => {
|
|
3692
|
-
return (React__namespace.createElement("div", { className: cx__default.default(css.dropdownBody) }, this.props.renderBody
|
|
4015
|
+
return (React__namespace.createElement("div", { className: cx__default.default(css$4.dropdownBody) }, this.props.renderBody
|
|
3693
4016
|
? this.props.renderBody(Object.assign({}, props))
|
|
3694
4017
|
: React__namespace.Children.map(this.props.children, (item) => {
|
|
3695
4018
|
if (!item)
|
|
@@ -3705,6 +4028,54 @@ class MainMenuDropdown extends React__namespace.Component {
|
|
|
3705
4028
|
}
|
|
3706
4029
|
}
|
|
3707
4030
|
|
|
4031
|
+
function applyMainMenuMods() {
|
|
4032
|
+
return [css$a.root];
|
|
4033
|
+
}
|
|
4034
|
+
const MainMenu = uuiCore.withMods(uuiComponents.MainMenu, applyMainMenuMods, () => ({
|
|
4035
|
+
Burger,
|
|
4036
|
+
MainMenuDropdown,
|
|
4037
|
+
}));
|
|
4038
|
+
|
|
4039
|
+
var _path;
|
|
4040
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4041
|
+
var SvgGlobalMenu = function SvgGlobalMenu(props, ref) {
|
|
4042
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
4043
|
+
width: 60,
|
|
4044
|
+
height: 60,
|
|
4045
|
+
viewBox: "0 0 24 24",
|
|
4046
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4047
|
+
ref: ref
|
|
4048
|
+
}, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4049
|
+
className: "cls-2",
|
|
4050
|
+
d: "M12 11.2a.8.8 0 1 1-.8.8.8.8 0 0 1 .8-.8zm3.2 0a.8.8 0 1 1-.8.8.802.802 0 0 1 .8-.8zm-6.4 0a.8.8 0 1 1-.8.8.8.8 0 0 1 .8-.8zM12 7.6a.8.8 0 1 1-.8.8.8.8 0 0 1 .8-.8zm3.2 0a.8.8 0 1 1-.8.8.802.802 0 0 1 .8-.8zm-6.4 0a.8.8 0 1 1-.8.8.8.8 0 0 1 .8-.8zm3.2 7.2a.8.8 0 1 1-.8.8.8.8 0 0 1 .8-.8zm3.2 0a.8.8 0 1 1-.8.8.802.802 0 0 1 .8-.8zm-6.4 0a.8.8 0 1 1-.8.8.8.8 0 0 1 .8-.8z"
|
|
4051
|
+
})));
|
|
4052
|
+
};
|
|
4053
|
+
var ForwardRef = /*#__PURE__*/React.forwardRef(SvgGlobalMenu);
|
|
4054
|
+
|
|
4055
|
+
var css$3 = {"global-menu-btn":"pGVKpY","globalMenuIcon":"kFSfJV","globalMenuBtn":"pGVKpY"};
|
|
4056
|
+
|
|
4057
|
+
const GlobalMenu = React__namespace.forwardRef((props, ref) => (React__namespace.createElement("button", Object.assign({ ref: ref, id: "global_menu_toggle", className: cx__default.default(css$3.globalMenuBtn, props.cx) }, props.rawProps),
|
|
4058
|
+
React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef, cx: css$3.globalMenuIcon }))));
|
|
4059
|
+
|
|
4060
|
+
var css$2 = {"container":"A9BIcJ","open":"_2aEPP4"};
|
|
4061
|
+
|
|
4062
|
+
const MainMenuAvatar = React__namespace.forwardRef((props, ref) => (React__namespace.createElement("button", { ref: ref, className: cx__default.default(css$2.container, props.isDropdown && css$2.dropdown, props.isOpen && css$2.open, props.onClick && uuiCore.uuiMarkers.clickable, props.cx), onClick: props.onClick },
|
|
4063
|
+
React__namespace.createElement(uuiComponents.Avatar, { size: "36", img: props.avatarUrl }),
|
|
4064
|
+
props.icon && React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon }),
|
|
4065
|
+
props.isDropdown && (React__namespace.createElement("div", null,
|
|
4066
|
+
React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$10, flipY: props.isOpen }))))));
|
|
4067
|
+
|
|
4068
|
+
var css$1 = {"search-input":"wKYV3p","searchInput":"wKYV3p"};
|
|
4069
|
+
|
|
4070
|
+
const MainMenuSearch = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(uuiCore.IEditableDebouncer, Object.assign({}, props, { render: (iEditable) => {
|
|
4071
|
+
var _a;
|
|
4072
|
+
return (React__namespace.createElement(uuiComponents.TextInput, Object.assign({ iconPosition: "left", icon: ForwardRef$W, cancelIcon: ((_a = props.value) === null || _a === void 0 ? void 0 : _a.length) > 0 && ForwardRef$2 }, props, iEditable, { ref: ref, cx: uuiCore.cx(css$1.searchInput, props.cx) }, props.rawProps)));
|
|
4073
|
+
} }))));
|
|
4074
|
+
|
|
4075
|
+
var css = {"container":"_1mnOEM"};
|
|
4076
|
+
|
|
4077
|
+
const MainMenuIcon = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(IconButton, Object.assign({ ref: ref, icon: props.icon, cx: uuiCore.cx(props.cx, css.container) }, props))));
|
|
4078
|
+
|
|
3708
4079
|
const Anchor = uuiComponents.Anchor;
|
|
3709
4080
|
|
|
3710
4081
|
function Form(props) {
|
|
@@ -3866,21 +4237,24 @@ exports.allTextSizes = allTextSizes;
|
|
|
3866
4237
|
exports.applyBadgeMods = applyBadgeMods;
|
|
3867
4238
|
exports.applyButtonMods = applyButtonMods;
|
|
3868
4239
|
exports.applyCheckboxMods = applyCheckboxMods;
|
|
3869
|
-
exports.applyDatePickerBodyMods = applyDatePickerBodyMods;
|
|
3870
4240
|
exports.applyDateSelectionMods = applyDateSelectionMods;
|
|
3871
4241
|
exports.applyNumericInputMods = applyNumericInputMods;
|
|
3872
|
-
exports.applyRangeDatePickerBodyMods = applyRangeDatePickerBodyMods;
|
|
3873
4242
|
exports.applySpinnerMods = applySpinnerMods;
|
|
3874
4243
|
exports.applySwitchMods = applySwitchMods;
|
|
3875
4244
|
exports.applyTagMods = applyTagMods;
|
|
3876
4245
|
exports.applyTextAreaMods = applyTextAreaMods;
|
|
3877
4246
|
exports.applyTextInputMods = applyTextInputMods;
|
|
3878
4247
|
exports.defaultPredicates = defaultPredicates;
|
|
4248
|
+
exports.getHighlightRanges = getHighlightRanges;
|
|
4249
|
+
exports.getHighlightedSearchMatches = getHighlightedSearchMatches;
|
|
3879
4250
|
exports.getTextClasses = getTextClasses;
|
|
3880
4251
|
exports.i18n = i18n;
|
|
3881
4252
|
exports.propsMods = propsMods;
|
|
4253
|
+
exports.rangeDatePickerPresets = rangeDatePickerPresets;
|
|
3882
4254
|
exports.renderCell = renderCell;
|
|
3883
4255
|
exports.renderDropMarkers = renderDropMarkers;
|
|
3884
4256
|
exports.useColumnsWithFilters = useColumnsWithFilters;
|
|
3885
4257
|
exports.useForm = useForm;
|
|
4258
|
+
exports.uuiDatePickerBody = uuiDatePickerBody;
|
|
4259
|
+
exports.weekCount = weekCount;
|
|
3886
4260
|
//# sourceMappingURL=index.js.map
|