@epam/uui 4.11.0-alpha.1 → 5.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/styles/buttonLayout.scss +5 -4
- package/assets/styles/controlLayout.scss +1 -1
- package/assets/styles/effects.scss +2 -2
- package/assets/styles/font-faces.scss +1 -1
- package/assets/styles/icons.scss +2 -2
- package/assets/styles/index.scss +1 -1
- package/assets/styles/inputs.scss +1 -1
- package/assets/styles/layout-mixins.scss +1 -1
- package/assets/styles/prettifyScrollBar.scss +1 -1
- package/assets/styles/text-layout.scss +1 -1
- package/assets/styles/typography-mixins.scss +1 -1
- package/assets/styles/typography.scss +3 -3
- package/assets/styles/variables/widgets/badge.scss +1 -1
- package/components/buttons/Button/Button.d.ts.map +1 -1
- package/components/buttons/IconButton.d.ts.map +1 -1
- package/components/buttons/LinkButton.d.ts.map +1 -1
- package/components/buttons/TabButton.d.ts.map +1 -1
- package/components/buttons/VerticalTabButton.d.ts.map +1 -1
- package/components/buttons/helper.d.ts.map +1 -1
- package/components/datePickers/Calendar.d.ts.map +1 -1
- package/components/datePickers/CalendarPresets.d.ts.map +1 -1
- package/components/datePickers/DatePicker.d.ts +3 -3
- package/components/datePickers/DatePicker.d.ts.map +1 -1
- package/components/datePickers/DatePickerBody.d.ts.map +1 -1
- package/components/datePickers/RangeDatePicker.d.ts +1 -1
- package/components/datePickers/RangeDatePicker.d.ts.map +1 -1
- package/components/datePickers/RangeDatePickerBody.d.ts.map +1 -1
- package/components/dnd/DropMarker.d.ts.map +1 -1
- package/components/filters/FilterDataPickerBody.d.ts +1 -1
- package/components/filters/FilterDataPickerBody.d.ts.map +1 -1
- package/components/filters/FilterItemBody.d.ts +3 -2
- package/components/filters/FilterItemBody.d.ts.map +1 -1
- package/components/filters/FilterNumericBody.d.ts +3 -2
- package/components/filters/FilterNumericBody.d.ts.map +1 -1
- package/components/filters/FilterPanelItemToggler.d.ts +1 -1
- package/components/filters/FilterPanelItemToggler.d.ts.map +1 -1
- package/components/filters/FilterPickerBody.d.ts +2 -4
- package/components/filters/FilterPickerBody.d.ts.map +1 -1
- package/components/filters/FilterRangeDatePickerBody.d.ts +1 -1
- package/components/filters/FilterRangeDatePickerBody.d.ts.map +1 -1
- package/components/filters/FiltersPanel.d.ts +5 -3
- package/components/filters/FiltersPanel.d.ts.map +1 -1
- package/components/filters/FiltersPanelItem.d.ts +5 -3
- package/components/filters/FiltersPanelItem.d.ts.map +1 -1
- package/components/filters/PresetPanel/Preset.d.ts +3 -2
- package/components/filters/PresetPanel/Preset.d.ts.map +1 -1
- package/components/filters/PresetPanel/PresetActionsDropdown.d.ts +3 -2
- package/components/filters/PresetPanel/PresetActionsDropdown.d.ts.map +1 -1
- package/components/filters/PresetPanel/PresetInput.d.ts +3 -2
- package/components/filters/PresetPanel/PresetInput.d.ts.map +1 -1
- package/components/filters/PresetPanel/PresetsPanel.d.ts +4 -4
- package/components/filters/PresetPanel/PresetsPanel.d.ts.map +1 -1
- package/components/filters/defaultPredicates.d.ts +1 -1
- package/components/filters/defaultPredicates.d.ts.map +1 -1
- package/components/filters/index.d.ts +4 -4
- package/components/forms/Form.d.ts.map +1 -1
- package/components/forms/useForm.d.ts +1 -1
- package/components/forms/useForm.d.ts.map +1 -1
- package/components/inputs/Checkbox.d.ts.map +1 -1
- package/components/inputs/NumericInput.d.ts +3 -3
- package/components/inputs/NumericInput.d.ts.map +1 -1
- package/components/inputs/RadioInput.d.ts.map +1 -1
- package/components/inputs/Switch.d.ts.map +1 -1
- package/components/inputs/TextArea.d.ts.map +1 -1
- package/components/inputs/TextInput.d.ts +1 -1
- package/components/inputs/TextInput.d.ts.map +1 -1
- package/components/layout/Accordion.d.ts.map +1 -1
- package/components/layout/Blocker.d.ts.map +1 -1
- 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.map +1 -1
- package/components/layout/FlexItems/index.d.ts +1 -1
- package/components/layout/FlexItems/index.d.ts.map +1 -1
- package/components/layout/LabeledInput.d.ts.map +1 -1
- package/components/layout/RadioGroup.d.ts.map +1 -1
- package/components/layout/ScrollBars.d.ts.map +1 -1
- package/components/navigation/Anchor.d.ts +3 -0
- package/components/navigation/Anchor.d.ts.map +1 -0
- package/components/navigation/MainMenu/Burger/Burger.d.ts.map +1 -1
- package/components/navigation/MainMenu/Burger/BurgerButton.d.ts.map +1 -1
- package/components/navigation/MainMenu/Burger/BurgerGroupHeader.d.ts +2 -1
- package/components/navigation/MainMenu/Burger/BurgerGroupHeader.d.ts.map +1 -1
- package/components/navigation/MainMenu/Burger/BurgerSearch.d.ts +2 -1
- package/components/navigation/MainMenu/Burger/BurgerSearch.d.ts.map +1 -1
- package/components/navigation/MainMenu/GlobalMenu.d.ts +2 -2
- package/components/navigation/MainMenu/GlobalMenu.d.ts.map +1 -1
- package/components/navigation/MainMenu/MainMenuAvatar.d.ts +1 -1
- package/components/navigation/MainMenu/MainMenuAvatar.d.ts.map +1 -1
- package/components/navigation/MainMenu/MainMenuButton.d.ts.map +1 -1
- package/components/navigation/MainMenu/MainMenuSearch.d.ts +1 -1
- package/components/navigation/MainMenu/MainMenuSearch.d.ts.map +1 -1
- package/components/navigation/index.d.ts +1 -0
- package/components/navigation/index.d.ts.map +1 -1
- package/components/overlays/Alert.d.ts.map +1 -1
- package/components/overlays/ConfirmationModal.d.ts.map +1 -1
- package/components/overlays/Dropdown.d.ts.map +1 -1
- package/components/overlays/DropdownContainer.d.ts.map +1 -1
- package/components/overlays/DropdownMenu.d.ts +4 -4
- package/components/overlays/DropdownMenu.d.ts.map +1 -1
- package/components/overlays/Modals.d.ts.map +1 -1
- package/components/overlays/NotificationCard.d.ts.map +1 -1
- package/components/overlays/Tooltip.d.ts +4 -2
- package/components/overlays/Tooltip.d.ts.map +1 -1
- package/components/overlays/index.d.ts +1 -0
- package/components/overlays/index.d.ts.map +1 -1
- package/components/pickers/DataPickerBody.d.ts.map +1 -1
- package/components/pickers/DataPickerFooter.d.ts +4 -3
- package/components/pickers/DataPickerFooter.d.ts.map +1 -1
- package/components/pickers/DataPickerHeader.d.ts.map +1 -1
- package/components/pickers/DataPickerRow.d.ts.map +1 -1
- package/components/pickers/MobileDropdownWrapper.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.map +1 -1
- package/components/pickers/PickerList.d.ts +2 -2
- package/components/pickers/PickerList.d.ts.map +1 -1
- package/components/pickers/PickerListItem.d.ts.map +1 -1
- package/components/pickers/PickerModal.d.ts +1 -1
- package/components/pickers/PickerModal.d.ts.map +1 -1
- package/components/pickers/PickerToggler.d.ts.map +1 -1
- package/components/pickers/helpers.d.ts +2 -0
- package/components/pickers/helpers.d.ts.map +1 -0
- package/components/tables/ColumnHeaderDropdown/ColumnHeaderDropdown.d.ts +1 -1
- package/components/tables/ColumnHeaderDropdown/ColumnHeaderDropdown.d.ts.map +1 -1
- package/components/tables/ColumnHeaderDropdown/SortingPanel.d.ts +2 -2
- package/components/tables/ColumnHeaderDropdown/SortingPanel.d.ts.map +1 -1
- package/components/tables/ColumnHeaderDropdown/index.d.ts +1 -1
- package/components/tables/DataTable.d.ts.map +1 -1
- package/components/tables/DataTableCell.d.ts.map +1 -1
- package/components/tables/DataTableHeaderCell.d.ts.map +1 -1
- package/components/tables/DataTableHeaderRow.d.ts.map +1 -1
- package/components/tables/DataTableRow.d.ts.map +1 -1
- package/components/tables/columnsConfigurationModal/ColumnRow.d.ts +2 -2
- package/components/tables/columnsConfigurationModal/ColumnRow.d.ts.map +1 -1
- package/components/tables/columnsConfigurationModal/ColumnsConfigurationModal.d.ts +1 -1
- package/components/tables/columnsConfigurationModal/ColumnsConfigurationModal.d.ts.map +1 -1
- package/components/tables/columnsConfigurationModal/PinIconButton.d.ts.map +1 -1
- package/components/tables/types.d.ts +0 -4
- package/components/tables/types.d.ts.map +1 -1
- package/components/types.d.ts +2 -0
- package/components/types.d.ts.map +1 -1
- package/components/typography/RichTextView.d.ts.map +1 -1
- package/components/typography/Text.d.ts.map +1 -1
- package/components/typography/TextPlaceholder.d.ts +2 -2
- package/components/typography/TextPlaceholder.d.ts.map +1 -1
- package/components/widgets/AvatarStack.d.ts +4 -0
- package/components/widgets/AvatarStack.d.ts.map +1 -0
- package/components/widgets/Badge.d.ts +1 -1
- package/components/widgets/Badge.d.ts.map +1 -1
- package/components/widgets/Paginator.d.ts +4 -0
- package/components/widgets/Paginator.d.ts.map +1 -0
- package/components/widgets/Spinner.d.ts.map +1 -1
- package/components/widgets/Tag.d.ts.map +1 -1
- package/components/widgets/index.d.ts +2 -0
- package/components/widgets/index.d.ts.map +1 -1
- package/helpers/index.d.ts +2 -2
- package/helpers/textLayout.d.ts.map +1 -1
- package/helpers/useColumnsWithFilters.d.ts +1 -1
- package/helpers/useColumnsWithFilters.d.ts.map +1 -1
- package/icons/icons.d.ts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.esm.js +3665 -0
- package/index.esm.js.map +1 -0
- package/index.js +1128 -1042
- package/index.js.map +1 -1
- package/package.json +11 -10
- package/readme.md +2 -2
- package/stats.html +2462 -329
- package/styles.css +681 -744
- package/styles.css.map +1 -1
- package/components/buttons/Button/Button.test.d.ts +0 -2
- package/components/buttons/Button/Button.test.d.ts.map +0 -1
- package/components/layout/FlexItems/FlexSpacer.d.ts +0 -5
- package/components/layout/FlexItems/FlexSpacer.d.ts.map +0 -1
package/index.js
CHANGED
|
@@ -6,7 +6,6 @@ var React = require('react');
|
|
|
6
6
|
var cx = require('classnames');
|
|
7
7
|
var FocusLock = require('react-focus-lock');
|
|
8
8
|
var sortBy = require('lodash.sortby');
|
|
9
|
-
var dayjs = require('dayjs');
|
|
10
9
|
|
|
11
10
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
11
|
|
|
@@ -32,404 +31,405 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
|
32
31
|
var cx__default = /*#__PURE__*/_interopDefault(cx);
|
|
33
32
|
var FocusLock__default = /*#__PURE__*/_interopDefault(FocusLock);
|
|
34
33
|
var sortBy__default = /*#__PURE__*/_interopDefault(sortBy);
|
|
35
|
-
var dayjs__default = /*#__PURE__*/_interopDefault(dayjs);
|
|
36
34
|
|
|
37
|
-
var _path$
|
|
38
|
-
function _extends$
|
|
35
|
+
var _path$11;
|
|
36
|
+
function _extends$14() { _extends$14 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$14.apply(this, arguments); }
|
|
39
37
|
var SvgBtnCross12 = function SvgBtnCross12(props, ref) {
|
|
40
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
38
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$14({
|
|
41
39
|
xmlns: "http://www.w3.org/2000/svg",
|
|
42
40
|
width: 12,
|
|
43
41
|
height: 12,
|
|
44
42
|
viewBox: "0 0 12 12",
|
|
45
43
|
ref: ref
|
|
46
|
-
}, props), _path$
|
|
44
|
+
}, props), _path$11 || (_path$11 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
47
45
|
fillRule: "evenodd",
|
|
48
46
|
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"
|
|
49
47
|
})));
|
|
50
48
|
};
|
|
51
|
-
var ForwardRef$
|
|
49
|
+
var ForwardRef$14 = /*#__PURE__*/React.forwardRef(SvgBtnCross12);
|
|
52
50
|
|
|
53
|
-
var _path$
|
|
54
|
-
function _extends
|
|
51
|
+
var _path$10;
|
|
52
|
+
function _extends$13() { _extends$13 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$13.apply(this, arguments); }
|
|
55
53
|
var SvgBtnCross18 = function SvgBtnCross18(props, ref) {
|
|
56
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends
|
|
54
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$13({
|
|
57
55
|
xmlns: "http://www.w3.org/2000/svg",
|
|
58
56
|
width: 18,
|
|
59
57
|
height: 18,
|
|
60
58
|
viewBox: "0 0 18 18",
|
|
61
59
|
ref: ref
|
|
62
|
-
}, props), _path$
|
|
60
|
+
}, props), _path$10 || (_path$10 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
63
61
|
fillRule: "evenodd",
|
|
64
62
|
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"
|
|
65
63
|
})));
|
|
66
64
|
};
|
|
67
|
-
var ForwardRef
|
|
65
|
+
var ForwardRef$13 = /*#__PURE__*/React.forwardRef(SvgBtnCross18);
|
|
68
66
|
|
|
69
|
-
var _path
|
|
70
|
-
function _extends$
|
|
67
|
+
var _path$$;
|
|
68
|
+
function _extends$12() { _extends$12 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$12.apply(this, arguments); }
|
|
71
69
|
var SvgBtnCross24 = function SvgBtnCross24(props, ref) {
|
|
72
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
70
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$12({
|
|
73
71
|
xmlns: "http://www.w3.org/2000/svg",
|
|
74
72
|
width: 24,
|
|
75
73
|
height: 24,
|
|
76
74
|
viewBox: "0 0 24 24",
|
|
77
75
|
ref: ref
|
|
78
|
-
}, props), _path
|
|
76
|
+
}, props), _path$$ || (_path$$ = /*#__PURE__*/React__namespace.createElement("path", {
|
|
79
77
|
fillRule: "evenodd",
|
|
80
78
|
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"
|
|
81
79
|
})));
|
|
82
80
|
};
|
|
83
|
-
var ForwardRef$
|
|
81
|
+
var ForwardRef$12 = /*#__PURE__*/React.forwardRef(SvgBtnCross24);
|
|
84
82
|
|
|
85
|
-
var _path$
|
|
86
|
-
function _extends$
|
|
83
|
+
var _path$_;
|
|
84
|
+
function _extends$11() { _extends$11 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$11.apply(this, arguments); }
|
|
87
85
|
var SvgFoldingArrow12 = function SvgFoldingArrow12(props, ref) {
|
|
88
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
86
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$11({
|
|
89
87
|
xmlns: "http://www.w3.org/2000/svg",
|
|
90
88
|
width: 12,
|
|
91
89
|
height: 12,
|
|
92
90
|
viewBox: "0 0 12 12",
|
|
93
91
|
ref: ref
|
|
94
|
-
}, props), _path$
|
|
92
|
+
}, props), _path$_ || (_path$_ = /*#__PURE__*/React__namespace.createElement("path", {
|
|
95
93
|
fillRule: "evenodd",
|
|
96
94
|
d: "M8.295 4.295 6 6.585l-2.295-2.29L3 5l3 3 3-3z"
|
|
97
95
|
})));
|
|
98
96
|
};
|
|
99
|
-
var ForwardRef$
|
|
97
|
+
var ForwardRef$11 = /*#__PURE__*/React.forwardRef(SvgFoldingArrow12);
|
|
100
98
|
|
|
101
|
-
var _path$
|
|
102
|
-
function _extends$
|
|
99
|
+
var _path$Z;
|
|
100
|
+
function _extends$10() { _extends$10 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$10.apply(this, arguments); }
|
|
103
101
|
var SvgFoldingArrow18 = function SvgFoldingArrow18(props, ref) {
|
|
104
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
102
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$10({
|
|
105
103
|
xmlns: "http://www.w3.org/2000/svg",
|
|
106
104
|
width: 18,
|
|
107
105
|
height: 18,
|
|
108
106
|
viewBox: "0 0 18 18",
|
|
109
107
|
ref: ref
|
|
110
|
-
}, props), _path$
|
|
108
|
+
}, props), _path$Z || (_path$Z = /*#__PURE__*/React__namespace.createElement("path", {
|
|
111
109
|
fillRule: "evenodd",
|
|
112
110
|
d: "M12.443 6.442 9 9.877 5.558 6.442 4.5 7.5 9 12l4.5-4.5z"
|
|
113
111
|
})));
|
|
114
112
|
};
|
|
115
|
-
var ForwardRef$
|
|
113
|
+
var ForwardRef$10 = /*#__PURE__*/React.forwardRef(SvgFoldingArrow18);
|
|
116
114
|
|
|
117
|
-
var _path$
|
|
118
|
-
function _extends
|
|
115
|
+
var _path$Y;
|
|
116
|
+
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); }
|
|
119
117
|
var SvgFoldingArrow24 = function SvgFoldingArrow24(props, ref) {
|
|
120
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends
|
|
118
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$$({
|
|
121
119
|
xmlns: "http://www.w3.org/2000/svg",
|
|
122
120
|
width: 24,
|
|
123
121
|
height: 24,
|
|
124
122
|
viewBox: "0 0 24 24",
|
|
125
123
|
ref: ref
|
|
126
|
-
}, props), _path$
|
|
124
|
+
}, props), _path$Y || (_path$Y = /*#__PURE__*/React__namespace.createElement("path", {
|
|
127
125
|
fillRule: "evenodd",
|
|
128
126
|
d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
|
|
129
127
|
})));
|
|
130
128
|
};
|
|
131
|
-
var ForwardRef
|
|
129
|
+
var ForwardRef$$ = /*#__PURE__*/React.forwardRef(SvgFoldingArrow24);
|
|
132
130
|
|
|
133
|
-
var _path$
|
|
134
|
-
function _extends$
|
|
131
|
+
var _path$X;
|
|
132
|
+
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); }
|
|
135
133
|
var SvgAccept12 = function SvgAccept12(props, ref) {
|
|
136
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
134
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$_({
|
|
137
135
|
xmlns: "http://www.w3.org/2000/svg",
|
|
138
136
|
width: 12,
|
|
139
137
|
height: 12,
|
|
140
138
|
viewBox: "0 0 12 12",
|
|
141
139
|
ref: ref
|
|
142
|
-
}, props), _path$
|
|
140
|
+
}, props), _path$X || (_path$X = /*#__PURE__*/React__namespace.createElement("path", {
|
|
143
141
|
fillRule: "evenodd",
|
|
144
142
|
d: "M4.846 6.8 9.462 2 11 3.6 4.846 10l-.77-.8L1 6l1.538-1.6 2.308 2.4z"
|
|
145
143
|
})));
|
|
146
144
|
};
|
|
147
|
-
var ForwardRef$
|
|
145
|
+
var ForwardRef$_ = /*#__PURE__*/React.forwardRef(SvgAccept12);
|
|
148
146
|
|
|
149
|
-
var _path$
|
|
150
|
-
function _extends$
|
|
147
|
+
var _path$W;
|
|
148
|
+
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); }
|
|
151
149
|
var SvgAccept18 = function SvgAccept18(props, ref) {
|
|
152
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
150
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$Z({
|
|
153
151
|
xmlns: "http://www.w3.org/2000/svg",
|
|
154
152
|
width: 18,
|
|
155
153
|
height: 18,
|
|
156
154
|
viewBox: "0 0 18 18",
|
|
157
155
|
ref: ref
|
|
158
|
-
}, props), _path$
|
|
156
|
+
}, props), _path$W || (_path$W = /*#__PURE__*/React__namespace.createElement("path", {
|
|
159
157
|
fillRule: "evenodd",
|
|
160
158
|
d: "M7.136 11.91 4.034 8.776 3 9.821 7.136 14 16 5.045 14.966 4z"
|
|
161
159
|
})));
|
|
162
160
|
};
|
|
163
|
-
var ForwardRef$
|
|
161
|
+
var ForwardRef$Z = /*#__PURE__*/React.forwardRef(SvgAccept18);
|
|
164
162
|
|
|
165
|
-
var _path$
|
|
166
|
-
function _extends$
|
|
163
|
+
var _path$V;
|
|
164
|
+
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); }
|
|
167
165
|
var SvgAccept24 = function SvgAccept24(props, ref) {
|
|
168
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
166
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$Y({
|
|
169
167
|
xmlns: "http://www.w3.org/2000/svg",
|
|
170
168
|
width: 24,
|
|
171
169
|
height: 24,
|
|
172
170
|
viewBox: "0 0 24 24",
|
|
173
171
|
ref: ref
|
|
174
|
-
}, props), _path$
|
|
172
|
+
}, props), _path$V || (_path$V = /*#__PURE__*/React__namespace.createElement("path", {
|
|
175
173
|
fillRule: "evenodd",
|
|
176
174
|
d: "m9.727 16.075-4.295-4.388L4 13.149 9.727 19 22 6.463 20.568 5z"
|
|
177
175
|
})));
|
|
178
176
|
};
|
|
179
|
-
var ForwardRef$
|
|
177
|
+
var ForwardRef$Y = /*#__PURE__*/React.forwardRef(SvgAccept24);
|
|
180
178
|
|
|
181
|
-
var _path$
|
|
182
|
-
function _extends$
|
|
179
|
+
var _path$U;
|
|
180
|
+
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); }
|
|
183
181
|
var SvgSearch12 = function SvgSearch12(props, ref) {
|
|
184
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
182
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$X({
|
|
185
183
|
xmlns: "http://www.w3.org/2000/svg",
|
|
186
184
|
width: 12,
|
|
187
185
|
height: 12,
|
|
188
186
|
viewBox: "0 0 12 12",
|
|
189
187
|
ref: ref
|
|
190
|
-
}, props), _path$
|
|
188
|
+
}, props), _path$U || (_path$U = /*#__PURE__*/React__namespace.createElement("path", {
|
|
191
189
|
fillRule: "evenodd",
|
|
192
190
|
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"
|
|
193
191
|
})));
|
|
194
192
|
};
|
|
195
|
-
var ForwardRef$
|
|
193
|
+
var ForwardRef$X = /*#__PURE__*/React.forwardRef(SvgSearch12);
|
|
196
194
|
|
|
197
|
-
var _path$
|
|
198
|
-
function _extends$
|
|
195
|
+
var _path$T;
|
|
196
|
+
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); }
|
|
199
197
|
var SvgSearch18 = function SvgSearch18(props, ref) {
|
|
200
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
198
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$W({
|
|
201
199
|
xmlns: "http://www.w3.org/2000/svg",
|
|
202
200
|
width: 18,
|
|
203
201
|
height: 18,
|
|
204
202
|
viewBox: "0 0 18 18",
|
|
205
203
|
ref: ref
|
|
206
|
-
}, props), _path$
|
|
204
|
+
}, props), _path$T || (_path$T = /*#__PURE__*/React__namespace.createElement("path", {
|
|
207
205
|
fillRule: "evenodd",
|
|
208
206
|
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"
|
|
209
207
|
})));
|
|
210
208
|
};
|
|
211
|
-
var ForwardRef$
|
|
209
|
+
var ForwardRef$W = /*#__PURE__*/React.forwardRef(SvgSearch18);
|
|
212
210
|
|
|
213
|
-
var _path$
|
|
214
|
-
function _extends$
|
|
211
|
+
var _path$S;
|
|
212
|
+
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); }
|
|
215
213
|
var SvgSearch24 = function SvgSearch24(props, ref) {
|
|
216
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
214
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$V({
|
|
217
215
|
xmlns: "http://www.w3.org/2000/svg",
|
|
218
216
|
width: 24,
|
|
219
217
|
height: 24,
|
|
220
218
|
viewBox: "0 0 24 24",
|
|
221
219
|
ref: ref
|
|
222
|
-
}, props), _path$
|
|
220
|
+
}, props), _path$S || (_path$S = /*#__PURE__*/React__namespace.createElement("path", {
|
|
223
221
|
fillRule: "evenodd",
|
|
224
222
|
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"
|
|
225
223
|
})));
|
|
226
224
|
};
|
|
227
|
-
var ForwardRef$
|
|
225
|
+
var ForwardRef$V = /*#__PURE__*/React.forwardRef(SvgSearch24);
|
|
228
226
|
|
|
229
|
-
var _path$
|
|
230
|
-
function _extends$
|
|
227
|
+
var _path$R;
|
|
228
|
+
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); }
|
|
231
229
|
var SvgCalendar12 = function SvgCalendar12(props, ref) {
|
|
232
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
230
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$U({
|
|
233
231
|
xmlns: "http://www.w3.org/2000/svg",
|
|
234
232
|
width: 12,
|
|
235
233
|
height: 12,
|
|
236
234
|
viewBox: "0 0 12 12",
|
|
237
235
|
ref: ref
|
|
238
|
-
}, props), _path$
|
|
236
|
+
}, props), _path$R || (_path$R = /*#__PURE__*/React__namespace.createElement("path", {
|
|
239
237
|
fillRule: "evenodd",
|
|
240
238
|
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"
|
|
241
239
|
})));
|
|
242
240
|
};
|
|
243
|
-
var ForwardRef$
|
|
241
|
+
var ForwardRef$U = /*#__PURE__*/React.forwardRef(SvgCalendar12);
|
|
244
242
|
|
|
245
|
-
var _path$
|
|
246
|
-
function _extends$
|
|
243
|
+
var _path$Q;
|
|
244
|
+
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); }
|
|
247
245
|
var SvgCalendar18 = function SvgCalendar18(props, ref) {
|
|
248
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
246
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$T({
|
|
249
247
|
xmlns: "http://www.w3.org/2000/svg",
|
|
250
248
|
width: 18,
|
|
251
249
|
height: 18,
|
|
252
250
|
viewBox: "0 0 18 18",
|
|
253
251
|
ref: ref
|
|
254
|
-
}, props), _path$
|
|
252
|
+
}, props), _path$Q || (_path$Q = /*#__PURE__*/React__namespace.createElement("path", {
|
|
255
253
|
fillRule: "evenodd",
|
|
256
254
|
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"
|
|
257
255
|
})));
|
|
258
256
|
};
|
|
259
|
-
var ForwardRef$
|
|
257
|
+
var ForwardRef$T = /*#__PURE__*/React.forwardRef(SvgCalendar18);
|
|
260
258
|
|
|
261
|
-
var _path$
|
|
262
|
-
function _extends$
|
|
259
|
+
var _path$P;
|
|
260
|
+
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); }
|
|
263
261
|
var SvgCalendar24 = function SvgCalendar24(props, ref) {
|
|
264
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
262
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$S({
|
|
265
263
|
xmlns: "http://www.w3.org/2000/svg",
|
|
266
264
|
width: 24,
|
|
267
265
|
height: 24,
|
|
268
266
|
viewBox: "0 0 24 24",
|
|
269
267
|
ref: ref
|
|
270
|
-
}, props), _path$
|
|
268
|
+
}, props), _path$P || (_path$P = /*#__PURE__*/React__namespace.createElement("path", {
|
|
271
269
|
fillRule: "evenodd",
|
|
272
270
|
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"
|
|
273
271
|
})));
|
|
274
272
|
};
|
|
275
|
-
var ForwardRef$
|
|
273
|
+
var ForwardRef$S = /*#__PURE__*/React.forwardRef(SvgCalendar24);
|
|
276
274
|
|
|
277
|
-
var _path$
|
|
278
|
-
function _extends$
|
|
275
|
+
var _path$O;
|
|
276
|
+
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); }
|
|
279
277
|
var SvgInfo12 = function SvgInfo12(props, ref) {
|
|
280
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
278
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$R({
|
|
281
279
|
width: 12,
|
|
282
280
|
height: 12,
|
|
283
281
|
viewBox: "0 0 12 12",
|
|
284
282
|
xmlns: "http://www.w3.org/2000/svg",
|
|
285
283
|
ref: ref
|
|
286
|
-
}, props), _path$
|
|
284
|
+
}, props), _path$O || (_path$O = /*#__PURE__*/React__namespace.createElement("path", {
|
|
287
285
|
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",
|
|
288
286
|
fillRule: "evenodd"
|
|
289
287
|
})));
|
|
290
288
|
};
|
|
291
|
-
var ForwardRef$
|
|
289
|
+
var ForwardRef$R = /*#__PURE__*/React.forwardRef(SvgInfo12);
|
|
292
290
|
|
|
293
|
-
var _path$
|
|
294
|
-
function _extends$
|
|
291
|
+
var _path$N;
|
|
292
|
+
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); }
|
|
295
293
|
var SvgInfo18 = function SvgInfo18(props, ref) {
|
|
296
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
294
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$Q({
|
|
297
295
|
xmlns: "http://www.w3.org/2000/svg",
|
|
298
296
|
width: 18,
|
|
299
297
|
height: 18,
|
|
300
298
|
viewBox: "0 0 18 18",
|
|
301
299
|
ref: ref
|
|
302
|
-
}, props), _path$
|
|
300
|
+
}, props), _path$N || (_path$N = /*#__PURE__*/React__namespace.createElement("path", {
|
|
303
301
|
fillRule: "evenodd",
|
|
304
302
|
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"
|
|
305
303
|
})));
|
|
306
304
|
};
|
|
307
|
-
var ForwardRef$
|
|
305
|
+
var ForwardRef$Q = /*#__PURE__*/React.forwardRef(SvgInfo18);
|
|
308
306
|
|
|
309
|
-
var _path$
|
|
310
|
-
function _extends$
|
|
307
|
+
var _path$M;
|
|
308
|
+
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); }
|
|
311
309
|
var SvgInfo24 = function SvgInfo24(props, ref) {
|
|
312
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
310
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$P({
|
|
313
311
|
xmlns: "http://www.w3.org/2000/svg",
|
|
314
312
|
width: 24,
|
|
315
313
|
height: 24,
|
|
316
314
|
viewBox: "0 0 24 24",
|
|
317
315
|
ref: ref
|
|
318
|
-
}, props), _path$
|
|
316
|
+
}, props), _path$M || (_path$M = /*#__PURE__*/React__namespace.createElement("path", {
|
|
319
317
|
fillRule: "evenodd",
|
|
320
318
|
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"
|
|
321
319
|
})));
|
|
322
320
|
};
|
|
323
|
-
var ForwardRef$
|
|
321
|
+
var ForwardRef$P = /*#__PURE__*/React.forwardRef(SvgInfo24);
|
|
324
322
|
|
|
325
|
-
var _path$
|
|
326
|
-
function _extends$
|
|
323
|
+
var _path$L;
|
|
324
|
+
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); }
|
|
327
325
|
var SvgHelpFill10 = function SvgHelpFill10(props, ref) {
|
|
328
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
326
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$O({
|
|
329
327
|
width: 10,
|
|
330
328
|
height: 10,
|
|
331
329
|
viewBox: "0 0 10 10",
|
|
332
330
|
xmlns: "http://www.w3.org/2000/svg",
|
|
333
331
|
ref: ref
|
|
334
|
-
}, props), _path$
|
|
332
|
+
}, props), _path$L || (_path$L = /*#__PURE__*/React__namespace.createElement("path", {
|
|
335
333
|
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"
|
|
336
334
|
})));
|
|
337
335
|
};
|
|
338
|
-
var ForwardRef$
|
|
336
|
+
var ForwardRef$O = /*#__PURE__*/React.forwardRef(SvgHelpFill10);
|
|
339
337
|
|
|
340
|
-
var _path$
|
|
341
|
-
function _extends$
|
|
338
|
+
var _path$K;
|
|
339
|
+
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); }
|
|
342
340
|
var SvgHelpFill16 = function SvgHelpFill16(props, ref) {
|
|
343
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
341
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$N({
|
|
344
342
|
width: 16,
|
|
345
343
|
height: 16,
|
|
346
344
|
viewBox: "0 0 16 16",
|
|
347
345
|
xmlns: "http://www.w3.org/2000/svg",
|
|
348
346
|
ref: ref
|
|
349
|
-
}, props), _path$
|
|
347
|
+
}, props), _path$K || (_path$K = /*#__PURE__*/React__namespace.createElement("path", {
|
|
350
348
|
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"
|
|
351
349
|
})));
|
|
352
350
|
};
|
|
353
|
-
var ForwardRef$
|
|
351
|
+
var ForwardRef$N = /*#__PURE__*/React.forwardRef(SvgHelpFill16);
|
|
354
352
|
|
|
355
353
|
const systemIcons = {
|
|
356
|
-
|
|
357
|
-
clear: ForwardRef$
|
|
358
|
-
foldingArrow: ForwardRef$
|
|
359
|
-
accept: ForwardRef$
|
|
360
|
-
search: ForwardRef$
|
|
361
|
-
calendar: ForwardRef$
|
|
362
|
-
info: ForwardRef$
|
|
363
|
-
help: ForwardRef$
|
|
354
|
+
18: {
|
|
355
|
+
clear: ForwardRef$14,
|
|
356
|
+
foldingArrow: ForwardRef$11,
|
|
357
|
+
accept: ForwardRef$_,
|
|
358
|
+
search: ForwardRef$X,
|
|
359
|
+
calendar: ForwardRef$U,
|
|
360
|
+
info: ForwardRef$R,
|
|
361
|
+
help: ForwardRef$O,
|
|
364
362
|
},
|
|
365
|
-
|
|
366
|
-
clear: ForwardRef$
|
|
367
|
-
foldingArrow: ForwardRef$
|
|
368
|
-
accept: ForwardRef$
|
|
369
|
-
search: ForwardRef$
|
|
370
|
-
calendar: ForwardRef$
|
|
371
|
-
info: ForwardRef$
|
|
372
|
-
help: ForwardRef$
|
|
363
|
+
24: {
|
|
364
|
+
clear: ForwardRef$14,
|
|
365
|
+
foldingArrow: ForwardRef$11,
|
|
366
|
+
accept: ForwardRef$_,
|
|
367
|
+
search: ForwardRef$X,
|
|
368
|
+
calendar: ForwardRef$U,
|
|
369
|
+
info: ForwardRef$R,
|
|
370
|
+
help: ForwardRef$O,
|
|
373
371
|
},
|
|
374
|
-
|
|
375
|
-
clear: ForwardRef
|
|
376
|
-
foldingArrow: ForwardRef$
|
|
377
|
-
accept: ForwardRef$
|
|
378
|
-
search: ForwardRef$
|
|
379
|
-
calendar: ForwardRef$
|
|
380
|
-
info: ForwardRef$
|
|
381
|
-
help: ForwardRef$
|
|
372
|
+
30: {
|
|
373
|
+
clear: ForwardRef$13,
|
|
374
|
+
foldingArrow: ForwardRef$10,
|
|
375
|
+
accept: ForwardRef$Z,
|
|
376
|
+
search: ForwardRef$W,
|
|
377
|
+
calendar: ForwardRef$T,
|
|
378
|
+
info: ForwardRef$Q,
|
|
379
|
+
help: ForwardRef$O,
|
|
382
380
|
},
|
|
383
|
-
|
|
384
|
-
clear: ForwardRef
|
|
385
|
-
foldingArrow: ForwardRef$
|
|
386
|
-
accept: ForwardRef$
|
|
387
|
-
search: ForwardRef$
|
|
388
|
-
calendar: ForwardRef$
|
|
389
|
-
info: ForwardRef$
|
|
390
|
-
help: ForwardRef$
|
|
381
|
+
36: {
|
|
382
|
+
clear: ForwardRef$13,
|
|
383
|
+
foldingArrow: ForwardRef$10,
|
|
384
|
+
accept: ForwardRef$Z,
|
|
385
|
+
search: ForwardRef$W,
|
|
386
|
+
calendar: ForwardRef$T,
|
|
387
|
+
info: ForwardRef$Q,
|
|
388
|
+
help: ForwardRef$N,
|
|
391
389
|
},
|
|
392
|
-
|
|
393
|
-
clear: ForwardRef
|
|
394
|
-
foldingArrow: ForwardRef$
|
|
395
|
-
accept: ForwardRef$
|
|
396
|
-
search: ForwardRef$
|
|
397
|
-
calendar: ForwardRef$
|
|
398
|
-
info: ForwardRef$
|
|
399
|
-
help: ForwardRef$
|
|
390
|
+
42: {
|
|
391
|
+
clear: ForwardRef$13,
|
|
392
|
+
foldingArrow: ForwardRef$10,
|
|
393
|
+
accept: ForwardRef$Z,
|
|
394
|
+
search: ForwardRef$W,
|
|
395
|
+
calendar: ForwardRef$T,
|
|
396
|
+
info: ForwardRef$Q,
|
|
397
|
+
help: ForwardRef$N,
|
|
400
398
|
},
|
|
401
|
-
|
|
402
|
-
clear: ForwardRef$
|
|
403
|
-
foldingArrow: ForwardRef
|
|
404
|
-
accept: ForwardRef$
|
|
405
|
-
search: ForwardRef$
|
|
406
|
-
calendar: ForwardRef$
|
|
407
|
-
info: ForwardRef$
|
|
408
|
-
help: ForwardRef$
|
|
399
|
+
48: {
|
|
400
|
+
clear: ForwardRef$12,
|
|
401
|
+
foldingArrow: ForwardRef$$,
|
|
402
|
+
accept: ForwardRef$Y,
|
|
403
|
+
search: ForwardRef$V,
|
|
404
|
+
calendar: ForwardRef$S,
|
|
405
|
+
info: ForwardRef$P,
|
|
406
|
+
help: ForwardRef$N,
|
|
409
407
|
},
|
|
410
|
-
|
|
411
|
-
clear: ForwardRef$
|
|
412
|
-
foldingArrow: ForwardRef
|
|
413
|
-
accept: ForwardRef$
|
|
414
|
-
search: ForwardRef$
|
|
415
|
-
calendar: ForwardRef$
|
|
416
|
-
info: ForwardRef$
|
|
417
|
-
help: ForwardRef$
|
|
408
|
+
60: {
|
|
409
|
+
clear: ForwardRef$12,
|
|
410
|
+
foldingArrow: ForwardRef$$,
|
|
411
|
+
accept: ForwardRef$Y,
|
|
412
|
+
search: ForwardRef$V,
|
|
413
|
+
calendar: ForwardRef$S,
|
|
414
|
+
info: ForwardRef$P,
|
|
415
|
+
help: ForwardRef$N,
|
|
418
416
|
},
|
|
419
|
-
|
|
420
|
-
clear: ForwardRef
|
|
421
|
-
foldingArrow: ForwardRef$
|
|
422
|
-
accept: ForwardRef$
|
|
423
|
-
search: ForwardRef$
|
|
424
|
-
calendar: ForwardRef$
|
|
425
|
-
info: ForwardRef$
|
|
426
|
-
help: ForwardRef$
|
|
417
|
+
none: {
|
|
418
|
+
clear: ForwardRef$13,
|
|
419
|
+
foldingArrow: ForwardRef$10,
|
|
420
|
+
accept: ForwardRef$Z,
|
|
421
|
+
search: ForwardRef$W,
|
|
422
|
+
calendar: ForwardRef$T,
|
|
423
|
+
info: ForwardRef$Q,
|
|
424
|
+
help: ForwardRef$N,
|
|
427
425
|
},
|
|
428
426
|
};
|
|
429
427
|
|
|
430
|
-
var buttonCss = {"typography-header":"Button_typography-header__N39Sj","typography-block":"Button_typography-block__wNgIs","typography-inline":"Button_typography-inline__rkIhO","typography-16":"Button_typography-16__zilSM","typography-14":"Button_typography-14__TkTJy","typography-12":"Button_typography-12__qT2zs","typography-promo":"Button_typography-promo__34xBe Button_typography-header__N39Sj Button_typography-block__wNgIs Button_typography-inline__rkIhO","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-","typographyHeader":"Button_typography-header__N39Sj","typographyBlock":"Button_typography-block__wNgIs","typographyInline":"Button_typography-inline__rkIhO","typography16":"Button_typography-16__zilSM","typography14":"Button_typography-14__TkTJy","typography12":"Button_typography-12__qT2zs","typographyPromo":"Button_typography-promo__34xBe Button_typography-header__N39Sj Button_typography-block__wNgIs Button_typography-inline__rkIhO","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-"};
|
|
428
|
+
var buttonCss = {"typography-header":"Button_typography-header__N39Sj","typography-block":"Button_typography-block__wNgIs","typography-inline":"Button_typography-inline__rkIhO","typography-16":"Button_typography-16__zilSM","typography-14":"Button_typography-14__TkTJy","typography-12":"Button_typography-12__qT2zs","typography-promo":"Button_typography-promo__34xBe Button_typography-header__N39Sj Button_typography-block__wNgIs Button_typography-inline__rkIhO","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-18":"Button_size-18__Tawje","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-","typographyHeader":"Button_typography-header__N39Sj","typographyBlock":"Button_typography-block__wNgIs","typographyInline":"Button_typography-inline__rkIhO","typography16":"Button_typography-16__zilSM","typography14":"Button_typography-14__TkTJy","typography12":"Button_typography-12__qT2zs","typographyPromo":"Button_typography-promo__34xBe Button_typography-header__N39Sj Button_typography-block__wNgIs Button_typography-inline__rkIhO","modeSolid":"Button_mode-solid__zr23o","modeOutline":"Button_mode-outline__e9LiF","modeNone":"Button_mode-none__j8rJ3","modeGhost":"Button_mode-ghost__c8QtK","size18":"Button_size-18__Tawje","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-"};
|
|
431
429
|
|
|
432
|
-
const allButtonColors = [
|
|
430
|
+
const allButtonColors = [
|
|
431
|
+
'accent', 'primary', 'secondary', 'negative',
|
|
432
|
+
];
|
|
433
433
|
const defaultSize$a = '36';
|
|
434
434
|
function applyButtonMods(mods) {
|
|
435
435
|
return [
|
|
@@ -444,21 +444,20 @@ const Button = uuiCore.withMods(uuiComponents.Button, applyButtonMods, (props) =
|
|
|
444
444
|
clearIcon: systemIcons[props.size || defaultSize$a].clear,
|
|
445
445
|
}));
|
|
446
446
|
|
|
447
|
-
var css$
|
|
447
|
+
var css$13 = {"root":"IconButton_root__c1hRd"};
|
|
448
448
|
|
|
449
|
-
const allIconColors = [
|
|
449
|
+
const allIconColors = [
|
|
450
|
+
'info', 'success', 'warning', 'error', 'secondary', 'default',
|
|
451
|
+
];
|
|
450
452
|
function applyIconButtonMods(mods) {
|
|
451
|
-
return [
|
|
452
|
-
`icon-button-${mods.color || 'default'}`,
|
|
453
|
-
css$12.root,
|
|
454
|
-
];
|
|
453
|
+
return [`icon-button-${mods.color || 'default'}`, css$13.root];
|
|
455
454
|
}
|
|
456
455
|
const IconButton = uuiCore.withMods(uuiComponents.IconButton, applyIconButtonMods);
|
|
457
456
|
|
|
458
|
-
var css$
|
|
457
|
+
var css$12 = {"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"};
|
|
459
458
|
|
|
460
459
|
function getIconClass(props) {
|
|
461
|
-
|
|
460
|
+
const classList = {
|
|
462
461
|
'has-left-icon': false,
|
|
463
462
|
'has-right-icon': false,
|
|
464
463
|
};
|
|
@@ -471,18 +470,13 @@ function getIconClass(props) {
|
|
|
471
470
|
if (props.icon) {
|
|
472
471
|
classList[props.iconPosition !== 'right' ? 'has-left-icon' : 'has-right-icon'] = true;
|
|
473
472
|
}
|
|
474
|
-
return [
|
|
475
|
-
classList['has-left-icon'] ? 'uui-has-left-icon' : 'uui-no-left-icon',
|
|
476
|
-
classList['has-right-icon'] ? 'uui-has-right-icon' : 'uui-no-right-icon',
|
|
477
|
-
];
|
|
473
|
+
return [classList['has-left-icon'] ? 'uui-has-left-icon' : 'uui-no-left-icon', classList['has-right-icon'] ? 'uui-has-right-icon' : 'uui-no-right-icon'];
|
|
478
474
|
}
|
|
479
475
|
|
|
480
476
|
const defaultSize$9 = '36';
|
|
481
477
|
function applyLinkButtonMods(mods) {
|
|
482
478
|
return [
|
|
483
|
-
css$
|
|
484
|
-
css$11['size-' + (mods.size || defaultSize$9)],
|
|
485
|
-
...getIconClass(mods),
|
|
479
|
+
css$12.root, css$12['size-' + (mods.size || defaultSize$9)], ...getIconClass(mods),
|
|
486
480
|
];
|
|
487
481
|
}
|
|
488
482
|
const LinkButton = uuiCore.withMods(uuiComponents.Button, applyLinkButtonMods, (props) => ({
|
|
@@ -490,35 +484,47 @@ const LinkButton = uuiCore.withMods(uuiComponents.Button, applyLinkButtonMods, (
|
|
|
490
484
|
clearIcon: systemIcons[props.size || defaultSize$9].clear,
|
|
491
485
|
}));
|
|
492
486
|
|
|
493
|
-
var css$
|
|
487
|
+
var css$11 = {"typography-header":"TabButton_typography-header__RS80s","typography-block":"TabButton_typography-block__GaCpm","typography-inline":"TabButton_typography-inline__JMTQP","typography-16":"TabButton_typography-16__GLE4t","typography-14":"TabButton_typography-14__VWnXE","typography-12":"TabButton_typography-12__nGcxo","typography-promo":"TabButton_typography-promo__Des7p TabButton_typography-header__RS80s TabButton_typography-block__GaCpm TabButton_typography-inline__JMTQP","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","typographyHeader":"TabButton_typography-header__RS80s","typographyBlock":"TabButton_typography-block__GaCpm","typographyInline":"TabButton_typography-inline__JMTQP","typography16":"TabButton_typography-16__GLE4t","typography14":"TabButton_typography-14__VWnXE","typography12":"TabButton_typography-12__nGcxo","typographyPromo":"TabButton_typography-promo__Des7p TabButton_typography-header__RS80s TabButton_typography-block__GaCpm TabButton_typography-inline__JMTQP","uuiNotification":"TabButton_uui-notification__kS3SP","size36":"TabButton_size-36__GqZ6d","size48":"TabButton_size-48__SPXAO","size60":"TabButton_size-60__lPhOn"};
|
|
494
488
|
|
|
495
489
|
function applyTabButtonMods(mods) {
|
|
496
490
|
return [
|
|
497
|
-
css$
|
|
498
|
-
css$10['size-' + (mods.size || '48')],
|
|
499
|
-
mods.withNotify && css$10.uuiNotification,
|
|
500
|
-
...getIconClass(mods),
|
|
491
|
+
css$11.root, 'informer-color-default', css$11['size-' + (mods.size || '48')], mods.withNotify && css$11.uuiNotification, ...getIconClass(mods),
|
|
501
492
|
];
|
|
502
493
|
}
|
|
503
|
-
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) })));
|
|
494
|
+
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) })));
|
|
504
495
|
|
|
505
|
-
var css
|
|
496
|
+
var css$10 = {"typography-header":"VerticalTabButton_typography-header__S9ICQ","typography-block":"VerticalTabButton_typography-block__CJa1q","typography-inline":"VerticalTabButton_typography-inline__evOKQ","typography-16":"VerticalTabButton_typography-16__DAHVj","typography-14":"VerticalTabButton_typography-14__XEpmf","typography-12":"VerticalTabButton_typography-12__db63C","typography-promo":"VerticalTabButton_typography-promo__LMvtV VerticalTabButton_typography-header__S9ICQ VerticalTabButton_typography-block__CJa1q VerticalTabButton_typography-inline__evOKQ","root":"VerticalTabButton_root__LInYW","typographyHeader":"VerticalTabButton_typography-header__S9ICQ","typographyBlock":"VerticalTabButton_typography-block__CJa1q","typographyInline":"VerticalTabButton_typography-inline__evOKQ","typography16":"VerticalTabButton_typography-16__DAHVj","typography14":"VerticalTabButton_typography-14__XEpmf","typography12":"VerticalTabButton_typography-12__db63C","typographyPromo":"VerticalTabButton_typography-promo__LMvtV VerticalTabButton_typography-header__S9ICQ VerticalTabButton_typography-block__CJa1q VerticalTabButton_typography-inline__evOKQ"};
|
|
506
497
|
|
|
507
498
|
function applyVerticalTabButtonMods() {
|
|
508
|
-
return [
|
|
509
|
-
css$$.root,
|
|
510
|
-
];
|
|
499
|
+
return [css$10.root];
|
|
511
500
|
}
|
|
512
501
|
const VerticalTabButton = uuiCore.withMods(TabButton, applyVerticalTabButtonMods);
|
|
513
502
|
|
|
514
|
-
const allButtonModes = [
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
const
|
|
518
|
-
const
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
const
|
|
503
|
+
const allButtonModes = [
|
|
504
|
+
'solid', 'outline', 'ghost', 'none',
|
|
505
|
+
];
|
|
506
|
+
const allFillStyles = allButtonModes;
|
|
507
|
+
const allSizes = [
|
|
508
|
+
'24', '30', '36', '42', '48',
|
|
509
|
+
];
|
|
510
|
+
const allRowSizes = [
|
|
511
|
+
null, '24', '30', '36', '42', '48',
|
|
512
|
+
];
|
|
513
|
+
const allSemanticColors = [
|
|
514
|
+
'info', 'success', 'warning', 'error',
|
|
515
|
+
];
|
|
516
|
+
const allButtonSemanticColors = [
|
|
517
|
+
'accent', 'primary', 'secondary', 'negative',
|
|
518
|
+
];
|
|
519
|
+
const allEpamBadgeSemanticColors = [
|
|
520
|
+
'info', 'success', 'warning', 'error', 'default',
|
|
521
|
+
];
|
|
522
|
+
const allTextSizes = [
|
|
523
|
+
'18', '24', '30', '36', '48',
|
|
524
|
+
];
|
|
525
|
+
const allFontStyles = [
|
|
526
|
+
'regular', 'semibold', 'italic', 'primary', 'promo',
|
|
527
|
+
];
|
|
522
528
|
exports.EditMode = void 0;
|
|
523
529
|
(function (EditMode) {
|
|
524
530
|
EditMode["FORM"] = "form";
|
|
@@ -526,91 +532,89 @@ exports.EditMode = void 0;
|
|
|
526
532
|
EditMode["INLINE"] = "inline";
|
|
527
533
|
})(exports.EditMode || (exports.EditMode = {}));
|
|
528
534
|
|
|
529
|
-
var _path$
|
|
530
|
-
function _extends$
|
|
535
|
+
var _path$J;
|
|
536
|
+
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); }
|
|
531
537
|
var SvgCheck12 = function SvgCheck12(props, ref) {
|
|
532
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
538
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$M({
|
|
533
539
|
width: 12,
|
|
534
540
|
height: 12,
|
|
535
541
|
viewBox: "0 0 12 12",
|
|
536
542
|
xmlns: "http://www.w3.org/2000/svg",
|
|
537
543
|
ref: ref
|
|
538
|
-
}, props), _path$
|
|
544
|
+
}, props), _path$J || (_path$J = /*#__PURE__*/React__namespace.createElement("path", {
|
|
539
545
|
fillRule: "evenodd",
|
|
540
546
|
d: "M9.491 3.449 10.51 4.55 5.663 9.024 2.487 6.047l1.026-1.094L5.67 6.975z"
|
|
541
547
|
})));
|
|
542
548
|
};
|
|
543
|
-
var ForwardRef$
|
|
549
|
+
var ForwardRef$M = /*#__PURE__*/React.forwardRef(SvgCheck12);
|
|
544
550
|
|
|
545
|
-
var _path$
|
|
546
|
-
function _extends$
|
|
551
|
+
var _path$I;
|
|
552
|
+
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); }
|
|
547
553
|
var SvgCheck18 = function SvgCheck18(props, ref) {
|
|
548
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
554
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$L({
|
|
549
555
|
width: 18,
|
|
550
556
|
height: 18,
|
|
551
557
|
viewBox: "0 0 18 18",
|
|
552
558
|
xmlns: "http://www.w3.org/2000/svg",
|
|
553
559
|
ref: ref
|
|
554
|
-
}, props), _path$
|
|
560
|
+
}, props), _path$I || (_path$I = /*#__PURE__*/React__namespace.createElement("path", {
|
|
555
561
|
fillRule: "evenodd",
|
|
556
562
|
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"
|
|
557
563
|
})));
|
|
558
564
|
};
|
|
559
|
-
var ForwardRef$
|
|
565
|
+
var ForwardRef$L = /*#__PURE__*/React.forwardRef(SvgCheck18);
|
|
560
566
|
|
|
561
|
-
var _path$
|
|
562
|
-
function _extends$
|
|
567
|
+
var _path$H;
|
|
568
|
+
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); }
|
|
563
569
|
var SvgPartlySelect12 = function SvgPartlySelect12(props, ref) {
|
|
564
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
570
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$K({
|
|
565
571
|
width: 12,
|
|
566
572
|
height: 12,
|
|
567
573
|
viewBox: "0 0 12 12",
|
|
568
574
|
xmlns: "http://www.w3.org/2000/svg",
|
|
569
575
|
ref: ref
|
|
570
|
-
}, props), _path$
|
|
576
|
+
}, props), _path$H || (_path$H = /*#__PURE__*/React__namespace.createElement("path", {
|
|
571
577
|
fillRule: "evenodd",
|
|
572
578
|
d: "M9 5v2H3V5z"
|
|
573
579
|
})));
|
|
574
580
|
};
|
|
575
|
-
var ForwardRef$
|
|
581
|
+
var ForwardRef$K = /*#__PURE__*/React.forwardRef(SvgPartlySelect12);
|
|
576
582
|
|
|
577
|
-
var _path$
|
|
578
|
-
function _extends$
|
|
583
|
+
var _path$G;
|
|
584
|
+
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); }
|
|
579
585
|
var SvgPartlySelect18 = function SvgPartlySelect18(props, ref) {
|
|
580
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
586
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$J({
|
|
581
587
|
width: 18,
|
|
582
588
|
height: 18,
|
|
583
589
|
viewBox: "0 0 18 18",
|
|
584
590
|
xmlns: "http://www.w3.org/2000/svg",
|
|
585
591
|
ref: ref
|
|
586
|
-
}, props), _path$
|
|
592
|
+
}, props), _path$G || (_path$G = /*#__PURE__*/React__namespace.createElement("path", {
|
|
587
593
|
fillRule: "evenodd",
|
|
588
594
|
d: "M14 8v2H4V8z"
|
|
589
595
|
})));
|
|
590
596
|
};
|
|
591
|
-
var ForwardRef$
|
|
597
|
+
var ForwardRef$J = /*#__PURE__*/React.forwardRef(SvgPartlySelect18);
|
|
592
598
|
|
|
593
|
-
var css
|
|
599
|
+
var css$$ = {"typography-header":"Checkbox_typography-header__7PKo9","typography-block":"Checkbox_typography-block__9ZdZP","typography-inline":"Checkbox_typography-inline__v0o42","typography-16":"Checkbox_typography-16__QPhxK","typography-14":"Checkbox_typography-14__LuNUA","typography-12":"Checkbox_typography-12__UsWx3","typography-promo":"Checkbox_typography-promo__-nAeN Checkbox_typography-header__7PKo9 Checkbox_typography-block__9ZdZP Checkbox_typography-inline__v0o42","root":"Checkbox_root__-oMf6","size-18":"Checkbox_size-18__BzbEk","size-12":"Checkbox_size-12__ASr3R","mode-cell":"Checkbox_mode-cell__qVdJV","typographyHeader":"Checkbox_typography-header__7PKo9","typographyBlock":"Checkbox_typography-block__9ZdZP","typographyInline":"Checkbox_typography-inline__v0o42","typography16":"Checkbox_typography-16__QPhxK","typography14":"Checkbox_typography-14__LuNUA","typography12":"Checkbox_typography-12__UsWx3","typographyPromo":"Checkbox_typography-promo__-nAeN Checkbox_typography-header__7PKo9 Checkbox_typography-block__9ZdZP Checkbox_typography-inline__v0o42","size18":"Checkbox_size-18__BzbEk","size12":"Checkbox_size-12__ASr3R","modeCell":"Checkbox_mode-cell__qVdJV"};
|
|
594
600
|
|
|
595
601
|
function applyCheckboxMods(mods) {
|
|
596
602
|
return [
|
|
597
|
-
css
|
|
598
|
-
css$_['size-' + (mods.size || '18')],
|
|
599
|
-
css$_['mode-' + (mods.mode || 'form')],
|
|
603
|
+
css$$.root, css$$['size-' + (mods.size || '18')], css$$['mode-' + (mods.mode || 'form')],
|
|
600
604
|
];
|
|
601
605
|
}
|
|
602
606
|
const applyUUICheckboxProps = (props) => ({
|
|
603
|
-
icon:
|
|
604
|
-
indeterminateIcon:
|
|
607
|
+
icon: props.size === '12' ? ForwardRef$M : ForwardRef$L,
|
|
608
|
+
indeterminateIcon: props.size === '12' ? ForwardRef$K : ForwardRef$J,
|
|
605
609
|
});
|
|
606
610
|
const Checkbox = uuiCore.withMods(uuiComponents.Checkbox, applyCheckboxMods, applyUUICheckboxProps);
|
|
607
611
|
|
|
608
|
-
var css$
|
|
612
|
+
var css$_ = {"typography-header":"RadioInput_typography-header__TjrmU","typography-block":"RadioInput_typography-block__N9NNT","typography-inline":"RadioInput_typography-inline__9Q7fd","typography-16":"RadioInput_typography-16__MAISE","typography-14":"RadioInput_typography-14__dXuSH","typography-12":"RadioInput_typography-12__qFDEG","typography-promo":"RadioInput_typography-promo__w74S0 RadioInput_typography-header__TjrmU RadioInput_typography-block__N9NNT RadioInput_typography-inline__9Q7fd","root":"RadioInput_root__wxJgt","size-18":"RadioInput_size-18__csI3z","size-12":"RadioInput_size-12__2lBQH","typographyHeader":"RadioInput_typography-header__TjrmU","typographyBlock":"RadioInput_typography-block__N9NNT","typographyInline":"RadioInput_typography-inline__9Q7fd","typography16":"RadioInput_typography-16__MAISE","typography14":"RadioInput_typography-14__dXuSH","typography12":"RadioInput_typography-12__qFDEG","typographyPromo":"RadioInput_typography-promo__w74S0 RadioInput_typography-header__TjrmU RadioInput_typography-block__N9NNT RadioInput_typography-inline__9Q7fd","size18":"RadioInput_size-18__csI3z","size12":"RadioInput_size-12__2lBQH"};
|
|
609
613
|
|
|
610
614
|
var _circle;
|
|
611
|
-
function _extends$
|
|
615
|
+
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); }
|
|
612
616
|
var SvgRadioPoint = function SvgRadioPoint(props, ref) {
|
|
613
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
617
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$I({
|
|
614
618
|
width: 18,
|
|
615
619
|
height: 18,
|
|
616
620
|
viewBox: "0 0 18 18",
|
|
@@ -622,23 +626,18 @@ var SvgRadioPoint = function SvgRadioPoint(props, ref) {
|
|
|
622
626
|
r: 6
|
|
623
627
|
})));
|
|
624
628
|
};
|
|
625
|
-
var ForwardRef$
|
|
629
|
+
var ForwardRef$I = /*#__PURE__*/React.forwardRef(SvgRadioPoint);
|
|
626
630
|
|
|
627
631
|
function applyRadioInputMods(mods) {
|
|
628
|
-
return [
|
|
629
|
-
css$Z.root,
|
|
630
|
-
css$Z['size-' + (mods.size || '18')],
|
|
631
|
-
];
|
|
632
|
+
return [css$_.root, css$_['size-' + (mods.size || '18')]];
|
|
632
633
|
}
|
|
633
|
-
const RadioInput = uuiCore.withMods(uuiComponents.RadioInput, applyRadioInputMods, () => ({ icon: ForwardRef$
|
|
634
|
+
const RadioInput = uuiCore.withMods(uuiComponents.RadioInput, applyRadioInputMods, () => ({ icon: ForwardRef$I }));
|
|
634
635
|
|
|
635
|
-
var css$
|
|
636
|
+
var css$Z = {"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"};
|
|
636
637
|
|
|
637
638
|
function applySwitchMods(mods) {
|
|
638
639
|
return [
|
|
639
|
-
'switch-vars',
|
|
640
|
-
css$Y.root,
|
|
641
|
-
css$Y['size-' + (mods.size || '18')],
|
|
640
|
+
'switch-vars', css$Z.root, css$Z['size-' + (mods.size || '18')],
|
|
642
641
|
];
|
|
643
642
|
}
|
|
644
643
|
const Switch = uuiCore.withMods(uuiComponents.Switch, applySwitchMods);
|
|
@@ -700,169 +699,151 @@ const SearchInput = React__namespace.default.forwardRef((props, ref) => {
|
|
|
700
699
|
// analytics events are sending in IEditableDebouncer, so we need to avoid sending events in TextInput
|
|
701
700
|
const textInputProps = __rest(props, []);
|
|
702
701
|
delete textInputProps.getValueChangeAnalyticsEvent;
|
|
703
|
-
return (React__namespace.default.createElement(uuiCore.IEditableDebouncer, Object.assign({}, props, { render: iEditable => (React__namespace.default.createElement(TextInput, Object.assign({ icon: systemIcons[props.size || defaultSize$8].search, onCancel: !!props.value ? (
|
|
702
|
+
return (React__namespace.default.createElement(uuiCore.IEditableDebouncer, Object.assign({}, props, { render: (iEditable) => (React__namespace.default.createElement(TextInput, Object.assign({ icon: systemIcons[props.size || defaultSize$8].search, onCancel: !!props.value ? () => iEditable.onValueChange('') : undefined, type: "search", inputMode: "search", ref: ref }, textInputProps, iEditable))) })));
|
|
704
703
|
});
|
|
705
704
|
|
|
706
|
-
var css$
|
|
705
|
+
var css$Y = {"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-"};
|
|
707
706
|
|
|
708
707
|
function applyAccordionMods(mods) {
|
|
709
708
|
return [
|
|
710
|
-
css$
|
|
711
|
-
css$X['mode-' + (mods.mode || 'block')],
|
|
712
|
-
mods.padding && css$X['padding-' + mods.padding],
|
|
709
|
+
css$Y.root, css$Y['mode-' + (mods.mode || 'block')], mods.padding && css$Y['padding-' + mods.padding],
|
|
713
710
|
];
|
|
714
711
|
}
|
|
715
712
|
const Accordion = uuiCore.withMods(uuiComponents.Accordion, applyAccordionMods, (mods) => ({
|
|
716
713
|
dropdownIcon: mods.dropdownIcon !== null && systemIcons[mods.mode === 'block' ? '60' : '30'].foldingArrow,
|
|
717
714
|
}));
|
|
718
715
|
|
|
719
|
-
var css$
|
|
716
|
+
var css$X = {"root":"ControlGroup_root__wOZ9-"};
|
|
720
717
|
|
|
721
|
-
const ControlGroup = uuiCore.withMods(uuiComponents.ControlGroup, () => [css$
|
|
718
|
+
const ControlGroup = uuiCore.withMods(uuiComponents.ControlGroup, () => [css$X.root]);
|
|
722
719
|
|
|
723
|
-
var css$
|
|
720
|
+
var css$W = {"typography-header":"FlexRow_typography-header__2lsWG","typography-block":"FlexRow_typography-block__I0TO6","typography-inline":"FlexRow_typography-inline__br3BL","typography-16":"FlexRow_typography-16__ZDP4a","typography-14":"FlexRow_typography-14__fbJ6t","typography-12":"FlexRow_typography-12__xjb4B","typography-promo":"FlexRow_typography-promo__63NoR FlexRow_typography-header__2lsWG FlexRow_typography-block__I0TO6 FlexRow_typography-inline__br3BL","root":"FlexRow_root__8pevZ","border-bottom":"FlexRow_border-bottom__5L1Xk","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","typographyHeader":"FlexRow_typography-header__2lsWG","typographyBlock":"FlexRow_typography-block__I0TO6","typographyInline":"FlexRow_typography-inline__br3BL","typography16":"FlexRow_typography-16__ZDP4a","typography14":"FlexRow_typography-14__fbJ6t","typography12":"FlexRow_typography-12__xjb4B","typographyPromo":"FlexRow_typography-promo__63NoR FlexRow_typography-header__2lsWG FlexRow_typography-block__I0TO6 FlexRow_typography-inline__br3BL","borderBottom":"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"};
|
|
724
721
|
|
|
725
|
-
const FlexCell = uuiCore.withMods(uuiComponents.FlexCell, props => [
|
|
726
|
-
css$V.flexCell,
|
|
727
|
-
]);
|
|
722
|
+
const FlexCell = uuiCore.withMods(uuiComponents.FlexCell, (props) => [css$W.flexCell]);
|
|
728
723
|
|
|
729
|
-
const FlexRow = uuiCore.withMods(uuiComponents.FlexRow, props => {
|
|
724
|
+
const FlexRow = uuiCore.withMods(uuiComponents.FlexRow, (props) => {
|
|
730
725
|
return [
|
|
731
|
-
css$
|
|
732
|
-
props.size !== null && css$V['size-' + (props.size || '36')],
|
|
733
|
-
props.padding && css$V['padding-' + props.padding],
|
|
734
|
-
props.vPadding && css$V['vPadding-' + props.vPadding],
|
|
735
|
-
props.margin && css$V['margin-' + props.margin],
|
|
736
|
-
props.topShadow && css$V.topShadow,
|
|
737
|
-
props.borderBottom && css$V['border-bottom'],
|
|
738
|
-
props.spacing && css$V['spacing-' + props.spacing],
|
|
726
|
+
css$W.root, props.size !== null && css$W['size-' + (props.size || '36')], props.padding && css$W['padding-' + props.padding], props.vPadding && css$W['vPadding-' + props.vPadding], props.margin && css$W['margin-' + props.margin], props.topShadow && css$W.topShadow, props.borderBottom && css$W.borderBottom, props.spacing && css$W['spacing-' + props.spacing],
|
|
739
727
|
];
|
|
740
728
|
});
|
|
741
729
|
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
var css$U = {"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"};
|
|
730
|
+
var css$V = {"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"};
|
|
745
731
|
|
|
746
|
-
const Panel = uuiCore.withMods(uuiComponents.VPanel, props => [
|
|
747
|
-
'uui-panel',
|
|
748
|
-
css$U.root,
|
|
749
|
-
props.shadow && css$U.shadow,
|
|
750
|
-
props.margin && css$U['margin-' + props.margin],
|
|
732
|
+
const Panel = uuiCore.withMods(uuiComponents.VPanel, (props) => [
|
|
733
|
+
'uui-panel', css$V.root, props.shadow && css$V.shadow, props.margin && css$V['margin-' + props.margin],
|
|
751
734
|
]);
|
|
752
735
|
|
|
753
|
-
var _path$
|
|
754
|
-
function _extends$
|
|
736
|
+
var _path$F;
|
|
737
|
+
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); }
|
|
755
738
|
var SvgNotificationCheckCircleFill24 = function SvgNotificationCheckCircleFill24(props, ref) {
|
|
756
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
739
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$H({
|
|
757
740
|
xmlns: "http://www.w3.org/2000/svg",
|
|
758
741
|
width: 24,
|
|
759
742
|
height: 24,
|
|
760
743
|
viewBox: "0 0 24 24",
|
|
761
744
|
ref: ref
|
|
762
|
-
}, props), _path$
|
|
745
|
+
}, props), _path$F || (_path$F = /*#__PURE__*/React__namespace.createElement("path", {
|
|
763
746
|
fillRule: "evenodd",
|
|
764
747
|
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"
|
|
765
748
|
})));
|
|
766
749
|
};
|
|
767
|
-
var ForwardRef$
|
|
750
|
+
var ForwardRef$H = /*#__PURE__*/React.forwardRef(SvgNotificationCheckCircleFill24);
|
|
768
751
|
|
|
769
|
-
var _path$
|
|
770
|
-
function _extends$
|
|
752
|
+
var _path$E;
|
|
753
|
+
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); }
|
|
771
754
|
var SvgNotificationWarningFill24 = function SvgNotificationWarningFill24(props, ref) {
|
|
772
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
755
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$G({
|
|
773
756
|
xmlns: "http://www.w3.org/2000/svg",
|
|
774
757
|
width: 24,
|
|
775
758
|
height: 24,
|
|
776
759
|
viewBox: "0 0 24 24",
|
|
777
760
|
ref: ref
|
|
778
|
-
}, props), _path$
|
|
761
|
+
}, props), _path$E || (_path$E = /*#__PURE__*/React__namespace.createElement("path", {
|
|
779
762
|
fillRule: "evenodd",
|
|
780
763
|
d: "M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"
|
|
781
764
|
})));
|
|
782
765
|
};
|
|
783
|
-
var ForwardRef$
|
|
766
|
+
var ForwardRef$G = /*#__PURE__*/React.forwardRef(SvgNotificationWarningFill24);
|
|
784
767
|
|
|
785
|
-
var _path$
|
|
786
|
-
function _extends$
|
|
768
|
+
var _path$D;
|
|
769
|
+
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); }
|
|
787
770
|
var SvgNotificationErrorFill24 = function SvgNotificationErrorFill24(props, ref) {
|
|
788
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
771
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$F({
|
|
789
772
|
xmlns: "http://www.w3.org/2000/svg",
|
|
790
773
|
width: 24,
|
|
791
774
|
height: 24,
|
|
792
775
|
viewBox: "0 0 24 24",
|
|
793
776
|
ref: ref
|
|
794
|
-
}, props), _path$
|
|
777
|
+
}, props), _path$D || (_path$D = /*#__PURE__*/React__namespace.createElement("path", {
|
|
795
778
|
fillRule: "evenodd",
|
|
796
779
|
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"
|
|
797
780
|
})));
|
|
798
781
|
};
|
|
799
|
-
var ForwardRef$
|
|
782
|
+
var ForwardRef$F = /*#__PURE__*/React.forwardRef(SvgNotificationErrorFill24);
|
|
800
783
|
|
|
801
|
-
var _path$
|
|
802
|
-
function _extends$
|
|
784
|
+
var _path$C;
|
|
785
|
+
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); }
|
|
803
786
|
var SvgNotificationHelpFill24 = function SvgNotificationHelpFill24(props, ref) {
|
|
804
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
787
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$E({
|
|
805
788
|
xmlns: "http://www.w3.org/2000/svg",
|
|
806
789
|
width: 24,
|
|
807
790
|
height: 24,
|
|
808
791
|
viewBox: "0 0 24 24",
|
|
809
792
|
ref: ref
|
|
810
|
-
}, props), _path$
|
|
793
|
+
}, props), _path$C || (_path$C = /*#__PURE__*/React__namespace.createElement("path", {
|
|
811
794
|
fillRule: "evenodd",
|
|
812
795
|
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"
|
|
813
796
|
})));
|
|
814
797
|
};
|
|
815
|
-
var ForwardRef$
|
|
798
|
+
var ForwardRef$E = /*#__PURE__*/React.forwardRef(SvgNotificationHelpFill24);
|
|
816
799
|
|
|
817
|
-
var _path$
|
|
818
|
-
function _extends$
|
|
800
|
+
var _path$B;
|
|
801
|
+
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); }
|
|
819
802
|
var SvgNavigationClose24$1 = function SvgNavigationClose24(props, ref) {
|
|
820
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
803
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$D({
|
|
821
804
|
xmlns: "http://www.w3.org/2000/svg",
|
|
822
805
|
width: 24,
|
|
823
806
|
height: 24,
|
|
824
807
|
viewBox: "0 0 24 24",
|
|
825
808
|
ref: ref
|
|
826
|
-
}, props), _path$
|
|
809
|
+
}, props), _path$B || (_path$B = /*#__PURE__*/React__namespace.createElement("path", {
|
|
827
810
|
fillRule: "evenodd",
|
|
828
811
|
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"
|
|
829
812
|
})));
|
|
830
813
|
};
|
|
831
|
-
var ForwardRef$
|
|
814
|
+
var ForwardRef$D = /*#__PURE__*/React.forwardRef(SvgNavigationClose24$1);
|
|
832
815
|
|
|
833
|
-
var css$
|
|
816
|
+
var css$U = {"root":"Alert_root__o9-Bu","icon-wrapper":"Alert_icon-wrapper__MVBsA","alert-wrapper":"Alert_alert-wrapper__QuJWm","action-wrapper":"Alert_action-wrapper__-z2l9","action-icon":"Alert_action-icon__GhtYo","action-link":"Alert_action-link__Hj-D2","close-icon":"Alert_close-icon__brCPM","main-path":"Alert_main-path__jHhJZ","content":"Alert_content__ae2CO","iconWrapper":"Alert_icon-wrapper__MVBsA","alertWrapper":"Alert_alert-wrapper__QuJWm","actionWrapper":"Alert_action-wrapper__-z2l9","actionIcon":"Alert_action-icon__GhtYo","actionLink":"Alert_action-link__Hj-D2","closeIcon":"Alert_close-icon__brCPM","mainPath":"Alert_main-path__jHhJZ"};
|
|
834
817
|
|
|
835
|
-
const Alert = React__namespace.forwardRef((props, ref) => (React__namespace.createElement("div", Object.assign({ role: "alert", ref: ref, className: cx__default.default(css$
|
|
836
|
-
React__namespace.createElement("div", { className: css$
|
|
837
|
-
props.icon && React__namespace.createElement("div", { className: css$
|
|
838
|
-
React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$
|
|
839
|
-
React__namespace.createElement("div", { className: css$
|
|
818
|
+
const Alert = React__namespace.forwardRef((props, ref) => (React__namespace.createElement("div", Object.assign({ role: "alert", ref: ref, className: cx__default.default(css$U.alertWrapper, `alert-${props.color || 'default'}`, css$U.root, props.cx) }, props.rawProps),
|
|
819
|
+
React__namespace.createElement("div", { className: css$U.mainPath },
|
|
820
|
+
props.icon && (React__namespace.createElement("div", { className: css$U.iconWrapper },
|
|
821
|
+
React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$U.actionIcon }))),
|
|
822
|
+
React__namespace.createElement("div", { className: css$U.content },
|
|
840
823
|
props.children,
|
|
841
|
-
props.actions && React__namespace.createElement("div", { className: css$
|
|
842
|
-
props.onClose && React__namespace.createElement(IconButton, { icon: ForwardRef$
|
|
843
|
-
const WarningAlert = React__namespace.forwardRef((props, ref) =>
|
|
844
|
-
const SuccessAlert = React__namespace.forwardRef((props, ref) =>
|
|
845
|
-
const HintAlert = React__namespace.forwardRef((props, ref) =>
|
|
846
|
-
const ErrorAlert = React__namespace.forwardRef((props, ref) =>
|
|
824
|
+
props.actions && (React__namespace.createElement("div", { className: css$U.actionWrapper }, props.actions.map((action) => (React__namespace.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$U.actionLink, size: "30" })))))),
|
|
825
|
+
props.onClose && React__namespace.createElement(IconButton, { icon: ForwardRef$D, color: "default", onClick: props.onClose, cx: css$U.closeIcon })))));
|
|
826
|
+
const WarningAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$G, color: "warning", ref: ref }, props)));
|
|
827
|
+
const SuccessAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$H, color: "success", ref: ref }, props)));
|
|
828
|
+
const HintAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$E, color: "info", ref: ref }, props)));
|
|
829
|
+
const ErrorAlert = React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, Object.assign({ icon: ForwardRef$F, color: "error", ref: ref }, props)));
|
|
847
830
|
|
|
848
831
|
class Dropdown extends React__namespace.Component {
|
|
849
832
|
render() {
|
|
850
|
-
return
|
|
833
|
+
return React__namespace.createElement(uuiComponents.Dropdown, Object.assign({}, this.props));
|
|
851
834
|
}
|
|
852
835
|
}
|
|
853
836
|
|
|
854
|
-
var css$
|
|
837
|
+
var css$T = {"root":"DropdownContainer_root__0tHS6"};
|
|
855
838
|
|
|
856
839
|
function applyDropdownContainerMods(mods) {
|
|
857
840
|
return [
|
|
858
|
-
css$
|
|
859
|
-
mods.vPadding && `vPadding-${mods.vPadding}`,
|
|
860
|
-
mods.padding && `padding-${mods.padding}`,
|
|
841
|
+
css$T.root, mods.vPadding && `vPadding-${mods.vPadding}`, mods.padding && `padding-${mods.padding}`,
|
|
861
842
|
];
|
|
862
843
|
}
|
|
863
844
|
const DropdownContainer = uuiCore.withMods(uuiComponents.DropdownContainer, applyDropdownContainerMods);
|
|
864
845
|
|
|
865
|
-
var css$
|
|
846
|
+
var css$S = {"typography-header":"DropdownMenu_typography-header__d5Gl6","typography-block":"DropdownMenu_typography-block__-l-b3","typography-inline":"DropdownMenu_typography-inline__QTz-3","typography-16":"DropdownMenu_typography-16__FrdMO","typography-14":"DropdownMenu_typography-14__cx4-6","typography-12":"DropdownMenu_typography-12__PDMu0","typography-promo":"DropdownMenu_typography-promo__-BGfx DropdownMenu_typography-header__d5Gl6 DropdownMenu_typography-block__-l-b3 DropdownMenu_typography-inline__QTz-3","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","typographyHeader":"DropdownMenu_typography-header__d5Gl6","typographyBlock":"DropdownMenu_typography-block__-l-b3","typographyInline":"DropdownMenu_typography-inline__QTz-3","typography16":"DropdownMenu_typography-16__FrdMO","typography14":"DropdownMenu_typography-14__cx4-6","typography12":"DropdownMenu_typography-12__PDMu0","typographyPromo":"DropdownMenu_typography-promo__-BGfx DropdownMenu_typography-header__d5Gl6 DropdownMenu_typography-block__-l-b3 DropdownMenu_typography-inline__QTz-3"};
|
|
866
847
|
|
|
867
848
|
const icons = systemIcons['36'];
|
|
868
849
|
exports.IDropdownControlKeys = void 0;
|
|
@@ -874,7 +855,7 @@ exports.IDropdownControlKeys = void 0;
|
|
|
874
855
|
IDropdownControlKeys["UP_ARROW"] = "ArrowUp";
|
|
875
856
|
IDropdownControlKeys["DOWN_ARROW"] = "ArrowDown";
|
|
876
857
|
})(exports.IDropdownControlKeys || (exports.IDropdownControlKeys = {}));
|
|
877
|
-
|
|
858
|
+
function DropdownMenuContainer(props) {
|
|
878
859
|
const menuRef = React.useRef(null);
|
|
879
860
|
const [currentlyFocused, setFocused] = React.useState(-1);
|
|
880
861
|
const menuItems = menuRef.current ? Array.from(menuRef.current.querySelectorAll(`[role="menuitem"]:not(.${uuiCore.uuiMod.disabled})`)) : [];
|
|
@@ -901,10 +882,10 @@ const DropdownMenuContainer = (props) => {
|
|
|
901
882
|
props.onClose();
|
|
902
883
|
}
|
|
903
884
|
};
|
|
904
|
-
return (React__namespace.default.createElement(FocusLock__default.default, { as: "menu", className: css$
|
|
885
|
+
return (React__namespace.default.createElement(FocusLock__default.default, { as: "menu", className: css$S.menuRoot, returnFocus: true, autoFocus: false, ref: menuRef, lockProps: { onKeyDown: handleArrowKeys, tabIndex: -1 } },
|
|
905
886
|
React__namespace.default.createElement(uuiComponents.DropdownContainer, Object.assign({}, props, { rawProps: { tabIndex: -1 } }))));
|
|
906
|
-
}
|
|
907
|
-
const DropdownMenuBody = uuiCore.withMods(DropdownMenuContainer, () => [css$
|
|
887
|
+
}
|
|
888
|
+
const DropdownMenuBody = uuiCore.withMods(DropdownMenuContainer, () => [css$S.bodyRoot], ({ style }) => ({ style }));
|
|
908
889
|
const DropdownMenuButton = React__namespace.default.forwardRef((props, ref) => {
|
|
909
890
|
const context = React.useContext(uuiCore.UuiContext);
|
|
910
891
|
const { icon, iconPosition, onIconClick, caption, isDisabled, isSelected, isActive, link, href, onClick, toggleDropdownOpening, isDropdown, isOpen, target, } = props;
|
|
@@ -923,38 +904,42 @@ const DropdownMenuButton = React__namespace.default.forwardRef((props, ref) => {
|
|
|
923
904
|
}
|
|
924
905
|
};
|
|
925
906
|
const getMenuButtonContent = () => {
|
|
926
|
-
const isIconBefore = Boolean(icon && iconPosition !==
|
|
927
|
-
const isIconAfter = Boolean(icon && iconPosition ===
|
|
928
|
-
const iconElement = React__namespace.default.createElement(IconButton, { icon: icon, color: isActive ? 'info' : 'default', onClick: onIconClick, cx: uuiCore.cx(css$
|
|
929
|
-
return React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
907
|
+
const isIconBefore = Boolean(icon && iconPosition !== 'right');
|
|
908
|
+
const isIconAfter = Boolean(icon && iconPosition === 'right');
|
|
909
|
+
const iconElement = (React__namespace.default.createElement(IconButton, { icon: icon, color: isActive ? 'info' : 'default', onClick: onIconClick, cx: uuiCore.cx(css$S.icon, iconPosition === 'right' ? css$S.iconAfter : css$S.iconBefore) }));
|
|
910
|
+
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
930
911
|
isIconBefore && iconElement,
|
|
931
|
-
React__namespace.default.createElement(uuiComponents.Text, { cx: css$
|
|
932
|
-
isIconAfter && React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
912
|
+
React__namespace.default.createElement(uuiComponents.Text, { cx: css$S.caption }, caption),
|
|
913
|
+
isIconAfter && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
933
914
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
934
|
-
iconElement));
|
|
915
|
+
iconElement))));
|
|
935
916
|
};
|
|
936
917
|
const isAnchor = Boolean(link || href);
|
|
937
|
-
const itemClassNames = uuiCore.cx(props.cx, css$
|
|
938
|
-
return isAnchor ? (React__namespace.default.createElement(uuiComponents.Anchor, { cx: uuiCore.cx(css$
|
|
918
|
+
const itemClassNames = uuiCore.cx(props.cx, css$S.itemRoot, isDisabled && uuiCore.uuiMod.disabled, isActive && uuiCore.uuiMod.active, isOpen && uuiCore.uuiMod.opened);
|
|
919
|
+
return isAnchor ? (React__namespace.default.createElement(uuiComponents.Anchor, { cx: uuiCore.cx(css$S.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: {
|
|
939
920
|
tabIndex: isDisabled ? -1 : 0,
|
|
940
921
|
role: 'menuitem',
|
|
941
922
|
onKeyDown: isDisabled ? null : handleOpenDropdown,
|
|
942
923
|
}, cx: itemClassNames, onClick: handleClick, ref: ref },
|
|
943
924
|
getMenuButtonContent(),
|
|
944
|
-
isSelected && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icons.accept, cx: css$
|
|
925
|
+
isSelected && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icons.accept, cx: css$S.selectedCheckmark })));
|
|
945
926
|
});
|
|
946
927
|
DropdownMenuButton.displayName = 'DropdownMenuButton';
|
|
947
|
-
|
|
948
|
-
React__namespace.default.createElement("
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
return (React__namespace.default.createElement(
|
|
928
|
+
function DropdownMenuSplitter(props) {
|
|
929
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$S.splitterRoot) },
|
|
930
|
+
React__namespace.default.createElement("hr", { className: css$S.splitter })));
|
|
931
|
+
}
|
|
932
|
+
function DropdownMenuHeader(props) {
|
|
933
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$S.headerRoot) },
|
|
934
|
+
React__namespace.default.createElement("span", { className: css$S.header }, props.caption)));
|
|
935
|
+
}
|
|
936
|
+
function DropdownSubMenu(props) {
|
|
937
|
+
return (React__namespace.default.createElement(uuiComponents.Dropdown, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", openDelay: 400, closeDelay: 400, placement: "right-start", renderBody: (dropdownProps) => React__namespace.default.createElement(DropdownMenuBody, Object.assign({ closeOnKey: exports.IDropdownControlKeys.LEFT_ARROW }, props, dropdownProps)), renderTarget: (_a) => {
|
|
953
938
|
var { toggleDropdownOpening } = _a, targetProps = __rest(_a, ["toggleDropdownOpening"]);
|
|
954
|
-
return (React__namespace.default.createElement(DropdownMenuButton, Object.assign({ cx: uuiCore.cx(css$
|
|
939
|
+
return (React__namespace.default.createElement(DropdownMenuButton, Object.assign({ cx: uuiCore.cx(css$S.submenuRootItem), icon: icons.foldingArrow, iconPosition: "right", isDropdown: true, toggleDropdownOpening: toggleDropdownOpening }, props, targetProps)));
|
|
955
940
|
} }));
|
|
956
|
-
}
|
|
957
|
-
|
|
941
|
+
}
|
|
942
|
+
function DropdownMenuSwitchButton(props) {
|
|
958
943
|
const context = React.useContext(uuiCore.UuiContext);
|
|
959
944
|
const { icon, caption, isDisabled, isSelected, onValueChange, } = props;
|
|
960
945
|
const onHandleValueChange = (value) => {
|
|
@@ -968,16 +953,16 @@ const DropdownMenuSwitchButton = (props) => {
|
|
|
968
953
|
onHandleValueChange(!isSelected);
|
|
969
954
|
}
|
|
970
955
|
};
|
|
971
|
-
return (React__namespace.default.createElement(uuiComponents.FlexRow, { cx: uuiCore.cx(props.cx, css$
|
|
972
|
-
icon && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icon, cx: css$
|
|
973
|
-
React__namespace.default.createElement(uuiComponents.Text, { cx: css$
|
|
956
|
+
return (React__namespace.default.createElement(uuiComponents.FlexRow, { cx: uuiCore.cx(props.cx, css$S.itemRoot, isDisabled && uuiCore.uuiMod.disabled), onClick: () => onHandleValueChange(!isSelected), rawProps: { role: 'menuitem', onKeyDown: handleKeySelect, tabIndex: isDisabled ? -1 : 0 } },
|
|
957
|
+
icon && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icon, cx: css$S.iconBefore }),
|
|
958
|
+
React__namespace.default.createElement(uuiComponents.Text, { cx: css$S.caption }, caption),
|
|
974
959
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
975
960
|
React__namespace.default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
976
|
-
}
|
|
961
|
+
}
|
|
977
962
|
|
|
978
|
-
var css$
|
|
963
|
+
var css$R = {"root":"Text_root__iUAW9"};
|
|
979
964
|
|
|
980
|
-
var css$
|
|
965
|
+
var css$Q = {"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"};
|
|
981
966
|
|
|
982
967
|
const defaultTextSettings = {
|
|
983
968
|
18: { lineHeight: 12, fontSize: 10 },
|
|
@@ -990,10 +975,7 @@ const defaultTextSettings = {
|
|
|
990
975
|
};
|
|
991
976
|
function getTextClasses(props, border) {
|
|
992
977
|
if (props.size === 'none') {
|
|
993
|
-
return [
|
|
994
|
-
css$P['line-height-' + props.lineHeight],
|
|
995
|
-
css$P['font-size-' + props.fontSize],
|
|
996
|
-
];
|
|
978
|
+
return [css$Q['line-height-' + props.lineHeight], css$Q['font-size-' + props.fontSize]];
|
|
997
979
|
}
|
|
998
980
|
const setting = {
|
|
999
981
|
size: props.size,
|
|
@@ -1002,9 +984,7 @@ function getTextClasses(props, border) {
|
|
|
1002
984
|
};
|
|
1003
985
|
const vPadding = (+setting.size - +setting.lineHeight - (border ? 2 : 0)) / 2;
|
|
1004
986
|
return [
|
|
1005
|
-
css$
|
|
1006
|
-
css$P['font-size-' + setting.fontSize],
|
|
1007
|
-
css$P['v-padding-' + vPadding],
|
|
987
|
+
css$Q['line-height-' + setting.lineHeight], css$Q['font-size-' + setting.fontSize], css$Q['v-padding-' + vPadding],
|
|
1008
988
|
];
|
|
1009
989
|
}
|
|
1010
990
|
|
|
@@ -1015,45 +995,37 @@ function applyTextMods(mods) {
|
|
|
1015
995
|
fontSize: mods.fontSize,
|
|
1016
996
|
}, false);
|
|
1017
997
|
return [
|
|
1018
|
-
`uui-font-${mods.font || 'regular'}`,
|
|
1019
|
-
`uui-text-${mods.color || 'primary'}`,
|
|
1020
|
-
css$Q.root,
|
|
998
|
+
`uui-font-${mods.font || 'regular'}`, `uui-text-${mods.color || 'primary'}`, css$R.root,
|
|
1021
999
|
].concat(textClasses);
|
|
1022
1000
|
}
|
|
1023
1001
|
const Text = uuiCore.withMods(uuiComponents.Text, applyTextMods);
|
|
1024
1002
|
|
|
1025
|
-
var css$
|
|
1003
|
+
var css$P = {"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"};
|
|
1026
1004
|
|
|
1027
1005
|
const TextPlaceholder = (props) => {
|
|
1028
|
-
const pattern =
|
|
1006
|
+
const pattern = ' ';
|
|
1029
1007
|
const text = React__namespace.useMemo(() => {
|
|
1030
1008
|
const words = [];
|
|
1031
1009
|
for (let i = 0; i < (props.wordsCount || 1); i++) {
|
|
1032
|
-
|
|
1010
|
+
const lengthWord = Math.floor(Math.random() * 10 + 8);
|
|
1033
1011
|
words.push(pattern.repeat(lengthWord));
|
|
1034
1012
|
}
|
|
1035
1013
|
return words;
|
|
1036
1014
|
}, [props.wordsCount]);
|
|
1037
|
-
return (React__namespace.createElement("div", Object.assign({ "aria-busy": true, className: css$
|
|
1038
|
-
props.cx,
|
|
1039
|
-
css$O.loadingWord,
|
|
1040
|
-
!props.isNotAnimated && css$O.animatedLoading,
|
|
1015
|
+
return (React__namespace.createElement("div", Object.assign({ "aria-busy": true, className: css$P.container }, props.rawProps), text.map((it, index) => (React__namespace.createElement("span", { key: index, className: cx__default.default([
|
|
1016
|
+
props.cx, css$P.loadingWord, !props.isNotAnimated && css$P.animatedLoading,
|
|
1041
1017
|
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
1042
1018
|
};
|
|
1043
1019
|
|
|
1044
1020
|
var style = {"typography-header":"typography_typography-header__xCe-Q","typography-block":"typography_typography-block__xvrwC","typography-inline":"typography_typography-inline__EbQN2","typography-16":"typography_typography-16__4OCWa","typography-14":"typography_typography-14__4Rcyl","typography-12":"typography_typography-12__2BEhy","typography-promo":"typography_typography-promo__P68Jv typography_typography-header__xCe-Q typography_typography-block__xvrwC typography_typography-inline__EbQN2","typographyHeader":"typography_typography-header__xCe-Q","typographyBlock":"typography_typography-block__xvrwC","typographyInline":"typography_typography-inline__EbQN2","typography16":"typography_typography-16__4OCWa","typography14":"typography_typography-14__4Rcyl","typography12":"typography_typography-12__2BEhy","typographyPromo":"typography_typography-promo__P68Jv typography_typography-header__xCe-Q typography_typography-block__xvrwC typography_typography-inline__EbQN2"};
|
|
1045
1021
|
|
|
1046
|
-
const RichTextView = uuiCore.withMods(uuiComponents.RichTextView, (mods) => [
|
|
1047
|
-
style.typographyPromo,
|
|
1048
|
-
style['typography-' + (mods.size || '14')],
|
|
1049
|
-
]);
|
|
1022
|
+
const RichTextView = uuiCore.withMods(uuiComponents.RichTextView, (mods) => [style.typographyPromo, style['typography-' + (mods.size || '14')]]);
|
|
1050
1023
|
|
|
1051
|
-
var css$
|
|
1024
|
+
var css$O = {"typography-header":"Modals_typography-header__Jwt-p","typography-block":"Modals_typography-block__szftG","typography-inline":"Modals_typography-inline__ZDBk-","typography-16":"Modals_typography-16__5x7rd","typography-14":"Modals_typography-14__ZF20L","typography-12":"Modals_typography-12__4fSpR","typography-promo":"Modals_typography-promo__JbRIA Modals_typography-header__Jwt-p Modals_typography-block__szftG Modals_typography-inline__ZDBk-","modal-blocker":"Modals_modal-blocker__nCAZ7","animateModalBlocker":"Modals_animateModalBlocker__S-4dL","modal":"Modals_modal__m41wI","modal-footer":"Modals_modal-footer__gg-90","border-top":"Modals_border-top__cfzhv","modal-header":"Modals_modal-header__8aswP","typographyHeader":"Modals_typography-header__Jwt-p","typographyBlock":"Modals_typography-block__szftG","typographyInline":"Modals_typography-inline__ZDBk-","typography16":"Modals_typography-16__5x7rd","typography14":"Modals_typography-14__ZF20L","typography12":"Modals_typography-12__4fSpR","typographyPromo":"Modals_typography-promo__JbRIA Modals_typography-header__Jwt-p Modals_typography-block__szftG Modals_typography-inline__ZDBk-","modalBlocker":"Modals_modal-blocker__nCAZ7","modalFooter":"Modals_modal-footer__gg-90","borderTop":"Modals_border-top__cfzhv","modalHeader":"Modals_modal-header__8aswP"};
|
|
1052
1025
|
|
|
1053
|
-
const ModalBlocker = uuiCore.withMods(uuiComponents.ModalBlocker, () => [
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
const ModalWindow = uuiCore.withMods(uuiComponents.ModalWindow, () => [css$N.modal], props => ({ rawProps: {
|
|
1026
|
+
const ModalBlocker = uuiCore.withMods(uuiComponents.ModalBlocker, () => [css$O.modalBlocker]);
|
|
1027
|
+
const ModalWindow = uuiCore.withMods(uuiComponents.ModalWindow, () => [css$O.modal], (props) => ({
|
|
1028
|
+
rawProps: {
|
|
1057
1029
|
style: {
|
|
1058
1030
|
width: `${props.width || 480}px`,
|
|
1059
1031
|
height: props.height ? `${props.height}px` : 'auto',
|
|
@@ -1062,17 +1034,19 @@ const ModalWindow = uuiCore.withMods(uuiComponents.ModalWindow, () => [css$N.mod
|
|
|
1062
1034
|
}));
|
|
1063
1035
|
class ModalHeader extends React__namespace.Component {
|
|
1064
1036
|
render() {
|
|
1065
|
-
return (React__namespace.createElement(FlexRow, { padding: this.props.padding || '24', vPadding:
|
|
1066
|
-
this.props.title && React__namespace.createElement(Text, { size:
|
|
1037
|
+
return (React__namespace.createElement(FlexRow, { padding: this.props.padding || '24', vPadding: "12", borderBottom: this.props.borderBottom, cx: [css$O.modalHeader, this.props.cx], spacing: "12", rawProps: this.props.rawProps },
|
|
1038
|
+
this.props.title && (React__namespace.createElement(Text, { size: "48", fontSize: "18", font: "semibold" }, this.props.title)),
|
|
1067
1039
|
this.props.children,
|
|
1068
|
-
this.props.onClose && React__namespace.createElement(FlexSpacer, null),
|
|
1069
|
-
this.props.onClose && React__namespace.createElement(FlexCell, { shrink: 0, width:
|
|
1070
|
-
React__namespace.createElement(IconButton, { icon: ForwardRef$
|
|
1040
|
+
this.props.onClose && React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
1041
|
+
this.props.onClose && (React__namespace.createElement(FlexCell, { shrink: 0, width: "auto" },
|
|
1042
|
+
React__namespace.createElement(IconButton, { icon: ForwardRef$D, onClick: this.props.onClose })))));
|
|
1071
1043
|
}
|
|
1072
1044
|
}
|
|
1073
1045
|
class ModalFooter extends React__namespace.Component {
|
|
1074
1046
|
render() {
|
|
1075
|
-
return (React__namespace.createElement(FlexRow, { spacing: this.props.spacing || '12', cx: [
|
|
1047
|
+
return (React__namespace.createElement(FlexRow, { spacing: this.props.spacing || '12', cx: [
|
|
1048
|
+
css$O.modalFooter, this.props.borderTop && css$O.borderTop, this.props.cx,
|
|
1049
|
+
], padding: this.props.padding || '24', vPadding: this.props.vPadding || '24', rawProps: this.props.rawProps }, this.props.children));
|
|
1076
1050
|
}
|
|
1077
1051
|
}
|
|
1078
1052
|
|
|
@@ -1129,9 +1103,9 @@ const i18n = Object.assign(Object.assign({}, uuiCore.i18n), { dataPickerBody: {
|
|
|
1129
1103
|
subText: 'We can’t find any item matching your request',
|
|
1130
1104
|
},
|
|
1131
1105
|
enableAtLeastOneColumnMessage: 'Please enable at least one column',
|
|
1132
|
-
pinColumnButton:
|
|
1133
|
-
unPinColumnButton:
|
|
1134
|
-
lockedColumnPinButton:
|
|
1106
|
+
pinColumnButton: 'Pin column',
|
|
1107
|
+
unPinColumnButton: 'Unpin column',
|
|
1108
|
+
lockedColumnPinButton: 'You cannot unpin this column',
|
|
1135
1109
|
},
|
|
1136
1110
|
}, pickerFilterHeader: {
|
|
1137
1111
|
sortAscending: 'Sort Ascending',
|
|
@@ -1159,23 +1133,23 @@ const i18n = Object.assign(Object.assign({}, uuiCore.i18n), { dataPickerBody: {
|
|
|
1159
1133
|
saveButton: 'Save',
|
|
1160
1134
|
} });
|
|
1161
1135
|
|
|
1162
|
-
var _path$
|
|
1163
|
-
function _extends$
|
|
1136
|
+
var _path$A;
|
|
1137
|
+
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); }
|
|
1164
1138
|
var SvgCross = function SvgCross(props, ref) {
|
|
1165
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1139
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$C({
|
|
1166
1140
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1167
1141
|
width: 24,
|
|
1168
1142
|
height: 24,
|
|
1169
1143
|
viewBox: "0 0 24 24",
|
|
1170
1144
|
ref: ref
|
|
1171
|
-
}, props), _path$
|
|
1145
|
+
}, props), _path$A || (_path$A = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1172
1146
|
fillRule: "evenodd",
|
|
1173
1147
|
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"
|
|
1174
1148
|
})));
|
|
1175
1149
|
};
|
|
1176
|
-
var ForwardRef$
|
|
1150
|
+
var ForwardRef$C = /*#__PURE__*/React.forwardRef(SvgCross);
|
|
1177
1151
|
|
|
1178
|
-
var css$
|
|
1152
|
+
var css$N = {"typography-header":"NotificationCard_typography-header__JcbKn","typography-block":"NotificationCard_typography-block__nKwA0","typography-inline":"NotificationCard_typography-inline__BO1HG","typography-16":"NotificationCard_typography-16__mixDm","typography-14":"NotificationCard_typography-14__E40GV","typography-12":"NotificationCard_typography-12__r-3ka","typography-promo":"NotificationCard_typography-promo__P5KSk NotificationCard_typography-header__JcbKn NotificationCard_typography-block__nKwA0 NotificationCard_typography-inline__BO1HG","root":"NotificationCard_root__HP4NM","icon-wrapper":"NotificationCard_icon-wrapper__FZUAl","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","typographyHeader":"NotificationCard_typography-header__JcbKn","typographyBlock":"NotificationCard_typography-block__nKwA0","typographyInline":"NotificationCard_typography-inline__BO1HG","typography16":"NotificationCard_typography-16__mixDm","typography14":"NotificationCard_typography-14__E40GV","typography12":"NotificationCard_typography-12__r-3ka","typographyPromo":"NotificationCard_typography-promo__P5KSk NotificationCard_typography-header__JcbKn NotificationCard_typography-block__nKwA0 NotificationCard_typography-inline__BO1HG","iconWrapper":"NotificationCard_icon-wrapper__FZUAl","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"};
|
|
1179
1153
|
|
|
1180
1154
|
const NotificationCard = React__namespace.default.forwardRef((props, ref) => {
|
|
1181
1155
|
const notificationCardNode = React__namespace.default.useRef(null);
|
|
@@ -1190,100 +1164,106 @@ const NotificationCard = React__namespace.default.forwardRef((props, ref) => {
|
|
|
1190
1164
|
(_b = notificationCardNode.current) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseleave', props.refreshTimer);
|
|
1191
1165
|
};
|
|
1192
1166
|
}, []);
|
|
1193
|
-
return (React__namespace.default.createElement("div", Object.assign({ role: "alert", className: cx__default.default(`notification-card-${props.color}`, css$
|
|
1194
|
-
React__namespace.default.createElement("div", { className: css$
|
|
1195
|
-
props.icon && (React__namespace.default.createElement("div", { className: css$
|
|
1196
|
-
React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$
|
|
1197
|
-
React__namespace.default.createElement("div", { className: css$
|
|
1167
|
+
return (React__namespace.default.createElement("div", Object.assign({ role: "alert", className: cx__default.default(props.color && `notification-card-${props.color}`, css$N.root, props.cx), ref: notificationCardNode }, props.rawProps),
|
|
1168
|
+
React__namespace.default.createElement("div", { className: css$N.mainPath },
|
|
1169
|
+
props.icon && (React__namespace.default.createElement("div", { className: css$N.iconWrapper },
|
|
1170
|
+
React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$N.actionIcon }))),
|
|
1171
|
+
React__namespace.default.createElement("div", { className: css$N.content },
|
|
1198
1172
|
props.children,
|
|
1199
|
-
props.actions && React__namespace.default.createElement("div", { className: css$
|
|
1200
|
-
props.onClose && (React__namespace.default.createElement("div", { className: css$
|
|
1201
|
-
React__namespace.default.createElement(IconButton, { icon: ForwardRef$
|
|
1173
|
+
props.actions && (React__namespace.default.createElement("div", { className: css$N.actionWrapper }, props.actions.map((action) => (React__namespace.default.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$N.actionLink, size: "36", rawProps: action.rawProps })))))),
|
|
1174
|
+
props.onClose && (React__namespace.default.createElement("div", { className: css$N.closeWrapper },
|
|
1175
|
+
React__namespace.default.createElement(IconButton, { icon: ForwardRef$C, color: "default", onClick: props.onClose, cx: css$N.closeIcon }))))));
|
|
1202
1176
|
});
|
|
1203
|
-
const WarningNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
1204
|
-
const SuccessNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
1205
|
-
const HintNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
1206
|
-
const ErrorNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$
|
|
1177
|
+
const WarningNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$G, color: "warning" }, props, { ref: ref, cx: props.cx }))));
|
|
1178
|
+
const SuccessNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$H, color: "success" }, props, { ref: ref, cx: props.cx }))));
|
|
1179
|
+
const HintNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$E, color: "info" }, props, { ref: ref, cx: props.cx }))));
|
|
1180
|
+
const ErrorNotification = React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, Object.assign({ icon: ForwardRef$F, color: "error" }, props, { ref: ref, cx: props.cx }))));
|
|
1207
1181
|
class ClearNotification extends React__namespace.default.Component {
|
|
1208
1182
|
render() {
|
|
1209
|
-
return React__namespace.default.createElement("div", { className: cx__default.default(css$
|
|
1210
|
-
React__namespace.default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => this.context.uuiNotifications.clearAll() }));
|
|
1183
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default(css$N.notificationWrapper, css$N.clearButton) },
|
|
1184
|
+
React__namespace.default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => this.context.uuiNotifications.clearAll() })));
|
|
1211
1185
|
}
|
|
1212
1186
|
}
|
|
1213
1187
|
ClearNotification.contextType = uuiCore.UuiContext;
|
|
1214
1188
|
|
|
1215
|
-
var css$
|
|
1189
|
+
var css$M = {"root":"Tooltip_root__zZwnu"};
|
|
1216
1190
|
|
|
1217
1191
|
function applyTooltipMods(mods) {
|
|
1218
1192
|
return [
|
|
1219
1193
|
`tooltip-${mods.color}`,
|
|
1220
|
-
css$
|
|
1194
|
+
css$M.root,
|
|
1221
1195
|
];
|
|
1222
1196
|
}
|
|
1223
1197
|
const Tooltip = uuiCore.withMods(uuiComponents.Tooltip, applyTooltipMods);
|
|
1224
1198
|
|
|
1225
|
-
|
|
1199
|
+
class ConfirmationModal extends React__namespace.Component {
|
|
1200
|
+
render() {
|
|
1201
|
+
let bodyContent;
|
|
1202
|
+
if (this.props.bodyContent) {
|
|
1203
|
+
bodyContent = React__namespace.createElement(Panel, { margin: "24" }, this.props.bodyContent);
|
|
1204
|
+
}
|
|
1205
|
+
return (React__namespace.createElement(ModalBlocker, Object.assign({}, this.props),
|
|
1206
|
+
React__namespace.createElement(ModalWindow, { width: 420 },
|
|
1207
|
+
React__namespace.createElement(ModalHeader, { borderBottom: true, title: this.props.caption, onClose: () => this.props.abort() }),
|
|
1208
|
+
React__namespace.createElement(ScrollBars, null, bodyContent),
|
|
1209
|
+
React__namespace.createElement(ModalFooter, null,
|
|
1210
|
+
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
1211
|
+
this.props.hideCancelButton || (React__namespace.createElement(Button, { caption: i18n.form.modals.discardButton, onClick: () => this.props.success(false), mode: "outline", color: "secondary" })),
|
|
1212
|
+
React__namespace.createElement(Button, { caption: i18n.form.modals.saveButton, onClick: () => this.props.success(true), color: "accent" })))));
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
var css$L = {"typography-header":"LabeledInput_typography-header__HJu91","typography-block":"LabeledInput_typography-block__4Jo8P","typography-inline":"LabeledInput_typography-inline__iNLix","typography-16":"LabeledInput_typography-16__B-aku","typography-14":"LabeledInput_typography-14__YxFLH","typography-12":"LabeledInput_typography-12__Jr6Uq","typography-promo":"LabeledInput_typography-promo__3-e-V LabeledInput_typography-header__HJu91 LabeledInput_typography-block__4Jo8P LabeledInput_typography-inline__iNLix","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","typographyHeader":"LabeledInput_typography-header__HJu91","typographyBlock":"LabeledInput_typography-block__4Jo8P","typographyInline":"LabeledInput_typography-inline__iNLix","typography16":"LabeledInput_typography-16__B-aku","typography14":"LabeledInput_typography-14__YxFLH","typography12":"LabeledInput_typography-12__Jr6Uq","typographyPromo":"LabeledInput_typography-promo__3-e-V LabeledInput_typography-header__HJu91 LabeledInput_typography-block__4Jo8P LabeledInput_typography-inline__iNLix","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"};
|
|
1226
1217
|
|
|
1227
1218
|
const defaultSize$7 = '36';
|
|
1228
1219
|
function applyLabeledInputMods(mods) {
|
|
1229
|
-
return [
|
|
1230
|
-
css$K.root,
|
|
1231
|
-
css$K['size-' + (mods.size || defaultSize$7)],
|
|
1232
|
-
];
|
|
1220
|
+
return [css$L.root, css$L['size-' + (mods.size || defaultSize$7)]];
|
|
1233
1221
|
}
|
|
1234
1222
|
const LabeledInput = uuiCore.withMods(uuiComponents.LabeledInput, applyLabeledInputMods, (props) => ({
|
|
1235
1223
|
Tooltip,
|
|
1236
1224
|
infoIcon: systemIcons[props.size || defaultSize$7].help,
|
|
1237
1225
|
}));
|
|
1238
1226
|
|
|
1239
|
-
var css$
|
|
1227
|
+
var css$K = {"root":"RadioGroup_root__uLWIn"};
|
|
1240
1228
|
|
|
1241
|
-
const RadioGroup = uuiCore.withMods(uuiComponents.RadioGroup, () => [css$
|
|
1229
|
+
const RadioGroup = uuiCore.withMods(uuiComponents.RadioGroup, () => [css$K.root], () => ({ RadioInput }));
|
|
1242
1230
|
|
|
1243
1231
|
function applyScrollBarsMods() {
|
|
1244
1232
|
return [
|
|
1245
|
-
'uui-scroll-bars',
|
|
1246
|
-
'uui-shadow-top',
|
|
1247
|
-
'uui-shadow-bottom',
|
|
1233
|
+
'uui-scroll-bars', 'uui-shadow-top', 'uui-shadow-bottom',
|
|
1248
1234
|
];
|
|
1249
1235
|
}
|
|
1250
1236
|
const ScrollBars = uuiCore.withMods(uuiComponents.ScrollBars, applyScrollBarsMods);
|
|
1251
1237
|
|
|
1252
1238
|
const VirtualList = uuiComponents.VirtualList;
|
|
1253
1239
|
|
|
1254
|
-
var css$
|
|
1240
|
+
var css$J = {"root":"Blocker_root__OB584"};
|
|
1255
1241
|
|
|
1256
|
-
var css$
|
|
1242
|
+
var css$I = {"root":"Spinner_root__jJ3FR","uui-spinner":"Spinner_uui-spinner__qD4cq","uuiSpinner":"Spinner_uui-spinner__qD4cq"};
|
|
1257
1243
|
|
|
1258
1244
|
function applySpinnerMods() {
|
|
1259
|
-
return [
|
|
1260
|
-
css$H.root,
|
|
1261
|
-
];
|
|
1245
|
+
return [css$I.root];
|
|
1262
1246
|
}
|
|
1263
1247
|
const Spinner = uuiCore.withMods(uuiComponents.Spinner, applySpinnerMods);
|
|
1264
1248
|
|
|
1265
|
-
const Blocker = uuiCore.withMods(uuiComponents.Blocker, () => [css$
|
|
1249
|
+
const Blocker = uuiCore.withMods(uuiComponents.Blocker, () => [css$J.root], (cmpProps) => ({ renderSpinner: cmpProps.renderSpinner || (() => React__namespace.default.createElement(Spinner, null)) }));
|
|
1266
1250
|
|
|
1267
|
-
var css$
|
|
1251
|
+
var css$H = {"root":"CheckboxGroup_root__6KmvL"};
|
|
1268
1252
|
|
|
1269
|
-
const CheckboxGroup = uuiCore.withMods(uuiComponents.CheckboxGroup, () => [css$
|
|
1253
|
+
const CheckboxGroup = uuiCore.withMods(uuiComponents.CheckboxGroup, () => [css$H.root], () => ({ CheckboxInput: Checkbox }));
|
|
1270
1254
|
|
|
1271
1255
|
function MultiSwitchComponent(props, ref) {
|
|
1272
1256
|
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' } }))))));
|
|
1273
1257
|
}
|
|
1274
1258
|
const MultiSwitch = React__namespace.forwardRef(MultiSwitchComponent);
|
|
1275
1259
|
|
|
1276
|
-
var css$
|
|
1260
|
+
var css$G = {"typography-header":"NumericInput_typography-header__GGZXK","typography-block":"NumericInput_typography-block__kzaEI","typography-inline":"NumericInput_typography-inline__i-mmY","typography-16":"NumericInput_typography-16__1kNP6","typography-14":"NumericInput_typography-14__GS-GA","typography-12":"NumericInput_typography-12__-r6Ni","typography-promo":"NumericInput_typography-promo__7QcU- NumericInput_typography-header__GGZXK NumericInput_typography-block__kzaEI NumericInput_typography-inline__i-mmY","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","typographyHeader":"NumericInput_typography-header__GGZXK","typographyBlock":"NumericInput_typography-block__kzaEI","typographyInline":"NumericInput_typography-inline__i-mmY","typography16":"NumericInput_typography-16__1kNP6","typography14":"NumericInput_typography-14__GS-GA","typography12":"NumericInput_typography-12__-r6Ni","typographyPromo":"NumericInput_typography-promo__7QcU- NumericInput_typography-header__GGZXK NumericInput_typography-block__kzaEI NumericInput_typography-inline__i-mmY","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"};
|
|
1277
1261
|
|
|
1278
|
-
const defaultSize$6 =
|
|
1262
|
+
const defaultSize$6 = '36';
|
|
1279
1263
|
const defaultMode$3 = exports.EditMode.FORM;
|
|
1280
1264
|
function applyNumericInputMods(mods) {
|
|
1281
1265
|
return [
|
|
1282
|
-
textInputCss.root,
|
|
1283
|
-
css$F.root,
|
|
1284
|
-
css$F["size-" + (mods.size || defaultSize$6)],
|
|
1285
|
-
textInputCss["size-" + (mods.size || defaultSize$6)],
|
|
1286
|
-
textInputCss["mode-" + (mods.mode || defaultMode$3)],
|
|
1266
|
+
textInputCss.root, css$G.root, css$G['size-' + (mods.size || defaultSize$6)], textInputCss['size-' + (mods.size || defaultSize$6)], textInputCss['mode-' + (mods.mode || defaultMode$3)],
|
|
1287
1267
|
];
|
|
1288
1268
|
}
|
|
1289
1269
|
const NumericInput = uuiCore.withMods(uuiComponents.NumericInput, applyNumericInputMods, (props) => {
|
|
@@ -1291,38 +1271,33 @@ const NumericInput = uuiCore.withMods(uuiComponents.NumericInput, applyNumericIn
|
|
|
1291
1271
|
return ({
|
|
1292
1272
|
upIcon: systemIcons[props.size || defaultSize$6].foldingArrow,
|
|
1293
1273
|
downIcon: systemIcons[props.size || defaultSize$6].foldingArrow,
|
|
1294
|
-
align: (_a = props.align) !== null && _a !== void 0 ? _a : (props.mode ===
|
|
1295
|
-
disableArrows: (_b = props.disableArrows) !== null && _b !== void 0 ? _b : props.mode ===
|
|
1274
|
+
align: (_a = props.align) !== null && _a !== void 0 ? _a : (props.mode === 'cell' ? 'right' : 'left'),
|
|
1275
|
+
disableArrows: (_b = props.disableArrows) !== null && _b !== void 0 ? _b : props.mode === 'cell',
|
|
1296
1276
|
});
|
|
1297
1277
|
});
|
|
1298
1278
|
|
|
1299
|
-
var css$
|
|
1279
|
+
var css$F = {"typography-header":"TextArea_typography-header__o-1aw","typography-block":"TextArea_typography-block__eszLT","typography-inline":"TextArea_typography-inline__Y5s6o","typography-16":"TextArea_typography-16__FZZaw","typography-14":"TextArea_typography-14__ZQ-8z","typography-12":"TextArea_typography-12__iYiOG","typography-promo":"TextArea_typography-promo__pYQ5f TextArea_typography-header__o-1aw TextArea_typography-block__eszLT TextArea_typography-inline__Y5s6o","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","typographyHeader":"TextArea_typography-header__o-1aw","typographyBlock":"TextArea_typography-block__eszLT","typographyInline":"TextArea_typography-inline__Y5s6o","typography16":"TextArea_typography-16__FZZaw","typography14":"TextArea_typography-14__ZQ-8z","typography12":"TextArea_typography-12__iYiOG","typographyPromo":"TextArea_typography-promo__pYQ5f TextArea_typography-header__o-1aw TextArea_typography-block__eszLT TextArea_typography-inline__Y5s6o","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"};
|
|
1300
1280
|
|
|
1301
1281
|
const defaultSize$5 = '36';
|
|
1302
1282
|
const defaultMode$2 = exports.EditMode.FORM;
|
|
1303
1283
|
function applyTextAreaMods(mods) {
|
|
1304
1284
|
return [
|
|
1305
|
-
css$
|
|
1306
|
-
css$E['size-' + (mods.size || defaultSize$5)],
|
|
1307
|
-
css$E['mode-' + (mods.mode || defaultMode$2)],
|
|
1285
|
+
css$F.root, css$F['size-' + (mods.size || defaultSize$5)], css$F['mode-' + (mods.mode || defaultMode$2)],
|
|
1308
1286
|
];
|
|
1309
1287
|
}
|
|
1310
|
-
const TextArea = uuiCore.withMods(uuiComponents.TextArea, applyTextAreaMods, props => ({
|
|
1288
|
+
const TextArea = uuiCore.withMods(uuiComponents.TextArea, applyTextAreaMods, (props) => ({
|
|
1311
1289
|
autoSize: props.mode === exports.EditMode.CELL ? true : props.autoSize,
|
|
1312
1290
|
maxLength: props.mode === exports.EditMode.CELL ? undefined : props.maxLength,
|
|
1313
1291
|
}));
|
|
1314
1292
|
|
|
1315
|
-
var css$
|
|
1293
|
+
var css$E = {"typography-header":"DatePicker_typography-header__d3UN6","typography-block":"DatePicker_typography-block__vnQqM","typography-inline":"DatePicker_typography-inline__uM5kg","typography-16":"DatePicker_typography-16__-wmeU","typography-14":"DatePicker_typography-14__Upcdm","typography-12":"DatePicker_typography-12__Z1YnJ","typography-promo":"DatePicker_typography-promo__V5CNx DatePicker_typography-header__d3UN6 DatePicker_typography-block__vnQqM DatePicker_typography-inline__uM5kg","root":"DatePicker_root__kqFyh","typographyHeader":"DatePicker_typography-header__d3UN6","typographyBlock":"DatePicker_typography-block__vnQqM","typographyInline":"DatePicker_typography-inline__uM5kg","typography16":"DatePicker_typography-16__-wmeU","typography14":"DatePicker_typography-14__Upcdm","typography12":"DatePicker_typography-12__Z1YnJ","typographyPromo":"DatePicker_typography-promo__V5CNx DatePicker_typography-header__d3UN6 DatePicker_typography-block__vnQqM DatePicker_typography-inline__uM5kg"};
|
|
1316
1294
|
|
|
1317
1295
|
var calendarCss = {"typography-header":"Calendar_typography-header__dkLL8","typography-block":"Calendar_typography-block__DXJIH","typography-inline":"Calendar_typography-inline__NGFRU","typography-16":"Calendar_typography-16__FGS6a","typography-14":"Calendar_typography-14__fa4gQ","typography-12":"Calendar_typography-12__8rwED","typography-promo":"Calendar_typography-promo__-3dg- Calendar_typography-header__dkLL8 Calendar_typography-block__DXJIH Calendar_typography-inline__NGFRU","root":"Calendar_root__Vh71D","typographyHeader":"Calendar_typography-header__dkLL8","typographyBlock":"Calendar_typography-block__DXJIH","typographyInline":"Calendar_typography-inline__NGFRU","typography16":"Calendar_typography-16__FGS6a","typography14":"Calendar_typography-14__fa4gQ","typography12":"Calendar_typography-12__8rwED","typographyPromo":"Calendar_typography-promo__-3dg- Calendar_typography-header__dkLL8 Calendar_typography-block__DXJIH Calendar_typography-inline__NGFRU"};
|
|
1318
1296
|
|
|
1319
1297
|
function applyDatePickerBodyMods() {
|
|
1320
|
-
return [
|
|
1321
|
-
css$D.root,
|
|
1322
|
-
calendarCss.root,
|
|
1323
|
-
];
|
|
1298
|
+
return [css$E.root, calendarCss.root];
|
|
1324
1299
|
}
|
|
1325
|
-
const DatePickerBody = uuiCore.withMods(uuiComponents.DatePickerBody, applyDatePickerBodyMods, () => ({ navIconLeft: ForwardRef$
|
|
1300
|
+
const DatePickerBody = uuiCore.withMods(uuiComponents.DatePickerBody, applyDatePickerBodyMods, () => ({ navIconLeft: ForwardRef$10, navIconRight: ForwardRef$10 }));
|
|
1326
1301
|
|
|
1327
1302
|
const defaultMode$1 = exports.EditMode.FORM;
|
|
1328
1303
|
class DatePicker extends uuiComponents.BaseDatePicker {
|
|
@@ -1330,25 +1305,37 @@ class DatePicker extends uuiComponents.BaseDatePicker {
|
|
|
1330
1305
|
super(...arguments);
|
|
1331
1306
|
this.renderInput = (props) => {
|
|
1332
1307
|
var _a;
|
|
1333
|
-
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:
|
|
1308
|
+
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 })));
|
|
1334
1309
|
};
|
|
1335
1310
|
}
|
|
1336
1311
|
renderBody(props) {
|
|
1337
1312
|
var _a, _b, _c;
|
|
1338
|
-
return React__namespace.default.createElement(DropdownContainer, Object.assign({}, props),
|
|
1313
|
+
return (React__namespace.default.createElement(DropdownContainer, Object.assign({}, props),
|
|
1339
1314
|
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 :
|
|
1340
|
-
_c.call(_b));
|
|
1315
|
+
_c.call(_b)));
|
|
1341
1316
|
}
|
|
1342
1317
|
}
|
|
1343
1318
|
|
|
1344
1319
|
function applyDateSelectionMods() {
|
|
1320
|
+
return [calendarCss.root];
|
|
1321
|
+
}
|
|
1322
|
+
const Calendar = uuiCore.withMods(uuiComponents.Calendar, applyDateSelectionMods);
|
|
1323
|
+
|
|
1324
|
+
var rangeCss = {"typography-header":"RangeDatePickerBody_typography-header__yuzZD","typography-block":"RangeDatePickerBody_typography-block__lYgPa","typography-inline":"RangeDatePickerBody_typography-inline__E8RNG","typography-16":"RangeDatePickerBody_typography-16__9uEL3","typography-14":"RangeDatePickerBody_typography-14__TEa5n","typography-12":"RangeDatePickerBody_typography-12__S-NBX","typography-promo":"RangeDatePickerBody_typography-promo__4VksA RangeDatePickerBody_typography-header__yuzZD RangeDatePickerBody_typography-block__lYgPa RangeDatePickerBody_typography-inline__E8RNG","root":"RangeDatePickerBody_root__CCVfb","typographyHeader":"RangeDatePickerBody_typography-header__yuzZD","typographyBlock":"RangeDatePickerBody_typography-block__lYgPa","typographyInline":"RangeDatePickerBody_typography-inline__E8RNG","typography16":"RangeDatePickerBody_typography-16__9uEL3","typography14":"RangeDatePickerBody_typography-14__TEa5n","typography12":"RangeDatePickerBody_typography-12__S-NBX","typographyPromo":"RangeDatePickerBody_typography-promo__4VksA RangeDatePickerBody_typography-header__yuzZD RangeDatePickerBody_typography-block__lYgPa RangeDatePickerBody_typography-inline__E8RNG"};
|
|
1325
|
+
|
|
1326
|
+
var calendarPresetsCss = {"typography-header":"CalendarPresets_typography-header__D2UZW","typography-block":"CalendarPresets_typography-block__68m9o","typography-inline":"CalendarPresets_typography-inline__5mzPE","typography-16":"CalendarPresets_typography-16__-TrF-","typography-14":"CalendarPresets_typography-14__-onzo","typography-12":"CalendarPresets_typography-12__zE74w","typography-promo":"CalendarPresets_typography-promo__Zp05u CalendarPresets_typography-header__D2UZW CalendarPresets_typography-block__68m9o CalendarPresets_typography-inline__5mzPE","root":"CalendarPresets_root__5O668","typographyHeader":"CalendarPresets_typography-header__D2UZW","typographyBlock":"CalendarPresets_typography-block__68m9o","typographyInline":"CalendarPresets_typography-inline__5mzPE","typography16":"CalendarPresets_typography-16__-TrF-","typography14":"CalendarPresets_typography-14__-onzo","typography12":"CalendarPresets_typography-12__zE74w","typographyPromo":"CalendarPresets_typography-promo__Zp05u CalendarPresets_typography-header__D2UZW CalendarPresets_typography-block__68m9o CalendarPresets_typography-inline__5mzPE"};
|
|
1327
|
+
|
|
1328
|
+
function applyRangeDatePickerBodyMods() {
|
|
1345
1329
|
return [
|
|
1346
|
-
calendarCss.root,
|
|
1330
|
+
css$E.root, rangeCss.root, calendarCss.root, calendarPresetsCss.root,
|
|
1347
1331
|
];
|
|
1348
1332
|
}
|
|
1349
|
-
const
|
|
1333
|
+
const RangeDatePickerBody = uuiCore.withMods(uuiComponents.RangeDatePickerBody, applyRangeDatePickerBodyMods, () => ({
|
|
1334
|
+
navIconLeft: ForwardRef$10,
|
|
1335
|
+
navIconRight: ForwardRef$10,
|
|
1336
|
+
}));
|
|
1350
1337
|
|
|
1351
|
-
var css$
|
|
1338
|
+
var css$D = {"typography-header":"RangeDatePicker_typography-header__1MSa3","typography-block":"RangeDatePicker_typography-block__pC0T7","typography-inline":"RangeDatePicker_typography-inline__efdyU","typography-16":"RangeDatePicker_typography-16__FHiRR","typography-14":"RangeDatePicker_typography-14__5MCXV","typography-12":"RangeDatePicker_typography-12__zcQS2","typography-promo":"RangeDatePicker_typography-promo__GtLFC RangeDatePicker_typography-header__1MSa3 RangeDatePicker_typography-block__pC0T7 RangeDatePicker_typography-inline__efdyU","dropdown-container":"RangeDatePicker_dropdown-container__GJh6o","container":"RangeDatePicker_container__Kz2FS","button-group":"RangeDatePicker_button-group__a-twv","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","typographyHeader":"RangeDatePicker_typography-header__1MSa3","typographyBlock":"RangeDatePicker_typography-block__pC0T7","typographyInline":"RangeDatePicker_typography-inline__efdyU","typography16":"RangeDatePicker_typography-16__FHiRR","typography14":"RangeDatePicker_typography-14__5MCXV","typography12":"RangeDatePicker_typography-12__zcQS2","typographyPromo":"RangeDatePicker_typography-promo__GtLFC RangeDatePicker_typography-header__1MSa3 RangeDatePicker_typography-block__pC0T7 RangeDatePicker_typography-inline__efdyU","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"};
|
|
1352
1339
|
|
|
1353
1340
|
const defaultValue = { from: null, to: null };
|
|
1354
1341
|
class RangeDatePicker extends uuiComponents.BaseRangeDatePicker {
|
|
@@ -1356,49 +1343,35 @@ class RangeDatePicker extends uuiComponents.BaseRangeDatePicker {
|
|
|
1356
1343
|
super(...arguments);
|
|
1357
1344
|
this.renderInput = (props) => {
|
|
1358
1345
|
var _a, _b;
|
|
1359
|
-
return (React__namespace.createElement("div", { className: cx__default.default(this.props.inputCx, css$
|
|
1360
|
-
React__namespace.createElement(TextInput, { icon: systemIcons[this.props.size || '36'].calendar, cx: cx__default.default(
|
|
1361
|
-
React__namespace.createElement("div", { className: css$
|
|
1362
|
-
React__namespace.createElement(TextInput, { cx: cx__default.default(
|
|
1346
|
+
return (React__namespace.createElement("div", { className: cx__default.default(this.props.inputCx, css$D.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 },
|
|
1347
|
+
React__namespace.createElement(TextInput, { icon: systemIcons[this.props.size || '36'].calendar, cx: cx__default.default(css$D.dateInput, css$D['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 }),
|
|
1348
|
+
React__namespace.createElement("div", { className: css$D.separator }),
|
|
1349
|
+
React__namespace.createElement(TextInput, { cx: cx__default.default(css$D.dateInput, css$D['size-' + (this.props.size || 36)], this.state.inFocus === 'to' && uuiCore.uuiMod.focus), placeholder: this.props.getPlaceholder ? this.props.getPlaceholder('to') : i18n.rangeDatePicker.pickerPlaceholderTo, size: this.props.size || '36', value: this.state.inputValue.to, onCancel: this.props.disableClear ? null : this.state.inputValue.from && this.state.inputValue.to && this.handleCancel, onValueChange: this.getChangeHandler('to'), isInvalid: this.props.isInvalid, isDisabled: this.props.isDisabled, isReadonly: this.props.isReadonly, onFocus: (e) => this.handleFocus(e, 'to'), onBlur: (e) => this.handleBlur(e, 'to'), isDropdown: false, rawProps: (_b = this.props.rawProps) === null || _b === void 0 ? void 0 : _b.to })));
|
|
1363
1350
|
};
|
|
1364
1351
|
}
|
|
1365
1352
|
renderBody(props) {
|
|
1366
1353
|
var _a;
|
|
1367
|
-
return (React__namespace.createElement(DropdownContainer, Object.assign({}, props, { cx: cx__default.default(css$
|
|
1354
|
+
return (React__namespace.createElement(DropdownContainer, Object.assign({}, props, { cx: cx__default.default(css$D.dropdownContainer) }),
|
|
1368
1355
|
React__namespace.createElement(FlexRow, null,
|
|
1369
1356
|
React__namespace.createElement(RangeDatePickerBody, { cx: cx__default.default(this.props.bodyCx), value: this.getValue(), onValueChange: this.onRangeChange, filter: this.props.filter, changeIsOpen: this.toggleOpening, presets: this.props.presets, focusPart: this.state.inFocus, renderDay: this.props.renderDay, renderFooter: this.props.renderFooter && (() => this.props.renderFooter(this.props.value || defaultValue)), isHoliday: this.props.isHoliday, rawProps: (_a = this.props.rawProps) === null || _a === void 0 ? void 0 : _a.body }))));
|
|
1370
1357
|
}
|
|
1371
1358
|
}
|
|
1372
1359
|
|
|
1373
|
-
var
|
|
1374
|
-
|
|
1375
|
-
var calendarPresetsCss = {"typography-header":"CalendarPresets_typography-header__D2UZW","typography-block":"CalendarPresets_typography-block__68m9o","typography-inline":"CalendarPresets_typography-inline__5mzPE","typography-16":"CalendarPresets_typography-16__-TrF-","typography-14":"CalendarPresets_typography-14__-onzo","typography-12":"CalendarPresets_typography-12__zE74w","typography-promo":"CalendarPresets_typography-promo__Zp05u CalendarPresets_typography-header__D2UZW CalendarPresets_typography-block__68m9o CalendarPresets_typography-inline__5mzPE","root":"CalendarPresets_root__5O668","typographyHeader":"CalendarPresets_typography-header__D2UZW","typographyBlock":"CalendarPresets_typography-block__68m9o","typographyInline":"CalendarPresets_typography-inline__5mzPE","typography16":"CalendarPresets_typography-16__-TrF-","typography14":"CalendarPresets_typography-14__-onzo","typography12":"CalendarPresets_typography-12__zE74w","typographyPromo":"CalendarPresets_typography-promo__Zp05u CalendarPresets_typography-header__D2UZW CalendarPresets_typography-block__68m9o CalendarPresets_typography-inline__5mzPE"};
|
|
1376
|
-
|
|
1377
|
-
function applyRangeDatePickerBodyMods() {
|
|
1378
|
-
return [
|
|
1379
|
-
css$D.root,
|
|
1380
|
-
rangeCss.root,
|
|
1381
|
-
calendarCss.root,
|
|
1382
|
-
calendarPresetsCss.root,
|
|
1383
|
-
];
|
|
1384
|
-
}
|
|
1385
|
-
const RangeDatePickerBody = uuiCore.withMods(uuiComponents.RangeDatePickerBody, applyRangeDatePickerBodyMods, () => ({ navIconLeft: ForwardRef$Y, navIconRight: ForwardRef$Y }));
|
|
1386
|
-
|
|
1387
|
-
var css$B = {"typography-header":"DropMarker_typography-header__W65wc","typography-block":"DropMarker_typography-block__uaCk0","typography-inline":"DropMarker_typography-inline__tZ3Y-","typography-16":"DropMarker_typography-16__o-pNo","typography-14":"DropMarker_typography-14__so29S","typography-12":"DropMarker_typography-12__UmnG8","typography-promo":"DropMarker_typography-promo__rioi4 DropMarker_typography-header__W65wc DropMarker_typography-block__uaCk0 DropMarker_typography-inline__tZ3Y-","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","typographyHeader":"DropMarker_typography-header__W65wc","typographyBlock":"DropMarker_typography-block__uaCk0","typographyInline":"DropMarker_typography-inline__tZ3Y-","typography16":"DropMarker_typography-16__o-pNo","typography14":"DropMarker_typography-14__so29S","typography12":"DropMarker_typography-12__UmnG8","typographyPromo":"DropMarker_typography-promo__rioi4 DropMarker_typography-header__W65wc DropMarker_typography-block__uaCk0 DropMarker_typography-inline__tZ3Y-"};
|
|
1360
|
+
var css$C = {"typography-header":"DropMarker_typography-header__W65wc","typography-block":"DropMarker_typography-block__uaCk0","typography-inline":"DropMarker_typography-inline__tZ3Y-","typography-16":"DropMarker_typography-16__o-pNo","typography-14":"DropMarker_typography-14__so29S","typography-12":"DropMarker_typography-12__UmnG8","typography-promo":"DropMarker_typography-promo__rioi4 DropMarker_typography-header__W65wc DropMarker_typography-block__uaCk0 DropMarker_typography-inline__tZ3Y-","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","typographyHeader":"DropMarker_typography-header__W65wc","typographyBlock":"DropMarker_typography-block__uaCk0","typographyInline":"DropMarker_typography-inline__tZ3Y-","typography16":"DropMarker_typography-16__o-pNo","typography14":"DropMarker_typography-14__so29S","typography12":"DropMarker_typography-12__UmnG8","typographyPromo":"DropMarker_typography-promo__rioi4 DropMarker_typography-header__W65wc DropMarker_typography-block__uaCk0 DropMarker_typography-inline__tZ3Y-"};
|
|
1388
1361
|
|
|
1389
1362
|
class DropMarker extends React__namespace.Component {
|
|
1390
1363
|
render() {
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
React__namespace.createElement("div", { className:
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1364
|
+
var _a;
|
|
1365
|
+
return this.props.isDndInProgress ? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
1366
|
+
this.props.enableBlocker && React__namespace.createElement("div", { className: css$C.blocker }),
|
|
1367
|
+
React__namespace.createElement("div", { className: cx__default.default([
|
|
1368
|
+
css$C.marker, css$C[this.props.position],
|
|
1369
|
+
(_a = this.props) === null || _a === void 0 ? void 0 : _a.cx,
|
|
1370
|
+
]) }))) : null;
|
|
1398
1371
|
}
|
|
1399
1372
|
}
|
|
1400
1373
|
|
|
1401
|
-
var css$
|
|
1374
|
+
var css$B = {"typography-header":"DataPickerBody_typography-header__AlPy4","typography-block":"DataPickerBody_typography-block__BIQe2","typography-inline":"DataPickerBody_typography-inline__lOHW0","typography-16":"DataPickerBody_typography-16__P2rqG","typography-14":"DataPickerBody_typography-14__kmNXP","typography-12":"DataPickerBody_typography-12__W2f-m","typography-promo":"DataPickerBody_typography-promo__VoJO5 DataPickerBody_typography-header__AlPy4 DataPickerBody_typography-block__BIQe2 DataPickerBody_typography-inline__lOHW0","body":"DataPickerBody_body__9Atow","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","typographyHeader":"DataPickerBody_typography-header__AlPy4","typographyBlock":"DataPickerBody_typography-block__BIQe2","typographyInline":"DataPickerBody_typography-inline__lOHW0","typography16":"DataPickerBody_typography-16__P2rqG","typography14":"DataPickerBody_typography-14__kmNXP","typography12":"DataPickerBody_typography-12__W2f-m","typographyPromo":"DataPickerBody_typography-promo__VoJO5 DataPickerBody_typography-header__AlPy4 DataPickerBody_typography-block__BIQe2 DataPickerBody_typography-inline__lOHW0","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"};
|
|
1402
1375
|
|
|
1403
1376
|
class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
1404
1377
|
constructor() {
|
|
@@ -1410,79 +1383,78 @@ class DataPickerBody extends uuiComponents.PickerBodyBase {
|
|
|
1410
1383
|
if (this.props.renderNotFound) {
|
|
1411
1384
|
return this.props.renderNotFound();
|
|
1412
1385
|
}
|
|
1413
|
-
return React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$
|
|
1414
|
-
React__namespace.default.createElement(Text, { size: this.props.searchSize || '36' }, i18n.dataPickerBody.noRecordsMessage));
|
|
1386
|
+
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$B[`no-found-size-${this.props.searchSize || 36}`], grow: 1, textAlign: "center" },
|
|
1387
|
+
React__namespace.default.createElement(Text, { size: this.props.searchSize || '36' }, i18n.dataPickerBody.noRecordsMessage)));
|
|
1415
1388
|
}
|
|
1416
1389
|
render() {
|
|
1417
|
-
const searchSize = uuiCore.isMobile() ? '48' :
|
|
1418
|
-
return React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1419
|
-
this.showSearch() && (React__namespace.default.createElement("div", { key:
|
|
1390
|
+
const searchSize = uuiCore.isMobile() ? '48' : this.props.searchSize || '36';
|
|
1391
|
+
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1392
|
+
this.showSearch() && (React__namespace.default.createElement("div", { key: "search", className: css$B.searchWrapper },
|
|
1420
1393
|
React__namespace.default.createElement(uuiComponents.FlexCell, { grow: 1 },
|
|
1421
1394
|
React__namespace.default.createElement(SearchInput, Object.assign({ ref: this.searchRef, placeholder: i18n.dataPickerBody.searchPlaceholder }, this.searchLens.toProps(), { onKeyDown: this.searchKeyDown, size: searchSize }))))),
|
|
1422
|
-
React__namespace.default.createElement(FlexRow, { key:
|
|
1423
|
-
? React__namespace.default.createElement(VirtualList, Object.assign({}, this.lens.toProps(), { rows: this.props.rows, role: 'listbox', rawProps: this.props.rawProps, rowsCount: this.props.rowsCount }))
|
|
1424
|
-
: this.renderNotFound()));
|
|
1395
|
+
React__namespace.default.createElement(FlexRow, { key: "body", cx: uuiCore.cx(css$B.body, css$B[this.props.editMode], css$B[this.props.selectionMode]), rawProps: { style: { maxHeight: this.props.maxHeight } } }, this.props.rowsCount > 0 ? (React__namespace.default.createElement(VirtualList, Object.assign({}, this.lens.toProps(), { rows: this.props.rows, role: "listbox", rawProps: this.props.rawProps, rowsCount: this.props.rowsCount }))) : (this.renderNotFound()))));
|
|
1425
1396
|
}
|
|
1426
1397
|
}
|
|
1427
1398
|
|
|
1428
1399
|
const switchSizes = {
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
};
|
|
1434
|
-
|
|
1435
|
-
const { clearSelection, view, showSelected } = props;
|
|
1436
|
-
const size = uuiCore.isMobile() ? '48' :
|
|
1400
|
+
24: '12',
|
|
1401
|
+
36: '18',
|
|
1402
|
+
42: '24',
|
|
1403
|
+
48: '24',
|
|
1404
|
+
};
|
|
1405
|
+
function DataPickerFooterImpl(props) {
|
|
1406
|
+
const { clearSelection, view, showSelected, selectionMode, } = props;
|
|
1407
|
+
const size = uuiCore.isMobile() ? '48' : props.size || '36';
|
|
1437
1408
|
const switchSize = switchSizes[size];
|
|
1438
|
-
const hasSelection = view.
|
|
1409
|
+
const hasSelection = view.getSelectedRowsCount() > 0;
|
|
1410
|
+
const isSinglePicker = selectionMode === 'single';
|
|
1411
|
+
const clearAllText = i18n.pickerInput.clearSelectionButton;
|
|
1412
|
+
const clearSingleText = i18n.pickerInput.clearSelectionButtonSingle;
|
|
1413
|
+
const selectAllText = i18n.pickerInput.selectAllButton;
|
|
1439
1414
|
const handleKeyDown = (e) => {
|
|
1440
1415
|
if (!e.shiftKey && e.key === 'Tab')
|
|
1441
1416
|
e.preventDefault();
|
|
1442
1417
|
};
|
|
1443
|
-
return (React__namespace.default.createElement(FlexRow, { padding:
|
|
1444
|
-
!
|
|
1445
|
-
React__namespace.default.createElement(FlexSpacer, null),
|
|
1446
|
-
|
|
1447
|
-
React__namespace.default.createElement(LinkButton, { size: size, caption: hasSelection
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
? clearSelection
|
|
1451
|
-
: () => view.selectAll.onValueChange(true), rawProps: { onKeyDown: handleKeyDown } })))));
|
|
1452
|
-
};
|
|
1418
|
+
return (React__namespace.default.createElement(FlexRow, { padding: "12" },
|
|
1419
|
+
!isSinglePicker && (React__namespace.default.createElement(Switch, { size: switchSize, value: showSelected.value, isDisabled: !hasSelection, onValueChange: showSelected.onValueChange, label: i18n.pickerInput.showOnlySelectedLabel })),
|
|
1420
|
+
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1421
|
+
React__namespace.default.createElement(FlexCell, { width: "auto", alignSelf: "center" },
|
|
1422
|
+
view.selectAll && (React__namespace.default.createElement(LinkButton, { size: size, caption: hasSelection ? clearAllText : selectAllText, onClick: hasSelection ? clearSelection : () => view.selectAll.onValueChange(true), rawProps: { onKeyDown: handleKeyDown } })),
|
|
1423
|
+
!view.selectAll && (React__namespace.default.createElement(LinkButton, { isDisabled: !hasSelection, size: size, caption: isSinglePicker ? clearSingleText : clearAllText, onClick: clearSelection, rawProps: { onKeyDown: handleKeyDown } })))));
|
|
1424
|
+
}
|
|
1453
1425
|
const DataPickerFooter = React__namespace.default.memo(DataPickerFooterImpl);
|
|
1454
1426
|
|
|
1455
|
-
var css$
|
|
1427
|
+
var css$A = {"header":"DataPickerHeader_header__UDMhr","close":"DataPickerHeader_close__30pW6"};
|
|
1456
1428
|
|
|
1457
|
-
var _path$
|
|
1458
|
-
function _extends$
|
|
1429
|
+
var _path$z;
|
|
1430
|
+
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); }
|
|
1459
1431
|
var SvgNavigationClose24 = function SvgNavigationClose24(props, ref) {
|
|
1460
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1432
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$B({
|
|
1461
1433
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1462
1434
|
width: 24,
|
|
1463
1435
|
height: 24,
|
|
1464
1436
|
viewBox: "0 0 24 24",
|
|
1465
1437
|
ref: ref
|
|
1466
|
-
}, props), _path$
|
|
1438
|
+
}, props), _path$z || (_path$z = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1467
1439
|
fillRule: "evenodd",
|
|
1468
1440
|
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",
|
|
1469
1441
|
clipRule: "evenodd"
|
|
1470
1442
|
})));
|
|
1471
1443
|
};
|
|
1472
|
-
var ForwardRef$
|
|
1444
|
+
var ForwardRef$B = /*#__PURE__*/React.forwardRef(SvgNavigationClose24);
|
|
1473
1445
|
|
|
1474
|
-
const DataPickerHeaderImpl = props => {
|
|
1475
|
-
const title = props.title ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
1476
|
-
return (React__namespace.default.createElement(FlexRow, { alignItems:
|
|
1477
|
-
React__namespace.default.createElement(Text, { font:
|
|
1478
|
-
React__namespace.default.createElement(IconButton, { icon: ForwardRef$
|
|
1446
|
+
const DataPickerHeaderImpl = (props) => {
|
|
1447
|
+
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
1448
|
+
return (React__namespace.default.createElement(FlexRow, { alignItems: "center", borderBottom: true, size: "48", cx: css$A.header },
|
|
1449
|
+
React__namespace.default.createElement(Text, { font: "semibold" }, title),
|
|
1450
|
+
React__namespace.default.createElement(IconButton, { icon: ForwardRef$B, onClick: () => { var _a; return (_a = props.close) === null || _a === void 0 ? void 0 : _a.call(props); }, cx: css$A.close })));
|
|
1479
1451
|
};
|
|
1480
1452
|
const DataPickerHeader = React__namespace.default.memo(DataPickerHeaderImpl);
|
|
1481
1453
|
|
|
1482
1454
|
var _defs$1, _use;
|
|
1483
|
-
function _extends$
|
|
1455
|
+
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); }
|
|
1484
1456
|
var SvgTreeFoldingArrow = function SvgTreeFoldingArrow(props, ref) {
|
|
1485
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1457
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$A({
|
|
1486
1458
|
width: 18,
|
|
1487
1459
|
height: 18,
|
|
1488
1460
|
viewBox: "0 0 18 18",
|
|
@@ -1500,47 +1472,38 @@ var SvgTreeFoldingArrow = function SvgTreeFoldingArrow(props, ref) {
|
|
|
1500
1472
|
fillRule: "evenodd"
|
|
1501
1473
|
})));
|
|
1502
1474
|
};
|
|
1503
|
-
var ForwardRef$
|
|
1475
|
+
var ForwardRef$A = /*#__PURE__*/React.forwardRef(SvgTreeFoldingArrow);
|
|
1504
1476
|
|
|
1505
|
-
var css$
|
|
1477
|
+
var css$z = {"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","icon-container":"DataTableCell_icon-container__1fR7V","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","iconContainer":"DataTableCell_icon-container__1fR7V"};
|
|
1506
1478
|
|
|
1507
1479
|
function DataTableRowAddons(props) {
|
|
1508
1480
|
var _a, _b;
|
|
1509
1481
|
const row = props.rowProps;
|
|
1510
1482
|
const additionalItemSize = +props.size < 30 ? '12' : '18';
|
|
1511
|
-
return React__namespace.createElement(React__namespace.Fragment, null,
|
|
1512
|
-
((_a = row.dnd) === null || _a === void 0 ? void 0 : _a.srcData) && React__namespace.createElement(uuiComponents.DragHandle, { key:
|
|
1513
|
-
((_b = row === null || row === void 0 ? void 0 : row.checkbox) === null || _b === void 0 ? void 0 : _b.isVisible) && React__namespace.createElement(Checkbox, { key:
|
|
1514
|
-
row.indent > 0 && (React__namespace.createElement("div", { key:
|
|
1515
|
-
|
|
1483
|
+
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
1484
|
+
((_a = row.dnd) === null || _a === void 0 ? void 0 : _a.srcData) && React__namespace.createElement(uuiComponents.DragHandle, { key: "dh", cx: css$z.dragHandle }),
|
|
1485
|
+
((_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$z.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 })),
|
|
1486
|
+
row.indent > 0 && (React__namespace.createElement("div", { key: "fold", className: css$z.indent, style: { marginLeft: (row.indent - 1) * 24 } }, row.isFoldable && (React__namespace.createElement(uuiComponents.IconContainer, { key: "icon", icon: ForwardRef$A, cx: [
|
|
1487
|
+
css$z.foldingArrow, css$z[`folding-arrow-${additionalItemSize}`], uuiCore.uuiMarkers.clickable, css$z.iconContainer,
|
|
1488
|
+
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row) }))))));
|
|
1516
1489
|
}
|
|
1517
1490
|
function DataTableCell(props) {
|
|
1518
|
-
var _a;
|
|
1519
1491
|
props = Object.assign({}, props);
|
|
1520
1492
|
if (props.isFirstColumn) {
|
|
1521
1493
|
props.addons = React__namespace.createElement(DataTableRowAddons, Object.assign({}, props));
|
|
1522
1494
|
}
|
|
1523
|
-
props.renderPlaceholder = props.renderPlaceholder
|
|
1524
|
-
React__namespace.createElement(
|
|
1525
|
-
|
|
1495
|
+
props.renderPlaceholder = props.renderPlaceholder
|
|
1496
|
+
|| (() => (React__namespace.createElement(Text, { key: "t", size: props.size != '60' ? props.size : '48' },
|
|
1497
|
+
React__namespace.createElement(TextPlaceholder, null))));
|
|
1498
|
+
props.renderTooltip = (tooltipProps) => React__namespace.createElement(Tooltip, Object.assign({ color: "critical" }, tooltipProps));
|
|
1526
1499
|
const isEditable = !!props.onValueChange;
|
|
1527
|
-
props.border = (_a = props.border) !== null && _a !== void 0 ? _a : (isEditable ? true : null);
|
|
1528
1500
|
props.cx = [
|
|
1529
|
-
'data-table-cell',
|
|
1530
|
-
props.cx,
|
|
1531
|
-
css$y.cell,
|
|
1532
|
-
css$y['size-' + (props.size || '36')],
|
|
1533
|
-
css$y[`padding-${props.padding || ((isEditable && !props.rowProps.isLoading) && '0') || '12'}`],
|
|
1534
|
-
props.isFirstColumn && css$y[`padding-left-${props.padding || '24'}`],
|
|
1535
|
-
props.isLastColumn && css$y['padding-right-24'],
|
|
1536
|
-
css$y[`align-widgets-${props.alignActions || 'top'}`],
|
|
1537
|
-
props.background && `background-${props.background}`,
|
|
1538
|
-
props.border && 'uui-dt-cell-border',
|
|
1501
|
+
'data-table-cell', props.cx, css$z.cell, css$z['size-' + (props.size || '36')], css$z[`padding-${props.padding || (isEditable && !props.rowProps.isLoading && '0') || '12'}`], props.isFirstColumn && css$z[`padding-left-${props.padding || '24'}`], props.isLastColumn && css$z['padding-right-24'], css$z[`align-widgets-${props.alignActions || 'top'}`], (props.border || isEditable) && 'uui-dt-vertical-cell-border',
|
|
1539
1502
|
];
|
|
1540
1503
|
return React__namespace.createElement(uuiComponents.DataTableCell, Object.assign({}, props));
|
|
1541
1504
|
}
|
|
1542
1505
|
|
|
1543
|
-
var css$
|
|
1506
|
+
var css$y = {"typography-header":"DataTableRow_typography-header__uNO7L","typography-block":"DataTableRow_typography-block__tHe35","typography-inline":"DataTableRow_typography-inline__KgXSh","typography-16":"DataTableRow_typography-16__gMKvg","typography-14":"DataTableRow_typography-14__itR0W","typography-12":"DataTableRow_typography-12__G4k4k","typography-promo":"DataTableRow_typography-promo__LE-gA DataTableRow_typography-header__uNO7L DataTableRow_typography-block__tHe35 DataTableRow_typography-inline__KgXSh","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","typographyHeader":"DataTableRow_typography-header__uNO7L","typographyBlock":"DataTableRow_typography-block__tHe35","typographyInline":"DataTableRow_typography-inline__KgXSh","typography16":"DataTableRow_typography-16__gMKvg","typography14":"DataTableRow_typography-14__itR0W","typography12":"DataTableRow_typography-12__G4k4k","typographyPromo":"DataTableRow_typography-promo__LE-gA DataTableRow_typography-header__uNO7L DataTableRow_typography-block__tHe35 DataTableRow_typography-inline__KgXSh","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"};
|
|
1544
1507
|
|
|
1545
1508
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
1546
1509
|
// 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.
|
|
@@ -1550,159 +1513,156 @@ const renderCell = (props) => {
|
|
|
1550
1513
|
};
|
|
1551
1514
|
const renderDropMarkers = (props) => React__namespace.createElement(DropMarker, Object.assign({}, props, { enableBlocker: true }));
|
|
1552
1515
|
const propsMods = { renderCell, renderDropMarkers };
|
|
1553
|
-
const DataTableRow = uuiCore.withMods(uuiComponents.DataTableRow, ({ borderBottom = true,
|
|
1516
|
+
const DataTableRow = uuiCore.withMods(uuiComponents.DataTableRow, ({ borderBottom = true, size }) => {
|
|
1554
1517
|
return [
|
|
1555
|
-
css$
|
|
1556
|
-
borderBottom && 'uui-dt-row-border',
|
|
1557
|
-
css$x['size-' + (size || '36')],
|
|
1558
|
-
css$x['background-' + (background || 'default')],
|
|
1518
|
+
css$y.root, borderBottom && 'uui-dt-row-border', css$y['size-' + (size || '36')],
|
|
1559
1519
|
];
|
|
1560
1520
|
}, () => propsMods);
|
|
1561
1521
|
|
|
1562
|
-
var css$
|
|
1522
|
+
var css$x = {"typography-header":"DataTableHeaderRow_typography-header__17Mf0","typography-block":"DataTableHeaderRow_typography-block__qHB6b","typography-inline":"DataTableHeaderRow_typography-inline__lCA-Y","typography-16":"DataTableHeaderRow_typography-16__ZijSq","typography-14":"DataTableHeaderRow_typography-14__wGc4t","typography-12":"DataTableHeaderRow_typography-12__spGat","typography-promo":"DataTableHeaderRow_typography-promo__j-vYv DataTableHeaderRow_typography-header__17Mf0 DataTableHeaderRow_typography-block__qHB6b DataTableHeaderRow_typography-inline__lCA-Y","header-cell":"DataTableHeaderRow_header-cell__KtC6r","config-icon":"DataTableHeaderRow_config-icon__w0uLR","typographyHeader":"DataTableHeaderRow_typography-header__17Mf0","typographyBlock":"DataTableHeaderRow_typography-block__qHB6b","typographyInline":"DataTableHeaderRow_typography-inline__lCA-Y","typography16":"DataTableHeaderRow_typography-16__ZijSq","typography14":"DataTableHeaderRow_typography-14__wGc4t","typography12":"DataTableHeaderRow_typography-12__spGat","typographyPromo":"DataTableHeaderRow_typography-promo__j-vYv DataTableHeaderRow_typography-header__17Mf0 DataTableHeaderRow_typography-block__qHB6b DataTableHeaderRow_typography-inline__lCA-Y","headerCell":"DataTableHeaderRow_header-cell__KtC6r","configIcon":"DataTableHeaderRow_config-icon__w0uLR"};
|
|
1563
1523
|
|
|
1564
|
-
var _path$
|
|
1565
|
-
function _extends$
|
|
1524
|
+
var _path$y;
|
|
1525
|
+
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); }
|
|
1566
1526
|
var SvgActionSettings18 = function SvgActionSettings18(props, ref) {
|
|
1567
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1527
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$z({
|
|
1568
1528
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1569
1529
|
width: 18,
|
|
1570
1530
|
height: 18,
|
|
1571
1531
|
viewBox: "0 0 18 18",
|
|
1572
1532
|
ref: ref
|
|
1573
|
-
}, props), _path$
|
|
1533
|
+
}, props), _path$y || (_path$y = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1574
1534
|
fillRule: "evenodd",
|
|
1575
1535
|
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",
|
|
1576
1536
|
clipRule: "evenodd"
|
|
1577
1537
|
})));
|
|
1578
1538
|
};
|
|
1579
|
-
var ForwardRef$
|
|
1539
|
+
var ForwardRef$z = /*#__PURE__*/React.forwardRef(SvgActionSettings18);
|
|
1580
1540
|
|
|
1581
|
-
const DataTableHeaderRow = uuiCore.withMods(uuiComponents.DataTableHeaderRow, mods => [css$
|
|
1582
|
-
renderCell: props => React__namespace.createElement(DataTableHeaderCell, Object.assign({}, props, { size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key })),
|
|
1583
|
-
renderConfigButton: () => React__namespace.createElement(IconButton, { key:
|
|
1541
|
+
const DataTableHeaderRow = uuiCore.withMods(uuiComponents.DataTableHeaderRow, (mods) => [css$x.root], (mods) => ({
|
|
1542
|
+
renderCell: (props) => React__namespace.createElement(DataTableHeaderCell, Object.assign({}, props, { size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key })),
|
|
1543
|
+
renderConfigButton: () => React__namespace.createElement(IconButton, { key: "configuration", onClick: mods.onConfigButtonClick, cx: css$x.configIcon, color: "default", icon: ForwardRef$z }),
|
|
1584
1544
|
}));
|
|
1585
1545
|
|
|
1586
|
-
var css$
|
|
1587
|
-
|
|
1588
|
-
var _path$
|
|
1589
|
-
function _extends$
|
|
1546
|
+
var css$w = {"typography-header":"DataTableHeaderCell_typography-header__oILYa","typography-block":"DataTableHeaderCell_typography-block__BQMtM","typography-inline":"DataTableHeaderCell_typography-inline__cfsue","typography-16":"DataTableHeaderCell_typography-16__ZEqH6","typography-14":"DataTableHeaderCell_typography-14__keNR5","typography-12":"DataTableHeaderCell_typography-12__PhqnS","typography-promo":"DataTableHeaderCell_typography-promo__G4UmR DataTableHeaderCell_typography-header__oILYa DataTableHeaderCell_typography-block__BQMtM DataTableHeaderCell_typography-inline__cfsue","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","typographyHeader":"DataTableHeaderCell_typography-header__oILYa","typographyBlock":"DataTableHeaderCell_typography-block__BQMtM","typographyInline":"DataTableHeaderCell_typography-inline__cfsue","typography16":"DataTableHeaderCell_typography-16__ZEqH6","typography14":"DataTableHeaderCell_typography-14__keNR5","typography12":"DataTableHeaderCell_typography-12__PhqnS","typographyPromo":"DataTableHeaderCell_typography-promo__G4UmR DataTableHeaderCell_typography-header__oILYa DataTableHeaderCell_typography-block__BQMtM DataTableHeaderCell_typography-inline__cfsue","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"};
|
|
1547
|
+
|
|
1548
|
+
var _path$x;
|
|
1549
|
+
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); }
|
|
1590
1550
|
var SvgTableSwap18 = function SvgTableSwap18(props, ref) {
|
|
1591
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1551
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$y({
|
|
1592
1552
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1593
1553
|
width: 18,
|
|
1594
1554
|
height: 18,
|
|
1595
1555
|
viewBox: "0 0 18 18",
|
|
1596
1556
|
ref: ref
|
|
1597
|
-
}, props), _path$
|
|
1557
|
+
}, props), _path$x || (_path$x = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1598
1558
|
fillRule: "evenodd",
|
|
1599
1559
|
d: "M6 1 2 5h3v7h2V5h3L6 1zm7 12V6h-2v7H8l4 4 4-4h-3z",
|
|
1600
1560
|
clipRule: "evenodd"
|
|
1601
1561
|
})));
|
|
1602
1562
|
};
|
|
1603
|
-
var ForwardRef$
|
|
1563
|
+
var ForwardRef$y = /*#__PURE__*/React.forwardRef(SvgTableSwap18);
|
|
1604
1564
|
|
|
1605
|
-
var _path$
|
|
1606
|
-
function _extends$
|
|
1565
|
+
var _path$w;
|
|
1566
|
+
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); }
|
|
1607
1567
|
var SvgTableSortAsc18 = function SvgTableSortAsc18(props, ref) {
|
|
1608
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1568
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$x({
|
|
1609
1569
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1610
1570
|
width: 18,
|
|
1611
1571
|
height: 18,
|
|
1612
1572
|
viewBox: "0 0 18 18",
|
|
1613
1573
|
ref: ref
|
|
1614
|
-
}, props), _path$
|
|
1574
|
+
}, props), _path$w || (_path$w = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1615
1575
|
fillRule: "evenodd",
|
|
1616
1576
|
d: "M10 6v10H8V6H5l4-4 4 4h-3z",
|
|
1617
1577
|
clipRule: "evenodd"
|
|
1618
1578
|
})));
|
|
1619
1579
|
};
|
|
1620
|
-
var ForwardRef$
|
|
1580
|
+
var ForwardRef$x = /*#__PURE__*/React.forwardRef(SvgTableSortAsc18);
|
|
1621
1581
|
|
|
1622
|
-
var _path$
|
|
1623
|
-
function _extends$
|
|
1582
|
+
var _path$v;
|
|
1583
|
+
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); }
|
|
1624
1584
|
var SvgTableSortDesc18 = function SvgTableSortDesc18(props, ref) {
|
|
1625
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1585
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$w({
|
|
1626
1586
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1627
1587
|
width: 18,
|
|
1628
1588
|
height: 18,
|
|
1629
1589
|
viewBox: "0 0 18 18",
|
|
1630
1590
|
ref: ref
|
|
1631
|
-
}, props), _path$
|
|
1591
|
+
}, props), _path$v || (_path$v = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1632
1592
|
fillRule: "evenodd",
|
|
1633
1593
|
d: "M10 12V2H8v10H5l4 4 4-4h-3z",
|
|
1634
1594
|
clipRule: "evenodd"
|
|
1635
1595
|
})));
|
|
1636
1596
|
};
|
|
1637
|
-
var ForwardRef$
|
|
1597
|
+
var ForwardRef$w = /*#__PURE__*/React.forwardRef(SvgTableSortDesc18);
|
|
1638
1598
|
|
|
1639
|
-
var _path$
|
|
1640
|
-
function _extends$
|
|
1599
|
+
var _path$u;
|
|
1600
|
+
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); }
|
|
1641
1601
|
var SvgContentFiltration18 = function SvgContentFiltration18(props, ref) {
|
|
1642
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1602
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$v({
|
|
1643
1603
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1644
1604
|
width: 18,
|
|
1645
1605
|
height: 18,
|
|
1646
1606
|
viewBox: "0 0 18 18",
|
|
1647
1607
|
ref: ref
|
|
1648
|
-
}, props), _path$
|
|
1608
|
+
}, props), _path$u || (_path$u = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1649
1609
|
fillRule: "evenodd",
|
|
1650
1610
|
d: "m8 14 2 2v-5H8v3zM2 3v2h14V3H2zm6 8h2l6-6H2l6 6z",
|
|
1651
1611
|
clipRule: "evenodd"
|
|
1652
1612
|
})));
|
|
1653
1613
|
};
|
|
1654
|
-
var ForwardRef$
|
|
1614
|
+
var ForwardRef$v = /*#__PURE__*/React.forwardRef(SvgContentFiltration18);
|
|
1655
1615
|
|
|
1656
|
-
var _path$
|
|
1657
|
-
function _extends$
|
|
1616
|
+
var _path$t;
|
|
1617
|
+
function _extends$u() { _extends$u = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$u.apply(this, arguments); }
|
|
1658
1618
|
var SvgNavigationChevronDown18 = function SvgNavigationChevronDown18(props, ref) {
|
|
1659
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1619
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$u({
|
|
1660
1620
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1661
1621
|
width: 18,
|
|
1662
1622
|
height: 18,
|
|
1663
1623
|
viewBox: "0 0 18 18",
|
|
1664
1624
|
ref: ref
|
|
1665
|
-
}, props), _path$
|
|
1625
|
+
}, props), _path$t || (_path$t = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1666
1626
|
fillRule: "evenodd",
|
|
1667
1627
|
d: "M12.443 6.442 9 9.877 5.558 6.442 4.5 7.5 9 12l4.5-4.5-1.057-1.058z",
|
|
1668
1628
|
clipRule: "evenodd"
|
|
1669
1629
|
})));
|
|
1670
1630
|
};
|
|
1671
|
-
var ForwardRef$
|
|
1631
|
+
var ForwardRef$u = /*#__PURE__*/React.forwardRef(SvgNavigationChevronDown18);
|
|
1672
1632
|
|
|
1673
|
-
var _path$
|
|
1674
|
-
function _extends$
|
|
1633
|
+
var _path$s;
|
|
1634
|
+
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); }
|
|
1675
1635
|
var SvgNavigationChevronUp18 = function SvgNavigationChevronUp18(props, ref) {
|
|
1676
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1636
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$t({
|
|
1677
1637
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1678
1638
|
width: 18,
|
|
1679
1639
|
height: 18,
|
|
1680
1640
|
viewBox: "0 0 18 18",
|
|
1681
1641
|
ref: ref
|
|
1682
|
-
}, props), _path$
|
|
1642
|
+
}, props), _path$s || (_path$s = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1683
1643
|
fillRule: "evenodd",
|
|
1684
1644
|
d: "m9 6-4.5 4.5 1.058 1.057L9 8.123l3.443 3.434L13.5 10.5 9 6z",
|
|
1685
1645
|
clipRule: "evenodd"
|
|
1686
1646
|
})));
|
|
1687
1647
|
};
|
|
1688
|
-
var ForwardRef$
|
|
1648
|
+
var ForwardRef$t = /*#__PURE__*/React.forwardRef(SvgNavigationChevronUp18);
|
|
1689
1649
|
|
|
1690
|
-
var _path$
|
|
1691
|
-
function _extends$
|
|
1650
|
+
var _path$r;
|
|
1651
|
+
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); }
|
|
1692
1652
|
var SvgNotificationInfoOutline18 = function SvgNotificationInfoOutline18(props, ref) {
|
|
1693
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1653
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$s({
|
|
1694
1654
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1695
1655
|
width: 18,
|
|
1696
1656
|
height: 18,
|
|
1697
1657
|
viewBox: "0 0 18 18",
|
|
1698
1658
|
ref: ref
|
|
1699
|
-
}, props), _path$
|
|
1659
|
+
}, props), _path$r || (_path$r = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1700
1660
|
fillRule: "evenodd",
|
|
1701
1661
|
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",
|
|
1702
1662
|
clipRule: "evenodd"
|
|
1703
1663
|
})));
|
|
1704
1664
|
};
|
|
1705
|
-
var ForwardRef$
|
|
1665
|
+
var ForwardRef$s = /*#__PURE__*/React.forwardRef(SvgNotificationInfoOutline18);
|
|
1706
1666
|
|
|
1707
1667
|
class DataTableHeaderCell extends React__namespace.Component {
|
|
1708
1668
|
constructor() {
|
|
@@ -1712,39 +1672,38 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
1712
1672
|
};
|
|
1713
1673
|
this.getTextStyle = () => {
|
|
1714
1674
|
if (this.props.textCase === 'upper')
|
|
1715
|
-
return css$
|
|
1716
|
-
return css$
|
|
1675
|
+
return css$w.upperCase;
|
|
1676
|
+
return css$w['font-size-14'];
|
|
1717
1677
|
};
|
|
1718
|
-
this.getColumnCaption = () => (React__namespace.createElement("div", { className: css$
|
|
1719
|
-
React__namespace.createElement(Tooltip, { trigger: "hover", placement: "bottom-start", renderContent:
|
|
1720
|
-
React__namespace.createElement("div", { className: uuiCore.cx(css$
|
|
1721
|
-
React__namespace.createElement(Text, { key: "text", lineHeight: "30", fontSize: "14", size: "30", cx: uuiCore.cx(css$
|
|
1722
|
-
this.props.column.info && (React__namespace.createElement(IconButton, { key: "info", cx: uuiCore.cx(css$
|
|
1723
|
-
this.props.column.isSortable && (!this.props.column.renderFilter || this.props.sortDirection) && (React__namespace.createElement(IconButton, { key: "sort", cx: uuiCore.cx(css$
|
|
1724
|
-
this.props.isFilterActive && (React__namespace.createElement(IconButton, { key: "filter", cx: uuiCore.cx(css$
|
|
1725
|
-
this.props.column.renderFilter && (React__namespace.createElement(IconButton, { key: "dropdown", cx: uuiCore.cx(css$
|
|
1726
|
-
this.renderHeaderCheckbox = () => this.props.selectAll
|
|
1727
|
-
|
|
1728
|
-
this.
|
|
1678
|
+
this.getColumnCaption = () => (React__namespace.createElement("div", { className: css$w.tooltipWrapper },
|
|
1679
|
+
React__namespace.createElement(Tooltip, { trigger: "hover", placement: "bottom-start", renderContent: !this.state.isDropdownOpen && this.props.column.info ? () => this.props.column.info : null, color: "default", cx: css$w.cellTooltip, offset: [-12, 12] },
|
|
1680
|
+
React__namespace.createElement("div", { className: uuiCore.cx(css$w.iconCell, css$w['align-' + this.props.column.textAlign], uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaptionWrapper) },
|
|
1681
|
+
React__namespace.createElement(Text, { key: "text", lineHeight: "30", fontSize: "14", size: "30", cx: uuiCore.cx(css$w.caption, this.getTextStyle(), uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaption) }, this.props.column.caption),
|
|
1682
|
+
this.props.column.info && (React__namespace.createElement(IconButton, { key: "info", cx: uuiCore.cx(css$w.icon, css$w.infoIcon, this.props.sortDirection && css$w.sortIconActive, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderSortIcon), color: "secondary", icon: ForwardRef$s })),
|
|
1683
|
+
this.props.column.isSortable && (!this.props.column.renderFilter || this.props.sortDirection) && (React__namespace.createElement(IconButton, { key: "sort", cx: uuiCore.cx(css$w.icon, css$w.sortIcon, this.props.sortDirection && css$w.sortIconActive, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderSortIcon), color: this.props.sortDirection ? 'default' : 'secondary', icon: this.props.sortDirection === 'desc' ? ForwardRef$w : this.props.sortDirection === 'asc' ? ForwardRef$x : ForwardRef$y })),
|
|
1684
|
+
this.props.isFilterActive && (React__namespace.createElement(IconButton, { key: "filter", cx: uuiCore.cx(css$w.icon, !this.props.sortDirection && css$w.filterIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderFilterIcon), color: "default", icon: ForwardRef$v })),
|
|
1685
|
+
this.props.column.renderFilter && (React__namespace.createElement(IconButton, { key: "dropdown", cx: uuiCore.cx(css$w.icon, css$w.dropdownIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderDropdownIcon), color: "secondary", icon: this.state.isDropdownOpen ? ForwardRef$t : ForwardRef$u }))))));
|
|
1686
|
+
this.renderHeaderCheckbox = () => this.props.selectAll
|
|
1687
|
+
&& this.props.isFirstColumn && (React__namespace.createElement(Checkbox, Object.assign({ size: +this.props.size < 36 ? '12' : '18' }, this.props.selectAll, { cx: uuiCore.cx(css$w.checkbox, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCheckbox) })));
|
|
1688
|
+
this.renderResizeMark = (props) => React__namespace.createElement("div", { onMouseDown: props.onResizeStart, className: uuiCore.cx(css$w.resizeMark, uuiCore.uuiMarkers.draggable) });
|
|
1689
|
+
this.renderCellContent = (props, dropdownProps) => (React__namespace.createElement(FlexCell, Object.assign({}, this.props.column, { minWidth: this.props.column.width, ref: (ref) => {
|
|
1729
1690
|
var _a;
|
|
1730
1691
|
props.ref(ref);
|
|
1731
1692
|
(_a = dropdownProps === null || dropdownProps === void 0 ? void 0 : dropdownProps.ref) === null || _a === void 0 ? void 0 : _a.call(dropdownProps, ref);
|
|
1732
|
-
}, cx: uuiCore.cx(uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCell, (this.props.column.isSortable || this.props.isDropdown) && uuiCore.uuiMarkers.clickable, css$
|
|
1693
|
+
}, cx: uuiCore.cx(uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCell, (this.props.column.isSortable || this.props.isDropdown) && uuiCore.uuiMarkers.clickable, css$w.cell, css$w['size-' + (this.props.size || '36')], this.props.isFirstColumn && css$w['padding-left-24'], this.props.isLastColumn && css$w['padding-right-24'], this.props.column.cx, this.props.allowColumnsResizing && css$w.resizable, props.isDraggable && css$w.draggable, props.isDragGhost && css$w.ghost, props.isDraggedOut && css$w.isDraggedOut, props.isDndInProgress && css$w['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) }),
|
|
1733
1694
|
this.renderHeaderCheckbox(),
|
|
1734
1695
|
this.getColumnCaption(),
|
|
1735
1696
|
this.props.allowColumnsResizing && this.renderResizeMark(props)));
|
|
1736
|
-
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 }));
|
|
1697
|
+
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 }));
|
|
1737
1698
|
}
|
|
1738
1699
|
render() {
|
|
1739
|
-
return
|
|
1740
|
-
? this.renderCellWithFilter
|
|
1741
|
-
: this.renderCellContent })));
|
|
1700
|
+
return React__namespace.createElement(uuiComponents.DataTableHeaderCell, Object.assign({}, this.props, { renderCellContent: this.props.column.renderFilter ? this.renderCellWithFilter : this.renderCellContent }));
|
|
1742
1701
|
}
|
|
1743
1702
|
}
|
|
1744
1703
|
|
|
1745
1704
|
const useColumnsWithFilters = (initialColumns, filters) => {
|
|
1746
|
-
const makeFilterRenderCallback = React.useCallback((key) => (filterLens, dropdownProps)
|
|
1747
|
-
const filter = filters.find(f => f.columnKey === key);
|
|
1705
|
+
const makeFilterRenderCallback = React.useCallback((key) => function (filterLens, dropdownProps) {
|
|
1706
|
+
const filter = filters.find((f) => f.columnKey === key);
|
|
1748
1707
|
if (!filter)
|
|
1749
1708
|
return null;
|
|
1750
1709
|
const props = filterLens.prop(filter.field).toProps();
|
|
@@ -1752,8 +1711,8 @@ const useColumnsWithFilters = (initialColumns, filters) => {
|
|
|
1752
1711
|
}, [filters]);
|
|
1753
1712
|
const columns = React.useMemo(() => {
|
|
1754
1713
|
if (filters) {
|
|
1755
|
-
const filterKeys = filters.map(f => f.columnKey);
|
|
1756
|
-
const newColumns = (initialColumns.map(column => {
|
|
1714
|
+
const filterKeys = filters.map((f) => f.columnKey);
|
|
1715
|
+
const newColumns = (initialColumns.map((column) => {
|
|
1757
1716
|
if (filterKeys.includes(column.key)) {
|
|
1758
1717
|
return Object.assign(Object.assign({}, column), { renderFilter: makeFilterRenderCallback(column.key) });
|
|
1759
1718
|
}
|
|
@@ -1768,10 +1727,10 @@ const useColumnsWithFilters = (initialColumns, filters) => {
|
|
|
1768
1727
|
return columns;
|
|
1769
1728
|
};
|
|
1770
1729
|
|
|
1771
|
-
var _path$
|
|
1772
|
-
function _extends$
|
|
1730
|
+
var _path$q, _path2$1, _path3, _path4, _path5, _path6, _g$1, _path7, _path8, _path9, _path10, _path11, _path12, _path13, _path14, _path15, _path16, _path17, _path18, _path19, _path20, _path21, _path22, _path23, _path24, _defs;
|
|
1731
|
+
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); }
|
|
1773
1732
|
var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
1774
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1733
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$r({
|
|
1775
1734
|
width: 232,
|
|
1776
1735
|
height: 180,
|
|
1777
1736
|
viewBox: "0 0 232 180",
|
|
@@ -1780,7 +1739,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
1780
1739
|
ref: ref
|
|
1781
1740
|
}, props), /*#__PURE__*/React__namespace.createElement("g", {
|
|
1782
1741
|
clipPath: "url(#a)"
|
|
1783
|
-
}, _path$
|
|
1742
|
+
}, _path$q || (_path$q = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1784
1743
|
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",
|
|
1785
1744
|
fill: "#F5F6FA"
|
|
1786
1745
|
})), _path2$1 || (_path2$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -1906,9 +1865,9 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
1906
1865
|
d: "M0 0h230.897v180H0z"
|
|
1907
1866
|
})))));
|
|
1908
1867
|
};
|
|
1909
|
-
var ForwardRef$
|
|
1868
|
+
var ForwardRef$r = /*#__PURE__*/React.forwardRef(SvgEmptyTable);
|
|
1910
1869
|
|
|
1911
|
-
var css$
|
|
1870
|
+
var css$v = {"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"};
|
|
1912
1871
|
|
|
1913
1872
|
function DataTable(props) {
|
|
1914
1873
|
var _a;
|
|
@@ -1919,30 +1878,36 @@ function DataTable(props) {
|
|
|
1919
1878
|
return React__namespace.createElement(DataTableRow, Object.assign({ key: rowProps.rowKey, size: props.size, borderBottom: props.border }, rowProps));
|
|
1920
1879
|
}, []);
|
|
1921
1880
|
const rows = props.getRows();
|
|
1922
|
-
const renderedRows = rows.map(row => (props.renderRow || renderRow)(Object.assign(Object.assign({}, row), { columns })));
|
|
1881
|
+
const renderedRows = rows.map((row) => (props.renderRow || renderRow)(Object.assign(Object.assign({}, row), { columns })));
|
|
1923
1882
|
const renderNoResultsBlock = React__namespace.useCallback(() => {
|
|
1924
1883
|
var _a;
|
|
1925
|
-
return (React__namespace.createElement("div", { className: css$
|
|
1926
|
-
React__namespace.createElement(
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
React__namespace.createElement(Text, { fontSize: '16', lineHeight: '24', font: 'regular', color: 'primary' }, i18n.tables.noResultsBlock.message))));
|
|
1884
|
+
return (React__namespace.createElement("div", { className: css$v.noResults }, props.renderNoResultsBlock ? ((_a = props.renderNoResultsBlock) === null || _a === void 0 ? void 0 : _a.call(props)) : (React__namespace.createElement(React__namespace.Fragment, null,
|
|
1885
|
+
React__namespace.createElement(uuiComponents.IconContainer, { cx: css$v.noResultsIcon, icon: ForwardRef$r }),
|
|
1886
|
+
React__namespace.createElement(Text, { cx: css$v.noResultsTitle, fontSize: "24", lineHeight: "30", color: "primary", font: "semibold" }, i18n.tables.noResultsBlock.title),
|
|
1887
|
+
React__namespace.createElement(Text, { fontSize: "16", lineHeight: "24", font: "regular", color: "primary" }, i18n.tables.noResultsBlock.message)))));
|
|
1930
1888
|
}, [props.renderNoResultsBlock]);
|
|
1931
1889
|
const onConfigurationButtonClick = React__namespace.useCallback(() => {
|
|
1932
|
-
uuiModals
|
|
1933
|
-
.
|
|
1890
|
+
uuiModals
|
|
1891
|
+
.show((modalProps) => {
|
|
1892
|
+
return (React__namespace.createElement(ColumnsConfigurationModal, Object.assign({}, modalProps, { columns: props.columns, columnsConfig: config, defaultConfig: defaultConfig })));
|
|
1893
|
+
})
|
|
1894
|
+
.then((columnsConfig) => props.onValueChange(Object.assign(Object.assign({}, props.value), { columnsConfig })))
|
|
1934
1895
|
.catch(() => null);
|
|
1935
|
-
}, [
|
|
1936
|
-
|
|
1937
|
-
|
|
1896
|
+
}, [
|
|
1897
|
+
props.columns, config, defaultConfig, props.value, props.onValueChange,
|
|
1898
|
+
]);
|
|
1899
|
+
const renderRowsContainer = React__namespace.useCallback(({ listContainerRef, estimatedHeight, offsetY, scrollShadows, }) => (React__namespace.createElement(React__namespace.Fragment, null,
|
|
1900
|
+
React__namespace.createElement("div", { className: css$v.stickyHeader },
|
|
1938
1901
|
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 }),
|
|
1939
1902
|
React__namespace.createElement("div", { className: uuiCore.cx(uuiCore.uuiScrollShadows.top, {
|
|
1940
1903
|
[uuiCore.uuiScrollShadows.topVisible]: scrollShadows.verticalTop,
|
|
1941
1904
|
}) })),
|
|
1942
|
-
props.exactRowsCount !== 0 ? (React__namespace.createElement("div", { className: css$
|
|
1943
|
-
React__namespace.createElement("div", { ref: listContainerRef, role:
|
|
1905
|
+
props.exactRowsCount !== 0 ? (React__namespace.createElement("div", { className: css$v.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
1906
|
+
React__namespace.createElement("div", { ref: listContainerRef, role: "rowgroup", style: { marginTop: offsetY }, children: renderedRows }))) : (renderNoResultsBlock === null || renderNoResultsBlock === void 0 ? void 0 : renderNoResultsBlock()))), [
|
|
1907
|
+
props, columns, rows, renderNoResultsBlock, onConfigurationButtonClick,
|
|
1908
|
+
]);
|
|
1944
1909
|
return (React__namespace.createElement(uuiComponents.DataTableSelectionProvider, { onCopy: props.onCopy, rows: rows, columns: columns },
|
|
1945
|
-
React__namespace.createElement(VirtualList, { value: props.value, onValueChange: props.onValueChange, onScroll: props.onScroll, rows: renderedRows, rowsCount: props.rowsCount, renderRows: renderRowsContainer, cx: uuiCore.cx(css$
|
|
1910
|
+
React__namespace.createElement(VirtualList, { value: props.value, onValueChange: props.onValueChange, onScroll: props.onScroll, rows: renderedRows, rowsCount: props.rowsCount, renderRows: renderRowsContainer, cx: uuiCore.cx(css$v.table), rawProps: {
|
|
1946
1911
|
role: 'table',
|
|
1947
1912
|
'aria-colcount': columns.length,
|
|
1948
1913
|
'aria-rowcount': props.rowsCount,
|
|
@@ -1951,93 +1916,93 @@ function DataTable(props) {
|
|
|
1951
1916
|
|
|
1952
1917
|
var styles$1 = {"typography-header":"ColumnsConfigurationModal_typography-header__o3r5C","typography-block":"ColumnsConfigurationModal_typography-block__CXaTR","typography-inline":"ColumnsConfigurationModal_typography-inline__VJCzZ","typography-16":"ColumnsConfigurationModal_typography-16__97zzl","typography-14":"ColumnsConfigurationModal_typography-14__tVuMI","typography-12":"ColumnsConfigurationModal_typography-12__-4gpA","typography-promo":"ColumnsConfigurationModal_typography-promo__5VMFg ColumnsConfigurationModal_typography-header__o3r5C ColumnsConfigurationModal_typography-block__CXaTR ColumnsConfigurationModal_typography-inline__VJCzZ","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","typographyHeader":"ColumnsConfigurationModal_typography-header__o3r5C","typographyBlock":"ColumnsConfigurationModal_typography-block__CXaTR","typographyInline":"ColumnsConfigurationModal_typography-inline__VJCzZ","typography16":"ColumnsConfigurationModal_typography-16__97zzl","typography14":"ColumnsConfigurationModal_typography-14__tVuMI","typography12":"ColumnsConfigurationModal_typography-12__-4gpA","typographyPromo":"ColumnsConfigurationModal_typography-promo__5VMFg ColumnsConfigurationModal_typography-header__o3r5C ColumnsConfigurationModal_typography-block__CXaTR ColumnsConfigurationModal_typography-inline__VJCzZ","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"};
|
|
1953
1918
|
|
|
1954
|
-
var _path$
|
|
1955
|
-
function _extends$
|
|
1919
|
+
var _path$p;
|
|
1920
|
+
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); }
|
|
1956
1921
|
var SvgNavigationMoreVert18 = function SvgNavigationMoreVert18(props, ref) {
|
|
1957
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1922
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
|
|
1958
1923
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1959
1924
|
width: 18,
|
|
1960
1925
|
height: 18,
|
|
1961
1926
|
viewBox: "0 0 18 18",
|
|
1962
1927
|
ref: ref
|
|
1963
|
-
}, props), _path$
|
|
1928
|
+
}, props), _path$p || (_path$p = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1964
1929
|
fillRule: "evenodd",
|
|
1965
1930
|
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",
|
|
1966
1931
|
clipRule: "evenodd"
|
|
1967
1932
|
})));
|
|
1968
1933
|
};
|
|
1969
|
-
var ForwardRef$
|
|
1934
|
+
var ForwardRef$q = /*#__PURE__*/React.forwardRef(SvgNavigationMoreVert18);
|
|
1970
1935
|
|
|
1971
|
-
var _path$
|
|
1972
|
-
function _extends$
|
|
1936
|
+
var _path$o;
|
|
1937
|
+
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); }
|
|
1973
1938
|
var SvgActionUpdate18 = function SvgActionUpdate18(props, ref) {
|
|
1974
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1939
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
|
|
1975
1940
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1976
1941
|
width: 18,
|
|
1977
1942
|
height: 18,
|
|
1978
1943
|
viewBox: "0 0 18 18",
|
|
1979
1944
|
ref: ref
|
|
1980
|
-
}, props), _path$
|
|
1945
|
+
}, props), _path$o || (_path$o = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1981
1946
|
fillRule: "evenodd",
|
|
1982
1947
|
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",
|
|
1983
1948
|
clipRule: "evenodd"
|
|
1984
1949
|
})));
|
|
1985
1950
|
};
|
|
1986
|
-
var ForwardRef$
|
|
1951
|
+
var ForwardRef$p = /*#__PURE__*/React.forwardRef(SvgActionUpdate18);
|
|
1987
1952
|
|
|
1988
|
-
var _path$
|
|
1989
|
-
function _extends$
|
|
1953
|
+
var _path$n;
|
|
1954
|
+
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); }
|
|
1990
1955
|
var SvgActionLockFill18 = function SvgActionLockFill18(props, ref) {
|
|
1991
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1956
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
|
|
1992
1957
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1993
1958
|
width: 18,
|
|
1994
1959
|
height: 18,
|
|
1995
1960
|
viewBox: "0 0 18 18",
|
|
1996
1961
|
ref: ref
|
|
1997
|
-
}, props), _path$
|
|
1962
|
+
}, props), _path$n || (_path$n = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1998
1963
|
fillRule: "evenodd",
|
|
1999
1964
|
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",
|
|
2000
1965
|
clipRule: "evenodd"
|
|
2001
1966
|
})));
|
|
2002
1967
|
};
|
|
2003
|
-
var ForwardRef$
|
|
1968
|
+
var ForwardRef$o = /*#__PURE__*/React.forwardRef(SvgActionLockFill18);
|
|
2004
1969
|
|
|
2005
|
-
var _path$
|
|
2006
|
-
function _extends$
|
|
1970
|
+
var _path$m;
|
|
1971
|
+
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); }
|
|
2007
1972
|
var SvgActionPinOn18 = function SvgActionPinOn18(props, ref) {
|
|
2008
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1973
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
|
|
2009
1974
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2010
1975
|
width: 18,
|
|
2011
1976
|
height: 18,
|
|
2012
1977
|
viewBox: "0 0 18 18",
|
|
2013
1978
|
ref: ref
|
|
2014
|
-
}, props), _path$
|
|
1979
|
+
}, props), _path$m || (_path$m = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2015
1980
|
fillRule: "evenodd",
|
|
2016
1981
|
d: "M12 9V3h1V2H5v1h1v6l-2 1v1h4v5h2v-5h4v-1l-2-1z",
|
|
2017
1982
|
clipRule: "evenodd"
|
|
2018
1983
|
})));
|
|
2019
1984
|
};
|
|
2020
|
-
var ForwardRef$
|
|
1985
|
+
var ForwardRef$n = /*#__PURE__*/React.forwardRef(SvgActionPinOn18);
|
|
2021
1986
|
|
|
2022
|
-
var _path$
|
|
2023
|
-
function _extends$
|
|
1987
|
+
var _path$l;
|
|
1988
|
+
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); }
|
|
2024
1989
|
var SvgActionPinOff18 = function SvgActionPinOff18(props, ref) {
|
|
2025
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1990
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
|
|
2026
1991
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2027
1992
|
width: 18,
|
|
2028
1993
|
height: 18,
|
|
2029
1994
|
viewBox: "0 0 18 18",
|
|
2030
1995
|
ref: ref
|
|
2031
|
-
}, props), _path$
|
|
1996
|
+
}, props), _path$l || (_path$l = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2032
1997
|
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"
|
|
2033
1998
|
})));
|
|
2034
1999
|
};
|
|
2035
|
-
var ForwardRef$
|
|
2000
|
+
var ForwardRef$m = /*#__PURE__*/React.forwardRef(SvgActionPinOff18);
|
|
2036
2001
|
|
|
2037
2002
|
const i18nLocal$1 = i18n.tables.columnsConfigurationModal;
|
|
2038
2003
|
function PinIconButton(props) {
|
|
2039
2004
|
const [isHovered, setIsHovered] = React.useState(false);
|
|
2040
|
-
const { id, onTogglePin, isPinned, canUnpin } = props;
|
|
2005
|
+
const { id, onTogglePin, isPinned, canUnpin, } = props;
|
|
2041
2006
|
const isPinnedAlways = isPinned && !canUnpin;
|
|
2042
2007
|
const tooltipText = React.useMemo(() => {
|
|
2043
2008
|
if (isPinned) {
|
|
@@ -2047,16 +2012,18 @@ function PinIconButton(props) {
|
|
|
2047
2012
|
}, [isPinned, isPinnedAlways]);
|
|
2048
2013
|
const pinIcon = React.useMemo(() => {
|
|
2049
2014
|
if (isPinnedAlways) {
|
|
2050
|
-
return ForwardRef$
|
|
2015
|
+
return ForwardRef$o;
|
|
2051
2016
|
}
|
|
2052
2017
|
if (isPinned) {
|
|
2053
|
-
return isHovered ? ForwardRef$
|
|
2018
|
+
return isHovered ? ForwardRef$m : ForwardRef$n;
|
|
2054
2019
|
}
|
|
2055
|
-
return ForwardRef$
|
|
2056
|
-
}, [
|
|
2020
|
+
return ForwardRef$n;
|
|
2021
|
+
}, [
|
|
2022
|
+
isPinnedAlways, isHovered, isPinned,
|
|
2023
|
+
]);
|
|
2057
2024
|
const pinClickHandler = isPinnedAlways ? undefined : () => onTogglePin(id);
|
|
2058
2025
|
return (React__namespace.createElement("span", { onMouseOver: () => setIsHovered(true), onMouseOut: () => setIsHovered(false) },
|
|
2059
|
-
React__namespace.createElement(Tooltip, { content: tooltipText, placement: "bottom" },
|
|
2026
|
+
React__namespace.createElement(Tooltip, { content: tooltipText, placement: "bottom", color: "contrast" },
|
|
2060
2027
|
React__namespace.createElement(IconButton, { icon: pinIcon, onClick: pinClickHandler, isDisabled: isPinnedAlways, color: isPinned ? 'info' : undefined }))));
|
|
2061
2028
|
}
|
|
2062
2029
|
|
|
@@ -2064,7 +2031,7 @@ var styles = {"typography-header":"ColumnRow_typography-header__v5iBP","typograp
|
|
|
2064
2031
|
|
|
2065
2032
|
const ColumnRow = React__namespace.memo(function ColumnRow(props) {
|
|
2066
2033
|
const { column } = props;
|
|
2067
|
-
const { toggleVisibility, togglePin, onCanAcceptDrop, onDrop, columnConfig, isDndAllowed, isPinnedAlways } = column;
|
|
2034
|
+
const { toggleVisibility, togglePin, onCanAcceptDrop, onDrop, columnConfig, isDndAllowed, isPinnedAlways, } = column;
|
|
2068
2035
|
const { isVisible, fix } = columnConfig;
|
|
2069
2036
|
const isPinned = fix || isPinnedAlways;
|
|
2070
2037
|
const data = { column, columnConfig };
|
|
@@ -2074,7 +2041,7 @@ const ColumnRow = React__namespace.memo(function ColumnRow(props) {
|
|
|
2074
2041
|
const wrapperAttrs = Object.assign(Object.assign({}, (isDndAllowed ? { ref: dndActorParams.ref } : {})), (isDndAllowed ? { rawProps: Object.assign({}, restEventHandlers) } : {}));
|
|
2075
2042
|
const dragHandleRawProps = Object.assign({}, (isDndAllowed ? { onTouchStart, onPointerDown } : {}));
|
|
2076
2043
|
return (React__namespace.createElement(FlexRow, Object.assign({ size: "30", cx: wrapperClasses }, wrapperAttrs),
|
|
2077
|
-
React__namespace.createElement(FlexRow, { size: "30", spacing:
|
|
2044
|
+
React__namespace.createElement(FlexRow, { size: "30", spacing: "6", cx: styles.title },
|
|
2078
2045
|
React__namespace.createElement(uuiComponents.DragHandle, { rawProps: dragHandleRawProps, isDisabled: !isDndAllowed, cx: uuiCore.cx(styles.dragHandle, !isDndAllowed && styles.dndDisabled) }),
|
|
2079
2046
|
React__namespace.createElement(Checkbox, { key: column.key, label: column.caption, value: isVisible, onValueChange: toggleVisibility, isDisabled: column.isAlwaysVisible })),
|
|
2080
2047
|
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
@@ -2086,15 +2053,19 @@ const ColumnRow = React__namespace.memo(function ColumnRow(props) {
|
|
|
2086
2053
|
});
|
|
2087
2054
|
|
|
2088
2055
|
const i18nLocal = i18n.tables.columnsConfigurationModal;
|
|
2089
|
-
const renderGroupTitle = (title, amount) => React__namespace.createElement(FlexRow, { size: "24", padding: "24", spacing: "6", cx: styles$1.groupTitle },
|
|
2056
|
+
const renderGroupTitle = (title, amount) => (React__namespace.createElement(FlexRow, { size: "24", padding: "24", spacing: "6", cx: styles$1.groupTitle },
|
|
2090
2057
|
React__namespace.createElement(Text, { cx: styles$1.groupTitleText, font: "semibold", lineHeight: "24", fontSize: "14" }, title),
|
|
2091
|
-
React__namespace.createElement(Badge, { cx: styles$1.groupTitleBadge, caption: amount, color:
|
|
2058
|
+
React__namespace.createElement(Badge, { cx: styles$1.groupTitleBadge, caption: amount, color: "info", size: "18" })));
|
|
2092
2059
|
function ColumnsConfigurationModal(props) {
|
|
2093
2060
|
const { columns, columnsConfig: initialColumnsConfig, defaultConfig } = props, modalProps = __rest(props, ["columns", "columnsConfig", "defaultConfig"]);
|
|
2094
|
-
const { groupedColumns, searchValue, columnsConfig, reset, checkAll, uncheckAll, setSearchValue, } = uuiComponents.useColumnsConfiguration({
|
|
2061
|
+
const { groupedColumns, searchValue, columnsConfig, reset, checkAll, uncheckAll, setSearchValue, } = uuiComponents.useColumnsConfiguration({
|
|
2062
|
+
initialColumnsConfig,
|
|
2063
|
+
columns,
|
|
2064
|
+
defaultConfig,
|
|
2065
|
+
});
|
|
2095
2066
|
const apply = React.useCallback(() => modalProps.success(columnsConfig), [columnsConfig, modalProps]);
|
|
2096
2067
|
const close = React.useCallback(() => modalProps.abort(), [modalProps]);
|
|
2097
|
-
const isNoData = React.useMemo(() => Object.values(groupedColumns).every(v => !v.length), [groupedColumns]);
|
|
2068
|
+
const isNoData = React.useMemo(() => Object.values(groupedColumns).every((v) => !v.length), [groupedColumns]);
|
|
2098
2069
|
const renderVisible = () => {
|
|
2099
2070
|
const amountPinned = groupedColumns.displayedPinned.length;
|
|
2100
2071
|
const amountUnPinned = groupedColumns.displayedUnpinned.length;
|
|
@@ -2104,9 +2075,9 @@ function ColumnsConfigurationModal(props) {
|
|
|
2104
2075
|
const hasDivider = !!(amountPinned && amountUnPinned);
|
|
2105
2076
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
2106
2077
|
renderGroupTitle(i18nLocal.displayedSectionTitle, amountPinned + amountUnPinned),
|
|
2107
|
-
!!amountPinned && React__namespace.createElement(FlexRow, { cx: styles$1.groupItems, size: "30" }, groupedColumns.displayedPinned.map(c => React__namespace.createElement(ColumnRow, { column: c, key: c.key }))),
|
|
2078
|
+
!!amountPinned && (React__namespace.createElement(FlexRow, { cx: styles$1.groupItems, size: "30" }, groupedColumns.displayedPinned.map((c) => (React__namespace.createElement(ColumnRow, { column: c, key: c.key }))))),
|
|
2108
2079
|
hasDivider && React__namespace.createElement("div", { className: styles$1.hDivider }),
|
|
2109
|
-
!!amountUnPinned && React__namespace.createElement(FlexRow, { cx: styles$1.groupItems, size: "30" }, groupedColumns.displayedUnpinned.map(c => React__namespace.createElement(ColumnRow, { column: c, key: c.key })))));
|
|
2080
|
+
!!amountUnPinned && (React__namespace.createElement(FlexRow, { cx: styles$1.groupItems, size: "30" }, groupedColumns.displayedUnpinned.map((c) => (React__namespace.createElement(ColumnRow, { column: c, key: c.key })))))));
|
|
2110
2081
|
};
|
|
2111
2082
|
const renderHidden = () => {
|
|
2112
2083
|
const amountHidden = groupedColumns.hidden.length;
|
|
@@ -2115,7 +2086,7 @@ function ColumnsConfigurationModal(props) {
|
|
|
2115
2086
|
}
|
|
2116
2087
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
2117
2088
|
renderGroupTitle(i18nLocal.hiddenSectionTitle, amountHidden),
|
|
2118
|
-
React__namespace.createElement(FlexRow, { cx: styles$1.groupItems, size: "30" }, groupedColumns.hidden.map(c => React__namespace.createElement(ColumnRow, { column: c, key: c.key })))));
|
|
2089
|
+
React__namespace.createElement(FlexRow, { cx: styles$1.groupItems, size: "30" }, groupedColumns.hidden.map((c) => (React__namespace.createElement(ColumnRow, { column: c, key: c.key }))))));
|
|
2119
2090
|
};
|
|
2120
2091
|
const noVisibleColumns = React.useMemo(() => !groupedColumns.displayedPinned.length && !groupedColumns.displayedUnpinned.length, [groupedColumns.displayedPinned, groupedColumns.displayedUnpinned]);
|
|
2121
2092
|
const applyButton = React__namespace.createElement(Button, { caption: i18nLocal.applyButton, isDisabled: noVisibleColumns, color: "accent", onClick: apply });
|
|
@@ -2124,163 +2095,165 @@ function ColumnsConfigurationModal(props) {
|
|
|
2124
2095
|
React__namespace.createElement(ModalHeader, { title: i18nLocal.configureColumnsTitle, onClose: close }),
|
|
2125
2096
|
React__namespace.createElement(FlexRow, { padding: "24", borderBottom: true, spacing: "12", cx: styles$1.searchArea },
|
|
2126
2097
|
React__namespace.createElement(SearchInput, { size: "30", value: searchValue, onValueChange: setSearchValue, placeholder: i18nLocal.searchPlaceholder }),
|
|
2127
|
-
React__namespace.createElement(Dropdown, { closeOnTargetClick: true, renderBody: () => React__namespace.createElement(Panel, { shadow: true },
|
|
2098
|
+
React__namespace.createElement(Dropdown, { closeOnTargetClick: true, renderBody: () => (React__namespace.createElement(Panel, { shadow: true },
|
|
2128
2099
|
React__namespace.createElement(DropdownMenuButton, { caption: i18nLocal.clearAllButton, onClick: uncheckAll }),
|
|
2129
|
-
React__namespace.createElement(DropdownMenuButton, { caption: i18nLocal.selectAllButton, onClick: checkAll })), renderTarget: props => React__namespace.createElement(Button, Object.assign({}, props, { mode: "none", icon: ForwardRef$
|
|
2100
|
+
React__namespace.createElement(DropdownMenuButton, { caption: i18nLocal.selectAllButton, onClick: checkAll }))), renderTarget: (props) => React__namespace.createElement(Button, Object.assign({}, props, { mode: "none", icon: ForwardRef$q, size: "30", color: "secondary", isDropdown: false })) })),
|
|
2130
2101
|
React__namespace.createElement(Panel, { cx: styles$1.mainPanel },
|
|
2131
2102
|
React__namespace.createElement(ScrollBars, null,
|
|
2132
2103
|
renderVisible(),
|
|
2133
2104
|
renderHidden(),
|
|
2134
2105
|
isNoData && (React__namespace.createElement(FlexRow, { cx: styles$1.noData },
|
|
2135
|
-
React__namespace.createElement(Text, { fontSize:
|
|
2136
|
-
React__namespace.createElement(Text, { fontSize:
|
|
2106
|
+
React__namespace.createElement(Text, { fontSize: "24", lineHeight: "30", color: "primary", font: "semibold" }, i18nLocal.noResultsFound.text),
|
|
2107
|
+
React__namespace.createElement(Text, { fontSize: "16", lineHeight: "24", font: "regular", color: "primary" }, i18nLocal.noResultsFound.subText))))),
|
|
2137
2108
|
React__namespace.createElement(ModalFooter, { borderTop: true },
|
|
2138
|
-
React__namespace.createElement(LinkButton, { icon: ForwardRef$
|
|
2139
|
-
React__namespace.createElement(FlexSpacer, null),
|
|
2109
|
+
React__namespace.createElement(LinkButton, { icon: ForwardRef$p, caption: i18nLocal.resetToDefaultButton, onClick: reset }),
|
|
2110
|
+
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
2140
2111
|
React__namespace.createElement(Button, { mode: "ghost", color: "secondary", caption: i18nLocal.cancelButton, onClick: close }),
|
|
2141
|
-
noVisibleColumns
|
|
2142
|
-
? (React__namespace.createElement(Tooltip, { content: i18nLocal.enableAtLeastOneColumnMessage, placement: 'top-end', color: 'contrast' }, applyButton))
|
|
2143
|
-
: applyButton))));
|
|
2112
|
+
noVisibleColumns ? (React__namespace.createElement(Tooltip, { content: i18nLocal.enableAtLeastOneColumnMessage, placement: "top-end", color: "critical" }, applyButton)) : (applyButton)))));
|
|
2144
2113
|
}
|
|
2145
2114
|
|
|
2146
|
-
var css$
|
|
2115
|
+
var css$u = {"panel":"ColumnHeaderDropdown_panel__52aQo"};
|
|
2147
2116
|
|
|
2148
|
-
var css$
|
|
2117
|
+
var css$t = {"typography-header":"SortingPanel_typography-header__xME1m","typography-block":"SortingPanel_typography-block__YDYpy","typography-inline":"SortingPanel_typography-inline__Tcu9M","typography-16":"SortingPanel_typography-16__63gUO","typography-14":"SortingPanel_typography-14__fFFKh","typography-12":"SortingPanel_typography-12__gbS0m","typography-promo":"SortingPanel_typography-promo__Ng4h4 SortingPanel_typography-header__xME1m SortingPanel_typography-block__YDYpy SortingPanel_typography-inline__Tcu9M","sorting-panel-container":"SortingPanel_sorting-panel-container__DH1x6","sort-active":"SortingPanel_sort-active__KNhjc","typographyHeader":"SortingPanel_typography-header__xME1m","typographyBlock":"SortingPanel_typography-block__YDYpy","typographyInline":"SortingPanel_typography-inline__Tcu9M","typography16":"SortingPanel_typography-16__63gUO","typography14":"SortingPanel_typography-14__fFFKh","typography12":"SortingPanel_typography-12__gbS0m","typographyPromo":"SortingPanel_typography-promo__Ng4h4 SortingPanel_typography-header__xME1m SortingPanel_typography-block__YDYpy SortingPanel_typography-inline__Tcu9M","sortingPanelContainer":"SortingPanel_sorting-panel-container__DH1x6","sortActive":"SortingPanel_sort-active__KNhjc"};
|
|
2149
2118
|
|
|
2150
2119
|
const SortingPanelImpl = ({ sortDirection, onSort }) => {
|
|
2151
2120
|
const sortAsc = React.useCallback(() => onSort(sortDirection === 'asc' ? undefined : 'asc'), [onSort]);
|
|
2152
2121
|
const sortDesc = React.useCallback(() => onSort(sortDirection === 'desc' ? undefined : 'desc'), [onSort]);
|
|
2153
|
-
return (React__namespace.default.createElement(FlexCell, { cx: css$
|
|
2154
|
-
React__namespace.default.createElement(DropdownMenuButton, { isActive: sortDirection === 'asc', caption: i18n.pickerFilterHeader.sortAscending, icon: ForwardRef$
|
|
2155
|
-
React__namespace.default.createElement(DropdownMenuButton, { isActive: sortDirection === 'desc', caption: i18n.pickerFilterHeader.sortDescending, icon: ForwardRef$
|
|
2122
|
+
return (React__namespace.default.createElement(FlexCell, { cx: css$t.sortingPanelContainer },
|
|
2123
|
+
React__namespace.default.createElement(DropdownMenuButton, { isActive: sortDirection === 'asc', caption: i18n.pickerFilterHeader.sortAscending, icon: ForwardRef$x, onClick: sortAsc }),
|
|
2124
|
+
React__namespace.default.createElement(DropdownMenuButton, { isActive: sortDirection === 'desc', caption: i18n.pickerFilterHeader.sortDescending, icon: ForwardRef$w, onClick: sortDesc })));
|
|
2156
2125
|
};
|
|
2157
2126
|
const SortingPanel = React__namespace.default.memo(SortingPanelImpl);
|
|
2158
2127
|
|
|
2159
|
-
const ColumnHeaderDropdownImpl = props => {
|
|
2128
|
+
const ColumnHeaderDropdownImpl = (props) => {
|
|
2160
2129
|
const popperModifiers = React.useMemo(() => [
|
|
2161
2130
|
{
|
|
2162
2131
|
name: 'offset',
|
|
2163
2132
|
options: { offset: [0, 1] },
|
|
2164
|
-
},
|
|
2165
|
-
uuiCore.mobilePopperModifier,
|
|
2133
|
+
}, uuiCore.mobilePopperModifier,
|
|
2166
2134
|
], []);
|
|
2167
2135
|
const style = React.useMemo(() => ({
|
|
2168
2136
|
width: uuiCore.isMobile() ? document.documentElement.clientWidth : undefined,
|
|
2169
2137
|
}), []);
|
|
2170
2138
|
const closeDropdown = React.useCallback(() => props.onOpenChange(false), [props.onOpenChange]);
|
|
2171
|
-
return (React__namespace.default.createElement(uuiComponents.Dropdown, { renderTarget: props.renderTarget, renderBody: dropdownProps => (React__namespace.default.createElement(Panel, { style: style, shadow: true, cx: css$
|
|
2139
|
+
return (React__namespace.default.createElement(uuiComponents.Dropdown, { renderTarget: props.renderTarget, renderBody: (dropdownProps) => (React__namespace.default.createElement(Panel, { style: style, shadow: true, cx: css$u.panel },
|
|
2172
2140
|
React__namespace.default.createElement(MobileDropdownWrapper, { title: props.title, close: closeDropdown },
|
|
2173
|
-
props.isSortable &&
|
|
2141
|
+
props.isSortable && React__namespace.default.createElement(SortingPanel, { sortDirection: props.sortDirection, onSort: props.onSort }),
|
|
2174
2142
|
props.renderFilter(dropdownProps)))), modifiers: popperModifiers, value: props.isOpen, onValueChange: props.onOpenChange }));
|
|
2175
2143
|
};
|
|
2176
2144
|
const ColumnHeaderDropdown = React__namespace.default.memo(ColumnHeaderDropdownImpl);
|
|
2177
2145
|
|
|
2178
|
-
var _path$
|
|
2179
|
-
function _extends$
|
|
2146
|
+
var _path$k;
|
|
2147
|
+
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); }
|
|
2180
2148
|
var SvgNotificationDone24 = function SvgNotificationDone24(props, ref) {
|
|
2181
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2149
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
|
|
2182
2150
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2183
2151
|
width: 24,
|
|
2184
2152
|
height: 24,
|
|
2185
2153
|
viewBox: "0 0 24 24",
|
|
2186
2154
|
ref: ref
|
|
2187
|
-
}, props), _path$
|
|
2155
|
+
}, props), _path$k || (_path$k = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2188
2156
|
fillRule: "evenodd",
|
|
2189
2157
|
d: "m9.727 16.075-4.295-4.388L4 13.149 9.727 19 22 6.463 20.568 5 9.728 16.075z",
|
|
2190
2158
|
clipRule: "evenodd"
|
|
2191
2159
|
})));
|
|
2192
2160
|
};
|
|
2193
|
-
var ForwardRef$
|
|
2161
|
+
var ForwardRef$l = /*#__PURE__*/React.forwardRef(SvgNotificationDone24);
|
|
2194
2162
|
|
|
2195
|
-
var _path$
|
|
2196
|
-
function _extends$
|
|
2163
|
+
var _path$j;
|
|
2164
|
+
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); }
|
|
2197
2165
|
var SvgNotificationDone18 = function SvgNotificationDone18(props, ref) {
|
|
2198
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2166
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
|
|
2199
2167
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2200
2168
|
width: 18,
|
|
2201
2169
|
height: 18,
|
|
2202
2170
|
viewBox: "0 0 18 18",
|
|
2203
2171
|
ref: ref
|
|
2204
|
-
}, props), _path$
|
|
2172
|
+
}, props), _path$j || (_path$j = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2205
2173
|
fillRule: "evenodd",
|
|
2206
2174
|
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",
|
|
2207
2175
|
clipRule: "evenodd"
|
|
2208
2176
|
})));
|
|
2209
2177
|
};
|
|
2210
|
-
var ForwardRef$
|
|
2178
|
+
var ForwardRef$k = /*#__PURE__*/React.forwardRef(SvgNotificationDone18);
|
|
2211
2179
|
|
|
2212
|
-
var _path$
|
|
2213
|
-
function _extends$
|
|
2180
|
+
var _path$i;
|
|
2181
|
+
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); }
|
|
2214
2182
|
var SvgNotificationDone12 = function SvgNotificationDone12(props, ref) {
|
|
2215
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2183
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
|
|
2216
2184
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2217
2185
|
width: 12,
|
|
2218
2186
|
height: 12,
|
|
2219
2187
|
viewBox: "0 0 12 12",
|
|
2220
2188
|
ref: ref
|
|
2221
|
-
}, props), _path$
|
|
2189
|
+
}, props), _path$i || (_path$i = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2222
2190
|
d: "M11 3.6 9.462 2 4.846 6.8 2.538 4.4 1 6l3.846 4L11 3.6z"
|
|
2223
2191
|
})));
|
|
2224
2192
|
};
|
|
2225
|
-
var ForwardRef$
|
|
2193
|
+
var ForwardRef$j = /*#__PURE__*/React.forwardRef(SvgNotificationDone12);
|
|
2226
2194
|
|
|
2227
|
-
var css$
|
|
2195
|
+
var css$s = {"typography-header":"DataPickerRow_typography-header__IfaEa","typography-block":"DataPickerRow_typography-block__h7PJR","typography-inline":"DataPickerRow_typography-inline__nLffn","typography-16":"DataPickerRow_typography-16__d2vFn","typography-14":"DataPickerRow_typography-14__lhGfr","typography-12":"DataPickerRow_typography-12__jpyOF","typography-promo":"DataPickerRow_typography-promo__XThFP DataPickerRow_typography-header__IfaEa DataPickerRow_typography-block__h7PJR DataPickerRow_typography-inline__nLffn","render-item":"DataPickerRow_render-item__YsRTQ","icon-wrapper":"DataPickerRow_icon-wrapper__Pwg6e","picker-row":"DataPickerRow_picker-row__yZk93","icon-default":"DataPickerRow_icon-default__DpPlP","icon-primary":"DataPickerRow_icon-primary__s8KHw","typographyHeader":"DataPickerRow_typography-header__IfaEa","typographyBlock":"DataPickerRow_typography-block__h7PJR","typographyInline":"DataPickerRow_typography-inline__nLffn","typography16":"DataPickerRow_typography-16__d2vFn","typography14":"DataPickerRow_typography-14__lhGfr","typography12":"DataPickerRow_typography-12__jpyOF","typographyPromo":"DataPickerRow_typography-promo__XThFP DataPickerRow_typography-header__IfaEa DataPickerRow_typography-block__h7PJR DataPickerRow_typography-inline__nLffn","renderItem":"DataPickerRow_render-item__YsRTQ","iconWrapper":"DataPickerRow_icon-wrapper__Pwg6e","pickerRow":"DataPickerRow_picker-row__yZk93","iconDefault":"DataPickerRow_icon-default__DpPlP","iconPrimary":"DataPickerRow_icon-primary__s8KHw"};
|
|
2228
2196
|
|
|
2229
2197
|
class DataPickerRow extends React__namespace.Component {
|
|
2230
2198
|
constructor() {
|
|
2231
2199
|
super(...arguments);
|
|
2232
2200
|
this.getIcon = (size) => {
|
|
2233
2201
|
switch (size) {
|
|
2234
|
-
case '24':
|
|
2235
|
-
|
|
2236
|
-
case '
|
|
2237
|
-
|
|
2238
|
-
|
|
2202
|
+
case '24':
|
|
2203
|
+
return ForwardRef$j;
|
|
2204
|
+
case '30':
|
|
2205
|
+
return ForwardRef$k;
|
|
2206
|
+
case '36':
|
|
2207
|
+
return ForwardRef$k;
|
|
2208
|
+
case '42':
|
|
2209
|
+
return ForwardRef$l;
|
|
2210
|
+
default:
|
|
2211
|
+
return ForwardRef$k;
|
|
2239
2212
|
}
|
|
2240
2213
|
};
|
|
2241
2214
|
this.column = {
|
|
2242
2215
|
key: 'name',
|
|
2243
2216
|
grow: 1,
|
|
2244
2217
|
width: 0,
|
|
2245
|
-
render: (item, rowProps) => React__namespace.createElement("div", { key: rowProps.id, className: css$
|
|
2218
|
+
render: (item, rowProps) => (React__namespace.createElement("div", { key: rowProps.id, className: css$s.renderItem },
|
|
2246
2219
|
this.props.renderItem(item, rowProps),
|
|
2247
|
-
React__namespace.createElement(FlexSpacer, null),
|
|
2248
|
-
(rowProps.isChildrenSelected || rowProps.isSelected) && React__namespace.createElement("div", { className: css$
|
|
2249
|
-
React__namespace.createElement(uuiComponents.IconContainer, { icon: this.getIcon(this.props.size), cx: rowProps.isChildrenSelected ? css$
|
|
2220
|
+
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
2221
|
+
(rowProps.isChildrenSelected || rowProps.isSelected) && (React__namespace.createElement("div", { className: css$s.iconWrapper },
|
|
2222
|
+
React__namespace.createElement(uuiComponents.IconContainer, { icon: this.getIcon(this.props.size), cx: rowProps.isChildrenSelected ? css$s.iconDefault : css$s.iconPrimary }))))),
|
|
2250
2223
|
};
|
|
2251
2224
|
this.renderContent = () => {
|
|
2252
|
-
return React__namespace.createElement(DataTableCell, { key:
|
|
2225
|
+
return (React__namespace.createElement(DataTableCell, { key: "name", size: this.props.size || '36', padding: this.props.padding || '24', isFirstColumn: true, isLastColumn: false, tabIndex: -1, column: this.column, rowProps: this.props, alignActions: this.props.alignActions || 'top' }));
|
|
2253
2226
|
};
|
|
2254
2227
|
}
|
|
2255
2228
|
render() {
|
|
2256
|
-
return React__namespace.createElement(uuiComponents.DataPickerRow, Object.assign({}, this.props, { cx: [css$
|
|
2229
|
+
return React__namespace.createElement(uuiComponents.DataPickerRow, Object.assign({}, this.props, { cx: [css$s.pickerRow, this.props.cx], renderContent: this.renderContent }));
|
|
2257
2230
|
}
|
|
2258
2231
|
}
|
|
2259
2232
|
|
|
2260
|
-
var css$
|
|
2233
|
+
var css$r = {"typography-header":"MobileDropdownWrapper_typography-header__x4CWx","typography-block":"MobileDropdownWrapper_typography-block__qdVMl","typography-inline":"MobileDropdownWrapper_typography-inline__yk-yR","typography-16":"MobileDropdownWrapper_typography-16__keTAm","typography-14":"MobileDropdownWrapper_typography-14__kN-FT","typography-12":"MobileDropdownWrapper_typography-12__X6oPE","typography-promo":"MobileDropdownWrapper_typography-promo__tKPcE MobileDropdownWrapper_typography-header__x4CWx MobileDropdownWrapper_typography-block__qdVMl MobileDropdownWrapper_typography-inline__yk-yR","done":"MobileDropdownWrapper_done__kE5Pe","typographyHeader":"MobileDropdownWrapper_typography-header__x4CWx","typographyBlock":"MobileDropdownWrapper_typography-block__qdVMl","typographyInline":"MobileDropdownWrapper_typography-inline__yk-yR","typography16":"MobileDropdownWrapper_typography-16__keTAm","typography14":"MobileDropdownWrapper_typography-14__kN-FT","typography12":"MobileDropdownWrapper_typography-12__X6oPE","typographyPromo":"MobileDropdownWrapper_typography-promo__tKPcE MobileDropdownWrapper_typography-header__x4CWx MobileDropdownWrapper_typography-block__qdVMl MobileDropdownWrapper_typography-inline__yk-yR"};
|
|
2261
2234
|
|
|
2262
|
-
const MobileDropdownWrapper = props => {
|
|
2235
|
+
const MobileDropdownWrapper = (props) => {
|
|
2263
2236
|
const isVisible = uuiCore.isMobile();
|
|
2264
2237
|
uuiCore.useAppMobileHeight();
|
|
2265
2238
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
2266
2239
|
isVisible && React__namespace.default.createElement(DataPickerHeader, { title: props.title, close: props.close }),
|
|
2267
2240
|
props.children,
|
|
2268
|
-
isVisible &&
|
|
2241
|
+
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$r.done, size: "48" })));
|
|
2269
2242
|
};
|
|
2270
2243
|
|
|
2271
|
-
var css$
|
|
2244
|
+
var css$q = {"typography-header":"PickerModal_typography-header__UkGcm","typography-block":"PickerModal_typography-block__ZZN4H","typography-inline":"PickerModal_typography-inline__KorkO","typography-16":"PickerModal_typography-16__iu8BL","typography-14":"PickerModal_typography-14__q81pu","typography-12":"PickerModal_typography-12__yekWT","typography-promo":"PickerModal_typography-promo__aiTeX PickerModal_typography-header__UkGcm PickerModal_typography-block__ZZN4H PickerModal_typography-inline__KorkO","sub-header-wrapper":"PickerModal_sub-header-wrapper__ArWps","switch":"PickerModal_switch__l1-Vd","typographyHeader":"PickerModal_typography-header__UkGcm","typographyBlock":"PickerModal_typography-block__ZZN4H","typographyInline":"PickerModal_typography-inline__KorkO","typography16":"PickerModal_typography-16__iu8BL","typography14":"PickerModal_typography-14__q81pu","typography12":"PickerModal_typography-12__yekWT","typographyPromo":"PickerModal_typography-promo__aiTeX PickerModal_typography-header__UkGcm PickerModal_typography-block__ZZN4H PickerModal_typography-inline__KorkO","subHeaderWrapper":"PickerModal_sub-header-wrapper__ArWps","$switch$":"PickerModal_switch__l1-Vd"};
|
|
2272
2245
|
|
|
2273
|
-
var _path$
|
|
2274
|
-
function _extends$
|
|
2246
|
+
var _path$h, _path2;
|
|
2247
|
+
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); }
|
|
2275
2248
|
var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
2276
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2249
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
|
|
2277
2250
|
width: 66,
|
|
2278
2251
|
height: 67,
|
|
2279
2252
|
viewBox: "0 0 66 67",
|
|
2280
2253
|
fill: "none",
|
|
2281
2254
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2282
2255
|
ref: ref
|
|
2283
|
-
}, props), _path$
|
|
2256
|
+
}, props), _path$h || (_path$h = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2284
2257
|
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",
|
|
2285
2258
|
fill: "#EBEDF5"
|
|
2286
2259
|
})), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -2290,42 +2263,39 @@ var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
|
2290
2263
|
fill: "#6C6F80"
|
|
2291
2264
|
})));
|
|
2292
2265
|
};
|
|
2293
|
-
var ForwardRef$
|
|
2266
|
+
var ForwardRef$i = /*#__PURE__*/React.forwardRef(SvgSearchWithBackground);
|
|
2294
2267
|
|
|
2295
2268
|
class PickerModalImpl extends uuiComponents.PickerModalBase {
|
|
2296
2269
|
constructor() {
|
|
2297
2270
|
super(...arguments);
|
|
2298
2271
|
this.renderNotFound = () => {
|
|
2299
|
-
return this.props.renderNotFound
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
React__namespace.createElement(Text, { cx: css$p.noFoundModalContainerText, font: 'semibold', fontSize: '16', lineHeight: '24', color: 'primary', size: '36' }, i18n.dataPickerBody.noRecordsMessage),
|
|
2304
|
-
React__namespace.createElement(Text, { cx: css$p.noFoundModalContainerText, fontSize: '12', lineHeight: '18', font: 'regular', color: 'primary', size: '36' }, i18n.dataPickerBody.noRecordsSubTitle));
|
|
2272
|
+
return this.props.renderNotFound ? (this.props.renderNotFound({ search: this.state.dataSourceState.search, onClose: () => this.props.success(null) })) : (React__namespace.createElement("div", { className: css$q.noFoundModalContainer },
|
|
2273
|
+
React__namespace.createElement(uuiComponents.IconContainer, { cx: css$q.noFoundModalContainerIcon, icon: ForwardRef$i }),
|
|
2274
|
+
React__namespace.createElement(Text, { cx: css$q.noFoundModalContainerText, font: "semibold", fontSize: "16", lineHeight: "24", color: "primary", size: "36" }, i18n.dataPickerBody.noRecordsMessage),
|
|
2275
|
+
React__namespace.createElement(Text, { cx: css$q.noFoundModalContainerText, fontSize: "12", lineHeight: "18", font: "regular", color: "primary", size: "36" }, i18n.dataPickerBody.noRecordsSubTitle)));
|
|
2305
2276
|
};
|
|
2306
2277
|
}
|
|
2307
2278
|
renderRow(rowProps) {
|
|
2308
|
-
return this.props.renderRow ? this.props.renderRow(rowProps, this.state.dataSourceState) : (React__namespace.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey, borderBottom:
|
|
2279
|
+
return this.props.renderRow ? (this.props.renderRow(rowProps, this.state.dataSourceState)) : (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)) })));
|
|
2309
2280
|
}
|
|
2310
|
-
renderFooter(
|
|
2311
|
-
const hasSelection = selectedDataRows.length > 0;
|
|
2281
|
+
renderFooter() {
|
|
2312
2282
|
const view = this.getView();
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
React__namespace.createElement(
|
|
2316
|
-
React__namespace.createElement(
|
|
2317
|
-
React__namespace.createElement(Button, { color:
|
|
2283
|
+
const hasSelection = view.getSelectedRowsCount() > 0;
|
|
2284
|
+
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
2285
|
+
view.selectAll && (React__namespace.createElement(LinkButton, { caption: hasSelection ? i18n.pickerModal.clearAllButton : i18n.pickerModal.selectAllButton, onClick: hasSelection ? () => this.clearSelection() : () => view.selectAll.onValueChange(true) })),
|
|
2286
|
+
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
2287
|
+
React__namespace.createElement(Button, { mode: "outline", color: "secondary", caption: i18n.pickerModal.cancelButton, onClick: () => this.props.abort() }),
|
|
2288
|
+
React__namespace.createElement(Button, { color: "accent", caption: i18n.pickerModal.selectButton, onClick: () => this.props.success(null) })));
|
|
2318
2289
|
}
|
|
2319
2290
|
render() {
|
|
2320
2291
|
const view = this.getView();
|
|
2321
2292
|
const dataRows = this.getRows();
|
|
2322
|
-
const
|
|
2323
|
-
const rows = dataRows.map(props => this.renderRow(props));
|
|
2293
|
+
const rows = dataRows.map((props) => this.renderRow(props));
|
|
2324
2294
|
return (React__namespace.createElement(ModalBlocker, Object.assign({}, this.props),
|
|
2325
2295
|
React__namespace.createElement(ModalWindow, { width: 600, height: 700 },
|
|
2326
2296
|
React__namespace.createElement(ModalHeader, { title: this.props.caption || i18n.pickerModal.headerTitle, onClose: () => this.props.abort() }),
|
|
2327
|
-
React__namespace.createElement(FlexCell, { cx: css$
|
|
2328
|
-
React__namespace.createElement(FlexRow, { vPadding:
|
|
2297
|
+
React__namespace.createElement(FlexCell, { cx: css$q.subHeaderWrapper },
|
|
2298
|
+
React__namespace.createElement(FlexRow, { vPadding: "24" },
|
|
2329
2299
|
React__namespace.createElement(SearchInput, Object.assign({}, this.lens.prop('dataSourceState').prop('search').toProps(), { onKeyDown: (e) => uuiComponents.handleDataSourceKeyboard({
|
|
2330
2300
|
value: this.getDataSourceState(),
|
|
2331
2301
|
onValueChange: this.handleDataSourceValueChange,
|
|
@@ -2333,12 +2303,10 @@ class PickerModalImpl extends uuiComponents.PickerModalBase {
|
|
|
2333
2303
|
rows: dataRows,
|
|
2334
2304
|
editMode: 'modal',
|
|
2335
2305
|
}, e), autoFocus: true, placeholder: i18n.pickerModal.searchPlaceholder }))),
|
|
2336
|
-
!this.isSingleSelect() && React__namespace.createElement(Switch, Object.assign({ cx: css$
|
|
2306
|
+
!this.isSingleSelect() && (React__namespace.createElement(Switch, Object.assign({ cx: css$q.switch, size: "18" }, this.stateLens.prop('showSelected').toProps(), { isDisabled: view.getSelectedRowsCount() < 1, label: "Show only selected" }))),
|
|
2337
2307
|
this.props.renderFilter && React__namespace.createElement(FlexCell, { grow: 2 }, this.props.renderFilter(this.lens.prop('dataSourceState').prop('filter').toProps()))),
|
|
2338
|
-
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:
|
|
2339
|
-
React__namespace.createElement(ModalFooter, { padding:
|
|
2340
|
-
? this.props.renderFooter(this.getFooterProps())
|
|
2341
|
-
: this.renderFooter(selectedDataRows)))));
|
|
2308
|
+
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" })),
|
|
2309
|
+
React__namespace.createElement(ModalFooter, { padding: "24", vPadding: "24" }, this.props.renderFooter ? this.props.renderFooter(this.getFooterProps()) : this.renderFooter()))));
|
|
2342
2310
|
}
|
|
2343
2311
|
}
|
|
2344
2312
|
class PickerModal extends React__namespace.Component {
|
|
@@ -2354,29 +2322,29 @@ class PickerModal extends React__namespace.Component {
|
|
|
2354
2322
|
|
|
2355
2323
|
const Avatar = uuiCore.withMods(uuiComponents.Avatar, () => []);
|
|
2356
2324
|
|
|
2325
|
+
var css$p = {"root":"AvatarStack_root__Tsg6N"};
|
|
2326
|
+
|
|
2327
|
+
const AvatarStack = uuiCore.withMods(uuiComponents.AvatarStack, () => [css$p.root]);
|
|
2328
|
+
|
|
2357
2329
|
var css$o = {"typography-header":"Badge_typography-header__zhcFQ","typography-block":"Badge_typography-block__aR47j","typography-inline":"Badge_typography-inline__MLd7F","typography-16":"Badge_typography-16__gwWRC","typography-14":"Badge_typography-14__ins26","typography-12":"Badge_typography-12__pj7lQ","typography-promo":"Badge_typography-promo__jJwa3 Badge_typography-header__zhcFQ Badge_typography-block__aR47j Badge_typography-inline__MLd7F","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","typographyHeader":"Badge_typography-header__zhcFQ","typographyBlock":"Badge_typography-block__aR47j","typographyInline":"Badge_typography-inline__MLd7F","typography16":"Badge_typography-16__gwWRC","typography14":"Badge_typography-14__ins26","typography12":"Badge_typography-12__pj7lQ","typographyPromo":"Badge_typography-promo__jJwa3 Badge_typography-header__zhcFQ Badge_typography-block__aR47j Badge_typography-inline__MLd7F","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"};
|
|
2358
2330
|
|
|
2359
2331
|
const defaultSize$4 = '36';
|
|
2360
2332
|
const mapSize$1 = {
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2333
|
+
48: '48',
|
|
2334
|
+
42: '48',
|
|
2335
|
+
36: '36',
|
|
2336
|
+
30: '30',
|
|
2337
|
+
24: '30',
|
|
2338
|
+
18: '18',
|
|
2367
2339
|
};
|
|
2368
2340
|
function applyBadgeMods(mods) {
|
|
2369
2341
|
return [
|
|
2370
|
-
css$o.root,
|
|
2371
|
-
buttonCss.root,
|
|
2372
|
-
css$o['size-' + (mods.size || defaultSize$4)],
|
|
2373
|
-
css$o['fill-' + (mods.fill || 'solid')],
|
|
2374
|
-
mods.color && `badge-${(mods.color)}`,
|
|
2342
|
+
css$o.root, buttonCss.root, css$o['size-' + (mods.size || defaultSize$4)], css$o['fill-' + (mods.fill || 'solid')], mods.color && `badge-${mods.color}`,
|
|
2375
2343
|
];
|
|
2376
2344
|
}
|
|
2377
2345
|
const Badge = uuiCore.withMods(uuiComponents.Button, applyBadgeMods, (props) => ({
|
|
2378
|
-
dropdownIcon: systemIcons[props.size && mapSize$1[props.size] || defaultSize$4].foldingArrow,
|
|
2379
|
-
clearIcon: systemIcons[props.size && mapSize$1[props.size] || defaultSize$4].clear,
|
|
2346
|
+
dropdownIcon: systemIcons[(props.size && mapSize$1[props.size]) || defaultSize$4].foldingArrow,
|
|
2347
|
+
clearIcon: systemIcons[(props.size && mapSize$1[props.size]) || defaultSize$4].clear,
|
|
2380
2348
|
countPosition: 'left',
|
|
2381
2349
|
}));
|
|
2382
2350
|
|
|
@@ -2384,33 +2352,122 @@ var css$n = {"typography-header":"Tag_typography-header__F6CIv","typography-bloc
|
|
|
2384
2352
|
|
|
2385
2353
|
const defaultSize$3 = '36';
|
|
2386
2354
|
const mapSize = {
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2355
|
+
48: '48',
|
|
2356
|
+
42: '48',
|
|
2357
|
+
36: '36',
|
|
2358
|
+
30: '30',
|
|
2359
|
+
24: '30',
|
|
2360
|
+
18: '18',
|
|
2393
2361
|
};
|
|
2394
2362
|
function applyTagMods(mods) {
|
|
2395
|
-
return [
|
|
2396
|
-
css$n['size-' + (mods.size || defaultSize$3)],
|
|
2397
|
-
css$n.root,
|
|
2398
|
-
];
|
|
2363
|
+
return [css$n['size-' + (mods.size || defaultSize$3)], css$n.root];
|
|
2399
2364
|
}
|
|
2400
2365
|
const Tag = uuiCore.withMods(uuiComponents.Button, applyTagMods, (props) => ({
|
|
2401
2366
|
dropdownIcon: systemIcons[mapSize[props.size] || defaultSize$3].foldingArrow,
|
|
2402
2367
|
clearIcon: systemIcons[mapSize[props.size] || defaultSize$3].clear,
|
|
2403
2368
|
}));
|
|
2404
2369
|
|
|
2405
|
-
var css$m = {"
|
|
2370
|
+
var css$m = {"root":"Paginator_root__axS3r","spacer":"Paginator_spacer__Xicct","mode-ghost":"Paginator_mode-ghost__3igjT","size-24":"Paginator_size-24__ZlsRd","size-30":"Paginator_size-30__Uw66-","navigation-size-24":"Paginator_navigation-size-24__FpImt","navigation-size-30":"Paginator_navigation-size-30__-PWmy","modeGhost":"Paginator_mode-ghost__3igjT","size24":"Paginator_size-24__ZlsRd","size30":"Paginator_size-30__Uw66-","navigationSize24":"Paginator_navigation-size-24__FpImt","navigationSize30":"Paginator_navigation-size-30__-PWmy"};
|
|
2371
|
+
|
|
2372
|
+
var _path$g;
|
|
2373
|
+
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); }
|
|
2374
|
+
var SvgNavigationChevronLeft12 = function SvgNavigationChevronLeft12(props, ref) {
|
|
2375
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
|
|
2376
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2377
|
+
width: 12,
|
|
2378
|
+
height: 12,
|
|
2379
|
+
viewBox: "0 0 12 12",
|
|
2380
|
+
ref: ref
|
|
2381
|
+
}, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2382
|
+
fillRule: "evenodd",
|
|
2383
|
+
d: "M7.705 3.705 7 3 4 6l3 3 .705-.705L5.415 6l2.29-2.295z",
|
|
2384
|
+
clipRule: "evenodd"
|
|
2385
|
+
})));
|
|
2386
|
+
};
|
|
2387
|
+
var ForwardRef$h = /*#__PURE__*/React.forwardRef(SvgNavigationChevronLeft12);
|
|
2388
|
+
|
|
2389
|
+
var _path$f;
|
|
2390
|
+
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); }
|
|
2391
|
+
var SvgNavigationChevronRight12 = function SvgNavigationChevronRight12(props, ref) {
|
|
2392
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
|
|
2393
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2394
|
+
width: 12,
|
|
2395
|
+
height: 12,
|
|
2396
|
+
viewBox: "0 0 12 12",
|
|
2397
|
+
ref: ref
|
|
2398
|
+
}, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2399
|
+
fillRule: "evenodd",
|
|
2400
|
+
d: "m5 3-.705.705L6.585 6l-2.29 2.295L5 9l3-3-3-3z",
|
|
2401
|
+
clipRule: "evenodd"
|
|
2402
|
+
})));
|
|
2403
|
+
};
|
|
2404
|
+
var ForwardRef$g = /*#__PURE__*/React.forwardRef(SvgNavigationChevronRight12);
|
|
2405
|
+
|
|
2406
|
+
var _path$e;
|
|
2407
|
+
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); }
|
|
2408
|
+
var SvgNavigationChevronLeft18 = function SvgNavigationChevronLeft18(props, ref) {
|
|
2409
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
|
|
2410
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2411
|
+
width: 18,
|
|
2412
|
+
height: 18,
|
|
2413
|
+
viewBox: "0 0 18 18",
|
|
2414
|
+
ref: ref
|
|
2415
|
+
}, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2416
|
+
fillRule: "evenodd",
|
|
2417
|
+
d: "M11.557 5.558 10.5 4.5 6 9l4.5 4.5 1.057-1.057L8.123 9l3.434-3.442z",
|
|
2418
|
+
clipRule: "evenodd"
|
|
2419
|
+
})));
|
|
2420
|
+
};
|
|
2421
|
+
var ForwardRef$f = /*#__PURE__*/React.forwardRef(SvgNavigationChevronLeft18);
|
|
2422
|
+
|
|
2423
|
+
var _path$d;
|
|
2424
|
+
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); }
|
|
2425
|
+
var SvgNavigationChevronRight18 = function SvgNavigationChevronRight18(props, ref) {
|
|
2426
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
|
|
2427
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2428
|
+
width: 18,
|
|
2429
|
+
height: 18,
|
|
2430
|
+
viewBox: "0 0 18 18",
|
|
2431
|
+
ref: ref
|
|
2432
|
+
}, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2433
|
+
fillRule: "evenodd",
|
|
2434
|
+
d: "M7.5 4.5 6.442 5.558 9.877 9l-3.435 3.443L7.5 13.5 12 9 7.5 4.5z",
|
|
2435
|
+
clipRule: "evenodd"
|
|
2436
|
+
})));
|
|
2437
|
+
};
|
|
2438
|
+
var ForwardRef$e = /*#__PURE__*/React.forwardRef(SvgNavigationChevronRight18);
|
|
2439
|
+
|
|
2440
|
+
function Paginator(props) {
|
|
2441
|
+
const renderPaginator = (params) => {
|
|
2442
|
+
var _a, _b;
|
|
2443
|
+
return (React__namespace.default.createElement("nav", Object.assign({ role: "navigation", className: css$m.root }, params.rawProps),
|
|
2444
|
+
React__namespace.default.createElement(Button, { cx: css$m[`navigation-size-${(_a = params.size) !== null && _a !== void 0 ? _a : '30'}`], size: params.size, icon: params.size === '30' ? ForwardRef$f : ForwardRef$h, onClick: params.goToPrev, isDisabled: params.isFirst, mode: "outline", color: "secondary" }),
|
|
2445
|
+
params.pages.map((page, index) => {
|
|
2446
|
+
var _a, _b;
|
|
2447
|
+
if (page.type === 'spacer') {
|
|
2448
|
+
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$m[`size-${(_a = params.size) !== null && _a !== void 0 ? _a : '30'}`], css$m.spacer), size: params.size, key: `${index}_spacer`, caption: "...", mode: "ghost", color: "secondary", tabIndex: -1 }));
|
|
2449
|
+
}
|
|
2450
|
+
else {
|
|
2451
|
+
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$m[`size-${(_b = params.size) !== null && _b !== void 0 ? _b : '30'}`], css$m[`mode-${!page.isActive && 'ghost'}`]), size: params.size, key: page.pageNumber, caption: page.pageNumber, onClick: () => { var _a; return (_a = page.onClick) === null || _a === void 0 ? void 0 : _a.call(page); }, rawProps: { 'aria-current': page.isActive }, mode: (page.isActive && 'outline') || 'ghost', color: "primary" }));
|
|
2452
|
+
}
|
|
2453
|
+
}),
|
|
2454
|
+
React__namespace.default.createElement(Button, { cx: css$m[`navigation-size-${(_b = params.size) !== null && _b !== void 0 ? _b : '30'}`], size: params.size, icon: params.size === '30' ? ForwardRef$e : ForwardRef$g, onClick: params.goToNext, isDisabled: params.isLast, mode: "outline", color: "secondary" })));
|
|
2455
|
+
};
|
|
2456
|
+
return React__namespace.default.createElement(uuiComponents.Paginator, Object.assign({}, props, { render: renderPaginator }));
|
|
2457
|
+
}
|
|
2458
|
+
|
|
2459
|
+
const MAX_ITEMS = 100;
|
|
2460
|
+
const getMaxItems = (maxItems) => maxItems || maxItems === 0 ? maxItems : MAX_ITEMS;
|
|
2461
|
+
|
|
2462
|
+
var css$l = {"typography-header":"PickerToggler_typography-header__Wl3bF","typography-block":"PickerToggler_typography-block__ujo3e","typography-inline":"PickerToggler_typography-inline__R6g9F","typography-16":"PickerToggler_typography-16__umTFU","typography-14":"PickerToggler_typography-14__3RWdh","typography-12":"PickerToggler_typography-12__PnVPR","typography-promo":"PickerToggler_typography-promo__PFoH7 PickerToggler_typography-header__Wl3bF PickerToggler_typography-block__ujo3e PickerToggler_typography-inline__R6g9F","root":"PickerToggler_root__G7gEl","mode-form":"PickerToggler_mode-form__OlTHW","mode-cell":"PickerToggler_mode-cell__hBg0t","mode-inline":"PickerToggler_mode-inline__AIRuh","size-24":"PickerToggler_size-24__MUg2U","size-30":"PickerToggler_size-30__K0XU-","size-36":"PickerToggler_size-36__NqG3q","size-42":"PickerToggler_size-42__xm0IS","size-48":"PickerToggler_size-48__DGIi9","typographyHeader":"PickerToggler_typography-header__Wl3bF","typographyBlock":"PickerToggler_typography-block__ujo3e","typographyInline":"PickerToggler_typography-inline__R6g9F","typography16":"PickerToggler_typography-16__umTFU","typography14":"PickerToggler_typography-14__3RWdh","typography12":"PickerToggler_typography-12__PnVPR","typographyPromo":"PickerToggler_typography-promo__PFoH7 PickerToggler_typography-header__Wl3bF PickerToggler_typography-block__ujo3e PickerToggler_typography-inline__R6g9F","modeForm":"PickerToggler_mode-form__OlTHW","modeCell":"PickerToggler_mode-cell__hBg0t","modeInline":"PickerToggler_mode-inline__AIRuh","size24":"PickerToggler_size-24__MUg2U","size30":"PickerToggler_size-30__K0XU-","size36":"PickerToggler_size-36__NqG3q","size42":"PickerToggler_size-42__xm0IS","size48":"PickerToggler_size-48__DGIi9"};
|
|
2406
2463
|
|
|
2407
2464
|
const defaultSize$2 = '36';
|
|
2408
2465
|
const defaultMode = exports.EditMode.FORM;
|
|
2409
2466
|
function applyPickerTogglerMods(mods) {
|
|
2410
2467
|
return [
|
|
2411
|
-
css$
|
|
2412
|
-
css$
|
|
2413
|
-
css$
|
|
2468
|
+
css$l.root,
|
|
2469
|
+
css$l['size-' + (mods.size || defaultSize$2)],
|
|
2470
|
+
css$l['mode-' + (mods.mode || defaultMode)],
|
|
2414
2471
|
];
|
|
2415
2472
|
}
|
|
2416
2473
|
function PickerTogglerComponent(props, ref) {
|
|
@@ -2429,12 +2486,11 @@ function PickerTogglerComponent(props, ref) {
|
|
|
2429
2486
|
}
|
|
2430
2487
|
};
|
|
2431
2488
|
const getCaption = (row) => {
|
|
2432
|
-
|
|
2433
|
-
const maxItems = (props.maxItems || props.maxItems === 0) ? props.maxItems : 100;
|
|
2489
|
+
const maxItems = getMaxItems(props.maxItems);
|
|
2434
2490
|
if (row.isLoading) {
|
|
2435
2491
|
return React__namespace.createElement(TextPlaceholder, null);
|
|
2436
2492
|
}
|
|
2437
|
-
else if (!props.getName ||
|
|
2493
|
+
else if (!props.getName || props.selectedRowsCount > maxItems) {
|
|
2438
2494
|
return row.value;
|
|
2439
2495
|
}
|
|
2440
2496
|
else {
|
|
@@ -2443,17 +2499,17 @@ function PickerTogglerComponent(props, ref) {
|
|
|
2443
2499
|
};
|
|
2444
2500
|
const renderItem = (row) => {
|
|
2445
2501
|
var _a;
|
|
2446
|
-
return (React__namespace.createElement(Tag, { key: row.rowKey, caption: getCaption(row), tabIndex: -1, size: props.size ? getPickerTogglerButtonSize(props.size) : '30', onClear: e => {
|
|
2502
|
+
return (React__namespace.createElement(Tag, { key: row.rowKey, caption: getCaption(row), tabIndex: -1, size: props.size ? getPickerTogglerButtonSize(props.size) : '30', onClear: (e) => {
|
|
2447
2503
|
var _a;
|
|
2448
2504
|
(_a = row.onCheck) === null || _a === void 0 ? void 0 : _a.call(row, row);
|
|
2449
2505
|
e.stopPropagation();
|
|
2450
2506
|
}, isDisabled: props.isDisabled || props.isReadonly || ((_a = row === null || row === void 0 ? void 0 : row.checkbox) === null || _a === void 0 ? void 0 : _a.isDisabled) }));
|
|
2451
2507
|
};
|
|
2452
|
-
return (React__namespace.createElement(uuiComponents.PickerToggler, Object.assign({}, props, { ref: ref, cx: [applyPickerTogglerMods(props), props.cx], renderItem: !!props.renderItem ? props.renderItem : renderItem, getName: (item) => props.getName ? props.getName(item) : item, cancelIcon: systemIcons[props.size || defaultSize$2].clear, dropdownIcon: systemIcons[props.size || defaultSize$2].foldingArrow })));
|
|
2508
|
+
return (React__namespace.createElement(uuiComponents.PickerToggler, Object.assign({}, props, { ref: ref, cx: [applyPickerTogglerMods(props), props.cx], renderItem: !!props.renderItem ? props.renderItem : renderItem, getName: (item) => (props.getName ? props.getName(item) : item), cancelIcon: systemIcons[props.size || defaultSize$2].clear, dropdownIcon: systemIcons[props.size || defaultSize$2].foldingArrow })));
|
|
2453
2509
|
}
|
|
2454
2510
|
const PickerToggler = React__namespace.forwardRef(PickerTogglerComponent);
|
|
2455
2511
|
|
|
2456
|
-
var css$
|
|
2512
|
+
var css$k = {"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"};
|
|
2457
2513
|
|
|
2458
2514
|
const defaultSize$1 = '36';
|
|
2459
2515
|
class PickerItem extends React__namespace.Component {
|
|
@@ -2464,20 +2520,20 @@ class PickerItem extends React__namespace.Component {
|
|
|
2464
2520
|
};
|
|
2465
2521
|
}
|
|
2466
2522
|
render() {
|
|
2467
|
-
const { size, avatarUrl, title, subtitle, isLoading, isDisabled, icon } = this.props;
|
|
2523
|
+
const { size, avatarUrl, title, subtitle, isLoading, isDisabled, icon, } = this.props;
|
|
2468
2524
|
const itemSize = size && size !== 'none' ? size : defaultSize$1;
|
|
2469
2525
|
const isMultiline = !!(title && subtitle);
|
|
2470
|
-
return (React__namespace.createElement(FlexCell, { width:
|
|
2471
|
-
React__namespace.createElement(FlexRow, { size: itemSize, cx: isMultiline && css$
|
|
2526
|
+
return (React__namespace.createElement(FlexCell, { width: "auto", cx: css$k.root },
|
|
2527
|
+
React__namespace.createElement(FlexRow, { size: itemSize, cx: isMultiline && css$k[`multiline-vertical-padding-${itemSize}`], spacing: "12" },
|
|
2472
2528
|
avatarUrl && React__namespace.createElement(Avatar, { isLoading: isLoading, img: avatarUrl, size: this.getAvatarSize(itemSize, isMultiline).toString() }),
|
|
2473
2529
|
icon && React__namespace.createElement(uuiComponents.IconContainer, { icon: icon }),
|
|
2474
|
-
React__namespace.createElement(FlexCell, { width:
|
|
2475
|
-
title && React__namespace.createElement(Text, { size: itemSize, cx: css$
|
|
2476
|
-
subtitle && React__namespace.createElement(Text, { size: itemSize, color: 'disabled', cx: css$
|
|
2530
|
+
React__namespace.createElement(FlexCell, { width: "auto" },
|
|
2531
|
+
title && (React__namespace.createElement(Text, { size: itemSize, cx: css$k.text, color: isDisabled ? 'disabled' : 'primary' }, isLoading ? React__namespace.createElement(TextPlaceholder, { wordsCount: 2 }) : title)),
|
|
2532
|
+
subtitle && (React__namespace.createElement(Text, { size: itemSize, color: isDisabled ? 'disabled' : 'secondary', cx: css$k.text }, isLoading ? React__namespace.createElement(TextPlaceholder, { wordsCount: 2 }) : subtitle))))));
|
|
2477
2533
|
}
|
|
2478
2534
|
}
|
|
2479
2535
|
|
|
2480
|
-
var css$
|
|
2536
|
+
var css$j = {"typography-header":"PickerInput_typography-header__pZmu4","typography-block":"PickerInput_typography-block__MMlH6","typography-inline":"PickerInput_typography-inline__3Z1Fw","typography-16":"PickerInput_typography-16__58rbi","typography-14":"PickerInput_typography-14__CCnu9","typography-12":"PickerInput_typography-12__T51Lb","typography-promo":"PickerInput_typography-promo__tcN6K PickerInput_typography-header__pZmu4 PickerInput_typography-block__MMlH6 PickerInput_typography-inline__3Z1Fw","panel":"PickerInput_panel__0GHsI","footer-wrapper":"PickerInput_footer-wrapper__hMVx6","footer-size-24":"PickerInput_footer-size-24__X1s8w","footer-size-30":"PickerInput_footer-size-30__2kxYO","footer-size-36":"PickerInput_footer-size-36__xEFus","footer-size-42":"PickerInput_footer-size-42__q6lln","footer-size-48":"PickerInput_footer-size-48__uP99C","typographyHeader":"PickerInput_typography-header__pZmu4","typographyBlock":"PickerInput_typography-block__MMlH6","typographyInline":"PickerInput_typography-inline__3Z1Fw","typography16":"PickerInput_typography-16__58rbi","typography14":"PickerInput_typography-14__CCnu9","typography12":"PickerInput_typography-12__T51Lb","typographyPromo":"PickerInput_typography-promo__tcN6K PickerInput_typography-header__pZmu4 PickerInput_typography-block__MMlH6 PickerInput_typography-inline__3Z1Fw","footerWrapper":"PickerInput_footer-wrapper__hMVx6","footerSize24":"PickerInput_footer-size-24__X1s8w","footerSize30":"PickerInput_footer-size-30__2kxYO","footerSize36":"PickerInput_footer-size-36__xEFus","footerSize42":"PickerInput_footer-size-42__q6lln","footerSize48":"PickerInput_footer-size-48__uP99C"};
|
|
2481
2537
|
|
|
2482
2538
|
const pickerHeight$1 = 300;
|
|
2483
2539
|
const pickerWidth$1 = 360;
|
|
@@ -2488,13 +2544,14 @@ class PickerInput extends uuiComponents.PickerInputBase {
|
|
|
2488
2544
|
return React__namespace.default.createElement(PickerItem, Object.assign({ title: this.getName(item), size: this.getRowSize() }, rowProps));
|
|
2489
2545
|
};
|
|
2490
2546
|
this.renderRow = (rowProps) => {
|
|
2491
|
-
return this.props.renderRow ? this.props.renderRow(rowProps, this.state.dataSourceState) : (React__namespace.default.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey, borderBottom:
|
|
2547
|
+
return this.props.renderRow ? (this.props.renderRow(rowProps, this.state.dataSourceState)) : (React__namespace.default.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey, borderBottom: "none", size: this.getRowSize(), padding: this.props.editMode === 'modal' ? '24' : '12', renderItem: this.renderItem })));
|
|
2492
2548
|
};
|
|
2493
2549
|
}
|
|
2494
|
-
toggleModalOpening(
|
|
2550
|
+
toggleModalOpening() {
|
|
2495
2551
|
const _a = this.props, { renderFooter, rawProps } = _a, restProps = __rest(_a, ["renderFooter", "rawProps"]);
|
|
2496
|
-
this.context.uuiModals
|
|
2497
|
-
.
|
|
2552
|
+
this.context.uuiModals
|
|
2553
|
+
.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 }))))
|
|
2554
|
+
.then((newSelection) => {
|
|
2498
2555
|
this.handleSelectionValueChange(newSelection);
|
|
2499
2556
|
this.returnFocusToInput();
|
|
2500
2557
|
})
|
|
@@ -2503,11 +2560,10 @@ class PickerInput extends uuiComponents.PickerInputBase {
|
|
|
2503
2560
|
});
|
|
2504
2561
|
}
|
|
2505
2562
|
getRowSize() {
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
: this.props.size;
|
|
2563
|
+
if (uuiCore.isMobile()) {
|
|
2564
|
+
return '48';
|
|
2565
|
+
}
|
|
2566
|
+
return this.props.editMode === 'modal' ? '36' : this.props.size;
|
|
2511
2567
|
}
|
|
2512
2568
|
getTogglerMods() {
|
|
2513
2569
|
return {
|
|
@@ -2517,33 +2573,34 @@ class PickerInput extends uuiComponents.PickerInputBase {
|
|
|
2517
2573
|
}
|
|
2518
2574
|
renderFooter() {
|
|
2519
2575
|
const footerProps = this.getFooterProps();
|
|
2520
|
-
return this.props.renderFooter
|
|
2521
|
-
? this.props.renderFooter(footerProps)
|
|
2522
|
-
: React__namespace.default.createElement(DataPickerFooter, Object.assign({}, footerProps, { size: this.props.size }));
|
|
2576
|
+
return this.props.renderFooter ? (this.props.renderFooter(footerProps)) : (React__namespace.default.createElement(DataPickerFooter, Object.assign({}, footerProps, { size: this.props.size })));
|
|
2523
2577
|
}
|
|
2524
2578
|
renderTarget(targetProps) {
|
|
2525
|
-
const renderTarget = this.props.renderToggler || (props => React__namespace.default.createElement(PickerToggler, Object.assign({}, props)));
|
|
2526
|
-
return (React__namespace.default.createElement(uuiCore.IEditableDebouncer, { value: targetProps.value, onValueChange: this.handleTogglerSearchChange, render: editableProps => renderTarget(Object.assign(Object.assign(Object.assign({}, this.getTogglerMods()), targetProps), editableProps)) }));
|
|
2579
|
+
const renderTarget = this.props.renderToggler || ((props) => React__namespace.default.createElement(PickerToggler, Object.assign({}, props)));
|
|
2580
|
+
return (React__namespace.default.createElement(uuiCore.IEditableDebouncer, { value: targetProps.value, onValueChange: this.handleTogglerSearchChange, render: (editableProps) => renderTarget(Object.assign(Object.assign(Object.assign({}, this.getTogglerMods()), targetProps), editableProps)) }));
|
|
2527
2581
|
}
|
|
2528
2582
|
renderBody(props, rows) {
|
|
2529
|
-
const renderedDataRows = rows.map((
|
|
2530
|
-
const maxHeight = uuiCore.isMobile() ? document.documentElement.clientHeight :
|
|
2531
|
-
const minBodyWidth = uuiCore.isMobile() ? document.documentElement.clientWidth :
|
|
2532
|
-
return (React__namespace.default.createElement(Panel, {
|
|
2583
|
+
const renderedDataRows = rows.map((row) => this.renderRow(row));
|
|
2584
|
+
const maxHeight = uuiCore.isMobile() ? document.documentElement.clientHeight : this.props.dropdownHeight || pickerHeight$1;
|
|
2585
|
+
const minBodyWidth = uuiCore.isMobile() ? document.documentElement.clientWidth : this.props.minBodyWidth || pickerWidth$1;
|
|
2586
|
+
return (React__namespace.default.createElement(Panel, { style: { width: props.togglerWidth > minBodyWidth ? props.togglerWidth : minBodyWidth }, rawProps: { tabIndex: -1 }, cx: [
|
|
2587
|
+
css$j.panel, uuiCore.uuiMarkers.lockFocus, this.props.bodyCx,
|
|
2588
|
+
] },
|
|
2533
2589
|
React__namespace.default.createElement(MobileDropdownWrapper, { title: this.props.entityName, close: () => {
|
|
2534
2590
|
this.returnFocusToInput();
|
|
2535
2591
|
this.toggleBodyOpening(false);
|
|
2536
2592
|
} },
|
|
2537
|
-
React__namespace.default.createElement(DataPickerBody, Object.assign({}, props, { rows: renderedDataRows, maxHeight: maxHeight, searchSize: this.props.size, editMode:
|
|
2538
|
-
() => this.props.renderNotFound({
|
|
2593
|
+
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
|
|
2594
|
+
? () => this.props.renderNotFound({
|
|
2539
2595
|
search: this.state.dataSourceState.search,
|
|
2540
2596
|
onClose: () => this.toggleBodyOpening(false),
|
|
2541
|
-
})
|
|
2542
|
-
|
|
2597
|
+
})
|
|
2598
|
+
: undefined })),
|
|
2599
|
+
this.renderFooter())));
|
|
2543
2600
|
}
|
|
2544
2601
|
}
|
|
2545
2602
|
|
|
2546
|
-
var css$
|
|
2603
|
+
var css$i = {"row":"PickerListItem_row__1Uzrn"};
|
|
2547
2604
|
|
|
2548
2605
|
class PickerListItem extends React__namespace.default.Component {
|
|
2549
2606
|
render() {
|
|
@@ -2556,31 +2613,31 @@ class PickerListItem extends React__namespace.default.Component {
|
|
|
2556
2613
|
}
|
|
2557
2614
|
let component;
|
|
2558
2615
|
if (this.props.checkbox) {
|
|
2559
|
-
component = React__namespace.default.createElement(Checkbox, Object.assign({}, this.props.checkbox, { isDisabled: this.props.isLoading || this.props.checkbox.isDisabled, label: label, value: this.props.isChecked, onValueChange: () => this.props.onCheck(this.props) }));
|
|
2616
|
+
component = (React__namespace.default.createElement(Checkbox, Object.assign({}, this.props.checkbox, { isDisabled: this.props.isLoading || this.props.checkbox.isDisabled || this.props.isDisabled, label: label, value: this.props.isChecked, onValueChange: () => this.props.onCheck(this.props) })));
|
|
2560
2617
|
}
|
|
2561
2618
|
else {
|
|
2562
|
-
component = React__namespace.default.createElement(RadioInput, { label: label, value: this.props.isSelected, isDisabled: this.props.isLoading || !this.props.isSelectable, onValueChange: () => this.props.onSelect(this.props) });
|
|
2619
|
+
component = (React__namespace.default.createElement(RadioInput, { label: label, value: this.props.isSelected, isDisabled: this.props.isLoading || !this.props.isSelectable || this.props.isDisabled, onValueChange: () => this.props.onSelect(this.props) }));
|
|
2563
2620
|
}
|
|
2564
|
-
return React__namespace.default.createElement("div", { className: css$
|
|
2621
|
+
return React__namespace.default.createElement("div", { className: css$i.row }, component);
|
|
2565
2622
|
}
|
|
2566
2623
|
}
|
|
2567
2624
|
|
|
2568
2625
|
class PickerList extends uuiComponents.PickerListBase {
|
|
2569
2626
|
constructor() {
|
|
2570
2627
|
super(...arguments);
|
|
2571
|
-
this.sessionStartTime =
|
|
2628
|
+
this.sessionStartTime = new Date().getTime();
|
|
2572
2629
|
this.renderRow = (row) => {
|
|
2573
|
-
return React__namespace.default.createElement(PickerListItem, Object.assign({ getName: item => this.getName(item) }, row, { key: row.rowKey }));
|
|
2630
|
+
return React__namespace.default.createElement(PickerListItem, Object.assign({ getName: (item) => this.getName(item) }, row, { key: row.rowKey }));
|
|
2574
2631
|
};
|
|
2575
2632
|
this.handleShowPicker = () => {
|
|
2576
2633
|
this.context.uuiModals
|
|
2577
|
-
.show(props => (React__namespace.default.createElement(PickerModal, Object.assign({}, props, this.props, { caption: this.props.placeholder || `Please select ${this.getEntityName() ? this.getEntityName() :
|
|
2634
|
+
.show((props) => (React__namespace.default.createElement(PickerModal, Object.assign({}, props, this.props, { caption: this.props.placeholder || `Please select ${this.getEntityName() ? this.getEntityName() : ''}`, initialValue: this.props.value, selectionMode: this.props.selectionMode, valueType: this.props.valueType }))))
|
|
2578
2635
|
.then((value) => {
|
|
2579
2636
|
this.appendLastSelected([...this.getSelectedIdsArray(value)]);
|
|
2580
2637
|
this.props.onValueChange(value);
|
|
2581
2638
|
});
|
|
2582
2639
|
};
|
|
2583
|
-
this.defaultRenderToggler = (props) =>
|
|
2640
|
+
this.defaultRenderToggler = (props) => React__namespace.default.createElement(LinkButton, Object.assign({ caption: "Show all" }, props));
|
|
2584
2641
|
}
|
|
2585
2642
|
render() {
|
|
2586
2643
|
const view = this.getView();
|
|
@@ -2591,21 +2648,34 @@ class PickerList extends uuiComponents.PickerListBase {
|
|
|
2591
2648
|
const renderToggler = this.props.renderModalToggler || this.defaultRenderToggler;
|
|
2592
2649
|
const renderRow = this.props.renderRow || this.renderRow;
|
|
2593
2650
|
return (React__namespace.default.createElement("div", null,
|
|
2594
|
-
!rows.length
|
|
2595
|
-
this.props.noOptionsMessage :
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2651
|
+
!rows.length
|
|
2652
|
+
&& (this.props.noOptionsMessage || (React__namespace.default.createElement(Text, { color: "secondary", size: this.props.size }, "No options available"))),
|
|
2653
|
+
rows.map((row) => renderRow(Object.assign(Object.assign({}, row), { isDisabled: this.props.isDisabled }), this.state.dataSourceState)),
|
|
2654
|
+
showPicker
|
|
2655
|
+
&& renderToggler({
|
|
2656
|
+
onClick: this.handleShowPicker,
|
|
2657
|
+
caption: this.getModalTogglerCaption(viewProps.totalCount, view.getSelectedRowsCount()),
|
|
2658
|
+
isDisabled: this.props.isDisabled,
|
|
2659
|
+
}, selectedRows)));
|
|
2602
2660
|
}
|
|
2603
2661
|
}
|
|
2604
2662
|
PickerList.contextType = uuiCore.UuiContext;
|
|
2605
2663
|
|
|
2606
|
-
var
|
|
2664
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
2665
|
+
|
|
2666
|
+
var dayjs_minExports = {};
|
|
2667
|
+
var dayjs_min = {
|
|
2668
|
+
get exports(){ return dayjs_minExports; },
|
|
2669
|
+
set exports(v){ dayjs_minExports = v; },
|
|
2670
|
+
};
|
|
2671
|
+
|
|
2672
|
+
(function (module, exports) {
|
|
2673
|
+
!function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",f="month",h="quarter",c="year",d="date",$="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},g={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,f),s=n-i<0,u=e.clone().add(r+(s?-1:1),f);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:f,y:c,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},D="en",v={};v[D]=M;var p=function(t){return t instanceof _},S=function(t,e,n){var r;if(!t)return D;if("string"==typeof t)v[t]&&(r=t),e&&(v[t]=e,r=t);else {var i=t.name;v[i]=t,r=i;}return !n&&r&&(D=r),r||!n&&D},w=function(t,e){if(p(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},O=g;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t);}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(l);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return O},m.isValid=function(){return !(this.$d.toString()===$)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<w(t)},m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!O.u(e)||e,h=O.p(t),$=function(t,e){var i=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},l=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,g="set"+(this.$u?"UTC":"");switch(h){case c:return r?$(1,0):$(31,11);case f:return r?$(1,M):$(0,M+1);case o:var D=this.$locale().weekStart||0,v=(y<D?y+7:y)-D;return $(r?m-v:m+(6-v),M);case a:case d:return l(g+"Hours",0);case u:return l(g+"Minutes",1);case s:return l(g+"Seconds",2);case i:return l(g+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=O.p(t),h="set"+(this.$u?"UTC":""),$=(n={},n[a]=h+"Date",n[d]=h+"Date",n[f]=h+"Month",n[c]=h+"FullYear",n[u]=h+"Hours",n[s]=h+"Minutes",n[i]=h+"Seconds",n[r]=h+"Milliseconds",n)[o],l=o===a?this.$D+(e-this.$W):e;if(o===f||o===c){var y=this.clone().set(d,1);y.$d[$](l),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else $&&this.$d[$](l);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[O.p(t)]()},m.add=function(r,h){var d,$=this;r=Number(r);var l=O.p(h),y=function(t){var e=w($);return O.w(e.date(e.date()+Math.round(t*r)),$)};if(l===f)return this.set(f,this.$M+r);if(l===c)return this.set(c,this.$y+r);if(l===a)return y(1);if(l===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[l]||1,m=this.$d.getTime()+r*M;return O.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||$;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,f=n.months,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].substr(0,s)},c=function(t){return O.s(s%12||12,t,"0")},d=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},l={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:O.s(a+1,2,"0"),MMM:h(n.monthsShort,a,f,3),MMMM:h(f,a),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:h(n.weekdaysMin,this.$W,o,2),ddd:h(n.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(s),HH:O.s(s,2,"0"),h:c(1),hh:c(2),a:d(s,u,!0),A:d(s,u,!1),m:String(u),mm:O.s(u,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:i};return r.replace(y,(function(t,e){return e||l[t]||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,$){var l,y=O.p(d),M=w(r),m=(M.utcOffset()-this.utcOffset())*e,g=this-M,D=O.m(this,M);return D=(l={},l[c]=D/12,l[f]=D,l[h]=D/3,l[o]=(g-m)/6048e5,l[a]=(g-m)/864e5,l[u]=g/n,l[s]=g/e,l[i]=g/t,l)[y]||g,$?D:O.a(D)},m.daysInMonth=function(){return this.endOf(f).$D},m.$locale=function(){return v[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),b=_.prototype;return w.prototype=b,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",f],["$y",c],["$D",d]].forEach((function(t){b[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),w.extend=function(t,e){return t.$i||(t(e,_,w),t.$i=!0),w},w.locale=S,w.isDayjs=p,w.unix=function(t){return w(1e3*t)},w.en=v[D],w.Ls=v,w.p={},w}));
|
|
2674
|
+
} (dayjs_min));
|
|
2675
|
+
|
|
2676
|
+
var css$h = {"typography-header":"FilterPanelItemToggler_typography-header__nwnk9","typography-block":"FilterPanelItemToggler_typography-block__RS98Q","typography-inline":"FilterPanelItemToggler_typography-inline__GBz0E","typography-16":"FilterPanelItemToggler_typography-16__ilpGd","typography-14":"FilterPanelItemToggler_typography-14__O2RUd","typography-12":"FilterPanelItemToggler_typography-12__kvTGV","typography-promo":"FilterPanelItemToggler_typography-promo__6cloV FilterPanelItemToggler_typography-header__nwnk9 FilterPanelItemToggler_typography-block__RS98Q FilterPanelItemToggler_typography-inline__GBz0E","root":"FilterPanelItemToggler_root__KIGYZ","title-wrapper":"FilterPanelItemToggler_title-wrapper__hrBtt","title":"FilterPanelItemToggler_title__wECIj","text-wrapper":"FilterPanelItemToggler_text-wrapper__lYOV6","selection":"FilterPanelItemToggler_selection__4HBx1","postfix":"FilterPanelItemToggler_postfix__Sz2ir","selected":"FilterPanelItemToggler_selected__97jlL","typographyHeader":"FilterPanelItemToggler_typography-header__nwnk9","typographyBlock":"FilterPanelItemToggler_typography-block__RS98Q","typographyInline":"FilterPanelItemToggler_typography-inline__GBz0E","typography16":"FilterPanelItemToggler_typography-16__ilpGd","typography14":"FilterPanelItemToggler_typography-14__O2RUd","typography12":"FilterPanelItemToggler_typography-12__kvTGV","typographyPromo":"FilterPanelItemToggler_typography-promo__6cloV FilterPanelItemToggler_typography-header__nwnk9 FilterPanelItemToggler_typography-block__RS98Q FilterPanelItemToggler_typography-inline__GBz0E","titleWrapper":"FilterPanelItemToggler_title-wrapper__hrBtt","textWrapper":"FilterPanelItemToggler_text-wrapper__lYOV6"};
|
|
2607
2677
|
|
|
2608
|
-
const defaultSize =
|
|
2678
|
+
const defaultSize = '36';
|
|
2609
2679
|
const FilterPanelItemToggler = React__namespace.forwardRef((props, ref) => {
|
|
2610
2680
|
const togglerPickerOpened = (e) => {
|
|
2611
2681
|
var _a;
|
|
@@ -2615,18 +2685,18 @@ const FilterPanelItemToggler = React__namespace.forwardRef((props, ref) => {
|
|
|
2615
2685
|
(_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
2616
2686
|
};
|
|
2617
2687
|
const getTitle = props.predicateName ? `${props.title} ${props.predicateName}` : `${props.title}:`;
|
|
2618
|
-
return (React__namespace.createElement(uuiComponents.FlexRow, Object.assign({}, props, { rawProps: {
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2688
|
+
return (React__namespace.createElement(uuiComponents.FlexRow, Object.assign({}, props, { rawProps: {
|
|
2689
|
+
style: { maxWidth: `${props.maxWidth ? props.maxWidth + 'px' : 'auto'}` },
|
|
2690
|
+
role: 'button',
|
|
2691
|
+
}, cx: cx__default.default(css$h.root, uuiCore.uuiElement.inputBox, uuiCore.uuiMarkers.clickable, props.isOpen && uuiCore.uuiMod.opened, ['size-' + (props.size || defaultSize)], props.cx), onClick: togglerPickerOpened, ref: ref }),
|
|
2692
|
+
React__namespace.createElement(uuiComponents.FlexRow, { cx: css$h.titleWrapper },
|
|
2693
|
+
React__namespace.createElement(Text, { cx: css$h.title }, getTitle),
|
|
2694
|
+
React__namespace.createElement("div", { className: css$h.textWrapper },
|
|
2695
|
+
React__namespace.createElement(Text, { color: "brand", cx: css$h.selection }, props.selection),
|
|
2696
|
+
props.postfix && (React__namespace.createElement(Text, { color: "brand", cx: css$h.postfix }, props.postfix)))),
|
|
2697
|
+
!props.isDisabled && React__namespace.createElement(uuiComponents.IconContainer, { icon: systemIcons[props.size || defaultSize].foldingArrow, flipY: props.isOpen, cx: "uui-icon-dropdown" })));
|
|
2626
2698
|
});
|
|
2627
2699
|
|
|
2628
|
-
var css$h = {"typography-header":"FilterPickerBody_typography-header__2k2Z8","typography-block":"FilterPickerBody_typography-block__IVJqu","typography-inline":"FilterPickerBody_typography-inline__mBxPJ","typography-16":"FilterPickerBody_typography-16__dtP5r","typography-14":"FilterPickerBody_typography-14__HZiqg","typography-12":"FilterPickerBody_typography-12__w8xeY","typography-promo":"FilterPickerBody_typography-promo__S9Gyx FilterPickerBody_typography-header__2k2Z8 FilterPickerBody_typography-block__IVJqu FilterPickerBody_typography-inline__mBxPJ","footer-wrapper":"FilterPickerBody_footer-wrapper__-CvZO","typographyHeader":"FilterPickerBody_typography-header__2k2Z8","typographyBlock":"FilterPickerBody_typography-block__IVJqu","typographyInline":"FilterPickerBody_typography-inline__mBxPJ","typography16":"FilterPickerBody_typography-16__dtP5r","typography14":"FilterPickerBody_typography-14__HZiqg","typography12":"FilterPickerBody_typography-12__w8xeY","typographyPromo":"FilterPickerBody_typography-promo__S9Gyx FilterPickerBody_typography-header__2k2Z8 FilterPickerBody_typography-block__IVJqu FilterPickerBody_typography-inline__mBxPJ","footerWrapper":"FilterPickerBody_footer-wrapper__-CvZO"};
|
|
2629
|
-
|
|
2630
2700
|
const pickerHeight = 300;
|
|
2631
2701
|
const pickerWidth = 360;
|
|
2632
2702
|
class FilterPickerBody extends uuiComponents.PickerInputBase {
|
|
@@ -2643,40 +2713,26 @@ class FilterPickerBody extends uuiComponents.PickerInputBase {
|
|
|
2643
2713
|
if (rowProps.isSelectable && this.isSingleSelect() && this.props.editMode !== 'modal') {
|
|
2644
2714
|
rowProps.onSelect = this.onSelect;
|
|
2645
2715
|
}
|
|
2646
|
-
return this.props.renderRow ? this.props.renderRow(rowProps, this.state.dataSourceState) : (React__namespace.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey, borderBottom: "none", size: "36", padding: "12", renderItem: this.renderItem })));
|
|
2716
|
+
return this.props.renderRow ? (this.props.renderRow(rowProps, this.state.dataSourceState)) : (React__namespace.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey, borderBottom: "none", size: "36", padding: "12", renderItem: this.renderItem })));
|
|
2647
2717
|
};
|
|
2648
|
-
this.renderFooter = (
|
|
2649
|
-
|
|
2650
|
-
return React__namespace.createElement(DataPickerFooter, Object.assign({}, this.getFooterProps(), { hideShowOnlySelected: this.isSingleSelect(), size: "36" }));
|
|
2651
|
-
}
|
|
2652
|
-
const { clearSelection, view } = this.getFooterProps();
|
|
2653
|
-
const size = uuiCore.isMobile() ? '48' : '36';
|
|
2654
|
-
const hasSelection = view.getSelectedRows().length > 0;
|
|
2655
|
-
const handleKeyDown = (e) => {
|
|
2656
|
-
if (!e.shiftKey && e.key === 'Tab')
|
|
2657
|
-
e.preventDefault();
|
|
2658
|
-
};
|
|
2659
|
-
return (React__namespace.createElement(FlexRow, { padding: "12", cx: cx__default.default(css$h.footerWrapper) },
|
|
2660
|
-
React__namespace.createElement(FlexCell, { width: "auto", alignSelf: "center" },
|
|
2661
|
-
React__namespace.createElement(LinkButton, { isDisabled: !hasSelection, size: size, caption: i18n.pickerInput.clearSelectionButtonSingle, onClick: clearSelection, rawProps: { onKeyDown: handleKeyDown } }))));
|
|
2718
|
+
this.renderFooter = () => {
|
|
2719
|
+
return React__namespace.createElement(DataPickerFooter, Object.assign({}, this.getFooterProps(), { size: "36" }));
|
|
2662
2720
|
};
|
|
2663
2721
|
}
|
|
2664
2722
|
shouldShowBody() {
|
|
2665
2723
|
return this.props.isOpen;
|
|
2666
2724
|
}
|
|
2667
|
-
toggleModalOpening(opened) {
|
|
2668
|
-
}
|
|
2725
|
+
toggleModalOpening(opened) { }
|
|
2669
2726
|
renderTarget(targetProps) {
|
|
2670
2727
|
return React__namespace.createElement("div", null);
|
|
2671
2728
|
}
|
|
2672
2729
|
renderBody(props, rows) {
|
|
2673
|
-
const renderedDataRows = rows.map(props => this.renderRow(props));
|
|
2674
|
-
const maxHeight = uuiCore.isMobile() ? document.documentElement.clientHeight :
|
|
2675
|
-
const minBodyWidth = uuiCore.isMobile() ? document.documentElement.clientWidth :
|
|
2730
|
+
const renderedDataRows = rows.map((props) => this.renderRow(props));
|
|
2731
|
+
const maxHeight = uuiCore.isMobile() ? document.documentElement.clientHeight : this.props.dropdownHeight || pickerHeight;
|
|
2732
|
+
const minBodyWidth = uuiCore.isMobile() ? document.documentElement.clientWidth : this.props.minBodyWidth || pickerWidth;
|
|
2676
2733
|
return (React__namespace.createElement(Panel, { style: { width: minBodyWidth }, rawProps: { tabIndex: -1 }, cx: [uuiCore.uuiMarkers.lockFocus] },
|
|
2677
|
-
React__namespace.createElement(
|
|
2678
|
-
|
|
2679
|
-
this.renderFooter(props.selectAll))));
|
|
2734
|
+
React__namespace.createElement(DataPickerBody, Object.assign({}, props, { selectionMode: this.props.selectionMode, rows: renderedDataRows, maxHeight: maxHeight, searchSize: "36", editMode: "dropdown", showSearch: true })),
|
|
2735
|
+
this.renderFooter()));
|
|
2680
2736
|
}
|
|
2681
2737
|
render() {
|
|
2682
2738
|
const rows = this.getRows();
|
|
@@ -2707,8 +2763,8 @@ class FilterDataPickerBody extends uuiComponents.BaseDatePicker {
|
|
|
2707
2763
|
React__namespace.default.createElement(DatePickerBody, { filter: this.props.filter, value: this.getValue(), setSelectedDate: this.setSelectedDate, setDisplayedDateAndView: this.setDisplayedDateAndView, changeIsOpen: this.onToggleHandler, renderDay: this.props.renderDay, isHoliday: this.props.isHoliday, rawProps: (_a = this.props.rawProps) === null || _a === void 0 ? void 0 : _a.body })),
|
|
2708
2764
|
React__namespace.default.createElement(FlexCell, { alignSelf: "stretch" },
|
|
2709
2765
|
React__namespace.default.createElement(FlexRow, { padding: "24", vPadding: "12" },
|
|
2710
|
-
React__namespace.default.createElement(Text, null, this.state.selectedDate ?
|
|
2711
|
-
React__namespace.default.createElement(FlexSpacer, null),
|
|
2766
|
+
React__namespace.default.createElement(Text, null, this.state.selectedDate ? dayjs_minExports(this.state.selectedDate).format('MMM DD, YYYY') : ''),
|
|
2767
|
+
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
2712
2768
|
React__namespace.default.createElement(LinkButton, { isDisabled: !this.state.selectedDate, caption: i18n.filterToolbar.datePicker.clearCaption, onClick: this.handleCancel })))));
|
|
2713
2769
|
}
|
|
2714
2770
|
render() {
|
|
@@ -2733,10 +2789,10 @@ class FilterRangeDatePickerBody extends uuiComponents.BaseRangeDatePicker {
|
|
|
2733
2789
|
React__namespace.createElement(FlexCell, { alignSelf: "stretch" },
|
|
2734
2790
|
React__namespace.createElement(FlexRow, { padding: "24", vPadding: "12" },
|
|
2735
2791
|
React__namespace.createElement("div", { className: cx__default.default(css$g.dateInputGroup, this.state.inFocus && uuiCore.uuiMod.focus) },
|
|
2736
|
-
React__namespace.createElement(TextInput, { icon: systemIcons['30'].calendar, cx: cx__default.default(css$g.dateInput, css$g['size-30'], this.state.inFocus === 'from' && uuiCore.uuiMod.focus), size:
|
|
2792
|
+
React__namespace.createElement(TextInput, { icon: systemIcons['30'].calendar, cx: cx__default.default(css$g.dateInput, css$g['size-30'], this.state.inFocus === 'from' && uuiCore.uuiMod.focus), size: "30", placeholder: i18n.rangeDatePicker.pickerPlaceholderFrom, value: this.state.inputValue.from, onValueChange: this.getChangeHandler('from'), onFocus: (event) => this.handleFocus(event, 'from'), onBlur: (event) => this.handleBlur(event, 'from') }),
|
|
2737
2793
|
React__namespace.createElement("div", { className: css$g.separator }),
|
|
2738
|
-
React__namespace.createElement(TextInput, { cx: cx__default.default(css$g.dateInput, css$g['size-30'], this.state.inFocus === 'to' && uuiCore.uuiMod.focus), placeholder: i18n.rangeDatePicker.pickerPlaceholderTo, size:
|
|
2739
|
-
React__namespace.createElement(FlexSpacer, null),
|
|
2794
|
+
React__namespace.createElement(TextInput, { cx: cx__default.default(css$g.dateInput, css$g['size-30'], this.state.inFocus === 'to' && uuiCore.uuiMod.focus), placeholder: i18n.rangeDatePicker.pickerPlaceholderTo, size: "30", value: this.state.inputValue.to, onCancel: this.state.inputValue.from && this.state.inputValue.to && this.handleCancel, onValueChange: this.getChangeHandler('to'), onFocus: (event) => this.handleFocus(event, 'to'), onBlur: (event) => this.handleBlur(event, 'to') })),
|
|
2795
|
+
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
2740
2796
|
React__namespace.createElement(LinkButton, { isDisabled: !this.state.inputValue.from && !this.state.inputValue.to, caption: i18n.pickerModal.clearAllButton, onClick: this.handleCancel })))));
|
|
2741
2797
|
}
|
|
2742
2798
|
render() {
|
|
@@ -2744,21 +2800,21 @@ class FilterRangeDatePickerBody extends uuiComponents.BaseRangeDatePicker {
|
|
|
2744
2800
|
}
|
|
2745
2801
|
}
|
|
2746
2802
|
|
|
2747
|
-
|
|
2803
|
+
function FilterNumericBody(props) {
|
|
2748
2804
|
var _a, _b;
|
|
2749
2805
|
const isInRangePredicate = (props === null || props === void 0 ? void 0 : props.selectedPredicate) === 'inRange' || (props === null || props === void 0 ? void 0 : props.selectedPredicate) === 'notInRange';
|
|
2750
2806
|
const rangeValueHandler = (type) => (val) => {
|
|
2751
2807
|
var _a, _b;
|
|
2752
2808
|
const value = props.value;
|
|
2753
2809
|
switch (type) {
|
|
2754
|
-
case
|
|
2810
|
+
case 'from': {
|
|
2755
2811
|
props.onValueChange({
|
|
2756
2812
|
from: val,
|
|
2757
2813
|
to: (_a = value === null || value === void 0 ? void 0 : value.to) !== null && _a !== void 0 ? _a : null,
|
|
2758
2814
|
});
|
|
2759
2815
|
break;
|
|
2760
2816
|
}
|
|
2761
|
-
case
|
|
2817
|
+
case 'to': {
|
|
2762
2818
|
props.onValueChange({
|
|
2763
2819
|
from: (_b = value === null || value === void 0 ? void 0 : value.from) !== null && _b !== void 0 ? _b : null,
|
|
2764
2820
|
to: val,
|
|
@@ -2787,9 +2843,9 @@ const FilterNumericBody = (props) => {
|
|
|
2787
2843
|
const value = props.value;
|
|
2788
2844
|
return (React__namespace.default.createElement("div", null,
|
|
2789
2845
|
React__namespace.default.createElement(FlexRow, { padding: "12", vPadding: "24", alignItems: "center", spacing: "12", borderBottom: true },
|
|
2790
|
-
React__namespace.default.createElement(FlexCell, { width:
|
|
2846
|
+
React__namespace.default.createElement(FlexCell, { width: "100%" },
|
|
2791
2847
|
React__namespace.default.createElement(NumericInput, { value: (_a = value === null || value === void 0 ? void 0 : value.from) !== null && _a !== void 0 ? _a : null, onValueChange: rangeValueHandler('from'), size: "30", placeholder: "Min", formatOptions: { maximumFractionDigits: 2 } })),
|
|
2792
|
-
React__namespace.default.createElement(FlexCell, { width:
|
|
2848
|
+
React__namespace.default.createElement(FlexCell, { width: "100%" },
|
|
2793
2849
|
React__namespace.default.createElement(NumericInput, { value: (_b = value === null || value === void 0 ? void 0 : value.to) !== null && _b !== void 0 ? _b : null, onValueChange: rangeValueHandler('to'), size: "30", placeholder: "Max", formatOptions: { maximumFractionDigits: 2 } }))),
|
|
2794
2850
|
renderFooter()));
|
|
2795
2851
|
}
|
|
@@ -2798,22 +2854,22 @@ const FilterNumericBody = (props) => {
|
|
|
2798
2854
|
React__namespace.default.createElement(FlexCell, { width: 130 },
|
|
2799
2855
|
React__namespace.default.createElement(NumericInput, { value: typeof props.value === 'number' ? props.value : null, onValueChange: props.onValueChange, size: "30", placeholder: "Enter a number", formatOptions: { maximumFractionDigits: 2 } }))),
|
|
2800
2856
|
renderFooter()));
|
|
2801
|
-
}
|
|
2857
|
+
}
|
|
2802
2858
|
|
|
2803
|
-
|
|
2859
|
+
function FilterItemBody(props) {
|
|
2804
2860
|
switch (props.type) {
|
|
2805
|
-
case
|
|
2806
|
-
return
|
|
2807
|
-
case
|
|
2808
|
-
return
|
|
2809
|
-
case
|
|
2810
|
-
return
|
|
2811
|
-
case
|
|
2812
|
-
return
|
|
2813
|
-
case
|
|
2814
|
-
return
|
|
2861
|
+
case 'singlePicker':
|
|
2862
|
+
return React__namespace.default.createElement(FilterPickerBody, Object.assign({}, props, { selectionMode: "single", valueType: "id" }));
|
|
2863
|
+
case 'numeric':
|
|
2864
|
+
return React__namespace.default.createElement(FilterNumericBody, Object.assign({}, props));
|
|
2865
|
+
case 'multiPicker':
|
|
2866
|
+
return React__namespace.default.createElement(FilterPickerBody, Object.assign({}, props, { selectionMode: "multi", valueType: "id" }));
|
|
2867
|
+
case 'datePicker':
|
|
2868
|
+
return React__namespace.default.createElement(FilterDataPickerBody, Object.assign({}, props, { format: props.format || 'DD/MM/YYYY' }));
|
|
2869
|
+
case 'rangeDatePicker':
|
|
2870
|
+
return React__namespace.default.createElement(FilterRangeDatePickerBody, Object.assign({}, props, { format: props.format || 'DD/MM/YYYY', value: props.value || { from: null, to: null } }));
|
|
2815
2871
|
}
|
|
2816
|
-
}
|
|
2872
|
+
}
|
|
2817
2873
|
|
|
2818
2874
|
var _path$c;
|
|
2819
2875
|
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); }
|
|
@@ -2831,19 +2887,41 @@ var SvgActionDeleteforever12 = function SvgActionDeleteforever12(props, ref) {
|
|
|
2831
2887
|
};
|
|
2832
2888
|
var ForwardRef$d = /*#__PURE__*/React.forwardRef(SvgActionDeleteforever12);
|
|
2833
2889
|
|
|
2834
|
-
var css$f = {"typography-header":"FiltersPanelItem_typography-header__cxbkP","typography-block":"FiltersPanelItem_typography-block__AI7VG","typography-inline":"FiltersPanelItem_typography-inline__j90GN","typography-16":"FiltersPanelItem_typography-16__h8TGe","typography-14":"FiltersPanelItem_typography-14__xFk8h","typography-12":"FiltersPanelItem_typography-12__5Pmwi","typography-promo":"FiltersPanelItem_typography-promo__-gtw7 FiltersPanelItem_typography-header__cxbkP FiltersPanelItem_typography-block__AI7VG FiltersPanelItem_typography-inline__j90GN","header":"FiltersPanelItem_header__1Ogc3","removeButton":"FiltersPanelItem_removeButton__ykSMB","typographyHeader":"FiltersPanelItem_typography-header__cxbkP","typographyBlock":"FiltersPanelItem_typography-block__AI7VG","typographyInline":"FiltersPanelItem_typography-inline__j90GN","typography16":"FiltersPanelItem_typography-16__h8TGe","typography14":"FiltersPanelItem_typography-14__xFk8h","typography12":"FiltersPanelItem_typography-12__5Pmwi","typographyPromo":"FiltersPanelItem_typography-promo__-gtw7 FiltersPanelItem_typography-header__cxbkP FiltersPanelItem_typography-block__AI7VG FiltersPanelItem_typography-inline__j90GN"};
|
|
2890
|
+
var css$f = {"typography-header":"FiltersPanelItem_typography-header__cxbkP","typography-block":"FiltersPanelItem_typography-block__AI7VG","typography-inline":"FiltersPanelItem_typography-inline__j90GN","typography-16":"FiltersPanelItem_typography-16__h8TGe","typography-14":"FiltersPanelItem_typography-14__xFk8h","typography-12":"FiltersPanelItem_typography-12__5Pmwi","typography-promo":"FiltersPanelItem_typography-promo__-gtw7 FiltersPanelItem_typography-header__cxbkP FiltersPanelItem_typography-block__AI7VG FiltersPanelItem_typography-inline__j90GN","header":"FiltersPanelItem_header__1Ogc3","removeButton":"FiltersPanelItem_removeButton__ykSMB","panel":"FiltersPanelItem_panel__aLA55","typographyHeader":"FiltersPanelItem_typography-header__cxbkP","typographyBlock":"FiltersPanelItem_typography-block__AI7VG","typographyInline":"FiltersPanelItem_typography-inline__j90GN","typography16":"FiltersPanelItem_typography-16__h8TGe","typography14":"FiltersPanelItem_typography-14__xFk8h","typography12":"FiltersPanelItem_typography-12__5Pmwi","typographyPromo":"FiltersPanelItem_typography-promo__-gtw7 FiltersPanelItem_typography-header__cxbkP FiltersPanelItem_typography-block__AI7VG FiltersPanelItem_typography-inline__j90GN"};
|
|
2835
2891
|
|
|
2836
|
-
|
|
2892
|
+
function FiltersToolbarItemImpl(props) {
|
|
2893
|
+
const isPickersType = (props === null || props === void 0 ? void 0 : props.type) === 'multiPicker' || (props === null || props === void 0 ? void 0 : props.type) === 'singlePicker';
|
|
2894
|
+
const isMobileScreen = uuiCore.isMobile();
|
|
2895
|
+
const popperModifiers = React.useMemo(() => {
|
|
2896
|
+
const modifiers = [
|
|
2897
|
+
{
|
|
2898
|
+
name: 'offset',
|
|
2899
|
+
options: { offset: isPickersType && isMobileScreen ? [0, 0] : [0, 6] },
|
|
2900
|
+
},
|
|
2901
|
+
];
|
|
2902
|
+
if (isPickersType && isMobileScreen) {
|
|
2903
|
+
modifiers.push({
|
|
2904
|
+
name: 'resetTransform',
|
|
2905
|
+
enabled: true,
|
|
2906
|
+
phase: 'beforeWrite',
|
|
2907
|
+
requires: ['computeStyles'],
|
|
2908
|
+
fn: ({ state }) => {
|
|
2909
|
+
state.styles.popper.transform = '';
|
|
2910
|
+
},
|
|
2911
|
+
});
|
|
2912
|
+
}
|
|
2913
|
+
return modifiers;
|
|
2914
|
+
}, [isPickersType]);
|
|
2837
2915
|
const getDefaultPredicate = () => {
|
|
2838
2916
|
var _a, _b;
|
|
2839
2917
|
if (!props.predicates) {
|
|
2840
2918
|
return null;
|
|
2841
2919
|
}
|
|
2842
|
-
return Object.keys(props.value || {})[0] || ((_a = props.predicates.find(i => i.isDefault)) === null || _a === void 0 ? void 0 : _a.predicate) || ((_b = props.predicates) === null || _b === void 0 ? void 0 : _b[0].predicate);
|
|
2920
|
+
return Object.keys(props.value || {})[0] || ((_a = props.predicates.find((i) => i.isDefault)) === null || _a === void 0 ? void 0 : _a.predicate) || ((_b = props.predicates) === null || _b === void 0 ? void 0 : _b[0].predicate);
|
|
2843
2921
|
};
|
|
2844
2922
|
const [isOpen, isOpenChange] = React.useState(props.autoFocus);
|
|
2845
2923
|
const [predicate, setPredicate] = React.useState(getDefaultPredicate());
|
|
2846
|
-
const predicateName = React__namespace.default.useMemo(() => predicate && props.predicates.find(p => p.predicate === predicate).name, [predicate]);
|
|
2924
|
+
const predicateName = React__namespace.default.useMemo(() => predicate && props.predicates.find((p) => p.predicate === predicate).name, [predicate]);
|
|
2847
2925
|
const forceUpdate = uuiCore.useForceUpdate();
|
|
2848
2926
|
React.useEffect(() => {
|
|
2849
2927
|
if (props.predicates && Object.keys(props.value || {})[0] && Object.keys(props.value || {})[0] !== predicate) {
|
|
@@ -2867,10 +2945,12 @@ const FiltersToolbarItemImpl = (props) => {
|
|
|
2867
2945
|
let predicateValue = {
|
|
2868
2946
|
[props.field]: { [val]: getValue() },
|
|
2869
2947
|
};
|
|
2870
|
-
if (isInRange(val) && !isInRange(predicate)) {
|
|
2948
|
+
if (isInRange(val) && !isInRange(predicate)) {
|
|
2949
|
+
// from simple predicate -> to Range
|
|
2871
2950
|
predicateValue = { [props.field]: { [val]: { from: null, to: null } } };
|
|
2872
2951
|
}
|
|
2873
|
-
else if (!isInRange(val) && isInRange(predicate)) {
|
|
2952
|
+
else if (!isInRange(val) && isInRange(predicate)) {
|
|
2953
|
+
// from Range -> to simple predicate
|
|
2874
2954
|
predicateValue = { [props.field]: { [val]: null } };
|
|
2875
2955
|
}
|
|
2876
2956
|
props.onValueChange(predicateValue);
|
|
@@ -2881,69 +2961,78 @@ const FiltersToolbarItemImpl = (props) => {
|
|
|
2881
2961
|
setPredicate(val);
|
|
2882
2962
|
};
|
|
2883
2963
|
const renderHeader = () => (React__namespace.default.createElement("div", { className: cx__default.default(css$f.header) },
|
|
2884
|
-
props.predicates ? React__namespace.default.createElement(MultiSwitch, { items: props.predicates.map(i => ({ id: i.predicate, caption: i.name })), value: predicate, onValueChange: changePredicate, size: "24" }) : React__namespace.default.createElement(Text, { color: "secondary", fontSize: "12" }, props.title),
|
|
2964
|
+
props.predicates ? (React__namespace.default.createElement(MultiSwitch, { items: props.predicates.map((i) => ({ id: i.predicate, caption: i.name })), value: predicate, onValueChange: changePredicate, size: "24" })) : (React__namespace.default.createElement(Text, { color: "secondary", fontSize: "12" }, props.title)),
|
|
2885
2965
|
!(props === null || props === void 0 ? void 0 : props.isAlwaysVisible) && (React__namespace.default.createElement(LinkButton, { cx: css$f.removeButton, caption: i18n.filterToolbar.datePicker.removeCaption, onClick: removeOnclickHandler, size: "24", icon: ForwardRef$d }))));
|
|
2886
|
-
const renderBody = (dropdownProps) => (React__namespace.default.createElement(DropdownContainer,
|
|
2887
|
-
React__namespace.default.createElement(Panel,
|
|
2888
|
-
|
|
2889
|
-
|
|
2966
|
+
const renderBody = (dropdownProps) => (React__namespace.default.createElement(DropdownContainer, Object.assign({}, dropdownProps),
|
|
2967
|
+
React__namespace.default.createElement(Panel, { cx: css$f.panel },
|
|
2968
|
+
React__namespace.default.createElement(React__namespace.default.Fragment, null, isPickersType ? (React__namespace.default.createElement(MobileDropdownWrapper, { close: () => isOpenChange(false) },
|
|
2969
|
+
renderHeader(),
|
|
2970
|
+
React__namespace.default.createElement(FilterItemBody, Object.assign({}, props, dropdownProps, { selectedPredicate: predicate, value: getValue(), onValueChange: onValueChange })))) : (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
2971
|
+
renderHeader(),
|
|
2972
|
+
React__namespace.default.createElement(FilterItemBody, Object.assign({}, props, dropdownProps, { selectedPredicate: predicate, value: getValue(), onValueChange: onValueChange }))))))));
|
|
2890
2973
|
const getValue = () => {
|
|
2891
2974
|
var _a;
|
|
2892
2975
|
return predicate ? (_a = props.value) === null || _a === void 0 ? void 0 : _a[predicate] : props.value;
|
|
2893
2976
|
};
|
|
2894
2977
|
const getTogglerValue = () => {
|
|
2895
2978
|
const currentValue = getValue();
|
|
2896
|
-
const defaultFormat =
|
|
2979
|
+
const defaultFormat = 'MMM DD, YYYY';
|
|
2897
2980
|
switch (props.type) {
|
|
2898
|
-
case
|
|
2981
|
+
case 'multiPicker': {
|
|
2899
2982
|
const view = props.dataSource.getView({}, forceUpdate);
|
|
2900
|
-
|
|
2983
|
+
const postfix = (currentValue === null || currentValue === void 0 ? void 0 : currentValue.length) > 2 ? ` +${(currentValue.length - 2).toString()} ${i18n.filterToolbar.pickerInput.itemsPlaceholder}` : null;
|
|
2901
2984
|
let isLoading = false;
|
|
2902
|
-
const selection = currentValue
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2985
|
+
const selection = currentValue
|
|
2986
|
+
? currentValue === null || currentValue === void 0 ? void 0 : currentValue.slice(0, 2).map((i) => {
|
|
2987
|
+
const item = view.getById(i, null);
|
|
2988
|
+
isLoading = item.isLoading;
|
|
2989
|
+
return item.isLoading ? React__namespace.default.createElement(TextPlaceholder, null) : props.getName ? props.getName(item.value) : item.value.name;
|
|
2990
|
+
})
|
|
2991
|
+
: [i18n.filterToolbar.pickerInput.emptyValueCaption];
|
|
2907
2992
|
const selectionText = isLoading ? selection : selection.join(', ');
|
|
2908
2993
|
return { selection: selectionText, postfix };
|
|
2909
2994
|
}
|
|
2910
|
-
case
|
|
2995
|
+
case 'numeric': {
|
|
2911
2996
|
const isRangePredicate = predicate === 'inRange' || predicate === 'notInRange';
|
|
2912
2997
|
const decimalFormat = (val) => uuiCore.getSeparatedValue(val, { maximumFractionDigits: 2 });
|
|
2913
2998
|
if ((isRangePredicate && !currentValue) || (!isRangePredicate && !currentValue && currentValue !== 0)) {
|
|
2914
2999
|
return { selection: i18n.filterToolbar.pickerInput.emptyValueCaption };
|
|
2915
3000
|
}
|
|
2916
3001
|
const selection = isRangePredicate
|
|
2917
|
-
? `${
|
|
2918
|
-
: `${
|
|
3002
|
+
? `${!(currentValue === null || currentValue === void 0 ? void 0 : currentValue.from) && (currentValue === null || currentValue === void 0 ? void 0 : currentValue.from) !== 0 ? 'Min' : decimalFormat(currentValue === null || currentValue === void 0 ? void 0 : currentValue.from)} - ${!(currentValue === null || currentValue === void 0 ? void 0 : currentValue.to) && (currentValue === null || currentValue === void 0 ? void 0 : currentValue.to) !== 0 ? 'Max' : decimalFormat(currentValue === null || currentValue === void 0 ? void 0 : currentValue.to)}`
|
|
3003
|
+
: `${!currentValue && currentValue !== 0 ? 'ALL' : decimalFormat(currentValue)}`;
|
|
2919
3004
|
return { selection };
|
|
2920
3005
|
}
|
|
2921
|
-
case
|
|
3006
|
+
case 'singlePicker': {
|
|
2922
3007
|
const view = props.dataSource.getView({}, forceUpdate);
|
|
2923
|
-
const item =
|
|
3008
|
+
const item = currentValue !== null && currentValue !== undefined && view.getById(currentValue, null);
|
|
2924
3009
|
if (!item) {
|
|
2925
3010
|
return { selection: i18n.filterToolbar.pickerInput.emptyValueCaption };
|
|
2926
3011
|
}
|
|
2927
|
-
const selection = item.isLoading ? React__namespace.default.createElement(TextPlaceholder, null) :
|
|
3012
|
+
const selection = item.isLoading ? React__namespace.default.createElement(TextPlaceholder, null) : props.getName ? props.getName(item.value) : item.value.name;
|
|
2928
3013
|
return { selection };
|
|
2929
3014
|
}
|
|
2930
|
-
case
|
|
2931
|
-
return { selection: currentValue ?
|
|
3015
|
+
case 'datePicker': {
|
|
3016
|
+
return { selection: currentValue ? dayjs_minExports(currentValue).format(props.format || defaultFormat) : i18n.filterToolbar.datePicker.placeholder };
|
|
2932
3017
|
}
|
|
2933
|
-
case
|
|
3018
|
+
case 'rangeDatePicker': {
|
|
2934
3019
|
if (!currentValue || (!currentValue.from && !currentValue.to)) {
|
|
2935
3020
|
return { selection: i18n.filterToolbar.rangeDatePicker.emptyPickerPlaceholder };
|
|
2936
3021
|
}
|
|
2937
|
-
const currentValueFrom = (currentValue === null || currentValue === void 0 ? void 0 : currentValue.from)
|
|
2938
|
-
|
|
3022
|
+
const currentValueFrom = (currentValue === null || currentValue === void 0 ? void 0 : currentValue.from)
|
|
3023
|
+
? dayjs_minExports(currentValue === null || currentValue === void 0 ? void 0 : currentValue.from).format(props.format || defaultFormat)
|
|
3024
|
+
: i18n.filterToolbar.rangeDatePicker.emptyPlaceholderFrom;
|
|
3025
|
+
const currentValueTo = (currentValue === null || currentValue === void 0 ? void 0 : currentValue.to)
|
|
3026
|
+
? dayjs_minExports(currentValue === null || currentValue === void 0 ? void 0 : currentValue.to).format(props.format || defaultFormat)
|
|
3027
|
+
: i18n.filterToolbar.rangeDatePicker.emptyPlaceholderTo;
|
|
2939
3028
|
const selection = `${currentValueFrom} - ${currentValueTo}`;
|
|
2940
3029
|
return { selection };
|
|
2941
3030
|
}
|
|
2942
3031
|
}
|
|
2943
3032
|
};
|
|
2944
|
-
const renderTarget = (dropdownProps) => (React__namespace.default.createElement(FilterPanelItemToggler, Object.assign({}, dropdownProps, getTogglerValue(), { title: props.title, predicateName: props.value ? predicateName : null, maxWidth:
|
|
2945
|
-
return (React__namespace.default.createElement(uuiComponents.Dropdown, { renderTarget: renderTarget, renderBody: renderBody, closeBodyOnTogglerHidden: !uuiCore.isMobile(), value: isOpen, onValueChange: isOpenChange, modifiers:
|
|
2946
|
-
}
|
|
3033
|
+
const renderTarget = (dropdownProps) => (React__namespace.default.createElement(FilterPanelItemToggler, Object.assign({}, dropdownProps, getTogglerValue(), { title: props.title, predicateName: props.value ? predicateName : null, maxWidth: props.type === 'datePicker' || props.type === 'rangeDatePicker' ? null : '300' })));
|
|
3034
|
+
return (React__namespace.default.createElement(uuiComponents.Dropdown, { renderTarget: renderTarget, renderBody: renderBody, closeBodyOnTogglerHidden: !uuiCore.isMobile(), value: isOpen, onValueChange: isOpenChange, modifiers: popperModifiers }));
|
|
3035
|
+
}
|
|
2947
3036
|
const FiltersPanelItem = React__namespace.default.memo(FiltersToolbarItemImpl);
|
|
2948
3037
|
|
|
2949
3038
|
var _path$b;
|
|
@@ -2970,7 +3059,7 @@ const normalizeFilterWithPredicates = (filter) => {
|
|
|
2970
3059
|
for (let n = 0; n < keys.length; n++) {
|
|
2971
3060
|
const key = keys[n];
|
|
2972
3061
|
const filterValue = filter[key];
|
|
2973
|
-
if (filterValue && typeof filterValue ===
|
|
3062
|
+
if (filterValue && typeof filterValue === 'object') {
|
|
2974
3063
|
if ('from' in filterValue && 'to' in filterValue) {
|
|
2975
3064
|
continue;
|
|
2976
3065
|
}
|
|
@@ -2986,11 +3075,11 @@ const normalizeFilterWithPredicates = (filter) => {
|
|
|
2986
3075
|
}
|
|
2987
3076
|
}
|
|
2988
3077
|
if ('notInRange' in filterValue) {
|
|
2989
|
-
if (!filterValue.notInRange.from && !filterValue.notInRange.to) {
|
|
3078
|
+
if (!filterValue.notInRange || (!filterValue.notInRange.from && !filterValue.notInRange.to)) {
|
|
2990
3079
|
delete filter[key];
|
|
2991
3080
|
}
|
|
2992
3081
|
}
|
|
2993
|
-
Object.keys(filterValue).forEach(predicate => {
|
|
3082
|
+
Object.keys(filterValue).forEach((predicate) => {
|
|
2994
3083
|
if (filterValue[predicate] === null || filterValue[predicate] === undefined) {
|
|
2995
3084
|
delete filter[key];
|
|
2996
3085
|
}
|
|
@@ -2999,20 +3088,20 @@ const normalizeFilterWithPredicates = (filter) => {
|
|
|
2999
3088
|
}
|
|
3000
3089
|
return result;
|
|
3001
3090
|
};
|
|
3002
|
-
|
|
3091
|
+
function FiltersToolbarImpl(props) {
|
|
3003
3092
|
const { filters, tableState, setTableState } = props;
|
|
3004
3093
|
const [newFilterId, setNewFilterId] = React.useState(null);
|
|
3005
3094
|
const dataSource = uuiCore.useArrayDataSource({
|
|
3006
3095
|
items: filters,
|
|
3007
|
-
getId: item => item.field,
|
|
3096
|
+
getId: (item) => item.field,
|
|
3008
3097
|
}, []);
|
|
3009
3098
|
const onFiltersChange = (filters) => {
|
|
3010
3099
|
var _a;
|
|
3011
3100
|
const newConfig = {};
|
|
3012
3101
|
const newFilter = {};
|
|
3013
|
-
const sortedOrders = tableState.filtersConfig && sortBy__default.default(tableState.filtersConfig, f => f === null || f === void 0 ? void 0 : f.order);
|
|
3102
|
+
const sortedOrders = tableState.filtersConfig && sortBy__default.default(tableState.filtersConfig, (f) => f === null || f === void 0 ? void 0 : f.order);
|
|
3014
3103
|
let order = (sortedOrders === null || sortedOrders === void 0 ? void 0 : sortedOrders.length) ? (_a = sortedOrders[sortedOrders.length - 1]) === null || _a === void 0 ? void 0 : _a.order : null;
|
|
3015
|
-
filters.forEach(filter => {
|
|
3104
|
+
filters.forEach((filter) => {
|
|
3016
3105
|
var _a, _b;
|
|
3017
3106
|
const newOrder = ((_b = (_a = tableState === null || tableState === void 0 ? void 0 : tableState.filtersConfig) === null || _a === void 0 ? void 0 : _a[filter === null || filter === void 0 ? void 0 : filter.field]) === null || _b === void 0 ? void 0 : _b.order) || uuiCore.getOrderBetween(order, null);
|
|
3018
3107
|
order = newOrder;
|
|
@@ -3038,15 +3127,15 @@ const FiltersToolbarImpl = (props) => {
|
|
|
3038
3127
|
};
|
|
3039
3128
|
const selectedFilters = React.useMemo(() => {
|
|
3040
3129
|
const filtersConfig = tableState.filtersConfig || {};
|
|
3041
|
-
return filters.filter(filter => {
|
|
3130
|
+
return filters.filter((filter) => {
|
|
3042
3131
|
return filter.isAlwaysVisible || (filtersConfig[filter === null || filter === void 0 ? void 0 : filter.field] ? filtersConfig[filter === null || filter === void 0 ? void 0 : filter.field].isVisible : false);
|
|
3043
3132
|
});
|
|
3044
3133
|
}, [tableState.filtersConfig, filters]);
|
|
3045
3134
|
const sortedActiveFilters = React.useMemo(() => {
|
|
3046
|
-
return sortBy__default.default(selectedFilters, f => { var _a, _b; return (_b = (_a = tableState.filtersConfig) === null || _a === void 0 ? void 0 : _a[f.field]) === null || _b === void 0 ? void 0 : _b.order; });
|
|
3135
|
+
return sortBy__default.default(selectedFilters, (f) => { var _a, _b; return (_b = (_a = tableState.filtersConfig) === null || _a === void 0 ? void 0 : _a[f.field]) === null || _b === void 0 ? void 0 : _b.order; });
|
|
3047
3136
|
}, [filters, tableState.filtersConfig]);
|
|
3048
3137
|
const renderAddFilterToggler = React.useCallback((props) => {
|
|
3049
|
-
return React__namespace.default.createElement(Button, { size: "36", onClick: props.onClick, ref: props.ref, caption: i18n.filterToolbar.addCaption, icon: ForwardRef$c, iconPosition: "left", mode: "ghost", color: "primary" });
|
|
3138
|
+
return (React__namespace.default.createElement(Button, { size: "36", onClick: props.onClick, ref: props.ref, caption: i18n.filterToolbar.addCaption, icon: ForwardRef$c, iconPosition: "left", mode: "ghost", color: "primary" }));
|
|
3050
3139
|
}, []);
|
|
3051
3140
|
const getRowOptions = React.useCallback((item) => ({
|
|
3052
3141
|
isDisabled: item.isAlwaysVisible,
|
|
@@ -3055,18 +3144,22 @@ const FiltersToolbarImpl = (props) => {
|
|
|
3055
3144
|
isDisabled: item.isAlwaysVisible,
|
|
3056
3145
|
},
|
|
3057
3146
|
}), []);
|
|
3147
|
+
const isAllFiltersAlwaysVisible = props.filters.every((i) => i.isAlwaysVisible);
|
|
3058
3148
|
React.useEffect(() => {
|
|
3059
3149
|
// Reset new filter id, after first render with autofocus
|
|
3060
3150
|
setNewFilterId(null);
|
|
3061
3151
|
}, [newFilterId]);
|
|
3062
3152
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
3063
|
-
sortedActiveFilters.map(f => {
|
|
3153
|
+
sortedActiveFilters.map((f) => {
|
|
3064
3154
|
var _a;
|
|
3065
3155
|
return (React__namespace.default.createElement(uuiComponents.FlexCell, { width: "auto", key: f.field },
|
|
3066
3156
|
React__namespace.default.createElement(FiltersPanelItem, Object.assign({}, f, { value: (_a = tableState.filter) === null || _a === void 0 ? void 0 : _a[f.field], onValueChange: handleFilterChange, key: f.field, autoFocus: newFilterId === f.field, removeFilter: removeFilter }))));
|
|
3067
3157
|
}),
|
|
3068
|
-
React__namespace.default.createElement(PickerInput, { dataSource: dataSource, value: selectedFilters, onValueChange: onFiltersChange, selectionMode: "multi", valueType: "entity", key: newFilterId, renderRow: (props) => React__namespace.default.createElement(DataPickerRow, Object.assign({}, props, { padding: "12", key: props.key, onCheck: (row) => {
|
|
3069
|
-
|
|
3158
|
+
!isAllFiltersAlwaysVisible && (React__namespace.default.createElement(PickerInput, { dataSource: dataSource, value: selectedFilters, onValueChange: onFiltersChange, selectionMode: "multi", valueType: "entity", key: newFilterId, renderRow: (props) => (React__namespace.default.createElement(DataPickerRow, Object.assign({}, props, { padding: "12", key: props.key, onCheck: (row) => {
|
|
3159
|
+
props.onCheck(row);
|
|
3160
|
+
!row.isChecked && setNewFilterId(row.value.field);
|
|
3161
|
+
}, renderItem: (item, rowProps) => React__namespace.default.createElement(PickerItem, Object.assign({}, rowProps, { title: item.title })) }))), getName: (i) => i.title, renderToggler: renderAddFilterToggler, emptyValue: [], getRowOptions: getRowOptions, fixedBodyPosition: true }))));
|
|
3162
|
+
}
|
|
3070
3163
|
const FiltersPanel = React__namespace.default.memo(FiltersToolbarImpl);
|
|
3071
3164
|
|
|
3072
3165
|
var css$e = {"divider":"PresetsPanel_divider__jIY7S","dropdownDeleteIcon":"PresetsPanel_dropdownDeleteIcon__58Nc7","presetsWrapper":"PresetsPanel_presetsWrapper__ssv3J","addPresetContainer":"PresetsPanel_addPresetContainer__SLcW-"};
|
|
@@ -3173,20 +3266,24 @@ var SvgActionDeleteforever18 = function SvgActionDeleteforever18(props, ref) {
|
|
|
3173
3266
|
};
|
|
3174
3267
|
var ForwardRef$6 = /*#__PURE__*/React.forwardRef(SvgActionDeleteforever18);
|
|
3175
3268
|
|
|
3176
|
-
|
|
3269
|
+
function PresetActionsDropdown(props) {
|
|
3177
3270
|
const { uuiNotifications } = uuiCore.useUuiContext();
|
|
3178
|
-
const copyUrlToClipboard = React.useCallback(() => __awaiter(
|
|
3271
|
+
const copyUrlToClipboard = React.useCallback(() => __awaiter(this, void 0, void 0, function* () {
|
|
3179
3272
|
yield navigator.clipboard.writeText(props.getPresetLink(props.preset));
|
|
3180
3273
|
successNotificationHandler('Link copied!');
|
|
3181
3274
|
}), []);
|
|
3182
|
-
const saveInCurrent = React.useCallback((preset) => __awaiter(
|
|
3275
|
+
const saveInCurrent = React.useCallback((preset) => __awaiter(this, void 0, void 0, function* () {
|
|
3183
3276
|
const newPreset = Object.assign(Object.assign({}, preset), { filter: props.tableState.filter, sorting: props.tableState.sorting, columnsConfig: props.tableState.columnsConfig, filtersConfig: props.tableState.filtersConfig, viewState: props.tableState.viewState });
|
|
3184
3277
|
yield props.updatePreset(newPreset);
|
|
3185
3278
|
successNotificationHandler('Changes saved!');
|
|
3186
|
-
}), [
|
|
3279
|
+
}), [
|
|
3280
|
+
props.tableState.filter, props.tableState.columnsConfig, props.tableState.filtersConfig,
|
|
3281
|
+
]);
|
|
3187
3282
|
const successNotificationHandler = React.useCallback((text) => {
|
|
3188
|
-
uuiNotifications
|
|
3189
|
-
React__namespace.default.createElement(
|
|
3283
|
+
uuiNotifications
|
|
3284
|
+
.show((props) => (React__namespace.default.createElement(SuccessNotification, Object.assign({}, props),
|
|
3285
|
+
React__namespace.default.createElement(Text, { size: "36", font: "regular", fontSize: "14" }, text))), { duration: 3 })
|
|
3286
|
+
.catch(() => null);
|
|
3190
3287
|
}, []);
|
|
3191
3288
|
const saveInCurrentHandler = React.useCallback(() => {
|
|
3192
3289
|
saveInCurrent(props.preset);
|
|
@@ -3197,46 +3294,46 @@ const PresetActionsDropdown = (props) => {
|
|
|
3197
3294
|
const duplicateHandler = React.useCallback(() => {
|
|
3198
3295
|
props.duplicatePreset(props.preset);
|
|
3199
3296
|
}, [props.preset]);
|
|
3200
|
-
const deleteHandler = React.useCallback(() => __awaiter(
|
|
3297
|
+
const deleteHandler = React.useCallback(() => __awaiter(this, void 0, void 0, function* () {
|
|
3201
3298
|
yield props.deletePreset(props.preset);
|
|
3202
|
-
}), [
|
|
3299
|
+
}), [
|
|
3300
|
+
props.activePresetId, props.deletePreset, props.preset,
|
|
3301
|
+
]);
|
|
3203
3302
|
const renderBody = () => {
|
|
3204
3303
|
const isReadonlyPreset = props.preset.isReadonly;
|
|
3205
3304
|
return (React__namespace.default.createElement(Panel, { shadow: true, cx: css$d.presetDropdownPanel },
|
|
3206
|
-
|
|
3207
|
-
React__namespace.default.createElement(
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
React__namespace.default.createElement(
|
|
3211
|
-
|
|
3212
|
-
React__namespace.default.createElement(
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$8, caption: "Rename", onClick: props.renamePreset })),
|
|
3305
|
+
props.activePresetId === props.preset.id && props.hasPresetChanged(props.preset) && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
3306
|
+
!isReadonlyPreset && (React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-save-in-current` },
|
|
3307
|
+
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$p, caption: "Save in current", onClick: saveInCurrentHandler }))),
|
|
3308
|
+
React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-save-as-new` },
|
|
3309
|
+
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$b, caption: "Save as new", onClick: props.addPreset })),
|
|
3310
|
+
React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-discard`, borderBottom: true },
|
|
3311
|
+
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$a, caption: "Discard all changes", onClick: discardAllChangesHandler })))),
|
|
3312
|
+
props.preset.id === props.activePresetId && !isReadonlyPreset && (React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-rename` },
|
|
3313
|
+
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$8, caption: "Rename", onClick: props.renamePreset }))),
|
|
3216
3314
|
React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-duplicate` },
|
|
3217
3315
|
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$9, caption: "Duplicate", onClick: duplicateHandler })),
|
|
3218
3316
|
React__namespace.default.createElement(FlexRow, { borderBottom: true, key: `${props.preset.id}-copyLink` },
|
|
3219
3317
|
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$7, caption: "Copy Link", onClick: copyUrlToClipboard })),
|
|
3220
|
-
!isReadonlyPreset && React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-delete`, cx: css$d.deleteRow },
|
|
3221
|
-
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$6, caption: "Delete", cx: css$d.deleteButton, onClick: deleteHandler }))));
|
|
3318
|
+
!isReadonlyPreset && (React__namespace.default.createElement(FlexRow, { key: `${props.preset.id}-delete`, cx: css$d.deleteRow },
|
|
3319
|
+
React__namespace.default.createElement(DropdownMenuButton, { icon: ForwardRef$6, caption: "Delete", cx: css$d.deleteButton, onClick: deleteHandler })))));
|
|
3222
3320
|
};
|
|
3223
3321
|
const renderTarget = React.useCallback((dropdownProps) => {
|
|
3224
|
-
return (React__namespace.default.createElement(IconButton, Object.assign({ cx: dropdownProps.isOpen && css$d.targetOpen, color: props.preset.id === props.activePresetId ? 'info' : 'default' }, dropdownProps, { icon: ForwardRef$
|
|
3322
|
+
return (React__namespace.default.createElement(IconButton, Object.assign({ cx: dropdownProps.isOpen && css$d.targetOpen, color: props.preset.id === props.activePresetId ? 'info' : 'default' }, dropdownProps, { icon: ForwardRef$q })));
|
|
3225
3323
|
}, []);
|
|
3226
|
-
return (React__namespace.default.createElement(
|
|
3227
|
-
|
|
3228
|
-
};
|
|
3324
|
+
return (React__namespace.default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end", modifiers: [{ name: 'offset', options: { offset: [0, 22] } }] }));
|
|
3325
|
+
}
|
|
3229
3326
|
|
|
3230
3327
|
var css$c = {"preset-input-cell":"PresetInput_preset-input-cell__PInCC","preset-input":"PresetInput_preset-input__vBBRA","presetInputCell":"PresetInput_preset-input-cell__PInCC","presetInput":"PresetInput_preset-input__vBBRA"};
|
|
3231
3328
|
|
|
3232
|
-
|
|
3329
|
+
function PresetInput(props) {
|
|
3233
3330
|
var _a;
|
|
3234
3331
|
const [presetCaption, setPresetCaption] = React.useState(((_a = props.preset) === null || _a === void 0 ? void 0 : _a.name) || '');
|
|
3235
3332
|
const cancelActionHandler = React.useCallback(() => {
|
|
3236
3333
|
setPresetCaption('');
|
|
3237
3334
|
props.onCancel();
|
|
3238
3335
|
}, [props.onCancel]);
|
|
3239
|
-
const acceptActionHandler = React.useCallback(() => __awaiter(
|
|
3336
|
+
const acceptActionHandler = React.useCallback(() => __awaiter(this, void 0, void 0, function* () {
|
|
3240
3337
|
if (presetCaption) {
|
|
3241
3338
|
yield props.onSuccess(presetCaption);
|
|
3242
3339
|
}
|
|
@@ -3250,11 +3347,11 @@ const PresetInput = (props) => {
|
|
|
3250
3347
|
}, [presetCaption.length, props.onCancel]);
|
|
3251
3348
|
return (React__namespace.default.createElement(FlexCell, { cx: css$c.presetInputCell, minWidth: 180 },
|
|
3252
3349
|
React__namespace.default.createElement(TextInput, { cx: css$c.presetInput, onValueChange: setPresetCaption, value: presetCaption, onCancel: cancelActionHandler, onAccept: acceptActionHandler, onBlur: newPresetOnBlurHandler, autoFocus: true })));
|
|
3253
|
-
}
|
|
3350
|
+
}
|
|
3254
3351
|
|
|
3255
3352
|
var css$b = {"preset":"Preset_preset__aitu-","activePreset":"Preset_activePreset__SFqmD"};
|
|
3256
3353
|
|
|
3257
|
-
|
|
3354
|
+
function Preset(props) {
|
|
3258
3355
|
const [isRenamePreset, setIsRenamePreset] = React.useState(false);
|
|
3259
3356
|
const choosePresetHandler = React.useCallback(() => props.choosePreset(props.preset), [props]);
|
|
3260
3357
|
const cancelRenamePreset = React.useCallback(() => {
|
|
@@ -3270,13 +3367,10 @@ const Preset = (props) => {
|
|
|
3270
3367
|
return props.updatePreset(newPreset);
|
|
3271
3368
|
}, [props.preset]);
|
|
3272
3369
|
const isPresetActive = props.activePresetId === props.preset.id;
|
|
3273
|
-
return (React__namespace.default.createElement(FlexCell, { key: props.preset.id, alignSelf:
|
|
3274
|
-
|
|
3275
|
-
:
|
|
3276
|
-
React__namespace.default.createElement(TabButton, { caption: props.preset.name, onClick: !isPresetActive && choosePresetHandler, cx: [css$b.preset, isPresetActive && css$b.activePreset], size: "60", withNotify: isPresetActive && props.hasPresetChanged(props.preset), icon: () => React__namespace.default.createElement(PresetActionsDropdown, Object.assign({ renamePreset: setPresetForRename }, props)), iconPosition: "right", isLinkActive: isPresetActive })));
|
|
3277
|
-
};
|
|
3370
|
+
return (React__namespace.default.createElement(FlexCell, { key: props.preset.id, alignSelf: "center", width: "auto" }, isRenamePreset ? (React__namespace.default.createElement(PresetInput, { onCancel: cancelRenamePreset, onSuccess: handlePresetRename, preset: props.preset })) : (React__namespace.default.createElement(TabButton, { caption: props.preset.name, onClick: !isPresetActive && choosePresetHandler, cx: [css$b.preset, isPresetActive && css$b.activePreset], size: "60", withNotify: isPresetActive && props.hasPresetChanged(props.preset), icon: () => React__namespace.default.createElement(PresetActionsDropdown, Object.assign({ renamePreset: setPresetForRename }, props)), iconPosition: "right", isLinkActive: isPresetActive }))));
|
|
3371
|
+
}
|
|
3278
3372
|
|
|
3279
|
-
|
|
3373
|
+
function PresetsPanel(props) {
|
|
3280
3374
|
const [isAddingPreset, setIsAddingPreset] = React.useState(false);
|
|
3281
3375
|
const setAddingPreset = React.useCallback(() => {
|
|
3282
3376
|
setIsAddingPreset(true);
|
|
@@ -3286,54 +3380,46 @@ const PresetsPanel = (props) => {
|
|
|
3286
3380
|
}, []);
|
|
3287
3381
|
const presetApi = __rest(props, ["presets"]);
|
|
3288
3382
|
const renderPreset = (preset) => {
|
|
3289
|
-
return
|
|
3383
|
+
return React__namespace.default.createElement(Preset, Object.assign({ key: preset.id, preset: preset, addPreset: setAddingPreset }, presetApi));
|
|
3290
3384
|
};
|
|
3291
3385
|
const renderAddPresetButton = React.useCallback(() => {
|
|
3292
|
-
return (React__namespace.default.createElement("div", { key:
|
|
3293
|
-
React__namespace.default.createElement(PresetInput, { onCancel: cancelAddingPreset, onSuccess: props.createNewPreset })));
|
|
3386
|
+
return (React__namespace.default.createElement("div", { key: "addingPresetBlock", className: css$e.addPresetContainer }, !isAddingPreset ? (React__namespace.default.createElement(Button, { size: "36", onClick: setAddingPreset, caption: i18n.presetPanel.addCaption, icon: ForwardRef$c, iconPosition: "left", mode: "ghost", color: "primary" })) : (React__namespace.default.createElement(PresetInput, { onCancel: cancelAddingPreset, onSuccess: props.createNewPreset }))));
|
|
3294
3387
|
}, [isAddingPreset]);
|
|
3295
3388
|
const onPresetDropdownSelect = (preset) => {
|
|
3296
3389
|
props.choosePreset(preset.preset);
|
|
3297
3390
|
props.updatePreset(preset.preset);
|
|
3298
3391
|
};
|
|
3299
3392
|
const renderMoreButtonDropdown = (item, hiddenItems) => {
|
|
3300
|
-
return (React__namespace.default.createElement(Dropdown, { renderTarget: (props) => React__namespace.default.createElement(FlexRow, null,
|
|
3393
|
+
return (React__namespace.default.createElement(Dropdown, { key: "more", renderTarget: (props) => (React__namespace.default.createElement(FlexRow, null,
|
|
3301
3394
|
React__namespace.default.createElement("div", { className: css$e.divider }),
|
|
3302
|
-
React__namespace.default.createElement(Button, Object.assign({ mode: "ghost", color:
|
|
3395
|
+
React__namespace.default.createElement(Button, Object.assign({ mode: "ghost", color: "secondary", caption: `${(hiddenItems === null || hiddenItems === void 0 ? void 0 : hiddenItems.length) || ''} more` }, props)))), renderBody: () => (React__namespace.default.createElement(DropdownContainer, { width: 230 }, hiddenItems.map((item) => (React__namespace.default.createElement(DropdownMenuButton, { key: item.preset.id, onClick: () => onPresetDropdownSelect(item), caption: item.preset.name, icon: !item.preset.isReadonly && ForwardRef$6, iconPosition: "right", cx: css$e.dropdownDeleteIcon, onIconClick: !item.preset.isReadonly && (() => props.deletePreset(item.preset)) }))))) }));
|
|
3303
3396
|
};
|
|
3304
3397
|
const getPresetPriority = (preset, index) => {
|
|
3305
3398
|
return preset.id === props.activePresetId ? 100499 : 1000 - index;
|
|
3306
3399
|
};
|
|
3307
3400
|
const getPanelItems = () => {
|
|
3308
3401
|
return [
|
|
3309
|
-
...sortBy__default.default(props.presets, (i) => i.order).map((preset, index) => ({
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3402
|
+
...sortBy__default.default(props.presets, (i) => i.order).map((preset, index) => ({
|
|
3403
|
+
id: preset.id.toString(),
|
|
3404
|
+
render: () => renderPreset(preset),
|
|
3405
|
+
priority: getPresetPriority(preset, index),
|
|
3406
|
+
preset: preset,
|
|
3407
|
+
})), {
|
|
3408
|
+
id: 'collapsedContainer', render: renderMoreButtonDropdown, priority: 100501, collapsedContainer: true,
|
|
3409
|
+
}, { id: 'addPreset', render: renderAddPresetButton, priority: 100501 },
|
|
3314
3410
|
];
|
|
3315
3411
|
};
|
|
3316
|
-
return (React__namespace.default.createElement(FlexCell, { grow: 1, minWidth: 310 },
|
|
3317
|
-
React__namespace.default.createElement(FlexRow, { size: null, spacing:
|
|
3412
|
+
return (React__namespace.default.createElement(FlexCell, { grow: 1, minWidth: 310, rawProps: props.rawProps },
|
|
3413
|
+
React__namespace.default.createElement(FlexRow, { size: null, spacing: "12", cx: css$e.presetsWrapper },
|
|
3318
3414
|
React__namespace.default.createElement(uuiComponents.AdaptivePanel, { items: getPanelItems() }))));
|
|
3319
|
-
}
|
|
3415
|
+
}
|
|
3320
3416
|
|
|
3321
3417
|
const defaultPredicates = {
|
|
3322
3418
|
numeric: [
|
|
3323
|
-
{ predicate: 'eq', name: '=', isDefault: true },
|
|
3324
|
-
{ predicate: 'neq', name: '≠' },
|
|
3325
|
-
{ predicate: 'lte', name: '≤' },
|
|
3326
|
-
{ predicate: 'gte', name: '≥' },
|
|
3327
|
-
{ predicate: 'inRange', name: 'In Range' },
|
|
3328
|
-
],
|
|
3329
|
-
multiPicker: [
|
|
3330
|
-
{ predicate: 'in', name: 'is', isDefault: true },
|
|
3331
|
-
{ predicate: 'nin', name: 'is not' },
|
|
3332
|
-
],
|
|
3333
|
-
rangeDatePicker: [
|
|
3334
|
-
{ predicate: 'inRange', name: 'In Range', isDefault: true },
|
|
3335
|
-
{ predicate: 'notInRange', name: 'Not in Range' },
|
|
3419
|
+
{ predicate: 'eq', name: '=', isDefault: true }, { predicate: 'neq', name: '≠' }, { predicate: 'lte', name: '≤' }, { predicate: 'gte', name: '≥' }, { predicate: 'inRange', name: 'In Range' },
|
|
3336
3420
|
],
|
|
3421
|
+
multiPicker: [{ predicate: 'in', name: 'is', isDefault: true }, { predicate: 'nin', name: 'is not' }],
|
|
3422
|
+
rangeDatePicker: [{ predicate: 'inRange', name: 'In Range', isDefault: true }, { predicate: 'notInRange', name: 'Not in Range' }],
|
|
3337
3423
|
};
|
|
3338
3424
|
|
|
3339
3425
|
var css$a = {"root":"MainMenu_root__39Kfw"};
|
|
@@ -3364,7 +3450,7 @@ var ForwardRef$5 = /*#__PURE__*/React.forwardRef(SvgGlobalMenu);
|
|
|
3364
3450
|
|
|
3365
3451
|
var css$9 = {"global-menu-btn":"GlobalMenu_global-menu-btn__QdXAw","globalMenuIcon":"GlobalMenu_globalMenuIcon__62mij","globalMenuBtn":"GlobalMenu_global-menu-btn__QdXAw"};
|
|
3366
3452
|
|
|
3367
|
-
const GlobalMenu = React__namespace.forwardRef((props, ref) => (React__namespace.createElement("
|
|
3453
|
+
const GlobalMenu = React__namespace.forwardRef((props, ref) => (React__namespace.createElement("button", Object.assign({ ref: ref, id: "global_menu_toggle", className: cx__default.default(css$9.globalMenuBtn, props.cx) }, props.rawProps),
|
|
3368
3454
|
React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$5, cx: css$9.globalMenuIcon }))));
|
|
3369
3455
|
|
|
3370
3456
|
var css$8 = {"root":"Burger_root__euW9D","burger-content":"Burger_burger-content__4ssSJ","burgerContent":"Burger_burger-content__4ssSJ"};
|
|
@@ -3436,12 +3522,8 @@ var ForwardRef$2 = /*#__PURE__*/React.forwardRef(SvgTriangle);
|
|
|
3436
3522
|
|
|
3437
3523
|
var css$7 = {"typography-header":"BurgerButton_typography-header__U1Ojg","typography-block":"BurgerButton_typography-block__-fzNQ","typography-inline":"BurgerButton_typography-inline__Q7e9n","typography-16":"BurgerButton_typography-16__yCkJk","typography-14":"BurgerButton_typography-14__Oe153","typography-12":"BurgerButton_typography-12__Lfcud","typography-promo":"BurgerButton_typography-promo__4LGMX BurgerButton_typography-header__U1Ojg BurgerButton_typography-block__-fzNQ BurgerButton_typography-inline__Q7e9n","root":"BurgerButton_root__FLwMS","button-primary":"BurgerButton_button-primary__CJHtP","button-secondary":"BurgerButton_button-secondary__6Aa0H","hasIcon":"BurgerButton_hasIcon__-Hrg6","dropdown":"BurgerButton_dropdown__TUqjg","typographyHeader":"BurgerButton_typography-header__U1Ojg","typographyBlock":"BurgerButton_typography-block__-fzNQ","typographyInline":"BurgerButton_typography-inline__Q7e9n","typography16":"BurgerButton_typography-16__yCkJk","typography14":"BurgerButton_typography-14__Oe153","typography12":"BurgerButton_typography-12__Lfcud","typographyPromo":"BurgerButton_typography-promo__4LGMX BurgerButton_typography-header__U1Ojg BurgerButton_typography-block__-fzNQ BurgerButton_typography-inline__Q7e9n","buttonPrimary":"BurgerButton_button-primary__CJHtP","buttonSecondary":"BurgerButton_button-secondary__6Aa0H"};
|
|
3438
3524
|
|
|
3439
|
-
const BurgerButton = uuiCore.withMods(uuiComponents.Button, props => [
|
|
3440
|
-
css$7.root,
|
|
3441
|
-
css$7['button-' + (props.type || 'primary')],
|
|
3442
|
-
css$7['indent-' + (props.indentLevel || 0)],
|
|
3443
|
-
props.isDropdown && css$7.dropdown,
|
|
3444
|
-
props.icon && css$7.hasIcon,
|
|
3525
|
+
const BurgerButton = uuiCore.withMods(uuiComponents.Button, (props) => [
|
|
3526
|
+
css$7.root, css$7['button-' + (props.type || 'primary')], css$7['indent-' + (props.indentLevel || 0)], props.isDropdown && css$7.dropdown, props.icon && css$7.hasIcon,
|
|
3445
3527
|
], () => ({ dropdownIcon: ForwardRef$2, dropdownIconPosition: 'left', role: 'menuitem' }));
|
|
3446
3528
|
|
|
3447
3529
|
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); }
|
|
@@ -3492,38 +3574,38 @@ var ForwardRef$1 = /*#__PURE__*/React.forwardRef(SvgMenuInputCancel);
|
|
|
3492
3574
|
|
|
3493
3575
|
var css$6 = {"search-input":"BurgerSearch_search-input__pTnno","searchInput":"BurgerSearch_search-input__pTnno"};
|
|
3494
3576
|
|
|
3495
|
-
|
|
3577
|
+
function BurgerSearch(props) {
|
|
3578
|
+
return (React__namespace.createElement(uuiComponents.TextInput, { cx: css$6.searchInput, iconPosition: "left", icon: ForwardRef$W, placeholder: props.placeholder, value: props.value, onValueChange: props.onValueChange, onCancel: props.onCancel, cancelIcon: props.value && ForwardRef$1, autoFocus: true }));
|
|
3579
|
+
}
|
|
3496
3580
|
|
|
3497
3581
|
var css$5 = {"group-header":"BurgerGroupHeader_group-header__3i4ay","group-name":"BurgerGroupHeader_group-name__szcRq","line":"BurgerGroupHeader_line__oAhHd","groupHeader":"BurgerGroupHeader_group-header__3i4ay","groupName":"BurgerGroupHeader_group-name__szcRq"};
|
|
3498
3582
|
|
|
3499
|
-
|
|
3583
|
+
function BurgerGroupHeader(props) {
|
|
3500
3584
|
return (React__namespace.createElement("div", { className: css$5.groupHeader },
|
|
3501
3585
|
React__namespace.createElement("hr", { className: css$5.line }),
|
|
3502
3586
|
React__namespace.createElement("span", { className: css$5.groupName }, props.caption)));
|
|
3503
|
-
}
|
|
3587
|
+
}
|
|
3504
3588
|
|
|
3505
|
-
var css$4 = {"container":"MainMenuAvatar_container__vT8rb","
|
|
3589
|
+
var css$4 = {"container":"MainMenuAvatar_container__vT8rb","open":"MainMenuAvatar_open__S2acz"};
|
|
3506
3590
|
|
|
3507
|
-
const MainMenuAvatar = React__namespace.forwardRef((props, ref) => (React__namespace.createElement("
|
|
3508
|
-
React__namespace.createElement(uuiComponents.Avatar, { size:
|
|
3591
|
+
const MainMenuAvatar = React__namespace.forwardRef((props, ref) => (React__namespace.createElement("button", { ref: ref, className: cx__default.default(css$4.container, props.isDropdown && css$4.dropdown, props.isOpen && css$4.open, props.onClick && uuiCore.uuiMarkers.clickable, props.cx), onClick: props.onClick },
|
|
3592
|
+
React__namespace.createElement(uuiComponents.Avatar, { size: "36", img: props.avatarUrl }),
|
|
3509
3593
|
props.icon && React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon }),
|
|
3510
3594
|
props.isDropdown && (React__namespace.createElement("div", null,
|
|
3511
|
-
React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$
|
|
3595
|
+
React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$10, flipY: props.isOpen }))))));
|
|
3512
3596
|
|
|
3513
3597
|
var css$3 = {"search-input":"MainMenuSearch_search-input__xTdYX","searchInput":"MainMenuSearch_search-input__xTdYX"};
|
|
3514
3598
|
|
|
3515
|
-
const MainMenuSearch = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(uuiCore.IEditableDebouncer, Object.assign({}, props, { render: iEditable => {
|
|
3599
|
+
const MainMenuSearch = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(uuiCore.IEditableDebouncer, Object.assign({}, props, { render: (iEditable) => {
|
|
3516
3600
|
var _a;
|
|
3517
|
-
return React__namespace.createElement(uuiComponents.TextInput, Object.assign({ iconPosition:
|
|
3601
|
+
return (React__namespace.createElement(uuiComponents.TextInput, Object.assign({ iconPosition: "left", icon: ForwardRef$W, cancelIcon: ((_a = props.value) === null || _a === void 0 ? void 0 : _a.length) > 0 && ForwardRef$1 }, props, iEditable, { ref: ref, cx: uuiCore.cx(css$3.searchInput, props.cx) }, props.rawProps)));
|
|
3518
3602
|
} }))));
|
|
3519
3603
|
|
|
3520
3604
|
var css$2 = {"container":"MainMenuIcon_container__s-83v"};
|
|
3521
3605
|
|
|
3522
3606
|
const MainMenuIcon = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(IconButton, Object.assign({ ref: ref, icon: props.icon, cx: uuiCore.cx(props.cx, css$2.container) }, props))));
|
|
3523
3607
|
|
|
3524
|
-
var css$1 = {"
|
|
3525
|
-
|
|
3526
|
-
var css = {"typography-header":"MainMenuButton_typography-header__pWBln","typography-block":"MainMenuButton_typography-block__yRJgj","typography-inline":"MainMenuButton_typography-inline__dABqt","typography-16":"MainMenuButton_typography-16__Qsux4","typography-14":"MainMenuButton_typography-14__Xy5hg","typography-12":"MainMenuButton_typography-12__QTtay","typography-promo":"MainMenuButton_typography-promo__8AGoE MainMenuButton_typography-header__pWBln MainMenuButton_typography-block__yRJgj MainMenuButton_typography-inline__dABqt","root":"MainMenuButton_root__182y5","type-primary":"MainMenuButton_type-primary__pzpis","type-secondary":"MainMenuButton_type-secondary__bUETW","typographyHeader":"MainMenuButton_typography-header__pWBln","typographyBlock":"MainMenuButton_typography-block__yRJgj","typographyInline":"MainMenuButton_typography-inline__dABqt","typography16":"MainMenuButton_typography-16__Qsux4","typography14":"MainMenuButton_typography-14__Xy5hg","typography12":"MainMenuButton_typography-12__QTtay","typographyPromo":"MainMenuButton_typography-promo__8AGoE MainMenuButton_typography-header__pWBln MainMenuButton_typography-block__yRJgj MainMenuButton_typography-inline__dABqt","typePrimary":"MainMenuButton_type-primary__pzpis","typeSecondary":"MainMenuButton_type-secondary__bUETW"};
|
|
3608
|
+
var css$1 = {"typography-header":"MainMenuButton_typography-header__pWBln","typography-block":"MainMenuButton_typography-block__yRJgj","typography-inline":"MainMenuButton_typography-inline__dABqt","typography-16":"MainMenuButton_typography-16__Qsux4","typography-14":"MainMenuButton_typography-14__Xy5hg","typography-12":"MainMenuButton_typography-12__QTtay","typography-promo":"MainMenuButton_typography-promo__8AGoE MainMenuButton_typography-header__pWBln MainMenuButton_typography-block__yRJgj MainMenuButton_typography-inline__dABqt","root":"MainMenuButton_root__182y5","type-primary":"MainMenuButton_type-primary__pzpis","type-secondary":"MainMenuButton_type-secondary__bUETW","typographyHeader":"MainMenuButton_typography-header__pWBln","typographyBlock":"MainMenuButton_typography-block__yRJgj","typographyInline":"MainMenuButton_typography-inline__dABqt","typography16":"MainMenuButton_typography-16__Qsux4","typography14":"MainMenuButton_typography-14__Xy5hg","typography12":"MainMenuButton_typography-12__QTtay","typographyPromo":"MainMenuButton_typography-promo__8AGoE MainMenuButton_typography-header__pWBln MainMenuButton_typography-block__yRJgj MainMenuButton_typography-inline__dABqt","typePrimary":"MainMenuButton_type-primary__pzpis","typeSecondary":"MainMenuButton_type-secondary__bUETW"};
|
|
3527
3609
|
|
|
3528
3610
|
var _path;
|
|
3529
3611
|
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); }
|
|
@@ -3541,80 +3623,82 @@ var SvgChevronDown24 = function SvgChevronDown24(props, ref) {
|
|
|
3541
3623
|
};
|
|
3542
3624
|
var ForwardRef = /*#__PURE__*/React.forwardRef(SvgChevronDown24);
|
|
3543
3625
|
|
|
3544
|
-
const MainMenuButton = uuiCore.withMods(uuiComponents.Button, mods => [
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
], () => ({ dropdownIcon: ForwardRef, role: 'menuitem' }));
|
|
3626
|
+
const MainMenuButton = uuiCore.withMods(uuiComponents.Button, (mods) => [css$1.root, css$1['type-' + (mods.type || 'primary')]], () => ({ dropdownIcon: ForwardRef, role: 'menuitem' }));
|
|
3627
|
+
|
|
3628
|
+
var css = {"dropdown-body":"MainMenuDropdown_dropdown-body__k9qxb","dropdownBody":"MainMenuDropdown_dropdown-body__k9qxb"};
|
|
3548
3629
|
|
|
3549
3630
|
class MainMenuDropdown extends React__namespace.Component {
|
|
3550
3631
|
render() {
|
|
3551
|
-
return (React__namespace.createElement(uuiComponents.Dropdown, { renderTarget: props => (React__namespace.createElement(MainMenuButton, Object.assign({ caption: this.props.caption }, props, { rawProps: this.props.rawProps, isLinkActive: this.props.isLinkActive, isDropdown: true }))), renderBody: props
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
item
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3632
|
+
return (React__namespace.createElement(uuiComponents.Dropdown, { renderTarget: (props) => (React__namespace.createElement(MainMenuButton, Object.assign({ caption: this.props.caption }, props, { rawProps: this.props.rawProps, isLinkActive: this.props.isLinkActive, isDropdown: true }))), renderBody: (props) => {
|
|
3633
|
+
return (React__namespace.createElement("div", { className: cx__default.default(css.dropdownBody) }, this.props.renderBody
|
|
3634
|
+
? this.props.renderBody(Object.assign({}, props))
|
|
3635
|
+
: React__namespace.Children.map(this.props.children, (item) => {
|
|
3636
|
+
if (!item)
|
|
3637
|
+
return item;
|
|
3638
|
+
return React__namespace.createElement(item.type, Object.assign(Object.assign({}, item.props), { onClick: item.props.onClick
|
|
3639
|
+
? () => {
|
|
3640
|
+
item.props.onClick();
|
|
3641
|
+
props.onClose();
|
|
3642
|
+
}
|
|
3643
|
+
: null }));
|
|
3644
|
+
})));
|
|
3645
|
+
}, placement: "bottom-start" }));
|
|
3559
3646
|
}
|
|
3560
3647
|
}
|
|
3561
3648
|
|
|
3562
|
-
|
|
3563
|
-
render() {
|
|
3564
|
-
let bodyContent;
|
|
3565
|
-
if (this.props.bodyContent) {
|
|
3566
|
-
bodyContent = React__namespace.createElement(Panel, { margin: '24' }, this.props.bodyContent);
|
|
3567
|
-
}
|
|
3568
|
-
return (React__namespace.createElement(ModalBlocker, Object.assign({}, this.props),
|
|
3569
|
-
React__namespace.createElement(ModalWindow, { width: 420 },
|
|
3570
|
-
React__namespace.createElement(ModalHeader, { borderBottom: true, title: this.props.caption, onClose: () => this.props.abort() }),
|
|
3571
|
-
React__namespace.createElement(ScrollBars, null, bodyContent),
|
|
3572
|
-
React__namespace.createElement(ModalFooter, null,
|
|
3573
|
-
React__namespace.createElement(FlexSpacer, null),
|
|
3574
|
-
this.props.hideCancelButton || React__namespace.createElement(Button, { caption: i18n.form.modals.discardButton, onClick: () => this.props.success(false), mode: 'outline', color: 'secondary' }),
|
|
3575
|
-
React__namespace.createElement(Button, { caption: i18n.form.modals.saveButton, onClick: () => this.props.success(true), color: 'accent' })))));
|
|
3576
|
-
}
|
|
3577
|
-
}
|
|
3649
|
+
const Anchor = uuiComponents.Anchor;
|
|
3578
3650
|
|
|
3579
3651
|
function Form(props) {
|
|
3580
3652
|
const context = uuiCore.useUuiContext();
|
|
3581
3653
|
const beforeLeave = () => {
|
|
3582
|
-
return context.uuiModals.show(modalProps => React__namespace.createElement(ConfirmationModal, Object.assign({ caption: i18n.form.modals.beforeLeaveMessage }, modalProps)));
|
|
3654
|
+
return context.uuiModals.show((modalProps) => React__namespace.createElement(ConfirmationModal, Object.assign({ caption: i18n.form.modals.beforeLeaveMessage }, modalProps)));
|
|
3583
3655
|
};
|
|
3584
3656
|
const loadUnsavedChanges = () => {
|
|
3585
|
-
return context.uuiNotifications
|
|
3657
|
+
return context.uuiNotifications
|
|
3658
|
+
.show((props) => (React__namespace.createElement(WarningNotification, Object.assign({}, props, { actions: [
|
|
3659
|
+
{
|
|
3586
3660
|
name: i18n.form.notifications.actionButtonCaption,
|
|
3587
3661
|
action: props.onSuccess,
|
|
3588
|
-
}
|
|
3662
|
+
},
|
|
3663
|
+
] }),
|
|
3589
3664
|
React__namespace.createElement(RichTextView, null,
|
|
3590
|
-
React__namespace.createElement(Text, { size: "36" }, i18n.form.notifications.unsavedChangesMessage))), { duration: 5, position: 'bot-left' })
|
|
3665
|
+
React__namespace.createElement(Text, { size: "36" }, i18n.form.notifications.unsavedChangesMessage)))), { duration: 5, position: 'bot-left' })
|
|
3666
|
+
.catch(() => null);
|
|
3591
3667
|
};
|
|
3592
|
-
return
|
|
3668
|
+
return React__namespace.createElement(uuiCore.Form, Object.assign({ loadUnsavedChanges: loadUnsavedChanges, beforeLeave: beforeLeave }, props));
|
|
3593
3669
|
}
|
|
3594
3670
|
|
|
3595
3671
|
function useForm(props) {
|
|
3596
3672
|
const context = uuiCore.useUuiContext();
|
|
3597
3673
|
const beforeLeave = () => {
|
|
3598
|
-
return context.uuiModals.show(modalProps =>
|
|
3674
|
+
return context.uuiModals.show((modalProps) => React__namespace.default.createElement(ConfirmationModal, Object.assign({ caption: i18n.form.modals.beforeLeaveMessage }, modalProps)));
|
|
3599
3675
|
};
|
|
3600
3676
|
const loadUnsavedChanges = () => {
|
|
3601
|
-
return context.uuiNotifications.show((props) => React__namespace.default.createElement(WarningNotification, Object.assign({}, props, { actions: [
|
|
3677
|
+
return context.uuiNotifications.show((props) => (React__namespace.default.createElement(WarningNotification, Object.assign({}, props, { actions: [
|
|
3678
|
+
{
|
|
3602
3679
|
name: i18n.form.notifications.actionButtonCaption,
|
|
3603
3680
|
action: props.onSuccess,
|
|
3604
|
-
}
|
|
3681
|
+
},
|
|
3682
|
+
] }),
|
|
3605
3683
|
React__namespace.default.createElement(RichTextView, null,
|
|
3606
|
-
React__namespace.default.createElement(Text, { size: "36" }, i18n.form.notifications.unsavedChangesMessage))), { duration: 5, position: 'bot-left' })
|
|
3684
|
+
React__namespace.default.createElement(Text, { size: "36" }, i18n.form.notifications.unsavedChangesMessage)))), { duration: 5, position: 'bot-left' });
|
|
3607
3685
|
};
|
|
3608
3686
|
return uuiCore.useForm(Object.assign({ beforeLeave, loadUnsavedChanges }, props));
|
|
3609
3687
|
}
|
|
3610
3688
|
|
|
3689
|
+
Object.defineProperty(exports, 'FlexSpacer', {
|
|
3690
|
+
enumerable: true,
|
|
3691
|
+
get: function () { return uuiComponents.FlexSpacer; }
|
|
3692
|
+
});
|
|
3611
3693
|
Object.defineProperty(exports, 'IconContainer', {
|
|
3612
3694
|
enumerable: true,
|
|
3613
3695
|
get: function () { return uuiComponents.IconContainer; }
|
|
3614
3696
|
});
|
|
3615
3697
|
exports.Accordion = Accordion;
|
|
3616
3698
|
exports.Alert = Alert;
|
|
3699
|
+
exports.Anchor = Anchor;
|
|
3617
3700
|
exports.Avatar = Avatar;
|
|
3701
|
+
exports.AvatarStack = AvatarStack;
|
|
3618
3702
|
exports.Badge = Badge;
|
|
3619
3703
|
exports.Blocker = Blocker;
|
|
3620
3704
|
exports.Burger = Burger;
|
|
@@ -3628,6 +3712,7 @@ exports.CheckboxGroup = CheckboxGroup;
|
|
|
3628
3712
|
exports.ClearNotification = ClearNotification;
|
|
3629
3713
|
exports.ColumnHeaderDropdown = ColumnHeaderDropdown;
|
|
3630
3714
|
exports.ColumnsConfigurationModal = ColumnsConfigurationModal;
|
|
3715
|
+
exports.ConfirmationModal = ConfirmationModal;
|
|
3631
3716
|
exports.ControlGroup = ControlGroup;
|
|
3632
3717
|
exports.DataPickerBody = DataPickerBody;
|
|
3633
3718
|
exports.DataPickerFooter = DataPickerFooter;
|
|
@@ -3655,7 +3740,6 @@ exports.FilterItemBody = FilterItemBody;
|
|
|
3655
3740
|
exports.FiltersPanel = FiltersPanel;
|
|
3656
3741
|
exports.FlexCell = FlexCell;
|
|
3657
3742
|
exports.FlexRow = FlexRow;
|
|
3658
|
-
exports.FlexSpacer = FlexSpacer;
|
|
3659
3743
|
exports.Form = Form;
|
|
3660
3744
|
exports.GlobalMenu = GlobalMenu;
|
|
3661
3745
|
exports.HintAlert = HintAlert;
|
|
@@ -3677,6 +3761,7 @@ exports.ModalWindow = ModalWindow;
|
|
|
3677
3761
|
exports.MultiSwitch = MultiSwitch;
|
|
3678
3762
|
exports.NotificationCard = NotificationCard;
|
|
3679
3763
|
exports.NumericInput = NumericInput;
|
|
3764
|
+
exports.Paginator = Paginator;
|
|
3680
3765
|
exports.Panel = Panel;
|
|
3681
3766
|
exports.PickerInput = PickerInput;
|
|
3682
3767
|
exports.PickerItem = PickerItem;
|
|
@@ -3712,6 +3797,7 @@ exports.allButtonColors = allButtonColors;
|
|
|
3712
3797
|
exports.allButtonModes = allButtonModes;
|
|
3713
3798
|
exports.allButtonSemanticColors = allButtonSemanticColors;
|
|
3714
3799
|
exports.allEpamBadgeSemanticColors = allEpamBadgeSemanticColors;
|
|
3800
|
+
exports.allFillStyles = allFillStyles;
|
|
3715
3801
|
exports.allFontStyles = allFontStyles;
|
|
3716
3802
|
exports.allIconColors = allIconColors;
|
|
3717
3803
|
exports.allRowSizes = allRowSizes;
|