tenjin-ui-kit 0.3.73 → 0.3.74
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/README.md +13 -13
- package/common/hooks/apiHooks.js +199 -91
- package/common/hooks/newApiHook.js +258 -127
- package/common/utils/security/index.js +2 -2
- package/common/utils/security/securityConfig.js +2 -1
- package/components/Canvas.js +101 -172
- package/components/DragBox/index.js +31 -21
- package/components/InputWithChip/index.js +83 -178
- package/components/RightContext/index.css +20 -20
- package/components/RightContext/index.js +41 -17
- package/components/WorkFlow.js +29 -19
- package/components/WorkFlowBuilder.js +56 -32
- package/components/alert/Style.js +14 -11
- package/components/alert/index.js +14 -8
- package/components/attachment/index.js +31 -26
- package/components/authenticationProvider/AuthError.js +4 -3
- package/components/authenticationProvider/AuthLoader.js +4 -3
- package/components/authenticationProvider/index.js +130 -58
- package/components/avatar/index.js +23 -24
- package/components/avatar/styles.js +77 -76
- package/components/breadCrumbs/index.js +89 -64
- package/components/breadCrumbs/style.js +4 -1
- package/components/browsingTestCaseLayout/DetailsViewLayout/DetailsViewContent/index.js +6 -7
- package/components/browsingTestCaseLayout/DetailsViewLayout/DetailsViewContent/style.js +8 -5
- package/components/browsingTestCaseLayout/DetailsViewLayout/DetailsViewHeader/index.js +6 -7
- package/components/browsingTestCaseLayout/TreeViewLayout/TreeViewContent/Index.js +7 -8
- package/components/browsingTestCaseLayout/TreeViewLayout/TreeViewHeader/Index.js +7 -8
- package/components/browsingTestCaseLayout/TreeViewLayout/TreeViewHeader/style.js +19 -16
- package/components/browsingTestCaseLayout/index.js +46 -30
- package/components/browsingTestCaseLayout/style.css +82 -82
- package/components/button/index.js +58 -47
- package/components/chatBotModal/index.js +61 -40
- package/components/checkBox/index.js +10 -8
- package/components/combobox/index.js +216 -182
- package/components/divider/index.js +18 -9
- package/components/editableField/index.js +46 -19
- package/components/error/index.js +12 -6
- package/components/errorBoundary/index.js +98 -74
- package/components/fileUploader/index.js +58 -46
- package/components/fileUploader/style.js +49 -46
- package/components/filter/ValueSelector.js +243 -148
- package/components/filter/index.js +66 -43
- package/components/iconButton/index.js +4 -3
- package/components/input/index.js +74 -60
- package/components/layout/index.js +49 -36
- package/components/layout/main/index.js +14 -13
- package/components/layout/main/style.js +14 -11
- package/components/layout/pageContent/index.js +7 -8
- package/components/layout/sidebar/FlatMenu.js +47 -51
- package/components/layout/sidebar/GroupedIconMenu.js +194 -169
- package/components/layout/sidebar/GroupedMenu.js +50 -45
- package/components/layout/sidebar/ProjectMenu.js +185 -165
- package/components/layout/sidebar/index.js +26 -27
- package/components/layout/sidebar/style.js +143 -138
- package/components/layout/topBar/ProjectTopbar.js +119 -86
- package/components/layout/topBar/UserAvatar.js +65 -51
- package/components/layout/topBar/index.js +41 -23
- package/components/loader/index.js +12 -9
- package/components/menu/index.js +42 -23
- package/components/modal/Modal.js +6 -5
- package/components/modal/index.js +20 -16
- package/components/modal/style.js +56 -53
- package/components/optionMenu/index.js +72 -57
- package/components/pagination/index.js +43 -23
- package/components/pagination/style.js +28 -25
- package/components/paginationUpdated/index.js +26 -19
- package/components/paper/index.js +22 -20
- package/components/paper/style.js +27 -24
- package/components/reactSelect/index.js +97 -64
- package/components/reactSelect/style.js +151 -131
- package/components/richTextEditor/index.js +48 -24
- package/components/select/GroupedSelect.js +100 -56
- package/components/select/SimpleSelect.js +99 -59
- package/components/select/index.js +69 -56
- package/components/simpleSelect/index.js +22 -18
- package/components/sort/index.js +36 -23
- package/components/switch/index.js +15 -14
- package/components/switch/style.js +32 -29
- package/components/switch/switch.js +47 -30
- package/components/table/ReactTable.js +83 -59
- package/components/table/SimpleTable.js +91 -67
- package/components/table/index.js +206 -300
- package/components/text/index.js +30 -22
- package/components/timeStamp/index.js +6 -4
- package/components/timeStamp/style.js +15 -12
- package/components/topBar/index.js +102 -86
- package/components/tree/index.js +58 -30
- package/components/tree/style.js +23 -20
- package/components/valuePicker/ValueSelector.js +160 -78
- package/components/valuePicker/index.js +50 -30
- package/components/wrapperLayout/layout/index.js +7 -8
- package/components/wrapperLayout/main/index.js +7 -8
- package/components/wrapperLayout/main/pageContainer/index.js +5 -6
- package/components/wrapperLayout/main/sideBar/index.js +175 -171
- package/components/wrapperLayout/main/sideBar/style.js +183 -177
- package/components/wrapperLayout/topBar/UserAvatar.js +5 -6
- package/components/wrapperLayout/topBar/avatar.js +18 -15
- package/components/wrapperLayout/topBar/index.js +107 -115
- package/components/wrapperLayout/topBar/menuIcon.js +5 -6
- package/components/wrapperLayout/topBar/style.js +64 -63
- package/http/index.js +188 -92
- package/index.js +55 -53
- package/package.json +124 -125
- package/templates/listPage/index.js +196 -168
- package/themes/default.js +7 -5
- package/themes/defaultSmall.js +3 -2
- package/themes/responsiveTheme.js +8 -6
|
@@ -1,20 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.default = void 0;
|
|
7
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
9
|
var _rte = require("@mantine/rte");
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
var _excluded = ["controls", "readOnly"];
|
|
11
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
12
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
14
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
15
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
16
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
17
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
18
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
19
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
20
|
+
var RichTextEditorTest = function RichTextEditorTest(_ref) {
|
|
21
|
+
var _ref$controls = _ref.controls,
|
|
22
|
+
controls = _ref$controls === void 0 ? {} : _ref$controls,
|
|
23
|
+
_ref$readOnly = _ref.readOnly,
|
|
24
|
+
readOnly = _ref$readOnly === void 0 ? false : _ref$readOnly,
|
|
25
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
16
26
|
// By default everything is enabled
|
|
17
|
-
|
|
27
|
+
var defaultControls = {
|
|
18
28
|
bold: true,
|
|
19
29
|
italic: true,
|
|
20
30
|
underline: true,
|
|
@@ -29,25 +39,38 @@ const RichTextEditorTest = _ref => {
|
|
|
29
39
|
alignCenter: true,
|
|
30
40
|
alignRight: true
|
|
31
41
|
};
|
|
32
|
-
|
|
42
|
+
var editorControls = (0, _react.useMemo)(function () {
|
|
33
43
|
if (readOnly) {
|
|
34
44
|
return [];
|
|
35
45
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
|
|
46
|
+
var finalControls = _objectSpread(_objectSpread({}, defaultControls), controls);
|
|
47
|
+
return [["bold", "italic", "underline"].filter(function (c) {
|
|
48
|
+
return finalControls[c];
|
|
49
|
+
}), ["link", "image"].filter(function (c) {
|
|
50
|
+
return finalControls[c];
|
|
51
|
+
}), ["unorderedList", "orderedList"].filter(function (c) {
|
|
52
|
+
return finalControls[c];
|
|
53
|
+
}), ["h1", "h2", "h3"].filter(function (c) {
|
|
54
|
+
return finalControls[c];
|
|
55
|
+
}), ["alignLeft", "alignCenter", "alignRight"].filter(function (c) {
|
|
56
|
+
return finalControls[c];
|
|
57
|
+
})].filter(function (group) {
|
|
58
|
+
return group.length > 0;
|
|
59
|
+
});
|
|
41
60
|
}, [controls, readOnly]);
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
61
|
+
var mentions = (0, _react.useMemo)(function () {
|
|
62
|
+
return {
|
|
63
|
+
allowedChars: /^[A-Za-z\sÅÄÖåäö]*$/,
|
|
64
|
+
mentionDenotationChars: ["@"],
|
|
65
|
+
source: function source(searchTerm, renderList, mentionChar) {
|
|
66
|
+
var list = mentionChar === "@" ? props.data : "";
|
|
67
|
+
var includesSearchTerm = list.filter(function (item) {
|
|
68
|
+
return item.value.toLowerCase().includes(searchTerm && searchTerm.toLowerCase());
|
|
69
|
+
});
|
|
70
|
+
renderList(includesSearchTerm);
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
}, [props.data]);
|
|
51
74
|
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_rte.RichTextEditor, {
|
|
52
75
|
controls: editorControls,
|
|
53
76
|
value: props.value,
|
|
@@ -56,4 +79,5 @@ const RichTextEditorTest = _ref => {
|
|
|
56
79
|
readOnly: readOnly
|
|
57
80
|
}));
|
|
58
81
|
};
|
|
59
|
-
var _default =
|
|
82
|
+
var _default = RichTextEditorTest;
|
|
83
|
+
exports.default = _default;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
@@ -9,27 +10,49 @@ var _FormControl = _interopRequireDefault(require("@mui/material/FormControl"));
|
|
|
9
10
|
var _fa = require("react-icons/fa");
|
|
10
11
|
var _reactDom = require("react-dom");
|
|
11
12
|
var _text = _interopRequireDefault(require("../text"));
|
|
12
|
-
|
|
13
|
-
function
|
|
14
|
-
function
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
13
|
+
var _excluded = ["options", "onChange", "value", "defaultValue", "fullWidth"];
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
16
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
18
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
19
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
20
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
21
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
22
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
23
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
24
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
25
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
26
|
+
var GroupedSelect = function GroupedSelect(_ref) {
|
|
27
|
+
var _options$find, _triggerRef$current2, _triggerRef$current3, _triggerRef$current4;
|
|
28
|
+
var _ref$options = _ref.options,
|
|
29
|
+
options = _ref$options === void 0 ? [] : _ref$options,
|
|
30
|
+
onChange = _ref.onChange,
|
|
31
|
+
propValue = _ref.value,
|
|
32
|
+
defaultValue = _ref.defaultValue,
|
|
33
|
+
fullWidth = _ref.fullWidth,
|
|
34
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
35
|
+
var triggerRef = React.useRef(null);
|
|
36
|
+
var dropdownRef = React.useRef(null);
|
|
37
|
+
var _React$useState = React.useState(""),
|
|
38
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
39
|
+
searchTerm = _React$useState2[0],
|
|
40
|
+
setSearchTerm = _React$useState2[1];
|
|
41
|
+
var _React$useState3 = React.useState(false),
|
|
42
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
43
|
+
isDropdownOpen = _React$useState4[0],
|
|
44
|
+
setIsDropdownOpen = _React$useState4[1];
|
|
45
|
+
var _React$useState5 = React.useState(propValue !== null && propValue !== void 0 ? propValue : defaultValue),
|
|
46
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
47
|
+
value = _React$useState6[0],
|
|
48
|
+
setValue = _React$useState6[1];
|
|
49
|
+
var _React$useState7 = React.useState(null),
|
|
50
|
+
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
51
|
+
hoveredOption = _React$useState8[0],
|
|
52
|
+
setHoveredOption = _React$useState8[1];
|
|
53
|
+
var groupOptionsByPageTitle = React.useCallback(function (options) {
|
|
54
|
+
return options.reduce(function (grouped, option) {
|
|
55
|
+
var pageTitle = option === null || option === void 0 ? void 0 : option.pageTitle;
|
|
33
56
|
if (!grouped[pageTitle]) {
|
|
34
57
|
grouped[pageTitle] = [];
|
|
35
58
|
}
|
|
@@ -37,54 +60,62 @@ const GroupedSelect = _ref => {
|
|
|
37
60
|
return grouped;
|
|
38
61
|
}, {});
|
|
39
62
|
}, []);
|
|
40
|
-
|
|
63
|
+
var handleSearchChange = function handleSearchChange(event) {
|
|
41
64
|
setSearchTerm(event.target.value);
|
|
42
65
|
};
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
return options.filter(
|
|
66
|
+
var filteredOptions = React.useMemo(function () {
|
|
67
|
+
var search = searchTerm.toLowerCase();
|
|
68
|
+
return options.filter(function (option) {
|
|
69
|
+
var _option$label, _option$pageTitle;
|
|
70
|
+
return (option === null || option === void 0 ? void 0 : (_option$label = option.label) === null || _option$label === void 0 ? void 0 : _option$label.toLowerCase().includes(search)) || (option === null || option === void 0 ? void 0 : (_option$pageTitle = option.pageTitle) === null || _option$pageTitle === void 0 ? void 0 : _option$pageTitle.toLowerCase().includes(search));
|
|
71
|
+
});
|
|
46
72
|
}, [options, searchTerm]);
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
73
|
+
var groupedOptions = React.useMemo(function () {
|
|
74
|
+
return groupOptionsByPageTitle(filteredOptions);
|
|
75
|
+
}, [filteredOptions, groupOptionsByPageTitle]);
|
|
76
|
+
var toggleDropdown = function toggleDropdown() {
|
|
77
|
+
setIsDropdownOpen(function (prev) {
|
|
78
|
+
return !prev;
|
|
79
|
+
});
|
|
50
80
|
};
|
|
51
|
-
|
|
81
|
+
var handleOptionClick = function handleOptionClick(selectedValue) {
|
|
52
82
|
setValue(selectedValue);
|
|
53
83
|
setIsDropdownOpen(false);
|
|
54
84
|
setSearchTerm("");
|
|
55
|
-
onChange
|
|
85
|
+
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
56
86
|
target: {
|
|
57
87
|
value: selectedValue
|
|
58
88
|
}
|
|
59
89
|
});
|
|
60
90
|
};
|
|
61
|
-
|
|
91
|
+
var handleCloseDropdown = function handleCloseDropdown() {
|
|
62
92
|
setIsDropdownOpen(false);
|
|
63
93
|
};
|
|
64
94
|
|
|
65
95
|
// Keep internal value in sync if component is used as a controlled component
|
|
66
|
-
React.useEffect(()
|
|
96
|
+
React.useEffect(function () {
|
|
67
97
|
if (propValue !== undefined) {
|
|
68
98
|
setValue(propValue);
|
|
69
99
|
}
|
|
70
100
|
}, [propValue]);
|
|
71
101
|
|
|
72
102
|
// Close dropdown when clicking outside
|
|
73
|
-
React.useEffect(()
|
|
103
|
+
React.useEffect(function () {
|
|
74
104
|
if (!isDropdownOpen) {
|
|
75
105
|
return;
|
|
76
106
|
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
107
|
+
var handleOutsideClick = function handleOutsideClick(event) {
|
|
108
|
+
var _triggerRef$current, _dropdownRef$current;
|
|
109
|
+
var target = event.target;
|
|
110
|
+
var clickedInsideTrigger = (_triggerRef$current = triggerRef.current) === null || _triggerRef$current === void 0 ? void 0 : _triggerRef$current.contains(target);
|
|
111
|
+
var clickedInsideDropdown = (_dropdownRef$current = dropdownRef.current) === null || _dropdownRef$current === void 0 ? void 0 : _dropdownRef$current.contains(target);
|
|
81
112
|
if (clickedInsideTrigger || clickedInsideDropdown) {
|
|
82
113
|
return;
|
|
83
114
|
}
|
|
84
115
|
handleCloseDropdown();
|
|
85
116
|
};
|
|
86
117
|
document.addEventListener("mousedown", handleOutsideClick);
|
|
87
|
-
return ()
|
|
118
|
+
return function () {
|
|
88
119
|
document.removeEventListener("mousedown", handleOutsideClick);
|
|
89
120
|
};
|
|
90
121
|
}, [isDropdownOpen]);
|
|
@@ -113,13 +144,15 @@ const GroupedSelect = _ref => {
|
|
|
113
144
|
style: {
|
|
114
145
|
flexGrow: 1
|
|
115
146
|
}
|
|
116
|
-
}, value ? options
|
|
147
|
+
}, value ? options === null || options === void 0 ? void 0 : (_options$find = options.find(function (option) {
|
|
148
|
+
return (option === null || option === void 0 ? void 0 : option.id) === value;
|
|
149
|
+
})) === null || _options$find === void 0 ? void 0 : _options$find.label : "Select Option"), /*#__PURE__*/React.createElement("div", null, isDropdownOpen ? /*#__PURE__*/React.createElement(_fa.FaCaretUp, null) : /*#__PURE__*/React.createElement(_fa.FaCaretDown, null)))), isDropdownOpen && /*#__PURE__*/(0, _reactDom.createPortal)( /*#__PURE__*/React.createElement("div", {
|
|
117
150
|
ref: dropdownRef,
|
|
118
151
|
style: {
|
|
119
152
|
position: "absolute",
|
|
120
|
-
top:
|
|
121
|
-
left:
|
|
122
|
-
width:
|
|
153
|
+
top: "".concat(((_triggerRef$current2 = triggerRef.current) === null || _triggerRef$current2 === void 0 ? void 0 : _triggerRef$current2.getBoundingClientRect().bottom) + 8, "px"),
|
|
154
|
+
left: "".concat((_triggerRef$current3 = triggerRef.current) === null || _triggerRef$current3 === void 0 ? void 0 : _triggerRef$current3.getBoundingClientRect().left, "px"),
|
|
155
|
+
width: "".concat((_triggerRef$current4 = triggerRef.current) === null || _triggerRef$current4 === void 0 ? void 0 : _triggerRef$current4.offsetWidth, "px"),
|
|
123
156
|
backgroundColor: "#fff",
|
|
124
157
|
border: "1px solid #ccc",
|
|
125
158
|
borderRadius: "4px",
|
|
@@ -149,8 +182,10 @@ const GroupedSelect = _ref => {
|
|
|
149
182
|
borderRadius: "4px",
|
|
150
183
|
boxSizing: "border-box"
|
|
151
184
|
}
|
|
152
|
-
}), Object.entries(groupedOptions).map(_ref2
|
|
153
|
-
|
|
185
|
+
}), Object.entries(groupedOptions).map(function (_ref2) {
|
|
186
|
+
var _ref3 = _slicedToArray(_ref2, 2),
|
|
187
|
+
pageTitle = _ref3[0],
|
|
188
|
+
groupedPageOptions = _ref3[1];
|
|
154
189
|
return /*#__PURE__*/React.createElement("div", {
|
|
155
190
|
key: pageTitle
|
|
156
191
|
}, /*#__PURE__*/React.createElement(_text.default, {
|
|
@@ -158,17 +193,25 @@ const GroupedSelect = _ref => {
|
|
|
158
193
|
padding: "5px 10px"
|
|
159
194
|
},
|
|
160
195
|
semibold: true
|
|
161
|
-
}, pageTitle || "N/A"), groupedPageOptions.map(
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
196
|
+
}, pageTitle || "N/A"), groupedPageOptions.map(function (option) {
|
|
197
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
198
|
+
key: option === null || option === void 0 ? void 0 : option.id,
|
|
199
|
+
onClick: function onClick() {
|
|
200
|
+
return handleOptionClick(option.id);
|
|
201
|
+
},
|
|
202
|
+
onMouseEnter: function onMouseEnter() {
|
|
203
|
+
return setHoveredOption(option.id);
|
|
204
|
+
},
|
|
205
|
+
onMouseLeave: function onMouseLeave() {
|
|
206
|
+
return setHoveredOption(null);
|
|
207
|
+
},
|
|
208
|
+
style: {
|
|
209
|
+
padding: "8px 24px",
|
|
210
|
+
cursor: "pointer",
|
|
211
|
+
backgroundColor: value === (option === null || option === void 0 ? void 0 : option.id) ? "#f0f0f7" : hoveredOption === (option === null || option === void 0 ? void 0 : option.id) ? "#f5f5f5" : "transparent"
|
|
212
|
+
}
|
|
213
|
+
}, option === null || option === void 0 ? void 0 : option.label);
|
|
214
|
+
}));
|
|
172
215
|
}), Object.keys(groupedOptions).length === 0 && /*#__PURE__*/React.createElement("div", {
|
|
173
216
|
style: {
|
|
174
217
|
padding: "10px",
|
|
@@ -177,4 +220,5 @@ const GroupedSelect = _ref => {
|
|
|
177
220
|
}
|
|
178
221
|
}, "No options found"))), document.body));
|
|
179
222
|
};
|
|
180
|
-
var _default =
|
|
223
|
+
var _default = GroupedSelect;
|
|
224
|
+
exports.default = _default;
|
|
@@ -7,90 +7,123 @@ exports.default = void 0;
|
|
|
7
7
|
var _material = require("@mui/material");
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _text = _interopRequireDefault(require("../text"));
|
|
10
|
-
|
|
11
|
-
function
|
|
12
|
-
function
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
10
|
+
var _excluded = ["options", "errorMessage", "error", "fullWidth", "isDisabled", "label", "isRequired", "helperText", "isSearch", "isClearOption", "loading", "isSort", "placeholder"];
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
14
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
15
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
16
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
17
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
18
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
19
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
20
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
21
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
22
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
23
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
24
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
25
|
+
var SimpleSelect = function SimpleSelect(_ref) {
|
|
26
|
+
var _isSort, _isSearch, _isClearOption;
|
|
27
|
+
var options = _ref.options,
|
|
28
|
+
errorMessage = _ref.errorMessage,
|
|
29
|
+
error = _ref.error,
|
|
30
|
+
fullWidth = _ref.fullWidth,
|
|
31
|
+
isDisabled = _ref.isDisabled,
|
|
32
|
+
label = _ref.label,
|
|
33
|
+
isRequired = _ref.isRequired,
|
|
34
|
+
helperText = _ref.helperText,
|
|
35
|
+
isSearch = _ref.isSearch,
|
|
36
|
+
isClearOption = _ref.isClearOption,
|
|
37
|
+
loading = _ref.loading,
|
|
38
|
+
isSort = _ref.isSort,
|
|
39
|
+
placeholder = _ref.placeholder,
|
|
40
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
41
|
+
isSort = (_isSort = isSort) !== null && _isSort !== void 0 ? _isSort : true; //by default true
|
|
42
|
+
isSearch = (_isSearch = isSearch) !== null && _isSearch !== void 0 ? _isSearch : true; //by default true
|
|
43
|
+
isClearOption = (_isClearOption = isClearOption) !== null && _isClearOption !== void 0 ? _isClearOption : true; //by default true
|
|
34
44
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
45
|
+
var _useState = (0, _react.useState)(""),
|
|
46
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
47
|
+
searchText = _useState2[0],
|
|
48
|
+
setSearchText = _useState2[1];
|
|
49
|
+
var _useState3 = (0, _react.useState)(false),
|
|
50
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
51
|
+
noDataAvailable = _useState4[0],
|
|
52
|
+
setNoDataAvailable = _useState4[1];
|
|
53
|
+
var validateChildren = function validateChildren(type, searchText) {
|
|
54
|
+
if (_typeof(type) !== "object") {
|
|
39
55
|
return typeof type === "string" && type.toLowerCase().indexOf(searchText.toLowerCase()) > -1;
|
|
40
56
|
}
|
|
41
|
-
if (
|
|
42
|
-
return type.props.children.some(
|
|
57
|
+
if (_typeof(type.props) === "object" && Array.isArray(type.props.children)) {
|
|
58
|
+
return type.props.children.some(function (data) {
|
|
59
|
+
return validateChildren(data, searchText);
|
|
60
|
+
});
|
|
43
61
|
}
|
|
44
62
|
return false;
|
|
45
63
|
};
|
|
46
|
-
|
|
64
|
+
var containsText = function containsText(text, searchText) {
|
|
47
65
|
if (typeof text === "string" && typeof searchText === "string") {
|
|
48
66
|
return text.toLowerCase().indexOf(searchText.toLowerCase()) > -1;
|
|
49
67
|
}
|
|
50
|
-
if (
|
|
51
|
-
return text.props.children.some(
|
|
68
|
+
if (_typeof(text) === "object" && text.props && Array.isArray(text.props.children)) {
|
|
69
|
+
return text.props.children.some(function (data) {
|
|
70
|
+
return validateChildren(data, searchText);
|
|
71
|
+
});
|
|
52
72
|
}
|
|
53
73
|
return false;
|
|
54
74
|
};
|
|
55
|
-
|
|
56
|
-
|
|
75
|
+
var displayedOptions = (0, _react.useMemo)(function () {
|
|
76
|
+
var filteredOptions = options === null || options === void 0 ? void 0 : options.filter(function (option) {
|
|
77
|
+
return containsText(option === null || option === void 0 ? void 0 : option.label, searchText);
|
|
78
|
+
});
|
|
57
79
|
if (isSearch) {
|
|
58
|
-
setNoDataAvailable(filteredOptions
|
|
80
|
+
setNoDataAvailable((filteredOptions === null || filteredOptions === void 0 ? void 0 : filteredOptions.length) === 0);
|
|
59
81
|
}
|
|
60
82
|
|
|
61
83
|
// const sortedOptions = filteredOptions?.sort((a, b) =>
|
|
62
84
|
// a?.label?.localeCompare(b.label)
|
|
63
85
|
// );
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
86
|
+
var sortedOptions = filteredOptions === null || filteredOptions === void 0 ? void 0 : filteredOptions.slice().sort(function (a, b) {
|
|
87
|
+
var labelA = typeof a.label === "string" ? a.label : findStringInChildren(a.label.props.children);
|
|
88
|
+
var labelB = typeof b.label === "string" ? b.label : findStringInChildren(b.label.props.children);
|
|
67
89
|
return labelA.localeCompare(labelB);
|
|
68
90
|
});
|
|
69
91
|
function findStringInChildren(children) {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
92
|
+
var _iterator = _createForOfIteratorHelper(children),
|
|
93
|
+
_step;
|
|
94
|
+
try {
|
|
95
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
96
|
+
var child = _step.value;
|
|
97
|
+
if (typeof child === "string") {
|
|
98
|
+
return child;
|
|
99
|
+
} else if (child.props && typeof child.props.children === "string") {
|
|
100
|
+
return child.props.children;
|
|
101
|
+
}
|
|
75
102
|
}
|
|
103
|
+
} catch (err) {
|
|
104
|
+
_iterator.e(err);
|
|
105
|
+
} finally {
|
|
106
|
+
_iterator.f();
|
|
76
107
|
}
|
|
77
108
|
return "";
|
|
78
109
|
}
|
|
79
|
-
return (isSort ? sortedOptions : filteredOptions).map(option
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
110
|
+
return (isSort ? sortedOptions : filteredOptions).map(function (option) {
|
|
111
|
+
return {
|
|
112
|
+
label: option === null || option === void 0 ? void 0 : option.label,
|
|
113
|
+
value: option === null || option === void 0 ? void 0 : option.value
|
|
114
|
+
};
|
|
115
|
+
});
|
|
83
116
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
84
117
|
}, [options, searchText, isSearch]);
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
118
|
+
var recommendedOptions = isSearch ? displayedOptions : options;
|
|
119
|
+
var typingTimer;
|
|
120
|
+
var handleKeyDown = function handleKeyDown(e) {
|
|
88
121
|
clearTimeout(typingTimer);
|
|
89
122
|
if (e.key !== "Escape") {
|
|
90
123
|
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") {
|
|
91
124
|
e.stopPropagation();
|
|
92
125
|
}
|
|
93
|
-
typingTimer = setTimeout(()
|
|
126
|
+
typingTimer = setTimeout(function () {
|
|
94
127
|
clearTimeout(typingTimer);
|
|
95
128
|
}, 500);
|
|
96
129
|
}
|
|
@@ -118,7 +151,9 @@ const SimpleSelect = _ref => {
|
|
|
118
151
|
}
|
|
119
152
|
}, " * ") : "")), /*#__PURE__*/_react.default.createElement(_material.Select, _extends({}, rest, {
|
|
120
153
|
fullWidth: true,
|
|
121
|
-
onClose: ()
|
|
154
|
+
onClose: function onClose() {
|
|
155
|
+
return setSearchText("");
|
|
156
|
+
},
|
|
122
157
|
MenuProps: {
|
|
123
158
|
PaperProps: {
|
|
124
159
|
style: {
|
|
@@ -146,7 +181,9 @@ const SimpleSelect = _ref => {
|
|
|
146
181
|
borderRadius: "4px"
|
|
147
182
|
},
|
|
148
183
|
placeholder: "Type to search...",
|
|
149
|
-
onChange:
|
|
184
|
+
onChange: function onChange(e) {
|
|
185
|
+
return setSearchText(e.target.value);
|
|
186
|
+
},
|
|
150
187
|
onKeyDown: handleKeyDown
|
|
151
188
|
}), isClearOption && !loading && /*#__PURE__*/_react.default.createElement(_material.MenuItem, {
|
|
152
189
|
value: ""
|
|
@@ -164,9 +201,12 @@ const SimpleSelect = _ref => {
|
|
|
164
201
|
}
|
|
165
202
|
}, "Fetching Options...") : noDataAvailable ? /*#__PURE__*/_react.default.createElement(_material.MenuItem, {
|
|
166
203
|
disabled: true
|
|
167
|
-
}, "No Data Available") : recommendedOptions
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
204
|
+
}, "No Data Available") : recommendedOptions === null || recommendedOptions === void 0 ? void 0 : recommendedOptions.map(function (option) {
|
|
205
|
+
return /*#__PURE__*/_react.default.createElement(_material.MenuItem, {
|
|
206
|
+
key: option.value,
|
|
207
|
+
value: option.value
|
|
208
|
+
}, option.label);
|
|
209
|
+
})), error && /*#__PURE__*/_react.default.createElement(_material.FormHelperText, null, errorMessage), helperText && /*#__PURE__*/_react.default.createElement(_material.FormHelperText, null, helperText)));
|
|
171
210
|
};
|
|
172
|
-
var _default =
|
|
211
|
+
var _default = SimpleSelect;
|
|
212
|
+
exports.default = _default;
|