@evercam/ui 1.0.0-preview-improve-anpr-verfiy-day-ui-3627b36ac → 1.0.0-preview-improve-anpr-verfiy-day-ui-2ec02dd72

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.mjs CHANGED
@@ -15376,6 +15376,7 @@ const o8 = {
15376
15376
  tooltipPositionX: 0,
15377
15377
  tooltipPositionY: 0,
15378
15378
  tooltipContent: "",
15379
+ tooltipItem: "",
15379
15380
  hoveredDayDate: "",
15380
15381
  smallTextRatio: 0.9,
15381
15382
  daysOffset: 0
@@ -15591,7 +15592,7 @@ const o8 = {
15591
15592
  );
15592
15593
  },
15593
15594
  onDayRectMouseEnter(t, e) {
15594
- this.tooltipContent = e.label, this.tooltipVisibility = !0, this.hoveredDayDate = e.date, this.$nextTick(() => {
15595
+ this.tooltipItem = e, this.tooltipContent = e.label, this.tooltipVisibility = !0, this.hoveredDayDate = e.date, this.$nextTick(() => {
15595
15596
  this.calculateTooltipPosition(t);
15596
15597
  });
15597
15598
  },
@@ -15630,7 +15631,9 @@ var l8 = function() {
15630
15631
  return r("rect", { key: i, style: e.getLegendRectStyle(i), attrs: { height: e.dayRectSize, width: e.dayRectSize, fill: n, rx: e.borderRadius } });
15631
15632
  }), r("text", { style: e.legendSuffixTextStyle }, [e._v("more")])], 2) : e._e(), r("foreignObject", { attrs: { height: e.svgHeight, width: e.svgWidth, "pointer-events": "none" } }, [r("div", { staticClass: "e-heatmap-calendar__custom-legend" }, [e._t("customLegend")], 2)])], 2)])]), r("div", { ref: "tooltip", staticClass: "e-heatmap-calendar__tooltip", class: {
15632
15633
  "e-heatmap-calendar__tooltip--visible": e.tooltipVisibility
15633
- }, style: { top: e.tooltipPositionY + "px", left: e.tooltipPositionX + "px" }, domProps: { innerHTML: e._s(e.tooltipContent) } }), e.controls ? r("div", { staticClass: "e-heatmap-calendar__control-right", on: { click: function(n) {
15634
+ }, style: { top: e.tooltipPositionY + "px", left: e.tooltipPositionX + "px" } }, [e._t("tooltip", function() {
15635
+ return [e._v(" " + e._s(e.tooltipContent) + " ")];
15636
+ }, { item: e.tooltipItem })], 2), e.controls ? r("div", { staticClass: "e-heatmap-calendar__control-right", on: { click: function(n) {
15634
15637
  e.daysOffset += 30;
15635
15638
  } } }, [r("EIcon", { attrs: { icon: "angle-right", size: "Sm" } })], 1) : e._e()]);
15636
15639
  }, c8 = [], u8 = /* @__PURE__ */ H(
@@ -15639,7 +15642,7 @@ var l8 = function() {
15639
15642
  c8,
15640
15643
  !1,
15641
15644
  null,
15642
- "6b719a70",
15645
+ "c1e4cb0a",
15643
15646
  null,
15644
15647
  null
15645
15648
  );