intelicoreact 1.0.1 → 1.0.2
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/dist/Atomic/FormElements/Dropdown/Dropdown.js +3 -1
- package/dist/Atomic/FormElements/TagsDropdown/TagsDropdown.js +3 -1
- package/dist/Atomic/UI/Accordion/AccordionItem.js +1 -1
- package/dist/Atomic/UI/AccordionTable/AccordionTable.js +1 -1
- package/dist/Atomic/UI/Chart/Chart.js +2 -2
- package/dist/Atomic/UI/Hint/Hint.js +3 -1
- package/package.json +1 -1
|
@@ -311,7 +311,9 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
311
311
|
};
|
|
312
312
|
|
|
313
313
|
var closeList = handleClickOutside;
|
|
314
|
-
(0, _react.useEffect)(
|
|
314
|
+
(0, _react.useEffect)(function () {
|
|
315
|
+
initListContainer();
|
|
316
|
+
}, []);
|
|
315
317
|
(0, _react.useLayoutEffect)(function () {
|
|
316
318
|
window.addEventListener('resize', setListContainerStyles);
|
|
317
319
|
window.addEventListener('mousewheel', closeList);
|
|
@@ -259,7 +259,9 @@ var TagsDropdown = function TagsDropdown(_ref) {
|
|
|
259
259
|
}, footerContent) : null);
|
|
260
260
|
};
|
|
261
261
|
|
|
262
|
-
(0, _react.useEffect)(
|
|
262
|
+
(0, _react.useEffect)(function () {
|
|
263
|
+
initListContainer();
|
|
264
|
+
}, []);
|
|
263
265
|
|
|
264
266
|
var closeList = function closeList(e) {
|
|
265
267
|
var _inputRef$current;
|
|
@@ -55,7 +55,7 @@ var AccordionItem = function AccordionItem(_ref) {
|
|
|
55
55
|
};
|
|
56
56
|
|
|
57
57
|
(0, _react.useEffect)(function () {
|
|
58
|
-
|
|
58
|
+
setMaxHeight(isOpen ? getItemsHeight() : 0);
|
|
59
59
|
}, [isOpen]); // https://i.imgur.com/TaScp0h.png
|
|
60
60
|
|
|
61
61
|
var calculateStatusCount = function calculateStatusCount() {
|
|
@@ -149,7 +149,7 @@ var AccordionTable = function AccordionTable(_ref) {
|
|
|
149
149
|
};
|
|
150
150
|
|
|
151
151
|
(0, _react.useEffect)(function () {
|
|
152
|
-
|
|
152
|
+
setAccordions(items);
|
|
153
153
|
}, [items]);
|
|
154
154
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
155
155
|
className: (0, _classnames.default)('accordion-table', className)
|
|
@@ -105,10 +105,10 @@ var Chart = function Chart(_ref) {
|
|
|
105
105
|
}
|
|
106
106
|
}, [notLibraryOptionsOptions]);
|
|
107
107
|
(0, _react.useEffect)(function () {
|
|
108
|
-
|
|
108
|
+
setModel((0, _utils.correctModelKey)(initialModel));
|
|
109
109
|
}, [initialModel]);
|
|
110
110
|
(0, _react.useEffect)(function () {
|
|
111
|
-
|
|
111
|
+
setLocalData((0, _utils.prepareData)(model, (0, _utils2.clone)(data), chartRef.current, addToDatasets));
|
|
112
112
|
}, [model, data]);
|
|
113
113
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
114
114
|
className: (0, _classnames.default)(RC, (0, _defineProperty2.default)({}, "".concat(RC, "_icon-mode"), _Chart.ICON_MODELS.includes(model)), className)
|
|
@@ -109,7 +109,9 @@ var Hint = function Hint(_ref) {
|
|
|
109
109
|
return /*#__PURE__*/(0, _reactDom.createPortal)(getHintMarkUp(), hc);
|
|
110
110
|
};
|
|
111
111
|
|
|
112
|
-
(0, _react.useEffect)(
|
|
112
|
+
(0, _react.useEffect)(function () {
|
|
113
|
+
initHintContainer();
|
|
114
|
+
}, []);
|
|
113
115
|
(0, _react.useEffect)(function () {
|
|
114
116
|
setHintContainerStyles();
|
|
115
117
|
}, [isOpen]);
|