@avakhula/ui 0.0.215 → 0.0.217

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.js CHANGED
@@ -378,7 +378,7 @@ function Ba(t, n, e, i, o, r) {
378
378
  _: 1
379
379
  }, 8, ["position", "always-visible", "class"]);
380
380
  }
381
- const kn = /* @__PURE__ */ Ae(La, [["render", Ba], ["__scopeId", "data-v-e1495fd3"]]), qi = {
381
+ const kn = /* @__PURE__ */ Ae(La, [["render", Ba], ["__scopeId", "data-v-b65f4cec"]]), qi = {
382
382
  [sn.primary]: sn.primary,
383
383
  [sn.tertiary]: sn.tertiary,
384
384
  [sn.ghost]: sn.ghost,
@@ -1745,7 +1745,8 @@ class Lo {
1745
1745
  this.uuid = "tooltip_" + At();
1746
1746
  }
1747
1747
  createTooltip(n, e, i) {
1748
- if (!(e != null && e.length))
1748
+ var r;
1749
+ if (!((r = e.text) != null && r.length))
1749
1750
  return;
1750
1751
  this.generateUID();
1751
1752
  const o = `
@@ -1754,16 +1755,17 @@ class Lo {
1754
1755
  left: 0px;
1755
1756
  `;
1756
1757
  this.tooltipContainer = document.createElement("div"), this.tooltipContainer.setAttribute("style", o), document.body.appendChild(this.tooltipContainer), this.tooltipInstance = fa(kn, {
1757
- text: e,
1758
+ title: e.title,
1759
+ text: e.text,
1758
1760
  alwaysVisible: !0,
1759
1761
  for: this.uuid,
1760
1762
  class: this.getClassList(i)
1761
1763
  }), this.tooltipInstance.mount(this.tooltipContainer), setTimeout(() => {
1762
- var r;
1763
- if ((r = this.tooltipContainer) != null && r.firstChild) {
1764
+ var s;
1765
+ if ((s = this.tooltipContainer) != null && s.firstChild) {
1764
1766
  n.setAttribute("aria-describedby", this.uuid);
1765
- const s = this.getPositionStyle(n, i);
1766
- this.tooltipContainer.firstChild.setAttribute("style", s);
1767
+ const l = this.getPositionStyle(n, i);
1768
+ this.tooltipContainer.firstChild.setAttribute("style", l);
1767
1769
  }
1768
1770
  }, 100);
1769
1771
  }
@@ -1836,8 +1838,11 @@ class Lo {
1836
1838
  }
1837
1839
  const bn = new Lo(), us = (t, n) => {
1838
1840
  if (!bn.getTooltipContainer()) {
1839
- const e = Object.keys(n.modifiers)[0] || n.arg;
1840
- bn.createTooltip(t, n.value, e);
1841
+ const e = Object.keys(n.modifiers)[0] || n.arg, i = {
1842
+ title: n.value.title || "",
1843
+ text: typeof n.value == "object" ? n.value.text : n.value
1844
+ };
1845
+ bn.createTooltip(t, i, e);
1841
1846
  }
1842
1847
  }, ds = (t, n) => {
1843
1848
  const e = bn.getId();
@@ -1948,16 +1953,17 @@ function gs(t, n, e, i, o, r) {
1948
1953
  }, [
1949
1954
  ae("div", null, [
1950
1955
  De((G(), ne("button", {
1951
- class: "sorting-label",
1956
+ class: ve(["sorting-label", { "sorting-label-active": o.isOpenToggleTip }]),
1952
1957
  type: "button",
1953
- onClick: n[0] || (n[0] = (h) => o.isOpenToggleTip = !0)
1958
+ onClick: n[0] || (n[0] = (h) => o.isOpenToggleTip = !o.isOpenToggleTip)
1954
1959
  }, [
1955
1960
  Ge($e(e.title), 1)
1956
- ])), [
1961
+ ], 2)), [
1957
1962
  [f, e.tooltipText, e.tooltipPosition]
1958
1963
  ]),
1959
1964
  r.hasToggleTip ? (G(), ke(s, {
1960
1965
  key: 0,
1966
+ position: "bottom-center",
1961
1967
  "is-open": o.isOpenToggleTip,
1962
1968
  title: e.toggleTipTitle,
1963
1969
  onClose: n[1] || (n[1] = (h) => o.isOpenToggleTip = !1)
@@ -2003,7 +2009,7 @@ function gs(t, n, e, i, o, r) {
2003
2009
  ])
2004
2010
  ]);
2005
2011
  }
2006
- const l1 = /* @__PURE__ */ Ae(cs, [["render", gs], ["__scopeId", "data-v-ab7dc7ed"]]);
2012
+ const l1 = /* @__PURE__ */ Ae(cs, [["render", gs], ["__scopeId", "data-v-3039e16c"]]);
2007
2013
  const ms = {
2008
2014
  name: "IbBreadcrumbs",
2009
2015
  props: {
@@ -19844,7 +19850,13 @@ function Wh(t, n, e, i, o, r) {
19844
19850
  }, 8, ["fixed"]);
19845
19851
  }
19846
19852
  const w1 = /* @__PURE__ */ Ae(Yh, [["render", Wh]]), Li = new Lo(), Co = (t, n) => {
19847
- qo(t) && Li.createTooltip(t, n.value);
19853
+ if (qo(t)) {
19854
+ const e = {
19855
+ title: n.value.title || "",
19856
+ text: typeof n.value == "object" ? n.value.text : n.value
19857
+ };
19858
+ Li.createTooltip(t, e);
19859
+ }
19848
19860
  }, Eo = () => {
19849
19861
  Li.destroyTooltip();
19850
19862
  }, O1 = {