@databrainhq/plugin 0.9.14 → 0.9.15
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/components/ChartPopup/index.d.ts +2 -3
- package/dist/components/Charts/AreaChart.d.ts +1 -1
- package/dist/components/Charts/BarChart.d.ts +4 -2
- package/dist/components/Charts/BoxPlot.d.ts +1 -1
- package/dist/components/Charts/BubbleChart.d.ts +1 -1
- package/dist/components/Charts/ComboChart.d.ts +1 -1
- package/dist/components/Charts/DoughnutChart.d.ts +1 -1
- package/dist/components/Charts/FunnelChart.d.ts +1 -1
- package/dist/components/Charts/GaugeChart.d.ts +1 -1
- package/dist/components/Charts/Histogram.d.ts +1 -1
- package/dist/components/Charts/LineChart.d.ts +4 -2
- package/dist/components/Charts/PieChart.d.ts +1 -1
- package/dist/components/Charts/RowChart.d.ts +1 -1
- package/dist/components/Charts/SankeyChart.d.ts +1 -1
- package/dist/components/Charts/ScatterChart.d.ts +1 -1
- package/dist/components/Charts/StackedBarChart.d.ts +1 -1
- package/dist/components/Charts/SteppedAreaChart.d.ts +1 -1
- package/dist/components/Charts/WaterfallChart.d.ts +1 -1
- package/dist/components/MetricChart/MetricChart.d.ts +4 -2
- package/dist/index.es.js +282 -161
- package/dist/index.umd.js +63 -63
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -79640,7 +79640,9 @@ const AreaChart = ({
|
|
|
79640
79640
|
backGroundColor,
|
|
79641
79641
|
customSettings,
|
|
79642
79642
|
chartRef,
|
|
79643
|
-
|
|
79643
|
+
handleChartClick: handleChartClick2,
|
|
79644
|
+
setShowChartPopup,
|
|
79645
|
+
drilldown: drilldown2
|
|
79644
79646
|
}) => {
|
|
79645
79647
|
var _a2;
|
|
79646
79648
|
const option2 = {
|
|
@@ -79743,12 +79745,14 @@ const AreaChart = ({
|
|
|
79743
79745
|
option: option2,
|
|
79744
79746
|
onEvents: {
|
|
79745
79747
|
click: (params) => {
|
|
79746
|
-
if (
|
|
79747
|
-
|
|
79748
|
+
if (handleChartClick2)
|
|
79749
|
+
handleChartClick2(params);
|
|
79750
|
+
drilldown2 == null ? void 0 : drilldown2();
|
|
79748
79751
|
},
|
|
79749
79752
|
contextmenu: (params) => {
|
|
79750
|
-
if (
|
|
79751
|
-
|
|
79753
|
+
if (handleChartClick2)
|
|
79754
|
+
handleChartClick2(params);
|
|
79755
|
+
setShowChartPopup(true);
|
|
79752
79756
|
}
|
|
79753
79757
|
}
|
|
79754
79758
|
})
|
|
@@ -79764,7 +79768,9 @@ const BarChart = ({
|
|
|
79764
79768
|
margins,
|
|
79765
79769
|
customSettings,
|
|
79766
79770
|
chartRef,
|
|
79767
|
-
|
|
79771
|
+
handleChartClick: handleChartClick2,
|
|
79772
|
+
setShowChartPopup,
|
|
79773
|
+
drilldown: drilldown2
|
|
79768
79774
|
}) => {
|
|
79769
79775
|
var _a2, _b2;
|
|
79770
79776
|
const option2 = {
|
|
@@ -79869,12 +79875,14 @@ const BarChart = ({
|
|
|
79869
79875
|
option: option2,
|
|
79870
79876
|
onEvents: {
|
|
79871
79877
|
click: (params) => {
|
|
79872
|
-
if (
|
|
79873
|
-
|
|
79878
|
+
if (handleChartClick2)
|
|
79879
|
+
handleChartClick2(params);
|
|
79880
|
+
drilldown2 == null ? void 0 : drilldown2();
|
|
79874
79881
|
},
|
|
79875
79882
|
contextmenu: (params) => {
|
|
79876
|
-
if (
|
|
79877
|
-
|
|
79883
|
+
if (handleChartClick2)
|
|
79884
|
+
handleChartClick2(params);
|
|
79885
|
+
setShowChartPopup(true);
|
|
79878
79886
|
}
|
|
79879
79887
|
}
|
|
79880
79888
|
})
|
|
@@ -79889,7 +79897,9 @@ const ComboChart = ({
|
|
|
79889
79897
|
backGroundColor,
|
|
79890
79898
|
customSettings,
|
|
79891
79899
|
chartRef,
|
|
79892
|
-
|
|
79900
|
+
handleChartClick: handleChartClick2,
|
|
79901
|
+
setShowChartPopup,
|
|
79902
|
+
drilldown: drilldown2
|
|
79893
79903
|
}) => {
|
|
79894
79904
|
var _a2;
|
|
79895
79905
|
const choice = ["bar", "line"];
|
|
@@ -80018,12 +80028,14 @@ const ComboChart = ({
|
|
|
80018
80028
|
ref: chartRef,
|
|
80019
80029
|
onEvents: {
|
|
80020
80030
|
click: (params) => {
|
|
80021
|
-
if (
|
|
80022
|
-
|
|
80031
|
+
if (handleChartClick2)
|
|
80032
|
+
handleChartClick2(params);
|
|
80033
|
+
drilldown2 == null ? void 0 : drilldown2();
|
|
80023
80034
|
},
|
|
80024
80035
|
contextmenu: (params) => {
|
|
80025
|
-
if (
|
|
80026
|
-
|
|
80036
|
+
if (handleChartClick2)
|
|
80037
|
+
handleChartClick2(params);
|
|
80038
|
+
setShowChartPopup(true);
|
|
80027
80039
|
}
|
|
80028
80040
|
}
|
|
80029
80041
|
})
|
|
@@ -80038,7 +80050,9 @@ const LineChart = ({
|
|
|
80038
80050
|
colors: colors2,
|
|
80039
80051
|
customSettings,
|
|
80040
80052
|
chartRef,
|
|
80041
|
-
|
|
80053
|
+
handleChartClick: handleChartClick2,
|
|
80054
|
+
setShowChartPopup,
|
|
80055
|
+
drilldown: drilldown2
|
|
80042
80056
|
}) => {
|
|
80043
80057
|
var _a2, _b2;
|
|
80044
80058
|
const option2 = {
|
|
@@ -80137,12 +80151,14 @@ const LineChart = ({
|
|
|
80137
80151
|
ref: chartRef,
|
|
80138
80152
|
onEvents: {
|
|
80139
80153
|
click: (params) => {
|
|
80140
|
-
if (
|
|
80141
|
-
|
|
80154
|
+
if (handleChartClick2)
|
|
80155
|
+
handleChartClick2(params);
|
|
80156
|
+
drilldown2 == null ? void 0 : drilldown2();
|
|
80142
80157
|
},
|
|
80143
80158
|
contextmenu: (params) => {
|
|
80144
|
-
if (
|
|
80145
|
-
|
|
80159
|
+
if (handleChartClick2)
|
|
80160
|
+
handleChartClick2(params);
|
|
80161
|
+
setShowChartPopup(true);
|
|
80146
80162
|
}
|
|
80147
80163
|
}
|
|
80148
80164
|
})
|
|
@@ -80155,7 +80171,9 @@ const PieChart = ({
|
|
|
80155
80171
|
labelSettings,
|
|
80156
80172
|
chartRef,
|
|
80157
80173
|
colors: colors2,
|
|
80158
|
-
|
|
80174
|
+
handleChartClick: handleChartClick2,
|
|
80175
|
+
setShowChartPopup,
|
|
80176
|
+
drilldown: drilldown2
|
|
80159
80177
|
}) => {
|
|
80160
80178
|
var _a2, _b2, _c2, _d;
|
|
80161
80179
|
if (((_b2 = (_a2 = data == null ? void 0 : data.datasets[0]) == null ? void 0 : _a2.data) == null ? void 0 : _b2.length) > 1) {
|
|
@@ -80241,12 +80259,12 @@ const PieChart = ({
|
|
|
80241
80259
|
option: option22,
|
|
80242
80260
|
onEvents: {
|
|
80243
80261
|
click: (params) => {
|
|
80244
|
-
|
|
80245
|
-
|
|
80262
|
+
handleChartClick2(params);
|
|
80263
|
+
drilldown2 == null ? void 0 : drilldown2();
|
|
80246
80264
|
},
|
|
80247
80265
|
contextmenu: (params) => {
|
|
80248
|
-
|
|
80249
|
-
|
|
80266
|
+
handleChartClick2(params);
|
|
80267
|
+
setShowChartPopup(true);
|
|
80250
80268
|
}
|
|
80251
80269
|
},
|
|
80252
80270
|
ref: chartRef
|
|
@@ -80316,12 +80334,14 @@ const PieChart = ({
|
|
|
80316
80334
|
option: option2,
|
|
80317
80335
|
onEvents: {
|
|
80318
80336
|
click: (params) => {
|
|
80319
|
-
if (
|
|
80320
|
-
|
|
80337
|
+
if (handleChartClick2)
|
|
80338
|
+
handleChartClick2(params);
|
|
80339
|
+
drilldown2 == null ? void 0 : drilldown2();
|
|
80321
80340
|
},
|
|
80322
80341
|
contextmenu: (params) => {
|
|
80323
|
-
if (
|
|
80324
|
-
|
|
80342
|
+
if (handleChartClick2)
|
|
80343
|
+
handleChartClick2(params);
|
|
80344
|
+
setShowChartPopup(true);
|
|
80325
80345
|
}
|
|
80326
80346
|
},
|
|
80327
80347
|
ref: chartRef
|
|
@@ -80337,7 +80357,9 @@ const RowChart = ({
|
|
|
80337
80357
|
colors: colors2,
|
|
80338
80358
|
backGroundColor,
|
|
80339
80359
|
customSettings,
|
|
80340
|
-
|
|
80360
|
+
handleChartClick: handleChartClick2,
|
|
80361
|
+
setShowChartPopup,
|
|
80362
|
+
drilldown: drilldown2
|
|
80341
80363
|
}) => {
|
|
80342
80364
|
var _a2;
|
|
80343
80365
|
const option2 = {
|
|
@@ -80440,12 +80462,14 @@ const RowChart = ({
|
|
|
80440
80462
|
option: option2,
|
|
80441
80463
|
onEvents: {
|
|
80442
80464
|
click: (params) => {
|
|
80443
|
-
if (
|
|
80444
|
-
|
|
80465
|
+
if (handleChartClick2)
|
|
80466
|
+
handleChartClick2(params);
|
|
80467
|
+
drilldown2 == null ? void 0 : drilldown2();
|
|
80445
80468
|
},
|
|
80446
80469
|
contextmenu: (params) => {
|
|
80447
|
-
if (
|
|
80448
|
-
|
|
80470
|
+
if (handleChartClick2)
|
|
80471
|
+
handleChartClick2(params);
|
|
80472
|
+
setShowChartPopup(true);
|
|
80449
80473
|
}
|
|
80450
80474
|
},
|
|
80451
80475
|
ref: chartRef
|
|
@@ -80463,7 +80487,9 @@ const ScatterChart = ({
|
|
|
80463
80487
|
isEnableGroupBy,
|
|
80464
80488
|
backGroundColor,
|
|
80465
80489
|
customSettings,
|
|
80466
|
-
|
|
80490
|
+
handleChartClick: handleChartClick2,
|
|
80491
|
+
setShowChartPopup,
|
|
80492
|
+
drilldown: drilldown2
|
|
80467
80493
|
}) => {
|
|
80468
80494
|
var _a2;
|
|
80469
80495
|
const option2 = {
|
|
@@ -80560,12 +80586,14 @@ const ScatterChart = ({
|
|
|
80560
80586
|
option: option2,
|
|
80561
80587
|
onEvents: {
|
|
80562
80588
|
click: (params) => {
|
|
80563
|
-
if (
|
|
80564
|
-
|
|
80589
|
+
if (handleChartClick2)
|
|
80590
|
+
handleChartClick2(params);
|
|
80591
|
+
drilldown2 == null ? void 0 : drilldown2();
|
|
80565
80592
|
},
|
|
80566
80593
|
contextmenu: (params) => {
|
|
80567
|
-
if (
|
|
80568
|
-
|
|
80594
|
+
if (handleChartClick2)
|
|
80595
|
+
handleChartClick2(params);
|
|
80596
|
+
setShowChartPopup(true);
|
|
80569
80597
|
}
|
|
80570
80598
|
},
|
|
80571
80599
|
ref: chartRef
|
|
@@ -80581,7 +80609,9 @@ const WaterFallChart = ({
|
|
|
80581
80609
|
colors: colors2,
|
|
80582
80610
|
backGroundColor,
|
|
80583
80611
|
customSettings,
|
|
80584
|
-
|
|
80612
|
+
handleChartClick: handleChartClick2,
|
|
80613
|
+
setShowChartPopup,
|
|
80614
|
+
drilldown: drilldown2
|
|
80585
80615
|
}) => {
|
|
80586
80616
|
var _a2, _b2;
|
|
80587
80617
|
const option2 = {
|
|
@@ -80681,12 +80711,14 @@ const WaterFallChart = ({
|
|
|
80681
80711
|
option: option2,
|
|
80682
80712
|
onEvents: {
|
|
80683
80713
|
click: (params) => {
|
|
80684
|
-
if (
|
|
80685
|
-
|
|
80714
|
+
if (handleChartClick2)
|
|
80715
|
+
handleChartClick2(params);
|
|
80716
|
+
drilldown2 == null ? void 0 : drilldown2();
|
|
80686
80717
|
},
|
|
80687
80718
|
contextmenu: (params) => {
|
|
80688
|
-
if (
|
|
80689
|
-
|
|
80719
|
+
if (handleChartClick2)
|
|
80720
|
+
handleChartClick2(params);
|
|
80721
|
+
setShowChartPopup(true);
|
|
80690
80722
|
}
|
|
80691
80723
|
},
|
|
80692
80724
|
ref: chartRef
|
|
@@ -80700,7 +80732,9 @@ const FunnelChart = ({
|
|
|
80700
80732
|
labelSettings,
|
|
80701
80733
|
colors: colors2,
|
|
80702
80734
|
chartRef,
|
|
80703
|
-
|
|
80735
|
+
handleChartClick: handleChartClick2,
|
|
80736
|
+
setShowChartPopup,
|
|
80737
|
+
drilldown: drilldown2,
|
|
80704
80738
|
customSettings
|
|
80705
80739
|
}) => {
|
|
80706
80740
|
const option2 = {
|
|
@@ -80792,12 +80826,14 @@ const FunnelChart = ({
|
|
|
80792
80826
|
option: option2,
|
|
80793
80827
|
onEvents: {
|
|
80794
80828
|
click: (params) => {
|
|
80795
|
-
if (
|
|
80796
|
-
|
|
80829
|
+
if (handleChartClick2)
|
|
80830
|
+
handleChartClick2(params);
|
|
80831
|
+
drilldown2 == null ? void 0 : drilldown2();
|
|
80797
80832
|
},
|
|
80798
80833
|
contextmenu: (params) => {
|
|
80799
|
-
if (
|
|
80800
|
-
|
|
80834
|
+
if (handleChartClick2)
|
|
80835
|
+
handleChartClick2(params);
|
|
80836
|
+
setShowChartPopup(true);
|
|
80801
80837
|
}
|
|
80802
80838
|
},
|
|
80803
80839
|
ref: chartRef
|
|
@@ -80813,7 +80849,9 @@ const BubbleChart = ({
|
|
|
80813
80849
|
colors: colors2,
|
|
80814
80850
|
customSettings,
|
|
80815
80851
|
chartRef,
|
|
80816
|
-
|
|
80852
|
+
handleChartClick: handleChartClick2,
|
|
80853
|
+
setShowChartPopup,
|
|
80854
|
+
drilldown: drilldown2
|
|
80817
80855
|
}) => {
|
|
80818
80856
|
var _a2;
|
|
80819
80857
|
const modifiedData = [];
|
|
@@ -80937,12 +80975,14 @@ const BubbleChart = ({
|
|
|
80937
80975
|
option: option2,
|
|
80938
80976
|
onEvents: {
|
|
80939
80977
|
click: (params) => {
|
|
80940
|
-
if (
|
|
80941
|
-
|
|
80978
|
+
if (handleChartClick2)
|
|
80979
|
+
handleChartClick2(params);
|
|
80980
|
+
drilldown2 == null ? void 0 : drilldown2();
|
|
80942
80981
|
},
|
|
80943
80982
|
contextmenu: (params) => {
|
|
80944
|
-
if (
|
|
80945
|
-
|
|
80983
|
+
if (handleChartClick2)
|
|
80984
|
+
handleChartClick2(params);
|
|
80985
|
+
setShowChartPopup(true);
|
|
80946
80986
|
}
|
|
80947
80987
|
}
|
|
80948
80988
|
})
|
|
@@ -80955,7 +80995,9 @@ const DoughnutChart = ({
|
|
|
80955
80995
|
labelSettings,
|
|
80956
80996
|
colors: colors2,
|
|
80957
80997
|
chartRef,
|
|
80958
|
-
|
|
80998
|
+
handleChartClick: handleChartClick2,
|
|
80999
|
+
setShowChartPopup,
|
|
81000
|
+
drilldown: drilldown2
|
|
80959
81001
|
}) => {
|
|
80960
81002
|
var _a2, _b2, _c2;
|
|
80961
81003
|
if (((_a2 = data == null ? void 0 : data.labels) == null ? void 0 : _a2.length) > 1) {
|
|
@@ -81037,10 +81079,12 @@ const DoughnutChart = ({
|
|
|
81037
81079
|
option: option22,
|
|
81038
81080
|
onEvents: {
|
|
81039
81081
|
click: (params) => {
|
|
81040
|
-
|
|
81082
|
+
handleChartClick2(params);
|
|
81083
|
+
drilldown2 == null ? void 0 : drilldown2();
|
|
81041
81084
|
},
|
|
81042
81085
|
contextmenu: (params) => {
|
|
81043
|
-
|
|
81086
|
+
handleChartClick2(params);
|
|
81087
|
+
setShowChartPopup(true);
|
|
81044
81088
|
}
|
|
81045
81089
|
},
|
|
81046
81090
|
ref: chartRef
|
|
@@ -81108,12 +81152,14 @@ const DoughnutChart = ({
|
|
|
81108
81152
|
option: option2,
|
|
81109
81153
|
onEvents: {
|
|
81110
81154
|
click: (params) => {
|
|
81111
|
-
if (
|
|
81112
|
-
|
|
81155
|
+
if (handleChartClick2)
|
|
81156
|
+
handleChartClick2(params);
|
|
81157
|
+
drilldown2 == null ? void 0 : drilldown2();
|
|
81113
81158
|
},
|
|
81114
81159
|
contextmenu: (params) => {
|
|
81115
|
-
if (
|
|
81116
|
-
|
|
81160
|
+
if (handleChartClick2)
|
|
81161
|
+
handleChartClick2(params);
|
|
81162
|
+
setShowChartPopup(true);
|
|
81117
81163
|
}
|
|
81118
81164
|
},
|
|
81119
81165
|
ref: chartRef
|
|
@@ -81130,7 +81176,9 @@ const SteppedAreaChart = ({
|
|
|
81130
81176
|
colors: colors2,
|
|
81131
81177
|
backGroundColor,
|
|
81132
81178
|
customSettings,
|
|
81133
|
-
|
|
81179
|
+
handleChartClick: handleChartClick2,
|
|
81180
|
+
setShowChartPopup,
|
|
81181
|
+
drilldown: drilldown2
|
|
81134
81182
|
}) => {
|
|
81135
81183
|
var _a2;
|
|
81136
81184
|
const choice = ["start", "middle", "end"];
|
|
@@ -81231,12 +81279,14 @@ const SteppedAreaChart = ({
|
|
|
81231
81279
|
option: option2,
|
|
81232
81280
|
onEvents: {
|
|
81233
81281
|
click: (params) => {
|
|
81234
|
-
if (
|
|
81235
|
-
|
|
81282
|
+
if (handleChartClick2)
|
|
81283
|
+
handleChartClick2(params);
|
|
81284
|
+
drilldown2 == null ? void 0 : drilldown2();
|
|
81236
81285
|
},
|
|
81237
81286
|
contextmenu: (params) => {
|
|
81238
|
-
if (
|
|
81239
|
-
|
|
81287
|
+
if (handleChartClick2)
|
|
81288
|
+
handleChartClick2(params);
|
|
81289
|
+
setShowChartPopup(true);
|
|
81240
81290
|
}
|
|
81241
81291
|
},
|
|
81242
81292
|
ref: chartRef
|
|
@@ -81253,7 +81303,9 @@ const Histogram = ({
|
|
|
81253
81303
|
colors: colors2,
|
|
81254
81304
|
backGroundColor,
|
|
81255
81305
|
customSettings,
|
|
81256
|
-
|
|
81306
|
+
handleChartClick: handleChartClick2,
|
|
81307
|
+
setShowChartPopup,
|
|
81308
|
+
drilldown: drilldown2
|
|
81257
81309
|
}) => {
|
|
81258
81310
|
var _a2, _b2;
|
|
81259
81311
|
const option2 = {
|
|
@@ -81348,12 +81400,14 @@ const Histogram = ({
|
|
|
81348
81400
|
option: option2,
|
|
81349
81401
|
onEvents: {
|
|
81350
81402
|
click: (params) => {
|
|
81351
|
-
if (
|
|
81352
|
-
|
|
81403
|
+
if (handleChartClick2)
|
|
81404
|
+
handleChartClick2(params);
|
|
81405
|
+
drilldown2 == null ? void 0 : drilldown2();
|
|
81353
81406
|
},
|
|
81354
81407
|
contextmenu: (params) => {
|
|
81355
|
-
if (
|
|
81356
|
-
|
|
81408
|
+
if (handleChartClick2)
|
|
81409
|
+
handleChartClick2(params);
|
|
81410
|
+
setShowChartPopup(true);
|
|
81357
81411
|
}
|
|
81358
81412
|
},
|
|
81359
81413
|
ref: chartRef
|
|
@@ -81366,7 +81420,9 @@ const GaugeChart = ({
|
|
|
81366
81420
|
legendSettings,
|
|
81367
81421
|
colors: colors2,
|
|
81368
81422
|
chartRef,
|
|
81369
|
-
|
|
81423
|
+
handleChartClick: handleChartClick2,
|
|
81424
|
+
setShowChartPopup,
|
|
81425
|
+
drilldown: drilldown2
|
|
81370
81426
|
}) => {
|
|
81371
81427
|
const newGuageData = Array.isArray(gaugeData) ? gaugeData : [];
|
|
81372
81428
|
const total = newGuageData.reduce((sum2, item) => {
|
|
@@ -81459,12 +81515,14 @@ const GaugeChart = ({
|
|
|
81459
81515
|
option: option2,
|
|
81460
81516
|
onEvents: {
|
|
81461
81517
|
click: (params) => {
|
|
81462
|
-
if (
|
|
81463
|
-
|
|
81518
|
+
if (handleChartClick2)
|
|
81519
|
+
handleChartClick2(params);
|
|
81520
|
+
drilldown2 == null ? void 0 : drilldown2();
|
|
81464
81521
|
},
|
|
81465
81522
|
contextmenu: (params) => {
|
|
81466
|
-
if (
|
|
81467
|
-
|
|
81523
|
+
if (handleChartClick2)
|
|
81524
|
+
handleChartClick2(params);
|
|
81525
|
+
setShowChartPopup(true);
|
|
81468
81526
|
}
|
|
81469
81527
|
},
|
|
81470
81528
|
ref: chartRef
|
|
@@ -81476,7 +81534,9 @@ const SankeyChart = ({
|
|
|
81476
81534
|
chartRef,
|
|
81477
81535
|
colors: colors2,
|
|
81478
81536
|
backGroundColor,
|
|
81479
|
-
|
|
81537
|
+
handleChartClick: handleChartClick2,
|
|
81538
|
+
setShowChartPopup,
|
|
81539
|
+
drilldown: drilldown2
|
|
81480
81540
|
}) => {
|
|
81481
81541
|
var _a2, _b2, _c2;
|
|
81482
81542
|
const allValues = [];
|
|
@@ -81551,12 +81611,14 @@ const SankeyChart = ({
|
|
|
81551
81611
|
option: option2,
|
|
81552
81612
|
onEvents: {
|
|
81553
81613
|
click: (params) => {
|
|
81554
|
-
if (
|
|
81555
|
-
|
|
81614
|
+
if (handleChartClick2)
|
|
81615
|
+
handleChartClick2(params);
|
|
81616
|
+
drilldown2 == null ? void 0 : drilldown2();
|
|
81556
81617
|
},
|
|
81557
81618
|
contextmenu: (params) => {
|
|
81558
|
-
if (
|
|
81559
|
-
|
|
81619
|
+
if (handleChartClick2)
|
|
81620
|
+
handleChartClick2(params);
|
|
81621
|
+
setShowChartPopup(true);
|
|
81560
81622
|
}
|
|
81561
81623
|
},
|
|
81562
81624
|
ref: chartRef
|
|
@@ -81573,7 +81635,9 @@ const StackedBarChart = ({
|
|
|
81573
81635
|
colors: colors2,
|
|
81574
81636
|
backGroundColor,
|
|
81575
81637
|
customSettings,
|
|
81576
|
-
|
|
81638
|
+
handleChartClick: handleChartClick2,
|
|
81639
|
+
setShowChartPopup,
|
|
81640
|
+
drilldown: drilldown2
|
|
81577
81641
|
}) => {
|
|
81578
81642
|
var _a2, _b2;
|
|
81579
81643
|
const customData = useMemo(() => {
|
|
@@ -81695,13 +81759,15 @@ const StackedBarChart = ({
|
|
|
81695
81759
|
},
|
|
81696
81760
|
option: option2,
|
|
81697
81761
|
onEvents: {
|
|
81698
|
-
|
|
81699
|
-
if (
|
|
81700
|
-
|
|
81762
|
+
cclick: (params) => {
|
|
81763
|
+
if (handleChartClick2)
|
|
81764
|
+
handleChartClick2(params);
|
|
81765
|
+
drilldown2 == null ? void 0 : drilldown2();
|
|
81701
81766
|
},
|
|
81702
81767
|
contextmenu: (params) => {
|
|
81703
|
-
if (
|
|
81704
|
-
|
|
81768
|
+
if (handleChartClick2)
|
|
81769
|
+
handleChartClick2(params);
|
|
81770
|
+
setShowChartPopup(true);
|
|
81705
81771
|
}
|
|
81706
81772
|
},
|
|
81707
81773
|
ref: chartRef
|
|
@@ -82005,7 +82071,9 @@ const BoxPlot = ({
|
|
|
82005
82071
|
colors: colors2,
|
|
82006
82072
|
customSettings,
|
|
82007
82073
|
chartRef,
|
|
82008
|
-
|
|
82074
|
+
handleChartClick: handleChartClick2,
|
|
82075
|
+
setShowChartPopup,
|
|
82076
|
+
drilldown: drilldown2
|
|
82009
82077
|
}) => {
|
|
82010
82078
|
var _a2;
|
|
82011
82079
|
const modifiedData = [];
|
|
@@ -82123,12 +82191,14 @@ const BoxPlot = ({
|
|
|
82123
82191
|
option: option2,
|
|
82124
82192
|
onEvents: {
|
|
82125
82193
|
click: (params) => {
|
|
82126
|
-
if (
|
|
82127
|
-
|
|
82194
|
+
if (handleChartClick2)
|
|
82195
|
+
handleChartClick2(params);
|
|
82196
|
+
drilldown2 == null ? void 0 : drilldown2();
|
|
82128
82197
|
},
|
|
82129
82198
|
contextmenu: (params) => {
|
|
82130
|
-
if (
|
|
82131
|
-
|
|
82199
|
+
if (handleChartClick2)
|
|
82200
|
+
handleChartClick2(params);
|
|
82201
|
+
setShowChartPopup(true);
|
|
82132
82202
|
}
|
|
82133
82203
|
}
|
|
82134
82204
|
})
|
|
@@ -86203,7 +86273,9 @@ const MetricChart = ({
|
|
|
86203
86273
|
tableSettings,
|
|
86204
86274
|
chartRef,
|
|
86205
86275
|
tableName,
|
|
86206
|
-
|
|
86276
|
+
handleChartClick: handleChartClick2,
|
|
86277
|
+
drilldown: drilldown2,
|
|
86278
|
+
setShowChartPopup
|
|
86207
86279
|
}) => {
|
|
86208
86280
|
var _a2, _b2, _c2, _d, _e2, _f;
|
|
86209
86281
|
if (chartType2 === CHART_TYPES.line) {
|
|
@@ -86216,7 +86288,9 @@ const MetricChart = ({
|
|
|
86216
86288
|
axisSettings,
|
|
86217
86289
|
customSettings,
|
|
86218
86290
|
chartRef,
|
|
86219
|
-
|
|
86291
|
+
handleChartClick: handleChartClick2,
|
|
86292
|
+
drilldown: drilldown2,
|
|
86293
|
+
setShowChartPopup
|
|
86220
86294
|
});
|
|
86221
86295
|
}
|
|
86222
86296
|
if (chartType2 === CHART_TYPES.stepped) {
|
|
@@ -86232,7 +86306,9 @@ const MetricChart = ({
|
|
|
86232
86306
|
colors: colors2,
|
|
86233
86307
|
backGroundColor,
|
|
86234
86308
|
chartRef,
|
|
86235
|
-
|
|
86309
|
+
handleChartClick: handleChartClick2,
|
|
86310
|
+
drilldown: drilldown2,
|
|
86311
|
+
setShowChartPopup
|
|
86236
86312
|
});
|
|
86237
86313
|
}
|
|
86238
86314
|
if (chartType2 === CHART_TYPES.bar) {
|
|
@@ -86246,7 +86322,9 @@ const MetricChart = ({
|
|
|
86246
86322
|
customSettings,
|
|
86247
86323
|
margins,
|
|
86248
86324
|
chartRef,
|
|
86249
|
-
|
|
86325
|
+
handleChartClick: handleChartClick2,
|
|
86326
|
+
drilldown: drilldown2,
|
|
86327
|
+
setShowChartPopup
|
|
86250
86328
|
});
|
|
86251
86329
|
}
|
|
86252
86330
|
if (chartType2 === CHART_TYPES.stack) {
|
|
@@ -86261,7 +86339,9 @@ const MetricChart = ({
|
|
|
86261
86339
|
backGroundColor,
|
|
86262
86340
|
customSettings,
|
|
86263
86341
|
chartRef,
|
|
86264
|
-
|
|
86342
|
+
handleChartClick: handleChartClick2,
|
|
86343
|
+
drilldown: drilldown2,
|
|
86344
|
+
setShowChartPopup
|
|
86265
86345
|
});
|
|
86266
86346
|
}
|
|
86267
86347
|
if (chartType2 === CHART_TYPES.histogram) {
|
|
@@ -86276,7 +86356,9 @@ const MetricChart = ({
|
|
|
86276
86356
|
backGroundColor,
|
|
86277
86357
|
customSettings,
|
|
86278
86358
|
chartRef,
|
|
86279
|
-
|
|
86359
|
+
handleChartClick: handleChartClick2,
|
|
86360
|
+
drilldown: drilldown2,
|
|
86361
|
+
setShowChartPopup
|
|
86280
86362
|
});
|
|
86281
86363
|
}
|
|
86282
86364
|
if (chartType2 === CHART_TYPES.bubble) {
|
|
@@ -86291,7 +86373,9 @@ const MetricChart = ({
|
|
|
86291
86373
|
backGroundColor,
|
|
86292
86374
|
customSettings,
|
|
86293
86375
|
chartRef,
|
|
86294
|
-
|
|
86376
|
+
handleChartClick: handleChartClick2,
|
|
86377
|
+
drilldown: drilldown2,
|
|
86378
|
+
setShowChartPopup
|
|
86295
86379
|
});
|
|
86296
86380
|
}
|
|
86297
86381
|
if (chartType2 === CHART_TYPES.scatter) {
|
|
@@ -86306,7 +86390,9 @@ const MetricChart = ({
|
|
|
86306
86390
|
backGroundColor,
|
|
86307
86391
|
customSettings,
|
|
86308
86392
|
chartRef,
|
|
86309
|
-
|
|
86393
|
+
handleChartClick: handleChartClick2,
|
|
86394
|
+
drilldown: drilldown2,
|
|
86395
|
+
setShowChartPopup
|
|
86310
86396
|
});
|
|
86311
86397
|
}
|
|
86312
86398
|
if (chartType2 === CHART_TYPES.row) {
|
|
@@ -86320,7 +86406,9 @@ const MetricChart = ({
|
|
|
86320
86406
|
backGroundColor,
|
|
86321
86407
|
customSettings,
|
|
86322
86408
|
chartRef,
|
|
86323
|
-
|
|
86409
|
+
handleChartClick: handleChartClick2,
|
|
86410
|
+
drilldown: drilldown2,
|
|
86411
|
+
setShowChartPopup
|
|
86324
86412
|
});
|
|
86325
86413
|
}
|
|
86326
86414
|
if (chartType2 === CHART_TYPES.area) {
|
|
@@ -86338,7 +86426,9 @@ const MetricChart = ({
|
|
|
86338
86426
|
backGroundColor,
|
|
86339
86427
|
customSettings,
|
|
86340
86428
|
chartRef,
|
|
86341
|
-
|
|
86429
|
+
handleChartClick: handleChartClick2,
|
|
86430
|
+
drilldown: drilldown2,
|
|
86431
|
+
setShowChartPopup
|
|
86342
86432
|
});
|
|
86343
86433
|
}
|
|
86344
86434
|
if (chartType2 === CHART_TYPES.combo) {
|
|
@@ -86357,7 +86447,9 @@ const MetricChart = ({
|
|
|
86357
86447
|
colors: colors2,
|
|
86358
86448
|
customSettings,
|
|
86359
86449
|
chartRef,
|
|
86360
|
-
|
|
86450
|
+
handleChartClick: handleChartClick2,
|
|
86451
|
+
drilldown: drilldown2,
|
|
86452
|
+
setShowChartPopup
|
|
86361
86453
|
});
|
|
86362
86454
|
}
|
|
86363
86455
|
if (chartType2 === CHART_TYPES.pie) {
|
|
@@ -86369,7 +86461,9 @@ const MetricChart = ({
|
|
|
86369
86461
|
enableSaveAs,
|
|
86370
86462
|
colors: colors2,
|
|
86371
86463
|
chartRef,
|
|
86372
|
-
|
|
86464
|
+
handleChartClick: handleChartClick2,
|
|
86465
|
+
drilldown: drilldown2,
|
|
86466
|
+
setShowChartPopup
|
|
86373
86467
|
});
|
|
86374
86468
|
}
|
|
86375
86469
|
if (chartType2 === CHART_TYPES.doughnut) {
|
|
@@ -86381,7 +86475,9 @@ const MetricChart = ({
|
|
|
86381
86475
|
enableSaveAs,
|
|
86382
86476
|
colors: colors2,
|
|
86383
86477
|
chartRef,
|
|
86384
|
-
|
|
86478
|
+
handleChartClick: handleChartClick2,
|
|
86479
|
+
drilldown: drilldown2,
|
|
86480
|
+
setShowChartPopup
|
|
86385
86481
|
});
|
|
86386
86482
|
}
|
|
86387
86483
|
if (chartType2 === CHART_TYPES.waterfall) {
|
|
@@ -86410,7 +86506,9 @@ const MetricChart = ({
|
|
|
86410
86506
|
backGroundColor,
|
|
86411
86507
|
customSettings,
|
|
86412
86508
|
chartRef,
|
|
86413
|
-
|
|
86509
|
+
handleChartClick: handleChartClick2,
|
|
86510
|
+
drilldown: drilldown2,
|
|
86511
|
+
setShowChartPopup
|
|
86414
86512
|
});
|
|
86415
86513
|
}
|
|
86416
86514
|
if (chartType2 === CHART_TYPES.funnel) {
|
|
@@ -86421,8 +86519,10 @@ const MetricChart = ({
|
|
|
86421
86519
|
labelSettings,
|
|
86422
86520
|
colors: colors2,
|
|
86423
86521
|
chartRef,
|
|
86424
|
-
|
|
86425
|
-
customSettings
|
|
86522
|
+
handleChartClick: handleChartClick2,
|
|
86523
|
+
customSettings,
|
|
86524
|
+
drilldown: drilldown2,
|
|
86525
|
+
setShowChartPopup
|
|
86426
86526
|
});
|
|
86427
86527
|
}
|
|
86428
86528
|
if (chartType2 === CHART_TYPES.gauge) {
|
|
@@ -86448,7 +86548,9 @@ const MetricChart = ({
|
|
|
86448
86548
|
enableSaveAs,
|
|
86449
86549
|
colors: colors2,
|
|
86450
86550
|
chartRef,
|
|
86451
|
-
|
|
86551
|
+
handleChartClick: handleChartClick2,
|
|
86552
|
+
drilldown: drilldown2,
|
|
86553
|
+
setShowChartPopup
|
|
86452
86554
|
});
|
|
86453
86555
|
}
|
|
86454
86556
|
if (chartType2 === CHART_TYPES.sankey) {
|
|
@@ -86461,7 +86563,9 @@ const MetricChart = ({
|
|
|
86461
86563
|
colors: colors2,
|
|
86462
86564
|
backGroundColor,
|
|
86463
86565
|
chartRef,
|
|
86464
|
-
|
|
86566
|
+
handleChartClick: handleChartClick2,
|
|
86567
|
+
drilldown: drilldown2,
|
|
86568
|
+
setShowChartPopup
|
|
86465
86569
|
});
|
|
86466
86570
|
}
|
|
86467
86571
|
if (chartType2 === CHART_TYPES.singleValue) {
|
|
@@ -86484,7 +86588,9 @@ const MetricChart = ({
|
|
|
86484
86588
|
colors: colors2,
|
|
86485
86589
|
customSettings,
|
|
86486
86590
|
chartRef,
|
|
86487
|
-
|
|
86591
|
+
handleChartClick: handleChartClick2,
|
|
86592
|
+
drilldown: drilldown2,
|
|
86593
|
+
setShowChartPopup
|
|
86488
86594
|
});
|
|
86489
86595
|
}
|
|
86490
86596
|
if (chartType2 === CHART_TYPES.table) {
|
|
@@ -86535,7 +86641,9 @@ const FullScreenChart = ({
|
|
|
86535
86641
|
routeType: "internal"
|
|
86536
86642
|
},
|
|
86537
86643
|
chartRef: chart.chartRef,
|
|
86538
|
-
|
|
86644
|
+
handleChartClick: chart.handleChartClick,
|
|
86645
|
+
drilldown: chart.drilldown,
|
|
86646
|
+
setShowChartPopup: chart.setShowChartPopup
|
|
86539
86647
|
})
|
|
86540
86648
|
})
|
|
86541
86649
|
});
|
|
@@ -95334,20 +95442,22 @@ var zt = function(t3) {
|
|
|
95334
95442
|
} }]), a4;
|
|
95335
95443
|
}(), $t = "input", Gt = "navigate";
|
|
95336
95444
|
var reactDatepicker = "";
|
|
95337
|
-
const datePickerContainer = "
|
|
95338
|
-
const buttonWrapper = "
|
|
95339
|
-
const datePickerCalendarWrapper = "
|
|
95340
|
-
const label$1 = "
|
|
95341
|
-
const text = "
|
|
95342
|
-
const button$4 = "
|
|
95343
|
-
const datePickerCalContainer = "
|
|
95344
|
-
const datePickerOptionsWrapper = "
|
|
95345
|
-
const datePickerOption = "
|
|
95346
|
-
const datePickerCalendar = "
|
|
95347
|
-
const datePickerCalendarHeader = "
|
|
95348
|
-
const checkedOption = "
|
|
95349
|
-
const datePickerCalFooter = "
|
|
95350
|
-
const dayClassName = "
|
|
95445
|
+
const datePickerContainer = "_datePickerContainer_14m8h_1";
|
|
95446
|
+
const buttonWrapper = "_buttonWrapper_14m8h_9";
|
|
95447
|
+
const datePickerCalendarWrapper = "_datePickerCalendarWrapper_14m8h_17";
|
|
95448
|
+
const label$1 = "_label_14m8h_25";
|
|
95449
|
+
const text = "_text_14m8h_33";
|
|
95450
|
+
const button$4 = "_button_14m8h_9";
|
|
95451
|
+
const datePickerCalContainer = "_datePickerCalContainer_14m8h_49";
|
|
95452
|
+
const datePickerOptionsWrapper = "_datePickerOptionsWrapper_14m8h_57";
|
|
95453
|
+
const datePickerOption = "_datePickerOption_14m8h_57";
|
|
95454
|
+
const datePickerCalendar = "_datePickerCalendar_14m8h_17";
|
|
95455
|
+
const datePickerCalendarHeader = "_datePickerCalendarHeader_14m8h_97";
|
|
95456
|
+
const checkedOption = "_checkedOption_14m8h_105";
|
|
95457
|
+
const datePickerCalFooter = "_datePickerCalFooter_14m8h_113";
|
|
95458
|
+
const dayClassName = "_dayClassName_14m8h_121";
|
|
95459
|
+
const datePickerSelectedWrapper = "_datePickerSelectedWrapper_14m8h_129";
|
|
95460
|
+
const datePickerSelectedDate = "_datePickerSelectedDate_14m8h_137";
|
|
95351
95461
|
var styles$r = {
|
|
95352
95462
|
datePickerContainer,
|
|
95353
95463
|
buttonWrapper,
|
|
@@ -95362,7 +95472,9 @@ var styles$r = {
|
|
|
95362
95472
|
datePickerCalendarHeader,
|
|
95363
95473
|
checkedOption,
|
|
95364
95474
|
datePickerCalFooter,
|
|
95365
|
-
dayClassName
|
|
95475
|
+
dayClassName,
|
|
95476
|
+
datePickerSelectedWrapper,
|
|
95477
|
+
datePickerSelectedDate
|
|
95366
95478
|
};
|
|
95367
95479
|
const options = [{
|
|
95368
95480
|
type: "day",
|
|
@@ -95518,6 +95630,9 @@ const DateRangePicker = ({
|
|
|
95518
95630
|
className: styles$r.datePickerCalendarWrapper,
|
|
95519
95631
|
children: [/* @__PURE__ */ jsx(zt, {
|
|
95520
95632
|
selected: startDate,
|
|
95633
|
+
startDate,
|
|
95634
|
+
selectsStart: true,
|
|
95635
|
+
endDate,
|
|
95521
95636
|
onChange: (date) => {
|
|
95522
95637
|
const startDateFormat = date.toISOString().slice(0, 10);
|
|
95523
95638
|
const endDateFormat = endDate == null ? void 0 : endDate.toISOString().slice(0, 10);
|
|
@@ -95529,6 +95644,9 @@ const DateRangePicker = ({
|
|
|
95529
95644
|
calendarClassName: styles$r.datePickerCalendar
|
|
95530
95645
|
}), /* @__PURE__ */ jsx(zt, {
|
|
95531
95646
|
selected: endDate,
|
|
95647
|
+
startDate,
|
|
95648
|
+
endDate,
|
|
95649
|
+
selectsEnd: true,
|
|
95532
95650
|
onChange: (date) => {
|
|
95533
95651
|
const startDateFormat = startDate == null ? void 0 : startDate.toISOString().slice(0, 10);
|
|
95534
95652
|
const endDateFormat = date.toISOString().slice(0, 10);
|
|
@@ -95536,13 +95654,37 @@ const DateRangePicker = ({
|
|
|
95536
95654
|
setEndDate(date);
|
|
95537
95655
|
},
|
|
95538
95656
|
calendarClassName: styles$r.datePickerCalendar,
|
|
95539
|
-
className: styles$r.datePickerCalendarHeader,
|
|
95540
95657
|
open: true,
|
|
95541
95658
|
inline: true
|
|
95542
95659
|
})]
|
|
95543
|
-
}), /* @__PURE__ */
|
|
95660
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
95544
95661
|
className: styles$r.datePickerCalFooter,
|
|
95545
|
-
children: /* @__PURE__ */
|
|
95662
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
95663
|
+
className: styles$r.datePickerSelectedWrapper,
|
|
95664
|
+
children: [/* @__PURE__ */ jsxs(Text, {
|
|
95665
|
+
variant: "p",
|
|
95666
|
+
styleClass: "font-14",
|
|
95667
|
+
className: styles$r.datePickerSelectedDate,
|
|
95668
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
95669
|
+
children: (startDate == null ? void 0 : startDate.getDate()) || "D"
|
|
95670
|
+
}), "/", " ", /* @__PURE__ */ jsx("span", {
|
|
95671
|
+
children: (startDate == null ? void 0 : startDate.getMonth()) || "M"
|
|
95672
|
+
}), " /", " ", /* @__PURE__ */ jsx("span", {
|
|
95673
|
+
children: (startDate == null ? void 0 : startDate.getFullYear()) || "Y"
|
|
95674
|
+
})]
|
|
95675
|
+
}), "-", /* @__PURE__ */ jsxs(Text, {
|
|
95676
|
+
variant: "p",
|
|
95677
|
+
styleClass: "font-14",
|
|
95678
|
+
className: styles$r.datePickerSelectedDate,
|
|
95679
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
95680
|
+
children: (endDate == null ? void 0 : endDate.getDay()) || "D"
|
|
95681
|
+
}), "/", " ", /* @__PURE__ */ jsx("span", {
|
|
95682
|
+
children: (endDate == null ? void 0 : endDate.getMonth()) || "M"
|
|
95683
|
+
}), " /", " ", /* @__PURE__ */ jsx("span", {
|
|
95684
|
+
children: (endDate == null ? void 0 : endDate.getFullYear()) || "Y"
|
|
95685
|
+
})]
|
|
95686
|
+
})]
|
|
95687
|
+
}), /* @__PURE__ */ jsx(Button, {
|
|
95546
95688
|
variant: "primary",
|
|
95547
95689
|
type: "button",
|
|
95548
95690
|
size: "small",
|
|
@@ -95551,7 +95693,7 @@ const DateRangePicker = ({
|
|
|
95551
95693
|
return (_a2 = datePickerRef.current) == null ? void 0 : _a2.click();
|
|
95552
95694
|
},
|
|
95553
95695
|
children: "Save"
|
|
95554
|
-
})
|
|
95696
|
+
})]
|
|
95555
95697
|
})]
|
|
95556
95698
|
})]
|
|
95557
95699
|
})
|
|
@@ -97234,7 +97376,7 @@ const ChartTab = ({
|
|
|
97234
97376
|
tableSettings,
|
|
97235
97377
|
chartRef,
|
|
97236
97378
|
tableName,
|
|
97237
|
-
handleChartRightClick
|
|
97379
|
+
handleChartClick: handleChartRightClick
|
|
97238
97380
|
}), chartPopupChild]
|
|
97239
97381
|
}) : /* @__PURE__ */ jsxs("div", {
|
|
97240
97382
|
className: styles$j.metricChartEmpty,
|
|
@@ -97290,7 +97432,7 @@ const ChartTab = ({
|
|
|
97290
97432
|
routeType: "internal"
|
|
97291
97433
|
},
|
|
97292
97434
|
chartRef,
|
|
97293
|
-
handleChartRightClick
|
|
97435
|
+
handleChartClick: handleChartRightClick
|
|
97294
97436
|
}
|
|
97295
97437
|
})]
|
|
97296
97438
|
});
|
|
@@ -130732,16 +130874,6 @@ const evaLayersFill = (props) => /* @__PURE__ */ jsx("svg", {
|
|
|
130732
130874
|
})
|
|
130733
130875
|
})
|
|
130734
130876
|
});
|
|
130735
|
-
const fluentMdl2DrillDown = (props) => /* @__PURE__ */ jsx("svg", {
|
|
130736
|
-
viewBox: "0 0 2048 2048",
|
|
130737
|
-
width: "1.2em",
|
|
130738
|
-
height: "1.2em",
|
|
130739
|
-
...props,
|
|
130740
|
-
children: /* @__PURE__ */ jsx("path", {
|
|
130741
|
-
fill: "currentColor",
|
|
130742
|
-
d: "M1024 0q141 0 272 36t245 103t207 160t160 208t103 245t37 272q0 141-36 272t-103 245t-160 207t-208 160t-245 103t-272 37q-141 0-272-36t-245-103t-207-160t-160-208t-103-244t-37-273q0-141 36-272t103-245t160-207t208-160T751 37t273-37zm0 1920q123 0 237-32t214-90t182-141t140-181t91-214t32-238q0-123-32-237t-90-214t-141-182t-181-140t-214-91t-238-32q-123 0-237 32t-214 90t-182 141t-140 181t-91 214t-32 238q0 123 32 237t90 214t141 182t181 140t214 91t238 32zm531-1005l90 90l-620 622l-622-622l90-90l467 467V384h129v997l466-466z"
|
|
130743
|
-
})
|
|
130744
|
-
});
|
|
130745
130877
|
const mdiExternalLink = (props) => /* @__PURE__ */ jsx("svg", {
|
|
130746
130878
|
viewBox: "0 0 24 24",
|
|
130747
130879
|
width: "1.2em",
|
|
@@ -130761,7 +130893,6 @@ const ChartPopup = ({
|
|
|
130761
130893
|
value,
|
|
130762
130894
|
columnName,
|
|
130763
130895
|
getUnderlyingData,
|
|
130764
|
-
drilldown: drilldown2,
|
|
130765
130896
|
clickBehaviourConfigs
|
|
130766
130897
|
}) => {
|
|
130767
130898
|
const [isShowUnderlyingData, setShowUnderlyingData] = useState(false);
|
|
@@ -130802,18 +130933,6 @@ const ChartPopup = ({
|
|
|
130802
130933
|
styleClass: "font-14",
|
|
130803
130934
|
children: "View underlying data"
|
|
130804
130935
|
})]
|
|
130805
|
-
}), drilldown2 && /* @__PURE__ */ jsxs(Button, {
|
|
130806
|
-
variant: "custom",
|
|
130807
|
-
type: "button",
|
|
130808
|
-
className: styles$8.chartOptionBtn,
|
|
130809
|
-
onClick: () => drilldown2(),
|
|
130810
|
-
children: [/* @__PURE__ */ jsx(fluentMdl2DrillDown, {
|
|
130811
|
-
className: styles$8.popupItemIcon
|
|
130812
|
-
}), /* @__PURE__ */ jsx(Text, {
|
|
130813
|
-
variant: "p",
|
|
130814
|
-
styleClass: "font-14",
|
|
130815
|
-
children: "Drill Down"
|
|
130816
|
-
})]
|
|
130817
130936
|
}), clickBehaviourConfigs.isEnable && /* @__PURE__ */ jsxs(Button, {
|
|
130818
130937
|
variant: "custom",
|
|
130819
130938
|
type: "button",
|
|
@@ -131100,12 +131219,13 @@ const MetricCard = ({
|
|
|
131100
131219
|
};
|
|
131101
131220
|
const [isShowChartPopup, setShowChartPopup] = useState(false);
|
|
131102
131221
|
const [chartParams, setChartParams] = useState();
|
|
131103
|
-
const
|
|
131222
|
+
const handleChartClick2 = (params) => {
|
|
131104
131223
|
if (rlsConditions.length && rlsConditions[0].datatype === "date") {
|
|
131105
131224
|
return;
|
|
131106
131225
|
}
|
|
131226
|
+
if (params.event)
|
|
131227
|
+
params.event.event.preventDefault();
|
|
131107
131228
|
setChartParams(params);
|
|
131108
|
-
setShowChartPopup(true);
|
|
131109
131229
|
};
|
|
131110
131230
|
const {
|
|
131111
131231
|
getUnderlyingData
|
|
@@ -131191,7 +131311,7 @@ const MetricCard = ({
|
|
|
131191
131311
|
enableSaveAs: true,
|
|
131192
131312
|
chartClickConfig: clickBehaviourConfigs.chart,
|
|
131193
131313
|
chartRef,
|
|
131194
|
-
|
|
131314
|
+
handleChartClick: handleChartClick2
|
|
131195
131315
|
}),
|
|
131196
131316
|
children: [/* @__PURE__ */ jsx(Icons, {
|
|
131197
131317
|
name: "fullscreen-icon",
|
|
@@ -131285,7 +131405,6 @@ const MetricCard = ({
|
|
|
131285
131405
|
value: chartParams == null ? void 0 : chartParams.name,
|
|
131286
131406
|
columnName,
|
|
131287
131407
|
getUnderlyingData,
|
|
131288
|
-
drilldown: (drillDownSettings == null ? void 0 : drillDownSettings.isEnableGroupBy) ? onDrillDown : void 0,
|
|
131289
131408
|
clickBehaviourConfigs: clickBehaviourConfigs.chart
|
|
131290
131409
|
}), (dataDb == null ? void 0 : dataDb.length) ? /* @__PURE__ */ jsx(MetricChart, {
|
|
131291
131410
|
labels: labels2,
|
|
@@ -131308,7 +131427,9 @@ const MetricCard = ({
|
|
|
131308
131427
|
backGroundColor,
|
|
131309
131428
|
chartClickConfig: clickBehaviourConfigs.chart,
|
|
131310
131429
|
chartRef,
|
|
131311
|
-
|
|
131430
|
+
handleChartClick: handleChartClick2,
|
|
131431
|
+
drilldown: (drillDownSettings == null ? void 0 : drillDownSettings.isEnableGroupBy) ? onDrillDown : void 0,
|
|
131432
|
+
setShowChartPopup
|
|
131312
131433
|
}) : null]
|
|
131313
131434
|
})]
|
|
131314
131435
|
})
|