eco-vue-js 0.7.2 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. package/dist/components/Button/WButtonGroup.vue.d.ts +5 -4
  2. package/dist/components/Button/WButtonGroup.vue.d.ts.map +1 -1
  3. package/dist/components/Button/WButtonGroup.vue.js +12 -4
  4. package/dist/components/Button/types.d.ts +17 -6
  5. package/dist/components/Button/types.d.ts.map +1 -1
  6. package/dist/components/Form/WFormValidator.vue.d.ts.map +1 -1
  7. package/dist/components/Form/WFormValidator.vue.js +3 -4
  8. package/dist/components/FormAsync/WFormAsyncButtonGroup.vue.d.ts +25 -0
  9. package/dist/components/FormAsync/WFormAsyncButtonGroup.vue.d.ts.map +1 -0
  10. package/dist/components/FormAsync/WFormAsyncButtonGroup.vue.js +101 -0
  11. package/dist/components/FormAsync/WFormAsyncButtonGroup.vue2.js +5 -0
  12. package/dist/components/FormAsync/WFormAsyncInput.vue.d.ts +26 -0
  13. package/dist/components/FormAsync/WFormAsyncInput.vue.d.ts.map +1 -0
  14. package/dist/components/FormAsync/WFormAsyncInput.vue.js +131 -0
  15. package/dist/components/FormAsync/WFormAsyncInput.vue2.js +5 -0
  16. package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.d.ts +27 -0
  17. package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.d.ts.map +1 -0
  18. package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.js +139 -0
  19. package/dist/components/FormAsync/WFormAsyncSelectSingle.vue2.js +5 -0
  20. package/dist/components/FormAsync/WFormAsyncToggle.vue.d.ts +22 -0
  21. package/dist/components/FormAsync/WFormAsyncToggle.vue.d.ts.map +1 -0
  22. package/dist/components/FormAsync/WFormAsyncToggle.vue.js +89 -0
  23. package/dist/components/FormAsync/WFormAsyncToggle.vue2.js +5 -0
  24. package/dist/components/FormAsync/types.d.ts +85 -0
  25. package/dist/components/FormAsync/types.d.ts.map +1 -0
  26. package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +3 -3
  27. package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
  28. package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts +3 -3
  29. package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts.map +1 -1
  30. package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts +6 -6
  31. package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
  32. package/dist/components/List/WList.vue.d.ts +2 -2
  33. package/dist/components/List/WList.vue.d.ts.map +1 -1
  34. package/dist/components/List/WList.vue.js +2 -2
  35. package/dist/components/Select/WSelect.vue.d.ts +12 -13
  36. package/dist/components/Select/WSelect.vue.d.ts.map +1 -1
  37. package/dist/components/Select/WSelect.vue.js +44 -33
  38. package/dist/components/Select/WSelectAsync.vue.d.ts +4 -5
  39. package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
  40. package/dist/components/Select/WSelectAsync.vue.js +20 -15
  41. package/dist/components/Select/WSelectAsyncList.vue.d.ts +3 -3
  42. package/dist/components/Select/WSelectAsyncList.vue.d.ts.map +1 -1
  43. package/dist/components/Select/WSelectAsyncSingle.vue.d.ts +2 -5
  44. package/dist/components/Select/WSelectAsyncSingle.vue.d.ts.map +1 -1
  45. package/dist/components/Select/WSelectAsyncSingle.vue.js +4 -7
  46. package/dist/components/Select/WSelectSingle.vue.d.ts +8 -8
  47. package/dist/components/Select/WSelectSingle.vue.d.ts.map +1 -1
  48. package/dist/components/Select/WSelectSingle.vue.js +3 -2
  49. package/dist/components/Select/components/SelectAsyncList.vue.d.ts +3 -3
  50. package/dist/components/Select/components/SelectAsyncList.vue.d.ts.map +1 -1
  51. package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts +4 -2
  52. package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts.map +1 -1
  53. package/dist/components/Select/components/SelectAsyncPrefix.vue.js +2 -1
  54. package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts +4 -2
  55. package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts.map +1 -1
  56. package/dist/components/Select/components/SelectAsyncPrefixPage.vue.js +4 -2
  57. package/dist/components/Select/components/SelectOptionPrefix.vue.d.ts +2 -2
  58. package/dist/components/Select/components/SelectOptionPrefix.vue.d.ts.map +1 -1
  59. package/dist/components/Select/components/SelectOptionPrefix.vue.js +3 -1
  60. package/dist/components/Select/types.d.ts +22 -20
  61. package/dist/components/Select/types.d.ts.map +1 -1
  62. package/dist/components/Tabs/WTabs.vue.d.ts +2 -2
  63. package/dist/components/Tabs/WTabs.vue.d.ts.map +1 -1
  64. package/dist/components/Tabs/WTabs.vue.js +3 -3
  65. package/dist/components/Toggle/WToggle.vue.d.ts +3 -12
  66. package/dist/components/Toggle/WToggle.vue.d.ts.map +1 -1
  67. package/dist/components/Toggle/WToggle.vue.js +3 -1
  68. package/dist/components/Toggle/types.d.ts +13 -0
  69. package/dist/components/Toggle/types.d.ts.map +1 -0
  70. package/dist/imports/componentsPlugin.d.ts +5 -1
  71. package/dist/imports/componentsPlugin.d.ts.map +1 -1
  72. package/dist/main.d.ts +3 -0
  73. package/dist/main.d.ts.map +1 -1
  74. package/dist/main.js +8 -1
  75. package/dist/types/global.d.ts +98 -10
  76. package/dist/utils/api.d.ts +16 -0
  77. package/dist/utils/api.d.ts.map +1 -0
  78. package/dist/utils/api.js +28 -0
  79. package/dist/utils/useDefaultQuery.d.ts +2 -1
  80. package/dist/utils/useDefaultQuery.d.ts.map +1 -1
  81. package/dist/utils/useQueryUpdater.d.ts +12 -0
  82. package/dist/utils/useQueryUpdater.d.ts.map +1 -0
  83. package/dist/utils/useQueryUpdater.js +56 -0
  84. package/dist/utils/utils.d.ts +2 -0
  85. package/dist/utils/utils.d.ts.map +1 -1
  86. package/dist/utils/utils.js +13 -1
  87. package/dist/utils/validate.d.ts +2 -0
  88. package/dist/utils/validate.d.ts.map +1 -0
  89. package/dist/utils/validate.js +3 -0
  90. package/package.json +28 -1
@@ -0,0 +1,22 @@
1
+ import { FormAsyncToggleProps } from './types';
2
+
3
+ declare const _default: <Model, FieldType extends boolean | null, QueryParams>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
5
+ onSuccess?: ((value: Model) => any) | undefined;
6
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{}>> & {
7
+ onSuccess?: ((value: Model) => any) | undefined;
8
+ }, never>, "onSuccess"> & FormAsyncToggleProps<Model, FieldType, QueryParams>> & import('vue').PublicProps;
9
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
10
+ attrs: any;
11
+ slots: ReturnType<() => {}>;
12
+ emit: ((e: "success", value: Model) => void) & {};
13
+ }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
14
+ [key: string]: any;
15
+ }> & {
16
+ __ctx?: Awaited<typeof __VLS_setup>;
17
+ };
18
+ export default _default;
19
+ type __VLS_Prettify<T> = {
20
+ [K in keyof T]: T[K];
21
+ } & {};
22
+ //# sourceMappingURL=WFormAsyncToggle.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WFormAsyncToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/FormAsync/WFormAsyncToggle.vue"],"names":[],"mappings":"AAsGA,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,SAAS,CAAA;yBAIhC,KAAK,EAAE,SAAS,SAAS,OAAO,GAAG,IAAI,EAAE,WAAW,eACvD,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBACvF,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAuKxD,cAAc,CAAC;;;;iFAAyD,CAAC,4BAA2B;oBAC3F,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;WACH,UAAU,UAAuB;UAClC,KAlKH,SAAS,SAAS,KAAK,KAAG,IAAI,MAkKO;;;;YAGC,OAAO,CAAC,OAAO,WAAW,CAAC;;AAjLvE,wBAiL4E;AAM5E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -0,0 +1,89 @@
1
+ import { defineComponent, toRef, ref, computed, onBeforeUnmount, openBlock, createBlock, mergeProps, unref } from 'vue';
2
+ import _sfc_main$1 from '../Toggle/WToggle.vue.js';
3
+ import { Notify } from '../../utils/Notify.js';
4
+ import { Modal } from '../../utils/Modal.js';
5
+ import { handleApiError } from '../../utils/api.js';
6
+ import { get, set } from '../../utils/utils.js';
7
+
8
+ const _sfc_main = /* @__PURE__ */ defineComponent({
9
+ __name: "WFormAsyncToggle",
10
+ props: {
11
+ useQueryFn: {},
12
+ noParams: { type: Boolean },
13
+ queryParams: {},
14
+ queryEnabled: { type: Boolean },
15
+ field: {},
16
+ apiMethod: { type: Function },
17
+ confimGetter: { type: Function },
18
+ validate: {},
19
+ negate: { type: Boolean },
20
+ title: {},
21
+ small: { type: Boolean },
22
+ disabled: { type: Boolean },
23
+ loading: { type: Boolean },
24
+ readonly: { type: Boolean },
25
+ rightLabel: { type: Boolean },
26
+ noMargin: { type: Boolean },
27
+ description: {},
28
+ intermediate: { type: Boolean }
29
+ },
30
+ emits: ["success"],
31
+ setup(__props, { emit: __emit }) {
32
+ const props = __props;
33
+ const emit = __emit;
34
+ const { data, setData, isLoadingError } = props.noParams === true ? props.useQueryFn({ enabled: toRef(props, "queryEnabled") }) : props.useQueryFn(toRef(props, "queryParams"), { enabled: toRef(props, "queryEnabled") });
35
+ const loading = ref(false);
36
+ const modelValue = computed(() => get(data.value ?? {}, props.field) ?? null);
37
+ const save = (value) => {
38
+ if (loading.value) return;
39
+ const errorMessage = Array.isArray(props.validate) ? props.validate.map((item) => item(value)).join(", ") : props.validate?.(value);
40
+ if (errorMessage) {
41
+ Notify.warn({
42
+ title: "Error",
43
+ caption: errorMessage
44
+ });
45
+ return;
46
+ }
47
+ loading.value = true;
48
+ props.apiMethod(set({}, props.field, value)).then((response) => {
49
+ setData(response.data);
50
+ Notify.success({ title: "Saved" });
51
+ emit("success", response.data);
52
+ }).catch((error) => handleApiError(error, void 0, props.field)).finally(() => {
53
+ loading.value = false;
54
+ });
55
+ };
56
+ let closeModal = null;
57
+ const showModal = (value) => {
58
+ closeModal?.();
59
+ const confirmProps = props.confimGetter?.(value);
60
+ if (!confirmProps) {
61
+ save(value);
62
+ return;
63
+ }
64
+ closeModal = Modal.addConfirm({
65
+ ...confirmProps,
66
+ onAccept: () => {
67
+ return save(value);
68
+ }
69
+ }, () => closeModal = null);
70
+ };
71
+ onBeforeUnmount(() => {
72
+ closeModal?.();
73
+ closeModal = null;
74
+ });
75
+ return (_ctx, _cache) => {
76
+ return openBlock(), createBlock(_sfc_main$1, mergeProps({
77
+ ...props,
78
+ modelValue: modelValue.value === null ? null : _ctx.negate ? !modelValue.value : modelValue.value,
79
+ loading: loading.value || !unref(data),
80
+ disabled: !unref(data) || unref(isLoadingError) || _ctx.disabled,
81
+ intermediate: _ctx.intermediate && unref(data) !== void 0
82
+ }, {
83
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => showModal($event === null ? null : props.negate ? !$event : $event))
84
+ }), null, 16);
85
+ };
86
+ }
87
+ });
88
+
89
+ export { _sfc_main as default };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './WFormAsyncToggle.vue.js';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -0,0 +1,85 @@
1
+ import { InputAsyncProps } from '../Input/types';
2
+ import { ToggleProps } from '../Toggle/types';
3
+ import { SelectOptionComponent, SelectSingleProps } from '../Select/types';
4
+ import { ButtonGroupProps } from '../Button/types';
5
+
6
+ interface FormAsyncInputBaseProps<Model, FieldType extends string | number> extends Omit<InputAsyncProps<FieldType extends number ? 'number' : Exclude<InputType, 'number'>>, 'modelValue' | 'placeholderSecure'> {
7
+ queryEnabled?: boolean;
8
+ field: keyof ObjectPaths<Model, FieldType, true>;
9
+ apiMethod: (payload: PartialNested<Model>) => Promise<RequestResponse<Model>>;
10
+ confimGetter?: (value: FieldType) => ConfirmProps | undefined;
11
+ }
12
+ interface FormAsyncInputPropsWithParams<Model, FieldType extends string | number, QueryParams> extends FormAsyncInputBaseProps<Model, FieldType> {
13
+ useQueryFn: UseQueryWithParams<Model, QueryParams>;
14
+ noParams?: never;
15
+ queryParams: QueryParams;
16
+ }
17
+ interface FormAsyncInputPropsWithoutParams<Model, FieldType extends string | number> extends FormAsyncInputBaseProps<Model, FieldType> {
18
+ useQueryFn: UseQueryEmpty<Model>;
19
+ noParams: true;
20
+ queryParams?: never;
21
+ }
22
+ export type FormAsyncInputProps<Model, FieldType extends string | number, QueryParams> = FormAsyncInputPropsWithParams<Model, FieldType, QueryParams> | FormAsyncInputPropsWithoutParams<Model, FieldType>;
23
+ interface FormAsyncToggleBaseProps<Model, FieldType extends boolean | null> extends Omit<ToggleProps<FieldType>, 'modelValue'> {
24
+ queryEnabled?: boolean;
25
+ field: keyof ObjectPaths<Model, FieldType, true>;
26
+ apiMethod: (payload: PartialNested<Model>) => Promise<RequestResponse<Model>>;
27
+ confimGetter?: (payload: FieldType) => ConfirmProps | undefined;
28
+ validate?: ValidateFn | ValidateFn[];
29
+ negate?: boolean;
30
+ }
31
+ interface FormAsyncTogglePropsWithParams<Model, FieldType extends boolean | null, QueryParams> extends FormAsyncToggleBaseProps<Model, FieldType> {
32
+ useQueryFn: UseQueryWithParams<Model, QueryParams>;
33
+ noParams?: never;
34
+ queryParams: QueryParams;
35
+ }
36
+ interface FormAsyncTogglePropsWithoutParams<Model, FieldType extends boolean | null> extends FormAsyncToggleBaseProps<Model, FieldType> {
37
+ useQueryFn: UseQueryEmpty<Model>;
38
+ noParams: true;
39
+ queryParams?: never;
40
+ }
41
+ export type FormAsyncToggleProps<Model, FieldType extends boolean | null, QueryParams> = FormAsyncTogglePropsWithParams<Model, FieldType, QueryParams> | FormAsyncTogglePropsWithoutParams<Model, FieldType>;
42
+ interface FormAsyncSelectSingleBaseProps<Model, FieldType extends string | number, Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>, AllowClear extends boolean = false> extends Omit<SelectSingleProps<FieldType, Data, OptionComponent, AllowClear>, 'modelValue'> {
43
+ queryEnabled?: boolean;
44
+ field: keyof ObjectPaths<Model, FieldType, true>;
45
+ apiMethod: (payload: PartialNested<Model>) => Promise<RequestResponse<Model>>;
46
+ confimGetter?: (value: FieldType) => ConfirmProps | undefined;
47
+ }
48
+ interface FormAsyncSelectSinglePropsWithParams<Model, FieldType extends string | number, QueryParams, Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>, AllowClear extends boolean = false> extends FormAsyncSelectSingleBaseProps<Model, FieldType, Data, OptionComponent, AllowClear> {
49
+ useQueryFn: UseQueryWithParams<Model, QueryParams>;
50
+ noParams?: never;
51
+ queryParams: QueryParams;
52
+ }
53
+ interface FormAsyncSelectSinglePropsWithoutParams<Model, FieldType extends string | number, Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>, AllowClear extends boolean = false> extends FormAsyncSelectSingleBaseProps<Model, FieldType, Data, OptionComponent, AllowClear> {
54
+ useQueryFn: UseQueryEmpty<Model>;
55
+ noParams: true;
56
+ queryParams?: never;
57
+ }
58
+ export type FormAsyncSelectProps<Model, FieldType extends string | number, QueryParams, Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>, AllowClear extends boolean = false> = FormAsyncSelectSinglePropsWithParams<Model, FieldType, QueryParams, Data, OptionComponent, AllowClear> | FormAsyncSelectSinglePropsWithoutParams<Model, FieldType, Data, OptionComponent, AllowClear>;
59
+ interface FormAsyncButtonGroupBaseProps<Model, FieldType extends string | number | boolean | null, Entity extends Record<string, unknown>, ValueGetter extends {
60
+ fn(value: Entity): FieldType;
61
+ }['fn'] | undefined = undefined> extends Omit<ButtonGroupProps<FieldType, Entity, ValueGetter>, 'modelValue' | 'loading'> {
62
+ queryEnabled?: boolean;
63
+ field: keyof ObjectPaths<Model, FieldType, true>;
64
+ apiMethod: (payload: PartialNested<Model>) => Promise<RequestResponse<Model>>;
65
+ confimGetter?: (value: FieldType) => ConfirmProps | undefined;
66
+ }
67
+ interface FormAsyncButtonGroupPropsWithParams<Model, FieldType extends string | number | boolean | null, QueryParams, Entity extends Record<string, unknown>, ValueGetter extends {
68
+ fn(value: Entity): FieldType;
69
+ }['fn'] | undefined = undefined> extends FormAsyncButtonGroupBaseProps<Model, FieldType, Entity, ValueGetter> {
70
+ useQueryFn: UseQueryWithParams<Model, QueryParams>;
71
+ noParams?: never;
72
+ queryParams: QueryParams;
73
+ }
74
+ interface FormAsyncButtonGroupPropsWithoutParams<Model, FieldType extends string | number | boolean | null, Entity extends Record<string, unknown>, ValueGetter extends {
75
+ fn(value: Entity): FieldType;
76
+ }['fn'] | undefined = undefined> extends FormAsyncButtonGroupBaseProps<Model, FieldType, Entity, ValueGetter> {
77
+ useQueryFn: UseQueryEmpty<Model>;
78
+ noParams: true;
79
+ queryParams?: never;
80
+ }
81
+ export type FormAsyncButtonGroupProps<Model, FieldType extends string | number | boolean | null, QueryParams, Entity extends Record<string, unknown>, ValueGetter extends {
82
+ fn(value: Entity): FieldType;
83
+ }['fn'] | undefined = undefined> = FormAsyncButtonGroupPropsWithParams<Model, FieldType, QueryParams, Entity, ValueGetter> | FormAsyncButtonGroupPropsWithoutParams<Model, FieldType, Entity, ValueGetter>;
84
+ export {};
85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K,CAAC,CAAA;IAChC,QAAQ,EAAE,IAAI,CAAA;IACd,WAAW,CAAC,EAAE,KAAK,CAAA;CACpB;AAED,MAAM,MAAM,yBAAyB,CACnC,KAAK,EACL,SAAS,SAAS,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,EAClD,WAAW,EACX,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACtC,WAAW,SAAS;IAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;CAAC,CAAC,IAAI,CAAC,GAAG,SAAS,GAAG,SAAS,IAC9E,mCAAmC,CAAC,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,WAAW,CAAC,GAAG,sCAAsC,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,CAAC,CAAA"}
@@ -1,4 +1,4 @@
1
- declare const _default: <Model extends number | string, Data extends DefaultData, ApiError, QueryParams>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
1
+ declare const _default: <Model extends number | string, Data extends DefaultData, QueryParams>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
2
  props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
3
3
  onSelect?: ((values: Model[]) => any) | undefined;
4
4
  "onUpdate:count"?: ((value: number) => any) | undefined;
@@ -14,7 +14,7 @@ declare const _default: <Model extends number | string, Data extends DefaultData
14
14
  "onSelect-reverse"?: ((values: Model[]) => any) | undefined;
15
15
  "onSelect-range"?: ((value: SelectedRange<Model>) => any) | undefined;
16
16
  }, never>, "onSelect" | "onUpdate:count" | "onUpdate:page" | "onUpdate:header-padding" | "onSelect-reverse" | "onSelect-range"> & {
17
- useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
17
+ useQueryFn: UseQueryPaginated<Data, QueryParams>;
18
18
  isInvalidPage: (error: unknown) => boolean;
19
19
  queryParams: QueryParams;
20
20
  skeletonLength?: number;
@@ -33,7 +33,7 @@ declare const _default: <Model extends number | string, Data extends DefaultData
33
33
  pageClass?: string;
34
34
  maxPages?: number;
35
35
  refetchInterval?: number | false;
36
- queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
36
+ queryOptions?: Partial<Parameters<UseQueryPaginated<Data, QueryParams>>[1]>;
37
37
  pageLength?: number;
38
38
  count?: number;
39
39
  allowSelect?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"WInfiniteList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteList.vue"],"names":[],"mappings":"yBAoQiB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,QAAQ,EAAE,WAAW,eACjF,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBACvF,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAmYxD,cAAc,CAAC;;;;;;;;;;;;;;;oBA/XT,iBAAiB,CAAC,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC;uBAC3C,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO;qBAC7B,WAAW;yBACP,MAAM;wBACP,OAAO;uBACR,MAAM;2BACF,OAAO;eACnB,OAAO;gBACN,OAAO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CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- declare const _default: <Model extends number | string, Data extends DefaultData, ApiError, QueryParams>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
1
+ declare const _default: <Model extends number | string, Data extends DefaultData, QueryParams>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
2
  props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
3
3
  "onUpdate:count"?: ((value: number) => any) | undefined;
4
4
  "onUpdate:selected"?: ((values: Model[]) => any) | undefined;
@@ -8,7 +8,7 @@ declare const _default: <Model extends number | string, Data extends DefaultData
8
8
  "onUpdate:selected"?: ((values: Model[]) => any) | undefined;
9
9
  "onUpdate:page"?: ((value: number | undefined) => any) | undefined;
10
10
  }, never>, "onUpdate:count" | "onUpdate:selected" | "onUpdate:page"> & {
11
- useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
11
+ useQueryFn: UseQueryPaginated<Data, QueryParams>;
12
12
  isInvalidPage: (error: unknown) => boolean;
13
13
  queryParams: QueryParams;
14
14
  skeletonLength?: number;
@@ -28,7 +28,7 @@ declare const _default: <Model extends number | string, Data extends DefaultData
28
28
  pageClass?: string;
29
29
  maxPages?: number;
30
30
  refetchInterval?: number | false;
31
- queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
31
+ queryOptions?: Partial<Parameters<UseQueryPaginated<Data, QueryParams>>[1]>;
32
32
  selected?: Model[];
33
33
  valueGetter: (data: Data) => Model;
34
34
  selectOnly?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"WInfiniteListPages.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteListPages.vue"],"names":[],"mappings":"yBAgUiB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,QAAQ,EAAE,WAAW,eACjF,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBACvF,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA0kBxD,cAAc,CAAC;;;;;;;;;oBAtkBT,iBAAiB,CAAC,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC;uBAC3C,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO;qBAC7B,WAAW;yBACP,MAAM;wBACP,OAAO;2BACJ,OAAO;eACnB,OAAO;gBACN,OAAO;qBACF,OAAO;qBACP,MAAM;2BACA,OAAO,GAAG,IAAI;oBACrB,MAAM;uBACH,MAAM;oBACT,OAAO;oBACP,OAAO;wBACH,CAAC,MAAM,WAAW,CAAC,EAAE;oBACzB,MAAM;oBACN,MAAM;mBACP,MAAM;0BACC,MAAM,GAAG,KAAK;uBACjB,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;mBAE1E,KAAK,EAAE;qBACL,CAAC,IAAI,EAAE,IAAI,KAAK,KAAK;qBACrB,OAAO;uBACL,OAAO;2BACH,OAAO;6BACL,OAAO;KA2iBkD,CAAC,4BAA2B;oBAC3F,OAAO,KAAK,EAAE,gBAAgB;;0CA7aP,MAAM;MA6auB,GAAG,IAA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CAAC"}
1
+ {"version":3,"file":"WInfiniteListPages.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteListPages.vue"],"names":[],"mappings":"yBAgUiB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,eACvE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBACvF,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA0kBxD,cAAc,CAAC;;;;;;;;;oBAtkBT,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC;uBACjC,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO;qBAC7B,WAAW;yBACP,MAAM;wBACP,OAAO;2BACJ,OAAO;eACnB,OAAO;gBACN,OAAO;qBACF,OAAO;qBACP,MAAM;2BACA,OAAO,GAAG,IAAI;oBACrB,MAAM;uBACH,MAAM;oBACT,OAAO;oBACP,OAAO;wBACH,CAAC,MAAM,WAAW,CAAC,EAAE;oBACzB,MAAM;oBACN,MAAM;mBACP,MAAM;0BACC,MAAM,GAAG,KAAK;uBACjB,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;mBAEhE,KAAK,EAAE;qBACL,CAAC,IAAI,EAAE,IAAI,KAAK,KAAK;qBACrB,OAAO;uBACL,OAAO;2BACH,OAAO;6BACL,OAAO;KA2iBkD,CAAC,4BAA2B;oBAC3F,OAAO,KAAK,EAAE,gBAAgB;;0CA7aP,MAAM;MA6auB,GAAG,IAAI;WACpE,GAAG;WACH,UAAU;kBAzXR,CAAC,KAAK,EAAE;YAChB,IAAI,EAAE,IAAI,C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VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
1
+ declare const _default: <Model extends number | string, Data extends DefaultData, QueryParams>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
2
  props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
3
3
  "onUpdate:count"?: ((value: number) => any) | undefined;
4
4
  "onUpdate:selected"?: ((values: Model[]) => any) | undefined;
5
+ onRefetch?: (() => any) | undefined;
5
6
  "onUpdate:pages-count"?: ((value: number) => any) | undefined;
6
7
  "onUpdate:next-page"?: ((value: number | null) => any) | undefined;
7
8
  "onUpdate:previous-page"?: ((value: number | null) => any) | undefined;
8
9
  "onUpdate:scroll"?: ((value: number) => any) | undefined;
9
10
  "onRemove:page"?: ((value: number) => any) | undefined;
10
- onRefetch?: (() => any) | undefined;
11
11
  "onUpdate-from-header:scroll"?: (() => any) | undefined;
12
12
  onFetched?: (() => any) | undefined;
13
13
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{}>> & {
14
14
  "onUpdate:count"?: ((value: number) => any) | undefined;
15
15
  "onUpdate:selected"?: ((values: Model[]) => any) | undefined;
16
+ onRefetch?: (() => any) | undefined;
16
17
  "onUpdate:pages-count"?: ((value: number) => any) | undefined;
17
18
  "onUpdate:next-page"?: ((value: number | null) => any) | undefined;
18
19
  "onUpdate:previous-page"?: ((value: number | null) => any) | undefined;
19
20
  "onUpdate:scroll"?: ((value: number) => any) | undefined;
20
21
  "onRemove:page"?: ((value: number) => any) | undefined;
21
- onRefetch?: (() => any) | undefined;
22
22
  "onUpdate-from-header:scroll"?: (() => any) | undefined;
23
23
  onFetched?: (() => any) | undefined;
24
- }, never>, "onUpdate:count" | "onUpdate:selected" | "onUpdate:pages-count" | "onUpdate:next-page" | "onUpdate:previous-page" | "onUpdate:scroll" | "onRemove:page" | "onRefetch" | "onUpdate-from-header:scroll" | "onFetched"> & {
24
+ }, never>, "onUpdate:count" | "onUpdate:selected" | "onRefetch" | "onUpdate:pages-count" | "onUpdate:next-page" | "onUpdate:previous-page" | "onUpdate:scroll" | "onRemove:page" | "onUpdate-from-header:scroll" | "onFetched"> & {
25
25
  queryParams: QueryParams;
26
- useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
26
+ useQueryFn: UseQueryPaginated<Data, QueryParams>;
27
27
  isInvalidPage: (error: unknown) => boolean;
28
28
  skeletonLength: number;
29
29
  firstPage: boolean;
@@ -39,7 +39,7 @@ declare const _default: <Model extends number | string, Data extends DefaultData
39
39
  pageClass?: string;
40
40
  refetchInterval?: number | false;
41
41
  scrollingElement?: Element | null;
42
- queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
42
+ queryOptions?: Partial<Parameters<UseQueryPaginated<Data, QueryParams>>[1]>;
43
43
  selected?: Model[];
44
44
  valueGetter: (data: Data) => Model;
45
45
  selectOnly?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"InfiniteListPage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPage.vue"],"names":[],"mappings":"yBA0WiB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,QAAQ,EAAE,WAAW,eACjF,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG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KAAK,EAAE;YAChB,IAAI,EAAE,IAAI,CAAA;YACV,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,KAAK,IAAI,CAAA;YAC5C,QAAQ,EAAE,OAAO,CAAA;YACjB,OAAO,EAAE,MAAM,IAAI,CAAA;YACnB,QAAQ,CAAC,EAAE,IAAI,CAAA;YACf,IAAI,CAAC,EAAE,IAAI,CAAA;YACX,KAAK,EAAE,OAAO,CAAA;YACd,IAAI,EAAE,OAAO,CAAA;YACb,IAAI,EAAE,MAAM,CAAA;YACZ,KAAK,EAAE,MAAM,CAAA;SACd,KAAK,IAAI;MAuN+B;UAClC;YArZH,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,oBAAoB,SAAS,MAAM,GAAG,IAAI;YAC1C,kBAAkB,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI;YAC/C,sBAAsB,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI;YACnD,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,aAAa,SAAS,MAAM,GAAG,IAAI;YACnC,SAAS,GAAG,IAAI;YAChB,2BAA2B,GAAG,IAAI;YAClC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;YACzC,SAAS,GAAG,IAAI;UA4YqB;;;;YAGC,OAAO,CAAC,OAAO,WAAW,CAAC;;AAxcvE,wBAwc4E;AAY5E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"InfiniteListPage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPage.vue"],"names":[],"mappings":"yBA0WiB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,eACvE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,cAAc,C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AAK,EAAE,MAAM,CAAA;SACd,KAAK,IAAI;;kBAXA,CAAC,KAAK,EAAE;YAChB,IAAI,EAAE,IAAI,CAAA;YACV,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,KAAK,IAAI,CAAA;YAC5C,QAAQ,EAAE,OAAO,CAAA;YACjB,OAAO,EAAE,MAAM,IAAI,CAAA;YACnB,QAAQ,CAAC,EAAE,IAAI,CAAA;YACf,IAAI,CAAC,EAAE,IAAI,CAAA;YACX,KAAK,EAAE,OAAO,CAAA;YACd,IAAI,EAAE,OAAO,CAAA;YACb,IAAI,EAAE,MAAM,CAAA;YACZ,KAAK,EAAE,MAAM,CAAA;SACd,KAAK,IAAI;MAuN+B;UAClC;YArZH,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,oBAAoB,SAAS,MAAM,GAAG,IAAI;YAC1C,kBAAkB,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI;YAC/C,sBAAsB,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI;YACnD,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,aAAa,SAAS,MAAM,GAAG,IAAI;YACnC,SAAS,GAAG,IAAI;YAChB,2BAA2B,GAAG,IAAI;YAClC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;YACzC,SAAS,GAAG,IAAI;UA4YqB;;;;YAGC,OAAO,CAAC,OAAO,WAAW,CAAC;;AAxcvE,wBAwc4E;AAY5E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { BulkComponent, ListField, MenuComponent } from './types';
2
2
 
3
- declare const _default: <Data extends DefaultData, ApiError, QueryParams>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ declare const _default: <Data extends DefaultData, QueryParams>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
4
  props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
5
5
  "onUpdate:header-padding"?: ((value: number) => any) | undefined;
6
6
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{}>> & {
@@ -8,7 +8,7 @@ declare const _default: <Data extends DefaultData, ApiError, QueryParams>(__VLS_
8
8
  }, never>, "onUpdate:header-padding"> & {
9
9
  count?: number;
10
10
  fields: ListField<Data, QueryParams>[];
11
- useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
11
+ useQueryFn: UseQueryPaginated<Data, QueryParams>;
12
12
  queryParams: QueryParams;
13
13
  bulkDisableMessage?: string;
14
14
  selectionTitle: string;
@@ -1 +1 @@
1
- {"version":3,"file":"WList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WList.vue"],"names":[],"mappings":"AA8MA,OAAO,KAAK,EAAC,aAAa,EAAE,SAAS,EAAE,aAAa,EAAC,MAAM,SAAS,CAAA;yBAOnD,IAAI,SAAS,WAAW,EAAE,QAAQ,EAAE,WAAW,eAClD,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBACvF,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,C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C,QAAQ,CAAC;WA0axD,cAAc,CAAC;;;;;gBAlaf,MAAM;gBACN,SAAS,CAAC,IAAI,EAAE,WAAW,CAAC,EAAE;oBAC1B,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC;qBACnC,WAAW;6BACH,MAAM;wBACX,MAAM;eACf,aAAa,CAAC,WAAW,CAAC,EAAE;cAC7B,aAAa,CAAC,IAAI,CAAC,EAAE;yBACV,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO;oBAC5B,MAAM;uBACH,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO;6BACrB,CAAC,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM;KAuZa,CAAC,4BAA2B;oBAC3F,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;WACH,UAAU,UAAuB;UAClC,KAtZH,uBAAuB,SAAS,MAAM,KAAG,IAAI,MAsZF;;;;YAGL,OAAO,CAAC,OAAO,WAAW,CAAC;;AApbvE,wBAob4E;AAM5E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -121,8 +121,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
121
121
  class: "sm-not:hidden",
122
122
  "query-params": _ctx.queryParams,
123
123
  "allow-select": allowSelect.value,
124
- "tooltip-text": _ctx.selectAllTextGetter(selectAllValue !== true, _ctx.count ?? 0),
125
- count: _ctx.count,
124
+ "tooltip-text": _ctx.selectAllTextGetter(selectAllValue !== true, _ctx.count ?? listCount.value),
125
+ count: _ctx.count ?? listCount.value,
126
126
  selection: selectAllValue,
127
127
  "onToggle:selection": _cache[2] || (_cache[2] = ($event) => $event ? unref(setSelectedReverse)([]) : unref(setSelected)([]))
128
128
  }, {
@@ -1,21 +1,19 @@
1
1
  import { SelectProps, SelectOptionComponent } from './types';
2
2
 
3
- declare const _default: <Option extends string | number, OptionComponent extends SelectOptionComponent<Option>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ declare const _default: <Model extends number | string, Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
4
  props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
5
5
  onFocus?: ((value: FocusEvent) => any) | undefined;
6
6
  onBlur?: ((value: FocusEvent) => any) | undefined;
7
- onSelect?: ((item: Option) => any) | undefined;
8
- onUnselect?: ((item: Option) => any) | undefined;
9
- "onUpdate:search"?: ((value: string) => any) | undefined;
7
+ onSelect?: ((item: Model) => any) | undefined;
8
+ onUnselect?: ((item: Model) => any) | undefined;
10
9
  "onCreate:option"?: ((value: string) => any) | undefined;
11
10
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{}>> & {
12
11
  onFocus?: ((value: FocusEvent) => any) | undefined;
13
12
  onBlur?: ((value: FocusEvent) => any) | undefined;
14
- onSelect?: ((item: Option) => any) | undefined;
15
- onUnselect?: ((item: Option) => any) | undefined;
16
- "onUpdate:search"?: ((value: string) => any) | undefined;
13
+ onSelect?: ((item: Model) => any) | undefined;
14
+ onUnselect?: ((item: Model) => any) | undefined;
17
15
  "onCreate:option"?: ((value: string) => any) | undefined;
18
- }, never>, "onFocus" | "onBlur" | "onSelect" | "onUnselect" | "onUpdate:search" | "onCreate:option"> & SelectProps<Option, OptionComponent>> & import('vue').PublicProps;
16
+ }, never>, "onFocus" | "onBlur" | "onSelect" | "onUnselect" | "onCreate:option"> & SelectProps<Model, Data, OptionComponent>> & import('vue').PublicProps;
19
17
  expose(exposed: import('vue').ShallowUnwrapRef<{
20
18
  focus: () => void;
21
19
  blur: () => void;
@@ -25,7 +23,8 @@ declare const _default: <Option extends string | number, OptionComponent extends
25
23
  title?: () => void;
26
24
  subtitle?: () => void;
27
25
  option?: (props: {
28
- option: Option | string;
26
+ option: Data | string;
27
+ index?: number;
29
28
  selected: boolean;
30
29
  model: boolean;
31
30
  }) => void;
@@ -34,16 +33,16 @@ declare const _default: <Option extends string | number, OptionComponent extends
34
33
  title?: () => void;
35
34
  subtitle?: () => void;
36
35
  option?: (props: {
37
- option: Option | string;
36
+ option: Data | string;
37
+ index?: number;
38
38
  selected: boolean;
39
39
  model: boolean;
40
40
  }) => void;
41
41
  right?: () => void;
42
42
  }>;
43
43
  emit: {
44
- (e: "select", item: Option): void;
45
- (e: "unselect", item: Option): void;
46
- (e: "update:search", value: string): void;
44
+ (e: "select", item: Model): void;
45
+ (e: "unselect", item: Model): void;
47
46
  (e: "create:option", value: string): void;
48
47
  (e: "focus", value: FocusEvent): void;
49
48
  (e: "blur", value: FocusEvent): void;
@@ -1 +1 @@
1
- {"version":3,"file":"WSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelect.vue"],"names":[],"mappings":"AAgUA,OAAO,KAAK,EAAC,WAAW,EAAE,qBAAqB,EAA6B,MAAM,SAAS,CAAA;yBAG1E,MAAM,SAAS,MAAM,GAAG,MAAM,EAAE,eAAe,SAAS,qBAAqB,CAAC,MAAM,CAAC,eACxF,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,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