@wikicasa-dev/components 2.0.14 → 2.0.16

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,4 +1,4 @@
1
- import { _ as f } from "./chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.CfwgKf93.js";
1
+ import { _ as f } from "./chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.ClV6kObA.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.i1drmEOH.js";
1
+ import { _ as f } from "./chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.CCR6X0si.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,57 +1,55 @@
1
1
  import { AccessibleSelectOptions } from './types';
2
2
  import { ClassType, Optional } from '@wikicasa-dev/types';
3
- declare let __VLS_typeProps: {
4
- label?: string;
5
- dropdownPosition?: "top" | "bottom";
6
- namespace?: string;
7
- options: AccessibleSelectOptions[];
8
- isValid?: boolean | null;
9
- feedback?: Partial<{
10
- valid: string;
11
- invalid: string;
12
- }>;
13
- /**
14
- * If true, we will close the dropdown when we touch the body of the document
15
- */
16
- closeOnBodyPressed?: boolean;
17
- border?: boolean;
18
- fieldsetClasses?: ClassType;
19
- legendClasses?: ClassType;
20
- dropdownClasses?: ClassType;
21
- labelClasses?: ClassType;
22
- btnClasses?: ClassType;
23
- dropdownItemClasses?: ClassType;
24
- btnTextClasses?: ClassType;
25
- arrowIcon?: Partial<{
26
- width: number;
27
- height: number;
28
- strokeColor: `#${string}`;
29
- classes: ClassType;
30
- }>;
31
- dataCy?: string;
32
- };
33
- type __VLS_PublicProps = {
34
- modelValue?: Optional<AccessibleSelectOptions>;
35
- } & typeof __VLS_typeProps;
36
- declare function __VLS_template(): {
3
+ declare const _default: <T, LabelID extends string | number | undefined>(__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<{
4
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
5
+ readonly "onUpdate:modelValue"?: ((modelValue: Optional<AccessibleSelectOptions<T, LabelID>>) => any) | undefined;
6
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & ({
7
+ modelValue?: Optional<AccessibleSelectOptions<T, LabelID>>;
8
+ } & {
9
+ label?: string;
10
+ dropdownPosition?: "top" | "bottom";
11
+ namespace?: string;
12
+ options: AccessibleSelectOptions<T, LabelID>[];
13
+ isValid?: boolean | null;
14
+ feedback?: Partial<{
15
+ valid: string;
16
+ invalid: string;
17
+ }>;
18
+ /**
19
+ * If true, we will close the dropdown when we touch the body of the document
20
+ */
21
+ closeOnBodyPressed?: boolean;
22
+ border?: boolean;
23
+ fieldsetClasses?: ClassType;
24
+ legendClasses?: ClassType;
25
+ dropdownClasses?: ClassType;
26
+ labelClasses?: ClassType;
27
+ btnClasses?: ClassType;
28
+ dropdownItemClasses?: ClassType;
29
+ btnTextClasses?: ClassType;
30
+ arrowIcon?: Partial<{
31
+ width: number;
32
+ height: number;
33
+ strokeColor: `#${string}`;
34
+ classes: ClassType;
35
+ }>;
36
+ dataCy?: string;
37
+ wrapperClasses?: ClassType;
38
+ })> & import('vue').PublicProps;
39
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
40
+ attrs: any;
37
41
  slots: {
38
42
  lefticon?(_: {}): any;
39
43
  };
40
- refs: {
41
- btnEl: HTMLButtonElement;
44
+ emit: {
45
+ 'update:modelValue': [modelValue: Optional<AccessibleSelectOptions<T, LabelID>>];
42
46
  };
43
- attrs: Partial<{}>;
47
+ }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
48
+ [key: string]: any;
49
+ }> & {
50
+ __ctx?: Awaited<typeof __VLS_setup>;
44
51
  };
45
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
46
- declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
47
- "update:modelValue": (modelValue: Optional<AccessibleSelectOptions>) => any;
48
- }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
49
- "onUpdate:modelValue"?: ((modelValue: Optional<AccessibleSelectOptions>) => any) | undefined;
50
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
51
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
52
52
  export default _default;
53
- type __VLS_WithTemplateSlots<T, S> = T & {
54
- new (): {
55
- $slots: S;
56
- };
57
- };
53
+ type __VLS_PrettifyLocal<T> = {
54
+ [K in keyof T]: T[K];
55
+ } & {};
@@ -1,197 +1,51 @@
1
1
  import { Nullable, BaseAutocompleteThemes } from '@wikicasa-dev/types';
2
2
  import { AccessibleSelectOptions, ClassTypeProp } from './types';
3
- type ModelValueType<T = unknown> = AccessibleSelectOptions<T>;
4
- declare let __VLS_typeProps: {
5
- isValid?: Nullable<boolean>;
6
- theme?: BaseAutocompleteThemes;
7
- label?: string;
8
- disableCb?: boolean;
9
- onInputChangeCb: (v: string) => Promise<AccessibleSelectOptions[]>;
10
- onOptionSelectedCb?: Nullable<(v: AccessibleSelectOptions) => void>;
11
- keepState?: Nullable<"closed" | "open">;
12
- cleanupOnClose?: boolean;
13
- dropdownClasses?: string;
14
- /**
15
- * If true, we will close the dropdown when the user clicks or touches the body of the document
16
- */
17
- closeDropdownOnBodyPressed?: boolean;
18
- inputClasses?: ClassTypeProp;
19
- fieldsetClasses?: ClassTypeProp;
20
- };
21
- type __VLS_PublicProps = {
22
- modelValue?: ModelValueType | undefined;
23
- } & typeof __VLS_typeProps;
24
- declare function __VLS_template(): {
3
+ declare const _default: <T, LabelID extends string | number | undefined>(__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<{
4
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
5
+ readonly onClick?: (() => any) | undefined;
6
+ readonly "onUpdate:modelValue"?: ((modelValue: AccessibleSelectOptions<T, LabelID> | undefined) => any) | undefined;
7
+ readonly onKeydown?: ((args_0: KeyboardEvent) => any) | undefined;
8
+ readonly onKeydownEnterPressed?: (() => any) | undefined;
9
+ readonly "onUpdate:dropdownState"?: ((args_0: boolean) => any) | undefined;
10
+ readonly onChangedValue?: ((args_0: string) => any) | undefined;
11
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onClick" | "onKeydown" | "onUpdate:modelValue" | "onKeydownEnterPressed" | "onUpdate:dropdownState" | "onChangedValue"> & ({
12
+ modelValue?: AccessibleSelectOptions<T, LabelID> | undefined;
13
+ } & {
14
+ isValid?: Nullable<boolean>;
15
+ theme?: BaseAutocompleteThemes;
16
+ label?: string;
17
+ disableCb?: boolean;
18
+ onInputChangeCb: (v: string) => Promise<AccessibleSelectOptions<T, LabelID>[]>;
19
+ onOptionSelectedCb?: Nullable<(v: AccessibleSelectOptions<T, LabelID>) => void>;
20
+ keepState?: Nullable<"closed" | "open">;
21
+ cleanupOnClose?: boolean;
22
+ dropdownClasses?: string;
23
+ /**
24
+ * If true, we will close the dropdown when the user clicks or touches the body of the document
25
+ */
26
+ closeDropdownOnBodyPressed?: boolean;
27
+ inputClasses?: ClassTypeProp;
28
+ fieldsetClasses?: ClassTypeProp;
29
+ })> & import('vue').PublicProps;
30
+ expose(exposed: import('vue').ShallowUnwrapRef<{
31
+ select: () => void;
32
+ }>): void;
33
+ attrs: any;
25
34
  slots: {
26
35
  lefticon?(_: {}): any;
27
36
  righticon?(_: {
28
37
  handleClean: () => void;
29
38
  }): any;
30
39
  };
31
- refs: {
32
- baseInput: ({
33
- $: import('vue').ComponentInternalInstance;
34
- $data: {};
35
- $props: {
36
- readonly modelValue?: string | number | undefined;
37
- readonly inputClass?: import('./types').ClassType | import('./types').ClassType[];
38
- readonly labelText?: string | undefined;
39
- readonly feedback?: import('./types').FeedbackLabels | undefined;
40
- readonly isValid?: Nullable<boolean> | undefined;
41
- readonly keepFloatingLabel?: boolean | undefined;
42
- readonly formatter?: Nullable<Partial<{
43
- formatFn: (n: number | string) => string;
44
- unFormatFn: (v: string) => string | number | null;
45
- }>> | undefined;
46
- readonly labelClasses?: ClassTypeProp;
47
- readonly fieldsetClasses?: ClassTypeProp;
48
- readonly labelTextClasses?: ClassTypeProp;
49
- readonly withLeftIcon?: boolean | undefined;
50
- readonly withRightIcon?: boolean | undefined;
51
- readonly dataCy?: string | undefined;
52
- readonly onClick?: ((args_0: MouseEvent) => any) | undefined;
53
- readonly "onUpdate:modelValue"?: ((modelValue: string | number | undefined) => any) | undefined;
54
- readonly onFocusin?: (() => any) | undefined;
55
- readonly onFocusout?: (() => any) | undefined;
56
- readonly onKeydown?: ((args_0: KeyboardEvent) => any) | undefined;
57
- readonly onKeyup?: ((args_0: KeyboardEvent) => any) | undefined;
58
- readonly onKeydownEnterPressed?: (() => any) | undefined;
59
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
60
- $attrs: {
61
- [x: string]: unknown;
62
- };
63
- $refs: {
64
- [x: string]: unknown;
65
- };
66
- $slots: Readonly<{
67
- [name: string]: import('vue').Slot<any> | undefined;
68
- }>;
69
- $root: import('vue').ComponentPublicInstance | null;
70
- $parent: import('vue').ComponentPublicInstance | null;
71
- $host: Element | null;
72
- $emit: ((event: "click", args_0: MouseEvent) => void) & ((event: "update:modelValue", modelValue: string | number | undefined) => void) & ((event: "focusin") => void) & ((event: "focusout") => void) & ((event: "keydown", args_0: KeyboardEvent) => void) & ((event: "keyup", args_0: KeyboardEvent) => void) & ((event: "keydownEnterPressed") => void);
73
- $el: any;
74
- $options: import('vue').ComponentOptionsBase<Readonly<{
75
- modelValue?: string | number | undefined;
76
- } & {
77
- inputClass?: import('./types').ClassType | import('./types').ClassType[];
78
- labelText?: string;
79
- feedback?: import('./types').FeedbackLabels;
80
- isValid?: Nullable<boolean>;
81
- keepFloatingLabel?: boolean;
82
- formatter?: Nullable<Partial<{
83
- formatFn: (n: number | string) => string;
84
- unFormatFn: (v: string) => string | number | null;
85
- }>>;
86
- labelClasses?: ClassTypeProp;
87
- fieldsetClasses?: ClassTypeProp;
88
- labelTextClasses?: ClassTypeProp;
89
- withLeftIcon?: boolean;
90
- withRightIcon?: boolean;
91
- dataCy?: string;
92
- }> & Readonly<{
93
- onClick?: ((args_0: MouseEvent) => any) | undefined;
94
- "onUpdate:modelValue"?: ((modelValue: string | number | undefined) => any) | undefined;
95
- onFocusin?: (() => any) | undefined;
96
- onFocusout?: (() => any) | undefined;
97
- onKeydown?: ((args_0: KeyboardEvent) => any) | undefined;
98
- onKeyup?: ((args_0: KeyboardEvent) => any) | undefined;
99
- onKeydownEnterPressed?: (() => any) | undefined;
100
- }>, {
101
- select: () => void;
102
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
103
- click: (args_0: MouseEvent) => any;
104
- "update:modelValue": (modelValue: string | number | undefined) => any;
105
- focusin: () => any;
106
- focusout: () => any;
107
- keydown: (args_0: KeyboardEvent) => any;
108
- keyup: (args_0: KeyboardEvent) => any;
109
- keydownEnterPressed: () => any;
110
- }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
111
- beforeCreate?: (() => void) | (() => void)[];
112
- created?: (() => void) | (() => void)[];
113
- beforeMount?: (() => void) | (() => void)[];
114
- mounted?: (() => void) | (() => void)[];
115
- beforeUpdate?: (() => void) | (() => void)[];
116
- updated?: (() => void) | (() => void)[];
117
- activated?: (() => void) | (() => void)[];
118
- deactivated?: (() => void) | (() => void)[];
119
- beforeDestroy?: (() => void) | (() => void)[];
120
- beforeUnmount?: (() => void) | (() => void)[];
121
- destroyed?: (() => void) | (() => void)[];
122
- unmounted?: (() => void) | (() => void)[];
123
- renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
124
- renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
125
- errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
126
- };
127
- $forceUpdate: () => void;
128
- $nextTick: typeof import('vue').nextTick;
129
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
130
- } & Readonly<{}> & Omit<Readonly<{
131
- modelValue?: string | number | undefined;
132
- } & {
133
- inputClass?: import('./types').ClassType | import('./types').ClassType[];
134
- labelText?: string;
135
- feedback?: import('./types').FeedbackLabels;
136
- isValid?: Nullable<boolean>;
137
- keepFloatingLabel?: boolean;
138
- formatter?: Nullable<Partial<{
139
- formatFn: (n: number | string) => string;
140
- unFormatFn: (v: string) => string | number | null;
141
- }>>;
142
- labelClasses?: ClassTypeProp;
143
- fieldsetClasses?: ClassTypeProp;
144
- labelTextClasses?: ClassTypeProp;
145
- withLeftIcon?: boolean;
146
- withRightIcon?: boolean;
147
- dataCy?: string;
148
- }> & Readonly<{
149
- onClick?: ((args_0: MouseEvent) => any) | undefined;
150
- "onUpdate:modelValue"?: ((modelValue: string | number | undefined) => any) | undefined;
151
- onFocusin?: (() => any) | undefined;
152
- onFocusout?: (() => any) | undefined;
153
- onKeydown?: ((args_0: KeyboardEvent) => any) | undefined;
154
- onKeyup?: ((args_0: KeyboardEvent) => any) | undefined;
155
- onKeydownEnterPressed?: (() => any) | undefined;
156
- }>, "select"> & import('vue').ShallowUnwrapRef<{
157
- select: () => void;
158
- }> & {} & import('vue').ComponentCustomProperties & {} & {
159
- $slots: {
160
- leftIcon?(_: {}): any;
161
- righticon?(_: {
162
- handleClean: () => void;
163
- handleShowPasswd: () => void;
164
- curType: import('@wikicasa-dev/types').InputTypeHTMLAttribute;
165
- }): any;
166
- feedback?(_: {}): any;
167
- "under-label"?(_: {}): any;
168
- };
169
- }) | null;
40
+ emit: (((evt: "click") => void) & ((evt: "keydown", args_0: KeyboardEvent) => void) & ((evt: "keydownEnterPressed") => void) & ((evt: "update:dropdownState", args_0: boolean) => void) & ((evt: "changedValue", args_0: string) => void)) & {
41
+ 'update:modelValue': [modelValue: AccessibleSelectOptions<T, LabelID> | undefined];
170
42
  };
171
- attrs: Partial<{}>;
43
+ }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
44
+ [key: string]: any;
45
+ }> & {
46
+ __ctx?: Awaited<typeof __VLS_setup>;
172
47
  };
173
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
174
- declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
175
- select: () => void;
176
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
177
- click: () => any;
178
- "update:modelValue": (modelValue: ModelValueType<unknown> | undefined) => any;
179
- keydown: (args_0: KeyboardEvent) => any;
180
- keydownEnterPressed: () => any;
181
- "update:dropdownState": (args_0: boolean) => any;
182
- changedValue: (args_0: string) => any;
183
- }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
184
- onClick?: (() => any) | undefined;
185
- "onUpdate:modelValue"?: ((modelValue: ModelValueType<unknown> | undefined) => any) | undefined;
186
- onKeydown?: ((args_0: KeyboardEvent) => any) | undefined;
187
- onKeydownEnterPressed?: (() => any) | undefined;
188
- "onUpdate:dropdownState"?: ((args_0: boolean) => any) | undefined;
189
- onChangedValue?: ((args_0: string) => any) | undefined;
190
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
191
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
192
48
  export default _default;
193
- type __VLS_WithTemplateSlots<T, S> = T & {
194
- new (): {
195
- $slots: S;
196
- };
197
- };
49
+ type __VLS_PrettifyLocal<T> = {
50
+ [K in keyof T]: T[K];
51
+ } & {};
@@ -1,4 +1,4 @@
1
- import { h as f, defineComponent as T, mergeModels as B, useModel as H, useId as F, computed as C, ref as $, watch as I, onMounted as A, onUnmounted as z, openBlock as a, createElementBlock as n, normalizeClass as o, createElementVNode as s, createCommentVNode as k, withModifiers as b, renderSlot as E, unref as p, createBlock as P, createVNode as N, Fragment as M, renderList as O } from "vue";
1
+ import { h as f, defineComponent as T, mergeModels as B, useModel as H, useId as F, computed as g, ref as $, watch as I, onMounted as A, onUnmounted as z, openBlock as o, createElementBlock as n, normalizeClass as a, createElementVNode as s, createCommentVNode as k, withModifiers as b, renderSlot as E, unref as p, createBlock as P, createVNode as N, Fragment as M, renderList as O } from "vue";
2
2
  import { A as q } from "./useKeyboardController.CutKeclN.js";
3
3
  import { a as j } from "./ArrowIcon.CCFMdsq6.js";
4
4
  import { e as D } from "./PharmacyIcon.56ql_DYl.js";
@@ -36,7 +36,7 @@ const S = (t, { attrs: r }) => {
36
36
  })
37
37
  ]
38
38
  );
39
- }, U = { class: "uikit-relative uikit-flex uikit-h-12 uikit-items-center" }, G = ["id", "innerHTML"], J = ["id", "data-cy", "aria-required", "aria-controls", "aria-labelledby", "aria-expanded", "aria-activedescendant", "aria-invalid", "aria-describedby"], K = ["innerHTML"], Q = { class: "uikit-pointer-events-none uikit-mt-1 uikit-inline-flex" }, R = ["innerHTML"], W = ["data-cy"], X = ["id", "aria-selected", "onClick", "onMouseover"], Y = { class: "uikit-inline-block uikit-cursor-pointer uikit-text-sm" }, Z = ["name", "checked", "onInput"], x = ["innerHTML"], _ = ["id", "arial-live", "innerHTML"], ii = ["id", "arial-live", "innerHTML"], oi = /* @__PURE__ */ T({
39
+ }, U = ["id", "innerHTML"], G = ["id", "data-cy", "aria-required", "aria-controls", "aria-labelledby", "aria-expanded", "aria-activedescendant", "aria-invalid", "aria-describedby"], J = ["innerHTML"], K = { class: "uikit-pointer-events-none uikit-mt-1 uikit-inline-flex" }, Q = ["innerHTML"], R = ["data-cy"], W = ["id", "aria-selected", "onClick", "onMouseover"], X = { class: "uikit-inline-block uikit-cursor-pointer uikit-text-sm" }, Y = ["name", "checked", "onInput"], Z = ["innerHTML"], x = ["id", "arial-live", "innerHTML"], _ = ["id", "arial-live", "innerHTML"], ai = /* @__PURE__ */ T({
40
40
  inheritAttrs: !1,
41
41
  __name: "AccessibleSelect",
42
42
  props: /* @__PURE__ */ B({
@@ -56,7 +56,8 @@ const S = (t, { attrs: r }) => {
56
56
  dropdownItemClasses: {},
57
57
  btnTextClasses: {},
58
58
  arrowIcon: {},
59
- dataCy: {}
59
+ dataCy: {},
60
+ wrapperClasses: {}
60
61
  }, {
61
62
  modelValue: {
62
63
  default: () => ({ id: "", label: "" })
@@ -65,7 +66,7 @@ const S = (t, { attrs: r }) => {
65
66
  }),
66
67
  emits: ["update:modelValue"],
67
68
  setup(t) {
68
- const r = H(t, "modelValue"), m = F(), e = C(() => t.namespace || m), l = $(!1), L = $(null), h = C(() => !!r.value.label), { activeIdx: c, selectedIdx: V } = q({
69
+ const r = H(t, "modelValue"), m = F(), e = g(() => t.namespace || m), l = $(!1), L = $(null), h = g(() => !!r.value.label), { activeIdx: c, selectedIdx: V } = q({
69
70
  optionsLength: t.options.length,
70
71
  isDropdownOpen: l
71
72
  }), w = (i) => {
@@ -81,22 +82,24 @@ const S = (t, { attrs: r }) => {
81
82
  t.closeOnBodyPressed && document.addEventListener("click", y);
82
83
  }), z(() => {
83
84
  t.closeOnBodyPressed && document.removeEventListener("click", y);
84
- }), (i, u) => (a(), n("div", {
85
- class: o([i.$attrs.class])
85
+ }), (i, u) => (o(), n("div", {
86
+ class: a([i.$attrs.class])
86
87
  }, [
87
- s("div", U, [
88
- i.label ? (a(), n("label", {
88
+ s("div", {
89
+ class: a(["uikit-relative uikit-flex uikit-h-12 uikit-items-center", i.wrapperClasses])
90
+ }, [
91
+ i.label ? (o(), n("label", {
89
92
  key: 0,
90
93
  id: `${e.value}_label`,
91
- class: o(["uikit-pointer-events-none uikit-absolute uikit-z-10 uikit-text-sm uikit-font-medium uikit-transition-all uikit-ease-in-out", [
94
+ class: a(["uikit-pointer-events-none uikit-absolute uikit-z-10 uikit-text-sm uikit-font-medium uikit-transition-all uikit-ease-in-out", [
92
95
  h.value ? "as-floating -uikit-top-1 uikit-left-[22px] uikit-text-w-black" : "as-inline uikit-top-4 uikit-text-w-gray",
93
96
  i.labelClasses,
94
97
  { "uikit-left-9": i.$slots.lefticon && !h.value },
95
98
  { "uikit-left-4": !i.$slots.lefticon && !h.value }
96
99
  ]]),
97
100
  innerHTML: i.label
98
- }, null, 10, G)) : k("", !0),
99
- i.$slots.lefticon ? (a(), n("span", {
101
+ }, null, 10, U)) : k("", !0),
102
+ i.$slots.lefticon ? (o(), n("span", {
100
103
  key: 1,
101
104
  class: "uikit-z-20 uikit-mt-2 uikit-pl-2",
102
105
  onClick: u[0] || (u[0] = b((d) => l.value = !l.value, ["stop"]))
@@ -109,7 +112,7 @@ const S = (t, { attrs: r }) => {
109
112
  ref: L,
110
113
  type: "button",
111
114
  "data-cy": i.dataCy,
112
- class: o(["uikit-peer uikit-relative uikit-z-10 uikit-flex uikit-h-full uikit-w-full uikit-items-center uikit-justify-between uikit-truncate uikit-border-0 uikit-bg-transparent uikit-pr-4 uikit-text-left focus-visible:uikit-outline-0", [i.$slots.lefticon ? "uikit-pl-2" : "uikit-pl-4", i.btnClasses]]),
115
+ class: a(["uikit-peer uikit-relative uikit-z-10 uikit-flex uikit-h-full uikit-w-full uikit-items-center uikit-justify-between uikit-truncate uikit-border-0 uikit-bg-transparent uikit-pr-4 uikit-text-left focus-visible:uikit-outline-0", [i.$slots.lefticon ? "uikit-pl-2" : "uikit-pl-4", i.btnClasses]]),
113
116
  "aria-required": !!i.$attrs.required,
114
117
  role: "combobox",
115
118
  "aria-haspopup": "listbox",
@@ -122,11 +125,11 @@ const S = (t, { attrs: r }) => {
122
125
  onClick: u[1] || (u[1] = (d) => l.value = !l.value)
123
126
  }, [
124
127
  s("span", {
125
- class: o(["uikit-pointer-events-none uikit-mt-1", i.btnTextClasses]),
128
+ class: a(["uikit-pointer-events-none uikit-mt-1", i.btnTextClasses]),
126
129
  innerHTML: r.value.visibleLabel || r.value.label
127
- }, null, 10, K),
128
- s("span", Q, [
129
- i.isValid == !1 ? (a(), P(p(S), {
130
+ }, null, 10, J),
131
+ s("span", K, [
132
+ i.isValid == !1 ? (o(), P(p(S), {
130
133
  key: 0,
131
134
  class: "uikit-mr-1",
132
135
  width: 20,
@@ -134,7 +137,7 @@ const S = (t, { attrs: r }) => {
134
137
  "stroke-color": "#FA4F64"
135
138
  })) : k("", !0),
136
139
  N(p(j), {
137
- class: o(["uikit-transition-transform motion-reduce:uikit-transition-none", [
140
+ class: a(["uikit-transition-transform motion-reduce:uikit-transition-none", [
138
141
  l.value ? "uikit-rotate-180" : "",
139
142
  i.arrowIcon?.classes
140
143
  ]]),
@@ -143,10 +146,10 @@ const S = (t, { attrs: r }) => {
143
146
  "stroke-color": i.isValid ? "#2B5DFF" : i.isValid === !1 ? "#FA4F64" : i.arrowIcon?.strokeColor ?? "#222"
144
147
  }, null, 8, ["class", "width", "height", "stroke-color"])
145
148
  ])
146
- ], 10, J),
149
+ ], 10, G),
147
150
  s("fieldset", {
148
151
  "aria-hidden": "true",
149
- class: o(["uikit-pointer-events-none uikit-absolute uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-m-0 uikit-box-border uikit-h-12 uikit-cursor-pointer uikit-rounded-xs uikit-bg-white uikit-px-2 uikit-py-0 peer-focus:uikit-border-2", [
152
+ class: a(["uikit-pointer-events-none uikit-absolute uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-m-0 uikit-box-border uikit-h-12 uikit-cursor-pointer uikit-rounded-xs uikit-bg-white uikit-px-2 uikit-py-0 peer-focus:uikit-border-2", [
150
153
  i.fieldsetClasses,
151
154
  i.isValid ? "uikit-border-w-primary" : i.isValid === !1 ? "uikit-border-w-danger" : "uikit-border-w-secondary",
152
155
  {
@@ -156,13 +159,13 @@ const S = (t, { attrs: r }) => {
156
159
  ]])
157
160
  }, [
158
161
  s("legend", {
159
- class: o([[i.legendClasses, { "uikit-m-0 uikit-w-0": !i.label }], "uikit-ml-2 uikit-h-3 uikit-px-0 uikit-text-sm"])
162
+ class: a([[i.legendClasses, { "uikit-m-0 uikit-w-0": !i.label }], "uikit-ml-2 uikit-h-3 uikit-px-0 uikit-text-sm"])
160
163
  }, [
161
- i.label ? (a(), n("span", {
164
+ i.label ? (o(), n("span", {
162
165
  key: 0,
163
- class: o(["uikit-mx-5px", [r.value.label ? "uikit-invisible" : "uikit-hidden"]]),
166
+ class: a(["uikit-mx-5px", [r.value.label ? "uikit-invisible" : "uikit-hidden"]]),
164
167
  innerHTML: i.label
165
- }, null, 10, R)) : k("", !0)
168
+ }, null, 10, Q)) : k("", !0)
166
169
  ], 2)
167
170
  ], 2),
168
171
  s("ul", {
@@ -170,7 +173,7 @@ const S = (t, { attrs: r }) => {
170
173
  role: "listbox",
171
174
  tabindex: -1,
172
175
  "aria-multiselectable": !1,
173
- class: o(["uikit-absolute uikit-z-30 uikit-m-0 uikit-max-h-[225px] uikit-w-full uikit-min-w-full uikit-list-none uikit-overflow-y-auto uikit-p-0 uikit-no-scrollbar", [
176
+ class: a(["uikit-absolute uikit-z-30 uikit-m-0 uikit-max-h-[225px] uikit-w-full uikit-min-w-full uikit-list-none uikit-overflow-y-auto uikit-p-0 uikit-no-scrollbar", [
174
177
  { "uikit-h-0 uikit-w-0 uikit-overflow-hidden": !l.value },
175
178
  {
176
179
  "uikit-rounded-xs uikit-border uikit-border-solid uikit-border-w-secondary uikit-bg-white": l.value
@@ -182,52 +185,52 @@ const S = (t, { attrs: r }) => {
182
185
  onClick: u[3] || (u[3] = b(() => {
183
186
  }, ["stop"]))
184
187
  }, [
185
- (a(!0), n(M, null, O(i.options, (d, v) => (a(), n("li", {
188
+ (o(!0), n(M, null, O(i.options, (d, v) => (o(), n("li", {
186
189
  id: `${e.value}_element_${i.options[v].label}`,
187
190
  key: `${d.label}_${v}`,
188
191
  role: "option",
189
192
  "aria-selected": p(c) === v,
190
- class: o(["uikit-m-1 uikit-cursor-pointer uikit-px-20px uikit-py-10px uikit-text aria-selected:uikit-rounded-xs aria-selected:uikit-bg-w-cultured", i.dropdownItemClasses]),
191
- onClick: b((g) => w(d), ["stop"]),
192
- onMouseover: b((g) => c.value = v, ["stop"]),
193
+ class: a(["uikit-m-1 uikit-cursor-pointer uikit-px-20px uikit-py-10px uikit-text aria-selected:uikit-rounded-xs aria-selected:uikit-bg-w-cultured", i.dropdownItemClasses]),
194
+ onClick: b((C) => w(d), ["stop"]),
195
+ onMouseover: b((C) => c.value = v, ["stop"]),
193
196
  onBlur: u[2] || (u[2] = b(() => {
194
197
  }, ["stop"]))
195
198
  }, [
196
- s("label", Y, [
199
+ s("label", X, [
197
200
  s("input", {
198
201
  tabindex: "-1",
199
202
  class: "uikit-m-0 uikit-appearance-none",
200
203
  name: `${e.value}_radio`,
201
204
  type: "radio",
202
205
  checked: d.label === r.value.label,
203
- onInput: b((g) => w(d), ["stop"])
204
- }, null, 40, Z),
206
+ onInput: b((C) => w(d), ["stop"])
207
+ }, null, 40, Y),
205
208
  s("span", {
206
209
  innerHTML: d.label
207
- }, null, 8, x)
210
+ }, null, 8, Z)
208
211
  ])
209
- ], 42, X))), 128))
210
- ], 10, W)
211
- ]),
212
- i.feedback ? (a(), n(M, { key: 0 }, [
213
- i.feedback.valid ? (a(), n("span", {
212
+ ], 42, W))), 128))
213
+ ], 10, R)
214
+ ], 2),
215
+ i.feedback ? (o(), n(M, { key: 0 }, [
216
+ i.feedback.valid ? (o(), n("span", {
214
217
  key: 0,
215
218
  id: `${e.value}_valid_msg`,
216
219
  "arial-live": i.$attrs["aria-live"],
217
220
  class: "uikit-mt-1 uikit-inline-block uikit-text-12",
218
221
  innerHTML: i.isValid ? i.feedback.valid : ""
219
- }, null, 8, _)) : k("", !0),
220
- i.feedback.invalid ? (a(), n("span", {
222
+ }, null, 8, x)) : k("", !0),
223
+ i.feedback.invalid ? (o(), n("span", {
221
224
  key: 1,
222
225
  id: `${e.value}_invalid_msg`,
223
226
  "arial-live": i.$attrs["aria-live"],
224
227
  class: "uikit-mt-1 uikit-inline-block uikit-text-12 uikit-text-w-danger",
225
228
  innerHTML: i.isValid === !1 ? i.feedback.invalid : ""
226
- }, null, 8, ii)) : k("", !0)
229
+ }, null, 8, _)) : k("", !0)
227
230
  ], 64)) : k("", !0)
228
231
  ], 2));
229
232
  }
230
233
  });
231
234
  export {
232
- oi as _
235
+ ai as _
233
236
  };
@@ -41,7 +41,10 @@ const R = ["innerHTML"], le = /* @__PURE__ */ T({
41
41
  }),
42
42
  emits: /* @__PURE__ */ $(["update:dropdownState", "changedValue", "click", "keydown", "keydownEnterPressed"], ["update:modelValue"]),
43
43
  setup(t, { expose: p, emit: v }) {
44
- const d = L(t, "modelValue"), u = v, a = r(""), n = r([]), m = r(null), c = r(!1), o = r(!1), y = r(null), B = k(() => n.value.length);
44
+ const d = L(
45
+ t,
46
+ "modelValue"
47
+ ), u = v, a = r(""), n = r([]), m = r(null), c = r(!1), o = r(!1), y = r(null), B = k(() => n.value.length);
45
48
  F(() => {
46
49
  m.value = Q({ delay: 300 }, t.onInputChangeCb);
47
50
  });
package/dist/index.js CHANGED
@@ -9,9 +9,9 @@ import { _ } from "./chunks/BaseTab.vue_vue_type_script_setup_true_lang.Cu67jd8K
9
9
  import { _ as S } from "./chunks/BaseTabView.vue_vue_type_script_setup_true_lang.Ar2KNVYH.js";
10
10
  import { _ as g } from "./chunks/RadioButton.vue_vue_type_script_setup_true_lang.CiJAhkRj.js";
11
11
  import { _ as h } from "./chunks/RadioGroup.vue_vue_type_script_setup_true_lang.BalzO73O.js";
12
- import { _ as I } from "./chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.CfwgKf93.js";
12
+ import { _ as I } from "./chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.ClV6kObA.js";
13
13
  import { _ as w } from "./chunks/BaseAlert.vue_vue_type_style_index_0_lang.BtqP_iYL.js";
14
- import { _ as k } from "./chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.i1drmEOH.js";
14
+ import { _ as k } from "./chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.CCR6X0si.js";
15
15
  import { _ as v } from "./chunks/BaseBadge.vue_vue_type_style_index_0_lang.BOA1gBKu.js";
16
16
  import { _ as G } from "./chunks/BaseButton.vue_vue_type_script_setup_true_lang.BWZPE2Gf.js";
17
17
  import { default as O } from "./BaseCard.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/components",
3
- "version": "2.0.14",
3
+ "version": "2.0.16",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",