@epam/uui 5.1.0 → 5.1.2-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/datePickers/DatePicker.d.ts.map +1 -1
- package/components/datePickers/DatePickerBody.d.ts +17 -3
- package/components/datePickers/DatePickerBody.d.ts.map +1 -1
- package/components/datePickers/DatePickerHeader.d.ts +16 -0
- package/components/datePickers/DatePickerHeader.d.ts.map +1 -0
- package/components/datePickers/RangeDatePicker.d.ts +1 -1
- package/components/datePickers/RangeDatePicker.d.ts.map +1 -1
- package/components/datePickers/RangeDatePickerBody.d.ts +34 -3
- package/components/datePickers/RangeDatePickerBody.d.ts.map +1 -1
- package/components/filters/FilterNumericBody.d.ts.map +1 -1
- package/components/filters/FilterPanelItemToggler.d.ts +1 -1
- package/components/filters/FilterPanelItemToggler.d.ts.map +1 -1
- package/components/filters/FilterPickerBody.d.ts +4 -4
- package/components/filters/FilterPickerBody.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/Burger/Burger.d.ts +1 -2
- package/components/navigation/MainMenu/Burger/Burger.d.ts.map +1 -1
- package/components/navigation/MainMenu/MainMenu.d.ts.map +1 -1
- package/components/overlays/DropdownMenu.d.ts.map +1 -1
- package/components/pickers/PickerInput.d.ts.map +1 -1
- package/components/pickers/PickerItem.d.ts +10 -1
- package/components/pickers/PickerItem.d.ts.map +1 -1
- package/components/pickers/highlight.d.ts +8 -0
- package/components/pickers/highlight.d.ts.map +1 -0
- package/components/pickers/index.d.ts +1 -0
- package/components/pickers/index.d.ts.map +1 -1
- package/components/tables/DataTable.d.ts +2 -1
- package/components/tables/DataTable.d.ts.map +1 -1
- package/components/tables/DataTableHeaderCell.d.ts +1 -0
- package/components/tables/DataTableHeaderCell.d.ts.map +1 -1
- package/components/tables/columnsConfigurationModal/ColumnRow.d.ts +4 -2
- package/components/tables/columnsConfigurationModal/ColumnRow.d.ts.map +1 -1
- package/components/tables/columnsConfigurationModal/ColumnsConfigurationModal.d.ts +4 -3
- package/components/tables/columnsConfigurationModal/ColumnsConfigurationModal.d.ts.map +1 -1
- package/components/widgets/AvatarStack.d.ts +1 -2
- package/components/widgets/AvatarStack.d.ts.map +1 -1
- package/components/widgets/Spinner.d.ts +1 -2
- package/components/widgets/Spinner.d.ts.map +1 -1
- package/components/widgets/index.d.ts +1 -1
- package/components/widgets/index.d.ts.map +1 -1
- package/index.esm.js +1105 -739
- package/index.esm.js.map +1 -1
- package/index.js +1118 -743
- package/index.js.map +1 -1
- package/package.json +6 -8
- package/stats.html +90 -1429
- package/styles.css +1308 -1301
- package/styles.css.map +1 -1
- package/components/widgets/Avatar.d.ts +0 -3
- package/components/widgets/Avatar.d.ts.map +0 -1
package/index.js
CHANGED
|
@@ -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":"_4fJioJ","mode-solid":"S40r60","mode-outline":"eyXiiV","mode-none":"DVI8HL","mode-ghost":"g5Tukw","size-18":"WRnz4G","size-24":"_8-U3oD","size-30":"_2ohT0e","size-36":"SS9cWQ","size-42":"FlAuvO","size-48":"EPzMwa","modeSolid":"S40r60","modeOutline":"eyXiiV","modeNone":"DVI8HL","modeGhost":"g5Tukw","size18":"WRnz4G","size24":"_8-U3oD","size30":"_2ohT0e","size36":"SS9cWQ","size42":"FlAuvO","size48":"EPzMwa"};
|
|
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":"fGQpaf"};
|
|
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":"UXGuJ4","size-18":"_6L5wx3","size-24":"dpCf4P","size-30":"Cjq9tB","size-36":"vs4S6u","size-42":"PnAX3x","size-48":"Vh3cz7","size18":"_6L5wx3","size24":"dpCf4P","size30":"Cjq9tB","size36":"vs4S6u","size42":"PnAX3x","size48":"Vh3cz7"};
|
|
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":"hw0iV8","uui-notification":"DkTsaR","size-36":"_3RSI6q","size-48":"m88q-d","size-60":"_5m7qeO","uuiNotification":"DkTsaR","size36":"_3RSI6q","size48":"m88q-d","size60":"_5m7qeO"};
|
|
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":"-dO-yr"};
|
|
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":"JqNkTD","size-18":"_1cuAHB","size-12":"iJ-OQ6","mode-cell":"dvBpX1","size18":"_1cuAHB","size12":"iJ-OQ6","modeCell":"dvBpX1"};
|
|
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":"aSc4qt","size-18":"tI82BE","size-12":"xR8yMt","size18":"tI82BE","size12":"xR8yMt"};
|
|
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":"AazXmN","size-12":"_7eHYtR","size-18":"_10xnlM","size-24":"DvvJPD","size12":"_7eHYtR","size18":"_10xnlM","size24":"DvvJPD"};
|
|
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":"_7tFalJ","mode-form":"lQDf73","mode-inline":"UcBsxR","mode-cell":"n7DuZl","size-24":"HklOsu","size-30":"_-2yes0","size-36":"Bjwrip","size-42":"GBgUAa","size-48":"Bn4SmK","modeForm":"lQDf73","modeInline":"UcBsxR","modeCell":"n7DuZl","size24":"HklOsu","size30":"_-2yes0","size36":"Bjwrip","size42":"GBgUAa","size48":"Bn4SmK"};
|
|
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":"V6yD9w","mode-block":"-URH3-","mode-inline":"LjBfCF","padding-0":"JulrA7","padding-6":"ug1rMO","padding-12":"lcGRRX","padding-18":"_7Brba8","modeBlock":"-URH3-","modeInline":"LjBfCF","padding0":"JulrA7","padding6":"ug1rMO","padding12":"lcGRRX","padding18":"_7Brba8"};
|
|
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":"HHbWN-"};
|
|
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":"iudrn-","border-bottom":"uoE0AB","top-shadow":"mW2zbw","size-24":"Fm5eOn","size-30":"AJS-l2","size-36":"_6WWBFy","size-42":"xX4Smz","size-48":"q7cyn-","padding-6":"onBRxT","padding-12":"BzYw2c","padding-18":"-Dnwd3","padding-24":"jW68Qw","margin-24":"_4mv8KH","margin-12":"CXkR-a","vPadding-12":"HUIRvu","vPadding-18":"b-frUC","vPadding-24":"Nu1b5F","vPadding-36":"Rb6he-","vPadding-48":"-SEwDG","spacing-6":"H8TGKl","spacing-12":"iq4HIh","spacing-18":"l3kNa-","borderBottom":"uoE0AB","topShadow":"mW2zbw","size24":"Fm5eOn","size30":"AJS-l2","size36":"_6WWBFy","size42":"xX4Smz","size48":"q7cyn-","padding6":"onBRxT","padding12":"BzYw2c","padding18":"-Dnwd3","padding24":"jW68Qw","margin24":"_4mv8KH","margin12":"CXkR-a","vPadding12":"HUIRvu","vPadding18":"b-frUC","vPadding24":"Nu1b5F","vPadding36":"Rb6he-","vPadding48":"-SEwDG","spacing6":"H8TGKl","spacing12":"iq4HIh","spacing18":"l3kNa-"};
|
|
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":"UkNKhg","margin-24":"DwSoXt","padding-12":"BndJnk","padding-24":"lNy9ra","shadow":"_1iiiOQ","margin24":"DwSoXt","padding12":"BndJnk","padding24":"lNy9ra"};
|
|
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":"IhkNkR","icon-wrapper":"UoiR5M","alert-wrapper":"lSmwjX","action-wrapper":"_4q8Sy9","action-icon":"vOOA55","action-link":"ZlNLEM","close-icon":"K4Mdeq","main-path":"TNbAcz","content":"M4HsGM","iconWrapper":"UoiR5M","alertWrapper":"lSmwjX","actionWrapper":"_4q8Sy9","actionIcon":"vOOA55","actionLink":"ZlNLEM","closeIcon":"K4Mdeq","mainPath":"TNbAcz"};
|
|
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":"aUMHt3"};
|
|
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":"_0IwDzf","bodyRoot":"XjCPl1","submenuRootItem":"u3Ezje","iconAfter":"UaTTQ2","iconCheck":"_0ysbqM","splitterRoot":"VCe5tb","splitter":"avDZi2","headerRoot":"zXAgLP","itemRoot":"_3WQgDQ","icon":"HGBeO9","link":"ZbsS9t"};
|
|
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":"vVtKEo"};
|
|
980
1006
|
|
|
981
|
-
var css$
|
|
1007
|
+
var css$V = {"line-height-12":"xCWCE1","line-height-18":"g4wYac","line-height-24":"_83NK7e","line-height-30":"zLQkOu","font-size-10":"Ge49ZO","font-size-12":"t1EBii","font-size-14":"AWS33M","font-size-16":"-OjYrJ","font-size-18":"OhlZKI","font-size-24":"-Cb7Xh","v-padding-2":"fpf7Rc","v-padding-3":"MrmJzl","v-padding-5":"YcJ7OG","v-padding-6":"ygu-aa","v-padding-8":"k1875J","v-padding-9":"OxP681","v-padding-11":"-Tv7qg","v-padding-12":"Hsl4TY","v-padding-14":"rZV7Pf","v-padding-15":"MpPK9h","v-padding-17":"BRTVsV","v-padding-18":"OEyrSE","v-padding-23":"HkvkfQ","v-padding-24":"PtN2x3","lineHeight12":"xCWCE1","lineHeight18":"g4wYac","lineHeight24":"_83NK7e","lineHeight30":"zLQkOu","fontSize10":"Ge49ZO","fontSize12":"t1EBii","fontSize14":"AWS33M","fontSize16":"-OjYrJ","fontSize18":"OhlZKI","fontSize24":"-Cb7Xh","vPadding2":"fpf7Rc","vPadding3":"MrmJzl","vPadding5":"YcJ7OG","vPadding6":"ygu-aa","vPadding8":"k1875J","vPadding9":"OxP681","vPadding11":"-Tv7qg","vPadding12":"Hsl4TY","vPadding14":"rZV7Pf","vPadding15":"MpPK9h","vPadding17":"BRTVsV","vPadding18":"OEyrSE","vPadding23":"HkvkfQ","vPadding24":"PtN2x3"};
|
|
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":"-ItGBf","loading-word":"X8Hxee","animated-loading":"gZa-57","skeleton_loading":"FnnKz2","loadingWord":"X8Hxee","animatedLoading":"gZa-57","skeletonLoading":"FnnKz2"};
|
|
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":"NFDYIg","typography-14":"zOWEaK","typography-12":"EkZCnq","typography-uui":"q2bNH2","typography16":"NFDYIg","typography14":"zOWEaK","typography12":"EkZCnq","typographyUui":"q2bNH2"};
|
|
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":"_9zNAJB","animateModalBlocker":"B0v-Y-","modal":"Vmbad3","modal-footer":"N9ejK8","border-top":"-Zp9Su","modal-header":"FVirmU","modalBlocker":"_9zNAJB","modalFooter":"N9ejK8","borderTop":"-Zp9Su","modalHeader":"FVirmU"};
|
|
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":"mRHl5Z","icon-wrapper":"D5UKRC","action-wrapper":"dza-Ft","action-link":"qg3GfZ","close-icon":"L1132n","main-path":"t8f-rU","content":"l30KES","clear-button":"tYZX2z","close-wrapper":"_7Zqo3I","iconWrapper":"D5UKRC","actionWrapper":"dza-Ft","actionLink":"qg3GfZ","closeIcon":"L1132n","mainPath":"t8f-rU","clearButton":"tYZX2z","closeWrapper":"_7Zqo3I"};
|
|
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":"feq4iP"};
|
|
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":"_3nhIwH","size-24":"aL6J8t","size-30":"_6r6WUl","size-36":"qwrVsx","size-42":"_4ybWxg","size-48":"_3E27KS","size24":"aL6J8t","size30":"_6r6WUl","size36":"qwrVsx","size42":"_4ybWxg","size48":"_3E27KS"};
|
|
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":"RLVvqa"};
|
|
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":"_4hvZK1"};
|
|
1254
1280
|
|
|
1255
|
-
var css$
|
|
1281
|
+
var css$N = {"root":"DV4yMs","uui-spinner":"wQa-gr","uuiSpinner":"wQa-gr"};
|
|
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":"Mk-du2"};
|
|
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":"a0oGuf","size-24":"IfCy4f","size-30":"X5Bncv","size-36":"QmKm27","size-42":"lec6B4","size-48":"BDLUmj","mode-form":"SuUy3B","mode-cell":"Ur4Nhe","size24":"IfCy4f","size30":"X5Bncv","size36":"QmKm27","size42":"lec6B4","size48":"BDLUmj","modeForm":"SuUy3B","modeCell":"Ur4Nhe"};
|
|
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":"HM3m07","mode-form":"pdBu4o","mode-cell":"-Alcy2","mode-inline":"an-YXi","size-24":"_31pIs0","size-30":"A2OLVu","size-36":"woronH","size-42":"iohRi0","size-48":"lFxJ-d","modeForm":"pdBu4o","modeCell":"-Alcy2","modeInline":"an-YXi","size24":"_31pIs0","size30":"A2OLVu","size36":"woronH","size42":"iohRi0","size48":"lFxJ-d"};
|
|
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":"nopCwI"};
|
|
1307
1333
|
|
|
1308
|
-
var
|
|
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);
|
|
1309
1350
|
|
|
1310
|
-
|
|
1311
|
-
|
|
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":"w2hCHl"};
|
|
1448
|
+
|
|
1449
|
+
function applyDateSelectionMods() {
|
|
1450
|
+
return [css$I.root];
|
|
1451
|
+
}
|
|
1452
|
+
const Calendar = uuiCore.withMods(uuiComponents.Calendar, applyDateSelectionMods);
|
|
1453
|
+
|
|
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);
|
|
1517
|
+
var css$H = {"root":"rTcsX1"};
|
|
1336
1518
|
|
|
1337
|
-
|
|
1338
|
-
|
|
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":"D-Vrlv","container":"cJUBnX","day-selection":"PEa3hs","from-picker":"Uq8mPE","to-picker":"uYVuJF","bodes-wrapper":"gT2-w9","blocker":"h9KlD3","daySelection":"PEa3hs","fromPicker":"Uq8mPE","toPicker":"uYVuJF","bodesWrapper":"gT2-w9"};
|
|
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":"w--e3e","container":"sk7oh8","button-group":"bD9LpB","date-input":"CFLGP6","size-24":"iOaoAu","size-30":"UaRawf","size-36":"XAWEW1","size-42":"hXtSQk","size-48":"Ds7vmh","date-input-group":"gTt7GR","separator":"_9uBt6l","mode-form":"-GVDwS","mode-cell":"_2QuYbD","dropdownContainer":"w--e3e","buttonGroup":"bD9LpB","dateInput":"CFLGP6","size24":"iOaoAu","size30":"UaRawf","size36":"XAWEW1","size42":"hXtSQk","size48":"Ds7vmh","dateInputGroup":"gTt7GR","modeForm":"-GVDwS","modeCell":"_2QuYbD"};
|
|
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":"dC3FuC","marker":"_2YT-Eg","top":"hg0MN7","bottom":"ovUM-g","left":"UzXWgI","right":"I7LDef","inside":"Gkfvu5"};
|
|
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":"uq0uOT","modal":"p2FBxs","search-wrapper":"jQ91Dg","checkbox":"jy3JlD","no-found-size-24":"IJzh3I","no-found-size-30":"_4kYA24","no-found-size-36":"aoM-7A","no-found-size-42":"nf9FvM","searchWrapper":"jQ91Dg","noFoundSize24":"IJzh3I","noFoundSize30":"_4kYA24","noFoundSize36":"aoM-7A","noFoundSize42":"nf9FvM"};
|
|
1388
1733
|
|
|
1389
1734
|
class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
1390
1735
|
constructor() {
|
|
@@ -1396,16 +1741,16 @@ class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
|
1396
1741
|
if (this.props.renderNotFound) {
|
|
1397
1742
|
return this.props.renderNotFound();
|
|
1398
1743
|
}
|
|
1399
|
-
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$
|
|
1744
|
+
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$D[`no-found-size-${this.props.searchSize || 36}`], grow: 1, textAlign: "center" },
|
|
1400
1745
|
React__namespace.default.createElement(Text, { size: this.props.searchSize || '36' }, i18n.dataPickerBody.noRecordsMessage)));
|
|
1401
1746
|
}
|
|
1402
1747
|
render() {
|
|
1403
1748
|
const searchSize = uuiCore.isMobile() ? '48' : this.props.searchSize || '36';
|
|
1404
1749
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1405
|
-
this.showSearch() && (React__namespace.default.createElement("div", { key: "search", className: css$
|
|
1750
|
+
this.showSearch() && (React__namespace.default.createElement("div", { key: "search", className: css$D.searchWrapper },
|
|
1406
1751
|
React__namespace.default.createElement(uuiComponents.FlexCell, { grow: 1 },
|
|
1407
1752
|
React__namespace.default.createElement(SearchInput, Object.assign({ ref: this.searchRef, placeholder: i18n.dataPickerBody.searchPlaceholder }, this.searchLens.toProps(), { onKeyDown: this.searchKeyDown, size: searchSize }))))),
|
|
1408
|
-
React__namespace.default.createElement(FlexRow, { key: "body", cx: uuiCore.cx(css$
|
|
1753
|
+
React__namespace.default.createElement(FlexRow, { key: "body", cx: uuiCore.cx(css$D.body, css$D[this.props.editMode], css$D[this.props.selectionMode]), rawProps: { style: { maxHeight: this.props.maxHeight } } }, this.props.rowsCount > 0 ? (React__namespace.default.createElement(VirtualList, Object.assign({}, this.lens.toProps(), { rows: this.props.rows, role: "listbox", rawProps: this.props.rawProps, rowsCount: this.props.rowsCount }))) : (this.renderNotFound()))));
|
|
1409
1754
|
}
|
|
1410
1755
|
}
|
|
1411
1756
|
|
|
@@ -1439,37 +1784,37 @@ function DataPickerFooterImpl(props) {
|
|
|
1439
1784
|
}
|
|
1440
1785
|
const DataPickerFooter = React__namespace.default.memo(DataPickerFooterImpl);
|
|
1441
1786
|
|
|
1442
|
-
var css$
|
|
1787
|
+
var css$C = {"header":"CDKXtt","close":"sGZQR6"};
|
|
1443
1788
|
|
|
1444
|
-
var _path$
|
|
1445
|
-
function _extends$
|
|
1789
|
+
var _path$x;
|
|
1790
|
+
function _extends$z() { _extends$z = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$z.apply(this, arguments); }
|
|
1446
1791
|
var SvgNavigationClose24 = function SvgNavigationClose24(props, ref) {
|
|
1447
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1792
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$z({
|
|
1448
1793
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1449
1794
|
width: 24,
|
|
1450
1795
|
height: 24,
|
|
1451
1796
|
viewBox: "0 0 24 24",
|
|
1452
1797
|
ref: ref
|
|
1453
|
-
}, props), _path$
|
|
1798
|
+
}, props), _path$x || (_path$x = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1454
1799
|
fillRule: "evenodd",
|
|
1455
1800
|
d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z",
|
|
1456
1801
|
clipRule: "evenodd"
|
|
1457
1802
|
})));
|
|
1458
1803
|
};
|
|
1459
|
-
var ForwardRef$
|
|
1804
|
+
var ForwardRef$z = /*#__PURE__*/React.forwardRef(SvgNavigationClose24);
|
|
1460
1805
|
|
|
1461
1806
|
const DataPickerHeaderImpl = (props) => {
|
|
1462
1807
|
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
1463
|
-
return (React__namespace.default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: css$
|
|
1808
|
+
return (React__namespace.default.createElement(FlexRow, { alignItems: "center", borderBottom: true, cx: css$C.header },
|
|
1464
1809
|
React__namespace.default.createElement(Text, { size: "48", font: "semibold" }, title),
|
|
1465
|
-
React__namespace.default.createElement(IconButton, { icon: ForwardRef$
|
|
1810
|
+
React__namespace.default.createElement(IconButton, { icon: ForwardRef$z, onClick: () => { var _a; return (_a = props.close) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: css$C.close })));
|
|
1466
1811
|
};
|
|
1467
1812
|
const DataPickerHeader = React__namespace.default.memo(DataPickerHeaderImpl);
|
|
1468
1813
|
|
|
1469
1814
|
var _defs$1, _use;
|
|
1470
|
-
function _extends$
|
|
1815
|
+
function _extends$y() { _extends$y = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$y.apply(this, arguments); }
|
|
1471
1816
|
var SvgTreeFoldingArrow = function SvgTreeFoldingArrow(props, ref) {
|
|
1472
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1817
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$y({
|
|
1473
1818
|
width: 18,
|
|
1474
1819
|
height: 18,
|
|
1475
1820
|
viewBox: "0 0 18 18",
|
|
@@ -1487,19 +1832,19 @@ var SvgTreeFoldingArrow = function SvgTreeFoldingArrow(props, ref) {
|
|
|
1487
1832
|
fillRule: "evenodd"
|
|
1488
1833
|
})));
|
|
1489
1834
|
};
|
|
1490
|
-
var ForwardRef$
|
|
1835
|
+
var ForwardRef$y = /*#__PURE__*/React.forwardRef(SvgTreeFoldingArrow);
|
|
1491
1836
|
|
|
1492
|
-
var css$
|
|
1837
|
+
var css$B = {"cell":"tqAqfi","wrapper":"E1760N","align-widgets-top":"Q2z69u","size-24":"rMjDJJ","folding-arrow":"_7TPBka","size-30":"sC3Kia","size-36":"jQPYeR","size-42":"C7BHfW","size-48":"_7S6JwL","size-60":"_94-Pz6","align-widgets-center":"ZCIevD","padding-12":"kPOq1r","padding-24":"C1PDIV","padding-left-12":"jlkkrJ","padding-left-24":"S24VNo","padding-right-24":"_7BgoWB","drag-handle":"Z10hL6","checkbox":"QKegLt","indent":"_2rZylT","folding-arrow-12":"_1Od2fR","folding-arrow-18":"Yo1emg","icon-container":"UqRRfs","alignWidgetsTop":"Q2z69u","size24":"rMjDJJ","foldingArrow":"_7TPBka","size30":"sC3Kia","size36":"jQPYeR","size42":"C7BHfW","size48":"_7S6JwL","size60":"_94-Pz6","alignWidgetsCenter":"ZCIevD","padding12":"kPOq1r","padding24":"C1PDIV","paddingLeft12":"jlkkrJ","paddingLeft24":"S24VNo","paddingRight24":"_7BgoWB","dragHandle":"Z10hL6","foldingArrow12":"_1Od2fR","foldingArrow18":"Yo1emg","iconContainer":"UqRRfs"};
|
|
1493
1838
|
|
|
1494
1839
|
function DataTableRowAddons(props) {
|
|
1495
1840
|
var _a, _b;
|
|
1496
1841
|
const row = props.rowProps;
|
|
1497
1842
|
const additionalItemSize = +props.size < 30 ? '12' : '18';
|
|
1498
1843
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
1499
|
-
((_a = row.dnd) === null || _a === void 0 ? void 0 : _a.srcData) && React__namespace.createElement(uuiComponents.DragHandle, { key: "dh", cx: css$
|
|
1500
|
-
((_b = row === null || row === void 0 ? void 0 : row.checkbox) === null || _b === void 0 ? void 0 : _b.isVisible) && (React__namespace.createElement(Checkbox, { key: "cb", cx: css$
|
|
1501
|
-
row.indent > 0 && (React__namespace.createElement("div", { key: "fold", className: css$
|
|
1502
|
-
css$
|
|
1844
|
+
((_a = row.dnd) === null || _a === void 0 ? void 0 : _a.srcData) && React__namespace.createElement(uuiComponents.DragHandle, { key: "dh", cx: css$B.dragHandle }),
|
|
1845
|
+
((_b = row === null || row === void 0 ? void 0 : row.checkbox) === null || _b === void 0 ? void 0 : _b.isVisible) && (React__namespace.createElement(Checkbox, { key: "cb", cx: css$B.checkbox, tabIndex: props.tabIndex, size: additionalItemSize, value: row.isChecked, indeterminate: !row.isChecked && row.isChildrenChecked, onValueChange: () => { var _a; return (_a = row.onCheck) === null || _a === void 0 ? void 0 : _a.call(row, row); }, isDisabled: row.checkbox.isDisabled, isInvalid: row.checkbox.isInvalid })),
|
|
1846
|
+
row.indent > 0 && (React__namespace.createElement("div", { key: "fold", className: css$B.indent, style: { marginLeft: (row.indent - 1) * 24 } }, row.isFoldable && (React__namespace.createElement(uuiComponents.IconContainer, { key: "icon", icon: ForwardRef$y, cx: [
|
|
1847
|
+
css$B.foldingArrow, css$B[`folding-arrow-${additionalItemSize}`], uuiCore.uuiMarkers.clickable, css$B.iconContainer,
|
|
1503
1848
|
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row) }))))));
|
|
1504
1849
|
}
|
|
1505
1850
|
function DataTableCell(props) {
|
|
@@ -1517,18 +1862,18 @@ function DataTableCell(props) {
|
|
|
1517
1862
|
props.cx = [
|
|
1518
1863
|
'data-table-cell',
|
|
1519
1864
|
props.cx,
|
|
1520
|
-
css$
|
|
1521
|
-
css$
|
|
1522
|
-
css$
|
|
1523
|
-
props.isFirstColumn && css$
|
|
1524
|
-
props.isLastColumn && css$
|
|
1525
|
-
css$
|
|
1865
|
+
css$B.cell,
|
|
1866
|
+
css$B['size-' + (props.size || '36')],
|
|
1867
|
+
css$B[`padding-${props.padding || (isEditable && !props.rowProps.isLoading && '0') || '12'}`],
|
|
1868
|
+
props.isFirstColumn && css$B[`padding-left-${props.padding || '24'}`],
|
|
1869
|
+
props.isLastColumn && css$B['padding-right-24'],
|
|
1870
|
+
css$B[`align-widgets-${props.alignActions || 'top'}`],
|
|
1526
1871
|
(props.border || isEditable) && 'uui-dt-vertical-cell-border',
|
|
1527
1872
|
];
|
|
1528
1873
|
return React__namespace.createElement(uuiComponents.DataTableCell, Object.assign({}, props));
|
|
1529
1874
|
}
|
|
1530
1875
|
|
|
1531
|
-
var css$
|
|
1876
|
+
var css$A = {"root":"fb2ihd","size-24":"z-iTGw","size-30":"VCzpAz","size-36":"-R2j8g","size-48":"yotvwY","size-60":"xy-O8J","size24":"z-iTGw","size30":"VCzpAz","size36":"-R2j8g","size48":"yotvwY","size60":"xy-O8J"};
|
|
1532
1877
|
|
|
1533
1878
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
1534
1879
|
// As we need our mods to style the cell properly, we extract them from DataTableCellProps.rowProps, which is a hack, but it's reliable enough.
|
|
@@ -1540,154 +1885,137 @@ const renderDropMarkers = (props) => React__namespace.createElement(DropMarker,
|
|
|
1540
1885
|
const propsMods = { renderCell, renderDropMarkers };
|
|
1541
1886
|
const DataTableRow = uuiCore.withMods(uuiComponents.DataTableRow, ({ borderBottom = true, size }) => {
|
|
1542
1887
|
return [
|
|
1543
|
-
css$
|
|
1888
|
+
css$A.root, borderBottom && 'uui-dt-row-border', css$A['size-' + (size || '36')],
|
|
1544
1889
|
];
|
|
1545
1890
|
}, () => propsMods);
|
|
1546
1891
|
|
|
1547
|
-
var css$
|
|
1892
|
+
var css$z = {"header-cell":"g6CMu5","config-icon":"QAzGVb","headerCell":"g6CMu5","configIcon":"QAzGVb"};
|
|
1548
1893
|
|
|
1549
|
-
var _path$
|
|
1550
|
-
function _extends$
|
|
1894
|
+
var _path$w;
|
|
1895
|
+
function _extends$x() { _extends$x = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$x.apply(this, arguments); }
|
|
1551
1896
|
var SvgActionSettings18 = function SvgActionSettings18(props, ref) {
|
|
1552
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1897
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$x({
|
|
1553
1898
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1554
1899
|
width: 18,
|
|
1555
1900
|
height: 18,
|
|
1556
1901
|
viewBox: "0 0 18 18",
|
|
1557
1902
|
ref: ref
|
|
1558
|
-
}, props), _path$
|
|
1903
|
+
}, props), _path$w || (_path$w = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1559
1904
|
fillRule: "evenodd",
|
|
1560
1905
|
d: "M3 9.093a6.083 6.083 0 0 1 0-.186L1.55 7.271a1 1 0 0 1-.118-1.163l1.28-2.216a1 1 0 0 1 1.066-.48l2.14.439a3.81 3.81 0 0 1 .163-.094l.691-2.073A1 1 0 0 1 7.721 1h2.558a1 1 0 0 1 .949.684l.69 2.073c.056.03.11.061.163.094l2.141-.439a1 1 0 0 1 1.067.48l1.279 2.216a1 1 0 0 1-.118 1.163L15 8.907a5.72 5.72 0 0 1 0 .186l1.45 1.636a1 1 0 0 1 .118 1.163l-1.28 2.216a1 1 0 0 1-1.066.48l-2.14-.438a6.215 6.215 0 0 1-.163.093l-.691 2.073a1 1 0 0 1-.949.684H7.721a1 1 0 0 1-.949-.684l-.69-2.073a6.105 6.105 0 0 1-.163-.094l-2.141.439a1 1 0 0 1-1.067-.48l-1.279-2.216a1 1 0 0 1 .118-1.163L3 9.093zM9 12a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",
|
|
1561
1906
|
clipRule: "evenodd"
|
|
1562
1907
|
})));
|
|
1563
1908
|
};
|
|
1564
|
-
var ForwardRef$
|
|
1909
|
+
var ForwardRef$x = /*#__PURE__*/React.forwardRef(SvgActionSettings18);
|
|
1565
1910
|
|
|
1566
|
-
const DataTableHeaderRow = uuiCore.withMods(uuiComponents.DataTableHeaderRow, (
|
|
1911
|
+
const DataTableHeaderRow = uuiCore.withMods(uuiComponents.DataTableHeaderRow, () => [css$z.root], (mods) => ({
|
|
1567
1912
|
renderCell: (props) => React__namespace.createElement(DataTableHeaderCell, Object.assign({}, props, { size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key })),
|
|
1568
|
-
renderConfigButton: () => React__namespace.createElement(IconButton, { key: "configuration", onClick: mods.onConfigButtonClick, cx: css$
|
|
1913
|
+
renderConfigButton: () => React__namespace.createElement(IconButton, { key: "configuration", onClick: mods.onConfigButtonClick, cx: css$z.configIcon, color: "default", icon: ForwardRef$x }),
|
|
1569
1914
|
}));
|
|
1570
1915
|
|
|
1571
|
-
var css$
|
|
1916
|
+
var css$y = {"cell":"hHIRg7","sort-icon":"CQI7gI","dropdown-icon":"DKkbGc","infoIcon":"ADTljJ","resizable":"-rmKiX","size-24":"mqi6MF","size-30":"K5o3l0","size-36":"kdQInh","size-42":"zzCSLc","size-48":"wFoUcB","padding-left-24":"_1FbHeh","padding-right-24":"_2v2hgZ","caption":"sqm2Eb","checkbox":"XMjsec","icon":"OKh2sH","icon-cell":"qU-t3-","align-right":"AY1DSj","align-center":"MRlJaG","tooltip-wrapper":"Ycz1mF","cell-tooltip":"g4NQw5","upper-case":"OjIbb1","font-size-14":"DCiOb8","resize-mark":"zh0cba","draggable":"Ixvc8Q","ghost":"OoZk9e","is-dragged-out":"CH5UvB","dnd-marker-left":"TU-Q0M","dnd-marker-right":"xllBbg","cell-tooltip-wrapper":"mG9mHW","cell-tooltip-text":"mIfpev","sortIcon":"CQI7gI","dropdownIcon":"DKkbGc","size24":"mqi6MF","size30":"K5o3l0","size36":"kdQInh","size42":"zzCSLc","size48":"wFoUcB","paddingLeft24":"_1FbHeh","paddingRight24":"_2v2hgZ","iconCell":"qU-t3-","alignRight":"AY1DSj","alignCenter":"MRlJaG","tooltipWrapper":"Ycz1mF","cellTooltip":"g4NQw5","upperCase":"OjIbb1","fontSize14":"DCiOb8","resizeMark":"zh0cba","isDraggedOut":"CH5UvB","dndMarkerLeft":"TU-Q0M","dndMarkerRight":"xllBbg","cellTooltipWrapper":"mG9mHW","cellTooltipText":"mIfpev"};
|
|
1572
1917
|
|
|
1573
|
-
var _path$
|
|
1574
|
-
function _extends$
|
|
1918
|
+
var _path$v;
|
|
1919
|
+
function _extends$w() { _extends$w = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$w.apply(this, arguments); }
|
|
1575
1920
|
var SvgTableSwap18 = function SvgTableSwap18(props, ref) {
|
|
1576
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1921
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$w({
|
|
1577
1922
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1578
1923
|
width: 18,
|
|
1579
1924
|
height: 18,
|
|
1580
1925
|
viewBox: "0 0 18 18",
|
|
1581
1926
|
ref: ref
|
|
1582
|
-
}, props), _path$
|
|
1927
|
+
}, props), _path$v || (_path$v = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1583
1928
|
fillRule: "evenodd",
|
|
1584
1929
|
d: "M6 1 2 5h3v7h2V5h3L6 1zm7 12V6h-2v7H8l4 4 4-4h-3z",
|
|
1585
1930
|
clipRule: "evenodd"
|
|
1586
1931
|
})));
|
|
1587
1932
|
};
|
|
1588
|
-
var ForwardRef$
|
|
1933
|
+
var ForwardRef$w = /*#__PURE__*/React.forwardRef(SvgTableSwap18);
|
|
1589
1934
|
|
|
1590
|
-
var _path$
|
|
1591
|
-
function _extends$
|
|
1935
|
+
var _path$u;
|
|
1936
|
+
function _extends$v() { _extends$v = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$v.apply(this, arguments); }
|
|
1592
1937
|
var SvgTableSortAsc18 = function SvgTableSortAsc18(props, ref) {
|
|
1593
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1938
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$v({
|
|
1594
1939
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1595
1940
|
width: 18,
|
|
1596
1941
|
height: 18,
|
|
1597
1942
|
viewBox: "0 0 18 18",
|
|
1598
1943
|
ref: ref
|
|
1599
|
-
}, props), _path$
|
|
1944
|
+
}, props), _path$u || (_path$u = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1600
1945
|
fillRule: "evenodd",
|
|
1601
1946
|
d: "M10 6v10H8V6H5l4-4 4 4h-3z",
|
|
1602
1947
|
clipRule: "evenodd"
|
|
1603
1948
|
})));
|
|
1604
1949
|
};
|
|
1605
|
-
var ForwardRef$
|
|
1950
|
+
var ForwardRef$v = /*#__PURE__*/React.forwardRef(SvgTableSortAsc18);
|
|
1606
1951
|
|
|
1607
|
-
var _path$
|
|
1608
|
-
function _extends$
|
|
1952
|
+
var _path$t;
|
|
1953
|
+
function _extends$u() { _extends$u = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$u.apply(this, arguments); }
|
|
1609
1954
|
var SvgTableSortDesc18 = function SvgTableSortDesc18(props, ref) {
|
|
1610
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1955
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$u({
|
|
1611
1956
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1612
1957
|
width: 18,
|
|
1613
1958
|
height: 18,
|
|
1614
1959
|
viewBox: "0 0 18 18",
|
|
1615
1960
|
ref: ref
|
|
1616
|
-
}, props), _path$
|
|
1961
|
+
}, props), _path$t || (_path$t = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1617
1962
|
fillRule: "evenodd",
|
|
1618
1963
|
d: "M10 12V2H8v10H5l4 4 4-4h-3z",
|
|
1619
1964
|
clipRule: "evenodd"
|
|
1620
1965
|
})));
|
|
1621
1966
|
};
|
|
1622
|
-
var ForwardRef$
|
|
1967
|
+
var ForwardRef$u = /*#__PURE__*/React.forwardRef(SvgTableSortDesc18);
|
|
1623
1968
|
|
|
1624
|
-
var _path$
|
|
1625
|
-
function _extends$
|
|
1969
|
+
var _path$s;
|
|
1970
|
+
function _extends$t() { _extends$t = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$t.apply(this, arguments); }
|
|
1626
1971
|
var SvgContentFiltration18 = function SvgContentFiltration18(props, ref) {
|
|
1627
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1972
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$t({
|
|
1628
1973
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1629
1974
|
width: 18,
|
|
1630
1975
|
height: 18,
|
|
1631
1976
|
viewBox: "0 0 18 18",
|
|
1632
1977
|
ref: ref
|
|
1633
|
-
}, props), _path$
|
|
1978
|
+
}, props), _path$s || (_path$s = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1634
1979
|
fillRule: "evenodd",
|
|
1635
1980
|
d: "m8 14 2 2v-5H8v3zM2 3v2h14V3H2zm6 8h2l6-6H2l6 6z",
|
|
1636
1981
|
clipRule: "evenodd"
|
|
1637
1982
|
})));
|
|
1638
1983
|
};
|
|
1639
|
-
var ForwardRef$
|
|
1984
|
+
var ForwardRef$t = /*#__PURE__*/React.forwardRef(SvgContentFiltration18);
|
|
1640
1985
|
|
|
1641
|
-
var _path$
|
|
1642
|
-
function _extends$
|
|
1986
|
+
var _path$r;
|
|
1987
|
+
function _extends$s() { _extends$s = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$s.apply(this, arguments); }
|
|
1643
1988
|
var SvgNavigationChevronDown18 = function SvgNavigationChevronDown18(props, ref) {
|
|
1644
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1989
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$s({
|
|
1645
1990
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1646
1991
|
width: 18,
|
|
1647
1992
|
height: 18,
|
|
1648
1993
|
viewBox: "0 0 18 18",
|
|
1649
1994
|
ref: ref
|
|
1650
|
-
}, props), _path$
|
|
1995
|
+
}, props), _path$r || (_path$r = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1651
1996
|
fillRule: "evenodd",
|
|
1652
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",
|
|
1653
1998
|
clipRule: "evenodd"
|
|
1654
1999
|
})));
|
|
1655
2000
|
};
|
|
1656
|
-
var ForwardRef$
|
|
2001
|
+
var ForwardRef$s = /*#__PURE__*/React.forwardRef(SvgNavigationChevronDown18);
|
|
1657
2002
|
|
|
1658
|
-
var _path$
|
|
1659
|
-
function _extends$
|
|
1660
|
-
var SvgNavigationChevronUp18 = function SvgNavigationChevronUp18(props, ref) {
|
|
1661
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1662
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1663
|
-
width: 18,
|
|
1664
|
-
height: 18,
|
|
1665
|
-
viewBox: "0 0 18 18",
|
|
1666
|
-
ref: ref
|
|
1667
|
-
}, props), _path$t || (_path$t = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1668
|
-
fillRule: "evenodd",
|
|
1669
|
-
d: "m9 6-4.5 4.5 1.058 1.057L9 8.123l3.443 3.434L13.5 10.5 9 6z",
|
|
1670
|
-
clipRule: "evenodd"
|
|
1671
|
-
})));
|
|
1672
|
-
};
|
|
1673
|
-
var ForwardRef$u = /*#__PURE__*/React.forwardRef(SvgNavigationChevronUp18);
|
|
1674
|
-
|
|
1675
|
-
var _path$s;
|
|
1676
|
-
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); }
|
|
1677
|
-
var SvgNotificationInfoOutline18 = function SvgNotificationInfoOutline18(props, ref) {
|
|
1678
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$t({
|
|
2003
|
+
var _path$q;
|
|
2004
|
+
function _extends$r() { _extends$r = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$r.apply(this, arguments); }
|
|
2005
|
+
var SvgNavigationChevronUp18 = function SvgNavigationChevronUp18(props, ref) {
|
|
2006
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$r({
|
|
1679
2007
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1680
2008
|
width: 18,
|
|
1681
2009
|
height: 18,
|
|
1682
2010
|
viewBox: "0 0 18 18",
|
|
1683
2011
|
ref: ref
|
|
1684
|
-
}, props), _path$
|
|
2012
|
+
}, props), _path$q || (_path$q = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1685
2013
|
fillRule: "evenodd",
|
|
1686
|
-
d: "
|
|
2014
|
+
d: "m9 6-4.5 4.5 1.058 1.057L9 8.123l3.443 3.434L13.5 10.5 9 6z",
|
|
1687
2015
|
clipRule: "evenodd"
|
|
1688
2016
|
})));
|
|
1689
2017
|
};
|
|
1690
|
-
var ForwardRef$
|
|
2018
|
+
var ForwardRef$r = /*#__PURE__*/React.forwardRef(SvgNavigationChevronUp18);
|
|
1691
2019
|
|
|
1692
2020
|
class DataTableHeaderCell extends React__namespace.Component {
|
|
1693
2021
|
constructor() {
|
|
@@ -1697,25 +2025,29 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
1697
2025
|
};
|
|
1698
2026
|
this.getTextStyle = () => {
|
|
1699
2027
|
if (this.props.textCase === 'upper')
|
|
1700
|
-
return css$
|
|
1701
|
-
return css$
|
|
2028
|
+
return css$y.upperCase;
|
|
2029
|
+
return css$y['font-size-14'];
|
|
2030
|
+
};
|
|
2031
|
+
this.getTooltipContent = () => (React__namespace.createElement("div", { className: css$y.cellTooltipWrapper },
|
|
2032
|
+
React__namespace.createElement(Text, { fontSize: "14", color: "contrast", font: "semibold", cx: css$y.cellTooltipText }, this.props.column.caption),
|
|
2033
|
+
this.props.column.info && React__namespace.createElement(Text, { fontSize: "12", color: "contrast", cx: css$y.cellTooltipText }, this.props.column.info)));
|
|
2034
|
+
this.getColumnCaption = () => {
|
|
2035
|
+
return (React__namespace.createElement("div", { className: css$y.tooltipWrapper },
|
|
2036
|
+
React__namespace.createElement("div", { className: uuiCore.cx(css$y.iconCell, css$y['align-' + this.props.column.textAlign], uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaptionWrapper) },
|
|
2037
|
+
React__namespace.createElement(Tooltip, { placement: "top", color: "contrast", renderContent: this.getTooltipContent, cx: css$y.cellTooltip, openDelay: 600 },
|
|
2038
|
+
React__namespace.createElement(Text, { key: "text", lineHeight: "30", fontSize: "14", size: "30", cx: uuiCore.cx(css$y.caption, this.getTextStyle(), uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaption) }, this.props.column.caption)),
|
|
2039
|
+
this.props.column.isSortable && (!this.props.column.renderFilter || this.props.sortDirection) && (React__namespace.createElement(IconButton, { key: "sort", cx: uuiCore.cx(css$y.icon, css$y.sortIcon, this.props.sortDirection && css$y.sortIconActive, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderSortIcon), color: this.props.sortDirection ? 'default' : 'secondary', icon: this.props.sortDirection === 'desc' ? ForwardRef$u : this.props.sortDirection === 'asc' ? ForwardRef$v : ForwardRef$w })),
|
|
2040
|
+
this.props.isFilterActive && (React__namespace.createElement(IconButton, { key: "filter", cx: uuiCore.cx(css$y.icon, !this.props.sortDirection && css$y.filterIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderFilterIcon), color: "default", icon: ForwardRef$t })),
|
|
2041
|
+
this.props.column.renderFilter && (React__namespace.createElement(IconButton, { key: "dropdown", cx: uuiCore.cx(css$y.icon, css$y.dropdownIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderDropdownIcon), color: "secondary", icon: this.state.isDropdownOpen ? ForwardRef$r : ForwardRef$s })))));
|
|
1702
2042
|
};
|
|
1703
|
-
this.getColumnCaption = () => (React__namespace.createElement("div", { className: css$w.tooltipWrapper },
|
|
1704
|
-
React__namespace.createElement(Tooltip, { trigger: "hover", placement: "bottom-start", renderContent: !this.state.isDropdownOpen && this.props.column.info ? () => this.props.column.info : null, color: "default", cx: css$w.cellTooltip, offset: [-12, 12] },
|
|
1705
|
-
React__namespace.createElement("div", { className: uuiCore.cx(css$w.iconCell, css$w['align-' + this.props.column.textAlign], uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaptionWrapper) },
|
|
1706
|
-
React__namespace.createElement(Text, { key: "text", lineHeight: "30", fontSize: "14", size: "30", cx: uuiCore.cx(css$w.caption, this.getTextStyle(), uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaption) }, this.props.column.caption),
|
|
1707
|
-
this.props.column.info && (React__namespace.createElement(IconButton, { key: "info", cx: uuiCore.cx(css$w.icon, css$w.infoIcon, this.props.sortDirection && css$w.sortIconActive, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderSortIcon), color: "secondary", icon: ForwardRef$t })),
|
|
1708
|
-
this.props.column.isSortable && (!this.props.column.renderFilter || this.props.sortDirection) && (React__namespace.createElement(IconButton, { key: "sort", cx: uuiCore.cx(css$w.icon, css$w.sortIcon, this.props.sortDirection && css$w.sortIconActive, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderSortIcon), color: this.props.sortDirection ? 'default' : 'secondary', icon: this.props.sortDirection === 'desc' ? ForwardRef$x : this.props.sortDirection === 'asc' ? ForwardRef$y : ForwardRef$z })),
|
|
1709
|
-
this.props.isFilterActive && (React__namespace.createElement(IconButton, { key: "filter", cx: uuiCore.cx(css$w.icon, !this.props.sortDirection && css$w.filterIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderFilterIcon), color: "default", icon: ForwardRef$w })),
|
|
1710
|
-
this.props.column.renderFilter && (React__namespace.createElement(IconButton, { key: "dropdown", cx: uuiCore.cx(css$w.icon, css$w.dropdownIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderDropdownIcon), color: "secondary", icon: this.state.isDropdownOpen ? ForwardRef$u : ForwardRef$v }))))));
|
|
1711
2043
|
this.renderHeaderCheckbox = () => this.props.selectAll
|
|
1712
|
-
&& this.props.isFirstColumn && (React__namespace.createElement(Checkbox, Object.assign({ size: +this.props.size < 36 ? '12' : '18' }, this.props.selectAll, { cx: uuiCore.cx(css$
|
|
1713
|
-
this.renderResizeMark = (props) => React__namespace.createElement("div", { onMouseDown: props.onResizeStart, className: uuiCore.cx(css$
|
|
2044
|
+
&& this.props.isFirstColumn && (React__namespace.createElement(Checkbox, Object.assign({ size: +this.props.size < 36 ? '12' : '18' }, this.props.selectAll, { cx: uuiCore.cx(css$y.checkbox, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCheckbox) })));
|
|
2045
|
+
this.renderResizeMark = (props) => React__namespace.createElement("div", { onMouseDown: props.onResizeStart, className: uuiCore.cx(css$y.resizeMark, uuiCore.uuiMarkers.draggable) });
|
|
1714
2046
|
this.renderCellContent = (props, dropdownProps) => (React__namespace.createElement(FlexCell, Object.assign({}, this.props.column, { minWidth: this.props.column.width, ref: (ref) => {
|
|
1715
2047
|
var _a;
|
|
1716
2048
|
props.ref(ref);
|
|
1717
2049
|
(_a = dropdownProps === null || dropdownProps === void 0 ? void 0 : dropdownProps.ref) === null || _a === void 0 ? void 0 : _a.call(dropdownProps, ref);
|
|
1718
|
-
}, cx: uuiCore.cx(uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCell, (this.props.column.isSortable || this.props.isDropdown) && uuiCore.uuiMarkers.clickable, css$
|
|
2050
|
+
}, cx: uuiCore.cx(uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCell, (this.props.column.isSortable || this.props.isDropdown) && uuiCore.uuiMarkers.clickable, css$y.cell, css$y['size-' + (this.props.size || '36')], this.props.isFirstColumn && css$y['padding-left-24'], this.props.isLastColumn && css$y['padding-right-24'], this.props.column.cx, this.props.allowColumnsResizing && css$y.resizable, props.isDraggable && css$y.draggable, props.isDragGhost && css$y.ghost, props.isDraggedOut && css$y.isDraggedOut, props.isDndInProgress && css$y['dnd-marker-' + props.position]), onClick: !this.props.column.renderFilter ? props.toggleSort : dropdownProps === null || dropdownProps === void 0 ? void 0 : dropdownProps.onClick, rawProps: Object.assign({ role: 'columnheader', 'aria-sort': this.props.sortDirection === 'asc' ? 'ascending' : this.props.sortDirection ? 'descending' : 'none' }, props.eventHandlers) }),
|
|
1719
2051
|
this.renderHeaderCheckbox(),
|
|
1720
2052
|
this.getColumnCaption(),
|
|
1721
2053
|
this.props.allowColumnsResizing && this.renderResizeMark(props)));
|
|
@@ -1752,10 +2084,10 @@ const useColumnsWithFilters = (initialColumns, filters) => {
|
|
|
1752
2084
|
return columns;
|
|
1753
2085
|
};
|
|
1754
2086
|
|
|
1755
|
-
var _path$
|
|
1756
|
-
function _extends$
|
|
2087
|
+
var _path$p, _path2$1, _path3, _path4, _path5, _path6, _g$1, _path7, _path8, _path9, _path10, _path11, _path12, _path13, _path14, _path15, _path16, _path17, _path18, _path19, _path20, _path21, _path22, _path23, _path24, _defs;
|
|
2088
|
+
function _extends$q() { _extends$q = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$q.apply(this, arguments); }
|
|
1757
2089
|
var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
1758
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2090
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
|
|
1759
2091
|
width: 232,
|
|
1760
2092
|
height: 180,
|
|
1761
2093
|
viewBox: "0 0 232 180",
|
|
@@ -1764,7 +2096,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
1764
2096
|
ref: ref
|
|
1765
2097
|
}, props), /*#__PURE__*/React__namespace.createElement("g", {
|
|
1766
2098
|
clipPath: "url(#a)"
|
|
1767
|
-
}, _path$
|
|
2099
|
+
}, _path$p || (_path$p = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1768
2100
|
d: "M150.585 1.535C49.483-11.495 27.481 61.805 45.725 97.481c10.581 20.69-39.64 70.792 17.744 81.468 27.538 5.123 36-13.341 62.433-10.655 35.4 3.6 148.167-4.73 88.349-78.915-31.713-39.335 1.026-79.506-63.666-87.844Z",
|
|
1769
2101
|
fill: "#F5F6FA"
|
|
1770
2102
|
})), _path2$1 || (_path2$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -1890,9 +2222,9 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
1890
2222
|
d: "M0 0h230.897v180H0z"
|
|
1891
2223
|
})))));
|
|
1892
2224
|
};
|
|
1893
|
-
var ForwardRef$
|
|
2225
|
+
var ForwardRef$q = /*#__PURE__*/React.forwardRef(SvgEmptyTable);
|
|
1894
2226
|
|
|
1895
|
-
var css$
|
|
2227
|
+
var css$x = {"sticky-header":"VL-0eK","listContainer":"_587nR1","table":"LnNYhH","no-results":"vtJsxI","no-results-icon":"cdNV5l","no-results-title":"Jhu6ty","stickyHeader":"VL-0eK","noResults":"vtJsxI","noResultsIcon":"cdNV5l","noResultsTitle":"Jhu6ty"};
|
|
1896
2228
|
|
|
1897
2229
|
function DataTable(props) {
|
|
1898
2230
|
var _a;
|
|
@@ -1906,123 +2238,126 @@ function DataTable(props) {
|
|
|
1906
2238
|
const renderedRows = rows.map((row) => (props.renderRow || renderRow)(Object.assign(Object.assign({}, row), { columns })));
|
|
1907
2239
|
const renderNoResultsBlock = React__namespace.useCallback(() => {
|
|
1908
2240
|
var _a;
|
|
1909
|
-
return (React__namespace.createElement("div", { className: css$
|
|
1910
|
-
React__namespace.createElement(uuiComponents.IconContainer, { cx: css$
|
|
1911
|
-
React__namespace.createElement(Text, { cx: css$
|
|
2241
|
+
return (React__namespace.createElement("div", { className: css$x.noResults }, props.renderNoResultsBlock ? ((_a = props.renderNoResultsBlock) === null || _a === void 0 ? void 0 : _a.call(props)) : (React__namespace.createElement(React__namespace.Fragment, null,
|
|
2242
|
+
React__namespace.createElement(uuiComponents.IconContainer, { cx: css$x.noResultsIcon, icon: ForwardRef$q }),
|
|
2243
|
+
React__namespace.createElement(Text, { cx: css$x.noResultsTitle, fontSize: "24", lineHeight: "30", color: "primary", font: "semibold" }, i18n.tables.noResultsBlock.title),
|
|
1912
2244
|
React__namespace.createElement(Text, { fontSize: "16", lineHeight: "24", font: "regular", color: "primary" }, i18n.tables.noResultsBlock.message)))));
|
|
1913
2245
|
}, [props.renderNoResultsBlock]);
|
|
1914
2246
|
const onConfigurationButtonClick = React__namespace.useCallback(() => {
|
|
2247
|
+
const configProps = { columns: props.columns, columnsConfig: Object.assign({}, config), defaultConfig };
|
|
1915
2248
|
uuiModals
|
|
1916
2249
|
.show((modalProps) => {
|
|
1917
|
-
return (
|
|
2250
|
+
return (props.renderColumnsConfigurationModal
|
|
2251
|
+
? props.renderColumnsConfigurationModal(Object.assign(Object.assign({}, configProps), modalProps))
|
|
2252
|
+
: (React__namespace.createElement(ColumnsConfigurationModal, Object.assign({}, modalProps, { columns: props.columns, columnsConfig: config, defaultConfig: defaultConfig }))));
|
|
1918
2253
|
})
|
|
1919
2254
|
.then((columnsConfig) => props.onValueChange(Object.assign(Object.assign({}, props.value), { columnsConfig })))
|
|
1920
2255
|
.catch(() => null);
|
|
1921
2256
|
}, [
|
|
1922
|
-
props.columns, config, defaultConfig, props.value, props.onValueChange,
|
|
2257
|
+
props.columns, config, defaultConfig, props.value, props.onValueChange, props.renderColumnsConfigurationModal,
|
|
1923
2258
|
]);
|
|
1924
2259
|
const renderRowsContainer = React__namespace.useCallback(({ listContainerRef, estimatedHeight, offsetY, scrollShadows, }) => (React__namespace.createElement(React__namespace.Fragment, null,
|
|
1925
|
-
React__namespace.createElement("div", { className: css$
|
|
2260
|
+
React__namespace.createElement("div", { className: css$x.stickyHeader },
|
|
1926
2261
|
React__namespace.createElement(DataTableHeaderRow, { columns: columns, onConfigButtonClick: props.showColumnsConfig && onConfigurationButtonClick, selectAll: props.selectAll, size: props.size, textCase: props.headerTextCase, allowColumnsReordering: props.allowColumnsReordering, allowColumnsResizing: props.allowColumnsResizing, value: props.value, onValueChange: props.onValueChange }),
|
|
1927
2262
|
React__namespace.createElement("div", { className: uuiCore.cx(uuiCore.uuiScrollShadows.top, {
|
|
1928
2263
|
[uuiCore.uuiScrollShadows.topVisible]: scrollShadows.verticalTop,
|
|
1929
2264
|
}) })),
|
|
1930
|
-
props.exactRowsCount !== 0 ? (React__namespace.createElement("div", { className: css$
|
|
2265
|
+
props.exactRowsCount !== 0 ? (React__namespace.createElement("div", { className: css$x.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
1931
2266
|
React__namespace.createElement("div", { ref: listContainerRef, role: "rowgroup", style: { marginTop: offsetY }, children: renderedRows }))) : (renderNoResultsBlock === null || renderNoResultsBlock === void 0 ? void 0 : renderNoResultsBlock()))), [
|
|
1932
2267
|
props, columns, rows, renderNoResultsBlock, onConfigurationButtonClick,
|
|
1933
2268
|
]);
|
|
1934
2269
|
return (React__namespace.createElement(uuiComponents.DataTableSelectionProvider, { onCopy: props.onCopy, rows: rows, columns: columns },
|
|
1935
|
-
React__namespace.createElement(VirtualList, { value: props.value, onValueChange: props.onValueChange, onScroll: props.onScroll, rows: renderedRows, rowsCount: props.rowsCount, renderRows: renderRowsContainer, cx: uuiCore.cx(css$
|
|
2270
|
+
React__namespace.createElement(VirtualList, { value: props.value, onValueChange: props.onValueChange, onScroll: props.onScroll, rows: renderedRows, rowsCount: props.rowsCount, renderRows: renderRowsContainer, cx: uuiCore.cx(css$x.table), rawProps: {
|
|
1936
2271
|
role: 'table',
|
|
1937
2272
|
'aria-colcount': columns.length,
|
|
1938
2273
|
'aria-rowcount': props.rowsCount,
|
|
1939
2274
|
} })));
|
|
1940
2275
|
}
|
|
1941
2276
|
|
|
1942
|
-
var styles$1 = {"main-panel":"
|
|
2277
|
+
var styles$1 = {"main-panel":"zUX5v-","group-title":"gHaChT","group-title-text":"_8-d1Fl","group-title-badge":"OE-LsD","group-items":"OOyTx-","no-data":"POyfdU","h-divider":"CH5GrH","search-area":"mZpfzi","mainPanel":"zUX5v-","groupTitle":"gHaChT","groupTitleText":"_8-d1Fl","groupTitleBadge":"OE-LsD","groupItems":"OOyTx-","noData":"POyfdU","hDivider":"CH5GrH","searchArea":"mZpfzi"};
|
|
1943
2278
|
|
|
1944
|
-
var _path$
|
|
1945
|
-
function _extends$
|
|
2279
|
+
var _path$o;
|
|
2280
|
+
function _extends$p() { _extends$p = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$p.apply(this, arguments); }
|
|
1946
2281
|
var SvgNavigationMoreVert18 = function SvgNavigationMoreVert18(props, ref) {
|
|
1947
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2282
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
|
|
1948
2283
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1949
2284
|
width: 18,
|
|
1950
2285
|
height: 18,
|
|
1951
2286
|
viewBox: "0 0 18 18",
|
|
1952
2287
|
ref: ref
|
|
1953
|
-
}, props), _path$
|
|
2288
|
+
}, props), _path$o || (_path$o = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1954
2289
|
fillRule: "evenodd",
|
|
1955
2290
|
d: "M9 6c.825 0 1.5-.675 1.5-1.5S9.825 3 9 3s-1.5.675-1.5 1.5S8.175 6 9 6zm0 1.5c-.825 0-1.5.675-1.5 1.5s.675 1.5 1.5 1.5 1.5-.675 1.5-1.5S9.825 7.5 9 7.5zM9 12c-.825 0-1.5.675-1.5 1.5S8.175 15 9 15s1.5-.675 1.5-1.5S9.825 12 9 12z",
|
|
1956
2291
|
clipRule: "evenodd"
|
|
1957
2292
|
})));
|
|
1958
2293
|
};
|
|
1959
|
-
var ForwardRef$
|
|
2294
|
+
var ForwardRef$p = /*#__PURE__*/React.forwardRef(SvgNavigationMoreVert18);
|
|
1960
2295
|
|
|
1961
|
-
var _path$
|
|
1962
|
-
function _extends$
|
|
2296
|
+
var _path$n;
|
|
2297
|
+
function _extends$o() { _extends$o = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$o.apply(this, arguments); }
|
|
1963
2298
|
var SvgActionUpdate18 = function SvgActionUpdate18(props, ref) {
|
|
1964
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2299
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
|
|
1965
2300
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1966
2301
|
width: 18,
|
|
1967
2302
|
height: 18,
|
|
1968
2303
|
viewBox: "0 0 18 18",
|
|
1969
2304
|
ref: ref
|
|
1970
|
-
}, props), _path$
|
|
2305
|
+
}, props), _path$n || (_path$n = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1971
2306
|
fillRule: "evenodd",
|
|
1972
2307
|
d: "M8.007 2A7.004 7.004 0 0 0 1 9a7.004 7.004 0 0 0 11.732 5.16l-1.497-1.347A4.999 4.999 0 0 1 3 9c0-2.763 2.237-5 5-5 2.762 0 5 2.237 5 5h2c0-3.864-3.129-7-6.993-7zM11 9l3 3 3-3h-6z",
|
|
1973
2308
|
clipRule: "evenodd"
|
|
1974
2309
|
})));
|
|
1975
2310
|
};
|
|
1976
|
-
var ForwardRef$
|
|
2311
|
+
var ForwardRef$o = /*#__PURE__*/React.forwardRef(SvgActionUpdate18);
|
|
1977
2312
|
|
|
1978
|
-
var _path$
|
|
1979
|
-
function _extends$
|
|
2313
|
+
var _path$m;
|
|
2314
|
+
function _extends$n() { _extends$n = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$n.apply(this, arguments); }
|
|
1980
2315
|
var SvgActionLockFill18 = function SvgActionLockFill18(props, ref) {
|
|
1981
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2316
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
|
|
1982
2317
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1983
2318
|
width: 18,
|
|
1984
2319
|
height: 18,
|
|
1985
2320
|
viewBox: "0 0 18 18",
|
|
1986
2321
|
ref: ref
|
|
1987
|
-
}, props), _path$
|
|
2322
|
+
}, props), _path$m || (_path$m = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1988
2323
|
fillRule: "evenodd",
|
|
1989
2324
|
d: "M5 7V5a4 4 0 1 1 8 0v2a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2zm2 0h4V5a2 2 0 1 0-4 0v2zm2 7a2 2 0 1 0 0-4 2 2 0 0 0 0 4z",
|
|
1990
2325
|
clipRule: "evenodd"
|
|
1991
2326
|
})));
|
|
1992
2327
|
};
|
|
1993
|
-
var ForwardRef$
|
|
2328
|
+
var ForwardRef$n = /*#__PURE__*/React.forwardRef(SvgActionLockFill18);
|
|
1994
2329
|
|
|
1995
|
-
var _path$
|
|
1996
|
-
function _extends$
|
|
2330
|
+
var _path$l;
|
|
2331
|
+
function _extends$m() { _extends$m = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$m.apply(this, arguments); }
|
|
1997
2332
|
var SvgActionPinOn18 = function SvgActionPinOn18(props, ref) {
|
|
1998
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2333
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
|
|
1999
2334
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2000
2335
|
width: 18,
|
|
2001
2336
|
height: 18,
|
|
2002
2337
|
viewBox: "0 0 18 18",
|
|
2003
2338
|
ref: ref
|
|
2004
|
-
}, props), _path$
|
|
2339
|
+
}, props), _path$l || (_path$l = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2005
2340
|
fillRule: "evenodd",
|
|
2006
2341
|
d: "M12 9V3h1V2H5v1h1v6l-2 1v1h4v5h2v-5h4v-1l-2-1z",
|
|
2007
2342
|
clipRule: "evenodd"
|
|
2008
2343
|
})));
|
|
2009
2344
|
};
|
|
2010
|
-
var ForwardRef$
|
|
2345
|
+
var ForwardRef$m = /*#__PURE__*/React.forwardRef(SvgActionPinOn18);
|
|
2011
2346
|
|
|
2012
|
-
var _path$
|
|
2013
|
-
function _extends$
|
|
2347
|
+
var _path$k;
|
|
2348
|
+
function _extends$l() { _extends$l = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$l.apply(this, arguments); }
|
|
2014
2349
|
var SvgActionPinOff18 = function SvgActionPinOff18(props, ref) {
|
|
2015
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2350
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
|
|
2016
2351
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2017
2352
|
width: 18,
|
|
2018
2353
|
height: 18,
|
|
2019
2354
|
viewBox: "0 0 18 18",
|
|
2020
2355
|
ref: ref
|
|
2021
|
-
}, props), _path$
|
|
2356
|
+
}, props), _path$k || (_path$k = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2022
2357
|
d: "M6 4.586 12.414 11H14v-1l-2-1V3h1V2H5v1h1v1.586zM10 16v-4.586l3.743 3.743.707-.707L3.136 3.136l-.707.707L6 7.414V9l-2 1v1h4v5h2z"
|
|
2023
2358
|
})));
|
|
2024
2359
|
};
|
|
2025
|
-
var ForwardRef$
|
|
2360
|
+
var ForwardRef$l = /*#__PURE__*/React.forwardRef(SvgActionPinOff18);
|
|
2026
2361
|
|
|
2027
2362
|
const i18nLocal = i18n.tables.columnsConfigurationModal;
|
|
2028
2363
|
function PinIconButton(props) {
|
|
@@ -2037,12 +2372,12 @@ function PinIconButton(props) {
|
|
|
2037
2372
|
}, [isPinned, isPinnedAlways]);
|
|
2038
2373
|
const pinIcon = React.useMemo(() => {
|
|
2039
2374
|
if (isPinnedAlways) {
|
|
2040
|
-
return ForwardRef$
|
|
2375
|
+
return ForwardRef$n;
|
|
2041
2376
|
}
|
|
2042
2377
|
if (isPinned) {
|
|
2043
|
-
return isHovered ? ForwardRef$
|
|
2378
|
+
return isHovered ? ForwardRef$l : ForwardRef$m;
|
|
2044
2379
|
}
|
|
2045
|
-
return ForwardRef$
|
|
2380
|
+
return ForwardRef$m;
|
|
2046
2381
|
}, [
|
|
2047
2382
|
isPinnedAlways, isHovered, isPinned,
|
|
2048
2383
|
]);
|
|
@@ -2052,7 +2387,7 @@ function PinIconButton(props) {
|
|
|
2052
2387
|
React__namespace.createElement(IconButton, { icon: pinIcon, onClick: pinClickHandler, isDisabled: isPinnedAlways, color: isPinned ? 'info' : undefined }))));
|
|
2053
2388
|
}
|
|
2054
2389
|
|
|
2055
|
-
var styles = {"row-wrapper":"
|
|
2390
|
+
var styles = {"row-wrapper":"_4Cx-GQ","not-pinned":"_0Sg6VE","pin-icon-button":"VeYp-c","drag-handle":"l4q8M0","dnd-disabled":"xGPfc7","rowWrapper":"_4Cx-GQ","notPinned":"_0Sg6VE","pinIconButton":"VeYp-c","dragHandle":"l4q8M0","dndDisabled":"xGPfc7"};
|
|
2056
2391
|
|
|
2057
2392
|
const ColumnRow = React__namespace.memo(function ColumnRow(props) {
|
|
2058
2393
|
const { column } = props;
|
|
@@ -2068,7 +2403,7 @@ const ColumnRow = React__namespace.memo(function ColumnRow(props) {
|
|
|
2068
2403
|
return (React__namespace.createElement(FlexRow, Object.assign({ size: "30", cx: wrapperClasses }, wrapperAttrs),
|
|
2069
2404
|
React__namespace.createElement(FlexRow, { size: "30", spacing: "6", cx: styles.title },
|
|
2070
2405
|
React__namespace.createElement(uuiComponents.DragHandle, { rawProps: dragHandleRawProps, isDisabled: !isDndAllowed, cx: uuiCore.cx(styles.dragHandle, !isDndAllowed && styles.dndDisabled) }),
|
|
2071
|
-
React__namespace.createElement(Checkbox, { key: column.key, label: column.caption, value: isVisible, onValueChange: toggleVisibility, isDisabled: column.isAlwaysVisible })),
|
|
2406
|
+
React__namespace.createElement(Checkbox, { key: column.key, label: props.renderItem ? props.renderItem(props.column) : column.caption, value: isVisible, onValueChange: toggleVisibility, isDisabled: column.isAlwaysVisible })),
|
|
2072
2407
|
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
2073
2408
|
React__namespace.createElement(FlexRow, { size: "30", cx: styles.pinIconButton },
|
|
2074
2409
|
React__namespace.createElement(PinIconButton, { id: column.key, isPinned: !!isPinned, canUnpin: !isPinnedAlways, onTogglePin: togglePin })),
|
|
@@ -2087,6 +2422,7 @@ function ColumnsConfigurationModal(props) {
|
|
|
2087
2422
|
initialColumnsConfig,
|
|
2088
2423
|
columns,
|
|
2089
2424
|
defaultConfig,
|
|
2425
|
+
getSearchFields: props.getSearchFields,
|
|
2090
2426
|
});
|
|
2091
2427
|
const apply = React.useCallback(() => modalProps.success(columnsConfig), [columnsConfig, modalProps]);
|
|
2092
2428
|
const close = React.useCallback(() => modalProps.abort(), [modalProps]);
|
|
@@ -2100,9 +2436,9 @@ function ColumnsConfigurationModal(props) {
|
|
|
2100
2436
|
const hasDivider = !!(amountPinned && amountUnPinned);
|
|
2101
2437
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
2102
2438
|
renderGroupTitle(i18n$1.displayedSectionTitle, amountPinned + amountUnPinned),
|
|
2103
|
-
!!amountPinned && (React__namespace.createElement(FlexRow, { cx: styles$1.groupItems, size: "30" }, groupedColumns.displayedPinned.map((c) => (React__namespace.createElement(ColumnRow, { column: c, key: c.key }))))),
|
|
2439
|
+
!!amountPinned && (React__namespace.createElement(FlexRow, { cx: styles$1.groupItems, size: "30" }, groupedColumns.displayedPinned.map((c) => (React__namespace.createElement(ColumnRow, { column: c, key: c.key, renderItem: props.renderItem }))))),
|
|
2104
2440
|
hasDivider && React__namespace.createElement("div", { className: styles$1.hDivider }),
|
|
2105
|
-
!!amountUnPinned && (React__namespace.createElement(FlexRow, { cx: styles$1.groupItems, size: "30" }, groupedColumns.displayedUnpinned.map((c) => (React__namespace.createElement(ColumnRow, { column: c, key: c.key })))))));
|
|
2441
|
+
!!amountUnPinned && (React__namespace.createElement(FlexRow, { cx: styles$1.groupItems, size: "30" }, groupedColumns.displayedUnpinned.map((c) => (React__namespace.createElement(ColumnRow, { column: c, key: c.key, renderItem: props.renderItem })))))));
|
|
2106
2442
|
};
|
|
2107
2443
|
const renderHidden = () => {
|
|
2108
2444
|
const amountHidden = groupedColumns.hidden.length;
|
|
@@ -2111,10 +2447,10 @@ function ColumnsConfigurationModal(props) {
|
|
|
2111
2447
|
}
|
|
2112
2448
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
2113
2449
|
renderGroupTitle(i18n$1.hiddenSectionTitle, amountHidden),
|
|
2114
|
-
React__namespace.createElement(FlexRow, { cx: styles$1.groupItems, size: "30" }, groupedColumns.hidden.map((c) => (React__namespace.createElement(ColumnRow, { column: c, key: c.key }))))));
|
|
2450
|
+
React__namespace.createElement(FlexRow, { cx: styles$1.groupItems, size: "30" }, groupedColumns.hidden.map((c) => (React__namespace.createElement(ColumnRow, { column: c, key: c.key, renderItem: props.renderItem }))))));
|
|
2115
2451
|
};
|
|
2116
2452
|
const noVisibleColumns = React.useMemo(() => !groupedColumns.displayedPinned.length && !groupedColumns.displayedUnpinned.length, [groupedColumns.displayedPinned, groupedColumns.displayedUnpinned]);
|
|
2117
|
-
const applyButton = React__namespace.createElement(Button, { caption: i18n$1.applyButton, isDisabled: noVisibleColumns, color: "
|
|
2453
|
+
const applyButton = React__namespace.createElement(Button, { caption: i18n$1.applyButton, isDisabled: noVisibleColumns, color: "primary", onClick: apply });
|
|
2118
2454
|
return (React__namespace.createElement(ModalBlocker, Object.assign({}, modalProps),
|
|
2119
2455
|
React__namespace.createElement(ModalWindow, { height: 700 },
|
|
2120
2456
|
React__namespace.createElement(ModalHeader, { title: i18n$1.configureColumnsTitle, onClose: close }),
|
|
@@ -2122,7 +2458,7 @@ function ColumnsConfigurationModal(props) {
|
|
|
2122
2458
|
React__namespace.createElement(SearchInput, { size: "30", value: searchValue, onValueChange: setSearchValue, placeholder: i18n$1.searchPlaceholder }),
|
|
2123
2459
|
React__namespace.createElement(Dropdown, { closeOnTargetClick: true, renderBody: () => (React__namespace.createElement(Panel, { shadow: true },
|
|
2124
2460
|
React__namespace.createElement(DropdownMenuButton, { caption: i18n$1.clearAllButton, onClick: uncheckAll }),
|
|
2125
|
-
React__namespace.createElement(DropdownMenuButton, { caption: i18n$1.selectAllButton, onClick: checkAll }))), renderTarget: (props) => React__namespace.createElement(Button, Object.assign({}, props, { mode: "none", icon: ForwardRef$
|
|
2461
|
+
React__namespace.createElement(DropdownMenuButton, { caption: i18n$1.selectAllButton, onClick: checkAll }))), renderTarget: (props) => React__namespace.createElement(Button, Object.assign({}, props, { mode: "none", icon: ForwardRef$p, size: "30", color: "secondary", isDropdown: false })) })),
|
|
2126
2462
|
React__namespace.createElement(Panel, { cx: styles$1.mainPanel },
|
|
2127
2463
|
React__namespace.createElement(ScrollBars, null,
|
|
2128
2464
|
renderVisible(),
|
|
@@ -2131,22 +2467,22 @@ function ColumnsConfigurationModal(props) {
|
|
|
2131
2467
|
React__namespace.createElement(Text, { fontSize: "24", lineHeight: "30", color: "primary", font: "semibold" }, i18n$1.noResultsFound.text),
|
|
2132
2468
|
React__namespace.createElement(Text, { fontSize: "16", lineHeight: "24", font: "regular", color: "primary" }, i18n$1.noResultsFound.subText))))),
|
|
2133
2469
|
React__namespace.createElement(ModalFooter, { borderTop: true },
|
|
2134
|
-
React__namespace.createElement(LinkButton, { icon: ForwardRef$
|
|
2470
|
+
React__namespace.createElement(LinkButton, { icon: ForwardRef$o, caption: i18n$1.resetToDefaultButton, onClick: reset }),
|
|
2135
2471
|
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
2136
2472
|
React__namespace.createElement(Button, { mode: "none", color: "secondary", caption: i18n$1.cancelButton, onClick: close }),
|
|
2137
2473
|
noVisibleColumns ? (React__namespace.createElement(Tooltip, { content: i18n$1.enableAtLeastOneColumnMessage, placement: "top-end", color: "critical" }, applyButton)) : (applyButton)))));
|
|
2138
2474
|
}
|
|
2139
2475
|
|
|
2140
|
-
var css$
|
|
2476
|
+
var css$w = {"panel":"DGd1K6"};
|
|
2141
2477
|
|
|
2142
|
-
var css$
|
|
2478
|
+
var css$v = {"sorting-panel-container":"iq6R2c","sort-active":"_6YLwSW","sortingPanelContainer":"iq6R2c","sortActive":"_6YLwSW"};
|
|
2143
2479
|
|
|
2144
2480
|
const SortingPanelImpl = ({ sortDirection, onSort }) => {
|
|
2145
2481
|
const sortAsc = React.useCallback(() => onSort(sortDirection === 'asc' ? undefined : 'asc'), [onSort]);
|
|
2146
2482
|
const sortDesc = React.useCallback(() => onSort(sortDirection === 'desc' ? undefined : 'desc'), [onSort]);
|
|
2147
|
-
return (React__namespace.default.createElement(FlexCell, { cx: css$
|
|
2148
|
-
React__namespace.default.createElement(DropdownMenuButton, { isActive: sortDirection === 'asc', caption: i18n.pickerFilterHeader.sortAscending, icon: ForwardRef$
|
|
2149
|
-
React__namespace.default.createElement(DropdownMenuButton, { isActive: sortDirection === 'desc', caption: i18n.pickerFilterHeader.sortDescending, icon: ForwardRef$
|
|
2483
|
+
return (React__namespace.default.createElement(FlexCell, { cx: css$v.sortingPanelContainer },
|
|
2484
|
+
React__namespace.default.createElement(DropdownMenuButton, { isActive: sortDirection === 'asc', caption: i18n.pickerFilterHeader.sortAscending, icon: ForwardRef$v, onClick: sortAsc }),
|
|
2485
|
+
React__namespace.default.createElement(DropdownMenuButton, { isActive: sortDirection === 'desc', caption: i18n.pickerFilterHeader.sortDescending, icon: ForwardRef$u, onClick: sortDesc })));
|
|
2150
2486
|
};
|
|
2151
2487
|
const SortingPanel = React__namespace.default.memo(SortingPanelImpl);
|
|
2152
2488
|
|
|
@@ -2161,63 +2497,63 @@ const ColumnHeaderDropdownImpl = (props) => {
|
|
|
2161
2497
|
width: uuiCore.isMobile() ? document.documentElement.clientWidth : undefined,
|
|
2162
2498
|
}), []);
|
|
2163
2499
|
const closeDropdown = React.useCallback(() => props.onOpenChange(false), [props.onOpenChange]);
|
|
2164
|
-
return (React__namespace.default.createElement(uuiComponents.Dropdown, { renderTarget: props.renderTarget, renderBody: (dropdownProps) => (React__namespace.default.createElement(Panel, { style: style, shadow: true, cx: css$
|
|
2500
|
+
return (React__namespace.default.createElement(uuiComponents.Dropdown, { renderTarget: props.renderTarget, renderBody: (dropdownProps) => (React__namespace.default.createElement(Panel, { style: style, shadow: true, cx: css$w.panel },
|
|
2165
2501
|
React__namespace.default.createElement(MobileDropdownWrapper, { title: props.title, close: closeDropdown },
|
|
2166
2502
|
props.isSortable && React__namespace.default.createElement(SortingPanel, { sortDirection: props.sortDirection, onSort: props.onSort }),
|
|
2167
2503
|
props.renderFilter(dropdownProps)))), modifiers: popperModifiers, value: props.isOpen, onValueChange: props.onOpenChange }));
|
|
2168
2504
|
};
|
|
2169
2505
|
const ColumnHeaderDropdown = React__namespace.default.memo(ColumnHeaderDropdownImpl);
|
|
2170
2506
|
|
|
2171
|
-
var _path$
|
|
2172
|
-
function _extends$
|
|
2507
|
+
var _path$j;
|
|
2508
|
+
function _extends$k() { _extends$k = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$k.apply(this, arguments); }
|
|
2173
2509
|
var SvgNotificationDone24 = function SvgNotificationDone24(props, ref) {
|
|
2174
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2510
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
|
|
2175
2511
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2176
2512
|
width: 24,
|
|
2177
2513
|
height: 24,
|
|
2178
2514
|
viewBox: "0 0 24 24",
|
|
2179
2515
|
ref: ref
|
|
2180
|
-
}, props), _path$
|
|
2516
|
+
}, props), _path$j || (_path$j = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2181
2517
|
fillRule: "evenodd",
|
|
2182
2518
|
d: "m9.727 16.075-4.295-4.388L4 13.149 9.727 19 22 6.463 20.568 5 9.728 16.075z",
|
|
2183
2519
|
clipRule: "evenodd"
|
|
2184
2520
|
})));
|
|
2185
2521
|
};
|
|
2186
|
-
var ForwardRef$
|
|
2522
|
+
var ForwardRef$k = /*#__PURE__*/React.forwardRef(SvgNotificationDone24);
|
|
2187
2523
|
|
|
2188
|
-
var _path$
|
|
2189
|
-
function _extends$
|
|
2524
|
+
var _path$i;
|
|
2525
|
+
function _extends$j() { _extends$j = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$j.apply(this, arguments); }
|
|
2190
2526
|
var SvgNotificationDone18 = function SvgNotificationDone18(props, ref) {
|
|
2191
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2527
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
|
|
2192
2528
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2193
2529
|
width: 18,
|
|
2194
2530
|
height: 18,
|
|
2195
2531
|
viewBox: "0 0 18 18",
|
|
2196
2532
|
ref: ref
|
|
2197
|
-
}, props), _path$
|
|
2533
|
+
}, props), _path$i || (_path$i = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2198
2534
|
fillRule: "evenodd",
|
|
2199
2535
|
d: "M7.136 11.91 4.034 8.776 3 9.821 7.136 14 16 5.045 14.966 4l-7.83 7.91z",
|
|
2200
2536
|
clipRule: "evenodd"
|
|
2201
2537
|
})));
|
|
2202
2538
|
};
|
|
2203
|
-
var ForwardRef$
|
|
2539
|
+
var ForwardRef$j = /*#__PURE__*/React.forwardRef(SvgNotificationDone18);
|
|
2204
2540
|
|
|
2205
|
-
var _path$
|
|
2206
|
-
function _extends$
|
|
2541
|
+
var _path$h;
|
|
2542
|
+
function _extends$i() { _extends$i = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$i.apply(this, arguments); }
|
|
2207
2543
|
var SvgNotificationDone12 = function SvgNotificationDone12(props, ref) {
|
|
2208
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2544
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
|
|
2209
2545
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2210
2546
|
width: 12,
|
|
2211
2547
|
height: 12,
|
|
2212
2548
|
viewBox: "0 0 12 12",
|
|
2213
2549
|
ref: ref
|
|
2214
|
-
}, props), _path$
|
|
2550
|
+
}, props), _path$h || (_path$h = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2215
2551
|
d: "M11 3.6 9.462 2 4.846 6.8 2.538 4.4 1 6l3.846 4L11 3.6z"
|
|
2216
2552
|
})));
|
|
2217
2553
|
};
|
|
2218
|
-
var ForwardRef$
|
|
2554
|
+
var ForwardRef$i = /*#__PURE__*/React.forwardRef(SvgNotificationDone12);
|
|
2219
2555
|
|
|
2220
|
-
var css$
|
|
2556
|
+
var css$u = {"render-item":"W4PdFC","icon-wrapper":"K883JD","picker-row":"Ih7-WV","icon-default":"_2iAJUp","icon-primary":"dhTk9b","renderItem":"W4PdFC","iconWrapper":"K883JD","pickerRow":"Ih7-WV","iconDefault":"_2iAJUp","iconPrimary":"dhTk9b"};
|
|
2221
2557
|
|
|
2222
2558
|
class DataPickerRow extends React__namespace.Component {
|
|
2223
2559
|
constructor() {
|
|
@@ -2225,37 +2561,37 @@ class DataPickerRow extends React__namespace.Component {
|
|
|
2225
2561
|
this.getIcon = (size) => {
|
|
2226
2562
|
switch (size) {
|
|
2227
2563
|
case '24':
|
|
2228
|
-
return ForwardRef$
|
|
2564
|
+
return ForwardRef$i;
|
|
2229
2565
|
case '30':
|
|
2230
|
-
return ForwardRef$
|
|
2566
|
+
return ForwardRef$j;
|
|
2231
2567
|
case '36':
|
|
2232
|
-
return ForwardRef$
|
|
2568
|
+
return ForwardRef$j;
|
|
2233
2569
|
case '42':
|
|
2234
|
-
return ForwardRef$
|
|
2570
|
+
return ForwardRef$k;
|
|
2235
2571
|
default:
|
|
2236
|
-
return ForwardRef$
|
|
2572
|
+
return ForwardRef$j;
|
|
2237
2573
|
}
|
|
2238
2574
|
};
|
|
2239
2575
|
this.column = {
|
|
2240
2576
|
key: 'name',
|
|
2241
2577
|
grow: 1,
|
|
2242
2578
|
width: 0,
|
|
2243
|
-
render: (item, rowProps) => (React__namespace.createElement("div", { key: rowProps.id, className: css$
|
|
2579
|
+
render: (item, rowProps) => (React__namespace.createElement("div", { key: rowProps.id, className: css$u.renderItem },
|
|
2244
2580
|
this.props.renderItem(item, rowProps),
|
|
2245
2581
|
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
2246
|
-
(rowProps.isChildrenSelected || rowProps.isSelected) && (React__namespace.createElement("div", { className: css$
|
|
2247
|
-
React__namespace.createElement(uuiComponents.IconContainer, { icon: this.getIcon(this.props.size), cx: rowProps.isChildrenSelected ? css$
|
|
2582
|
+
(rowProps.isChildrenSelected || rowProps.isSelected) && (React__namespace.createElement("div", { className: css$u.iconWrapper },
|
|
2583
|
+
React__namespace.createElement(uuiComponents.IconContainer, { icon: this.getIcon(this.props.size), cx: rowProps.isChildrenSelected ? css$u.iconDefault : css$u.iconPrimary }))))),
|
|
2248
2584
|
};
|
|
2249
2585
|
this.renderContent = () => {
|
|
2250
2586
|
return (React__namespace.createElement(DataTableCell, { key: "name", size: this.props.size || '36', padding: this.props.padding || '24', isFirstColumn: true, isLastColumn: false, tabIndex: -1, column: this.column, rowProps: this.props, alignActions: this.props.alignActions || 'top' }));
|
|
2251
2587
|
};
|
|
2252
2588
|
}
|
|
2253
2589
|
render() {
|
|
2254
|
-
return React__namespace.createElement(uuiComponents.DataPickerRow, Object.assign({}, this.props, { cx: [css$
|
|
2590
|
+
return React__namespace.createElement(uuiComponents.DataPickerRow, Object.assign({}, this.props, { cx: [css$u.pickerRow, this.props.cx], renderContent: this.renderContent }));
|
|
2255
2591
|
}
|
|
2256
2592
|
}
|
|
2257
2593
|
|
|
2258
|
-
var css$
|
|
2594
|
+
var css$t = {"done":"-q1cRj"};
|
|
2259
2595
|
|
|
2260
2596
|
const MobileDropdownWrapper = (props) => {
|
|
2261
2597
|
const isVisible = uuiCore.isMobile();
|
|
@@ -2263,22 +2599,22 @@ const MobileDropdownWrapper = (props) => {
|
|
|
2263
2599
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
2264
2600
|
isVisible && React__namespace.default.createElement(DataPickerHeader, { title: props.title, close: props.close }),
|
|
2265
2601
|
props.children,
|
|
2266
|
-
isVisible && React__namespace.default.createElement(LinkButton, { caption: i18n.pickerInput.doneButton, onClick: () => { var _a; return (_a = props.close) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: css$
|
|
2602
|
+
isVisible && React__namespace.default.createElement(LinkButton, { caption: i18n.pickerInput.doneButton, onClick: () => { var _a; return (_a = props.close) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: css$t.done, size: "48" })));
|
|
2267
2603
|
};
|
|
2268
2604
|
|
|
2269
|
-
var css$
|
|
2605
|
+
var css$s = {"sub-header-wrapper":"cy3T0L","switch":"Vs2XjI","no-found-modal-container":"NohGhO","no-found-modal-container-icon":"_0furH-","no-found-modal-container-text":"wpy72v","subHeaderWrapper":"cy3T0L","$switch$":"Vs2XjI","noFoundModalContainer":"NohGhO","noFoundModalContainerIcon":"_0furH-","noFoundModalContainerText":"wpy72v"};
|
|
2270
2606
|
|
|
2271
|
-
var _path$
|
|
2272
|
-
function _extends$
|
|
2607
|
+
var _path$g, _path2;
|
|
2608
|
+
function _extends$h() { _extends$h = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$h.apply(this, arguments); }
|
|
2273
2609
|
var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
2274
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2610
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
|
|
2275
2611
|
width: 66,
|
|
2276
2612
|
height: 67,
|
|
2277
2613
|
viewBox: "0 0 66 67",
|
|
2278
2614
|
fill: "none",
|
|
2279
2615
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2280
2616
|
ref: ref
|
|
2281
|
-
}, props), _path$
|
|
2617
|
+
}, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2282
2618
|
d: "M0 33.5C0 15.275 14.775.5 33 .5s33 14.775 33 33-14.775 33-33 33-33-14.775-33-33Z",
|
|
2283
2619
|
fill: "#EBEDF5"
|
|
2284
2620
|
})), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -2288,16 +2624,16 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
|
2288
2624
|
fill: "#6C6F80"
|
|
2289
2625
|
})));
|
|
2290
2626
|
};
|
|
2291
|
-
var ForwardRef$
|
|
2627
|
+
var ForwardRef$h = /*#__PURE__*/React.forwardRef(SvgSearchWithBackground);
|
|
2292
2628
|
|
|
2293
2629
|
class PickerModalImpl extends uuiComponents.PickerModalBase {
|
|
2294
2630
|
constructor() {
|
|
2295
2631
|
super(...arguments);
|
|
2296
2632
|
this.renderNotFound = () => {
|
|
2297
|
-
return this.props.renderNotFound ? (this.props.renderNotFound({ search: this.state.dataSourceState.search, onClose: () => this.props.success(null) })) : (React__namespace.createElement("div", { className: css$
|
|
2298
|
-
React__namespace.createElement(uuiComponents.IconContainer, { cx: css$
|
|
2299
|
-
React__namespace.createElement(Text, { cx: css$
|
|
2300
|
-
React__namespace.createElement(Text, { cx: css$
|
|
2633
|
+
return this.props.renderNotFound ? (this.props.renderNotFound({ search: this.state.dataSourceState.search, onClose: () => this.props.success(null) })) : (React__namespace.createElement("div", { className: css$s.noFoundModalContainer },
|
|
2634
|
+
React__namespace.createElement(uuiComponents.IconContainer, { cx: css$s.noFoundModalContainerIcon, icon: ForwardRef$h }),
|
|
2635
|
+
React__namespace.createElement(Text, { cx: css$s.noFoundModalContainerText, font: "semibold", fontSize: "16", lineHeight: "24", color: "primary", size: "36" }, i18n.dataPickerBody.noRecordsMessage),
|
|
2636
|
+
React__namespace.createElement(Text, { cx: css$s.noFoundModalContainerText, fontSize: "12", lineHeight: "18", font: "regular", color: "primary", size: "36" }, i18n.dataPickerBody.noRecordsSubTitle)));
|
|
2301
2637
|
};
|
|
2302
2638
|
}
|
|
2303
2639
|
renderRow(rowProps) {
|
|
@@ -2319,7 +2655,7 @@ class PickerModalImpl extends uuiComponents.PickerModalBase {
|
|
|
2319
2655
|
return (React__namespace.createElement(ModalBlocker, Object.assign({}, this.props),
|
|
2320
2656
|
React__namespace.createElement(ModalWindow, { width: 600, height: 700 },
|
|
2321
2657
|
React__namespace.createElement(ModalHeader, { title: this.props.caption || i18n.pickerModal.headerTitle, onClose: () => this.props.abort() }),
|
|
2322
|
-
React__namespace.createElement(FlexCell, { cx: css$
|
|
2658
|
+
React__namespace.createElement(FlexCell, { cx: css$s.subHeaderWrapper },
|
|
2323
2659
|
React__namespace.createElement(FlexRow, { vPadding: "24" },
|
|
2324
2660
|
React__namespace.createElement(SearchInput, Object.assign({}, this.lens.prop('dataSourceState').prop('search').toProps(), { onKeyDown: (e) => uuiComponents.handleDataSourceKeyboard({
|
|
2325
2661
|
value: this.getDataSourceState(),
|
|
@@ -2328,7 +2664,7 @@ class PickerModalImpl extends uuiComponents.PickerModalBase {
|
|
|
2328
2664
|
rows: dataRows,
|
|
2329
2665
|
editMode: 'modal',
|
|
2330
2666
|
}, e), autoFocus: true, placeholder: i18n.pickerModal.searchPlaceholder }))),
|
|
2331
|
-
!this.isSingleSelect() && (React__namespace.createElement(Switch, Object.assign({ cx: css$
|
|
2667
|
+
!this.isSingleSelect() && (React__namespace.createElement(Switch, Object.assign({ cx: css$s.switch, size: "18" }, this.stateLens.prop('showSelected').toProps(), { isDisabled: view.getSelectedRowsCount() < 1, label: "Show only selected" }))),
|
|
2332
2668
|
this.props.renderFilter && React__namespace.createElement(FlexCell, { grow: 2 }, this.props.renderFilter(this.lens.prop('dataSourceState').prop('filter').toProps()))),
|
|
2333
2669
|
React__namespace.createElement(DataPickerBody, Object.assign({}, this.getListProps(), { value: this.getDataSourceState(), onValueChange: this.handleDataSourceValueChange, search: this.lens.prop('dataSourceState').prop('search').toProps(), showSearch: false, rows: rows, renderNotFound: this.renderNotFound, editMode: "modal" })),
|
|
2334
2670
|
React__namespace.createElement(ModalFooter, { padding: "24", vPadding: "24" }, this.props.renderFooter ? this.props.renderFooter(this.getFooterProps()) : this.renderFooter()))));
|
|
@@ -2345,13 +2681,11 @@ class PickerModal extends React__namespace.Component {
|
|
|
2345
2681
|
}
|
|
2346
2682
|
}
|
|
2347
2683
|
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
var css$p = {"root":"AvatarStack-module_root__OBrBf"};
|
|
2684
|
+
var css$r = {"root":"Puf22E"};
|
|
2351
2685
|
|
|
2352
|
-
const AvatarStack = uuiCore.withMods(uuiComponents.AvatarStack, () => [css$
|
|
2686
|
+
const AvatarStack = uuiCore.withMods(uuiComponents.AvatarStack, () => [css$r.root]);
|
|
2353
2687
|
|
|
2354
|
-
var css$
|
|
2688
|
+
var css$q = {"root":"RYmnOy","size-18":"W5TuKF","fill-transparent":"h-1m-6","size-24":"ojlLD-","size-30":"_0-A4Vc","size-36":"zfEf8e","size-42":"Qehq-3","size-48":"laiIwj","fill-solid":"PRAPps","fill-semitransparent":"tnO6Di","size18":"W5TuKF","fillTransparent":"h-1m-6","size24":"ojlLD-","size30":"_0-A4Vc","size36":"zfEf8e","size42":"Qehq-3","size48":"laiIwj","fillSolid":"PRAPps","fillSemitransparent":"tnO6Di"};
|
|
2355
2689
|
|
|
2356
2690
|
const defaultSize$4 = '36';
|
|
2357
2691
|
const mapSize$1 = {
|
|
@@ -2364,7 +2698,7 @@ const mapSize$1 = {
|
|
|
2364
2698
|
};
|
|
2365
2699
|
function applyBadgeMods(mods) {
|
|
2366
2700
|
return [
|
|
2367
|
-
css$
|
|
2701
|
+
css$q.root, buttonCss.root, css$q['size-' + (mods.size || defaultSize$4)], css$q['fill-' + (mods.fill || 'solid')], mods.color && `badge-${mods.color}`,
|
|
2368
2702
|
];
|
|
2369
2703
|
}
|
|
2370
2704
|
const Badge = uuiCore.withMods(uuiComponents.Button, applyBadgeMods, (props) => ({
|
|
@@ -2373,7 +2707,7 @@ const Badge = uuiCore.withMods(uuiComponents.Button, applyBadgeMods, (props) =>
|
|
|
2373
2707
|
countPosition: 'left',
|
|
2374
2708
|
}));
|
|
2375
2709
|
|
|
2376
|
-
var css$
|
|
2710
|
+
var css$p = {"root":"ZM6OYB","size-18":"iexIQA","size-24":"wuVFsv","size-30":"Q2FsvU","size-36":"_8wH4Qx","size-42":"PyywA4","size-48":"L9G3AM","size18":"iexIQA","size24":"wuVFsv","size30":"Q2FsvU","size36":"_8wH4Qx","size42":"PyywA4","size48":"L9G3AM"};
|
|
2377
2711
|
|
|
2378
2712
|
const defaultSize$3 = '36';
|
|
2379
2713
|
const mapSize = {
|
|
@@ -2385,98 +2719,64 @@ const mapSize = {
|
|
|
2385
2719
|
18: '18',
|
|
2386
2720
|
};
|
|
2387
2721
|
function applyTagMods(mods) {
|
|
2388
|
-
return [css$
|
|
2722
|
+
return [css$p['size-' + (mods.size || defaultSize$3)], css$p.root];
|
|
2389
2723
|
}
|
|
2390
2724
|
const Tag = uuiCore.withMods(uuiComponents.Button, applyTagMods, (props) => ({
|
|
2391
2725
|
dropdownIcon: systemIcons[mapSize[props.size] || defaultSize$3].foldingArrow,
|
|
2392
2726
|
clearIcon: systemIcons[mapSize[props.size] || defaultSize$3].clear,
|
|
2393
2727
|
}));
|
|
2394
2728
|
|
|
2395
|
-
var css$
|
|
2729
|
+
var css$o = {"root":"hGId8P","spacer":"wb-bGJ","mode-ghost":"_8j2peT","size-24":"nGVoyP","size-30":"_8socU6","navigation-size-24":"WNKiJi","navigation-size-30":"kipHEg","modeGhost":"_8j2peT","size24":"nGVoyP","size30":"_8socU6","navigationSize24":"WNKiJi","navigationSize30":"kipHEg"};
|
|
2396
2730
|
|
|
2397
|
-
var _path$
|
|
2398
|
-
function _extends$
|
|
2731
|
+
var _path$f;
|
|
2732
|
+
function _extends$g() { _extends$g = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$g.apply(this, arguments); }
|
|
2399
2733
|
var SvgNavigationChevronLeft12 = function SvgNavigationChevronLeft12(props, ref) {
|
|
2400
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2734
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
|
|
2401
2735
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2402
2736
|
width: 12,
|
|
2403
2737
|
height: 12,
|
|
2404
2738
|
viewBox: "0 0 12 12",
|
|
2405
2739
|
ref: ref
|
|
2406
|
-
}, props), _path$
|
|
2740
|
+
}, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2407
2741
|
fillRule: "evenodd",
|
|
2408
2742
|
d: "M7.705 3.705 7 3 4 6l3 3 .705-.705L5.415 6l2.29-2.295z",
|
|
2409
2743
|
clipRule: "evenodd"
|
|
2410
2744
|
})));
|
|
2411
2745
|
};
|
|
2412
|
-
var ForwardRef$
|
|
2746
|
+
var ForwardRef$g = /*#__PURE__*/React.forwardRef(SvgNavigationChevronLeft12);
|
|
2413
2747
|
|
|
2414
|
-
var _path$
|
|
2415
|
-
function _extends$
|
|
2748
|
+
var _path$e;
|
|
2749
|
+
function _extends$f() { _extends$f = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$f.apply(this, arguments); }
|
|
2416
2750
|
var SvgNavigationChevronRight12 = function SvgNavigationChevronRight12(props, ref) {
|
|
2417
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2751
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
|
|
2418
2752
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2419
2753
|
width: 12,
|
|
2420
2754
|
height: 12,
|
|
2421
2755
|
viewBox: "0 0 12 12",
|
|
2422
2756
|
ref: ref
|
|
2423
|
-
}, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2424
|
-
fillRule: "evenodd",
|
|
2425
|
-
d: "m5 3-.705.705L6.585 6l-2.29 2.295L5 9l3-3-3-3z",
|
|
2426
|
-
clipRule: "evenodd"
|
|
2427
|
-
})));
|
|
2428
|
-
};
|
|
2429
|
-
var ForwardRef$h = /*#__PURE__*/React.forwardRef(SvgNavigationChevronRight12);
|
|
2430
|
-
|
|
2431
|
-
var _path$f;
|
|
2432
|
-
function _extends$g() { _extends$g = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$g.apply(this, arguments); }
|
|
2433
|
-
var SvgNavigationChevronLeft18 = function SvgNavigationChevronLeft18(props, ref) {
|
|
2434
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
|
|
2435
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2436
|
-
width: 18,
|
|
2437
|
-
height: 18,
|
|
2438
|
-
viewBox: "0 0 18 18",
|
|
2439
|
-
ref: ref
|
|
2440
|
-
}, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2441
|
-
fillRule: "evenodd",
|
|
2442
|
-
d: "M11.557 5.558 10.5 4.5 6 9l4.5 4.5 1.057-1.057L8.123 9l3.434-3.442z",
|
|
2443
|
-
clipRule: "evenodd"
|
|
2444
|
-
})));
|
|
2445
|
-
};
|
|
2446
|
-
var ForwardRef$g = /*#__PURE__*/React.forwardRef(SvgNavigationChevronLeft18);
|
|
2447
|
-
|
|
2448
|
-
var _path$e;
|
|
2449
|
-
function _extends$f() { _extends$f = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$f.apply(this, arguments); }
|
|
2450
|
-
var SvgNavigationChevronRight18 = function SvgNavigationChevronRight18(props, ref) {
|
|
2451
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
|
|
2452
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2453
|
-
width: 18,
|
|
2454
|
-
height: 18,
|
|
2455
|
-
viewBox: "0 0 18 18",
|
|
2456
|
-
ref: ref
|
|
2457
2757
|
}, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2458
2758
|
fillRule: "evenodd",
|
|
2459
|
-
d: "
|
|
2759
|
+
d: "m5 3-.705.705L6.585 6l-2.29 2.295L5 9l3-3-3-3z",
|
|
2460
2760
|
clipRule: "evenodd"
|
|
2461
2761
|
})));
|
|
2462
2762
|
};
|
|
2463
|
-
var ForwardRef$f = /*#__PURE__*/React.forwardRef(
|
|
2763
|
+
var ForwardRef$f = /*#__PURE__*/React.forwardRef(SvgNavigationChevronRight12);
|
|
2464
2764
|
|
|
2465
2765
|
function Paginator(props) {
|
|
2466
2766
|
const renderPaginator = (params) => {
|
|
2467
2767
|
var _a, _b;
|
|
2468
|
-
return (React__namespace.default.createElement("nav", Object.assign({ role: "navigation", className: css$
|
|
2469
|
-
React__namespace.default.createElement(Button, { cx: css$
|
|
2768
|
+
return (React__namespace.default.createElement("nav", Object.assign({ role: "navigation", className: css$o.root }, params.rawProps),
|
|
2769
|
+
React__namespace.default.createElement(Button, { cx: css$o[`navigation-size-${(_a = params.size) !== null && _a !== void 0 ? _a : '30'}`], size: params.size, icon: params.size === '30' ? ForwardRef$B : ForwardRef$g, onClick: params.goToPrev, isDisabled: params.isFirst, mode: "outline", color: "secondary" }),
|
|
2470
2770
|
params.pages.map((page, index) => {
|
|
2471
2771
|
var _a, _b;
|
|
2472
2772
|
if (page.type === 'spacer') {
|
|
2473
|
-
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$
|
|
2773
|
+
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$o[`size-${(_a = params.size) !== null && _a !== void 0 ? _a : '30'}`], css$o.spacer), size: params.size, key: `${index}_spacer`, caption: "...", mode: "ghost", color: "secondary", tabIndex: -1 }));
|
|
2474
2774
|
}
|
|
2475
2775
|
else {
|
|
2476
|
-
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$
|
|
2776
|
+
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$o[`size-${(_b = params.size) !== null && _b !== void 0 ? _b : '30'}`], css$o[`mode-${!page.isActive && 'ghost'}`]), size: params.size, key: page.pageNumber, caption: page.pageNumber, onClick: () => { var _a; return (_a = page.onClick) === null || _a === void 0 ? void 0 : _a.call(page); }, rawProps: { 'aria-current': page.isActive }, mode: (page.isActive && 'outline') || 'ghost', color: "primary" }));
|
|
2477
2777
|
}
|
|
2478
2778
|
}),
|
|
2479
|
-
React__namespace.default.createElement(Button, { cx: css$
|
|
2779
|
+
React__namespace.default.createElement(Button, { cx: css$o[`navigation-size-${(_b = params.size) !== null && _b !== void 0 ? _b : '30'}`], size: params.size, icon: params.size === '30' ? ForwardRef$A : ForwardRef$f, onClick: params.goToNext, isDisabled: params.isLast, mode: "outline", color: "secondary" })));
|
|
2480
2780
|
};
|
|
2481
2781
|
return React__namespace.default.createElement(uuiComponents.Paginator, Object.assign({}, props, { render: renderPaginator }));
|
|
2482
2782
|
}
|
|
@@ -2484,15 +2784,15 @@ function Paginator(props) {
|
|
|
2484
2784
|
const MAX_ITEMS = 100;
|
|
2485
2785
|
const getMaxItems = (maxItems) => maxItems || maxItems === 0 ? maxItems : MAX_ITEMS;
|
|
2486
2786
|
|
|
2487
|
-
var css$
|
|
2787
|
+
var css$n = {"root":"RSYEne","mode-form":"RVyaLe","mode-cell":"PVDQso","mode-inline":"U-95ym","size-24":"Ms8-LQ","size-30":"-M-3I3","size-36":"PpM-u3","size-42":"-VI-rR","size-48":"JEPdPy","modeForm":"RVyaLe","modeCell":"PVDQso","modeInline":"U-95ym","size24":"Ms8-LQ","size30":"-M-3I3","size36":"PpM-u3","size42":"-VI-rR","size48":"JEPdPy"};
|
|
2488
2788
|
|
|
2489
2789
|
const defaultSize$2 = '36';
|
|
2490
2790
|
const defaultMode = exports.EditMode.FORM;
|
|
2491
2791
|
function applyPickerTogglerMods(mods) {
|
|
2492
2792
|
return [
|
|
2493
|
-
css$
|
|
2494
|
-
css$
|
|
2495
|
-
css$
|
|
2793
|
+
css$n.root,
|
|
2794
|
+
css$n['size-' + (mods.size || defaultSize$2)],
|
|
2795
|
+
css$n['mode-' + (mods.mode || defaultMode)],
|
|
2496
2796
|
];
|
|
2497
2797
|
}
|
|
2498
2798
|
function PickerTogglerComponent(props, ref) {
|
|
@@ -2534,7 +2834,74 @@ function PickerTogglerComponent(props, ref) {
|
|
|
2534
2834
|
}
|
|
2535
2835
|
const PickerToggler = React__namespace.forwardRef(PickerTogglerComponent);
|
|
2536
2836
|
|
|
2537
|
-
var css$
|
|
2837
|
+
var css$m = {"root":"-td799","multiline-vertical-padding-24":"-N4cgw","multiline-vertical-padding-30":"gzHKny","multiline-vertical-padding-36":"_7HNFgM","multiline-vertical-padding-42":"eQxMUf","multiline-vertical-padding-48":"w1azza","text":"QgEgxq","multilineVerticalPadding24":"-N4cgw","multilineVerticalPadding30":"gzHKny","multilineVerticalPadding36":"_7HNFgM","multilineVerticalPadding42":"eQxMUf","multilineVerticalPadding48":"w1azza"};
|
|
2838
|
+
|
|
2839
|
+
var css$l = {"highlighted-text":"OGXYHj","highlightedText":"OGXYHj"};
|
|
2840
|
+
|
|
2841
|
+
const mergeHighlightRanges = (ranges) => {
|
|
2842
|
+
const mergedRanges = [];
|
|
2843
|
+
ranges.forEach((range) => {
|
|
2844
|
+
if (!mergedRanges.length) {
|
|
2845
|
+
mergedRanges.push(Object.assign(Object.assign({}, range), { isHighlighted: true }));
|
|
2846
|
+
}
|
|
2847
|
+
const lastRange = mergedRanges[mergedRanges.length - 1];
|
|
2848
|
+
if (range.from >= lastRange.from && range.from <= lastRange.to && range.to > lastRange.to) {
|
|
2849
|
+
lastRange.to = range.to;
|
|
2850
|
+
}
|
|
2851
|
+
if (lastRange.to < range.from) {
|
|
2852
|
+
mergedRanges.push(Object.assign(Object.assign({}, range), { isHighlighted: true }));
|
|
2853
|
+
}
|
|
2854
|
+
});
|
|
2855
|
+
return mergedRanges;
|
|
2856
|
+
};
|
|
2857
|
+
const addNotHighlightedRanges = (ranges, str) => {
|
|
2858
|
+
const allRanges = [];
|
|
2859
|
+
ranges.forEach((range, index) => {
|
|
2860
|
+
if (index === 0 && range.from !== 0) {
|
|
2861
|
+
allRanges.push({ from: 0, to: range.from, isHighlighted: false });
|
|
2862
|
+
}
|
|
2863
|
+
const prevRange = ranges[index - 1];
|
|
2864
|
+
if (prevRange && prevRange.to < range.from) {
|
|
2865
|
+
allRanges.push({ from: prevRange.to, to: range.from, isHighlighted: false });
|
|
2866
|
+
}
|
|
2867
|
+
allRanges.push(range);
|
|
2868
|
+
const lastIndex = ranges.length - 1;
|
|
2869
|
+
if (index === lastIndex && range.to < str.length) {
|
|
2870
|
+
allRanges.push({ from: range.to, to: str.length, isHighlighted: false });
|
|
2871
|
+
}
|
|
2872
|
+
});
|
|
2873
|
+
return allRanges;
|
|
2874
|
+
};
|
|
2875
|
+
const getHighlightRanges = (str, search) => {
|
|
2876
|
+
const words = search
|
|
2877
|
+
.split(' ')
|
|
2878
|
+
.filter(Boolean)
|
|
2879
|
+
.map((word) => word.trim().replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&')) // esape regex characters inside the string
|
|
2880
|
+
.map((word) => new RegExp(word, 'ig'));
|
|
2881
|
+
const matches = words.flatMap((word) => [...str.matchAll(word)]);
|
|
2882
|
+
const ranges = matches
|
|
2883
|
+
.map((match) => ({ from: match.index, to: match[0].length + match.index, isHighlighted: true }))
|
|
2884
|
+
.sort((range1, range2) => range1.from - range2.from);
|
|
2885
|
+
if (!ranges) {
|
|
2886
|
+
return [];
|
|
2887
|
+
}
|
|
2888
|
+
const mergedRanges = mergeHighlightRanges(ranges);
|
|
2889
|
+
return addNotHighlightedRanges(mergedRanges, str);
|
|
2890
|
+
};
|
|
2891
|
+
const getDecoratedText = (str, ranges) => ranges.map((range, index) => {
|
|
2892
|
+
const rangeStr = str.substring(range.from, range.to);
|
|
2893
|
+
return (React__namespace.default.createElement("span", Object.assign({ key: `${rangeStr}-${index}` }, (range.isHighlighted ? { className: css$l.highlightedText } : {})), rangeStr));
|
|
2894
|
+
});
|
|
2895
|
+
const getHighlightedSearchMatches = (str, search) => {
|
|
2896
|
+
if (!search || !str) {
|
|
2897
|
+
return str;
|
|
2898
|
+
}
|
|
2899
|
+
const ranges = getHighlightRanges(str, search);
|
|
2900
|
+
if (!ranges.length) {
|
|
2901
|
+
return str;
|
|
2902
|
+
}
|
|
2903
|
+
return getDecoratedText(str, ranges);
|
|
2904
|
+
};
|
|
2538
2905
|
|
|
2539
2906
|
const defaultSize$1 = '36';
|
|
2540
2907
|
class PickerItem extends React__namespace.Component {
|
|
@@ -2545,20 +2912,27 @@ class PickerItem extends React__namespace.Component {
|
|
|
2545
2912
|
};
|
|
2546
2913
|
}
|
|
2547
2914
|
render() {
|
|
2548
|
-
|
|
2915
|
+
var _a;
|
|
2916
|
+
const { size, avatarUrl, isLoading, isDisabled, icon, highlightSearchMatches, } = this.props;
|
|
2549
2917
|
const itemSize = size && size !== 'none' ? size : defaultSize$1;
|
|
2550
|
-
const isMultiline = !!(title && subtitle);
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2918
|
+
const isMultiline = !!(this.props.title && this.props.subtitle);
|
|
2919
|
+
const { search } = (_a = this.props.dataSourceState) !== null && _a !== void 0 ? _a : {};
|
|
2920
|
+
const title = highlightSearchMatches ? getHighlightedSearchMatches(this.props.title, search) : this.props.title;
|
|
2921
|
+
const subtitle = highlightSearchMatches ? getHighlightedSearchMatches(this.props.subtitle, search) : this.props.subtitle;
|
|
2922
|
+
return (React__namespace.createElement(FlexCell, { width: "auto", cx: css$m.root },
|
|
2923
|
+
React__namespace.createElement(FlexRow, { size: itemSize, cx: isMultiline && css$m[`multiline-vertical-padding-${itemSize}`], spacing: "12" },
|
|
2924
|
+
avatarUrl && React__namespace.createElement(uuiComponents.Avatar, { isLoading: isLoading, img: avatarUrl, size: this.getAvatarSize(itemSize, isMultiline).toString() }),
|
|
2554
2925
|
icon && React__namespace.createElement(uuiComponents.IconContainer, { icon: icon }),
|
|
2555
2926
|
React__namespace.createElement(FlexCell, { width: "auto" },
|
|
2556
|
-
title && (React__namespace.createElement(Text, { size: itemSize, cx: css$
|
|
2557
|
-
subtitle && (React__namespace.createElement(Text, { size: itemSize, color: isDisabled ? 'disabled' : 'secondary', cx: css$
|
|
2927
|
+
title && (React__namespace.createElement(Text, { size: itemSize, cx: css$m.text, color: isDisabled ? 'disabled' : 'primary' }, isLoading ? React__namespace.createElement(TextPlaceholder, { wordsCount: 2 }) : title)),
|
|
2928
|
+
subtitle && (React__namespace.createElement(Text, { size: itemSize, color: isDisabled ? 'disabled' : 'secondary', cx: css$m.text }, isLoading ? React__namespace.createElement(TextPlaceholder, { wordsCount: 2 }) : subtitle))))));
|
|
2558
2929
|
}
|
|
2559
2930
|
}
|
|
2931
|
+
PickerItem.defaultProps = {
|
|
2932
|
+
highlightSearchMatches: true,
|
|
2933
|
+
};
|
|
2560
2934
|
|
|
2561
|
-
var css$
|
|
2935
|
+
var css$k = {"panel":"l2T6vH","footer-wrapper":"v8UxJ-","footer-size-24":"F3FkhH","footer-size-30":"uRXZCd","footer-size-36":"_7jCvTW","footer-size-42":"v-zBBJ","footer-size-48":"WBIq7j","footerWrapper":"v8UxJ-","footerSize24":"F3FkhH","footerSize30":"uRXZCd","footerSize36":"_7jCvTW","footerSize42":"v-zBBJ","footerSize48":"WBIq7j"};
|
|
2562
2936
|
|
|
2563
2937
|
const pickerHeight$1 = 300;
|
|
2564
2938
|
const pickerWidth$1 = 360;
|
|
@@ -2566,7 +2940,8 @@ class PickerInput extends uuiComponents.PickerInputBase {
|
|
|
2566
2940
|
constructor() {
|
|
2567
2941
|
super(...arguments);
|
|
2568
2942
|
this.renderItem = (item, rowProps) => {
|
|
2569
|
-
|
|
2943
|
+
var _a;
|
|
2944
|
+
return (React__namespace.default.createElement(PickerItem, Object.assign({ title: this.getName(item), size: this.getRowSize(), dataSourceState: this.state.dataSourceState, highlightSearchMatches: (_a = this.props.highlightSearchMatches) !== null && _a !== void 0 ? _a : true }, rowProps)));
|
|
2570
2945
|
};
|
|
2571
2946
|
this.renderRow = (rowProps) => {
|
|
2572
2947
|
return this.props.renderRow ? (this.props.renderRow(rowProps, this.state.dataSourceState)) : (React__namespace.default.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey, borderBottom: "none", size: this.getRowSize(), padding: this.props.editMode === 'modal' ? '24' : '12', renderItem: this.renderItem })));
|
|
@@ -2609,7 +2984,7 @@ class PickerInput extends uuiComponents.PickerInputBase {
|
|
|
2609
2984
|
const maxHeight = uuiCore.isMobile() ? document.documentElement.clientHeight : this.props.dropdownHeight || pickerHeight$1;
|
|
2610
2985
|
const minBodyWidth = uuiCore.isMobile() ? document.documentElement.clientWidth : this.props.minBodyWidth || pickerWidth$1;
|
|
2611
2986
|
return (React__namespace.default.createElement(Panel, { style: { width: props.togglerWidth > minBodyWidth ? props.togglerWidth : minBodyWidth }, rawProps: { tabIndex: -1 }, cx: [
|
|
2612
|
-
css$
|
|
2987
|
+
css$k.panel, uuiCore.uuiMarkers.lockFocus, this.props.bodyCx,
|
|
2613
2988
|
] },
|
|
2614
2989
|
React__namespace.default.createElement(MobileDropdownWrapper, { title: this.props.entityName, close: () => {
|
|
2615
2990
|
this.returnFocusToInput();
|
|
@@ -2625,7 +3000,7 @@ class PickerInput extends uuiComponents.PickerInputBase {
|
|
|
2625
3000
|
}
|
|
2626
3001
|
}
|
|
2627
3002
|
|
|
2628
|
-
var css$
|
|
3003
|
+
var css$j = {"row":"-M1x0D"};
|
|
2629
3004
|
|
|
2630
3005
|
class PickerListItem extends React__namespace.default.Component {
|
|
2631
3006
|
render() {
|
|
@@ -2643,7 +3018,7 @@ class PickerListItem extends React__namespace.default.Component {
|
|
|
2643
3018
|
else {
|
|
2644
3019
|
component = (React__namespace.default.createElement(RadioInput, { label: label, value: this.props.isSelected, isDisabled: this.props.isLoading || !this.props.isSelectable || this.props.isDisabled, onValueChange: () => this.props.onSelect(this.props) }));
|
|
2645
3020
|
}
|
|
2646
|
-
return React__namespace.default.createElement("div", { className: css$
|
|
3021
|
+
return React__namespace.default.createElement("div", { className: css$j.row }, component);
|
|
2647
3022
|
}
|
|
2648
3023
|
}
|
|
2649
3024
|
|
|
@@ -2686,22 +3061,7 @@ class PickerList extends uuiComponents.PickerListBase {
|
|
|
2686
3061
|
}
|
|
2687
3062
|
PickerList.contextType = uuiCore.UuiContext;
|
|
2688
3063
|
|
|
2689
|
-
var
|
|
2690
|
-
|
|
2691
|
-
function getDefaultExportFromCjs (x) {
|
|
2692
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
2693
|
-
}
|
|
2694
|
-
|
|
2695
|
-
var dayjs_min = {exports: {}};
|
|
2696
|
-
|
|
2697
|
-
(function (module, exports) {
|
|
2698
|
-
!function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",f="month",h="quarter",c="year",d="date",$="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},g={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,f),s=n-i<0,u=e.clone().add(r+(s?-1:1),f);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:f,y:c,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},D="en",v={};v[D]=M;var p=function(t){return t instanceof _},S=function(t,e,n){var r;if(!t)return D;if("string"==typeof t)v[t]&&(r=t),e&&(v[t]=e,r=t);else {var i=t.name;v[i]=t,r=i;}return !n&&r&&(D=r),r||!n&&D},w=function(t,e){if(p(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},O=g;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t);}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(l);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return O},m.isValid=function(){return !(this.$d.toString()===$)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<w(t)},m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!O.u(e)||e,h=O.p(t),$=function(t,e){var i=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},l=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,g="set"+(this.$u?"UTC":"");switch(h){case c:return r?$(1,0):$(31,11);case f:return r?$(1,M):$(0,M+1);case o:var D=this.$locale().weekStart||0,v=(y<D?y+7:y)-D;return $(r?m-v:m+(6-v),M);case a:case d:return l(g+"Hours",0);case u:return l(g+"Minutes",1);case s:return l(g+"Seconds",2);case i:return l(g+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=O.p(t),h="set"+(this.$u?"UTC":""),$=(n={},n[a]=h+"Date",n[d]=h+"Date",n[f]=h+"Month",n[c]=h+"FullYear",n[u]=h+"Hours",n[s]=h+"Minutes",n[i]=h+"Seconds",n[r]=h+"Milliseconds",n)[o],l=o===a?this.$D+(e-this.$W):e;if(o===f||o===c){var y=this.clone().set(d,1);y.$d[$](l),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else $&&this.$d[$](l);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[O.p(t)]()},m.add=function(r,h){var d,$=this;r=Number(r);var l=O.p(h),y=function(t){var e=w($);return O.w(e.date(e.date()+Math.round(t*r)),$)};if(l===f)return this.set(f,this.$M+r);if(l===c)return this.set(c,this.$y+r);if(l===a)return y(1);if(l===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[l]||1,m=this.$d.getTime()+r*M;return O.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||$;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,f=n.months,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].substr(0,s)},c=function(t){return O.s(s%12||12,t,"0")},d=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},l={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:O.s(a+1,2,"0"),MMM:h(n.monthsShort,a,f,3),MMMM:h(f,a),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:h(n.weekdaysMin,this.$W,o,2),ddd:h(n.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(s),HH:O.s(s,2,"0"),h:c(1),hh:c(2),a:d(s,u,!0),A:d(s,u,!1),m:String(u),mm:O.s(u,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:i};return r.replace(y,(function(t,e){return e||l[t]||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,$){var l,y=O.p(d),M=w(r),m=(M.utcOffset()-this.utcOffset())*e,g=this-M,D=O.m(this,M);return D=(l={},l[c]=D/12,l[f]=D,l[h]=D/3,l[o]=(g-m)/6048e5,l[a]=(g-m)/864e5,l[u]=g/n,l[s]=g/e,l[i]=g/t,l)[y]||g,$?D:O.a(D)},m.daysInMonth=function(){return this.endOf(f).$D},m.$locale=function(){return v[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),b=_.prototype;return w.prototype=b,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",f],["$y",c],["$D",d]].forEach((function(t){b[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),w.extend=function(t,e){return t.$i||(t(e,_,w),t.$i=!0),w},w.locale=S,w.isDayjs=p,w.unix=function(t){return w(1e3*t)},w.en=v[D],w.Ls=v,w.p={},w}));
|
|
2699
|
-
} (dayjs_min));
|
|
2700
|
-
|
|
2701
|
-
var dayjs_minExports = dayjs_min.exports;
|
|
2702
|
-
var dayjs = /*@__PURE__*/getDefaultExportFromCjs(dayjs_minExports);
|
|
2703
|
-
|
|
2704
|
-
var css$h = {"root":"FilterPanelItemToggler-module_root__6HJLW","title-wrapper":"FilterPanelItemToggler-module_title-wrapper__07dD8","title":"FilterPanelItemToggler-module_title__JaXtY","text-wrapper":"FilterPanelItemToggler-module_text-wrapper__kRoKs","selection":"FilterPanelItemToggler-module_selection__K9tGx","postfix":"FilterPanelItemToggler-module_postfix__MpS3n","selected":"FilterPanelItemToggler-module_selected__FEPzr","titleWrapper":"FilterPanelItemToggler-module_title-wrapper__07dD8","textWrapper":"FilterPanelItemToggler-module_text-wrapper__kRoKs"};
|
|
3064
|
+
var css$i = {"root":"_70vH7g","title-wrapper":"FiVv18","title":"x0YqqN","text-wrapper":"dQhM3m","selection":"Quw87o","postfix":"BqWl4e","selected":"PCQ7O2","titleWrapper":"FiVv18","textWrapper":"dQhM3m"};
|
|
2705
3065
|
|
|
2706
3066
|
const defaultSize = '36';
|
|
2707
3067
|
const FilterPanelItemToggler = React__namespace.forwardRef((props, ref) => {
|
|
@@ -2713,15 +3073,18 @@ const FilterPanelItemToggler = React__namespace.forwardRef((props, ref) => {
|
|
|
2713
3073
|
(_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
2714
3074
|
};
|
|
2715
3075
|
const getTitle = props.predicateName ? `${props.title} ${props.predicateName}` : `${props.title}${props.selection ? ':' : ''}`;
|
|
3076
|
+
const getSelectionText = () => props.selection.map((i, index) => (React__namespace.createElement(React__namespace.Fragment, null,
|
|
3077
|
+
React__namespace.createElement(Text, { key: index, color: "brand", size: props.size, cx: css$i.selection }, i),
|
|
3078
|
+
(props.postfix || index !== props.selection.length - 1) && React__namespace.createElement("span", null, ",\u00A0"))));
|
|
2716
3079
|
return (React__namespace.createElement(uuiComponents.FlexRow, Object.assign({}, props, { rawProps: {
|
|
2717
3080
|
style: { maxWidth: `${props.maxWidth ? props.maxWidth + 'px' : 'auto'}` },
|
|
2718
3081
|
role: 'button',
|
|
2719
|
-
}, cx: cx__default.default(css$
|
|
2720
|
-
React__namespace.createElement(uuiComponents.FlexRow, { cx: css$
|
|
2721
|
-
React__namespace.createElement(Text, { size: props.size, cx: css$
|
|
2722
|
-
props.selection && (React__namespace.createElement("div", { className: css$
|
|
2723
|
-
|
|
2724
|
-
props.postfix && (React__namespace.createElement(Text, { color: "brand", size: props.size, cx: css$
|
|
3082
|
+
}, 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 }),
|
|
3083
|
+
React__namespace.createElement(uuiComponents.FlexRow, { cx: css$i.titleWrapper },
|
|
3084
|
+
React__namespace.createElement(Text, { size: props.size, cx: css$i.title }, getTitle),
|
|
3085
|
+
props.selection && (React__namespace.createElement("div", { className: css$i.textWrapper },
|
|
3086
|
+
getSelectionText(),
|
|
3087
|
+
props.postfix && (React__namespace.createElement(Text, { color: "brand", size: props.size, cx: css$i.postfix }, props.postfix))))),
|
|
2725
3088
|
!props.isDisabled && React__namespace.createElement(uuiComponents.IconContainer, { icon: systemIcons[props.size || defaultSize].foldingArrow, flipY: props.isOpen, cx: "uui-icon-dropdown" })));
|
|
2726
3089
|
});
|
|
2727
3090
|
|
|
@@ -2750,8 +3113,8 @@ class FilterPickerBody extends uuiComponents.PickerInputBase {
|
|
|
2750
3113
|
shouldShowBody() {
|
|
2751
3114
|
return this.props.isOpen;
|
|
2752
3115
|
}
|
|
2753
|
-
toggleModalOpening(
|
|
2754
|
-
renderTarget(
|
|
3116
|
+
toggleModalOpening() { }
|
|
3117
|
+
renderTarget() {
|
|
2755
3118
|
return React__namespace.createElement("div", null);
|
|
2756
3119
|
}
|
|
2757
3120
|
renderBody(props, rows) {
|
|
@@ -2792,7 +3155,7 @@ class FilterDatePickerBody extends uuiComponents.BaseDatePicker {
|
|
|
2792
3155
|
React__namespace.default.createElement(DatePickerBody, { filter: this.props.filter, value: this.getValue(), setSelectedDate: this.setSelectedDate, setDisplayedDateAndView: this.setDisplayedDateAndView, changeIsOpen: this.onToggleHandler, renderDay: this.props.renderDay, isHoliday: this.props.isHoliday, rawProps: (_a = this.props.rawProps) === null || _a === void 0 ? void 0 : _a.body })),
|
|
2793
3156
|
React__namespace.default.createElement(FlexCell, { alignSelf: "stretch" },
|
|
2794
3157
|
React__namespace.default.createElement(FlexRow, { padding: "24", vPadding: "12" },
|
|
2795
|
-
React__namespace.default.createElement(Text, null, this.state.selectedDate ?
|
|
3158
|
+
React__namespace.default.createElement(Text, null, this.state.selectedDate ? dayjs__default.default(this.state.selectedDate).format('MMM DD, YYYY') : ''),
|
|
2796
3159
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
2797
3160
|
React__namespace.default.createElement(LinkButton, { isDisabled: !this.state.selectedDate, caption: i18n.filterToolbar.datePicker.clearCaption, onClick: this.handleCancel })))));
|
|
2798
3161
|
}
|
|
@@ -2801,12 +3164,16 @@ class FilterDatePickerBody extends uuiComponents.BaseDatePicker {
|
|
|
2801
3164
|
}
|
|
2802
3165
|
}
|
|
2803
3166
|
|
|
2804
|
-
var css$
|
|
3167
|
+
var css$h = {"date-input":"OjVwOI","size-24":"oQtwp-","size-30":"HdadDh","size-36":"_2S-SJ3","size-42":"Pm7hGH","size-48":"_98Lzcz","date-input-group":"oVDujI","separator":"-t-wLk","mode-form":"ennPb3","mode-cell":"Gmvqe9","dateInput":"OjVwOI","size24":"oQtwp-","size30":"HdadDh","size36":"_2S-SJ3","size42":"Pm7hGH","size48":"_98Lzcz","dateInputGroup":"oVDujI","modeForm":"ennPb3","modeCell":"Gmvqe9"};
|
|
2805
3168
|
|
|
2806
3169
|
class FilterRangeDatePickerBody extends uuiComponents.BaseRangeDatePicker {
|
|
2807
3170
|
constructor() {
|
|
2808
3171
|
super(...arguments);
|
|
2809
3172
|
this.state = Object.assign(Object.assign({}, super.getInitialState()), { inFocus: 'from' });
|
|
3173
|
+
this.changeIsOpen = (open) => {
|
|
3174
|
+
this.toggleOpening(open);
|
|
3175
|
+
this.props.onClose();
|
|
3176
|
+
};
|
|
2810
3177
|
this.renderInput = () => {
|
|
2811
3178
|
return null;
|
|
2812
3179
|
};
|
|
@@ -2814,13 +3181,13 @@ class FilterRangeDatePickerBody extends uuiComponents.BaseRangeDatePicker {
|
|
|
2814
3181
|
renderBody() {
|
|
2815
3182
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
2816
3183
|
React__namespace.createElement(FlexRow, { borderBottom: true },
|
|
2817
|
-
React__namespace.createElement(RangeDatePickerBody, { value: this.getValue(), onValueChange: this.onRangeChange, filter: this.props.filter, focusPart: this.state.inFocus, changeIsOpen: this.
|
|
3184
|
+
React__namespace.createElement(RangeDatePickerBody, { value: this.getValue(), onValueChange: this.onRangeChange, filter: this.props.filter, focusPart: this.state.inFocus, changeIsOpen: this.changeIsOpen, presets: this.props.presets })),
|
|
2818
3185
|
React__namespace.createElement(FlexCell, { alignSelf: "stretch" },
|
|
2819
3186
|
React__namespace.createElement(FlexRow, { padding: "24", vPadding: "12" },
|
|
2820
|
-
React__namespace.createElement("div", { className: cx__default.default(css$
|
|
2821
|
-
React__namespace.createElement(TextInput, { icon: systemIcons['30'].calendar, cx: cx__default.default(css$
|
|
2822
|
-
React__namespace.createElement("div", { className: css$
|
|
2823
|
-
React__namespace.createElement(TextInput, { cx: cx__default.default(css$
|
|
3187
|
+
React__namespace.createElement("div", { className: cx__default.default(css$h.dateInputGroup, this.state.inFocus && uuiCore.uuiMod.focus) },
|
|
3188
|
+
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') }),
|
|
3189
|
+
React__namespace.createElement("div", { className: css$h.separator }),
|
|
3190
|
+
React__namespace.createElement(TextInput, { cx: cx__default.default(css$h.dateInput, css$h['size-30'], this.state.inFocus === 'to' && uuiCore.uuiMod.focus), placeholder: i18n.rangeDatePicker.pickerPlaceholderTo, size: "30", value: this.state.inputValue.to, onCancel: this.state.inputValue.from && this.state.inputValue.to && this.handleCancel, onValueChange: this.getChangeHandler('to'), onFocus: (event) => this.handleFocus(event, 'to'), onBlur: (event) => this.handleBlur(event, 'to') })),
|
|
2824
3191
|
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
2825
3192
|
React__namespace.createElement(LinkButton, { isDisabled: !this.state.inputValue.from && !this.state.inputValue.to, caption: i18n.pickerModal.clearAllButton, onClick: this.handleCancel })))));
|
|
2826
3193
|
}
|
|
@@ -2829,6 +3196,8 @@ class FilterRangeDatePickerBody extends uuiComponents.BaseRangeDatePicker {
|
|
|
2829
3196
|
}
|
|
2830
3197
|
}
|
|
2831
3198
|
|
|
3199
|
+
var css$g = {"container":"MXF5zK"};
|
|
3200
|
+
|
|
2832
3201
|
function FilterNumericBody(props) {
|
|
2833
3202
|
var _a, _b;
|
|
2834
3203
|
const isInRangePredicate = (props === null || props === void 0 ? void 0 : props.selectedPredicate) === 'inRange' || (props === null || props === void 0 ? void 0 : props.selectedPredicate) === 'notInRange';
|
|
@@ -2871,7 +3240,7 @@ function FilterNumericBody(props) {
|
|
|
2871
3240
|
if (isInRangePredicate) {
|
|
2872
3241
|
const value = props.value;
|
|
2873
3242
|
return (React__namespace.default.createElement("div", null,
|
|
2874
|
-
React__namespace.default.createElement(FlexRow, { padding: "12",
|
|
3243
|
+
React__namespace.default.createElement(FlexRow, { padding: "12", alignItems: "center", spacing: "12", borderBottom: true, cx: css$g.container },
|
|
2875
3244
|
React__namespace.default.createElement(FlexCell, { width: "100%" },
|
|
2876
3245
|
React__namespace.default.createElement(NumericInput, { value: (_a = value === null || value === void 0 ? void 0 : value.from) !== null && _a !== void 0 ? _a : null, onValueChange: rangeValueHandler('from'), size: "36", placeholder: "Min", formatOptions: { maximumFractionDigits: 2 } })),
|
|
2877
3246
|
React__namespace.default.createElement(FlexCell, { width: "100%" },
|
|
@@ -2879,7 +3248,7 @@ function FilterNumericBody(props) {
|
|
|
2879
3248
|
renderFooter()));
|
|
2880
3249
|
}
|
|
2881
3250
|
return (React__namespace.default.createElement("div", null,
|
|
2882
|
-
React__namespace.default.createElement(FlexRow, { padding: "12",
|
|
3251
|
+
React__namespace.default.createElement(FlexRow, { padding: "12", alignItems: "center", borderBottom: true, cx: css$g.container },
|
|
2883
3252
|
React__namespace.default.createElement(FlexCell, { width: 130 },
|
|
2884
3253
|
React__namespace.default.createElement(NumericInput, { value: typeof props.value === 'number' ? props.value : null, onValueChange: props.onValueChange, size: "36", placeholder: "Enter a number", formatOptions: { maximumFractionDigits: 2 } }))),
|
|
2885
3254
|
renderFooter()));
|
|
@@ -2916,9 +3285,10 @@ var SvgActionDeleteforever12 = function SvgActionDeleteforever12(props, ref) {
|
|
|
2916
3285
|
};
|
|
2917
3286
|
var ForwardRef$e = /*#__PURE__*/React.forwardRef(SvgActionDeleteforever12);
|
|
2918
3287
|
|
|
2919
|
-
var css$f = {"header":"
|
|
3288
|
+
var css$f = {"header":"tcyUSr","removeButton":"Rx6D7U","with-search":"LKiCTs","panel":"PrybsA","withSearch":"LKiCTs"};
|
|
2920
3289
|
|
|
2921
3290
|
function FiltersToolbarItemImpl(props) {
|
|
3291
|
+
const { maxCount = 2 } = props;
|
|
2922
3292
|
const isPickersType = (props === null || props === void 0 ? void 0 : props.type) === 'multiPicker' || (props === null || props === void 0 ? void 0 : props.type) === 'singlePicker';
|
|
2923
3293
|
const isMobileScreen = uuiCore.isMobile();
|
|
2924
3294
|
const popperModifiers = React.useMemo(() => {
|
|
@@ -3023,53 +3393,52 @@ function FiltersToolbarItemImpl(props) {
|
|
|
3023
3393
|
switch (props.type) {
|
|
3024
3394
|
case 'multiPicker': {
|
|
3025
3395
|
const view = props.dataSource.getView({}, forceUpdate);
|
|
3026
|
-
const postfix = (currentValue === null || currentValue === void 0 ? void 0 : currentValue.length) > 2 ? ` +${(currentValue.length - 2).toString()} ${i18n.filterToolbar.pickerInput.itemsPlaceholder}` : null;
|
|
3027
3396
|
let isLoading = false;
|
|
3028
3397
|
const selection = currentValue
|
|
3029
|
-
? currentValue === null || currentValue === void 0 ? void 0 : currentValue.slice(0,
|
|
3398
|
+
? currentValue === null || currentValue === void 0 ? void 0 : currentValue.slice(0, maxCount).map((i) => {
|
|
3030
3399
|
const item = view.getById(i, null);
|
|
3031
3400
|
isLoading = item.isLoading;
|
|
3032
3401
|
return getPickerItemName(item, props);
|
|
3033
3402
|
})
|
|
3034
|
-
:
|
|
3035
|
-
const
|
|
3036
|
-
return { selection
|
|
3403
|
+
: currentValue;
|
|
3404
|
+
const postfix = (!isLoading && (currentValue === null || currentValue === void 0 ? void 0 : currentValue.length) > maxCount) ? ` +${(currentValue.length - maxCount).toString()} ${i18n.filterToolbar.pickerInput.itemsPlaceholder}` : null;
|
|
3405
|
+
return { selection, postfix };
|
|
3037
3406
|
}
|
|
3038
3407
|
case 'numeric': {
|
|
3039
3408
|
const isRangePredicate = predicate === 'inRange' || predicate === 'notInRange';
|
|
3040
3409
|
const decimalFormat = (val) => uuiCore.getSeparatedValue(val, { maximumFractionDigits: 2 });
|
|
3041
3410
|
if ((isRangePredicate && !currentValue) || (!isRangePredicate && !currentValue && currentValue !== 0)) {
|
|
3042
|
-
return { selection:
|
|
3411
|
+
return { selection: undefined };
|
|
3043
3412
|
}
|
|
3044
3413
|
const selection = isRangePredicate
|
|
3045
3414
|
? `${!(currentValue === null || currentValue === void 0 ? void 0 : currentValue.from) && (currentValue === null || currentValue === void 0 ? void 0 : currentValue.from) !== 0 ? 'Min' : decimalFormat(currentValue === null || currentValue === void 0 ? void 0 : currentValue.from)} - ${!(currentValue === null || currentValue === void 0 ? void 0 : currentValue.to) && (currentValue === null || currentValue === void 0 ? void 0 : currentValue.to) !== 0 ? 'Max' : decimalFormat(currentValue === null || currentValue === void 0 ? void 0 : currentValue.to)}`
|
|
3046
3415
|
: `${!currentValue && currentValue !== 0 ? 'ALL' : decimalFormat(currentValue)}`;
|
|
3047
|
-
return { selection };
|
|
3416
|
+
return { selection: [selection] };
|
|
3048
3417
|
}
|
|
3049
3418
|
case 'singlePicker': {
|
|
3050
3419
|
const view = props.dataSource.getView({}, forceUpdate);
|
|
3051
3420
|
if (currentValue === null || currentValue === undefined) {
|
|
3052
|
-
return { selection:
|
|
3421
|
+
return { selection: undefined };
|
|
3053
3422
|
}
|
|
3054
3423
|
const item = view.getById(currentValue, null);
|
|
3055
3424
|
const selection = getPickerItemName(item, props);
|
|
3056
|
-
return { selection };
|
|
3425
|
+
return { selection: [selection] };
|
|
3057
3426
|
}
|
|
3058
3427
|
case 'datePicker': {
|
|
3059
|
-
return { selection: currentValue ?
|
|
3428
|
+
return { selection: currentValue ? [dayjs__default.default(currentValue).format(props.format || defaultFormat)] : currentValue };
|
|
3060
3429
|
}
|
|
3061
3430
|
case 'rangeDatePicker': {
|
|
3062
3431
|
if (!currentValue || (!currentValue.from && !currentValue.to)) {
|
|
3063
|
-
return { selection:
|
|
3432
|
+
return { selection: undefined };
|
|
3064
3433
|
}
|
|
3065
3434
|
const currentValueFrom = (currentValue === null || currentValue === void 0 ? void 0 : currentValue.from)
|
|
3066
|
-
?
|
|
3435
|
+
? dayjs__default.default(currentValue === null || currentValue === void 0 ? void 0 : currentValue.from).format(props.format || defaultFormat)
|
|
3067
3436
|
: i18n.filterToolbar.rangeDatePicker.emptyPlaceholderFrom;
|
|
3068
3437
|
const currentValueTo = (currentValue === null || currentValue === void 0 ? void 0 : currentValue.to)
|
|
3069
|
-
?
|
|
3438
|
+
? dayjs__default.default(currentValue === null || currentValue === void 0 ? void 0 : currentValue.to).format(props.format || defaultFormat)
|
|
3070
3439
|
: i18n.filterToolbar.rangeDatePicker.emptyPlaceholderTo;
|
|
3071
3440
|
const selection = `${currentValueFrom} - ${currentValueTo}`;
|
|
3072
|
-
return { selection };
|
|
3441
|
+
return { selection: [selection] };
|
|
3073
3442
|
}
|
|
3074
3443
|
}
|
|
3075
3444
|
};
|
|
@@ -3206,9 +3575,9 @@ function FiltersToolbarImpl(props) {
|
|
|
3206
3575
|
}
|
|
3207
3576
|
const FiltersPanel = React__namespace.default.memo(FiltersToolbarImpl);
|
|
3208
3577
|
|
|
3209
|
-
var css$e = {"divider":"
|
|
3578
|
+
var css$e = {"divider":"_7t1tI8","dropdownDeleteIcon":"_5J-Qyv","presetsWrapper":"NZFJ8-","addPresetContainer":"_09fsvg","dropContainer":"_4MPsb4"};
|
|
3210
3579
|
|
|
3211
|
-
var css$d = {"preset-dropdown-panel":"
|
|
3580
|
+
var css$d = {"preset-dropdown-panel":"QA8IMg","delete-row":"hSm-GZ","delete-button":"d0v5cn","targetOpen":"AFYSf7","presetDropdownPanel":"QA8IMg","deleteRow":"hSm-GZ","deleteButton":"d0v5cn"};
|
|
3212
3581
|
|
|
3213
3582
|
var _path$b;
|
|
3214
3583
|
function _extends$c() { _extends$c = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$c.apply(this, arguments); }
|
|
@@ -3348,7 +3717,7 @@ function PresetActionsDropdown(props) {
|
|
|
3348
3717
|
return (React__namespace.default.createElement(Panel, { shadow: true, cx: css$d.presetDropdownPanel },
|
|
3349
3718
|
props.activePresetId === props.preset.id && props.hasPresetChanged(props.preset) && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
3350
3719
|
!isReadonlyPreset && (React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-save-in-current` },
|
|
3351
|
-
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$
|
|
3720
|
+
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$o, caption: "Save in current", onClick: saveInCurrentHandler }))),
|
|
3352
3721
|
React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-save-as-new` },
|
|
3353
3722
|
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$c, caption: "Save as new", onClick: props.addPreset })),
|
|
3354
3723
|
React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-discard`, borderBottom: true },
|
|
@@ -3363,12 +3732,12 @@ function PresetActionsDropdown(props) {
|
|
|
3363
3732
|
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$7, caption: "Delete", cx: css$d.deleteButton, onClick: deleteHandler })))));
|
|
3364
3733
|
};
|
|
3365
3734
|
const renderTarget = React.useCallback((dropdownProps) => {
|
|
3366
|
-
return (React__namespace.default.createElement(IconButton, Object.assign({ cx: dropdownProps.isOpen && css$d.targetOpen, color: props.preset.id === props.activePresetId ? 'info' : 'default' }, dropdownProps, { icon: ForwardRef$
|
|
3735
|
+
return (React__namespace.default.createElement(IconButton, Object.assign({ cx: dropdownProps.isOpen && css$d.targetOpen, color: props.preset.id === props.activePresetId ? 'info' : 'default' }, dropdownProps, { icon: ForwardRef$p })));
|
|
3367
3736
|
}, []);
|
|
3368
3737
|
return (React__namespace.default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end", modifiers: [{ name: 'offset', options: { offset: [0, 22] } }] }));
|
|
3369
3738
|
}
|
|
3370
3739
|
|
|
3371
|
-
var css$c = {"preset-input-cell":"
|
|
3740
|
+
var css$c = {"preset-input-cell":"_0Psc29","preset-input":"J1FR-l","presetInputCell":"_0Psc29","presetInput":"J1FR-l"};
|
|
3372
3741
|
|
|
3373
3742
|
function PresetInput(props) {
|
|
3374
3743
|
var _a;
|
|
@@ -3393,7 +3762,7 @@ function PresetInput(props) {
|
|
|
3393
3762
|
React__namespace.default.createElement(TextInput, { cx: css$c.presetInput, onValueChange: setPresetCaption, value: presetCaption, onCancel: cancelActionHandler, onAccept: acceptActionHandler, onBlur: newPresetOnBlurHandler, autoFocus: true, maxLength: 50 })));
|
|
3394
3763
|
}
|
|
3395
3764
|
|
|
3396
|
-
var css$b = {"preset":"
|
|
3765
|
+
var css$b = {"preset":"dplCFA","activePreset":"h0knbT"};
|
|
3397
3766
|
|
|
3398
3767
|
function Preset(props) {
|
|
3399
3768
|
const [isRenamePreset, setIsRenamePreset] = React.useState(false);
|
|
@@ -3481,19 +3850,13 @@ const defaultPredicates = {
|
|
|
3481
3850
|
rangeDatePicker: [{ predicate: 'inRange', name: 'In Range', isDefault: true }, { predicate: 'notInRange', name: 'Not in Range' }],
|
|
3482
3851
|
};
|
|
3483
3852
|
|
|
3484
|
-
var css$a = {"root":"
|
|
3853
|
+
var css$a = {"root":"_6fVUfR"};
|
|
3485
3854
|
|
|
3486
|
-
|
|
3487
|
-
return [css$a.root];
|
|
3488
|
-
}
|
|
3489
|
-
const MainMenu = uuiCore.withMods(uuiComponents.MainMenu, applyMainMenuMods, () => ({
|
|
3490
|
-
Burger,
|
|
3491
|
-
MainMenuDropdown,
|
|
3492
|
-
}));
|
|
3855
|
+
var css$9 = {"root":"JIJRW-","burger-content":"d6Hx-O","burgerContent":"d6Hx-O"};
|
|
3493
3856
|
|
|
3494
3857
|
var _path$4;
|
|
3495
3858
|
function _extends$5() { _extends$5 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
|
|
3496
|
-
var
|
|
3859
|
+
var SvgBurger = function SvgBurger(props, ref) {
|
|
3497
3860
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
|
|
3498
3861
|
width: 60,
|
|
3499
3862
|
height: 60,
|
|
@@ -3501,62 +3864,39 @@ var SvgGlobalMenu = function SvgGlobalMenu(props, ref) {
|
|
|
3501
3864
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3502
3865
|
ref: ref
|
|
3503
3866
|
}, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3504
|
-
|
|
3505
|
-
d: "M12 11.2a.8.8 0 1 1-.8.8.8.8 0 0 1 .8-.8zm3.2 0a.8.8 0 1 1-.8.8.802.802 0 0 1 .8-.8zm-6.4 0a.8.8 0 1 1-.8.8.8.8 0 0 1 .8-.8zM12 7.6a.8.8 0 1 1-.8.8.8.8 0 0 1 .8-.8zm3.2 0a.8.8 0 1 1-.8.8.802.802 0 0 1 .8-.8zm-6.4 0a.8.8 0 1 1-.8.8.8.8 0 0 1 .8-.8zm3.2 7.2a.8.8 0 1 1-.8.8.8.8 0 0 1 .8-.8zm3.2 0a.8.8 0 1 1-.8.8.802.802 0 0 1 .8-.8zm-6.4 0a.8.8 0 1 1-.8.8.8.8 0 0 1 .8-.8z"
|
|
3867
|
+
d: "M8 9.2h8v.8H8zM8 14h6v.8H8zm0-2.4h8v.8H8z"
|
|
3506
3868
|
})));
|
|
3507
3869
|
};
|
|
3508
|
-
var ForwardRef$5 = /*#__PURE__*/React.forwardRef(
|
|
3509
|
-
|
|
3510
|
-
var css$9 = {"global-menu-btn":"GlobalMenu-module_global-menu-btn__VNGyq","globalMenuIcon":"GlobalMenu-module_globalMenuIcon__BTMLp","globalMenuBtn":"GlobalMenu-module_global-menu-btn__VNGyq"};
|
|
3511
|
-
|
|
3512
|
-
const GlobalMenu = React__namespace.forwardRef((props, ref) => (React__namespace.createElement("button", Object.assign({ ref: ref, id: "global_menu_toggle", className: cx__default.default(css$9.globalMenuBtn, props.cx) }, props.rawProps),
|
|
3513
|
-
React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$5, cx: css$9.globalMenuIcon }))));
|
|
3514
|
-
|
|
3515
|
-
var css$8 = {"root":"Burger-module_root__RyM45","burger-content":"Burger-module_burger-content__bbDNZ","burgerContent":"Burger-module_burger-content__bbDNZ"};
|
|
3870
|
+
var ForwardRef$5 = /*#__PURE__*/React.forwardRef(SvgBurger);
|
|
3516
3871
|
|
|
3517
3872
|
var _path$3;
|
|
3518
3873
|
function _extends$4() { _extends$4 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
|
|
3519
|
-
var SvgBurger = function SvgBurger(props, ref) {
|
|
3520
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
|
|
3521
|
-
width: 60,
|
|
3522
|
-
height: 60,
|
|
3523
|
-
viewBox: "0 0 24 24",
|
|
3524
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
3525
|
-
ref: ref
|
|
3526
|
-
}, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3527
|
-
d: "M8 9.2h8v.8H8zM8 14h6v.8H8zm0-2.4h8v.8H8z"
|
|
3528
|
-
})));
|
|
3529
|
-
};
|
|
3530
|
-
var ForwardRef$4 = /*#__PURE__*/React.forwardRef(SvgBurger);
|
|
3531
|
-
|
|
3532
|
-
var _path$2;
|
|
3533
|
-
function _extends$3() { _extends$3 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
|
|
3534
3874
|
var SvgBurgerClose = function SvgBurgerClose(props, ref) {
|
|
3535
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3875
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
|
|
3536
3876
|
width: 60,
|
|
3537
3877
|
height: 60,
|
|
3538
3878
|
viewBox: "0 0 60 60",
|
|
3539
3879
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3540
3880
|
ref: ref
|
|
3541
|
-
}, props), _path$
|
|
3881
|
+
}, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3542
3882
|
d: "M38.543 20 40 21.457 31.456 30 40 38.543 38.543 40 30 31.456 21.457 40 20 38.543 28.543 30 20 21.457 21.457 20 30 28.543 38.543 20Z"
|
|
3543
3883
|
})));
|
|
3544
3884
|
};
|
|
3545
|
-
var ForwardRef$
|
|
3885
|
+
var ForwardRef$4 = /*#__PURE__*/React.forwardRef(SvgBurgerClose);
|
|
3546
3886
|
|
|
3547
3887
|
function applyBurgerMods() {
|
|
3548
|
-
return [css$
|
|
3888
|
+
return [css$9.root];
|
|
3549
3889
|
}
|
|
3550
3890
|
const Burger = uuiCore.withMods(uuiComponents.Burger, applyBurgerMods, () => ({
|
|
3551
|
-
burgerIcon: ForwardRef$
|
|
3552
|
-
crossIcon: ForwardRef$
|
|
3553
|
-
burgerContentCx: css$
|
|
3891
|
+
burgerIcon: ForwardRef$5,
|
|
3892
|
+
crossIcon: ForwardRef$4,
|
|
3893
|
+
burgerContentCx: css$9.burgerContent,
|
|
3554
3894
|
}));
|
|
3555
3895
|
|
|
3556
|
-
var _g, _path$
|
|
3557
|
-
function _extends$
|
|
3896
|
+
var _g, _path$2;
|
|
3897
|
+
function _extends$3() { _extends$3 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
|
|
3558
3898
|
var SvgTriangle = function SvgTriangle(props, ref) {
|
|
3559
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3899
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
|
|
3560
3900
|
width: 12,
|
|
3561
3901
|
height: 24,
|
|
3562
3902
|
viewBox: "0 0 12 24",
|
|
@@ -3573,21 +3913,21 @@ var SvgTriangle = function SvgTriangle(props, ref) {
|
|
|
3573
3913
|
cx: 12,
|
|
3574
3914
|
cy: 302.65,
|
|
3575
3915
|
r: 18
|
|
3576
|
-
}))), _path$
|
|
3916
|
+
}))), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3577
3917
|
d: "m5 14-4-4h8z"
|
|
3578
3918
|
})));
|
|
3579
3919
|
};
|
|
3580
|
-
var ForwardRef$
|
|
3920
|
+
var ForwardRef$3 = /*#__PURE__*/React.forwardRef(SvgTriangle);
|
|
3581
3921
|
|
|
3582
|
-
var css$
|
|
3922
|
+
var css$8 = {"root":"yweEn-","button-primary":"Ro4M7t","button-secondary":"GxQidf","hasIcon":"xy8aVk","dropdown":"PZDXDj","buttonPrimary":"Ro4M7t","buttonSecondary":"GxQidf"};
|
|
3583
3923
|
|
|
3584
3924
|
const BurgerButton = uuiCore.withMods(uuiComponents.Button, (props) => [
|
|
3585
|
-
css$
|
|
3586
|
-
], () => ({ dropdownIcon: ForwardRef$
|
|
3925
|
+
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,
|
|
3926
|
+
], () => ({ dropdownIcon: ForwardRef$3, dropdownIconPosition: 'left', role: 'menuitem' }));
|
|
3587
3927
|
|
|
3588
|
-
function _extends$
|
|
3928
|
+
function _extends$2() { _extends$2 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
|
|
3589
3929
|
var SvgMenuInputCancel = function SvgMenuInputCancel(props, ref) {
|
|
3590
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3930
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
|
|
3591
3931
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3592
3932
|
width: 18,
|
|
3593
3933
|
height: 24,
|
|
@@ -3629,67 +3969,48 @@ var SvgMenuInputCancel = function SvgMenuInputCancel(props, ref) {
|
|
|
3629
3969
|
transform: "matrix(3.77953 0 0 3.77953 -369 -648.52)"
|
|
3630
3970
|
})));
|
|
3631
3971
|
};
|
|
3632
|
-
var ForwardRef$
|
|
3972
|
+
var ForwardRef$2 = /*#__PURE__*/React.forwardRef(SvgMenuInputCancel);
|
|
3633
3973
|
|
|
3634
|
-
var css$
|
|
3974
|
+
var css$7 = {"search-input":"w-86Qb","searchInput":"w-86Qb"};
|
|
3635
3975
|
|
|
3636
3976
|
function BurgerSearch(props) {
|
|
3637
|
-
return (React__namespace.createElement(uuiComponents.TextInput, { cx: css$
|
|
3977
|
+
return (React__namespace.createElement(uuiComponents.TextInput, { cx: css$7.searchInput, iconPosition: "left", icon: ForwardRef$W, placeholder: props.placeholder, value: props.value, onValueChange: props.onValueChange, onCancel: props.onCancel, cancelIcon: props.value && ForwardRef$2, autoFocus: true }));
|
|
3638
3978
|
}
|
|
3639
3979
|
|
|
3640
|
-
var css$
|
|
3980
|
+
var css$6 = {"group-header":"_51PMuu","group-name":"W53-sE","line":"IzKb98","groupHeader":"_51PMuu","groupName":"W53-sE"};
|
|
3641
3981
|
|
|
3642
3982
|
function BurgerGroupHeader(props) {
|
|
3643
|
-
return (React__namespace.createElement("div", { className: css$
|
|
3644
|
-
React__namespace.createElement("hr", { className: css$
|
|
3645
|
-
React__namespace.createElement("span", { className: css$
|
|
3983
|
+
return (React__namespace.createElement("div", { className: css$6.groupHeader },
|
|
3984
|
+
React__namespace.createElement("hr", { className: css$6.line }),
|
|
3985
|
+
React__namespace.createElement("span", { className: css$6.groupName }, props.caption)));
|
|
3646
3986
|
}
|
|
3647
3987
|
|
|
3648
|
-
var css$
|
|
3649
|
-
|
|
3650
|
-
const MainMenuAvatar = React__namespace.forwardRef((props, ref) => (React__namespace.createElement("button", { ref: ref, className: cx__default.default(css$4.container, props.isDropdown && css$4.dropdown, props.isOpen && css$4.open, props.onClick && uuiCore.uuiMarkers.clickable, props.cx), onClick: props.onClick },
|
|
3651
|
-
React__namespace.createElement(uuiComponents.Avatar, { size: "36", img: props.avatarUrl }),
|
|
3652
|
-
props.icon && React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon }),
|
|
3653
|
-
props.isDropdown && (React__namespace.createElement("div", null,
|
|
3654
|
-
React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$11, flipY: props.isOpen }))))));
|
|
3655
|
-
|
|
3656
|
-
var css$3 = {"search-input":"MainMenuSearch-module_search-input__AdkL1","searchInput":"MainMenuSearch-module_search-input__AdkL1"};
|
|
3657
|
-
|
|
3658
|
-
const MainMenuSearch = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(uuiCore.IEditableDebouncer, Object.assign({}, props, { render: (iEditable) => {
|
|
3659
|
-
var _a;
|
|
3660
|
-
return (React__namespace.createElement(uuiComponents.TextInput, Object.assign({ iconPosition: "left", icon: ForwardRef$X, cancelIcon: ((_a = props.value) === null || _a === void 0 ? void 0 : _a.length) > 0 && ForwardRef$1 }, props, iEditable, { ref: ref, cx: uuiCore.cx(css$3.searchInput, props.cx) }, props.rawProps)));
|
|
3661
|
-
} }))));
|
|
3662
|
-
|
|
3663
|
-
var css$2 = {"container":"MainMenuIcon-module_container__6NlKF"};
|
|
3664
|
-
|
|
3665
|
-
const MainMenuIcon = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(IconButton, Object.assign({ ref: ref, icon: props.icon, cx: uuiCore.cx(props.cx, css$2.container) }, props))));
|
|
3988
|
+
var css$5 = {"root":"_1r-a2Z","type-primary":"_7HJL1-","type-secondary":"DQwuhl","typePrimary":"_7HJL1-","typeSecondary":"DQwuhl"};
|
|
3666
3989
|
|
|
3667
|
-
var
|
|
3668
|
-
|
|
3669
|
-
var _path;
|
|
3670
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3990
|
+
var _path$1;
|
|
3991
|
+
function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
|
|
3671
3992
|
var SvgChevronDown24 = function SvgChevronDown24(props, ref) {
|
|
3672
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
3993
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
|
|
3673
3994
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3674
3995
|
width: 24,
|
|
3675
3996
|
height: 24,
|
|
3676
3997
|
viewBox: "0 0 24 24",
|
|
3677
3998
|
ref: ref
|
|
3678
|
-
}, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3999
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3679
4000
|
fillRule: "evenodd",
|
|
3680
4001
|
d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
|
|
3681
4002
|
})));
|
|
3682
4003
|
};
|
|
3683
|
-
var ForwardRef = /*#__PURE__*/React.forwardRef(SvgChevronDown24);
|
|
4004
|
+
var ForwardRef$1 = /*#__PURE__*/React.forwardRef(SvgChevronDown24);
|
|
3684
4005
|
|
|
3685
|
-
const MainMenuButton = uuiCore.withMods(uuiComponents.Button, (mods) => [css$
|
|
4006
|
+
const MainMenuButton = uuiCore.withMods(uuiComponents.Button, (mods) => [css$5.root, css$5['type-' + (mods.type || 'primary')]], () => ({ dropdownIcon: ForwardRef$1, role: 'menuitem' }));
|
|
3686
4007
|
|
|
3687
|
-
var css = {"dropdown-body":"
|
|
4008
|
+
var css$4 = {"dropdown-body":"V5j1ND","dropdownBody":"V5j1ND"};
|
|
3688
4009
|
|
|
3689
4010
|
class MainMenuDropdown extends React__namespace.Component {
|
|
3690
4011
|
render() {
|
|
3691
4012
|
return (React__namespace.createElement(uuiComponents.Dropdown, { renderTarget: (props) => (React__namespace.createElement(MainMenuButton, Object.assign({ caption: this.props.caption }, props, { rawProps: this.props.rawProps, isLinkActive: this.props.isLinkActive, isDropdown: true }))), renderBody: (props) => {
|
|
3692
|
-
return (React__namespace.createElement("div", { className: cx__default.default(css.dropdownBody) }, this.props.renderBody
|
|
4013
|
+
return (React__namespace.createElement("div", { className: cx__default.default(css$4.dropdownBody) }, this.props.renderBody
|
|
3693
4014
|
? this.props.renderBody(Object.assign({}, props))
|
|
3694
4015
|
: React__namespace.Children.map(this.props.children, (item) => {
|
|
3695
4016
|
if (!item)
|
|
@@ -3705,6 +4026,54 @@ class MainMenuDropdown extends React__namespace.Component {
|
|
|
3705
4026
|
}
|
|
3706
4027
|
}
|
|
3707
4028
|
|
|
4029
|
+
function applyMainMenuMods() {
|
|
4030
|
+
return [css$a.root];
|
|
4031
|
+
}
|
|
4032
|
+
const MainMenu = uuiCore.withMods(uuiComponents.MainMenu, applyMainMenuMods, () => ({
|
|
4033
|
+
Burger,
|
|
4034
|
+
MainMenuDropdown,
|
|
4035
|
+
}));
|
|
4036
|
+
|
|
4037
|
+
var _path;
|
|
4038
|
+
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); }
|
|
4039
|
+
var SvgGlobalMenu = function SvgGlobalMenu(props, ref) {
|
|
4040
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
4041
|
+
width: 60,
|
|
4042
|
+
height: 60,
|
|
4043
|
+
viewBox: "0 0 24 24",
|
|
4044
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4045
|
+
ref: ref
|
|
4046
|
+
}, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4047
|
+
className: "cls-2",
|
|
4048
|
+
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"
|
|
4049
|
+
})));
|
|
4050
|
+
};
|
|
4051
|
+
var ForwardRef = /*#__PURE__*/React.forwardRef(SvgGlobalMenu);
|
|
4052
|
+
|
|
4053
|
+
var css$3 = {"global-menu-btn":"AkqsXG","globalMenuIcon":"pEacmy","globalMenuBtn":"AkqsXG"};
|
|
4054
|
+
|
|
4055
|
+
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),
|
|
4056
|
+
React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef, cx: css$3.globalMenuIcon }))));
|
|
4057
|
+
|
|
4058
|
+
var css$2 = {"container":"ifXzab","open":"TwukNz"};
|
|
4059
|
+
|
|
4060
|
+
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 },
|
|
4061
|
+
React__namespace.createElement(uuiComponents.Avatar, { size: "36", img: props.avatarUrl }),
|
|
4062
|
+
props.icon && React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon }),
|
|
4063
|
+
props.isDropdown && (React__namespace.createElement("div", null,
|
|
4064
|
+
React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$10, flipY: props.isOpen }))))));
|
|
4065
|
+
|
|
4066
|
+
var css$1 = {"search-input":"xsLOWd","searchInput":"xsLOWd"};
|
|
4067
|
+
|
|
4068
|
+
const MainMenuSearch = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(uuiCore.IEditableDebouncer, Object.assign({}, props, { render: (iEditable) => {
|
|
4069
|
+
var _a;
|
|
4070
|
+
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)));
|
|
4071
|
+
} }))));
|
|
4072
|
+
|
|
4073
|
+
var css = {"container":"yrIMIP"};
|
|
4074
|
+
|
|
4075
|
+
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))));
|
|
4076
|
+
|
|
3708
4077
|
const Anchor = uuiComponents.Anchor;
|
|
3709
4078
|
|
|
3710
4079
|
function Form(props) {
|
|
@@ -3744,6 +4113,10 @@ function useForm(props) {
|
|
|
3744
4113
|
return uuiCore.useForm(Object.assign({ beforeLeave, loadUnsavedChanges }, props));
|
|
3745
4114
|
}
|
|
3746
4115
|
|
|
4116
|
+
Object.defineProperty(exports, 'Avatar', {
|
|
4117
|
+
enumerable: true,
|
|
4118
|
+
get: function () { return uuiComponents.Avatar; }
|
|
4119
|
+
});
|
|
3747
4120
|
Object.defineProperty(exports, 'FlexSpacer', {
|
|
3748
4121
|
enumerable: true,
|
|
3749
4122
|
get: function () { return uuiComponents.FlexSpacer; }
|
|
@@ -3755,7 +4128,6 @@ Object.defineProperty(exports, 'IconContainer', {
|
|
|
3755
4128
|
exports.Accordion = Accordion;
|
|
3756
4129
|
exports.Alert = Alert;
|
|
3757
4130
|
exports.Anchor = Anchor;
|
|
3758
|
-
exports.Avatar = Avatar;
|
|
3759
4131
|
exports.AvatarStack = AvatarStack;
|
|
3760
4132
|
exports.Badge = Badge;
|
|
3761
4133
|
exports.Blocker = Blocker;
|
|
@@ -3866,21 +4238,24 @@ exports.allTextSizes = allTextSizes;
|
|
|
3866
4238
|
exports.applyBadgeMods = applyBadgeMods;
|
|
3867
4239
|
exports.applyButtonMods = applyButtonMods;
|
|
3868
4240
|
exports.applyCheckboxMods = applyCheckboxMods;
|
|
3869
|
-
exports.applyDatePickerBodyMods = applyDatePickerBodyMods;
|
|
3870
4241
|
exports.applyDateSelectionMods = applyDateSelectionMods;
|
|
3871
4242
|
exports.applyNumericInputMods = applyNumericInputMods;
|
|
3872
|
-
exports.applyRangeDatePickerBodyMods = applyRangeDatePickerBodyMods;
|
|
3873
4243
|
exports.applySpinnerMods = applySpinnerMods;
|
|
3874
4244
|
exports.applySwitchMods = applySwitchMods;
|
|
3875
4245
|
exports.applyTagMods = applyTagMods;
|
|
3876
4246
|
exports.applyTextAreaMods = applyTextAreaMods;
|
|
3877
4247
|
exports.applyTextInputMods = applyTextInputMods;
|
|
3878
4248
|
exports.defaultPredicates = defaultPredicates;
|
|
4249
|
+
exports.getHighlightRanges = getHighlightRanges;
|
|
4250
|
+
exports.getHighlightedSearchMatches = getHighlightedSearchMatches;
|
|
3879
4251
|
exports.getTextClasses = getTextClasses;
|
|
3880
4252
|
exports.i18n = i18n;
|
|
3881
4253
|
exports.propsMods = propsMods;
|
|
4254
|
+
exports.rangeDatePickerPresets = rangeDatePickerPresets;
|
|
3882
4255
|
exports.renderCell = renderCell;
|
|
3883
4256
|
exports.renderDropMarkers = renderDropMarkers;
|
|
3884
4257
|
exports.useColumnsWithFilters = useColumnsWithFilters;
|
|
3885
4258
|
exports.useForm = useForm;
|
|
4259
|
+
exports.uuiDatePickerBody = uuiDatePickerBody;
|
|
4260
|
+
exports.weekCount = weekCount;
|
|
3886
4261
|
//# sourceMappingURL=index.js.map
|