@wikicasa-dev/components 2.2.9-alpha.10 → 2.2.9-alpha.11
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 +1 -0
- package/dist/packages/components/lib/UIKit/Autocomplete/ClearableAutocomplete.vue.js +7 -6
- 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
|
@@ -15,6 +15,7 @@ export interface ClearableAutocompleteProps<TID extends string | number | undefi
|
|
|
15
15
|
offset?: number;
|
|
16
16
|
};
|
|
17
17
|
keepState?: Nullable<"closed" | "open">;
|
|
18
|
+
disableCb?: boolean;
|
|
18
19
|
onInputChangeCb: (v: string) => Promise<AccessibleSelectOptions<TPayload, TID>[]>;
|
|
19
20
|
onOptionSelectedCb?: Nullable<(v: AccessibleSelectOptions<TPayload, TID>) => void>;
|
|
20
21
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as N, mergeModels as $, useModel as
|
|
1
|
+
import { defineComponent as N, mergeModels as $, useModel as C, shallowRef as d, useId as A, useTemplateRef as y, onBeforeMount as H, watch as w, nextTick as G, createBlock as F, openBlock as h, withCtx as g, createElementBlock as P, Fragment as X, renderList as j, renderSlot as p, createElementVNode as u, normalizeClass as f, withDirectives as E, unref as q, vModelText as J, toDisplayString as Q, withModifiers as Y, normalizeStyle as Z, createTextVNode as _, vShow as ee } from "vue";
|
|
2
2
|
import te from "../BaseDropDown.vue.js";
|
|
3
3
|
import '../../../../../assets/BaseDropDown.css';/* empty css */
|
|
4
4
|
import le from "../BaseSelect/SelectItem.vue.js";
|
|
@@ -15,6 +15,7 @@ const oe = ["id", "data-cy", "placeholder"], ae = ["innerHTML"], pe = /* @__PURE
|
|
|
15
15
|
dropdownClasses: {},
|
|
16
16
|
clearButton: {},
|
|
17
17
|
keepState: {},
|
|
18
|
+
disableCb: { type: Boolean, default: !1 },
|
|
18
19
|
onInputChangeCb: { type: Function },
|
|
19
20
|
onOptionSelectedCb: { type: [Function, null] }
|
|
20
21
|
}, {
|
|
@@ -29,16 +30,16 @@ const oe = ["id", "data-cy", "placeholder"], ae = ["innerHTML"], pe = /* @__PURE
|
|
|
29
30
|
}),
|
|
30
31
|
emits: /* @__PURE__ */ $(["click", "inputClick", "keydown"], ["update:open", "update:modelValue", "update:inputValue"]),
|
|
31
32
|
setup(l, { expose: O, emit: R }) {
|
|
32
|
-
const s =
|
|
33
|
+
const s = C(l, "open"), a = C(l, "modelValue"), o = C(l, "inputValue");
|
|
33
34
|
o.value = o.value ?? a.value?.label ?? "";
|
|
34
|
-
const v = R, k = d(!1), U = A(), m =
|
|
35
|
+
const v = R, k = d(!1), U = A(), m = y("inputRef"), c = d(0), b = d(!1), S = d(null), i = d([]), T = y("dropdownRef"), B = y("hiddenSpan"), x = () => {
|
|
35
36
|
o.value = "", a.value = null;
|
|
36
37
|
}, I = async (t) => {
|
|
37
38
|
if (!t) {
|
|
38
39
|
i.value = [], s.value = !1;
|
|
39
40
|
return;
|
|
40
41
|
}
|
|
41
|
-
i.value = await S.value?.(t) || [],
|
|
42
|
+
l.disableCb || (i.value = await S.value?.(t) || [], b.value = !0, s.value = !!i.value.length);
|
|
42
43
|
}, M = (t = -1) => {
|
|
43
44
|
const e = i.value[t];
|
|
44
45
|
!e || e.id === a.value?.id || (l.onOptionSelectedCb?.(e), o.value = e.label, s.value = !1, a.value = e, i.value = []);
|
|
@@ -94,8 +95,8 @@ const oe = ["id", "data-cy", "placeholder"], ae = ["innerHTML"], pe = /* @__PURE
|
|
|
94
95
|
"open-dropdown": s.value,
|
|
95
96
|
"keep-state": !i.value.length || l.keepState === "closed" ? "closed" : "opened",
|
|
96
97
|
"activate-keyboard-controller": l.enableKeyboardController,
|
|
97
|
-
"reset-keyboard-controller":
|
|
98
|
-
"onUpdate:resetKeyboardController": e[4] || (e[4] = (n) =>
|
|
98
|
+
"reset-keyboard-controller": b.value,
|
|
99
|
+
"onUpdate:resetKeyboardController": e[4] || (e[4] = (n) => b.value = n),
|
|
99
100
|
"onUpdate:dropdownState": e[5] || (e[5] = (n) => s.value = n)
|
|
100
101
|
}, {
|
|
101
102
|
btn_slot: g(() => [
|
package/package.json
CHANGED
|
File without changes
|