@epam/uui 4.10.0 → 4.11.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/styles/controlLayout.scss +16 -0
- package/assets/styles/effects.scss +3 -2
- package/assets/styles/inputs.scss +10 -10
- package/assets/styles/prettifyScrollBar.scss +10 -2
- package/assets/styles/variables/layout/accordion.scss +8 -8
- package/assets/styles/variables/overlays/dropdownContainer.scss +2 -2
- package/assets/styles/variables/overlays/notificationCard.scss +14 -14
- package/assets/styles/variables/typography/text.scss +5 -5
- package/assets/styles/variables/typography/textPlaceholder.scss +2 -2
- package/assets/styles/variables/widgets/badge.scss +36 -36
- package/components/buttons/Button/Button.d.ts +13 -0
- package/components/buttons/Button/Button.d.ts.map +1 -0
- package/components/buttons/Button/Button.test.d.ts +2 -0
- package/components/buttons/Button/Button.test.d.ts.map +1 -0
- package/components/buttons/Button/index.d.ts +2 -0
- package/components/buttons/Button/index.d.ts.map +1 -0
- package/components/buttons/IconButton.d.ts +1 -3
- package/components/buttons/IconButton.d.ts.map +1 -1
- package/components/buttons/LinkButton.d.ts +3 -4
- package/components/buttons/LinkButton.d.ts.map +1 -1
- package/components/buttons/TabButton.d.ts +2 -3
- package/components/buttons/TabButton.d.ts.map +1 -1
- package/components/buttons/VerticalTabButton.d.ts +2 -2
- package/components/buttons/VerticalTabButton.d.ts.map +1 -1
- package/components/buttons/index.d.ts +1 -1
- package/components/buttons/index.d.ts.map +1 -1
- package/components/datePickers/Calendar.d.ts +5 -0
- package/components/datePickers/Calendar.d.ts.map +1 -0
- package/components/datePickers/CalendarPresets.d.ts +4 -0
- package/components/datePickers/CalendarPresets.d.ts.map +1 -0
- package/components/datePickers/DatePicker.d.ts +13 -0
- package/components/datePickers/DatePicker.d.ts.map +1 -0
- package/components/datePickers/DatePickerBody.d.ts +4 -0
- package/components/datePickers/DatePickerBody.d.ts.map +1 -0
- package/components/datePickers/RangeDatePicker.d.ts +13 -0
- package/components/datePickers/RangeDatePicker.d.ts.map +1 -0
- package/components/datePickers/RangeDatePickerBody.d.ts +4 -0
- package/components/datePickers/RangeDatePickerBody.d.ts.map +1 -0
- package/components/datePickers/index.d.ts +6 -0
- package/components/datePickers/index.d.ts.map +1 -0
- package/components/dnd/DropMarker.d.ts +9 -0
- package/components/dnd/DropMarker.d.ts.map +1 -0
- package/components/dnd/index.d.ts +2 -0
- package/components/dnd/index.d.ts.map +1 -0
- package/components/index.d.ts +2 -0
- package/components/index.d.ts.map +1 -1
- package/components/inputs/Checkbox.d.ts +5 -6
- package/components/inputs/Checkbox.d.ts.map +1 -1
- package/components/inputs/MultiSwitch.d.ts +16 -0
- package/components/inputs/MultiSwitch.d.ts.map +1 -0
- package/components/inputs/NumericInput.d.ts +9 -0
- package/components/inputs/NumericInput.d.ts.map +1 -0
- package/components/inputs/RadioInput.d.ts +3 -4
- package/components/inputs/RadioInput.d.ts.map +1 -1
- package/components/inputs/Switch.d.ts +1 -3
- package/components/inputs/Switch.d.ts.map +1 -1
- package/components/inputs/TextArea.d.ts +10 -0
- package/components/inputs/TextArea.d.ts.map +1 -0
- package/components/inputs/TextInput.d.ts +4 -5
- package/components/inputs/TextInput.d.ts.map +1 -1
- package/components/inputs/index.d.ts +3 -0
- package/components/inputs/index.d.ts.map +1 -1
- package/components/layout/Accordion.d.ts +1 -2
- package/components/layout/Accordion.d.ts.map +1 -1
- package/components/layout/ControlGroup.d.ts +1 -2
- package/components/layout/ControlGroup.d.ts.map +1 -1
- package/components/layout/FlexItems/FlexCell.d.ts +2 -2
- package/components/layout/FlexItems/FlexCell.d.ts.map +1 -1
- package/components/layout/FlexItems/FlexRow.d.ts +1 -2
- package/components/layout/FlexItems/FlexRow.d.ts.map +1 -1
- package/components/layout/FlexItems/Panel.d.ts +2 -5
- package/components/layout/FlexItems/Panel.d.ts.map +1 -1
- package/components/layout/IconContainer.d.ts +1 -3
- package/components/layout/IconContainer.d.ts.map +1 -1
- package/components/layout/LabeledInput.d.ts +1 -3
- package/components/layout/LabeledInput.d.ts.map +1 -1
- package/components/layout/RadioGroup.d.ts +1 -2
- package/components/layout/RadioGroup.d.ts.map +1 -1
- package/components/layout/ScrollBars.d.ts +1 -3
- package/components/layout/ScrollBars.d.ts.map +1 -1
- package/components/layout/VirtualList.d.ts +1 -6
- package/components/layout/VirtualList.d.ts.map +1 -1
- package/components/overlays/DropdownContainer.d.ts +1 -2
- package/components/overlays/DropdownContainer.d.ts.map +1 -1
- package/components/overlays/DropdownMenu.d.ts +12 -14
- package/components/overlays/DropdownMenu.d.ts.map +1 -1
- package/components/overlays/Modals.d.ts +2 -3
- package/components/overlays/Modals.d.ts.map +1 -1
- package/components/overlays/Tooltip.d.ts +2 -3
- package/components/overlays/Tooltip.d.ts.map +1 -1
- package/components/pickers/DataPickerBody.d.ts +2 -1
- package/components/pickers/DataPickerBody.d.ts.map +1 -1
- package/components/pickers/DataPickerFooter.d.ts.map +1 -1
- package/components/pickers/PickerInput.d.ts +1 -1
- package/components/pickers/PickerInput.d.ts.map +1 -1
- package/components/pickers/PickerItem.d.ts +2 -1
- package/components/pickers/PickerItem.d.ts.map +1 -1
- package/components/pickers/PickerModal.d.ts +2 -1
- package/components/pickers/PickerModal.d.ts.map +1 -1
- package/components/pickers/PickerToggler.d.ts +0 -1
- package/components/pickers/PickerToggler.d.ts.map +1 -1
- package/components/tables/ColumnHeaderDropdown/ColumnHeaderDropdown.d.ts +14 -0
- package/components/tables/ColumnHeaderDropdown/ColumnHeaderDropdown.d.ts.map +1 -0
- package/components/tables/ColumnHeaderDropdown/SortingPanel.d.ts +8 -0
- package/components/tables/ColumnHeaderDropdown/SortingPanel.d.ts.map +1 -0
- package/components/tables/ColumnHeaderDropdown/index.d.ts +2 -0
- package/components/tables/ColumnHeaderDropdown/index.d.ts.map +1 -0
- package/components/tables/DataTable.d.ts +16 -0
- package/components/tables/DataTable.d.ts.map +1 -0
- package/components/tables/DataTableCell.d.ts +2 -7
- package/components/tables/DataTableCell.d.ts.map +1 -1
- package/components/tables/DataTableHeaderCell.d.ts +19 -0
- package/components/tables/DataTableHeaderCell.d.ts.map +1 -0
- package/components/tables/DataTableHeaderRow.d.ts +5 -0
- package/components/tables/DataTableHeaderRow.d.ts.map +1 -0
- package/components/tables/DataTableRow.d.ts +11 -0
- package/components/tables/DataTableRow.d.ts.map +1 -0
- package/components/tables/columnsConfigurationModal/ColumnRow.d.ts +7 -0
- package/components/tables/columnsConfigurationModal/ColumnRow.d.ts.map +1 -0
- package/components/tables/columnsConfigurationModal/ColumnsConfigurationModal.d.ts +10 -0
- package/components/tables/columnsConfigurationModal/ColumnsConfigurationModal.d.ts.map +1 -0
- package/components/tables/columnsConfigurationModal/PinIconButton.d.ts +10 -0
- package/components/tables/columnsConfigurationModal/PinIconButton.d.ts.map +1 -0
- package/components/tables/columnsConfigurationModal/index.d.ts +2 -0
- package/components/tables/columnsConfigurationModal/index.d.ts.map +1 -0
- package/components/tables/index.d.ts +6 -1
- package/components/tables/index.d.ts.map +1 -1
- package/components/tables/types.d.ts +26 -3
- package/components/tables/types.d.ts.map +1 -1
- package/components/types.d.ts +5 -2
- package/components/types.d.ts.map +1 -1
- package/components/typography/Text.d.ts +1 -1
- package/components/typography/Text.d.ts.map +1 -1
- package/components/widgets/Avatar.d.ts +1 -2
- package/components/widgets/Avatar.d.ts.map +1 -1
- package/components/widgets/Badge.d.ts +6 -7
- package/components/widgets/Badge.d.ts.map +1 -1
- package/components/widgets/Tag.d.ts +4 -4
- package/components/widgets/Tag.d.ts.map +1 -1
- package/i18n.d.ts +40 -0
- package/i18n.d.ts.map +1 -1
- package/index.js +1342 -588
- package/index.js.map +1 -1
- package/package.json +13 -6
- package/stats.html +1 -1
- package/styles.css +1704 -1029
- package/styles.css.map +1 -1
- package/assets/styles/variables/buttons/button.scss +0 -71
- package/assets/styles/variables/buttons/iconButton.scss +0 -41
- package/assets/styles/variables/buttons/linkButton.scss +0 -6
- package/assets/styles/variables/buttons/tabButton.scss +0 -8
- package/assets/styles/variables/inputs/checkbox.scss +0 -18
- package/assets/styles/variables/inputs/radioInput.scss +0 -15
- package/assets/styles/variables/inputs/switch.scss +0 -24
- package/assets/styles/variables/inputs/textInput.scss +0 -21
- package/assets/styles/variables/layout/iconContainer.scss +0 -23
- package/assets/styles/variables/layout/labeledInput.scss +0 -8
- package/assets/styles/variables/layout/panel.scss +0 -6
- package/assets/styles/variables/layout/scrollBars.scss +0 -4
- package/assets/styles/variables/overlays/modals.scss +0 -6
- package/assets/styles/variables/overlays/tooltip.scss +0 -8
- package/assets/styles/variables/pickers/pickerToggler.scss +0 -16
- package/assets/styles/variables/widgets/tag.scss +0 -9
- package/components/buttons/Button.d.ts +0 -14
- package/components/buttons/Button.d.ts.map +0 -1
- package/components/tables/Presets/Preset.d.ts +0 -14
- package/components/tables/Presets/Preset.d.ts.map +0 -1
- package/components/tables/Presets/Presets.d.ts +0 -9
- package/components/tables/Presets/Presets.d.ts.map +0 -1
- package/components/tables/Presets/index.d.ts +0 -3
- package/components/tables/Presets/index.d.ts.map +0 -1
package/index.js
CHANGED
|
@@ -30,428 +30,429 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
|
30
30
|
var FocusLock__default = /*#__PURE__*/_interopDefault(FocusLock);
|
|
31
31
|
var cx__default = /*#__PURE__*/_interopDefault(cx);
|
|
32
32
|
|
|
33
|
-
var _path$
|
|
34
|
-
function _extends$
|
|
33
|
+
var _path$M;
|
|
34
|
+
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); }
|
|
35
35
|
var SvgBtnCross12 = function SvgBtnCross12(props, ref) {
|
|
36
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
36
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$O({
|
|
37
37
|
xmlns: "http://www.w3.org/2000/svg",
|
|
38
38
|
width: 12,
|
|
39
39
|
height: 12,
|
|
40
40
|
viewBox: "0 0 12 12",
|
|
41
41
|
ref: ref
|
|
42
|
-
}, props), _path$
|
|
42
|
+
}, props), _path$M || (_path$M = /*#__PURE__*/React__namespace.createElement("path", {
|
|
43
43
|
fillRule: "evenodd",
|
|
44
44
|
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"
|
|
45
45
|
})));
|
|
46
46
|
};
|
|
47
|
-
var ForwardRef$
|
|
47
|
+
var ForwardRef$O = /*#__PURE__*/React.forwardRef(SvgBtnCross12);
|
|
48
48
|
|
|
49
|
-
var _path$
|
|
50
|
-
function _extends$
|
|
49
|
+
var _path$L;
|
|
50
|
+
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); }
|
|
51
51
|
var SvgBtnCross18 = function SvgBtnCross18(props, ref) {
|
|
52
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
52
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$N({
|
|
53
53
|
xmlns: "http://www.w3.org/2000/svg",
|
|
54
54
|
width: 18,
|
|
55
55
|
height: 18,
|
|
56
56
|
viewBox: "0 0 18 18",
|
|
57
57
|
ref: ref
|
|
58
|
-
}, props), _path$
|
|
58
|
+
}, props), _path$L || (_path$L = /*#__PURE__*/React__namespace.createElement("path", {
|
|
59
59
|
fillRule: "evenodd",
|
|
60
60
|
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"
|
|
61
61
|
})));
|
|
62
62
|
};
|
|
63
|
-
var ForwardRef$
|
|
63
|
+
var ForwardRef$N = /*#__PURE__*/React.forwardRef(SvgBtnCross18);
|
|
64
64
|
|
|
65
|
-
var _path$
|
|
66
|
-
function _extends$
|
|
65
|
+
var _path$K;
|
|
66
|
+
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); }
|
|
67
67
|
var SvgBtnCross24 = function SvgBtnCross24(props, ref) {
|
|
68
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
68
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$M({
|
|
69
69
|
xmlns: "http://www.w3.org/2000/svg",
|
|
70
70
|
width: 24,
|
|
71
71
|
height: 24,
|
|
72
72
|
viewBox: "0 0 24 24",
|
|
73
73
|
ref: ref
|
|
74
|
-
}, props), _path$
|
|
74
|
+
}, props), _path$K || (_path$K = /*#__PURE__*/React__namespace.createElement("path", {
|
|
75
75
|
fillRule: "evenodd",
|
|
76
76
|
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"
|
|
77
77
|
})));
|
|
78
78
|
};
|
|
79
|
-
var ForwardRef$
|
|
79
|
+
var ForwardRef$M = /*#__PURE__*/React.forwardRef(SvgBtnCross24);
|
|
80
80
|
|
|
81
|
-
var _path$
|
|
82
|
-
function _extends$
|
|
81
|
+
var _path$J;
|
|
82
|
+
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); }
|
|
83
83
|
var SvgFoldingArrow12 = function SvgFoldingArrow12(props, ref) {
|
|
84
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
84
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$L({
|
|
85
85
|
xmlns: "http://www.w3.org/2000/svg",
|
|
86
86
|
width: 12,
|
|
87
87
|
height: 12,
|
|
88
88
|
viewBox: "0 0 12 12",
|
|
89
89
|
ref: ref
|
|
90
|
-
}, props), _path$
|
|
90
|
+
}, props), _path$J || (_path$J = /*#__PURE__*/React__namespace.createElement("path", {
|
|
91
91
|
fillRule: "evenodd",
|
|
92
92
|
d: "M8.295 4.295 6 6.585l-2.295-2.29L3 5l3 3 3-3z"
|
|
93
93
|
})));
|
|
94
94
|
};
|
|
95
|
-
var ForwardRef$
|
|
95
|
+
var ForwardRef$L = /*#__PURE__*/React.forwardRef(SvgFoldingArrow12);
|
|
96
96
|
|
|
97
|
-
var _path$
|
|
98
|
-
function _extends$
|
|
97
|
+
var _path$I;
|
|
98
|
+
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); }
|
|
99
99
|
var SvgFoldingArrow18 = function SvgFoldingArrow18(props, ref) {
|
|
100
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
100
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$K({
|
|
101
101
|
xmlns: "http://www.w3.org/2000/svg",
|
|
102
102
|
width: 18,
|
|
103
103
|
height: 18,
|
|
104
104
|
viewBox: "0 0 18 18",
|
|
105
105
|
ref: ref
|
|
106
|
-
}, props), _path$
|
|
106
|
+
}, props), _path$I || (_path$I = /*#__PURE__*/React__namespace.createElement("path", {
|
|
107
107
|
fillRule: "evenodd",
|
|
108
108
|
d: "M12.443 6.442 9 9.877 5.558 6.442 4.5 7.5 9 12l4.5-4.5z"
|
|
109
109
|
})));
|
|
110
110
|
};
|
|
111
|
-
var ForwardRef$
|
|
111
|
+
var ForwardRef$K = /*#__PURE__*/React.forwardRef(SvgFoldingArrow18);
|
|
112
112
|
|
|
113
|
-
var _path$
|
|
114
|
-
function _extends$
|
|
113
|
+
var _path$H;
|
|
114
|
+
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); }
|
|
115
115
|
var SvgFoldingArrow24 = function SvgFoldingArrow24(props, ref) {
|
|
116
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
116
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$J({
|
|
117
117
|
xmlns: "http://www.w3.org/2000/svg",
|
|
118
118
|
width: 24,
|
|
119
119
|
height: 24,
|
|
120
120
|
viewBox: "0 0 24 24",
|
|
121
121
|
ref: ref
|
|
122
|
-
}, props), _path$
|
|
122
|
+
}, props), _path$H || (_path$H = /*#__PURE__*/React__namespace.createElement("path", {
|
|
123
123
|
fillRule: "evenodd",
|
|
124
124
|
d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
|
|
125
125
|
})));
|
|
126
126
|
};
|
|
127
|
-
var ForwardRef$
|
|
127
|
+
var ForwardRef$J = /*#__PURE__*/React.forwardRef(SvgFoldingArrow24);
|
|
128
128
|
|
|
129
|
-
var _path$
|
|
130
|
-
function _extends$
|
|
129
|
+
var _path$G;
|
|
130
|
+
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); }
|
|
131
131
|
var SvgAccept12 = function SvgAccept12(props, ref) {
|
|
132
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
132
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$I({
|
|
133
133
|
xmlns: "http://www.w3.org/2000/svg",
|
|
134
134
|
width: 12,
|
|
135
135
|
height: 12,
|
|
136
136
|
viewBox: "0 0 12 12",
|
|
137
137
|
ref: ref
|
|
138
|
-
}, props), _path$
|
|
138
|
+
}, props), _path$G || (_path$G = /*#__PURE__*/React__namespace.createElement("path", {
|
|
139
139
|
fillRule: "evenodd",
|
|
140
140
|
d: "M4.846 6.8 9.462 2 11 3.6 4.846 10l-.77-.8L1 6l1.538-1.6 2.308 2.4z"
|
|
141
141
|
})));
|
|
142
142
|
};
|
|
143
|
-
var ForwardRef$
|
|
143
|
+
var ForwardRef$I = /*#__PURE__*/React.forwardRef(SvgAccept12);
|
|
144
144
|
|
|
145
|
-
var _path$
|
|
146
|
-
function _extends$
|
|
145
|
+
var _path$F;
|
|
146
|
+
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); }
|
|
147
147
|
var SvgAccept18 = function SvgAccept18(props, ref) {
|
|
148
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
148
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$H({
|
|
149
149
|
xmlns: "http://www.w3.org/2000/svg",
|
|
150
150
|
width: 18,
|
|
151
151
|
height: 18,
|
|
152
152
|
viewBox: "0 0 18 18",
|
|
153
153
|
ref: ref
|
|
154
|
-
}, props), _path$
|
|
154
|
+
}, props), _path$F || (_path$F = /*#__PURE__*/React__namespace.createElement("path", {
|
|
155
155
|
fillRule: "evenodd",
|
|
156
156
|
d: "M7.136 11.91 4.034 8.776 3 9.821 7.136 14 16 5.045 14.966 4z"
|
|
157
157
|
})));
|
|
158
158
|
};
|
|
159
|
-
var ForwardRef$
|
|
159
|
+
var ForwardRef$H = /*#__PURE__*/React.forwardRef(SvgAccept18);
|
|
160
160
|
|
|
161
|
-
var _path$
|
|
162
|
-
function _extends$
|
|
161
|
+
var _path$E;
|
|
162
|
+
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); }
|
|
163
163
|
var SvgAccept24 = function SvgAccept24(props, ref) {
|
|
164
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
164
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$G({
|
|
165
165
|
xmlns: "http://www.w3.org/2000/svg",
|
|
166
166
|
width: 24,
|
|
167
167
|
height: 24,
|
|
168
168
|
viewBox: "0 0 24 24",
|
|
169
169
|
ref: ref
|
|
170
|
-
}, props), _path$
|
|
170
|
+
}, props), _path$E || (_path$E = /*#__PURE__*/React__namespace.createElement("path", {
|
|
171
171
|
fillRule: "evenodd",
|
|
172
172
|
d: "m9.727 16.075-4.295-4.388L4 13.149 9.727 19 22 6.463 20.568 5z"
|
|
173
173
|
})));
|
|
174
174
|
};
|
|
175
|
-
var ForwardRef$
|
|
175
|
+
var ForwardRef$G = /*#__PURE__*/React.forwardRef(SvgAccept24);
|
|
176
176
|
|
|
177
|
-
var _path$
|
|
178
|
-
function _extends$
|
|
177
|
+
var _path$D;
|
|
178
|
+
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); }
|
|
179
179
|
var SvgSearch12 = function SvgSearch12(props, ref) {
|
|
180
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
180
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$F({
|
|
181
181
|
xmlns: "http://www.w3.org/2000/svg",
|
|
182
182
|
width: 12,
|
|
183
183
|
height: 12,
|
|
184
184
|
viewBox: "0 0 12 12",
|
|
185
185
|
ref: ref
|
|
186
|
-
}, props), _path$
|
|
186
|
+
}, props), _path$D || (_path$D = /*#__PURE__*/React__namespace.createElement("path", {
|
|
187
187
|
fillRule: "evenodd",
|
|
188
188
|
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"
|
|
189
189
|
})));
|
|
190
190
|
};
|
|
191
|
-
var ForwardRef$
|
|
191
|
+
var ForwardRef$F = /*#__PURE__*/React.forwardRef(SvgSearch12);
|
|
192
192
|
|
|
193
|
-
var _path$
|
|
194
|
-
function _extends$
|
|
193
|
+
var _path$C;
|
|
194
|
+
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); }
|
|
195
195
|
var SvgSearch18 = function SvgSearch18(props, ref) {
|
|
196
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
196
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$E({
|
|
197
197
|
xmlns: "http://www.w3.org/2000/svg",
|
|
198
198
|
width: 18,
|
|
199
199
|
height: 18,
|
|
200
200
|
viewBox: "0 0 18 18",
|
|
201
201
|
ref: ref
|
|
202
|
-
}, props), _path$
|
|
202
|
+
}, props), _path$C || (_path$C = /*#__PURE__*/React__namespace.createElement("path", {
|
|
203
203
|
fillRule: "evenodd",
|
|
204
204
|
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"
|
|
205
205
|
})));
|
|
206
206
|
};
|
|
207
|
-
var ForwardRef$
|
|
207
|
+
var ForwardRef$E = /*#__PURE__*/React.forwardRef(SvgSearch18);
|
|
208
208
|
|
|
209
|
-
var _path$
|
|
210
|
-
function _extends$
|
|
209
|
+
var _path$B;
|
|
210
|
+
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); }
|
|
211
211
|
var SvgSearch24 = function SvgSearch24(props, ref) {
|
|
212
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
212
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$D({
|
|
213
213
|
xmlns: "http://www.w3.org/2000/svg",
|
|
214
214
|
width: 24,
|
|
215
215
|
height: 24,
|
|
216
216
|
viewBox: "0 0 24 24",
|
|
217
217
|
ref: ref
|
|
218
|
-
}, props), _path$
|
|
218
|
+
}, props), _path$B || (_path$B = /*#__PURE__*/React__namespace.createElement("path", {
|
|
219
219
|
fillRule: "evenodd",
|
|
220
220
|
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"
|
|
221
221
|
})));
|
|
222
222
|
};
|
|
223
|
-
var ForwardRef$
|
|
223
|
+
var ForwardRef$D = /*#__PURE__*/React.forwardRef(SvgSearch24);
|
|
224
224
|
|
|
225
|
-
var _path$
|
|
226
|
-
function _extends$
|
|
225
|
+
var _path$A;
|
|
226
|
+
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); }
|
|
227
227
|
var SvgCalendar12 = function SvgCalendar12(props, ref) {
|
|
228
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
228
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$C({
|
|
229
229
|
xmlns: "http://www.w3.org/2000/svg",
|
|
230
230
|
width: 12,
|
|
231
231
|
height: 12,
|
|
232
232
|
viewBox: "0 0 12 12",
|
|
233
233
|
ref: ref
|
|
234
|
-
}, props), _path$
|
|
234
|
+
}, props), _path$A || (_path$A = /*#__PURE__*/React__namespace.createElement("path", {
|
|
235
235
|
fillRule: "evenodd",
|
|
236
236
|
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"
|
|
237
237
|
})));
|
|
238
238
|
};
|
|
239
|
-
var ForwardRef$
|
|
239
|
+
var ForwardRef$C = /*#__PURE__*/React.forwardRef(SvgCalendar12);
|
|
240
240
|
|
|
241
|
-
var _path$
|
|
242
|
-
function _extends$
|
|
241
|
+
var _path$z;
|
|
242
|
+
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); }
|
|
243
243
|
var SvgCalendar18 = function SvgCalendar18(props, ref) {
|
|
244
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
244
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$B({
|
|
245
245
|
xmlns: "http://www.w3.org/2000/svg",
|
|
246
246
|
width: 18,
|
|
247
247
|
height: 18,
|
|
248
248
|
viewBox: "0 0 18 18",
|
|
249
249
|
ref: ref
|
|
250
|
-
}, props), _path$
|
|
250
|
+
}, props), _path$z || (_path$z = /*#__PURE__*/React__namespace.createElement("path", {
|
|
251
251
|
fillRule: "evenodd",
|
|
252
252
|
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"
|
|
253
253
|
})));
|
|
254
254
|
};
|
|
255
|
-
var ForwardRef$
|
|
255
|
+
var ForwardRef$B = /*#__PURE__*/React.forwardRef(SvgCalendar18);
|
|
256
256
|
|
|
257
|
-
var _path$
|
|
258
|
-
function _extends$
|
|
257
|
+
var _path$y;
|
|
258
|
+
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); }
|
|
259
259
|
var SvgCalendar24 = function SvgCalendar24(props, ref) {
|
|
260
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
260
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$A({
|
|
261
261
|
xmlns: "http://www.w3.org/2000/svg",
|
|
262
262
|
width: 24,
|
|
263
263
|
height: 24,
|
|
264
264
|
viewBox: "0 0 24 24",
|
|
265
265
|
ref: ref
|
|
266
|
-
}, props), _path$
|
|
266
|
+
}, props), _path$y || (_path$y = /*#__PURE__*/React__namespace.createElement("path", {
|
|
267
267
|
fillRule: "evenodd",
|
|
268
268
|
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"
|
|
269
269
|
})));
|
|
270
270
|
};
|
|
271
|
-
var ForwardRef$
|
|
271
|
+
var ForwardRef$A = /*#__PURE__*/React.forwardRef(SvgCalendar24);
|
|
272
272
|
|
|
273
|
-
var _path$
|
|
274
|
-
function _extends$
|
|
273
|
+
var _path$x;
|
|
274
|
+
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); }
|
|
275
275
|
var SvgInfo12 = function SvgInfo12(props, ref) {
|
|
276
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
276
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$z({
|
|
277
277
|
width: 12,
|
|
278
278
|
height: 12,
|
|
279
279
|
viewBox: "0 0 12 12",
|
|
280
280
|
xmlns: "http://www.w3.org/2000/svg",
|
|
281
281
|
ref: ref
|
|
282
|
-
}, props), _path$
|
|
282
|
+
}, props), _path$x || (_path$x = /*#__PURE__*/React__namespace.createElement("path", {
|
|
283
283
|
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",
|
|
284
284
|
fillRule: "evenodd"
|
|
285
285
|
})));
|
|
286
286
|
};
|
|
287
|
-
var ForwardRef$
|
|
287
|
+
var ForwardRef$z = /*#__PURE__*/React.forwardRef(SvgInfo12);
|
|
288
288
|
|
|
289
|
-
var _path$
|
|
290
|
-
function _extends$
|
|
289
|
+
var _path$w;
|
|
290
|
+
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); }
|
|
291
291
|
var SvgInfo18 = function SvgInfo18(props, ref) {
|
|
292
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
292
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$y({
|
|
293
293
|
xmlns: "http://www.w3.org/2000/svg",
|
|
294
294
|
width: 18,
|
|
295
295
|
height: 18,
|
|
296
296
|
viewBox: "0 0 18 18",
|
|
297
297
|
ref: ref
|
|
298
|
-
}, props), _path$
|
|
298
|
+
}, props), _path$w || (_path$w = /*#__PURE__*/React__namespace.createElement("path", {
|
|
299
299
|
fillRule: "evenodd",
|
|
300
300
|
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"
|
|
301
301
|
})));
|
|
302
302
|
};
|
|
303
|
-
var ForwardRef$
|
|
303
|
+
var ForwardRef$y = /*#__PURE__*/React.forwardRef(SvgInfo18);
|
|
304
304
|
|
|
305
|
-
var _path$
|
|
306
|
-
function _extends$
|
|
305
|
+
var _path$v;
|
|
306
|
+
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); }
|
|
307
307
|
var SvgInfo24 = function SvgInfo24(props, ref) {
|
|
308
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
308
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$x({
|
|
309
309
|
xmlns: "http://www.w3.org/2000/svg",
|
|
310
310
|
width: 24,
|
|
311
311
|
height: 24,
|
|
312
312
|
viewBox: "0 0 24 24",
|
|
313
313
|
ref: ref
|
|
314
|
-
}, props), _path$
|
|
314
|
+
}, props), _path$v || (_path$v = /*#__PURE__*/React__namespace.createElement("path", {
|
|
315
315
|
fillRule: "evenodd",
|
|
316
316
|
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"
|
|
317
317
|
})));
|
|
318
318
|
};
|
|
319
|
-
var ForwardRef$
|
|
319
|
+
var ForwardRef$x = /*#__PURE__*/React.forwardRef(SvgInfo24);
|
|
320
320
|
|
|
321
|
-
var _path$
|
|
322
|
-
function _extends$
|
|
321
|
+
var _path$u;
|
|
322
|
+
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); }
|
|
323
323
|
var SvgHelpFill10 = function SvgHelpFill10(props, ref) {
|
|
324
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
324
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$w({
|
|
325
325
|
width: 10,
|
|
326
326
|
height: 10,
|
|
327
327
|
viewBox: "0 0 10 10",
|
|
328
328
|
xmlns: "http://www.w3.org/2000/svg",
|
|
329
329
|
ref: ref
|
|
330
|
-
}, props), _path$
|
|
330
|
+
}, props), _path$u || (_path$u = /*#__PURE__*/React__namespace.createElement("path", {
|
|
331
331
|
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"
|
|
332
332
|
})));
|
|
333
333
|
};
|
|
334
|
-
var ForwardRef$
|
|
334
|
+
var ForwardRef$w = /*#__PURE__*/React.forwardRef(SvgHelpFill10);
|
|
335
335
|
|
|
336
|
-
var _path$
|
|
337
|
-
function _extends$
|
|
336
|
+
var _path$t;
|
|
337
|
+
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); }
|
|
338
338
|
var SvgHelpFill16 = function SvgHelpFill16(props, ref) {
|
|
339
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
339
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$v({
|
|
340
340
|
width: 16,
|
|
341
341
|
height: 16,
|
|
342
342
|
viewBox: "0 0 16 16",
|
|
343
343
|
xmlns: "http://www.w3.org/2000/svg",
|
|
344
344
|
ref: ref
|
|
345
|
-
}, props), _path$
|
|
345
|
+
}, props), _path$t || (_path$t = /*#__PURE__*/React__namespace.createElement("path", {
|
|
346
346
|
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"
|
|
347
347
|
})));
|
|
348
348
|
};
|
|
349
|
-
var ForwardRef$
|
|
349
|
+
var ForwardRef$v = /*#__PURE__*/React.forwardRef(SvgHelpFill16);
|
|
350
350
|
|
|
351
351
|
const systemIcons = {
|
|
352
352
|
'18': {
|
|
353
|
-
clear: ForwardRef$
|
|
354
|
-
foldingArrow: ForwardRef$
|
|
355
|
-
accept: ForwardRef$
|
|
356
|
-
search: ForwardRef$
|
|
357
|
-
calendar: ForwardRef$
|
|
358
|
-
info: ForwardRef$
|
|
359
|
-
help: ForwardRef$
|
|
353
|
+
clear: ForwardRef$O,
|
|
354
|
+
foldingArrow: ForwardRef$L,
|
|
355
|
+
accept: ForwardRef$I,
|
|
356
|
+
search: ForwardRef$F,
|
|
357
|
+
calendar: ForwardRef$C,
|
|
358
|
+
info: ForwardRef$z,
|
|
359
|
+
help: ForwardRef$w,
|
|
360
360
|
},
|
|
361
361
|
'24': {
|
|
362
|
-
clear: ForwardRef$
|
|
363
|
-
foldingArrow: ForwardRef$
|
|
364
|
-
accept: ForwardRef$
|
|
365
|
-
search: ForwardRef$
|
|
366
|
-
calendar: ForwardRef$
|
|
367
|
-
info: ForwardRef$
|
|
368
|
-
help: ForwardRef$
|
|
362
|
+
clear: ForwardRef$O,
|
|
363
|
+
foldingArrow: ForwardRef$L,
|
|
364
|
+
accept: ForwardRef$I,
|
|
365
|
+
search: ForwardRef$F,
|
|
366
|
+
calendar: ForwardRef$C,
|
|
367
|
+
info: ForwardRef$z,
|
|
368
|
+
help: ForwardRef$w,
|
|
369
369
|
},
|
|
370
370
|
'30': {
|
|
371
|
-
clear: ForwardRef$
|
|
372
|
-
foldingArrow: ForwardRef$
|
|
373
|
-
accept: ForwardRef$
|
|
374
|
-
search: ForwardRef$
|
|
375
|
-
calendar: ForwardRef$
|
|
376
|
-
info: ForwardRef$
|
|
377
|
-
help: ForwardRef$
|
|
371
|
+
clear: ForwardRef$N,
|
|
372
|
+
foldingArrow: ForwardRef$K,
|
|
373
|
+
accept: ForwardRef$H,
|
|
374
|
+
search: ForwardRef$E,
|
|
375
|
+
calendar: ForwardRef$B,
|
|
376
|
+
info: ForwardRef$y,
|
|
377
|
+
help: ForwardRef$w,
|
|
378
378
|
},
|
|
379
379
|
'36': {
|
|
380
|
-
clear: ForwardRef$
|
|
381
|
-
foldingArrow: ForwardRef$
|
|
382
|
-
accept: ForwardRef$
|
|
383
|
-
search: ForwardRef$
|
|
384
|
-
calendar: ForwardRef$
|
|
385
|
-
info: ForwardRef$
|
|
386
|
-
help: ForwardRef$
|
|
380
|
+
clear: ForwardRef$N,
|
|
381
|
+
foldingArrow: ForwardRef$K,
|
|
382
|
+
accept: ForwardRef$H,
|
|
383
|
+
search: ForwardRef$E,
|
|
384
|
+
calendar: ForwardRef$B,
|
|
385
|
+
info: ForwardRef$y,
|
|
386
|
+
help: ForwardRef$v,
|
|
387
387
|
},
|
|
388
388
|
'42': {
|
|
389
|
-
clear: ForwardRef$
|
|
390
|
-
foldingArrow: ForwardRef$
|
|
391
|
-
accept: ForwardRef$
|
|
392
|
-
search: ForwardRef$
|
|
393
|
-
calendar: ForwardRef$
|
|
394
|
-
info: ForwardRef$
|
|
395
|
-
help: ForwardRef$
|
|
389
|
+
clear: ForwardRef$N,
|
|
390
|
+
foldingArrow: ForwardRef$K,
|
|
391
|
+
accept: ForwardRef$H,
|
|
392
|
+
search: ForwardRef$E,
|
|
393
|
+
calendar: ForwardRef$B,
|
|
394
|
+
info: ForwardRef$y,
|
|
395
|
+
help: ForwardRef$v,
|
|
396
396
|
},
|
|
397
397
|
'48': {
|
|
398
|
-
clear: ForwardRef$
|
|
399
|
-
foldingArrow: ForwardRef$
|
|
400
|
-
accept: ForwardRef$
|
|
401
|
-
search: ForwardRef$
|
|
402
|
-
calendar: ForwardRef$
|
|
403
|
-
info: ForwardRef$
|
|
404
|
-
help: ForwardRef$
|
|
398
|
+
clear: ForwardRef$M,
|
|
399
|
+
foldingArrow: ForwardRef$J,
|
|
400
|
+
accept: ForwardRef$G,
|
|
401
|
+
search: ForwardRef$D,
|
|
402
|
+
calendar: ForwardRef$A,
|
|
403
|
+
info: ForwardRef$x,
|
|
404
|
+
help: ForwardRef$v,
|
|
405
405
|
},
|
|
406
406
|
'60': {
|
|
407
|
-
clear: ForwardRef$
|
|
408
|
-
foldingArrow: ForwardRef$
|
|
409
|
-
accept: ForwardRef$
|
|
410
|
-
search: ForwardRef$
|
|
411
|
-
calendar: ForwardRef$
|
|
412
|
-
info: ForwardRef$
|
|
413
|
-
help: ForwardRef$
|
|
407
|
+
clear: ForwardRef$M,
|
|
408
|
+
foldingArrow: ForwardRef$J,
|
|
409
|
+
accept: ForwardRef$G,
|
|
410
|
+
search: ForwardRef$D,
|
|
411
|
+
calendar: ForwardRef$A,
|
|
412
|
+
info: ForwardRef$x,
|
|
413
|
+
help: ForwardRef$v,
|
|
414
414
|
},
|
|
415
415
|
'none': {
|
|
416
|
-
clear: ForwardRef$
|
|
417
|
-
foldingArrow: ForwardRef$
|
|
418
|
-
accept: ForwardRef$
|
|
419
|
-
search: ForwardRef$
|
|
420
|
-
calendar: ForwardRef$
|
|
421
|
-
info: ForwardRef$
|
|
422
|
-
help: ForwardRef$
|
|
416
|
+
clear: ForwardRef$N,
|
|
417
|
+
foldingArrow: ForwardRef$K,
|
|
418
|
+
accept: ForwardRef$H,
|
|
419
|
+
search: ForwardRef$E,
|
|
420
|
+
calendar: ForwardRef$B,
|
|
421
|
+
info: ForwardRef$y,
|
|
422
|
+
help: ForwardRef$v,
|
|
423
423
|
},
|
|
424
424
|
};
|
|
425
425
|
|
|
426
|
-
var buttonCss = {"root":"
|
|
426
|
+
var buttonCss = {"root":"Button_root__uIzk9","mode-solid":"Button_mode-solid__zr23o","mode-outline":"Button_mode-outline__e9LiF","mode-none":"Button_mode-none__j8rJ3","mode-ghost":"Button_mode-ghost__c8QtK","size-24":"Button_size-24__8SJZp","size-30":"Button_size-30__z1sFR","size-36":"Button_size-36__7ldWy","size-42":"Button_size-42__h3Y-0","size-48":"Button_size-48__VaI4-","modeSolid":"Button_mode-solid__zr23o","modeOutline":"Button_mode-outline__e9LiF","modeNone":"Button_mode-none__j8rJ3","modeGhost":"Button_mode-ghost__c8QtK","size24":"Button_size-24__8SJZp","size30":"Button_size-30__z1sFR","size36":"Button_size-36__7ldWy","size42":"Button_size-42__h3Y-0","size48":"Button_size-48__VaI4-"};
|
|
427
427
|
|
|
428
428
|
const allButtonColors = ['accent', 'primary', 'secondary', 'negative'];
|
|
429
|
-
const defaultSize$
|
|
429
|
+
const defaultSize$9 = '36';
|
|
430
430
|
function applyButtonMods(mods) {
|
|
431
431
|
return [
|
|
432
|
-
|
|
433
|
-
`button-color-${mods.color || 'primary'}`,
|
|
432
|
+
`button-${mods.color || 'primary'}`,
|
|
434
433
|
buttonCss.root,
|
|
435
|
-
buttonCss[`size-${mods.size || defaultSize$
|
|
434
|
+
buttonCss[`size-${mods.size || defaultSize$9}`],
|
|
436
435
|
buttonCss[`mode-${mods.mode || 'solid'}`],
|
|
437
436
|
];
|
|
438
437
|
}
|
|
439
438
|
const Button = uuiCore.withMods(uuiComponents.Button, applyButtonMods, (props) => ({
|
|
440
|
-
dropdownIcon: systemIcons[props.size || defaultSize$
|
|
441
|
-
clearIcon: systemIcons[props.size || defaultSize$
|
|
439
|
+
dropdownIcon: systemIcons[props.size || defaultSize$9].foldingArrow,
|
|
440
|
+
clearIcon: systemIcons[props.size || defaultSize$9].clear,
|
|
442
441
|
}));
|
|
443
442
|
|
|
444
|
-
var css$
|
|
443
|
+
var css$I = {"root":"IconButton_root__c1hRd"};
|
|
445
444
|
|
|
446
445
|
const allIconColors = ['info', 'success', 'warning', 'error', 'secondary', 'default'];
|
|
447
446
|
function applyIconButtonMods(mods) {
|
|
448
447
|
return [
|
|
449
|
-
`icon-button
|
|
450
|
-
css$
|
|
448
|
+
`icon-button-${mods.color || 'default'}`,
|
|
449
|
+
css$I.root,
|
|
451
450
|
];
|
|
452
451
|
}
|
|
453
452
|
const IconButton = uuiCore.withMods(uuiComponents.IconButton, applyIconButtonMods);
|
|
454
453
|
|
|
454
|
+
var css$H = {"root":"LinkButton_root__SWC7c","size-18":"LinkButton_size-18__XI44N","size-24":"LinkButton_size-24__yj-DG","size-30":"LinkButton_size-30__sKZ9H","size-36":"LinkButton_size-36__HIbgO","size-42":"LinkButton_size-42__apHCj","size-48":"LinkButton_size-48__7zgFe","size18":"LinkButton_size-18__XI44N","size24":"LinkButton_size-24__yj-DG","size30":"LinkButton_size-30__sKZ9H","size36":"LinkButton_size-36__HIbgO","size42":"LinkButton_size-42__apHCj","size48":"LinkButton_size-48__7zgFe"};
|
|
455
|
+
|
|
455
456
|
function getIconClass(props) {
|
|
456
457
|
let classList = {
|
|
457
458
|
'has-left-icon': false,
|
|
@@ -472,128 +473,139 @@ function getIconClass(props) {
|
|
|
472
473
|
];
|
|
473
474
|
}
|
|
474
475
|
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
const defaultSize$6 = '36';
|
|
476
|
+
const defaultSize$8 = '36';
|
|
478
477
|
function applyLinkButtonMods(mods) {
|
|
479
478
|
return [
|
|
480
|
-
|
|
481
|
-
css$
|
|
482
|
-
css$A['size-' + (mods.size || defaultSize$6)],
|
|
479
|
+
css$H.root,
|
|
480
|
+
css$H['size-' + (mods.size || defaultSize$8)],
|
|
483
481
|
...getIconClass(mods),
|
|
484
482
|
];
|
|
485
483
|
}
|
|
486
484
|
const LinkButton = uuiCore.withMods(uuiComponents.Button, applyLinkButtonMods, (props) => ({
|
|
487
|
-
dropdownIcon: systemIcons[props.size || defaultSize$
|
|
488
|
-
clearIcon: systemIcons[props.size || defaultSize$
|
|
485
|
+
dropdownIcon: systemIcons[props.size || defaultSize$8].foldingArrow,
|
|
486
|
+
clearIcon: systemIcons[props.size || defaultSize$8].clear,
|
|
489
487
|
}));
|
|
490
488
|
|
|
491
|
-
var css$
|
|
489
|
+
var css$G = {"root":"TabButton_root__WwWmb","uui-notification":"TabButton_uui-notification__kS3SP","size-36":"TabButton_size-36__GqZ6d","size-48":"TabButton_size-48__SPXAO","size-60":"TabButton_size-60__lPhOn","uuiNotification":"TabButton_uui-notification__kS3SP","size36":"TabButton_size-36__GqZ6d","size48":"TabButton_size-48__SPXAO","size60":"TabButton_size-60__lPhOn"};
|
|
492
490
|
|
|
493
491
|
function applyTabButtonMods(mods) {
|
|
494
492
|
return [
|
|
495
|
-
|
|
496
|
-
css$
|
|
497
|
-
|
|
498
|
-
mods.withNotify && css$z.uuiNotification,
|
|
493
|
+
css$G.root,
|
|
494
|
+
css$G['size-' + (mods.size || '48')],
|
|
495
|
+
mods.withNotify && css$G.uuiNotification,
|
|
499
496
|
...getIconClass(mods),
|
|
500
497
|
];
|
|
501
498
|
}
|
|
502
499
|
const TabButton = uuiCore.withMods(uuiComponents.Button, applyTabButtonMods, props => (Object.assign(Object.assign({ dropdownIcon: systemIcons['36'].foldingArrow, clearIcon: systemIcons['36'].clear, countPosition: 'right' }, props), { rawProps: Object.assign({ role: 'tab' }, props.rawProps) })));
|
|
503
500
|
|
|
504
|
-
var css$
|
|
501
|
+
var css$F = {"root":"VerticalTabButton_root__LInYW"};
|
|
505
502
|
|
|
506
503
|
function applyVerticalTabButtonMods() {
|
|
507
504
|
return [
|
|
508
|
-
css$
|
|
505
|
+
css$F.root,
|
|
509
506
|
];
|
|
510
507
|
}
|
|
511
508
|
const VerticalTabButton = uuiCore.withMods(TabButton, applyVerticalTabButtonMods);
|
|
512
509
|
|
|
513
|
-
|
|
510
|
+
const allButtonModes = ['solid', 'outline', 'ghost', 'none'];
|
|
511
|
+
const allSizes = ['24', '30', '36', '42', '48'];
|
|
512
|
+
const allRowSizes = [null, '24', '30', '36', '42', '48'];
|
|
513
|
+
const allEpamSemanticColors = ['accent', 'primary', 'secondary', 'negative'];
|
|
514
|
+
const allEpamBadgeSemanticColors = ['info', 'success', 'warning', 'error', 'default'];
|
|
515
|
+
const allTextSizes = ['18', '24', '30', '36', '48'];
|
|
516
|
+
const allFontStyles = ['regular', 'semibold', 'italic', 'primary', 'promo'];
|
|
517
|
+
exports.EditMode = void 0;
|
|
518
|
+
(function (EditMode) {
|
|
519
|
+
EditMode["FORM"] = "form";
|
|
520
|
+
EditMode["CELL"] = "cell";
|
|
521
|
+
EditMode["INLINE"] = "inline";
|
|
522
|
+
})(exports.EditMode || (exports.EditMode = {}));
|
|
514
523
|
|
|
515
|
-
var _path$
|
|
516
|
-
function _extends$
|
|
524
|
+
var _path$s;
|
|
525
|
+
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); }
|
|
517
526
|
var SvgCheck12 = function SvgCheck12(props, ref) {
|
|
518
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
527
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$u({
|
|
519
528
|
width: 12,
|
|
520
529
|
height: 12,
|
|
521
530
|
viewBox: "0 0 12 12",
|
|
522
531
|
xmlns: "http://www.w3.org/2000/svg",
|
|
523
532
|
ref: ref
|
|
524
|
-
}, props), _path$
|
|
533
|
+
}, props), _path$s || (_path$s = /*#__PURE__*/React__namespace.createElement("path", {
|
|
525
534
|
fillRule: "evenodd",
|
|
526
535
|
d: "M9.491 3.449 10.51 4.55 5.663 9.024 2.487 6.047l1.026-1.094L5.67 6.975z"
|
|
527
536
|
})));
|
|
528
537
|
};
|
|
529
|
-
var ForwardRef$
|
|
538
|
+
var ForwardRef$u = /*#__PURE__*/React.forwardRef(SvgCheck12);
|
|
530
539
|
|
|
531
|
-
var _path$
|
|
532
|
-
function _extends$
|
|
540
|
+
var _path$r;
|
|
541
|
+
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); }
|
|
533
542
|
var SvgCheck18 = function SvgCheck18(props, ref) {
|
|
534
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
543
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$t({
|
|
535
544
|
width: 18,
|
|
536
545
|
height: 18,
|
|
537
546
|
viewBox: "0 0 18 18",
|
|
538
547
|
xmlns: "http://www.w3.org/2000/svg",
|
|
539
548
|
ref: ref
|
|
540
|
-
}, props), _path$
|
|
549
|
+
}, props), _path$r || (_path$r = /*#__PURE__*/React__namespace.createElement("path", {
|
|
541
550
|
fillRule: "evenodd",
|
|
542
551
|
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"
|
|
543
552
|
})));
|
|
544
553
|
};
|
|
545
|
-
var ForwardRef$
|
|
554
|
+
var ForwardRef$t = /*#__PURE__*/React.forwardRef(SvgCheck18);
|
|
546
555
|
|
|
547
|
-
var _path$
|
|
548
|
-
function _extends$
|
|
556
|
+
var _path$q;
|
|
557
|
+
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); }
|
|
549
558
|
var SvgPartlySelect12 = function SvgPartlySelect12(props, ref) {
|
|
550
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
559
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$s({
|
|
551
560
|
width: 12,
|
|
552
561
|
height: 12,
|
|
553
562
|
viewBox: "0 0 12 12",
|
|
554
563
|
xmlns: "http://www.w3.org/2000/svg",
|
|
555
564
|
ref: ref
|
|
556
|
-
}, props), _path$
|
|
565
|
+
}, props), _path$q || (_path$q = /*#__PURE__*/React__namespace.createElement("path", {
|
|
557
566
|
fillRule: "evenodd",
|
|
558
567
|
d: "M9 5v2H3V5z"
|
|
559
568
|
})));
|
|
560
569
|
};
|
|
561
|
-
var ForwardRef$
|
|
570
|
+
var ForwardRef$s = /*#__PURE__*/React.forwardRef(SvgPartlySelect12);
|
|
562
571
|
|
|
563
|
-
var _path$
|
|
564
|
-
function _extends$
|
|
572
|
+
var _path$p;
|
|
573
|
+
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); }
|
|
565
574
|
var SvgPartlySelect18 = function SvgPartlySelect18(props, ref) {
|
|
566
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
575
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$r({
|
|
567
576
|
width: 18,
|
|
568
577
|
height: 18,
|
|
569
578
|
viewBox: "0 0 18 18",
|
|
570
579
|
xmlns: "http://www.w3.org/2000/svg",
|
|
571
580
|
ref: ref
|
|
572
|
-
}, props), _path$
|
|
581
|
+
}, props), _path$p || (_path$p = /*#__PURE__*/React__namespace.createElement("path", {
|
|
573
582
|
fillRule: "evenodd",
|
|
574
583
|
d: "M14 8v2H4V8z"
|
|
575
584
|
})));
|
|
576
585
|
};
|
|
577
|
-
var ForwardRef$
|
|
586
|
+
var ForwardRef$r = /*#__PURE__*/React.forwardRef(SvgPartlySelect18);
|
|
587
|
+
|
|
588
|
+
var css$E = {"root":"Checkbox_root__-oMf6","size-18":"Checkbox_size-18__BzbEk","size-12":"Checkbox_size-12__ASr3R","mode-cell":"Checkbox_mode-cell__qVdJV","size18":"Checkbox_size-18__BzbEk","size12":"Checkbox_size-12__ASr3R","modeCell":"Checkbox_mode-cell__qVdJV"};
|
|
578
589
|
|
|
579
590
|
function applyCheckboxMods(mods) {
|
|
580
591
|
return [
|
|
581
|
-
|
|
582
|
-
css$
|
|
583
|
-
css$
|
|
592
|
+
css$E.root,
|
|
593
|
+
css$E['size-' + (mods.size || '18')],
|
|
594
|
+
css$E['mode-' + (mods.mode || 'form')],
|
|
584
595
|
];
|
|
585
596
|
}
|
|
586
|
-
const
|
|
587
|
-
icon: (props.size === '12') ? ForwardRef$
|
|
588
|
-
indeterminateIcon: (props.size === '12') ? ForwardRef$
|
|
589
|
-
})
|
|
597
|
+
const applyUUICheckboxProps = (props) => ({
|
|
598
|
+
icon: (props.size === '12') ? ForwardRef$u : ForwardRef$t,
|
|
599
|
+
indeterminateIcon: (props.size === '12') ? ForwardRef$s : ForwardRef$r,
|
|
600
|
+
});
|
|
601
|
+
const Checkbox = uuiCore.withMods(uuiComponents.Checkbox, applyCheckboxMods, applyUUICheckboxProps);
|
|
590
602
|
|
|
591
|
-
var css$
|
|
603
|
+
var css$D = {"root":"RadioInput_root__wxJgt","size-18":"RadioInput_size-18__csI3z","size-12":"RadioInput_size-12__2lBQH","size18":"RadioInput_size-18__csI3z","size12":"RadioInput_size-12__2lBQH"};
|
|
592
604
|
|
|
593
605
|
var _circle;
|
|
594
|
-
function _extends$
|
|
606
|
+
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); }
|
|
595
607
|
var SvgRadioPoint = function SvgRadioPoint(props, ref) {
|
|
596
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
608
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
|
|
597
609
|
width: 18,
|
|
598
610
|
height: 18,
|
|
599
611
|
viewBox: "0 0 18 18",
|
|
@@ -605,121 +617,131 @@ var SvgRadioPoint = function SvgRadioPoint(props, ref) {
|
|
|
605
617
|
r: 6
|
|
606
618
|
})));
|
|
607
619
|
};
|
|
608
|
-
var ForwardRef$
|
|
620
|
+
var ForwardRef$q = /*#__PURE__*/React.forwardRef(SvgRadioPoint);
|
|
609
621
|
|
|
610
622
|
function applyRadioInputMods(mods) {
|
|
611
623
|
return [
|
|
612
|
-
|
|
613
|
-
css$
|
|
614
|
-
css$w['size-' + (mods.size || '18')],
|
|
624
|
+
css$D.root,
|
|
625
|
+
css$D['size-' + (mods.size || '18')],
|
|
615
626
|
];
|
|
616
627
|
}
|
|
617
|
-
const RadioInput = uuiCore.withMods(uuiComponents.RadioInput, applyRadioInputMods, () => ({ icon: ForwardRef$
|
|
628
|
+
const RadioInput = uuiCore.withMods(uuiComponents.RadioInput, applyRadioInputMods, () => ({ icon: ForwardRef$q }));
|
|
618
629
|
|
|
619
|
-
var css$
|
|
630
|
+
var css$C = {"root":"Switch_root__q-6Iy","size-12":"Switch_size-12__7-pqh","size-18":"Switch_size-18__l3E-E","size-24":"Switch_size-24__DmaSh","size12":"Switch_size-12__7-pqh","size18":"Switch_size-18__l3E-E","size24":"Switch_size-24__DmaSh"};
|
|
620
631
|
|
|
621
632
|
function applySwitchMods(mods) {
|
|
622
633
|
return [
|
|
623
634
|
'switch-vars',
|
|
624
|
-
css$
|
|
625
|
-
css$
|
|
635
|
+
css$C.root,
|
|
636
|
+
css$C['size-' + (mods.size || '18')],
|
|
626
637
|
];
|
|
627
638
|
}
|
|
628
639
|
const Switch = uuiCore.withMods(uuiComponents.Switch, applySwitchMods);
|
|
629
640
|
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
+
/******************************************************************************
|
|
642
|
+
Copyright (c) Microsoft Corporation.
|
|
643
|
+
|
|
644
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
645
|
+
purpose with or without fee is hereby granted.
|
|
646
|
+
|
|
647
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
648
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
649
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
650
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
651
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
652
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
653
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
654
|
+
***************************************************************************** */
|
|
655
|
+
|
|
656
|
+
function __rest(s, e) {
|
|
657
|
+
var t = {};
|
|
658
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
659
|
+
t[p] = s[p];
|
|
660
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
661
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
662
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
663
|
+
t[p[i]] = s[p[i]];
|
|
664
|
+
}
|
|
665
|
+
return t;
|
|
666
|
+
}
|
|
641
667
|
|
|
642
|
-
var
|
|
668
|
+
var textInputCss = {"root":"TextInput_root__UKzkT","mode-form":"TextInput_mode-form__JsK1y","mode-cell":"TextInput_mode-cell__H2C-f","size-24":"TextInput_size-24__buGZm","size-30":"TextInput_size-30__G0e43","size-36":"TextInput_size-36__bOehk","size-42":"TextInput_size-42__5Gdbv","size-48":"TextInput_size-48__Eb1Xy","modeForm":"TextInput_mode-form__JsK1y","modeCell":"TextInput_mode-cell__H2C-f","size24":"TextInput_size-24__buGZm","size30":"TextInput_size-30__G0e43","size36":"TextInput_size-36__bOehk","size42":"TextInput_size-42__5Gdbv","size48":"TextInput_size-48__Eb1Xy"};
|
|
643
669
|
|
|
644
|
-
const defaultSize$
|
|
645
|
-
const defaultMode$
|
|
670
|
+
const defaultSize$7 = '36';
|
|
671
|
+
const defaultMode$4 = exports.EditMode.FORM;
|
|
646
672
|
function applyTextInputMods(mods) {
|
|
647
673
|
return [
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
css$u['mode-' + (mods.mode || defaultMode$1)],
|
|
674
|
+
textInputCss.root,
|
|
675
|
+
textInputCss['size-' + (mods.size || defaultSize$7)],
|
|
676
|
+
textInputCss['mode-' + (mods.mode || defaultMode$4)],
|
|
652
677
|
];
|
|
653
678
|
}
|
|
654
679
|
const TextInput = uuiCore.withMods(uuiComponents.TextInput, applyTextInputMods, (props) => ({
|
|
655
|
-
acceptIcon: systemIcons[props.size || defaultSize$
|
|
656
|
-
cancelIcon: systemIcons[props.size || defaultSize$
|
|
657
|
-
dropdownIcon: systemIcons[props.size || defaultSize$
|
|
680
|
+
acceptIcon: systemIcons[props.size || defaultSize$7].accept,
|
|
681
|
+
cancelIcon: systemIcons[props.size || defaultSize$7].clear,
|
|
682
|
+
dropdownIcon: systemIcons[props.size || defaultSize$7].foldingArrow,
|
|
658
683
|
}));
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
}
|
|
666
|
-
}
|
|
684
|
+
const SearchInput = React__namespace.default.forwardRef((props, ref) => {
|
|
685
|
+
// analytics events are sending in IEditableDebouncer, so we need to avoid sending events in TextInput
|
|
686
|
+
const textInputProps = __rest(props, []);
|
|
687
|
+
delete textInputProps.getValueChangeAnalyticsEvent;
|
|
688
|
+
return (React__namespace.default.createElement(uuiCore.IEditableDebouncer, Object.assign({}, props, { render: iEditable => (React__namespace.default.createElement(TextInput, Object.assign({ icon: systemIcons[props.size || defaultSize$7].search, onCancel: !!props.value ? (() => iEditable.onValueChange('')) : undefined, type: "search", inputMode: "search", ref: ref }, textInputProps, iEditable))) })));
|
|
689
|
+
});
|
|
667
690
|
|
|
668
|
-
var css$
|
|
691
|
+
var css$B = {"root":"Accordion_root__fTEyW","mode-block":"Accordion_mode-block__WJ0h9","mode-inline":"Accordion_mode-inline__2zs0-","padding-0":"Accordion_padding-0__GQG7C","padding-6":"Accordion_padding-6__0FFj5","padding-12":"Accordion_padding-12__Bl9rW","padding-18":"Accordion_padding-18__XQdL-","modeBlock":"Accordion_mode-block__WJ0h9","modeInline":"Accordion_mode-inline__2zs0-","padding0":"Accordion_padding-0__GQG7C","padding6":"Accordion_padding-6__0FFj5","padding12":"Accordion_padding-12__Bl9rW","padding18":"Accordion_padding-18__XQdL-"};
|
|
669
692
|
|
|
670
693
|
function applyAccordionMods(mods) {
|
|
671
694
|
return [
|
|
672
695
|
'accordion-vars',
|
|
673
|
-
css$
|
|
674
|
-
css$
|
|
675
|
-
mods.padding && css$
|
|
696
|
+
css$B.root,
|
|
697
|
+
css$B['mode-' + (mods.mode || 'block')],
|
|
698
|
+
mods.padding && css$B['padding-' + mods.padding],
|
|
676
699
|
];
|
|
677
700
|
}
|
|
678
701
|
const Accordion = uuiCore.withMods(uuiComponents.Accordion, applyAccordionMods, (mods) => ({
|
|
679
702
|
dropdownIcon: mods.dropdownIcon !== null && systemIcons[mods.mode === 'block' ? '60' : '30'].foldingArrow,
|
|
680
703
|
}));
|
|
681
704
|
|
|
682
|
-
var css$
|
|
705
|
+
var css$A = {"root":"ControlGroup_root__wOZ9-"};
|
|
683
706
|
|
|
684
|
-
const ControlGroup = uuiCore.withMods(uuiComponents.ControlGroup, () => [css$
|
|
707
|
+
const ControlGroup = uuiCore.withMods(uuiComponents.ControlGroup, () => [css$A.root]);
|
|
685
708
|
|
|
686
|
-
var css$
|
|
709
|
+
var css$z = {"root":"FlexRow_root__8pevZ","top-shadow":"FlexRow_top-shadow__yLJfa","size-24":"FlexRow_size-24__UC-Ra","size-30":"FlexRow_size-30__KKsZ5","size-36":"FlexRow_size-36__oVCZp","size-42":"FlexRow_size-42__n5Pxh","size-48":"FlexRow_size-48__N-bVM","padding-6":"FlexRow_padding-6__TyXUB","padding-12":"FlexRow_padding-12__NiZVt","padding-18":"FlexRow_padding-18__f-DJ9","padding-24":"FlexRow_padding-24__aVQje","margin-24":"FlexRow_margin-24__W8cmr","margin-12":"FlexRow_margin-12__Tt04l","vPadding-12":"FlexRow_vPadding-12__f3sn6","vPadding-18":"FlexRow_vPadding-18__7Ljl4","vPadding-24":"FlexRow_vPadding-24__nJLBC","vPadding-36":"FlexRow_vPadding-36__7E6EY","vPadding-48":"FlexRow_vPadding-48__zzaPF","spacing-6":"FlexRow_spacing-6__l7a8O","spacing-12":"FlexRow_spacing-12__8ToPe","spacing-18":"FlexRow_spacing-18__QdC3L","border-bottom":"FlexRow_border-bottom__5L1Xk","topShadow":"FlexRow_top-shadow__yLJfa","size24":"FlexRow_size-24__UC-Ra","size30":"FlexRow_size-30__KKsZ5","size36":"FlexRow_size-36__oVCZp","size42":"FlexRow_size-42__n5Pxh","size48":"FlexRow_size-48__N-bVM","padding6":"FlexRow_padding-6__TyXUB","padding12":"FlexRow_padding-12__NiZVt","padding18":"FlexRow_padding-18__f-DJ9","padding24":"FlexRow_padding-24__aVQje","margin24":"FlexRow_margin-24__W8cmr","margin12":"FlexRow_margin-12__Tt04l","vPadding12":"FlexRow_vPadding-12__f3sn6","vPadding18":"FlexRow_vPadding-18__7Ljl4","vPadding24":"FlexRow_vPadding-24__nJLBC","vPadding36":"FlexRow_vPadding-36__7E6EY","vPadding48":"FlexRow_vPadding-48__zzaPF","spacing6":"FlexRow_spacing-6__l7a8O","spacing12":"FlexRow_spacing-12__8ToPe","spacing18":"FlexRow_spacing-18__QdC3L","borderBottom":"FlexRow_border-bottom__5L1Xk"};
|
|
687
710
|
|
|
688
711
|
const FlexCell = uuiCore.withMods(uuiComponents.FlexCell, props => [
|
|
689
|
-
css$
|
|
712
|
+
css$z.flexCell,
|
|
690
713
|
]);
|
|
691
714
|
|
|
692
715
|
const FlexRow = uuiCore.withMods(uuiComponents.FlexRow, props => {
|
|
693
716
|
return [
|
|
694
|
-
css$
|
|
695
|
-
props.size !== null && css$
|
|
696
|
-
props.padding && css$
|
|
697
|
-
props.vPadding && css$
|
|
698
|
-
props.margin && css$
|
|
699
|
-
props.topShadow && css$
|
|
700
|
-
props.borderBottom && css$
|
|
701
|
-
props.spacing && css$
|
|
717
|
+
css$z.root,
|
|
718
|
+
props.size !== null && css$z['size-' + (props.size || '36')],
|
|
719
|
+
props.padding && css$z['padding-' + props.padding],
|
|
720
|
+
props.vPadding && css$z['vPadding-' + props.vPadding],
|
|
721
|
+
props.margin && css$z['margin-' + props.margin],
|
|
722
|
+
props.topShadow && css$z.topShadow,
|
|
723
|
+
props.borderBottom && css$z['border-bottom'],
|
|
724
|
+
props.spacing && css$z['spacing-' + props.spacing],
|
|
702
725
|
];
|
|
703
726
|
});
|
|
704
727
|
|
|
705
728
|
const FlexSpacer = uuiComponents.FlexSpacer;
|
|
706
729
|
|
|
707
|
-
var css$
|
|
730
|
+
var css$y = {"root":"Panel_root__Ue9u5","margin-24":"Panel_margin-24__EZfwq","padding-12":"Panel_padding-12__zmnQV","padding-24":"Panel_padding-24__mOtka","shadow":"Panel_shadow__lMI9N","margin24":"Panel_margin-24__EZfwq","padding12":"Panel_padding-12__zmnQV","padding24":"Panel_padding-24__mOtka"};
|
|
708
731
|
|
|
709
732
|
const Panel = uuiCore.withMods(uuiComponents.VPanel, props => [
|
|
710
|
-
'panel
|
|
711
|
-
css$
|
|
712
|
-
props.shadow && css$
|
|
713
|
-
props.
|
|
714
|
-
props.margin && css$q['margin-' + props.margin],
|
|
733
|
+
'uui-panel',
|
|
734
|
+
css$y.root,
|
|
735
|
+
props.shadow && css$y.shadow,
|
|
736
|
+
props.margin && css$y['margin-' + props.margin],
|
|
715
737
|
]);
|
|
716
738
|
|
|
717
|
-
var css$
|
|
739
|
+
var css$x = {"root":"IconContainer_root__yjHAs"};
|
|
718
740
|
|
|
719
741
|
function applyIconContainerMods(mods) {
|
|
720
742
|
return [
|
|
721
743
|
`icon-container-color-${mods.color || 'default'}`,
|
|
722
|
-
css$
|
|
744
|
+
css$x.root,
|
|
723
745
|
];
|
|
724
746
|
}
|
|
725
747
|
const IconContainer = uuiCore.withMods(uuiComponents.IconContainer, applyIconContainerMods, () => ({ tabIndex: 0 }));
|
|
@@ -730,27 +752,28 @@ class Dropdown extends React__namespace.Component {
|
|
|
730
752
|
}
|
|
731
753
|
}
|
|
732
754
|
|
|
733
|
-
var css$
|
|
755
|
+
var css$w = {"root":"DropdownContainer_root__0tHS6"};
|
|
734
756
|
|
|
735
757
|
function applyDropdownContainerMods(mods) {
|
|
736
758
|
return [
|
|
737
759
|
'dropdown-container-vars',
|
|
738
|
-
css$
|
|
760
|
+
css$w.root,
|
|
739
761
|
];
|
|
740
762
|
}
|
|
741
763
|
const DropdownContainer = uuiCore.withMods(uuiComponents.DropdownContainer, applyDropdownContainerMods);
|
|
742
764
|
|
|
743
|
-
var css$
|
|
765
|
+
var css$v = {"menuRoot":"DropdownMenu_menuRoot__gRW4S","bodyRoot":"DropdownMenu_bodyRoot__hAgqI","submenuRootItem":"DropdownMenu_submenuRootItem__52Bxy","iconAfter":"DropdownMenu_iconAfter__Hbijr","iconCheck":"DropdownMenu_iconCheck__TtmI6","splitterRoot":"DropdownMenu_splitterRoot__mJGU2","splitter":"DropdownMenu_splitter__7AuFo","headerRoot":"DropdownMenu_headerRoot__iEVUM","itemRoot":"DropdownMenu_itemRoot__mBMPU","icon":"DropdownMenu_icon__YE2-L","link":"DropdownMenu_link__pgNjs"};
|
|
744
766
|
|
|
745
767
|
const icons = systemIcons['36'];
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
768
|
+
exports.IDropdownControlKeys = void 0;
|
|
769
|
+
(function (IDropdownControlKeys) {
|
|
770
|
+
IDropdownControlKeys["ENTER"] = "Enter";
|
|
771
|
+
IDropdownControlKeys["ESCAPE"] = "Escape";
|
|
772
|
+
IDropdownControlKeys["LEFT_ARROW"] = "ArrowLeft";
|
|
773
|
+
IDropdownControlKeys["RIGHT_ARROW"] = "ArrowRight";
|
|
774
|
+
IDropdownControlKeys["UP_ARROW"] = "ArrowUp";
|
|
775
|
+
IDropdownControlKeys["DOWN_ARROW"] = "ArrowDown";
|
|
776
|
+
})(exports.IDropdownControlKeys || (exports.IDropdownControlKeys = {}));
|
|
754
777
|
const DropdownMenuContainer = (props) => {
|
|
755
778
|
const menuRef = React.useRef(null);
|
|
756
779
|
const [currentlyFocused, setFocused] = React.useState(-1);
|
|
@@ -768,23 +791,23 @@ const DropdownMenuContainer = (props) => {
|
|
|
768
791
|
const handleArrowKeys = (e) => {
|
|
769
792
|
e.stopPropagation();
|
|
770
793
|
const lastMenuItemsIndex = menuItems.length - 1;
|
|
771
|
-
if (e.key ===
|
|
794
|
+
if (e.key === exports.IDropdownControlKeys.UP_ARROW) {
|
|
772
795
|
changeFocus(currentlyFocused > 0 ? currentlyFocused - 1 : lastMenuItemsIndex);
|
|
773
796
|
}
|
|
774
|
-
else if (e.key ===
|
|
797
|
+
else if (e.key === exports.IDropdownControlKeys.DOWN_ARROW) {
|
|
775
798
|
changeFocus(currentlyFocused < lastMenuItemsIndex ? currentlyFocused + 1 : 0);
|
|
776
799
|
}
|
|
777
800
|
else if (e.key === props.closeOnKey && props.onClose) {
|
|
778
801
|
props.onClose();
|
|
779
802
|
}
|
|
780
803
|
};
|
|
781
|
-
return (React__namespace.default.createElement(FocusLock__default.default, { as: "menu", className: css$
|
|
804
|
+
return (React__namespace.default.createElement(FocusLock__default.default, { as: "menu", className: css$v.menuRoot, returnFocus: true, autoFocus: false, ref: menuRef, lockProps: { onKeyDown: handleArrowKeys, tabIndex: -1 } },
|
|
782
805
|
React__namespace.default.createElement(uuiComponents.DropdownContainer, Object.assign({}, props, { rawProps: { tabIndex: -1 } }))));
|
|
783
806
|
};
|
|
784
|
-
const DropdownMenuBody = uuiCore.withMods(DropdownMenuContainer, () => [css$
|
|
785
|
-
const DropdownMenuButton = (props) => {
|
|
807
|
+
const DropdownMenuBody = uuiCore.withMods(DropdownMenuContainer, () => [css$v.bodyRoot], ({ style }) => ({ style }));
|
|
808
|
+
const DropdownMenuButton = React__namespace.default.forwardRef((props, ref) => {
|
|
786
809
|
const context = React.useContext(uuiCore.UuiContext);
|
|
787
|
-
const { icon, iconPosition, caption, isDisabled, isSelected, link, href, onClick, toggleDropdownOpening, isDropdown, target, } = props;
|
|
810
|
+
const { icon, iconPosition, onIconClick, caption, isDisabled, isSelected, isActive, link, href, onClick, toggleDropdownOpening, isDropdown, isOpen, target, } = props;
|
|
788
811
|
const handleClick = (event) => {
|
|
789
812
|
if (isDisabled || !onClick)
|
|
790
813
|
return;
|
|
@@ -792,39 +815,44 @@ const DropdownMenuButton = (props) => {
|
|
|
792
815
|
context.uuiAnalytics.sendEvent(props.clickAnalyticsEvent);
|
|
793
816
|
};
|
|
794
817
|
const handleOpenDropdown = (event) => {
|
|
795
|
-
if (event.key ===
|
|
818
|
+
if (event.key === exports.IDropdownControlKeys.RIGHT_ARROW && isDropdown) {
|
|
796
819
|
toggleDropdownOpening(true);
|
|
797
820
|
}
|
|
798
|
-
else if (event.key ===
|
|
821
|
+
else if (event.key === exports.IDropdownControlKeys.ENTER && onClick) {
|
|
799
822
|
onClick(event);
|
|
800
823
|
}
|
|
801
824
|
};
|
|
802
825
|
const getMenuButtonContent = () => {
|
|
803
826
|
const isIconBefore = Boolean(icon && iconPosition !== "right");
|
|
804
827
|
const isIconAfter = Boolean(icon && iconPosition === "right");
|
|
805
|
-
const iconElement = React__namespace.default.createElement(
|
|
828
|
+
const iconElement = React__namespace.default.createElement(IconButton, { icon: icon, color: isActive ? 'info' : 'default', onClick: onIconClick, cx: uuiCore.cx(css$v.icon, iconPosition === "right" ? css$v.iconAfter : css$v.iconBefore) });
|
|
806
829
|
return React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
807
830
|
isIconBefore && iconElement,
|
|
808
|
-
React__namespace.default.createElement(uuiComponents.Text, { cx: css$
|
|
831
|
+
React__namespace.default.createElement(uuiComponents.Text, { cx: css$v.caption }, caption),
|
|
809
832
|
isIconAfter && React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
810
833
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
811
834
|
iconElement));
|
|
812
835
|
};
|
|
813
836
|
const isAnchor = Boolean(link || href);
|
|
814
|
-
const itemClassNames = uuiCore.cx(props.cx, css$
|
|
815
|
-
return isAnchor ? (React__namespace.default.createElement(uuiComponents.Anchor, { cx: uuiCore.cx(css$
|
|
837
|
+
const itemClassNames = uuiCore.cx(props.cx, css$v.itemRoot, isDisabled && uuiCore.uuiMod.disabled, isActive && uuiCore.uuiMod.active, isOpen && uuiCore.uuiMod.opened);
|
|
838
|
+
return isAnchor ? (React__namespace.default.createElement(uuiComponents.Anchor, { cx: uuiCore.cx(css$v.link, itemClassNames), link: link, href: href, rawProps: { role: 'menuitem', tabIndex: isDisabled ? -1 : 0 }, onClick: handleClick, isDisabled: isDisabled, forwardedRef: ref, target: target }, getMenuButtonContent())) : (React__namespace.default.createElement(uuiComponents.FlexRow, { rawProps: {
|
|
816
839
|
tabIndex: isDisabled ? -1 : 0,
|
|
817
840
|
role: 'menuitem',
|
|
818
841
|
onKeyDown: isDisabled ? null : handleOpenDropdown,
|
|
819
|
-
}, cx: itemClassNames, onClick: handleClick },
|
|
820
|
-
|
|
842
|
+
}, cx: itemClassNames, onClick: handleClick, ref: ref },
|
|
843
|
+
getMenuButtonContent(),
|
|
844
|
+
isSelected && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icons.accept, cx: css$v.selectedCheckmark })));
|
|
845
|
+
});
|
|
821
846
|
DropdownMenuButton.displayName = 'DropdownMenuButton';
|
|
822
|
-
const DropdownMenuSplitter = (props) => (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$
|
|
823
|
-
React__namespace.default.createElement("hr", { className: css$
|
|
824
|
-
const DropdownMenuHeader = (props) => (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$
|
|
825
|
-
React__namespace.default.createElement("span", { className: css$
|
|
847
|
+
const DropdownMenuSplitter = (props) => (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$v.splitterRoot) },
|
|
848
|
+
React__namespace.default.createElement("hr", { className: css$v.splitter })));
|
|
849
|
+
const DropdownMenuHeader = (props) => (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$v.headerRoot) },
|
|
850
|
+
React__namespace.default.createElement("span", { className: css$v.header }, props.caption)));
|
|
826
851
|
const DropdownSubMenu = (props) => {
|
|
827
|
-
return (React__namespace.default.createElement(uuiComponents.Dropdown, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", placement: "right-start", renderBody: (
|
|
852
|
+
return (React__namespace.default.createElement(uuiComponents.Dropdown, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", placement: "right-start", renderBody: (dropdownProps) => (React__namespace.default.createElement(DropdownMenuBody, Object.assign({ closeOnKey: exports.IDropdownControlKeys.LEFT_ARROW }, props, dropdownProps))), renderTarget: (_a) => {
|
|
853
|
+
var { toggleDropdownOpening } = _a, targetProps = __rest(_a, ["toggleDropdownOpening"]);
|
|
854
|
+
return (React__namespace.default.createElement(DropdownMenuButton, Object.assign({ cx: uuiCore.cx(css$v.submenuRootItem), icon: icons.foldingArrow, iconPosition: "right", isDropdown: true, toggleDropdownOpening: toggleDropdownOpening }, props, targetProps)));
|
|
855
|
+
} }));
|
|
828
856
|
};
|
|
829
857
|
const DropdownMenuSwitchButton = (props) => {
|
|
830
858
|
const context = React.useContext(uuiCore.UuiContext);
|
|
@@ -836,20 +864,20 @@ const DropdownMenuSwitchButton = (props) => {
|
|
|
836
864
|
context.uuiAnalytics.sendEvent(props.clickAnalyticsEvent);
|
|
837
865
|
};
|
|
838
866
|
const handleKeySelect = (e) => {
|
|
839
|
-
if (e.key ===
|
|
867
|
+
if (e.key === exports.IDropdownControlKeys.ENTER) {
|
|
840
868
|
onHandleValueChange(!isSelected);
|
|
841
869
|
}
|
|
842
870
|
};
|
|
843
|
-
return (React__namespace.default.createElement(uuiComponents.FlexRow, { cx: uuiCore.cx(props.cx, css$
|
|
844
|
-
icon && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icon, cx: css$
|
|
845
|
-
React__namespace.default.createElement(uuiComponents.Text, { cx: css$
|
|
871
|
+
return (React__namespace.default.createElement(uuiComponents.FlexRow, { cx: uuiCore.cx(props.cx, css$v.itemRoot, isDisabled && uuiCore.uuiMod.disabled), onClick: () => onHandleValueChange(!isSelected), rawProps: { role: 'menuitem', onKeyDown: handleKeySelect, tabIndex: isDisabled ? -1 : 0 } },
|
|
872
|
+
icon && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icon, cx: css$v.iconBefore }),
|
|
873
|
+
React__namespace.default.createElement(uuiComponents.Text, { cx: css$v.caption }, caption),
|
|
846
874
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
847
875
|
React__namespace.default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
848
876
|
};
|
|
849
877
|
|
|
850
|
-
var css$
|
|
878
|
+
var css$u = {"root":"Text_root__iUAW9"};
|
|
851
879
|
|
|
852
|
-
var css$
|
|
880
|
+
var css$t = {"line-height-12":"text-layout_line-height-12__-fXrz","line-height-18":"text-layout_line-height-18__kfeYe","line-height-24":"text-layout_line-height-24__VmJFi","line-height-30":"text-layout_line-height-30__C4k89","font-size-10":"text-layout_font-size-10__U-DE-","font-size-12":"text-layout_font-size-12__1WdLm","font-size-14":"text-layout_font-size-14__5I7px","font-size-16":"text-layout_font-size-16__loUuU","font-size-18":"text-layout_font-size-18__PvhrF","font-size-24":"text-layout_font-size-24__JsYUV","v-padding-2":"text-layout_v-padding-2__-bGuG","v-padding-3":"text-layout_v-padding-3__ImU4D","v-padding-5":"text-layout_v-padding-5__el2DC","v-padding-6":"text-layout_v-padding-6__4QshS","v-padding-8":"text-layout_v-padding-8__CKQZ6","v-padding-9":"text-layout_v-padding-9__8cSJ-","v-padding-11":"text-layout_v-padding-11__kJwOK","v-padding-12":"text-layout_v-padding-12__J6PjS","v-padding-14":"text-layout_v-padding-14__TgJs7","v-padding-15":"text-layout_v-padding-15__kVl-D","v-padding-17":"text-layout_v-padding-17__065AA","v-padding-18":"text-layout_v-padding-18__hxDYP","v-padding-23":"text-layout_v-padding-23__44pE2","v-padding-24":"text-layout_v-padding-24__gxRAs","lineHeight12":"text-layout_line-height-12__-fXrz","lineHeight18":"text-layout_line-height-18__kfeYe","lineHeight24":"text-layout_line-height-24__VmJFi","lineHeight30":"text-layout_line-height-30__C4k89","fontSize10":"text-layout_font-size-10__U-DE-","fontSize12":"text-layout_font-size-12__1WdLm","fontSize14":"text-layout_font-size-14__5I7px","fontSize16":"text-layout_font-size-16__loUuU","fontSize18":"text-layout_font-size-18__PvhrF","fontSize24":"text-layout_font-size-24__JsYUV","vPadding2":"text-layout_v-padding-2__-bGuG","vPadding3":"text-layout_v-padding-3__ImU4D","vPadding5":"text-layout_v-padding-5__el2DC","vPadding6":"text-layout_v-padding-6__4QshS","vPadding8":"text-layout_v-padding-8__CKQZ6","vPadding9":"text-layout_v-padding-9__8cSJ-","vPadding11":"text-layout_v-padding-11__kJwOK","vPadding12":"text-layout_v-padding-12__J6PjS","vPadding14":"text-layout_v-padding-14__TgJs7","vPadding15":"text-layout_v-padding-15__kVl-D","vPadding17":"text-layout_v-padding-17__065AA","vPadding18":"text-layout_v-padding-18__hxDYP","vPadding23":"text-layout_v-padding-23__44pE2","vPadding24":"text-layout_v-padding-24__gxRAs"};
|
|
853
881
|
|
|
854
882
|
const defaultTextSettings = {
|
|
855
883
|
18: { lineHeight: 12, fontSize: 10 },
|
|
@@ -863,8 +891,8 @@ const defaultTextSettings = {
|
|
|
863
891
|
function getTextClasses(props, border) {
|
|
864
892
|
if (props.size === 'none') {
|
|
865
893
|
return [
|
|
866
|
-
css$
|
|
867
|
-
css$
|
|
894
|
+
css$t['line-height-' + props.lineHeight],
|
|
895
|
+
css$t['font-size-' + props.fontSize],
|
|
868
896
|
];
|
|
869
897
|
}
|
|
870
898
|
const setting = {
|
|
@@ -874,9 +902,9 @@ function getTextClasses(props, border) {
|
|
|
874
902
|
};
|
|
875
903
|
const vPadding = (+setting.size - +setting.lineHeight - (border ? 2 : 0)) / 2;
|
|
876
904
|
return [
|
|
877
|
-
css$
|
|
878
|
-
css$
|
|
879
|
-
css$
|
|
905
|
+
css$t['line-height-' + setting.lineHeight],
|
|
906
|
+
css$t['font-size-' + setting.fontSize],
|
|
907
|
+
css$t['v-padding-' + vPadding],
|
|
880
908
|
];
|
|
881
909
|
}
|
|
882
910
|
|
|
@@ -889,12 +917,12 @@ function applyTextMods(mods) {
|
|
|
889
917
|
return [
|
|
890
918
|
`font-${mods.font || 'regular'}`,
|
|
891
919
|
`text-color-${mods.color || 'primary'}`,
|
|
892
|
-
css$
|
|
920
|
+
css$u.root,
|
|
893
921
|
].concat(textClasses);
|
|
894
922
|
}
|
|
895
923
|
const Text = uuiCore.withMods(uuiComponents.Text, applyTextMods);
|
|
896
924
|
|
|
897
|
-
var css$
|
|
925
|
+
var css$s = {"container":"TextPlaceholder_container__Jn60D","loading-word":"TextPlaceholder_loading-word__22WpS","animated-loading":"TextPlaceholder_animated-loading__ao75r","skeleton_loading":"TextPlaceholder_skeleton_loading__NzV8h","loadingWord":"TextPlaceholder_loading-word__22WpS","animatedLoading":"TextPlaceholder_animated-loading__ao75r","skeletonLoading":"TextPlaceholder_skeleton_loading__NzV8h"};
|
|
898
926
|
|
|
899
927
|
const TextPlaceholder = (props) => {
|
|
900
928
|
const pattern = `0`;
|
|
@@ -906,37 +934,36 @@ const TextPlaceholder = (props) => {
|
|
|
906
934
|
}
|
|
907
935
|
return words;
|
|
908
936
|
}, [props.wordsCount]);
|
|
909
|
-
return (React__namespace.createElement("div", { "aria-busy": true, className: css$
|
|
937
|
+
return (React__namespace.createElement("div", { "aria-busy": true, className: css$s.container }, text.map((it, index) => (React__namespace.createElement("span", { key: index, className: cx__default.default([
|
|
910
938
|
'text-placeholder-vars',
|
|
911
|
-
css$
|
|
912
|
-
!props.isNotAnimated && css$
|
|
939
|
+
css$s.loadingWord,
|
|
940
|
+
!props.isNotAnimated && css$s.animatedLoading,
|
|
913
941
|
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
914
942
|
};
|
|
915
943
|
|
|
916
|
-
var _path$
|
|
917
|
-
function _extends$
|
|
944
|
+
var _path$o;
|
|
945
|
+
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); }
|
|
918
946
|
var SvgNavigationClose24$1 = function SvgNavigationClose24(props, ref) {
|
|
919
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
947
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
|
|
920
948
|
xmlns: "http://www.w3.org/2000/svg",
|
|
921
949
|
width: 24,
|
|
922
950
|
height: 24,
|
|
923
951
|
viewBox: "0 0 24 24",
|
|
924
952
|
ref: ref
|
|
925
|
-
}, props), _path$
|
|
953
|
+
}, props), _path$o || (_path$o = /*#__PURE__*/React__namespace.createElement("path", {
|
|
926
954
|
fillRule: "evenodd",
|
|
927
955
|
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"
|
|
928
956
|
})));
|
|
929
957
|
};
|
|
930
|
-
var ForwardRef$
|
|
958
|
+
var ForwardRef$p = /*#__PURE__*/React.forwardRef(SvgNavigationClose24$1);
|
|
931
959
|
|
|
932
|
-
var css$
|
|
960
|
+
var css$r = {"modal-blocker":"Modals_modal-blocker__nCAZ7","animateModalBlocker":"Modals_animateModalBlocker__S-4dL","blocker-overlay":"Modals_blocker-overlay__1uHVd","modal":"Modals_modal__m41wI","modal-footer":"Modals_modal-footer__gg-90","border-top":"Modals_border-top__cfzhv","modal-header":"Modals_modal-header__8aswP","modalBlocker":"Modals_modal-blocker__nCAZ7","blockerOverlay":"Modals_blocker-overlay__1uHVd","modalFooter":"Modals_modal-footer__gg-90","borderTop":"Modals_border-top__cfzhv","modalHeader":"Modals_modal-header__8aswP"};
|
|
933
961
|
|
|
934
962
|
const ModalBlocker = uuiCore.withMods(uuiComponents.ModalBlocker, mods => [
|
|
935
|
-
|
|
936
|
-
css$
|
|
937
|
-
mods.overlay && css$j['blocker-overlay'],
|
|
963
|
+
css$r.modalBlocker,
|
|
964
|
+
mods.overlay && css$r['blocker-overlay'],
|
|
938
965
|
]);
|
|
939
|
-
const ModalWindow = uuiCore.withMods(uuiComponents.ModalWindow, () => [
|
|
966
|
+
const ModalWindow = uuiCore.withMods(uuiComponents.ModalWindow, () => [css$r.modal], props => ({ rawProps: {
|
|
940
967
|
style: {
|
|
941
968
|
width: `${props.width || 480}px`,
|
|
942
969
|
height: props.height ? `${props.height}px` : '',
|
|
@@ -945,17 +972,17 @@ const ModalWindow = uuiCore.withMods(uuiComponents.ModalWindow, () => ['modals-v
|
|
|
945
972
|
}));
|
|
946
973
|
class ModalHeader extends React__namespace.Component {
|
|
947
974
|
render() {
|
|
948
|
-
return (React__namespace.createElement(FlexRow, { padding: this.props.padding || '24', vPadding: '12', borderBottom:
|
|
975
|
+
return (React__namespace.createElement(FlexRow, { padding: this.props.padding || '24', vPadding: '12', borderBottom: this.props.borderBottom, cx: [css$r.modalHeader, this.props.cx], spacing: '12', rawProps: this.props.rawProps },
|
|
949
976
|
this.props.title && React__namespace.createElement(Text, { size: '48', fontSize: '18', font: 'semibold' }, this.props.title),
|
|
950
977
|
this.props.children,
|
|
951
978
|
this.props.onClose && React__namespace.createElement(FlexSpacer, null),
|
|
952
979
|
this.props.onClose && React__namespace.createElement(FlexCell, { shrink: 0, width: 'auto' },
|
|
953
|
-
React__namespace.createElement(IconButton, { icon: ForwardRef$
|
|
980
|
+
React__namespace.createElement(IconButton, { icon: ForwardRef$p, onClick: this.props.onClose }))));
|
|
954
981
|
}
|
|
955
982
|
}
|
|
956
983
|
class ModalFooter extends React__namespace.Component {
|
|
957
984
|
render() {
|
|
958
|
-
return (React__namespace.createElement(FlexRow, { spacing: this.props.spacing || '12', cx: [
|
|
985
|
+
return (React__namespace.createElement(FlexRow, { spacing: this.props.spacing || '12', cx: [css$r.modalFooter, this.props.borderTop && css$r.borderTop, this.props.cx], padding: this.props.padding || '24', vPadding: this.props.vPadding || '24', rawProps: this.props.rawProps }, this.props.children));
|
|
959
986
|
}
|
|
960
987
|
}
|
|
961
988
|
|
|
@@ -963,6 +990,7 @@ const i18n = {
|
|
|
963
990
|
dataPickerBody: {
|
|
964
991
|
searchPlaceholder: 'Search',
|
|
965
992
|
noRecordsMessage: 'No records found',
|
|
993
|
+
noRecordsSubTitle: 'Check your spelling, or search for a different keyword',
|
|
966
994
|
},
|
|
967
995
|
pickerModal: {
|
|
968
996
|
headerTitle: 'Please select',
|
|
@@ -975,6 +1003,7 @@ const i18n = {
|
|
|
975
1003
|
pickerInput: {
|
|
976
1004
|
showOnlySelectedLabel: 'Show only selected',
|
|
977
1005
|
clearSelectionButton: 'CLEAR ALL',
|
|
1006
|
+
clearSelectionButtonSingle: 'CLEAR',
|
|
978
1007
|
selectAllButton: 'SELECT ALL',
|
|
979
1008
|
},
|
|
980
1009
|
notificationCard: {
|
|
@@ -996,101 +1025,139 @@ const i18n = {
|
|
|
996
1025
|
pickerPlaceholderTo: 'To:',
|
|
997
1026
|
},
|
|
998
1027
|
tables: {
|
|
1028
|
+
noResultsBlock: {
|
|
1029
|
+
title: 'No results found',
|
|
1030
|
+
message: 'We can’t find any item matching your request',
|
|
1031
|
+
},
|
|
999
1032
|
columnsConfigurationModal: {
|
|
1000
1033
|
applyButton: 'Apply',
|
|
1001
|
-
|
|
1002
|
-
|
|
1034
|
+
cancelButton: 'Cancel',
|
|
1035
|
+
selectAllButton: 'Select all',
|
|
1036
|
+
clearAllButton: 'Clear all',
|
|
1037
|
+
checkAllButton: 'Check All',
|
|
1038
|
+
uncheckAllButton: 'Uncheck All',
|
|
1003
1039
|
configureColumnsTitle: 'Configure columns',
|
|
1004
1040
|
resetToDefaultButton: 'Reset to Default',
|
|
1041
|
+
displayedSectionTitle: 'Displayed in table',
|
|
1042
|
+
hiddenSectionTitle: 'Hidden in table',
|
|
1043
|
+
searchPlaceholder: 'Search by column name',
|
|
1044
|
+
noResultsFound: {
|
|
1045
|
+
text: 'No results found',
|
|
1046
|
+
subText: 'We can’t find any item matching your request',
|
|
1047
|
+
},
|
|
1048
|
+
enableAtLeastOneColumnMessage: 'Please enable at least one column',
|
|
1049
|
+
pinColumnButton: "Pin column",
|
|
1050
|
+
unPinColumnButton: "Unpin column",
|
|
1051
|
+
lockedColumnPinButton: "You cannot unpin this column",
|
|
1005
1052
|
},
|
|
1006
1053
|
},
|
|
1007
1054
|
pickerFilterHeader: {
|
|
1008
1055
|
sortAscending: 'Sort Ascending',
|
|
1009
1056
|
sortDescending: 'Sort Descending',
|
|
1010
1057
|
},
|
|
1058
|
+
filterToolbar: {
|
|
1059
|
+
addCaption: 'Add filter',
|
|
1060
|
+
datePicker: {
|
|
1061
|
+
placeholder: 'Select date',
|
|
1062
|
+
removeCaption: 'REMOVE FILTER',
|
|
1063
|
+
clearCaption: 'CLEAR',
|
|
1064
|
+
},
|
|
1065
|
+
rangeDatePicker: {
|
|
1066
|
+
emptyPickerPlaceholder: 'Select period',
|
|
1067
|
+
emptyPlaceholderFrom: 'Select From',
|
|
1068
|
+
emptyPlaceholderTo: 'Select To',
|
|
1069
|
+
},
|
|
1070
|
+
pickerInput: {
|
|
1071
|
+
itemsPlaceholder: 'items',
|
|
1072
|
+
emptyValueCaption: 'ALL',
|
|
1073
|
+
},
|
|
1074
|
+
},
|
|
1075
|
+
presetPanel: {
|
|
1076
|
+
addCaption: 'Add Preset',
|
|
1077
|
+
},
|
|
1011
1078
|
};
|
|
1012
1079
|
|
|
1013
|
-
var _path$
|
|
1014
|
-
function _extends$
|
|
1080
|
+
var _path$n;
|
|
1081
|
+
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); }
|
|
1015
1082
|
var SvgNotificationCheckCircleFill24 = function SvgNotificationCheckCircleFill24(props, ref) {
|
|
1016
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1083
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
|
|
1017
1084
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1018
1085
|
width: 24,
|
|
1019
1086
|
height: 24,
|
|
1020
1087
|
viewBox: "0 0 24 24",
|
|
1021
1088
|
ref: ref
|
|
1022
|
-
}, props), _path$
|
|
1089
|
+
}, props), _path$n || (_path$n = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1023
1090
|
fillRule: "evenodd",
|
|
1024
1091
|
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"
|
|
1025
1092
|
})));
|
|
1026
1093
|
};
|
|
1027
|
-
var ForwardRef$
|
|
1094
|
+
var ForwardRef$o = /*#__PURE__*/React.forwardRef(SvgNotificationCheckCircleFill24);
|
|
1028
1095
|
|
|
1029
|
-
var _path$
|
|
1030
|
-
function _extends$
|
|
1096
|
+
var _path$m;
|
|
1097
|
+
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); }
|
|
1031
1098
|
var SvgNotificationWarningFill24 = function SvgNotificationWarningFill24(props, ref) {
|
|
1032
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1099
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
|
|
1033
1100
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1034
1101
|
width: 24,
|
|
1035
1102
|
height: 24,
|
|
1036
1103
|
viewBox: "0 0 24 24",
|
|
1037
1104
|
ref: ref
|
|
1038
|
-
}, props), _path$
|
|
1105
|
+
}, props), _path$m || (_path$m = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1039
1106
|
fillRule: "evenodd",
|
|
1040
1107
|
d: "M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"
|
|
1041
1108
|
})));
|
|
1042
1109
|
};
|
|
1043
|
-
var ForwardRef$
|
|
1110
|
+
var ForwardRef$n = /*#__PURE__*/React.forwardRef(SvgNotificationWarningFill24);
|
|
1044
1111
|
|
|
1045
|
-
var _path$
|
|
1046
|
-
function _extends$
|
|
1112
|
+
var _path$l;
|
|
1113
|
+
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); }
|
|
1047
1114
|
var SvgNotificationErrorFill24 = function SvgNotificationErrorFill24(props, ref) {
|
|
1048
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1115
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
|
|
1049
1116
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1050
1117
|
width: 24,
|
|
1051
1118
|
height: 24,
|
|
1052
1119
|
viewBox: "0 0 24 24",
|
|
1053
1120
|
ref: ref
|
|
1054
|
-
}, props), _path$
|
|
1121
|
+
}, props), _path$l || (_path$l = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1055
1122
|
fillRule: "evenodd",
|
|
1056
1123
|
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"
|
|
1057
1124
|
})));
|
|
1058
1125
|
};
|
|
1059
|
-
var ForwardRef$
|
|
1126
|
+
var ForwardRef$m = /*#__PURE__*/React.forwardRef(SvgNotificationErrorFill24);
|
|
1060
1127
|
|
|
1061
|
-
var _path$
|
|
1062
|
-
function _extends$
|
|
1128
|
+
var _path$k;
|
|
1129
|
+
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); }
|
|
1063
1130
|
var SvgNotificationHelpFill24 = function SvgNotificationHelpFill24(props, ref) {
|
|
1064
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1131
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
|
|
1065
1132
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1066
1133
|
width: 24,
|
|
1067
1134
|
height: 24,
|
|
1068
1135
|
viewBox: "0 0 24 24",
|
|
1069
1136
|
ref: ref
|
|
1070
|
-
}, props), _path$
|
|
1137
|
+
}, props), _path$k || (_path$k = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1071
1138
|
fillRule: "evenodd",
|
|
1072
1139
|
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"
|
|
1073
1140
|
})));
|
|
1074
1141
|
};
|
|
1075
|
-
var ForwardRef$
|
|
1142
|
+
var ForwardRef$l = /*#__PURE__*/React.forwardRef(SvgNotificationHelpFill24);
|
|
1076
1143
|
|
|
1077
|
-
var _path$
|
|
1078
|
-
function _extends$
|
|
1144
|
+
var _path$j;
|
|
1145
|
+
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); }
|
|
1079
1146
|
var SvgCross = function SvgCross(props, ref) {
|
|
1080
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1147
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
|
|
1081
1148
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1082
1149
|
width: 24,
|
|
1083
1150
|
height: 24,
|
|
1084
1151
|
viewBox: "0 0 24 24",
|
|
1085
1152
|
ref: ref
|
|
1086
|
-
}, props), _path$
|
|
1153
|
+
}, props), _path$j || (_path$j = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1087
1154
|
fillRule: "evenodd",
|
|
1088
1155
|
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"
|
|
1089
1156
|
})));
|
|
1090
1157
|
};
|
|
1091
|
-
var ForwardRef$
|
|
1158
|
+
var ForwardRef$k = /*#__PURE__*/React.forwardRef(SvgCross);
|
|
1092
1159
|
|
|
1093
|
-
var css$
|
|
1160
|
+
var css$q = {"root":"NotificationCard_root__HP4NM","icon-wrapper":"NotificationCard_icon-wrapper__FZUAl","notification-wrapper":"NotificationCard_notification-wrapper__L-YsE","action-wrapper":"NotificationCard_action-wrapper__MahuR","action-link":"NotificationCard_action-link__DXfp7","close-icon":"NotificationCard_close-icon__p0MvI","main-path":"NotificationCard_main-path__yWH2j","content":"NotificationCard_content__O4mCt","clear-button":"NotificationCard_clear-button__-RzMj","close-wrapper":"NotificationCard_close-wrapper__BVl8x","iconWrapper":"NotificationCard_icon-wrapper__FZUAl","notificationWrapper":"NotificationCard_notification-wrapper__L-YsE","actionWrapper":"NotificationCard_action-wrapper__MahuR","actionLink":"NotificationCard_action-link__DXfp7","closeIcon":"NotificationCard_close-icon__p0MvI","mainPath":"NotificationCard_main-path__yWH2j","clearButton":"NotificationCard_clear-button__-RzMj","closeWrapper":"NotificationCard_close-wrapper__BVl8x"};
|
|
1094
1161
|
|
|
1095
1162
|
class NotificationCard extends React__namespace.default.Component {
|
|
1096
1163
|
constructor() {
|
|
@@ -1108,75 +1175,201 @@ class NotificationCard extends React__namespace.default.Component {
|
|
|
1108
1175
|
(_b = this.notificationCardNode) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseleave', this.props.refreshTimer);
|
|
1109
1176
|
}
|
|
1110
1177
|
render() {
|
|
1111
|
-
return (React__namespace.default.createElement("div", { role: 'alert', className: cx__default.default(css$
|
|
1112
|
-
React__namespace.default.createElement("div", { className: css$
|
|
1113
|
-
this.props.icon && React__namespace.default.createElement("div", { className: css$
|
|
1114
|
-
React__namespace.default.createElement(uuiComponents.IconContainer, { icon: this.props.icon, cx: css$
|
|
1115
|
-
React__namespace.default.createElement("div", { className: css$
|
|
1178
|
+
return (React__namespace.default.createElement("div", { role: 'alert', className: cx__default.default(css$q.notificationWrapper, 'notification-card-vars', `notification-card-color-${this.props.color}`, css$q.root, this.props.cx), ref: (el) => this.notificationCardNode = el },
|
|
1179
|
+
React__namespace.default.createElement("div", { className: css$q.mainPath },
|
|
1180
|
+
this.props.icon && React__namespace.default.createElement("div", { className: css$q.iconWrapper },
|
|
1181
|
+
React__namespace.default.createElement(uuiComponents.IconContainer, { icon: this.props.icon, cx: css$q.actionIcon })),
|
|
1182
|
+
React__namespace.default.createElement("div", { className: css$q.content },
|
|
1116
1183
|
this.props.children,
|
|
1117
|
-
this.props.actions && React__namespace.default.createElement("div", { className: css$
|
|
1118
|
-
return React__namespace.default.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$
|
|
1184
|
+
this.props.actions && React__namespace.default.createElement("div", { className: css$q.actionWrapper }, this.props.actions.map((action) => {
|
|
1185
|
+
return React__namespace.default.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$q.actionLink, size: '36' });
|
|
1119
1186
|
}))),
|
|
1120
|
-
this.props.onClose && React__namespace.default.createElement("div", { className: css$
|
|
1121
|
-
React__namespace.default.createElement(IconButton, { icon: ForwardRef$
|
|
1187
|
+
this.props.onClose && React__namespace.default.createElement("div", { className: css$q.closeWrapper },
|
|
1188
|
+
React__namespace.default.createElement(IconButton, { icon: ForwardRef$k, color: 'default', onClick: this.props.onClose, cx: css$q.closeIcon })))));
|
|
1122
1189
|
}
|
|
1123
1190
|
}
|
|
1124
|
-
const WarningNotification = (props) => React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
1125
|
-
const SuccessNotification = (props) => React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
1126
|
-
const HintNotification = (props) => React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
1127
|
-
const ErrorNotification = (props) => React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
1191
|
+
const WarningNotification = (props) => React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$n, color: 'warning' }, props, { cx: cx__default.default(props.cx) }));
|
|
1192
|
+
const SuccessNotification = (props) => React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$o, color: 'success' }, props, { cx: cx__default.default(props.cx) }));
|
|
1193
|
+
const HintNotification = (props) => React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$l, color: 'info' }, props, { cx: cx__default.default(props.cx) }));
|
|
1194
|
+
const ErrorNotification = (props) => React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$m, color: 'error' }, props, { cx: cx__default.default(props.cx) }));
|
|
1128
1195
|
class ClearNotification extends React__namespace.default.Component {
|
|
1129
1196
|
render() {
|
|
1130
|
-
return React__namespace.default.createElement("div", { className: cx__default.default(css$
|
|
1197
|
+
return React__namespace.default.createElement("div", { className: cx__default.default(css$q.notificationWrapper, css$q.clearButton) },
|
|
1131
1198
|
React__namespace.default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => this.context.uuiNotifications.clearAll() }));
|
|
1132
1199
|
}
|
|
1133
1200
|
}
|
|
1134
1201
|
ClearNotification.contextType = uuiCore.UuiContext;
|
|
1135
1202
|
|
|
1136
|
-
var css$
|
|
1203
|
+
var css$p = {"root":"Tooltip_root__zZwnu"};
|
|
1137
1204
|
|
|
1138
1205
|
function applyTooltipMods(mods) {
|
|
1139
1206
|
return [
|
|
1140
|
-
|
|
1141
|
-
css$
|
|
1207
|
+
`tooltip-${mods.color}`,
|
|
1208
|
+
css$p.root,
|
|
1142
1209
|
];
|
|
1143
1210
|
}
|
|
1144
1211
|
const Tooltip = uuiCore.withMods(uuiComponents.Tooltip, applyTooltipMods);
|
|
1145
1212
|
|
|
1146
|
-
var css$
|
|
1213
|
+
var css$o = {"root":"LabeledInput_root__xDC2q","size-24":"LabeledInput_size-24__0LWBQ","size-30":"LabeledInput_size-30__KDnLe","size-36":"LabeledInput_size-36__4qHf7","size-42":"LabeledInput_size-42__zo6a7","size-48":"LabeledInput_size-48__3NqJt","size24":"LabeledInput_size-24__0LWBQ","size30":"LabeledInput_size-30__KDnLe","size36":"LabeledInput_size-36__4qHf7","size42":"LabeledInput_size-42__zo6a7","size48":"LabeledInput_size-48__3NqJt"};
|
|
1147
1214
|
|
|
1148
|
-
const defaultSize$
|
|
1215
|
+
const defaultSize$6 = '36';
|
|
1149
1216
|
function applyLabeledInputMods(mods) {
|
|
1150
1217
|
return [
|
|
1151
|
-
|
|
1152
|
-
css$
|
|
1153
|
-
css$g['size-' + (mods.size || defaultSize$4)],
|
|
1218
|
+
css$o.root,
|
|
1219
|
+
css$o['size-' + (mods.size || defaultSize$6)],
|
|
1154
1220
|
];
|
|
1155
1221
|
}
|
|
1156
1222
|
const LabeledInput = uuiCore.withMods(uuiComponents.LabeledInput, applyLabeledInputMods, (props) => ({
|
|
1157
1223
|
Tooltip,
|
|
1158
|
-
infoIcon: systemIcons[props.size || defaultSize$
|
|
1224
|
+
infoIcon: systemIcons[props.size || defaultSize$6].help,
|
|
1159
1225
|
}));
|
|
1160
1226
|
|
|
1161
|
-
var css$
|
|
1227
|
+
var css$n = {"root":"RadioGroup_root__uLWIn"};
|
|
1162
1228
|
|
|
1163
|
-
const RadioGroup = uuiCore.withMods(uuiComponents.RadioGroup, () => [css$
|
|
1229
|
+
const RadioGroup = uuiCore.withMods(uuiComponents.RadioGroup, () => [css$n.root], () => ({ RadioInput }));
|
|
1164
1230
|
|
|
1165
1231
|
function applyScrollBarsMods() {
|
|
1166
1232
|
return [
|
|
1167
|
-
'scroll-bars
|
|
1233
|
+
'uui-scroll-bars',
|
|
1234
|
+
'uui-shadow-top',
|
|
1235
|
+
'uui-shadow-bottom',
|
|
1168
1236
|
];
|
|
1169
1237
|
}
|
|
1170
1238
|
const ScrollBars = uuiCore.withMods(uuiComponents.ScrollBars, applyScrollBarsMods);
|
|
1171
1239
|
|
|
1172
|
-
|
|
1240
|
+
const VirtualList = uuiComponents.VirtualList;
|
|
1241
|
+
|
|
1242
|
+
function MultiSwitchComponent(props, ref) {
|
|
1243
|
+
return (React__namespace.createElement(ControlGroup, { ref: ref, rawProps: Object.assign(Object.assign({}, props.rawProps), { role: 'tablist' }) }, props.items.map((item, index) => (React__namespace.createElement(Button, Object.assign({}, props, item, { isDisabled: props.isDisabled, key: index + '-' + item.id, onClick: () => props.onValueChange(item.id), mode: props.value === item.id ? 'solid' : 'outline', color: props.color === 'secondary' && props.value === item.id ? 'primary' : props.color || 'primary', size: props.size, rawProps: { 'aria-current': props.value === item.id, role: 'tab' } }))))));
|
|
1244
|
+
}
|
|
1245
|
+
const MultiSwitch = React__namespace.forwardRef(MultiSwitchComponent);
|
|
1246
|
+
|
|
1247
|
+
var css$m = {"root":"NumericInput_root__vElno","size-24":"NumericInput_size-24__9pSyj","size-30":"NumericInput_size-30__kfXj0","size-36":"NumericInput_size-36__tYgRe","size-42":"NumericInput_size-42__RoV0p","size-48":"NumericInput_size-48__wyaYa","mode-form":"NumericInput_mode-form__2EKWT","mode-cell":"NumericInput_mode-cell__oJI4L","size24":"NumericInput_size-24__9pSyj","size30":"NumericInput_size-30__kfXj0","size36":"NumericInput_size-36__tYgRe","size42":"NumericInput_size-42__RoV0p","size48":"NumericInput_size-48__wyaYa","modeForm":"NumericInput_mode-form__2EKWT","modeCell":"NumericInput_mode-cell__oJI4L"};
|
|
1248
|
+
|
|
1249
|
+
const defaultSize$5 = "36";
|
|
1250
|
+
const defaultMode$3 = exports.EditMode.FORM;
|
|
1251
|
+
function applyNumericInputMods(mods) {
|
|
1252
|
+
return [
|
|
1253
|
+
textInputCss.root,
|
|
1254
|
+
css$m.root,
|
|
1255
|
+
css$m["size-" + (mods.size || defaultSize$5)],
|
|
1256
|
+
textInputCss["size-" + (mods.size || defaultSize$5)],
|
|
1257
|
+
textInputCss["mode-" + (mods.mode || defaultMode$3)],
|
|
1258
|
+
];
|
|
1259
|
+
}
|
|
1260
|
+
const NumericInput = uuiCore.withMods(uuiComponents.NumericInput, applyNumericInputMods, (props) => {
|
|
1261
|
+
var _a, _b;
|
|
1262
|
+
return ({
|
|
1263
|
+
upIcon: systemIcons[props.size || defaultSize$5].foldingArrow,
|
|
1264
|
+
downIcon: systemIcons[props.size || defaultSize$5].foldingArrow,
|
|
1265
|
+
align: (_a = props.align) !== null && _a !== void 0 ? _a : (props.mode === "cell" ? "right" : "left"),
|
|
1266
|
+
disableArrows: (_b = props.disableArrows) !== null && _b !== void 0 ? _b : props.mode === "cell",
|
|
1267
|
+
});
|
|
1268
|
+
});
|
|
1269
|
+
|
|
1270
|
+
var css$l = {"root":"TextArea_root__rb0Et","mode-form":"TextArea_mode-form__1DZlL","mode-cell":"TextArea_mode-cell__KthXC","mode-inline":"TextArea_mode-inline__dZEPS","size-24":"TextArea_size-24__-1cgl","size-30":"TextArea_size-30__B2Zjq","size-36":"TextArea_size-36__r2jj6","size-42":"TextArea_size-42__G6PPY","size-48":"TextArea_size-48__1yQdt","modeForm":"TextArea_mode-form__1DZlL","modeCell":"TextArea_mode-cell__KthXC","modeInline":"TextArea_mode-inline__dZEPS","size24":"TextArea_size-24__-1cgl","size30":"TextArea_size-30__B2Zjq","size36":"TextArea_size-36__r2jj6","size42":"TextArea_size-42__G6PPY","size48":"TextArea_size-48__1yQdt"};
|
|
1271
|
+
|
|
1272
|
+
const defaultSize$4 = '36';
|
|
1273
|
+
const defaultMode$2 = exports.EditMode.FORM;
|
|
1274
|
+
function applyTextAreaMods(mods) {
|
|
1275
|
+
return [
|
|
1276
|
+
css$l.root,
|
|
1277
|
+
css$l['size-' + (mods.size || defaultSize$4)],
|
|
1278
|
+
css$l['mode-' + (mods.mode || defaultMode$2)],
|
|
1279
|
+
];
|
|
1280
|
+
}
|
|
1281
|
+
const TextArea = uuiCore.withMods(uuiComponents.TextArea, applyTextAreaMods, props => ({
|
|
1282
|
+
autoSize: props.mode === exports.EditMode.CELL ? true : props.autoSize,
|
|
1283
|
+
maxLength: props.mode === exports.EditMode.CELL ? undefined : props.maxLength,
|
|
1284
|
+
}));
|
|
1285
|
+
|
|
1286
|
+
var css$k = {"root":"DatePicker_root__kqFyh"};
|
|
1287
|
+
|
|
1288
|
+
var calendarCss = {"root":"Calendar_root__Vh71D"};
|
|
1289
|
+
|
|
1290
|
+
function applyDatePickerBodyMods() {
|
|
1291
|
+
return [
|
|
1292
|
+
css$k.root,
|
|
1293
|
+
calendarCss.root,
|
|
1294
|
+
];
|
|
1295
|
+
}
|
|
1296
|
+
const DatePickerBody = uuiCore.withMods(uuiComponents.DatePickerBody, applyDatePickerBodyMods, () => ({ navIconLeft: ForwardRef$K, navIconRight: ForwardRef$K }));
|
|
1297
|
+
|
|
1298
|
+
const defaultMode$1 = exports.EditMode.FORM;
|
|
1299
|
+
class DatePicker extends uuiComponents.BaseDatePicker {
|
|
1300
|
+
constructor() {
|
|
1301
|
+
super(...arguments);
|
|
1302
|
+
this.renderInput = (props) => {
|
|
1303
|
+
var _a;
|
|
1304
|
+
return (React__namespace.default.createElement(TextInput, Object.assign({}, props, { onClick: null, isDropdown: false, cx: uuiCore.cx(this.props.inputCx, this.state.isOpen && uuiCore.uuiMod.focus), icon: this.props.mode !== exports.EditMode.CELL && systemIcons[this.props.size || '36'].calendar, iconPosition: this.props.iconPosition || 'left', placeholder: this.props.placeholder ? this.props.placeholder : this.getFormat(), size: this.props.size || '36', value: this.state.inputValue, onValueChange: this.handleInputChange, onCancel: (this.props.disableClear || !this.state.inputValue) ? undefined : this.handleCancel, isInvalid: this.props.isInvalid, isDisabled: this.props.isDisabled, isReadonly: this.props.isReadonly, tabIndex: (this.props.isReadonly || this.props.isDisabled) ? -1 : 0, onFocus: this.handleFocus, onBlur: this.handleBlur, mode: this.props.mode || defaultMode$1, rawProps: (_a = this.props.rawProps) === null || _a === void 0 ? void 0 : _a.input })));
|
|
1305
|
+
};
|
|
1306
|
+
}
|
|
1307
|
+
renderBody(props) {
|
|
1308
|
+
var _a, _b, _c;
|
|
1309
|
+
return React__namespace.default.createElement(DropdownContainer, Object.assign({}, props),
|
|
1310
|
+
React__namespace.default.createElement(DatePickerBody, { cx: uuiCore.cx(this.props.bodyCx), filter: this.props.filter, value: this.getValue(), setSelectedDate: this.setSelectedDate, setDisplayedDateAndView: this.setDisplayedDateAndView, changeIsOpen: this.onToggle, renderDay: this.props.renderDay, isHoliday: this.props.isHoliday, rawProps: (_a = this.props.rawProps) === null || _a === void 0 ? void 0 : _a.body }), (_c = (_b = this.props).renderFooter) === null || _c === void 0 ? void 0 :
|
|
1311
|
+
_c.call(_b));
|
|
1312
|
+
}
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
function applyDateSelectionMods() {
|
|
1173
1316
|
return [
|
|
1174
|
-
|
|
1317
|
+
calendarCss.root,
|
|
1175
1318
|
];
|
|
1176
1319
|
}
|
|
1177
|
-
const
|
|
1320
|
+
const Calendar = uuiCore.withMods(uuiComponents.Calendar, applyDateSelectionMods);
|
|
1321
|
+
|
|
1322
|
+
var css$j = {"dropdown-container":"RangeDatePicker_dropdown-container__GJh6o","container":"RangeDatePicker_container__Kz2FS","button-group":"RangeDatePicker_button-group__a-twv","counter":"RangeDatePicker_counter__rNj2e","date-input":"RangeDatePicker_date-input__2aXJj","size-24":"RangeDatePicker_size-24__64v-x","size-30":"RangeDatePicker_size-30__7OPWW","size-36":"RangeDatePicker_size-36__urHhS","size-42":"RangeDatePicker_size-42__VMCut","size-48":"RangeDatePicker_size-48__YHcLe","date-input-group":"RangeDatePicker_date-input-group__CGdCd","separator":"RangeDatePicker_separator__qmCk8","mode-form":"RangeDatePicker_mode-form__o0e0M","mode-cell":"RangeDatePicker_mode-cell__neiVz","dropdownContainer":"RangeDatePicker_dropdown-container__GJh6o","buttonGroup":"RangeDatePicker_button-group__a-twv","dateInput":"RangeDatePicker_date-input__2aXJj","size24":"RangeDatePicker_size-24__64v-x","size30":"RangeDatePicker_size-30__7OPWW","size36":"RangeDatePicker_size-36__urHhS","size42":"RangeDatePicker_size-42__VMCut","size48":"RangeDatePicker_size-48__YHcLe","dateInputGroup":"RangeDatePicker_date-input-group__CGdCd","modeForm":"RangeDatePicker_mode-form__o0e0M","modeCell":"RangeDatePicker_mode-cell__neiVz"};
|
|
1323
|
+
|
|
1324
|
+
const defaultValue = { from: null, to: null };
|
|
1325
|
+
class RangeDatePicker extends uuiComponents.BaseRangeDatePicker {
|
|
1326
|
+
constructor() {
|
|
1327
|
+
super(...arguments);
|
|
1328
|
+
this.renderInput = (props) => {
|
|
1329
|
+
var _a, _b;
|
|
1330
|
+
return (React__namespace.createElement("div", { className: cx__default.default(this.props.inputCx, css$j.dateInputGroup, this.props.isDisabled && uuiCore.uuiMod.disabled, this.props.isReadonly && uuiCore.uuiMod.readonly, this.props.isInvalid && uuiCore.uuiMod.invalid, this.state.inFocus && uuiCore.uuiMod.focus), onClick: !this.props.isDisabled && props.onClick, onBlur: this.handleWrapperBlur, ref: props.ref },
|
|
1331
|
+
React__namespace.createElement(TextInput, { icon: systemIcons[this.props.size || '36'].calendar, cx: cx__default.default(this.props.bodyCx, css$j.dateInput, css$j['size-' + (this.props.size || 36)], this.state.inFocus === 'from' && uuiCore.uuiMod.focus), size: this.props.size || '36', placeholder: this.props.getPlaceholder ? this.props.getPlaceholder('from') : i18n.rangeDatePicker.pickerPlaceholderFrom, value: this.state.inputValue.from, onValueChange: this.getChangeHandler('from'), isInvalid: this.props.isInvalid, isDisabled: this.props.isDisabled, isReadonly: this.props.isReadonly, onFocus: (event) => this.handleFocus(event, 'from'), onBlur: (event) => this.handleBlur(event, 'from'), isDropdown: false, rawProps: (_a = this.props.rawProps) === null || _a === void 0 ? void 0 : _a.from }),
|
|
1332
|
+
React__namespace.createElement("div", { className: css$j.separator }),
|
|
1333
|
+
React__namespace.createElement(TextInput, { cx: cx__default.default(this.props.bodyCx, css$j.dateInput, css$j['size-' + (this.props.size || 36)], this.state.inFocus === 'to' && uuiCore.uuiMod.focus), placeholder: this.props.getPlaceholder ? this.props.getPlaceholder('to') : i18n.rangeDatePicker.pickerPlaceholderTo, size: this.props.size || '36', value: this.state.inputValue.to, onCancel: this.props.disableClear ? null : this.state.inputValue.from && this.state.inputValue.to && this.handleCancel, onValueChange: this.getChangeHandler('to'), isInvalid: this.props.isInvalid, isDisabled: this.props.isDisabled, isReadonly: this.props.isReadonly, onFocus: (e) => this.handleFocus(e, 'to'), onBlur: (e) => this.handleBlur(e, 'to'), isDropdown: false, rawProps: (_b = this.props.rawProps) === null || _b === void 0 ? void 0 : _b.to })));
|
|
1334
|
+
};
|
|
1335
|
+
}
|
|
1336
|
+
renderBody(props) {
|
|
1337
|
+
var _a;
|
|
1338
|
+
return (React__namespace.createElement(DropdownContainer, Object.assign({}, props, { cx: cx__default.default(css$j.dropdownContainer) }),
|
|
1339
|
+
React__namespace.createElement(FlexRow, null,
|
|
1340
|
+
React__namespace.createElement(RangeDatePickerBody, { cx: cx__default.default(this.props.bodyCx), value: this.getValue(), onValueChange: this.onRangeChange, filter: this.props.filter, changeIsOpen: this.toggleOpening, presets: this.props.presets, focusPart: this.state.inFocus, renderDay: this.props.renderDay, renderFooter: this.props.renderFooter && (() => this.props.renderFooter(this.props.value || defaultValue)), isHoliday: this.props.isHoliday, rawProps: (_a = this.props.rawProps) === null || _a === void 0 ? void 0 : _a.body }))));
|
|
1341
|
+
}
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
var rangeCss = {"root":"RangeDatePickerBody_root__CCVfb"};
|
|
1178
1345
|
|
|
1179
|
-
var
|
|
1346
|
+
var calendarPresetsCss = {"root":"CalendarPresets_root__5O668"};
|
|
1347
|
+
|
|
1348
|
+
function applyRangeDatePickerBodyMods() {
|
|
1349
|
+
return [
|
|
1350
|
+
css$k.root,
|
|
1351
|
+
rangeCss.root,
|
|
1352
|
+
calendarCss.root,
|
|
1353
|
+
calendarPresetsCss.root,
|
|
1354
|
+
];
|
|
1355
|
+
}
|
|
1356
|
+
const RangeDatePickerBody = uuiCore.withMods(uuiComponents.RangeDatePickerBody, applyRangeDatePickerBodyMods, () => ({ navIconLeft: ForwardRef$K, navIconRight: ForwardRef$K }));
|
|
1357
|
+
|
|
1358
|
+
var css$i = {"blocker":"DropMarker_blocker__x-t-D","marker":"DropMarker_marker__5weO4","top":"DropMarker_top__a-UDx","bottom":"DropMarker_bottom__kUP91","left":"DropMarker_left__w5JwO","right":"DropMarker_right__zAmSs","inside":"DropMarker_inside__SfmMo"};
|
|
1359
|
+
|
|
1360
|
+
class DropMarker extends React__namespace.Component {
|
|
1361
|
+
render() {
|
|
1362
|
+
return this.props.isDndInProgress ? React__namespace.createElement(React__namespace.Fragment, null,
|
|
1363
|
+
this.props.enableBlocker && React__namespace.createElement("div", { className: css$i.blocker }),
|
|
1364
|
+
React__namespace.createElement("div", { className: cx__default.default({
|
|
1365
|
+
[css$i.marker]: true,
|
|
1366
|
+
[css$i[this.props.position]]: true,
|
|
1367
|
+
[this.props.cx]: !!this.props.cx,
|
|
1368
|
+
}) })) : null;
|
|
1369
|
+
}
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
var css$h = {"body":"DataPickerBody_body__9Atow","multi":"DataPickerBody_multi__sToHj","modal":"DataPickerBody_modal__zvOE2","search-wrapper":"DataPickerBody_search-wrapper__UeG2b","checkbox":"DataPickerBody_checkbox__EFs7y","no-found-size-24":"DataPickerBody_no-found-size-24__4RC9-","no-found-size-30":"DataPickerBody_no-found-size-30__M8eYW","no-found-size-36":"DataPickerBody_no-found-size-36__jr82u","no-found-size-42":"DataPickerBody_no-found-size-42__9WVA5","searchWrapper":"DataPickerBody_search-wrapper__UeG2b","noFoundSize24":"DataPickerBody_no-found-size-24__4RC9-","noFoundSize30":"DataPickerBody_no-found-size-30__M8eYW","noFoundSize36":"DataPickerBody_no-found-size-36__jr82u","noFoundSize42":"DataPickerBody_no-found-size-42__9WVA5"};
|
|
1180
1373
|
|
|
1181
1374
|
class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
1182
1375
|
constructor() {
|
|
@@ -1184,29 +1377,25 @@ class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
|
1184
1377
|
this.lens = uuiCore.Lens.onEditableComponent(this);
|
|
1185
1378
|
this.searchLens = this.lens.prop('search');
|
|
1186
1379
|
}
|
|
1187
|
-
|
|
1380
|
+
renderNotFound() {
|
|
1188
1381
|
if (this.props.renderNotFound) {
|
|
1189
1382
|
return this.props.renderNotFound();
|
|
1190
1383
|
}
|
|
1191
|
-
return React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$
|
|
1384
|
+
return React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$h[`no-found-size-${this.props.searchSize || 36}`], grow: 1, textAlign: 'center' },
|
|
1192
1385
|
React__namespace.default.createElement(Text, { size: this.props.searchSize || '36' }, i18n.dataPickerBody.noRecordsMessage));
|
|
1193
1386
|
}
|
|
1194
1387
|
render() {
|
|
1195
|
-
this.props.value;
|
|
1196
1388
|
const searchSize = uuiCore.isMobile() ? '48' : (this.props.searchSize || '36');
|
|
1197
|
-
const searchClass = uuiCore.cx(css$e.searchWrapper, css$e[`search-size-${searchSize}`]);
|
|
1198
1389
|
return React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1199
|
-
this.showSearch() && (React__namespace.default.createElement("div", { key: 'search', className:
|
|
1390
|
+
this.showSearch() && (React__namespace.default.createElement("div", { key: 'search', className: css$h.searchWrapper },
|
|
1200
1391
|
React__namespace.default.createElement(uuiComponents.FlexCell, { grow: 1 },
|
|
1201
|
-
React__namespace.default.createElement(SearchInput, Object.assign({
|
|
1202
|
-
React__namespace.default.createElement(FlexRow, { key: 'body', cx: uuiCore.cx(css$
|
|
1203
|
-
? React__namespace.default.createElement(VirtualList, Object.assign({}, this.lens.toProps(), { rows: this.props.rows, role:
|
|
1204
|
-
: this.
|
|
1392
|
+
React__namespace.default.createElement(SearchInput, Object.assign({ ref: this.searchRef, placeholder: i18n.dataPickerBody.searchPlaceholder }, this.searchLens.toProps(), { onKeyDown: this.searchKeyDown, size: searchSize }))))),
|
|
1393
|
+
React__namespace.default.createElement(FlexRow, { key: 'body', cx: uuiCore.cx(css$h.body, css$h[this.props.editMode], css$h[this.props.selectionMode]), rawProps: { style: { maxHeight: this.props.maxHeight } } }, this.props.rowsCount > 0
|
|
1394
|
+
? React__namespace.default.createElement(VirtualList, Object.assign({}, this.lens.toProps(), { rows: this.props.rows, role: 'listbox', rawProps: this.props.rawProps, rowsCount: this.props.rowsCount }))
|
|
1395
|
+
: this.renderNotFound()));
|
|
1205
1396
|
}
|
|
1206
1397
|
}
|
|
1207
1398
|
|
|
1208
|
-
var css$d = {"footer-wrapper":"DataPickerFooter_footer-wrapper__Us28N","footerWrapper":"DataPickerFooter_footer-wrapper__Us28N"};
|
|
1209
|
-
|
|
1210
1399
|
const switchSizes = {
|
|
1211
1400
|
'24': '12',
|
|
1212
1401
|
'36': '18',
|
|
@@ -1222,7 +1411,7 @@ const DataPickerFooterImpl = (props) => {
|
|
|
1222
1411
|
if (!e.shiftKey && e.key === 'Tab')
|
|
1223
1412
|
e.preventDefault();
|
|
1224
1413
|
};
|
|
1225
|
-
return (React__namespace.default.createElement(FlexRow, { padding: '12'
|
|
1414
|
+
return (React__namespace.default.createElement(FlexRow, { padding: '12' },
|
|
1226
1415
|
!props.hideShowOnlySelected && React__namespace.default.createElement(Switch, { size: switchSize, value: showSelected.value, isDisabled: !hasSelection, onValueChange: showSelected.onValueChange, label: i18n.pickerInput.showOnlySelectedLabel }),
|
|
1227
1416
|
React__namespace.default.createElement(FlexSpacer, null),
|
|
1228
1417
|
view.selectAll && (React__namespace.default.createElement(FlexCell, { width: 'auto', alignSelf: 'center' },
|
|
@@ -1234,44 +1423,44 @@ const DataPickerFooterImpl = (props) => {
|
|
|
1234
1423
|
};
|
|
1235
1424
|
const DataPickerFooter = React__namespace.default.memo(DataPickerFooterImpl);
|
|
1236
1425
|
|
|
1237
|
-
var css$
|
|
1426
|
+
var css$g = {"header":"DataPickerHeader_header__UDMhr","close":"DataPickerHeader_close__30pW6"};
|
|
1238
1427
|
|
|
1239
|
-
var _path$
|
|
1240
|
-
function _extends$
|
|
1428
|
+
var _path$i;
|
|
1429
|
+
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); }
|
|
1241
1430
|
var SvgNavigationClose24 = function SvgNavigationClose24(props, ref) {
|
|
1242
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1431
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
|
|
1243
1432
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1244
1433
|
width: 24,
|
|
1245
1434
|
height: 24,
|
|
1246
1435
|
viewBox: "0 0 24 24",
|
|
1247
1436
|
ref: ref
|
|
1248
|
-
}, props), _path$
|
|
1437
|
+
}, props), _path$i || (_path$i = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1249
1438
|
fillRule: "evenodd",
|
|
1250
1439
|
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",
|
|
1251
1440
|
clipRule: "evenodd"
|
|
1252
1441
|
})));
|
|
1253
1442
|
};
|
|
1254
|
-
var ForwardRef$
|
|
1443
|
+
var ForwardRef$j = /*#__PURE__*/React.forwardRef(SvgNavigationClose24);
|
|
1255
1444
|
|
|
1256
1445
|
const DataPickerHeaderImpl = props => {
|
|
1257
1446
|
const title = props.title ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
1258
|
-
return (React__namespace.default.createElement(FlexRow, { alignItems: 'center', borderBottom: true, size: "48", cx: css$
|
|
1447
|
+
return (React__namespace.default.createElement(FlexRow, { alignItems: 'center', borderBottom: true, size: "48", cx: css$g.header },
|
|
1259
1448
|
React__namespace.default.createElement(Text, { font: 'semibold' }, title),
|
|
1260
|
-
React__namespace.default.createElement(IconButton, { icon: ForwardRef$
|
|
1449
|
+
React__namespace.default.createElement(IconButton, { icon: ForwardRef$j, onClick: () => { var _a; return (_a = props.close) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: css$g.close })));
|
|
1261
1450
|
};
|
|
1262
1451
|
const DataPickerHeader = React__namespace.default.memo(DataPickerHeaderImpl);
|
|
1263
1452
|
|
|
1264
|
-
var _defs, _use;
|
|
1265
|
-
function _extends$
|
|
1453
|
+
var _defs$1, _use;
|
|
1454
|
+
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); }
|
|
1266
1455
|
var SvgTreeFoldingArrow = function SvgTreeFoldingArrow(props, ref) {
|
|
1267
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1456
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
|
|
1268
1457
|
width: 18,
|
|
1269
1458
|
height: 18,
|
|
1270
1459
|
viewBox: "0 0 18 18",
|
|
1271
1460
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1272
1461
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
1273
1462
|
ref: ref
|
|
1274
|
-
}, props), _defs || (_defs = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("path", {
|
|
1463
|
+
}, props), _defs$1 || (_defs$1 = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("path", {
|
|
1275
1464
|
id: "a",
|
|
1276
1465
|
d: "M6.056 6.998a.997.997 0 0 1-.769-.29L.293 1.712a1 1 0 0 1 0-1.414L.299.293a1 1 0 0 1 1.414 0L6 4.58 10.288.293c.39-.39 1.023-.39 1.42.006a1 1 0 0 1 0 1.414L6.712 6.707a.993.993 0 0 1-.657.291z"
|
|
1277
1466
|
}))), _use || (_use = /*#__PURE__*/React__namespace.createElement("use", {
|
|
@@ -1282,173 +1471,703 @@ var SvgTreeFoldingArrow = function SvgTreeFoldingArrow(props, ref) {
|
|
|
1282
1471
|
fillRule: "evenodd"
|
|
1283
1472
|
})));
|
|
1284
1473
|
};
|
|
1285
|
-
var ForwardRef$
|
|
1474
|
+
var ForwardRef$i = /*#__PURE__*/React.forwardRef(SvgTreeFoldingArrow);
|
|
1475
|
+
|
|
1476
|
+
var css$f = {"cell":"DataTableCell_cell__VgHTT","wrapper":"DataTableCell_wrapper__6hBNx","align-widgets-top":"DataTableCell_align-widgets-top__7LNVl","size-24":"DataTableCell_size-24__g6m7O","folding-arrow":"DataTableCell_folding-arrow__6iI4s","size-30":"DataTableCell_size-30__hpjkm","size-36":"DataTableCell_size-36__8qiBq","size-42":"DataTableCell_size-42__jJMhr","size-48":"DataTableCell_size-48__XXrAx","size-60":"DataTableCell_size-60__0XLPh","align-widgets-center":"DataTableCell_align-widgets-center__VXHNb","padding-12":"DataTableCell_padding-12__xvGe5","padding-24":"DataTableCell_padding-24__r322g","padding-left-12":"DataTableCell_padding-left-12__g6QSx","padding-left-24":"DataTableCell_padding-left-24__vm-bI","padding-right-24":"DataTableCell_padding-right-24__CjNWh","drag-handle":"DataTableCell_drag-handle__Ge7UM","checkbox":"DataTableCell_checkbox__sY2kh","indent":"DataTableCell_indent__lcZWO","folding-arrow-12":"DataTableCell_folding-arrow-12__mVKaH","folding-arrow-18":"DataTableCell_folding-arrow-18__hiEIW","alignWidgetsTop":"DataTableCell_align-widgets-top__7LNVl","size24":"DataTableCell_size-24__g6m7O","foldingArrow":"DataTableCell_folding-arrow__6iI4s","size30":"DataTableCell_size-30__hpjkm","size36":"DataTableCell_size-36__8qiBq","size42":"DataTableCell_size-42__jJMhr","size48":"DataTableCell_size-48__XXrAx","size60":"DataTableCell_size-60__0XLPh","alignWidgetsCenter":"DataTableCell_align-widgets-center__VXHNb","padding12":"DataTableCell_padding-12__xvGe5","padding24":"DataTableCell_padding-24__r322g","paddingLeft12":"DataTableCell_padding-left-12__g6QSx","paddingLeft24":"DataTableCell_padding-left-24__vm-bI","paddingRight24":"DataTableCell_padding-right-24__CjNWh","dragHandle":"DataTableCell_drag-handle__Ge7UM","foldingArrow12":"DataTableCell_folding-arrow-12__mVKaH","foldingArrow18":"DataTableCell_folding-arrow-18__hiEIW"};
|
|
1477
|
+
|
|
1478
|
+
function DataTableRowAddons(props) {
|
|
1479
|
+
var _a, _b;
|
|
1480
|
+
const row = props.rowProps;
|
|
1481
|
+
const additionalItemSize = +props.size < 30 ? '12' : '18';
|
|
1482
|
+
return React__namespace.createElement(React__namespace.Fragment, null,
|
|
1483
|
+
((_a = row.dnd) === null || _a === void 0 ? void 0 : _a.srcData) && React__namespace.createElement(uuiComponents.DragHandle, { key: 'dh', cx: css$f.dragHandle }),
|
|
1484
|
+
((_b = row === null || row === void 0 ? void 0 : row.checkbox) === null || _b === void 0 ? void 0 : _b.isVisible) && React__namespace.createElement(Checkbox, { key: 'cb', cx: css$f.checkbox, tabIndex: props.tabIndex, size: additionalItemSize, value: row.isChecked, indeterminate: !row.isChecked && row.isChildrenChecked, onValueChange: () => row.onCheck(row), isDisabled: row.checkbox.isDisabled, isInvalid: row.checkbox.isInvalid }),
|
|
1485
|
+
row.indent > 0 && (React__namespace.createElement("div", { key: 'fold', className: css$f.indent, style: { marginLeft: (row.indent - 1) * 24 } }, row.isFoldable &&
|
|
1486
|
+
React__namespace.createElement(IconContainer, { key: 'icon', icon: ForwardRef$i, cx: [css$f.foldingArrow, css$f[`folding-arrow-${additionalItemSize}`], uuiCore.uuiMarkers.clickable], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row), color: 'default' }))));
|
|
1487
|
+
}
|
|
1488
|
+
function DataTableCell(props) {
|
|
1489
|
+
var _a;
|
|
1490
|
+
props = Object.assign({}, props);
|
|
1491
|
+
if (props.isFirstColumn) {
|
|
1492
|
+
props.addons = React__namespace.createElement(DataTableRowAddons, Object.assign({}, props));
|
|
1493
|
+
}
|
|
1494
|
+
props.renderPlaceholder = props.renderPlaceholder || (() => (React__namespace.createElement(Text, { key: 't', size: props.size != '60' ? props.size : '48' },
|
|
1495
|
+
React__namespace.createElement(TextPlaceholder, null))));
|
|
1496
|
+
props.renderTooltip = (tooltipProps) => React__namespace.createElement(Tooltip, Object.assign({ color: 'critical' }, tooltipProps));
|
|
1497
|
+
const isEditable = !!props.onValueChange;
|
|
1498
|
+
props.border = (_a = props.border) !== null && _a !== void 0 ? _a : (isEditable ? true : null);
|
|
1499
|
+
props.cx = [
|
|
1500
|
+
'data-table-cell',
|
|
1501
|
+
props.cx,
|
|
1502
|
+
css$f.cell,
|
|
1503
|
+
css$f['size-' + (props.size || '36')],
|
|
1504
|
+
css$f[`padding-${props.padding || ((isEditable && !props.rowProps.isLoading) && '0') || '12'}`],
|
|
1505
|
+
props.isFirstColumn && css$f[`padding-left-${props.padding || '24'}`],
|
|
1506
|
+
props.isLastColumn && css$f['padding-right-24'],
|
|
1507
|
+
css$f[`align-widgets-${props.alignActions || 'top'}`],
|
|
1508
|
+
props.background && `background-${props.background}`,
|
|
1509
|
+
props.border && 'uui-dt-cell-border',
|
|
1510
|
+
];
|
|
1511
|
+
return React__namespace.createElement(uuiComponents.DataTableCell, Object.assign({}, props));
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
var css$e = {"root":"DataTableRow_root__ThnfZ","size-24":"DataTableRow_size-24__mjGKU","size-30":"DataTableRow_size-30__Kb8nP","size-36":"DataTableRow_size-36__dolOJ","size-48":"DataTableRow_size-48__DpAQX","size-60":"DataTableRow_size-60__k0ZKS","background-white":"DataTableRow_background-white__GKFMn","size24":"DataTableRow_size-24__mjGKU","size30":"DataTableRow_size-30__Kb8nP","size36":"DataTableRow_size-36__dolOJ","size48":"DataTableRow_size-48__DpAQX","size60":"DataTableRow_size-60__k0ZKS","backgroundWhite":"DataTableRow_background-white__GKFMn"};
|
|
1515
|
+
|
|
1516
|
+
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
1517
|
+
// 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.
|
|
1518
|
+
const renderCell = (props) => {
|
|
1519
|
+
const mods = props.rowProps;
|
|
1520
|
+
return React__namespace.createElement(DataTableCell, Object.assign({ size: mods.size }, props));
|
|
1521
|
+
};
|
|
1522
|
+
const renderDropMarkers = (props) => React__namespace.createElement(DropMarker, Object.assign({}, props, { enableBlocker: true }));
|
|
1523
|
+
const propsMods = { renderCell, renderDropMarkers };
|
|
1524
|
+
const DataTableRow = uuiCore.withMods(uuiComponents.DataTableRow, ({ borderBottom = true, background, size }) => {
|
|
1525
|
+
return [
|
|
1526
|
+
css$e.root,
|
|
1527
|
+
borderBottom && 'uui-dt-row-border',
|
|
1528
|
+
css$e['size-' + (size || '36')],
|
|
1529
|
+
css$e['background-' + (background || 'default')],
|
|
1530
|
+
];
|
|
1531
|
+
}, () => propsMods);
|
|
1286
1532
|
|
|
1287
|
-
var css$
|
|
1533
|
+
var css$d = {"header-cell":"DataTableHeaderRow_header-cell__KtC6r","config-icon":"DataTableHeaderRow_config-icon__w0uLR","headerCell":"DataTableHeaderRow_header-cell__KtC6r","configIcon":"DataTableHeaderRow_config-icon__w0uLR"};
|
|
1288
1534
|
|
|
1289
|
-
|
|
1535
|
+
var _path$h;
|
|
1536
|
+
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); }
|
|
1537
|
+
var SvgActionSettings18 = function SvgActionSettings18(props, ref) {
|
|
1538
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
|
|
1539
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1540
|
+
width: 18,
|
|
1541
|
+
height: 18,
|
|
1542
|
+
viewBox: "0 0 18 18",
|
|
1543
|
+
ref: ref
|
|
1544
|
+
}, props), _path$h || (_path$h = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1545
|
+
fillRule: "evenodd",
|
|
1546
|
+
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",
|
|
1547
|
+
clipRule: "evenodd"
|
|
1548
|
+
})));
|
|
1549
|
+
};
|
|
1550
|
+
var ForwardRef$h = /*#__PURE__*/React.forwardRef(SvgActionSettings18);
|
|
1551
|
+
|
|
1552
|
+
const DataTableHeaderRow = uuiCore.withMods(uuiComponents.DataTableHeaderRow, mods => [css$d.root], mods => ({
|
|
1553
|
+
renderCell: props => React__namespace.createElement(DataTableHeaderCell, Object.assign({}, props, { size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key })),
|
|
1554
|
+
renderConfigButton: () => React__namespace.createElement(IconButton, { key: 'configuration', onClick: mods.onConfigButtonClick, cx: css$d.configIcon, color: 'default', icon: ForwardRef$h }),
|
|
1555
|
+
}));
|
|
1556
|
+
|
|
1557
|
+
var css$c = {"cell":"DataTableHeaderCell_cell__8JnbB","sort-icon":"DataTableHeaderCell_sort-icon__Wi-rh","dropdown-icon":"DataTableHeaderCell_dropdown-icon__-vO3u","infoIcon":"DataTableHeaderCell_infoIcon__1Ang4","resizable":"DataTableHeaderCell_resizable__sNvwo","size-24":"DataTableHeaderCell_size-24__ntP26","size-30":"DataTableHeaderCell_size-30__znptx","size-36":"DataTableHeaderCell_size-36__m5DC6","size-42":"DataTableHeaderCell_size-42__YX4yM","size-48":"DataTableHeaderCell_size-48__YCyCX","padding-left-24":"DataTableHeaderCell_padding-left-24__sZhuC","padding-right-24":"DataTableHeaderCell_padding-right-24__5Ne7M","caption":"DataTableHeaderCell_caption__pF7VF","checkbox":"DataTableHeaderCell_checkbox__sg2V-","icon":"DataTableHeaderCell_icon__XDYeh","icon-cell":"DataTableHeaderCell_icon-cell__t-wBF","align-right":"DataTableHeaderCell_align-right__JzZ-h","align-center":"DataTableHeaderCell_align-center__BegNE","tooltip-wrapper":"DataTableHeaderCell_tooltip-wrapper__ILECw","cell-tooltip":"DataTableHeaderCell_cell-tooltip__XAI4G","upper-case":"DataTableHeaderCell_upper-case__YCQ24","font-size-14":"DataTableHeaderCell_font-size-14__3JeGt","resize-mark":"DataTableHeaderCell_resize-mark__Vlv3w","draggable":"DataTableHeaderCell_draggable__c0dne","ghost":"DataTableHeaderCell_ghost__Yjb5B","is-dragged-out":"DataTableHeaderCell_is-dragged-out__HzBd6","dnd-marker-left":"DataTableHeaderCell_dnd-marker-left__0pkPC","dnd-marker-right":"DataTableHeaderCell_dnd-marker-right__1i9gh","sortIcon":"DataTableHeaderCell_sort-icon__Wi-rh","dropdownIcon":"DataTableHeaderCell_dropdown-icon__-vO3u","size24":"DataTableHeaderCell_size-24__ntP26","size30":"DataTableHeaderCell_size-30__znptx","size36":"DataTableHeaderCell_size-36__m5DC6","size42":"DataTableHeaderCell_size-42__YX4yM","size48":"DataTableHeaderCell_size-48__YCyCX","paddingLeft24":"DataTableHeaderCell_padding-left-24__sZhuC","paddingRight24":"DataTableHeaderCell_padding-right-24__5Ne7M","iconCell":"DataTableHeaderCell_icon-cell__t-wBF","alignRight":"DataTableHeaderCell_align-right__JzZ-h","alignCenter":"DataTableHeaderCell_align-center__BegNE","tooltipWrapper":"DataTableHeaderCell_tooltip-wrapper__ILECw","cellTooltip":"DataTableHeaderCell_cell-tooltip__XAI4G","upperCase":"DataTableHeaderCell_upper-case__YCQ24","fontSize14":"DataTableHeaderCell_font-size-14__3JeGt","resizeMark":"DataTableHeaderCell_resize-mark__Vlv3w","isDraggedOut":"DataTableHeaderCell_is-dragged-out__HzBd6","dndMarkerLeft":"DataTableHeaderCell_dnd-marker-left__0pkPC","dndMarkerRight":"DataTableHeaderCell_dnd-marker-right__1i9gh"};
|
|
1558
|
+
|
|
1559
|
+
var _path$g;
|
|
1560
|
+
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); }
|
|
1561
|
+
var SvgTableSwap18 = function SvgTableSwap18(props, ref) {
|
|
1562
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
|
|
1563
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1564
|
+
width: 18,
|
|
1565
|
+
height: 18,
|
|
1566
|
+
viewBox: "0 0 18 18",
|
|
1567
|
+
ref: ref
|
|
1568
|
+
}, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1569
|
+
fillRule: "evenodd",
|
|
1570
|
+
d: "M6 1 2 5h3v7h2V5h3L6 1zm7 12V6h-2v7H8l4 4 4-4h-3z",
|
|
1571
|
+
clipRule: "evenodd"
|
|
1572
|
+
})));
|
|
1573
|
+
};
|
|
1574
|
+
var ForwardRef$g = /*#__PURE__*/React.forwardRef(SvgTableSwap18);
|
|
1575
|
+
|
|
1576
|
+
var _path$f;
|
|
1577
|
+
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); }
|
|
1578
|
+
var SvgTableSortAsc18 = function SvgTableSortAsc18(props, ref) {
|
|
1579
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
|
|
1580
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1581
|
+
width: 18,
|
|
1582
|
+
height: 18,
|
|
1583
|
+
viewBox: "0 0 18 18",
|
|
1584
|
+
ref: ref
|
|
1585
|
+
}, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1586
|
+
fillRule: "evenodd",
|
|
1587
|
+
d: "M10 6v10H8V6H5l4-4 4 4h-3z",
|
|
1588
|
+
clipRule: "evenodd"
|
|
1589
|
+
})));
|
|
1590
|
+
};
|
|
1591
|
+
var ForwardRef$f = /*#__PURE__*/React.forwardRef(SvgTableSortAsc18);
|
|
1592
|
+
|
|
1593
|
+
var _path$e;
|
|
1594
|
+
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); }
|
|
1595
|
+
var SvgTableSortDesc18 = function SvgTableSortDesc18(props, ref) {
|
|
1596
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
|
|
1597
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1598
|
+
width: 18,
|
|
1599
|
+
height: 18,
|
|
1600
|
+
viewBox: "0 0 18 18",
|
|
1601
|
+
ref: ref
|
|
1602
|
+
}, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1603
|
+
fillRule: "evenodd",
|
|
1604
|
+
d: "M10 12V2H8v10H5l4 4 4-4h-3z",
|
|
1605
|
+
clipRule: "evenodd"
|
|
1606
|
+
})));
|
|
1607
|
+
};
|
|
1608
|
+
var ForwardRef$e = /*#__PURE__*/React.forwardRef(SvgTableSortDesc18);
|
|
1609
|
+
|
|
1610
|
+
var _path$d;
|
|
1611
|
+
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); }
|
|
1612
|
+
var SvgContentFiltration18 = function SvgContentFiltration18(props, ref) {
|
|
1613
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
|
|
1614
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1615
|
+
width: 18,
|
|
1616
|
+
height: 18,
|
|
1617
|
+
viewBox: "0 0 18 18",
|
|
1618
|
+
ref: ref
|
|
1619
|
+
}, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1620
|
+
fillRule: "evenodd",
|
|
1621
|
+
d: "m8 14 2 2v-5H8v3zM2 3v2h14V3H2zm6 8h2l6-6H2l6 6z",
|
|
1622
|
+
clipRule: "evenodd"
|
|
1623
|
+
})));
|
|
1624
|
+
};
|
|
1625
|
+
var ForwardRef$d = /*#__PURE__*/React.forwardRef(SvgContentFiltration18);
|
|
1626
|
+
|
|
1627
|
+
var _path$c;
|
|
1628
|
+
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); }
|
|
1629
|
+
var SvgNavigationChevronDown18 = function SvgNavigationChevronDown18(props, ref) {
|
|
1630
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
|
|
1631
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1632
|
+
width: 18,
|
|
1633
|
+
height: 18,
|
|
1634
|
+
viewBox: "0 0 18 18",
|
|
1635
|
+
ref: ref
|
|
1636
|
+
}, props), _path$c || (_path$c = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1637
|
+
fillRule: "evenodd",
|
|
1638
|
+
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",
|
|
1639
|
+
clipRule: "evenodd"
|
|
1640
|
+
})));
|
|
1641
|
+
};
|
|
1642
|
+
var ForwardRef$c = /*#__PURE__*/React.forwardRef(SvgNavigationChevronDown18);
|
|
1643
|
+
|
|
1644
|
+
var _path$b;
|
|
1645
|
+
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); }
|
|
1646
|
+
var SvgNavigationChevronUp18 = function SvgNavigationChevronUp18(props, ref) {
|
|
1647
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
|
|
1648
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1649
|
+
width: 18,
|
|
1650
|
+
height: 18,
|
|
1651
|
+
viewBox: "0 0 18 18",
|
|
1652
|
+
ref: ref
|
|
1653
|
+
}, props), _path$b || (_path$b = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1654
|
+
fillRule: "evenodd",
|
|
1655
|
+
d: "m9 6-4.5 4.5 1.058 1.057L9 8.123l3.443 3.434L13.5 10.5 9 6z",
|
|
1656
|
+
clipRule: "evenodd"
|
|
1657
|
+
})));
|
|
1658
|
+
};
|
|
1659
|
+
var ForwardRef$b = /*#__PURE__*/React.forwardRef(SvgNavigationChevronUp18);
|
|
1660
|
+
|
|
1661
|
+
var _path$a;
|
|
1662
|
+
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); }
|
|
1663
|
+
var SvgNotificationInfoOutline18 = function SvgNotificationInfoOutline18(props, ref) {
|
|
1664
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
|
|
1665
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1666
|
+
width: 18,
|
|
1667
|
+
height: 18,
|
|
1668
|
+
viewBox: "0 0 18 18",
|
|
1669
|
+
ref: ref
|
|
1670
|
+
}, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1671
|
+
fillRule: "evenodd",
|
|
1672
|
+
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",
|
|
1673
|
+
clipRule: "evenodd"
|
|
1674
|
+
})));
|
|
1675
|
+
};
|
|
1676
|
+
var ForwardRef$a = /*#__PURE__*/React.forwardRef(SvgNotificationInfoOutline18);
|
|
1677
|
+
|
|
1678
|
+
class DataTableHeaderCell extends React__namespace.Component {
|
|
1290
1679
|
constructor() {
|
|
1291
|
-
var _a, _b, _c;
|
|
1292
1680
|
super(...arguments);
|
|
1293
|
-
this.
|
|
1294
|
-
|
|
1295
|
-
this.getContent = () => {
|
|
1296
|
-
var _a;
|
|
1297
|
-
const row = this.props.rowProps;
|
|
1298
|
-
const additionalItemSize = +this.props.size < 30 ? '12' : '18';
|
|
1299
|
-
const cellContent = row.isLoading
|
|
1300
|
-
? React__namespace.createElement(Text, { size: this.props.size != '60' ? this.props.size : '48' },
|
|
1301
|
-
React__namespace.createElement(TextPlaceholder, null))
|
|
1302
|
-
: this.props.column.render(this.props.rowProps.value, this.props.rowProps);
|
|
1303
|
-
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
1304
|
-
this.props.isFirstColumn && this.isDraggable() && React__namespace.createElement(uuiComponents.DragHandle, { cx: css$b.dragHandle }),
|
|
1305
|
-
this.props.isFirstColumn && ((_a = row === null || row === void 0 ? void 0 : row.checkbox) === null || _a === void 0 ? void 0 : _a.isVisible) && React__namespace.createElement(Checkbox, { key: 'cb', cx: css$b.checkbox, tabIndex: this.props.tabIndex, size: additionalItemSize, value: row.isChecked, indeterminate: !row.isChecked && row.isChildrenChecked, onValueChange: () => row.onCheck(row), isDisabled: row.checkbox.isDisabled, isInvalid: row.checkbox.isInvalid }),
|
|
1306
|
-
this.props.isFirstColumn && row.indent > 0 && (React__namespace.createElement("div", { key: 'fold', className: css$b.indent, style: { marginLeft: (row.indent - 1) * 24 } }, row.isFoldable &&
|
|
1307
|
-
React__namespace.createElement(uuiComponents.IconContainer, { key: 'icon', icon: ForwardRef$4, cx: [css$b.foldingArrow, css$b[`folding-arrow-${additionalItemSize}`], uuiCore.uuiMarkers.clickable], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row) }))),
|
|
1308
|
-
cellContent));
|
|
1681
|
+
this.state = {
|
|
1682
|
+
isDropdownOpen: null,
|
|
1309
1683
|
};
|
|
1684
|
+
this.getTextStyle = () => {
|
|
1685
|
+
if (this.props.textCase === 'upper')
|
|
1686
|
+
return css$c.upperCase;
|
|
1687
|
+
return css$c['font-size-14'];
|
|
1688
|
+
};
|
|
1689
|
+
this.getColumnCaption = () => (React__namespace.createElement("div", { className: css$c.tooltipWrapper },
|
|
1690
|
+
React__namespace.createElement(Tooltip, { trigger: "hover", placement: "bottom-start", renderContent: (!this.state.isDropdownOpen && this.props.column.info) ? () => this.props.column.info : null, color: "default", cx: css$c.cellTooltip, offset: [-12, 12] },
|
|
1691
|
+
React__namespace.createElement("div", { className: uuiCore.cx(css$c.iconCell, css$c['align-' + this.props.column.textAlign], uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaptionWrapper) },
|
|
1692
|
+
React__namespace.createElement(Text, { key: "text", lineHeight: "30", fontSize: "14", size: "30", cx: uuiCore.cx(css$c.caption, this.getTextStyle(), uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaption) }, this.props.column.caption),
|
|
1693
|
+
this.props.column.info && (React__namespace.createElement(IconButton, { key: "info", cx: uuiCore.cx(css$c.icon, css$c.infoIcon, this.props.sortDirection && css$c.sortIconActive, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderSortIcon), color: 'secondary', icon: ForwardRef$a })),
|
|
1694
|
+
this.props.column.isSortable && (!this.props.column.renderFilter || this.props.sortDirection) && (React__namespace.createElement(IconButton, { key: "sort", cx: uuiCore.cx(css$c.icon, css$c.sortIcon, this.props.sortDirection && css$c.sortIconActive, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderSortIcon), color: this.props.sortDirection ? 'default' : 'secondary', icon: this.props.sortDirection === 'desc' ? ForwardRef$e : this.props.sortDirection === 'asc' ? ForwardRef$f : ForwardRef$g })),
|
|
1695
|
+
this.props.isFilterActive && (React__namespace.createElement(IconButton, { key: "filter", cx: uuiCore.cx(css$c.icon, !this.props.sortDirection && css$c.filterIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderFilterIcon), color: "default", icon: ForwardRef$d })),
|
|
1696
|
+
this.props.column.renderFilter && (React__namespace.createElement(IconButton, { key: "dropdown", cx: uuiCore.cx(css$c.icon, css$c.dropdownIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderDropdownIcon), color: "secondary", icon: this.state.isDropdownOpen ? ForwardRef$b : ForwardRef$c }))))));
|
|
1697
|
+
this.renderHeaderCheckbox = () => this.props.selectAll && this.props.isFirstColumn && (React__namespace.createElement(Checkbox, Object.assign({ size: +this.props.size < 36 ? '12' : '18' }, this.props.selectAll, { cx: uuiCore.cx(css$c.checkbox, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCheckbox) })));
|
|
1698
|
+
this.renderResizeMark = (props) => (React__namespace.createElement("div", { onMouseDown: props.onResizeStart, className: uuiCore.cx(css$c.resizeMark, uuiCore.uuiMarkers.draggable) }));
|
|
1699
|
+
this.renderCellContent = (props, dropdownProps) => (React__namespace.createElement(FlexCell, Object.assign({}, this.props.column, { minWidth: this.props.column.width, ref: ref => {
|
|
1700
|
+
var _a;
|
|
1701
|
+
props.ref(ref);
|
|
1702
|
+
(_a = dropdownProps === null || dropdownProps === void 0 ? void 0 : dropdownProps.ref) === null || _a === void 0 ? void 0 : _a.call(dropdownProps, ref);
|
|
1703
|
+
}, cx: uuiCore.cx(uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCell, (this.props.column.isSortable || this.props.isDropdown) && uuiCore.uuiMarkers.clickable, css$c.cell, css$c['size-' + (this.props.size || '36')], this.props.isFirstColumn && css$c[`padding-left-24`], this.props.isLastColumn && css$c['padding-right-24'], this.props.column.cx, this.props.allowColumnsResizing && css$c.resizable, props.isDraggable && css$c.draggable, props.isDragGhost && css$c.ghost, props.isDraggedOut && css$c.isDraggedOut, props.isDndInProgress && css$c['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) }),
|
|
1704
|
+
this.renderHeaderCheckbox(),
|
|
1705
|
+
this.getColumnCaption(),
|
|
1706
|
+
this.props.allowColumnsResizing && this.renderResizeMark(props)));
|
|
1707
|
+
this.renderCellWithFilter = (props) => (React__namespace.createElement(ColumnHeaderDropdown, { isOpen: this.state.isDropdownOpen, isSortable: this.props.column.isSortable, renderTarget: dropdownProps => this.renderCellContent(props, dropdownProps), renderFilter: this.props.renderFilter, onSort: this.props.onSort, sortDirection: this.props.sortDirection, onOpenChange: isDropdownOpen => this.setState({ isDropdownOpen }), title: this.props.column.caption }));
|
|
1310
1708
|
}
|
|
1311
1709
|
render() {
|
|
1312
|
-
return (React__namespace.createElement(
|
|
1710
|
+
return (React__namespace.createElement(uuiComponents.DataTableHeaderCell, Object.assign({}, this.props, { renderCellContent: this.props.column.renderFilter
|
|
1711
|
+
? this.renderCellWithFilter
|
|
1712
|
+
: this.renderCellContent })));
|
|
1313
1713
|
}
|
|
1314
1714
|
}
|
|
1315
1715
|
|
|
1316
|
-
var _path$
|
|
1317
|
-
function _extends$
|
|
1318
|
-
var
|
|
1319
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1716
|
+
var _path$9, _path2$1, _path3, _path4, _path5, _path6, _g, _path7, _path8, _path9, _path10, _path11, _path12, _path13, _path14, _path15, _path16, _path17, _path18, _path19, _path20, _path21, _path22, _path23, _path24, _defs;
|
|
1717
|
+
function _extends$9() { _extends$9 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); }
|
|
1718
|
+
var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
1719
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
|
|
1720
|
+
width: 232,
|
|
1721
|
+
height: 180,
|
|
1722
|
+
viewBox: "0 0 232 180",
|
|
1723
|
+
fill: "none",
|
|
1320
1724
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1321
|
-
width: 12,
|
|
1322
|
-
height: 12,
|
|
1323
|
-
viewBox: "0 0 12 12",
|
|
1324
1725
|
ref: ref
|
|
1325
|
-
}, props),
|
|
1726
|
+
}, props), /*#__PURE__*/React__namespace.createElement("g", {
|
|
1727
|
+
clipPath: "url(#a)"
|
|
1728
|
+
}, _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1729
|
+
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",
|
|
1730
|
+
fill: "#F5F6FA"
|
|
1731
|
+
})), _path2$1 || (_path2$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1732
|
+
d: "m58.069 136.51-.654 4.238-1.27-5.38a58.934 58.934 0 0 0-11.462-4.965l-.083 5.636-2.545-6.393a55.094 55.094 0 0 0-13.655-1.854l.704 6.178-3.356-6.108c-4.151.183-8.256.946-12.195 2.268l2.33 3.525s-2.173-1.597-4.084-2.896a40.951 40.951 0 0 0-10.833 6.285 85.492 85.492 0 0 0 12.575 10.527c2.482-.637 5.127-1.279 5.127-1.279l-3.261 2.537a69.366 69.366 0 0 0 13.283 6.865c2.346-1.353 5.416-3.269 5.416-3.269l-3.554 3.931a42.226 42.226 0 0 0 15.45 2.359l4.259-4.213-1.697 4.001c7.002-.848 14.144-3.902 20.95-10.344-1.621-3.869-5.768-8.073-11.445-11.649Z",
|
|
1733
|
+
fill: "#9BDEFF"
|
|
1734
|
+
})), _path3 || (_path3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1735
|
+
fillRule: "evenodd",
|
|
1736
|
+
clipRule: "evenodd",
|
|
1737
|
+
d: "M.557 136.978a.413.413 0 0 1 .475-.342l68.549 11.118a.414.414 0 0 1-.133.817L.9 137.453a.415.415 0 0 1-.342-.475Z",
|
|
1738
|
+
fill: "#fff"
|
|
1739
|
+
})), _path4 || (_path4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1740
|
+
d: "M174.887 125.586h-88.1c-2.752 0-5.38-2.234-5.38-4.986V27.534c0-2.752 2.644-4.966 5.38-4.966h88.1c2.752 0 5.4 2.23 5.4 4.966V120.6c0 2.752-2.632 4.986-5.4 4.986Z",
|
|
1741
|
+
fill: "#9BDEFF"
|
|
1742
|
+
})), _path5 || (_path5 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1743
|
+
fillRule: "evenodd",
|
|
1744
|
+
clipRule: "evenodd",
|
|
1745
|
+
d: "M86.786 22.982c-2.55 0-4.965 2.07-4.965 4.552V120.6c0 2.484 2.4 4.572 4.965 4.572h88.101c2.582 0 4.986-2.089 4.986-4.572V27.534c0-2.464-2.418-4.552-4.986-4.552h-88.1Zm-5.793 4.552c0-3.022 2.874-5.38 5.793-5.38h88.101c2.935 0 5.814 2.374 5.814 5.38V120.6c0 3.021-2.86 5.4-5.814 5.4h-88.1c-2.94 0-5.794-2.381-5.794-5.4V27.534Z",
|
|
1746
|
+
fill: "#1D1E26"
|
|
1747
|
+
})), /*#__PURE__*/React__namespace.createElement("mask", {
|
|
1748
|
+
id: "b",
|
|
1749
|
+
style: {
|
|
1750
|
+
maskType: "alpha"
|
|
1751
|
+
},
|
|
1752
|
+
maskUnits: "userSpaceOnUse",
|
|
1753
|
+
x: 81,
|
|
1754
|
+
y: 22,
|
|
1755
|
+
width: 100,
|
|
1756
|
+
height: 104
|
|
1757
|
+
}, _path6 || (_path6 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1758
|
+
d: "M174.887 125.586h-88.1c-2.752 0-5.38-2.234-5.38-4.986V27.534c0-2.752 2.644-4.966 5.38-4.966h88.1c2.752 0 5.4 2.23 5.4 4.966V120.6c0 2.752-2.632 4.986-5.4 4.986Z",
|
|
1759
|
+
fill: "#9BDEFF"
|
|
1760
|
+
}))), _g || (_g = /*#__PURE__*/React__namespace.createElement("g", {
|
|
1761
|
+
mask: "url(#b)",
|
|
1326
1762
|
fillRule: "evenodd",
|
|
1327
|
-
d: "M6 4c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm0 1c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 3c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1z",
|
|
1328
1763
|
clipRule: "evenodd"
|
|
1764
|
+
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
1765
|
+
d: "M69.817 99.247a.414.414 0 0 1 .585-.003l50.88 50.483a.414.414 0 0 1-.583.588l-50.88-50.483a.414.414 0 0 1-.002-.585ZM72.802 28.407a.414.414 0 0 1 .553.192l63.6 131.172a.413.413 0 1 1-.745.361L72.61 28.96a.414.414 0 0 1 .192-.553Z",
|
|
1766
|
+
fill: "#fff"
|
|
1767
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
1768
|
+
d: "M142.576 6.515a.415.415 0 0 1 .087.58L60.185 118.817a.413.413 0 1 1-.665-.491L141.997 6.603a.414.414 0 0 1 .579-.088ZM197.977 60.314c.181.14.214.4.075.58l-76.734 99.311a.414.414 0 0 1-.655-.506l76.734-99.31a.413.413 0 0 1 .58-.075ZM192.316 43.44a.413.413 0 0 1-.103.576L60.089 135.878a.414.414 0 0 1-.473-.68L191.74 43.336a.414.414 0 0 1 .576.104Z",
|
|
1769
|
+
fill: "#fff"
|
|
1770
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
1771
|
+
d: "M91.966 11.532a.414.414 0 0 1 .585-.021l129.252 120a.414.414 0 0 1-.563.606l-129.252-120a.414.414 0 0 1-.022-.585ZM75.232 2.769a.414.414 0 0 1 .568.143l93.554 156.828a.414.414 0 1 1-.711.424L75.089 3.336a.414.414 0 0 1 .143-.567ZM125.643.329a.414.414 0 0 1 .584.041l71.81 82.759a.413.413 0 1 1-.625.542L125.602.913a.414.414 0 0 1 .041-.584Z",
|
|
1772
|
+
fill: "#fff"
|
|
1773
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
1774
|
+
d: "M67.271 75.369a.414.414 0 0 1 .547-.209l156.745 70.345a.413.413 0 1 1-.339.755L67.479 75.916a.414.414 0 0 1-.208-.547Z",
|
|
1775
|
+
fill: "#fff"
|
|
1776
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
1777
|
+
d: "M159.279 8.938a.414.414 0 0 1 .265.522L101.278 187.39a.413.413 0 1 1-.787-.258l58.266-177.93a.414.414 0 0 1 .522-.265Z",
|
|
1778
|
+
fill: "#fff"
|
|
1779
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
1780
|
+
d: "M86.786 22.982c-2.55 0-4.965 2.07-4.965 4.552V120.6c0 2.484 2.4 4.572 4.965 4.572h88.101c2.582 0 4.986-2.089 4.986-4.572V27.534c0-2.464-2.418-4.552-4.986-4.552h-88.1Zm-5.793 4.552c0-3.022 2.874-5.38 5.793-5.38h88.101c2.935 0 5.814 2.374 5.814 5.38V120.6c0 3.021-2.86 5.4-5.814 5.4h-88.1c-2.94 0-5.794-2.381-5.794-5.4V27.534Z",
|
|
1781
|
+
fill: "#1D1E26"
|
|
1782
|
+
}))), _path7 || (_path7 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1783
|
+
d: "M180.287 30.828H81.39v-3.724a4.966 4.966 0 0 1 4.966-4.966H175.3a4.963 4.963 0 0 1 4.986 4.965v3.725Z",
|
|
1784
|
+
fill: "#fff"
|
|
1785
|
+
})), _path8 || (_path8 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1786
|
+
fillRule: "evenodd",
|
|
1787
|
+
clipRule: "evenodd",
|
|
1788
|
+
d: "M177.05 22.893a4.548 4.548 0 0 0-1.748-.341H86.356a4.552 4.552 0 0 0-4.552 4.552v3.31h98.069v-3.31a4.55 4.55 0 0 0-2.823-4.211Zm-1.75-1.169a5.375 5.375 0 0 1 4.989 3.316c.272.654.412 1.355.412 2.064v3.724a.414.414 0 0 1-.414.413H81.39a.414.414 0 0 1-.413-.413v-3.724a5.38 5.38 0 0 1 5.379-5.38H175.3Z",
|
|
1789
|
+
fill: "#1D1E26"
|
|
1790
|
+
})), _path9 || (_path9 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1791
|
+
d: "M87.324 28.217a1.8 1.8 0 1 0 0-3.6 1.8 1.8 0 0 0 0 3.6ZM93.597 28.217a1.8 1.8 0 1 0 0-3.6 1.8 1.8 0 0 0 0 3.6ZM99.866 28.217a1.8 1.8 0 1 0 0-3.6 1.8 1.8 0 0 0 0 3.6Z",
|
|
1792
|
+
fill: "#1D1E26"
|
|
1793
|
+
})), _path10 || (_path10 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1794
|
+
d: "M151.71 47.806H63.614a4.986 4.986 0 0 0-4.986 4.986v93.062a4.986 4.986 0 0 0 4.986 4.986h88.096a4.986 4.986 0 0 0 4.987-4.986V52.792a4.987 4.987 0 0 0-4.987-4.986Z",
|
|
1795
|
+
fill: "#fff"
|
|
1796
|
+
})), _path11 || (_path11 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1797
|
+
fillRule: "evenodd",
|
|
1798
|
+
clipRule: "evenodd",
|
|
1799
|
+
d: "M63.614 48.22a4.572 4.572 0 0 0-4.572 4.572v93.062a4.572 4.572 0 0 0 4.572 4.572h88.096a4.572 4.572 0 0 0 4.573-4.572V52.792a4.572 4.572 0 0 0-4.573-4.573H63.614Zm-5.4 4.572a5.4 5.4 0 0 1 5.4-5.4h88.096a5.4 5.4 0 0 1 5.4 5.4v93.062a5.4 5.4 0 0 1-5.4 5.4H63.614a5.4 5.4 0 0 1-5.4-5.4V52.792Z",
|
|
1800
|
+
fill: "#1D1E26"
|
|
1801
|
+
})), _path12 || (_path12 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1802
|
+
d: "M157.11 56.081H58.214v-3.724a4.986 4.986 0 0 1 4.986-4.965h88.924a4.988 4.988 0 0 1 4.986 4.965v3.724Z",
|
|
1803
|
+
fill: "#008ACE"
|
|
1804
|
+
})), _path13 || (_path13 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1805
|
+
d: "M64.566 53.474a1.8 1.8 0 1 0 0-3.6 1.8 1.8 0 0 0 0 3.6ZM70.835 53.474a1.8 1.8 0 1 0 0-3.6 1.8 1.8 0 0 0 0 3.6ZM77.103 53.474a1.8 1.8 0 1 0 0-3.6 1.8 1.8 0 0 0 0 3.6Z",
|
|
1806
|
+
fill: "#1D1E26"
|
|
1807
|
+
})), _path14 || (_path14 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1808
|
+
fillRule: "evenodd",
|
|
1809
|
+
clipRule: "evenodd",
|
|
1810
|
+
d: "M48.968 36.067a.414.414 0 0 1 .585.018l7.005 7.448a.414.414 0 1 1-.603.567l-7.005-7.448a.414.414 0 0 1 .018-.585ZM46.99 44.047a.414.414 0 0 1 .554-.188l6.269 3.104a.414.414 0 0 1-.367.742l-6.27-3.104a.414.414 0 0 1-.187-.554ZM183.97 9.366a.414.414 0 0 1 .213.545l-2.896 6.62a.414.414 0 0 1-.759-.331l2.897-6.621a.414.414 0 0 1 .545-.213ZM192.373 9.866a.415.415 0 0 1 0 .585l-8.276 8.276a.414.414 0 1 1-.585-.585l8.275-8.276a.415.415 0 0 1 .586 0ZM192.464 19.108a.413.413 0 0 1-.23.538l-6.207 2.483a.414.414 0 0 1-.308-.768l6.207-2.483a.414.414 0 0 1 .538.23ZM182.977 54.848c.228 0 .413.185.413.414v58.345a.414.414 0 1 1-.827 0V55.262c0-.229.185-.414.414-.414Z",
|
|
1811
|
+
fill: "#1D1E26"
|
|
1812
|
+
})), _path15 || (_path15 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1813
|
+
d: "M133.371 157.945c23.196 0 42-18.804 42-42s-18.804-42-42-42-42 18.804-42 42 18.804 42 42 42Z",
|
|
1814
|
+
fill: "#008ACE"
|
|
1815
|
+
})), _path16 || (_path16 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1816
|
+
d: "M133.371 149.669c18.625 0 33.724-15.099 33.724-33.724 0-18.625-15.099-33.724-33.724-33.724-18.625 0-33.724 15.099-33.724 33.724 0 18.625 15.099 33.724 33.724 33.724Z",
|
|
1817
|
+
fill: "#fff"
|
|
1818
|
+
})), _path17 || (_path17 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1819
|
+
d: "M117.312 113.565a3.807 3.807 0 1 0 0-7.614 3.807 3.807 0 0 0 0 7.614ZM149.435 113.565a3.806 3.806 0 1 0 0-7.612 3.806 3.806 0 0 0 0 7.612Z",
|
|
1820
|
+
fill: "#1D1E26"
|
|
1821
|
+
})), _path18 || (_path18 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1822
|
+
fillRule: "evenodd",
|
|
1823
|
+
clipRule: "evenodd",
|
|
1824
|
+
d: "M133.38 123.952c-4.592 0-8.525 2.259-10.468 5.423a.827.827 0 1 1-1.41-.866c2.27-3.697 6.762-6.212 11.878-6.212 5.108 0 9.646 2.485 11.882 6.22a.827.827 0 1 1-1.42.85c-1.902-3.176-5.863-5.415-10.462-5.415Z",
|
|
1825
|
+
fill: "#1D1E26"
|
|
1826
|
+
})), _path19 || (_path19 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1827
|
+
d: "m170.965 137.356-7.822 9.777 1.668 1.334 7.822-9.777-1.668-1.334Z",
|
|
1828
|
+
fill: "#1D1E26"
|
|
1829
|
+
})), _path20 || (_path20 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1830
|
+
d: "M200.774 163.345c.579 2.143-3.331 6.852-5.553 6.939-7.035.277-28.73-23.913-28.73-23.913l4.44-5.553s28.122 16.142 29.843 22.527Z",
|
|
1831
|
+
fill: "#9BDEFF"
|
|
1832
|
+
})), _path21 || (_path21 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1833
|
+
d: "M204.424 178.378a6.223 6.223 0 0 0 6.223-6.224 6.224 6.224 0 1 0-6.223 6.224Z",
|
|
1834
|
+
fill: "#9BDEFF"
|
|
1835
|
+
})), _path22 || (_path22 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1836
|
+
d: "M199.586 168.269a6.173 6.173 0 0 1 3.311-2.131l-2.123-1.697c-.464 2.069-2.959 4.995-4.837 5.69l2.296 1.837a6.173 6.173 0 0 1 1.353-3.699Z",
|
|
1837
|
+
fill: "#1D1E26"
|
|
1838
|
+
})), _path23 || (_path23 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1839
|
+
d: "m72.357 138.314-3.5 2.955 2.722-5.317a67.379 67.379 0 0 0-5.958-12.509l-4.014 4.514 2.38-7.076a63.412 63.412 0 0 0-9.932-11.611l-3.724 5.549 1.54-7.448a50.152 50.152 0 0 0-11.628-7.179l-.567 4.605s-.675-2.896-1.333-5.38a44.62 44.62 0 0 0-13.315-2.896 96.722 96.722 0 0 0 2.983 17.856c2.483 1.311 5.119 2.751 5.119 2.751l-4.461-.347a79.474 79.474 0 0 0 6.091 15.385c2.897.637 6.745 1.353 6.745 1.353l-5.677.55c2.871 4.965 6.492 9.6 11.069 13.349l6.45-.269-4.191 1.99c6.356 4.49 14.37 7.3 24.48 7.105 1.398-4.332.902-10.816-1.279-17.93Z",
|
|
1840
|
+
fill: "#008ACE"
|
|
1841
|
+
})), _path24 || (_path24 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1842
|
+
fillRule: "evenodd",
|
|
1843
|
+
clipRule: "evenodd",
|
|
1844
|
+
d: "M24.73 96.184a.414.414 0 0 1 .581.06l48.646 59.751a.413.413 0 1 1-.642.523L24.67 96.766a.414.414 0 0 1 .06-.582Z",
|
|
1845
|
+
fill: "#fff"
|
|
1846
|
+
}))), _defs || (_defs = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
1847
|
+
id: "a"
|
|
1848
|
+
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
1849
|
+
fill: "#fff",
|
|
1850
|
+
transform: "translate(.552)",
|
|
1851
|
+
d: "M0 0h230.897v180H0z"
|
|
1852
|
+
})))));
|
|
1853
|
+
};
|
|
1854
|
+
var ForwardRef$9 = /*#__PURE__*/React.forwardRef(SvgEmptyTable);
|
|
1855
|
+
|
|
1856
|
+
var css$b = {"sticky-header":"DataTable_sticky-header__Dt-br","listContainer":"DataTable_listContainer__MJ2d9","table":"DataTable_table__n--u-","no-results":"DataTable_no-results__8wzS9","no-results-icon":"DataTable_no-results-icon__-nnhq","no-results-title":"DataTable_no-results-title__MM7z0","stickyHeader":"DataTable_sticky-header__Dt-br","noResults":"DataTable_no-results__8wzS9","noResultsIcon":"DataTable_no-results-icon__-nnhq","noResultsTitle":"DataTable_no-results-title__MM7z0"};
|
|
1857
|
+
|
|
1858
|
+
function DataTable(props) {
|
|
1859
|
+
var _a;
|
|
1860
|
+
const { uuiModals } = uuiCore.useUuiContext();
|
|
1861
|
+
const columnsWithFilters = uuiComponents.useColumnsWithFilters(props.columns, props.filters);
|
|
1862
|
+
const { columns, config, defaultConfig } = uuiCore.useColumnsConfig(columnsWithFilters, (_a = props.value) === null || _a === void 0 ? void 0 : _a.columnsConfig);
|
|
1863
|
+
const renderRow = React__namespace.useCallback((rowProps) => {
|
|
1864
|
+
return React__namespace.createElement(DataTableRow, Object.assign({ key: rowProps.rowKey, size: props.size, borderBottom: props.border }, rowProps));
|
|
1865
|
+
}, []);
|
|
1866
|
+
const rows = props.getRows();
|
|
1867
|
+
const renderedRows = rows.map(row => (props.renderRow || renderRow)(Object.assign(Object.assign({}, row), { columns })));
|
|
1868
|
+
const renderNoResultsBlock = React__namespace.useCallback(() => {
|
|
1869
|
+
var _a;
|
|
1870
|
+
return (React__namespace.createElement("div", { className: css$b.noResults }, props.renderNoResultsBlock ? (_a = props.renderNoResultsBlock) === null || _a === void 0 ? void 0 : _a.call(props) :
|
|
1871
|
+
React__namespace.createElement(React__namespace.Fragment, null,
|
|
1872
|
+
React__namespace.createElement(uuiComponents.IconContainer, { cx: css$b.noResultsIcon, icon: ForwardRef$9 }),
|
|
1873
|
+
React__namespace.createElement(Text, { cx: css$b.noResultsTitle, fontSize: '24', lineHeight: '30', color: 'primary', font: 'semibold' }, i18n.tables.noResultsBlock.title),
|
|
1874
|
+
React__namespace.createElement(Text, { fontSize: '16', lineHeight: '24', font: 'regular', color: 'primary' }, i18n.tables.noResultsBlock.message))));
|
|
1875
|
+
}, [props.renderNoResultsBlock]);
|
|
1876
|
+
const onConfigurationButtonClick = React__namespace.useCallback(() => {
|
|
1877
|
+
uuiModals.show(modalProps => (React__namespace.createElement(ColumnsConfigurationModal, Object.assign({}, modalProps, { columns: props.columns, columnsConfig: config, defaultConfig: defaultConfig }))))
|
|
1878
|
+
.then(columnsConfig => props.onValueChange(Object.assign(Object.assign({}, props.value), { columnsConfig })))
|
|
1879
|
+
.catch(() => null);
|
|
1880
|
+
}, [props.columns, config, defaultConfig, props.value, props.onValueChange]);
|
|
1881
|
+
const renderRowsContainer = React__namespace.useCallback(({ listContainerRef, estimatedHeight, offsetY, scrollShadows }) => (React__namespace.createElement(React__namespace.Fragment, null,
|
|
1882
|
+
React__namespace.createElement("div", { className: css$b.stickyHeader },
|
|
1883
|
+
React__namespace.createElement(DataTableHeaderRow, { columns: columns, onConfigButtonClick: props.showColumnsConfig && onConfigurationButtonClick, selectAll: props.selectAll, size: props.size, textCase: props.headerTextCase, allowColumnsReordering: props.allowColumnsReordering, allowColumnsResizing: props.allowColumnsResizing, value: props.value, onValueChange: props.onValueChange }),
|
|
1884
|
+
React__namespace.createElement("div", { className: uuiCore.cx(uuiCore.uuiScrollShadows.top, {
|
|
1885
|
+
[uuiCore.uuiScrollShadows.topVisible]: scrollShadows.verticalTop,
|
|
1886
|
+
}) })),
|
|
1887
|
+
props.exactRowsCount !== 0 ? (React__namespace.createElement("div", { className: css$b.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
1888
|
+
React__namespace.createElement("div", { ref: listContainerRef, role: 'rowgroup', style: { marginTop: offsetY }, children: renderedRows }))) : renderNoResultsBlock === null || renderNoResultsBlock === void 0 ? void 0 : renderNoResultsBlock())), [props, columns, rows, renderNoResultsBlock, onConfigurationButtonClick]);
|
|
1889
|
+
return (React__namespace.createElement(uuiComponents.DataTableSelectionProvider, { onCopy: props.onCopy, rows: rows, columns: columns },
|
|
1890
|
+
React__namespace.createElement(VirtualList, { value: props.value, onValueChange: props.onValueChange, onScroll: props.onScroll, rows: renderedRows, rowsCount: props.rowsCount, renderRows: renderRowsContainer, cx: uuiCore.cx(css$b.table), rawProps: {
|
|
1891
|
+
role: 'table',
|
|
1892
|
+
'aria-colcount': columns.length,
|
|
1893
|
+
'aria-rowcount': props.rowsCount,
|
|
1894
|
+
} })));
|
|
1895
|
+
}
|
|
1896
|
+
|
|
1897
|
+
var styles$1 = {"main-panel":"ColumnsConfigurationModal_main-panel__hCrXd","group-title":"ColumnsConfigurationModal_group-title__UtJIu","group-title-text":"ColumnsConfigurationModal_group-title-text__3hOPf","group-title-badge":"ColumnsConfigurationModal_group-title-badge__4agZV","group-items":"ColumnsConfigurationModal_group-items__g1FUY","no-data":"ColumnsConfigurationModal_no-data__CzFcf","h-divider":"ColumnsConfigurationModal_h-divider__W9MsK","search-area":"ColumnsConfigurationModal_search-area__FGWyb","mainPanel":"ColumnsConfigurationModal_main-panel__hCrXd","groupTitle":"ColumnsConfigurationModal_group-title__UtJIu","groupTitleText":"ColumnsConfigurationModal_group-title-text__3hOPf","groupTitleBadge":"ColumnsConfigurationModal_group-title-badge__4agZV","groupItems":"ColumnsConfigurationModal_group-items__g1FUY","noData":"ColumnsConfigurationModal_no-data__CzFcf","hDivider":"ColumnsConfigurationModal_h-divider__W9MsK","searchArea":"ColumnsConfigurationModal_search-area__FGWyb"};
|
|
1898
|
+
|
|
1899
|
+
var _path$8;
|
|
1900
|
+
function _extends$8() { _extends$8 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); }
|
|
1901
|
+
var SvgNavigationMoreVert18 = function SvgNavigationMoreVert18(props, ref) {
|
|
1902
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
|
|
1903
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1904
|
+
width: 18,
|
|
1905
|
+
height: 18,
|
|
1906
|
+
viewBox: "0 0 18 18",
|
|
1907
|
+
ref: ref
|
|
1908
|
+
}, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1909
|
+
fillRule: "evenodd",
|
|
1910
|
+
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",
|
|
1911
|
+
clipRule: "evenodd"
|
|
1912
|
+
})));
|
|
1913
|
+
};
|
|
1914
|
+
var ForwardRef$8 = /*#__PURE__*/React.forwardRef(SvgNavigationMoreVert18);
|
|
1915
|
+
|
|
1916
|
+
var _path$7;
|
|
1917
|
+
function _extends$7() { _extends$7 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
|
|
1918
|
+
var SvgActionUpdate18 = function SvgActionUpdate18(props, ref) {
|
|
1919
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
|
|
1920
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1921
|
+
width: 18,
|
|
1922
|
+
height: 18,
|
|
1923
|
+
viewBox: "0 0 18 18",
|
|
1924
|
+
ref: ref
|
|
1925
|
+
}, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1926
|
+
fillRule: "evenodd",
|
|
1927
|
+
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",
|
|
1928
|
+
clipRule: "evenodd"
|
|
1929
|
+
})));
|
|
1930
|
+
};
|
|
1931
|
+
var ForwardRef$7 = /*#__PURE__*/React.forwardRef(SvgActionUpdate18);
|
|
1932
|
+
|
|
1933
|
+
var _path$6;
|
|
1934
|
+
function _extends$6() { _extends$6 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$6.apply(this, arguments); }
|
|
1935
|
+
var SvgActionLockFill18 = function SvgActionLockFill18(props, ref) {
|
|
1936
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
|
|
1937
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1938
|
+
width: 18,
|
|
1939
|
+
height: 18,
|
|
1940
|
+
viewBox: "0 0 18 18",
|
|
1941
|
+
ref: ref
|
|
1942
|
+
}, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1943
|
+
fillRule: "evenodd",
|
|
1944
|
+
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",
|
|
1945
|
+
clipRule: "evenodd"
|
|
1946
|
+
})));
|
|
1947
|
+
};
|
|
1948
|
+
var ForwardRef$6 = /*#__PURE__*/React.forwardRef(SvgActionLockFill18);
|
|
1949
|
+
|
|
1950
|
+
var _path$5;
|
|
1951
|
+
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); }
|
|
1952
|
+
var SvgActionPinOn18 = function SvgActionPinOn18(props, ref) {
|
|
1953
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
|
|
1954
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1955
|
+
width: 18,
|
|
1956
|
+
height: 18,
|
|
1957
|
+
viewBox: "0 0 18 18",
|
|
1958
|
+
ref: ref
|
|
1959
|
+
}, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1960
|
+
fillRule: "evenodd",
|
|
1961
|
+
d: "M12 9V3h1V2H5v1h1v6l-2 1v1h4v5h2v-5h4v-1l-2-1z",
|
|
1962
|
+
clipRule: "evenodd"
|
|
1963
|
+
})));
|
|
1964
|
+
};
|
|
1965
|
+
var ForwardRef$5 = /*#__PURE__*/React.forwardRef(SvgActionPinOn18);
|
|
1966
|
+
|
|
1967
|
+
var _path$4;
|
|
1968
|
+
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); }
|
|
1969
|
+
var SvgActionPinOff18 = function SvgActionPinOff18(props, ref) {
|
|
1970
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
|
|
1971
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1972
|
+
width: 18,
|
|
1973
|
+
height: 18,
|
|
1974
|
+
viewBox: "0 0 18 18",
|
|
1975
|
+
ref: ref
|
|
1976
|
+
}, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1977
|
+
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"
|
|
1329
1978
|
})));
|
|
1330
1979
|
};
|
|
1331
|
-
var ForwardRef$
|
|
1980
|
+
var ForwardRef$4 = /*#__PURE__*/React.forwardRef(SvgActionPinOff18);
|
|
1981
|
+
|
|
1982
|
+
const i18nLocal$1 = i18n.tables.columnsConfigurationModal;
|
|
1983
|
+
function PinIconButton(props) {
|
|
1984
|
+
const [isHovered, setIsHovered] = React.useState(false);
|
|
1985
|
+
const { id, onTogglePin, isPinned, canUnpin } = props;
|
|
1986
|
+
const isPinnedAlways = isPinned && !canUnpin;
|
|
1987
|
+
const tooltipText = React.useMemo(() => {
|
|
1988
|
+
if (isPinned) {
|
|
1989
|
+
return isPinnedAlways ? i18nLocal$1.lockedColumnPinButton : i18nLocal$1.unPinColumnButton;
|
|
1990
|
+
}
|
|
1991
|
+
return i18nLocal$1.pinColumnButton;
|
|
1992
|
+
}, [isPinned, isPinnedAlways]);
|
|
1993
|
+
const pinIcon = React.useMemo(() => {
|
|
1994
|
+
if (isPinnedAlways) {
|
|
1995
|
+
return ForwardRef$6;
|
|
1996
|
+
}
|
|
1997
|
+
if (isPinned) {
|
|
1998
|
+
return isHovered ? ForwardRef$4 : ForwardRef$5;
|
|
1999
|
+
}
|
|
2000
|
+
return ForwardRef$5;
|
|
2001
|
+
}, [isPinnedAlways, isHovered, isPinned]);
|
|
2002
|
+
const pinClickHandler = isPinnedAlways ? undefined : () => onTogglePin(id);
|
|
2003
|
+
return (React__namespace.createElement("span", { onMouseOver: () => setIsHovered(true), onMouseOut: () => setIsHovered(false) },
|
|
2004
|
+
React__namespace.createElement(Tooltip, { content: tooltipText, placement: "bottom" },
|
|
2005
|
+
React__namespace.createElement(IconButton, { icon: pinIcon, onClick: pinClickHandler, isDisabled: isPinnedAlways, color: isPinned ? 'info' : undefined }))));
|
|
2006
|
+
}
|
|
1332
2007
|
|
|
1333
|
-
var
|
|
2008
|
+
var styles = {"row-wrapper":"ColumnRow_row-wrapper__XJiWz","not-pinned":"ColumnRow_not-pinned__I-gDy","pin-icon-button":"ColumnRow_pin-icon-button__YTlTW","drag-handle":"ColumnRow_drag-handle__S4faK","dnd-disabled":"ColumnRow_dnd-disabled__HqbOB","rowWrapper":"ColumnRow_row-wrapper__XJiWz","notPinned":"ColumnRow_not-pinned__I-gDy","pinIconButton":"ColumnRow_pin-icon-button__YTlTW","dragHandle":"ColumnRow_drag-handle__S4faK","dndDisabled":"ColumnRow_dnd-disabled__HqbOB"};
|
|
2009
|
+
|
|
2010
|
+
const ColumnRow = React__namespace.memo(function ColumnRow(props) {
|
|
2011
|
+
const { column } = props;
|
|
2012
|
+
const { toggleVisibility, togglePin, onCanAcceptDrop, onDrop, columnConfig, isDndAllowed, isPinnedAlways } = column;
|
|
2013
|
+
const { isVisible, fix } = columnConfig;
|
|
2014
|
+
const isPinned = fix || isPinnedAlways;
|
|
2015
|
+
const data = { column, columnConfig };
|
|
2016
|
+
const renderContent = (dndActorParams) => {
|
|
2017
|
+
const wrapperClasses = uuiCore.cx(styles.rowWrapper, !isPinned && styles.notPinned, ...(isDndAllowed ? dndActorParams.classNames : []));
|
|
2018
|
+
const _a = dndActorParams.eventHandlers, { onTouchStart, onPointerDown } = _a, restEventHandlers = __rest(_a, ["onTouchStart", "onPointerDown"]);
|
|
2019
|
+
const wrapperAttrs = Object.assign(Object.assign({}, (isDndAllowed ? { ref: dndActorParams.ref } : {})), (isDndAllowed ? { rawProps: Object.assign({}, restEventHandlers) } : {}));
|
|
2020
|
+
const dragHandleRawProps = Object.assign({}, (isDndAllowed ? { onTouchStart, onPointerDown } : {}));
|
|
2021
|
+
return (React__namespace.createElement(FlexRow, Object.assign({ size: "30", cx: wrapperClasses }, wrapperAttrs),
|
|
2022
|
+
React__namespace.createElement(FlexRow, { size: "30", spacing: '6', cx: styles.title },
|
|
2023
|
+
React__namespace.createElement(uuiComponents.DragHandle, { rawProps: dragHandleRawProps, isDisabled: !isDndAllowed, cx: uuiCore.cx(styles.dragHandle, !isDndAllowed && styles.dndDisabled) }),
|
|
2024
|
+
React__namespace.createElement(Checkbox, { key: column.key, label: column.caption, value: isVisible, onValueChange: toggleVisibility, isDisabled: column.isAlwaysVisible })),
|
|
2025
|
+
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
2026
|
+
React__namespace.createElement(FlexRow, { size: "30", cx: styles.pinIconButton },
|
|
2027
|
+
React__namespace.createElement(PinIconButton, { id: column.key, isPinned: !!isPinned, canUnpin: !isPinnedAlways, onTogglePin: togglePin })),
|
|
2028
|
+
React__namespace.createElement(DropMarker, Object.assign({}, dndActorParams))));
|
|
2029
|
+
};
|
|
2030
|
+
return (React__namespace.createElement(uuiCore.DndActor, { key: column.key, srcData: data, dstData: data, canAcceptDrop: onCanAcceptDrop, onDrop: onDrop, render: renderContent }));
|
|
2031
|
+
});
|
|
1334
2032
|
|
|
1335
|
-
const
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
const
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
2033
|
+
const i18nLocal = i18n.tables.columnsConfigurationModal;
|
|
2034
|
+
const renderGroupTitle = (title, amount) => React__namespace.createElement(FlexRow, { size: "24", padding: "24", spacing: "6", cx: styles$1.groupTitle },
|
|
2035
|
+
React__namespace.createElement(Text, { cx: styles$1.groupTitleText, font: "semibold", lineHeight: "24", fontSize: "14" }, title),
|
|
2036
|
+
React__namespace.createElement(Badge, { cx: styles$1.groupTitleBadge, caption: amount, color: 'info', size: "18" }));
|
|
2037
|
+
function ColumnsConfigurationModal(props) {
|
|
2038
|
+
const { columns, columnsConfig: initialColumnsConfig, defaultConfig } = props, modalProps = __rest(props, ["columns", "columnsConfig", "defaultConfig"]);
|
|
2039
|
+
const { groupedColumns, searchValue, columnsConfig, reset, checkAll, uncheckAll, setSearchValue, } = uuiComponents.useColumnsConfiguration({ initialColumnsConfig, columns, defaultConfig });
|
|
2040
|
+
const apply = React.useCallback(() => modalProps.success(columnsConfig), [columnsConfig, modalProps]);
|
|
2041
|
+
const close = React.useCallback(() => modalProps.abort(), [modalProps]);
|
|
2042
|
+
const isNoData = React.useMemo(() => Object.values(groupedColumns).every(v => !v.length), [groupedColumns]);
|
|
2043
|
+
const renderVisible = () => {
|
|
2044
|
+
const amountPinned = groupedColumns.displayedPinned.length;
|
|
2045
|
+
const amountUnPinned = groupedColumns.displayedUnpinned.length;
|
|
2046
|
+
if (!amountPinned && !amountUnPinned) {
|
|
2047
|
+
return null;
|
|
1344
2048
|
}
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
}
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
}
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
React__namespace.
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
}
|
|
1386
|
-
|
|
1387
|
-
var css$9 = {"row":"Presets_row__Sgwiy"};
|
|
1388
|
-
|
|
1389
|
-
const PresetsImpl = ({ tableState, presets, createNewPreset, activePresetId, hasPresetChanged, choosePreset, duplicatePreset, deletePreset, updatePreset }) => {
|
|
1390
|
-
const newPresetTitle = "New preset";
|
|
1391
|
-
const saveNewPreset = React.useCallback(() => {
|
|
1392
|
-
createNewPreset(newPresetTitle);
|
|
1393
|
-
}, [createNewPreset, newPresetTitle]);
|
|
1394
|
-
const activePreset = presets.find(p => p.id === activePresetId);
|
|
1395
|
-
const hasActivePresetChanged = React.useMemo(() => {
|
|
1396
|
-
return hasPresetChanged(activePreset);
|
|
1397
|
-
}, [activePreset, tableState.filter]);
|
|
1398
|
-
return (React__namespace.default.createElement(FlexRow, { spacing: "6", size: "48", padding: "18", cx: css$9.row },
|
|
1399
|
-
presets.map(preset => (React__namespace.default.createElement(Preset, { preset: preset, isActive: preset.id === activePresetId, hasChanged: preset.id === activePresetId && hasActivePresetChanged, choosePreset: choosePreset, duplicatePreset: duplicatePreset, deletePreset: deletePreset, updatePreset: updatePreset, key: preset.id }))),
|
|
1400
|
-
hasActivePresetChanged && (React__namespace.default.createElement(Button, { caption: `Save as ${newPresetTitle}`, onClick: saveNewPreset, color: 'accent', mode: 'solid', size: '24' }))));
|
|
1401
|
-
};
|
|
1402
|
-
const Presets = React__namespace.default.memo(PresetsImpl);
|
|
2049
|
+
const hasDivider = !!(amountPinned && amountUnPinned);
|
|
2050
|
+
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
2051
|
+
renderGroupTitle(i18nLocal.displayedSectionTitle, amountPinned + amountUnPinned),
|
|
2052
|
+
!!amountPinned && React__namespace.createElement(FlexRow, { cx: styles$1.groupItems, size: "30" }, groupedColumns.displayedPinned.map(c => React__namespace.createElement(ColumnRow, { column: c, key: c.key }))),
|
|
2053
|
+
hasDivider && React__namespace.createElement("div", { className: styles$1.hDivider }),
|
|
2054
|
+
!!amountUnPinned && React__namespace.createElement(FlexRow, { cx: styles$1.groupItems, size: "30" }, groupedColumns.displayedUnpinned.map(c => React__namespace.createElement(ColumnRow, { column: c, key: c.key })))));
|
|
2055
|
+
};
|
|
2056
|
+
const renderHidden = () => {
|
|
2057
|
+
const amountHidden = groupedColumns.hidden.length;
|
|
2058
|
+
if (!amountHidden) {
|
|
2059
|
+
return null;
|
|
2060
|
+
}
|
|
2061
|
+
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
2062
|
+
renderGroupTitle(i18nLocal.hiddenSectionTitle, amountHidden),
|
|
2063
|
+
React__namespace.createElement(FlexRow, { cx: styles$1.groupItems, size: "30" }, groupedColumns.hidden.map(c => React__namespace.createElement(ColumnRow, { column: c, key: c.key })))));
|
|
2064
|
+
};
|
|
2065
|
+
const noVisibleColumns = React.useMemo(() => !groupedColumns.displayedPinned.length && !groupedColumns.displayedUnpinned.length, [groupedColumns.displayedPinned, groupedColumns.displayedUnpinned]);
|
|
2066
|
+
const applyButton = React__namespace.createElement(Button, { caption: i18nLocal.applyButton, isDisabled: noVisibleColumns, color: "accent", onClick: apply });
|
|
2067
|
+
return (React__namespace.createElement(ModalBlocker, Object.assign({ overlay: true }, modalProps),
|
|
2068
|
+
React__namespace.createElement(ModalWindow, { height: 700 },
|
|
2069
|
+
React__namespace.createElement(ModalHeader, { title: i18nLocal.configureColumnsTitle, onClose: close }),
|
|
2070
|
+
React__namespace.createElement(FlexRow, { padding: "24", borderBottom: true, spacing: "12", cx: styles$1.searchArea },
|
|
2071
|
+
React__namespace.createElement(SearchInput, { size: "30", value: searchValue, onValueChange: setSearchValue, placeholder: i18nLocal.searchPlaceholder }),
|
|
2072
|
+
React__namespace.createElement(Dropdown, { closeOnTargetClick: true, renderBody: () => React__namespace.createElement(Panel, { shadow: true },
|
|
2073
|
+
React__namespace.createElement(DropdownMenuButton, { caption: i18nLocal.clearAllButton, onClick: uncheckAll }),
|
|
2074
|
+
React__namespace.createElement(DropdownMenuButton, { caption: i18nLocal.selectAllButton, onClick: checkAll })), renderTarget: props => React__namespace.createElement(Button, Object.assign({}, props, { mode: "none", icon: ForwardRef$8, size: "30", color: "secondary", isDropdown: false })) })),
|
|
2075
|
+
React__namespace.createElement(Panel, { cx: styles$1.mainPanel },
|
|
2076
|
+
React__namespace.createElement(ScrollBars, null,
|
|
2077
|
+
renderVisible(),
|
|
2078
|
+
renderHidden(),
|
|
2079
|
+
isNoData && (React__namespace.createElement(FlexRow, { cx: styles$1.noData },
|
|
2080
|
+
React__namespace.createElement(Text, { fontSize: '24', lineHeight: '30', color: 'primary', font: 'semibold' }, i18nLocal.noResultsFound.text),
|
|
2081
|
+
React__namespace.createElement(Text, { fontSize: '16', lineHeight: '24', font: 'regular', color: 'primary' }, i18nLocal.noResultsFound.subText))))),
|
|
2082
|
+
React__namespace.createElement(ModalFooter, { borderTop: true },
|
|
2083
|
+
React__namespace.createElement(LinkButton, { icon: ForwardRef$7, caption: i18nLocal.resetToDefaultButton, onClick: reset }),
|
|
2084
|
+
React__namespace.createElement(FlexSpacer, null),
|
|
2085
|
+
React__namespace.createElement(Button, { mode: "ghost", color: "secondary", caption: i18nLocal.cancelButton, onClick: close }),
|
|
2086
|
+
noVisibleColumns
|
|
2087
|
+
? (React__namespace.createElement(Tooltip, { content: i18nLocal.enableAtLeastOneColumnMessage, placement: 'top-end', color: 'contrast' }, applyButton))
|
|
2088
|
+
: applyButton))));
|
|
2089
|
+
}
|
|
1403
2090
|
|
|
1404
|
-
var
|
|
1405
|
-
|
|
2091
|
+
var css$a = {"panel":"ColumnHeaderDropdown_panel__52aQo"};
|
|
2092
|
+
|
|
2093
|
+
var css$9 = {"sorting-panel-container":"SortingPanel_sorting-panel-container__DH1x6","sort-active":"SortingPanel_sort-active__KNhjc","sortingPanelContainer":"SortingPanel_sorting-panel-container__DH1x6","sortActive":"SortingPanel_sort-active__KNhjc"};
|
|
2094
|
+
|
|
2095
|
+
const SortingPanelImpl = ({ sortDirection, onSort }) => {
|
|
2096
|
+
const sortAsc = React.useCallback(() => onSort(sortDirection === 'asc' ? undefined : 'asc'), [onSort]);
|
|
2097
|
+
const sortDesc = React.useCallback(() => onSort(sortDirection === 'desc' ? undefined : 'desc'), [onSort]);
|
|
2098
|
+
return (React__namespace.default.createElement(FlexCell, { cx: css$9.sortingPanelContainer },
|
|
2099
|
+
React__namespace.default.createElement(DropdownMenuButton, { isActive: sortDirection === 'asc', caption: i18n.pickerFilterHeader.sortAscending, icon: ForwardRef$f, onClick: sortAsc }),
|
|
2100
|
+
React__namespace.default.createElement(DropdownMenuButton, { isActive: sortDirection === 'desc', caption: i18n.pickerFilterHeader.sortDescending, icon: ForwardRef$e, onClick: sortDesc })));
|
|
2101
|
+
};
|
|
2102
|
+
const SortingPanel = React__namespace.default.memo(SortingPanelImpl);
|
|
2103
|
+
|
|
2104
|
+
const ColumnHeaderDropdownImpl = props => {
|
|
2105
|
+
const popperModifiers = React.useMemo(() => [
|
|
2106
|
+
{
|
|
2107
|
+
name: 'offset',
|
|
2108
|
+
options: { offset: [0, 1] },
|
|
2109
|
+
},
|
|
2110
|
+
uuiCore.mobilePopperModifier,
|
|
2111
|
+
], []);
|
|
2112
|
+
const style = React.useMemo(() => ({
|
|
2113
|
+
width: uuiCore.isMobile() ? document.documentElement.clientWidth : undefined,
|
|
2114
|
+
}), []);
|
|
2115
|
+
const closeDropdown = React.useCallback(() => props.onOpenChange(false), [props.onOpenChange]);
|
|
2116
|
+
return (React__namespace.default.createElement(uuiComponents.Dropdown, { renderTarget: props.renderTarget, renderBody: dropdownProps => (React__namespace.default.createElement(Panel, { style: style, shadow: true, cx: css$a.panel },
|
|
2117
|
+
React__namespace.default.createElement(MobileDropdownWrapper, { title: props.title, close: closeDropdown },
|
|
2118
|
+
props.isSortable && (React__namespace.default.createElement(SortingPanel, { sortDirection: props.sortDirection, onSort: props.onSort })),
|
|
2119
|
+
props.renderFilter(dropdownProps)))), modifiers: popperModifiers, value: props.isOpen, onValueChange: props.onOpenChange }));
|
|
2120
|
+
};
|
|
2121
|
+
const ColumnHeaderDropdown = React__namespace.default.memo(ColumnHeaderDropdownImpl);
|
|
2122
|
+
|
|
2123
|
+
var _path$3;
|
|
2124
|
+
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); }
|
|
1406
2125
|
var SvgNotificationDone24 = function SvgNotificationDone24(props, ref) {
|
|
1407
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2126
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
|
|
1408
2127
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1409
2128
|
width: 24,
|
|
1410
2129
|
height: 24,
|
|
1411
2130
|
viewBox: "0 0 24 24",
|
|
1412
2131
|
ref: ref
|
|
1413
|
-
}, props), _path$
|
|
2132
|
+
}, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1414
2133
|
fillRule: "evenodd",
|
|
1415
2134
|
d: "m9.727 16.075-4.295-4.388L4 13.149 9.727 19 22 6.463 20.568 5 9.728 16.075z",
|
|
1416
2135
|
clipRule: "evenodd"
|
|
1417
2136
|
})));
|
|
1418
2137
|
};
|
|
1419
|
-
var ForwardRef$
|
|
2138
|
+
var ForwardRef$3 = /*#__PURE__*/React.forwardRef(SvgNotificationDone24);
|
|
1420
2139
|
|
|
1421
|
-
var _path$
|
|
1422
|
-
function _extends$
|
|
2140
|
+
var _path$2;
|
|
2141
|
+
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); }
|
|
1423
2142
|
var SvgNotificationDone18 = function SvgNotificationDone18(props, ref) {
|
|
1424
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2143
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
|
|
1425
2144
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1426
2145
|
width: 18,
|
|
1427
2146
|
height: 18,
|
|
1428
2147
|
viewBox: "0 0 18 18",
|
|
1429
2148
|
ref: ref
|
|
1430
|
-
}, props), _path$
|
|
2149
|
+
}, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1431
2150
|
fillRule: "evenodd",
|
|
1432
2151
|
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",
|
|
1433
2152
|
clipRule: "evenodd"
|
|
1434
2153
|
})));
|
|
1435
2154
|
};
|
|
1436
|
-
var ForwardRef$
|
|
2155
|
+
var ForwardRef$2 = /*#__PURE__*/React.forwardRef(SvgNotificationDone18);
|
|
1437
2156
|
|
|
1438
|
-
var _path;
|
|
1439
|
-
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); }
|
|
2157
|
+
var _path$1;
|
|
2158
|
+
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); }
|
|
1440
2159
|
var SvgNotificationDone12 = function SvgNotificationDone12(props, ref) {
|
|
1441
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
2160
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
|
|
1442
2161
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1443
2162
|
width: 12,
|
|
1444
2163
|
height: 12,
|
|
1445
2164
|
viewBox: "0 0 12 12",
|
|
1446
2165
|
ref: ref
|
|
1447
|
-
}, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2166
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1448
2167
|
d: "M11 3.6 9.462 2 4.846 6.8 2.538 4.4 1 6l3.846 4L11 3.6z"
|
|
1449
2168
|
})));
|
|
1450
2169
|
};
|
|
1451
|
-
var ForwardRef = /*#__PURE__*/React.forwardRef(SvgNotificationDone12);
|
|
2170
|
+
var ForwardRef$1 = /*#__PURE__*/React.forwardRef(SvgNotificationDone12);
|
|
1452
2171
|
|
|
1453
2172
|
var css$8 = {"render-item":"DataPickerRow_render-item__YsRTQ","icon-wrapper":"DataPickerRow_icon-wrapper__Pwg6e","picker-row":"DataPickerRow_picker-row__yZk93","renderItem":"DataPickerRow_render-item__YsRTQ","iconWrapper":"DataPickerRow_icon-wrapper__Pwg6e","pickerRow":"DataPickerRow_picker-row__yZk93"};
|
|
1454
2173
|
|
|
@@ -1457,11 +2176,11 @@ class DataPickerRow extends React__namespace.Component {
|
|
|
1457
2176
|
super(...arguments);
|
|
1458
2177
|
this.getIcon = (size) => {
|
|
1459
2178
|
switch (size) {
|
|
1460
|
-
case '24': return ForwardRef;
|
|
1461
|
-
case '30': return ForwardRef$
|
|
1462
|
-
case '36': return ForwardRef$
|
|
1463
|
-
case '42': return ForwardRef$
|
|
1464
|
-
default: return ForwardRef$
|
|
2179
|
+
case '24': return ForwardRef$1;
|
|
2180
|
+
case '30': return ForwardRef$2;
|
|
2181
|
+
case '36': return ForwardRef$2;
|
|
2182
|
+
case '42': return ForwardRef$3;
|
|
2183
|
+
default: return ForwardRef$2;
|
|
1465
2184
|
}
|
|
1466
2185
|
};
|
|
1467
2186
|
this.column = {
|
|
@@ -1494,36 +2213,42 @@ const MobileDropdownWrapper = props => {
|
|
|
1494
2213
|
isVisible && (React__namespace.default.createElement(LinkButton, { caption: 'DONE', onClick: () => { var _a; return (_a = props.close) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: css$7.done, size: '48' }))));
|
|
1495
2214
|
};
|
|
1496
2215
|
|
|
1497
|
-
/******************************************************************************
|
|
1498
|
-
Copyright (c) Microsoft Corporation.
|
|
1499
|
-
|
|
1500
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
1501
|
-
purpose with or without fee is hereby granted.
|
|
1502
|
-
|
|
1503
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
1504
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
1505
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
1506
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
1507
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
1508
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
1509
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
1510
|
-
***************************************************************************** */
|
|
1511
|
-
|
|
1512
|
-
function __rest(s, e) {
|
|
1513
|
-
var t = {};
|
|
1514
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
1515
|
-
t[p] = s[p];
|
|
1516
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
1517
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
1518
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
1519
|
-
t[p[i]] = s[p[i]];
|
|
1520
|
-
}
|
|
1521
|
-
return t;
|
|
1522
|
-
}
|
|
1523
|
-
|
|
1524
2216
|
var css$6 = {"sub-header-wrapper":"PickerModal_sub-header-wrapper__ArWps","switch":"PickerModal_switch__l1-Vd","subHeaderWrapper":"PickerModal_sub-header-wrapper__ArWps","$switch$":"PickerModal_switch__l1-Vd"};
|
|
1525
2217
|
|
|
2218
|
+
var _path, _path2;
|
|
2219
|
+
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); }
|
|
2220
|
+
var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
2221
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
2222
|
+
width: 66,
|
|
2223
|
+
height: 67,
|
|
2224
|
+
viewBox: "0 0 66 67",
|
|
2225
|
+
fill: "none",
|
|
2226
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2227
|
+
ref: ref
|
|
2228
|
+
}, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2229
|
+
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",
|
|
2230
|
+
fill: "#EBEDF5"
|
|
2231
|
+
})), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2232
|
+
fillRule: "evenodd",
|
|
2233
|
+
clipRule: "evenodd",
|
|
2234
|
+
d: "m42.31 40.335 7.165 7.165L47 49.975l-7.165-7.165a13.94 13.94 0 0 1-8.585 2.94c-7.732 0-14-6.268-14-14s6.268-14 14-14 14 6.268 14 14a13.94 13.94 0 0 1-2.94 8.585ZM31.25 42.25c5.799 0 10.5-4.701 10.5-10.5s-4.701-10.5-10.5-10.5-10.5 4.701-10.5 10.5 4.701 10.5 10.5 10.5Z",
|
|
2235
|
+
fill: "#6C6F80"
|
|
2236
|
+
})));
|
|
2237
|
+
};
|
|
2238
|
+
var ForwardRef = /*#__PURE__*/React.forwardRef(SvgSearchWithBackground);
|
|
2239
|
+
|
|
1526
2240
|
class PickerModalImpl extends uuiComponents.PickerModalBase {
|
|
2241
|
+
constructor() {
|
|
2242
|
+
super(...arguments);
|
|
2243
|
+
this.renderNotFound = () => {
|
|
2244
|
+
return this.props.renderNotFound
|
|
2245
|
+
? this.props.renderNotFound({ search: this.state.dataSourceState.search, onClose: () => this.props.success(null) })
|
|
2246
|
+
: React__namespace.createElement("div", { className: css$6.noFoundModalContainer },
|
|
2247
|
+
React__namespace.createElement(uuiComponents.IconContainer, { cx: css$6.noFoundModalContainerIcon, icon: ForwardRef }),
|
|
2248
|
+
React__namespace.createElement(Text, { cx: css$6.noFoundModalContainerText, font: 'semibold', fontSize: '16', lineHeight: '24', color: 'primary', size: '36' }, i18n.dataPickerBody.noRecordsMessage),
|
|
2249
|
+
React__namespace.createElement(Text, { cx: css$6.noFoundModalContainerText, fontSize: '12', lineHeight: '18', font: 'regular', color: 'primary', size: '36' }, i18n.dataPickerBody.noRecordsSubTitle));
|
|
2250
|
+
};
|
|
2251
|
+
}
|
|
1527
2252
|
renderRow(rowProps) {
|
|
1528
2253
|
return this.props.renderRow ? this.props.renderRow(rowProps) : (React__namespace.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey, borderBottom: 'none', padding: '24', size: '36', renderItem: (i) => React__namespace.createElement(Text, { size: '36' }, rowProps.isLoading ? React__namespace.createElement(TextPlaceholder, { wordsCount: 2 }) : this.getName(i)) })));
|
|
1529
2254
|
}
|
|
@@ -1541,9 +2266,9 @@ class PickerModalImpl extends uuiComponents.PickerModalBase {
|
|
|
1541
2266
|
const dataRows = this.getRows();
|
|
1542
2267
|
const selectedDataRows = view.getSelectedRows();
|
|
1543
2268
|
const rows = dataRows.map(props => this.renderRow(props));
|
|
1544
|
-
return (React__namespace.createElement(ModalBlocker, Object.assign({}, this.props),
|
|
2269
|
+
return (React__namespace.createElement(ModalBlocker, Object.assign({ overlay: true }, this.props),
|
|
1545
2270
|
React__namespace.createElement(ModalWindow, { width: 600, height: 700 },
|
|
1546
|
-
React__namespace.createElement(ModalHeader, {
|
|
2271
|
+
React__namespace.createElement(ModalHeader, { title: this.props.caption || i18n.pickerModal.headerTitle, onClose: () => this.props.abort() }),
|
|
1547
2272
|
React__namespace.createElement(FlexCell, { cx: css$6.subHeaderWrapper },
|
|
1548
2273
|
React__namespace.createElement(FlexRow, { vPadding: '24' },
|
|
1549
2274
|
React__namespace.createElement(SearchInput, Object.assign({}, this.lens.prop('dataSourceState').prop('search').toProps(), { onKeyDown: (e) => uuiComponents.handleDataSourceKeyboard({
|
|
@@ -1555,11 +2280,8 @@ class PickerModalImpl extends uuiComponents.PickerModalBase {
|
|
|
1555
2280
|
}, e), autoFocus: true, placeholder: i18n.pickerModal.searchPlaceholder }))),
|
|
1556
2281
|
!this.isSingleSelect() && React__namespace.createElement(Switch, Object.assign({ cx: css$6.switch, size: '18' }, this.stateLens.prop('showSelected').toProps(), { isDisabled: selectedDataRows.length < 1, label: 'Show only selected' })),
|
|
1557
2282
|
this.props.renderFilter && React__namespace.createElement(FlexCell, { grow: 2 }, this.props.renderFilter(this.lens.prop('dataSourceState').prop('filter').toProps()))),
|
|
1558
|
-
React__namespace.createElement(DataPickerBody, Object.assign({}, this.getListProps(), { value: this.getDataSourceState(), onValueChange: this.handleDataSourceValueChange, search: this.lens.prop('dataSourceState').prop('search').toProps(), showSearch: false, rows: rows, renderNotFound: this.
|
|
1559
|
-
|
|
1560
|
-
onClose: () => this.props.success(selectedDataRows),
|
|
1561
|
-
})), editMode: 'modal' })),
|
|
1562
|
-
React__namespace.createElement(ModalFooter, { borderTop: true, padding: '24', vPadding: '24' }, this.props.renderFooter
|
|
2283
|
+
React__namespace.createElement(DataPickerBody, Object.assign({}, this.getListProps(), { value: this.getDataSourceState(), onValueChange: this.handleDataSourceValueChange, search: this.lens.prop('dataSourceState').prop('search').toProps(), showSearch: false, rows: rows, renderNotFound: this.renderNotFound, editMode: 'modal' })),
|
|
2284
|
+
React__namespace.createElement(ModalFooter, { padding: '24', vPadding: '24' }, this.props.renderFooter
|
|
1563
2285
|
? this.props.renderFooter(this.getFooterProps())
|
|
1564
2286
|
: this.renderFooter(selectedDataRows)))));
|
|
1565
2287
|
}
|
|
@@ -1577,7 +2299,7 @@ class PickerModal extends React__namespace.Component {
|
|
|
1577
2299
|
|
|
1578
2300
|
const Avatar = uuiCore.withMods(uuiComponents.Avatar, () => []);
|
|
1579
2301
|
|
|
1580
|
-
var css$5 = {"root":"Badge_root__wIzSP","size-18":"Badge_size-18__-VlZJ","fill-transparent":"Badge_fill-transparent__za27N","size-24":"Badge_size-24__WZsqd","size-30":"Badge_size-30__oGbuk","size-36":"Badge_size-36__MMdK5","size-42":"Badge_size-42__MOPTB","size-48":"Badge_size-48__FEYnJ","fill-solid":"Badge_fill-solid__ptnEO","size18":"Badge_size-18__-VlZJ","fillTransparent":"Badge_fill-transparent__za27N","size24":"Badge_size-24__WZsqd","size30":"Badge_size-30__oGbuk","size36":"Badge_size-36__MMdK5","size42":"Badge_size-42__MOPTB","size48":"Badge_size-48__FEYnJ","fillSolid":"Badge_fill-solid__ptnEO"};
|
|
2302
|
+
var css$5 = {"root":"Badge_root__wIzSP","size-18":"Badge_size-18__-VlZJ","fill-transparent":"Badge_fill-transparent__za27N","size-24":"Badge_size-24__WZsqd","size-30":"Badge_size-30__oGbuk","size-36":"Badge_size-36__MMdK5","size-42":"Badge_size-42__MOPTB","size-48":"Badge_size-48__FEYnJ","fill-solid":"Badge_fill-solid__ptnEO","fill-semitransparent":"Badge_fill-semitransparent__Nd9RN","size18":"Badge_size-18__-VlZJ","fillTransparent":"Badge_fill-transparent__za27N","size24":"Badge_size-24__WZsqd","size30":"Badge_size-30__oGbuk","size36":"Badge_size-36__MMdK5","size42":"Badge_size-42__MOPTB","size48":"Badge_size-48__FEYnJ","fillSolid":"Badge_fill-solid__ptnEO","fillSemitransparent":"Badge_fill-semitransparent__Nd9RN"};
|
|
1581
2303
|
|
|
1582
2304
|
const defaultSize$3 = '36';
|
|
1583
2305
|
const mapSize$1 = {
|
|
@@ -1590,11 +2312,11 @@ const mapSize$1 = {
|
|
|
1590
2312
|
};
|
|
1591
2313
|
function applyBadgeMods(mods) {
|
|
1592
2314
|
return [
|
|
1593
|
-
|
|
2315
|
+
css$5.root,
|
|
1594
2316
|
buttonCss.root,
|
|
1595
2317
|
css$5['size-' + (mods.size || defaultSize$3)],
|
|
1596
2318
|
css$5['fill-' + (mods.fill || 'solid')],
|
|
1597
|
-
|
|
2319
|
+
mods.color && `badge-${(mods.color)}`,
|
|
1598
2320
|
];
|
|
1599
2321
|
}
|
|
1600
2322
|
const Badge = uuiCore.withMods(uuiComponents.Button, applyBadgeMods, (props) => ({
|
|
@@ -1616,8 +2338,6 @@ const mapSize = {
|
|
|
1616
2338
|
};
|
|
1617
2339
|
function applyTagMods(mods) {
|
|
1618
2340
|
return [
|
|
1619
|
-
buttonCss.root,
|
|
1620
|
-
'tag-vars',
|
|
1621
2341
|
css$4['size-' + (mods.size || defaultSize$2)],
|
|
1622
2342
|
css$4.root,
|
|
1623
2343
|
];
|
|
@@ -1633,7 +2353,6 @@ const defaultSize$1 = '36';
|
|
|
1633
2353
|
const defaultMode = exports.EditMode.FORM;
|
|
1634
2354
|
function applyPickerTogglerMods(mods) {
|
|
1635
2355
|
return [
|
|
1636
|
-
'picker-toggler-vars',
|
|
1637
2356
|
css$3.root,
|
|
1638
2357
|
css$3['size-' + (mods.size || defaultSize$1)],
|
|
1639
2358
|
css$3['mode-' + (mods.mode || defaultMode)],
|
|
@@ -1669,8 +2388,9 @@ function PickerTogglerComponent(props, ref) {
|
|
|
1669
2388
|
};
|
|
1670
2389
|
const renderItem = (row) => {
|
|
1671
2390
|
var _a;
|
|
1672
|
-
return (React__namespace.createElement(Tag, { key: row.
|
|
1673
|
-
|
|
2391
|
+
return (React__namespace.createElement(Tag, { key: row.rowKey, caption: getCaption(row), tabIndex: -1, size: props.size ? getPickerTogglerButtonSize(props.size) : '30', onClear: e => {
|
|
2392
|
+
var _a;
|
|
2393
|
+
(_a = row.onCheck) === null || _a === void 0 ? void 0 : _a.call(row, row);
|
|
1674
2394
|
e.stopPropagation();
|
|
1675
2395
|
}, isDisabled: props.isDisabled || props.isReadonly || ((_a = row === null || row === void 0 ? void 0 : row.checkbox) === null || _a === void 0 ? void 0 : _a.isDisabled) }));
|
|
1676
2396
|
};
|
|
@@ -1678,7 +2398,7 @@ function PickerTogglerComponent(props, ref) {
|
|
|
1678
2398
|
}
|
|
1679
2399
|
const PickerToggler = React__namespace.forwardRef(PickerTogglerComponent);
|
|
1680
2400
|
|
|
1681
|
-
var css$2 = {"root":"PickerItem_root__m-i2g","multiline-vertical-padding-24":"PickerItem_multiline-vertical-padding-24__ivzzQ","multiline-vertical-padding-30":"PickerItem_multiline-vertical-padding-30__tBEW-","multiline-vertical-padding-36":"PickerItem_multiline-vertical-padding-36__NpueM","multiline-vertical-padding-42":"PickerItem_multiline-vertical-padding-42__UjLpR","multiline-vertical-padding-48":"PickerItem_multiline-vertical-padding-48__65Jdv","multilineVerticalPadding24":"PickerItem_multiline-vertical-padding-24__ivzzQ","multilineVerticalPadding30":"PickerItem_multiline-vertical-padding-30__tBEW-","multilineVerticalPadding36":"PickerItem_multiline-vertical-padding-36__NpueM","multilineVerticalPadding42":"PickerItem_multiline-vertical-padding-42__UjLpR","multilineVerticalPadding48":"PickerItem_multiline-vertical-padding-48__65Jdv"};
|
|
2401
|
+
var css$2 = {"root":"PickerItem_root__m-i2g","multiline-vertical-padding-24":"PickerItem_multiline-vertical-padding-24__ivzzQ","multiline-vertical-padding-30":"PickerItem_multiline-vertical-padding-30__tBEW-","multiline-vertical-padding-36":"PickerItem_multiline-vertical-padding-36__NpueM","multiline-vertical-padding-42":"PickerItem_multiline-vertical-padding-42__UjLpR","multiline-vertical-padding-48":"PickerItem_multiline-vertical-padding-48__65Jdv","text":"PickerItem_text__k9Jsu","multilineVerticalPadding24":"PickerItem_multiline-vertical-padding-24__ivzzQ","multilineVerticalPadding30":"PickerItem_multiline-vertical-padding-30__tBEW-","multilineVerticalPadding36":"PickerItem_multiline-vertical-padding-36__NpueM","multilineVerticalPadding42":"PickerItem_multiline-vertical-padding-42__UjLpR","multilineVerticalPadding48":"PickerItem_multiline-vertical-padding-48__65Jdv"};
|
|
1682
2402
|
|
|
1683
2403
|
const defaultSize = '36';
|
|
1684
2404
|
class PickerItem extends React__namespace.Component {
|
|
@@ -1689,12 +2409,13 @@ class PickerItem extends React__namespace.Component {
|
|
|
1689
2409
|
};
|
|
1690
2410
|
}
|
|
1691
2411
|
render() {
|
|
1692
|
-
const { size, avatarUrl, title, subtitle, isLoading, isDisabled } = this.props;
|
|
2412
|
+
const { size, avatarUrl, title, subtitle, isLoading, isDisabled, icon } = this.props;
|
|
1693
2413
|
const itemSize = size && size !== 'none' ? size : defaultSize;
|
|
1694
2414
|
const isMultiline = !!(title && subtitle);
|
|
1695
2415
|
return (React__namespace.createElement(FlexCell, { width: 'auto', cx: css$2.root },
|
|
1696
2416
|
React__namespace.createElement(FlexRow, { size: itemSize, cx: isMultiline && css$2[`multiline-vertical-padding-${itemSize}`], spacing: '12' },
|
|
1697
2417
|
avatarUrl && React__namespace.createElement(Avatar, { isLoading: isLoading, img: avatarUrl, size: this.getAvatarSize(itemSize, isMultiline).toString() }),
|
|
2418
|
+
icon && React__namespace.createElement(uuiComponents.IconContainer, { icon: icon }),
|
|
1698
2419
|
React__namespace.createElement(FlexCell, { width: 'auto' },
|
|
1699
2420
|
title && React__namespace.createElement(Text, { size: itemSize, cx: css$2.text, color: isDisabled ? 'disabled' : 'primary' }, isLoading ? React__namespace.createElement(TextPlaceholder, { wordsCount: 2 }) : title),
|
|
1700
2421
|
subtitle && React__namespace.createElement(Text, { size: itemSize, color: 'disabled', cx: css$2.text }, isLoading ? React__namespace.createElement(TextPlaceholder, { wordsCount: 2 }) : subtitle)))));
|
|
@@ -1712,14 +2433,19 @@ class PickerInput extends uuiComponents.PickerInputBase {
|
|
|
1712
2433
|
return React__namespace.default.createElement(PickerItem, Object.assign({ title: this.getName(item), size: this.getRowSize() }, rowProps));
|
|
1713
2434
|
};
|
|
1714
2435
|
this.renderRow = (rowProps) => {
|
|
1715
|
-
return this.props.renderRow ? this.props.renderRow(rowProps) : (React__namespace.default.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey, borderBottom: 'none', size: this.getRowSize(),
|
|
2436
|
+
return this.props.renderRow ? this.props.renderRow(rowProps) : (React__namespace.default.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey, borderBottom: 'none', size: this.getRowSize(), padding: this.props.editMode === 'modal' ? '24' : '12', renderItem: this.renderItem })));
|
|
1716
2437
|
};
|
|
1717
2438
|
}
|
|
1718
2439
|
toggleModalOpening(opened) {
|
|
1719
|
-
const _a = this.props, restProps = __rest(_a, ["renderFooter"]);
|
|
1720
|
-
this.context.uuiModals.show(props => React__namespace.default.createElement(PickerModal, Object.assign({}, restProps, props, { caption: this.getPlaceholder(), initialValue: this.props.value, renderRow: this.renderRow, selectionMode: this.props.selectionMode, valueType: this.props.valueType })))
|
|
1721
|
-
.then(newSelection =>
|
|
1722
|
-
.
|
|
2440
|
+
const _a = this.props, { renderFooter, rawProps } = _a, restProps = __rest(_a, ["renderFooter", "rawProps"]);
|
|
2441
|
+
this.context.uuiModals.show(props => React__namespace.default.createElement(PickerModal, Object.assign({}, restProps, { rawProps: rawProps === null || rawProps === void 0 ? void 0 : rawProps.body }, props, { caption: this.getPlaceholder(), initialValue: this.props.value, renderRow: this.renderRow, selectionMode: this.props.selectionMode, valueType: this.props.valueType })))
|
|
2442
|
+
.then(newSelection => {
|
|
2443
|
+
this.handleSelectionValueChange(newSelection);
|
|
2444
|
+
this.returnFocusToInput();
|
|
2445
|
+
})
|
|
2446
|
+
.catch(() => {
|
|
2447
|
+
this.returnFocusToInput();
|
|
2448
|
+
});
|
|
1723
2449
|
}
|
|
1724
2450
|
getRowSize() {
|
|
1725
2451
|
return uuiCore.isMobile()
|
|
@@ -1748,9 +2474,16 @@ class PickerInput extends uuiComponents.PickerInputBase {
|
|
|
1748
2474
|
const renderedDataRows = rows.map((props) => this.renderRow(props));
|
|
1749
2475
|
const maxHeight = uuiCore.isMobile() ? document.documentElement.clientHeight : (this.props.dropdownHeight || pickerHeight);
|
|
1750
2476
|
const minBodyWidth = uuiCore.isMobile() ? document.documentElement.clientWidth : (this.props.minBodyWidth || pickerWidth);
|
|
1751
|
-
return (React__namespace.default.createElement(Panel, { shadow: true, style: { width: props.togglerWidth > minBodyWidth ? props.togglerWidth : minBodyWidth }, rawProps: { tabIndex: -1 }, cx: [css$1.panel, uuiCore.uuiMarkers.lockFocus]
|
|
1752
|
-
React__namespace.default.createElement(MobileDropdownWrapper, { title: this.props.entityName, close: () =>
|
|
1753
|
-
|
|
2477
|
+
return (React__namespace.default.createElement(Panel, { shadow: true, style: { width: props.togglerWidth > minBodyWidth ? props.togglerWidth : minBodyWidth }, rawProps: { tabIndex: -1 }, cx: [css$1.panel, uuiCore.uuiMarkers.lockFocus] },
|
|
2478
|
+
React__namespace.default.createElement(MobileDropdownWrapper, { title: this.props.entityName, close: () => {
|
|
2479
|
+
this.returnFocusToInput();
|
|
2480
|
+
this.toggleBodyOpening(false);
|
|
2481
|
+
} },
|
|
2482
|
+
React__namespace.default.createElement(DataPickerBody, Object.assign({}, props, { rows: renderedDataRows, maxHeight: maxHeight, searchSize: this.props.size, editMode: 'dropdown', selectionMode: this.props.selectionMode, renderNotFound: this.props.renderNotFound ?
|
|
2483
|
+
() => this.props.renderNotFound({
|
|
2484
|
+
search: this.state.dataSourceState.search,
|
|
2485
|
+
onClose: () => this.toggleBodyOpening(false),
|
|
2486
|
+
}) : undefined })),
|
|
1754
2487
|
!this.isSingleSelect() && this.renderFooter())));
|
|
1755
2488
|
}
|
|
1756
2489
|
}
|
|
@@ -1819,17 +2552,26 @@ exports.Accordion = Accordion;
|
|
|
1819
2552
|
exports.Avatar = Avatar;
|
|
1820
2553
|
exports.Badge = Badge;
|
|
1821
2554
|
exports.Button = Button;
|
|
2555
|
+
exports.Calendar = Calendar;
|
|
1822
2556
|
exports.Checkbox = Checkbox;
|
|
1823
2557
|
exports.ClearNotification = ClearNotification;
|
|
2558
|
+
exports.ColumnHeaderDropdown = ColumnHeaderDropdown;
|
|
2559
|
+
exports.ColumnsConfigurationModal = ColumnsConfigurationModal;
|
|
1824
2560
|
exports.ControlGroup = ControlGroup;
|
|
1825
2561
|
exports.DataPickerBody = DataPickerBody;
|
|
1826
2562
|
exports.DataPickerFooter = DataPickerFooter;
|
|
1827
2563
|
exports.DataPickerHeader = DataPickerHeader;
|
|
1828
2564
|
exports.DataPickerRow = DataPickerRow;
|
|
2565
|
+
exports.DataTable = DataTable;
|
|
1829
2566
|
exports.DataTableCell = DataTableCell;
|
|
2567
|
+
exports.DataTableHeaderCell = DataTableHeaderCell;
|
|
2568
|
+
exports.DataTableHeaderRow = DataTableHeaderRow;
|
|
2569
|
+
exports.DataTableRow = DataTableRow;
|
|
2570
|
+
exports.DatePicker = DatePicker;
|
|
2571
|
+
exports.DatePickerBody = DatePickerBody;
|
|
2572
|
+
exports.DropMarker = DropMarker;
|
|
1830
2573
|
exports.Dropdown = Dropdown;
|
|
1831
2574
|
exports.DropdownContainer = DropdownContainer;
|
|
1832
|
-
exports.DropdownControlKeys = DropdownControlKeys;
|
|
1833
2575
|
exports.DropdownMenuBody = DropdownMenuBody;
|
|
1834
2576
|
exports.DropdownMenuButton = DropdownMenuButton;
|
|
1835
2577
|
exports.DropdownMenuHeader = DropdownMenuHeader;
|
|
@@ -1850,7 +2592,9 @@ exports.ModalBlocker = ModalBlocker;
|
|
|
1850
2592
|
exports.ModalFooter = ModalFooter;
|
|
1851
2593
|
exports.ModalHeader = ModalHeader;
|
|
1852
2594
|
exports.ModalWindow = ModalWindow;
|
|
2595
|
+
exports.MultiSwitch = MultiSwitch;
|
|
1853
2596
|
exports.NotificationCard = NotificationCard;
|
|
2597
|
+
exports.NumericInput = NumericInput;
|
|
1854
2598
|
exports.Panel = Panel;
|
|
1855
2599
|
exports.PickerInput = PickerInput;
|
|
1856
2600
|
exports.PickerItem = PickerItem;
|
|
@@ -1859,10 +2603,10 @@ exports.PickerListItem = PickerListItem;
|
|
|
1859
2603
|
exports.PickerModal = PickerModal;
|
|
1860
2604
|
exports.PickerModalImpl = PickerModalImpl;
|
|
1861
2605
|
exports.PickerToggler = PickerToggler;
|
|
1862
|
-
exports.Preset = Preset;
|
|
1863
|
-
exports.Presets = Presets;
|
|
1864
2606
|
exports.RadioGroup = RadioGroup;
|
|
1865
2607
|
exports.RadioInput = RadioInput;
|
|
2608
|
+
exports.RangeDatePicker = RangeDatePicker;
|
|
2609
|
+
exports.RangeDatePickerBody = RangeDatePickerBody;
|
|
1866
2610
|
exports.ScrollBars = ScrollBars;
|
|
1867
2611
|
exports.SearchInput = SearchInput;
|
|
1868
2612
|
exports.SuccessNotification = SuccessNotification;
|
|
@@ -1870,6 +2614,7 @@ exports.Switch = Switch;
|
|
|
1870
2614
|
exports.TabButton = TabButton;
|
|
1871
2615
|
exports.Tag = Tag;
|
|
1872
2616
|
exports.Text = Text;
|
|
2617
|
+
exports.TextArea = TextArea;
|
|
1873
2618
|
exports.TextInput = TextInput;
|
|
1874
2619
|
exports.TextPlaceholder = TextPlaceholder;
|
|
1875
2620
|
exports.Tooltip = Tooltip;
|
|
@@ -1878,6 +2623,7 @@ exports.VirtualList = VirtualList;
|
|
|
1878
2623
|
exports.WarningNotification = WarningNotification;
|
|
1879
2624
|
exports.allButtonColors = allButtonColors;
|
|
1880
2625
|
exports.allButtonModes = allButtonModes;
|
|
2626
|
+
exports.allEpamBadgeSemanticColors = allEpamBadgeSemanticColors;
|
|
1881
2627
|
exports.allEpamSemanticColors = allEpamSemanticColors;
|
|
1882
2628
|
exports.allFontStyles = allFontStyles;
|
|
1883
2629
|
exports.allIconColors = allIconColors;
|
|
@@ -1887,10 +2633,18 @@ exports.allTextSizes = allTextSizes;
|
|
|
1887
2633
|
exports.applyBadgeMods = applyBadgeMods;
|
|
1888
2634
|
exports.applyButtonMods = applyButtonMods;
|
|
1889
2635
|
exports.applyCheckboxMods = applyCheckboxMods;
|
|
2636
|
+
exports.applyDatePickerBodyMods = applyDatePickerBodyMods;
|
|
2637
|
+
exports.applyDateSelectionMods = applyDateSelectionMods;
|
|
1890
2638
|
exports.applyIconContainerMods = applyIconContainerMods;
|
|
2639
|
+
exports.applyNumericInputMods = applyNumericInputMods;
|
|
2640
|
+
exports.applyRangeDatePickerBodyMods = applyRangeDatePickerBodyMods;
|
|
1891
2641
|
exports.applySwitchMods = applySwitchMods;
|
|
1892
2642
|
exports.applyTagMods = applyTagMods;
|
|
2643
|
+
exports.applyTextAreaMods = applyTextAreaMods;
|
|
1893
2644
|
exports.applyTextInputMods = applyTextInputMods;
|
|
2645
|
+
exports.propsMods = propsMods;
|
|
2646
|
+
exports.renderCell = renderCell;
|
|
2647
|
+
exports.renderDropMarkers = renderDropMarkers;
|
|
1894
2648
|
Object.keys(uuiCore).forEach(function (k) {
|
|
1895
2649
|
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
1896
2650
|
enumerable: true,
|