@wikicasa-dev/components 2.2.8-alpha.20 → 2.2.8-alpha.21
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/Swiper/autoplay.js +1 -1
- package/dist/Swiper/controller.js +1 -1
- package/dist/Swiper/keyboard.js +1 -1
- package/dist/Swiper/thumbs.js +1 -1
- package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +26 -26
- package/package.json +1 -1
- /package/dist/assets/{swiper-controller.css → swiper-keyboard.css} +0 -0
package/dist/Swiper/autoplay.js
CHANGED
package/dist/Swiper/keyboard.js
CHANGED
package/dist/Swiper/thumbs.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as L, mergeModels as C, useId as E, useModel as h,
|
|
2
|
-
import
|
|
3
|
-
import { ArrowIcon as
|
|
4
|
-
import { useKeyboardController as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as L, mergeModels as C, useId as E, useModel as h, shallowRef as g, computed as O, useTemplateRef as W, watch as a, onBeforeMount as $, onMounted as T, onUnmounted as H, nextTick as N, createElementBlock as V, openBlock as f, normalizeClass as n, renderSlot as D, createBlock as x, createVNode as R, unref as d, withCtx as B, createElementVNode as q, createCommentVNode as z, resolveDynamicComponent as U, withModifiers as j } from "vue";
|
|
2
|
+
import F from "./BaseButton.vue.js";
|
|
3
|
+
import { ArrowIcon as G } from "@wikicasa-dev/svg-icons";
|
|
4
|
+
import { useKeyboardController as J } from "@wikicasa-dev/vue-composables";
|
|
5
|
+
const P = ["innerHTML"], ee = /* @__PURE__ */ L({
|
|
6
6
|
inheritAttrs: !1,
|
|
7
7
|
__name: "BaseDropDown",
|
|
8
8
|
props: /* @__PURE__ */ C({
|
|
@@ -32,7 +32,7 @@ const Q = ["innerHTML"], te = /* @__PURE__ */ L({
|
|
|
32
32
|
const l = t, k = E(), w = S, v = h(t, "toggleDropdown"), m = h(
|
|
33
33
|
t,
|
|
34
34
|
"resetKeyboardController"
|
|
35
|
-
), o =
|
|
35
|
+
), o = g(!1), s = g([]), M = O(() => s.value.length), p = W("dropdown"), { activeIdx: r, selectedIdx: i } = J({
|
|
36
36
|
optionsLength: M,
|
|
37
37
|
isDropdownOpen: o,
|
|
38
38
|
activate: l.activateKeyboardController
|
|
@@ -61,34 +61,31 @@ const Q = ["innerHTML"], te = /* @__PURE__ */ L({
|
|
|
61
61
|
}, K = (e) => {
|
|
62
62
|
e != null && (i.value = e);
|
|
63
63
|
};
|
|
64
|
-
|
|
65
|
-
l.closeWhenClickedOutside && document.
|
|
64
|
+
$(() => {
|
|
65
|
+
l.closeWhenClickedOutside && document.addEventListener("click", b);
|
|
66
66
|
});
|
|
67
67
|
const y = () => {
|
|
68
68
|
p.value && (s.value = Array.from(p.value.children));
|
|
69
69
|
};
|
|
70
|
-
return
|
|
70
|
+
return T(() => {
|
|
71
71
|
y();
|
|
72
|
-
}),
|
|
73
|
-
l.closeWhenClickedOutside && document.
|
|
72
|
+
}), H(() => {
|
|
73
|
+
l.closeWhenClickedOutside && document.removeEventListener("click", b);
|
|
74
74
|
}), a(m, (e) => {
|
|
75
|
-
e && (r.value = -1, i.value = -1,
|
|
75
|
+
e && (r.value = -1, i.value = -1, N(() => {
|
|
76
76
|
y(), m.value = !1;
|
|
77
77
|
}));
|
|
78
78
|
}), I({
|
|
79
79
|
activeIdx: r,
|
|
80
80
|
selectedIdx: i
|
|
81
|
-
}), (e, u) => (f(),
|
|
82
|
-
class: n(["uikit-relative uikit-block", e.$attrs.class])
|
|
83
|
-
onClick: u[1] || (u[1] = g((X) => {
|
|
84
|
-
w("click"), c();
|
|
85
|
-
}, ["stop"]))
|
|
81
|
+
}), (e, u) => (f(), V("div", {
|
|
82
|
+
class: n(["uikit-relative uikit-block", e.$attrs.class])
|
|
86
83
|
}, [
|
|
87
84
|
D(e.$slots, "btn_slot", {
|
|
88
85
|
toggleDropdown: c,
|
|
89
86
|
isOpen: o.value
|
|
90
87
|
}, () => [
|
|
91
|
-
|
|
88
|
+
R(F, {
|
|
92
89
|
id: d(k),
|
|
93
90
|
type: "button",
|
|
94
91
|
"data-cy": t.dataCy,
|
|
@@ -97,25 +94,28 @@ const Q = ["innerHTML"], te = /* @__PURE__ */ L({
|
|
|
97
94
|
t.btnClasses
|
|
98
95
|
]),
|
|
99
96
|
"aria-expanded": o.value,
|
|
100
|
-
"btn-class": "uikit-btn-single-selection"
|
|
97
|
+
"btn-class": "uikit-btn-single-selection",
|
|
98
|
+
onClick: u[0] || (u[0] = (Q) => {
|
|
99
|
+
w("click"), c();
|
|
100
|
+
})
|
|
101
101
|
}, {
|
|
102
102
|
default: B(() => [
|
|
103
|
-
|
|
103
|
+
q("span", {
|
|
104
104
|
class: n(["uikit-mr-5px", t.labelClasses]),
|
|
105
105
|
innerHTML: t.btnLabel
|
|
106
|
-
}, null, 10,
|
|
107
|
-
t.withArrowIcon ? (f(), x(d(
|
|
106
|
+
}, null, 10, P),
|
|
107
|
+
t.withArrowIcon ? (f(), x(d(G), {
|
|
108
108
|
key: 0,
|
|
109
109
|
class: n(["uikit-shrink-0 uikit-transition-transform motion-reduce:uikit-transition-none", o.value ? "uikit-rotate-180" : ""]),
|
|
110
110
|
width: t.arrowWidth,
|
|
111
111
|
height: t.arrowWidth,
|
|
112
112
|
"stroke-color": t.arrowStrokeColor
|
|
113
|
-
}, null, 8, ["class", "width", "height", "stroke-color"])) :
|
|
113
|
+
}, null, 8, ["class", "width", "height", "stroke-color"])) : z("", !0)
|
|
114
114
|
]),
|
|
115
115
|
_: 1
|
|
116
116
|
}, 8, ["id", "data-cy", "class", "aria-expanded"])
|
|
117
117
|
]),
|
|
118
|
-
(f(), x(
|
|
118
|
+
(f(), x(U(t.dropdownElement), {
|
|
119
119
|
id: "dropdown_" + d(k),
|
|
120
120
|
ref: "dropdown",
|
|
121
121
|
"data-cy": t.dataCy && `${t.dataCy}_dropdown`,
|
|
@@ -127,7 +127,7 @@ const Q = ["innerHTML"], te = /* @__PURE__ */ L({
|
|
|
127
127
|
{ "uikit-absolute": t.isAbsolute }
|
|
128
128
|
]]),
|
|
129
129
|
"aria-hidden": !o.value,
|
|
130
|
-
onClick: u[
|
|
130
|
+
onClick: u[1] || (u[1] = j(() => {
|
|
131
131
|
}, ["stop"]))
|
|
132
132
|
}, {
|
|
133
133
|
default: B(() => [
|
|
@@ -146,5 +146,5 @@ const Q = ["innerHTML"], te = /* @__PURE__ */ L({
|
|
|
146
146
|
}
|
|
147
147
|
});
|
|
148
148
|
export {
|
|
149
|
-
|
|
149
|
+
ee as default
|
|
150
150
|
};
|
package/package.json
CHANGED
|
File without changes
|