@wikicasa-dev/components 2.2.8-alpha.16 → 2.2.8-alpha.17
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/Autocomplete/ClearableAutocomplete.vue.js +17 -17
- package/package.json +1 -1
- /package/dist/assets/{swiper-thumbs.css → swiper-autoplay.css} +0 -0
package/dist/Swiper/autoplay.js
CHANGED
package/dist/Swiper/keyboard.js
CHANGED
package/dist/Swiper/thumbs.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as L, mergeModels as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as L, mergeModels as M, useModel as V, useTemplateRef as b, shallowRef as s, onBeforeMount as N, watch as C, nextTick as O, createBlock as $, openBlock as c, withCtx as y, createElementBlock as B, Fragment as U, renderList as D, renderSlot as v, createElementVNode as d, normalizeClass as f, withDirectives as H, createCommentVNode as A, vModelText as P, toDisplayString as X, withModifiers as j, normalizeStyle as q, createTextVNode as G } from "vue";
|
|
2
|
+
import J from "../BaseDropDown.vue.js";
|
|
3
3
|
import '../../../../../assets/BaseDropDown.css';/* empty css */
|
|
4
|
-
import
|
|
5
|
-
import { debounce as
|
|
6
|
-
const
|
|
4
|
+
import Q from "../BaseSelect/SelectItem.vue.js";
|
|
5
|
+
import { debounce as Y } from "@wikicasa-dev/utilities";
|
|
6
|
+
const Z = ["readonly", "placeholder"], _ = ["innerHTML"], ae = /* @__PURE__ */ L({
|
|
7
7
|
__name: "ClearableAutocomplete",
|
|
8
|
-
props: /* @__PURE__ */
|
|
8
|
+
props: /* @__PURE__ */ M({
|
|
9
9
|
dataCy: {},
|
|
10
10
|
placeholder: {},
|
|
11
11
|
enableKeyboardController: { type: Boolean, default: !0 },
|
|
@@ -23,9 +23,9 @@ const Y = ["readonly", "placeholder"], Z = ["innerHTML"], oe = /* @__PURE__ */ L
|
|
|
23
23
|
modelValue: { default: null },
|
|
24
24
|
modelModifiers: {}
|
|
25
25
|
}),
|
|
26
|
-
emits: /* @__PURE__ */
|
|
26
|
+
emits: /* @__PURE__ */ M(["click", "update:inputValue", "keydown"], ["update:open", "update:modelValue"]),
|
|
27
27
|
setup(l, { expose: x, emit: R }) {
|
|
28
|
-
const u =
|
|
28
|
+
const u = V(l, "open"), a = V(l, "modelValue"), p = R, T = b("inputRef"), o = s(a.value?.label || ""), w = s(0), k = s(!1), h = s(null), i = s([]), z = b("dropdownRef"), m = b("hiddenSpan"), K = () => {
|
|
29
29
|
o.value = "", a.value = null, p("update:inputValue", "");
|
|
30
30
|
}, W = async (t) => {
|
|
31
31
|
if (p("update:inputValue", t), !t) {
|
|
@@ -40,7 +40,7 @@ const Y = ["readonly", "placeholder"], Z = ["innerHTML"], oe = /* @__PURE__ */ L
|
|
|
40
40
|
T.value?.select();
|
|
41
41
|
};
|
|
42
42
|
return N(() => {
|
|
43
|
-
h.value =
|
|
43
|
+
h.value = Y({ delay: 300 }, l.onInputChangeCb);
|
|
44
44
|
}), C(
|
|
45
45
|
o,
|
|
46
46
|
() => {
|
|
@@ -63,7 +63,7 @@ const Y = ["readonly", "placeholder"], Z = ["innerHTML"], oe = /* @__PURE__ */ L
|
|
|
63
63
|
{ immediate: !0 }
|
|
64
64
|
), x({
|
|
65
65
|
select: I
|
|
66
|
-
}), (t, e) => (c(), $(
|
|
66
|
+
}), (t, e) => (c(), $(J, {
|
|
67
67
|
ref: "dropdownRef",
|
|
68
68
|
class: "uikit-clearable-autocomplete",
|
|
69
69
|
"data-cy": l.dataCy,
|
|
@@ -99,7 +99,7 @@ const Y = ["readonly", "placeholder"], Z = ["innerHTML"], oe = /* @__PURE__ */ L
|
|
|
99
99
|
},
|
|
100
100
|
placeholder: l.placeholder,
|
|
101
101
|
onKeydown: e[1] || (e[1] = (n) => p("keydown", n))
|
|
102
|
-
}, null, 42,
|
|
102
|
+
}, null, 42, Z), [
|
|
103
103
|
[P, o.value]
|
|
104
104
|
]),
|
|
105
105
|
d("span", {
|
|
@@ -116,13 +116,13 @@ const Y = ["readonly", "placeholder"], Z = ["innerHTML"], oe = /* @__PURE__ */ L
|
|
|
116
116
|
type: "button",
|
|
117
117
|
class: f(["uikit-clear-btn uikit-absolute uikit-top-1/2 -uikit-translate-y-1/2 uikit-appearance-none", l.clearButtonClasses]),
|
|
118
118
|
"aria-label": "Clear input",
|
|
119
|
-
style:
|
|
119
|
+
style: q({
|
|
120
120
|
left: `${w.value + 16}px`
|
|
121
121
|
}),
|
|
122
|
-
onClick: K
|
|
122
|
+
onClick: j(K, ["stop"])
|
|
123
123
|
}, [
|
|
124
124
|
v(t.$slots, "clear-icon", {}, () => [
|
|
125
|
-
e[5] || (e[5] =
|
|
125
|
+
e[5] || (e[5] = G("X", -1))
|
|
126
126
|
])
|
|
127
127
|
], 6)) : A("", !0)
|
|
128
128
|
], 2),
|
|
@@ -130,7 +130,7 @@ const Y = ["readonly", "placeholder"], Z = ["innerHTML"], oe = /* @__PURE__ */ L
|
|
|
130
130
|
], 2)
|
|
131
131
|
]),
|
|
132
132
|
default: y(({ activeIdx: n, setActiveIdx: E }) => [
|
|
133
|
-
(c(!0), B(U, null, D(i.value, (g, r) => (c(), $(
|
|
133
|
+
(c(!0), B(U, null, D(i.value, (g, r) => (c(), $(Q, {
|
|
134
134
|
key: r,
|
|
135
135
|
active: n === r,
|
|
136
136
|
class: "uikit-m-1 uikit-rounded-[5px] uikit-px-5 uikit-py-10px hover:uikit-cursor-pointer",
|
|
@@ -144,7 +144,7 @@ const Y = ["readonly", "placeholder"], Z = ["innerHTML"], oe = /* @__PURE__ */ L
|
|
|
144
144
|
}, () => [
|
|
145
145
|
d("span", {
|
|
146
146
|
innerHTML: g.label
|
|
147
|
-
}, null, 8,
|
|
147
|
+
}, null, 8, _)
|
|
148
148
|
])
|
|
149
149
|
]),
|
|
150
150
|
_: 2
|
|
@@ -155,5 +155,5 @@ const Y = ["readonly", "placeholder"], Z = ["innerHTML"], oe = /* @__PURE__ */ L
|
|
|
155
155
|
}
|
|
156
156
|
});
|
|
157
157
|
export {
|
|
158
|
-
|
|
158
|
+
ae as default
|
|
159
159
|
};
|
package/package.json
CHANGED
|
File without changes
|