intelicoreact 1.3.97 → 1.3.99
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.
|
@@ -85,7 +85,8 @@ const DropdownLiveSearch = _ref => {
|
|
|
85
85
|
});
|
|
86
86
|
if (!options) return null;
|
|
87
87
|
const handleClickOutside = event => {
|
|
88
|
-
|
|
88
|
+
var _getListContainer;
|
|
89
|
+
if (!dropdownLiveSearchRef.current.contains(event.target) && (!getListContainer() || !((_getListContainer = getListContainer()) !== null && _getListContainer !== void 0 && _getListContainer.contains(event.target)))) setIsOpen(false);
|
|
89
90
|
};
|
|
90
91
|
const highlightedText = (text, postfix) => {
|
|
91
92
|
if (!isSearchable) return text;else {
|
|
@@ -200,8 +201,8 @@ const DropdownLiveSearch = _ref => {
|
|
|
200
201
|
});
|
|
201
202
|
}
|
|
202
203
|
try {
|
|
203
|
-
var
|
|
204
|
-
(
|
|
204
|
+
var _getListContainer2;
|
|
205
|
+
(_getListContainer2 = getListContainer()) === null || _getListContainer2 === void 0 || _getListContainer2.remove();
|
|
205
206
|
} finally {
|
|
206
207
|
if (isMobile) {
|
|
207
208
|
var _getParentNode;
|
|
@@ -330,7 +331,7 @@ const DropdownLiveSearch = _ref => {
|
|
|
330
331
|
}, [isOpen, dropdownListRef]);
|
|
331
332
|
const closeList = isOpen ? handleClickOutside : () => {};
|
|
332
333
|
(0, _react.useLayoutEffect)(() => {
|
|
333
|
-
var
|
|
334
|
+
var _getListContainer3;
|
|
334
335
|
if (!isMobile) {
|
|
335
336
|
window.addEventListener("mousewheel", closeList);
|
|
336
337
|
window.addEventListener("scroll", closeList);
|
|
@@ -340,13 +341,13 @@ const DropdownLiveSearch = _ref => {
|
|
|
340
341
|
window.removeEventListener("scroll", closeList);
|
|
341
342
|
window.removeEventListener("touchmove", closeList);
|
|
342
343
|
}
|
|
343
|
-
(
|
|
344
|
+
(_getListContainer3 = getListContainer()) === null || _getListContainer3 === void 0 || _getListContainer3.addEventListener("click", closeList);
|
|
344
345
|
return () => {
|
|
345
|
-
var
|
|
346
|
+
var _getListContainer4;
|
|
346
347
|
window.removeEventListener("mousewheel", closeList);
|
|
347
348
|
window.removeEventListener("scroll", closeList);
|
|
348
349
|
window.removeEventListener("touchmove", closeList);
|
|
349
|
-
(
|
|
350
|
+
(_getListContainer4 = getListContainer()) === null || _getListContainer4 === void 0 || _getListContainer4.removeEventListener("click", closeList);
|
|
350
351
|
};
|
|
351
352
|
}, [getListContainer]);
|
|
352
353
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -13,6 +13,9 @@ const Label = _ref => {
|
|
|
13
13
|
let {
|
|
14
14
|
className = "",
|
|
15
15
|
label,
|
|
16
|
+
note = {
|
|
17
|
+
note
|
|
18
|
+
},
|
|
16
19
|
hint,
|
|
17
20
|
isRequired,
|
|
18
21
|
isLabelBolt,
|
|
@@ -30,7 +33,9 @@ const Label = _ref => {
|
|
|
30
33
|
}, className)
|
|
31
34
|
}, label, isRequired && /*#__PURE__*/_react.default.createElement("span", {
|
|
32
35
|
className: "label_isRequired"
|
|
33
|
-
}, "*"),
|
|
36
|
+
}, "*"), note && /*#__PURE__*/_react.default.createElement("span", {
|
|
37
|
+
className: "label_note"
|
|
38
|
+
}, note), hint && /*#__PURE__*/_react.default.createElement(_Hint.default, {
|
|
34
39
|
isAccessability: isAccessabilityHint,
|
|
35
40
|
hint: hint.text,
|
|
36
41
|
icon: hint.icon,
|
|
@@ -23,7 +23,8 @@ const FormElement = _ref => {
|
|
|
23
23
|
isLabelBolt,
|
|
24
24
|
isNoLabel,
|
|
25
25
|
alert,
|
|
26
|
-
onClickHintCallback
|
|
26
|
+
onClickHintCallback,
|
|
27
|
+
note
|
|
27
28
|
} = _ref;
|
|
28
29
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
29
30
|
className: (0, _classnames.default)(className, RC)
|
|
@@ -31,6 +32,7 @@ const FormElement = _ref => {
|
|
|
31
32
|
className: "".concat(RC, "__label"),
|
|
32
33
|
label: label,
|
|
33
34
|
hint: hint,
|
|
35
|
+
note: note,
|
|
34
36
|
isRequired: required,
|
|
35
37
|
isLabelBolt: isLabelBolt,
|
|
36
38
|
onClickHintCallback: onClickHintCallback
|