@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.
@@ -1,5 +1,5 @@
1
1
  import { Autoplay as t } from "swiper/modules";
2
- import '../assets/swiper-autoplay.css';/* empty css */
2
+ import '../assets/swiper-controller.css';/* empty css */
3
3
  export {
4
4
  t as Autoplay
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { Controller as e } from "swiper/modules";
2
- import '../assets/swiper-autoplay.css';/* empty css */
2
+ import '../assets/swiper-controller.css';/* empty css */
3
3
  export {
4
4
  e as Controller
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { Keyboard as m } from "swiper/modules";
2
- import '../assets/swiper-autoplay.css';/* empty css */
2
+ import '../assets/swiper-controller.css';/* empty css */
3
3
  export {
4
4
  m as Keyboard
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { Thumbs as p } from "swiper/modules";
2
- import '../assets/swiper-autoplay.css';/* empty css */
2
+ import '../assets/swiper-controller.css';/* empty css */
3
3
  export {
4
4
  p as Thumbs
5
5
  };
@@ -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 y, shallowRef as d, useId as A, useTemplateRef as b, 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";
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 = y(l, "open"), a = y(l, "modelValue"), o = y(l, "inputValue");
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 = b("inputRef"), c = d(0), C = d(!1), S = d(null), i = d([]), T = b("dropdownRef"), B = b("hiddenSpan"), x = () => {
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) || [], C.value = !0, s.value = !!i.value.length;
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": C.value,
98
- "onUpdate:resetKeyboardController": e[4] || (e[4] = (n) => C.value = 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/components",
3
- "version": "2.2.9-alpha.10",
3
+ "version": "2.2.9-alpha.11",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",