@databrainhq/plugin 0.9.11 → 0.9.13
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/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"
|
|
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),
|
|
@@ -86704,38 +86704,38 @@ const FilterField = ({
|
|
|
86704
86704
|
})
|
|
86705
86705
|
});
|
|
86706
86706
|
};
|
|
86707
|
-
const container$9 = "
|
|
86708
|
-
const form$1 = "
|
|
86709
|
-
const filterHeader = "
|
|
86710
|
-
const titleContent = "
|
|
86711
|
-
const title = "
|
|
86712
|
-
const buttons = "
|
|
86713
|
-
const apply = "
|
|
86714
|
-
const applyIcon = "
|
|
86715
|
-
const reset = "
|
|
86716
|
-
const filterFields = "
|
|
86717
|
-
const AddFilter$1 = "
|
|
86718
|
-
const filterDropdown$1 = "
|
|
86719
|
-
const filters = "
|
|
86720
|
-
const filterItem = "
|
|
86721
|
-
const filterItemOperator = "
|
|
86722
|
-
const remove = "
|
|
86723
|
-
const filterCol = "
|
|
86724
|
-
const filterText = "
|
|
86725
|
-
const smallText = "
|
|
86726
|
-
const numberField = "
|
|
86727
|
-
const numberFieldWrapper = "
|
|
86728
|
-
const numberFieldLabel = "
|
|
86729
|
-
const numberFieldLabelText = "
|
|
86730
|
-
const numberFieldLabelSelectText = "
|
|
86731
|
-
const numberFieldButtonClass = "
|
|
86732
|
-
const numberFieldLabelMenuClass = "
|
|
86733
|
-
const checkedOption$1 = "
|
|
86734
|
-
const option = "
|
|
86735
|
-
const addFilterMenu = "
|
|
86736
|
-
const appliedFilterTag = "
|
|
86737
|
-
const appliedfilters = "
|
|
86738
|
-
const textBold = "
|
|
86707
|
+
const container$9 = "_container_550f5_1";
|
|
86708
|
+
const form$1 = "_form_550f5_7";
|
|
86709
|
+
const filterHeader = "_filterHeader_550f5_13";
|
|
86710
|
+
const titleContent = "_titleContent_550f5_19";
|
|
86711
|
+
const title = "_title_550f5_19";
|
|
86712
|
+
const buttons = "_buttons_550f5_31";
|
|
86713
|
+
const apply = "_apply_550f5_37";
|
|
86714
|
+
const applyIcon = "_applyIcon_550f5_43";
|
|
86715
|
+
const reset = "_reset_550f5_49";
|
|
86716
|
+
const filterFields = "_filterFields_550f5_55";
|
|
86717
|
+
const AddFilter$1 = "_AddFilter_550f5_61";
|
|
86718
|
+
const filterDropdown$1 = "_filterDropdown_550f5_67";
|
|
86719
|
+
const filters = "_filters_550f5_73";
|
|
86720
|
+
const filterItem = "_filterItem_550f5_79";
|
|
86721
|
+
const filterItemOperator = "_filterItemOperator_550f5_85";
|
|
86722
|
+
const remove = "_remove_550f5_91";
|
|
86723
|
+
const filterCol = "_filterCol_550f5_97";
|
|
86724
|
+
const filterText = "_filterText_550f5_103";
|
|
86725
|
+
const smallText = "_smallText_550f5_109";
|
|
86726
|
+
const numberField = "_numberField_550f5_117";
|
|
86727
|
+
const numberFieldWrapper = "_numberFieldWrapper_550f5_125";
|
|
86728
|
+
const numberFieldLabel = "_numberFieldLabel_550f5_133";
|
|
86729
|
+
const numberFieldLabelText = "_numberFieldLabelText_550f5_141";
|
|
86730
|
+
const numberFieldLabelSelectText = "_numberFieldLabelSelectText_550f5_149";
|
|
86731
|
+
const numberFieldButtonClass = "_numberFieldButtonClass_550f5_157";
|
|
86732
|
+
const numberFieldLabelMenuClass = "_numberFieldLabelMenuClass_550f5_165";
|
|
86733
|
+
const checkedOption$1 = "_checkedOption_550f5_173";
|
|
86734
|
+
const option = "_option_550f5_181";
|
|
86735
|
+
const addFilterMenu = "_addFilterMenu_550f5_189";
|
|
86736
|
+
const appliedFilterTag = "_appliedFilterTag_550f5_197";
|
|
86737
|
+
const appliedfilters = "_appliedfilters_550f5_205";
|
|
86738
|
+
const textBold = "_textBold_550f5_213";
|
|
86739
86739
|
var styles$s = {
|
|
86740
86740
|
container: container$9,
|
|
86741
86741
|
form: form$1,
|
|
@@ -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
|
})
|
|
@@ -95321,6 +95321,9 @@ const DateRangePicker = ({
|
|
|
95321
95321
|
if (type3 === "month") {
|
|
95322
95322
|
const lastThreeMonths = new Date();
|
|
95323
95323
|
lastThreeMonths.setMonth(lastThreeMonths.getMonth() + startOffset);
|
|
95324
|
+
if (startOffset === 0) {
|
|
95325
|
+
lastThreeMonths.setDate(1);
|
|
95326
|
+
}
|
|
95324
95327
|
setStartDate(lastThreeMonths);
|
|
95325
95328
|
setEndDate(new Date());
|
|
95326
95329
|
} else if (type3 === "year") {
|
|
@@ -95573,7 +95576,7 @@ const GlobalFilters = ({
|
|
|
95573
95576
|
className: styles$s.filterDropdown,
|
|
95574
95577
|
children: [col.as === "date" && /* @__PURE__ */ jsx(Fragment, {
|
|
95575
95578
|
children: /* @__PURE__ */ jsx(DateRangePicker, {
|
|
95576
|
-
label: col.name,
|
|
95579
|
+
label: col.label || col.name,
|
|
95577
95580
|
defaultValues: (_a2 = appliedfilters2.find((filter2) => filter2.column === col.name)) == null ? void 0 : _a2.defaultValues,
|
|
95578
95581
|
onChange: (option2) => {
|
|
95579
95582
|
if (option2)
|
|
@@ -95629,7 +95632,8 @@ const GlobalFilters = ({
|
|
|
95629
95632
|
}),
|
|
95630
95633
|
isSearchEnabled: true,
|
|
95631
95634
|
integrationId,
|
|
95632
|
-
integrationName
|
|
95635
|
+
integrationName,
|
|
95636
|
+
label: col.label || col.name
|
|
95633
95637
|
}), col.as === "default" || col.as === "boolean" ? /* @__PURE__ */ jsx(FilterDropDown, {
|
|
95634
95638
|
filter: {
|
|
95635
95639
|
tableName: filters2[0].tableName,
|
|
@@ -95654,7 +95658,8 @@ const GlobalFilters = ({
|
|
|
95654
95658
|
}),
|
|
95655
95659
|
isSearchEnabled: true,
|
|
95656
95660
|
integrationId,
|
|
95657
|
-
integrationName
|
|
95661
|
+
integrationName,
|
|
95662
|
+
label: col.label || col.name
|
|
95658
95663
|
}) : null]
|
|
95659
95664
|
})
|
|
95660
95665
|
});
|
|
@@ -131113,7 +131118,7 @@ const MetricCard = ({
|
|
|
131113
131118
|
color: "blue"
|
|
131114
131119
|
}
|
|
131115
131120
|
})
|
|
131116
|
-
}), (drillDownSettings == null ? void 0 : drillDownSettings.isEnableGroupBy) && /* @__PURE__ */ jsx(DrillBreadCrumb, {
|
|
131121
|
+
}), (drillDownSettings == null ? void 0 : drillDownSettings.isEnableGroupBy) && !!dataDb.length && /* @__PURE__ */ jsx(DrillBreadCrumb, {
|
|
131117
131122
|
dimensions: drillDownSettings.selectedDimensions,
|
|
131118
131123
|
drilledLevel
|
|
131119
131124
|
}), (chartParams == null ? void 0 : chartParams.name) && columnName && /* @__PURE__ */ jsx(ChartPopup$1, {
|