datastake-daf 0.6.841 → 0.6.843
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/build/favicon.ico +0 -0
- package/build/logo192.png +0 -0
- package/build/logo512.png +0 -0
- package/build/manifest.json +25 -0
- package/build/robots.txt +3 -0
- package/dist/components/index.js +773 -768
- package/dist/hooks/index.js +4 -6
- package/dist/layouts/index.js +6 -0
- package/dist/pages/index.js +187 -133
- package/package.json +1 -1
- package/src/@daf/core/components/DynamicForm/hook.js +2 -2
- package/src/@daf/core/components/DynamicForm/index.jsx +1 -1
- package/src/@daf/core/components/Filters/selectFilters/index.jsx +7 -1
- package/src/@daf/core/components/Graphs/TradeRelationship/index.jsx +1 -27
- package/src/@daf/core/components/Graphs/components/BaseGraph.jsx +22 -18
- package/src/@daf/core/components/Select/MultiSelect/style.js +1 -1
- package/src/@daf/core/components/ViewForm/components/DataLink/flat.js +7 -3
- package/src/@daf/core/components/ViewForm/components/DataLink/index.js +6 -2
- package/src/@daf/core/components/ViewForm/components/input.js +7 -7
- package/src/@daf/hooks/useWidgetFetch.js +26 -35
- package/src/@daf/pages/Dashboards/ConflictManagement/components/RisksWidget/components/IncidentsTime/index.js +1 -0
- package/src/@daf/pages/Dashboards/SupplyChain/components/ChartsContainer/components/Locations/index.js +20 -19
- package/src/@daf/pages/Dashboards/SupplyChain/components/ChartsContainer/index.js +5 -2
- package/src/@daf/pages/Events/Activities/columns.js +7 -3
- package/src/@daf/pages/Events/Incidents/columns.js +7 -3
- package/src/@daf/pages/Summary/Operator/components/KeyInformation/config.js +0 -1
- package/src/@daf/pages/Summary/Operator/components/TradeRelationships/helper.js +7 -5
- package/src/@daf/pages/Summary/Operator/components/TradeRelationships/hook.js +29 -14
- package/src/@daf/pages/Summary/Operator/components/TradeRelationships/index.js +69 -20
- package/src/@daf/pages/Summary/Operator/index.jsx +1 -0
- package/src/@daf/pages/View/index.jsx +1 -1
- package/src/helpers/Forms.js +7 -5
package/dist/hooks/index.js
CHANGED
|
@@ -2294,7 +2294,6 @@ var DashboardService$1 = createLazyService(DashboardService);
|
|
|
2294
2294
|
// url: string
|
|
2295
2295
|
// basePath: string,
|
|
2296
2296
|
// }
|
|
2297
|
-
|
|
2298
2297
|
const useWidgetFetch = ({
|
|
2299
2298
|
config,
|
|
2300
2299
|
getData = DashboardService$1.getWidget,
|
|
@@ -2310,9 +2309,6 @@ const useWidgetFetch = ({
|
|
|
2310
2309
|
const [initFetchDone, setInitFetchDone] = React.useState(false);
|
|
2311
2310
|
const isMounted = React.useRef(true);
|
|
2312
2311
|
const fetchData = async () => {
|
|
2313
|
-
if (stop) {
|
|
2314
|
-
return;
|
|
2315
|
-
}
|
|
2316
2312
|
setLoading(true);
|
|
2317
2313
|
try {
|
|
2318
2314
|
const {
|
|
@@ -2341,8 +2337,10 @@ const useWidgetFetch = ({
|
|
|
2341
2337
|
};
|
|
2342
2338
|
}, []);
|
|
2343
2339
|
React.useEffect(() => {
|
|
2344
|
-
|
|
2345
|
-
|
|
2340
|
+
if (!stop) {
|
|
2341
|
+
fetchData();
|
|
2342
|
+
}
|
|
2343
|
+
}, [JSON.stringify(config), stop]);
|
|
2346
2344
|
return {
|
|
2347
2345
|
data,
|
|
2348
2346
|
loading,
|
package/dist/layouts/index.js
CHANGED
|
@@ -7071,6 +7071,12 @@ const SelectFilters = ({
|
|
|
7071
7071
|
}) => {
|
|
7072
7072
|
const [filters, setFilters] = React.useState(selectedFilters || {});
|
|
7073
7073
|
const [initFilters, setInitFilters] = React.useState(selectedFilters || {});
|
|
7074
|
+
|
|
7075
|
+
// Sync internal state with selectedFilters prop when it changes
|
|
7076
|
+
React.useEffect(() => {
|
|
7077
|
+
setFilters(selectedFilters || {});
|
|
7078
|
+
setInitFilters(selectedFilters || {});
|
|
7079
|
+
}, [selectedFilters]);
|
|
7074
7080
|
const getClearLabel = () => {
|
|
7075
7081
|
switch (type) {
|
|
7076
7082
|
case 'small':
|