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