@wikicasa-dev/components 2.0.26 → 2.0.28
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/BaseAutocomplete.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as T, mergeModels as
|
|
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";
|
|
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__ */
|
|
21
|
+
props: /* @__PURE__ */ g({
|
|
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__ */
|
|
43
|
+
emits: /* @__PURE__ */ g(["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
|
-
},
|
|
98
|
+
}, $ = (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 ||
|
|
112
|
+
c.value && l.label === d.value?.label || $(l, e);
|
|
113
113
|
}), f(
|
|
114
114
|
() => t.keepState,
|
|
115
115
|
(e) => {
|
|
@@ -147,7 +147,7 @@ const R = ["innerHTML"], le = /* @__PURE__ */ T({
|
|
|
147
147
|
}, {
|
|
148
148
|
btn_slot: s(() => [
|
|
149
149
|
z(j, {
|
|
150
|
-
id: `ac_input_${e.$attrs.id}
|
|
150
|
+
id: e.$attrs.id ? `ac_input_${e.$attrs.id}` : "",
|
|
151
151
|
ref_key: "baseInput",
|
|
152
152
|
ref: y,
|
|
153
153
|
"data-cy": e.dataCy ? `ac_input_${e.dataCy}` : `ac_input_${e.$attrs.id}`,
|
|
@@ -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) =>
|
|
185
|
+
onClick: (E) => $(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.
|
|
14
|
+
import { _ as k } from "./chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.o0AMunVa.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";
|