@wikicasa-dev/components 2.2.9-alpha.12 → 2.2.9-alpha.14

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-keyboard.css';/* empty css */
2
+ import '../assets/swiper-thumbs.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-keyboard.css';/* empty css */
2
+ import '../assets/swiper-thumbs.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-keyboard.css';/* empty css */
2
+ import '../assets/swiper-thumbs.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-keyboard.css';/* empty css */
2
+ import '../assets/swiper-thumbs.css';/* empty css */
3
3
  export {
4
4
  p as Thumbs
5
5
  };
@@ -22,12 +22,13 @@ export interface ClearableAutocompleteProps<TID extends string | number | undefi
22
22
  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<{
23
23
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
24
24
  readonly "onUpdate:modelValue"?: ((value: Nullable<AccessibleSelectOptions<TPayload, TID>>) => any) | undefined;
25
+ readonly onInput?: ((args_0: InputEvent) => any) | undefined;
25
26
  readonly onClick?: ((args_0: MouseEvent) => any) | undefined;
26
27
  readonly onKeydown?: ((args_0: KeyboardEvent) => any) | undefined;
27
28
  readonly "onUpdate:open"?: ((value: boolean) => any) | undefined;
28
29
  readonly "onUpdate:inputValue"?: ((value: string) => any) | undefined;
29
30
  readonly onInputClick?: ((args_0: MouseEvent) => any) | undefined;
30
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onClick" | "onKeydown" | "onUpdate:open" | "onUpdate:inputValue" | "onInputClick"> & ({
31
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onClick" | "onInput" | "onKeydown" | "onUpdate:open" | "onUpdate:inputValue" | "onInputClick"> & ({
31
32
  open?: boolean;
32
33
  modelValue?: Nullable<AccessibleSelectOptions<TPayload, TID>>;
33
34
  inputValue?: string;
@@ -47,7 +48,7 @@ declare const _default: <TID extends string | number | undefined, TPayload>(__VL
47
48
  idx: number;
48
49
  }): any;
49
50
  };
50
- emit: (((evt: "click", args_0: MouseEvent) => void) & ((evt: "keydown", args_0: KeyboardEvent) => void) & ((evt: "inputClick", args_0: MouseEvent) => void)) & (((evt: "update:modelValue", value: Nullable<AccessibleSelectOptions<TPayload, TID>>) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "update:inputValue", value: string) => void));
51
+ emit: (((evt: "input", args_0: InputEvent) => void) & ((evt: "click", args_0: MouseEvent) => void) & ((evt: "keydown", args_0: KeyboardEvent) => void) & ((evt: "inputClick", args_0: MouseEvent) => void)) & (((evt: "update:modelValue", value: Nullable<AccessibleSelectOptions<TPayload, TID>>) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "update:inputValue", value: string) => void));
51
52
  }>) => import('vue').VNode & {
52
53
  __ctx?: Awaited<typeof __VLS_setup>;
53
54
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as W, mergeModels as V, useModel as C, useId as D, useTemplateRef as b, shallowRef as c, onBeforeMount as N, watch as y, nextTick as A, createBlock as $, openBlock as w, withCtx as h, createElementBlock as H, Fragment as P, renderList as X, renderSlot as p, createElementVNode as u, normalizeClass as f, withDirectives as F, unref as j, vModelText as q, toDisplayString as G, withModifiers as J, normalizeStyle as Q, createTextVNode as Y, vShow as Z } from "vue";
1
+ import { defineComponent as W, mergeModels as V, useModel as C, useId as D, useTemplateRef as b, shallowRef as c, onBeforeMount as N, watch as y, nextTick as A, createBlock as $, openBlock as w, withCtx as h, createElementBlock as H, Fragment as P, renderList as X, renderSlot as f, createElementVNode as u, normalizeClass as v, withDirectives as F, unref as j, vModelText as q, toDisplayString as G, withModifiers as J, normalizeStyle as Q, createTextVNode as Y, vShow as Z } from "vue";
2
2
  import _ from "../BaseDropDown.vue.js";
3
3
  import '../../../../../assets/BaseDropDown.css';/* empty css */
4
4
  import ee from "../BaseSelect/SelectItem.vue.js";
@@ -28,13 +28,13 @@ const le = ["id", "data-cy", "placeholder"], ne = ["innerHTML"], de = /* @__PURE
28
28
  },
29
29
  inputValueModifiers: {}
30
30
  }),
31
- emits: /* @__PURE__ */ V(["click", "inputClick", "keydown"], ["update:open", "update:modelValue", "update:inputValue"]),
31
+ emits: /* @__PURE__ */ V(["input", "click", "inputClick", "keydown"], ["update:open", "update:modelValue", "update:inputValue"]),
32
32
  setup(l, { expose: O, emit: R }) {
33
33
  const s = C(l, "open"), i = C(l, "modelValue"), o = C(l, "inputValue");
34
34
  o.value = o.value ?? i.value?.label ?? "";
35
- const v = R, x = D(), k = b("inputRef"), d = c(0), m = c(!1), g = c(null), a = c([]), S = b("dropdownRef"), T = b("hiddenSpan"), E = () => {
35
+ const d = R, x = D(), k = b("inputRef"), p = c(0), m = c(!1), g = c(null), a = c([]), S = b("dropdownRef"), T = b("hiddenSpan"), E = () => {
36
36
  o.value = "", i.value = null;
37
- }, U = async (t) => {
37
+ }, I = async (t) => {
38
38
  if (!t) {
39
39
  a.value = [], s.value = !1;
40
40
  return;
@@ -43,7 +43,7 @@ const le = ["id", "data-cy", "placeholder"], ne = ["innerHTML"], de = /* @__PURE
43
43
  }, B = (t = -1) => {
44
44
  const e = a.value[t];
45
45
  !e || e.id === i.value?.id || (l.onOptionSelectedCb?.(e), o.value = e.label, s.value = !1, i.value = e, a.value = []);
46
- }, I = () => {
46
+ }, U = () => {
47
47
  k.value?.select();
48
48
  }, z = () => {
49
49
  k.value?.focus();
@@ -56,7 +56,7 @@ const le = ["id", "data-cy", "placeholder"], ne = ["innerHTML"], de = /* @__PURE
56
56
  t && A(() => {
57
57
  if (!t) return;
58
58
  const e = t.offsetWidth;
59
- e !== d.value && (d.value = e);
59
+ e !== p.value && (p.value = e);
60
60
  });
61
61
  },
62
62
  { immediate: !0 }
@@ -74,7 +74,7 @@ const le = ["id", "data-cy", "placeholder"], ne = ["innerHTML"], de = /* @__PURE
74
74
  { immediate: !0 }
75
75
  ), O({
76
76
  getRootElement: () => S.value?.getRootElement(),
77
- select: I,
77
+ select: U,
78
78
  focus: z
79
79
  }), (t, e) => (w(), $(_, {
80
80
  ref: "dropdownRef",
@@ -86,37 +86,38 @@ const le = ["id", "data-cy", "placeholder"], ne = ["innerHTML"], de = /* @__PURE
86
86
  "keep-state": !a.value.length || l.keepState === "closed" ? "closed" : "opened",
87
87
  "activate-keyboard-controller": l.enableKeyboardController,
88
88
  "reset-keyboard-controller": m.value,
89
- "onUpdate:resetKeyboardController": e[4] || (e[4] = (n) => m.value = n),
90
- "onUpdate:dropdownState": e[5] || (e[5] = (n) => s.value = n)
89
+ "onUpdate:resetKeyboardController": e[5] || (e[5] = (n) => m.value = n),
90
+ "onUpdate:dropdownState": e[6] || (e[6] = (n) => s.value = n)
91
91
  }, {
92
92
  btn_slot: h(() => [
93
93
  u("div", {
94
- class: f(["uikit-text-16", l.triggerWrapperClasses]),
95
- onClick: e[3] || (e[3] = (n) => v("click", n))
94
+ class: v(["uikit-text-16", l.triggerWrapperClasses]),
95
+ onClick: e[4] || (e[4] = (n) => d("click", n))
96
96
  }, [
97
- p(t.$slots, "left-icon"),
97
+ f(t.$slots, "left-icon"),
98
98
  u("div", {
99
- class: f(["uikit-relative", l.inputWrapperClasses])
99
+ class: v(["uikit-relative", l.inputWrapperClasses])
100
100
  }, [
101
101
  F(u("input", {
102
102
  ref: "inputRef",
103
103
  "onUpdate:modelValue": [
104
104
  e[0] || (e[0] = (n) => o.value = n),
105
- U
105
+ I
106
106
  ],
107
107
  id: j(x),
108
108
  "data-cy": l.dataCy ? `ac_input_${l.dataCy}` : "",
109
109
  type: "text",
110
110
  autocomplete: "off",
111
- class: f(["uikit-w-full uikit-border-none focus-visible:uikit-outline-none", l.inputClasses]),
111
+ class: v(["uikit-w-full uikit-border-none focus-visible:uikit-outline-none", l.inputClasses]),
112
112
  style: {
113
113
  font: "inherit",
114
114
  fontSize: "inherit"
115
115
  },
116
116
  placeholder: l.placeholder,
117
- onKeydown: e[1] || (e[1] = (n) => v("keydown", n)),
118
- onClick: e[2] || (e[2] = (n) => {
119
- v("inputClick", n), k.value?.select();
117
+ onKeydown: e[1] || (e[1] = (n) => d("keydown", n)),
118
+ onInput: e[2] || (e[2] = (n) => d("input", n)),
119
+ onClick: e[3] || (e[3] = (n) => {
120
+ d("inputClick", n), k.value?.select();
120
121
  })
121
122
  }, null, 42, le), [
122
123
  [q, o.value]
@@ -132,21 +133,21 @@ const le = ["id", "data-cy", "placeholder"], ne = ["innerHTML"], de = /* @__PURE
132
133
  }, G(o.value), 513),
133
134
  F(u("button", {
134
135
  type: "button",
135
- class: f(["uikit-clear-btn uikit-absolute uikit-top-1/2 -uikit-translate-y-1/2 uikit-appearance-none", l.clearButton?.classes]),
136
+ class: v(["uikit-clear-btn uikit-absolute uikit-top-1/2 -uikit-translate-y-1/2 uikit-appearance-none", l.clearButton?.classes]),
136
137
  "aria-label": "Clear input",
137
138
  style: Q({
138
- left: `${d.value + (l.clearButton?.offset || 10)}px`
139
+ left: `${p.value + (l.clearButton?.offset || 10)}px`
139
140
  }),
140
141
  onClick: J(E, ["stop"])
141
142
  }, [
142
- p(t.$slots, "clear-icon", {}, () => [
143
- e[6] || (e[6] = Y("X", -1))
143
+ f(t.$slots, "clear-icon", {}, () => [
144
+ e[7] || (e[7] = Y("X", -1))
144
145
  ])
145
146
  ], 6), [
146
- [Z, i.value?.label && d.value]
147
+ [Z, i.value?.label && p.value]
147
148
  ])
148
149
  ], 2),
149
- p(t.$slots, "right-icon")
150
+ f(t.$slots, "right-icon")
150
151
  ], 2)
151
152
  ]),
152
153
  default: h(({ activeIdx: n, setActiveIdx: K }) => [
@@ -158,7 +159,7 @@ const le = ["id", "data-cy", "placeholder"], ne = ["innerHTML"], de = /* @__PURE
158
159
  onMouseover: (L) => K(r)
159
160
  }, {
160
161
  default: h(() => [
161
- p(t.$slots, "option-content", {
162
+ f(t.$slots, "option-content", {
162
163
  option: M,
163
164
  idx: r
164
165
  }, () => [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/components",
3
- "version": "2.2.9-alpha.12",
3
+ "version": "2.2.9-alpha.14",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",