@bygd/nc-report-ui 0.1.4 → 0.1.5
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/app/esm/index.js +309 -8853
- package/dist/default/cjs/index.cjs +17 -15
- package/dist/default/esm/index.js +17 -15
- package/dist/default/iife/index.js +309 -8853
- package/package.json +1 -2
|
@@ -15,7 +15,6 @@ var FormControl$1 = require('@material-ui/core/FormControl');
|
|
|
15
15
|
var Select$1 = require('@material-ui/core/Select');
|
|
16
16
|
var MenuItem$1 = require('@material-ui/core/MenuItem');
|
|
17
17
|
var reactIntersectionObserver = require('react-intersection-observer');
|
|
18
|
-
var cron = require('cron');
|
|
19
18
|
var material = require('@mui/material');
|
|
20
19
|
var CheckBoxOutlineBlankIcon = require('@mui/icons-material/CheckBoxOutlineBlank');
|
|
21
20
|
var CheckBoxIcon = require('@mui/icons-material/CheckBox');
|
|
@@ -828,20 +827,23 @@ var Chart = ({
|
|
|
828
827
|
setActiveViewIndex(viewIndex);
|
|
829
828
|
setActiveView(chart.doc.view[viewIndex]);
|
|
830
829
|
}, [chart]);
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
830
|
+
|
|
831
|
+
// React.useEffect(() => {
|
|
832
|
+
// let cron;
|
|
833
|
+
// if (chart?.doc?.refresh?.enabled === true) {
|
|
834
|
+
// cron = new CronJob(chart.doc.refresh.cron, () => {
|
|
835
|
+
// if (inView) {
|
|
836
|
+
// loadSource(filterRef.current);
|
|
837
|
+
// }
|
|
838
|
+
// });
|
|
839
|
+
// cron.start();
|
|
840
|
+
// }
|
|
841
|
+
|
|
842
|
+
// return () => {
|
|
843
|
+
// cron && cron.stop();
|
|
844
|
+
// }
|
|
845
|
+
// }, [chart, inView]);
|
|
846
|
+
|
|
845
847
|
React__namespace.default.useEffect(() => {
|
|
846
848
|
if (!id) return;
|
|
847
849
|
init().catch(error => {
|
|
@@ -12,7 +12,6 @@ import FormControl$2 from '@material-ui/core/FormControl';
|
|
|
12
12
|
import Select$1 from '@material-ui/core/Select';
|
|
13
13
|
import MenuItem$1 from '@material-ui/core/MenuItem';
|
|
14
14
|
import { useInView } from 'react-intersection-observer';
|
|
15
|
-
import { CronJob } from 'cron';
|
|
16
15
|
import { FormControl, Autocomplete, TextField, CircularProgress, Chip, Checkbox, FormHelperText } from '@mui/material';
|
|
17
16
|
import CheckBoxOutlineBlankIcon from '@mui/icons-material/CheckBoxOutlineBlank';
|
|
18
17
|
import CheckBoxIcon from '@mui/icons-material/CheckBox';
|
|
@@ -784,20 +783,23 @@ var Chart = ({
|
|
|
784
783
|
setActiveViewIndex(viewIndex);
|
|
785
784
|
setActiveView(chart.doc.view[viewIndex]);
|
|
786
785
|
}, [chart]);
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
786
|
+
|
|
787
|
+
// React.useEffect(() => {
|
|
788
|
+
// let cron;
|
|
789
|
+
// if (chart?.doc?.refresh?.enabled === true) {
|
|
790
|
+
// cron = new CronJob(chart.doc.refresh.cron, () => {
|
|
791
|
+
// if (inView) {
|
|
792
|
+
// loadSource(filterRef.current);
|
|
793
|
+
// }
|
|
794
|
+
// });
|
|
795
|
+
// cron.start();
|
|
796
|
+
// }
|
|
797
|
+
|
|
798
|
+
// return () => {
|
|
799
|
+
// cron && cron.stop();
|
|
800
|
+
// }
|
|
801
|
+
// }, [chart, inView]);
|
|
802
|
+
|
|
801
803
|
React__default.useEffect(() => {
|
|
802
804
|
if (!id) return;
|
|
803
805
|
init().catch(error => {
|