@epam/uui 5.0.1 → 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/assets/styles/buttonLayout.scss +67 -67
- package/assets/styles/controlLayout.scss +28 -28
- package/assets/styles/dnd.scss +9 -9
- package/assets/styles/effects.scss +10 -10
- package/assets/styles/icons.scss +19 -19
- package/assets/styles/index.scss +8 -8
- package/assets/styles/inputs.scss +70 -70
- package/assets/styles/text-size.scss +37 -37
- package/assets/styles/typography.scss +163 -163
- 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/DataPickerFooter.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 +1105 -735
- package/index.esm.js.map +1 -1
- package/index.js +1115 -739
- package/index.js.map +1 -1
- package/package.json +6 -8
- package/readme.md +4 -4
- package/stats.html +90 -1447
- package/styles.css +1316 -1299
- 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
|
|
|
@@ -1428,7 +1773,9 @@ function DataPickerFooterImpl(props) {
|
|
|
1428
1773
|
if (!e.shiftKey && e.key === 'Tab')
|
|
1429
1774
|
e.preventDefault();
|
|
1430
1775
|
};
|
|
1431
|
-
|
|
1776
|
+
// show always for multi picker and for single only in case if search not disabled.
|
|
1777
|
+
const shouldShowFooter = isSinglePicker ? !props.disableClear : true;
|
|
1778
|
+
return shouldShowFooter && (React__namespace.default.createElement(FlexRow, { padding: "12" },
|
|
1432
1779
|
!isSinglePicker && (React__namespace.default.createElement(Switch, { size: switchSize, value: showSelected.value, isDisabled: !hasSelection, onValueChange: showSelected.onValueChange, label: i18n.pickerInput.showOnlySelectedLabel })),
|
|
1433
1780
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1434
1781
|
React__namespace.default.createElement(FlexCell, { width: "auto", alignSelf: "center" },
|
|
@@ -1437,37 +1784,37 @@ function DataPickerFooterImpl(props) {
|
|
|
1437
1784
|
}
|
|
1438
1785
|
const DataPickerFooter = React__namespace.default.memo(DataPickerFooterImpl);
|
|
1439
1786
|
|
|
1440
|
-
var css$
|
|
1787
|
+
var css$C = {"header":"ZyxGTe","close":"_1d324m"};
|
|
1441
1788
|
|
|
1442
|
-
var _path$
|
|
1443
|
-
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); }
|
|
1444
1791
|
var SvgNavigationClose24 = function SvgNavigationClose24(props, ref) {
|
|
1445
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1792
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$z({
|
|
1446
1793
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1447
1794
|
width: 24,
|
|
1448
1795
|
height: 24,
|
|
1449
1796
|
viewBox: "0 0 24 24",
|
|
1450
1797
|
ref: ref
|
|
1451
|
-
}, props), _path$
|
|
1798
|
+
}, props), _path$x || (_path$x = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1452
1799
|
fillRule: "evenodd",
|
|
1453
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",
|
|
1454
1801
|
clipRule: "evenodd"
|
|
1455
1802
|
})));
|
|
1456
1803
|
};
|
|
1457
|
-
var ForwardRef$
|
|
1804
|
+
var ForwardRef$z = /*#__PURE__*/React.forwardRef(SvgNavigationClose24);
|
|
1458
1805
|
|
|
1459
1806
|
const DataPickerHeaderImpl = (props) => {
|
|
1460
1807
|
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
1461
|
-
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 },
|
|
1462
1809
|
React__namespace.default.createElement(Text, { size: "48", font: "semibold" }, title),
|
|
1463
|
-
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 })));
|
|
1464
1811
|
};
|
|
1465
1812
|
const DataPickerHeader = React__namespace.default.memo(DataPickerHeaderImpl);
|
|
1466
1813
|
|
|
1467
1814
|
var _defs$1, _use;
|
|
1468
|
-
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); }
|
|
1469
1816
|
var SvgTreeFoldingArrow = function SvgTreeFoldingArrow(props, ref) {
|
|
1470
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1817
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$y({
|
|
1471
1818
|
width: 18,
|
|
1472
1819
|
height: 18,
|
|
1473
1820
|
viewBox: "0 0 18 18",
|
|
@@ -1485,19 +1832,19 @@ var SvgTreeFoldingArrow = function SvgTreeFoldingArrow(props, ref) {
|
|
|
1485
1832
|
fillRule: "evenodd"
|
|
1486
1833
|
})));
|
|
1487
1834
|
};
|
|
1488
|
-
var ForwardRef$
|
|
1835
|
+
var ForwardRef$y = /*#__PURE__*/React.forwardRef(SvgTreeFoldingArrow);
|
|
1489
1836
|
|
|
1490
|
-
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"};
|
|
1491
1838
|
|
|
1492
1839
|
function DataTableRowAddons(props) {
|
|
1493
1840
|
var _a, _b;
|
|
1494
1841
|
const row = props.rowProps;
|
|
1495
1842
|
const additionalItemSize = +props.size < 30 ? '12' : '18';
|
|
1496
1843
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
1497
|
-
((_a = row.dnd) === null || _a === void 0 ? void 0 : _a.srcData) && React__namespace.createElement(uuiComponents.DragHandle, { key: "dh", cx: css$
|
|
1498
|
-
((_b = row === null || row === void 0 ? void 0 : row.checkbox) === null || _b === void 0 ? void 0 : _b.isVisible) && (React__namespace.createElement(Checkbox, { key: "cb", cx: css$
|
|
1499
|
-
row.indent > 0 && (React__namespace.createElement("div", { key: "fold", className: css$
|
|
1500
|
-
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,
|
|
1501
1848
|
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row) }))))));
|
|
1502
1849
|
}
|
|
1503
1850
|
function DataTableCell(props) {
|
|
@@ -1515,18 +1862,18 @@ function DataTableCell(props) {
|
|
|
1515
1862
|
props.cx = [
|
|
1516
1863
|
'data-table-cell',
|
|
1517
1864
|
props.cx,
|
|
1518
|
-
css$
|
|
1519
|
-
css$
|
|
1520
|
-
css$
|
|
1521
|
-
props.isFirstColumn && css$
|
|
1522
|
-
props.isLastColumn && css$
|
|
1523
|
-
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'}`],
|
|
1524
1871
|
(props.border || isEditable) && 'uui-dt-vertical-cell-border',
|
|
1525
1872
|
];
|
|
1526
1873
|
return React__namespace.createElement(uuiComponents.DataTableCell, Object.assign({}, props));
|
|
1527
1874
|
}
|
|
1528
1875
|
|
|
1529
|
-
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"};
|
|
1530
1877
|
|
|
1531
1878
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
1532
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.
|
|
@@ -1538,154 +1885,137 @@ const renderDropMarkers = (props) => React__namespace.createElement(DropMarker,
|
|
|
1538
1885
|
const propsMods = { renderCell, renderDropMarkers };
|
|
1539
1886
|
const DataTableRow = uuiCore.withMods(uuiComponents.DataTableRow, ({ borderBottom = true, size }) => {
|
|
1540
1887
|
return [
|
|
1541
|
-
css$
|
|
1888
|
+
css$A.root, borderBottom && 'uui-dt-row-border', css$A['size-' + (size || '36')],
|
|
1542
1889
|
];
|
|
1543
1890
|
}, () => propsMods);
|
|
1544
1891
|
|
|
1545
|
-
var css$
|
|
1892
|
+
var css$z = {"header-cell":"_8imNSh","config-icon":"HkGVuX","headerCell":"_8imNSh","configIcon":"HkGVuX"};
|
|
1546
1893
|
|
|
1547
|
-
var _path$
|
|
1548
|
-
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); }
|
|
1549
1896
|
var SvgActionSettings18 = function SvgActionSettings18(props, ref) {
|
|
1550
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1897
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$x({
|
|
1551
1898
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1552
1899
|
width: 18,
|
|
1553
1900
|
height: 18,
|
|
1554
1901
|
viewBox: "0 0 18 18",
|
|
1555
1902
|
ref: ref
|
|
1556
|
-
}, props), _path$
|
|
1903
|
+
}, props), _path$w || (_path$w = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1557
1904
|
fillRule: "evenodd",
|
|
1558
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",
|
|
1559
1906
|
clipRule: "evenodd"
|
|
1560
1907
|
})));
|
|
1561
1908
|
};
|
|
1562
|
-
var ForwardRef$
|
|
1909
|
+
var ForwardRef$x = /*#__PURE__*/React.forwardRef(SvgActionSettings18);
|
|
1563
1910
|
|
|
1564
|
-
const DataTableHeaderRow = uuiCore.withMods(uuiComponents.DataTableHeaderRow, (mods) => [css$
|
|
1911
|
+
const DataTableHeaderRow = uuiCore.withMods(uuiComponents.DataTableHeaderRow, (mods) => [css$z.root], (mods) => ({
|
|
1565
1912
|
renderCell: (props) => React__namespace.createElement(DataTableHeaderCell, Object.assign({}, props, { size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key })),
|
|
1566
|
-
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 }),
|
|
1567
1914
|
}));
|
|
1568
1915
|
|
|
1569
|
-
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"};
|
|
1570
1917
|
|
|
1571
|
-
var _path$
|
|
1572
|
-
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); }
|
|
1573
1920
|
var SvgTableSwap18 = function SvgTableSwap18(props, ref) {
|
|
1574
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1921
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$w({
|
|
1575
1922
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1576
1923
|
width: 18,
|
|
1577
1924
|
height: 18,
|
|
1578
1925
|
viewBox: "0 0 18 18",
|
|
1579
1926
|
ref: ref
|
|
1580
|
-
}, props), _path$
|
|
1927
|
+
}, props), _path$v || (_path$v = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1581
1928
|
fillRule: "evenodd",
|
|
1582
1929
|
d: "M6 1 2 5h3v7h2V5h3L6 1zm7 12V6h-2v7H8l4 4 4-4h-3z",
|
|
1583
1930
|
clipRule: "evenodd"
|
|
1584
1931
|
})));
|
|
1585
1932
|
};
|
|
1586
|
-
var ForwardRef$
|
|
1933
|
+
var ForwardRef$w = /*#__PURE__*/React.forwardRef(SvgTableSwap18);
|
|
1587
1934
|
|
|
1588
|
-
var _path$
|
|
1589
|
-
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); }
|
|
1590
1937
|
var SvgTableSortAsc18 = function SvgTableSortAsc18(props, ref) {
|
|
1591
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1938
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$v({
|
|
1592
1939
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1593
1940
|
width: 18,
|
|
1594
1941
|
height: 18,
|
|
1595
1942
|
viewBox: "0 0 18 18",
|
|
1596
1943
|
ref: ref
|
|
1597
|
-
}, props), _path$
|
|
1944
|
+
}, props), _path$u || (_path$u = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1598
1945
|
fillRule: "evenodd",
|
|
1599
1946
|
d: "M10 6v10H8V6H5l4-4 4 4h-3z",
|
|
1600
1947
|
clipRule: "evenodd"
|
|
1601
1948
|
})));
|
|
1602
1949
|
};
|
|
1603
|
-
var ForwardRef$
|
|
1950
|
+
var ForwardRef$v = /*#__PURE__*/React.forwardRef(SvgTableSortAsc18);
|
|
1604
1951
|
|
|
1605
|
-
var _path$
|
|
1606
|
-
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); }
|
|
1607
1954
|
var SvgTableSortDesc18 = function SvgTableSortDesc18(props, ref) {
|
|
1608
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1955
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$u({
|
|
1609
1956
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1610
1957
|
width: 18,
|
|
1611
1958
|
height: 18,
|
|
1612
1959
|
viewBox: "0 0 18 18",
|
|
1613
1960
|
ref: ref
|
|
1614
|
-
}, props), _path$
|
|
1961
|
+
}, props), _path$t || (_path$t = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1615
1962
|
fillRule: "evenodd",
|
|
1616
1963
|
d: "M10 12V2H8v10H5l4 4 4-4h-3z",
|
|
1617
1964
|
clipRule: "evenodd"
|
|
1618
1965
|
})));
|
|
1619
1966
|
};
|
|
1620
|
-
var ForwardRef$
|
|
1967
|
+
var ForwardRef$u = /*#__PURE__*/React.forwardRef(SvgTableSortDesc18);
|
|
1621
1968
|
|
|
1622
|
-
var _path$
|
|
1623
|
-
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); }
|
|
1624
1971
|
var SvgContentFiltration18 = function SvgContentFiltration18(props, ref) {
|
|
1625
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1972
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$t({
|
|
1626
1973
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1627
1974
|
width: 18,
|
|
1628
1975
|
height: 18,
|
|
1629
1976
|
viewBox: "0 0 18 18",
|
|
1630
1977
|
ref: ref
|
|
1631
|
-
}, props), _path$
|
|
1978
|
+
}, props), _path$s || (_path$s = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1632
1979
|
fillRule: "evenodd",
|
|
1633
1980
|
d: "m8 14 2 2v-5H8v3zM2 3v2h14V3H2zm6 8h2l6-6H2l6 6z",
|
|
1634
1981
|
clipRule: "evenodd"
|
|
1635
1982
|
})));
|
|
1636
1983
|
};
|
|
1637
|
-
var ForwardRef$
|
|
1984
|
+
var ForwardRef$t = /*#__PURE__*/React.forwardRef(SvgContentFiltration18);
|
|
1638
1985
|
|
|
1639
|
-
var _path$
|
|
1640
|
-
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); }
|
|
1641
1988
|
var SvgNavigationChevronDown18 = function SvgNavigationChevronDown18(props, ref) {
|
|
1642
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1643
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1644
|
-
width: 18,
|
|
1645
|
-
height: 18,
|
|
1646
|
-
viewBox: "0 0 18 18",
|
|
1647
|
-
ref: ref
|
|
1648
|
-
}, props), _path$u || (_path$u = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1649
|
-
fillRule: "evenodd",
|
|
1650
|
-
d: "M12.443 6.442 9 9.877 5.558 6.442 4.5 7.5 9 12l4.5-4.5-1.057-1.058z",
|
|
1651
|
-
clipRule: "evenodd"
|
|
1652
|
-
})));
|
|
1653
|
-
};
|
|
1654
|
-
var ForwardRef$v = /*#__PURE__*/React.forwardRef(SvgNavigationChevronDown18);
|
|
1655
|
-
|
|
1656
|
-
var _path$t;
|
|
1657
|
-
function _extends$u() { _extends$u = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$u.apply(this, arguments); }
|
|
1658
|
-
var SvgNavigationChevronUp18 = function SvgNavigationChevronUp18(props, ref) {
|
|
1659
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$u({
|
|
1989
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$s({
|
|
1660
1990
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1661
1991
|
width: 18,
|
|
1662
1992
|
height: 18,
|
|
1663
1993
|
viewBox: "0 0 18 18",
|
|
1664
1994
|
ref: ref
|
|
1665
|
-
}, props), _path$
|
|
1995
|
+
}, props), _path$r || (_path$r = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1666
1996
|
fillRule: "evenodd",
|
|
1667
|
-
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",
|
|
1668
1998
|
clipRule: "evenodd"
|
|
1669
1999
|
})));
|
|
1670
2000
|
};
|
|
1671
|
-
var ForwardRef$
|
|
2001
|
+
var ForwardRef$s = /*#__PURE__*/React.forwardRef(SvgNavigationChevronDown18);
|
|
1672
2002
|
|
|
1673
|
-
var _path$
|
|
1674
|
-
function _extends$
|
|
1675
|
-
var
|
|
1676
|
-
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({
|
|
1677
2007
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1678
2008
|
width: 18,
|
|
1679
2009
|
height: 18,
|
|
1680
2010
|
viewBox: "0 0 18 18",
|
|
1681
2011
|
ref: ref
|
|
1682
|
-
}, props), _path$
|
|
2012
|
+
}, props), _path$q || (_path$q = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1683
2013
|
fillRule: "evenodd",
|
|
1684
|
-
d: "
|
|
2014
|
+
d: "m9 6-4.5 4.5 1.058 1.057L9 8.123l3.443 3.434L13.5 10.5 9 6z",
|
|
1685
2015
|
clipRule: "evenodd"
|
|
1686
2016
|
})));
|
|
1687
2017
|
};
|
|
1688
|
-
var ForwardRef$
|
|
2018
|
+
var ForwardRef$r = /*#__PURE__*/React.forwardRef(SvgNavigationChevronUp18);
|
|
1689
2019
|
|
|
1690
2020
|
class DataTableHeaderCell extends React__namespace.Component {
|
|
1691
2021
|
constructor() {
|
|
@@ -1695,25 +2025,29 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
1695
2025
|
};
|
|
1696
2026
|
this.getTextStyle = () => {
|
|
1697
2027
|
if (this.props.textCase === 'upper')
|
|
1698
|
-
return css$
|
|
1699
|
-
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 })))));
|
|
1700
2042
|
};
|
|
1701
|
-
this.getColumnCaption = () => (React__namespace.createElement("div", { className: css$w.tooltipWrapper },
|
|
1702
|
-
React__namespace.createElement(Tooltip, { trigger: "hover", placement: "bottom-start", renderContent: !this.state.isDropdownOpen && this.props.column.info ? () => this.props.column.info : null, color: "default", cx: css$w.cellTooltip, offset: [-12, 12] },
|
|
1703
|
-
React__namespace.createElement("div", { className: uuiCore.cx(css$w.iconCell, css$w['align-' + this.props.column.textAlign], uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaptionWrapper) },
|
|
1704
|
-
React__namespace.createElement(Text, { key: "text", lineHeight: "30", fontSize: "14", size: "30", cx: uuiCore.cx(css$w.caption, this.getTextStyle(), uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaption) }, this.props.column.caption),
|
|
1705
|
-
this.props.column.info && (React__namespace.createElement(IconButton, { key: "info", cx: uuiCore.cx(css$w.icon, css$w.infoIcon, this.props.sortDirection && css$w.sortIconActive, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderSortIcon), color: "secondary", icon: ForwardRef$t })),
|
|
1706
|
-
this.props.column.isSortable && (!this.props.column.renderFilter || this.props.sortDirection) && (React__namespace.createElement(IconButton, { key: "sort", cx: uuiCore.cx(css$w.icon, css$w.sortIcon, this.props.sortDirection && css$w.sortIconActive, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderSortIcon), color: this.props.sortDirection ? 'default' : 'secondary', icon: this.props.sortDirection === 'desc' ? ForwardRef$x : this.props.sortDirection === 'asc' ? ForwardRef$y : ForwardRef$z })),
|
|
1707
|
-
this.props.isFilterActive && (React__namespace.createElement(IconButton, { key: "filter", cx: uuiCore.cx(css$w.icon, !this.props.sortDirection && css$w.filterIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderFilterIcon), color: "default", icon: ForwardRef$w })),
|
|
1708
|
-
this.props.column.renderFilter && (React__namespace.createElement(IconButton, { key: "dropdown", cx: uuiCore.cx(css$w.icon, css$w.dropdownIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderDropdownIcon), color: "secondary", icon: this.state.isDropdownOpen ? ForwardRef$u : ForwardRef$v }))))));
|
|
1709
2043
|
this.renderHeaderCheckbox = () => this.props.selectAll
|
|
1710
|
-
&& this.props.isFirstColumn && (React__namespace.createElement(Checkbox, Object.assign({ size: +this.props.size < 36 ? '12' : '18' }, this.props.selectAll, { cx: uuiCore.cx(css$
|
|
1711
|
-
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) });
|
|
1712
2046
|
this.renderCellContent = (props, dropdownProps) => (React__namespace.createElement(FlexCell, Object.assign({}, this.props.column, { minWidth: this.props.column.width, ref: (ref) => {
|
|
1713
2047
|
var _a;
|
|
1714
2048
|
props.ref(ref);
|
|
1715
2049
|
(_a = dropdownProps === null || dropdownProps === void 0 ? void 0 : dropdownProps.ref) === null || _a === void 0 ? void 0 : _a.call(dropdownProps, ref);
|
|
1716
|
-
}, 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) }),
|
|
1717
2051
|
this.renderHeaderCheckbox(),
|
|
1718
2052
|
this.getColumnCaption(),
|
|
1719
2053
|
this.props.allowColumnsResizing && this.renderResizeMark(props)));
|
|
@@ -1750,10 +2084,10 @@ const useColumnsWithFilters = (initialColumns, filters) => {
|
|
|
1750
2084
|
return columns;
|
|
1751
2085
|
};
|
|
1752
2086
|
|
|
1753
|
-
var _path$
|
|
1754
|
-
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); }
|
|
1755
2089
|
var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
1756
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2090
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
|
|
1757
2091
|
width: 232,
|
|
1758
2092
|
height: 180,
|
|
1759
2093
|
viewBox: "0 0 232 180",
|
|
@@ -1762,7 +2096,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
1762
2096
|
ref: ref
|
|
1763
2097
|
}, props), /*#__PURE__*/React__namespace.createElement("g", {
|
|
1764
2098
|
clipPath: "url(#a)"
|
|
1765
|
-
}, _path$
|
|
2099
|
+
}, _path$p || (_path$p = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1766
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",
|
|
1767
2101
|
fill: "#F5F6FA"
|
|
1768
2102
|
})), _path2$1 || (_path2$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -1888,9 +2222,9 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
1888
2222
|
d: "M0 0h230.897v180H0z"
|
|
1889
2223
|
})))));
|
|
1890
2224
|
};
|
|
1891
|
-
var ForwardRef$
|
|
2225
|
+
var ForwardRef$q = /*#__PURE__*/React.forwardRef(SvgEmptyTable);
|
|
1892
2226
|
|
|
1893
|
-
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"};
|
|
1894
2228
|
|
|
1895
2229
|
function DataTable(props) {
|
|
1896
2230
|
var _a;
|
|
@@ -1904,123 +2238,126 @@ function DataTable(props) {
|
|
|
1904
2238
|
const renderedRows = rows.map((row) => (props.renderRow || renderRow)(Object.assign(Object.assign({}, row), { columns })));
|
|
1905
2239
|
const renderNoResultsBlock = React__namespace.useCallback(() => {
|
|
1906
2240
|
var _a;
|
|
1907
|
-
return (React__namespace.createElement("div", { className: css$
|
|
1908
|
-
React__namespace.createElement(uuiComponents.IconContainer, { cx: css$
|
|
1909
|
-
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),
|
|
1910
2244
|
React__namespace.createElement(Text, { fontSize: "16", lineHeight: "24", font: "regular", color: "primary" }, i18n.tables.noResultsBlock.message)))));
|
|
1911
2245
|
}, [props.renderNoResultsBlock]);
|
|
1912
2246
|
const onConfigurationButtonClick = React__namespace.useCallback(() => {
|
|
2247
|
+
const configProps = { columns: props.columns, columnsConfig: Object.assign({}, config), defaultConfig };
|
|
1913
2248
|
uuiModals
|
|
1914
2249
|
.show((modalProps) => {
|
|
1915
|
-
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 }))));
|
|
1916
2253
|
})
|
|
1917
2254
|
.then((columnsConfig) => props.onValueChange(Object.assign(Object.assign({}, props.value), { columnsConfig })))
|
|
1918
2255
|
.catch(() => null);
|
|
1919
2256
|
}, [
|
|
1920
|
-
props.columns, config, defaultConfig, props.value, props.onValueChange,
|
|
2257
|
+
props.columns, config, defaultConfig, props.value, props.onValueChange, props.renderColumnsConfigurationModal,
|
|
1921
2258
|
]);
|
|
1922
2259
|
const renderRowsContainer = React__namespace.useCallback(({ listContainerRef, estimatedHeight, offsetY, scrollShadows, }) => (React__namespace.createElement(React__namespace.Fragment, null,
|
|
1923
|
-
React__namespace.createElement("div", { className: css$
|
|
2260
|
+
React__namespace.createElement("div", { className: css$x.stickyHeader },
|
|
1924
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 }),
|
|
1925
2262
|
React__namespace.createElement("div", { className: uuiCore.cx(uuiCore.uuiScrollShadows.top, {
|
|
1926
2263
|
[uuiCore.uuiScrollShadows.topVisible]: scrollShadows.verticalTop,
|
|
1927
2264
|
}) })),
|
|
1928
|
-
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` } },
|
|
1929
2266
|
React__namespace.createElement("div", { ref: listContainerRef, role: "rowgroup", style: { marginTop: offsetY }, children: renderedRows }))) : (renderNoResultsBlock === null || renderNoResultsBlock === void 0 ? void 0 : renderNoResultsBlock()))), [
|
|
1930
2267
|
props, columns, rows, renderNoResultsBlock, onConfigurationButtonClick,
|
|
1931
2268
|
]);
|
|
1932
2269
|
return (React__namespace.createElement(uuiComponents.DataTableSelectionProvider, { onCopy: props.onCopy, rows: rows, columns: columns },
|
|
1933
|
-
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: {
|
|
1934
2271
|
role: 'table',
|
|
1935
2272
|
'aria-colcount': columns.length,
|
|
1936
2273
|
'aria-rowcount': props.rowsCount,
|
|
1937
2274
|
} })));
|
|
1938
2275
|
}
|
|
1939
2276
|
|
|
1940
|
-
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"};
|
|
1941
2278
|
|
|
1942
|
-
var _path$
|
|
1943
|
-
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); }
|
|
1944
2281
|
var SvgNavigationMoreVert18 = function SvgNavigationMoreVert18(props, ref) {
|
|
1945
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2282
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
|
|
1946
2283
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1947
2284
|
width: 18,
|
|
1948
2285
|
height: 18,
|
|
1949
2286
|
viewBox: "0 0 18 18",
|
|
1950
2287
|
ref: ref
|
|
1951
|
-
}, props), _path$
|
|
2288
|
+
}, props), _path$o || (_path$o = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1952
2289
|
fillRule: "evenodd",
|
|
1953
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",
|
|
1954
2291
|
clipRule: "evenodd"
|
|
1955
2292
|
})));
|
|
1956
2293
|
};
|
|
1957
|
-
var ForwardRef$
|
|
2294
|
+
var ForwardRef$p = /*#__PURE__*/React.forwardRef(SvgNavigationMoreVert18);
|
|
1958
2295
|
|
|
1959
|
-
var _path$
|
|
1960
|
-
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); }
|
|
1961
2298
|
var SvgActionUpdate18 = function SvgActionUpdate18(props, ref) {
|
|
1962
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2299
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
|
|
1963
2300
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1964
2301
|
width: 18,
|
|
1965
2302
|
height: 18,
|
|
1966
2303
|
viewBox: "0 0 18 18",
|
|
1967
2304
|
ref: ref
|
|
1968
|
-
}, props), _path$
|
|
2305
|
+
}, props), _path$n || (_path$n = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1969
2306
|
fillRule: "evenodd",
|
|
1970
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",
|
|
1971
2308
|
clipRule: "evenodd"
|
|
1972
2309
|
})));
|
|
1973
2310
|
};
|
|
1974
|
-
var ForwardRef$
|
|
2311
|
+
var ForwardRef$o = /*#__PURE__*/React.forwardRef(SvgActionUpdate18);
|
|
1975
2312
|
|
|
1976
|
-
var _path$
|
|
1977
|
-
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); }
|
|
1978
2315
|
var SvgActionLockFill18 = function SvgActionLockFill18(props, ref) {
|
|
1979
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2316
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
|
|
1980
2317
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1981
2318
|
width: 18,
|
|
1982
2319
|
height: 18,
|
|
1983
2320
|
viewBox: "0 0 18 18",
|
|
1984
2321
|
ref: ref
|
|
1985
|
-
}, props), _path$
|
|
2322
|
+
}, props), _path$m || (_path$m = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1986
2323
|
fillRule: "evenodd",
|
|
1987
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",
|
|
1988
2325
|
clipRule: "evenodd"
|
|
1989
2326
|
})));
|
|
1990
2327
|
};
|
|
1991
|
-
var ForwardRef$
|
|
2328
|
+
var ForwardRef$n = /*#__PURE__*/React.forwardRef(SvgActionLockFill18);
|
|
1992
2329
|
|
|
1993
|
-
var _path$
|
|
1994
|
-
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); }
|
|
1995
2332
|
var SvgActionPinOn18 = function SvgActionPinOn18(props, ref) {
|
|
1996
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2333
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
|
|
1997
2334
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1998
2335
|
width: 18,
|
|
1999
2336
|
height: 18,
|
|
2000
2337
|
viewBox: "0 0 18 18",
|
|
2001
2338
|
ref: ref
|
|
2002
|
-
}, props), _path$
|
|
2339
|
+
}, props), _path$l || (_path$l = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2003
2340
|
fillRule: "evenodd",
|
|
2004
2341
|
d: "M12 9V3h1V2H5v1h1v6l-2 1v1h4v5h2v-5h4v-1l-2-1z",
|
|
2005
2342
|
clipRule: "evenodd"
|
|
2006
2343
|
})));
|
|
2007
2344
|
};
|
|
2008
|
-
var ForwardRef$
|
|
2345
|
+
var ForwardRef$m = /*#__PURE__*/React.forwardRef(SvgActionPinOn18);
|
|
2009
2346
|
|
|
2010
|
-
var _path$
|
|
2011
|
-
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); }
|
|
2012
2349
|
var SvgActionPinOff18 = function SvgActionPinOff18(props, ref) {
|
|
2013
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2350
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
|
|
2014
2351
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2015
2352
|
width: 18,
|
|
2016
2353
|
height: 18,
|
|
2017
2354
|
viewBox: "0 0 18 18",
|
|
2018
2355
|
ref: ref
|
|
2019
|
-
}, props), _path$
|
|
2356
|
+
}, props), _path$k || (_path$k = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2020
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"
|
|
2021
2358
|
})));
|
|
2022
2359
|
};
|
|
2023
|
-
var ForwardRef$
|
|
2360
|
+
var ForwardRef$l = /*#__PURE__*/React.forwardRef(SvgActionPinOff18);
|
|
2024
2361
|
|
|
2025
2362
|
const i18nLocal = i18n.tables.columnsConfigurationModal;
|
|
2026
2363
|
function PinIconButton(props) {
|
|
@@ -2035,12 +2372,12 @@ function PinIconButton(props) {
|
|
|
2035
2372
|
}, [isPinned, isPinnedAlways]);
|
|
2036
2373
|
const pinIcon = React.useMemo(() => {
|
|
2037
2374
|
if (isPinnedAlways) {
|
|
2038
|
-
return ForwardRef$
|
|
2375
|
+
return ForwardRef$n;
|
|
2039
2376
|
}
|
|
2040
2377
|
if (isPinned) {
|
|
2041
|
-
return isHovered ? ForwardRef$
|
|
2378
|
+
return isHovered ? ForwardRef$l : ForwardRef$m;
|
|
2042
2379
|
}
|
|
2043
|
-
return ForwardRef$
|
|
2380
|
+
return ForwardRef$m;
|
|
2044
2381
|
}, [
|
|
2045
2382
|
isPinnedAlways, isHovered, isPinned,
|
|
2046
2383
|
]);
|
|
@@ -2050,7 +2387,7 @@ function PinIconButton(props) {
|
|
|
2050
2387
|
React__namespace.createElement(IconButton, { icon: pinIcon, onClick: pinClickHandler, isDisabled: isPinnedAlways, color: isPinned ? 'info' : undefined }))));
|
|
2051
2388
|
}
|
|
2052
2389
|
|
|
2053
|
-
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"};
|
|
2054
2391
|
|
|
2055
2392
|
const ColumnRow = React__namespace.memo(function ColumnRow(props) {
|
|
2056
2393
|
const { column } = props;
|
|
@@ -2066,7 +2403,7 @@ const ColumnRow = React__namespace.memo(function ColumnRow(props) {
|
|
|
2066
2403
|
return (React__namespace.createElement(FlexRow, Object.assign({ size: "30", cx: wrapperClasses }, wrapperAttrs),
|
|
2067
2404
|
React__namespace.createElement(FlexRow, { size: "30", spacing: "6", cx: styles.title },
|
|
2068
2405
|
React__namespace.createElement(uuiComponents.DragHandle, { rawProps: dragHandleRawProps, isDisabled: !isDndAllowed, cx: uuiCore.cx(styles.dragHandle, !isDndAllowed && styles.dndDisabled) }),
|
|
2069
|
-
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 })),
|
|
2070
2407
|
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
2071
2408
|
React__namespace.createElement(FlexRow, { size: "30", cx: styles.pinIconButton },
|
|
2072
2409
|
React__namespace.createElement(PinIconButton, { id: column.key, isPinned: !!isPinned, canUnpin: !isPinnedAlways, onTogglePin: togglePin })),
|
|
@@ -2085,6 +2422,7 @@ function ColumnsConfigurationModal(props) {
|
|
|
2085
2422
|
initialColumnsConfig,
|
|
2086
2423
|
columns,
|
|
2087
2424
|
defaultConfig,
|
|
2425
|
+
getSearchFields: props.getSearchFields,
|
|
2088
2426
|
});
|
|
2089
2427
|
const apply = React.useCallback(() => modalProps.success(columnsConfig), [columnsConfig, modalProps]);
|
|
2090
2428
|
const close = React.useCallback(() => modalProps.abort(), [modalProps]);
|
|
@@ -2098,9 +2436,9 @@ function ColumnsConfigurationModal(props) {
|
|
|
2098
2436
|
const hasDivider = !!(amountPinned && amountUnPinned);
|
|
2099
2437
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
2100
2438
|
renderGroupTitle(i18n$1.displayedSectionTitle, amountPinned + amountUnPinned),
|
|
2101
|
-
!!amountPinned && (React__namespace.createElement(FlexRow, { cx: styles$1.groupItems, size: "30" }, groupedColumns.displayedPinned.map((c) => (React__namespace.createElement(ColumnRow, { column: c, key: c.key }))))),
|
|
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 }))))),
|
|
2102
2440
|
hasDivider && React__namespace.createElement("div", { className: styles$1.hDivider }),
|
|
2103
|
-
!!amountUnPinned && (React__namespace.createElement(FlexRow, { cx: styles$1.groupItems, size: "30" }, groupedColumns.displayedUnpinned.map((c) => (React__namespace.createElement(ColumnRow, { column: c, key: c.key })))))));
|
|
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 })))))));
|
|
2104
2442
|
};
|
|
2105
2443
|
const renderHidden = () => {
|
|
2106
2444
|
const amountHidden = groupedColumns.hidden.length;
|
|
@@ -2109,10 +2447,10 @@ function ColumnsConfigurationModal(props) {
|
|
|
2109
2447
|
}
|
|
2110
2448
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
2111
2449
|
renderGroupTitle(i18n$1.hiddenSectionTitle, amountHidden),
|
|
2112
|
-
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 }))))));
|
|
2113
2451
|
};
|
|
2114
2452
|
const noVisibleColumns = React.useMemo(() => !groupedColumns.displayedPinned.length && !groupedColumns.displayedUnpinned.length, [groupedColumns.displayedPinned, groupedColumns.displayedUnpinned]);
|
|
2115
|
-
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 });
|
|
2116
2454
|
return (React__namespace.createElement(ModalBlocker, Object.assign({}, modalProps),
|
|
2117
2455
|
React__namespace.createElement(ModalWindow, { height: 700 },
|
|
2118
2456
|
React__namespace.createElement(ModalHeader, { title: i18n$1.configureColumnsTitle, onClose: close }),
|
|
@@ -2120,7 +2458,7 @@ function ColumnsConfigurationModal(props) {
|
|
|
2120
2458
|
React__namespace.createElement(SearchInput, { size: "30", value: searchValue, onValueChange: setSearchValue, placeholder: i18n$1.searchPlaceholder }),
|
|
2121
2459
|
React__namespace.createElement(Dropdown, { closeOnTargetClick: true, renderBody: () => (React__namespace.createElement(Panel, { shadow: true },
|
|
2122
2460
|
React__namespace.createElement(DropdownMenuButton, { caption: i18n$1.clearAllButton, onClick: uncheckAll }),
|
|
2123
|
-
React__namespace.createElement(DropdownMenuButton, { caption: i18n$1.selectAllButton, onClick: checkAll }))), renderTarget: (props) => React__namespace.createElement(Button, Object.assign({}, props, { mode: "none", icon: ForwardRef$
|
|
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 })) })),
|
|
2124
2462
|
React__namespace.createElement(Panel, { cx: styles$1.mainPanel },
|
|
2125
2463
|
React__namespace.createElement(ScrollBars, null,
|
|
2126
2464
|
renderVisible(),
|
|
@@ -2129,22 +2467,22 @@ function ColumnsConfigurationModal(props) {
|
|
|
2129
2467
|
React__namespace.createElement(Text, { fontSize: "24", lineHeight: "30", color: "primary", font: "semibold" }, i18n$1.noResultsFound.text),
|
|
2130
2468
|
React__namespace.createElement(Text, { fontSize: "16", lineHeight: "24", font: "regular", color: "primary" }, i18n$1.noResultsFound.subText))))),
|
|
2131
2469
|
React__namespace.createElement(ModalFooter, { borderTop: true },
|
|
2132
|
-
React__namespace.createElement(LinkButton, { icon: ForwardRef$
|
|
2470
|
+
React__namespace.createElement(LinkButton, { icon: ForwardRef$o, caption: i18n$1.resetToDefaultButton, onClick: reset }),
|
|
2133
2471
|
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
2134
2472
|
React__namespace.createElement(Button, { mode: "none", color: "secondary", caption: i18n$1.cancelButton, onClick: close }),
|
|
2135
2473
|
noVisibleColumns ? (React__namespace.createElement(Tooltip, { content: i18n$1.enableAtLeastOneColumnMessage, placement: "top-end", color: "critical" }, applyButton)) : (applyButton)))));
|
|
2136
2474
|
}
|
|
2137
2475
|
|
|
2138
|
-
var css$
|
|
2476
|
+
var css$w = {"panel":"E0IYu9"};
|
|
2139
2477
|
|
|
2140
|
-
var css$
|
|
2478
|
+
var css$v = {"sorting-panel-container":"WeS65g","sort-active":"DwaTcF","sortingPanelContainer":"WeS65g","sortActive":"DwaTcF"};
|
|
2141
2479
|
|
|
2142
2480
|
const SortingPanelImpl = ({ sortDirection, onSort }) => {
|
|
2143
2481
|
const sortAsc = React.useCallback(() => onSort(sortDirection === 'asc' ? undefined : 'asc'), [onSort]);
|
|
2144
2482
|
const sortDesc = React.useCallback(() => onSort(sortDirection === 'desc' ? undefined : 'desc'), [onSort]);
|
|
2145
|
-
return (React__namespace.default.createElement(FlexCell, { cx: css$
|
|
2146
|
-
React__namespace.default.createElement(DropdownMenuButton, { isActive: sortDirection === 'asc', caption: i18n.pickerFilterHeader.sortAscending, icon: ForwardRef$
|
|
2147
|
-
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 })));
|
|
2148
2486
|
};
|
|
2149
2487
|
const SortingPanel = React__namespace.default.memo(SortingPanelImpl);
|
|
2150
2488
|
|
|
@@ -2159,63 +2497,63 @@ const ColumnHeaderDropdownImpl = (props) => {
|
|
|
2159
2497
|
width: uuiCore.isMobile() ? document.documentElement.clientWidth : undefined,
|
|
2160
2498
|
}), []);
|
|
2161
2499
|
const closeDropdown = React.useCallback(() => props.onOpenChange(false), [props.onOpenChange]);
|
|
2162
|
-
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 },
|
|
2163
2501
|
React__namespace.default.createElement(MobileDropdownWrapper, { title: props.title, close: closeDropdown },
|
|
2164
2502
|
props.isSortable && React__namespace.default.createElement(SortingPanel, { sortDirection: props.sortDirection, onSort: props.onSort }),
|
|
2165
2503
|
props.renderFilter(dropdownProps)))), modifiers: popperModifiers, value: props.isOpen, onValueChange: props.onOpenChange }));
|
|
2166
2504
|
};
|
|
2167
2505
|
const ColumnHeaderDropdown = React__namespace.default.memo(ColumnHeaderDropdownImpl);
|
|
2168
2506
|
|
|
2169
|
-
var _path$
|
|
2170
|
-
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); }
|
|
2171
2509
|
var SvgNotificationDone24 = function SvgNotificationDone24(props, ref) {
|
|
2172
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2510
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
|
|
2173
2511
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2174
2512
|
width: 24,
|
|
2175
2513
|
height: 24,
|
|
2176
2514
|
viewBox: "0 0 24 24",
|
|
2177
2515
|
ref: ref
|
|
2178
|
-
}, props), _path$
|
|
2516
|
+
}, props), _path$j || (_path$j = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2179
2517
|
fillRule: "evenodd",
|
|
2180
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",
|
|
2181
2519
|
clipRule: "evenodd"
|
|
2182
2520
|
})));
|
|
2183
2521
|
};
|
|
2184
|
-
var ForwardRef$
|
|
2522
|
+
var ForwardRef$k = /*#__PURE__*/React.forwardRef(SvgNotificationDone24);
|
|
2185
2523
|
|
|
2186
|
-
var _path$
|
|
2187
|
-
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); }
|
|
2188
2526
|
var SvgNotificationDone18 = function SvgNotificationDone18(props, ref) {
|
|
2189
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2527
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
|
|
2190
2528
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2191
2529
|
width: 18,
|
|
2192
2530
|
height: 18,
|
|
2193
2531
|
viewBox: "0 0 18 18",
|
|
2194
2532
|
ref: ref
|
|
2195
|
-
}, props), _path$
|
|
2533
|
+
}, props), _path$i || (_path$i = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2196
2534
|
fillRule: "evenodd",
|
|
2197
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",
|
|
2198
2536
|
clipRule: "evenodd"
|
|
2199
2537
|
})));
|
|
2200
2538
|
};
|
|
2201
|
-
var ForwardRef$
|
|
2539
|
+
var ForwardRef$j = /*#__PURE__*/React.forwardRef(SvgNotificationDone18);
|
|
2202
2540
|
|
|
2203
|
-
var _path$
|
|
2204
|
-
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); }
|
|
2205
2543
|
var SvgNotificationDone12 = function SvgNotificationDone12(props, ref) {
|
|
2206
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2544
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
|
|
2207
2545
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2208
2546
|
width: 12,
|
|
2209
2547
|
height: 12,
|
|
2210
2548
|
viewBox: "0 0 12 12",
|
|
2211
2549
|
ref: ref
|
|
2212
|
-
}, props), _path$
|
|
2550
|
+
}, props), _path$h || (_path$h = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2213
2551
|
d: "M11 3.6 9.462 2 4.846 6.8 2.538 4.4 1 6l3.846 4L11 3.6z"
|
|
2214
2552
|
})));
|
|
2215
2553
|
};
|
|
2216
|
-
var ForwardRef$
|
|
2554
|
+
var ForwardRef$i = /*#__PURE__*/React.forwardRef(SvgNotificationDone12);
|
|
2217
2555
|
|
|
2218
|
-
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"};
|
|
2219
2557
|
|
|
2220
2558
|
class DataPickerRow extends React__namespace.Component {
|
|
2221
2559
|
constructor() {
|
|
@@ -2223,37 +2561,37 @@ class DataPickerRow extends React__namespace.Component {
|
|
|
2223
2561
|
this.getIcon = (size) => {
|
|
2224
2562
|
switch (size) {
|
|
2225
2563
|
case '24':
|
|
2226
|
-
return ForwardRef$
|
|
2564
|
+
return ForwardRef$i;
|
|
2227
2565
|
case '30':
|
|
2228
|
-
return ForwardRef$
|
|
2566
|
+
return ForwardRef$j;
|
|
2229
2567
|
case '36':
|
|
2230
|
-
return ForwardRef$
|
|
2568
|
+
return ForwardRef$j;
|
|
2231
2569
|
case '42':
|
|
2232
|
-
return ForwardRef$
|
|
2570
|
+
return ForwardRef$k;
|
|
2233
2571
|
default:
|
|
2234
|
-
return ForwardRef$
|
|
2572
|
+
return ForwardRef$j;
|
|
2235
2573
|
}
|
|
2236
2574
|
};
|
|
2237
2575
|
this.column = {
|
|
2238
2576
|
key: 'name',
|
|
2239
2577
|
grow: 1,
|
|
2240
2578
|
width: 0,
|
|
2241
|
-
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 },
|
|
2242
2580
|
this.props.renderItem(item, rowProps),
|
|
2243
2581
|
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
2244
|
-
(rowProps.isChildrenSelected || rowProps.isSelected) && (React__namespace.createElement("div", { className: css$
|
|
2245
|
-
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 }))))),
|
|
2246
2584
|
};
|
|
2247
2585
|
this.renderContent = () => {
|
|
2248
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' }));
|
|
2249
2587
|
};
|
|
2250
2588
|
}
|
|
2251
2589
|
render() {
|
|
2252
|
-
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 }));
|
|
2253
2591
|
}
|
|
2254
2592
|
}
|
|
2255
2593
|
|
|
2256
|
-
var css$
|
|
2594
|
+
var css$t = {"done":"qrDRvV"};
|
|
2257
2595
|
|
|
2258
2596
|
const MobileDropdownWrapper = (props) => {
|
|
2259
2597
|
const isVisible = uuiCore.isMobile();
|
|
@@ -2261,22 +2599,22 @@ const MobileDropdownWrapper = (props) => {
|
|
|
2261
2599
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
2262
2600
|
isVisible && React__namespace.default.createElement(DataPickerHeader, { title: props.title, close: props.close }),
|
|
2263
2601
|
props.children,
|
|
2264
|
-
isVisible && React__namespace.default.createElement(LinkButton, { caption: i18n.pickerInput.doneButton, onClick: () => { var _a; return (_a = props.close) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: css$
|
|
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" })));
|
|
2265
2603
|
};
|
|
2266
2604
|
|
|
2267
|
-
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"};
|
|
2268
2606
|
|
|
2269
|
-
var _path$
|
|
2270
|
-
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); }
|
|
2271
2609
|
var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
2272
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2610
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
|
|
2273
2611
|
width: 66,
|
|
2274
2612
|
height: 67,
|
|
2275
2613
|
viewBox: "0 0 66 67",
|
|
2276
2614
|
fill: "none",
|
|
2277
2615
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2278
2616
|
ref: ref
|
|
2279
|
-
}, props), _path$
|
|
2617
|
+
}, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2280
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",
|
|
2281
2619
|
fill: "#EBEDF5"
|
|
2282
2620
|
})), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -2286,16 +2624,16 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
|
2286
2624
|
fill: "#6C6F80"
|
|
2287
2625
|
})));
|
|
2288
2626
|
};
|
|
2289
|
-
var ForwardRef$
|
|
2627
|
+
var ForwardRef$h = /*#__PURE__*/React.forwardRef(SvgSearchWithBackground);
|
|
2290
2628
|
|
|
2291
2629
|
class PickerModalImpl extends uuiComponents.PickerModalBase {
|
|
2292
2630
|
constructor() {
|
|
2293
2631
|
super(...arguments);
|
|
2294
2632
|
this.renderNotFound = () => {
|
|
2295
|
-
return this.props.renderNotFound ? (this.props.renderNotFound({ search: this.state.dataSourceState.search, onClose: () => this.props.success(null) })) : (React__namespace.createElement("div", { className: css$
|
|
2296
|
-
React__namespace.createElement(uuiComponents.IconContainer, { cx: css$
|
|
2297
|
-
React__namespace.createElement(Text, { cx: css$
|
|
2298
|
-
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)));
|
|
2299
2637
|
};
|
|
2300
2638
|
}
|
|
2301
2639
|
renderRow(rowProps) {
|
|
@@ -2317,7 +2655,7 @@ class PickerModalImpl extends uuiComponents.PickerModalBase {
|
|
|
2317
2655
|
return (React__namespace.createElement(ModalBlocker, Object.assign({}, this.props),
|
|
2318
2656
|
React__namespace.createElement(ModalWindow, { width: 600, height: 700 },
|
|
2319
2657
|
React__namespace.createElement(ModalHeader, { title: this.props.caption || i18n.pickerModal.headerTitle, onClose: () => this.props.abort() }),
|
|
2320
|
-
React__namespace.createElement(FlexCell, { cx: css$
|
|
2658
|
+
React__namespace.createElement(FlexCell, { cx: css$s.subHeaderWrapper },
|
|
2321
2659
|
React__namespace.createElement(FlexRow, { vPadding: "24" },
|
|
2322
2660
|
React__namespace.createElement(SearchInput, Object.assign({}, this.lens.prop('dataSourceState').prop('search').toProps(), { onKeyDown: (e) => uuiComponents.handleDataSourceKeyboard({
|
|
2323
2661
|
value: this.getDataSourceState(),
|
|
@@ -2326,7 +2664,7 @@ class PickerModalImpl extends uuiComponents.PickerModalBase {
|
|
|
2326
2664
|
rows: dataRows,
|
|
2327
2665
|
editMode: 'modal',
|
|
2328
2666
|
}, e), autoFocus: true, placeholder: i18n.pickerModal.searchPlaceholder }))),
|
|
2329
|
-
!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" }))),
|
|
2330
2668
|
this.props.renderFilter && React__namespace.createElement(FlexCell, { grow: 2 }, this.props.renderFilter(this.lens.prop('dataSourceState').prop('filter').toProps()))),
|
|
2331
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" })),
|
|
2332
2670
|
React__namespace.createElement(ModalFooter, { padding: "24", vPadding: "24" }, this.props.renderFooter ? this.props.renderFooter(this.getFooterProps()) : this.renderFooter()))));
|
|
@@ -2345,11 +2683,11 @@ class PickerModal extends React__namespace.Component {
|
|
|
2345
2683
|
|
|
2346
2684
|
const Avatar = uuiCore.withMods(uuiComponents.Avatar, () => []);
|
|
2347
2685
|
|
|
2348
|
-
var css$
|
|
2686
|
+
var css$r = {"root":"-oBec6"};
|
|
2349
2687
|
|
|
2350
|
-
const AvatarStack = uuiCore.withMods(uuiComponents.AvatarStack, () => [css$
|
|
2688
|
+
const AvatarStack = uuiCore.withMods(uuiComponents.AvatarStack, () => [css$r.root]);
|
|
2351
2689
|
|
|
2352
|
-
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"};
|
|
2353
2691
|
|
|
2354
2692
|
const defaultSize$4 = '36';
|
|
2355
2693
|
const mapSize$1 = {
|
|
@@ -2362,7 +2700,7 @@ const mapSize$1 = {
|
|
|
2362
2700
|
};
|
|
2363
2701
|
function applyBadgeMods(mods) {
|
|
2364
2702
|
return [
|
|
2365
|
-
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}`,
|
|
2366
2704
|
];
|
|
2367
2705
|
}
|
|
2368
2706
|
const Badge = uuiCore.withMods(uuiComponents.Button, applyBadgeMods, (props) => ({
|
|
@@ -2371,7 +2709,7 @@ const Badge = uuiCore.withMods(uuiComponents.Button, applyBadgeMods, (props) =>
|
|
|
2371
2709
|
countPosition: 'left',
|
|
2372
2710
|
}));
|
|
2373
2711
|
|
|
2374
|
-
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"};
|
|
2375
2713
|
|
|
2376
2714
|
const defaultSize$3 = '36';
|
|
2377
2715
|
const mapSize = {
|
|
@@ -2383,98 +2721,64 @@ const mapSize = {
|
|
|
2383
2721
|
18: '18',
|
|
2384
2722
|
};
|
|
2385
2723
|
function applyTagMods(mods) {
|
|
2386
|
-
return [css$
|
|
2724
|
+
return [css$p['size-' + (mods.size || defaultSize$3)], css$p.root];
|
|
2387
2725
|
}
|
|
2388
2726
|
const Tag = uuiCore.withMods(uuiComponents.Button, applyTagMods, (props) => ({
|
|
2389
2727
|
dropdownIcon: systemIcons[mapSize[props.size] || defaultSize$3].foldingArrow,
|
|
2390
2728
|
clearIcon: systemIcons[mapSize[props.size] || defaultSize$3].clear,
|
|
2391
2729
|
}));
|
|
2392
2730
|
|
|
2393
|
-
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"};
|
|
2394
2732
|
|
|
2395
|
-
var _path$
|
|
2396
|
-
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); }
|
|
2397
2735
|
var SvgNavigationChevronLeft12 = function SvgNavigationChevronLeft12(props, ref) {
|
|
2398
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2736
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
|
|
2399
2737
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2400
2738
|
width: 12,
|
|
2401
2739
|
height: 12,
|
|
2402
2740
|
viewBox: "0 0 12 12",
|
|
2403
2741
|
ref: ref
|
|
2404
|
-
}, props), _path$
|
|
2742
|
+
}, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2405
2743
|
fillRule: "evenodd",
|
|
2406
2744
|
d: "M7.705 3.705 7 3 4 6l3 3 .705-.705L5.415 6l2.29-2.295z",
|
|
2407
2745
|
clipRule: "evenodd"
|
|
2408
2746
|
})));
|
|
2409
2747
|
};
|
|
2410
|
-
var ForwardRef$
|
|
2748
|
+
var ForwardRef$g = /*#__PURE__*/React.forwardRef(SvgNavigationChevronLeft12);
|
|
2411
2749
|
|
|
2412
|
-
var _path$
|
|
2413
|
-
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); }
|
|
2414
2752
|
var SvgNavigationChevronRight12 = function SvgNavigationChevronRight12(props, ref) {
|
|
2415
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2753
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
|
|
2416
2754
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2417
2755
|
width: 12,
|
|
2418
2756
|
height: 12,
|
|
2419
2757
|
viewBox: "0 0 12 12",
|
|
2420
2758
|
ref: ref
|
|
2421
|
-
}, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2422
|
-
fillRule: "evenodd",
|
|
2423
|
-
d: "m5 3-.705.705L6.585 6l-2.29 2.295L5 9l3-3-3-3z",
|
|
2424
|
-
clipRule: "evenodd"
|
|
2425
|
-
})));
|
|
2426
|
-
};
|
|
2427
|
-
var ForwardRef$h = /*#__PURE__*/React.forwardRef(SvgNavigationChevronRight12);
|
|
2428
|
-
|
|
2429
|
-
var _path$f;
|
|
2430
|
-
function _extends$g() { _extends$g = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$g.apply(this, arguments); }
|
|
2431
|
-
var SvgNavigationChevronLeft18 = function SvgNavigationChevronLeft18(props, ref) {
|
|
2432
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
|
|
2433
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2434
|
-
width: 18,
|
|
2435
|
-
height: 18,
|
|
2436
|
-
viewBox: "0 0 18 18",
|
|
2437
|
-
ref: ref
|
|
2438
|
-
}, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2439
|
-
fillRule: "evenodd",
|
|
2440
|
-
d: "M11.557 5.558 10.5 4.5 6 9l4.5 4.5 1.057-1.057L8.123 9l3.434-3.442z",
|
|
2441
|
-
clipRule: "evenodd"
|
|
2442
|
-
})));
|
|
2443
|
-
};
|
|
2444
|
-
var ForwardRef$g = /*#__PURE__*/React.forwardRef(SvgNavigationChevronLeft18);
|
|
2445
|
-
|
|
2446
|
-
var _path$e;
|
|
2447
|
-
function _extends$f() { _extends$f = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$f.apply(this, arguments); }
|
|
2448
|
-
var SvgNavigationChevronRight18 = function SvgNavigationChevronRight18(props, ref) {
|
|
2449
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
|
|
2450
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2451
|
-
width: 18,
|
|
2452
|
-
height: 18,
|
|
2453
|
-
viewBox: "0 0 18 18",
|
|
2454
|
-
ref: ref
|
|
2455
2759
|
}, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2456
2760
|
fillRule: "evenodd",
|
|
2457
|
-
d: "
|
|
2761
|
+
d: "m5 3-.705.705L6.585 6l-2.29 2.295L5 9l3-3-3-3z",
|
|
2458
2762
|
clipRule: "evenodd"
|
|
2459
2763
|
})));
|
|
2460
2764
|
};
|
|
2461
|
-
var ForwardRef$f = /*#__PURE__*/React.forwardRef(
|
|
2765
|
+
var ForwardRef$f = /*#__PURE__*/React.forwardRef(SvgNavigationChevronRight12);
|
|
2462
2766
|
|
|
2463
2767
|
function Paginator(props) {
|
|
2464
2768
|
const renderPaginator = (params) => {
|
|
2465
2769
|
var _a, _b;
|
|
2466
|
-
return (React__namespace.default.createElement("nav", Object.assign({ role: "navigation", className: css$
|
|
2467
|
-
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" }),
|
|
2468
2772
|
params.pages.map((page, index) => {
|
|
2469
2773
|
var _a, _b;
|
|
2470
2774
|
if (page.type === 'spacer') {
|
|
2471
|
-
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 }));
|
|
2472
2776
|
}
|
|
2473
2777
|
else {
|
|
2474
|
-
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" }));
|
|
2475
2779
|
}
|
|
2476
2780
|
}),
|
|
2477
|
-
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" })));
|
|
2478
2782
|
};
|
|
2479
2783
|
return React__namespace.default.createElement(uuiComponents.Paginator, Object.assign({}, props, { render: renderPaginator }));
|
|
2480
2784
|
}
|
|
@@ -2482,15 +2786,15 @@ function Paginator(props) {
|
|
|
2482
2786
|
const MAX_ITEMS = 100;
|
|
2483
2787
|
const getMaxItems = (maxItems) => maxItems || maxItems === 0 ? maxItems : MAX_ITEMS;
|
|
2484
2788
|
|
|
2485
|
-
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"};
|
|
2486
2790
|
|
|
2487
2791
|
const defaultSize$2 = '36';
|
|
2488
2792
|
const defaultMode = exports.EditMode.FORM;
|
|
2489
2793
|
function applyPickerTogglerMods(mods) {
|
|
2490
2794
|
return [
|
|
2491
|
-
css$
|
|
2492
|
-
css$
|
|
2493
|
-
css$
|
|
2795
|
+
css$n.root,
|
|
2796
|
+
css$n['size-' + (mods.size || defaultSize$2)],
|
|
2797
|
+
css$n['mode-' + (mods.mode || defaultMode)],
|
|
2494
2798
|
];
|
|
2495
2799
|
}
|
|
2496
2800
|
function PickerTogglerComponent(props, ref) {
|
|
@@ -2532,7 +2836,74 @@ function PickerTogglerComponent(props, ref) {
|
|
|
2532
2836
|
}
|
|
2533
2837
|
const PickerToggler = React__namespace.forwardRef(PickerTogglerComponent);
|
|
2534
2838
|
|
|
2535
|
-
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
|
+
};
|
|
2536
2907
|
|
|
2537
2908
|
const defaultSize$1 = '36';
|
|
2538
2909
|
class PickerItem extends React__namespace.Component {
|
|
@@ -2543,20 +2914,27 @@ class PickerItem extends React__namespace.Component {
|
|
|
2543
2914
|
};
|
|
2544
2915
|
}
|
|
2545
2916
|
render() {
|
|
2546
|
-
|
|
2917
|
+
var _a;
|
|
2918
|
+
const { size, avatarUrl, isLoading, isDisabled, icon, highlightSearchMatches, } = this.props;
|
|
2547
2919
|
const itemSize = size && size !== 'none' ? size : defaultSize$1;
|
|
2548
|
-
const isMultiline = !!(title && subtitle);
|
|
2549
|
-
|
|
2550
|
-
|
|
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" },
|
|
2551
2926
|
avatarUrl && React__namespace.createElement(Avatar, { isLoading: isLoading, img: avatarUrl, size: this.getAvatarSize(itemSize, isMultiline).toString() }),
|
|
2552
2927
|
icon && React__namespace.createElement(uuiComponents.IconContainer, { icon: icon }),
|
|
2553
2928
|
React__namespace.createElement(FlexCell, { width: "auto" },
|
|
2554
|
-
title && (React__namespace.createElement(Text, { size: itemSize, cx: css$
|
|
2555
|
-
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))))));
|
|
2556
2931
|
}
|
|
2557
2932
|
}
|
|
2933
|
+
PickerItem.defaultProps = {
|
|
2934
|
+
highlightSearchMatches: true,
|
|
2935
|
+
};
|
|
2558
2936
|
|
|
2559
|
-
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"};
|
|
2560
2938
|
|
|
2561
2939
|
const pickerHeight$1 = 300;
|
|
2562
2940
|
const pickerWidth$1 = 360;
|
|
@@ -2564,7 +2942,8 @@ class PickerInput extends uuiComponents.PickerInputBase {
|
|
|
2564
2942
|
constructor() {
|
|
2565
2943
|
super(...arguments);
|
|
2566
2944
|
this.renderItem = (item, rowProps) => {
|
|
2567
|
-
|
|
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)));
|
|
2568
2947
|
};
|
|
2569
2948
|
this.renderRow = (rowProps) => {
|
|
2570
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 })));
|
|
@@ -2607,7 +2986,7 @@ class PickerInput extends uuiComponents.PickerInputBase {
|
|
|
2607
2986
|
const maxHeight = uuiCore.isMobile() ? document.documentElement.clientHeight : this.props.dropdownHeight || pickerHeight$1;
|
|
2608
2987
|
const minBodyWidth = uuiCore.isMobile() ? document.documentElement.clientWidth : this.props.minBodyWidth || pickerWidth$1;
|
|
2609
2988
|
return (React__namespace.default.createElement(Panel, { style: { width: props.togglerWidth > minBodyWidth ? props.togglerWidth : minBodyWidth }, rawProps: { tabIndex: -1 }, cx: [
|
|
2610
|
-
css$
|
|
2989
|
+
css$k.panel, uuiCore.uuiMarkers.lockFocus, this.props.bodyCx,
|
|
2611
2990
|
] },
|
|
2612
2991
|
React__namespace.default.createElement(MobileDropdownWrapper, { title: this.props.entityName, close: () => {
|
|
2613
2992
|
this.returnFocusToInput();
|
|
@@ -2623,7 +3002,7 @@ class PickerInput extends uuiComponents.PickerInputBase {
|
|
|
2623
3002
|
}
|
|
2624
3003
|
}
|
|
2625
3004
|
|
|
2626
|
-
var css$
|
|
3005
|
+
var css$j = {"row":"X01tFd"};
|
|
2627
3006
|
|
|
2628
3007
|
class PickerListItem extends React__namespace.default.Component {
|
|
2629
3008
|
render() {
|
|
@@ -2641,7 +3020,7 @@ class PickerListItem extends React__namespace.default.Component {
|
|
|
2641
3020
|
else {
|
|
2642
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) }));
|
|
2643
3022
|
}
|
|
2644
|
-
return React__namespace.default.createElement("div", { className: css$
|
|
3023
|
+
return React__namespace.default.createElement("div", { className: css$j.row }, component);
|
|
2645
3024
|
}
|
|
2646
3025
|
}
|
|
2647
3026
|
|
|
@@ -2684,22 +3063,7 @@ class PickerList extends uuiComponents.PickerListBase {
|
|
|
2684
3063
|
}
|
|
2685
3064
|
PickerList.contextType = uuiCore.UuiContext;
|
|
2686
3065
|
|
|
2687
|
-
var
|
|
2688
|
-
|
|
2689
|
-
function getDefaultExportFromCjs (x) {
|
|
2690
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
2691
|
-
}
|
|
2692
|
-
|
|
2693
|
-
var dayjs_min = {exports: {}};
|
|
2694
|
-
|
|
2695
|
-
(function (module, exports) {
|
|
2696
|
-
!function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",f="month",h="quarter",c="year",d="date",$="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},g={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,f),s=n-i<0,u=e.clone().add(r+(s?-1:1),f);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:f,y:c,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},D="en",v={};v[D]=M;var p=function(t){return t instanceof _},S=function(t,e,n){var r;if(!t)return D;if("string"==typeof t)v[t]&&(r=t),e&&(v[t]=e,r=t);else {var i=t.name;v[i]=t,r=i;}return !n&&r&&(D=r),r||!n&&D},w=function(t,e){if(p(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},O=g;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t);}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(l);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return O},m.isValid=function(){return !(this.$d.toString()===$)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<w(t)},m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!O.u(e)||e,h=O.p(t),$=function(t,e){var i=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},l=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,g="set"+(this.$u?"UTC":"");switch(h){case c:return r?$(1,0):$(31,11);case f:return r?$(1,M):$(0,M+1);case o:var D=this.$locale().weekStart||0,v=(y<D?y+7:y)-D;return $(r?m-v:m+(6-v),M);case a:case d:return l(g+"Hours",0);case u:return l(g+"Minutes",1);case s:return l(g+"Seconds",2);case i:return l(g+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=O.p(t),h="set"+(this.$u?"UTC":""),$=(n={},n[a]=h+"Date",n[d]=h+"Date",n[f]=h+"Month",n[c]=h+"FullYear",n[u]=h+"Hours",n[s]=h+"Minutes",n[i]=h+"Seconds",n[r]=h+"Milliseconds",n)[o],l=o===a?this.$D+(e-this.$W):e;if(o===f||o===c){var y=this.clone().set(d,1);y.$d[$](l),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else $&&this.$d[$](l);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[O.p(t)]()},m.add=function(r,h){var d,$=this;r=Number(r);var l=O.p(h),y=function(t){var e=w($);return O.w(e.date(e.date()+Math.round(t*r)),$)};if(l===f)return this.set(f,this.$M+r);if(l===c)return this.set(c,this.$y+r);if(l===a)return y(1);if(l===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[l]||1,m=this.$d.getTime()+r*M;return O.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||$;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,f=n.months,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].substr(0,s)},c=function(t){return O.s(s%12||12,t,"0")},d=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},l={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:O.s(a+1,2,"0"),MMM:h(n.monthsShort,a,f,3),MMMM:h(f,a),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:h(n.weekdaysMin,this.$W,o,2),ddd:h(n.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(s),HH:O.s(s,2,"0"),h:c(1),hh:c(2),a:d(s,u,!0),A:d(s,u,!1),m:String(u),mm:O.s(u,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:i};return r.replace(y,(function(t,e){return e||l[t]||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,$){var l,y=O.p(d),M=w(r),m=(M.utcOffset()-this.utcOffset())*e,g=this-M,D=O.m(this,M);return D=(l={},l[c]=D/12,l[f]=D,l[h]=D/3,l[o]=(g-m)/6048e5,l[a]=(g-m)/864e5,l[u]=g/n,l[s]=g/e,l[i]=g/t,l)[y]||g,$?D:O.a(D)},m.daysInMonth=function(){return this.endOf(f).$D},m.$locale=function(){return v[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),b=_.prototype;return w.prototype=b,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",f],["$y",c],["$D",d]].forEach((function(t){b[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),w.extend=function(t,e){return t.$i||(t(e,_,w),t.$i=!0),w},w.locale=S,w.isDayjs=p,w.unix=function(t){return w(1e3*t)},w.en=v[D],w.Ls=v,w.p={},w}));
|
|
2697
|
-
} (dayjs_min));
|
|
2698
|
-
|
|
2699
|
-
var dayjs_minExports = dayjs_min.exports;
|
|
2700
|
-
var dayjs = /*@__PURE__*/getDefaultExportFromCjs(dayjs_minExports);
|
|
2701
|
-
|
|
2702
|
-
var css$h = {"root":"FilterPanelItemToggler-module_root__6HJLW","title-wrapper":"FilterPanelItemToggler-module_title-wrapper__07dD8","title":"FilterPanelItemToggler-module_title__JaXtY","text-wrapper":"FilterPanelItemToggler-module_text-wrapper__kRoKs","selection":"FilterPanelItemToggler-module_selection__K9tGx","postfix":"FilterPanelItemToggler-module_postfix__MpS3n","selected":"FilterPanelItemToggler-module_selected__FEPzr","titleWrapper":"FilterPanelItemToggler-module_title-wrapper__07dD8","textWrapper":"FilterPanelItemToggler-module_text-wrapper__kRoKs"};
|
|
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"};
|
|
2703
3067
|
|
|
2704
3068
|
const defaultSize = '36';
|
|
2705
3069
|
const FilterPanelItemToggler = React__namespace.forwardRef((props, ref) => {
|
|
@@ -2711,15 +3075,18 @@ const FilterPanelItemToggler = React__namespace.forwardRef((props, ref) => {
|
|
|
2711
3075
|
(_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
2712
3076
|
};
|
|
2713
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"))));
|
|
2714
3081
|
return (React__namespace.createElement(uuiComponents.FlexRow, Object.assign({}, props, { rawProps: {
|
|
2715
3082
|
style: { maxWidth: `${props.maxWidth ? props.maxWidth + 'px' : 'auto'}` },
|
|
2716
3083
|
role: 'button',
|
|
2717
|
-
}, cx: cx__default.default(css$
|
|
2718
|
-
React__namespace.createElement(uuiComponents.FlexRow, { cx: css$
|
|
2719
|
-
React__namespace.createElement(Text, { size: props.size, cx: css$
|
|
2720
|
-
props.selection && (React__namespace.createElement("div", { className: css$
|
|
2721
|
-
|
|
2722
|
-
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))))),
|
|
2723
3090
|
!props.isDisabled && React__namespace.createElement(uuiComponents.IconContainer, { icon: systemIcons[props.size || defaultSize].foldingArrow, flipY: props.isOpen, cx: "uui-icon-dropdown" })));
|
|
2724
3091
|
});
|
|
2725
3092
|
|
|
@@ -2790,7 +3157,7 @@ class FilterDatePickerBody extends uuiComponents.BaseDatePicker {
|
|
|
2790
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 })),
|
|
2791
3158
|
React__namespace.default.createElement(FlexCell, { alignSelf: "stretch" },
|
|
2792
3159
|
React__namespace.default.createElement(FlexRow, { padding: "24", vPadding: "12" },
|
|
2793
|
-
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') : ''),
|
|
2794
3161
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
2795
3162
|
React__namespace.default.createElement(LinkButton, { isDisabled: !this.state.selectedDate, caption: i18n.filterToolbar.datePicker.clearCaption, onClick: this.handleCancel })))));
|
|
2796
3163
|
}
|
|
@@ -2799,12 +3166,16 @@ class FilterDatePickerBody extends uuiComponents.BaseDatePicker {
|
|
|
2799
3166
|
}
|
|
2800
3167
|
}
|
|
2801
3168
|
|
|
2802
|
-
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"};
|
|
2803
3170
|
|
|
2804
3171
|
class FilterRangeDatePickerBody extends uuiComponents.BaseRangeDatePicker {
|
|
2805
3172
|
constructor() {
|
|
2806
3173
|
super(...arguments);
|
|
2807
3174
|
this.state = Object.assign(Object.assign({}, super.getInitialState()), { inFocus: 'from' });
|
|
3175
|
+
this.changeIsOpen = (open) => {
|
|
3176
|
+
this.toggleOpening(open);
|
|
3177
|
+
this.props.onClose();
|
|
3178
|
+
};
|
|
2808
3179
|
this.renderInput = () => {
|
|
2809
3180
|
return null;
|
|
2810
3181
|
};
|
|
@@ -2812,13 +3183,13 @@ class FilterRangeDatePickerBody extends uuiComponents.BaseRangeDatePicker {
|
|
|
2812
3183
|
renderBody() {
|
|
2813
3184
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
2814
3185
|
React__namespace.createElement(FlexRow, { borderBottom: true },
|
|
2815
|
-
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 })),
|
|
2816
3187
|
React__namespace.createElement(FlexCell, { alignSelf: "stretch" },
|
|
2817
3188
|
React__namespace.createElement(FlexRow, { padding: "24", vPadding: "12" },
|
|
2818
|
-
React__namespace.createElement("div", { className: cx__default.default(css$
|
|
2819
|
-
React__namespace.createElement(TextInput, { icon: systemIcons['30'].calendar, cx: cx__default.default(css$
|
|
2820
|
-
React__namespace.createElement("div", { className: css$
|
|
2821
|
-
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') })),
|
|
2822
3193
|
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
2823
3194
|
React__namespace.createElement(LinkButton, { isDisabled: !this.state.inputValue.from && !this.state.inputValue.to, caption: i18n.pickerModal.clearAllButton, onClick: this.handleCancel })))));
|
|
2824
3195
|
}
|
|
@@ -2827,6 +3198,8 @@ class FilterRangeDatePickerBody extends uuiComponents.BaseRangeDatePicker {
|
|
|
2827
3198
|
}
|
|
2828
3199
|
}
|
|
2829
3200
|
|
|
3201
|
+
var css$g = {"container":"F1W-1y"};
|
|
3202
|
+
|
|
2830
3203
|
function FilterNumericBody(props) {
|
|
2831
3204
|
var _a, _b;
|
|
2832
3205
|
const isInRangePredicate = (props === null || props === void 0 ? void 0 : props.selectedPredicate) === 'inRange' || (props === null || props === void 0 ? void 0 : props.selectedPredicate) === 'notInRange';
|
|
@@ -2869,7 +3242,7 @@ function FilterNumericBody(props) {
|
|
|
2869
3242
|
if (isInRangePredicate) {
|
|
2870
3243
|
const value = props.value;
|
|
2871
3244
|
return (React__namespace.default.createElement("div", null,
|
|
2872
|
-
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 },
|
|
2873
3246
|
React__namespace.default.createElement(FlexCell, { width: "100%" },
|
|
2874
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 } })),
|
|
2875
3248
|
React__namespace.default.createElement(FlexCell, { width: "100%" },
|
|
@@ -2877,7 +3250,7 @@ function FilterNumericBody(props) {
|
|
|
2877
3250
|
renderFooter()));
|
|
2878
3251
|
}
|
|
2879
3252
|
return (React__namespace.default.createElement("div", null,
|
|
2880
|
-
React__namespace.default.createElement(FlexRow, { padding: "12",
|
|
3253
|
+
React__namespace.default.createElement(FlexRow, { padding: "12", alignItems: "center", borderBottom: true, cx: css$g.container },
|
|
2881
3254
|
React__namespace.default.createElement(FlexCell, { width: 130 },
|
|
2882
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 } }))),
|
|
2883
3256
|
renderFooter()));
|
|
@@ -2914,9 +3287,10 @@ var SvgActionDeleteforever12 = function SvgActionDeleteforever12(props, ref) {
|
|
|
2914
3287
|
};
|
|
2915
3288
|
var ForwardRef$e = /*#__PURE__*/React.forwardRef(SvgActionDeleteforever12);
|
|
2916
3289
|
|
|
2917
|
-
var css$f = {"header":"
|
|
3290
|
+
var css$f = {"header":"jRIFsI","removeButton":"mLf7Zx","with-search":"mSZHMj","panel":"sKiDnb","withSearch":"mSZHMj"};
|
|
2918
3291
|
|
|
2919
3292
|
function FiltersToolbarItemImpl(props) {
|
|
3293
|
+
const { maxCount = 2 } = props;
|
|
2920
3294
|
const isPickersType = (props === null || props === void 0 ? void 0 : props.type) === 'multiPicker' || (props === null || props === void 0 ? void 0 : props.type) === 'singlePicker';
|
|
2921
3295
|
const isMobileScreen = uuiCore.isMobile();
|
|
2922
3296
|
const popperModifiers = React.useMemo(() => {
|
|
@@ -3021,53 +3395,52 @@ function FiltersToolbarItemImpl(props) {
|
|
|
3021
3395
|
switch (props.type) {
|
|
3022
3396
|
case 'multiPicker': {
|
|
3023
3397
|
const view = props.dataSource.getView({}, forceUpdate);
|
|
3024
|
-
const postfix = (currentValue === null || currentValue === void 0 ? void 0 : currentValue.length) > 2 ? ` +${(currentValue.length - 2).toString()} ${i18n.filterToolbar.pickerInput.itemsPlaceholder}` : null;
|
|
3025
3398
|
let isLoading = false;
|
|
3026
3399
|
const selection = currentValue
|
|
3027
|
-
? currentValue === null || currentValue === void 0 ? void 0 : currentValue.slice(0,
|
|
3400
|
+
? currentValue === null || currentValue === void 0 ? void 0 : currentValue.slice(0, maxCount).map((i) => {
|
|
3028
3401
|
const item = view.getById(i, null);
|
|
3029
3402
|
isLoading = item.isLoading;
|
|
3030
3403
|
return getPickerItemName(item, props);
|
|
3031
3404
|
})
|
|
3032
|
-
:
|
|
3033
|
-
const
|
|
3034
|
-
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 };
|
|
3035
3408
|
}
|
|
3036
3409
|
case 'numeric': {
|
|
3037
3410
|
const isRangePredicate = predicate === 'inRange' || predicate === 'notInRange';
|
|
3038
3411
|
const decimalFormat = (val) => uuiCore.getSeparatedValue(val, { maximumFractionDigits: 2 });
|
|
3039
3412
|
if ((isRangePredicate && !currentValue) || (!isRangePredicate && !currentValue && currentValue !== 0)) {
|
|
3040
|
-
return { selection:
|
|
3413
|
+
return { selection: undefined };
|
|
3041
3414
|
}
|
|
3042
3415
|
const selection = isRangePredicate
|
|
3043
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)}`
|
|
3044
3417
|
: `${!currentValue && currentValue !== 0 ? 'ALL' : decimalFormat(currentValue)}`;
|
|
3045
|
-
return { selection };
|
|
3418
|
+
return { selection: [selection] };
|
|
3046
3419
|
}
|
|
3047
3420
|
case 'singlePicker': {
|
|
3048
3421
|
const view = props.dataSource.getView({}, forceUpdate);
|
|
3049
3422
|
if (currentValue === null || currentValue === undefined) {
|
|
3050
|
-
return { selection:
|
|
3423
|
+
return { selection: undefined };
|
|
3051
3424
|
}
|
|
3052
3425
|
const item = view.getById(currentValue, null);
|
|
3053
3426
|
const selection = getPickerItemName(item, props);
|
|
3054
|
-
return { selection };
|
|
3427
|
+
return { selection: [selection] };
|
|
3055
3428
|
}
|
|
3056
3429
|
case 'datePicker': {
|
|
3057
|
-
return { selection: currentValue ?
|
|
3430
|
+
return { selection: currentValue ? [dayjs__default.default(currentValue).format(props.format || defaultFormat)] : currentValue };
|
|
3058
3431
|
}
|
|
3059
3432
|
case 'rangeDatePicker': {
|
|
3060
3433
|
if (!currentValue || (!currentValue.from && !currentValue.to)) {
|
|
3061
|
-
return { selection:
|
|
3434
|
+
return { selection: undefined };
|
|
3062
3435
|
}
|
|
3063
3436
|
const currentValueFrom = (currentValue === null || currentValue === void 0 ? void 0 : currentValue.from)
|
|
3064
|
-
?
|
|
3437
|
+
? dayjs__default.default(currentValue === null || currentValue === void 0 ? void 0 : currentValue.from).format(props.format || defaultFormat)
|
|
3065
3438
|
: i18n.filterToolbar.rangeDatePicker.emptyPlaceholderFrom;
|
|
3066
3439
|
const currentValueTo = (currentValue === null || currentValue === void 0 ? void 0 : currentValue.to)
|
|
3067
|
-
?
|
|
3440
|
+
? dayjs__default.default(currentValue === null || currentValue === void 0 ? void 0 : currentValue.to).format(props.format || defaultFormat)
|
|
3068
3441
|
: i18n.filterToolbar.rangeDatePicker.emptyPlaceholderTo;
|
|
3069
3442
|
const selection = `${currentValueFrom} - ${currentValueTo}`;
|
|
3070
|
-
return { selection };
|
|
3443
|
+
return { selection: [selection] };
|
|
3071
3444
|
}
|
|
3072
3445
|
}
|
|
3073
3446
|
};
|
|
@@ -3204,9 +3577,9 @@ function FiltersToolbarImpl(props) {
|
|
|
3204
3577
|
}
|
|
3205
3578
|
const FiltersPanel = React__namespace.default.memo(FiltersToolbarImpl);
|
|
3206
3579
|
|
|
3207
|
-
var css$e = {"divider":"
|
|
3580
|
+
var css$e = {"divider":"MDnNWz","dropdownDeleteIcon":"Vd3PlN","presetsWrapper":"jYiW9G","addPresetContainer":"xLidLo","dropContainer":"tFbLLz"};
|
|
3208
3581
|
|
|
3209
|
-
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"};
|
|
3210
3583
|
|
|
3211
3584
|
var _path$b;
|
|
3212
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); }
|
|
@@ -3346,7 +3719,7 @@ function PresetActionsDropdown(props) {
|
|
|
3346
3719
|
return (React__namespace.default.createElement(Panel, { shadow: true, cx: css$d.presetDropdownPanel },
|
|
3347
3720
|
props.activePresetId === props.preset.id && props.hasPresetChanged(props.preset) && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
3348
3721
|
!isReadonlyPreset && (React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-save-in-current` },
|
|
3349
|
-
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$
|
|
3722
|
+
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$o, caption: "Save in current", onClick: saveInCurrentHandler }))),
|
|
3350
3723
|
React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-save-as-new` },
|
|
3351
3724
|
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$c, caption: "Save as new", onClick: props.addPreset })),
|
|
3352
3725
|
React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-discard`, borderBottom: true },
|
|
@@ -3361,12 +3734,12 @@ function PresetActionsDropdown(props) {
|
|
|
3361
3734
|
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$7, caption: "Delete", cx: css$d.deleteButton, onClick: deleteHandler })))));
|
|
3362
3735
|
};
|
|
3363
3736
|
const renderTarget = React.useCallback((dropdownProps) => {
|
|
3364
|
-
return (React__namespace.default.createElement(IconButton, Object.assign({ cx: dropdownProps.isOpen && css$d.targetOpen, color: props.preset.id === props.activePresetId ? 'info' : 'default' }, dropdownProps, { icon: ForwardRef$
|
|
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 })));
|
|
3365
3738
|
}, []);
|
|
3366
3739
|
return (React__namespace.default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end", modifiers: [{ name: 'offset', options: { offset: [0, 22] } }] }));
|
|
3367
3740
|
}
|
|
3368
3741
|
|
|
3369
|
-
var css$c = {"preset-input-cell":"
|
|
3742
|
+
var css$c = {"preset-input-cell":"vUxmY-","preset-input":"Q2zG4D","presetInputCell":"vUxmY-","presetInput":"Q2zG4D"};
|
|
3370
3743
|
|
|
3371
3744
|
function PresetInput(props) {
|
|
3372
3745
|
var _a;
|
|
@@ -3391,7 +3764,7 @@ function PresetInput(props) {
|
|
|
3391
3764
|
React__namespace.default.createElement(TextInput, { cx: css$c.presetInput, onValueChange: setPresetCaption, value: presetCaption, onCancel: cancelActionHandler, onAccept: acceptActionHandler, onBlur: newPresetOnBlurHandler, autoFocus: true, maxLength: 50 })));
|
|
3392
3765
|
}
|
|
3393
3766
|
|
|
3394
|
-
var css$b = {"preset":"
|
|
3767
|
+
var css$b = {"preset":"LkHKYv","activePreset":"X5qfz4"};
|
|
3395
3768
|
|
|
3396
3769
|
function Preset(props) {
|
|
3397
3770
|
const [isRenamePreset, setIsRenamePreset] = React.useState(false);
|
|
@@ -3479,19 +3852,13 @@ const defaultPredicates = {
|
|
|
3479
3852
|
rangeDatePicker: [{ predicate: 'inRange', name: 'In Range', isDefault: true }, { predicate: 'notInRange', name: 'Not in Range' }],
|
|
3480
3853
|
};
|
|
3481
3854
|
|
|
3482
|
-
var css$a = {"root":"
|
|
3855
|
+
var css$a = {"root":"ku9N6M"};
|
|
3483
3856
|
|
|
3484
|
-
|
|
3485
|
-
return [css$a.root];
|
|
3486
|
-
}
|
|
3487
|
-
const MainMenu = uuiCore.withMods(uuiComponents.MainMenu, applyMainMenuMods, () => ({
|
|
3488
|
-
Burger,
|
|
3489
|
-
MainMenuDropdown,
|
|
3490
|
-
}));
|
|
3857
|
+
var css$9 = {"root":"_1Eu1XE","burger-content":"HArkk-","burgerContent":"HArkk-"};
|
|
3491
3858
|
|
|
3492
3859
|
var _path$4;
|
|
3493
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); }
|
|
3494
|
-
var
|
|
3861
|
+
var SvgBurger = function SvgBurger(props, ref) {
|
|
3495
3862
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
|
|
3496
3863
|
width: 60,
|
|
3497
3864
|
height: 60,
|
|
@@ -3499,62 +3866,39 @@ var SvgGlobalMenu = function SvgGlobalMenu(props, ref) {
|
|
|
3499
3866
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3500
3867
|
ref: ref
|
|
3501
3868
|
}, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3502
|
-
|
|
3503
|
-
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"
|
|
3504
3870
|
})));
|
|
3505
3871
|
};
|
|
3506
|
-
var ForwardRef$5 = /*#__PURE__*/React.forwardRef(
|
|
3507
|
-
|
|
3508
|
-
var css$9 = {"global-menu-btn":"GlobalMenu-module_global-menu-btn__VNGyq","globalMenuIcon":"GlobalMenu-module_globalMenuIcon__BTMLp","globalMenuBtn":"GlobalMenu-module_global-menu-btn__VNGyq"};
|
|
3509
|
-
|
|
3510
|
-
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),
|
|
3511
|
-
React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$5, cx: css$9.globalMenuIcon }))));
|
|
3512
|
-
|
|
3513
|
-
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);
|
|
3514
3873
|
|
|
3515
3874
|
var _path$3;
|
|
3516
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); }
|
|
3517
|
-
var SvgBurger = function SvgBurger(props, ref) {
|
|
3518
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
|
|
3519
|
-
width: 60,
|
|
3520
|
-
height: 60,
|
|
3521
|
-
viewBox: "0 0 24 24",
|
|
3522
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
3523
|
-
ref: ref
|
|
3524
|
-
}, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3525
|
-
d: "M8 9.2h8v.8H8zM8 14h6v.8H8zm0-2.4h8v.8H8z"
|
|
3526
|
-
})));
|
|
3527
|
-
};
|
|
3528
|
-
var ForwardRef$4 = /*#__PURE__*/React.forwardRef(SvgBurger);
|
|
3529
|
-
|
|
3530
|
-
var _path$2;
|
|
3531
|
-
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); }
|
|
3532
3876
|
var SvgBurgerClose = function SvgBurgerClose(props, ref) {
|
|
3533
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3877
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
|
|
3534
3878
|
width: 60,
|
|
3535
3879
|
height: 60,
|
|
3536
3880
|
viewBox: "0 0 60 60",
|
|
3537
3881
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3538
3882
|
ref: ref
|
|
3539
|
-
}, props), _path$
|
|
3883
|
+
}, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3540
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"
|
|
3541
3885
|
})));
|
|
3542
3886
|
};
|
|
3543
|
-
var ForwardRef$
|
|
3887
|
+
var ForwardRef$4 = /*#__PURE__*/React.forwardRef(SvgBurgerClose);
|
|
3544
3888
|
|
|
3545
3889
|
function applyBurgerMods() {
|
|
3546
|
-
return [css$
|
|
3890
|
+
return [css$9.root];
|
|
3547
3891
|
}
|
|
3548
3892
|
const Burger = uuiCore.withMods(uuiComponents.Burger, applyBurgerMods, () => ({
|
|
3549
|
-
burgerIcon: ForwardRef$
|
|
3550
|
-
crossIcon: ForwardRef$
|
|
3551
|
-
burgerContentCx: css$
|
|
3893
|
+
burgerIcon: ForwardRef$5,
|
|
3894
|
+
crossIcon: ForwardRef$4,
|
|
3895
|
+
burgerContentCx: css$9.burgerContent,
|
|
3552
3896
|
}));
|
|
3553
3897
|
|
|
3554
|
-
var _g, _path$
|
|
3555
|
-
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); }
|
|
3556
3900
|
var SvgTriangle = function SvgTriangle(props, ref) {
|
|
3557
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3901
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
|
|
3558
3902
|
width: 12,
|
|
3559
3903
|
height: 24,
|
|
3560
3904
|
viewBox: "0 0 12 24",
|
|
@@ -3571,21 +3915,21 @@ var SvgTriangle = function SvgTriangle(props, ref) {
|
|
|
3571
3915
|
cx: 12,
|
|
3572
3916
|
cy: 302.65,
|
|
3573
3917
|
r: 18
|
|
3574
|
-
}))), _path$
|
|
3918
|
+
}))), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3575
3919
|
d: "m5 14-4-4h8z"
|
|
3576
3920
|
})));
|
|
3577
3921
|
};
|
|
3578
|
-
var ForwardRef$
|
|
3922
|
+
var ForwardRef$3 = /*#__PURE__*/React.forwardRef(SvgTriangle);
|
|
3579
3923
|
|
|
3580
|
-
var css$
|
|
3924
|
+
var css$8 = {"root":"zAjemh","button-primary":"pzY3LX","button-secondary":"c5TsnA","hasIcon":"_9gEwVf","dropdown":"TfhNho","buttonPrimary":"pzY3LX","buttonSecondary":"c5TsnA"};
|
|
3581
3925
|
|
|
3582
3926
|
const BurgerButton = uuiCore.withMods(uuiComponents.Button, (props) => [
|
|
3583
|
-
css$
|
|
3584
|
-
], () => ({ 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' }));
|
|
3585
3929
|
|
|
3586
|
-
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); }
|
|
3587
3931
|
var SvgMenuInputCancel = function SvgMenuInputCancel(props, ref) {
|
|
3588
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3932
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
|
|
3589
3933
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3590
3934
|
width: 18,
|
|
3591
3935
|
height: 24,
|
|
@@ -3627,67 +3971,48 @@ var SvgMenuInputCancel = function SvgMenuInputCancel(props, ref) {
|
|
|
3627
3971
|
transform: "matrix(3.77953 0 0 3.77953 -369 -648.52)"
|
|
3628
3972
|
})));
|
|
3629
3973
|
};
|
|
3630
|
-
var ForwardRef$
|
|
3974
|
+
var ForwardRef$2 = /*#__PURE__*/React.forwardRef(SvgMenuInputCancel);
|
|
3631
3975
|
|
|
3632
|
-
var css$
|
|
3976
|
+
var css$7 = {"search-input":"-A2C1p","searchInput":"-A2C1p"};
|
|
3633
3977
|
|
|
3634
3978
|
function BurgerSearch(props) {
|
|
3635
|
-
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 }));
|
|
3636
3980
|
}
|
|
3637
3981
|
|
|
3638
|
-
var css$
|
|
3982
|
+
var css$6 = {"group-header":"mbhWD6","group-name":"EZhmB1","line":"iHRlJA","groupHeader":"mbhWD6","groupName":"EZhmB1"};
|
|
3639
3983
|
|
|
3640
3984
|
function BurgerGroupHeader(props) {
|
|
3641
|
-
return (React__namespace.createElement("div", { className: css$
|
|
3642
|
-
React__namespace.createElement("hr", { className: css$
|
|
3643
|
-
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)));
|
|
3644
3988
|
}
|
|
3645
3989
|
|
|
3646
|
-
var css$
|
|
3647
|
-
|
|
3648
|
-
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 },
|
|
3649
|
-
React__namespace.createElement(uuiComponents.Avatar, { size: "36", img: props.avatarUrl }),
|
|
3650
|
-
props.icon && React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon }),
|
|
3651
|
-
props.isDropdown && (React__namespace.createElement("div", null,
|
|
3652
|
-
React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$11, flipY: props.isOpen }))))));
|
|
3653
|
-
|
|
3654
|
-
var css$3 = {"search-input":"MainMenuSearch-module_search-input__AdkL1","searchInput":"MainMenuSearch-module_search-input__AdkL1"};
|
|
3655
|
-
|
|
3656
|
-
const MainMenuSearch = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(uuiCore.IEditableDebouncer, Object.assign({}, props, { render: (iEditable) => {
|
|
3657
|
-
var _a;
|
|
3658
|
-
return (React__namespace.createElement(uuiComponents.TextInput, Object.assign({ iconPosition: "left", icon: ForwardRef$X, cancelIcon: ((_a = props.value) === null || _a === void 0 ? void 0 : _a.length) > 0 && ForwardRef$1 }, props, iEditable, { ref: ref, cx: uuiCore.cx(css$3.searchInput, props.cx) }, props.rawProps)));
|
|
3659
|
-
} }))));
|
|
3660
|
-
|
|
3661
|
-
var css$2 = {"container":"MainMenuIcon-module_container__6NlKF"};
|
|
3662
|
-
|
|
3663
|
-
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"};
|
|
3664
3991
|
|
|
3665
|
-
var
|
|
3666
|
-
|
|
3667
|
-
var _path;
|
|
3668
|
-
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); }
|
|
3669
3994
|
var SvgChevronDown24 = function SvgChevronDown24(props, ref) {
|
|
3670
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
3995
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
|
|
3671
3996
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3672
3997
|
width: 24,
|
|
3673
3998
|
height: 24,
|
|
3674
3999
|
viewBox: "0 0 24 24",
|
|
3675
4000
|
ref: ref
|
|
3676
|
-
}, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4001
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3677
4002
|
fillRule: "evenodd",
|
|
3678
4003
|
d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
|
|
3679
4004
|
})));
|
|
3680
4005
|
};
|
|
3681
|
-
var ForwardRef = /*#__PURE__*/React.forwardRef(SvgChevronDown24);
|
|
4006
|
+
var ForwardRef$1 = /*#__PURE__*/React.forwardRef(SvgChevronDown24);
|
|
3682
4007
|
|
|
3683
|
-
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' }));
|
|
3684
4009
|
|
|
3685
|
-
var css = {"dropdown-body":"
|
|
4010
|
+
var css$4 = {"dropdown-body":"_5zLnDY","dropdownBody":"_5zLnDY"};
|
|
3686
4011
|
|
|
3687
4012
|
class MainMenuDropdown extends React__namespace.Component {
|
|
3688
4013
|
render() {
|
|
3689
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) => {
|
|
3690
|
-
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
|
|
3691
4016
|
? this.props.renderBody(Object.assign({}, props))
|
|
3692
4017
|
: React__namespace.Children.map(this.props.children, (item) => {
|
|
3693
4018
|
if (!item)
|
|
@@ -3703,6 +4028,54 @@ class MainMenuDropdown extends React__namespace.Component {
|
|
|
3703
4028
|
}
|
|
3704
4029
|
}
|
|
3705
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
|
+
|
|
3706
4079
|
const Anchor = uuiComponents.Anchor;
|
|
3707
4080
|
|
|
3708
4081
|
function Form(props) {
|
|
@@ -3864,21 +4237,24 @@ exports.allTextSizes = allTextSizes;
|
|
|
3864
4237
|
exports.applyBadgeMods = applyBadgeMods;
|
|
3865
4238
|
exports.applyButtonMods = applyButtonMods;
|
|
3866
4239
|
exports.applyCheckboxMods = applyCheckboxMods;
|
|
3867
|
-
exports.applyDatePickerBodyMods = applyDatePickerBodyMods;
|
|
3868
4240
|
exports.applyDateSelectionMods = applyDateSelectionMods;
|
|
3869
4241
|
exports.applyNumericInputMods = applyNumericInputMods;
|
|
3870
|
-
exports.applyRangeDatePickerBodyMods = applyRangeDatePickerBodyMods;
|
|
3871
4242
|
exports.applySpinnerMods = applySpinnerMods;
|
|
3872
4243
|
exports.applySwitchMods = applySwitchMods;
|
|
3873
4244
|
exports.applyTagMods = applyTagMods;
|
|
3874
4245
|
exports.applyTextAreaMods = applyTextAreaMods;
|
|
3875
4246
|
exports.applyTextInputMods = applyTextInputMods;
|
|
3876
4247
|
exports.defaultPredicates = defaultPredicates;
|
|
4248
|
+
exports.getHighlightRanges = getHighlightRanges;
|
|
4249
|
+
exports.getHighlightedSearchMatches = getHighlightedSearchMatches;
|
|
3877
4250
|
exports.getTextClasses = getTextClasses;
|
|
3878
4251
|
exports.i18n = i18n;
|
|
3879
4252
|
exports.propsMods = propsMods;
|
|
4253
|
+
exports.rangeDatePickerPresets = rangeDatePickerPresets;
|
|
3880
4254
|
exports.renderCell = renderCell;
|
|
3881
4255
|
exports.renderDropMarkers = renderDropMarkers;
|
|
3882
4256
|
exports.useColumnsWithFilters = useColumnsWithFilters;
|
|
3883
4257
|
exports.useForm = useForm;
|
|
4258
|
+
exports.uuiDatePickerBody = uuiDatePickerBody;
|
|
4259
|
+
exports.weekCount = weekCount;
|
|
3884
4260
|
//# sourceMappingURL=index.js.map
|