@wikicasa-dev/components 2.2.8-alpha.7 → 2.2.8-alpha.9

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-controller.css';/* empty css */
2
+ import '../assets/swiper-autoplay.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-controller.css';/* empty css */
2
+ import '../assets/swiper-autoplay.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-controller.css';/* empty css */
2
+ import '../assets/swiper-autoplay.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-controller.css';/* empty css */
2
+ import '../assets/swiper-autoplay.css';/* empty css */
3
3
  export {
4
4
  p as Thumbs
5
5
  };
@@ -1,25 +1,25 @@
1
1
  import { AccessibleSelectOptions } from '../AccessibleSelect';
2
2
  import { ClassTypeProp } from '../types';
3
3
  import { Nullable } from '@wikicasa-dev/types';
4
- export interface ClearableAutocompleteProps<T, LabelID extends string | number | undefined> {
4
+ export interface ClearableAutocompleteProps<TID extends string | number | undefined, TPayload> {
5
5
  dataCy?: string;
6
6
  triggerWrapperClasses?: ClassTypeProp;
7
7
  inputWrapperClasses?: ClassTypeProp;
8
8
  dropdownClasses?: ClassTypeProp;
9
9
  clearButtonClasses?: ClassTypeProp;
10
10
  keepState?: Nullable<"closed" | "open">;
11
- onInputChangeCb: (v: string) => Promise<AccessibleSelectOptions<T, LabelID>[]>;
12
- onOptionSelectedCb?: Nullable<(v: AccessibleSelectOptions<T, LabelID>) => void>;
11
+ onInputChangeCb: (v: string) => Promise<AccessibleSelectOptions<TPayload, TID>[]>;
12
+ onOptionSelectedCb?: Nullable<(v: AccessibleSelectOptions<TPayload, TID>) => void>;
13
13
  }
14
- 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<{
14
+ 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<{
15
15
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
16
- readonly "onUpdate:modelValue"?: ((value: Nullable<AccessibleSelectOptions<T, LabelID>>) => any) | undefined;
16
+ readonly "onUpdate:modelValue"?: ((value: Nullable<AccessibleSelectOptions<TPayload, TID>>) => any) | undefined;
17
17
  readonly onClick?: (() => any) | undefined;
18
18
  readonly "onUpdate:open"?: ((value: boolean) => any) | undefined;
19
19
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onClick" | "onUpdate:open"> & ({
20
20
  open?: boolean;
21
- modelValue?: Nullable<AccessibleSelectOptions<T, LabelID>>;
22
- } & ClearableAutocompleteProps<T, LabelID>) & Partial<{}>> & import('vue').PublicProps;
21
+ modelValue?: Nullable<AccessibleSelectOptions<TPayload, TID>>;
22
+ } & ClearableAutocompleteProps<TID, TPayload>) & Partial<{}>> & import('vue').PublicProps;
23
23
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
24
24
  attrs: any;
25
25
  slots: {
@@ -27,11 +27,11 @@ declare const _default: <T, LabelID extends string | number | undefined>(__VLS_p
27
27
  'clear-icon'?(_: {}): any;
28
28
  'right-icon'?(_: {}): any;
29
29
  'option-content'?(_: {
30
- option: AccessibleSelectOptions<T, LabelID>;
30
+ option: AccessibleSelectOptions<TPayload, TID>;
31
31
  idx: number;
32
32
  }): any;
33
33
  };
34
- emit: ((evt: "click") => void) & (((evt: "update:modelValue", value: Nullable<AccessibleSelectOptions<T, LabelID>>) => void) & ((evt: "update:open", value: boolean) => void));
34
+ emit: ((evt: "click") => void) & (((evt: "update:modelValue", value: Nullable<AccessibleSelectOptions<TPayload, TID>>) => void) & ((evt: "update:open", value: boolean) => void));
35
35
  }>) => import('vue').VNode & {
36
36
  __ctx?: Awaited<typeof __VLS_setup>;
37
37
  };
@@ -2,23 +2,23 @@ import { Nullable } from '@wikicasa-dev/types';
2
2
  import { AccessibleSelectOptions } from './AccessibleSelect';
3
3
  import { ClassTypeProp } from './types';
4
4
  export type BaseAutocompleteThemes = "empty" | "bordered" | "all-bordered" | "all-bordered-thick" | "";
5
- 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<{
5
+ 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<{
6
6
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
7
- readonly "onUpdate:modelValue"?: ((value: AccessibleSelectOptions<T, LabelID> | undefined) => any) | undefined;
7
+ readonly "onUpdate:modelValue"?: ((value: AccessibleSelectOptions<TPayload, TID> | undefined) => any) | undefined;
8
8
  readonly onClick?: (() => any) | undefined;
9
9
  readonly "onUpdate:dropdownState"?: ((args_0: boolean) => any) | undefined;
10
10
  readonly onKeydown?: ((args_0: KeyboardEvent) => any) | undefined;
11
11
  readonly onKeydownEnterPressed?: (() => any) | undefined;
12
12
  readonly onChangedValue?: ((args_0: string) => any) | undefined;
13
13
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onClick" | "onKeydown" | "onUpdate:dropdownState" | "onKeydownEnterPressed" | "onChangedValue"> & ({
14
- modelValue?: AccessibleSelectOptions<T, LabelID> | undefined;
14
+ modelValue?: AccessibleSelectOptions<TPayload, TID> | undefined;
15
15
  } & {
16
16
  isValid?: Nullable<boolean>;
17
17
  theme?: BaseAutocompleteThemes;
18
18
  label?: string;
19
19
  disableCb?: boolean;
20
- onInputChangeCb: (v: string) => Promise<AccessibleSelectOptions<T, LabelID>[]>;
21
- onOptionSelectedCb?: Nullable<(v: AccessibleSelectOptions<T, LabelID>) => void>;
20
+ onInputChangeCb: (v: string) => Promise<AccessibleSelectOptions<TPayload, TID>[]>;
21
+ onOptionSelectedCb?: Nullable<(v: AccessibleSelectOptions<TPayload, TID>) => void>;
22
22
  keepState?: Nullable<"closed" | "open">;
23
23
  cleanupOnClose?: boolean;
24
24
  dropdownClasses?: string;
@@ -40,11 +40,11 @@ declare const _default: <T, LabelID extends string | number | undefined>(__VLS_p
40
40
  handleClean: () => void;
41
41
  }): any;
42
42
  'option-content'?(_: {
43
- option: import('@vue/reactivity').UnwrapRefSimple<AccessibleSelectOptions<T, LabelID>>;
43
+ option: import('@vue/reactivity').UnwrapRefSimple<AccessibleSelectOptions<TPayload, TID>>;
44
44
  idx: number;
45
45
  }): any;
46
46
  };
47
- emit: (((evt: "click") => void) & ((evt: "update:dropdownState", args_0: boolean) => void) & ((evt: "keydown", args_0: KeyboardEvent) => void) & ((evt: "keydownEnterPressed") => void) & ((evt: "changedValue", args_0: string) => void)) & ((evt: "update:modelValue", value: AccessibleSelectOptions<T, LabelID> | undefined) => void);
47
+ emit: (((evt: "click") => void) & ((evt: "update:dropdownState", args_0: boolean) => void) & ((evt: "keydown", args_0: KeyboardEvent) => void) & ((evt: "keydownEnterPressed") => void) & ((evt: "changedValue", args_0: string) => void)) & ((evt: "update:modelValue", value: AccessibleSelectOptions<TPayload, TID> | undefined) => void);
48
48
  }>) => import('vue').VNode & {
49
49
  __ctx?: Awaited<typeof __VLS_setup>;
50
50
  };
@@ -31,10 +31,7 @@ const Q = ["innerHTML"], ne = /* @__PURE__ */ x({
31
31
  }),
32
32
  emits: /* @__PURE__ */ $(["update:dropdownState", "changedValue", "click", "keydown", "keydownEnterPressed"], ["update:modelValue"]),
33
33
  setup(t, { expose: S, emit: V }) {
34
- const u = F(
35
- t,
36
- "modelValue"
37
- ), r = V, i = d(""), a = d([]), v = d(null), b = d(!1), n = d(!1), C = d(null), B = k(() => a.value.length);
34
+ const u = F(t, "modelValue"), r = V, i = d(""), a = d([]), v = d(null), b = d(!1), n = d(!1), C = d(null), B = k(() => a.value.length);
38
35
  L(() => {
39
36
  v.value = q({ delay: 300 }, t.onInputChangeCb);
40
37
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/components",
3
- "version": "2.2.8-alpha.7",
3
+ "version": "2.2.8-alpha.9",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",