@wikicasa-dev/components 2.2.8-alpha.24 → 2.2.8-alpha.26
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/UIKit/Autocomplete/ClearableAutocomplete.d.ts +3 -4
- package/dist/packages/components/lib/UIKit/Autocomplete/ClearableAutocomplete.vue.js +59 -60
- package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +84 -77
- package/package.json +1 -1
- /package/dist/assets/{swiper-autoplay.css → swiper-controller.css} +0 -0
package/dist/Swiper/autoplay.js
CHANGED
package/dist/Swiper/keyboard.js
CHANGED
package/dist/Swiper/thumbs.js
CHANGED
|
@@ -21,12 +21,11 @@ export interface ClearableAutocompleteProps<TID extends string | number | undefi
|
|
|
21
21
|
declare const _default: <TID extends string | number | undefined, TPayload>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
22
22
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
23
23
|
readonly "onUpdate:modelValue"?: ((value: Nullable<AccessibleSelectOptions<TPayload, TID>>) => any) | undefined;
|
|
24
|
-
readonly onClick?: (() => any) | undefined;
|
|
24
|
+
readonly onClick?: ((args_0: MouseEvent) => any) | undefined;
|
|
25
25
|
readonly onKeydown?: ((args_0: KeyboardEvent) => any) | undefined;
|
|
26
26
|
readonly "onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
27
|
-
readonly onInputClick?: (() => any) | undefined;
|
|
28
27
|
readonly "onUpdate:inputValue"?: ((args_0: string) => any) | undefined;
|
|
29
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onClick" | "onKeydown" | "onUpdate:open" | "
|
|
28
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onClick" | "onKeydown" | "onUpdate:open" | "onUpdate:inputValue"> & ({
|
|
30
29
|
open?: boolean;
|
|
31
30
|
modelValue?: Nullable<AccessibleSelectOptions<TPayload, TID>>;
|
|
32
31
|
} & ClearableAutocompleteProps<TID, TPayload>) & Partial<{}>> & import('vue').PublicProps;
|
|
@@ -43,7 +42,7 @@ declare const _default: <TID extends string | number | undefined, TPayload>(__VL
|
|
|
43
42
|
idx: number;
|
|
44
43
|
}): any;
|
|
45
44
|
};
|
|
46
|
-
emit: (((evt: "click") => void) & ((evt: "keydown", args_0: KeyboardEvent) => void) & ((evt: "
|
|
45
|
+
emit: (((evt: "click", args_0: MouseEvent) => void) & ((evt: "keydown", args_0: KeyboardEvent) => void) & ((evt: "update:inputValue", args_0: string) => void)) & (((evt: "update:modelValue", value: Nullable<AccessibleSelectOptions<TPayload, TID>>) => void) & ((evt: "update:open", value: boolean) => void));
|
|
47
46
|
}>) => import('vue').VNode & {
|
|
48
47
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
49
48
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as K, mergeModels as T, useModel as B, useTemplateRef as b, shallowRef as s, onBeforeMount as L, watch as y, nextTick as N, createBlock as V, openBlock as c, withCtx as C, createElementBlock as M, Fragment as W, renderList as I, renderSlot as f, createElementVNode as d, normalizeClass as v, withDirectives as A, createCommentVNode as H, vModelText as G, toDisplayString as P, normalizeStyle as X, createTextVNode as j } from "vue";
|
|
2
|
+
import q from "../BaseDropDown.vue.js";
|
|
3
3
|
import '../../../../../assets/BaseDropDown.css';/* empty css */
|
|
4
|
-
import
|
|
5
|
-
import { debounce as
|
|
6
|
-
const
|
|
4
|
+
import J from "../BaseSelect/SelectItem.vue.js";
|
|
5
|
+
import { debounce as Q } from "@wikicasa-dev/utilities";
|
|
6
|
+
const Y = ["readonly", "placeholder"], Z = ["innerHTML"], ae = /* @__PURE__ */ K({
|
|
7
7
|
__name: "ClearableAutocomplete",
|
|
8
|
-
props: /* @__PURE__ */
|
|
8
|
+
props: /* @__PURE__ */ T({
|
|
9
9
|
dataCy: {},
|
|
10
10
|
placeholder: {},
|
|
11
11
|
enableKeyboardController: { type: Boolean, default: !0 },
|
|
@@ -23,28 +23,28 @@ const Z = ["readonly", "placeholder"], _ = ["innerHTML"], ie = /* @__PURE__ */ L
|
|
|
23
23
|
modelValue: { default: null },
|
|
24
24
|
modelModifiers: {}
|
|
25
25
|
}),
|
|
26
|
-
emits: /* @__PURE__ */
|
|
27
|
-
setup(l, { expose: F, emit:
|
|
28
|
-
const u =
|
|
29
|
-
o.value = "", a.value = null,
|
|
30
|
-
},
|
|
31
|
-
if (
|
|
26
|
+
emits: /* @__PURE__ */ T(["click", "update:inputValue", "keydown"], ["update:open", "update:modelValue"]),
|
|
27
|
+
setup(l, { expose: F, emit: $ }) {
|
|
28
|
+
const u = B(l, "open"), a = B(l, "modelValue"), p = $, O = b("inputRef"), o = s(a.value?.label || ""), k = s(0), m = s(!1), w = s(null), i = s([]), U = b("dropdownRef"), h = b("hiddenSpan"), x = () => {
|
|
29
|
+
o.value = "", a.value = null, p("update:inputValue", "");
|
|
30
|
+
}, E = async (t) => {
|
|
31
|
+
if (p("update:inputValue", t), !t) {
|
|
32
32
|
i.value = [], u.value = !1;
|
|
33
33
|
return;
|
|
34
34
|
}
|
|
35
|
-
i.value = await
|
|
36
|
-
},
|
|
35
|
+
i.value = await w.value?.(t) || [], m.value = !0, u.value = !!i.value.length;
|
|
36
|
+
}, g = (t = -1) => {
|
|
37
37
|
const e = i.value[t];
|
|
38
38
|
!e || e.id === a.value?.id || (l.onOptionSelectedCb?.(e), o.value = e.label, u.value = !1, a.value = e, i.value = []);
|
|
39
|
-
},
|
|
40
|
-
|
|
39
|
+
}, R = () => {
|
|
40
|
+
O.value?.select();
|
|
41
41
|
};
|
|
42
|
-
return
|
|
43
|
-
|
|
44
|
-
}),
|
|
45
|
-
[o, () =>
|
|
42
|
+
return L(() => {
|
|
43
|
+
w.value = Q({ delay: 300 }, l.onInputChangeCb);
|
|
44
|
+
}), y(
|
|
45
|
+
[o, () => h.value],
|
|
46
46
|
([t, e]) => {
|
|
47
|
-
e &&
|
|
47
|
+
e && N(() => {
|
|
48
48
|
if (!e) return;
|
|
49
49
|
const n = e.offsetWidth;
|
|
50
50
|
n !== k.value && (console.log("DEBUG:updating icon positioning", {
|
|
@@ -53,21 +53,21 @@ const Z = ["readonly", "placeholder"], _ = ["innerHTML"], ie = /* @__PURE__ */ L
|
|
|
53
53
|
});
|
|
54
54
|
},
|
|
55
55
|
{ immediate: !0 }
|
|
56
|
-
),
|
|
57
|
-
() =>
|
|
56
|
+
), y(
|
|
57
|
+
() => U.value?.selectedIdx,
|
|
58
58
|
(t) => {
|
|
59
59
|
const e = t ?? -1;
|
|
60
|
-
e !== -1 &&
|
|
60
|
+
e !== -1 && g(e);
|
|
61
61
|
}
|
|
62
|
-
),
|
|
62
|
+
), y(
|
|
63
63
|
a,
|
|
64
64
|
(t, e) => {
|
|
65
65
|
t === e || t?.label === o.value || (o.value = t?.label || "");
|
|
66
66
|
},
|
|
67
67
|
{ immediate: !0 }
|
|
68
68
|
), F({
|
|
69
|
-
select:
|
|
70
|
-
}), (t, e) => (c(), V(
|
|
69
|
+
select: R
|
|
70
|
+
}), (t, e) => (c(), V(q, {
|
|
71
71
|
ref: "dropdownRef",
|
|
72
72
|
class: "uikit-clearable-autocomplete",
|
|
73
73
|
"data-cy": l.dataCy,
|
|
@@ -77,23 +77,23 @@ const Z = ["readonly", "placeholder"], _ = ["innerHTML"], ie = /* @__PURE__ */ L
|
|
|
77
77
|
"keep-state": !i.value.length || l.keepState === "closed" ? "closed" : "opened",
|
|
78
78
|
"activate-keyboard-controller": l.enableKeyboardController,
|
|
79
79
|
"reset-keyboard-controller": m.value,
|
|
80
|
-
"onUpdate:resetKeyboardController": e[
|
|
81
|
-
"onUpdate:dropdownState": e[
|
|
80
|
+
"onUpdate:resetKeyboardController": e[3] || (e[3] = (n) => m.value = n),
|
|
81
|
+
"onUpdate:dropdownState": e[4] || (e[4] = (n) => u.value = n)
|
|
82
82
|
}, {
|
|
83
|
-
btn_slot:
|
|
84
|
-
|
|
83
|
+
btn_slot: C(() => [
|
|
84
|
+
d("div", {
|
|
85
85
|
class: v(["uikit-text-16", l.triggerWrapperClasses]),
|
|
86
|
-
onClick: e[
|
|
86
|
+
onClick: e[2] || (e[2] = (n) => p("click", n))
|
|
87
87
|
}, [
|
|
88
88
|
f(t.$slots, "left-icon"),
|
|
89
|
-
|
|
89
|
+
d("div", {
|
|
90
90
|
class: v(["uikit-relative", l.inputWrapperClasses])
|
|
91
91
|
}, [
|
|
92
|
-
|
|
92
|
+
A(d("input", {
|
|
93
93
|
ref: "inputRef",
|
|
94
94
|
"onUpdate:modelValue": [
|
|
95
95
|
e[0] || (e[0] = (n) => o.value = n),
|
|
96
|
-
|
|
96
|
+
E
|
|
97
97
|
],
|
|
98
98
|
readonly: !!a.value?.label,
|
|
99
99
|
class: v(["uikit-w-full uikit-border-none focus-visible:uikit-outline-none", l.inputClasses]),
|
|
@@ -102,54 +102,53 @@ const Z = ["readonly", "placeholder"], _ = ["innerHTML"], ie = /* @__PURE__ */ L
|
|
|
102
102
|
fontSize: "inherit"
|
|
103
103
|
},
|
|
104
104
|
placeholder: l.placeholder,
|
|
105
|
-
onKeydown: e[1] || (e[1] = (n) =>
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
[P, o.value]
|
|
105
|
+
onKeydown: e[1] || (e[1] = (n) => p("keydown", n))
|
|
106
|
+
}, null, 42, Y), [
|
|
107
|
+
[G, o.value]
|
|
109
108
|
]),
|
|
110
|
-
|
|
109
|
+
d("span", {
|
|
111
110
|
ref_key: "hiddenSpan",
|
|
112
|
-
ref:
|
|
111
|
+
ref: h,
|
|
113
112
|
class: "uikit-invisible uikit-absolute uikit-left-0 uikit-top-0 uikit-whitespace-pre",
|
|
114
113
|
style: {
|
|
115
114
|
font: "inherit",
|
|
116
115
|
fontSize: "inherit"
|
|
117
116
|
}
|
|
118
|
-
},
|
|
119
|
-
a.value?.label ? (c(),
|
|
117
|
+
}, P(o.value), 513),
|
|
118
|
+
a.value?.label ? (c(), M("button", {
|
|
120
119
|
key: 0,
|
|
121
120
|
type: "button",
|
|
122
121
|
class: v(["uikit-clear-btn uikit-absolute uikit-top-1/2 -uikit-translate-y-1/2 uikit-appearance-none", l.clearButton?.classes]),
|
|
123
122
|
"aria-label": "Clear input",
|
|
124
|
-
style:
|
|
123
|
+
style: X({
|
|
125
124
|
left: `${k.value + (l.clearButton?.offset || 10)}px`
|
|
126
125
|
}),
|
|
127
|
-
onClick:
|
|
126
|
+
onClick: x
|
|
128
127
|
}, [
|
|
129
128
|
f(t.$slots, "clear-icon", {}, () => [
|
|
130
|
-
e[
|
|
129
|
+
e[5] || (e[5] = j("X", -1))
|
|
131
130
|
])
|
|
132
|
-
], 6)) :
|
|
131
|
+
], 6)) : H("", !0)
|
|
133
132
|
], 2),
|
|
134
133
|
f(t.$slots, "right-icon")
|
|
135
134
|
], 2)
|
|
136
135
|
]),
|
|
137
|
-
default:
|
|
138
|
-
(c(!0),
|
|
139
|
-
key:
|
|
140
|
-
active: n ===
|
|
136
|
+
default: C(({ activeIdx: n, setActiveIdx: z }) => [
|
|
137
|
+
(c(!0), M(W, null, I(i.value, (S, r) => (c(), V(J, {
|
|
138
|
+
key: r,
|
|
139
|
+
active: n === r,
|
|
141
140
|
class: "uikit-m-1 uikit-rounded-[5px] uikit-px-5 uikit-py-10px hover:uikit-cursor-pointer",
|
|
142
|
-
onClick: (
|
|
143
|
-
onMouseover: (
|
|
141
|
+
onClick: (D) => g(r),
|
|
142
|
+
onMouseover: (D) => z(r)
|
|
144
143
|
}, {
|
|
145
|
-
default:
|
|
144
|
+
default: C(() => [
|
|
146
145
|
f(t.$slots, "option-content", {
|
|
147
|
-
option:
|
|
148
|
-
idx:
|
|
146
|
+
option: S,
|
|
147
|
+
idx: r
|
|
149
148
|
}, () => [
|
|
150
|
-
|
|
151
|
-
innerHTML:
|
|
152
|
-
}, null, 8,
|
|
149
|
+
d("span", {
|
|
150
|
+
innerHTML: S.label
|
|
151
|
+
}, null, 8, Z)
|
|
153
152
|
])
|
|
154
153
|
]),
|
|
155
154
|
_: 2
|
|
@@ -160,5 +159,5 @@ const Z = ["readonly", "placeholder"], _ = ["innerHTML"], ie = /* @__PURE__ */ L
|
|
|
160
159
|
}
|
|
161
160
|
});
|
|
162
161
|
export {
|
|
163
|
-
|
|
162
|
+
ae as default
|
|
164
163
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { ArrowIcon as
|
|
4
|
-
import { useKeyboardController as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as T, mergeModels as D, useId as H, useModel as E, shallowRef as x, computed as N, useTemplateRef as B, onMounted as V, onUnmounted as z, watch as l, nextTick as R, createElementBlock as U, openBlock as c, normalizeClass as a, renderSlot as I, createBlock as L, createVNode as q, unref as r, withCtx as S, createElementVNode as G, createCommentVNode as j, resolveDynamicComponent as F } from "vue";
|
|
2
|
+
import J from "./BaseButton.vue.js";
|
|
3
|
+
import { ArrowIcon as P } from "@wikicasa-dev/svg-icons";
|
|
4
|
+
import { useKeyboardController as Q } from "@wikicasa-dev/vue-composables";
|
|
5
|
+
const X = ["innerHTML"], oe = /* @__PURE__ */ T({
|
|
6
6
|
inheritAttrs: !1,
|
|
7
7
|
__name: "BaseDropDown",
|
|
8
|
-
props: /* @__PURE__ */
|
|
8
|
+
props: /* @__PURE__ */ D({
|
|
9
9
|
dropdownClasses: { default: "" },
|
|
10
10
|
btnClasses: { default: "" },
|
|
11
11
|
withArrowIcon: { type: Boolean, default: !1 },
|
|
@@ -27,118 +27,125 @@ const P = ["innerHTML"], _ = /* @__PURE__ */ $({
|
|
|
27
27
|
resetKeyboardController: { type: Boolean, default: !1 },
|
|
28
28
|
resetKeyboardControllerModifiers: {}
|
|
29
29
|
}),
|
|
30
|
-
emits: /* @__PURE__ */
|
|
31
|
-
setup(
|
|
32
|
-
const
|
|
33
|
-
|
|
30
|
+
emits: /* @__PURE__ */ D(["click", "update:dropdownState"], ["update:toggleDropdown", "update:resetKeyboardController"]),
|
|
31
|
+
setup(o, { expose: K, emit: A }) {
|
|
32
|
+
const n = o, f = H(), k = A, v = E(o, "toggleDropdown"), w = E(
|
|
33
|
+
o,
|
|
34
34
|
"resetKeyboardController"
|
|
35
|
-
)
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
},
|
|
42
|
-
|
|
35
|
+
);
|
|
36
|
+
let m = !1;
|
|
37
|
+
const t = x(!1), u = x([]), M = N(() => u.value.length), p = B("container"), y = B("dropdown"), { activeIdx: d, selectedIdx: i } = Q({
|
|
38
|
+
optionsLength: M,
|
|
39
|
+
isDropdownOpen: t,
|
|
40
|
+
activate: n.activateKeyboardController
|
|
41
|
+
}), O = () => {
|
|
42
|
+
t.value = !1;
|
|
43
|
+
}, b = ({ target: e }) => {
|
|
44
|
+
p.value?.contains(e) || O();
|
|
45
|
+
}, C = (e) => {
|
|
46
|
+
t.value && p.value?.contains(document.activeElement) && (console.log("DEBUG:closing dropdown", document.activeElement), e.key === "Tab" && (t.value = !1));
|
|
43
47
|
}, s = () => {
|
|
44
|
-
|
|
45
|
-
},
|
|
48
|
+
n.keepState === "closed" && !t.value || n.keepState === "opened" && t.value || (t.value = !t.value);
|
|
49
|
+
}, W = (e) => {
|
|
46
50
|
e != null && (d.value = e);
|
|
47
|
-
},
|
|
48
|
-
e != null && (
|
|
49
|
-
},
|
|
50
|
-
|
|
51
|
+
}, $ = (e) => {
|
|
52
|
+
e != null && (i.value = e);
|
|
53
|
+
}, h = () => {
|
|
54
|
+
y.value && (u.value = Array.from(y.value.children));
|
|
51
55
|
};
|
|
52
|
-
return
|
|
53
|
-
|
|
54
|
-
}),
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
return V(() => {
|
|
57
|
+
h();
|
|
58
|
+
}), z(() => {
|
|
59
|
+
n.closeWhenClickedOutside && (document.removeEventListener("click", b), document.removeEventListener("keydown", C));
|
|
60
|
+
}), l(w, (e) => {
|
|
61
|
+
e && (d.value = -1, i.value = -1, R(() => {
|
|
62
|
+
h(), w.value = !1;
|
|
57
63
|
}));
|
|
58
|
-
}),
|
|
59
|
-
() =>
|
|
64
|
+
}), l(
|
|
65
|
+
() => n.openDropdown,
|
|
60
66
|
(e) => {
|
|
61
|
-
|
|
67
|
+
t.value = e;
|
|
62
68
|
},
|
|
63
69
|
{
|
|
64
70
|
immediate: !0
|
|
65
71
|
}
|
|
66
|
-
),
|
|
72
|
+
), l(t, (e) => {
|
|
67
73
|
k("update:dropdownState", e);
|
|
68
|
-
}),
|
|
69
|
-
e
|
|
70
|
-
}),
|
|
74
|
+
}), l(t, (e) => {
|
|
75
|
+
!e || m || !n.closeWhenClickedOutside || (document.addEventListener("click", b), document.addEventListener("keydown", C), m = !0);
|
|
76
|
+
}), l(v, (e) => {
|
|
77
|
+
e && (t.value = !t.value, v.value = !1);
|
|
78
|
+
}), l(i, (e) => {
|
|
71
79
|
e !== -1 && u.value[e].querySelector("a")?.click();
|
|
72
|
-
}),
|
|
80
|
+
}), K({
|
|
73
81
|
activeIdx: d,
|
|
74
|
-
selectedIdx:
|
|
75
|
-
}), (e,
|
|
82
|
+
selectedIdx: i
|
|
83
|
+
}), (e, g) => (c(), U("div", {
|
|
76
84
|
ref: "container",
|
|
77
|
-
class:
|
|
78
|
-
onFocusout: L
|
|
85
|
+
class: a(["uikit-relative uikit-block", e.$attrs.class])
|
|
79
86
|
}, [
|
|
80
|
-
|
|
87
|
+
I(e.$slots, "btn_slot", {
|
|
81
88
|
toggleDropdown: s,
|
|
82
|
-
isOpen:
|
|
89
|
+
isOpen: t.value
|
|
83
90
|
}, () => [
|
|
84
|
-
|
|
91
|
+
q(J, {
|
|
85
92
|
id: r(f),
|
|
86
93
|
type: "button",
|
|
87
|
-
"data-cy":
|
|
88
|
-
class:
|
|
94
|
+
"data-cy": o.dataCy,
|
|
95
|
+
class: a([
|
|
89
96
|
"!uikit-flex uikit-w-full uikit-items-center uikit-truncate",
|
|
90
|
-
|
|
97
|
+
o.btnClasses
|
|
91
98
|
]),
|
|
92
|
-
"aria-expanded":
|
|
99
|
+
"aria-expanded": t.value,
|
|
93
100
|
"btn-class": "uikit-btn-single-selection",
|
|
94
|
-
onClick:
|
|
101
|
+
onClick: g[0] || (g[0] = (Y) => {
|
|
95
102
|
k("click"), s();
|
|
96
103
|
})
|
|
97
104
|
}, {
|
|
98
|
-
default:
|
|
99
|
-
|
|
100
|
-
class:
|
|
101
|
-
innerHTML:
|
|
102
|
-
}, null, 10,
|
|
103
|
-
|
|
105
|
+
default: S(() => [
|
|
106
|
+
G("span", {
|
|
107
|
+
class: a(["uikit-mr-5px", o.labelClasses]),
|
|
108
|
+
innerHTML: o.btnLabel
|
|
109
|
+
}, null, 10, X),
|
|
110
|
+
o.withArrowIcon ? (c(), L(r(P), {
|
|
104
111
|
key: 0,
|
|
105
|
-
class:
|
|
106
|
-
width:
|
|
107
|
-
height:
|
|
108
|
-
"stroke-color":
|
|
109
|
-
}, null, 8, ["class", "width", "height", "stroke-color"])) :
|
|
112
|
+
class: a(["uikit-shrink-0 uikit-transition-transform motion-reduce:uikit-transition-none", t.value ? "uikit-rotate-180" : ""]),
|
|
113
|
+
width: o.arrowWidth,
|
|
114
|
+
height: o.arrowWidth,
|
|
115
|
+
"stroke-color": o.arrowStrokeColor
|
|
116
|
+
}, null, 8, ["class", "width", "height", "stroke-color"])) : j("", !0)
|
|
110
117
|
]),
|
|
111
118
|
_: 1
|
|
112
119
|
}, 8, ["id", "data-cy", "class", "aria-expanded"])
|
|
113
120
|
]),
|
|
114
|
-
(c(),
|
|
121
|
+
(c(), L(F(o.dropdownElement), {
|
|
115
122
|
id: "dropdown_" + r(f),
|
|
116
123
|
ref: "dropdown",
|
|
117
|
-
"data-cy":
|
|
118
|
-
class:
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
{ "uikit-bottom-[55px] uikit-rounded-xs":
|
|
122
|
-
{ "uikit-rounded-b uikit-border-t-0":
|
|
123
|
-
{ "uikit-absolute":
|
|
124
|
+
"data-cy": o.dataCy && `${o.dataCy}_dropdown`,
|
|
125
|
+
class: a(["uikit-dropdown-content uikit-w-full uikit-flex-col uikit-overflow-y-auto uikit-border uikit-border-solid uikit-bg-white uikit-pl-0 uikit-opacity-100 uikit-shadow uikit-no-scrollbar", [
|
|
126
|
+
o.dropdownClasses,
|
|
127
|
+
t.value ? "uikit-flex" : "uikit-hidden",
|
|
128
|
+
{ "uikit-bottom-[55px] uikit-rounded-xs": o.direction === "up" },
|
|
129
|
+
{ "uikit-rounded-b uikit-border-t-0": o.direction === "down" },
|
|
130
|
+
{ "uikit-absolute": o.isAbsolute }
|
|
124
131
|
]]),
|
|
125
|
-
"aria-hidden": !
|
|
132
|
+
"aria-hidden": !t.value
|
|
126
133
|
}, {
|
|
127
|
-
default:
|
|
128
|
-
|
|
129
|
-
isOpen:
|
|
134
|
+
default: S(() => [
|
|
135
|
+
I(e.$slots, "default", {
|
|
136
|
+
isOpen: t.value,
|
|
130
137
|
toggleDropdown: s,
|
|
131
138
|
activeIdx: r(d),
|
|
132
|
-
selectedIdx: r(
|
|
133
|
-
setActiveIdx:
|
|
134
|
-
setSelectedIdx:
|
|
139
|
+
selectedIdx: r(i),
|
|
140
|
+
setActiveIdx: W,
|
|
141
|
+
setSelectedIdx: $
|
|
135
142
|
})
|
|
136
143
|
]),
|
|
137
144
|
_: 3
|
|
138
145
|
}, 8, ["id", "data-cy", "class", "aria-hidden"]))
|
|
139
|
-
],
|
|
146
|
+
], 2));
|
|
140
147
|
}
|
|
141
148
|
});
|
|
142
149
|
export {
|
|
143
|
-
|
|
150
|
+
oe as default
|
|
144
151
|
};
|
package/package.json
CHANGED
|
File without changes
|