@epam/uui 6.0.0-beta.0 → 6.0.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/styles/inputs.scss +4 -4
- package/components/buttons/Button.d.ts +1 -1
- package/components/buttons/Button.d.ts.map +1 -1
- package/components/buttons/LinkButton.d.ts +2 -2
- package/components/buttons/LinkButton.d.ts.map +1 -1
- package/components/buttons/TabButton.d.ts +2 -2
- package/components/buttons/TabButton.d.ts.map +1 -1
- package/components/datePickers/DatePicker.d.ts +21 -2
- package/components/datePickers/DatePicker.d.ts.map +1 -1
- package/components/datePickers/DatePickerBody.d.ts +2 -2
- package/components/datePickers/DatePickerBody.d.ts.map +1 -1
- package/components/datePickers/RangeDatePicker.d.ts +20 -3
- package/components/datePickers/RangeDatePicker.d.ts.map +1 -1
- package/components/datePickers/RangeDatePickerBody.d.ts +18 -6
- package/components/datePickers/RangeDatePickerBody.d.ts.map +1 -1
- package/components/datePickers/RangeDatePickerInput.d.ts +4 -8
- package/components/datePickers/RangeDatePickerInput.d.ts.map +1 -1
- package/components/datePickers/helpers.d.ts +1 -1
- package/components/datePickers/helpers.d.ts.map +1 -1
- package/components/datePickers/index.d.ts +0 -1
- package/components/datePickers/index.d.ts.map +1 -1
- package/components/datePickers/types.d.ts +5 -136
- package/components/datePickers/types.d.ts.map +1 -1
- package/components/fileUpload/FileCard.d.ts +2 -2
- package/components/fileUpload/FileCard.d.ts.map +1 -1
- package/components/fileUpload/SvgCircleProgress.d.ts +2 -2
- package/components/fileUpload/SvgCircleProgress.d.ts.map +1 -1
- package/components/filters/FilterNumericBody.d.ts.map +1 -1
- package/components/filters/FilterPanelItemToggler.d.ts +5 -4
- package/components/filters/FilterPanelItemToggler.d.ts.map +1 -1
- package/components/filters/FilterPickerBody.d.ts +1 -1
- 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 +2 -2
- package/components/filters/FiltersPanel.d.ts.map +1 -1
- package/components/filters/FiltersPanelItem.d.ts.map +1 -1
- package/components/filters/PresetPanel/Preset.d.ts +1 -1
- package/components/filters/PresetPanel/Preset.d.ts.map +1 -1
- package/components/filters/PresetPanel/PresetActionsDropdown.d.ts +1 -1
- package/components/filters/PresetPanel/PresetActionsDropdown.d.ts.map +1 -1
- package/components/filters/PresetPanel/PresetInput.d.ts +1 -1
- package/components/filters/PresetPanel/PresetInput.d.ts.map +1 -1
- package/components/filters/PresetPanel/PresetsPanel.d.ts +1 -1
- package/components/filters/PresetPanel/PresetsPanel.d.ts.map +1 -1
- package/components/filters/constants.d.ts +4 -0
- package/components/filters/constants.d.ts.map +1 -1
- package/components/inputs/MultiSwitch.d.ts +3 -3
- package/components/inputs/MultiSwitch.d.ts.map +1 -1
- package/components/inputs/Switch.d.ts +1 -1
- package/components/inputs/Switch.d.ts.map +1 -1
- package/components/inputs/TextInput.d.ts +2 -2
- package/components/inputs/TextInput.d.ts.map +1 -1
- package/components/inputs/timePicker/TimePicker.d.ts +3 -2
- package/components/inputs/timePicker/TimePicker.d.ts.map +1 -1
- package/components/layout/FlexItems/FlexRow.d.ts +1 -1
- package/components/layout/FlexItems/FlexRow.d.ts.map +1 -1
- package/components/layout/FlexItems/Panel.d.ts +1 -1
- package/components/layout/VirtualList.d.ts +3 -2
- package/components/layout/VirtualList.d.ts.map +1 -1
- package/components/navigation/Anchor.d.ts +1 -1
- package/components/navigation/Anchor.d.ts.map +1 -1
- package/components/navigation/MainMenu/Burger/BurgerButton.d.ts +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 +2 -2
- package/components/navigation/MainMenu/MainMenuAvatar.d.ts.map +1 -1
- package/components/navigation/MainMenu/MainMenuButton.d.ts +7 -2
- package/components/navigation/MainMenu/MainMenuButton.d.ts.map +1 -1
- package/components/navigation/MainMenu/MainMenuIcon.d.ts +8 -2
- package/components/navigation/MainMenu/MainMenuIcon.d.ts.map +1 -1
- package/components/navigation/MainMenu/MainMenuSearch.d.ts +2 -2
- package/components/navigation/MainMenu/MainMenuSearch.d.ts.map +1 -1
- package/components/overlays/Alert.d.ts +6 -6
- package/components/overlays/Alert.d.ts.map +1 -1
- package/components/overlays/DropdownMenu.d.ts +2 -2
- package/components/overlays/DropdownMenu.d.ts.map +1 -1
- package/components/overlays/NotificationCard.d.ts +7 -7
- package/components/overlays/NotificationCard.d.ts.map +1 -1
- package/components/overlays/Tooltip.d.ts +4 -1
- package/components/overlays/Tooltip.d.ts.map +1 -1
- package/components/pickers/DataPickerBody.d.ts +1 -2
- package/components/pickers/DataPickerBody.d.ts.map +1 -1
- package/components/pickers/DataPickerFooter.d.ts +1 -0
- package/components/pickers/DataPickerFooter.d.ts.map +1 -1
- package/components/pickers/DataPickerRow.d.ts.map +1 -1
- package/components/pickers/PickerInput.d.ts +6 -3
- package/components/pickers/PickerInput.d.ts.map +1 -1
- package/components/pickers/PickerToggler.d.ts +4 -1
- package/components/pickers/PickerToggler.d.ts.map +1 -1
- package/components/pickers/PickerTogglerTag.d.ts +1 -1
- package/components/pickers/PickerTogglerTag.d.ts.map +1 -1
- package/components/tables/ColumnHeaderDropdown/ColumnHeaderDropdown.d.ts.map +1 -1
- package/components/tables/DataRowsContainer/DataRowsContainer.d.ts +2 -2
- package/components/tables/DataRowsContainer/DataRowsContainer.d.ts.map +1 -1
- package/components/tables/DataRowsContainer/DataRowsGroups.d.ts +2 -2
- package/components/tables/DataRowsContainer/DataRowsGroups.d.ts.map +1 -1
- package/components/tables/DataTableCell.d.ts.map +1 -1
- package/components/widgets/Badge.d.ts +2 -2
- package/components/widgets/Badge.d.ts.map +1 -1
- package/components/widgets/CountIndicator.d.ts +2 -2
- package/components/widgets/CountIndicator.d.ts.map +1 -1
- package/components/widgets/IndeterminateBar.d.ts +2 -2
- package/components/widgets/IndeterminateBar.d.ts.map +1 -1
- package/components/widgets/IndicatorBar.d.ts +2 -2
- package/components/widgets/IndicatorBar.d.ts.map +1 -1
- package/components/widgets/StatusIndicator.d.ts +16 -3
- package/components/widgets/StatusIndicator.d.ts.map +1 -1
- package/components/widgets/Tag.d.ts +1 -1
- package/components/widgets/Tag.d.ts.map +1 -1
- package/i18n.d.ts +1 -0
- package/i18n.d.ts.map +1 -1
- package/index.esm.js +1333 -1329
- package/index.esm.js.map +1 -1
- package/index.js +1331 -1325
- package/index.js.map +1 -1
- package/package.json +7 -8
- package/settings.d.ts +40 -4
- package/settings.d.ts.map +1 -1
- package/stats.html +19 -1
- package/styles.css +1702 -1616
- package/styles.css.map +1 -1
package/index.js
CHANGED
|
@@ -4,6 +4,7 @@ var uuiComponents = require('@epam/uui-components');
|
|
|
4
4
|
var uuiCore = require('@epam/uui-core');
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var cx = require('classnames');
|
|
7
|
+
var react = require('@floating-ui/react');
|
|
7
8
|
var dayjs = require('dayjs');
|
|
8
9
|
var isSameOrBefore = require('dayjs/plugin/isSameOrBefore');
|
|
9
10
|
var isSameOrAfter = require('dayjs/plugin/isSameOrAfter');
|
|
@@ -51,24 +52,9 @@ var isoWeek__default = /*#__PURE__*/_interopDefault(isoWeek);
|
|
|
51
52
|
var isEqual__default = /*#__PURE__*/_interopDefault(isEqual);
|
|
52
53
|
var FocusLock__default = /*#__PURE__*/_interopDefault(FocusLock);
|
|
53
54
|
|
|
54
|
-
var _path$R;
|
|
55
|
-
function _extends$R() { return _extends$R = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$R.apply(null, arguments); }
|
|
56
|
-
var SvgNavigationCloseOutline = function SvgNavigationCloseOutline(props, ref) {
|
|
57
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$R({
|
|
58
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
59
|
-
width: 24,
|
|
60
|
-
height: 24,
|
|
61
|
-
viewBox: "0 0 24 24",
|
|
62
|
-
ref: ref
|
|
63
|
-
}, props), _path$R || (_path$R = /*#__PURE__*/React__namespace.createElement("path", {
|
|
64
|
-
d: "M6.4 19 5 17.6l5.6-5.6L5 6.4 6.4 5l5.6 5.6L17.6 5 19 6.4 13.4 12l5.6 5.6-1.4 1.4-5.6-5.6L6.4 19z"
|
|
65
|
-
})));
|
|
66
|
-
};
|
|
67
|
-
var ForwardRef$R = /*#__PURE__*/React.forwardRef(SvgNavigationCloseOutline);
|
|
68
|
-
|
|
69
55
|
var _path$Q;
|
|
70
56
|
function _extends$Q() { return _extends$Q = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$Q.apply(null, arguments); }
|
|
71
|
-
var
|
|
57
|
+
var SvgNavigationCloseOutline = function SvgNavigationCloseOutline(props, ref) {
|
|
72
58
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$Q({
|
|
73
59
|
xmlns: "http://www.w3.org/2000/svg",
|
|
74
60
|
width: 24,
|
|
@@ -76,14 +62,14 @@ var SvgNavigationChevronDownOutline = function SvgNavigationChevronDownOutline(p
|
|
|
76
62
|
viewBox: "0 0 24 24",
|
|
77
63
|
ref: ref
|
|
78
64
|
}, props), _path$Q || (_path$Q = /*#__PURE__*/React__namespace.createElement("path", {
|
|
79
|
-
d: "
|
|
65
|
+
d: "M6.4 19 5 17.6l5.6-5.6L5 6.4 6.4 5l5.6 5.6L17.6 5 19 6.4 13.4 12l5.6 5.6-1.4 1.4-5.6-5.6L6.4 19z"
|
|
80
66
|
})));
|
|
81
67
|
};
|
|
82
|
-
var ForwardRef$Q = /*#__PURE__*/React.forwardRef(
|
|
68
|
+
var ForwardRef$Q = /*#__PURE__*/React.forwardRef(SvgNavigationCloseOutline);
|
|
83
69
|
|
|
84
70
|
var _path$P;
|
|
85
71
|
function _extends$P() { return _extends$P = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$P.apply(null, arguments); }
|
|
86
|
-
var
|
|
72
|
+
var SvgNavigationChevronDownOutline = function SvgNavigationChevronDownOutline(props, ref) {
|
|
87
73
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$P({
|
|
88
74
|
xmlns: "http://www.w3.org/2000/svg",
|
|
89
75
|
width: 24,
|
|
@@ -91,14 +77,14 @@ var SvgNotificationDoneOutline = function SvgNotificationDoneOutline(props, ref)
|
|
|
91
77
|
viewBox: "0 0 24 24",
|
|
92
78
|
ref: ref
|
|
93
79
|
}, props), _path$P || (_path$P = /*#__PURE__*/React__namespace.createElement("path", {
|
|
94
|
-
d: "
|
|
80
|
+
d: "M5.414 8.086 4 9.5l8 8 8-8-1.414-1.414L12 14.672 5.414 8.086z"
|
|
95
81
|
})));
|
|
96
82
|
};
|
|
97
|
-
var ForwardRef$P = /*#__PURE__*/React.forwardRef(
|
|
83
|
+
var ForwardRef$P = /*#__PURE__*/React.forwardRef(SvgNavigationChevronDownOutline);
|
|
98
84
|
|
|
99
85
|
var _path$O;
|
|
100
86
|
function _extends$O() { return _extends$O = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$O.apply(null, arguments); }
|
|
101
|
-
var
|
|
87
|
+
var SvgNotificationDoneOutline = function SvgNotificationDoneOutline(props, ref) {
|
|
102
88
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$O({
|
|
103
89
|
xmlns: "http://www.w3.org/2000/svg",
|
|
104
90
|
width: 24,
|
|
@@ -106,14 +92,14 @@ var SvgContentMinusOutline = function SvgContentMinusOutline(props, ref) {
|
|
|
106
92
|
viewBox: "0 0 24 24",
|
|
107
93
|
ref: ref
|
|
108
94
|
}, props), _path$O || (_path$O = /*#__PURE__*/React__namespace.createElement("path", {
|
|
109
|
-
d: "
|
|
95
|
+
d: "m20.503 7.4-1.778-1.78-9.175 9.176-4.275-4.275L3.496 12.3l6.054 6.053L20.503 7.4z"
|
|
110
96
|
})));
|
|
111
97
|
};
|
|
112
|
-
var ForwardRef$O = /*#__PURE__*/React.forwardRef(
|
|
98
|
+
var ForwardRef$O = /*#__PURE__*/React.forwardRef(SvgNotificationDoneOutline);
|
|
113
99
|
|
|
114
100
|
var _path$N;
|
|
115
101
|
function _extends$N() { return _extends$N = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$N.apply(null, arguments); }
|
|
116
|
-
var
|
|
102
|
+
var SvgContentMinusOutline = function SvgContentMinusOutline(props, ref) {
|
|
117
103
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$N({
|
|
118
104
|
xmlns: "http://www.w3.org/2000/svg",
|
|
119
105
|
width: 24,
|
|
@@ -121,16 +107,14 @@ var SvgActionSearchOutline = function SvgActionSearchOutline(props, ref) {
|
|
|
121
107
|
viewBox: "0 0 24 24",
|
|
122
108
|
ref: ref
|
|
123
109
|
}, props), _path$N || (_path$N = /*#__PURE__*/React__namespace.createElement("path", {
|
|
124
|
-
|
|
125
|
-
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",
|
|
126
|
-
clipRule: "evenodd"
|
|
110
|
+
d: "M19 10.5H5v3h14v-3z"
|
|
127
111
|
})));
|
|
128
112
|
};
|
|
129
|
-
var ForwardRef$N = /*#__PURE__*/React.forwardRef(
|
|
113
|
+
var ForwardRef$N = /*#__PURE__*/React.forwardRef(SvgContentMinusOutline);
|
|
130
114
|
|
|
131
115
|
var _path$M;
|
|
132
116
|
function _extends$M() { return _extends$M = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$M.apply(null, arguments); }
|
|
133
|
-
var
|
|
117
|
+
var SvgActionSearchOutline = function SvgActionSearchOutline(props, ref) {
|
|
134
118
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$M({
|
|
135
119
|
xmlns: "http://www.w3.org/2000/svg",
|
|
136
120
|
width: 24,
|
|
@@ -138,14 +122,16 @@ var SvgActionCalendarFill = function SvgActionCalendarFill(props, ref) {
|
|
|
138
122
|
viewBox: "0 0 24 24",
|
|
139
123
|
ref: ref
|
|
140
124
|
}, props), _path$M || (_path$M = /*#__PURE__*/React__namespace.createElement("path", {
|
|
141
|
-
|
|
125
|
+
fillRule: "evenodd",
|
|
126
|
+
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",
|
|
127
|
+
clipRule: "evenodd"
|
|
142
128
|
})));
|
|
143
129
|
};
|
|
144
|
-
var ForwardRef$M = /*#__PURE__*/React.forwardRef(
|
|
130
|
+
var ForwardRef$M = /*#__PURE__*/React.forwardRef(SvgActionSearchOutline);
|
|
145
131
|
|
|
146
132
|
var _path$L;
|
|
147
133
|
function _extends$L() { return _extends$L = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$L.apply(null, arguments); }
|
|
148
|
-
var
|
|
134
|
+
var SvgActionCalendarFill = function SvgActionCalendarFill(props, ref) {
|
|
149
135
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$L({
|
|
150
136
|
xmlns: "http://www.w3.org/2000/svg",
|
|
151
137
|
width: 24,
|
|
@@ -153,14 +139,14 @@ var SvgNotificationInfoOutline = function SvgNotificationInfoOutline(props, ref)
|
|
|
153
139
|
viewBox: "0 0 24 24",
|
|
154
140
|
ref: ref
|
|
155
141
|
}, props), _path$L || (_path$L = /*#__PURE__*/React__namespace.createElement("path", {
|
|
156
|
-
d: "
|
|
142
|
+
d: "M5 22a1.93 1.93 0 0 1-1.413-.587A1.928 1.928 0 0 1 3 20V6c0-.55.196-1.02.587-1.412A1.927 1.927 0 0 1 5 4h1V2h2v2h8V2h2v2h1c.55 0 1.021.196 1.413.588.391.391.587.862.587 1.412v14a1.93 1.93 0 0 1-.587 1.413A1.928 1.928 0 0 1 19 22H5zm0-2h14V10H5v10z"
|
|
157
143
|
})));
|
|
158
144
|
};
|
|
159
|
-
var ForwardRef$L = /*#__PURE__*/React.forwardRef(
|
|
145
|
+
var ForwardRef$L = /*#__PURE__*/React.forwardRef(SvgActionCalendarFill);
|
|
160
146
|
|
|
161
147
|
var _path$K;
|
|
162
148
|
function _extends$K() { return _extends$K = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$K.apply(null, arguments); }
|
|
163
|
-
var
|
|
149
|
+
var SvgNotificationInfoOutline = function SvgNotificationInfoOutline(props, ref) {
|
|
164
150
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$K({
|
|
165
151
|
xmlns: "http://www.w3.org/2000/svg",
|
|
166
152
|
width: 24,
|
|
@@ -168,15 +154,30 @@ var SvgNotificationInfoFill = function SvgNotificationInfoFill(props, ref) {
|
|
|
168
154
|
viewBox: "0 0 24 24",
|
|
169
155
|
ref: ref
|
|
170
156
|
}, props), _path$K || (_path$K = /*#__PURE__*/React__namespace.createElement("path", {
|
|
171
|
-
d: "M11 17h2v-6h-2v6zm1-8a.968.968 0 0 0 .713-.288A.967.967 0 0 0 13 8a.97.97 0 0 0-.287-.713A.97.97 0 0 0 12 7a.967.967 0 0 0-.712.287A.968.968 0 0 0 11 8c0 .283.096.52.288.712A.965.965 0 0 0 12 9zm0 13a9.733 9.733 0 0 1-3.9-.788 10.092 10.092 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.733 9.733 0 0 1 2 12a9.74 9.74 0 0 1 .788-3.9 10.092 10.092 0 0 1 2.137-3.175c.9-.9 1.958-1.613 3.175-2.138A9.743 9.743 0 0 1 12 2a9.74 9.74 0 0 1 3.9.787 10.105 10.105 0 0 1 3.175 2.138c.9.9 1.612 1.958 2.137 3.175A9.733 9.733 0 0 1 22 12a9.733 9.733 0 0 1-.788 3.9 10.092 10.092 0 0 1-2.137 3.175c-.9.9-1.958 1.612-3.175 2.137A9.733 9.733 0 0 1 12
|
|
157
|
+
d: "M11 17h2v-6h-2v6zm1-8a.968.968 0 0 0 .713-.288A.967.967 0 0 0 13 8a.97.97 0 0 0-.287-.713A.97.97 0 0 0 12 7a.967.967 0 0 0-.712.287A.968.968 0 0 0 11 8c0 .283.096.52.288.712A.965.965 0 0 0 12 9zm0 13a9.733 9.733 0 0 1-3.9-.788 10.092 10.092 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.733 9.733 0 0 1 2 12a9.74 9.74 0 0 1 .788-3.9 10.092 10.092 0 0 1 2.137-3.175c.9-.9 1.958-1.613 3.175-2.138A9.743 9.743 0 0 1 12 2a9.74 9.74 0 0 1 3.9.787 10.105 10.105 0 0 1 3.175 2.138c.9.9 1.612 1.958 2.137 3.175A9.733 9.733 0 0 1 22 12a9.733 9.733 0 0 1-.788 3.9 10.092 10.092 0 0 1-2.137 3.175c-.9.9-1.958 1.612-3.175 2.137A9.733 9.733 0 0 1 12 22zm0-2c2.233 0 4.125-.775 5.675-2.325C19.225 16.125 20 14.233 20 12c0-2.233-.775-4.125-2.325-5.675C16.125 4.775 14.233 4 12 4c-2.233 0-4.125.775-5.675 2.325C4.775 7.875 4 9.767 4 12c0 2.233.775 4.125 2.325 5.675C7.875 19.225 9.767 20 12 20z"
|
|
172
158
|
})));
|
|
173
159
|
};
|
|
174
|
-
var ForwardRef$K = /*#__PURE__*/React.forwardRef(
|
|
160
|
+
var ForwardRef$K = /*#__PURE__*/React.forwardRef(SvgNotificationInfoOutline);
|
|
175
161
|
|
|
176
|
-
var _path$J
|
|
162
|
+
var _path$J;
|
|
177
163
|
function _extends$J() { return _extends$J = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$J.apply(null, arguments); }
|
|
178
|
-
var
|
|
164
|
+
var SvgNotificationInfoFill = function SvgNotificationInfoFill(props, ref) {
|
|
179
165
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$J({
|
|
166
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
167
|
+
width: 24,
|
|
168
|
+
height: 24,
|
|
169
|
+
viewBox: "0 0 24 24",
|
|
170
|
+
ref: ref
|
|
171
|
+
}, props), _path$J || (_path$J = /*#__PURE__*/React__namespace.createElement("path", {
|
|
172
|
+
d: "M11 17h2v-6h-2v6zm1-8a.968.968 0 0 0 .713-.288A.967.967 0 0 0 13 8a.97.97 0 0 0-.287-.713A.97.97 0 0 0 12 7a.967.967 0 0 0-.712.287A.968.968 0 0 0 11 8c0 .283.096.52.288.712A.965.965 0 0 0 12 9zm0 13a9.733 9.733 0 0 1-3.9-.788 10.092 10.092 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.733 9.733 0 0 1 2 12a9.74 9.74 0 0 1 .788-3.9 10.092 10.092 0 0 1 2.137-3.175c.9-.9 1.958-1.613 3.175-2.138A9.743 9.743 0 0 1 12 2a9.74 9.74 0 0 1 3.9.787 10.105 10.105 0 0 1 3.175 2.138c.9.9 1.612 1.958 2.137 3.175A9.733 9.733 0 0 1 22 12a9.733 9.733 0 0 1-.788 3.9 10.092 10.092 0 0 1-2.137 3.175c-.9.9-1.958 1.612-3.175 2.137A9.733 9.733 0 0 1 12 22z"
|
|
173
|
+
})));
|
|
174
|
+
};
|
|
175
|
+
var ForwardRef$J = /*#__PURE__*/React.forwardRef(SvgNotificationInfoFill);
|
|
176
|
+
|
|
177
|
+
var _path$I, _path2$5, _path3, _path4, _path5, _path6, _g, _path7, _path8, _path9, _path10, _path11, _path12, _path13, _path14, _path15, _path16, _path17, _path18, _path19, _path20, _path21, _path22, _path23, _path24, _defs;
|
|
178
|
+
function _extends$I() { return _extends$I = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$I.apply(null, arguments); }
|
|
179
|
+
var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
180
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$I({
|
|
180
181
|
width: 232,
|
|
181
182
|
height: 180,
|
|
182
183
|
viewBox: "0 0 232 180",
|
|
@@ -184,8 +185,8 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
184
185
|
xmlns: "http://www.w3.org/2000/svg",
|
|
185
186
|
ref: ref
|
|
186
187
|
}, props), /*#__PURE__*/React__namespace.createElement("g", {
|
|
187
|
-
clipPath: "url(#
|
|
188
|
-
}, _path$
|
|
188
|
+
clipPath: "url(#vlifuwbwm1riwzq89_a)"
|
|
189
|
+
}, _path$I || (_path$I = /*#__PURE__*/React__namespace.createElement("path", {
|
|
189
190
|
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",
|
|
190
191
|
fill: "#F5F6FA"
|
|
191
192
|
})), _path2$5 || (_path2$5 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -205,7 +206,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
205
206
|
d: "M86.786 22.982c-2.55 0-4.965 2.07-4.965 4.552V120.6c0 2.484 2.4 4.572 4.965 4.572h88.101c2.582 0 4.986-2.089 4.986-4.572V27.534c0-2.464-2.418-4.552-4.986-4.552h-88.1Zm-5.793 4.552c0-3.022 2.874-5.38 5.793-5.38h88.101c2.935 0 5.814 2.374 5.814 5.38V120.6c0 3.021-2.86 5.4-5.814 5.4h-88.1c-2.94 0-5.794-2.381-5.794-5.4V27.534Z",
|
|
206
207
|
fill: "#1D1E26"
|
|
207
208
|
})), /*#__PURE__*/React__namespace.createElement("mask", {
|
|
208
|
-
id: "
|
|
209
|
+
id: "vlifuwynnbkdxm6mq_b",
|
|
209
210
|
style: {
|
|
210
211
|
maskType: "alpha"
|
|
211
212
|
},
|
|
@@ -218,7 +219,7 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
218
219
|
d: "M174.887 125.586h-88.1c-2.752 0-5.38-2.234-5.38-4.986V27.534c0-2.752 2.644-4.966 5.38-4.966h88.1c2.752 0 5.4 2.23 5.4 4.966V120.6c0 2.752-2.632 4.986-5.4 4.986Z",
|
|
219
220
|
fill: "#9BDEFF"
|
|
220
221
|
}))), _g || (_g = /*#__PURE__*/React__namespace.createElement("g", {
|
|
221
|
-
mask: "url(#
|
|
222
|
+
mask: "url(#vlifuwynnbkdxm6mq_b)",
|
|
222
223
|
fillRule: "evenodd",
|
|
223
224
|
clipRule: "evenodd"
|
|
224
225
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -304,33 +305,18 @@ var SvgEmptyTable = function SvgEmptyTable(props, ref) {
|
|
|
304
305
|
d: "M24.73 96.184a.414.414 0 0 1 .581.06l48.646 59.751a.413.413 0 1 1-.642.523L24.67 96.766a.414.414 0 0 1 .06-.582Z",
|
|
305
306
|
fill: "#fff"
|
|
306
307
|
}))), _defs || (_defs = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
307
|
-
id: "
|
|
308
|
+
id: "vlifuwbwm1riwzq89_a"
|
|
308
309
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
309
310
|
fill: "#fff",
|
|
310
311
|
transform: "translate(.552)",
|
|
311
312
|
d: "M0 0h230.897v180H0z"
|
|
312
313
|
})))));
|
|
313
314
|
};
|
|
314
|
-
var ForwardRef$
|
|
315
|
-
|
|
316
|
-
var _path$I;
|
|
317
|
-
function _extends$I() { return _extends$I = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$I.apply(null, arguments); }
|
|
318
|
-
var SvgTableSortAscOutline = function SvgTableSortAscOutline(props, ref) {
|
|
319
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$I({
|
|
320
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
321
|
-
width: 24,
|
|
322
|
-
height: 24,
|
|
323
|
-
viewBox: "0 0 24 24",
|
|
324
|
-
ref: ref
|
|
325
|
-
}, props), _path$I || (_path$I = /*#__PURE__*/React__namespace.createElement("path", {
|
|
326
|
-
d: "M11 21V6.825L9.4 8.4 8 7l4-4 4 4-1.4 1.4L13 6.825V21h-2z"
|
|
327
|
-
})));
|
|
328
|
-
};
|
|
329
|
-
var ForwardRef$I = /*#__PURE__*/React.forwardRef(SvgTableSortAscOutline);
|
|
315
|
+
var ForwardRef$I = /*#__PURE__*/React.forwardRef(SvgEmptyTable);
|
|
330
316
|
|
|
331
317
|
var _path$H;
|
|
332
318
|
function _extends$H() { return _extends$H = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$H.apply(null, arguments); }
|
|
333
|
-
var
|
|
319
|
+
var SvgTableSortAscOutline = function SvgTableSortAscOutline(props, ref) {
|
|
334
320
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$H({
|
|
335
321
|
xmlns: "http://www.w3.org/2000/svg",
|
|
336
322
|
width: 24,
|
|
@@ -338,14 +324,14 @@ var SvgTableSortDescOutline = function SvgTableSortDescOutline(props, ref) {
|
|
|
338
324
|
viewBox: "0 0 24 24",
|
|
339
325
|
ref: ref
|
|
340
326
|
}, props), _path$H || (_path$H = /*#__PURE__*/React__namespace.createElement("path", {
|
|
341
|
-
d: "
|
|
327
|
+
d: "M11 21V6.825L9.4 8.4 8 7l4-4 4 4-1.4 1.4L13 6.825V21h-2z"
|
|
342
328
|
})));
|
|
343
329
|
};
|
|
344
|
-
var ForwardRef$H = /*#__PURE__*/React.forwardRef(
|
|
330
|
+
var ForwardRef$H = /*#__PURE__*/React.forwardRef(SvgTableSortAscOutline);
|
|
345
331
|
|
|
346
332
|
var _path$G;
|
|
347
333
|
function _extends$G() { return _extends$G = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$G.apply(null, arguments); }
|
|
348
|
-
var
|
|
334
|
+
var SvgTableSortDescOutline = function SvgTableSortDescOutline(props, ref) {
|
|
349
335
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$G({
|
|
350
336
|
xmlns: "http://www.w3.org/2000/svg",
|
|
351
337
|
width: 24,
|
|
@@ -353,14 +339,14 @@ var SvgActionDragIndicatorOutline = function SvgActionDragIndicatorOutline(props
|
|
|
353
339
|
viewBox: "0 0 24 24",
|
|
354
340
|
ref: ref
|
|
355
341
|
}, props), _path$G || (_path$G = /*#__PURE__*/React__namespace.createElement("path", {
|
|
356
|
-
d: "
|
|
342
|
+
d: "M13 3v14.175l1.6-1.575L16 17l-4 4-4-4 1.4-1.4 1.6 1.575V3h2z"
|
|
357
343
|
})));
|
|
358
344
|
};
|
|
359
|
-
var ForwardRef$G = /*#__PURE__*/React.forwardRef(
|
|
345
|
+
var ForwardRef$G = /*#__PURE__*/React.forwardRef(SvgTableSortDescOutline);
|
|
360
346
|
|
|
361
347
|
var _path$F;
|
|
362
348
|
function _extends$F() { return _extends$F = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$F.apply(null, arguments); }
|
|
363
|
-
var
|
|
349
|
+
var SvgActionDragIndicatorOutline = function SvgActionDragIndicatorOutline(props, ref) {
|
|
364
350
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$F({
|
|
365
351
|
xmlns: "http://www.w3.org/2000/svg",
|
|
366
352
|
width: 24,
|
|
@@ -368,16 +354,14 @@ var SvgNavigationMoreVertOutline = function SvgNavigationMoreVertOutline(props,
|
|
|
368
354
|
viewBox: "0 0 24 24",
|
|
369
355
|
ref: ref
|
|
370
356
|
}, props), _path$F || (_path$F = /*#__PURE__*/React__namespace.createElement("path", {
|
|
371
|
-
|
|
372
|
-
d: "M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",
|
|
373
|
-
clipRule: "evenodd"
|
|
357
|
+
d: "M9 20c-.55 0-1.02-.196-1.412-.587A1.927 1.927 0 0 1 7 18c0-.55.196-1.021.588-1.413A1.925 1.925 0 0 1 9 16c.55 0 1.021.196 1.413.587.391.392.587.863.587 1.413s-.196 1.021-.587 1.413A1.928 1.928 0 0 1 9 20zm6 0c-.55 0-1.02-.196-1.412-.587A1.927 1.927 0 0 1 13 18c0-.55.196-1.021.588-1.413A1.925 1.925 0 0 1 15 16c.55 0 1.021.196 1.413.587.391.392.587.863.587 1.413s-.196 1.021-.587 1.413A1.928 1.928 0 0 1 15 20zm-6-6c-.55 0-1.02-.196-1.412-.588A1.923 1.923 0 0 1 7 12c0-.55.196-1.021.588-1.413A1.925 1.925 0 0 1 9 10c.55 0 1.021.196 1.413.587.391.392.587.863.587 1.413s-.196 1.02-.587 1.412A1.927 1.927 0 0 1 9 14zm6 0c-.55 0-1.02-.196-1.412-.588A1.923 1.923 0 0 1 13 12c0-.55.196-1.021.588-1.413A1.925 1.925 0 0 1 15 10c.55 0 1.021.196 1.413.587.391.392.587.863.587 1.413s-.196 1.02-.587 1.412A1.927 1.927 0 0 1 15 14zM9 8c-.55 0-1.02-.196-1.412-.588A1.923 1.923 0 0 1 7 6c0-.55.196-1.02.588-1.412A1.923 1.923 0 0 1 9 4c.55 0 1.021.196 1.413.588.391.391.587.862.587 1.412 0 .55-.196 1.02-.587 1.412A1.927 1.927 0 0 1 9 8zm6 0c-.55 0-1.02-.196-1.412-.588A1.923 1.923 0 0 1 13 6c0-.55.196-1.02.588-1.412A1.923 1.923 0 0 1 15 4c.55 0 1.021.196 1.413.588.391.391.587.862.587 1.412 0 .55-.196 1.02-.587 1.412A1.927 1.927 0 0 1 15 8z"
|
|
374
358
|
})));
|
|
375
359
|
};
|
|
376
|
-
var ForwardRef$F = /*#__PURE__*/React.forwardRef(
|
|
360
|
+
var ForwardRef$F = /*#__PURE__*/React.forwardRef(SvgActionDragIndicatorOutline);
|
|
377
361
|
|
|
378
362
|
var _path$E;
|
|
379
363
|
function _extends$E() { return _extends$E = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$E.apply(null, arguments); }
|
|
380
|
-
var
|
|
364
|
+
var SvgNavigationMoreVertOutline = function SvgNavigationMoreVertOutline(props, ref) {
|
|
381
365
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$E({
|
|
382
366
|
xmlns: "http://www.w3.org/2000/svg",
|
|
383
367
|
width: 24,
|
|
@@ -385,14 +369,16 @@ var SvgNavigationRefreshOutline = function SvgNavigationRefreshOutline(props, re
|
|
|
385
369
|
viewBox: "0 0 24 24",
|
|
386
370
|
ref: ref
|
|
387
371
|
}, props), _path$E || (_path$E = /*#__PURE__*/React__namespace.createElement("path", {
|
|
388
|
-
|
|
372
|
+
fillRule: "evenodd",
|
|
373
|
+
d: "M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",
|
|
374
|
+
clipRule: "evenodd"
|
|
389
375
|
})));
|
|
390
376
|
};
|
|
391
|
-
var ForwardRef$E = /*#__PURE__*/React.forwardRef(
|
|
377
|
+
var ForwardRef$E = /*#__PURE__*/React.forwardRef(SvgNavigationMoreVertOutline);
|
|
392
378
|
|
|
393
379
|
var _path$D;
|
|
394
380
|
function _extends$D() { return _extends$D = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$D.apply(null, arguments); }
|
|
395
|
-
var
|
|
381
|
+
var SvgNavigationRefreshOutline = function SvgNavigationRefreshOutline(props, ref) {
|
|
396
382
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$D({
|
|
397
383
|
xmlns: "http://www.w3.org/2000/svg",
|
|
398
384
|
width: 24,
|
|
@@ -400,16 +386,14 @@ var SvgActionLockFill = function SvgActionLockFill(props, ref) {
|
|
|
400
386
|
viewBox: "0 0 24 24",
|
|
401
387
|
ref: ref
|
|
402
388
|
}, props), _path$D || (_path$D = /*#__PURE__*/React__namespace.createElement("path", {
|
|
403
|
-
|
|
404
|
-
d: "M12 18a2 2 0 1 0 0-4 2 2 0 0 0 0 4zM7 9V7a5 5 0 0 1 10 0v2h1a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V11a2 2 0 0 1 2-2h1zm2 0h6V7a3 3 0 1 0-6 0v2z",
|
|
405
|
-
clipRule: "evenodd"
|
|
389
|
+
d: "M12 20c-2.233 0-4.125-.775-5.675-2.325C4.775 16.125 4 14.233 4 12c0-2.233.775-4.125 2.325-5.675C7.875 4.775 9.767 4 12 4c1.15 0 2.25.238 3.3.713A7.617 7.617 0 0 1 18 6.75V4h2v7h-7V9h4.2a5.837 5.837 0 0 0-2.187-2.2A5.93 5.93 0 0 0 12 6c-1.667 0-3.083.583-4.25 1.75C6.583 8.917 6 10.333 6 12c0 1.667.583 3.083 1.75 4.25C8.917 17.417 10.333 18 12 18a5.863 5.863 0 0 0 3.475-1.1A5.81 5.81 0 0 0 17.65 14h2.1c-.467 1.767-1.417 3.208-2.85 4.325S13.833 20 12 20z"
|
|
406
390
|
})));
|
|
407
391
|
};
|
|
408
|
-
var ForwardRef$D = /*#__PURE__*/React.forwardRef(
|
|
392
|
+
var ForwardRef$D = /*#__PURE__*/React.forwardRef(SvgNavigationRefreshOutline);
|
|
409
393
|
|
|
410
|
-
var _path$C
|
|
394
|
+
var _path$C;
|
|
411
395
|
function _extends$C() { return _extends$C = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$C.apply(null, arguments); }
|
|
412
|
-
var
|
|
396
|
+
var SvgActionLockFill = function SvgActionLockFill(props, ref) {
|
|
413
397
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$C({
|
|
414
398
|
xmlns: "http://www.w3.org/2000/svg",
|
|
415
399
|
width: 24,
|
|
@@ -417,18 +401,16 @@ var SvgTableGroupColumnLeftFill = function SvgTableGroupColumnLeftFill(props, re
|
|
|
417
401
|
viewBox: "0 0 24 24",
|
|
418
402
|
ref: ref
|
|
419
403
|
}, props), _path$C || (_path$C = /*#__PURE__*/React__namespace.createElement("path", {
|
|
420
|
-
d: "M5 3a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6V3H5z"
|
|
421
|
-
})), _path2$4 || (_path2$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
422
404
|
fillRule: "evenodd",
|
|
423
|
-
d: "
|
|
405
|
+
d: "M12 18a2 2 0 1 0 0-4 2 2 0 0 0 0 4zM7 9V7a5 5 0 0 1 10 0v2h1a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V11a2 2 0 0 1 2-2h1zm2 0h6V7a3 3 0 1 0-6 0v2z",
|
|
424
406
|
clipRule: "evenodd"
|
|
425
407
|
})));
|
|
426
408
|
};
|
|
427
|
-
var ForwardRef$C = /*#__PURE__*/React.forwardRef(
|
|
409
|
+
var ForwardRef$C = /*#__PURE__*/React.forwardRef(SvgActionLockFill);
|
|
428
410
|
|
|
429
|
-
var _path$B, _path2$
|
|
411
|
+
var _path$B, _path2$4;
|
|
430
412
|
function _extends$B() { return _extends$B = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$B.apply(null, arguments); }
|
|
431
|
-
var
|
|
413
|
+
var SvgTableGroupColumnLeftFill = function SvgTableGroupColumnLeftFill(props, ref) {
|
|
432
414
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$B({
|
|
433
415
|
xmlns: "http://www.w3.org/2000/svg",
|
|
434
416
|
width: 24,
|
|
@@ -436,18 +418,18 @@ var SvgTableGroupColumnRightFill = function SvgTableGroupColumnRightFill(props,
|
|
|
436
418
|
viewBox: "0 0 24 24",
|
|
437
419
|
ref: ref
|
|
438
420
|
}, props), _path$B || (_path$B = /*#__PURE__*/React__namespace.createElement("path", {
|
|
439
|
-
d: "
|
|
440
|
-
})), _path2$
|
|
421
|
+
d: "M5 3a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6V3H5z"
|
|
422
|
+
})), _path2$4 || (_path2$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
441
423
|
fillRule: "evenodd",
|
|
442
|
-
d: "
|
|
424
|
+
d: "M13 21V3h6a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-6zm2-16h4v14h-4V5z",
|
|
443
425
|
clipRule: "evenodd"
|
|
444
426
|
})));
|
|
445
427
|
};
|
|
446
|
-
var ForwardRef$B = /*#__PURE__*/React.forwardRef(
|
|
428
|
+
var ForwardRef$B = /*#__PURE__*/React.forwardRef(SvgTableGroupColumnLeftFill);
|
|
447
429
|
|
|
448
|
-
var _path$A;
|
|
430
|
+
var _path$A, _path2$3;
|
|
449
431
|
function _extends$A() { return _extends$A = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$A.apply(null, arguments); }
|
|
450
|
-
var
|
|
432
|
+
var SvgTableGroupColumnRightFill = function SvgTableGroupColumnRightFill(props, ref) {
|
|
451
433
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$A({
|
|
452
434
|
xmlns: "http://www.w3.org/2000/svg",
|
|
453
435
|
width: 24,
|
|
@@ -455,14 +437,18 @@ var SvgTableSwapOutline = function SvgTableSwapOutline(props, ref) {
|
|
|
455
437
|
viewBox: "0 0 24 24",
|
|
456
438
|
ref: ref
|
|
457
439
|
}, props), _path$A || (_path$A = /*#__PURE__*/React__namespace.createElement("path", {
|
|
458
|
-
d: "
|
|
440
|
+
d: "M13 3h6a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-6V3z"
|
|
441
|
+
})), _path2$3 || (_path2$3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
442
|
+
fillRule: "evenodd",
|
|
443
|
+
d: "M9 5H5v14h4V5zM5 3a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6V3H5z",
|
|
444
|
+
clipRule: "evenodd"
|
|
459
445
|
})));
|
|
460
446
|
};
|
|
461
|
-
var ForwardRef$A = /*#__PURE__*/React.forwardRef(
|
|
447
|
+
var ForwardRef$A = /*#__PURE__*/React.forwardRef(SvgTableGroupColumnRightFill);
|
|
462
448
|
|
|
463
449
|
var _path$z;
|
|
464
450
|
function _extends$z() { return _extends$z = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$z.apply(null, arguments); }
|
|
465
|
-
var
|
|
451
|
+
var SvgTableSwapOutline = function SvgTableSwapOutline(props, ref) {
|
|
466
452
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$z({
|
|
467
453
|
xmlns: "http://www.w3.org/2000/svg",
|
|
468
454
|
width: 24,
|
|
@@ -470,14 +456,14 @@ var SvgContentFiltrationFill = function SvgContentFiltrationFill(props, ref) {
|
|
|
470
456
|
viewBox: "0 0 24 24",
|
|
471
457
|
ref: ref
|
|
472
458
|
}, props), _path$z || (_path$z = /*#__PURE__*/React__namespace.createElement("path", {
|
|
473
|
-
d: "
|
|
459
|
+
d: "M7 6.825V20h2V6.825L10.6 8.4 12 7 8 3 4 7l1.4 1.4L7 6.825zm10 10.35V4h-2v13.175L13.4 15.6 12 17l4 4 4-4-1.4-1.4-1.6 1.575z"
|
|
474
460
|
})));
|
|
475
461
|
};
|
|
476
|
-
var ForwardRef$z = /*#__PURE__*/React.forwardRef(
|
|
462
|
+
var ForwardRef$z = /*#__PURE__*/React.forwardRef(SvgTableSwapOutline);
|
|
477
463
|
|
|
478
464
|
var _path$y;
|
|
479
465
|
function _extends$y() { return _extends$y = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$y.apply(null, arguments); }
|
|
480
|
-
var
|
|
466
|
+
var SvgContentFiltrationFill = function SvgContentFiltrationFill(props, ref) {
|
|
481
467
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$y({
|
|
482
468
|
xmlns: "http://www.w3.org/2000/svg",
|
|
483
469
|
width: 24,
|
|
@@ -485,14 +471,14 @@ var SvgNavigationChevronUpOutline = function SvgNavigationChevronUpOutline(props
|
|
|
485
471
|
viewBox: "0 0 24 24",
|
|
486
472
|
ref: ref
|
|
487
473
|
}, props), _path$y || (_path$y = /*#__PURE__*/React__namespace.createElement("path", {
|
|
488
|
-
d: "
|
|
474
|
+
d: "M14 13v8l-4-2v-6L2.95 4h18.1L14 13z"
|
|
489
475
|
})));
|
|
490
476
|
};
|
|
491
|
-
var ForwardRef$y = /*#__PURE__*/React.forwardRef(
|
|
477
|
+
var ForwardRef$y = /*#__PURE__*/React.forwardRef(SvgContentFiltrationFill);
|
|
492
478
|
|
|
493
479
|
var _path$x;
|
|
494
480
|
function _extends$x() { return _extends$x = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$x.apply(null, arguments); }
|
|
495
|
-
var
|
|
481
|
+
var SvgNavigationChevronUpOutline = function SvgNavigationChevronUpOutline(props, ref) {
|
|
496
482
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$x({
|
|
497
483
|
xmlns: "http://www.w3.org/2000/svg",
|
|
498
484
|
width: 24,
|
|
@@ -500,14 +486,14 @@ var SvgNavigationCollapseAllOutline = function SvgNavigationCollapseAllOutline(p
|
|
|
500
486
|
viewBox: "0 0 24 24",
|
|
501
487
|
ref: ref
|
|
502
488
|
}, props), _path$x || (_path$x = /*#__PURE__*/React__namespace.createElement("path", {
|
|
503
|
-
d: "
|
|
489
|
+
d: "M18.586 15.914 20 14.5l-8-8-8 8 1.414 1.414L12 9.328l6.586 6.586z"
|
|
504
490
|
})));
|
|
505
491
|
};
|
|
506
|
-
var ForwardRef$x = /*#__PURE__*/React.forwardRef(
|
|
492
|
+
var ForwardRef$x = /*#__PURE__*/React.forwardRef(SvgNavigationChevronUpOutline);
|
|
507
493
|
|
|
508
494
|
var _path$w;
|
|
509
495
|
function _extends$w() { return _extends$w = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$w.apply(null, arguments); }
|
|
510
|
-
var
|
|
496
|
+
var SvgNavigationCollapseAllOutline = function SvgNavigationCollapseAllOutline(props, ref) {
|
|
511
497
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$w({
|
|
512
498
|
xmlns: "http://www.w3.org/2000/svg",
|
|
513
499
|
width: 24,
|
|
@@ -515,14 +501,14 @@ var SvgNavigationExpandAllOutline = function SvgNavigationExpandAllOutline(props
|
|
|
515
501
|
viewBox: "0 0 24 24",
|
|
516
502
|
ref: ref
|
|
517
503
|
}, props), _path$w || (_path$w = /*#__PURE__*/React__namespace.createElement("path", {
|
|
518
|
-
d: "
|
|
504
|
+
d: "M16.5 4.414 15.086 3 12 6.086 8.914 3 7.5 4.414l4.5 4.5 4.5-4.5zM9 13v-2h6v2H9zm6.086 8 1.414-1.414-4.5-4.5-4.5 4.5L8.914 21 12 17.914 15.086 21z"
|
|
519
505
|
})));
|
|
520
506
|
};
|
|
521
|
-
var ForwardRef$w = /*#__PURE__*/React.forwardRef(
|
|
507
|
+
var ForwardRef$w = /*#__PURE__*/React.forwardRef(SvgNavigationCollapseAllOutline);
|
|
522
508
|
|
|
523
509
|
var _path$v;
|
|
524
510
|
function _extends$v() { return _extends$v = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$v.apply(null, arguments); }
|
|
525
|
-
var
|
|
511
|
+
var SvgNavigationExpandAllOutline = function SvgNavigationExpandAllOutline(props, ref) {
|
|
526
512
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$v({
|
|
527
513
|
xmlns: "http://www.w3.org/2000/svg",
|
|
528
514
|
width: 24,
|
|
@@ -530,14 +516,14 @@ var SvgActionSettingsFill = function SvgActionSettingsFill(props, ref) {
|
|
|
530
516
|
viewBox: "0 0 24 24",
|
|
531
517
|
ref: ref
|
|
532
518
|
}, props), _path$v || (_path$v = /*#__PURE__*/React__namespace.createElement("path", {
|
|
533
|
-
d: "
|
|
519
|
+
d: "m16.5 7.5-1.414 1.414L12 5.828 8.914 8.914 7.5 7.5 12 3l4.5 4.5zM9 13v-2h6v2H9zm6.086 2.086L16.5 16.5 12 21l-4.5-4.5 1.414-1.414L12 18.17l3.086-3.085z"
|
|
534
520
|
})));
|
|
535
521
|
};
|
|
536
|
-
var ForwardRef$v = /*#__PURE__*/React.forwardRef(
|
|
522
|
+
var ForwardRef$v = /*#__PURE__*/React.forwardRef(SvgNavigationExpandAllOutline);
|
|
537
523
|
|
|
538
524
|
var _path$u;
|
|
539
525
|
function _extends$u() { return _extends$u = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$u.apply(null, arguments); }
|
|
540
|
-
var
|
|
526
|
+
var SvgActionSettingsFill = function SvgActionSettingsFill(props, ref) {
|
|
541
527
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$u({
|
|
542
528
|
xmlns: "http://www.w3.org/2000/svg",
|
|
543
529
|
width: 24,
|
|
@@ -545,14 +531,14 @@ var SvgNavigationChevronLeftOutline = function SvgNavigationChevronLeftOutline(p
|
|
|
545
531
|
viewBox: "0 0 24 24",
|
|
546
532
|
ref: ref
|
|
547
533
|
}, props), _path$u || (_path$u = /*#__PURE__*/React__namespace.createElement("path", {
|
|
548
|
-
d: "
|
|
534
|
+
d: "m9.25 22-.4-3.2a3.771 3.771 0 0 1-.612-.3 8.194 8.194 0 0 1-.563-.375L4.7 19.375l-2.75-4.75 2.575-1.95a2.39 2.39 0 0 1-.025-.338v-.675c0-.108.009-.22.025-.337L1.95 9.375l2.75-4.75 2.975 1.25c.184-.133.375-.258.575-.375.2-.117.4-.217.6-.3l.4-3.2h5.5l.4 3.2c.217.083.421.183.613.3.191.117.379.242.562.375l2.975-1.25 2.75 4.75-2.575 1.95c.017.117.025.229.025.337v.675c0 .109-.017.221-.05.338l2.575 1.95-2.75 4.75-2.95-1.25a6.826 6.826 0 0 1-.575.375c-.2.117-.4.217-.6.3l-.4 3.2h-5.5zm2.8-6.5c.967 0 1.792-.342 2.475-1.025A3.372 3.372 0 0 0 15.55 12c0-.967-.341-1.792-1.025-2.475A3.372 3.372 0 0 0 12.05 8.5c-.983 0-1.813.342-2.488 1.025A3.394 3.394 0 0 0 8.55 12c0 .967.338 1.792 1.012 2.475.676.683 1.505 1.025 2.488 1.025z"
|
|
549
535
|
})));
|
|
550
536
|
};
|
|
551
|
-
var ForwardRef$u = /*#__PURE__*/React.forwardRef(
|
|
537
|
+
var ForwardRef$u = /*#__PURE__*/React.forwardRef(SvgActionSettingsFill);
|
|
552
538
|
|
|
553
539
|
var _path$t;
|
|
554
540
|
function _extends$t() { return _extends$t = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$t.apply(null, arguments); }
|
|
555
|
-
var
|
|
541
|
+
var SvgNavigationChevronLeftOutline = function SvgNavigationChevronLeftOutline(props, ref) {
|
|
556
542
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$t({
|
|
557
543
|
xmlns: "http://www.w3.org/2000/svg",
|
|
558
544
|
width: 24,
|
|
@@ -560,14 +546,14 @@ var SvgNavigationChevronRightOutline = function SvgNavigationChevronRightOutline
|
|
|
560
546
|
viewBox: "0 0 24 24",
|
|
561
547
|
ref: ref
|
|
562
548
|
}, props), _path$t || (_path$t = /*#__PURE__*/React__namespace.createElement("path", {
|
|
563
|
-
d: "
|
|
549
|
+
d: "M15.914 5.414 14.5 4l-8 8 8 8 1.414-1.414L9.328 12l6.586-6.586z"
|
|
564
550
|
})));
|
|
565
551
|
};
|
|
566
|
-
var ForwardRef$t = /*#__PURE__*/React.forwardRef(
|
|
552
|
+
var ForwardRef$t = /*#__PURE__*/React.forwardRef(SvgNavigationChevronLeftOutline);
|
|
567
553
|
|
|
568
554
|
var _path$s;
|
|
569
555
|
function _extends$s() { return _extends$s = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$s.apply(null, arguments); }
|
|
570
|
-
var
|
|
556
|
+
var SvgNavigationChevronRightOutline = function SvgNavigationChevronRightOutline(props, ref) {
|
|
571
557
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$s({
|
|
572
558
|
xmlns: "http://www.w3.org/2000/svg",
|
|
573
559
|
width: 24,
|
|
@@ -575,14 +561,14 @@ var SvgActionAddOutline = function SvgActionAddOutline(props, ref) {
|
|
|
575
561
|
viewBox: "0 0 24 24",
|
|
576
562
|
ref: ref
|
|
577
563
|
}, props), _path$s || (_path$s = /*#__PURE__*/React__namespace.createElement("path", {
|
|
578
|
-
d: "
|
|
564
|
+
d: "M8.086 18.586 9.5 20l8-8-8-8-1.414 1.414L14.672 12l-6.586 6.586z"
|
|
579
565
|
})));
|
|
580
566
|
};
|
|
581
|
-
var ForwardRef$s = /*#__PURE__*/React.forwardRef(
|
|
567
|
+
var ForwardRef$s = /*#__PURE__*/React.forwardRef(SvgNavigationChevronRightOutline);
|
|
582
568
|
|
|
583
569
|
var _path$r;
|
|
584
570
|
function _extends$r() { return _extends$r = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$r.apply(null, arguments); }
|
|
585
|
-
var
|
|
571
|
+
var SvgActionAddOutline = function SvgActionAddOutline(props, ref) {
|
|
586
572
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$r({
|
|
587
573
|
xmlns: "http://www.w3.org/2000/svg",
|
|
588
574
|
width: 24,
|
|
@@ -590,14 +576,14 @@ var SvgNotificationDoneFill = function SvgNotificationDoneFill(props, ref) {
|
|
|
590
576
|
viewBox: "0 0 24 24",
|
|
591
577
|
ref: ref
|
|
592
578
|
}, props), _path$r || (_path$r = /*#__PURE__*/React__namespace.createElement("path", {
|
|
593
|
-
d: "
|
|
579
|
+
d: "M13.286 3h-2.572v7.714H3v2.572h7.714V21h2.572v-7.714H21v-2.572h-7.714V3z"
|
|
594
580
|
})));
|
|
595
581
|
};
|
|
596
|
-
var ForwardRef$r = /*#__PURE__*/React.forwardRef(
|
|
582
|
+
var ForwardRef$r = /*#__PURE__*/React.forwardRef(SvgActionAddOutline);
|
|
597
583
|
|
|
598
584
|
var _path$q;
|
|
599
585
|
function _extends$q() { return _extends$q = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$q.apply(null, arguments); }
|
|
600
|
-
var
|
|
586
|
+
var SvgNotificationDoneFill = function SvgNotificationDoneFill(props, ref) {
|
|
601
587
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
|
|
602
588
|
xmlns: "http://www.w3.org/2000/svg",
|
|
603
589
|
width: 24,
|
|
@@ -605,14 +591,14 @@ var SvgRadioDotFill = function SvgRadioDotFill(props, ref) {
|
|
|
605
591
|
viewBox: "0 0 24 24",
|
|
606
592
|
ref: ref
|
|
607
593
|
}, props), _path$q || (_path$q = /*#__PURE__*/React__namespace.createElement("path", {
|
|
608
|
-
d: "
|
|
594
|
+
d: "m2 12 3.077-3.2 4.615 4.8L18.923 4 22 7.2 9.692 20 2 12z"
|
|
609
595
|
})));
|
|
610
596
|
};
|
|
611
|
-
var ForwardRef$q = /*#__PURE__*/React.forwardRef(
|
|
597
|
+
var ForwardRef$q = /*#__PURE__*/React.forwardRef(SvgNotificationDoneFill);
|
|
612
598
|
|
|
613
599
|
var _path$p;
|
|
614
600
|
function _extends$p() { return _extends$p = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$p.apply(null, arguments); }
|
|
615
|
-
var
|
|
601
|
+
var SvgRadioDotFill = function SvgRadioDotFill(props, ref) {
|
|
616
602
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
|
|
617
603
|
xmlns: "http://www.w3.org/2000/svg",
|
|
618
604
|
width: 24,
|
|
@@ -620,14 +606,14 @@ var SvgNotificationHelpFill = function SvgNotificationHelpFill(props, ref) {
|
|
|
620
606
|
viewBox: "0 0 24 24",
|
|
621
607
|
ref: ref
|
|
622
608
|
}, props), _path$p || (_path$p = /*#__PURE__*/React__namespace.createElement("path", {
|
|
623
|
-
d: "
|
|
609
|
+
d: "M12 19a7 7 0 1 0 0-14 7 7 0 0 0 0 14z"
|
|
624
610
|
})));
|
|
625
611
|
};
|
|
626
|
-
var ForwardRef$p = /*#__PURE__*/React.forwardRef(
|
|
612
|
+
var ForwardRef$p = /*#__PURE__*/React.forwardRef(SvgRadioDotFill);
|
|
627
613
|
|
|
628
614
|
var _path$o;
|
|
629
615
|
function _extends$o() { return _extends$o = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$o.apply(null, arguments); }
|
|
630
|
-
var
|
|
616
|
+
var SvgNotificationHelpFill = function SvgNotificationHelpFill(props, ref) {
|
|
631
617
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
|
|
632
618
|
xmlns: "http://www.w3.org/2000/svg",
|
|
633
619
|
width: 24,
|
|
@@ -635,14 +621,14 @@ var SvgNotificationCheckFill = function SvgNotificationCheckFill(props, ref) {
|
|
|
635
621
|
viewBox: "0 0 24 24",
|
|
636
622
|
ref: ref
|
|
637
623
|
}, props), _path$o || (_path$o = /*#__PURE__*/React__namespace.createElement("path", {
|
|
638
|
-
d: "
|
|
624
|
+
d: "M11.95 18c.35 0 .646-.121.888-.363.241-.241.362-.537.362-.887s-.12-.646-.362-.887a1.208 1.208 0 0 0-.888-.363c-.35 0-.646.121-.888.363a1.206 1.206 0 0 0-.362.887c0 .35.12.646.362.887.242.242.538.363.888.363zm-.9-3.85h1.85c0-.55.063-.983.188-1.3.125-.317.479-.75 1.062-1.3a7.483 7.483 0 0 0 1.025-1.238c.25-.391.375-.862.375-1.412 0-.933-.342-1.65-1.025-2.15-.683-.5-1.492-.75-2.425-.75-.95 0-1.72.25-2.312.75-.592.5-1.005 1.1-1.238 1.8l1.65.65c.083-.3.271-.625.563-.975.291-.35.737-.525 1.337-.525.533 0 .933.146 1.2.437.267.292.4.613.4.963 0 .333-.1.646-.3.937-.2.292-.45.563-.75.813-.733.65-1.183 1.142-1.35 1.475-.167.333-.25.942-.25 1.825zM12 22a9.733 9.733 0 0 1-3.9-.788 10.092 10.092 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.733 9.733 0 0 1 2 12a9.74 9.74 0 0 1 .788-3.9 10.092 10.092 0 0 1 2.137-3.175c.9-.9 1.958-1.613 3.175-2.138A9.743 9.743 0 0 1 12 2a9.74 9.74 0 0 1 3.9.787 10.105 10.105 0 0 1 3.175 2.138c.9.9 1.612 1.958 2.137 3.175A9.733 9.733 0 0 1 22 12a9.733 9.733 0 0 1-.788 3.9 10.092 10.092 0 0 1-2.137 3.175c-.9.9-1.958 1.612-3.175 2.137A9.733 9.733 0 0 1 12 22z"
|
|
639
625
|
})));
|
|
640
626
|
};
|
|
641
|
-
var ForwardRef$o = /*#__PURE__*/React.forwardRef(
|
|
627
|
+
var ForwardRef$o = /*#__PURE__*/React.forwardRef(SvgNotificationHelpFill);
|
|
642
628
|
|
|
643
629
|
var _path$n;
|
|
644
630
|
function _extends$n() { return _extends$n = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$n.apply(null, arguments); }
|
|
645
|
-
var
|
|
631
|
+
var SvgNotificationCheckFill = function SvgNotificationCheckFill(props, ref) {
|
|
646
632
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
|
|
647
633
|
xmlns: "http://www.w3.org/2000/svg",
|
|
648
634
|
width: 24,
|
|
@@ -650,14 +636,14 @@ var SvgNotificationWarningFill = function SvgNotificationWarningFill(props, ref)
|
|
|
650
636
|
viewBox: "0 0 24 24",
|
|
651
637
|
ref: ref
|
|
652
638
|
}, props), _path$n || (_path$n = /*#__PURE__*/React__namespace.createElement("path", {
|
|
653
|
-
d: "
|
|
639
|
+
d: "m10.6 16.6 7.05-7.05-1.4-1.4-5.65 5.65-2.85-2.85-1.4 1.4 4.25 4.25zM12 22a9.733 9.733 0 0 1-3.9-.788 10.092 10.092 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.733 9.733 0 0 1 2 12a9.74 9.74 0 0 1 .788-3.9 10.092 10.092 0 0 1 2.137-3.175c.9-.9 1.958-1.613 3.175-2.138A9.743 9.743 0 0 1 12 2a9.74 9.74 0 0 1 3.9.787 10.105 10.105 0 0 1 3.175 2.138c.9.9 1.612 1.958 2.137 3.175A9.733 9.733 0 0 1 22 12a9.733 9.733 0 0 1-.788 3.9 10.092 10.092 0 0 1-2.137 3.175c-.9.9-1.958 1.612-3.175 2.137A9.733 9.733 0 0 1 12 22z"
|
|
654
640
|
})));
|
|
655
641
|
};
|
|
656
|
-
var ForwardRef$n = /*#__PURE__*/React.forwardRef(
|
|
642
|
+
var ForwardRef$n = /*#__PURE__*/React.forwardRef(SvgNotificationCheckFill);
|
|
657
643
|
|
|
658
644
|
var _path$m;
|
|
659
645
|
function _extends$m() { return _extends$m = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$m.apply(null, arguments); }
|
|
660
|
-
var
|
|
646
|
+
var SvgNotificationWarningFill = function SvgNotificationWarningFill(props, ref) {
|
|
661
647
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
|
|
662
648
|
xmlns: "http://www.w3.org/2000/svg",
|
|
663
649
|
width: 24,
|
|
@@ -665,14 +651,14 @@ var SvgNotificationErrorFill = function SvgNotificationErrorFill(props, ref) {
|
|
|
665
651
|
viewBox: "0 0 24 24",
|
|
666
652
|
ref: ref
|
|
667
653
|
}, props), _path$m || (_path$m = /*#__PURE__*/React__namespace.createElement("path", {
|
|
668
|
-
d: "
|
|
654
|
+
d: "M1 21 12 2l11 19H1zm11-3a.968.968 0 0 0 .713-.288A.967.967 0 0 0 13 17a.967.967 0 0 0-.287-.712A.968.968 0 0 0 12 16a.965.965 0 0 0-.712.288A.965.965 0 0 0 11 17c0 .283.096.52.288.712A.965.965 0 0 0 12 18zm-1-3h2v-5h-2v5z"
|
|
669
655
|
})));
|
|
670
656
|
};
|
|
671
|
-
var ForwardRef$m = /*#__PURE__*/React.forwardRef(
|
|
657
|
+
var ForwardRef$m = /*#__PURE__*/React.forwardRef(SvgNotificationWarningFill);
|
|
672
658
|
|
|
673
659
|
var _path$l;
|
|
674
660
|
function _extends$l() { return _extends$l = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$l.apply(null, arguments); }
|
|
675
|
-
var
|
|
661
|
+
var SvgNotificationErrorFill = function SvgNotificationErrorFill(props, ref) {
|
|
676
662
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
|
|
677
663
|
xmlns: "http://www.w3.org/2000/svg",
|
|
678
664
|
width: 24,
|
|
@@ -680,16 +666,14 @@ var SvgFileFileWordFill = function SvgFileFileWordFill(props, ref) {
|
|
|
680
666
|
viewBox: "0 0 24 24",
|
|
681
667
|
ref: ref
|
|
682
668
|
}, props), _path$l || (_path$l = /*#__PURE__*/React__namespace.createElement("path", {
|
|
683
|
-
|
|
684
|
-
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm1.2 18h-1.4L12 13.2 10.2 20H8.8l-2.2-9h1.5l1.4 6.8 1.8-6.8h1.3l1.8 6.8 1.4-6.8h1.5l-2.1 9zM13 9V3.5L18.5 9H13z",
|
|
685
|
-
clipRule: "evenodd"
|
|
669
|
+
d: "M12 17a.968.968 0 0 0 .713-.288A.967.967 0 0 0 13 16a.97.97 0 0 0-.287-.713A.97.97 0 0 0 12 15a.967.967 0 0 0-.712.287A.968.968 0 0 0 11 16c0 .283.096.52.288.712A.965.965 0 0 0 12 17zm-1-4h2V7h-2v6zm1 9a9.733 9.733 0 0 1-3.9-.788 10.092 10.092 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.733 9.733 0 0 1 2 12a9.74 9.74 0 0 1 .788-3.9 10.092 10.092 0 0 1 2.137-3.175c.9-.9 1.958-1.613 3.175-2.138A9.743 9.743 0 0 1 12 2a9.74 9.74 0 0 1 3.9.787 10.105 10.105 0 0 1 3.175 2.138c.9.9 1.612 1.958 2.137 3.175A9.733 9.733 0 0 1 22 12a9.733 9.733 0 0 1-.788 3.9 10.092 10.092 0 0 1-2.137 3.175c-.9.9-1.958 1.612-3.175 2.137A9.733 9.733 0 0 1 12 22z"
|
|
686
670
|
})));
|
|
687
671
|
};
|
|
688
|
-
var ForwardRef$l = /*#__PURE__*/React.forwardRef(
|
|
672
|
+
var ForwardRef$l = /*#__PURE__*/React.forwardRef(SvgNotificationErrorFill);
|
|
689
673
|
|
|
690
674
|
var _path$k;
|
|
691
675
|
function _extends$k() { return _extends$k = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$k.apply(null, arguments); }
|
|
692
|
-
var
|
|
676
|
+
var SvgActionDeleteOutline = function SvgActionDeleteOutline(props, ref) {
|
|
693
677
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
|
|
694
678
|
xmlns: "http://www.w3.org/2000/svg",
|
|
695
679
|
width: 24,
|
|
@@ -697,16 +681,14 @@ var SvgFileFileExcelFill = function SvgFileFileExcelFill(props, ref) {
|
|
|
697
681
|
viewBox: "0 0 24 24",
|
|
698
682
|
ref: ref
|
|
699
683
|
}, props), _path$k || (_path$k = /*#__PURE__*/React__namespace.createElement("path", {
|
|
700
|
-
|
|
701
|
-
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm1.8 18H14l-2-3.4-2 3.4H8.2l2.9-4.5L8.2 11H10l2 3.4 2-3.4h1.8l-2.9 4.5 2.9 4.5zM13 9V3.5L18.5 9H13z",
|
|
702
|
-
clipRule: "evenodd"
|
|
684
|
+
d: "M9 3v1H4v2h1v13a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6h1V4h-5V3H9zM7 6h10v13H7V6zm2 2v9h2V8H9zm4 0v9h2V8h-2z"
|
|
703
685
|
})));
|
|
704
686
|
};
|
|
705
|
-
var ForwardRef$k = /*#__PURE__*/React.forwardRef(
|
|
687
|
+
var ForwardRef$k = /*#__PURE__*/React.forwardRef(SvgActionDeleteOutline);
|
|
706
688
|
|
|
707
|
-
var _path$j;
|
|
689
|
+
var _path$j, _path2$2;
|
|
708
690
|
function _extends$j() { return _extends$j = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$j.apply(null, arguments); }
|
|
709
|
-
var
|
|
691
|
+
var SvgContentLinkOutline = function SvgContentLinkOutline(props, ref) {
|
|
710
692
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
|
|
711
693
|
xmlns: "http://www.w3.org/2000/svg",
|
|
712
694
|
width: 24,
|
|
@@ -714,16 +696,16 @@ var SvgFileFilePdfFill = function SvgFileFilePdfFill(props, ref) {
|
|
|
714
696
|
viewBox: "0 0 24 24",
|
|
715
697
|
ref: ref
|
|
716
698
|
}, props), _path$j || (_path$j = /*#__PURE__*/React__namespace.createElement("path", {
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
699
|
+
d: "M12 4.93A5 5 0 0 1 19.07 12l-1.06 1.06c.12-.85.022-1.725-.295-2.534a3 3 0 0 0-4.302-4.182l-2.828 2.828a3 3 0 0 0-.07 4.17l.07.073-1.415 1.414a5 5 0 0 1 0-7.071L12 4.929z"
|
|
700
|
+
})), _path2$2 || (_path2$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
701
|
+
d: "m4.93 12 .989-.99a5.018 5.018 0 0 0 .297 2.54 3 3 0 0 0 4.37 4.107l2.829-2.828a3 3 0 0 0-.828-4.83l1.464-1.463a5 5 0 0 1 .778 7.707L12 19.071a5 5 0 0 1-7.07-7.07z"
|
|
720
702
|
})));
|
|
721
703
|
};
|
|
722
|
-
var ForwardRef$j = /*#__PURE__*/React.forwardRef(
|
|
704
|
+
var ForwardRef$j = /*#__PURE__*/React.forwardRef(SvgContentLinkOutline);
|
|
723
705
|
|
|
724
706
|
var _path$i;
|
|
725
707
|
function _extends$i() { return _extends$i = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$i.apply(null, arguments); }
|
|
726
|
-
var
|
|
708
|
+
var SvgContentEditFill = function SvgContentEditFill(props, ref) {
|
|
727
709
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
|
|
728
710
|
xmlns: "http://www.w3.org/2000/svg",
|
|
729
711
|
width: 24,
|
|
@@ -731,16 +713,14 @@ var SvgFileFileImageFill = function SvgFileFileImageFill(props, ref) {
|
|
|
731
713
|
viewBox: "0 0 24 24",
|
|
732
714
|
ref: ref
|
|
733
715
|
}, props), _path$i || (_path$i = /*#__PURE__*/React__namespace.createElement("path", {
|
|
734
|
-
|
|
735
|
-
d: "M13 9h5.5L13 3.5V9zM6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2zm0 18h12v-8l-4 4-2-2-6 6zM8 9a2 2 0 1 0 0 4 2 2 0 0 0 0-4z",
|
|
736
|
-
clipRule: "evenodd"
|
|
716
|
+
d: "m19.3 8.925-4.25-4.2 1.4-1.4a1.92 1.92 0 0 1 1.413-.575 1.92 1.92 0 0 1 1.412.575l1.4 1.4c.383.383.583.846.6 1.388a1.806 1.806 0 0 1-.55 1.387L19.3 8.925zM17.85 10.4 7.25 21H3v-4.25l10.6-10.6 4.25 4.25z"
|
|
737
717
|
})));
|
|
738
718
|
};
|
|
739
|
-
var ForwardRef$i = /*#__PURE__*/React.forwardRef(
|
|
719
|
+
var ForwardRef$i = /*#__PURE__*/React.forwardRef(SvgContentEditFill);
|
|
740
720
|
|
|
741
|
-
var _path$h
|
|
721
|
+
var _path$h;
|
|
742
722
|
function _extends$h() { return _extends$h = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$h.apply(null, arguments); }
|
|
743
|
-
var
|
|
723
|
+
var SvgActionCopyContentOutline = function SvgActionCopyContentOutline(props, ref) {
|
|
744
724
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
|
|
745
725
|
xmlns: "http://www.w3.org/2000/svg",
|
|
746
726
|
width: 24,
|
|
@@ -748,18 +728,16 @@ var SvgFileFileVideoFill = function SvgFileFileVideoFill(props, ref) {
|
|
|
748
728
|
viewBox: "0 0 24 24",
|
|
749
729
|
ref: ref
|
|
750
730
|
}, props), _path$h || (_path$h = /*#__PURE__*/React__namespace.createElement("path", {
|
|
751
|
-
d: "M14.992 14 9.5 17.138v-6.276L14.992 14z"
|
|
752
|
-
})), _path2$2 || (_path2$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
753
731
|
fillRule: "evenodd",
|
|
754
|
-
d: "
|
|
732
|
+
d: "M19 19H9V9h10M9 7a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2H9zm5-4H5a2 2 0 0 0-2 2v9h2V5h9V3z",
|
|
755
733
|
clipRule: "evenodd"
|
|
756
734
|
})));
|
|
757
735
|
};
|
|
758
|
-
var ForwardRef$h = /*#__PURE__*/React.forwardRef(
|
|
736
|
+
var ForwardRef$h = /*#__PURE__*/React.forwardRef(SvgActionCopyContentOutline);
|
|
759
737
|
|
|
760
738
|
var _path$g;
|
|
761
739
|
function _extends$g() { return _extends$g = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$g.apply(null, arguments); }
|
|
762
|
-
var
|
|
740
|
+
var SvgContentEditUndoOutline = function SvgContentEditUndoOutline(props, ref) {
|
|
763
741
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
|
|
764
742
|
xmlns: "http://www.w3.org/2000/svg",
|
|
765
743
|
width: 24,
|
|
@@ -767,16 +745,14 @@ var SvgFileFileTableFill = function SvgFileFileTableFill(props, ref) {
|
|
|
767
745
|
viewBox: "0 0 24 24",
|
|
768
746
|
ref: ref
|
|
769
747
|
}, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
|
|
770
|
-
|
|
771
|
-
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm-4 17H7v-2h3v2zm0-3H7v-2h3v2zm0-3H7v-2h3v2zm4 6h-3v-2h3v2zm0-3h-3v-2h3v2zm0-3h-3v-2h3v2zm-1-4V3.5L18.5 9H13z",
|
|
772
|
-
clipRule: "evenodd"
|
|
748
|
+
d: "M22.5 15a8.71 8.71 0 0 0-.712-3.513 9.158 9.158 0 0 0-1.926-2.85 9.152 9.152 0 0 0-2.85-1.925A8.709 8.709 0 0 0 13.5 6a8.71 8.71 0 0 0-3.513.712 9.167 9.167 0 0 0-2.85 1.925 9.154 9.154 0 0 0-1.924 2.85A8.705 8.705 0 0 0 4.5 15v.15L2.95 13.6 1.5 15l4 4 4-4-1.45-1.4-1.55 1.55V15c0-1.95.679-3.604 2.037-4.962C9.896 8.679 11.55 8 13.5 8c1.95 0 3.604.68 4.962 2.038C19.821 11.396 20.5 13.05 20.5 15h2z"
|
|
773
749
|
})));
|
|
774
750
|
};
|
|
775
|
-
var ForwardRef$g = /*#__PURE__*/React.forwardRef(
|
|
751
|
+
var ForwardRef$g = /*#__PURE__*/React.forwardRef(SvgContentEditUndoOutline);
|
|
776
752
|
|
|
777
753
|
var _path$f;
|
|
778
754
|
function _extends$f() { return _extends$f = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$f.apply(null, arguments); }
|
|
779
|
-
var
|
|
755
|
+
var SvgActionSaveOutline = function SvgActionSaveOutline(props, ref) {
|
|
780
756
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
|
|
781
757
|
xmlns: "http://www.w3.org/2000/svg",
|
|
782
758
|
width: 24,
|
|
@@ -784,16 +760,14 @@ var SvgFileFileTextFill = function SvgFileFileTextFill(props, ref) {
|
|
|
784
760
|
viewBox: "0 0 24 24",
|
|
785
761
|
ref: ref
|
|
786
762
|
}, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
|
|
787
|
-
|
|
788
|
-
d: "M13 9h5.5L13 3.5V9zM6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2zm9 16v-2H6v2h9zm3-4v-2H6v2h12z",
|
|
789
|
-
clipRule: "evenodd"
|
|
763
|
+
d: "M17 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm2 16H5V5h11.17L19 7.83V19zm-7-7c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3zM6 6h9v4H6V6z"
|
|
790
764
|
})));
|
|
791
765
|
};
|
|
792
|
-
var ForwardRef$f = /*#__PURE__*/React.forwardRef(
|
|
766
|
+
var ForwardRef$f = /*#__PURE__*/React.forwardRef(SvgActionSaveOutline);
|
|
793
767
|
|
|
794
768
|
var _path$e;
|
|
795
769
|
function _extends$e() { return _extends$e = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$e.apply(null, arguments); }
|
|
796
|
-
var
|
|
770
|
+
var SvgFileFileWordFill = function SvgFileFileWordFill(props, ref) {
|
|
797
771
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
|
|
798
772
|
xmlns: "http://www.w3.org/2000/svg",
|
|
799
773
|
width: 24,
|
|
@@ -802,15 +776,15 @@ var SvgFileFileEmlFill = function SvgFileFileEmlFill(props, ref) {
|
|
|
802
776
|
ref: ref
|
|
803
777
|
}, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
|
|
804
778
|
fillRule: "evenodd",
|
|
805
|
-
d: "
|
|
779
|
+
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm1.2 18h-1.4L12 13.2 10.2 20H8.8l-2.2-9h1.5l1.4 6.8 1.8-6.8h1.3l1.8 6.8 1.4-6.8h1.5l-2.1 9zM13 9V3.5L18.5 9H13z",
|
|
806
780
|
clipRule: "evenodd"
|
|
807
781
|
})));
|
|
808
782
|
};
|
|
809
|
-
var ForwardRef$e = /*#__PURE__*/React.forwardRef(
|
|
783
|
+
var ForwardRef$e = /*#__PURE__*/React.forwardRef(SvgFileFileWordFill);
|
|
810
784
|
|
|
811
785
|
var _path$d;
|
|
812
786
|
function _extends$d() { return _extends$d = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$d.apply(null, arguments); }
|
|
813
|
-
var
|
|
787
|
+
var SvgFileFileExcelFill = function SvgFileFileExcelFill(props, ref) {
|
|
814
788
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
|
|
815
789
|
xmlns: "http://www.w3.org/2000/svg",
|
|
816
790
|
width: 24,
|
|
@@ -818,57 +792,178 @@ var SvgFileFileFill = function SvgFileFileFill(props, ref) {
|
|
|
818
792
|
viewBox: "0 0 24 24",
|
|
819
793
|
ref: ref
|
|
820
794
|
}, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
|
|
821
|
-
|
|
795
|
+
fillRule: "evenodd",
|
|
796
|
+
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm1.8 18H14l-2-3.4-2 3.4H8.2l2.9-4.5L8.2 11H10l2 3.4 2-3.4h1.8l-2.9 4.5 2.9 4.5zM13 9V3.5L18.5 9H13z",
|
|
797
|
+
clipRule: "evenodd"
|
|
822
798
|
})));
|
|
823
799
|
};
|
|
824
|
-
var ForwardRef$d = /*#__PURE__*/React.forwardRef(
|
|
800
|
+
var ForwardRef$d = /*#__PURE__*/React.forwardRef(SvgFileFileExcelFill);
|
|
825
801
|
|
|
826
802
|
var _path$c;
|
|
827
803
|
function _extends$c() { return _extends$c = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$c.apply(null, arguments); }
|
|
828
|
-
var
|
|
804
|
+
var SvgFileFilePdfFill = function SvgFileFilePdfFill(props, ref) {
|
|
829
805
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
|
|
806
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
830
807
|
width: 24,
|
|
831
808
|
height: 24,
|
|
832
809
|
viewBox: "0 0 24 24",
|
|
833
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
834
810
|
ref: ref
|
|
835
811
|
}, props), _path$c || (_path$c = /*#__PURE__*/React__namespace.createElement("path", {
|
|
836
812
|
fillRule: "evenodd",
|
|
837
|
-
d: "
|
|
813
|
+
d: "M13 9h5.5L13 3.5V9zM6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm4.1 9.4c-.02.04-.29 1.76-2.1 4.69 0 0-3.5 1.82-2.67 3.18.67 1.08 2.32-.04 3.74-2.68 0 0 1.82-.64 4.24-.82 0 0 3.86 1.73 4.39-.11.52-1.86-3.06-1.44-3.7-1.25 0 0-2-1.35-2.5-3.21 0 0 1.14-3.95-.61-3.9-1.75.05-1.09 3.13-.79 4.1zm.81 1.04c.03.01.47 1.21 1.89 2.46 0 0-2.33.46-3.39.9 0 0 1-1.73 1.5-3.36zm3.93 2.72c.58-.16 2.33.15 2.26.48-.06.33-2.26-.48-2.26-.48zM7.77 17c-.53 1.24-1.44 2-1.67 2-.23 0 .7-1.6 1.67-2zm3.14-6.93c0-.07-.36-2.2 0-2.15.54.08 0 2.08 0 2.15z",
|
|
814
|
+
clipRule: "evenodd"
|
|
838
815
|
})));
|
|
839
816
|
};
|
|
840
|
-
var ForwardRef$c = /*#__PURE__*/React.forwardRef(
|
|
817
|
+
var ForwardRef$c = /*#__PURE__*/React.forwardRef(SvgFileFilePdfFill);
|
|
841
818
|
|
|
842
|
-
var _path$b
|
|
819
|
+
var _path$b;
|
|
843
820
|
function _extends$b() { return _extends$b = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$b.apply(null, arguments); }
|
|
844
|
-
var
|
|
821
|
+
var SvgFileFileImageFill = function SvgFileFileImageFill(props, ref) {
|
|
845
822
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
|
|
846
|
-
width: 66,
|
|
847
|
-
height: 67,
|
|
848
|
-
viewBox: "0 0 66 67",
|
|
849
|
-
fill: "none",
|
|
850
823
|
xmlns: "http://www.w3.org/2000/svg",
|
|
824
|
+
width: 24,
|
|
825
|
+
height: 24,
|
|
826
|
+
viewBox: "0 0 24 24",
|
|
851
827
|
ref: ref
|
|
852
828
|
}, props), _path$b || (_path$b = /*#__PURE__*/React__namespace.createElement("path", {
|
|
853
|
-
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",
|
|
854
|
-
fill: "#EBEDF5"
|
|
855
|
-
})), _path2$1 || (_path2$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
856
829
|
fillRule: "evenodd",
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
fill: "#6C6F80"
|
|
830
|
+
d: "M13 9h5.5L13 3.5V9zM6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2zm0 18h12v-8l-4 4-2-2-6 6zM8 9a2 2 0 1 0 0 4 2 2 0 0 0 0-4z",
|
|
831
|
+
clipRule: "evenodd"
|
|
860
832
|
})));
|
|
861
833
|
};
|
|
862
|
-
var ForwardRef$b = /*#__PURE__*/React.forwardRef(
|
|
863
|
-
|
|
864
|
-
var
|
|
865
|
-
|
|
866
|
-
function
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
834
|
+
var ForwardRef$b = /*#__PURE__*/React.forwardRef(SvgFileFileImageFill);
|
|
835
|
+
|
|
836
|
+
var _path$a, _path2$1;
|
|
837
|
+
function _extends$a() { return _extends$a = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$a.apply(null, arguments); }
|
|
838
|
+
var SvgFileFileVideoFill = function SvgFileFileVideoFill(props, ref) {
|
|
839
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
|
|
840
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
841
|
+
width: 24,
|
|
842
|
+
height: 24,
|
|
843
|
+
viewBox: "0 0 24 24",
|
|
844
|
+
ref: ref
|
|
845
|
+
}, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
|
|
846
|
+
d: "M14.992 14 9.5 17.138v-6.276L14.992 14z"
|
|
847
|
+
})), _path2$1 || (_path2$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
848
|
+
fillRule: "evenodd",
|
|
849
|
+
d: "M4 4c0-1.11.89-2 2-2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4zm9-.5V9h5.5L13 3.5zM8.5 9.138v9.724L17.008 14 8.5 9.138z",
|
|
850
|
+
clipRule: "evenodd"
|
|
851
|
+
})));
|
|
852
|
+
};
|
|
853
|
+
var ForwardRef$a = /*#__PURE__*/React.forwardRef(SvgFileFileVideoFill);
|
|
854
|
+
|
|
855
|
+
var _path$9;
|
|
856
|
+
function _extends$9() { return _extends$9 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$9.apply(null, arguments); }
|
|
857
|
+
var SvgFileFileTableFill = function SvgFileFileTableFill(props, ref) {
|
|
858
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
|
|
859
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
860
|
+
width: 24,
|
|
861
|
+
height: 24,
|
|
862
|
+
viewBox: "0 0 24 24",
|
|
863
|
+
ref: ref
|
|
864
|
+
}, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
865
|
+
fillRule: "evenodd",
|
|
866
|
+
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm-4 17H7v-2h3v2zm0-3H7v-2h3v2zm0-3H7v-2h3v2zm4 6h-3v-2h3v2zm0-3h-3v-2h3v2zm0-3h-3v-2h3v2zm-1-4V3.5L18.5 9H13z",
|
|
867
|
+
clipRule: "evenodd"
|
|
868
|
+
})));
|
|
869
|
+
};
|
|
870
|
+
var ForwardRef$9 = /*#__PURE__*/React.forwardRef(SvgFileFileTableFill);
|
|
871
|
+
|
|
872
|
+
var _path$8;
|
|
873
|
+
function _extends$8() { return _extends$8 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$8.apply(null, arguments); }
|
|
874
|
+
var SvgFileFileTextFill = function SvgFileFileTextFill(props, ref) {
|
|
875
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
|
|
876
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
877
|
+
width: 24,
|
|
878
|
+
height: 24,
|
|
879
|
+
viewBox: "0 0 24 24",
|
|
880
|
+
ref: ref
|
|
881
|
+
}, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
882
|
+
fillRule: "evenodd",
|
|
883
|
+
d: "M13 9h5.5L13 3.5V9zM6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2zm9 16v-2H6v2h9zm3-4v-2H6v2h12z",
|
|
884
|
+
clipRule: "evenodd"
|
|
885
|
+
})));
|
|
886
|
+
};
|
|
887
|
+
var ForwardRef$8 = /*#__PURE__*/React.forwardRef(SvgFileFileTextFill);
|
|
888
|
+
|
|
889
|
+
var _path$7;
|
|
890
|
+
function _extends$7() { return _extends$7 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$7.apply(null, arguments); }
|
|
891
|
+
var SvgFileFileEmlFill = function SvgFileFileEmlFill(props, ref) {
|
|
892
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
|
|
893
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
894
|
+
width: 24,
|
|
895
|
+
height: 24,
|
|
896
|
+
viewBox: "0 0 24 24",
|
|
897
|
+
ref: ref
|
|
898
|
+
}, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
899
|
+
fillRule: "evenodd",
|
|
900
|
+
d: "M4 4c0-1.11.89-2 2-2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4zm9-.5V9h5.5L13 3.5zM7 18v-4.732l5 3.333 5-3.333V18a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1zm5-2.6 4.688-3.126A.997.997 0 0 0 16 12H8a.997.997 0 0 0-.688.274L12 15.399z",
|
|
901
|
+
clipRule: "evenodd"
|
|
902
|
+
})));
|
|
903
|
+
};
|
|
904
|
+
var ForwardRef$7 = /*#__PURE__*/React.forwardRef(SvgFileFileEmlFill);
|
|
905
|
+
|
|
906
|
+
var _path$6;
|
|
907
|
+
function _extends$6() { return _extends$6 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$6.apply(null, arguments); }
|
|
908
|
+
var SvgFileFileFill = function SvgFileFileFill(props, ref) {
|
|
909
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
|
|
910
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
911
|
+
width: 24,
|
|
912
|
+
height: 24,
|
|
913
|
+
viewBox: "0 0 24 24",
|
|
914
|
+
ref: ref
|
|
915
|
+
}, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
916
|
+
d: "M6 22c-.55 0-1.02-.196-1.412-.587A1.927 1.927 0 0 1 4 20V4c0-.55.196-1.021.588-1.413A1.925 1.925 0 0 1 6 2h8l6 6v12a1.93 1.93 0 0 1-.587 1.413A1.928 1.928 0 0 1 18 22H6zm7-13h5l-5-5v5z"
|
|
917
|
+
})));
|
|
918
|
+
};
|
|
919
|
+
var ForwardRef$6 = /*#__PURE__*/React.forwardRef(SvgFileFileFill);
|
|
920
|
+
|
|
921
|
+
var _path$5;
|
|
922
|
+
function _extends$5() { return _extends$5 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$5.apply(null, arguments); }
|
|
923
|
+
var SvgStarFilled = function SvgStarFilled(props, ref) {
|
|
924
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
|
|
925
|
+
width: 24,
|
|
926
|
+
height: 24,
|
|
927
|
+
viewBox: "0 0 24 24",
|
|
928
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
929
|
+
ref: ref
|
|
930
|
+
}, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
931
|
+
fillRule: "evenodd",
|
|
932
|
+
d: "M8.917 8.268 12.01 2l3.093 6.268 6.917 1.005-5.005 4.878 1.182 6.889-6.187-3.252-6.186 3.252 1.181-6.889L2 9.273z"
|
|
933
|
+
})));
|
|
934
|
+
};
|
|
935
|
+
var ForwardRef$5 = /*#__PURE__*/React.forwardRef(SvgStarFilled);
|
|
936
|
+
|
|
937
|
+
var _path$4, _path2;
|
|
938
|
+
function _extends$4() { return _extends$4 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$4.apply(null, arguments); }
|
|
939
|
+
var SvgSearchWithBackground = function SvgSearchWithBackground(props, ref) {
|
|
940
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
|
|
941
|
+
width: 66,
|
|
942
|
+
height: 67,
|
|
943
|
+
viewBox: "0 0 66 67",
|
|
944
|
+
fill: "none",
|
|
945
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
946
|
+
ref: ref
|
|
947
|
+
}, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
948
|
+
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",
|
|
949
|
+
fill: "#EBEDF5"
|
|
950
|
+
})), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
951
|
+
fillRule: "evenodd",
|
|
952
|
+
clipRule: "evenodd",
|
|
953
|
+
d: "m42.31 40.335 7.165 7.165L47 49.975l-7.165-7.165a13.94 13.94 0 0 1-8.585 2.94c-7.732 0-14-6.268-14-14s6.268-14 14-14 14 6.268 14 14a13.94 13.94 0 0 1-2.94 8.585ZM31.25 42.25c5.799 0 10.5-4.701 10.5-10.5s-4.701-10.5-10.5-10.5-10.5 4.701-10.5 10.5 4.701 10.5 10.5 10.5Z",
|
|
954
|
+
fill: "#6C6F80"
|
|
955
|
+
})));
|
|
956
|
+
};
|
|
957
|
+
var ForwardRef$4 = /*#__PURE__*/React.forwardRef(SvgSearchWithBackground);
|
|
958
|
+
|
|
959
|
+
var css$1w = {"root":"SiDwij","uui-spinner":"t1XTB1","uuiSpinner":"t1XTB1"};
|
|
960
|
+
|
|
961
|
+
function applySpinnerMods() {
|
|
962
|
+
return [css$1w.root, 'uui-spinner'];
|
|
963
|
+
}
|
|
964
|
+
const Spinner = /* @__PURE__ */uuiCore.withMods(uuiComponents.Spinner, applySpinnerMods);
|
|
965
|
+
|
|
966
|
+
var css$1v = {"root":"lVWf5x","loading-word":"AEPYY8","loadingWord":"AEPYY8","animated-loading":"jLywOz","animatedLoading":"jLywOz","skeleton_loading":"-C5Kli","skeletonLoading":"-C5Kli"};
|
|
872
967
|
|
|
873
968
|
const TextPlaceholder = (props) => {
|
|
874
969
|
const pattern = ' ';
|
|
@@ -880,23 +975,50 @@ const TextPlaceholder = (props) => {
|
|
|
880
975
|
}
|
|
881
976
|
return words;
|
|
882
977
|
}, [props.wordsCount]);
|
|
883
|
-
return (React__namespace.createElement("div", { "aria-busy": true, className: cx__default.default(css$
|
|
884
|
-
props.cx, css$
|
|
978
|
+
return (React__namespace.createElement("div", { "aria-busy": true, className: cx__default.default(css$1v.root, 'uui-text-placeholder'), ...props.rawProps }, text.map((it, index) => (React__namespace.createElement("span", { key: index, className: cx__default.default([
|
|
979
|
+
props.cx, css$1v.loadingWord, !props.isNotAnimated && css$1v.animatedLoading,
|
|
885
980
|
]), dangerouslySetInnerHTML: { __html: it } })))));
|
|
886
981
|
};
|
|
887
982
|
|
|
983
|
+
var css$1u = {"root":"N3i5SS","line-height":"UQybtx","lineHeight":"UQybtx","font-size":"_6gz14O","fontSize":"_6gz14O"};
|
|
984
|
+
|
|
985
|
+
function applyTextMods(mods) {
|
|
986
|
+
return [
|
|
987
|
+
css$1u.root,
|
|
988
|
+
'uui-text',
|
|
989
|
+
`uui-size-${mods.size || settings.text.sizes.default}`,
|
|
990
|
+
(mods.size !== 'none' || mods.lineHeight) && css$1u.lineHeight,
|
|
991
|
+
(mods.size !== 'none' || mods.fontSize) && css$1u.fontSize,
|
|
992
|
+
`uui-color-${mods.color || 'primary'}`,
|
|
993
|
+
`uui-font-weight-${mods.fontWeight || '400'}`,
|
|
994
|
+
`uui-font-style-${mods.fontStyle || 'normal'}`,
|
|
995
|
+
'uui-typography-inline',
|
|
996
|
+
];
|
|
997
|
+
}
|
|
998
|
+
const Text = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Text, applyTextMods, (props) => {
|
|
999
|
+
const style = props?.rawProps?.style || {};
|
|
1000
|
+
props.fontSize && (style['--uui-text-font-size'] = `${props.fontSize}px`);
|
|
1001
|
+
props.lineHeight && (style['--uui-text-line-height'] = `${props.lineHeight}px`);
|
|
1002
|
+
return {
|
|
1003
|
+
rawProps: {
|
|
1004
|
+
...props?.rawProps,
|
|
1005
|
+
style: style,
|
|
1006
|
+
},
|
|
1007
|
+
};
|
|
1008
|
+
});
|
|
1009
|
+
|
|
888
1010
|
const accordionSettings = {
|
|
889
1011
|
icons: {
|
|
890
|
-
dropdownIcon: ForwardRef$
|
|
1012
|
+
dropdownIcon: ForwardRef$P,
|
|
891
1013
|
},
|
|
892
1014
|
};
|
|
893
1015
|
const alertSettings = {
|
|
894
1016
|
icons: {
|
|
895
|
-
closeIcon: ForwardRef$
|
|
896
|
-
infoIcon: ForwardRef$
|
|
897
|
-
successIcon: ForwardRef$
|
|
898
|
-
warningIcon: ForwardRef$
|
|
899
|
-
errorIcon: ForwardRef$
|
|
1017
|
+
closeIcon: ForwardRef$Q,
|
|
1018
|
+
infoIcon: ForwardRef$J,
|
|
1019
|
+
successIcon: ForwardRef$n,
|
|
1020
|
+
warningIcon: ForwardRef$m,
|
|
1021
|
+
errorIcon: ForwardRef$l,
|
|
900
1022
|
},
|
|
901
1023
|
sizes: {
|
|
902
1024
|
default: '48',
|
|
@@ -908,7 +1030,7 @@ const alertSettings = {
|
|
|
908
1030
|
};
|
|
909
1031
|
const badgeSettings = {
|
|
910
1032
|
icons: {
|
|
911
|
-
dropdownIcon: ForwardRef$
|
|
1033
|
+
dropdownIcon: ForwardRef$P,
|
|
912
1034
|
},
|
|
913
1035
|
sizes: {
|
|
914
1036
|
default: '36',
|
|
@@ -924,8 +1046,8 @@ const badgeSettings = {
|
|
|
924
1046
|
};
|
|
925
1047
|
const buttonSettings = {
|
|
926
1048
|
icons: {
|
|
927
|
-
clearIcon: ForwardRef$
|
|
928
|
-
dropdownIcon: ForwardRef$
|
|
1049
|
+
clearIcon: ForwardRef$Q,
|
|
1050
|
+
dropdownIcon: ForwardRef$P,
|
|
929
1051
|
},
|
|
930
1052
|
sizes: {
|
|
931
1053
|
default: '36',
|
|
@@ -933,8 +1055,8 @@ const buttonSettings = {
|
|
|
933
1055
|
};
|
|
934
1056
|
const checkboxSettings = {
|
|
935
1057
|
icons: {
|
|
936
|
-
checkIcon: ForwardRef$
|
|
937
|
-
indeterminateIcon: ForwardRef$
|
|
1058
|
+
checkIcon: ForwardRef$O,
|
|
1059
|
+
indeterminateIcon: ForwardRef$N,
|
|
938
1060
|
},
|
|
939
1061
|
sizes: {
|
|
940
1062
|
default: '18',
|
|
@@ -946,32 +1068,33 @@ const countIndicatorSettings = {
|
|
|
946
1068
|
},
|
|
947
1069
|
};
|
|
948
1070
|
const dataTableSettings = {
|
|
949
|
-
renderPlaceholder: () => React__namespace.default.createElement(
|
|
1071
|
+
renderPlaceholder: (props) => React__namespace.default.createElement(Text, { size: props.rowSize },
|
|
1072
|
+
React__namespace.default.createElement(TextPlaceholder, null)),
|
|
950
1073
|
icons: {
|
|
951
|
-
emptyTable: ForwardRef$
|
|
1074
|
+
emptyTable: ForwardRef$I,
|
|
952
1075
|
header: {
|
|
953
|
-
configIcon: ForwardRef$
|
|
954
|
-
ascSortIcon: ForwardRef$
|
|
955
|
-
descSortIcon: ForwardRef$
|
|
956
|
-
defaultSortIcon: ForwardRef$
|
|
957
|
-
filterIcon: ForwardRef$
|
|
958
|
-
dropdownIcon: ForwardRef$
|
|
959
|
-
openedDropdownIcon: ForwardRef$
|
|
960
|
-
foldIcon: ForwardRef$
|
|
961
|
-
unfoldIcon: ForwardRef$
|
|
1076
|
+
configIcon: ForwardRef$u,
|
|
1077
|
+
ascSortIcon: ForwardRef$H,
|
|
1078
|
+
descSortIcon: ForwardRef$G,
|
|
1079
|
+
defaultSortIcon: ForwardRef$z,
|
|
1080
|
+
filterIcon: ForwardRef$y,
|
|
1081
|
+
dropdownIcon: ForwardRef$P,
|
|
1082
|
+
openedDropdownIcon: ForwardRef$x,
|
|
1083
|
+
foldIcon: ForwardRef$w,
|
|
1084
|
+
unfoldIcon: ForwardRef$v,
|
|
962
1085
|
},
|
|
963
1086
|
body: {
|
|
964
|
-
foldingIcon: ForwardRef$
|
|
1087
|
+
foldingIcon: ForwardRef$P,
|
|
965
1088
|
},
|
|
966
1089
|
columnsConfigurationModal: {
|
|
967
|
-
dragIndicator: ForwardRef$
|
|
968
|
-
lockIcon: ForwardRef$
|
|
969
|
-
pinLeftIcon: ForwardRef$
|
|
970
|
-
pinRightIcon: ForwardRef$
|
|
971
|
-
collapsedIcon: ForwardRef$
|
|
972
|
-
expandedIcon: ForwardRef$
|
|
973
|
-
menuIcon: ForwardRef$
|
|
974
|
-
resetIcon: ForwardRef$
|
|
1090
|
+
dragIndicator: ForwardRef$F,
|
|
1091
|
+
lockIcon: ForwardRef$C,
|
|
1092
|
+
pinLeftIcon: ForwardRef$B,
|
|
1093
|
+
pinRightIcon: ForwardRef$A,
|
|
1094
|
+
collapsedIcon: ForwardRef$s,
|
|
1095
|
+
expandedIcon: ForwardRef$P,
|
|
1096
|
+
menuIcon: ForwardRef$E,
|
|
1097
|
+
resetIcon: ForwardRef$D,
|
|
975
1098
|
},
|
|
976
1099
|
},
|
|
977
1100
|
sizes: {
|
|
@@ -1028,18 +1151,18 @@ const dataTableSettings = {
|
|
|
1028
1151
|
};
|
|
1029
1152
|
const dropdownMenuSettings = {
|
|
1030
1153
|
icons: {
|
|
1031
|
-
acceptIcon: ForwardRef$
|
|
1032
|
-
dropdownIcon: ForwardRef$
|
|
1154
|
+
acceptIcon: ForwardRef$O,
|
|
1155
|
+
dropdownIcon: ForwardRef$P,
|
|
1033
1156
|
},
|
|
1034
1157
|
};
|
|
1035
1158
|
const datePickerSettings = {
|
|
1036
1159
|
icons: {
|
|
1037
1160
|
body: {
|
|
1038
|
-
prevIcon: ForwardRef$
|
|
1039
|
-
nextIcon: ForwardRef$
|
|
1161
|
+
prevIcon: ForwardRef$t,
|
|
1162
|
+
nextIcon: ForwardRef$s,
|
|
1040
1163
|
},
|
|
1041
1164
|
input: {
|
|
1042
|
-
calendarIcon: ForwardRef$
|
|
1165
|
+
calendarIcon: ForwardRef$L,
|
|
1043
1166
|
},
|
|
1044
1167
|
},
|
|
1045
1168
|
sizes: {
|
|
@@ -1049,17 +1172,17 @@ const datePickerSettings = {
|
|
|
1049
1172
|
};
|
|
1050
1173
|
const fileCardSettings = {
|
|
1051
1174
|
icons: {
|
|
1052
|
-
docIcon: ForwardRef$
|
|
1053
|
-
exelIcon: ForwardRef$
|
|
1054
|
-
pdfIcon: ForwardRef$
|
|
1055
|
-
imgIcon: ForwardRef$
|
|
1056
|
-
videoIcon: ForwardRef$
|
|
1057
|
-
tableIcon: ForwardRef$
|
|
1058
|
-
textIcon: ForwardRef$
|
|
1059
|
-
mailIcon: ForwardRef$
|
|
1060
|
-
fileIcon: ForwardRef$
|
|
1061
|
-
closeIcon: ForwardRef$
|
|
1062
|
-
errorIcon: ForwardRef$
|
|
1175
|
+
docIcon: ForwardRef$e,
|
|
1176
|
+
exelIcon: ForwardRef$d,
|
|
1177
|
+
pdfIcon: ForwardRef$c,
|
|
1178
|
+
imgIcon: ForwardRef$b,
|
|
1179
|
+
videoIcon: ForwardRef$a,
|
|
1180
|
+
tableIcon: ForwardRef$9,
|
|
1181
|
+
textIcon: ForwardRef$8,
|
|
1182
|
+
mailIcon: ForwardRef$7,
|
|
1183
|
+
fileIcon: ForwardRef$6,
|
|
1184
|
+
closeIcon: ForwardRef$Q,
|
|
1185
|
+
errorIcon: ForwardRef$l,
|
|
1063
1186
|
},
|
|
1064
1187
|
};
|
|
1065
1188
|
const flexRowSettings = {
|
|
@@ -1068,23 +1191,31 @@ const flexRowSettings = {
|
|
|
1068
1191
|
},
|
|
1069
1192
|
};
|
|
1070
1193
|
const filtersPanelSettings = {
|
|
1194
|
+
renderPlaceholder: () => React__namespace.default.createElement(TextPlaceholder, null),
|
|
1071
1195
|
icons: {
|
|
1072
|
-
addFilterIcon: ForwardRef$
|
|
1073
|
-
itemDropdownIcon: ForwardRef$
|
|
1196
|
+
addFilterIcon: ForwardRef$r,
|
|
1197
|
+
itemDropdownIcon: ForwardRef$P,
|
|
1198
|
+
pickerBodyRemoveIcon: ForwardRef$k,
|
|
1074
1199
|
},
|
|
1075
1200
|
sizes: {
|
|
1076
1201
|
default: '36',
|
|
1202
|
+
footerLinkButton: '36',
|
|
1203
|
+
mobileFooterLinkButton: '48',
|
|
1204
|
+
pickerBodyMultiSwitch: '24',
|
|
1205
|
+
pickerBodyLinkButton: '24',
|
|
1206
|
+
pickerBodyMinWidth: 360,
|
|
1207
|
+
rangeDatePickerInput: '30',
|
|
1077
1208
|
},
|
|
1078
1209
|
};
|
|
1079
1210
|
const iconButtonSettings = {
|
|
1080
1211
|
icons: {
|
|
1081
|
-
dropdownIcon: ForwardRef$
|
|
1212
|
+
dropdownIcon: ForwardRef$P,
|
|
1082
1213
|
},
|
|
1083
1214
|
};
|
|
1084
1215
|
const labeledInputSettings = {
|
|
1085
1216
|
icons: {
|
|
1086
|
-
infoIcon: ForwardRef$
|
|
1087
|
-
fillInfoIcon: ForwardRef$
|
|
1217
|
+
infoIcon: ForwardRef$K,
|
|
1218
|
+
fillInfoIcon: ForwardRef$J,
|
|
1088
1219
|
},
|
|
1089
1220
|
sizes: {
|
|
1090
1221
|
default: '36',
|
|
@@ -1092,7 +1223,7 @@ const labeledInputSettings = {
|
|
|
1092
1223
|
};
|
|
1093
1224
|
const linkButtonSettings = {
|
|
1094
1225
|
icons: {
|
|
1095
|
-
dropdownIcon: ForwardRef$
|
|
1226
|
+
dropdownIcon: ForwardRef$P,
|
|
1096
1227
|
},
|
|
1097
1228
|
sizes: {
|
|
1098
1229
|
default: '36',
|
|
@@ -1101,24 +1232,25 @@ const linkButtonSettings = {
|
|
|
1101
1232
|
};
|
|
1102
1233
|
const modalSettings = {
|
|
1103
1234
|
icons: {
|
|
1104
|
-
closeIcon: ForwardRef$
|
|
1235
|
+
closeIcon: ForwardRef$Q,
|
|
1105
1236
|
},
|
|
1106
1237
|
};
|
|
1107
1238
|
const notificationCardSettings = {
|
|
1108
1239
|
icons: {
|
|
1109
|
-
closeIcon: ForwardRef$
|
|
1110
|
-
hintIcon: ForwardRef$
|
|
1111
|
-
successIcon: ForwardRef$
|
|
1112
|
-
warningIcon: ForwardRef$
|
|
1113
|
-
errorIcon: ForwardRef$
|
|
1240
|
+
closeIcon: ForwardRef$Q,
|
|
1241
|
+
hintIcon: ForwardRef$o,
|
|
1242
|
+
successIcon: ForwardRef$n,
|
|
1243
|
+
warningIcon: ForwardRef$m,
|
|
1244
|
+
errorIcon: ForwardRef$l,
|
|
1114
1245
|
},
|
|
1115
1246
|
sizes: {
|
|
1116
1247
|
action: '30',
|
|
1248
|
+
icon: 24,
|
|
1117
1249
|
},
|
|
1118
1250
|
};
|
|
1119
1251
|
const numericInputSettings = {
|
|
1120
1252
|
icons: {
|
|
1121
|
-
arrowIcon: ForwardRef$
|
|
1253
|
+
arrowIcon: ForwardRef$P,
|
|
1122
1254
|
},
|
|
1123
1255
|
sizes: {
|
|
1124
1256
|
default: '36',
|
|
@@ -1126,24 +1258,25 @@ const numericInputSettings = {
|
|
|
1126
1258
|
};
|
|
1127
1259
|
const paginatorSettings = {
|
|
1128
1260
|
icons: {
|
|
1129
|
-
leftArrowIcon: ForwardRef$
|
|
1130
|
-
rightArrowIcon: ForwardRef$
|
|
1261
|
+
leftArrowIcon: ForwardRef$t,
|
|
1262
|
+
rightArrowIcon: ForwardRef$s,
|
|
1131
1263
|
},
|
|
1132
1264
|
sizes: {
|
|
1133
|
-
default: '
|
|
1265
|
+
default: '30',
|
|
1134
1266
|
},
|
|
1135
1267
|
};
|
|
1136
1268
|
const pickerInputSettings = {
|
|
1137
|
-
renderPlaceholder: () => React__namespace.default.createElement(
|
|
1269
|
+
renderPlaceholder: (props) => React__namespace.default.createElement(Text, { size: props.rowSize },
|
|
1270
|
+
React__namespace.default.createElement(TextPlaceholder, null)),
|
|
1138
1271
|
icons: {
|
|
1139
1272
|
toggler: {
|
|
1140
|
-
clearIcon: ForwardRef$
|
|
1141
|
-
dropdownIcon: ForwardRef$
|
|
1273
|
+
clearIcon: ForwardRef$Q,
|
|
1274
|
+
dropdownIcon: ForwardRef$P,
|
|
1142
1275
|
},
|
|
1143
1276
|
body: {
|
|
1144
|
-
selectIcon: (size) => size < '30' ? ForwardRef$
|
|
1145
|
-
pickerBodyMobileHeaderCloseIcon: ForwardRef$
|
|
1146
|
-
modalNotFoundSearchIcon: ForwardRef$
|
|
1277
|
+
selectIcon: (size) => size < '30' ? ForwardRef$q : ForwardRef$O,
|
|
1278
|
+
pickerBodyMobileHeaderCloseIcon: ForwardRef$Q,
|
|
1279
|
+
modalNotFoundSearchIcon: ForwardRef$4,
|
|
1147
1280
|
},
|
|
1148
1281
|
},
|
|
1149
1282
|
sizes: {
|
|
@@ -1200,12 +1333,32 @@ const pickerInputSettings = {
|
|
|
1200
1333
|
mobileFooterLinkButton: '48',
|
|
1201
1334
|
mobileRow: '48',
|
|
1202
1335
|
mobileSearchInput: '48',
|
|
1336
|
+
getSearchSize: ({ pickerSize }) => {
|
|
1337
|
+
return pickerSize;
|
|
1338
|
+
},
|
|
1203
1339
|
},
|
|
1204
1340
|
},
|
|
1205
1341
|
};
|
|
1342
|
+
const presetsPanelSettings = {
|
|
1343
|
+
icons: {
|
|
1344
|
+
addIcon: ForwardRef$r,
|
|
1345
|
+
copyIcon: ForwardRef$h,
|
|
1346
|
+
copyLinkIcon: ForwardRef$j,
|
|
1347
|
+
deleteIcon: ForwardRef$k,
|
|
1348
|
+
discardChangesIcon: ForwardRef$g,
|
|
1349
|
+
menuIcon: ForwardRef$E,
|
|
1350
|
+
renameIcon: ForwardRef$i,
|
|
1351
|
+
saveAsNewIcon: ForwardRef$f,
|
|
1352
|
+
saveInCurrentIcon: ForwardRef$D,
|
|
1353
|
+
},
|
|
1354
|
+
sizes: {
|
|
1355
|
+
tabButton: '60',
|
|
1356
|
+
dropdownTargetIconButton: '18',
|
|
1357
|
+
},
|
|
1358
|
+
};
|
|
1206
1359
|
const radioInputSettings = {
|
|
1207
1360
|
icons: {
|
|
1208
|
-
dotIcon: ForwardRef$
|
|
1361
|
+
dotIcon: ForwardRef$p,
|
|
1209
1362
|
},
|
|
1210
1363
|
sizes: {
|
|
1211
1364
|
default: '18',
|
|
@@ -1214,7 +1367,7 @@ const radioInputSettings = {
|
|
|
1214
1367
|
const rangeDatePickerSettings = {
|
|
1215
1368
|
icons: {
|
|
1216
1369
|
input: {
|
|
1217
|
-
calendarIcon: ForwardRef$
|
|
1370
|
+
calendarIcon: ForwardRef$L,
|
|
1218
1371
|
},
|
|
1219
1372
|
},
|
|
1220
1373
|
sizes: {
|
|
@@ -1224,8 +1377,8 @@ const rangeDatePickerSettings = {
|
|
|
1224
1377
|
};
|
|
1225
1378
|
const ratingSettings = {
|
|
1226
1379
|
icons: {
|
|
1227
|
-
filledRatingIcon: ForwardRef$
|
|
1228
|
-
emptyRatingIcon: ForwardRef$
|
|
1380
|
+
filledRatingIcon: ForwardRef$5,
|
|
1381
|
+
emptyRatingIcon: ForwardRef$5,
|
|
1229
1382
|
},
|
|
1230
1383
|
sizes: {
|
|
1231
1384
|
default: 18,
|
|
@@ -1248,8 +1401,8 @@ const switchSettings = {
|
|
|
1248
1401
|
};
|
|
1249
1402
|
const tabButtonSettings = {
|
|
1250
1403
|
icons: {
|
|
1251
|
-
clearIcon: ForwardRef$
|
|
1252
|
-
dropdownIcon: ForwardRef$
|
|
1404
|
+
clearIcon: ForwardRef$Q,
|
|
1405
|
+
dropdownIcon: ForwardRef$P,
|
|
1253
1406
|
},
|
|
1254
1407
|
sizes: {
|
|
1255
1408
|
default: '48',
|
|
@@ -1262,8 +1415,8 @@ const tabButtonSettings = {
|
|
|
1262
1415
|
};
|
|
1263
1416
|
const tagSettings = {
|
|
1264
1417
|
icons: {
|
|
1265
|
-
clearIcon: ForwardRef$
|
|
1266
|
-
dropdownIcon: ForwardRef$
|
|
1418
|
+
clearIcon: ForwardRef$Q,
|
|
1419
|
+
dropdownIcon: ForwardRef$P,
|
|
1267
1420
|
},
|
|
1268
1421
|
sizes: {
|
|
1269
1422
|
default: '36',
|
|
@@ -1289,10 +1442,10 @@ const textAreaSettings = {
|
|
|
1289
1442
|
};
|
|
1290
1443
|
const textInputSettings = {
|
|
1291
1444
|
icons: {
|
|
1292
|
-
acceptIcon: ForwardRef$
|
|
1293
|
-
clearIcon: ForwardRef$
|
|
1294
|
-
dropdownIcon: ForwardRef$
|
|
1295
|
-
searchIcon: ForwardRef$
|
|
1445
|
+
acceptIcon: ForwardRef$O,
|
|
1446
|
+
clearIcon: ForwardRef$Q,
|
|
1447
|
+
dropdownIcon: ForwardRef$P,
|
|
1448
|
+
searchIcon: ForwardRef$M,
|
|
1296
1449
|
},
|
|
1297
1450
|
sizes: {
|
|
1298
1451
|
default: '36',
|
|
@@ -1323,6 +1476,7 @@ const settings = {
|
|
|
1323
1476
|
numericInput: numericInputSettings,
|
|
1324
1477
|
paginator: paginatorSettings,
|
|
1325
1478
|
pickerInput: pickerInputSettings,
|
|
1479
|
+
presetsPanel: presetsPanelSettings,
|
|
1326
1480
|
radioInput: radioInputSettings,
|
|
1327
1481
|
rangeDatePicker: rangeDatePickerSettings,
|
|
1328
1482
|
rating: ratingSettings,
|
|
@@ -1336,11 +1490,11 @@ const settings = {
|
|
|
1336
1490
|
textInput: textInputSettings,
|
|
1337
1491
|
};
|
|
1338
1492
|
|
|
1339
|
-
var css$
|
|
1493
|
+
var css$1t = {"root":"_8LENSy"};
|
|
1340
1494
|
|
|
1341
1495
|
function applyButtonMods(mods) {
|
|
1342
1496
|
return [
|
|
1343
|
-
css$
|
|
1497
|
+
css$1t.root,
|
|
1344
1498
|
'uui-button',
|
|
1345
1499
|
`uui-fill-${mods.fill || 'solid'}`,
|
|
1346
1500
|
`uui-color-${mods.color || 'primary'}`,
|
|
@@ -1354,10 +1508,10 @@ const Button = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Button,
|
|
|
1354
1508
|
};
|
|
1355
1509
|
});
|
|
1356
1510
|
|
|
1357
|
-
var css$
|
|
1511
|
+
var css$1s = {"root":"ZmDoB4"};
|
|
1358
1512
|
|
|
1359
1513
|
function applyIconButtonMods(props) {
|
|
1360
|
-
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$
|
|
1514
|
+
return ['uui-icon_button', `uui-color-${props.color || 'neutral'}`, css$1s.root];
|
|
1361
1515
|
}
|
|
1362
1516
|
const IconButton = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.IconButton, applyIconButtonMods, (props) => {
|
|
1363
1517
|
const isDeprecated = ['info', 'success', 'error', 'warning'].includes(props.color);
|
|
@@ -1391,10 +1545,10 @@ function getIconClass(props) {
|
|
|
1391
1545
|
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'];
|
|
1392
1546
|
}
|
|
1393
1547
|
|
|
1394
|
-
var css$
|
|
1548
|
+
var css$1r = {"root":"FbfXCu"};
|
|
1395
1549
|
|
|
1396
1550
|
const DEFAULT_COLOR = 'primary';
|
|
1397
|
-
|
|
1551
|
+
const LinkButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
1398
1552
|
if (process.env.NODE_ENV !== "production" && props.color === 'contrast') {
|
|
1399
1553
|
uuiCore.devLogger.warnAboutDeprecatedPropValue({
|
|
1400
1554
|
component: 'LinkButton',
|
|
@@ -1406,7 +1560,7 @@ function LinkButton(props) {
|
|
|
1406
1560
|
}
|
|
1407
1561
|
const rootStyles = [
|
|
1408
1562
|
'uui-link_button',
|
|
1409
|
-
css$
|
|
1563
|
+
css$1r.root,
|
|
1410
1564
|
`uui-size-${props.size || settings.linkButton.sizes.default}`,
|
|
1411
1565
|
...getIconClass(props),
|
|
1412
1566
|
`uui-color-${props.color || DEFAULT_COLOR}`,
|
|
@@ -1414,30 +1568,30 @@ function LinkButton(props) {
|
|
|
1414
1568
|
];
|
|
1415
1569
|
const captionStyles = cx__default.default(uuiCore.uuiElement.caption, props.underline && `uui-underline-${props.underline}`, `uui-link-button-weight-${props.weight || settings.linkButton.weight}`);
|
|
1416
1570
|
const DropdownIcon = props.dropdownIcon ? props.dropdownIcon : settings.linkButton.icons.dropdownIcon;
|
|
1417
|
-
return (React__namespace.createElement(uuiComponents.Clickable, { ...props, type: "button", cx: rootStyles, ref:
|
|
1571
|
+
return (React__namespace.createElement(uuiComponents.Clickable, { ...props, type: "button", cx: rootStyles, ref: ref },
|
|
1418
1572
|
props.icon && props.iconPosition !== 'right' && (React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1419
1573
|
props.caption && (React__namespace.createElement("div", { className: captionStyles }, props.caption)),
|
|
1420
1574
|
props.icon && props.iconPosition === 'right' && (React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1421
1575
|
props.isDropdown && (React__namespace.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
1422
|
-
}
|
|
1576
|
+
});
|
|
1423
1577
|
|
|
1424
|
-
var css$
|
|
1578
|
+
var css$1q = {"root":"XP5xNz"};
|
|
1425
1579
|
|
|
1426
|
-
|
|
1427
|
-
return (React__namespace.default.createElement("div", { ref:
|
|
1428
|
-
css$
|
|
1580
|
+
const CountIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
1581
|
+
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
1582
|
+
css$1q.root,
|
|
1429
1583
|
'uui-count_indicator',
|
|
1430
1584
|
`uui-size-${props.size || settings.countIndicator.sizes.default}`,
|
|
1431
1585
|
props.color && `uui-color-${props.color}`,
|
|
1432
1586
|
props.cx,
|
|
1433
1587
|
]) }, props.caption));
|
|
1434
|
-
}
|
|
1588
|
+
});
|
|
1435
1589
|
|
|
1436
|
-
var css$
|
|
1590
|
+
var css$1p = {"root":"ePPnR9","withNotify":"_8n19K1"};
|
|
1437
1591
|
|
|
1438
|
-
|
|
1592
|
+
const TabButton = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
1439
1593
|
const styles = [
|
|
1440
|
-
css$
|
|
1594
|
+
css$1p.root,
|
|
1441
1595
|
'uui-tab-button',
|
|
1442
1596
|
`uui-size-${props.size || settings.tabButton.sizes.default}`,
|
|
1443
1597
|
...getIconClass(props),
|
|
@@ -1450,31 +1604,31 @@ function TabButton(props) {
|
|
|
1450
1604
|
'aria-haspopup': props.isDropdown,
|
|
1451
1605
|
'aria-expanded': props.isOpen,
|
|
1452
1606
|
...props.rawProps,
|
|
1453
|
-
}, cx: styles, ref:
|
|
1607
|
+
}, cx: styles, ref: ref },
|
|
1454
1608
|
props.icon && props.iconPosition !== 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1455
1609
|
(props.caption || props.withNotify) && (React__namespace.default.createElement("div", { className: uuiCore.cx(uuiCore.uuiElement.caption) },
|
|
1456
1610
|
props.caption,
|
|
1457
|
-
props.withNotify && React__namespace.default.createElement("div", { className: css$
|
|
1611
|
+
props.withNotify && React__namespace.default.createElement("div", { className: css$1p.withNotify }))),
|
|
1458
1612
|
props.icon && props.iconPosition === 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
1459
1613
|
props.count !== undefined && props.count !== null && (React__namespace.default.createElement(CountIndicator, { color: "neutral", size: settings.tabButton.sizes.countIndicatorMap[props.size || settings.tabButton.sizes.default], caption: props.count })),
|
|
1460
1614
|
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
1461
1615
|
props.onClear && !props.isDisabled && (React__namespace.default.createElement(uuiComponents.IconContainer, { cx: uuiCore.uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
1462
|
-
}
|
|
1616
|
+
});
|
|
1463
1617
|
|
|
1464
|
-
var css$
|
|
1618
|
+
var css$1o = {"root":"_7d35eV"};
|
|
1465
1619
|
|
|
1466
1620
|
function applyVerticalTabButtonMods() {
|
|
1467
|
-
return [css$
|
|
1621
|
+
return [css$1o.root, 'uui-vertical-tab-button'];
|
|
1468
1622
|
}
|
|
1469
1623
|
const VerticalTabButton = /* @__PURE__ */uuiCore.withMods(TabButton, applyVerticalTabButtonMods);
|
|
1470
1624
|
|
|
1471
|
-
var css$
|
|
1625
|
+
var css$1n = {"root":"_0REWSO"};
|
|
1472
1626
|
|
|
1473
1627
|
function applyCheckboxMods(mods) {
|
|
1474
1628
|
return [
|
|
1475
|
-
css$
|
|
1629
|
+
css$1n.root,
|
|
1476
1630
|
`uui-size-${mods.size || settings.checkbox.sizes.default}`,
|
|
1477
|
-
|
|
1631
|
+
'uui-control-mode-' + (mods.mode || 'form'),
|
|
1478
1632
|
'uui-color-primary',
|
|
1479
1633
|
];
|
|
1480
1634
|
}
|
|
@@ -1486,11 +1640,11 @@ const applyUUICheckboxProps = (props) => {
|
|
|
1486
1640
|
};
|
|
1487
1641
|
const Checkbox = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Checkbox, applyCheckboxMods, applyUUICheckboxProps);
|
|
1488
1642
|
|
|
1489
|
-
var css$
|
|
1643
|
+
var css$1m = {"root":"CEt6HW"};
|
|
1490
1644
|
|
|
1491
1645
|
function applyRadioInputMods(mods) {
|
|
1492
1646
|
return [
|
|
1493
|
-
css$
|
|
1647
|
+
css$1m.root,
|
|
1494
1648
|
`uui-size-${mods.size || settings.radioInput.sizes.default}`,
|
|
1495
1649
|
'uui-radio-input-container',
|
|
1496
1650
|
'uui-color-primary',
|
|
@@ -1498,11 +1652,11 @@ function applyRadioInputMods(mods) {
|
|
|
1498
1652
|
}
|
|
1499
1653
|
const RadioInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.RadioInput, applyRadioInputMods, (props) => ({ icon: props.icon ? props.icon : settings.radioInput.icons.dotIcon }));
|
|
1500
1654
|
|
|
1501
|
-
var css$
|
|
1655
|
+
var css$1l = {"root":"XY8Itq"};
|
|
1502
1656
|
|
|
1503
1657
|
function applySwitchMods(mods) {
|
|
1504
1658
|
return [
|
|
1505
|
-
css$
|
|
1659
|
+
css$1l.root,
|
|
1506
1660
|
`uui-size-${mods.size || settings.switch.sizes.default}`,
|
|
1507
1661
|
'uui-color-primary',
|
|
1508
1662
|
];
|
|
@@ -1522,14 +1676,14 @@ var EditMode;
|
|
|
1522
1676
|
EditMode["INLINE"] = "inline";
|
|
1523
1677
|
})(EditMode || (EditMode = {}));
|
|
1524
1678
|
|
|
1525
|
-
var textInputCss = {"root":"
|
|
1679
|
+
var textInputCss = {"root":"Z7YD0x"};
|
|
1526
1680
|
|
|
1527
1681
|
const DEFAULT_MODE$3 = EditMode.FORM;
|
|
1528
1682
|
function applyTextInputMods(mods) {
|
|
1529
1683
|
return [
|
|
1530
1684
|
textInputCss.root,
|
|
1531
1685
|
`uui-size-${mods.size || settings.textInput.sizes.default}`,
|
|
1532
|
-
|
|
1686
|
+
'uui-control-mode-' + (mods.mode || DEFAULT_MODE$3),
|
|
1533
1687
|
];
|
|
1534
1688
|
}
|
|
1535
1689
|
const TextInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.TextInput, applyTextInputMods, () => ({
|
|
@@ -1537,42 +1691,41 @@ const TextInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.TextInput, apply
|
|
|
1537
1691
|
cancelIcon: settings.textInput.icons.clearIcon,
|
|
1538
1692
|
dropdownIcon: settings.textInput.icons.dropdownIcon,
|
|
1539
1693
|
}));
|
|
1540
|
-
const SearchInput = (props) => {
|
|
1694
|
+
const SearchInput = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
1541
1695
|
// analytics events are sending in IEditableDebouncer, so we need to avoid sending events in TextInput
|
|
1542
1696
|
const { ...textInputProps } = props;
|
|
1543
1697
|
delete textInputProps.getValueChangeAnalyticsEvent;
|
|
1544
1698
|
return (React__namespace.default.createElement(uuiCore.IEditableDebouncer, { ...props, render: (iEditable) => {
|
|
1545
1699
|
const defaultOnCancel = () => iEditable.onValueChange('');
|
|
1546
|
-
return (React__namespace.default.createElement(TextInput, { icon: settings.textInput.icons.searchIcon, onCancel: props.onCancel ?? defaultOnCancel, type: "search", inputMode: "search", ref:
|
|
1700
|
+
return (React__namespace.default.createElement(TextInput, { icon: settings.textInput.icons.searchIcon, onCancel: props.onCancel ?? defaultOnCancel, type: "search", inputMode: "search", ref: ref, ...textInputProps, ...iEditable }));
|
|
1547
1701
|
} }));
|
|
1548
|
-
};
|
|
1702
|
+
});
|
|
1549
1703
|
|
|
1550
|
-
var css$
|
|
1704
|
+
var css$1k = {"root":"_14bZNm"};
|
|
1551
1705
|
|
|
1552
|
-
const ControlGroup = /* @__PURE__ */uuiCore.withMods(uuiComponents.ControlGroup, () => [css$
|
|
1706
|
+
const ControlGroup = /* @__PURE__ */uuiCore.withMods(uuiComponents.ControlGroup, () => [css$1k.root, 'uui-control-group']);
|
|
1553
1707
|
|
|
1554
|
-
function MultiSwitchComponent(props) {
|
|
1555
|
-
|
|
1556
|
-
return (React__namespace.createElement(ControlGroup, { ref: props.ref, rawProps: {
|
|
1708
|
+
function MultiSwitchComponent(props, ref) {
|
|
1709
|
+
return (React__namespace.createElement(ControlGroup, { ref: ref, rawProps: {
|
|
1557
1710
|
...props.rawProps,
|
|
1558
1711
|
role: 'tablist',
|
|
1559
1712
|
'aria-invalid': props.isInvalid,
|
|
1560
1713
|
'aria-required': props.isRequired,
|
|
1561
1714
|
'aria-disabled': props.isDisabled,
|
|
1562
1715
|
'aria-readonly': props.isReadonly,
|
|
1563
|
-
} }, props.items.map((item, index) => (React__namespace.createElement(Button, { ...
|
|
1716
|
+
} }, props.items.map((item, index) => (React__namespace.createElement(Button, { ...props, ...item, isDisabled: props.isDisabled, key: index + '-' + item.id, onClick: !props.isReadonly && (() => props.onValueChange(item.id)), fill: props.value === item.id ? 'solid' : 'outline', color: props.color, size: props.size, rawProps: { 'aria-current': props.value === item.id, role: 'tab' } })))));
|
|
1564
1717
|
}
|
|
1565
|
-
const MultiSwitch = MultiSwitchComponent;
|
|
1718
|
+
const MultiSwitch = /* @__PURE__ */React__namespace.forwardRef(MultiSwitchComponent);
|
|
1566
1719
|
|
|
1567
|
-
var css$
|
|
1720
|
+
var css$1j = {"root":"PJL-Lx"};
|
|
1568
1721
|
|
|
1569
1722
|
const DEFAULT_MODE$2 = EditMode.FORM;
|
|
1570
1723
|
function applyNumericInputMods(mods) {
|
|
1571
1724
|
return [
|
|
1572
1725
|
textInputCss.root,
|
|
1573
|
-
css$
|
|
1726
|
+
css$1j.root,
|
|
1574
1727
|
`uui-size-${mods.size || settings.numericInput.sizes.default}`,
|
|
1575
|
-
|
|
1728
|
+
'uui-control-mode-' + (mods.mode || DEFAULT_MODE$2),
|
|
1576
1729
|
];
|
|
1577
1730
|
}
|
|
1578
1731
|
const NumericInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.NumericInput, applyNumericInputMods, (props) => {
|
|
@@ -1584,15 +1737,15 @@ const NumericInput = /* @__PURE__ */uuiCore.withMods(uuiComponents.NumericInput,
|
|
|
1584
1737
|
};
|
|
1585
1738
|
});
|
|
1586
1739
|
|
|
1587
|
-
var css$
|
|
1740
|
+
var css$1i = {"root":"WHoHoY"};
|
|
1588
1741
|
|
|
1589
1742
|
const DEFAULT_MODE$1 = EditMode.FORM;
|
|
1590
1743
|
function applyTextAreaMods(mods) {
|
|
1591
1744
|
return [
|
|
1592
|
-
css$
|
|
1745
|
+
css$1i.root,
|
|
1593
1746
|
'uui-textarea',
|
|
1594
1747
|
'uui-size-' + (mods.size || settings.textArea.sizes.default),
|
|
1595
|
-
|
|
1748
|
+
'uui-control-mode-' + (mods.mode || DEFAULT_MODE$1),
|
|
1596
1749
|
];
|
|
1597
1750
|
}
|
|
1598
1751
|
const TextArea = /* @__PURE__ */uuiCore.withMods(uuiComponents.TextArea, applyTextAreaMods, (props) => {
|
|
@@ -1625,244 +1778,228 @@ function TREE_SHAKEABLE_INIT$1() {
|
|
|
1625
1778
|
};
|
|
1626
1779
|
}
|
|
1627
1780
|
|
|
1628
|
-
var css$
|
|
1629
|
-
|
|
1630
|
-
function Alert(props) {
|
|
1631
|
-
return (React__namespace.createElement("div", { role: "alert", ref: props.ref, className: cx__default.default('uui-alert', css$1j.root, props.color && `uui-color-${props.color}`, props.cx, `uui-size-${props.size || settings.alert.sizes.default}`), ...props.rawProps },
|
|
1632
|
-
React__namespace.createElement("div", { className: css$1j.mainPath },
|
|
1633
|
-
React__namespace.createElement("div", { className: css$1j.contentWrapper },
|
|
1634
|
-
props.icon && (React__namespace.createElement("div", { className: css$1j.iconWrapper },
|
|
1635
|
-
React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$1j.icon }))),
|
|
1636
|
-
React__namespace.createElement("div", { className: css$1j.content },
|
|
1637
|
-
props.children,
|
|
1638
|
-
props.actions && (React__namespace.createElement("div", { className: css$1j.actionWrapper }, props.actions.map((action) => (React__namespace.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$1j.actionLink, size: settings.alert.sizes.actionMap[props.size || settings.alert.sizes.default] }))))))),
|
|
1639
|
-
props.onClose && React__namespace.createElement(IconButton, { icon: settings.alert.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$1j.closeIcon }))));
|
|
1640
|
-
}
|
|
1641
|
-
function WarningAlert(props) {
|
|
1642
|
-
return React__namespace.createElement(Alert, { icon: settings.alert.icons.warningIcon, color: "warning", ...props });
|
|
1643
|
-
}
|
|
1644
|
-
function SuccessAlert(props) {
|
|
1645
|
-
return React__namespace.createElement(Alert, { icon: settings.alert.icons.successIcon, color: "success", ...props });
|
|
1646
|
-
}
|
|
1647
|
-
function HintAlert(props) {
|
|
1648
|
-
return React__namespace.createElement(Alert, { icon: settings.alert.icons.infoIcon, color: "info", ...props });
|
|
1649
|
-
}
|
|
1650
|
-
function ErrorAlert(props) {
|
|
1651
|
-
return React__namespace.createElement(Alert, { icon: settings.alert.icons.errorIcon, color: "error", ...props });
|
|
1652
|
-
}
|
|
1653
|
-
|
|
1654
|
-
const Dropdown = /* @__PURE__ */uuiCore.withMods(uuiComponents.Dropdown);
|
|
1655
|
-
|
|
1656
|
-
var css$1i = {"root":"jwQC8a"};
|
|
1781
|
+
var css$1h = {"root":"cHa1UC"};
|
|
1657
1782
|
|
|
1658
1783
|
function applyDropdownContainerMods(mods) {
|
|
1659
1784
|
return [
|
|
1660
|
-
css$
|
|
1785
|
+
css$1h.root,
|
|
1661
1786
|
mods.vPadding && `vPadding-${mods.vPadding}`,
|
|
1662
1787
|
mods.padding && `padding-${mods.padding}`,
|
|
1663
1788
|
];
|
|
1664
1789
|
}
|
|
1665
1790
|
const DropdownContainer = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.DropdownContainer, applyDropdownContainerMods);
|
|
1666
1791
|
|
|
1667
|
-
var css$
|
|
1792
|
+
var css$1g = {"root":"sDzWEC","timepicker-input":"mW1GJK","timepickerInput":"mW1GJK","ltr-always":"w6j8aG","ltrAlways":"w6j8aG"};
|
|
1668
1793
|
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
const
|
|
1681
|
-
const
|
|
1682
|
-
const
|
|
1683
|
-
|
|
1684
|
-
setFocused(nextFocusedIndex);
|
|
1685
|
-
menuItems[nextFocusedIndex].focus();
|
|
1686
|
-
}
|
|
1687
|
-
};
|
|
1688
|
-
const handleArrowKeys = (e) => {
|
|
1689
|
-
const lastMenuItemsIndex = menuItems.length - 1;
|
|
1690
|
-
if (e.key === exports.IDropdownControlKeys.UP_ARROW) {
|
|
1691
|
-
changeFocus(currentlyFocused > 0 ? currentlyFocused - 1 : lastMenuItemsIndex);
|
|
1692
|
-
e.preventDefault();
|
|
1693
|
-
}
|
|
1694
|
-
else if (e.key === exports.IDropdownControlKeys.DOWN_ARROW) {
|
|
1695
|
-
changeFocus(currentlyFocused < lastMenuItemsIndex ? currentlyFocused + 1 : 0);
|
|
1696
|
-
e.preventDefault();
|
|
1697
|
-
}
|
|
1698
|
-
else if (e.key === props.closeOnKey && props.onClose) {
|
|
1699
|
-
e.stopPropagation();
|
|
1700
|
-
props.onClose();
|
|
1701
|
-
}
|
|
1794
|
+
const uuiTimePicker = {
|
|
1795
|
+
container: 'uui-timepicker-container',
|
|
1796
|
+
iconUp: 'uui-timepicker-icon-up',
|
|
1797
|
+
iconDown: 'uui-timepicker-icon-down',
|
|
1798
|
+
input: 'uui-timepicker-input',
|
|
1799
|
+
elementContainer: 'uui-timepicker-item',
|
|
1800
|
+
};
|
|
1801
|
+
const MIN_MINUTES = 0;
|
|
1802
|
+
const MAX_MINUTES = 59;
|
|
1803
|
+
const FORMAT_12H = 12;
|
|
1804
|
+
function TimePickerBody(props) {
|
|
1805
|
+
const MIN_HOURS = props.format === FORMAT_12H ? 1 : 0;
|
|
1806
|
+
const MAX_HOURS = props.format || FORMAT_12H;
|
|
1807
|
+
const setValue = (newTime) => {
|
|
1808
|
+
props.onValueChange({ hours: newTime.hour(), minutes: newTime.minute() });
|
|
1702
1809
|
};
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
const DropdownMenuBody = /* @__PURE__ */uuiCore.withMods(DropdownMenuContainer, () => ['uui-dropdownMenu-body'], (props) => {
|
|
1706
|
-
return ({ closeOnKey: exports.IDropdownControlKeys.ESCAPE, ...props });
|
|
1707
|
-
});
|
|
1708
|
-
function DropdownMenuButton(props) {
|
|
1709
|
-
const context = React.useContext(uuiCore.UuiContext);
|
|
1710
|
-
const { icon, iconPosition, onIconClick, caption, isDisabled, isSelected, isActive, link, href, onClick, toggleDropdownOpening, isDropdown, isOpen, target, } = props;
|
|
1711
|
-
const handleClick = (event) => {
|
|
1712
|
-
if (isDisabled || !onClick)
|
|
1713
|
-
return;
|
|
1714
|
-
!uuiCore.isEventTargetInsideClickable(event) && onClick(event);
|
|
1715
|
-
context.uuiAnalytics.sendEvent(props.clickAnalyticsEvent);
|
|
1810
|
+
const onHoursChange = (newHours) => {
|
|
1811
|
+
setValue(uuiDayjs.dayjs().set(props.value).hour(newHours));
|
|
1716
1812
|
};
|
|
1717
|
-
const
|
|
1718
|
-
|
|
1719
|
-
toggleDropdownOpening(true);
|
|
1720
|
-
}
|
|
1721
|
-
else if (event.key === exports.IDropdownControlKeys.ENTER && onClick) {
|
|
1722
|
-
onClick(event);
|
|
1723
|
-
// Fix bug when click event is triggered after Enter key.
|
|
1724
|
-
// Tricky case when modal window is opened from dropdown menu and click on modal header cross is triggered, that leads to modal close.
|
|
1725
|
-
// https://github.com/epam/UUI/issues/2754
|
|
1726
|
-
event.preventDefault();
|
|
1727
|
-
}
|
|
1813
|
+
const onMinutesChange = (newMinutes) => {
|
|
1814
|
+
setValue(uuiDayjs.dayjs().set(props.value).minute(newMinutes));
|
|
1728
1815
|
};
|
|
1729
|
-
const
|
|
1730
|
-
|
|
1731
|
-
const isIconAfter = Boolean(icon && iconPosition === 'right');
|
|
1732
|
-
const iconElement = (React__namespace.default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: uuiCore.cx(css$1h.icon, iconPosition === 'right' ? css$1h.iconAfter : css$1h.iconBefore) }));
|
|
1733
|
-
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1734
|
-
isIconBefore && iconElement,
|
|
1735
|
-
React__namespace.default.createElement(uuiComponents.Text, { cx: props.indent && css$1h.indent }, caption),
|
|
1736
|
-
isIconAfter && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
1737
|
-
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
1738
|
-
iconElement))));
|
|
1816
|
+
const onTimeTypeChange = () => {
|
|
1817
|
+
setValue(uuiDayjs.dayjs().set(props.value).add(12, 'h'));
|
|
1739
1818
|
};
|
|
1740
|
-
const
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
}
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
}
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
},
|
|
1770
|
-
},
|
|
1771
|
-
},
|
|
1772
|
-
];
|
|
1773
|
-
const isRtl = uuiCore.getDir() === 'rtl';
|
|
1774
|
-
return (React__namespace.default.createElement(uuiComponents.Dropdown, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", openDelay: 400, closeDelay: 400, placement: isRtl ? 'left-start' : 'right-start', modifiers: subMenuModifiers, renderBody: (dropdownProps) => !props.isDisabled && (React__namespace.default.createElement(DropdownMenuBody, { closeOnKey: exports.IDropdownControlKeys.LEFT_ARROW, ...props, ...dropdownProps })), renderTarget: ({ toggleDropdownOpening, ...targetProps }) => (React__namespace.default.createElement(DropdownMenuButton, { cx: uuiCore.cx(isRtl ? css$1h.submenuRootItemRtl : css$1h.submenuRootItem), icon: settings.dropdownMenu.icons.dropdownIcon, iconPosition: "right", isDropdown: true, toggleDropdownOpening: toggleDropdownOpening, ...props, ...targetProps })) }));
|
|
1819
|
+
const handleMinutesUpClick = () => {
|
|
1820
|
+
const minutesStep = props.minutesStep || 5;
|
|
1821
|
+
const value = uuiDayjs.dayjs().set(props.value);
|
|
1822
|
+
const minutesToAdd = minutesStep - (value.minute() % minutesStep);
|
|
1823
|
+
onMinutesChange(value.add(minutesToAdd, 'm').minute());
|
|
1824
|
+
};
|
|
1825
|
+
const handleMinutesDownClick = () => {
|
|
1826
|
+
const minutesStep = props.minutesStep || 5;
|
|
1827
|
+
const value = uuiDayjs.dayjs().set(props.value);
|
|
1828
|
+
const minutesToSubtract = value.minute() % minutesStep === 0 ? minutesStep : value.minute() % minutesStep;
|
|
1829
|
+
onMinutesChange(value.subtract(minutesToSubtract, 'm').minute());
|
|
1830
|
+
};
|
|
1831
|
+
return (React__namespace.createElement("div", { className: uuiCore.cx(css$1g.root, uuiTimePicker.container, props.cx), ref: props.forwardedRef, ...props.rawProps },
|
|
1832
|
+
React__namespace.createElement("div", { className: css$1g.ltrAlways },
|
|
1833
|
+
React__namespace.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
1834
|
+
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment hours' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$P, onClick: () => onHoursChange(uuiDayjs.dayjs().set(props.value).add(1, 'h').hour()) }),
|
|
1835
|
+
React__namespace.createElement(uuiComponents.NumericInput, { cx: uuiTimePicker.input, onValueChange: onHoursChange, value: +(uuiDayjs.dayjs()
|
|
1836
|
+
.set(props.value)
|
|
1837
|
+
.format(MAX_HOURS === FORMAT_12H ? 'hh' : 'HH')), min: MIN_HOURS, max: MAX_HOURS }),
|
|
1838
|
+
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, rawProps: { 'aria-label': 'Decrement hours' }, cx: uuiTimePicker.iconDown, icon: ForwardRef$P, onClick: () => onHoursChange(uuiDayjs.dayjs().set(props.value).subtract(1, 'h').hour()) })),
|
|
1839
|
+
React__namespace.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
1840
|
+
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment minutes' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$P, onClick: handleMinutesUpClick }),
|
|
1841
|
+
React__namespace.createElement(uuiComponents.NumericInput, { cx: uuiTimePicker.input, onValueChange: onMinutesChange, value: +uuiDayjs.dayjs().set(props.value).format('m'), min: MIN_MINUTES, max: MAX_MINUTES }),
|
|
1842
|
+
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, rawProps: { 'aria-label': 'Decrement minutes' }, cx: uuiTimePicker.iconDown, icon: ForwardRef$P, onClick: handleMinutesDownClick }))),
|
|
1843
|
+
MAX_HOURS === FORMAT_12H && (React__namespace.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
1844
|
+
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, cx: uuiTimePicker.iconUp, icon: ForwardRef$P, onClick: onTimeTypeChange }),
|
|
1845
|
+
React__namespace.createElement(uuiComponents.TextInput, { cx: uuiTimePicker.input, onValueChange: () => {
|
|
1846
|
+
}, isReadonly: true, value: uuiDayjs.dayjs().set(props.value).format('A') }),
|
|
1847
|
+
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, cx: uuiTimePicker.iconDown, icon: ForwardRef$P, onClick: onTimeTypeChange })))));
|
|
1775
1848
|
}
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1849
|
+
|
|
1850
|
+
const getMeridian = (newValue, format) => {
|
|
1851
|
+
if (format === 'hh:mm A') {
|
|
1852
|
+
if (newValue.toLowerCase().includes('p') && newValue.toLowerCase().includes('a')) {
|
|
1853
|
+
return newValue.toLowerCase().indexOf('p') < newValue.toLowerCase().indexOf('a') ? 'PM' : 'AM';
|
|
1854
|
+
}
|
|
1855
|
+
return newValue.toLowerCase().includes('p') ? 'PM' : 'AM';
|
|
1856
|
+
}
|
|
1857
|
+
return false;
|
|
1858
|
+
};
|
|
1859
|
+
const parseTimeNumbers = (value, separator) => {
|
|
1860
|
+
let hours, minutes;
|
|
1861
|
+
const timeNumbers = value.replace(/\D/gi, '');
|
|
1862
|
+
switch (separator) {
|
|
1863
|
+
case 0:
|
|
1864
|
+
hours = 0;
|
|
1865
|
+
minutes = parseInt(timeNumbers.trim().slice(0, 2));
|
|
1866
|
+
break;
|
|
1867
|
+
case 1:
|
|
1868
|
+
hours = parseInt(timeNumbers.slice(0, 1));
|
|
1869
|
+
minutes = parseInt(timeNumbers.slice(1, 3));
|
|
1870
|
+
break;
|
|
1871
|
+
default:
|
|
1872
|
+
hours = parseInt(timeNumbers.slice(0, 2));
|
|
1873
|
+
minutes = parseInt(timeNumbers.slice(2, 4));
|
|
1874
|
+
}
|
|
1875
|
+
return { hours, minutes };
|
|
1876
|
+
};
|
|
1877
|
+
const formatTime = (hours, minutes, meridian, format) => {
|
|
1878
|
+
const normalizeHours = (h) => Number.isNaN(h) ? '00' : h.toString().padStart(2, '0');
|
|
1879
|
+
const normalizeMinutes = (m) => Number.isNaN(m) ? '00' : m.toString().padStart(2, '0');
|
|
1880
|
+
if (meridian && normalizeHours(hours) === '00' && normalizeMinutes(minutes) === '00') {
|
|
1881
|
+
return '';
|
|
1882
|
+
}
|
|
1883
|
+
let hoursResult = Number.parseInt(normalizeHours(hours));
|
|
1884
|
+
let meridianResult = meridian;
|
|
1885
|
+
if ((format === 'hh:mm A') && hoursResult > 12) {
|
|
1886
|
+
hoursResult -= 12;
|
|
1887
|
+
meridianResult = 'PM';
|
|
1888
|
+
}
|
|
1889
|
+
if ((format === 'hh:mm A') && hoursResult === 0) {
|
|
1890
|
+
hoursResult = 12;
|
|
1891
|
+
}
|
|
1892
|
+
const time = `${normalizeHours(hoursResult)}:${normalizeMinutes(minutes)}`;
|
|
1893
|
+
return meridianResult ? time.concat(` ${meridianResult}`) : time;
|
|
1894
|
+
};
|
|
1895
|
+
|
|
1896
|
+
const DEFAULT_MODE = EditMode.FORM;
|
|
1897
|
+
const valueToTimeString = (value, format) => {
|
|
1898
|
+
if (value === null)
|
|
1899
|
+
return null;
|
|
1900
|
+
return uuiDayjs.dayjs()
|
|
1901
|
+
.set(value)
|
|
1902
|
+
.format(format === 24 ? 'HH:mm' : 'hh:mm A');
|
|
1903
|
+
};
|
|
1904
|
+
function TimePickerComponent(props, ref) {
|
|
1905
|
+
const [state, setState] = React.useState({
|
|
1906
|
+
isOpen: false,
|
|
1907
|
+
value: valueToTimeString(props.value, props.format),
|
|
1908
|
+
inputValue: valueToTimeString(props.value, props.format),
|
|
1909
|
+
});
|
|
1910
|
+
React.useEffect(() => {
|
|
1911
|
+
if (valueToTimeString(props.value, props.format) !== state.value) {
|
|
1912
|
+
const stringValue = valueToTimeString(props.value, props.format);
|
|
1913
|
+
setState((prevState) => ({
|
|
1914
|
+
...prevState,
|
|
1915
|
+
value: stringValue,
|
|
1916
|
+
inputValue: stringValue,
|
|
1917
|
+
}));
|
|
1918
|
+
}
|
|
1919
|
+
}, [props.value, props.format]);
|
|
1920
|
+
const getFormat = () => props.format === 24 ? 'HH:mm' : 'hh:mm A';
|
|
1921
|
+
const isTimeValid = (newValue) => uuiDayjs.dayjs(newValue, getFormat(), true).isValid();
|
|
1922
|
+
const formatStringTimeToObject = (stringTime) => {
|
|
1923
|
+
if (stringTime) {
|
|
1924
|
+
const value = uuiDayjs.dayjs(stringTime, getFormat(), true);
|
|
1925
|
+
return { hours: value.hour(), minutes: value.minute() };
|
|
1926
|
+
}
|
|
1927
|
+
return { hours: null, minutes: null };
|
|
1784
1928
|
};
|
|
1785
|
-
const
|
|
1786
|
-
|
|
1787
|
-
|
|
1929
|
+
const onClear = () => {
|
|
1930
|
+
props.onValueChange(null);
|
|
1931
|
+
};
|
|
1932
|
+
const onToggle = (value) => {
|
|
1933
|
+
setState((prevState) => ({ ...prevState, isOpen: value }));
|
|
1934
|
+
};
|
|
1935
|
+
const saveTime = (newTime) => {
|
|
1936
|
+
setState((prevState) => ({ ...prevState, inputValue: newTime }));
|
|
1937
|
+
props.onValueChange(formatStringTimeToObject(newTime));
|
|
1938
|
+
};
|
|
1939
|
+
const getTimeFromInputValue = (newValue) => {
|
|
1940
|
+
const trimmedNewValue = newValue.trimStart();
|
|
1941
|
+
const separator = trimmedNewValue.search(/\D/);
|
|
1942
|
+
const meridian = getMeridian(trimmedNewValue, getFormat());
|
|
1943
|
+
const { hours, minutes } = parseTimeNumbers(trimmedNewValue, separator);
|
|
1944
|
+
return formatTime(hours, minutes, meridian, getFormat());
|
|
1945
|
+
};
|
|
1946
|
+
const handleBodyValueChange = (newValue) => {
|
|
1947
|
+
const inputValue = valueToTimeString(newValue, props.format);
|
|
1948
|
+
saveTime(inputValue);
|
|
1949
|
+
};
|
|
1950
|
+
const handleFocus = (e) => {
|
|
1951
|
+
onToggle(true);
|
|
1952
|
+
props.onFocus?.(e);
|
|
1953
|
+
};
|
|
1954
|
+
const handleInputChange = (newValue) => {
|
|
1955
|
+
setState((prevState) => ({ ...prevState, inputValue: newValue }));
|
|
1956
|
+
if (newValue) {
|
|
1957
|
+
const result = getTimeFromInputValue(newValue);
|
|
1958
|
+
if (isTimeValid(result)) {
|
|
1959
|
+
setState((prevState) => ({ ...prevState, value: result }));
|
|
1960
|
+
}
|
|
1788
1961
|
}
|
|
1789
1962
|
};
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1963
|
+
const handleBlur = (e) => {
|
|
1964
|
+
if (uuiCore.isFocusReceiverInsideFocusLock(e))
|
|
1965
|
+
return;
|
|
1966
|
+
onToggle(false);
|
|
1967
|
+
props.onBlur?.(e);
|
|
1968
|
+
if (state.value === '' || state.inputValue === '') {
|
|
1969
|
+
props.onValueChange(null);
|
|
1970
|
+
setState((prevState) => ({ ...prevState, value: null, inputValue: null }));
|
|
1971
|
+
}
|
|
1972
|
+
state.value && state.inputValue && saveTime(state.value);
|
|
1973
|
+
};
|
|
1974
|
+
const renderInput = (inputProps) => {
|
|
1975
|
+
return (React__namespace.default.createElement(TextInput, { ...inputProps, onClick: null, size: props.size, isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, cx: [css$1g.root, css$1g.timepickerInput, props.inputCx], value: state.inputValue, onValueChange: handleInputChange, onCancel: !props.disableClear && onClear, onFocus: handleFocus, onBlur: handleBlur, isDropdown: false, placeholder: props.placeholder ? props.placeholder : getFormat(), mode: props.mode || DEFAULT_MODE, rawProps: props.rawProps?.input }));
|
|
1976
|
+
};
|
|
1977
|
+
const renderBody = (bodyProps) => {
|
|
1978
|
+
const { forwardedRef, onValueChange, ...timePickerBodyProps } = props;
|
|
1979
|
+
return (!props.isDisabled && !props.isReadonly && (React__namespace.default.createElement(DropdownContainer, { ...bodyProps, focusLock: false },
|
|
1980
|
+
React__namespace.default.createElement(TimePickerBody, { ...timePickerBodyProps, onValueChange: handleBodyValueChange, value: formatStringTimeToObject(state.value), rawProps: props.rawProps?.body, cx: props.bodyCx }))));
|
|
1981
|
+
};
|
|
1982
|
+
return (React__namespace.default.createElement(uuiComponents.Dropdown, { renderTarget: (targetProps) => (props.renderTarget ? props.renderTarget(targetProps) : renderInput(targetProps)), renderBody: (bodyProps) => !props.isDisabled && !props.isReadonly && renderBody(bodyProps), onValueChange: !props.isDisabled && !props.isReadonly ? onToggle : null, value: state.isOpen, middleware: [react.offset(6)], ref: ref }));
|
|
1795
1983
|
}
|
|
1984
|
+
const TimePicker = /* @__PURE__ */React__namespace.default.forwardRef(TimePickerComponent);
|
|
1796
1985
|
|
|
1797
|
-
var css$
|
|
1986
|
+
var css$1f = {"root":"ndk9mV"};
|
|
1798
1987
|
|
|
1799
|
-
function
|
|
1988
|
+
function applyInputAddonMods() {
|
|
1800
1989
|
return [
|
|
1801
|
-
css$
|
|
1802
|
-
css$1g[`mode-${mods.mode || 'block'}`],
|
|
1803
|
-
mods.padding && css$1g['padding-' + mods.padding],
|
|
1990
|
+
css$1f.root,
|
|
1804
1991
|
];
|
|
1805
1992
|
}
|
|
1806
|
-
const
|
|
1807
|
-
dropdownIcon: mods.dropdownIcon !== null && settings.accordion.icons.dropdownIcon,
|
|
1808
|
-
}));
|
|
1809
|
-
|
|
1810
|
-
var css$1f = {"root":"JM65gt","align-items":"_8N-gf1","alignItems":"_8N-gf1","justify-content":"FzlziJ","justifyContent":"FzlziJ","border-top":"G-Jrm2","borderTop":"G-Jrm2","border-bottom":"fvLekY","borderBottom":"fvLekY","top-shadow":"Da78j2","topShadow":"Da78j2","padding":"QdPLyi","margin":"cBfAR0","vPadding":"jZ0Sxz","column-gap":"jfHu3S","columnGap":"jfHu3S","row-gap":"D--o7K","rowGap":"D--o7K","spacing":"kl4fPc"};
|
|
1811
|
-
|
|
1812
|
-
const FlexCell = /* @__PURE__ */uuiCore.withMods(uuiComponents.FlexCell, () => [css$1f.flexCell]);
|
|
1813
|
-
|
|
1814
|
-
const FlexRow = (props) => {
|
|
1815
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1816
|
-
if (props.spacing) {
|
|
1817
|
-
uuiCore.devLogger.warn('[FlexRow]: The `spacing` property is deprecated and will be removed in future versions. Please use `columnGap` instead.');
|
|
1818
|
-
}
|
|
1819
|
-
}
|
|
1820
|
-
const classNames = uuiCore.cx([
|
|
1821
|
-
css$1f.root,
|
|
1822
|
-
'uui-flex-row',
|
|
1823
|
-
props.onClick && uuiCore.uuiMarkers.clickable,
|
|
1824
|
-
props.cx,
|
|
1825
|
-
props.size !== null && 'uui-size-' + (props.size || settings.flexRow.sizes.default),
|
|
1826
|
-
props.alignItems && css$1f.alignItems,
|
|
1827
|
-
props.justifyContent && css$1f.justifyContent,
|
|
1828
|
-
props.padding && css$1f.padding,
|
|
1829
|
-
props.vPadding && css$1f.vPadding,
|
|
1830
|
-
props.margin && css$1f.margin,
|
|
1831
|
-
props.topShadow && css$1f.topShadow,
|
|
1832
|
-
props.borderBottom && css$1f.borderBottom,
|
|
1833
|
-
props.borderTop && css$1f.borderTop,
|
|
1834
|
-
props.columnGap && css$1f.columnGap,
|
|
1835
|
-
props.rowGap && css$1f.rowGap,
|
|
1836
|
-
props.spacing && css$1f.spacing,
|
|
1837
|
-
props.background && `uui-flex-row-bg-${props.background}`,
|
|
1838
|
-
]);
|
|
1839
|
-
const style = {
|
|
1840
|
-
...(props.alignItems && { '--uui-flex-row-align-items': props.alignItems }),
|
|
1841
|
-
...(props.justifyContent && { '--uui-flex-row-justify-content': props.justifyContent }),
|
|
1842
|
-
...(props.columnGap && { '--uui-flex-row-column-gap': `${props.columnGap}px` }),
|
|
1843
|
-
...(props.rowGap && { '--uui-flex-row-row-gap': `${props.rowGap}px` }),
|
|
1844
|
-
...(props.padding && { '--uui-flex-row-padding': `${props.padding}px` }),
|
|
1845
|
-
...(props.vPadding && { '--uui-flex-row-v-padding': `${props.vPadding}px` }),
|
|
1846
|
-
...(props.margin && { '--uui-flex-row-margin': `${props.margin}px` }),
|
|
1847
|
-
...(props.spacing && { '--uui-flex-row-spacing': `${props.spacing}px` }),
|
|
1848
|
-
};
|
|
1849
|
-
return (React__namespace.default.createElement("div", { ref: props.ref, onClick: props.onClick ? (e) => !uuiCore.isEventTargetInsideClickable(e) && props.onClick(e) : undefined, className: classNames, ...props.rawProps, style: {
|
|
1850
|
-
...style,
|
|
1851
|
-
...props.rawProps?.style,
|
|
1852
|
-
} }, props.children));
|
|
1853
|
-
};
|
|
1993
|
+
const InputAddon = /* @__PURE__ */uuiCore.withMods(uuiComponents.InputAddon, applyInputAddonMods);
|
|
1854
1994
|
|
|
1855
|
-
var css$1e = {"root":"
|
|
1995
|
+
var css$1e = {"root":"hiFkv-"};
|
|
1856
1996
|
|
|
1857
|
-
|
|
1858
|
-
'uui-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
props.margin && css$1e['margin-' + props.margin],
|
|
1862
|
-
props.background && css$1e[`uui-${props.background}`],
|
|
1863
|
-
]);
|
|
1997
|
+
function applySliderMods() {
|
|
1998
|
+
return [css$1e.root, 'uui-color-neutral'];
|
|
1999
|
+
}
|
|
2000
|
+
const Slider = /* @__PURE__ */uuiCore.withMods(uuiComponents.Slider, applySliderMods);
|
|
1864
2001
|
|
|
1865
|
-
var css$1d = {"root":"
|
|
2002
|
+
var css$1d = {"root":"_1-Vbnk"};
|
|
1866
2003
|
|
|
1867
2004
|
function applyTooltipMods(mods) {
|
|
1868
2005
|
return [
|
|
@@ -1872,54 +2009,286 @@ function applyTooltipMods(mods) {
|
|
|
1872
2009
|
}
|
|
1873
2010
|
const Tooltip = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Tooltip, applyTooltipMods);
|
|
1874
2011
|
|
|
1875
|
-
var css$1c = {"root":"
|
|
2012
|
+
var css$1c = {"root":"en2wWB","tooltip":"DW1IUb"};
|
|
1876
2013
|
|
|
1877
|
-
function
|
|
2014
|
+
function applyRatingMods(mods) {
|
|
1878
2015
|
return [
|
|
1879
|
-
'uui-labeled-input',
|
|
1880
2016
|
css$1c.root,
|
|
1881
|
-
|
|
2017
|
+
`uui-size-${mods.size || settings.rating.sizes.default}`,
|
|
1882
2018
|
];
|
|
1883
2019
|
}
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
}
|
|
1890
|
-
const LabeledInput = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.LabeledInput, applyLabeledInputMods, applyLabeledInputProps);
|
|
2020
|
+
const Rating = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Rating, applyRatingMods, (props) => ({
|
|
2021
|
+
filledStarIcon: props.icon || settings.rating.icons.filledRatingIcon,
|
|
2022
|
+
emptyStarIcon: props.icon || settings.rating.icons.emptyRatingIcon,
|
|
2023
|
+
Tooltip,
|
|
2024
|
+
}));
|
|
1891
2025
|
|
|
1892
|
-
var css$1b = {"root":"
|
|
2026
|
+
var css$1b = {"root":"K7R5Zc","main-path":"_10J0b-","mainPath":"_10J0b-","content-wrapper":"d3PC5b","contentWrapper":"d3PC5b","content":"FExR8H","action-wrapper":"l-yDvs","actionWrapper":"l-yDvs","icon-wrapper":"_0180sV","iconWrapper":"_0180sV","icon":"jbrwDx","close-icon":"IfWR6i","closeIcon":"IfWR6i"};
|
|
1893
2027
|
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
2028
|
+
const Alert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("div", { role: "alert", ref: ref, className: cx__default.default('uui-alert', css$1b.root, props.color && `uui-color-${props.color}`, props.cx, `uui-size-${props.size || settings.alert.sizes.default}`), ...props.rawProps },
|
|
2029
|
+
React__namespace.createElement("div", { className: css$1b.mainPath },
|
|
2030
|
+
React__namespace.createElement("div", { className: css$1b.contentWrapper },
|
|
2031
|
+
props.icon && (React__namespace.createElement("div", { className: css$1b.iconWrapper },
|
|
2032
|
+
React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon, cx: css$1b.icon }))),
|
|
2033
|
+
React__namespace.createElement("div", { className: css$1b.content },
|
|
2034
|
+
props.children,
|
|
2035
|
+
props.actions && (React__namespace.createElement("div", { className: css$1b.actionWrapper }, props.actions.map((action) => (React__namespace.createElement(LinkButton, { caption: action.name, onClick: action.action, key: action.name, cx: css$1b.actionLink, size: settings.alert.sizes.actionMap[props.size || settings.alert.sizes.default] }))))))),
|
|
2036
|
+
props.onClose && React__namespace.createElement(IconButton, { icon: settings.alert.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$1b.closeIcon })))));
|
|
2037
|
+
const WarningAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, { icon: settings.alert.icons.warningIcon, color: "warning", ref: ref, ...props }));
|
|
2038
|
+
const SuccessAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, { icon: settings.alert.icons.successIcon, color: "success", ref: ref, ...props }));
|
|
2039
|
+
const HintAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, { icon: settings.alert.icons.infoIcon, color: "info", ref: ref, ...props }));
|
|
2040
|
+
const ErrorAlert = /* @__PURE__ */React__namespace.forwardRef((props, ref) => React__namespace.createElement(Alert, { icon: settings.alert.icons.errorIcon, color: "error", ref: ref, ...props }));
|
|
2041
|
+
|
|
2042
|
+
const Dropdown = /* @__PURE__ */uuiCore.withMods(uuiComponents.Dropdown);
|
|
2043
|
+
|
|
2044
|
+
var css$1a = {"submenu-root-item-rtl":"r0k0Oq","submenuRootItemRtl":"r0k0Oq","icon-after":"QaD199","iconAfter":"QaD199","submenu-root-item":"A0CTBY","submenuRootItem":"A0CTBY","icon-check":"lwXpEc","iconCheck":"lwXpEc","splitter-root":"VErtwX","splitterRoot":"VErtwX","splitter":"CsAeWy","header-root":"emnFhA","headerRoot":"emnFhA","item-root":"CQS3QM","itemRoot":"CQS3QM","icon":"_2XLx-E","link":"uIMVqS","indent":"f59C--","selected-mark":"zpoL9q","selectedMark":"zpoL9q"};
|
|
2045
|
+
|
|
2046
|
+
exports.IDropdownControlKeys = void 0;
|
|
2047
|
+
(function (IDropdownControlKeys) {
|
|
2048
|
+
IDropdownControlKeys["ENTER"] = "Enter";
|
|
2049
|
+
IDropdownControlKeys["ESCAPE"] = "Escape";
|
|
2050
|
+
IDropdownControlKeys["LEFT_ARROW"] = "ArrowLeft";
|
|
2051
|
+
IDropdownControlKeys["RIGHT_ARROW"] = "ArrowRight";
|
|
2052
|
+
IDropdownControlKeys["UP_ARROW"] = "ArrowUp";
|
|
2053
|
+
IDropdownControlKeys["DOWN_ARROW"] = "ArrowDown";
|
|
2054
|
+
})(exports.IDropdownControlKeys || (exports.IDropdownControlKeys = {}));
|
|
2055
|
+
function DropdownMenuContainer(props) {
|
|
2056
|
+
const menuRef = React.useRef(null);
|
|
2057
|
+
const [currentlyFocused, setFocused] = React.useState(0);
|
|
2058
|
+
const menuItems = menuRef.current ? Array.from(menuRef.current.querySelectorAll(`[role="menuitem"]:not(.${uuiCore.uuiMod.disabled})`)) : [];
|
|
2059
|
+
const changeFocus = (nextFocusedIndex) => {
|
|
2060
|
+
if (menuItems.length > 0) {
|
|
2061
|
+
setFocused(nextFocusedIndex);
|
|
2062
|
+
menuItems[nextFocusedIndex].focus();
|
|
2063
|
+
}
|
|
2064
|
+
};
|
|
2065
|
+
const handleArrowKeys = (e) => {
|
|
2066
|
+
const lastMenuItemsIndex = menuItems.length - 1;
|
|
2067
|
+
if (e.key === exports.IDropdownControlKeys.UP_ARROW) {
|
|
2068
|
+
changeFocus(currentlyFocused > 0 ? currentlyFocused - 1 : lastMenuItemsIndex);
|
|
2069
|
+
e.preventDefault();
|
|
2070
|
+
}
|
|
2071
|
+
else if (e.key === exports.IDropdownControlKeys.DOWN_ARROW) {
|
|
2072
|
+
changeFocus(currentlyFocused < lastMenuItemsIndex ? currentlyFocused + 1 : 0);
|
|
2073
|
+
e.preventDefault();
|
|
2074
|
+
}
|
|
2075
|
+
else if (e.key === props.closeOnKey && props.onClose) {
|
|
2076
|
+
e.stopPropagation();
|
|
2077
|
+
props.onClose();
|
|
2078
|
+
}
|
|
2079
|
+
};
|
|
2080
|
+
return (React__namespace.default.createElement(DropdownContainer, { ...props, rawProps: { ...props.rawProps, role: 'menu' }, ref: menuRef, width: props.minWidth, lockProps: { onKeyDown: handleArrowKeys }, cx: [props.cx] }));
|
|
2081
|
+
}
|
|
2082
|
+
const DropdownMenuBody = /* @__PURE__ */uuiCore.withMods(DropdownMenuContainer, () => ['uui-dropdownMenu-body'], (props) => {
|
|
2083
|
+
return ({ closeOnKey: exports.IDropdownControlKeys.ESCAPE, ...props });
|
|
2084
|
+
});
|
|
2085
|
+
const DropdownMenuButton = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
2086
|
+
const context = React.useContext(uuiCore.UuiContext);
|
|
2087
|
+
const { icon, iconPosition, onIconClick, caption, isDisabled, isSelected, isActive, link, href, onClick, toggleDropdownOpening, isDropdown, isOpen, target, } = props;
|
|
2088
|
+
const handleClick = (event) => {
|
|
2089
|
+
if (isDisabled || !onClick)
|
|
2090
|
+
return;
|
|
2091
|
+
!uuiCore.isEventTargetInsideClickable(event) && onClick(event);
|
|
2092
|
+
context.uuiAnalytics.sendEvent(props.clickAnalyticsEvent);
|
|
2093
|
+
};
|
|
2094
|
+
const handleOpenDropdown = (event) => {
|
|
2095
|
+
if (event.key === exports.IDropdownControlKeys.RIGHT_ARROW && isDropdown) {
|
|
2096
|
+
toggleDropdownOpening(true);
|
|
2097
|
+
}
|
|
2098
|
+
else if (event.key === exports.IDropdownControlKeys.ENTER && onClick) {
|
|
2099
|
+
onClick(event);
|
|
2100
|
+
// Fix bug when click event is triggered after Enter key.
|
|
2101
|
+
// Tricky case when modal window is opened from dropdown menu and click on modal header cross is triggered, that leads to modal close.
|
|
2102
|
+
// https://github.com/epam/UUI/issues/2754
|
|
2103
|
+
event.preventDefault();
|
|
2104
|
+
}
|
|
2105
|
+
};
|
|
2106
|
+
const getMenuButtonContent = () => {
|
|
2107
|
+
const isIconBefore = Boolean(icon && iconPosition !== 'right');
|
|
2108
|
+
const isIconAfter = Boolean(icon && iconPosition === 'right');
|
|
2109
|
+
const iconElement = (React__namespace.default.createElement(IconButton, { icon: icon, color: isActive ? 'primary' : 'neutral', onClick: onIconClick, isDisabled: isDisabled, cx: uuiCore.cx(css$1a.icon, iconPosition === 'right' ? css$1a.iconAfter : css$1a.iconBefore) }));
|
|
2110
|
+
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
2111
|
+
isIconBefore && iconElement,
|
|
2112
|
+
React__namespace.default.createElement(uuiComponents.Text, { cx: props.indent && css$1a.indent }, caption),
|
|
2113
|
+
isIconAfter && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
2114
|
+
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
2115
|
+
iconElement))));
|
|
2116
|
+
};
|
|
2117
|
+
const isAnchor = Boolean(link || href);
|
|
2118
|
+
const itemClassNames = uuiCore.cx(props.cx, css$1a.itemRoot, isDisabled && uuiCore.uuiMod.disabled, isActive && uuiCore.uuiMod.active, isOpen && uuiCore.uuiMod.opened, (!isDisabled && onClick) && uuiCore.uuiMarkers.clickable);
|
|
2119
|
+
return isAnchor ? (React__namespace.default.createElement(uuiComponents.Anchor, { cx: uuiCore.cx(css$1a.link, itemClassNames), link: link, href: href, rawProps: { role: 'menuitem', tabIndex: isDisabled ? -1 : 0 }, onClick: handleClick, isLinkActive: isActive, isDisabled: isDisabled, target: target }, getMenuButtonContent())) : (React__namespace.default.createElement("div", { tabIndex: isDisabled ? -1 : 0, role: "menuitem", onKeyDown: isDisabled ? null : handleOpenDropdown, className: itemClassNames, onClick: handleClick, ref: ref },
|
|
2120
|
+
getMenuButtonContent(),
|
|
2121
|
+
isSelected && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
2122
|
+
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
2123
|
+
React__namespace.default.createElement(uuiComponents.IconContainer, { icon: settings.dropdownMenu.icons.acceptIcon, cx: css$1a.selectedMark })))));
|
|
2124
|
+
});
|
|
2125
|
+
function DropdownMenuSplitter(props) {
|
|
2126
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$1a.splitterRoot) },
|
|
2127
|
+
React__namespace.default.createElement("hr", { className: css$1a.splitter })));
|
|
2128
|
+
}
|
|
2129
|
+
function DropdownMenuHeader(props) {
|
|
2130
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx('uui-dropdown-menu-header', props.cx, css$1a.headerRoot) },
|
|
2131
|
+
React__namespace.default.createElement("span", { className: css$1a.header }, props.caption)));
|
|
2132
|
+
}
|
|
2133
|
+
function DropdownSubMenu(props) {
|
|
2134
|
+
const subMenuMiddleware = [
|
|
2135
|
+
react.offset(({ placement }) => {
|
|
2136
|
+
if (placement === 'right-start'
|
|
2137
|
+
|| placement === 'left-start') {
|
|
2138
|
+
return { crossAxis: -6, mainAxis: 0 };
|
|
2139
|
+
}
|
|
2140
|
+
else {
|
|
2141
|
+
return { crossAxis: 6, mainAxis: 0 };
|
|
2142
|
+
}
|
|
2143
|
+
}),
|
|
2144
|
+
];
|
|
2145
|
+
const isRtl = uuiCore.getDir() === 'rtl';
|
|
2146
|
+
return (React__namespace.default.createElement(uuiComponents.Dropdown, { openOnHover: props.openOnHover || true, closeOnMouseLeave: "boundary", openDelay: 400, closeDelay: 400, placement: isRtl ? 'left-start' : 'right-start', middleware: subMenuMiddleware, renderBody: (dropdownProps) => !props.isDisabled && (React__namespace.default.createElement(DropdownMenuBody, { closeOnKey: exports.IDropdownControlKeys.LEFT_ARROW, ...props, ...dropdownProps })), renderTarget: ({ toggleDropdownOpening, ...targetProps }) => (React__namespace.default.createElement(DropdownMenuButton, { cx: uuiCore.cx(isRtl ? css$1a.submenuRootItemRtl : css$1a.submenuRootItem), icon: settings.dropdownMenu.icons.dropdownIcon, iconPosition: "right", isDropdown: true, toggleDropdownOpening: toggleDropdownOpening, ...props, ...targetProps })) }));
|
|
2147
|
+
}
|
|
2148
|
+
function DropdownMenuSwitchButton(props) {
|
|
2149
|
+
const context = React.useContext(uuiCore.UuiContext);
|
|
2150
|
+
const { icon, caption, isDisabled, isSelected, onValueChange, } = props;
|
|
2151
|
+
const onHandleValueChange = (value) => {
|
|
2152
|
+
if (isDisabled || !onValueChange)
|
|
2153
|
+
return;
|
|
2154
|
+
onValueChange(value);
|
|
2155
|
+
context.uuiAnalytics.sendEvent(props.clickAnalyticsEvent);
|
|
2156
|
+
};
|
|
2157
|
+
const handleKeySelect = (e) => {
|
|
2158
|
+
if (e.key === exports.IDropdownControlKeys.ENTER) {
|
|
2159
|
+
onHandleValueChange(!isSelected);
|
|
2160
|
+
}
|
|
2161
|
+
};
|
|
2162
|
+
return (React__namespace.default.createElement("div", { className: uuiCore.cx(props.cx, css$1a.itemRoot, isDisabled && uuiCore.uuiMod.disabled, (!isDisabled || onValueChange) && uuiCore.uuiMarkers.clickable), onClick: () => onHandleValueChange(!isSelected), role: "menuitem", onKeyDown: handleKeySelect, tabIndex: isDisabled ? -1 : 0 },
|
|
2163
|
+
icon && React__namespace.default.createElement(uuiComponents.IconContainer, { icon: icon, cx: css$1a.iconBefore }),
|
|
2164
|
+
React__namespace.default.createElement(uuiComponents.Text, null, caption),
|
|
2165
|
+
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
2166
|
+
React__namespace.default.createElement(Switch, { value: isSelected, tabIndex: -1, onValueChange: onHandleValueChange })));
|
|
2167
|
+
}
|
|
2168
|
+
|
|
2169
|
+
var css$19 = {"root":"pBc3vk","mode-block":"_1Thyg1","modeBlock":"_1Thyg1","mode-inline":"yxldBv","modeInline":"yxldBv","padding-0":"vlbyeC","padding0":"vlbyeC","padding-6":"iHq1th","padding6":"iHq1th","padding-12":"_9qUnou","padding12":"_9qUnou","padding-18":"HrCPXF","padding18":"HrCPXF"};
|
|
2170
|
+
|
|
2171
|
+
function applyAccordionMods(mods) {
|
|
2172
|
+
return [
|
|
2173
|
+
css$19.root,
|
|
2174
|
+
css$19[`mode-${mods.mode || 'block'}`],
|
|
2175
|
+
mods.padding && css$19['padding-' + mods.padding],
|
|
2176
|
+
];
|
|
2177
|
+
}
|
|
2178
|
+
const Accordion = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Accordion, applyAccordionMods, (mods) => ({
|
|
2179
|
+
dropdownIcon: mods.dropdownIcon !== null && settings.accordion.icons.dropdownIcon,
|
|
2180
|
+
}));
|
|
2181
|
+
|
|
2182
|
+
var css$18 = {"root":"qzAX7q","align-items":"usw-vI","alignItems":"usw-vI","justify-content":"Tur3gE","justifyContent":"Tur3gE","border-top":"n51xB1","borderTop":"n51xB1","border-bottom":"iODUie","borderBottom":"iODUie","top-shadow":"O90dMr","topShadow":"O90dMr","padding":"C-318h","margin":"-ZExPF","vPadding":"ufWCBK","column-gap":"deWxSp","columnGap":"deWxSp","row-gap":"QWci7Z","rowGap":"QWci7Z","spacing":"mRwlqA"};
|
|
2183
|
+
|
|
2184
|
+
const FlexCell = /* @__PURE__ */uuiCore.withMods(uuiComponents.FlexCell, () => [css$18.flexCell]);
|
|
2185
|
+
|
|
2186
|
+
const FlexRow = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
2187
|
+
if (process.env.NODE_ENV !== "production") {
|
|
2188
|
+
if (props.spacing) {
|
|
2189
|
+
uuiCore.devLogger.warn('[FlexRow]: The `spacing` property is deprecated and will be removed in future versions. Please use `columnGap` instead.');
|
|
2190
|
+
}
|
|
2191
|
+
}
|
|
2192
|
+
const classNames = uuiCore.cx([
|
|
2193
|
+
css$18.root,
|
|
2194
|
+
'uui-flex-row',
|
|
2195
|
+
props.onClick && uuiCore.uuiMarkers.clickable,
|
|
2196
|
+
props.cx,
|
|
2197
|
+
props.size !== null && 'uui-size-' + (props.size || settings.flexRow.sizes.default),
|
|
2198
|
+
props.alignItems && css$18.alignItems,
|
|
2199
|
+
props.justifyContent && css$18.justifyContent,
|
|
2200
|
+
props.padding && css$18.padding,
|
|
2201
|
+
props.vPadding && css$18.vPadding,
|
|
2202
|
+
props.margin && css$18.margin,
|
|
2203
|
+
props.topShadow && css$18.topShadow,
|
|
2204
|
+
props.borderBottom && css$18.borderBottom,
|
|
2205
|
+
props.borderTop && css$18.borderTop,
|
|
2206
|
+
props.columnGap && css$18.columnGap,
|
|
2207
|
+
props.rowGap && css$18.rowGap,
|
|
2208
|
+
props.spacing && css$18.spacing,
|
|
2209
|
+
props.background && `uui-flex-row-bg-${props.background}`,
|
|
2210
|
+
]);
|
|
2211
|
+
let alignItemsValue = props.alignItems;
|
|
2212
|
+
if (alignItemsValue === 'top') {
|
|
2213
|
+
alignItemsValue = 'flex-start';
|
|
2214
|
+
}
|
|
2215
|
+
else if (alignItemsValue === 'bottom') {
|
|
2216
|
+
alignItemsValue = 'flex-end';
|
|
2217
|
+
}
|
|
2218
|
+
const style = {
|
|
2219
|
+
...(props.alignItems && { '--uui-flex-row-align-items': alignItemsValue }),
|
|
2220
|
+
...(props.justifyContent && { '--uui-flex-row-justify-content': props.justifyContent }),
|
|
2221
|
+
...(props.columnGap && { '--uui-flex-row-column-gap': `${props.columnGap}px` }),
|
|
2222
|
+
...(props.rowGap && { '--uui-flex-row-row-gap': `${props.rowGap}px` }),
|
|
2223
|
+
...(props.padding && { '--uui-flex-row-padding': `${props.padding}px` }),
|
|
2224
|
+
...(props.vPadding && { '--uui-flex-row-v-padding': `${props.vPadding}px` }),
|
|
2225
|
+
...(props.margin && { '--uui-flex-row-margin': `${props.margin}px` }),
|
|
2226
|
+
...(props.spacing && { '--uui-flex-row-spacing': `${props.spacing}px` }),
|
|
2227
|
+
};
|
|
2228
|
+
return (React__namespace.default.createElement("div", { ref: ref, onClick: props.onClick ? (e) => !uuiCore.isEventTargetInsideClickable(e) && props.onClick(e) : undefined, className: classNames, ...props.rawProps, style: {
|
|
2229
|
+
...style,
|
|
2230
|
+
...props.rawProps?.style,
|
|
2231
|
+
} }, props.children));
|
|
2232
|
+
});
|
|
2233
|
+
|
|
2234
|
+
var css$17 = {"root":"NHrSMd","margin-24":"lWA3Ll","margin24":"lWA3Ll","padding-12":"NzWAwY","padding12":"NzWAwY","padding-24":"le5WWy","padding24":"le5WWy","shadow":"_7j5dvN","uui-surface-main":"a6cPFq","uuiSurfaceMain":"a6cPFq"};
|
|
2235
|
+
|
|
2236
|
+
const Panel = /* @__PURE__ */uuiCore.withMods(uuiComponents.VPanel, (props) => [
|
|
2237
|
+
'uui-panel',
|
|
2238
|
+
css$17.root,
|
|
2239
|
+
props.shadow && css$17.shadow,
|
|
2240
|
+
props.margin && css$17['margin-' + props.margin],
|
|
2241
|
+
props.background && css$17[`uui-${props.background}`],
|
|
2242
|
+
]);
|
|
2243
|
+
|
|
2244
|
+
var css$16 = {"root":"sPPeqc"};
|
|
2245
|
+
|
|
2246
|
+
function applyLabeledInputMods(mods) {
|
|
2247
|
+
return [
|
|
2248
|
+
'uui-labeled-input',
|
|
2249
|
+
css$16.root,
|
|
2250
|
+
'uui-size-' + (mods.size || settings.labeledInput.sizes.default),
|
|
2251
|
+
];
|
|
2252
|
+
}
|
|
2253
|
+
function applyLabeledInputProps(props) {
|
|
2254
|
+
return ({
|
|
2255
|
+
Tooltip: props.Tooltip || Tooltip,
|
|
2256
|
+
infoIcon: props.infoIcon || props.size <= '30' ? settings.labeledInput.icons.fillInfoIcon : settings.labeledInput.icons.infoIcon,
|
|
2257
|
+
});
|
|
2258
|
+
}
|
|
2259
|
+
const LabeledInput = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.LabeledInput, applyLabeledInputMods, applyLabeledInputProps);
|
|
2260
|
+
|
|
2261
|
+
var css$15 = {"root":"_4FZeuM"};
|
|
2262
|
+
|
|
2263
|
+
function RadioGroup(props) {
|
|
2264
|
+
const direction = props.direction || 'vertical';
|
|
2265
|
+
const handleChange = (newVal) => {
|
|
2266
|
+
if (newVal !== props.value) {
|
|
2267
|
+
props.onValueChange(newVal);
|
|
2268
|
+
}
|
|
1900
2269
|
};
|
|
1901
|
-
return (React__namespace.createElement("fieldset", { ref: props.forwardedRef, className: uuiCore.cx(css$
|
|
2270
|
+
return (React__namespace.createElement("fieldset", { ref: props.forwardedRef, className: uuiCore.cx(css$15.root, uuiCore.directionMode[direction], props.cx), onFocus: props.onFocus, onBlur: props.onBlur, ...props.rawProps }, props.items.map((i) => {
|
|
1902
2271
|
const { id, name, renderName, ...restItemProps } = i;
|
|
1903
2272
|
return (React__namespace.createElement(RadioInput, { name: props.name, renderLabel: i.renderName ? i.renderName : () => i.name, value: props.value === i.id, onValueChange: () => handleChange(i.id), isDisabled: props.isDisabled || i.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, isRequired: props.isRequired, key: i.id.toString(), size: props.size || i.size, ...restItemProps }));
|
|
1904
2273
|
})));
|
|
1905
2274
|
}
|
|
1906
2275
|
|
|
1907
|
-
var css$
|
|
2276
|
+
var css$14 = {"root":"Q1AGp-"};
|
|
1908
2277
|
|
|
1909
2278
|
function applyScrollBarsMods() {
|
|
1910
2279
|
return [
|
|
1911
|
-
css$
|
|
2280
|
+
css$14.root, 'uui-scroll-bars', 'uui-shadow-top', 'uui-shadow-bottom',
|
|
1912
2281
|
];
|
|
1913
2282
|
}
|
|
1914
2283
|
const ScrollBars = /* @__PURE__ */uuiCore.withMods(uuiComponents.ScrollBars, applyScrollBarsMods);
|
|
1915
2284
|
|
|
1916
|
-
var css$
|
|
2285
|
+
var css$13 = {"scroll-container":"TQIrWm","scrollContainer":"TQIrWm","list-container":"DDnpE7","listContainer":"DDnpE7"};
|
|
1917
2286
|
|
|
1918
|
-
var css$
|
|
2287
|
+
var css$12 = {"root":"DOEfus"};
|
|
1919
2288
|
|
|
1920
|
-
const Blocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.Blocker, () => [css$
|
|
2289
|
+
const Blocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.Blocker, () => [css$12.root], () => ({ renderSpinner: settings.blocker.renderSpinner }));
|
|
1921
2290
|
|
|
1922
|
-
|
|
2291
|
+
const VirtualList = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
1923
2292
|
const { listContainerRef, offsetY, handleScroll, estimatedHeight, scrollContainerRef, } = uuiCore.useVirtualList({
|
|
1924
2293
|
value: props.value,
|
|
1925
2294
|
onValueChange: props.onValueChange,
|
|
@@ -1927,11 +2296,11 @@ function VirtualList(props) {
|
|
|
1927
2296
|
rowsCount: props.rowsCount,
|
|
1928
2297
|
rowsSelector: props.rowsSelector,
|
|
1929
2298
|
});
|
|
1930
|
-
React__namespace.useImperativeHandle(
|
|
2299
|
+
React__namespace.useImperativeHandle(ref, () => scrollContainerRef.current, [scrollContainerRef.current]);
|
|
1931
2300
|
const scrollShadows = uuiCore.useScrollShadows({ root: scrollContainerRef.current });
|
|
1932
2301
|
const renderRows = () => props.renderRows?.({
|
|
1933
2302
|
listContainerRef, estimatedHeight, offsetY, scrollShadows,
|
|
1934
|
-
}) || (React__namespace.createElement("div", { className: css$
|
|
2303
|
+
}) || (React__namespace.createElement("div", { className: css$13.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
1935
2304
|
React__namespace.createElement("div", { ref: listContainerRef, role: props.role, style: { marginTop: offsetY } }, props.rows)));
|
|
1936
2305
|
const renderView = ({ style }) => (React__namespace.createElement(VirtualListView, { isLoading: props.isLoading, style: style, rawProps: props.rawProps }));
|
|
1937
2306
|
const scrollBarsRef = React__namespace.useCallback((scrollbars) => {
|
|
@@ -1939,14 +2308,14 @@ function VirtualList(props) {
|
|
|
1939
2308
|
return;
|
|
1940
2309
|
scrollContainerRef.current = scrollbars.container.firstChild;
|
|
1941
2310
|
}, []);
|
|
1942
|
-
return (React__namespace.createElement(ScrollBars, { cx: uuiCore.cx(css$
|
|
2311
|
+
return (React__namespace.createElement(ScrollBars, { cx: uuiCore.cx(css$13.scrollContainer, props.cx, {
|
|
1943
2312
|
[uuiCore.uuiMarkers.scrolledLeft]: scrollShadows.horizontalLeft,
|
|
1944
2313
|
[uuiCore.uuiMarkers.scrolledRight]: scrollShadows.horizontalRight,
|
|
1945
2314
|
[uuiCore.uuiMarkers.scrolledTop]: scrollShadows.verticalTop,
|
|
1946
2315
|
[uuiCore.uuiMarkers.scrolledBottom]: scrollShadows.verticalBottom,
|
|
1947
2316
|
}), onScroll: handleScroll, renderView: renderView, ref: scrollBarsRef }, renderRows()));
|
|
1948
|
-
}
|
|
1949
|
-
|
|
2317
|
+
});
|
|
2318
|
+
const VirtualListView = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
1950
2319
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
1951
2320
|
React__namespace.createElement("div", { ...props.rawProps, style: {
|
|
1952
2321
|
...props.style,
|
|
@@ -1957,11 +2326,11 @@ function VirtualListView(props) {
|
|
|
1957
2326
|
overflow: props.isLoading ? 'hidden' : 'scroll',
|
|
1958
2327
|
marginRight: props.isLoading ? 0 : props.style.marginRight,
|
|
1959
2328
|
marginBottom: props.isLoading ? 0 : props.style.marginBottom,
|
|
1960
|
-
}, ref:
|
|
2329
|
+
}, ref: ref }, props.children),
|
|
1961
2330
|
React__namespace.createElement(Blocker, { isEnabled: props.isLoading })));
|
|
1962
|
-
}
|
|
2331
|
+
});
|
|
1963
2332
|
|
|
1964
|
-
var css$
|
|
2333
|
+
var css$11 = {"root":"MJCYgL"};
|
|
1965
2334
|
|
|
1966
2335
|
function CheckboxGroup(props) {
|
|
1967
2336
|
const currentValue = props.value || [];
|
|
@@ -1977,16 +2346,16 @@ function CheckboxGroup(props) {
|
|
|
1977
2346
|
}
|
|
1978
2347
|
props.onValueChange(newSelection);
|
|
1979
2348
|
};
|
|
1980
|
-
return (React__namespace.createElement("fieldset", { ref: props.forwardedRef, className: uuiCore.cx(css$
|
|
2349
|
+
return (React__namespace.createElement("fieldset", { ref: props.forwardedRef, className: uuiCore.cx(css$11.root, uuiCore.directionMode[direction], props.cx), ...props.rawProps }, props.items.map((i) => {
|
|
1981
2350
|
const { id, name, renderName, ...restItemProps } = i;
|
|
1982
2351
|
return (React__namespace.createElement(Checkbox, { renderLabel: i.renderName ? i.renderName : () => i.name, value: currentValue.indexOf(i.id) !== -1, onValueChange: (selected) => handleChange(selected, i.id), isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, isRequired: props.isRequired, key: i.id.toString(), size: props.size || i.size, ...restItemProps }));
|
|
1983
2352
|
})));
|
|
1984
2353
|
}
|
|
1985
2354
|
|
|
1986
|
-
var css$
|
|
2355
|
+
var css$10 = {"root":"_8y7aYU","modal-blocker":"nqsQXf","modalBlocker":"nqsQXf","animateModalBlocker":"ZgpQBn","modal":"vVk7xY","modal-footer":"-nuw5-","modalFooter":"-nuw5-","border-top":"opcJlX","borderTop":"opcJlX","modal-header":"Ghi9Fk","modalHeader":"Ghi9Fk","border-bottom":"mzS2As","borderBottom":"mzS2As"};
|
|
1987
2356
|
|
|
1988
|
-
const ModalBlocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalBlocker, () => [css$
|
|
1989
|
-
const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, () => [css$
|
|
2357
|
+
const ModalBlocker = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalBlocker, () => [css$10.modalBlocker]);
|
|
2358
|
+
const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, () => [css$10.root, css$10.modal], (props) => {
|
|
1990
2359
|
const width = props.width;
|
|
1991
2360
|
const height = props.height || 'auto';
|
|
1992
2361
|
const maxHeight = uuiCore.isMobile() ? 'var(--uui-modals-mobile-max-height)' : (props.maxHeight || 'var(--uui-modals-max-height)');
|
|
@@ -2000,7 +2369,7 @@ const ModalWindow = /* @__PURE__ */uuiCore.withMods(uuiComponents.ModalWindow, (
|
|
|
2000
2369
|
};
|
|
2001
2370
|
});
|
|
2002
2371
|
function ModalHeader(props) {
|
|
2003
|
-
return (React__namespace.default.createElement("div", { className: cx__default.default(css$
|
|
2372
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default(css$10.root, css$10.modalHeader, 'uui-modal-header', props.borderBottom && css$10.borderBottom, props.cx), ...props.rawProps, style: {
|
|
2004
2373
|
...props.rawProps?.style,
|
|
2005
2374
|
} },
|
|
2006
2375
|
props.title && (React__namespace.default.createElement("div", { className: cx__default.default('uui-modal-title', 'uui-typography') }, props.title)),
|
|
@@ -2010,7 +2379,7 @@ function ModalHeader(props) {
|
|
|
2010
2379
|
React__namespace.default.createElement(IconButton, { rawProps: { 'aria-label': 'Close modal' }, icon: settings.modal.icons.closeIcon, onClick: props.onClose })))));
|
|
2011
2380
|
}
|
|
2012
2381
|
function ModalFooter(props) {
|
|
2013
|
-
return (React__namespace.default.createElement("div", { className: cx__default.default(css$
|
|
2382
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default(css$10.root, css$10.modalFooter, 'uui-modal-footer', props.borderTop && css$10.borderTop, props.cx), ...props.rawProps, style: {
|
|
2014
2383
|
...props.rawProps?.style,
|
|
2015
2384
|
} }, props.children));
|
|
2016
2385
|
}
|
|
@@ -2053,8 +2422,8 @@ const TREE_SHAKEABLE_INIT = () => ({
|
|
|
2053
2422
|
},
|
|
2054
2423
|
},
|
|
2055
2424
|
rangeDatePicker: {
|
|
2056
|
-
pickerPlaceholderFrom: 'From
|
|
2057
|
-
pickerPlaceholderTo: 'To
|
|
2425
|
+
pickerPlaceholderFrom: 'From',
|
|
2426
|
+
pickerPlaceholderTo: 'To',
|
|
2058
2427
|
},
|
|
2059
2428
|
tables: {
|
|
2060
2429
|
noResultsBlock: {
|
|
@@ -2106,6 +2475,7 @@ const TREE_SHAKEABLE_INIT = () => ({
|
|
|
2106
2475
|
emptyPickerPlaceholder: 'Select period',
|
|
2107
2476
|
emptyPlaceholderFrom: 'Select From',
|
|
2108
2477
|
emptyPlaceholderTo: 'Select To',
|
|
2478
|
+
clearCaption: 'CLEAR',
|
|
2109
2479
|
},
|
|
2110
2480
|
pickerInput: {
|
|
2111
2481
|
itemsPlaceholder: 'items',
|
|
@@ -2154,332 +2524,101 @@ const TREE_SHAKEABLE_INIT = () => ({
|
|
|
2154
2524
|
'auth-lost': {
|
|
2155
2525
|
title: 'Your session has expired.',
|
|
2156
2526
|
subtitle: 'Attempting to log you in.',
|
|
2157
|
-
},
|
|
2158
|
-
'connection-lost': {
|
|
2159
|
-
title: 'Network connection down',
|
|
2160
|
-
subtitle: 'Please check your network connection.',
|
|
2161
|
-
},
|
|
2162
|
-
maintenance: {
|
|
2163
|
-
title: 'Server maintenance',
|
|
2164
|
-
subtitle: 'We apologize for the inconvenience. Our site is currently under maintenance. Will come back as soon as possible.',
|
|
2165
|
-
},
|
|
2166
|
-
'server-overload': {
|
|
2167
|
-
title: 'Server overloaded',
|
|
2168
|
-
subtitle: 'We are trying to recover. Please wait.',
|
|
2169
|
-
},
|
|
2170
|
-
},
|
|
2171
|
-
supportMessage: undefined,
|
|
2172
|
-
},
|
|
2173
|
-
});
|
|
2174
|
-
const i18n = /* @__PURE__ */TREE_SHAKEABLE_INIT();
|
|
2175
|
-
|
|
2176
|
-
var css$15 = {"root":"LWd33D","icon-wrapper":"_7410h6","iconWrapper":"_7410h6","action-wrapper":"KePmij","actionWrapper":"KePmij","action-link":"kSCKcP","actionLink":"kSCKcP","close-icon":"_81pEY-","closeIcon":"_81pEY-","main-path":"m7cPrZ","mainPath":"m7cPrZ","content":"R3Yufl","close-wrapper":"_2GVdxe","closeWrapper":"_2GVdxe","notification-wrapper":"Dkus1N","notificationWrapper":"Dkus1N","clear-button":"T73uyD","clearButton":"T73uyD"};
|
|
2177
|
-
|
|
2178
|
-
function NotificationCard(props) {
|
|
2179
|
-
const notificationCardNode = React__namespace.default.useRef(null);
|
|
2180
|
-
React__namespace.default.useImperativeHandle(props.ref, () => notificationCardNode.current, [notificationCardNode.current]);
|
|
2181
|
-
React__namespace.default.useLayoutEffect(() => {
|
|
2182
|
-
notificationCardNode.current?.addEventListener('mouseenter', props.clearTimer);
|
|
2183
|
-
notificationCardNode.current?.addEventListener('mouseleave', props.refreshTimer);
|
|
2184
|
-
return () => {
|
|
2185
|
-
notificationCardNode.current?.removeEventListener('mouseenter', props.clearTimer);
|
|
2186
|
-
notificationCardNode.current?.removeEventListener('mouseleave', props.refreshTimer);
|
|
2187
|
-
};
|
|
2188
|
-
}, []);
|
|
2189
|
-
return (React__namespace.default.createElement("div", { role: "alert", className: cx__default.default('uui-notification_card', props.color && `uui-color-${props.color}`, css$15.root, props.cx), ref: notificationCardNode, ...props.rawProps },
|
|
2190
|
-
React__namespace.default.createElement("div", { className: css$15.mainPath },
|
|
2191
|
-
props.icon && (React__namespace.default.createElement("div", { className: css$15.iconWrapper },
|
|
2192
|
-
React__namespace.default.createElement(uuiComponents.IconContainer, { size: 24, icon: props.icon }))),
|
|
2193
|
-
React__namespace.default.createElement("div", { className: css$15.content },
|
|
2194
|
-
props.children,
|
|
2195
|
-
props.actions && (React__namespace.default.createElement("div", { className: css$15.actionWrapper }, props.actions.map((action) => (React__namespace.default.createElement(LinkButton, { key: action.name, caption: action.name, onClick: action.action, cx: css$15.actionLink, size: settings.notificationCard.sizes.action, rawProps: action.rawProps })))))),
|
|
2196
|
-
props.onClose && (React__namespace.default.createElement("div", { className: css$15.closeWrapper },
|
|
2197
|
-
React__namespace.default.createElement(IconButton, { icon: settings.notificationCard.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$15.closeIcon }))))));
|
|
2198
|
-
}
|
|
2199
|
-
function WarningNotification(props) {
|
|
2200
|
-
return React__namespace.default.createElement(NotificationCard, { icon: settings.notificationCard.icons.warningIcon, color: "warning", ...props });
|
|
2201
|
-
}
|
|
2202
|
-
function SuccessNotification(props) {
|
|
2203
|
-
return React__namespace.default.createElement(NotificationCard, { icon: settings.notificationCard.icons.successIcon, color: "success", ...props });
|
|
2204
|
-
}
|
|
2205
|
-
function HintNotification(props) {
|
|
2206
|
-
return React__namespace.default.createElement(NotificationCard, { icon: settings.notificationCard.icons.hintIcon, color: "info", ...props });
|
|
2207
|
-
}
|
|
2208
|
-
function ErrorNotification(props) {
|
|
2209
|
-
return React__namespace.default.createElement(NotificationCard, { icon: settings.notificationCard.icons.errorIcon, color: "error", ...props });
|
|
2210
|
-
}
|
|
2211
|
-
function ClearNotification() {
|
|
2212
|
-
const uuiCtx = uuiCore.useUuiContext();
|
|
2213
|
-
return (React__namespace.default.createElement("div", { className: cx__default.default(css$15.notificationWrapper, css$15.clearButton) },
|
|
2214
|
-
React__namespace.default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => uuiCtx.uuiNotifications.clearAll() })));
|
|
2215
|
-
}
|
|
2216
|
-
|
|
2217
|
-
var css$14 = {"footer":"HBtgYa"};
|
|
2218
|
-
|
|
2219
|
-
class ConfirmationModal extends React__namespace.Component {
|
|
2220
|
-
render() {
|
|
2221
|
-
let bodyContent;
|
|
2222
|
-
if (this.props.bodyContent) {
|
|
2223
|
-
bodyContent = React__namespace.createElement(Panel, { background: "surface-main", margin: "24" }, this.props.bodyContent);
|
|
2224
|
-
}
|
|
2225
|
-
return (React__namespace.createElement(ModalBlocker, { ...this.props },
|
|
2226
|
-
React__namespace.createElement(ModalWindow, { width: 420 },
|
|
2227
|
-
React__namespace.createElement(ModalHeader, { borderBottom: true, title: this.props.caption, onClose: () => this.props.abort() }),
|
|
2228
|
-
React__namespace.createElement(ScrollBars, null, bodyContent),
|
|
2229
|
-
React__namespace.createElement(ModalFooter, { cx: css$14.footer },
|
|
2230
|
-
this.props.hideCancelButton || (React__namespace.createElement(Button, { caption: i18n.form.modals.discardButton, onClick: () => this.props.success(false), fill: "outline", color: "secondary" })),
|
|
2231
|
-
React__namespace.createElement(Button, { caption: i18n.form.modals.saveButton, onClick: () => this.props.success(true), color: "primary" })))));
|
|
2232
|
-
}
|
|
2233
|
-
}
|
|
2234
|
-
|
|
2235
|
-
function Snackbar(props) {
|
|
2236
|
-
const uuiCtx = uuiCore.useUuiContext();
|
|
2237
|
-
const forceUpdate = useReliableForceUpdate();
|
|
2238
|
-
React.useEffect(() => uuiCtx.uuiNotifications.subscribe(() => forceUpdate()), []);
|
|
2239
|
-
let items = uuiCtx.uuiNotifications.getNotifications().slice().reverse();
|
|
2240
|
-
// add button for clear notification list
|
|
2241
|
-
if (items.length > 1) {
|
|
2242
|
-
const clearOperation = {
|
|
2243
|
-
component: ClearNotification,
|
|
2244
|
-
props: { id: 111555, key: 'clearNotification' },
|
|
2245
|
-
config: { position: items[0].config.position, duration: 'forever' },
|
|
2246
|
-
};
|
|
2247
|
-
items = [clearOperation].concat(items);
|
|
2248
|
-
}
|
|
2249
|
-
return React__namespace.createElement(uuiComponents.Snackbar, { forwardedRef: props.forwardedRef, notifications: items });
|
|
2250
|
-
}
|
|
2251
|
-
/**
|
|
2252
|
-
* https://legacy.reactjs.org/docs/hooks-faq.html#is-there-something-like-forceupdate
|
|
2253
|
-
*/
|
|
2254
|
-
function useReliableForceUpdate() {
|
|
2255
|
-
const red = React.useReducer((x) => x + 1, 0);
|
|
2256
|
-
return red[1];
|
|
2257
|
-
}
|
|
2258
|
-
|
|
2259
|
-
var css$13 = {"root":"RBLD5u","timepicker-input":"_5umJxG","timepickerInput":"_5umJxG","ltr-always":"D1xa9a","ltrAlways":"D1xa9a"};
|
|
2260
|
-
|
|
2261
|
-
const uuiTimePicker = {
|
|
2262
|
-
container: 'uui-timepicker-container',
|
|
2263
|
-
iconUp: 'uui-timepicker-icon-up',
|
|
2264
|
-
iconDown: 'uui-timepicker-icon-down',
|
|
2265
|
-
input: 'uui-timepicker-input',
|
|
2266
|
-
elementContainer: 'uui-timepicker-item',
|
|
2267
|
-
};
|
|
2268
|
-
const MIN_MINUTES = 0;
|
|
2269
|
-
const MAX_MINUTES = 59;
|
|
2270
|
-
const FORMAT_12H = 12;
|
|
2271
|
-
function TimePickerBody(props) {
|
|
2272
|
-
const MIN_HOURS = props.format === FORMAT_12H ? 1 : 0;
|
|
2273
|
-
const MAX_HOURS = props.format || FORMAT_12H;
|
|
2274
|
-
const setValue = (newTime) => {
|
|
2275
|
-
props.onValueChange({ hours: newTime.hour(), minutes: newTime.minute() });
|
|
2276
|
-
};
|
|
2277
|
-
const onHoursChange = (newHours) => {
|
|
2278
|
-
setValue(uuiDayjs.dayjs().set(props.value).hour(newHours));
|
|
2279
|
-
};
|
|
2280
|
-
const onMinutesChange = (newMinutes) => {
|
|
2281
|
-
setValue(uuiDayjs.dayjs().set(props.value).minute(newMinutes));
|
|
2282
|
-
};
|
|
2283
|
-
const onTimeTypeChange = () => {
|
|
2284
|
-
setValue(uuiDayjs.dayjs().set(props.value).add(12, 'h'));
|
|
2285
|
-
};
|
|
2286
|
-
const handleMinutesUpClick = () => {
|
|
2287
|
-
const minutesStep = props.minutesStep || 5;
|
|
2288
|
-
const value = uuiDayjs.dayjs().set(props.value);
|
|
2289
|
-
const minutesToAdd = minutesStep - (value.minute() % minutesStep);
|
|
2290
|
-
onMinutesChange(value.add(minutesToAdd, 'm').minute());
|
|
2291
|
-
};
|
|
2292
|
-
const handleMinutesDownClick = () => {
|
|
2293
|
-
const minutesStep = props.minutesStep || 5;
|
|
2294
|
-
const value = uuiDayjs.dayjs().set(props.value);
|
|
2295
|
-
const minutesToSubtract = value.minute() % minutesStep === 0 ? minutesStep : value.minute() % minutesStep;
|
|
2296
|
-
onMinutesChange(value.subtract(minutesToSubtract, 'm').minute());
|
|
2297
|
-
};
|
|
2298
|
-
return (React__namespace.createElement("div", { className: uuiCore.cx(css$13.root, uuiTimePicker.container, props.cx), ref: props.forwardedRef, ...props.rawProps },
|
|
2299
|
-
React__namespace.createElement("div", { className: css$13.ltrAlways },
|
|
2300
|
-
React__namespace.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
2301
|
-
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment hours' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$Q, onClick: () => onHoursChange(uuiDayjs.dayjs().set(props.value).add(1, 'h').hour()) }),
|
|
2302
|
-
React__namespace.createElement(uuiComponents.NumericInput, { cx: uuiTimePicker.input, onValueChange: onHoursChange, value: +(uuiDayjs.dayjs()
|
|
2303
|
-
.set(props.value)
|
|
2304
|
-
.format(MAX_HOURS === FORMAT_12H ? 'hh' : 'HH')), min: MIN_HOURS, max: MAX_HOURS }),
|
|
2305
|
-
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, rawProps: { 'aria-label': 'Decrement hours' }, cx: uuiTimePicker.iconDown, icon: ForwardRef$Q, onClick: () => onHoursChange(uuiDayjs.dayjs().set(props.value).subtract(1, 'h').hour()) })),
|
|
2306
|
-
React__namespace.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
2307
|
-
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, rawProps: { 'aria-label': 'Increment minutes' }, cx: uuiTimePicker.iconUp, icon: ForwardRef$Q, onClick: handleMinutesUpClick }),
|
|
2308
|
-
React__namespace.createElement(uuiComponents.NumericInput, { cx: uuiTimePicker.input, onValueChange: onMinutesChange, value: +uuiDayjs.dayjs().set(props.value).format('m'), min: MIN_MINUTES, max: MAX_MINUTES }),
|
|
2309
|
-
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, rawProps: { 'aria-label': 'Decrement minutes' }, cx: uuiTimePicker.iconDown, icon: ForwardRef$Q, onClick: handleMinutesDownClick }))),
|
|
2310
|
-
MAX_HOURS === FORMAT_12H && (React__namespace.createElement("div", { className: uuiTimePicker.elementContainer },
|
|
2311
|
-
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, cx: uuiTimePicker.iconUp, icon: ForwardRef$Q, onClick: onTimeTypeChange }),
|
|
2312
|
-
React__namespace.createElement(uuiComponents.TextInput, { cx: uuiTimePicker.input, onValueChange: () => {
|
|
2313
|
-
}, isReadonly: true, value: uuiDayjs.dayjs().set(props.value).format('A') }),
|
|
2314
|
-
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, cx: uuiTimePicker.iconDown, icon: ForwardRef$Q, onClick: onTimeTypeChange })))));
|
|
2315
|
-
}
|
|
2316
|
-
|
|
2317
|
-
const getMeridian = (newValue, format) => {
|
|
2318
|
-
if (format === 'hh:mm A') {
|
|
2319
|
-
if (newValue.toLowerCase().includes('p') && newValue.toLowerCase().includes('a')) {
|
|
2320
|
-
return newValue.toLowerCase().indexOf('p') < newValue.toLowerCase().indexOf('a') ? 'PM' : 'AM';
|
|
2321
|
-
}
|
|
2322
|
-
return newValue.toLowerCase().includes('p') ? 'PM' : 'AM';
|
|
2323
|
-
}
|
|
2324
|
-
return false;
|
|
2325
|
-
};
|
|
2326
|
-
const parseTimeNumbers = (value, separator) => {
|
|
2327
|
-
let hours, minutes;
|
|
2328
|
-
const timeNumbers = value.replace(/\D/gi, '');
|
|
2329
|
-
switch (separator) {
|
|
2330
|
-
case 0:
|
|
2331
|
-
hours = 0;
|
|
2332
|
-
minutes = parseInt(timeNumbers.trim().slice(0, 2));
|
|
2333
|
-
break;
|
|
2334
|
-
case 1:
|
|
2335
|
-
hours = parseInt(timeNumbers.slice(0, 1));
|
|
2336
|
-
minutes = parseInt(timeNumbers.slice(1, 3));
|
|
2337
|
-
break;
|
|
2338
|
-
default:
|
|
2339
|
-
hours = parseInt(timeNumbers.slice(0, 2));
|
|
2340
|
-
minutes = parseInt(timeNumbers.slice(2, 4));
|
|
2341
|
-
}
|
|
2342
|
-
return { hours, minutes };
|
|
2343
|
-
};
|
|
2344
|
-
const formatTime = (hours, minutes, meridian, format) => {
|
|
2345
|
-
const normalizeHours = (h) => Number.isNaN(h) ? '00' : h.toString().padStart(2, '0');
|
|
2346
|
-
const normalizeMinutes = (m) => Number.isNaN(m) ? '00' : m.toString().padStart(2, '0');
|
|
2347
|
-
if (meridian && normalizeHours(hours) === '00' && normalizeMinutes(minutes) === '00') {
|
|
2348
|
-
return '';
|
|
2349
|
-
}
|
|
2350
|
-
let hoursResult = Number.parseInt(normalizeHours(hours));
|
|
2351
|
-
let meridianResult = meridian;
|
|
2352
|
-
if ((format === 'hh:mm A') && hoursResult > 12) {
|
|
2353
|
-
hoursResult -= 12;
|
|
2354
|
-
meridianResult = 'PM';
|
|
2355
|
-
}
|
|
2356
|
-
if ((format === 'hh:mm A') && hoursResult === 0) {
|
|
2357
|
-
hoursResult = 12;
|
|
2358
|
-
}
|
|
2359
|
-
const time = `${normalizeHours(hoursResult)}:${normalizeMinutes(minutes)}`;
|
|
2360
|
-
return meridianResult ? time.concat(` ${meridianResult}`) : time;
|
|
2361
|
-
};
|
|
2362
|
-
|
|
2363
|
-
const DEFAULT_MODE = EditMode.FORM;
|
|
2364
|
-
const valueToTimeString = (value, format) => {
|
|
2365
|
-
if (value === null)
|
|
2366
|
-
return null;
|
|
2367
|
-
return uuiDayjs.dayjs()
|
|
2368
|
-
.set(value)
|
|
2369
|
-
.format(format === 24 ? 'HH:mm' : 'hh:mm A');
|
|
2370
|
-
};
|
|
2371
|
-
function TimePicker(props) {
|
|
2372
|
-
const [state, setState] = React.useState({
|
|
2373
|
-
isOpen: false,
|
|
2374
|
-
value: valueToTimeString(props.value, props.format),
|
|
2375
|
-
inputValue: valueToTimeString(props.value, props.format),
|
|
2376
|
-
});
|
|
2377
|
-
React.useEffect(() => {
|
|
2378
|
-
if (valueToTimeString(props.value, props.format) !== state.value) {
|
|
2379
|
-
const stringValue = valueToTimeString(props.value, props.format);
|
|
2380
|
-
setState((prevState) => ({
|
|
2381
|
-
...prevState,
|
|
2382
|
-
value: stringValue,
|
|
2383
|
-
inputValue: stringValue,
|
|
2384
|
-
}));
|
|
2385
|
-
}
|
|
2386
|
-
}, [props.value, props.format]);
|
|
2387
|
-
const getFormat = () => props.format === 24 ? 'HH:mm' : 'hh:mm A';
|
|
2388
|
-
const isTimeValid = (newValue) => uuiDayjs.dayjs(newValue, getFormat(), true).isValid();
|
|
2389
|
-
const formatStringTimeToObject = (stringTime) => {
|
|
2390
|
-
if (stringTime) {
|
|
2391
|
-
const value = uuiDayjs.dayjs(stringTime, getFormat(), true);
|
|
2392
|
-
return { hours: value.hour(), minutes: value.minute() };
|
|
2393
|
-
}
|
|
2394
|
-
return { hours: null, minutes: null };
|
|
2395
|
-
};
|
|
2396
|
-
const onClear = () => {
|
|
2397
|
-
props.onValueChange(null);
|
|
2398
|
-
};
|
|
2399
|
-
const onToggle = (value) => {
|
|
2400
|
-
setState((prevState) => ({ ...prevState, isOpen: value }));
|
|
2401
|
-
};
|
|
2402
|
-
const saveTime = (newTime) => {
|
|
2403
|
-
setState((prevState) => ({ ...prevState, inputValue: newTime }));
|
|
2404
|
-
props.onValueChange(formatStringTimeToObject(newTime));
|
|
2405
|
-
};
|
|
2406
|
-
const getTimeFromInputValue = (newValue) => {
|
|
2407
|
-
const trimmedNewValue = newValue.trimStart();
|
|
2408
|
-
const separator = trimmedNewValue.search(/\D/);
|
|
2409
|
-
const meridian = getMeridian(trimmedNewValue, getFormat());
|
|
2410
|
-
const { hours, minutes } = parseTimeNumbers(trimmedNewValue, separator);
|
|
2411
|
-
return formatTime(hours, minutes, meridian, getFormat());
|
|
2412
|
-
};
|
|
2413
|
-
const handleBodyValueChange = (newValue) => {
|
|
2414
|
-
const inputValue = valueToTimeString(newValue, props.format);
|
|
2415
|
-
saveTime(inputValue);
|
|
2416
|
-
};
|
|
2417
|
-
const handleFocus = (e) => {
|
|
2418
|
-
onToggle(true);
|
|
2419
|
-
props.onFocus?.(e);
|
|
2420
|
-
};
|
|
2421
|
-
const handleInputChange = (newValue) => {
|
|
2422
|
-
setState((prevState) => ({ ...prevState, inputValue: newValue }));
|
|
2423
|
-
if (newValue) {
|
|
2424
|
-
const result = getTimeFromInputValue(newValue);
|
|
2425
|
-
if (isTimeValid(result)) {
|
|
2426
|
-
setState((prevState) => ({ ...prevState, value: result }));
|
|
2427
|
-
}
|
|
2428
|
-
}
|
|
2429
|
-
};
|
|
2430
|
-
const handleBlur = (e) => {
|
|
2431
|
-
if (uuiCore.isFocusReceiverInsideFocusLock(e))
|
|
2432
|
-
return;
|
|
2433
|
-
onToggle(false);
|
|
2434
|
-
props.onBlur?.(e);
|
|
2435
|
-
if (state.value === '' || state.inputValue === '') {
|
|
2436
|
-
props.onValueChange(null);
|
|
2437
|
-
setState((prevState) => ({ ...prevState, value: null, inputValue: null }));
|
|
2438
|
-
}
|
|
2439
|
-
state.value && state.inputValue && saveTime(state.value);
|
|
2440
|
-
};
|
|
2441
|
-
const renderInput = (inputProps) => {
|
|
2442
|
-
return (React__namespace.default.createElement(TextInput, { ...inputProps, onClick: null, size: props.size, isDisabled: props.isDisabled, isReadonly: props.isReadonly, isInvalid: props.isInvalid, cx: [css$13.root, css$13.timepickerInput, props.inputCx], value: state.inputValue, onValueChange: handleInputChange, onCancel: !props.disableClear && onClear, onFocus: handleFocus, onBlur: handleBlur, isDropdown: false, placeholder: props.placeholder ? props.placeholder : getFormat(), mode: props.mode || DEFAULT_MODE, rawProps: props.rawProps?.input }));
|
|
2443
|
-
};
|
|
2444
|
-
const renderBody = (bodyProps) => {
|
|
2445
|
-
const { forwardedRef, onValueChange, ...timePickerBodyProps } = props;
|
|
2446
|
-
return (!props.isDisabled && !props.isReadonly && (React__namespace.default.createElement(DropdownContainer, { ...bodyProps, focusLock: false },
|
|
2447
|
-
React__namespace.default.createElement(TimePickerBody, { ...timePickerBodyProps, onValueChange: handleBodyValueChange, value: formatStringTimeToObject(state.value), rawProps: props.rawProps?.body, cx: props.bodyCx }))));
|
|
2448
|
-
};
|
|
2449
|
-
return (React__namespace.default.createElement(Dropdown, { renderTarget: (targetProps) => (props.renderTarget ? props.renderTarget(targetProps) : renderInput(targetProps)), renderBody: (bodyProps) => !props.isDisabled && !props.isReadonly && renderBody(bodyProps), onValueChange: !props.isDisabled && !props.isReadonly ? onToggle : null, value: state.isOpen, modifiers: [{ name: 'offset', options: { offset: [0, 6] } }], forwardedRef: props.forwardedRef }));
|
|
2450
|
-
}
|
|
2527
|
+
},
|
|
2528
|
+
'connection-lost': {
|
|
2529
|
+
title: 'Network connection down',
|
|
2530
|
+
subtitle: 'Please check your network connection.',
|
|
2531
|
+
},
|
|
2532
|
+
maintenance: {
|
|
2533
|
+
title: 'Server maintenance',
|
|
2534
|
+
subtitle: 'We apologize for the inconvenience. Our site is currently under maintenance. Will come back as soon as possible.',
|
|
2535
|
+
},
|
|
2536
|
+
'server-overload': {
|
|
2537
|
+
title: 'Server overloaded',
|
|
2538
|
+
subtitle: 'We are trying to recover. Please wait.',
|
|
2539
|
+
},
|
|
2540
|
+
},
|
|
2541
|
+
supportMessage: undefined,
|
|
2542
|
+
},
|
|
2543
|
+
});
|
|
2544
|
+
const i18n = /* @__PURE__ */TREE_SHAKEABLE_INIT();
|
|
2451
2545
|
|
|
2452
|
-
var css
|
|
2546
|
+
var css$$ = {"root":"_9kT86f","icon-wrapper":"KY7aE6","iconWrapper":"KY7aE6","action-wrapper":"Mjnaui","actionWrapper":"Mjnaui","close-icon":"NCaWlf","closeIcon":"NCaWlf","main-path":"XN7JPH","mainPath":"XN7JPH","content":"FN9pB6","close-wrapper":"CueH3o","closeWrapper":"CueH3o","clear-notifications":"bpTfWq","clearNotifications":"bpTfWq"};
|
|
2453
2547
|
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2548
|
+
const NotificationCard = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
2549
|
+
const notificationCardNode = React__namespace.default.useRef(null);
|
|
2550
|
+
React__namespace.default.useImperativeHandle(ref, () => notificationCardNode.current, [notificationCardNode.current]);
|
|
2551
|
+
React__namespace.default.useLayoutEffect(() => {
|
|
2552
|
+
notificationCardNode.current?.addEventListener('mouseenter', props.clearTimer);
|
|
2553
|
+
notificationCardNode.current?.addEventListener('mouseleave', props.refreshTimer);
|
|
2554
|
+
return () => {
|
|
2555
|
+
notificationCardNode.current?.removeEventListener('mouseenter', props.clearTimer);
|
|
2556
|
+
notificationCardNode.current?.removeEventListener('mouseleave', props.refreshTimer);
|
|
2557
|
+
};
|
|
2558
|
+
}, []);
|
|
2559
|
+
return (React__namespace.default.createElement("div", { role: "alert", className: cx__default.default('uui-notification_card', props.color && `uui-color-${props.color}`, css$$.root, props.cx), ref: notificationCardNode, ...props.rawProps },
|
|
2560
|
+
React__namespace.default.createElement("div", { className: css$$.mainPath },
|
|
2561
|
+
props.icon && (React__namespace.default.createElement("div", { className: css$$.iconWrapper },
|
|
2562
|
+
React__namespace.default.createElement(uuiComponents.IconContainer, { size: settings.notificationCard.sizes.icon, icon: props.icon }))),
|
|
2563
|
+
React__namespace.default.createElement("div", { className: css$$.content },
|
|
2564
|
+
props.children,
|
|
2565
|
+
props.actions && (React__namespace.default.createElement("div", { className: css$$.actionWrapper }, props.actions.map((action) => (React__namespace.default.createElement(LinkButton, { key: action.name, caption: action.name, onClick: action.action, cx: css$$.actionLink, size: settings.notificationCard.sizes.action, rawProps: action.rawProps })))))),
|
|
2566
|
+
props.onClose && (React__namespace.default.createElement("div", { className: cx__default.default(css$$.closeWrapper, 'uui-notification_card-close_icon') },
|
|
2567
|
+
React__namespace.default.createElement(IconButton, { icon: settings.notificationCard.icons.closeIcon, color: "neutral", onClick: props.onClose, cx: css$$.closeIcon }))))));
|
|
2568
|
+
});
|
|
2569
|
+
const WarningNotification = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, { icon: settings.notificationCard.icons.warningIcon, color: "warning", ...props, ref: ref, cx: props.cx })));
|
|
2570
|
+
const SuccessNotification = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, { icon: settings.notificationCard.icons.successIcon, color: "success", ...props, ref: ref, cx: props.cx })));
|
|
2571
|
+
const HintNotification = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, { icon: settings.notificationCard.icons.hintIcon, color: "info", ...props, ref: ref, cx: props.cx })));
|
|
2572
|
+
const ErrorNotification = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => (React__namespace.default.createElement(NotificationCard, { icon: settings.notificationCard.icons.errorIcon, color: "error", ...props, ref: ref, cx: props.cx })));
|
|
2573
|
+
function ClearNotification() {
|
|
2574
|
+
const uuiCtx = uuiCore.useUuiContext();
|
|
2575
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default(css$$.clearNotifications, 'uui-clear-notifications') },
|
|
2576
|
+
React__namespace.default.createElement(LinkButton, { caption: i18n.notificationCard.closeAllNotificationsButton, onClick: () => uuiCtx.uuiNotifications.clearAll() })));
|
|
2458
2577
|
}
|
|
2459
|
-
const InputAddon = /* @__PURE__ */uuiCore.withMods(uuiComponents.InputAddon, applyInputAddonMods);
|
|
2460
2578
|
|
|
2461
|
-
var css$
|
|
2579
|
+
var css$_ = {"footer":"MvzBXK"};
|
|
2462
2580
|
|
|
2463
|
-
|
|
2464
|
-
|
|
2581
|
+
class ConfirmationModal extends React__namespace.Component {
|
|
2582
|
+
render() {
|
|
2583
|
+
let bodyContent;
|
|
2584
|
+
if (this.props.bodyContent) {
|
|
2585
|
+
bodyContent = React__namespace.createElement(Panel, { background: "surface-main", margin: "24" }, this.props.bodyContent);
|
|
2586
|
+
}
|
|
2587
|
+
return (React__namespace.createElement(ModalBlocker, { ...this.props },
|
|
2588
|
+
React__namespace.createElement(ModalWindow, { width: 420 },
|
|
2589
|
+
React__namespace.createElement(ModalHeader, { borderBottom: true, title: this.props.caption, onClose: () => this.props.abort() }),
|
|
2590
|
+
React__namespace.createElement(ScrollBars, null, bodyContent),
|
|
2591
|
+
React__namespace.createElement(ModalFooter, { cx: css$_.footer },
|
|
2592
|
+
this.props.hideCancelButton || (React__namespace.createElement(Button, { caption: i18n.form.modals.discardButton, onClick: () => this.props.success(false), fill: "outline", color: "secondary" })),
|
|
2593
|
+
React__namespace.createElement(Button, { caption: i18n.form.modals.saveButton, onClick: () => this.props.success(true), color: "primary" })))));
|
|
2594
|
+
}
|
|
2465
2595
|
}
|
|
2466
|
-
const Slider = /* @__PURE__ */uuiCore.withMods(uuiComponents.Slider, applySliderMods);
|
|
2467
|
-
|
|
2468
|
-
var css$10 = {"root":"hTytAz","tooltip":"_18y6p7"};
|
|
2469
2596
|
|
|
2470
|
-
function
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2597
|
+
function Snackbar(props) {
|
|
2598
|
+
const uuiCtx = uuiCore.useUuiContext();
|
|
2599
|
+
const forceUpdate = useReliableForceUpdate();
|
|
2600
|
+
React.useEffect(() => uuiCtx.uuiNotifications.subscribe(() => forceUpdate()), []);
|
|
2601
|
+
let items = uuiCtx.uuiNotifications.getNotifications().slice().reverse();
|
|
2602
|
+
// add button for clear notification list
|
|
2603
|
+
if (items.length > 1) {
|
|
2604
|
+
const clearOperation = {
|
|
2605
|
+
component: ClearNotification,
|
|
2606
|
+
props: { id: 111555, key: 'clearNotification' },
|
|
2607
|
+
config: { position: items[0].config.position, duration: 'forever' },
|
|
2608
|
+
};
|
|
2609
|
+
items = [clearOperation].concat(items);
|
|
2610
|
+
}
|
|
2611
|
+
return React__namespace.createElement(uuiComponents.Snackbar, { forwardedRef: props.forwardedRef, notifications: items });
|
|
2612
|
+
}
|
|
2613
|
+
/**
|
|
2614
|
+
* https://legacy.reactjs.org/docs/hooks-faq.html#is-there-something-like-forceupdate
|
|
2615
|
+
*/
|
|
2616
|
+
function useReliableForceUpdate() {
|
|
2617
|
+
const red = React.useReducer((x) => x + 1, 0);
|
|
2618
|
+
return red[1];
|
|
2475
2619
|
}
|
|
2476
|
-
const Rating = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Rating, applyRatingMods, (props) => ({
|
|
2477
|
-
filledStarIcon: props.icon || settings.rating.icons.filledRatingIcon,
|
|
2478
|
-
emptyStarIcon: props.icon || settings.rating.icons.emptyRatingIcon,
|
|
2479
|
-
Tooltip,
|
|
2480
|
-
}));
|
|
2481
2620
|
|
|
2482
|
-
var css
|
|
2621
|
+
var css$Z = {"root":"R-HcNd","container":"UT0xT3"};
|
|
2483
2622
|
|
|
2484
2623
|
const defaultFormat = 'MMM D, YYYY';
|
|
2485
2624
|
const valueFormat = 'YYYY-MM-DD';
|
|
@@ -2512,7 +2651,7 @@ const getMonthOnOpen = (selectedDate, focus) => {
|
|
|
2512
2651
|
};
|
|
2513
2652
|
const isValidDate = (input, format, filter) => {
|
|
2514
2653
|
const parsedDate = uuiDayjs.dayjs(input, supportedDateFormats(format), true);
|
|
2515
|
-
return parsedDate.isValid()
|
|
2654
|
+
return filter ? parsedDate.isValid() && filter(parsedDate) : parsedDate.isValid();
|
|
2516
2655
|
};
|
|
2517
2656
|
const isValidRange = (range) => {
|
|
2518
2657
|
const from = uuiDayjs.dayjs(range.from);
|
|
@@ -2683,26 +2822,27 @@ function DatePickerHeader({ navIconLeft, navIconRight, value: { month, view }, o
|
|
|
2683
2822
|
}, [view, month]);
|
|
2684
2823
|
const disablePrev = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getPrevYearsList(month));
|
|
2685
2824
|
const disableNext = view === 'YEAR_SELECTION' && !isYearWithinSoberRange(getNextYearsList(month));
|
|
2686
|
-
return (React__namespace.createElement("div", { className: cx__default.default(css
|
|
2825
|
+
return (React__namespace.createElement("div", { className: cx__default.default(css$Z.root, uuiHeader.container, cx__default.default) },
|
|
2687
2826
|
React__namespace.createElement("header", { className: uuiHeader.headerNav },
|
|
2688
2827
|
React__namespace.createElement(Button, { icon: navIconLeft || settings.datePicker.icons.body.prevIcon, color: "secondary", fill: "ghost", cx: uuiHeader.navIconLeft, onClick: !isDisabled && (() => onLeftNavigationArrow()), isDisabled: disablePrev }),
|
|
2689
2828
|
React__namespace.createElement(Button, { caption: title, fill: "ghost", cx: uuiHeader.navTitle, onClick: !isDisabled && (() => onCaptionClick(view)) }),
|
|
2690
2829
|
React__namespace.createElement(Button, { icon: navIconRight || settings.datePicker.icons.body.nextIcon, color: "secondary", fill: "ghost", cx: uuiHeader.navIconRight, onClick: !isDisabled && (() => onRightNavigationArrow()), isDisabled: disableNext }))));
|
|
2691
2830
|
}
|
|
2692
2831
|
|
|
2693
|
-
var css$
|
|
2832
|
+
var css$Y = {"root":"_8Y9OQe"};
|
|
2694
2833
|
|
|
2695
2834
|
function applyDateSelectionMods() {
|
|
2696
|
-
return [css$
|
|
2835
|
+
return [css$Y.root, `uui-size-${settings.datePicker.sizes.body}`];
|
|
2697
2836
|
}
|
|
2698
2837
|
const Calendar = /* @__PURE__ */uuiCore.withMods(uuiComponents.Calendar, applyDateSelectionMods);
|
|
2699
2838
|
|
|
2700
|
-
var css$
|
|
2839
|
+
var css$X = {"root":"sDsW55"};
|
|
2701
2840
|
|
|
2702
2841
|
const uuiDatePickerBody = {
|
|
2703
2842
|
wrapper: 'uui-datepicker-body-wrapper',
|
|
2704
2843
|
};
|
|
2705
|
-
|
|
2844
|
+
const DatePickerBody = /* @__PURE__ */React.forwardRef(DatePickerBodyComp);
|
|
2845
|
+
function DatePickerBodyComp(props, ref) {
|
|
2706
2846
|
const { value, onValueChange } = props;
|
|
2707
2847
|
const [month, setMonth] = React.useState(getNewMonth(value));
|
|
2708
2848
|
const [view, setView] = React.useState('DAY_SELECTION');
|
|
@@ -2711,10 +2851,11 @@ function DatePickerBody(props) {
|
|
|
2711
2851
|
setMonth(getNewMonth(value));
|
|
2712
2852
|
setView('DAY_SELECTION');
|
|
2713
2853
|
}, [value, setMonth]);
|
|
2714
|
-
return (React__namespace.default.createElement(StatelessDatePickerBody, { ref:
|
|
2854
|
+
return (React__namespace.default.createElement(StatelessDatePickerBody, { ref: ref, ...props, month: month, view: view, onValueChange: onValueChange, onMonthChange: (m) => setMonth(m), onViewChange: (v) => setView(v) }));
|
|
2715
2855
|
}
|
|
2716
|
-
|
|
2717
|
-
|
|
2856
|
+
const StatelessDatePickerBody = /* @__PURE__ */React.forwardRef(StatelessDatePickerBodyComp);
|
|
2857
|
+
function StatelessDatePickerBodyComp({ renderDay, isHoliday, cx: classes, filter, rawProps, value, month, view, onValueChange, onMonthChange, onViewChange, isDisabled, }, ref) {
|
|
2858
|
+
const selectedDate = React.useMemo(() => uuiDayjs.dayjs(value), [value]);
|
|
2718
2859
|
const onMonthClick = (newDate) => {
|
|
2719
2860
|
onMonthChange(newDate);
|
|
2720
2861
|
onViewChange('DAY_SELECTION');
|
|
@@ -2739,7 +2880,7 @@ function StatelessDatePickerBody({ renderDay, isHoliday, cx: classes, filter, ra
|
|
|
2739
2880
|
}
|
|
2740
2881
|
};
|
|
2741
2882
|
return (React__namespace.default.createElement("div", { ref: ref, className: uuiCore.cx(uuiDatePickerBodyBase.container, `uui-size-${settings.datePicker.sizes.body}`, classes), ...rawProps },
|
|
2742
|
-
React__namespace.default.createElement("div", { className: uuiCore.cx(css$
|
|
2883
|
+
React__namespace.default.createElement("div", { className: uuiCore.cx(css$X.root, uuiDatePickerBody.wrapper) },
|
|
2743
2884
|
React__namespace.default.createElement(DatePickerHeader, { value: {
|
|
2744
2885
|
view,
|
|
2745
2886
|
month,
|
|
@@ -2751,11 +2892,7 @@ function StatelessDatePickerBody({ renderDay, isHoliday, cx: classes, filter, ra
|
|
|
2751
2892
|
}
|
|
2752
2893
|
|
|
2753
2894
|
const defaultMode$1 = EditMode.FORM;
|
|
2754
|
-
|
|
2755
|
-
name: 'offset',
|
|
2756
|
-
options: { offset: [0, 6] },
|
|
2757
|
-
}];
|
|
2758
|
-
function DatePicker(props) {
|
|
2895
|
+
function DatePickerComponent(props, ref) {
|
|
2759
2896
|
const { format = defaultFormat, value, size = settings.datePicker.sizes.input } = props;
|
|
2760
2897
|
const context = uuiCore.useUuiContext();
|
|
2761
2898
|
const [inputValue, setInputValue] = React.useState(toCustomDateFormat(value, format));
|
|
@@ -2784,8 +2921,9 @@ function DatePicker(props) {
|
|
|
2784
2921
|
onValueChange(toValueDateFormat(inputValue, format));
|
|
2785
2922
|
}
|
|
2786
2923
|
else {
|
|
2787
|
-
|
|
2788
|
-
|
|
2924
|
+
const newValue = props.preventEmpty ? value : null;
|
|
2925
|
+
setInputValue(toCustomDateFormat(newValue, format));
|
|
2926
|
+
onValueChange(newValue);
|
|
2789
2927
|
}
|
|
2790
2928
|
};
|
|
2791
2929
|
const onInputKeyDown = (e) => {
|
|
@@ -2795,7 +2933,7 @@ function DatePicker(props) {
|
|
|
2795
2933
|
}
|
|
2796
2934
|
};
|
|
2797
2935
|
const renderInput = (renderProps) => {
|
|
2798
|
-
const allowClear = !props.disableClear && !!inputValue;
|
|
2936
|
+
const allowClear = !props.disableClear && !!inputValue && !props.preventEmpty;
|
|
2799
2937
|
return (React__namespace.default.createElement(TextInput, { ...renderProps, isDropdown: false, cx: uuiCore.cx(props.inputCx, isBodyOpen && uuiCore.uuiMod.focus), icon: props.mode !== EditMode.CELL ? settings.datePicker.icons.input.calendarIcon : undefined, iconPosition: props.iconPosition || 'left', placeholder: props.placeholder ? props.placeholder : format, size: size, value: inputValue || undefined, onValueChange: (v) => {
|
|
2800
2938
|
setInputValue(v || '');
|
|
2801
2939
|
}, onCancel: allowClear ? () => {
|
|
@@ -2806,23 +2944,22 @@ function DatePicker(props) {
|
|
|
2806
2944
|
props.onFocus?.(e);
|
|
2807
2945
|
}, onKeyDown: onInputKeyDown, onBlur: onBlur, mode: props.mode || defaultMode$1, rawProps: props.rawProps?.input, id: props.id }));
|
|
2808
2946
|
};
|
|
2809
|
-
const renderBody = (renderProps) => {
|
|
2947
|
+
const renderBody = React.useMemo(() => (renderProps) => {
|
|
2810
2948
|
return (React__namespace.default.createElement(DropdownContainer, { ...renderProps },
|
|
2811
2949
|
React__namespace.default.createElement(DatePickerBody, { value: value, onValueChange: onBodyValueChange, cx: uuiCore.cx(props.bodyCx), filter: props.filter, isHoliday: props.isHoliday, renderDay: props.renderDay, rawProps: props.rawProps?.body }),
|
|
2812
2950
|
props.renderFooter?.()));
|
|
2813
|
-
};
|
|
2814
|
-
return (React__namespace.default.createElement(uuiComponents.Dropdown, { value: isBodyOpen,
|
|
2951
|
+
}, [value, onBodyValueChange]);
|
|
2952
|
+
return (React__namespace.default.createElement(uuiComponents.Dropdown, { value: isBodyOpen, middleware: [react.offset(6)], placement: props.placement, ref: ref, onValueChange: (v) => {
|
|
2815
2953
|
setBodyIsOpen(v);
|
|
2816
2954
|
}, renderTarget: (renderProps) => {
|
|
2817
2955
|
return props.renderTarget?.(renderProps) || renderInput(renderProps);
|
|
2818
|
-
}, renderBody:
|
|
2819
|
-
return renderBody(renderProps);
|
|
2820
|
-
} }));
|
|
2956
|
+
}, renderBody: renderBody }));
|
|
2821
2957
|
}
|
|
2958
|
+
const DatePicker = /* @__PURE__ */React__namespace.default.forwardRef(DatePickerComponent);
|
|
2822
2959
|
|
|
2823
|
-
var css$
|
|
2960
|
+
var css$W = {"date-input":"K9r-wX","dateInput":"K9r-wX","root":"o-TCjR","separator":"q8bNWT"};
|
|
2824
2961
|
|
|
2825
|
-
|
|
2962
|
+
const RangeDatePickerInput = /* @__PURE__ */React.forwardRef(({ isDisabled, isInvalid, isReadonly, size, disableClear, rawProps, value, inFocus, format, onValueChange, onFocusInput, onBlurInput, onClick, getPlaceholder, filter, onKeyDown, preventEmptyFromDate, preventEmptyToDate, id, cx: classes, }, ref) => {
|
|
2826
2963
|
const [inputValue, setInputValue] = React.useState(toCustomDateRangeFormat(value, format));
|
|
2827
2964
|
React.useEffect(() => {
|
|
2828
2965
|
setInputValue(toCustomDateRangeFormat(value, format));
|
|
@@ -2838,19 +2975,29 @@ function RangeDatePickerInput({ isDisabled, isInvalid, isReadonly, size, disable
|
|
|
2838
2975
|
};
|
|
2839
2976
|
const handleBlur = (event, inputType) => {
|
|
2840
2977
|
onBlurInput?.(event, inputType);
|
|
2978
|
+
const canBeEmpty = {
|
|
2979
|
+
from: !preventEmptyFromDate,
|
|
2980
|
+
to: !preventEmptyToDate,
|
|
2981
|
+
};
|
|
2841
2982
|
const selectedDate = toValueDateRangeFormat(inputValue, format);
|
|
2842
|
-
|
|
2983
|
+
// If new value is null and input can't be empty, set the value to the last selected value
|
|
2984
|
+
if (selectedDate[inputType] === null && !canBeEmpty[inputType]) {
|
|
2985
|
+
selectedDate[inputType] = value[inputType];
|
|
2986
|
+
}
|
|
2987
|
+
const isDateDisabled = filter?.(uuiDayjs.dayjs(selectedDate[inputType])) === false;
|
|
2988
|
+
if (isValidRange(selectedDate) && !isDateDisabled) {
|
|
2843
2989
|
setInputValue(toCustomDateRangeFormat(selectedDate, format));
|
|
2844
2990
|
onValueChange(selectedDate);
|
|
2845
2991
|
}
|
|
2846
2992
|
else {
|
|
2993
|
+
const newValue = !canBeEmpty[inputType] ? value[inputType] : null;
|
|
2847
2994
|
setInputValue({
|
|
2848
2995
|
...inputValue,
|
|
2849
|
-
[inputType]:
|
|
2996
|
+
[inputType]: newValue,
|
|
2850
2997
|
});
|
|
2851
2998
|
onValueChange({
|
|
2852
2999
|
...selectedDate,
|
|
2853
|
-
[inputType]:
|
|
3000
|
+
[inputType]: newValue,
|
|
2854
3001
|
});
|
|
2855
3002
|
}
|
|
2856
3003
|
};
|
|
@@ -2860,18 +3007,23 @@ function RangeDatePickerInput({ isDisabled, isInvalid, isReadonly, size, disable
|
|
|
2860
3007
|
e.preventDefault();
|
|
2861
3008
|
}
|
|
2862
3009
|
};
|
|
2863
|
-
const
|
|
3010
|
+
const onClear = () => {
|
|
3011
|
+
const newValue = {
|
|
3012
|
+
from: preventEmptyFromDate ? value.from : null,
|
|
3013
|
+
to: preventEmptyToDate ? value.to : null,
|
|
3014
|
+
};
|
|
3015
|
+
onValueChange(newValue);
|
|
3016
|
+
};
|
|
3017
|
+
const clearAllowed = !disableClear && !(preventEmptyFromDate && preventEmptyToDate) && inputValue.from && inputValue.to;
|
|
2864
3018
|
return (
|
|
2865
3019
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
2866
|
-
React__namespace.default.createElement("div", { ref: ref, className: uuiCore.cx(`uui-size-${size || settings.rangeDatePicker.sizes.default}`, 'uui-range-date-picker', classes, css$
|
|
2867
|
-
React__namespace.default.createElement(TextInput, { icon: settings.rangeDatePicker.icons.input.calendarIcon, cx: uuiCore.cx(css$
|
|
2868
|
-
React__namespace.default.createElement("div", { className: css$
|
|
2869
|
-
React__namespace.default.createElement(TextInput, { cx: uuiCore.cx(css$
|
|
2870
|
-
|
|
2871
|
-
} : undefined, onValueChange: (v) => onInputChange(v || '', 'to'), onFocus: (e) => handleFocus(e, 'to'), onBlur: (e) => handleBlur(e, 'to'), isInvalid: isInvalid, isDisabled: isDisabled, isReadonly: isReadonly, isDropdown: false, rawProps: rawProps?.to, onClick: onClick, onKeyDown: onInputKeyDown })));
|
|
2872
|
-
}
|
|
3020
|
+
React__namespace.default.createElement("div", { ref: ref, className: uuiCore.cx(`uui-size-${size || settings.rangeDatePicker.sizes.default}`, 'uui-range-date-picker', classes, css$W.root, isDisabled && uuiCore.uuiMod.disabled, isReadonly && uuiCore.uuiMod.readonly, isInvalid && uuiCore.uuiMod.invalid, inFocus && uuiCore.uuiMod.focus), onKeyDown: onKeyDown },
|
|
3021
|
+
React__namespace.default.createElement(TextInput, { icon: settings.rangeDatePicker.icons.input.calendarIcon, cx: uuiCore.cx(css$W.dateInput, inFocus === 'from' && uuiCore.uuiMod.focus), size: size || settings.rangeDatePicker.sizes.default, placeholder: getPlaceholder ? getPlaceholder('from') : i18n.rangeDatePicker.pickerPlaceholderFrom, value: inputValue.from || undefined, onValueChange: (v) => onInputChange(v || '', 'from'), onFocus: (event) => handleFocus(event, 'from'), onBlur: (event) => handleBlur(event, 'from'), isInvalid: isInvalid, isDisabled: isDisabled, isReadonly: isReadonly, isDropdown: false, rawProps: rawProps?.from, onClick: onClick, onKeyDown: onInputKeyDown, id: id }),
|
|
3022
|
+
React__namespace.default.createElement("div", { className: css$W.separator }),
|
|
3023
|
+
React__namespace.default.createElement(TextInput, { cx: uuiCore.cx(css$W.dateInput, inFocus === 'to' && uuiCore.uuiMod.focus), placeholder: getPlaceholder ? getPlaceholder('to') : i18n.rangeDatePicker.pickerPlaceholderTo, size: size || settings.rangeDatePicker.sizes.default, value: inputValue.to || undefined, onCancel: clearAllowed ? onClear : undefined, onValueChange: (v) => onInputChange(v || '', 'to'), onFocus: (e) => handleFocus(e, 'to'), onBlur: (e) => handleBlur(e, 'to'), isInvalid: isInvalid, isDisabled: isDisabled, isReadonly: isReadonly, isDropdown: false, rawProps: rawProps?.to, onClick: onClick, onKeyDown: onInputKeyDown })));
|
|
3024
|
+
});
|
|
2873
3025
|
|
|
2874
|
-
var css$
|
|
3026
|
+
var css$V = {"root":"A4B-Mg"};
|
|
2875
3027
|
|
|
2876
3028
|
const uuiPresets = {
|
|
2877
3029
|
container: 'uui-presets-container',
|
|
@@ -2886,12 +3038,12 @@ const getPresets = (presets) => {
|
|
|
2886
3038
|
})).sort((a, b) => a.order - b.order);
|
|
2887
3039
|
};
|
|
2888
3040
|
function CalendarPresets(props) {
|
|
2889
|
-
return (React__namespace.createElement("div", { ref: props.forwardedRef, className: uuiCore.cx(uuiPresets.container, css$
|
|
3041
|
+
return (React__namespace.createElement("div", { ref: props.forwardedRef, className: uuiCore.cx(uuiPresets.container, css$V.root, props.cx), ...props.rawProps },
|
|
2890
3042
|
React__namespace.createElement("div", { className: uuiPresets.header }, "Presets"),
|
|
2891
3043
|
getPresets(props.presets).map((item) => (React__namespace.createElement(LinkButton, { key: item.key, caption: item.name, onClick: () => props.onPresetSet(item), size: settings.rangeDatePicker.sizes.preset })))));
|
|
2892
3044
|
}
|
|
2893
3045
|
|
|
2894
|
-
var css$
|
|
3046
|
+
var css$U = {"root":"_7zrH-q","container":"tEq1JO","day-selection":"cwbB5v","daySelection":"cwbB5v","from-picker":"_4phH1F","fromPicker":"_4phH1F","to-picker":"KNGWbN","toPicker":"KNGWbN","bodes-wrapper":"Fle-xd","bodesWrapper":"Fle-xd","blocker":"OL8E2L"};
|
|
2895
3047
|
|
|
2896
3048
|
const uuiRangeDatePickerBody = {
|
|
2897
3049
|
inRange: 'uui-range-datepicker-in-range',
|
|
@@ -2965,7 +3117,8 @@ const rangeDatePickerPresets = {
|
|
|
2965
3117
|
}),
|
|
2966
3118
|
},
|
|
2967
3119
|
};
|
|
2968
|
-
|
|
3120
|
+
const RangeDatePickerBody = /* @__PURE__ */React.forwardRef(RangeDatePickerBodyComp);
|
|
3121
|
+
function RangeDatePickerBodyComp(props, ref) {
|
|
2969
3122
|
const { value: _value, filter } = props;
|
|
2970
3123
|
const { selectedDate: _selectedDate, inFocus, } = _value;
|
|
2971
3124
|
const selectedDate = _selectedDate || defaultRangeValue; // also handles null in comparison to default value
|
|
@@ -3031,21 +3184,21 @@ function RangeDatePickerBody(props) {
|
|
|
3031
3184
|
});
|
|
3032
3185
|
}, presets: presets })));
|
|
3033
3186
|
};
|
|
3034
|
-
return (React__namespace.default.createElement("div", { ref:
|
|
3035
|
-
React__namespace.default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$
|
|
3187
|
+
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default(css$U.root, uuiDatePickerBodyBase.container, props.cx), ...props.rawProps },
|
|
3188
|
+
React__namespace.default.createElement(FlexRow, { cx: [view === 'DAY_SELECTION' && css$U.daySelection, css$U.container], alignItems: "top" },
|
|
3036
3189
|
React__namespace.default.createElement(FlexCell, { width: "auto" },
|
|
3037
3190
|
React__namespace.default.createElement(FlexRow, null,
|
|
3038
|
-
React__namespace.default.createElement(FlexRow, { cx: css$
|
|
3039
|
-
React__namespace.default.createElement(StatelessDatePickerBody, { key: "date-picker-body-left", cx:
|
|
3191
|
+
React__namespace.default.createElement(FlexRow, { cx: css$U.bodesWrapper, alignItems: "top" },
|
|
3192
|
+
React__namespace.default.createElement(StatelessDatePickerBody, { key: "date-picker-body-left", cx: cx__default.default(css$U.fromPicker), ...from, onValueChange: (v) => onBodyValueChange(v, 'from'), onMonthChange: (m) => {
|
|
3040
3193
|
setMonth(m);
|
|
3041
3194
|
}, onViewChange: (v) => setView(v), filter: props.filter, isHoliday: props.isHoliday, renderDay: props.renderDay || renderDay, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'to' }),
|
|
3042
|
-
React__namespace.default.createElement(StatelessDatePickerBody, { key: "date-picker-body-right", cx:
|
|
3195
|
+
React__namespace.default.createElement(StatelessDatePickerBody, { key: "date-picker-body-right", cx: cx__default.default(css$U.toPicker), ...to, onValueChange: (v) => onBodyValueChange(v, 'to'), onMonthChange: (m) => {
|
|
3043
3196
|
setMonth(m.subtract(1, 'month'));
|
|
3044
3197
|
}, onViewChange: (v) => setView(v), filter: props.filter, renderDay: props.renderDay || renderDay, isHoliday: props.isHoliday, isDisabled: view !== 'DAY_SELECTION' && activeMonth === 'from' }),
|
|
3045
3198
|
view !== 'DAY_SELECTION' && (React__namespace.default.createElement("div", { style: {
|
|
3046
3199
|
left: activeMonth === 'from' ? '50%' : undefined,
|
|
3047
3200
|
right: activeMonth === 'to' ? '50%' : undefined,
|
|
3048
|
-
}, className: css$
|
|
3201
|
+
}, className: css$U.blocker }))),
|
|
3049
3202
|
props.presets && renderPresets(props.presets)),
|
|
3050
3203
|
props.renderFooter && props.renderFooter()))));
|
|
3051
3204
|
}
|
|
@@ -3062,22 +3215,19 @@ const getDayCX = (day, selectedDate) => {
|
|
|
3062
3215
|
&& fromValue !== toValue;
|
|
3063
3216
|
const isFirst = dayValue === fromValue;
|
|
3064
3217
|
const isLast = dayValue === toValue;
|
|
3065
|
-
return [
|
|
3218
|
+
return [cx__default.default(inRange && uuiRangeDatePickerBody.inRange, isFirst && uuiRangeDatePickerBody.firstDayInRangeWrapper, !inRange && isFirst && uuiRangeDatePickerBody.lastDayInRangeWrapper, isLast && uuiRangeDatePickerBody.lastDayInRangeWrapper, !inRange && isLast && uuiRangeDatePickerBody.firstDayInRangeWrapper, (dayValue === fromValue || dayValue === toValue) && uuiComponents.uuiDaySelection.selectedDay)];
|
|
3066
3219
|
};
|
|
3067
3220
|
|
|
3068
|
-
var css$
|
|
3221
|
+
var css$T = {"dropdown-container":"I0pZsA","dropdownContainer":"I0pZsA"};
|
|
3069
3222
|
|
|
3070
|
-
|
|
3071
|
-
name: 'offset',
|
|
3072
|
-
options: { offset: [0, 6] },
|
|
3073
|
-
}];
|
|
3074
|
-
function RangeDatePicker(props) {
|
|
3223
|
+
function RangeDatePickerComponent(props, ref) {
|
|
3075
3224
|
const { value: _value, format = defaultFormat, size = settings.rangeDatePicker.sizes.default } = props;
|
|
3076
3225
|
const value = _value || defaultRangeValue; // also handles null in comparison to default value
|
|
3077
3226
|
const context = uuiCore.useUuiContext();
|
|
3078
3227
|
const [isOpen, setIsOpen] = React.useState(false);
|
|
3079
3228
|
const [inFocus, setInFocus] = React.useState(null);
|
|
3080
3229
|
const targetRef = React__namespace.default.useRef(null);
|
|
3230
|
+
React.useImperativeHandle(ref, () => targetRef.current);
|
|
3081
3231
|
const onValueChange = (newValue) => {
|
|
3082
3232
|
const fromChanged = value?.from !== newValue?.from;
|
|
3083
3233
|
const toChanged = value?.to !== newValue?.to;
|
|
@@ -3094,7 +3244,10 @@ function RangeDatePicker(props) {
|
|
|
3094
3244
|
props.onOpenChange?.(newIsOpen);
|
|
3095
3245
|
if (!inFocus && newIsOpen) {
|
|
3096
3246
|
setInFocus('from');
|
|
3097
|
-
targetRef.current
|
|
3247
|
+
if (targetRef.current) {
|
|
3248
|
+
const inputElement = targetRef.current.querySelector('.uui-input');
|
|
3249
|
+
inputElement?.focus();
|
|
3250
|
+
}
|
|
3098
3251
|
}
|
|
3099
3252
|
};
|
|
3100
3253
|
const onBodyValueChange = (newValue) => {
|
|
@@ -3109,7 +3262,7 @@ function RangeDatePicker(props) {
|
|
|
3109
3262
|
}
|
|
3110
3263
|
};
|
|
3111
3264
|
const renderBody = (renderProps) => {
|
|
3112
|
-
return (React__namespace.default.createElement(DropdownContainer, { ...renderProps, cx: cx__default.default(css$
|
|
3265
|
+
return (React__namespace.default.createElement(DropdownContainer, { ...renderProps, cx: cx__default.default(css$T.dropdownContainer), shards: [targetRef], returnFocus: true },
|
|
3113
3266
|
React__namespace.default.createElement(FlexRow, null,
|
|
3114
3267
|
React__namespace.default.createElement(RangeDatePickerBody, { cx: cx__default.default(props.bodyCx), value: {
|
|
3115
3268
|
selectedDate: _value,
|
|
@@ -3125,105 +3278,79 @@ function RangeDatePicker(props) {
|
|
|
3125
3278
|
}
|
|
3126
3279
|
};
|
|
3127
3280
|
return (React__namespace.default.createElement(uuiComponents.Dropdown, { renderTarget: (renderProps) => {
|
|
3128
|
-
return props.renderTarget?.(renderProps) || (React__namespace.default.createElement(RangeDatePickerInput, { id: props.id, ref: (node) => { renderProps.ref(node); targetRef.current = node; }, cx: props.inputCx, onClick: () => renderProps.toggleDropdownOpening(true), isDisabled: props.isDisabled, isInvalid: props.isInvalid, isReadonly: props.isReadonly, size: size, getPlaceholder: props.getPlaceholder, disableClear: props.disableClear, rawProps: props.rawProps, inFocus: inFocus, value: value, format: format, onValueChange: onValueChange, onFocusInput: (e, type) => {
|
|
3281
|
+
return props.renderTarget?.(renderProps) || (React__namespace.default.createElement(RangeDatePickerInput, { id: props.id, ref: (node) => { renderProps.ref(node); targetRef.current = node; }, cx: props.inputCx, onClick: () => renderProps.toggleDropdownOpening(true), isDisabled: props.isDisabled, isInvalid: props.isInvalid, isReadonly: props.isReadonly, size: size, getPlaceholder: props.getPlaceholder, disableClear: props.disableClear, rawProps: props.rawProps, inFocus: inFocus, value: value, format: format, filter: props.filter, onValueChange: onValueChange, onFocusInput: (e, type) => {
|
|
3129
3282
|
props.onFocus?.(e, type);
|
|
3130
3283
|
setInFocus(type);
|
|
3131
|
-
}, onBlurInput: (e, type) => { props.onBlur?.(e, type); !isOpen && setInFocus(null); }, onKeyDown: handleEscape }));
|
|
3132
|
-
}, renderBody: (renderProps) => renderBody(renderProps), onValueChange: (v) => onOpenChange(v), value: isOpen,
|
|
3284
|
+
}, onBlurInput: (e, type) => { props.onBlur?.(e, type); !isOpen && setInFocus(null); }, onKeyDown: handleEscape, preventEmptyFromDate: props.preventEmptyFromDate, preventEmptyToDate: props.preventEmptyToDate }));
|
|
3285
|
+
}, renderBody: (renderProps) => renderBody(renderProps), onValueChange: (v) => onOpenChange(v), value: isOpen, middleware: [react.offset(6)], placement: props.placement, ref: ref }));
|
|
3133
3286
|
}
|
|
3287
|
+
const RangeDatePicker = /* @__PURE__ */React__namespace.default.forwardRef(RangeDatePickerComponent);
|
|
3134
3288
|
|
|
3135
|
-
var css$
|
|
3289
|
+
var css$S = {"root":"EFl2tP","blocker":"S2868f","marker":"BCbh7c","top":"PD2ecb","bottom":"RJQErR","left":"Qa0l1r","right":"_0aNpGJ","inside":"W-sqv5"};
|
|
3136
3290
|
|
|
3137
3291
|
function DropMarker(props) {
|
|
3138
3292
|
return props.isDndInProgress
|
|
3139
3293
|
? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
3140
|
-
props.enableBlocker && React__namespace.createElement("div", { className: css$
|
|
3294
|
+
props.enableBlocker && React__namespace.createElement("div", { className: css$S.blocker }),
|
|
3141
3295
|
React__namespace.createElement("div", { className: cx__default.default([
|
|
3142
|
-
css$
|
|
3143
|
-
css$
|
|
3144
|
-
css$
|
|
3296
|
+
css$S.root,
|
|
3297
|
+
css$S.marker,
|
|
3298
|
+
css$S[props.position],
|
|
3145
3299
|
props?.cx,
|
|
3146
3300
|
]) })))
|
|
3147
3301
|
: null;
|
|
3148
3302
|
}
|
|
3149
3303
|
|
|
3150
|
-
var css$T = {"root":"_6TpRRQ","line-height":"bFyoXD","lineHeight":"bFyoXD","font-size":"VQiYxl","fontSize":"VQiYxl"};
|
|
3151
|
-
|
|
3152
|
-
function applyTextMods(mods) {
|
|
3153
|
-
return [
|
|
3154
|
-
css$T.root,
|
|
3155
|
-
'uui-text',
|
|
3156
|
-
`uui-size-${mods.size || settings.text.sizes.default}`,
|
|
3157
|
-
(mods.size !== 'none' || mods.lineHeight) && css$T.lineHeight,
|
|
3158
|
-
(mods.size !== 'none' || mods.fontSize) && css$T.fontSize,
|
|
3159
|
-
`uui-color-${mods.color || 'primary'}`,
|
|
3160
|
-
`uui-font-weight-${mods.fontWeight || '400'}`,
|
|
3161
|
-
`uui-font-style-${mods.fontStyle || 'normal'}`,
|
|
3162
|
-
'uui-typography-inline',
|
|
3163
|
-
];
|
|
3164
|
-
}
|
|
3165
|
-
const Text = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.Text, applyTextMods, (props) => {
|
|
3166
|
-
const style = props?.rawProps?.style || {};
|
|
3167
|
-
props.fontSize && (style['--uui-text-font-size'] = `${props.fontSize}px`);
|
|
3168
|
-
props.lineHeight && (style['--uui-text-line-height'] = `${props.lineHeight}px`);
|
|
3169
|
-
return {
|
|
3170
|
-
rawProps: {
|
|
3171
|
-
...props?.rawProps,
|
|
3172
|
-
style: style,
|
|
3173
|
-
},
|
|
3174
|
-
};
|
|
3175
|
-
});
|
|
3176
|
-
|
|
3177
3304
|
const RichTextView = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.RichTextView, (mods) => ['uui-typography', `uui-typography-size-${mods.size || settings.richTextView.sizes.default}`]);
|
|
3178
3305
|
|
|
3179
|
-
var css$
|
|
3306
|
+
var css$R = {"search-wrapper":"wW24bF","searchWrapper":"wW24bF","no-data":"vemIPi","noData":"vemIPi"};
|
|
3180
3307
|
|
|
3181
|
-
var css$
|
|
3308
|
+
var css$Q = {"picker-row":"ph-Tnk","pickerRow":"ph-Tnk","align-widgets-top":"JdeWZz","alignWidgetsTop":"JdeWZz","row-content":"V6Nie4","rowContent":"V6Nie4","align-widgets-center":"Wc1LQz","alignWidgetsCenter":"Wc1LQz","icon-container":"_1gb2yf","iconContainer":"_1gb2yf","content-wrapper":"jYV0Un","contentWrapper":"jYV0Un","icon-wrapper":"ScKFht","iconWrapper":"ScKFht","icon-default":"Cm-RyN","iconDefault":"Cm-RyN","selected-mark":"_4vBGYx","selectedMark":"_4vBGYx"};
|
|
3182
3309
|
|
|
3183
|
-
var css$
|
|
3310
|
+
var css$P = {"root":"iU2qDg"};
|
|
3184
3311
|
|
|
3185
|
-
const AvatarStack = /* @__PURE__ */uuiCore.withMods(uuiComponents.AvatarStack, () => [css$
|
|
3312
|
+
const AvatarStack = /* @__PURE__ */uuiCore.withMods(uuiComponents.AvatarStack, () => [css$P.root]);
|
|
3186
3313
|
|
|
3187
|
-
var css$
|
|
3314
|
+
var css$O = {"root":"_2cvYP6"};
|
|
3188
3315
|
|
|
3189
3316
|
const DEFAULT_FILL = 'solid';
|
|
3190
3317
|
function applyBadgeMods(mods) {
|
|
3191
3318
|
return [
|
|
3192
3319
|
'uui-badge',
|
|
3193
|
-
css$
|
|
3320
|
+
css$O.root,
|
|
3194
3321
|
`uui-size-${mods.size || settings.badge.sizes.default}`,
|
|
3195
3322
|
`uui-fill-${mods.fill || DEFAULT_FILL}`,
|
|
3196
3323
|
`uui-color-${mods.color || 'info'}`,
|
|
3197
3324
|
];
|
|
3198
3325
|
}
|
|
3199
|
-
const Badge = (props) => {
|
|
3326
|
+
const Badge = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
3200
3327
|
const styles = [applyBadgeMods(props), props.cx];
|
|
3201
3328
|
const DropdownIcon = props.dropdownIcon ? props.dropdownIcon : settings.badge.icons.dropdownIcon;
|
|
3202
3329
|
return (React__namespace.default.createElement(uuiComponents.Clickable, { ...props, rawProps: {
|
|
3203
3330
|
'aria-haspopup': props.isDropdown,
|
|
3204
3331
|
'aria-expanded': props.isOpen,
|
|
3205
3332
|
...props.rawProps,
|
|
3206
|
-
}, cx: styles, ref:
|
|
3333
|
+
}, cx: styles, ref: ref },
|
|
3207
3334
|
(props.indicator && props.fill === 'outline') && (React__namespace.default.createElement("div", { className: "uui-indicator" })),
|
|
3208
3335
|
props.icon && props.iconPosition !== 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
3209
3336
|
props.caption && (React__namespace.default.createElement("div", { className: uuiCore.uuiElement.caption }, props.caption)),
|
|
3210
3337
|
props.count !== undefined && props.count !== null && (React__namespace.default.createElement(CountIndicator, { key: "count-indicator", color: null, size: settings.badge.sizes.countIndicatorMap[props.size || settings.badge.sizes.default], caption: props.count })),
|
|
3211
3338
|
props.icon && props.iconPosition === 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
3212
3339
|
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen }))));
|
|
3213
|
-
};
|
|
3340
|
+
});
|
|
3214
3341
|
|
|
3215
|
-
var css$
|
|
3342
|
+
var css$N = {"root":"-BejNM"};
|
|
3216
3343
|
|
|
3217
3344
|
function applyTagMods(props) {
|
|
3218
3345
|
return [
|
|
3219
|
-
css$
|
|
3346
|
+
css$N.root,
|
|
3220
3347
|
`uui-size-${props.size || settings.tag.sizes.default}`,
|
|
3221
3348
|
`uui-color-${props.color || 'neutral'}`,
|
|
3222
3349
|
`uui-fill-${props.fill || 'solid'}`,
|
|
3223
3350
|
'uui-tag',
|
|
3224
3351
|
];
|
|
3225
3352
|
}
|
|
3226
|
-
|
|
3353
|
+
const Tag = /* @__PURE__ */React__namespace.default.forwardRef((props, ref) => {
|
|
3227
3354
|
const styles = [applyTagMods(props), props.cx];
|
|
3228
3355
|
const ClearIcon = props.clearIcon ? props.clearIcon : settings.tag.icons.clearIcon;
|
|
3229
3356
|
const DropdownIcon = props.dropdownIcon ? props.dropdownIcon : settings.tag.icons.dropdownIcon;
|
|
@@ -3231,66 +3358,66 @@ function Tag(props) {
|
|
|
3231
3358
|
'aria-haspopup': props.isDropdown,
|
|
3232
3359
|
'aria-expanded': props.isOpen,
|
|
3233
3360
|
...props.rawProps,
|
|
3234
|
-
}, cx: styles, ref:
|
|
3361
|
+
}, cx: styles, ref: ref },
|
|
3235
3362
|
props.icon && props.iconPosition !== 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
3236
3363
|
props.caption && (React__namespace.default.createElement("div", { className: uuiCore.uuiElement.caption }, props.caption)),
|
|
3237
3364
|
props.count !== undefined && props.count !== null && (React__namespace.default.createElement(CountIndicator, { color: (!props.color || props.color === 'neutral') ? 'white' : props.color, size: settings.tag.sizes.countIndicatorMap[(props.size || settings.tag.sizes.default)], caption: props.count })),
|
|
3238
3365
|
props.icon && props.iconPosition === 'right' && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: !props.isDisabled ? props.onIconClick : undefined })),
|
|
3239
3366
|
props.isDropdown && (React__namespace.default.createElement(uuiComponents.IconContainer, { icon: DropdownIcon, flipY: props.isOpen })),
|
|
3240
3367
|
props.onClear && !props.isDisabled && (React__namespace.default.createElement(uuiComponents.IconContainer, { cx: uuiCore.uuiMarkers.clickable, icon: ClearIcon, onClick: props.onClear }))));
|
|
3241
|
-
}
|
|
3368
|
+
});
|
|
3242
3369
|
|
|
3243
|
-
var css$
|
|
3370
|
+
var css$M = {"root":"v0x1PE","page":"-KGl2H","spacer":"JLZcFN","mode-ghost":"ZvwFdI","modeGhost":"ZvwFdI"};
|
|
3244
3371
|
|
|
3245
3372
|
function Paginator(props) {
|
|
3246
|
-
const renderPaginator = (params) => (React__namespace.default.createElement("nav", { role: "navigation", className: cx__default.default(css$
|
|
3373
|
+
const renderPaginator = (params) => (React__namespace.default.createElement("nav", { role: "navigation", className: cx__default.default(css$M.root, 'uui-paginator', `uui-size-${props.size || settings.paginator.sizes.default}`), ...params.rawProps },
|
|
3247
3374
|
React__namespace.default.createElement(Button, { size: props.size || settings.paginator.sizes.default, icon: settings.paginator.icons.leftArrowIcon, onClick: params.goToPrev, isDisabled: params.isFirst || props.isDisabled, fill: "outline", color: "secondary" }),
|
|
3248
3375
|
params.pages.map((page, index) => {
|
|
3249
3376
|
if (page.type === 'spacer') {
|
|
3250
|
-
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$
|
|
3377
|
+
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$M.spacer, css$M.page), size: props.size || settings.paginator.sizes.default, key: `${index}_spacer`, caption: "...", fill: "ghost", color: "secondary", tabIndex: -1, isDisabled: props.isDisabled }));
|
|
3251
3378
|
}
|
|
3252
3379
|
else {
|
|
3253
|
-
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$
|
|
3380
|
+
return (React__namespace.default.createElement(Button, { cx: cx__default.default(css$M[`mode-${!page.isActive && 'ghost'}`], css$M.page), size: props.size || settings.paginator.sizes.default, key: page.pageNumber, caption: page.pageNumber, onClick: () => page.onClick?.(), rawProps: { 'aria-current': page.isActive }, fill: (page.isActive && 'outline') || 'ghost', color: "primary", isDisabled: props.isDisabled }));
|
|
3254
3381
|
}
|
|
3255
3382
|
}),
|
|
3256
3383
|
React__namespace.default.createElement(Button, { size: props.size || settings.paginator.sizes.default, icon: settings.paginator.icons.rightArrowIcon, onClick: params.goToNext, isDisabled: params.isLast || props.isDisabled, fill: "outline", color: "secondary" })));
|
|
3257
3384
|
return React__namespace.default.createElement(uuiComponents.Paginator, { ...props, render: renderPaginator });
|
|
3258
3385
|
}
|
|
3259
3386
|
|
|
3260
|
-
var css$
|
|
3387
|
+
var css$L = {"root":"KDgvT9","progress-bar":"jY5cL3","progressBar":"jY5cL3","progressBar-indeterminate":"jvNQCr","progressBarIndeterminate":"jvNQCr","size-12":"VjJatc","size12":"VjJatc","size-18":"qSXxAc","size18":"qSXxAc","size-24":"A7bvGO","size24":"A7bvGO"};
|
|
3261
3388
|
|
|
3262
|
-
const IndeterminateBar = (props) => {
|
|
3263
|
-
return (React__namespace.createElement("div", { ref:
|
|
3264
|
-
React__namespace.createElement("div", { className: cx__default.default(css$
|
|
3265
|
-
};
|
|
3389
|
+
const IndeterminateBar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
3390
|
+
return (React__namespace.createElement("div", { ref: ref, className: cx__default.default('uui-indeterminate_bar', props.cx, css$L.root, css$L[`size-${props.size || 12}`]) },
|
|
3391
|
+
React__namespace.createElement("div", { className: cx__default.default(css$L.progressBar) })));
|
|
3392
|
+
});
|
|
3266
3393
|
|
|
3267
|
-
var css$
|
|
3394
|
+
var css$K = {"root":"PW0Hyx","striped":"_1wG27k","animate-stripes":"_8mL9-h","animateStripes":"_8mL9-h","size-12":"g4Eni6","size12":"g4Eni6","size-18":"C--JCG","size18":"C--JCG","size-24":"lHNKhW","size24":"lHNKhW"};
|
|
3268
3395
|
|
|
3269
3396
|
const DEFAULT_SIZE = '12';
|
|
3270
3397
|
function applyProgressBarMods(mods) {
|
|
3271
3398
|
const size = mods.size || DEFAULT_SIZE;
|
|
3272
3399
|
return [
|
|
3273
|
-
css$
|
|
3274
|
-
css$
|
|
3275
|
-
mods.striped && css$
|
|
3400
|
+
css$K.root,
|
|
3401
|
+
css$K[`size-${size}`],
|
|
3402
|
+
mods.striped && css$K.striped,
|
|
3276
3403
|
];
|
|
3277
3404
|
}
|
|
3278
3405
|
const ProgressBar = /* @__PURE__ */uuiCore.withMods(uuiComponents__namespace.ProgressBar, applyProgressBarMods, (props) => ({
|
|
3279
3406
|
hideLabel: props.hideLabel || props.striped,
|
|
3280
3407
|
}));
|
|
3281
3408
|
|
|
3282
|
-
var css$
|
|
3409
|
+
var css$J = {"root":"qip-tp"};
|
|
3283
3410
|
|
|
3284
|
-
const IndicatorBar = (props) => {
|
|
3411
|
+
const IndicatorBar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
3285
3412
|
const { progress } = props;
|
|
3286
|
-
return progress || progress === 0 ? (React__namespace.createElement(ProgressBar, { ref:
|
|
3287
|
-
};
|
|
3413
|
+
return progress || progress === 0 ? (React__namespace.createElement(ProgressBar, { ref: ref, progress: progress, cx: cx__default.default(css$J.root, props.cx), hideLabel: true })) : (React__namespace.createElement(IndeterminateBar, { ref: ref, cx: cx__default.default(css$J.root, props.cx) }));
|
|
3414
|
+
});
|
|
3288
3415
|
|
|
3289
|
-
var css$
|
|
3416
|
+
var css$I = {"root":"ZQxRrL"};
|
|
3290
3417
|
|
|
3291
|
-
|
|
3292
|
-
return (React__namespace.default.createElement("div", { ref:
|
|
3293
|
-
css$
|
|
3418
|
+
const StatusIndicator = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
3419
|
+
return (React__namespace.default.createElement("div", { ref: ref, className: cx__default.default([
|
|
3420
|
+
css$I.root,
|
|
3294
3421
|
`uui-size-${props.size || settings.statusIndicator.sizes.default}`,
|
|
3295
3422
|
'uui-status_indicator',
|
|
3296
3423
|
`uui-color-${props.color || 'neutral'}`,
|
|
@@ -3299,9 +3426,9 @@ function StatusIndicator(props) {
|
|
|
3299
3426
|
]) },
|
|
3300
3427
|
React__namespace.default.createElement("div", { className: "uui-status_indicator-dot" }),
|
|
3301
3428
|
React__namespace.default.createElement("p", { className: "uui-status_indicator-caption" }, props.caption)));
|
|
3302
|
-
}
|
|
3429
|
+
});
|
|
3303
3430
|
|
|
3304
|
-
var css$
|
|
3431
|
+
var css$H = {"drag-handle":"wf0uUl","dragHandle":"wf0uUl","icon-container":"wsHObI","iconContainer":"wsHObI"};
|
|
3305
3432
|
|
|
3306
3433
|
function DataRowAddons(props) {
|
|
3307
3434
|
const row = props.rowProps;
|
|
@@ -3312,13 +3439,13 @@ function DataRowAddons(props) {
|
|
|
3312
3439
|
return settings.dataTable.sizes.body.indentWidthMap[props.size || settings.dataTable.sizes.body.row];
|
|
3313
3440
|
};
|
|
3314
3441
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
3315
|
-
row.dnd?.srcData && React__namespace.default.createElement(uuiComponents.DragHandle, { key: "dh", cx: css$
|
|
3442
|
+
row.dnd?.srcData && React__namespace.default.createElement(uuiComponents.DragHandle, { key: "dh", cx: css$H.dragHandle, rawProps: { ...props.eventHandlers } }),
|
|
3316
3443
|
row?.checkbox?.isVisible && (React__namespace.default.createElement(Checkbox, { key: "cb", cx: "uui-dr_addons-checkbox", tabIndex: props.tabIndex, size: settings.dataTable.sizes.body.checkboxMap[props.size], value: row.isChecked, indeterminate: !row.isChecked && row.isChildrenChecked, onValueChange: () => row.onCheck?.(row), isDisabled: row.checkbox.isDisabled, isInvalid: row.checkbox.isInvalid })),
|
|
3317
3444
|
row.indent > 0 && (React__namespace.default.createElement("div", { key: "fold", className: cx__default.default('uui-dr_addons-indent', `uui-size-${props.size || settings.dataTable.sizes.body.row}`), style: { marginInlineStart: getIndent(), width: getWidth() } }, row.isFoldable && (React__namespace.default.createElement(uuiComponents.IconContainer, { rawProps: {
|
|
3318
3445
|
'aria-label': row.isFolded ? 'Unfold' : 'Fold',
|
|
3319
3446
|
role: 'button',
|
|
3320
3447
|
}, key: "icon", icon: settings.dataTable.icons.body.foldingIcon, cx: [
|
|
3321
|
-
uuiCore.uuiElement.foldingArrow, uuiCore.uuiMarkers.clickable, css$
|
|
3448
|
+
uuiCore.uuiElement.foldingArrow, uuiCore.uuiMarkers.clickable, css$H.iconContainer,
|
|
3322
3449
|
], rotate: row.isFolded ? '90ccw' : '0', onClick: () => row.onFold(row), size: settings.dataTable.sizes.body.iconMap[props.size || settings.dataTable.sizes.body.row] }))))));
|
|
3323
3450
|
}
|
|
3324
3451
|
|
|
@@ -3387,7 +3514,7 @@ const getHighlightedSearchMatches = (str, search) => {
|
|
|
3387
3514
|
return getDecoratedText(str, ranges);
|
|
3388
3515
|
};
|
|
3389
3516
|
|
|
3390
|
-
var css$
|
|
3517
|
+
var css$G = {"root":"_5clk7-","column-gap":"_8c7vgV","columnGap":"_8c7vgV","title":"kvoauu","subtitle":"_2zapjq","disabled":"rkxrPP","multiline":"DQqhKN"};
|
|
3391
3518
|
|
|
3392
3519
|
function PickerItem(props) {
|
|
3393
3520
|
const { highlightSearchMatches = true, size, avatarUrl, isLoading, isDisabled, icon, } = props;
|
|
@@ -3396,13 +3523,13 @@ function PickerItem(props) {
|
|
|
3396
3523
|
const { search } = props.dataSourceState ?? {};
|
|
3397
3524
|
const title = highlightSearchMatches ? getHighlightedSearchMatches(props.title, search) : props.title;
|
|
3398
3525
|
const subtitle = highlightSearchMatches ? getHighlightedSearchMatches(props.subtitle, search) : props.subtitle;
|
|
3399
|
-
return (React__namespace.createElement(FlexCell, { width: "auto", cx: [css$
|
|
3400
|
-
React__namespace.createElement(FlexRow, { size: itemSize, cx: [isMultiline && css$
|
|
3526
|
+
return (React__namespace.createElement(FlexCell, { width: "auto", cx: [css$G.root, 'uui-picker_input-item', 'uui-typography', props.cx] },
|
|
3527
|
+
React__namespace.createElement(FlexRow, { size: itemSize, cx: [isMultiline && css$G.multiline, css$G.columnGap], rawProps: { style: { '--uui-picker_item-vertical-padding': `${settings.pickerInput.sizes.body.itemVerticalPaddingMap[itemSize]}px` } } },
|
|
3401
3528
|
avatarUrl && (React__namespace.createElement(uuiComponents.Avatar, { isLoading: isLoading, img: avatarUrl, size: getAvatarSize(itemSize, isMultiline) })),
|
|
3402
3529
|
icon && React__namespace.createElement(uuiComponents.IconContainer, { icon: icon }),
|
|
3403
3530
|
React__namespace.createElement(FlexCell, { width: "auto" },
|
|
3404
|
-
title && (React__namespace.createElement("div", { className: cx__default.default(css$
|
|
3405
|
-
subtitle && (React__namespace.createElement("div", { className: cx__default.default(css$
|
|
3531
|
+
title && (React__namespace.createElement("div", { className: cx__default.default(css$G.title, isDisabled && css$G.disabled, `uui-size-${itemSize}`) }, title)),
|
|
3532
|
+
subtitle && (React__namespace.createElement("div", { className: cx__default.default(css$G.subtitle, isDisabled && css$G.disabled, `uui-size-${itemSize}`) }, subtitle))))));
|
|
3406
3533
|
}
|
|
3407
3534
|
function getAvatarSize(size, isMultiline) {
|
|
3408
3535
|
return settings.pickerInput.sizes.body[isMultiline ? 'itemAvatarMultilineMap' : 'itemAvatarMap'][size];
|
|
@@ -3438,7 +3565,7 @@ function DataPickerRow(props) {
|
|
|
3438
3565
|
const renderContent = () => {
|
|
3439
3566
|
let content;
|
|
3440
3567
|
if (props.isLoading) {
|
|
3441
|
-
content =
|
|
3568
|
+
content = settings.pickerInput.renderPlaceholder({ rowSize: props.size });
|
|
3442
3569
|
}
|
|
3443
3570
|
else if (props.isUnknown) {
|
|
3444
3571
|
content = (React__namespace.createElement(Text, { size: props.size }, "Unknown"));
|
|
@@ -3450,19 +3577,19 @@ function DataPickerRow(props) {
|
|
|
3450
3577
|
content = (React__namespace.createElement(React__namespace.Fragment, null,
|
|
3451
3578
|
renderRowItem(props.value, props),
|
|
3452
3579
|
React__namespace.createElement(uuiComponents.FlexSpacer, null),
|
|
3453
|
-
(props.isChildrenSelected || props.isSelected) && (React__namespace.createElement("div", { className: uuiCore.cx(css$
|
|
3454
|
-
React__namespace.createElement(uuiComponents.IconContainer, { size: settings.pickerInput.sizes.body.selectIconMap[props.size], icon: SelectIcon, cx: props.isChildrenSelected ? css$
|
|
3580
|
+
(props.isChildrenSelected || props.isSelected) && (React__namespace.createElement("div", { className: uuiCore.cx(css$Q.iconWrapper, 'uui-picker_input-row-select_icon', uuiCore.uuiMod.selected) },
|
|
3581
|
+
React__namespace.createElement(uuiComponents.IconContainer, { size: settings.pickerInput.sizes.body.selectIconMap[props.size], icon: SelectIcon, cx: props.isChildrenSelected ? css$Q.iconDefault : css$Q.selectedMark, rawProps: { 'aria-label': props.isChildrenSelected
|
|
3455
3582
|
? 'Child is selected'
|
|
3456
3583
|
: 'Selected' } })))));
|
|
3457
3584
|
}
|
|
3458
|
-
return (React__namespace.createElement(FlexCell, { grow: 1, width: 0, minWidth: 0, cx: css$
|
|
3585
|
+
return (React__namespace.createElement(FlexCell, { grow: 1, width: 0, minWidth: 0, cx: css$Q.rowContent },
|
|
3459
3586
|
React__namespace.createElement(DataRowAddons, { size: props.size, rowProps: props, tabIndex: -1 }),
|
|
3460
|
-
React__namespace.createElement("div", { className: css$
|
|
3587
|
+
React__namespace.createElement("div", { className: css$Q.contentWrapper }, content)));
|
|
3461
3588
|
};
|
|
3462
3589
|
const clickHandler = props.onClick || props.onSelect || props.onFold || props.onCheck;
|
|
3463
3590
|
return (
|
|
3464
3591
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
3465
|
-
React__namespace.createElement("div", { onClick: clickHandler && ((e) => !uuiCore.isEventTargetInsideClickable(e) && clickHandler(props)), role: "option", "aria-busy": props.isLoading, "aria-posinset": props.index + 1, "aria-checked": props.checkbox?.isVisible ? props.isChecked : null, "aria-selected": props.isSelectable ? props.isSelected : null, ref: rowNode, className: uuiCore.cx(css$
|
|
3592
|
+
React__namespace.createElement("div", { onClick: clickHandler && ((e) => !uuiCore.isEventTargetInsideClickable(e) && clickHandler(props)), role: "option", "aria-busy": props.isLoading, "aria-posinset": props.index + 1, "aria-checked": props.checkbox?.isVisible ? props.isChecked : null, "aria-selected": props.isSelectable ? props.isSelected : null, ref: rowNode, className: uuiCore.cx(css$Q.pickerRow, 'uui-picker_input-row', props.size && `uui-size-${props.size || settings.pickerInput.sizes.body.row}`, css$Q[`align-widgets-${props.alignActions || 'top'}`], clickHandler && props.isFocused && uuiCore.uuiMod.focus, clickHandler && uuiCore.uuiMarkers.clickable, props.cx), style: props.padding && {
|
|
3466
3593
|
'--uui-data_picker-horizontal-padding': `${props.padding}px`,
|
|
3467
3594
|
}, ...props.rawProps }, renderContent()));
|
|
3468
3595
|
}
|
|
@@ -3490,7 +3617,7 @@ function DataPickerBody({ highlightSearchMatches = true, ...props }) {
|
|
|
3490
3617
|
});
|
|
3491
3618
|
}
|
|
3492
3619
|
if (props.minCharsToSearch && search.length < props.minCharsToSearch) {
|
|
3493
|
-
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$
|
|
3620
|
+
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$R.noData, grow: 1, textAlign: "center" },
|
|
3494
3621
|
React__namespace.default.createElement(Text, { size: props.searchSize }, i18n.dataPickerBody.typeSearchToLoadMessage)));
|
|
3495
3622
|
}
|
|
3496
3623
|
if (props.rows.length === 0) {
|
|
@@ -3503,7 +3630,7 @@ function DataPickerBody({ highlightSearchMatches = true, ...props }) {
|
|
|
3503
3630
|
search: search,
|
|
3504
3631
|
});
|
|
3505
3632
|
}
|
|
3506
|
-
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$
|
|
3633
|
+
return (React__namespace.default.createElement(uuiComponents.FlexCell, { cx: css$R.noData, grow: 1, textAlign: "center" },
|
|
3507
3634
|
React__namespace.default.createElement(Text, { size: props.searchSize }, i18n.dataPickerBody.noRecordsMessage)));
|
|
3508
3635
|
}
|
|
3509
3636
|
};
|
|
@@ -3517,10 +3644,12 @@ function DataPickerBody({ highlightSearchMatches = true, ...props }) {
|
|
|
3517
3644
|
const pickerRowProps = { ...row, getName: props.getName };
|
|
3518
3645
|
return props.renderRow ? (props.renderRow(pickerRowProps, dsState)) : (React__namespace.default.createElement(DataPickerRow, { ...pickerRowProps, key: row.rowKey, size: getRowSize(), flattenSearchResults: props.flattenSearchResults, highlightSearchMatches: highlightSearchMatches, dataSourceState: dsState, getName: props.getName }));
|
|
3519
3646
|
};
|
|
3520
|
-
const searchSize = uuiCore.isMobile()
|
|
3647
|
+
const searchSize = uuiCore.isMobile()
|
|
3648
|
+
? settings.pickerInput.sizes.body.mobileSearchInput
|
|
3649
|
+
: settings.pickerInput.sizes.body.getSearchSize({ pickerSize: props.searchSize });
|
|
3521
3650
|
const renderedDataRows = React.useMemo(() => props.rows.map((row) => renderRow(row, props.value)), [props.rows, props.value]);
|
|
3522
3651
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
3523
|
-
showSearch && (React__namespace.default.createElement("div", { key: "search", className: uuiCore.cx(css$
|
|
3652
|
+
showSearch && (React__namespace.default.createElement("div", { key: "search", className: uuiCore.cx(css$R.searchWrapper, 'uui-picker_input-body-search') },
|
|
3524
3653
|
React__namespace.default.createElement(uuiComponents.FlexCell, { grow: 1 },
|
|
3525
3654
|
React__namespace.default.createElement(FocusLock.MoveFocusInside, null,
|
|
3526
3655
|
React__namespace.default.createElement(SearchInput, { placeholder: i18n.dataPickerBody.searchPlaceholder, value: props.value.search, onValueChange: (newVal) => props.onValueChange({ ...props.value, search: newVal }), onKeyDown: searchKeyDown, size: searchSize, debounceDelay: props.searchDebounceDelay, rawProps: { dir: 'auto' } }))))),
|
|
@@ -3534,8 +3663,6 @@ function DataPickerBody({ highlightSearchMatches = true, ...props }) {
|
|
|
3534
3663
|
}, rowsCount: props.rowsCount, isLoading: props.isReloading })))));
|
|
3535
3664
|
}
|
|
3536
3665
|
|
|
3537
|
-
var css$G = {"footer":"IlTacl"};
|
|
3538
|
-
|
|
3539
3666
|
function DataPickerFooterImpl(props) {
|
|
3540
3667
|
const { search, clearSelection, view, showSelected, selectionMode, isSearchTooShort, } = props;
|
|
3541
3668
|
const size = uuiCore.isMobile() ? settings.pickerInput.sizes.body.mobileFooterLinkButton : props.size;
|
|
@@ -3548,7 +3675,7 @@ function DataPickerFooterImpl(props) {
|
|
|
3548
3675
|
const isSearching = search?.length;
|
|
3549
3676
|
const hideFooter = (rowsCount === 0 && !hasSelection) || isSearching || (isSinglePicker && props.disableClear);
|
|
3550
3677
|
const showClear = !props.disableClear && (isSinglePicker ? true : (!view.selectAll || hasSelection));
|
|
3551
|
-
return !hideFooter && (React__namespace.default.createElement(FlexRow, { cx:
|
|
3678
|
+
return !hideFooter && (React__namespace.default.createElement(FlexRow, { cx: cx__default.default('uui-picker_input-footer', props.cx) },
|
|
3552
3679
|
!isSinglePicker && !isSearchTooShort && ( // Show this switch only for multi mode and when some rows rendered
|
|
3553
3680
|
React__namespace.default.createElement(Switch, { size: settings.pickerInput.sizes.body.footerSwitchMap[props.size], value: showSelected.value, isDisabled: !hasSelection, onValueChange: showSelected.onValueChange, label: i18n.pickerInput.showOnlySelectedLabel })),
|
|
3554
3681
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
@@ -3560,7 +3687,7 @@ function DataPickerFooterImpl(props) {
|
|
|
3560
3687
|
}
|
|
3561
3688
|
const DataPickerFooter = /* @__PURE__ */React__namespace.default.memo(DataPickerFooterImpl);
|
|
3562
3689
|
|
|
3563
|
-
var css$F = {"header":"
|
|
3690
|
+
var css$F = {"header":"CoTrsQ","title":"LoZUUN","close":"Rp1PVS"};
|
|
3564
3691
|
|
|
3565
3692
|
const DataPickerMobileHeaderImpl = (props) => {
|
|
3566
3693
|
const title = props.title && typeof props.title === 'string' ? props.title.charAt(0).toUpperCase() + props.title.slice(1) : '';
|
|
@@ -3570,7 +3697,7 @@ const DataPickerMobileHeaderImpl = (props) => {
|
|
|
3570
3697
|
};
|
|
3571
3698
|
const DataPickerMobileHeader = /* @__PURE__ */React__namespace.default.memo(DataPickerMobileHeaderImpl);
|
|
3572
3699
|
|
|
3573
|
-
var css$E = {"done":"
|
|
3700
|
+
var css$E = {"done":"_0olI-v","container":"vH8fXl"};
|
|
3574
3701
|
|
|
3575
3702
|
const PickerBodyMobileView = (props) => {
|
|
3576
3703
|
const isMobileView = uuiCore.isMobile();
|
|
@@ -3582,7 +3709,7 @@ const PickerBodyMobileView = (props) => {
|
|
|
3582
3709
|
isMobileView && (React__namespace.default.createElement(LinkButton, { caption: i18n.pickerInput.doneButton, onClick: () => props.onClose?.(), cx: css$E.done, size: settings.pickerInput.sizes.body.mobileFooterLinkButton }))));
|
|
3583
3710
|
};
|
|
3584
3711
|
|
|
3585
|
-
var css$D = {"sub-header-wrapper":"
|
|
3712
|
+
var css$D = {"sub-header-wrapper":"putGg2","subHeaderWrapper":"putGg2","switch":"DpqHPK","no-found-modal-container":"Urq1n-","noFoundModalContainer":"Urq1n-","no-found-modal-container-icon":"Pn2YnK","noFoundModalContainerIcon":"Pn2YnK","no-found-modal-container-text":"pY8Owy","noFoundModalContainerText":"pY8Owy","body":"pfG-iV"};
|
|
3586
3713
|
|
|
3587
3714
|
function PickerModal(props) {
|
|
3588
3715
|
const { view, selection, dataSourceStateLens, dataSourceState, getName, clearSelection, getRows, getListProps, getFooterProps, isSingleSelect, handleDataSourceValueChange, } = uuiComponents.usePickerModal(props);
|
|
@@ -3624,9 +3751,9 @@ function PickerModal(props) {
|
|
|
3624
3751
|
React__namespace.default.createElement(ModalFooter, null, props.renderFooter ? props.renderFooter(getFooterProps()) : renderFooter()))));
|
|
3625
3752
|
}
|
|
3626
3753
|
|
|
3627
|
-
var css$C = {"tooltip":"
|
|
3754
|
+
var css$C = {"tooltip":"MqpeVj"};
|
|
3628
3755
|
|
|
3629
|
-
|
|
3756
|
+
const PickerTogglerTag = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
3630
3757
|
const tagProps = {
|
|
3631
3758
|
...props,
|
|
3632
3759
|
tabIndex: -1,
|
|
@@ -3636,14 +3763,14 @@ function PickerTogglerTag(props) {
|
|
|
3636
3763
|
if (props.isCollapsed) {
|
|
3637
3764
|
const collapsedRows = props.collapsedRows.map((row) => props.getName(row.value)).join(', ');
|
|
3638
3765
|
return (React__namespace.createElement(Tooltip, { key: "selected", content: collapsedRows, closeDelay: 150, closeOnMouseLeave: "boundary", cx: css$C.tooltip },
|
|
3639
|
-
React__namespace.createElement(Tag, { ref:
|
|
3766
|
+
React__namespace.createElement(Tag, { ref: ref, rawProps: { role: 'option' }, ...tagProps })));
|
|
3640
3767
|
}
|
|
3641
3768
|
else {
|
|
3642
|
-
return React__namespace.createElement(Tag, { ref:
|
|
3769
|
+
return React__namespace.createElement(Tag, { ref: ref, rawProps: { role: 'option' }, ...tagProps });
|
|
3643
3770
|
}
|
|
3644
|
-
}
|
|
3771
|
+
});
|
|
3645
3772
|
|
|
3646
|
-
var css$B = {"root":"
|
|
3773
|
+
var css$B = {"root":"gVs2WV"};
|
|
3647
3774
|
|
|
3648
3775
|
const defaultMode = EditMode.FORM;
|
|
3649
3776
|
function applyPickerTogglerMods(mods) {
|
|
@@ -3651,10 +3778,10 @@ function applyPickerTogglerMods(mods) {
|
|
|
3651
3778
|
css$B.root,
|
|
3652
3779
|
'uui-picker_toggler',
|
|
3653
3780
|
`uui-size-${mods.size || settings.pickerInput.sizes.toggler.default}`,
|
|
3654
|
-
|
|
3781
|
+
'uui-control-mode-' + (mods.mode || defaultMode),
|
|
3655
3782
|
];
|
|
3656
3783
|
}
|
|
3657
|
-
function
|
|
3784
|
+
function PickerTogglerComponent(props, ref) {
|
|
3658
3785
|
const renderItem = (itemProps) => {
|
|
3659
3786
|
const itemPropsWithSize = { ...itemProps, size: props.size || settings.pickerInput.sizes.toggler.tag };
|
|
3660
3787
|
if (!!props.renderItem) {
|
|
@@ -3662,17 +3789,13 @@ function PickerToggler(props) {
|
|
|
3662
3789
|
}
|
|
3663
3790
|
return (React__namespace.createElement(PickerTogglerTag, { ...itemPropsWithSize, key: itemProps.isCollapsed ? 'collapsed_tag' : itemProps.rowProps?.id, getName: props.getName }));
|
|
3664
3791
|
};
|
|
3665
|
-
return (React__namespace.createElement(uuiComponents.PickerToggler, { ...props, ref:
|
|
3792
|
+
return (React__namespace.createElement(uuiComponents.PickerToggler, { ...props, ref: ref, cx: [applyPickerTogglerMods(props), props.cx], renderItem: renderItem, getName: props.getName, cancelIcon: settings.pickerInput.icons.toggler.clearIcon, dropdownIcon: settings.pickerInput.icons.toggler.dropdownIcon }));
|
|
3666
3793
|
}
|
|
3794
|
+
const PickerToggler = /* @__PURE__ */React__namespace.forwardRef(PickerTogglerComponent);
|
|
3667
3795
|
|
|
3668
|
-
function
|
|
3796
|
+
function PickerInputComponent(props, ref) {
|
|
3669
3797
|
const context = React.useContext(uuiCore.UuiContext);
|
|
3670
|
-
const
|
|
3671
|
-
{
|
|
3672
|
-
name: 'offset',
|
|
3673
|
-
options: { offset: [0, 6] },
|
|
3674
|
-
}, uuiCore.mobilePopperModifier,
|
|
3675
|
-
], []);
|
|
3798
|
+
const middleware = React.useMemo(() => [react.offset(6), uuiCore.mobilePositioning], []);
|
|
3676
3799
|
const toggleModalOpening = () => {
|
|
3677
3800
|
const { renderFooter, rawProps, ...restProps } = props;
|
|
3678
3801
|
context.uuiModals
|
|
@@ -3683,13 +3806,13 @@ function PickerInput(props) {
|
|
|
3683
3806
|
.catch(() => { });
|
|
3684
3807
|
};
|
|
3685
3808
|
const { view, getName, getPlaceholder, handleSelectionValueChange, getTogglerProps, getRows, handleTogglerSearchChange, toggleBodyOpening, dataSourceState, handleDataSourceValueChange, getFooterProps, getListProps, shouldShowBody, getSearchPosition, closePickerBody, openPickerBody, handlePickerInputKeyboard, } = uuiComponents.usePickerInput({ ...props, toggleModalOpening });
|
|
3686
|
-
const
|
|
3687
|
-
React.useImperativeHandle(
|
|
3688
|
-
if (
|
|
3689
|
-
|
|
3690
|
-
|
|
3809
|
+
const togglerRef = React.useRef(null);
|
|
3810
|
+
React.useImperativeHandle(ref, () => {
|
|
3811
|
+
if (togglerRef.current) {
|
|
3812
|
+
togglerRef.current.closePickerBody = closePickerBody;
|
|
3813
|
+
togglerRef.current.openPickerBody = openPickerBody;
|
|
3691
3814
|
}
|
|
3692
|
-
return
|
|
3815
|
+
return togglerRef.current;
|
|
3693
3816
|
}, [closePickerBody, openPickerBody]);
|
|
3694
3817
|
const getTogglerMods = () => {
|
|
3695
3818
|
return {
|
|
@@ -3725,10 +3848,11 @@ function PickerInput(props) {
|
|
|
3725
3848
|
return (React__namespace.default.createElement(Dropdown, { renderTarget: (dropdownProps) => {
|
|
3726
3849
|
const targetProps = getTogglerProps();
|
|
3727
3850
|
return renderTarget({ ...dropdownProps, ...targetProps, renderItem });
|
|
3728
|
-
}, renderBody: (bodyProps) => renderBody(bodyProps), value: shouldShowBody(), onValueChange: !props.isDisabled && toggleBodyOpening, placement: props.dropdownPlacement,
|
|
3851
|
+
}, renderBody: (bodyProps) => renderBody(bodyProps), value: shouldShowBody(), onValueChange: !props.isDisabled && toggleBodyOpening, placement: props.dropdownPlacement, middleware: middleware, closeBodyOnTogglerHidden: !uuiCore.isMobile(), portalTarget: props.portalTarget, ref: togglerRef }));
|
|
3729
3852
|
}
|
|
3853
|
+
const PickerInput = /* @__PURE__ */React__namespace.default.forwardRef(PickerInputComponent);
|
|
3730
3854
|
|
|
3731
|
-
var css$A = {"row":"
|
|
3855
|
+
var css$A = {"row":"_4aZ5Q6"};
|
|
3732
3856
|
|
|
3733
3857
|
function PickerListRow(props) {
|
|
3734
3858
|
let label;
|
|
@@ -3748,7 +3872,7 @@ function PickerListRow(props) {
|
|
|
3748
3872
|
return (React__namespace.default.createElement("div", { role: "option", "aria-selected": props.isSelectable ? props.isSelected : undefined, "aria-busy": props.isLoading, "aria-posinset": props.index + 1, ...(props.checkbox?.isVisible && { 'aria-checked': props.isChecked }), className: css$A.row }, component));
|
|
3749
3873
|
}
|
|
3750
3874
|
|
|
3751
|
-
var css$z = {"root":"
|
|
3875
|
+
var css$z = {"root":"Dqkaar"};
|
|
3752
3876
|
|
|
3753
3877
|
function PickerList(props) {
|
|
3754
3878
|
const { context, view, onlySelectedView, getName, getEntityName, appendLastSelected, getSelectedIdsArray, buildRowsList, getMaxDefaultItems, getModalTogglerCaption, } = uuiComponents.usePickerList(props);
|
|
@@ -3783,7 +3907,7 @@ function PickerList(props) {
|
|
|
3783
3907
|
}, selectedRows)));
|
|
3784
3908
|
}
|
|
3785
3909
|
|
|
3786
|
-
var css$y = {"root":"
|
|
3910
|
+
var css$y = {"root":"w0YLHc","wrapper":"N9mo4j","align-widgets-top":"pMlDT9","alignWidgetsTop":"pMlDT9","align-widgets-center":"ahCztK","alignWidgetsCenter":"ahCztK"};
|
|
3787
3911
|
|
|
3788
3912
|
function DataTableCell(initialProps) {
|
|
3789
3913
|
const props = { ...initialProps };
|
|
@@ -3791,7 +3915,7 @@ function DataTableCell(initialProps) {
|
|
|
3791
3915
|
props.addons = React__namespace.createElement(DataRowAddons, { size: props.size, ...props });
|
|
3792
3916
|
}
|
|
3793
3917
|
props.renderPlaceholder = props.renderPlaceholder
|
|
3794
|
-
|| (() =>
|
|
3918
|
+
|| (() => settings.dataTable.renderPlaceholder({ rowSize: props.size }));
|
|
3795
3919
|
props.renderUnknown = props.renderUnknown
|
|
3796
3920
|
|| (() => (React__namespace.createElement(Text, { key: "t", size: props.size }, "Unknown")));
|
|
3797
3921
|
props.renderTooltip = (tooltipProps) => React__namespace.createElement(Tooltip, { color: "critical", ...tooltipProps });
|
|
@@ -3823,6 +3947,8 @@ function DataTableCell(initialProps) {
|
|
|
3823
3947
|
props.isLastColumn && 'uui-dt-last-column',
|
|
3824
3948
|
css$y[`align-widgets-${props.alignActions || 'top'}`],
|
|
3825
3949
|
(props.border || isEditable) && 'uui-dt-vertical-cell-border',
|
|
3950
|
+
props.isDisabled && uuiCore.uuiMod.disabled,
|
|
3951
|
+
props.isReadonly && uuiCore.uuiMod.readonly,
|
|
3826
3952
|
];
|
|
3827
3953
|
props.style = {
|
|
3828
3954
|
'--uui-dt-cell-padding-start': getLeftPadding(),
|
|
@@ -3831,7 +3957,7 @@ function DataTableCell(initialProps) {
|
|
|
3831
3957
|
return React__namespace.createElement(uuiComponents.DataTableCell, { ...props });
|
|
3832
3958
|
}
|
|
3833
3959
|
|
|
3834
|
-
var css$x = {"root":"
|
|
3960
|
+
var css$x = {"root":"_7uu2RI"};
|
|
3835
3961
|
|
|
3836
3962
|
// Here we define a single instance of the renderCell function to make DataTableRow#shouldComponentUpdate work.
|
|
3837
3963
|
// 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.
|
|
@@ -3847,7 +3973,7 @@ const DataTableRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.DataTableRow,
|
|
|
3847
3973
|
];
|
|
3848
3974
|
}, () => propsMods);
|
|
3849
3975
|
|
|
3850
|
-
var css$w = {"sorting-panel-container":"
|
|
3976
|
+
var css$w = {"sorting-panel-container":"lXTyk2","sortingPanelContainer":"lXTyk2"};
|
|
3851
3977
|
|
|
3852
3978
|
const SortingPanelImpl = ({ sortDirection, onSort }) => {
|
|
3853
3979
|
const sortAsc = React.useCallback(() => onSort(sortDirection === 'asc' ? undefined : 'asc'), [onSort]);
|
|
@@ -3859,20 +3985,15 @@ const SortingPanelImpl = ({ sortDirection, onSort }) => {
|
|
|
3859
3985
|
const SortingPanel = /* @__PURE__ */React__namespace.default.memo(SortingPanelImpl);
|
|
3860
3986
|
|
|
3861
3987
|
const ColumnHeaderDropdownImpl = (props) => {
|
|
3862
|
-
const
|
|
3863
|
-
{
|
|
3864
|
-
name: 'offset',
|
|
3865
|
-
options: { offset: [0, 1] },
|
|
3866
|
-
}, uuiCore.mobilePopperModifier,
|
|
3867
|
-
], []);
|
|
3988
|
+
const middleware = React.useMemo(() => [react.offset(1), uuiCore.mobilePositioning], []);
|
|
3868
3989
|
const closeDropdown = React.useCallback(() => props.onOpenChange(false), [props.onOpenChange]);
|
|
3869
3990
|
return (React__namespace.default.createElement(uuiComponents.Dropdown, { renderTarget: props.renderTarget, renderBody: (dropdownProps) => (React__namespace.default.createElement(PickerBodyMobileView, { width: 280, maxWidth: "auto", title: props.title, onClose: closeDropdown },
|
|
3870
3991
|
props.isSortable && React__namespace.default.createElement(SortingPanel, { sortDirection: props.sortDirection, onSort: props.onSort }),
|
|
3871
|
-
props.renderFilter(dropdownProps))),
|
|
3992
|
+
props.renderFilter(dropdownProps))), middleware: middleware, value: props.isOpen, onValueChange: props.onOpenChange }));
|
|
3872
3993
|
};
|
|
3873
3994
|
const ColumnHeaderDropdown = /* @__PURE__ */React__namespace.default.memo(ColumnHeaderDropdownImpl);
|
|
3874
3995
|
|
|
3875
|
-
var css$v = {"root":"
|
|
3996
|
+
var css$v = {"root":"blR14a","caption-wrapper":"UWKNt2","captionWrapper":"UWKNt2","sort-icon":"eVzyro","sortIcon":"eVzyro","dropdown-icon":"_0O910j","dropdownIcon":"_0O910j","infoIcon":"_2e2WdD","resizable":"ULEG4f","align-right":"fNefHQ","alignRight":"fNefHQ","align-center":"_7Mq-ZV","alignCenter":"_7Mq-ZV","caption":"ie8Nh-","truncate":"ZkYraJ","upper-case":"ygqbzg","upperCase":"ygqbzg","checkbox":"y08EhT","icon":"Qh6w20","fold-all-icon":"imtxLr","foldAllIcon":"imtxLr","cell-tooltip":"z2tjQk","cellTooltip":"z2tjQk","resizing-marker":"_0ic6yA","resizingMarker":"_0ic6yA","pinned-right":"y6On4E","pinnedRight":"y6On4E","draggable":"OgQLLM","ghost":"JmWl-S","is-dragged-out":"XyC4F6","isDraggedOut":"XyC4F6","dnd-marker-left":"gZI1c2","dndMarkerLeft":"gZI1c2","dnd-marker-right":"vpIovy","dndMarkerRight":"vpIovy","cell-tooltip-wrapper":"FCuZCc","cellTooltipWrapper":"FCuZCc","cell-tooltip-text":"ar1wXh","cellTooltipText":"ar1wXh","tooltip-caption":"OP8Ep4","tooltipCaption":"OP8Ep4","tooltip-info":"VVDsMV","tooltipInfo":"VVDsMV"};
|
|
3876
3997
|
|
|
3877
3998
|
class DataTableHeaderCell extends React__namespace.Component {
|
|
3878
3999
|
constructor() {
|
|
@@ -3893,7 +4014,7 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
3893
4014
|
this.props.size >= '48' && css$v.truncate,
|
|
3894
4015
|
]);
|
|
3895
4016
|
return (React__namespace.createElement("div", { className: uuiCore.cx(css$v.captionWrapper, css$v['align-' + this.props.column.textAlign], uuiCore.uuiDataTableHeaderCell.uuiTableHeaderCaptionWrapper) },
|
|
3896
|
-
React__namespace.createElement(Tooltip, { placement: "top", color: "inverted", content: renderTooltip(this.props.column), cx: css$v.cellTooltip, openDelay: 600 },
|
|
4017
|
+
React__namespace.createElement(Tooltip, { placement: "top", color: "inverted", content: renderTooltip(this.props.column), cx: [css$v.cellTooltip, 'uui-dt-header-tooltip'], openDelay: 600 },
|
|
3897
4018
|
React__namespace.createElement("div", { key: "text", className: captionCx }, this.props.column.caption)),
|
|
3898
4019
|
this.props.column.isSortable && (!this.props.column.renderFilter || this.props.sortDirection) && (React__namespace.createElement(IconButton, { key: "sort", cx: uuiCore.cx(css$v.icon, css$v.sortIcon, this.props.sortDirection && css$v.sortIconActive, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderSortIcon), color: this.props.sortDirection ? 'neutral' : 'secondary', icon: settings.dataTable.icons.header[this.props.sortDirection === 'desc' ? 'descSortIcon' : this.props.sortDirection === 'asc' ? 'ascSortIcon' : 'defaultSortIcon'] })),
|
|
3899
4020
|
this.props.isFilterActive && (React__namespace.createElement(IconButton, { key: "filter", cx: uuiCore.cx(css$v.icon, !this.props.sortDirection && css$v.filterIcon, uuiCore.uuiDataTableHeaderCell.uuiTableHeaderFilterIcon), color: "neutral", icon: settings.dataTable.icons.header.filterIcon })),
|
|
@@ -3966,7 +4087,7 @@ class DataTableHeaderCell extends React__namespace.Component {
|
|
|
3966
4087
|
}
|
|
3967
4088
|
}
|
|
3968
4089
|
|
|
3969
|
-
var css$u = {"root":"
|
|
4090
|
+
var css$u = {"root":"Ret80r","caption-wrapper":"dU9rtG","captionWrapper":"dU9rtG","align-center":"HY6tTD","alignCenter":"HY6tTD","caption":"JG6w-b","truncate":"_4jIb-U","upper-case":"MGeb5d","upperCase":"MGeb5d","group-cell-tooltip":"mYQ9AY","groupCellTooltip":"mYQ9AY","group-cell-tooltip-wrapper":"J5pksx","groupCellTooltipWrapper":"J5pksx","group-cell-tooltip-text":"lC9Qju","groupCellTooltipText":"lC9Qju","tooltip-caption":"-L0uEZ","tooltipCaption":"-L0uEZ","tooltip-info":"jVrWXU","tooltipInfo":"jVrWXU"};
|
|
3970
4091
|
|
|
3971
4092
|
class DataTableHeaderGroupCell extends React__namespace.Component {
|
|
3972
4093
|
constructor() {
|
|
@@ -4006,7 +4127,7 @@ class DataTableHeaderGroupCell extends React__namespace.Component {
|
|
|
4006
4127
|
}
|
|
4007
4128
|
}
|
|
4008
4129
|
|
|
4009
|
-
var css$t = {"root":"
|
|
4130
|
+
var css$t = {"root":"JNrSYx"};
|
|
4010
4131
|
|
|
4011
4132
|
const DataTableHeaderRow = /* @__PURE__ */uuiCore.withMods(uuiComponents.DataTableHeaderRow, () => [css$t.root, 'uui-dt-vars'], (mods) => ({
|
|
4012
4133
|
renderCell: (props) => (React__namespace.createElement(DataTableHeaderCell, { ...props, size: mods.size, textCase: mods.textCase || 'normal', key: props.column.key, columnsGap: mods.columnsGap })),
|
|
@@ -4018,10 +4139,14 @@ const UUI_FILTERS_PANEL_ADD_BUTTON = 'uui-filters-panel-add-button';
|
|
|
4018
4139
|
const UUI_FILTERS_PANEL_ADD_BUTTON_BODY = 'uui-filters-panel-add-button-body';
|
|
4019
4140
|
const UUI_FILTERS_PANEL_ITEM_BODY = 'uui-filters-panel-item-body';
|
|
4020
4141
|
const UUI_FILTERS_PANEL_ITEM_TOGGLER = 'uui-filters-panel-item-toggler';
|
|
4142
|
+
const UUI_FILTERS_PANEL_ITEM_TOGGLER_TITLE = 'uui-filters-panel-item-toggler-title';
|
|
4143
|
+
const UUI_FILTERS_PANEL_ITEM_TOGGLER_SELECTION = 'uui-filters-panel-item-toggler-selection';
|
|
4144
|
+
const UUI_FILTERS_PANEL_ITEM_TOGGLER_POSTFIX = 'uui-filters-panel-item-toggler-postfix';
|
|
4145
|
+
const UUI_FILTERS_PANEL_BODY_FOOTER = 'uui-filters-panel-item-footer';
|
|
4021
4146
|
|
|
4022
|
-
var css$s = {"root":"
|
|
4147
|
+
var css$s = {"root":"IlOdsU","title-wrapper":"_0WpInB","titleWrapper":"_0WpInB","title":"YtmH-J","text-wrapper":"EGr-nx","textWrapper":"EGr-nx","selection":"_4IkKgj","postfix":"VSZAiC","selected":"fdfzxC"};
|
|
4023
4148
|
|
|
4024
|
-
|
|
4149
|
+
const FilterPanelItemToggler = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
4025
4150
|
const togglerPickerOpened = (e) => {
|
|
4026
4151
|
if (props.isDisabled)
|
|
4027
4152
|
return;
|
|
@@ -4042,16 +4167,16 @@ function FilterPanelItemToggler(props) {
|
|
|
4042
4167
|
};
|
|
4043
4168
|
const getTitle = props.predicateName ? `${props.title} ${props.predicateName}` : `${props.title}${props.selection ? ':' : ''}`;
|
|
4044
4169
|
const getSelectionText = () => props.selection.map((i, index) => (React__namespace.createElement(React__namespace.Fragment, { key: `${i}${index}` },
|
|
4045
|
-
React__namespace.createElement(
|
|
4170
|
+
React__namespace.createElement("div", { className: cx__default.default(css$s.selection, UUI_FILTERS_PANEL_ITEM_TOGGLER_SELECTION) }, i),
|
|
4046
4171
|
(props.postfix || index !== props.selection.length - 1) && React__namespace.createElement("span", null, ",\u00A0"))));
|
|
4047
|
-
return (React__namespace.createElement("div", { style: { maxWidth: `${props.maxWidth ? props.maxWidth + 'px' : 'auto'}` }, role: "button", tabIndex: props.isDisabled ? -1 : 0, onKeyDown: onKeyDownHandler, className: cx__default.default(UUI_FILTERS_PANEL_ITEM_TOGGLER, css$s.root, uuiCore.uuiElement.inputBox, uuiCore.uuiMarkers.clickable, props.isOpen && uuiCore.uuiMod.opened, `uui-size-${props.size || settings.pickerInput.sizes.toggler.default}`, props.cx), onClick: togglerPickerOpened, ref:
|
|
4172
|
+
return (React__namespace.createElement("div", { style: { maxWidth: `${props.maxWidth ? props.maxWidth + 'px' : 'auto'}` }, role: "button", tabIndex: props.isDisabled ? -1 : 0, onKeyDown: onKeyDownHandler, className: cx__default.default(UUI_FILTERS_PANEL_ITEM_TOGGLER, css$s.root, uuiCore.uuiElement.inputBox, uuiCore.uuiMarkers.clickable, props.isOpen && uuiCore.uuiMod.opened, props.selection?.length > 0 && uuiCore.uuiMarkers.hasValue, `uui-size-${props.size || settings.pickerInput.sizes.toggler.default}`, props.cx), onClick: togglerPickerOpened, ref: ref },
|
|
4048
4173
|
React__namespace.createElement("div", { className: css$s.titleWrapper },
|
|
4049
|
-
React__namespace.createElement(
|
|
4174
|
+
React__namespace.createElement("div", { className: cx__default.default(css$s.title, UUI_FILTERS_PANEL_ITEM_TOGGLER_TITLE) }, getTitle),
|
|
4050
4175
|
props.selection && (React__namespace.createElement("div", { className: css$s.textWrapper },
|
|
4051
4176
|
getSelectionText(),
|
|
4052
|
-
props.postfix && (React__namespace.createElement(
|
|
4177
|
+
props.postfix && (React__namespace.createElement("div", { className: cx__default.default(css$s.postfix, UUI_FILTERS_PANEL_ITEM_TOGGLER_POSTFIX) }, props.postfix))))),
|
|
4053
4178
|
!props.isDisabled && React__namespace.createElement(uuiComponents.IconContainer, { icon: settings.filtersPanel.icons.itemDropdownIcon, flipY: props.isOpen, cx: "uui-icon-dropdown" })));
|
|
4054
|
-
}
|
|
4179
|
+
});
|
|
4055
4180
|
|
|
4056
4181
|
const pickerHeight = 300;
|
|
4057
4182
|
function FilterPickerBody({ highlightSearchMatches = true, ...restProps }) {
|
|
@@ -4087,7 +4212,7 @@ function FilterPickerBody({ highlightSearchMatches = true, ...restProps }) {
|
|
|
4087
4212
|
};
|
|
4088
4213
|
return props.renderFooter
|
|
4089
4214
|
? props.renderFooter(footerProps)
|
|
4090
|
-
: React__namespace.createElement(DataPickerFooter, { ...footerProps, size: settings.pickerInput.sizes.body.row });
|
|
4215
|
+
: React__namespace.createElement(DataPickerFooter, { ...footerProps, cx: UUI_FILTERS_PANEL_BODY_FOOTER, size: settings.pickerInput.sizes.body.row });
|
|
4091
4216
|
};
|
|
4092
4217
|
const renderBody = () => {
|
|
4093
4218
|
const rows = view.getVisibleRows();
|
|
@@ -4170,6 +4295,14 @@ function FilterRangeDatePickerBody(props) {
|
|
|
4170
4295
|
onOpenChange(false);
|
|
4171
4296
|
}
|
|
4172
4297
|
};
|
|
4298
|
+
const onClear = () => {
|
|
4299
|
+
const newValue = {
|
|
4300
|
+
from: props.preventEmptyFromDate ? value.from : null,
|
|
4301
|
+
to: props.preventEmptyToDate ? value.to : null,
|
|
4302
|
+
};
|
|
4303
|
+
onValueChange(newValue);
|
|
4304
|
+
};
|
|
4305
|
+
const shouldShowClearButton = !props.preventEmptyToDate || !props.preventEmptyFromDate;
|
|
4173
4306
|
return (React__namespace.default.createElement(React.Fragment, null,
|
|
4174
4307
|
React__namespace.default.createElement(FlexRow, { borderBottom: true },
|
|
4175
4308
|
React__namespace.default.createElement(RangeDatePickerBody, { value: {
|
|
@@ -4178,17 +4311,17 @@ function FilterRangeDatePickerBody(props) {
|
|
|
4178
4311
|
}, onValueChange: onBodyValueChange, filter: props.filter, presets: props.presets })),
|
|
4179
4312
|
React__namespace.default.createElement(FlexCell, { alignSelf: "stretch" },
|
|
4180
4313
|
React__namespace.default.createElement(FlexRow, { padding: "24", vPadding: "12" },
|
|
4181
|
-
React__namespace.default.createElement(RangeDatePickerInput, { size:
|
|
4314
|
+
React__namespace.default.createElement(RangeDatePickerInput, { size: settings.filtersPanel.sizes.rangeDatePickerInput, disableClear: props.disableClear, inFocus: inFocus, format: format, value: value, onValueChange: onValueChange, onFocusInput: (event, inputType) => {
|
|
4182
4315
|
if (props.onFocus) {
|
|
4183
4316
|
props.onFocus(event, inputType);
|
|
4184
4317
|
}
|
|
4185
4318
|
setInFocus(inputType);
|
|
4186
|
-
}, onBlurInput: props.onBlur }),
|
|
4319
|
+
}, onBlurInput: props.onBlur, preventEmptyFromDate: props.preventEmptyFromDate, preventEmptyToDate: props.preventEmptyToDate }),
|
|
4187
4320
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
4188
|
-
React__namespace.default.createElement(LinkButton, { isDisabled: !value.from && !value.to, caption: i18n.
|
|
4321
|
+
shouldShowClearButton && (React__namespace.default.createElement(LinkButton, { isDisabled: !value.from && !value.to, caption: i18n.filterToolbar.rangeDatePicker.clearCaption, onClick: onClear }))))));
|
|
4189
4322
|
}
|
|
4190
4323
|
|
|
4191
|
-
var css$r = {"container":"
|
|
4324
|
+
var css$r = {"container":"_0qFfUH"};
|
|
4192
4325
|
|
|
4193
4326
|
function FilterNumericBody(props) {
|
|
4194
4327
|
const isInRangePredicate = props?.selectedPredicate === 'inRange' || props?.selectedPredicate === 'notInRange';
|
|
@@ -4217,7 +4350,6 @@ function FilterNumericBody(props) {
|
|
|
4217
4350
|
}
|
|
4218
4351
|
};
|
|
4219
4352
|
const renderFooter = () => {
|
|
4220
|
-
const size = uuiCore.isMobile() ? '48' : '36';
|
|
4221
4353
|
const clearSelection = () => {
|
|
4222
4354
|
if (isInRangePredicate) {
|
|
4223
4355
|
props.onValueChange({
|
|
@@ -4233,22 +4365,22 @@ function FilterNumericBody(props) {
|
|
|
4233
4365
|
return (React__namespace.default.createElement(FlexRow, { padding: "12" },
|
|
4234
4366
|
React__namespace.default.createElement(uuiComponents.FlexSpacer, null),
|
|
4235
4367
|
React__namespace.default.createElement(FlexCell, { width: "auto", alignSelf: "center" },
|
|
4236
|
-
React__namespace.default.createElement(LinkButton, { isDisabled: isClearDisabled, size:
|
|
4368
|
+
React__namespace.default.createElement(LinkButton, { isDisabled: isClearDisabled, size: settings.filtersPanel.sizes[uuiCore.isMobile() ? 'mobileFooterLinkButton' : 'footerLinkButton'], caption: i18n.pickerInput.clearSelectionButtonSingle, onClick: clearSelection }))));
|
|
4237
4369
|
};
|
|
4238
4370
|
if (isInRangePredicate) {
|
|
4239
4371
|
const value = props.value;
|
|
4240
4372
|
return (React__namespace.default.createElement("div", null,
|
|
4241
|
-
React__namespace.default.createElement(FlexRow, { padding: "12", alignItems: "center",
|
|
4373
|
+
React__namespace.default.createElement(FlexRow, { padding: "12", alignItems: "center", columnGap: "12", borderBottom: true, cx: css$r.container },
|
|
4242
4374
|
React__namespace.default.createElement(FlexCell, { width: "100%" },
|
|
4243
|
-
React__namespace.default.createElement(NumericInput, { value: value?.from ?? null, onValueChange: rangeValueHandler('from'), placeholder: "Min", formatOptions: { maximumFractionDigits: 2 } })),
|
|
4375
|
+
React__namespace.default.createElement(NumericInput, { size: settings.filtersPanel.sizes.default, value: value?.from ?? null, onValueChange: rangeValueHandler('from'), placeholder: "Min", formatOptions: { maximumFractionDigits: 2 } })),
|
|
4244
4376
|
React__namespace.default.createElement(FlexCell, { width: "100%" },
|
|
4245
|
-
React__namespace.default.createElement(NumericInput, { value: value?.to ?? null, onValueChange: rangeValueHandler('to'), placeholder: "Max", formatOptions: { maximumFractionDigits: 2 }, isInvalid: isWrongRange(value?.from, value?.to) }))),
|
|
4377
|
+
React__namespace.default.createElement(NumericInput, { size: settings.filtersPanel.sizes.default, value: value?.to ?? null, onValueChange: rangeValueHandler('to'), placeholder: "Max", formatOptions: { maximumFractionDigits: 2 }, isInvalid: isWrongRange(value?.from, value?.to) }))),
|
|
4246
4378
|
renderFooter()));
|
|
4247
4379
|
}
|
|
4248
4380
|
return (React__namespace.default.createElement("div", null,
|
|
4249
4381
|
React__namespace.default.createElement(FlexRow, { padding: "12", alignItems: "center", borderBottom: true, cx: css$r.container },
|
|
4250
4382
|
React__namespace.default.createElement(FlexCell, { width: 130 },
|
|
4251
|
-
React__namespace.default.createElement(NumericInput, { value: typeof props.value === 'number' ? props.value : null, onValueChange: props.onValueChange, placeholder: "Enter a number", formatOptions: { maximumFractionDigits: 2 } }))),
|
|
4383
|
+
React__namespace.default.createElement(NumericInput, { size: settings.filtersPanel.sizes.default, value: typeof props.value === 'number' ? props.value : null, onValueChange: props.onValueChange, placeholder: "Enter a number", formatOptions: { maximumFractionDigits: 2 } }))),
|
|
4252
4384
|
renderFooter()));
|
|
4253
4385
|
}
|
|
4254
4386
|
|
|
@@ -4269,22 +4401,7 @@ function FilterItemBody(props) {
|
|
|
4269
4401
|
}
|
|
4270
4402
|
}
|
|
4271
4403
|
|
|
4272
|
-
var
|
|
4273
|
-
function _extends$a() { return _extends$a = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$a.apply(null, arguments); }
|
|
4274
|
-
var SvgActionDeleteOutline = function SvgActionDeleteOutline(props, ref) {
|
|
4275
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
|
|
4276
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4277
|
-
width: 24,
|
|
4278
|
-
height: 24,
|
|
4279
|
-
viewBox: "0 0 24 24",
|
|
4280
|
-
ref: ref
|
|
4281
|
-
}, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4282
|
-
d: "M9 3v1H4v2h1v13a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6h1V4h-5V3H9zM7 6h10v13H7V6zm2 2v9h2V8H9zm4 0v9h2V8h-2z"
|
|
4283
|
-
})));
|
|
4284
|
-
};
|
|
4285
|
-
var ForwardRef$a = /*#__PURE__*/React.forwardRef(SvgActionDeleteOutline);
|
|
4286
|
-
|
|
4287
|
-
var css$q = {"header":"jtnc4A","removeButton":"ybDfYZ","with-search":"QvmbLe","withSearch":"QvmbLe"};
|
|
4404
|
+
var css$q = {"body":"UfX2fW","header":"VeCo-C","title":"vvlWCH","removeButton":"SKT6MG","with-search":"_8ul4sa","withSearch":"_8ul4sa"};
|
|
4288
4405
|
|
|
4289
4406
|
function useView(props, value) {
|
|
4290
4407
|
const forceUpdate = uuiCore.useForceUpdate();
|
|
@@ -4305,25 +4422,16 @@ function FiltersToolbarItemImpl(props) {
|
|
|
4305
4422
|
const { maxCount = 2 } = props;
|
|
4306
4423
|
const isPickersType = props?.type === 'multiPicker' || props?.type === 'singlePicker';
|
|
4307
4424
|
const isMobileScreen = uuiCore.isMobile();
|
|
4308
|
-
const
|
|
4309
|
-
const
|
|
4310
|
-
{
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
},
|
|
4425
|
+
const floatingMiddleware = React.useMemo(() => {
|
|
4426
|
+
const middleware = [
|
|
4427
|
+
react.offset(() => {
|
|
4428
|
+
return isPickersType && isMobileScreen ? 0 : 6;
|
|
4429
|
+
}),
|
|
4314
4430
|
];
|
|
4315
4431
|
if (isPickersType && isMobileScreen) {
|
|
4316
|
-
|
|
4317
|
-
name: 'resetTransform',
|
|
4318
|
-
enabled: true,
|
|
4319
|
-
phase: 'beforeWrite',
|
|
4320
|
-
requires: ['computeStyles'],
|
|
4321
|
-
fn: ({ state }) => {
|
|
4322
|
-
state.styles.popper.transform = '';
|
|
4323
|
-
},
|
|
4324
|
-
});
|
|
4432
|
+
middleware.push(uuiCore.mobilePositioning);
|
|
4325
4433
|
}
|
|
4326
|
-
return
|
|
4434
|
+
return middleware;
|
|
4327
4435
|
}, [isPickersType]);
|
|
4328
4436
|
const getDefaultPredicate = () => {
|
|
4329
4437
|
if (!props.predicates) {
|
|
@@ -4372,13 +4480,13 @@ function FiltersToolbarItemImpl(props) {
|
|
|
4372
4480
|
setPredicate(val);
|
|
4373
4481
|
};
|
|
4374
4482
|
const renderHeader = (hideTitle) => (React__namespace.default.createElement("div", { className: cx__default.default(css$q.header, isPickersType && (props.showSearch ?? css$q.withSearch)) },
|
|
4375
|
-
props.predicates ? (React__namespace.default.createElement(MultiSwitch, { items: props.predicates.map((i) => ({ id: i.predicate, caption: i.name })), value: predicate, onValueChange: changePredicate, size:
|
|
4376
|
-
!props?.isAlwaysVisible && (React__namespace.default.createElement(LinkButton, { cx: css$q.removeButton, caption: i18n.filterToolbar.datePicker.removeCaption, onClick: removeOnclickHandler, size:
|
|
4483
|
+
props.predicates ? (React__namespace.default.createElement(MultiSwitch, { items: props.predicates.map((i) => ({ id: i.predicate, caption: i.name })), value: predicate, onValueChange: changePredicate, size: settings.filtersPanel.sizes.pickerBodyMultiSwitch })) : (!hideTitle && (React__namespace.default.createElement("div", { className: css$q.title }, props.title))),
|
|
4484
|
+
!props?.isAlwaysVisible && (React__namespace.default.createElement(LinkButton, { cx: css$q.removeButton, caption: i18n.filterToolbar.datePicker.removeCaption, onClick: removeOnclickHandler, size: settings.filtersPanel.sizes.pickerBodyLinkButton, icon: settings.filtersPanel.icons.pickerBodyRemoveIcon }))));
|
|
4377
4485
|
const renderBody = (dropdownProps) => {
|
|
4378
4486
|
const hideHeaderTitle = isPickersType && isMobileScreen;
|
|
4379
|
-
return isPickersType ? (React__namespace.default.createElement(PickerBodyMobileView, { ...dropdownProps, cx: UUI_FILTERS_PANEL_ITEM_BODY, title: props.title, width:
|
|
4487
|
+
return isPickersType ? (React__namespace.default.createElement(PickerBodyMobileView, { ...dropdownProps, cx: [css$q.body, UUI_FILTERS_PANEL_ITEM_BODY], title: props.title, width: settings.filtersPanel.sizes.pickerBodyMinWidth, onClose: () => isOpenChange(false) },
|
|
4380
4488
|
renderHeader(hideHeaderTitle),
|
|
4381
|
-
React__namespace.default.createElement(FilterItemBody, { ...props, ...dropdownProps, selectedPredicate: predicate, value: getValue(), onValueChange: onValueChange }))) : (React__namespace.default.createElement(DropdownContainer, { cx: UUI_FILTERS_PANEL_ITEM_BODY, ...dropdownProps },
|
|
4489
|
+
React__namespace.default.createElement(FilterItemBody, { ...props, ...dropdownProps, selectedPredicate: predicate, value: getValue(), onValueChange: onValueChange }))) : (React__namespace.default.createElement(DropdownContainer, { cx: [css$q.body, UUI_FILTERS_PANEL_ITEM_BODY], ...dropdownProps },
|
|
4382
4490
|
renderHeader(hideHeaderTitle),
|
|
4383
4491
|
React__namespace.default.createElement(FilterItemBody, { ...props, ...dropdownProps, selectedPredicate: predicate, value: getValue(), onValueChange: onValueChange })));
|
|
4384
4492
|
};
|
|
@@ -4387,7 +4495,7 @@ function FiltersToolbarItemImpl(props) {
|
|
|
4387
4495
|
};
|
|
4388
4496
|
const getPickerItemName = (item, config) => {
|
|
4389
4497
|
if (item.isLoading) {
|
|
4390
|
-
return
|
|
4498
|
+
return settings.filtersPanel.renderPlaceholder();
|
|
4391
4499
|
}
|
|
4392
4500
|
if (item.isUnknown) {
|
|
4393
4501
|
return 'Unknown';
|
|
@@ -4458,7 +4566,7 @@ function FiltersToolbarItemImpl(props) {
|
|
|
4458
4566
|
return props.type === 'datePicker' || props.type === 'rangeDatePicker' ? null : 300;
|
|
4459
4567
|
};
|
|
4460
4568
|
const renderTarget = (dropdownProps) => (React__namespace.default.createElement(FilterPanelItemToggler, { ...dropdownProps, ...getTogglerValue(), title: props.title, predicateName: props.value ? predicateName : null, maxWidth: getTogglerWidth(), size: props.size }));
|
|
4461
|
-
return (React__namespace.default.createElement(uuiComponents.Dropdown, { renderTarget: renderTarget, renderBody: renderBody, closeBodyOnTogglerHidden: !uuiCore.isMobile(), value: isOpen, onValueChange: isOpenChange,
|
|
4569
|
+
return (React__namespace.default.createElement(uuiComponents.Dropdown, { renderTarget: renderTarget, renderBody: renderBody, closeBodyOnTogglerHidden: !uuiCore.isMobile(), value: isOpen, onValueChange: isOpenChange, middleware: floatingMiddleware }));
|
|
4462
4570
|
}
|
|
4463
4571
|
const FiltersPanelItem = /* @__PURE__ */React__namespace.default.memo(FiltersToolbarItemImpl);
|
|
4464
4572
|
|
|
@@ -4590,88 +4698,7 @@ function FiltersToolbarImpl(props) {
|
|
|
4590
4698
|
}
|
|
4591
4699
|
const FiltersPanel = /* @__PURE__ */React__namespace.default.memo(FiltersToolbarImpl);
|
|
4592
4700
|
|
|
4593
|
-
var css$p = {"
|
|
4594
|
-
|
|
4595
|
-
var _path$9;
|
|
4596
|
-
function _extends$9() { return _extends$9 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$9.apply(null, arguments); }
|
|
4597
|
-
var SvgActionSaveOutline = function SvgActionSaveOutline(props, ref) {
|
|
4598
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
|
|
4599
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4600
|
-
width: 24,
|
|
4601
|
-
height: 24,
|
|
4602
|
-
viewBox: "0 0 24 24",
|
|
4603
|
-
ref: ref
|
|
4604
|
-
}, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4605
|
-
d: "M17 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm2 16H5V5h11.17L19 7.83V19zm-7-7c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3zM6 6h9v4H6V6z"
|
|
4606
|
-
})));
|
|
4607
|
-
};
|
|
4608
|
-
var ForwardRef$9 = /*#__PURE__*/React.forwardRef(SvgActionSaveOutline);
|
|
4609
|
-
|
|
4610
|
-
var _path$8;
|
|
4611
|
-
function _extends$8() { return _extends$8 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$8.apply(null, arguments); }
|
|
4612
|
-
var SvgContentEditUndoOutline = function SvgContentEditUndoOutline(props, ref) {
|
|
4613
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
|
|
4614
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4615
|
-
width: 24,
|
|
4616
|
-
height: 24,
|
|
4617
|
-
viewBox: "0 0 24 24",
|
|
4618
|
-
ref: ref
|
|
4619
|
-
}, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4620
|
-
d: "M22.5 15a8.71 8.71 0 0 0-.712-3.513 9.158 9.158 0 0 0-1.926-2.85 9.152 9.152 0 0 0-2.85-1.925A8.709 8.709 0 0 0 13.5 6a8.71 8.71 0 0 0-3.513.712 9.167 9.167 0 0 0-2.85 1.925 9.154 9.154 0 0 0-1.924 2.85A8.705 8.705 0 0 0 4.5 15v.15L2.95 13.6 1.5 15l4 4 4-4-1.45-1.4-1.55 1.55V15c0-1.95.679-3.604 2.037-4.962C9.896 8.679 11.55 8 13.5 8c1.95 0 3.604.68 4.962 2.038C19.821 11.396 20.5 13.05 20.5 15h2z"
|
|
4621
|
-
})));
|
|
4622
|
-
};
|
|
4623
|
-
var ForwardRef$8 = /*#__PURE__*/React.forwardRef(SvgContentEditUndoOutline);
|
|
4624
|
-
|
|
4625
|
-
var _path$7;
|
|
4626
|
-
function _extends$7() { return _extends$7 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$7.apply(null, arguments); }
|
|
4627
|
-
var SvgActionCopyContentOutline = function SvgActionCopyContentOutline(props, ref) {
|
|
4628
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
|
|
4629
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4630
|
-
width: 24,
|
|
4631
|
-
height: 24,
|
|
4632
|
-
viewBox: "0 0 24 24",
|
|
4633
|
-
ref: ref
|
|
4634
|
-
}, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4635
|
-
fillRule: "evenodd",
|
|
4636
|
-
d: "M19 19H9V9h10M9 7a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2H9zm5-4H5a2 2 0 0 0-2 2v9h2V5h9V3z",
|
|
4637
|
-
clipRule: "evenodd"
|
|
4638
|
-
})));
|
|
4639
|
-
};
|
|
4640
|
-
var ForwardRef$7 = /*#__PURE__*/React.forwardRef(SvgActionCopyContentOutline);
|
|
4641
|
-
|
|
4642
|
-
var _path$6;
|
|
4643
|
-
function _extends$6() { return _extends$6 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$6.apply(null, arguments); }
|
|
4644
|
-
var SvgContentEditFill = function SvgContentEditFill(props, ref) {
|
|
4645
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
|
|
4646
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4647
|
-
width: 24,
|
|
4648
|
-
height: 24,
|
|
4649
|
-
viewBox: "0 0 24 24",
|
|
4650
|
-
ref: ref
|
|
4651
|
-
}, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4652
|
-
d: "m19.3 8.925-4.25-4.2 1.4-1.4a1.92 1.92 0 0 1 1.413-.575 1.92 1.92 0 0 1 1.412.575l1.4 1.4c.383.383.583.846.6 1.388a1.806 1.806 0 0 1-.55 1.387L19.3 8.925zM17.85 10.4 7.25 21H3v-4.25l10.6-10.6 4.25 4.25z"
|
|
4653
|
-
})));
|
|
4654
|
-
};
|
|
4655
|
-
var ForwardRef$6 = /*#__PURE__*/React.forwardRef(SvgContentEditFill);
|
|
4656
|
-
|
|
4657
|
-
var _path$5, _path2;
|
|
4658
|
-
function _extends$5() { return _extends$5 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$5.apply(null, arguments); }
|
|
4659
|
-
var SvgContentLinkOutline = function SvgContentLinkOutline(props, ref) {
|
|
4660
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
|
|
4661
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4662
|
-
width: 24,
|
|
4663
|
-
height: 24,
|
|
4664
|
-
viewBox: "0 0 24 24",
|
|
4665
|
-
ref: ref
|
|
4666
|
-
}, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4667
|
-
d: "M12 4.93A5 5 0 0 1 19.07 12l-1.06 1.06c.12-.85.022-1.725-.295-2.534a3 3 0 0 0-4.302-4.182l-2.828 2.828a3 3 0 0 0-.07 4.17l.07.073-1.415 1.414a5 5 0 0 1 0-7.071L12 4.929z"
|
|
4668
|
-
})), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4669
|
-
d: "m4.93 12 .989-.99a5.018 5.018 0 0 0 .297 2.54 3 3 0 0 0 4.37 4.107l2.829-2.828a3 3 0 0 0-.828-4.83l1.464-1.463a5 5 0 0 1 .778 7.707L12 19.071a5 5 0 0 1-7.07-7.07z"
|
|
4670
|
-
})));
|
|
4671
|
-
};
|
|
4672
|
-
var ForwardRef$5 = /*#__PURE__*/React.forwardRef(SvgContentLinkOutline);
|
|
4673
|
-
|
|
4674
|
-
var css$o = {"delete-button":"jT0xBT","deleteButton":"jT0xBT","tab-button":"wil-YJ","tabButton":"wil-YJ","targetOpen":"Z3tbgq"};
|
|
4701
|
+
var css$p = {"delete-button":"_5piS-W","deleteButton":"_5piS-W","tab-button":"o1VTxC","tabButton":"o1VTxC","targetOpen":"c7JgKl"};
|
|
4675
4702
|
|
|
4676
4703
|
function PresetActionsDropdown(props) {
|
|
4677
4704
|
const { uuiNotifications } = uuiCore.useUuiContext();
|
|
@@ -4696,7 +4723,7 @@ function PresetActionsDropdown(props) {
|
|
|
4696
4723
|
const successNotificationHandler = React.useCallback((text) => {
|
|
4697
4724
|
uuiNotifications
|
|
4698
4725
|
.show((props) => (React__namespace.default.createElement(SuccessNotification, { ...props },
|
|
4699
|
-
React__namespace.default.createElement(
|
|
4726
|
+
React__namespace.default.createElement("div", { className: "uui-presets-panel-notification-text" }, text))), { duration: 3 })
|
|
4700
4727
|
.catch(() => null);
|
|
4701
4728
|
}, []);
|
|
4702
4729
|
const saveInCurrentHandler = React.useCallback(() => {
|
|
@@ -4719,32 +4746,32 @@ function PresetActionsDropdown(props) {
|
|
|
4719
4746
|
const isRenameAvailable = props.preset.id === props.activePresetId && !isReadonlyPreset;
|
|
4720
4747
|
return (React__namespace.default.createElement(DropdownMenuBody, { ...dropdownProps },
|
|
4721
4748
|
isPresetChanged && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
4722
|
-
!isReadonlyPreset && (React__namespace.default.createElement(DropdownMenuButton, { key: `${props.preset.id}-save-in-current`, icon:
|
|
4723
|
-
React__namespace.default.createElement(DropdownMenuButton, { key: `${props.preset.id}-save-as-new`, icon:
|
|
4749
|
+
!isReadonlyPreset && (React__namespace.default.createElement(DropdownMenuButton, { key: `${props.preset.id}-save-in-current`, icon: settings.presetsPanel.icons.saveInCurrentIcon, caption: "Save in current", onClick: () => { dropdownProps.onClose(); saveInCurrentHandler(); } })),
|
|
4750
|
+
React__namespace.default.createElement(DropdownMenuButton, { key: `${props.preset.id}-save-as-new`, icon: settings.presetsPanel.icons.saveAsNewIcon, caption: "Save as new",
|
|
4724
4751
|
// We add setTimeout to call addPreset after dropdown will be closed, since dropdown has focus lock, and it broke autofocus on add new preset input
|
|
4725
4752
|
onClick: () => { dropdownProps.onClose(); setTimeout(() => props.addPreset(), 0); } }),
|
|
4726
|
-
React__namespace.default.createElement(DropdownMenuButton, { key: `${props.preset.id}-discard`, icon:
|
|
4753
|
+
React__namespace.default.createElement(DropdownMenuButton, { key: `${props.preset.id}-discard`, icon: settings.presetsPanel.icons.discardChangesIcon, caption: "Discard all changes", onClick: () => { dropdownProps.onClose(); discardAllChangesHandler(); } }),
|
|
4727
4754
|
React__namespace.default.createElement(DropdownMenuSplitter, { key: "discard-splitter" }))),
|
|
4728
|
-
isRenameAvailable && (React__namespace.default.createElement(DropdownMenuButton, { key: `${props.preset.id}-rename`, icon:
|
|
4729
|
-
React__namespace.default.createElement(DropdownMenuButton, { key: `${props.preset.id}-duplicate`, icon:
|
|
4730
|
-
React__namespace.default.createElement(DropdownMenuButton, { key: `${props.preset.id}-copyLink`, icon:
|
|
4755
|
+
isRenameAvailable && (React__namespace.default.createElement(DropdownMenuButton, { key: `${props.preset.id}-rename`, icon: settings.presetsPanel.icons.renameIcon, caption: "Rename", onClick: props.renamePreset })),
|
|
4756
|
+
React__namespace.default.createElement(DropdownMenuButton, { key: `${props.preset.id}-duplicate`, icon: settings.presetsPanel.icons.copyIcon, caption: "Duplicate", onClick: () => { dropdownProps.onClose(); duplicateHandler(); } }),
|
|
4757
|
+
React__namespace.default.createElement(DropdownMenuButton, { key: `${props.preset.id}-copyLink`, icon: settings.presetsPanel.icons.copyLinkIcon, caption: "Copy Link", onClick: copyUrlToClipboard }),
|
|
4731
4758
|
!isReadonlyPreset && (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
4732
4759
|
React__namespace.default.createElement(DropdownMenuSplitter, { key: "delete-splitter" }),
|
|
4733
|
-
React__namespace.default.createElement(DropdownMenuButton, { icon:
|
|
4760
|
+
React__namespace.default.createElement(DropdownMenuButton, { icon: settings.presetsPanel.icons.deleteIcon, caption: "Delete", cx: css$p.deleteButton, onClick: deleteHandler })))));
|
|
4734
4761
|
};
|
|
4735
4762
|
const renderTarget = React.useCallback((dropdownProps) => {
|
|
4736
|
-
return (React__namespace.default.createElement(IconButton, { cx: [css$
|
|
4763
|
+
return (React__namespace.default.createElement(IconButton, { cx: [css$p.tabButton, dropdownProps.isOpen && css$p.targetOpen], color: props.preset.id === props.activePresetId ? 'primary' : 'neutral', ...dropdownProps, icon: settings.presetsPanel.icons.menuIcon, size: settings.presetsPanel.sizes.dropdownTargetIconButton }));
|
|
4737
4764
|
}, []);
|
|
4738
|
-
return (React__namespace.default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end",
|
|
4765
|
+
return (React__namespace.default.createElement(Dropdown, { renderBody: renderBody, renderTarget: renderTarget, placement: "bottom-end", middleware: [react.offset(22)] }));
|
|
4739
4766
|
}
|
|
4740
4767
|
|
|
4741
|
-
var css$n = {"preset-input-cell":"I8DifD","presetInputCell":"I8DifD","preset-input":"_9Eu-d9","presetInput":"_9Eu-d9"};
|
|
4742
|
-
|
|
4743
4768
|
const UUI_PRESETS_PANEL_ADD_BUTTON = 'uui-presets-panel-add-button';
|
|
4744
4769
|
const UUI_PRESETS_PANEL_MORE_BUTTON = 'uui-presets-panel-more-button';
|
|
4745
4770
|
const UUI_PRESETS_PANEL_INPUT = 'uui-presets-panel-input';
|
|
4746
4771
|
const UUI_PRESETS_PANEL_PRESET = 'uui-presets-panel-preset';
|
|
4747
4772
|
|
|
4773
|
+
var css$o = {"preset-input-cell":"_9XC2X5","presetInputCell":"_9XC2X5","preset-input":"mT-JsJ","presetInput":"mT-JsJ"};
|
|
4774
|
+
|
|
4748
4775
|
function PresetInput(props) {
|
|
4749
4776
|
const [presetCaption, setPresetCaption] = React.useState(props.preset?.name || '');
|
|
4750
4777
|
const [readonly, setReadonly] = React.useState(false);
|
|
@@ -4766,11 +4793,11 @@ function PresetInput(props) {
|
|
|
4766
4793
|
}
|
|
4767
4794
|
props.onCancel();
|
|
4768
4795
|
}, [presetCaption.length, props.onCancel]);
|
|
4769
|
-
return (React__namespace.default.createElement(FlexCell, { cx: [css$
|
|
4770
|
-
React__namespace.default.createElement(TextInput, { cx: css$
|
|
4796
|
+
return (React__namespace.default.createElement(FlexCell, { cx: [css$o.presetInputCell, UUI_PRESETS_PANEL_INPUT], minWidth: 180 },
|
|
4797
|
+
React__namespace.default.createElement(TextInput, { cx: css$o.presetInput, onValueChange: setPresetCaption, value: presetCaption, onCancel: cancelActionHandler, onAccept: acceptActionHandler, onBlur: newPresetOnBlurHandler, autoFocus: true, maxLength: 50, isReadonly: readonly })));
|
|
4771
4798
|
}
|
|
4772
4799
|
|
|
4773
|
-
var css$
|
|
4800
|
+
var css$n = {"preset":"na7niD","activePreset":"VpN7X9"};
|
|
4774
4801
|
|
|
4775
4802
|
function Preset(props) {
|
|
4776
4803
|
const [isRenamePreset, setIsRenamePreset] = React.useState(false);
|
|
@@ -4792,25 +4819,10 @@ function Preset(props) {
|
|
|
4792
4819
|
}, [props.preset]);
|
|
4793
4820
|
const isPresetActive = props.activePresetId === props.preset.id;
|
|
4794
4821
|
const PresetActionsDropdownComponent = React.useCallback(() => React__namespace.default.createElement(PresetActionsDropdown, { renamePreset: setPresetForRename, ...props }), [props.preset, props.tableState, props.activePresetId]);
|
|
4795
|
-
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$
|
|
4822
|
+
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$n.preset, isPresetActive && css$n.activePreset, UUI_PRESETS_PANEL_PRESET], size: settings.presetsPanel.sizes.tabButton, withNotify: isPresetActive && props.hasPresetChanged(props.preset), icon: PresetActionsDropdownComponent, iconPosition: "right", isLinkActive: isPresetActive }))));
|
|
4796
4823
|
}
|
|
4797
4824
|
|
|
4798
|
-
var
|
|
4799
|
-
function _extends$4() { return _extends$4 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$4.apply(null, arguments); }
|
|
4800
|
-
var SvgActionDeleteForeverFill = function SvgActionDeleteForeverFill(props, ref) {
|
|
4801
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
|
|
4802
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4803
|
-
width: 24,
|
|
4804
|
-
height: 24,
|
|
4805
|
-
viewBox: "0 0 24 24",
|
|
4806
|
-
ref: ref
|
|
4807
|
-
}, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4808
|
-
fillRule: "evenodd",
|
|
4809
|
-
d: "M7 21c-1.1 0-2-.9-2-2V8h14v11c0 1.1-.9 2-2 2H7zm8-17h5v2H4V4h5V3h6v1zM9.4 18.5l2.6-2.6 2.6 2.6 1.4-1.4-2.6-2.6 2.6-2.6-1.4-1.4-2.6 2.6-2.6-2.6L8 11.9l2.6 2.6L8 17.1l1.4 1.4z",
|
|
4810
|
-
clipRule: "evenodd"
|
|
4811
|
-
})));
|
|
4812
|
-
};
|
|
4813
|
-
var ForwardRef$4 = /*#__PURE__*/React.forwardRef(SvgActionDeleteForeverFill);
|
|
4825
|
+
var css$m = {"divider":"hhTCSW","dropdownDeleteIcon":"OGbQH6","presetsWrapper":"-o4DaD","addPresetContainer":"xCxUbi","dropContainer":"nTbx1-"};
|
|
4814
4826
|
|
|
4815
4827
|
function PresetsPanel(props) {
|
|
4816
4828
|
const [isAddingPreset, setIsAddingPreset] = React.useState(false);
|
|
@@ -4825,16 +4837,16 @@ function PresetsPanel(props) {
|
|
|
4825
4837
|
return React__namespace.default.createElement(Preset, { key: preset.id, preset: preset, addPreset: setAddingPreset, ...presetApi });
|
|
4826
4838
|
};
|
|
4827
4839
|
const renderAddPresetButton = React.useCallback(() => {
|
|
4828
|
-
return (React__namespace.default.createElement("div", { key: "addingPresetBlock", className: css$
|
|
4840
|
+
return (React__namespace.default.createElement("div", { key: "addingPresetBlock", className: css$m.addPresetContainer }, !isAddingPreset ? (React__namespace.default.createElement(Button, { cx: UUI_PRESETS_PANEL_ADD_BUTTON, onClick: setAddingPreset, caption: i18n.presetPanel.addCaption, icon: settings.presetsPanel.icons.addIcon, iconPosition: "left", fill: "ghost", color: "primary" })) : (React__namespace.default.createElement(PresetInput, { onCancel: cancelAddingPreset, onSuccess: props.createNewPreset }))));
|
|
4829
4841
|
}, [isAddingPreset]);
|
|
4830
4842
|
const onPresetDropdownSelect = (preset) => {
|
|
4831
4843
|
props.choosePreset(preset.preset);
|
|
4832
4844
|
};
|
|
4833
4845
|
const renderMoreButtonDropdown = (item, hiddenItems) => {
|
|
4834
4846
|
return (React__namespace.default.createElement(Dropdown, { key: "more", renderTarget: (props) => (React__namespace.default.createElement(FlexRow, null,
|
|
4835
|
-
React__namespace.default.createElement("div", { className: css$
|
|
4847
|
+
React__namespace.default.createElement("div", { className: css$m.divider }),
|
|
4836
4848
|
React__namespace.default.createElement(Button, { cx: UUI_PRESETS_PANEL_MORE_BUTTON, fill: "ghost", color: "secondary", caption: `${hiddenItems?.length || ''} more`, ...props }))), renderBody: (propsBody) => (React__namespace.default.createElement(DropdownMenuBody, { minWidth: 230, maxHeight: 300, ...propsBody },
|
|
4837
|
-
React__namespace.default.createElement(ScrollBars, null, hiddenItems.map((hiddenItem) => (React__namespace.default.createElement(DropdownMenuButton, { key: hiddenItem.preset.id, onClick: () => onPresetDropdownSelect(hiddenItem), caption: hiddenItem.preset.name, icon: !hiddenItem.preset.isReadonly &&
|
|
4849
|
+
React__namespace.default.createElement(ScrollBars, null, hiddenItems.map((hiddenItem) => (React__namespace.default.createElement(DropdownMenuButton, { key: hiddenItem.preset.id, onClick: () => onPresetDropdownSelect(hiddenItem), caption: hiddenItem.preset.name, icon: !hiddenItem.preset.isReadonly && settings.presetsPanel.icons.deleteIcon, iconPosition: "right", cx: css$m.dropdownDeleteIcon, onIconClick: !hiddenItem.preset.isReadonly && (() => props.deletePreset(hiddenItem.preset)) })))))) }));
|
|
4838
4850
|
};
|
|
4839
4851
|
const getPresetPriority = (preset, index) => {
|
|
4840
4852
|
return preset.id === props.activePresetId ? 100499 : 1000 - index;
|
|
@@ -4855,7 +4867,7 @@ function PresetsPanel(props) {
|
|
|
4855
4867
|
];
|
|
4856
4868
|
};
|
|
4857
4869
|
return (React__namespace.default.createElement(FlexCell, { grow: 1, minWidth: 310, rawProps: props.rawProps },
|
|
4858
|
-
React__namespace.default.createElement(FlexRow, { size: null, columnGap: "12", cx: css$
|
|
4870
|
+
React__namespace.default.createElement(FlexRow, { size: null, columnGap: "12", cx: css$m.presetsWrapper },
|
|
4859
4871
|
React__namespace.default.createElement(uuiComponents.AdaptivePanel, { items: getPanelItems() }))));
|
|
4860
4872
|
}
|
|
4861
4873
|
|
|
@@ -4896,7 +4908,7 @@ const useColumnsWithFilters = (initialColumns, filters) => {
|
|
|
4896
4908
|
return columns;
|
|
4897
4909
|
};
|
|
4898
4910
|
|
|
4899
|
-
var css$l = {"unpin-icon":"
|
|
4911
|
+
var css$l = {"unpin-icon":"spGrdr","unpinIcon":"spGrdr","pin-toggler-icon":"mWbb4u","pinTogglerIcon":"mWbb4u"};
|
|
4900
4912
|
|
|
4901
4913
|
function PinIconButton(props) {
|
|
4902
4914
|
const i18nLocal = i18n.tables.columnsConfigurationModal;
|
|
@@ -4938,7 +4950,7 @@ function getUnpinIcon(params) {
|
|
|
4938
4950
|
}
|
|
4939
4951
|
}
|
|
4940
4952
|
|
|
4941
|
-
var css$k = {"row-wrapper":"
|
|
4953
|
+
var css$k = {"row-wrapper":"Y6GQrp","rowWrapper":"Y6GQrp","pin-icon-button":"HSNTqO","pinIconButton":"HSNTqO","not-pinned":"aOr-u7","notPinned":"aOr-u7","checkbox":"bK0E1R","drag-handle":"_5r6zVv","dragHandle":"_5r6zVv","dnd-disabled":"eBl9bz","dndDisabled":"eBl9bz"};
|
|
4942
4954
|
|
|
4943
4955
|
const ColumnRow = /* @__PURE__ */React__namespace.memo(function ColumnRow(props) {
|
|
4944
4956
|
const { column } = props;
|
|
@@ -4961,7 +4973,7 @@ const ColumnRow = /* @__PURE__ */React__namespace.memo(function ColumnRow(props)
|
|
|
4961
4973
|
return (React__namespace.createElement(uuiCore.DndActor, { key: column.key, srcData: isDndAllowed && data, dstData: data, canAcceptDrop: onCanAcceptDrop, onDrop: onDrop, render: renderContent }));
|
|
4962
4974
|
});
|
|
4963
4975
|
|
|
4964
|
-
var css$j = {"root":"
|
|
4976
|
+
var css$j = {"root":"xataFf","main-panel":"-YQfx-","mainPanel":"-YQfx-","group":"iUoph5","group-title":"_2FDZx4","groupTitle":"_2FDZx4","group-items":"AKJlRW","groupItems":"AKJlRW","no-data":"hhNf6D","noData":"hhNf6D","no-data-title":"_8vFZoU","noDataTitle":"_8vFZoU","no-data-sub-title":"odWT4e","noDataSubTitle":"odWT4e","h-divider":"XOqUL7","hDivider":"XOqUL7","search-area":"V2Yc7i","searchArea":"V2Yc7i","subgroup-accordion":"RzKH4y","subgroupAccordion":"RzKH4y","subgroup":"pYTiqn","subgroup-title":"_2oCAmd","subgroupTitle":"_2oCAmd"};
|
|
4965
4977
|
|
|
4966
4978
|
const renderGroupTitle = (title, amount) => (React__namespace.createElement(FlexRow, { cx: css$j.group },
|
|
4967
4979
|
React__namespace.createElement(Text, { size: "none", cx: css$j.groupTitle }, title),
|
|
@@ -5063,7 +5075,7 @@ const getChildrenAndRest = (row, rows) => {
|
|
|
5063
5075
|
return [children, rest];
|
|
5064
5076
|
};
|
|
5065
5077
|
|
|
5066
|
-
var css$i = {"listContainer":"
|
|
5078
|
+
var css$i = {"listContainer":"zF45Cj","header":"AWVmp9","group":"dOOkh7","stickyHeader":"xgFN1H"};
|
|
5067
5079
|
|
|
5068
5080
|
function DataRowsGroup({ row, childRows, renderRow, top = 1, }) {
|
|
5069
5081
|
const rowRef = React.useRef(undefined);
|
|
@@ -5098,12 +5110,12 @@ function DataRowsGroups({ rows, renderRow, top = 1, }) {
|
|
|
5098
5110
|
}
|
|
5099
5111
|
|
|
5100
5112
|
function DataRowsContainer({ estimatedHeight, listContainerRef, offsetY, rows, renderRow, headerRef, }) {
|
|
5101
|
-
return (React__namespace.default.createElement("div", { className: css$i.listContainer, style: { minHeight: `${estimatedHeight}px` } },
|
|
5113
|
+
return (React__namespace.default.createElement("div", { className: cx__default.default(css$i.listContainer, 'uui-dt-data_row_container'), style: { minHeight: `${estimatedHeight}px` } },
|
|
5102
5114
|
React__namespace.default.createElement("div", { ref: listContainerRef, role: "rowgroup", style: { marginTop: offsetY } },
|
|
5103
5115
|
React__namespace.default.createElement(DataRowsGroups, { rows: rows, renderRow: renderRow, top: headerRef?.current?.clientHeight }))));
|
|
5104
5116
|
}
|
|
5105
5117
|
|
|
5106
|
-
var css$h = {"root":"
|
|
5118
|
+
var css$h = {"root":"CL9lgY","sticky-header":"_3tChDf","stickyHeader":"_3tChDf","no-results":"nrLNCR","noResults":"nrLNCR","icon":"_8tK-Qb","title":"Jnow9B"};
|
|
5107
5119
|
|
|
5108
5120
|
function DataTable(props) {
|
|
5109
5121
|
const { uuiModals } = uuiCore.useUuiContext();
|
|
@@ -5135,7 +5147,7 @@ function DataTable(props) {
|
|
|
5135
5147
|
props.columns, config, defaultConfig, props.value, props.onValueChange, props.renderColumnsConfigurationModal,
|
|
5136
5148
|
]);
|
|
5137
5149
|
const renderRowsContainer = React__namespace.useCallback(({ listContainerRef, estimatedHeight, offsetY, scrollShadows }) => (React__namespace.createElement(React__namespace.Fragment, null,
|
|
5138
|
-
React__namespace.createElement("div", { className: css$h.stickyHeader, ref: headerRef },
|
|
5150
|
+
React__namespace.createElement("div", { className: uuiCore.cx(css$h.stickyHeader, 'uui-dt-sticky_header'), ref: headerRef },
|
|
5139
5151
|
React__namespace.createElement(DataTableHeaderRow, { columns: columns, columnGroups: props.columnGroups, onConfigButtonClick: props.showColumnsConfig && onConfigurationButtonClick, selectAll: props.selectAll, size: props.headerSize || settings.dataTable.sizes.header.row, textCase: props.headerTextCase, allowColumnsReordering: props.allowColumnsReordering, allowColumnsResizing: props.allowColumnsResizing, showFoldAll: props.showFoldAll, value: { ...props.value, columnsConfig: config }, onValueChange: props.onValueChange, columnsGap: props.columnsGap }),
|
|
5140
5152
|
React__namespace.createElement("div", { className: uuiCore.cx(uuiCore.uuiScrollShadows.top, {
|
|
5141
5153
|
[uuiCore.uuiScrollShadows.topVisible]: scrollShadows.verticalTop,
|
|
@@ -5145,16 +5157,16 @@ function DataTable(props) {
|
|
|
5145
5157
|
]);
|
|
5146
5158
|
return (React__namespace.createElement(uuiComponents.DataTableSelectionProvider, { onCopy: props.onCopy, rows: rows, columns: columns },
|
|
5147
5159
|
React__namespace.createElement(uuiComponents.DataTableFocusProvider, { dataTableFocusManager: props.dataTableFocusManager },
|
|
5148
|
-
React__namespace.createElement(VirtualList, { value: props.value, onValueChange: props.onValueChange, onScroll: props.onScroll, rowsCount: props.rowsCount, renderRows: renderRowsContainer, cx: uuiCore.cx(css$h.root, 'uui-dt-vars'), isLoading: props.isReloading, rowsSelector: "[role=row]", rawProps: {
|
|
5160
|
+
React__namespace.createElement(VirtualList, { value: props.value, onValueChange: props.onValueChange, onScroll: props.onScroll, rowsCount: props.rowsCount, renderRows: renderRowsContainer, cx: uuiCore.cx(css$h.root, 'uui-dt-vars', 'uui-data_table'), isLoading: props.isReloading, rowsSelector: "[role=row]", rawProps: {
|
|
5149
5161
|
role: 'table',
|
|
5150
5162
|
'aria-colcount': columns.length,
|
|
5151
5163
|
'aria-rowcount': props.rowsCount,
|
|
5152
5164
|
} }))));
|
|
5153
5165
|
}
|
|
5154
5166
|
|
|
5155
|
-
var css$g = {"root":"-
|
|
5167
|
+
var css$g = {"root":"l-EV-b"};
|
|
5156
5168
|
|
|
5157
|
-
var css$f = {"root":"
|
|
5169
|
+
var css$f = {"root":"l3LRw5","burger-content":"j0-doR","burgerContent":"j0-doR"};
|
|
5158
5170
|
|
|
5159
5171
|
var _path$3;
|
|
5160
5172
|
function _extends$3() { return _extends$3 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$3.apply(null, arguments); }
|
|
@@ -5176,7 +5188,7 @@ function applyBurgerMods() {
|
|
|
5176
5188
|
}
|
|
5177
5189
|
const Burger = /* @__PURE__ */uuiCore.withMods(uuiComponents.Burger, applyBurgerMods, () => ({
|
|
5178
5190
|
burgerIcon: ForwardRef$3,
|
|
5179
|
-
crossIcon: ForwardRef$
|
|
5191
|
+
crossIcon: ForwardRef$Q,
|
|
5180
5192
|
burgerContentCx: css$f.burgerContent,
|
|
5181
5193
|
}));
|
|
5182
5194
|
|
|
@@ -5197,7 +5209,7 @@ var SvgNavigationArrowDownOutline = function SvgNavigationArrowDownOutline(props
|
|
|
5197
5209
|
};
|
|
5198
5210
|
var ForwardRef$2 = /*#__PURE__*/React.forwardRef(SvgNavigationArrowDownOutline);
|
|
5199
5211
|
|
|
5200
|
-
var css$e = {"root":"
|
|
5212
|
+
var css$e = {"root":"Rv63zU","button-primary":"PULQCJ","buttonPrimary":"PULQCJ","button-secondary":"ZD9LEn","buttonSecondary":"ZD9LEn","hasIcon":"U6KSnK","dropdown":"_1DZGpG"};
|
|
5201
5213
|
|
|
5202
5214
|
const BurgerButton = /* @__PURE__ */uuiCore.withMods(uuiComponents.Button, (props) => [
|
|
5203
5215
|
css$e.root,
|
|
@@ -5208,13 +5220,13 @@ const BurgerButton = /* @__PURE__ */uuiCore.withMods(uuiComponents.Button, (prop
|
|
|
5208
5220
|
props.icon && css$e.hasIcon,
|
|
5209
5221
|
], () => ({ dropdownIcon: ForwardRef$2, dropdownIconPosition: 'left', role: 'menuitem' }));
|
|
5210
5222
|
|
|
5211
|
-
var css$d = {"search-input":"
|
|
5223
|
+
var css$d = {"search-input":"giIzJO","searchInput":"giIzJO"};
|
|
5212
5224
|
|
|
5213
5225
|
function BurgerSearch(props) {
|
|
5214
|
-
return (React__namespace.createElement(uuiComponents.TextInput, { cx: cx__default.default(css$d.searchInput, 'uui-main_menu-burger-search'), iconPosition: "left", icon: ForwardRef$
|
|
5226
|
+
return (React__namespace.createElement(uuiComponents.TextInput, { cx: cx__default.default(css$d.searchInput, 'uui-main_menu-burger-search'), iconPosition: "left", icon: ForwardRef$M, placeholder: props.placeholder, value: props.value, onValueChange: props.onValueChange, onCancel: props.onCancel, cancelIcon: props.value && ForwardRef$Q }));
|
|
5215
5227
|
}
|
|
5216
5228
|
|
|
5217
|
-
var css$c = {"root":"
|
|
5229
|
+
var css$c = {"root":"lxnaoj","group-header":"TmxKjP","groupHeader":"TmxKjP","group-name":"z4MQaq","groupName":"z4MQaq","line":"_9tGE8M"};
|
|
5218
5230
|
|
|
5219
5231
|
function BurgerGroupHeader(props) {
|
|
5220
5232
|
return (React__namespace.createElement("div", { className: cx__default.default(css$c.root, css$c.groupHeader, 'uui-burger-group-header') },
|
|
@@ -5222,9 +5234,9 @@ function BurgerGroupHeader(props) {
|
|
|
5222
5234
|
React__namespace.createElement("span", { className: css$c.groupName }, props.caption)));
|
|
5223
5235
|
}
|
|
5224
5236
|
|
|
5225
|
-
var css$b = {"root":"
|
|
5237
|
+
var css$b = {"root":"WGhZPs","type-primary":"sB8dG0","typePrimary":"sB8dG0","type-secondary":"_14-GLL","typeSecondary":"_14-GLL"};
|
|
5226
5238
|
|
|
5227
|
-
|
|
5239
|
+
const MainMenuButton = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5228
5240
|
const { type, ...clickableProps } = props;
|
|
5229
5241
|
return (React__namespace.createElement(uuiComponents.Clickable, { ...clickableProps, rawProps: {
|
|
5230
5242
|
'aria-expanded': props.isOpen,
|
|
@@ -5236,15 +5248,15 @@ function MainMenuButton(props) {
|
|
|
5236
5248
|
css$b.root,
|
|
5237
5249
|
css$b['type-' + (type || 'primary')],
|
|
5238
5250
|
props.cx,
|
|
5239
|
-
], ref:
|
|
5251
|
+
], ref: ref },
|
|
5240
5252
|
props.icon && props.iconPosition !== 'right' && (React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: props.onIconClick })),
|
|
5241
5253
|
props.caption && (React__namespace.createElement("div", { className: uuiCore.uuiElement.caption }, props.caption)),
|
|
5242
5254
|
props.count !== undefined && props.count !== null && (React__namespace.createElement(CountIndicator, { caption: props.count, color: "neutral", size: "18" })),
|
|
5243
5255
|
props.icon && props.iconPosition === 'right' && (React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon, onClick: props.onIconClick })),
|
|
5244
|
-
props.isDropdown && (React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$
|
|
5245
|
-
}
|
|
5256
|
+
props.isDropdown && (React__namespace.createElement(uuiComponents.IconContainer, { icon: ForwardRef$P, flipY: props.isOpen }))));
|
|
5257
|
+
});
|
|
5246
5258
|
|
|
5247
|
-
var css$a = {"dropdown-body":"
|
|
5259
|
+
var css$a = {"dropdown-body":"bYW6ao","dropdownBody":"bYW6ao"};
|
|
5248
5260
|
|
|
5249
5261
|
class MainMenuDropdown extends React__namespace.Component {
|
|
5250
5262
|
render() {
|
|
@@ -5302,36 +5314,28 @@ var SvgNavigationGlobalMenuOutlineOutline = function SvgNavigationGlobalMenuOutl
|
|
|
5302
5314
|
};
|
|
5303
5315
|
var ForwardRef$1 = /*#__PURE__*/React.forwardRef(SvgNavigationGlobalMenuOutlineOutline);
|
|
5304
5316
|
|
|
5305
|
-
var css$9 = {"global-menu-btn":"
|
|
5317
|
+
var css$9 = {"global-menu-btn":"iVkfb3","globalMenuBtn":"iVkfb3","global-menu-icon":"CZ-nKp","globalMenuIcon":"CZ-nKp"};
|
|
5306
5318
|
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
React__namespace.createElement(uuiComponents.IconContainer, { size: 36, icon: ForwardRef$1, cx: css$9.globalMenuIcon })));
|
|
5310
|
-
}
|
|
5319
|
+
const GlobalMenu = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("button", { ref: ref, id: "global_menu_toggle", className: cx__default.default(css$9.globalMenuBtn, props.cx), ...props.rawProps },
|
|
5320
|
+
React__namespace.createElement(uuiComponents.IconContainer, { size: 36, icon: ForwardRef$1, cx: css$9.globalMenuIcon }))));
|
|
5311
5321
|
|
|
5312
|
-
var css$8 = {"container":"
|
|
5322
|
+
var css$8 = {"container":"JP-iks","open":"gqQUCO","folding-arrow":"Fc0XYM","foldingArrow":"Fc0XYM"};
|
|
5313
5323
|
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, icon: ForwardRef$Q, flipY: props.isOpen, cx: css$8.foldingArrow })))));
|
|
5320
|
-
}
|
|
5324
|
+
const MainMenuAvatar = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement("button", { ref: ref, className: cx__default.default(css$8.container, props.isDropdown && css$8.dropdown, props.isOpen && css$8.open, props.onClick && uuiCore.uuiMarkers.clickable, props.cx), onClick: props.onClick, ...props.rawProps },
|
|
5325
|
+
React__namespace.createElement(uuiComponents.Avatar, { size: "36", img: props.avatarUrl }),
|
|
5326
|
+
props.icon && React__namespace.createElement(uuiComponents.IconContainer, { icon: props.icon }),
|
|
5327
|
+
props.isDropdown && (React__namespace.createElement("div", null,
|
|
5328
|
+
React__namespace.createElement(uuiComponents.IconContainer, { size: 18, icon: ForwardRef$P, flipY: props.isOpen, cx: css$8.foldingArrow }))))));
|
|
5321
5329
|
|
|
5322
|
-
var css$7 = {"search-input":"
|
|
5330
|
+
var css$7 = {"search-input":"kUXl-U","searchInput":"kUXl-U"};
|
|
5323
5331
|
|
|
5324
|
-
|
|
5325
|
-
return (React__namespace.createElement(uuiCore.IEditableDebouncer, { ...props, render: (iEditable) => (React__namespace.createElement(uuiComponents.TextInput, { iconPosition: "left", icon: ForwardRef$N, cancelIcon: props.value?.length > 0 && ForwardRef$R, ...props, ...iEditable, ref: props.ref, cx: uuiCore.cx(css$7.searchInput, props.cx), ...props.rawProps })) }));
|
|
5326
|
-
}
|
|
5332
|
+
const MainMenuSearch = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement(uuiCore.IEditableDebouncer, { ...props, render: (iEditable) => (React__namespace.createElement(uuiComponents.TextInput, { iconPosition: "left", icon: ForwardRef$M, cancelIcon: props.value?.length > 0 && ForwardRef$Q, ...props, ...iEditable, ref: ref, cx: uuiCore.cx(css$7.searchInput, props.cx), ...props.rawProps })) })));
|
|
5327
5333
|
|
|
5328
|
-
var css$6 = {"container":"
|
|
5334
|
+
var css$6 = {"container":"_3lKd49"};
|
|
5329
5335
|
|
|
5330
|
-
|
|
5331
|
-
return (React__namespace.createElement(IconButton, { ref: props.ref, icon: props.icon, cx: uuiCore.cx(props.cx, css$6.container), ...props }));
|
|
5332
|
-
}
|
|
5336
|
+
const MainMenuIcon = /* @__PURE__ */React__namespace.forwardRef((props, ref) => (React__namespace.createElement(IconButton, { ref: ref, icon: props.icon, cx: uuiCore.cx(props.cx, css$6.container), ...props })));
|
|
5333
5337
|
|
|
5334
|
-
var css$5 = {"root":"
|
|
5338
|
+
var css$5 = {"root":"Rvrtkj"};
|
|
5335
5339
|
|
|
5336
5340
|
const Anchor = /* @__PURE__ */uuiCore.withMods(uuiComponents.Anchor, () => [css$5.root]);
|
|
5337
5341
|
|
|
@@ -5389,7 +5393,7 @@ var SvgFileCloudUploadFill = function SvgFileCloudUploadFill(props, ref) {
|
|
|
5389
5393
|
};
|
|
5390
5394
|
var ForwardRef = /*#__PURE__*/React.forwardRef(SvgFileCloudUploadFill);
|
|
5391
5395
|
|
|
5392
|
-
var css$4 = {"root":"
|
|
5396
|
+
var css$4 = {"root":"_5CBXTl","drop-start":"ZitunC","dropStart":"ZitunC","drop-over":"xFax5g","dropOver":"xFax5g","link":"v9wA44","drop-area":"_6gNV-W","dropArea":"_6gNV-W","drop-caption":"LNN-p2","dropCaption":"LNN-p2","icon-blue":"fkOQ8m","iconBlue":"fkOQ8m"};
|
|
5393
5397
|
|
|
5394
5398
|
function DropSpot(props) {
|
|
5395
5399
|
const getInfoText = typeof props.infoText === 'string'
|
|
@@ -5407,20 +5411,20 @@ function DropSpot(props) {
|
|
|
5407
5411
|
return React__namespace.createElement(uuiComponents.DropSpot, { render: renderAttachmentArea, onFilesDropped: props.onUploadFiles });
|
|
5408
5412
|
}
|
|
5409
5413
|
|
|
5410
|
-
var css$3 = {"root":"
|
|
5414
|
+
var css$3 = {"root":"_9-K4Gx"};
|
|
5411
5415
|
|
|
5412
|
-
|
|
5416
|
+
const SvgCircleProgress = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5413
5417
|
const outsetRadius = props.size / 2 - 1;
|
|
5414
5418
|
const insetRadius = props.size / 2 - 3;
|
|
5415
5419
|
const circumference = insetRadius * Math.PI;
|
|
5416
|
-
return (React__namespace.createElement("svg", { className: css$3.root, width: props.size, height: props.size, ref:
|
|
5420
|
+
return (React__namespace.createElement("svg", { className: css$3.root, width: props.size, height: props.size, ref: ref, ...props.rawProps },
|
|
5417
5421
|
React__namespace.createElement("circle", { strokeDasharray: circumference, strokeDashoffset: circumference - (props.progress / 100) * circumference, strokeWidth: insetRadius, fill: "transparent", r: insetRadius / 2, cx: props.size / 2, cy: props.size / 2 }),
|
|
5418
5422
|
React__namespace.createElement("circle", { strokeWidth: 1, fill: "transparent", r: outsetRadius, cx: props.size / 2, cy: props.size / 2 })));
|
|
5419
|
-
}
|
|
5423
|
+
});
|
|
5420
5424
|
|
|
5421
|
-
var css$2 = {"root":"
|
|
5425
|
+
var css$2 = {"root":"_8vcatu","file-name":"Kj13w0","fileName":"Kj13w0","default-color":"Lon-pc","defaultColor":"Lon-pc","doc-color":"gecK0l","docColor":"gecK0l","xls-color":"kiyU4n","xlsColor":"kiyU4n","pdf-color":"fZWICA","pdfColor":"fZWICA","movie-color":"Bf4qeT","movieColor":"Bf4qeT","img-color":"w0LcUE","imgColor":"w0LcUE","mov-color":"dhEypE","movColor":"dhEypE","error-block":"_689jrf","errorBlock":"_689jrf","icons-block":"_9cRtzy","iconsBlock":"_9cRtzy"};
|
|
5422
5426
|
|
|
5423
|
-
|
|
5427
|
+
const FileCard = /* @__PURE__ */React__namespace.forwardRef((props, ref) => {
|
|
5424
5428
|
const [isLoadingShow, setIsLoadingShow] = React__namespace.useState(true);
|
|
5425
5429
|
const { file } = props;
|
|
5426
5430
|
const getIcon = (extension) => {
|
|
@@ -5484,7 +5488,7 @@ function FileCard(props) {
|
|
|
5484
5488
|
progress && progress < 100 && abortXHR();
|
|
5485
5489
|
onClick();
|
|
5486
5490
|
};
|
|
5487
|
-
return (React__namespace.createElement(FlexCell, { ref:
|
|
5491
|
+
return (React__namespace.createElement(FlexCell, { ref: ref, cx: uuiCore.cx(css$2.root, 'uui-file_card', (isLoading || error?.isError) && uuiCore.uuiMod.loading, componentCx, error?.isError && uuiCore.uuiMod.error), minWidth: width, width: !width ? '100%' : undefined },
|
|
5488
5492
|
React__namespace.createElement(FlexRow, { alignItems: "top", columnGap: "6" },
|
|
5489
5493
|
fileExtension && getIcon(fileExtension),
|
|
5490
5494
|
React__namespace.createElement(FlexCell, { width: "100%" },
|
|
@@ -5493,7 +5497,7 @@ function FileCard(props) {
|
|
|
5493
5497
|
React__namespace.createElement("div", { className: uuiCore.cx(css$2.iconsBlock), onMouseEnter: mouseEnterHandler, onMouseLeave: mouseLeaveHandler },
|
|
5494
5498
|
isLoadingShow && isLoading && React__namespace.createElement(SvgCircleProgress, { progress: progress, size: 18 }),
|
|
5495
5499
|
isCrossShow && React__namespace.createElement(IconButton, { icon: settings.fileCard.icons.closeIcon, onClick: removeHandler })))));
|
|
5496
|
-
}
|
|
5500
|
+
});
|
|
5497
5501
|
|
|
5498
5502
|
const getRecoveryMessageConfig = () => ({
|
|
5499
5503
|
'auth-lost': i18n.errorHandler.recoveryMessageConfig['auth-lost'],
|
|
@@ -5537,7 +5541,7 @@ const getErrorPageConfig = () => ({
|
|
|
5537
5541
|
},
|
|
5538
5542
|
});
|
|
5539
5543
|
|
|
5540
|
-
var css$1 = {"container":"
|
|
5544
|
+
var css$1 = {"container":"Up4yb5"};
|
|
5541
5545
|
|
|
5542
5546
|
const ErrorPage = (props) => {
|
|
5543
5547
|
const isMobileScreen = uuiCore.isMobile();
|
|
@@ -5549,7 +5553,7 @@ const ErrorPage = (props) => {
|
|
|
5549
5553
|
props?.supportLink && React__namespace.default.createElement("div", { className: "uui-error-support-link" }, props?.supportLink))));
|
|
5550
5554
|
};
|
|
5551
5555
|
|
|
5552
|
-
var css = {"recovery-spinner":"
|
|
5556
|
+
var css = {"recovery-spinner":"YwUdq1","recoverySpinner":"YwUdq1","recovery-message":"QNGZyM","recoveryMessage":"QNGZyM","modal-blocker":"SzODoB","modalBlocker":"SzODoB","modalFadeIn":"lPUhWx"};
|
|
5553
5557
|
|
|
5554
5558
|
function ErrorHandler(props) {
|
|
5555
5559
|
const { uuiNotifications, uuiModals, uuiApi } = uuiCore.useUuiContext();
|
|
@@ -5649,6 +5653,7 @@ exports.DataTableHeaderRow = DataTableHeaderRow;
|
|
|
5649
5653
|
exports.DataTableRow = DataTableRow;
|
|
5650
5654
|
exports.DatePicker = DatePicker;
|
|
5651
5655
|
exports.DatePickerBody = DatePickerBody;
|
|
5656
|
+
exports.DatePickerComponent = DatePickerComponent;
|
|
5652
5657
|
exports.DropMarker = DropMarker;
|
|
5653
5658
|
exports.DropSpot = DropSpot;
|
|
5654
5659
|
exports.Dropdown = Dropdown;
|
|
@@ -5729,6 +5734,7 @@ exports.TextInput = TextInput;
|
|
|
5729
5734
|
exports.TextPlaceholder = TextPlaceholder;
|
|
5730
5735
|
exports.TimePicker = TimePicker;
|
|
5731
5736
|
exports.TimePickerBody = TimePickerBody;
|
|
5737
|
+
exports.TimePickerComponent = TimePickerComponent;
|
|
5732
5738
|
exports.Tooltip = Tooltip;
|
|
5733
5739
|
exports.VerticalTabButton = VerticalTabButton;
|
|
5734
5740
|
exports.VirtualList = VirtualList;
|