@avakhula/ui 0.0.216 → 0.0.218

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
@@ -1268,6 +1268,12 @@ const Dl = {
1268
1268
  methods: {
1269
1269
  setActiveItem() {
1270
1270
  this.mainButtonAttrs = this.$slots.default()[this.activeElemIdx].props, this.mainButtonAttrs && "href" in this.mainButtonAttrs ? this.isLink = !0 : this.isLink = !1, this.childList[this.activeElemIdx].classList.add("active"), this.content = this.childList[this.activeElemIdx].textContent;
1271
+ },
1272
+ onClickLink(t) {
1273
+ if (this.disabled) {
1274
+ t.preventDefault();
1275
+ return;
1276
+ }
1271
1277
  }
1272
1278
  },
1273
1279
  computed: {
@@ -1289,9 +1295,11 @@ function ql(t, n, e, i, o, r) {
1289
1295
  }, [
1290
1296
  o.isLink ? (G(), ne("a", Et({
1291
1297
  key: 1,
1292
- disabled: e.disabled,
1293
- class: ["split-button-main", { disabled: e.disabled }]
1294
- }, o.mainButtonAttrs), $e(o.content), 17, Rl)) : (G(), ne("button", Et({
1298
+ class: ["split-button-main", { disabled: e.disabled }],
1299
+ disabled: e.disabled
1300
+ }, o.mainButtonAttrs, {
1301
+ onClick: n[0] || (n[0] = (...c) => r.onClickLink && r.onClickLink(...c))
1302
+ }), $e(o.content), 17, Rl)) : (G(), ne("button", Et({
1295
1303
  key: 0,
1296
1304
  disabled: e.disabled,
1297
1305
  class: "split-button-main"
@@ -1953,12 +1961,12 @@ function gs(t, n, e, i, o, r) {
1953
1961
  }, [
1954
1962
  ae("div", null, [
1955
1963
  De((G(), ne("button", {
1956
- class: "sorting-label",
1964
+ class: ve(["sorting-label", { "sorting-label-active": o.isOpenToggleTip }]),
1957
1965
  type: "button",
1958
- onClick: n[0] || (n[0] = (h) => o.isOpenToggleTip = !0)
1966
+ onClick: n[0] || (n[0] = (h) => o.isOpenToggleTip = !o.isOpenToggleTip)
1959
1967
  }, [
1960
1968
  Ge($e(e.title), 1)
1961
- ])), [
1969
+ ], 2)), [
1962
1970
  [f, e.tooltipText, e.tooltipPosition]
1963
1971
  ]),
1964
1972
  r.hasToggleTip ? (G(), ke(s, {
@@ -2009,7 +2017,7 @@ function gs(t, n, e, i, o, r) {
2009
2017
  ])
2010
2018
  ]);
2011
2019
  }
2012
- const l1 = /* @__PURE__ */ Ae(cs, [["render", gs], ["__scopeId", "data-v-427c2bf4"]]);
2020
+ const l1 = /* @__PURE__ */ Ae(cs, [["render", gs], ["__scopeId", "data-v-3039e16c"]]);
2013
2021
  const ms = {
2014
2022
  name: "IbBreadcrumbs",
2015
2023
  props: {