@ammarkhalidfarooq/dashboard-package 0.6.30 → 0.6.32
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/ActiveCampaignsCard.cjs.js +4 -2
- package/dist/ActiveCampaignsCard.cjs.js.map +1 -1
- package/dist/ActiveCampaignsCard.es.js +4 -2
- package/dist/ActiveCampaignsCard.es.js.map +1 -1
- package/dist/RenderChartCard.cjs.js +3 -2
- package/dist/RenderChartCard.cjs.js.map +1 -1
- package/dist/RenderChartCard.es.js +3 -2
- package/dist/RenderChartCard.es.js.map +1 -1
- package/dist/index.cjs.js +66 -40
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +66 -40
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -673,14 +673,15 @@ var RenderChartCard = function RenderChartCard(_ref) {
|
|
|
673
673
|
color: "#000000",
|
|
674
674
|
fontWeight: 700,
|
|
675
675
|
fontSize: "18px",
|
|
676
|
-
|
|
676
|
+
lineHeight: 1.15
|
|
677
677
|
},
|
|
678
678
|
children: item.label
|
|
679
679
|
}), /*#__PURE__*/jsx(Typography, {
|
|
680
|
-
variant: "caption",
|
|
681
680
|
sx: {
|
|
682
681
|
color: "rgba(0, 0, 0, 0.4)",
|
|
683
682
|
fontWeight: 400,
|
|
683
|
+
fontSize: "12px",
|
|
684
|
+
lineHeight: 1.15,
|
|
684
685
|
display: "block",
|
|
685
686
|
mb: 1.5
|
|
686
687
|
},
|
|
@@ -928,7 +929,9 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
928
929
|
_ref$apiLoading = _ref.apiLoading,
|
|
929
930
|
apiLoading = _ref$apiLoading === void 0 ? false : _ref$apiLoading,
|
|
930
931
|
_ref$numberOfDays = _ref.numberOfDays,
|
|
931
|
-
numberOfDays = _ref$numberOfDays === void 0 ? 1 : _ref$numberOfDays
|
|
932
|
+
numberOfDays = _ref$numberOfDays === void 0 ? 1 : _ref$numberOfDays,
|
|
933
|
+
_ref$activeFilters = _ref.activeFilters,
|
|
934
|
+
activeFilters = _ref$activeFilters === void 0 ? [] : _ref$activeFilters;
|
|
932
935
|
return /*#__PURE__*/jsx(ThemeProvider, {
|
|
933
936
|
theme: theme,
|
|
934
937
|
children: /*#__PURE__*/jsx(Suspense, {
|
|
@@ -945,7 +948,8 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
945
948
|
activeSection: overviewType,
|
|
946
949
|
dateName: dateName,
|
|
947
950
|
exportTrigger: exportTrigger,
|
|
948
|
-
apiLoading: apiLoading
|
|
951
|
+
apiLoading: apiLoading,
|
|
952
|
+
activeFilters: activeFilters
|
|
949
953
|
})
|
|
950
954
|
})
|
|
951
955
|
});
|
|
@@ -994,14 +998,16 @@ var ActiveCampaignsCard = function ActiveCampaignsCard(_ref) {
|
|
|
994
998
|
fontWeight: 700,
|
|
995
999
|
fontSize: compact ? "14px" : "18px",
|
|
996
1000
|
color: "#000",
|
|
997
|
-
textAlign: "left"
|
|
1001
|
+
textAlign: "left",
|
|
1002
|
+
lineHeight: 1.15
|
|
998
1003
|
},
|
|
999
1004
|
children: title
|
|
1000
1005
|
}), /*#__PURE__*/jsx(Typography, {
|
|
1001
1006
|
sx: {
|
|
1002
1007
|
fontSize: compact ? "10px" : "13px",
|
|
1003
1008
|
color: "rgba(0, 0, 0, 0.4)",
|
|
1004
|
-
|
|
1009
|
+
textAlign: "left",
|
|
1010
|
+
lineHeight: 1.15
|
|
1005
1011
|
},
|
|
1006
1012
|
children: subtitle
|
|
1007
1013
|
})]
|
|
@@ -1860,14 +1866,14 @@ var Panel = function Panel(_ref5) {
|
|
|
1860
1866
|
fontSize: 12,
|
|
1861
1867
|
fontWeight: 700,
|
|
1862
1868
|
color: THEME.text,
|
|
1863
|
-
lineHeight: 1.
|
|
1869
|
+
lineHeight: 1.15
|
|
1864
1870
|
},
|
|
1865
1871
|
children: title
|
|
1866
1872
|
}), subtitle && /*#__PURE__*/jsx("div", {
|
|
1867
1873
|
style: {
|
|
1868
1874
|
fontSize: 9.5,
|
|
1869
1875
|
color: THEME.muted,
|
|
1870
|
-
|
|
1876
|
+
lineHeight: 1.15
|
|
1871
1877
|
},
|
|
1872
1878
|
children: subtitle
|
|
1873
1879
|
})]
|
|
@@ -2170,7 +2176,9 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref1, ref) {
|
|
|
2170
2176
|
_ref1$dateName = _ref1.dateName,
|
|
2171
2177
|
dateName = _ref1$dateName === void 0 ? "Last Period" : _ref1$dateName,
|
|
2172
2178
|
_ref1$numberOfDays = _ref1.numberOfDays,
|
|
2173
|
-
numberOfDays = _ref1$numberOfDays === void 0 ? 30 : _ref1$numberOfDays
|
|
2179
|
+
numberOfDays = _ref1$numberOfDays === void 0 ? 30 : _ref1$numberOfDays,
|
|
2180
|
+
_ref1$activeFilters = _ref1.activeFilters,
|
|
2181
|
+
activeFilters = _ref1$activeFilters === void 0 ? [] : _ref1$activeFilters;
|
|
2174
2182
|
var now = new Date();
|
|
2175
2183
|
var daysLabel = "".concat(numberOfDays, " day").concat(numberOfDays === 1 ? "" : "s");
|
|
2176
2184
|
var windowLabel = "".concat(numberOfDays, "-day window");
|
|
@@ -2183,7 +2191,11 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref1, ref) {
|
|
|
2183
2191
|
minute: "2-digit"
|
|
2184
2192
|
}) + " GMT";
|
|
2185
2193
|
var dateLabel = dateName;
|
|
2186
|
-
var
|
|
2194
|
+
var formattedActiveFilters = Array.isArray(activeFilters) ? activeFilters.filter(function (item) {
|
|
2195
|
+
return item && item.value !== undefined && item.value !== null && "".concat(item.value).trim();
|
|
2196
|
+
}).map(function (item) {
|
|
2197
|
+
return "".concat(item.label || item.id, ": ").concat(item.value);
|
|
2198
|
+
}).join(" | ") : "";
|
|
2187
2199
|
var report = buildReportData(apiData, dateName);
|
|
2188
2200
|
var hero = report.hero,
|
|
2189
2201
|
metrics = report.metrics,
|
|
@@ -2334,7 +2346,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref1, ref) {
|
|
|
2334
2346
|
var headerProps = {
|
|
2335
2347
|
dateLabel: dateLabel,
|
|
2336
2348
|
generatedLabel: generatedLabel,
|
|
2337
|
-
activeFilters:
|
|
2349
|
+
activeFilters: formattedActiveFilters,
|
|
2338
2350
|
windowLabel: windowLabel
|
|
2339
2351
|
};
|
|
2340
2352
|
return /*#__PURE__*/jsxs("div", {
|
|
@@ -3144,7 +3156,9 @@ var NewOverview = function NewOverview(_ref) {
|
|
|
3144
3156
|
_ref$exportTrigger = _ref.exportTrigger,
|
|
3145
3157
|
exportTrigger = _ref$exportTrigger === void 0 ? 0 : _ref$exportTrigger,
|
|
3146
3158
|
_ref$apiLoading = _ref.apiLoading,
|
|
3147
|
-
apiLoading = _ref$apiLoading === void 0 ? false : _ref$apiLoading
|
|
3159
|
+
apiLoading = _ref$apiLoading === void 0 ? false : _ref$apiLoading,
|
|
3160
|
+
_ref$activeFilters = _ref.activeFilters,
|
|
3161
|
+
activeFilters = _ref$activeFilters === void 0 ? [] : _ref$activeFilters;
|
|
3148
3162
|
var initialMetric = "Revenue";
|
|
3149
3163
|
var revenueData = (apiData === null || apiData === void 0 ? void 0 : apiData.revenueData) || [3000, 4500, 4200, 5800, 5200, 7100, 8500, 9200, 5000];
|
|
3150
3164
|
var donationsData = (apiData === null || apiData === void 0 ? void 0 : apiData.donationsData) || [15, 22, 18, 30, 25, 35, 42, 45, 28];
|
|
@@ -3450,7 +3464,8 @@ var NewOverview = function NewOverview(_ref) {
|
|
|
3450
3464
|
ref: exportLayoutRef,
|
|
3451
3465
|
apiData: apiData,
|
|
3452
3466
|
dateName: dateName,
|
|
3453
|
-
numberOfDays: numberOfDays
|
|
3467
|
+
numberOfDays: numberOfDays,
|
|
3468
|
+
activeFilters: activeFilters
|
|
3454
3469
|
})
|
|
3455
3470
|
})]
|
|
3456
3471
|
});
|
|
@@ -3845,14 +3860,16 @@ var DonorMixCard = function DonorMixCard(_ref) {
|
|
|
3845
3860
|
fontWeight: 700,
|
|
3846
3861
|
fontSize: compact ? "14px" : "18px",
|
|
3847
3862
|
color: "#000",
|
|
3848
|
-
textAlign: "left"
|
|
3863
|
+
textAlign: "left",
|
|
3864
|
+
lineHeight: 1.15
|
|
3849
3865
|
},
|
|
3850
3866
|
children: title
|
|
3851
3867
|
}), /*#__PURE__*/jsx(Typography, {
|
|
3852
3868
|
sx: {
|
|
3853
3869
|
fontSize: compact ? "10px" : "13px",
|
|
3854
3870
|
color: "rgba(0, 0, 0, 0.4)",
|
|
3855
|
-
textAlign: "left"
|
|
3871
|
+
textAlign: "left",
|
|
3872
|
+
lineHeight: 1.15
|
|
3856
3873
|
},
|
|
3857
3874
|
children: subtitle
|
|
3858
3875
|
})]
|
|
@@ -3999,16 +4016,17 @@ var TrafficSourceCard = function TrafficSourceCard(_ref) {
|
|
|
3999
4016
|
fontWeight: 700,
|
|
4000
4017
|
fontSize: "18px",
|
|
4001
4018
|
color: "#000",
|
|
4002
|
-
textAlign: "left"
|
|
4019
|
+
textAlign: "left",
|
|
4020
|
+
lineHeight: 1.15
|
|
4003
4021
|
},
|
|
4004
4022
|
children: title
|
|
4005
4023
|
}), /*#__PURE__*/jsx(Typography, {
|
|
4006
4024
|
sx: {
|
|
4007
4025
|
fontSize: "13px",
|
|
4008
4026
|
color: "rgba(0, 0, 0, 0.4)",
|
|
4009
|
-
mt: 0.5,
|
|
4010
4027
|
mb: 0.5,
|
|
4011
|
-
textAlign: "left"
|
|
4028
|
+
textAlign: "left",
|
|
4029
|
+
lineHeight: 1.15
|
|
4012
4030
|
},
|
|
4013
4031
|
children: resolvedSubtitle
|
|
4014
4032
|
})]
|
|
@@ -4263,15 +4281,16 @@ var MetricSparklineCard = function MetricSparklineCard(_ref) {
|
|
|
4263
4281
|
fontWeight: 700,
|
|
4264
4282
|
fontSize: compact ? "13px" : "16px",
|
|
4265
4283
|
color: "#000",
|
|
4266
|
-
textAlign: "left"
|
|
4284
|
+
textAlign: "left",
|
|
4285
|
+
lineHeight: 1.15
|
|
4267
4286
|
},
|
|
4268
4287
|
children: title
|
|
4269
4288
|
}), /*#__PURE__*/jsx(Typography, {
|
|
4270
4289
|
sx: {
|
|
4271
4290
|
fontSize: "12px",
|
|
4272
4291
|
color: "rgba(0, 0, 0, 0.4)",
|
|
4273
|
-
|
|
4274
|
-
|
|
4292
|
+
textAlign: "left",
|
|
4293
|
+
lineHeight: 1.15
|
|
4275
4294
|
},
|
|
4276
4295
|
children: subtitle
|
|
4277
4296
|
})]
|
|
@@ -4471,15 +4490,16 @@ var MetricDonutCard = function MetricDonutCard(_ref2) {
|
|
|
4471
4490
|
fontWeight: 700,
|
|
4472
4491
|
fontSize: compact ? "13px" : "16px",
|
|
4473
4492
|
color: "#000",
|
|
4474
|
-
textAlign: "left"
|
|
4493
|
+
textAlign: "left",
|
|
4494
|
+
lineHeight: 1.15
|
|
4475
4495
|
},
|
|
4476
4496
|
children: title
|
|
4477
4497
|
}), /*#__PURE__*/jsx(Typography, {
|
|
4478
4498
|
sx: {
|
|
4479
4499
|
fontSize: "12px",
|
|
4480
4500
|
color: "rgba(0, 0, 0, 0.4)",
|
|
4481
|
-
|
|
4482
|
-
|
|
4501
|
+
textAlign: "left",
|
|
4502
|
+
lineHeight: 1.15
|
|
4483
4503
|
},
|
|
4484
4504
|
children: subtitle
|
|
4485
4505
|
})]
|
|
@@ -4787,14 +4807,15 @@ var DonationTypeBarChart = function DonationTypeBarChart(_ref) {
|
|
|
4787
4807
|
sx: {
|
|
4788
4808
|
fontWeight: 700,
|
|
4789
4809
|
fontSize: "18px",
|
|
4790
|
-
color: "#000"
|
|
4810
|
+
color: "#000",
|
|
4811
|
+
lineHeight: 1.15
|
|
4791
4812
|
},
|
|
4792
4813
|
children: title
|
|
4793
4814
|
}), /*#__PURE__*/jsx(Typography, {
|
|
4794
4815
|
sx: {
|
|
4795
4816
|
fontSize: "13px",
|
|
4796
4817
|
color: "rgba(0, 0, 0, 0.4)",
|
|
4797
|
-
|
|
4818
|
+
lineHeight: 1.15
|
|
4798
4819
|
},
|
|
4799
4820
|
children: "Donation type"
|
|
4800
4821
|
})]
|
|
@@ -4872,13 +4893,12 @@ var CardWrapper = function CardWrapper(_ref) {
|
|
|
4872
4893
|
}),
|
|
4873
4894
|
children: /*#__PURE__*/jsxs(CardContent, {
|
|
4874
4895
|
children: [/*#__PURE__*/jsx(Typography, {
|
|
4875
|
-
variant: "subtitle2",
|
|
4876
4896
|
sx: {
|
|
4877
4897
|
color: "#000000",
|
|
4878
4898
|
fontWeight: 700,
|
|
4879
4899
|
fontSize: "16px",
|
|
4880
|
-
|
|
4881
|
-
|
|
4900
|
+
textAlign: "left",
|
|
4901
|
+
lineHeight: 1.15
|
|
4882
4902
|
},
|
|
4883
4903
|
children: title
|
|
4884
4904
|
}), subtitle && /*#__PURE__*/jsx(Typography, {
|
|
@@ -4886,7 +4906,8 @@ var CardWrapper = function CardWrapper(_ref) {
|
|
|
4886
4906
|
color: "rgba(0, 0, 0, 0.4)",
|
|
4887
4907
|
fontSize: "13px",
|
|
4888
4908
|
mb: 3,
|
|
4889
|
-
textAlign: "left"
|
|
4909
|
+
textAlign: "left",
|
|
4910
|
+
lineHeight: 1.15
|
|
4890
4911
|
},
|
|
4891
4912
|
children: subtitle
|
|
4892
4913
|
}), /*#__PURE__*/jsx(Box, {
|
|
@@ -5820,14 +5841,15 @@ var PaidDonorGeographyCard = function PaidDonorGeographyCard(_ref8) {
|
|
|
5820
5841
|
sx: {
|
|
5821
5842
|
fontWeight: 700,
|
|
5822
5843
|
fontSize: "18px",
|
|
5823
|
-
color: "#000"
|
|
5844
|
+
color: "#000",
|
|
5845
|
+
lineHeight: 1.15
|
|
5824
5846
|
},
|
|
5825
5847
|
children: "Paid donor geography"
|
|
5826
5848
|
}), /*#__PURE__*/jsx(Typography, {
|
|
5827
5849
|
sx: {
|
|
5828
5850
|
fontSize: "13px",
|
|
5829
5851
|
color: "rgba(0, 0, 0, 0.4)",
|
|
5830
|
-
|
|
5852
|
+
lineHeight: 1.15
|
|
5831
5853
|
},
|
|
5832
5854
|
children: "Where ad-acquired donors come from"
|
|
5833
5855
|
})]
|
|
@@ -6059,14 +6081,16 @@ var RefundsChargebacksCard = function RefundsChargebacksCard(_ref) {
|
|
|
6059
6081
|
fontWeight: 700,
|
|
6060
6082
|
fontSize: "18px",
|
|
6061
6083
|
color: "#000",
|
|
6062
|
-
textAlign: "left"
|
|
6084
|
+
textAlign: "left",
|
|
6085
|
+
lineHeight: 1.15
|
|
6063
6086
|
},
|
|
6064
6087
|
children: "Refunds & chargebacks"
|
|
6065
6088
|
}), /*#__PURE__*/jsxs(Typography, {
|
|
6066
6089
|
sx: {
|
|
6067
6090
|
fontSize: "13px",
|
|
6068
6091
|
color: "rgba(0, 0, 0, 0.4)",
|
|
6069
|
-
textAlign: "left"
|
|
6092
|
+
textAlign: "left",
|
|
6093
|
+
lineHeight: 1.15
|
|
6070
6094
|
},
|
|
6071
6095
|
children: ["Trust health \xB7 ", windowLabel]
|
|
6072
6096
|
})]
|
|
@@ -7441,13 +7465,12 @@ var DropOffPoints = function DropOffPoints() {
|
|
|
7441
7465
|
p: 3
|
|
7442
7466
|
},
|
|
7443
7467
|
children: [/*#__PURE__*/jsx(Typography, {
|
|
7444
|
-
variant: "subtitle2",
|
|
7445
7468
|
sx: {
|
|
7446
7469
|
color: "#000000",
|
|
7447
7470
|
fontWeight: 700,
|
|
7448
7471
|
fontSize: "16px",
|
|
7449
|
-
|
|
7450
|
-
|
|
7472
|
+
textAlign: "left",
|
|
7473
|
+
lineHeight: 1.15
|
|
7451
7474
|
},
|
|
7452
7475
|
children: "Drop off points in donation flow"
|
|
7453
7476
|
}), /*#__PURE__*/jsx(Typography, {
|
|
@@ -7455,7 +7478,8 @@ var DropOffPoints = function DropOffPoints() {
|
|
|
7455
7478
|
color: "rgba(0, 0, 0, 0.4)",
|
|
7456
7479
|
fontSize: "13px",
|
|
7457
7480
|
mb: 3,
|
|
7458
|
-
textAlign: "left"
|
|
7481
|
+
textAlign: "left",
|
|
7482
|
+
lineHeight: 1.15
|
|
7459
7483
|
},
|
|
7460
7484
|
children: "Points where donors exit the donation flow"
|
|
7461
7485
|
}), /*#__PURE__*/jsx(Box, {
|
|
@@ -18068,14 +18092,16 @@ var EmailTrendCard = function EmailTrendCard(_ref) {
|
|
|
18068
18092
|
sx: {
|
|
18069
18093
|
fontWeight: 700,
|
|
18070
18094
|
fontSize: "18px",
|
|
18071
|
-
color: "#000"
|
|
18095
|
+
color: "#000",
|
|
18096
|
+
lineHeight: 1.15
|
|
18072
18097
|
},
|
|
18073
18098
|
children: title
|
|
18074
18099
|
}), /*#__PURE__*/jsx(Typography, {
|
|
18075
18100
|
sx: {
|
|
18076
18101
|
fontSize: "12px",
|
|
18077
18102
|
color: "rgba(0, 0, 0, 0.4)",
|
|
18078
|
-
fontWeight: 500
|
|
18103
|
+
fontWeight: 500,
|
|
18104
|
+
lineHeight: 1.15
|
|
18079
18105
|
},
|
|
18080
18106
|
children: subtitle
|
|
18081
18107
|
})]
|