impaktapps-design 0.2.92 → 0.2.94
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/impaktapps-design.es.js +60 -89
- package/dist/impaktapps-design.umd.js +12 -13
- package/package.json +1 -4
- package/src/component/Legend.tsx +1 -1
- package/src/component/LineGraph/DrawLineGraph.tsx +6 -6
- package/src/component/PieGraph/DrawPieGraph.tsx +8 -18
- package/src/component/ProgressBar/ProgressBar.tsx +3 -7
- package/src/utils/finalDataProvider.ts +12 -19
- package/dist/impaktapps-design.es.js.map +0 -1
- package/dist/impaktapps-design.umd.js.map +0 -1
|
@@ -10873,23 +10873,23 @@ function Legend({
|
|
|
10873
10873
|
colorRange,
|
|
10874
10874
|
dataKeyArray
|
|
10875
10875
|
}) {
|
|
10876
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k
|
|
10876
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
10877
10877
|
const legendGlyphSize = ((_b = (_a = value == null ? void 0 : value.main) == null ? void 0 : _a.legend) == null ? void 0 : _b.colorRectWidth) || 15;
|
|
10878
10878
|
const ordinalColorScale = createOrdinalScale$1({
|
|
10879
10879
|
domain: dataKeyArray || ((_c = value == null ? void 0 : value.main) == null ? void 0 : _c.tooltipDataKey),
|
|
10880
|
-
range: colorRange || ((_e = (_d = value == null ? void 0 : value.style) == null ? void 0 : _d.
|
|
10880
|
+
range: colorRange || ((_e = (_d = value == null ? void 0 : value.style) == null ? void 0 : _d.pieStyle) == null ? void 0 : _e.colorRange)
|
|
10881
10881
|
});
|
|
10882
10882
|
return /* @__PURE__ */ jsxs("div", {
|
|
10883
10883
|
className: "legend",
|
|
10884
10884
|
style: {
|
|
10885
10885
|
paddingLeft: "40px",
|
|
10886
10886
|
paddingRight: "40px",
|
|
10887
|
-
...(
|
|
10887
|
+
...(_g = (_f = value == null ? void 0 : value.style) == null ? void 0 : _f.legendStyle) == null ? void 0 : _g.legend
|
|
10888
10888
|
},
|
|
10889
10889
|
children: [/* @__PURE__ */ jsx("div", {
|
|
10890
10890
|
className: "title",
|
|
10891
|
-
style: (
|
|
10892
|
-
children: (
|
|
10891
|
+
style: (_i = (_h = value == null ? void 0 : value.style) == null ? void 0 : _h.legendStyle) == null ? void 0 : _i.legendTitle,
|
|
10892
|
+
children: (_k = (_j = value == null ? void 0 : value.main) == null ? void 0 : _j.legend) == null ? void 0 : _k.legendTitle
|
|
10893
10893
|
}), /* @__PURE__ */ jsx(Ordinal, {
|
|
10894
10894
|
scale: ordinalColorScale,
|
|
10895
10895
|
labelFormat: (label) => `${label.toUpperCase()}`,
|
|
@@ -11384,32 +11384,15 @@ ParentSize$1.propTypes = {
|
|
|
11384
11384
|
children: PropTypes.func.isRequired
|
|
11385
11385
|
};
|
|
11386
11386
|
const Product1 = [
|
|
11387
|
-
{
|
|
11388
|
-
|
|
11389
|
-
|
|
11390
|
-
|
|
11391
|
-
|
|
11392
|
-
|
|
11393
|
-
{ "x": "04:00", "y": 114 },
|
|
11394
|
-
{ "x": "05:00", "y": 108 },
|
|
11395
|
-
{ "x": "06:00", "y": 123 },
|
|
11396
|
-
{ "x": "07:00", "y": 128 },
|
|
11397
|
-
{ "x": "08:00", "y": 134 },
|
|
11398
|
-
{ "x": "09:00", "y": 131 },
|
|
11399
|
-
{ "x": "10:00", "y": 134 },
|
|
11400
|
-
{ "x": "11:00", "y": 118 },
|
|
11401
|
-
{ "x": "11:00", "y": 10 },
|
|
11402
|
-
{ "x": "12:00", "y": 130 },
|
|
11403
|
-
{ "x": "13:00", "y": 133 },
|
|
11404
|
-
{ "x": "14:00", "y": 132 },
|
|
11405
|
-
{ "x": "15:00", "y": 1 },
|
|
11406
|
-
{ "x": "15:00", "y": 137 },
|
|
11407
|
-
{ "x": "16:00", "y": 120 }
|
|
11408
|
-
]
|
|
11409
|
-
}
|
|
11387
|
+
{ x: "a", y: 100 },
|
|
11388
|
+
{ x: "b", y: 50 },
|
|
11389
|
+
{ x: "c", y: 100 },
|
|
11390
|
+
{ x: "d", y: 80 },
|
|
11391
|
+
{ x: "f", y: 100 },
|
|
11392
|
+
{ x: "g", y: 50 }
|
|
11410
11393
|
];
|
|
11411
11394
|
const finalDataProvider = (type2, value, theme) => {
|
|
11412
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t5, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F
|
|
11395
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t5, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F;
|
|
11413
11396
|
switch (type2) {
|
|
11414
11397
|
case "BarGraph":
|
|
11415
11398
|
case "StackBarGraph":
|
|
@@ -11485,7 +11468,7 @@ const finalDataProvider = (type2, value, theme) => {
|
|
|
11485
11468
|
case "PieGraph":
|
|
11486
11469
|
return {
|
|
11487
11470
|
main: {
|
|
11488
|
-
data: ((_h = value == null ? void 0 : value.main) == null ? void 0 : _h.data)
|
|
11471
|
+
data: ((_h = value == null ? void 0 : value.main) == null ? void 0 : _h.data) || [{ branch: "Kotak", value: 500 }, { branch: "SBI", value: 700 }, { branch: "HDFC", value: 900 }],
|
|
11489
11472
|
header: "Pie Graph",
|
|
11490
11473
|
bottomLabel: "Name of Employe",
|
|
11491
11474
|
leftLabel: "Value",
|
|
@@ -11499,7 +11482,7 @@ const finalDataProvider = (type2, value, theme) => {
|
|
|
11499
11482
|
legendTitle: "Our Assests",
|
|
11500
11483
|
direction: "row",
|
|
11501
11484
|
align: "right",
|
|
11502
|
-
...(
|
|
11485
|
+
...(_i = value == null ? void 0 : value.main) == null ? void 0 : _i.legend
|
|
11503
11486
|
}
|
|
11504
11487
|
},
|
|
11505
11488
|
style: {
|
|
@@ -11509,7 +11492,7 @@ const finalDataProvider = (type2, value, theme) => {
|
|
|
11509
11492
|
height: "310",
|
|
11510
11493
|
borderRadius: "20px",
|
|
11511
11494
|
padding: "10px 0 2px 0",
|
|
11512
|
-
...(
|
|
11495
|
+
...(_j = value == null ? void 0 : value.style) == null ? void 0 : _j.containerStyle
|
|
11513
11496
|
},
|
|
11514
11497
|
headerStyle: {
|
|
11515
11498
|
fontWeight: 500,
|
|
@@ -11520,17 +11503,17 @@ const finalDataProvider = (type2, value, theme) => {
|
|
|
11520
11503
|
width: "100%",
|
|
11521
11504
|
fontSize: "18px",
|
|
11522
11505
|
color: theme.palette.text.primary,
|
|
11523
|
-
...(
|
|
11506
|
+
...(_k = value == null ? void 0 : value.style) == null ? void 0 : _k.headerStyle
|
|
11524
11507
|
},
|
|
11525
11508
|
tooltipStyle: {
|
|
11526
|
-
...(
|
|
11509
|
+
...(_l = value == null ? void 0 : value.style) == null ? void 0 : _l.tooltipStyle
|
|
11527
11510
|
},
|
|
11528
11511
|
labelStyle: {
|
|
11529
11512
|
labelColor: theme.palette.text.primary,
|
|
11530
11513
|
labelOffset: 45,
|
|
11531
11514
|
leftLabelMargin: "70",
|
|
11532
11515
|
topLabelMargin: "-40",
|
|
11533
|
-
...(
|
|
11516
|
+
...(_m = value == null ? void 0 : value.style) == null ? void 0 : _m.labelStyle
|
|
11534
11517
|
},
|
|
11535
11518
|
legendStyle: {
|
|
11536
11519
|
legend: {
|
|
@@ -11543,34 +11526,33 @@ const finalDataProvider = (type2, value, theme) => {
|
|
|
11543
11526
|
border: "1px solid rgba(255, 255, 255, 0.3)",
|
|
11544
11527
|
borderRadius: " 8px",
|
|
11545
11528
|
margin: "5px 5px",
|
|
11546
|
-
...(
|
|
11529
|
+
...(_o = (_n = value == null ? void 0 : value.style) == null ? void 0 : _n.legendStyle) == null ? void 0 : _o.legend
|
|
11547
11530
|
},
|
|
11548
11531
|
legendTitle: {
|
|
11549
11532
|
fontWeight: 500,
|
|
11550
11533
|
marginBottom: "5px",
|
|
11551
11534
|
fontFamily: "roboto",
|
|
11552
11535
|
fontSize: "10px",
|
|
11553
|
-
...(
|
|
11536
|
+
...(_q = (_p = value == null ? void 0 : value.style) == null ? void 0 : _p.legendStyle) == null ? void 0 : _q.legendTitle
|
|
11554
11537
|
}
|
|
11555
11538
|
},
|
|
11556
11539
|
pieStyle: {
|
|
11557
|
-
colorRange:
|
|
11540
|
+
colorRange: ["#3f51b5", "rgba(200,0,31,0.9)", "rgba(25,200,205,0.6)"],
|
|
11558
11541
|
outerRadius: 120,
|
|
11559
11542
|
innerRadius: 60,
|
|
11560
11543
|
cornerRadius: 2,
|
|
11561
11544
|
padAngle: 6e-3,
|
|
11562
|
-
...(
|
|
11545
|
+
...(_r = value == null ? void 0 : value.style) == null ? void 0 : _r.pieStyle
|
|
11563
11546
|
}
|
|
11564
11547
|
}
|
|
11565
11548
|
};
|
|
11566
11549
|
case "LineGraph":
|
|
11567
11550
|
return {
|
|
11568
11551
|
main: {
|
|
11569
|
-
data: ((
|
|
11552
|
+
data: ((_s = value == null ? void 0 : value.main) == null ? void 0 : _s.data) || [Product1],
|
|
11570
11553
|
header: "Line Graph Dynamic",
|
|
11571
11554
|
bottomLabel: "Name of Employe",
|
|
11572
11555
|
leftLabel: "Value",
|
|
11573
|
-
legendAvailable: true,
|
|
11574
11556
|
gridHidden: true,
|
|
11575
11557
|
numHidden: false,
|
|
11576
11558
|
tooltipDataKey: ["MAMA New Project", "Second", "Third"],
|
|
@@ -11581,10 +11563,11 @@ const finalDataProvider = (type2, value, theme) => {
|
|
|
11581
11563
|
...value == null ? void 0 : value.main,
|
|
11582
11564
|
legend: {
|
|
11583
11565
|
labelColor: theme.palette.text.primary,
|
|
11566
|
+
legendTitle: "Our Assests",
|
|
11584
11567
|
direction: "row",
|
|
11585
11568
|
align: "right",
|
|
11586
11569
|
colorRectWidth: 20,
|
|
11587
|
-
...(
|
|
11570
|
+
...(_t5 = value == null ? void 0 : value.main) == null ? void 0 : _t5.legend
|
|
11588
11571
|
}
|
|
11589
11572
|
},
|
|
11590
11573
|
style: {
|
|
@@ -11594,7 +11577,7 @@ const finalDataProvider = (type2, value, theme) => {
|
|
|
11594
11577
|
height: "300",
|
|
11595
11578
|
borderRadius: "20px",
|
|
11596
11579
|
padding: "10px 0 2px 0",
|
|
11597
|
-
...(
|
|
11580
|
+
...(_u = value == null ? void 0 : value.style) == null ? void 0 : _u.containerStyle
|
|
11598
11581
|
},
|
|
11599
11582
|
headerStyle: {
|
|
11600
11583
|
fontWeight: 500,
|
|
@@ -11605,35 +11588,35 @@ const finalDataProvider = (type2, value, theme) => {
|
|
|
11605
11588
|
width: "100%",
|
|
11606
11589
|
fontSize: "18px",
|
|
11607
11590
|
color: theme.palette.text.primary,
|
|
11608
|
-
...(
|
|
11591
|
+
...(_v = value == null ? void 0 : value.style) == null ? void 0 : _v.headerStyle
|
|
11609
11592
|
},
|
|
11610
11593
|
labelStyle: {
|
|
11611
11594
|
labelColor: theme.palette.text.primary,
|
|
11612
11595
|
bottomLabelOffset: 20,
|
|
11613
11596
|
leftLabelOffset: 50,
|
|
11614
11597
|
leftLabelMargin: 80,
|
|
11615
|
-
...(
|
|
11598
|
+
...(_w = value == null ? void 0 : value.style) == null ? void 0 : _w.labelStyle
|
|
11616
11599
|
},
|
|
11617
11600
|
lineStyle: {
|
|
11618
|
-
colorRange:
|
|
11601
|
+
colorRange: ["#3f51b5", "rgba(200,0,31,0.9)", "rgba(25,200,205,0.6)"],
|
|
11619
11602
|
lineAreaColor: "none",
|
|
11620
11603
|
lineAreaOpacity: 0.2,
|
|
11621
|
-
...(
|
|
11604
|
+
...(_x = value == null ? void 0 : value.style) == null ? void 0 : _x.lineStyle
|
|
11622
11605
|
}
|
|
11623
11606
|
}
|
|
11624
11607
|
};
|
|
11625
11608
|
case "HorizontalBarGraph":
|
|
11626
11609
|
return {
|
|
11627
11610
|
main: {
|
|
11628
|
-
data: ((
|
|
11611
|
+
data: ((_y = value == null ? void 0 : value.main) == null ? void 0 : _y.data) || [{ y: "Anant Sharma", x: 60 }, { y: "Pankaj Chauhan", x: 60 }, { y: "satendra Raghav", x: 150 }, { y: "Vivek Pahadi", x: 80 }, { y: "Siddarth verma", x: 100 }],
|
|
11629
11612
|
header: " ",
|
|
11630
11613
|
bottomLabel: "Name of Employe",
|
|
11631
11614
|
leftLabel: "Value",
|
|
11632
11615
|
axisLeft: true,
|
|
11633
11616
|
axisBottom: true,
|
|
11634
11617
|
hideBottomTicks: false,
|
|
11635
|
-
hideLeftTicks: ((
|
|
11636
|
-
hideLeftAxisLine: ((
|
|
11618
|
+
hideLeftTicks: ((_z = value == null ? void 0 : value.main) == null ? void 0 : _z.data) ? true : false,
|
|
11619
|
+
hideLeftAxisLine: ((_A = value == null ? void 0 : value.main) == null ? void 0 : _A.data) ? true : false,
|
|
11637
11620
|
hideBottomAxisLine: false,
|
|
11638
11621
|
bottomAxisWidth: "10px",
|
|
11639
11622
|
...value.main
|
|
@@ -11645,7 +11628,7 @@ const finalDataProvider = (type2, value, theme) => {
|
|
|
11645
11628
|
height: "300",
|
|
11646
11629
|
borderRadius: "20px",
|
|
11647
11630
|
padding: "10px 0 2px 0",
|
|
11648
|
-
...(
|
|
11631
|
+
...(_B = value == null ? void 0 : value.style) == null ? void 0 : _B.containerStyle
|
|
11649
11632
|
},
|
|
11650
11633
|
headerStyle: {
|
|
11651
11634
|
fontWeight: 500,
|
|
@@ -11656,12 +11639,12 @@ const finalDataProvider = (type2, value, theme) => {
|
|
|
11656
11639
|
width: "100%",
|
|
11657
11640
|
fontSize: "18px",
|
|
11658
11641
|
color: theme.palette.text.primary,
|
|
11659
|
-
...(
|
|
11642
|
+
...(_C = value == null ? void 0 : value.style) == null ? void 0 : _C.headerStyle
|
|
11660
11643
|
},
|
|
11661
11644
|
tooltipStyle: {
|
|
11662
11645
|
padding: "6px",
|
|
11663
11646
|
borderRadius: "2px",
|
|
11664
|
-
...(
|
|
11647
|
+
...(_D = value == null ? void 0 : value.style) == null ? void 0 : _D.tooltipStyle
|
|
11665
11648
|
},
|
|
11666
11649
|
labelStyle: {
|
|
11667
11650
|
margin: { top: 10, left: 110, right: 40, bottom: 40 },
|
|
@@ -11672,11 +11655,11 @@ const finalDataProvider = (type2, value, theme) => {
|
|
|
11672
11655
|
tickColor: theme.palette.text.primary,
|
|
11673
11656
|
rightAxisWidth: "0.3px",
|
|
11674
11657
|
fontSize: "10px",
|
|
11675
|
-
...(
|
|
11658
|
+
...(_E = value == null ? void 0 : value.style) == null ? void 0 : _E.labelStyle
|
|
11676
11659
|
},
|
|
11677
11660
|
barStyle: {
|
|
11678
11661
|
color: "#6c5efb",
|
|
11679
|
-
...(
|
|
11662
|
+
...(_F = value == null ? void 0 : value.style) == null ? void 0 : _F.barStyle
|
|
11680
11663
|
}
|
|
11681
11664
|
}
|
|
11682
11665
|
};
|
|
@@ -11720,21 +11703,14 @@ const DrawPieGraph = ({
|
|
|
11720
11703
|
parentWidth,
|
|
11721
11704
|
parentHeight
|
|
11722
11705
|
}) => {
|
|
11723
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
11706
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
|
|
11724
11707
|
const letters = (_a = value == null ? void 0 : value.main) == null ? void 0 : _a.data;
|
|
11725
|
-
const
|
|
11726
|
-
const
|
|
11727
|
-
const
|
|
11728
|
-
|
|
11729
|
-
|
|
11730
|
-
|
|
11731
|
-
var _a2, _b2;
|
|
11732
|
-
return createOrdinalScale$1({
|
|
11733
|
-
domain: letters.map((l2) => l2[arr[index2]]),
|
|
11734
|
-
range: (_b2 = (_a2 = value == null ? void 0 : value.style) == null ? void 0 : _a2.pieStyle) == null ? void 0 : _b2.colorRange
|
|
11735
|
-
})(letter);
|
|
11736
|
-
};
|
|
11737
|
-
const dataKeyArray = letters.map((data) => data.label);
|
|
11708
|
+
const arr = ((_b = value == null ? void 0 : value.main) == null ? void 0 : _b.xAxisValue) && ((_c = value == null ? void 0 : value.main) == null ? void 0 : _c.yAxisValue) ? [(_d = value == null ? void 0 : value.main) == null ? void 0 : _d.xAxisValue, (_e = value == null ? void 0 : value.main) == null ? void 0 : _e.yAxisValue] : Object.keys(letters[0]);
|
|
11709
|
+
const frequency = (d2) => d2[arr[1]];
|
|
11710
|
+
const getLetterFrequencyColor = createOrdinalScale$1({
|
|
11711
|
+
domain: letters.map((l2) => l2[arr[0]]),
|
|
11712
|
+
range: (_g = (_f = value == null ? void 0 : value.style) == null ? void 0 : _f.pieStyle) == null ? void 0 : _g.colorRange
|
|
11713
|
+
});
|
|
11738
11714
|
const {
|
|
11739
11715
|
tooltipData,
|
|
11740
11716
|
tooltipLeft,
|
|
@@ -11758,9 +11734,8 @@ const DrawPieGraph = ({
|
|
|
11758
11734
|
const top2 = centerY + 20;
|
|
11759
11735
|
const pieSortValues = (a2, b10) => a2 - b10;
|
|
11760
11736
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
11761
|
-
children: [((
|
|
11762
|
-
value
|
|
11763
|
-
dataKeyArray
|
|
11737
|
+
children: [((_h = value == null ? void 0 : value.main) == null ? void 0 : _h.legendAvailable) && /* @__PURE__ */ jsx(Legend, {
|
|
11738
|
+
value
|
|
11764
11739
|
}), /* @__PURE__ */ jsx("svg", {
|
|
11765
11740
|
width: parentWidth,
|
|
11766
11741
|
height: parentHeight,
|
|
@@ -11772,18 +11747,17 @@ const DrawPieGraph = ({
|
|
|
11772
11747
|
data: letters,
|
|
11773
11748
|
pieSortValues,
|
|
11774
11749
|
pieValue: frequency,
|
|
11775
|
-
outerRadius: (
|
|
11776
|
-
innerRadius: (
|
|
11777
|
-
cornerRadius: (
|
|
11778
|
-
padAngle: (
|
|
11750
|
+
outerRadius: (_j = (_i = value == null ? void 0 : value.style) == null ? void 0 : _i.pieStyle) == null ? void 0 : _j.outerRadius,
|
|
11751
|
+
innerRadius: (_l = (_k = value == null ? void 0 : value.style) == null ? void 0 : _k.pieStyle) == null ? void 0 : _l.innerRadius,
|
|
11752
|
+
cornerRadius: (_n = (_m = value == null ? void 0 : value.style) == null ? void 0 : _m.pieStyle) == null ? void 0 : _n.cornerRadius,
|
|
11753
|
+
padAngle: (_p = (_o = value == null ? void 0 : value.style) == null ? void 0 : _o.pieStyle) == null ? void 0 : _p.padAngle,
|
|
11779
11754
|
children: (pie2) => {
|
|
11780
11755
|
return pie2.arcs.map((arc2, index2) => {
|
|
11781
11756
|
var _a2, _b2, _c2, _d2;
|
|
11782
|
-
const
|
|
11783
|
-
const letter = arc2.data[arr[indexParam]];
|
|
11757
|
+
const letter = ((_b2 = (_a2 = value == null ? void 0 : value.style) == null ? void 0 : _a2.pieStyle) == null ? void 0 : _b2.showPieLabel) ? arc2.data[arr[0]] : arc2.data[arr[1]];
|
|
11784
11758
|
const [centriodX, centriodY] = pie2.path.centroid(arc2);
|
|
11785
11759
|
const arcPath = pie2.path(arc2);
|
|
11786
|
-
const arcFill = getLetterFrequencyColor(letter
|
|
11760
|
+
const arcFill = getLetterFrequencyColor(letter);
|
|
11787
11761
|
return /* @__PURE__ */ jsxs("g", {
|
|
11788
11762
|
onMouseOut: hideTooltip,
|
|
11789
11763
|
onMouseOver: (e3) => handleMouse(e3, arc2.data),
|
|
@@ -19802,16 +19776,14 @@ const DrawGraph = ({
|
|
|
19802
19776
|
}) => {
|
|
19803
19777
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
|
|
19804
19778
|
const data = (_a = value == null ? void 0 : value.main) == null ? void 0 : _a.data;
|
|
19805
|
-
const arr = value.main.xAxisValue && value.main.yAxisValue ? [value.main.xAxisValue, value.main.yAxisValue] : Object.keys(data[0]
|
|
19779
|
+
const arr = value.main.xAxisValue && value.main.yAxisValue ? [value.main.xAxisValue, value.main.yAxisValue] : Object.keys(data[0][0]);
|
|
19806
19780
|
const accessors = {
|
|
19807
19781
|
xAccessor: (d2) => d2[arr[0]],
|
|
19808
19782
|
yAccessor: (d2) => d2[arr[1]]
|
|
19809
19783
|
};
|
|
19810
|
-
const dataKeyArray = data.map((ele) => ele.key);
|
|
19811
19784
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
19812
19785
|
children: [value.main.legendAvailable && /* @__PURE__ */ jsx(Legend, {
|
|
19813
|
-
value
|
|
19814
|
-
dataKeyArray
|
|
19786
|
+
value
|
|
19815
19787
|
}), /* @__PURE__ */ jsxs(XYChart, {
|
|
19816
19788
|
height: parseInt((_c = (_b = value.style) == null ? void 0 : _b.containerStyle) == null ? void 0 : _c.height),
|
|
19817
19789
|
xScale: {
|
|
@@ -19853,12 +19825,12 @@ const DrawGraph = ({
|
|
|
19853
19825
|
labelOffset: ((_q = (_p = value.style) == null ? void 0 : _p.labelStyle) == null ? void 0 : _q.bottomLabelOffset) || 32
|
|
19854
19826
|
}), /* @__PURE__ */ jsx(AnimatedGrid, {
|
|
19855
19827
|
columns: value.main.grid,
|
|
19856
|
-
numTicks: value.main.numHidden ? 0 : ((_r = value.main) == null ? void 0 : _r.data[0].
|
|
19828
|
+
numTicks: value.main.numHidden ? 0 : ((_r = value.main) == null ? void 0 : _r.data[0].length) - 1
|
|
19857
19829
|
}), (_s = value.main) == null ? void 0 : _s.data.map((elem, i) => {
|
|
19858
19830
|
var _a2, _b2, _c2, _d2, _e2, _f2;
|
|
19859
19831
|
return /* @__PURE__ */ jsx(AnimatedLineSeries, {
|
|
19860
|
-
dataKey:
|
|
19861
|
-
data: elem
|
|
19832
|
+
dataKey: value.main.tooltipDataKey[i],
|
|
19833
|
+
data: elem,
|
|
19862
19834
|
fill: (_b2 = (_a2 = value.style) == null ? void 0 : _a2.lineStyle) == null ? void 0 : _b2.lineAreaColor,
|
|
19863
19835
|
fillOpacity: (_d2 = (_c2 = value.style) == null ? void 0 : _c2.lineStyle) == null ? void 0 : _d2.lineAreaOpacity,
|
|
19864
19836
|
floodColor: "green",
|
|
@@ -20069,7 +20041,7 @@ const ProgressBar = ({
|
|
|
20069
20041
|
value,
|
|
20070
20042
|
theme
|
|
20071
20043
|
}) => {
|
|
20072
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t5, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R
|
|
20044
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t5, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R;
|
|
20073
20045
|
const [progress2, setProgress] = useState(((_b = (_a = value == null ? void 0 : value.main) == null ? void 0 : _a.data) == null ? void 0 : _b.achieved) / ((_d = (_c = value == null ? void 0 : value.main) == null ? void 0 : _c.data) == null ? void 0 : _d.total) * 100);
|
|
20074
20046
|
useEffect(() => {
|
|
20075
20047
|
var _a2, _b2, _c2, _d2;
|
|
@@ -20238,7 +20210,7 @@ const ProgressBar = ({
|
|
|
20238
20210
|
color: ((_L = (_K = theme == null ? void 0 : theme.palette) == null ? void 0 : _K.text) == null ? void 0 : _L.primary) || "#121926",
|
|
20239
20211
|
fontWeight: 500
|
|
20240
20212
|
},
|
|
20241
|
-
children: ((
|
|
20213
|
+
children: ((_N = (_M = value == null ? void 0 : value.main) == null ? void 0 : _M.data) == null ? void 0 : _N.remaining) || ((_P = (_O = value == null ? void 0 : value.main) == null ? void 0 : _O.data) == null ? void 0 : _P.total) - ((_R = (_Q = value == null ? void 0 : value.main) == null ? void 0 : _Q.data) == null ? void 0 : _R.achieved)
|
|
20242
20214
|
})]
|
|
20243
20215
|
})]
|
|
20244
20216
|
})]
|
|
@@ -44002,4 +43974,3 @@ const CustomTimer = ({
|
|
|
44002
43974
|
});
|
|
44003
43975
|
};
|
|
44004
43976
|
export { BarGraph, ImpaktAppsCard as Card, HorizontalBarGraph, LineGraph, PieGraph, ProgressBar, SpeedoMeter, CustomTimer as Timer };
|
|
44005
|
-
//# sourceMappingURL=impaktapps-design.es.js.map
|