awing-library 2.1.48-beta → 2.1.50-beta
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.
|
@@ -38,7 +38,7 @@ var PageContainer = function () {
|
|
|
38
38
|
var t = (0, react_i18next_1.useTranslation)().t;
|
|
39
39
|
var navigate = (0, react_router_1.useNavigate)();
|
|
40
40
|
var location = (0, react_router_1.useLocation)();
|
|
41
|
-
var _d = (0, react_1.useState)(
|
|
41
|
+
var _d = (0, react_1.useState)(true), loading = _d[0], setLoading = _d[1];
|
|
42
42
|
var _e = (0, react_1.useState)(true), init = _e[0], setInit = _e[1]; // First time render
|
|
43
43
|
var _f = (0, react_1.useState)([]), directories = _f[0], setDirectories = _f[1];
|
|
44
44
|
var _g = (0, react_1.useState)(true), isLoadDirectory = _g[0], setLoadLoadDirectory = _g[1];
|
|
@@ -103,6 +103,7 @@ var PageContainer = function () {
|
|
|
103
103
|
(0, react_1.useLayoutEffect)(function () {
|
|
104
104
|
setDirectories([]);
|
|
105
105
|
setInit(true);
|
|
106
|
+
setLoading(true);
|
|
106
107
|
setPage({
|
|
107
108
|
items: [],
|
|
108
109
|
totalItemCount: 0,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { IStatisticsByProvinceContainerProps } from './interfaces';
|
|
2
|
-
export default function StatisticsByProvinceContainer<F>({ onChangeQueryInput, onChangeExportInput, isLoadings, initialFilters, title, dataTable, headCells, infoSX }: IStatisticsByProvinceContainerProps<F>): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export default function StatisticsByProvinceContainer<F>({ onChangeQueryInput, onChangeExportInput, isLoadings, initialFilters, title, dataTable, headCells, infoSX, children, }: IStatisticsByProvinceContainerProps<F>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -10,10 +10,10 @@ var AWING_1 = require("../../AWING");
|
|
|
10
10
|
var ContentHeader_1 = __importDefault(require("../CampaignSchedule/Components/ContentHeader"));
|
|
11
11
|
var DataTable_1 = __importDefault(require("./DataTable"));
|
|
12
12
|
function StatisticsByProvinceContainer(_a) {
|
|
13
|
-
var onChangeQueryInput = _a.onChangeQueryInput, onChangeExportInput = _a.onChangeExportInput, isLoadings = _a.isLoadings, initialFilters = _a.initialFilters, title = _a.title, dataTable = _a.dataTable, headCells = _a.headCells, infoSX = _a.infoSX;
|
|
13
|
+
var onChangeQueryInput = _a.onChangeQueryInput, onChangeExportInput = _a.onChangeExportInput, isLoadings = _a.isLoadings, initialFilters = _a.initialFilters, title = _a.title, dataTable = _a.dataTable, headCells = _a.headCells, infoSX = _a.infoSX, children = _a.children;
|
|
14
14
|
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(ContentHeader_1.default, { title: title }), (0, jsx_runtime_1.jsx)(material_1.Paper, { children: (0, jsx_runtime_1.jsxs)("div", { style: { padding: '1rem' }, children: [(0, jsx_runtime_1.jsx)(ControlPanel_1.default, { onChangeQueryInput: onChangeQueryInput, onChangeExportInput: onChangeExportInput, initialFilters: initialFilters, isLoadings: isLoadings, infoSX: infoSX }), (0, jsx_runtime_1.jsx)(material_1.Grid, { container: true, item: true, xs: 12, justifyContent: "center", sx: {
|
|
15
15
|
marginTop: '1.5rem',
|
|
16
16
|
width: '100%',
|
|
17
|
-
}, children: (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 12, children: (isLoadings === null || isLoadings === void 0 ? void 0 : isLoadings.chartLoading) === false ? ((0, jsx_runtime_1.jsx)(DataTable_1.default, { headCells: headCells, rowsData: dataTable, isPagination: true, isLoading: false })) : ((0, jsx_runtime_1.jsx)(AWING_1.CircularProgress, {})) }) })] }) })] }));
|
|
17
|
+
}, children: dataTable === null ? (children) : ((0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 12, children: (isLoadings === null || isLoadings === void 0 ? void 0 : isLoadings.chartLoading) === false ? ((0, jsx_runtime_1.jsx)(DataTable_1.default, { headCells: headCells, rowsData: dataTable, isPagination: true, isLoading: false })) : ((0, jsx_runtime_1.jsx)(AWING_1.CircularProgress, {})) })) })] }) })] }));
|
|
18
18
|
}
|
|
19
19
|
exports.default = StatisticsByProvinceContainer;
|