intelicoreact 0.3.70 → 0.3.72
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.
|
@@ -60,7 +60,9 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
60
60
|
isNotValidateASCII = _ref$isNotValidateASC === void 0 ? false : _ref$isNotValidateASC,
|
|
61
61
|
testId = _ref.testId,
|
|
62
62
|
fieldKey = _ref.fieldKey,
|
|
63
|
-
id = _ref.id
|
|
63
|
+
id = _ref.id,
|
|
64
|
+
_ref$noOptionsText = _ref.noOptionsText,
|
|
65
|
+
noOptionsText = _ref$noOptionsText === void 0 ? 'No options available' : _ref$noOptionsText;
|
|
64
66
|
var dropdownId = fieldKey || id;
|
|
65
67
|
|
|
66
68
|
var _useState = (0, _react.useState)(false),
|
|
@@ -303,7 +305,9 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
303
305
|
var _filteredOption$items2;
|
|
304
306
|
|
|
305
307
|
return (_filteredOption$items2 = filteredOption.items) !== null && _filteredOption$items2 !== void 0 && _filteredOption$items2.length ? filteredOptionList(filteredOption) : getMarkupForElement(filteredOption);
|
|
306
|
-
}),
|
|
308
|
+
}), !filteredItems.length && !filteredGroups.length && /*#__PURE__*/_react.default.createElement("div", {
|
|
309
|
+
className: "".concat(RC, "__list-item ").concat(RC, "__list-item--no-options")
|
|
310
|
+
}, noOptionsText), disabled && isOpen && /*#__PURE__*/_react.default.createElement(_DropdownLoader.default, null));
|
|
307
311
|
};
|
|
308
312
|
|
|
309
313
|
var closeList = handleClickOutside;
|
|
@@ -380,8 +384,10 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
380
384
|
},
|
|
381
385
|
placeholder: placeholder,
|
|
382
386
|
onFocus: function onFocus(e) {
|
|
383
|
-
e.target.select();
|
|
384
|
-
|
|
387
|
+
e.target.select(); // setIsOpen(true);
|
|
388
|
+
},
|
|
389
|
+
onClick: function onClick() {
|
|
390
|
+
return setIsOpen(!isOpen);
|
|
385
391
|
}
|
|
386
392
|
}) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("span", {
|
|
387
393
|
className: "text"
|
|
@@ -333,7 +333,8 @@ var TagsDropdown = function TagsDropdown(_ref) {
|
|
|
333
333
|
label: label,
|
|
334
334
|
removeItem: tag !== null && tag !== void 0 && tag.isFreezed ? null : function () {
|
|
335
335
|
return deleteChosen(value);
|
|
336
|
-
}
|
|
336
|
+
},
|
|
337
|
+
isNoDismiss: false
|
|
337
338
|
});
|
|
338
339
|
}), chosenOptions.length === 0 || !noTagsWrap ? /*#__PURE__*/_react.default.createElement("input", {
|
|
339
340
|
ref: inputRef,
|