@databrainhq/plugin 0.7.17 → 0.7.19
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/Charts/Table/TableChart.d.ts +1 -1
- package/dist/components/MetricChart/MetricChart.d.ts +3 -2
- package/dist/components/MetricCreation/components/MetricOutput/MetricOutput.d.ts +1 -1
- package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/components/ChartConfigure/index.d.ts +4 -2
- package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/components/ChartSettings/index.d.ts +4 -2
- package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/index.d.ts +4 -2
- package/dist/hooks/useExternalMetric.d.ts +3 -2
- package/dist/index.es.js +865 -503
- package/dist/index.umd.js +49 -49
- package/dist/style.css +1 -1
- package/dist/types/app.d.ts +22 -2
- package/dist/types/metricCreate.d.ts +3 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2554,6 +2554,7 @@ var styles$C = {
|
|
|
2554
2554
|
truncate,
|
|
2555
2555
|
border,
|
|
2556
2556
|
"p-2": "_p-2_1ddns_1",
|
|
2557
|
+
"p-1": "_p-1_1ddns_1",
|
|
2557
2558
|
"text-center": "_text-center_1ddns_1",
|
|
2558
2559
|
"text-sm": "_text-sm_1ddns_1",
|
|
2559
2560
|
"text-xs": "_text-xs_1ddns_1",
|
|
@@ -7063,7 +7064,8 @@ const getChartOption = ({
|
|
|
7063
7064
|
labelSettings,
|
|
7064
7065
|
axisSettings,
|
|
7065
7066
|
customSettings,
|
|
7066
|
-
backGroundColor
|
|
7067
|
+
backGroundColor,
|
|
7068
|
+
tableSettings
|
|
7067
7069
|
}) => {
|
|
7068
7070
|
if (chartType2 === CHART_TYPES.funnel) {
|
|
7069
7071
|
return {
|
|
@@ -7106,10 +7108,6 @@ const getChartOption = ({
|
|
|
7106
7108
|
measure: "",
|
|
7107
7109
|
sankeyValues: [],
|
|
7108
7110
|
singleValue: singleValue2,
|
|
7109
|
-
margins,
|
|
7110
|
-
legendSettings,
|
|
7111
|
-
labelSettings,
|
|
7112
|
-
axisSettings,
|
|
7113
7111
|
customSettings
|
|
7114
7112
|
};
|
|
7115
7113
|
}
|
|
@@ -7143,7 +7141,8 @@ const getChartOption = ({
|
|
|
7143
7141
|
labelSettings,
|
|
7144
7142
|
axisSettings,
|
|
7145
7143
|
backGroundColor,
|
|
7146
|
-
customSettings
|
|
7144
|
+
customSettings,
|
|
7145
|
+
tableSettings
|
|
7147
7146
|
};
|
|
7148
7147
|
};
|
|
7149
7148
|
const useExternalMetric = ({
|
|
@@ -7165,6 +7164,7 @@ const useExternalMetric = ({
|
|
|
7165
7164
|
labelSettings,
|
|
7166
7165
|
axisSettings,
|
|
7167
7166
|
customSettings,
|
|
7167
|
+
tableSettings,
|
|
7168
7168
|
backGroundColor,
|
|
7169
7169
|
clientId,
|
|
7170
7170
|
companyId,
|
|
@@ -7206,7 +7206,8 @@ const useExternalMetric = ({
|
|
|
7206
7206
|
labelSettings,
|
|
7207
7207
|
axisSettings,
|
|
7208
7208
|
customSettings,
|
|
7209
|
-
backGroundColor
|
|
7209
|
+
backGroundColor,
|
|
7210
|
+
tableSettings
|
|
7210
7211
|
}),
|
|
7211
7212
|
clientId: clientId || null,
|
|
7212
7213
|
isCreatedByClient: !!clientId,
|
|
@@ -81518,7 +81519,8 @@ var style = {
|
|
|
81518
81519
|
};
|
|
81519
81520
|
const TableChart = ({
|
|
81520
81521
|
data: data2,
|
|
81521
|
-
chartClickConfig
|
|
81522
|
+
chartClickConfig,
|
|
81523
|
+
tableSettings
|
|
81522
81524
|
}) => {
|
|
81523
81525
|
var _a2, _b2, _c2;
|
|
81524
81526
|
let k = 0;
|
|
@@ -81618,7 +81620,8 @@ const MetricChart = ({
|
|
|
81618
81620
|
updateGroup,
|
|
81619
81621
|
isEnableGroupBy,
|
|
81620
81622
|
backGroundColor,
|
|
81621
|
-
chartClickConfig
|
|
81623
|
+
chartClickConfig,
|
|
81624
|
+
tableSettings
|
|
81622
81625
|
}) => {
|
|
81623
81626
|
var _a2, _b2, _c2, _d;
|
|
81624
81627
|
if (chartType2 === CHART_TYPES.line) {
|
|
@@ -81900,10 +81903,8 @@ const MetricChart = ({
|
|
|
81900
81903
|
if (chartType2 === CHART_TYPES.table) {
|
|
81901
81904
|
return /* @__PURE__ */ jsx(TableChart, {
|
|
81902
81905
|
data: data2,
|
|
81903
|
-
|
|
81904
|
-
|
|
81905
|
-
labelSettings,
|
|
81906
|
-
chartClickConfig
|
|
81906
|
+
chartClickConfig,
|
|
81907
|
+
tableSettings
|
|
81907
81908
|
});
|
|
81908
81909
|
}
|
|
81909
81910
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -81936,6 +81937,7 @@ const FullScreenChart = ({
|
|
|
81936
81937
|
axisSettings: chart.axisSettings,
|
|
81937
81938
|
backGroundColor: chart.backGroundColor,
|
|
81938
81939
|
enableSaveAs: true,
|
|
81940
|
+
tableSettings: chart.tableSettings,
|
|
81939
81941
|
customSettings: chart.customSettings,
|
|
81940
81942
|
chartClickConfig: {
|
|
81941
81943
|
isEnable: false,
|
|
@@ -82339,8 +82341,8 @@ const GlobalFilters = ({
|
|
|
82339
82341
|
})
|
|
82340
82342
|
});
|
|
82341
82343
|
};
|
|
82342
|
-
const container$8 = "
|
|
82343
|
-
const tooltip$1 = "
|
|
82344
|
+
const container$8 = "_container_3e9wk_1";
|
|
82345
|
+
const tooltip$1 = "_tooltip_3e9wk_7";
|
|
82344
82346
|
var styles$i = {
|
|
82345
82347
|
container: container$8,
|
|
82346
82348
|
tooltip: tooltip$1
|
|
@@ -82521,23 +82523,25 @@ const Dataset = ({
|
|
|
82521
82523
|
})]
|
|
82522
82524
|
});
|
|
82523
82525
|
};
|
|
82524
|
-
const container$6 = "
|
|
82525
|
-
const header$2 = "
|
|
82526
|
-
const headerText = "
|
|
82527
|
-
const tab$2 = "
|
|
82528
|
-
const tabText$1 = "
|
|
82529
|
-
const tabHeading = "
|
|
82530
|
-
const form = "
|
|
82531
|
-
const inputWrapper = "
|
|
82532
|
-
const input$1 = "
|
|
82533
|
-
const selectWrapper = "
|
|
82534
|
-
const select = "
|
|
82535
|
-
const label$1 = "
|
|
82536
|
-
const series = "
|
|
82537
|
-
const legendWrapper = "
|
|
82538
|
-
const seriesWrapper = "
|
|
82539
|
-
const valueLabelWrapper = "
|
|
82540
|
-
const singleCheckBox = "
|
|
82526
|
+
const container$6 = "_container_1mqhp_1";
|
|
82527
|
+
const header$2 = "_header_1mqhp_7";
|
|
82528
|
+
const headerText = "_headerText_1mqhp_13";
|
|
82529
|
+
const tab$2 = "_tab_1mqhp_19";
|
|
82530
|
+
const tabText$1 = "_tabText_1mqhp_25";
|
|
82531
|
+
const tabHeading = "_tabHeading_1mqhp_31";
|
|
82532
|
+
const form = "_form_1mqhp_37";
|
|
82533
|
+
const inputWrapper = "_inputWrapper_1mqhp_43";
|
|
82534
|
+
const input$1 = "_input_1mqhp_43";
|
|
82535
|
+
const selectWrapper = "_selectWrapper_1mqhp_55";
|
|
82536
|
+
const select = "_select_1mqhp_55";
|
|
82537
|
+
const label$1 = "_label_1mqhp_67";
|
|
82538
|
+
const series = "_series_1mqhp_73";
|
|
82539
|
+
const legendWrapper = "_legendWrapper_1mqhp_79";
|
|
82540
|
+
const seriesWrapper = "_seriesWrapper_1mqhp_85";
|
|
82541
|
+
const valueLabelWrapper = "_valueLabelWrapper_1mqhp_91";
|
|
82542
|
+
const singleCheckBox = "_singleCheckBox_1mqhp_97";
|
|
82543
|
+
const seriesCheck = "_seriesCheck_1mqhp_103";
|
|
82544
|
+
const seriesCheckContainer = "_seriesCheckContainer_1mqhp_109";
|
|
82541
82545
|
var styles$e = {
|
|
82542
82546
|
container: container$6,
|
|
82543
82547
|
header: header$2,
|
|
@@ -82555,7 +82559,9 @@ var styles$e = {
|
|
|
82555
82559
|
legendWrapper,
|
|
82556
82560
|
seriesWrapper,
|
|
82557
82561
|
valueLabelWrapper,
|
|
82558
|
-
singleCheckBox
|
|
82562
|
+
singleCheckBox,
|
|
82563
|
+
seriesCheck,
|
|
82564
|
+
seriesCheckContainer
|
|
82559
82565
|
};
|
|
82560
82566
|
const tab$1 = "_tab_1imil_1";
|
|
82561
82567
|
const button$2 = "_button_1imil_7";
|
|
@@ -82597,552 +82603,747 @@ const ChartConfigure = ({
|
|
|
82597
82603
|
customSettings,
|
|
82598
82604
|
setCustomSettings,
|
|
82599
82605
|
backGroundColor,
|
|
82600
|
-
setBackGroundColor
|
|
82606
|
+
setBackGroundColor,
|
|
82607
|
+
tableSettings,
|
|
82608
|
+
setTableSettings
|
|
82601
82609
|
}) => {
|
|
82602
82610
|
const TabList = ["Margins", "Legend", "Custom"];
|
|
82603
82611
|
const singleValueTabs = ["Custom"];
|
|
82604
|
-
const
|
|
82612
|
+
const tableTabs = ["UI Style", "Features"];
|
|
82613
|
+
const [activeTab2, setActiveTab] = useState("");
|
|
82614
|
+
useEffect(() => {
|
|
82615
|
+
if (chartType2 === "table") {
|
|
82616
|
+
setActiveTab("UI Style");
|
|
82617
|
+
} else {
|
|
82618
|
+
setActiveTab("Custom");
|
|
82619
|
+
}
|
|
82620
|
+
}, [chartType2]);
|
|
82605
82621
|
return /* @__PURE__ */ jsxs("div", {
|
|
82606
82622
|
className: styles$e.container,
|
|
82607
|
-
children: [/* @__PURE__ */
|
|
82608
|
-
|
|
82609
|
-
|
|
82610
|
-
|
|
82611
|
-
|
|
82612
|
-
|
|
82613
|
-
|
|
82614
|
-
|
|
82615
|
-
|
|
82616
|
-
|
|
82617
|
-
|
|
82618
|
-
|
|
82619
|
-
|
|
82620
|
-
|
|
82621
|
-
|
|
82622
|
-
|
|
82623
|
-
|
|
82624
|
-
|
|
82625
|
-
|
|
82626
|
-
|
|
82627
|
-
|
|
82628
|
-
})
|
|
82629
|
-
|
|
82630
|
-
|
|
82631
|
-
|
|
82632
|
-
|
|
82633
|
-
|
|
82634
|
-
|
|
82635
|
-
|
|
82636
|
-
|
|
82637
|
-
|
|
82638
|
-
|
|
82639
|
-
|
|
82640
|
-
|
|
82641
|
-
|
|
82642
|
-
|
|
82643
|
-
|
|
82644
|
-
|
|
82645
|
-
type: "number",
|
|
82646
|
-
label: "Left",
|
|
82647
|
-
defaultValue: margins.marginLeft,
|
|
82648
|
-
onChange: (e2) => setMargins((m2) => ({
|
|
82649
|
-
...m2,
|
|
82650
|
-
marginLeft: parseInt(e2.target.value, 10)
|
|
82651
|
-
}))
|
|
82652
|
-
})
|
|
82653
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
82654
|
-
className: styles$e.input,
|
|
82655
|
-
children: /* @__PURE__ */ jsx(InputField, {
|
|
82656
|
-
type: "number",
|
|
82657
|
-
label: "Right",
|
|
82658
|
-
defaultValue: margins.marginRight,
|
|
82659
|
-
onChange: (e2) => setMargins((m2) => ({
|
|
82660
|
-
...m2,
|
|
82661
|
-
marginRight: parseInt(e2.target.value, 10)
|
|
82662
|
-
}))
|
|
82663
|
-
})
|
|
82664
|
-
})]
|
|
82665
|
-
}), activeTab2 === "Legend" && /* @__PURE__ */ jsxs("div", {
|
|
82666
|
-
className: styles$e.legendWrapper,
|
|
82667
|
-
children: [/* @__PURE__ */ jsx(InputField, {
|
|
82668
|
-
type: "checkbox",
|
|
82669
|
-
label: "Show Legend",
|
|
82670
|
-
checked: legendSettings.show,
|
|
82671
|
-
onChange: (e2) => setLegendSettings((settings2) => ({
|
|
82672
|
-
...settings2,
|
|
82673
|
-
show: e2.target.checked
|
|
82674
|
-
}))
|
|
82675
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
82676
|
-
children: [/* @__PURE__ */ jsx(Text, {
|
|
82677
|
-
variant: "h1",
|
|
82678
|
-
styleClass: "primary",
|
|
82679
|
-
children: "Position"
|
|
82680
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
82681
|
-
className: styles$e.inputWrapper,
|
|
82682
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
82683
|
-
className: styles$e.input,
|
|
82684
|
-
children: /* @__PURE__ */ jsx(InputField, {
|
|
82685
|
-
type: "number",
|
|
82686
|
-
label: "Top",
|
|
82687
|
-
defaultValue: legendSettings.top,
|
|
82688
|
-
onChange: (e2) => setLegendSettings((settings2) => ({
|
|
82689
|
-
...settings2,
|
|
82690
|
-
top: parseInt(e2.target.value, 10)
|
|
82623
|
+
children: [chartType2 === "table" && /* @__PURE__ */ jsxs(Fragment, {
|
|
82624
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
82625
|
+
className: "h-[10%]",
|
|
82626
|
+
children: /* @__PURE__ */ jsx(Tab, {
|
|
82627
|
+
options: tableTabs,
|
|
82628
|
+
activeTab: activeTab2,
|
|
82629
|
+
setActiveTab,
|
|
82630
|
+
className: styles$e.tab,
|
|
82631
|
+
tabText: styles$e.tabText
|
|
82632
|
+
})
|
|
82633
|
+
}), /* @__PURE__ */ jsxs("form", {
|
|
82634
|
+
className: styles$e.form,
|
|
82635
|
+
children: [activeTab2 === "UI Style" && /* @__PURE__ */ jsxs("div", {
|
|
82636
|
+
className: styles$e.inputWrapper,
|
|
82637
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
82638
|
+
className: styles$e.seriesWrapper,
|
|
82639
|
+
children: [/* @__PURE__ */ jsx(Text, {
|
|
82640
|
+
variant: "h1",
|
|
82641
|
+
styleClass: "font-14",
|
|
82642
|
+
className: "font-medium",
|
|
82643
|
+
children: "Table content Alignment"
|
|
82644
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
82645
|
+
className: styles$e.select,
|
|
82646
|
+
children: /* @__PURE__ */ jsx(Select, {
|
|
82647
|
+
value: tableSettings.contentAlignment,
|
|
82648
|
+
options: [{
|
|
82649
|
+
label: "Left Aligned",
|
|
82650
|
+
value: "left"
|
|
82651
|
+
}, {
|
|
82652
|
+
label: "Right Aligned",
|
|
82653
|
+
value: "right"
|
|
82654
|
+
}, {
|
|
82655
|
+
label: "Center Aligned",
|
|
82656
|
+
value: "center"
|
|
82657
|
+
}],
|
|
82658
|
+
onChange: (value) => setTableSettings((s2) => ({
|
|
82659
|
+
...s2,
|
|
82660
|
+
contentAlignment: value
|
|
82691
82661
|
}))
|
|
82692
82662
|
})
|
|
82663
|
+
})]
|
|
82664
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
82665
|
+
className: styles$e.seriesWrapper,
|
|
82666
|
+
children: [/* @__PURE__ */ jsx(Text, {
|
|
82667
|
+
variant: "h1",
|
|
82668
|
+
styleClass: "font-14",
|
|
82669
|
+
className: "font-medium",
|
|
82670
|
+
children: "Table line gap"
|
|
82693
82671
|
}), /* @__PURE__ */ jsx("div", {
|
|
82694
|
-
className: styles$e.
|
|
82695
|
-
children: /* @__PURE__ */ jsx(
|
|
82696
|
-
|
|
82697
|
-
|
|
82698
|
-
|
|
82699
|
-
|
|
82700
|
-
|
|
82701
|
-
|
|
82672
|
+
className: styles$e.select,
|
|
82673
|
+
children: /* @__PURE__ */ jsx(Select, {
|
|
82674
|
+
value: tableSettings.lineGap,
|
|
82675
|
+
options: [{
|
|
82676
|
+
label: "Small",
|
|
82677
|
+
value: "small"
|
|
82678
|
+
}, {
|
|
82679
|
+
label: "Medium",
|
|
82680
|
+
value: "medium"
|
|
82681
|
+
}],
|
|
82682
|
+
onChange: (value) => setTableSettings((s2) => ({
|
|
82683
|
+
...s2,
|
|
82684
|
+
lineGap: value
|
|
82702
82685
|
}))
|
|
82703
82686
|
})
|
|
82704
|
-
})
|
|
82705
|
-
|
|
82706
|
-
|
|
82707
|
-
|
|
82708
|
-
|
|
82709
|
-
|
|
82710
|
-
|
|
82687
|
+
})]
|
|
82688
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
82689
|
+
className: styles$e.seriesCheckContainer,
|
|
82690
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
82691
|
+
className: styles$e.seriesCheck,
|
|
82692
|
+
children: [/* @__PURE__ */ jsx(InputField, {
|
|
82693
|
+
type: "checkbox",
|
|
82694
|
+
label: "Hide Vertical Divider",
|
|
82695
|
+
checked: tableSettings.hideVerticalDivider,
|
|
82696
|
+
onChange: (e2) => setTableSettings((settings2) => ({
|
|
82711
82697
|
...settings2,
|
|
82712
|
-
|
|
82698
|
+
hideVerticalDivider: e2.target.checked
|
|
82713
82699
|
}))
|
|
82714
|
-
})
|
|
82715
|
-
|
|
82716
|
-
|
|
82717
|
-
|
|
82718
|
-
|
|
82719
|
-
|
|
82720
|
-
|
|
82721
|
-
|
|
82700
|
+
}), /* @__PURE__ */ jsx(InfoTooltip, {
|
|
82701
|
+
children: "Hide Vertical Divider"
|
|
82702
|
+
})]
|
|
82703
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
82704
|
+
className: styles$e.seriesCheck,
|
|
82705
|
+
children: [/* @__PURE__ */ jsx(InputField, {
|
|
82706
|
+
type: "checkbox",
|
|
82707
|
+
label: "Enable Striped Rows",
|
|
82708
|
+
checked: tableSettings.enableStripedRows,
|
|
82709
|
+
onChange: (e2) => setTableSettings((settings2) => ({
|
|
82722
82710
|
...settings2,
|
|
82723
|
-
|
|
82711
|
+
enableStripedRows: e2.target.checked
|
|
82724
82712
|
}))
|
|
82725
|
-
})
|
|
82713
|
+
}), /* @__PURE__ */ jsx(InfoTooltip, {
|
|
82714
|
+
children: "Enable Striped Rows"
|
|
82715
|
+
})]
|
|
82716
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
82717
|
+
className: styles$e.seriesCheck,
|
|
82718
|
+
children: [/* @__PURE__ */ jsx(InputField, {
|
|
82719
|
+
type: "checkbox",
|
|
82720
|
+
label: "Show Row Hover",
|
|
82721
|
+
checked: tableSettings.showRowHover,
|
|
82722
|
+
onChange: (e2) => setTableSettings((settings2) => ({
|
|
82723
|
+
...settings2,
|
|
82724
|
+
showRowHover: e2.target.checked
|
|
82725
|
+
}))
|
|
82726
|
+
}), /* @__PURE__ */ jsx(InfoTooltip, {
|
|
82727
|
+
children: "Show Row Hover"
|
|
82728
|
+
})]
|
|
82726
82729
|
})]
|
|
82727
82730
|
})]
|
|
82728
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
82729
|
-
className: styles$e.
|
|
82731
|
+
}), activeTab2 === "Features" && /* @__PURE__ */ jsxs("div", {
|
|
82732
|
+
className: styles$e.seriesCheckContainer,
|
|
82730
82733
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
82731
|
-
|
|
82732
|
-
|
|
82733
|
-
|
|
82734
|
-
|
|
82735
|
-
|
|
82736
|
-
|
|
82737
|
-
|
|
82738
|
-
|
|
82739
|
-
|
|
82740
|
-
|
|
82741
|
-
|
|
82742
|
-
label: "Vertical",
|
|
82743
|
-
value: "vertical"
|
|
82744
|
-
}],
|
|
82745
|
-
onChange: (value) => setLegendSettings((settings2) => ({
|
|
82734
|
+
styleClass: "font-14c",
|
|
82735
|
+
variant: "p",
|
|
82736
|
+
className: styles$e.tabHeading,
|
|
82737
|
+
children: "Table feature preferences"
|
|
82738
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
82739
|
+
className: styles$e.seriesCheck,
|
|
82740
|
+
children: [/* @__PURE__ */ jsx(InputField, {
|
|
82741
|
+
type: "checkbox",
|
|
82742
|
+
label: "Show Table Title",
|
|
82743
|
+
checked: tableSettings.showTableTitle,
|
|
82744
|
+
onChange: (e2) => setTableSettings((settings2) => ({
|
|
82746
82745
|
...settings2,
|
|
82747
|
-
|
|
82746
|
+
showTableTitle: e2.target.checked
|
|
82748
82747
|
}))
|
|
82749
|
-
})
|
|
82748
|
+
}), /* @__PURE__ */ jsx(InfoTooltip, {
|
|
82749
|
+
children: "Show Table Title"
|
|
82750
|
+
})]
|
|
82751
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
82752
|
+
className: styles$e.seriesCheck,
|
|
82753
|
+
children: [/* @__PURE__ */ jsx(InputField, {
|
|
82754
|
+
type: "checkbox",
|
|
82755
|
+
label: "Show Table Description",
|
|
82756
|
+
checked: tableSettings.showTableDesc,
|
|
82757
|
+
onChange: (e2) => setTableSettings((settings2) => ({
|
|
82758
|
+
...settings2,
|
|
82759
|
+
showTableDesc: e2.target.checked
|
|
82760
|
+
}))
|
|
82761
|
+
}), /* @__PURE__ */ jsx(InfoTooltip, {
|
|
82762
|
+
children: "Show Table Description"
|
|
82763
|
+
})]
|
|
82764
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
82765
|
+
className: styles$e.seriesCheck,
|
|
82766
|
+
children: [/* @__PURE__ */ jsx(InputField, {
|
|
82767
|
+
type: "checkbox",
|
|
82768
|
+
label: "Enable Table Search options",
|
|
82769
|
+
checked: tableSettings.enableTableSearch,
|
|
82770
|
+
onChange: (e2) => setTableSettings((settings2) => ({
|
|
82771
|
+
...settings2,
|
|
82772
|
+
enableTableSearch: e2.target.checked
|
|
82773
|
+
}))
|
|
82774
|
+
}), /* @__PURE__ */ jsx(InfoTooltip, {
|
|
82775
|
+
children: "Enable Table Search Options"
|
|
82776
|
+
})]
|
|
82777
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
82778
|
+
className: styles$e.seriesCheck,
|
|
82779
|
+
children: [/* @__PURE__ */ jsx(InputField, {
|
|
82780
|
+
type: "checkbox",
|
|
82781
|
+
label: "Enable Filter options",
|
|
82782
|
+
checked: tableSettings.enableFilter,
|
|
82783
|
+
onChange: (e2) => setTableSettings((settings2) => ({
|
|
82784
|
+
...settings2,
|
|
82785
|
+
enableFilter: e2.target.checked
|
|
82786
|
+
}))
|
|
82787
|
+
}), /* @__PURE__ */ jsx(InfoTooltip, {
|
|
82788
|
+
children: "Enable Filter Options"
|
|
82789
|
+
})]
|
|
82790
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
82791
|
+
className: styles$e.seriesCheck,
|
|
82792
|
+
children: [/* @__PURE__ */ jsx(InputField, {
|
|
82793
|
+
type: "checkbox",
|
|
82794
|
+
label: "Enable Table sorting",
|
|
82795
|
+
checked: tableSettings.enableSorting,
|
|
82796
|
+
onChange: (e2) => setTableSettings((settings2) => ({
|
|
82797
|
+
...settings2,
|
|
82798
|
+
enableSorting: e2.target.checked
|
|
82799
|
+
}))
|
|
82800
|
+
}), /* @__PURE__ */ jsx(InfoTooltip, {
|
|
82801
|
+
children: "Enable Table Sorting"
|
|
82802
|
+
})]
|
|
82750
82803
|
})]
|
|
82751
82804
|
})]
|
|
82752
|
-
})
|
|
82753
|
-
|
|
82754
|
-
|
|
82755
|
-
|
|
82756
|
-
|
|
82757
|
-
|
|
82758
|
-
|
|
82759
|
-
|
|
82760
|
-
|
|
82761
|
-
|
|
82805
|
+
})]
|
|
82806
|
+
}), chartType2 !== "table" && /* @__PURE__ */ jsxs(Fragment, {
|
|
82807
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
82808
|
+
className: "h-[10%]",
|
|
82809
|
+
children: /* @__PURE__ */ jsx(Tab, {
|
|
82810
|
+
options: chartType2 !== "single value" ? TabList : singleValueTabs,
|
|
82811
|
+
activeTab: activeTab2,
|
|
82812
|
+
setActiveTab,
|
|
82813
|
+
className: styles$e.tab,
|
|
82814
|
+
tabText: styles$e.tabText
|
|
82815
|
+
})
|
|
82816
|
+
}), /* @__PURE__ */ jsxs("form", {
|
|
82817
|
+
className: styles$e.form,
|
|
82818
|
+
children: [activeTab2 === "Margins" && /* @__PURE__ */ jsxs("div", {
|
|
82819
|
+
className: styles$e.inputWrapper,
|
|
82820
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
82821
|
+
className: styles$e.input,
|
|
82822
|
+
children: /* @__PURE__ */ jsx(InputField, {
|
|
82823
|
+
type: "number",
|
|
82824
|
+
label: "Top",
|
|
82825
|
+
onChange: (e2) => setMargins((m2) => ({
|
|
82826
|
+
...m2,
|
|
82827
|
+
marginTop: parseInt(e2.target.value, 10)
|
|
82828
|
+
})),
|
|
82829
|
+
defaultValue: margins.marginTop
|
|
82830
|
+
})
|
|
82831
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
82832
|
+
className: styles$e.input,
|
|
82833
|
+
children: /* @__PURE__ */ jsx(InputField, {
|
|
82834
|
+
type: "number",
|
|
82835
|
+
label: "Bottom",
|
|
82836
|
+
onChange: (e2) => setMargins((m2) => ({
|
|
82837
|
+
...m2,
|
|
82838
|
+
marginBottom: parseInt(e2.target.value, 10)
|
|
82839
|
+
})),
|
|
82840
|
+
defaultValue: margins.marginBottom
|
|
82841
|
+
})
|
|
82842
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
82843
|
+
className: styles$e.input,
|
|
82844
|
+
children: /* @__PURE__ */ jsx(InputField, {
|
|
82845
|
+
type: "number",
|
|
82846
|
+
label: "Left",
|
|
82847
|
+
defaultValue: margins.marginLeft,
|
|
82848
|
+
onChange: (e2) => setMargins((m2) => ({
|
|
82849
|
+
...m2,
|
|
82850
|
+
marginLeft: parseInt(e2.target.value, 10)
|
|
82851
|
+
}))
|
|
82852
|
+
})
|
|
82853
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
82854
|
+
className: styles$e.input,
|
|
82855
|
+
children: /* @__PURE__ */ jsx(InputField, {
|
|
82856
|
+
type: "number",
|
|
82857
|
+
label: "Right",
|
|
82858
|
+
defaultValue: margins.marginRight,
|
|
82859
|
+
onChange: (e2) => setMargins((m2) => ({
|
|
82860
|
+
...m2,
|
|
82861
|
+
marginRight: parseInt(e2.target.value, 10)
|
|
82862
|
+
}))
|
|
82863
|
+
})
|
|
82864
|
+
})]
|
|
82865
|
+
}), activeTab2 === "Legend" && /* @__PURE__ */ jsxs("div", {
|
|
82866
|
+
className: styles$e.legendWrapper,
|
|
82867
|
+
children: [/* @__PURE__ */ jsx(InputField, {
|
|
82868
|
+
type: "checkbox",
|
|
82869
|
+
label: "Show Legend",
|
|
82870
|
+
checked: legendSettings.show,
|
|
82871
|
+
onChange: (e2) => setLegendSettings((settings2) => ({
|
|
82872
|
+
...settings2,
|
|
82873
|
+
show: e2.target.checked
|
|
82874
|
+
}))
|
|
82875
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
82762
82876
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
82763
82877
|
variant: "h1",
|
|
82764
|
-
styleClass: "
|
|
82765
|
-
children: "
|
|
82766
|
-
}), /* @__PURE__ */
|
|
82767
|
-
className: styles$e.
|
|
82768
|
-
children: /* @__PURE__ */ jsx(
|
|
82769
|
-
|
|
82770
|
-
|
|
82771
|
-
|
|
82772
|
-
value: "hidden"
|
|
82773
|
-
}, {
|
|
82878
|
+
styleClass: "primary",
|
|
82879
|
+
children: "Position"
|
|
82880
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
82881
|
+
className: styles$e.inputWrapper,
|
|
82882
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
82883
|
+
className: styles$e.input,
|
|
82884
|
+
children: /* @__PURE__ */ jsx(InputField, {
|
|
82885
|
+
type: "number",
|
|
82774
82886
|
label: "Top",
|
|
82775
|
-
|
|
82776
|
-
|
|
82887
|
+
defaultValue: legendSettings.top,
|
|
82888
|
+
onChange: (e2) => setLegendSettings((settings2) => ({
|
|
82889
|
+
...settings2,
|
|
82890
|
+
top: parseInt(e2.target.value, 10)
|
|
82891
|
+
}))
|
|
82892
|
+
})
|
|
82893
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
82894
|
+
className: styles$e.input,
|
|
82895
|
+
children: /* @__PURE__ */ jsx(InputField, {
|
|
82896
|
+
type: "number",
|
|
82777
82897
|
label: "Bottom",
|
|
82778
|
-
|
|
82779
|
-
|
|
82780
|
-
|
|
82781
|
-
|
|
82782
|
-
|
|
82898
|
+
defaultValue: legendSettings.bottom,
|
|
82899
|
+
onChange: (e2) => setLegendSettings((settings2) => ({
|
|
82900
|
+
...settings2,
|
|
82901
|
+
bottom: parseInt(e2.target.value, 10)
|
|
82902
|
+
}))
|
|
82903
|
+
})
|
|
82904
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
82905
|
+
className: styles$e.input,
|
|
82906
|
+
children: /* @__PURE__ */ jsx(InputField, {
|
|
82907
|
+
type: "number",
|
|
82783
82908
|
label: "Left",
|
|
82784
|
-
|
|
82909
|
+
defaultValue: legendSettings.left,
|
|
82910
|
+
onChange: (e2) => setLegendSettings((settings2) => ({
|
|
82911
|
+
...settings2,
|
|
82912
|
+
left: parseInt(e2.target.value, 10)
|
|
82913
|
+
}))
|
|
82914
|
+
})
|
|
82915
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
82916
|
+
className: styles$e.input,
|
|
82917
|
+
children: /* @__PURE__ */ jsx(InputField, {
|
|
82918
|
+
type: "number",
|
|
82919
|
+
label: "Right",
|
|
82920
|
+
defaultValue: legendSettings.right,
|
|
82921
|
+
onChange: (e2) => setLegendSettings((settings2) => ({
|
|
82922
|
+
...settings2,
|
|
82923
|
+
right: parseInt(e2.target.value, 10)
|
|
82924
|
+
}))
|
|
82925
|
+
})
|
|
82926
|
+
})]
|
|
82927
|
+
})]
|
|
82928
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
82929
|
+
className: styles$e.selectWrapper,
|
|
82930
|
+
children: [/* @__PURE__ */ jsx(Text, {
|
|
82931
|
+
variant: "h1",
|
|
82932
|
+
styleClass: "primary",
|
|
82933
|
+
children: "Appearance"
|
|
82934
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
82935
|
+
className: styles$e.select,
|
|
82936
|
+
children: /* @__PURE__ */ jsx(Select, {
|
|
82937
|
+
value: legendSettings.position,
|
|
82938
|
+
options: [{
|
|
82939
|
+
label: "Horizontal",
|
|
82940
|
+
value: "horizontal"
|
|
82785
82941
|
}, {
|
|
82786
|
-
label: "
|
|
82787
|
-
value: "
|
|
82942
|
+
label: "Vertical",
|
|
82943
|
+
value: "vertical"
|
|
82788
82944
|
}],
|
|
82789
|
-
onChange: (value) =>
|
|
82790
|
-
...
|
|
82791
|
-
show: false,
|
|
82792
|
-
position: value
|
|
82793
|
-
})) : setLabelSettings((s2) => ({
|
|
82794
|
-
...s2,
|
|
82795
|
-
show: true,
|
|
82945
|
+
onChange: (value) => setLegendSettings((settings2) => ({
|
|
82946
|
+
...settings2,
|
|
82796
82947
|
position: value
|
|
82797
82948
|
}))
|
|
82798
82949
|
})
|
|
82799
82950
|
})]
|
|
82800
|
-
})
|
|
82951
|
+
})]
|
|
82952
|
+
}), activeTab2 === "Custom" && /* @__PURE__ */ jsxs("div", {
|
|
82953
|
+
className: styles$e.series,
|
|
82954
|
+
children: [/* @__PURE__ */ jsx(Text, {
|
|
82955
|
+
styleClass: "font-14c",
|
|
82956
|
+
variant: "p",
|
|
82957
|
+
className: styles$e.tabHeading,
|
|
82958
|
+
children: "Chart preferences"
|
|
82959
|
+
}), chartType2 !== "single value" && /* @__PURE__ */ jsxs(Fragment, {
|
|
82801
82960
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
82802
82961
|
className: styles$e.seriesWrapper,
|
|
82803
82962
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
82804
82963
|
variant: "h1",
|
|
82805
82964
|
styleClass: "font-14",
|
|
82806
|
-
|
|
82807
|
-
children: "Axis"
|
|
82965
|
+
children: "Value labels"
|
|
82808
82966
|
}), /* @__PURE__ */ jsx("div", {
|
|
82809
|
-
className: styles$e.
|
|
82967
|
+
className: styles$e.valueLabelWrapper,
|
|
82810
82968
|
children: /* @__PURE__ */ jsx(Select, {
|
|
82811
|
-
value:
|
|
82969
|
+
value: labelSettings.position,
|
|
82812
82970
|
options: [{
|
|
82813
|
-
label: "
|
|
82814
|
-
value: "
|
|
82971
|
+
label: "Hidden",
|
|
82972
|
+
value: "hidden"
|
|
82973
|
+
}, {
|
|
82974
|
+
label: "Top",
|
|
82975
|
+
value: "top"
|
|
82976
|
+
}, {
|
|
82977
|
+
label: "Bottom",
|
|
82978
|
+
value: "bottom"
|
|
82815
82979
|
}, {
|
|
82816
82980
|
label: "Right",
|
|
82817
82981
|
value: "right"
|
|
82818
|
-
}],
|
|
82819
|
-
onChange: (value) => setAxisSettings((s2) => ({
|
|
82820
|
-
...s2,
|
|
82821
|
-
axis: value
|
|
82822
|
-
}))
|
|
82823
|
-
})
|
|
82824
|
-
})]
|
|
82825
|
-
}), chartType2 === "bar" || chartType2 === "row" || chartType2 === "stack" || chartType2 === "histogram" ? /* @__PURE__ */ jsx(InputField, {
|
|
82826
|
-
type: "checkbox",
|
|
82827
|
-
label: "Show Bar Background",
|
|
82828
|
-
checked: backGroundColor.show,
|
|
82829
|
-
onChange: (e2) => setBackGroundColor((settings2) => ({
|
|
82830
|
-
...settings2,
|
|
82831
|
-
show: e2.target.checked
|
|
82832
|
-
}))
|
|
82833
|
-
}) : null, /* @__PURE__ */ jsxs("div", {
|
|
82834
|
-
className: styles$e.seriesWrapper,
|
|
82835
|
-
children: [/* @__PURE__ */ jsxs(Text, {
|
|
82836
|
-
variant: "h1",
|
|
82837
|
-
styleClass: "font-14",
|
|
82838
|
-
className: styles$e.label,
|
|
82839
|
-
children: ["Hide Axis labels", /* @__PURE__ */ jsx(InfoTooltip, {
|
|
82840
|
-
children: "Axis labels represents the x and y axis values"
|
|
82841
|
-
})]
|
|
82842
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
82843
|
-
className: styles$e.select,
|
|
82844
|
-
children: /* @__PURE__ */ jsx(Select, {
|
|
82845
|
-
value: customSettings.axisLabels,
|
|
82846
|
-
options: [{
|
|
82847
|
-
label: "Hide X-axis labels",
|
|
82848
|
-
value: "x"
|
|
82849
|
-
}, {
|
|
82850
|
-
label: "Hide Y-axis labels",
|
|
82851
|
-
value: "y"
|
|
82852
82982
|
}, {
|
|
82853
|
-
label: "
|
|
82854
|
-
value: "
|
|
82983
|
+
label: "Left",
|
|
82984
|
+
value: "left"
|
|
82855
82985
|
}, {
|
|
82856
|
-
label: "
|
|
82857
|
-
value: "
|
|
82986
|
+
label: "Inside",
|
|
82987
|
+
value: "inside"
|
|
82858
82988
|
}],
|
|
82859
|
-
onChange: (value) =>
|
|
82989
|
+
onChange: (value) => value === "hidden" ? setLabelSettings((s2) => ({
|
|
82990
|
+
...s2,
|
|
82991
|
+
show: false,
|
|
82992
|
+
position: value
|
|
82993
|
+
})) : setLabelSettings((s2) => ({
|
|
82860
82994
|
...s2,
|
|
82861
|
-
|
|
82995
|
+
show: true,
|
|
82996
|
+
position: value
|
|
82862
82997
|
}))
|
|
82863
82998
|
})
|
|
82864
82999
|
})]
|
|
82865
|
-
}), /* @__PURE__ */ jsxs(
|
|
83000
|
+
}), chartType2 !== "pie" && chartType2 !== "doughnut" && chartType2 !== "funnel" && chartType2 !== "gauge" && chartType2 !== "sankey" && chartType2 !== "singleValue" && chartType2 !== "table" && /* @__PURE__ */ jsxs(Fragment, {
|
|
83001
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
83002
|
+
className: styles$e.seriesWrapper,
|
|
83003
|
+
children: [/* @__PURE__ */ jsx(Text, {
|
|
83004
|
+
variant: "h1",
|
|
83005
|
+
styleClass: "font-14",
|
|
83006
|
+
className: "font-medium",
|
|
83007
|
+
children: "Axis"
|
|
83008
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
83009
|
+
className: styles$e.select,
|
|
83010
|
+
children: /* @__PURE__ */ jsx(Select, {
|
|
83011
|
+
value: axisSettings.axis,
|
|
83012
|
+
options: [{
|
|
83013
|
+
label: "Left",
|
|
83014
|
+
value: "left"
|
|
83015
|
+
}, {
|
|
83016
|
+
label: "Right",
|
|
83017
|
+
value: "right"
|
|
83018
|
+
}],
|
|
83019
|
+
onChange: (value) => setAxisSettings((s2) => ({
|
|
83020
|
+
...s2,
|
|
83021
|
+
axis: value
|
|
83022
|
+
}))
|
|
83023
|
+
})
|
|
83024
|
+
})]
|
|
83025
|
+
}), chartType2 === "bar" || chartType2 === "row" || chartType2 === "stack" || chartType2 === "histogram" ? /* @__PURE__ */ jsx(InputField, {
|
|
83026
|
+
type: "checkbox",
|
|
83027
|
+
label: "Show Bar Background",
|
|
83028
|
+
checked: backGroundColor.show,
|
|
83029
|
+
onChange: (e2) => setBackGroundColor((settings2) => ({
|
|
83030
|
+
...settings2,
|
|
83031
|
+
show: e2.target.checked
|
|
83032
|
+
}))
|
|
83033
|
+
}) : null, /* @__PURE__ */ jsxs("div", {
|
|
83034
|
+
className: styles$e.seriesWrapper,
|
|
83035
|
+
children: [/* @__PURE__ */ jsxs(Text, {
|
|
83036
|
+
variant: "h1",
|
|
83037
|
+
styleClass: "font-14",
|
|
83038
|
+
className: styles$e.label,
|
|
83039
|
+
children: ["Hide Axis labels", /* @__PURE__ */ jsx(InfoTooltip, {
|
|
83040
|
+
children: "Axis labels represents the x and y axis values"
|
|
83041
|
+
})]
|
|
83042
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
83043
|
+
className: styles$e.select,
|
|
83044
|
+
children: /* @__PURE__ */ jsx(Select, {
|
|
83045
|
+
value: customSettings.axisLabels,
|
|
83046
|
+
options: [{
|
|
83047
|
+
label: "Hide X-axis labels",
|
|
83048
|
+
value: "x"
|
|
83049
|
+
}, {
|
|
83050
|
+
label: "Hide Y-axis labels",
|
|
83051
|
+
value: "y"
|
|
83052
|
+
}, {
|
|
83053
|
+
label: "Hide both X and Y(axis) labels",
|
|
83054
|
+
value: "both"
|
|
83055
|
+
}, {
|
|
83056
|
+
label: "None",
|
|
83057
|
+
value: "none"
|
|
83058
|
+
}],
|
|
83059
|
+
onChange: (value) => setCustomSettings((s2) => ({
|
|
83060
|
+
...s2,
|
|
83061
|
+
axisLabels: value
|
|
83062
|
+
}))
|
|
83063
|
+
})
|
|
83064
|
+
})]
|
|
83065
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
83066
|
+
className: styles$e.seriesWrapper,
|
|
83067
|
+
children: [/* @__PURE__ */ jsxs(Text, {
|
|
83068
|
+
variant: "h1",
|
|
83069
|
+
styleClass: "font-14",
|
|
83070
|
+
className: styles$e.label,
|
|
83071
|
+
children: ["Hide Splitlines", /* @__PURE__ */ jsx(InfoTooltip, {
|
|
83072
|
+
children: "Splitline is the reference lines that run along the directional x and y axis which act as reference markers"
|
|
83073
|
+
})]
|
|
83074
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
83075
|
+
className: styles$e.select,
|
|
83076
|
+
children: /* @__PURE__ */ jsx(Select, {
|
|
83077
|
+
value: customSettings.hideSplitLines,
|
|
83078
|
+
options: [{
|
|
83079
|
+
label: "Hide horizontal splitline",
|
|
83080
|
+
value: "horizontal"
|
|
83081
|
+
}, {
|
|
83082
|
+
label: "Hide vertical splitline",
|
|
83083
|
+
value: "vertical"
|
|
83084
|
+
}, {
|
|
83085
|
+
label: "Hide both splitline",
|
|
83086
|
+
value: "both"
|
|
83087
|
+
}, {
|
|
83088
|
+
label: "None",
|
|
83089
|
+
value: "none"
|
|
83090
|
+
}],
|
|
83091
|
+
onChange: (value) => setCustomSettings((s2) => ({
|
|
83092
|
+
...s2,
|
|
83093
|
+
hideSplitLines: value
|
|
83094
|
+
}))
|
|
83095
|
+
})
|
|
83096
|
+
})]
|
|
83097
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
83098
|
+
className: styles$e.seriesWrapper,
|
|
83099
|
+
children: [/* @__PURE__ */ jsxs(Text, {
|
|
83100
|
+
variant: "h1",
|
|
83101
|
+
styleClass: "font-14",
|
|
83102
|
+
className: styles$e.label,
|
|
83103
|
+
children: ["Hide Axis Line", /* @__PURE__ */ jsx(InfoTooltip, {
|
|
83104
|
+
children: "The x-axis and y-axis lines act as a graph base from which the chart starts"
|
|
83105
|
+
})]
|
|
83106
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
83107
|
+
className: styles$e.select,
|
|
83108
|
+
children: /* @__PURE__ */ jsx(Select, {
|
|
83109
|
+
value: customSettings.hideAxisLines,
|
|
83110
|
+
options: [{
|
|
83111
|
+
label: "Hide X-axis line",
|
|
83112
|
+
value: "x"
|
|
83113
|
+
}, {
|
|
83114
|
+
label: "Hide Y-axis line",
|
|
83115
|
+
value: "y"
|
|
83116
|
+
}, {
|
|
83117
|
+
label: "Hide both X and Y(axis) lines",
|
|
83118
|
+
value: "both"
|
|
83119
|
+
}, {
|
|
83120
|
+
label: "None",
|
|
83121
|
+
value: "none"
|
|
83122
|
+
}],
|
|
83123
|
+
onChange: (value) => setCustomSettings((s2) => ({
|
|
83124
|
+
...s2,
|
|
83125
|
+
hideAxisLines: value
|
|
83126
|
+
}))
|
|
83127
|
+
})
|
|
83128
|
+
})]
|
|
83129
|
+
}), chartType2 === "bar" || chartType2 === "row" || chartType2 === "stack" ? /* @__PURE__ */ jsxs(Fragment, {
|
|
83130
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
83131
|
+
className: styles$e.seriesWrapper,
|
|
83132
|
+
children: [/* @__PURE__ */ jsxs(Text, {
|
|
83133
|
+
variant: "h1",
|
|
83134
|
+
styleClass: "font-14",
|
|
83135
|
+
className: styles$e.label,
|
|
83136
|
+
children: ["Modify Bar width", /* @__PURE__ */ jsx(InfoTooltip, {
|
|
83137
|
+
children: "The width of each individual bar rectangle of the graph"
|
|
83138
|
+
})]
|
|
83139
|
+
}), /* @__PURE__ */ jsx(InputField, {
|
|
83140
|
+
type: "number",
|
|
83141
|
+
label: "",
|
|
83142
|
+
onChange: (e2) => setCustomSettings((m2) => ({
|
|
83143
|
+
...m2,
|
|
83144
|
+
barWidth: parseInt(e2.target.value, 10)
|
|
83145
|
+
})),
|
|
83146
|
+
defaultValue: customSettings.barWidth
|
|
83147
|
+
})]
|
|
83148
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
83149
|
+
className: styles$e.seriesWrapper,
|
|
83150
|
+
children: [/* @__PURE__ */ jsxs(Text, {
|
|
83151
|
+
variant: "h1",
|
|
83152
|
+
styleClass: "font-14",
|
|
83153
|
+
className: styles$e.label,
|
|
83154
|
+
children: ["Modify Bar radius", /* @__PURE__ */ jsx(InfoTooltip, {
|
|
83155
|
+
children: "The property that rounds the corners of the element's outer border edge"
|
|
83156
|
+
})]
|
|
83157
|
+
}), /* @__PURE__ */ jsx(InputField, {
|
|
83158
|
+
type: "number",
|
|
83159
|
+
label: "",
|
|
83160
|
+
onChange: (e2) => setCustomSettings((m2) => ({
|
|
83161
|
+
...m2,
|
|
83162
|
+
barRadius: parseInt(e2.target.value, 10)
|
|
83163
|
+
})),
|
|
83164
|
+
defaultValue: customSettings.barRadius
|
|
83165
|
+
})]
|
|
83166
|
+
})]
|
|
83167
|
+
}) : null]
|
|
83168
|
+
})]
|
|
83169
|
+
}), chartType2 === "single value" && /* @__PURE__ */ jsxs(Fragment, {
|
|
83170
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
82866
83171
|
className: styles$e.seriesWrapper,
|
|
82867
|
-
children: [/* @__PURE__ */
|
|
83172
|
+
children: [/* @__PURE__ */ jsx(Text, {
|
|
82868
83173
|
variant: "h1",
|
|
82869
83174
|
styleClass: "font-14",
|
|
82870
83175
|
className: styles$e.label,
|
|
82871
|
-
children:
|
|
82872
|
-
|
|
82873
|
-
|
|
82874
|
-
|
|
82875
|
-
|
|
82876
|
-
|
|
82877
|
-
|
|
82878
|
-
|
|
82879
|
-
|
|
82880
|
-
value: "horizontal"
|
|
82881
|
-
}, {
|
|
82882
|
-
label: "Hide vertical splitline",
|
|
82883
|
-
value: "vertical"
|
|
82884
|
-
}, {
|
|
82885
|
-
label: "Hide both splitline",
|
|
82886
|
-
value: "both"
|
|
82887
|
-
}, {
|
|
82888
|
-
label: "None",
|
|
82889
|
-
value: "none"
|
|
82890
|
-
}],
|
|
82891
|
-
onChange: (value) => setCustomSettings((s2) => ({
|
|
82892
|
-
...s2,
|
|
82893
|
-
hideSplitLines: value
|
|
82894
|
-
}))
|
|
82895
|
-
})
|
|
83176
|
+
children: "Single Value Chart Font Size"
|
|
83177
|
+
}), /* @__PURE__ */ jsx(InputField, {
|
|
83178
|
+
type: "number",
|
|
83179
|
+
label: "",
|
|
83180
|
+
onChange: (e2) => setCustomSettings((m2) => ({
|
|
83181
|
+
...m2,
|
|
83182
|
+
fontSize: parseInt(e2.target.value, 10)
|
|
83183
|
+
})),
|
|
83184
|
+
defaultValue: customSettings.fontSize
|
|
82896
83185
|
})]
|
|
82897
83186
|
}), /* @__PURE__ */ jsxs("div", {
|
|
82898
|
-
className: styles$e.
|
|
82899
|
-
children: [/* @__PURE__ */
|
|
83187
|
+
className: styles$e.singleCheckBox,
|
|
83188
|
+
children: [/* @__PURE__ */ jsx(InputField, {
|
|
83189
|
+
type: "checkbox",
|
|
83190
|
+
label: "",
|
|
83191
|
+
checked: customSettings.subHeaderShow,
|
|
83192
|
+
onChange: (e2) => setCustomSettings((settings2) => ({
|
|
83193
|
+
...settings2,
|
|
83194
|
+
subHeaderShow: e2.target.checked
|
|
83195
|
+
}))
|
|
83196
|
+
}), /* @__PURE__ */ jsxs(Text, {
|
|
82900
83197
|
variant: "h1",
|
|
82901
83198
|
styleClass: "font-14",
|
|
82902
83199
|
className: styles$e.label,
|
|
82903
|
-
children: ["
|
|
82904
|
-
children: "
|
|
83200
|
+
children: ["Single Value Sub-Header", /* @__PURE__ */ jsx(InfoTooltip, {
|
|
83201
|
+
children: "Single Value Sub-Header"
|
|
82905
83202
|
})]
|
|
82906
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
82907
|
-
className: styles$e.select,
|
|
82908
|
-
children: /* @__PURE__ */ jsx(Select, {
|
|
82909
|
-
value: customSettings.hideAxisLines,
|
|
82910
|
-
options: [{
|
|
82911
|
-
label: "Hide X-axis line",
|
|
82912
|
-
value: "x"
|
|
82913
|
-
}, {
|
|
82914
|
-
label: "Hide Y-axis line",
|
|
82915
|
-
value: "y"
|
|
82916
|
-
}, {
|
|
82917
|
-
label: "Hide both X and Y(axis) lines",
|
|
82918
|
-
value: "both"
|
|
82919
|
-
}, {
|
|
82920
|
-
label: "None",
|
|
82921
|
-
value: "none"
|
|
82922
|
-
}],
|
|
82923
|
-
onChange: (value) => setCustomSettings((s2) => ({
|
|
82924
|
-
...s2,
|
|
82925
|
-
hideAxisLines: value
|
|
82926
|
-
}))
|
|
82927
|
-
})
|
|
82928
83203
|
})]
|
|
82929
|
-
}),
|
|
83204
|
+
}), customSettings.subHeaderShow && /* @__PURE__ */ jsxs(Fragment, {
|
|
82930
83205
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
82931
83206
|
className: styles$e.seriesWrapper,
|
|
82932
|
-
children: [/* @__PURE__ */
|
|
83207
|
+
children: [/* @__PURE__ */ jsx(Text, {
|
|
82933
83208
|
variant: "h1",
|
|
82934
83209
|
styleClass: "font-14",
|
|
82935
83210
|
className: styles$e.label,
|
|
82936
|
-
children:
|
|
82937
|
-
children: "The width of each individual bar rectangle of the graph"
|
|
82938
|
-
})]
|
|
83211
|
+
children: "Sub-Header Display Text"
|
|
82939
83212
|
}), /* @__PURE__ */ jsx(InputField, {
|
|
82940
|
-
type: "
|
|
83213
|
+
type: "text",
|
|
82941
83214
|
label: "",
|
|
83215
|
+
placeholder: "Enter the text to display",
|
|
82942
83216
|
onChange: (e2) => setCustomSettings((m2) => ({
|
|
82943
83217
|
...m2,
|
|
82944
|
-
|
|
83218
|
+
displayText: e2.target.value
|
|
82945
83219
|
})),
|
|
82946
|
-
defaultValue: customSettings.
|
|
83220
|
+
defaultValue: customSettings.displayText
|
|
82947
83221
|
})]
|
|
82948
83222
|
}), /* @__PURE__ */ jsxs("div", {
|
|
82949
83223
|
className: styles$e.seriesWrapper,
|
|
82950
|
-
children: [/* @__PURE__ */
|
|
83224
|
+
children: [/* @__PURE__ */ jsx(Text, {
|
|
82951
83225
|
variant: "h1",
|
|
82952
83226
|
styleClass: "font-14",
|
|
82953
83227
|
className: styles$e.label,
|
|
82954
|
-
children:
|
|
82955
|
-
children: "The property that rounds the corners of the element's outer border edge"
|
|
82956
|
-
})]
|
|
83228
|
+
children: "Sub-Header Font Size"
|
|
82957
83229
|
}), /* @__PURE__ */ jsx(InputField, {
|
|
82958
83230
|
type: "number",
|
|
82959
83231
|
label: "",
|
|
82960
83232
|
onChange: (e2) => setCustomSettings((m2) => ({
|
|
82961
83233
|
...m2,
|
|
82962
|
-
|
|
83234
|
+
subHeaderFontSize: parseInt(e2.target.value, 10)
|
|
82963
83235
|
})),
|
|
82964
|
-
defaultValue: customSettings.
|
|
83236
|
+
defaultValue: customSettings.subHeaderFontSize
|
|
82965
83237
|
})]
|
|
82966
83238
|
})]
|
|
82967
|
-
})
|
|
82968
|
-
})]
|
|
82969
|
-
}), chartType2 === "single value" && /* @__PURE__ */ jsxs(Fragment, {
|
|
82970
|
-
children: [/* @__PURE__ */ jsxs("div", {
|
|
82971
|
-
className: styles$e.seriesWrapper,
|
|
82972
|
-
children: [/* @__PURE__ */ jsx(Text, {
|
|
82973
|
-
variant: "h1",
|
|
82974
|
-
styleClass: "font-14",
|
|
82975
|
-
className: styles$e.label,
|
|
82976
|
-
children: "Single Value Chart Font Size"
|
|
82977
|
-
}), /* @__PURE__ */ jsx(InputField, {
|
|
82978
|
-
type: "number",
|
|
82979
|
-
label: "",
|
|
82980
|
-
onChange: (e2) => setCustomSettings((m2) => ({
|
|
82981
|
-
...m2,
|
|
82982
|
-
fontSize: parseInt(e2.target.value, 10)
|
|
82983
|
-
})),
|
|
82984
|
-
defaultValue: customSettings.fontSize
|
|
82985
|
-
})]
|
|
82986
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
82987
|
-
className: styles$e.singleCheckBox,
|
|
82988
|
-
children: [/* @__PURE__ */ jsx(InputField, {
|
|
82989
|
-
type: "checkbox",
|
|
82990
|
-
label: "",
|
|
82991
|
-
checked: customSettings.subHeaderShow,
|
|
82992
|
-
onChange: (e2) => setCustomSettings((settings2) => ({
|
|
82993
|
-
...settings2,
|
|
82994
|
-
subHeaderShow: e2.target.checked
|
|
82995
|
-
}))
|
|
82996
|
-
}), /* @__PURE__ */ jsxs(Text, {
|
|
82997
|
-
variant: "h1",
|
|
82998
|
-
styleClass: "font-14",
|
|
82999
|
-
className: styles$e.label,
|
|
83000
|
-
children: ["Single Value Sub-Header", /* @__PURE__ */ jsx(InfoTooltip, {
|
|
83001
|
-
children: "Single Value Sub-Header"
|
|
83002
|
-
})]
|
|
83003
|
-
})]
|
|
83004
|
-
}), customSettings.subHeaderShow && /* @__PURE__ */ jsxs(Fragment, {
|
|
83005
|
-
children: [/* @__PURE__ */ jsxs("div", {
|
|
83239
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
83006
83240
|
className: styles$e.seriesWrapper,
|
|
83007
83241
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
83008
83242
|
variant: "h1",
|
|
83009
|
-
styleClass: "
|
|
83010
|
-
|
|
83011
|
-
|
|
83012
|
-
|
|
83013
|
-
|
|
83014
|
-
|
|
83015
|
-
|
|
83016
|
-
|
|
83017
|
-
|
|
83018
|
-
|
|
83019
|
-
|
|
83020
|
-
|
|
83243
|
+
styleClass: "primary",
|
|
83244
|
+
children: "Date formatting"
|
|
83245
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
83246
|
+
className: styles$e.valueLabelWrapper,
|
|
83247
|
+
children: /* @__PURE__ */ jsx(Select, {
|
|
83248
|
+
value: customSettings.dateFormatter,
|
|
83249
|
+
options: [{
|
|
83250
|
+
label: "None",
|
|
83251
|
+
value: "none"
|
|
83252
|
+
}, {
|
|
83253
|
+
label: "dd-mm-yyyy",
|
|
83254
|
+
value: "dd-mm-yyyy"
|
|
83255
|
+
}, {
|
|
83256
|
+
label: "mm-dd-yyyy",
|
|
83257
|
+
value: "mm-dd-yyyy"
|
|
83258
|
+
}, {
|
|
83259
|
+
label: "yyyy-mm-dd",
|
|
83260
|
+
value: "yyyy-mm-dd"
|
|
83261
|
+
}, {
|
|
83262
|
+
label: "dd/mm/yyyy",
|
|
83263
|
+
value: "dd/mm/yyyy"
|
|
83264
|
+
}, {
|
|
83265
|
+
label: "mm/dd/yyyy",
|
|
83266
|
+
value: "mm/dd/yyyy"
|
|
83267
|
+
}, {
|
|
83268
|
+
label: "yyyy/mm/dd",
|
|
83269
|
+
value: "yyyy/mm/dd"
|
|
83270
|
+
}, {
|
|
83271
|
+
label: "hh:mm:ss",
|
|
83272
|
+
value: "hh:mm:ss"
|
|
83273
|
+
}],
|
|
83274
|
+
onChange: (value) => setCustomSettings((s2) => ({
|
|
83275
|
+
...s2,
|
|
83276
|
+
dateFormatter: value
|
|
83277
|
+
}))
|
|
83278
|
+
})
|
|
83021
83279
|
})]
|
|
83022
83280
|
}), /* @__PURE__ */ jsxs("div", {
|
|
83023
83281
|
className: styles$e.seriesWrapper,
|
|
83024
83282
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
83025
83283
|
variant: "h1",
|
|
83026
|
-
styleClass: "
|
|
83027
|
-
|
|
83028
|
-
|
|
83029
|
-
|
|
83030
|
-
|
|
83031
|
-
|
|
83032
|
-
|
|
83033
|
-
|
|
83034
|
-
|
|
83035
|
-
|
|
83036
|
-
|
|
83284
|
+
styleClass: "primary",
|
|
83285
|
+
children: "Number formatting"
|
|
83286
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
83287
|
+
className: styles$e.valueLabelWrapper,
|
|
83288
|
+
children: /* @__PURE__ */ jsx(Select, {
|
|
83289
|
+
value: customSettings.numberFormatter,
|
|
83290
|
+
textSize: "12px",
|
|
83291
|
+
options: [{
|
|
83292
|
+
label: "Original value",
|
|
83293
|
+
value: "original"
|
|
83294
|
+
}, {
|
|
83295
|
+
label: "Adaptive formatting",
|
|
83296
|
+
value: "adaptive"
|
|
83297
|
+
}, {
|
|
83298
|
+
label: ",d (12345.432 => 12,345)",
|
|
83299
|
+
value: "d"
|
|
83300
|
+
}, {
|
|
83301
|
+
label: ".1s (12345.432 => 10k)",
|
|
83302
|
+
value: "1s"
|
|
83303
|
+
}, {
|
|
83304
|
+
label: ".3s (12345.432 => 12.3k)",
|
|
83305
|
+
value: "3s"
|
|
83306
|
+
}, {
|
|
83307
|
+
label: ",.1% (12345.432 => 1,234,543.2%)",
|
|
83308
|
+
value: "1%"
|
|
83309
|
+
}, {
|
|
83310
|
+
label: ",.2% (12345.432 => 1234543.20%)",
|
|
83311
|
+
value: "2%"
|
|
83312
|
+
}, {
|
|
83313
|
+
label: ",.3% (12345.432 => 1234543.200%)",
|
|
83314
|
+
value: "3%"
|
|
83315
|
+
}, {
|
|
83316
|
+
label: ".4r (12345.432 => 12350)",
|
|
83317
|
+
value: "4r"
|
|
83318
|
+
}, {
|
|
83319
|
+
label: ",.1f (12345.432 => 12,345.4)",
|
|
83320
|
+
value: "1f"
|
|
83321
|
+
}, {
|
|
83322
|
+
label: ",.2f (12345.432 => 12,345.43)",
|
|
83323
|
+
value: "2f"
|
|
83324
|
+
}, {
|
|
83325
|
+
label: ",.3f (12345.432 => 12,345.432)",
|
|
83326
|
+
value: "3f"
|
|
83327
|
+
}, {
|
|
83328
|
+
label: "+, (12345.432 => +12,345.432)",
|
|
83329
|
+
value: "+"
|
|
83330
|
+
}, {
|
|
83331
|
+
label: "$,.2f (12345.432 => $12,345.43)",
|
|
83332
|
+
value: "$"
|
|
83333
|
+
}, {
|
|
83334
|
+
label: "Duration in ms (66000 => 1m 6s)",
|
|
83335
|
+
value: "ms1"
|
|
83336
|
+
}, {
|
|
83337
|
+
label: `Duration in ms (1.40008 => 1ms 400\u03BCs 80ns)`,
|
|
83338
|
+
value: "ms2"
|
|
83339
|
+
}],
|
|
83340
|
+
onChange: (value) => setCustomSettings((s2) => ({
|
|
83341
|
+
...s2,
|
|
83342
|
+
numberFormatter: value
|
|
83343
|
+
}))
|
|
83344
|
+
})
|
|
83037
83345
|
})]
|
|
83038
83346
|
})]
|
|
83039
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
83040
|
-
className: styles$e.seriesWrapper,
|
|
83041
|
-
children: [/* @__PURE__ */ jsx(Text, {
|
|
83042
|
-
variant: "h1",
|
|
83043
|
-
styleClass: "primary",
|
|
83044
|
-
children: "Date formatting"
|
|
83045
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
83046
|
-
className: styles$e.valueLabelWrapper,
|
|
83047
|
-
children: /* @__PURE__ */ jsx(Select, {
|
|
83048
|
-
value: customSettings.dateFormatter,
|
|
83049
|
-
options: [{
|
|
83050
|
-
label: "None",
|
|
83051
|
-
value: "none"
|
|
83052
|
-
}, {
|
|
83053
|
-
label: "dd-mm-yyyy",
|
|
83054
|
-
value: "dd-mm-yyyy"
|
|
83055
|
-
}, {
|
|
83056
|
-
label: "mm-dd-yyyy",
|
|
83057
|
-
value: "mm-dd-yyyy"
|
|
83058
|
-
}, {
|
|
83059
|
-
label: "yyyy-mm-dd",
|
|
83060
|
-
value: "yyyy-mm-dd"
|
|
83061
|
-
}, {
|
|
83062
|
-
label: "dd/mm/yyyy",
|
|
83063
|
-
value: "dd/mm/yyyy"
|
|
83064
|
-
}, {
|
|
83065
|
-
label: "mm/dd/yyyy",
|
|
83066
|
-
value: "mm/dd/yyyy"
|
|
83067
|
-
}, {
|
|
83068
|
-
label: "yyyy/mm/dd",
|
|
83069
|
-
value: "yyyy/mm/dd"
|
|
83070
|
-
}, {
|
|
83071
|
-
label: "hh:mm:ss",
|
|
83072
|
-
value: "hh:mm:ss"
|
|
83073
|
-
}],
|
|
83074
|
-
onChange: (value) => setCustomSettings((s2) => ({
|
|
83075
|
-
...s2,
|
|
83076
|
-
dateFormatter: value
|
|
83077
|
-
}))
|
|
83078
|
-
})
|
|
83079
|
-
})]
|
|
83080
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
83081
|
-
className: styles$e.seriesWrapper,
|
|
83082
|
-
children: [/* @__PURE__ */ jsx(Text, {
|
|
83083
|
-
variant: "h1",
|
|
83084
|
-
styleClass: "primary",
|
|
83085
|
-
children: "Number formatting"
|
|
83086
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
83087
|
-
className: styles$e.valueLabelWrapper,
|
|
83088
|
-
children: /* @__PURE__ */ jsx(Select, {
|
|
83089
|
-
value: customSettings.numberFormatter,
|
|
83090
|
-
textSize: "12px",
|
|
83091
|
-
options: [{
|
|
83092
|
-
label: "Original value",
|
|
83093
|
-
value: "original"
|
|
83094
|
-
}, {
|
|
83095
|
-
label: "Adaptive formatting",
|
|
83096
|
-
value: "adaptive"
|
|
83097
|
-
}, {
|
|
83098
|
-
label: ",d (12345.432 => 12,345)",
|
|
83099
|
-
value: "d"
|
|
83100
|
-
}, {
|
|
83101
|
-
label: ".1s (12345.432 => 10k)",
|
|
83102
|
-
value: "1s"
|
|
83103
|
-
}, {
|
|
83104
|
-
label: ".3s (12345.432 => 12.3k)",
|
|
83105
|
-
value: "3s"
|
|
83106
|
-
}, {
|
|
83107
|
-
label: ",.1% (12345.432 => 1,234,543.2%)",
|
|
83108
|
-
value: "1%"
|
|
83109
|
-
}, {
|
|
83110
|
-
label: ",.2% (12345.432 => 1234543.20%)",
|
|
83111
|
-
value: "2%"
|
|
83112
|
-
}, {
|
|
83113
|
-
label: ",.3% (12345.432 => 1234543.200%)",
|
|
83114
|
-
value: "3%"
|
|
83115
|
-
}, {
|
|
83116
|
-
label: ".4r (12345.432 => 12350)",
|
|
83117
|
-
value: "4r"
|
|
83118
|
-
}, {
|
|
83119
|
-
label: ",.1f (12345.432 => 12,345.4)",
|
|
83120
|
-
value: "1f"
|
|
83121
|
-
}, {
|
|
83122
|
-
label: ",.2f (12345.432 => 12,345.43)",
|
|
83123
|
-
value: "2f"
|
|
83124
|
-
}, {
|
|
83125
|
-
label: ",.3f (12345.432 => 12,345.432)",
|
|
83126
|
-
value: "3f"
|
|
83127
|
-
}, {
|
|
83128
|
-
label: "+, (12345.432 => +12,345.432)",
|
|
83129
|
-
value: "+"
|
|
83130
|
-
}, {
|
|
83131
|
-
label: "$,.2f (12345.432 => $12,345.43)",
|
|
83132
|
-
value: "$"
|
|
83133
|
-
}, {
|
|
83134
|
-
label: "Duration in ms (66000 => 1m 6s)",
|
|
83135
|
-
value: "ms1"
|
|
83136
|
-
}, {
|
|
83137
|
-
label: `Duration in ms (1.40008 => 1ms 400\u03BCs 80ns)`,
|
|
83138
|
-
value: "ms2"
|
|
83139
|
-
}],
|
|
83140
|
-
onChange: (value) => setCustomSettings((s2) => ({
|
|
83141
|
-
...s2,
|
|
83142
|
-
numberFormatter: value
|
|
83143
|
-
}))
|
|
83144
|
-
})
|
|
83145
|
-
})]
|
|
83146
83347
|
})]
|
|
83147
83348
|
})]
|
|
83148
83349
|
})]
|
|
@@ -83226,7 +83427,9 @@ const ChartSettings = ({
|
|
|
83226
83427
|
customSettings,
|
|
83227
83428
|
setCustomSettings,
|
|
83228
83429
|
backGroundColor,
|
|
83229
|
-
setBackGroundColor
|
|
83430
|
+
setBackGroundColor,
|
|
83431
|
+
tableSettings,
|
|
83432
|
+
setTableSettings
|
|
83230
83433
|
}) => {
|
|
83231
83434
|
const [selectedTab2, setSelectedTab] = useState(GENERAL);
|
|
83232
83435
|
const FIRST_TAB = "Chart types";
|
|
@@ -83329,7 +83532,9 @@ const ChartSettings = ({
|
|
|
83329
83532
|
chartType: chartType2,
|
|
83330
83533
|
setChartType,
|
|
83331
83534
|
backGroundColor,
|
|
83332
|
-
setBackGroundColor
|
|
83535
|
+
setBackGroundColor,
|
|
83536
|
+
tableSettings,
|
|
83537
|
+
setTableSettings
|
|
83333
83538
|
})]
|
|
83334
83539
|
})]
|
|
83335
83540
|
});
|
|
@@ -83444,7 +83649,9 @@ const ChartTab = ({
|
|
|
83444
83649
|
isEnableGroupBy,
|
|
83445
83650
|
backGroundColor,
|
|
83446
83651
|
setBackGroundColor,
|
|
83447
|
-
headerChild
|
|
83652
|
+
headerChild,
|
|
83653
|
+
tableSettings,
|
|
83654
|
+
setTableSettings
|
|
83448
83655
|
}) => {
|
|
83449
83656
|
var _a2, _b2, _c2, _d;
|
|
83450
83657
|
const {
|
|
@@ -83553,7 +83760,9 @@ const ChartTab = ({
|
|
|
83553
83760
|
customSettings,
|
|
83554
83761
|
setCustomSettings,
|
|
83555
83762
|
backGroundColor,
|
|
83556
|
-
setBackGroundColor
|
|
83763
|
+
setBackGroundColor,
|
|
83764
|
+
tableSettings,
|
|
83765
|
+
setTableSettings
|
|
83557
83766
|
})
|
|
83558
83767
|
}), (labels2 == null ? void 0 : labels2.length) ? /* @__PURE__ */ jsx("div", {
|
|
83559
83768
|
className: styles$b.labels,
|
|
@@ -83583,7 +83792,8 @@ const ChartTab = ({
|
|
|
83583
83792
|
route: "/{{value}}",
|
|
83584
83793
|
routeType: "internal"
|
|
83585
83794
|
},
|
|
83586
|
-
enableSaveAs: true
|
|
83795
|
+
enableSaveAs: true,
|
|
83796
|
+
tableSettings
|
|
83587
83797
|
})
|
|
83588
83798
|
}) : /* @__PURE__ */ jsxs("div", {
|
|
83589
83799
|
className: styles$b.metricChartEmpty,
|
|
@@ -83629,6 +83839,7 @@ const ChartTab = ({
|
|
|
83629
83839
|
axisSettings,
|
|
83630
83840
|
customSettings,
|
|
83631
83841
|
backGroundColor,
|
|
83842
|
+
tableSettings,
|
|
83632
83843
|
enableSaveAs: true,
|
|
83633
83844
|
chartClickConfig: {
|
|
83634
83845
|
isEnable: false,
|
|
@@ -83997,6 +84208,8 @@ const MetricOutput = ({
|
|
|
83997
84208
|
setAxisSettings,
|
|
83998
84209
|
customSettings,
|
|
83999
84210
|
setCustomSettings,
|
|
84211
|
+
tableSettings,
|
|
84212
|
+
setTableSettings,
|
|
84000
84213
|
updateGroup,
|
|
84001
84214
|
isEnableGroupBy,
|
|
84002
84215
|
backGroundColor,
|
|
@@ -84072,7 +84285,9 @@ const MetricOutput = ({
|
|
|
84072
84285
|
isEnableGroupBy,
|
|
84073
84286
|
isLoading,
|
|
84074
84287
|
backGroundColor,
|
|
84075
|
-
setBackGroundColor
|
|
84288
|
+
setBackGroundColor,
|
|
84289
|
+
tableSettings,
|
|
84290
|
+
setTableSettings
|
|
84076
84291
|
}), (_a2 = moreTabs == null ? void 0 : moreTabs.find((tabObj) => tabObj.name === selectedTab2)) == null ? void 0 : _a2.tabContent]
|
|
84077
84292
|
})]
|
|
84078
84293
|
});
|
|
@@ -85432,6 +85647,18 @@ const EmbeddedMetricCreation = ({
|
|
|
85432
85647
|
dateFormatter: "none",
|
|
85433
85648
|
numberFormatter: "original"
|
|
85434
85649
|
});
|
|
85650
|
+
const [tableSettings, setTableSettings] = useState({
|
|
85651
|
+
contentAlignment: "center",
|
|
85652
|
+
lineGap: "small",
|
|
85653
|
+
hideVerticalDivider: false,
|
|
85654
|
+
enableStripedRows: false,
|
|
85655
|
+
showRowHover: false,
|
|
85656
|
+
showTableTitle: false,
|
|
85657
|
+
showTableDesc: false,
|
|
85658
|
+
enableTableSearch: false,
|
|
85659
|
+
enableFilter: false,
|
|
85660
|
+
enableSorting: false
|
|
85661
|
+
});
|
|
85435
85662
|
const [labelSettings, setLabelSettings] = useState({
|
|
85436
85663
|
axis: "left",
|
|
85437
85664
|
show: false,
|
|
@@ -85489,6 +85716,7 @@ const EmbeddedMetricCreation = ({
|
|
|
85489
85716
|
xAxis,
|
|
85490
85717
|
backGroundColor,
|
|
85491
85718
|
customSettings,
|
|
85719
|
+
tableSettings,
|
|
85492
85720
|
chartType: chartType2,
|
|
85493
85721
|
yAxisList,
|
|
85494
85722
|
step,
|
|
@@ -85658,7 +85886,9 @@ const EmbeddedMetricCreation = ({
|
|
|
85658
85886
|
backGroundColor,
|
|
85659
85887
|
setBackGroundColor,
|
|
85660
85888
|
customSettings,
|
|
85661
|
-
setCustomSettings
|
|
85889
|
+
setCustomSettings,
|
|
85890
|
+
tableSettings,
|
|
85891
|
+
setTableSettings
|
|
85662
85892
|
})]
|
|
85663
85893
|
})
|
|
85664
85894
|
}), /* @__PURE__ */ jsx(Modal, {
|
|
@@ -91053,6 +91283,18 @@ const MetricCard = ({
|
|
|
91053
91283
|
filterValues: filterValues2
|
|
91054
91284
|
});
|
|
91055
91285
|
const queryData = (_a2 = metricdata == null ? void 0 : metricdata.externalMetricQuery) == null ? void 0 : _a2.data;
|
|
91286
|
+
const [tableSettings, setTableSettings] = useState({
|
|
91287
|
+
contentAlignment: "center",
|
|
91288
|
+
lineGap: "small",
|
|
91289
|
+
hideVerticalDivider: false,
|
|
91290
|
+
enableStripedRows: false,
|
|
91291
|
+
showRowHover: false,
|
|
91292
|
+
showTableTitle: false,
|
|
91293
|
+
showTableDesc: false,
|
|
91294
|
+
enableTableSearch: false,
|
|
91295
|
+
enableFilter: false,
|
|
91296
|
+
enableSorting: false
|
|
91297
|
+
});
|
|
91056
91298
|
const [margins, setMargins] = useState({
|
|
91057
91299
|
marginTop: 20,
|
|
91058
91300
|
marginBottom: 20,
|
|
@@ -91141,6 +91383,18 @@ const MetricCard = ({
|
|
|
91141
91383
|
routeType: "internal"
|
|
91142
91384
|
}
|
|
91143
91385
|
});
|
|
91386
|
+
setTableSettings((metricItem == null ? void 0 : metricItem.chartOptions.tableSettings) ? metricItem == null ? void 0 : metricItem.chartOptions.tableSettings : {
|
|
91387
|
+
contentAlignment: "center",
|
|
91388
|
+
lineGap: "small",
|
|
91389
|
+
hideVerticalDivider: false,
|
|
91390
|
+
enableStripedRows: false,
|
|
91391
|
+
showRowHover: false,
|
|
91392
|
+
showTableTitle: false,
|
|
91393
|
+
showTableDesc: false,
|
|
91394
|
+
enableTableSearch: false,
|
|
91395
|
+
enableFilter: false,
|
|
91396
|
+
enableSorting: false
|
|
91397
|
+
});
|
|
91144
91398
|
}, [metricItem]);
|
|
91145
91399
|
useEffect(() => {
|
|
91146
91400
|
setData(queryData != null ? queryData : []);
|
|
@@ -91209,10 +91463,23 @@ const MetricCard = ({
|
|
|
91209
91463
|
updateGroupData(dataDb, [selectedGroupBy[0]], selectedGroupBy, setGroupedData);
|
|
91210
91464
|
}
|
|
91211
91465
|
};
|
|
91212
|
-
const onChangeFilterValue = (name, value
|
|
91213
|
-
|
|
91214
|
-
|
|
91215
|
-
|
|
91466
|
+
const onChangeFilterValue = (name, value, customValue) => {
|
|
91467
|
+
if (customValue) {
|
|
91468
|
+
setRlsConditions((prev) => prev.map((rls) => rls.name === name ? {
|
|
91469
|
+
...rls,
|
|
91470
|
+
value,
|
|
91471
|
+
options: rls.options.map((option2) => option2.name === "Custom" ? {
|
|
91472
|
+
...option2,
|
|
91473
|
+
...customValue
|
|
91474
|
+
} : option2)
|
|
91475
|
+
} : rls));
|
|
91476
|
+
} else {
|
|
91477
|
+
setRlsConditions((prev) => prev.map((rls) => rls.name === name ? {
|
|
91478
|
+
...rls,
|
|
91479
|
+
value
|
|
91480
|
+
} : rls));
|
|
91481
|
+
}
|
|
91482
|
+
};
|
|
91216
91483
|
return /* @__PURE__ */ jsx(Fragment, {
|
|
91217
91484
|
children: /* @__PURE__ */ jsxs("div", {
|
|
91218
91485
|
className: styles.cardContainer,
|
|
@@ -91250,7 +91517,7 @@ const MetricCard = ({
|
|
|
91250
91517
|
})]
|
|
91251
91518
|
}), /* @__PURE__ */ jsxs("div", {
|
|
91252
91519
|
className: styles.features,
|
|
91253
|
-
children: [!!rlsConditions.length && /* @__PURE__ */ jsx("div", {
|
|
91520
|
+
children: [!!rlsConditions.length && (rlsConditions[0].datatype !== "date" ? /* @__PURE__ */ jsx("div", {
|
|
91254
91521
|
className: styles.metricFilter,
|
|
91255
91522
|
children: /* @__PURE__ */ jsx(FloatingDropDown, {
|
|
91256
91523
|
label: rlsConditions[0].name,
|
|
@@ -91264,7 +91531,47 @@ const MetricCard = ({
|
|
|
91264
91531
|
})),
|
|
91265
91532
|
onChange: (option2) => onChangeFilterValue(rlsConditions[0].name, option2.value)
|
|
91266
91533
|
})
|
|
91267
|
-
})
|
|
91534
|
+
}) : /* @__PURE__ */ jsx("div", {
|
|
91535
|
+
className: styles.metricFilter,
|
|
91536
|
+
children: /* @__PURE__ */ jsx(FloatingDropDown, {
|
|
91537
|
+
label: rlsConditions[0].name,
|
|
91538
|
+
selectedOption: {
|
|
91539
|
+
value: rlsConditions[0].value.name || rlsConditions[0].options[0].name,
|
|
91540
|
+
label: rlsConditions[0].value.name || rlsConditions[0].options[0].name
|
|
91541
|
+
},
|
|
91542
|
+
options: rlsConditions[0].options.map((o2) => ({
|
|
91543
|
+
value: o2.name,
|
|
91544
|
+
label: o2.name
|
|
91545
|
+
})),
|
|
91546
|
+
onChange: (option2) => onChangeFilterValue(rlsConditions[0].name, option2.value),
|
|
91547
|
+
children: rlsConditions[0].value === "Custom" ? /* @__PURE__ */ jsxs("div", {
|
|
91548
|
+
className: "p-1",
|
|
91549
|
+
children: [/* @__PURE__ */ jsx(InputField, {
|
|
91550
|
+
label: "From Date",
|
|
91551
|
+
type: "date",
|
|
91552
|
+
onChange: ({
|
|
91553
|
+
target: {
|
|
91554
|
+
value
|
|
91555
|
+
}
|
|
91556
|
+
}) => {
|
|
91557
|
+
onChangeFilterValue(rlsConditions[0].name, "Custom", {
|
|
91558
|
+
from: new Date(Date.parse(value))
|
|
91559
|
+
});
|
|
91560
|
+
}
|
|
91561
|
+
}), /* @__PURE__ */ jsx(InputField, {
|
|
91562
|
+
label: "To Date",
|
|
91563
|
+
type: "date",
|
|
91564
|
+
onChange: ({
|
|
91565
|
+
target: {
|
|
91566
|
+
value
|
|
91567
|
+
}
|
|
91568
|
+
}) => onChangeFilterValue(rlsConditions[0].name, "Custom", {
|
|
91569
|
+
to: new Date(Date.parse(value))
|
|
91570
|
+
})
|
|
91571
|
+
})]
|
|
91572
|
+
}) : null
|
|
91573
|
+
})
|
|
91574
|
+
})), /* @__PURE__ */ jsxs(PopoverMenu, {
|
|
91268
91575
|
buttonClass: styles.popup,
|
|
91269
91576
|
button: /* @__PURE__ */ jsx(Icons, {
|
|
91270
91577
|
name: "more-icon",
|
|
@@ -91295,6 +91602,7 @@ const MetricCard = ({
|
|
|
91295
91602
|
axisSettings,
|
|
91296
91603
|
customSettings,
|
|
91297
91604
|
backGroundColor,
|
|
91605
|
+
tableSettings,
|
|
91298
91606
|
enableSaveAs: true,
|
|
91299
91607
|
chartClickConfig: clickBehaviourConfigs.chart
|
|
91300
91608
|
});
|
|
@@ -91351,6 +91659,7 @@ const MetricCard = ({
|
|
|
91351
91659
|
legendSettings,
|
|
91352
91660
|
labelSettings,
|
|
91353
91661
|
axisSettings,
|
|
91662
|
+
tableSettings,
|
|
91354
91663
|
enableSaveAs: true,
|
|
91355
91664
|
colors: globalTheme ? (_c2 = (_b2 = globalTheme.chart.palettes) == null ? void 0 : _b2.find((palette) => palette.name === globalTheme.chart.selected)) == null ? void 0 : _c2.colors : colors2,
|
|
91356
91665
|
updateGroup,
|
|
@@ -91478,10 +91787,23 @@ const SingleValueCard = ({
|
|
|
91478
91787
|
const chartData = [{
|
|
91479
91788
|
value: singleValueData2[0]
|
|
91480
91789
|
}];
|
|
91481
|
-
const onChangeFilterValue = (name, value
|
|
91482
|
-
|
|
91483
|
-
|
|
91484
|
-
|
|
91790
|
+
const onChangeFilterValue = (name, value, customValue) => {
|
|
91791
|
+
if (customValue) {
|
|
91792
|
+
setRlsConditions((prev) => prev.map((rls) => rls.name === name ? {
|
|
91793
|
+
...rls,
|
|
91794
|
+
value,
|
|
91795
|
+
options: rls.options.map((option2) => option2.name === "Custom" ? {
|
|
91796
|
+
...option2,
|
|
91797
|
+
...customValue
|
|
91798
|
+
} : option2)
|
|
91799
|
+
} : rls));
|
|
91800
|
+
} else {
|
|
91801
|
+
setRlsConditions((prev) => prev.map((rls) => rls.name === name ? {
|
|
91802
|
+
...rls,
|
|
91803
|
+
value
|
|
91804
|
+
} : rls));
|
|
91805
|
+
}
|
|
91806
|
+
};
|
|
91485
91807
|
return /* @__PURE__ */ jsx(Fragment, {
|
|
91486
91808
|
children: /* @__PURE__ */ jsxs("div", {
|
|
91487
91809
|
className: styles.cardContainer,
|
|
@@ -91519,7 +91841,7 @@ const SingleValueCard = ({
|
|
|
91519
91841
|
})]
|
|
91520
91842
|
}), /* @__PURE__ */ jsx("div", {
|
|
91521
91843
|
className: styles.features,
|
|
91522
|
-
children: !!
|
|
91844
|
+
children: !!rlsConditions.length && (rlsConditions[0].datatype !== "date" ? /* @__PURE__ */ jsx("div", {
|
|
91523
91845
|
className: styles.metricFilter,
|
|
91524
91846
|
children: /* @__PURE__ */ jsx(FloatingDropDown, {
|
|
91525
91847
|
label: rlsConditions[0].name,
|
|
@@ -91533,7 +91855,47 @@ const SingleValueCard = ({
|
|
|
91533
91855
|
})),
|
|
91534
91856
|
onChange: (option2) => onChangeFilterValue(rlsConditions[0].name, option2.value)
|
|
91535
91857
|
})
|
|
91536
|
-
})
|
|
91858
|
+
}) : /* @__PURE__ */ jsx("div", {
|
|
91859
|
+
className: styles.metricFilter,
|
|
91860
|
+
children: /* @__PURE__ */ jsx(FloatingDropDown, {
|
|
91861
|
+
label: rlsConditions[0].name,
|
|
91862
|
+
selectedOption: {
|
|
91863
|
+
value: rlsConditions[0].value.name || rlsConditions[0].options[0].name,
|
|
91864
|
+
label: rlsConditions[0].value.name || rlsConditions[0].options[0].name
|
|
91865
|
+
},
|
|
91866
|
+
options: rlsConditions[0].options.map((o2) => ({
|
|
91867
|
+
value: o2.name,
|
|
91868
|
+
label: o2.name
|
|
91869
|
+
})),
|
|
91870
|
+
onChange: (option2) => onChangeFilterValue(rlsConditions[0].name, option2.value),
|
|
91871
|
+
children: rlsConditions[0].value === "Custom" ? /* @__PURE__ */ jsxs("div", {
|
|
91872
|
+
className: "p-1",
|
|
91873
|
+
children: [/* @__PURE__ */ jsx(InputField, {
|
|
91874
|
+
label: "From Date",
|
|
91875
|
+
type: "date",
|
|
91876
|
+
onChange: ({
|
|
91877
|
+
target: {
|
|
91878
|
+
value
|
|
91879
|
+
}
|
|
91880
|
+
}) => {
|
|
91881
|
+
onChangeFilterValue(rlsConditions[0].name, "Custom", {
|
|
91882
|
+
from: new Date(Date.parse(value))
|
|
91883
|
+
});
|
|
91884
|
+
}
|
|
91885
|
+
}), /* @__PURE__ */ jsx(InputField, {
|
|
91886
|
+
label: "To Date",
|
|
91887
|
+
type: "date",
|
|
91888
|
+
onChange: ({
|
|
91889
|
+
target: {
|
|
91890
|
+
value
|
|
91891
|
+
}
|
|
91892
|
+
}) => onChangeFilterValue(rlsConditions[0].name, "Custom", {
|
|
91893
|
+
to: new Date(Date.parse(value))
|
|
91894
|
+
})
|
|
91895
|
+
})]
|
|
91896
|
+
}) : null
|
|
91897
|
+
})
|
|
91898
|
+
}))
|
|
91537
91899
|
})]
|
|
91538
91900
|
}), chartType2 && /* @__PURE__ */ jsx("div", {
|
|
91539
91901
|
className: `${styles.metricData} ${styles.singleValueData}`,
|