@databrainhq/plugin 0.9.11 → 0.9.12

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.
@@ -4,6 +4,7 @@ declare type Filter = {
4
4
  dataType: string;
5
5
  name: string;
6
6
  isDefault?: boolean | undefined;
7
+ label?: string;
7
8
  };
8
9
  declare type Props = {
9
10
  columnList: Filter[];
@@ -6,6 +6,7 @@ declare type NumberFieldProps = {
6
6
  dataType: string;
7
7
  name: string;
8
8
  isDefault?: boolean | undefined;
9
+ label?: string;
9
10
  };
10
11
  defaultValues?: {
11
12
  min: number;
package/dist/index.es.js CHANGED
@@ -5806,13 +5806,13 @@ const ChartConfig = ({
5806
5806
  }), /* @__PURE__ */ jsxs("form", {
5807
5807
  onSubmit: handleSubmit(onSubmitOptions),
5808
5808
  className: styles$K.form,
5809
- children: [["funnel", "guage", "boxplot", "table"].includes(chartType2) ? /* @__PURE__ */ jsx(Select, {
5809
+ children: [["funnel", "guage", "boxplot"].includes(chartType2) ? /* @__PURE__ */ jsx(Select, {
5810
5810
  label: "Measure",
5811
5811
  options: options2,
5812
5812
  onChange: setMeasure,
5813
5813
  value: measure
5814
5814
  }) : /* @__PURE__ */ jsx(HookMultiSelect, {
5815
- label: chartType2 === "row" ? "X-axis" : "Y-axis",
5815
+ label: chartType2 === "row" ? "X-axis" : chartType2 === "table" ? "Measure" : "Y-axis",
5816
5816
  name: "yAxisList",
5817
5817
  options: options2,
5818
5818
  defaultValue: options2.map((option2) => option2.value),
@@ -86790,7 +86790,7 @@ const NumberFilterField = ({
86790
86790
  variant: "p",
86791
86791
  styleClass: "font-14",
86792
86792
  className: styles$s.numberFieldLabel,
86793
- children: column2.name
86793
+ children: column2.label || column2.name
86794
86794
  }), /* @__PURE__ */ jsx(Text, {
86795
86795
  variant: "p",
86796
86796
  styleClass: "font-14",
@@ -86896,7 +86896,7 @@ const AddFilter = ({
86896
86896
  setFilterList(updatedOptions);
86897
86897
  },
86898
86898
  className: isSelected ? styles$s.checkedOption : styles$s.option,
86899
- children: [isSelected ? /* @__PURE__ */ jsx(materialSymbolsCheckBox, {}) : /* @__PURE__ */ jsx(materialSymbolsCheckBoxOutlineBlank, {}), col.name]
86899
+ children: [isSelected ? /* @__PURE__ */ jsx(materialSymbolsCheckBox, {}) : /* @__PURE__ */ jsx(materialSymbolsCheckBoxOutlineBlank, {}), col.label || col.name]
86900
86900
  });
86901
86901
  })
86902
86902
  })
@@ -95573,7 +95573,7 @@ const GlobalFilters = ({
95573
95573
  className: styles$s.filterDropdown,
95574
95574
  children: [col.as === "date" && /* @__PURE__ */ jsx(Fragment, {
95575
95575
  children: /* @__PURE__ */ jsx(DateRangePicker, {
95576
- label: col.name,
95576
+ label: col.label || col.name,
95577
95577
  defaultValues: (_a2 = appliedfilters2.find((filter2) => filter2.column === col.name)) == null ? void 0 : _a2.defaultValues,
95578
95578
  onChange: (option2) => {
95579
95579
  if (option2)
@@ -95629,7 +95629,8 @@ const GlobalFilters = ({
95629
95629
  }),
95630
95630
  isSearchEnabled: true,
95631
95631
  integrationId,
95632
- integrationName
95632
+ integrationName,
95633
+ label: col.label || col.name
95633
95634
  }), col.as === "default" || col.as === "boolean" ? /* @__PURE__ */ jsx(FilterDropDown, {
95634
95635
  filter: {
95635
95636
  tableName: filters2[0].tableName,
@@ -95654,7 +95655,8 @@ const GlobalFilters = ({
95654
95655
  }),
95655
95656
  isSearchEnabled: true,
95656
95657
  integrationId,
95657
- integrationName
95658
+ integrationName,
95659
+ label: col.label || col.name
95658
95660
  }) : null]
95659
95661
  })
95660
95662
  });