@ammarkhalidfarooq/dashboard-package 0.6.58 → 0.6.59
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/index.cjs.js +8 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +8 -3
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -952,6 +952,8 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
952
952
|
numberOfDays = _ref$numberOfDays === void 0 ? 1 : _ref$numberOfDays,
|
|
953
953
|
_ref$activeFilters = _ref.activeFilters,
|
|
954
954
|
activeFilters = _ref$activeFilters === void 0 ? [] : _ref$activeFilters;
|
|
955
|
+
_ref.exportLoading;
|
|
956
|
+
var setExportLoading = _ref.setExportLoading;
|
|
955
957
|
return /*#__PURE__*/jsx(ThemeProvider, {
|
|
956
958
|
theme: theme,
|
|
957
959
|
children: /*#__PURE__*/jsx(Suspense, {
|
|
@@ -969,7 +971,8 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
969
971
|
dateName: dateName,
|
|
970
972
|
exportTrigger: exportTrigger,
|
|
971
973
|
apiLoading: apiLoading,
|
|
972
|
-
activeFilters: activeFilters
|
|
974
|
+
activeFilters: activeFilters,
|
|
975
|
+
setExportLoading: setExportLoading
|
|
973
976
|
})
|
|
974
977
|
})
|
|
975
978
|
});
|
|
@@ -3299,7 +3302,8 @@ var NewOverview = function NewOverview(_ref) {
|
|
|
3299
3302
|
_ref$apiLoading = _ref.apiLoading,
|
|
3300
3303
|
apiLoading = _ref$apiLoading === void 0 ? false : _ref$apiLoading,
|
|
3301
3304
|
_ref$activeFilters = _ref.activeFilters,
|
|
3302
|
-
activeFilters = _ref$activeFilters === void 0 ? [] : _ref$activeFilters
|
|
3305
|
+
activeFilters = _ref$activeFilters === void 0 ? [] : _ref$activeFilters,
|
|
3306
|
+
setExportLoading = _ref.setExportLoading;
|
|
3303
3307
|
var initialMetric = "Revenue";
|
|
3304
3308
|
var revenueData = (apiData === null || apiData === void 0 ? void 0 : apiData.revenueData) || [3000, 4500, 4200, 5800, 5200, 7100, 8500, 9200, 5000];
|
|
3305
3309
|
var donationsData = (apiData === null || apiData === void 0 ? void 0 : apiData.donationsData) || [15, 22, 18, 30, 25, 35, 42, 45, 28];
|
|
@@ -3378,6 +3382,7 @@ var NewOverview = function NewOverview(_ref) {
|
|
|
3378
3382
|
case 6:
|
|
3379
3383
|
_context.p = 6;
|
|
3380
3384
|
setShowExportLayout(false);
|
|
3385
|
+
setExportLoading === null || setExportLoading === void 0 || setExportLoading(false);
|
|
3381
3386
|
return _context.f(6);
|
|
3382
3387
|
case 7:
|
|
3383
3388
|
return _context.a(2);
|
|
@@ -3389,7 +3394,7 @@ var NewOverview = function NewOverview(_ref) {
|
|
|
3389
3394
|
};
|
|
3390
3395
|
}();
|
|
3391
3396
|
doPdfExport();
|
|
3392
|
-
}, [showExportLayout, exportFiltersSnapshot]);
|
|
3397
|
+
}, [showExportLayout, exportFiltersSnapshot, setExportLoading]);
|
|
3393
3398
|
var currentData = metric === "Revenue" ? revenueData : donationsData;
|
|
3394
3399
|
var oneTimeData = (apiData === null || apiData === void 0 ? void 0 : apiData.oneTimeDonations) || [];
|
|
3395
3400
|
var oneTimeValues = oneTimeData.length > 0 ? oneTimeData.map(function (item) {
|