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