@wikicasa-dev/components 1.9.17 → 1.9.18
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 +1 -1
- package/dist/BaseDropDown.js +1 -1
- package/dist/SelectItem.js +1 -1
- package/dist/chunks/{BaseAutocomplete.vue_vue_type_script_setup_true_lang.Cvm5m3ps.js → BaseAutocomplete.vue_vue_type_script_setup_true_lang.CuwMDpZt.js} +2 -2
- package/dist/chunks/{BaseDropDown.vue_vue_type_script_setup_true_lang.CZLqPgDd.js → BaseDropDown.vue_vue_type_script_setup_true_lang.BW53X5Mh.js} +19 -20
- package/dist/chunks/{SelectItem.vue_vue_type_script_setup_true_lang.C2Kcvwa7.js → SelectItem.vue_vue_type_script_setup_true_lang.GPFf7fjA.js} +4 -5
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/BaseAutocomplete.js
CHANGED
package/dist/BaseDropDown.js
CHANGED
package/dist/SelectItem.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as L, mergeModels as S, useModel as H, ref as s, computed as k, onBeforeMount as z, watch as f, openBlock as y, createBlock as V, normalizeClass as A, withCtx as c, createVNode as K, renderSlot as B, createElementBlock as N, Fragment as U, renderList as F, unref as W, createElementVNode as j } from "vue";
|
|
2
2
|
import q from "../BaseInput.js";
|
|
3
|
-
import { _ as G } from "./BaseDropDown.vue_vue_type_script_setup_true_lang.
|
|
3
|
+
import { _ as G } from "./BaseDropDown.vue_vue_type_script_setup_true_lang.BW53X5Mh.js";
|
|
4
4
|
import "./types-B0dZ7OiV.D29wNgoj.js";
|
|
5
|
-
import { _ as J } from "./SelectItem.vue_vue_type_script_setup_true_lang.
|
|
5
|
+
import { _ as J } from "./SelectItem.vue_vue_type_script_setup_true_lang.GPFf7fjA.js";
|
|
6
6
|
import { A as Q } from "./useKeyboardController.CXrrg8Zt.js";
|
|
7
7
|
function R(r, v) {
|
|
8
8
|
return (...m) => new Promise((l, d) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as $, useId as D, ref as m, computed as L, useTemplateRef as
|
|
1
|
+
import { defineComponent as $, useId as D, ref as m, computed as L, useTemplateRef as E, watch as r, onBeforeMount as I, onMounted as S, onUnmounted as A, openBlock as s, createElementBlock as O, normalizeClass as i, withModifiers as w, renderSlot as v, createVNode as W, unref as a, withCtx as b, createElementVNode as M, createBlock as h, createCommentVNode as H, resolveDynamicComponent as N } from "vue";
|
|
2
2
|
import { _ as T } from "./BaseButton.vue_vue_type_script_setup_true_lang.dlLTK59i.js";
|
|
3
3
|
import { d as V } from "./ArrowIcon.B7Oqov4Y.js";
|
|
4
4
|
import "./PharmacyIcon.qIkuSERu.js";
|
|
@@ -23,12 +23,12 @@ const q = ["innerHTML"], G = /* @__PURE__ */ $({
|
|
|
23
23
|
},
|
|
24
24
|
emits: ["click", "update:dropdownState"],
|
|
25
25
|
setup(y, { emit: C }) {
|
|
26
|
-
const o = y,
|
|
26
|
+
const o = y, u = D(), c = C, t = m(!1), l = m([]), g = L(() => l.value.length), p = E("dropdown"), { activeIdx: B, selectedIdx: k } = K({
|
|
27
27
|
optionsLength: g,
|
|
28
28
|
isDropdownOpen: t,
|
|
29
29
|
activate: o.activateKeyboardController
|
|
30
30
|
});
|
|
31
|
-
|
|
31
|
+
r(
|
|
32
32
|
() => o.openDropdown,
|
|
33
33
|
(e) => {
|
|
34
34
|
t.value = e;
|
|
@@ -36,34 +36,34 @@ const q = ["innerHTML"], G = /* @__PURE__ */ $({
|
|
|
36
36
|
{
|
|
37
37
|
immediate: !0
|
|
38
38
|
}
|
|
39
|
-
),
|
|
40
|
-
|
|
41
|
-
}),
|
|
39
|
+
), r(t, (e) => {
|
|
40
|
+
c("update:dropdownState", e);
|
|
41
|
+
}), r(k, (e) => {
|
|
42
42
|
e !== -1 && l.value[e].querySelector("a")?.click();
|
|
43
43
|
});
|
|
44
44
|
const f = () => {
|
|
45
45
|
t.value = !1;
|
|
46
|
-
},
|
|
46
|
+
}, d = () => {
|
|
47
47
|
o.keepState === "closed" && !t.value || o.keepState === "opened" && t.value || (t.value = !t.value);
|
|
48
48
|
};
|
|
49
|
-
return
|
|
49
|
+
return I(() => {
|
|
50
50
|
o.closeWhenClickedOutside && document && document.body.addEventListener("click", f);
|
|
51
|
+
}), S(() => {
|
|
52
|
+
p.value && (l.value = p.value.children || []);
|
|
51
53
|
}), A(() => {
|
|
52
|
-
d.value && (l.value = d.value.children || []);
|
|
53
|
-
}), E(() => {
|
|
54
54
|
o.closeWhenClickedOutside && document && document.body.removeEventListener("click", f);
|
|
55
|
-
}), (e, n) => (
|
|
55
|
+
}), (e, n) => (s(), O("div", {
|
|
56
56
|
class: i(["uikit-relative uikit-block", e.$attrs.class]),
|
|
57
57
|
onClick: n[1] || (n[1] = w((z) => {
|
|
58
|
-
|
|
58
|
+
c("click"), d();
|
|
59
59
|
}, ["stop"]))
|
|
60
60
|
}, [
|
|
61
61
|
v(e.$slots, "btn_slot", {
|
|
62
|
-
toggleDropdown:
|
|
62
|
+
toggleDropdown: d,
|
|
63
63
|
isOpen: t.value
|
|
64
64
|
}, () => [
|
|
65
65
|
W(T, {
|
|
66
|
-
id: a(
|
|
66
|
+
id: a(u),
|
|
67
67
|
type: "button",
|
|
68
68
|
"data-cy": e.$attrs["data-cy"],
|
|
69
69
|
class: i([
|
|
@@ -78,7 +78,7 @@ const q = ["innerHTML"], G = /* @__PURE__ */ $({
|
|
|
78
78
|
class: i(["uikit-mr-5px", e.labelClasses]),
|
|
79
79
|
innerHTML: e.btnLabel
|
|
80
80
|
}, null, 10, q),
|
|
81
|
-
e.withArrowIcon ? (
|
|
81
|
+
e.withArrowIcon ? (s(), h(a(V), {
|
|
82
82
|
key: 0,
|
|
83
83
|
class: i(["uikit-shrink-0 uikit-transition-transform motion-reduce:uikit-transition-none", t.value ? "uikit-rotate-180" : ""]),
|
|
84
84
|
width: e.arrowWidth,
|
|
@@ -89,10 +89,9 @@ const q = ["innerHTML"], G = /* @__PURE__ */ $({
|
|
|
89
89
|
_: 1
|
|
90
90
|
}, 8, ["id", "data-cy", "class", "aria-expanded"])
|
|
91
91
|
]),
|
|
92
|
-
(
|
|
93
|
-
id: "dropdown_" + a(
|
|
94
|
-
|
|
95
|
-
ref: d,
|
|
92
|
+
(s(), h(N(e.dropdownElement), {
|
|
93
|
+
id: "dropdown_" + a(u),
|
|
94
|
+
ref: "dropdown",
|
|
96
95
|
"data-cy": e.$attrs["data-cy"] && `${e.$attrs["data-cy"]}_dropdown`,
|
|
97
96
|
class: i(["uikit-max-h-[220px] uikit-w-full uikit-min-w-[90px] uikit-flex-col uikit-overflow-y-auto uikit-border uikit-border-solid uikit-border-w-lavender uikit-bg-white uikit-pl-0 uikit-opacity-100 uikit-shadow uikit-no-scrollbar", [
|
|
98
97
|
e.dropdownClasses,
|
|
@@ -108,7 +107,7 @@ const q = ["innerHTML"], G = /* @__PURE__ */ $({
|
|
|
108
107
|
default: b(() => [
|
|
109
108
|
v(e.$slots, "default", {
|
|
110
109
|
isOpen: t.value,
|
|
111
|
-
toggleDropdown:
|
|
110
|
+
toggleDropdown: d,
|
|
112
111
|
activeIdx: a(B),
|
|
113
112
|
selectedIdx: a(k)
|
|
114
113
|
})
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as r, useTemplateRef as u, watch as m, nextTick as d, openBlock as c, createElementBlock as f, normalizeClass as
|
|
1
|
+
import { defineComponent as r, useTemplateRef as u, watch as m, nextTick as d, openBlock as c, createElementBlock as f, normalizeClass as p, renderSlot as k, createElementVNode as v } from "vue";
|
|
2
2
|
const b = ["tabindex"], x = ["innerHTML"], $ = /* @__PURE__ */ r({
|
|
3
3
|
__name: "SelectItem",
|
|
4
4
|
props: {
|
|
@@ -18,9 +18,8 @@ const b = ["tabindex"], x = ["innerHTML"], $ = /* @__PURE__ */ r({
|
|
|
18
18
|
},
|
|
19
19
|
{ immediate: !0 }
|
|
20
20
|
), (e, i) => (c(), f("li", {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
class: k(["uikit-list-none uikit-text-w-black", [
|
|
21
|
+
ref: "liItem",
|
|
22
|
+
class: p(["uikit-list-none uikit-text-w-black", [
|
|
24
23
|
{ "active uikit-bg-w-cultured": e.active },
|
|
25
24
|
"uikit-outline-none",
|
|
26
25
|
e.$attrs.class
|
|
@@ -29,7 +28,7 @@ const b = ["tabindex"], x = ["innerHTML"], $ = /* @__PURE__ */ r({
|
|
|
29
28
|
onClick: i[0] || (i[0] = (a) => l("click", t.idx)),
|
|
30
29
|
onMouseover: i[1] || (i[1] = (a) => l("mouseover", t.idx))
|
|
31
30
|
}, [
|
|
32
|
-
|
|
31
|
+
k(e.$slots, "default", { itemIdx: e.idx }, () => [
|
|
33
32
|
v("span", {
|
|
34
33
|
innerHTML: t.label
|
|
35
34
|
}, null, 8, x)
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { _ as r } from "./chunks/BaseAccordion.vue_vue_type_script_setup_true_la
|
|
|
2
2
|
import { _ as t } from "./chunks/BaseAccordionBtn.vue_vue_type_script_setup_true_lang.2iAIiz6F.js";
|
|
3
3
|
import { _ as f } from "./chunks/BaseAccordionContent.vue_vue_type_script_setup_true_lang.8ErZghvk.js";
|
|
4
4
|
import { _ as m } from "./chunks/BaseAccordionItem.vue_vue_type_script_setup_true_lang.CR-nWss7.js";
|
|
5
|
-
import { _ as l } from "./chunks/SelectItem.vue_vue_type_script_setup_true_lang.
|
|
5
|
+
import { _ as l } from "./chunks/SelectItem.vue_vue_type_script_setup_true_lang.GPFf7fjA.js";
|
|
6
6
|
import { default as d } from "./CheckboxBtn.js";
|
|
7
7
|
import { _ as i } from "./chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.hSeL05pn.js";
|
|
8
8
|
import { _ } from "./chunks/BaseTab.vue_vue_type_script_setup_true_lang.Cu67jd8K.js";
|
|
@@ -11,12 +11,12 @@ 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.BYlMCUWP.js";
|
|
12
12
|
import { _ as I } from "./chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.BZJiuA9q.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.CuwMDpZt.js";
|
|
15
15
|
import { _ as D } 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.dlLTK59i.js";
|
|
17
17
|
import { default as O } from "./BaseCard.js";
|
|
18
18
|
import { default as R } from "./BaseComplexToggle.js";
|
|
19
|
-
import { _ as N } from "./chunks/BaseDropDown.vue_vue_type_script_setup_true_lang.
|
|
19
|
+
import { _ as N } from "./chunks/BaseDropDown.vue_vue_type_script_setup_true_lang.BW53X5Mh.js";
|
|
20
20
|
import { default as j } from "./BaseFloatingLabel.js";
|
|
21
21
|
import { default as y } from "./BaseIcon.js";
|
|
22
22
|
import { default as E } from "./BaseInput.js";
|