@wikicasa-dev/components 2.0.30 → 2.0.31

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.
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.o0AMunVa.js";
1
+ import { _ as f } from "./chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.DI5YPfeQ.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as T, mergeModels as g, useModel as L, ref as r, computed as k, onBeforeMount as F, watch as f, openBlock as C, createBlock as S, normalizeClass as H, withCtx as s, createVNode as z, renderSlot as V, createElementBlock as A, Fragment as K, renderList as N, unref as U, createElementVNode as W } from "vue";
1
+ import { defineComponent as T, mergeModels as $, useModel as L, ref as r, computed as k, onBeforeMount as F, watch as f, openBlock as C, createBlock as S, normalizeClass as H, withCtx as s, createVNode as z, renderSlot as V, createElementBlock as A, Fragment as K, renderList as N, unref as U, createElementVNode as W } from "vue";
2
2
  import j from "../BaseInput.js";
3
3
  import { _ as q } from "./BaseDropDown.vue_vue_type_script_setup_true_lang.BscSQ5bW.js";
4
4
  import "./types-B0dZ7OiV.D29wNgoj.js";
@@ -18,7 +18,7 @@ function Q(t, p) {
18
18
  }
19
19
  const R = ["innerHTML"], le = /* @__PURE__ */ T({
20
20
  __name: "BaseAutocomplete",
21
- props: /* @__PURE__ */ g({
21
+ props: /* @__PURE__ */ $({
22
22
  isValid: { default: null },
23
23
  theme: { default: "" },
24
24
  label: { default: "" },
@@ -40,7 +40,7 @@ const R = ["innerHTML"], le = /* @__PURE__ */ T({
40
40
  },
41
41
  modelModifiers: {}
42
42
  }),
43
- emits: /* @__PURE__ */ g(["update:dropdownState", "changedValue", "click", "keydown", "keydownEnterPressed"], ["update:modelValue"]),
43
+ emits: /* @__PURE__ */ $(["update:dropdownState", "changedValue", "click", "keydown", "keydownEnterPressed"], ["update:modelValue"]),
44
44
  setup(t, { expose: p, emit: v }) {
45
45
  const d = L(
46
46
  t,
@@ -95,7 +95,7 @@ const R = ["innerHTML"], le = /* @__PURE__ */ T({
95
95
  }
96
96
  t.disableCb || (n.value = await m.value(e), o.value = !!n.value.length);
97
97
  }
98
- }, $ = (e, l) => {
98
+ }, g = (e, l) => {
99
99
  t.onOptionSelectedCb && t.onOptionSelectedCb(e), t.cleanupOnClose && (n.value = []), c.value = !0, i.value = e.label, d.value = e, o.value = !1, w.value = l;
100
100
  }, D = () => {
101
101
  n.value.length && t.keepState !== "closed" && (o.value = !0);
@@ -109,7 +109,7 @@ const R = ["innerHTML"], le = /* @__PURE__ */ T({
109
109
  ), f(w, (e) => {
110
110
  if (e === -1 || !n.value.length) return;
111
111
  const l = n.value[e];
112
- c.value && l.label === d.value?.label || $(l, e);
112
+ c.value && l.label === d.value?.label || g(l, e);
113
113
  }), f(
114
114
  () => t.keepState,
115
115
  (e) => {
@@ -123,7 +123,7 @@ const R = ["innerHTML"], le = /* @__PURE__ */ T({
123
123
  }
124
124
  }), (e, l) => (C(), S(q, {
125
125
  class: H(e.$attrs["root-classes"]),
126
- "data-cy": e.dataCy ? `ac_${e.dataCy}` : `ac_${e.$attrs.id}`,
126
+ "data-cy": e.dataCy ? e.dataCy : `ac_${e.$attrs.id}`,
127
127
  "dropdown-element": "ul",
128
128
  "dropdown-classes": [
129
129
  { "bordered-dropdown": e.theme === "bordered" },
@@ -182,7 +182,7 @@ const R = ["innerHTML"], le = /* @__PURE__ */ T({
182
182
  key: b,
183
183
  active: U(h) === b,
184
184
  class: "uikit-m-1 uikit-rounded-[5px] uikit-px-5 uikit-py-10px hover:uikit-cursor-pointer",
185
- onClick: (E) => $(a, b),
185
+ onClick: (E) => g(a, b),
186
186
  onMouseover: (E) => h.value = b
187
187
  }, {
188
188
  default: s(() => [
package/dist/index.js CHANGED
@@ -11,7 +11,7 @@ import { _ as g } from "./chunks/RadioButton.vue_vue_type_script_setup_true_lang
11
11
  import { _ as h } from "./chunks/RadioGroup.vue_vue_type_script_setup_true_lang.DdmSUyxZ.js";
12
12
  import { _ as I } from "./chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.ClV6kObA.js";
13
13
  import { _ as w } from "./chunks/BaseAlert.vue_vue_type_style_index_0_lang.BtqP_iYL.js";
14
- import { _ as k } from "./chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.o0AMunVa.js";
14
+ import { _ as k } from "./chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.DI5YPfeQ.js";
15
15
  import { _ as v } from "./chunks/BaseBadge.vue_vue_type_style_index_0_lang.BOA1gBKu.js";
16
16
  import { _ as G } from "./chunks/BaseButton.vue_vue_type_script_setup_true_lang.BWZPE2Gf.js";
17
17
  import { default as O } from "./BaseCard.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/components",
3
- "version": "2.0.30",
3
+ "version": "2.0.31",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",