acsi-core 0.1.16 → 0.1.18
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/components/CoreInputCompact/index.d.ts +1 -0
- package/dist/index.css +2 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +26 -7
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +26 -8
- package/dist/index.modern.js.map +1 -1
- package/dist/redux/commons/action.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.css
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const historyCore: import("history").History<unknown>;
|
|
2
|
-
import { setLoading, setAlert, setUser, setMenuCollapse } from "./redux/commons/action";
|
|
2
|
+
import { setLoading, setAlert, setUser, setMenuCollapse, setIsRefetchSidebar } from "./redux/commons/action";
|
|
3
3
|
import { BASE_URL, ACCESS_TOKEN, DATE_TIME_MIN_VALUE } from "./utils/constants";
|
|
4
4
|
import Login from "./containers/Login/views/Login";
|
|
5
5
|
import store from "./store";
|
|
@@ -19,4 +19,4 @@ import CustomSelect from "./components/Selects/CustomSelect";
|
|
|
19
19
|
import CustomAsyncSelect from "./components/Selects/CustomAsyncSelect";
|
|
20
20
|
import CustomCreatable from "./components/Selects/CustomCreatable";
|
|
21
21
|
import CustomSelectOption from "./components/Selects/CustomSelectOption";
|
|
22
|
-
export { setLoading, BASE_URL, ACCESS_TOKEN, DATE_TIME_MIN_VALUE, Login, store, historyCore, setAlert, setUser, setMenuCollapse, Loading, NotFound, LayoutContext, api, apiUpload, ConfirmDialog, CommonDialog, ToastContainer, toast, Role, CustomPagination, useGoogleSignOut, CoreButton, CoreInput, CoreSelect, CoreCheckbox, CoreRadio, CoreError, CoreModal, CoreRange, CoreTextArea, CoreSearch, CoreSelectCompact, CoreInputCompact, CoreTitleInput, getErrorMessage, CustomSelect, CustomAsyncSelect, CustomCreatable, CustomSelectOption };
|
|
22
|
+
export { setLoading, BASE_URL, ACCESS_TOKEN, DATE_TIME_MIN_VALUE, Login, store, historyCore, setAlert, setUser, setMenuCollapse, setIsRefetchSidebar, Loading, NotFound, LayoutContext, api, apiUpload, ConfirmDialog, CommonDialog, ToastContainer, toast, Role, CustomPagination, useGoogleSignOut, CoreButton, CoreInput, CoreSelect, CoreCheckbox, CoreRadio, CoreError, CoreModal, CoreRange, CoreTextArea, CoreSearch, CoreSelectCompact, CoreInputCompact, CoreTitleInput, getErrorMessage, CustomSelect, CustomAsyncSelect, CustomCreatable, CustomSelectOption };
|
package/dist/index.js
CHANGED
|
@@ -25,6 +25,7 @@ var setUser = toolkit.createAction("common/setUser");
|
|
|
25
25
|
var setLanguage = toolkit.createAction("common/setLanguage");
|
|
26
26
|
var reset = toolkit.createAction("common/reset");
|
|
27
27
|
var setMenuCollapse = toolkit.createAction("common/setMenuCollapse");
|
|
28
|
+
var setIsRefetchSidebar = toolkit.createAction("common/setIsRefetchSidebar");
|
|
28
29
|
|
|
29
30
|
var GOOGLE_RECAPTCHA_KEY = process.env.REACT_APP_GOOGLE_RECAPTCHA_KEY || "";
|
|
30
31
|
var GOOGLE_CLIENT_ID = process.env.REACT_APP_GOOGLE_CLIENT_ID || "";
|
|
@@ -560,7 +561,8 @@ var initialState = {
|
|
|
560
561
|
},
|
|
561
562
|
user: null,
|
|
562
563
|
academy: null,
|
|
563
|
-
menuCollapse: false
|
|
564
|
+
menuCollapse: false,
|
|
565
|
+
isRefetchSidebar: false
|
|
564
566
|
};
|
|
565
567
|
var commonReducer = toolkit.createReducer(initialState, function (builder) {
|
|
566
568
|
builder.addCase(setLoading, function (state, action) {
|
|
@@ -575,6 +577,8 @@ var commonReducer = toolkit.createReducer(initialState, function (builder) {
|
|
|
575
577
|
return initialState;
|
|
576
578
|
}).addCase(setMenuCollapse, function (state, action) {
|
|
577
579
|
state.menuCollapse = action.payload;
|
|
580
|
+
}).addCase(setIsRefetchSidebar, function (state) {
|
|
581
|
+
state.isRefetchSidebar = !state.isRefetchSidebar;
|
|
578
582
|
});
|
|
579
583
|
});
|
|
580
584
|
|
|
@@ -1454,8 +1458,8 @@ var Close = function Close(props) {
|
|
|
1454
1458
|
|
|
1455
1459
|
var Info = function Info() {
|
|
1456
1460
|
return React__default.createElement("svg", {
|
|
1457
|
-
width: "
|
|
1458
|
-
height: "
|
|
1461
|
+
width: "16",
|
|
1462
|
+
height: "16",
|
|
1459
1463
|
viewBox: "0 0 12 12",
|
|
1460
1464
|
fill: "none",
|
|
1461
1465
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -1773,7 +1777,7 @@ var CoreSelectCompact = function CoreSelectCompact(props) {
|
|
|
1773
1777
|
}));
|
|
1774
1778
|
};
|
|
1775
1779
|
|
|
1776
|
-
var styles$b = {"core-input-compact":"_1qmXW","label":"_1argp"};
|
|
1780
|
+
var styles$b = {"core-input-compact":"_1qmXW","label":"_1argp","icon":"_3DPRG"};
|
|
1777
1781
|
|
|
1778
1782
|
var CoreInputCompact = function CoreInputCompact(props) {
|
|
1779
1783
|
var _props$name = props.name,
|
|
@@ -1786,7 +1790,14 @@ var CoreInputCompact = function CoreInputCompact(props) {
|
|
|
1786
1790
|
width = props.width,
|
|
1787
1791
|
_props$placeholder = props.placeholder,
|
|
1788
1792
|
placeholder = _props$placeholder === void 0 ? "Type here" : _props$placeholder,
|
|
1789
|
-
error = props.error
|
|
1793
|
+
error = props.error,
|
|
1794
|
+
tooltip = props.tooltip;
|
|
1795
|
+
var _useState = React.useState(false),
|
|
1796
|
+
isOpenTooltip = _useState[0],
|
|
1797
|
+
setIsOpenTooltip = _useState[1];
|
|
1798
|
+
var toggleTooltip = function toggleTooltip() {
|
|
1799
|
+
return setIsOpenTooltip(!isOpenTooltip);
|
|
1800
|
+
};
|
|
1790
1801
|
return React__default.createElement("div", {
|
|
1791
1802
|
className: "" + styles$b["core-input-compact"],
|
|
1792
1803
|
style: {
|
|
@@ -1794,7 +1805,10 @@ var CoreInputCompact = function CoreInputCompact(props) {
|
|
|
1794
1805
|
}
|
|
1795
1806
|
}, label && React__default.createElement("div", {
|
|
1796
1807
|
className: styles$b["label"]
|
|
1797
|
-
}, React__default.createElement("label", null, label),
|
|
1808
|
+
}, React__default.createElement("label", null, label), tooltip ? React__default.createElement("div", {
|
|
1809
|
+
id: name,
|
|
1810
|
+
className: styles$b["icon"]
|
|
1811
|
+
}, React__default.createElement(Info, null)) : null), React__default.createElement("input", {
|
|
1798
1812
|
style: {
|
|
1799
1813
|
backgroundColor: error ? COLORS.lightYellow : "transparent"
|
|
1800
1814
|
},
|
|
@@ -1805,7 +1819,11 @@ var CoreInputCompact = function CoreInputCompact(props) {
|
|
|
1805
1819
|
},
|
|
1806
1820
|
disabled: disabled,
|
|
1807
1821
|
placeholder: placeholder
|
|
1808
|
-
})
|
|
1822
|
+
}), tooltip && React__default.createElement(reactstrap.Tooltip, {
|
|
1823
|
+
target: name,
|
|
1824
|
+
isOpen: isOpenTooltip,
|
|
1825
|
+
toggle: toggleTooltip
|
|
1826
|
+
}, tooltip));
|
|
1809
1827
|
};
|
|
1810
1828
|
|
|
1811
1829
|
var styles$c = {"core-label-input":"_2YqZu","size-h1":"_23-uu","size-h2":"_16lQL"};
|
|
@@ -2089,6 +2107,7 @@ exports.apiUpload = apiUpload$1;
|
|
|
2089
2107
|
exports.getErrorMessage = getErrorMessage;
|
|
2090
2108
|
exports.historyCore = historyCore;
|
|
2091
2109
|
exports.setAlert = setAlert;
|
|
2110
|
+
exports.setIsRefetchSidebar = setIsRefetchSidebar;
|
|
2092
2111
|
exports.setLoading = setLoading;
|
|
2093
2112
|
exports.setMenuCollapse = setMenuCollapse;
|
|
2094
2113
|
exports.setUser = setUser;
|