@databrainhq/plugin 0.9.12 → 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
@@ -86704,38 +86704,38 @@ const FilterField = ({
86704
86704
  })
86705
86705
  });
86706
86706
  };
86707
- const container$9 = "_container_13zds_1";
86708
- const form$1 = "_form_13zds_7";
86709
- const filterHeader = "_filterHeader_13zds_13";
86710
- const titleContent = "_titleContent_13zds_19";
86711
- const title = "_title_13zds_19";
86712
- const buttons = "_buttons_13zds_31";
86713
- const apply = "_apply_13zds_37";
86714
- const applyIcon = "_applyIcon_13zds_43";
86715
- const reset = "_reset_13zds_49";
86716
- const filterFields = "_filterFields_13zds_55";
86717
- const AddFilter$1 = "_AddFilter_13zds_61";
86718
- const filterDropdown$1 = "_filterDropdown_13zds_67";
86719
- const filters = "_filters_13zds_73";
86720
- const filterItem = "_filterItem_13zds_79";
86721
- const filterItemOperator = "_filterItemOperator_13zds_85";
86722
- const remove = "_remove_13zds_91";
86723
- const filterCol = "_filterCol_13zds_97";
86724
- const filterText = "_filterText_13zds_103";
86725
- const smallText = "_smallText_13zds_109";
86726
- const numberField = "_numberField_13zds_117";
86727
- const numberFieldWrapper = "_numberFieldWrapper_13zds_125";
86728
- const numberFieldLabel = "_numberFieldLabel_13zds_133";
86729
- const numberFieldLabelText = "_numberFieldLabelText_13zds_141";
86730
- const numberFieldLabelSelectText = "_numberFieldLabelSelectText_13zds_149";
86731
- const numberFieldButtonClass = "_numberFieldButtonClass_13zds_157";
86732
- const numberFieldLabelMenuClass = "_numberFieldLabelMenuClass_13zds_165";
86733
- const checkedOption$1 = "_checkedOption_13zds_173";
86734
- const option = "_option_13zds_181";
86735
- const addFilterMenu = "_addFilterMenu_13zds_189";
86736
- const appliedFilterTag = "_appliedFilterTag_13zds_197";
86737
- const appliedfilters = "_appliedfilters_13zds_205";
86738
- const textBold = "_textBold_13zds_213";
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,
@@ -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") {
@@ -131115,7 +131118,7 @@ const MetricCard = ({
131115
131118
  color: "blue"
131116
131119
  }
131117
131120
  })
131118
- }), (drillDownSettings == null ? void 0 : drillDownSettings.isEnableGroupBy) && /* @__PURE__ */ jsx(DrillBreadCrumb, {
131121
+ }), (drillDownSettings == null ? void 0 : drillDownSettings.isEnableGroupBy) && !!dataDb.length && /* @__PURE__ */ jsx(DrillBreadCrumb, {
131119
131122
  dimensions: drillDownSettings.selectedDimensions,
131120
131123
  drilledLevel
131121
131124
  }), (chartParams == null ? void 0 : chartParams.name) && columnName && /* @__PURE__ */ jsx(ChartPopup$1, {